efficient-storefront-blocks 0.133.11 → 0.134.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +13 -0
- package/dist/chunks/{CustomHtmlCodeWindow-2CJO3FRG.js → CustomHtmlCodeWindow-PCCIJDTP.js} +1 -1
- package/dist/chunks/EditorPreviewCheckout-NAWXDKVA.js +4 -0
- package/dist/chunks/SiteEditorProvider-5GQBSTAR.js +1 -0
- package/dist/chunks/{chunk-DO5FAI7I.js → chunk-4HZQEMGD.js} +1 -1
- package/dist/chunks/{chunk-NQZ3O6A3.js → chunk-6RKYPO5H.js} +1 -1
- package/dist/chunks/{chunk-5W6M2F4B.js → chunk-AKNNDIRL.js} +1 -1
- package/dist/chunks/{chunk-I4IY2GTB.js → chunk-GZKBN53C.js} +1 -1
- package/dist/chunks/{chunk-C2YDFOCO.js → chunk-ITZRFN64.js} +1 -1
- package/dist/chunks/chunk-MM7TBACQ.js +337 -0
- package/dist/chunks/{chunk-UQDOJWLM.js → chunk-UYU65XIT.js} +1 -1
- package/dist/chunks/chunk-V7SYE7AE.js +1 -0
- package/dist/chunks/{fitment-data-6FBUVM5L.js → fitment-data-RJ6DAYHD.js} +1 -1
- package/dist/chunks/{section-css-style-YWXTU6HK.js → section-css-style-K25L45AT.js} +1 -1
- package/dist/index.js +3 -3
- package/dist/links.js +1 -1
- package/dist/render/built-with.json +1 -1
- package/dist/render/components/CartContext.d.ts +1 -0
- package/dist/render/components/CartContext.js +1 -1
- package/dist/render/components/checkout/checkout-parts.js +1 -1
- package/dist/render/components/checkout/checkout-state.d.ts +1 -0
- package/dist/render/components/checkout/checkout-state.js +3 -3
- package/dist/routine-index.json +1 -1
- package/dist/value-index.json +1 -1
- package/package.json +3 -3
- package/dist/chunks/EditorPreviewCheckout-524ZFYDR.js +0 -4
- package/dist/chunks/SiteEditorProvider-E53DXAEH.js +0 -1
- package/dist/chunks/chunk-6JIG2WYA.js +0 -1
- package/dist/chunks/chunk-LUHOZIHO.js +0 -337
- /package/dist/chunks/{chunk-454ZVMST.js → chunk-DSTQVJ5G.js} +0 -0
- /package/dist/chunks/{chunk-C2YDFOCO.js.LEGAL.txt → chunk-ITZRFN64.js.LEGAL.txt} +0 -0
- /package/dist/chunks/{chunk-LUHOZIHO.js.LEGAL.txt → chunk-MM7TBACQ.js.LEGAL.txt} +0 -0
- /package/dist/chunks/{chunk-IHBF4FM5.js → chunk-XPDSLIZ3.js} +0 -0
- /package/dist/chunks/{chunk-LN6M3FAM.js → chunk-YMJRKOEC.js} +0 -0
|
@@ -0,0 +1,337 @@
|
|
|
1
|
+
import{$ as sf,D as Ak,E as Fk,F as of,G as Bk,H as Wk,I as Or,J as $k,K as zk,L as Uk,M as nt,N as tf,O as ko,P as fe,R as rf,S as Er,T as af,X as jk,Y as nf,Z as _r,_ as Gk,a as Xo,b as Ys,ba as tP,c as jd,d as yn,e as Xs,f as ik,fa as uP,g as Sn,h as Gd,ha as mP,ia as Nf,ja as $T,ka as zT,r as tl,t as _k}from"./chunk-UYU65XIT.js";import{a as yP,d as Sf,e as st,f as bf,g as wf,h as Pf,l as Kx}from"./chunk-YMJRKOEC.js";import{$ as ix,$a as Qs,$b as Zk,$c as kv,$d as Br,$f as On,A as kC,Aa as ZC,Ab as hx,Ac as lv,Ad as Cx,Ae as gf,Ag as tT,Aj as Hx,Ak as Df,B as vC,Ba as px,Bb as el,Bc as iv,Bd as $v,Be as cP,Bg as Lx,Bj as fl,Bk as Ux,C as PC,Ca as JC,Cb as zt,Cc as dv,Cd as zv,Ce as pP,Cg as dr,Ck as NT,D as rt,Da as QC,Db as wn,Dc as fv,Dd as Uv,Dg as Rx,Dk as ua,E as TC,Ea as ek,Eb as ol,Ec as jt,Ed as jv,Ee as kt,Eg as Ef,Ej as _n,Ek as MT,F as OC,Fa as ok,Fc as Ue,Fd as Gv,Fg as rT,Fk as HT,G as EC,Ga as tk,Gc as Ar,Gd as kx,Ge as je,Gf as HP,Gg as aT,Gj as PT,Gk as WT,H as _C,Ha as rk,Hb as Ix,Hc as Sx,Hd as Kv,He as vt,Hf as WP,Hg as nT,I as AC,Ia as vr,Ib as na,Ic as cv,Id as vx,Ie as Oe,If as $P,Ig as sT,Ik as UT,J as FC,Ja as ak,Jb as ef,Jc as pv,Jd as qv,Je as IP,Jf as zP,Jg as lT,Jk as jx,K as BC,Kb as Tk,Kc as uv,Kd as Vv,Kf as Ax,La as nk,Lb as Ok,Lc as mf,Ld as Yv,Lf as UP,Lk as jT,M as LC,Ma as Kd,Mb as Ek,Mc as al,Md as Gt,Mf as jP,Mg as iT,Mk as GT,N as RC,Na as Zs,Nb as lf,Nc as mv,Nd as Xv,Ne as Px,Nf as Fx,Ng as dT,Nk as KT,O as DC,Oa as qd,Ob as Vk,Oc as xv,Od as da,Oj as TT,Ok as qT,P as Md,Pa as dk,Pb as df,Pc as hv,Pj as Wx,Pk as VT,Q as NC,Qb as yx,Qc as xf,Qd as Zv,Qe as il,Qj as OT,Qk as YT,R as MC,Rb as ff,Rc as Iv,Rd as Pn,Rf as ir,Ri as pa,Rj as ET,Sc as gv,Ta as fk,Tc as bx,Td as lr,Tf as Tn,Ti as fr,Tj as Rf,Ua as ck,Uc as yv,Ud as Jv,Ue as gP,Uj as An,Va as Js,Vc as vn,Vd as ll,Ve as Tx,Vf as GP,Vh as hT,Vj as Fn,W as lx,Wb as Cn,Wd as Qv,We as SP,Wf as KP,Wg as _f,Wh as IT,Wj as cl,Xa as bn,Xc as Sv,Xd as fa,Xe as kf,Xf as Tf,Xj as Bn,Y as qs,Ya as pk,Yc as bv,Yd as eP,Yf as Lr,Yj as _T,Z as Hd,Za as Vd,Zb as Yk,Zc as wv,Ze as OP,Zf as Of,_ as Ao,_a as uk,_b as Xk,_c as Cv,_d as hf,_i as Bf,a as _o,aa as hn,ab as mk,ac as rl,ad as sa,ae as oP,af as Ex,ah as fT,aj as ST,b as un,ba as HC,bb as xk,bd as vv,ca as WC,cb as mx,cd as wx,ch as cT,d as sC,da as $C,db as hk,dd as Pv,dk as AT,e as rx,ea as zC,eb as Yd,ed as Tv,ei as gT,ek as FT,f as lC,fa as UC,fb as Ik,fd as Ov,ff as EP,fi as yT,fl as Gx,g as c,ga as dx,gb as xx,gd as Ev,gf as _P,h as $t,hd as _v,hf as vf,i as xn,ia as jC,ib as gk,id as Fr,ie as rP,if as AP,ig as Rr,j as Gs,ja as Wd,jb as yk,jd as nl,jf as FP,jg as qP,k as No,kd as la,kg as VP,l as Ks,lb as Xd,lc as kn,ld as Av,le as aP,lg as YP,lk as $x,mb as Sk,mc as Ut,me as nP,mh as Dx,mj as bT,n as xC,nb as bk,nc as Jk,nd as ia,ne as sP,nh as Af,nk as BT,nl as XT,o as hC,ob as wk,oc as Qk,od as sl,oh as ca,ok as LT,ol as ZT,p as IC,pb as Ck,pc as ev,pd as Fv,ph as Ff,pj as wT,pk as RT,pl as Mf,q as gC,qb as Zd,qc as ov,qd as Bv,qf as BP,qg as XP,qj as Lf,ql as JT,r as yC,rb as kk,rc as tv,rf as _x,rh as pT,rj as Nx,rk as DT,s as SC,sc as cf,sd as Lv,se as Mo,sf as LP,sh as uT,sj as CT,sl as Ln,t as bC,tc as pf,td as Rv,te as ao,tf as RP,th as mT,tj as kT,tk as zx,tl as Hf,u as wC,ub as vk,uc as rv,ud as Dv,uf as DP,ug as ZP,uh as xT,uj as Mx,v as Nd,vb as Pr,ve as If,vf as NP,vg as JP,w as kr,wb as Jd,wc as av,wd as Nv,we as lP,wg as QP,wj as En,xa as VC,xb as Qd,xc as nv,xd as Mv,xe as iP,xf as MP,xg as eT,xj as vT,y as sx,ya as YC,yb as Pk,yc as sv,yd as Hv,ye as dP,yg as oT,z as CC,za as XC,zb as ho,zc as uf,zd as Wv,ze as fP,zg as Bx,zk as pl}from"./chunk-AKNNDIRL.js";import{a as uC,b as Dd,c as mC,g as Kk,h as gx,i as qk}from"./chunk-4HZQEMGD.js";import{$ as Ib,$a as Mb,$c as R,$e as Jm,$g as cC,A as io,Ab as Jb,Ad as pw,B as on,Be as Xm,Bf as ox,Ca as ye,Cb as Ws,Cd as Vm,Ce as ww,Ci as vo,D as Ns,Db as Qb,E as id,Ed as uw,Ee as Zm,F as Nt,Fd as bd,G as tn,Ga as ot,Gg as Jw,Gi as dl,H as ze,Ha as bt,Hb as gd,Hd as tt,Hg as Qw,I as Xe,Ia as Em,Ic as nw,Id as Do,Ie as kd,If as Dw,Ig as eC,J as rn,Ja as _m,Jd as ro,Je as vd,Jg as oC,K as dd,Kc as Um,Kd as Ht,Ke as Cw,Kh as ux,L as fb,La as Am,Ld as nr,Le as Pd,Lf as sr,Lh as In,M as cb,Ma as Fm,Mb as ew,Md as Ct,Me as Td,Mg as tC,Mh as sk,Nd as dn,Ne as kw,Nh as at,O as pb,Od as mw,Oe as vw,Oh as Yo,P as fd,Pd as fn,Pe as Od,Pg as rC,Ph as Ud,Q as ub,Qa as Bm,Qd as xw,Qe as Ed,Qg as aC,Qh as lk,R as ea,Ra as _b,Rb as yd,Rc as sw,Re as aa,Rf as Nw,Rh as gn,S as mb,Sa as Ab,Se as Pw,Sg as nC,T as xb,Ta as Ke,U as Ms,Ua as Fb,Ub as ow,Ud as ra,Ug as iC,Uh as Lk,V as Tm,Va as xd,Vb as tw,Vd as hw,Vg as dC,W as Ce,Wa as Bb,Wd as Iw,We as Tw,X as q,Xa as Lb,Xb as rw,Xd as cn,Xf as Mw,Xg as Cr,Y as hb,Ya as Rb,Yc as U,Yd as zs,Yf as Hw,Yh as Rk,Za as Db,Zb as Wm,Zc as oe,Zd as Us,Ze as Wt,Zf as Ww,Zg as fC,_ as cd,_a as Nb,_c as jm,_d as Ym,_e as js,_f as $w,_g as ax,a as en,ab as Hb,ad as Co,ae as gw,af as Qm,ah as nx,b as xo,ba as gb,bb as Wb,bd as rr,be as yw,bf as Ow,bh as Rd,c as lo,ca as pd,cb as hd,cd as lw,ce as Sw,cf as Ew,cg as zw,d as or,da as yb,db as Id,dd as H,df as _d,dg as Uw,dh as pC,di as Dk,ea as Sb,eb as $b,ed as Sd,ee as bw,ef as _w,ei as Tr,f as Vo,fa as Om,fb as zb,fd as Ro,fg as jw,g as Ds,ga as bb,gc as $m,gd as iw,ge as wd,gg as Gw,gi as Nk,h as tb,ha as wb,hb as Ub,hd as wt,hf as Aw,hg as Bd,hi as Mk,i as rb,ia as Cb,ib as jb,id as Mt,ie as Cd,if as Ad,ig as Kw,ii as Hk,j as ab,jb as Lm,jd as Gm,jf as Fw,jg as Ld,k as nb,kb as Gb,kd as br,kf as ex,kg as tx,la as kb,lb as Kb,ld as ar,lf as Bw,ma as vb,mb as Rm,md as dw,mf as Lw,na as Pb,nb as nn,nf as Fd,ng as qw,o as sb,od as Be,of as pn,og as Vw,pa as Tb,pb as oa,pd as ta,pf as mn,pi as bP,qb as Dm,qd as $s,qf as wr,qi as wP,ra as Ob,rb as Nm,rd as sn,rg as Yw,rh as fx,ri as Cf,s as lb,sa as ud,sb as Mm,sd as fw,sg as Xw,sh as $d,si as CP,ta as Eb,tb as qb,td as Km,th as GC,ti as Ox,u as Me,ua as md,ub as Vb,ud as ln,uf as Rw,uh as cx,ui as kP,v as ib,vb as Yb,vc as zm,vd as qm,vg as Zw,vh as KC,w as ld,wb as Hm,wi as vP,x as db,xb as Xb,xc as aw,xh as zd,xi as PP,ya as Hs,yb as tr,yh as qC,yi as TP,z as Te,za as an,zb as Zb,zd as cw,zh as Vs}from"./chunk-GZKBN53C.js";import{a as z,b as eo}from"./chunk-XPDSLIZ3.js";import{c as xP,d as hP,e as yf}from"./chunk-DSTQVJ5G.js";import{jsx as qx,Fragment as h6,jsxs as I6}from"react/jsx-runtime";import{createContext as g6,useContext as y6}from"react";var S6={mirrorHostStyles:!0,css:null,fontHrefs:[]},QT=g6(S6);function ase({value:e,children:o}){return qx(QT.Provider,{value:e,children:o})}function ul(){return y6(QT)}function e0(){let{css:e,fontHrefs:o}=ul();return I6(h6,{children:[o.map(t=>qx("link",{rel:"stylesheet",href:t},t)),e?qx("style",{"data-sf-canvas-css":"",children:e}):null]})}import{jsx as b6}from"react/jsx-runtime";import{createContext as w6,useContext as C6}from"react";var o0=w6(void 0);function ise({metadata:e,children:o}){return b6(o0.Provider,{value:e,children:o})}var t0=()=>C6(o0);import{jsx as uo,Fragment as r6,jsxs as od}from"react/jsx-runtime";import{useCallback as _s,useEffect as Zt,useRef as _ne,useState as Q4}from"react";import{SettingsSwitch as Ane}from"efficient-easel/panel";import{PagesIcon as Fne,StylesIcon as Bne}from"efficient-easel/rail";import{PaletteIcon as Lne}from"efficient-shell/icons/efficient";import{Subtree as Rne,TreeRow as a6}from"efficient-easel/tree";import{useEasel as n6}from"efficient-easel/easel";import{toItemSelector as Dne}from"efficient-easel/node-ops";import{useEaselStrings as s6}from"efficient-easel/strings";import{createContext as k6,useContext as v6}from"react";var Vx=k6(!1),cse=()=>v6(Vx);import{useMemo as P6,useRef as T6}from"react";import{useEaselApi as O6}from"efficient-easel/easel";import{useSectionOps as E6}from"efficient-easel/screen/lib/document/use-section-ops";function Wf(){let e=O6(),o=E6(),t=T6(o);return t.current=o,P6(()=>({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 X6}from"efficient-easel/draw";import{insertAt as Z6,moveTo as J6,removeAt as Q6}from"efficient-easel/fields";import{useSyncExternalStore as U6}from"react";import{isNodeList as r0}from"efficient-easel/data";var a0="Flex";function Rn(e,o){return Wt(e)?typeof e?.[Vo]=="string"?Yx(o?.[Vo]):"":Yx(e?.[Vo])}var Yx=e=>typeof e=="string"?e.trim():"",_6=e=>e.type===io&&Array.isArray(e.props?.[Zm])&&e.props[Zm].some(o=>Yx(o?.[Vo])!==""),A6=new Intl.NumberFormat("en-US");function F6(e){return/^\d+$/.test(e)?A6.format(Number(e)):e}function bse(e,o){let t=o?o.find(r=>r.key===e)?.value:lb(Ds).find(r=>r.key===e)?.value;return t===void 0?null:F6(t)}var B6={[Vo]:"any"};function Xx(e,o=!1){let t=e.props;if(!t)return{node:e,names:!1};let r=e.type==="Text"&&(Rn(t)!==""||o&&Rn(t,B6)!==""),a=o||_6(e),n=Xe(e,l=>ze(l,i=>{let d=Xx(i,a);return d.names&&(r=!0),d.node})).props;if(e.type!==a0)return{node:n===t?e:{...e,props:n},names:r};let s=Me(n);if(r&&!s&&(n={...n,[lo]:Ds}),!r&&s===Ds){let{[lo]:l,...i}=n;n=i}return{node:n===t?e:{...e,props:n},names:!1}}function n0(e,o,t){for(let r of e){if(r?.props?.id===o)return t;for(let a of tn(r??{})){let n=n0(a,o,r.type===a0?r:t);if(n!==void 0)return n}}}function wse(e,o){if(!r0(e))return!0;let t=n0(e,o,null);if(t===void 0)return!0;if(t===null)return!1;let r=Me(t.props);return!r||r===Ds}function s0(e){let o=e?.content;if(!r0(o))return e;let t=o.map(r=>Xx(r));return t.every((r,a)=>r.node===o[a])?e:{...e,content:t.map(r=>r.node)}}function l0(e){return Xx(e).node}import{decodePartId as j6}from"efficient-easel/draw";function Dn(e,o){let t=nv(e);return t?.control==="textList"?o.rowKey===(t.itemKey??"text")?LT(t,o.index):null:sv(e)?.[o.rowKey]??null}function $f(e,o,t){let r=e.node.props,{key:a,row:n}=Ut(e.propKey),s=n?iv(r,a,n,e.kind,o):av(r,a,e.kind,o);return s?(t(e.zone,e.index,{...e.node,props:s}),!0):!1}import{readHidable as f0}from"efficient-easel/draw";import{parseOption as L6}from"efficient-shell/format";var Zx=e=>String(e+1).padStart(2,"0"),R6=[{label:"01 \xB7",value:"two-digit"},{label:"1.",value:"plain"}],Jx="two-digit",i0=e=>L6(R6,Jx,e),zf=(e,o)=>e==="plain"?`${o+1}.`:Zx(o);var oh="Contents",Qx="Flex",d0="Text",D6="numberForm",N6="_contentsEntries",M6="_kickerNumber",c0="data-sf-kicker-number",H6=e=>f0(e).text.trim(),p0=e=>fa(e?.anchor),eh=e=>String(e.props?.id??""),W6=e=>!f0(e.props?.text).hidden&&!Rn(e.props)&&!Wt(e.props),ml=e=>tn(e);function u0(e){for(let o of ml(e))for(let t of o){if(lr(t.props??{}))continue;if(t.type===d0&&W6(t))return t;if(t.type===d0)continue;let r=u0(t);if(r)return r}}function m0(e){return ml(e).some(o=>o.some(t=>t&&!lr(t.props??{})&&(t.type===oh||m0(t))))}var x0=e=>e.type===Qx&&Tn(Qx,e.props?.direction)==="row";function h0(e){return ml(e).some(o=>o.some(t=>t&&!lr(t.props??{})&&(t.type===oh||!x0(t)&&h0(t))))}function $6(e){let o=[],t=(r,a)=>{for(let n of r){if(!n||lr(n.props??{}))continue;if(n.type===oh){a.open={contents:n,sections:a.waiting??[]},a.waiting=null,o.push(a.open);continue}if(x0(n)&&h0(n)){let l={inRow:!0,open:null,waiting:[]};for(let i of ml(n))t(i,l);a.inRow||(a.open=null);continue}let s=a.open?.sections??a.waiting;if(n.type===Qx&&p0(n.props)&&s&&!m0(n)){s.push({box:n,kicker:u0(n)});continue}for(let l of ml(n))t(l,a)}};return t(e,{inRow:!1,open:null,waiting:null}),o}function z6(e){return e.map(o=>({label:o.kicker?an(H6(o.kicker.props?.text)):"",anchor:p0(o.box.props)}))}function th(e){let o=e?.length?$6(e):[];if(!o.length)return null;let t=new Map,r=new Map;for(let a of o){let n=eh(a.contents);n&&t.set(n,z6(a.sections));let s=i0(a.contents.props?.[D6]);a.sections.forEach((l,i)=>{let d=l.kicker?eh(l.kicker):"";d&&r.set(d,zf(s,i))})}return{entries:t,numbers:r}}var $se=e=>e.endsWith(".")?`${e} `:`${e} \xB7 `;function I0(e){let o=e;if(!o?.content?.length)return e;let t=th(o.content);if(!t)return e;let{entries:r,numbers:a}=t,n=s=>{let l=Xe(s,h=>ze(h,n)),i=l.props??{},d=l!==s,f=eh(s),m=f?r.get(f):void 0;m&&(i={...i,[N6]:m},d=!0);let u=f?a.get(f):void 0;return u&&(i={...i,[M6]:u},d=!0),d?{...s,props:i}:s};return{...o,content:o.content.map(n)}}var G6=`[${c0}]`,K6=["bold","italic","underline","strike","link","sup","sub"],q6=["bullet","number"];function nh(e,o){return e?[...K6,...o?q6:[]]:[]}function g0(e,o){let t=j6(e);if(!t?.propKey)return null;let{nodeId:r,propKey:a}=t,n=o.getItemById(r),s=o.getSelectorForId(r);if(!n||!s)return null;let{key:l,row:i}=Ut(a),d=o.components[n.type]?.fields?.[l],f=i?Dn(d,i):d,m=cf(f);if(!m)return null;let u=n.props??{};if(hT(u)!==null||!i&&_d(n.type,u,l)||n.type==="Text"&&l==="text"&&Rn(u)||i&&!(Array.isArray(u[l])&&i.index<u[l].length))return null;let h=i?uf(u[l],i):u[l];return{node:n,selector:s,propKey:a,kind:m,stored:h,offPage:Bf(f),panelOnly:tv(f)}}function Uf(e,o){let t=g0(e,o);if(!t)return null;let{text:r,hidden:a}=pa(t.stored);if(!gv({offPage:t.offPage,hidden:!!a,panelOnly:t.panelOnly}))return null;let n=pf(t.kind);return{partId:e,value:r,rules:ud,multiline:n,skip:G6,offered:nh(t.kind!=="plainText",n),write:s=>{let l=g0(e,o);l&&$f({node:l.node,propKey:l.propKey,kind:l.kind,zone:l.selector.zone,index:l.selector.index},s,o.replace)}}}function sh(e,o,t){return e?.isConnected&&e.getAttribute(Ue)===t?e:o?.querySelector(`[${Ue}="${jf(t)}"]`)??null}function jf(e){return e.replace(/["\\]/g,"\\$&")}function y0(e){let o=e.activeElement;return o?o.tagName==="IFRAME"||!!o.closest(".es-canvas"):!1}var rh=null,ah=new Set;function V6(){return rh}function lh(e){if(e!==rh){rh=e;for(let o of ah)o()}}function Y6(e){return ah.add(e),()=>{ah.delete(e)}}function S0(){return U6(Y6,V6,()=>null)}function b0(e,o){if(e.outer)return null;let t=o.getItemById(e.ownerId);if(!t)return null;let r=kw(t.type);return!r||Me(t.props)?null:{node:t,rows:r}}function e3(e,o){let t=b0(e,o),r=o.getItemById(e.nodeId);if(!t||!r)return null;let a=_w(r.type,r.props,e.key);if(!a)return null;let n=t.node.props[t.rows];return!Array.isArray(n)||e.index<0||e.index>=n.length?null:X6(e.ownerId,kn(t.rows,{index:e.index,rowKey:a}))}function Gf(e,o){let t=e3(e,o);return t?Uf(t,o):null}function w0(e,o){return Gf(e,o)?.value}function C0(e,o){let t=Gf(e,o);return t?(t.write(e.text),!0):!1}function k0(e,o){let t=b0(e,o),r=t&&o.getSelectorForId(e.ownerId);if(!t||!r)return!1;let a=t.node.props,n=a[t.rows],s=e.index;if(!Array.isArray(n)||s<0||s>=n.length)return!1;let l;switch(e.action){case"addAfter":{let i=o.components[t.node.type]?.fields?.[t.rows];l=Z6(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=J6(n,s,i);break}case"delete":l=Q6(n,s);break;default:return!1}return o.replace(r.zone,r.index,{...t.node,props:{...a,[t.rows]:l}}),!0}import{jsx as Pe,Fragment as jJ,jsxs as Wu}from"react/jsx-runtime";import{Fragment as GJ,useEffect as wH,useMemo as CH,useRef as KJ,useState as za}from"react";import{useScreenDocument as OH}from"efficient-easel/screen/components/ScreenDocumentContext";import{UiIcon as Wy}from"efficient-easel/draw/client";import qJ from"efficient-easel/screen/components/SidePanelHead";import{InspectorIconButton as VJ}from"efficient-easel/chrome";import{Input as YJ,LoadingSpinner as XJ,PopupMenu as ZJ,PopupMenuItem as kH,toast as vH}from"efficient-shell/ui";import{LayersTree as JJ,TreeGroupLabel as QJ,TreeRow as PH,TreeRowAction as $u}from"efficient-easel/tree";import{AddIcon as eQ,DuplicateIcon as oQ,PageIcon as tQ,SettingsIcon as rQ}from"efficient-easel/icons";import{PagesIcon as aQ}from"efficient-easel/rail";import{useEaselHost as nQ}from"efficient-easel/screen/lib/host";import{useEaselSession as $y}from"efficient-easel/screen/lib/session-context";import{useCallback as Kf,useEffect as o3,useSyncExternalStore as t3}from"react";import{useScreenDocument as O0}from"efficient-easel/screen/components/ScreenDocumentContext";var v0=new WeakMap;function xl(e){let o=v0.get(e);return o||(o={rows:null,loading:null,listeners:new Set},v0.set(e,o)),o}function ih(e,o){e.rows=o;for(let t of e.listeners)t()}var qf=new Set;function Vf(e,o){o?qf.add(e):qf.delete(e)}function P0(e){let o=xl(e),t=e.listPages().then(r=>ih(o,qf.size?r.filter(a=>!qf.has(a.id)):r),()=>ih(o,[])).finally(()=>{o.loading===t&&(o.loading=null)});return o.loading=t,t}var T0=()=>null,r3=()=>()=>{};function hl(){let{adapter:e,ready:o}=O0(),t=Kf(l=>{let{listeners:i}=xl(e);return i.add(l),()=>i.delete(l)},[e]),r=Kf(()=>xl(e).rows,[e]),a=t3(o?t:r3,o?r:T0,T0);o3(()=>{if(!o)return;let l=xl(e);l.rows===null&&!l.loading&&P0(e)},[e,o]);let n=Kf(()=>o?P0(e):Promise.resolve(),[e,o]),s=Kf(l=>ih(xl(e),l),[e]);return{rows:a,reload:n,setRows:s,getRows:r}}function a3(e,o){return e?.find(t=>t.slug===o)?.label?.trim()||`/${o}`}function E0(){let{currentSlug:e}=O0(),{rows:o}=hl();return a3(o,e)}import{canDuplicatePage as sQ,DuplicatePageDialog as lQ}from"efficient-easel/page-copy";import{jsx as Oo,jsxs as mH}from"react/jsx-runtime";import{useEffect as TJ,useId as OJ,useMemo as EJ,useRef as _J,useState as Ny}from"react";import{useScreenDocument as AJ}from"efficient-easel/screen/components/ScreenDocumentContext";import{useEaselSession as FJ}from"efficient-easel/screen/lib/session-context";import{uniqueSlug as xH}from"efficient-easel/page-copy";import{AddIcon as BJ}from"efficient-easel/icons";import{Button as LJ,Dialog as RJ,EmptyState as DJ,LoadingSpinner as NJ,Paragraph as MJ,SidebarLayout as HJ,SidebarNavItem as My,Title as WJ,toast as hH}from"efficient-shell/ui";import{jsx as Ot,jsxs as AR}from"react/jsx-runtime";import{useEffect as Tq,useState as Ag}from"react";import{CanvasFrame as Oq}from"efficient-easel/easel";import{Button as Eq,Card as _q,FitFrame as Aq,Text as Fq}from"efficient-shell/ui";import{jsx as L0,Fragment as h3,jsxs as I3}from"react/jsx-runtime";import{useEffect as R0,useLayoutEffect as g3}from"react";var Yf="data-theme",_0="light";function n3(e){return e.getAttribute(Yf)===_0?"light":"dark"}function s3(e,o){return n3(e)===o?!1:(o==="light"?e.setAttribute(Yf,_0):e.removeAttribute(Yf),!0)}function l3(e){return Kx(e).getItem(ox)}function hle(e,o){Kx(e).setItem(ox,o)}function i3(e,o,t=new Date().getHours()){return Dw({mode:o.mode,override:l3(e),switchShown:o.switchShown,hour:t})}function A0(e,o){let t=e.documentElement;if(!t)return()=>{};let r=()=>s3(t,i3(e,o));r();let a=e.defaultView?.MutationObserver;if(!a)return()=>{};let n=new a(r);return n.observe(t,{attributes:!0,attributeFilter:[Yf]}),()=>n.disconnect()}var d3="style";function f3(e,o){let t=Ld(o),r=!1;for(let a of Kw){let n=t[a]??"";e.style.getPropertyValue(a)!==n&&(n?e.style.setProperty(a,n):e.style.removeProperty(a),r=!0)}return r}function F0(e,o){let t=e.body;if(!t)return()=>{};let r=()=>f3(t,o);r();let a=e.defaultView?.MutationObserver;if(!a)return()=>{};let n=new a(r);return n.observe(t,{attributes:!0,attributeFilter:[d3]}),()=>n.disconnect()}import{VIEW_DESKTOP_MIN as c3,VIEW_TABLET_MIN as p3}from"efficient-easel/screen/lib/content/view-tiers";var cr={fit:"data-fit",fitTablet:"data-fit-tablet",fitPhone:"data-fit-phone",min:"data-fit-min",minTablet:"data-fit-min-tablet",minPhone:"data-fit-min-phone",edge:"data-fit-edge"},Zo=cr,u3=e=>e.flatMap(o=>[`[${o}] p`,`[${o}] li`]).join(","),m3=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(u3([Zo.fit,Zo.fitTablet,Zo.fitPhone]))};
|
|
8
|
+
var CANDIDATES = SELECTOR + "," + SHRINK_BODY;
|
|
9
|
+
var MIN_SCALE = 0.3, MIN_PX = 16, SLACK = 1, PHONE_BELOW = ${tr};
|
|
10
|
+
var TABLET_MIN = ${p3}, DESKTOP_MIN = ${c3};
|
|
11
|
+
|
|
12
|
+
// A block's own answer (lib/content/block-size, the wrapper's attributes):
|
|
13
|
+
// the fit "wrap" | "shrink" | "line" | "ellipsis" and the floor, each with a tablet and a
|
|
14
|
+
// phone twin. From 1100 the desktop's; from the tablet line (800 for a holder
|
|
15
|
+
// in a Box, marked edge; 720 outside one) the tablet's where it has one;
|
|
16
|
+
// under it the phone's, else the tablet's, else the desktop's. With no
|
|
17
|
+
// tablet answer the phone's is read under 800, as before (the edge moves with
|
|
18
|
+
// F1). With none, a heading shrinks and body text wraps, as always.
|
|
19
|
+
// A holder with any tablet attribute takes the three views (its line and 1100)
|
|
20
|
+
// for its fit AND its floor together; one with none keeps the 800 edge.
|
|
21
|
+
var TABLET_ATTRS = [${JSON.stringify(Zo.fitTablet)}, ${JSON.stringify(Zo.minTablet)}];
|
|
22
|
+
function own(el, attr, tabletAttr, phoneAttr) {
|
|
23
|
+
var holder = el.closest("[" + attr + "],[" + tabletAttr + "],[" + phoneAttr + "]");
|
|
24
|
+
if (!holder) return null;
|
|
25
|
+
var w = win.innerWidth, d = holder.getAttribute(attr);
|
|
26
|
+
if (w >= DESKTOP_MIN) return d;
|
|
27
|
+
var t = holder.getAttribute(tabletAttr), p = holder.getAttribute(phoneAttr);
|
|
28
|
+
if (w < (holder.hasAttribute(${JSON.stringify(Zo.edge)}) ? PHONE_BELOW : TABLET_MIN)) return p || t || d;
|
|
29
|
+
if (holder.hasAttribute(TABLET_ATTRS[0]) || holder.hasAttribute(TABLET_ATTRS[1])) return t || d;
|
|
30
|
+
return (w < PHONE_BELOW && p) || d;
|
|
31
|
+
}
|
|
32
|
+
function modeOf(el) {
|
|
33
|
+
var mode = own(el, ${JSON.stringify(Zo.fit)}, ${JSON.stringify(Zo.fitTablet)}, ${JSON.stringify(Zo.fitPhone)});
|
|
34
|
+
if (mode === "wrap" || mode === "shrink") return mode;
|
|
35
|
+
// One line and Shorten (stored "ellipsis", which cuts its words with "..."):
|
|
36
|
+
// the block keeps its words at their set size, nothing shrinks.
|
|
37
|
+
if (mode === "line" || mode === "ellipsis") return "wrap";
|
|
38
|
+
return el.matches(SELECTOR) ? "shrink" : "wrap";
|
|
39
|
+
}
|
|
40
|
+
function floorOf(el, set) {
|
|
41
|
+
var raw = own(el, ${JSON.stringify(Zo.min)}, ${JSON.stringify(Zo.minTablet)}, ${JSON.stringify(Zo.minPhone)});
|
|
42
|
+
var min = parseFloat(raw);
|
|
43
|
+
// A Min font size in vw (block-size.ts): a share of the window's width.
|
|
44
|
+
if (/vw$/.test(String(raw))) min = min * win.innerWidth / 100;
|
|
45
|
+
return min >= 0 ? min : Math.max(set * MIN_SCALE, MIN_PX);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
function measure(el) {
|
|
49
|
+
var widest = 0, current = 0, last = null, split = false, lastBlock = null;
|
|
50
|
+
function blockOf(n) {
|
|
51
|
+
for (var p = n.parentElement; p && p !== el; p = p.parentElement) {
|
|
52
|
+
var d = win.getComputedStyle(p).display;
|
|
53
|
+
if (d.indexOf("inline") !== 0 && d !== "contents") return p;
|
|
54
|
+
}
|
|
55
|
+
return el;
|
|
56
|
+
}
|
|
57
|
+
function close() { if (current > widest) widest = current; current = 0; last = null; }
|
|
58
|
+
var walker = doc.createTreeWalker(el, 5), range = doc.createRange(), node;
|
|
59
|
+
while ((node = walker.nextNode())) {
|
|
60
|
+
if (node.nodeType === 1) {
|
|
61
|
+
if (node.tagName === "BR" || node.tagName === "WBR") close();
|
|
62
|
+
continue;
|
|
63
|
+
}
|
|
64
|
+
var block = blockOf(node);
|
|
65
|
+
if (block !== lastBlock) close();
|
|
66
|
+
lastBlock = block;
|
|
67
|
+
var re = /(\S+)|(\s+)/g, m;
|
|
68
|
+
while ((m = re.exec(node.data))) {
|
|
69
|
+
if (m[2]) { close(); continue; }
|
|
70
|
+
range.setStart(node, m.index);
|
|
71
|
+
range.setEnd(node, m.index + m[0].length);
|
|
72
|
+
var rects = range.getClientRects();
|
|
73
|
+
for (var i = 0; i < rects.length; i++) {
|
|
74
|
+
var r = rects[i];
|
|
75
|
+
if (r.width <= 0) continue;
|
|
76
|
+
current += r.width;
|
|
77
|
+
if (last && r.top > last.top + last.height / 2) split = true;
|
|
78
|
+
last = r;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
close();
|
|
83
|
+
return { widest: widest, split: split };
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
function lineWidth(el) {
|
|
87
|
+
var cs = win.getComputedStyle(el);
|
|
88
|
+
return el.getBoundingClientRect().width - parseFloat(cs.paddingLeft) - parseFloat(cs.paddingRight)
|
|
89
|
+
- parseFloat(cs.borderLeftWidth) - parseFloat(cs.borderRightWidth);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
// ⚠️ THE HEADING ELEMENT IS NEVER TOUCHED — no style="", no data-*. This
|
|
93
|
+
// runs before React hydrates, and React 19 in development reports ANY
|
|
94
|
+
// attribute that differs from what it rendered ("a tree hydrated but some
|
|
95
|
+
// attributes didn't match"): first our inline font-size on the hero (which
|
|
96
|
+
// React owns via --heading-size), then, when that moved to a data-sf-fit
|
|
97
|
+
// attribute, the attribute itself. So the fitted size lives only in this
|
|
98
|
+
// script's own stylesheet, in <head>, addressed to each heading by its
|
|
99
|
+
// POSITION (":root>*:nth-child(2)>…"). A position goes stale when the page's
|
|
100
|
+
// structure changes, so the rules are rewritten in the MutationObserver
|
|
101
|
+
// callback, which runs before the next paint. !important so the size also
|
|
102
|
+
// beats a part's own inline size.
|
|
103
|
+
var head = doc.head || doc.documentElement;
|
|
104
|
+
var fitEl = doc.createElement("style");
|
|
105
|
+
fitEl.id = "storefront-fit-words-sizes";
|
|
106
|
+
head.appendChild(fitEl);
|
|
107
|
+
// heading -> [[element, fitted size]]: the heading and each Text part inside
|
|
108
|
+
// it that holds its own size (a span [data-sf-part-styled]), e.g.
|
|
109
|
+
// [[h2, "43.8px"], [span, "43.8px"]]. Sizing the heading alone leaves such
|
|
110
|
+
// a part at its own size, and the word still breaks (card C25, Spec Table).
|
|
111
|
+
var fitted = new Map();
|
|
112
|
+
|
|
113
|
+
function pathOf(el) {
|
|
114
|
+
var parts = [];
|
|
115
|
+
for (var e = el; e && e.parentElement; e = e.parentElement) {
|
|
116
|
+
var i = 1, s = e;
|
|
117
|
+
while ((s = s.previousElementSibling)) i++;
|
|
118
|
+
parts.unshift("*:nth-child(" + i + ")");
|
|
119
|
+
}
|
|
120
|
+
return ":root>" + parts.join(">");
|
|
121
|
+
}
|
|
122
|
+
function writeRules() {
|
|
123
|
+
var css = "";
|
|
124
|
+
fitted.forEach(function (sizes, el) {
|
|
125
|
+
if (!el.isConnected) { fitted.delete(el); return; }
|
|
126
|
+
for (var i = 0; i < sizes.length; i++) css += pathOf(sizes[i][0]) + "{font-size:" + sizes[i][1] + " !important}";
|
|
127
|
+
});
|
|
128
|
+
if (fitEl.textContent !== css) fitEl.textContent = css;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
function unfit(el) {
|
|
132
|
+
if (fitted.delete(el)) writeRules();
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
function fits(el) {
|
|
136
|
+
var m = measure(el);
|
|
137
|
+
return !m.split && m.widest <= lineWidth(el) + SLACK;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
function fit(el) {
|
|
141
|
+
unfit(el);
|
|
142
|
+
if (modeOf(el) !== "shrink") return; // the block's own Wrap
|
|
143
|
+
if (lineWidth(el) <= 0) return; // hidden, or not laid out yet
|
|
144
|
+
if (fits(el)) return;
|
|
145
|
+
var set = parseFloat(win.getComputedStyle(el).fontSize);
|
|
146
|
+
if (!set) return;
|
|
147
|
+
var floor = floorOf(el, set);
|
|
148
|
+
if (floor >= set) return;
|
|
149
|
+
function size(px) { return Math.floor(px * 10) / 10 + "px"; }
|
|
150
|
+
// The SEARCH tries sizes on the element's own style and then puts that
|
|
151
|
+
// attribute back byte for byte (or removes it, if it had none), so nothing
|
|
152
|
+
// is left for React to see. A trial in a stylesheet instead restyles the
|
|
153
|
+
// whole page per step: a full pass on the Hartes home took 75–160ms at 4x
|
|
154
|
+
// CPU that way.
|
|
155
|
+
// Every trial scales the heading AND each part inside it that holds its
|
|
156
|
+
// own size, by the same ratio, so a part keeps its proportion to the
|
|
157
|
+
// heading.
|
|
158
|
+
var carriers = [el].concat(Array.prototype.slice.call(el.querySelectorAll("[data-sf-part-styled]")));
|
|
159
|
+
var base = carriers.map(function (c) { return parseFloat(win.getComputedStyle(c).fontSize) || set; });
|
|
160
|
+
var saved = carriers.map(function (c) { return c.hasAttribute("style") ? c.getAttribute("style") : null; });
|
|
161
|
+
function attempt(px) {
|
|
162
|
+
for (var i = 0; i < carriers.length; i++) carriers[i].style.setProperty("font-size", size(base[i] * px / set), "important");
|
|
163
|
+
}
|
|
164
|
+
function done() {
|
|
165
|
+
for (var i = 0; i < carriers.length; i++) {
|
|
166
|
+
if (saved[i] !== null) carriers[i].setAttribute("style", saved[i]); else carriers[i].removeAttribute("style");
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
attempt(floor);
|
|
170
|
+
if (!fits(el)) { done(); return; } // even the floor does not fit: leave it as set
|
|
171
|
+
var lo = floor, hi = set;
|
|
172
|
+
for (var i = 0; i < 8; i++) {
|
|
173
|
+
var mid = (lo + hi) / 2;
|
|
174
|
+
attempt(mid);
|
|
175
|
+
if (fits(el)) lo = mid; else hi = mid;
|
|
176
|
+
}
|
|
177
|
+
done();
|
|
178
|
+
fitted.set(el, carriers.map(function (c, i) { return [c, size(base[i] * lo / set)]; }));
|
|
179
|
+
writeRules();
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
// What each heading measured right after we last fitted it, so the
|
|
183
|
+
// ResizeObserver below can tell a real change (a font swap, a rotate, a
|
|
184
|
+
// container that moved) from the size change our own write just caused.
|
|
185
|
+
var seen = new WeakMap();
|
|
186
|
+
function remember(el) {
|
|
187
|
+
var b = el.getBoundingClientRect();
|
|
188
|
+
seen.set(el, b.width + "x" + b.height);
|
|
189
|
+
}
|
|
190
|
+
function fitAndRemember(el) { fit(el); remember(el); }
|
|
191
|
+
|
|
192
|
+
// ⚠️ A ResizeObserver, NOT fonts.ready or a resize event, and the reason is
|
|
193
|
+
// WHEN it runs: after layout, BEFORE paint. The web font arriving re-wraps a
|
|
194
|
+
// fitted heading, and fonts.ready resolves only after that frame is painted —
|
|
195
|
+
// measured on the Hartes hero: a 42px jump in 2 of 3 loads. A size change
|
|
196
|
+
// reported here is fitted in the same frame, so the broken state is never
|
|
197
|
+
// drawn. It also covers a container that resizes.
|
|
198
|
+
var ro = new win.ResizeObserver(function (entries) {
|
|
199
|
+
for (var i = 0; i < entries.length; i++) {
|
|
200
|
+
var el = entries[i].target;
|
|
201
|
+
var b = el.getBoundingClientRect();
|
|
202
|
+
if (seen.get(el) === b.width + "x" + b.height) continue; // our own write
|
|
203
|
+
fitAndRemember(el);
|
|
204
|
+
}
|
|
205
|
+
});
|
|
206
|
+
// Its own set, not seen: fitAndRemember has written seen by the
|
|
207
|
+
// time watch runs, so a seen test observed no heading at all, and a
|
|
208
|
+
// heading fitted in the fallback face was never fitted again when the web
|
|
209
|
+
// font arrived (hartesmetal.com.au, "FusionForge." with its "." alone).
|
|
210
|
+
var watched = new WeakSet();
|
|
211
|
+
function watch(el) { if (!watched.has(el)) { watched.add(el); ro.observe(el); } }
|
|
212
|
+
|
|
213
|
+
function fitAll() {
|
|
214
|
+
var els = doc.querySelectorAll(CANDIDATES);
|
|
215
|
+
for (var i = 0; i < els.length; i++) {
|
|
216
|
+
if (modeOf(els[i]) === "shrink") { fitAndRemember(els[i]); watch(els[i]); }
|
|
217
|
+
else unfit(els[i]); // Wrap here (a phone value may differ from the desktop's)
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
var queued = 0, all = false, touched = new Set();
|
|
222
|
+
function run() {
|
|
223
|
+
queued = 0;
|
|
224
|
+
if (all) { all = false; touched.clear(); fitAll(); return; }
|
|
225
|
+
var els = Array.from(touched);
|
|
226
|
+
touched.clear();
|
|
227
|
+
for (var i = 0; i < els.length; i++) {
|
|
228
|
+
if (!els[i].isConnected) continue;
|
|
229
|
+
if (modeOf(els[i]) === "shrink") { fitAndRemember(els[i]); watch(els[i]); }
|
|
230
|
+
else unfit(els[i]);
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
function schedule() { if (!queued) queued = win.requestAnimationFrame(run); }
|
|
234
|
+
function scheduleAll() { all = true; schedule(); }
|
|
235
|
+
|
|
236
|
+
fitAll();
|
|
237
|
+
// A backstop only: a font that changes widths without changing any
|
|
238
|
+
// heading's box is not seen by the ResizeObserver.
|
|
239
|
+
if (doc.fonts && doc.fonts.ready) doc.fonts.ready.then(scheduleAll, function () {});
|
|
240
|
+
|
|
241
|
+
// …and the viewport WIDTH, which the ResizeObserver cannot stand in for: a
|
|
242
|
+
// heading sized to its own text (fit-content, a flex item) keeps the SAME box
|
|
243
|
+
// when the phone turns to 844, so nothing reports a change and it would stay
|
|
244
|
+
// shrunk. The probe's rotate check caught exactly that.
|
|
245
|
+
var lastWidth = win.innerWidth;
|
|
246
|
+
function onResize() {
|
|
247
|
+
if (win.innerWidth === lastWidth) return; // a phone's toolbar changing HEIGHT is not our business
|
|
248
|
+
lastWidth = win.innerWidth;
|
|
249
|
+
scheduleAll();
|
|
250
|
+
}
|
|
251
|
+
win.addEventListener("resize", onResize);
|
|
252
|
+
|
|
253
|
+
var mo = new win.MutationObserver(function (records) {
|
|
254
|
+
// Positions first: a node added or removed anywhere can shift the
|
|
255
|
+
// nth-child path of a fitted heading, and this callback runs before paint.
|
|
256
|
+
if (fitted.size) {
|
|
257
|
+
for (var q = 0; q < records.length; q++) if (records[q].type === "childList") { writeRules(); break; }
|
|
258
|
+
}
|
|
259
|
+
for (var i = 0; i < records.length; i++) {
|
|
260
|
+
var r = records[i];
|
|
261
|
+
// A block's text fit (Wrap / Shrink / One line) or Min font size changed in the editor:
|
|
262
|
+
// only a data-fit attribute moved, so every heading is measured again.
|
|
263
|
+
if (r.type === "attributes") { scheduleAll(); continue; }
|
|
264
|
+
var target = r.target.nodeType === 1 ? r.target : r.target.parentElement;
|
|
265
|
+
var owner = target && target.closest(CANDIDATES);
|
|
266
|
+
if (owner) touched.add(owner);
|
|
267
|
+
for (var j = 0; j < r.addedNodes.length; j++) {
|
|
268
|
+
var n = r.addedNodes[j];
|
|
269
|
+
if (n.nodeType !== 1) continue;
|
|
270
|
+
if (n.matches(CANDIDATES)) touched.add(n);
|
|
271
|
+
var inner = n.querySelectorAll(CANDIDATES);
|
|
272
|
+
for (var k = 0; k < inner.length; k++) touched.add(inner[k]);
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
if (touched.size) schedule();
|
|
276
|
+
});
|
|
277
|
+
mo.observe(doc.body, {
|
|
278
|
+
childList: true,
|
|
279
|
+
subtree: true,
|
|
280
|
+
characterData: true,
|
|
281
|
+
attributes: true,
|
|
282
|
+
attributeFilter: ${JSON.stringify(Object.values(Zo))},
|
|
283
|
+
});
|
|
284
|
+
|
|
285
|
+
doc.__sfFitWords = function stop() {
|
|
286
|
+
win.removeEventListener("resize", onResize);
|
|
287
|
+
ro.disconnect();
|
|
288
|
+
mo.disconnect();
|
|
289
|
+
if (queued) win.cancelAnimationFrame(queued);
|
|
290
|
+
fitted.clear();
|
|
291
|
+
fitEl.remove();
|
|
292
|
+
delete doc.__sfFitWords;
|
|
293
|
+
};
|
|
294
|
+
// For the probe and for debugging: which headings are fitted, at what size,
|
|
295
|
+
// and the sheet that holds it (disable it to read a heading's set size).
|
|
296
|
+
doc.__sfFitWords.fitted = fitted;
|
|
297
|
+
doc.__sfFitWords.sheet = fitEl;
|
|
298
|
+
// …and the two questions a block's own answer changes, for the guard
|
|
299
|
+
// (scripts/test-block-size.tsx §5): which mode an element is in, and its floor.
|
|
300
|
+
doc.__sfFitWords.modeOf = modeOf;
|
|
301
|
+
doc.__sfFitWords.floorOf = floorOf;
|
|
302
|
+
})(document);`,x3="storefront-fit-words";function B0(e){let o=e.createElement("script");return o.id=x3,o.textContent=m3,(e.head??e.documentElement).appendChild(o),()=>{e.__sfFitWords?.(),o.remove()}}var y3=`
|
|
303
|
+
[${Ue}][${Ue}] { cursor: text; }
|
|
304
|
+
`;function Xf({children:e,document:o}){let{theme:t,themeMode:r,themeSwitchShown:a}=vo(),n=sr(t);return R0(()=>{if(o)return A0(o,{mode:r,switchShown:a})},[o,r,a]),R0(()=>{if(o)return F0(o,n)},[o,n]),g3(()=>{if(o)return B0(o)},[o]),I3(h3,{children:[L0(e0,{}),L0("style",{children:y3}),e]})}import{jsx as OL}from"react/jsx-runtime";import{memo as i7}from"react";import{Render as d7}from"efficient-easel/render";import{jsx as Nn}from"react/jsx-runtime";import{createContext as S3,useContext as b3,useMemo as w3}from"react";var dh=S3(null);function C3({children:e}){return Nn(dh.Provider,{value:"first",children:e})}function Jf({children:e}){return Nn(dh.Provider,{value:"below",children:e})}function Il(){return b3(dh)}function fh(){return Il()==="below"?{loading:"lazy"}:{}}function Qf(e){let o=fh();return Nn("img",{...e,...o})}var D0="laterSlideIds",k3=new Set(["Breadcrumb","CategoryBar","Divider","Spacer","Ticker"]);function N0(e){return Cf(e?.filter(o=>!o?.type||!k3.has(o.type)))}function Zf(e,o=[]){if(Array.isArray(e))for(let t of e)Zf(t,o);else if(e&&typeof e=="object"){let{slides:t}=e;if(Array.isArray(t))for(let r of t.slice(1))typeof r?.props?.id=="string"&&o.push(r.props.id);for(let r of Object.values(e))Zf(r,o)}return o}function M0(e,o){let t=o?.type,r=o?.props?.id;return w3(()=>{let a=t?e.components[t]:void 0;if(!t||!a)return e;let n=a.render,s=l=>l.id===r?Nn(C3,{children:Nn(n,{...l})}):Nn(n,{...l});return{...e,components:{...e.components,[t]:{...a,render:s}}}},[e,t,r])}function H0(e){return e.props?Xe(e,o=>{let t=ze(o,H0),r=e.type===qC&&t.every(a=>a.type===$d)?GC(t):t;return r.length!==o.length||r.some((a,n)=>a!==o[n])?r:o}):e}function W0(e){return dd(e,o=>ze(o,H0))}var v3="Flex",$0="ListSearch",z0=["FAQ"],P3="listKey";function U0(e,o){let t={search:e.type===$0,list:z0.includes(String(e.type))};return Xe(e,r=>{for(let a of r){let n=U0(a,o);t.search||=n.search,t.list||=n.list}return r}),e.type===v3&&t.search&&t.list&&String(e.props?.id??"")?(o.add(e),{search:!1,list:!1}):t}function j0(e,o,t){let r=o.has(e)?String(e.props?.id):t,a=Xe(e,n=>ze(n,s=>j0(s,o,r)));return r&&(e.type===$0||z0.includes(String(e.type)))?{...a,props:{...a.props,[P3]:r}}:a}function G0(e){return rn(e,o=>{let t=new Set;for(let r of o)U0(r,t);return t.size?ze(o,r=>j0(r,t,"")):o})}import{isNode as L$,isNodeList as zE}from"efficient-easel/data";import{jsx as _e,Fragment as w$,jsxs as mr}from"react/jsx-runtime";import{jsx as gh}from"react/jsx-runtime";import{Fragment as F3,jsx as B3}from"react/jsx-runtime";import{jsx as ch}from"react/jsx-runtime";import{createContext as E3,Fragment as _3,useContext as A3}from"react";import{jsx as K0,jsxs as T3}from"react/jsx-runtime";import{lazy as O3}from"react";var q0=O3(()=>import("./section-css-style-K25L45AT.js"));function V0({css:e,id:o,attr:t}){return K0(q0,{css:e,id:o,attr:t})}var Y0={name:"sectionCustomCss",applies:(e,o,t)=>o.isSection(e)&&!!t&&typeof t.render=="function",panel(e,o,t){e.fields={...e.fields,...t.customCssFields()}},draw(e){e.defaultProps={...e.defaultProps,[Dd]:""};let o=e.render;e.render=t=>{let r=mC(t),a=typeof t.id=="string"?t.id:"";return!r||!a?o(t):T3(_r,{className:"sf-section-css",attrs:{[uC]:a},children:[K0(q0,{css:r,id:a}),o(t)]})}}};var X0=E3(null);function Z0({rootProps:e,children:o}){let t=e&&typeof e=="object"?e:null,r=Ok(t),a=ch(_3,{children:o},"page");return ch(X0.Provider,{value:t,children:r?[ch(V0,{css:r,id:Tk,attr:ef},"css"),a]:a})}function J0(){return A3(X0)}function Pt(){return Nd(J0())===wC}function ec({className:e,children:o}){let t=Pt();return B3(F3,{children:o(rt(e,t))})}import{SITE_SIDE as L3}from"efficient-easel/screen/lib/content/length-units";var Q0="sideSpace",gl=L3,ph="none",eie=[{value:"box",label:"Box"},{value:gl,label:"Site"},{value:ph,label:"None"}],oie="box",tie="Box: on small screens the Box keeps its own side space, up to 24 px. Site: it uses the site's Side space, as the site's own sections do. None: from 800 px up the Box runs to the screen's edges; on small screens it keeps the site's Side space, up to 20 px.";function eO(e){return e===gl||e===ph?e:"box"}function rie(e){return e===gl||e===ph?e:void 0}import{parseOption as xh}from"efficient-shell/format";var oc="standard",aO=[{label:"Standard",value:"standard"},{label:"Editorial",value:"editorial"},{label:"Simple",value:"simple"},{label:"Statement",value:"statement"},{label:"Natural",value:"natural"},{label:"Essay",value:"essay"}],mh=["numStyle","logoSrc","logoAlt","linkText","linkHref","_gLogo"],uh=[...mh,"description"],oO={standard:["eyebrowLook"],editorial:[...mh,"eyebrowLook"],simple:uh,statement:uh,natural:mh,essay:uh},tO=["gap-5","gap-3"],rO=["text-[length:var(--size-body,16px)]","text-[15px]"];function lie(e){return xh(tO,tO[0],e)}function iie(e){return xh(rO,rO[0],e)}function nO(e){return xh(aO,oc,e)}function die(e){let o=aO.map(r=>r.value),t=[...new Set(Object.values(oO).flat())];return tt(e,t.map(r=>[[r],bd("headStyle",o,oc,o.filter(a=>!oO[a].includes(r)))]))}import{readHidable as R3,VIEW_TIERS as D3,viewKeyAt as N3}from"efficient-easel/draw";var ma={direction:"row",share:"content",align:"center"},xa={top:14,bottom:14,topPhone:12,bottomPhone:12},tc={wrap:"nowrap",loop:"scroll",sectionAccent:cC,gap:60,gapPhone:32,separator:"dot",sectionBorder:{top:1,bottom:1}},sO={gap:120,gapPhone:64},rc={...Ro,sizeToken:{step:"label",px:14,pxPhone:12},letterSpacing:.25,lineHeight:1.5},lO={textStyle:"heading-3",letterSpacing:.005,case:"upper",lineHeight:1},yl={top:24,bottom:24,topPhone:16,bottomPhone:16},ha={top:16,bottom:16,topPhone:12,bottomPhone:12},Sl={justify:"between",wrap:"wrap",gap:32,separator:"none"},bl={...Ro,letterSpacing:.1,lineHeight:1.5};var ac={top:24,bottom:24,topPhone:24,bottomPhone:24},nc={top:72,bottom:72,topPhone:72,bottomPhone:72},Mn={top:100,bottom:100,topPhone:60,bottomPhone:60},sc={top:120,bottom:120,topPhone:70,bottomPhone:70},M3={top:24,bottom:24,topPhone:24,bottomPhone:24},H3=40,lc={top:120,bottom:120,topTablet:80,bottomTablet:80,topPhone:80,bottomPhone:80},W3={top:24,bottom:24,topPhone:24,bottomPhone:24},ic={top:24,bottom:24,topPhone:24,bottomPhone:24},$3={top:84,bottom:84,topPhone:84,bottomPhone:84},dc={top:48,bottom:48,topPhone:48,bottomPhone:48},fc={top:80,bottom:80,topPhone:60,bottomPhone:60},cc={top:100,bottom:60,topPhone:60,bottomPhone:40},pc={top:60,bottom:60,topPhone:40,bottomPhone:40},uc={top:80,bottom:80,topTablet:60,bottomTablet:60,topPhone:60,bottomPhone:60},mc={top:76,bottom:76,topPhone:76,bottomPhone:76},xc={top:76,bottom:76,topPhone:76,bottomPhone:76},Cl={top:80,bottom:40,topPhone:60,bottomPhone:32},kl={top:76,bottom:76,topPhone:76,bottomPhone:76},hc={top:72,bottom:72,topPhone:72,bottomPhone:72},Ic={top:40,bottom:64,topPhone:24,bottomPhone:36},gc={top:120,bottom:120,topPhone:80,bottomPhone:80,topTablet:80,bottomTablet:80},yc={top:48,bottom:48,topPhone:48,bottomPhone:48},vl=e=>{let o=ye(e.bandPadding)??H3;return{top:o,bottom:o,topPhone:o,bottomPhone:o}},iO=(e,o,t)=>({desktop:e,tablet:o,mobile:t}),hh=e=>fn(e.headPlacement)==="own-box",Le=(e,o)=>({top:iO(e.top,o?.top??e.topTablet??e.top,e.topPhone),bottom:iO(e.bottom,o?.bottom??e.bottomTablet??e.bottom,e.bottomPhone)}),dO=e=>({top:e.topPhone,bottom:e.bottomPhone}),wl=e=>o=>hh(o)?{top:0,bottom:e.bottom}:e,z3=(e,o)=>{let t=R3(e[o]);return t.hidden?!1:!!t.text||e.editor?.isEditing===!0},Sc={Banner:{frame:()=>Le(ac)},Cards:{frame:wl(Le(nc))},Chart:{frame:()=>Le(kl)},ContactLocations:{frame:()=>Le(Mn,dO(Mn))},Countdown:{frame:()=>Le(dc)},DocBody:{frame:()=>Le(fc)},DocMasthead:{frame:()=>Le(cc)},DocMetaCards:{frame:()=>Le(pc)},FAQ:{frame:e=>{let o=hh(e)||!["num","title","linkText"].some(r=>z3(e,r)),t=Le(sc);return o?{top:0,bottom:t.bottom}:t},edge:!0},FeaturedCover:{frame:()=>Le(uc)},Grid:{frame:()=>Le(M3)},Integrations:{frame:()=>Le(mc)},KeyFeatures:{frame:()=>Le(xc)},Logos:{frame:e=>hh(e)?0:Le(vl(e))},LongRead:{frame:wl(Le(lc))},Masthead:{frame:()=>Le(Cl,dO(Cl))},Mockup:{frame:()=>Le(kl)},OrderSummary:{frame:()=>Le(W3)},PaymentBadges:{frame:()=>Le(ic)},Prose:{frame:wl(Le(hc))},SectionHeader:{frame:e=>{let o=Le(Ic);return nO(e.headStyle)==="standard"?o:{top:o.top,bottom:0}},edge:!0},Series:{frame:wl(Le(gc))},Stats:{frame:()=>Le(yc)},Testimonials:{frame:wl(Le($3))},Ticker:{frame:()=>Le(xa),edge:!0}};function bie(e,o,t){let r=z(Sc,e)??t;return r?na({values:el(o,ho,!0),frame:r.frame(o),drawsFrame:!0,edge:r.edge},!0).root:null}var fO=(e,o)=>typeof e=="object"&&"top"in e?e[o]:e;function U3(e,o){let t={...e};for(let r of D3)delete t[N3(o,r)];return t}function wie(e,o,t,r){let a=z(Sc,e)??t;if(!a)return{first:null,last:null};let n=a.frame(o),s=el(o,ho,!0),l=(i,d)=>na({values:U3(s,i),frame:d,drawsFrame:!0,edge:a.edge},!0).root;return{first:l("bottom",{top:fO(n,"top"),bottom:r.firstBottom}),last:l("top",{top:r.lastTop,bottom:fO(n,"bottom")})}}var j3=/^(?:[^\s]*:)?p[ytb]-/;function cO(e,o,t){if(!o)return t?{className:e,style:t}:{className:e};let r=e.split(/\s+/).filter(n=>n&&!j3.test(n)),a={...t,...o.style};return{className:[...r,o.className].filter(Boolean).join(" "),...Object.keys(a).length?{style:a}:{},...o.attrs}}import{isNodeList as G3}from"efficient-easel/data";var Ih=new Set(["FAQ"]);function Jo(e,o){if(!Ih.has(e))return!1;let t=o.template;return typeof t=="function"?(t.blockCount??0)>0:G3(t)}var mO={ParagraphsA:{top:60,bottom:80},StatsParagraph:{top:120,bottom:120},Timeline:{top:120,bottom:120},Footprint:{top:120,bottom:120},TimelineTrack:{top:120,bottom:120},TitleWithButtons:{top:140,bottom:140},ProcessSteps:{top:120,bottom:120}},xO=new Set(Object.keys(mO));function yh(e,o){return o?.innerPadding??z(mO,e)}var Hn=e=>yh(e)??{};var bc=new Set(["Flex","Text","Heading","ImageBlock","ButtonBlock"]),K3=new Set(["Divider"]),q3=new Set(["Hero","HeroSingle","IntroBleed","CategoryBar","DocTabs"]),pO=new Set(["ProductGrid"]);function Sh(e,o,t=!1,r){let a=e.render;e.render=n=>{if(o?.(n))return a(n);let s={...el(n,ho,t),sideSpace:eO(n.sideSpace)},l=r?na({values:s,frame:r(n)},!0).outer:kk(s),i=a(n);if(!l)return i;let d=u=>gh(ec,{className:u?`${l.className} ${u}`:l.className,children:h=>gh(fe,{className:h,style:l.style,children:i})}),f=Tr(n,{atSectionLine:!0}),m=Tr(n);return f===m?d(f):gh(rf,{line:"by-box",draw:u=>d(u?m:f)})}}var hO={name:"sectionPadding",applies:(e,o,t)=>o.isSection(e)&&!q3.has(e)&&!!t&&typeof t.render=="function",panel(e,o,t){let r=yh(o,e);if(r){e.fields={...e.fields,...t.sidesPaddingFields({keys:Pr,unitKey:Jd,fallback:r,tablet:!0,siteSide:!0})};return}if(pO.has(o))return;let a=[Pr.top,Pr.bottom].filter(s=>e.fields!=null&&s in e.fields);if(a.length)throw new Error(`section-padding: ${o} declares its own ${a.join(" / ")} row; declare \`innerPadding: { top, bottom }\` in its meta and the one Padding row draws on its band`);let n=uO(o,e);if(n){gO(e,o,t,n);return}e.fields={...e.fields,...t.sidesPaddingFields({tablet:!0,siteSide:!0})}},draw(e,o){if(!yh(o,e)){if(pO.has(o)){Sh(e);return}bc.has(o)||K3.has(o)||Sh(e,o==="Flex"?t=>Yk(t.bgImage):Ih.has(o)?t=>Jo(o,t):void 0,!0,uO(o,e))}}},V3=["Heading","Text","ImageBlock","ButtonBlock"],Y3=["LogoBlock"],IO={Text:e=>Fr(e,"text").textStyle?.startsWith("heading-")?ol.heading:ol.text,Heading:()=>ol.heading,ButtonBlock:()=>ol.text,Breadcrumb:()=>Ix(yl),SpecStrip:()=>Ix(ha),...Object.fromEntries(Object.entries(Sc).map(([e,o])=>[e,o.frame]))};function uO(e,o){return z(IO,e)??o?.ownPad?.frame}var X3={ButtonBlock:"Outer padding"};function Z3(e,o){let t=e[zt],r=Array.isArray(t)?t.filter(i=>typeof i=="string"):[],a=wn().filter(i=>o?.[i]);if(!a.length)return e;let n=[...r.filter(i=>!a.includes(i)),...a.filter(i=>typeof e[i]=="number")];if(n.length===r.length&&n.every((i,d)=>i===r[d]))return e;let{[zt]:s,...l}=e;return n.length?{...l,[zt]:n}:l}function J3(e,o,t){if(o<=0)return null;let r=Array.isArray(e[zt])?e[zt]:[];return(t?wn().filter(a=>a.startsWith(ho[t])):wn()).some(a=>typeof e[a]=="number"&&!r.includes(a))?c("plus {n} px (older setting)",{n:o}):null}function gO(e,o,t,r){e.fields={...e.fields,...t.ownPaddingFields?.(r,J3,z(X3,o))??t.sidesPaddingFields({tablet:!0,siteSide:!0})};let a=e.resolveData;e.resolveData=(n,s)=>{let l=n.props??{},i=s?.trigger==="replace"?Z3(l,s.changed):l,d=i===l?n:{...n,props:i};return a?a(d,s):d}}var yO={name:"blockPadding",applies:(e,o,t)=>(V3.includes(e)||Y3.includes(e))&&!!t&&typeof t.render=="function",panel(e,o,t){let r=z(IO,o);if(!r){e.fields={...e.fields,...t.sidesPaddingFields({tablet:!0,siteSide:!0})};return}gO(e,o,t,r)},draw(e,o){bc.has(o)||Sh(e,void 0,!0)}};import{createContext as bh,useContext as wc}from"react";var SO=bh(null);function zie(){return wc(SO)===!0}function Uie(){return wc(SO)!==null}var Q3=bh(!1);function jie(){return wc(Q3)}function Gie(e,o,t){let r=e.boxes;if(!r)return t;let a=r.indexOf(o);return a>=0?a:(r.push(o),r.length-1)}var Cc=bh(null);function Kie(){return wc(Cc)}import{jsx as Ia}from"react/jsx-runtime";import{Component as lW,createContext as iW,lazy as ide,Suspense as dde,useContext as dW,useSyncExternalStore as fW}from"react";function eW(e,o){let t=e.trim();if(!kc(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 Yie(e){return e.startsWith("/")||kc(e)}function kc(e){return/^(?:https?:)?\/\//i.test(e.trim())}var Pl=Object.freeze({target:"_blank",rel:"noopener noreferrer"});function bO(e,o){return eW(e,o)?{...Pl}:{}}function Xie(e){return typeof e=="string"?e.trim():""}var Zie="data-sf-box-link",wO="absolute inset-0 -z-[1] outline-none focus-visible:z-[2] focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-accent",wh="relative isolate pointer-events-none [&_a]:pointer-events-auto [&_button]:pointer-events-auto [&_input]:pointer-events-auto [&_select]:pointer-events-auto [&_textarea]:pointer-events-auto [&_label]:pointer-events-auto [&_summary]:pointer-events-auto [&_iframe]:pointer-events-auto [&_video]:pointer-events-auto [&_audio]:pointer-events-auto [&_[role=button]]:pointer-events-auto [&_[tabindex]:not([tabindex='-1'])]:pointer-events-auto",oW="data-sf-box-jump";function tW(e){return`sf-box-jump-${e}`}function Jie(e,o){return e===!0?fa(o):""}function rW({box:e,lit:o,first:t}){let r=s=>s.join(`,
|
|
305
|
+
`),a=t(e),n=o.flatMap(t);return`
|
|
306
|
+
${e} {
|
|
307
|
+
outline: 2px solid transparent;
|
|
308
|
+
outline-offset: -2px;
|
|
309
|
+
transition: outline-color 600ms ease-out;
|
|
310
|
+
}
|
|
311
|
+
${r(a)} { transition: background-color 600ms ease-out; }
|
|
312
|
+
${r(a.map(s=>`${s} *`))} { transition: color 600ms ease-out; }
|
|
313
|
+
${r(o)} { outline-color: var(--accent); }
|
|
314
|
+
${r(n)} { background-color: var(--accent); }
|
|
315
|
+
${r([...n,...n.map(s=>`${s} *`)])} { color: var(--bg) !important; }
|
|
316
|
+
`}function Qie(e){let o=`[${oW}="${e}"]`,t=`.${tW(e)}`,r=`[id="${e}"]:target`;return rW({box:o,lit:[`${r}~${o}`,`${r}~* ${o}`],first:a=>[`${a} ${t}>:first-child:not(.sf-section-anchor)`,`${a} ${t}>.sf-section-anchor:first-child+*`]})}var aW="hrefRewrite";function nW(){return en("efficient.link-href-rewrites",()=>({rewrites:new Map,count:0,missed:new Set}))}function sW(){return typeof process<"u"&&!0}function tde(e){let o=e?.[aW];return typeof o=="string"?o.trim():""}function CO(e){if(!e)return null;let o=nW(),t=o.rewrites.get(e);return!t&&!sW()&&o.missed.add(e),t??null}var cW={Link:mP,Image:uP},kO=iW(cW);function xde({runtime:e,children:o}){return Ia(kO.Provider,{value:e,children:o})}function kh(){return dW(kO)}function hde(){return kh().pagePath??null}var pW=()=>()=>{},uW=()=>yf()||null,mW=()=>null;function xW(){return fW(pW,uW,mW)}function ga({hrefRewrite:e,newTab:o,...t}){let{Link:r}=kh(),a=xW(),n=o===!0?{...t,...Pl}:o==="auto"?{...t,...bO(t.href,a)}:t,s=CO(e);return s?Ia(Ch,{name:s.name,href:n.href,fallback:Ia(r,{...n}),children:Ia(hW,{Link:r,rewrite:s.rewrite,...n})},s.key):Ia(r,{...n})}function hW({Link:e,rewrite:o,...t}){let r=xo(o(t.href)),a=r&&Ob(r)?r:t.href;return Ia(e,{...t,href:a})}var Ch=class extends lW{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 vc(e){let{Image:o}=kh();return Ia(o,{...e})}import{jsx as c$}from"react/jsx-runtime";import{jsx as Se,jsxs as Po,Fragment as l$}from"react/jsx-runtime";import{imageCopyUrl as PO,imageSrcSet as IW}from"efficient-shell/image-copies";var vO;function vh(){return vO===void 0?{}:{host:vO}}var Sde="(max-width: 800px) 100vw, min(100vw, 1600px)",bde="(max-width: 960px) 100vw, 50vw";function ya(e,{fallbackWidth:o=1280,maxWidth:t}={}){let r=IW(e,{...vh(),...t===void 0?{}:{maxWidth:t}});return r?{src:PO(e,o,vh()),srcSet:r}:{src:e}}var gW=/[\s"'()\\;]/;function wde(e){let o=PO(e,1920,vh());return o===e?gW.test(e)?`url("${gx(e)}")`:`url(${e})`:`url("${gx(o)}")`}import{parseOption as yW}from"efficient-shell/format";var Tl="solid",SW=[{label:"Solid",value:"solid"},{label:"Outlined",value:"outlined"}];function TO(e){return yW(SW,Tl,e)}var Ph="sf-secnum-outline",OO="font-display text-[length:var(--size-headingMedium,clamp(48px,6vw,96px))] font-medium leading-[0.8] tracking-[-0.02em]",EO=`@supports (-webkit-text-stroke: 1px currentColor){.${Ph}{color:var(--site-surface-2);-webkit-text-stroke:1px var(--site-line)}}`;import{parseOption as _O}from"efficient-shell/format";var Th="plain",AO=[{label:"Plain",value:"plain"},{label:"Filled",value:"filled"},{label:"Line",value:"line"}],bW="line",wW={KeyFeatures:"filled"};function Ol(e){return z(wW,e)??Th}function FO(e,o){return _O(AO,Ol(o),e)}function Ode(e){return _O(AO,bW,e)}import{jsxs as wa,jsx as He}from"react/jsx-runtime";import{Fragment as Mh}from"react";import{Fragment as qW,jsx as Rh}from"react/jsx-runtime";import{Fragment as GO,jsx as Bl,jsxs as WW}from"react/jsx-runtime";import{createContext as Lh,useContext as Ll,useEffect as $W,useId as zW,useMemo as UW,useRef as jW}from"react";import{armEntrance as GW}from"efficient-shell/format";import{jsx as CW}from"react/jsx-runtime";import{useEffect as LO,useRef as BO,useState as kW}from"react";import{armEntrance as vW,entranceAttrs as PW,playEntrance as TW}from"efficient-shell/format";function Pc({views:e,editing:o,boxClass:t,boxAttrs:r,boxStyle:a,takesViewHide:n=!1,atEdge:s=!1,children:l}){let i=BO(null),d=nf(),f=nt(),m=n?f:Or,u=El(i,!0,s),{attrs:h,style:I}=PW(e[u]),S=BO(Wn.seed(e)),P=JSON.stringify(e);return LO(()=>{let T=i.current;if(T){if(o){let B=Wn.next(S.current,e,u);S.current=B.seen,B.play&&TW(T);return}return vW(T)}},[P,u,o]),m.scope(CW("div",{ref:i,className:ko(`${yn}${d.fill}${t?` ${t}`:""}`,m.className),...r,...m.attrs,...h,...Object.keys(I).length||a?{style:{...a,...I}}:{},children:d.inner(l)}))}var Wn={seed(e){return{desktop:JSON.stringify(e.desktop),tablet:JSON.stringify(e.tablet),phone:JSON.stringify(e.phone)}},next(e,o,t){let r=Wn.seed(o);return{play:r[t]!==e[t],seen:r}}};function El(e,o=!0,t=!1){return _l(e,o,t)??"desktop"}function _l(e,o=!0,t=!1){let[r,a]=kW(void 0),n=Er(t?"edge":"by-box"),{phone:s,tablet:l}=qv(n);return LO(()=>{if(!o)return;let i=e.current?.ownerDocument?.defaultView??(typeof window>"u"?null:window);if(!i?.matchMedia){a("desktop");return}let d=i.matchMedia(s),f=i.matchMedia(l),m=()=>a(d.matches?"phone":f.matches?"tablet":"desktop");return m(),d.addEventListener("change",m),f.addEventListener("change",m),()=>{d.removeEventListener("change",m),f.removeEventListener("change",m)}},[e,o,s,l]),r}var Al="@name",RO="@body",DO="@value",NO={[Al]:"Name",[RO]:"Body",[DO]:"Value"},OW={TimelineTrack:{"entries.date":Al,"entries.title":Al,"entries.blurb":RO},Footprint:{"offices.city":Al},Stats:{"items.label":Al,"items.value":DO}};function EW(e){let{key:o,row:t}=Ut(e);return t?`${o}.${t.rowKey}`:null}function pr(e,o){if(!e)return o;let t=EW(o);return t?z(OW,e)?.[t]??o:o}import{ENTRANCE_STATE_ATTR as RW,entranceAttrs as DW,scrollAttrs as NW}from"efficient-shell/format";import{parseFocal as FW,formatFocal as BW,readScroll as LW}from"efficient-shell/format";import{phoneKey as _W,tabletKey as AW}from"efficient-easel/screen/lib/content/view-tiers";var Oh=[{block:"HeroSlide",upload:"mediaImage",focus:Zs.image},{block:"HeroSlide",upload:"mediaImage2",focus:Zs.image2},{block:"HeroSingle",upload:"mediaImage",focus:Zs.image},{block:"HeroSingle",upload:"mediaImage2",focus:Zs.image2},{block:"ImageBlock",upload:"src",focus:"focal"}],MO=e=>[e,AW(e),_W(e)],Ude=[...new Set(Oh.flatMap(e=>MO(e.focus)))].sort();function HO(e,o){let[t,r,a]=MO(o).map(n=>typeof e[n]=="string"&&e[n]?e[n]:void 0);return{desktop:t,tablet:r,phone:a}}var oo={effect:"scroll",zoom:"scrollZoom",start:"scrollStart",end:"scrollEnd",ease:"scrollEase"},$n="_gScroll",Tc="_cScroll",Oc=Ud(Object.values(oo));function Kt(e,o){return LW(gn(e,oo.effect,o),gn(e,oo.zoom,o),gn(e,oo.start,o),gn(e,oo.end,o),gn(e,oo.ease,o))}function zn(e){let o={desktop:Kt(e,"desktop"),tablet:Kt(e,"tablet"),phone:Kt(e,"phone")};return at.every(t=>o[t].effect==="none")?null:o}function Eh(e){let o=lk(e.desktop,e.tablet,e.phone),t=r=>{let a=o[r];if(typeof a!="string")return;let{x:n,y:s}=FW(a);return BW(n,s)};return{desktop:t("desktop"),tablet:t("tablet"),phone:t("phone")}}function WO(e,o){return Eh(HO(e,o))}var Ec={},_h="_partMotion",Ah=[...jd,ot,Ke.duration,Ke.delay,...Oc];function zO(e){return Sv(e,_h)}function Sa(e,o){return bv(e,_h,o)}var MW=new Set([Xo.kind,ot,oo.effect]);function UO(e,o,t,r){let{[t]:a,...n}=Sa(e,o),s=r==null||r===""||r==="none"&&MW.has(t)?n:{...n,[t]:r};return wv(e,_h,o,Object.keys(s).length?s:null)}function Fl(e){return{entrance:Sn(e),hover:_b(e),scroll:zn(e)}}function jO(e){let o=Fl(e);return o.entrance!==null||o.hover!=="none"||o.scroll!==null}function _c(e,o){let{attrs:t,style:r}=DW(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(RW)}}function Ac(e,o){let{attrs:t,style:r}=NW(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 HW=4;function Un(e){let o;for(let t of e)(!o||t.element.compareDocumentPosition(o.element)&HW)&&(o=t);return o}var Fh="data-sf-part-host";function Fc(e){let o=e?.ownerDocument.defaultView,t=e;for(;t&&!t.hasAttribute(Fh)&&!t.classList.contains(yn);){let r=o?.getComputedStyle(t).display??"";if(r==="contents")return null;if(r!=="inline")return t;t=t.parentElement}return null}var ba="data-sf-part-lift",$O="sf-part-lift";function Bc(e){if(e.getElementById($O))return;let o=e.createElement("style");o.id=$O,o.textContent=Ev(`[${ba}]`).join(`
|
|
317
|
+
`),e.head.appendChild(o)}var Lc=Lh(null),qO=Lh(null),VO=Lh(null);function YO({needles:e,styles:o,motions:t=Ec,type:r,atEdge:a=!1,sizeCaps:n,children:s}){let l=zW(),i=Er(a?"edge":"by-box"),d=JSON.stringify([l,e,o,t,r,n]),f=kt(),m=UW(()=>{let h=Object.keys(t).filter(I=>jO(t[I]));return Kv(e,o,l,I=>pr(r,I),I=>sl(r,I),I=>h.includes(I)?Fl(t[I]):null,h,I=>ia(n,I),f)},[d,f]);if(!m)return Bl(GO,{children:s});let u=Vv(m,{inBox:i});return WW(GO,{children:[u&&Bl("style",{href:`${KW}${l}-${qk(u)}`,precedence:ZO,dangerouslySetInnerHTML:{__html:Kk(u)}}),Bl(Lc.Provider,{value:m,children:s})]})}var Bh=new WeakMap;function KO(e,o){let t=Un(o.filter(a=>a.arm)),r=o.some(a=>a.entering)?void 0:Un(o.filter(a=>a.scroll));for(let a of o)a!==t&&a.undo&&(a.undo(),a.undo=void 0),a!==r&&a.undoScroll&&(a.undoScroll(),a.undoScroll=void 0);t?.arm&&!t.undo&&(t.undo=t.arm()),r?.scroll&&!r.undoScroll&&(r.undoScroll=r.scroll()),o.some(a=>a.lift)?(Bc(e.ownerDocument),e.setAttribute(ba,"")):e.removeAttribute(ba)}function XO(e){let o=jW(null),t=e?.motion?.entrance??null,r=e?.motion?.scroll??null,a=e?.motion?.hover==="lift",n=El(o,t!==null||r!==null),s=t?t[n]:null,l=r&&r[n].effect!=="none"?r[n]:null,i=JSON.stringify([s,l]);return $W(()=>{let d=o.current,f=Fc(d?.parentElement??null);if(!t&&!r&&!a||!d||!f)return;let m=s?()=>{let I=_c(f,s),S=GW(f);return()=>{S?.(),I()}}:null,u=Bh.get(f)??[];Bh.set(f,u);let h={element:d,arm:m,entering:s!==null&&s.kind!=="none",scroll:l?()=>Ac(f,l):null,lift:a};return u.push(h),KO(f,u),()=>{let I=u.indexOf(h);I<0||(u.splice(I,1),h.undo?.(),h.undo=void 0,h.undoScroll?.(),h.undoScroll=void 0,KO(f,u),u.length||Bh.delete(f))}},[i,a]),o}var ZO="sf-part-styles",KW=`${ZO}-`;function JO(e){let o=Ll(Lc),t=Ll(qO),r=Yv(o,e);return r&&r.stamp!==t?r:null}function pfe(e){return vx(Ll(Lc),e)}function QO({stamp:e,children:o}){return Bl(qO.Provider,{value:e,children:o})}function ufe({children:e}){let o=Ll(Lc);return Bl(VO.Provider,{value:o,children:e})}function mfe(e){return vx(Ll(VO),e)}function Rl({value:e,children:o}){let t=JO(e),r=XO(t);return t?Rh(QO,{stamp:t.stamp,children:Rh("span",{ref:r,[kv]:t.stamp,...t.textStyle?{[sa]:t.textStyle}:{},children:o})}):Rh(qW,{children:o})}import{jsx as Dh,Fragment as VW}from"react/jsx-runtime";function eE({className:e}){return Dh("span",{className:e||void 0,children:"\xAE"})}function lt(e){if(!e.includes("\xAE"))return e;let o=e.split("\xAE"),t=[];return o.forEach((r,a)=>{r&&t.push(r),a<o.length-1&&t.push(Dh(eE,{},`r${a}`))}),Dh(VW,{children:t})}var bfe=eE;function Ze(e,o=!1,t){let r=o$(o),a=md(e);if(a.length===1){let[s]=a,l=Eb(s),i=l?QW(l,s.children):s.children;return wa(Rl,{value:e,children:[t,Rc(i,r)]})}let n=[];return a.forEach((s,l)=>{if(s.bullet){n.push(He("span",{"data-sf-bullet":"",className:YW,children:Rc(s.children,r)},l));return}if(s.number!=null){n.push(wa("span",{"data-sf-number":s.number,className:XW,children:[wa("span",{className:ZW,children:[s.number,"."]}),Rc(s.children,r)]},l));return}l>0&&!JW(a[l-1])&&n.push(He("br",{},`br${l}`)),n.push(He(Mh,{children:Rc(s.children,r)},l))}),wa(Rl,{value:e,children:[t,n]})}var YW="relative block pl-6 before:absolute before:left-1.5 before:font-bold before:text-accent before:content-['\xB7']",XW="relative block pl-[2em]",ZW="absolute left-0 w-[1.6em] text-right tabular-nums";function JW(e){return e.bullet||e.number!=null}var oE="text-accent underline underline-offset-[0.18em]";function QW(e,o){let[t,...r]=o;return t?.kind==="text"?[{kind:"text",text:`${e}${t.text}`},...r]:[{kind:"text",text:e},...o]}function e$(e){return Vk(e)||void 0}function Rc(e,o){let t=[],r=!1;return e.forEach((a,n)=>{if(a.kind==="text"){t.push(He("span",{children:lt(a.text)},n)),r=!0;return}r||t.push(He("span",{},`e${n}`)),t.push(rE(a,n,o)),r=!1}),r||t.push(He("span",{},"end")),t}function Nh(e,o){return e.length===1&&e[0].kind==="text"?lt(e[0].text):e.map((t,r)=>t.kind==="text"?He(Mh,{children:lt(t.text)},r):rE(t,r,o))}function o$(e){return e?"font-normal italic text-accent":"not-italic text-accent"}function Ffe(e){return tE(e)}function tE(e,o){let t=e.split(`
|
|
318
|
+
`);return wa(Rl,{value:e,children:[o,t.map((r,a)=>wa(Mh,{children:[a>0?He("br",{}):null,He("span",{children:r})]},a))]})}function rE(e,o,t){if(e.kind==="link")return kc(e.href)?He(ga,{newTab:"auto",href:e.href,className:oE,children:Nh(e.children,t)},o):He("a",{href:e.href,className:oE,children:Nh(e.children,t)},o);let r=Nh(e.children,t),a=vb[e.kind];if(a)return He("span",{[Pb]:a,children:r},o);switch(e.kind){case"underline":return He("u",{children:r},o);case"sup":return He("sup",{children:r},o);case"sub":return He("sub",{children:r},o);case"color":{let n=e$(e.color);return n?He("span",{style:{color:n},children:r},o):He("span",{children:r},o)}case"accent":case"highlight":return He("em",{className:t,children:r},o);case"bold":return He("strong",{className:"font-semibold",children:r},o);case"italic":return He("em",{className:"italic",children:r},o);case"strike":return He("s",{className:"line-through",children:r},o);default:return He("span",{children:r},o)}}function aE(e,o=!0,t=!1){let r=e.split(`
|
|
319
|
+
`);return He(Rl,{value:e,children:r.map((a,n)=>wa("span",{children:[t?tE(a):Ze(a,o),n<r.length-1?He("br",{}):null]},n))})}function nE(e){return e.split(/\n\s*\n/).map(o=>o.trim()).filter(Boolean)}import{jsx as Hh,jsxs as r$}from"react/jsx-runtime";import{jsx as t$}from"react/jsx-runtime";function sE(){return t$("span",{className:"block h-px w-[30px] bg-current"})}var Wh={labelUpTo800:"max-view-wide:text-[length:var(--size-label,12px)]",labelSmall:"text-[length:var(--size-label,12px)]",labelLarge:"text-[length:var(--size-label,14px)]"};function a$(e,o){return`font-mono text-[length:var(--size-label,${e}px)] uppercase tracking-[0.3em] text-accent`}var n$=`inline-block w-fit bg-accent px-3.5 py-1.5 font-mono ${Wh.labelSmall} font-semibold uppercase tracking-[0.16em] text-bg`,s$=`flex items-center gap-3.5 font-mono ${Wh.labelLarge} uppercase tracking-[0.3em] opacity-80 ${Wh.labelUpTo800} max-view-wide:tracking-[0.25em]`;function jn({text:e,look:o="plain",size:t=13,scaled:r=!0,className:a="",classNameAfter:n="",takesViewHide:s=!1}){let l=nt(),i=s?l:Or;if(o==="line")return i.scope(r$("div",{className:ko([a,s$,n].filter(Boolean).join(" "),i.className),...i.attrs,children:[Hh(sE,{}),Hh("span",{children:Ze(e)})]}));let d=o==="filled"?n$:a$(t,r);return i.scope(Hh("span",{className:ko([a,d,n].filter(Boolean).join(" "),i.className),...i.attrs,children:Ze(e)}))}var Ee={headingMediumUpTo800Small:"max-view-wide:text-[length:min(var(--size-headingMedium,32px),var(--sf-heading-max,9999px))]",headingMediumUpTo800Large:"max-view-wide:text-[length:min(var(--size-headingMedium,36px),var(--sf-heading-max,9999px))]",headingSmallUpTo800:"max-view-wide:text-[length:var(--size-headingSmall,28px)]",headingMedium2:"text-[length:min(var(--size-headingMedium,44px),var(--sf-heading-max,9999px))]",headingMedium3:"text-[length:min(var(--size-headingMedium,56px),var(--sf-heading-max,9999px))]",headingMedium1:"text-[length:var(--sf-heading-max,var(--size-headingMedium,38px))]",bodySmall:"text-[length:var(--size-body,14px)]",bodyLarge:"text-[length:var(--size-body,16px)]",label:"text-[length:var(--size-label,14px)]",shelfLabel:"text-[length:var(--size-label,13px)]",shelfLabelSmall:"text-[length:var(--size-label,12px)]",shelfBody:"text-[length:var(--size-body,13px)]",shelfHeadingUpTo800Xs:"max-view-wide:text-[length:var(--size-headingMedium,28px)]",shelfHeadingUpTo800Small:"max-view-wide:text-[length:var(--size-headingMedium,32px)]",shelfHeadingUpTo800Large:"max-view-wide:text-[length:var(--size-headingMedium,36px)]",shelfHeadingUpTo800Xl:"max-view-wide:text-[length:var(--size-headingMedium,40px)]",shelfHeading1:"text-[length:var(--size-headingMedium,40px)]",shelfHeading2:"text-[length:var(--size-headingMedium,48px)]",shelfHeading3:"text-[length:var(--size-headingMedium,56px)]",shelfHeading4:"text-[length:var(--size-headingMedium,64px)]"},lE=[{value:"para",label:"Paragraph size \u2014 13px",cls:`font-mono font-normal uppercase tracking-[0.22em] ${Ee.shelfLabel}`},{value:"sm",label:"Small \u2014 40px",cls:`font-heading2 font-medium tracking-[-0.03em] ${Ee.shelfHeading1} ${Ee.shelfHeadingUpTo800Xs}`},{value:"md",label:"Medium \u2014 48px",cls:`font-heading2 font-medium tracking-[-0.03em] ${Ee.shelfHeading2} ${Ee.shelfHeadingUpTo800Small}`},{value:"lg",label:"Large \u2014 56px",cls:`font-heading2 font-medium tracking-[-0.03em] ${Ee.shelfHeading3} ${Ee.shelfHeadingUpTo800Large}`},{value:"xl",label:"Extra large \u2014 64px",cls:`font-heading2 font-medium tracking-[-0.03em] ${Ee.shelfHeading4} ${Ee.shelfHeadingUpTo800Xl}`}],i$="lg";function d$(e){return(lE.find(o=>o.value===e)??lE.find(o=>o.value===i$)).cls}var Gn=(e,o=!1)=>typeof e=="string"?aE(e,o):e,ur=(e,o=!1)=>typeof e=="string"?Ze(e,o):e;function iE({num:e,title:o,link:t,logo:r,description:a,accent:n,accentNum:s,numStyle:l=Tl,look:i="standard",titleAccent:d,accentTracking:f="-0.02em",spaceBelow:m,rowGap:u,descriptionSize:h,className:I="",eyebrowLook:S=Th,titleSize:P,count:T,capped:B=!1,rootPadsBottom:k=!1}){let g=Pt(),b=m??(i==="editorial"?"mb-[60px]":"");if(i==="shelf")return e||o||a||t?Po("div",{className:rt(`${wP} sticky top-[var(--sf-header-h,88px)] z-30 mb-5 flex items-center justify-between gap-4 max-view-wide:flex-wrap max-view-wide:gap-y-2 border-b border-line bg-bg/95 py-3 backdrop-blur-md ${B?"":"-mx-[var(--sf-site-gutter,40px)] px-[var(--sf-site-gutter,40px)] max-view-wide:-mx-[min(20px,var(--sf-site-gutter,40px))] max-view-wide:px-[min(20px,var(--sf-site-gutter,40px))]"}`,g),children:[Po("div",{className:"flex min-w-0 items-end gap-6 max-view-wide:flex-col max-view-wide:items-stretch max-view-wide:gap-3",children:[e&&Se("span",{className:`font-mono ${Ee.shelfLabel} leading-none uppercase tracking-[0.22em] text-fg-dim`,children:ur(e)}),o&&Se("h2",{className:`${d$(P)} leading-none text-fg max-view-wide:leading-[1] [&>span]:block`,children:Gn(o)})]}),(a||t||T)&&Po("div",{className:"flex items-center gap-5 max-view-wide:gap-3 view-wide:grow view-wide:justify-end",children:[a&&Se("span",{className:`max-w-[340px] truncate font-display ${Ee.shelfBody} leading-[1.4] text-fg-dim max-view-wide:hidden view-wide:w-0 view-wide:grow view-wide:text-right`,children:ur(a)}),t&&Po(ga,{newTab:"auto",href:t.href,className:`inline-flex items-center gap-2 whitespace-nowrap font-mono ${Ee.shelfLabel} uppercase tracking-[0.2em] text-fg-dim transition-colors hover:text-fg`,children:[ur(t.text),Se("span",{"aria-hidden":!0,children:"\u2192"})]}),T&&Se("span",{className:`whitespace-nowrap font-mono ${Ee.shelfLabelSmall} uppercase tracking-[0.2em] text-fg-dim`,children:T})]})]}):null;if(i==="editorial"){let y=!!o||!!d;return Po("header",{className:`${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(jn,{text:e,className:"pb-2"}):Se("span",{className:"pb-2",children:e})),y&&Po("h2",{className:"font-heading2 text-[length:min(var(--size-headingMedium,clamp(40px,5.5vw,80px)),var(--sf-heading-max,9999px))] font-medium uppercase leading-none tracking-[-0.03em]",children:[o,d&&Po(l$,{children:[" ",Se("em",{className:"font-serif font-normal italic text-accent",style:{letterSpacing:f},children:d})]})]}),a&&Se("p",{className:`max-w-[360px] pb-1 text-right font-display ${Ee.bodySmall} leading-[1.5] text-fg-dim max-view-desktop:max-w-full max-view-desktop:text-left`,children:a})]})}if(i==="simple"){let y=`${b} ${I}`.trim();return Po("div",{className:y||void 0,children:[e&&(typeof e=="string"?Se(jn,{text:e,look:S,className:"mb-4 block"}):Se("span",{className:"mb-4 block",children:e})),o&&Se("h2",{className:`font-heading2 ${Ee.headingMedium2} font-medium uppercase leading-none tracking-[-0.02em] text-fg ${Ee.headingMediumUpTo800Small}`,children:Gn(o)})]})}if(i==="statement"){let y=`${b} ${I}`.trim();return Po("div",{className:y||void 0,children:[e&&(typeof e=="string"?Se(jn,{text:e,look:S,className:"mb-4 block"}):Se("span",{className:"mb-4 block",children:e})),o&&Se("h2",{className:"font-heading2 text-[length:min(var(--size-headingMedium,clamp(40px,5vw,72px)),var(--sf-heading-max,9999px))] font-medium uppercase leading-none tracking-[-0.03em] text-fg",children:Gn(o,!0)})]})}if(i==="natural"){let y=`flex max-w-[680px] flex-col ${u??"gap-5"} ${b} ${I}`.replace(/\s+/g," ").trim();return Po("div",{className:y,children:[e&&(typeof e=="string"?Se(jn,{text:e,look:S}):Se("span",{children:e})),o&&Se("h2",{className:`font-heading2 ${Ee.headingMedium2} font-medium leading-[1.05] tracking-[-0.03em] ${Ee.headingMediumUpTo800Small}`,children:Gn(o)}),a&&Se("p",{className:`${h??`${Ee.bodyLarge}`} leading-[1.6] opacity-85`,children:a})]})}if(i==="essay"){let y=`${b} ${I}`.trim();return Po("div",{className:y||void 0,children:[e&&(typeof e=="string"?Se(jn,{text:e,look:S,className:"mb-4 block"}):Se("span",{className:"mb-4 block",children:e})),o&&Se("h2",{className:`font-heading2 ${Ee.headingMedium1} [font-weight:var(--sf-heading-weight,500)] [text-transform:var(--sf-heading-case,uppercase)] [&_em]:[font-weight:var(--sf-heading-weight-strong,inherit)] leading-none tracking-[-0.02em] text-fg ${Ee.headingSmallUpTo800}`,children:Gn(o)})]})}let E=!!a||!!t,A=!!o,N=TO(l)==="outlined",w=`font-mono ${Ee.label} uppercase tracking-[0.3em]`,_=null;if(e)if(N)_=Se("span",{className:`${OO} text-fg-dim ${Ph}`,children:ur(e)});else if(s&&!n&&typeof e=="string"){let y=e.indexOf("/"),v=y===-1?e:e.slice(0,y),O=y===-1?"":e.slice(y);_=Po("span",{className:w,children:[Se("span",{className:"text-accent",children:ur(v)}),O&&Se("span",{className:"text-fg-dim",children:ur(O)})]})}else _=Se("span",{className:`${w} ${n?"text-accent":"text-fg-dim"}`,children:ur(e)});return Po("div",{className:k?"grid grid-cols-[auto_1fr_auto] items-end gap-10 border-b border-line pb-6 max-view-wide:grid-cols-1 max-view-wide:gap-3 max-view-wide:pb-5":"mb-16 grid grid-cols-[auto_1fr_auto] items-end gap-10 border-b border-line pb-6 max-view-wide:mb-9 max-view-wide:grid-cols-1 max-view-wide:gap-3 max-view-wide:pb-5",children:[N&&e&&Se("style",{children:EO}),Po("div",{className:"flex flex-col items-start gap-3",children:[r?.src&&Se(Bk,{children:Se(Qf,{...f$(yP(r.src)),alt:r.alt,className:"h-8 w-auto object-contain"})}),_]}),A&&Se("h2",{className:n?"font-heading2 text-[length:min(var(--size-headingMedium,clamp(36px,5vw,64px)),var(--sf-heading-max,9999px))] [font-weight:var(--sf-heading-weight,500)] [text-transform:var(--sf-heading-case,uppercase)] [&_em]:[font-weight:var(--sf-heading-weight-strong,inherit)] leading-[0.95] tracking-[-0.025em]":`font-heading2 ${Ee.headingMedium3} [font-weight:var(--sf-heading-weight,500)] [&_em]:[font-weight:var(--sf-heading-weight-strong,inherit)] leading-none tracking-[-0.03em] whitespace-pre-line ${Ee.headingMediumUpTo800Large} max-view-wide:leading-[1]`,children:Gn(o)}),E&&Po("div",{className:"flex flex-col items-end gap-3 max-view-wide:items-start",children:[a&&Se("p",{className:`max-w-[340px] font-display ${Ee.bodySmall} leading-[1.5] text-fg-dim text-right max-view-wide:max-w-full max-view-wide:text-left`,children:ur(a)}),t&&Po(ga,{newTab:"auto",href:t.href,className:`inline-flex items-center gap-2 whitespace-nowrap font-mono ${Ee.label} uppercase tracking-[0.2em] text-fg-dim transition-colors hover:text-fg`,children:[ur(t.text),Se("span",{"aria-hidden":!0,children:"\u2192"})]})]})]})}function f$(e){let o=ya(e,{fallbackWidth:640,maxWidth:960});return o.srcSet?{src:o.src,srcSet:o.srcSet,sizes:"240px"}:{src:e}}function dE({num:e,title:o,titleAccent:t,desc:r,accentTracking:a="-0.02em",spaceBelow:n="mb-[60px]",className:s=""}){return c$(iE,{look:"editorial",num:e,title:o,titleAccent:t,description:r,accentTracking:a,spaceBelow:n,className:s})}import{jsx as Nl,jsxs as g$}from"react/jsx-runtime";import{useEffect as y$,useState as yE}from"react";import{jsx as p$}from"react/jsx-runtime";var fE="sf-photo-hover";function Dc({sheet:e,name:o=fE}){return e?p$("style",{href:o,precedence:fE,dangerouslySetInnerHTML:{__html:e}}):null}import{jsx as hE,Fragment as x$}from"react/jsx-runtime";import{createContext as h$,useContext as Mc}from"react";var u$=Jb["view-desktop"];function m$(e,o){return[...[...e].sort((t,r)=>t.below-r.below).map(t=>`(max-width: ${t.below-.02}px) ${t.slot}`),o].join(", ")}var $h=e=>`${Math.ceil(e*1e4-1e-6)/100}vw`,Nc=e=>{let o=/^([\d.]+)vw$/.exec(e??"");return o?Math.min(1,Number(o[1])/100):1};function ice(e,o){return{phone:$h(e.phone*Nc(o?.phone)),tablet:$h(e.tablet*Nc(o?.tablet)),desktop:$h(e.desktop*Nc(o?.desktop))}}function zh(e){if([e.phone,e.tablet,e.desktop].every(r=>Nc(r)>=1))return;let o=[{below:tr,slot:e.phone},{below:u$,slot:e.tablet}],t=o.filter((r,a)=>r.slot!==(o[a+1]?.slot??e.desktop));return m$(t,e.desktop)}function cE(e){let o=e.split(/,\s*(?![^()]*\))/).map(a=>a.trim()),t=[];for(let a of o.slice(0,-1)){let n=/^\(max-width:\s*([\d.]+)px\)\s+(.+)$/.exec(a);if(!n)return null;let s=Number(n[1]);if(t.length&&s<=t[t.length-1].edge)return null;t.push({edge:s,slot:n[2]})}let r=o[o.length-1];return!r||r.startsWith("(")?null:{steps:t,last:r}}var pE=(e,o)=>e.steps.find(t=>o<=t.edge)?.slot??e.last,uE=e=>{let o=/^min\((.+)\)$/.exec(e);return o?o[1].split(/,\s*(?![^()]*\))/).map(t=>t.trim()):[e]};function mE(e,o){if(e===o)return e;let t=[...uE(e),...uE(o)],r=s=>{let l=t.map(i=>new RegExp(`^([\\d.]+)${s}$`).exec(i)).filter(Boolean).map(i=>Number(i[1]));return l.length?[`${Math.min(...l)}${s}`]:[]},a=[...new Set(t.filter(s=>!/^[\d.]+(vw|px)$/.test(s)))],n=[...r("vw"),...r("px"),...a];return n.length===1?n[0]:`min(${n.join(", ")})`}function xE(e,o){if(!o)return e;let t=cE(e),r=cE(o);if(!t||!r)return e;let a=[...new Set([...t.steps,...r.steps].map(s=>s.edge))].sort((s,l)=>s-l).map(s=>({edge:s,slot:mE(pE(t,s),pE(r,s))})),n=mE(t.last,r.last);return[...a.filter((s,l)=>s.slot!==(a[l+1]?.slot??n)).map(s=>`(max-width: ${s.edge}px) ${s.slot}`),n].join(", ")}var I$={hasWidth:!1},Dl=h$(I$);function uce(){return Mc(Dl).hasWidth}function mce(e){let{bound:o}=Mc(Dl);return o&&zh(o)||e}function IE(e){let{bound:o}=Mc(Dl);return xE(e,o&&zh(o))}function gE({children:e}){let o=Mc(Dl);return o.bound?hE(Dl.Provider,{value:{hasWidth:o.hasWidth},children:e}):hE(x$,{children:e})}function SE({fallback:e,className:o,src:t,alt:r="",objectPosition:a,objectFit:n="cover",sizes:s="100vw",sizesFromCell:l=!1,priority:i=!1,deferFetch:d=!1,showBackground:f=!0,treatment:m}){let u=fh(),h=IE(s),I=l?h:s,[S,P]=yE(!1),[T,B]=yE(!1),k=t||"";y$(()=>{P(!1),B(!1)},[k]);let g=Sf(k),b=g&&!T?ya(k):{src:k},E=!k||S;return g$("div",{className:`relative h-full w-full overflow-hidden ${o??""}`,children:[Nl("div",{className:"absolute inset-0 flex items-center justify-center",style:f?{background:"var(--site-surface)"}:void 0,children:E?e:null}),Nl(of,{fill:tl,children:k&&(g?Nl("img",{src:b.src,alt:r,...b.srcSet?{srcSet:b.srcSet,sizes:I}:{},decoding:"async",...d?{loading:"lazy"}:u,className:`absolute inset-0 h-full w-full${m?.className?` ${m.className}`:""}`,style:{display:S?"none":"block",objectFit:n,...a?{objectPosition:a}:{},...m?.style??{}},onError:()=>b.srcSet?B(!0):P(!0)}):Nl(vc,{src:k,alt:r,fill:!0,sizes:I,priority:i,...m?.className?{className:m.className}:{},style:{display:S?"none":"block",objectFit:n,...a?{objectPosition:a}:{},...m?.style??{}},onError:()=>P(!0)}))}),Nl(Dc,{sheet:m?.sheet})]})}import{jsx as S$}from"react/jsx-runtime";var Ml="sf-empty-hides",Uh="sf-empty-else",Hc="sf-head-core",Wc="sf-head-box",Hl="holdsHeadCore",Wl="isHeadCore",b$=`.${Ml}:empty{display:none}.${Ml}:not(:empty)~.${Uh}{display:none}.${Wc},.${Hc}{display:contents}.${Wc}:not(:has(.${Hc}:not(:empty))){display:none}`;function $c(){return S$("style",{children:b$})}var Ho={headingSmallUpTo700Small:"max-[700px]:text-[length:var(--size-headingSmall,26px)]",headingSmallUpTo700Large:"max-[700px]:text-[length:var(--size-headingSmall,28px)]",bodySmall:"text-[length:var(--size-body,15px)]",bodyLarge:"text-[length:var(--size-body,18px)]",headingSmall1:"text-[length:var(--size-headingSmall,28px)]",headingSmall2:"text-[length:var(--size-headingSmall,34px)]",labelSmall:"text-[length:var(--size-label,11px)]",label:"text-[length:var(--size-label,12px)]",labelLarge:"text-[length:var(--size-label,13px)]"},bE={2:"grid-cols-2 max-[900px]:grid-cols-1",3:"grid-cols-3 max-view-desktop:grid-cols-1",4:"grid-cols-4 max-view-desktop:grid-cols-2 max-[700px]:grid-cols-1"},jh="sf-itc-boxes",C$="sf-itc-steps";function Gh(e){return(e??[]).filter(o=>(o?.tag??"").trim()||(o?.meta??"").trim()||(o?.title??"").trim()||(o?.copy??"").trim()||(o?.image??"").trim()||(o?.specs??[]).some(t=>(t?.label??"").trim()||(t?.value??"").trim()))}function Gce({num:e,title:o,description:t,boxes:r,steps:a,columns:n=3,cta:s,padTop:l,padBottom:i,bandPad:d,editing:f=!1,omitHead:m=!1,cardImage:u,cardImageUnit:h,cardText:I,rows:S,copies:P}){let T=Pt(),B=P!==void 0,k=S&&(B||(r?.blockCount??0)>0)?S:null,g=d??Pk({padTop:l,padBottom:i},Hn("ProcessSteps")),b=B?[]:Gh(a),E=b.length>0?b:f&&!r&&!B?[1,2,3].map(y=>({tag:c("Column {n}",{n:y})})):[],A=bE[n]??bE[3],N=k?"grid-cols-1":A,w=k?"":" [&>*]:min-h-[560px]",_=I==="on-image";return _e(fe,{as:"section",className:rt(["relative z-[2] border-b border-line bg-bg",g.className].filter(Boolean).join(" "),T),style:{...g.style,...lT(u,h)},children:mr("div",{className:rt(TC,T),children:[m?null:_e(dE,{num:e,title:o?.trim()?Ze(o,!0):void 0,desc:t?.trim()?Ze(t,!1):void 0}),r&&!B?mr(w$,{children:[_e($c,{}),k?_e(Cc.Provider,{value:{hand:k,ids:r.blockIds??[],boxes:[]},children:_e(r,{className:`${jh} ${Ml} sf-card grid ${N} gap-[2px] border border-line bg-line${w} [&>*]:bg-bg`,minEmptyHeight:260})}):_e(r,{className:`${jh} ${Ml} sf-card grid ${N} gap-[2px] border border-line bg-line [&>*]:min-h-[560px] [&>*]:bg-bg`,minEmptyHeight:260})]}):null,B&&P?_e("div",{className:`${jh} sf-card grid ${N} gap-[2px] border border-line bg-line${w} [&>*]:bg-bg`,children:k?_e(Cc.Provider,{value:{hand:k,copies:!0},children:P}):P}):null,E.length>0&&_e("div",{className:`${C$} ${Uh} sf-card grid ${A} gap-[2px] border border-line bg-line`,children:E.map((y,v)=>{let O=(y.specs??[]).filter(C=>(C?.label??"").trim()||(C?.value??"").trim());return mr("article",{className:_?"flex flex-col bg-bg":"flex min-h-[560px] flex-col bg-bg",children:[mr("div",{className:_?"sf-card-image relative aspect-[5/3] overflow-hidden bg-surface max-[700px]:aspect-[4/3]":"sf-card-image relative aspect-[5/3] overflow-hidden border-b border-line bg-surface",children:[_e(SE,{label:y.tag?.trim()||y.title?.trim()||`column-${v+1}`,src:y.image||void 0,sizes:"(max-width: 1100px) 100vw, 33vw",...r?{deferFetch:!0}:{}}),_e("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-0 z-[1]",style:{background:`linear-gradient(180deg, ${Vs(.55)} 0%, transparent 30%, transparent 70%, ${Vs(.65)} 100%)`}}),_&&_e("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-x-0 bottom-0 z-[1] h-[78%]",style:{background:`linear-gradient(180deg, transparent 0%, ${Vs(.73)} 55%, ${Vs(.92)} 100%)`}}),y.tag?.trim()&&_e("span",{className:`absolute left-5 top-[18px] z-[2] font-mono ${Ho.label} uppercase tracking-[0.3em] text-accent`,children:lt(y.tag)}),y.meta?.trim()&&_e("span",{className:_?`absolute right-5 top-[18px] z-[2] font-mono ${Ho.label} uppercase tracking-[0.24em] text-overlay-fg/80`:`absolute right-5 bottom-[18px] z-[2] font-mono ${Ho.label} uppercase tracking-[0.24em] text-overlay-fg/80`,children:lt(y.meta)}),_&&(y.title?.trim()||y.copy?.trim())&&mr("div",{className:"absolute inset-x-0 bottom-0 z-[2] flex flex-col gap-2.5 px-8 pb-7 pt-14 max-[700px]:px-6 max-[700px]:pb-6",children:[y.title?.trim()&&_e("h3",{className:`flex min-h-[2em] flex-col justify-end font-heading3 ${Ho.headingSmall1} font-medium uppercase leading-none tracking-[-0.02em] text-overlay-fg ${Ho.headingSmallUpTo700Small}`,children:Ze(y.title,!0)}),y.copy?.trim()&&_e("p",{className:`min-h-[3em] font-display ${Ho.bodySmall} leading-[1.5] text-overlay-fg/85`,children:Ze(y.copy,!1)})]})]}),_?O.length>0&&_e("div",{className:"grid grid-cols-2 gap-2 border-t border-line px-8 py-7 max-[700px]:px-6 max-[700px]:py-6",children:O.map((C,L)=>mr("div",{className:"flex flex-col gap-1",children:[C.label?.trim()&&_e("span",{className:`font-mono ${Ho.labelSmall} uppercase tracking-[0.24em] text-fg-dim`,children:lt(C.label)}),C.value?.trim()&&_e("span",{className:`font-display ${Ho.bodyLarge} font-medium tracking-[-0.01em] text-fg`,children:lt(C.value)})]},L))}):mr("div",{className:"flex flex-1 flex-col gap-4 px-8 py-9 max-[700px]:px-6 max-[700px]:py-7",children:[y.title?.trim()&&_e("h3",{className:`font-heading3 ${Ho.headingSmall2} font-medium uppercase leading-none tracking-[-0.02em] ${Ho.headingSmallUpTo700Large}`,children:Ze(y.title,!0)}),y.copy?.trim()&&_e("p",{className:`font-display ${Ho.bodySmall} leading-[1.55] text-fg-dim`,children:Ze(y.copy,!1)}),O.length>0&&_e("div",{className:"mt-auto grid grid-cols-2 gap-2 border-t border-line pt-4",children:O.map((C,L)=>mr("div",{className:"flex flex-col gap-1",children:[C.label?.trim()&&_e("span",{className:`font-mono ${Ho.labelSmall} uppercase tracking-[0.24em] text-fg-dim`,children:lt(C.label)}),C.value?.trim()&&_e("span",{className:`font-display ${Ho.bodyLarge} font-medium tracking-[-0.01em] text-fg`,children:lt(C.value)})]},L))})]})]},v)})}),s?.text&&_e("div",{className:"mt-12 flex justify-end border-t border-line pt-8",children:mr(ga,{newTab:"auto",href:s.href,className:`group inline-flex items-center gap-3.5 border border-line px-6 py-4 font-mono ${Ho.labelLarge} uppercase tracking-[0.3em] text-fg transition-colors hover:border-accent hover:text-accent`,children:[lt(s.text),_e("span",{"aria-hidden":!0,className:"text-accent transition-transform group-hover:translate-x-[3px]",children:"\u2192"})]})})]})})}var k$=["selected","highlighted"],wE="data-sf-card-state",kE="pointer-events-none absolute inset-0 border border-accent",vE="pointer-events-none absolute inset-x-0 bottom-0 border-b-2 border-accent",PE="pointer-events-none absolute inset-0 border-2 border-accent outline outline-1 -outline-offset-1 outline-accent",TE="absolute inset-y-0 left-0 w-[3px] bg-accent",OE="absolute -inset-[2px] -z-[1] bg-[color-mix(in_oklab,var(--accent)_14%,transparent)]",EE="after:pointer-events-none after:absolute after:inset-0 hover:after:border-2 hover:after:border-accent",CE=e=>{let o=iC.find(t=>t.role===e)?.token;if(!o)throw new Error(`card-state: the palette has no ink token for "${e}"`);return o},v$={[CE("muted")]:`var(${CE("fg")})`};function Kh(e){return e?.selected===!0}function qh(e){return e?k$.filter(o=>e[o]===!0).join(" "):""}function _E(e,o="frame"){let t=qh(e);return t?o==="frame"&&Kh(e)?{[wE]:t,className:"relative isolate",style:{...v$}}:{[wE]:t,className:"relative"}:{}}var P$={highlighted:!0},T$={},zc="badge";function Xce(e,o=[]){return e.map((t,r)=>({...t,key:t.key||o[r]?.key||js(t,r)}))}function AE(e){return!e||typeof e!="object"?!1:Object.entries(e).some(([o,t])=>o==="key"||o===zc||o==="state"?!1:typeof t=="string"?t.trim()!=="":Array.isArray(t)?t.length>0:t!=null&&typeof t!="function")}function Zce(e,{chosen:o,badge:t}){let r=o.trim(),a=r?e.findIndex(n=>n.key===r):-1;return{rows:e.map((n,s)=>({...n,[zc]:s===a?t:""})),states:e.map((n,s)=>s===a?P$:T$)}}function Jce(e){return{chosen:typeof e.highlightedCard=="string"?e.highlightedCard.trim():"",badge:typeof e.highlightBadge=="string"?e.highlightBadge:""}}function Qce(e){if(!e||typeof e!="object")return;let{press:o,pressLabel:t,pressDisabled:r}=e;if(typeof o=="function")return{press:o,...typeof t=="string"&&t.trim()!==""?{label:t}:null,...r===!0?{disabled:!0}:null}}var FE="data-sf-card-press",BE=`${wO} appearance-none bg-transparent border-0 p-0 m-0`,LE=`${BE} cursor-pointer`,RE=BE;import{paymentMarkItems as O$,paymentMarks as E$}from"efficient-shell/icons/payment";var _$=[tb,rb],DE=e=>_$.includes(e),NE=e=>O$({name:e.label,kind:e.kind}),A$=(e,o)=>e.kind===o.kind&&e.label===o.label&&(e.kind==="brand"?e.mark===o.mark:e.glyph===o.glyph);function ME(e){return E$(e.map(o=>({name:o.label,kind:o.kind}))).map(o=>({label:o.label,kind:e.find(t=>NE(t).some(r=>A$(r,o)))?.kind??""}))}function rpe(e){return NE(e)[0]??null}var HE={heading:"Trusted by *teams worldwide*"},Uc=()=>[{src:"",alt:c("Logo one")},{src:"",alt:c("Logo two")},{src:"",alt:c("Logo three")},{src:"",alt:c("Logo four")},{src:"",alt:c("Logo five")}],F$=id.Logos,lpe={label:"Logos",drawsPictures:!0,fields:F$,defaultProps:{items:[],contained:!0}};var B$=()=>Uc().map(e=>({label:e.alt}));function WE(e,o){let t=ld(e,o,B$()).rows.filter(r=>r.label);return DE(Me(e))?ME(t):t}var $l="Flex",R$="Text",zl=e=>Object.values(e??{}).filter(zE),D$=e=>e.type===io&&Me(e.props)!=="",UE=e=>{if(e.type!==$l)return!1;let o=zl(e.props).flat();return o.length>0&&o.every(D$)},jc=e=>fn(e.props?.headPlacement)==="own-box"||UE(e),Vh=e=>e===void 0||Array.isArray(e)&&e.length===0;function jE(e){return e.type===R$?!0:e.type===$l&&zl(e.props).every(o=>o.every(jE))}var GE={ProcessSteps:e=>Vh(e.boxes)&&Gh(e.steps).length===0,Logos:e=>Me(e)?N$(e):Vh(e.logos)&&Vh(e.items)};function N$(e){return ib(e)!==null&&WE(e,!1).length===0}function M$(e){return zl(e.props).flat().every(o=>!ld(o.props,!1).rows.some(AE))}function Gc(e){let o=zl(e.props).flat();return o.some(jc)&&o.every(t=>jc(t)||jE(t))}function H$(e){if(!L$(e)||!jc(e))return e;let o=UE(e)?M$(e):z(GE,String(e.type))?.(e.props??{})===!0;return{...e,props:{...e.props,[Wl]:o?"empty":!0}}}function $E(e){return Xe(e,o=>ze(o,H$))}function KE(e){let o=Object.entries(e.props??{}).filter(([,r])=>zE(r)).filter(([,r])=>r.length>0);if(o.length!==1||o[0][1].length!==1)return null;let t=o[0][1][0];return t?.type===$l&&t.props?{key:o[0][0],inner:t}:null}function qE(e){if(e?.type!==$l||!e.props)return e;if(Gc(e)){let t=$E(e);return{...t,props:{...t.props,[Hl]:!0}}}let o=KE(e);return!o||!Gc(o.inner)?e:{...e,props:{...e.props,[o.key]:[$E(o.inner)],[Hl]:!0}}}function VE(e){let o=e;if(!o||!Array.isArray(o.content))return e;let t=!1,r=o.content.map(a=>{let n=qE(a);return n!==a&&(t=!0),n});return t?{...o,content:r}:e}var W$=e=>z(GE,String(e.type))?.(e.props??{})===!0;function $$(e){if(e.type!==$l||!e.props)return!1;let o=Gc(e)?null:KE(e),t=o?o.inner:e;if(!Gc(t))return!1;let r=zl(t.props).flat().filter(jc);return r.some(a=>Me(a.props)!=="")&&r.every(W$)}function YE(e){return Xe(e,o=>z$(o))}function z$(e){let o=!1,t=[];for(let r of e){if($$(r)){o=!0;continue}let a=YE(r);a!==r&&(o=!0),t.push(a)}return o?t:e}function XE(e){let o=e;if(!o||!Array.isArray(o.content))return e;let t=!1,r=o.content.map(a=>{if(qE(a)!==a)return a;let n=YE(a);return n!==a&&(t=!0),n});return t?{...o,content:r}:e}var U$=["DocMasthead","AlloyWheelsListing"],Kc="titleLevel",j$=e=>e===2?"h2":"h1",Yh=e=>j$(e?.[Kc])==="h2";function ZE(e){let o=e;if(!o?.content?.length)return e;let t=!1,r=!1,a=o.content.map(n=>U$.includes(n?.type??"")?t?(r=!0,{...n,props:{...n.props??{},[Kc]:2}}):(t=!0,n):n);return r?{...o,content:a}:e}import{readHidable as X$}from"efficient-easel/draw";var Kn="showFor";function JE(){return en("efficient.box-show-for-choices",()=>({choices:[],revision:0}))}var G$=e=>!!e&&typeof e=="object"&&typeof e.slug=="string"&&e.slug.trim()!==""&&typeof e.name=="string"&&e.name.trim()!=="";function Ppe(){return JE().choices}function Tpe(){return JE().revision}function QE(e){return G$(e)?{slug:e.slug,name:e.name}:void 0}import{readHidable as K$}from"efficient-easel/draw";var Xh="_wallLabelId",q$="_wallLabelledBy",Zh=e=>e.props?.id==null?"":String(e.props.id);function V$(e){if(!e||e.type!=="Text"||!Zh(e))return!1;let o=K$(e.props?.text);return!o.hidden&&o.text.trim()!==""}var Y$=e=>!!e&&e.type==="Logos"&&e.props?.look==="marks"&&Zh(e)!=="",e_=(e,o,t)=>({...e,props:{...e.props,[o]:t}});function o_(e){let o=ze(e,r=>Xe(r,o_)),t=null;for(let r=1;r<o.length;r++){if(!Y$(o[r])||!V$(o[r-1]))continue;let a=`sf-wall-label-${Zh(o[r-1])}`;t??=o.slice(),t[r-1]=e_(t[r-1],Xh,a),t[r]=e_(t[r],q$,a)}return t??o}function t_(e){return rn(e,o_)}var r_="_cardPressTitles",Z$="_cardPressTitle";function Mpe(e,o){let t=e?.[r_],r=t&&typeof t=="object"?t[o]:void 0;return Array.isArray(r)&&r.length?r:void 0}var a_=(e,o)=>({...e,props:{...e.props,...o}});function J$(e){let o=e.props??{};return e.type!=="Text"||X$(o.text).hidden||typeof o[Vo]=="string"||typeof o[Xh]=="string"?"":Wt(o)}function n_(e,o,t,r){return ze(e,a=>{let n=J$(a);if(n&&!r.has(n))return r.add(n),t.push({field:n,gates:o}),a_(a,{[Z$]:!0});if(a.type==="Text"||Array.isArray(a.props?.[Kn]))return a;let s=a.props?.[on],l=Array.isArray(s)&&s.length?[...o,s.filter(i=>typeof i=="string")]:o;return Xe(a,(i,d)=>aa(a.type,d)?i:n_(i,l,t,r))})}function s_(e){let o,t=Xe(e,(r,a)=>{let n=ze(r,s_);if(!aa(e.type,a))return n;let s=[],l=n_(n,[],s,new Set);return s.length&&((o??={})[a]=s),l});return o?a_(t,{[r_]:o}):t}function l_(e){return rn(e,o=>ze(o,s_))}import{pinnedDuplicateIndices as $U}from"efficient-easel/draw";import{jsx as Wo,jsxs as I1}from"react/jsx-runtime";import{createContext as BU,useContext as LU,useEffect as RU,useRef as g1,useState as y1}from"react";import{jsx as Dr,jsxs as v_}from"react/jsx-runtime";import{useEffect as qn,useRef as P_,useState as Ca}from"react";import{jsx as i_,Fragment as Q$,jsxs as ez}from"react/jsx-runtime";import{useEffect as oz,useRef as d_,useState as tz}from"react";var rz="#t=0.001",az=2;function nz(e,o){if(e.readyState<az||!e.videoWidth||!e.videoHeight)return!1;let t=o.getContext("2d");return t?(o.width=e.videoWidth,o.height=e.videoHeight,t.drawImage(e,0,0,o.width,o.height),!0):!1}function f_({src:e,objectPosition:o="50% 50%",onError:t}){let r=d_(null),a=d_(null),[n,s]=tz(!1);return oz(()=>{let l=r.current,i=a.current;if(n||!l||!i)return;let d=()=>{nz(l,i)&&s(!0)};return d(),l.addEventListener("loadeddata",d),l.addEventListener("seeked",d),()=>{l.removeEventListener("loadeddata",d),l.removeEventListener("seeked",d)}},[n]),ez(Q$,{children:[i_("canvas",{ref:a,"aria-hidden":!0,className:"absolute inset-0 z-[3] h-full w-full object-cover",style:{objectPosition:o,visibility:n?"visible":"hidden"}}),!n&&i_("video",{ref:r,src:`${e}${rz}`,muted:!0,playsInline:!0,preload:"auto",className:"hidden",onError:t})]})}import{useEffect as dz}from"react";import{PIN_SCRUB as fz,PIN_STEPS_ATTR as h_}from"efficient-shell/format";var c_="video-time";function p_(e,o,t){if(!Number.isFinite(t)||t<=0)return e;let r=(e+o*t)%t;return r<0?r+t:r}function u_(e,o,t,r){if(!Number.isFinite(r)||r<=0)return e;let a=Math.max(0,r-lz),n=Math.min(a,Math.max(0,e)),s=Math.min(1,Math.max(0,t));return s>=o?o>=1?a:n+(s-o)/(1-o)*(a-n):o<=0?0:n*(s/o)}function m_(e,o){return!(o&&e>=1-sz)}var sz=.005,lz=.05;function x_(e,o){let t=e.height-o,r=t>0?-e.top/t:(o-e.top)/(o+e.height);return Math.min(1,Math.max(0,r))}function I_(e,o,t){dz(()=>{let r=t.current;if(!e||!r)return;let a=r.ownerDocument.defaultView??window,n=r.closest("[data-motion-pin]"),s=n??r;n?.setAttribute(h_,fz);let l=()=>{let k=s.getBoundingClientRect();return x_({top:k.top,height:k.height},a.innerHeight)},i=l(),d=!1,f=0,m=0,u=0,h=!1,I=0,S=()=>{let k=o.current;if(k){if(Math.abs(k.currentTime-f)<.01){h=!1;return}h=!0,k.currentTime=f}},P=()=>{h=!1;let k=o.current;d&&k&&Math.abs(k.currentTime-f)>.02&&S()},T=()=>{let k=l(),g=k-i;i=k;let b=o.current;g===0||!b||!b.duration||(d||(d=!0,b.pause(),f=b.currentTime,m=k-g,u=f),f=n?u_(u,m,k,b.duration):p_(f,g,b.duration),h||S(),a.clearTimeout(I),I=a.setTimeout(()=>{d=!1,m_(l(),!!n)&&o.current?.play()?.catch(()=>{})},150))},B=()=>{i=l()};return r.addEventListener("seeked",P,!0),a.addEventListener("scroll",T,{passive:!0}),a.addEventListener("resize",B),()=>{n?.removeAttribute(h_),r.removeEventListener("seeked",P,!0),a.removeEventListener("scroll",T),a.removeEventListener("resize",B),a.clearTimeout(I)}},[e,o,t])}import{useEffect as pz}from"react";var g_="video-name-ticks";var y_='[data-part="text"] a[href]';function S_(e,o,t){if(t<=0)return[];if(!Number.isFinite(o)||o<=0)return Array.from({length:t},()=>0);let r=o/t;return Array.from({length:t},(a,n)=>Math.min(1,Math.max(0,(e-n*r)/r)))}function b_(e,o,t){return t<=0||!Number.isFinite(o)||o<=0?0:Math.min(t-1,Math.max(0,Math.floor(e/(o/t))))}var uz="var(--overlay-fg)",mz="color-mix(in srgb, var(--overlay-fg) 25%, transparent)";function w_(e,o,t){pz(()=>{let r=t?.current;if(e==="none"||!r)return;let a=r.ownerDocument.defaultView??window,n=r.closest("section")??r.parentElement,s=e==="names"&&n?[...n.querySelectorAll(y_)]:[],l=[];if(e==="names"){r.replaceChildren();for(let m=0;m<s.length;m++){let u=r.ownerDocument.createElement("b");u.style.background=mz;let h=r.ownerDocument.createElement("i");h.style.background=uz,h.style.transform="scaleX(0)",u.appendChild(h),r.appendChild(u),l.push(h)}}let i=s.map(m=>m.style.opacity),d=0,f=()=>{let m=o.current;if(m&&m.duration)if(e==="bar")r.style.transform=`scaleX(${Math.min(1,m.currentTime/m.duration)})`;else{let u=S_(m.currentTime,m.duration,l.length);l.forEach((I,S)=>{I.style.transform=`scaleX(${u[S]})`});let h=b_(m.currentTime,m.duration,s.length);s.forEach((I,S)=>{I.style.opacity=S===h?"":String(.55)})}d=a.requestAnimationFrame(f)};return d=a.requestAnimationFrame(f),()=>{a.cancelAnimationFrame(d),s.forEach((m,u)=>{m.style.opacity=i[u]??""}),e==="names"&&r.replaceChildren()}},[e,o,t])}var xz="data-part",Jpe=Object.freeze({Flex:Object.freeze(["box","card","card-content"]),Grid:Object.freeze(["grid"]),Hero:Object.freeze(["hero","arrows","arrow","dots","dot","strip"]),HeroSlide:Object.freeze(["slide","hero-media","tint","overlay","hero-content","video-time","video-name-ticks"]),HeroSingle:Object.freeze(["hero","hero-media","tint","overlay","hero-content","video-time","video-name-ticks"]),ImageBlock:Object.freeze(["image-block","image-frame","image"]),ButtonBlock:Object.freeze(["button-block","button","button-icon"]),Text:Object.freeze(["text-block","text"]),Heading:Object.freeze(["heading-block","heading"]),LogoBlock:Object.freeze(["logo"]),MenuBlock:Object.freeze(["menu-block","heading","menu","menu-item","menu-link","menu-button"]),SiteHeader:Object.freeze(["header","header-content"]),SiteFooter:Object.freeze(["footer"]),FooterSection:Object.freeze(["footer-block","grid","legal-line","copyright"]),FooterLogo:Object.freeze(["logo-block","logo-link","tagline"]),FooterSocial:Object.freeze(["social-block","social-item","social-link"]),ProductGrid:Object.freeze(["product-grid-block","grid-head","grid-number","heading","description","view-all","count","grid","grid-empty"]),ProductCard:Object.freeze(["card","card-link","card-content","image-block","image-frame","image-plate","image","card-number","badges","badge","eyebrow","product-name","pattern","specs","price","price-note","swatches","swatch","sizes","size","buy","button","page-label"])});function it(e){return{[xz]:e}}var Ul={min:40,max:100,step:5,fallback:100,unit:"vh"};function hz(e){return`${typeof e=="number"?e:Ul.fallback}${Ul.unit}`}function C_(...e){return e.some(o=>typeof o=="number"||jl(o)!==null)}var Jh={...Lk,fallback:680,unit:"px"},tue={ratio:"16/9",px:`${Jh.fallback}px`},Iz=/^(\d{1,5}(?:\.\d{1,3})?)px$/;function jl(e){if(typeof e!="string")return null;let o=_k(e);if(o!==null)return{unit:"ratio",value:e,css:"auto",aspect:o};let t=Iz.exec(e);if(t&&Number(t[1])>0){let r=Math.min(Jh.max,Math.max(Jh.min,Number(t[1])));return{unit:"px",value:`${r}px`,px:r,css:`${r}px`}}return null}function gz(e){return Object.keys(e.style??{}).some(o=>o.startsWith("--sf-hero-ar-"))}function rue({heightDesktop:e,heightTablet:o,heightMobile:t,heightFixed:r,heightFixedTablet:a,heightFixedMobile:n}){let s=I=>jl(I)?.value,l=C_(e,t,s(r),s(n)),i=C_(o,s(a)),d=(I,S,P)=>{let T=jl(S);return T?.unit==="ratio"?{[`--sf-hero-h-${I}`]:T.css,[`--sf-hero-ar-${I}`]:T.aspect}:{[`--sf-hero-h-${I}`]:T?.css??hz(P)}},f="view-tablet:max-view-desktop:h-[var(--sf-hero-h-t)]",m=l?i?`h-[var(--sf-hero-h-m)] ${f} view-desktop:h-[var(--sf-hero-h-d)]`:"h-[var(--sf-hero-h-m)] view-tablet:h-[var(--sf-hero-h-d)]":i?`h-screen min-h-[680px] ${f} view-tablet:max-view-desktop:min-h-0`:"h-screen min-h-[680px]";if(!l&&!i)return{className:m,style:void 0};let u={...l?d("d",r,e):{},...i?d("t",a,o):{},...l?d("m",n,t):{}},h=gz({style:u})?l?i?" aspect-[var(--sf-hero-ar-m,auto)] view-tablet:max-view-desktop:aspect-[var(--sf-hero-ar-t,auto)] view-desktop:aspect-[var(--sf-hero-ar-d,auto)]":" aspect-[var(--sf-hero-ar-m,auto)] view-tablet:aspect-[var(--sf-hero-ar-d,auto)]":" view-tablet:max-view-desktop:aspect-[var(--sf-hero-ar-t,auto)]":"";return{className:`${m}${h}`,style:u}}var qc=1280,yz="16 / 9",Sz="100svh",bz=[{minDppx:3.01,dppx:4,capPx:Math.floor(qc/4)},{minDppx:2.01,dppx:3,capPx:Math.floor(qc/3)},{minDppx:1.01,dppx:2,capPx:Math.floor(qc/2)},{minDppx:null,dppx:1,capPx:qc}];function k_(e=Sz){let o=`max(100vw, calc(${e} * ${yz}))`;return[...bz.map(({minDppx:t,capPx:r})=>`${t===null?vn:`${vn} and (min-resolution: ${t}dppx)`} min(${o}, ${r}px)`),"100vw"].join(", ")}function lue(e,o){let t=jl(o);if(t?.unit==="px")return t.css;if(t?.unit==="ratio"){let[r,a]=t.aspect.split("/").map(n=>n.trim());return r&&a?`calc(100vw * ${a} / ${r})`:void 0}if(typeof e=="number"&&e>=Ul.min&&e<=Ul.max)return`${e}svh`}var wz=.5;function Gl({videoSrc:e,videoAv1Src:o,videoSrcPhone:t,videoAv1SrcPhone:r,posterSrc:a,posterSrcPhone:n,showVideo:s=!0,playbackRate:l=wz,objectPosition:i="50% 50%",objectPositionPhone:d,objectPositionTablet:f,quiet:m=!1,slideShown:u,laterSlide:h=!1,laterOfLead:I=!1,phoneFrame:S,followsScroll:P=!1,progress:T,followScrollBar:B}){let k=k_(S),g=SP(d,f),b=Il(),[E,A]=Ca(!1),N=b==="below"&&!E,w=b==="first",_=a||"",y=n||"",v=P_(null),O=_l(v,!0,!0),C=O===void 0?void 0:O==="phone",L=wf({video:e,av1:o,videoPhone:t,av1Phone:r},C===!0),M=L.video||"",K=bf(M,L.av1),[W,se]=Ca(!1),[le,ee]=Ca(!1),[Ie,ae]=Ca(!1),[me,ge]=Ca(!1),Ge=u??!0,[Ve,Eo]=Ca(!1),Ye=b!=="first"&&!I,[Je,qo]=Ca(!1),Qe=P_(null),mo=B?{kind:"bar",fill:B}:void 0;I_(P||!!B,Qe,v),w_((T??mo)?.kind??"none",Qe,(T??mo)?.fill),qn(()=>{if(!Ye)return;if(document.readyState==="complete"){qo(!0);return}let ie=()=>qo(!0);return window.addEventListener("load",ie,{once:!0}),()=>window.removeEventListener("load",ie)},[Ye]),qn(()=>{se(!1),ee(!1),ae(!1),ge(!1)},[M,_,y]),qn(()=>{Ge&&Eo(!0)},[Ge]),qn(()=>{let ie=Qe.current;ie&&(Ge?ie.play()?.catch(()=>{}):ie.pause())},[Ge,Ve,Je]),qn(()=>{if(!h||Ye&&!Je)return;let ie=()=>A(!0);if(typeof window.requestIdleCallback=="function"){let wo=window.requestIdleCallback(ie,{timeout:2e3});return()=>window.cancelIdleCallback(wo)}let Ne=setTimeout(ie,800);return()=>clearTimeout(Ne)},[h,Ye,Je]),qn(()=>{let ie=Qe.current;if(!ie)return;let Ne=()=>{ie.playbackRate=l};return Ne(),ie.addEventListener("loadedmetadata",Ne),()=>ie.removeEventListener("loadedmetadata",Ne)},[M,l]);let $=Sf(_),de=_&&($||y)&&!le?ya(_):{src:_},he=y&&!le?ya(y):{src:y},De=y&&!N&&!E?[{sized:he,media:vn},..._?[{sized:de,media:Ws}]:[]]:[];return v_("div",{ref:v,className:"absolute inset-0 z-[1]",...it("hero-media"),children:[Dr("div",{className:"absolute inset-0",style:{background:"var(--site-surface)"}}),De.map(({sized:ie,media:Ne})=>Dr("link",{rel:"preload",as:"image",href:ie.src,media:Ne,fetchPriority:"high",...ie.srcSet?{imageSrcSet:ie.srcSet,imageSizes:k}:{}},Ne)),(_||y)&&($||y?(()=>{let ie=Dr("img",{..._?{src:de.src}:{},...de.srcSet?{srcSet:de.srcSet,sizes:k}:{},alt:"",...N?{loading:"lazy"}:{},...w?{fetchPriority:"high"}:{},className:`absolute inset-0 z-[2] h-full w-full object-cover ${g.className}`.trim(),style:{display:W?"none":"block",objectPosition:i,...g.style},onError:Ne=>{Ne.currentTarget.currentSrc&&(de.srcSet||he.srcSet?ee(!0):se(!0))}},y?void 0:_);return y?v_("picture",{children:[Dr("source",{media:vn,srcSet:he.srcSet||he.src,sizes:k}),ie]},`${_} ${y}`):ie})():Dr(vc,{src:_,alt:"",fill:!0,...N?{}:E?{loading:"eager"}:{priority:!0},sizes:k,className:`z-[2] object-cover ${g.className}`.trim(),style:{display:W?"none":"block",objectPosition:i,...g.style},onError:()=>se(!0)},_)),s&&!m&&M&&C!==void 0&&Ve&&(!Ye||Je)&&!Ie&&Dr("video",{ref:Qe,autoPlay:!0,loop:!0,muted:!0,playsInline:!0,preload:"metadata",className:"absolute inset-0 z-[3] h-full w-full object-cover",style:{objectPosition:i},onError:()=>ae(!0),children:K.map(ie=>Dr("source",{src:ie.src,type:ie.type},ie.src))},M),s&&m&&M&&C!==void 0&&Ve&&(!Ye||Je)&&!me&&(!_||W)&&Dr(f_,{src:M,objectPosition:i,onError:()=>ge(!0)},M)]})}import{jsx as T_}from"react/jsx-runtime";import{forwardRef as Cz}from"react";var kz=Cz(function(e,o){return T_("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-x-0 bottom-0 z-[2] h-0.5",style:{background:"color-mix(in srgb, var(--overlay-fg) 22%, transparent)"},...it(c_),children:T_("i",{ref:o,className:"block h-full w-full origin-left",style:{background:"var(--overlay-fg)",transform:"scaleX(0)"}})})}),O_=kz;import{jsx as vz}from"react/jsx-runtime";import{forwardRef as Pz}from"react";var Tz=Pz(function(e,o){return vz("div",{ref:o,"aria-hidden":!0,className:"pointer-events-none absolute bottom-6 left-1/2 z-[4] flex -translate-x-1/2 gap-1 view-wide:bottom-12 view-wide:gap-2 [&>b]:relative [&>b]:block [&>b]:h-px [&>b]:w-10 [&>b]:overflow-hidden view-wide:[&>b]:w-14 [&_i]:absolute [&_i]:inset-0 [&_i]:origin-left",...it(g_)})}),E_=Tz;import{jsx as Io,Fragment as z_,jsxs as rI}from"react/jsx-runtime";import{jsx as Vn}from"react/jsx-runtime";import{useRef as Oz}from"react";import{EXPAND_SIDE_VAR as Ez,SCROLL_EFFECTS_WITH_ZOOM as _z,scrollAttrs as Az}from"efficient-shell/format";var Fz={[Ez]:`var(${IC}, 0px)`};function Vc({views:e,origins:o={},boxClass:t,boxAttrs:r,boxStyle:a,takesViewHide:n=!1,atEdge:s=!1,zoomInside:l="layer",zoomLayerClass:i,children:d}){let f=Oz(null),m=nf(),u=nt(),h=n?u:Or,I=El(f,!0,s),S=Az(e[I],o[I]),{attrs:P}=S,T=e[I].effect==="expand"?{...S.style,...Fz}:S.style,B=_z.includes(e[I].effect),k=ko(`${yn}${m.fill}${t?` ${t}`:""}`,h.className);if(B&&l==="picture")return h.scope(Vn("div",{ref:f,className:k,...r,...h.attrs,...a?{style:a}:{},children:Vn(Ak,{attrs:P,style:T,children:m.inner(d)})}));let g=Vn(Fk,{children:m.inner(d)});if(B){let E=i??(m.fill?"h-full":void 0);return h.scope(Vn("div",{ref:f,className:k,...r,...h.attrs,style:{...a,overflow:"clip"},children:Vn("div",{...E?{className:E}:{},...P,style:T,children:g})}))}let b=Object.keys(T).length||a?{style:{...a,...T}}:{};return h.scope(Vn("div",{ref:f,className:k,...r,...h.attrs,...P,...b,children:g}))}var ka=["media","image","image2"],xr={media:"Media",image:"Image",image2:"Image 2"},Kl={media:"heroMedia",image:"heroImage",image2:"heroImage2"};function Yc(e,o){return e==="image"&&Js(o)>1?"Image 1":xr[e]}var que="Video file",Vue="Upload a video file",Yue="AV1 file",Xue="Upload an AV1 file";function Bz(e,o){return bd("mediaType",Kd,o,[e])}var Lz=new Set(Object.keys(qd)),__="heroPart";function Rz(e,o){return{...o,[__]:e}}function Zue(e,{parts:o={},onlyFor:t,fallback:r,rules:a}){let n={...e},s=[...Object.values(o).flat(),...Kd.flatMap(l=>t[l])].filter(l=>!(l in e));if(s.length)throw new Error(`heroMediaFields: ${s.join(", ")} is not a row of this block`);for(let l of Kd)for(let i of t[l])n[i]=ro(n[i],Bz(l,r));for(let[l,i]of Object.entries(a??{}))i&&(n[l]=ro(n[l],i));for(let l of ka)for(let i of o[l]??[])n[i]=Rz(l,n[i]);return n}function Dz(e){let o=e?.[__];return ka.includes(o)?o:null}function A_(e,o){let t={};for(let[r,a]of Object.entries(e))Dz(a)===o&&(t[r]=a);return t}function F_(e){if(!Lz.has(e.type))return[];let o=[{part:"media",label:xr.media,depth:0}];return dk(e.type,e.props.mediaType)!=="video"&&(o.push({part:"image",label:Yc("image",e.props),depth:1}),Js(e.props)>1&&o.push({part:"image2",label:Yc("image2",e.props),depth:1})),o}function va(e,o){return`${e}::${o}`}function Xc(e){if(!e)return null;let o=e.lastIndexOf("::");if(o<=0)return null;let t=e.slice(o+2);return ka.includes(t)?{nodeId:e.slice(0,o),part:t}:null}var ql="data-sf-hero-part";import{MOTION_TIMING as Nz}from"efficient-shell/format";var D_="grayscale(1) contrast(1.03)",ome="Black and white";function Mz(e){return e===!0?{filter:D_}:{}}function Hz(e){let{filter:o}=Mz(e);return o?{style:{filter:o}}:{}}var Pa="sf-photo-grayscale",tI="data-sf-photo-host",B_={duration:"--sf-photo-hover-duration",delay:"--sf-photo-hover-delay"},ep=`@media (hover:hover){.${Pa}{filter:${D_};transition:filter var(--sf-photo-hover-duration,var(--page-motion-hover-duration)) var(--page-ease-media) var(--sf-photo-hover-delay,var(--page-motion-hover-delay))}.${Pa}:hover,[data-sf-photo-host]:hover .${Pa}{filter:none}}@media (hover:hover) and (prefers-reduced-motion:reduce){.${Pa}{transition:none}}`;function N_(e){let o=Nz.hover,t={...e.duration!==o.duration.default?{[B_.duration]:`${e.duration}s`}:{},...e.delay!==o.delay.default?{[B_.delay]:`${e.delay}s`}:{}};return Object.keys(t).length?t:void 0}function M_(e,o,t){if(e===!0)return Hz(!0);if(t?.kind==="mono"){let r=N_(t);return{className:Pa,sheet:ep,...r?{style:r}:{}}}return e===!1?{}:o===!0?{className:Pa}:{}}var H_="data-sf-repeat",Qh="sf-photo-zoom",Wz="--sf-photo-zoom",tme="sf-photo-wash",Zc="sf-photo-wash-rest",Vl="sf-photo-wash-hover",Qc="sf-photo-frame",W_=(e,o)=>`:not([${H_}]:not(${o}) .${e})`,oI=(e,o)=>`[${H_}]${o} .${e}${W_(e,o)}`,eI=(e,o)=>`${o},${oI(e,":hover")},[${tI}]:hover .${e}${W_(e,":hover")}`,L_=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))`,$z=`.${Vl}{opacity:0}@media (hover:hover){.${Zc},.${Vl}{transition:${L_("opacity")}}${eI(Vl,`.${Qc}:hover .${Vl}`)}{opacity:1}${eI(Zc,`.${Qc}:hover .${Zc}`)}{opacity:0}}@media (hover:hover) and (prefers-reduced-motion:no-preference){.${Qh}{transition:${L_("transform")}}${eI(Qh,`.${Qc}:hover .${Qh}`)}{transform:scale(var(${Wz}))}}@media (hover:hover) and (prefers-reduced-motion:reduce){.${Zc},.${Vl}{transition:none}}`,rme="sf-photo-move";function ame(e){if(!e||!e.zoom&&!e.darken)return null;let o=N_(e);return{className:Qc,sheet:$z,...o?{style:o}:{}}}function $_(e){return e===!0?{[Pa]:ep}:{}}var Jc="sf-box-reveal",nme="sf-box-reveal",zz=8,R_=.3,sme=`@media ${Ws}{.${Jc}{opacity:0;transform:translateY(${zz}px);transition:opacity ${R_}s ease-out,transform ${R_}s ease-out}${oI(Jc,":hover")},${oI(Jc,":focus-within")}{opacity:1;transform:none}}@media ${Ws} and (prefers-reduced-motion:reduce){.${Jc}{transition:none;transform:none}}`;import{hidableText as Uz}from"efficient-easel/draw";var jz={one:"max-view-tablet:grid-cols-1 max-view-tablet:grid-rows-1",side:"max-view-tablet:grid-cols-2 max-view-tablet:grid-rows-1",stacked:"max-view-tablet:grid-cols-1 max-view-tablet:grid-rows-2"},Gz={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 U_(e){let o=e.isVideo&&WP(e.videoSource)==="youtube",t=e.isVideo?$P(e.videoPlayback):null,r=t==="click",a=o?zP(Uz(e.youtubeUrl)):null,n=fk(e.mediaLayout);return{fromYouTube:o,onClick:r,youTubeId:a,backgroundFile:e.isVideo&&!o&&!r,followsScroll:t==="scroll"&&!o,progress:t?HP(e.videoProgress,t,o):"none",desktopLayout:n,phoneLayout:ck(e.mediaLayoutPhone,n),twoPictures:!e.isVideo&&Js(e)>1}}function Yl(e,o){return Sn(Sa({_partMotion:e},o))}function Xl(e,o){return zn(Sa({_partMotion:e},o))}var op=e=>Eh({desktop:e.objectPosition,tablet:e.objectPositionTablet,phone:e.objectPositionPhone}),j_=tl.img;function G_({entrance:e,scroll:o,origins:t,editing:r,className:a,attrs:n,style:s,zoomLayerClass:l,children:i}){return e?Io(Pc,{views:e,editing:r,boxClass:a,boxAttrs:n,...s?{boxStyle:s}:{},children:i}):o?Io(Vc,{views:o,...t?{origins:t}:{},boxClass:a,boxAttrs:n,...s?{boxStyle:s}:{},...l?{zoomLayerClass:l}:{},children:i}):Io("div",{className:a,...n,...s?{style:s}:{},children:i})}function Yn(e,o){return M_(void 0,void 0,Vb(Sa({_partMotion:e},o)))}function K_(e){return ka.some(o=>Yn(e,o).className)?{hostAttrs:{[tI]:""},sheet:ep}:{}}function tp({treatment:e,children:o}){return e.className?Io("div",{className:`absolute inset-0 ${e.className}`,...e.style?{style:e.style}:{},children:o}):Io(z_,{children:o})}function rp({color:e,opacity:o,passClicks:t=!0}){return o>0?Io("div",{className:t?"pointer-events-none absolute inset-0 z-[2]":"absolute inset-0 z-[2]",style:{background:e,opacity:Math.min(Math.max(o,0),100)/100},...it("tint")}):null}function ap({part:e,editing:o,marked:t=!0,entrance:r,scroll:a=null,origins:n,className:s,children:l}){let i=o&&t?{[ql]:e}:void 0;return Io(G_,{entrance:r,scroll:a,origins:n,editing:o,className:s,attrs:i,zoomLayerClass:j_,children:l})}function q_({partMotion:e,editing:o,children:t}){let r=Yl(e,"media"),a=Xl(e,"media"),n=Yn(e,"media"),s=Io(of,{fill:tl,children:t}),l=n.className?Io("div",{className:`absolute inset-0 z-[1] ${n.className}`,...n.style?{style:n.style}:{},children:s}):s;return r||a?Io(G_,{entrance:r,scroll:a,editing:o,className:"absolute inset-0 z-[1]",zoomLayerClass:j_,children:l}):Io(z_,{children:l})}function V_({desktopLayout:e,phoneLayout:o,editing:t,marked:r=!0,partMotion:a,first:n,second:s,laterSlide:l=!1}){return rI("div",{className:`absolute inset-0 z-[1] grid ${jz[o]} ${Gz[e]}`,"data-hero-layout":e,"data-hero-layout-phone":o,children:[Io(ap,{part:"image",editing:t,marked:r,entrance:Yl(a,"image"),scroll:Xl(a,"image"),origins:op(n),className:"relative overflow-hidden",children:rI(tp,{treatment:Yn(a,"image"),children:[Io(Gl,{posterSrc:st(n.src),showVideo:!1,laterSlide:l,objectPosition:n.objectPosition,objectPositionPhone:n.objectPositionPhone,objectPositionTablet:n.objectPositionTablet}),Io(rp,{color:n.tintColor,opacity:n.tintOpacity})]})}),Io(ap,{part:"image2",editing:t,marked:r,entrance:Yl(a,"image2"),scroll:Xl(a,"image2"),origins:op(s),className:`relative overflow-hidden ${Zv({desktop:e==="one",tablet:e==="one",mobile:o==="one"},{atSectionLine:!0})}`.trimEnd(),children:rI(tp,{treatment:Yn(a,"image2"),children:[Io(Gl,{posterSrc:st(s.src),showVideo:!1,laterSlide:l,objectPosition:s.objectPosition,objectPositionPhone:s.objectPositionPhone,objectPositionTablet:s.objectPositionTablet}),Io(rp,{color:s.tintColor,opacity:s.tintOpacity})]})})]})}import{jsx as Nr,Fragment as Kz,jsxs as qz}from"react/jsx-runtime";import{useEffect as Vz,useRef as Yz,useState as Xz}from"react";import{PlaySolidIcon as Zz}from"efficient-shell/icons/efficient-looks";function Y_({youTubeId:e,ownPoster:o,background:t,editing:r}){let[a,n]=Xz("large");return Vz(()=>n("large"),[e]),e?qz(Kz,{children:[!o&&a!=="none"&&Nr(Qf,{src:a==="large"?UP(e):jP(e),alt:"",className:"absolute inset-0 z-[2] h-full w-full object-cover",onLoad:s=>{a==="large"&&s.currentTarget.naturalWidth<=120&&n("small")},onError:()=>n(a==="large"?"small":"none")},`${e}-${a}`),t&&!r&&Nr("div",{className:"pointer-events-none absolute inset-0 z-[3] overflow-hidden [container-type:size]","aria-hidden":"true",children:Nr("iframe",{src:Ax(e,"background"),title:"",tabIndex:-1,allow:"autoplay; encrypted-media; picture-in-picture",className:"absolute left-1/2 top-1/2 h-[max(100%,56.25cqw)] w-[max(100%,177.78cqh)] -translate-x-1/2 -translate-y-1/2 border-0"})})]}):null}function X_({youTubeId:e,fileSrc:o,fileAv1Src:t,fileSrcPhone:r,fileAv1SrcPhone:a,playing:n,onPlay:s,editing:l}){let i=Yz(null),d=_l(i,!0,!0)==="phone";if(!e&&!o)return null;let f=wf({video:o,av1:t,videoPhone:r,av1Phone:a},d),m=bf(f.video,f.av1);return n&&!l?e?Nr("iframe",{src:Ax(e,"click"),title:Fx,allow:"autoplay; encrypted-media; picture-in-picture; fullscreen",allowFullScreen:!0,className:"absolute inset-0 z-[6] h-full w-full border-0 bg-overlay-scrim"}):Nr("video",{ref:u=>{i.current=u},...m.length===1?{src:m[0].src}:{},controls:!0,autoPlay:!0,playsInline:!0,className:"absolute inset-0 z-[6] h-full w-full bg-overlay-scrim object-contain",children:m.length>1&&m.map(u=>Nr("source",{src:u.src,type:u.type},u.src))},f.video):Nr("button",{ref:u=>{i.current=u},type:"button","aria-label":Fx,onClick:l?void 0:s,className:`absolute left-1/2 top-1/2 z-[4] grid h-16 w-16 -translate-x-1/2 -translate-y-1/2 place-items-center rounded-full bg-btn text-btn-ink shadow-lg transition-transform motion-reduce:transition-none ${l?"pointer-events-none":"cursor-pointer hover:scale-105"}`,children:Nr(Zz,{size:28})})}function Z_(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 o1}from"efficient-shell/format";var t1=["top","middle","bottom"],r1=["left","center","right"],a1="bottom",n1="left",Jz={top:"Top",middle:"Middle",bottom:"Bottom"},Qz={left:"Left",center:"Center",right:"Right"},Nme="Up and down",Mme="Sideways",eU={top:"flex-start",middle:"center",bottom:"flex-end"},oU={left:"flex-start",center:"center",right:"flex-end"},tU="--sf-hero-phone-y",rU="--sf-hero-phone-x";function aU(e){return o1(t1,a1,e)}function nU(e){return o1(r1,n1,e)}function s1(e,o){let t=aU(e),r=nU(o),a={};return t!==a1&&(a[tU]=eU[t]),r!==n1&&(a[rU]=oU[r]),a}var sU="--sf-hero-phone-words-top",lU="--sf-hero-phone-words-bottom",iU="--sf-hero-phone-box-gap",Hme=100,Wme=90,$me=28,dU=0,fU=200,zme="Words space top",Ume="Words space bottom",jme="Space between boxes";function aI(e){if(!(typeof e!="number"||!Number.isFinite(e)))return Math.min(fU,Math.max(dU,Math.round(e)))}function l1(e,o,t){let r={},a=aI(e),n=aI(o),s=aI(t);return a!==void 0&&(r[sU]=`${a}px`),n!==void 0&&(r[lU]=`${n}px`),s!==void 0&&(r[iU]=`${s}px`),r}function Gme(){return t1.map(e=>({label:Jz[e],value:e}))}function Kme(){return r1.map(e=>({label:Qz[e],value:e}))}var cU="--sf-hero-words-top",pU="--sf-hero-words-bottom",J_="--sf-hero-words-top-t",Q_="--sf-hero-words-bottom-t",qme=140,Vme=56,uU=0,mU=400,e1="pt-[var(--sf-hero-words-top,140px)] pb-[var(--sf-hero-words-bottom,56px)]",xU="view-wide:max-view-desktop:pt-[var(--sf-hero-words-top-t,var(--sf-hero-words-top,140px))] view-wide:max-view-desktop:pb-[var(--sf-hero-words-bottom-t,var(--sf-hero-words-bottom,56px))]";function hU(e){if(!(typeof e!="number"||!Number.isFinite(e)))return Math.min(mU,Math.max(uU,Math.round(e)))}function i1(e,o,t,r){let a={},n=(s,l)=>{let i=hU(l);i!==void 0&&(a[s]=`${i}px`)};return n(cU,e),n(pU,o),n(J_,t),n(Q_,r),Object.keys(a).length===0?{className:null,style:a}:{className:J_ in a||Q_ in a?`${e1} ${xU}`:e1,style:a}}import{hexToRgb as IU,parseOption as gU}from"efficient-shell/format";var yU=!0;var SU=[[0,".5"],[30,".1"],[60,".1"],[100,".85"]];function d1(e){let o=IU(e);return o?`${o.r},${o.g},${o.b}`:null}function f1(e){return e==null?yU:e!==!1}var bU="classic",wU=[{label:"Classic",value:"classic"},{label:"Edges",value:"edges"}],CU=160,kU=62,vU=".38";function PU(e){return gU(wU,bU,e)}function c1(e,o){let t=(e?d1(e):null)??d1(ir);if(PU(o)==="edges"){let r=`rgba(${t},${vU})`,a=`rgba(${t},0)`;return`linear-gradient(180deg, ${r} 0px, ${a} ${CU}px), linear-gradient(180deg, ${a} ${kU}%, ${r} 100%)`}return`linear-gradient(180deg, ${SU.map(([r,a])=>`rgba(${t},${a}) ${r}%`).join(", ")})`}import{hexToRgb as p1,parseOption as TU}from"efficient-shell/format";var u1="bottom";var OU=[{label:"Bottom",value:"bottom",cell:"bottom"},{label:"Top",value:"top",cell:"top"},{label:"Left",value:"left",cell:"left"},{label:"Right",value:"right",cell:"right"}],EU={bottom:180,top:0,left:270,right:90},_U=[[.55,0],[.15,18],[null,35],[null,55],[.85,100]],AU=[[null,33],[.6,67],[.94,100]];function FU(e,o){let{r:t,g:r,b:a}=p1(e)??p1(ir);return`rgba(${t},${r},${a},${o})`}function m1(e){return TU(OU,u1,e)}function x1(e=ir,o=u1){let t=m1(o),r=(t==="top"||t==="bottom"?_U:AU).map(([a,n])=>`${a===null?"transparent":FU(e,a)} ${n}%`);return`linear-gradient(${EU[t]}deg, ${r.join(", ")})`}function h1(e,o){let t=xo(e.overlayColor),r=xo(e.overlayPosition),a=xo(o)??ir;return!t&&!r?{own:!1,color:a,position:null}:{own:!0,color:t??a,position:m1(r)}}var DU=BU({});function kxe({name:e,process:o,mediaType:t=qd.HeroSlide,mediaSrc:r,videoSpeed:a,poster:n,mediaAv1:s,mediaSrcPhone:l,mediaAv1Phone:i,posterPhone:d,objectPosition:f,objectPositionPhone:m,objectPositionTablet:u,tintColor:h=ir,tintOpacity:I=0,groups:S,editing:P=!1,themeClassName:T,themeStyle:B,overlayColor:k,overlayPosition:g,mediaLayout:b,mediaLayoutPhone:E,mediaImage2:A,objectPosition2:N,objectPosition2Phone:w,objectPosition2Tablet:_,tintColor2:y=ir,tintOpacity2:v=0,videoSource:O,youtubeUrl:C,videoPlayback:L,videoProgress:M,partMotion:K,laterSlide:W=!1}){let se=Pt(),le=nt(),{alignment:ee="left",textureOpacity:Ie,textureOn:ae,textureColor:me,textureShape:ge,quietVideo:Ge,phoneUpDown:Ve,phoneSideways:Eo,phoneWordsTop:Ye,phoneWordsBottom:Je,phoneBoxGap:qo,wordsTop:Qe,wordsBottom:mo,wordsTopTablet:$,wordsBottomTablet:de,holdReel:he,reelHeld:De,shownSlide:ie,ratioMin:Ne,posterPhoneFrame:wo}=LU(DU),ve=i1(Qe,mo,$,de),Rt=Il(),Ja=W&&Rt==="first",yr=g1(null),[Cm,As]=y1(ie===void 0?void 0:!1);RU(()=>{let Rs=yr.current;As(ie===void 0||!Rs?void 0:Z_(Rs.closest(".hero-track"),"data-slide-name")[ie]===Rs)});let Bo=t==="video",Qa=Bo?st(r):void 0,Jt=Bo?st(n):st(r)??st(n),et=Bo?{av1:st(s),phone:st(l),av1Phone:st(i),poster:st(d)}:{},td=typeof a=="number"?a/100:1,{fromYouTube:Qt,onClick:Jr,youTubeId:rd,backgroundFile:er,followsScroll:km,progress:Sr,desktopLayout:ad,phoneLayout:vm,twoPictures:nd}=U_({isVideo:Bo,videoSource:O,videoPlayback:L,videoProgress:M,youtubeUrl:C,mediaLayout:b,mediaLayoutPhone:E}),[yt,sd]=y1(!1),Fs=g1(null);yt&&De===!1&&sd(!1);let Bs=!yt,G=h1({overlayColor:k,overlayPosition:g},me),Fe=Bo?null:Yl(K,"image"),Lo=Bo?null:Xl(K,"image"),St=K_(K),Dt=Wo(tp,{treatment:Bo?{}:Yn(K,"image"),children:Wo(Gl,{videoSrc:er?Qa:void 0,videoAv1Src:er?et.av1:void 0,videoSrcPhone:er?et.phone:void 0,videoAv1SrcPhone:er?et.av1Phone:void 0,posterSrc:Jt,posterSrcPhone:et.poster,showVideo:er,playbackRate:td,objectPosition:f,objectPositionPhone:Bo?void 0:m,objectPositionTablet:Bo?void 0:u,quiet:Ge,slideShown:Cm,laterSlide:W,laterOfLead:Ja,phoneFrame:wo,followsScroll:km,progress:Sr==="none"?void 0:{kind:Sr,fill:Fs}})}),Ls=I1("section",{ref:yr,className:ko(`${Ne?"relative flex min-h-full w-full flex-col overflow-clip":"relative h-full w-full overflow-hidden"}${T?` ${T}`:""}`,le.className),...le.attrs,style:B,"data-slide-name":e??"","data-slide-process":o??"","data-slide-media":er&&Qa?"video":"still",...St.hostAttrs,...it("slide"),children:[Wo(Dc,{sheet:St.sheet}),Wo(q_,{partMotion:K,editing:P,children:nd?Wo(V_,{laterSlide:W,desktopLayout:ad,phoneLayout:vm,editing:P,partMotion:K,first:{src:r,objectPosition:f,objectPositionPhone:m,objectPositionTablet:u,tintColor:h,tintOpacity:I},second:{src:A,objectPosition:N,objectPositionPhone:w,objectPositionTablet:_,tintColor:y,tintOpacity:v}}):Qt||Fe||Lo?I1(ap,{part:Bo?"media":"image",editing:P,entrance:Fe,scroll:Lo,origins:op({objectPosition:f,objectPositionTablet:u,objectPositionPhone:m}),className:"absolute inset-0 z-[1]",children:[Dt,Qt&&Wo(Y_,{youTubeId:rd,ownPoster:!!Jt,background:!Jr,editing:P})]}):Dt}),Jr&&Wo(X_,{youTubeId:rd,fileSrc:Qt?void 0:Qa,fileAv1Src:Qt?void 0:et.av1,fileSrcPhone:Qt?void 0:et.phone,fileAv1SrcPhone:Qt?void 0:et.av1Phone,playing:yt,onPlay:()=>{sd(!0),he?.()},editing:P}),Bs&&!nd&&Wo(rp,{color:h,opacity:I,passClicks:!1}),Bs&&f1(ae)&&Wo("div",{className:"absolute inset-0 z-[2]",style:{background:G.own?x1(G.color,G.position??void 0):c1(G.color,ge),...Ie!==void 0?{opacity:Ie/100}:null},...it("overlay")}),Bs&&Wo("div",{className:[Ne?"sf-hero-group-layer relative z-[3] mx-auto w-full flex-1 max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)]":"sf-hero-group-layer absolute inset-0 z-[3] mx-auto max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)]",ve.className??"pt-[140px] pb-14",se?kC:"",P?"sf-hero-group-layer-edit":""].filter(Boolean).join(" "),style:{...dC,...s1(Ve,Eo),...l1(Ye,Je,qo),...ve.style},...it("hero-content"),children:S&&Wo(S,{className:"sf-hero-group-zone",minEmptyHeight:160})}),Sr==="bar"?Wo(O_,{ref:Fs}):Sr==="names"?Wo(E_,{ref:Fs}):null]});return le.scope(Ja?Wo(Jf,{children:Ls}):Ls)}var S1=Array.from({length:3},(e,o)=>({name:`Slide ${o+1}`,process:"Category",mediaType:"image",mediaVideo:"",poster:""}));import{newNodeId as v1}from"efficient-easel/draw";import{isNodeList as MU}from"efficient-easel/data";var nI=3,sI=()=>({type:q,props:{direction:"column"},slots:{[Ce]:[{type:"ImageBlock"},{type:q,props:{direction:"column"},slots:{[Ce]:[{type:"Text",props:br()},{type:"Text"}]}}]}}),b1=()=>Array.from({length:nI},sI);var w1=["","","","","",""],C1="#ticker",Zl="strip",lI={sectionAccent:Cr,line:!1};function NU(e){return(Array.isArray(e.tickerItems)?e.tickerItems:[]).map(o=>typeof o?.text=="string"?o.text:"").filter(o=>o.trim()!=="")}function iI(e){return NU(e).length>0}function Axe(e){return e.showTicker!==!1&&iI(e)}var P1=(e,o)=>({type:e.type,props:{...o?.(e.type)??{},...Object.fromEntries(Object.entries(e.props).map(([t,r])=>[t,MU(r)?r.map(a=>P1(a,o)):r]))}}),HU=e=>{let[o]=Mt([sI()],a=>v1(a)),{id:t,...r}=P1(o,e).props;return r},dt={Hero:{slot:"slides",childType:"HeroSlide",addLabel:"Add slide",slider:!0,seeds:()=>S1.map(e=>({...e}))},HeroSlide:{slot:"groups",childType:"HeroGroup",addLabel:`Add ${Ms.toLowerCase()}`,seeds:()=>[],addBlocked:fx,notice:cx},HeroSingle:{slot:"boxes",childType:"HeroGroup",addLabel:`Add ${Ms.toLowerCase()}`,seeds:()=>[],addBlocked:fx,notice:cx},ProcessSteps:{slot:Ns,childType:q,addLabel:`Add ${Ms.toLowerCase()}`,seeds:e=>Array.from({length:nI},()=>HU(e)),skipSeed:e=>Array.isArray(e.steps)&&e.steps.length>0}},k1=1,WU={slot:Zl,childType:q,addLabel:`Add ${Ms.toLowerCase()}`,seeds:()=>[],addBlocked:e=>e.length>=k1?"This Hero has its Scrolling Bar already. Delete it to add another.":null,notice:e=>e.length>k1?`This Hero holds ${e.length} Scrolling Bars. Keep one and delete the others.`:null},T1={Hero:{[Zl]:WU}};function Uxe(e){for(let[o,t]of Object.entries(e)){if(eo(dt,o)&&z(dt,o)!==t)throw new Error(`lib/document/slot-specs: "${o}" already has a slot spec`);dt[o]=t}}function jxe(e,o){let t=z(dt,e);return t?{slot:t.slot,children:t.seeds(o).map(r=>({type:t.childType,props:{id:v1(t.childType),...r}}))}:null}var zU=["GalleryB"];function O1(e){let o=e.content;if(!Array.isArray(o))return e;let t=!1,r=o.map(s=>{let l=s?.type;if(!l||!zU.includes(l))return s;let i=z(dt,l);if(!i?.legacy)return s;let d=s.props??{},f=d[i.slot];if(Array.isArray(f)&&f.length>0)return s;let m=i.legacy(d);if(!m.length)return s;t=!0;let u=String(d.id??l),h=m.map((I,S)=>({type:i.childType,props:{id:`${i.childType}-${u}-${S}`,...I}}));return{...s,props:{...d,[i.slot]:h}}}),a=new Set($U(r)),n=a.size?r.filter((s,l)=>!a.has(l)):r;return a.size&&(t=!0),t?{...e,content:n}:e}var UU={"Logos.logosPerRow":"columns","HeroSlide.tintOpacity":"overlay","Split.textBgTint":"overlay"},jU={"Footprint.source":"typed"};function E1(e){let o=e.props,t=!1;if(e.type&&o)for(let[r,a]of Object.entries(UU)){let n=r.indexOf("."),s=r.slice(0,n),l=r.slice(n+1);if(s!==e.type||!(l in o))continue;let i=o[l],d={...o};delete d[l],(!(a in d)||d[a]===void 0)&&(d[a]=i),o=d,t=!0}if(e.type&&o)for(let[r,a]of Object.entries(jU)){let n=r.indexOf("."),s=r.slice(n+1);if(r.slice(0,n)!==e.type||!(s in o))continue;let l=typeof o[s]=="string"?o[s].trim():"",i={...o};delete i[s],sb(l)&&l!==a&&!Me(i)&&(i[lo]=l),o=i,t=!0}if(e.type&&o){let r=kd(e.type,o);r!==o&&(o=r,t=!0)}if(o){let r=Xe({props:o},a=>ze(a,E1));r.props!==o&&(o=r.props,t=!0)}return t?{...e,props:o}:e}function _1(e){return dd(e,o=>ze(o,E1))}import{readHidable as GU}from"efficient-easel/draw";var qt=q,Vt=Ce;function Ta(e){if(e.theme)return sr(e.theme);let o=e.site?.themePresets;return o?sr({selected:e.site?.selectedPreset??0,themes:[...o]}):void 0}function KU(e,o){return o===0?`${e}~box`:`${e}~box-${o+1}`}var F1=new Set(["id"]),Mr={},Jl=[],qU={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"]},VU=Object.keys(qU),Oa=["Breadcrumb","DocBody","Form","SubmitBuild","Footprint","FAQ","ContactLocations","ProcessSteps",...VU,"Stats","Logos","PaymentBadges","PaymentLogosBlock","FitmentFinder","DocMasthead","DocTabs","Timeline","TimelineTrack","OrderSummary","Chart","Mockup","Integrations","Countdown","FeaturedCover","IntroBleed","SectionHeader","TitleWithButtons","Prose","ParagraphsA","Banner","Cards"];function no(e){for(let[o,t]of Object.entries(e)){if(eo(Mr,o)&&z(Mr,o)!==t)throw new Error(`lib/sections/section-to-box: "${o}" already has a row`);Mr[o]=t}}function Hr(e){return z(Mr,e)}function YU(e){return eo(Mr,e)&&Jl.includes(e)}function B1(e,o=Oa){return eo(Mr,e)&&(o.includes(e)||YU(e))}function dhe(e){let o=z(Ct,e);if(!o)throw new Error(`lib/sections/section-to-box: "${e}" has no head row in SPLITTABLE_SECTIONS`);let t=[{kind:"text",key:o.num,role:"eyebrow"},{kind:"text",key:o.title,role:"heading"}];return o.description&&t.push({kind:"text",key:o.description,role:"body"}),o.headRows.includes("linkText")&&o.headRows.includes("linkHref")&&t.push({kind:"button",key:"linkText",href:"linkHref"}),t}var dI=e=>GU(e),We=e=>dI(e).text.trim()!=="";function XU(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 ZU=e=>e==="heading"?br():e==="eyebrow"?ar():{};function JU(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 QU(e,o){if(e===void 0)return{};if(typeof e=="string")return{variant:e};let t=o[e.key];return{variant:(typeof t=="string"?z(e.map,t):void 0)??e.fallback}}function A1(e,o,t,r,a={}){let n={...o};for(let s of e){let[l,i,d]=typeof s=="string"?[s,s,void 0]:s;if(t[l]===void 0)continue;let f=d?d(t[l],t,a):t[l];f===void 0?delete n[i]:n[i]=f,r(l,i,f===void 0)}return n}function ej(e){let o=new Set([...F1,"headPlacement","_partStyles",...Object.keys(e.drop??{}),...Object.keys(e.reads??{})]),t=a=>{for(let n of a??[])o.add(typeof n=="string"?n:n[0])},r=a=>{for(let n of a)switch(n.kind){case"text":case"image":o.add(n.key),n.kind==="image"&&n.alt&&o.add(n.alt);break;case"button":o.add(n.key),o.add(n.href),typeof n.variant=="object"&&o.add(n.variant.key);break;case"list":o.add(n.key);break;case"group":case"block":t(n.box),r(n.parts??[]);break;case"core":if(n.keep!=="rest"&&n.keep.forEach(s=>o.add(s)),Object.keys(n.rename??{}).forEach(s=>o.add(s)),n.derive?.reads.forEach(s=>o.add(s)),typeof n.slots!="function")for(let s of Object.values(n.slots??{}))for(let l of s)"kind"in l&&o.add(l.key);break}};for(let a of[e,...e.also??[]])t(a.box),r(a.parts);return o}var fI=e=>fn(e.headPlacement)==="own-box";function oj(e){return fI(e)?"its head sits in a Box of its own above it (own-box): the row draws the head inline":void 0}function tj(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 rj(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 aj(e,o,t){if(!t.press)for(let r of rj(e)){let a=tj(o,r);if(a!==void 0)return a}}function Ea(e,o,t={}){let r=e.props,a=(o.ownBoxConverts?void 0:oj(r))??aj(o,r,t)??o.skip?.(r);if(a!==void 0)return{node:e,nodes:[e],carried:[],dropped:[],siteWrites:[],skipped:a};let n=String(r.id??e.type),s=[],l=[],i=new Set,d=(g,b)=>{s.push({key:g,home:b}),i.add(g)},f=r._partStyles??{},m=ej(o),u=0,h=(g,b)=>({type:g,props:{...b,id:`${n}~${g}-${++u}`}}),I=(g,b,E,A,N,w,_)=>{if(N){for(let v of g??[]){let O=typeof v=="string"?v:v[0];E[O]!==void 0&&_(O,`nothing \u2014 the ${A} has no parts, so it is not drawn`)}return}let y=typeof b=="function"?b(r,t):b??{};return A1(g??[],y,E,(v,O,C)=>_(v,C?`nothing \u2014 the old value draws nothing (${A}: no ${O})`:`${w}${A}: ${O}`),t)},S=g=>Mt(g,b=>`${n}~${b}-${++u}`),P=(g,b,E)=>{let A=g.of?g.of(b):Array.isArray(b[g.key])?b[g.key]:[],N=typeof g.props=="function"?g.props(r,t):g.props??{},w=A.map((C,L)=>{let M=C??{},K=g.item?.(M,L,r)??{},W=T(K.reverse?[...g.parts].reverse():g.parts,M,!1,`item ${L+1}: `);return g.flat?K.props?W.map(se=>({...se,props:{...se.props,...K.props,id:se.props.id}})):W:[h(qt,{name:`${g.name} ${L+1}`,...N,...K.props??{},[Vt]:W})]});if(g.groups){let C=g.groups;return E(g.key,A.length?`one Box per item (${A.length}), in a Box per group`:"nothing \u2014 the list is empty"),wd(A.map(L=>L??{}),C.of,C.of).map((L,M)=>{let K=L.items.map(ae=>ae.item),W=C.parts?T(C.parts,C.head?.(K,r)??{},!1,`group ${M+1}: `):[],se=L.items.map(ae=>w[ae.index]),le=C.perRow?.(K.length,r),ee=Number.isInteger(le)&&le>=1?le:1,Ie=[];if(C.perRow&&ee<se.length)for(let ae=0;ae*ee<se.length;ae++)Ie.push(se.slice(ae*ee,(ae+1)*ee).flat());return h(qt,{name:`${C.name} ${M+1}`,...C.props??{},[Vt]:[...W,h(qt,{name:`${C.itemsName} ${M+1}`,...C.itemsProps?.(K.length,r)??{},[Vt]:Ie.length?Ie.map((ae,me)=>h(qt,{name:`${C.rowName??`${C.itemsName} row`} ${me+1}`,...C.rowProps??{},[Vt]:ae})):se.flat()})]})})}let _=g.perRow?.(r),y=g.perRow?Number.isInteger(_)&&_>=1?_:1:0;if(E(g.key,(A.length?g.flat?`each item's parts (${A.length} items), in order`:`one Box per item (${A.length}), its parts inside`:"nothing \u2014 the list is empty")+(y&&A.length?`, in rows of ${y}`:"")),!y)return w.flat();let v=typeof g.rowProps=="function"?g.rowProps(r,t):g.rowProps??{},O=[];for(let C=0;C*y<w.length;C++){let L=w.slice(C*y,(C+1)*y).flat(),M=g.rowFiller?y-w.slice(C*y,(C+1)*y).length:0;O.push(h(qt,{name:`${g.rowName??`${g.name} row`} ${C+1}`,...v,[Vt]:[...L,...Array.from({length:M},(K,W)=>h(qt,{name:`Empty ${W+1}`,...g.rowFiller,[Vt]:[]}))]}))}return O},T=(g,b,E,A)=>{let N=[],w=(y,v)=>E?d(y,v):void 0,_=y=>E?f[y]:void 0;for(let y of g)if(!(y.when&&!y.when(r,E?void 0:b)))switch(y.kind){case"text":{let v=dI(b[y.key]);if(!v.text.trim()&&!(E&&t.press&&o.pressKeepsEmpty?.includes(y.key))){w(y.key,"nothing \u2014 empty words draw nothing, so no block");break}let O=ZU(y.role??"body"),{_partStyles:C,...L}=O,M=JU(O,y.styleFrom?{...y.style,...y.styleFrom(r,t)}:y.style,_(y.key),y.props?.align);N.push(h("Text",{text:y.mark==="accentLead"?XU(v.text):y.mark==="accentItalic"?Hs(v.text):v.text,...L,...y.props??{},...M,...v.hidden?{_hidden:!0}:{}})),w(y.key,`${A}Text block: its words${v.hidden?", hidden":""}`);break}case"button":{let v=dI(b[y.key]);if(!v.text.trim()){w(y.key,"nothing \u2014 no words, no button"),w(y.href,"nothing \u2014 no button to link"),typeof y.variant=="object"&&w(y.variant.key,"nothing \u2014 no button to style");break}let O=typeof b[y.href]=="string"&&b[y.href]?b[y.href]:"#",C={...y.style??{},..._(y.key)??{}};N.push(h("ButtonBlock",{label:v.text,href:O,...typeof y.props=="function"?y.props(b,t):y.props??{},...QU(y.variant,b),...Object.keys(C).length?{_partStyles:{label:C}}:{},...v.hidden?{_hidden:!0}:{}})),w(y.key,`${A}Button block: its words`),w(y.href,`${A}Button block: its link`),typeof y.variant=="object"&&w(y.variant.key,`${A}Button block: its Style`);break}case"image":{let v=b[y.key];if(typeof v!="string"||!v){w(y.key,"nothing \u2014 no picture, no block"),y.alt&&w(y.alt,"nothing \u2014 no picture to describe");break}let O=y.alt&&typeof b[y.alt]=="string"?b[y.alt]:"";N.push(h("ImageBlock",{src:v,alt:O,...y.props??{}})),w(y.key,`${A}Image block: its picture`),y.alt&&w(y.alt,`${A}Image block: its alt text`);break}case"list":{N.push(...P(y,b,w));break}case"group":{let v=T(y.parts,b,E,A),O=I(y.box,y.props,b,`${y.name} Box`,!v.length&&!y.keepEmpty,A,w);O&&N.push(h(qt,{name:y.name,...O,[Vt]:v}));break}case"block":{let v=y.parts?T(y.parts,b,E,A):[],O=I(y.box,y.props,b,`${y.type} block`,!!y.parts&&!v.length&&!y.keepEmpty,A,w);O&&N.push(h(y.type,{...O,...y.slot?{[y.slot]:v}:{}}));break}case"core":{let v=y.as??e.type,O={...y.headless?{}:{headPlacement:"own-box"},...y.props??{}},C=y.keep==="rest"?Object.keys(b).filter(M=>!m.has(M)&&!(M in O)):y.keep;for(let M of C)b[M]!==void 0&&(O[M]=b[M],w(M,`the ${v} block inside the Box`));if(y.keep==="rest"){for(let K of Object.keys(y.props??{}))b[K]!==void 0&&!m.has(K)&&w(K,`nothing \u2014 the ${v} block inside the Box has the row's own value`);b.headPlacement!==void 0&&w("headPlacement",`the ${v} block inside the Box: own-box`);let M=Object.fromEntries(Object.entries(f).filter(([K])=>!m.has(K)));Object.keys(M).length&&(O._partStyles=M)}for(let[M,K]of Object.entries(y.rename??{}))b[M]!==void 0&&(O[K]=b[M],w(M,`the ${v} block inside the Box: ${K}`));if(y.derive){Object.assign(O,y.derive.props(b,t));for(let M of y.derive.reads)b[M]!==void 0&&w(M,`the ${v} block inside the Box`)}let L=typeof y.slots=="function"?y.slots(b,t):y.slots??{};for(let[M,K]of Object.entries(L))O[M]=K.flatMap(W=>"kind"in W?P(W,b,w):S([W]));N.push(h(v,O));break}}return N},B=(g,b)=>{let E=b===0?"Box":`${g.name} Box`,A=T(g.parts,r,!0,b===0?"":`${E}: `),N=typeof g.boxProps=="function"?g.boxProps(r,t):g.boxProps??{},w=A1(g.box??[],N,r,(_,y,v)=>d(_,v?`nothing \u2014 the old value draws nothing (${E}: no ${y})`:`${E}: ${y}`),t);return{type:qt,props:{name:g.name,...w,[Vt]:A,id:KU(n,b)}}},k=[o,...o.also??[]].map(B);r._partStyles!==void 0&&d("_partStyles","each old part's style moved to its new part");for(let[g,b]of Object.entries(o.reads??{}))r[g]!==void 0&&d(g,b);for(let[g,b]of Object.entries(o.drop??{}))g in r&&(l.push({key:g,why:b}),i.add(g));for(let g of Object.keys(r))F1.has(g)||i.has(g)||l.push({key:g,why:"not in the row \u2014 not carried"});return{node:k[0],nodes:k,carried:s,dropped:l,siteWrites:[...o.site?.(e,t)??[]]}}function L1(e,o=Jl,t={}){let r=e.content;if(!Array.isArray(r))return e;let a=!1,n=r.flatMap(s=>{let l=s&&typeof s.type=="string"&&o.includes(s.type)?z(Mr,s.type):void 0;if(!l)return[s];let i=Ea(s,l,t);return i.skipped!==void 0?[s]:(a=!0,i.nodes)});return a?{...e,content:n}:e}function R1(e,o=Jl,t={}){if(!Array.isArray(e))return[];let r=[];return e.forEach((a,n)=>{let s=a&&typeof a.type=="string"&&o.includes(a.type)?z(Mr,a.type):void 0;if(!s)return;let l=Ea(a,s,t);l.skipped===void 0&&r.push({index:n,node:l.node,nodes:l.nodes})}),r}import{BLOCK_FIXED_WIDTH as nj,BLOCK_SIZE_KEYS as sj,parseBlockWidthFit as sp,phoneKey as D1,parseTextFit as np,tabletKey as N1,viewKeyAt as M1}from"efficient-easel/draw";import{sideLengthAt as lj}from"efficient-easel/screen/lib/content/length-units";var ij="sf-block-size",Ql=["width","minWidth","maxWidth"],lp=e=>`${e}Unit`,Wr=e=>typeof e=="number"&&Number.isFinite(e)&&e>=0?e:void 0,dj={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"}},z1={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"}},fj={desktop:z1.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"}},cj={two:{desktop:"view-wide:[.flex-row>*>&]:grow"},three:{desktop:"view-desktop:[.flex-row>*>&]:grow",tablet:"view-wide:max-view-desktop:[.flex-row>*>&]:grow"}},U1="max-view-wide:grow!";function j1(e){return ip(e).mode.phone==="fill"}var pj={desktop:"--sf-bw",tablet:"--sf-bw-t",phone:"--sf-bw-p"},uj={fill:"data-sf-width-fill",fixed:"data-sf-width-fixed"},mj="data-sf-min-width",H1={two:{desktop:"wide",phone:ux.phone},three:ux},xj={minWidth:{desktop:["--sf-bmin","view-wide:min-w-[var(--sf-bmin)]!"],phone:["--sf-bmin-p","max-view-wide:min-w-[var(--sf-bmin-p)]!"]},maxWidth:{desktop:["--sf-bmax","view-wide:max-w-[var(--sf-bmax)]"],phone:["--sf-bmax-p","max-view-wide:max-w-[var(--sf-bmax-p)]"]}},cI={minWidth:{desktop:["--sf-bmin","view-desktop:min-w-[var(--sf-bmin)]!"],tablet:["--sf-bmin-t","view-wide:max-view-desktop:min-w-[var(--sf-bmin-t)]!"],phone:["--sf-bmin-p","max-view-wide:min-w-[var(--sf-bmin-p)]!"]},maxWidth:{desktop:["--sf-bmax","view-desktop:max-w-[var(--sf-bmax)]"],tablet:["--sf-bmax-t","view-wide:max-view-desktop:max-w-[var(--sf-bmax-t)]"],phone:["--sf-bmax-p","max-view-wide:max-w-[var(--sf-bmax-p)]"]}},hj={minWidth:{desktop:cI.minWidth.desktop,tablet:["--sf-bmin-t","view-tablet:max-view-desktop:min-w-[var(--sf-bmin-t)]!"],phone:["--sf-bmin-p","max-view-tablet:min-w-[var(--sf-bmin-p)]!"]},maxWidth:{desktop:cI.maxWidth.desktop,tablet:["--sf-bmax-t","view-tablet:max-view-desktop:max-w-[var(--sf-bmax-t)]"],phone:["--sf-bmax-p","max-view-tablet:max-w-[var(--sf-bmax-p)]"]}},Ij=["widthFit",...Ql],W1={desktop:"view-wide:whitespace-nowrap view-wide:[&_*]:whitespace-nowrap!",phone:"max-view-wide:whitespace-nowrap max-view-wide:[&_*]:whitespace-nowrap!"},pI={desktop:"view-desktop:whitespace-nowrap view-desktop:[&_*]:whitespace-nowrap!",tablet:"view-wide:max-view-desktop:whitespace-nowrap view-wide:max-view-desktop:[&_*]:whitespace-nowrap!",phone:"max-view-wide:whitespace-nowrap max-view-wide:[&_*]:whitespace-nowrap!"},gj={desktop:pI.desktop,tablet:"view-tablet:max-view-desktop:whitespace-nowrap view-tablet:max-view-desktop:[&_*]:whitespace-nowrap!",phone:"max-view-tablet:whitespace-nowrap max-view-tablet:[&_*]:whitespace-nowrap!"},G1={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"},yj={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:G1.phone},K1={desktop:"view-wide:max-w-full",phone:"max-view-wide:max-w-full"},$1={desktop:"view-desktop:max-w-full",tablet:"view-wide:max-view-desktop:max-w-full",phone:K1.phone};function q1(e){let o=ip(e);return o.sides.filter(t=>o.mode[t]==="fill").map(t=>cj[o.three?"three":"two"][t]).filter(Boolean).join(" ")}function V1(e){let{three:o,sides:t,mode:r,lengthPerSide:a}=ip(e),n=d=>o?H1.three[d]:H1.two[d],s={fill:[],fixed:[],min:[]},l=a("minWidth");for(let d of t){let f=r[d];(f==="fill"||f==="fixed")&&s[f].push(n(d)),l[d]!==void 0&&s.min.push(n(d))}let i={};for(let d of["fill","fixed"])s[d].length&&(i[uj[d]]=s[d].join(" "));return s.min.length&&(i[mj]=s.min.join(" ")),i}function ip(e){let o=Ij.some(a=>{let n=e[a]?.tablet;return a==="widthFit"?sp(n)!==void 0:Wr(n)!==void 0}),t=o?["desktop","tablet","phone"]:["desktop","phone"],r=(a,n)=>{let s=a(n?.desktop),l=o?a(n?.tablet)??s:s;return{desktop:s,tablet:l,phone:a(n?.phone)??l}};return{three:o,sides:t,perSide:r,lengthPerSide:a=>{let n=lp(a),s={};for(let i of t)s[M1(a,In(i))]=Wr(e[a]?.[i]),s[M1(n,In(i))]=e.units?.[a]?.[i];let l=i=>lj(s,{length:a},n,In(i),"length")??void 0;return{desktop:l("desktop"),tablet:l("tablet"),phone:l("phone")}},mode:r(sp,e.widthFit)}}function uI(e,{atSectionLine:o=!1}={}){let t=["desktop","tablet","phone"].some(v=>np(e.textFit?.[v])==="ellipsis"),r=o&&!t,a=r?fj:z1,n=r?hj:cI,s=r?gj:pI,l=[],i={},d={},{three:f,sides:m,lengthPerSide:u,mode:h}=ip(e),I=u("width");for(let v of m){let O=h[v];!O||O==="fit"||(l.push(f?a[v][O]:dj[v][O]),O==="fixed"&&(i[pj[v]]=mn(I[v]?.value??nj.fallback,I[v]?.unit)))}for(let v of Ql.filter(O=>O!=="width")){let O=u(v);for(let C of m){let L=O[C];if(L===void 0)continue;let[M,K]=f?n[v][C]:xj[v][C];i[M]=mn(L.value,L.unit),l.push(K)}}let S=np(e.textFit?.desktop),P=np(e.textFit?.phone),T=v=>{let O=Wr(e.minFont?.[v]);return O===void 0?void 0:e.units?.minFont?.[v]==="vw"?`${O}vw`:String(O)},B=T("desktop"),k=T("phone"),g=np(e.textFit?.tablet),b=g!==S||P!==void 0?g:void 0,E=T("tablet"),A=E!==B||k!==void 0?E:void 0,N=Wr(e.maxWidth?.desktop),w=Wr(e.maxWidth?.tablet)??N,_={desktop:N!==void 0,tablet:w!==void 0,phone:(Wr(e.maxWidth?.phone)??w)!==void 0},y=(v,O,C)=>{if(O!=="line"&&O!=="ellipsis")return;let L=v==="tablet"?void 0:v,M=(K,W)=>C||!L?K[v]:W[L];if(O==="line"){l.push(M(s,W1));return}if(l.push(M(pI,W1)),l.push(M(yj,G1)),f&&!C&&v==="desktop")for(let K of["desktop","tablet"])_[K]||l.push($1[K]);else _[v]||l.push(M($1,K1))};return b?(y("desktop",S,!0),y("tablet",b,!0),y("phone",P??b,!0)):(y("desktop",S,!1),y("phone",P??S,!1)),S&&(d[cr.fit]=S),b&&(d[cr.fitTablet]=b),P&&(d[cr.fitPhone]=P),B!==void 0&&(d[cr.min]=B),A!==void 0&&(d[cr.minTablet]=A),k!==void 0&&(d[cr.minPhone]=k),!r&&(b||A!==void 0)&&(d[cr.edge]=""),l.length===0&&Object.keys(d).length===0?null:{className:[ij,...l].join(" "),style:i,attrs:d}}function hhe(e){if(Wr(e.maxWidth?.desktop)!==void 0)return!0;let o=sp(e.widthFit?.desktop);return o==="fill"||o==="fixed"}function Y1(e){return["desktop","tablet","phone"].some(o=>{let t=sp(e.widthFit?.[o]);return t==="fixed"||t==="fill"||Wr(e.minWidth?.[o])!==void 0})}function dp(e){let o={};for(let t of sj){let r=e[t],a=e[N1(t)],n=e[D1(t)];(r!==void 0||a!==void 0||n!==void 0)&&(o[t]={desktop:r,tablet:a,phone:n});let s=lp(t),l={desktop:e[s],tablet:e[N1(s)],phone:e[D1(s)]};(l.desktop!==void 0||l.tablet!==void 0||l.phone!==void 0)&&((o.units??={})[t]=l)}return o}var X1={label:"Button",defaultProps:{label:"",href:"#",variant:"primary",align:"left",contained:!0}};import{parseHexColor as Sj}from"efficient-shell/format";import{convertLength as bj}from"efficient-easel/screen/lib/content/length-units";import{viewKeyAt as Z1}from"efficient-easel/draw";var Yt=(e,o,t,r)=>o===t?e:bj(e,o,t,r,{min:0,max:200,step:4}),_a={textFit:"line",textFitPhone:"wrap"},Aa={...U,[Vo]:""},{label:Vhe,href:Yhe,...wj}=X1.defaultProps,fo=wj,Fa={buttonFillOpacity:0,buttonBorder:{width:0},buttonPaddingTop:0,buttonPaddingRight:0,buttonPaddingBottom:0,buttonPaddingLeft:0},Y={...jm,sectionAccent:0},Zn={sectionAccent:-1},J=[...vr,"sectionHeightMode","sectionHeightValue","sectionHeightUnit","sectionHeightModeTablet","sectionHeightValueTablet","sectionHeightUnitTablet","sectionHeightModePhone","sectionHeightValuePhone","sectionHeightUnitPhone","sectionCorners","sectionCornerSides","sectionBorder","sectionBorderTablet","sectionBorderPhone","sectionAccent",gk.unitKey,...bk,...xk,"anchor",Ys,...Pn,Dd,...jd,...Oc,...Ud(["widthFit",...Ql,...Ql.map(lp)]),...Object.values(Ao)],Xn="a section width key, ignored since efficient-web-builder 45 (an old key; a section's own width has new keys, lib/content/section-width), so dropping it changes nothing",X={sectionSurface:"read by nothing in src/ (searched 2026-10-24): a retired theme key that draws nothing today, so dropping it changes nothing",widthMode:Xn,fullWidth:Xn,pageWidth:Xn,backgroundWidth:Xn,contentWidth:Xn,contentMax:Xn},te=Object.fromEntries(["sectionPaddingLeft","sectionPaddingRight","sectionPaddingLeftTablet","sectionPaddingRightTablet","sectionPaddingLeftPhone","sectionPaddingRightPhone"].map(e=>[e,"needs Box side padding outside its gutter: the old section added it outside its frame, a Box's side padding replaces the gutter. 0 live nodes store it (JJ's read-only export, 2026-10-24)"])),fp={[zt]:"read by `wrapperPad`: a value named here is drawn as it is, so the section's own px is not added; the Box's padding is the total"};function re(e,o){let t=ye(e.sectionPaddingTop)??0,r=ye(e.sectionPaddingBottom)??0,a=ye(e.sectionPaddingTopTablet),n=ye(e.sectionPaddingBottomTablet),s=wr(e.sectionPaddingUnit),l=wr(e.sectionPaddingUnitTablet),i=wr(e.sectionPaddingUnitPhone),d=Array.isArray(e[zt])?e[zt]:[],f=(P,T)=>d.includes(P)?0:T,m=(P,T,B,k,g,b)=>{let E=ye(e[P]);if(E!==void 0)return E+Yt(f(P,b),"px",i,"mobile");let A=k===void 0?{n:g,unit:s,key:B}:{n:k,unit:l,key:T};return Yt(A.n,A.unit,i,"mobile")+Yt(f(A.key,b),"px",i,"mobile")},u=(P,T,B,k,g,b)=>B!==void 0?{[P]:B+Yt(f(P,b??g),"px",l,"tablet")}:b===void 0?{}:{[P]:Yt(k,s,l,"tablet")+Yt(f(T,b),"px",l,"tablet")},h=P=>({desktop:ho[P],tablet:Z1(ho[P],"tablet"),phone:Z1(ho[P],"mobile")}),I=h("top"),S=h("bottom");return{[I.desktop]:t+Yt(f(I.desktop,o.top),"px",s,"desktop"),[S.desktop]:r+Yt(f(S.desktop,o.bottom),"px",s,"desktop"),...u(I.tablet,I.desktop,a,t,o.top,o.topTablet),...u(S.tablet,S.desktop,n,r,o.bottom,o.bottomTablet),[I.phone]:m(I.phone,I.tablet,I.desktop,a,t,o.topPhone),[S.phone]:m(S.phone,S.tablet,S.desktop,n,r,o.bottomPhone)}}var ce=e=>[...["sectionPaddingTop","sectionPaddingBottom","sectionPaddingTopTablet","sectionPaddingBottomTablet","sectionPaddingTopPhone","sectionPaddingBottomPhone"].map(o=>[o,o,(t,r)=>re(r,typeof e=="function"?e(r):e)[o]]),["sectionPaddingUnit","sectionPaddingUnit"],["sectionPaddingUnitTablet","sectionPaddingUnitTablet"],["sectionPaddingUnitPhone","sectionPaddingUnitPhone"]];function ft(e,o){let t={};for(let[a,n]of hx)e[a]!==void 0&&(t[n]=e[a]);let r=Qd(e,Hn(o));return{...t,sectionPaddingTop:r.top,sectionPaddingBottom:r.bottom}}var $r=e=>[...hx.map(([o,t])=>[o,t,(r,a)=>ft(a,e)[t]]),["sectionPaddingTop","sectionPaddingTop",(o,t)=>ft(t,e).sectionPaddingTop],["sectionPaddingBottom","sectionPaddingBottom",(o,t)=>ft(t,e).sectionPaddingBottom]],Cj={kind:"heading-case-upper",styles:["heading-1","heading-2","heading-3"]},Xhe=e=>o=>We(o.props[e])?[Cj]:[],pe=(e,o)=>({kind:"text",key:e,role:"eyebrow",props:U,...o?{style:o}:{}}),Jn=e=>({kind:"group",name:"Chip",props:{...R,...rr("main"),...Co(6,14)},parts:[pe(e,{color:"background",...H("label",12),weight:600,letterSpacing:.16})]}),J1=e=>e.background!=="transparent",kj=(e,o)=>{let[t,r]=[e,o].map(a=>typeof a=="string"?a.trim():"");return t?r?`[${t} ]{color=text}${r}`:`[${t}]{color=text}`:r},ei={align:"right",alignPhone:"left"},vj=(e,o,t)=>{let r=a=>kj(a[e],a[o]);return{kind:"block",type:"Text",when:(a,n)=>n!==void 0&&r(n)!=="",box:[[e,"text",(a,n)=>r(n)],[o,"text",(a,n)=>r(n)]],props:t}},oi=(e,o,t,r={})=>vj(e,o,{...Aa,...ei,...r,_partStyles:{text:{...Ro,color:"labels",...t,case:Ro.case,...ei}}}),Qn=(e,o)=>typeof e=="number"&&Number.isInteger(e)&&e>=0?e:Ta(o)?.selected??0,Q1="var(--site-surface-2)",cp=(e,o)=>Ta(o)?.themes[Qn(e.sectionAccent??0,o)],$o=(e,o)=>(t,r)=>{if(!o?.(t,r))return rr(e);let a=cp(t,r)?.[e];return a?{fillColor:a}:{}},pp=(e,o)=>zr(e,o)>=0,eA=e=>e.startsWith("#")&&Sj(e)!==null,up=(e,o,t)=>{let r=e?.trim();if(r&&eA(r))return{fillColor:r};let a=yx(r);if(a)return rr(a);let n=r===Q1?cp(o,t):void 0;return n?{fillColor:Uw(n)}:{}},mp=e=>{let o=e?.trim();return!o||o==="transparent"||o===Gt||yx(o)||o===Q1||eA(o)?void 0:"it paints a colour that no Box Fill can hold"},zr=(e,o)=>{let t=Ta(o)?.themes;return t&&J1(e)?jw(t,Qn(e.sectionAccent,o)):-1},Ur=(e,o,t)=>{let r=zr(o,t);return r>=0?r:e},es=(e,o)=>{let t=Ta(o)?.themes,r=t?Gw(t,Qn(e,o)):-1;return r>=0?r:e},Ba=(e,o)=>{let t=zr(e,o);return t>=0?{sectionAccent:t}:{}},jr=(e,o)=>J1(e.props)&&zr(e.props,o)<0?[{kind:"band-preset",page:Qn(e.props.sectionAccent,o)}]:[],os=(e,{view:o="desktop",to:t="px",maxPx:r=1/0}={})=>{let{siteGutter:a,siteGutterUnit:n,siteGutterPhone:s,siteGutterPhoneUnit:l}=e.site??{},i=In(o),d=(m,u,h)=>{let I=wr(u),S=Rw(m,I,"spacing",h);return S===null?null:Yt(S,I,"px",i)},f=o==="desktop"?d(a,n,hC)??OC(a):d(s,l,gC)??_C(s)??BC(a,n);return Yt(Math.min(r,f),"px",t,i)},ti=Object.fromEntries(["Top","Right","Bottom","Left","TopPhone","RightPhone","BottomPhone","LeftPhone"].map(e=>[`sectionPadding${e}`,0])),ri=e=>({top:0,right:0,bottom:0,left:0,...e}),mI=(e,o,t,r=[])=>({kind:"group",name:e,keepEmpty:!0,props:(a,n)=>({...R,...ti,...$o("surface")(a,n),...typeof t=="function"?t(a,n):t}),box:[[o,"bgImage"],Ke.kind,Ke.duration,Ke.delay],parts:r});import{phoneKey as OI,readHidable as EI}from"efficient-easel/draw";import{isNodeList as Zj,newId as Jj}from"efficient-easel/data";function oA(e){return Math.min(4,Math.max(2,e??3))}var eIe={eyebrow:"Label",title:"Section *heading.*"},Pj=id.Cards,tA={label:"Cards",fields:Pj,defaultProps:{eyebrow:"",title:"",items:[],columns:3}};var rIe={eyebrow:"Highlight",title:"Key *features.*"},aIe=()=>[{label:c("Feature label one")},{label:c("Feature label two")},{label:c("Feature label three")},{label:c("Feature label four")},{label:c("Feature label five")},{label:c("Feature label six")}],rA={label:"Key Features",defaultProps:{eyebrow:"",title:"",items:[],columns:3}};import{parseOption as Tj}from"efficient-shell/format";var xI="cardPlace",Oj=["","top-line"];function iIe(e){return Tj(Oj,"",e[xI])}var dIe="absolute left-5 top-0 z-10 -translate-y-1/2 bg-bg px-2",fIe="data-sf-top-line",Ej=new Set(["Cards",io]);function cIe(e){return typeof e=="string"&&Ej.has(e)}var _j=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 pIe(e,o,t){return!t||!o?.linesBetween||o.index!==0?e:_j(e)?{...e,top:0}:e}var uIe="outsideFramedCard";var xp={sectionBorder:{top:0,right:1,bottom:1,left:0},...rr("background")},Aj={gap:0,gapPhone:0,sectionBorder:{top:1,right:0,bottom:0,left:1},shadow:!0},La=e=>({direction:"row",columns:e,columnsTablet:e,...Aj}),aA=(e={})=>Be(zc,{...U,tag:"p",[xI]:"top-line"},e,!0),ts=(e=ta)=>{let o=sn(e);return{...o,props:{...xp,...o.props},slots:{[Ce]:[...o.slots?.[Ce]??[],aA()]}}},hI=(e=!1)=>{let o=ln(e);return{...o,props:{...xp,...o.props}}},Fj={name:"name",time:"time",note:"note",price:"price"},Bj={textStyle:"body-1",...H("body",16),weight:500,lineHeight:1.5},Lj={...Ro,...H("label",12),letterSpacing:.18,lineHeight:1.5},Rj={textStyle:"body-1",...H("body",14),lineHeight:1.6},Dj={textStyle:"body-1",fontRole:"heading",...H("headingSmall",20),weight:500,color:"accent",lineHeight:1.5},Nj={...H("label",11),letterSpacing:.25},Mj={gap:16,gapPhone:16,sectionBorder:{top:0,right:0,bottom:0,left:0},shadow:!1},hp=e=>({direction:"row",columns:e,...Mj}),II=[...new Set([...Object.keys(La(1)),...Object.keys(hp(1))])],gI=()=>{let e=Fj,o={tag:"p",widthFit:"fill"};return{type:q,props:{...R,name:"Card",justify:"between",gap:16,gapPhone:16,...Co(24),sectionBorder:{top:1,right:1,bottom:1,left:1},...rr("surface"),shadow:!0},slots:{[Ce]:[aA(Nj),{type:q,props:{...R,name:"Words",gap:8,gapPhone:8},slots:{[Ce]:[Be(e.name,{...U,...o},Bj),Be(e.time,{...oe,...o},Lj),Be(e.note,{...oe,...o},Rj)]}},Be(e.price,{...U,...o},Dj)]}}};import{tabletKey as iA}from"efficient-easel/draw";import{VIEW_DESKTOP_MIN as Ip}from"efficient-easel/draw";var gp=tr,yI=Ip,nA=960,sA=tr,lA={min:gp,max:1600,step:10},yp="stackBelow";function kIe(e){if(!(typeof e!="number"||!Number.isFinite(e))&&!(e<lA.min||e>lA.max))return Math.round(e)}var Hj=e=>`sf-stack-${e}`,Wj=e=>`sf-stack-${e}-gutter`,$j=e=>`sf-stack-${e}-outer`,rs=e=>`${e-.02}px`;function vIe(e,o={}){let t=o.gutter!==!1,r=`.${Hj(e)}`,a=`.${Wj(e)}`,n=`.${$j(e)}`,s=[];if(e>gp){let l=`${r}>.sf-block-size,${r}>[data-easel-block]>[data-sf-part-host]>.sf-block-size`,i=Math.min(e,Ip);s.push(`@media (min-width:${gp}px) and (max-width:${rs(e)}){${r}${r}{flex-direction:column}.sf-gap-overlap${r}{--sf-gap-overlap-eff:calc(var(--sf-gap-overlap) / 2)}${l}{width:min(var(--sf-bw-p,100%),100%);flex-grow:0}}`,`@media (min-width:${gp}px) and (max-width:${rs(i)}){.sf-gap-zone${r}{gap:var(--sf-gap-len-tablet,var(--sf-gap-len-phone,calc(var(--sf-gap-len) / 2)))}}`),e>Ip&&s.push(`@media (min-width:${Ip}px) and (max-width:${rs(e)}){.sf-gap-zone${r}{gap:var(--sf-gap-len-phone,calc(var(--sf-gap-len) / 2))}}`)}return t&&s.push(`@media (max-width:${rs(e)}){${a}${a}{padding-inline:${SC.frame}}}`),t&&e<nA&&s.push(`@media (min-width:${e}px) and (max-width:${rs(nA)}){${a}${a}{padding-inline:${yC}}}`),e>sA&&s.push(`@media (min-width:${sA}px) and (max-width:${rs(e)}){`+["top","bottom","left","right"].map(l=>`.sf-pad-${l}-phone:has(>${n}),.sf-pad-${l}-phone${n}{padding-${l}:var(--sf-pad-${l[0]}-phone)!important}`).join("")+"}"),s.join("")}import{parseOption as zj}from"efficient-shell/format";var Uj=["standard","editorial","simple","essay"];function Ra(e){if(e==="ProductGrid")return"shelf";let o=z(Ct,e)?.headStyle;return zj(Uj,"standard",o)}var ai={standard:64,editorial:60,simple:36,essay:28,shelf:20},jj={SectionHeader:"accent",FAQ:"accent",FitmentFinder:"accent",FitmentTable:"accent",SpecTable:"accent",RelatedProducts:"accent",Collections:"accentNum"};function Gj(e){if(e==="SectionHeader")return{num:"num",title:"title",description:"description",link:!0};let o=z(Ct,e);if(!o)throw new Error(`section-head-looks: "${e}" has no head row in SPLITTABLE_SECTIONS`);return{num:o.num,title:o.title,description:o.description,link:o.headRows.includes("linkText")&&o.headRows.includes("linkHref")}}function bp(e,o,t){let r=`editorial:${e}|${o}|${t}`,a=Sp.get(r);if(a)return a;let n=pA({num:e,title:o,description:t,link:!1});return Sp.set(r,n),n}var zo={[yp]:yI},bI={top:0,right:0,bottom:1,left:0},Uo=(e,o,t,r)=>({sizeToken:{step:e,px:r,fluid:{minPx:o,vw:t}}}),wp=(e,o,t={})=>pe(e,{...H("label",o),...t}),Cp=(e,o)=>({kind:"text",key:e,role:"heading",props:U,style:{textStyle:"heading-2",...o}}),wI=tr,Kj=yI,CI=(e,o,t,r,a={})=>({kind:"text",key:e,props:{...oe,align:"right",alignPhone:"left",...t?{maxWidth:t,maxWidthPhone:wI}:{},...a},style:{textStyle:"body-5",fontRole:"heading",alignPhone:"left",...H("body",o),...r,...a}}),cA={...fo,align:"right",alignPhone:"left",...Fa},SI=e=>({kind:"button",key:"linkText",href:"linkHref",variant:"ghost",props:cA,style:{...wt(e),color:"labels"}}),dA=(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"?qj(ar()):{},...t.style}}}}},qj=e=>e._partStyles.text??{},as={widthFitPhone:"fill"};function kI(e){if(e.kind!=="group")return e;if(e.name==="Words"){let o=e.props;return{...e,props:typeof o=="function"?(t,r)=>({...o(t,r),...as}):{...o,...as}}}return{...e,parts:e.parts.map(kI)}}function Vj(e,o){let t=z(jj,e),r=t==="accent",a=wp(o.num,14,{color:r?"accent":"labels"}),n=t==="accentNum"&&a.kind==="text"?{...a,mark:"accentLead"}:a,s=Cp(o.title,r?{...Uo("headingMedium",36,5,64),case:"upper",lineHeight:.95,letterSpacing:-.025}:{...H("headingMedium",56,36),case:"none",lineHeight:1,letterSpacing:-.03}),l=e==="Collections";return{kind:"group",name:"Header",props:{...R,direction:"row",align:"end",justify:"between",gap:40,gapPhone:12,share:"content",sectionBorder:bI,sectionPaddingBottom:24,sectionPaddingBottomPhone:20},parts:[{kind:"group",name:"Title",props:{...R,...as,direction:"row",align:"end",gap:40,gapPhone:12,share:"content"},parts:[{kind:"group",name:"Number",props:{...R,...as,align:"start",gap:12},parts:[{kind:"image",key:"logoSrc",alt:"logoAlt",props:{aspect:"auto",contained:!1}},n,...l?[dA(o.num,"==01== / Collections",n)]:[]]},{kind:"group",name:"Heading",props:{...R,...as},parts:[s,...l?[dA(o.title,`Three ranges,
|
|
320
|
+
one standard.`,s)]:[]]}]},{kind:"group",name:"Words",props:{...R,...as,gap:12,maxWidth:340,maxWidthPhone:wI},parts:[...o.description?[CI(o.description,14,void 0,{lineHeight:1.5})]:[],...o.link?[SI(14)]:[],...l?[{kind:"block",type:"ButtonBlock",props:{...cA,variant:"ghost",label:"View all",href:"/wheels",_partStyles:{label:SI(14).style}}}]:[]]}]}}function kp(e,o){return e.kind==="text"?o.includes(e.key)?{...e,mark:"accentItalic"}:e:e.kind==="group"?{...e,parts:e.parts.map(t=>kp(t,o))}:e}function pA(e){let o=Cp(e.title,{...Uo("headingMedium",40,5.5,80),case:"upper",weight:500,lineHeight:1,letterSpacing:-.03});return{kind:"group",name:"Header",props:{...R,direction:"row",align:"end",justify:"between",gap:40,gapPhone:14,share:"content",sectionBorder:bI,sectionPaddingBottom:32,...zo},parts:[{kind:"group",name:"Title",props:{...R,direction:"row",align:"end",gap:40,gapPhone:14,share:"content",...zo},parts:[{kind:"group",name:"Number",props:{...R,sectionPaddingBottom:8},parts:[{...wp(e.num,13),props:{...U,..._a}}]},kp(o,[e.title])]},{kind:"group",name:"Words",props:{...R,sectionPaddingBottom:4,maxWidth:360,[iA("maxWidth")]:Kj,maxWidthPhone:wI},parts:e.description?[CI(e.description,14,void 0,{lineHeight:1.5},{[iA("align")]:"left"})]:[]}]}}function fA(e,o){return{kind:"group",name:"Header",props:{...R,gap:16,gapPhone:16},parts:[wp(e.num,13),Cp(e.title,o)]}}var uA=[["para",{...wt(13),weight:400,lineHeight:1,letterSpacing:.22}],["sm",{...H("headingMedium",40,28),case:"none",weight:500,lineHeight:1,letterSpacing:-.03}],["md",{...H("headingMedium",48,32),case:"none",weight:500,lineHeight:1,letterSpacing:-.03}],["lg",{...H("headingMedium",56,36),case:"none",weight:500,lineHeight:1,letterSpacing:-.03}],["xl",{...H("headingMedium",64,40),case:"none",weight:500,lineHeight:1,letterSpacing:-.03}]],Yj=e=>uA.some(([o])=>o===e.titleSize)?e.titleSize:"lg";function Xj(e){return{kind:"group",name:"Header",props:{...R,direction:"row",align:"center",justify:"between",gap:16,share:"content",stickTop:!0,sectionBorder:bI,sectionPaddingTop:12,sectionPaddingBottom:12},parts:[{kind:"group",name:"Title",props:{...R,direction:"row",align:"end",gap:24,share:"content"},parts:[wp(e.num,13,{color:"labels",letterSpacing:.22,lineHeight:1}),...uA.map(([o,t])=>({...Cp(e.title,t),when:r=>Yj(r)===o}))]},{kind:"group",name:"Words",props:{...R,direction:"row",align:"center",justify:"end",gap:20,share:"content"},parts:[...e.description?[CI(e.description,13,340,{lineHeight:1.4})]:[],...e.link?[SI(13)]:[]]}]}}function vp(e){return Ra(e)==="shelf"?{titleSize:"the Header Box's title Text part: its size, as the old shelf title drew it (lib/document/blocks/general/section-head-looks)"}:{}}var Sp=new Map,vI={...H("headingMedium",44,32),case:"upper",weight:500,lineHeight:1,letterSpacing:-.02};function ct(e){let o=Sp.get(e);if(o)return o;let t=Gj(e),r=Ra(e),a=r==="editorial"?pA(t):r==="simple"?fA(t,vI):r==="essay"?fA(t,{...H("headingMedium",38,28,"headingSmall"),case:"upper",lineHeight:1,letterSpacing:-.02}):r==="shelf"?Xj(t):Vj(e,t);return Sp.set(e,a),a}var Da={Series:"transparent",StatsParagraph:"transparent",TimelineTrack:Gt,Stats:void 0};var ni=(e,o,t,r)=>({sectionBorder:{top:e,right:o,bottom:t,left:r}}),wA=e=>o=>oA(ye(o.columns)??ye(e.columns)),Qj="inline is the head the row draws; an own-box node is skipped (`skip`)",eG={kind:"text",key:"title",role:"heading",props:U,style:{textStyle:"heading-3",...vI}},Tp=e=>{let o=da(typeof e.background=="string"?e.background:void 0,Da.Series);return o&&o!=="transparent"?o:void 0},Pp=e=>Tp(e)===Gt,oG={...R,justify:"between",gap:16,gapPhone:16,sectionHeightMode:"fixed",sectionHeightValue:340,sectionHeightUnit:"px",sectionPaddingTop:36,sectionPaddingRight:28,sectionPaddingBottom:32,sectionPaddingLeft:28,sectionPaddingTopPhone:36,sectionPaddingRightPhone:28,sectionPaddingBottomPhone:32,sectionPaddingLeftPhone:28},mA={...R,direction:"row",justify:"between",gap:12,share:"content",phoneRow:2,[OI("share")]:"content"},tG=e=>{let o=Tp(e)?1:2;return{...R,direction:"row",columns:4,columnsTablet:2,gap:o,gapPhone:o}},PI={...wt(12),letterSpacing:.22,lineHeight:1.5},xA=e=>We(e.viewLabel)&&!EI(e.viewLabel).hidden,pt=e=>EI(e).text?.trim?.()??"",Op=e=>Object.fromEntries(Object.entries(e).filter(([,o])=>xo(o)!==void 0)),_I=e=>e.map(([o,t,r])=>({key:o,label:t,...r?{multiline:!0}:{}})),rG=_I([["num","Number"],["since","Corner note"],["title","Card title"],["body","Card body",!0],["count","Count"],["countLabel","Count word"]]),aG=_I([["label","Label"],["value","Value"],["body","Card body",!0]]),si=(e,o,t,r,a,{reads:n=["cards"],keep:s=[]}={})=>({kind:"group",name:e,props:o,parts:[{kind:"core",as:io,headless:!0,keep:s,derive:{reads:n,props:l=>Fd(r(l),t)},slots:(l,i)=>({[Te]:[a(l,i)]})}]}),CA=e=>Array.isArray(e.cards)?e.cards:[],kA=e=>(Array.isArray(e.items)?e.items:[]).map(o=>Op({title:pt(o?.label),href:typeof o?.href=="string"?o.href.trim():""})).filter(o=>o.title!==void 0).map((o,t)=>({key:js(Jm(o),t),...o})),nG=e=>kA(e).some(o=>xo(o.href)!==void 0),vA=[{key:Km.label,label:"Feature label"},{key:Km.href,label:"Link",kind:"link"}],hA=e=>FO(e.eyebrowLook,"KeyFeatures")==="filled",sG={name:"Key Features",boxProps:(e,o)=>({...Y,direction:"column",gap:44,gapPhone:32,...$o("surface")(e,o),...ni(1,0,1,0),...re(e,xc)}),box:[...J,...ce(xc)],parts:[{kind:"group",name:"Heading",props:{...R,direction:"row",align:"end",gap:20,wrap:!0,share:"content",phoneRow:2,[OI("share")]:"content"},parts:[{...Jn("eyebrow"),when:hA},{...pe("eyebrow"),when:e=>!hA(e)},eG]},si("Cards",e=>({...R,...La(wA(rA.defaultProps)(e))}),vA,kA,e=>hI(nG(e)),{reads:["items"]})],drop:{...X,...te,columns:'Box "Cards": its Columns and tablet Columns',eyebrowLook:"the Filled look is a Box in the main colour round the eyebrow Text; the plain look is the eyebrow Text"}},IA=(e,o)=>({...xp,...$o("background")(e,o)}),gA=e=>{let o=wA(tA.defaultProps)(e);return{...R,...La(o)}},lG=_I([["title","Card title"],["body","Card body",!0]]),PA=e=>(Array.isArray(e.items)?e.items:[]).map((o,t)=>({key:typeof o?.key=="string"&&o.key?o.key:js(Jm(o),t),title:pt(o?.title),body:pt(o?.body)})),TA=e=>{let o={},t={};for(let[r,a]of Object.entries(e.props??{}))r!=="id"&&(Zj(a)?t[r]=a.map(TA):o[r]=a);return{type:String(e.type),props:o,...Object.keys(t).length?{slots:t}:{}}},yA=(e,o)=>{let t=TI(e)?hI(iG(e)):ts(),r=Array.isArray(e.template)?e.template.map(TA):[t],[a]=r;return r.length===1&&a.type===q?{...a,props:{...IA(e,o),...a.props}}:{type:q,props:{...R,...IA(e,o),name:"Card"},slots:{[Ce]:r}}},TI=e=>e.cardStyle==="label-only",OA=e=>PA(e).map((o,t)=>{let r=e.items[t]?.href;return Op({key:o.key,title:o.title,href:typeof r=="string"?r.trim():""})}),iG=e=>OA(e).some(o=>xo(o.href)!==void 0),SA=e=>Array.isArray(e.template)&&e.template.length===0,bA=["dataSource","dataSourceOptions","highlightedCard","highlightBadge"];function EA(){let e=t=>({key:Jj("card"),title:c(t),body:c("A short line about this card.")}),o=[e("Card title one"),e("Card title two"),e("Card title three")];return{eyebrow:c("Label"),title:c("Section *heading.*"),items:o}}var dG={name:"Cards",ownBoxConverts:!0,boxProps:(e,o)=>({...Y,direction:"column",gap:36,gapPhone:28,...$o("surface")(e,o),...re(e,nc)}),box:[...J,...ce(nc)],parts:[{...ct("Cards"),when:e=>!fI(e)},{...si("Cards",gA,lG,PA,yA,{reads:["items"],keep:bA}),when:e=>!SA(e)&&!TI(e)},{...si("Cards",gA,vA,OA,yA,{reads:["items"],keep:bA}),when:e=>!SA(e)&&TI(e)}],drop:{...X,...te,columns:'Box "Cards": its Columns and tablet Columns',fillLastRow:"a Box's cells have no span: a short last row lands with its cells one column each, as the switch off draws (a cell can be widened by hand)",cardStyle:"the Card list's template: the Cards card, or under Label only the Label only card (a cell Box, a Mark Box, the label Text)",template:"the Card list's template (the card Box takes the old cell's ground and lines)",headPlacement:"an own-box node lands without its head; inline is the head the row draws",eyebrowLook:"needs the eyebrow's Filled look on a Text block: Plain is the eyebrow start look the row draws; 2 of 62 live nodes store it (the stored-node export, 2026-10-24)"}},fG={name:"Recurring Columns",boxProps:(e,o)=>({...Y,direction:"column",gap:60,gapPhone:60,...ni(0,0,1,0),...zo,...Pp(e)?Ba(e,o):{},...up(Tp(e),e,o),...re(e,gc)}),box:[...J.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,t)=>Pp(o)?Ur(e,o,t):e],...ce(gc)],skip:e=>mp(Tp(e)),site:(e,o)=>Pp(e.props)?jr(e,o):[],parts:[ct("Series"),si("Cards",tG,rG,e=>CA(e).map(o=>Op({num:pt(o.num),since:pt(o.since),title:pt(o.title),body:pt(o.desc),count:pt(o.entries),countLabel:pt(o.entriesLabel)})),(e,o)=>({type:q,props:{...oG,...$o("background",(t,r)=>Pp(t)&&pp(t,r))(e,o),name:"Card"},slots:{[Ce]:[{type:q,props:{...R,name:"Words",gap:16,gapPhone:16},slots:{[Ce]:[{type:q,props:{...mA,name:"Top"},slots:{[Ce]:[Be("num",U,H("label",13),!0),Be("since",U,H("label",13),!0)]}},Be("title",{...U,tag:"h3"},{textStyle:"heading-3",...H("headingSmall",28),weight:500,case:"upper",lineHeight:1.04,letterSpacing:-.02}),Be("body",oe,{textStyle:"body-5",fontRole:"heading",...H("body",14),lineHeight:1.6})]}},{type:q,props:{...mA,name:"Footer",align:"center",gap:0,gapPhone:0,sectionPaddingTop:16,sectionPaddingTopPhone:16,...ni(1,0,0,0),...xA(e)?{}:{[on]:["count","countLabel"]}},slots:{[Ce]:[{type:q,props:{...R,name:"Count",direction:"row",align:"center",gap:12,gapPhone:12,share:"content",phoneRow:2,[OI("share")]:"content"},slots:{[Ce]:[Be("count",U,PI),Be("countLabel",oe,PI)]}},...xA(e)?[{type:q,props:{...R,name:"View",maxWidthPhone:266},slots:{[Ce]:[{type:"Text",props:{...U,text:EI(e.viewLabel).text,_partStyles:{text:{...ar()._partStyles.text,...PI}}}}]}}]:[]]}}]}}))],reads:{viewLabel:"a Text typed once in the card template: the far end of every card's footer",background:"the Box's theme (the band preset) or its Fill"},drop:{...X,...te,headPlacement:Qj}},cG={...R,direction:"row",columns:3,gap:40,gapPhone:16},pG={...R,gap:8,gapPhone:8,...Co(24),...ni(1,1,1,1)},uG={name:"Document Detail Cards",boxProps:e=>({...Y,direction:"column",gap:40,gapPhone:16,...ni(0,0,1,0),...re(e,pc)}),box:[...J,...ce(pc)],parts:[si("Cards",cG,aG,e=>CA(e).map(o=>Op({label:pt(o.label),value:pt(o.value),body:pt(o.desc)})),(e,o)=>({type:q,props:{...pG,...$o("surface")(e,o),name:"Card"},slots:{[Ce]:[Be("label",U,{...H("label",12),lineHeight:1.5},!0),{type:q,props:{...R,name:"Words",gap:14,gapPhone:14},slots:{[Ce]:[Be("value",U,{textStyle:"heading-3",...H("headingSmall",20),weight:500,letterSpacing:-.015,lineHeight:1.5}),Be("body",oe,{textStyle:"body-5",fontRole:"accent",...H("body",14),italic:!0,lineHeight:1.5})]}}]}}))],drop:{...X,...te}},_A={Cards:dG,KeyFeatures:sG,Series:fG,DocMetaCards:uG};import{SITE_SIDE as xL}from"efficient-easel/screen/lib/content/length-units";import{phoneKey as IG}from"efficient-easel/draw";import{newId as gG}from"efficient-easel/data";import{phoneKey as mG}from"efficient-easel/draw";import{isNode as li}from"efficient-easel/data";var ns="cardStyle";function AA(e){let{widthPhone:o,...t}=e;return e.widthFitPhone==="fixed"?{...t,widthFitPhone:"fill"}:{...e}}var Ep={table:{items:{gap:0,gapPhone:0,columnsTablet:2},grid:{gap:0},row:{gap:0,[mG("share")]:"content"},card:{justify:"between",gap:12,gapPhone:12,sectionHeightMode:"fixed",sectionHeightValue:242,sectionHeightUnit:"px",widthFitPhone:"fixed",widthPhone:800,sectionPaddingTop:48,sectionPaddingBottom:48,sectionPaddingLeft:32,sectionPaddingRight:32,sectionBorder:{top:1,right:1,bottom:1,left:1}}},list:{items:{gap:32,gapPhone:32,phoneRow:2},grid:{gap:32,gapPhone:32},row:{gap:32,gapPhone:32},card:{justify:"start",gap:8,gapPhone:8,sectionPaddingTop:20,sectionPaddingBottom:0,sectionBorder:{top:1,right:0,bottom:0,left:0}}}},ut={table:{...Ep.table,listCard:AA(Ep.table.card)},list:{...Ep.list,listCard:AA(Ep.list.card)}},cge=[{label:"Table",value:"table"},{label:"List",value:"list"}],pge=e=>e==="table"||e==="list",xG=e=>[...new Set([...Object.keys(ut.table[e]),...Object.keys(ut.list[e])])];function ii(e,o,t){let r={...e};for(let a of xG(o))delete r[a];return{...r,...structuredClone(ut[t][o])}}function hG(e,o,t){let r=e.props??{},a=Array.isArray(r[Te])?r[Te]:[],n=a.findIndex(i=>li(i)&&i.type===t);if(n<0)return e;let s=a[n],l=a.map((i,d)=>d===n?{...s,props:ii(s.props??{},"listCard",o)}:i);return{...e,props:{...r,[Te]:l}}}function uge(e,o,t,r){let a=Array.isArray(e[r])?e[r]:[];if(a.some(s=>li(s)&&s.type===io)){let s=a.map(l=>li(l)&&l.type===io?hG(l,o,t):l);return{...ii(e,"items",o),[ns]:o,[r]:s}}let n=a.map(s=>{if(!li(s)||s.type!==t)return s;let l=s.props??{},i=(Array.isArray(l[r])?l[r]:[]).map(d=>li(d)&&d.type===t?{...d,props:ii(d.props??{},"card",o)}:d);return{...s,props:{...ii(l,"row",o),[r]:i}}});return{...ii(e,"grid",o),[ns]:o,[r]:n}}var AI=e=>typeof e=="string"?e.trim():"";function FA(e){let o=`${AI(e.prefix)}${AI(e.value)}`,t=AI(e.suffix);return e.emphasizeAll===!0?o?`==_${o}_==`:"":`${o}${t?`==_${t}_==`:""}`}var LA={textStyle:"heading-2",...Uo("headingMedium",56,7,96),weight:500,case:"none",lineHeight:.9,letterSpacing:-.04},FI={kind:"block",type:"Text",props:{...Aa,_partStyles:{text:LA}},box:[["value","text",(e,o)=>FA(o)]],when:(e,o)=>o!==void 0&&typeof o.value=="string"&&FA(o)!==""},BA=e=>We(e?.supSuffix),RA={textStyle:"body-1",fontRole:"heading",...H("body",16),lineHeight:1.5,letterSpacing:-.01},DA={color:"labels",...H("label",12),lineHeight:1.5,letterSpacing:.24},NA={...R,direction:"row",align:"start",gap:32,gapPhone:32,share:"content",phoneRow:2,[IG("share")]:"content"},MA={textStyle:"body-5",...H("label",13),weight:500,color:"accent",letterSpacing:.18,lineHeight:1,padding:12},BI=e=>da(e.background,Da.StatsParagraph),di=e=>BI(e)===Gt,_p=e=>({...e,sectionAccent:e.sectionAccent??0}),yG=(e,o)=>di(e)?$o("background",(t,r)=>pp(_p(t),r))(e,o):{},SG={name:"Stats with Text",skip:e=>BI(e)&&BI(e)!=="transparent"&&!di(e)?"it paints a colour of its own, not the section band":void 0,boxProps:(e,o)=>({...Y,direction:"column",gap:60,gapPhone:60,sectionBorder:{bottom:1},...zo,...ft(e,"StatsParagraph"),...di(e)?Ba(_p(e),o):{}}),box:[...J.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,t)=>di(o)?Ur(e,_p(o),t):e],...$r("StatsParagraph")],site:(e,o)=>di(e.props)?jr({props:_p(e.props)},o):[],parts:[ct("StatsParagraph"),{kind:"group",name:"Stats",props:{...R,...ut.table.grid,[ns]:"table"},parts:[{kind:"list",key:"stats",name:"Stat",perRow:()=>4,rowName:"Stats row",rowProps:{...R,direction:"row",share:"equal",phoneRow:2,...ut.table.row},props:(e,o)=>({...R,...ut.table.card,...yG(e,o)}),parts:[{...FI,when:(e,o)=>!BA(o)&&FI.when(e,o)},{kind:"group",name:"Figure",props:NA,when:(e,o)=>BA(o),parts:[FI,{kind:"text",key:"supSuffix",props:U,style:MA}]},{kind:"group",name:"Words",props:{...R,gap:4,gapPhone:4},parts:[{kind:"text",key:"label",props:U,style:RA},pe("sub",DA)]}]}]}],drop:{...X,...te,background:"the band is the Box's theme: the site's band preset (`sectionAccent`), or a declared band-preset write; none paints nothing, and any other colour is skipped",headPlacement:"needs a row per head placement: an own-box Stats with Text draws no head (its words sit in a Section Header above it), the row always draws the head"}},bG=new Set(["value","label",Vo]),wG=e=>{let o=da(typeof e.background=="string"?e.background:void 0,Da.Stats);return!!o&&o!=="transparent"},CG={name:"Stats",skip:e=>wG(e)?"it paints a colour inside its padding, and a Box paints its Fill over the padding too":We(e.dataSource)?"its figures come from a source":Array.isArray(e.items)&&e.items.some(o=>We(o?.[Vo]))?"a figure names a count, and each figure Text here is typed by hand until it is linked":Array.isArray(e.items)&&e.items.some(o=>Object.keys(o??{}).some(t=>!bG.has(t)))?"a figure has a key no part here reads":Object.keys(e._partStyles??{}).some(o=>o!=="heading")?"a figure or a name has a style of its own, kept by kind, which no part here reads":void 0,boxProps:e=>({...Y,direction:"column",gap:24,gapPhone:24,...re(e,yc)}),box:[...J,...ce(yc)],parts:[pe("heading",{color:"labels",...H("label",12),letterSpacing:.2}),{kind:"group",name:"Stats",props:{...R,...ut.list.grid,[ns]:"list"},parts:[{kind:"list",key:"items",name:"Stat",perRow:e=>ye(e.columns)??4,rowName:"Stats row",rowProps:{...R,direction:"row",share:"equal",phoneRow:2,...ut.list.row},props:{...R,...ut.list.card},parts:[{kind:"text",key:"value",props:Aa,style:{textStyle:"heading-2",...H("headingMedium",48,36),weight:500,case:"none",lineHeight:1,letterSpacing:-.03}},pe("label",{color:"labels",...H("label",12),letterSpacing:.2})]}]}],drop:{...X,...te,columns:"the rows of N: one row Box per `columns` figures, which the Box draws",dataSource:"an empty source is typed figures, what the row draws; a sourced node is skipped (0 Hartes nodes)",dataSourceOptions:"read only with a source; a sourced node is skipped (0 Hartes nodes)",contained:"the Box draws the site frame now; each figure fills the Box's column",background:"only no fill reaches here: a node that paints a colour is skipped"}},HA={StatsParagraph:SG,Stats:CG};function WA(){return{eyebrow:c("By the numbers"),title:c("What we count."),desc:c("A few numbers that matter to us."),stats:[],background:"transparent"}}var kG=[{key:"figure",label:"Figure"},{key:"superscript",label:"Superscript"},{key:"label",label:"Label"},{key:"body",label:"Text",multiline:!0}];function $A(){let e=(o,t,r,a="")=>({key:gG("stat"),figure:o,superscript:a,label:t,body:r});return[e("28==_yr_==",c("Years in business"),c("Privately held since day one. Same two founders.")),e("==_8_==",c("Operating footprint"),c("Los Angeles \xB7 Fort Lauderdale \xB7 Bewdley \xB7 Drachten \xB7 Mumbai \xB7 Selangor \xB7 Ho Chi Minh \xB7 Sydney. Three continents covered from one California design studio."),c("cities")),e("\u221221==_%_==",c("Avg. weight saving"),c("Versus OEM equivalents, across our forged catalog.")),e("14==_\xD7_==",c("Finish steps"),c("Specified in California to a 14-step protocol. No two sets are identical."))]}function vG(e){return{type:q,props:{...R,name:"Card",...structuredClone(ut[e].listCard)},slots:{[Ce]:[{type:q,props:{...NA,name:"Figure"},slots:{[Ce]:[Be("figure",Aa,LA),Be("superscript",U,MA)]}},{type:q,props:{...R,name:"Words",gap:4,gapPhone:4},slots:{[Ce]:[Be("label",{...U,widthFit:"fill"},RA),Be("body",{...U,widthFit:"fill"},DA,!0)]}}]}}}function LI(e,o,t=4){return{type:q,props:{...R,name:"Stats",direction:"row",columns:t,...structuredClone(ut[o].items),[ns]:o},slots:{[Ce]:[{type:io,props:Fd(e,kG),slots:{[Te]:[vG(o)]}}]}}}var zA={heading:"Ways to pay"},UA=()=>[{label:"Visa"},{label:"Mastercard"},{label:"Amex"},{label:"PayPal"}],jA=()=>[{text:c("Secure encrypted checkout")},{text:c("30-day returns")}],Fge={label:"Payment Methods",drawsPictures:!0,defaultProps:{heading:"",badges:[],assurances:[],contained:!0}};import{hiddenKeyOf as PG}from"efficient-easel/screen/lib/content/view-hide";import{parseOption as KA}from"efficient-shell/format";var Ap="Flex",TG={FooterMenu:"MenuBlock",FooterEmailSignup:"EmailFormBlock",FooterSocial:"SocialLogosBlock"},OG={FooterPayment:"PaymentLogosBlock"},EG=e=>{let{id:o,...t}=e;return t},GA=e=>typeof e=="string"?e:"",ss={sm:12,md:13,lg:15},qA={sm:{mark:16,words:ss.sm},md:{mark:20,words:ss.md}},_G="md",VA=1.5,AG={size:13,lineHeight:VA,width:280},FG=14,BG=40,LG=e=>KA(["left","center","right"],"left",e);function RG(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 DG(e,o,t){let r=t(e,EG(o));if(Array.isArray(o.template))return{...r,props:{...r.props,template:YA(o.template,String(r.props.id))}};if(o.template!==void 0)return r;let a=vd(e,r.props);return a===r.props?r:{...r,props:a}}function YA(e,o,t={at:0}){return e.map(r=>{let a={...r.props,id:`${o}~t${t.at++}`};for(let n of Nt(r))a[n]=YA(a[n],o,t);return{...r,props:a}})}function XA(e,o,t){let r=e.props??{},a=t?.(e,o);if(a)return a;let n=z(TG,e.type)??z(OG,e.type);if(n)return[DG(n,r,o)];switch(e.type){case"FooterLogo":{let s=LG(r.align),l=o("LogoBlock",{...r.reverse?{reverse:r.reverse}:{},...typeof r.customColor=="string"&&r.customColor?{customColor:r.customColor}:{},heightPx:Math.round(tP*((ye(r.widthPct)??100)/100)),href:"/",align:s,...RG(r)}),i=GA(r.tagline).trim();return i?[l,o("Text",{text:i,tone:"dim",align:s,_partStyles:{text:{...AG}}})]:[l]}case"FooterText":{let s=typeof r.size=="string"&&eo(ss,r.size)?r.size:_G;return[o("Text",{text:GA(r.text),tone:typeof r.tone=="string"?r.tone:"default",_partStyles:{text:{size:ss[s],lineHeight:VA}}})]}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?{[PG("mobile")]:!0}:{}})]}case"FooterGroup":{let s=Array.isArray(r.blocks)?r.blocks:[];return[o(Ap,{direction:r.direction==="horizontal"?"row":"column",gap:rP("FooterGroup",r.gap),align:KA(["start","center","end","stretch"],"start",r.align),...$m,content:s.flatMap(l=>XA(l,o,t))})]}default:return[]}}function fi(e,o,t,r){let a=e&&Array.isArray(e.props?.blocks)?e.props.blocks:[],n=f=>o(Ap,{direction:"row",wrap:!0,share:"equal",gap:BG,content:f}),s=[],l=[];for(let f of a){let m=XA(f,o,r);if(f.type==="FooterDivider"){l.length&&s.push(n(l)),l=[],s.push(...m);continue}m.length<=1?l.push(...m):l.push(o(Ap,{direction:"column",gap:FG,align:"stretch",...$m,content:m}))}(l.length||!s.length)&&s.push(n(l));let i=o(Ap,{direction:"column",content:[o("LegalLineBlock")]}),d=dP(ao,t,[...s,i]);return{...d,props:{...d.props,...e?.props?.width==="full"?{fullWidth:!0}:{}}}}import{phoneKey as RI,readHidable as NG}from"efficient-easel/draw";import{parseOption as MG}from"efficient-shell/format";var DI={contained:!1},NI=(e,o)=>({logos:[{kind:"list",key:e,name:"Logo",flat:!0,parts:[{kind:"block",type:"LogoBlock",box:["src",[o,"alt"]],when:(t,r)=>We(r?.src)||We(r?.[o])}]}]}),HG={...pe("heading",{color:"labels",letterSpacing:.2}),props:{...U,align:"center"}},WG={name:"Logos",boxProps:e=>({...Y,direction:"column",gap:32,...re(e,vl(e))}),box:[...J,...ce(vl),["bandPadding","sectionPaddingTop",(e,o)=>re(o,vl(o)).sectionPaddingTop]],parts:[HG,{kind:"core",keep:["columns","logoHeight","grayscale"],rename:{logosPerRow:"columns"},props:DI,slots:NI("items","alt")}],drop:{...X,...te,contained:"the Box draws the site frame now; the Logos block inside it fills the Box's column (`contained: false`)",headPlacement:"a Logos band has no split head (not in SPLITTABLE_SECTIONS): no stored node can hold one, and the converted block stores own-box"}},$G={kind:"group",name:"Mark",keepEmpty:!0,parts:[],props:lw(4,"main",{sectionCorners:2})},zG={name:"Payment Methods",boxProps:e=>({...Y,direction:"column",...re(e,ic)}),box:[...J,...ce(ic)],parts:[{kind:"group",name:"Methods",props:{...R,align:"center",gap:20,gapPhone:20,sectionBorder:{top:1,bottom:1},sectionPaddingTop:32,sectionPaddingBottom:32},parts:[{...pe("heading",{color:"labels"}),props:{...U,align:"center"}},{kind:"core",keep:[],as:"Logos",derive:{reads:[lo,or],props:e=>We(e[lo])?{[lo]:e[lo],...e[or]!==void 0?{[or]:e[or]}:{}}:{}},props:{...DI,look:"cards",grayscale:!1},slots:e=>({...NI("badges","label"),...We(e[lo])?{[Te]:[Vm()]}:{}})},{kind:"group",name:"Reassurance",props:{...R,direction:"row",wrap:!0,justify:"center",gap:24,gapPhone:24,phoneRow:2,[RI("share")]:"content"},parts:[{kind:"list",key:"assurances",name:"Line",of:e=>(Array.isArray(e.assurances)?e.assurances:[]).filter(o=>We(o?.text)),props:{...R,direction:"row",align:"center",gap:8,gapPhone:8,phoneRow:2,[RI("share")]:"content"},item:e=>NG(e.text).hidden?{props:{_hidden:!0}}:{},parts:[$G,{kind:"text",key:"text",props:{...U,align:"center"},style:{...H("label",13),color:"labels",lineHeight:1.5}}]}]}]}],drop:{...X,...te,contained:"the Box draws the site frame now; the Logos block inside it fills the Box's column (`contained: false`)"}},ZA=e=>ew(e.align)??"left",JA=e=>MG(["sm","md"],"sm",e.size),QA=12,eF={name:"Payment logos",boxProps:e=>({...R,direction:"row",wrap:!0,align:"center",justify:gd[ZA(e)],gap:QA,gapPhone:QA,phoneRow:2,[RI("share")]:"content"}),box:[...vr],parts:[{kind:"text",key:"lead",props:oe,styleFrom:e=>({size:ss[JA(e)],lineHeight:1.5})},{kind:"core",keep:[],as:"Logos",derive:{reads:[lo,or],props:e=>({logoHeight:qA[JA(e)].mark,align:ZA(e),...We(e[lo])?{[lo]:e[lo],...e[or]!==void 0?{[or]:e[or]}:{}}:{}})},props:{...DI,look:"marks",grayscale:!1,sectionAccent:Cr},slots:e=>({...NI("methods","label"),...We(e[lo])?{[Te]:[Vm()]}:{}})}],drop:{size:"read as the wall's Logo height (S 16, M 20) and the lead's size (the footer size table, 12 / 13)",align:"read as the Box's justify and the wall's own Alignment (start is left, end is right)",editing:"the editor's preview flag, never a stored setting: the editor tells every block it is editing"}},oF={Logos:WG,PaymentBadges:zG,FooterPayment:eF,PaymentLogosBlock:eF},tF=()=>({heading:HE.heading,items:Uc()}),rF=()=>({heading:zA.heading,badges:UA(),assurances:jA()}),aF=()=>({...hf,methods:[]});import{mixHex as qG}from"efficient-shell/format";import{MOTION_EASING as UG,MOTION_TIMING as nF,motionSeconds as sF,parseOption as lF}from"efficient-shell/format";var MI="none",Fp=[{label:"None",value:"none"},{label:"Marquee",value:"scroll"}];function dye(e){return lF(Fp,MI,e)}var ls="_gLoop",ci={field:"loop",is:"scroll"},pi="left",HI=[{label:"Left",value:"left",cell:"left"},{label:"Right",value:"right",cell:"right"},{label:"Up",value:"up",cell:"top"},{label:"Down",value:"down",cell:"bottom"}],jG={left:"storefront-ticker",right:"storefront-ticker-right",up:"storefront-ticker-up",down:"storefront-ticker-down"};function iF(e){return lF(HI,pi,e)}function dF(e){return e==="up"||e==="down"}function Bp(e){return sF("loop","duration",e.loopDuration!=null?e.loopDuration:e.speed)}var fye=nF.loop.duration.default,GG=nF.loop.delay.default;function fF(e){return sF("loop","delay",e.loopDelay)}function cye(e,o,t=GG){return`${jG[e]} ${o}s ${UG.loop}${t?` ${t}s`:""} infinite`}var Lp="_gEntrance";var xye="none",hye=[{label:"Nothing",value:"none"},{label:"Section above",value:"above"},{label:"Section below",value:"below"}];function Rp(e){return e==="above"||e==="below"?e:null}var cF="sf-ticker-join";function KG(e){return e==="above"?"sf-ticker-join-above":"sf-ticker-join-below"}function pF(e){return`absolute inset-x-0 ${KG(e)}`}var uF=e=>e.size==="display",VG=(e,o)=>{let t=cp(e,o),r=e.tone!=="plain"&&t?.text&&t.background?qG(t.text,t.background,.3):null;return r?{color:r}:{}},YG=(e,o)=>e.tone!=="plain"&&nx(e.sectionAccent)===null?$o("background")(e,o):{},mF=(e,o)=>({kind:"list",key:"items",name:"Item",flat:!0,when:o,parts:[{kind:"text",key:"text",props:oe,style:e,styleFrom:VG}]}),XG={name:"Scrolling Bar",boxProps:(e,o)=>({...Y,...ma,...tc,...rw[Wm(e.separator)]===""?sO:{},...re(e,xa),...YG(e,o)}),box:[["scrollDirection","scrollDirection",e=>iF(e)],["speed","loopDuration",(e,o)=>o.loopDuration!=null?o.loopDuration:e],["loopDuration","loopDuration",(e,o)=>e??o.speed],["loopDelay","loopDelay",e=>e],["separator","separator",e=>Wm(e)],["join","join",e=>Rp(e)??void 0],["borders","sectionBorder",e=>e===!1?void 0:{top:1,bottom:1}],...J,["tone","sectionAccent",(e,o)=>nx(o.sectionAccent)??Cr],...ce(xa)],parts:[mF(rc,e=>!uF(e)),mF(lO,uF)],drop:{...X,...te,size:"each item's Text style: Small \u2192 Body 5, Display \u2192 Heading 3"}},xF=e=>e?.tone==="muted",hF=e=>Bd(Ta(e)),ZG={name:"Spec Strip",boxProps:(e,o)=>({...Y,...ma,...Sl,...e.fill==="none"?{sectionBorder:{top:1}}:{sectionAccent:hF(o)},...re(e,ha)}),box:[...J.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,t)=>o.fill==="none"?e:hF(t)],...ce(ha)],parts:[{kind:"list",key:"cells",name:"Cell",flat:!0,parts:[{kind:"text",key:"text",props:U,style:bl,when:(e,o)=>!xF(o)},{kind:"text",key:"text",props:oe,style:bl,when:(e,o)=>xF(o)}]}],drop:{...X,...te,...fp,fill:"None \u2192 no fill and a line on top. Dark band (the default) \u2192 the Box's theme is the site's first dark preset that is not its page (lib/theme `darkBandIndex`; Theme 2 with no site theme): the old fixed `plate-band` colour, as a theme"}},IF={Ticker:XG,SpecStrip:ZG};import{tabletKey as gF}from"efficient-easel/screen/lib/content/view-tiers";var yF={direction:"column",justify:"between",gap:14,gapPhone:14,sectionPaddingLeft:14,sectionPaddingRight:14,[gF("sectionPaddingLeft")]:0,sectionPaddingLeftPhone:0,sectionHeightMode:"fixed",sectionHeightValue:280,sectionHeightUnit:"px",[gF("sectionHeightMode")]:"auto",sectionHeightModePhone:"auto"},WI={name:"Year and title",direction:"column",gap:14,gapPhone:14};import{tabletKey as JG}from"efficient-easel/draw";var Dp={eyebrow:Oe.eyebrow,title:`Section heading
|
|
321
|
+
*Highlight line*`,intro:Oe.body,imageCaption:Oe.imageCaption,imageMeta:Oe.imageMeta,cta:je.text},SF=()=>[{date:c("Year"),title:c("Milestone title."),body:c("Describe what happened, in a sentence or two.")},{date:c("Year"),title:c("Milestone title."),body:c("Describe what happened, in a sentence or two.")},{date:c("Year"),title:c("Milestone title."),body:c("Describe what happened, in a sentence or two.")}],Fye={label:"Story Timeline",drawsPictures:!0,defaultProps:{layout:"split",eyebrow:"",title:"",intro:"",imageSrc:"",imageCaption:"",imageMeta:"",ctaText:"",ctaHref:"",entries:[],padTop:120,padBottom:120}};var Np={eyebrow:Oe.eyebrow,title:Oe.headingAccent,intro:Oe.body,cta:je.text},bF=()=>[{date:c("Year"),title:c("Milestone"),blurb:c("A short line about this milestone."),future:!1},{date:c("Year"),title:c("Milestone"),blurb:c("A short line about this milestone."),future:!1},{date:c("Year"),title:c("Milestone"),blurb:c("A short line about this milestone."),future:!1},{date:c("Year \u2192"),title:c("Upcoming"),blurb:c("A milestone still to come."),future:!0}],Nye={label:"Milestone Timeline",defaultProps:{eyebrow:"",title:"",intro:"",entries:[],ctaText:"",ctaHref:"",background:Xv,padTop:120,padBottom:120}};var TF={buttonBorder:{width:0}},Wp=(e,o,t={})=>({textStyle:"body-5",...H("label",e),letterSpacing:o,lineHeight:1.5,weight:400,...t}),is=(e,o,t={})=>({...Wp(e,o),...Ro,...t}),$p=(e,o,t)=>({...e,case:"upper",weight:500,letterSpacing:o,lineHeight:t}),ui=(e,o,t={})=>({textStyle:"body-1",fontRole:"heading",...e,weight:400,case:"none",lineHeight:o,...t}),mt=(e,o,t={})=>({kind:"text",key:e,props:U,style:o,...t}),wF=(e,o)=>o?.future===!0,Mp=e=>nE(typeof e?.body=="string"?e.body:""),GI=e=>da(typeof e.background=="string"?e.background:void 0,Da.TimelineTrack),$I=e=>GI(e)===Gt?e:{...e,background:"transparent"},QG={name:"Milestone Timeline",skip:e=>mp(GI(e)),boxProps:(e,o)=>{let t=zr($I(e),o);return{...Y,direction:"column",gap:60,[JG("gap")]:36,gapPhone:36,sectionBorder:{bottom:1},...zo,...ft(e,"TimelineTrack"),...up(GI(e),e,o),...t>=0?{sectionAccent:t}:{}}},box:[...J.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,t)=>Ur(e,$I(o),t)],...$r("TimelineTrack")],parts:[kI(kp(bp("eyebrow","title","intro"),["intro"])),{kind:"group",name:"Track",props:{...R,gap:48,gapPhone:48},parts:[{kind:"group",name:"Years",props:{...R,direction:"row",share:"equal",gap:0,line:!0,...zo},parts:[{kind:"list",key:"entries",name:"Year",props:{...R,...yF},item:e=>({props:e.future===!0?{upcoming:!0}:{}}),parts:[{kind:"group",name:WI.name,props:{...R,...WI},parts:[mt("date",Wp(13,.22,{color:"accent"}),{when:(e,o)=>!wF(e,o)}),mt("date",Wp(13,.22,{color:"labels"}),{when:wF}),mt("title",{textStyle:"heading-3",...$p(H("headingSmall",20),-.02,1.1)},{role:"heading"})]},mt("blurb",ui(H("body",13),1.55),{props:oe,mark:"accentItalic"})]}]},{kind:"group",name:"Button row",props:{...R,sectionBorder:{top:1,right:0,bottom:0,left:0},sectionPaddingTop:32},parts:[{kind:"button",key:"ctaText",href:"ctaHref",variant:"ghost",props:{...fo,align:"right",...TF},style:is(13,.3)}]}]}],site:(e,o)=>jr({props:$I(e.props)},o),drop:{...X,...te,background:"another colour is the Box's Fill, or a skip if no Fill holds it; the band is the Box's theme: the site's band preset (`sectionAccent`), or a declared band-preset write (`lib/theme` `bandPresetIndex`)",headPlacement:"needs a row per head placement: an own-box Milestone Timeline draws no head (its words sit in a Section Header above it), the row always draws the head"}},qI=e=>typeof e.layout=="string"?e.layout:"split",Hp=e=>qI(e)==="split",KI=e=>!Hp(e),OF=e=>qI(e)==="spine",e8=e=>KI(e)&&!OF(e),CF=(e,o,t,r)=>({kind:"group",name:"Picture",keepEmpty:!0,box:[["imageSrc","bgImage"]],props:{...R,sectionBorder:{top:1,right:1,bottom:1,left:1},darken:75,darkenStyle:"bottom",placement:"bottom-center",sectionHeightMode:"fixed",sectionHeightValue:e,sectionHeightUnit:"px",sectionHeightModePhone:"fixed",sectionHeightValuePhone:o,sectionHeightUnitPhone:"px",...Co(12,16),...t},when:a=>r(a)&&typeof a.imageSrc=="string"&&a.imageSrc.trim()!=="",parts:[{kind:"group",name:"Caption",props:{...R,direction:"row",justify:"between",align:"center",gap:12,gapPhone:12,share:"content",phoneRow:2},parts:[mt("imageCaption",is(11,.24,{color:"text"})),mt("imageMeta",is(11,.24,{color:"accent"}),{props:{...U,align:"right"}})]}]}),kF=(e={})=>({kind:"button",key:"ctaText",href:"ctaHref",variant:"ghost",props:{...fo,...e,...TF},style:is(13,.3)}),zI=()=>[mt("title",{textStyle:"heading-3",...$p(H("headingSmall",24,20),-.02,1.5)},{role:"heading",mark:"accentItalic"}),{kind:"block",type:"Text",props:{...U,_partStyles:{text:ui(H("body",17,16),1.6)}},box:[["body","text",(e,o)=>Hs(Mp(o)[0]??"")]],when:(e,o)=>Mp(o).length>0},{kind:"block",type:"Text",props:{...oe,_partStyles:{text:ui(H("body",17,16),1.6,{paragraphSpacing:14})}},box:[["body","text",(e,o)=>Hs(Mp(o).slice(1).join(`
|
|
322
|
+
|
|
323
|
+
`))]],when:(e,o)=>Mp(o).length>1}],UI=()=>mt("date",Wp(13,.24,{color:"accent"})),jI=(e,o,t={})=>mt(e,o,{...t,props:{...U,...t.props??{},align:"center"}}),vF=Uo("headingMedium",40,5,76),PF={sectionBorder:{bottom:1}},o8={name:"Story Timeline",skip:e=>qI(e)==="track"?'display "track": not converted (it draws the Milestone rail; a Track story is not stored anywhere)':void 0,boxProps:e=>Hp(e)?{...Y,direction:"row",share:[40],gap:80,gapPhone:48,align:"start",...PF,...ft(e,"Timeline")}:{...Y,direction:"column",gap:48,gapPhone:48,align:"center",...PF,...ft(e,"Timeline")},box:[...J,...$r("Timeline")],parts:[{kind:"group",name:"Heading",props:{...R,gap:24,gapPhone:24},when:Hp,parts:[mt("eyebrow",is(12,.3,{color:"accent"}),{role:"eyebrow"}),mt("title",{textStyle:"heading-2",...$p(vF,-.03,.94)},{role:"heading",mark:"accentItalic"}),mt("intro",ui(H("body",14),1.6),{props:{...oe,maxWidth:360},mark:"accentItalic"}),CF(667,419,{},()=>!0),kF()]},{kind:"group",name:"Chapters",props:{...R,gap:48,gapPhone:48,line:!1},when:Hp,parts:[{kind:"list",key:"entries",name:"Chapter",props:{...R,direction:"row",gap:24,gapPhone:8,share:[12],align:"start"},parts:[UI(),{kind:"group",name:"Words",props:{...R,gap:14,gapPhone:14},parts:zI()}]}]},{kind:"group",name:"Heading",props:{...R,gap:24,gapPhone:24,align:"center",maxWidth:760,widthFit:"fill"},when:KI,parts:[jI("eyebrow",is(12,.3,{color:"accent"}),{role:"eyebrow"}),jI("title",{textStyle:"heading-2",...$p(vF,-.03,.94)},{role:"heading",mark:"accentItalic"}),jI("intro",ui(H("body",14),1.6),{props:{...oe,maxWidth:520},mark:"accentItalic"}),kF({align:"center"})]},CF(506,192,{maxWidth:900,widthFit:"fill"},KI),{kind:"group",name:"Chapters",props:{...R,gap:48,gapPhone:48,line:!0,maxWidth:760,widthFit:"fill",sectionPaddingTop:16},when:OF,parts:[{kind:"list",key:"entries",name:"Chapter",props:{...R,gap:8,gapPhone:8},parts:[UI(),{kind:"group",name:"Words",props:{...R,gap:14,gapPhone:14},parts:zI()}]}]},{kind:"group",name:"Chapters",props:{...R,gap:56,gapPhone:56,maxWidth:1e3,widthFit:"fill",sectionPaddingTop:16,mirrorCards:"even"},when:e8,parts:[{kind:"list",key:"entries",name:"Chapter",props:{...R,direction:"row",gap:64,gapPhone:0,share:[50],align:"start"},parts:[{kind:"group",name:"Entry",props:{...R,gap:8,gapPhone:8},parts:[UI(),{kind:"group",name:"Words",props:{...R,gap:14,gapPhone:14},parts:zI()}]},{kind:"group",name:"Spacer",props:{...R},keepEmpty:!0,parts:[]}]}]}],drop:{...X,...te,layout:"the Box's own arrangement replaces it: Split a row of two Boxes; Spine and Alternating a centred column (Track is skipped)"}},EF=()=>({eyebrow:Dp.eyebrow,title:vt(Dp.title),intro:Dp.intro,ctaText:je.text,ctaHref:je.href,entries:SF()}),_F=()=>({eyebrow:Np.eyebrow,title:vt(Np.title),intro:Np.intro,ctaText:je.text,ctaHref:je.href,entries:bF()}),AF={TimelineTrack:QG,Timeline:o8};import{tabletKey as t8}from"efficient-easel/draw";function FF(e){let o=String(e??"").replace(/[^+\d]/g,"");return o?`tel:${o}`:void 0}var xt=e=>typeof e=="string"?e:e==null?"":String(e),VI=e=>Array.isArray(e.locations)?e.locations.map(o=>o??{}):[],ds=e=>xt(e.group),$F=e=>`loc-${e}`,zF=e=>xt(e.state).trim()||Px(xt(e.region)).state,UF=e=>xt(e.country).trim()||Px(xt(e.region)).country,BF=e=>[zF(e),UF(e)].filter(Boolean).join(" \xB7 "),r8=e=>VI(e).some(o=>xt(o.photo).trim()!==""),a8=e=>VI(e).some(o=>bw(Number(o.lat),Number(o.lng))),n8=(e,o)=>VI(e).filter(t=>ds(t)===ds(o)).length,s8=(e,o)=>n8(e,o)===1?"wide":IP(e.imageShape),LF=48,Tt=(e,o={})=>({...wt(e),...o}),YI={top:1,right:1,bottom:1,left:1},XI={...R,direction:"row",share:"equal",gap:0},l8=e=>o=>o>Cd(o)?{...R,gap:0}:{...XI,...o>1?{phoneRow:e}:{}},ZI=!0,i8={kind:"group",name:"Gallery",props:{...R,gap:20,...ZI?{_hidden:!0}:{}},when:r8,parts:[{kind:"group",name:"Gallery head",props:{...R,direction:"row",justify:"between",align:"end",gap:24,share:"content",sectionBorder:{bottom:1},sectionPaddingBottom:16},parts:[pe("galleryKicker",Tt(12,{color:"accent",letterSpacing:.3})),{kind:"text",key:"galleryHint",props:{...oe,align:"right",alignPhone:"left"},style:Tt(11,{letterSpacing:.22,alignPhone:"left"})}]},{kind:"group",name:"Groups",props:{...R,gap:24},parts:[{kind:"list",key:"locations",name:"City picture",props:{...R,darken:85,darkenStyle:"bottom",placement:"bottom-left",sectionBorder:YI,...Co(12,12)},item:(e,o,t)=>({props:{...xt(e.photo).trim()?{bgImage:xt(e.photo),hover:"mono"}:{},link:`#${$F(o)}`,boxShape:s8(t,e)}}),parts:[{kind:"text",key:"name",props:U,style:Tt(11,{letterSpacing:.22,color:"text"})}],groups:{of:ds,name:"Group",props:{...R,gap:10},head:e=>({label:ds(e[0]??{})}),parts:[pe("label",Tt(11,{color:"accent",letterSpacing:.3}))],itemsName:"Cities",itemsProps:l8(2),perRow:Cd,rowName:"Row",rowProps:{...XI,phoneRow:2}}}]}]},d8={kind:"group",name:"Words",props:{...R,gap:12,gapPhone:12,...Co(28,28),sectionHeightMode:"fixed",sectionHeightValue:280,sectionHeightUnit:"px",sectionHeightModePhone:"auto"},parts:[{kind:"group",name:"Name row",props:{...R,direction:"row",justify:"between",align:"start",gap:14,share:"content",phoneRow:2,sharePhone:"content",wrapPhone:"wrap",sectionPaddingBottom:6,sectionPaddingBottomPhone:6},parts:[{kind:"group",name:"Name",props:{...R,gap:6,gapPhone:6},parts:[{kind:"text",key:"name",role:"heading",props:U,style:{textStyle:"heading-3",...H("headingSmall",30),case:"upper",weight:500,lineHeight:1,letterSpacing:-.02}},{kind:"block",type:"Text",props:{...U,_partStyles:{text:Tt(12,{color:"accent",letterSpacing:.24,lineHeight:1.5})}},box:["region","state","country"].map(e=>[e,"text",(o,t)=>BF(t)]),when:(e,o)=>BF(o??{})!==""}]},{kind:"group",name:"Time zone",props:{...R,sectionBorder:YI,...Co(6,10)},parts:[{kind:"text",key:"timezone",props:{...oe,textFit:"line"},style:Tt(12,{letterSpacing:.22,lineHeight:1.5})}]}]},{kind:"text",key:"address",props:oe,style:{textStyle:"body-5",fontRole:"heading",...H("body",14),lineHeight:1.5}},{kind:"block",type:"ButtonBlock",props:{...fo,...Fa,variant:"ghost",arrow:!1,_partStyles:{label:Tt(13,{letterSpacing:.18,color:"text",lineHeight:24/13})}},box:[["phone","label"],["phone","href",e=>FF(xt(e))??"#"]],when:(e,o)=>xt(o?.phone).trim()!==""},{kind:"text",key:"hours",props:oe,style:Tt(12,{letterSpacing:.18,lineHeight:1.7})}]},f8={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)=>zF(t)]),...["region","country"].map(e=>[e,"country",(o,t)=>UF(t)])]},c8={kind:"group",name:"Map",props:{...R,sectionBorder:{top:1,right:0,bottom:0,left:0}},parts:[f8]},p8={kind:"list",key:"locations",name:"City",props:(e,o)=>({...R,gap:0,justify:"between",sectionBorder:YI,jumpHighlight:!0,sectionAccent:zr(e,o)>=0?Qn(e.sectionAccent,o):-1}),item:(e,o)=>({props:{anchor:$F(o)}}),parts:[d8,c8],groups:{of:ds,name:"Group",props:{...R,gap:20},head:e=>{let o=e[0]??{};return{key:ds(o),groupName:xt(o.groupName),count:`${e.length} location${e.length===1?"":"s"}`}},parts:[{kind:"group",name:"Group head",props:{...R,direction:"row",justify:"between",align:"end",gap:16,share:"content",sectionBorder:{bottom:1},sectionPaddingBottom:16},when:(e,o)=>xt(o?.key).trim()!=="",parts:[pe("key",Tt(13,{color:"accent",letterSpacing:.3})),{kind:"text",key:"groupName",role:"heading",props:U,style:{textStyle:"heading-3",...H("headingSmall",24),case:"upper",weight:500,letterSpacing:-.01}},{kind:"text",key:"count",props:oe,style:Tt(12,{letterSpacing:.22})}]}],itemsName:"Cities",itemsProps:e=>({...XI,columns:Cd(e),[t8("columns")]:1})}},RF=Tt(10,{letterSpacing:.25}),u8={kind:"block",type:qt,props:{...R,name:"Credit",direction:"row",justify:"end",align:"center",gap:6,share:"content",wrap:!0},when:a8,slot:Vt,keepEmpty:!0,parts:[{kind:"block",type:"Text",props:{...oe,text:"Location coordinates \xA9",_partStyles:{text:RF}}},{kind:"block",type:"ButtonBlock",props:{...fo,...Fa,variant:"ghost",arrow:!1,label:"OpenStreetMap contributors",href:"https://www.openstreetmap.org/copyright",_partStyles:{label:{...RF,color:"labels"}}}}]},DF=(e,o)=>Object.fromEntries(o.filter(t=>e[t]!==void 0).map(t=>[t,e[t]])),NF=["sectionPaddingTop","sectionPaddingTopTablet","sectionPaddingTopPhone"],MF=["sectionPaddingBottom","sectionPaddingBottomTablet","sectionPaddingBottomPhone"],HF=e=>e.map(o=>[o,o,(t,r)=>re(r,Mn)[o]]),WF=["sectionAccent","sectionAccent",Ur],m8=[...vr,...Pn,...Object.values(Ao)],x8={name:"City pictures",skip:e=>Me(e)?`fed by the data source "${Me(e)}": its cities are read as the page is served, not stored on the node`:void 0,boxProps:(e,o)=>({...Y,direction:"column",gap:40,anchor:"studios",...zo,...DF(re(e,Mn),NF),sectionPaddingBottom:LF,sectionPaddingBottomPhone:LF,...Ba(e,o)}),box:[...J.filter(e=>e!=="sectionAccent"&&e!=="anchor"),WF,["anchor","anchor",e=>Qv(e).trim()?e:"studios"],...HF(NF)],parts:[bp("sectionNumber","heading","tagline"),i8],also:[{name:"City maps",boxProps:(e,o)=>({...Y,direction:"column",gap:40,sectionBorder:{bottom:1},...zo,sectionPaddingTop:0,sectionPaddingTopPhone:0,...DF(re(e,Mn),MF),...Ba(e,o)}),box:[...m8,WF,...HF(MF)],parts:[p8,u8]}],reads:{mapTheme:"City maps Box: each Map block's Map theme",imageShape:"City pictures Box: each picture Box's Box shape"},site:jr,drop:{...X,...te,apiKey:"a stored Google Maps key from before the map needed none: the website's one map (components/SiteMap) takes no key, and a key is a credential, never page content",mapId:"a Google Maps style id from the same retired map: nothing in src/ reads it",gallery:"the retired separate tile list: the wall is derived from the cities (`components/ContactLocations`), nothing in src/ reads it",dataSource:"always empty here: a node fed by a source is skipped (see skip)"}},jF={ContactLocations:x8};import{SITE_SIDE as GF,sideLengthAt as h8}from"efficient-easel/screen/lib/content/length-units";import{viewKeyAt as JI}from"efficient-easel/draw";var I8=["FAQ","Footprint","LongRead","ProcessSteps","RelatedProducts"];var Gr=(e,o)=>()=>({top:e,topPhone:o}),KF=e=>o=>{let t=Hn(e),r={...o,[Pr.top]:Qd(o,t).top},a=i=>{let d=h8(r,Pr,Jd,i,"top");return d?.unit==="px"?d.value:void 0},n=i=>ye(o[JI(Pr.top,i)])===void 0?void 0:a(i),s=n("tablet"),l=n("mobile");return{top:a("desktop")??t.top??0,...s!==void 0?{topTablet:s}:{},...l!==void 0?{topPhone:l}:{}}},g8={Collections:Gr(120,70),Events:Gr(120,70),FAQ:Gr(sc.top,sc.topPhone),GalleryB:Gr(120,70),FitmentTable:Gr(120,80),SpecTable:Gr(120,80),LongRead:Gr(lc.top,lc.topPhone),RelatedProducts:Gr(0,0),Footprint:KF("Footprint"),ProcessSteps:KF("ProcessSteps"),ProductGrid:e=>({top:ye(e.padTop)??120,topPhone:0})};function y8(e,o={}){let t=z(Ct,e),r=z(g8,e);if(!t||!r)throw new Error(`section-to-box-rows-head: "${e}" has no head row or no head room`);let a=t.padKey,n=ct(e),s=vp(e),l=t.headRows.filter(d=>![t.num,t.title,t.description,"linkText","linkHref"].includes(d)),i={...Object.fromEntries(l.filter(d=>!(d in s)).map(d=>[d,"a head setting no Header Box part reads (lib/document/blocks/general/section-head-looks `headReads`)"])),...o.drop};return{name:z(ea,e)??e,boxProps:(d,f)=>{let m=r(d),u=o.roomBelow?{sectionPaddingBottom:o.roomBelow.bottom,sectionPaddingBottomPhone:o.roomBelow.bottomPhone}:{},h=typeof o.boxProps=="function"?o.boxProps(d,f):o.boxProps??{},I=Ra(e)==="editorial"?zo:{};return{...Y,direction:"column",gap:ai[Ra(e)],sectionPaddingTop:m.top,...m.topTablet!==void 0?{sectionPaddingTopTablet:m.topTablet}:{},...m.topPhone!==void 0?{sectionPaddingTopPhone:m.topPhone}:{},...I,...u,...h}},box:[...J,...a?[[a,"sectionPaddingTop",(d,f)=>r(f).top]]:[]],parts:[n,...(()=>{let d=a&&xO.has(e)?{[JI(a,"tablet")]:0,[JI(a,"mobile")]:0}:{},f={...a?{[a]:0}:{},...d,...o.coreProps},m={kind:"core",keep:"rest",...Object.keys(f).length?{props:f}:{},...o.slots?{slots:o.slots}:{}};return[o.coreBox?{kind:"group",name:o.coreBox.name,props:o.coreBox.props,parts:[m]}:m]})(),...o.partsAfter??[]],...Object.keys(s).length?{reads:s}:{},...Object.keys(i).length?{drop:i}:{},...o.pressHeading?{pressKeepsEmpty:[t.title]}:{},...o.skip?{skip:o.skip}:{}}}var S8={...R,direction:"accordion",rowStyle:"numbered"},b8={sectionPaddingLeft:GF,sectionPaddingRight:GF},w8={Footprint:{slots:{[Te]:[ww()]},pressHeading:!0},ProcessSteps:{slots:(e,o)=>o.press?{[Ns]:b1().map(t=>({...t,props:{...t.props,...b8}}))}:{},boxProps:{gapPhone:ai.editorial}},FAQ:{slots:{[Te]:[Sw()]},pressHeading:!0,coreBox:{name:"Questions",props:S8},coreProps:{sectionAccent:Cr},roomBelow:{bottom:120,bottomPhone:70},boxProps:(e,o)=>o.press?{}:{[Q0]:gl},skip:e=>{let o=e._partStyles??{},t=yw().filter(r=>o[r]!==void 0);return t.length?`held: its rows carry their own run style (_partStyles ${t.map(r=>`"${r}"`).join(", ")}), which the Box path does not draw the same`:void 0}}},qF=Object.fromEntries(I8.map(e=>[e,y8(e,z(w8,e))]));import{BLOCK_WIDTH_LIMIT as C8}from"efficient-easel/draw";var zp={eyebrow:Oe.eyebrow,title:Oe.headingAccent,deck:"Add a sentence or two introducing this document."},RSe={label:"Document masthead",defaultProps:{eyebrow:"",title:"",deck:"",meta:[]}};var JF={minWidth:C8.min},VF=(e,o,t)=>({...pe(e,{...o,...ei}),props:{...U,align:"right",..._a,...t}}),QF={top:1,bottom:0},eg=(e,o,t,r)=>({kind:"group",name:e,props:{...R,sectionPaddingBottom:o,sectionPaddingBottomPhone:t},parts:[r]}),YF={widthFit:"fill",...JF},k8={...H("label",13),letterSpacing:.22,lineHeight:1.8},XF={textStyle:"heading-1",...Uo("headingLarge",56,8,128),case:"upper",weight:500,lineHeight:.88,letterSpacing:-.04},v8=()=>({name:"Page Header",boxProps:e=>({...Y,direction:"column",gap:0,sectionBorder:{bottom:1},...re(e,cc)}),box:[...J,...ce(cc)],parts:[{kind:"group",name:"Header",props:{...R,direction:"row",align:"end",justify:"between",gap:40,gapPhone:16,share:"content",sectionPaddingBottom:32},parts:[eg("Eyebrow",12,0,{...pe("eyebrow",H("label",13)),props:{...U,..._a}}),{kind:"text",key:"title",role:"heading",props:{...U,tag:"h1",...YF},style:XF,mark:"accentItalic",when:e=>!Yh(e)},{kind:"text",key:"title",role:"heading",props:{...U,tag:"h2",...YF},style:XF,mark:"accentItalic",when:Yh},{kind:"group",name:"Details",props:{...R,align:"stretch",gap:0,gapPhone:0,sectionPaddingBottom:12,sectionPaddingBottomPhone:0},parts:[{kind:"list",key:"meta",name:"Detail",flat:!0,parts:[oi("label","value",k8,_a)]}]}]},{kind:"group",name:"Deck",props:{...R,maxWidth:760,sectionBorder:QF,sectionPaddingTop:28},parts:[{kind:"text",key:"deck",props:oe,style:{textStyle:"body-1",fontRole:"accent",...H("body",22,19),italic:!0,lineHeight:1.5}}]}],drop:{...X,...te,[Kc]:"read by the title part's `when`: 2 (set by lib/document/one-h1 on a later opener) makes the Text an h2, anything else an h1"}}),eB=()=>({eyebrow:zp.eyebrow,title:vt(zp.title),deck:zp.deck,meta:[{label:Oe.label,value:Oe.value},{label:Oe.label,value:Oe.value}]}),P8={...H("label",13),letterSpacing:.18,lineHeight:1.8},ZF={...H("label",13),letterSpacing:.22,lineHeight:1.9},T8=()=>({name:"Issue Header",boxProps:e=>({...Y,direction:"column",gap:0,sectionBorder:{bottom:1},...re(e,Cl)}),box:[...J,...ce(Cl)],parts:[{kind:"group",name:"Top",props:{...R,direction:"row",align:"end",justify:"between",gap:60,gapPhone:16,share:"content",sectionPaddingBottom:32},parts:[eg("Eyebrow",14,14,pe("eyebrow",H("label",14))),{kind:"group",name:"Issue",props:{...R,align:"end",gap:0,gapPhone:0,sectionPaddingBottom:14},parts:[{kind:"list",key:"issueMeta",name:"Issue line",flat:!0,parts:[oi("lead","rest",P8)]}]}]},{kind:"group",name:"Bottom",props:{...R,direction:"row",align:"start",justify:"between",gap:60,gapPhone:16,share:"content",sectionBorder:QF,sectionPaddingTop:32},parts:[{kind:"text",key:"lead",props:{...U,maxWidth:720,...JF},style:{textStyle:"body-1",fontRole:"heading3",...H("headingSmall",20),lineHeight:1.5,letterSpacing:-.005,paragraphSpacing:16}},{kind:"group",name:"In this issue",props:{...R,align:"stretch",gap:0},parts:[eg("Heading",6,6,{kind:"text",key:"issueHeading",props:{...U,align:"right",..._a},style:{textStyle:"body-1",fontRole:"heading",...H("body",18),weight:400,letterSpacing:-.01,lineHeight:1.9,...ei}}),{kind:"group",name:"Lines",props:{...R,align:"stretch",gap:0},parts:[{kind:"list",key:"issueList",name:"Line",flat:!0,parts:[VF("text",{color:"labels",...ZF})]}]},VF("issueTotal",ZF)]}]}],drop:{...X,...te}}),QI={color:"labels",...H("label",13),letterSpacing:.2},oB=e=>(Array.isArray(e.items)?e.items:[]).filter(o=>o&&typeof o.label=="string"&&o.label.trim()!==""),og=(e,o)=>o!==void 0&&oB(e).at(-1)===o,tB=(e,o)=>o!==void 0&&oB(e).includes(o),O8=(e,o)=>tB(e,o)&&!og(e,o)&&We(o?.href),E8=()=>({name:"Breadcrumb",skip:e=>We(e.meta)?'a trailing note after "\xB7" needs a second mark; none live':void 0,boxProps:e=>({...Y,...ma,wrap:"wrap",gap:16,gapPhone:16,separator:"slash",sectionBorder:{bottom:1},...re(e,yl)}),box:[...J,...ce(yl)],parts:[{kind:"list",key:"items",name:"Crumb",flat:!0,parts:[{kind:"button",key:"label",href:"href",variant:"ghost",when:O8,props:{...fo,...Fa,icon:"none"},style:QI},{...pe("label",QI),when:(e,o)=>tB(e,o)&&!og(e,o)&&!We(o?.href)},{...pe("label",{...QI,color:"text"}),when:og}]}],drop:{...X,...te,meta:"a node that stores a note is skipped (`skip`); an empty one draws nothing",...fp}}),rB={DocMasthead:v8(),Masthead:T8(),Breadcrumb:E8()};import{BLOCK_WIDTH_LIMIT as A8,hiddenKeyOf as F8}from"efficient-easel/draw";import{readHidable as tg}from"efficient-easel/draw";function _8(e,o,t){return e||(t?.isEditing?c(o):void 0)}function XSe(e,o,t){let r=Array.isArray(e)?e:[];return r.length?r:t?.isEditing?o:[]}function aB(e,o,t){let r=tg(e);if(!r.hidden)return _8(r.text,o,t)}function nB(e){if(e==null)return;let o=tg(e);return o.hidden?"":o.text}function ZSe(e,o,t){return tg(e).hidden?"":aB(e,o,t)}function JSe(e,o,t){return{text:aB(e,je.text,t),href:o||je.href}}var dB="MenuBlock",rg=e=>(Array.isArray(e)?e:[]).filter(o=>o&&We(o.label)),sB=e=>{let[o,t]=[e.metaLabel,e.metaValue].map(a=>(nB(a)??"").trim());if(!t)return o;let r=t.includes("==")?t:`==${t}==`;return o?`${o} ${r}`:r},lB={top:0,bottom:0,topPhone:0,bottomPhone:0},B8={...Ro,color:"labels",...H("label",12),letterSpacing:.24},L8={kind:"group",name:"Note",props:{...R,justify:"center",sectionBorder:{top:0,right:0,bottom:0,left:1},sectionPaddingLeft:28,[F8("mobile")]:!0},parts:[{kind:"block",type:"Text",when:e=>sB(e)!=="",props:e=>({...U,textFit:"line",text:sB(e),[Cv]:{text:B8}})}]},fB=()=>({tabs:[],metaLabel:Oe.label,metaValue:Oe.value}),iB="the note Text inside the Box (the label, then the value in the accent); no words, no Text",cB={direction:"row",menuStyle:"tabs",currentPage:!0,minWidth:A8.min},pB=e=>({...e,boxProps:o=>({...Y,direction:"row",align:"stretch",justify:"between",gap:0,stickTop:!0,[bn]:0,[Qs]:!0,sectionBorder:{bottom:1},...re(o,lB)}),box:[...J,...ce(lB)]}),R8=()=>pB({name:"Tab Bar",skip:e=>rg(e.tabs).length?"its tabs need a Console menu first: they are typed labels and links, and the Menu block draws only a Console menu":void 0,reads:{metaLabel:iB,metaValue:iB},parts:[{kind:"block",type:dB,props:cB},L8],drop:{...X,...te,tabs:"a node whose tabs hold words is skipped (`skip`): typed tabs are not a Console menu; a list of blank tabs draws nothing, so nothing is lost"}}),D8=()=>pB({name:"Category Bar",skip:e=>{if(rg(e.tabs).length)return"its tabs are typed words with typed counts, not the blog's categories: a Blog categories Menu would replace them";if(rg(e.links).length)return"its right-hand links are typed words: the bar holds the Menu only"},parts:[{kind:"block",type:dB,props:{...cB,[lo]:nb}}],drop:{...X,...te,tabs:"a node whose tabs hold words is skipped (`skip`); blank tabs draw nothing on a page, so nothing is lost. The Menu draws the blog's own categories",activeTab:"the Menu marks the page's own entry (Current page), not a typed active tab",links:"a node whose links hold words is skipped (`skip`); blank links draw nothing",sticky:"the bar is always pinned (the Box's own pin, Stays above): the merchant turns the Box's pin off",editing:"the editor's preview flag, never a stored setting: the editor tells every block it is editing"}}),uB={DocTabs:R8(),CategoryBar:D8()};import{jsx as Na,jsxs as ag}from"react/jsx-runtime";import{slugify as j8}from"efficient-shell/format";import{jsx as jp,jsxs as hB}from"react/jsx-runtime";import{jsx as N8}from"react/jsx-runtime";import{useEffect as M8,useRef as H8}from"react";var mB="data-current",W8=1/3,$8=2;function z8(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 U8(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=z8(n,o,t);for(let l of r)s!==null&&a(l)===s?(l.setAttribute(mB,""),l.setAttribute("aria-current","location")):(l.removeAttribute(mB),l.removeAttribute("aria-current"))}function xB(){let e=H8(null);return M8(()=>{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-$8;U8(o,window.innerHeight*W8,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)}},[]),N8("span",{ref:e,hidden:!0})}var ube="sticky top-[120px]";var Up={entry:{label:"Entry",follows:"Labels",builtIn:"13px",writable:!0},number:{label:"Entry number",follows:"Labels",builtIn:"13px",writable:!0}};var IB=(e,o)=>e?{[ra]:o}:{},gB=(e,o)=>Iw(e?.[zs(o)]?.role,Up[o],bb),yB=120;function SB({title:e,entries:o,stickyTop:t,sticky:r=!0,editing:a=!1,partStyles:n,numberForm:s=Jx,takesViewHide:l=!1,markCurrent:i=!1}){let d=s==="plain",f=nt(),m=l?f:Or;return m.scope(hB("aside",{className:ko(`${r?"sticky ":""}flex flex-col self-start max-[900px]:static`,m.className),style:r?{top:t}:void 0,...m.attrs,children:[e&&jp("h4",{className:"mb-[18px] font-mono text-[length:var(--size-label,12px)] uppercase tracking-[0.3em] text-accent",children:Ze(e)}),o.map((u,h)=>{let I=jp("span",{...IB(a,"number"),style:gB(n,"number"),className:"text-accent",children:zf(s,h)});return hB("a",{href:`#${u.anchor}`,className:`flex items-center ${d?"justify-start gap-1":"justify-between gap-3"} border-b border-line py-2.5 font-mono text-[length:var(--size-label,13px)] uppercase tracking-[0.18em] text-fg-dim transition-colors hover:text-fg${h===0?" border-t":""}${i?" data-[current]:text-fg":""}`,children:[d&&I,jp("span",{...IB(a,"entry"),style:gB(n,"entry"),children:Ze(u.label||"Section")}),!d&&I]},`${h}-${u.anchor}`)}),i&&!a&&jp(xB,{})]}))}function bB(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 G8(e,o){return j8(e)||`section-${o+1}`}var ng=e=>typeof e=="string"&&e.trim()!=="";function sg(e){return(e??[]).filter(o=>ng(o.heading)||ng(o.label)||ng(o.body))}function lg(e){return bB(e.map((o,t)=>G8(o.label||o.heading||"",t)))}function ig(e){let o=[];for(let t of e.replace(/\r\n?/g,`
|
|
324
|
+
`).split(/\n[ \t]*\n/))t.split(`
|
|
325
|
+
`).map(r=>r.replace(/\s+$/,"")).filter(r=>r.trim()!=="").forEach((r,a)=>{let n=md(r)[0].bullet,s=o.at(-1),l=a===0||!s||s.type==="ul"!==n;if(n){let i=r.slice(2);!l&&s?.type==="ul"?s.items.push(i):o.push({type:"ul",items:[i]})}else!l&&s?.type==="p"?s.text+=`
|
|
326
|
+
${r}`:o.push({type:"p",text:r})});return o}var K8=()=>[{label:c("First section"),heading:c("Your *first* section."),body:c(`Write the opening paragraph here.
|
|
327
|
+
|
|
328
|
+
- Start a line with a dash for a bullet.
|
|
329
|
+
- Add as many as you like.`)},{label:c("Second section"),heading:c("Your *second* section."),body:c("Leave a blank line between paragraphs to start a new one.")}],q8=yB;function Hbe({tocTitle:e,sections:o,editing:t=!1,stickyTop:r=q8,pad:a}){let n=Pt(),s=sg(o);if(s.length===0&&!t)return null;let l=s.length===0&&t?K8():s,i=lg(l);return Na(fe,{as:"section",className:"relative z-[2] bg-bg",children:ag("div",{...cO(rt("mx-auto grid max-w-[var(--sf-site-width,1600px)] grid-cols-[240px_1fr] items-start gap-20 border-b border-line px-[var(--sf-site-gutter,40px)] py-20 max-[900px]:grid-cols-1 max-[900px]:gap-10 max-[900px]:px-[min(24px,var(--sf-site-gutter,40px))] max-[900px]:py-[60px]",n),a),children:[Na(SB,{title:e,entries:l.map((d,f)=>({label:d.label||"Section",anchor:i[f]})),stickyTop:r}),Na("div",{className:"flex flex-col gap-16",children:l.map((d,f)=>ag("article",{id:i[f],className:"flex flex-col gap-[18px]",style:{scrollMarginTop:r},children:[ag("span",{className:"font-mono text-[length:var(--size-label,12px)] uppercase tracking-[0.3em] text-accent",children:[Zx(f)," \xB7 ",Ze(d.label||"Section")]}),d.heading&&Na("h2",{className:"mb-2 border-b border-line pb-[18px] font-heading2 text-[length:min(var(--size-headingMedium,clamp(28px,3.5vw,44px)),var(--sf-heading-max,9999px))] font-medium uppercase leading-[1.04] tracking-[-0.025em]",children:Ze(d.heading)}),ig(d.body??"").map((m,u)=>m.type==="ul"?Na("ul",{className:"flex max-w-[680px] list-none flex-col gap-2.5 pl-0",children:m.items.map((h,I)=>Na("li",{className:"relative pl-6 font-serif text-[length:var(--size-body,17px)] leading-[1.65] text-fg-dim before:absolute before:-top-0.5 before:left-1.5 before:text-[length:var(--size-body,24px)] before:leading-none before:text-accent before:content-['\xB7']",children:Ze(h)},I))},u):Na("p",{className:"max-w-[680px] font-serif text-[length:var(--size-body,17px)] leading-[1.7] text-fg-dim",children:Ze(m.text)},u))]},i[f]))})]})})}var wB=18,CB=18,kB=8,V8=10,dg=e=>typeof e=="string"&&e.trim()!=="",vB=e=>sg(e.sections),Y8=e=>ig(typeof e.body=="string"?e.body:"").map(o=>o.type==="ul"?{kind:"ul",text:o.items.map(t=>`- ${t}`).join(`
|
|
330
|
+
`)}:{kind:"p",text:o.text}),fg={...wt(12),letterSpacing:.3,color:"accent",lineHeight:1.5},PB={textStyle:"body-1",fontRole:"accent",...H("body",17)},X8=[pe("label",fg),{...pe("title",fg),when:(e,o)=>!dg(o?.label)},{kind:"block",type:"Text",when:(e,o)=>!dg(o?.label)&&!dg(o?.title),props:{...U,text:"Section",_partStyles:{text:fg}}},{kind:"group",name:"Heading",props:{...R,sectionPaddingBottom:kB,sectionPaddingBottomPhone:kB},parts:[{kind:"group",name:"Heading line",props:{...R,sectionBorder:{bottom:1},sectionPaddingBottom:CB,sectionPaddingBottomPhone:CB},parts:[{kind:"text",key:"heading",role:"heading",props:U,style:{textStyle:"heading-2",...Uo("headingMedium",28,3.5,44),case:"upper",weight:500,lineHeight:1.04,letterSpacing:-.025}}]}]},{kind:"list",key:"body",name:"Body",flat:!0,of:Y8,parts:[{kind:"text",key:"text",props:oe,style:{...PB,lineHeight:1.7},when:(e,o)=>o?.kind==="p"},{kind:"text",key:"text",props:oe,style:{...PB,lineHeight:1.65,paragraphSpacing:V8},when:(e,o)=>o?.kind==="ul"}]}],Z8=900,J8={name:"Document Text",boxProps:e=>({...Y,direction:"row",gap:80,gapPhone:40,[yp]:Z8,sectionBorder:{bottom:1},...re(e,fc)}),box:["anchor","sectionAccent",...vr,...Pn,...Object.values(Ao),...ce(fc)],parts:[{kind:"block",type:"Contents",props:e=>({title:e.tocTitle??"",sticky:!0,widthFit:"fixed",width:240,widthFitPhone:"fill"})},{kind:"group",name:"Sections",props:{...R,gap:64,gapPhone:64,widthFit:"fill"},parts:[{kind:"list",key:"sections",name:"Section",of:e=>vB(e),props:{...R,gap:wB,gapPhone:wB},item:(e,o,t)=>({props:{anchor:lg(vB(t))[o]??`section-${o+1}`}}),parts:X8}]}],reads:{tocTitle:"the Contents block's Heading"},drop:{...X,stickyTop:"the Contents block draws DocBody's default (120px); 0 live nodes store it"}},TB={DocBody:J8};import{phoneKey as tK}from"efficient-easel/draw";import{SITE_SIDE as rK}from"efficient-easel/screen/lib/content/length-units";var Zbe={eyebrow:"\u2014 Label",title:`Section headline *here.*
|
|
331
|
+
*Highlight line*`,body:"Describe this section in a sentence or two."},Jbe={text:"Learn more"},Qbe={label:"Image & Text Split",drawsPictures:!0,defaultProps:{eyebrow:"",title:"",body:"",imageSrc:"",reverse:!1,uppercase:!1,textAlign:"left",ctaText:"",ctaHref:"",imageBtnText:"",imageBtnHref:"",textBgSrc:"",overlay:60,imageOverlay:40}};function cg(e){return typeof e=="number"&&Number.isFinite(e)?Math.min(Math.max(e,0),100):40}import{parseOption as Q8}from"efficient-shell/format";var OB="[--intro-edge:60px] max-[960px]:[--intro-edge:24px]",eK="overlay",oK=[{label:"Copy over image",value:"overlay"},{label:"Copy above image",value:"stacked"}];function Gp(e){return Q8(oK,eK,e)}var twe={desktop:40,mobile:45,min:20,max:80,step:5};function rwe(e,o){return`${typeof e=="number"?e:o}%`}import{parseOption as aK}from"efficient-shell/format";var EB=(e,o,t)=>{let r=ye(e),a=ye(o),n=(s,l)=>l&&l!=="px"?{[s]:l}:{};return{...r===void 0?{}:{size:r,...n(nl.size,t?.desktop)},...a===void 0?{}:{sizePhone:a,...n(nl.sizePhone,t?.phone)}}},nK=e=>Gp(e.layout)==="stacked",_B=e=>Math.min(Math.max(ye(e.overlay)??60,0),100),Kp=e=>ye(e)??100,sK={textStyle:"heading-1",sizeToken:{...Uo("headingLarge",48,7,96).sizeToken,pxPhone:36},weight:500,lineHeight:.95,letterSpacing:-.03},lK=[pe("eyebrow",H("label",14)),...[!0,!1].map(e=>({kind:"text",key:"title",role:"heading",props:U,style:{...sK,case:e?"upper":"none"},styleFrom:o=>{let t=Tx(o);return EB(o.titleSizeDesktop,o.titleSizeMobile,{desktop:t.titleDesktop,phone:t.titleMobile})},when:o=>o.uppercase===!0===e})),{kind:"text",key:"body",props:{...oe,maxWidth:560},style:{textStyle:"body-1",...H("body",17,16),lineHeight:1.6,paragraphSpacing:24},styleFrom:e=>{let o=Tx(e);return EB(e.bodySizeDesktop,e.bodySizeMobile,{desktop:o.bodyDesktop,phone:o.bodyMobile})}},{kind:"group",name:"Button",props:{...R,align:"start",sectionPaddingTop:8,sectionPaddingTopPhone:8},parts:[{kind:"button",key:"ctaText",href:"ctaHref",variant:"primary",props:fo}]}],AB=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)`,iK=()=>({name:"Scroll-Over Text",skip:e=>nK(e)?"the stacked layout: its words row's height floor (`copyShare*`) and the header subtraction have no Box setting; 0 live US nodes":void 0,boxProps:e=>({...Y,direction:"column",justify:"center",align:"start",gap:24,gapPhone:24,share:"content",...ti,placement:"left",darken:_B(e),darkenStyle:"even",sectionHeightMode:"fixed",sectionHeightUnit:"%",sectionHeightValue:Kp(e.heightDesktop),sectionHeightModePhone:"fixed",sectionHeightUnitPhone:"%",sectionHeightValuePhone:Kp(e.heightMobile),[Vd]:uk}),box:[...J.filter(e=>!String(typeof e=="string"?e:e[0]).startsWith("sectionHeight")),["imageSrc","bgImage"],["imageSrcMobile","bgImagePhone"],["overlay","darken",(e,o)=>_B(o)],["heightDesktop","sectionHeightValue",e=>Kp(e)],["heightMobile","sectionHeightValuePhone",e=>Kp(e)]],parts:lK,drop:{uppercase:"not a value of its own: it picks the heading part \u2014 Case Upper when on, None (as typed) when off",layout:"not a value of its own: the overlay layout is this tree; a stacked node is skipped (`skip`)",copyShareDesktop:"the stacked layout's words-row floor, read only there; a stacked node is skipped",copyShareMobile:"the stacked layout's words-row floor, read only there; a stacked node is skipped",sticky:"the old pin key, read as `stickTop` by the section pin's one reader (lib/content/section-sticky); the Box keeps a stored `stickTop` (SAME_KEYS), and this row is switched off until the stored pages hold `stickTop`",titleSizeDesktop:"read by the heading part's `styleFrom`: a number is its Size, `inherit` and unset follow the token",titleSizeMobile:"read by the heading part's `styleFrom`: a number is its phone Size, `inherit` and unset follow the token",bodySizeDesktop:"read by the words part's `styleFrom`: a number is its Size, `inherit` and unset follow the token",bodySizeMobile:"read by the words part's `styleFrom`: a number is its phone Size, `inherit` and unset follow the token",...Object.fromEntries(gP.map(e=>[e,"read by its part's `styleFrom`: the unit of that view's Size"])),buttonColor:AB("Button color"),buttonTextColor:AB("Button text color"),...X}}),LB={textStyle:"heading-2",...H("headingMedium",56,36),weight:400,lineHeight:1.05,letterSpacing:-.03},dK={textStyle:"body-1",...H("body",16),lineHeight:1.7},RB=e=>({kind:"text",key:"body",props:{...oe,maxWidth:520},style:{...dK,paragraphSpacing:e}}),Vp={top:0,bottom:0,topPhone:0,bottomPhone:0},pg=(e,o)=>typeof e.sectionHeightMode=="string"&&e.sectionHeightMode!=="auto"?{}:{sectionHeightMode:"fixed",sectionHeightUnit:"%",sectionHeightValue:o,sectionHeightModePhone:"auto"},fK=(e,o)=>{let t=pg(e,o);return Object.keys(t).length?t:{sectionHeightMode:e.sectionHeightMode,...e.sectionHeightValue===void 0?{}:{sectionHeightValue:e.sectionHeightValue},...e.sectionHeightUnit===void 0?{}:{sectionHeightUnit:e.sectionHeightUnit},sectionHeightModePhone:"auto"}},DB={boxShapePhone:"landscape"},NB="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)",cK=(e,o)=>({[e]:o,[tK(e)]:o}),pK={textStyle:"heading-2",...H("headingMedium",40),weight:500,case:"none",lineHeight:1,letterSpacing:-.02},FB=e=>(Array.isArray(e.stats)?e.stats:[]).filter(o=>o&&(String(o.value??"").trim()!==""||String(o.label??"").trim()!=="")),uK=()=>({name:"Brand Text",boxProps:(e,o)=>({...Y,...$o("background")(e,o),direction:"row",share:"equal",gap:0,gapPhone:0,sectionBorder:{top:1,bottom:1},...re(e,Vp),...pg(e,100)}),box:[...J,...ce(Vp)],parts:[{kind:"group",name:"Words",props:()=>({...R,justify:"center",gap:28,gapPhone:28,sectionBorder:ri({right:1}),sectionBorderPhone:ri({}),...ti,sectionPaddingTop:100,sectionPaddingBottom:100,sectionPaddingTopPhone:60,sectionPaddingBottomPhone:60,sectionPaddingRight:rK}),parts:[pe("eyebrow",H("label",14)),{kind:"text",key:"heading",role:"heading",props:U,style:{...LB,case:"none"},mark:"accentItalic"},RB(28),{kind:"group",name:"Stats",props:{...R,sectionPaddingTop:16,sectionPaddingTopPhone:16},parts:[{kind:"group",name:"Figures",props:e=>({...R,direction:"row",share:"equal",gap:24,gapPhone:24,maxWidth:520,phoneRow:Math.min(Math.max(FB(e).length,1),3),...cK("sectionBorder",ri({top:1})),sectionPaddingTop:28,sectionPaddingTopPhone:28}),parts:[{kind:"list",key:"stats",name:"Stat",of:FB,props:{...R,gap:4,gapPhone:4},parts:[{kind:"text",key:"value",props:Aa,style:pK},pe("label",{...H("label",13),color:"labels",letterSpacing:.2})]}]}]}]},mI("Picture","imageSrc",DB)],drop:{...X,grayscale:NB,...te}}),qp=e=>{let o=e.textAlign==="center"||e.textAlign==="right"?{align:e.textAlign}:{},t=e.textAlignPhone==="left"||e.textAlignPhone==="center"||e.textAlignPhone==="right"?{alignPhone:e.textAlignPhone}:{};return{...o,...t}},mK=e=>e.textAlign==="center"||e.textAlign==="right"?gd[e.textAlign]:"stretch",xK=e=>Math.min(Math.max(ye(e.overlay)??60,0),100),MB=e=>typeof e=="string"&&e.trim()!=="",hK={...fo,align:"center",alignPhone:"center",buttonFillOpacity:0,buttonBorder:{width:1},buttonPaddingTop:16,buttonPaddingRight:28,buttonPaddingBottom:16,buttonPaddingLeft:28,buttonPaddingTopPhone:12,buttonPaddingRightPhone:20,buttonPaddingBottomPhone:12,buttonPaddingLeftPhone:20},BB=e=>({...mI("Picture","imageSrc",(o,t)=>({...MB(o.imageSrc)&&cg(o.imageOverlay)>0?{darken:cg(o.imageOverlay),darkenStyle:"even"}:{},placement:"center",...DB,sectionBorder:ri(e?{left:1}:{right:1}),...HB(e?"left":"right",os(t))}),[{kind:"button",key:"imageBtnText",href:"imageBtnHref",variant:"ghost",props:hK,style:{...wt(13,12),letterSpacing:.18}}]),when:o=>o.reverse===!0===e}),HB=(e,o)=>{let t=Math.max(60-o,0);return{sectionPaddingLeft:e==="left"?60:t,sectionPaddingRight:e==="right"?60:t}},IK={kind:"group",name:"Words",props:(e,o)=>{let t=e.reverse===!0;return{...R,justify:"center",align:mK(e),placement:aK(["left","center","right"],"left",e.textAlign),...fK(e,72),gap:24,gapPhone:24,...MB(e.textBgSrc)?{darken:xK(e),darkenStyle:"even"}:{},...ti,sectionPaddingTop:100,sectionPaddingBottom:100,...HB(t?"right":"left",os(o)),sectionPaddingTopPhone:60,sectionPaddingBottomPhone:60}},box:[["textBgSrc","bgImage"]],parts:[{...pe("eyebrow",H("label",14)),styleFrom:qp},{kind:"text",key:"title",role:"heading",props:U,style:LB,styleFrom:e=>({case:e.uppercase===!0?"upper":"none",...qp(e)})},{...RB(24),styleFrom:qp},{kind:"group",name:"Button",props:{...R,sectionPaddingTop:8,sectionPaddingTopPhone:8},parts:[{kind:"button",key:"ctaText",href:"ctaHref",variant:"primary",props:e=>{let o=qp(e);return{...fo,...o.align?{align:o.align}:{},...o.alignPhone?{alignPhone:o.alignPhone}:{}}}}]}]},gK=()=>({name:"Image & Text Split",boxProps:(e,o)=>({...Y,...$o("background")(e,o),direction:"row",share:"equal",gap:0,gapPhone:0,sectionBorder:{top:1,bottom:1},...re(e,Vp),...pg(e,72)}),box:[...J,...ce(Vp)],parts:[BB(!1),IK,BB(!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:NB,...X,...te}}),WB={IntroBleed:iK(),Manifesto:uK(),Split:gK()};var UB={headPlacement:void 0},$B={top:0,bottom:0,topPhone:0,bottomPhone:0},yK=()=>({name:"Form",ownBoxConverts:!0,boxProps:e=>({...Y,direction:"column",...re(e,$B)}),box:[...J,...ce($B)],parts:[{kind:"core",keep:"rest",props:UB}],drop:{...X,...te}}),zB={top:120,bottom:120,topPhone:60,bottomPhone:60},SK=()=>({name:"Photo Submission Form",boxProps:e=>({...Y,direction:"column",gap:24,...re(e,zB)}),box:[...J,...ce(zB)],parts:[pe("eyebrow"),{kind:"text",key:"title",role:"heading",props:U,style:{textStyle:"heading-2"},mark:"accentItalic"},{kind:"text",key:"body",role:"body",props:oe},{kind:"core",as:"Form",keep:["formSlug"],rename:{buttonText:"submitText",consent:"finePrint"},props:UB}],skip:e=>e.layout==="boxes"?`its words are in its two SubmitBox regions (layout "boxes"); this row reads only the section's own words`:void 0,drop:{...X,...te,layout:'the marker of the two-region drawing; a node that has it is skipped (above), so here it is never "boxes"',boxes:'the SubmitBox regions, drawn only under layout "boxes", which this row skips (above); without that marker they draw nothing'}}),jB={Form:yK(),SubmitBuild:SK()};import{phoneKey as GB}from"efficient-easel/draw";var qB=1.5,KB={textStyle:"body-1",...H("body",15),lineHeight:qB},bK={...Ro,...H("label",12),letterSpacing:.12,lineHeight:qB},VB=()=>({type:q,props:{...R,direction:"row",justify:"between",align:"start",gap:16,gapPhone:16,share:"content",phoneRow:2,[GB("share")]:"content",[GB("wrap")]:"nowrap",...Co(12,0),sectionBorder:{top:1},name:"Item"},slots:{[Ce]:[{type:q,props:{...R,gap:0,gapPhone:0,name:"Item words"},slots:{[Ce]:[Be("label",{...U,tag:"p"},KB),Be("meta",{...oe,tag:"p"},bK)]}},Be("amount",{...U,tag:"p"},KB)]}});var wK=()=>({name:"Order Table",boxProps:()=>({...Y,direction:"column"}),box:[...J],parts:[{kind:"core",keep:"rest",headless:!0,slots:{[Te]:[VB()]}}],drop:{...X}}),YB={OrderSummary:wK()};import{phoneKey as CK}from"efficient-easel/draw";var _we={eyebrow:"By the numbers",title:`A picture worth
|
|
332
|
+
*a thousand rows.*`},XB=["eyebrow","title","body","caption"],Awe={label:"Chart",defaultProps:{eyebrow:"",title:"",body:"",items:[],caption:"",chartStyle:"bars",valueSuffix:""}};var ZB=["eyebrow","title","body"],Bwe={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 eL=()=>({kind:"group",name:"Words",props:{...R,gap:20,gapPhone:20},parts:[{kind:"group",name:"Chip row",props:{...R,direction:"row",phoneRow:2,[CK("share")]:"content"},parts:[Jn("eyebrow")]},{kind:"text",key:"title",role:"heading",props:U,style:{textStyle:"heading-2",...H("headingMedium",44,32),weight:500,case:"upper",lineHeight:1.04,letterSpacing:-.02}},{kind:"text",key:"body",props:{...oe,maxWidth:435},style:Sd(16)}]}),oL=e=>(o,t)=>({...Y,sectionAccent:es(o.sectionAccent??0,t),direction:"row",align:"center",gap:56,gapPhone:56,share:e,sectionBorder:{top:1,bottom:1},...re(o,kl)}),tL=[...J.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,t)=>es(e,t)],...ce(kl)],kK=()=>({name:"Chart",boxProps:oL([42]),box:tL,parts:[eL(),{kind:"group",name:"Chart",props:{...R,gap:16,gapPhone:16},keepEmpty:!0,parts:[{kind:"core",keep:"rest",props:Zn},pe("caption",{color:"muted",...H("label",10),letterSpacing:.14})]}],pressKeepsEmpty:[...XB],drop:{...X,...te}}),JB=e=>e.align==="left",QB={kind:"group",name:"Card",keepEmpty:!0,props:R,parts:[{kind:"core",keep:"rest",props:Zn}]},vK=()=>({name:"Mockup Card",boxProps:oL("equal"),box:tL,parts:[{...QB,when:JB},eL(),{...QB,when:e=>!JB(e)}],pressKeepsEmpty:[...ZB],drop:{...X,...te}}),rL={Chart:kK(),Mockup:vK()};import{phoneKey as TK}from"efficient-easel/draw";function aL(e,o=3){let t=Array.from({length:o},()=>[]);return e.forEach((r,a)=>t[a%o].push(r)),t}function nL(e){return Math.max(e*6,30)}var OK=e=>(Array.isArray(e.apps)?e.apps:[]).map(o=>o&&typeof o=="object"&&typeof o.text=="string"?o.text.trim():"").filter(Boolean),ug=e=>aL(OK(e)),EK=e=>Bp({loopDuration:nL(e)}),_K={kind:"group",name:"Header",props:{...R,align:"center",gap:20,gapPhone:20},parts:[{kind:"group",name:"Chip row",props:{...R,direction:"row",justify:"center",phoneRow:2,[TK("share")]:"content"},parts:[Jn("eyebrow")]},{kind:"text",key:"title",role:"heading",props:{...U,align:"center"},style:{textStyle:"heading-2",...H("headingMedium",40,30),weight:500,case:"upper",lineHeight:1.04,letterSpacing:-.02}},{kind:"text",key:"body",props:{...oe,align:"center",maxWidth:568},style:Sd(16)}]},AK=e=>({kind:"group",name:`Row ${e+1}`,when:o=>ug(o)[e].length>0,props:o=>({...R,direction:"row",gap:12,gapPhone:12,loop:"scroll",...e%2===1?{scrollDirection:"right"}:{},loopDuration:EK(ug(o)[e].length)}),parts:[{kind:"block",type:"Logos",props:{contained:!1,headPlacement:"own-box",look:"chips",grayscale:!1},slot:"logos",parts:[{kind:"list",key:"apps",name:"Logo",flat:!0,of:o=>ug(o)[e].map(t=>({alt:t})),parts:[{kind:"block",type:"LogoBlock",box:["alt"]}]}]}]}),FK={kind:"group",name:"Stat",props:{...R,align:"center",gap:16,gapPhone:16},parts:[{kind:"group",name:"Figure",props:{...R,align:"center",gap:8,gapPhone:8},parts:[{kind:"text",key:"statValue",props:{...U,align:"center"},style:{textStyle:"heading-1",...H("headingLarge",64,46),weight:500,case:"upper",lineHeight:1,color:"accent"}},{kind:"text",key:"statLabel",props:{...U,align:"center"},style:{textStyle:"heading-3",...H("headingSmall",18),weight:500,case:"upper",letterSpacing:.06}}]},{kind:"text",key:"note",props:{...U,align:"center",maxWidth:428},style:{textStyle:"body-1",...H("label",14),lineHeight:1.625,color:"muted"}}]},BK=[...J.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,t)=>es(e,t)],...ce(mc)],LK={name:"Integrations",boxProps:(e,o)=>({...Y,sectionAccent:es(e.sectionAccent??0,o),direction:"column",gap:48,gapPhone:48,sectionBorder:{top:1,bottom:1},...re(e,mc)}),box:BK,parts:[_K,{kind:"group",name:"Rows",props:{...R,gap:12,gapPhone:12},parts:Array.from({length:3},(e,o)=>AK(o))},FK],pressKeepsEmpty:["body","statValue","statLabel","note"],reads:{apps:"a Logo block per app, dealt into the three Rows"},drop:{...X,...te}},sL={Integrations:LK},lL=()=>({eyebrow:c("Integrations"),title:c(`Plays well with
|
|
333
|
+
*your favourite apps.*`),apps:["Shopify","Xero","Stripe","Mailchimp","Zapier","HubSpot","QuickBooks","PayPal","Google Analytics"].map(e=>({text:e}))});var RK={title:"Back online in",zeroText:"Almost done. Back very soon."},iL=["title"],Zwe={label:"Countdown",defaultProps:{...RK,endsAt:"",showUnits:!0}};var DK={...pe("title",{...iw(12),color:"muted"}),props:{...U,align:"center"}},NK=()=>({name:"Countdown",boxProps:e=>({...Y,direction:"column",align:"center",gap:16,gapPhone:16,...re(e,dc)}),box:[...J,...ce(dc)],parts:[DK,{kind:"core",keep:"rest",props:Zn}],pressKeepsEmpty:[...iL],drop:{...X,...te}}),MK=()=>({name:"Feature Banner",boxProps:e=>({...Y,direction:"column",sectionBorder:{bottom:1},...re(e,uc)}),box:[...J,...ce(uc)],parts:[{kind:"core",keep:"rest",props:Zn}],drop:{...X,...te}}),dL={Countdown:NK(),FeaturedCover:MK()};var fL={top:80,bottom:80,topPhone:60,bottomPhone:60},HK=()=>{let e=vp("FitmentFinder");return{name:"Fitment Form",boxProps:o=>({...Y,direction:"column",gap:ai[Ra("FitmentFinder")],...re(o,fL)}),box:[...J,...ce(fL)],parts:[ct("FitmentFinder"),{kind:"block",type:"FitmentPicker"},{kind:"block",type:"StockFitment"},{kind:"button",key:"ctaText",href:"ctaHref"}],skip:o=>o.layout==="bar"?"the one-row shape goes to the shop on the fourth pick and draws no head; the Fitment picker block never leaves the page":void 0,...Object.keys(e).length?{reads:e}:{},drop:{...X,...te,layout:'the section shape; "bar" is skipped (above), so here it is the stacked shape this Box draws'}}},cL={FitmentFinder:HK()};var Yp={eyebrow:"Label",title:"Section *heading.*",body:"Add this section's copy here. A blank line starts a new paragraph."},lCe={label:"Editorial Text",defaultProps:{eyebrow:"",title:"",body:"",topBorder:!0}};var mi={eyebrow:Oe.eyebrow,lead:"Introduce your company in a paragraph or two.",foundersHeading:"Add a short heading.",foundersBody:"Add a short statement here \u2014 a sentence or two is plenty.",attribution:"\u2014 Name, Year"},fCe={label:"Lead Text",defaultProps:{eyebrow:"",lead:"",stats:[],foundersHeading:"",foundersBody:"",attribution:"",padTop:60,padBottom:80}};var pL={eyebrow:"Limited release",title:"Banner headline",body:"A line or two of supporting copy."},pCe={label:"Banner",drawsPictures:!0,defaultProps:{eyebrow:"",title:"",body:"",imageSrc:"",ctaText:"",ctaHref:"",contained:!0,overlay:60}};var uL={title:`Section heading
|
|
334
|
+
*Highlight line*`},mL=[{label:je.text,href:je.href,variant:"primary"},{label:je.text,href:je.href,variant:"outline"}],xCe={label:"Call-to-Action Heading",defaultProps:{title:"",buttons:[],padTop:140,padBottom:140}};var hr={num:"01 / Section",title:"Section *title*",description:"Short supporting line",linkText:Oe.viewAll},SCe={label:"Section Header",drawsPictures:!0,defaultProps:{headStyle:oc,num:hr.num,numStyle:Tl,title:hr.title,description:"",logoSrc:"",logoAlt:"",linkText:"",linkHref:""}};var Xp={eyebrow:"\u2014 Label",title:`Section headline
|
|
335
|
+
*Highlight line*`,body:"A sentence or two of supporting copy."},kCe={label:"Scroll-Over Text",drawsPictures:!0,defaultProps:{eyebrow:"",title:"",body:"",imageSrc:"",imageSrcMobile:"",heightDesktop:100,heightMobile:100,overlay:60,titleSizeDesktop:il,bodySizeDesktop:il,titleSizeMobile:il,bodySizeMobile:il,ctaText:"",ctaHref:"",buttonColor:"",buttonTextColor:"",stickTop:!0,[bn]:0,uppercase:!1}};var WK={name:"Editorial Text",boxProps:e=>({...Y,direction:"column",gap:28,gapPhone:28,sectionBorder:{top:1},...re(e,hc)}),box:[["topBorder","sectionBorder",e=>e===!1?void 0:{top:1}],...J,...ce(hc)],parts:[ct("Prose"),{kind:"text",key:"body",props:oe,style:{textStyle:"body-1",...H("body",16),lineHeight:1.7,paragraphSpacing:18}}],drop:{...X,...te,headPlacement:"needs a row per head placement: an own-box Prose draws no head (its words sit in a Section Header above it), the row always draws the head. 0 of 123 live nodes store it (the live export, 2026-10-24)"}},hL={buttonPaddingTop:20,buttonPaddingBottom:20,buttonPaddingLeft:28,buttonPaddingRight:28},IL=(e,o)=>o?.variant==="primary",gL=(e,o)=>({kind:"list",key:"buttons",name:"Button",flat:!0,when:e,parts:[{kind:"button",key:"label",href:"href",when:IL,variant:"primary",style:{letterSpacing:.3},props:{...fo,...hL,...o}},{kind:"button",key:"label",href:"href",when:(t,r)=>!IL(t,r),variant:"ghost",style:{letterSpacing:.3},props:{...fo,...hL,...o}}]}),Zp=e=>We(e.title),$K={name:"Call-to-Action Heading",boxProps:e=>({...Y,direction:"row",align:"center",justify:Zp(e)?"between":"end",gap:60,gapPhone:60,share:"content",sectionBorder:{bottom:1},...ft(e,"TitleWithButtons")}),box:[...J,...$r("TitleWithButtons")],parts:[{kind:"group",name:"Title",props:{...R,maxWidth:1e3,widthFitPhone:"fill"},parts:[{kind:"text",key:"title",role:"heading",props:U,style:{textStyle:"heading-1",...Uo("headingLarge",48,7,108),case:"upper",lineHeight:.94,letterSpacing:-.035},mark:"accentItalic"}]},{kind:"group",name:"Buttons",props:e=>({...R,gap:14,gapPhone:14,widthFitPhone:"fill",...Zp(e)?{minWidth:280,minWidthPhone:0}:{}}),parts:[gL(Zp,{widthFit:"fill",iconPosition:"end"}),gL(e=>!Zp(e),{})]}],drop:{...X,buttonsAlign:"moves the buttons only when there is no heading (4 of 128 live nodes), where the Box puts them at the end. 0 of 128 live nodes store it (the live export, 2026-10-24)",buttonsAlignPhone:"the phone's own side of `buttonsAlign`, read only with no heading; no old node stores it (it is new with the Phone view's Block alignment row), so nothing moves",buttonsAlignTablet:"the tablet's own side of `buttonsAlign`, read only with no heading; no old node stores it (it is new with the Tablet view's Block alignment row, 0 stored on the US sites 2026-11-05), so nothing moves"}};function zK(e,o){let t=os(o,{to:wr(e.sectionPaddingUnitTablet??e.sectionPaddingUnit)}),r=os(o,{view:"phone",to:wr(e.sectionPaddingUnitPhone),maxPx:20});return{sectionPaddingLeft:xL,sectionPaddingRight:xL,sectionPaddingLeftTablet:t,sectionPaddingRightTablet:t,sectionPaddingLeftPhone:r,sectionPaddingRightPhone:r}}var UK={name:"Section Header",boxProps:(e,o)=>({...Y,direction:"column",gap:0,...re(e,Ic),...zK(e,o)}),box:[...J,...ce(Ic)],parts:[ct("SectionHeader")],drop:{...X,...te,headStyle:"needs a row per head look: the row draws the standard look; the editorial, simple, statement, natural and essay looks are other layouts. 0 of 69 live nodes store it (the live export, 2026-10-24)",eyebrowLook:"read only by the simple, statement, natural and essay looks, which this row does not draw. 0 of 69 live nodes store it",rowGap:"read only by the natural look, which this row does not draw. 0 of 69 live nodes store it",descriptionSize:"read only by the natural look, which this row does not draw. 0 of 69 live nodes store it",numStyle:"Solid (the default; 4 of 69 live nodes store it) IS the eyebrow Text the row draws; Outlined (0 live) needs an outlined-number text look"}},yL={...R,direction:"row",share:[67],gap:32},SL={...R,sectionPaddingLeft:24,sectionPaddingLeftPhone:0},bL=(e,o,t)=>({kind:"group",name:e,props:o,parts:[t]}),jK={name:"Lead Text",boxProps:e=>({...Y,direction:"column",gap:40,gapPhone:40,sectionBorder:{bottom:1},...ft(e,"ParagraphsA")}),box:[...J,...$r("ParagraphsA")],parts:[{kind:"group",name:"Numbers",props:{...yL,gapPhone:24,sectionBorder:{bottom:1},sectionPaddingBottom:40,sectionPaddingBottomPhone:40},parts:[{kind:"group",name:"Eyebrow",props:{...R,sectionPaddingTop:5,sectionPaddingBottom:1,sectionPaddingTopPhone:5,sectionPaddingBottomPhone:1},parts:[pe("eyebrow",{color:"labels",...H("label",12),letterSpacing:.24})]},bL("Stats column",R,{kind:"group",name:"Stats",props:{...SL,gap:0,gapPhone:0},parts:[{kind:"list",key:"stats",name:"Stat",flat:!0,parts:[oi("value","label",{...H("label",13),letterSpacing:.18,lineHeight:1.8})]}]})]},{kind:"group",name:"Words",props:{...yL,gapPhone:28},parts:[{kind:"group",name:"Lead",props:R,parts:[{kind:"group",name:"Measure",props:{...R,maxWidth:780},parts:[{kind:"text",key:"lead",props:U,style:{textStyle:"heading-3",...H("headingSmall",22,20),weight:400,case:"none",lineHeight:1.45,letterSpacing:-.005}}]}]},bL("Note column",{...R,justify:"end"},{kind:"group",name:"Founders",props:{...SL,gap:8,gapPhone:8},parts:[{kind:"group",name:"Note",props:{...R,gap:6,gapPhone:6},parts:[{kind:"text",key:"foundersHeading",props:U,style:{textStyle:"body-1",fontRole:"heading",...H("body",18,16),weight:500,letterSpacing:-.01,lineHeight:1.7}},{kind:"text",key:"foundersBody",props:oe,style:{textStyle:"body-5",fontRole:"heading",...H("body",14,12),lineHeight:1.7}}]},pe("attribution",{...H("label",12,10),letterSpacing:.24,lineHeight:1.7})]})]}],drop:{...X}},GK={name:"Banner",boxProps:e=>({...Y,direction:"column",gap:0,...re(e,ac)}),box:[...J,"contained",...ce(ac)],parts:[{kind:"group",name:"Card",keepEmpty:!0,props:{...R,gap:28,gapPhone:28,placement:"top-left",darken:60,darkenStyle:"even",sectionBorder:{width:1},...rr("surface"),...Co(64,40,40,24)},box:[["imageSrc","bgImage"],["overlay","darken",e=>Math.min(Math.max(ye(e)??60,0),100)]],parts:[{kind:"group",name:"Words",props:{...R,gap:20,gapPhone:20},parts:[pe("eyebrow"),{kind:"text",key:"title",role:"heading",props:{...U,maxWidth:680},style:{weight:500,lineHeight:1.05,letterSpacing:-.03,case:"none",...H("headingMedium",44,32)}},{kind:"text",key:"body",props:{...U,maxWidth:680},style:{textStyle:"body-1",lineHeight:1.6,...H("body",16)}}]},{kind:"button",key:"ctaText",href:"ctaHref",variant:"primary",props:fo}]}],drop:{...X,...te}},mg={Prose:WK,TitleWithButtons:$K,SectionHeader:UK,ParagraphsA:jK,Banner:GK},wL={Prose:()=>({eyebrow:Yp.eyebrow,title:vt(Yp.title),body:Yp.body}),TitleWithButtons:()=>({title:vt(uL.title),buttons:mL.map(e=>({...e}))}),SectionHeader:()=>({num:hr.num,title:vt(hr.title),description:hr.description,linkText:hr.linkText,linkHref:je.href}),ParagraphsA:()=>({eyebrow:mi.eyebrow,lead:Oe.body,foundersHeading:mi.foundersHeading,foundersBody:mi.foundersBody,attribution:mi.attribution}),Banner:()=>({...pL,ctaText:je.text,ctaHref:je.href}),ProcessSteps:()=>({num:hr.num,title:vt(hr.title)}),IntroBleed:()=>({eyebrow:Xp.eyebrow,title:vt(Xp.title),body:Xp.body,ctaText:je.text,ctaHref:je.href})};function Jp(){no(mg),no(HA),no(oF),no(_A),no(IF),no(AF),no(jF),no(qF),no(rB),no(uB),no(TB),no(WB),no(jB),no(YB),no(cL),no(rL),no(sL),no(dL)}var KK=[{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=>O1(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=>_1(e)},{name:"convertSectionsInPage",chrome:!1,why:"page-only: it turns an old top-level SECTION into its Box, with the site theme off the page's metadata; chrome is a Box group, never one of those sections",run:(e,{metadata:o})=>(Jp(),L1(e,Jl,{theme:nC(o)}))},{name:"capHeroGroups",chrome:!1,why:"page-only: it caps a top-level Hero's slide groups, and a Hero is a page section",run:e=>W0(e)},{name:"oneH1",chrome:!1,why:"page-only: it hands the h1 to the first opener in the PAGE's document order; on a chrome document it would count a second document on its own",run:e=>ZE(e)},{name:"dropEmptySourcedBoxes",chrome:!0,why:"any document: a nested head over sourced cores served none goes (the Box footer's payment line), at any depth inside a slot",run:e=>XE(e)},{name:"markHeadCoreBoxes",chrome:!1,why:"page-only: it marks a head Box at the TOP of the page, where the mark element draws (lib/content/empty-hides); a chrome document's top is the chrome group",run:e=>VE(e)},{name:"markListSearchScopes",chrome:!1,why:"page-only for now: it ties a Search to the lists of the page's Box; no chrome holds a Search, and a chrome entry is one flag when one does",run:e=>G0(e)},{name:"withPageContents",chrome:!1,why:"page-only: a Contents block lists the PAGE's anchored sections and numbers their kickers",run:e=>I0(e)},{name:"markWallLabels",chrome:!0,why:"any document: each Marks wall is named by the lead Text drawn before it (aria-labelledby), the Box footer's walls too",run:e=>t_(e)},{name:"markCardPressTitles",chrome:!0,why:"any document: an acting copy's press button is named by its template's title Text (aria-labelledby), a header or footer list too; after the wall labels, so a Text keeps one id",run:e=>l_(e)}];function qK(e,o,t){let r=e;for(let a of KK)(!t||a.chrome)&&(r=a.run(r,o));return r}function CL(e,o){return qK(e,{metadata:o},!1)}import{useRef as VK}from"react";import{createRenderKeep as YK}from"efficient-easel/render";function kL(){let e=VK(null);return e.current??=YK(),e.current}import{isNode as XK,isNodeList as ZK}from"efficient-easel/data";import{hidableText as JK,readHidable as QK}from"efficient-easel/draw";var PL="slotCounts",xg=e=>!QK(e).hidden&&JK(e).trim()!=="",e7=e=>typeof e=="string"&&e.trim()!=="",o7={Flex:()=>!0,PostCard:()=>!0,ImageBlock:e=>e7(e.src),Text:e=>xg(e.text),Heading:e=>xg(e.text),Eyebrow:e=>xg(e.eyebrow)},t7=["widthFit","width","minWidth"],vL=e=>ZK(e);function r7(e){if(Array.isArray(e.content))return vL(e.content)?e.content:null;let o=Object.values(e).filter(vL);return o.length===1?o[0]:null}function a7(e,o){return[...new Set([db,...Object.values(z(Ow,e)??{})])].some(t=>Wt(o,t)!=="")}function n7(e){let o=e.props??{},t=z(o7,e.type);if(!t||!t(o)||a7(e.type,o)||ll(o))return!1;let r=o[Kn];if(r!=null&&r!=="")return!1;let a=dp(o);return!t7.some(n=>a[n]!==void 0)}function s7(e){let o=0;for(let t of e)if(!lr(t.props??{})){if(!n7(t))return;o+=1}return o>0?o:void 0}function l7(e){let o={},t=new Set,r=new Set,a=(n,s)=>{if(Array.isArray(n))for(let l of n){if(!XK(l))continue;let i=l.props.id;typeof i=="string"&&(t.has(i)?r:t).add(i);let d=s?null:r7(l.props);if(typeof i=="string"&&d){let f=s7(d);f!==void 0&&(o[i]=f)}for(let f of Nt(l))a(l.props[f],s||aa(l.type,f))}};a(e,!1);for(let n of r)delete o[n];return o}function TL(e,o){return{...e??{},[PL]:l7(o)}}function Eke(e){let o=e.editor?.metadata?.[PL],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 f7({config:e,data:o,metadata:t}){let r=CL(o,t),a=kL(),n=M0(e,N0(r.content)),s=Zf(r.content),l=s.length>0?{...t,[D0]:s}:t;return OL(Jf,{children:OL(d7,{config:n,metadata:TL(l,r.content),keep:a,data:r})})}var EL=i7(f7);import{jsx as jo,Fragment as gq,jsxs as vR}from"react/jsx-runtime";import{Suspense as yq,useMemo as Sq}from"react";import{jsx as c7}from"react/jsx-runtime";import{createContext as p7,useCallback as u7,useContext as m7,useState as hg}from"react";var _L=p7({footerBlock:null,setFooterBlock:()=>{},headerGroup:null,setHeaderGroup:()=>{},refreshToken:0,refreshFooter:()=>{},chromeRootProps:null});function $ke({children:e,editFooter:o,chromeRootProps:t=null}){let[r,a]=hg(null),[n,s]=hg(null),[l,i]=hg(0),d=u7(()=>i(f=>f+1),[]);return c7(_L.Provider,{value:{footerBlock:r,setFooterBlock:a,headerGroup:n,setHeaderGroup:s,editFooter:o,refreshToken:l,refreshFooter:d,chromeRootProps:t},children:e})}var AL=()=>m7(_L);import{jsx as x7,jsxs as h7}from"react/jsx-runtime";import{createContext as I7,useContext as g7}from"react";var FL=I7(!1);function Kke(){return g7(FL)}function BL({grayscale:e,children:o}){let t=e===!0;return h7(FL.Provider,{value:t,children:[Object.entries($_(e)).map(([r,a])=>x7("style",{children:a},r)),o]})}import{jsx as y7}from"react/jsx-runtime";import{createContext as S7,useContext as b7}from"react";var LL=S7(null);function Xke(){return b7(LL)}function RL({ink:e,children:o}){return y7(LL.Provider,{value:e??null,children:o})}import{parseOption as w7}from"efficient-shell/format";var DL="data-lead-ink",ove="data-header-ink",C7=["auto","light","dark"],k7="auto";function v7(e){return e.type==="IntroBleed"?Gp(e.props?.layout)!=="stacked":!0}function NL(e){let o=Cf(e);return o&&CP(e)&&v7(o)?"light":null}function tve(e){return w7(C7,k7,e)}import{useEasel as Eg}from"efficient-easel/easel";import{useEffect as N7}from"react";import{useEaselApi as M7}from"efficient-easel/easel";import{find as P7,walk as ML}from"efficient-easel/data";var T7=()=>"",O7=e=>Xm(Mt([e],T7));function $L(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(O7))])),a=Xm(e);return Object.keys(r).find(n=>r[n].has(a))??null}var E7=()=>({press:[ts(ta),ts($s)],delivery:[gI()]}),_7={},Ig=e=>$L(e,E7,_7),A7=e=>Me(e)===ab?"delivery":"press";function mve(e,o){if(!o||Me(e)===Me(o))return e;let t=Ig(e[Te]),r=A7(e);if(!t||t===r)return e;let a=Gm(e,io),n=r==="delivery"?gI():ts(Me(e)?$s:ta),s=Mt([n],qm(a));return{...e,[Te]:s}}var F7=()=>({cards:[sn(ta),sn($s)],label:[ln(!1),ln(!0)]}),B7={},L7=e=>$L(e,F7,B7);function xve(e,o){if(!o||e.cardStyle==="label-only"==(o.cardStyle==="label-only"))return e;let t=L7(e[Te]),r=e.cardStyle==="label-only"?"label":"cards";if(!t||t===r)return e;let a=Gm(e,dw),n=Array.isArray(e.items)&&e.items.some(i=>xo(i?.href)!==void 0),s=r==="label"?ln(n):sn(Me(e)?$s:ta),l=Mt([s],qm(a));return{...e,[Te]:l}}var HL=(e,o)=>II.every(t=>JSON.stringify(e[t])===JSON.stringify(o[t]));function WL(e,o){let t={...e};for(let r of II)delete t[r];return{...t,...structuredClone(o)}}function gg(e){let o=e?.[Ce];if(!Array.isArray(o)||o.length!==1)return null;let t=o[0];return t?.type===io&&t.props?t:null}function R7(e,o){let t=gg(e),r=gg(o);if(!t?.props||!r?.props||r.props.id!==t.props.id||Me(t.props)===Me(r.props))return e;let a=Ig(t.props[Te]);if(!a||a===Ig(r.props[Te]))return e;let n=ye(e.columns);return n===void 0?e:a==="delivery"&&HL(e,La(n))?WL(e,hp(n)):a==="press"&&HL(e,hp(n))?WL(e,La(n)):e}function zL(e){let o=Qp.get(e);o?o.count+=1:Qp.set(e,{count:1,stop:D7(e)});let t=!1;return()=>{let r=Qp.get(e);t||!r||(t=!0,r.count-=1,!(r.count>0)&&(r.stop(),Qp.delete(e)))}}var Qp=new WeakMap;function D7(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;ML(t,e.config,n=>{if(n.type!==q||!gg(n.props))return;let s=P7(r,e.config,n.props.id);if(!s||s.node===n)return;let l=R7(n.props,s.node.props);l!==n.props&&a.set(n.props.id,l)}),a.size&&e.dispatch({type:"setData",recordHistory:!1,data:n=>ML(n,e.config,s=>{let l=a.get(s.props.id);return l?{...s,props:{...l,id:s.props.id}}:void 0})})})}function UL(){let e=H7();N7(()=>e?zL(e):void 0,[e])}function H7(){try{return M7()}catch{return null}}import{jsx as eu}from"react/jsx-runtime";import{useEffect as W7}from"react";import{armPinSteps as $7,armScrollProgress as z7,PIN_ATTR as jL}from"efficient-shell/format";var U7=`[${jL}]:not([${jL}="stick"])`;function GL({armed:e,children:o}){return W7(()=>{if(!e)return;let t=z7(),r=document.querySelector(U7)?$7(document):()=>{};return()=>{r(),t()}},[e]),o}function yg(){return{style:{"--sf-page-width":No}}}function j7({children:e}){return eu("div",{style:yg().style,children:e})}function Ove({pageBackground:e,inheritBackground:o=!1,chrome:t=!1,children:r}){return eu("div",{style:{...o?{}:_f(e),background:"var(--bg)",minHeight:"100%",overflowX:"clip"},children:eu(GL,{armed:!t,children:eu(j7,{children:r})})})}import{jsx as KL,Fragment as G7}from"react/jsx-runtime";import{createContext as VL,useContext as qL}from"react";var YL=VL({}),XL=YL.Provider,ZL=VL(void 0),JL=ZL.Provider;function Fve(e){let{SectionTextParts:o}=qL(YL),t=qL(ZL);return o?KL(o,{...e,sizeCaps:t}):KL(G7,{children:e.children})}import{jsx as fq}from"react/jsx-runtime";import{useEffect as cq,useRef as pq}from"react";var QL="data-easel-overlay-portal";function ou(e){return e.setAttribute(QL,"true"),()=>{e.removeAttribute(QL)}}import{jsx as tq}from"react/jsx-runtime";import{useEffect as rq,useRef as mR}from"react";import{usePreviewParts as aq}from"efficient-easel/draw/client";import{jsx as K7}from"react/jsx-runtime";import{createContext as q7,useContext as V7,useMemo as Y7,useState as X7}from"react";var Z7={partStyle:null,setPartStyle:()=>{}},eR=q7(Z7);function Nve({children:e}){let[o,t]=X7(null),r=Y7(()=>({partStyle:o,setPartStyle:t}),[o]);return K7(eR.Provider,{value:r,children:e})}function fs(){return V7(eR)}import{usePreviewDevice as nq}from"efficient-easel/draw/client";import{shownTier as sq}from"efficient-easel/screen/lib/document/device-fields";import{decodePartId as xR,encodePartId as lq}from"efficient-easel/draw";import{BLOCK_ATTRIBUTE as iq}from"efficient-easel/canvas";import{createPreviewSelectionContext as J7}from"efficient-easel/draw/client";var Ma="Scrolling Bar",{Provider:Wve,useSelection:oR}=J7("selectedHeroId"),Sg="data-sf-hero-ticker";function tR(e){return`${e}::ticker`}function rR(e){return!e||!e.endsWith("::ticker")?null:e.slice(0,-8)||null}import{BLOCK_ATTRIBUTE as Kr}from"efficient-easel/canvas";import{createPreviewSelectionContext as Q7}from"efficient-easel/draw/client";var{Provider:Uve,useSelection:aR}=Q7("selectedLocationPartId");function tu(e,o,t){return`${e}::${o}::${t}`}function ru(e){if(!e)return null;let o=e.split("::");if(o.length<3)return null;let t=o[o.length-1];if(t!=="image"&&t!=="map"&&t!=="city")return null;let r=Number(o[o.length-2]);if(!Number.isInteger(r)||r<0)return null;let a=o.slice(0,-2).join("::");return a?{nodeId:a,index:r,part:t}:null}var wg="data-sf-part-label";function Cg(e,o){return e.closest(`[${Kr}]`)?.getAttribute(Kr)===o}function nR(e,o,t){let r=e.querySelectorAll("*"),a=new Map(t.map(g=>[g.key,xf(g.label)])),n=[],s=new Set;for(let g=0;g<r.length;g+=1){let b=r[g];if(!Cg(b,o))continue;let E=b.getAttribute(pv);if(!E)continue;let A=a.get(E);n.push({element:b,partId:jt(o,E),...A?{label:A}:{}}),s.add(b)}let l=[],i=new Set;for(let g=0;g<r.length;g+=1){let b=r[g];if(!Cg(b,o)||s.has(b))continue;let E=mv(b.textContent??"");if(!E)continue;let A=b.closest(`[${Sx}]`)?.getAttribute(Sx)||null;A&&i.add(A.replace(/\[\d+\]$/u,"")),l.push({element:b,text:E,row:A})}let d=g=>l.filter(b=>b.row===cv(g.key,g.row.index)),f=l.filter(g=>g.row===null),m=g=>g.row&&i.has(g.key)?d(g):i.size?f:l,u=new Map,h=[],I=g=>g.row?`${g.key}.${g.row.rowKey}`:null,S=new Map;for(let g of t){let b=I(g);if(!b||i.has(g.key))continue;let E=S.get(b);E?E.push(g):S.set(b,[g])}let P=new Set;for(let[g,b]of S){if(b.length<2)continue;let E=b.flatMap(w=>w.texts);if(new Set(E).size===E.length)continue;let A=m(b[0]).filter(w=>E.includes(w.text));if(A.length!==b.length)continue;let N=[...b].sort((w,_)=>(w.row?.index??0)-(_.row?.index??0));for(let w=0;w<N.length;w+=1){let _=N[w],y=A[w].element,v={key:_.key,partKey:kn(_.key,_.row),exact:!0},O=u.get(y);O?O.push(v):(u.set(y,[v]),h.push(y))}P.add(g)}let T=new Map;for(let g of t){if(P.has(I(g)??""))continue;let b=kn(g.key,g.row);for(let E of g.texts)for(let A of m(g)){if(A.text!==E)continue;let N=T.get(A.element);N?N.add(b):T.set(A.element,new Set([b]))}}let B=(g,b)=>[...T].some(([E,A])=>E!==g&&!A.has(b)&&E.contains(g));for(let g of t){if(P.has(I(g)??""))continue;let b=kn(g.key,g.row);for(let E of g.texts){let A=[],N=null;for(let y of m(g))y.text===E?B(y.element,b)||A.push(y.element):!A.length&&y.text.includes(E)&&(!N||y.text.length<=N.length)&&(N={element:y.element,length:y.text.length});let w=A.length?A:N?[N.element]:[],_=w.filter(y=>!w.some(v=>v!==y&&y.contains(v)));for(let y of _){let v={key:g.key,partKey:b,exact:A.length>0},O=u.get(y);O?O.push(v):(u.set(y,[v]),h.push(y))}}}let k=[...n];for(let g of h){let b=u.get(g)??[],E=b.some(A=>A.exact)?b.filter(A=>A.exact):b;if(new Set(E.map(A=>A.partKey)).size===1){let A=a.get(E[0].key);k.push({element:g,partId:jt(o,E[0].partKey),...A?{label:A}:{}});continue}new Set(E.map(A=>A.key)).size===1&&k.push({element:g,partId:jt(o,E[0].key)})}return k}function bg(e,o,t){let r=e.querySelectorAll(`[${Ue}]`);for(let n=0;n<r.length;n+=1){let s=r[n];Cg(s,o)&&(s.removeAttribute(Ue),s.removeAttribute(wg))}let a=[];for(let{element:n,partId:s,label:l}of t)n.setAttribute(Ue,s),l&&n.setAttribute(wg,l),a.push(n);return a}function iR(e,o,t,r,a,n=()=>null){let s=null,l=null,i=null,d=()=>{let f=t(),m=f?.getAttribute(Kr)??null;if(!f||!m)return!1;s=m;let u=nR(e,m,o);return a(f,m,bg(e,m,u)),i=n(()=>{let h=nR(e,m,o);eq(u,h)||(u=h,a(f,m,bg(e,m,h)))}),!0};return d()||(l=r(()=>{(s||d())&&(l?.(),l=null)})),()=>{l?.(),l=null,i?.(),i=null,s&&bg(e,s,[])}}function eq(e,o){return e.length===o.length&&e.every((t,r)=>t.element===o[r].element&&t.partId===o[r].partId)}function Zve(e,o){let t=e?.closest?.(`[${Ue}],[${Ar}]`),r=t?.getAttribute(Ue)??t?.getAttribute(Ar),a=r?fv(r):null;if(t&&r&&a?.nodeId===o&&a.propKey)return{id:r,element:t,whole:lR(t,r),label:sR(t,r)};let n=e?.closest?.(fR.slice(2).map(l=>`[${l}]`).join(","));if(!n)return null;let s=n.closest?.(`[${Kr}]`)?.getAttribute(Kr)===o?cR(n,o):null;return s?{id:s,element:n,whole:lR(n,s),label:sR(n,s)}:null}function sR(e,o){let t=ru(o);if(t)return t.part==="map"?"Map":t.part==="city"?"City":"Image";let r=Xc(o);return r?xr[r.part]:rR(o)?Ma:e.getAttribute(wg)??void 0}var dR="data-loc-pick",fR=[Ue,Ar,ql,Sg,dR];function cR(e,o){let t=e.getAttribute(Ue)??e.getAttribute(Ar);if(t)return t;let r=e.getAttribute(ql);if(r)return va(o,r);if(e.getAttribute(Sg)!==null)return tR(o);let a=e.getAttribute(dR)?.split(":");return a&&(a[1]==="image"||a[1]==="map"||a[1]==="city")&&/^\d+$/.test(a[0])?tu(o,Number(a[0]),a[1]):null}function lR(e,o){let t=e.closest?.(`[${Kr}]`),r=t?.getAttribute(Kr);if(!t||!r)return!1;let a=new Set;for(let n of t.querySelectorAll(fR.map(s=>`[${s}]`).join(","))){if(n.closest?.(`[${Kr}]`)!==t)continue;let s=cR(n,r);s&&a.add(s)}return a.size===1&&a.has(o)}import{ENTRANCE_ATTR as pR,playEntrance as oq}from"efficient-shell/format";var kg=new WeakMap;function uR(e,o,t,r){let a=typeof t=="boolean"?t?"phone":"desktop":t,n=[],s=new Map;for(let{partKey:d}of e){if(s.has(d))continue;let f=o(d)??{},m=ik(f),u=r.get(d),h=u?Wn.next(u,m,a):null;r.set(d,h?h.seen:Wn.seed(m)),s.set(d,h?.play??!1)}let l=new Map,i=e.filter(d=>!e.some(f=>f!==d&&f.partKey===d.partKey&&f.element.contains(d.element)));for(let d of i){let f=Fc(d.element);f&&l.set(f,[...l.get(f)??[],d])}for(let[d,f]of l){let m=I=>Fl(o(I.partKey)??{}),u=Un(f.filter(I=>m(I).entrance));if(u){let I=o(u.partKey)??{};n.push(_c(d,Xs(I,a)));let S=kg.get(d);kg.set(d,u.partKey),(s.get(u.partKey)||S!==void 0&&S!==u.partKey)&&d.hasAttribute(pR)&&oq(d)}else kg.delete(d);let h=d.hasAttribute(pR)?void 0:Un(f.filter(I=>Kt(o(I.partKey)??{},a).effect!=="none"));h&&n.push(Ac(d,Kt(o(h.partKey)??{},a))),f.some(I=>m(I).hover==="lift")&&(Bc(d.ownerDocument),d.setAttribute(ba,""),n.push(()=>d.removeAttribute(ba)))}return()=>n.forEach(d=>d())}function vg(e){let o=null,t=null;for(let r=e;r&&(o===null||t===null);r=r.parentElement){let a=r.getAttribute("class");o??=wb(a),t??=tx(a)}return{faceRole:o??"body",sizeGroup:t}}function au(e,o={},t=Ib){let r=e.style,a={};for(let i of kx)a[i]=r[i]??"",r[i]="";o.fontFamily&&(r.fontFamily=o.fontFamily),o.fontSize&&(r.fontSize=o.fontSize);let n=getComputedStyle(e),s=getComputedStyle(e.ownerDocument.documentElement),l=Nv({fontSize:n.fontSize,fontWeight:n.fontWeight,lineHeight:n.lineHeight,letterSpacing:n.letterSpacing,textAlign:n.textAlign,textTransform:n.textTransform,paddingTop:n.paddingTop},Mv(n.fontFamily,i=>s.getPropertyValue(i),t));for(let i of kx)r[i]=a[i];return l}function hR({needles:e,styles:o,motions:t=Ec,type:r,sizeCaps:a,children:n}){let s=mR(null),{selectedPartId:l}=aq(),{setPartStyle:i}=fs(),d=sq(nq()),f=kt(),m=JSON.stringify(e),u=JSON.stringify(o),h=JSON.stringify(t),I=mR(new Map);return rq(()=>{let S=s.current;if(!S)return;let P=[],T=()=>S.parentElement,B=w=>{let _=T();if(!_)return null;let y=new MutationObserver(w);return y.observe(_,{attributes:!0,attributeFilter:[iq]}),()=>y.disconnect()},k=w=>{let _=new MutationObserver(w);return _.observe(S,{childList:!0,subtree:!0,characterData:!0}),()=>_.disconnect()},g=[];P.push(()=>{for(let w of g)w();g=[]});let b=JSON.parse(m),E=JSON.parse(u),A=JSON.parse(h),N=iR(S,b,T,B,(w,_,y)=>{for(let L of g)L();g=[];let v=[];for(let L of y){let M=L,K=ou(M);K&&g.push(K),M.getAttribute(Ue)===l&&v.push(M)}let O=Hv(_,l,v,L=>Cb(L)!==null||tx(L)!==null);if(O&&l){let L=O,M=xR(l)?.propKey??"",K=al(L)?{}:Dv(Wv(E,pr(r,M)),d,{blockDrawsStyle:sl(r,M),sizeCap:ia(a,M),fonts:f});i({partId:l,...vg(L),base:au(L,K,f),inks:ff(L),...(()=>{let W=al(L);return W?{styleOwner:W}:{}})()})}Cx(y.filter(L=>!al(L)).map(L=>({element:L,partId:L.getAttribute(Ue)??""})),E,L=>au(L,void 0,f),L=>pr(r,L),void 0,d,L=>sl(r,L),L=>ia(a,L),f);let C=[...S.querySelectorAll(`[${uv}="${CSS.escape(_)}"][${mf}]`)];C.length&&Cx(C.map(L=>({element:L,partId:lq(_,L.getAttribute(mf)??"")})),E,void 0,L=>L,void 0,d,void 0,void 0,f),g.push(uR([...y.filter(L=>!al(L)).map(L=>{let M=L,K=xR(M.getAttribute(Ue)??"")?.propKey??"";return{element:M,partKey:pr(r,K)}}),...C.map(L=>({element:L,partKey:L.getAttribute(mf)??""}))],L=>A[L],sk(d),I.current))},k);return()=>{N();for(let w of P)w()}},[m,u,h,l,i,d,r,f]),tq("div",{ref:s,[Fh]:"",style:{display:"contents"},children:n})}import{shownTier as uq}from"efficient-easel/screen/lib/document/device-fields";import{usePreviewDevice as mq,usePreviewParts as xq}from"efficient-easel/draw/client";var xi={tag:"text-[length:var(--size-label,13px)]",name:"text-[length:min(var(--size-headingMedium,48px),var(--sf-heading-max,9999px))]",namePhone:"max-view-wide:text-[length:min(var(--size-headingMedium,36px),var(--sf-heading-max,9999px))]",body:"text-[length:var(--size-body,14px)]",price:"text-[length:var(--size-label,15px)]",link:"text-[length:var(--size-label,14px)]"},dq={tag:{label:"Tag",follows:"Labels",builtIn:cn(xi.tag),writable:!0},name:{label:"Name",follows:"Heading 2",builtIn:cn(xi.name),writable:!0},body:{label:"Body",follows:"Body",builtIn:cn(xi.body),writable:!0},price:{label:"Price",follows:"Labels",builtIn:cn(xi.price),writable:!0},link:{label:"Link",follows:"Labels",builtIn:cn(xi.link),writable:!0}},IR=dq;var _Pe=ra,gR={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 yR={SpecTable:gR,FAQ:gw,Collections:IR,Contents:Up};function SR(){return en("efficient.section-text-regions",()=>new Map)}function MPe(e){let o=SR();for(let[t,r]of Object.entries(e)){if(eo(yR,t))throw new Error(`lib/sections/section-text-regions: "${t}" is a builder section; its table is the builder's`);let a=o.get(t);if(a&&a!==r)throw new Error(`lib/sections/section-text-regions: "${t}" already has a table`);o.set(t,r)}}function cs(e){return e?z(yR,e)??SR().get(e)??null:null}function bR({nodeId:e,sectionType:o,partStyles:t,sizeCaps:r,children:a}){let n=pq(null),{selectedPartId:s}=xq(),{setPartStyle:l}=fs(),i=uq(mq()),d=kt(),f=JSON.stringify([t??null,r??null]);return cq(()=>{let m=n.current,u=cs(o);if(!m||!e||!u)return;let h=[],I=Array.from(m.querySelectorAll(`[${ra}]`));for(let S of I){let P=Ym(u,S.getAttribute(ra));if(!P)continue;let T=ou(S);T&&h.push(T);let B=zs(P),k=jt(e,B);S.setAttribute(Ar,k);let g=t?.[B];if(u[P].sized&&$v(g)){let b=zv(g,i,{sizeCap:ia(r,B),fonts:d}),E={fontFamily:S.style.fontFamily,fontSize:S.style.fontSize},A=S.getAttribute(sa);b.fontFamily&&(S.style.fontFamily=b.fontFamily),b.fontSize&&(S.style.fontSize=b.fontSize);let N={fontFamily:b.fontFamily?S.style.fontFamily:void 0,fontSize:b.fontSize?S.style.fontSize:void 0},w=g?.textStyle;vv(w)&&S.setAttribute(sa,w),h.push(()=>{Gv(S.style,E,N),A===null?S.removeAttribute(sa):S.setAttribute(sa,A)})}if(k===s){let b=au(S,jv(g,u[P],i,d),d);l({partId:k,...vg(S),base:b})}}return()=>{for(let S of h)S();for(let S of I)S.removeAttribute(Ar)}},[e,o,s,l,i,f,d]),fq("div",{ref:n,style:{display:"contents"},children:a})}import{jsx as Pg,Fragment as wR}from"react/jsx-runtime";import{createContext as hq,useContext as CR,useMemo as Iq}from"react";var Tg=hq(null),kR=e=>e==null||e===""?void 0:String(e);function Og({content:e,children:o}){let t=Iq(()=>th(e),[e]);return Pg(Tg.Provider,{value:t,children:o})}function tTe({id:e,children:o}){let t=CR(Tg),r=kR(e);return Pg(wR,{children:o(r?t?.entries.get(r):void 0)})}function rTe({id:e,children:o}){let t=CR(Tg),r=kR(e);return Pg(wR,{children:o(r?t?.numbers.get(r):void 0)})}var bq={SectionTextParts:bR},wq="color-mix(in oklab, var(--bg) 40%, #ffffff)",Cq="12vh";function kq({style:e,children:o}){let{appState:t}=Eg(u=>u),r=t.data.content,a=t.data.root;if(kP(r))return jo("div",{className:"sf-themed-content",style:{...e,background:wq,minHeight:"100vh",paddingBottom:Cq},children:jo("div",{style:{background:"var(--bg)"},children:jo(Og,{content:r,children:o})})});let n=Ox(r)&&PP(a,r),s=Ox(r)?TP(a,r):null,l=s?{[vP]:s}:null,i=MC(a?.widthChoice),d=i?{[NC]:i}:null,f=n?null:NL(r),m=f?{[DL]:f}:null;return jo("div",{className:`sf-themed-content${n?` ${bP}`:""}`,style:e,...m,...l,...d,children:jo("div",{style:{background:"var(--bg)",minHeight:"100%"},children:jo(Og,{content:r,children:o})})})}function ATe({propsTheme:e,propsFonts:o,propsCornerStyle:t,propsCornerRadiusPx:r,propsHeadingCompression:a,propsHeadingTypography:n,pageBackground:s,chromeInheritsSiteBackground:l,suppressPreviewNav:i,footer:d,overlay:f,children:m}){UL();let u=Eg(I=>I.appState.data.root?.props),h=Eg(I=>JP(I.appState.data.content));return jo(_g,{siteFooterRootProps:u?.kind===oP?u:void 0,inPlaceFooterProps:h,propsTheme:e,propsFonts:o,propsCornerStyle:t,propsCornerRadiusPx:r,propsHeadingCompression:a,propsHeadingTypography:n,pageBackground:s,chromeInheritsSiteBackground:l,onClickCapture:i,body:I=>vR(gq,{children:[jo(kq,{style:I,children:m}),d,f]})})}function _g({propsTheme:e,propsFonts:o,propsCornerStyle:t,propsCornerRadiusPx:r,propsHeadingCompression:a,propsHeadingTypography:n,pageBackground:s,chromeInheritsSiteBackground:l,onClickCapture:i,siteFooterRootProps:d,inPlaceFooterProps:f,body:m}){let{chromeRootProps:u}=AL(),h=Sq(()=>QP(u,f),[u,f]),{theme:I,fonts:S,sizes:P,cornerRadiusPx:T,cardShadow:B,shadowColor:k,cardGap:g,hoverEffect:b,headingCompression:E,siteWidth:A,siteGutter:N,siteGutterPhone:w,blockGap:_,blockGapPhone:y,siteLengthUnits:v,headingTypography:O,heroBackgroundFollowsWidth:C,photographyGrayscale:L,textStyles:M,wordStyles:K,themeFromDocument:W}=vo(),se=kt(),le=W?e:I,ee=W?o:S,Ie=W?void 0:P,ae=W?r===void 0?Yw[Vw(t)]:Xw(r):T,me=W?{}:v,ge=W?a:E,Ge=W?n:O,Ve=[jT(UT(W?void 0:M),se),GT(rC(Ge).italicStrong)].filter(Boolean).join(`
|
|
336
|
+
`),Eo=yg(),Ye={...Mw(le),...qw(Ie),...aC(Ge),...Eo.style,...l?{}:_f(s)};return vR("div",{className:`sf-theme-surfaces sf-theme-accent ${[FC(W?void 0:w),sP(W?void 0:y)].filter(Boolean).join(" ")}`.trim(),style:{...kb(ee,se),...Tb(W?null:K,se),...Hw(le),...$w(le),...zw(le),...Ld(le),...Zw(ae,me.cornerRadiusUnit),...oC(W?void 0:B,W?void 0:k,W?void 0:b),...xC(W?void 0:A,me.siteWidthUnit),...EC(W?void 0:N,me.siteGutterUnit),...AC(W?void 0:w,me.siteGutterPhoneUnit),...aP(W?void 0:_,me.blockGapUnit),...nP(W?void 0:y,me.blockGapPhoneUnit),...Md(W?void 0:C)},"data-sf-headings":tC(ge),[bC]:Nd(d??h),[ef]:Ek(d??h),"data-sf-card-shadow":W?void 0:Jw(B),"data-sf-card-gap":W?void 0:Qw(g),"data-sf-card-hover":W?void 0:eC(b),onClickCapture:i,children:[Ve?jo("style",{"data-sf-text-styles":"",dangerouslySetInnerHTML:{__html:Ve}}):null,jo(BL,{grayscale:W?void 0:L,children:jo(XL,{value:bq,children:jo(RL,{ink:Nw(le),children:jo(yq,{fallback:null,children:jo(Z0,{rootProps:d??h,children:m(Ye)})})})})})]})}var PR=e=>{e.target?.closest?.("a")&&e.preventDefault()};var vq=/(-?(?:\d+\.?\d*|\.\d+))(?:s|d|l)?vh\b/g;function Pq(e,o){return e.replace(vq,(t,r)=>`${+(Number(r)*o/100).toFixed(3)}px`)}function OR(e,o){for(let t=0;t<e.length;t++){let r=e.item(t),a=e.getPropertyValue(r);if(!a.includes("vh"))continue;let n=Pq(a,o);n!==a&&e.setProperty(r,n,e.getPropertyPriority(r))}}function ER(e,o){for(let t of Array.from(e)){let r=t.style;r&&OR(r,o);let a=t.cssRules;a&&ER(a,o)}}function TR(e,o){for(let t of Array.from(e.styleSheets)){let r;try{r=t.cssRules}catch{continue}ER(r,o)}for(let t of Array.from(e.querySelectorAll('[style*="vh"]')))OR(t.style,o)}function _R(e,o){TR(e,o);let t=e.defaultView,r=0,a=()=>{r||!t||(r=t.requestAnimationFrame(()=>{r=0,TR(e,o)}))};e.addEventListener("load",a,!0);let n=t?new t.MutationObserver(a):null;return n?.observe(e,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["style"],characterData:!0}),()=>{n?.disconnect(),e.removeEventListener("load",a,!0),r&&t&&t.cancelAnimationFrame(r)}}var Bq=1440,Fg=800;function FR({starter:e,config:o,metadata:t,busy:r,onAdd:a}){let{mirrorHostStyles:n}=ul(),[s,l]=Ag(null),[i,d]=Ag(Fg),[f,m]=Ag(null);return Tq(()=>{if(!s)return;let u=_R(s,Fg),h=s.defaultView,I=()=>{f&&d(Math.max(Fg,Math.ceil(f.getBoundingClientRect().height)))},S=h&&f?new h.ResizeObserver(I):null;return f&&S?.observe(f),I(),()=>{u(),S?.disconnect()}},[s,f]),AR("div",{className:"sf-starter",children:[AR(_q,{padding:"none",className:"sf-starter-picture",children:[Ot("div",{inert:!0,className:"sf-starter-frame",children:Ot(Aq,{width:Bq,height:i,children:Ot(Oq,{id:`page-starter-${e.id}`,title:e.title,mirrorStyles:n,onDocument:l,height:"fill",children:Ot(Xf,{document:s??void 0,children:Ot(_g,{onClickCapture:PR,body:u=>Ot("div",{className:"sf-themed-content",style:u,children:Ot("div",{ref:m,style:{background:"var(--bg)"},children:Ot(EL,{config:o,data:e.layout,metadata:t})})})})})})})}),Ot("div",{className:"sf-starter-add",children:Ot(Eq,{onClick:()=>a(e),loading:r,"aria-label":c("Add \u201C{name}\u201D",{name:e.title}),children:c("Add page")})})]}),Ot(Fq,{size:"sm",children:e.title})]})}import{useMemo as VZ}from"react";import{sessionRegistry as YZ}from"efficient-easel/screen/lib/session";import{useEaselSession as XZ}from"efficient-easel/screen/lib/session-context";import{currentEaselSession as Lq}from"efficient-easel/screen/lib/session";var Rq={general:!0,commerce:!0,service:!0};function Bg(e){let o=e?.sets;return o?Object.fromEntries(fb.map(t=>[t,o.includes(t)])):Rq}function Lg(e=Lq()){return Bg(e.blocks)}import{currentEaselSession as GR}from"efficient-easel/screen/lib/session";import{SITE_SIDE as RR}from"efficient-easel/screen/lib/content/length-units";var BR=[{text:"Ticker item"},{text:"Ticker item"},{text:"Ticker item"},{text:"Ticker item"}],XTe={label:"Scrolling Bar",defaultProps:{items:[],tone:"scrim",borders:!0,size:ow,separator:tw,scrollDirection:pi}};var LR=()=>[{text:c("Spec label"),tone:"normal"},{text:c("Spec value"),tone:"muted"},{text:c("Spec label"),tone:"normal"},{text:c("Spec value"),tone:"muted"}],QTe={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 DR(e,o,t){return go(q,e,o,{...t,sectionPaddingTop:void 0,sectionPaddingBottom:void 0})}var nu={Manifesto:(e,o)=>({type:q,props:{...e(q),id:o(q),direction:"row",share:"equal",sectionHeightMode:"screen",name:"Brand Text",content:[go(q,e,o,{direction:"column",justify:"center",blockSpacing:"gap",name:"Text",sectionPaddingTop:100,sectionPaddingBottom:100,sectionPaddingLeft:RR,sectionPaddingRight:RR,content:[go("Text",e,o,ar()),go("Text",e,o,br()),go("Text",e,o),go("Stats",e,o)]}),DR(e,o,{direction:"column",name:"Picture",content:[]})]}}),Split:(e,o)=>({type:q,props:{...e(q),id:o(q),direction:"row",share:"equal",sectionHeightMode:"screen",sectionHeightValue:70,name:"Image & Text Split",content:[go(q,e,o,{direction:"column",justify:"center",blockSpacing:"gap",name:"Text",sectionPaddingTop:100,sectionPaddingBottom:100,sectionPaddingLeft:60,sectionPaddingRight:60,content:[go("Text",e,o,ar()),go("Text",e,o,br()),go("Text",e,o),go("ButtonBlock",e,o)]}),DR(e,o,{direction:"column",name:"Image",content:[go("ImageBlock",e,o)]})]}}),Subscribe:(e,o)=>({type:q,props:{...e(q),id:o(q),direction:"column",name:"Subscribe",content:[go("Text",e,o,br()),go("Text",e,o),go("Form",e,o)]}}),Ticker:(e,o)=>NR("Scrolling Bar",tc,xa,BR.map(t=>({text:t.text,style:rc,muted:!0})),e,o),SpecStrip:(e,o,t)=>NR("Spec Strip",t?.theme?{...Sl,sectionAccent:Bd(sr(t.theme))}:{...Sl,sectionBorder:{top:1}},ha,LR().map(r=>({text:r.text??"",style:bl,muted:r.tone==="muted"})),e,o)};function NR(e,o,t,r,a,n){return go(q,a,n,{...ma,...o,blockSpacing:"gap",padV2:!0,name:e,sectionPaddingTop:t.top,sectionPaddingBottom:t.bottom,sectionPaddingTopPhone:t.topPhone,sectionPaddingBottomPhone:t.bottomPhone,content:r.map(s=>go("Text",a,n,{text:s.text,...s.muted?{tone:"dim"}:{},_partStyles:{text:s.style}}))})}function MR(e){return z(nu,e)??null}import{isNodeList as Rg}from"efficient-easel/data";var k0e=Object.keys(mg),Dq={Logos:tF,DocMasthead:eB,DocTabs:fB,Timeline:EF,TimelineTrack:_F},Nq={PaymentBadges:rF,PaymentLogosBlock:aF,Integrations:lL};function su(e,o,t){let r={};for(let a of Object.keys(o(e.type)))r[a]=void 0;for(let[a,n]of Object.entries(e.props))r[a]=Rg(n)?n.map(s=>su(s,o,t)):n;return r.id=t(e.type),{type:e.type,props:r}}var HR=e=>({...e?.theme?{theme:e.theme}:{},...e?.site?{site:e.site}:{},press:!0});function hi(e,o,t=0,r=()=>({})){return(a,n,s)=>{let{nodes:l}=Ea({type:e,props:{...a(e),...r(),id:n(e)}},o,HR(s));return su(l[t],a,n)}}var Mq={Stats:Wq,Cards:Hq};function Hq(){let e=Hr("Cards");if(!e)return null;let o=hi("Cards",e,0,EA);return(t,r,a)=>{let n=o(t,r,a);return{...n,props:{...n.props,name:"Cards section"}}}}function Wq(){let e=Hr("StatsParagraph");return e?(o,t,r)=>{let{nodes:a}=Ea({type:"StatsParagraph",props:{...o("StatsParagraph"),...WA(),id:t("StatsParagraph")}},e,HR(r)),n=a[0],s=Rg(n.props.content)?n.props.content.filter(f=>f.props?.cardStyle===void 0):[],l=$R(LI($A(),"table")),i=s.map(WR),d=su({...n,props:{...n.props,content:[...i,l]}},o,t);return{...d,props:{...d.props,name:"Stats section"}}}:null}function WR(e){return e.props?.name==="Words"?{...e,props:{...e.props,widthFitPhone:"fill"}}:Rg(e.props?.content)?{...e,props:{...e.props,content:e.props.content.map(WR)}}:e}var $R=e=>Mt([e],(o,t)=>`${o}-seed-${t}`)[0];function $q(e,o){if(!B1(e,o))return null;let t=z(Mq,e);if(t)return t();let r=Hr(e);return r?hi(e,r,0,z(Dq,e)??z(wL,e)??z(Nq,e)):null}function zq(e){return(o,t,r)=>{let a=n=>{if(n.type==="Stats"){let l=su($R(LI([],"list")),o,t);return{...l,props:{...l.props,name:"Numbers"}}}let s=Xe(n,l=>ze(l,a));return s===n?n:{type:n.type,props:s.props}};return a(e(o,t,r))}}function ps(e,o=Oa){let t=MR(e);return t?zq(t):$q(e,o)}import{blockTypesIn as zR}from"efficient-easel/screen/lib/document/block-types-in";var UR=()=>({}),jR=new Map;function Uq(e){let o=jR.get(e);if(o)return o;let t=new Set,r=z(dt,e);if(r)for(let s of r.seeds(UR))for(let l of zR({type:r.childType,props:s}))t.add(l);let a=ps(e);if(a){let s=0;for(let l of zR(a(UR,i=>`${i}-${s+=1}`)))t.add(l)}t.delete(e);let n=[...t].sort();return jR.set(e,n),n}function Dg(e){if(!e||!e.sets&&!e.allow&&!e.deny?.length)return null;let o=Bg(e),t=e.allow?new Set(e.allow):null,r=new Set(e.deny??[]),a=new Set(Object.keys(e.host??{})),n=i=>{if(r.has(i))return!1;if(a.has(i))return!0;let d=mb(i);return!d||!o[d]?!1:t?t.has(i):!0},s=new Map,l=i=>{let d=s.get(i);if(d!==void 0)return d;s.set(i,!1);let f=n(i)&&Uq(i).every(l);return s.set(i,f),f};return{sets:o,offers:l}}var jq="block-offer";function Ng(e=GR()){return e.cache(jq,()=>Dg(un(e)))}function KR(e,o=GR()){let t=Ng(o);return t?t.offers(e):!0}var qR={name:"catalogueLabel",applies:e=>eo(ea,e),draw(e,o){e.label=z(ea,o)}};import{jsx as zg}from"react/jsx-runtime";import{parseBlockWidthFit as Yq,phoneKey as Et,tabletKey as ht}from"efficient-easel/draw";import{jsx as Gq}from"react/jsx-runtime";import{phoneKey as lu}from"efficient-easel/draw";var VR={name:"sectionGroupAllow",applies:e=>If.includes(e),panel(e,o,t,r){let a=e.fields?.sections;a&&(a.allow=[...r.sectionGroupAllow])}},Mg=new Set(Object.keys(Ct)),YR={name:"openSlotDisallow",applies:()=>!0,panel(e,o,t,r){let a=r.contentSectionKeys;if(e?.fields)for(let n of Object.values(e.fields)){let s=n;if(s.type!=="slot"||s.allow)continue;let l=o==="Flex"?a.filter(i=>!Mg.has(i)):a;s.disallow=Array.from(new Set([...s.disallow??[],...l]))}}};var ZR=Array.from(new Set([...hb.map(e=>e.type),...Mg]));function Hg(e,o){return ZR.includes(e)||o?.sitsInBox===!0}var Kq=Array.from(new Set([...ZR,...fd,"GalleryItem"])),qq={not:{context:"parentOffersPositions",is:!1}},Vq={not:{context:"parentTileSlot",is:!1}},XR=[px,lu("gridSpan"),lu("gridRowSpan")],JR={name:"cellWidth",applies:(e,o,t)=>(Kq.includes(e)||Hg(e,t))&&!!t&&typeof t.render=="function",panel(e,o,t){let r=t.cellWidthFields;e.fields={...e.fields,...r()};let a=Object.keys(r());e.fields=Do(e.fields??{},a.filter(n=>!XR.includes(n)),qq),e.fields=Do(e.fields??{},XR,Vq)},draw(e){let o=e.render;e.render=t=>{let r=VC(t.gridSpan),a=XC(t.gridRowSpan),n=JC(t[px]),s=ek(t[lu("gridSpan")]),l=ok(t[lu("gridRowSpan")]),i=o(t);if(r==null&&a==null&&n==null&&s==null&&l==null)return i;let d={};r!=null&&(d[YC]=String(r)),a!=null&&(d[ZC]=String(a)),s!=null&&(d[tk]=String(s)),l!=null&&(d[rk]=String(l));let f=n!=null?{[QC]:n}:void 0;return Gq(fe,{className:"sf-grid-cell",style:f,...d,children:i})}}};function QR(e,o){let t=e.props?.id,r=o.appState?.data?.content;return!Array.isArray(r)||typeof t!="string"?!0:!r.some(a=>a?.props?.id===t)}var Ii={not:{context:"heldByANode",is:!0}};function iu(e,o){return"parent"in o?o.parent!=null:!!Xt(o.appState,e.props?.id)}function Xt(e,o){let t=e?.data?.content;if(!Array.isArray(t)||typeof o!="string")return;let r=(a,n)=>{for(let s of a){if(s?.props?.id===o)return n;for(let l of tn(s??{})){let i=r(l,s);if(i!==void 0)return i}}};return r(t,null)}var Xq=new Set(["Text","Heading"]),Zq=new Set(["h1","h2","h3","h4","h5","h6"]);function eD(e,o){return e==="Heading"?!0:e!=="Text"?!1:typeof o.tag=="string"&&Zq.has(o.tag)?!0:Fr(o,"text").textStyle?.startsWith("heading-")===!0}var qr={not:{context:"blockOutsideBox",is:!0}},oD={all:[qr,{not:{context:"boxSharesWidth",is:!0}}]},tD={all:[qr,{not:{context:"boxSharesWidthPhone",is:!0}}]},rD={all:[qr,{not:{context:"boxSharesWidthTablet",is:!0}}]};function lD(e,o,t){return{any:[{field:ht(e),is:o},{all:[{field:ht(e),set:!1},t??{field:e,is:o}]}]}}function iD(e,o,t){return{any:[{field:Et(e),is:o},{all:[{field:Et(e),set:!1},t??{field:e,is:o}]}]}}var dD={any:[{field:"textFit",is:"shrink"},{all:[{field:"textFit",set:!1},{not:{context:"textWrapsByDefault",is:!0}}]}]},Jq=[[["_gBlockSize","minWidth",ht("minWidth"),Et("minWidth"),"maxWidth",ht("maxWidth"),Et("maxWidth")],qr],[["widthFit"],oD],[[ht("widthFit")],rD],[[Et("widthFit")],tD],[["width"],{all:[oD,{field:"widthFit",is:"fixed"}]}],[[ht("width")],{all:[rD,lD("widthFit","fixed")]}],[[Et("width")],{all:[tD,iD("widthFit","fixed")]}]],aD=lD("textFit","shrink",dD),nD=[[["_gText","textFit",ht("textFit"),Et("textFit")],qr],[["minFont"],{all:[qr,dD]}],[[ht("minFont")],{all:[qr,aD]}],[[Et("minFont")],{all:[qr,iD("textFit","shrink",aD)]}]],du=(e,o)=>Xt(o.appState,e.props?.id),fu=e=>!!e&&typeof e.type=="string"&&cd(e.type)!==null,Wg=e=>(e.type==="Flex"||e.type==="HeroGroup")&&Tn(e.type,e.props?.direction)==="row",$g=e=>{let o=Yq(e);return o!==void 0&&o!=="fit"},Qq={blockOutsideBox:(e,o)=>!fu(du(e,o)),boxSharesWidth:(e,o)=>{let t=du(e,o);return!fu(t)||!Wg(t)?!1:Um({...t.props,direction:"row"})!==""?!0:zm(t.props?.share)!==""&&!$g(e.props?.widthFit)},boxSharesWidthTablet:(e,o)=>{let t=du(e,o);if(!fu(t)||!Wg(t))return!1;if(nw(t.props?.[ht("columns")])!==""||Um({...t.props,direction:"row"})!=="")return!0;let r=aw(t.props?.[ht("share")])??t.props?.share;return zm(r)!==""&&!$g(e.props?.[ht("widthFit")]??e.props?.widthFit)},boxSharesWidthPhone:(e,o)=>{let t=du(e,o);if(!fu(t)||!Wg(t))return!1;let r=t.props?.phoneRow;return(Number(r)===2||Number(r)===3)&&!sw(r,t.props?.[Et("share")])&&!$g(e.props?.[Et("widthFit")]??e.props?.widthFit)}},eV=e=>/^_[gds][A-Z]/.test(e);function oV(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&&!eV(r[n][0]);)n++;return Object.fromEntries([...r.slice(0,n),...Object.entries(t),...r.slice(n)])}function sD(e,o,t){let r=Object.entries(e);return Object.fromEntries([...r.slice(0,o),...Object.entries(t),...r.slice(o)])}function tV(e,o,t){let r=Object.keys(o);if(r.includes("_dSize")){let{_gBlockSize:a,...n}=t;return sD(o,r.indexOf("_dSize")+1,n)}return rV.has(e)&&r.includes("_gSpacing")?sD(o,r.indexOf("_gSpacing"),t):{...o,...t}}var rV=new Set(["Text","Heading"]);function aV(e,o){let{_gText:t,...r}=o;return oV(e,"_gText",r)??{...e,...o}}function nV(e){let o=new WeakMap;return t=>{if(!t||!("textFit"in t))return t;let r=o.get(t);if(!r){r={...t};for(let a of["textFit",ht("textFit"),Et("textFit")])a in r&&(r[a]=e[a]);o.set(t,r)}return r}}var fD={name:"blockSize",applies:(e,o,t)=>Hg(e,t)&&!!t&&typeof t.render=="function",panel(e,o,t){let r=Xq.has(o),{text:a}=t.blockSizeFields(r?{tablet:!0,textFit:o==="Heading"?"shrink":"wrap"}:{}),{size:n}=t.blockSizeFields({tablet:!0}),s=tV(o,e.fields??{},tt(n,Jq));if(r){let l=tt(a,nD);if(s=aV(s,l),o==="Text"){let i=tt(t.blockSizeFields({tablet:!0,textFit:"shrink"}).text,nD),d=nV(i),f=e.resolveFields,m=(u,h)=>{let I=f?f(u,h):h.fields,S=P=>eD(o,u?.props??{})?d(P??h.fields):P;return I instanceof Promise?I.then(S):S(I)};e.resolveFields=m}}e.fields=s,Ht(e,{...Qq,textWrapsByDefault:l=>!eD(o,l.props??{})})},draw(e,o){sV(e,o)}};function sV(e,o){let t=e.render;e.render=r=>{let a=dp(r),n=uI(a),s=t(r),l=n&&uI(a,{atSectionLine:!0});return n===null?s:zg(lV,{size:n,sectionSize:l??n,atEdge:o===q,canvasAttrs:r.editor?.isEditing?V1(a):cD,inCell:q1(a),fillsPhone:j1(a),widens:Y1(a),children:s})}}var cD={};function lV({size:e,sectionSize:o,atEdge:t,canvasAttrs:r,inCell:a,fillsPhone:n,widens:s,children:l}){let i=af(),d=Er(t?"edge":"by-box"),f=d?e:o,m=f.className,u=i?.phoneCells===!0,h=n&&i?.phoneRowFits===!0,I=s?zg(gE,{children:l}):l;return zg(_r,{className:[m,u?a:"",h?U1:""].filter(Boolean).join(" "),...Object.keys(f.style).length?{style:f.style}:{},attrs:d&&r!==cD?{...f.attrs,...r}:f.attrs,children:I})}import{Fragment as yV,jsx as mu}from"react/jsx-runtime";import{jsx as To,Fragment as Kg}from"react/jsx-runtime";import{createContext as us,useContext as _t}from"react";var iV=new Set(["Flex","Grid"]);function Vr(e){return typeof e=="string"&&iV.has(e)}var Ha="contentWidth",Ug="full",jg="content";function yi(e){let o=e?.[Ha];return o===Ug?!1:o===jg?!0:void 0}function pD(e,o){return e&&!o}function cu(e){return e.loop==="scroll"&&e.direction!=="tabs"&&e.direction!=="accordion"&&!Xk(e)&&!dF(e.scrollDirection)}function gi(e,o){return Vr(e)&&cu(rl(o,!1))?hn({}):hn(o)}function pu(e,o){return typeof e!="string"||!Hd(e)||qs[e]==="rawMarkup"?gi(e,o).background??"full":gi(e,o).background??Wd(o).background}function uu(e){return e!=="full"}function uD(e,o,t){if(!Array.isArray(e)||typeof o!="string")return;let r=(a,n,s,l,i)=>{for(let d of a){let f=d?.props??{};if(f.id===o)return n;let m=Vr(d?.type),u=(l?gi(d?.type,f).content:null)==="content"?!0:s,h=m&&(n.inBox?yi(f)??u:u),I={insideGutter:n.insideGutter||h||m&&cu(rl(f,i)),inBox:n.inBox||m};for(let S of Nt({type:d?.type,props:f})){let P=f[S],T=r(P,I,u,!1,i||aa(d?.type,S));if(T!==void 0)return T}}};return r(e,{insideGutter:!1,inBox:!1},t,!0,!1)}var dV=" [--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))))]",fV="[--sf-edge-g:0px] [--sf-edge-al:var(--sf-edge-l)] [--sf-edge-ar:var(--sf-edge-r)]",cV="[--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)))]",mD="max-w-[100vw]",pV=`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))] ${mD}`;function xD(e,o=!1){let t={},r=e.pad??{},a=vk({left:r.left,right:r.right},{left:r.leftPhone,right:r.rightPhone},{left:r.leftTablet,right:r.rightTablet},{left:r.left,right:r.right},{desktop:r.unit,tablet:r.unitTablet,phone:r.unitPhone},0,e.site?"site":"box"),n=a.style;for(let[f,m]of[["l","paddingLeft"],["r","paddingRight"]]){let u=n[m];u!==void 0&&(t[`--sf-edge-${f}d`]=typeof u=="number"?`${u}px`:String(u));let h=n[`--sf-pad-${f}-tablet`],I=n[`--sf-pad-${f}-phone`];h!==void 0&&(t[`--sf-edge-${f}t`]=String(h)),I!==void 0&&(t[`--sf-edge-${f}p`]=String(I))}let s=kr(e.site?"site":"box"),l=a.classes.includes(s.className.split(" ")[0]),i=e.gutter?`${s.className} ${s.edge}${dV}`:`${fV}${l?` ${s.className}`:""}`,d=o?` ${vC}${e.gutter?` ${PC}`:""}`:"";return{className:`${i} ${cV}${d}`,style:t}}function SOe(e,o=!1){let{className:t,style:r}=xD(e,o);return{className:`${t} ${pV}`,...Object.keys(r).length?{style:r}:{}}}var uV="[--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 mV="--sf-edge-beyond";function hD(e){return`max(0px,calc((${e===null?Ks:`min(${Ks},${e})`} - ${No}) / 2))`}var xV=`${uV} 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))] ${mD}`;function bOe(e){let{className:o,style:t}=xD(e);return{className:`${o} ${xV}`,style:{...t,[mV]:e.beyond??"0px"}}}var Si=us(!1);function FOe(){return _t(Si)}function BOe({children:e}){return To(Si.Provider,{value:!0,children:e})}var Gg=us(!1);function qg({children:e}){return To(Gg.Provider,{value:!0,children:e})}var ID=us(null);function Vg({ground:e,children:o}){return To(ID.Provider,{value:e,children:o})}var Yg=us(!1);function hV(){return _t(Yg)}function gD({atTop:e,nested:o}){return To(Kg,{children:hV()?o:e})}var bi=us(void 0);function yD({children:e}){return To(bi.Provider,{value:null,children:e})}function Xg(){return _t(bi)===void 0&&!_t(Yg)&&!_t(Si)}function ms({own:e,followed:o}){return To(Kg,{children:Xg()?e():o()})}var SD=us(null);function bD({value:e,children:o}){return To(SD.Provider,{value:e,children:o})}function wD({draw:e}){return To(Kg,{children:e(_t(SD))})}function LOe(){return _t(bi)??null}function CD({contained:e,framedClass:o,fillClass:t,columnClass:r,style:a,tabLabel:n,pad:s,border:l,outerAttrs:i,box:d=!1,edge:f=!1,outerStyle:m,outerClass:u,bleed:h=!1,siteSide:I=!1,part:S,children:P}){let T=_t(Si),B=Pt(),k=B?` ${kr(I?"site":"box").onceFrame}`:"",g=_t(Gg),b=pD(e,T),E=b&&!g,A=nt(),N=!!(l&&E),w=N?u:ko(u??"",A.className)||void 0,_=N||!A.className?i:{...i,...A.attrs},y=s?na(s,E):null,v=y&&B?{root:y.root?{...y.root,className:rt(y.root.className,!0)}:null,outer:y.outer?{...y.outer,className:rt(y.outer.className,!0)}:null}:y,O=v?.root??null,C=l&&!E?l:null,L=d&&!h?B?`${sx} ${CC(I?"site":"box")}`:sx:null,M=[E?`${o}${k}`:t,E?L:null,O?.className,C?Sk:null].filter(Boolean).join(" "),K=IV(h&&E,O||C?{...a,...O?.style,...C}:a),W=_t(bi),se=_t(ID),le=d&&f&&W===void 0?{gutter:b,...s?{pad:s.values}:{},beyond:b&&g?hD(se):"0px",...I&&b?{site:!0}:{}}:null,ee=d?To(Yg.Provider,{value:!0,children:To(bi.Provider,{value:le,children:P})}):P,Ie=b?To(Si.Provider,{value:!0,children:ee}):ee,ae=v?.outer??null,me=_&&Object.keys(_).length>0?_:null,ge=To("div",{...ae?null:me,className:!ae&&w?M?`${M} ${w}`:w:M,style:ae||!m?K:{...K,...m},"data-tab-label":n,...ae?null:S,children:g?To(Gg.Provider,{value:!1,children:b&&!h?To("div",{className:L?`${r}${k} ${L}`:`${r}${k}`,children:Ie}):Ie}):Ie}),Ge=ae?To("div",{...me,className:w?`${ae.className} ${w}`:ae.className,style:m?{...ae.style,...m}:ae.style,...S,children:ge}):ge;return A.scope(l&&E?To("div",{className:ko(Xd,A.className),style:{display:"contents",...l},...A.attrs,children:Ge}):Ge)}function IV(e,o){return e?{...o,paddingLeft:0,paddingRight:0}:o}import{jsx as gV}from"react/jsx-runtime";function kD({children:e}){return gV(fe,{className:cF,children:e})}function SV({side:e,children:o}){return Xg()?mu(kD,{children:mu(fe,{className:pF(e),children:o})}):mu(yV,{children:o})}var vD={name:"boxJoin",applies:(e,o,t)=>e===q&&!!t&&typeof t.render=="function",draw(e){let o=e.render;e.render=t=>{let r=Rp(t.join);return r?mu(SV,{side:r,children:o(t)}):o(t)}}};var PD=(e,o)=>e.fields?.[o]?.type==="slot",bV=(e,o)=>PD(o,Te)||Ed(e).some(t=>PD(o,t)),TD={name:"cardTemplateOnInsert",applies:(e,o,t)=>bV(e,t),panel(e,o){let t=e.resolveData;e.resolveData=(r,a)=>{let n=r.props??{},s=a?.trigger,l=s==="insert"?vd(o,n):s==="copy"?kd(o,n):n,i=l===n?r:{...r,props:l};return t?t(i,a):i}}};import{jsx as Ci}from"react/jsx-runtime";import{Fragment as Wa,jsx as $e,jsxs as Zg}from"react/jsx-runtime";import{createContext as Jg,useContext as Yr,useId as TV}from"react";import{REPEAT_ATTRIBUTE as OV,REPEAT_INDEX_ATTRIBUTE as EV}from"efficient-easel/draw";import{jsx as QOe}from"react/jsx-runtime";import{createContext as kV,useContext as AD,useMemo as vV}from"react";var OD="title";function ED(e){return`${e}Alt`}function wV(e){let o=e.find(t=>typeof t?.url=="string");return{url:o?.url??"",alt:typeof o?.alt=="string"?o.alt:""}}function _D(e,o){let t={[OD]: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}=wV(n);t[r]=s,t[ED(r)]=l}}return t}function CV(e,o){return typeof o!="string"?o.flatMap(t=>CV(e,t)):e===kf||!OP(e)?[]:o==="image"?Ex(e,["images"]).map(t=>({key:t.key,label:t.label,kind:"image",alt:ED(t.key)})):o!=="text"?[]:[{key:OD,label:c("Title")},...Ex(e,["text","date"]).map(t=>({key:t.key,label:t.label}))]}var FD=kV(null);function PV(){return AD(FD)?.record??null}function rEe(e){let o=PV();return o!==null&&o.type===e?o:null}function BD(){let e=AD(FD);return vV(()=>e&&e.record.type!==kf?_D(e.record,e.dateWords):null,[e])}function hEe({props:e,editing:o,children:t}){let r=Yr(wi);return!o&&Qm(e,r?.row)?null:$e(Wa,{children:t})}var hu=Jg(null);function IEe({field:e,children:o}){let t=Yr(hu);return $e(Wa,{children:o(t&&t.field===e?t.id:void 0)})}function _V(e,o){return e?.find(t=>!!o[t.field]?.trim()&&!t.gates.some(r=>Qm({[on]:r},o)))?.field??""}var wi=Jg(null),xu=Jg(null),AV={label:"text-[length:var(--size-label,12px)]"},FV=`flex min-h-6 items-center border border-dashed border-line px-2 py-1 ${AV.label} text-fg-dim`;function gEe({name:e,label:o,editing:t}){let r=Yr(xu)?.(e),a=tf()!=="";return r!=null&&r!==!1?a?$e(fe,{className:"contents",children:r}):$e(Wa,{children:r}):t?$e(fe,{className:FV,children:c("Shown by the section: {name}",{name:o?.trim()||e})}):null}function yEe(){return Yr(wi)}function Qg({type:e,props:o,children:t}){let r=Yr(wi),a=BD(),n=r?.row??a;return $e(Wa,{children:t(Aw(e,o,n,r?.ownerType,r?.fields,r?.slot),r,n)})}function BV({attrs:e,selected:o,hover:t,action:r,titleField:a,children:n}){let s=TV(),{press:l,disabled:i}=r,d=r.label?.trim(),f=!d&&a?{id:`${s}-title`,field:a}:null;return Zg("div",{...e,id:s,className:t&&!i?`${wh} ${EE}`:wh,children:[$e("button",{type:"button",[FE]:"",className:i?RE:LE,"aria-pressed":o,...d?{"aria-label":d}:{"aria-labelledby":f?.id??s},...i?{"aria-disabled":!0,tabIndex:-1}:null,onClick:i?void 0:l}),$e(hu.Provider,{value:f,children:n})]})}function SEe({ownerId:e,ownerType:o,slot:t=Te,Template:r,rows:a,items:n,fields:s,states:l,stateLine:i,actions:d,pressTitles:f,previewHover:m,fallback:u,copyAttrs:h,wrapCopy:I,rowKey:S,hostParts:P,children:T}){let B=Yr(wi),k=Yr(hu),g=Yr(xu);if(!r||(r.blockCount??0)<=0)return $e(Wa,{children:u});let b=B!==null,E=vw(o),A=m??B?.previewHover,N=r.blockCount===1?$e(Gk,{children:$e(r,{className:Dk})}):$e(r,{}),w=new Set,_=(v,O)=>{if(!S)return O;let C=S(v,O);for(;w.has(C);)C=`${C}#${O}`;return w.add(C),C},y=a.map((v,O)=>{let C=l?.[O],L={row:v,index:O,ownerType:o,slot:t,item:n?.[O],nested:b,...s?{fields:s}:null,...C?{state:C}:null,...E?{linesBetween:E}:null,...A?{previewHover:A}:null},M=qh(C)?Zg(Wa,{children:[N,i==="under"?$e("span",{"aria-hidden":"true",className:vE}):Kh(C)?Zg("span",{"aria-hidden":"true",className:PE,children:[$e("span",{className:TE}),$e("span",{className:OE})]}):$e("span",{"aria-hidden":"true",className:kE})]}):N,K={[OV]:`${e}:${t}`,[EV]:O,...typeof h=="function"?h(L):h},W=d?.[O],se=_E(C,i),le=W?$e(BV,{attrs:{...K,...se},selected:C?.selected===!0,hover:i!=="under",action:W,titleField:_V(f,v),children:M}):k?$e("div",{...K,...se,children:$e(hu.Provider,{value:null,children:M})}):$e("div",{...K,...se,children:M}),ee=I?I(le,L):le;return $e(wi.Provider,{value:L,children:P?$e(xu.Provider,{value:Ie=>P(L,Ie),children:ee}):g?$e(xu.Provider,{value:null,children:ee}):ee},_(L,O))});return $e(Wa,{children:T(y)})}var LD={name:"clickableParts",applies:(e,o,t)=>typeof t?.render=="function"&&e!==io&&e!==pn,draw(e,o,t){let r=e,a=()=>r.textParts??r.fields,n=r.partSizeCaps,s=r.render,l=t.inspector?.PartAnchors,i=(d,f)=>Iv(a(),f,m=>Ew(o,d,m));r.render=d=>{let f=_v(d),m=zO(d);return d.editor?.isEditing&&l?Ci(Qg,{type:o,props:d,children:u=>Ci(l,{needles:i(d,u),styles:f,motions:m,type:o,sizeCaps:n,children:Ci(JL,{value:n,children:s(d)})})}):!Object.keys(f).length&&!Object.keys(m).length?s(d):Ci(Qg,{type:o,props:d,children:u=>Ci(YO,{needles:i(d,u),styles:f,motions:m,type:o,atEdge:o===q,sizeCaps:n,children:s(d)})})}}};import{jsx as RD}from"react/jsx-runtime";var DD={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=yk(t.sectionCorners,t.sectionCornerSides,t.sectionCornersUnit),a=o(t);return r?RD(fe,{className:"sf-section-corners",style:{display:"contents",...r},children:a}):a}}},ey=["CollectionCard"],ND={name:"cardCorners",applies:(e,o,t)=>ey.includes(e)&&!!t&&typeof t.render=="function",panel(e,o,t){e.fields={...e.fields,...t.cardShapeFields()}},draw(e){let o=e.render;e.render=t=>{let r=GP(t.cardCorners,t.cardCornerSides,t.cardCornersUnit),a=o(t);return r?RD(fe,{className:"sf-card-corners",style:{display:"contents",...r},children:a}):a}}};var MD={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 HD={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 WD,jsxs as LV}from"react/jsx-runtime";var RV="Flex",$D=(e,o)=>e[o]!==void 0&&e[o]!==!1&&!e.editor?.isEditing,zD={name:"headCore",applies:(e,o,t)=>typeof t?.render=="function",draw(e){let o=e.render;e.render=t=>$D(t,Wl)?WD(fe,{className:Hc,children:t[Wl]==="empty"?null:o(t)}):o(t)}},UD={name:"headBox",applies:(e,o,t)=>e===RV&&typeof t?.render=="function",draw(e){let o=e.render;e.render=t=>$D(t,Hl)?LV(fe,{className:Wc,children:[WD($c,{}),o(t)]}):o(t)}};import{createElement as DV}from"react";var jD={name:"hiddenNodes",applies:(e,o,t)=>typeof t?.render=="function",draw(e,o,t){let r=o===q?"edge":t.isSection(o)?"section":"by-box",a=e.render;e.render=n=>{if(lr(n))return null;let s=ll(n),l=Uk(s,Jv(n),{sectionClassName:ll(n,{atSectionLine:!0}),line:r});return DV(Wk.Provider,{value:l},a(n))}}};import{jsx as WV}from"react/jsx-runtime";import{createContext as KD,createElement as GD,useContext as NV}from"react";var qD=KD(null),MV=KD(!1),YEe=qD.Provider;function HV(e,o,t){return e===void 0||e===""||o===null||o.length===0||!t.includes(e)?!0:o.includes(e)}function VD({name:e,editing:o,children:t}){let r=NV(qD);return o||HV(e,r?.selected??null,r?.known??[])?t:GD("div",{hidden:!0,style:{display:"none"}},GD(MV.Provider,{value:!0},t))}var $V="Flex",YD={name:"showFor",applies:(e,o,t)=>e===$V&&typeof t?.render=="function",draw(e){let o=e.render;e.render=t=>{let r=QE(t[Kn])?.name;if(r===void 0)return o(t);let a=!!t.editor?.isEditing;return WV(VD,{name:r,editing:a,children:o(t)})}}};var XD=Pf.mediaFields,zV=e=>NP(e)?e.src:e;function UV(e,o){let t=o;for(let r of z(XD,e)??[])t=MP(t,r,zV);return t}var ZD={name:"mediaValues",applies:(e,o,t)=>typeof t?.render=="function"&&(z(XD,e)?.length??0)>0,draw(e,o){let t=e.render;e.render=r=>t(UV(o,r))}};import{jsx as ki,Fragment as JD,jsxs as QD}from"react/jsx-runtime";var jV="!grow-0 !shrink-0 !basis-0",GV=["[.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(" "),KV="flex flex-col w-full min-w-0 [&>*]:grow";function eN({anchor:e}){let o=fa(e),t=Er(),r=tf();return o?ki("span",{id:o,className:ko(t?`sf-section-anchor ${jV} ${GV}`:"sf-section-anchor",r),"aria-hidden":"true"}):null}function qV({anchor:e,copiesInBox:o,children:t}){let r=af()?.columnsRow===!0,a=jk(),n=fa(e)!=="";return o?ki(JD,{children:t}):r&&!a&&n?QD(fe,{className:KV,children:[ki(eN,{anchor:e}),t]}):QD(JD,{children:[ki(eN,{anchor:e}),t]})}var oN={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=>ki(qV,{anchor:r.anchor,copiesInBox:Jo(o,r),children:t(r)})}};import{jsx as VV}from"react/jsx-runtime";var tN=Object.fromEntries(Gb.map(e=>[e,"picture"])),YV={[q]:"box",Ticker:"marquee",...Object.fromEntries(xd.map(e=>[e,"cards"])),...tN},rN=(e,o)=>!Gd.has(e)&&!!o&&typeof o.render=="function";function aN(e,o,t,r){e.fields={...e.fields,...t.animationTabFields(o,r)}}function nN(e,o){let t=e,r=t.render;t.render=a=>{let n=Sn(a);return!n||Jo(o,a)?r(a):VV(Pc,{views:n,editing:!!a.editor?.isEditing,takesViewHide:!0,atEdge:o===q,children:r(a)})}}var sN={name:"sectionAnimation",applies:(e,o,t)=>o.isSection(e)&&rN(e,t),panel:(e,o,t)=>aN(e,z(YV,o)??"section",t,o),draw:(e,o)=>nN(e,o)},lN={name:"blockEntrance",applies:(e,o,t)=>!o.isSection(e)&&rN(e,t),panel:(e,o,t)=>aN(e,z(tN,o)??"block",t,o),draw:(e,o)=>nN(e,o)};import{jsx as XV}from"react/jsx-runtime";var iN=(e,o)=>!Gd.has(e)&&!!o&&typeof o.render=="function";function ZV(e){let o=Oh.filter(t=>t.block===e);return o.length===1?o[0].focus:void 0}function dN(e,o){let t=e,r=t.render,a=ZV(o),n=e.drawsPictures===!0;t.render=s=>{let l=zn(s);return!l||Jo(o,s)?r(s):XV(Vc,{views:l,...a?{origins:WO(s,a)}:{},takesViewHide:!0,atEdge:o===q,zoomInside:n?"picture":"layer",children:r(s)})}}var fN={name:"sectionScroll",applies:(e,o,t)=>o.isSection(e)&&iN(e,t),draw:(e,o)=>dN(e,o)},cN={name:"blockScroll",applies:(e,o,t)=>!o.isSection(e)&&iN(e,t),draw:(e,o)=>dN(e,o)};import{jsx as JV}from"react/jsx-runtime";import{createElement as QV}from"react";var oy=["sectionHeightMode","sectionHeightModeTablet","sectionHeightModePhone"];function e9(e,o){let t=e.props??{};return oy.some(r=>t[r]==="fill")?!0:("parent"in o?o.parent:Xt(o.appState,t.id))?.type===q}var ty={name:"sectionHeight",applies:(e,o,t)=>o.isSection(e)&&!Rk.has(e)&&!!t&&typeof t.render=="function",panel(e,o,t){let r=t.heightFields;e.fields={...e.fields,...r()};let a=r({fill:!0}),n=new WeakMap,s=i=>{if(!i||!oy.some(f=>f in i))return i;let d=n.get(i);if(!d){d={...i};for(let f of oy)f in d&&(d[f]=a[f]);n.set(i,d)}return d},l=e.resolveFields;e.resolveFields=(i,d)=>{let f=l?l(i,d):d.fields,m=u=>e9(i??{},d)?s(u??d.fields):u;return f instanceof Promise?f.then(m):m(f)}},draw(e,o){let t=e.render;e.render=r=>{if(Jo(o,r))return t(r);let a=Hk(r);return a?JV(_r,{className:a.className,style:a.style,...o===q?{attrs:Qb}:null,children:t(r)}):t(r)}}},pN={name:"sectionHeightFillRoot",applies:ty.applies,draw(e,o){let t=e.render;e.render=r=>{let a=Jo(o,r)?null:zk(Mk(r),Nk(r).join(" "));return QV($k.Provider,{value:a},t(r))}}};import{jsx as Iu}from"react/jsx-runtime";import{PIN_ATTR as uN,PIN_FRAME_ATTR as o9}from"efficient-shell/format";var xN=IN("sectionSticky",(e,o,t)=>o.isSection(e)&&!hk.has(e)&&!!t&&typeof t.render=="function",!0),hN=IN("cardSticky",(e,o,t)=>ey.includes(e)&&!!t&&typeof t.render=="function",!1);function IN(e,o,t){return{name:e,applies:o,panel(r,a,n){let s=mx.has(a);r.fields=r9(r.fields??{},tt(n.stickFields({intro:s,screens:t,above:t}),a9(s))),t&&Ht(r,{heldByANode:iu})},draw(r,a){let n=r.render,s=mx.has(a);r.render=l=>{let i=xx(l,{atScreenTop:s,above:t});if(!i)return n(l);let d=m=>{let u=Iu(sf,{children:n(l)});return Iu(fe,{...m.attrs,style:m.style,children:m.attrs[uN]===""?Iu("div",{[o9]:"",children:u}):u})},f=t?xx(l,{atScreenTop:s,track:t,above:!0}):i;return!f||f.attrs[uN]!==""?d(i):Iu(ms,{own:()=>d(f),followed:()=>d(i)})}}}}var mN=[bt,ls],t9="_gStick";function r9(e,o){let t=Object.keys(e),r=e[$n];if(!r){let T=t.findIndex(B=>mN.includes(B));return T<0?{...e,...o}:Object.fromEntries([...t.slice(0,T).map(B=>[B,e[B]]),...Object.entries(o),...t.slice(T).map(B=>[B,e[B]])])}let{[t9]:a,...n}=o,s=T=>T.startsWith(bn),l=Object.entries(n).filter(([T])=>!s(T)),i=Object.entries(n).filter(([T])=>s(T)),d=[r.dot,a?.dot].filter(T=>!!T),f=t.indexOf($n),m=t.findIndex((T,B)=>B>f&&mN.includes(T)),u=m<0?t.length:m,h=t.indexOf(Tc),I=h>f&&h<u?h:u,S=T=>[T,T===$n?{...r,dot:{any:d}}:e[T]],P=[...t.slice(0,I).map(S),...l,...t.slice(I,u).map(S),...i,...t.slice(u).map(S)];return Object.fromEntries(P)}function a9(e){let o=i=>({field:i,in:[!0,!1]}),t=i=>e&&i==="stickTop"?{any:[{field:i,is:!0},Ik]}:{field:i,is:!0},r=i=>({field:i,is:!0}),a=i=>({all:[i,Ii,{not:{field:Qs,is:!0}}]}),[n,s,l]=pk;return[[["stickTopDistance"],t("stickTop")],[["stickTopDistanceTablet"],nr(["stickTopTablet","stickTop"],o,t)],[["stickTopDistancePhone"],nr(["stickTopPhone","stickTopTablet","stickTop"],o,t)],[[n],a(r("stickTop"))],[[s],a(nr(["stickTopTablet","stickTop"],o,r))],[[l],a(nr(["stickTopPhone","stickTopTablet","stickTop"],o,r))],[[Vd],Yd],[[Qs],Yd],[[mk],a(Yd)]]}import{jsx as n9}from"react/jsx-runtime";var gN={name:"sectionBorder",applies:(e,o,t)=>o.isSection(e)&&!!t&&typeof t.render=="function",draw(e,o){if(bc.has(o))return;let t=e.render;e.render=r=>{let a=Ck(r.sectionBorder,r.sectionBorderPhone,r.sectionBorderTablet,wk(r)),n=t(r);return a?n9(fe,{className:Xd,style:{display:"contents",...a},children:n}):n}}};import{jsx as ry}from"react/jsx-runtime";var yN={name:"sectionTheme",applies:(e,o,t)=>o.isSection(e)&&!fC.has(e)&&!!t&&typeof t.render=="function",panel(e,o,t){let{sectionThemeFields:r,SECTION_THEME_FOLLOW_LABEL:a}=t,n=ax.has(o);e.fields={...e.fields,...n?r(Rd,a):r()}},draw(e,o){let t=ax.has(o),r=e.render;e.render=a=>{let n=pC(t?{...a,sectionAccent:Rd(a.sectionAccent)}:a),s=r(a);if(!n)return s;let l=d=>ry(_r,{className:n.className,style:d,children:s}),i=n.style;return Jo(o,a)?ry("div",{className:n.className,style:{...i,display:"contents"},children:s}):pu(o,a)!=="content"?l(i):ry(ms,{own:()=>l({...i,...Gs(No)}),followed:()=>l(i)})}}},SN={name:"slideTheme",applies:e=>e==="HeroSlide",panel(e,o,t){let{sectionThemeFields:r,BLOCK_THEME_FOLLOW_LABEL:a}=t;e?.fields&&(e.fields={...e.fields,...r(Rd,a)})}};import{jsx as qe}from"react/jsx-runtime";var bN=null;function ay(e){bN=e}function wN(){return bN}import{jsx as s9}from"react/jsx-runtime";var l9="mx-auto w-full max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)]",CN=kr("box").frame,vi=`${l9} ${CN}`,i9=kr("site").frame,d9=kr("none").frame;function u1e(e){let o=e===!0?"site":e===!1?"box":e;return o==="none"?d9:o==="site"?i9:CN}var f9="mx-auto w-full max-w-[1280px] px-[60px]",c9="max-[960px]:px-6",m1e=`${f9} ${c9}`;function x1e({contained:e,className:o="",style:t,pad:r,fillWidth:a="w-full",part:n,children:s}){return s9(CD,{contained:e,framedClass:`${vi} ${o}`,fillClass:`${a} ${o}`,columnClass:vi,style:t,pad:r,part:n,children:s})}var xs="--sf-sw-site",p9="--sf-sw-content",u9="--sf-bg-cap",m9="contents [--sf-site-width:var(--sf-sw-content)] max-view-wide:[--sf-site-width:var(--sf-sw-site)]",ny=({own:e,content:o,siteContent:t})=>e===!0&&o==="full"&&t!=="full",vN="contents view-wide:[--sf-site-width:100vw]",sy=({held:e},o,t)=>e?t:qe(fe,{className:o,children:t}),x9=`contents view-wide:[--sf-site-width:100vw] ${OB} view-wide:[--sf-site-gutter:var(--intro-edge)]`,ly=(e,o,t)=>o==="content"?`min(${mn(e,t)},var(${xs}))`:mn(e,t);function Pi({content:e,contentMax:o,contentMaxUnit:t},r){return e==="full"?r!=="content"?Ks:null:o===null?null:ly(o,r,t)}function Ti(e,o){return o===null?e:qe(fe,{className:"contents",style:{[xs]:No},children:qe(fe,{className:m9,style:{[p9]:o},children:e})})}var h9="--sf-content-cap",I9="contents max-view-wide:[--sf-content-cap:none]";function g9({content:e,contentMax:o,contentMaxUnit:t},r){return e==="full"?null:o!==null?ly(o,r,t):r==="content"?null:`var(${xs})`}function y9(e,o){return o===null?e:qe(fe,{className:"contents",style:{[xs]:No},children:qe(fe,{className:I9,style:{[h9]:o},children:e})})}var PN=`var(${xs},${No})`,Xr=(e,o,t="")=>e==="content"?qe(fe,{className:t||void 0,style:Gs(No),children:qe(Vg,{ground:PN,children:o})}):o;function TN(e,o,t,r,a){if(ny(t))return Xr(r,sy(t,vN,qe(qg,{children:e({...o,contained:!0})})),a);if(t.content==="full")return Xr(r,e({...o,contained:!1}),a);let n=Pi(t,r);return r==="content"&&n===null&&!t.own?e({...o,contained:!0}):Xr(r,Ti(qe(qg,{children:e({...o,contained:!0})}),n),a)}function S9(e,o,t,r,a){if(t==="hero"){let l=Ti(e(o),Pi(r,r.band));return r.band==="full"?qe(fe,{style:{[LC]:"none",[RC]:"initial",[DC]:"initial"},children:l}):r.band==="content"?qe(fe,{style:Md(!0),children:l}):l}let n=r.band??"full",s=Tr(o,{atSectionLine:!a});if(t==="rawMarkup"){if(r.content==="full")return Xr(n,e(o),s);let l=r.contentMax===null?No:ly(r.contentMax,n,r.contentMaxUnit);return qe(fe,{className:"contents",style:{[xs]:No},children:Xr(n,qe(fe,{className:s||void 0,style:Gs(l),children:e(o)}),s)})}if(t==="scrollOver"){let l=r.content==="full",i=ny(r)?sy(r,x9,e({...o,fullWidth:!1})):Ti(e({...o,fullWidth:l}),l?null:Pi(r,n));return n==="content"?qe(fe,{className:"contents",style:{[u9]:No},children:i}):i}switch(t){case"both":return Xr(n,y9(e(o),g9(r,n)),s);case"contained":return TN(e,o,r,n,s);case"contentColumn":case"contentFull":case"productGrid":{let l=ny(r),i=r.content==="full"&&!l?"full":"page",d=l?sy(r,vN,e({...o,widthMode:i})):Ti(e({...o,widthMode:i}),r.content==="full"?null:Pi(r,n));return t==="productGrid"&&!r.own?n==="content"?qe(ec,{className:s?`${vi} ${s}`:vi,children:f=>qe(fe,{className:f,children:d})}):d:Xr(n,d,s)}default:return Xr(n,Ti(e(o),Pi(r,n)),s)}}function kN(e,o,t,r,a){let n=a===q?"edge":"by-box",s=l=>S9(e,o,t,r,l);return n==="edge"?s(!0):Tr(o)===Tr(o,{atSectionLine:!0})?s(!1):qe(rf,{line:n,draw:s})}function b9(e,o){let t=z(qs,o);if(!t)return;let r=e.render;e.render=a=>{let n=Wd(a),s={band:n.background,content:n.content??"content",contentMax:null},l=()=>t==="rawMarkup"?r(a):qe(wD,{draw:I=>I?.background==="content"?qe(Vg,{ground:PN,children:i(I)}):i(I)}),i=I=>{let S=I?{...s,band:I.background==="content"?s.band:I.background??s.band,content:I.content??s.content,own:I.background==="full"||I.content!==null,held:!0,siteContent:s.content}:s,P=kN(r,a,t,S,o);if(!Vr(o))return P;let T=yi(a),B=T===void 0?S.content:T?"content":"full";return B===S.content?P:qe(gD,{atTop:P,nested:TN(r,a,{...S,content:B,own:!1},S.band??"full",Tr(a))})},d=gi(o,a);if(!WC(d))return l();let f=t==="rawMarkup",m=pu(o,a),u=d.content??(f?"full":s.content),h={band:m,content:m==="content"?"content":u,contentMax:d.contentMax,contentMaxUnit:d.contentMaxUnit,own:!f,siteContent:s.content};return qe(ms,{own:()=>qe(bD,{value:{background:h.band,content:h.content},children:kN(r,a,t,h,o)}),followed:l})}}var w9={all:[Ii,{not:{context:"runsEdgeToEdge",is:!0}}]},ON={name:"sectionWidth",applies:(e,o,t)=>Hd(e)&&!!t&&typeof t.render=="function",panel(e,o,t){let r=t.sectionOwnWidthFields({drawsFullOnItsOwn:z(qs,o)==="rawMarkup"}),a=Vr(o)?t.boxGutterFields():{},n={...e.fields,...a,...r},s=Vr(o)?AN(o,e,n,[Ha]):n;Ht(e,{heldByANode:iu}),Vr(o)&&Ht(e,{runsEdgeToEdge:(l,i)=>cu(rl(l.props??{},Bw(i.appState,l.props?.id)?.inCopy!==!1))}),e.fields=Do(s,[Ao.background,Ao.content],Vr(o)?w9:Ii)},draw(e,o){b9(e,o)}};function C9(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 k9=new Set(["Heading","Text","ImageBlock","ButtonBlock"]),EN={name:"containedWidth",applies:(e,o,t)=>k9.has(e)&&!!t&&typeof t.render=="function",panel(e,o,t){let r=t.widthField;e.fields=AN(o,e,{...e.fields,...r("page")});let a=e.resolveFields;e.resolveFields=(n,s)=>{let l=a?a(n,s):s.fields,i=lx(n?.props??{},"page"),d=f=>C9(f,i);return l&&typeof l.then=="function"?l.then(d):d(l)}},draw(e){let o=e.render;e.render=t=>{let{mode:r}=lx(t,"page");return o({...t,contained:r!=="full"})}}},v9={not:{context:"inHeroGroupRow",is:!0}},_N={name:"buttonAlignInRow",applies:e=>e==="ButtonBlock",panel(e){let o=e;o.fields=Do(o.fields??{},["align"],v9),Ht(o,{inHeroGroupRow:(t,r)=>{let a=Xt(r.appState,t.props?.id);return!!a&&a.type==="HeroGroup"&&Tn("HeroGroup",a.props?.direction)==="row"}})}};function P9(e){return Object.values(e).some(o=>!!o&&typeof o=="object"&&o.type==="slot")}var T9={any:[]},O9={all:[{not:{context:"outsideBox",is:!0}},{not:{context:"insideSiteGutter",is:!0}}]},E9={not:{context:"widthCappedByParent",is:!0}};function AN(e,o,t,r=["widthMode"]){if(e==="ButtonBlock")return Do(t,["_gWidth",...r],T9);if(P9(t)){let a=(n,s)=>uD(s.appState?.data?.content,n.props?.id,uu(wN()));return Ht(o,{outsideBox:(n,s)=>a(n,s)?.inBox!==!0,insideSiteGutter:(n,s)=>a(n,s)?.insideGutter}),Do(t,r,O9)}return Ht(o,{widthCappedByParent:(a,n)=>"parent"in n?xw(n.parent):QR({props:a.props??{}},n)}),Do(t,r,E9)}var _9=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"]),FN={name:"sectionGroups",applies:(e,o)=>o.isSection(e)&&(_9.has(e)||o.isHostBlock(e)),panel(e,o,t){let r=t.assignSectionGroups;e?.fields&&(e.fields=r(e.fields,o))}},A9=new Set(["HeroSlide","HeroGroup"]),BN={name:"blockGroups",applies:(e,o,t)=>A9.has(e)||!o.isSection(e)&&Lp in(t?.fields??{}),panel(e,o,t){let r=t.assignSectionGroups;e?.fields&&(e.fields=r(e.fields,o))}};import{jsx as iy}from"react/jsx-runtime";var F9=new Set(["Flex","Grid"]),LN=e=>Object.entries(e.fields??{}).filter(([,o])=>o?.type==="slot").map(([o])=>o),B9=(e,o)=>e.fields?.[o]?.ownPictures===!0,L9=["blockCount","blockIds"],R9=new WeakMap,D9=new WeakMap;function N9(e,o){let t=o?D9:R9,r=t.get(e);if(r)return r;let a=e,n=s=>iy(yD,{children:iy(sf,{ownPictures:o,children:iy(a,{...s})})});Object.assign(n,e);for(let s of L9)Object.defineProperty(n,s,{get:()=>e[s],configurable:!0,enumerable:!0});return t.set(e,n),n}var RN={name:"slotsStartAfresh",applies:(e,o,t)=>!F9.has(e)&&typeof t?.render=="function"&&LN(t).length>0,draw(e){let o=LN(e),t=e.render;e.render=r=>{let a={...r};for(let n of o){let s=r[n];typeof s=="function"&&(a[n]=N9(s,B9(e,n)))}return t(a)}}};var M9=new Set(["Form","Stats","Logos"]);function DN(){return[...M9]}function dy(e,o,t=[]){let r=new Set(e),a=ub.filter(d=>r.has(d)),n=a.filter(d=>d!=="Header"&&d!=="Footer"&&!If.includes(d)),s=new Set([...o,...fd,...DN()]),l=a.filter(d=>!s.has(d)),i=new Set([...a,...t]);return{isSection:d=>i.has(d)&&!Td(d),isHostBlock:()=>!1,sectionGroupAllow:n,contentSectionKeys:l}}var H9=[RN,ZD,zD,VR,YR,hO,DD,gN,ND,yO,lN,cN,JR,ON,EN,_N,ty,Y0,oN,yN,sN,fN,xN,hN,vD,SN,fD,FN,BN,HD,MD,LD,UD,YD,pN,jD,qR,TD];function NN(e,o,t){let r=o;for(let a of H9)a.applies(e,t,r)&&(t.inspector&&a.panel?.(r,e,t.inspector,t),a.draw?.(r,e,t));return o}import{jsx as fy}from"react/jsx-runtime";import{ClockIcon as W9,DurationIcon as $9}from"efficient-easel/icons";import{MOTION_TIMING as MN}from"efficient-shell/format";import{useSelectedHost as z9}from"efficient-easel/easel";function hs(e){let{min:o,max:t,step:r,default:a}=MN[e].duration;return Lr("Duration",fy($9,{}),o,t,r,a,"s")}function Is(e){let{min:o,max:t,step:r,default:a}=MN[e].delay;return Lr("Delay",fy(W9,{}),o,t,r,a,"s")}function gs(e,o){let t=e.render,r=a=>{let n=z9();return t({...a,value:o(a.value,n?.values)})};return{...e,render:a=>fy(r,{...a})}}function gu({readsSpeed:e}){return gs(hs("loop"),(o,t)=>Bp({loopDuration:o,speed:e?t?.speed:void 0}))}function yu(){return gs(Is("loop"),e=>fF({loopDelay:e}))}import{jsx as co}from"react/jsx-runtime";import{DirectionDownIcon as U9,DirectionIcon as j9,DirectionLeftIcon as G9,DirectionRightIcon as K9,DirectionUpIcon as q9,EntranceBounceIcon as V9,EntranceFadeIcon as Y9,EntranceFlipIcon as X9,EntranceGlideIcon as Z9,EntranceRevealIcon as J9,EntranceRiseIcon as Q9,EntranceScaleIcon as eY,EntranceSpinIcon as oY,NoSymbolIcon as tY}from"efficient-easel/icons";import{NoControlMark as rY,noControlField as aY}from"efficient-easel/screen/lib/document/panel-no-control-mark";import{customize as nY,group as sY}from"efficient-easel/screen/lib/document/box-fields";import{ENTRANCE_FROM as lY,ENTRANCE_FROM_DEFAULT as WN,ENTRANCE_KINDS as $N,ENTRANCE_KINDS_WITH_FROM as iY,entranceAttrs as dY,playEntrance as fY,readEntrance as cY}from"efficient-shell/format";var pY={none:"None",fade:"Fade",rise:"Rise",scale:"Scale",glide:"Glide",bounce:"Bounce",flip:"Flip",reveal:"Reveal",spin:"Spin"},uY={top:"Top",bottom:"Bottom",left:"Left",right:"Right"},mY={top:()=>co(U9,{}),bottom:()=>co(q9,{}),left:()=>co(K9,{}),right:()=>co(G9,{})},zN="Entrance",py=$N.filter(e=>e!=="none"),UN=e=>({any:[{field:Xo.kind,in:e},{all:[{field:Xo.kind,set:!1},{field:Ys,in:e}]}]}),HN=(e,o)=>nr(at.slice(0,at.indexOf(e)+1).reverse().map(t=>Yo(Xo.kind,t)),t=>({field:t,set:!0}),t=>t===Xo.kind?UN(o):{field:t,in:o}),xY={any:[UN(py),...at.slice(1).map(e=>({field:Yo(Xo.kind,e),in:py}))]},hY=at.flatMap(e=>[[[Yo(Xo.from,e)],HN(e,iY)],[[Yo(Xo.duration,e),Yo(Xo.delay,e)],HN(e,py)]]),IY={none:()=>co(tY,{}),fade:()=>co(Y9,{}),rise:()=>co(Q9,{}),scale:()=>co(eY,{}),glide:()=>co(Z9,{}),bounce:()=>co(V9,{}),flip:()=>co(X9,{}),reveal:()=>co(J9,{}),spin:()=>co(oY,{})},jN="data-entrance-tile";function gY({kind:e}){let{attrs:o}=dY(cY(e,WN));return co("span",{className:"sf-entrance-stage",[jN]:e,children:co("i",{...o,children:IY[e]()})})}var yY=(e,o)=>{let t=e.querySelector(`[${jN}="${o}"] > i`);t&&fY(t)},SY="Effect",bY=()=>Df(Xo.kind,{label:zN,tileWord:SY,values:$N,fallback:"none",word:e=>pY[e],picture:e=>co(gY,{kind:e}),read:(e,o)=>Xs(e,o).kind,preview:yY}),cy=(e,o)=>pl(Xo[e],o,(t,r)=>Xs(t,r)[e]),wY=lY.map(e=>({label:uY[e],value:e,picture:mY[e]()}));function At(){let e={[Lp]:sY(zN,{dot:xY}),...bY(),[Ys]:aY({type:"custom",render:()=>co(rY,{})},"always"),_cEntrance:nY(),...cy("from",On("From",co(j9,{}),wY,WN)),...cy("duration",hs("entrance")),...cy("delay",Is("entrance"))};return tt(e,hY)}import{jsx as Go}from"react/jsx-runtime";import{EntranceRevealIcon as CY,NoSymbolIcon as kY,PercentIcon as GN,ScrollFadeInIcon as vY,ScrollFadeOutIcon as PY,ScrollMoveDownIcon as TY,ScrollMoveUpIcon as OY,DurationIcon as EY,ScrollExpandIcon as _Y,ScrollParallaxIcon as AY,ScrollZoomInIcon as FY,ScrollZoomOutIcon as BY,ZoomInIcon as LY}from"efficient-easel/icons";import{customize as RY,group as DY}from"efficient-easel/screen/lib/document/box-fields";import{SCROLL_EASES as NY,SCROLL_EFFECTS as qN,SCROLL_EFFECTS_WITH_ZOOM as MY,SCROLL_END as HY,SCROLL_START as WY,SCROLL_ZOOM as $Y}from"efficient-shell/format";var VN="Scroll",YN={none:"None","zoom-in":"Zoom in","zoom-out":"Zoom out","fade-in":"Fade in","fade-out":"Fade out","move-up":"Move up","move-down":"Move down",reveal:"Reveal",parallax:"Parallax",expand:"Expand"},zY={linear:"Linear",smooth:"Smooth",arrive:"Ease out"},XN={none:()=>Go(kY,{}),"zoom-in":()=>Go(FY,{}),"zoom-out":()=>Go(BY,{}),"fade-in":()=>Go(vY,{}),"fade-out":()=>Go(PY,{}),"move-up":()=>Go(OY,{}),"move-down":()=>Go(TY,{}),reveal:()=>Go(CY,{}),parallax:()=>Go(AY,{}),expand:()=>Go(_Y,{})},UY=qN.filter(e=>eo(YN,e)&&eo(XN,e)),jY="Effect",ZN=qN.filter(e=>e!=="none"),KN=(e,o)=>nr(at.slice(0,at.indexOf(e)+1).reverse().map(t=>Yo(oo.effect,t)),t=>({field:t,set:!0}),t=>({field:t,in:o})),GY={any:at.map(e=>({field:Yo(oo.effect,e),in:ZN}))},KY=at.flatMap(e=>[[[Yo(oo.zoom,e)],KN(e,MY)],[[Yo(oo.start,e),Yo(oo.end,e),Yo(oo.ease,e)],KN(e,ZN)]]),qY=()=>Df(oo.effect,{label:VN,tileWord:jY,values:UY,fallback:"none",word:e=>YN[e],picture:e=>XN[e](),read:(e,o)=>Kt(e,o).effect}),uy=(e,o,t,r,a)=>pl(e,Lr(t,r,a.min,a.max,a.step,a.default,"%"),(n,s)=>Kt(n,s)[o]),VY=()=>pl(oo.ease,Of("Speed",Go(EY,{}),NY.map(e=>({label:zY[e],value:e})),"linear"),(e,o)=>Kt(e,o).ease);function $a(){let e={[$n]:DY(VN,{dot:GY}),...qY(),[Tc]:RY(),...uy(oo.zoom,"zoom","Zoom",Go(LY,{}),$Y),...uy(oo.start,"start","Start",Go(GN,{}),WY),...uy(oo.end,"end","End",Go(GN,{}),HY),...VY()};return tt(e,KY)}import{jsx as Fo}from"react/jsx-runtime";import{AccentIcon as YY,ContrastIcon as XY,EyeIcon as ZY,ExpandIcon as JY,FinishIcon as QY,ImagesIcon as eX,NoSymbolIcon as QN,HoverLiftIcon as oX,HoverNextImageIcon as tX,HoverRotateIcon as rX,HoverZoomIcon as eM,OpacityIcon as aX}from"efficient-easel/icons";import{customize as nX,describedAs as oM,group as sX}from"efficient-easel/screen/lib/document/box-fields";import{effectTiles as tM}from"efficient-easel/screen/lib/document/effect-tiles";import{deviceField as yo}from"efficient-easel/screen/lib/document/device-fields";import{NoControlMark as lX,noControlField as iX}from"efficient-easel/screen/lib/document/panel-no-control-mark";var Su=e=>yo("desktop",sX("Hover",{dot:e})),rM=()=>yo("desktop",nX()),dX="What this does when a shopper points at it, or taps it on a phone.",fX="What this picture does when a shopper points at it. Black and white shows it in grey until then. A phone shows its colour.",cX="What this picture does when a shopper points at the card. Show next image covers the card or the picture with this product's photos; a phone shows the picture as it is. Black and white shows it in grey until then.",pX="What this picture does when a shopper points at the card. Show next image covers the picture with the card's photos; a phone shows the picture as it is. Black and white shows it in grey until then.",uX="When this shows. On card hover shows it while a shopper points at the card. A phone always shows it.",mX="What each card does when a shopper points at it. Show next image covers the card with this product's photos; a phone shows the card as it is. Rotate turns the wheel picture.",xX="Which of the product's pictures the card shows.",hX="Same finish shows the photos of the finish the card shows, else the first group.",IX="Whole card hides the words under the photo. Picture keeps the words and swatches in view.",gX={none:()=>Fo(QN,{}),nextImage:()=>Fo(tX,{}),rotate:()=>Fo(rX,{}),zoom:()=>Fo(eM,{}),lift:()=>Fo(oX,{}),mono:()=>Fo(XY,{})};function my(e,o){let t=tM({label:c("Hover effect"),options:e.map(r=>({value:r,label:c(Em[r]),picture:gX[r]()})),fallback:o});return oM(t,{type:"select",label:"Hover effect",options:e.map(r=>({value:r,label:Em[r]}))})}function aM(){return{[bt]:Su({field:ot,in:Bm.filter(e=>e!=="none")}),[ot]:yo("desktop",{...my(Bm,"none"),description:dX})}}function nM(e){let o=Ub(e),t=Id(),r=VP(Lb);return{[bt]:Su({any:[o,t]}),[Ke.kind]:yo("desktop",{...gs(my(Ab,e),(a,n)=>$b(n??{},e)),description:mX}),...xy(t),[Fb]:iX({type:"custom",render:()=>Fo(lX,{})},"always"),_cHover:rM(),[Ke.angle]:yo("desktop",ro(gs(r,a=>zb(a)),o)),[Ke.duration]:yo("desktop",ro(hs("hover"),o)),[Ke.delay]:yo("desktop",ro(Is("hover"),o))}}function xy(e){let o=Of("Type",Fo(eX,{}),Rb.map(a=>({value:a,label:Db[a]})),hd.kind),t=On("Group",Fo(QY,{}),Nb.map(a=>({value:a,label:Mb[a]})),hd.group),r=On("Covers",Fo(JY,{}),Hb.map(a=>({value:a,label:Wb[a]})),hd.cover);return{[Ke.mediaKind]:yo("desktop",ro({...o,description:xX},e)),[Ke.mediaGroup]:yo("desktop",ro({...t,description:hX},e)),[Ke.cover]:yo("desktop",ro({...r,description:IX},e))}}function hy(e,o="",t=Mm.includes(o)){let r=Hm(e),a=Xb(e);return{[bt]:Su(r),[Ke.kind]:Iy(jb,e,fX),...Mm.includes(o)?xy(Id()):{},_cHover:rM(),...t?sM():{},[Ke.duration]:yo("desktop",ro(hs("hover"),a)),[Ke.delay]:yo("desktop",ro(Is("hover"),a))}}function sM(e=!1){let o=a=>e?a:ro(a,Yb()),t=Lr("Zoom",Fo(eM,{}),nn.min,nn.max,nn.step,nn.min,nn.unit),r=Lr("Darken on hover",Fo(aX,{}),Cn.min,Cn.max,Cn.step,Cn.fallback,Cn.unit);return{[Rm.zoom]:yo("desktop",o(t)),[Rm.darken]:yo("desktop",o(r))}}function Iy(e,o,t){let r=yo("desktop",{...gs(my(e,o),a=>qb({[ot]:a},o,e)),description:t});return Object.assign(r,{[lM]:o})}var lM="sfPictureResting",JN=new WeakMap;function xFe(e,o,t){let r=e[Ke.kind],a=r?.[lM];if(!r||!a)return e;let n=o.props?.[ot]==="nextImage",s=n?null:Ad(t.appState,o.props?.id);if(!n&&!xd.includes(String(s?.type??"")))return e;let l=JN.get(e);return l||(l={...e,[Ke.kind]:Iy(Lm,a,cX)},JN.set(e,l)),l}var yX="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.",SX={none:()=>Fo(QN,{}),[_m]:()=>Fo(YY,{})},hFe=yo("desktop",{...oM(tM({label:c("Hover effect"),options:Am.map(e=>({value:e,label:c(Fm[e]),picture:SX[e]()})),fallback:"none"}),{type:"select",label:"Hover effect",options:Am.map(e=>({value:e,label:Fm[e]}))}),description:yX}),bX=yo("desktop",{...On("Show",Fo(ZY,{}),[{value:Nm,label:"Always"},{value:Dm,label:"On card hover"}],Nm),description:uX});function iM(){let e={any:[Hm("none"),{field:ot,is:_m},{field:oa,is:Dm}]},{[bt]:o,[Ke.kind]:t,...r}=hy("none","",!0);return{[bt]:Su(e),[Ke.kind]:t,[oa]:bX,...xy(Id()),...r,...sM(!0)}}var IFe=Iy(Lm,"none",pX);import{jsx as Oi}from"react/jsx-runtime";import{isNodeList as vX}from"efficient-easel/data";import{useEasel as PX}from"efficient-easel/easel";import{hiddenInView as TX,hiddenKeyOf as gy,hidePatch as OX,slotChildName as EX,slotChildRowName as _X}from"efficient-easel/draw";var wX=new Set(["BookingBox","SubmitBox"]);function CX(e){return typeof e=="string"&&wX.has(e)}var kX=tT(CX,NT);function bu(e,o){return kX(e)||IT(o)}var wu=(e,o,t)=>{if(o!=="block"||e.props?.fromProduct!==!0)return t;let r=e.props.product;return!r?.code||typeof r.name!="string"?t:r.name.trim()||t};import{deviceField as AX}from"efficient-easel/screen/lib/document/device-fields";import{NoControlMark as FX}from"efficient-easel/screen/lib/document/panel-no-control-mark";var dM="notCardOfTemplate",fM={not:{context:dM,is:!0}},yy={any:[yd,fM]},NFe={[dM]:(e,o)=>{let t=ex(o.appState,e.props?.id);return t===void 0?void 0:t===null}};function Cu(e){let o=e.props?.content;return vX(o)?o:[]}var vu=(e,o)=>TX(e.props??{},o),BX=(e,o)=>e.props?.[gy(o)]!==void 0;function cM(e,o=()=>!1,t="desktop"){return Cu(e).flatMap(r=>typeof r?.props?.id!="string"?[]:Cu(r).length&&!vu(r,t)?cM(r,o,t):o(r)?[]:[r])}function LX(e,o,t,r="desktop"){let a=cM(e,t,r).map(l=>({child:l,name:o(l)})),n=new Set(a.map(l=>l.name)),s=new Set;return a.map(({child:l,name:i})=>{let d=i;if(s.has(i)){let f=2;for(;n.has(`${i} ${f}`);)f+=1;d=`${i} ${f}`,n.add(d)}return s.add(i),{id:l.props.id,label:d,shown:!vu(l,r)}})}function ku(e,o,t){let r=a=>t==="desktop"?vu(a,t):BX(a,t);return Cu(e).flatMap(a=>r(a)?o(a)?[]:[a,...ku(a,o,t)]:ku(a,o,t))}function RX(e,o){let t={...e};for(let[r,a]of Object.entries(o))a===void 0||r===gy("desktop")&&a===!1?delete t[r]:t[r]=a;return Object.keys(t).length===Object.keys(e).length&&Object.keys(t).every(r=>t[r]===e[r])?e:t}function Sy(e,o,t){let r=Cu(e),a=!1,n=r.map(s=>{if(a)return s;let l=s;if(s?.props?.id===o){let i=RX(s.props,t(s.props));i!==s.props&&(l={...s,props:i})}else l=Sy(s,o,t);return a=l!==s,l});return a?{...e,props:{...e.props,content:n}}:e}function pM(e,o,t,r="desktop"){return Sy(e,o,a=>r==="desktop"&&vu({props:a},r)===!t?{}:OX(a,r,!t))}function DX(e,o,t){return t==="desktop"?pM(e,o,!0,t):Sy(e,o,()=>({[gy(t)]:void 0}))}function NX(e,o,t,r,a,n){return EX(e).trim()?t(e):Tw({ownerType:o,owner:r,fields:a,slot:n},Wt(e.props))?.label??t(e)}var MX="This page is read-only.";function HX({card:e,ownerType:o,owner:t,fields:r,slot:a,labelOf:n,write:s,readOnly:l,view:i="desktop"}){let d=u=>_X(u,n,an,void 0,wu),f=u=>bu(u.type,u),m=LX(e,u=>NX(u,o,d,t,r,a),f,i);return m.length?Oi(zx,{parts:m,changed:ku(e,f,i).length>0,shown:u=>m.find(h=>h.id===u)?.shown??!0,disabledReason:l?MX:void 0,onPress:(u,h)=>s(I=>pM(I,u,h,i)),onReset:()=>s(u=>ku(u,f,i).reduce((h,I)=>DX(h,String(I.props.id),i),u))}):Oi(FX,{})}function WX(){try{let e=PX(a=>a),o=e.config.components??{},t=e.selectedItem;if(!t)return null;let r=ex(e.appState,t.props?.id);return{labelOf:a=>o[a]?.label??a,card:t,ownerType:typeof r?.type=="string"?r.type:void 0,owner:r,fields:Lw(e.appState,r),slot:Fw(e.appState,t.props?.id)??void 0}}catch{return null}}function $X({readOnly:e,view:o}){let t=WX(),r=fl();return t?Oi(HX,{...t,view:o,readOnly:e,write:a=>{e||r(n=>{let s={...t.card,props:n},l=a(s);return l===s?null:{content:l.props.content}})}}):Oi(zx,{parts:[],changed:!1,shown:()=>!0,onPress:()=>{},onReset:()=>{}})}function MFe(e){return ro(AX(e,{type:"custom",render:({readOnly:o})=>Oi($X,{readOnly:o,view:e})}),fM)}import{customize as ZX}from"efficient-easel/screen/lib/document/box-fields";import{jsx as by}from"react/jsx-runtime";import{DirectionIcon as zX,LoopMarqueeIcon as UX,NoSymbolIcon as jX}from"efficient-easel/icons";import{customize as GX,describedAs as KX,group as qX}from"efficient-easel/screen/lib/document/box-fields";import{effectTiles as VX}from"efficient-easel/screen/lib/document/effect-tiles";function wy(){return FT("Direction",HI,pi,"A marquee cannot run diagonally, so the corners are not answers.",by(zX,{}),AT)}var Cy=e=>qX("Loop",e?{dot:e}:void 0),YX={none:()=>by(jX,{}),scroll:()=>by(UX,{})};function XX(){let e=VX({label:c("Loop"),options:Fp.map(({value:o,label:t})=>({value:o,label:c(t),picture:YX[o]()})),fallback:MI});return KX(e,{type:"select",label:"Loop",options:Fp.map(({value:o,label:t})=>({value:o,label:t}))})}function uM(){return{[ls]:Cy(ci),loop:XX(),_cLoop:GX(),scrollDirection:ro(wy(),ci),loopDuration:ro(gu({readsSpeed:!1}),ci),loopDelay:ro(yu(),ci)}}var mM={field:oa,set:!0};function JX(){let e=iM(),o=[bt,ot],t=Do(e,Object.keys(e).filter(n=>!o.includes(n)&&n!==oa),yd),r=Do(t,[oa],mM),a=Do(r,[ot],yy);return Do(a,[bt],{any:[yy,mM]})}function Pu(e,o=""){switch(e){case"section":case"block":return{...At(),...$a()};case"box":return{...At(),...$a(),...uM(),...JX()};case"picture":return{...At(),...$a(),...hy(Kb(o),o)};case"textPart":return{...At(),...$a(),...aM()};case"cards":return{...At(),...$a(),...nM(Bb(o))};case"marquee":return{...At(),...$a(),[ls]:Cy(),_cLoop:ZX(),scrollDirection:wy(),loopDuration:gu({readsSpeed:!0}),loopDelay:yu()}}}import{blockSizeFieldSet as UZ}from"efficient-easel/screen/lib/document/block-size-fields";import{VIEW_KEY_ACCESS as jZ}from"efficient-easel/screen/lib/document/box-fields";import{jsx as xM,Fragment as QX,jsxs as eZ}from"react/jsx-runtime";import{useSelectedHost as hM}from"efficient-easel/easel";import{VIEW_TIERS as oZ,viewKeyAt as tZ}from"efficient-easel/draw";var IM=e=>oZ.find(o=>Object.values(ho).some(t=>tZ(t,o)===e))??"desktop";function rZ(e,o,t){let r=e(o),a=IM(t);return{top:Zd(r,"top",a),bottom:Zd(r,"bottom",a)}}var aZ=e=>e.startsWith(ho.bottom)?"bottom":"top";function nZ(e,o,t,r){let a=aZ(r);return o(t,Zd(e(t),a,IM(r)),a)}function sZ({frameOf:e,note:o,rowKey:t}){let r=hM()?.values,a=r?nZ(e,o,r,t):null;return a?xM("p",{className:"es-field-hint",children:a}):null}var lZ=new Set(wn());function gM(e,o,t){let r=Rr({tablet:!0,siteSide:!0,...t?{label:t}:{},useFallback:a=>{let n=hM()?.values;return n?rZ(e,n,a.name):{top:0,bottom:0}}});return Object.fromEntries(Object.entries(r).map(([a,n])=>{let s=n.render;return!lZ.has(a)||typeof s!="function"?[a,n]:[a,{...n,render:l=>eZ(QX,{children:[s(l),xM(sZ,{frameOf:e,note:o,rowKey:a})]})}]}))}import{group as iZ}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as dZ,deviceMetaOf as bM}from"efficient-easel/screen/lib/document/device-fields";import{DESIGN_GROUPS as vy,SETTINGS_BUCKETS as fZ}from"efficient-easel/panel";import{BUCKET_KEY as So,DESIGN_GROUP_KEY as ys}from"efficient-easel/screen/lib/document/field-buckets";var Ei=fZ;var cZ="Editor only \u2014 not shown live",Py={"Archive link":"Content",Article:"Content",Blocks:"Content","Blog posts":"Content","Browser mock":"Content",Button:"Content","Call to action":"Content","Car prompt":"Content","Card link":"Content","Card list":"Content",Cards:"Content","Claims bars":"Content","Contact info":"Content",Content:"Content",Display:"Content","Content source":"Content",Contents:"Content",Filters:"Content","Show on a card":"Content",Footnote:"Content",Form:"Content",Founders:"Content","Gallery A":"Content","Gallery B":"Content","Gallery link":"Content",Header:"Content","Header link":"Content","Image caption":"Content","In this issue":"Content",Items:"Content","Kanban columns":"Content",Lead:"Content","Left panel":"Content",Link:"Content",Links:"Content",List:"Content","Message form":"Content",Metadata:"Content",Milestones:"Content","Mockup card":"Content","Newsletter panel":"Content",Offices:"Content",Options:"Content","Others gallery":"Content","Overlay button":"Content",Product:"Content","Product page":"Content",Products:"Content","Pull quote":"Content",Questions:"Content","Recent issues":"Content","Recent posts":"Content",Reviews:"Content","Right panel \xB7 actions":"Content","Right panel \xB7 choices":"Content","Right panel \xB7 form":"Content","Routing groups":"Content",Rows:"Content",Section:"Content","Section header":"Content",Sections:"Content","Signup form":"Content",Source:"Content","Source product":"Content","Stat & note":"Content",Stats:"Content","Submit button":"Content","Success state":"Content",Wheel:"Content",Terminal:"Content",Text:"Content","Text column":"Content","Timeline entries":"Content","Top row":"Content",Total:"Content","Trailing note":"Content","\u201COther\u201D reason":"Content","Background images":"Design",Gallery:"Content",Image:"Content","Image column":"Content",Images:"Content",Logo:"Content",Map:"Content",Media:"Content","Background image":"Design",Color:"Design","Image tint":"Design",Style:"Design",Shape:"Design",Shadow:"Design",Texture:"Design",Overlay:"Design","Text style":"Design",Entrance:"Animation",Hover:"Animation",Loop:"Animation",Scroll:"Animation",Advanced:"Advanced",Anchor:"Anchor",Arrangement:"Layout","Auto-slide":"Layout",Bar:"Layout","Cell size":"Size",Behavior:"Layout",Schedule:"Layout",Controls:"Layout",Diagram:"Layout",[cZ]:"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"},wM={"AlloyWheelsListing._gCards":"Design","Flex._gLink":"Link","LongRead._gLink":"Link"},CM={"Text._gSpacing":"Size","Heading._gSpacing":"Size"};function yM(e,o,t){let r=`${e}.${o}`;return z(CM,r)??z(wM,r)??z(Py,t)}function pZ(e){return e==="Animation"?[So.Animation]:[So.Design,ys[e]]}function Tu(...e){let o=[];for(let t of e)for(let r of Object.values(t)){let a=bM(r),n=fr(a?a.inner:r),s=n?z(Py,n.label):void 0;if(s)for(let l of pZ(s))o.includes(l)||o.push(l)}return o}var wBe=[...Tu(Rr({tablet:!0,siteSide:!0}),An("full"),Fn(),Bn(),cl()),...Object.keys(Rr({tablet:!0,siteSide:!0})),...Object.keys(An("full")),...Object.keys(Fn()),...Object.keys(Bn()),...Object.keys(cl())],CBe=[...Tu(En()),...Object.keys(En())],kBe=[...Tu(_n()),...Object.keys(_n())],vBe=[...Tu(At()),...Object.keys(At())],PBe=Object.keys(RT()),TBe=Object.keys(DT()),uZ={"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)"},kM={Content:["Content"],Size:["Size"],Design:["Design","Style"],Layout:["Layout"],Position:["Position"],Advanced:["Advanced"],Link:["Link"],Anchor:["Anchor"],Animation:["Animation"]},ky={_gAnchor:"repeated the Anchor group heading above it (two tabs, 11.0.0)"};{let e={...Rr({tablet:!0,siteSide:!0}),...An("full"),...Fn(),...Bn(),...En(),..._n(),...At()};for(let o of Object.keys(ky)){let t=fr(e[o]),r=t?z(Py,t.label):void 0;if(!t||t.level!==2||!r||!kM[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 mZ=new Set(["_sContent","_sStyle","_sLayout","_sMedia"]),xZ=new Map([[So.Design,"Content"],[So.Animation,"Animation"],...vy.map(e=>[ys[e],e])]);function hZ(e){let o=`${e}.`;return Object.keys(uZ).filter(t=>t.startsWith(o)).map(t=>t.slice(o.length))}function IZ(e,o){let t=bM(e),r=iZ(o);return t?dZ(t.tier,r):r}function gZ(e,o){let t=fr(o);return t?e==="Content"||e==="Animation"?CT(o,t.label):kT(o):o}function SM(e){return e==="Design"?vy:["Animation"]}function Ou(e,o){let t=[],r=new Set(hZ(o)),a=new Set,n=!1,s=null;for(let[u,h]of Object.entries(e)){let I=fr(h);if(mZ.has(u))throw new Error(`${o}.${u}: that key was a tab header until efficient-web-builder 11.0.0, when the panel moved to two tabs (Design \xB7 Animation). Its tab is gone, so the key may not come back. Give the heading a key of the section's own (\`_g\u2026\`), or open a Design group with its own key from efficient-easel's DESIGN_GROUP_KEY (\`[DESIGN_GROUP_KEY.Design]: section("Design")\`).`);let S=xZ.get(u);if(S!==void 0){if(I?.level!==1)throw new Error(`${o}.${u}: that key is reserved for the ${S} heading of the settings panel, but this field is ${I?`a level-${I.level} "${I.label}" header`:"not a header"}, so it cannot serve as one. Rename the section's own field.`);(u===So.Design||u===So.Animation)&&(n=!0),t.push(s={place:S,entries:[],adopted:!0});continue}if(!I){s||t.push(s={place:"Content",entries:[]}),s.entries.push([u,h]);continue}if(r.has(u)||eo(ky,u)){let T=yM(o,u,I.label);if(I.level!==2||!T||!kM[T].includes(I.label))throw new Error(`${o}.${u}: ${r.has(u)?"RETIRED":"INJECTED_RETIRED"} (lib/document/field-groups.ts) lists this sub-heading as one whose name repeats the place it sits in, but it is a level-${I.level} "${I.label}" header in the ${T??"(unclassified)"} place. Only a level-2 header whose label is one of its place's words (PLACE_WORDS) may be retired \u2014 anything else is a heading a merchant reads for its own sake. Fix the row or drop it.`);r.has(u)&&a.add(u),t.push(s={place:T,entries:[],uniform:eo(ky,u)});continue}let P=yM(o,u,I.label);if(!P)throw new Error(`${o}.${u}: the inspector group "${I.label}" is not classified in LABEL_GROUP (lib/document/field-groups.ts), so there is no way to say which of ${[...vy,"Animation"].join(" / ")} its controls belong under. Classify it \u2014 an unclassified group silently lands wherever it was declared, which is the whole bug.`);t.push(s={place:P,entries:[[u,I.level===2?h:IZ(h,I.label)]]})}let l=new Set(Object.entries(e).filter(([,u])=>fr(u)).map(([u])=>u));for(let[u,h]of[["BLOCK_KEY_GROUP",CM],["KEY_GROUP",wM]]){let I=Object.keys(h).filter(S=>S.startsWith(`${o}.`)).filter(S=>!l.has(S.slice(o.length+1))&&!r.has(S.slice(o.length+1)));if(I.length)throw new Error(`${o}: ${u} (lib/document/field-groups.ts) lists ${JSON.stringify(I)}, but no fold header by that key is in this section's panel. Either the heading was renamed or removed and the row is stale, or the row names the wrong key \u2014 an override that quietly matches nothing is worse than no override.`)}let i=n?[]:[...r].filter(u=>!a.has(u));if(i.length)throw new Error(`${o}: RETIRED (lib/document/field-groups.ts) lists ${JSON.stringify(i)}, but this section has no such fold header${i.length>1?"s":""}. Either the heading was renamed or removed and the row is stale, or the row names the wrong section \u2014 a list that quietly matches nothing is worse than no list.`);let d=new Set(t.filter(u=>u.entries.length>0).map(u=>u.place)),f=Ei.filter(u=>SM(u).some(h=>d.has(h))),m={};for(let u of f){m[So[u]]=Lf(u,u===f[0]?f:null);for(let h of SM(u)){if(!d.has(h))continue;let I=t.filter(T=>T.place===h),S=I.findIndex(T=>T.adopted);S>0&&I.unshift(...I.splice(S,1));let P=I.filter(T=>T.uniform);if(P.length>0){let T=I.filter(k=>!k.uniform),B=I[0]?.adopted?1:0;I.splice(0,I.length,...T.slice(0,B),...P,...T.slice(B))}u==="Design"&&(m[ys[h]]=Nx(h));for(let T of I)for(let[B,k]of T.entries)m[B]=gZ(h,k)}}return m}function vM(e){return So.Design in e?e:{[So.Design]:Lf("Design",null),[ys.Content]:Nx("Content"),...e}}function PM(e){return Ei.some(o=>So[o]in e)}function Eu(e){let o=Ei.filter(r=>So[r]in e);if(o.length===0)return e;let t={...e};for(let r of o)t[So[r]]=Lf(r,r===o[0]?o:null);return t}import{jsx as _u}from"react/jsx-runtime";import{WidthIcon as yZ}from"efficient-easel/icons";import{SettingsField as SZ,SettingsSwitch as bZ}from"efficient-easel/panel";import{group as wZ,iconOf as CZ,sharedStyleKinds as kZ}from"efficient-easel/screen/lib/document/box-fields";var vZ="Gutter";function PZ({value:e,onChange:o,labelId:t}){let r=uu(dl()),a=yi({[Ha]:e})??r,n=s=>o(s?r?void 0:jg:Ug);return _u(SZ,{label:c(vZ),labelId:t,icon:CZ(_u(yZ,{})),action:_u(bZ,{checked:a,onChange:n,ariaLabelledBy:t})})}function TM(){return kZ({_gWidth:wZ(Rf),[Ha]:{type:"custom",render:({value:e,onChange:o,id:t,name:r})=>_u(PZ,{value:e,onChange:o,labelId:`${t??r??Ha}-label`})}})}import{jsx as Oy}from"react/jsx-runtime";import{group as TZ,sharedStyleKinds as EM}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as OZ}from"efficient-easel/screen/lib/document/device-fields";var EZ="Content cannot be wider than the background.",Ty=e=>c(e==="content"?"Content width":"Full width");function _M(e){let{siteWidth:o,sectionBackgroundWidth:t,sectionContentWidth:r,themeFromDocument:a}=vo(),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 _Z={read:hn},AZ={read:hn,drawsFullOnItsOwn:!0},FZ={read:HC,clearOnContent:{fullWidth:void 0}};function BZ({source:e}){let o=e.read(Wx()),t=fl(),r=_M(e);return Oy(HT,{value:o.background??r.background,changed:o.background!==null,detail:Ty(r.background),onChange:a=>t($C(a)),onReset:()=>t(dx("background"))})}function LZ({source:e}){let o=e.read(Wx()),t=fl(),r=i=>t({...i,...e.clearOnContent}),a=_M(e),n=(o.background??a.background)==="content",s=vT({row:ix,label:MT,grid:{min:xn.min,max:n?a.px:xn.max,step:xn.step},valueKey:Ao.contentMax,view:"desktop",numbersIn:()=>o.contentMax!==null}),l=o.content??a.content;return Oy(WT,{mode:n&&l==="full"?"content":l,px:o.contentMax??a.px,max:n?a.px:xn.max,changed:o.content!==null,detail:a.content==="full"?Ty("full"):`${Ty("content")} ${a.px}px`,fullClosed:n,hint:n?EZ:void 0,onMode:i=>r(zC(i)),onPx:i=>r({...UC(i),...s?.unitPatch(!1)}),...s?{length:s}:{},onReset:()=>r(dx("content"))})}var OM=(e,o)=>OZ("desktop",{type:"custom",render:()=>Oy(e,{source:o})}),AM=e=>({[Ao.background]:OM(BZ,e),[Ao.content]:OM(LZ,e),[Ao.contentMax]:Hx(),...qP(ix,Ao.content)});function FM(e){let o=e?.drawsFullOnItsOwn?AZ:_Z;return EM({_gWidth:TZ(Rf),...AM(o)})}function YBe(){return EM({...AM(FZ),fullWidth:Hx()})}import{deviceMetaOf as LM}from"efficient-easel/screen/lib/document/device-fields";import{noControlMetaOf as RZ}from"efficient-easel/screen/lib/document/panel-no-control-mark";function DZ(e,o){let t=LM(o),r=t?t.inner:o;if(fr(r)||r?.customize===!0)return!1;if(r?.type==="slot")return!0;let a=RZ(r);return a==="always"?!1:a==="authored-copy"?ev(e):!0}function BM(e){let o=LM(e),t=o?o.inner:e,r=fr(t);return r?wT(t)?0:r.level:null}function NZ(e,o,t){return t?o===0&&e===So.Design||o===1&&e===ys.Content:!1}var MZ=new WeakMap,HZ=new WeakMap;function RM(e,o="section"){let t=o==="page"?HZ:MZ,r=t.get(e);if(r)return r;let a=Object.entries(e).map(([m,u])=>({key:m,field:u,level:BM(u),draws:DZ(m,u)||o==="page"&&BM(u)===null&&bx(m,u)})),n=o==="section"&&a.some(m=>bx(m.key,m.field)),s=new Set;for(let m=0;m<a.length;m++){let u=a[m].level;if(u===null)continue;let h=0;for(let I=m+1;I<a.length;I++){let S=a[I].level;if(S!==null&&S<=u)break;a[I].draws&&(h+=1)}h===0&&!NZ(a[m].key,u,n)&&s.add(a[m].key)}let l=n&&PM(e),i=l&&!(So.Design in e);if(!s.size&&!i)return t.set(e,e),e;let d={};for(let m of a)s.has(m.key)||(d[m.key]=m.field);let f=Eu(l?vM(d):d);return t.set(e,f),f}import{isShown as WZ,showWhenFactReaders as $Z}from"efficient-shell/format";var DM=new WeakMap,zZ=new Set(Object.values(So));function NM(e,o,t,r={}){if(!e)return e;let a=o?.props??{},n=a.id,s=$Z(r,o,t),l=DP(t,{...s,parentOffersPositions:()=>{let I=Xt(t.appState,n);return I===void 0?void 0:ak(I,n)},parentTileSlot:()=>{let I=Xt(t.appState,n);return I===void 0?void 0:nk(I,n)},heroGroupDepth:()=>zd(t.appState?.data,typeof n=="string"?n:"")}),i=[];for(let[I,S]of Object.entries(e)){let P=uw(S);!P||RP(P,"device")||WZ(P,a,l)||i.push(I)}if(i.length===0)return e;let d=DM.get(e);d||DM.set(e,d=new Map);let f=i.join("\0"),m=d.get(f);if(m)return m;let u=new Set(i),h={};for(let[I,S]of Object.entries(e))u.has(I)||(h[I]=S);return i.some(I=>zZ.has(I))&&(h=Eu(h)),d.set(f,h),h}var MM={spacingFields:ET,sidesPaddingFields:Rr,ownPaddingFields:gM,sectionShapeFields:_n,cardShapeFields:PT,cellWidthFields:TT,widthField:An,boxGutterFields:TM,sectionOwnWidthFields:FM,heightFields:Fn,anchorFields:Bn,customCssFields:_T,stickFields:cl,sectionThemeFields:En,animationTabFields:Pu,blockSizeFields:({tablet:e,...o}={})=>UZ({...o,shorten:!0,say:KP,lengthUnits:Tf,...e?{phone:jZ}:{}}),assignSectionGroups:Ou,dropEmptyHeadings:RM,rowsShownForNode:NM,SECTION_THEME_FOLLOW_LABEL:mT,BLOCK_THEME_FOLLOW_LABEL:xT,PartAnchors:hR};function Au(e,o,t){if(!e)return e;let r=!1,a={};for(let[n,s]of Object.entries(e)){let l=s;if(s&&typeof s=="object")if(s.type==="slot")if(s.allow){let i=s.allow.filter(o);i.length!==s.allow.length&&(l={...s,allow:i})}else{let i=new Set(s.disallow??[]),d=t.filter(f=>!i.has(f));d.length>0&&(l={...s,disallow:[...s.disallow??[],...d]})}else{let i=Au(s.arrayFields,o,t),d=Au(s.objectFields,o,t);(i!==s.arrayFields||d!==s.objectFields)&&(l={...s,...i?{arrayFields:i}:null,...d?{objectFields:d}:null})}l!==s&&(r=!0),a[n]=l}return r?a:e}function GZ(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=NN(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 KZ(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];qZ(e,o,a);for(let n of a){let s=n.components.filter(Td);if(s.length>0)throw new Error(`efficient-web-builder: the category "${n.key}" lists ${s.map(l=>`"${l}"`).join(", ")}, a block a card template declares. A card's block is added in its card only; take it out of the category.`)}for(let n of r){if(!Od(n))continue;let s=Pd(n).filter(l=>!r.has(l.type)).map(l=>`"${l.type}"`);if(s.length>0)throw new Error(`efficient-web-builder: the card template of "${n}" declares ${s.join(", ")}, which the editor does not register. Register it in the registry or in blocks.host.`)}}function Ey(e,o,t,r=""){let a=[];for(let[n,s]of Object.entries(t??{})){if(!s||typeof s!="object")continue;let l=`${r}${n}`;s.type==="slot"&&s.allow?.includes(e)&&a.push(`${o}.${l}`),a.push(...Ey(e,o,s.arrayFields,`${l}.`),...Ey(e,o,s.objectFields,`${l}.`))}return a}function qZ(e,o,t){let r=n=>{throw new Error(`efficient-web-builder: ${n} names "${pn}". Only a host's seed puts a host part in a card template; a merchant never adds one. Take it out.`)};for(let n of t)n.components.includes(pn)&&r(`the category "${n.key}"`);let a=[...Object.entries(e.components??{}),...o.map(([n,s])=>[n,s])];for(let[n,s]of a){let l=Ey(pn,n,s?.fields);l.length>0&&r(`the slot ${l.map(i=>`"${i}"`).join(", ")}, whose allow list`)}}function HM(e,o){let t=Object.entries(o?.host??{}),r=o?.categories??[],a=Dg(o);if(KZ(e,t,r),!a&&t.length===0&&r.length===0)return e;let n=e.components,s=t.map(([m])=>m).filter(m=>m in n);if(s.length>0)throw new Error(`efficient-web-builder: blocks.host registers ${s.map(m=>`"${m}"`).join(", ")}, which ${s.length===1?"is already a block":"are already blocks"} of the editor. Give a host's block a type of its own.`);let l=m=>a?a.offers(m):!0,i=Object.keys(n).filter(m=>!l(m)),d={};for(let[m,u]of Object.entries(n)){let h=a?Au(u?.fields,l,i):u?.fields;d[m]=h===u?.fields?u:{...u,fields:h}}if(t.length>0){let m=new Set(t.map(([I])=>I)),u=e.categories?.structure?.components??[],h={...dy(Object.keys(n),u,m),isHostBlock:I=>m.has(I),inspector:MM};for(let[I,S]of t){let P=GZ(I,S,h),T=Au(P.fields,l,i);d[I]=T===P.fields?P:{...P,fields:T}}}let f=[];for(let[m,u]of Object.entries(e.categories??{})){let h=u?.components??[],I=h.filter(l);I.length===h.length?f.push([m,u]):I.length>0&&f.push([m,{...u,components:I}])}for(let m of r){let u=m.components.filter(P=>P in d&&l(P));if(u.length===0)continue;let h=f.find(([P])=>P===m.key);if(h){let[,P]=h,T=new Set(P.components??[]);h[1]={...P,components:[...P.components??[],...u.filter(B=>!T.has(B))]};continue}let I=[m.key,{title:m.title,components:u}],S=m.before?f.findIndex(([P])=>P===m.before):-1;S===-1?f.push(I):f.splice(S,0,I)}return{...e,components:d,categories:Object.fromEntries(f)}}function WM(){let e=XZ();return VZ(()=>HM(YZ(e),un(e)),[e])}import{jsx as Fy,Fragment as hJ,jsxs as IJ}from"react/jsx-runtime";import{useContext as gJ,useEffect as yJ,useMemo as Nu,useRef as sH}from"react";import{EaselCanvas as SJ,repeatCopyAt as bJ,useEasel as wJ}from"efficient-easel/easel";import{jsx as _y}from"react/jsx-runtime";import{useEffect as eJ,useState as oJ}from"react";import{Banner as tJ}from"efficient-shell/ui";import{useSyncExternalStore as ZZ}from"react";import{useScreenDocument as JZ}from"efficient-easel/screen/components/ScreenDocumentContext";var QZ=()=>()=>{},$M=()=>null;function Fu(e){return ZZ(e?e.subscribe:QZ,e?e.state:$M,e?e.state:$M)}function Bu(){let{adapter:e}=JZ();return e?.pinnedChrome}var Lu={load:"The header and footer could not load. They are hidden for now and nothing in them is saved. Reload to try again.",lock:"{name} is editing the header and footer. Nothing you change in them here is saved.",conflict:"The header and footer were changed somewhere else. Nothing you change in them here is saved. Reload to get the latest.",save:"The header and footer did not save. They are sent again with your next change."},rJ={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."},aJ=Lu.load,nJ=Lu.lock,sJ=Lu.conflict,lJ=Lu.save;function iJ(e){if(!e)return null;if(e.loadFailed)return c(aJ);if(e.lockHolder)return c(nJ,{name:e.lockHolder.name||c("Somebody else")});if(e.conflict)return c(sJ);if(e.saveFailed)return c(lJ);let o=e.sections?.[0];if(!o)return null;let t=o.title||c("A shared section"),r=o.holder?.name||c("Somebody else");return c(rJ[o.problem],{section:t,name:r})}function dJ({report:e}){let o=iJ(Fu(e)),[t,r]=oJ(null);return eJ(()=>{o||r(null)},[o]),!o||t===o?null:_y("aside",{className:"sf-canvas-notice",children:_y(tJ,{tone:"warning",onDismiss:()=>r(o),children:o})})}function zM(){return _y(dJ,{report:Bu()})}import{jsx as Du}from"react/jsx-runtime";import{useState as aH}from"react";import{Banner as cJ,Button as pJ}from"efficient-shell/ui";import{UndoIcon as uJ}from"efficient-shell/icons/efficient";import{useScreenDocument as mJ}from"efficient-easel/screen/components/ScreenDocumentContext";import{useSyncExternalStore as GM}from"react";var _i=!1,Ss=null,Ay=new Set;function Fi(){for(let e of Ay)e()}function KM(e){return Ay.add(e),()=>{Ay.delete(e)}}function qM(){_i||(_i=!0,Fi())}function VM(){_i&&(_i=!1,Fi())}function UM(){return _i}function YM(){return GM(KM,UM,UM)}function jM(){return Ss}function Ru(){Ss&&(Ss=null,Fi())}function XM(){return GM(KM,jM,jM)}var Ai=class extends Error{constructor(){super("The editor's last changes could not be saved, so nothing was restored."),this.name="HeldEditsNotSaved"}};async function ZM(e,o,t,{flushSave:r,reload:a}){if(!await r())throw new Ai;let n=await e.restore(o,t);return Af(n.liveState),a(),n}async function JM({access:e,version:o,page:t,...r}){let a=await ZM(e,o.id,t?{page:t.id}:{},r);Ss={title:fJ(o,t??null),undo:a.undo},Fi()}async function QM({access:e,...o}){let t=Ss?.undo;t&&(await ZM(e,t,{},o),Ss=null,Fi())}function eH(e){return e.name?e.name:e.kind==="draft_before_restore"?c("Draft before restore"):c("Version {n}",{n:e.number})}function fJ(e,o){return e.kind==="draft_before_restore"?c("Your drafts from before the restore are back"):o?c("{page} from version {n} is now your draft",{page:o.name,n:e.number}):c("Version {n} is now your draft",{n:e.number})}function oH(e){let o=e.changes.filter(r=>r.kind==="page").length,t=[...o?[$t("{n} page","{n} pages",o)]:[],...e.changes.filter(r=>r.kind!=="page").map(r=>r.name)];if(!t.length)return"";try{return new Intl.ListFormat(rx(),{type:"conjunction"}).format(t)}catch{return t.join(", ")}}function tH(e){return e.change==="take_down"?c("{name} (taken down)",{name:e.name}):e.name}function rH(e,o=new Date){let t=new Date(e);if(Number.isNaN(t.getTime()))return"";let r=rx(),a=new Intl.DateTimeFormat(r,{hour:"numeric",minute:"2-digit"}).format(t);if(t.toDateString()===o.toDateString())return c("Today, {time}",{time:a});let n=new Intl.DateTimeFormat(r,{day:"numeric",month:"short",...t.getFullYear()===o.getFullYear()?{}:{year:"numeric"}}).format(t);return c("{day}, {time}",{day:n,time:a})}import{useSettledAction as xJ}from"efficient-easel/easel";function nH(){let e=XM(),{adapter:o,flushSave:t,reloadFromServer:r}=mJ(),a=o.siteVersions,[n,s]=aH(!1),[l,i]=aH(!1),d=async()=>{if(!(!a||n)){s(!0),i(!1);try{await QM({access:a,flushSave:t,reload:r})}catch{i(!0)}finally{s(!1)}}},f=xJ({onPress:()=>{d()},busy:n});return e?Du("aside",{className:"sf-canvas-notice",children:Du(cJ,{tone:l?"danger":"info",title:e.title,onDismiss:Ru,action:a&&e.undo?Du(pJ,{variant:"secondary",size:"sm",leftIcon:Du(uJ,{}),loading:f.busy,disabled:f.busy,onClick:f.onPress,children:c("Undo")}):void 0,children:l?c("Undo did not work. Nothing changed. Try again."):c("Check it with Preview. Press Publish to put it live.")})}):null}import{decodePartId as CJ,REPEAT_ATTRIBUTE as By,REPEAT_INDEX_ATTRIBUTE as Ly}from"efficient-easel/draw";import{usePreviewParts as kJ}from"efficient-easel/draw/client";import{ScreenDocumentContext as vJ}from"efficient-easel/screen/components/ScreenDocumentContext";function lH(e){let{mirrorHostStyles:o}=ul(),t=t0(),r=Ry(),a=dl(),n=gJ(vJ),s=nT(n?.docId??null),l=wJ(P=>P.appState.data),i=sT(s,l),d=JSON.stringify(i),f=Nu(()=>i,[d]),m=Nu(()=>({...e.metadata??t??{},...r,...f}),[e.metadata,t,r,f]);yJ(()=>(ay(a),()=>ay(null)),[a]);let u=sH(null),h=PJ(u),{onDocument:I}=e,S=P=>{u.current=P,I?.(P)};return IJ(hJ,{children:[Fy(nH,{}),Fy(zM,{}),Fy(SJ,{...e,onDocument:S,typing:h,metadata:m,height:"fill",mirrorStyles:o,frameWrapper:Xf})]})}function Ry(){let{sectionBackgroundWidth:e,themeFromDocument:o}=vo(),t=dl();return Nu(()=>jC(o?null:e,t),[e,t,o])}function PJ(e){let o=Wf(),t=kJ(),r=sH({parts:t});return r.current={parts:t},Nu(()=>{let a=(n,s)=>{let l=Uf(n,o),i,d=null,f=s??(l?null:sh(null,e.current,n)),m=!l&&f?bJ(f):null,u=m?CJ(n):null;if(m&&f&&u?.propKey){l=Gf({...m,nodeId:u.nodeId,key:u.propKey},o),i=u.propKey;let P=f.closest(`[${By}][${Ly}]`),T=`[${By}="${jf(P?.getAttribute(By)??"")}"][${Ly}="${jf(P?.getAttribute(Ly)??"")}"]`;d=()=>(f.ownerDocument??e.current)?.querySelector(T)??null}if(!l)return null;let h=f,I=()=>(h=sh(h,d?d():h?.ownerDocument??e.current,n),h),S=I();return S?{element:I,value:l.value,rules:l.rules,multiline:l.multiline,skip:l.skip,write:l.write,key:i,toolbar:{offered:l.offered,colors:l.offered.length>0?df(ff(S)):void 0,colorNameOf:lf}}:null};return{at:n=>{let s=n.closest(`[${Ue}]`),l=s?.getAttribute(Ue);return s&&l?a(l,s):null},atSelection:()=>{let n=r.current.parts.selectedPartId;return n?a(n,null):null},onCopyText:n=>C0(n,o),copyValue:n=>w0(n,o),onChange:n=>{if(!n.typing){lh(null);return}let s=n.element.closest(`[${Ue}]`)?.getAttribute(Ue)??null;lh(s),s&&r.current.parts.selectedPartId!==s&&r.current.parts.select(s)}}},[o,e])}var Mu=[{key:"about",label:"About",slugs:["about"]},{key:"contact",label:"Contact",slugs:["contact"]},{key:"faq",label:"FAQ",slugs:["faq"]},{key:"gallery",label:"Gallery",slugs:["gallery"]},{key:"store-locator",label:"Store locator",slugs:["store-locator"]},{key:"policies",label:"Policies",slugs:["warranty","shipping-returns","privacy-policy","terms-and-conditions"]}],bs="all",Hu="template";function iH(e){for(let o=0;o<Mu.length;o++){let t=Mu[o].slugs.indexOf(e);if(t>=0)return o*100+t}return Number.MAX_SAFE_INTEGER}function dH(e){return e.map((o,t)=>({s:o,i:t})).filter(({s:o})=>o.source==="library").sort((o,t)=>iH(o.s.slug)-iH(t.s.slug)||o.i-t.i).map(({s:o})=>o)}function Dy(e){return e.filter(o=>o.source==="template")}function fH(e){let o=new Set(dH(e).map(t=>t.slug));return Mu.filter(t=>t.slugs.some(r=>o.has(r)))}function cH(e,o){if(e===Hu)return Dy(o);let t=dH(o);if(e===bs)return t;let r=Mu.find(a=>a.key===e);return r?t.filter(a=>r.slugs.includes(a.slug)):[]}var pH=3;function uH(e,o){let t=Array.from({length:e},()=>[]);return o.forEach((r,a)=>t[a%e].push(r)),t}function IH({open:e,onClose:o,takenSlugs:t,onCreated:r}){let a=FJ(),{adapter:n,siteId:s,templateId:l}=AJ(),i=_o(a).pages,d=!l&&!!(i.starters&&i.createFromStarter),f=EJ(()=>s?{siteId:s}:{},[s]),m=WM(),u=Ry(),[h,I]=Ny(null),[S,P]=Ny(bs),[T,B]=Ny(null),k=_J(null),g=OJ();TJ(()=>{if(!e)return;if(P(bs),!d){I([]);return}let O=!0;return I(null),i.starters(f).then(C=>O&&I(C),()=>{O&&(I([]),hH.error(c("Couldn\u2019t load the pages \u2014 please retry.")))}),()=>{O=!1}},[e,d,i,f]);let b=async(O,C)=>{if(!T){B(O);try{r(await C())}catch{hH.error(c("Couldn\u2019t add the page \u2014 please retry."))}finally{B(null)}}},E=()=>{if(!n.createPage)return;let O=c("New page");b("blank",()=>n.createPage({slug:xH(O,t),title:O,layout:{}}))},A=O=>{b(O.id,()=>i.createFromStarter(O.id,{title:O.title,slug:xH(O.slug,t),...f}))},N=h??[],w=fH(N),_=cH(S,N),y=uH(pH,_),v=mH("nav",{"aria-label":c("Pages"),className:"sf-add-page-nav",children:[Oo(My,{label:c("All pages"),active:S===bs,onClick:()=>P(bs)}),w.map(O=>Oo(My,{label:c(O.label),active:S===O.key,onClick:()=>P(O.key)},O.key)),Dy(N).length>0?Oo("div",{className:"sf-add-page-group",children:Oo(My,{label:c("From your template"),active:S===Hu,onClick:()=>P(Hu)})}):null]});return Oo(RJ,{open:e,onClose:o,size:"full",title:c("Add page"),initialFocus:k,children:Oo(HJ,{sidebarTop:Oo("div",{className:"sf-add-page-blank",children:Oo(LJ,{variant:"secondary",size:"md",leftIcon:Oo(BJ,{"aria-hidden":!0}),onClick:E,disabled:!n.createPage||T!==null,children:c("Blank page")})}),sidebar:v,children:mH("div",{ref:k,tabIndex:-1,role:"region","aria-labelledby":g,className:"sf-add-page",children:[Oo(WJ,{id:g,level:2,as:"h3",children:c("Pages for your site")}),Oo(MJ,{tone:"default",className:"sf-add-page-sub",children:c("Choose a page and change the text, images and more.")}),h===null?Oo(NJ,{label:c("Loading\u2026")}):_.length===0?Oo(DJ,{title:c("No pages to start from"),description:c("Start with a blank page, then add sections.")}):Oo("div",{className:"sf-add-page-cards",children:y.map((O,C)=>Oo("div",{className:"sf-add-page-column",children:O.map(L=>Oo(FR,{starter:L,config:m,metadata:u,busy:T===L.id,onAdd:A},L.id))},C))})]})})})}import{jsx as $J}from"react/jsx-runtime";import{createContext as zJ,useContext as gH,useEffect as UJ,useRef as yH}from"react";var Hy=zJ(null);function zRe({open:e,children:o}){let t=yH(!!e);return $J(Hy.Provider,{value:t,children:o})}function SH(){let e=gH(Hy);return()=>e?.current?(e.current=!1,!0):!1}function bH(e){let o=gH(Hy),t=yH(e);t.current=e,UJ(()=>{o?.current&&(t.current.setView("pages"),t.current.reveal())},[o])}var TH="sf-editor-pages-collapsed-groups";function iQ(){let e=$y(),{siteId:o,templateId:t}=OH(),r=_o(e).pages;if(!(!r.duplicate||t))return(a,n)=>r.duplicate(a.id,{...n,...o?{siteId:o}:{}})}function EH({onNavigate:e,onClose:o,activeSurface:t,onPreviewSurface:r}){let a=$y().chrome?.pageRows,n=nQ(),{adapter:s,capabilities:l,ready:i,currentSlug:d}=OH(),f=Ln(),{rows:m,reload:u,setRows:h,getRows:I}=hl(),[S,P]=za(""),[T,B]=za(!1),[k,g]=za(null),[b,E]=za(!1),A=!!_o($y()).pages.createFromStarter,N=iQ(),[w,_]=za(null),[y,v]=za(()=>{if(typeof window>"u")return new Set;try{let $=window.localStorage.getItem(TH);return new Set($?JSON.parse($):[])}catch{return new Set}});wH(()=>{try{window.localStorage.setItem(TH,JSON.stringify([...y]))}catch{}},[y]);let O=$=>v(de=>{let he=new Set(de);return he.has($)?he.delete($):he.add($),he}),C=CH(()=>FP(m??[]),[m]),L=S.trim().toLowerCase(),M=$=>!L||$.toLowerCase().includes(L),K=$=>L?!0:!y.has($),W=CH(()=>new Set((m??[]).map($=>$.slug)),[m]),se=()=>{if(l.pageCreationInAdminForm&&!A){n.send("storefront-editor:new-page");return}g(null),E(!0)},le=SH();wH(()=>{le()&&se()},[]);let ee=l.hasSiteSettings&&!!s.createPage,Ie=async()=>{if(!(!i||T||!s.createPage)){B(!0),g(null);try{let $=await s.createPage(gT(c("New popup"),W));await u(),e($.slug)}catch{g(c("Couldn\u2019t add the popup \u2014 please retry."))}finally{B(!1)}}},ae=KJ(null),[me,ge]=za(null),Ge=()=>{if(!ee)return se();if(me)return ge(null);let $=ae.current?.getBoundingClientRect();$&&ge({top:$.bottom+6,right:Math.max(8,window.innerWidth-$.right)})},Ve=$=>{let de=m??[],he=s.deletePage;if(!i||T||!he||de.length<=1)return;let De=de.findIndex(ve=>ve.id===$.id),ie=de.filter(ve=>ve.id!==$.id),Ne=$.slug===d;Vf($.id,!0),h(ie),g(null),Ne&&ie[0]&&e(ie[0].slug);let wo=()=>{Vf($.id,!1);let ve=I()??[];if(ve.some(Ja=>Ja.id===$.id))return;let Rt=[...ve];Rt.splice(Math.max(0,Math.min(De,Rt.length)),0,$),h(Rt)};vH.undoable(c("Deleted \u201C{name}\u201D",{name:$.label}),{actionLabel:c("Undo"),commit:async ve=>{await he($.id,ve),Vf($.id,!1)},undo:()=>{wo(),Ne&&e($.slug)},onFail:()=>{wo(),vH.error(c("Couldn\u2019t delete the page \u2014 please retry."))}})},Eo=$=>n.send("storefront-editor:open-page",{slug:$}),Ye=$=>{if(!M($.label))return null;let de=!t&&$.slug===d,he=l.canDeletePagesInline&&(m??[]).length>1,De=vf($),ie=AP($),Ne=[...De?[{label:c("Dynamic"),tone:"info"}]:[],...ie?[{label:c("Lightbox"),tone:"success"}]:[],...$.draft?[{label:c("draft"),tone:"draft"}]:[]],wo=Ne.length>0?Ne:void 0,ve=!!N&&sQ($),Rt=ve||l.pageCreationInAdminForm||he?Wu(jJ,{children:[ve&&Pe($u,{kind:"plain",label:c("Duplicate \u201C{name}\u201D",{name:$.label}),disabled:T,onClick:()=>_($),children:Pe(oQ,{size:13})}),l.pageCreationInAdminForm&&Pe($u,{kind:"plain",label:c("Page settings for \u201C{name}\u201D",{name:$.label}),onClick:()=>Eo($.slug),children:Pe(rQ,{size:13})}),he&&Pe($u,{kind:"delete",label:c("Delete \u201C{name}\u201D",{name:$.label}),disabled:T,onClick:()=>Ve($),children:Pe(Wy,{name:"trash",size:13,strokeWidth:1.7,rounded:!0})})]}):void 0;return Pe(PH,{icon:Pe(tQ,{size:14}),name:$.label,selected:de,onSelect:()=>e($.slug),badge:wo,actions:Rt,rowProps:{"data-page-slug":$.slug}},$.id)},Je=($,de,he)=>{let De=he.filter(Boolean);if(De.length===0)return null;let ie=K($);return Wu(GJ,{children:[Pe(QJ,{count:De.length,countLabel:$t("{n} page","{n} pages",De.length),expanded:ie,onToggle:()=>O($),children:de}),ie&&De]},$)},qo=(a?.rows??[]).filter($=>M($.label)).map($=>{let de=t===$.key;return Pe(PH,{icon:$.icon,name:$.label,selected:de,onSelect:()=>r($.key),badge:{label:c("Preview"),tone:"warning"},actions:Pe($u,{kind:"plain",label:c("Open the {name} in a new tab",{name:$.label}),onClick:()=>window.open($.href,"_blank","noopener,noreferrer"),children:Pe(Wy,{name:"external-link",size:13,strokeWidth:1.7,rounded:!0})}),rowProps:{"data-shop-surface":$.key}},$.key)}),Qe=l.hasSiteSettings&&!!a,mo=(()=>{if(m===null)return null;let $=[],de=!1;for(let he of C){Qe&&!de&&he.key.startsWith("system:")&&($.push(Je("shop",a.title,qo)),de=!0);let De=he.key===_P||he.label===EP?c(he.label):he.label;$.push(Je(he.key,De,he.rows.map(Ye)))}return Qe&&!de&&$.push(Je("shop",a.title,qo)),$})();return Wu("div",{className:"sf-pages",children:[Pe(qJ,{icon:Pe(aQ,{}),title:c("Pages"),context:f,actions:Pe(VJ,{buttonRef:ae,label:ee?c("Add"):c("New page"),hasPopup:ee?"menu":void 0,expanded:ee?me!==null:void 0,onClick:Ge,children:Pe(eQ,{size:15})})}),me&&Pe(ZJ,{portal:!0,style:{top:me.top,right:me.right},onClose:()=>ge(null),children:Wu("div",{role:"menu","aria-label":c("Add"),children:[Pe(kH,{role:"menuitem",onClick:()=>{ge(null),se()},children:c("Page")}),Pe(kH,{role:"menuitem",disabled:T,onClick:()=>{ge(null),Ie()},children:c("Popup")})]})}),Pe("div",{className:"sf-pages-find",children:Pe(YJ,{type:"search",leftIcon:Pe(Wy,{name:"search",size:14,rounded:!0}),placeholder:c("Search all pages\u2026"),value:S,onChange:$=>P($.target.value),"aria-label":c("Search all pages")})}),k&&!b&&Pe("div",{className:"sf-note sf-note--error",role:"alert",children:k}),mo===null?Pe(XJ,{label:c("Loading\u2026")}):mo.some(Boolean)?Pe(JJ,{ariaLabel:c("Pages"),className:"sf-scroll",children:mo}):Pe("div",{className:"sf-note",children:S.trim()?c("No pages match your search"):c("No pages yet. Add one with + above.")}),N&&w&&Pe(lQ,{source:{title:w.label,slug:w.slug},taken:W,host:yf(),duplicate:$=>N(w,$),onClose:()=>_(null),onDuplicated:$=>{_(null),u(),e($.slug)}},w.id),b?Pe(IH,{open:!0,onClose:()=>E(!1),takenSlugs:W,onCreated:$=>{E(!1),u(),e($.slug)}}):null]})}import{jsx as FH}from"react/jsx-runtime";import{createContext as pQ,useCallback as uQ,useContext as mQ,useMemo as xQ,useState as hQ}from"react";import{CanvasChromeContext as IQ}from"efficient-easel/easel";import{useSelectHandler as gQ}from"efficient-easel/draw/client";import{parseHexColor as dQ,parseOption as fQ}from"efficient-shell/format";var zu=["chat-bubble-left-right","chat-bubble-oval-left-ellipsis","chat","megaphone","phone","sparkles"],ws=zu[0],cQ=["right","left"],Ua="right";function Uu(e){return zu.includes(e??"")?e:ws}function _H(e){return fQ(cQ,Ua,e)}function AH(e){return e&&dQ(e)===e.toLowerCase()?e.toLowerCase():""}var BH="chat",ju={enabled:!0,title:"",subtitle:"",greeting:"",launcherColor:"",launcherIcon:"",launcherPosition:Ua,launcherLabel:"",showOnPhones:!0};function SDe(e){return{enabled:e.enabled,title:e.title,subtitle:e.subtitle,greeting:e.greeting,launcherColor:AH(e.launcherColor),launcherIcon:e.launcherIcon?Uu(e.launcherIcon):"",launcherPosition:_H(e.launcherPosition),launcherLabel:e.launcherLabel??"",showOnPhones:e.showOnPhones!==!1}}var LH=pQ({chat:ju,setChat:()=>{},setSelected:()=>{},setSelectHandler:()=>{}});function bDe({children:e,chat:o=ju,onChatChange:t}){let[r,a]=hQ(!1),n=uQ(d=>t?.(d),[t]),{select:s,setSelectHandler:l}=gQ(),i=xQ(()=>({selected:()=>r?BH:null,select:d=>d===BH&&s()}),[r,s]);return FH(LH.Provider,{value:{chat:o,setChat:n,setSelected:a,setSelectHandler:l},children:FH(IQ.Provider,{value:i,children:e})})}var Gu=()=>mQ(LH);import{jsx as zy}from"react/jsx-runtime";import{DesktopIcon as yQ,PhoneIcon as SQ,TabletIcon as bQ}from"efficient-easel/icons";import{VIEW_TIERS as wQ,VIEW_TIER_LABEL as CQ}from"efficient-easel/draw";var kQ={desktop:zy(yQ,{}),tablet:zy(bQ,{}),mobile:zy(SQ,{})},RH=wQ.map(e=>({id:e,get label(){return c(CQ[e])},icon:kQ[e]}));import{PreviewDeviceContext as Nne}from"efficient-easel/draw/client";import{jsx as vQ}from"react/jsx-runtime";import{createContext as PQ,useCallback as DH,useContext as TQ,useMemo as OQ,useRef as EQ}from"react";var _Q=Object.fromEntries(Nf.map(e=>[e,{value:"",error:null}])),NH=PQ({links:zT,rows:_Q,canSave:!1,saveLink:async()=>({ok:!1,error:"There is no website to save to."}),openPanel:()=>{},setOpenHandler:()=>{}});function ADe({children:e,value:o}){let t=EQ(()=>{}),r=DH(()=>t.current(),[]),a=DH(s=>{t.current=s},[]),n=OQ(()=>({...o,openPanel:r,setOpenHandler:a}),[o,r,a]);return vQ(NH.Provider,{value:n,children:e})}var Bi=()=>TQ(NH);import{jsx as AQ}from"react/jsx-runtime";import{createContext as FQ,useContext as BQ,useMemo as LQ,useState as RQ}from"react";var MH=FQ(null);function RDe({children:e}){let[o,t]=RQ(null),r=LQ(()=>({surface:o,setSurface:t}),[o]);return AQ(MH.Provider,{value:r,children:e})}function HH(){return BQ(MH)??{surface:null,setSurface:()=>{}}}import{createPreviewSelectionContext as DQ}from"efficient-easel/draw/client";var{Provider:MDe,useSelection:Ku}=DQ("selectedHeroPart");import{jsx as we,jsxs as Zr,Fragment as e5}from"react/jsx-runtime";import{useEasel as fre,useRootFields as cre}from"efficient-easel/easel";import{EmptyState as pre}from"efficient-shell/ui";function WH({kind:e,pageName:o}){return{name:o?.trim()||c("This page"),kindLabel:vf({kind:e})?c("Template"):c("Page")}}import{headWords as a5,InspectorHead as ure,InspectorIconButton as o5}from"efficient-easel/chrome";import{DuplicateIcon as mre,TrashIcon as xre}from"efficient-easel/icons";import{panelFieldsOf as hre}from"efficient-easel/screen/lib/document/panel-fields";import{jsx as D,Fragment as ue,jsxs as xe}from"react/jsx-runtime";import{BlockBannerIcon as HQ,BlockBoxIcon as WQ,BlockButtonIcon as $Q,BlockDividerIcon as zH,BlockFooterIcon as UH,BlockHeadingIcon as zQ,BlockProductIcon as UQ,BlockSocialIcon as jQ,BlockTextIcon as GQ,CardPaymentIcon as KQ,ChatIcon as qQ,AccountIcon as VQ,GlobeIcon as YQ,GridIcon as XQ,ImageIcon as jy,MapIcon as ZQ,MediaIcon as JQ,PageIcon as QQ}from"efficient-easel/icons";import{jsx as Uy,Fragment as NQ,jsxs as MQ}from"react/jsx-runtime";var $H=MQ(NQ,{children:[Uy("circle",{cx:"9",cy:"20",r:"1.3"}),Uy("circle",{cx:"18",cy:"20",r:"1.3"}),Uy("path",{d:"M2.5 3.5h3l2.3 11.3a1.6 1.6 0 0 0 1.6 1.3h8.1a1.6 1.6 0 0 0 1.6-1.2L21 7H6"})]});var eee={header:xe(ue,{children:[D("rect",{x:"3",y:"5",width:"18",height:"14",rx:"2"}),D("path",{d:"M3 9.5h18"})]}),social:xe(ue,{children:[D("circle",{cx:"6",cy:"12",r:"2.5"}),D("circle",{cx:"18",cy:"6",r:"2.5"}),D("circle",{cx:"18",cy:"18",r:"2.5"}),D("path",{d:"M8.2 10.8l7.6-3.6M8.2 13.2l7.6 3.6"})]}),ticker:xe(ue,{children:[D("rect",{x:"3",y:"8.5",width:"18",height:"7",rx:"2"}),D("path",{d:"M6 12h3.5M11.5 12h2M15.5 12h2.5"})]}),FooterLogo:xe(ue,{children:[D("path",{d:"M4 15.5h6M4 18h4"}),D("path",{d:"M14 8.5l3 7 3-7"})]}),FooterMenu:D("path",{d:"M6 7h12M6 11h12M6 15h8M6 19h8"}),FooterGroup:xe(ue,{children:[D("rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",strokeDasharray:"3 2.5"}),D("path",{d:"M8 9h8M8 13h8M8 16h5"})]}),FooterText:D("path",{d:"M5 7h14M5 12h14M5 17h9"}),FooterEmailSignup:xe(ue,{children:[D("rect",{x:"3",y:"6",width:"18",height:"12",rx:"2"}),D("path",{d:"M3.5 7l8.5 6 8.5-6"})]}),SearchBlock:xe(ue,{children:[D("circle",{cx:"11",cy:"11",r:"6"}),D("path",{d:"M20 20l-4.2-4.2"})]}),CartBlock:$H,CountrySwitchBlock:xe(ue,{children:[D("circle",{cx:"12",cy:"12",r:"8.5"}),D("path",{d:"M3.5 12h17M12 3.5c2.6 2.4 3.6 5.2 3.6 8.5s-1 6.1-3.6 8.5M12 3.5c-2.6 2.4-3.6 5.2-3.6 8.5s1 6.1 3.6 8.5"})]}),ThemeSwitchBlock:xe(ue,{children:[D("circle",{cx:"12",cy:"12",r:"8.5"}),D("path",{d:"M12 3.5v17M12 5.5l6 6M12 10.5l5.2 5.2M12 15.5l2.8 2.8"})]}),LegalLineBlock:xe(ue,{children:[D("path",{d:"M3 9h18"}),D("path",{d:"M3 14h8M14 14h2M18 14h3"})]}),Hero:xe(ue,{children:[D("rect",{x:"3",y:"4",width:"18",height:"16",rx:"2"}),D("path",{d:"M7 13.5h7M7 16.5h10"})]}),HeroSlide:xe(ue,{children:[D("rect",{x:"3",y:"5",width:"18",height:"14",rx:"2"}),D("path",{d:"M7 15h6M16 9.5h.01M9.5 12l-2.5 3"})]}),HeroSingle:xe(ue,{children:[D("rect",{x:"3",y:"4",width:"18",height:"16",rx:"2"}),D("path",{d:"M10.5 8.5l4 2.5-4 2.5z"}),D("path",{d:"M7 17h7"})]}),Collections:xe(ue,{children:[D("rect",{x:"3",y:"5",width:"4.6",height:"14",rx:"1.3"}),D("rect",{x:"9.7",y:"5",width:"4.6",height:"14",rx:"1.3"}),D("rect",{x:"16.4",y:"5",width:"4.6",height:"14",rx:"1.3"})]}),CollectionCard:xe(ue,{children:[D("rect",{x:"6",y:"4",width:"12",height:"16",rx:"2"}),D("path",{d:"M9 15h6M9 17.5h4"})]}),AlloyWheelsListing:xe(ue,{children:[D("path",{d:"M3 5h5M3 9h5M3 13h5M3 17h5"}),D("rect",{x:"11.5",y:"5",width:"4.2",height:"5",rx:"1"}),D("rect",{x:"17.3",y:"5",width:"4.2",height:"5",rx:"1"}),D("rect",{x:"11.5",y:"12",width:"4.2",height:"5",rx:"1"}),D("rect",{x:"17.3",y:"12",width:"4.2",height:"5",rx:"1"})]}),CatalogFilterBar:xe(ue,{children:[D("path",{d:"M3 7h9M15.5 7H21"}),D("circle",{cx:"13.5",cy:"7",r:"1.7"}),D("path",{d:"M3 12h4M10.5 12H21"}),D("circle",{cx:"8.5",cy:"12",r:"1.7"}),D("path",{d:"M3 17h9M15.5 17H21"}),D("circle",{cx:"13.5",cy:"17",r:"1.7"})]}),ProductGrid:xe(ue,{children:[D("rect",{x:"3",y:"5",width:"4.8",height:"6",rx:"1"}),D("rect",{x:"9.6",y:"5",width:"4.8",height:"6",rx:"1"}),D("rect",{x:"16.2",y:"5",width:"4.8",height:"6",rx:"1"}),D("rect",{x:"3",y:"13",width:"4.8",height:"6",rx:"1"}),D("rect",{x:"9.6",y:"13",width:"4.8",height:"6",rx:"1"}),D("rect",{x:"16.2",y:"13",width:"4.8",height:"6",rx:"1"})]}),RelatedProducts:xe(ue,{children:[D("path",{d:"M3 5h10"}),D("rect",{x:"3",y:"9.5",width:"5",height:"9",rx:"1"}),D("rect",{x:"9.5",y:"9.5",width:"5",height:"9",rx:"1"}),D("rect",{x:"16",y:"9.5",width:"5",height:"9",rx:"1"})]}),Gallery:xe(ue,{children:[D("rect",{x:"3",y:"4",width:"11",height:"16",rx:"2"}),D("rect",{x:"15.5",y:"4",width:"5.5",height:"7.5",rx:"1.5"}),D("rect",{x:"15.5",y:"12.5",width:"5.5",height:"7.5",rx:"1.5"})]}),GalleryB:xe(ue,{children:[D("rect",{x:"3.5",y:"4",width:"7.5",height:"7.5",rx:"1.5"}),D("rect",{x:"13",y:"4",width:"7.5",height:"7.5",rx:"1.5"}),D("rect",{x:"3.5",y:"12.5",width:"7.5",height:"7.5",rx:"1.5"}),D("rect",{x:"13",y:"12.5",width:"7.5",height:"7.5",rx:"1.5"})]}),GalleryItem:xe(ue,{children:[D("rect",{x:"4",y:"5",width:"16",height:"14",rx:"2"}),D("circle",{cx:"9",cy:"10",r:"1.6"}),D("path",{d:"M20 15.5l-4.5-4L7 19"})]}),Events:xe(ue,{children:[D("rect",{x:"4",y:"5",width:"16",height:"15",rx:"2"}),D("path",{d:"M4 9.5h16M8.5 3v4M15.5 3v4M8 14h2M14 14h2"})]}),PostCard:xe(ue,{children:[D("rect",{x:"4",y:"3.5",width:"16",height:"17",rx:"2"}),D("rect",{x:"6.5",y:"6",width:"11",height:"6",rx:"1"}),D("path",{d:"M6.5 14.5h11M6.5 17.5h7"})]}),Manifesto:xe(ue,{children:[D("path",{d:"M7 8h3.2v4c0 1.6-1 2.6-3 3.2"}),D("path",{d:"M14 8h3.2v4c0 1.6-1 2.6-3 3.2"})]}),Stats:xe(ue,{children:[D("path",{d:"M3.5 20h17"}),D("path",{d:"M6 20v-7M11 20V7M16 20v-5M20.5 20v-9"})]}),Logos:xe(ue,{children:[D("circle",{cx:"6",cy:"12",r:"2.6"}),D("rect",{x:"10",y:"9.4",width:"5.2",height:"5.2",rx:"1.2"}),D("path",{d:"M19 9.2l2.4 5h-4.8z"})]}),Ticker:xe(ue,{children:[D("rect",{x:"3",y:"8.5",width:"18",height:"7",rx:"2"}),D("path",{d:"M6 12h3.5M11.5 12h2M15.5 12h2.5"})]}),SectionHeader:xe(ue,{children:[D("rect",{x:"3.5",y:"6",width:"5",height:"5",rx:"1.2"}),D("path",{d:"M11 8.5h9M3.5 15.5h17"})]}),IntroBleed:xe(ue,{children:[D("rect",{x:"3",y:"4",width:"18",height:"16",rx:"2"}),D("path",{d:"M3 13.5h18M7 16.8h6"})]}),Split:xe(ue,{children:[D("rect",{x:"3",y:"5",width:"8",height:"14",rx:"1.5"}),D("path",{d:"M14 8.5h6M14 12h6M14 15.5h4"})]}),Eyebrow:xe(ue,{children:[D("path",{d:"M4 8.5h4.5M11 8.5h9"}),D("path",{d:"M4 14.5h16"})]}),HeroGroup:xe(ue,{children:[D("rect",{x:"3.5",y:"4.5",width:"17",height:"15",rx:"2"}),D("path",{d:"M7 9h8M7 12.5h10M7 16h6"})]}),Form:xe(ue,{children:[D("rect",{x:"3",y:"4",width:"18",height:"16",rx:"2"}),D("path",{d:"M6.5 9h11M6.5 12.5h11"}),D("rect",{x:"6.5",y:"15",width:"6.5",height:"2.6",rx:"1.3"})]}),LogoBlock:D(ue,{children:D("path",{d:"M12 3.5l7.5 3.2v5.1c0 4.2-3.2 7.1-7.5 8.7-4.3-1.6-7.5-4.5-7.5-8.7V6.7z"})}),Spacer:xe(ue,{children:[D("path",{d:"M12 4v6M9.5 6.5L12 4l2.5 2.5M12 20v-6M9.5 17.5L12 20l2.5-2.5"}),D("path",{d:"M5 13h14",strokeDasharray:"2 2.5"})]}),ContactRouting:xe(ue,{children:[D("rect",{x:"3",y:"4",width:"5",height:"5",rx:"1"}),D("rect",{x:"9.5",y:"4",width:"5",height:"5",rx:"1"}),D("rect",{x:"16",y:"4",width:"5",height:"5",rx:"1"}),D("path",{d:"M4 13.5h11M4 17.5h7"}),D("path",{d:"M17 15l3 2-3 2"})]}),Contents:xe(ue,{children:[D("path",{d:"M4 7h2M4 12h2M4 17h2"}),D("path",{d:"M9 7h11M9 12h9M9 17h10"})]}),ListSearch:xe(ue,{children:[D("path",{d:"M4 6h9M4 11h5M4 16h5"}),D("circle",{cx:"15",cy:"15",r:"4"}),D("path",{d:"M20.5 20.5l-2.7-2.7"})]}),CustomHTML:D("path",{d:"M9 8l-4 4 4 4M15 8l4 4-4 4"})},oee=D("rect",{x:"4",y:"4",width:"16",height:"16",rx:"2.5"}),tee={footer:UH,Footer:UH,Divider:zH,FooterDivider:zH,Banner:HQ,Flex:WQ,FooterSocial:jQ,FooterPayment:KQ,page:QQ,website:YQ,AccountBlock:VQ,chat:qQ,Heading:zQ,Text:GQ,ImageBlock:jy,ButtonBlock:$Q,LocationMap:ZQ,Grid:XQ,ProductRef:UQ,heroMedia:JQ,heroImage:jy,heroImage2:jy},ree={MenuBlock:"FooterMenu",EmailFormBlock:"FooterEmailSignup",SocialLogosBlock:"FooterSocial",PaymentLogosBlock:"FooterPayment",SiteHeader:"header",SiteFooter:"footer"};function ja({type:e,size:o=16,className:t}){let r=ree[e]??e,a=tee[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:eee[r]??oee})}import{PanelHideButton as t5}from"efficient-easel/screen/components/SidePanelHead";import{useEaselSession as Ire}from"efficient-easel/screen/lib/session-context";import{jsx as be,jsxs as Li,Fragment as aee}from"react/jsx-runtime";import{useEffect as nee,useId as jH,useState as see}from"react";import{IconPicker as lee}from"efficient-shell/ui";import{SettingsDefaultReset as iee,SettingsField as Ri,SettingsSegmented as dee,SettingsSwitch as GH}from"efficient-easel/panel";import{ButtonIcon as fee,ButtonIconIcon as cee,EyeIcon as pee,PhoneIcon as uee,PlacementIcon as mee,TypeIcon as xee}from"efficient-easel/icons";var hee="Chat with us",Iee="We usually reply within a few minutes",gee="Hi! Ask us anything \u2014 about a wheel, an order, or fitment. Leave your details and we\u2019ll reply.";function qu({label:e,value:o,placeholder:t,onCommit:r,multiline:a=!1,hint:n}){let[s,l]=see(o);nee(()=>l(o),[o]);let i=()=>{s!==o&&r(s)};return be(Ri,{label:e,icon:be(xee,{}),changed:o!=="",action:be(Di,{label:e,changed:o!=="",onReset:()=>r("")}),hint:n,children:a?be("textarea",{value:s,placeholder:t,rows:3,onChange:d=>l(d.target.value),onBlur:i,"aria-label":e}):be("input",{type:"text",value:s,placeholder:t,onChange:d=>l(d.target.value),onBlur:i,onKeyDown:d=>{d.key==="Enter"&&d.currentTarget.blur()},"aria-label":e,autoComplete:"off"})})}function Di({label:e,changed:o,onReset:t}){return be(iee,{words:sC()?.panel,label:e,changed:o,onReset:t})}function yee({label:e,icon:o,checked:t,fallback:r,onChange:a,hint:n}){let s=jH();return be(Ri,{label:e,labelId:s,icon:o,changed:t!==r,action:Li("span",{className:"inline-flex items-center gap-2",children:[be(GH,{checked:t,onChange:a,ariaLabelledBy:s}),be(Di,{label:e,changed:t!==r,onReset:()=>a(r)})]}),hint:n})}var See=zu.map(e=>({value:e,icon:iT(e)}));function bee(){let{theme:e}=vo(),o=sr(e).themes[0];return Ww(o)??o?.accent??""}function KH(){let{chat:e,setChat:o}=Gu(),t=jH(),r=bee(),a=e.launcherIcon?Uu(e.launcherIcon):ws;return Li(aee,{children:[be(Ri,{label:c("Show the chat bubble"),labelId:t,icon:be(pee,{}),changed:!e.enabled,action:Li("span",{className:"inline-flex items-center gap-2",children:[be(GH,{checked:e.enabled,onChange:n=>o({enabled:n}),ariaLabelledBy:t}),be(Di,{label:c("Show the chat bubble"),changed:!e.enabled,onReset:()=>o({enabled:!0})})]}),hint:e.enabled?c("The floating chat bubble shows in the corner of every page."):c("The chat bubble is hidden across the whole site.")}),Li(Mx,{title:c("Look"),children:[be(fT,{label:c("Button color"),icon:be(fee,{}),changed:e.launcherColor!=="",value:e.launcherColor,inherited:r,caption:e.launcherColor?void 0:c("Site button color"),onChange:n=>o({launcherColor:n}),onReset:()=>o({launcherColor:""})}),be(Ri,{label:c("Icon"),icon:be(cee,{}),value:be(YP,{value:a}),changed:a!==ws,action:be(Di,{label:c("Icon"),changed:a!==ws,onReset:()=>o({launcherIcon:""})}),children:be(lee,{label:c("Icon"),value:a,options:See,onChange:n=>o({launcherIcon:n===ws?"":n})})}),be(Ri,{label:c("Position"),icon:be(mee,{}),changed:e.launcherPosition!==Ua,action:be(Di,{label:c("Position"),changed:e.launcherPosition!==Ua,onReset:()=>o({launcherPosition:Ua})}),children:be(dee,{options:[{label:c("Right"),id:"right"},{label:c("Left"),id:"left"}],value:e.launcherPosition,ariaLabel:c("Position"),onChange:n=>o({launcherPosition:n})})}),be(qu,{label:c("Label"),value:e.launcherLabel,placeholder:c("Icon only"),onCommit:n=>o({launcherLabel:n}),hint:c("Shows when a visitor points at the button")}),be(yee,{label:c("Show on phones"),icon:be(uee,{}),checked:e.showOnPhones,fallback:ju.showOnPhones,onChange:n=>o({showOnPhones:n})})]}),Li(Mx,{title:c("Wording"),children:[be(qu,{label:c("Title"),value:e.title,placeholder:hee,onCommit:n=>o({title:n})}),be(qu,{label:c("Subtitle"),value:e.subtitle,placeholder:Iee,onCommit:n=>o({subtitle:n})}),be(qu,{label:c("Greeting message"),value:e.greeting,placeholder:gee,onCommit:n=>o({greeting:n}),multiline:!0}),be("p",{className:"es-field-hint",children:c("Leave a field blank to use the built-in wording.")})]})]})}import{jsx as Ga,Fragment as pS,jsxs as ZH}from"react/jsx-runtime";import{useEffect as Zee,useId as YH,useState as XH}from"react";import{SettingsField as Jee}from"efficient-easel/panel";import{jsx as zee}from"react/jsx-runtime";import{forwardRef as wee,createElement as Gy}from"react";var qH={outline:{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"},filled:{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",stroke:"none"}};var ne=(e,o,t,r)=>{let a=wee(({color:n="currentColor",size:s=24,stroke:l=2,title:i,className:d,children:f,...m},u)=>Gy("svg",{ref:u,...qH[e],width:s,height:s,className:["tabler-icon",`tabler-icon-${o}`,d].filter(Boolean).join(" "),...e==="filled"?{fill:n}:{strokeWidth:l,stroke:n},...m},[i&&Gy("title",{key:"svg-title"},i),...r.map(([h,I])=>Gy(h,I)),...Array.isArray(f)?f:[f]]));return a.displayName=`${t}`,a};var Cee=[["path",{d:"M7 10v4h3v7h4v-7h3l1 -4h-4v-2a1 1 0 0 1 1 -1h3v-4h-3a5 5 0 0 0 -5 5v2h-3",key:"svg-0"}]],Ky=ne("outline","brand-facebook","BrandFacebook",Cee);var kee=[["path",{d:"M3 7a4 4 0 0 1 4 -4h10a4 4 0 0 1 4 4v10a4 4 0 0 1 -4 4h-10a4 4 0 0 1 -4 -4l0 -10",key:"svg-0"}],["path",{d:"M8.5 12a3.5 3.5 0 1 0 7 0a3.5 3.5 0 0 0 -7 0",key:"svg-1"}],["path",{d:"M17 7v.01",key:"svg-2"}]],qy=ne("outline","brand-instagram","BrandInstagram",kee);var vee=[["path",{d:"M21 10.663c0 -4.224 -4.041 -7.663 -9 -7.663s-9 3.439 -9 7.663c0 3.783 3.201 6.958 7.527 7.56c1.053 .239 .932 .644 .696 2.133c-.039 .238 -.184 .932 .777 .512c.96 -.42 5.18 -3.201 7.073 -5.48c1.304 -1.504 1.927 -3.029 1.927 -4.715v-.01",key:"svg-0"}]],Vy=ne("outline","brand-line","BrandLine",vee);var Pee=[["path",{d:"M8 11v5",key:"svg-0"}],["path",{d:"M8 8v.01",key:"svg-1"}],["path",{d:"M12 16v-5",key:"svg-2"}],["path",{d:"M16 16v-3a2 2 0 1 0 -4 0",key:"svg-3"}],["path",{d:"M3 7a4 4 0 0 1 4 -4h10a4 4 0 0 1 4 4v10a4 4 0 0 1 -4 4h-10a4 4 0 0 1 -4 -4l0 -10",key:"svg-4"}]],Yy=ne("outline","brand-linkedin","BrandLinkedin",Pee);var Tee=[["path",{d:"M8 20l4 -9",key:"svg-0"}],["path",{d:"M10.7 14c.437 1.263 1.43 2 2.55 2c2.071 0 3.75 -1.554 3.75 -4a5 5 0 1 0 -9.7 1.7",key:"svg-1"}],["path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 1 0 -18 0",key:"svg-2"}]],Xy=ne("outline","brand-pinterest","BrandPinterest",Tee);var Oee=[["path",{d:"M15 10l-4 4l6 6l4 -16l-18 7l4 2l2 6l3 -4",key:"svg-0"}]],Zy=ne("outline","brand-telegram","BrandTelegram",Oee);var Eee=[["path",{d:"M21 7.917v4.034a9.948 9.948 0 0 1 -5 -1.951v4.5a6.5 6.5 0 1 1 -8 -6.326v4.326a2.5 2.5 0 1 0 4 2v-11.5h4.083a6.005 6.005 0 0 0 4.917 4.917",key:"svg-0"}]],Jy=ne("outline","brand-tiktok","BrandTiktok",Eee);var _ee=[["path",{d:"M16.5 10c3.038 0 5.5 2.015 5.5 4.5c0 1.397 -.778 2.645 -2 3.47l0 2.03l-1.964 -1.178a6.649 6.649 0 0 1 -1.536 .178c-3.038 0 -5.5 -2.015 -5.5 -4.5s2.462 -4.5 5.5 -4.5",key:"svg-0"}],["path",{d:"M11.197 15.698c-.69 .196 -1.43 .302 -2.197 .302a8.008 8.008 0 0 1 -2.612 -.432l-2.388 1.432v-2.801c-1.237 -1.082 -2 -2.564 -2 -4.199c0 -3.314 3.134 -6 7 -6c3.782 0 6.863 2.57 7 5.785l0 .233",key:"svg-1"}],["path",{d:"M10 8h.01",key:"svg-2"}],["path",{d:"M7 8h.01",key:"svg-3"}],["path",{d:"M15 14h.01",key:"svg-4"}],["path",{d:"M18 14h.01",key:"svg-5"}]],Qy=ne("outline","brand-wechat","BrandWechat",_ee);var Aee=[["path",{d:"M3 21l1.65 -3.8a9 9 0 1 1 3.4 2.9l-5.05 .9",key:"svg-0"}],["path",{d:"M9 10a.5 .5 0 0 0 1 0v-1a.5 .5 0 0 0 -1 0v1a5 5 0 0 0 5 5h1a.5 .5 0 0 0 0 -1h-1a.5 .5 0 0 0 0 1",key:"svg-1"}]],eS=ne("outline","brand-whatsapp","BrandWhatsapp",Aee);var Fee=[["path",{d:"M4 4l11.733 16h4.267l-11.733 -16l-4.267 0",key:"svg-0"}],["path",{d:"M4 20l6.768 -6.768m2.46 -2.46l6.772 -6.772",key:"svg-1"}]],oS=ne("outline","brand-x","BrandX",Fee);var Bee=[["path",{d:"M2 8a4 4 0 0 1 4 -4h12a4 4 0 0 1 4 4v8a4 4 0 0 1 -4 4h-12a4 4 0 0 1 -4 -4v-8",key:"svg-0"}],["path",{d:"M10 9l5 3l-5 3l0 -6",key:"svg-1"}]],tS=ne("outline","brand-youtube","BrandYoutube",Bee);var Lee=[["path",{d:"M18 2a1 1 0 0 1 .993 .883l.007 .117v4a1 1 0 0 1 -.883 .993l-.117 .007h-3v1h3a1 1 0 0 1 .991 1.131l-.02 .112l-1 4a1 1 0 0 1 -.858 .75l-.113 .007h-2v6a1 1 0 0 1 -.883 .993l-.117 .007h-4a1 1 0 0 1 -.993 -.883l-.007 -.117v-6h-2a1 1 0 0 1 -.993 -.883l-.007 -.117v-4a1 1 0 0 1 .883 -.993l.117 -.007h2v-1a6 6 0 0 1 5.775 -5.996l.225 -.004h3z",key:"svg-0"}]],rS=ne("filled","brand-facebook-filled","BrandFacebookFilled",Lee);var Ree=[["path",{d:"M16 3a5 5 0 0 1 5 5v8a5 5 0 0 1 -5 5h-8a5 5 0 0 1 -5 -5v-8a5 5 0 0 1 5 -5zm-4 5a4 4 0 0 0 -3.995 3.8l-.005 .2a4 4 0 1 0 4 -4m4.5 -1.5a1 1 0 0 0 -.993 .883l-.007 .127a1 1 0 0 0 1.993 .117l.007 -.127a1 1 0 0 0 -1 -1",key:"svg-0"}]],aS=ne("filled","brand-instagram-filled","BrandInstagramFilled",Ree);var Dee=[["path",{d:"M17 2a5 5 0 0 1 5 5v10a5 5 0 0 1 -5 5h-10a5 5 0 0 1 -5 -5v-10a5 5 0 0 1 5 -5zm-9 8a1 1 0 0 0 -1 1v5a1 1 0 0 0 2 0v-5a1 1 0 0 0 -1 -1m6 0a3 3 0 0 0 -1.168 .236l-.125 .057a1 1 0 0 0 -1.707 .707v5a1 1 0 0 0 2 0v-3a1 1 0 0 1 2 0v3a1 1 0 0 0 2 0v-3a3 3 0 0 0 -3 -3m-6 -3a1 1 0 0 0 -.993 .883l-.007 .127a1 1 0 0 0 1.993 .117l.007 -.127a1 1 0 0 0 -1 -1",key:"svg-0"}]],nS=ne("filled","brand-linkedin-filled","BrandLinkedinFilled",Dee);var Nee=[["path",{d:"M17 3.34a10 10 0 0 1 -8.512 18.023l2.364 -5.315a3.5 3.5 0 0 0 2.398 .952c2.708 0 4.75 -2.089 4.75 -5a6 6 0 1 0 -11.64 2.041a1 1 0 1 0 1.88 -.682a4 4 0 1 1 7.76 -1.36c0 1.818 -1.156 3.001 -2.75 3.001c-.609 0 -1.153 -.361 -1.478 -1.022l1.142 -2.572a1 1 0 0 0 -1.828 -.812l-4.392 9.882a10 10 0 0 1 -4.694 -8.476l.005 -.324a10 10 0 0 1 14.995 -8.336",key:"svg-0"}]],sS=ne("filled","brand-pinterest-filled","BrandPinterestFilled",Nee);var Mee=[["path",{d:"M16.083 2h-4.083a1 1 0 0 0 -1 1v11.5a1.5 1.5 0 1 1 -2.519 -1.1l.12 -.1a1 1 0 0 0 .399 -.8v-4.326a1 1 0 0 0 -1.23 -.974a7.5 7.5 0 0 0 1.73 14.8l.243 -.005a7.5 7.5 0 0 0 7.257 -7.495v-2.7l.311 .153c1.122 .53 2.333 .868 3.59 .993a1 1 0 0 0 1.099 -.996v-4.033a1 1 0 0 0 -.834 -.986a5.005 5.005 0 0 1 -4.097 -4.096a1 1 0 0 0 -.986 -.835z",key:"svg-0"}]],lS=ne("filled","brand-tiktok-filled","BrandTiktokFilled",Mee);var Hee=[["path",{d:"M18.497 4.409a10 10 0 0 1 -10.36 16.828l-.223 -.098l-4.759 .849l-.11 .011a1 1 0 0 1 -.11 0l-.102 -.013l-.108 -.024l-.105 -.037l-.099 -.047l-.093 -.058l-.014 -.011l-.012 -.007l-.086 -.073l-.077 -.08l-.067 -.088l-.056 -.094l-.034 -.07l-.04 -.108l-.028 -.128l-.012 -.102a1 1 0 0 1 0 -.125l.012 -.1l.024 -.11l.045 -.122l1.433 -3.304l-.009 -.014a10 10 0 0 1 1.549 -12.454l.215 -.203a10 10 0 0 1 13.226 -.217m-8.997 3.09a1.5 1.5 0 0 0 -1.5 1.5v1a6 6 0 0 0 6 6h1a1.5 1.5 0 0 0 0 -3h-1l-.144 .007a1.5 1.5 0 0 0 -1.128 .697l-.042 .074l-.022 -.007a4.01 4.01 0 0 1 -2.435 -2.435l-.008 -.023l.075 -.041a1.5 1.5 0 0 0 .704 -1.272v-1a1.5 1.5 0 0 0 -1.5 -1.5",key:"svg-0"}]],iS=ne("filled","brand-whatsapp-filled","BrandWhatsappFilled",Hee);var Wee=[["path",{d:"M8.267 3a1 1 0 0 1 .73 .317l.076 .092l4.274 5.828l5.946 -5.944a1 1 0 0 1 1.497 1.32l-.083 .094l-6.163 6.162l6.262 8.54a1 1 0 0 1 -.697 1.585l-.109 .006h-4.267a1 1 0 0 1 -.73 -.317l-.076 -.092l-4.276 -5.829l-5.944 5.945a1 1 0 0 1 -1.497 -1.32l.083 -.094l6.161 -6.163l-6.26 -8.539a1 1 0 0 1 .697 -1.585l.109 -.006h4.267z",key:"svg-0"}]],dS=ne("filled","brand-x-filled","BrandXFilled",Wee);var $ee=[["path",{d:"M18 3a5 5 0 0 1 5 5v8a5 5 0 0 1 -5 5h-12a5 5 0 0 1 -5 -5v-8a5 5 0 0 1 5 -5zm-9 6v6a1 1 0 0 0 1.514 .857l5 -3a1 1 0 0 0 0 -1.714l-5 -3a1 1 0 0 0 -1.514 .857z",key:"svg-0"}]],fS=ne("filled","brand-youtube-filled","BrandYoutubeFilled",$ee);var bMe="outline",Vu={fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},Uee={},cS={fillRule:"evenodd"},jee=[["path",{...Vu,d:"M21 4L3 11L7 13L9 19L12 15L17 20z"}],["path",{...cS,d:"M21 4L3 11L7 13L9 19L12 15L17 20zM15.212 8.939 10.576 13.576 11.424 14.424 16.061 9.788z"}]],Gee=[["path",{...Vu,d:["M21 10.663c0 -4.224 -4.041 -7.663 -9 -7.663s-9 3.439 -9 7.663","c0 3.783 3.201 6.958 7.527 7.56c1.053 .239 .932 .644 .696 2.133","c-.039 .238 -.184 .932 .777 .512c.96 -.42 5.18 -3.201 7.073 -5.48","c1.304 -1.504 1.927 -3.029 1.927 -4.715v-.01z"].join("")}],["path",{...Uee,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("")}]],Kee=[["path",{...Vu,d:["M16.5 10c3.038 0 5.5 2.015 5.5 4.5c0 1.397 -.778 2.645 -2 3.47l0 2.03l-1.964 -1.178","a6.649 6.649 0 0 1 -1.536 .178c-3.038 0 -5.5 -2.015 -5.5 -4.5s2.462 -4.5 5.5 -4.5z"].join("")}],["path",{...Vu,d:["M8.319 15.972L7.84 15.918L7.349 15.832L6.865 15.715L6.388 15.568L4 17L4 14.199","L3.559 13.775L3.197 13.356L2.877 12.91L2.603 12.439L2.376 11.946L2.201 11.433","L2.079 10.902L2.016 10.405L2.001 9.897L2.036 9.386L2.12 8.889L2.25 8.405L2.425 7.937","L2.642 7.486L2.9 7.055L3.195 6.645L3.459 6.333L3.744 6.037L4.05 5.757L4.377 5.495","L4.723 5.25L5.086 5.025L5.467 4.819L5.864 4.634L6.275 4.471L6.701 4.331L7.139 4.214","L7.589 4.122L8.05 4.055L8.521 4.014L9.352 4.007L9.815 4.04L10.269 4.098L10.713 4.181","L11.146 4.287L11.567 4.416L11.975 4.567L12.369 4.739L12.748 4.932L13.112 5.143","L13.459 5.374L13.788 5.622L14.172 5.956L14.458 6.241L14.722 6.542L14.965 6.856","L15.217 7.237A8.35 7.35 0 0 0 8.319 15.972z"].join("")}],["path",{...cS,d:["M8.319 15.972L7.84 15.918L7.349 15.832L6.865 15.715L6.388 15.568L4 17L4 14.199","L3.559 13.775L3.197 13.356L2.877 12.91L2.603 12.439L2.376 11.946L2.201 11.433","L2.079 10.902L2.016 10.405L2.001 9.897L2.036 9.386L2.12 8.889L2.25 8.405L2.425 7.937","L2.642 7.486L2.9 7.055L3.195 6.645L3.459 6.333L3.744 6.037L4.05 5.757L4.377 5.495","L4.723 5.25L5.086 5.025L5.467 4.819L5.864 4.634L6.275 4.471L6.701 4.331L7.139 4.214","L7.589 4.122L8.05 4.055L8.521 4.014L9.352 4.007L9.815 4.04L10.269 4.098L10.713 4.181","L11.146 4.287L11.567 4.416L11.975 4.567L12.369 4.739L12.748 4.932L13.112 5.143","L13.459 5.374L13.788 5.622L14.172 5.956L14.458 6.241L14.722 6.542L14.965 6.856","L15.217 7.237A8.35 7.35 0 0 0 8.319 15.972zM5.25 7.9a0.85 0.85 0 1 0 1.7 0","a0.85 0.85 0 1 0 -1.7 0zM8.25 7.9a0.85 0.85 0 1 0 1.7 0a0.85 0.85 0 1 0 -1.7 0z"].join("")}],["path",{...cS,d:["M16.5 10c3.038 0 5.5 2.015 5.5 4.5c0 1.397 -.778 2.645 -2 3.47l0 2.03l-1.964 -1.178","a6.649 6.649 0 0 1 -1.536 .178c-3.038 0 -5.5 -2.015 -5.5 -4.5s2.462 -4.5 5.5 -4.5z","M14.15 14a0.85 0.85 0 1 0 1.7 0a0.85 0.85 0 1 0 -1.7 0zM17.15 14","a0.85 0.85 0 1 0 1.7 0a0.85 0.85 0 1 0 -1.7 0z"].join("")}]],qee=ne("filled","brand-telegram-filled","BrandTelegramFilled",jee),Vee=ne("filled","brand-line-filled","BrandLineFilled",Gee),Yee=ne("filled","brand-wechat-filled","BrandWechatFilled",Kee),Xee={instagram:{outline:qy,solid:aS},facebook:{outline:Ky,solid:rS},tiktok:{outline:Jy,solid:lS},youtube:{outline:tS,solid:fS},x:{outline:oS,solid:dS},linkedin:{outline:Yy,solid:nS},pinterest:{outline:Xy,solid:sS},whatsapp:{outline:eS,solid:iS},telegram:{outline:Zy,solid:qee},line:{outline:Vy,solid:Vee},wechat:{outline:Qy,solid:Yee}};function VH({platform:e,iconStyle:o,size:t}){let r=Xee[e][o];return zee(r,{size:t,stroke:1.75,"aria-hidden":"true",focusable:"false"})}var Qee={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 eoe({platform:e}){let{rows:o,saveLink:t}=Bi(),{value:r,error:a}=o[e],[n,s]=XH(r),[l,i]=XH(!1),d=YH(),f=YH();Zee(()=>s(r),[r]);let m=async()=>{if(n.trim()===r){n!==r&&s(r);return}i(!0),await t(e,n),i(!1)},u=$T[e];return ZH(pS,{children:[Ga(Jee,{label:c(u),htmlFor:d,icon:Ga(VH,{platform:e,iconStyle:"outline",size:18}),children:Ga("input",{id:d,type:"text",inputMode:"url",value:n,placeholder:Qee[e],onChange:h=>s(h.target.value),onBlur:()=>{m()},onKeyDown:h=>{h.key==="Enter"&&h.currentTarget.blur(),h.key==="Escape"&&(s(r),h.currentTarget.blur())},"aria-invalid":a?!0:void 0,"aria-describedby":a?f:void 0,"aria-busy":l||void 0,autoComplete:"off",spellCheck:!1})}),a&&Ga("p",{id:f,className:"sf-note sf-note--error",role:"alert",children:a})]})}function JH({unavailable:e}){let{canSave:o}=Bi();return!o&&e?Ga(pS,{children:e}):ZH(pS,{children:[Ga("p",{className:"es-field-hint",children:c("Paste a link to each profile. A platform left empty shows nothing on the site.")}),Nf.map(t=>Ga(eoe,{platform:t},t))]})}import{jsx as Va,Fragment as Poe,jsxs as Toe}from"react/jsx-runtime";import{useId as Ooe,useMemo as Eoe}from"react";import{useEasel as _oe}from"efficient-easel/easel";import{SettingsField as Aoe,SettingsSwitch as Foe}from"efficient-easel/panel";import{EyeIcon as Boe}from"efficient-easel/icons";import{fieldShownInView as Loe}from"efficient-easel/fields";import{usePreviewDevice as Roe}from"efficient-easel/draw/client";import{ROOT_ZONE as Doe}from"efficient-easel/draw";import{jsx as qa,Fragment as roe}from"react/jsx-runtime";import{createContext as aoe,useContext as noe,useLayoutEffect as soe,useMemo as e2,useRef as loe,useState as o2}from"react";import{useEasel as t2,useSelectedFields as ioe}from"efficient-easel/easel";import{fieldShownInView as doe,Inspector as foe,LEAD_BAND_KEY as coe,planFields as r2}from"efficient-easel/fields";function QH({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 ooe}from"react/jsx-runtime";import{EmptyState as toe}from"efficient-shell/ui";function Ka(){return ooe(toe,{variant:"none",icon:!1,message:c("These settings apply to every view.")})}import{usePreviewDevice as poe}from"efficient-easel/draw/client";import{deviceField as uoe}from"efficient-easel/screen/lib/document/device-fields";var moe="Text",uS=new Map,Yu=new Set,xoe=Object.fromEntries(Ei.map(e=>{let o=bT[e];return[e,qa(o,{},e)]})),a2=aoe(null),hoe={_partBody:uoe("each",{type:"custom",render:()=>qa(Ioe,{})})};function Ioe(){return qa(roe,{children:noe(a2)})}function Ft({entries:e,entryCount:o=0,part:t=null,omit:r,motion:a,body:n,itemWord:s}){let{id:l,fields:i,values:d,readOnly:f,onChange:m}=ioe(),u=e2(()=>a?{...d,...a.values}:d,[d,a?.values]),h=(ee,Ie)=>a?.keys.has(ee)?a.onChange(ee,Ie):m(ee,Ie),I=poe(),{appState:S,config:P}=t2(ee=>ee),T=LP(I,P,S.data.content??[],S.ui.itemSelector),B=n===void 0?A_(i,t):hoe,k=e2(()=>{let ee=r?.length?Object.fromEntries(Object.entries(B).filter(([Ie])=>!r.includes(Ie))):B;return a?{...ee,...a.fields}:ee},[B,r,a?.fields]),g=_x(k,u,T),[b,E]=o2(()=>new Set(Yu)),A=doe({},I),N={key:coe,title:moe},w=t2(ee=>ee.selectedItem)!==null,_=a?.part??t??"",y=`${l}:${_}:${String(I)}`,[v,O]=o2(()=>({tab:uS.get(y)})),C=`${l}:${_}`,L=loe(null),M={...T,node:u},K=r2(g,{values:u,context:M}).buckets,W=QH({allTabs:w,remembered:uS.get(y),inherited:L.current?.panel===C?L.current.tab:v.tab,buckets:K,hasText:A&&o>0}),se=!A&&!K.includes(W)&&(r2(_x(k,u,{...T,device:"desktop"}),{values:u,context:{...M,device:"desktop"}}).buckets.includes(W)||W==="Design"&&o>0);soe(()=>{L.current={panel:C,tab:W}});let le=W==="Design";return qa(a2.Provider,{value:n??null,children:qa(OT.Provider,{value:a?u:null,children:qa(foe,{fields:g,values:u,onChange:h,readOnly:f,allTabs:w,showWhenContext:M,context:{itemWord:s},tab:W,onTab:ee=>{uS.set(y,ee),O({tab:ee})},tabIcons:xoe,idPrefix:l,ariaLabel:c("Section settings"),lead:le?e:null,leadFold:N,closedFolds:b,onFold:(ee,Ie)=>{Ie?Yu.delete(ee):Yu.add(ee),E(new Set(Yu))},children:se&&qa(Ka,{})})})})}import{useMemo as goe}from"react";import{useEasel as yoe}from"efficient-easel/easel";import{useSectionOps as Soe}from"efficient-easel/screen/lib/document/use-section-ops";var n2=new Map,boe=e=>{let o=n2.get(e);return o||n2.set(e,o=Ou(Pu(e),`part:${e}`)),o},woe=new Set(Ah);function Cs(e,o,t){let{getItemById:r,getSelectorForId:a}=yoe(f=>f),n=Soe(),s=r(e)?.props??{},l=Sa(s,o),i=JSON.stringify(l),d=goe(()=>Object.fromEntries(Ah.map(f=>[f,l[f]])),[i]);return{part:o,fields:boe(t),values:d,keys:woe,onChange:(f,m)=>{let u=a(e),h=r(e);if(!u||!h)return;let I=UO(h.props??{},o,f,m);n.replaceComponent(u.zone,u.index,{...h,props:I})}}}import{Fragment as Coe,createElement as koe}from"react";import{deviceField as mS}from"efficient-easel/screen/lib/document/device-fields";var bo=()=>({type:"custom",render:()=>koe(Coe)});var xS={words:bo(),sourceNote:bo(),style:bo(),font:bo(),italic:bo(),fontSize:mS("each",bo()),lineHeight:bo(),letterSpacing:bo(),paragraphSpacing:bo(),padding:bo(),align:mS("each",bo()),letterCase:bo(),fixedSizeHint:mS("each",bo()),regionNote:bo(),regionStyle:bo()},voe=["fontSize","align"];function s2(e){return voe.includes(e)}var l2={showTicker:bo(),items:bo()};function i2({heroId:e}){let{appState:o,dispatch:t}=_oe(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=Eoe(()=>{let h=n?.props.tickerItems;return Array.isArray(h)?h:w1.map(I=>({text:I}))},[n]),i=Ooe(),d=Roe(),f=h=>Loe(l2[h],d),m=Cs(e,C1,"block");if(!n)return Va("p",{className:"sf-note",children:c("This ticker\u2019s hero is no longer on the page.")});let u=h=>t({type:"replace",destinationZone:Doe,destinationIndex:a,data:{...n,props:{...n.props,...h}}});return Va(Ft,{motion:m,body:Toe(Poe,{children:[!f("showTicker")&&!f("items")&&Va(Ka,{}),f("showTicker")&&Va(Aoe,{label:c("Show ticker"),labelId:i,icon:Va(Boe,{}),action:Va(Foe,{checked:s,onChange:h=>u({showTicker:h}),ariaLabelledBy:i})}),f("items")&&Va(BT,{label:$x.label,icon:$x.icon,items:l,placeholder:"item",onChange:h=>u({tickerItems:h}),markup:!0})]})})}import{jsx as Z,Fragment as Hi,jsxs as It}from"react/jsx-runtime";import{useContext as Xoe,useEffect as hS,useRef as Zoe,useState as y2}from"react";import{FieldSelect as Joe,InspectorField as Qoe,fieldShownInView as ete}from"efficient-easel/fields";import{InertHint as O2,SettingsField as ote}from"efficient-easel/panel";import{InspectorUpLevel as om}from"efficient-easel/chrome";import{StylesIcon as tte,TypeIcon as rte}from"efficient-easel/icons";import{useEasel as ate}from"efficient-easel/easel";import{TextPartPanel as S2}from"efficient-easel/copy";import{Button as nte,IconButton as ste,Tooltip as lte}from"efficient-shell/ui";import{jsx as c2,jsxs as Noe}from"react/jsx-runtime";import{DEFAULT_EASEL_STRINGS as Moe}from"efficient-easel/strings";import{COPY_CELLS as ks,COPY_CELL_LENGTHS as d2,CopyBox as Hoe,lengthCellUnits as Woe}from"efficient-easel/copy";import{PaddingYIcon as $oe}from"efficient-easel/icons";import{onDesktopWords as zoe}from"efficient-easel/screen/lib/document/box-fields";var f2=Moe.copy.cells,Uoe={kind:"spacing"},joe=["left","center","right","justify"];function Xu(e,o,t,r="desktop"){let a=Fv(e),n=Lv(r),s=e[n]??e.size??o.sizePx,l=Rv(e,r),i=(f,m,u,h,I)=>{let S=nl[u];return Woe({preset:f,row:m,table:Tf,unit:e[S],value:e[u],tier:r,styleValue:h,label:c(I),onPick:(P,T)=>t({[S]:P??null,[u]:T??null}),onChange:(P,T)=>t({...T?{[S]:T.unit??null}:{},[u]:P??null})})},d={key:"padding",name:c("Padding"),icon:c2($oe,{}),unit:"px",step:Ov,shiftStep:10,min:Pv,max:Tv};return[{...ks.fontSize,key:"fontSize",value:e[n],styleValue:Math.round(o.sizePx),onChange:f=>t({[n]:f??null}),...i(ks.fontSize,d2.fontSize,n,Math.round(o.sizePx),f2.fontSize),...n==="size"?{}:{reset:{detail:l?zoe(f=>c(f),`${l.px}px`,l.view):void 0}}},{...ks.lineHeight,key:"lineHeight",value:a.lineHeight,styleValue:o.lineRatio,onChange:f=>t(f===void 0?{lineHeight:null,line:null}:{lineHeight:f})},{...ks.letterSpacing,key:"letterSpacing",scale:s,value:a.letterSpacingEm,styleValue:o.letterEm,onChange:f=>t(f===void 0?{letterSpacing:null,letter:null}:{letterSpacing:f})},{...ks.paragraphSpacing,key:"paragraphSpacing",value:e.paragraphSpacing,styleValue:0,onChange:f=>t({paragraphSpacing:f??null}),...i(ks.paragraphSpacing,d2.paragraphSpacing,"paragraphSpacing",0,f2.paragraphSpacing)},{...d,value:e.padding,styleValue:o.paddingPx,onChange:f=>t({padding:f??null}),...i(d,Uoe,"padding",o.paddingPx,"Padding")}]}function p2({text:e,onTextChange:o,multiline:t,markup:r=!0,styled:a=!0,style:n,base:s,setValue:l,colors:i,placeholder:d,ariaLabel:f,head:m,typedOnCanvas:u=!1}){let h=Xu(n,s,l),I=nh(r,t);return Noe("div",{className:"sf-part-textbox",children:[m,c2(Hoe,{value:e,onChange:o,multiline:t,placeholder:d,ariaLabel:f,rules:ud,tools:I,barShows:u?"focus":"always",colors:r?i:[],colorNameOf:lf,align:a?{value:n.align??s.align,allow:joe,onChange:S=>l({align:S})}:void 0,letterCase:a?{value:n.case==="capitalize"?"":n.case??"",onChange:S=>l({case:S||null})}:void 0,cells:a?h:void 0})]})}import{UiIcon as b2}from"efficient-easel/draw/client";import{jsx as Zu,Fragment as Goe,jsxs as Koe}from"react/jsx-runtime";import{Button as u2,Dialog as qoe}from"efficient-shell/ui";function m2({styleName:e,onCancel:o,onConfirm:t}){return Zu(qoe,{open:!0,onClose:o,role:"alertdialog",size:"sm",title:c("Update {style}?",{style:e}),footer:Koe(Goe,{children:[Zu(u2,{variant:"secondary",onClick:o,children:c("Cancel")}),Zu(u2,{variant:"primary",onClick:t,children:c("Update style")})]}),children:Zu("p",{children:c("Every text on the site that follows {style} changes to look like this one. This text\u2019s own changes are cleared, and it keeps following {style}.",{style:e})})})}import{ScreenDocumentContext as ite}from"efficient-easel/screen/components/ScreenDocumentContext";import{usePreviewDevice as dte}from"efficient-easel/draw/client";import{shownTier as Qu}from"efficient-easel/screen/lib/document/device-fields";import{TEXT_FIELD_MARKER as fte,viewKeyAt as cte}from"efficient-easel/draw";import{useSectionOps as pte}from"efficient-easel/screen/lib/document/use-section-ops";import{useEaselHost as ute}from"efficient-easel/screen/lib/host";function Voe(e){let o=new Set([...Object.keys(z(Jk,e)??{}),...z(Qk,e)??[]]);for(let[t,r]of Object.entries(z(ov,e)??{}))r.verb==="snapshot"&&o.add(t);return[...o].sort()}var Yoe={CollectionCard:"product",FooterMenu:"menu",Gallery:"product",GalleryItem:"product",ProductGrid:"product",ProductHero:"product",SpecTable:"product",Events:"blog",FeaturedCover:"blog",LongRead:"blog",SubscribeBlogs:"blog"},x2={product:"Synced from the product.",blog:"Synced from the blog post.",menu:"Synced from the site menu."},h2="Open",I2={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 vs(e){let o=e?.source?.slug;return xo(o)}function Ni(e){return z(Yoe,e)??null}function g2(e,o){let t=Ni(e);return t&&Voe(e).includes(o)?t:null}function Ju(e){let o=e?.menu?.id;return xo(o)}function IS(e){return e?c(e):null}function w2(e){return e.kind==="role"?Om[e.role]:e.kind==="custom"?"Custom":null}function mte(e){let o=Sb(e.role);return o?{kind:"role",role:o}:null}function xte(e,o){if(!e)return{kind:"unread"};let{faceRole:t,base:r}=e;if(o[t]===r.fontKey)return{kind:"role",role:t};let a=Object.keys(o).filter(n=>o[n]===r.fontKey);return a.length===1?{kind:"role",role:a[0]}:{kind:"custom"}}function em(e,o,t,r){return mte(Fr(e,o))??xte(t,r)}function hte(e,o){if(!e.length)return null;let t=o(e[0]);return e.every(r=>o(r)===t)?t:null}function C2(e,o){return[{value:Mi,label:c("No style"),description:c("Section\u2019s own")},...e.map(t=>({value:t.id,label:t.name,description:t.values.font?pd(t.values.font,o)?.label:void 0}))]}var Mi="";function Ite({face:e,base:o,onPick:t}){let r=kt(),a=e.kind==="role"?e.role:Mi,n=[{label:c("No style"),value:Mi},...yb.map(s=>({label:c(Om[s]),value:s}))];return Z(Joe,{ariaLabel:c("Style"),value:a,options:n,inline:!0,onChange:s=>t(s===Mi?null:s),renderOption:s=>s.value===Mi?It(Hi,{children:[Z("span",{className:"es-fsel-label sf-part-style-keep",children:s.label}),Z("span",{className:"sf-part-style-aside","aria-hidden":"true",children:c("Section\u2019s own")})]}):Z("span",{className:"es-fsel-label",style:{fontFamily:`var(--font-role-${s.value})`},children:s.label}),renderValue:()=>Z("span",{style:{fontFamily:o?.fontKey?`var(${pd(o.fontKey,r)?.cssVar})`:void 0,fontWeight:o?.weight},children:IS(w2(e))}),valueText:s=>IS(w2(e))??s?.label??""})}var E2=["regionNote","regionStyle"],gte=Object.keys(xS).filter(e=>!E2.includes(e));function _2(e,o){return!e.some(o)}function yte({sectionName:e,onBack:o,textEditor:t,styleRow:r,children:a,tabs:n}){let s=It(Hi,{children:[t,r,a]});return It("div",{className:"sf-part-panel",children:[Z(om,{inline:!0,name:c(e),onSelect:o}),n?n(s):s]})}function tm({source:e,slug:o,menuId:t}){let r=ute(),a=I2[e],n=!a.needsSlug||!!o;return Z("div",{className:"sf-note sf-note--source",children:It(O2,{children:[c(x2[e]),n?It(Hi,{children:[" ",Z(nte,{type:"button",variant:"link",size:"sm",onClick:()=>{a.type==="storefront-editor:open-menus"?r.send(a.type,{menuId:t??null}):o&&r.send(a.type,{slug:o})},children:c(h2)})]}):null]})})}var k2=4,Ste=120;function v2(e){return c("Every {part} in this section follows it. The face and the size change; the letter case is the section\u2019s own and stays as it is.",{part:c(e.label).toLowerCase()})}function P2({region:e,sizePx:o,face:t,base:r,onFollowStyle:a,source:n,slug:s,onBack:l,shows:i,sizedStyle:d,ownLook:f}){let m=e.follows;return It("div",{className:"sf-note",children:[Z("p",{children:Z("strong",{children:c(e.label)})}),i("regionNote")&&!f&&Z("p",{children:o?c("Its size follows Styles \u25B8 {follows} \u2014 {px}px right now.",{follows:c(m),px:Math.round(o)}):c("Its size follows Styles \u25B8 {follows}.",{follows:c(m)})}),d?It(Hi,{children:[d,i("regionStyle")&&Z("p",{className:"es-field-hint",children:v2(e)})]}):a?i("regionStyle")?Z(Hi,{children:Z(ote,{label:c("Style"),icon:Z(tte,{}),hint:v2(e),children:Z(Ite,{face:t,base:r,onPick:a})})}):null:i("regionNote")&&Z("p",{className:"es-field-hint",children:c("Only the size follows a site style. This section sets its own font, weight and letter case.")}),n&&i("sourceNote")?Z(tm,{source:n,slug:s}):null,_2([...E2,"sourceNote",...d?["fontSize"]:[]],u=>i(u)&&(u!=="sourceNote"||!!n))&&Z(Ka,{}),Z(om,{inline:!0,name:c("Page"),onSelect:l})]})}function bte({onBack:e}){return It("div",{className:"sf-note",children:[Z("p",{children:Z("strong",{children:c("This part is no longer here.")})}),Z("p",{children:c("The section it belonged to has been changed or removed.")}),Z(om,{inline:!0,name:c("Page"),onSelect:e})]})}function wte({onBack:e,partId:o,why:t}){return It("div",{className:"sf-note",children:[Z("p",{children:Z("strong",{children:c("This part's settings did not open.")})}),Z("p",{children:c("The words are still on your page and nothing has been lost. The editor could not work out which control belongs to them, which is a fault on our side. Go back and click the section to open its settings instead.")}),Z("p",{className:"sf-note-detail",children:It("code",{children:[o," \u2014 ",t]})}),Z(om,{inline:!0,name:c("Page"),onSelect:e})]})}function A2({nodeId:e,propKey:o,onBack:t,onEditStyle:r}){let{getItemById:a,getSelectorForId:n,config:s}=ate(G=>G),l=pte(),i=S0(),{partStyle:d}=fs(),{fonts:f,textStyles:m}=vo(),u=kt(),h=Xoe(ite),I=!h?.capabilities?.hasSiteTheme,{persist:S}=uT({themeFromDocument:I,tokenRef:h?.tokenRef,siteId:h?.siteId??null}),P=XT({themeFromDocument:I,persist:S}),[T,B]=y2(!1),k=dte(),g=G=>(Qu(k)!=="tablet"||s2(G))&&ete(xS[G],k),b=Zoe(null),E=a(e),A=n(e),N=E?s.components[E.type]:void 0,{key:w,row:_}=Ut(o),y=N?.fields?.[w],v=_?Dn(y,_):y,O=jt(e,o),C=E?.props??{},L=cf(v),M=Bf(v),K=xv(v),W=E?Ni(E.type):null,se=E?g2(E.type,w):null,le=_?uf(C[w],_):C[w],ee=!!_&&!(Array.isArray(C[w])&&_.index<C[w].length);hS(()=>{y0(document)||b.current?.querySelector(".es-copy [contenteditable='true'], .es-copy textarea, .sf-copybox textarea, .sf-copybox input")?.focus()},[O]);let[Ie,ae]=y2(0);hS(()=>ae(0),[O]);let me=!!E&&!ee&&(!A||!v);hS(()=>{if(!me||Ie>=k2)return;let G=setTimeout(()=>ae(Fe=>Fe+1),Ste);return()=>clearTimeout(G)},[me,Ie]);let ge=me&&Ie<k2,Ge=Cs(e,pr(E?.type,o),"textPart");if(!E||ee)return Z(bte,{onBack:t});let Ve=cs(E.type),Eo=Ve?Us(Ve,o):null;if(Ve&&Eo){let G=d?.partId===O?d:null,Fe=Ve[Eo],Lo=Fe.writable===!0&&!!A,St=Dt=>{A&&l.replaceComponent(A.zone,A.index,{...E,props:la(C,o,"role",Dt)})};if(Lo&&hw(Fe)){let Dt=Fr(C,o),Ls=Qr=>{if(!A)return;let Pm=C;for(let[m6,x6]of Object.entries(Qr))Pm=la(Pm,o,m6,x6??null);l.replaceComponent(A.zone,A.index,{...E,props:Pm})},Rs=jx(P.saved,P.old),p6=wx(Dt)??"",u6=Xu(Dt,G?.base??T2,Ls,Qu(k)).filter(Qr=>Qr.key==="fontSize"&&g(Qr.key));return Z(Ft,{motion:Ge,body:Z(P2,{region:Fe,sizePx:G?.base.sizePx??null,face:em(C,o,G,f),base:G?.base??null,source:W,slug:vs(C),onBack:t,shows:g,ownLook:Uv(Dt),sizedStyle:Z(S2,{style:g("style")?{value:p6,options:C2(Rs,u),onChange:Qr=>Ls(Qr?{textStyle:Qr}:{textStyle:null,role:null}),onEditStyles:r}:void 0,cells:u6})})})}return Z(Ft,{motion:Ge,body:Z(P2,{region:Fe,sizePx:G?.base.sizePx??null,face:em(C,o,G,f),base:G?.base??null,onFollowStyle:Lo?St:void 0,source:W,slug:vs(C),onBack:t,shows:g})})}if(!A||!v)return ge?Z("div",{className:"sf-note","aria-busy":"true"}):Z(wte,{onBack:t,partId:O,why:A?"no field":"no selector"});let Ye=G=>{l.replaceComponent(A.zone,A.index,{...E,props:G})},Je=G=>{if(pa(G).hidden!==pa(le).hidden||!L){let Fe=_?lv(C,w,_,G):{...C,[w]:G};Fe&&Ye(Fe);return}$f({node:E,propKey:o,kind:L,zone:A.zone,index:A.index},pa(G).text,l.replaceComponent)},qo=le,Qe=d?.partId===O?d:null,mo=Qe?.styleOwner,$=mo?a(mo.owner):null,de=mo&&$?n(mo.owner):null,he=!!(mo&&$&&de),De=he?$.props??{}:C,ie=he?G=>l.replaceComponent(de.zone,de.index,{...$,props:G}):Ye,Ne=he?mo.kind:pr(E?.type,o),wo=Fr(De,Ne),ve=[{partKey:Ne,face:em(De,Ne,Qe,f),sizeGroup:Qe?.sizeGroup??null,base:Qe?.base??T2,style:wo}],Rt=hte(ve,G=>G.sizeGroup),Ja=df(Qe?.inks),yr=(G,Fe)=>{let Lo=De;for(let St of ve)Lo=la(Lo,St.partKey,G,Fe);ie(Lo)},Cm=G=>G?yr("textStyle",G):As({textStyle:null,role:null}),As=G=>{let Fe=De;for(let Lo of ve)for(let[St,Dt]of Object.entries(G))Fe=la(Fe,Lo.partKey,St,Dt??null);ie(Fe)},Bo=L==="text"||L==="textarea",{text:Qa,hidden:Jt}=pa(le),et=v?.[fte]?.label??o,td=Jt?c("Show {label} on the slide",{label:c(et)}):c("Hide {label} on the slide",{label:c(et)}),Qt=It("div",{className:"sf-field-head",children:[Z(rte,{}),Z("span",{className:"sf-field-label sf-field-label--inline",children:c(et)}),Bo&&Z(lte,{content:td,children:Z(ste,{"aria-pressed":Jt,"aria-label":td,onClick:()=>Je({text:Qa,hidden:!Jt}),children:Jt?Z(b2,{name:"eye-off",size:14}):Z(b2,{name:"eye",size:14})})})]}),Jr=!M&&K,rd=!!L&&(ST(v)||M||Jt||!K),er=em(De,Ne,Qe,f),km=er.kind==="role"?er.role:null,Sr=wx(wo)??KT(km),ad=jx(P.saved,P.old),vm=Object.entries(wo).filter(([G,Fe])=>G!=="role"&&G!=="textStyle"&&Fe!==void 0).length,nd=()=>{let G=De;for(let Fe of ve){let{role:Lo,textStyle:St}=Fe.style;G=Av(G,Fe.partKey),Lo&&(G=la(G,Fe.partKey,"role",Lo)),St&&(G=la(G,Fe.partKey,"textStyle",St))}ie(G)},yt=Sr,sd=VT(ve[0].style),Fs=yt?ad.find(G=>G.id===yt)?.name??yt:"",Bs=()=>{B(!1),yt&&(P.write(YT({saved:P.saved,old:P.old,styleId:yt,values:qT(ve[0].style)}),!0),nd())};return It(yte,{sectionName:N?.label??E.type,onBack:t,tabs:G=>Z(Ft,{motion:Ge,body:G}),textEditor:g("words")?Z("div",{ref:b,className:"sf-part-text",children:rd?Z(p2,{text:Qa,onTextChange:G=>Je(Bo?{text:G,hidden:Jt}:G),multiline:pf(L),markup:L!=="plainText",styled:!1,style:ve[0].style,base:ve[0].base,setValue:As,colors:Ja,placeholder:IS(rv(v))??void 0,ariaLabel:c(et),head:Qt,typedOnCanvas:i===O}):L?Bo?Qt:null:Z(Qoe,{field:v,name:o,value:qo,onChange:Je,id:`sf-part-${e}-${o}`})}):void 0,children:[se&&g("sourceNote")&&Z(tm,{source:se,slug:vs(C),menuId:Ju(C)}),Jr&&Z(S2,{style:g("style")?{value:Sr??"",options:C2(ad,u),onChange:G=>Cm(G||null),changed:vm>0,onEditStyles:r,onUpdateStyle:yt&&sd?()=>B(!0):void 0}:void 0,font:g("font")?{value:wo.font??"",styleValue:pd(ve[0].base.fontKey,u)?.label,options:gb(u).map(G=>({label:G.label,value:G.key})),onChange:G=>yr("font",G||null)}:void 0,italic:g("italic")?{value:wo.italic,styleValue:kte(m,Sr),onChange:G=>yr("italic",G??null)}:void 0,cells:Xu(ve[0].style,ve[0].base,As,Qu(k)).filter(G=>g(G.key)),align:g("align")?Cte(wo,ve[0].base.align,Qu(k),yr):void 0,letterCase:g("letterCase")?{value:wo.case??"",styleValue:ve[0].base.case,onChange:G=>yr("case",G||null)}:void 0}),T&&yt&&Z(m2,{styleName:Fs,onCancel:()=>B(!1),onConfirm:Bs}),Jr&&Rt===null&&g("fixedSizeHint")&&Z(O2,{children:c("Fixed size \u2014 the site\u2019s Text setting doesn\u2019t resize this.")}),_2(gte,G=>g(G)&&(G==="words"||(G==="sourceNote"?!!se:G==="fixedSizeHint"?Jr&&Rt===null:Jr)))&&Z(Ka,{})]})}function Cte(e,o,t,r){let a=cte("align",t),n=Bv(e,t);return{value:e[a]??"",styleValue:n??o,onChange:s=>r(a,s||null)}}function kte(e,o){return!o||!Array.isArray(e)?!1:e.find(t=>t?.id===o)?.values?.italic===!0}var T2={fontKey:"",sizePx:16,weight:400,lineRatio:1.4,letterEm:0,align:"left",case:"none",paddingPx:0};import{jsx as Bt,jsxs as CS,Fragment as Ate}from"react/jsx-runtime";import{useCallback as Fte,useRef as Bte,useState as zi}from"react";import{InspectorIconButton as Lte}from"efficient-easel/chrome";import{useEasel as Rte}from"efficient-easel/easel";import{LoadingSpinner as Dte,PopupMenu as Nte,PopupMenuItem as Mte,PopupMenuLabel as kS}from"efficient-shell/ui";import{CopyToPageIcon as Hte}from"efficient-easel/icons";import{useEaselSession as Wte}from"efficient-easel/screen/lib/session-context";import{cloneNodeWithFreshIds as $te}from"efficient-easel/screen/lib/document/section-doc";import{FOOTER_TYPE as zte}from"efficient-easel/draw";import{newId as Tte}from"efficient-easel/data";import{isBackendError as Ps}from"efficient-easel/screen/lib/backend-error";import{isEfficientBackend as $2}from"efficient-easel/screen/lib/session";var rm=XP(),gS=rm.set;function am(e,o){gS(e,o)}function nm(e,o){let t=rm.get(e);gS(e,o??(t==="live"?"changed":t))}function sm(e,o){gS(e,o??"live")}function F2(e){return rm.get(e)}function B2(e){return rm.use(e)}function L2(e,o){return e==="live"&&o?"changed":e}function yS({live:e,onPress:o,busy:t=!1,pinnedUnpublished:r=!1,goingLive:a}){let n=e==="live"&&!r,s=e==="changed"?c("Changes not live yet"):e==="never"?c("Never published"):r?c("Header and footer not live yet"):e==="live"?c("Everything is live"):null;return{label:c("Publish"),tooltip:e==="never"?c("Put this page on your site"):c("Put your changes on your site"),status:s,quiet:n?{label:c("Published"),reason:c("Everything is live")}:null,...a&&a.length?{goingLive:a}:{},onPress:o,busy:t}}function R2(e){return e.map(o=>o.change==="take_down"?c("{name} (taken down)",{name:o.name}):o.name)}var D2="SharedSection",vte=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i,Wi=e=>{let o=e?.content;return Array.isArray(o)?o:[]},$i=e=>{let o=e?.props?.id;return typeof o=="string"?o:void 0};function N2(e){if(e?.type!==D2)return null;let o=e.props?.section;return typeof o=="string"&&vte.test(o)?o.toLowerCase():null}function M2(e){let o=[];for(let t of Wi(e)){let r=N2(t),a=$i(t);r&&a&&o.push({refId:a,section:r})}return o}function lm(e){let o=Wi(e)[0];return o&&typeof o=="object"&&$i(o)?o:null}function Pte(e,o){return{type:D2,props:{id:e,section:o}}}function H2(e,o){let t=new Map,r=new Set,a=!1,n=Wi(e).map(s=>{let l=N2(s),i=$i(s);if(!l||!i||r.has(l))return s;let d=lm(o.get(l)),f=$i(d??void 0);return!d||!f||t.has(f)?s:(r.add(l),t.set(f,{section:l,refId:i,reference:s}),a=!0,d)});return{working:a?{...e,content:n}:e,held:t}}function W2(e,o,t){let r=new Map,a=!1,n=Wi(e).map(s=>{let l=$i(s),i=l?o.get(l):void 0,d=i?t.get(i.section):void 0;if(!i||!d||r.has(i.section))return s;let f=Wi(d).slice(1),m=lm(d);return r.set(i.section,m===s?d:{...d,content:[s,...f]}),a=!0,i.reference??Pte(i.refId,i.section)});return{page:a?{...e,content:n}:e,docs:r}}function wS(e){return!!(e?.publish&&e.liveState)}function Ote(e,o){if(!wS(e))return;let{versions:t,nameVersion:r,restoreVersion:a,previewVersion:n}=e;if(!(!t||!r||!a||!n))return{list:()=>t.call(e,o),name:(s,l)=>r.call(e,s,l,o),restore:(s,l)=>a.call(e,s,l??{},o),preview:s=>n.call(e,s,o)}}function Ete(e,o){return async(t,r)=>{try{await pT()}catch(a){throw new Error(c("A change waiting to go live could not be saved."),{cause:a})}return(await e.publish(o)).state==="live"?Af({state:"live",changes:[]}):ca(0),{version:r??null}}}function bS(e,o,t){let r=o?{siteId:o}:void 0;return{resolve:a=>e.load({slug:a,...r}).then(n=>(n&&(am(n.id,n.live),rT(n.id,n.videoFrames)),n)),saveLayout:(a,n,s,l)=>e.save(a,{layout:n},{version:s,clientId:l??""}).then(i=>(nm(a,i.live),aT(a,i.videoFrames),ca(),i)),rereadVersion:e.version?a=>e.version(a):void 0,publish:wS(t)?Ete(t,r):e.publish?(a,n)=>e.publish(a,n?{version:n}:void 0).then(s=>(sm(a,s.live),s)):void 0,listPages:()=>e.list(r),createPage:e.create?a=>e.create({...a,...r}):void 0,deletePage:e.remove?(a,n)=>e.remove(a,n):void 0}}function _te(e,o,t,r,a=!1){let n=null,s=new Set,l=!1,i=new Map,d=new Map,f=new Map,m=new Map,u={docId:null,lockHolder:null,conflict:null,saveFailed:!1,unpublished:!1,loadFailed:!1,sections:[]},h=new Set,I=()=>{if(!n)return!1;let w=F2(n.id);return w==="changed"||w==="never"||w===void 0&&l},S=w=>{u={...u,...w,docId:n?.id??null,unpublished:I(),sections:[...f.values()],rootProps:eT(n?.layout)};for(let _ of h)_()},P=(w,_,y)=>{_?f.set(w,{section:w,title:i.get(w)?.title??"",problem:_,holder:y}):f.delete(w)},T=w=>w&&typeof w=="object"&&!Array.isArray(w)?w:{},B=w=>s.has(w),k=()=>new Map([...i].map(([w,_])=>[w,_.layout])),g=()=>Tte("SharedSection"),b=(w,_,y,v)=>{let O=T(_);i.set(w,{layout:O,version:y,savedJson:JSON.stringify(O),title:v})},E={state:()=>u,subscribe:w=>(h.add(w),()=>{h.delete(w)})},A={sectionOf:w=>d.get(w)?.section??null,heldElsewhere:w=>{let _=d.get(w)?.section;return!!(_&&f.get(_)?.problem==="lock")},adopt:(w,_)=>{b(_.id,_.layout,_.layout_updated_at,_.title),d.set(w,{section:_.id,refId:g()}),m.set(_.id,_.used_on),S({})},place:w=>{if([...d.values()].some(v=>v.section===w.id))return null;let _=lm(T(w.layout)),y=typeof _?.props?.id=="string"?_.props.id:null;return!_||!y||!_.type?null:(b(w.id,w.layout,w.layout_updated_at,w.title),d.set(y,{section:w.id,refId:g()}),m.set(w.id,w.used_on),_)},usedOn:w=>m.get(w)??null,learn:w=>{for(let _ of w){m.set(_.id,_.used_on);let y=i.get(_.id);y&&(y.title=_.title);let v=f.get(_.id);v&&f.set(_.id,{...v,title:_.title})}S({})}},N=async(w,_)=>{for(let[y,v]of w){let O=i.get(y),C=JSON.stringify(v);if(!(!O||C===O.savedJson||f.get(y)?.problem==="lock"))try{let L=await e.save(y,{layout:v},{version:O.version,clientId:_??""});nm(y,L.live),O.layout=v,O.version=L.version,O.savedJson=C,P(y,null)}catch(L){Ps(L,"changed-elsewhere")?P(y,"conflict"):Ps(L,"lock-taken")?P(y,"lock",L.holder??void 0):P(y,"save")}}w.size&&ca(),S({})};return{resolve:async w=>{if(Ux(w===Br?null:E),Lx(w===Br?null:A),i=new Map,d=new Map,f=new Map,m=new Map,w===Br)return t.resolve(w);let _=!1,[y,v]=await Promise.all([t.resolve(w),e.load({slug:Br,...o}).catch(()=>(_=!0,null))]);if(v&&!yT(y?.layout)){am(v.id,v.live);let W=T(v.layout);n={id:v.id,layout:W,version:v.version,savedJson:""}}else n=null;if(l=!1,!y)return S({conflict:null,saveFailed:!1,loadFailed:_}),y;let O=T(y.layout),C=M2(O),L=await Promise.all(C.map(W=>e.load({id:W.section,...o}).catch(()=>null)));C.forEach((W,se)=>{let le=L[se];le?(am(le.id,le.live),b(W.section,le.layout,le.version,"")):(i.delete(W.section),f.set(W.section,{section:W.section,title:"",problem:"load"}))});let M=H2(O,k());if(d=M.held,!n)return d.size&&s.add(y.id),S({conflict:null,saveFailed:!1,loadFailed:_}),d.size?{...y,layout:M.working}:y;let K=oT(M.working,n.layout);return n.savedJson=JSON.stringify(Bx(K,n.layout).chrome),s.add(y.id),S({conflict:null,saveFailed:!1,loadFailed:!1}),{...y,layout:K}},saveLayout:async(w,_,y,v)=>{if(!B(w))return t.saveLayout(w,_,y,v);let O=n,C=O?Bx(_,O.layout):{page:_,chrome:null},L=W2(C.page,d,k()),M=await t.saveLayout(w,L.page,y,v);if(await N(L.docs,v),!O)return M;let K=JSON.stringify(C.chrome);if(!C.chrome||K===O.savedJson||u.lockHolder)return M;try{let W=await e.save(O.id,{layout:C.chrome},{version:O.version,clientId:v??""});nm(O.id,W.live),ca(),O.layout=C.chrome,O.version=W.version,O.savedJson=K,l=!0,S({conflict:null,saveFailed:!1})}catch(W){Ps(W,"changed-elsewhere")?S({conflict:W.conflict??{savedBy:"",savedByYou:!1,secondsAgo:0}}):Ps(W,"lock-taken")?S({lockHolder:W.holder??{name:"",secondsSinceSeen:0,secondsSinceHeld:0}}):S({saveFailed:!0})}return M},publish:t.publish?async(w,_)=>{let y=await t.publish(w,_),v=n;if(v&&B(w)&&!a&&e.publish&&I()&&!u.lockHolder){let O=await e.publish(v.id,v.version?{version:v.version}:void 0);sm(v.id,O.live),O.version!==null&&(v.version=O.version),l=!1,S({})}if(B(w)&&!a&&e.publish)for(let[O,C]of i){if(f.get(O)?.problem==="lock")continue;let L=await e.publish(O,C.version?{version:C.version}:void 0);sm(O,L.live),L.version!==null&&(C.version=L.version)}return y}:void 0,lock:r?{claim:async(w,_,y)=>{let v=await r.claim(w,_,y);if(!B(w))return v;let O=n;if(O)try{await r.claim(O.id,_,!1),u.lockHolder&&S({lockHolder:null})}catch(C){Ps(C,"lock-taken")&&S({lockHolder:C.holder??{name:"",secondsSinceSeen:0,secondsSinceHeld:0}})}for(let C of i.keys())try{await r.claim(C,_,!1),f.get(C)?.problem==="lock"&&P(C,null)}catch(L){Ps(L,"lock-taken")&&P(C,"lock",L.holder??void 0)}return i.size&&S({}),v},release:async(w,_)=>{if(await r.release(w,_),!B(w))return;let y=n;y&&!u.lockHolder&&await r.release(y.id,_).catch(()=>{});for(let v of i.keys())f.get(v)?.problem!=="lock"&&await r.release(v,_).catch(()=>{})}}:void 0,pinnedChrome:E}}function im(e){let o=(t,r,a)=>e.save(t,r.layout?{...r,layout:s0(r.layout)}:r,a);return new Proxy(e,{get(t,r){if(r==="save")return o;let a=Reflect.get(t,r,t);return typeof a=="function"?a.bind(t):a}})}function o5e(e,o,t){return e.update(o,l0(t))}function t5e(e,o=_o(),t=Lg(),r={}){let a=$2(o),n=e?{siteId:e}:void 0,s=a?!!e:!0,l=o.site.update,i=a&&t.commerce&&t.service,d=!!r.editsPinnedInPlace&&i,f=wS(o.site)?o.site:void 0,m=im(o.pages),u=bS(m,e,f),h=d?_te(m,n,u,o.lock,!!f):null;return{capabilities:{canPublish:!!f||!!o.pages.publish,hasSiteSettings:a,hasSiteTheme:!!o.theme,placeholderFrames:!1,mediaEditing:!0,pageCreationInAdminForm:!o.pages.create,canDeletePagesInline:!!o.pages.remove,hasEditLock:!!o.lock,hasEditGuard:!0,hasPinnedChrome:i,editsPinnedInPlace:d,explainsSiteSettings:!1,hasSiteRecord:s,canEditSiteRecord:s&&!!l,hasPreviewLink:a||!!o.preview,hasCatalog:a&&t.commerce,hasForms:a&&t.service,hasBlog:!!o.blog&&t.service,offersCommerce:t.commerce,offersService:t.service},...u,...z2(u.resolve),lock:o.lock,...h,site:s?()=>o.site.get(n):void 0,siteLiveState:f?()=>f.liveState(n):void 0,siteVersions:Ote(f,n),updateSite:s&&l?I=>l(I,n):void 0,previewHref:o.preview?I=>o.preview.href(I):void 0}}function r5e(e,o=_o(),t=Lg()){let r=$2(o),a=o.templates,n=a?im(a.pages(e)):{list:()=>Promise.reject(new Error(SS)),load:()=>Promise.reject(new Error(SS)),save:()=>Promise.reject(new Error(SS))};return{capabilities:{canPublish:!1,hasSiteSettings:!1,hasSiteTheme:!1,placeholderFrames:!0,mediaEditing:!1,pageCreationInAdminForm:!n.create,canDeletePagesInline:!!n.remove,hasEditLock:!1,hasEditGuard:!1,hasPinnedChrome:r&&t.commerce&&t.service,editsPinnedInPlace:!1,explainsSiteSettings:r,hasSiteRecord:!1,canEditSiteRecord:!1,hasPreviewLink:!1,hasCatalog:r&&t.commerce,hasForms:r&&t.service,hasBlog:!!o.blog&&t.service,offersCommerce:t.commerce,offersService:t.service},...bS(n,void 0),...z2(bS(n,void 0).resolve),publish:void 0,templateName:a?()=>a.get(e).then(s=>s.name):void 0}}function z2(e){return{resolve:o=>(Ux(null),Lx(null),e(o))}}var SS="This editor's backend has no website templates.";function Ute(e,o,t){let r=$te(e,void 0,o);return t?.(r)??r}function U2({node:e,currentSlug:o,siteId:t,tokenRef:r,runAuthed:a,onNotify:n}){let[s,l]=zi(!1),[i,d]=zi(null),f=Wte(),m=Rte(A=>A.config.components),[u,h]=zi(!1),[I,S]=zi(null),P=Bte(null),[T,B]=zi(null),k=Fte(async()=>{if(f.usesBridgedToken&&!r.current){h(!0);return}try{d(await _o(f).pages.list(t?{siteId:t}:void 0))}catch{h(!0)}},[r,t,f]),g=()=>{if(s){l(!1);return}let A=P.current?.getBoundingClientRect();A&&B({top:A.bottom+6,right:Math.max(8,window.innerWidth-A.right)}),d(null),h(!1),k(),l(!0)},b=(i??[]).filter(A=>A.slug!==o),E=async A=>{if(I)return;S(A.slug);let N=Ute(e,m,f.documentHooks?.storedNode),w=await a(()=>jte(_o(f).pages,A,N));S(null),l(!1),n?.(w?c("Duplicated to \u201C{name}\u201D",{name:A.label}):c("Couldn\u2019t duplicate the section \u2014 please retry"),w?"success":"error")};return CS(Ate,{children:[Bt("span",{"data-menu-toggle":!0,style:{display:"contents"},children:Bt(Lte,{buttonRef:P,label:c("Duplicate to another page"),hasPopup:"menu",expanded:s,onClick:g,children:Bt(Hte,{size:15})})}),s&&T&&Bt(Nte,{portal:!0,style:{top:T.top,right:T.right},onClose:()=>l(!1),children:CS("div",{role:"menu","aria-label":c("Duplicate to page"),children:[Bt(kS,{children:c("Duplicate to page")}),u?Bt(kS,{children:c("Couldn\u2019t load pages")}):i===null?Bt(Dte,{label:c("Loading\u2026")}):b.length===0?Bt(kS,{children:c("No other pages")}):b.map(A=>CS(Mte,{role:"menuitem",disabled:I!==null,onClick:()=>{E(A)},children:[Bt("span",{className:"min-w-0 flex-1 truncate",children:A.label}),I===A.slug?Bt("span",{className:"shrink-0 text-xs",children:c("Copying\u2026")}):A.draft&&Bt("span",{className:"shrink-0 text-xs",children:c("draft")})]},A.id))]})})]})}async function jte(e,o,t){let r=im(e),a=await r.load({id:o.id});if(!a)throw new Error(`Page "${o.slug}" no longer exists.`);let n=a.layout??{},s=Array.isArray(n.content)?[...n.content]:[],l=s.findIndex(i=>i?.type===zte);s.splice(l===-1?s.length:l,0,ZP(t)),await r.save(o.id,{layout:{root:{},zones:{},...n,content:s}},{version:a.version,clientId:""})}import{useScreenDocument as gre}from"efficient-easel/screen/components/ScreenDocumentContext";import{useSectionOps as yre}from"efficient-easel/screen/lib/document/use-section-ops";import{SELECTION_MODE as _4e,isSelectionMode as ES}from"efficient-easel/screen/lib/screen-parts";import{usePreviewParts as Sre}from"efficient-easel/draw/client";import{jsx as Ui,jsxs as Gte}from"react/jsx-runtime";import{SettingsDrill as Kte}from"efficient-easel/panel";import{UiIcon as qte}from"efficient-easel/draw/client";var Vte="Not shown on the page";function Yte({part:e,onOpen:o}){return Ui(Kte,{name:c(e.label),preview:e.offPage?c(Vte):e.preview||c("Empty"),offPage:e.offPage,status:e.hidden?Ui("span",{className:"sf-entry-eye",role:"img","aria-label":c("Hidden on the page"),children:Ui(qte,{name:"eye-off",size:14})}):void 0,onOpen:()=>o(e.key)})}function vS(e){return e.filter(o=>!o.identifier)}function j2({parts:e,onOpen:o,heading:t=!0}){let r=vS(e);return r.length?Gte("div",{className:"sf-entries",children:[t?Ui("h3",{className:"sf-entries-head",children:c("Text")}):null,r.map(a=>Ui(Yte,{part:a,onOpen:o},a.key))]}):null}import{HEADER_TYPE as bre,ROOT_ZONE as r5}from"efficient-easel/draw";import{newId as Xte}from"efficient-easel/data";import{HEADER_TYPE as Ko,FOOTER_TYPE as Re,newNodeId as Zte}from"efficient-easel/draw";function dm(){return{type:Ko,props:{id:Zte(Ko)}}}var G2=[{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"}],Jte=G2.filter(e=>e.type!=="FooterLogo"&&e.type!=="FooterGroup"),Qte="FooterGroup",K2="blocks";function q2(e){return e===Re?G2:e===Qte?Jte:null}function fm(){let e=(o,t)=>({type:o,props:{id:Xte(o),...t}});return[e("FooterLogo",{widthPct:100,align:"left",tagline:""}),e("FooterEmailSignup",{...eP}),e("FooterPayment",{...hf})]}function PS(e){switch(e?.type){case Mo:case ao:return c("On every page");case Ko:case Re:return c("On every page \xB7 old style");default:return null}}var V2=()=>null,Y2=()=>c("Changed on every page");function cm(e,o){let t=KC(e,o);if(t)return t;let r=pP(e,o);if(!r)return null;let a=r.group===Mo;return r.why==="type"?a?c("The header cannot take another one of these"):c("The footer cannot take another one of these"):a?c("The header holds at most 3 sections"):c("The footer holds at most 6 sections")}import{jsx as pm,Fragment as ore,jsxs as tre}from"react/jsx-runtime";import{useState as rre}from"react";import{createNode as are,newId as nre}from"efficient-easel/data";import{useEasel as sre}from"efficient-easel/easel";import{Banner as lre,Button as TS}from"efficient-shell/ui";import{useScreenDocument as ire}from"efficient-easel/screen/components/ScreenDocumentContext";var ere=["FooterPayment"];function X2(e,o){let{id:t,...r}=e.props;for(let a of Nt(e))r[a]=r[a].map(n=>X2(n,o));return o(e.type,r)}var ji=(e,o)=>{if(!ere.includes(e.type))return null;Jp();let t=Hr(e.type);return t?Ea({type:e.type,props:{...e.props}},t).nodes.map(r=>X2(r,o)):null};function Z2(){let{appState:e,dispatch:o,config:t}=sre(f=>f),{readOnly:r}=ire(),[a,n]=rre(!1),s=e.data.content;if(r||s.some(f=>f.type===ao))return null;let l=s.find(f=>f.type===Re)??null,i=(f,m)=>are(t,f,m),d=()=>{let f=fi(l,i,nre(ao),ji);o({type:"setData",data:m=>({...m,content:[...gf(m.content,f)]}),recordHistory:!0}),n(!1)};return pm(lre,{tone:"info",title:c("This footer uses the old layout"),action:a?tre(ore,{children:[pm(TS,{variant:"primary",size:"sm",onClick:d,children:c("Switch now")}),pm(TS,{variant:"secondary",size:"sm",onClick:()=>n(!1),children:c("Cancel")})]}):pm(TS,{variant:"secondary",size:"sm",onClick:()=>n(!0),children:c("Switch to Box footer")}),children:c("Build this footer out of Boxes and blocks, like a page: the same menus, signup, social links and logo, with the copyright as a Legal Line. Your current footer is kept.")})}import{jsx as OS,jsxs as dre}from"react/jsx-runtime";import{InspectorUpLevel as J2}from"efficient-easel/chrome";function Q2({nodeId:e,part:o,sectionName:t,onUpToSection:r}){let{select:a}=Ku(),n=Cs(e,o,"picture");return dre("div",{children:[o!=="media"?OS(J2,{inline:!0,name:c(xr.media),onSelect:()=>a(va(e,"media"))}):OS(J2,{inline:!0,name:c(t),onSelect:r}),OS(Ft,{part:o,motion:n,itemWord:c(xr[o])})]})}import{HintsToggle as wre,SettingsSwitch as Cre,hintsFoldClass as kre}from"efficient-easel/panel";import{useHints as vre}from"efficient-easel/screen/lib/hints";var n5={kind:"header"},AS={kind:"website"},s5={kind:"website",tab:Mf,revealPageGroup:!0},l5={kind:"chat"},i5={kind:"social"},Gi="Part";function Pre(e){return c("Part of {name}",{name:c(e)})}function Tre(e,o,t){let r=e.describeNode(o);return{name:t,kindLabel:r?Pre(r.label):c(Gi)}}function Ore(e){switch(e){case"Header":return{title:c("Header settings belong to a website."),own:c("Each website created from this template sets its own header afterwards.")};case"Appearance":return{title:c("Appearance settings belong to a website."),own:c("Each website created from this template sets its own appearance afterwards.")};case"Live chat":return{title:c("Live chat settings belong to a website."),own:c("Each website created from this template sets its own live chat afterwards.")};case"Social link":return{title:c("Social link settings belong to a website."),own:c("Each website created from this template sets its own social link afterwards.")};default:return{title:c("{what} settings belong to a website.",{what:e}),own:c("Each website created from this template sets its own {what} afterwards.",{what:e.toLowerCase()})}}}function d5({what:e}){let o=Ore(e);return Zr("div",{className:"sf-note",children:[we("p",{children:we("strong",{children:o.title})}),Zr("p",{children:[c("A template is a blueprint \u2014 it has no website of its own, so there is nothing here to change.")," ",o.own]})]})}function _S(e){let o=Kl[e];return{name:xr[e],kindLabel:Gi,icon:o,head:(t,r)=>{if(t.kind!==o)return null;let a=r.describeNode(t.nodeId);if(!a)return null;let n=a5({name:c(Yc(e,a.props)),tier:"part",of:c(a.label)},{partOf:({name:s})=>c("Part of {name}",{name:s})});return{name:n.name,kindLabel:n.kind}},render:(t,r)=>t.kind===o?we(Q2,{nodeId:t.nodeId,part:e,sectionName:r.describeNode(t.nodeId)?.label??"Hero",onUpToSection:()=>r.onSelectNode(t.nodeId)}):null}}var Ere={header:{name:"Header",kindLabel:"Site settings",icon:"header",render:(e,o)=>{let t=o.hostPanels?.header;return t?we(t,{placeholderMode:o.capabilities.placeholderFrames,tokenRef:o.tokenRef,siteId:o.siteId,websiteName:o.websiteName,onOpenWebsiteSettings:o.onOpenWebsiteSettings,onAuthExpired:()=>o.notifyParent("storefront-editor:auth-expired")}):null}},website:{name:"Appearance",kindLabel:"Site settings",icon:"website",render:(e,o)=>we(Hf,{initialTab:e.tab,revealPageGroup:e.revealPageGroup,themeFromDocument:!o.capabilities.hasSiteTheme,tokenRef:o.tokenRef,siteId:o.siteId,onNotify:o.onNotify},e.tab??"")},chat:{name:"Live chat",kindLabel:"Site settings",icon:"chat",render:()=>we(KH,{})},social:{name:"Social links",kindLabel:"Site settings",icon:"social",render:()=>we(JH,{unavailable:we(d5,{what:"Social link"})})},ticker:{name:Ma,kindLabel:Gi,icon:"ticker",head:(e,o)=>e.kind==="ticker"?Tre(o,e.heroId,c(Ma)):null,render:e=>we(i2,{heroId:e.kind==="ticker"?e.heroId:""})},heroMedia:_S("media"),heroImage:_S("image"),heroImage2:_S("image2"),part:{name:Gi,kindLabel:Gi,icon:"Text",head:(e,o)=>{if(e.kind!=="part")return null;let t=o.describeNode(e.nodeId);if(!t)return null;let{key:r,row:a}=Ut(e.propKey),n=a?Dn(t.fields[r],a):t.fields[r],s=cs(t.type),l=s?Us(s,e.propKey):null,i=s&&l?s[l].label:NO[e.propKey],d=i?c(i):dv(c(xf(hv(n??{},r))),a),f=a5({name:d,tier:"part",of:c(t.label)},{partOf:({name:m})=>c("Part of {name}",{name:m})});return{name:f.name,kindLabel:f.kind}},render:(e,o)=>e.kind==="part"?we(A2,{nodeId:e.nodeId,propKey:e.propKey,onBack:()=>o.onSelectNode(e.nodeId),onEditStyle:o.onOpenSiteStyles}):null}},_re=new Set(["header","website","chat"]);function Are(e,o){if(e==="selection")return null;let t=Ere[e];return _re.has(e)&&!o.hasSiteSettings?{...t,kindLabel:"Not part of a template",render:()=>we(d5,{what:t.name})}:t}function f5({mode:e,onOpenWebsiteSettings:o,onOpenSiteStyles:t,onSelectNode:r,hideNodeActions:a=!1,onNotify:n,onHidePanel:s}){let{capabilities:l,tokenRef:i,notifyParent:d,currentSlug:f,siteId:m,runAuthed:u,readOnly:h,navigate:I}=gre(),{rows:S}=hl(),P=S?.find(de=>de.slug===f)??null,T=cre(),B=Object.keys(T.fields).some(de=>!de.startsWith("_")&&!Gx.includes(de)),{websiteName:k}=vo(),g=yre({readOnly:h}),{select:b}=Sre(),{selectedItem:E,getItemById:A,getSelectorForId:N,config:w,appState:_}=fre(de=>de),y=hre(w,E?{type:E.type,props:E.props}:null),v=E?yv(y??w.components[E.type]?.fields,E.props):[],O=de=>w.components[de]?.label??de,C=E?N(E.props.id):void 0,L=Are(e.kind,l),M=Ire(),K={capabilities:l,tokenRef:i,hostPanels:M.chrome?.panels,describeNode:de=>{let he=A(de);if(!he)return null;let De=w.components[he.type];return{type:he.type,label:De?.label??he.type,fields:De?.fields??{},props:he.props??{}}},siteId:m,websiteName:k??null,notifyParent:d,onNotify:n,onOpenWebsiteSettings:o,onOpenSiteStyles:t,onSelectNode:r},W=L?.head?.(e,K)??null,se=WH({kind:P?.kind,pageName:P?.label}),le=W?.name??(L?c(L.name):E?c(O(E.type)):se.name),ee=W?.kindLabel??(L?c(L.kindLabel):E?C&&C.zone!==r5?c("Block"):c("Section"):se.kindLabel),Ie=L?L.icon:E?E.type:"page",ae=ES(e)&&E?Ni(E.type):null,me=!!E&&!!C&&C.zone===r5&&E.type!==Re&&E.type!==bre,ge=cm(_?.data,E),Ge=()=>{ge||C&&g.duplicateComponent(C.zone,C.index)},Ve=()=>{C&&(g.removeComponent(C.zone,C.index),g.select(null))},Eo=E?w.components[E.type]?.defaultProps?.previewHover:void 0,Ye=ES(e)&&!!E&&!!C&&Eo!==void 0,Je=Ye&&E.props.previewHover===!0,qo=()=>{!E||!C||g.replaceComponent(C.zone,C.index,{...E,props:{...E.props,previewHover:!Je}})},{shown:Qe,setShown:mo}=vre(),$=!!(L||E||B);return Zr("div",{className:`es-sidepanel es-sidepanel--right sf-panel sf-panel--right ${kre(Qe)}`.trim(),children:[we(ure,{icon:we(ja,{type:Ie,size:15}),name:le,kind:ee,actions:!a&&ES(e)&&E&&E.type!==Re?Zr(e5,{children:[we(o5,{label:c("Duplicate section"),title:ge??void 0,disabled:ge!==null,onClick:Ge,children:we(mre,{size:15})}),me&&l.hasSiteSettings&&we(U2,{node:E,currentSlug:f,siteId:m??void 0,tokenRef:i,runAuthed:u,onNotify:n}),we(o5,{label:c("Remove section"),danger:!0,onClick:Ve,children:we(xre,{size:15})}),s?we(t5,{side:"right",onHide:s,divider:!0}):null]}):s?we(t5,{side:"right",onHide:s}):void 0}),Ye&&Zr("div",{className:"sf-preview-pin",children:[Zr("div",{className:"sf-preview-pin-text",children:[we("span",{className:"sf-preview-pin-label",children:c("Preview hover state")}),we("span",{className:"sf-preview-pin-hint",children:c("not shown live")})]}),we(Cre,{checked:Je,onChange:qo,ariaLabel:c("Preview hover state")})]}),Zr("div",{className:"sf-insp-body es-insp-body sf-scroll",children:[L?L.render(e,K):E?Zr(e5,{children:[E.type===Re&&l.hasSiteSettings&&we(Z2,{}),we(cT,{children:we(Ft,{entries:we(j2,{parts:v,heading:!1,onOpen:de=>b(jt(E.props.id,de))}),entryCount:vS(v).length,itemWord:le})}),ae&&we(tm,{source:ae,slug:vs(E?.props),menuId:Ju(E?.props)})]}):B?we(Ft,{omit:Gx}):we(pre,{variant:"none",icon:!1,message:c("Select a section or block to edit it.")}),$&&we(wre,{shown:Qe,onChange:mo,label:c("Show hints")})]})]})}import{jsx as p,jsxs as F,Fragment as x5}from"react/jsx-runtime";var so={dark:"var(--sf-thumb-bar-dark)",soft:"var(--sf-thumb-bar-light)",accent:"var(--sf-thumb-accent)",tint:"var(--sf-thumb-accent-tint)",block:"var(--sf-thumb-block)",line:"var(--sf-thumb-border)",card:"var(--sf-thumb-card)"},FS="repeating-linear-gradient(135deg,var(--sf-thumb-hatch1) 0,var(--sf-thumb-hatch1) 5px,var(--sf-thumb-hatch2) 5px,var(--sf-thumb-hatch2) 10px)";function j({w:e,h:o,tone:t="dark",r=2,style:a}){return p("div",{style:{width:e,height:o,borderRadius:r,background:so[t],flex:"none",...a}})}var Fre={Hero:"hero",HeroSingle:"herosingle",IntroBleed:"intro",Collections:"collections",AlloyWheelsListing:"wheelslisting",CatalogFilterBar:"catalogfilterbar",ProductGrid:"productgrid",FitmentFinder:"fitmentfinder",Gallery:"gallery",GalleryB:"gallerygrid",SpecStrip:"specstrip",ProductHero:"producthero",SpecTable:"spectable",ProcessSteps:"processsteps",DetailRows:"detailrows",FitmentTable:"fitmenttable",CompatibleTyres:"compatibletyres",TyreSizes:"tyresizes",TyreFitment:"tyrefitment",EuTyreLabel:"eutyrelabel",RelatedProducts:"productgrid",BundleOffer:"bundleoffer",OrderSummary:"ordersummary",DeliveryOptions:"deliveryoptions",PaymentBadges:"paymentbadges",CheckoutCTA:"checkoutcta",Manifesto:"manifesto",ParagraphsA:"paragraphs",Prose:"prose",StatsParagraph:"statsparagraph",Chart:"chart",Mockup:"mockup",Footprint:"footprint",Timeline:"timeline",TimelineTrack:"timelinetrack",TitleWithButtons:"titlewithbuttons",Split:"split",Cards:"cards",FAQ:"faq",Testimonials:"testimonials",Masthead:"masthead",Breadcrumb:"breadcrumb",CategoryBar:"categorybar",FeaturedCover:"featuredcover",LongRead:"longread",ArticleBody:"articlebody",Series:"series",Subscribe:"subscribe",SubscribeBlogs:"subscribe",Events:"events",DocMasthead:"docmasthead",DocTabs:"doctabs",DocBody:"docbody",DocMetaCards:"docmetacards",Banner:"banner",Stats:"stats",KeyFeatures:"keyfeatures",Logos:"logos",Ticker:"ticker",Countdown:"countdown",Reviews:"reviews",SubmitBuild:"submitbuild",ReviewForm:"reviewform",Form:"form",AppointmentBooking:"appointmentbooking",ContactRouting:"contact",ContactLocations:"contactlocations",CityPictures:"citypictures",CityMaps:"citymaps",Header:"header",Footer:"footer",SectionHeader:"sectionheader",Grid:"grid",Flex:"blanksection",Spacer:"spacer",Divider:"divider",CustomHTML:"customhtml",Heading:"heading",Text:"text",ImageBlock:"image",ButtonBlock:"button",MenuBlock:"menu",EmailFormBlock:"emailform",SocialLogosBlock:"sociallogos",PaymentLogosBlock:"paymentlogos",LegalLineBlock:"legalline",SearchBlock:"search",CartBlock:"cart",CountrySwitchBlock:"countryswitch"},V={position:"absolute",inset:0},x={ink:"var(--sf-thumb-ink)",ink2:"var(--sf-thumb-ink-2)",inkSoft:"var(--sf-thumb-ink-soft)",inkSoft2:"var(--sf-thumb-ink-soft-2)",paper:"var(--sf-thumb-paper)",paper2:"var(--sf-thumb-paper-2)",warm:"var(--sf-thumb-warm)",rust:"var(--sf-thumb-rust)",onInk:"var(--sf-thumb-on-ink)",text:"var(--sf-thumb-scene-text)",muted:"var(--sf-thumb-scene-muted)",rule:"var(--sf-thumb-scene-rule)",mark1:"var(--sf-thumb-mark-1)",mark2:"var(--sf-thumb-mark-2)",card:"var(--sf-thumb-card)",scrim:"var(--sf-thumb-scrim)"},Ae=(e,o,t=160)=>({background:`linear-gradient(${t}deg,${e},${o})`});function gr({size:e,style:o}){let t=Math.max(2,Math.round(e*.13)),r=(a,n,s)=>({position:"absolute",inset:a,background:n,borderRadius:t,...s?{mixBlendMode:s}:null});return F("span",{style:{position:"absolute",display:"block",width:e,height:e,...o},children:[p("span",{style:r("8% 26% 30% 6%",x.mark1)}),p("span",{style:r("26% 6% 8% 30%",x.mark2,"multiply")})]})}function mm({children:e}){return p("span",{style:{fontSize:"4.64cqw",fontWeight:700,letterSpacing:"0.06em",textTransform:"uppercase",color:x.muted},children:e})}function c5({over:e,overTone:o,head:t,headSize:r=11.5,cta:a,ctaBg:n,ctaFg:s,tone:l}){return F(x5,{children:[e&&p("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.16em",fontWeight:700,color:o},children:e}),p("span",{style:{fontSize:r,lineHeight:1.15,fontWeight:700,maxWidth:"78%",color:l},children:t}),a&&p("span",{style:{alignSelf:"flex-start",fontSize:"3.65cqw",letterSpacing:"0.12em",fontWeight:700,padding:"4px 8px",borderRadius:2,marginTop:2,background:n,color:s},children:a})]})}function BS({name:e,price:o}){return F("div",{style:{display:"flex",flexDirection:"column",gap:2,minWidth:0},children:[p("div",{style:{flex:1,minHeight:0,borderRadius:3,position:"relative",overflow:"hidden",...Ae(x.paper,x.paper2,150)},children:p(gr,{size:34,style:{left:"50%",top:"50%",transform:"translate(-50%,-50%)"}})}),p("span",{style:{fontSize:"3.65cqw",fontWeight:600,color:x.text},children:e}),p("span",{style:{fontSize:"3.65cqw",color:x.muted},children:o})]})}function Ir({k:e,v:o,ok:t}){return F("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",gap:6,padding:"3.5px 2px",borderBottom:`1px solid ${x.rule}`,fontSize:"3.98cqw",color:x.muted},children:[p("span",{children:e}),F("span",{style:{display:"flex",gap:6,alignItems:"center"},children:[p("b",{style:{color:x.text,fontWeight:700},children:o}),t&&p("span",{style:{color:x.rust,fontWeight:700},children:"\u2713"})]})]})}function ke({title:e,children:o}){return F("div",{style:{...V,background:x.card,padding:"9px 10px",display:"flex",flexDirection:"column",gap:6},children:[p(mm,{children:e}),o]})}function p5({size:e=14}){return p("span",{style:{width:e,height:e,borderRadius:"50%",flex:"none",display:"block",background:`linear-gradient(150deg,${x.mark1},${x.mark2})`}})}function LS({filled:e=5,size:o=6}){return F("span",{style:{fontSize:o,letterSpacing:"0.06em",color:x.rust,lineHeight:1},children:["\u2605".repeat(e),p("span",{style:{color:x.mark1},children:"\u2605".repeat(5-e)})]})}function Ki({n:e,label:o,tone:t=x.text}){return F("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:1,minWidth:0},children:[p("b",{style:{fontSize:"8.16cqw",lineHeight:1,color:t},children:e}),p("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.08em",textTransform:"uppercase",opacity:.62,color:t},children:o})]})}function to({children:e,w:o}){return p("span",{style:{fontSize:"3.98cqw",lineHeight:1.45,color:x.muted,width:o,display:"block"},children:e})}function um({label:e,w:o="100%",filled:t}){return F("div",{style:{width:o,display:"flex",flexDirection:"column",gap:2},children:[p("span",{style:{fontSize:"3.32cqw",letterSpacing:"0.08em",textTransform:"uppercase",color:x.muted},children:e}),p("span",{style:{height:9,borderRadius:3,border:`1px solid ${x.rule}`,background:t?x.paper:x.card}})]})}function u5({children:e}){return p("span",{style:{alignSelf:"flex-start",fontSize:"3.65cqw",letterSpacing:"0.12em",fontWeight:700,padding:"5px 9px",borderRadius:2,background:x.text,color:x.onInk},children:e})}var Bre={wheelslisting:p(ke,{title:"All wheels",children:p("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[["Ridge 19","20\xD79 +12","$365"],["Ridge 29","18\xD79 +20","$410"],["Ridge 39","17\xD78 \u221210","$455"]].map(([e,o,t])=>F("div",{style:{display:"flex",alignItems:"center",gap:6},children:[p("span",{style:{width:20,height:15,borderRadius:3,flex:"none",position:"relative",overflow:"hidden",...Ae(x.paper,x.paper2,150)},children:p(gr,{size:12,style:{left:"50%",top:"50%",transform:"translate(-50%,-50%)"}})}),p("b",{style:{flex:1,fontSize:"4.31cqw",color:x.text},children:e}),p("span",{style:{fontSize:"3.65cqw",color:x.muted},children:o}),p("b",{style:{fontSize:"4.31cqw",color:x.text,width:26,textAlign:"right"},children:t})]},e))})}),catalogfilterbar:F("div",{style:{...V,background:x.card,display:"flex",flexDirection:"column",justifyContent:"center",gap:7,padding:"0 11px"},children:[F("div",{style:{display:"flex",gap:4,alignItems:"center"},children:[["20 inch","6\xD7139.7","Black"].map(e=>F("span",{style:{fontSize:"3.65cqw",fontWeight:600,padding:"4px 7px",borderRadius:99,background:x.text,color:x.onInk,display:"flex",gap:4,alignItems:"center"},children:[e,p("span",{style:{opacity:.6},children:"\u2715"})]},e)),p("span",{style:{fontSize:"3.65cqw",color:x.rust,fontWeight:700},children:"Clear"})]}),F("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[p("span",{style:{fontSize:"3.65cqw",color:x.muted},children:"128 results"}),p("span",{style:{fontSize:"3.65cqw",color:x.muted,border:`1px solid ${x.rule}`,borderRadius:3,padding:"3px 6px"},children:"Sort: Price \u25BE"})]})]}),fitmentfinder:F("div",{style:{...V,padding:"10px 12px",display:"flex",flexDirection:"column",gap:6,justifyContent:"center",...Ae(x.ink,x.inkSoft)},children:[p("span",{style:{fontSize:"5.31cqw",fontWeight:700,color:x.onInk},children:"Will it fit your rig?"}),F("div",{style:{display:"flex",gap:4},children:[["2021","Toyota","Hilux"].map(e=>F("span",{style:{flex:1,fontSize:"3.65cqw",color:x.text,background:x.card,borderRadius:3,padding:"5px 6px",display:"flex",justifyContent:"space-between"},children:[e," ",p("span",{style:{color:x.muted},children:"\u25BE"})]},e)),p("span",{style:{fontSize:"3.65cqw",fontWeight:700,letterSpacing:"0.08em",background:x.warm,color:x.ink,borderRadius:3,padding:"5px 7px"},children:"GO"})]})]}),compatibletyres:p(ke,{title:"Tyres that suit",children:p("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(3,1fr)",gap:5,minHeight:0},children:[["Ridge Grappler","$489"],["Trail Grappler","$525"],["Terra Grappler","$438"]].map(([e,o])=>F("div",{style:{display:"flex",flexDirection:"column",gap:2,minWidth:0},children:[p("div",{style:{flex:1,minHeight:0,borderRadius:3,position:"relative",overflow:"hidden",background:x.ink},children:p("span",{style:{position:"absolute",left:"50%",top:"50%",transform:"translate(-50%,-50%)",width:26,height:26,borderRadius:"50%",border:`5px solid ${x.mark2}`,boxSizing:"border-box"}})}),p("span",{style:{fontSize:"3.32cqw",fontWeight:600,color:x.text,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},children:e}),p("span",{style:{fontSize:"3.32cqw",color:x.muted},children:o})]},e))})}),tyresizes:p(ke,{title:"Available sizes",children:p("div",{style:{flex:1,display:"flex",flexWrap:"wrap",gap:4,alignContent:"center"},children:["265/65R17","285/70R17","265/60R18","275/55R20"].map((e,o)=>p("span",{style:{fontSize:"3.65cqw",fontWeight:600,padding:"5px 7px",borderRadius:3,border:`1px solid ${o===0?x.rust:x.rule}`,color:o===0?x.rust:x.text,background:o===0?x.paper:x.card},children:e},e))})}),tyrefitment:F(ke,{title:"Will it fit your car?",children:[p("div",{style:{display:"flex",gap:3},children:["Make","Model","Year","Trim"].map(e=>F("span",{style:{flex:1,minWidth:0,fontSize:"3.32cqw",color:x.muted,background:x.paper,border:`1px solid ${x.rule}`,borderRadius:3,padding:"4px 5px",display:"flex",justifyContent:"space-between",gap:2,overflow:"hidden",whiteSpace:"nowrap"},children:[e," ",p("span",{style:{color:x.muted},children:"\u25BE"})]},e))}),p("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:2,justifyContent:"center",minHeight:0},children:[["265/65R17","Fits",!0],["285/70R17","Not your size",!1]].map(([e,o,t])=>F("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"baseline",gap:6,borderTop:`1px solid ${x.rule}`,paddingTop:3},children:[p("span",{style:{fontSize:"3.32cqw",fontWeight:600,color:x.text},children:e}),p("span",{style:{fontSize:"3.32cqw",fontWeight:t?700:400,letterSpacing:"0.06em",color:t?x.warm:x.muted},children:o})]},e))})]}),eutyrelabel:F("div",{style:{...V,background:x.card,padding:"9px 11px",display:"flex",gap:8,alignItems:"center"},children:[p("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:1.5},children:[["A","42%"],["B","56%"],["C","70%"],["D","84%"]].map(([e,o],t)=>F("div",{style:{display:"flex",alignItems:"center",gap:3},children:[p("span",{style:{width:o,height:6,borderRadius:"0 2px 2px 0",background:t===1?x.rust:x.mark1}}),p("span",{style:{fontSize:"3.32cqw",fontWeight:700,color:t===1?x.rust:x.muted},children:e})]},e))}),F("div",{style:{flex:"none",display:"flex",flexDirection:"column",gap:3,alignItems:"center"},children:[p("b",{style:{fontSize:"6.63cqw",lineHeight:1,color:x.text},children:"72"}),p("span",{style:{fontSize:"3.32cqw",letterSpacing:"0.08em",color:x.muted},children:"dB"})]})]}),bundleoffer:F("div",{style:{...V,background:x.paper,padding:"9px 11px",display:"flex",flexDirection:"column",gap:5,justifyContent:"center"},children:[p(mm,{children:"Buy it with"}),F("div",{style:{display:"flex",alignItems:"center",gap:5},children:[[0,1].map(e=>p("span",{style:{width:26,height:22,borderRadius:3,flex:"none",position:"relative",overflow:"hidden",background:x.card},children:p(gr,{size:17,style:{left:"50%",top:"50%",transform:"translate(-50%,-50%)"}})},e)),p("span",{style:{fontSize:"5.69cqw",fontWeight:700,color:x.muted},children:"+"}),F("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:1},children:[p("span",{style:{fontSize:"3.65cqw",color:x.muted,textDecoration:"line-through"},children:"$1,024"}),p("b",{style:{fontSize:"6.02cqw",color:x.rust,lineHeight:1},children:"$899"})]})]})]}),checkoutcta:F("div",{style:{...V,display:"flex",alignItems:"center",justifyContent:"space-between",padding:"0 13px",gap:8,...Ae(x.ink,x.ink2)},children:[F("div",{style:{display:"flex",flexDirection:"column",gap:2},children:[p("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.12em",color:x.warm,fontWeight:700},children:"READY TO ORDER"}),p("b",{style:{fontSize:"6.63cqw",color:x.onInk,lineHeight:1},children:"$1,956"}),p("span",{style:{fontSize:"3.65cqw",color:x.onInk,opacity:.65},children:"4 items \xB7 fitted free"})]}),p("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.12em",fontWeight:700,padding:"6px 10px",borderRadius:2,background:x.warm,color:x.ink,flex:"none"},children:"CHECKOUT"})]}),contact:p(ke,{title:"Who do you need?",children:p("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[["Fitment help","the workshop"],["Order status","the front desk"],["Trade accounts","sales"]].map(([e,o])=>F("div",{style:{display:"flex",alignItems:"center",gap:5},children:[p("b",{style:{flex:1,fontSize:"4.31cqw",color:x.text},children:e}),p("span",{style:{fontSize:"3.65cqw",color:x.muted},children:o}),p("span",{style:{fontSize:"4.64cqw",color:x.rust,lineHeight:1},children:"\u203A"})]},e))})}),contactlocations:p(ke,{title:"Find us",children:p("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(2,1fr)",gap:5,minHeight:0},children:[["Brisbane","7 Kerry Rd","Mon\u2013Sat"],["Townsville","12 Enterprise","Mon\u2013Fri"]].map(([e,o,t])=>F("div",{style:{border:`1px solid ${x.rule}`,borderRadius:4,padding:"5px 6px",display:"flex",flexDirection:"column",gap:1},children:[p("b",{style:{fontSize:"4.31cqw",color:x.text},children:e}),p("span",{style:{fontSize:"3.32cqw",color:x.muted},children:o}),p("span",{style:{fontSize:"3.32cqw",color:x.rust,fontWeight:700},children:t})]},e))})}),citypictures:p(ke,{title:"Our studios",children:F("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:3,minHeight:0},children:[p("span",{style:{fontSize:"3.32cqw",letterSpacing:"0.12em",fontWeight:700,color:x.muted},children:"A \xB7 AMERICAS"}),p("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(3,1fr)",gap:4,minHeight:0},children:["Los Angeles","Miami","Toronto"].map(e=>F("div",{style:{position:"relative",minHeight:0},children:[p(j,{r:3,style:{...V,background:`linear-gradient(transparent 45%,${x.scrim} 45%),${Ae(x.ink,x.inkSoft2).background}`}}),p("b",{style:{position:"absolute",left:5,bottom:4,fontSize:"3.65cqw",color:x.onInk},children:e})]},e))})]})}),citymaps:p(ke,{title:"Find us",children:p("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(2,1fr)",gap:5,minHeight:0},children:[["Brisbane","7 Kerry Rd"],["Townsville","12 Enterprise"]].map(([e,o])=>F("div",{style:{position:"relative",padding:"4px 5px",display:"flex",flexDirection:"column",gap:2,minHeight:0},children:[p(j,{r:4,style:{...V,background:"none",border:`1px solid ${x.rule}`}}),p("b",{style:{position:"relative",fontSize:"4.31cqw",color:x.text},children:e}),p("span",{style:{position:"relative",fontSize:"3.32cqw",color:x.muted},children:o}),F("div",{style:{flex:1,minHeight:0,position:"relative"},children:[p(j,{r:3,style:{...V,...Ae(x.paper,x.paper2,150)}}),p(j,{w:"60%",h:"60%",r:8,style:{position:"absolute",left:"12%",top:"20%",background:x.mark1,opacity:.75}}),p(j,{w:6,h:6,r:3,style:{position:"absolute",left:"44%",top:"34%",background:x.rust}})]})]},e))})}),form:p(ke,{title:"Send us a message",children:F("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[F("div",{style:{display:"flex",gap:5},children:[p(um,{label:"Name"}),p(um,{label:"Email"})]}),p(um,{label:"Message",filled:!0}),p(u5,{children:"SEND"})]})}),appointmentbooking:p(ke,{title:"Book a fitting",children:F("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[p("div",{style:{display:"flex",gap:3},children:["Mon","Tue","Wed","Thu"].map((e,o)=>p("span",{style:{flex:1,textAlign:"center",fontSize:"3.32cqw",fontWeight:o===2?700:500,padding:"4px 0",borderRadius:3,background:o===2?x.text:x.paper,color:o===2?x.onInk:x.muted},children:e},e))}),p("div",{style:{display:"flex",gap:3},children:["8:00","10:30","13:00","15:30"].map((e,o)=>p("span",{style:{flex:1,textAlign:"center",fontSize:"3.32cqw",padding:"4px 0",borderRadius:3,border:`1px solid ${o===1?x.rust:x.rule}`,color:o===1?x.rust:x.muted,background:o===3?x.paper:x.card,textDecoration:o===3?"line-through":"none"},children:e},e))})]})}),reviewform:p(ke,{title:"Leave a review",children:F("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:5,justifyContent:"center"},children:[p(LS,{filled:4,size:14}),p(um,{label:"Your review",filled:!0}),p(u5,{children:"POST"})]})}),submitbuild:p(ke,{title:"Show us your build",children:F("div",{style:{flex:1,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:3,border:`1px dashed ${x.mark1}`,borderRadius:5,background:x.paper},children:[p("span",{style:{fontSize:"6.63cqw",lineHeight:1,color:x.rust,fontWeight:300},children:"+"}),p("span",{style:{fontSize:"3.65cqw",color:x.muted},children:"Drop a photo of your rig"})]})}),masthead:F("div",{style:{...V,background:x.paper,display:"flex",flexDirection:"column",justifyContent:"center",padding:"0 13px",gap:5},children:[p("span",{style:{height:1.5,background:x.text}}),p("span",{style:{fontSize:"7.65cqw",fontWeight:800,letterSpacing:"0.02em",color:x.text,lineHeight:1},children:"THE TRACK"}),F("div",{style:{display:"flex",justifyContent:"space-between",fontSize:"3.65cqw",letterSpacing:"0.1em",textTransform:"uppercase",color:x.muted},children:[p("span",{children:"Issue 14"}),p("span",{children:"Spring 2026"})]}),p("span",{style:{height:1,background:x.rule}})]}),featuredcover:F("div",{style:{...V,overflow:"hidden",...Ae(x.ink,x.inkSoft2)},children:[p(gr,{size:92,style:{right:-18,top:-14}}),p("div",{style:{position:"absolute",inset:0,background:`linear-gradient(0deg,${x.scrim},transparent 62%)`}}),F("div",{style:{position:"absolute",left:12,right:12,bottom:11,display:"flex",flexDirection:"column",gap:3},children:[p("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.16em",fontWeight:700,color:x.warm},children:"FEATURE"}),p("span",{style:{fontSize:"6.16cqw",lineHeight:1.15,fontWeight:700,color:x.onInk},children:"Four days on the Madigan Line"})]})]}),longread:F("div",{style:{...V,background:x.card,padding:"10px 14px",display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[p("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.14em",fontWeight:700,color:x.rust},children:"12 MIN READ"}),p("span",{style:{fontSize:"6.02cqw",lineHeight:1.15,fontWeight:700,color:x.text},children:"What breaks first, and why"}),p(to,{children:"Every failure starts in the same place:"}),p(to,{w:"80%",children:"the bolt nobody re-torqued."})]}),articlebody:F("div",{style:{...V,background:x.card,padding:"10px 22px",display:"flex",flexDirection:"column",gap:4,justifyContent:"center",alignItems:"center",textAlign:"center"},children:[p("span",{style:{fontSize:"4.97cqw",lineHeight:1.2,fontWeight:700,color:x.text},children:"Why offset beats width"}),p(to,{w:"100%",children:"A wider wheel adds grip only if the offset still"}),p(to,{w:"88%",children:"clears the arch, so the offset is chosen first."}),p(to,{w:"80%",children:"Width follows from the space left."})]}),series:p(ke,{title:"Recurring columns",children:p("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:5,justifyContent:"center"},children:[["Shed Notes","Monthly"],["Track Tested","Fortnightly"],["Reader Rigs","Weekly"]].map(([e,o])=>F("div",{style:{display:"flex",alignItems:"center",gap:6},children:[p("span",{style:{width:3,height:12,borderRadius:2,background:x.rust,flex:"none"}}),p("b",{style:{flex:1,fontSize:"4.64cqw",color:x.text},children:e}),p("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.08em",textTransform:"uppercase",color:x.muted},children:o})]},e))})}),events:p(ke,{title:"Latest posts",children:p("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:5,justifyContent:"center"},children:[[x.inkSoft,x.inkSoft2,"Madigan Line, four days"],[x.rust,x.warm,"Why offset beats width"]].map(([e,o,t])=>F("div",{style:{display:"flex",gap:6,alignItems:"center"},children:[p("span",{style:{width:24,height:18,borderRadius:3,flex:"none",...Ae(e,o,150)}}),F("div",{style:{display:"flex",flexDirection:"column",gap:1,minWidth:0},children:[p("b",{style:{fontSize:"4.31cqw",color:x.text},children:t}),p("span",{style:{fontSize:"3.65cqw",color:x.muted},children:"4 Sep \xB7 Shed Notes"})]})]},t))})}),docmasthead:F("div",{style:{...V,background:x.card,padding:"12px 14px",display:"flex",flexDirection:"column",gap:5,justifyContent:"center"},children:[p("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.16em",fontWeight:700,color:x.muted},children:"POLICY"}),p("span",{style:{fontSize:"6.49cqw",fontWeight:700,color:x.text,lineHeight:1.1},children:"Returns & refunds"}),p("span",{style:{fontSize:"3.65cqw",color:x.muted},children:"Version 3 \xB7 Updated 4 Sep 2026"}),p("span",{style:{height:2,width:26,background:x.rust,borderRadius:1}})]}),docbody:p("div",{style:{...V,background:x.card,padding:"9px 13px",display:"flex",flexDirection:"column",gap:3,justifyContent:"center"},children:[["1.","You may return an unfitted wheel within 30 days."],["2.","Fitted wheels are covered by the structural warranty."],["3.","Freight on a change of mind is yours."]].map(([e,o])=>F("div",{style:{display:"flex",gap:5},children:[p("b",{style:{fontSize:"3.98cqw",color:x.rust,flex:"none"},children:e}),p(to,{children:o})]},e))}),docmetacards:p(ke,{title:"At a glance",children:p("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(2,1fr)",gap:5,minHeight:0},children:[["30 days","To return"],["5 years","Structural"],["Free","Fitting"],["48 hrs","Dispatch"]].map(([e,o])=>F("div",{style:{border:`1px solid ${x.rule}`,borderRadius:4,padding:"5px 6px",display:"flex",flexDirection:"column",gap:1},children:[p("b",{style:{fontSize:"5.31cqw",color:x.text,lineHeight:1},children:e}),p("span",{style:{fontSize:"3.32cqw",letterSpacing:"0.08em",textTransform:"uppercase",color:x.muted},children:o})]},o))})}),doctabs:F("div",{style:{...V,background:x.card,display:"flex",flexDirection:"column",justifyContent:"center",gap:0,padding:"0 11px"},children:[p("div",{style:{display:"flex",gap:0},children:["Returns","Warranty","Shipping"].map((e,o)=>p("span",{style:{fontSize:"3.98cqw",fontWeight:o===0?700:500,padding:"5px 8px",color:o===0?x.text:x.muted,background:o===0?x.paper:"transparent",borderRadius:"4px 4px 0 0",border:`1px solid ${o===0?x.rule:"transparent"}`,borderBottom:"none"},children:e},e))}),p("span",{style:{height:1,background:x.rule}}),F("div",{style:{paddingTop:6,display:"flex",flexDirection:"column",gap:2},children:[p(to,{children:"Unfitted wheels come back within 30 days, no questions."}),p(to,{w:"58%",children:"Freight on a change of mind is yours."})]})]}),paragraphs:F("div",{style:{...V,background:x.card,padding:"11px 14px",display:"flex",gap:10,alignItems:"center"},children:[p("span",{style:{flex:1,fontSize:"5.86cqw",lineHeight:1.2,fontWeight:700,color:x.text},children:"The right wheel is the boring one."}),F("div",{style:{flex:1,display:"flex",flexDirection:"column"},children:[p(to,{children:"Forged, correctly offset, rated for what you actually"}),p(to,{children:"carry. Everything else is a photograph."})]})]}),keyfeatures:p(ke,{title:"Key features",children:p("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:["Flow-formed barrel","1250 kg per corner","Hub-centric fit"].map(e=>F("div",{style:{display:"flex",gap:6,alignItems:"center"},children:[p("span",{style:{fontSize:"4.64cqw",color:x.rust,fontWeight:700,lineHeight:1},children:"\u2713"}),p("span",{style:{fontSize:"4.31cqw",color:x.text},children:e})]},e))})}),statsparagraph:F("div",{style:{...V,background:x.paper,padding:"10px 12px",display:"flex",gap:10,alignItems:"center"},children:[F("div",{style:{flex:"none",display:"flex",flexDirection:"column",gap:5},children:[p(Ki,{n:"27k",label:"Rigs"}),p(Ki,{n:"4.9",label:"Rating"})]}),F("div",{style:{flex:1,display:"flex",flexDirection:"column"},children:[p(to,{children:"Twelve years of fitting the same three questions, and the"}),p(to,{children:"answer has not moved: load rating, offset, then looks."})]})]}),chart:F(ke,{title:"Load vs weight",children:[p("div",{style:{flex:1,display:"flex",alignItems:"flex-end",gap:5,paddingBottom:2},children:[38,62,84,71,96].map((e,o)=>p("span",{style:{flex:1,height:`${e}%`,borderRadius:"2px 2px 0 0",background:o===4?x.rust:x.mark1}},o))}),p("span",{style:{height:1,background:x.rule,marginTop:-4}})]}),mockup:p("div",{style:{...V,overflow:"hidden",display:"flex",alignItems:"center",justifyContent:"center",...Ae(x.inkSoft,x.ink)},children:F("div",{style:{width:"72%",height:"74%",borderRadius:4,overflow:"hidden",background:x.card,boxShadow:`0 6px 14px ${x.scrim}`},children:[p("div",{style:{height:9,background:x.paper,display:"flex",alignItems:"center",gap:2,padding:"0 4px"},children:[0,1,2].map(e=>p("span",{style:{width:2.5,height:2.5,borderRadius:"50%",background:x.mark1}},e))}),F("div",{style:{padding:5,display:"flex",flexDirection:"column",gap:3},children:[p("span",{style:{height:4,width:"56%",borderRadius:1,background:x.mark2}}),p("span",{style:{height:14,borderRadius:2,...Ae(x.paper,x.paper2,150)}}),p("span",{style:{height:3,width:"38%",borderRadius:1,background:x.rust}})]})]})}),manifesto:p("div",{style:{...V,overflow:"hidden",display:"flex",alignItems:"center",padding:"0 16px",...Ae(x.ink,x.ink2)},children:F("span",{style:{fontSize:"6.63cqw",lineHeight:1.2,fontWeight:700,color:x.onInk},children:["We build for the ",p("span",{style:{color:x.warm},children:"last"})," ten percent of the track."]})}),timeline:p(ke,{title:"Our story",children:p("div",{style:{flex:1,display:"flex",flexDirection:"column",justifyContent:"center",gap:6,paddingLeft:4},children:[["1998","One shed, one lathe."],["2009","First forged rim."],["2024","27,000 rigs on."]].map(([e,o],t)=>F("div",{style:{display:"flex",gap:7,alignItems:"flex-start",position:"relative"},children:[t<2&&p("span",{style:{position:"absolute",left:3,top:8,bottom:-8,width:1,background:x.rule}}),p("span",{style:{width:7,height:7,borderRadius:"50%",flex:"none",marginTop:1,background:x.rust,zIndex:1}}),F("div",{style:{display:"flex",flexDirection:"column",gap:0,minWidth:0},children:[p("b",{style:{fontSize:"4.64cqw",color:x.text},children:e}),p(to,{children:o})]})]},e))})}),timelinetrack:F("div",{style:{...V,padding:"0 12px",display:"flex",flexDirection:"column",gap:10,justifyContent:"center",...Ae(x.ink,x.inkSoft)},children:[p("span",{style:{fontSize:"3.98cqw",fontWeight:700,letterSpacing:"0.14em",textTransform:"uppercase",color:x.warm},children:"Milestones"}),F("div",{style:{position:"relative",display:"flex",justifyContent:"space-between",paddingTop:7},children:[p("span",{style:{position:"absolute",left:0,right:0,top:3,height:1,background:x.mark2,opacity:.55}}),["1998","2009","2016","2024"].map((e,o)=>F("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:3,position:"relative"},children:[p("span",{style:{position:"absolute",top:-7,width:6,height:6,borderRadius:"50%",background:o===3?x.warm:x.mark1}}),p("span",{style:{fontSize:"4.31cqw",fontWeight:700,color:o===3?x.warm:x.onInk,opacity:o===3?1:.75},children:e})]},e))]})]}),footprint:F("div",{style:{...V,overflow:"hidden",...Ae(x.paper,x.paper2,150)},children:[p("span",{style:{position:"absolute",left:"8%",top:"18%",width:"62%",height:"64%",borderRadius:"48% 52% 40% 60% / 55% 45% 55% 45%",background:x.mark1,opacity:.75}}),p("span",{style:{position:"absolute",left:"52%",top:"52%",width:"34%",height:"34%",borderRadius:"58% 42% 55% 45% / 45% 58% 42% 55%",background:x.mark2,opacity:.55}}),[["26%","38%"],["44%","58%"],["62%","34%"]].map(([e,o])=>p("span",{style:{position:"absolute",left:e,top:o,width:7,height:7,borderRadius:"50% 50% 50% 0",transform:"rotate(-45deg)",background:x.rust}},e)),p("span",{style:{position:"absolute",left:11,bottom:9,fontSize:"4.64cqw",fontWeight:700,color:x.text},children:"3 fitting bays"})]}),banner:F("div",{style:{...V,display:"flex",alignItems:"center",justifyContent:"space-between",padding:"0 13px",gap:8,background:x.rust},children:[F("div",{style:{display:"flex",flexDirection:"column",gap:2},children:[p("b",{style:{fontSize:"6.02cqw",color:x.onInk},children:"End of season \xB7 20% off"}),p("span",{style:{fontSize:"3.98cqw",color:x.onInk,opacity:.8},children:"Fitted free, this month only."})]}),p("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.12em",fontWeight:700,padding:"5px 9px",borderRadius:2,background:x.onInk,color:x.text,flex:"none"},children:"SHOP"})]}),titlewithbuttons:F("div",{style:{...V,background:x.paper,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:7,padding:"0 14px",textAlign:"center"},children:[p("span",{style:{fontSize:"6.49cqw",lineHeight:1.15,fontWeight:700,color:x.text},children:"Not sure what fits?"}),F("div",{style:{display:"flex",gap:5},children:[p("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.12em",fontWeight:700,padding:"5px 9px",borderRadius:2,background:x.text,color:x.onInk},children:"FIND MY FIT"}),p("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.12em",fontWeight:700,padding:"5px 9px",borderRadius:2,border:`1px solid ${x.text}`,color:x.text},children:"CALL US"})]})]}),ticker:p("div",{style:{...V,overflow:"hidden",background:x.ink,display:"flex",alignItems:"center"},children:p("span",{style:{whiteSpace:"nowrap",fontSize:"6.29cqw",fontWeight:800,letterSpacing:"0.06em",color:x.warm,marginLeft:-14},children:"FREE FITTING \xB7 48HR DISPATCH \xB7 FREE FITTING \xB7 48HR DISPATCH"})}),countdown:F("div",{style:{...V,padding:"10px 12px",display:"flex",flexDirection:"column",alignItems:"center",gap:6,justifyContent:"center",...Ae(x.ink,x.ink2)},children:[p("span",{style:{fontSize:"3.65cqw",fontWeight:700,letterSpacing:"0.16em",textTransform:"uppercase",color:x.muted},children:"Back online in"}),p("div",{style:{display:"flex",alignItems:"flex-start",gap:5},children:[["23","Hours"],["59","Minutes"],["48","Seconds"]].map(([e,o],t)=>F("div",{style:{display:"flex",alignItems:"flex-start",gap:5},children:[t>0&&p("b",{style:{fontSize:"9.5cqw",lineHeight:1,color:x.warm},children:":"}),F("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:2},children:[p("b",{style:{fontSize:"11.5cqw",lineHeight:1,color:x.onInk,fontVariantNumeric:"tabular-nums"},children:e}),p("span",{style:{fontSize:"3.2cqw",letterSpacing:"0.1em",textTransform:"uppercase",opacity:.62,color:x.onInk},children:o})]})]},o))})]}),breadcrumb:p("div",{style:{...V,background:x.card,display:"flex",alignItems:"center",padding:"0 13px"},children:F("span",{style:{fontSize:"4.64cqw",color:x.muted},children:["Home ",p("span",{style:{opacity:.5},children:"/"})," Wheels ",p("span",{style:{opacity:.5},children:"/"})," ",p("span",{style:{color:x.text,fontWeight:700},children:"20 inch"})]})}),categorybar:F("div",{style:{...V,background:x.card,display:"flex",flexDirection:"column",justifyContent:"center",gap:7,padding:"0 11px"},children:[p("div",{style:{display:"flex",gap:5},children:["All","Wheels","Tyres","Lift"].map((e,o)=>p("span",{style:{fontSize:"3.98cqw",fontWeight:o===0?700:500,padding:"4px 7px",borderRadius:99,background:o===0?x.text:x.paper,color:o===0?x.onInk:x.muted},children:e},e))}),p("span",{style:{height:1,background:x.rule}})]}),intro:F("div",{style:{...V,overflow:"hidden",background:x.card},children:[p("div",{style:{position:"absolute",inset:0,...Ae(x.ink,x.inkSoft2)}}),p(gr,{size:64,style:{right:8,top:6}}),F("div",{style:{position:"absolute",left:16,right:16,bottom:8,top:"46%",background:x.paper,borderRadius:6,padding:"8px 11px",display:"flex",flexDirection:"column",gap:2,boxShadow:`0 -4px 10px ${x.scrim}`},children:[p("span",{style:{fontSize:"5.69cqw",fontWeight:700,color:x.text},children:"Since 1998"}),p(to,{children:"One shed, one lathe, one idea."}),p(to,{w:"66%",children:"It turned out to be right."})]})]}),gallerygrid:p(ke,{title:"Photo gallery",children:p("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(3,1fr)",gridTemplateRows:"repeat(2,1fr)",gap:4,minHeight:0},children:[[x.rust,x.warm],[x.inkSoft,x.ink],[x.paper2,x.mark2],[x.ink,x.inkSoft2],[x.warm,x.paper2],[x.mark2,x.inkSoft]].map(([e,o],t)=>p("div",{style:{borderRadius:3,...Ae(e,o,140+t*22)}},t))})}),gallery:F(ke,{title:"Gallery",children:[p("div",{style:{display:"flex",gap:8,alignItems:"center",marginTop:-2},children:["On the truck","Studio","Close-ups"].map((e,o)=>p("span",{style:{fontSize:"3.98cqw",fontWeight:o===0?700:500,color:o===0?x.text:x.muted,borderBottom:`1.5px solid ${o===0?x.rust:"transparent"}`,paddingBottom:2},children:e},e))}),p("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(3,1fr)",gap:4,minHeight:0},children:[[x.rust,x.warm],[x.ink,x.inkSoft],[x.paper2,x.mark2]].map(([e,o],t)=>p("div",{style:{borderRadius:3,...Ae(e,o,150+t*20)}},t))})]}),ordersummary:F(ke,{title:"Order summary",children:[F("div",{style:{display:"flex",gap:6,alignItems:"center",paddingBottom:4},children:[p("span",{style:{width:26,height:26,borderRadius:4,position:"relative",overflow:"hidden",flex:"none",...Ae(x.paper,x.paper2,150)},children:p(gr,{size:18,style:{left:"50%",top:"50%",transform:"translate(-50%,-50%)"}})}),F("div",{style:{display:"flex",flexDirection:"column",gap:1,minWidth:0},children:[p("b",{style:{fontSize:"4.31cqw",color:x.text},children:"Ridge Grappler"}),p("span",{style:{fontSize:"3.65cqw",color:x.muted},children:"20\xD79 +12 \xB7 qty 4"})]})]}),F("div",{style:{flex:1,minHeight:0,display:"flex",flexDirection:"column",justifyContent:"center"},children:[p(Ir,{k:"Subtotal",v:"$1,956"}),p(Ir,{k:"Fitting",v:"Free"}),F("div",{style:{display:"flex",justifyContent:"space-between",paddingTop:5,fontSize:"4.64cqw"},children:[p("b",{style:{color:x.text},children:"Total"}),p("b",{style:{color:x.text,fontSize:"6.02cqw"},children:"$1,956"})]})]})]}),deliveryoptions:p(ke,{title:"Delivery",children:p("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[["Standard","3\u20135 days","Free",!0],["Express","Next day","$19",!1]].map(([e,o,t,r])=>F("div",{style:{display:"flex",alignItems:"center",gap:6,padding:"5px 6px",borderRadius:4,border:`1px solid ${r?x.rust:x.rule}`,background:r?x.paper:x.card},children:[p("span",{style:{width:7,height:7,borderRadius:"50%",flex:"none",border:`1.5px solid ${r?x.rust:x.mark1}`,background:r?x.rust:"transparent"}}),p("span",{style:{flex:1,fontSize:"4.31cqw",fontWeight:600,color:x.text},children:e}),p("span",{style:{fontSize:"3.98cqw",color:x.muted},children:o}),p("b",{style:{fontSize:"4.31cqw",color:x.text},children:t})]},e))})}),paymentbadges:F("div",{style:{...V,background:x.paper,display:"flex",flexDirection:"column",gap:8,justifyContent:"center",padding:"0 12px"},children:[p(mm,{children:"Ways to pay"}),p("div",{style:{display:"flex",gap:5},children:[["VISA",x.ink],["MC",x.rust],["AMEX",x.inkSoft],["PayPal",x.ink2]].map(([e,o])=>p("span",{style:{flex:1,textAlign:"center",fontSize:"3.65cqw",fontWeight:800,letterSpacing:"0.06em",color:x.onInk,borderRadius:3,padding:"6px 0",background:o},children:e},e))})]}),stats:F("div",{style:{...V,padding:"10px 12px",display:"flex",flexDirection:"column",gap:9,justifyContent:"center",...Ae(x.ink,x.ink2)},children:[p("span",{style:{fontSize:"3.98cqw",fontWeight:700,letterSpacing:"0.14em",textTransform:"uppercase",color:x.warm},children:"By the numbers"}),F("div",{style:{display:"flex",gap:8},children:[p(Ki,{n:"27k",label:"Rigs fitted",tone:x.onInk}),p(Ki,{n:"12",label:"Years",tone:x.onInk}),p(Ki,{n:"4.9",label:"Avg rating",tone:x.warm})]})]}),testimonials:F("div",{style:{...V,overflow:"hidden",background:x.paper,padding:"10px 11px",display:"flex",flexDirection:"column",gap:6,justifyContent:"center"},children:[p("span",{style:{position:"absolute",right:10,top:2,fontSize:"22.4cqw",lineHeight:1,fontWeight:800,color:x.rust,opacity:.16},children:"\u201D"}),p(LS,{filled:5,size:7}),p("span",{style:{position:"relative",fontSize:"5.31cqw",lineHeight:1.35,color:x.text,fontWeight:600},children:"\u201CTook them out to the Simpson and back. Not one chip.\u201D"}),F("div",{style:{display:"flex",alignItems:"center",gap:5},children:[p(p5,{}),p("span",{style:{fontSize:"3.98cqw",color:x.muted},children:"Dave M. \xB7 Hilux N80"})]})]}),reviews:F(ke,{title:"Reviews",children:[p("div",{style:{display:"flex",gap:4,height:22},children:[[x.inkSoft,x.inkSoft2],[x.rust,x.warm],[x.ink,x.inkSoft],[x.mark2,x.mark1]].map(([e,o],t)=>p("div",{style:{flex:1,borderRadius:3,...Ae(e,o,140+t*15)}},t))}),p("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:5,justifyContent:"center"},children:[["Dave M.",5,"Not one chip after the Simpson."],["Sara K.",4,"Fitted in an hour, no fuss."]].map(([e,o,t])=>F("div",{style:{display:"flex",gap:5,alignItems:"flex-start"},children:[p(p5,{size:12}),F("div",{style:{display:"flex",flexDirection:"column",gap:1,minWidth:0},children:[F("div",{style:{display:"flex",gap:4,alignItems:"center"},children:[p("b",{style:{fontSize:"3.98cqw",color:x.text},children:e}),p(LS,{filled:o})]}),p(to,{children:t})]})]},e))})]}),logos:F("div",{style:{...V,display:"flex",flexDirection:"column",gap:9,justifyContent:"center",padding:"0 12px",...Ae(x.ink,x.inkSoft)},children:[p("span",{style:{fontSize:"3.98cqw",fontWeight:700,letterSpacing:"0.14em",textTransform:"uppercase",color:x.warm},children:"As fitted by"}),p("div",{style:{display:"grid",gridTemplateColumns:"repeat(4,1fr)",gap:8},children:["ARB","TJM","IRONMAN","OPPOSITE"].map(e=>p("span",{style:{textAlign:"center",fontSize:"4.31cqw",fontWeight:800,letterSpacing:"0.08em",color:x.onInk,opacity:.82},children:e},e))})]}),prose:F("div",{style:{...V,background:x.paper,padding:"11px 14px",display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[p("span",{style:{fontSize:"5.86cqw",fontWeight:700,color:x.text},children:"Why offset matters"}),F("div",{style:{display:"flex",gap:6},children:[p("span",{style:{fontSize:"15.3cqw",lineHeight:.78,fontWeight:800,color:x.rust,marginTop:1},children:"T"}),F("div",{style:{display:"flex",flexDirection:"column"},children:[p(to,{children:"he number on the back of your wheel decides whether the"}),p(to,{w:"76%",children:"tyre sits under the guard or an inch outside it."})]})]})]}),cards:p(ke,{title:"What you get",children:p("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(3,1fr)",gap:5,minHeight:0},children:[["Fitted free","In store, same day."],["5 yr cover","Structural, no fine print."],["Swap it","30 days, any reason."]].map(([e,o])=>F("div",{style:{border:`1px solid ${x.rule}`,borderRadius:4,padding:6,display:"flex",flexDirection:"column",gap:2},children:[p("span",{style:{width:11,height:11,borderRadius:3,background:x.rust,opacity:.9}}),p("b",{style:{fontSize:"3.98cqw",color:x.text},children:e}),p(to,{children:o})]},e))})}),faq:p(ke,{title:"Questions",children:p("div",{style:{flex:1,display:"flex",flexDirection:"column",justifyContent:"center"},children:[["Will these fit my Hilux?",!0],["Do you fit them for me?",!1],["What if I pick wrong?",!1]].map(([e,o])=>F("div",{style:{borderBottom:`1px solid ${x.rule}`,padding:"4px 2px"},children:[F("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",gap:6},children:[p("b",{style:{fontSize:"4.31cqw",color:x.text},children:e}),p("span",{style:{fontSize:"4.64cqw",color:x.muted,lineHeight:1},children:o?"\u2212":"+"})]}),o&&p(to,{w:"90%",children:"Use the fitment finder \u2014 it reads your build, not just the model."})]},e))})}),hero:F("div",{style:{...V,overflow:"hidden",...Ae(x.ink,x.ink2)},children:[p("div",{style:{...V,background:`linear-gradient(90deg,${x.scrim},transparent 70%)`}}),p("div",{style:{position:"relative",height:"100%",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"flex-start",padding:"12px 14px",gap:5},children:p(c5,{over:"NEW \xB7 SUMMER",overTone:x.warm,head:"Built for the worst road you own",cta:"SHOP ALL",ctaBg:x.warm,ctaFg:x.ink,tone:x.onInk})}),p(gr,{size:104,style:{right:-24,bottom:-30}})]}),herosingle:F("div",{style:{...V,display:"flex",background:x.paper,overflow:"hidden"},children:[p("div",{style:{flex:1,padding:12,display:"flex",flexDirection:"column",gap:5,justifyContent:"center"},children:p(c5,{over:"ALL-TERRAIN",overTone:x.rust,head:"Grip that does not ask",headSize:12,cta:"EXPLORE",ctaBg:x.text,ctaFg:x.onInk,tone:x.text})}),p("div",{style:{flex:1,position:"relative",...Ae(x.inkSoft,x.inkSoft2)},children:p(gr,{size:74,style:{right:-14,top:16}})})]}),productgrid:p(ke,{title:"Best sellers",children:F("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(3,1fr)",gap:5,minHeight:0},children:[p(BS,{name:"Ridge 19",price:"$365"}),p(BS,{name:"Ridge 29",price:"$410"}),p(BS,{name:"Ridge 39",price:"$455"})]})}),collections:p(ke,{title:"Shop by category",children:p("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(3,1fr)",gap:5,minHeight:0},children:[["Wheels",x.inkSoft,x.inkSoft2],["Tyres",x.rust,x.warm],["Lift kits",x.ink,x.inkSoft]].map(([e,o,t])=>p("div",{style:{borderRadius:4,display:"flex",alignItems:"flex-end",padding:5,color:x.onInk,...Ae(o,t)},children:p("span",{style:{fontSize:"3.98cqw",fontWeight:700,letterSpacing:"0.04em"},children:e})},e))})}),producthero:F("div",{style:{...V,display:"flex",background:x.card,overflow:"hidden"},children:[p("div",{style:{flex:1.1,position:"relative",...Ae(x.paper,x.paper2,150)},children:p(gr,{size:78,style:{left:"50%",top:"50%",transform:"translate(-50%,-50%)"}})}),F("div",{style:{flex:1,padding:"10px 10px 10px 8px",display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[p("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.16em",fontWeight:700,color:x.rust},children:"NITTO"}),p("b",{style:{fontSize:"6.29cqw",color:x.text},children:"Ridge Grappler"}),p("span",{style:{fontSize:"6.63cqw",fontWeight:700,color:x.text},children:"$489"}),p("span",{style:{alignSelf:"flex-start",fontSize:"3.65cqw",letterSpacing:"0.12em",fontWeight:700,padding:"4px 8px",borderRadius:2,background:x.text,color:x.onInk},children:"ADD TO CART"})]})]}),spectable:p(ke,{title:"Specifications",children:F("div",{style:{flex:1,display:"flex",flexDirection:"column",justifyContent:"center"},children:[p(Ir,{k:"Diameter",v:'20"'}),p(Ir,{k:"Width",v:"9.0J"}),p(Ir,{k:"Offset",v:"+12"}),p(Ir,{k:"Load",v:"1250 kg"})]})}),fitmenttable:p(ke,{title:"Will it fit?",children:F("div",{style:{flex:1,display:"flex",flexDirection:"column",justifyContent:"center"},children:[p(Ir,{k:"Hilux N80",v:"20\xD79 +12",ok:!0}),p(Ir,{k:"Ranger PX3",v:"20\xD79 +12",ok:!0}),p(Ir,{k:"LC79",v:"17\xD78 \u221210",ok:!0})]})}),processsteps:F("div",{style:{...V,background:x.paper,padding:10,display:"flex",flexDirection:"column",gap:7,justifyContent:"center"},children:[p(mm,{children:"How it works"}),p("div",{style:{display:"flex",gap:6},children:["Pick your rig","Match the fit","We fit it"].map((e,o)=>F("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:2},children:[p("span",{style:{width:11,height:11,borderRadius:"50%",background:x.text,color:x.onInk,fontSize:"3.98cqw",display:"flex",alignItems:"center",justifyContent:"center",fontWeight:700},children:o+1}),p("span",{style:{fontSize:"3.98cqw",color:x.text,fontWeight:600},children:e})]},e))})]}),detailrows:p("div",{style:{...V,background:x.card,display:"flex",flexDirection:"column",overflow:"hidden"},children:[["Forged, not cast","Half the weight, twice the road.",!1],["Fits your load","Rated to 1250 kg a corner.",!0]].map(([e,o,t])=>{let r=p("div",{style:{flex:1,...Ae(t?x.rust:x.inkSoft,t?x.warm:x.inkSoft2)}},"art"),a=F("div",{style:{flex:1.1,padding:8,display:"flex",flexDirection:"column",gap:2,justifyContent:"center"},children:[p("b",{style:{fontSize:"4.64cqw",color:x.text},children:e}),p("span",{style:{fontSize:"3.98cqw",color:x.muted,lineHeight:1.3},children:o})]},"tx");return p("div",{style:{flex:1,display:"flex",minHeight:0},children:t?[a,r]:[r,a]},e)})}),specstrip:p("div",{style:{...V,background:x.ink,color:x.onInk,display:"flex",alignItems:"center",justifyContent:"space-around",padding:"0 8px"},children:[["5 yr","Warranty"],["Free","Fitting"],["48 hr","Dispatch"]].map(([e,o])=>F("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:1},children:[p("b",{style:{fontSize:"5.69cqw",letterSpacing:"0.02em"},children:e}),p("span",{style:{fontSize:"3.65cqw",color:x.mark2,letterSpacing:"0.1em",textTransform:"uppercase"},children:o})]},o))})},m5={subscribe:F("div",{style:{...V,padding:13,display:"flex",flexDirection:"column"},children:[F("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:8},children:[F("div",{style:{display:"flex",alignItems:"center",gap:6},children:[p(j,{w:8,h:8,r:2,tone:"accent"}),p(j,{w:38,h:7,r:3,tone:"dark"}),p(j,{w:16,h:7,r:3,tone:"accent"})]}),p(j,{w:38,h:4,r:2,tone:"soft"})]}),p("div",{style:{height:1,background:so.line,marginBottom:10}}),F("div",{style:{flex:1,display:"flex",gap:10,border:`1px solid ${so.line}`,borderRadius:7,padding:10},children:[F("div",{style:{flex:1.1,display:"flex",flexDirection:"column",justifyContent:"center",gap:5},children:[p(j,{w:"46%",h:3,r:2,tone:"accent"}),p(j,{w:"84%",h:8,r:4,tone:"dark"}),p(j,{w:"56%",h:8,r:4,tone:"accent"}),p(j,{w:"96%",h:3,r:2,tone:"soft",style:{marginTop:2}}),F("div",{style:{display:"flex",gap:5,marginTop:4},children:[p("div",{style:{flex:1,height:13,borderRadius:5,border:`1px solid ${so.line}`,background:so.block}}),p(j,{w:34,h:13,r:5,tone:"accent"})]})]}),F("div",{style:{flex:1,background:so.block,borderRadius:6,padding:8,display:"flex",flexDirection:"column",gap:6},children:[p(j,{w:"52%",h:4,r:2,tone:"accent"}),Array.from({length:3}).map((e,o)=>F("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",gap:6,borderTop:o?`1px solid ${so.line}`:"none",paddingTop:o?4:0},children:[p(j,{w:34,h:4,r:2,tone:"dark"}),p(j,{w:16,h:3,r:2,tone:"soft"})]},o))]})]})]}),split:F("div",{style:{...V,display:"flex"},children:[p("div",{style:{width:"44%",background:FS}}),F("div",{style:{flex:1,padding:15,display:"flex",flexDirection:"column",justifyContent:"center",gap:7},children:[p(j,{w:"44%",h:5,r:3,tone:"accent"}),p(j,{w:"88%",h:8,r:4,tone:"dark"}),p(j,{w:"70%",h:8,r:4,tone:"dark"}),p(j,{w:"94%",h:5,r:2,tone:"soft",style:{marginTop:2}}),p(j,{w:"80%",h:5,r:2,tone:"soft"}),p(j,{w:"40%",h:13,r:6,tone:"accent",style:{marginTop:5}})]})]}),sectionheader:F(x5,{children:[p(j,{w:"18%",h:6,r:3,tone:"accent",style:{position:"absolute",top:15,right:16}}),F("div",{style:{...V,padding:16,display:"flex",flexDirection:"column",justifyContent:"center",gap:10},children:[F("div",{style:{display:"flex",alignItems:"center",gap:9},children:[p(j,{w:16,h:16,r:4,tone:"accent"}),p(j,{w:"20%",h:9,r:4,tone:"dark"})]}),p(j,{w:"62%",h:10,r:5,tone:"dark"}),p(j,{w:"42%",h:6,r:3,tone:"soft"})]})]}),header:p("div",{style:{...V,padding:14,display:"flex",flexDirection:"column",justifyContent:"center"},children:F("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[p(j,{w:"22%",h:12,r:4,tone:"dark"}),F("div",{style:{display:"flex",gap:9,alignItems:"center"},children:[p(j,{w:26,h:6,r:3,tone:"soft"}),p(j,{w:26,h:6,r:3,tone:"soft"}),p(j,{w:26,h:6,r:3,tone:"soft"}),p(j,{w:18,h:14,r:5,tone:"accent"})]})]})}),footer:F("div",{style:{...V,padding:15,display:"flex",flexDirection:"column",justifyContent:"center",gap:12},children:[F("div",{style:{display:"flex",gap:14},children:[F("div",{style:{flex:1.4,display:"flex",flexDirection:"column",gap:6},children:[p(j,{w:"60%",h:9,r:4,tone:"dark"}),p(j,{w:"90%",h:5,r:2,tone:"soft"}),p(j,{w:"70%",h:5,r:2,tone:"soft"})]}),[0,1].map(e=>F("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:6},children:[p(j,{w:"50%",h:6,r:3,tone:"dark"}),p(j,{w:"80%",h:5,r:2,tone:"soft"}),p(j,{w:"66%",h:5,r:2,tone:"soft"})]},e))]}),p("div",{style:{height:1,background:so.line}}),F("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[p(j,{w:"30%",h:5,r:2,tone:"soft"}),p(j,{w:"16%",h:5,r:2,tone:"soft"})]})]}),grid:p("div",{style:{...V,padding:14,display:"grid",gridTemplateColumns:"1fr 1fr",gridTemplateRows:"1fr 1fr",gap:9},children:Array.from({length:4}).map((e,o)=>p("div",{style:{borderRadius:6,background:so.block}},o))}),blanksection:p("div",{style:{...V,padding:14,display:"flex"},children:F("div",{style:{flex:1,border:`1px dashed ${so.line}`,borderRadius:7,display:"flex",alignItems:"center",justifyContent:"center",position:"relative"},children:[p(j,{w:14,h:2,r:1,tone:"tint"}),p(j,{w:2,h:14,r:1,tone:"tint",style:{position:"absolute"}})]})}),spacer:F("div",{style:{...V,padding:14,display:"flex",flexDirection:"column",justifyContent:"space-between"},children:[p(j,{w:"100%",h:6,r:3,tone:"soft"}),p(j,{w:16,h:22,r:3,tone:"block",style:{alignSelf:"center"}}),p(j,{w:"100%",h:6,r:3,tone:"soft"})]}),divider:p("div",{style:{...V,padding:14,display:"flex",alignItems:"center"},children:p(j,{w:"100%",h:3,r:2,tone:"dark"})}),customhtml:F("div",{style:{...V,display:"flex",alignItems:"center",justifyContent:"center",gap:8,background:FS},children:[p(j,{w:5,h:16,r:2,tone:"dark",style:{transform:"skewX(-14deg)"}}),p(j,{w:16,h:10,r:3,tone:"accent"}),p(j,{w:5,h:16,r:2,tone:"dark",style:{transform:"skewX(14deg)"}})]}),heading:p("div",{style:{...V,padding:14,display:"flex",alignItems:"center"},children:p(j,{w:"64%",h:13,r:4,tone:"dark"})}),text:F("div",{style:{...V,padding:16,display:"flex",flexDirection:"column",justifyContent:"center",gap:7},children:[p(j,{w:"100%",h:6,r:3,tone:"soft"}),p(j,{w:"96%",h:6,r:3,tone:"soft"}),p(j,{w:"100%",h:6,r:3,tone:"soft"}),p(j,{w:"58%",h:6,r:3,tone:"soft"})]}),image:p("div",{style:{position:"absolute",inset:14,borderRadius:7,background:FS}}),button:p("div",{style:{...V,display:"flex",alignItems:"center",justifyContent:"center"},children:p(j,{w:"34%",h:16,r:8,tone:"accent"})}),menu:F("div",{style:{...V,padding:"14px 22%",display:"flex",flexDirection:"column",justifyContent:"center",gap:7},children:[p(j,{w:"48%",h:7,r:3,tone:"dark"}),p(j,{w:"82%",h:5,r:2,tone:"soft"}),p(j,{w:"66%",h:5,r:2,tone:"soft"}),p(j,{w:"74%",h:5,r:2,tone:"soft"}),p(j,{w:"58%",h:5,r:2,tone:"soft"})]}),emailform:F("div",{style:{...V,padding:16,display:"flex",flexDirection:"column",justifyContent:"center",gap:9},children:[p(j,{w:"56%",h:8,r:3,tone:"dark"}),F("div",{style:{display:"flex",gap:6},children:[p("div",{style:{flex:1,height:16,borderRadius:5,border:`1px solid ${so.line}`}}),p(j,{w:"30%",h:16,r:5,tone:"accent"})]})]}),sociallogos:p("div",{style:{...V,display:"flex",alignItems:"center",justifyContent:"center",gap:9},children:[0,1,2,3].map(e=>p(j,{w:16,h:16,r:8,tone:"dark"},e))}),paymentlogos:F("div",{style:{...V,display:"flex",alignItems:"center",justifyContent:"center",gap:7},children:[p(j,{w:22,h:6,r:2,tone:"soft"}),[0,1,2,3].map(e=>p(j,{w:20,h:13,r:3,tone:"dark"},e))]}),search:p("div",{style:{...V,padding:"0 18%",display:"flex",alignItems:"center"},children:F("div",{style:{flex:1,height:22,borderRadius:11,border:`1px solid ${so.line}`,display:"flex",alignItems:"center",gap:7,padding:"0 9px"},children:[p("div",{style:{width:9,height:9,borderRadius:5,border:`2px solid ${so.dark}`}}),p(j,{w:"46%",h:5,r:2,tone:"soft"})]})}),cart:F("div",{style:{...V,display:"flex",alignItems:"center",justifyContent:"center",gap:7},children:[p("div",{style:{width:22,height:18,borderRadius:"3px 3px 6px 6px",border:`2px solid ${so.dark}`}}),p("div",{style:{padding:"2px 6px",borderRadius:6,border:`1.5px solid ${so.dark}`},children:p(j,{w:7,h:7,r:2,tone:"dark"})})]}),countryswitch:F("div",{style:{...V,padding:14,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:5},children:[F("div",{style:{display:"flex",alignItems:"center",gap:6,padding:"4px 8px",border:`1px solid ${so.line}`},children:[p(j,{w:22,h:6,r:2,tone:"dark"}),p(j,{w:6,h:4,r:1,tone:"soft"})]}),F("div",{style:{width:"46%",display:"flex",flexDirection:"column",gap:4,padding:6,border:`1px solid ${so.line}`},children:[p(j,{w:"80%",h:4,r:2,tone:"accent"}),p(j,{w:"64%",h:4,r:2,tone:"soft"}),p(j,{w:"72%",h:4,r:2,tone:"soft"})]})]}),legalline:F("div",{style:{...V,padding:16,display:"flex",flexDirection:"column",justifyContent:"center",gap:9},children:[p("div",{style:{height:1,background:so.line}}),F("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[p(j,{w:"38%",h:5,r:2,tone:"soft"}),F("div",{style:{display:"flex",gap:5},children:[p(j,{w:14,h:5,r:2,tone:"soft"}),p(j,{w:14,h:5,r:2,tone:"soft"}),p(j,{w:14,h:5,r:2,tone:"soft"})]})]})]}),fallback:p("div",{style:{position:"absolute",inset:14,borderRadius:8,background:so.block}})};function h5({type:e}){let o=Fre[e]??"",t=Bre[o]??m5[o]??m5.fallback;return p("div",{className:"sf-thumb","aria-hidden":"true",style:{position:"absolute",inset:0,background:"var(--sf-thumb-thumb-bg)",pointerEvents:"none",containerType:"inline-size"},children:t})}import{useScreenDocument as wm}from"efficient-easel/screen/components/ScreenDocumentContext";import{jsx as Ts,jsxs as I5}from"react/jsx-runtime";import Lre from"efficient-easel/screen/components/SidePanelHead";import{StylesIcon as Rre}from"efficient-easel/rail";import{Tooltip as Dre}from"efficient-shell/ui";import{HintsToggle as Nre,hintsFoldClass as Mre}from"efficient-easel/panel";import{useHints as Hre}from"efficient-easel/screen/lib/hints";function g5({tokenRef:e,siteId:o,onClose:t,onNotify:r,tab:a,onTabChange:n,revealPageGroup:s,onPageGroupRevealed:l}){let i=Ln(),{shown:d,setShown:f}=Hre();return I5("div",{className:`sf-styles ${Mre(d)}`.trim(),children:[Ts(Lre,{icon:Ts(Rre,{}),title:c("Styles"),context:Ts(Dre,{content:c("{name} \u2014 renamed in the Console: {place}.",{name:i,place:c("Storefront \u25B8 Sites \u25B8 Settings")}),className:"sf-name-tip",children:Ts("span",{className:"sf-name-text",children:i})})}),I5("div",{className:"sf-insp-body es-insp-body sf-scroll",children:[Ts(Hf,{tokenRef:e,siteId:o,onNotify:r,tab:a,onTabChange:n,revealPageGroup:s,onPageGroupRevealed:l}),Ts(Nre,{shown:d,onChange:f,label:c("Show hints")})]})]})}import{jsx as po,jsxs as Xa,Fragment as jre}from"react/jsx-runtime";import{Fragment as E5,useEffect as _5,useRef as WS}from"react";import{useTreeDrag as A5}from"efficient-easel/drag";import{GlobeIcon as Gre,ImageIcon as Kre,LocationIcon as qre,MapIcon as Vre,TextLinesIcon as Yre,TrashIcon as F5}from"efficient-easel/icons";import{Subtree as B5,TreeRow as Vi,TreeRowAction as L5,TreeSeam as R5}from"efficient-easel/tree";import{useEaselStrings as Xre}from"efficient-easel/strings";import{isSelectionMode as Zre}from"efficient-easel/screen/lib/screen-parts";import{useSyncExternalStore as Wre}from"react";var $re={level:"groups"},S5=$re,RS=new Set;function Lt(e){S5=e;for(let o of RS)o()}function zre(e){return RS.add(e),()=>{RS.delete(e)}}var y5=()=>S5;function b5(){return Wre(zre,y5,y5)}var qi=e=>String(e?.group??""),DS=new WeakMap,Ure=0;function xm(e){let o=DS.get(e);return o||(o=`loc${++Ure}`,DS.set(e,o)),o}var w5=(e,o)=>o||e||"Ungrouped",C5={photo:"",group:"",groupName:"",name:"City name",state:"State",country:"Country",timezone:"GMT \xB7 UTC +0",address:`Address line one
|
|
337
|
+
Address line two`,phone:"+00 000 0000",hours:"Mon\u2013Fri 9:00\u201318:00",lat:0,lng:0,mapsUrl:""};function Ya(e){return wd(e,qi,o=>String(o?.groupName??"")).map(o=>({key:o.key,name:o.name,cards:o.items.map(t=>t.item)}))}var NS=e=>e.flatMap(o=>o.cards),k5=(e,o,t)=>Math.min(Math.max(e,o),t);function hm(e,o,t){let r=0;for(let a=0;a<e.length;a++)if(qi(e[a])===o){if(r===t)return a;r++}return-1}function MS(e,o,t){let r=Ya(e);if(o<0||o>=r.length)return e;let[a]=r.splice(o,1),n=k5(o<t?t-1:t,0,r.length);return r.splice(n,0,a),NS(r)}function HS(e,o,t,r,a){let n=Ya(e),s=n.find(m=>m.key===o),l=n.find(m=>m.key===r);if(!s||!l||t<0||t>=s.cards.length)return e;let[i]=s.cards.splice(t,1),d=o===r?i:{...i,group:l.key,groupName:l.name};d!==i&&DS.set(d,xm(i));let f=k5(s===l&&t<a?a-1:a,0,l.cards.length);return l.cards.splice(f,0,d),NS(n)}function v5(e,o){let t=Ya(e),r=t.find(n=>n.key===o),a={...C5,group:o,groupName:r?.name??""};return r?(r.cards.push(a),NS(t)):[...e,a]}function P5(e){let o=new Set(Ya(e).map(a=>a.key)),t=o.size+1,r=`Group ${t}`;for(;o.has(r);)r=`Group ${++t}`;return{cards:[...e,{...C5,group:r,groupName:""}],key:r}}function T5(e,o){return e.filter(t=>qi(t)!==o)}function O5(e,o,t){let r=hm(e,o,t);return r<0?e:e.filter((a,n)=>n!==r)}function i6e(e,o,t){let r=e.flatMap((s,l)=>qi(s)===o?[l]:[]),a=e.slice();r.forEach((s,l)=>{a[s]=t[l]});let n=t.slice(r.length);return[...a.filter(s=>s!==void 0),...n]}function d6e(e,o,t){return o.flatMap(r=>{let a=e.filter(n=>qi(n)===r);return a.length?a:t(r)})}var gm="ContactLocations",Im=e=>({parentId:`locations-${e}`,slot:"groups"}),$S=(e,o)=>({parentId:`locations-${e}`,slot:`cities:${o}`});function D5(e,o){let{readOnly:t,selected:r}=o,a=Xre().tree,n=o.data?.content??[],s=Zre(e),l=WS(null);_5(()=>{let k=r?.type===gm?String(r.props.id):null;k&&k!==l.current&&Lt({level:"groups"}),l.current=k},[r?.props.id]);let{selectedLocationPartId:i,setSelectedLocationPartId:d,setSelectHandler:f}=aR(),m=b5(),u=(k,g)=>{let b=n[k];b&&o.replace(k,{type:b.type,props:{...b.props,locations:g}})},h=k=>{let g=n[k]?.props?.locations;return Array.isArray(g)?g:[]},I=A5({keyOf:k=>`group:${k.si}:${k.index}`,readOnly:!!t,canDrop:(k,g)=>g.parentId===Im(k.si).parentId&&g.slot==="groups",onDrop:(k,g)=>{u(k.si,MS(h(k.si),k.index,g.index)),m.level==="city"&&Lt({level:"groups"})},onStep:(k,g)=>{u(k.si,MS(h(k.si),k.index,g<0?k.index-1:k.index+2)),m.level==="city"&&Lt({level:"groups"})}}),S=A5({keyOf:k=>`city:${k.si}:${k.group}:${k.index}`,readOnly:!!t,canDrop:(k,g)=>g.parentId===Im(k.si).parentId&&g.slot.startsWith("cities:"),onDrop:(k,g)=>{let b=g.slot.slice(7);u(k.si,HS(h(k.si),k.group,k.index,b,g.index)),Lt({level:"group",key:b})},onStep:(k,g)=>{u(k.si,HS(h(k.si),k.group,k.index,k.group,g<0?k.index-1:k.index+2)),m.level==="city"&&Lt({level:"group",key:k.group})}}),P=WS(n);P.current=n;let T=WS(()=>{});_5(()=>{f(k=>{let g=ru(k);if(!g)return;let b=P.current.findIndex(E=>E.props?.id===g.nodeId);b<0||T.current(b,{level:g.part,index:g.index})})},[f]);let B=(k,g)=>{l.current=n[k]?.props?.id??null,o.select(k),Lt(g),e.reveal();let b=n[k]?.props?.id;typeof b=="string"&&(g.level==="city"||g.level==="image"||g.level==="map")?d(tu(b,g.index,g.level)):d(null),typeof b=="string"&&o.scrollTo(b)};return T.current=B,{renderLocationTree:(k,g,{rowClick:b,isCollapsed:E,toggleCollapse:A})=>{let N=h(g),w=Ya(N),_=String(k.props.id),y=s&&r?.props.id===_,v=C=>po(R5,{...t?{}:I.seam({place:{...Im(g),index:C}})},`seam:${_}:groups:${C}`),O=(C,L)=>po(R5,{...t?{}:S.seam({place:{...$S(g,C),index:L}})},`seam:${_}:cities:${C}:${L}`);return Xa(jre,{children:[po(Vi,{icon:po(Yre,{size:13}),name:c("Texts"),words:a,onSelect:()=>B(g,{level:"texts"}),selected:y&&m.level==="texts",rowProps:{onClick:b(()=>B(g,{level:"texts"}))}}),w.map((C,L)=>{let M=`${_}::grp::${C.key}`,K=E(M),W=y&&m.level==="group"&&m.key===C.key,se=C.name||C.key?w5(C.key,C.name):c("Ungrouped"),le={...$S(g,C.key),index:C.cards.length},ee=S.row({item:{si:g,group:C.key,index:-1},place:le,into:le,canDrag:!1},{onClick:b(()=>B(g,{level:"group",key:C.key}))}),Ie=I.row({item:{si:g,index:L},place:{...Im(g),index:L}},ee.rowProps);return Xa(E5,{children:[L===0&&v(0),po(Vi,{icon:po(Gre,{size:13}),name:se,words:a,onSelect:()=>B(g,{level:"group",key:C.key}),selected:W,draggable:Ie.draggable,dragging:Ie.dragging,drop:Ie.drop??ee.drop,fold:{open:!K,label:c("group"),onToggle:()=>A(M)},actions:po(L5,{kind:"delete",label:$t("Delete {label} group ({n} city)","Delete {label} group ({n} cities)",C.cards.length,{label:se}),onClick:()=>{u(g,T5(N,C.key)),Lt({level:"groups"})},children:po(F5,{size:15})}),rowProps:Ie.rowProps,count:C.cards.length,countLabel:$t("{n} city","{n} cities",C.cards.length)}),!K&&Xa(B5,{children:[C.cards.map((ae,me)=>{let ge=hm(N,C.key,me),Ge=y&&m.level==="city"&&m.index===ge,Ve=String(ae?.name??"")||c("City"),Eo=`${_}::city::${xm(ae)}`,Ye=E(Eo),{rowProps:Je,...qo}=S.row({item:{si:g,group:C.key,index:me},place:{...$S(g,C.key),index:me}},{onClick:b(()=>B(g,{level:"city",index:ge}))});return Xa(E5,{children:[me===0&&O(C.key,0),po(Vi,{icon:po(qre,{size:13}),name:Ve,words:a,onSelect:()=>B(g,{level:"city",index:ge}),selected:Ge,...qo,fold:{open:!Ye,label:Ve,onToggle:()=>A(Eo)},actions:po(L5,{kind:"delete",label:c("Delete {name}",{name:Ve}),onClick:()=>{u(g,O5(N,C.key,me)),Lt({level:"group",key:C.key})},children:po(F5,{size:15})}),rowProps:Je}),!Ye&&Xa(B5,{children:[po(Vi,{icon:po(Kre,{size:13}),name:c("Image"),words:a,onSelect:()=>B(g,{level:"image",index:ge}),selected:y&&m.level==="image"&&m.index===ge,rowProps:{onClick:b(()=>B(g,{level:"image",index:ge}))}}),po(Vi,{icon:po(Vre,{size:13}),name:c("Map"),words:a,onSelect:()=>B(g,{level:"map",index:ge}),selected:y&&m.level==="map"&&m.index===ge,rowProps:{onClick:b(()=>B(g,{level:"map",index:ge}))}})]}),O(C.key,me+1)]},xm(ae))}),Xa("button",{type:"button",className:"sf-add-card",onClick:()=>{let ae=v5(N,C.key);u(g,ae);let me=Ya(ae).find(ge=>ge.key===C.key);Lt(me&&me.cards.length?{level:"city",index:hm(ae,C.key,me.cards.length-1)}:{level:"group",key:C.key})},children:[po("span",{className:"sf-plus sf-plus--sm",children:"+"}),c("Add city")]})]}),v(L+1)]},M)}),Xa("button",{type:"button",className:"sf-add-card",onClick:()=>{let{cards:C,key:L}=P5(N);u(g,C),B(g,{level:"group",key:L})},children:[po("span",{className:"sf-plus sf-plus--sm",children:"+"}),c("Add group")]})]})},sectionPressed:k=>{k?.type===gm&&Lt({level:"groups"})}}}import{useEffect as oae,useRef as tae}from"react";import{createNode as US,newId as jS}from"efficient-easel/data";import{useEaselApi as rae}from"efficient-easel/easel";import{useScreenDocument as aae}from"efficient-easel/screen/components/ScreenDocumentContext";import{useEaselSession as nae}from"efficient-easel/screen/lib/session-context";import{useEffect as W5,useRef as Jre}from"react";import{useEasel as Qre}from"efficient-easel/easel";import{ROOT_ZONE as zS}from"efficient-easel/draw";var Yi={};function N5(e){return Yi={...e?.theme?{theme:e.theme}:{},...e?.site?{site:e.site}:{}},Yi}function M5(e){Yi===e&&(Yi={})}function Os(){return Yi}function H5(e){let o=r=>typeof r=="string"?r:null,t=e.theme_row===void 0?null:e.theme_row==="site";return{schema:String(e.schema),site:String(e.site),headingCase:o(e.heading_case),textStyles:typeof e.text_styles_is_null=="boolean"?!e.text_styles_is_null:null,textStylesList:Array.isArray(e.text_styles)?e.text_styles:null,ownThemeRow:t,deleted:e.site_deleted===!0,...Array.isArray(e.theme_presets)?{themePresets:e.theme_presets}:{},...typeof e.selected_preset=="number"?{selectedPreset:e.selected_preset}:{},...typeof e.site_gutter=="number"?{siteGutter:e.site_gutter}:{},...typeof e.site_gutter_phone=="number"?{siteGutterPhone:e.site_gutter_phone}:{},..."site_gutter_unit"in e?{siteGutterUnit:o(e.site_gutter_unit)}:{},..."site_gutter_phone_unit"in e?{siteGutterPhoneUnit:o(e.site_gutter_phone_unit)}:{}}}function z5(e){let o=Qre(d=>d.appState.data.content),{theme:t,themeRow:r,themeFromDocument:a,siteGutter:n,siteGutterPhone:s,siteLengthUnits:l}=vo(),i=Jre(new Set);W5(()=>{let d=$5({theme:t,themeRow:r,themeFromDocument:a,siteGutter:n,siteGutterPhone:s,siteLengthUnits:l});d&&eae(R1(o,void 0,d),e,i.current)},[o,e,t,r,a,n,s,l]),W5(()=>{let d=N5($5({theme:t,themeRow:r,themeFromDocument:a,siteGutter:n,siteGutterPhone:s,siteLengthUnits:l}));return()=>M5(d)},[t,r,a,n,s,l])}function $5(e){if(e.themeFromDocument||e.themeRow==="none")return{};if(e.themeRow!=="read")return null;let{siteGutter:o=null,siteGutterPhone:t=null,siteLengthUnits:r={}}=e;if(o===null&&t===null)return{theme:e.theme};let a=H5({schema:"",site:"",site_gutter:o,site_gutter_phone:t,site_gutter_unit:r.siteGutterUnit??null,site_gutter_phone_unit:r.siteGutterPhoneUnit??null});return{theme:e.theme,site:a}}function eae(e,o,t){for(let{index:r,nodes:a}of[...e].sort((n,s)=>s.index-n.index)){let n=String(a[0].props.id);t.has(n)||(t.add(n),o.replaceComponent(zS,r,a[0]),a.slice(1).forEach((s,l)=>{o.insertNode(zS,r+1+l,s),o.replaceComponent(zS,r+1+l,s)}))}}import{ROOT_ZONE as Es,missingPinnedTypes as sae,pinnedDuplicateIds as GS}from"efficient-easel/draw";function U5(e){return!e.docId||e.saveStatus==="saving"?!1:e.seededDocId!==e.docId}function j5(e,o){let t=e.some(l=>l?.type===ao),r=e[e.length-1],a=!t&&r?.type===Re?r:null,n=e.filter(l=>l?.type===Re&&l!==a).map(l=>String(l.props?.id??"")).filter(Boolean),s=o.hasChromeDoc&&!t&&!a;return{remove:n,seedHeader:!e.some(l=>l?.type===Ko),seedFooter:s,seedSiteHeader:s&&!e.some(l=>l?.type===Mo)}}async function G5(e){let o=e.blocks?.seeds?.siteHeader;if(!o)return!1;let t;try{t=await o({make:e.make,id:e.id,siteId:e.siteId,token:e.token})}catch{return!1}if(!t||t.type!==Mo||!e.stillOpen())return!1;let r=e.latest();return r.some(a=>a?.type===Mo)?!1:(e.write(gf(r,t)),!0)}function K5(e,o){let{adapter:t,capabilities:r,currentSlug:a,docId:n,data:s,saveStatus:l,siteId:i,tokenRef:d}=aae(),f=nae(),{hasSiteSettings:m,hasPinnedChrome:u}=r;z5(e);let h=!!r.editsPinnedInPlace&&a!==Br,I=a===Br,S=rae().getState,P=tae(null);oae(()=>{if(!U5({docId:n,saveStatus:l,seededDocId:P.current})||(P.current=n,!u))return;let T=S().appState.data,B=T.content,k=s?.content??[],g=(N,w)=>N.some(_=>_?.type===w);if(!m){let N=new Set(GS(B)),w=N.size?B.filter(y=>!N.has(y.props.id)):B;if(N.size&&e.setDocument({...T,content:w}),I)return;let _=sae(w,k);if(_.includes(Re)){let y=w.length,v=e.insertSection(Re,y);e.replaceComponent(Es,y,{type:Re,props:{id:v,blocks:fm()}})}_.includes(Ko)&&e.insertNode(Es,0,dm());return}if(I){let N=fP(B);if(N!==B&&e.setDocument({...T,content:[...N]}),!N.find(w=>w.type===Re)&&!g(k,Re)&&!g(N,ao)&&!g(k,ao)){let w=(y,v)=>US(o,y,v),_={type:Re,props:{blocks:fm()}};e.insertNode(Es,N.length,fi(_,w,jS(ao),ji))}return}if(h){let N=!!t?.pinnedChrome?.state().docId,w=j5(B,{hasChromeDoc:N}),_=new Set([...w.remove,...GS(B.filter(v=>!w.remove.includes(String(v.props.id))))]),y=_.size?B.filter(v=>!_.has(String(v.props.id))):B;if(y.length!==B.length&&e.setDocument({...T,content:y}),w.seedFooter&&!g(k,Re)&&!g(k,ao)){let v=(C,L)=>US(o,C,L),O={type:Re,props:{blocks:fm()}};e.insertNode(Es,y.length,fi(O,v,jS(ao),ji))}if(w.seedHeader&&!g(k,Ko)){let v=y[0]?.type===Mo?1:0;e.insertNode(Es,v,dm())}if(w.seedSiteHeader&&!g(k,Mo)&&!g(k,Re)&&!g(k,ao)){let v=n;G5({blocks:un(f),make:(O,C)=>US(o,O,C),id:jS(Mo),siteId:i??null,token:d.current,latest:()=>S().appState.data.content,stillOpen:()=>P.current===v,write:O=>{let C=S().appState.data;e.setDocument({...C,content:[...O]})}})}return}let b=B.filter(N=>N.type!==Re),E=new Set(GS(b)),A=E.size?b.filter(N=>!E.has(N.props.id)):b;A.length!==B.length&&e.setDocument({...T,content:A}),!g(A,Ko)&&!g(k,Ko)&&e.insertNode(Es,0,dm())},[n,l,s,S,e,m,u,I,h,t,f,i,d])}import{useEffect as t4,useMemo as uae,useRef as r4}from"react";import{useEasel as mae}from"efficient-easel/easel";import{newId as xae}from"efficient-easel/data";import{useEaselHost as hae}from"efficient-easel/screen/lib/host";import{FIELD_DESCRIPTION_MARKER as lae}from"efficient-easel/screen/lib/host";import{isNode as Y5}from"efficient-easel/data";function Xi(e,o){let t=e.components[o]?.label;return typeof t=="string"&&t.trim()?t.trim():o}function iae(e){return e.length>3&&e.endsWith("s")?e.slice(0,-1):e}function KS(e,o,t,r){e.forEach((a,n)=>{if(Y5(a)){r.push({node:a,list:e,index:n,parent:o,slot:t});for(let s of Nt(a))KS(a.props[s],a,s,r)}})}function dae(e){let o=[];KS(Array.isArray(e.content)?e.content:[],null,"",o);for(let t of Object.values(e.zones??{}))Array.isArray(t)&&KS(t,null,"",o);return o}function X5(e,o){return dae(e).find(t=>String(t.node.props.id)===o)}function Z5(e,o,t){if(!t)return null;let r=X5(o,t);if(!r)return null;let a=Xi(e,r.node.type),n=r.parent?`${Xi(e,r.parent.type)} \xB7 ${iae(r.slot)} ${r.index+1}`:a;return{blockId:t,type:r.node.type,label:n,path:""}}var fae=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 cae(e){if(!e||typeof e!="object")return null;let o=e;if(typeof o.type!="string")return null;let t=o.type==="custom"?o[lae]: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=fae(n));for(let s of["arrayFields","objectFields"]){let l=t?.[s]??o[s];l&&typeof l=="object"&&(r[s]=J5(l))}return r}function J5(e){let o={};for(let[t,r]of Object.entries(e??{})){let a=cae(r);a&&(o[t]=a)}return o}function Q5(e){let o={};for(let[t,r]of Object.entries(e.components))r&&(o[t]={label:Xi(e,t),fields:J5(r.fields),...e4(t)?{retired:!0}:{}});return o}function e4(e){return eo(pb,e)}function q5(e,o){let t=e.components[o]?.defaultProps;return t&&typeof t=="object"?structuredClone(t):{}}function pae(e,o){let t=e;for(let r of o?o.split("."):[]){let a=/^([A-Za-z_][A-Za-z0-9_]*)(?:\[(\d+)\])?$/.exec(r);if(!a||!t||typeof t!="object")return null;t=t[a[1]],a[2]!==void 0&&(t=Array.isArray(t)?t[Number(a[2])]:void 0)}return t&&typeof t=="object"&&!Array.isArray(t)?t:null}function qS(e,o){return e.findIndex(t=>Y5(t)&&String(t.props.id)===o)}function V5(e,o,t){let r=o||t;if(!r)return e.length;let a=qS(e,r);if(a<0)throw new Error(`there is no top-level block ${r}`);return o?a+1:a}function o4(e,o,t,r,a={}){let n=structuredClone(o),s=Array.isArray(n.content)?n.content:n.content=[];try{t.forEach((l,i)=>{let d=f=>{throw new Error(`change ${i+1}: ${f}`)};switch(l.op){case"set_props":{let f=X5(n,l.block_id)??d(`there is no block ${l.block_id}`);"id"in l.props&&d("a block's id is never changed");let m=pae(f.node.props,l.path)??d(`there is no ${l.path} in that block`);Object.assign(m,structuredClone(l.props));break}case"insert_block":{e.components[l.type]??d(`there is no block type ${l.type}`),e4(l.type)&&d(`${Xi(e,l.type)} is retired: it is no longer added (a page that holds one keeps it)`);let f=ps(l.type),m=Object.keys(l.props??{}).filter(h=>h!=="id");f&&m.length&&d(`${Xi(e,l.type)} is laid down as a Box of blocks: insert it with no props, then change its blocks`);let u=f?f(h=>q5(e,h),r,a):{type:l.type,props:{...q5(e,l.type),...structuredClone(l.props),id:r(l.type)}};s.splice(V5(s,l.after,l.before),0,u);break}case"remove_block":{let f=qS(s,l.block_id);f<0&&d(`there is no top-level block ${l.block_id}`),s.splice(f,1);break}case"move_block":{let f=qS(s,l.block_id);f<0&&d(`there is no top-level block ${l.block_id}`);let[m]=s.splice(f,1);s.splice(V5(s,l.after,l.before),0,m);break}default:d(`"${l.op}" is not a change this editor makes`)}})}catch(l){return{ok:!1,reason:l instanceof Error?l.message:String(l)}}return{ok:!0,document:n}}var VS=e=>xo(e.requestId)??null;function a4(){let e=hae(),{appState:o,selectedItem:t,dispatch:r,history:a,config:n}=mae(u=>u),s=n,l=r4({appState:o,dispatch:r,history:a,blockConfig:s});l.current={appState:o,dispatch:r,history:a,blockConfig:s};let i=r4(new Map),d=t?.props?.id,f=uae(()=>Z5(s,o.data,d),[s,o.data,d]),m=f?JSON.stringify(f):"";t4(()=>{e.connected&&e.send("storefront-editor:selection",{selection:f})},[e,m]),t4(()=>e.subscribe(u=>{let{appState:h,dispatch:I,history:S,blockConfig:P}=l.current;switch(u.type){case"storefront-editor:request-document":{let T=VS(u);if(!T)return;e.send("storefront-editor:document",{requestId:T,document:h.data,blocks:Q5(P)});return}case"storefront-editor:apply-page-edits":{let T=VS(u);if(!T)return;let B=Array.isArray(u.ops)?u.ops:[],k=B.length?o4(P,h.data,B,xae,Os()):{ok:!1,reason:"no changes"};k.ok&&(I({type:"setData",data:k.document,recordHistory:!0}),i.current.set(T,JSON.stringify(k.document.content??[]))),e.send("storefront-editor:page-edits-result",{requestId:T,applied:k.ok,reason:k.ok?null:k.reason});return}case"storefront-editor:undo-page-edits":{let T=VS(u);if(!T)return;let B=i.current.get(T),k=B!==void 0&&B===JSON.stringify(h.data.content??[]);k&&S.hasPast&&(S.back(),i.current.delete(T)),e.send("storefront-editor:page-edits-result",{requestId:T,applied:k&&S.hasPast,reason:k?null:"the page has changed since"});return}case"storefront-editor:set-right-panel":typeof u.shown=="boolean"&&I({type:"setUi",ui:{rightSideBarVisible:u.shown}});return;default:return}}),[e])}import{useEffect as l4,useState as i4}from"react";var ym=new Map;async function Iae(e,o){try{return(await _o().site.get({siteId:o})).slug?.trim()||null}catch(t){return console.warn("[editor-site-slug] could not resolve the site slug",t),null}}function n4(e,o){let t=ym.get(o);return t||(t=Iae(e,o),ym.set(o,t),t.catch(()=>{ym.get(o)===t&&ym.delete(o)})),t}var gae=/^(localhost|(?:[a-z0-9-]+\.)+localhost|127(?:\.\d{1,3}){3}|0\.0\.0\.0|\[::1\]|::1)$/i;function YS(e){return!!e&&gae.test(e)}function s4(e){let{pageSlug:o,siteSlug:t,hostname:r}=e,a=o===dT?"/":`/${encodeURIComponent(o)}`;if(!YS(r))return a;let n=t?.trim();return n?`${a}?site=${encodeURIComponent(n)}`:a}function d4(e){let{pageSlug:o,siteId:t,token:r}=e,[a,n]=i4(null),[s,l]=i4(null),i=xP();l4(()=>{try{l(new URL(hP()).hostname)}catch{l(null)}},[i]),l4(()=>{if(!YS(s)||!t||!r){n(null);return}let f=!1;return n4(r,t).then(m=>{f||n(m)}),()=>{f=!0}},[s,t,r]);let d=s4({pageSlug:o,siteSlug:a,hostname:s});return i?`${i}${d}`:d}import{jsx as Zi}from"react/jsx-runtime";import{useEffect as yae,useRef as f4,useState as Sae}from"react";import{ExternalIcon as c4}from"efficient-easel/icons";import{EaselIconButton as bae}from"efficient-easel/chrome";import{Tooltip as wae,iconButtonClasses as Cae}from"efficient-shell/ui";import{useSettledPress as kae}from"efficient-easel/easel";import{useScreenDocument as vae}from"efficient-easel/screen/components/ScreenDocumentContext";async function Pae({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 p4({liveHref:e,pageId:o,draftLink:t}){let{flushSave:r}=vae(),a=f4(r);a.current=r;let n=kae(),[s,l]=Sae(!1),i=f4(null);if(yae(()=>()=>i.current?.(),[]),t&&o){let d=()=>new Promise((m,u)=>{i.current=()=>m(!1),n.run(()=>{i.current=null,a.current().then(m,u)})}),f=()=>{s||n.waiting||(l(!0),Pae({pageId:o,liveHref:e,draftLink:t,ready:d}).finally(()=>l(!1)))};return Zi(bae,{label:c("Preview your saved draft in a new tab"),tip:c("Open your saved draft in a new tab. Visitors don't see it."),disabled:s||n.waiting,onClick:f,children:Zi(c4,{})})}return Zi(wae,{content:c("Preview the live site (opens in a new tab)"),side:"bottom",children:Zi("a",{className:Cae({className:"es-iconbtn"}),href:e,...Pl,"aria-label":c("Preview the live site in a new tab"),children:Zi(c4,{})})})}import{createElement as Tae,useCallback as Oae,useEffect as u4,useRef as m4,useState as Eae}from"react";import{ClockIcon as _ae}from"efficient-shell/icons/efficient";import{useScreenDocument as Aae}from"efficient-easel/screen/components/ScreenDocumentContext";function x4(e){let{docId:o,capabilities:t,hasUnsavedEdits:r,onPublish:a,adapter:n}=Aae(),s=L2(B2(o??null),r),l=Fu(Bu()),i=n.siteLiveState;u4(()=>{if(i)return Dx(i),ca(0),()=>Dx(null)},[i]);let d=Ff(),[f,m]=Eae(!1),u=m4(e);u.current=e;let h=m4(!0);u4(()=>(h.current=!0,()=>{h.current=!1}),[]);let I=Oae(()=>{m(!0),a(u.current).then(()=>{Ru()}).finally(()=>{h.current&&m(!1)})},[a]);if(t.canPublish){if(i){let S=d===void 0?void 0:r||d.state==="changed"?"changed":"live",P=yS({live:S,onPress:I,busy:f,goingLive:R2(d?.changes??[])});return n.siteVersions?{...P,menuItems:Fae()}:P}return yS({live:s,onPress:I,busy:f,pinnedUnpublished:l?.unpublished??!1})}}function Fae(){return[{key:"version-history",label:c("Version history"),icon:Tae(_ae),onSelect:qM}]}import{jsx as Q,jsxs as Qo,Fragment as ed}from"react/jsx-runtime";import{useCallback as Bae,useEffect as Lae,useId as g4,useRef as Rae,useState as gt}from"react";import{useSettledAction as Dae}from"efficient-easel/easel";import{Avatar as Nae,Banner as Ji,Button as Za,ColoredBadge as XS,Dialog as JS,DropdownMenu as Mae,FormField as y4,iconButtonClasses as Hae,Inline as ZS,Input as Wae,ListRow as $ae,Select as zae,SortableList as Uae,Stack as Qi}from"efficient-shell/ui";import{EditIcon as jae,EyeIcon as h4,MenuIcon as Gae,MoreIcon as Kae,PageIcon as S4,RevertIcon as I4,StylesIcon as qae}from"efficient-shell/icons/efficient";import{useScreenDocument as b4}from"efficient-easel/screen/components/ScreenDocumentContext";var Vae={page:S4,menu:Gae};function Yae(e,o){return e.pages.find(t=>t.id===o)??e.pages[0]??null}function Xae(e,o){let t=window.open("","_blank");if(t)try{t.opener=null}catch{}return e.preview(o).then(({url:r})=>{t&&!t.closed?t.location.href=r:window.open(r,"_blank","noopener,noreferrer")},r=>{throw t?.close(),r})}function Zae({version:e,page:o,waiting:t,busy:r,error:a,onCancel:n,onConfirm:s,onPage:l}){let i=g4();if(!e)return null;let d=e.kind==="draft_before_restore",f=e.number,m=oH(e),u=d?c("Put your drafts back?"):o?c("Restore {page} from version {n}?",{page:o.name,n:f}):c("Restore version {n}?",{n:f}),h=d?c("Your drafts go back to how they were before the restore."):o?c("{page} goes back to version {n} as a draft. Nothing else on your website changes.",{page:o.name,n:f}):m?c("The whole website goes back to version {n} as a draft: {what}.",{n:f,what:m}):c("The whole website goes back to version {n} as a draft.",{n:f}),I=e.deletedPictures??0;return Q(JS,{open:!0,onClose:()=>{r||n()},size:"sm",title:u,footer:Qo(ed,{children:[Q(Za,{variant:"secondary",onClick:n,disabled:r,children:c("Cancel")}),Q(Za,{onClick:s,loading:r,disabled:r,children:c("Restore as draft")})]}),children:Qo(Qi,{gap:4,children:[o&&e.pages.length>1?Q(y4,{label:c("Page"),htmlFor:i,children:Q(zae,{id:i,value:o.id,options:e.pages.map(S=>({value:S.id,label:S.name})),onChange:l,disabled:r})}):null,Q("p",{children:h}),Q("p",{children:c("Your live website does not change until you press Publish.")}),I>0?Q(Ji,{tone:"warning",children:$t("{n} picture in this version was deleted from the media library. It stays empty.","{n} pictures in this version were deleted from the media library. They stay empty.",I)}):null,t?Q(Ji,{tone:"info",title:c("Your unpublished changes are kept"),children:c("They are saved in Version history as \u201CDraft before restore\u201D, so you can get them back.")}):null,a?Q(Ji,{tone:"danger",children:a}):null]})})}function Jae({version:e,onCancel:o,onSave:t}){let r=g4(),[a,n]=gt(null),[s,l]=gt(""),[i,d]=gt(!1),[f,m]=gt(null);if(e!==a&&(n(e),l(e?.name??""),m(null)),!e)return null;let u=s.trim()===e.name,h=async()=>{if(!(i||u)){d(!0),m(null);try{await t(s.trim())}catch{m(c("The name was not saved. Try again."))}finally{d(!1)}}};return Q(JS,{open:!0,onClose:()=>{i||o()},size:"sm",title:c("Name this version"),footer:Qo(ed,{children:[Q(Za,{variant:"secondary",onClick:o,disabled:i,children:c("Cancel")}),Q(Za,{onClick:()=>{h()},loading:i,disabled:i||u,children:c("Save")})]}),children:Q(y4,{label:c("Name"),htmlFor:r,hint:c("Named versions are always kept. Leave it empty to take the name away."),error:f??void 0,children:Q(Wae,{id:r,value:s,invalid:!!f,onChange:I=>l(I.target.value),onKeyDown:I=>{I.key==="Enter"&&h()}})})})}function Qae({version:e,expanded:o,onToggle:t,onPreview:r,onRestore:a,onRestorePage:n,onName:s}){let l=e.kind==="draft_before_restore",i=!e.live,d=e.changes.length,f=[...l?[]:[{key:"preview",label:c("Preview"),icon:Q(h4,{}),onSelect:r}],...i?[{key:"restore",label:l?c("Put these drafts back"):c("Restore whole website"),icon:Q(I4,{}),onSelect:a}]:[],...i&&!l&&e.pages.length?[{key:"restore-page",label:c("Restore one page only"),icon:Q(S4,{}),onSelect:n}]:[],...l?[]:[{type:"divider",key:"divider"},{key:"name",label:c("Name this version"),icon:Q(jae,{}),onSelect:s}]];return Q($ae,{title:Qo("span",{className:"sf-version-title",children:[Q("span",{children:eH(e)}),e.live?Q(XS,{tone:"success",size:"xs",children:c("Live")}):null,e.name?Q(XS,{tone:"neutral",size:"xs",children:c("Version {n}",{n:e.number})}):null,l?Q(XS,{tone:"warning",size:"xs",children:c("Not published")}):null]}),expanded:o,onToggle:t,actions:Q(Mae,{align:"end","aria-label":c("More"),items:f,triggerClassName:Hae({variant:"ghost",size:"sm"}),trigger:Q(Kae,{})}),below:Qo(Qi,{gap:3,children:[Qo(ZS,{gap:2,align:"center",wrap:!0,className:"sf-version-meta",children:[Q(Nae,{name:e.createdBy,size:"xs"}),Q("span",{children:e.createdBy}),Q("span",{"aria-hidden":"true",children:"\xB7"}),Q("span",{children:rH(e.createdAt)}),d?Qo(ed,{children:[Q("span",{"aria-hidden":"true",children:"\xB7"}),Q("span",{children:$t("{n} change","{n} changes",d)})]}):null]}),o?Qo(Qi,{gap:3,children:[d?Q(Qi,{gap:2,children:e.changes.map(m=>{let u=Vae[m.kind]??qae;return Qo(ZS,{gap:2,align:"center",children:[Q(u,{size:16}),Q("span",{children:tH(m)})]},`${m.kind}:${m.id}`)})}):null,Qo(ZS,{gap:2,children:[l?null:Q(Za,{variant:"secondary",size:"sm",leftIcon:Q(h4,{}),onClick:r,children:c("Preview")}),i?Q(Za,{variant:"secondary",size:"sm",leftIcon:Q(I4,{}),onClick:a,children:c("Restore")}):null]})]}):null]})})}function ene({open:e,onClose:o,access:t,waiting:r}){let{flushSave:a,reloadFromServer:n,docId:s}=b4(),[l,i]=gt(null),[d,f]=gt(!1),[m,u]=gt(null),[h,I]=gt(null),[S,P]=gt(!1),[T,B]=gt(null),[k,g]=gt(null),[b,E]=gt(!1),A=Rae(0),N=Bae(()=>{let v=++A.current;f(!1),t.list().then(O=>{v===A.current&&i(O)},()=>{v===A.current&&f(!0)})},[t]);Lae(()=>{e&&N()},[e,N]);let w=v=>{E(!1),Xae(t,v.id).catch(()=>E(!0))},_=async()=>{if(!(!h||S)){P(!0),B(null);try{await JM({access:t,version:h.version,page:h.page,flushSave:a,reload:n}),I(null),o()}catch(v){B(v instanceof Ai?c("Your last changes did not save, so nothing was restored. Try again."):c("The version was not restored. Nothing changed. Try again."))}finally{P(!1)}}},y=Dae({onPress:()=>{_()},busy:S});return Qo(ed,{children:[Q(JS,{open:e,onClose:o,size:"xl",title:c("Version history"),description:Qo(ed,{children:[c("Every Publish keeps a copy of the whole website: pages, menus and site styles.")," ",c("Products, prices and forms always show as they are now.")]}),footer:Q("span",{className:"sf-version-foot",children:c("The newest 30 are kept. Named versions are always kept.")}),children:Qo(Qi,{gap:3,children:[b?Q(Ji,{tone:"danger",onDismiss:()=>E(!1),children:c("The preview did not open. Try again.")}):null,d?Q(Ji,{tone:"danger",action:Q(Za,{variant:"secondary",size:"sm",onClick:N,children:c("Try again")}),children:c("Version history did not load.")}):l===null?Q("p",{className:"sf-version-foot",children:c("Loading versions")}):l.length===0?Q("p",{className:"sf-version-foot",children:c("No versions yet. Every Publish from now on keeps one.")}):Q(Uae,{"aria-label":c("Versions"),spacing:"comfortable",children:l.map(v=>Q(Qae,{version:v,expanded:m===v.id,onToggle:()=>u(O=>O===v.id?null:v.id),onPreview:()=>w(v),onRestore:()=>{B(null),I({version:v,page:null})},onRestorePage:()=>{B(null),I({version:v,page:Yae(v,s)})},onName:()=>g(v)},v.id))})]})}),Q(Zae,{version:h?.version??null,page:h?.page??null,waiting:r,busy:y.busy===!0,error:T,onCancel:()=>I(null),onConfirm:y.onPress,onPage:v=>I(O=>O&&{...O,page:O.version.pages.find(C=>C.id===v)??O.page})}),Q(Jae,{version:k,onCancel:()=>g(null),onSave:async v=>{await t.name(k.id,v),g(null),N()}})]})}function w4(){let{adapter:e,hasUnsavedEdits:o}=b4(),t=e.siteVersions,r=YM(),a=Ff();return t?Q(ene,{open:r,onClose:VM,access:t,waiting:o||a?.state==="changed"}):null}import{useEaselSession as l6}from"efficient-easel/screen/lib/session-context";import{buildPaletteSections as rWe,categoryLabel as aWe,paletteWithoutPinned as nWe,pinnedSection as sWe}from"efficient-easel/screen/lib/document/palette-sections";var one={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 C4(e){return z(one,e)?.label}var k4=xb;function tne(e){let o=nu.Ticker(e.nodeDefaults,e.newNodeId),{sectionBorder:t,...r}=o.props,a=lI.line?{sectionBorder:t}:{};return{...o,props:{...r,...a,sectionAccent:lI.sectionAccent}}}var rne={Hero:{[Zl]:{newChild:tne,childLabel:ea.Ticker}}},v4=Object.fromEntries(Object.entries(T1).map(([e,o])=>[e,Object.fromEntries(Object.entries(o).map(([t,r])=>[t,{...r,...z(rne,e)?.[t]}]))]));function P4(e,o=0,t,r){let a=nne(sne(e,o,r),t),n=a?Ng():null;return a&&n?ane(a,n):a}function ane(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 nne(e,o){if(!e||e.source!=="container"||!o||!Cw())return e;let t=Ad({data:o.data},o.id),r=typeof t?.type=="string"?Pd(t.type):[],a=e.choices??[],n=r.filter(s=>!a.some(l=>l.type===s.type));return n.length?{...e,choices:[...a,...n.map(s=>({type:s.type,label:s.label}))]}:e}function sne(e,o,t){let r=t?z(v4,e)?.[t]:void 0;if(r)return{source:"section",slot:r.slot,choices:null,spec:r};let a=z(dt,e);if(a)return{source:"section",slot:a.slot,choices:null,spec:a};let n=cd(e,o);if(n)return{source:"container",slot:n.slot,choices:n.choices,spec:null};let s=q2(e);return s?{source:"footer",slot:K2,choices:s,spec:null}:null}function T4(e,o=Ed(e.type)){return Od(e.type)?o.map(t=>{let r=Pw(e.type,t);return r===null?{slot:t,label:t,rung:!1}:{slot:t,label:c(r),rung:!0}}):null}import{useSyncExternalStore as lne}from"react";var QS=null,eb=new Set;function O4(e){if(QS!==e){QS=e;for(let o of eb)o()}}function ine(e){return eb.add(e),()=>{eb.delete(e)}}function EWe(){return lne(ine,()=>QS,()=>null)}function E4(e){return BP(e)?.ownerId??null}function _4(e,o){let t=e.props;if(e.type==="FooterMenu"){let r=t.menu;return t.heading||r?.name||c("Menu")}if(e.type==="FooterText"){let r=typeof t.text=="string"?t.text.trim():"";return r?r.length>28?`${r.slice(0,28)}\u2026`:r:c("Text")}return e.type==="FooterEmailSignup"?t.heading||c("Email signup"):o(e.type)}import{parseOption as dne}from"efficient-shell/format";var fne=["pages","sections","styles"],A4="sf-editor-left-view";function F4(){if(typeof window>"u")return"pages";try{let e=window.localStorage.getItem(A4);return dne(fne,"pages",e)}catch{return"pages"}}function B4(e){if(!(typeof window>"u"))try{window.localStorage.setItem(A4,e)}catch{}}function L4(e,o){return e==="styles"&&!o?"sections":e}function R4(e,o){return e?"sections":o}import{copyNode as cne}from"efficient-easel/data";function D4(e){let o=typeof e?.props?.id=="string"?e.props.id:null,t=dr(),r=o&&t?t.sectionOf(o):null;if(!t||!r)return null;let a=t.usedOn(r);return a?a.length===1?c("On 1 page"):c("On {count} pages",{count:a.length}):c("On other pages")}var N4={usedOn:e=>{let o=dr(),t=o?.sectionOf(e.props.id)??null;return!o||!t?null:o.usedOn(t)??[]},openPage:e=>Ef()?.openPage(e),adopt:(e,o)=>dr()?.adopt(e.props.id,o),nodeOf:e=>dr()?.place(e)??null,detach:e=>{let o=Ef()?.config;return o?cne(e,o):e},removed:()=>Ef()?.reload()};import{sharedSectionsOf as Mne}from"efficient-easel/screen/lib/shared-sections";import{scrollPreviewToSection as Hne,scrollPreviewToTop as e6}from"efficient-easel/screen/lib/document/preview-dom";var pne=Pf.mediaFields,une=/video|poster|focal|phone/i;function mne(e){return(z(pne,e)??[]).find(o=>!o.includes("[]")&&!une.test(o))??null}function xne(e){let o=mne(e.type);return e.type!==q?o&&_d(e.type,e.props,o)?{fromData:!0}:o:Zk(e.props)?{fromData:!0}:o}var M4={adds:{kind:"block",type:"ImageBlock"},kinds:["image"],pictureOf:xne,create:(e,o)=>({type:"ImageBlock",props:{...o.nodeDefaults("ImageBlock"),id:o.newNodeId("ImageBlock"),src:e.url}})};var H4={Hero:"Full-screen opener with rotating slides.",HeroSingle:"Full-screen image or video with a headline.",IntroBleed:"Full-bleed intro image the next section scrolls over.",Collections:"Product collections in a tidy grid.",AlloyWheelsListing:"A full product-listing page: filter rail, sortable card grid and pagination, from the live catalog. Choose which product types it shows.",CatalogFilterBar:"Filters the collection grids below it \u2014 a sticky row of Pills (the default), or Columns, one per filter you switch on.",ProductGrid:"Hand-picked products in a tidy grid.",FitmentFinder:"A vehicle picker \u2014 make, model, year and trim resolve the OEM stock fitment live.",Gallery:"Two image galleries with tabs and filters.",GalleryB:"A wall of your photos or your products' pictures, with a click-to-open lightbox.",SpecStrip:"A thin one-line spec strip \u2014 small-caps items spread across the width, as a dark band or a bare hairline row.",ProductHero:"A product hero \u2014 image beside price, bullets and a buy button.",SpecTable:"A spec sheet \u2014 labeled rows of product specifications.",ProcessSteps:"A heading over columns, or alternating rows, of image, title, blurb and specs.",DetailRows:"Repeating full-width rows \u2014 eyebrow, title and copy beside a numbered close-up image, alternating sides each row.",FitmentTable:"A fitment table \u2014 per-size bolt patterns, offsets and load ratings, filterable by diameter.",CompatibleTyres:"The current product's compatible tyres \u2014 image, size, key specs and price per tyre, with an inquiry link. Display only.",RelatedProducts:"The current product's related items in a tidy row \u2014 the product page's built-in 'Pair with' cross-sell.",OrderSummary:"A display order-summary panel \u2014 items, totals and a note.",DeliveryOptions:"Delivery tiers as cards \u2014 name, window and price, one highlighted.",PaymentBadges:"A payment-methods trust strip with reassurance lines.",CheckoutCTA:"A centered 'ready to order?' headline with the checkout button.",Manifesto:"A bold brand statement beside a full-height image, with a stat strip.",ParagraphsA:"An editorial text panel with a stat strip and founders' note.",StatsParagraph:"An editorial heading and paragraph over a row of stat cards whose units and small labels take the main color.",Chart:"A titled chart \u2014 bars, line or donut \u2014 drawn from your own labeled data points.",Mockup:"A headline beside a stylized product-UI mockup card \u2014 spec sheet, fitment, portal, kanban and more.",Prose:"A plain editorial text section \u2014 eyebrow, heading and body copy.",Timeline:"An editorial aside beside a rail-marked timeline of dated entries.",TimelineTrack:"A horizontal year track of milestones \u2014 company history or roadmap.",Footprint:"A world map of your locations with a legend \u2014 designed here, sold worldwide.",TitleWithButtons:"A big headline beside a stack of call-to-action buttons.",Split:"Side-by-side image and text in two columns.",Cards:"A heading over a grid of free-text title-and-blurb cards.",FAQ:"A frequently-asked-questions accordion with a header.",Testimonials:"Customer quotes in a grid \u2014 the quote, a name and a role.",Masthead:"A journal issue header with a lead statement and contents.",Breadcrumb:"A slim trail showing where the reader is (Home / Journal\u2026).",CategoryBar:"A sticky row of category tabs with counts and links.",FeaturedCover:"A featured article \u2014 big cover image beside a headline and dek.",LongRead:"A long-form article spread with a pull-quote and cover image.",Series:"A section heading over a grid of column cards.",Subscribe:"A newsletter signup beside a list of recent issues.",SubscribeBlogs:"A newsletter signup beside your latest blog posts, pulled live.",Events:"Latest journal posts in a three-card row.",DocMasthead:"A page header: eyebrow, title, details and a deck.",DocTabs:"A sticky tab bar that marks the page you are on.",DocBody:"Long-form document body with an 'On this page' contents list.",DocMetaCards:"A three-up meta strip for the foot of a document.",Banner:"Wide promo strip with background image.",Stats:"Highlight key numbers \u2014 years, designs.",Countdown:"Hours, minutes and seconds to a set date and time, then one line.",KeyFeatures:"A theme-color chip and heading over a grid of short feature labels.",Logos:"A row of partner or brand logos.",Ticker:"A scrolling marquee of short phrases, full width.",Reviews:"Approved customer reviews in a star-rated card grid, pulled live.",SubmitBuild:"A 'Show us yours.' headline with a photo-submission form.",ReviewForm:"A write-a-review form \u2014 submissions wait for your approval before they show.",ContactRouting:"Pick who to reach, then a form that routes the message.",ContactLocations:"Your locations as a city gallery plus address and map cards.",SectionHeader:"A numbered section title with optional link.",Grid:"Multi-column container for blocks.",Flex:"An empty section. Add whatever you want inside.",Spacer:"Vertical breathing room between sections.",Divider:"A thin horizontal rule between sections.",CustomHTML:"Drop in your own sanitized HTML.",Heading:"A single heading line.",Text:"A paragraph of body copy.",ImageBlock:"A standalone image, at the width you set.",ButtonBlock:"A call-to-action button."};import{jsx as Sm}from"react/jsx-runtime";import{useState as hne}from"react";import{Button as Ine,Tooltip as gne,toast as W4}from"efficient-shell/ui";import{TemplateIcon as yne}from"efficient-easel/icons";import{useSettledAction as Sne}from"efficient-easel/easel";import{useScreenDocument as bne}from"efficient-easel/screen/components/ScreenDocumentContext";function z4({enabled:e,reason:o,onSaved:t}){let{flushSave:r}=bne(),[a,n]=hne(!1),s=async()=>{if(!a){n(!0);try{await r()?t():W4.error(c($4))}catch{W4.error(c($4))}finally{n(!1)}}},l=Sne({onPress:()=>{s()},busy:a});return Sm(gne,{side:"bottom",content:e?c("Save this website as a platform template"):c(o),children:Sm("span",{className:"sf-tip-disabled",tabIndex:e?void 0:0,children:Sm(Ine,{variant:"secondary",disabled:!e||l.busy,loading:l.busy,onClick:l.onPress,rightIcon:Sm(yne,{size:15}),children:c("Save as Template")})})})}var $4="Your last changes did not save, so the template was not made. Try again.";var wne="Save your page changes first";function U4(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:wne}:{visible:!0,enabled:!0}:{visible:!1,hiddenReason:"no-site"}:{visible:!1,hiddenReason:"not-operator"}:{visible:!1,hiddenReason:"no-console"}}var j4="storefront-editor:save-as-template";import{phoneKey as Cne,tabletKey as kne}from"efficient-easel/draw";var vne=[ho.top,kne(ho.top),Cne(ho.top)],bm="ContactLocations",G4="ContactRouting",K4="CityPictures",q4="CityMaps",Pne=[{key:K4,label:"City pictures",piece:0,desc:"A wall of city photos, grouped by region. Each photo links to its city's card."},{key:q4,label:"City maps",piece:1,desc:"A card per city, grouped by region: address, phone, hours and a map."}];function V4(e=Oa,o=ZI){let t=cb.find(r=>r.sections.some(a=>a.type===G4))?.key;return!e.includes(bm)||!t?[]:Pne.filter(r=>!(o&&r.key===K4)).map(({key:r,label:a,desc:n,piece:s})=>({key:r,label:a,cat:t,after:G4,desc:n,alias:"locations offices stores branches",insert:l=>{let i=Hr(bm);if(!i)return null;let d=Os(),f=hi(bm,i,s)(l.nodeDefaults,l.newNodeId,d);if(!f||!(o&&r===q4))return f;let m=hi(bm,i,0)(l.nodeDefaults,h=>`${h}-above`,d),u=Object.fromEntries(vne.filter(h=>m?.props[h]!==void 0).map(h=>[h,m.props[h]]));return{...f,props:{...f.props,...u}}}}))}function Y4(e=Oa,o){return[...V4(e,o)]}function Z4(e,{nodeDefaults:o,newNodeId:t,sectionLabel:r,blockIsOffered:a}){let n=ps(e);if(n)return n(o,t,Os());if(mw(e)&&a(q)&&a(dn)){let l=z(Ct,e);return{type:q,props:{...o(q),id:t(q),direction:"column",name:`${r(e)} section`,content:[{type:dn,props:{...o(dn),id:t(dn),...l?.headStyle?{headStyle:l.headStyle}:{},...l?.headRowGap?{rowGap:l.headRowGap}:{},...l?.headDescriptionSize?{descriptionSize:l.headDescriptionSize}:{},...Ol(e)!==Ol(dn)?{eyebrowLook:Ol(e)}:{}}},{type:e,props:{...o(e),id:t(e),headPlacement:"own-box",...X4(e,t)}}]}}}if(z(dt,e)?.fixed===!0)return{type:e,props:{...o(e),id:t(e),layout:"boxes"}};let s=X4(e,t);return Object.keys(s).length?{type:e,props:{...o(e),id:t(e),...s}}:null}function X4(e,o){return e==="Cards"?{template:fw(t=>o(t))}:e===cw?{template:pw(t=>o(t))}:{}}import{useEffect as Tne,useState as One}from"react";import{useEaselSession as Ene}from"efficient-easel/screen/lib/session-context";function J4(){let e=Ene().chrome?.products?.list,[o,t]=One(null);return Tne(()=>{if(!e)return;let r=!1;return e().then(a=>{r||t(a)}),()=>{r=!0}},[e]),o}function i6({mode:e,open:o}){let{setSelectedHeroId:t,setSelectHandler:r}=oR(),a=s6().tree,n=e,s=n.kind==="ticker"?n.heroId:null,l=_s(i=>{i&&(o({kind:"ticker",heroId:i}),Hne(i))},[o]);return Zt(()=>{t(s)},[s,t]),Zt(()=>{r(l)},[r,l]),{partRows:(i,{rowClick:d})=>{let f=String(i.props.id);return i.type==="Hero"&&iI(i.props)&&uo(a6,{icon:uo(ja,{type:"ticker",size:13}),name:c(Ma),onSelect:()=>l(f),selected:s===f,rowProps:{onClick:d(()=>l(f))},words:a})}}}function d6({mode:e,select:o}){let{setSelectedHeroPart:t,setSelectHandler:r}=Ku(),a=s6().tree,{appState:n,config:s}=n6(u=>u),l=_ne({data:n.data,config:s});l.current={data:n.data,config:s};let i=e,d=ka.find(u=>Kl[u]===i.kind),f=d&&"nodeId"in i?va(String(i.nodeId),d):null,m=_s(u=>{let h=Xc(u);if(!h)return;let{data:I,config:S}=l.current,P=Dne(I,S,{kind:"node",id:h.nodeId});if(!P)return;let T={kind:Kl[h.part],nodeId:h.nodeId};o({index:P.index,zone:P.zone},T)},[o]);return Zt(()=>{t(f)},[f,t]),Zt(()=>{r(m)},[r,m]),{partRows:(u,{rowClick:h})=>{let I=String(u.props.id),S=F_(u);if(S.length===0)return null;let P=k=>{let g=va(I,k.part);return uo(a6,{icon:uo(ja,{type:k.part==="media"?"heroMedia":"heroImage",size:13}),name:c(k.label),onSelect:()=>m(g),selected:f===g,rowProps:{onClick:h(()=>m(g))},words:a},g)},[T,...B]=S;return od(r6,{children:[P(T),B.length>0&&uo(Rne,{children:B.map(P)})]})}}}function f6(e,o){return{partRows:(t,r)=>od(r6,{children:[e.partRows?.(t,r),o.partRows?.(t,r)]})}}function Wne(e){let{adapter:o,capabilities:t,currentSlug:r,siteId:a,docId:n,hasUnsavedEdits:s,bridgeCapabilities:l,notifyParent:i,token:d}=wm(),{hasPreviewLink:f}=t,m=_o(l6()).preview?.draftLink,u=x4(e.data),h=U4({hasTrustedConsole:!!d,canCreatePlatformTemplate:l.canCreatePlatformTemplate,capabilities:t,siteId:a,hasUnsavedEdits:s}),I=_s(()=>{!a||!r||i(j4,{siteId:a,slug:r})},[i,a,r]),S=d4({pageSlug:r,siteId:a,token:d}),P=o.previewHref?.(r)??S;return{barLead:()=>h.visible&&uo(z4,{enabled:h.enabled,reason:h.enabled?"":h.disabledReason,onSaved:I}),barView:()=>f&&r&&uo(p4,{liveHref:P,pageId:n??null,draftLink:m}),mainAction:u}}function $ne(e,o){let{capabilities:t,templateId:r,siteId:a,tokenRef:n,navigate:s}=wm(),{hasSiteTheme:l,explainsSiteSettings:i}=t,d=k=>o.setView(k),[f,m]=Q4(JT[0].id),[u,h]=Q4(!1),{surface:I,setSurface:S}=HH(),P=()=>{if(l){d("styles"),o.reveal(),e6();return}e.show(AS),e.reveal(),e6()},T={id:"pages",label:c("Pages"),icon:uo(Fne,{}),panel:({onHide:k})=>uo(EH,{activeSurface:I,onPreviewSurface:S,onNavigate:g=>{S(null),s(r?{kind:"template",id:r,pageSlug:g}:{kind:"page",slug:g,siteId:a??void 0})},onClose:k})},B=[];return!l&&i&&B.push({id:"appearance",label:c("Appearance"),icon:uo(Lne,{}),active:e.kind==="website",onSelect:P}),l&&B.push({id:"styles",label:c("Styles"),icon:uo(Bne,{}),panel:({onHide:k,notify:g})=>uo(g5,{tokenRef:n,siteId:a??void 0,onClose:k,onNotify:g,tab:f,onTabChange:m,revealPageGroup:u,onPageGroupRevealed:()=>h(!1)})}),{railLead:[T],railTrail:B,resolveLeftView:k=>L4(k,l),openSettings:P,openStyles:()=>{m(ZT),d("styles")},openPageStyles:l?()=>{m(Mf),h(!0),d("styles"),o.reveal()}:i?()=>{e.show(s5),e.reveal()}:void 0}}function zne(){let{navigate:e,siteId:o,reloadFromServer:t,docId:r}=wm(),a=n6(s=>s.config),n=l6();Zt(()=>(Rx({openPage:s=>e({kind:"page",slug:s.slug,siteId:o??void 0}),reload:()=>{t()},config:a}),()=>Rx(null)),[e,o,t,a]),Zt(()=>{let s=dr();if(!s||!r)return;let l=!1;return Mne(n).list().then(i=>{l||s.learn(i)}).catch(()=>{}),()=>{l=!0}},[r,n])}function c6(){let e=Wf();return _s(o=>{k0(o,e)},[e])}function Une(e,o,t,r){let{kind:a,open:n}=e,{selected:s,zoneOf:l}=o;Zt(()=>{O4(s?.type==="BookingBox"&&s.props.region==="confirm"?E4(l(String(s.props.id))):null)},[s?.props.id]);let i=D5(e,o),{capabilities:{hasSiteSettings:d}}=wm();zne();let{chat:f,setChat:m,setSelected:u,setSelectHandler:h}=Gu(),I=_s(()=>n(l5),[n]),S=a==="chat";Zt(()=>{u(S)},[S,u]),Zt(()=>{h(I)},[h,I]);let{setOpenHandler:P}=Bi(),T=_s(()=>n(i5),[n]);Zt(()=>{P(T)},[P,T]);let B=f6(i6(e),d6(e)),k=Wne(o),g=$ne(e,r);bH(r);let b=t.device,E=c6();return{...B,...k,...g,hasOwnRows:A=>A.type===gm,ownRows:i.renderLocationTree,sectionPressed:i.sectionPressed,onCopyItem:E,wrap:A=>uo(Vx.Provider,{value:!0,children:od(Nne.Provider,{value:b,children:[A,uo(w4,{})]})}),addPanelRow:A=>d?od("div",{className:"sf-addside-sitewide",children:[uo("span",{className:"sf-addside-sitewide-glyph","aria-hidden":"true",children:uo(ja,{type:"chat",size:16})}),od("button",{type:"button",className:"sf-addside-sitewide-name",onClick:()=>{A(),I()},children:[c("Live chat"),uo("span",{className:"sf-addside-sitewide-desc",children:c("A chat bubble on every page")})]}),uo(Ane,{checked:f.enabled,onChange:N=>m({enabled:N}),ariaLabel:c("Show the chat bubble on the whole site")})]}):void 0}}var o6=null,ob=new WeakMap;function jne(e){let o=lC();if(!e||!o)return e;o6!==o&&(o6=o,ob=new WeakMap);let t=ob.get(e);return t||(t={...e,choices:e.choices?e.choices.map(r=>({...r,label:c(r.label)})):null,spec:e.spec?{...e.spec,addLabel:c(e.spec.addLabel),...e.spec.childLabel?{childLabel:c(e.spec.childLabel)}:{}}:null},ob.set(e,t)),t}var Gne={isLockedBlock:(e,o)=>bu(e,o)||!!(o&&dr()?.heldElsewhere(o.props.id)),duplicateBlocked:cm,nestDepth:(e,o,t)=>o===$d?zd(e,t):0,newSectionNode:Z4,canAddTo:(e,o,t,r)=>jne(P4(e,o,r,t)),blockIsOffered:KR,slotsOf:T4,resolveOnInsert:!0},Kne=new Proxy(H4,{get:(e,o)=>{let t=Reflect.get(e,o);return typeof t=="string"?c(t):t}}),qne={labelAtLevel:(e,o,t)=>c(Tm(e,o,t)),descriptions:Kne,categoryLabel:e=>{let o=C4(e);return o===void 0?void 0:c(o)},firstSection:k4,blockRowName:_4,rowName:wu,plainText:an,Icon:ja,Thumbnail:h5,useProducts:J4,presets:Y4()},Vne={desktop:2e3,tablet:800,mobile:390},t6="desktop",Yne={options:RH,initial:t6,fluid:t6,fluidMin:Zb,widths:Vne,hidesPerView:!0},Xne={read:F4,write:e=>B4(e),forSelection:(e,o)=>R4(e,o)},Zne={first:Ko,last:Re,firstGroup:Mo,lastGroup:ao,isSectionGroup:lP,sectionGroupZone:iP,panelOf:e=>e===Ko?n5:null,get sharedReach(){return ua()?Qne:void 0},get shared(){return dr()?N4:void 0},get groupTab(){return ua()?V2:void 0},get groupBadge(){return ua()?PS({type:ao})??void 0:void 0},get changeNotice(){return ua()?Y2():void 0},get band(){return ua()?Jne:void 0},get groupAccepts(){return ua()?cP:void 0}},Jne={foldable:!0},Qne=e=>PS(e)??D4(e);function ese(e){return{...f6(i6(e),d6(e)),onCopyItem:c6(),openSettings:()=>e.show(AS)}}function ose(e,o){K5(e,o),a4()}var Wze={useOwnerName:Ln,useDocumentLabel:E0,useBridges:Une,useStandaloneBridges:ese,useDocumentPass:ose,blockRules:Gne,blockLook:qne,devices:Yne,leftView:Xne,pinned:Zne,Canvas:lH,canvasDrag:{media:M4},Inspector:f5};export{Bg as a,qt as b,Vt as c,no as d,dhe as e,fI as f,dye as g,ci as h,pi as i,iF as j,dF as k,Bp as l,fye as m,GG as n,fF as o,cye as p,BR as q,XTe as r,LR as s,QTe as t,yl as u,ha as v,uI as w,hhe as x,dp as y,MO as z,HO as A,X1 as B,J0 as C,Pt as D,ec as E,Q0 as F,ph as G,eie as H,oie as I,tie as J,eO as K,rie as L,oc as M,aO as N,lie as O,iie as P,nO as Q,die as R,bie as S,wie as T,cO as U,Jo as V,Hn as W,fo as X,Fa as Y,Y as Z,Zn as _,J as $,X as aa,te as ba,re as ca,ce as da,Xhe as ea,pe as fa,Qn as ga,es as ha,ti as ia,ri as ja,oA as ka,eIe as la,Pj as ma,tA as na,rIe as oa,aIe as pa,rA as qa,Th as ra,AO as sa,bW as ta,Ol as ua,FO as va,Ode as wa,xI as xa,iIe as ya,dIe as za,fIe as Aa,cIe as Ba,pIe as Ca,uIe as Da,Yie as Ea,kc as Fa,Pl as Ga,Xie as Ha,Zie as Ia,wO as Ja,wh as Ka,oW as La,tW as Ma,Jie as Na,rW as Oa,Qie as Pa,wE as Qa,Xce as Ra,AE as Sa,Zce as Ta,Jce as Ua,Qce as Va,gp as Wa,yI as Xa,lA as Ya,yp as Za,kIe as _a,Hj as $a,Wj as ab,$j as bb,vIe as cb,Uo as db,Da as eb,ns as fb,cge as gb,pge as hb,uge as ib,HE as jb,Uc as kb,F$ as lb,lpe as mb,zA as nb,UA as ob,jA as pb,Fge as qb,qA as rb,xye as sb,hye as tb,Rp as ub,pF as vb,Al as wb,RO as xb,DO as yb,_h as zb,Sa as Ab,XO as Bb,pfe as Cb,ufe as Db,mfe as Eb,Rl as Fb,lt as Gb,bfe as Hb,tde as Ib,xde as Jb,kh as Kb,hde as Lb,ga as Mb,vc as Nb,Ze as Ob,Ffe as Pb,tE as Qb,aE as Rb,nE as Sb,Dp as Tb,SF as Ub,Fye as Vb,Np as Wb,bF as Xb,Nye as Yb,FF as Zb,y8 as _b,zp as $b,RSe as ac,Kc as bc,j$ as cc,Yh as dc,_8 as ec,XSe as fc,aB as gc,nB as hc,ZSe as ic,JSe as jc,Zx as kc,R6 as lc,Jx as mc,i0 as nc,ube as oc,yB as pc,SB as qc,bB as rc,Hbe as sc,Zbe as tc,Jbe as uc,Qbe as vc,cg as wc,OB as xc,eK as yc,oK as zc,Gp as Ac,twe as Bc,rwe as Cc,_we as Dc,XB as Ec,Awe as Fc,ZB as Gc,Bwe as Hc,aL as Ic,nL as Jc,RK as Kc,iL as Lc,Zwe as Mc,Yp as Nc,lCe as Oc,mi as Pc,fCe as Qc,pL as Rc,pCe as Sc,uL as Tc,mL as Uc,xCe as Vc,Tl as Wc,SW as Xc,hr as Yc,SCe as Zc,Xp as _c,kCe as $c,Jp as ad,Sde as bd,bde as cd,ya as dd,wde as ed,fh as fd,Qf as gd,D0 as hd,it as id,Ul as jd,hz as kd,Jh as ld,tue as md,jl as nd,gz as od,rue as pd,lue as qd,Gl as rd,O_ as sd,E_ as td,que as ud,Vue as vd,Yue as wd,Xue as xd,Bz as yd,Zue as zd,Xc as Ad,ql as Bd,ome as Cd,tI as Dd,M_ as Ed,H_ as Fd,Qh as Gd,Wz as Hd,tme as Id,Zc as Jd,Vl as Kd,Qc as Ld,rme as Md,ame as Nd,Jc as Od,nme as Pd,sme as Qd,U_ as Rd,Yl as Sd,Xl as Td,op as Ud,G_ as Vd,Yn as Wd,K_ as Xd,tp as Yd,rp as Zd,ap as _d,q_ as $d,V_ as ae,Y_ as be,X_ as ce,Z_ as de,a1 as ee,n1 as fe,Nme as ge,Mme as he,Hme as ie,Wme as je,$me as ke,dU as le,fU as me,zme as ne,Ume as oe,jme as pe,l1 as qe,Gme as re,Kme as se,qme as te,Vme as ue,uU as ve,mU as we,yU as xe,bU as ye,wU as ze,u1 as Ae,OU as Be,x1 as Ce,h1 as De,Dc as Ee,DU as Fe,kxe as Ge,C1 as He,Axe as Ie,Uxe as Je,jxe as Ke,ice as Le,Dl as Me,uce as Ne,mce as Oe,gE as Pe,Ii as Qe,Xt as Re,pD as Se,cu as Te,SOe as Ue,bOe as Ve,FOe as We,BOe as Xe,hV as Ye,Xg as Ze,bD as _e,LOe as $e,CD as af,kD as bf,ED as cf,CV as df,PV as ef,rEe as ff,hEe as gf,IEe as hf,wi as if,gEe as jf,yEe as kf,Qg as lf,SEe as mf,Fve as nf,Ml as of,Uh as pf,$c as qf,YEe as rf,Kn as sf,Ppe as tf,Tpe as uf,QE as vf,l9 as wf,CN as xf,vi as yf,u1e as zf,x1e as Af,dy as Bf,NN as Cf,ou as Df,Nve as Ef,Wve as Ff,oR as Gf,Sg as Hf,tR as If,rR as Jf,Uve as Kf,aR as Lf,ru as Mf,Zve as Nf,sR as Of,dR as Pf,lR as Qf,hy as Rf,xFe as Sf,hFe as Tf,IFe as Uf,wu as Vf,fM as Wf,yy as Xf,NFe as Yf,MFe as Zf,cZ as _f,pZ as $f,wBe as ag,CBe as bg,kBe as cg,vBe as dg,Ou as eg,Eu as fg,YBe as gg,RM as hg,MM as ig,HM as jg,WM as kg,zRe as lg,$ke as mg,Fu as ng,Uu as og,_H as pg,AH as qg,BH as rg,ju as sg,SDe as tg,bDe as ug,Gu as vg,_Q as wg,ADe as xg,Bi as yg,RDe as zg,HH as Ag,Rn as Bg,F6 as Cg,bse as Dg,wse as Eg,o5e as Fg,t5e as Gg,r5e as Hg,_1 as Ig,MDe as Jg,Ku as Kg,cse as Lg,D6 as Mg,N6 as Ng,M6 as Og,c0 as Pg,$se as Qg,Yf as Rg,n3 as Sg,s3 as Tg,hle as Ug,ase as Vg,P3 as Wg,SO as Xg,zie as Yg,Uie as Zg,Q3 as _g,jie as $g,Gie as ah,Cc as bh,Kie as ch,jn as dh,iE as eh,dE as fh,SE as gh,Gce as hh,ME as ih,rpe as jh,WE as kh,Xh as lh,q$ as mh,Z$ as nh,Mpe as oh,Eke as ph,Kke as qh,Xke as rh,DL as sh,ove as th,tve as uh,mve as vh,xve as wh,Ove as xh,xi as yh,dq as zh,_Pe as Ah,MPe as Bh,tTe as Ch,rTe as Dh,ATe as Eh,PR as Fh,ise as Gh,bMe as Hh,VH as Ih,Re as Jh,fm as Kh,Lt as Lh,b5 as Mh,qi as Nh,w5 as Oh,C5 as Ph,i6e as Qh,d6e as Rh,n4 as Sh,YS as Th,s4 as Uh,P4 as Vh,EWe as Wh,Wze as Xh};
|