efficient-storefront-blocks 0.125.0 → 0.125.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 +20 -0
- package/dist/chunks/{CustomHtmlCodeWindow-ROUI64CY.js → CustomHtmlCodeWindow-VRZ524JP.js} +1 -1
- package/dist/chunks/{EditorPreviewCheckout-F2HXHGBN.js → EditorPreviewCheckout-3TKWZ44N.js} +1 -1
- package/dist/chunks/SiteEditorProvider-OBXLJM7I.js +1 -0
- package/dist/chunks/chunk-4KN3VTQU.js +7 -0
- package/dist/chunks/{chunk-MU65AZLZ.js → chunk-6ABZ7XWF.js} +1 -1
- package/dist/chunks/{chunk-ESVLXH7T.js → chunk-FNCEZSDY.js} +1 -1
- package/dist/chunks/{chunk-2KEZPQPW.js → chunk-HQFRQZ6J.js} +1 -1
- package/dist/chunks/chunk-J6SPMJBT.js +337 -0
- package/dist/chunks/{chunk-T2LZCAFH.js → chunk-PULBLZRR.js} +1 -1
- package/dist/chunks/{chunk-O3YXHDC6.js → chunk-TVMCJUOE.js} +1 -1
- package/dist/chunks/{fitment-data-X7PIIXMU.js → fitment-data-C2NHZBPR.js} +1 -1
- package/dist/chunks/{section-css-style-Q23EN42Q.js → section-css-style-BECHWIDU.js} +1 -1
- package/dist/contract.js +1 -1
- package/dist/editor/components/HeaderSettingsPanel.js +1 -1
- package/dist/index.js +27 -27
- package/dist/render/built-with.json +1 -1
- package/dist/routine-index.json +1 -1
- package/dist/value-index.json +1 -1
- package/dist/words.d.ts +4 -0
- package/dist/words.js +3 -3
- package/package.json +4 -4
- package/dist/chunks/SiteEditorProvider-B7766ULW.js +0 -1
- package/dist/chunks/chunk-SEA3MICI.js +0 -7
- package/dist/chunks/chunk-WWQ5LOLU.js +0 -337
- /package/dist/chunks/{chunk-AUQZLQEO.js → chunk-7UJXVH57.js} +0 -0
- /package/dist/chunks/{chunk-NMB6BD73.js → chunk-EZ5QLDA5.js} +0 -0
- /package/dist/chunks/{chunk-ESVLXH7T.js.LEGAL.txt → chunk-FNCEZSDY.js.LEGAL.txt} +0 -0
- /package/dist/chunks/{chunk-WWQ5LOLU.js.LEGAL.txt → chunk-J6SPMJBT.js.LEGAL.txt} +0 -0
- /package/dist/chunks/{chunk-KFZLLS45.js → chunk-UV27QVUD.js} +0 -0
|
@@ -1,337 +0,0 @@
|
|
|
1
|
-
import{$ as Jd,D as pk,E as uk,F as Kd,G as mk,H as Sk,I as br,J as bk,K as wk,L as Ck,M as ot,N as qd,O as ko,P as ie,R as Vd,S as wr,T as Yd,X as kk,Y as Xd,Z as Cr,_ as vk,a as Go,b as qs,ba as Rv,c as Rd,d as gn,e as Vs,f as GC,fa as Kv,g as yn,h as Dd,ha as qv,ia as Of,ja as hT,ka as IT,r as Qs}from"./chunk-O3YXHDC6.js";import{a as Zv,d as cf,e as tt,f as pf,g as uf,h as If,l as Bx}from"./chunk-NMB6BD73.js";import{$ as hn,$a as ox,$c as fx,$e as rP,$f as kP,$g as $P,$j as lT,A as iC,Aa as RC,Ab as bn,Ac as Uk,Ad as wv,Ae as wt,Af as uP,Ag as or,B as dC,Ba as DC,Bb as Zs,Bc as Ht,Bd as Cv,Be as Te,Bf as mP,Bg as Cx,Bj as En,Bk as gT,C as Zo,Ca as NC,Cc as $e,Cd as kv,Ce as Xv,Cf as xP,Cg as yf,Ck as Ax,D as fC,Da as MC,Dc as kr,Dd as px,Df as hP,Dg as BP,Dj as tT,E as cC,Ea as HC,Eb as nx,Ec as lx,Ed as vv,Eg as LP,Ek as yT,F as pC,Fa as WC,Fb as wn,Fc as jk,Fd as ux,Ff as IP,Fg as RP,Fk as ST,G as uC,Ga as gr,Gb as Gd,Gc as Gk,Gd as Pv,Ge as mx,Gg as DP,Gk as bT,H as mC,Ha as $C,Hb as dk,Hc as Kk,Hd as Tv,Hg as NP,Hk as wT,I as xC,Ib as fk,Ic as af,Id as Ov,Ik as CT,J as hC,Ja as zC,Jb as ck,Jc as ol,Jd as Wt,Je as nl,Jk as kT,Ka as Nd,Kb as Zd,Kc as qk,Kd as Ev,Kg as MP,Kj as rT,L as IC,La as Ys,Lb as Tk,Lc as Vk,Ld as na,Lg as HP,Lj as Ox,M as gC,Ma as Md,Mb as Qd,Mc as Yk,Md as _v,Mf as gP,Mj as aT,N as yC,Na as KC,Nb as sx,Nc as nf,Nd as vn,Ne as Jv,Nf as yP,Nj as nT,O as Ed,Ob as ef,Oc as Xk,Oe as xx,Of as SP,Oi as ia,P as SC,Pc as Jk,Pd as Qt,Pe as Qv,Pf as yx,Pj as vf,Q as bC,Qc as ix,Qd as Av,Qf as bP,Qi as tr,Qj as _n,Ra as qC,Rc as Zk,Rd as al,Rf as wP,Rj as An,Sa as VC,Sc as dx,Sd as Fv,Sf as Sx,Sh as KP,Sj as il,Ta as Xs,Tb as Cn,Td as sa,Tg as Sf,Th as qP,Tj as Fn,Uc as Qk,Ud as Bv,Uj as sT,V as Vm,Va as Sn,Vc as ev,Wa as YC,Wb as Ok,Wc as ov,Wd as sf,We as eP,Wf as er,X as js,Xa as Hd,Xb as Ek,Xc as tv,Xd as Pr,Xe as oP,Xi as Cf,Y as _d,Ya as XC,Yb as _k,Yc as rv,Yd as Lv,Ye as mf,Yf as Pn,Z as Ao,Za as Js,Zb as el,Zc as ta,Ze as tP,Zg as WP,Zi as XP,_ as Ym,_a as JC,_c as av,_e as hx,_f as CP,a as _o,aa as wC,ab as ZC,ad as nv,af as aP,ag as gf,ak as iT,al as Fx,b as un,ba as CC,bb as tx,bd as sv,bf as nP,bg as Tr,bi as VP,ca as kC,cb as QC,cd as lv,cf as sP,cg as vP,ci as YP,d as jw,da as vC,db as rx,dd as iv,df as xf,e as jm,ea as PC,ed as dv,ee as Dv,eg as Tn,f as Gw,fa as Xm,fb as ek,fd as vr,ff as lP,g as f,gb as ok,gd as tl,gl as vT,h as Dt,ha as TC,hd as ra,he as Nv,hk as Ex,hl as PT,i as xn,ia as Ad,ib as Wd,ic as kn,id as fv,ie as Mv,if as Ix,il as Ef,j as zs,jb as tk,jc as Mt,je as Hv,jh as kx,jj as JP,jk as dT,jl as TT,k as Do,kb as rk,kc as Ak,kd as aa,kh as bf,kk as fT,l as Us,lb as ak,lc as Fk,ld as rl,lh as la,lk as cT,ll as Bn,mb as nk,mc as Bk,md as cv,mh as wf,mj as ZP,ml as _f,n as Qw,nb as $d,nc as Lk,nd as pv,nf as iP,ng as Or,nj as kf,nk as pT,o as eC,ob as sk,oc as Rk,oe as No,of as dP,og as PP,oh as zP,oj as vx,p as oC,pc as of,pd as uv,pe as eo,pf as hf,pg as TP,ph as UP,pj as QP,pk as _x,q as tC,qc as tf,qd as mv,qf as fP,qg as OP,qh as jP,qj as eT,r as rC,rb as lk,rc as Dk,rd as xv,re as lf,rf as cP,rh as GP,rj as Px,s as aC,sb as yr,se as Wv,t as nC,tb as zd,tc as Nk,td as hv,te as $v,tj as On,u as Od,ub as Ud,uc as Mk,ud as Iv,ue as zv,ug as EP,uj as oT,v as oa,va as AC,vb as ik,vc as Hk,vd as gv,ve as Uv,vg as _P,vk as Pf,wa as FC,wb as Co,wc as rf,wd as yv,we as df,wg as AP,wk as Tf,x as qm,xa as BC,xb as ax,xc as Wk,xd as cx,xe as jv,xg as bx,xj as Tx,xk as uT,y as sC,ya as LC,yb as jd,yc as $k,yd as Sv,ye as Gv,yf as pP,yg as FP,yj as ll,yk as mT,z as lC,za as Qm,zb as Nt,zc as zk,zd as bv,ze,zf as gx,zg as wx,zk as xT}from"./chunk-SEA3MICI.js";import{a as Jw,b as Td,c as Zw,g as Pk}from"./chunk-KFZLLS45.js";import{$a as Cb,$c as Yt,$d as rw,$e as pw,$g as Pd,A as ao,Ab as Ns,Ad as Rm,Ae as sw,B as on,Bb as Nb,Ca as ye,Cd as Jb,Ce as Mm,D as Ls,Dd as pd,E as Qi,Eg as Dw,F as Ft,Fb as dd,Fd as Jo,Fg as Nw,G as tn,Ga as Xo,Gc as Ub,Gd as Ro,Ge as xd,Gf as Sw,Gg as Mw,H as We,Ha as gt,Hd as Qe,He as hd,Hg as Hw,I as qe,Ia as hm,Ic as _m,Id as Lt,Ie as lw,Ih as ex,J as rn,Ja as Im,Jd as Jt,Je as Id,Jf as Zt,Jh as In,K as ed,Kb as Mb,Kd as bt,Ke as gd,Kg as Ww,Kh as UC,L as $,La as gm,Ld as dn,Le as iw,Lh as Qo,M as mo,Ma as ym,Md as Zb,Me as dw,Mh as et,N as XS,Nd as fn,Ne as yd,Ng as $w,Nh as Ld,O as JS,Od as Qb,Oe as Sd,Og as zw,Oh as jC,Pb as fd,Pc as jb,Pe as ea,Pf as bw,Ph as Ks,Q as ZS,Qa as Sm,Qe as fw,Qg as Uw,R as od,Ra as xb,S as QS,Sa as hb,Sb as Hb,Sd as Qr,Sg as Kw,T as Xr,Ta as Ge,Tb as Wb,Td as ew,Tg as qw,U as eb,Ua as Ib,Ud as ow,Ue as cw,V as ob,Va as sd,Vb as $b,Vd as cn,Vf as ww,Vg as Ir,W as Rs,Wa as gb,Wc as z,Wd as Hs,Wf as Cw,Wh as xk,X as mm,Xa as yb,Xb as Tm,Xc as oe,Xd as Ws,Xe as Rt,Xf as kw,Xg as Vw,Y as Ce,Ya as Sb,Yc as Am,Yd as Dm,Ye as $s,Yf as vw,Yg as Gm,Z as j,Za as bb,Zc as A,Ze as Hm,Zg as Yw,_ as tb,_a as wb,_c as wo,_d as tw,_e as Wm,_g as Km,a as en,aa as td,ab as kb,ad as Gb,ae as aw,af as uw,ag as Pw,b as uo,ba as rb,bb as vb,bd as H,bf as bd,bg as Tw,bh as Xw,bi as hk,c as ro,ca as rd,cb as ld,cd,ce as nw,cf as mw,ci as Sr,d as Vt,da as ab,db as id,dd as Lo,dg as Ow,ea as nb,eb as Pb,ec as Om,ed as Kb,ee as ud,eg as Ew,ei as Ik,f as jo,fa as xm,fb as Tb,fd as St,ff as xw,fg as kd,fi as gk,g as Bs,ga as sb,gd as Bt,ge as md,gf as wd,gg as _w,gi as yk,h as zS,ha as lb,hb as Ob,hd as Fm,hf as hw,hg as vd,i as US,ia as ib,ib as Eb,id as xr,if as $m,ig as Um,j as jS,jb as bm,jd as Xt,jf as Iw,k as GS,kb as _b,kd as qb,kf as gw,ki as vo,la as db,lb as Ab,lf as Cd,lg as Aw,ma as fb,mb as wm,md as Ae,mf as pn,mg as Fw,na as cb,nb as nn,nd as Zr,nf as mn,o as KS,ob as Jr,od as Ms,of as hr,oi as sl,pa as pb,pb as Cm,pd as sn,pg as Bw,ph as Jm,qb as km,qd as Vb,qg as Lw,qh as Fd,ra as ub,rb as vm,rd as Bm,rh as OC,s as qS,sa as ad,sb as Fb,sd as ln,sf as yw,sh as Zm,ta as mb,tb as Bb,tc as Em,td as Lm,tg as Rw,th as EC,u as De,ua as nd,ub as Lb,v as VS,vb as Pm,vc as zb,vh as Bd,w as Zi,wb as Rb,wh as _C,x as YS,xb as yt,xd as Yb,xh as Gs,ya as Ds,yb as Db,yd as Xb,z as Pe,za as an,ze as Nm,zf as zm}from"./chunk-MU65AZLZ.js";import{c as Vv,d as Yv,e as ff}from"./chunk-AUQZLQEO.js";import{jsx as Lx,Fragment as h4,jsxs as I4}from"react/jsx-runtime";import{createContext as g4,useContext as y4}from"react";var S4={mirrorHostStyles:!0,css:null,fontHrefs:[]},OT=g4(S4);function iae({value:e,children:o}){return Lx(OT.Provider,{value:e,children:o})}function dl(){return y4(OT)}function ET(){let{css:e,fontHrefs:o}=dl();return I4(h4,{children:[o.map(t=>Lx("link",{rel:"stylesheet",href:t},t)),e?Lx("style",{"data-sf-canvas-css":"",children:e}):null]})}import{jsx as b4}from"react/jsx-runtime";import{createContext as w4,useContext as C4}from"react";var _T=w4(void 0);function pae({metadata:e,children:o}){return b4(_T.Provider,{value:e,children:o})}var AT=()=>C4(_T);import{jsx as io,Fragment as Q5,jsxs as Vi}from"react/jsx-runtime";import{useCallback as Es,useEffect as Gt,useRef as Lre,useState as Y5}from"react";import{SettingsSwitch as Rre}from"efficient-easel/panel";import{PagesIcon as Dre,StylesIcon as Nre}from"efficient-easel/rail";import{PaletteIcon as Mre}from"efficient-shell/icons/efficient";import{Subtree as Hre,TreeRow as e4}from"efficient-easel/tree";import{useEasel as o4}from"efficient-easel/easel";import{toItemSelector as Wre}from"efficient-easel/node-ops";import{useEaselStrings as t4}from"efficient-easel/strings";import{createContext as k4,useContext as v4}from"react";var Rx=k4(!1),xae=()=>v4(Rx);import{useMemo as P4,useRef as T4}from"react";import{useEaselApi as O4}from"efficient-easel/easel";import{useSectionOps as E4}from"efficient-easel/screen/lib/document/use-section-ops";function Af(){let e=O4(),o=E4(),t=T4(o);return t.current=o,P4(()=>({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 X4}from"efficient-easel/draw";import{insertAt as J4,moveTo as Z4,removeAt as Q4}from"efficient-easel/fields";import{useSyncExternalStore as U4}from"react";import{isNodeList as FT}from"efficient-easel/data";var BT="Flex";function Ln(e,o){return Rt(e)?typeof e?.[jo]=="string"?Dx(o?.[jo]):"":Dx(e?.[jo])}var Dx=e=>typeof e=="string"?e.trim():"",_4=e=>e.type===ao&&Array.isArray(e.props?.[Mm])&&e.props[Mm].some(o=>Dx(o?.[jo])!==""),A4=new Intl.NumberFormat("en-US");function F4(e){return/^\d+$/.test(e)?A4.format(Number(e)):e}function vae(e,o){let t=o?o.find(r=>r.key===e)?.value:qS(Bs).find(r=>r.key===e)?.value;return t===void 0?null:F4(t)}var B4={[jo]:"any"};function Nx(e,o=!1){let t=e.props;if(!t)return{node:e,names:!1};let r=e.type==="Text"&&(Ln(t)!==""||o&&Ln(t,B4)!==""),a=o||_4(e),n=qe(e,l=>We(l,i=>{let d=Nx(i,a);return d.names&&(r=!0),d.node})).props;if(e.type!==BT)return{node:n===t?e:{...e,props:n},names:r};let s=De(n);if(r&&!s&&(n={...n,[ro]:Bs}),!r&&s===Bs){let{[ro]:l,...i}=n;n=i}return{node:n===t?e:{...e,props:n},names:!1}}function LT(e,o,t){for(let r of e){if(r?.props?.id===o)return t;for(let a of tn(r??{})){let n=LT(a,o,r.type===BT?r:t);if(n!==void 0)return n}}}function Pae(e,o){if(!FT(e))return!0;let t=LT(e,o,null);if(t===void 0)return!0;if(t===null)return!1;let r=De(t.props);return!r||r===Bs}function RT(e){let o=e?.content;if(!FT(o))return e;let t=o.map(r=>Nx(r));return t.every((r,a)=>r.node===o[a])?e:{...e,content:t.map(r=>r.node)}}function DT(e){return Nx(e).node}import{decodePartId as j4}from"efficient-easel/draw";function Rn(e,o){let t=Mk(e);return t?.control==="textList"?o.rowKey===(t.itemKey??"text")?fT(t,o.index):null:Hk(e)?.[o.rowKey]??null}function Ff(e,o,t){let r=e.node.props,{key:a,row:n}=Mt(e.propKey),s=n?$k(r,a,n,e.kind,o):Nk(r,a,e.kind,o);return s?(t(e.zone,e.index,{...e.node,props:s}),!0):!1}import{readHidable as HT}from"efficient-easel/draw";import{parseOption as L4}from"efficient-shell/format";var Mx=e=>String(e+1).padStart(2,"0"),R4=[{label:"01 \xB7",value:"two-digit"},{label:"1.",value:"plain"}],Hx="two-digit",NT=e=>L4(R4,Hx,e),Bf=(e,o)=>e==="plain"?`${o+1}.`:Mx(o);var zx="Contents",Wx="Flex",MT="Text",D4="numberForm",N4="_contentsEntries",M4="_kickerNumber",WT="data-sf-kicker-number",H4=e=>HT(e).text.trim(),$T=e=>sa(e?.anchor),$x=e=>String(e.props?.id??""),W4=e=>!HT(e.props?.text).hidden&&!Ln(e.props)&&!Rt(e.props),fl=e=>tn(e);function zT(e){for(let o of fl(e))for(let t of o){if(Qt(t.props??{}))continue;if(t.type===MT&&W4(t))return t;if(t.type===MT)continue;let r=zT(t);if(r)return r}}function UT(e){return fl(e).some(o=>o.some(t=>t&&!Qt(t.props??{})&&(t.type===zx||UT(t))))}var jT=e=>e.type===Wx&&Pn(Wx,e.props?.direction)==="row";function GT(e){return fl(e).some(o=>o.some(t=>t&&!Qt(t.props??{})&&(t.type===zx||!jT(t)&>(t))))}function $4(e){let o=[],t=(r,a)=>{for(let n of r){if(!n||Qt(n.props??{}))continue;if(n.type===zx){a.open={contents:n,sections:a.waiting??[]},a.waiting=null,o.push(a.open);continue}if(jT(n)&>(n)){let l={inRow:!0,open:null,waiting:[]};for(let i of fl(n))t(i,l);a.inRow||(a.open=null);continue}let s=a.open?.sections??a.waiting;if(n.type===Wx&&$T(n.props)&&s&&!UT(n)){s.push({box:n,kicker:zT(n)});continue}for(let l of fl(n))t(l,a)}};return t(e,{inRow:!1,open:null,waiting:null}),o}function z4(e){return e.map(o=>({label:o.kicker?an(H4(o.kicker.props?.text)):"",anchor:$T(o.box.props)}))}function Ux(e){let o=e?.length?$4(e):[];if(!o.length)return null;let t=new Map,r=new Map;for(let a of o){let n=$x(a.contents);n&&t.set(n,z4(a.sections));let s=NT(a.contents.props?.[D4]);a.sections.forEach((l,i)=>{let d=l.kicker?$x(l.kicker):"";d&&r.set(d,Bf(s,i))})}return{entries:t,numbers:r}}var Gae=e=>e.endsWith(".")?`${e} `:`${e} \xB7 `;function KT(e){let o=e;if(!o?.content?.length)return e;let t=Ux(o.content);if(!t)return e;let{entries:r,numbers:a}=t,n=s=>{let l=qe(s,h=>We(h,n)),i=l.props??{},d=l!==s,c=$x(s),x=c?r.get(c):void 0;x&&(i={...i,[N4]:x},d=!0);let m=c?a.get(c):void 0;return m&&(i={...i,[M4]:m},d=!0),d?{...s,props:i}:s};return{...o,content:o.content.map(n)}}var G4=`[${WT}]`,K4=["bold","italic","underline","strike","link","sup","sub"],q4=["bullet","number"];function Kx(e,o){return e?[...K4,...o?q4:[]]:[]}function qT(e,o){let t=j4(e);if(!t?.propKey)return null;let{nodeId:r,propKey:a}=t,n=o.getItemById(r),s=o.getSelectorForId(r);if(!n||!s)return null;let{key:l,row:i}=Mt(a),d=o.components[n.type]?.fields?.[l],c=i?Rn(d,i):d,x=of(c);if(!x)return null;let m=n.props??{};if(KP(m)!==null||!i&&bd(n.type,m,l)||n.type==="Text"&&l==="text"&&Ln(m)||i&&!(Array.isArray(m[l])&&i.index<m[l].length))return null;let h=i?rf(m[l],i):m[l];return{node:n,selector:s,propKey:a,kind:x,stored:h,offPage:Cf(c),panelOnly:Rk(c)}}function Lf(e,o){let t=qT(e,o);if(!t)return null;let{text:r,hidden:a}=ia(t.stored);if(!Jk({offPage:t.offPage,hidden:!!a,panelOnly:t.panelOnly}))return null;let n=tf(t.kind);return{partId:e,value:r,rules:ad,multiline:n,skip:G4,offered:Kx(t.kind!=="plainText",n),write:s=>{let l=qT(e,o);l&&Ff({node:l.node,propKey:l.propKey,kind:l.kind,zone:l.selector.zone,index:l.selector.index},s,o.replace)}}}function qx(e,o,t){return e?.isConnected&&e.getAttribute($e)===t?e:o?.querySelector(`[${$e}="${Rf(t)}"]`)??null}function Rf(e){return e.replace(/["\\]/g,"\\$&")}function VT(e){let o=e.activeElement;return o?o.tagName==="IFRAME"||!!o.closest(".es-canvas"):!1}var jx=null,Gx=new Set;function V4(){return jx}function Vx(e){if(e!==jx){jx=e;for(let o of Gx)o()}}function Y4(e){return Gx.add(e),()=>{Gx.delete(e)}}function YT(){return U4(Y4,V4,()=>null)}function XT(e,o){if(e.outer)return null;let t=o.getItemById(e.ownerId);if(!t)return null;let r=iw(t.type);return!r||De(t.props)?null:{node:t,rows:r}}function e6(e,o){let t=XT(e,o),r=o.getItemById(e.nodeId);if(!t||!r)return null;let a=mw(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:X4(e.ownerId,kn(t.rows,{index:e.index,rowKey:a}))}function Df(e,o){let t=e6(e,o);return t?Lf(t,o):null}function JT(e,o){return Df(e,o)?.value}function ZT(e,o){let t=Df(e,o);return t?(t.write(e.text),!0):!1}function QT(e,o){let t=XT(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=J4(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=Z4(n,s,i);break}case"delete":l=Q4(n,s);break;default:return!1}return o.replace(r.zone,r.index,{...t.node,props:{...a,[t.rows]:l}}),!0}import{jsx as ve,Fragment as YX,jsxs as Eu}from"react/jsx-runtime";import{Fragment as XX,useEffect as IM,useMemo as gM,useRef as JX,useState as Ha}from"react";import{useScreenDocument as CM}from"efficient-easel/screen/components/ScreenDocumentContext";import{UiIcon as Ty}from"efficient-easel/draw/client";import ZX from"efficient-easel/screen/components/SidePanelHead";import{InspectorIconButton as QX}from"efficient-easel/chrome";import{Input as eJ,PopupMenu as oJ,PopupMenuItem as yM,toast as SM}from"efficient-shell/ui";import{LayersTree as tJ,TreeGroupLabel as rJ,TreeRow as bM,TreeRowAction as _u}from"efficient-easel/tree";import{AddIcon as aJ,DuplicateIcon as nJ,PageIcon as sJ,SettingsIcon as lJ}from"efficient-easel/icons";import{PagesIcon as iJ}from"efficient-easel/rail";import{useEaselHost as dJ}from"efficient-easel/screen/lib/host";import{useEaselSession as Oy}from"efficient-easel/screen/lib/session-context";import{useCallback as Nf,useEffect as o6,useSyncExternalStore as t6}from"react";import{useScreenDocument as r0}from"efficient-easel/screen/components/ScreenDocumentContext";var e0=new WeakMap;function cl(e){let o=e0.get(e);return o||(o={rows:null,loading:null,listeners:new Set},e0.set(e,o)),o}function Yx(e,o){e.rows=o;for(let t of e.listeners)t()}var Mf=new Set;function Hf(e,o){o?Mf.add(e):Mf.delete(e)}function o0(e){let o=cl(e),t=e.listPages().then(r=>Yx(o,Mf.size?r.filter(a=>!Mf.has(a.id)):r),()=>Yx(o,[])).finally(()=>{o.loading===t&&(o.loading=null)});return o.loading=t,t}var t0=()=>null,r6=()=>()=>{};function pl(){let{adapter:e,ready:o}=r0(),t=Nf(l=>{let{listeners:i}=cl(e);return i.add(l),()=>i.delete(l)},[e]),r=Nf(()=>cl(e).rows,[e]),a=t6(o?t:r6,o?r:t0,t0);o6(()=>{if(!o)return;let l=cl(e);l.rows===null&&!l.loading&&o0(e)},[e,o]);let n=Nf(()=>o?o0(e):Promise.resolve(),[e,o]),s=Nf(l=>Yx(cl(e),l),[e]);return{rows:a,reload:n,setRows:s,getRows:r}}function a6(e,o){return e?.find(t=>t.slug===o)?.label?.trim()||`/${o}`}function a0(){let{currentSlug:e}=r0(),{rows:o}=pl();return a6(o,e)}import{canDuplicatePage as fJ,DuplicatePageDialog as cJ}from"efficient-easel/page-copy";import{jsx as Vo,jsxs as Cy}from"react/jsx-runtime";import{useEffect as AX,useId as FX,useMemo as BX,useRef as LX,useState as ky}from"react";import{useScreenDocument as RX}from"efficient-easel/screen/components/ScreenDocumentContext";import{useEaselSession as DX}from"efficient-easel/screen/lib/session-context";import{uniqueSlug as fM}from"efficient-easel/page-copy";import{AddIcon as NX}from"efficient-easel/icons";import{Dialog as MX,EmptyState as HX,Grid as WX,LoadingSpinner as $X,Paragraph as zX,SidebarActionButton as UX,SidebarLayout as jX,SidebarNavItem as vy,Title as GX,toast as cM}from"efficient-shell/ui";import{jsx as vt,jsxs as LL}from"react/jsx-runtime";import{useMemo as LK,useState as RK}from"react";import{CanvasFrame as DK}from"efficient-easel/easel";import{Button as NK,Card as MK,FitFrame as HK,Text as WK}from"efficient-shell/ui";import{jsx as d0,Fragment as h6,jsxs as I6}from"react/jsx-runtime";import{useEffect as f0,useLayoutEffect as g6}from"react";var Wf="data-theme",n0="light";function n6(e){return e.getAttribute(Wf)===n0?"light":"dark"}function s6(e,o){return n6(e)===o?!1:(o==="light"?e.setAttribute(Wf,n0):e.removeAttribute(Wf),!0)}function l6(e){return Bx(e).getItem(zm)}function Sne(e,o){Bx(e).setItem(zm,o)}function i6(e,o,t=new Date().getHours()){return Sw({mode:o.mode,override:l6(e),switchShown:o.switchShown,hour:t})}function s0(e,o){let t=e.documentElement;if(!t)return()=>{};let r=()=>s6(t,i6(e,o));r();let a=e.defaultView?.MutationObserver;if(!a)return()=>{};let n=new a(r);return n.observe(t,{attributes:!0,attributeFilter:[Wf]}),()=>n.disconnect()}var d6="style";function f6(e,o){let t=vd(o),r=!1;for(let a of _w){let n=t[a]??"";e.style.getPropertyValue(a)!==n&&(n?e.style.setProperty(a,n):e.style.removeProperty(a),r=!0)}return r}function l0(e,o){let t=e.body;if(!t)return()=>{};let r=()=>f6(t,o);r();let a=e.defaultView?.MutationObserver;if(!a)return()=>{};let n=new a(r);return n.observe(t,{attributes:!0,attributeFilter:[d6]}),()=>n.disconnect()}import{VIEW_DESKTOP_MIN as c6,VIEW_TABLET_MIN as p6}from"efficient-easel/screen/lib/content/view-tiers";var rr={fit:"data-fit",fitTablet:"data-fit-tablet",fitPhone:"data-fit-phone",min:"data-fit-min",minTablet:"data-fit-min-tablet",minPhone:"data-fit-min-phone",edge:"data-fit-edge"},Ko=rr,u6=e=>e.flatMap(o=>[`[${o}] p`,`[${o}] li`]).join(","),m6=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(u6([Ko.fit,Ko.fitTablet,Ko.fitPhone]))};
|
|
8
|
-
var CANDIDATES = SELECTOR + "," + SHRINK_BODY;
|
|
9
|
-
var MIN_SCALE = 0.3, MIN_PX = 16, SLACK = 1, PHONE_BELOW = ${yt};
|
|
10
|
-
var TABLET_MIN = ${p6}, DESKTOP_MIN = ${c6};
|
|
11
|
-
|
|
12
|
-
// A block's own answer (lib/content/block-size, the wrapper's attributes):
|
|
13
|
-
// the fit "wrap" | "shrink" | "line" | "ellipsis" and the floor, each with a tablet and a
|
|
14
|
-
// phone twin. From 1100 the desktop's; from the tablet line (800 for a holder
|
|
15
|
-
// in a Box, marked edge; 720 outside one) the tablet's where it has one;
|
|
16
|
-
// under it the phone's, else the tablet's, else the desktop's. With no
|
|
17
|
-
// tablet answer the phone's is read under 800, as before (the edge moves with
|
|
18
|
-
// F1). With none, a heading shrinks and body text wraps, as always.
|
|
19
|
-
// A holder with any tablet attribute takes the three views (its line and 1100)
|
|
20
|
-
// for its fit AND its floor together; one with none keeps the 800 edge.
|
|
21
|
-
var TABLET_ATTRS = [${JSON.stringify(Ko.fitTablet)}, ${JSON.stringify(Ko.minTablet)}];
|
|
22
|
-
function own(el, attr, tabletAttr, phoneAttr) {
|
|
23
|
-
var holder = el.closest("[" + attr + "],[" + tabletAttr + "],[" + phoneAttr + "]");
|
|
24
|
-
if (!holder) return null;
|
|
25
|
-
var w = win.innerWidth, d = holder.getAttribute(attr);
|
|
26
|
-
if (w >= DESKTOP_MIN) return d;
|
|
27
|
-
var t = holder.getAttribute(tabletAttr), p = holder.getAttribute(phoneAttr);
|
|
28
|
-
if (w < (holder.hasAttribute(${JSON.stringify(Ko.edge)}) ? PHONE_BELOW : TABLET_MIN)) return p || t || d;
|
|
29
|
-
if (holder.hasAttribute(TABLET_ATTRS[0]) || holder.hasAttribute(TABLET_ATTRS[1])) return t || d;
|
|
30
|
-
return (w < PHONE_BELOW && p) || d;
|
|
31
|
-
}
|
|
32
|
-
function modeOf(el) {
|
|
33
|
-
var mode = own(el, ${JSON.stringify(Ko.fit)}, ${JSON.stringify(Ko.fitTablet)}, ${JSON.stringify(Ko.fitPhone)});
|
|
34
|
-
if (mode === "wrap" || mode === "shrink") return mode;
|
|
35
|
-
// One line and Shorten (stored "ellipsis", which cuts its words with "..."):
|
|
36
|
-
// the block keeps its words at their set size, nothing shrinks.
|
|
37
|
-
if (mode === "line" || mode === "ellipsis") return "wrap";
|
|
38
|
-
return el.matches(SELECTOR) ? "shrink" : "wrap";
|
|
39
|
-
}
|
|
40
|
-
function floorOf(el, set) {
|
|
41
|
-
var raw = own(el, ${JSON.stringify(Ko.min)}, ${JSON.stringify(Ko.minTablet)}, ${JSON.stringify(Ko.minPhone)});
|
|
42
|
-
var min = parseFloat(raw);
|
|
43
|
-
// A Min font size in vw (block-size.ts): a share of the window's width.
|
|
44
|
-
if (/vw$/.test(String(raw))) min = min * win.innerWidth / 100;
|
|
45
|
-
return min >= 0 ? min : Math.max(set * MIN_SCALE, MIN_PX);
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
function measure(el) {
|
|
49
|
-
var widest = 0, current = 0, last = null, split = false, lastBlock = null;
|
|
50
|
-
function blockOf(n) {
|
|
51
|
-
for (var p = n.parentElement; p && p !== el; p = p.parentElement) {
|
|
52
|
-
var d = win.getComputedStyle(p).display;
|
|
53
|
-
if (d.indexOf("inline") !== 0 && d !== "contents") return p;
|
|
54
|
-
}
|
|
55
|
-
return el;
|
|
56
|
-
}
|
|
57
|
-
function close() { if (current > widest) widest = current; current = 0; last = null; }
|
|
58
|
-
var walker = doc.createTreeWalker(el, 5), range = doc.createRange(), node;
|
|
59
|
-
while ((node = walker.nextNode())) {
|
|
60
|
-
if (node.nodeType === 1) {
|
|
61
|
-
if (node.tagName === "BR" || node.tagName === "WBR") close();
|
|
62
|
-
continue;
|
|
63
|
-
}
|
|
64
|
-
var block = blockOf(node);
|
|
65
|
-
if (block !== lastBlock) close();
|
|
66
|
-
lastBlock = block;
|
|
67
|
-
var re = /(\S+)|(\s+)/g, m;
|
|
68
|
-
while ((m = re.exec(node.data))) {
|
|
69
|
-
if (m[2]) { close(); continue; }
|
|
70
|
-
range.setStart(node, m.index);
|
|
71
|
-
range.setEnd(node, m.index + m[0].length);
|
|
72
|
-
var rects = range.getClientRects();
|
|
73
|
-
for (var i = 0; i < rects.length; i++) {
|
|
74
|
-
var r = rects[i];
|
|
75
|
-
if (r.width <= 0) continue;
|
|
76
|
-
current += r.width;
|
|
77
|
-
if (last && r.top > last.top + last.height / 2) split = true;
|
|
78
|
-
last = r;
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
close();
|
|
83
|
-
return { widest: widest, split: split };
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
function lineWidth(el) {
|
|
87
|
-
var cs = win.getComputedStyle(el);
|
|
88
|
-
return el.getBoundingClientRect().width - parseFloat(cs.paddingLeft) - parseFloat(cs.paddingRight)
|
|
89
|
-
- parseFloat(cs.borderLeftWidth) - parseFloat(cs.borderRightWidth);
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
// ⚠️ THE HEADING ELEMENT IS NEVER TOUCHED — no style="", no data-*. This
|
|
93
|
-
// runs before React hydrates, and React 19 in development reports ANY
|
|
94
|
-
// attribute that differs from what it rendered ("a tree hydrated but some
|
|
95
|
-
// attributes didn't match"): first our inline font-size on the hero (which
|
|
96
|
-
// React owns via --heading-size), then, when that moved to a data-sf-fit
|
|
97
|
-
// attribute, the attribute itself. So the fitted size lives only in this
|
|
98
|
-
// script's own stylesheet, in <head>, addressed to each heading by its
|
|
99
|
-
// POSITION (":root>*:nth-child(2)>…"). A position goes stale when the page's
|
|
100
|
-
// structure changes, so the rules are rewritten in the MutationObserver
|
|
101
|
-
// callback, which runs before the next paint. !important so the size also
|
|
102
|
-
// beats a part's own inline size.
|
|
103
|
-
var head = doc.head || doc.documentElement;
|
|
104
|
-
var fitEl = doc.createElement("style");
|
|
105
|
-
fitEl.id = "storefront-fit-words-sizes";
|
|
106
|
-
head.appendChild(fitEl);
|
|
107
|
-
// heading -> [[element, fitted size]]: the heading and each Text part inside
|
|
108
|
-
// it that holds its own size (a span [data-sf-part-styled]), e.g.
|
|
109
|
-
// [[h2, "43.8px"], [span, "43.8px"]]. Sizing the heading alone leaves such
|
|
110
|
-
// a part at its own size, and the word still breaks (card C25, Spec Table).
|
|
111
|
-
var fitted = new Map();
|
|
112
|
-
|
|
113
|
-
function pathOf(el) {
|
|
114
|
-
var parts = [];
|
|
115
|
-
for (var e = el; e && e.parentElement; e = e.parentElement) {
|
|
116
|
-
var i = 1, s = e;
|
|
117
|
-
while ((s = s.previousElementSibling)) i++;
|
|
118
|
-
parts.unshift("*:nth-child(" + i + ")");
|
|
119
|
-
}
|
|
120
|
-
return ":root>" + parts.join(">");
|
|
121
|
-
}
|
|
122
|
-
function writeRules() {
|
|
123
|
-
var css = "";
|
|
124
|
-
fitted.forEach(function (sizes, el) {
|
|
125
|
-
if (!el.isConnected) { fitted.delete(el); return; }
|
|
126
|
-
for (var i = 0; i < sizes.length; i++) css += pathOf(sizes[i][0]) + "{font-size:" + sizes[i][1] + " !important}";
|
|
127
|
-
});
|
|
128
|
-
if (fitEl.textContent !== css) fitEl.textContent = css;
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
function unfit(el) {
|
|
132
|
-
if (fitted.delete(el)) writeRules();
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
function fits(el) {
|
|
136
|
-
var m = measure(el);
|
|
137
|
-
return !m.split && m.widest <= lineWidth(el) + SLACK;
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
function fit(el) {
|
|
141
|
-
unfit(el);
|
|
142
|
-
if (modeOf(el) !== "shrink") return; // the block's own Wrap
|
|
143
|
-
if (lineWidth(el) <= 0) return; // hidden, or not laid out yet
|
|
144
|
-
if (fits(el)) return;
|
|
145
|
-
var set = parseFloat(win.getComputedStyle(el).fontSize);
|
|
146
|
-
if (!set) return;
|
|
147
|
-
var floor = floorOf(el, set);
|
|
148
|
-
if (floor >= set) return;
|
|
149
|
-
function size(px) { return Math.floor(px * 10) / 10 + "px"; }
|
|
150
|
-
// The SEARCH tries sizes on the element's own style and then puts that
|
|
151
|
-
// attribute back byte for byte (or removes it, if it had none), so nothing
|
|
152
|
-
// is left for React to see. A trial in a stylesheet instead restyles the
|
|
153
|
-
// whole page per step: a full pass on the Hartes home took 75–160ms at 4x
|
|
154
|
-
// CPU that way.
|
|
155
|
-
// Every trial scales the heading AND each part inside it that holds its
|
|
156
|
-
// own size, by the same ratio, so a part keeps its proportion to the
|
|
157
|
-
// heading.
|
|
158
|
-
var carriers = [el].concat(Array.prototype.slice.call(el.querySelectorAll("[data-sf-part-styled]")));
|
|
159
|
-
var base = carriers.map(function (c) { return parseFloat(win.getComputedStyle(c).fontSize) || set; });
|
|
160
|
-
var saved = carriers.map(function (c) { return c.hasAttribute("style") ? c.getAttribute("style") : null; });
|
|
161
|
-
function attempt(px) {
|
|
162
|
-
for (var i = 0; i < carriers.length; i++) carriers[i].style.setProperty("font-size", size(base[i] * px / set), "important");
|
|
163
|
-
}
|
|
164
|
-
function done() {
|
|
165
|
-
for (var i = 0; i < carriers.length; i++) {
|
|
166
|
-
if (saved[i] !== null) carriers[i].setAttribute("style", saved[i]); else carriers[i].removeAttribute("style");
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
attempt(floor);
|
|
170
|
-
if (!fits(el)) { done(); return; } // even the floor does not fit: leave it as set
|
|
171
|
-
var lo = floor, hi = set;
|
|
172
|
-
for (var i = 0; i < 8; i++) {
|
|
173
|
-
var mid = (lo + hi) / 2;
|
|
174
|
-
attempt(mid);
|
|
175
|
-
if (fits(el)) lo = mid; else hi = mid;
|
|
176
|
-
}
|
|
177
|
-
done();
|
|
178
|
-
fitted.set(el, carriers.map(function (c, i) { return [c, size(base[i] * lo / set)]; }));
|
|
179
|
-
writeRules();
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
// What each heading measured right after we last fitted it, so the
|
|
183
|
-
// ResizeObserver below can tell a real change (a font swap, a rotate, a
|
|
184
|
-
// container that moved) from the size change our own write just caused.
|
|
185
|
-
var seen = new WeakMap();
|
|
186
|
-
function remember(el) {
|
|
187
|
-
var b = el.getBoundingClientRect();
|
|
188
|
-
seen.set(el, b.width + "x" + b.height);
|
|
189
|
-
}
|
|
190
|
-
function fitAndRemember(el) { fit(el); remember(el); }
|
|
191
|
-
|
|
192
|
-
// ⚠️ A ResizeObserver, NOT fonts.ready or a resize event, and the reason is
|
|
193
|
-
// WHEN it runs: after layout, BEFORE paint. The web font arriving re-wraps a
|
|
194
|
-
// fitted heading, and fonts.ready resolves only after that frame is painted —
|
|
195
|
-
// measured on the Hartes hero: a 42px jump in 2 of 3 loads. A size change
|
|
196
|
-
// reported here is fitted in the same frame, so the broken state is never
|
|
197
|
-
// drawn. It also covers a container that resizes.
|
|
198
|
-
var ro = new win.ResizeObserver(function (entries) {
|
|
199
|
-
for (var i = 0; i < entries.length; i++) {
|
|
200
|
-
var el = entries[i].target;
|
|
201
|
-
var b = el.getBoundingClientRect();
|
|
202
|
-
if (seen.get(el) === b.width + "x" + b.height) continue; // our own write
|
|
203
|
-
fitAndRemember(el);
|
|
204
|
-
}
|
|
205
|
-
});
|
|
206
|
-
// Its own set, not seen: fitAndRemember has written seen by the
|
|
207
|
-
// time watch runs, so a seen test observed no heading at all, and a
|
|
208
|
-
// heading fitted in the fallback face was never fitted again when the web
|
|
209
|
-
// font arrived (hartesmetal.com.au, "FusionForge." with its "." alone).
|
|
210
|
-
var watched = new WeakSet();
|
|
211
|
-
function watch(el) { if (!watched.has(el)) { watched.add(el); ro.observe(el); } }
|
|
212
|
-
|
|
213
|
-
function fitAll() {
|
|
214
|
-
var els = doc.querySelectorAll(CANDIDATES);
|
|
215
|
-
for (var i = 0; i < els.length; i++) {
|
|
216
|
-
if (modeOf(els[i]) === "shrink") { fitAndRemember(els[i]); watch(els[i]); }
|
|
217
|
-
else unfit(els[i]); // Wrap here (a phone value may differ from the desktop's)
|
|
218
|
-
}
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
var queued = 0, all = false, touched = new Set();
|
|
222
|
-
function run() {
|
|
223
|
-
queued = 0;
|
|
224
|
-
if (all) { all = false; touched.clear(); fitAll(); return; }
|
|
225
|
-
var els = Array.from(touched);
|
|
226
|
-
touched.clear();
|
|
227
|
-
for (var i = 0; i < els.length; i++) {
|
|
228
|
-
if (!els[i].isConnected) continue;
|
|
229
|
-
if (modeOf(els[i]) === "shrink") { fitAndRemember(els[i]); watch(els[i]); }
|
|
230
|
-
else unfit(els[i]);
|
|
231
|
-
}
|
|
232
|
-
}
|
|
233
|
-
function schedule() { if (!queued) queued = win.requestAnimationFrame(run); }
|
|
234
|
-
function scheduleAll() { all = true; schedule(); }
|
|
235
|
-
|
|
236
|
-
fitAll();
|
|
237
|
-
// A backstop only: a font that changes widths without changing any
|
|
238
|
-
// heading's box is not seen by the ResizeObserver.
|
|
239
|
-
if (doc.fonts && doc.fonts.ready) doc.fonts.ready.then(scheduleAll, function () {});
|
|
240
|
-
|
|
241
|
-
// …and the viewport WIDTH, which the ResizeObserver cannot stand in for: a
|
|
242
|
-
// heading sized to its own text (fit-content, a flex item) keeps the SAME box
|
|
243
|
-
// when the phone turns to 844, so nothing reports a change and it would stay
|
|
244
|
-
// shrunk. The probe's rotate check caught exactly that.
|
|
245
|
-
var lastWidth = win.innerWidth;
|
|
246
|
-
function onResize() {
|
|
247
|
-
if (win.innerWidth === lastWidth) return; // a phone's toolbar changing HEIGHT is not our business
|
|
248
|
-
lastWidth = win.innerWidth;
|
|
249
|
-
scheduleAll();
|
|
250
|
-
}
|
|
251
|
-
win.addEventListener("resize", onResize);
|
|
252
|
-
|
|
253
|
-
var mo = new win.MutationObserver(function (records) {
|
|
254
|
-
// Positions first: a node added or removed anywhere can shift the
|
|
255
|
-
// nth-child path of a fitted heading, and this callback runs before paint.
|
|
256
|
-
if (fitted.size) {
|
|
257
|
-
for (var q = 0; q < records.length; q++) if (records[q].type === "childList") { writeRules(); break; }
|
|
258
|
-
}
|
|
259
|
-
for (var i = 0; i < records.length; i++) {
|
|
260
|
-
var r = records[i];
|
|
261
|
-
// A block's text fit (Wrap / Shrink / One line) or Min font size changed in the editor:
|
|
262
|
-
// only a data-fit attribute moved, so every heading is measured again.
|
|
263
|
-
if (r.type === "attributes") { scheduleAll(); continue; }
|
|
264
|
-
var target = r.target.nodeType === 1 ? r.target : r.target.parentElement;
|
|
265
|
-
var owner = target && target.closest(CANDIDATES);
|
|
266
|
-
if (owner) touched.add(owner);
|
|
267
|
-
for (var j = 0; j < r.addedNodes.length; j++) {
|
|
268
|
-
var n = r.addedNodes[j];
|
|
269
|
-
if (n.nodeType !== 1) continue;
|
|
270
|
-
if (n.matches(CANDIDATES)) touched.add(n);
|
|
271
|
-
var inner = n.querySelectorAll(CANDIDATES);
|
|
272
|
-
for (var k = 0; k < inner.length; k++) touched.add(inner[k]);
|
|
273
|
-
}
|
|
274
|
-
}
|
|
275
|
-
if (touched.size) schedule();
|
|
276
|
-
});
|
|
277
|
-
mo.observe(doc.body, {
|
|
278
|
-
childList: true,
|
|
279
|
-
subtree: true,
|
|
280
|
-
characterData: true,
|
|
281
|
-
attributes: true,
|
|
282
|
-
attributeFilter: ${JSON.stringify(Object.values(Ko))},
|
|
283
|
-
});
|
|
284
|
-
|
|
285
|
-
doc.__sfFitWords = function stop() {
|
|
286
|
-
win.removeEventListener("resize", onResize);
|
|
287
|
-
ro.disconnect();
|
|
288
|
-
mo.disconnect();
|
|
289
|
-
if (queued) win.cancelAnimationFrame(queued);
|
|
290
|
-
fitted.clear();
|
|
291
|
-
fitEl.remove();
|
|
292
|
-
delete doc.__sfFitWords;
|
|
293
|
-
};
|
|
294
|
-
// For the probe and for debugging: which headings are fitted, at what size,
|
|
295
|
-
// and the sheet that holds it (disable it to read a heading's set size).
|
|
296
|
-
doc.__sfFitWords.fitted = fitted;
|
|
297
|
-
doc.__sfFitWords.sheet = fitEl;
|
|
298
|
-
// …and the two questions a block's own answer changes, for the guard
|
|
299
|
-
// (scripts/test-block-size.tsx §5): which mode an element is in, and its floor.
|
|
300
|
-
doc.__sfFitWords.modeOf = modeOf;
|
|
301
|
-
doc.__sfFitWords.floorOf = floorOf;
|
|
302
|
-
})(document);`,x6="storefront-fit-words";function i0(e){let o=e.createElement("script");return o.id=x6,o.textContent=m6,(e.head??e.documentElement).appendChild(o),()=>{e.__sfFitWords?.(),o.remove()}}var y6=`
|
|
303
|
-
[${$e}][${$e}] { cursor: text; }
|
|
304
|
-
`;function $f({children:e,document:o}){let{theme:t,themeMode:r,themeSwitchShown:a}=vo(),n=Zt(t);return f0(()=>{if(o)return s0(o,{mode:r,switchShown:a})},[o,r,a]),f0(()=>{if(o)return l0(o,n)},[o,n]),g6(()=>{if(o)return i0(o)},[o]),I6(h6,{children:[d0(ET,{}),d0("style",{children:y6}),e]})}import{jsx as _B}from"react/jsx-runtime";import{memo as S8}from"react";import{Render as b8}from"efficient-easel/render";import{jsx as Dn}from"react/jsx-runtime";import{createContext as S6,useContext as b6,useMemo as w6}from"react";var Xx=S6(null);function C6({children:e}){return Dn(Xx.Provider,{value:"first",children:e})}function Uf({children:e}){return Dn(Xx.Provider,{value:"below",children:e})}function ul(){return b6(Xx)}function Jx(){return ul()==="below"?{loading:"lazy"}:{}}function jf(e){let o=Jx();return Dn("img",{...e,...o})}var c0="laterSlideIds",k6=new Set(["Breadcrumb","CategoryBar","Divider","Spacer","Ticker"]);function p0(e){return mf(e?.filter(o=>!o?.type||!k6.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 u0(e,o){let t=o?.type,r=o?.props?.id;return w6(()=>{let a=t?e.components[t]:void 0;if(!t||!a)return e;let n=a.render,s=l=>l.id===r?Dn(C6,{children:Dn(n,{...l})}):Dn(n,{...l});return{...e,components:{...e.components,[t]:{...a,render:s}}}},[e,t,r])}function m0(e){return e.props?qe(e,o=>{let t=We(o,m0),r=e.type===_C&&t.every(a=>a.type===Fd)?OC(t):t;return r.length!==o.length||r.some((a,n)=>a!==o[n])?r:o}):e}function x0(e){return ed(e,o=>We(o,m0))}var v6="Flex",h0="ListSearch",I0=["FAQ"],P6="listKey";function g0(e,o){let t={search:e.type===h0,list:I0.includes(String(e.type))};return qe(e,r=>{for(let a of r){let n=g0(a,o);t.search||=n.search,t.list||=n.list}return r}),e.type===v6&&t.search&&t.list&&String(e.props?.id??"")?(o.add(e),{search:!1,list:!1}):t}function y0(e,o,t){let r=o.has(e)?String(e.props?.id):t,a=qe(e,n=>We(n,s=>y0(s,o,r)));return r&&(e.type===h0||I0.includes(String(e.type)))?{...a,props:{...a.props,[P6]:r}}:a}function S0(e){return rn(e,o=>{let t=new Set;for(let r of o)g0(r,t);return t.size?We(o,r=>y0(r,t,"")):o})}import{isNode as BW,isNodeList as xE}from"efficient-easel/data";import{jsx as Ee,Fragment as bW,jsxs as lr}from"react/jsx-runtime";import{jsx as nh}from"react/jsx-runtime";import{Fragment as F6,jsx as B6}from"react/jsx-runtime";import{jsx as Zx}from"react/jsx-runtime";import{createContext as E6,Fragment as _6,useContext as A6}from"react";import{jsx as b0,jsxs as T6}from"react/jsx-runtime";import{lazy as O6}from"react";var w0=O6(()=>import("./section-css-style-Q23EN42Q.js"));function C0({css:e,id:o,attr:t}){return b0(w0,{css:e,id:o,attr:t})}var k0={name:"sectionCustomCss",applies:(e,o,t)=>o.isSection(e)&&!!t&&typeof t.render=="function",panel(e,o,t){e.fields={...e.fields,...t.customCssFields()}},draw(e){e.defaultProps={...e.defaultProps,[Td]:""};let o=e.render;e.render=t=>{let r=Zw(t),a=typeof t.id=="string"?t.id:"";return!r||!a?o(t):T6(Cr,{className:"sf-section-css",attrs:{[Jw]:a},children:[b0(w0,{css:r,id:a}),o(t)]})}}};var v0=E6(null);function P0({rootProps:e,children:o}){let t=e&&typeof e=="object"?e:null,r=fk(t),a=Zx(_6,{children:o},"page");return Zx(v0.Provider,{value:t,children:r?[Zx(C0,{css:r,id:dk,attr:Gd},"css"),a]:a})}function T0(){return A6(v0)}function Ct(){return Od(T0())===nC}function Gf({className:e,children:o}){let t=Ct();return B6(F6,{children:o(Zo(e,t))})}import{SITE_SIDE as L6}from"efficient-easel/screen/lib/content/length-units";var O0="sideSpace",da=L6,ase=[{value:"box",label:"Box"},{value:da,label:"Site"}],nse="box",sse="Box: on small screens the Box keeps its own side space, up to 24 px. Site: it uses the site's Side space, as the site's own sections do. It has no effect when Content is Full width.";function E0(e){return e===da?da:"box"}function lse(e){return e===da?da:void 0}import{parseOption as oh}from"efficient-shell/format";var Kf="standard",B0=[{label:"Standard",value:"standard"},{label:"Editorial",value:"editorial"},{label:"Simple",value:"simple"},{label:"Statement",value:"statement"},{label:"Natural",value:"natural"},{label:"Essay",value:"essay"}],eh=["numStyle","logoSrc","logoAlt","linkText","linkHref","_gLogo"],Qx=[...eh,"description"],_0={standard:["eyebrowLook"],editorial:[...eh,"eyebrowLook"],simple:Qx,statement:Qx,natural:eh,essay:Qx},A0=["gap-5","gap-3"],F0=["text-[length:var(--size-body,16px)]","text-[15px]"];function cse(e){return oh(A0,A0[0],e)}function pse(e){return oh(F0,F0[0],e)}function L0(e){return oh(B0,Kf,e)}function use(e){let o=B0.map(r=>r.value),t=[...new Set(Object.values(_0).flat())];return Jo(e,t.map(r=>[[r],pd("headStyle",o,Kf,o.filter(a=>!_0[a].includes(r)))]))}import{readHidable as R6}from"efficient-easel/draw";var fa={direction:"row",share:"content",align:"center"},ca={top:14,bottom:14,topPhone:12,bottomPhone:12},qf={wrap:"nowrap",loop:"scroll",sectionAccent:Yw,gap:60,gapPhone:32,separator:"dot",sectionBorder:{top:1,bottom:1}},R0={gap:120,gapPhone:64},Vf={...Lo,sizeToken:{step:"label",px:14,pxPhone:12},letterSpacing:.25,lineHeight:1.5},D0={textStyle:"heading-3",letterSpacing:.005,case:"upper",lineHeight:1},ml={top:24,bottom:24,topPhone:16,bottomPhone:16},pa={top:16,bottom:16,topPhone:12,bottomPhone:12},xl={justify:"between",wrap:"wrap",gap:32,separator:"none"},hl={...Lo,letterSpacing:.1,lineHeight:1.5};var Yf={top:24,bottom:24,topPhone:24,bottomPhone:24},Xf={top:72,bottom:72,topPhone:72,bottomPhone:72},Nn={top:100,bottom:100,topPhone:60,bottomPhone:60},Jf={top:120,bottom:120,topPhone:70,bottomPhone:70},D6={top:24,bottom:24,topPhone:24,bottomPhone:24},N6=40,Zf={top:120,bottom:120,topTablet:80,bottomTablet:80,topPhone:80,bottomPhone:80},M6={top:24,bottom:24,topPhone:24,bottomPhone:24},Qf={top:24,bottom:24,topPhone:24,bottomPhone:24},H6={top:84,bottom:84,topPhone:84,bottomPhone:84},ec={top:48,bottom:48,topPhone:48,bottomPhone:48},oc={top:80,bottom:80,topPhone:60,bottomPhone:60},tc={top:100,bottom:60,topPhone:60,bottomPhone:40},rc={top:60,bottom:60,topPhone:40,bottomPhone:40},ac={top:80,bottom:80,topTablet:60,bottomTablet:60,topPhone:60,bottomPhone:60},nc={top:76,bottom:76,topPhone:76,bottomPhone:76},sc={top:76,bottom:76,topPhone:76,bottomPhone:76},gl={top:80,bottom:40,topPhone:60,bottomPhone:32},yl={top:76,bottom:76,topPhone:76,bottomPhone:76},lc={top:72,bottom:72,topPhone:72,bottomPhone:72},ic={top:40,bottom:64,topPhone:24,bottomPhone:36},dc={top:120,bottom:120,topPhone:80,bottomPhone:80,topTablet:80,bottomTablet:80},fc={top:48,bottom:48,topPhone:48,bottomPhone:48},Sl=e=>{let o=ye(e.bandPadding)??N6;return{top:o,bottom:o,topPhone:o,bottomPhone:o}},N0=(e,o,t)=>({desktop:e,tablet:o,mobile:t}),th=e=>fn(e.headPlacement)==="own-box",Fe=(e,o)=>({top:N0(e.top,o?.top??e.topTablet??e.top,e.topPhone),bottom:N0(e.bottom,o?.bottom??e.bottomTablet??e.bottom,e.bottomPhone)}),M0=e=>({top:e.topPhone,bottom:e.bottomPhone}),Il=e=>o=>th(o)?{top:0,bottom:e.bottom}:e,W6=(e,o)=>{let t=R6(e[o]);return t.hidden?!1:!!t.text||e.editor?.isEditing===!0},rh={Banner:{frame:()=>Fe(Yf)},Cards:{frame:Il(Fe(Xf))},Chart:{frame:()=>Fe(yl)},ContactLocations:{frame:()=>Fe(Nn,M0(Nn))},Countdown:{frame:()=>Fe(ec)},DocBody:{frame:()=>Fe(oc)},DocMasthead:{frame:()=>Fe(tc)},DocMetaCards:{frame:()=>Fe(rc)},FAQ:{frame:e=>{let o=th(e)||!["num","title","linkText"].some(r=>W6(e,r)),t=Fe(Jf);return o?{top:0,bottom:t.bottom}:t},edge:!0},FeaturedCover:{frame:()=>Fe(ac)},Grid:{frame:()=>Fe(D6)},Integrations:{frame:()=>Fe(nc)},KeyFeatures:{frame:()=>Fe(sc)},Logos:{frame:e=>th(e)?0:Fe(Sl(e))},LongRead:{frame:Il(Fe(Zf))},Masthead:{frame:()=>Fe(gl,M0(gl))},Mockup:{frame:()=>Fe(yl)},OrderSummary:{frame:()=>Fe(M6)},PaymentBadges:{frame:()=>Fe(Qf)},Prose:{frame:Il(Fe(lc))},SectionHeader:{frame:e=>{let o=Fe(ic);return L0(e.headStyle)==="standard"?o:{top:o.top,bottom:0}},edge:!0},Series:{frame:Il(Fe(dc))},Stats:{frame:()=>Fe(fc)},Testimonials:{frame:Il(Fe(H6))},Ticker:{frame:()=>Fe(ca),edge:!0}};function vse(e,o){let t=$(rh,e);return t?wn({values:jd(o,Co,!0),frame:t.frame(o),drawsFrame:!0,edge:t.edge},!0).root:null}var $6=/^(?:[^\s]*:)?p[ytb]-/;function H0(e,o,t){if(!o)return t?{className:e,style:t}:{className:e};let r=e.split(/\s+/).filter(n=>n&&!$6.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 z6}from"efficient-easel/data";var ah=new Set(["FAQ"]);function qo(e,o){if(!ah.has(e))return!1;let t=o.template;return typeof t=="function"?(t.blockCount??0)>0:z6(t)}var $0={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}},z0=new Set(Object.keys($0));function sh(e,o){return o?.innerPadding??$($0,e)}var Mn=e=>sh(e)??{};var cc=new Set(["Flex","Text","Heading","ImageBlock","ButtonBlock"]),U6=new Set(["Divider"]),j6=new Set(["Hero","HeroSingle","IntroBleed","CategoryBar","DocTabs"]),W0=new Set(["ProductGrid"]);function lh(e,o,t=!1,r){let a=e.render;e.render=n=>{if(o?.(n))return a(n);let s={...jd(n,Co,t),sideSpace:E0(n.sideSpace)},l=r?wn({values:s,frame:r(n)},!0).outer:sk(s),i=a(n);if(!l)return i;let d=m=>nh(Gf,{className:m?`${l.className} ${m}`:l.className,children:h=>nh(ie,{className:h,style:l.style,children:i})}),c=Sr(n,{atSectionLine:!0}),x=Sr(n);return c===x?d(c):nh(Vd,{line:"by-box",draw:m=>d(m?x:c)})}}var U0={name:"sectionPadding",applies:(e,o,t)=>o.isSection(e)&&!j6.has(e)&&!!t&&typeof t.render=="function",panel(e,o,t){let r=sh(o,e);if(r){e.fields={...e.fields,...t.sidesPaddingFields({keys:yr,unitKey:zd,fallback:r,tablet:!0,siteSide:!0})};return}if(W0.has(o))return;let a=[yr.top,yr.bottom].filter(s=>e.fields!=null&&s in e.fields);if(a.length)throw new Error(`section-padding: ${o} declares its own ${a.join(" / ")} row; declare \`innerPadding: { top, bottom }\` in its meta and the one Padding row draws on its band`);let n=$(ih,o);if(n){j0(e,o,t,n);return}e.fields={...e.fields,...t.sidesPaddingFields({tablet:!0,siteSide:!0})}},draw(e,o){if(!sh(o,e)){if(W0.has(o)){lh(e);return}cc.has(o)||U6.has(o)||lh(e,o==="Flex"?t=>Ok(t.bgImage):ah.has(o)?t=>qo(o,t):void 0,!0,$(ih,o))}}},G6=["Heading","Text","ImageBlock","ButtonBlock"],K6=["LogoBlock"],ih={Text:e=>vr(e,"text").textStyle?.startsWith("heading-")?Zs.heading:Zs.text,Heading:()=>Zs.heading,ButtonBlock:()=>Zs.text,Breadcrumb:()=>nx(ml),SpecStrip:()=>nx(pa),...Object.fromEntries(Object.entries(rh).map(([e,o])=>[e,o.frame]))},q6={ButtonBlock:"Outer padding"};function V6(e,o){let t=e[Nt],r=Array.isArray(t)?t.filter(i=>typeof i=="string"):[],a=bn().filter(i=>o?.[i]);if(!a.length)return e;let n=[...r.filter(i=>!a.includes(i)),...a.filter(i=>typeof e[i]=="number")];if(n.length===r.length&&n.every((i,d)=>i===r[d]))return e;let{[Nt]:s,...l}=e;return n.length?{...l,[Nt]:n}:l}function Y6(e,o,t){if(o<=0)return null;let r=Array.isArray(e[Nt])?e[Nt]:[];return(t?bn().filter(a=>a.startsWith(Co[t])):bn()).some(a=>typeof e[a]=="number"&&!r.includes(a))?f("plus {n} px (older setting)",{n:o}):null}function j0(e,o,t,r){e.fields={...e.fields,...t.ownPaddingFields?.(r,Y6,$(q6,o))??t.sidesPaddingFields({tablet:!0,siteSide:!0})};let a=e.resolveData;e.resolveData=(n,s)=>{let l=n.props??{},i=s?.trigger==="replace"?V6(l,s.changed):l,d=i===l?n:{...n,props:i};return a?a(d,s):d}}var G0={name:"blockPadding",applies:(e,o,t)=>(G6.includes(e)||K6.includes(e))&&!!t&&typeof t.render=="function",panel(e,o,t){let r=$(ih,o);if(!r){e.fields={...e.fields,...t.sidesPaddingFields({tablet:!0,siteSide:!0})};return}j0(e,o,t,r)},draw(e,o){cc.has(o)||lh(e,void 0,!0)}};import{createContext as dh,useContext as pc}from"react";var K0=dh(null);function Gse(){return pc(K0)===!0}function Kse(){return pc(K0)!==null}var X6=dh(!1);function qse(){return pc(X6)}function Vse(e,o,t){let r=e.boxes;if(!r)return t;let a=r.indexOf(o);return a>=0?a:(r.push(o),r.length-1)}var uc=dh(null);function Yse(){return pc(uc)}import{jsx as ua}from"react/jsx-runtime";import{Component as a3,createContext as n3,lazy as cle,Suspense as ple,useContext as s3,useSyncExternalStore as l3}from"react";function J6(e,o){let t=e.trim();if(!mc(t))return!1;if(!o)return!0;let r;try{r=new URL(t,"https://x.invalid").host}catch{return!1}let a=n=>n.toLowerCase().replace(/^www\./,"");return a(r)!==a(o)}function Zse(e){return e.startsWith("/")||mc(e)}function mc(e){return/^(?:https?:)?\/\//i.test(e.trim())}var bl=Object.freeze({target:"_blank",rel:"noopener noreferrer"});function q0(e,o){return J6(e,o)?{...bl}:{}}function Qse(e){return typeof e=="string"?e.trim():""}var ele="data-sf-box-link",V0="absolute inset-0 -z-[1] outline-none focus-visible:z-[2] focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-accent",fh="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",Z6="data-sf-box-jump";function Q6(e){return`sf-box-jump-${e}`}function ole(e,o){return e===!0?sa(o):""}function e3({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 tle(e){let o=`[${Z6}="${e}"]`,t=`.${Q6(e)}`,r=`[id="${e}"]:target`;return e3({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 o3="hrefRewrite";function t3(){return en("efficient.link-href-rewrites",()=>({rewrites:new Map,count:0,missed:new Set}))}function r3(){return typeof process<"u"&&!0}function nle(e){let o=e?.[o3];return typeof o=="string"?o.trim():""}function Y0(e){if(!e)return null;let o=t3(),t=o.rewrites.get(e);return!t&&!r3()&&o.missed.add(e),t??null}var i3={Link:qv,Image:Kv},X0=n3(i3);function gle({runtime:e,children:o}){return ua(X0.Provider,{value:e,children:o})}function ph(){return s3(X0)}function yle(){return ph().pagePath??null}var d3=()=>()=>{},f3=()=>ff()||null,c3=()=>null;function p3(){return l3(d3,f3,c3)}function ma({hrefRewrite:e,newTab:o,...t}){let{Link:r}=ph(),a=p3(),n=o===!0?{...t,...bl}:o==="auto"?{...t,...q0(t.href,a)}:t,s=Y0(e);return s?ua(ch,{name:s.name,href:n.href,fallback:ua(r,{...n}),children:ua(u3,{Link:r,rewrite:s.rewrite,...n})},s.key):ua(r,{...n})}function u3({Link:e,rewrite:o,...t}){let r=uo(o(t.href)),a=r&&ub(r)?r:t.href;return ua(e,{...t,href:a})}var ch=class extends a3{state={failed:!1,href:this.props.href};static getDerivedStateFromProps(o,t){return o.href===t.href?null:{failed:!1,href:o.href}}static getDerivedStateFromError(){return{failed:!0}}componentDidCatch(o){console.error(`The link href rewrite ${this.props.name} failed; the link goes where it was typed.`,o)}render(){return this.state.failed?this.props.fallback:this.props.children}};function xc(e){let{Image:o}=ph();return ua(o,{...e})}import{jsx as fW}from"react/jsx-runtime";import{jsx as Se,jsxs as Po,Fragment as sW}from"react/jsx-runtime";import{imageCopyUrl as Q0,imageSrcSet as m3}from"efficient-shell/image-copies";var J0;function uh(){return J0===void 0?{}:{host:J0}}var wle="(max-width: 800px) 100vw, min(100vw, 1600px)",Cle="(max-width: 960px) 100vw, 50vw";function xa(e,{fallbackWidth:o=1280,maxWidth:t}={}){let r=m3(e,{...uh(),...t===void 0?{}:{maxWidth:t}});return r?{src:Q0(e,o,uh()),srcSet:r}:{src:e}}var x3=/[\s"'()\\;]/,h3={"\\":"\\\\",'"':'\\"',"\n":"\\a ","\r":"\\d ","\f":"\\c "};function Z0(e){return e.replace(/[\\"\n\r\f]/g,o=>h3[o]??o)}function kle(e){let o=Q0(e,1920,uh());return o===e?x3.test(e)?`url("${Z0(e)}")`:`url(${e})`:`url("${Z0(o)}")`}import{parseOption as I3}from"efficient-shell/format";var wl="solid",g3=[{label:"Solid",value:"solid"},{label:"Outlined",value:"outlined"}];function eO(e){return I3(g3,wl,e)}var mh="sf-secnum-outline",oO="font-display text-[length:var(--size-headingMedium,clamp(48px,6vw,96px))] font-medium leading-[0.8] tracking-[-0.02em]",tO=`@supports (-webkit-text-stroke: 1px currentColor){.${mh}{color:var(--site-surface-2);-webkit-text-stroke:1px var(--site-line)}}`;import{parseOption as rO}from"efficient-shell/format";var xh="plain",aO=[{label:"Plain",value:"plain"},{label:"Filled",value:"filled"},{label:"Line",value:"line"}],y3="line",S3={KeyFeatures:"filled"};function Cl(e){return $(S3,e)??xh}function nO(e,o){return rO(aO,Cl(o),e)}function _le(e){return rO(aO,y3,e)}import{jsxs as ga,jsx as Ne}from"react/jsx-runtime";import{Fragment as Ph}from"react";import{Fragment as K3,jsx as Ch}from"react/jsx-runtime";import{Fragment as gO,jsx as Ol,jsxs as M3}from"react/jsx-runtime";import{createContext as wh,useContext as El,useEffect as H3,useId as W3,useMemo as $3,useRef as z3}from"react";import{armEntrance as U3}from"efficient-shell/format";import{jsx as b3}from"react/jsx-runtime";import{useEffect as lO,useRef as sO,useState as w3}from"react";import{armEntrance as C3,entranceAttrs as k3,playEntrance as v3}from"efficient-shell/format";function hc({views:e,editing:o,boxClass:t,boxAttrs:r,boxStyle:a,takesViewHide:n=!1,atEdge:s=!1,children:l}){let i=sO(null),d=Xd(),c=ot(),x=n?c:br,m=kl(i,!0,s),{attrs:h,style:I}=k3(e[m]),C=sO(Hn.seed(e)),P=JSON.stringify(e);return lO(()=>{let O=i.current;if(O){if(o){let F=Hn.next(C.current,e,m);C.current=F.seen,F.play&&v3(O);return}return C3(O)}},[P,m,o]),x.scope(b3("div",{ref:i,className:ko(`${gn}${d.fill}${t?` ${t}`:""}`,x.className),...r,...x.attrs,...h,...Object.keys(I).length||a?{style:{...a,...I}}:{},children:d.inner(l)}))}var Hn={seed(e){return{desktop:JSON.stringify(e.desktop),tablet:JSON.stringify(e.tablet),phone:JSON.stringify(e.phone)}},next(e,o,t){let r=Hn.seed(o);return{play:r[t]!==e[t],seen:r}}};function kl(e,o=!0,t=!1){return vl(e,o,t)??"desktop"}function vl(e,o=!0,t=!1){let[r,a]=w3(void 0),n=wr(t?"edge":"by-box"),{phone:s,tablet:l}=Pv(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),c=i.matchMedia(l),x=()=>a(d.matches?"phone":c.matches?"tablet":"desktop");return x(),d.addEventListener("change",x),c.addEventListener("change",x),()=>{d.removeEventListener("change",x),c.removeEventListener("change",x)}},[e,o,s,l]),r}var Pl="@name",iO="@body",dO="@value",fO={[Pl]:"Name",[iO]:"Body",[dO]:"Value"},P3={TimelineTrack:{"entries.date":Pl,"entries.title":Pl,"entries.blurb":iO},Footprint:{"offices.city":Pl},Stats:{"items.label":Pl,"items.value":dO}};function T3(e){let{key:o,row:t}=Mt(e);return t?`${o}.${t.rowKey}`:null}function ar(e,o){if(!e)return o;let t=T3(o);return t?$(P3,e)?.[t]??o:o}import{ENTRANCE_STATE_ATTR as B3,entranceAttrs as L3,scrollAttrs as R3}from"efficient-shell/format";import{parseFocal as _3,formatFocal as A3,readScroll as F3}from"efficient-shell/format";import{phoneKey as O3,tabletKey as E3}from"efficient-easel/screen/lib/content/view-tiers";var hh=[{block:"HeroSlide",upload:"mediaImage",focus:Ys.image},{block:"HeroSlide",upload:"mediaImage2",focus:Ys.image2},{block:"HeroSingle",upload:"mediaImage",focus:Ys.image},{block:"HeroSingle",upload:"mediaImage2",focus:Ys.image2},{block:"ImageBlock",upload:"src",focus:"focal"}],cO=e=>[e,E3(e),O3(e)],Gle=[...new Set(hh.flatMap(e=>cO(e.focus)))].sort();function pO(e,o){let[t,r,a]=cO(o).map(n=>typeof e[n]=="string"&&e[n]?e[n]:void 0);return{desktop:t,tablet:r,phone:a}}var xo={effect:"scroll",zoom:"scrollZoom",start:"scrollStart",end:"scrollEnd"},Wn="_gScroll",Ic="_cScroll",gc=Ld(Object.values(xo));function nr(e,o){return F3(Ks(e,xo.effect,o),Ks(e,xo.zoom,o),Ks(e,xo.start,o),Ks(e,xo.end,o))}function $n(e){let o={desktop:nr(e,"desktop"),tablet:nr(e,"tablet"),phone:nr(e,"phone")};return Qo.every(t=>o[t].effect==="none")?null:o}function Ih(e){let o=jC(e.desktop,e.tablet,e.phone),t=r=>{let a=o[r];if(typeof a!="string")return;let{x:n,y:s}=_3(a);return A3(n,s)};return{desktop:t("desktop"),tablet:t("tablet"),phone:t("phone")}}function uO(e,o){return Ih(pO(e,o))}var yc={},gh="_partMotion",yh=[...Rd,Xo,Ge.duration,Ge.delay,...gc];function xO(e){return Qk(e,gh)}function ha(e,o){return ev(e,gh,o)}var D3=new Set([Go.kind,Xo,xo.effect]);function hO(e,o,t,r){let{[t]:a,...n}=ha(e,o),s=r==null||r===""||r==="none"&&D3.has(t)?n:{...n,[t]:r};return ov(e,gh,o,Object.keys(s).length?s:null)}function Tl(e){return{entrance:yn(e),hover:xb(e),scroll:$n(e)}}function IO(e){let o=Tl(e);return o.entrance!==null||o.hover!=="none"||o.scroll!==null}function Sc(e,o){let{attrs:t,style:r}=L3(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(B3)}}function bc(e,o){let{attrs:t,style:r}=R3(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 N3=4;function zn(e){let o;for(let t of e)(!o||t.element.compareDocumentPosition(o.element)&N3)&&(o=t);return o}var Sh="data-sf-part-host";function wc(e){let o=e?.ownerDocument.defaultView,t=e;for(;t&&!t.hasAttribute(Sh)&&!t.classList.contains(gn);){let r=o?.getComputedStyle(t).display??"";if(r==="contents")return null;if(r!=="inline")return t;t=t.parentElement}return null}var Ia="data-sf-part-lift",mO="sf-part-lift";function Cc(e){if(e.getElementById(mO))return;let o=e.createElement("style");o.id=mO,o.textContent=iv(`[${Ia}]`).join(`
|
|
317
|
-
`),e.head.appendChild(o)}var kc=wh(null),SO=wh(null),bO=wh(null);function wO({needles:e,styles:o,motions:t=yc,type:r,atEdge:a=!1,sizeCaps:n,children:s}){let l=W3(),i=wr(a?"edge":"by-box"),d=JSON.stringify([l,e,o,t,r,n]),c=$3(()=>{let m=Object.keys(t).filter(h=>IO(t[h]));return vv(e,o,l,h=>ar(r,h),h=>rl(r,h),h=>m.includes(h)?Tl(t[h]):null,m,h=>aa(n,h))},[d]);if(!c)return Ol(gO,{children:s});let x=Tv(c,{inBox:i});return M3(gO,{children:[x&&Ol("style",{href:`${j3}${l}-${G3(x)}`,precedence:kO,dangerouslySetInnerHTML:{__html:Pk(x)}}),Ol(kc.Provider,{value:c,children:s})]})}var bh=new WeakMap;function yO(e,o){let t=zn(o.filter(a=>a.arm)),r=o.some(a=>a.entering)?void 0:zn(o.filter(a=>a.scroll));for(let a of o)a!==t&&a.undo&&(a.undo(),a.undo=void 0),a!==r&&a.undoScroll&&(a.undoScroll(),a.undoScroll=void 0);t?.arm&&!t.undo&&(t.undo=t.arm()),r?.scroll&&!r.undoScroll&&(r.undoScroll=r.scroll()),o.some(a=>a.lift)?(Cc(e.ownerDocument),e.setAttribute(Ia,"")):e.removeAttribute(Ia)}function CO(e){let o=z3(null),t=e?.motion?.entrance??null,r=e?.motion?.scroll??null,a=e?.motion?.hover==="lift",n=kl(o,t!==null||r!==null),s=t?t[n]:null,l=r&&r[n].effect!=="none"?r[n]:null,i=JSON.stringify([s,l]);return H3(()=>{let d=o.current,c=wc(d?.parentElement??null);if(!t&&!r&&!a||!d||!c)return;let x=s?()=>{let I=Sc(c,s),C=U3(c);return()=>{C?.(),I()}}:null,m=bh.get(c)??[];bh.set(c,m);let h={element:d,arm:x,entering:s!==null&&s.kind!=="none",scroll:l?()=>bc(c,l):null,lift:a};return m.push(h),yO(c,m),()=>{let I=m.indexOf(h);I<0||(m.splice(I,1),h.undo?.(),h.undo=void 0,h.undoScroll?.(),h.undoScroll=void 0,yO(c,m),m.length||bh.delete(c))}},[i,a]),o}var kO="sf-part-styles",j3=`${kO}-`;function G3(e){let o=2166136261;for(let t=0;t<e.length;t+=1)o^=e.charCodeAt(t),o=Math.imul(o,16777619);return(o>>>0).toString(36)}function vO(e){let o=El(kc),t=El(SO),r=Ov(o,e);return r&&r.stamp!==t?r:null}function uie(e){return ux(El(kc),e)}function PO({stamp:e,children:o}){return Ol(SO.Provider,{value:e,children:o})}function mie({children:e}){let o=El(kc);return Ol(bO.Provider,{value:o,children:e})}function xie(e){return ux(El(bO),e)}function _l({value:e,children:o}){let t=vO(e),r=CO(t);return t?Ch(PO,{stamp:t.stamp,children:Ch("span",{ref:r,[rv]:t.stamp,...t.textStyle?{[ta]:t.textStyle}:{},children:o})}):Ch(K3,{children:o})}import{jsx as kh,Fragment as q3}from"react/jsx-runtime";function TO({className:e=""}){return kh("sup",{className:`text-accent tracking-normal text-[length:min(1em,max(0.75em,11px))] ${e}`,children:"\xAE"})}function rt(e){if(!e.includes("\xAE"))return e;let o=e.split("\xAE"),t=[];return o.forEach((r,a)=>{r&&t.push(r),a<o.length-1&&t.push(kh(TO,{},`r${a}`))}),kh(q3,{children:t})}var wie=TO;function Ve(e,o=!1,t){let r=eW(o),a=nd(e);if(a.length===1){let[s]=a,l=mb(s),i=l?Z3(l,s.children):s.children;return ga(_l,{value:e,children:[t,vc(i,r)]})}let n=[];return a.forEach((s,l)=>{if(s.bullet){n.push(Ne("span",{"data-sf-bullet":"",className:V3,children:vc(s.children,r)},l));return}if(s.number!=null){n.push(ga("span",{"data-sf-number":s.number,className:Y3,children:[ga("span",{className:X3,children:[s.number,"."]}),vc(s.children,r)]},l));return}l>0&&!J3(a[l-1])&&n.push(Ne("br",{},`br${l}`)),n.push(Ne(Ph,{children:vc(s.children,r)},l))}),ga(_l,{value:e,children:[t,n]})}var V3="relative block pl-6 before:absolute before:left-1.5 before:font-bold before:text-accent before:content-['\xB7']",Y3="relative block pl-[2em]",X3="absolute left-0 w-[1.6em] text-right tabular-nums";function J3(e){return e.bullet||e.number!=null}var OO="text-accent underline underline-offset-[0.18em]";function Z3(e,o){let[t,...r]=o;return t?.kind==="text"?[{kind:"text",text:`${e}${t.text}`},...r]:[{kind:"text",text:e},...o]}function Q3(e){return Tk(e)||void 0}function vc(e,o){let t=[],r=!1;return e.forEach((a,n)=>{if(a.kind==="text"){t.push(Ne("span",{children:rt(a.text)},n)),r=!0;return}r||t.push(Ne("span",{},`e${n}`)),t.push(_O(a,n,o)),r=!1}),r||t.push(Ne("span",{},"end")),t}function vh(e,o){return e.length===1&&e[0].kind==="text"?rt(e[0].text):e.map((t,r)=>t.kind==="text"?Ne(Ph,{children:rt(t.text)},r):_O(t,r,o))}function eW(e){return e?"font-normal italic text-accent":"not-italic text-accent"}function Bie(e){return EO(e)}function EO(e,o){let t=e.split(`
|
|
318
|
-
`);return ga(_l,{value:e,children:[o,t.map((r,a)=>ga(Ph,{children:[a>0?Ne("br",{}):null,Ne("span",{children:r})]},a))]})}function _O(e,o,t){if(e.kind==="link")return mc(e.href)?Ne(ma,{newTab:"auto",href:e.href,className:OO,children:vh(e.children,t)},o):Ne("a",{href:e.href,className:OO,children:vh(e.children,t)},o);let r=vh(e.children,t),a=fb[e.kind];if(a)return Ne("span",{[cb]:a,children:r},o);switch(e.kind){case"underline":return Ne("u",{children:r},o);case"sup":return Ne("sup",{children:r},o);case"sub":return Ne("sub",{children:r},o);case"color":{let n=Q3(e.color);return n?Ne("span",{style:{color:n},children:r},o):Ne("span",{children:r},o)}case"accent":case"highlight":return Ne("em",{className:t,children:r},o);case"bold":return Ne("strong",{className:"font-semibold",children:r},o);case"italic":return Ne("em",{className:"italic",children:r},o);case"strike":return Ne("s",{className:"line-through",children:r},o);default:return Ne("span",{children:r},o)}}function AO(e,o=!0,t=!1){let r=e.split(`
|
|
319
|
-
`);return Ne(_l,{value:e,children:r.map((a,n)=>ga("span",{children:[t?EO(a):Ve(a,o),n<r.length-1?Ne("br",{}):null]},n))})}function FO(e){return e.split(/\n\s*\n/).map(o=>o.trim()).filter(Boolean)}import{jsx as Th,jsxs as tW}from"react/jsx-runtime";import{jsx as oW}from"react/jsx-runtime";function BO(){return oW("span",{className:"block h-px w-[30px] bg-current"})}var Oh={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 rW(e,o){return`font-mono text-[length:var(--size-label,${e}px)] uppercase tracking-[0.3em] text-accent`}var aW=`inline-block w-fit bg-accent px-3.5 py-1.5 font-mono ${Oh.labelSmall} font-semibold uppercase tracking-[0.16em] text-bg`,nW=`flex items-center gap-3.5 font-mono ${Oh.labelLarge} uppercase tracking-[0.3em] opacity-80 ${Oh.labelUpTo800} max-view-wide:tracking-[0.25em]`;function Un({text:e,look:o="plain",size:t=13,scaled:r=!0,className:a="",classNameAfter:n="",takesViewHide:s=!1}){let l=ot(),i=s?l:br;if(o==="line")return i.scope(tW("div",{className:ko([a,nW,n].filter(Boolean).join(" "),i.className),...i.attrs,children:[Th(BO,{}),Th("span",{children:Ve(e)})]}));let d=o==="filled"?aW:rW(t,r);return i.scope(Th("span",{className:ko([a,d,n].filter(Boolean).join(" "),i.className),...i.attrs,children:Ve(e)}))}var Oe={headingMediumUpTo800Small:"max-view-wide:text-[length:min(var(--size-headingMedium,32px),var(--sf-heading-max,9999px))]",headingMediumUpTo800Large:"max-view-wide:text-[length:min(var(--size-headingMedium,36px),var(--sf-heading-max,9999px))]",headingSmallUpTo800:"max-view-wide:text-[length:var(--size-headingSmall,28px)]",headingMedium2:"text-[length:min(var(--size-headingMedium,44px),var(--sf-heading-max,9999px))]",headingMedium3:"text-[length:min(var(--size-headingMedium,56px),var(--sf-heading-max,9999px))]",headingMedium1:"text-[length:var(--sf-heading-max,var(--size-headingMedium,38px))]",bodySmall:"text-[length:var(--size-body,14px)]",bodyLarge:"text-[length:var(--size-body,16px)]",label:"text-[length:var(--size-label,14px)]",shelfLabel:"text-[length:var(--size-label,13px)]",shelfLabelSmall:"text-[length:var(--size-label,12px)]",shelfBody:"text-[length:var(--size-body,13px)]",shelfHeadingUpTo800Xs:"max-view-wide:text-[length:var(--size-headingMedium,28px)]",shelfHeadingUpTo800Small:"max-view-wide:text-[length:var(--size-headingMedium,32px)]",shelfHeadingUpTo800Large:"max-view-wide:text-[length:var(--size-headingMedium,36px)]",shelfHeadingUpTo800Xl:"max-view-wide:text-[length:var(--size-headingMedium,40px)]",shelfHeading1:"text-[length:var(--size-headingMedium,40px)]",shelfHeading2:"text-[length:var(--size-headingMedium,48px)]",shelfHeading3:"text-[length:var(--size-headingMedium,56px)]",shelfHeading4:"text-[length:var(--size-headingMedium,64px)]"},LO=[{value:"para",label:"Paragraph size \u2014 13px",cls:`font-mono font-normal uppercase tracking-[0.22em] ${Oe.shelfLabel}`},{value:"sm",label:"Small \u2014 40px",cls:`font-heading2 font-medium tracking-[-0.03em] ${Oe.shelfHeading1} ${Oe.shelfHeadingUpTo800Xs}`},{value:"md",label:"Medium \u2014 48px",cls:`font-heading2 font-medium tracking-[-0.03em] ${Oe.shelfHeading2} ${Oe.shelfHeadingUpTo800Small}`},{value:"lg",label:"Large \u2014 56px",cls:`font-heading2 font-medium tracking-[-0.03em] ${Oe.shelfHeading3} ${Oe.shelfHeadingUpTo800Large}`},{value:"xl",label:"Extra large \u2014 64px",cls:`font-heading2 font-medium tracking-[-0.03em] ${Oe.shelfHeading4} ${Oe.shelfHeadingUpTo800Xl}`}],lW="lg";function iW(e){return(LO.find(o=>o.value===e)??LO.find(o=>o.value===lW)).cls}var jn=(e,o=!1)=>typeof e=="string"?AO(e,o):e,sr=(e,o=!1)=>typeof e=="string"?Ve(e,o):e;function RO({num:e,title:o,link:t,logo:r,description:a,accent:n,accentNum:s,numStyle:l=wl,look:i="standard",titleAccent:d,accentTracking:c="-0.02em",spaceBelow:x,rowGap:m,descriptionSize:h,className:I="",eyebrowLook:C=xh,titleSize:P,count:O,capped:F=!1,rootPadsBottom:v=!1}){let y=Ct(),b=x??(i==="editorial"?"mb-[60px]":"");if(i==="shelf")return e||o||a||t?Po("div",{className:Zo(`${oP} sticky top-[var(--sf-header-h,88px)] z-30 mb-5 flex items-center justify-between gap-4 max-view-wide:flex-wrap max-view-wide:gap-y-2 border-b border-line bg-bg/95 py-3 backdrop-blur-md ${F?"":"-mx-[var(--sf-site-gutter,40px)] px-[var(--sf-site-gutter,40px)] max-view-wide:-mx-[min(20px,var(--sf-site-gutter,40px))] max-view-wide:px-[min(20px,var(--sf-site-gutter,40px))]"}`,y),children:[Po("div",{className:"flex min-w-0 items-end gap-6 max-view-wide:flex-col max-view-wide:items-stretch max-view-wide:gap-3",children:[e&&Se("span",{className:`font-mono ${Oe.shelfLabel} leading-none uppercase tracking-[0.22em] text-fg-dim`,children:sr(e)}),o&&Se("h2",{className:`${iW(P)} leading-none text-fg max-view-wide:leading-[1] [&>span]:block`,children:jn(o)})]}),(a||t||O)&&Po("div",{className:"flex items-center gap-5 max-view-wide:gap-3 view-wide:grow view-wide:justify-end",children:[a&&Se("span",{className:`max-w-[340px] truncate font-display ${Oe.shelfBody} leading-[1.4] text-fg-dim max-view-wide:hidden view-wide:w-0 view-wide:grow view-wide:text-right`,children:sr(a)}),t&&Po(ma,{newTab:"auto",href:t.href,className:`inline-flex items-center gap-2 whitespace-nowrap font-mono ${Oe.shelfLabel} uppercase tracking-[0.2em] text-fg-dim transition-colors hover:text-fg`,children:[sr(t.text),Se("span",{"aria-hidden":!0,children:"\u2192"})]}),O&&Se("span",{className:`whitespace-nowrap font-mono ${Oe.shelfLabelSmall} uppercase tracking-[0.2em] text-fg-dim`,children:O})]})]}):null;if(i==="editorial"){let g=!!o||!!d;return 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(Un,{text:e,className:"pb-2"}):Se("span",{className:"pb-2",children:e})),g&&Po("h2",{className:"font-heading2 text-[length:min(var(--size-headingMedium,clamp(40px,5.5vw,80px)),var(--sf-heading-max,9999px))] font-medium uppercase leading-none tracking-[-0.03em]",children:[o,d&&Po(sW,{children:[" ",Se("em",{className:"font-serif font-normal italic text-accent",style:{letterSpacing:c},children:d})]})]}),a&&Se("p",{className:`max-w-[360px] pb-1 text-right font-display ${Oe.bodySmall} leading-[1.5] text-fg-dim max-view-desktop:max-w-full max-view-desktop:text-left`,children:a})]})}if(i==="simple"){let g=`${b} ${I}`.trim();return Po("div",{className:g||void 0,children:[e&&(typeof e=="string"?Se(Un,{text:e,look:C,className:"mb-4 block"}):Se("span",{className:"mb-4 block",children:e})),o&&Se("h2",{className:`font-heading2 ${Oe.headingMedium2} font-medium uppercase leading-none tracking-[-0.02em] text-fg ${Oe.headingMediumUpTo800Small}`,children:jn(o)})]})}if(i==="statement"){let g=`${b} ${I}`.trim();return Po("div",{className:g||void 0,children:[e&&(typeof e=="string"?Se(Un,{text:e,look:C,className:"mb-4 block"}):Se("span",{className:"mb-4 block",children:e})),o&&Se("h2",{className:"font-heading2 text-[length:min(var(--size-headingMedium,clamp(40px,5vw,72px)),var(--sf-heading-max,9999px))] font-medium uppercase leading-none tracking-[-0.03em] text-fg",children:jn(o,!0)})]})}if(i==="natural"){let g=`flex max-w-[680px] flex-col ${m??"gap-5"} ${b} ${I}`.replace(/\s+/g," ").trim();return Po("div",{className:g,children:[e&&(typeof e=="string"?Se(Un,{text:e,look:C}):Se("span",{children:e})),o&&Se("h2",{className:`font-heading2 ${Oe.headingMedium2} font-medium leading-[1.05] tracking-[-0.03em] ${Oe.headingMediumUpTo800Small}`,children:jn(o)}),a&&Se("p",{className:`${h??`${Oe.bodyLarge}`} leading-[1.6] opacity-85`,children:a})]})}if(i==="essay"){let g=`${b} ${I}`.trim();return Po("div",{className:g||void 0,children:[e&&(typeof e=="string"?Se(Un,{text:e,look:C,className:"mb-4 block"}):Se("span",{className:"mb-4 block",children:e})),o&&Se("h2",{className:`font-heading2 ${Oe.headingMedium1} [font-weight:var(--sf-heading-weight,500)] [text-transform:var(--sf-heading-case,uppercase)] [&_em]:[font-weight:var(--sf-heading-weight-strong,inherit)] leading-none tracking-[-0.02em] text-fg ${Oe.headingSmallUpTo800}`,children:jn(o)})]})}let E=!!a||!!t,B=!!o,R=eO(l)==="outlined",k=`font-mono ${Oe.label} uppercase tracking-[0.3em]`,L=null;if(e)if(R)L=Se("span",{className:`${oO} text-fg-dim ${mh}`,children:sr(e)});else if(s&&!n&&typeof e=="string"){let g=e.indexOf("/"),w=g===-1?e:e.slice(0,g),T=g===-1?"":e.slice(g);L=Po("span",{className:k,children:[Se("span",{className:"text-accent",children:sr(w)}),T&&Se("span",{className:"text-fg-dim",children:sr(T)})]})}else L=Se("span",{className:`${k} ${n?"text-accent":"text-fg-dim"}`,children:sr(e)});return Po("div",{className:v?"grid grid-cols-[auto_1fr_auto] items-end gap-10 border-b border-line pb-6 max-view-wide:grid-cols-1 max-view-wide:gap-3 max-view-wide:pb-5":"mb-16 grid grid-cols-[auto_1fr_auto] items-end gap-10 border-b border-line pb-6 max-view-wide:mb-9 max-view-wide:grid-cols-1 max-view-wide:gap-3 max-view-wide:pb-5",children:[R&&e&&Se("style",{children:tO}),Po("div",{className:"flex flex-col items-start gap-3",children:[r?.src&&Se(mk,{children:Se(jf,{...dW(Zv(r.src)),alt:r.alt,className:"h-8 w-auto object-contain"})}),L]}),B&&Se("h2",{className:n?"font-heading2 text-[length:min(var(--size-headingMedium,clamp(36px,5vw,64px)),var(--sf-heading-max,9999px))] [font-weight:var(--sf-heading-weight,500)] [text-transform:var(--sf-heading-case,uppercase)] [&_em]:[font-weight:var(--sf-heading-weight-strong,inherit)] leading-[0.95] tracking-[-0.025em]":`font-heading2 ${Oe.headingMedium3} [font-weight:var(--sf-heading-weight,500)] [&_em]:[font-weight:var(--sf-heading-weight-strong,inherit)] leading-none tracking-[-0.03em] whitespace-pre-line ${Oe.headingMediumUpTo800Large} max-view-wide:leading-[1]`,children:jn(o)}),E&&Po("div",{className:"flex flex-col items-end gap-3 max-view-wide:items-start",children:[a&&Se("p",{className:`max-w-[340px] font-display ${Oe.bodySmall} leading-[1.5] text-fg-dim text-right max-view-wide:max-w-full max-view-wide:text-left`,children:sr(a)}),t&&Po(ma,{newTab:"auto",href:t.href,className:`inline-flex items-center gap-2 whitespace-nowrap font-mono ${Oe.label} uppercase tracking-[0.2em] text-fg-dim transition-colors hover:text-fg`,children:[sr(t.text),Se("span",{"aria-hidden":!0,children:"\u2192"})]})]})]})}function dW(e){let o=xa(e,{fallbackWidth:640,maxWidth:960});return o.srcSet?{src:o.src,srcSet:o.srcSet,sizes:"240px"}:{src:e}}function DO({num:e,title:o,titleAccent:t,desc:r,accentTracking:a="-0.02em",spaceBelow:n="mb-[60px]",className:s=""}){return fW(RO,{look:"editorial",num:e,title:o,titleAccent:t,description:r,accentTracking:a,spaceBelow:n,className:s})}import{jsx as Fl,jsxs as IW}from"react/jsx-runtime";import{useEffect as gW,useState as KO}from"react";import{jsx as cW}from"react/jsx-runtime";var NO="sf-photo-hover";function Pc({sheet:e,name:o=NO}){return e?cW("style",{href:o,precedence:NO,dangerouslySetInnerHTML:{__html:e}}):null}import{jsx as UO,Fragment as mW}from"react/jsx-runtime";import{createContext as xW,useContext as Oc}from"react";var pW=Db["view-desktop"];function uW(e,o){return[...[...e].sort((t,r)=>t.below-r.below).map(t=>`(max-width: ${t.below-.02}px) ${t.slot}`),o].join(", ")}var Eh=e=>`${Math.ceil(e*1e4-1e-6)/100}vw`,Tc=e=>{let o=/^([\d.]+)vw$/.exec(e??"");return o?Math.min(1,Number(o[1])/100):1};function dde(e,o){return{phone:Eh(e.phone*Tc(o?.phone)),tablet:Eh(e.tablet*Tc(o?.tablet)),desktop:Eh(e.desktop*Tc(o?.desktop))}}function _h(e){if([e.phone,e.tablet,e.desktop].every(r=>Tc(r)>=1))return;let o=[{below:yt,slot:e.phone},{below:pW,slot:e.tablet}],t=o.filter((r,a)=>r.slot!==(o[a+1]?.slot??e.desktop));return uW(t,e.desktop)}function MO(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 HO=(e,o)=>e.steps.find(t=>o<=t.edge)?.slot??e.last,WO=e=>{let o=/^min\((.+)\)$/.exec(e);return o?o[1].split(/,\s*(?![^()]*\))/).map(t=>t.trim()):[e]};function $O(e,o){if(e===o)return e;let t=[...WO(e),...WO(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 zO(e,o){if(!o)return e;let t=MO(e),r=MO(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:$O(HO(t,s),HO(r,s))})),n=$O(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 hW={hasWidth:!1},Al=xW(hW);function mde(){return Oc(Al).hasWidth}function xde(e){let{bound:o}=Oc(Al);return o&&_h(o)||e}function jO(e){let{bound:o}=Oc(Al);return zO(e,o&&_h(o))}function GO({children:e}){let o=Oc(Al);return o.bound?UO(Al.Provider,{value:{hasWidth:o.hasWidth},children:e}):UO(mW,{children:e})}function qO({fallback:e,className:o,src:t,alt:r="",objectPosition:a,objectFit:n="cover",sizes:s="100vw",sizesFromCell:l=!1,priority:i=!1,deferFetch:d=!1,showBackground:c=!0,treatment:x}){let m=Jx(),h=jO(s),I=l?h:s,[C,P]=KO(!1),[O,F]=KO(!1),v=t||"";gW(()=>{P(!1),F(!1)},[v]);let y=cf(v),b=y&&!O?xa(v):{src:v},E=!v||C;return IW("div",{className:`relative h-full w-full overflow-hidden ${o??""}`,children:[Fl("div",{className:"absolute inset-0 flex items-center justify-center",style:c?{background:"var(--site-surface)"}:void 0,children:E?e:null}),Fl(Kd,{fill:Qs,children:v&&(y?Fl("img",{src:b.src,alt:r,...b.srcSet?{srcSet:b.srcSet,sizes:I}:{},decoding:"async",...d?{loading:"lazy"}:m,className:`absolute inset-0 h-full w-full${x?.className?` ${x.className}`:""}`,style:{display:C?"none":"block",objectFit:n,...a?{objectPosition:a}:{},...x?.style??{}},onError:()=>b.srcSet?F(!0):P(!0)}):Fl(xc,{src:v,alt:r,fill:!0,sizes:I,priority:i,...x?.className?{className:x.className}:{},style:{display:C?"none":"block",objectFit:n,...a?{objectPosition:a}:{},...x?.style??{}},onError:()=>P(!0)}))}),Fl(Pc,{sheet:x?.sheet})]})}import{jsx as yW}from"react/jsx-runtime";var Bl="sf-empty-hides",Ah="sf-empty-else",Ec="sf-head-core",_c="sf-head-box",Ll="holdsHeadCore",Rl="isHeadCore",SW=`.${Bl}:empty{display:none}.${Bl}:not(:empty)~.${Ah}{display:none}.${_c},.${Ec}{display:contents}.${_c}:not(:has(.${Ec}:not(:empty))){display:none}`;function Ac(){return yW("style",{children:SW})}var Mo={headingSmallUpTo700Small:"max-[700px]:text-[length:var(--size-headingSmall,26px)]",headingSmallUpTo700Large:"max-[700px]:text-[length:var(--size-headingSmall,28px)]",bodySmall:"text-[length:var(--size-body,15px)]",bodyLarge:"text-[length:var(--size-body,18px)]",headingSmall1:"text-[length:var(--size-headingSmall,28px)]",headingSmall2:"text-[length:var(--size-headingSmall,34px)]",labelSmall:"text-[length:var(--size-label,11px)]",label:"text-[length:var(--size-label,12px)]",labelLarge:"text-[length:var(--size-label,13px)]"},VO={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"},Fh="sf-itc-boxes",wW="sf-itc-steps";function Bh(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 Kde({num:e,title:o,description:t,boxes:r,steps:a,columns:n=3,cta:s,padTop:l,padBottom:i,bandPad:d,editing:c=!1,omitHead:x=!1,cardImage:m,cardImageUnit:h,cardText:I,rows:C,copies:P}){let O=Ct(),F=P!==void 0,v=C&&(F||(r?.blockCount??0)>0)?C:null,y=d??ik({padTop:l,padBottom:i},Mn("ProcessSteps")),b=F?[]:Bh(a),E=b.length>0?b:c&&!r&&!F?[1,2,3].map(g=>({tag:f("Column {n}",{n:g})})):[],B=VO[n]??VO[3],R=v?"grid-cols-1":B,k=v?"":" [&>*]:min-h-[560px]",L=I==="on-image";return Ee(ie,{as:"section",className:Zo(["relative z-[2] border-b border-line bg-bg",y.className].filter(Boolean).join(" "),O),style:{...y.style,...NP(m,h)},children:lr("div",{className:Zo(fC,O),children:[x?null:Ee(DO,{num:e,title:o?.trim()?Ve(o,!0):void 0,desc:t?.trim()?Ve(t,!1):void 0}),r&&!F?lr(bW,{children:[Ee(Ac,{}),v?Ee(uc.Provider,{value:{hand:v,ids:r.blockIds??[],boxes:[]},children:Ee(r,{className:`${Fh} ${Bl} sf-card grid ${R} gap-[2px] border border-line bg-line${k} [&>*]:bg-bg`,minEmptyHeight:260})}):Ee(r,{className:`${Fh} ${Bl} sf-card grid ${R} gap-[2px] border border-line bg-line [&>*]:min-h-[560px] [&>*]:bg-bg`,minEmptyHeight:260})]}):null,F&&P?Ee("div",{className:`${Fh} sf-card grid ${R} gap-[2px] border border-line bg-line${k} [&>*]:bg-bg`,children:v?Ee(uc.Provider,{value:{hand:v,copies:!0},children:P}):P}):null,E.length>0&&Ee("div",{className:`${wW} ${Ah} sf-card grid ${B} gap-[2px] border border-line bg-line`,children:E.map((g,w)=>{let T=(g.specs??[]).filter(S=>(S?.label??"").trim()||(S?.value??"").trim());return lr("article",{className:L?"flex flex-col bg-bg":"flex min-h-[560px] flex-col bg-bg",children:[lr("div",{className:L?"sf-card-image relative aspect-[5/3] overflow-hidden bg-surface max-[700px]:aspect-[4/3]":"sf-card-image relative aspect-[5/3] overflow-hidden border-b border-line bg-surface",children:[Ee(qO,{label:g.tag?.trim()||g.title?.trim()||`column-${w+1}`,src:g.image||void 0,sizes:"(max-width: 1100px) 100vw, 33vw",...r?{deferFetch:!0}:{}}),Ee("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-0 z-[1]",style:{background:`linear-gradient(180deg, ${Gs(.55)} 0%, transparent 30%, transparent 70%, ${Gs(.65)} 100%)`}}),L&&Ee("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-x-0 bottom-0 z-[1] h-[78%]",style:{background:`linear-gradient(180deg, transparent 0%, ${Gs(.73)} 55%, ${Gs(.92)} 100%)`}}),g.tag?.trim()&&Ee("span",{className:`absolute left-5 top-[18px] z-[2] font-mono ${Mo.label} uppercase tracking-[0.3em] text-accent`,children:rt(g.tag)}),g.meta?.trim()&&Ee("span",{className:L?`absolute right-5 top-[18px] z-[2] font-mono ${Mo.label} uppercase tracking-[0.24em] text-overlay-fg/80`:`absolute right-5 bottom-[18px] z-[2] font-mono ${Mo.label} uppercase tracking-[0.24em] text-overlay-fg/80`,children:rt(g.meta)}),L&&(g.title?.trim()||g.copy?.trim())&&lr("div",{className:"absolute inset-x-0 bottom-0 z-[2] flex flex-col gap-2.5 px-8 pb-7 pt-14 max-[700px]:px-6 max-[700px]:pb-6",children:[g.title?.trim()&&Ee("h3",{className:`flex min-h-[2em] flex-col justify-end font-heading3 ${Mo.headingSmall1} font-medium uppercase leading-none tracking-[-0.02em] text-overlay-fg ${Mo.headingSmallUpTo700Small}`,children:Ve(g.title,!0)}),g.copy?.trim()&&Ee("p",{className:`min-h-[3em] font-display ${Mo.bodySmall} leading-[1.5] text-overlay-fg/85`,children:Ve(g.copy,!1)})]})]}),L?T.length>0&&Ee("div",{className:"grid grid-cols-2 gap-2 border-t border-line px-8 py-7 max-[700px]:px-6 max-[700px]:py-6",children:T.map((S,M)=>lr("div",{className:"flex flex-col gap-1",children:[S.label?.trim()&&Ee("span",{className:`font-mono ${Mo.labelSmall} uppercase tracking-[0.24em] text-fg-dim`,children:rt(S.label)}),S.value?.trim()&&Ee("span",{className:`font-display ${Mo.bodyLarge} font-medium tracking-[-0.01em] text-fg`,children:rt(S.value)})]},M))}):lr("div",{className:"flex flex-1 flex-col gap-4 px-8 py-9 max-[700px]:px-6 max-[700px]:py-7",children:[g.title?.trim()&&Ee("h3",{className:`font-heading3 ${Mo.headingSmall2} font-medium uppercase leading-none tracking-[-0.02em] ${Mo.headingSmallUpTo700Large}`,children:Ve(g.title,!0)}),g.copy?.trim()&&Ee("p",{className:`font-display ${Mo.bodySmall} leading-[1.55] text-fg-dim`,children:Ve(g.copy,!1)}),T.length>0&&Ee("div",{className:"mt-auto grid grid-cols-2 gap-2 border-t border-line pt-4",children:T.map((S,M)=>lr("div",{className:"flex flex-col gap-1",children:[S.label?.trim()&&Ee("span",{className:`font-mono ${Mo.labelSmall} uppercase tracking-[0.24em] text-fg-dim`,children:rt(S.label)}),S.value?.trim()&&Ee("span",{className:`font-display ${Mo.bodyLarge} font-medium tracking-[-0.01em] text-fg`,children:rt(S.value)})]},M))})]})]},w)})}),s?.text&&Ee("div",{className:"mt-12 flex justify-end border-t border-line pt-8",children:lr(ma,{newTab:"auto",href:s.href,className:`group inline-flex items-center gap-3.5 border border-line px-6 py-4 font-mono ${Mo.labelLarge} uppercase tracking-[0.3em] text-fg transition-colors hover:border-accent hover:text-accent`,children:[rt(s.text),Ee("span",{"aria-hidden":!0,className:"text-accent transition-transform group-hover:translate-x-[3px]",children:"\u2192"})]})})]})})}var CW=["selected","highlighted"],YO="data-sf-card-state",JO="pointer-events-none absolute inset-0 border border-accent",ZO="pointer-events-none absolute inset-x-0 bottom-0 border-b-2 border-accent",QO="pointer-events-none absolute inset-0 border-2 border-accent outline outline-1 -outline-offset-1 outline-accent",eE="absolute inset-y-0 left-0 w-[3px] bg-accent",oE="absolute -inset-[2px] -z-[1] bg-[color-mix(in_oklab,var(--accent)_14%,transparent)]",tE="after:pointer-events-none after:absolute after:inset-0 hover:after:border-2 hover:after:border-accent",XO=e=>{let o=Kw.find(t=>t.role===e)?.token;if(!o)throw new Error(`card-state: the palette has no ink token for "${e}"`);return o},kW={[XO("muted")]:`var(${XO("fg")})`};function Lh(e){return e?.selected===!0}function Rh(e){return e?CW.filter(o=>e[o]===!0).join(" "):""}function rE(e,o="frame"){let t=Rh(e);return t?o==="frame"&&Lh(e)?{[YO]:t,className:"relative isolate",style:{...kW}}:{[YO]:t,className:"relative"}:{}}var vW={highlighted:!0},PW={},Fc="badge";function Jde(e,o=[]){return e.map((t,r)=>({...t,key:t.key||o[r]?.key||$s(t,r)}))}function aE(e){return!e||typeof e!="object"?!1:Object.entries(e).some(([o,t])=>o==="key"||o===Fc||o==="state"?!1:typeof t=="string"?t.trim()!=="":Array.isArray(t)?t.length>0:t!=null&&typeof t!="function")}function Zde(e,{chosen:o,badge:t}){let r=o.trim(),a=r?e.findIndex(n=>n.key===r):-1;return{rows:e.map((n,s)=>({...n,[Fc]:s===a?t:""})),states:e.map((n,s)=>s===a?vW:PW)}}function Qde(e){return{chosen:typeof e.highlightedCard=="string"?e.highlightedCard.trim():"",badge:typeof e.highlightBadge=="string"?e.highlightBadge:""}}function efe(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 nE="data-sf-card-press",sE=`${V0} appearance-none bg-transparent border-0 p-0 m-0`,lE=`${sE} cursor-pointer`,iE=sE;import{paymentMarkItems as TW,paymentMarks as OW}from"efficient-shell/icons/payment";var EW=[zS,US],dE=e=>EW.includes(e),fE=e=>TW({name:e.label,kind:e.kind}),_W=(e,o)=>e.kind===o.kind&&e.label===o.label&&(e.kind==="brand"?e.mark===o.mark:e.glyph===o.glyph);function cE(e){return OW(e.map(o=>({name:o.label,kind:o.kind}))).map(o=>({label:o.label,kind:e.find(t=>fE(t).some(r=>_W(r,o)))?.kind??""}))}function afe(e){return fE(e)[0]??null}var pE={heading:"Trusted by *teams worldwide*"},Bc=()=>[{src:"",alt:f("Logo one")},{src:"",alt:f("Logo two")},{src:"",alt:f("Logo three")},{src:"",alt:f("Logo four")},{src:"",alt:f("Logo five")}],AW=Qi.Logos,ife={label:"Logos",drawsPictures:!0,fields:AW,defaultProps:{items:[],contained:!0}};var FW=()=>Bc().map(e=>({label:e.alt}));function uE(e,o){let t=Zi(e,o,FW()).rows.filter(r=>r.label);return dE(De(e))?cE(t):t}var Dl="Flex",LW="Text",Nl=e=>Object.values(e??{}).filter(xE),RW=e=>e.type===ao&&De(e.props)!=="",hE=e=>{if(e.type!==Dl)return!1;let o=Nl(e.props).flat();return o.length>0&&o.every(RW)},Lc=e=>fn(e.props?.headPlacement)==="own-box"||hE(e),Dh=e=>e===void 0||Array.isArray(e)&&e.length===0;function IE(e){return e.type===LW?!0:e.type===Dl&&Nl(e.props).every(o=>o.every(IE))}var gE={ProcessSteps:e=>Dh(e.boxes)&&Bh(e.steps).length===0,Logos:e=>De(e)?DW(e):Dh(e.logos)&&Dh(e.items)};function DW(e){return VS(e)!==null&&uE(e,!1).length===0}function NW(e){return Nl(e.props).flat().every(o=>!Zi(o.props,!1).rows.some(aE))}function Rc(e){let o=Nl(e.props).flat();return o.some(Lc)&&o.every(t=>Lc(t)||IE(t))}function MW(e){if(!BW(e)||!Lc(e))return e;let o=hE(e)?NW(e):$(gE,String(e.type))?.(e.props??{})===!0;return{...e,props:{...e.props,[Rl]:o?"empty":!0}}}function mE(e){return qe(e,o=>We(o,MW))}function yE(e){let o=Object.entries(e.props??{}).filter(([,r])=>xE(r)).filter(([,r])=>r.length>0);if(o.length!==1||o[0][1].length!==1)return null;let t=o[0][1][0];return t?.type===Dl&&t.props?{key:o[0][0],inner:t}:null}function SE(e){if(e?.type!==Dl||!e.props)return e;if(Rc(e)){let t=mE(e);return{...t,props:{...t.props,[Ll]:!0}}}let o=yE(e);return!o||!Rc(o.inner)?e:{...e,props:{...e.props,[o.key]:[mE(o.inner)],[Ll]:!0}}}function bE(e){let o=e;if(!o||!Array.isArray(o.content))return e;let t=!1,r=o.content.map(a=>{let n=SE(a);return n!==a&&(t=!0),n});return t?{...o,content:r}:e}var HW=e=>$(gE,String(e.type))?.(e.props??{})===!0;function WW(e){if(e.type!==Dl||!e.props)return!1;let o=Rc(e)?null:yE(e),t=o?o.inner:e;if(!Rc(t))return!1;let r=Nl(t.props).flat().filter(Lc);return r.some(a=>De(a.props)!=="")&&r.every(HW)}function wE(e){return qe(e,o=>$W(o))}function $W(e){let o=!1,t=[];for(let r of e){if(WW(r)){o=!0;continue}let a=wE(r);a!==r&&(o=!0),t.push(a)}return o?t:e}function CE(e){let o=e;if(!o||!Array.isArray(o.content))return e;let t=!1,r=o.content.map(a=>{if(SE(a)!==a)return a;let n=wE(a);return n!==a&&(t=!0),n});return t?{...o,content:r}:e}var zW=["DocMasthead","AlloyWheelsListing"],Dc="titleLevel",UW=e=>e===2?"h2":"h1",Nh=e=>UW(e?.[Dc])==="h2";function kE(e){let o=e;if(!o?.content?.length)return e;let t=!1,r=!1,a=o.content.map(n=>zW.includes(n?.type??"")?t?(r=!0,{...n,props:{...n.props??{},[Dc]:2}}):(t=!0,n):n);return r?{...o,content:a}:e}import{readHidable as YW}from"efficient-easel/draw";var Gn="showFor";function vE(){return en("efficient.box-show-for-choices",()=>({choices:[],revision:0}))}var jW=e=>!!e&&typeof e=="object"&&typeof e.slug=="string"&&e.slug.trim()!==""&&typeof e.name=="string"&&e.name.trim()!=="";function Tfe(){return vE().choices}function Ofe(){return vE().revision}function PE(e){return jW(e)?{slug:e.slug,name:e.name}:void 0}import{readHidable as GW}from"efficient-easel/draw";var Mh="_wallLabelId",KW="_wallLabelledBy",Hh=e=>e.props?.id==null?"":String(e.props.id);function qW(e){if(!e||e.type!=="Text"||!Hh(e))return!1;let o=GW(e.props?.text);return!o.hidden&&o.text.trim()!==""}var VW=e=>!!e&&e.type==="Logos"&&e.props?.look==="marks"&&Hh(e)!=="",TE=(e,o,t)=>({...e,props:{...e.props,[o]:t}});function OE(e){let o=We(e,r=>qe(r,OE)),t=null;for(let r=1;r<o.length;r++){if(!VW(o[r])||!qW(o[r-1]))continue;let a=`sf-wall-label-${Hh(o[r-1])}`;t??=o.slice(),t[r-1]=TE(t[r-1],Mh,a),t[r]=TE(t[r],KW,a)}return t??o}function EE(e){return rn(e,OE)}var _E="_cardPressTitles",XW="_cardPressTitle";function Hfe(e,o){let t=e?.[_E],r=t&&typeof t=="object"?t[o]:void 0;return Array.isArray(r)&&r.length?r:void 0}var AE=(e,o)=>({...e,props:{...e.props,...o}});function JW(e){let o=e.props??{};return e.type!=="Text"||YW(o.text).hidden||typeof o[jo]=="string"||typeof o[Mh]=="string"?"":Rt(o)}function FE(e,o,t,r){return We(e,a=>{let n=JW(a);if(n&&!r.has(n))return r.add(n),t.push({field:n,gates:o}),AE(a,{[XW]:!0});if(a.type==="Text"||Array.isArray(a.props?.[Gn]))return a;let s=a.props?.[on],l=Array.isArray(s)&&s.length?[...o,s.filter(i=>typeof i=="string")]:o;return qe(a,(i,d)=>ea(a.type,d)?i:FE(i,l,t,r))})}function BE(e){let o,t=qe(e,(r,a)=>{let n=We(r,BE);if(!ea(e.type,a))return n;let s=[],l=FE(n,[],s,new Set);return s.length&&((o??={})[a]=s),l});return o?AE(t,{[_E]:o}):t}function LE(e){return rn(e,o=>We(o,BE))}import{pinnedDuplicateIndices as sz}from"efficient-easel/draw";import{jsx as at,jsxs as C_}from"react/jsx-runtime";import{createContext as J$,useContext as Z$,useEffect as Q$,useRef as ez,useState as k_}from"react";import{jsx as _r,jsxs as ME}from"react/jsx-runtime";import{useEffect as Kn,useRef as HE,useState as ya}from"react";import{jsx as RE,Fragment as ZW,jsxs as QW}from"react/jsx-runtime";import{useEffect as e$,useRef as DE,useState as o$}from"react";var t$="#t=0.001",r$=2;function a$(e,o){if(e.readyState<r$||!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 NE({src:e,objectPosition:o="50% 50%",onError:t}){let r=DE(null),a=DE(null),[n,s]=o$(!1);return e$(()=>{let l=r.current,i=a.current;if(n||!l||!i)return;let d=()=>{a$(l,i)&&s(!0)};return d(),l.addEventListener("loadeddata",d),l.addEventListener("seeked",d),()=>{l.removeEventListener("loadeddata",d),l.removeEventListener("seeked",d)}},[n]),QW(ZW,{children:[RE("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&&RE("video",{ref:r,src:`${e}${t$}`,muted:!0,playsInline:!0,preload:"auto",className:"hidden",onError:t})]})}var n$="data-part",jfe=Object.freeze({Flex:Object.freeze(["box","card","card-content"]),Grid:Object.freeze(["grid"]),Hero:Object.freeze(["hero","arrows","arrow","dots","dot","strip"]),HeroSlide:Object.freeze(["slide","hero-media","tint","overlay","hero-content"]),HeroSingle:Object.freeze(["hero","hero-media","tint","overlay","hero-content"]),ImageBlock:Object.freeze(["image-block","image-frame","image"]),ButtonBlock:Object.freeze(["button-block","button","button-icon"]),Text:Object.freeze(["text-block","text"]),Heading:Object.freeze(["heading-block","heading"]),LogoBlock:Object.freeze(["logo"]),MenuBlock:Object.freeze(["menu-block","heading","menu","menu-item","menu-link","menu-button"]),SiteHeader:Object.freeze(["header","header-content"]),SiteFooter:Object.freeze(["footer"]),FooterSection:Object.freeze(["footer-block","grid","legal-line","copyright"]),FooterLogo:Object.freeze(["logo-block","logo-link","tagline"]),FooterSocial:Object.freeze(["social-block","social-item","social-link"]),ProductGrid:Object.freeze(["product-grid-block","grid-head","grid-number","heading","description","view-all","count","grid","grid-empty"]),ProductCard:Object.freeze(["card","card-link","card-content","image-block","image-frame","image-plate","image","card-number","badges","badge","eyebrow","product-name","pattern","specs","price","price-note","swatches","swatch","sizes","size","buy","button","page-label"])});function Er(e){return{[n$]:e}}var s$=.5;function Ml({videoSrc:e,videoAv1Src:o,videoSrcPhone:t,videoAv1SrcPhone:r,posterSrc:a,posterSrcPhone:n,showVideo:s=!0,playbackRate:l=s$,objectPosition:i="50% 50%",objectPositionPhone:d,objectPositionTablet:c,quiet:x=!1,slideShown:m,laterSlide:h=!1,laterOfLead:I=!1}){let C=Qv(d,c),P=ul(),[O,F]=ya(!1),v=P==="below"&&!O,y=P==="first",b=a||"",E=n||"",B=HE(null),R=vl(B,!0,!0),k=R===void 0?void 0:R==="phone",L=uf({video:e,av1:o,videoPhone:t,av1Phone:r},k===!0),g=L.video||"",w=pf(g,L.av1),[T,S]=ya(!1),[M,N]=ya(!1),[G,q]=ya(!1),[le,ge]=ya(!1),Y=m??!0,[xe,ae]=ya(!1),me=P!=="first"&&!I,[pe,Ye]=ya(!1),bo=HE(null);Kn(()=>{if(!me)return;if(document.readyState==="complete"){Ye(!0);return}let se=()=>Ye(!0);return window.addEventListener("load",se,{once:!0}),()=>window.removeEventListener("load",se)},[me]),Kn(()=>{S(!1),N(!1),q(!1),ge(!1)},[g,b,E]),Kn(()=>{Y&&ae(!0)},[Y]),Kn(()=>{let se=bo.current;se&&(Y?se.play()?.catch(()=>{}):se.pause())},[Y,xe,pe]),Kn(()=>{if(!h||me&&!pe)return;let se=()=>F(!0);if(typeof window.requestIdleCallback=="function"){let W=window.requestIdleCallback(se,{timeout:2e3});return()=>window.cancelIdleCallback(W)}let Le=setTimeout(se,800);return()=>clearTimeout(Le)},[h,me,pe]),Kn(()=>{let se=bo.current;if(!se)return;let Le=()=>{se.playbackRate=l};return Le(),se.addEventListener("loadedmetadata",Le),()=>se.removeEventListener("loadedmetadata",Le)},[g,l]);let Bo=cf(b),Je=b&&(Bo||E)&&!M?xa(b):{src:b},fo=E&&!M?xa(E):{src:E},co=E&&!v&&!O?[{sized:fo,media:dx},...b?[{sized:Je,media:Ns}]:[]]:[];return ME("div",{ref:B,className:"absolute inset-0 z-[1]",...Er("hero-media"),children:[_r("div",{className:"absolute inset-0",style:{background:"var(--site-surface)"}}),co.map(({sized:se,media:Le})=>_r("link",{rel:"preload",as:"image",href:se.src,media:Le,fetchPriority:"high",...se.srcSet?{imageSrcSet:se.srcSet,imageSizes:"100vw"}:{}},Le)),(b||E)&&(Bo||E?(()=>{let se=_r("img",{...b?{src:Je.src}:{},...Je.srcSet?{srcSet:Je.srcSet,sizes:"100vw"}:{},alt:"",...v?{loading:"lazy"}:{},...y?{fetchPriority:"high"}:{},className:`absolute inset-0 z-[2] h-full w-full object-cover ${C.className}`.trim(),style:{display:T?"none":"block",objectPosition:i,...C.style},onError:Le=>{Le.currentTarget.currentSrc&&(Je.srcSet||fo.srcSet?N(!0):S(!0))}},E?void 0:b);return E?ME("picture",{children:[_r("source",{media:dx,srcSet:fo.srcSet||fo.src,sizes:"100vw"}),se]},`${b} ${E}`):se})():_r(xc,{src:b,alt:"",fill:!0,...v?{}:O?{loading:"eager"}:{priority:!0},sizes:"100vw",className:`z-[2] object-cover ${C.className}`.trim(),style:{display:T?"none":"block",objectPosition:i,...C.style},onError:()=>S(!0)},b)),s&&!x&&g&&k!==void 0&&xe&&(!me||pe)&&!G&&_r("video",{ref:bo,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:()=>q(!0),children:w.map(se=>_r("source",{src:se.src,type:se.type},se.src))},g),s&&x&&g&&k!==void 0&&xe&&(!me||pe)&&!le&&(!b||T)&&_r(NE,{src:g,objectPosition:i,onError:()=>ge(!0)},g)]})}import{jsx as ho,Fragment as ZE,jsxs as jh}from"react/jsx-runtime";import{jsx as qn}from"react/jsx-runtime";import{useRef as l$}from"react";import{SCROLL_EFFECTS_WITH_ZOOM as i$,scrollAttrs as d$}from"efficient-shell/format";function Nc({views:e,origins:o={},boxClass:t,boxAttrs:r,boxStyle:a,takesViewHide:n=!1,atEdge:s=!1,zoomInside:l="layer",zoomLayerClass:i,children:d}){let c=l$(null),x=Xd(),m=ot(),h=n?m:br,I=kl(c,!0,s),{attrs:C,style:P}=d$(e[I],o[I]),O=i$.includes(e[I].effect),F=ko(`${gn}${x.fill}${t?` ${t}`:""}`,h.className);if(O&&l==="picture")return h.scope(qn("div",{ref:c,className:F,...r,...h.attrs,...a?{style:a}:{},children:qn(pk,{attrs:C,style:P,children:x.inner(d)})}));let v=qn(uk,{children:x.inner(d)});if(O){let b=i??(x.fill?"h-full":void 0);return h.scope(qn("div",{ref:c,className:F,...r,...h.attrs,style:{...a,overflow:"clip"},children:qn("div",{...b?{className:b}:{},...C,style:P,children:v})}))}let y=Object.keys(P).length||a?{style:{...a,...P}}:{};return h.scope(qn("div",{ref:c,className:F,...r,...h.attrs,...C,...y,children:v}))}var Sa=["media","image","image2"],ir={media:"Media",image:"Image",image2:"Image 2"},Hl={media:"heroMedia",image:"heroImage",image2:"heroImage2"};function Mc(e,o){return e==="image"&&Xs(o)>1?"Image 1":ir[e]}var hce="Video file",Ice="Upload a video file",gce="AV1 file",yce="Upload an AV1 file";function f$(e,o){return pd("mediaType",Nd,o,[e])}var c$=new Set(Object.keys(Md)),WE="heroPart";function p$(e,o){return{...o,[WE]:e}}function Sce(e,{parts:o={},onlyFor:t,fallback:r,rules:a}){let n={...e},s=[...Object.values(o).flat(),...Nd.flatMap(l=>t[l])].filter(l=>!(l in e));if(s.length)throw new Error(`heroMediaFields: ${s.join(", ")} is not a row of this block`);for(let l of Nd)for(let i of t[l])n[i]=Qe(n[i],f$(l,r));for(let[l,i]of Object.entries(a??{}))i&&(n[l]=Qe(n[l],i));for(let l of Sa)for(let i of o[l]??[])n[i]=p$(l,n[i]);return n}function u$(e){let o=e?.[WE];return Sa.includes(o)?o:null}function $E(e,o){let t={};for(let[r,a]of Object.entries(e))u$(a)===o&&(t[r]=a);return t}function zE(e){if(!c$.has(e.type))return[];let o=[{part:"media",label:ir.media,depth:0}];return KC(e.type,e.props.mediaType)!=="video"&&(o.push({part:"image",label:Mc("image",e.props),depth:1}),Xs(e.props)>1&&o.push({part:"image2",label:Mc("image2",e.props),depth:1})),o}function ba(e,o){return`${e}::${o}`}function Hc(e){if(!e)return null;let o=e.lastIndexOf("::");if(o<=0)return null;let t=e.slice(o+2);return Sa.includes(t)?{nodeId:e.slice(0,o),part:t}:null}var Wl="data-sf-hero-part";import{MOTION_TIMING as m$}from"efficient-shell/format";var KE="grayscale(1) contrast(1.03)",kce="Black and white";function x$(e){return e===!0?{filter:KE}:{}}function h$(e){let{filter:o}=x$(e);return o?{style:{filter:o}}:{}}var wa="sf-photo-grayscale",Uh="data-sf-photo-host",UE={duration:"--sf-photo-hover-duration",delay:"--sf-photo-hover-delay"},Uc=`@media (hover:hover){.${wa}{filter:${KE};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))}.${wa}:hover,[data-sf-photo-host]:hover .${wa}{filter:none}}@media (hover:hover) and (prefers-reduced-motion:reduce){.${wa}{transition:none}}`;function qE(e){let o=m$.hover,t={...e.duration!==o.duration.default?{[UE.duration]:`${e.duration}s`}:{},...e.delay!==o.delay.default?{[UE.delay]:`${e.delay}s`}:{}};return Object.keys(t).length?t:void 0}function VE(e,o,t){if(e===!0)return h$(!0);if(t?.kind==="mono"){let r=qE(t);return{className:wa,sheet:Uc,...r?{style:r}:{}}}return e===!1?{}:o===!0?{className:wa}:{}}var YE="data-sf-repeat",Wh="sf-photo-zoom",I$="--sf-photo-zoom",vce="sf-photo-wash",Wc="sf-photo-wash-rest",$l="sf-photo-wash-hover",zc="sf-photo-frame",XE=(e,o)=>`:not([${YE}]:not(${o}) .${e})`,zh=(e,o)=>`[${YE}]${o} .${e}${XE(e,o)}`,$h=(e,o)=>`${o},${zh(e,":hover")},[${Uh}]:hover .${e}${XE(e,":hover")}`,jE=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))`,g$=`.${$l}{opacity:0}@media (hover:hover){.${Wc},.${$l}{transition:${jE("opacity")}}${$h($l,`.${zc}:hover .${$l}`)}{opacity:1}${$h(Wc,`.${zc}:hover .${Wc}`)}{opacity:0}}@media (hover:hover) and (prefers-reduced-motion:no-preference){.${Wh}{transition:${jE("transform")}}${$h(Wh,`.${zc}:hover .${Wh}`)}{transform:scale(var(${I$}))}}@media (hover:hover) and (prefers-reduced-motion:reduce){.${Wc},.${$l}{transition:none}}`,Pce="sf-photo-move";function Tce(e){if(!e||!e.zoom&&!e.darken)return null;let o=qE(e);return{className:zc,sheet:g$,...o?{style:o}:{}}}function JE(e){return e===!0?{[wa]:Uc}:{}}var $c="sf-box-reveal",Oce="sf-box-reveal",y$=8,GE=.3,Ece=`@media ${Ns}{.${$c}{opacity:0;transform:translateY(${y$}px);transition:opacity ${GE}s ease-out,transform ${GE}s ease-out}${zh($c,":hover")},${zh($c,":focus-within")}{opacity:1;transform:none}}@media ${Ns} and (prefers-reduced-motion:reduce){.${$c}{transition:none;transform:none}}`;import{hidableText as S$}from"efficient-easel/draw";var b$={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"},w$={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 QE(e){let o=e.isVideo&&gP(e.videoSource)==="youtube",t=e.isVideo&&yP(e.videoPlayback)==="click",r=o?SP(S$(e.youtubeUrl)):null,a=qC(e.mediaLayout);return{fromYouTube:o,onClick:t,youTubeId:r,backgroundFile:e.isVideo&&!o&&!t,desktopLayout:a,phoneLayout:VC(e.mediaLayoutPhone,a),twoPictures:!e.isVideo&&Xs(e)>1}}function zl(e,o){return yn(ha({_partMotion:e},o))}function Ul(e,o){return $n(ha({_partMotion:e},o))}var jc=e=>Ih({desktop:e.objectPosition,tablet:e.objectPositionTablet,phone:e.objectPositionPhone}),e_=Qs.img;function o_({entrance:e,scroll:o,origins:t,editing:r,className:a,attrs:n,style:s,zoomLayerClass:l,children:i}){return e?ho(hc,{views:e,editing:r,boxClass:a,boxAttrs:n,...s?{boxStyle:s}:{},children:i}):o?ho(Nc,{views:o,...t?{origins:t}:{},boxClass:a,boxAttrs:n,...s?{boxStyle:s}:{},...l?{zoomLayerClass:l}:{},children:i}):ho("div",{className:a,...n,...s?{style:s}:{},children:i})}function Vn(e,o){return VE(void 0,void 0,Bb(ha({_partMotion:e},o)))}function t_(e){return Sa.some(o=>Vn(e,o).className)?{hostAttrs:{[Uh]:""},sheet:Uc}:{}}function Gc({treatment:e,children:o}){return e.className?ho("div",{className:`absolute inset-0 ${e.className}`,...e.style?{style:e.style}:{},children:o}):ho(ZE,{children:o})}function Kc({color:e,opacity:o,passClicks:t=!0}){return o>0?ho("div",{className:t?"pointer-events-none absolute inset-0 z-[2]":"absolute inset-0 z-[2]",style:{background:e,opacity:Math.min(Math.max(o,0),100)/100},...Er("tint")}):null}function qc({part:e,editing:o,marked:t=!0,entrance:r,scroll:a=null,origins:n,className:s,children:l}){let i=o&&t?{[Wl]:e}:void 0;return ho(o_,{entrance:r,scroll:a,origins:n,editing:o,className:s,attrs:i,zoomLayerClass:e_,children:l})}function r_({partMotion:e,editing:o,children:t}){let r=zl(e,"media"),a=Ul(e,"media"),n=Vn(e,"media"),s=ho(Kd,{fill:Qs,children:t}),l=n.className?ho("div",{className:`absolute inset-0 z-[1] ${n.className}`,...n.style?{style:n.style}:{},children:s}):s;return r||a?ho(o_,{entrance:r,scroll:a,editing:o,className:"absolute inset-0 z-[1]",zoomLayerClass:e_,children:l}):ho(ZE,{children:l})}function a_({desktopLayout:e,phoneLayout:o,editing:t,marked:r=!0,partMotion:a,first:n,second:s,laterSlide:l=!1}){return jh("div",{className:`absolute inset-0 z-[1] grid ${b$[o]} ${w$[e]}`,"data-hero-layout":e,"data-hero-layout-phone":o,children:[ho(qc,{part:"image",editing:t,marked:r,entrance:zl(a,"image"),scroll:Ul(a,"image"),origins:jc(n),className:"relative overflow-hidden",children:jh(Gc,{treatment:Vn(a,"image"),children:[ho(Ml,{posterSrc:tt(n.src),showVideo:!1,laterSlide:l,objectPosition:n.objectPosition,objectPositionPhone:n.objectPositionPhone,objectPositionTablet:n.objectPositionTablet}),ho(Kc,{color:n.tintColor,opacity:n.tintOpacity})]})}),ho(qc,{part:"image2",editing:t,marked:r,entrance:zl(a,"image2"),scroll:Ul(a,"image2"),origins:jc(s),className:`relative overflow-hidden ${_v({desktop:e==="one",tablet:e==="one",mobile:o==="one"},{atSectionLine:!0})}`.trimEnd(),children:jh(Gc,{treatment:Vn(a,"image2"),children:[ho(Ml,{posterSrc:tt(s.src),showVideo:!1,laterSlide:l,objectPosition:s.objectPosition,objectPositionPhone:s.objectPositionPhone,objectPositionTablet:s.objectPositionTablet}),ho(Kc,{color:s.tintColor,opacity:s.tintOpacity})]})})]})}import{jsx as Ar,Fragment as C$,jsxs as k$}from"react/jsx-runtime";import{useEffect as v$,useRef as P$,useState as T$}from"react";import{PlaySolidIcon as O$}from"efficient-shell/icons/efficient-looks";function n_({youTubeId:e,ownPoster:o,background:t,editing:r}){let[a,n]=T$("large");return v$(()=>n("large"),[e]),e?k$(C$,{children:[!o&&a!=="none"&&Ar(jf,{src:a==="large"?bP(e):wP(e),alt:"",className:"absolute inset-0 z-[2] h-full w-full object-cover",onLoad:s=>{a==="large"&&s.currentTarget.naturalWidth<=120&&n("small")},onError:()=>n(a==="large"?"small":"none")},`${e}-${a}`),t&&!r&&Ar("div",{className:"pointer-events-none absolute inset-0 z-[3] overflow-hidden [container-type:size]","aria-hidden":"true",children:Ar("iframe",{src:yx(e,"background"),title:"",tabIndex:-1,allow:"autoplay; encrypted-media; picture-in-picture",className:"absolute left-1/2 top-1/2 h-[max(100%,56.25cqw)] w-[max(100%,177.78cqh)] -translate-x-1/2 -translate-y-1/2 border-0"})})]}):null}function s_({youTubeId:e,fileSrc:o,fileAv1Src:t,fileSrcPhone:r,fileAv1SrcPhone:a,playing:n,onPlay:s,editing:l}){let i=P$(null),d=vl(i,!0,!0)==="phone";if(!e&&!o)return null;let c=uf({video:o,av1:t,videoPhone:r,av1Phone:a},d),x=pf(c.video,c.av1);return n&&!l?e?Ar("iframe",{src:yx(e,"click"),title:Sx,allow:"autoplay; encrypted-media; picture-in-picture; fullscreen",allowFullScreen:!0,className:"absolute inset-0 z-[6] h-full w-full border-0 bg-overlay-scrim"}):Ar("video",{ref:m=>{i.current=m},...x.length===1?{src:x[0].src}:{},controls:!0,autoPlay:!0,playsInline:!0,className:"absolute inset-0 z-[6] h-full w-full bg-overlay-scrim object-contain",children:x.length>1&&x.map(m=>Ar("source",{src:m.src,type:m.type},m.src))},c.video):Ar("button",{ref:m=>{i.current=m},type:"button","aria-label":Sx,onClick:l?void 0:s,className:`absolute left-1/2 top-1/2 z-[4] grid h-16 w-16 -translate-x-1/2 -translate-y-1/2 place-items-center rounded-full bg-btn text-btn-ink shadow-lg transition-transform motion-reduce:transition-none ${l?"pointer-events-none":"cursor-pointer hover:scale-105"}`,children:Ar(O$,{size:28})})}function l_(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 i_}from"efficient-shell/format";var d_=["top","middle","bottom"],f_=["left","center","right"],c_="bottom",p_="left",E$={top:"Top",middle:"Middle",bottom:"Bottom"},_$={left:"Left",center:"Center",right:"Right"},spe="Up and down",lpe="Sideways",A$={top:"flex-start",middle:"center",bottom:"flex-end"},F$={left:"flex-start",center:"center",right:"flex-end"},B$="--sf-hero-phone-y",L$="--sf-hero-phone-x";function R$(e){return i_(d_,c_,e)}function D$(e){return i_(f_,p_,e)}function u_(e,o){let t=R$(e),r=D$(o),a={};return t!==c_&&(a[B$]=A$[t]),r!==p_&&(a[L$]=F$[r]),a}var N$="--sf-hero-phone-words-top",M$="--sf-hero-phone-words-bottom",H$="--sf-hero-phone-box-gap",ipe=100,dpe=90,fpe=28,W$=0,$$=200,cpe="Words space top",ppe="Words space bottom",upe="Space between boxes";function Gh(e){if(!(typeof e!="number"||!Number.isFinite(e)))return Math.min($$,Math.max(W$,Math.round(e)))}function m_(e,o,t){let r={},a=Gh(e),n=Gh(o),s=Gh(t);return a!==void 0&&(r[N$]=`${a}px`),n!==void 0&&(r[M$]=`${n}px`),s!==void 0&&(r[H$]=`${s}px`),r}function mpe(){return d_.map(e=>({label:E$[e],value:e}))}function xpe(){return f_.map(e=>({label:_$[e],value:e}))}import{hexToRgb as z$}from"efficient-shell/format";var U$=!0;var j$=[[0,".5"],[30,".1"],[60,".1"],[100,".85"]];function x_(e){let o=z$(e);return o?`${o.r},${o.g},${o.b}`:null}function h_(e){return e==null?U$:e!==!1}function I_(e){let o=(e?x_(e):null)??x_(er);return`linear-gradient(180deg, ${j$.map(([t,r])=>`rgba(${o},${r}) ${t}%`).join(", ")})`}import{hexToRgb as g_,parseOption as G$}from"efficient-shell/format";var y_="bottom";var K$=[{label:"Bottom",value:"bottom",cell:"bottom"},{label:"Top",value:"top",cell:"top"},{label:"Left",value:"left",cell:"left"},{label:"Right",value:"right",cell:"right"}],q$={bottom:180,top:0,left:270,right:90},V$=[[.55,0],[.15,18],[null,35],[null,55],[.85,100]],Y$=[[null,33],[.6,67],[.94,100]];function X$(e,o){let{r:t,g:r,b:a}=g_(e)??g_(er);return`rgba(${t},${r},${a},${o})`}function S_(e){return G$(K$,y_,e)}function b_(e=er,o=y_){let t=S_(o),r=(t==="top"||t==="bottom"?V$:Y$).map(([a,n])=>`${a===null?"transparent":X$(e,a)} ${n}%`);return`linear-gradient(${q$[t]}deg, ${r.join(", ")})`}function w_(e,o){let t=uo(e.overlayColor),r=uo(e.overlayPosition),a=uo(o)??er;return!t&&!r?{own:!1,color:a,position:null}:{own:!0,color:t??a,position:S_(r)}}var oz=J$({});function Upe({name:e,process:o,mediaType:t=Md.HeroSlide,mediaSrc:r,videoSpeed:a,poster:n,mediaAv1:s,mediaSrcPhone:l,mediaAv1Phone:i,posterPhone:d,objectPosition:c,objectPositionPhone:x,objectPositionTablet:m,tintColor:h=er,tintOpacity:I=0,groups:C,editing:P=!1,themeClassName:O,themeStyle:F,overlayColor:v,overlayPosition:y,mediaLayout:b,mediaLayoutPhone:E,mediaImage2:B,objectPosition2:R,objectPosition2Phone:k,objectPosition2Tablet:L,tintColor2:g=er,tintOpacity2:w=0,videoSource:T,youtubeUrl:S,videoPlayback:M,partMotion:N,laterSlide:G=!1}){let q=Ct(),le=ot(),{alignment:ge="left",textureOpacity:Y,textureOn:xe,textureColor:ae,quietVideo:me,phoneUpDown:pe,phoneSideways:Ye,phoneWordsTop:bo,phoneWordsBottom:Bo,phoneBoxGap:Je,holdReel:fo,reelHeld:co,shownSlide:se,ratioMin:Le}=Z$(oz),W=ul(),he=G&&W==="first",Ie=ez(null),[Ze,Oo]=k_(se===void 0?void 0:!1);Q$(()=>{let ht=Ie.current;Oo(se===void 0||!ht?void 0:l_(ht.closest(".hero-track"),"data-slide-name")[se]===ht)});let Re=t==="video",Ue=Re?tt(r):void 0,po=Re?tt(n):tt(r)??tt(n),Eo=Re?{av1:tt(s),phone:tt(l),av1Phone:tt(i),poster:tt(d)}:{},Kt=typeof a=="number"?a/100:1,{fromYouTube:pr,onClick:Ya,youTubeId:Xa,backgroundFile:qt,desktopLayout:ur,phoneLayout:Ja,twoPictures:_s}=QE({isVideo:Re,videoSource:T,videoPlayback:M,youtubeUrl:S,mediaLayout:b,mediaLayoutPhone:E}),[Za,Kr]=k_(!1);Za&&co===!1&&Kr(!1);let As=!Za,qr=w_({overlayColor:v,overlayPosition:y},ae),Yi=Re?null:zl(N,"image"),Qa=Re?null:Ul(N,"image"),Fs=t_(N),Xi=at(Gc,{treatment:Re?{}:Vn(N,"image"),children:at(Ml,{videoSrc:qt?Ue:void 0,videoAv1Src:qt?Eo.av1:void 0,videoSrcPhone:qt?Eo.phone:void 0,videoAv1SrcPhone:qt?Eo.av1Phone:void 0,posterSrc:po,posterSrcPhone:Eo.poster,showVideo:qt,playbackRate:Kt,objectPosition:c,objectPositionPhone:Re?void 0:x,objectPositionTablet:Re?void 0:m,quiet:me,slideShown:Ze,laterSlide:G,laterOfLead:he})}),Ji=C_("section",{ref:Ie,className:ko(`${Le?"relative flex min-h-full w-full flex-col overflow-clip":"relative h-full w-full overflow-hidden"}${O?` ${O}`:""}`,le.className),...le.attrs,style:F,"data-slide-name":e??"","data-slide-process":o??"","data-slide-media":qt&&Ue?"video":"still",...Fs.hostAttrs,...Er("slide"),children:[at(Pc,{sheet:Fs.sheet}),at(r_,{partMotion:N,editing:P,children:_s?at(a_,{laterSlide:G,desktopLayout:ur,phoneLayout:Ja,editing:P,partMotion:N,first:{src:r,objectPosition:c,objectPositionPhone:x,objectPositionTablet:m,tintColor:h,tintOpacity:I},second:{src:B,objectPosition:R,objectPositionPhone:k,objectPositionTablet:L,tintColor:g,tintOpacity:w}}):pr||Yi||Qa?C_(qc,{part:Re?"media":"image",editing:P,entrance:Yi,scroll:Qa,origins:jc({objectPosition:c,objectPositionTablet:m,objectPositionPhone:x}),className:"absolute inset-0 z-[1]",children:[Xi,pr&&at(n_,{youTubeId:Xa,ownPoster:!!po,background:!Ya,editing:P})]}):Xi}),Ya&&at(s_,{youTubeId:Xa,fileSrc:pr?void 0:Ue,fileAv1Src:pr?void 0:Eo.av1,fileSrcPhone:pr?void 0:Eo.phone,fileAv1SrcPhone:pr?void 0:Eo.av1Phone,playing:Za,onPlay:()=>{Kr(!0),fo?.()},editing:P}),As&&!_s&&at(Kc,{color:h,opacity:I,passClicks:!1}),As&&h_(xe)&&at("div",{className:"absolute inset-0 z-[2]",style:{background:qr.own?b_(qr.color,qr.position??void 0):I_(qr.color),...Y!==void 0?{opacity:Y/100}:null},...Er("overlay")}),As&&at("div",{className:[Le?"sf-hero-group-layer relative z-[3] mx-auto w-full flex-1 max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)] pt-[140px] pb-14":"sf-hero-group-layer absolute inset-0 z-[3] mx-auto max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)] pt-[140px] pb-14",q?lC:"",P?"sf-hero-group-layer-edit":""].filter(Boolean).join(" "),style:{...qw,...u_(pe,Ye),...m_(bo,Bo,Je)},...Er("hero-content"),children:C&&at(C,{className:"sf-hero-group-zone",minEmptyHeight:160})})]});return le.scope(he?at(Uf,{children:Ji}):Ji)}var v_=Array.from({length:3},(e,o)=>({name:`Slide ${o+1}`,process:"Category",mediaType:"image",mediaVideo:"",poster:""}));import{newNodeId as __}from"efficient-easel/draw";import{isNodeList as rz}from"efficient-easel/data";var Kh=3,qh=()=>({type:j,props:{direction:"column"},slots:{[Ce]:[{type:"ImageBlock"},{type:j,props:{direction:"column"},slots:{[Ce]:[{type:"Text",props:xr()},{type:"Text"}]}}]}}),P_=()=>Array.from({length:Kh},qh);var T_=["","","","","",""],O_="#ticker",jl="strip",Vh={sectionAccent:Ir,line:!1};function tz(e){return(Array.isArray(e.tickerItems)?e.tickerItems:[]).map(o=>typeof o?.text=="string"?o.text:"").filter(o=>o.trim()!=="")}function Yh(e){return tz(e).length>0}function Xpe(e){return e.showTicker!==!1&&Yh(e)}var A_=(e,o)=>({type:e.type,props:{...o?.(e.type)??{},...Object.fromEntries(Object.entries(e.props).map(([t,r])=>[t,rz(r)?r.map(a=>A_(a,o)):r]))}}),az=e=>{let[o]=Bt([qh()],a=>__(a)),{id:t,...r}=A_(o,e).props;return r},nt={Hero:{slot:"slides",childType:"HeroSlide",addLabel:"Add slide",slider:!0,seeds:()=>v_.map(e=>({...e}))},HeroSlide:{slot:"groups",childType:"HeroGroup",addLabel:`Add ${Rs.toLowerCase()}`,seeds:()=>[],addBlocked:Jm,notice:Zm},HeroSingle:{slot:"boxes",childType:"HeroGroup",addLabel:`Add ${Rs.toLowerCase()}`,seeds:()=>[],addBlocked:Jm,notice:Zm},ProcessSteps:{slot:Ls,childType:j,addLabel:`Add ${Rs.toLowerCase()}`,seeds:e=>Array.from({length:Kh},()=>az(e)),skipSeed:e=>Array.isArray(e.steps)&&e.steps.length>0}},E_=1,nz={slot:jl,childType:j,addLabel:`Add ${Rs.toLowerCase()}`,seeds:()=>[],addBlocked:e=>e.length>=E_?"This Hero has its Scrolling Bar already. Delete it to add another.":null,notice:e=>e.length>E_?`This Hero holds ${e.length} Scrolling Bars. Keep one and delete the others.`:null},F_={Hero:{[jl]:nz}};function iue(e){for(let[o,t]of Object.entries(e)){if(mo(nt,o)&&$(nt,o)!==t)throw new Error(`lib/document/slot-specs: "${o}" already has a slot spec`);nt[o]=t}}function due(e,o){let t=$(nt,e);return t?{slot:t.slot,children:t.seeds(o).map(r=>({type:t.childType,props:{id:__(t.childType),...r}}))}:null}var lz=["GalleryB"];function B_(e){let o=e.content;if(!Array.isArray(o))return e;let t=!1,r=o.map(s=>{let l=s?.type;if(!l||!lz.includes(l))return s;let i=$(nt,l);if(!i?.legacy)return s;let d=s.props??{},c=d[i.slot];if(Array.isArray(c)&&c.length>0)return s;let x=i.legacy(d);if(!x.length)return s;t=!0;let m=String(d.id??l),h=x.map((I,C)=>({type:i.childType,props:{id:`${i.childType}-${m}-${C}`,...I}}));return{...s,props:{...d,[i.slot]:h}}}),a=new Set(sz(r)),n=a.size?r.filter((s,l)=>!a.has(l)):r;return a.size&&(t=!0),t?{...e,content:n}:e}var iz={"Logos.logosPerRow":"columns","HeroSlide.tintOpacity":"overlay","Split.textBgTint":"overlay"},dz={"Footprint.source":"typed"};function L_(e){let o=e.props,t=!1;if(e.type&&o)for(let[r,a]of Object.entries(iz)){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(dz)){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],KS(l)&&l!==a&&!De(i)&&(i[ro]=l),o=i,t=!0}if(e.type&&o){let r=xd(e.type,o);r!==o&&(o=r,t=!0)}if(o){let r=qe({props:o},a=>We(a,L_));r.props!==o&&(o=r.props,t=!0)}return t?{...e,props:o}:e}function R_(e){return ed(e,o=>We(o,L_))}import{readHidable as fz}from"efficient-easel/draw";var $t=j,zt=Ce;function Ca(e){if(e.theme)return Zt(e.theme);let o=e.site?.themePresets;return o?Zt({selected:e.site?.selectedPreset??0,themes:[...o]}):void 0}function cz(e,o){return o===0?`${e}~box`:`${e}~box-${o+1}`}var N_=new Set(["id"]),Fr={},Gl=[],pz={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"]},uz=Object.keys(pz),ka=["Breadcrumb","DocBody","Form","SubmitBuild","Footprint","FAQ","ContactLocations","ProcessSteps",...uz,"Stats","Logos","PaymentBadges","PaymentLogosBlock","FitmentFinder","DocMasthead","DocTabs","Timeline","TimelineTrack","OrderSummary","Chart","Mockup","Integrations","Countdown","FeaturedCover","IntroBleed","SectionHeader","TitleWithButtons","Prose","ParagraphsA","Banner","Cards"];function oo(e){for(let[o,t]of Object.entries(e)){if(mo(Fr,o)&&$(Fr,o)!==t)throw new Error(`lib/sections/section-to-box: "${o}" already has a row`);Fr[o]=t}}function Br(e){return $(Fr,e)}function mz(e){return mo(Fr,e)&&Gl.includes(e)}function M_(e,o=ka){return mo(Fr,e)&&(o.includes(e)||mz(e))}function Oue(e){let o=$(bt,e);if(!o)throw new Error(`lib/sections/section-to-box: "${e}" has no head row in SPLITTABLE_SECTIONS`);let t=[{kind:"text",key:o.num,role:"eyebrow"},{kind:"text",key:o.title,role:"heading"}];return o.description&&t.push({kind:"text",key:o.description,role:"body"}),o.headRows.includes("linkText")&&o.headRows.includes("linkHref")&&t.push({kind:"button",key:"linkText",href:"linkHref"}),t}var Xh=e=>fz(e),Me=e=>Xh(e).text.trim()!=="";function xz(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 hz=e=>e==="heading"?xr():e==="eyebrow"?Xt():{};function Iz(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 gz(e,o){if(e===void 0)return{};if(typeof e=="string")return{variant:e};let t=o[e.key];return{variant:(typeof t=="string"?$(e.map,t):void 0)??e.fallback}}function D_(e,o,t,r,a={}){let n={...o};for(let s of e){let[l,i,d]=typeof s=="string"?[s,s,void 0]:s;if(t[l]===void 0)continue;let c=d?d(t[l],t,a):t[l];c===void 0?delete n[i]:n[i]=c,r(l,i,c===void 0)}return n}function yz(e){let o=new Set([...N_,"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 Jh=e=>fn(e.headPlacement)==="own-box";function Sz(e){return Jh(e)?"its head sits in a Box of its own above it (own-box): the row draws the head inline":void 0}function bz(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 wz(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 Cz(e,o,t){if(!t.press)for(let r of wz(e)){let a=bz(o,r);if(a!==void 0)return a}}function va(e,o,t={}){let r=e.props,a=(o.ownBoxConverts?void 0:Sz(r))??Cz(o,r,t)??o.skip?.(r);if(a!==void 0)return{node:e,nodes:[e],carried:[],dropped:[],siteWrites:[],skipped:a};let n=String(r.id??e.type),s=[],l=[],i=new Set,d=(y,b)=>{s.push({key:y,home:b}),i.add(y)},c=r._partStyles??{},x=yz(o),m=0,h=(y,b)=>({type:y,props:{...b,id:`${n}~${y}-${++m}`}}),I=(y,b,E,B,R,k,L)=>{if(R){for(let w of y??[]){let T=typeof w=="string"?w:w[0];E[T]!==void 0&&L(T,`nothing \u2014 the ${B} has no parts, so it is not drawn`)}return}let g=typeof b=="function"?b(r,t):b??{};return D_(y??[],g,E,(w,T,S)=>L(w,S?`nothing \u2014 the old value draws nothing (${B}: no ${T})`:`${k}${B}: ${T}`),t)},C=y=>Bt(y,b=>`${n}~${b}-${++m}`),P=(y,b,E)=>{let B=y.of?y.of(b):Array.isArray(b[y.key])?b[y.key]:[],R=typeof y.props=="function"?y.props(r,t):y.props??{},k=B.map((S,M)=>{let N=S??{},G=y.item?.(N,M,r)??{},q=O(G.reverse?[...y.parts].reverse():y.parts,N,!1,`item ${M+1}: `);return y.flat?G.props?q.map(le=>({...le,props:{...le.props,...G.props,id:le.props.id}})):q:[h($t,{name:`${y.name} ${M+1}`,...R,...G.props??{},[zt]:q})]});if(y.groups){let S=y.groups;return E(y.key,B.length?`one Box per item (${B.length}), in a Box per group`:"nothing \u2014 the list is empty"),ud(B.map(M=>M??{}),S.of,S.of).map((M,N)=>{let G=M.items.map(ae=>ae.item),q=S.parts?O(S.parts,S.head?.(G,r)??{},!1,`group ${N+1}: `):[],le=M.items.map(ae=>k[ae.index]),ge=S.perRow?.(G.length,r),Y=Number.isInteger(ge)&&ge>=1?ge:1,xe=[];if(S.perRow&&Y<le.length)for(let ae=0;ae*Y<le.length;ae++)xe.push(le.slice(ae*Y,(ae+1)*Y).flat());return h($t,{name:`${S.name} ${N+1}`,...S.props??{},[zt]:[...q,h($t,{name:`${S.itemsName} ${N+1}`,...S.itemsProps?.(G.length,r)??{},[zt]:xe.length?xe.map((ae,me)=>h($t,{name:`${S.rowName??`${S.itemsName} row`} ${me+1}`,...S.rowProps??{},[zt]:ae})):le.flat()})]})})}let L=y.perRow?.(r),g=y.perRow?Number.isInteger(L)&&L>=1?L:1:0;if(E(y.key,(B.length?y.flat?`each item's parts (${B.length} items), in order`:`one Box per item (${B.length}), its parts inside`:"nothing \u2014 the list is empty")+(g&&B.length?`, in rows of ${g}`:"")),!g)return k.flat();let w=typeof y.rowProps=="function"?y.rowProps(r,t):y.rowProps??{},T=[];for(let S=0;S*g<k.length;S++){let M=k.slice(S*g,(S+1)*g).flat(),N=y.rowFiller?g-k.slice(S*g,(S+1)*g).length:0;T.push(h($t,{name:`${y.rowName??`${y.name} row`} ${S+1}`,...w,[zt]:[...M,...Array.from({length:N},(G,q)=>h($t,{name:`Empty ${q+1}`,...y.rowFiller,[zt]:[]}))]}))}return T},O=(y,b,E,B)=>{let R=[],k=(g,w)=>E?d(g,w):void 0,L=g=>E?c[g]:void 0;for(let g of y)if(!(g.when&&!g.when(r,E?void 0:b)))switch(g.kind){case"text":{let w=Xh(b[g.key]);if(!w.text.trim()&&!(E&&t.press&&o.pressKeepsEmpty?.includes(g.key))){k(g.key,"nothing \u2014 empty words draw nothing, so no block");break}let T=hz(g.role??"body"),{_partStyles:S,...M}=T,N=Iz(T,g.styleFrom?{...g.style,...g.styleFrom(r,t)}:g.style,L(g.key),g.props?.align);R.push(h("Text",{text:g.mark==="accentLead"?xz(w.text):g.mark==="accentItalic"?Ds(w.text):w.text,...M,...g.props??{},...N,...w.hidden?{_hidden:!0}:{}})),k(g.key,`${B}Text block: its words${w.hidden?", hidden":""}`);break}case"button":{let w=Xh(b[g.key]);if(!w.text.trim()){k(g.key,"nothing \u2014 no words, no button"),k(g.href,"nothing \u2014 no button to link"),typeof g.variant=="object"&&k(g.variant.key,"nothing \u2014 no button to style");break}let T=typeof b[g.href]=="string"&&b[g.href]?b[g.href]:"#",S={...g.style??{},...L(g.key)??{}};R.push(h("ButtonBlock",{label:w.text,href:T,...typeof g.props=="function"?g.props(b,t):g.props??{},...gz(g.variant,b),...Object.keys(S).length?{_partStyles:{label:S}}:{},...w.hidden?{_hidden:!0}:{}})),k(g.key,`${B}Button block: its words`),k(g.href,`${B}Button block: its link`),typeof g.variant=="object"&&k(g.variant.key,`${B}Button block: its Style`);break}case"image":{let w=b[g.key];if(typeof w!="string"||!w){k(g.key,"nothing \u2014 no picture, no block"),g.alt&&k(g.alt,"nothing \u2014 no picture to describe");break}let T=g.alt&&typeof b[g.alt]=="string"?b[g.alt]:"";R.push(h("ImageBlock",{src:w,alt:T,...g.props??{}})),k(g.key,`${B}Image block: its picture`),g.alt&&k(g.alt,`${B}Image block: its alt text`);break}case"list":{R.push(...P(g,b,k));break}case"group":{let w=O(g.parts,b,E,B),T=I(g.box,g.props,b,`${g.name} Box`,!w.length&&!g.keepEmpty,B,k);T&&R.push(h($t,{name:g.name,...T,[zt]:w}));break}case"block":{let w=g.parts?O(g.parts,b,E,B):[],T=I(g.box,g.props,b,`${g.type} block`,!!g.parts&&!w.length&&!g.keepEmpty,B,k);T&&R.push(h(g.type,{...T,...g.slot?{[g.slot]:w}:{}}));break}case"core":{let w=g.as??e.type,T={...g.headless?{}:{headPlacement:"own-box"},...g.props??{}},S=g.keep==="rest"?Object.keys(b).filter(N=>!x.has(N)&&!(N in T)):g.keep;for(let N of S)b[N]!==void 0&&(T[N]=b[N],k(N,`the ${w} block inside the Box`));if(g.keep==="rest"){for(let G of Object.keys(g.props??{}))b[G]!==void 0&&!x.has(G)&&k(G,`nothing \u2014 the ${w} block inside the Box has the row's own value`);b.headPlacement!==void 0&&k("headPlacement",`the ${w} block inside the Box: own-box`);let N=Object.fromEntries(Object.entries(c).filter(([G])=>!x.has(G)));Object.keys(N).length&&(T._partStyles=N)}for(let[N,G]of Object.entries(g.rename??{}))b[N]!==void 0&&(T[G]=b[N],k(N,`the ${w} block inside the Box: ${G}`));if(g.derive){Object.assign(T,g.derive.props(b,t));for(let N of g.derive.reads)b[N]!==void 0&&k(N,`the ${w} block inside the Box`)}let M=typeof g.slots=="function"?g.slots(b,t):g.slots??{};for(let[N,G]of Object.entries(M))T[N]=G.flatMap(q=>"kind"in q?P(q,b,k):C([q]));R.push(h(w,T));break}}return R},F=(y,b)=>{let E=b===0?"Box":`${y.name} Box`,B=O(y.parts,r,!0,b===0?"":`${E}: `),R=typeof y.boxProps=="function"?y.boxProps(r,t):y.boxProps??{},k=D_(y.box??[],R,r,(L,g,w)=>d(L,w?`nothing \u2014 the old value draws nothing (${E}: no ${g})`:`${E}: ${g}`),t);return{type:$t,props:{name:y.name,...k,[zt]:B,id:cz(n,b)}}},v=[o,...o.also??[]].map(F);r._partStyles!==void 0&&d("_partStyles","each old part's style moved to its new part");for(let[y,b]of Object.entries(o.reads??{}))r[y]!==void 0&&d(y,b);for(let[y,b]of Object.entries(o.drop??{}))y in r&&(l.push({key:y,why:b}),i.add(y));for(let y of Object.keys(r))N_.has(y)||i.has(y)||l.push({key:y,why:"not in the row \u2014 not carried"});return{node:v[0],nodes:v,carried:s,dropped:l,siteWrites:[...o.site?.(e,t)??[]]}}function H_(e,o=Gl,t={}){let r=e.content;if(!Array.isArray(r))return e;let a=!1,n=r.flatMap(s=>{let l=s&&typeof s.type=="string"&&o.includes(s.type)?$(Fr,s.type):void 0;if(!l)return[s];let i=va(s,l,t);return i.skipped!==void 0?[s]:(a=!0,i.nodes)});return a?{...e,content:n}:e}function W_(e,o=Gl,t={}){if(!Array.isArray(e))return[];let r=[];return e.forEach((a,n)=>{let s=a&&typeof a.type=="string"&&o.includes(a.type)?$(Fr,a.type):void 0;if(!s)return;let l=va(a,s,t);l.skipped===void 0&&r.push({index:n,node:l.node,nodes:l.nodes})}),r}import{BLOCK_FIXED_WIDTH as kz,BLOCK_SIZE_KEYS as vz,parseBlockWidthFit as Yc,phoneKey as $_,parseTextFit as Vc,tabletKey as z_,viewKeyAt as U_}from"efficient-easel/draw";import{sideLengthAt as Pz}from"efficient-easel/screen/lib/content/length-units";var Tz="sf-block-size",Kl=["width","minWidth","maxWidth"],Xc=e=>`${e}Unit`,Lr=e=>typeof e=="number"&&Number.isFinite(e)&&e>=0?e:void 0,Oz={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"}},q_={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"}},Ez={desktop:q_.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"}},_z={two:{desktop:"view-wide:[.flex-row>*>&]:grow"},three:{desktop:"view-desktop:[.flex-row>*>&]:grow",tablet:"view-wide:max-view-desktop:[.flex-row>*>&]:grow"}},V_="max-view-wide:grow!";function Y_(e){return Jc(e).mode.phone==="fill"}var Az={desktop:"--sf-bw",tablet:"--sf-bw-t",phone:"--sf-bw-p"},Fz={fill:"data-sf-width-fill",fixed:"data-sf-width-fixed"},Bz="data-sf-min-width",j_={two:{desktop:"wide",phone:ex.phone},three:ex},Lz={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)]"]}},Zh={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)]"]}},Rz={minWidth:{desktop:Zh.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:Zh.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)]"]}},Dz=["widthFit",...Kl],G_={desktop:"view-wide:whitespace-nowrap view-wide:[&_*]:whitespace-nowrap!",phone:"max-view-wide:whitespace-nowrap max-view-wide:[&_*]:whitespace-nowrap!"},Qh={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!"},Nz={desktop:Qh.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!"},X_={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"},Mz={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:X_.phone},J_={desktop:"view-wide:max-w-full",phone:"max-view-wide:max-w-full"},K_={desktop:"view-desktop:max-w-full",tablet:"view-wide:max-view-desktop:max-w-full",phone:J_.phone};function Z_(e){let o=Jc(e);return o.sides.filter(t=>o.mode[t]==="fill").map(t=>_z[o.three?"three":"two"][t]).filter(Boolean).join(" ")}function Q_(e){let{three:o,sides:t,mode:r,lengthPerSide:a}=Jc(e),n=d=>o?j_.three[d]:j_.two[d],s={fill:[],fixed:[],min:[]},l=a("minWidth");for(let d of t){let c=r[d];(c==="fill"||c==="fixed")&&s[c].push(n(d)),l[d]!==void 0&&s.min.push(n(d))}let i={};for(let d of["fill","fixed"])s[d].length&&(i[Fz[d]]=s[d].join(" "));return s.min.length&&(i[Bz]=s.min.join(" ")),i}function Jc(e){let o=Dz.some(a=>{let n=e[a]?.tablet;return a==="widthFit"?Yc(n)!==void 0:Lr(n)!==void 0}),t=o?["desktop","tablet","phone"]:["desktop","phone"],r=(a,n)=>{let s=a(n?.desktop),l=o?a(n?.tablet)??s:s;return{desktop:s,tablet:l,phone:a(n?.phone)??l}};return{three:o,sides:t,perSide:r,lengthPerSide:a=>{let n=Xc(a),s={};for(let i of t)s[U_(a,In(i))]=Lr(e[a]?.[i]),s[U_(n,In(i))]=e.units?.[a]?.[i];let l=i=>Pz(s,{length:a},n,In(i),"length")??void 0;return{desktop:l("desktop"),tablet:l("tablet"),phone:l("phone")}},mode:r(Yc,e.widthFit)}}function eI(e,{atSectionLine:o=!1}={}){let t=["desktop","tablet","phone"].some(w=>Vc(e.textFit?.[w])==="ellipsis"),r=o&&!t,a=r?Ez:q_,n=r?Rz:Zh,s=r?Nz:Qh,l=[],i={},d={},{three:c,sides:x,lengthPerSide:m,mode:h}=Jc(e),I=m("width");for(let w of x){let T=h[w];!T||T==="fit"||(l.push(c?a[w][T]:Oz[w][T]),T==="fixed"&&(i[Az[w]]=mn(I[w]?.value??kz.fallback,I[w]?.unit)))}for(let w of Kl.filter(T=>T!=="width")){let T=m(w);for(let S of x){let M=T[S];if(M===void 0)continue;let[N,G]=c?n[w][S]:Lz[w][S];i[N]=mn(M.value,M.unit),l.push(G)}}let C=Vc(e.textFit?.desktop),P=Vc(e.textFit?.phone),O=w=>{let T=Lr(e.minFont?.[w]);return T===void 0?void 0:e.units?.minFont?.[w]==="vw"?`${T}vw`:String(T)},F=O("desktop"),v=O("phone"),y=Vc(e.textFit?.tablet),b=y!==C||P!==void 0?y:void 0,E=O("tablet"),B=E!==F||v!==void 0?E:void 0,R=Lr(e.maxWidth?.desktop),k=Lr(e.maxWidth?.tablet)??R,L={desktop:R!==void 0,tablet:k!==void 0,phone:(Lr(e.maxWidth?.phone)??k)!==void 0},g=(w,T,S)=>{if(T!=="line"&&T!=="ellipsis")return;let M=w==="tablet"?void 0:w,N=(G,q)=>S||!M?G[w]:q[M];if(T==="line"){l.push(N(s,G_));return}if(l.push(N(Qh,G_)),l.push(N(Mz,X_)),c&&!S&&w==="desktop")for(let G of["desktop","tablet"])L[G]||l.push(K_[G]);else L[w]||l.push(N(K_,J_))};return b?(g("desktop",C,!0),g("tablet",b,!0),g("phone",P??b,!0)):(g("desktop",C,!1),g("phone",P??C,!1)),C&&(d[rr.fit]=C),b&&(d[rr.fitTablet]=b),P&&(d[rr.fitPhone]=P),F!==void 0&&(d[rr.min]=F),B!==void 0&&(d[rr.minTablet]=B),v!==void 0&&(d[rr.minPhone]=v),!r&&(b||B!==void 0)&&(d[rr.edge]=""),l.length===0&&Object.keys(d).length===0?null:{className:[Tz,...l].join(" "),style:i,attrs:d}}function Rue(e){if(Lr(e.maxWidth?.desktop)!==void 0)return!0;let o=Yc(e.widthFit?.desktop);return o==="fill"||o==="fixed"}function e1(e){return["desktop","tablet","phone"].some(o=>{let t=Yc(e.widthFit?.[o]);return t==="fixed"||t==="fill"||Lr(e.minWidth?.[o])!==void 0})}function Zc(e){let o={};for(let t of vz){let r=e[t],a=e[z_(t)],n=e[$_(t)];(r!==void 0||a!==void 0||n!==void 0)&&(o[t]={desktop:r,tablet:a,phone:n});let s=Xc(t),l={desktop:e[s],tablet:e[z_(s)],phone:e[$_(s)]};(l.desktop!==void 0||l.tablet!==void 0||l.phone!==void 0)&&((o.units??={})[t]=l)}return o}var o1={label:"Button",defaultProps:{label:"",href:"#",variant:"primary",align:"left",contained:!0}};import{parseHexColor as Hz}from"efficient-shell/format";import{convertLength as Wz}from"efficient-easel/screen/lib/content/length-units";import{viewKeyAt as t1}from"efficient-easel/draw";var Ut=(e,o,t,r)=>o===t?e:Wz(e,o,t,r,{min:0,max:200,step:4}),Pa={textFit:"line",textFitPhone:"wrap"},Ta={...z,[jo]:""},{label:ume,href:mme,...$z}=o1.defaultProps,no=$z,Oa={buttonFillOpacity:0,buttonBorder:{width:0},buttonPaddingTop:0,buttonPaddingRight:0,buttonPaddingBottom:0,buttonPaddingLeft:0},X={...Am,sectionAccent:0},Xn={sectionAccent:-1},Q=[...gr,"sectionHeightMode","sectionHeightValue","sectionHeightUnit","sectionHeightModeTablet","sectionHeightValueTablet","sectionHeightUnitTablet","sectionHeightModePhone","sectionHeightValuePhone","sectionHeightUnitPhone","sectionCorners","sectionCornerSides","sectionBorder","sectionBorderTablet","sectionBorderPhone","sectionAccent",ek.unitKey,...rk,...JC,"anchor",qs,...vn,Td,...Rd,...gc,...Ld(["widthFit",...Kl,...Kl.map(Xc)]),...Object.values(Ao)],Yn="a section width key, ignored since efficient-web-builder 45 (an old key; a section's own width has new keys, lib/content/section-width), so dropping it changes nothing",J={sectionSurface:"read by nothing in src/ (searched 2026-10-24): a retired theme key that draws nothing today, so dropping it changes nothing",widthMode:Yn,fullWidth:Yn,pageWidth:Yn,backgroundWidth:Yn,contentWidth:Yn,contentMax:Yn},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)"])),Qc={[Nt]:"read by `wrapperPad`: a value named here is drawn as it is, so the section's own px is not added; the Box's padding is the total"};function re(e,o){let t=ye(e.sectionPaddingTop)??0,r=ye(e.sectionPaddingBottom)??0,a=ye(e.sectionPaddingTopTablet),n=ye(e.sectionPaddingBottomTablet),s=hr(e.sectionPaddingUnit),l=hr(e.sectionPaddingUnitTablet),i=hr(e.sectionPaddingUnitPhone),d=Array.isArray(e[Nt])?e[Nt]:[],c=(P,O)=>d.includes(P)?0:O,x=(P,O,F,v,y,b)=>{let E=ye(e[P]);if(E!==void 0)return E+Ut(c(P,b),"px",i,"mobile");let B=v===void 0?{n:y,unit:s,key:F}:{n:v,unit:l,key:O};return Ut(B.n,B.unit,i,"mobile")+Ut(c(B.key,b),"px",i,"mobile")},m=(P,O,F,v,y,b)=>F!==void 0?{[P]:F+Ut(c(P,b??y),"px",l,"tablet")}:b===void 0?{}:{[P]:Ut(v,s,l,"tablet")+Ut(c(O,b),"px",l,"tablet")},h=P=>({desktop:Co[P],tablet:t1(Co[P],"tablet"),phone:t1(Co[P],"mobile")}),I=h("top"),C=h("bottom");return{[I.desktop]:t+Ut(c(I.desktop,o.top),"px",s,"desktop"),[C.desktop]:r+Ut(c(C.desktop,o.bottom),"px",s,"desktop"),...m(I.tablet,I.desktop,a,t,o.top,o.topTablet),...m(C.tablet,C.desktop,n,r,o.bottom,o.bottomTablet),[I.phone]:x(I.phone,I.tablet,I.desktop,a,t,o.topPhone),[C.phone]:x(C.phone,C.tablet,C.desktop,n,r,o.bottomPhone)}}var de=e=>[...["sectionPaddingTop","sectionPaddingBottom","sectionPaddingTopTablet","sectionPaddingBottomTablet","sectionPaddingTopPhone","sectionPaddingBottomPhone"].map(o=>[o,o,(t,r)=>re(r,typeof e=="function"?e(r):e)[o]]),["sectionPaddingUnit","sectionPaddingUnit"],["sectionPaddingUnitTablet","sectionPaddingUnitTablet"],["sectionPaddingUnitPhone","sectionPaddingUnitPhone"]];function st(e,o){let t={};for(let[a,n]of ax)e[a]!==void 0&&(t[n]=e[a]);let r=Ud(e,Mn(o));return{...t,sectionPaddingTop:r.top,sectionPaddingBottom:r.bottom}}var Rr=e=>[...ax.map(([o,t])=>[o,t,(r,a)=>st(a,e)[t]]),["sectionPaddingTop","sectionPaddingTop",(o,t)=>st(t,e).sectionPaddingTop],["sectionPaddingBottom","sectionPaddingBottom",(o,t)=>st(t,e).sectionPaddingBottom]],zz={kind:"heading-case-upper",styles:["heading-1","heading-2","heading-3"]},xme=e=>o=>Me(o.props[e])?[zz]:[],fe=(e,o)=>({kind:"text",key:e,role:"eyebrow",props:z,...o?{style:o}:{}}),Jn=e=>({kind:"group",name:"Chip",props:{...A,...Yt("main"),...wo(6,14)},parts:[fe(e,{color:"background",...H("label",12),weight:600,letterSpacing:.16})]}),r1=e=>e.background!=="transparent",Uz=(e,o)=>{let[t,r]=[e,o].map(a=>typeof a=="string"?a.trim():"");return t?r?`[${t} ]{color=text}${r}`:`[${t}]{color=text}`:r},ql={align:"right",alignPhone:"left"},jz=(e,o,t)=>{let r=a=>Uz(a[e],a[o]);return{kind:"block",type:"Text",when:(a,n)=>n!==void 0&&r(n)!=="",box:[[e,"text",(a,n)=>r(n)],[o,"text",(a,n)=>r(n)]],props:t}},Vl=(e,o,t,r={})=>jz(e,o,{...Ta,...ql,...r,_partStyles:{text:{...Lo,color:"labels",...t,case:Lo.case,...ql}}}),Zn=(e,o)=>typeof e=="number"&&Number.isInteger(e)&&e>=0?e:Ca(o)?.selected??0,a1="var(--site-surface-2)",ep=(e,o)=>Ca(o)?.themes[Zn(e.sectionAccent??0,o)],Ho=(e,o)=>(t,r)=>{if(!o?.(t,r))return Yt(e);let a=ep(t,r)?.[e];return a?{fillColor:a}:{}},op=(e,o)=>Dr(e,o)>=0,n1=e=>e.startsWith("#")&&Hz(e)!==null,tp=(e,o,t)=>{let r=e?.trim();if(r&&n1(r))return{fillColor:r};let a=sx(r);if(a)return Yt(a);let n=r===a1?ep(o,t):void 0;return n?{fillColor:Tw(n)}:{}},rp=e=>{let o=e?.trim();return!o||o==="transparent"||o===Wt||sx(o)||o===a1||n1(o)?void 0:"it paints a colour that no Box Fill can hold"},Dr=(e,o)=>{let t=Ca(o)?.themes;return t&&r1(e)?Ow(t,Zn(e.sectionAccent,o)):-1},Nr=(e,o,t)=>{let r=Dr(o,t);return r>=0?r:e},Qn=(e,o)=>{let t=Ca(o)?.themes,r=t?Ew(t,Zn(e,o)):-1;return r>=0?r:e},Ea=(e,o)=>{let t=Dr(e,o);return t>=0?{sectionAccent:t}:{}},Mr=(e,o)=>r1(e.props)&&Dr(e.props,o)<0?[{kind:"band-preset",page:Zn(e.props.sectionAccent,o)}]:[],es=(e,{view:o="desktop",to:t="px",maxPx:r=1/0}={})=>{let{siteGutter:a,siteGutterUnit:n,siteGutterPhone:s,siteGutterPhoneUnit:l}=e.site??{},i=In(o),d=(x,m,h)=>{let I=hr(m),C=yw(x,I,"spacing",h);return C===null?null:Ut(C,I,"px",i)},c=o==="desktop"?d(a,n,eC)??cC(a):d(s,l,oC)??uC(s)??hC(a,n);return Ut(Math.min(r,c),"px",t,i)},Yl=Object.fromEntries(["Top","Right","Bottom","Left","TopPhone","RightPhone","BottomPhone","LeftPhone"].map(e=>[`sectionPadding${e}`,0])),Xl=e=>({top:0,right:0,bottom:0,left:0,...e}),oI=(e,o,t,r=[])=>({kind:"group",name:e,keepEmpty:!0,props:(a,n)=>({...A,...Yl,...Ho("surface")(a,n),...typeof t=="function"?t(a,n):t}),box:[[o,"bgImage"],Ge.kind,Ge.duration,Ge.delay],parts:r});import{phoneKey as xI,readHidable as hI}from"efficient-easel/draw";import{isNodeList as hU,newId as IU}from"efficient-easel/data";function s1(e){return Math.min(4,Math.max(2,e??3))}var yme={eyebrow:"Label",title:"Section *heading.*"},Gz=Qi.Cards,l1={label:"Cards",fields:Gz,defaultProps:{eyebrow:"",title:"",items:[],columns:3}};var wme={eyebrow:"Highlight",title:"Key *features.*"},Cme=()=>[{label:f("Feature label one")},{label:f("Feature label two")},{label:f("Feature label three")},{label:f("Feature label four")},{label:f("Feature label five")},{label:f("Feature label six")}],i1={label:"Key Features",defaultProps:{eyebrow:"",title:"",items:[],columns:3}};import{parseOption as Kz}from"efficient-shell/format";var tI="cardPlace",qz=["","top-line"];function Tme(e){return Kz(qz,"",e[tI])}var Ome="absolute left-5 top-0 z-10 -translate-y-1/2 bg-bg px-2",Eme="data-sf-top-line",Vz=new Set(["Cards",ao]);function _me(e){return typeof e=="string"&&Vz.has(e)}var Yz=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 Ame(e,o,t){return!t||!o?.linesBetween||o.index!==0?e:Yz(e)?{...e,top:0}:e}var Fme="outsideFramedCard";var ap={sectionBorder:{top:0,right:1,bottom:1,left:0},...Yt("background")},Xz={gap:0,gapPhone:0,sectionBorder:{top:1,right:0,bottom:0,left:1},shadow:!0},_a=e=>({direction:"row",columns:e,columnsTablet:e,...Xz}),d1=(e={})=>Ae(Fc,{...z,tag:"p",[tI]:"top-line"},e,!0),os=(e=Zr)=>{let o=sn(e);return{...o,props:{...ap,...o.props},slots:{[Ce]:[...o.slots?.[Ce]??[],d1()]}}},rI=(e=!1)=>{let o=ln(e);return{...o,props:{...ap,...o.props}}},Jz={name:"name",time:"time",note:"note",price:"price"},Zz={textStyle:"body-1",...H("body",16),weight:500,lineHeight:1.5},Qz={...Lo,...H("label",12),letterSpacing:.18,lineHeight:1.5},eU={textStyle:"body-1",...H("body",14),lineHeight:1.6},oU={textStyle:"body-1",fontRole:"heading",...H("headingSmall",20),weight:500,color:"accent",lineHeight:1.5},tU={...H("label",11),letterSpacing:.25},rU={gap:16,gapPhone:16,sectionBorder:{top:0,right:0,bottom:0,left:0},shadow:!1},np=e=>({direction:"row",columns:e,...rU}),aI=[...new Set([...Object.keys(_a(1)),...Object.keys(np(1))])],nI=()=>{let e=Jz,o={tag:"p",widthFit:"fill"};return{type:j,props:{...A,name:"Card",justify:"between",gap:16,gapPhone:16,...wo(24),sectionBorder:{top:1,right:1,bottom:1,left:1},...Yt("surface"),shadow:!0},slots:{[Ce]:[d1(tU),{type:j,props:{...A,name:"Words",gap:8,gapPhone:8},slots:{[Ce]:[Ae(e.name,{...z,...o},Zz),Ae(e.time,{...oe,...o},Qz),Ae(e.note,{...oe,...o},eU)]}},Ae(e.price,{...z,...o},oU)]}}};import{tabletKey as u1}from"efficient-easel/draw";import{VIEW_DESKTOP_MIN as sp}from"efficient-easel/draw";var lp=yt,sI=sp,f1=960,c1=yt,p1={min:lp,max:1600,step:10},ip="stackBelow";function Ume(e){if(!(typeof e!="number"||!Number.isFinite(e))&&!(e<p1.min||e>p1.max))return Math.round(e)}var aU=e=>`sf-stack-${e}`,nU=e=>`sf-stack-${e}-gutter`,sU=e=>`sf-stack-${e}-outer`,ts=e=>`${e-.02}px`;function jme(e,o={}){let t=o.gutter!==!1,r=`.${aU(e)}`,a=`.${nU(e)}`,n=`.${sU(e)}`,s=[];if(e>lp){let l=`${r}>.sf-block-size,${r}>[data-easel-block]>[data-sf-part-host]>.sf-block-size`,i=Math.min(e,sp);s.push(`@media (min-width:${lp}px) and (max-width:${ts(e)}){${r}${r}{flex-direction:column}.sf-gap-overlap${r}{--sf-gap-overlap-eff:calc(var(--sf-gap-overlap) / 2)}${l}{width:min(var(--sf-bw-p,100%),100%);flex-grow:0}}`,`@media (min-width:${lp}px) and (max-width:${ts(i)}){.sf-gap-zone${r}{gap:var(--sf-gap-len-tablet,var(--sf-gap-len-phone,calc(var(--sf-gap-len) / 2)))}}`),e>sp&&s.push(`@media (min-width:${sp}px) and (max-width:${ts(e)}){.sf-gap-zone${r}{gap:var(--sf-gap-len-phone,calc(var(--sf-gap-len) / 2))}}`)}return t&&s.push(`@media (max-width:${ts(e)}){${a}${a}{padding-inline:${rC.frame}}}`),t&&e<f1&&s.push(`@media (min-width:${e}px) and (max-width:${ts(f1)}){${a}${a}{padding-inline:${tC}}}`),e>c1&&s.push(`@media (min-width:${c1}px) and (max-width:${ts(e)}){`+["top","bottom","left","right"].map(l=>`.sf-pad-${l}-phone:has(>${n}),.sf-pad-${l}-phone${n}{padding-${l}:var(--sf-pad-${l[0]}-phone)!important}`).join("")+"}"),s.join("")}import{parseOption as lU}from"efficient-shell/format";var iU=["standard","editorial","simple","essay"];function Aa(e){if(e==="ProductGrid")return"shelf";let o=$(bt,e)?.headStyle;return lU(iU,"standard",o)}var Jl={standard:64,editorial:60,simple:36,essay:28,shelf:20},dU={SectionHeader:"accent",FAQ:"accent",FitmentFinder:"accent",FitmentTable:"accent",SpecTable:"accent",RelatedProducts:"accent",Collections:"accentNum"};function fU(e){if(e==="SectionHeader")return{num:"num",title:"title",description:"description",link:!0};let o=$(bt,e);if(!o)throw new Error(`section-head-looks: "${e}" has no head row in SPLITTABLE_SECTIONS`);return{num:o.num,title:o.title,description:o.description,link:o.headRows.includes("linkText")&&o.headRows.includes("linkHref")}}function fp(e,o,t){let r=`editorial:${e}|${o}|${t}`,a=dp.get(r);if(a)return a;let n=I1({num:e,title:o,description:t,link:!1});return dp.set(r,n),n}var Wo={[ip]:sI},iI={top:0,right:0,bottom:1,left:0},$o=(e,o,t,r)=>({sizeToken:{step:e,px:r,fluid:{minPx:o,vw:t}}}),cp=(e,o,t={})=>fe(e,{...H("label",o),...t}),pp=(e,o)=>({kind:"text",key:e,role:"heading",props:z,style:{textStyle:"heading-2",...o}}),dI=yt,cU=sI,fI=(e,o,t,r,a={})=>({kind:"text",key:e,props:{...oe,align:"right",alignPhone:"left",...t?{maxWidth:t,maxWidthPhone:dI}:{},...a},style:{textStyle:"body-5",fontRole:"heading",alignPhone:"left",...H("body",o),...r,...a}}),h1={...no,align:"right",alignPhone:"left",...Oa},lI=e=>({kind:"button",key:"linkText",href:"linkHref",variant:"ghost",props:h1,style:{...St(e),color:"labels"}}),m1=(e,o,t)=>{let r=t.role==="heading"?{tag:"h2"}:{};return{kind:"block",type:"Text",when:a=>a[e]===void 0,props:{...z,...r,...t.props,text:o,_partStyles:{text:{...t.role==="eyebrow"?pU(Xt()):{},...t.style}}}}},pU=e=>e._partStyles.text??{},rs={widthFitPhone:"fill"};function cI(e){if(e.kind!=="group")return e;if(e.name==="Words"){let o=e.props;return{...e,props:typeof o=="function"?(t,r)=>({...o(t,r),...rs}):{...o,...rs}}}return{...e,parts:e.parts.map(cI)}}function uU(e,o){let t=$(dU,e),r=t==="accent",a=cp(o.num,14,{color:r?"accent":"labels"}),n=t==="accentNum"&&a.kind==="text"?{...a,mark:"accentLead"}:a,s=pp(o.title,r?{...$o("headingMedium",36,5,64),case:"upper",lineHeight:.95,letterSpacing:-.025}:{...H("headingMedium",56,36),case:"none",lineHeight:1,letterSpacing:-.03}),l=e==="Collections";return{kind:"group",name:"Header",props:{...A,direction:"row",align:"end",justify:"between",gap:40,gapPhone:12,share:"content",sectionBorder:iI,sectionPaddingBottom:24,sectionPaddingBottomPhone:20},parts:[{kind:"group",name:"Title",props:{...A,...rs,direction:"row",align:"end",gap:40,gapPhone:12,share:"content"},parts:[{kind:"group",name:"Number",props:{...A,...rs,align:"start",gap:12},parts:[{kind:"image",key:"logoSrc",alt:"logoAlt",props:{aspect:"auto",contained:!1}},n,...l?[m1(o.num,"==01== / Collections",n)]:[]]},{kind:"group",name:"Heading",props:{...A,...rs},parts:[s,...l?[m1(o.title,`Three ranges,
|
|
320
|
-
one standard.`,s)]:[]]}]},{kind:"group",name:"Words",props:{...A,...rs,gap:12,maxWidth:340,maxWidthPhone:dI},parts:[...o.description?[fI(o.description,14,void 0,{lineHeight:1.5})]:[],...o.link?[lI(14)]:[],...l?[{kind:"block",type:"ButtonBlock",props:{...h1,variant:"ghost",label:"View all",href:"/wheels",_partStyles:{label:lI(14).style}}}]:[]]}]}}function up(e,o){return e.kind==="text"?o.includes(e.key)?{...e,mark:"accentItalic"}:e:e.kind==="group"?{...e,parts:e.parts.map(t=>up(t,o))}:e}function I1(e){let o=pp(e.title,{...$o("headingMedium",40,5.5,80),case:"upper",weight:500,lineHeight:1,letterSpacing:-.03});return{kind:"group",name:"Header",props:{...A,direction:"row",align:"end",justify:"between",gap:40,gapPhone:14,share:"content",sectionBorder:iI,sectionPaddingBottom:32,...Wo},parts:[{kind:"group",name:"Title",props:{...A,direction:"row",align:"end",gap:40,gapPhone:14,share:"content",...Wo},parts:[{kind:"group",name:"Number",props:{...A,sectionPaddingBottom:8},parts:[{...cp(e.num,13),props:{...z,...Pa}}]},up(o,[e.title])]},{kind:"group",name:"Words",props:{...A,sectionPaddingBottom:4,maxWidth:360,[u1("maxWidth")]:cU,maxWidthPhone:dI},parts:e.description?[fI(e.description,14,void 0,{lineHeight:1.5},{[u1("align")]:"left"})]:[]}]}}function x1(e,o){return{kind:"group",name:"Header",props:{...A,gap:16,gapPhone:16},parts:[cp(e.num,13),pp(e.title,o)]}}var g1=[["para",{...St(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}]],mU=e=>g1.some(([o])=>o===e.titleSize)?e.titleSize:"lg";function xU(e){return{kind:"group",name:"Header",props:{...A,direction:"row",align:"center",justify:"between",gap:16,share:"content",stickTop:!0,sectionBorder:iI,sectionPaddingTop:12,sectionPaddingBottom:12},parts:[{kind:"group",name:"Title",props:{...A,direction:"row",align:"end",gap:24,share:"content"},parts:[cp(e.num,13,{color:"labels",letterSpacing:.22,lineHeight:1}),...g1.map(([o,t])=>({...pp(e.title,t),when:r=>mU(r)===o}))]},{kind:"group",name:"Words",props:{...A,direction:"row",align:"center",justify:"end",gap:20,share:"content"},parts:[...e.description?[fI(e.description,13,340,{lineHeight:1.4})]:[],...e.link?[lI(13)]:[]]}]}}function mp(e){return Aa(e)==="shelf"?{titleSize:"the Header Box's title Text part: its size, as the old shelf title drew it (lib/document/blocks/general/section-head-looks)"}:{}}var dp=new Map,pI={...H("headingMedium",44,32),case:"upper",weight:500,lineHeight:1,letterSpacing:-.02};function lt(e){let o=dp.get(e);if(o)return o;let t=fU(e),r=Aa(e),a=r==="editorial"?I1(t):r==="simple"?x1(t,pI):r==="essay"?x1(t,{...H("headingMedium",38,28,"headingSmall"),case:"upper",lineHeight:1,letterSpacing:-.02}):r==="shelf"?xU(t):uU(e,t);return dp.set(e,a),a}var Fa={Series:"transparent",StatsParagraph:"transparent",TimelineTrack:Wt,Stats:void 0};var Zl=(e,o,t,r)=>({sectionBorder:{top:e,right:o,bottom:t,left:r}}),T1=e=>o=>s1(ye(o.columns)??ye(e.columns)),gU="inline is the head the row draws; an own-box node is skipped (`skip`)",yU={kind:"text",key:"title",role:"heading",props:z,style:{textStyle:"heading-3",...pI}},hp=e=>{let o=na(typeof e.background=="string"?e.background:void 0,Fa.Series);return o&&o!=="transparent"?o:void 0},xp=e=>hp(e)===Wt,SU={...A,justify:"between",gap:16,gapPhone:16,sectionHeightMode:"fixed",sectionHeightValue:340,sectionHeightUnit:"px",sectionPaddingTop:36,sectionPaddingRight:28,sectionPaddingBottom:32,sectionPaddingLeft:28,sectionPaddingTopPhone:36,sectionPaddingRightPhone:28,sectionPaddingBottomPhone:32,sectionPaddingLeftPhone:28},y1={...A,direction:"row",justify:"between",gap:12,share:"content",phoneRow:2,[xI("share")]:"content"},bU=e=>{let o=hp(e)?1:2;return{...A,direction:"row",columns:4,columnsTablet:2,gap:o,gapPhone:o}},uI={...St(12),letterSpacing:.22,lineHeight:1.5},S1=e=>Me(e.viewLabel)&&!hI(e.viewLabel).hidden,it=e=>hI(e).text?.trim?.()??"",Ip=e=>Object.fromEntries(Object.entries(e).filter(([,o])=>uo(o)!==void 0)),II=e=>e.map(([o,t,r])=>({key:o,label:t,...r?{multiline:!0}:{}})),wU=II([["num","Number"],["since","Corner note"],["title","Card title"],["body","Card body",!0],["count","Count"],["countLabel","Count word"]]),CU=II([["label","Label"],["value","Value"],["body","Card body",!0]]),Ql=(e,o,t,r,a,{reads:n=["cards"],keep:s=[]}={})=>({kind:"group",name:e,props:o,parts:[{kind:"core",as:ao,headless:!0,keep:s,derive:{reads:n,props:l=>Cd(r(l),t)},slots:(l,i)=>({[Pe]:[a(l,i)]})}]}),O1=e=>Array.isArray(e.cards)?e.cards:[],E1=e=>(Array.isArray(e.items)?e.items:[]).map(o=>Ip({title:it(o?.label),href:typeof o?.href=="string"?o.href.trim():""})).filter(o=>o.title!==void 0).map((o,t)=>({key:$s(Hm(o),t),...o})),kU=e=>E1(e).some(o=>uo(o.href)!==void 0),_1=[{key:Bm.label,label:"Feature label"},{key:Bm.href,label:"Link",kind:"link"}],b1=e=>nO(e.eyebrowLook,"KeyFeatures")==="filled",vU={name:"Key Features",boxProps:(e,o)=>({...X,direction:"column",gap:44,gapPhone:32,...Ho("surface")(e,o),...Zl(1,0,1,0),...re(e,sc)}),box:[...Q,...de(sc)],parts:[{kind:"group",name:"Heading",props:{...A,direction:"row",align:"end",gap:20,wrap:!0,share:"content",phoneRow:2,[xI("share")]:"content"},parts:[{...Jn("eyebrow"),when:b1},{...fe("eyebrow"),when:e=>!b1(e)},yU]},Ql("Cards",e=>({...A,..._a(T1(i1.defaultProps)(e))}),_1,E1,e=>rI(kU(e)),{reads:["items"]})],drop:{...J,...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"}},w1=(e,o)=>({...ap,...Ho("background")(e,o)}),C1=e=>{let o=T1(l1.defaultProps)(e);return{...A,..._a(o)}},PU=II([["title","Card title"],["body","Card body",!0]]),A1=e=>(Array.isArray(e.items)?e.items:[]).map((o,t)=>({key:typeof o?.key=="string"&&o.key?o.key:$s(Hm(o),t),title:it(o?.title),body:it(o?.body)})),F1=e=>{let o={},t={};for(let[r,a]of Object.entries(e.props??{}))r!=="id"&&(hU(a)?t[r]=a.map(F1):o[r]=a);return{type:String(e.type),props:o,...Object.keys(t).length?{slots:t}:{}}},k1=(e,o)=>{let t=mI(e)?rI(TU(e)):os(),r=Array.isArray(e.template)?e.template.map(F1):[t],[a]=r;return r.length===1&&a.type===j?{...a,props:{...w1(e,o),...a.props}}:{type:j,props:{...A,...w1(e,o),name:"Card"},slots:{[Ce]:r}}},mI=e=>e.cardStyle==="label-only",B1=e=>A1(e).map((o,t)=>{let r=e.items[t]?.href;return Ip({key:o.key,title:o.title,href:typeof r=="string"?r.trim():""})}),TU=e=>B1(e).some(o=>uo(o.href)!==void 0),v1=e=>Array.isArray(e.template)&&e.template.length===0,P1=["dataSource","dataSourceOptions","highlightedCard","highlightBadge"];function L1(){let e=t=>({key:IU("card"),title:f(t),body:f("A short line about this card.")}),o=[e("Card title one"),e("Card title two"),e("Card title three")];return{eyebrow:f("Label"),title:f("Section *heading.*"),items:o}}var OU={name:"Cards",ownBoxConverts:!0,boxProps:(e,o)=>({...X,direction:"column",gap:36,gapPhone:28,...Ho("surface")(e,o),...re(e,Xf)}),box:[...Q,...de(Xf)],parts:[{...lt("Cards"),when:e=>!Jh(e)},{...Ql("Cards",C1,PU,A1,k1,{reads:["items"],keep:P1}),when:e=>!v1(e)&&!mI(e)},{...Ql("Cards",C1,_1,B1,k1,{reads:["items"],keep:P1}),when:e=>!v1(e)&&mI(e)}],drop:{...J,...te,columns:'Box "Cards": its Columns and tablet Columns',cardStyle:"the Card list's template: the Cards card, or under Label only the Label only card (a cell Box, a Mark Box, the label Text)",template:"the Card list's template (the card Box takes the old cell's ground and lines)",headPlacement:"an own-box node lands without its head; inline is the head the row draws",eyebrowLook:"needs the eyebrow's Filled look on a Text block: Plain is the eyebrow start look the row draws; 2 of 62 live nodes store it (the stored-node export, 2026-10-24)"}},EU={name:"Recurring Columns",boxProps:(e,o)=>({...X,direction:"column",gap:60,gapPhone:60,...Zl(0,0,1,0),...Wo,...xp(e)?Ea(e,o):{},...tp(hp(e),e,o),...re(e,dc)}),box:[...Q.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,t)=>xp(o)?Nr(e,o,t):e],...de(dc)],skip:e=>rp(hp(e)),site:(e,o)=>xp(e.props)?Mr(e,o):[],parts:[lt("Series"),Ql("Cards",bU,wU,e=>O1(e).map(o=>Ip({num:it(o.num),since:it(o.since),title:it(o.title),body:it(o.desc),count:it(o.entries),countLabel:it(o.entriesLabel)})),(e,o)=>({type:j,props:{...SU,...Ho("background",(t,r)=>xp(t)&&op(t,r))(e,o),name:"Card"},slots:{[Ce]:[{type:j,props:{...A,name:"Words",gap:16,gapPhone:16},slots:{[Ce]:[{type:j,props:{...y1,name:"Top"},slots:{[Ce]:[Ae("num",z,H("label",13),!0),Ae("since",z,H("label",13),!0)]}},Ae("title",{...z,tag:"h3"},{textStyle:"heading-3",...H("headingSmall",28),weight:500,case:"upper",lineHeight:1.04,letterSpacing:-.02}),Ae("body",oe,{textStyle:"body-5",fontRole:"heading",...H("body",14),lineHeight:1.6})]}},{type:j,props:{...y1,name:"Footer",align:"center",gap:0,gapPhone:0,sectionPaddingTop:16,sectionPaddingTopPhone:16,...Zl(1,0,0,0),...S1(e)?{}:{[on]:["count","countLabel"]}},slots:{[Ce]:[{type:j,props:{...A,name:"Count",direction:"row",align:"center",gap:12,gapPhone:12,share:"content",phoneRow:2,[xI("share")]:"content"},slots:{[Ce]:[Ae("count",z,uI),Ae("countLabel",oe,uI)]}},...S1(e)?[{type:j,props:{...A,name:"View",maxWidthPhone:266},slots:{[Ce]:[{type:"Text",props:{...z,text:hI(e.viewLabel).text,_partStyles:{text:{...Xt()._partStyles.text,...uI}}}}]}}]:[]]}}]}}))],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:{...J,...te,headPlacement:gU}},_U={...A,direction:"row",columns:3,gap:40,gapPhone:16},AU={...A,gap:8,gapPhone:8,...wo(24),...Zl(1,1,1,1)},FU={name:"Document Detail Cards",boxProps:e=>({...X,direction:"column",gap:40,gapPhone:16,...Zl(0,0,1,0),...re(e,rc)}),box:[...Q,...de(rc)],parts:[Ql("Cards",_U,CU,e=>O1(e).map(o=>Ip({label:it(o.label),value:it(o.value),body:it(o.desc)})),(e,o)=>({type:j,props:{...AU,...Ho("surface")(e,o),name:"Card"},slots:{[Ce]:[Ae("label",z,{...H("label",12),lineHeight:1.5},!0),{type:j,props:{...A,name:"Words",gap:14,gapPhone:14},slots:{[Ce]:[Ae("value",z,{textStyle:"heading-3",...H("headingSmall",20),weight:500,letterSpacing:-.015,lineHeight:1.5}),Ae("body",oe,{textStyle:"body-5",fontRole:"accent",...H("body",14),italic:!0,lineHeight:1.5})]}}]}}))],drop:{...J,...te}},R1={Cards:OU,KeyFeatures:vU,Series:EU,DocMetaCards:FU};import{SITE_SIDE as IB}from"efficient-easel/screen/lib/content/length-units";import{phoneKey as DU}from"efficient-easel/draw";import{newId as NU}from"efficient-easel/data";import{phoneKey as BU}from"efficient-easel/draw";import{isNode as ei}from"efficient-easel/data";var as="cardStyle";function D1(e){let{widthPhone:o,...t}=e;return e.widthFitPhone==="fixed"?{...t,widthFitPhone:"fill"}:{...e}}var gp={table:{items:{gap:0,gapPhone:0,columnsTablet:2},grid:{gap:0},row:{gap:0,[BU("share")]:"content"},card:{justify:"between",gap:12,gapPhone:12,sectionHeightMode:"fixed",sectionHeightValue:242,sectionHeightUnit:"px",widthFitPhone:"fixed",widthPhone:800,sectionPaddingTop:48,sectionPaddingBottom:48,sectionPaddingLeft:32,sectionPaddingRight:32,sectionBorder:{top:1,right:1,bottom:1,left:1}}},list:{items:{gap:32,gapPhone:32,phoneRow:2},grid:{gap:32,gapPhone:32},row:{gap:32,gapPhone:32},card:{justify:"start",gap:8,gapPhone:8,sectionPaddingTop:20,sectionPaddingBottom:0,sectionBorder:{top:1,right:0,bottom:0,left:0}}}},dt={table:{...gp.table,listCard:D1(gp.table.card)},list:{...gp.list,listCard:D1(gp.list.card)}},_xe=[{label:"Table",value:"table"},{label:"List",value:"list"}],Axe=e=>e==="table"||e==="list",LU=e=>[...new Set([...Object.keys(dt.table[e]),...Object.keys(dt.list[e])])];function oi(e,o,t){let r={...e};for(let a of LU(o))delete r[a];return{...r,...structuredClone(dt[t][o])}}function RU(e,o,t){let r=e.props??{},a=Array.isArray(r[Pe])?r[Pe]:[],n=a.findIndex(i=>ei(i)&&i.type===t);if(n<0)return e;let s=a[n],l=a.map((i,d)=>d===n?{...s,props:oi(s.props??{},"listCard",o)}:i);return{...e,props:{...r,[Pe]:l}}}function Fxe(e,o,t,r){let a=Array.isArray(e[r])?e[r]:[];if(a.some(s=>ei(s)&&s.type===ao)){let s=a.map(l=>ei(l)&&l.type===ao?RU(l,o,t):l);return{...oi(e,"items",o),[as]:o,[r]:s}}let n=a.map(s=>{if(!ei(s)||s.type!==t)return s;let l=s.props??{},i=(Array.isArray(l[r])?l[r]:[]).map(d=>ei(d)&&d.type===t?{...d,props:oi(d.props??{},"card",o)}:d);return{...s,props:{...oi(l,"row",o),[r]:i}}});return{...oi(e,"grid",o),[as]:o,[r]:n}}var gI=e=>typeof e=="string"?e.trim():"";function N1(e){let o=`${gI(e.prefix)}${gI(e.value)}`,t=gI(e.suffix);return e.emphasizeAll===!0?o?`==_${o}_==`:"":`${o}${t?`==_${t}_==`:""}`}var H1={textStyle:"heading-2",...$o("headingMedium",56,7,96),weight:500,case:"none",lineHeight:.9,letterSpacing:-.04},yI={kind:"block",type:"Text",props:{...Ta,_partStyles:{text:H1}},box:[["value","text",(e,o)=>N1(o)]],when:(e,o)=>o!==void 0&&typeof o.value=="string"&&N1(o)!==""},M1=e=>Me(e?.supSuffix),W1={textStyle:"body-1",fontRole:"heading",...H("body",16),lineHeight:1.5,letterSpacing:-.01},$1={color:"labels",...H("label",12),lineHeight:1.5,letterSpacing:.24},z1={...A,direction:"row",align:"start",gap:32,gapPhone:32,share:"content",phoneRow:2,[DU("share")]:"content"},U1={textStyle:"body-5",...H("label",13),weight:500,color:"accent",letterSpacing:.18,lineHeight:1,padding:12},SI=e=>na(e.background,Fa.StatsParagraph),ti=e=>SI(e)===Wt,yp=e=>({...e,sectionAccent:e.sectionAccent??0}),MU=(e,o)=>ti(e)?Ho("background",(t,r)=>op(yp(t),r))(e,o):{},HU={name:"Stats with Text",skip:e=>SI(e)&&SI(e)!=="transparent"&&!ti(e)?"it paints a colour of its own, not the section band":void 0,boxProps:(e,o)=>({...X,direction:"column",gap:60,gapPhone:60,sectionBorder:{bottom:1},...Wo,...st(e,"StatsParagraph"),...ti(e)?Ea(yp(e),o):{}}),box:[...Q.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,t)=>ti(o)?Nr(e,yp(o),t):e],...Rr("StatsParagraph")],site:(e,o)=>ti(e.props)?Mr({props:yp(e.props)},o):[],parts:[lt("StatsParagraph"),{kind:"group",name:"Stats",props:{...A,...dt.table.grid,[as]:"table"},parts:[{kind:"list",key:"stats",name:"Stat",perRow:()=>4,rowName:"Stats row",rowProps:{...A,direction:"row",share:"equal",phoneRow:2,...dt.table.row},props:(e,o)=>({...A,...dt.table.card,...MU(e,o)}),parts:[{...yI,when:(e,o)=>!M1(o)&&yI.when(e,o)},{kind:"group",name:"Figure",props:z1,when:(e,o)=>M1(o),parts:[yI,{kind:"text",key:"supSuffix",props:z,style:U1}]},{kind:"group",name:"Words",props:{...A,gap:4,gapPhone:4},parts:[{kind:"text",key:"label",props:z,style:W1},fe("sub",$1)]}]}]}],drop:{...J,...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"}},WU=new Set(["value","label",jo]),$U=e=>{let o=na(typeof e.background=="string"?e.background:void 0,Fa.Stats);return!!o&&o!=="transparent"},zU={name:"Stats",skip:e=>$U(e)?"it paints a colour inside its padding, and a Box paints its Fill over the padding too":Me(e.dataSource)?"its figures come from a source":Array.isArray(e.items)&&e.items.some(o=>Me(o?.[jo]))?"a figure names a count, and each figure Text here is typed by hand until it is linked":Array.isArray(e.items)&&e.items.some(o=>Object.keys(o??{}).some(t=>!WU.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=>({...X,direction:"column",gap:24,gapPhone:24,...re(e,fc)}),box:[...Q,...de(fc)],parts:[fe("heading",{color:"labels",...H("label",12),letterSpacing:.2}),{kind:"group",name:"Stats",props:{...A,...dt.list.grid,[as]:"list"},parts:[{kind:"list",key:"items",name:"Stat",perRow:e=>ye(e.columns)??4,rowName:"Stats row",rowProps:{...A,direction:"row",share:"equal",phoneRow:2,...dt.list.row},props:{...A,...dt.list.card},parts:[{kind:"text",key:"value",props:Ta,style:{textStyle:"heading-2",...H("headingMedium",48,36),weight:500,case:"none",lineHeight:1,letterSpacing:-.03}},fe("label",{color:"labels",...H("label",12),letterSpacing:.2})]}]}],drop:{...J,...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"}},j1={StatsParagraph:HU,Stats:zU};function G1(){return{eyebrow:f("By the numbers"),title:f("What we count."),desc:f("A few numbers that matter to us."),stats:[],background:"transparent"}}var UU=[{key:"figure",label:"Figure"},{key:"superscript",label:"Superscript"},{key:"label",label:"Label"},{key:"body",label:"Text",multiline:!0}];function K1(){let e=(o,t,r,a="")=>({key:NU("stat"),figure:o,superscript:a,label:t,body:r});return[e("28==_yr_==",f("Years in business"),f("Privately held since day one. Same two founders.")),e("==_8_==",f("Operating footprint"),f("Los Angeles \xB7 Fort Lauderdale \xB7 Bewdley \xB7 Drachten \xB7 Mumbai \xB7 Selangor \xB7 Ho Chi Minh \xB7 Sydney. Three continents covered from one California design studio."),f("cities")),e("\u221221==_%_==",f("Avg. weight saving"),f("Versus OEM equivalents, across our forged catalog.")),e("14==_\xD7_==",f("Finish steps"),f("Specified in California to a 14-step protocol. No two sets are identical."))]}function jU(e){return{type:j,props:{...A,name:"Card",...structuredClone(dt[e].listCard)},slots:{[Ce]:[{type:j,props:{...z1,name:"Figure"},slots:{[Ce]:[Ae("figure",Ta,H1),Ae("superscript",z,U1)]}},{type:j,props:{...A,name:"Words",gap:4,gapPhone:4},slots:{[Ce]:[Ae("label",{...z,widthFit:"fill"},W1),Ae("body",{...z,widthFit:"fill"},$1,!0)]}}]}}}function bI(e,o,t=4){return{type:j,props:{...A,name:"Stats",direction:"row",columns:t,...structuredClone(dt[o].items),[as]:o},slots:{[Ce]:[{type:ao,props:Cd(e,UU),slots:{[Pe]:[jU(o)]}}]}}}var q1={heading:"Ways to pay"},V1=()=>[{label:"Visa"},{label:"Mastercard"},{label:"Amex"},{label:"PayPal"}],Y1=()=>[{text:f("Secure encrypted checkout")},{text:f("30-day returns")}],Jxe={label:"Payment Methods",drawsPictures:!0,defaultProps:{heading:"",badges:[],assurances:[],contained:!0}};import{hiddenKeyOf as GU}from"efficient-easel/screen/lib/content/view-hide";import{parseOption as J1}from"efficient-shell/format";var Sp="Flex",KU={FooterMenu:"MenuBlock",FooterEmailSignup:"EmailFormBlock",FooterSocial:"SocialLogosBlock"},qU={FooterPayment:"PaymentLogosBlock"},VU=e=>{let{id:o,...t}=e;return t},X1=e=>typeof e=="string"?e:"",ns={sm:12,md:13,lg:15},Z1={sm:{mark:16,words:ns.sm},md:{mark:20,words:ns.md}},YU="md",Q1=1.5,XU={size:13,lineHeight:Q1,width:280},JU=14,ZU=40,QU=e=>J1(["left","center","right"],"left",e);function ej(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 oj(e,o,t){let r=t(e,VU(o));if(Array.isArray(o.template))return{...r,props:{...r.props,template:eA(o.template,String(r.props.id))}};if(o.template!==void 0)return r;let a=hd(e,r.props);return a===r.props?r:{...r,props:a}}function eA(e,o,t={at:0}){return e.map(r=>{let a={...r.props,id:`${o}~t${t.at++}`};for(let n of Ft(r))a[n]=eA(a[n],o,t);return{...r,props:a}})}function oA(e,o,t){let r=e.props??{},a=t?.(e,o);if(a)return a;let n=$(KU,e.type)??$(qU,e.type);if(n)return[oj(n,r,o)];switch(e.type){case"FooterLogo":{let s=QU(r.align),l=o("LogoBlock",{...r.reverse?{reverse:r.reverse}:{},...typeof r.customColor=="string"&&r.customColor?{customColor:r.customColor}:{},heightPx:Math.round(Rv*((ye(r.widthPct)??100)/100)),href:"/",align:s,...ej(r)}),i=X1(r.tagline).trim();return i?[l,o("Text",{text:i,tone:"dim",align:s,_partStyles:{text:{...XU}}})]:[l]}case"FooterText":{let s=typeof r.size=="string"&&mo(ns,r.size)?r.size:YU;return[o("Text",{text:X1(r.text),tone:typeof r.tone=="string"?r.tone:"default",_partStyles:{text:{size:ns[s],lineHeight:Q1}}})]}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?{[GU("mobile")]:!0}:{}})]}case"FooterGroup":{let s=Array.isArray(r.blocks)?r.blocks:[];return[o(Sp,{direction:r.direction==="horizontal"?"row":"column",gap:Dv("FooterGroup",r.gap),align:J1(["start","center","end","stretch"],"start",r.align),...Om,content:s.flatMap(l=>oA(l,o,t))})]}default:return[]}}function ri(e,o,t,r){let a=e&&Array.isArray(e.props?.blocks)?e.props.blocks:[],n=c=>o(Sp,{direction:"row",wrap:!0,share:"equal",gap:ZU,content:c}),s=[],l=[];for(let c of a){let x=oA(c,o,r);if(c.type==="FooterDivider"){l.length&&s.push(n(l)),l=[],s.push(...x);continue}x.length<=1?l.push(...x):l.push(o(Sp,{direction:"column",gap:JU,align:"stretch",...Om,content:x}))}(l.length||!s.length)&&s.push(n(l));let i=o(Sp,{direction:"column",content:[o("LegalLineBlock")]}),d=zv(eo,t,[...s,i]);return{...d,props:{...d.props,...e?.props?.width==="full"?{fullWidth:!0}:{}}}}import{phoneKey as wI,readHidable as tj}from"efficient-easel/draw";import{parseOption as rj}from"efficient-shell/format";var CI={contained:!1},kI=(e,o)=>({logos:[{kind:"list",key:e,name:"Logo",flat:!0,parts:[{kind:"block",type:"LogoBlock",box:["src",[o,"alt"]],when:(t,r)=>Me(r?.src)||Me(r?.[o])}]}]}),aj={...fe("heading",{color:"labels",letterSpacing:.2}),props:{...z,align:"center"}},nj={name:"Logos",boxProps:e=>({...X,direction:"column",gap:32,...re(e,Sl(e))}),box:[...Q,...de(Sl),["bandPadding","sectionPaddingTop",(e,o)=>re(o,Sl(o)).sectionPaddingTop]],parts:[aj,{kind:"core",keep:["columns","logoHeight","grayscale"],rename:{logosPerRow:"columns"},props:CI,slots:kI("items","alt")}],drop:{...J,...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"}},sj={kind:"group",name:"Mark",keepEmpty:!0,parts:[],props:Gb(4,"main",{sectionCorners:2})},lj={name:"Payment Methods",boxProps:e=>({...X,direction:"column",...re(e,Qf)}),box:[...Q,...de(Qf)],parts:[{kind:"group",name:"Methods",props:{...A,align:"center",gap:20,gapPhone:20,sectionBorder:{top:1,bottom:1},sectionPaddingTop:32,sectionPaddingBottom:32},parts:[{...fe("heading",{color:"labels"}),props:{...z,align:"center"}},{kind:"core",keep:[],as:"Logos",derive:{reads:[ro,Vt],props:e=>Me(e[ro])?{[ro]:e[ro],...e[Vt]!==void 0?{[Vt]:e[Vt]}:{}}:{}},props:{...CI,look:"cards",grayscale:!1},slots:e=>({...kI("badges","label"),...Me(e[ro])?{[Pe]:[Rm()]}:{}})},{kind:"group",name:"Reassurance",props:{...A,direction:"row",wrap:!0,justify:"center",gap:24,gapPhone:24,phoneRow:2,[wI("share")]:"content"},parts:[{kind:"list",key:"assurances",name:"Line",of:e=>(Array.isArray(e.assurances)?e.assurances:[]).filter(o=>Me(o?.text)),props:{...A,direction:"row",align:"center",gap:8,gapPhone:8,phoneRow:2,[wI("share")]:"content"},item:e=>tj(e.text).hidden?{props:{_hidden:!0}}:{},parts:[sj,{kind:"text",key:"text",props:{...z,align:"center"},style:{...H("label",13),color:"labels",lineHeight:1.5}}]}]}]}],drop:{...J,...te,contained:"the Box draws the site frame now; the Logos block inside it fills the Box's column (`contained: false`)"}},tA=e=>Mb(e.align)??"left",rA=e=>rj(["sm","md"],"sm",e.size),aA=12,nA={name:"Payment logos",boxProps:e=>({...A,direction:"row",wrap:!0,align:"center",justify:dd[tA(e)],gap:aA,gapPhone:aA,phoneRow:2,[wI("share")]:"content"}),box:[...gr],parts:[{kind:"text",key:"lead",props:oe,styleFrom:e=>({size:ns[rA(e)],lineHeight:1.5})},{kind:"core",keep:[],as:"Logos",derive:{reads:[ro,Vt],props:e=>({logoHeight:Z1[rA(e)].mark,align:tA(e),...Me(e[ro])?{[ro]:e[ro],...e[Vt]!==void 0?{[Vt]:e[Vt]}:{}}:{}})},props:{...CI,look:"marks",grayscale:!1,sectionAccent:Ir},slots:e=>({...kI("methods","label"),...Me(e[ro])?{[Pe]:[Rm()]}:{}})}],drop:{size:"read as the wall's Logo height (S 16, M 20) and the lead's size (the footer size table, 12 / 13)",align:"read as the Box's justify and the wall's own Alignment (start is left, end is right)",editing:"the editor's preview flag, never a stored setting: the editor tells every block it is editing"}},sA={Logos:nj,PaymentBadges:lj,FooterPayment:nA,PaymentLogosBlock:nA},lA=()=>({heading:pE.heading,items:Bc()}),iA=()=>({heading:q1.heading,badges:V1(),assurances:Y1()}),dA=()=>({...sf,methods:[]});import{mixHex as pj}from"efficient-shell/format";import{MOTION_EASING as ij,MOTION_TIMING as fA,motionSeconds as cA,parseOption as pA}from"efficient-shell/format";var vI="none",bp=[{label:"None",value:"none"},{label:"Marquee",value:"scroll"}];function Ohe(e){return pA(bp,vI,e)}var ss="_gLoop",ai={field:"loop",is:"scroll"},ni="left",PI=[{label:"Left",value:"left",cell:"left"},{label:"Right",value:"right",cell:"right"},{label:"Up",value:"up",cell:"top"},{label:"Down",value:"down",cell:"bottom"}],dj={left:"storefront-ticker",right:"storefront-ticker-right",up:"storefront-ticker-up",down:"storefront-ticker-down"};function uA(e){return pA(PI,ni,e)}function mA(e){return e==="up"||e==="down"}function wp(e){return cA("loop","duration",e.loopDuration!=null?e.loopDuration:e.speed)}var Ehe=fA.loop.duration.default,fj=fA.loop.delay.default;function xA(e){return cA("loop","delay",e.loopDelay)}function _he(e,o,t=fj){return`${dj[e]} ${o}s ${ij.loop}${t?` ${t}s`:""} infinite`}var Cp="_gEntrance";var Lhe="none",Rhe=[{label:"Nothing",value:"none"},{label:"Section above",value:"above"},{label:"Section below",value:"below"}];function kp(e){return e==="above"||e==="below"?e:null}var hA="sf-ticker-join";function cj(e){return e==="above"?"sf-ticker-join-above":"sf-ticker-join-below"}function IA(e){return`absolute inset-x-0 ${cj(e)}`}var gA=e=>e.size==="display",uj=(e,o)=>{let t=ep(e,o),r=e.tone!=="plain"&&t?.text&&t.background?pj(t.text,t.background,.3):null;return r?{color:r}:{}},mj=(e,o)=>e.tone!=="plain"&&Km(e.sectionAccent)===null?Ho("background")(e,o):{},yA=(e,o)=>({kind:"list",key:"items",name:"Item",flat:!0,when:o,parts:[{kind:"text",key:"text",props:oe,style:e,styleFrom:uj}]}),xj={name:"Scrolling Bar",boxProps:(e,o)=>({...X,...fa,...qf,...$b[Tm(e.separator)]===""?R0:{},...re(e,ca),...mj(e,o)}),box:[["scrollDirection","scrollDirection",e=>uA(e)],["speed","loopDuration",(e,o)=>o.loopDuration!=null?o.loopDuration:e],["loopDuration","loopDuration",(e,o)=>e??o.speed],["loopDelay","loopDelay",e=>e],["separator","separator",e=>Tm(e)],["join","join",e=>kp(e)??void 0],["borders","sectionBorder",e=>e===!1?void 0:{top:1,bottom:1}],...Q,["tone","sectionAccent",(e,o)=>Km(o.sectionAccent)??Ir],...de(ca)],parts:[yA(Vf,e=>!gA(e)),yA(D0,gA)],drop:{...J,...te,size:"each item's Text style: Small \u2192 Body 5, Display \u2192 Heading 3"}},SA=e=>e?.tone==="muted",bA=e=>kd(Ca(e)),hj={name:"Spec Strip",boxProps:(e,o)=>({...X,...fa,...xl,...e.fill==="none"?{sectionBorder:{top:1}}:{sectionAccent:bA(o)},...re(e,pa)}),box:[...Q.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,t)=>o.fill==="none"?e:bA(t)],...de(pa)],parts:[{kind:"list",key:"cells",name:"Cell",flat:!0,parts:[{kind:"text",key:"text",props:z,style:hl,when:(e,o)=>!SA(o)},{kind:"text",key:"text",props:oe,style:hl,when:(e,o)=>SA(o)}]}],drop:{...J,...te,...Qc,fill:"None \u2192 no fill and a line on top. Dark band (the default) \u2192 the Box's theme is the site's first dark preset that is not its page (lib/theme `darkBandIndex`; Theme 2 with no site theme): the old fixed `plate-band` colour, as a theme"}},wA={Ticker:xj,SpecStrip:hj};import{tabletKey as CA}from"efficient-easel/screen/lib/content/view-tiers";var kA={direction:"column",justify:"between",gap:14,gapPhone:14,sectionPaddingLeft:14,sectionPaddingRight:14,[CA("sectionPaddingLeft")]:0,sectionPaddingLeftPhone:0,sectionHeightMode:"fixed",sectionHeightValue:280,sectionHeightUnit:"px",[CA("sectionHeightMode")]:"auto",sectionHeightModePhone:"auto"},TI={name:"Year and title",direction:"column",gap:14,gapPhone:14};import{tabletKey as Ij}from"efficient-easel/draw";var vp={eyebrow:Te.eyebrow,title:`Section heading
|
|
321
|
-
*Highlight line*`,intro:Te.body,imageCaption:Te.imageCaption,imageMeta:Te.imageMeta,cta:ze.text},vA=()=>[{date:f("Year"),title:f("Milestone title."),body:f("Describe what happened, in a sentence or two.")},{date:f("Year"),title:f("Milestone title."),body:f("Describe what happened, in a sentence or two.")},{date:f("Year"),title:f("Milestone title."),body:f("Describe what happened, in a sentence or two.")}],Jhe={label:"Story Timeline",drawsPictures:!0,defaultProps:{layout:"split",eyebrow:"",title:"",intro:"",imageSrc:"",imageCaption:"",imageMeta:"",ctaText:"",ctaHref:"",entries:[],padTop:120,padBottom:120}};var Pp={eyebrow:Te.eyebrow,title:Te.headingAccent,intro:Te.body,cta:ze.text},PA=()=>[{date:f("Year"),title:f("Milestone"),blurb:f("A short line about this milestone."),future:!1},{date:f("Year"),title:f("Milestone"),blurb:f("A short line about this milestone."),future:!1},{date:f("Year"),title:f("Milestone"),blurb:f("A short line about this milestone."),future:!1},{date:f("Year \u2192"),title:f("Upcoming"),blurb:f("A milestone still to come."),future:!0}],tIe={label:"Milestone Timeline",defaultProps:{eyebrow:"",title:"",intro:"",entries:[],ctaText:"",ctaHref:"",background:Ev,padTop:120,padBottom:120}};var FA={buttonBorder:{width:0}},Ep=(e,o,t={})=>({textStyle:"body-5",...H("label",e),letterSpacing:o,lineHeight:1.5,weight:400,...t}),ls=(e,o,t={})=>({...Ep(e,o),...Lo,...t}),_p=(e,o,t)=>({...e,case:"upper",weight:500,letterSpacing:o,lineHeight:t}),si=(e,o,t={})=>({textStyle:"body-1",fontRole:"heading",...e,weight:400,case:"none",lineHeight:o,...t}),ft=(e,o,t={})=>({kind:"text",key:e,props:z,style:o,...t}),TA=(e,o)=>o?.future===!0,Tp=e=>FO(typeof e?.body=="string"?e.body:""),FI=e=>na(typeof e.background=="string"?e.background:void 0,Fa.TimelineTrack),OI=e=>FI(e)===Wt?e:{...e,background:"transparent"},gj={name:"Milestone Timeline",skip:e=>rp(FI(e)),boxProps:(e,o)=>{let t=Dr(OI(e),o);return{...X,direction:"column",gap:60,[Ij("gap")]:36,gapPhone:36,sectionBorder:{bottom:1},...Wo,...st(e,"TimelineTrack"),...tp(FI(e),e,o),...t>=0?{sectionAccent:t}:{}}},box:[...Q.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,t)=>Nr(e,OI(o),t)],...Rr("TimelineTrack")],parts:[cI(up(fp("eyebrow","title","intro"),["intro"])),{kind:"group",name:"Track",props:{...A,gap:48,gapPhone:48},parts:[{kind:"group",name:"Years",props:{...A,direction:"row",share:"equal",gap:0,line:!0,...Wo},parts:[{kind:"list",key:"entries",name:"Year",props:{...A,...kA},item:e=>({props:e.future===!0?{upcoming:!0}:{}}),parts:[{kind:"group",name:TI.name,props:{...A,...TI},parts:[ft("date",Ep(13,.22,{color:"accent"}),{when:(e,o)=>!TA(e,o)}),ft("date",Ep(13,.22,{color:"labels"}),{when:TA}),ft("title",{textStyle:"heading-3",..._p(H("headingSmall",20),-.02,1.1)},{role:"heading"})]},ft("blurb",si(H("body",13),1.55),{props:oe,mark:"accentItalic"})]}]},{kind:"group",name:"Button row",props:{...A,sectionBorder:{top:1,right:0,bottom:0,left:0},sectionPaddingTop:32},parts:[{kind:"button",key:"ctaText",href:"ctaHref",variant:"ghost",props:{...no,align:"right",...FA},style:ls(13,.3)}]}]}],site:(e,o)=>Mr({props:OI(e.props)},o),drop:{...J,...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"}},LI=e=>typeof e.layout=="string"?e.layout:"split",Op=e=>LI(e)==="split",BI=e=>!Op(e),BA=e=>LI(e)==="spine",yj=e=>BI(e)&&!BA(e),OA=(e,o,t,r)=>({kind:"group",name:"Picture",keepEmpty:!0,box:[["imageSrc","bgImage"]],props:{...A,sectionBorder:{top:1,right:1,bottom:1,left:1},darken:75,darkenStyle:"bottom",placement:"bottom-center",sectionHeightMode:"fixed",sectionHeightValue:e,sectionHeightUnit:"px",sectionHeightModePhone:"fixed",sectionHeightValuePhone:o,sectionHeightUnitPhone:"px",...wo(12,16),...t},when:a=>r(a)&&typeof a.imageSrc=="string"&&a.imageSrc.trim()!=="",parts:[{kind:"group",name:"Caption",props:{...A,direction:"row",justify:"between",align:"center",gap:12,gapPhone:12,share:"content",phoneRow:2},parts:[ft("imageCaption",ls(11,.24,{color:"text"})),ft("imageMeta",ls(11,.24,{color:"accent"}),{props:{...z,align:"right"}})]}]}),EA=(e={})=>({kind:"button",key:"ctaText",href:"ctaHref",variant:"ghost",props:{...no,...e,...FA},style:ls(13,.3)}),EI=()=>[ft("title",{textStyle:"heading-3",..._p(H("headingSmall",24,20),-.02,1.5)},{role:"heading",mark:"accentItalic"}),{kind:"block",type:"Text",props:{...z,_partStyles:{text:si(H("body",17,16),1.6)}},box:[["body","text",(e,o)=>Ds(Tp(o)[0]??"")]],when:(e,o)=>Tp(o).length>0},{kind:"block",type:"Text",props:{...oe,_partStyles:{text:si(H("body",17,16),1.6,{paragraphSpacing:14})}},box:[["body","text",(e,o)=>Ds(Tp(o).slice(1).join(`
|
|
322
|
-
|
|
323
|
-
`))]],when:(e,o)=>Tp(o).length>1}],_I=()=>ft("date",Ep(13,.24,{color:"accent"})),AI=(e,o,t={})=>ft(e,o,{...t,props:{...z,...t.props??{},align:"center"}}),_A=$o("headingMedium",40,5,76),AA={sectionBorder:{bottom:1}},Sj={name:"Story Timeline",skip:e=>LI(e)==="track"?'display "track": not converted (it draws the Milestone rail; a Track story is not stored anywhere)':void 0,boxProps:e=>Op(e)?{...X,direction:"row",share:[40],gap:80,gapPhone:48,align:"start",...AA,...st(e,"Timeline")}:{...X,direction:"column",gap:48,gapPhone:48,align:"center",...AA,...st(e,"Timeline")},box:[...Q,...Rr("Timeline")],parts:[{kind:"group",name:"Heading",props:{...A,gap:24,gapPhone:24},when:Op,parts:[ft("eyebrow",ls(12,.3,{color:"accent"}),{role:"eyebrow"}),ft("title",{textStyle:"heading-2",..._p(_A,-.03,.94)},{role:"heading",mark:"accentItalic"}),ft("intro",si(H("body",14),1.6),{props:{...oe,maxWidth:360},mark:"accentItalic"}),OA(667,419,{},()=>!0),EA()]},{kind:"group",name:"Chapters",props:{...A,gap:48,gapPhone:48,line:!1},when:Op,parts:[{kind:"list",key:"entries",name:"Chapter",props:{...A,direction:"row",gap:24,gapPhone:8,share:[12],align:"start"},parts:[_I(),{kind:"group",name:"Words",props:{...A,gap:14,gapPhone:14},parts:EI()}]}]},{kind:"group",name:"Heading",props:{...A,gap:24,gapPhone:24,align:"center",maxWidth:760,widthFit:"fill"},when:BI,parts:[AI("eyebrow",ls(12,.3,{color:"accent"}),{role:"eyebrow"}),AI("title",{textStyle:"heading-2",..._p(_A,-.03,.94)},{role:"heading",mark:"accentItalic"}),AI("intro",si(H("body",14),1.6),{props:{...oe,maxWidth:520},mark:"accentItalic"}),EA({align:"center"})]},OA(506,192,{maxWidth:900,widthFit:"fill"},BI),{kind:"group",name:"Chapters",props:{...A,gap:48,gapPhone:48,line:!0,maxWidth:760,widthFit:"fill",sectionPaddingTop:16},when:BA,parts:[{kind:"list",key:"entries",name:"Chapter",props:{...A,gap:8,gapPhone:8},parts:[_I(),{kind:"group",name:"Words",props:{...A,gap:14,gapPhone:14},parts:EI()}]}]},{kind:"group",name:"Chapters",props:{...A,gap:56,gapPhone:56,maxWidth:1e3,widthFit:"fill",sectionPaddingTop:16,mirrorCards:"even"},when:yj,parts:[{kind:"list",key:"entries",name:"Chapter",props:{...A,direction:"row",gap:64,gapPhone:0,share:[50],align:"start"},parts:[{kind:"group",name:"Entry",props:{...A,gap:8,gapPhone:8},parts:[_I(),{kind:"group",name:"Words",props:{...A,gap:14,gapPhone:14},parts:EI()}]},{kind:"group",name:"Spacer",props:{...A},keepEmpty:!0,parts:[]}]}]}],drop:{...J,...te,layout:"the Box's own arrangement replaces it: Split a row of two Boxes; Spine and Alternating a centred column (Track is skipped)"}},LA=()=>({eyebrow:vp.eyebrow,title:wt(vp.title),intro:vp.intro,ctaText:ze.text,ctaHref:ze.href,entries:vA()}),RA=()=>({eyebrow:Pp.eyebrow,title:wt(Pp.title),intro:Pp.intro,ctaText:ze.text,ctaHref:ze.href,entries:PA()}),DA={TimelineTrack:gj,Timeline:Sj};import{tabletKey as bj}from"efficient-easel/draw";function NA(e){let o=String(e??"").replace(/[^+\d]/g,"");return o?`tel:${o}`:void 0}var ct=e=>typeof e=="string"?e:e==null?"":String(e),RI=e=>Array.isArray(e.locations)?e.locations.map(o=>o??{}):[],is=e=>ct(e.group),KA=e=>`loc-${e}`,qA=e=>ct(e.state).trim()||mx(ct(e.region)).state,VA=e=>ct(e.country).trim()||mx(ct(e.region)).country,MA=e=>[qA(e),VA(e)].filter(Boolean).join(" \xB7 "),wj=e=>RI(e).some(o=>ct(o.photo).trim()!==""),Cj=e=>RI(e).some(o=>nw(Number(o.lat),Number(o.lng))),kj=(e,o)=>RI(e).filter(t=>is(t)===is(o)).length,vj=(e,o)=>kj(e,o)===1?"wide":Xv(e.imageShape),HA=48,kt=(e,o={})=>({...St(e),...o}),DI={top:1,right:1,bottom:1,left:1},NI={...A,direction:"row",share:"equal",gap:0},Pj=e=>o=>o>md(o)?{...A,gap:0}:{...NI,...o>1?{phoneRow:e}:{}},MI=!0,Tj={kind:"group",name:"Gallery",props:{...A,gap:20,...MI?{_hidden:!0}:{}},when:wj,parts:[{kind:"group",name:"Gallery head",props:{...A,direction:"row",justify:"between",align:"end",gap:24,share:"content",sectionBorder:{bottom:1},sectionPaddingBottom:16},parts:[fe("galleryKicker",kt(12,{color:"accent",letterSpacing:.3})),{kind:"text",key:"galleryHint",props:{...oe,align:"right",alignPhone:"left"},style:kt(11,{letterSpacing:.22,alignPhone:"left"})}]},{kind:"group",name:"Groups",props:{...A,gap:24},parts:[{kind:"list",key:"locations",name:"City picture",props:{...A,darken:85,darkenStyle:"bottom",placement:"bottom-left",sectionBorder:DI,...wo(12,12)},item:(e,o,t)=>({props:{...ct(e.photo).trim()?{bgImage:ct(e.photo),hover:"mono"}:{},link:`#${KA(o)}`,boxShape:vj(t,e)}}),parts:[{kind:"text",key:"name",props:z,style:kt(11,{letterSpacing:.22,color:"text"})}],groups:{of:is,name:"Group",props:{...A,gap:10},head:e=>({label:is(e[0]??{})}),parts:[fe("label",kt(11,{color:"accent",letterSpacing:.3}))],itemsName:"Cities",itemsProps:Pj(2),perRow:md,rowName:"Row",rowProps:{...NI,phoneRow:2}}}]}]},Oj={kind:"group",name:"Words",props:{...A,gap:12,gapPhone:12,...wo(28,28),sectionHeightMode:"fixed",sectionHeightValue:280,sectionHeightUnit:"px",sectionHeightModePhone:"auto"},parts:[{kind:"group",name:"Name row",props:{...A,direction:"row",justify:"between",align:"start",gap:14,share:"content",phoneRow:2,sharePhone:"content",wrapPhone:"wrap",sectionPaddingBottom:6,sectionPaddingBottomPhone:6},parts:[{kind:"group",name:"Name",props:{...A,gap:6,gapPhone:6},parts:[{kind:"text",key:"name",role:"heading",props:z,style:{textStyle:"heading-3",...H("headingSmall",30),case:"upper",weight:500,lineHeight:1,letterSpacing:-.02}},{kind:"block",type:"Text",props:{...z,_partStyles:{text:kt(12,{color:"accent",letterSpacing:.24,lineHeight:1.5})}},box:["region","state","country"].map(e=>[e,"text",(o,t)=>MA(t)]),when:(e,o)=>MA(o??{})!==""}]},{kind:"group",name:"Time zone",props:{...A,sectionBorder:DI,...wo(6,10)},parts:[{kind:"text",key:"timezone",props:{...oe,textFit:"line"},style:kt(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:{...no,...Oa,variant:"ghost",arrow:!1,_partStyles:{label:kt(13,{letterSpacing:.18,color:"text",lineHeight:24/13})}},box:[["phone","label"],["phone","href",e=>NA(ct(e))??"#"]],when:(e,o)=>ct(o?.phone).trim()!==""},{kind:"text",key:"hours",props:oe,style:kt(12,{letterSpacing:.18,lineHeight:1.7})}]},Ej={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)=>qA(t)]),...["region","country"].map(e=>[e,"country",(o,t)=>VA(t)])]},_j={kind:"group",name:"Map",props:{...A,sectionBorder:{top:1,right:0,bottom:0,left:0}},parts:[Ej]},Aj={kind:"list",key:"locations",name:"City",props:(e,o)=>({...A,gap:0,justify:"between",sectionBorder:DI,jumpHighlight:!0,sectionAccent:Dr(e,o)>=0?Zn(e.sectionAccent,o):-1}),item:(e,o)=>({props:{anchor:KA(o)}}),parts:[Oj,_j],groups:{of:is,name:"Group",props:{...A,gap:20},head:e=>{let o=e[0]??{};return{key:is(o),groupName:ct(o.groupName),count:`${e.length} location${e.length===1?"":"s"}`}},parts:[{kind:"group",name:"Group head",props:{...A,direction:"row",justify:"between",align:"end",gap:16,share:"content",sectionBorder:{bottom:1},sectionPaddingBottom:16},when:(e,o)=>ct(o?.key).trim()!=="",parts:[fe("key",kt(13,{color:"accent",letterSpacing:.3})),{kind:"text",key:"groupName",role:"heading",props:z,style:{textStyle:"heading-3",...H("headingSmall",24),case:"upper",weight:500,letterSpacing:-.01}},{kind:"text",key:"count",props:oe,style:kt(12,{letterSpacing:.22})}]}],itemsName:"Cities",itemsProps:e=>({...NI,columns:md(e),[bj("columns")]:1})}},WA=kt(10,{letterSpacing:.25}),Fj={kind:"block",type:$t,props:{...A,name:"Credit",direction:"row",justify:"end",align:"center",gap:6,share:"content",wrap:!0},when:Cj,slot:zt,keepEmpty:!0,parts:[{kind:"block",type:"Text",props:{...oe,text:"Location coordinates \xA9",_partStyles:{text:WA}}},{kind:"block",type:"ButtonBlock",props:{...no,...Oa,variant:"ghost",arrow:!1,label:"OpenStreetMap contributors",href:"https://www.openstreetmap.org/copyright",_partStyles:{label:{...WA,color:"labels"}}}}]},$A=(e,o)=>Object.fromEntries(o.filter(t=>e[t]!==void 0).map(t=>[t,e[t]])),zA=["sectionPaddingTop","sectionPaddingTopTablet","sectionPaddingTopPhone"],UA=["sectionPaddingBottom","sectionPaddingBottomTablet","sectionPaddingBottomPhone"],jA=e=>e.map(o=>[o,o,(t,r)=>re(r,Nn)[o]]),GA=["sectionAccent","sectionAccent",Nr],Bj=[...gr,...vn,...Object.values(Ao)],Lj={name:"City pictures",skip:e=>De(e)?`fed by the data source "${De(e)}": its cities are read as the page is served, not stored on the node`:void 0,boxProps:(e,o)=>({...X,direction:"column",gap:40,anchor:"studios",...Wo,...$A(re(e,Nn),zA),sectionPaddingBottom:HA,sectionPaddingBottomPhone:HA,...Ea(e,o)}),box:[...Q.filter(e=>e!=="sectionAccent"&&e!=="anchor"),GA,["anchor","anchor",e=>Fv(e).trim()?e:"studios"],...jA(zA)],parts:[fp("sectionNumber","heading","tagline"),Tj],also:[{name:"City maps",boxProps:(e,o)=>({...X,direction:"column",gap:40,sectionBorder:{bottom:1},...Wo,sectionPaddingTop:0,sectionPaddingTopPhone:0,...$A(re(e,Nn),UA),...Ea(e,o)}),box:[...Bj,GA,...jA(UA)],parts:[Aj,Fj]}],reads:{mapTheme:"City maps Box: each Map block's Map theme",imageShape:"City pictures Box: each picture Box's Box shape"},site:Mr,drop:{...J,...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)"}},YA={ContactLocations:Lj};import{SITE_SIDE as XA,sideLengthAt as Rj}from"efficient-easel/screen/lib/content/length-units";import{viewKeyAt as HI}from"efficient-easel/draw";var Dj=["FAQ","Footprint","LongRead","ProcessSteps","RelatedProducts"];var Hr=(e,o)=>()=>({top:e,topPhone:o}),JA=e=>o=>{let t=Mn(e),r={...o,[yr.top]:Ud(o,t).top},a=i=>{let d=Rj(r,yr,zd,i,"top");return d?.unit==="px"?d.value:void 0},n=i=>ye(o[HI(yr.top,i)])===void 0?void 0:a(i),s=n("tablet"),l=n("mobile");return{top:a("desktop")??t.top??0,...s!==void 0?{topTablet:s}:{},...l!==void 0?{topPhone:l}:{}}},Nj={Collections:Hr(120,70),Events:Hr(120,70),FAQ:Hr(Jf.top,Jf.topPhone),GalleryB:Hr(120,70),FitmentTable:Hr(120,80),SpecTable:Hr(120,80),LongRead:Hr(Zf.top,Zf.topPhone),RelatedProducts:Hr(0,0),Footprint:JA("Footprint"),ProcessSteps:JA("ProcessSteps"),ProductGrid:e=>({top:ye(e.padTop)??120,topPhone:0})};function Mj(e,o={}){let t=$(bt,e),r=$(Nj,e);if(!t||!r)throw new Error(`section-to-box-rows-head: "${e}" has no head row or no head room`);let a=t.padKey,n=lt(e),s=mp(e),l=t.headRows.filter(d=>![t.num,t.title,t.description,"linkText","linkHref"].includes(d)),i={...Object.fromEntries(l.filter(d=>!(d in s)).map(d=>[d,"a head setting no Header Box part reads (lib/document/blocks/general/section-head-looks `headReads`)"])),...o.drop};return{name:$(Xr,e)??e,boxProps:(d,c)=>{let x=r(d),m=o.roomBelow?{sectionPaddingBottom:o.roomBelow.bottom,sectionPaddingBottomPhone:o.roomBelow.bottomPhone}:{},h=typeof o.boxProps=="function"?o.boxProps(d,c):o.boxProps??{},I=Aa(e)==="editorial"?Wo:{};return{...X,direction:"column",gap:Jl[Aa(e)],sectionPaddingTop:x.top,...x.topTablet!==void 0?{sectionPaddingTopTablet:x.topTablet}:{},...x.topPhone!==void 0?{sectionPaddingTopPhone:x.topPhone}:{},...I,...m,...h}},box:[...Q,...a?[[a,"sectionPaddingTop",(d,c)=>r(c).top]]:[]],parts:[n,...(()=>{let d=a&&z0.has(e)?{[HI(a,"tablet")]:0,[HI(a,"mobile")]:0}:{},c={...a?{[a]:0}:{},...d,...o.coreProps},x={kind:"core",keep:"rest",...Object.keys(c).length?{props:c}:{},...o.slots?{slots:o.slots}:{}};return[o.coreBox?{kind:"group",name:o.coreBox.name,props:o.coreBox.props,parts:[x]}:x]})(),...o.partsAfter??[]],...Object.keys(s).length?{reads:s}:{},...Object.keys(i).length?{drop:i}:{},...o.pressHeading?{pressKeepsEmpty:[t.title]}:{},...o.skip?{skip:o.skip}:{}}}var Hj={...A,direction:"accordion",rowStyle:"numbered"},Wj={sectionPaddingLeft:XA,sectionPaddingRight:XA},$j={Footprint:{slots:{[Pe]:[sw()]},pressHeading:!0},ProcessSteps:{slots:(e,o)=>o.press?{[Ls]:P_().map(t=>({...t,props:{...t.props,...Wj}}))}:{},boxProps:{gapPhone:Jl.editorial}},FAQ:{slots:{[Pe]:[aw()]},pressHeading:!0,coreBox:{name:"Questions",props:Hj},coreProps:{sectionAccent:Ir},roomBelow:{bottom:120,bottomPhone:70},boxProps:(e,o)=>o.press?{}:{[O0]:da},skip:e=>{let o=e._partStyles??{},t=rw().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}}},ZA=Object.fromEntries(Dj.map(e=>[e,Mj(e,$($j,e))]));import{BLOCK_WIDTH_LIMIT as zj}from"efficient-easel/draw";var Ap={eyebrow:Te.eyebrow,title:Te.headingAccent,deck:"Add a sentence or two introducing this document."},ege={label:"Document masthead",defaultProps:{eyebrow:"",title:"",deck:"",meta:[]}};var rF={minWidth:zj.min},QA=(e,o,t)=>({...fe(e,{...o,...ql}),props:{...z,align:"right",...Pa,...t}}),aF={top:1,bottom:0},$I=(e,o,t,r)=>({kind:"group",name:e,props:{...A,sectionPaddingBottom:o,sectionPaddingBottomPhone:t},parts:[r]}),eF={widthFit:"fill",...rF},Uj={...H("label",13),letterSpacing:.22,lineHeight:1.8},oF={textStyle:"heading-1",...$o("headingLarge",56,8,128),case:"upper",weight:500,lineHeight:.88,letterSpacing:-.04},jj=()=>({name:"Page Header",boxProps:e=>({...X,direction:"column",gap:0,sectionBorder:{bottom:1},...re(e,tc)}),box:[...Q,...de(tc)],parts:[{kind:"group",name:"Header",props:{...A,direction:"row",align:"end",justify:"between",gap:40,gapPhone:16,share:"content",sectionPaddingBottom:32},parts:[$I("Eyebrow",12,0,{...fe("eyebrow",H("label",13)),props:{...z,...Pa}}),{kind:"text",key:"title",role:"heading",props:{...z,tag:"h1",...eF},style:oF,mark:"accentItalic",when:e=>!Nh(e)},{kind:"text",key:"title",role:"heading",props:{...z,tag:"h2",...eF},style:oF,mark:"accentItalic",when:Nh},{kind:"group",name:"Details",props:{...A,align:"stretch",gap:0,gapPhone:0,sectionPaddingBottom:12,sectionPaddingBottomPhone:0},parts:[{kind:"list",key:"meta",name:"Detail",flat:!0,parts:[Vl("label","value",Uj,Pa)]}]}]},{kind:"group",name:"Deck",props:{...A,maxWidth:760,sectionBorder:aF,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:{...J,...te,[Dc]:"read by the title part's `when`: 2 (set by lib/document/one-h1 on a later opener) makes the Text an h2, anything else an h1"}}),nF=()=>({eyebrow:Ap.eyebrow,title:wt(Ap.title),deck:Ap.deck,meta:[{label:Te.label,value:Te.value},{label:Te.label,value:Te.value}]}),Gj={...H("label",13),letterSpacing:.18,lineHeight:1.8},tF={...H("label",13),letterSpacing:.22,lineHeight:1.9},Kj=()=>({name:"Issue Header",boxProps:e=>({...X,direction:"column",gap:0,sectionBorder:{bottom:1},...re(e,gl)}),box:[...Q,...de(gl)],parts:[{kind:"group",name:"Top",props:{...A,direction:"row",align:"end",justify:"between",gap:60,gapPhone:16,share:"content",sectionPaddingBottom:32},parts:[$I("Eyebrow",14,14,fe("eyebrow",H("label",14))),{kind:"group",name:"Issue",props:{...A,align:"end",gap:0,gapPhone:0,sectionPaddingBottom:14},parts:[{kind:"list",key:"issueMeta",name:"Issue line",flat:!0,parts:[Vl("lead","rest",Gj)]}]}]},{kind:"group",name:"Bottom",props:{...A,direction:"row",align:"start",justify:"between",gap:60,gapPhone:16,share:"content",sectionBorder:aF,sectionPaddingTop:32},parts:[{kind:"text",key:"lead",props:{...z,maxWidth:720,...rF},style:{textStyle:"body-1",fontRole:"heading3",...H("headingSmall",20),lineHeight:1.5,letterSpacing:-.005,paragraphSpacing:16}},{kind:"group",name:"In this issue",props:{...A,align:"stretch",gap:0},parts:[$I("Heading",6,6,{kind:"text",key:"issueHeading",props:{...z,align:"right",...Pa},style:{textStyle:"body-1",fontRole:"heading",...H("body",18),weight:400,letterSpacing:-.01,lineHeight:1.9,...ql}}),{kind:"group",name:"Lines",props:{...A,align:"stretch",gap:0},parts:[{kind:"list",key:"issueList",name:"Line",flat:!0,parts:[QA("text",{color:"labels",...tF})]}]},QA("issueTotal",tF)]}]}],drop:{...J,...te}}),WI={color:"labels",...H("label",13),letterSpacing:.2},sF=e=>(Array.isArray(e.items)?e.items:[]).filter(o=>o&&typeof o.label=="string"&&o.label.trim()!==""),zI=(e,o)=>o!==void 0&&sF(e).at(-1)===o,lF=(e,o)=>o!==void 0&&sF(e).includes(o),qj=(e,o)=>lF(e,o)&&!zI(e,o)&&Me(o?.href),Vj=()=>({name:"Breadcrumb",skip:e=>Me(e.meta)?'a trailing note after "\xB7" needs a second mark; none live':void 0,boxProps:e=>({...X,...fa,wrap:"wrap",gap:16,gapPhone:16,separator:"slash",sectionBorder:{bottom:1},...re(e,ml)}),box:[...Q,...de(ml)],parts:[{kind:"list",key:"items",name:"Crumb",flat:!0,parts:[{kind:"button",key:"label",href:"href",variant:"ghost",when:qj,props:{...no,...Oa,icon:"none"},style:WI},{...fe("label",WI),when:(e,o)=>lF(e,o)&&!zI(e,o)&&!Me(o?.href)},{...fe("label",{...WI,color:"text"}),when:zI}]}],drop:{...J,...te,meta:"a node that stores a note is skipped (`skip`); an empty one draws nothing",...Qc}}),iF={DocMasthead:jj(),Masthead:Kj(),Breadcrumb:Vj()};import{BLOCK_WIDTH_LIMIT as Xj,hiddenKeyOf as Jj}from"efficient-easel/draw";import{readHidable as UI}from"efficient-easel/draw";function Yj(e,o,t){return e||(t?.isEditing?f(o):void 0)}function xge(e,o,t){let r=Array.isArray(e)?e:[];return r.length?r:t?.isEditing?o:[]}function dF(e,o,t){let r=UI(e);if(!r.hidden)return Yj(r.text,o,t)}function fF(e){if(e==null)return;let o=UI(e);return o.hidden?"":o.text}function hge(e,o,t){return UI(e).hidden?"":dF(e,o,t)}function Ige(e,o,t){return{text:dF(e,ze.text,t),href:o||ze.href}}var mF="MenuBlock",jI=e=>(Array.isArray(e)?e:[]).filter(o=>o&&Me(o.label)),cF=e=>{let[o,t]=[e.metaLabel,e.metaValue].map(a=>(fF(a)??"").trim());if(!t)return o;let r=t.includes("==")?t:`==${t}==`;return o?`${o} ${r}`:r},pF={top:0,bottom:0,topPhone:0,bottomPhone:0},Zj={...Lo,color:"labels",...H("label",12),letterSpacing:.24},Qj={kind:"group",name:"Note",props:{...A,justify:"center",sectionBorder:{top:0,right:0,bottom:0,left:1},sectionPaddingLeft:28,[Jj("mobile")]:!0},parts:[{kind:"block",type:"Text",when:e=>cF(e)!=="",props:e=>({...z,textFit:"line",text:cF(e),[tv]:{text:Zj}})}]},xF=()=>({tabs:[],metaLabel:Te.label,metaValue:Te.value}),uF="the note Text inside the Box (the label, then the value in the accent); no words, no Text",hF={direction:"row",menuStyle:"tabs",currentPage:!0,minWidth:Xj.min},IF=e=>({...e,boxProps:o=>({...X,direction:"row",align:"stretch",justify:"between",gap:0,stickTop:!0,[Sn]:0,[Js]:!0,sectionBorder:{bottom:1},...re(o,pF)}),box:[...Q,...de(pF)]}),eG=()=>IF({name:"Tab Bar",skip:e=>jI(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:uF,metaValue:uF},parts:[{kind:"block",type:mF,props:hF},Qj],drop:{...J,...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"}}),oG=()=>IF({name:"Category Bar",skip:e=>{if(jI(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(jI(e.links).length)return"its right-hand links are typed words: the bar holds the Menu only"},parts:[{kind:"block",type:mF,props:{...hF,[ro]:GS}}],drop:{...J,...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"}}),gF={DocTabs:eG(),CategoryBar:oG()};import{jsx as Ba,jsxs as KI}from"react/jsx-runtime";import{slugify as tG}from"efficient-shell/format";import{jsx as GI,jsxs as yF}from"react/jsx-runtime";var Ege="sticky top-[120px]";var Fp={entry:{label:"Entry",follows:"Labels",builtIn:"13px",writable:!0},number:{label:"Entry number",follows:"Labels",builtIn:"13px",writable:!0}};var SF=(e,o)=>e?{[Qr]:o}:{},bF=(e,o)=>ow(e?.[Hs(o)]?.role,Fp[o],sb),wF=120;function CF({title:e,entries:o,stickyTop:t,sticky:r=!0,editing:a=!1,partStyles:n,numberForm:s=Hx,takesViewHide:l=!1}){let i=s==="plain",d=ot(),c=l?d:br;return c.scope(yF("aside",{className:ko(`${r?"sticky ":""}flex flex-col self-start max-[900px]:static`,c.className),style:r?{top:t}:void 0,...c.attrs,children:[e&&GI("h4",{className:"mb-[18px] font-mono text-[length:var(--size-label,12px)] uppercase tracking-[0.3em] text-accent",children:Ve(e)}),o.map((x,m)=>{let h=GI("span",{...SF(a,"number"),style:bF(n,"number"),className:"text-accent",children:Bf(s,m)});return yF("a",{href:`#${x.anchor}`,className:`flex items-center ${i?"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${m===0?" border-t":""}`,children:[i&&h,GI("span",{...SF(a,"entry"),style:bF(n,"entry"),children:Ve(x.label||"Section")}),!i&&h]},`${m}-${x.anchor}`)})]}))}function rG(e,o){return tG(e)||`section-${o+1}`}var qI=e=>typeof e=="string"&&e.trim()!=="";function VI(e){return(e??[]).filter(o=>qI(o.heading)||qI(o.label)||qI(o.body))}function YI(e){let o=new Set;return e.map((t,r)=>{let a=rG(t.label||t.heading||"",r),n=a,s=2;for(;o.has(n);)n=`${a}-${s++}`;return o.add(n),n})}function XI(e){let o=[];for(let t of e.replace(/\r\n?/g,`
|
|
324
|
-
`).split(/\n[ \t]*\n/))t.split(`
|
|
325
|
-
`).map(r=>r.replace(/\s+$/,"")).filter(r=>r.trim()!=="").forEach((r,a)=>{let n=nd(r)[0].bullet,s=o.at(-1),l=a===0||!s||s.type==="ul"!==n;if(n){let i=r.slice(2);!l&&s?.type==="ul"?s.items.push(i):o.push({type:"ul",items:[i]})}else!l&&s?.type==="p"?s.text+=`
|
|
326
|
-
${r}`:o.push({type:"p",text:r})});return o}var aG=()=>[{label:f("First section"),heading:f("Your *first* section."),body:f(`Write the opening paragraph here.
|
|
327
|
-
|
|
328
|
-
- Start a line with a dash for a bullet.
|
|
329
|
-
- Add as many as you like.`)},{label:f("Second section"),heading:f("Your *second* section."),body:f("Leave a blank line between paragraphs to start a new one.")}],nG=wF;function Zge({tocTitle:e,sections:o,editing:t=!1,stickyTop:r=nG,pad:a}){let n=Ct(),s=VI(o);if(s.length===0&&!t)return null;let l=s.length===0&&t?aG():s,i=YI(l);return Ba(ie,{as:"section",className:"relative z-[2] bg-bg",children:KI("div",{...H0(Zo("mx-auto grid max-w-[var(--sf-site-width,1600px)] grid-cols-[240px_1fr] items-start gap-20 border-b border-line px-[var(--sf-site-gutter,40px)] py-20 max-[900px]:grid-cols-1 max-[900px]:gap-10 max-[900px]:px-[min(24px,var(--sf-site-gutter,40px))] max-[900px]:py-[60px]",n),a),children:[Ba(CF,{title:e,entries:l.map((d,c)=>({label:d.label||"Section",anchor:i[c]})),stickyTop:r}),Ba("div",{className:"flex flex-col gap-16",children:l.map((d,c)=>KI("article",{id:i[c],className:"flex flex-col gap-[18px]",style:{scrollMarginTop:r},children:[KI("span",{className:"font-mono text-[length:var(--size-label,12px)] uppercase tracking-[0.3em] text-accent",children:[Mx(c)," \xB7 ",Ve(d.label||"Section")]}),d.heading&&Ba("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:Ve(d.heading)}),XI(d.body??"").map((x,m)=>x.type==="ul"?Ba("ul",{className:"flex max-w-[680px] list-none flex-col gap-2.5 pl-0",children:x.items.map((h,I)=>Ba("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:Ve(h)},I))},m):Ba("p",{className:"max-w-[680px] font-serif text-[length:var(--size-body,17px)] leading-[1.7] text-fg-dim",children:Ve(x.text)},m))]},i[c]))})]})})}var kF=18,vF=18,PF=8,sG=10,JI=e=>typeof e=="string"&&e.trim()!=="",TF=e=>VI(e.sections),lG=e=>XI(typeof e.body=="string"?e.body:"").map(o=>o.type==="ul"?{kind:"ul",text:o.items.map(t=>`- ${t}`).join(`
|
|
330
|
-
`)}:{kind:"p",text:o.text}),ZI={...St(12),letterSpacing:.3,color:"accent",lineHeight:1.5},OF={textStyle:"body-1",fontRole:"accent",...H("body",17)},iG=[fe("label",ZI),{...fe("title",ZI),when:(e,o)=>!JI(o?.label)},{kind:"block",type:"Text",when:(e,o)=>!JI(o?.label)&&!JI(o?.title),props:{...z,text:"Section",_partStyles:{text:ZI}}},{kind:"group",name:"Heading",props:{...A,sectionPaddingBottom:PF,sectionPaddingBottomPhone:PF},parts:[{kind:"group",name:"Heading line",props:{...A,sectionBorder:{bottom:1},sectionPaddingBottom:vF,sectionPaddingBottomPhone:vF},parts:[{kind:"text",key:"heading",role:"heading",props:z,style:{textStyle:"heading-2",...$o("headingMedium",28,3.5,44),case:"upper",weight:500,lineHeight:1.04,letterSpacing:-.025}}]}]},{kind:"list",key:"body",name:"Body",flat:!0,of:lG,parts:[{kind:"text",key:"text",props:oe,style:{...OF,lineHeight:1.7},when:(e,o)=>o?.kind==="p"},{kind:"text",key:"text",props:oe,style:{...OF,lineHeight:1.65,paragraphSpacing:sG},when:(e,o)=>o?.kind==="ul"}]}],dG=900,fG={name:"Document Text",boxProps:e=>({...X,direction:"row",gap:80,gapPhone:40,[ip]:dG,sectionBorder:{bottom:1},...re(e,oc)}),box:["anchor","sectionAccent",...gr,...vn,...Object.values(Ao),...de(oc)],parts:[{kind:"block",type:"Contents",props:e=>({title:e.tocTitle??"",sticky:!0,widthFit:"fixed",width:240,widthFitPhone:"fill"})},{kind:"group",name:"Sections",props:{...A,gap:64,gapPhone:64,widthFit:"fill"},parts:[{kind:"list",key:"sections",name:"Section",of:e=>TF(e),props:{...A,gap:kF,gapPhone:kF},item:(e,o,t)=>({props:{anchor:YI(TF(t))[o]??`section-${o+1}`}}),parts:iG}]}],reads:{tocTitle:"the Contents block's Heading"},drop:{...J,stickyTop:"the Contents block draws DocBody's default (120px); 0 live nodes store it"}},EF={DocBody:fG};import{phoneKey as mG}from"efficient-easel/draw";import{SITE_SIDE as xG}from"efficient-easel/screen/lib/content/length-units";var fye={eyebrow:"\u2014 Label",title:`Section headline *here.*
|
|
331
|
-
*Highlight line*`,body:"Describe this section in a sentence or two."},cye={text:"Learn more"},pye={label:"Image & Text Split",drawsPictures:!0,defaultProps:{eyebrow:"",title:"",body:"",imageSrc:"",reverse:!1,uppercase:!1,textAlign:"left",ctaText:"",ctaHref:"",imageBtnText:"",imageBtnHref:"",textBgSrc:"",overlay:60,imageOverlay:40}};function QI(e){return typeof e=="number"&&Number.isFinite(e)?Math.min(Math.max(e,0),100):40}import{parseOption as cG}from"efficient-shell/format";var _F="[--intro-edge:60px] max-[960px]:[--intro-edge:24px]",pG="overlay",uG=[{label:"Copy over image",value:"overlay"},{label:"Copy above image",value:"stacked"}];function Bp(e){return cG(uG,pG,e)}var xye={desktop:40,mobile:45,min:20,max:80,step:5};function hye(e,o){return`${typeof e=="number"?e:o}%`}import{parseOption as hG}from"efficient-shell/format";var AF=(e,o,t)=>{let r=ye(e),a=ye(o),n=(s,l)=>l&&l!=="px"?{[s]:l}:{};return{...r===void 0?{}:{size:r,...n(tl.size,t?.desktop)},...a===void 0?{}:{sizePhone:a,...n(tl.sizePhone,t?.phone)}}},IG=e=>Bp(e.layout)==="stacked",FF=e=>Math.min(Math.max(ye(e.overlay)??60,0),100),Lp=e=>ye(e)??100,gG={textStyle:"heading-1",sizeToken:{...$o("headingLarge",48,7,96).sizeToken,pxPhone:36},weight:500,lineHeight:.95,letterSpacing:-.03},yG=[fe("eyebrow",H("label",14)),...[!0,!1].map(e=>({kind:"text",key:"title",role:"heading",props:z,style:{...gG,case:e?"upper":"none"},styleFrom:o=>{let t=xx(o);return AF(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=xx(e);return AF(e.bodySizeDesktop,e.bodySizeMobile,{desktop:o.bodyDesktop,phone:o.bodyMobile})}},{kind:"group",name:"Button",props:{...A,align:"start",sectionPaddingTop:8,sectionPaddingTopPhone:8},parts:[{kind:"button",key:"ctaText",href:"ctaHref",variant:"primary",props:no}]}],BF=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)`,SG=()=>({name:"Scroll-Over Text",skip:e=>IG(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=>({...X,direction:"column",justify:"center",align:"start",gap:24,gapPhone:24,share:"content",...Yl,placement:"left",darken:FF(e),darkenStyle:"even",sectionHeightMode:"fixed",sectionHeightUnit:"%",sectionHeightValue:Lp(e.heightDesktop),sectionHeightModePhone:"fixed",sectionHeightUnitPhone:"%",sectionHeightValuePhone:Lp(e.heightMobile),[Hd]:XC}),box:[...Q.filter(e=>!String(typeof e=="string"?e:e[0]).startsWith("sectionHeight")),["imageSrc","bgImage"],["imageSrcMobile","bgImagePhone"],["overlay","darken",(e,o)=>FF(o)],["heightDesktop","sectionHeightValue",e=>Lp(e)],["heightMobile","sectionHeightValuePhone",e=>Lp(e)]],parts:yG,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(Jv.map(e=>[e,"read by its part's `styleFrom`: the unit of that view's Size"])),buttonColor:BF("Button color"),buttonTextColor:BF("Button text color"),...J}}),DF={textStyle:"heading-2",...H("headingMedium",56,36),weight:400,lineHeight:1.05,letterSpacing:-.03},bG={textStyle:"body-1",...H("body",16),lineHeight:1.7},NF=e=>({kind:"text",key:"body",props:{...oe,maxWidth:520},style:{...bG,paragraphSpacing:e}}),Dp={top:0,bottom:0,topPhone:0,bottomPhone:0},eg=(e,o)=>typeof e.sectionHeightMode=="string"&&e.sectionHeightMode!=="auto"?{}:{sectionHeightMode:"fixed",sectionHeightUnit:"%",sectionHeightValue:o,sectionHeightModePhone:"auto"},wG=(e,o)=>{let t=eg(e,o);return Object.keys(t).length?t:{sectionHeightMode:e.sectionHeightMode,...e.sectionHeightValue===void 0?{}:{sectionHeightValue:e.sectionHeightValue},...e.sectionHeightUnit===void 0?{}:{sectionHeightUnit:e.sectionHeightUnit},sectionHeightModePhone:"auto"}},MF={boxShapePhone:"landscape"},HF="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)",CG=(e,o)=>({[e]:o,[mG(e)]:o}),kG={textStyle:"heading-2",...H("headingMedium",40),weight:500,case:"none",lineHeight:1,letterSpacing:-.02},LF=e=>(Array.isArray(e.stats)?e.stats:[]).filter(o=>o&&(String(o.value??"").trim()!==""||String(o.label??"").trim()!=="")),vG=()=>({name:"Brand Text",boxProps:(e,o)=>({...X,...Ho("background")(e,o),direction:"row",share:"equal",gap:0,gapPhone:0,sectionBorder:{top:1,bottom:1},...re(e,Dp),...eg(e,100)}),box:[...Q,...de(Dp)],parts:[{kind:"group",name:"Words",props:()=>({...A,justify:"center",gap:28,gapPhone:28,sectionBorder:Xl({right:1}),sectionBorderPhone:Xl({}),...Yl,sectionPaddingTop:100,sectionPaddingBottom:100,sectionPaddingTopPhone:60,sectionPaddingBottomPhone:60,sectionPaddingRight:xG}),parts:[fe("eyebrow",H("label",14)),{kind:"text",key:"heading",role:"heading",props:z,style:{...DF,case:"none"},mark:"accentItalic"},NF(28),{kind:"group",name:"Stats",props:{...A,sectionPaddingTop:16,sectionPaddingTopPhone:16},parts:[{kind:"group",name:"Figures",props:e=>({...A,direction:"row",share:"equal",gap:24,gapPhone:24,maxWidth:520,phoneRow:Math.min(Math.max(LF(e).length,1),3),...CG("sectionBorder",Xl({top:1})),sectionPaddingTop:28,sectionPaddingTopPhone:28}),parts:[{kind:"list",key:"stats",name:"Stat",of:LF,props:{...A,gap:4,gapPhone:4},parts:[{kind:"text",key:"value",props:Ta,style:kG},fe("label",{...H("label",13),color:"labels",letterSpacing:.2})]}]}]}]},oI("Picture","imageSrc",MF)],drop:{...J,grayscale:HF,...te}}),Rp=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}},PG=e=>e.textAlign==="center"||e.textAlign==="right"?dd[e.textAlign]:"stretch",TG=e=>Math.min(Math.max(ye(e.overlay)??60,0),100),WF=e=>typeof e=="string"&&e.trim()!=="",OG={...no,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},RF=e=>({...oI("Picture","imageSrc",(o,t)=>({...WF(o.imageSrc)&&QI(o.imageOverlay)>0?{darken:QI(o.imageOverlay),darkenStyle:"even"}:{},placement:"center",...MF,sectionBorder:Xl(e?{left:1}:{right:1}),...$F(e?"left":"right",es(t))}),[{kind:"button",key:"imageBtnText",href:"imageBtnHref",variant:"ghost",props:OG,style:{...St(13,12),letterSpacing:.18}}]),when:o=>o.reverse===!0===e}),$F=(e,o)=>{let t=Math.max(60-o,0);return{sectionPaddingLeft:e==="left"?60:t,sectionPaddingRight:e==="right"?60:t}},EG={kind:"group",name:"Words",props:(e,o)=>{let t=e.reverse===!0;return{...A,justify:"center",align:PG(e),placement:hG(["left","center","right"],"left",e.textAlign),...wG(e,72),gap:24,gapPhone:24,...WF(e.textBgSrc)?{darken:TG(e),darkenStyle:"even"}:{},...Yl,sectionPaddingTop:100,sectionPaddingBottom:100,...$F(t?"right":"left",es(o)),sectionPaddingTopPhone:60,sectionPaddingBottomPhone:60}},box:[["textBgSrc","bgImage"]],parts:[{...fe("eyebrow",H("label",14)),styleFrom:Rp},{kind:"text",key:"title",role:"heading",props:z,style:DF,styleFrom:e=>({case:e.uppercase===!0?"upper":"none",...Rp(e)})},{...NF(24),styleFrom:Rp},{kind:"group",name:"Button",props:{...A,sectionPaddingTop:8,sectionPaddingTopPhone:8},parts:[{kind:"button",key:"ctaText",href:"ctaHref",variant:"primary",props:e=>{let o=Rp(e);return{...no,...o.align?{align:o.align}:{},...o.alignPhone?{alignPhone:o.alignPhone}:{}}}}]}]},_G=()=>({name:"Image & Text Split",boxProps:(e,o)=>({...X,...Ho("background")(e,o),direction:"row",share:"equal",gap:0,gapPhone:0,sectionBorder:{top:1,bottom:1},...re(e,Dp),...eg(e,72)}),box:[...Q,...de(Dp)],parts:[RF(!1),EG,RF(!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:HF,...J,...te}}),zF={IntroBleed:SG(),Manifesto:vG(),Split:_G()};var GF={headPlacement:void 0},UF={top:0,bottom:0,topPhone:0,bottomPhone:0},AG=()=>({name:"Form",ownBoxConverts:!0,boxProps:e=>({...X,direction:"column",...re(e,UF)}),box:[...Q,...de(UF)],parts:[{kind:"core",keep:"rest",props:GF}],drop:{...J,...te}}),jF={top:120,bottom:120,topPhone:60,bottomPhone:60},FG=()=>({name:"Photo Submission Form",boxProps:e=>({...X,direction:"column",gap:24,...re(e,jF)}),box:[...Q,...de(jF)],parts:[fe("eyebrow"),{kind:"text",key:"title",role:"heading",props:z,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:GF}],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:{...J,...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'}}),KF={Form:AG(),SubmitBuild:FG()};import{phoneKey as qF}from"efficient-easel/draw";var YF=1.5,VF={textStyle:"body-1",...H("body",15),lineHeight:YF},BG={...Lo,...H("label",12),letterSpacing:.12,lineHeight:YF},XF=()=>({type:j,props:{...A,direction:"row",justify:"between",align:"start",gap:16,gapPhone:16,share:"content",phoneRow:2,[qF("share")]:"content",[qF("wrap")]:"nowrap",...wo(12,0),sectionBorder:{top:1},name:"Item"},slots:{[Ce]:[{type:j,props:{...A,gap:0,gapPhone:0,name:"Item words"},slots:{[Ce]:[Ae("label",{...z,tag:"p"},VF),Ae("meta",{...oe,tag:"p"},BG)]}},Ae("amount",{...z,tag:"p"},VF)]}});var LG=()=>({name:"Order Table",boxProps:()=>({...X,direction:"column"}),box:[...Q],parts:[{kind:"core",keep:"rest",headless:!0,slots:{[Pe]:[XF()]}}],drop:{...J}}),JF={OrderSummary:LG()};import{phoneKey as RG}from"efficient-easel/draw";var Uye={eyebrow:"By the numbers",title:`A picture worth
|
|
332
|
-
*a thousand rows.*`},ZF=["eyebrow","title","body","caption"],jye={label:"Chart",defaultProps:{eyebrow:"",title:"",body:"",items:[],caption:"",chartStyle:"bars",valueSuffix:""}};var QF=["eyebrow","title","body"],Kye={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 tB=()=>({kind:"group",name:"Words",props:{...A,gap:20,gapPhone:20},parts:[{kind:"group",name:"Chip row",props:{...A,direction:"row",phoneRow:2,[RG("share")]:"content"},parts:[Jn("eyebrow")]},{kind:"text",key:"title",role:"heading",props:z,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:cd(16)}]}),rB=e=>(o,t)=>({...X,sectionAccent:Qn(o.sectionAccent??0,t),direction:"row",align:"center",gap:56,gapPhone:56,share:e,sectionBorder:{top:1,bottom:1},...re(o,yl)}),aB=[...Q.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,t)=>Qn(e,t)],...de(yl)],DG=()=>({name:"Chart",boxProps:rB([42]),box:aB,parts:[tB(),{kind:"group",name:"Chart",props:{...A,gap:16,gapPhone:16},keepEmpty:!0,parts:[{kind:"core",keep:"rest",props:Xn},fe("caption",{color:"muted",...H("label",10),letterSpacing:.14})]}],pressKeepsEmpty:[...ZF],drop:{...J,...te}}),eB=e=>e.align==="left",oB={kind:"group",name:"Card",keepEmpty:!0,props:A,parts:[{kind:"core",keep:"rest",props:Xn}]},NG=()=>({name:"Mockup Card",boxProps:rB("equal"),box:aB,parts:[{...oB,when:eB},tB(),{...oB,when:e=>!eB(e)}],pressKeepsEmpty:[...QF],drop:{...J,...te}}),nB={Chart:DG(),Mockup:NG()};import{phoneKey as HG}from"efficient-easel/draw";function sB(e,o=3){let t=Array.from({length:o},()=>[]);return e.forEach((r,a)=>t[a%o].push(r)),t}function lB(e){return Math.max(e*6,30)}var WG=e=>(Array.isArray(e.apps)?e.apps:[]).map(o=>o&&typeof o=="object"&&typeof o.text=="string"?o.text.trim():"").filter(Boolean),og=e=>sB(WG(e)),$G=e=>wp({loopDuration:lB(e)}),zG={kind:"group",name:"Header",props:{...A,align:"center",gap:20,gapPhone:20},parts:[{kind:"group",name:"Chip row",props:{...A,direction:"row",justify:"center",phoneRow:2,[HG("share")]:"content"},parts:[Jn("eyebrow")]},{kind:"text",key:"title",role:"heading",props:{...z,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:cd(16)}]},UG=e=>({kind:"group",name:`Row ${e+1}`,when:o=>og(o)[e].length>0,props:o=>({...A,direction:"row",gap:12,gapPhone:12,loop:"scroll",...e%2===1?{scrollDirection:"right"}:{},loopDuration:$G(og(o)[e].length)}),parts:[{kind:"block",type:"Logos",props:{contained:!1,headPlacement:"own-box",look:"chips",grayscale:!1},slot:"logos",parts:[{kind:"list",key:"apps",name:"Logo",flat:!0,of:o=>og(o)[e].map(t=>({alt:t})),parts:[{kind:"block",type:"LogoBlock",box:["alt"]}]}]}]}),jG={kind:"group",name:"Stat",props:{...A,align:"center",gap:16,gapPhone:16},parts:[{kind:"group",name:"Figure",props:{...A,align:"center",gap:8,gapPhone:8},parts:[{kind:"text",key:"statValue",props:{...z,align:"center"},style:{textStyle:"heading-1",...H("headingLarge",64,46),weight:500,case:"upper",lineHeight:1,color:"accent"}},{kind:"text",key:"statLabel",props:{...z,align:"center"},style:{textStyle:"heading-3",...H("headingSmall",18),weight:500,case:"upper",letterSpacing:.06}}]},{kind:"text",key:"note",props:{...z,align:"center",maxWidth:428},style:{textStyle:"body-1",...H("label",14),lineHeight:1.625,color:"muted"}}]},GG=[...Q.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,t)=>Qn(e,t)],...de(nc)],KG={name:"Integrations",boxProps:(e,o)=>({...X,sectionAccent:Qn(e.sectionAccent??0,o),direction:"column",gap:48,gapPhone:48,sectionBorder:{top:1,bottom:1},...re(e,nc)}),box:GG,parts:[zG,{kind:"group",name:"Rows",props:{...A,gap:12,gapPhone:12},parts:Array.from({length:3},(e,o)=>UG(o))},jG],pressKeepsEmpty:["body","statValue","statLabel","note"],reads:{apps:"a Logo block per app, dealt into the three Rows"},drop:{...J,...te}},iB={Integrations:KG},dB=()=>({eyebrow:f("Integrations"),title:f(`Plays well with
|
|
333
|
-
*your favourite apps.*`),apps:["Shopify","Xero","Stripe","Mailchimp","Zapier","HubSpot","QuickBooks","PayPal","Google Analytics"].map(e=>({text:e}))});var qG={title:"Back online in",zeroText:"Almost done. Back very soon."},fB=["title"],fSe={label:"Countdown",defaultProps:{...qG,endsAt:"",showUnits:!0}};var VG={...fe("title",{...Kb(12),color:"muted"}),props:{...z,align:"center"}},YG=()=>({name:"Countdown",boxProps:e=>({...X,direction:"column",align:"center",gap:16,gapPhone:16,...re(e,ec)}),box:[...Q,...de(ec)],parts:[VG,{kind:"core",keep:"rest",props:Xn}],pressKeepsEmpty:[...fB],drop:{...J,...te}}),XG=()=>({name:"Feature Banner",boxProps:e=>({...X,direction:"column",sectionBorder:{bottom:1},...re(e,ac)}),box:[...Q,...de(ac)],parts:[{kind:"core",keep:"rest",props:Xn}],drop:{...J,...te}}),cB={Countdown:YG(),FeaturedCover:XG()};var pB={top:80,bottom:80,topPhone:60,bottomPhone:60},JG=()=>{let e=mp("FitmentFinder");return{name:"Fitment Form",boxProps:o=>({...X,direction:"column",gap:Jl[Aa("FitmentFinder")],...re(o,pB)}),box:[...Q,...de(pB)],parts:[lt("FitmentFinder"),{kind:"block",type:"FitmentPicker"},{kind:"block",type:"StockFitment"},{kind:"button",key:"ctaText",href:"ctaHref"}],skip:o=>o.layout==="bar"?"the one-row shape goes to the shop on the fourth pick and draws no head; the Fitment picker block never leaves the page":void 0,...Object.keys(e).length?{reads:e}:{},drop:{...J,...te,layout:'the section shape; "bar" is skipped (above), so here it is the stacked shape this Box draws'}}},uB={FitmentFinder:JG()};var Np={eyebrow:"Label",title:"Section *heading.*",body:"Add this section's copy here. A blank line starts a new paragraph."},SSe={label:"Editorial Text",defaultProps:{eyebrow:"",title:"",body:"",topBorder:!0}};var li={eyebrow:Te.eyebrow,lead:"Introduce your company in a paragraph or two.",foundersHeading:"Add a short heading.",foundersBody:"Add a short statement here \u2014 a sentence or two is plenty.",attribution:"\u2014 Name, Year"},CSe={label:"Lead Text",defaultProps:{eyebrow:"",lead:"",stats:[],foundersHeading:"",foundersBody:"",attribution:"",padTop:60,padBottom:80}};var mB={eyebrow:"Limited release",title:"Banner headline",body:"A line or two of supporting copy."},vSe={label:"Banner",drawsPictures:!0,defaultProps:{eyebrow:"",title:"",body:"",imageSrc:"",ctaText:"",ctaHref:"",contained:!0,overlay:60}};var xB={title:`Section heading
|
|
334
|
-
*Highlight line*`},hB=[{label:ze.text,href:ze.href,variant:"primary"},{label:ze.text,href:ze.href,variant:"outline"}],OSe={label:"Call-to-Action Heading",defaultProps:{title:"",buttons:[],padTop:140,padBottom:140}};var dr={num:"01 / Section",title:"Section *title*",description:"Short supporting line",linkText:Te.viewAll},BSe={label:"Section Header",drawsPictures:!0,defaultProps:{headStyle:Kf,num:dr.num,numStyle:wl,title:dr.title,description:"",logoSrc:"",logoAlt:"",linkText:"",linkHref:""}};var Mp={eyebrow:"\u2014 Label",title:`Section headline
|
|
335
|
-
*Highlight line*`,body:"A sentence or two of supporting copy."},NSe={label:"Scroll-Over Text",drawsPictures:!0,defaultProps:{eyebrow:"",title:"",body:"",imageSrc:"",imageSrcMobile:"",heightDesktop:100,heightMobile:100,overlay:60,titleSizeDesktop:nl,bodySizeDesktop:nl,titleSizeMobile:nl,bodySizeMobile:nl,ctaText:"",ctaHref:"",buttonColor:"",buttonTextColor:"",stickTop:!0,[Sn]:0,uppercase:!1}};var ZG={name:"Editorial Text",boxProps:e=>({...X,direction:"column",gap:28,gapPhone:28,sectionBorder:{top:1},...re(e,lc)}),box:[["topBorder","sectionBorder",e=>e===!1?void 0:{top:1}],...Q,...de(lc)],parts:[lt("Prose"),{kind:"text",key:"body",props:oe,style:{textStyle:"body-1",...H("body",16),lineHeight:1.7,paragraphSpacing:18}}],drop:{...J,...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)"}},gB={buttonPaddingTop:20,buttonPaddingBottom:20,buttonPaddingLeft:28,buttonPaddingRight:28},yB=(e,o)=>o?.variant==="primary",SB=(e,o)=>({kind:"list",key:"buttons",name:"Button",flat:!0,when:e,parts:[{kind:"button",key:"label",href:"href",when:yB,variant:"primary",style:{letterSpacing:.3},props:{...no,...gB,...o}},{kind:"button",key:"label",href:"href",when:(t,r)=>!yB(t,r),variant:"ghost",style:{letterSpacing:.3},props:{...no,...gB,...o}}]}),Hp=e=>Me(e.title),QG={name:"Call-to-Action Heading",boxProps:e=>({...X,direction:"row",align:"center",justify:Hp(e)?"between":"end",gap:60,gapPhone:60,share:"content",sectionBorder:{bottom:1},...st(e,"TitleWithButtons")}),box:[...Q,...Rr("TitleWithButtons")],parts:[{kind:"group",name:"Title",props:{...A,maxWidth:1e3,widthFitPhone:"fill"},parts:[{kind:"text",key:"title",role:"heading",props:z,style:{textStyle:"heading-1",...$o("headingLarge",48,7,108),case:"upper",lineHeight:.94,letterSpacing:-.035},mark:"accentItalic"}]},{kind:"group",name:"Buttons",props:e=>({...A,gap:14,gapPhone:14,widthFitPhone:"fill",...Hp(e)?{minWidth:280,minWidthPhone:0}:{}}),parts:[SB(Hp,{widthFit:"fill",iconPosition:"end"}),SB(e=>!Hp(e),{})]}],drop:{...J,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 e8(e,o){let t=es(o,{to:hr(e.sectionPaddingUnitTablet??e.sectionPaddingUnit)}),r=es(o,{view:"phone",to:hr(e.sectionPaddingUnitPhone),maxPx:20});return{sectionPaddingLeft:IB,sectionPaddingRight:IB,sectionPaddingLeftTablet:t,sectionPaddingRightTablet:t,sectionPaddingLeftPhone:r,sectionPaddingRightPhone:r}}var o8={name:"Section Header",boxProps:(e,o)=>({...X,direction:"column",gap:0,...re(e,ic),...e8(e,o)}),box:[...Q,...de(ic)],parts:[lt("SectionHeader")],drop:{...J,...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"}},bB={...A,direction:"row",share:[67],gap:32},wB={...A,sectionPaddingLeft:24,sectionPaddingLeftPhone:0},CB=(e,o,t)=>({kind:"group",name:e,props:o,parts:[t]}),t8={name:"Lead Text",boxProps:e=>({...X,direction:"column",gap:40,gapPhone:40,sectionBorder:{bottom:1},...st(e,"ParagraphsA")}),box:[...Q,...Rr("ParagraphsA")],parts:[{kind:"group",name:"Numbers",props:{...bB,gapPhone:24,sectionBorder:{bottom:1},sectionPaddingBottom:40,sectionPaddingBottomPhone:40},parts:[{kind:"group",name:"Eyebrow",props:{...A,sectionPaddingTop:5,sectionPaddingBottom:1,sectionPaddingTopPhone:5,sectionPaddingBottomPhone:1},parts:[fe("eyebrow",{color:"labels",...H("label",12),letterSpacing:.24})]},CB("Stats column",A,{kind:"group",name:"Stats",props:{...wB,gap:0,gapPhone:0},parts:[{kind:"list",key:"stats",name:"Stat",flat:!0,parts:[Vl("value","label",{...H("label",13),letterSpacing:.18,lineHeight:1.8})]}]})]},{kind:"group",name:"Words",props:{...bB,gapPhone:28},parts:[{kind:"group",name:"Lead",props:A,parts:[{kind:"group",name:"Measure",props:{...A,maxWidth:780},parts:[{kind:"text",key:"lead",props:z,style:{textStyle:"heading-3",...H("headingSmall",22,20),weight:400,case:"none",lineHeight:1.45,letterSpacing:-.005}}]}]},CB("Note column",{...A,justify:"end"},{kind:"group",name:"Founders",props:{...wB,gap:8,gapPhone:8},parts:[{kind:"group",name:"Note",props:{...A,gap:6,gapPhone:6},parts:[{kind:"text",key:"foundersHeading",props:z,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}}]},fe("attribution",{...H("label",12,10),letterSpacing:.24,lineHeight:1.7})]})]}],drop:{...J}},r8={name:"Banner",boxProps:e=>({...X,direction:"column",gap:0,...re(e,Yf)}),box:[...Q,"contained",...de(Yf)],parts:[{kind:"group",name:"Card",keepEmpty:!0,props:{...A,gap:28,gapPhone:28,placement:"top-left",darken:60,darkenStyle:"even",sectionBorder:{width:1},...Yt("surface"),...wo(64,40,40,24)},box:[["imageSrc","bgImage"],["overlay","darken",e=>Math.min(Math.max(ye(e)??60,0),100)]],parts:[{kind:"group",name:"Words",props:{...A,gap:20,gapPhone:20},parts:[fe("eyebrow"),{kind:"text",key:"title",role:"heading",props:{...z,maxWidth:680},style:{weight:500,lineHeight:1.05,letterSpacing:-.03,case:"none",...H("headingMedium",44,32)}},{kind:"text",key:"body",props:{...z,maxWidth:680},style:{textStyle:"body-1",lineHeight:1.6,...H("body",16)}}]},{kind:"button",key:"ctaText",href:"ctaHref",variant:"primary",props:no}]}],drop:{...J,...te}},tg={Prose:ZG,TitleWithButtons:QG,SectionHeader:o8,ParagraphsA:t8,Banner:r8},kB={Prose:()=>({eyebrow:Np.eyebrow,title:wt(Np.title),body:Np.body}),TitleWithButtons:()=>({title:wt(xB.title),buttons:hB.map(e=>({...e}))}),SectionHeader:()=>({num:dr.num,title:wt(dr.title),description:dr.description,linkText:dr.linkText,linkHref:ze.href}),ParagraphsA:()=>({eyebrow:li.eyebrow,lead:Te.body,foundersHeading:li.foundersHeading,foundersBody:li.foundersBody,attribution:li.attribution}),Banner:()=>({...mB,ctaText:ze.text,ctaHref:ze.href}),ProcessSteps:()=>({num:dr.num,title:wt(dr.title)}),IntroBleed:()=>({eyebrow:Mp.eyebrow,title:wt(Mp.title),body:Mp.body,ctaText:ze.text,ctaHref:ze.href})};function Wp(){oo(tg),oo(j1),oo(sA),oo(R1),oo(wA),oo(DA),oo(YA),oo(ZA),oo(iF),oo(gF),oo(EF),oo(zF),oo(KF),oo(JF),oo(uB),oo(nB),oo(iB),oo(cB)}var a8=[{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=>B_(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=>R_(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})=>(Wp(),H_(e,Gl,{theme:Uw(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=>x0(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=>kE(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=>CE(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=>bE(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=>S0(e)},{name:"withPageContents",chrome:!1,why:"page-only: a Contents block lists the PAGE's anchored sections and numbers their kickers",run:e=>KT(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=>EE(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=>LE(e)}];function n8(e,o,t){let r=e;for(let a of a8)(!t||a.chrome)&&(r=a.run(r,o));return r}function vB(e,o){return n8(e,{metadata:o},!1)}import{useRef as s8}from"react";import{createRenderKeep as l8}from"efficient-easel/render";function PB(){let e=s8(null);return e.current??=l8(),e.current}import{isNode as i8,isNodeList as d8}from"efficient-easel/data";import{hidableText as f8,readHidable as c8}from"efficient-easel/draw";var OB="slotCounts",rg=e=>!c8(e).hidden&&f8(e).trim()!=="",p8=e=>typeof e=="string"&&e.trim()!=="",u8={Flex:()=>!0,PostCard:()=>!0,ImageBlock:e=>p8(e.src),Text:e=>rg(e.text),Heading:e=>rg(e.text),Eyebrow:e=>rg(e.eyebrow)},m8=["widthFit","width","minWidth"],TB=e=>d8(e);function x8(e){if(Array.isArray(e.content))return TB(e.content)?e.content:null;let o=Object.values(e).filter(TB);return o.length===1?o[0]:null}function h8(e,o){return[...new Set([YS,...Object.values($(pw,e)??{})])].some(t=>Rt(o,t)!=="")}function I8(e){let o=e.props??{},t=$(u8,e.type);if(!t||!t(o)||h8(e.type,o)||al(o))return!1;let r=o[Gn];if(r!=null&&r!=="")return!1;let a=Zc(o);return!m8.some(n=>a[n]!==void 0)}function g8(e){let o=0;for(let t of e)if(!Qt(t.props??{})){if(!I8(t))return;o+=1}return o>0?o:void 0}function y8(e){let o={},t=new Set,r=new Set,a=(n,s)=>{if(Array.isArray(n))for(let l of n){if(!i8(l))continue;let i=l.props.id;typeof i=="string"&&(t.has(i)?r:t).add(i);let d=s?null:x8(l.props);if(typeof i=="string"&&d){let c=g8(d);c!==void 0&&(o[i]=c)}for(let c of Ft(l))a(l.props[c],s||ea(l.type,c))}};a(e,!1);for(let n of r)delete o[n];return o}function EB(e,o){return{...e??{},[OB]:y8(o)}}function zbe(e){let o=e.editor?.metadata?.[OB],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 w8({config:e,data:o,metadata:t}){let r=vB(o,t),a=PB(),n=u0(e,p0(r.content)),s=zf(r.content),l=s.length>0?{...t,[c0]:s}:t;return _B(Uf,{children:_B(b8,{config:n,metadata:EB(l,r.content),keep:a,data:r})})}var AB=S8(w8);import{jsx as zo,Fragment as OK,jsxs as PL}from"react/jsx-runtime";import{Suspense as EK}from"react";import{jsx as C8}from"react/jsx-runtime";import{createContext as k8,useCallback as v8,useContext as P8,useState as ag}from"react";var FB=k8({footerBlock:null,setFooterBlock:()=>{},headerGroup:null,setHeaderGroup:()=>{},refreshToken:0,refreshFooter:()=>{},chromeRootProps:null});function ewe({children:e,editFooter:o,chromeRootProps:t=null}){let[r,a]=ag(null),[n,s]=ag(null),[l,i]=ag(0),d=v8(()=>i(c=>c+1),[]);return C8(FB.Provider,{value:{footerBlock:r,setFooterBlock:a,headerGroup:n,setHeaderGroup:s,editFooter:o,refreshToken:l,refreshFooter:d,chromeRootProps:t},children:e})}var BB=()=>P8(FB);import{jsx as T8,jsxs as O8}from"react/jsx-runtime";import{createContext as E8,useContext as _8}from"react";var LB=E8(!1);function nwe(){return _8(LB)}function RB({grayscale:e,children:o}){let t=e===!0;return O8(LB.Provider,{value:t,children:[Object.entries(JE(e)).map(([r,a])=>T8("style",{children:a},r)),o]})}import{jsx as A8}from"react/jsx-runtime";import{createContext as F8,useContext as B8}from"react";var DB=F8(null);function dwe(){return B8(DB)}function NB({ink:e,children:o}){return A8(DB.Provider,{value:e??null,children:o})}import{parseOption as L8}from"efficient-shell/format";var MB="data-lead-ink",mwe="data-header-ink",R8=["auto","light","dark"],D8="auto";function N8(e){return e.type==="IntroBleed"?Bp(e.props?.layout)!=="stacked":!0}function HB(e){let o=mf(e);return o&&tP(e)&&N8(o)?"light":null}function xwe(e){return L8(R8,D8,e)}import{useEasel as TL}from"efficient-easel/easel";import{useEffect as Y8}from"react";import{useEaselApi as X8}from"efficient-easel/easel";import{find as M8,walk as WB}from"efficient-easel/data";var H8=()=>"",W8=e=>Nm(Bt([e],H8));function UB(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(W8))])),a=Nm(e);return Object.keys(r).find(n=>r[n].has(a))??null}var $8=()=>({press:[os(Zr),os(Ms)],delivery:[nI()]}),z8={},ng=e=>UB(e,$8,z8),U8=e=>De(e)===jS?"delivery":"press";function Twe(e,o){if(!o||De(e)===De(o))return e;let t=ng(e[Pe]),r=U8(e);if(!t||t===r)return e;let a=Fm(e,ao),n=r==="delivery"?nI():os(De(e)?Ms:Zr),s=Bt([n],Lm(a));return{...e,[Pe]:s}}var j8=()=>({cards:[sn(Zr),sn(Ms)],label:[ln(!1),ln(!0)]}),G8={},K8=e=>UB(e,j8,G8);function Owe(e,o){if(!o||e.cardStyle==="label-only"==(o.cardStyle==="label-only"))return e;let t=K8(e[Pe]),r=e.cardStyle==="label-only"?"label":"cards";if(!t||t===r)return e;let a=Fm(e,qb),n=Array.isArray(e.items)&&e.items.some(i=>uo(i?.href)!==void 0),s=r==="label"?ln(n):sn(De(e)?Ms:Zr),l=Bt([s],Lm(a));return{...e,[Pe]:l}}var $B=(e,o)=>aI.every(t=>JSON.stringify(e[t])===JSON.stringify(o[t]));function zB(e,o){let t={...e};for(let r of aI)delete t[r];return{...t,...structuredClone(o)}}function sg(e){let o=e?.[Ce];if(!Array.isArray(o)||o.length!==1)return null;let t=o[0];return t?.type===ao&&t.props?t:null}function q8(e,o){let t=sg(e),r=sg(o);if(!t?.props||!r?.props||r.props.id!==t.props.id||De(t.props)===De(r.props))return e;let a=ng(t.props[Pe]);if(!a||a===ng(r.props[Pe]))return e;let n=ye(e.columns);return n===void 0?e:a==="delivery"&&$B(e,_a(n))?zB(e,np(n)):a==="press"&&$B(e,np(n))?zB(e,_a(n)):e}function jB(e){let o=$p.get(e);o?o.count+=1:$p.set(e,{count:1,stop:V8(e)});let t=!1;return()=>{let r=$p.get(e);t||!r||(t=!0,r.count-=1,!(r.count>0)&&(r.stop(),$p.delete(e)))}}var $p=new WeakMap;function V8(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;WB(t,e.config,n=>{if(n.type!==j||!sg(n.props))return;let s=M8(r,e.config,n.props.id);if(!s||s.node===n)return;let l=q8(n.props,s.node.props);l!==n.props&&a.set(n.props.id,l)}),a.size&&e.dispatch({type:"setData",recordHistory:!1,data:n=>WB(n,e.config,s=>{let l=a.get(s.props.id);return l?{...s,props:{...l,id:s.props.id}}:void 0})})})}function GB(){let e=J8();Y8(()=>e?jB(e):void 0,[e])}function J8(){try{return X8()}catch{return null}}import{jsx as zp}from"react/jsx-runtime";import{useEffect as Z8}from"react";import{armScrollProgress as Q8}from"efficient-shell/format";function KB({armed:e,children:o}){return Z8(()=>e?Q8():void 0,[e]),o}function lg(){return{style:{"--sf-page-width":Do}}}function eK({children:e}){return zp("div",{style:lg().style,children:e})}function $we({pageBackground:e,inheritBackground:o=!1,chrome:t=!1,children:r}){return zp("div",{style:{...o?{}:Sf(e),background:"var(--bg)",minHeight:"100%",overflowX:"clip"},children:zp(KB,{armed:!t,children:zp(eK,{children:r})})})}import{jsx as qB,Fragment as oK}from"react/jsx-runtime";import{createContext as YB,useContext as VB}from"react";var XB=YB({}),JB=XB.Provider,ZB=YB(void 0),QB=ZB.Provider;function Gwe(e){let{SectionTextParts:o}=VB(XB),t=VB(ZB);return o?qB(o,{...e,sizeCaps:t}):qB(oK,{children:e.children})}import{jsx as SK}from"react/jsx-runtime";import{useEffect as bK,useRef as wK}from"react";var eL="data-easel-overlay-portal";function Up(e){return e.setAttribute(eL,"true"),()=>{e.removeAttribute(eL)}}import{jsx as pK}from"react/jsx-runtime";import{useEffect as uK,useRef as xL}from"react";import{usePreviewParts as mK}from"efficient-easel/draw/client";import{jsx as tK}from"react/jsx-runtime";import{createContext as rK,useContext as aK,useMemo as nK,useState as sK}from"react";var lK={partStyle:null,setPartStyle:()=>{}},oL=rK(lK);function Xwe({children:e}){let[o,t]=sK(null),r=nK(()=>({partStyle:o,setPartStyle:t}),[o]);return tK(oL.Provider,{value:r,children:e})}function ds(){return aK(oL)}import{usePreviewDevice as xK}from"efficient-easel/draw/client";import{shownTier as hK}from"efficient-easel/screen/lib/document/device-fields";import{decodePartId as hL,encodePartId as IK}from"efficient-easel/draw";import{BLOCK_ATTRIBUTE as gK}from"efficient-easel/canvas";import{createPreviewSelectionContext as iK}from"efficient-easel/draw/client";var La="Scrolling Bar",{Provider:Qwe,useSelection:tL}=iK("selectedHeroId"),ig="data-sf-hero-ticker";function rL(e){return`${e}::ticker`}function aL(e){return!e||!e.endsWith("::ticker")?null:e.slice(0,-8)||null}import{BLOCK_ATTRIBUTE as Wr}from"efficient-easel/canvas";import{createPreviewSelectionContext as dK}from"efficient-easel/draw/client";var{Provider:tCe,useSelection:nL}=dK("selectedLocationPartId");function jp(e,o,t){return`${e}::${o}::${t}`}function Gp(e){if(!e)return null;let o=e.split("::");if(o.length<3)return null;let t=o[o.length-1];if(t!=="image"&&t!=="map"&&t!=="city")return null;let r=Number(o[o.length-2]);if(!Number.isInteger(r)||r<0)return null;let a=o.slice(0,-2).join("::");return a?{nodeId:a,index:r,part:t}:null}var fg="data-sf-part-label";function cg(e,o){return e.closest(`[${Wr}]`)?.getAttribute(Wr)===o}function sL(e,o,t){let r=e.querySelectorAll("*"),a=new Map(t.map(y=>[y.key,nf(y.label)])),n=[],s=new Set;for(let y=0;y<r.length;y+=1){let b=r[y];if(!cg(b,o))continue;let E=b.getAttribute(Gk);if(!E)continue;let B=a.get(E);n.push({element:b,partId:Ht(o,E),...B?{label:B}:{}}),s.add(b)}let l=[],i=new Set;for(let y=0;y<r.length;y+=1){let b=r[y];if(!cg(b,o)||s.has(b))continue;let E=qk(b.textContent??"");if(!E)continue;let B=b.closest(`[${lx}]`)?.getAttribute(lx)||null;B&&i.add(B.replace(/\[\d+\]$/u,"")),l.push({element:b,text:E,row:B})}let d=y=>l.filter(b=>b.row===jk(y.key,y.row.index)),c=l.filter(y=>y.row===null),x=y=>y.row&&i.has(y.key)?d(y):i.size?c:l,m=new Map,h=[],I=y=>y.row?`${y.key}.${y.row.rowKey}`:null,C=new Map;for(let y of t){let b=I(y);if(!b||i.has(y.key))continue;let E=C.get(b);E?E.push(y):C.set(b,[y])}let P=new Set;for(let[y,b]of C){if(b.length<2)continue;let E=b.flatMap(k=>k.texts);if(new Set(E).size===E.length)continue;let B=x(b[0]).filter(k=>E.includes(k.text));if(B.length!==b.length)continue;let R=[...b].sort((k,L)=>(k.row?.index??0)-(L.row?.index??0));for(let k=0;k<R.length;k+=1){let L=R[k],g=B[k].element,w={key:L.key,partKey:kn(L.key,L.row),exact:!0},T=m.get(g);T?T.push(w):(m.set(g,[w]),h.push(g))}P.add(y)}let O=new Map;for(let y of t){if(P.has(I(y)??""))continue;let b=kn(y.key,y.row);for(let E of y.texts)for(let B of x(y)){if(B.text!==E)continue;let R=O.get(B.element);R?R.add(b):O.set(B.element,new Set([b]))}}let F=(y,b)=>[...O].some(([E,B])=>E!==y&&!B.has(b)&&E.contains(y));for(let y of t){if(P.has(I(y)??""))continue;let b=kn(y.key,y.row);for(let E of y.texts){let B=[],R=null;for(let g of x(y))g.text===E?F(g.element,b)||B.push(g.element):!B.length&&g.text.includes(E)&&(!R||g.text.length<=R.length)&&(R={element:g.element,length:g.text.length});let k=B.length?B:R?[R.element]:[],L=k.filter(g=>!k.some(w=>w!==g&&g.contains(w)));for(let g of L){let w={key:y.key,partKey:b,exact:B.length>0},T=m.get(g);T?T.push(w):(m.set(g,[w]),h.push(g))}}}let v=[...n];for(let y of h){let b=m.get(y)??[],E=b.some(B=>B.exact)?b.filter(B=>B.exact):b;if(new Set(E.map(B=>B.partKey)).size===1){let B=a.get(E[0].key);v.push({element:y,partId:Ht(o,E[0].partKey),...B?{label:B}:{}});continue}new Set(E.map(B=>B.key)).size===1&&v.push({element:y,partId:Ht(o,E[0].key)})}return v}function dg(e,o,t){let r=e.querySelectorAll(`[${$e}]`);for(let n=0;n<r.length;n+=1){let s=r[n];cg(s,o)&&(s.removeAttribute($e),s.removeAttribute(fg))}let a=[];for(let{element:n,partId:s,label:l}of t)n.setAttribute($e,s),l&&n.setAttribute(fg,l),a.push(n);return a}function dL(e,o,t,r,a,n=()=>null){let s=null,l=null,i=null,d=()=>{let c=t(),x=c?.getAttribute(Wr)??null;if(!c||!x)return!1;s=x;let m=sL(e,x,o);return a(c,x,dg(e,x,m)),i=n(()=>{let h=sL(e,x,o);fK(m,h)||(m=h,a(c,x,dg(e,x,h)))}),!0};return d()||(l=r(()=>{(s||d())&&(l?.(),l=null)})),()=>{l?.(),l=null,i?.(),i=null,s&&dg(e,s,[])}}function fK(e,o){return e.length===o.length&&e.every((t,r)=>t.element===o[r].element&&t.partId===o[r].partId)}function fCe(e,o){let t=e?.closest?.(`[${$e}],[${kr}]`),r=t?.getAttribute($e)??t?.getAttribute(kr),a=r?Uk(r):null;if(t&&r&&a?.nodeId===o&&a.propKey)return{id:r,element:t,whole:iL(t,r),label:lL(t,r)};let n=e?.closest?.(cL.slice(2).map(l=>`[${l}]`).join(","));if(!n)return null;let s=n.closest?.(`[${Wr}]`)?.getAttribute(Wr)===o?pL(n,o):null;return s?{id:s,element:n,whole:iL(n,s),label:lL(n,s)}:null}function lL(e,o){let t=Gp(o);if(t)return t.part==="map"?"Map":t.part==="city"?"City":"Image";let r=Hc(o);return r?ir[r.part]:aL(o)?La:e.getAttribute(fg)??void 0}var fL="data-loc-pick",cL=[$e,kr,Wl,ig,fL];function pL(e,o){let t=e.getAttribute($e)??e.getAttribute(kr);if(t)return t;let r=e.getAttribute(Wl);if(r)return ba(o,r);if(e.getAttribute(ig)!==null)return rL(o);let a=e.getAttribute(fL)?.split(":");return a&&(a[1]==="image"||a[1]==="map"||a[1]==="city")&&/^\d+$/.test(a[0])?jp(o,Number(a[0]),a[1]):null}function iL(e,o){let t=e.closest?.(`[${Wr}]`),r=t?.getAttribute(Wr);if(!t||!r)return!1;let a=new Set;for(let n of t.querySelectorAll(cL.map(s=>`[${s}]`).join(","))){if(n.closest?.(`[${Wr}]`)!==t)continue;let s=pL(n,r);s&&a.add(s)}return a.size===1&&a.has(o)}import{ENTRANCE_ATTR as uL,playEntrance as cK}from"efficient-shell/format";var pg=new WeakMap;function mL(e,o,t,r){let a=typeof t=="boolean"?t?"phone":"desktop":t,n=[],s=new Map;for(let{partKey:d}of e){if(s.has(d))continue;let c=o(d)??{},x=GC(c),m=r.get(d),h=m?Hn.next(m,x,a):null;r.set(d,h?h.seen:Hn.seed(x)),s.set(d,h?.play??!1)}let l=new Map,i=e.filter(d=>!e.some(c=>c!==d&&c.partKey===d.partKey&&c.element.contains(d.element)));for(let d of i){let c=wc(d.element);c&&l.set(c,[...l.get(c)??[],d])}for(let[d,c]of l){let x=I=>Tl(o(I.partKey)??{}),m=zn(c.filter(I=>x(I).entrance));if(m){let I=o(m.partKey)??{};n.push(Sc(d,Vs(I,a)));let C=pg.get(d);pg.set(d,m.partKey),(s.get(m.partKey)||C!==void 0&&C!==m.partKey)&&d.hasAttribute(uL)&&cK(d)}else pg.delete(d);let h=d.hasAttribute(uL)?void 0:zn(c.filter(I=>nr(o(I.partKey)??{},a).effect!=="none"));h&&n.push(bc(d,nr(o(h.partKey)??{},a))),c.some(I=>x(I).hover==="lift")&&(Cc(d.ownerDocument),d.setAttribute(Ia,""),n.push(()=>d.removeAttribute(Ia)))}return()=>n.forEach(d=>d())}function ug(e){let o=null,t=null;for(let r=e;r&&(o===null||t===null);r=r.parentElement){let a=r.getAttribute("class");o??=lb(a),t??=Um(a)}return{faceRole:o??"body",sizeGroup:t}}function Kp(e,o={}){let t=e.style,r={};for(let l of px)r[l]=t[l]??"",t[l]="";o.fontFamily&&(t.fontFamily=o.fontFamily),o.fontSize&&(t.fontSize=o.fontSize);let a=getComputedStyle(e),n=getComputedStyle(e.ownerDocument.documentElement),s=hv({fontSize:a.fontSize,fontWeight:a.fontWeight,lineHeight:a.lineHeight,letterSpacing:a.letterSpacing,textAlign:a.textAlign,textTransform:a.textTransform,paddingTop:a.paddingTop},Iv(a.fontFamily,l=>n.getPropertyValue(l)));for(let l of px)t[l]=r[l];return s}function IL({needles:e,styles:o,motions:t=yc,type:r,sizeCaps:a,children:n}){let s=xL(null),{selectedPartId:l}=mK(),{setPartStyle:i}=ds(),d=hK(xK()),c=JSON.stringify(e),x=JSON.stringify(o),m=JSON.stringify(t),h=xL(new Map);return uK(()=>{let I=s.current;if(!I)return;let C=[],P=()=>I.parentElement,O=R=>{let k=P();if(!k)return null;let L=new MutationObserver(R);return L.observe(k,{attributes:!0,attributeFilter:[gK]}),()=>L.disconnect()},F=R=>{let k=new MutationObserver(R);return k.observe(I,{childList:!0,subtree:!0,characterData:!0}),()=>k.disconnect()},v=[];C.push(()=>{for(let R of v)R();v=[]});let y=JSON.parse(c),b=JSON.parse(x),E=JSON.parse(m),B=dL(I,y,P,O,(R,k,L)=>{for(let S of v)S();v=[];let g=[];for(let S of L){let M=S,N=Up(M);N&&v.push(N),M.getAttribute($e)===l&&g.push(M)}let w=gv(k,l,g,S=>ib(S)!==null||Um(S)!==null);if(w&&l){let S=w,M=hL(l)?.propKey??"",N=ol(S)?{}:xv(yv(b,ar(r,M)),d,{blockDrawsStyle:rl(r,M),sizeCap:aa(a,M)});i({partId:l,...ug(S),base:Kp(S,N),inks:ef(S),...(()=>{let G=ol(S);return G?{styleOwner:G}:{}})()})}cx(L.filter(S=>!ol(S)).map(S=>({element:S,partId:S.getAttribute($e)??""})),b,S=>Kp(S),S=>ar(r,S),void 0,d,S=>rl(r,S),S=>aa(a,S));let T=[...I.querySelectorAll(`[${Kk}="${CSS.escape(k)}"][${af}]`)];T.length&&cx(T.map(S=>({element:S,partId:IK(k,S.getAttribute(af)??"")})),b,void 0,S=>S,void 0,d),v.push(mL([...L.filter(S=>!ol(S)).map(S=>{let M=S,N=hL(M.getAttribute($e)??"")?.propKey??"";return{element:M,partKey:ar(r,N)}}),...T.map(S=>({element:S,partKey:S.getAttribute(af)??""}))],S=>E[S],UC(d),h.current))},F);return()=>{B();for(let R of C)R()}},[c,x,m,l,i,d,r]),pK("div",{ref:s,[Sh]:"",style:{display:"contents"},children:n})}import{shownTier as CK}from"efficient-easel/screen/lib/document/device-fields";import{usePreviewDevice as kK,usePreviewParts as vK}from"efficient-easel/draw/client";var ii={tag:"text-[length:var(--size-label,13px)]",name:"text-[length:min(var(--size-headingMedium,48px),var(--sf-heading-max,9999px))]",namePhone:"max-view-wide:text-[length:min(var(--size-headingMedium,36px),var(--sf-heading-max,9999px))]",body:"text-[length:var(--size-body,14px)]",price:"text-[length:var(--size-label,15px)]",link:"text-[length:var(--size-label,14px)]"},yK={tag:{label:"Tag",follows:"Labels",builtIn:cn(ii.tag),writable:!0},name:{label:"Name",follows:"Heading 2",builtIn:cn(ii.name),writable:!0},body:{label:"Body",follows:"Body",builtIn:cn(ii.body),writable:!0},price:{label:"Price",follows:"Labels",builtIn:cn(ii.price),writable:!0},link:{label:"Link",follows:"Labels",builtIn:cn(ii.link),writable:!0}},gL=yK;var zCe=Qr,yL={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 SL={SpecTable:yL,FAQ:tw,Collections:gL,Contents:Fp};function bL(){return en("efficient.section-text-regions",()=>new Map)}function XCe(e){let o=bL();for(let[t,r]of Object.entries(e)){if(mo(SL,t))throw new Error(`lib/sections/section-text-regions: "${t}" is a builder section; its table is the builder's`);let a=o.get(t);if(a&&a!==r)throw new Error(`lib/sections/section-text-regions: "${t}" already has a table`);o.set(t,r)}}function fs(e){return e?$(SL,e)??bL().get(e)??null:null}function wL({nodeId:e,sectionType:o,partStyles:t,sizeCaps:r,children:a}){let n=wK(null),{selectedPartId:s}=vK(),{setPartStyle:l}=ds(),i=CK(kK()),d=JSON.stringify([t??null,r??null]);return bK(()=>{let c=n.current,x=fs(o);if(!c||!e||!x)return;let m=[],h=Array.from(c.querySelectorAll(`[${Qr}]`));for(let I of h){let C=Dm(x,I.getAttribute(Qr));if(!C)continue;let P=Up(I);P&&m.push(P);let O=Hs(C),F=Ht(e,O);I.setAttribute(kr,F);let v=t?.[O];if(x[C].sized&&Sv(v)){let y=bv(v,i,{sizeCap:aa(r,O)}),b={fontFamily:I.style.fontFamily,fontSize:I.style.fontSize},E=I.getAttribute(ta);y.fontFamily&&(I.style.fontFamily=y.fontFamily),y.fontSize&&(I.style.fontSize=y.fontSize);let B={fontFamily:y.fontFamily?I.style.fontFamily:void 0,fontSize:y.fontSize?I.style.fontSize:void 0},R=v?.textStyle;av(R)&&I.setAttribute(ta,R),m.push(()=>{kv(I.style,b,B),E===null?I.removeAttribute(ta):I.setAttribute(ta,E)})}if(F===s){let y=Kp(I,Cv(v,x[C],i));l({partId:F,...ug(I),base:y})}}return()=>{for(let I of m)I();for(let I of h)I.removeAttribute(kr)}},[e,o,s,l,i,d]),SK("div",{ref:n,style:{display:"contents"},children:a})}import{jsx as mg,Fragment as CL}from"react/jsx-runtime";import{createContext as PK,useContext as kL,useMemo as TK}from"react";var xg=PK(null),vL=e=>e==null||e===""?void 0:String(e);function hg({content:e,children:o}){let t=TK(()=>Ux(e),[e]);return mg(xg.Provider,{value:t,children:o})}function uke({id:e,children:o}){let t=kL(xg),r=vL(e);return mg(CL,{children:o(r?t?.entries.get(r):void 0)})}function mke({id:e,children:o}){let t=kL(xg),r=vL(e);return mg(CL,{children:o(r?t?.numbers.get(r):void 0)})}var _K={SectionTextParts:wL},AK="color-mix(in oklab, var(--bg) 40%, #ffffff)",FK="12vh";function BK({style:e,children:o}){let{appState:t}=TL(m=>m),r=t.data.content,a=t.data.root;if(rP(r))return zo("div",{className:"sf-themed-content",style:{...e,background:AK,minHeight:"100vh",paddingBottom:FK},children:zo("div",{style:{background:"var(--bg)"},children:zo(hg,{content:r,children:o})})});let n=hx(r)&&nP(a,r),s=hx(r)?sP(a,r):null,l=s?{[aP]:s}:null,i=bC(a?.widthChoice),d=i?{[SC]:i}:null,c=n?null:HB(r),x=c?{[MB]:c}:null;return zo("div",{className:`sf-themed-content${n?` ${eP}`:""}`,style:e,...x,...l,...d,children:zo("div",{style:{background:"var(--bg)",minHeight:"100%"},children:zo(hg,{content:r,children:o})})})}function Wke({propsTheme:e,propsFonts:o,propsCornerStyle:t,propsCornerRadiusPx:r,propsHeadingCompression:a,propsHeadingTypography:n,pageBackground:s,chromeInheritsSiteBackground:l,suppressPreviewNav:i,footer:d,overlay:c,children:x}){GB();let m=TL(h=>h.appState.data.root?.props);return zo(Ig,{siteFooterRootProps:m?.kind===Lv?m:void 0,propsTheme:e,propsFonts:o,propsCornerStyle:t,propsCornerRadiusPx:r,propsHeadingCompression:a,propsHeadingTypography:n,pageBackground:s,chromeInheritsSiteBackground:l,onClickCapture:i,body:h=>PL(OK,{children:[zo(BK,{style:h,children:x}),d,c]})})}function Ig({propsTheme:e,propsFonts:o,propsCornerStyle:t,propsCornerRadiusPx:r,propsHeadingCompression:a,propsHeadingTypography:n,pageBackground:s,chromeInheritsSiteBackground:l,onClickCapture:i,siteFooterRootProps:d,body:c}){let{chromeRootProps:x}=BB(),{theme:m,fonts:h,sizes:I,cornerRadiusPx:C,cardShadow:P,shadowColor:O,cardGap:F,hoverEffect:v,headingCompression:y,siteWidth:b,siteGutter:E,siteGutterPhone:B,blockGap:R,blockGapPhone:k,siteLengthUnits:L,headingTypography:g,heroBackgroundFollowsWidth:w,photographyGrayscale:T,textStyles:S,wordStyles:M,themeFromDocument:N}=vo(),G=N?e:m,q=N?o:h,le=N?void 0:I,ge=N?r===void 0?Bw[Fw(t)]:Lw(r):C,Y=N?{}:L,xe=N?a:y,ae=N?n:g,me=[yT(gT(N?void 0:S)),ST($w(ae).italicStrong)].filter(Boolean).join(`
|
|
336
|
-
`),pe=lg(),Ye={...ww(G),...Aw(le),...zw(ae),...pe.style,...l?{}:Sf(s)};return PL("div",{className:`sf-theme-surfaces sf-theme-accent ${[xC(N?void 0:B),Hv(N?void 0:k)].filter(Boolean).join(" ")}`.trim(),style:{...db(q),...pb(N?null:M),...Cw(G),...vw(G),...Pw(G),...vd(G),...Rw(ge,Y.cornerRadiusUnit),...Hw(N?void 0:P,N?void 0:O,N?void 0:v),...Qw(N?void 0:b,Y.siteWidthUnit),...pC(N?void 0:E,Y.siteGutterUnit),...mC(N?void 0:B,Y.siteGutterPhoneUnit),...Nv(N?void 0:R,Y.blockGapUnit),...Mv(N?void 0:k,Y.blockGapPhoneUnit),...Ed(N?void 0:w)},"data-sf-headings":Ww(xe),[aC]:Od(d??x),[Gd]:ck(d??x),"data-sf-card-shadow":N?void 0:Dw(P),"data-sf-card-gap":N?void 0:Nw(F),"data-sf-card-hover":N?void 0:Mw(v),onClickCapture:i,children:[me?zo("style",{"data-sf-text-styles":"",dangerouslySetInnerHTML:{__html:me}}):null,zo(RB,{grayscale:N?void 0:T,children:zo(JB,{value:_K,children:zo(NB,{ink:bw(G),children:zo(EK,{fallback:null,children:zo(P0,{rootProps:d??x,children:c(Ye)})})})})})]})}var OL=e=>{e.target?.closest?.("a")&&e.preventDefault()};var qp=[{key:"about",label:"About",slugs:["about"]},{key:"contact",label:"Contact",slugs:["contact"]},{key:"faq",label:"FAQ",slugs:["faq"]},{key:"gallery",label:"Gallery",slugs:["gallery"]},{key:"store-locator",label:"Store locator",slugs:["store-locator"]},{key:"policies",label:"Policies",slugs:["warranty","shipping-returns","privacy-policy","terms-and-conditions"]}],cs="all",Vp="template";function EL(e){for(let o=0;o<qp.length;o++){let t=qp[o].slugs.indexOf(e);if(t>=0)return o*100+t}return Number.MAX_SAFE_INTEGER}function _L(e){return e.map((o,t)=>({s:o,i:t})).filter(({s:o})=>o.source==="library").sort((o,t)=>EL(o.s.slug)-EL(t.s.slug)||o.i-t.i).map(({s:o})=>o)}function gg(e){return e.filter(o=>o.source==="template")}function AL(e){let o=new Set(_L(e).map(t=>t.slug));return qp.filter(t=>t.slugs.some(r=>o.has(r)))}function FL(e,o){if(e===Vp)return gg(o);let t=_L(o);if(e===cs)return t;let r=qp.find(a=>a.key===e);return r?t.filter(a=>r.slugs.includes(a.slug)):[]}function BL(e){let o=e.content;return Array.isArray(o)&&o.length>0?o[0]:null}var $K=1440,zK=1080;function RL({starter:e,config:o,metadata:t,busy:r,onAdd:a}){let{mirrorHostStyles:n}=dl(),[s,l]=RK(null),i=LK(()=>{let d=BL(e.layout),c=e.layout.zones;return{root:{props:{}},content:d?[d]:[],zones:c??{}}},[e.layout]);return LL("div",{className:"sf-starter",children:[LL(MK,{padding:"none",className:"sf-starter-picture",children:[vt("div",{inert:!0,className:"sf-starter-frame",children:vt(HK,{width:$K,height:zK,children:vt(DK,{id:`page-starter-${e.id}`,title:e.title,mirrorStyles:n,onDocument:l,height:"fill",children:vt($f,{document:s??void 0,children:vt(Ig,{onClickCapture:OL,body:d=>vt("div",{className:"sf-themed-content",style:d,children:vt("div",{style:{background:"var(--bg)"},children:vt(AB,{config:o,data:i,metadata:t})})})})})})})}),vt("div",{className:"sf-starter-add",children:vt(NK,{onClick:()=>a(e),loading:r,"aria-label":f("Add \u201C{name}\u201D",{name:e.title}),children:f("Add page")})})]}),vt(WK,{size:"sm",children:e.title})]})}import{useMemo as ZY}from"react";import{sessionRegistry as QY}from"efficient-easel/screen/lib/session";import{useEaselSession as eX}from"efficient-easel/screen/lib/session-context";import{currentEaselSession as UK}from"efficient-easel/screen/lib/session";var jK={general:!0,commerce:!0,service:!0};function yg(e){let o=e?.sets;return o?Object.fromEntries(XS.map(t=>[t,o.includes(t)])):jK}function Sg(e=UK()){return yg(e.blocks)}import{currentEaselSession as VL}from"efficient-easel/screen/lib/session";import{SITE_SIDE as ML}from"efficient-easel/screen/lib/content/length-units";var DL=[{text:"Ticker item"},{text:"Ticker item"},{text:"Ticker item"},{text:"Ticker item"}],nve={label:"Scrolling Bar",defaultProps:{items:[],tone:"scrim",borders:!0,size:Hb,separator:Wb,scrollDirection:ni}};var NL=()=>[{text:f("Spec label"),tone:"normal"},{text:f("Spec value"),tone:"muted"},{text:f("Spec label"),tone:"normal"},{text:f("Spec value"),tone:"muted"}],ive={label:"Spec Strip",defaultProps:{cells:[{text:"",tone:"normal"},{text:"",tone:"normal"}],fill:"dark"}};function Io(e,o,t,r={}){return{type:e,props:{...o(e),id:t(e),...r}}}function HL(e,o,t){return Io(j,e,o,{...t,sectionPaddingTop:void 0,sectionPaddingBottom:void 0})}var Yp={Manifesto:(e,o)=>({type:j,props:{...e(j),id:o(j),direction:"row",share:"equal",sectionHeightMode:"screen",name:"Brand Text",content:[Io(j,e,o,{direction:"column",justify:"center",blockSpacing:"gap",name:"Text",sectionPaddingTop:100,sectionPaddingBottom:100,sectionPaddingLeft:ML,sectionPaddingRight:ML,content:[Io("Text",e,o,Xt()),Io("Text",e,o,xr()),Io("Text",e,o),Io("Stats",e,o)]}),HL(e,o,{direction:"column",name:"Picture",content:[]})]}}),Split:(e,o)=>({type:j,props:{...e(j),id:o(j),direction:"row",share:"equal",sectionHeightMode:"screen",sectionHeightValue:70,name:"Image & Text Split",content:[Io(j,e,o,{direction:"column",justify:"center",blockSpacing:"gap",name:"Text",sectionPaddingTop:100,sectionPaddingBottom:100,sectionPaddingLeft:60,sectionPaddingRight:60,content:[Io("Text",e,o,Xt()),Io("Text",e,o,xr()),Io("Text",e,o),Io("ButtonBlock",e,o)]}),HL(e,o,{direction:"column",name:"Image",content:[Io("ImageBlock",e,o)]})]}}),Subscribe:(e,o)=>({type:j,props:{...e(j),id:o(j),direction:"column",name:"Subscribe",content:[Io("Text",e,o,xr()),Io("Text",e,o),Io("Form",e,o)]}}),Ticker:(e,o)=>WL("Scrolling Bar",qf,ca,DL.map(t=>({text:t.text,style:Vf,muted:!0})),e,o),SpecStrip:(e,o,t)=>WL("Spec Strip",t?.theme?{...xl,sectionAccent:kd(Zt(t.theme))}:{...xl,sectionBorder:{top:1}},pa,NL().map(r=>({text:r.text??"",style:hl,muted:r.tone==="muted"})),e,o)};function WL(e,o,t,r,a,n){return Io(j,a,n,{...fa,...o,blockSpacing:"gap",padV2:!0,name:e,sectionPaddingTop:t.top,sectionPaddingBottom:t.bottom,sectionPaddingTopPhone:t.topPhone,sectionPaddingBottomPhone:t.bottomPhone,content:r.map(s=>Io("Text",a,n,{text:s.text,...s.muted?{tone:"dim"}:{},_partStyles:{text:s.style}}))})}function $L(e){return $(Yp,e)??null}import{isNodeList as bg}from"efficient-easel/data";var Bve=Object.keys(tg),GK={Logos:lA,DocMasthead:nF,DocTabs:xF,Timeline:LA,TimelineTrack:RA},KK={PaymentBadges:iA,PaymentLogosBlock:dA,Integrations:dB};function Xp(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]=bg(n)?n.map(s=>Xp(s,o,t)):n;return r.id=t(e.type),{type:e.type,props:r}}var zL=e=>({...e?.theme?{theme:e.theme}:{},...e?.site?{site:e.site}:{},press:!0});function di(e,o,t=0,r=()=>({})){return(a,n,s)=>{let{nodes:l}=va({type:e,props:{...a(e),...r(),id:n(e)}},o,zL(s));return Xp(l[t],a,n)}}var qK={Stats:YK,Cards:VK};function VK(){let e=Br("Cards");if(!e)return null;let o=di("Cards",e,0,L1);return(t,r,a)=>{let n=o(t,r,a);return{...n,props:{...n.props,name:"Cards section"}}}}function YK(){let e=Br("StatsParagraph");return e?(o,t,r)=>{let{nodes:a}=va({type:"StatsParagraph",props:{...o("StatsParagraph"),...G1(),id:t("StatsParagraph")}},e,zL(r)),n=a[0],s=bg(n.props.content)?n.props.content.filter(c=>c.props?.cardStyle===void 0):[],l=jL(bI(K1(),"table")),i=s.map(UL),d=Xp({...n,props:{...n.props,content:[...i,l]}},o,t);return{...d,props:{...d.props,name:"Stats section"}}}:null}function UL(e){return e.props?.name==="Words"?{...e,props:{...e.props,widthFitPhone:"fill"}}:bg(e.props?.content)?{...e,props:{...e.props,content:e.props.content.map(UL)}}:e}var jL=e=>Bt([e],(o,t)=>`${o}-seed-${t}`)[0];function XK(e,o){if(!M_(e,o))return null;let t=$(qK,e);if(t)return t();let r=Br(e);return r?di(e,r,0,$(GK,e)??$(kB,e)??$(KK,e)):null}function JK(e){return(o,t,r)=>{let a=n=>{if(n.type==="Stats"){let l=Xp(jL(bI([],"list")),o,t);return{...l,props:{...l.props,name:"Numbers"}}}let s=qe(n,l=>We(l,a));return s===n?n:{type:n.type,props:s.props}};return a(e(o,t,r))}}function ps(e,o=ka){let t=$L(e);return t?JK(t):XK(e,o)}import{blockTypesIn as GL}from"efficient-easel/screen/lib/document/block-types-in";var KL=()=>({}),qL=new Map;function ZK(e){let o=qL.get(e);if(o)return o;let t=new Set,r=$(nt,e);if(r)for(let s of r.seeds(KL))for(let l of GL({type:r.childType,props:s}))t.add(l);let a=ps(e);if(a){let s=0;for(let l of GL(a(KL,i=>`${i}-${s+=1}`)))t.add(l)}t.delete(e);let n=[...t].sort();return qL.set(e,n),n}function wg(e){if(!e||!e.sets&&!e.allow&&!e.deny?.length)return null;let o=yg(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=eb(i);return!d||!o[d]?!1:t?t.has(i):!0},s=new Map,l=i=>{let d=s.get(i);if(d!==void 0)return d;s.set(i,!1);let c=n(i)&&ZK(i).every(l);return s.set(i,c),c};return{sets:o,offers:l}}var QK="block-offer";function Cg(e=VL()){return e.cache(QK,()=>wg(un(e)))}function YL(e,o=VL()){let t=Cg(o);return t?t.offers(e):!0}var XL={name:"catalogueLabel",applies:e=>mo(Xr,e),draw(e,o){e.label=$(Xr,o)}};import{jsx as Og}from"react/jsx-runtime";import{parseBlockWidthFit as a7,phoneKey as Pt,tabletKey as pt}from"efficient-easel/draw";import{jsx as e7}from"react/jsx-runtime";import{phoneKey as Jp}from"efficient-easel/draw";var JL={name:"sectionGroupAllow",applies:e=>lf.includes(e),panel(e,o,t,r){let a=e.fields?.sections;a&&(a.allow=[...r.sectionGroupAllow])}},kg=new Set(Object.keys(bt)),ZL={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=>!kg.has(i)):a;s.disallow=Array.from(new Set([...s.disallow??[],...l]))}}};var eR=Array.from(new Set([...tb.map(e=>e.type),...kg]));function vg(e,o){return eR.includes(e)||o?.sitsInBox===!0}var o7=Array.from(new Set([...eR,...od,"GalleryItem"])),t7={not:{context:"parentOffersPositions",is:!1}},r7={not:{context:"parentTileSlot",is:!1}},QL=[Qm,Jp("gridSpan"),Jp("gridRowSpan")],oR={name:"cellWidth",applies:(e,o,t)=>(o7.includes(e)||vg(e,t))&&!!t&&typeof t.render=="function",panel(e,o,t){let r=t.cellWidthFields;e.fields={...e.fields,...r()};let a=Object.keys(r());e.fields=Ro(e.fields??{},a.filter(n=>!QL.includes(n)),t7),e.fields=Ro(e.fields??{},QL,r7)},draw(e){let o=e.render;e.render=t=>{let r=AC(t.gridSpan),a=BC(t.gridRowSpan),n=RC(t[Qm]),s=NC(t[Jp("gridSpan")]),l=MC(t[Jp("gridRowSpan")]),i=o(t);if(r==null&&a==null&&n==null&&s==null&&l==null)return i;let d={};r!=null&&(d[FC]=String(r)),a!=null&&(d[LC]=String(a)),s!=null&&(d[HC]=String(s)),l!=null&&(d[WC]=String(l));let c=n!=null?{[DC]:n}:void 0;return e7(ie,{className:"sf-grid-cell",style:c,...d,children:i})}}};function tR(e,o){let t=e.props?.id,r=o.appState?.data?.content;return!Array.isArray(r)||typeof t!="string"?!0:!r.some(a=>a?.props?.id===t)}var fi={not:{context:"heldByANode",is:!0}};function Zp(e,o){return"parent"in o?o.parent!=null:!!jt(o.appState,e.props?.id)}function jt(e,o){let t=e?.data?.content;if(!Array.isArray(t)||typeof o!="string")return;let r=(a,n)=>{for(let s of a){if(s?.props?.id===o)return n;for(let l of tn(s??{})){let i=r(l,s);if(i!==void 0)return i}}};return r(t,null)}var n7=new Set(["Text","Heading"]),s7=new Set(["h1","h2","h3","h4","h5","h6"]);function rR(e,o){return e==="Heading"?!0:e!=="Text"?!1:typeof o.tag=="string"&&s7.has(o.tag)?!0:vr(o,"text").textStyle?.startsWith("heading-")===!0}var $r={not:{context:"blockOutsideBox",is:!0}},aR={all:[$r,{not:{context:"boxSharesWidth",is:!0}}]},nR={all:[$r,{not:{context:"boxSharesWidthPhone",is:!0}}]},sR={all:[$r,{not:{context:"boxSharesWidthTablet",is:!0}}]};function fR(e,o,t){return{any:[{field:pt(e),is:o},{all:[{field:pt(e),set:!1},t??{field:e,is:o}]}]}}function cR(e,o,t){return{any:[{field:Pt(e),is:o},{all:[{field:Pt(e),set:!1},t??{field:e,is:o}]}]}}var pR={any:[{field:"textFit",is:"shrink"},{all:[{field:"textFit",set:!1},{not:{context:"textWrapsByDefault",is:!0}}]}]},l7=[[["_gBlockSize","minWidth",pt("minWidth"),Pt("minWidth"),"maxWidth",pt("maxWidth"),Pt("maxWidth")],$r],[["widthFit"],aR],[[pt("widthFit")],sR],[[Pt("widthFit")],nR],[["width"],{all:[aR,{field:"widthFit",is:"fixed"}]}],[[pt("width")],{all:[sR,fR("widthFit","fixed")]}],[[Pt("width")],{all:[nR,cR("widthFit","fixed")]}]],lR=fR("textFit","shrink",pR),iR=[[["_gText","textFit",pt("textFit"),Pt("textFit")],$r],[["minFont"],{all:[$r,pR]}],[[pt("minFont")],{all:[$r,lR]}],[[Pt("minFont")],{all:[$r,cR("textFit","shrink",lR)]}]],Qp=(e,o)=>jt(o.appState,e.props?.id),eu=e=>!!e&&typeof e.type=="string"&&td(e.type)!==null,Pg=e=>(e.type==="Flex"||e.type==="HeroGroup")&&Pn(e.type,e.props?.direction)==="row",Tg=e=>{let o=a7(e);return o!==void 0&&o!=="fit"},i7={blockOutsideBox:(e,o)=>!eu(Qp(e,o)),boxSharesWidth:(e,o)=>{let t=Qp(e,o);return!eu(t)||!Pg(t)?!1:_m({...t.props,direction:"row"})!==""?!0:Em(t.props?.share)!==""&&!Tg(e.props?.widthFit)},boxSharesWidthTablet:(e,o)=>{let t=Qp(e,o);if(!eu(t)||!Pg(t))return!1;if(Ub(t.props?.[pt("columns")])!==""||_m({...t.props,direction:"row"})!=="")return!0;let r=zb(t.props?.[pt("share")])??t.props?.share;return Em(r)!==""&&!Tg(e.props?.[pt("widthFit")]??e.props?.widthFit)},boxSharesWidthPhone:(e,o)=>{let t=Qp(e,o);if(!eu(t)||!Pg(t))return!1;let r=t.props?.phoneRow;return(Number(r)===2||Number(r)===3)&&!jb(r,t.props?.[Pt("share")])&&!Tg(e.props?.[Pt("widthFit")]??e.props?.widthFit)}},d7=e=>/^_[gds][A-Z]/.test(e);function f7(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&&!d7(r[n][0]);)n++;return Object.fromEntries([...r.slice(0,n),...Object.entries(t),...r.slice(n)])}function dR(e,o,t){let r=Object.entries(e);return Object.fromEntries([...r.slice(0,o),...Object.entries(t),...r.slice(o)])}function c7(e,o,t){let r=Object.keys(o);if(r.includes("_dSize")){let{_gBlockSize:a,...n}=t;return dR(o,r.indexOf("_dSize")+1,n)}return p7.has(e)&&r.includes("_gSpacing")?dR(o,r.indexOf("_gSpacing"),t):{...o,...t}}var p7=new Set(["Text","Heading"]);function u7(e,o){let{_gText:t,...r}=o;return f7(e,"_gText",r)??{...e,...o}}function m7(e){let o=new WeakMap;return t=>{if(!t||!("textFit"in t))return t;let r=o.get(t);if(!r){r={...t};for(let a of["textFit",pt("textFit"),Pt("textFit")])a in r&&(r[a]=e[a]);o.set(t,r)}return r}}var uR={name:"blockSize",applies:(e,o,t)=>vg(e,t)&&!!t&&typeof t.render=="function",panel(e,o,t){let r=n7.has(o),{text:a}=t.blockSizeFields(r?{tablet:!0,textFit:o==="Heading"?"shrink":"wrap"}:{}),{size:n}=t.blockSizeFields({tablet:!0}),s=c7(o,e.fields??{},Jo(n,l7));if(r){let l=Jo(a,iR);if(s=u7(s,l),o==="Text"){let i=Jo(t.blockSizeFields({tablet:!0,textFit:"shrink"}).text,iR),d=m7(i),c=e.resolveFields,x=(m,h)=>{let I=c?c(m,h):h.fields,C=P=>rR(o,m?.props??{})?d(P??h.fields):P;return I instanceof Promise?I.then(C):C(I)};e.resolveFields=x}}e.fields=s,Lt(e,{...i7,textWrapsByDefault:l=>!rR(o,l.props??{})})},draw(e,o){x7(e,o)}};function x7(e,o){let t=e.render;e.render=r=>{let a=Zc(r),n=eI(a),s=t(r),l=n&&eI(a,{atSectionLine:!0});return n===null?s:Og(h7,{size:n,sectionSize:l??n,atEdge:o===j,canvasAttrs:r.editor?.isEditing?Q_(a):mR,inCell:Z_(a),fillsPhone:Y_(a),widens:e1(a),children:s})}}var mR={};function h7({size:e,sectionSize:o,atEdge:t,canvasAttrs:r,inCell:a,fillsPhone:n,widens:s,children:l}){let i=Yd(),d=wr(t?"edge":"by-box"),c=d?e:o,x=c.className,m=i?.phoneCells===!0,h=n&&i?.phoneRowFits===!0,I=s?Og(GO,{children:l}):l;return Og(Cr,{className:[x,m?a:"",h?V_:""].filter(Boolean).join(" "),...Object.keys(c.style).length?{style:c.style}:{},attrs:d&&r!==mR?{...c.attrs,...r}:c.attrs,children:I})}import{Fragment as O7,jsx as au}from"react/jsx-runtime";import{jsx as To,Fragment as Fg}from"react/jsx-runtime";import{createContext as us,useContext as Tt}from"react";var I7=new Set(["Flex","Grid"]);function zr(e){return typeof e=="string"&&I7.has(e)}var Ra="contentWidth",Eg="full",_g="content";function pi(e){let o=e?.[Ra];return o===Eg?!1:o===_g?!0:void 0}function xR(e,o){return e&&!o}function ou(e){return e.loop==="scroll"&&e.direction!=="tabs"&&e.direction!=="accordion"&&!Ek(e)&&!mA(e.scrollDirection)}function ci(e,o){return zr(e)&&ou(el(o,!1))?hn({}):hn(o)}function tu(e,o){return typeof e!="string"||!_d(e)||js[e]==="rawMarkup"?ci(e,o).background??"full":ci(e,o).background??Ad(o).background}function ru(e){return e!=="full"}function hR(e,o,t){if(!Array.isArray(e)||typeof o!="string")return;let r=(a,n,s,l,i)=>{for(let d of a){let c=d?.props??{};if(c.id===o)return n;let x=zr(d?.type),m=(l?ci(d?.type,c).content:null)==="content"?!0:s,h=x&&(n.inBox?pi(c)??m:m),I={insideGutter:n.insideGutter||h||x&&ou(el(c,i)),inBox:n.inBox||x};for(let C of Ft({type:d?.type,props:c})){let P=c[C],O=r(P,I,m,!1,i||ea(d?.type,C));if(O!==void 0)return O}}};return r(e,{insideGutter:!1,inBox:!1},t,!0,!1)}var g7=" [--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))))]",y7="[--sf-edge-g:0px] [--sf-edge-al:var(--sf-edge-l)] [--sf-edge-ar:var(--sf-edge-r)]",S7="[--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)))]",IR="max-w-[100vw]",b7=`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))] ${IR}`;function gR(e,o=!1){let t={},r=e.pad??{},a=lk({left:r.left,right:r.right},{left:r.leftPhone,right:r.rightPhone},{left:r.leftTablet,right:r.rightTablet},{left:r.left,right:r.right},{desktop:r.unit,tablet:r.unitTablet,phone:r.unitPhone},0,e.site?"site":"box"),n=a.style;for(let[c,x]of[["l","paddingLeft"],["r","paddingRight"]]){let m=n[x];m!==void 0&&(t[`--sf-edge-${c}d`]=typeof m=="number"?`${m}px`:String(m));let h=n[`--sf-pad-${c}-tablet`],I=n[`--sf-pad-${c}-phone`];h!==void 0&&(t[`--sf-edge-${c}t`]=String(h)),I!==void 0&&(t[`--sf-edge-${c}p`]=String(I))}let s=oa(e.site?"site":"box"),l=a.classes.includes(s.className.split(" ")[0]),i=e.gutter?`${s.className} ${s.edge}${g7}`:`${y7}${l?` ${s.className}`:""}`,d=o?` ${iC}${e.gutter?` ${dC}`:""}`:"";return{className:`${i} ${S7}${d}`,style:t}}function EPe(e,o=!1){let{className:t,style:r}=gR(e,o);return{className:`${t} ${b7}`,...Object.keys(r).length?{style:r}:{}}}var w7="[--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 C7="--sf-edge-beyond";function yR(e){return`max(0px,calc((${e===null?Us:`min(${Us},${e})`} - ${Do}) / 2))`}var k7=`${w7} 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))] ${IR}`;function _Pe(e){let{className:o,style:t}=gR(e);return{className:`${o} ${k7}`,style:{...t,[C7]:e.beyond??"0px"}}}var ui=us(!1);function $Pe(){return Tt(ui)}function zPe({children:e}){return To(ui.Provider,{value:!0,children:e})}var Ag=us(!1);function Bg({children:e}){return To(Ag.Provider,{value:!0,children:e})}var SR=us(null);function Lg({ground:e,children:o}){return To(SR.Provider,{value:e,children:o})}var Rg=us(!1);function v7(){return Tt(Rg)}function bR({atTop:e,nested:o}){return To(Fg,{children:v7()?o:e})}var mi=us(void 0);function wR({children:e}){return To(mi.Provider,{value:null,children:e})}function Dg(){return Tt(mi)===void 0&&!Tt(Rg)&&!Tt(ui)}function ms({own:e,followed:o}){return To(Fg,{children:Dg()?e():o()})}var CR=us(null);function kR({value:e,children:o}){return To(CR.Provider,{value:e,children:o})}function vR({draw:e}){return To(Fg,{children:e(Tt(CR))})}function UPe(){return Tt(mi)??null}function PR({contained:e,framedClass:o,fillClass:t,columnClass:r,style:a,tabLabel:n,pad:s,border:l,outerAttrs:i,box:d=!1,edge:c=!1,outerStyle:x,outerClass:m,bleed:h=!1,siteSide:I=!1,part:C,children:P}){let O=Tt(ui),F=Ct(),v=F?` ${oa(I?"site":"box").onceFrame}`:"",y=Tt(Ag),b=xR(e,O),E=b&&!y,B=ot(),R=!!(l&&E),k=R?m:ko(m??"",B.className)||void 0,L=R||!B.className?i:{...i,...B.attrs},g=s?wn(s,E):null,w=g&&F?{root:g.root?{...g.root,className:Zo(g.root.className,!0)}:null,outer:g.outer?{...g.outer,className:Zo(g.outer.className,!0)}:null}:g,T=w?.root??null,S=l&&!E?l:null,M=d&&!h?F?`${qm} ${sC(I?"site":"box")}`:qm:null,N=[E?`${o}${v}`:t,E?M:null,T?.className,S?tk:null].filter(Boolean).join(" "),G=P7(h&&E,T||S?{...a,...T?.style,...S}:a),q=Tt(mi),le=Tt(SR),ge=d&&c&&q===void 0?{gutter:b,...s?{pad:s.values}:{},beyond:b&&y?yR(le):"0px",...I&&b?{site:!0}:{}}:null,Y=d?To(Rg.Provider,{value:!0,children:To(mi.Provider,{value:ge,children:P})}):P,xe=b?To(ui.Provider,{value:!0,children:Y}):Y,ae=w?.outer??null,me=L&&Object.keys(L).length>0?L:null,pe=To("div",{...ae?null:me,className:!ae&&k?N?`${N} ${k}`:k:N,style:ae||!x?G:{...G,...x},"data-tab-label":n,...ae?null:C,children:y?To(Ag.Provider,{value:!1,children:b&&!h?To("div",{className:M?`${r}${v} ${M}`:`${r}${v}`,children:xe}):xe}):xe}),Ye=ae?To("div",{...me,className:k?`${ae.className} ${k}`:ae.className,style:x?{...ae.style,...x}:ae.style,...C,children:pe}):pe;return B.scope(l&&E?To("div",{className:ko(Wd,B.className),style:{display:"contents",...l},...B.attrs,children:Ye}):Ye)}function P7(e,o){return e?{...o,paddingLeft:0,paddingRight:0}:o}import{jsx as T7}from"react/jsx-runtime";function TR({children:e}){return T7(ie,{className:hA,children:e})}function E7({side:e,children:o}){return Dg()?au(TR,{children:au(ie,{className:IA(e),children:o})}):au(O7,{children:o})}var OR={name:"boxJoin",applies:(e,o,t)=>e===j&&!!t&&typeof t.render=="function",draw(e){let o=e.render;e.render=t=>{let r=kp(t.join);return r?au(E7,{side:r,children:o(t)}):o(t)}}};var ER=(e,o)=>e.fields?.[o]?.type==="slot",_7=(e,o)=>ER(o,Pe)||Sd(e).some(t=>ER(o,t)),_R={name:"cardTemplateOnInsert",applies:(e,o,t)=>_7(e,t),panel(e,o){let t=e.resolveData;e.resolveData=(r,a)=>{let n=r.props??{},s=a?.trigger,l=s==="insert"?hd(o,n):s==="copy"?xd(o,n):n,i=l===n?r:{...r,props:l};return t?t(i,a):i}}};import{jsx as hi}from"react/jsx-runtime";import{Fragment as Da,jsx as He,jsxs as Ng}from"react/jsx-runtime";import{createContext as Mg,useContext as Ur,useId as D7}from"react";import{REPEAT_ATTRIBUTE as N7,REPEAT_INDEX_ATTRIBUTE as M7}from"efficient-easel/draw";import{jsx as iTe}from"react/jsx-runtime";import{createContext as B7,useContext as LR,useMemo as L7}from"react";var AR="title";function FR(e){return`${e}Alt`}function A7(e){let o=e.find(t=>typeof t?.url=="string");return{url:o?.url??"",alt:typeof o?.alt=="string"?o.alt:""}}function BR(e,o){let t={[AR]: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}=A7(n);t[r]=s,t[FR(r)]=l}}return t}function F7(e,o){return typeof o!="string"?o.flatMap(t=>F7(e,t)):e===xf||!lP(e)?[]:o==="image"?Ix(e,["images"]).map(t=>({key:t.key,label:t.label,kind:"image",alt:FR(t.key)})):o!=="text"?[]:[{key:AR,label:f("Title")},...Ix(e,["text","date"]).map(t=>({key:t.key,label:t.label}))]}var RR=B7(null);function R7(){return LR(RR)?.record??null}function pTe(e){let o=R7();return o!==null&&o.type===e?o:null}function DR(){let e=LR(RR);return L7(()=>e&&e.record.type!==xf?BR(e.record,e.dateWords):null,[e])}function vTe({props:e,editing:o,children:t}){let r=Ur(xi);return!o&&Wm(e,r?.row)?null:He(Da,{children:t})}var su=Mg(null);function PTe({field:e,children:o}){let t=Ur(su);return He(Da,{children:o(t&&t.field===e?t.id:void 0)})}function H7(e,o){return e?.find(t=>!!o[t.field]?.trim()&&!t.gates.some(r=>Wm({[on]:r},o)))?.field??""}var xi=Mg(null),nu=Mg(null),W7={label:"text-[length:var(--size-label,12px)]"},$7=`flex min-h-6 items-center border border-dashed border-line px-2 py-1 ${W7.label} text-fg-dim`;function TTe({name:e,label:o,editing:t}){let r=Ur(nu)?.(e),a=qd()!=="";return r!=null&&r!==!1?a?He(ie,{className:"contents",children:r}):He(Da,{children:r}):t?He(ie,{className:$7,children:f("Shown by the section: {name}",{name:o?.trim()||e})}):null}function OTe(){return Ur(xi)}function Hg({type:e,props:o,children:t}){let r=Ur(xi),a=DR(),n=r?.row??a;return He(Da,{children:t(xw(e,o,n,r?.ownerType,r?.fields,r?.slot),r,n)})}function z7({attrs:e,selected:o,hover:t,action:r,titleField:a,children:n}){let s=D7(),{press:l,disabled:i}=r,d=r.label?.trim(),c=!d&&a?{id:`${s}-title`,field:a}:null;return Ng("div",{...e,id:s,className:t&&!i?`${fh} ${tE}`:fh,children:[He("button",{type:"button",[nE]:"",className:i?iE:lE,"aria-pressed":o,...d?{"aria-label":d}:{"aria-labelledby":c?.id??s},...i?{"aria-disabled":!0,tabIndex:-1}:null,onClick:i?void 0:l}),He(su.Provider,{value:c,children:n})]})}function ETe({ownerId:e,ownerType:o,slot:t=Pe,Template:r,rows:a,items:n,fields:s,states:l,stateLine:i,actions:d,pressTitles:c,previewHover:x,fallback:m,copyAttrs:h,wrapCopy:I,rowKey:C,hostParts:P,children:O}){let F=Ur(xi),v=Ur(su),y=Ur(nu);if(!r||(r.blockCount??0)<=0)return He(Da,{children:m});let b=F!==null,E=dw(o),B=x??F?.previewHover,R=r.blockCount===1?He(vk,{children:He(r,{className:hk})}):He(r,{}),k=new Set,L=(w,T)=>{if(!C)return T;let S=C(w,T);for(;k.has(S);)S=`${S}#${T}`;return k.add(S),S},g=a.map((w,T)=>{let S=l?.[T],M={row:w,index:T,ownerType:o,slot:t,item:n?.[T],nested:b,...s?{fields:s}:null,...S?{state:S}:null,...E?{linesBetween:E}:null,...B?{previewHover:B}:null},N=Rh(S)?Ng(Da,{children:[R,i==="under"?He("span",{"aria-hidden":"true",className:ZO}):Lh(S)?Ng("span",{"aria-hidden":"true",className:QO,children:[He("span",{className:eE}),He("span",{className:oE})]}):He("span",{"aria-hidden":"true",className:JO})]}):R,G={[N7]:`${e}:${t}`,[M7]:T,...typeof h=="function"?h(M):h},q=d?.[T],le=rE(S,i),ge=q?He(z7,{attrs:{...G,...le},selected:S?.selected===!0,hover:i!=="under",action:q,titleField:H7(c,w),children:N}):v?He("div",{...G,...le,children:He(su.Provider,{value:null,children:N})}):He("div",{...G,...le,children:N}),Y=I?I(ge,M):ge;return He(xi.Provider,{value:M,children:P?He(nu.Provider,{value:xe=>P(M,xe),children:Y}):y?He(nu.Provider,{value:null,children:Y}):Y},L(M,T))});return He(Da,{children:O(g)})}var NR={name:"clickableParts",applies:(e,o,t)=>typeof t?.render=="function"&&e!==ao&&e!==pn,draw(e,o,t){let r=e,a=()=>r.textParts??r.fields,n=r.partSizeCaps,s=r.render,l=t.inspector?.PartAnchors,i=(d,c)=>Xk(a(),c,x=>uw(o,d,x));r.render=d=>{let c=dv(d),x=xO(d);return d.editor?.isEditing&&l?hi(Hg,{type:o,props:d,children:m=>hi(l,{needles:i(d,m),styles:c,motions:x,type:o,sizeCaps:n,children:hi(QB,{value:n,children:s(d)})})}):!Object.keys(c).length&&!Object.keys(x).length?s(d):hi(Hg,{type:o,props:d,children:m=>hi(wO,{needles:i(d,m),styles:c,motions:x,type:o,atEdge:o===j,sizeCaps:n,children:s(d)})})}}};import{jsx as MR}from"react/jsx-runtime";var HR={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=ok(t.sectionCorners,t.sectionCornerSides,t.sectionCornersUnit),a=o(t);return r?MR(ie,{className:"sf-section-corners",style:{display:"contents",...r},children:a}):a}}},Wg=["CollectionCard"],WR={name:"cardCorners",applies:(e,o,t)=>Wg.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=CP(t.cardCorners,t.cardCornerSides,t.cardCornersUnit),a=o(t);return r?MR(ie,{className:"sf-card-corners",style:{display:"contents",...r},children:a}):a}}};var $R={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 zR={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 UR,jsxs as U7}from"react/jsx-runtime";var j7="Flex",jR=(e,o)=>e[o]!==void 0&&e[o]!==!1&&!e.editor?.isEditing,GR={name:"headCore",applies:(e,o,t)=>typeof t?.render=="function",draw(e){let o=e.render;e.render=t=>jR(t,Rl)?UR(ie,{className:Ec,children:t[Rl]==="empty"?null:o(t)}):o(t)}},KR={name:"headBox",applies:(e,o,t)=>e===j7&&typeof t?.render=="function",draw(e){let o=e.render;e.render=t=>jR(t,Ll)?U7(ie,{className:_c,children:[UR(Ac,{}),o(t)]}):o(t)}};import{createElement as G7}from"react";var qR={name:"hiddenNodes",applies:(e,o,t)=>typeof t?.render=="function",draw(e,o,t){let r=o===j?"edge":t.isSection(o)?"section":"by-box",a=e.render;e.render=n=>{if(Qt(n))return null;let s=al(n),l=Ck(s,Av(n),{sectionClassName:al(n,{atSectionLine:!0}),line:r});return G7(Sk.Provider,{value:l},a(n))}}};import{jsx as Y7}from"react/jsx-runtime";import{createContext as YR,createElement as VR,useContext as K7}from"react";var XR=YR(null),q7=YR(!1),a0e=XR.Provider;function V7(e,o,t){return e===void 0||e===""||o===null||o.length===0||!t.includes(e)?!0:o.includes(e)}function JR({name:e,editing:o,children:t}){let r=K7(XR);return o||V7(e,r?.selected??null,r?.known??[])?t:VR("div",{hidden:!0,style:{display:"none"}},VR(q7.Provider,{value:!0},t))}var X7="Flex",ZR={name:"showFor",applies:(e,o,t)=>e===X7&&typeof t?.render=="function",draw(e){let o=e.render;e.render=t=>{let r=PE(t[Gn])?.name;if(r===void 0)return o(t);let a=!!t.editor?.isEditing;return Y7(JR,{name:r,editing:a,children:o(t)})}}};var QR=If.mediaFields,J7=e=>hP(e)?e.src:e;function Z7(e,o){let t=o;for(let r of $(QR,e)??[])t=IP(t,r,J7);return t}var eD={name:"mediaValues",applies:(e,o,t)=>typeof t?.render=="function"&&($(QR,e)?.length??0)>0,draw(e,o){let t=e.render;e.render=r=>t(Z7(o,r))}};import{jsx as Ii,Fragment as oD,jsxs as tD}from"react/jsx-runtime";var Q7="!grow-0 !shrink-0 !basis-0",eq=["[.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(" "),oq="flex flex-col w-full min-w-0 [&>*]:grow";function rD({anchor:e}){let o=sa(e),t=wr(),r=qd();return o?Ii("span",{id:o,className:ko(t?`sf-section-anchor ${Q7} ${eq}`:"sf-section-anchor",r),"aria-hidden":"true"}):null}function tq({anchor:e,copiesInBox:o,children:t}){let r=Yd()?.columnsRow===!0,a=kk(),n=sa(e)!=="";return o?Ii(oD,{children:t}):r&&!a&&n?tD(ie,{className:oq,children:[Ii(rD,{anchor:e}),t]}):tD(oD,{children:[Ii(rD,{anchor:e}),t]})}var aD={name:"sectionAnchor",applies:(e,o,t)=>o.isSection(e)&&!!t&&typeof t.render=="function",panel(e,o,t){let r=t.anchorFields;e.fields={...e.fields,...r()}},draw(e,o){e.defaultProps={...e.defaultProps,anchor:""};let t=e.render;e.render=r=>Ii(tq,{anchor:r.anchor,copiesInBox:qo(o,r),children:t(r)})}};import{jsx as rq}from"react/jsx-runtime";var nD=Object.fromEntries(_b.map(e=>[e,"picture"])),aq={[j]:"box",Ticker:"marquee",...Object.fromEntries(sd.map(e=>[e,"cards"])),...nD},sD=(e,o)=>!Dd.has(e)&&!!o&&typeof o.render=="function";function lD(e,o,t,r){e.fields={...e.fields,...t.animationTabFields(o,r)}}function iD(e,o){let t=e,r=t.render;t.render=a=>{let n=yn(a);return!n||qo(o,a)?r(a):rq(hc,{views:n,editing:!!a.editor?.isEditing,takesViewHide:!0,atEdge:o===j,children:r(a)})}}var dD={name:"sectionAnimation",applies:(e,o,t)=>o.isSection(e)&&sD(e,t),panel:(e,o,t)=>lD(e,$(aq,o)??"section",t,o),draw:(e,o)=>iD(e,o)},fD={name:"blockEntrance",applies:(e,o,t)=>!o.isSection(e)&&sD(e,t),panel:(e,o,t)=>lD(e,$(nD,o)??"block",t,o),draw:(e,o)=>iD(e,o)};import{jsx as nq}from"react/jsx-runtime";var cD=(e,o)=>!Dd.has(e)&&!!o&&typeof o.render=="function";function sq(e){let o=hh.filter(t=>t.block===e);return o.length===1?o[0].focus:void 0}function pD(e,o){let t=e,r=t.render,a=sq(o),n=e.drawsPictures===!0;t.render=s=>{let l=$n(s);return!l||qo(o,s)?r(s):nq(Nc,{views:l,...a?{origins:uO(s,a)}:{},takesViewHide:!0,atEdge:o===j,zoomInside:n?"picture":"layer",children:r(s)})}}var uD={name:"sectionScroll",applies:(e,o,t)=>o.isSection(e)&&cD(e,t),draw:(e,o)=>pD(e,o)},mD={name:"blockScroll",applies:(e,o,t)=>!o.isSection(e)&&cD(e,t),draw:(e,o)=>pD(e,o)};import{jsx as lq}from"react/jsx-runtime";import{createElement as iq}from"react";var $g=["sectionHeightMode","sectionHeightModeTablet","sectionHeightModePhone"];function dq(e,o){let t=e.props??{};return $g.some(r=>t[r]==="fill")?!0:("parent"in o?o.parent:jt(o.appState,t.id))?.type===j}var zg={name:"sectionHeight",applies:(e,o,t)=>o.isSection(e)&&!xk.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||!$g.some(c=>c in i))return i;let d=n.get(i);if(!d){d={...i};for(let c of $g)c in d&&(d[c]=a[c]);n.set(i,d)}return d},l=e.resolveFields;e.resolveFields=(i,d)=>{let c=l?l(i,d):d.fields,x=m=>dq(i??{},d)?s(m??d.fields):m;return c instanceof Promise?c.then(x):x(c)}},draw(e,o){let t=e.render;e.render=r=>{if(qo(o,r))return t(r);let a=yk(r);return a?lq(Cr,{className:a.className,style:a.style,...o===j?{attrs:Nb}:null,children:t(r)}):t(r)}}},xD={name:"sectionHeightFillRoot",applies:zg.applies,draw(e,o){let t=e.render;e.render=r=>{let a=qo(o,r)?null:wk(gk(r),Ik(r).join(" "));return iq(bk.Provider,{value:a},t(r))}}};import{jsx as lu}from"react/jsx-runtime";import{PIN_ATTR as hD,PIN_FRAME_ATTR as fq}from"efficient-shell/format";var gD=SD("sectionSticky",(e,o,t)=>o.isSection(e)&&!ZC.has(e)&&!!t&&typeof t.render=="function",!0),yD=SD("cardSticky",(e,o,t)=>Wg.includes(e)&&!!t&&typeof t.render=="function",!1);function SD(e,o,t){return{name:e,applies:o,panel(r,a,n){let s=ox.has(a);r.fields=pq(r.fields??{},Jo(n.stickFields({intro:s,screens:t,above:t}),uq(s))),t&&Lt(r,{heldByANode:Zp})},draw(r,a){let n=r.render,s=ox.has(a);r.render=l=>{let i=rx(l,{atScreenTop:s,above:t});if(!i)return n(l);let d=x=>{let m=lu(Jd,{children:n(l)});return lu(ie,{...x.attrs,style:x.style,children:x.attrs[hD]===""?lu("div",{[fq]:"",children:m}):m})},c=t?rx(l,{atScreenTop:s,track:t,above:!0}):i;return!c||c.attrs[hD]!==""?d(i):lu(ms,{own:()=>d(c),followed:()=>d(i)})}}}}var ID=[gt,ss],cq="_gStick";function pq(e,o){let t=Object.keys(e),r=e[Wn];if(!r){let O=t.findIndex(F=>ID.includes(F));return O<0?{...e,...o}:Object.fromEntries([...t.slice(0,O).map(F=>[F,e[F]]),...Object.entries(o),...t.slice(O).map(F=>[F,e[F]])])}let{[cq]:a,...n}=o,s=O=>O.startsWith(Sn),l=Object.entries(n).filter(([O])=>!s(O)),i=Object.entries(n).filter(([O])=>s(O)),d=[r.dot,a?.dot].filter(O=>!!O),c=t.indexOf(Wn),x=t.findIndex((O,F)=>F>c&&ID.includes(O)),m=x<0?t.length:x,h=t.indexOf(Ic),I=h>c&&h<m?h:m,C=O=>[O,O===Wn?{...r,dot:{any:d}}:e[O]],P=[...t.slice(0,I).map(C),...l,...t.slice(I,m).map(C),...i,...t.slice(m).map(C)];return Object.fromEntries(P)}function uq(e){let o=i=>({field:i,in:[!0,!1]}),t=i=>e&&i==="stickTop"?{any:[{field:i,is:!0},QC]}:{field:i,is:!0},r=i=>({field:i,is:!0}),a=i=>({all:[i,fi,{not:{field:Js,is:!0}}]}),[n,s,l]=YC;return[[["stickTopDistance"],t("stickTop")],[["stickTopDistanceTablet"],Jt(["stickTopTablet","stickTop"],o,t)],[["stickTopDistancePhone"],Jt(["stickTopPhone","stickTopTablet","stickTop"],o,t)],[[n],a(r("stickTop"))],[[s],a(Jt(["stickTopTablet","stickTop"],o,r))],[[l],a(Jt(["stickTopPhone","stickTopTablet","stickTop"],o,r))],[[Hd],tx],[[Js],tx]]}import{jsx as mq}from"react/jsx-runtime";var bD={name:"sectionBorder",applies:(e,o,t)=>o.isSection(e)&&!!t&&typeof t.render=="function",draw(e,o){if(cc.has(o))return;let t=e.render;e.render=r=>{let a=nk(r.sectionBorder,r.sectionBorderPhone,r.sectionBorderTablet,ak(r)),n=t(r);return a?mq(ie,{className:Wd,style:{display:"contents",...a},children:n}):n}}};import{jsx as Ug}from"react/jsx-runtime";var wD={name:"sectionTheme",applies:(e,o,t)=>o.isSection(e)&&!Vw.has(e)&&!!t&&typeof t.render=="function",panel(e,o,t){let{sectionThemeFields:r,SECTION_THEME_FOLLOW_LABEL:a}=t,n=Gm.has(o);e.fields={...e.fields,...n?r(Pd,a):r()}},draw(e,o){let t=Gm.has(o),r=e.render;e.render=a=>{let n=Xw(t?{...a,sectionAccent:Pd(a.sectionAccent)}:a),s=r(a);if(!n)return s;let l=d=>Ug(Cr,{className:n.className,style:d,children:s}),i=n.style;return qo(o,a)?Ug("div",{className:n.className,style:{...i,display:"contents"},children:s}):tu(o,a)!=="content"?l(i):Ug(ms,{own:()=>l({...i,...zs(Do)}),followed:()=>l(i)})}}},CD={name:"slideTheme",applies:e=>e==="HeroSlide",panel(e,o,t){let{sectionThemeFields:r,BLOCK_THEME_FOLLOW_LABEL:a}=t;e?.fields&&(e.fields={...e.fields,...r(Pd,a)})}};import{jsx as Ke}from"react/jsx-runtime";var kD=null;function jg(e){kD=e}function vD(){return kD}import{jsx as xq}from"react/jsx-runtime";var hq="mx-auto w-full max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)]",PD=oa("box").frame,gi=`${hq} ${PD}`,Iq=oa("site").frame;function wOe(e){return e?Iq:PD}var gq="mx-auto w-full max-w-[1280px] px-[60px]",yq="max-[960px]:px-6",COe=`${gq} ${yq}`;function kOe({contained:e,className:o="",style:t,pad:r,fillWidth:a="w-full",part:n,children:s}){return xq(PR,{contained:e,framedClass:`${gi} ${o}`,fillClass:`${a} ${o}`,columnClass:gi,style:t,pad:r,part:n,children:s})}var xs="--sf-sw-site",Sq="--sf-sw-content",bq="--sf-bg-cap",wq="contents [--sf-site-width:var(--sf-sw-content)] max-view-wide:[--sf-site-width:var(--sf-sw-site)]",Gg=({own:e,content:o,siteContent:t})=>e===!0&&o==="full"&&t!=="full",OD="contents view-wide:[--sf-site-width:100vw]",Kg=({held:e},o,t)=>e?t:Ke(ie,{className:o,children:t}),Cq=`contents view-wide:[--sf-site-width:100vw] ${_F} view-wide:[--sf-site-gutter:var(--intro-edge)]`,qg=(e,o,t)=>o==="content"?`min(${mn(e,t)},var(${xs}))`:mn(e,t);function yi({content:e,contentMax:o,contentMaxUnit:t},r){return e==="full"?r!=="content"?Us:null:o===null?null:qg(o,r,t)}function Si(e,o){return o===null?e:Ke(ie,{className:"contents",style:{[xs]:Do},children:Ke(ie,{className:wq,style:{[Sq]:o},children:e})})}var kq="--sf-content-cap",vq="contents max-view-wide:[--sf-content-cap:none]";function Pq({content:e,contentMax:o,contentMaxUnit:t},r){return e==="full"?null:o!==null?qg(o,r,t):r==="content"?null:`var(${xs})`}function Tq(e,o){return o===null?e:Ke(ie,{className:"contents",style:{[xs]:Do},children:Ke(ie,{className:vq,style:{[kq]:o},children:e})})}var ED=`var(${xs},${Do})`,jr=(e,o,t="")=>e==="content"?Ke(ie,{className:t||void 0,style:zs(Do),children:Ke(Lg,{ground:ED,children:o})}):o;function _D(e,o,t,r,a){if(Gg(t))return jr(r,Kg(t,OD,Ke(Bg,{children:e({...o,contained:!0})})),a);if(t.content==="full")return jr(r,e({...o,contained:!1}),a);let n=yi(t,r);return r==="content"&&n===null&&!t.own?e({...o,contained:!0}):jr(r,Si(Ke(Bg,{children:e({...o,contained:!0})}),n),a)}function Oq(e,o,t,r,a){if(t==="hero"){let l=Si(e(o),yi(r,r.band));return r.band==="full"?Ke(ie,{style:{[IC]:"none",[gC]:"initial",[yC]:"initial"},children:l}):r.band==="content"?Ke(ie,{style:Ed(!0),children:l}):l}let n=r.band??"full",s=Sr(o,{atSectionLine:!a});if(t==="rawMarkup"){if(r.content==="full")return jr(n,e(o),s);let l=r.contentMax===null?Do:qg(r.contentMax,n,r.contentMaxUnit);return Ke(ie,{className:"contents",style:{[xs]:Do},children:jr(n,Ke(ie,{className:s||void 0,style:zs(l),children:e(o)}),s)})}if(t==="scrollOver"){let l=r.content==="full",i=Gg(r)?Kg(r,Cq,e({...o,fullWidth:!1})):Si(e({...o,fullWidth:l}),l?null:yi(r,n));return n==="content"?Ke(ie,{className:"contents",style:{[bq]:Do},children:i}):i}switch(t){case"both":return jr(n,Tq(e(o),Pq(r,n)),s);case"contained":return _D(e,o,r,n,s);case"contentColumn":case"contentFull":case"productGrid":{let l=Gg(r),i=r.content==="full"&&!l?"full":"page",d=l?Kg(r,OD,e({...o,widthMode:i})):Si(e({...o,widthMode:i}),r.content==="full"?null:yi(r,n));return t==="productGrid"&&!r.own?n==="content"?Ke(Gf,{className:s?`${gi} ${s}`:gi,children:c=>Ke(ie,{className:c,children:d})}):d:jr(n,d,s)}default:return jr(n,Si(e(o),yi(r,n)),s)}}function TD(e,o,t,r,a){let n=a===j?"edge":"by-box",s=l=>Oq(e,o,t,r,l);return n==="edge"?s(!0):Sr(o)===Sr(o,{atSectionLine:!0})?s(!1):Ke(Vd,{line:n,draw:s})}function Eq(e,o){let t=$(js,o);if(!t)return;let r=e.render;e.render=a=>{let n=Ad(a),s={band:n.background,content:n.content??"content",contentMax:null},l=()=>t==="rawMarkup"?r(a):Ke(vR,{draw:I=>I?.background==="content"?Ke(Lg,{ground:ED,children:i(I)}):i(I)}),i=I=>{let C=I?{...s,band:I.background==="content"?s.band:I.background??s.band,content:I.content??s.content,own:I.background==="full"||I.content!==null,held:!0,siteContent:s.content}:s,P=TD(r,a,t,C,o);if(!zr(o))return P;let O=pi(a),F=O===void 0?C.content:O?"content":"full";return F===C.content?P:Ke(bR,{atTop:P,nested:_D(r,a,{...C,content:F,own:!1},C.band??"full",Sr(a))})},d=ci(o,a);if(!CC(d))return l();let c=t==="rawMarkup",x=tu(o,a),m=d.content??(c?"full":s.content),h={band:x,content:x==="content"?"content":m,contentMax:d.contentMax,contentMaxUnit:d.contentMaxUnit,own:!c,siteContent:s.content};return Ke(ms,{own:()=>Ke(kR,{value:{background:h.band,content:h.content},children:TD(r,a,t,h,o)}),followed:l})}}var _q={all:[fi,{not:{context:"runsEdgeToEdge",is:!0}}]},AD={name:"sectionWidth",applies:(e,o,t)=>_d(e)&&!!t&&typeof t.render=="function",panel(e,o,t){let r=t.sectionOwnWidthFields({drawsFullOnItsOwn:$(js,o)==="rawMarkup"}),a=zr(o)?t.boxGutterFields():{},n={...e.fields,...a,...r},s=zr(o)?LD(o,e,n,[Ra]):n;Lt(e,{heldByANode:Zp}),zr(o)&&Lt(e,{runsEdgeToEdge:(l,i)=>ou(el(l.props??{},Iw(i.appState,l.props?.id)?.inCopy!==!1))}),e.fields=Ro(s,[Ao.background,Ao.content],zr(o)?_q:fi)},draw(e,o){Eq(e,o)}};function Aq(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 Fq=new Set(["Heading","Text","ImageBlock","ButtonBlock"]),FD={name:"containedWidth",applies:(e,o,t)=>Fq.has(e)&&!!t&&typeof t.render=="function",panel(e,o,t){let r=t.widthField;e.fields=LD(o,e,{...e.fields,...r("page")});let a=e.resolveFields;e.resolveFields=(n,s)=>{let l=a?a(n,s):s.fields,i=Vm(n?.props??{},"page"),d=c=>Aq(c,i);return l&&typeof l.then=="function"?l.then(d):d(l)}},draw(e){let o=e.render;e.render=t=>{let{mode:r}=Vm(t,"page");return o({...t,contained:r!=="full"})}}},Bq={not:{context:"inHeroGroupRow",is:!0}},BD={name:"buttonAlignInRow",applies:e=>e==="ButtonBlock",panel(e){let o=e;o.fields=Ro(o.fields??{},["align"],Bq),Lt(o,{inHeroGroupRow:(t,r)=>{let a=jt(r.appState,t.props?.id);return!!a&&a.type==="HeroGroup"&&Pn("HeroGroup",a.props?.direction)==="row"}})}};function Lq(e){return Object.values(e).some(o=>!!o&&typeof o=="object"&&o.type==="slot")}var Rq={any:[]},Dq={all:[{not:{context:"outsideBox",is:!0}},{not:{context:"insideSiteGutter",is:!0}}]},Nq={not:{context:"widthCappedByParent",is:!0}};function LD(e,o,t,r=["widthMode"]){if(e==="ButtonBlock")return Ro(t,["_gWidth",...r],Rq);if(Lq(t)){let a=(n,s)=>hR(s.appState?.data?.content,n.props?.id,ru(vD()));return Lt(o,{outsideBox:(n,s)=>a(n,s)?.inBox!==!0,insideSiteGutter:(n,s)=>a(n,s)?.insideGutter}),Ro(t,r,Dq)}return Lt(o,{widthCappedByParent:(a,n)=>"parent"in n?Qb(n.parent):tR({props:a.props??{}},n)}),Ro(t,r,Nq)}var Mq=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"]),RD={name:"sectionGroups",applies:(e,o)=>o.isSection(e)&&(Mq.has(e)||o.isHostBlock(e)),panel(e,o,t){let r=t.assignSectionGroups;e?.fields&&(e.fields=r(e.fields,o))}},Hq=new Set(["HeroSlide","HeroGroup"]),DD={name:"blockGroups",applies:(e,o,t)=>Hq.has(e)||!o.isSection(e)&&Cp in(t?.fields??{}),panel(e,o,t){let r=t.assignSectionGroups;e?.fields&&(e.fields=r(e.fields,o))}};import{jsx as Vg}from"react/jsx-runtime";var Wq=new Set(["Flex","Grid"]),ND=e=>Object.entries(e.fields??{}).filter(([,o])=>o?.type==="slot").map(([o])=>o),$q=(e,o)=>e.fields?.[o]?.ownPictures===!0,zq=["blockCount","blockIds"],Uq=new WeakMap,jq=new WeakMap;function Gq(e,o){let t=o?jq:Uq,r=t.get(e);if(r)return r;let a=e,n=s=>Vg(wR,{children:Vg(Jd,{ownPictures:o,children:Vg(a,{...s})})});Object.assign(n,e);for(let s of zq)Object.defineProperty(n,s,{get:()=>e[s],configurable:!0,enumerable:!0});return t.set(e,n),n}var MD={name:"slotsStartAfresh",applies:(e,o,t)=>!Wq.has(e)&&typeof t?.render=="function"&&ND(t).length>0,draw(e){let o=ND(e),t=e.render;e.render=r=>{let a={...r};for(let n of o){let s=r[n];typeof s=="function"&&(a[n]=Gq(s,$q(e,n)))}return t(a)}}};var Kq=new Set(["Form","Stats","Logos"]);function HD(){return[...Kq]}function Yg(e,o,t=[]){let r=new Set(e),a=QS.filter(d=>r.has(d)),n=a.filter(d=>d!=="Header"&&d!=="Footer"&&!lf.includes(d)),s=new Set([...o,...od,...HD()]),l=a.filter(d=>!s.has(d)),i=new Set([...a,...t]);return{isSection:d=>i.has(d)&&!gd(d),isHostBlock:()=>!1,sectionGroupAllow:n,contentSectionKeys:l}}var qq=[MD,eD,GR,JL,ZL,U0,HR,bD,WR,G0,fD,mD,oR,AD,FD,BD,zg,k0,aD,wD,dD,uD,gD,yD,OR,CD,uR,RD,DD,zR,$R,NR,KR,ZR,xD,qR,XL,_R];function WD(e,o,t){let r=o;for(let a of qq)a.applies(e,t,r)&&(t.inspector&&a.panel?.(r,e,t.inspector,t),a.draw?.(r,e,t));return o}import{jsx as Xg}from"react/jsx-runtime";import{ClockIcon as Vq,DurationIcon as Yq}from"efficient-easel/icons";import{MOTION_TIMING as $D}from"efficient-shell/format";import{useSelectedHost as Xq}from"efficient-easel/easel";function hs(e){let{min:o,max:t,step:r,default:a}=$D[e].duration;return Tr("Duration",Xg(Yq,{}),o,t,r,a,"s")}function Is(e){let{min:o,max:t,step:r,default:a}=$D[e].delay;return Tr("Delay",Xg(Vq,{}),o,t,r,a,"s")}function gs(e,o){let t=e.render,r=a=>{let n=Xq();return t({...a,value:o(a.value,n?.values)})};return{...e,render:a=>Xg(r,{...a})}}function iu({readsSpeed:e}){return gs(hs("loop"),(o,t)=>wp({loopDuration:o,speed:e?t?.speed:void 0}))}function du(){return gs(Is("loop"),e=>xA({loopDelay:e}))}import{jsx as so}from"react/jsx-runtime";import{DirectionDownIcon as Jq,DirectionIcon as Zq,DirectionLeftIcon as Qq,DirectionRightIcon as e9,DirectionUpIcon as o9,EntranceBounceIcon as t9,EntranceFadeIcon as r9,EntranceFlipIcon as a9,EntranceGlideIcon as n9,EntranceRevealIcon as s9,EntranceRiseIcon as l9,EntranceScaleIcon as i9,EntranceSpinIcon as d9,NoSymbolIcon as f9}from"efficient-easel/icons";import{NoControlMark as c9,noControlField as p9}from"efficient-easel/screen/lib/document/panel-no-control-mark";import{customize as u9,group as m9}from"efficient-easel/screen/lib/document/box-fields";import{ENTRANCE_FROM as x9,ENTRANCE_FROM_DEFAULT as UD,ENTRANCE_KINDS as jD,ENTRANCE_KINDS_WITH_FROM as h9,entranceAttrs as I9,playEntrance as g9,readEntrance as y9}from"efficient-shell/format";var S9={none:"None",fade:"Fade",rise:"Rise",scale:"Scale",glide:"Glide",bounce:"Bounce",flip:"Flip",reveal:"Reveal",spin:"Spin"},b9={top:"Top",bottom:"Bottom",left:"Left",right:"Right"},w9={top:()=>so(Jq,{}),bottom:()=>so(o9,{}),left:()=>so(e9,{}),right:()=>so(Qq,{})},GD="Entrance",Zg=jD.filter(e=>e!=="none"),KD=e=>({any:[{field:Go.kind,in:e},{all:[{field:Go.kind,set:!1},{field:qs,in:e}]}]}),zD=(e,o)=>Jt(Qo.slice(0,Qo.indexOf(e)+1).reverse().map(t=>et(Go.kind,t)),t=>({field:t,set:!0}),t=>t===Go.kind?KD(o):{field:t,in:o}),C9={any:[KD(Zg),...Qo.slice(1).map(e=>({field:et(Go.kind,e),in:Zg}))]},k9=Qo.flatMap(e=>[[[et(Go.from,e)],zD(e,h9)],[[et(Go.duration,e),et(Go.delay,e)],zD(e,Zg)]]),v9={none:()=>so(f9,{}),fade:()=>so(r9,{}),rise:()=>so(l9,{}),scale:()=>so(i9,{}),glide:()=>so(n9,{}),bounce:()=>so(t9,{}),flip:()=>so(a9,{}),reveal:()=>so(s9,{}),spin:()=>so(d9,{})},qD="data-entrance-tile";function P9({kind:e}){let{attrs:o}=I9(y9(e,UD));return so("span",{className:"sf-entrance-stage",[qD]:e,children:so("i",{...o,children:v9[e]()})})}var T9=(e,o)=>{let t=e.querySelector(`[${qD}="${o}"] > i`);t&&g9(t)},O9="Effect",E9=()=>Tf(Go.kind,{label:GD,tileWord:O9,values:jD,fallback:"none",word:e=>S9[e],picture:e=>so(P9,{kind:e}),read:(e,o)=>Vs(e,o).kind,preview:T9}),Jg=(e,o)=>Pf(Go[e],o,(t,r)=>Vs(t,r)[e]),_9=x9.map(e=>({label:b9[e],value:e,picture:w9[e]()}));function Ot(){let e={[Cp]:m9(GD,{dot:C9}),...E9(),[qs]:p9({type:"custom",render:()=>so(c9,{})},"always"),_cEntrance:u9(),...Jg("from",Tn("From",so(Zq,{}),_9,UD)),...Jg("duration",hs("entrance")),...Jg("delay",Is("entrance"))};return Jo(e,k9)}import{jsx as ut}from"react/jsx-runtime";import{EntranceRevealIcon as A9,NoSymbolIcon as F9,PercentIcon as VD,ScrollFadeInIcon as B9,ScrollFadeOutIcon as L9,ScrollMoveDownIcon as R9,ScrollMoveUpIcon as D9,ScrollParallaxIcon as N9,ScrollZoomInIcon as M9,ScrollZoomOutIcon as H9,ZoomInIcon as W9}from"efficient-easel/icons";import{customize as $9,group as z9}from"efficient-easel/screen/lib/document/box-fields";import{SCROLL_EFFECTS as XD,SCROLL_EFFECTS_WITH_ZOOM as U9,SCROLL_END as j9,SCROLL_START as G9,SCROLL_ZOOM as K9}from"efficient-shell/format";var JD="Scroll",q9={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"},V9={none:()=>ut(F9,{}),"zoom-in":()=>ut(M9,{}),"zoom-out":()=>ut(H9,{}),"fade-in":()=>ut(B9,{}),"fade-out":()=>ut(L9,{}),"move-up":()=>ut(D9,{}),"move-down":()=>ut(R9,{}),reveal:()=>ut(A9,{}),parallax:()=>ut(N9,{})},Y9="Effect",ZD=XD.filter(e=>e!=="none"),YD=(e,o)=>Jt(Qo.slice(0,Qo.indexOf(e)+1).reverse().map(t=>et(xo.effect,t)),t=>({field:t,set:!0}),t=>({field:t,in:o})),X9={any:Qo.map(e=>({field:et(xo.effect,e),in:ZD}))},J9=Qo.flatMap(e=>[[[et(xo.zoom,e)],YD(e,U9)],[[et(xo.start,e),et(xo.end,e)],YD(e,ZD)]]),Z9=()=>Tf(xo.effect,{label:JD,tileWord:Y9,values:XD,fallback:"none",word:e=>q9[e],picture:e=>V9[e](),read:(e,o)=>nr(e,o).effect}),Qg=(e,o,t,r,a)=>Pf(e,Tr(t,r,a.min,a.max,a.step,a.default,"%"),(n,s)=>nr(n,s)[o]);function Na(){let e={[Wn]:z9(JD,{dot:X9}),...Z9(),[Ic]:$9(),...Qg(xo.zoom,"zoom","Zoom",ut(W9,{}),K9),...Qg(xo.start,"start","Start",ut(VD,{}),G9),...Qg(xo.end,"end","End",ut(VD,{}),j9)};return Jo(e,J9)}import{jsx as Fo}from"react/jsx-runtime";import{AccentIcon as Q9,ContrastIcon as eV,EyeIcon as oV,ExpandIcon as tV,FinishIcon as rV,ImagesIcon as aV,NoSymbolIcon as eN,HoverLiftIcon as nV,HoverNextImageIcon as sV,HoverRotateIcon as lV,HoverZoomIcon as oN,OpacityIcon as iV}from"efficient-easel/icons";import{customize as dV,describedAs as tN,group as fV}from"efficient-easel/screen/lib/document/box-fields";import{effectTiles as rN}from"efficient-easel/screen/lib/document/effect-tiles";import{deviceField as go}from"efficient-easel/screen/lib/document/device-fields";import{NoControlMark as cV,noControlField as pV}from"efficient-easel/screen/lib/document/panel-no-control-mark";var fu=e=>go("desktop",fV("Hover",{dot:e})),aN=()=>go("desktop",dV()),uV="What this does when a shopper points at it, or taps it on a phone.",mV="What this picture does when a shopper points at it. Black and white shows it in grey until then. A phone shows its colour.",xV="What this picture does when a shopper points at the card. Show next image covers the card or the picture with this product's photos, with arrows; a phone shows the picture as it is. Black and white shows it in grey until then.",hV="What this picture does when a shopper points at the card. Show next image covers the picture with the card's photos, with arrows; a phone shows the picture as it is. Black and white shows it in grey until then.",IV="When this shows. On card hover shows it while a shopper points at the card. A phone always shows it.",gV="What each card does when a shopper points at it. Show next image covers the card with this product's photos, with arrows; a phone shows the card as it is. Rotate turns the wheel picture.",yV="Which of the product's pictures the card shows.",SV="Same finish shows the photos of the finish the card shows, else the first group.",bV="Whole card hides the words under the photo. Picture keeps the words and swatches in view.",wV={none:()=>Fo(eN,{}),nextImage:()=>Fo(sV,{}),rotate:()=>Fo(lV,{}),zoom:()=>Fo(oN,{}),lift:()=>Fo(nV,{}),mono:()=>Fo(eV,{})};function ey(e,o){let t=rN({label:f("Hover effect"),options:e.map(r=>({value:r,label:f(hm[r]),picture:wV[r]()})),fallback:o});return tN(t,{type:"select",label:"Hover effect",options:e.map(r=>({value:r,label:hm[r]}))})}function nN(){return{[gt]:fu({field:Xo,in:Sm.filter(e=>e!=="none")}),[Xo]:go("desktop",{...ey(Sm,"none"),description:uV})}}function sN(e){let o=Ob(e),t=id(),r=TP(yb);return{[gt]:fu({any:[o,t]}),[Ge.kind]:go("desktop",{...gs(ey(hb,e),(a,n)=>Pb(n??{},e)),description:gV}),...oy(t),[Ib]:pV({type:"custom",render:()=>Fo(cV,{})},"always"),_cHover:aN(),[Ge.angle]:go("desktop",Qe(gs(r,a=>Tb(a)),o)),[Ge.duration]:go("desktop",Qe(hs("hover"),o)),[Ge.delay]:go("desktop",Qe(Is("hover"),o))}}function oy(e){let o=vP("Type",Fo(aV,{}),Sb.map(a=>({value:a,label:bb[a]})),ld.kind),t=Tn("Group",Fo(rV,{}),wb.map(a=>({value:a,label:Cb[a]})),ld.group),r=Tn("Covers",Fo(tV,{}),kb.map(a=>({value:a,label:vb[a]})),ld.cover);return{[Ge.mediaKind]:go("desktop",Qe({...o,description:yV},e)),[Ge.mediaGroup]:go("desktop",Qe({...t,description:SV},e)),[Ge.cover]:go("desktop",Qe({...r,description:bV},e))}}function ty(e,o="",t=vm.includes(o)){let r=Pm(e),a=Rb(e);return{[gt]:fu(r),[Ge.kind]:ry(Eb,e,mV),...vm.includes(o)?oy(id()):{},_cHover:aN(),...t?lN():{},[Ge.duration]:go("desktop",Qe(hs("hover"),a)),[Ge.delay]:go("desktop",Qe(Is("hover"),a))}}function lN(e=!1){let o=a=>e?a:Qe(a,Lb()),t=Tr("Zoom",Fo(oN,{}),nn.min,nn.max,nn.step,nn.min,nn.unit),r=Tr("Darken on hover",Fo(iV,{}),Cn.min,Cn.max,Cn.step,Cn.fallback,Cn.unit);return{[wm.zoom]:go("desktop",o(t)),[wm.darken]:go("desktop",o(r))}}function ry(e,o,t){let r=go("desktop",{...gs(ey(e,o),a=>Fb({[Xo]:a},o,e)),description:t});return Object.assign(r,{[iN]:o})}var iN="sfPictureResting",QD=new WeakMap;function C_e(e,o,t){let r=e[Ge.kind],a=r?.[iN];if(!r||!a)return e;let n=o.props?.[Xo]==="nextImage",s=n?null:wd(t.appState,o.props?.id);if(!n&&!sd.includes(String(s?.type??"")))return e;let l=QD.get(e);return l||(l={...e,[Ge.kind]:ry(bm,a,xV)},QD.set(e,l)),l}var CV="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.",kV={none:()=>Fo(eN,{}),[Im]:()=>Fo(Q9,{})},k_e=go("desktop",{...tN(rN({label:f("Hover effect"),options:gm.map(e=>({value:e,label:f(ym[e]),picture:kV[e]()})),fallback:"none"}),{type:"select",label:"Hover effect",options:gm.map(e=>({value:e,label:ym[e]}))}),description:CV}),vV=go("desktop",{...Tn("Show",Fo(oV,{}),[{value:km,label:"Always"},{value:Cm,label:"On card hover"}],km),description:IV});function dN(){let e={any:[Pm("none"),{field:Xo,is:Im},{field:Jr,is:Cm}]},{[gt]:o,[Ge.kind]:t,...r}=ty("none","",!0);return{[gt]:fu(e),[Ge.kind]:t,[Jr]:vV,...oy(id()),...r,...lN(!0)}}var v_e=ry(bm,"none",hV);import{jsx as bi}from"react/jsx-runtime";import{isNodeList as EV}from"efficient-easel/data";import{useEasel as _V}from"efficient-easel/easel";import{hiddenInView as AV,hiddenKeyOf as ny,hidePatch as FV,slotChildName as BV,slotChildRowName as LV}from"efficient-easel/draw";var cu=null;function ay(e){cu=e}function fN(){return!!(cu&&cu.state().lockHolder)}function Ma(){return cu!==null}var PV=new Set(["BookingBox","SubmitBox"]);function TV(e){return typeof e=="string"&&PV.has(e)}var OV=FP(TV,fN);function pu(e,o){return OV(e)||qP(o)}var uu=(e,o,t)=>{if(o!=="block"||e.props?.fromProduct!==!0)return t;let r=e.props.product;return!r?.code||typeof r.name!="string"?t:r.name.trim()||t};import{deviceField as RV}from"efficient-easel/screen/lib/document/device-fields";import{NoControlMark as DV}from"efficient-easel/screen/lib/document/panel-no-control-mark";var cN="notCardOfTemplate",pN={not:{context:cN,is:!0}},sy={any:[fd,pN]},K_e={[cN]:(e,o)=>{let t=$m(o.appState,e.props?.id);return t===void 0?void 0:t===null}};function mu(e){let o=e.props?.content;return EV(o)?o:[]}var hu=(e,o)=>AV(e.props??{},o),NV=(e,o)=>e.props?.[ny(o)]!==void 0;function uN(e,o=()=>!1,t="desktop"){return mu(e).flatMap(r=>typeof r?.props?.id!="string"?[]:mu(r).length&&!hu(r,t)?uN(r,o,t):o(r)?[]:[r])}function MV(e,o,t,r="desktop"){let a=uN(e,t,r).map(l=>({child:l,name:o(l)})),n=new Set(a.map(l=>l.name)),s=new Set;return a.map(({child:l,name:i})=>{let d=i;if(s.has(i)){let c=2;for(;n.has(`${i} ${c}`);)c+=1;d=`${i} ${c}`,n.add(d)}return s.add(i),{id:l.props.id,label:d,shown:!hu(l,r)}})}function xu(e,o,t){let r=a=>t==="desktop"?hu(a,t):NV(a,t);return mu(e).flatMap(a=>r(a)?o(a)?[]:[a,...xu(a,o,t)]:xu(a,o,t))}function HV(e,o){let t={...e};for(let[r,a]of Object.entries(o))a===void 0||r===ny("desktop")&&a===!1?delete t[r]:t[r]=a;return Object.keys(t).length===Object.keys(e).length&&Object.keys(t).every(r=>t[r]===e[r])?e:t}function ly(e,o,t){let r=mu(e),a=!1,n=r.map(s=>{if(a)return s;let l=s;if(s?.props?.id===o){let i=HV(s.props,t(s.props));i!==s.props&&(l={...s,props:i})}else l=ly(s,o,t);return a=l!==s,l});return a?{...e,props:{...e.props,content:n}}:e}function mN(e,o,t,r="desktop"){return ly(e,o,a=>r==="desktop"&&hu({props:a},r)===!t?{}:FV(a,r,!t))}function WV(e,o,t){return t==="desktop"?mN(e,o,!0,t):ly(e,o,()=>({[ny(t)]:void 0}))}function $V(e,o,t,r,a,n){return BV(e).trim()?t(e):cw({ownerType:o,owner:r,fields:a,slot:n},Rt(e.props))?.label??t(e)}var zV="This page is read-only.";function UV({card:e,ownerType:o,owner:t,fields:r,slot:a,labelOf:n,write:s,readOnly:l,view:i="desktop"}){let d=m=>LV(m,n,an,void 0,uu),c=m=>pu(m.type,m),x=MV(e,m=>$V(m,o,d,t,r,a),c,i);return x.length?bi(_x,{parts:x,changed:xu(e,c,i).length>0,shown:m=>x.find(h=>h.id===m)?.shown??!0,disabledReason:l?zV:void 0,onPress:(m,h)=>s(I=>mN(I,m,h,i)),onReset:()=>s(m=>xu(m,c,i).reduce((h,I)=>WV(h,String(I.props.id),i),m))}):bi(DV,{})}function jV(){try{let e=_V(a=>a),o=e.config.components??{},t=e.selectedItem;if(!t)return null;let r=$m(e.appState,t.props?.id);return{labelOf:a=>o[a]?.label??a,card:t,ownerType:typeof r?.type=="string"?r.type:void 0,owner:r,fields:gw(e.appState,r),slot:hw(e.appState,t.props?.id)??void 0}}catch{return null}}function GV({readOnly:e,view:o}){let t=jV(),r=ll();return t?bi(UV,{...t,view:o,readOnly:e,write:a=>{e||r(n=>{let s={...t.card,props:n},l=a(s);return l===s?null:{content:l.props.content}})}}):bi(_x,{parts:[],changed:!1,shown:()=>!0,onPress:()=>{},onReset:()=>{}})}function q_e(e){return Qe(RV(e,{type:"custom",render:({readOnly:o})=>bi(GV,{readOnly:o,view:e})}),pN)}import{customize as oY}from"efficient-easel/screen/lib/document/box-fields";import{jsx as iy}from"react/jsx-runtime";import{DirectionIcon as KV,LoopMarqueeIcon as qV,NoSymbolIcon as VV}from"efficient-easel/icons";import{customize as YV,describedAs as XV,group as JV}from"efficient-easel/screen/lib/document/box-fields";import{effectTiles as ZV}from"efficient-easel/screen/lib/document/effect-tiles";function dy(){return iT("Direction",PI,ni,"A marquee cannot run diagonally, so the corners are not answers.",iy(KV,{}),lT)}var fy=e=>JV("Loop",e?{dot:e}:void 0),QV={none:()=>iy(VV,{}),scroll:()=>iy(qV,{})};function eY(){let e=ZV({label:f("Loop"),options:bp.map(({value:o,label:t})=>({value:o,label:f(t),picture:QV[o]()})),fallback:vI});return XV(e,{type:"select",label:"Loop",options:bp.map(({value:o,label:t})=>({value:o,label:t}))})}function xN(){return{[ss]:fy(ai),loop:eY(),_cLoop:YV(),scrollDirection:Qe(dy(),ai),loopDuration:Qe(iu({readsSpeed:!1}),ai),loopDelay:Qe(du(),ai)}}var hN={field:Jr,set:!0};function tY(){let e=dN(),o=[gt,Xo],t=Ro(e,Object.keys(e).filter(n=>!o.includes(n)&&n!==Jr),fd),r=Ro(t,[Jr],hN),a=Ro(r,[Xo],sy);return Ro(a,[gt],{any:[sy,hN]})}function Iu(e,o=""){switch(e){case"section":case"block":return{...Ot(),...Na()};case"box":return{...Ot(),...Na(),...xN(),...tY()};case"picture":return{...Ot(),...Na(),...ty(Ab(o),o)};case"textPart":return{...Ot(),...Na(),...nN()};case"cards":return{...Ot(),...Na(),...sN(gb(o))};case"marquee":return{...Ot(),...Na(),[ss]:fy(),_cLoop:oY(),scrollDirection:dy(),loopDuration:iu({readsSpeed:!0}),loopDelay:du()}}}import{blockSizeFieldSet as qY}from"efficient-easel/screen/lib/document/block-size-fields";import{VIEW_KEY_ACCESS as VY}from"efficient-easel/screen/lib/document/box-fields";import{jsx as IN,Fragment as rY,jsxs as aY}from"react/jsx-runtime";import{useSelectedHost as gN}from"efficient-easel/easel";import{VIEW_TIERS as nY,viewKeyAt as sY}from"efficient-easel/draw";var yN=e=>nY.find(o=>Object.values(Co).some(t=>sY(t,o)===e))??"desktop";function lY(e,o,t){let r=e(o),a=yN(t);return{top:$d(r,"top",a),bottom:$d(r,"bottom",a)}}var iY=e=>e.startsWith(Co.bottom)?"bottom":"top";function dY(e,o,t,r){let a=iY(r);return o(t,$d(e(t),a,yN(r)),a)}function fY({frameOf:e,note:o,rowKey:t}){let r=gN()?.values,a=r?dY(e,o,r,t):null;return a?IN("p",{className:"es-field-hint",children:a}):null}var cY=new Set(bn());function SN(e,o,t){let r=Or({tablet:!0,siteSide:!0,...t?{label:t}:{},useFallback:a=>{let n=gN()?.values;return n?lY(e,n,a.name):{top:0,bottom:0}}});return Object.fromEntries(Object.entries(r).map(([a,n])=>{let s=n.render;return!cY.has(a)||typeof s!="function"?[a,n]:[a,{...n,render:l=>aY(rY,{children:[s(l),IN(fY,{frameOf:e,note:o,rowKey:a})]})}]}))}import{group as pY}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as uY,deviceMetaOf as CN}from"efficient-easel/screen/lib/document/device-fields";import{DESIGN_GROUPS as py,SETTINGS_BUCKETS as mY}from"efficient-easel/panel";import{BUCKET_KEY as yo,DESIGN_GROUP_KEY as ys}from"efficient-easel/screen/lib/document/field-buckets";var wi=mY;var xY="Editor only \u2014 not shown live",uy={"Archive link":"Content",Article:"Content",Blocks:"Content","Blog posts":"Content","Browser mock":"Content",Button:"Content","Call to action":"Content","Car prompt":"Content","Card link":"Content","Card list":"Content",Cards:"Content","Claims bars":"Content","Contact info":"Content",Content:"Content",Display:"Content","Content source":"Content",Contents:"Content",Filters:"Content","Show on a card":"Content",Footnote:"Content",Form:"Content",Founders:"Content","Gallery A":"Content","Gallery B":"Content","Gallery link":"Content",Header:"Content","Header link":"Content","Image caption":"Content","In this issue":"Content",Items:"Content","Kanban columns":"Content",Lead:"Content","Left panel":"Content",Link:"Content",Links:"Content",List:"Content","Message form":"Content",Metadata:"Content",Milestones:"Content","Mockup card":"Content","Newsletter panel":"Content",Offices:"Content",Options:"Content","Others gallery":"Content","Overlay button":"Content",Product:"Content","Product page":"Content",Products:"Content","Pull quote":"Content",Questions:"Content","Recent issues":"Content","Recent posts":"Content",Reviews:"Content","Right panel \xB7 actions":"Content","Right panel \xB7 choices":"Content","Right panel \xB7 form":"Content","Routing groups":"Content",Rows:"Content",Section:"Content","Section header":"Content",Sections:"Content","Signup form":"Content",Source:"Content","Source product":"Content","Stat & note":"Content",Stats:"Content","Submit button":"Content","Success state":"Content",Wheel:"Content",Terminal:"Content",Text:"Content","Text column":"Content","Timeline entries":"Content","Top row":"Content",Total:"Content","Trailing note":"Content","\u201COther\u201D reason":"Content","Background images":"Design",Gallery:"Content",Image:"Content","Image column":"Content",Images:"Content",Logo:"Content",Map:"Content",Media:"Content","Background image":"Design",Color:"Design","Image tint":"Design",Style:"Design",Shape:"Design",Shadow:"Design",Texture:"Design",Overlay:"Design","Text style":"Design",Entrance:"Animation",Hover:"Animation",Loop:"Animation",Scroll:"Animation",Advanced:"Advanced",Anchor:"Anchor",Arrangement:"Layout","Auto-slide":"Layout",Bar:"Layout","Cell size":"Size",Behavior:"Layout",Schedule:"Layout",Controls:"Layout",Diagram:"Layout",[xY]:"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"},kN={"AlloyWheelsListing._gCards":"Design","Flex._gLink":"Link","LongRead._gLink":"Link"},vN={"Text._gSpacing":"Size","Heading._gSpacing":"Size"};function bN(e,o,t){let r=`${e}.${o}`;return $(vN,r)??$(kN,r)??$(uy,t)}function hY(e){return e==="Animation"?[yo.Animation]:[yo.Design,ys[e]]}function gu(...e){let o=[];for(let t of e)for(let r of Object.values(t)){let a=CN(r),n=tr(a?a.inner:r),s=n?$(uy,n.label):void 0;if(s)for(let l of hY(s))o.includes(l)||o.push(l)}return o}var A1e=[...gu(Or({tablet:!0,siteSide:!0}),_n("full"),An(),Fn(),il()),...Object.keys(Or({tablet:!0,siteSide:!0})),...Object.keys(_n("full")),...Object.keys(An()),...Object.keys(Fn()),...Object.keys(il())],F1e=[...gu(On()),...Object.keys(On())],B1e=[...gu(En()),...Object.keys(En())],L1e=[...gu(Ot()),...Object.keys(Ot())],R1e=Object.keys(cT()),D1e=Object.keys(pT()),IY={"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)"},PN={Content:["Content"],Size:["Size"],Design:["Design","Style"],Layout:["Layout"],Position:["Position"],Advanced:["Advanced"],Link:["Link"],Anchor:["Anchor"],Animation:["Animation"]},cy={_gAnchor:"repeated the Anchor group heading above it (two tabs, 11.0.0)"};{let e={...Or({tablet:!0,siteSide:!0}),..._n("full"),...An(),...Fn(),...On(),...En(),...Ot()};for(let o of Object.keys(cy)){let t=tr(e[o]),r=t?$(uy,t.label):void 0;if(!t||t.level!==2||!r||!PN[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 gY=new Set(["_sContent","_sStyle","_sLayout","_sMedia"]),yY=new Map([[yo.Design,"Content"],[yo.Animation,"Animation"],...py.map(e=>[ys[e],e])]);function SY(e){let o=`${e}.`;return Object.keys(IY).filter(t=>t.startsWith(o)).map(t=>t.slice(o.length))}function bY(e,o){let t=CN(e),r=pY(o);return t?uY(t.tier,r):r}function wY(e,o){let t=tr(o);return t?e==="Content"||e==="Animation"?QP(o,t.label):eT(o):o}function wN(e){return e==="Design"?py:["Animation"]}function yu(e,o){let t=[],r=new Set(SY(o)),a=new Set,n=!1,s=null;for(let[m,h]of Object.entries(e)){let I=tr(h);if(gY.has(m))throw new Error(`${o}.${m}: that key was a tab header until efficient-web-builder 11.0.0, when the panel moved to two tabs (Design \xB7 Animation). Its tab is gone, so the key may not come back. Give the heading a key of the section's own (\`_g\u2026\`), or open a Design group with its own key from efficient-easel's DESIGN_GROUP_KEY (\`[DESIGN_GROUP_KEY.Design]: section("Design")\`).`);let C=yY.get(m);if(C!==void 0){if(I?.level!==1)throw new Error(`${o}.${m}: that key is reserved for the ${C} heading of the settings panel, but this field is ${I?`a level-${I.level} "${I.label}" header`:"not a header"}, so it cannot serve as one. Rename the section's own field.`);(m===yo.Design||m===yo.Animation)&&(n=!0),t.push(s={place:C,entries:[],adopted:!0});continue}if(!I){s||t.push(s={place:"Content",entries:[]}),s.entries.push([m,h]);continue}if(r.has(m)||mo(cy,m)){let O=bN(o,m,I.label);if(I.level!==2||!O||!PN[O].includes(I.label))throw new Error(`${o}.${m}: ${r.has(m)?"RETIRED":"INJECTED_RETIRED"} (lib/document/field-groups.ts) lists this sub-heading as one whose name repeats the place it sits in, but it is a level-${I.level} "${I.label}" header in the ${O??"(unclassified)"} place. Only a level-2 header whose label is one of its place's words (PLACE_WORDS) may be retired \u2014 anything else is a heading a merchant reads for its own sake. Fix the row or drop it.`);r.has(m)&&a.add(m),t.push(s={place:O,entries:[],uniform:mo(cy,m)});continue}let P=bN(o,m,I.label);if(!P)throw new Error(`${o}.${m}: the inspector group "${I.label}" is not classified in LABEL_GROUP (lib/document/field-groups.ts), so there is no way to say which of ${[...py,"Animation"].join(" / ")} its controls belong under. Classify it \u2014 an unclassified group silently lands wherever it was declared, which is the whole bug.`);t.push(s={place:P,entries:[[m,I.level===2?h:bY(h,I.label)]]})}let l=new Set(Object.entries(e).filter(([,m])=>tr(m)).map(([m])=>m));for(let[m,h]of[["BLOCK_KEY_GROUP",vN],["KEY_GROUP",kN]]){let I=Object.keys(h).filter(C=>C.startsWith(`${o}.`)).filter(C=>!l.has(C.slice(o.length+1))&&!r.has(C.slice(o.length+1)));if(I.length)throw new Error(`${o}: ${m} (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(m=>!a.has(m));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(m=>m.entries.length>0).map(m=>m.place)),c=wi.filter(m=>wN(m).some(h=>d.has(h))),x={};for(let m of c){x[yo[m]]=kf(m,m===c[0]?c:null);for(let h of wN(m)){if(!d.has(h))continue;let I=t.filter(O=>O.place===h),C=I.findIndex(O=>O.adopted);C>0&&I.unshift(...I.splice(C,1));let P=I.filter(O=>O.uniform);if(P.length>0){let O=I.filter(v=>!v.uniform),F=I[0]?.adopted?1:0;I.splice(0,I.length,...O.slice(0,F),...P,...O.slice(F))}m==="Design"&&(x[ys[h]]=vx(h));for(let O of I)for(let[F,v]of O.entries)x[F]=wY(h,v)}}return x}function TN(e){return yo.Design in e?e:{[yo.Design]:kf("Design",null),[ys.Content]:vx("Content"),...e}}function ON(e){return wi.some(o=>yo[o]in e)}function Su(e){let o=wi.filter(r=>yo[r]in e);if(o.length===0)return e;let t={...e};for(let r of o)t[yo[r]]=kf(r,r===o[0]?o:null);return t}import{jsx as bu}from"react/jsx-runtime";import{WidthIcon as CY}from"efficient-easel/icons";import{SettingsField as kY,SettingsSwitch as vY}from"efficient-easel/panel";import{group as PY,iconOf as TY,sharedStyleKinds as OY}from"efficient-easel/screen/lib/document/box-fields";var EY="Gutter";function _Y({value:e,onChange:o,labelId:t}){let r=ru(sl()),a=pi({[Ra]:e})??r,n=s=>o(s?r?void 0:_g:Eg);return bu(kY,{label:f(EY),labelId:t,icon:TY(bu(CY,{})),action:bu(vY,{checked:a,onChange:n,ariaLabelledBy:t})})}function EN(){return OY({_gWidth:PY(vf),[Ra]:{type:"custom",render:({value:e,onChange:o,id:t,name:r})=>bu(_Y,{value:e,onChange:o,labelId:`${t??r??Ra}-label`})}})}import{jsx as xy}from"react/jsx-runtime";import{group as AY,sharedStyleKinds as AN}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as FY}from"efficient-easel/screen/lib/document/device-fields";var BY="Content cannot be wider than the background.",my=e=>f(e==="content"?"Content width":"Full width");function FN(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 LY={read:hn},RY={read:hn,drawsFullOnItsOwn:!0},DY={read:wC,clearOnContent:{fullWidth:void 0}};function NY({source:e}){let o=e.read(Ox()),t=ll(),r=FN(e);return xy(mT,{value:o.background??r.background,changed:o.background!==null,detail:my(r.background),onChange:a=>t(kC(a)),onReset:()=>t(Xm("background"))})}function MY({source:e}){let o=e.read(Ox()),t=ll(),r=i=>t({...i,...e.clearOnContent}),a=FN(e),n=(o.background??a.background)==="content",s=oT({row:Ym,label:uT,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 xy(xT,{mode:n&&l==="full"?"content":l,px:o.contentMax??a.px,max:n?a.px:xn.max,changed:o.content!==null,detail:a.content==="full"?my("full"):`${my("content")} ${a.px}px`,fullClosed:n,hint:n?BY:void 0,onMode:i=>r(vC(i)),onPx:i=>r({...PC(i),...s?.unitPatch(!1)}),...s?{length:s}:{},onReset:()=>r(Xm("content"))})}var _N=(e,o)=>FY("desktop",{type:"custom",render:()=>xy(e,{source:o})}),BN=e=>({[Ao.background]:_N(NY,e),[Ao.content]:_N(MY,e),[Ao.contentMax]:Tx(),...PP(Ym,Ao.content)});function LN(e){let o=e?.drawsFullOnItsOwn?RY:LY;return AN({_gWidth:AY(vf),...BN(o)})}function aAe(){return AN({...BN(DY),fullWidth:Tx()})}import{deviceMetaOf as DN}from"efficient-easel/screen/lib/document/device-fields";import{noControlMetaOf as HY}from"efficient-easel/screen/lib/document/panel-no-control-mark";function WY(e,o){let t=DN(o),r=t?t.inner:o;if(tr(r)||r?.customize===!0)return!1;if(r?.type==="slot")return!0;let a=HY(r);return a==="always"?!1:a==="authored-copy"?Bk(e):!0}function RN(e){let o=DN(e),t=o?o.inner:e,r=tr(t);return r?ZP(t)?0:r.level:null}function $Y(e,o,t){return t?o===0&&e===yo.Design||o===1&&e===ys.Content:!1}var zY=new WeakMap,UY=new WeakMap;function NN(e,o="section"){let t=o==="page"?UY:zY,r=t.get(e);if(r)return r;let a=Object.entries(e).map(([x,m])=>({key:x,field:m,level:RN(m),draws:WY(x,m)||o==="page"&&RN(m)===null&&ix(x,m)})),n=o==="section"&&a.some(x=>ix(x.key,x.field)),s=new Set;for(let x=0;x<a.length;x++){let m=a[x].level;if(m===null)continue;let h=0;for(let I=x+1;I<a.length;I++){let C=a[I].level;if(C!==null&&C<=m)break;a[I].draws&&(h+=1)}h===0&&!$Y(a[x].key,m,n)&&s.add(a[x].key)}let l=n&&ON(e),i=l&&!(yo.Design in e);if(!s.size&&!i)return t.set(e,e),e;let d={};for(let x of a)s.has(x.key)||(d[x.key]=x.field);let c=Su(l?TN(d):d);return t.set(e,c),c}import{isShown as jY,showWhenFactReaders as GY}from"efficient-shell/format";var MN=new WeakMap,KY=new Set(Object.values(yo));function HN(e,o,t,r={}){if(!e)return e;let a=o?.props??{},n=a.id,s=GY(r,o,t),l=xP(t,{...s,parentOffersPositions:()=>{let I=jt(t.appState,n);return I===void 0?void 0:$C(I,n)},parentTileSlot:()=>{let I=jt(t.appState,n);return I===void 0?void 0:zC(I,n)},heroGroupDepth:()=>Bd(t.appState?.data,typeof n=="string"?n:"")}),i=[];for(let[I,C]of Object.entries(e)){let P=Jb(C);!P||mP(P,"device")||jY(P,a,l)||i.push(I)}if(i.length===0)return e;let d=MN.get(e);d||MN.set(e,d=new Map);let c=i.join("\0"),x=d.get(c);if(x)return x;let m=new Set(i),h={};for(let[I,C]of Object.entries(e))m.has(I)||(h[I]=C);return i.some(I=>KY.has(I))&&(h=Su(h)),d.set(c,h),h}var WN={spacingFields:nT,sidesPaddingFields:Or,ownPaddingFields:SN,sectionShapeFields:En,cardShapeFields:tT,cellWidthFields:rT,widthField:_n,boxGutterFields:EN,sectionOwnWidthFields:LN,heightFields:An,anchorFields:Fn,customCssFields:sT,stickFields:il,sectionThemeFields:On,animationTabFields:Iu,blockSizeFields:({tablet:e,...o}={})=>qY({...o,shorten:!0,say:kP,lengthUnits:gf,...e?{phone:VY}:{}}),assignSectionGroups:yu,dropEmptyHeadings:NN,rowsShownForNode:HN,SECTION_THEME_FOLLOW_LABEL:jP,BLOCK_THEME_FOLLOW_LABEL:GP,PartAnchors:IL};function wu(e,o,t){if(!e)return e;let r=!1,a={};for(let[n,s]of Object.entries(e)){let l=s;if(s&&typeof s=="object")if(s.type==="slot")if(s.allow){let i=s.allow.filter(o);i.length!==s.allow.length&&(l={...s,allow:i})}else{let i=new Set(s.disallow??[]),d=t.filter(c=>!i.has(c));d.length>0&&(l={...s,disallow:[...s.disallow??[],...d]})}else{let i=wu(s.arrayFields,o,t),d=wu(s.objectFields,o,t);(i!==s.arrayFields||d!==s.objectFields)&&(l={...s,...i?{arrayFields:i}:null,...d?{objectFields:d}:null})}l!==s&&(r=!0),a[n]=l}return r?a:e}function YY(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=WD(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 XY(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];JY(e,o,a);for(let n of a){let s=n.components.filter(gd);if(s.length>0)throw new Error(`efficient-web-builder: the category "${n.key}" lists ${s.map(l=>`"${l}"`).join(", ")}, a block a card template declares. A card's block is added in its card only; take it out of the category.`)}for(let n of r){if(!yd(n))continue;let s=Id(n).filter(l=>!r.has(l.type)).map(l=>`"${l.type}"`);if(s.length>0)throw new Error(`efficient-web-builder: the card template of "${n}" declares ${s.join(", ")}, which the editor does not register. Register it in the registry or in blocks.host.`)}}function hy(e,o,t,r=""){let a=[];for(let[n,s]of Object.entries(t??{})){if(!s||typeof s!="object")continue;let l=`${r}${n}`;s.type==="slot"&&s.allow?.includes(e)&&a.push(`${o}.${l}`),a.push(...hy(e,o,s.arrayFields,`${l}.`),...hy(e,o,s.objectFields,`${l}.`))}return a}function JY(e,o,t){let r=n=>{throw new Error(`efficient-web-builder: ${n} names "${pn}". Only a host's seed puts a host part in a card template; a merchant never adds one. Take it out.`)};for(let n of t)n.components.includes(pn)&&r(`the category "${n.key}"`);let a=[...Object.entries(e.components??{}),...o.map(([n,s])=>[n,s])];for(let[n,s]of a){let l=hy(pn,n,s?.fields);l.length>0&&r(`the slot ${l.map(i=>`"${i}"`).join(", ")}, whose allow list`)}}function $N(e,o){let t=Object.entries(o?.host??{}),r=o?.categories??[],a=wg(o);if(XY(e,t,r),!a&&t.length===0&&r.length===0)return e;let n=e.components,s=t.map(([x])=>x).filter(x=>x in n);if(s.length>0)throw new Error(`efficient-web-builder: blocks.host registers ${s.map(x=>`"${x}"`).join(", ")}, which ${s.length===1?"is already a block":"are already blocks"} of the editor. Give a host's block a type of its own.`);let l=x=>a?a.offers(x):!0,i=Object.keys(n).filter(x=>!l(x)),d={};for(let[x,m]of Object.entries(n)){let h=a?wu(m?.fields,l,i):m?.fields;d[x]=h===m?.fields?m:{...m,fields:h}}if(t.length>0){let x=new Set(t.map(([I])=>I)),m=e.categories?.structure?.components??[],h={...Yg(Object.keys(n),m,x),isHostBlock:I=>x.has(I),inspector:WN};for(let[I,C]of t){let P=YY(I,C,h),O=wu(P.fields,l,i);d[I]=O===P.fields?P:{...P,fields:O}}}let c=[];for(let[x,m]of Object.entries(e.categories??{})){let h=m?.components??[],I=h.filter(l);I.length===h.length?c.push([x,m]):I.length>0&&c.push([x,{...m,components:I}])}for(let x of r){let m=x.components.filter(P=>P in d&&l(P));if(m.length===0)continue;let h=c.find(([P])=>P===x.key);if(h){let[,P]=h,O=new Set(P.components??[]);h[1]={...P,components:[...P.components??[],...m.filter(F=>!O.has(F))]};continue}let I=[x.key,{title:x.title,components:m}],C=x.before?c.findIndex(([P])=>P===x.before):-1;C===-1?c.push(I):c.splice(C,0,I)}return{...e,components:d,categories:Object.fromEntries(c)}}function zN(){let e=eX();return ZY(()=>$N(QY(e),un(e)),[e])}import{jsx as yy,Fragment as SX,jsxs as bX}from"react/jsx-runtime";import{useContext as wX,useEffect as CX,useMemo as Ou,useRef as iM}from"react";import{EaselCanvas as kX,repeatCopyAt as vX,useEasel as PX}from"efficient-easel/easel";import{jsx as Iy}from"react/jsx-runtime";import{useEffect as aX,useState as nX}from"react";import{Banner as sX}from"efficient-shell/ui";import{useSyncExternalStore as oX}from"react";import{useScreenDocument as tX}from"efficient-easel/screen/components/ScreenDocumentContext";var rX=()=>()=>{},UN=()=>null;function Cu(e){return oX(e?e.subscribe:rX,e?e.state:UN,e?e.state:UN)}function ku(){let{adapter:e}=tX();return e?.pinnedChrome}var vu={load:"The header and footer could not load. They are hidden for now and nothing in them is saved. Reload to try again.",lock:"{name} is editing the header and footer. Nothing you change in them here is saved.",conflict:"The header and footer were changed somewhere else. Nothing you change in them here is saved. Reload to get the latest.",save:"The header and footer did not save. They are sent again with your next change."},lX={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."},iX=vu.load,dX=vu.lock,fX=vu.conflict,cX=vu.save;function pX(e){if(!e)return null;if(e.loadFailed)return f(iX);if(e.lockHolder)return f(dX,{name:e.lockHolder.name||f("Somebody else")});if(e.conflict)return f(fX);if(e.saveFailed)return f(cX);let o=e.sections?.[0];if(!o)return null;let t=o.title||f("A shared section"),r=o.holder?.name||f("Somebody else");return f(lX[o.problem],{section:t,name:r})}function uX({report:e}){let o=pX(Cu(e)),[t,r]=nX(null);return aX(()=>{o||r(null)},[o]),!o||t===o?null:Iy("aside",{className:"sf-canvas-notice",children:Iy(sX,{tone:"warning",onDismiss:()=>r(o),children:o})})}function jN(){return Iy(uX,{report:ku()})}import{jsx as Tu}from"react/jsx-runtime";import{useState as sM}from"react";import{Banner as xX,Button as hX}from"efficient-shell/ui";import{UndoIcon as IX}from"efficient-shell/icons/efficient";import{useScreenDocument as gX}from"efficient-easel/screen/components/ScreenDocumentContext";import{useSyncExternalStore as qN}from"react";var Ci=!1,Ss=null,gy=new Set;function vi(){for(let e of gy)e()}function VN(e){return gy.add(e),()=>{gy.delete(e)}}function YN(){Ci||(Ci=!0,vi())}function XN(){Ci&&(Ci=!1,vi())}function GN(){return Ci}function JN(){return qN(VN,GN,GN)}function KN(){return Ss}function Pu(){Ss&&(Ss=null,vi())}function ZN(){return qN(VN,KN,KN)}var ki=class extends Error{constructor(){super("The editor's last changes could not be saved, so nothing was restored."),this.name="HeldEditsNotSaved"}};async function QN(e,o,t,{flushSave:r,reload:a}){if(!await r())throw new ki;let n=await e.restore(o,t);return bf(n.liveState),a(),n}async function eM({access:e,version:o,page:t,...r}){let a=await QN(e,o.id,t?{page:t.id}:{},r);Ss={title:mX(o,t??null),undo:a.undo},vi()}async function oM({access:e,...o}){let t=Ss?.undo;t&&(await QN(e,t,{},o),Ss=null,vi())}function tM(e){return e.name?e.name:e.kind==="draft_before_restore"?f("Draft before restore"):f("Version {n}",{n:e.number})}function mX(e,o){return e.kind==="draft_before_restore"?f("Your drafts from before the restore are back"):o?f("{page} from version {n} is now your draft",{page:o.name,n:e.number}):f("Version {n} is now your draft",{n:e.number})}function rM(e){let o=e.changes.filter(r=>r.kind==="page").length,t=[...o?[Dt("{n} page","{n} pages",o)]:[],...e.changes.filter(r=>r.kind!=="page").map(r=>r.name)];if(!t.length)return"";try{return new Intl.ListFormat(jm(),{type:"conjunction"}).format(t)}catch{return t.join(", ")}}function aM(e){return e.change==="take_down"?f("{name} (taken down)",{name:e.name}):e.name}function nM(e,o=new Date){let t=new Date(e);if(Number.isNaN(t.getTime()))return"";let r=jm(),a=new Intl.DateTimeFormat(r,{hour:"numeric",minute:"2-digit"}).format(t);if(t.toDateString()===o.toDateString())return f("Today, {time}",{time:a});let n=new Intl.DateTimeFormat(r,{day:"numeric",month:"short",...t.getFullYear()===o.getFullYear()?{}:{year:"numeric"}}).format(t);return f("{day}, {time}",{day:n,time:a})}import{useSettledAction as yX}from"efficient-easel/easel";function lM(){let e=ZN(),{adapter:o,flushSave:t,reloadFromServer:r}=gX(),a=o.siteVersions,[n,s]=sM(!1),[l,i]=sM(!1),d=async()=>{if(!(!a||n)){s(!0),i(!1);try{await oM({access:a,flushSave:t,reload:r})}catch{i(!0)}finally{s(!1)}}},c=yX({onPress:()=>{d()},busy:n});return e?Tu("aside",{className:"sf-canvas-notice",children:Tu(xX,{tone:l?"danger":"info",title:e.title,onDismiss:Pu,action:a&&e.undo?Tu(hX,{variant:"secondary",size:"sm",leftIcon:Tu(IX,{}),loading:c.busy,disabled:c.busy,onClick:c.onPress,children:f("Undo")}):void 0,children:l?f("Undo did not work. Nothing changed. Try again."):f("Check it with Preview. Press Publish to put it live.")})}):null}import{decodePartId as TX,REPEAT_ATTRIBUTE as Sy,REPEAT_INDEX_ATTRIBUTE as by}from"efficient-easel/draw";import{usePreviewParts as OX}from"efficient-easel/draw/client";import{ScreenDocumentContext as EX}from"efficient-easel/screen/components/ScreenDocumentContext";function dM(e){let{mirrorHostStyles:o}=dl(),t=AT(),r=wy(),a=sl(),n=wX(EX),s=RP(n?.docId??null),l=PX(P=>P.appState.data),i=DP(s,l),d=JSON.stringify(i),c=Ou(()=>i,[d]),x=Ou(()=>({...e.metadata??t??{},...r,...c}),[e.metadata,t,r,c]);CX(()=>(jg(a),()=>jg(null)),[a]);let m=iM(null),h=_X(m),{onDocument:I}=e,C=P=>{m.current=P,I?.(P)};return bX(SX,{children:[yy(lM,{}),yy(jN,{}),yy(kX,{...e,onDocument:C,typing:h,metadata:x,height:"fill",mirrorStyles:o,frameWrapper:$f})]})}function wy(){let{sectionBackgroundWidth:e,themeFromDocument:o}=vo(),t=sl();return Ou(()=>TC(o?null:e,t),[e,t,o])}function _X(e){let o=Af(),t=OX(),r=iM({parts:t});return r.current={parts:t},Ou(()=>{let a=(n,s)=>{let l=Lf(n,o),i,d=null,c=s??(l?null:qx(null,e.current,n)),x=!l&&c?vX(c):null,m=x?TX(n):null;if(x&&c&&m?.propKey){l=Df({...x,nodeId:m.nodeId,key:m.propKey},o),i=m.propKey;let P=c.closest(`[${Sy}][${by}]`),O=`[${Sy}="${Rf(P?.getAttribute(Sy)??"")}"][${by}="${Rf(P?.getAttribute(by)??"")}"]`;d=()=>(c.ownerDocument??e.current)?.querySelector(O)??null}if(!l)return null;let h=c,I=()=>(h=qx(h,d?d():h?.ownerDocument??e.current,n),h),C=I();return C?{element:I,value:l.value,rules:l.rules,multiline:l.multiline,skip:l.skip,write:l.write,key:i,toolbar:{offered:l.offered,colors:l.offered.length>0?Qd(ef(C)):void 0,colorNameOf:Zd}}:null};return{at:n=>{let s=n.closest(`[${$e}]`),l=s?.getAttribute($e);return s&&l?a(l,s):null},atSelection:()=>{let n=r.current.parts.selectedPartId;return n?a(n,null):null},onCopyText:n=>ZT(n,o),copyValue:n=>JT(n,o),onChange:n=>{if(!n.typing){Vx(null);return}let s=n.element.closest(`[${$e}]`)?.getAttribute($e)??null;Vx(s),s&&r.current.parts.selectedPartId!==s&&r.current.parts.select(s)}}},[o,e])}function pM({open:e,onClose:o,takenSlugs:t,onCreated:r}){let a=DX(),{adapter:n,siteId:s,templateId:l}=RX(),i=_o(a).pages,d=!l&&!!(i.starters&&i.createFromStarter),c=BX(()=>s?{siteId:s}:{},[s]),x=zN(),m=wy(),[h,I]=ky(null),[C,P]=ky(cs),[O,F]=ky(null),v=LX(null),y=FX();AX(()=>{if(!e)return;if(P(cs),!d){I([]);return}let w=!0;return I(null),i.starters(c).then(T=>w&&I(T),()=>{w&&(I([]),cM.error(f("Couldn\u2019t load the pages \u2014 please retry.")))}),()=>{w=!1}},[e,d,i,c]);let b=async(w,T)=>{if(!O){F(w);try{r(await T())}catch{cM.error(f("Couldn\u2019t add the page \u2014 please retry."))}finally{F(null)}}},E=()=>{if(!n.createPage)return;let w=f("New page");b("blank",()=>n.createPage({slug:fM(w,t),title:w,layout:{}}))},B=w=>{b(w.id,()=>i.createFromStarter(w.id,{title:w.title,slug:fM(w.slug,t),...c}))},R=h??[],k=AL(R),L=FL(C,R),g=Cy("nav",{"aria-label":f("Pages"),className:"sf-add-page-nav",children:[Vo(vy,{label:f("All pages"),active:C===cs,onClick:()=>P(cs)}),k.map(w=>Vo(vy,{label:f(w.label),active:C===w.key,onClick:()=>P(w.key)},w.key)),gg(R).length>0?Vo("div",{className:"sf-add-page-group",children:Vo(vy,{label:f("From your template"),active:C===Vp,onClick:()=>P(Vp)})}):null]});return Vo(MX,{open:e,onClose:o,size:"full",title:f("Add page"),initialFocus:v,children:Vo(jX,{sidebarTop:Cy(UX,{onClick:E,disabled:!n.createPage||O!==null,children:[Vo(NX,{"aria-hidden":!0}),f("Blank page")]}),sidebar:g,children:Cy("div",{ref:v,tabIndex:-1,role:"region","aria-labelledby":y,className:"sf-add-page",children:[Vo(GX,{id:y,level:2,as:"h3",children:f("Pages for your site")}),Vo(zX,{tone:"default",className:"sf-add-page-sub",children:f("Choose a page and change the text, images and more.")}),h===null?Vo($X,{label:f("Loading\u2026")}):L.length===0?Vo(HX,{title:f("No pages to start from"),description:f("Start with a blank page, then add sections.")}):Vo(WX,{cols:1,smCols:2,lgCols:3,gap:8,children:L.map(w=>Vo(RL,{starter:w,config:x,metadata:m,busy:O===w.id,onAdd:B},w.id))})]})})})}import{jsx as KX}from"react/jsx-runtime";import{createContext as qX,useContext as uM,useEffect as VX,useRef as mM}from"react";var Py=qX(null);function XFe({open:e,children:o}){let t=mM(!!e);return KX(Py.Provider,{value:t,children:o})}function xM(){let e=uM(Py);return()=>e?.current?(e.current=!1,!0):!1}function hM(e){let o=uM(Py),t=mM(e);t.current=e,VX(()=>{o?.current&&(t.current.setView("pages"),t.current.reveal())},[o])}var wM="sf-editor-pages-collapsed-groups";function pJ(){let e=Oy(),{siteId:o,templateId:t}=CM(),r=_o(e).pages;if(!(!r.duplicate||t))return(a,n)=>r.duplicate(a.id,{...n,...o?{siteId:o}:{}})}function kM({onNavigate:e,onClose:o,activeSurface:t,onPreviewSurface:r}){let a=Oy().chrome?.pageRows,n=dJ(),{adapter:s,capabilities:l,ready:i,currentSlug:d}=CM(),c=Bn(),{rows:x,reload:m,setRows:h,getRows:I}=pl(),[C,P]=Ha(""),[O,F]=Ha(!1),[v,y]=Ha(null),[b,E]=Ha(!1),B=!!_o(Oy()).pages.createFromStarter,R=pJ(),[k,L]=Ha(null),[g,w]=Ha(()=>{if(typeof window>"u")return new Set;try{let W=window.localStorage.getItem(wM);return new Set(W?JSON.parse(W):[])}catch{return new Set}});IM(()=>{try{window.localStorage.setItem(wM,JSON.stringify([...g]))}catch{}},[g]);let T=W=>w(he=>{let Ie=new Set(he);return Ie.has(W)?Ie.delete(W):Ie.add(W),Ie}),S=gM(()=>cP(x??[]),[x]),M=C.trim().toLowerCase(),N=W=>!M||W.toLowerCase().includes(M),G=W=>M?!0:!g.has(W),q=gM(()=>new Set((x??[]).map(W=>W.slug)),[x]),le=()=>{if(l.pageCreationInAdminForm&&!B){n.send("storefront-editor:new-page");return}y(null),E(!0)},ge=xM();IM(()=>{ge()&&le()},[]);let Y=l.hasSiteSettings&&!!s.createPage,xe=async()=>{if(!(!i||O||!s.createPage)){F(!0),y(null);try{let W=await s.createPage(VP(f("New popup"),q));await m(),e(W.slug)}catch{y(f("Couldn\u2019t add the popup \u2014 please retry."))}finally{F(!1)}}},ae=JX(null),[me,pe]=Ha(null),Ye=()=>{if(!Y)return le();if(me)return pe(null);let W=ae.current?.getBoundingClientRect();W&&pe({top:W.bottom+6,right:Math.max(8,window.innerWidth-W.right)})},bo=W=>{let he=x??[],Ie=s.deletePage;if(!i||O||!Ie||he.length<=1)return;let Ze=he.findIndex(po=>po.id===W.id),Oo=he.filter(po=>po.id!==W.id),Re=W.slug===d;Hf(W.id,!0),h(Oo),y(null),Re&&Oo[0]&&e(Oo[0].slug);let Ue=()=>{Hf(W.id,!1);let po=I()??[];if(po.some(Kt=>Kt.id===W.id))return;let Eo=[...po];Eo.splice(Math.max(0,Math.min(Ze,Eo.length)),0,W),h(Eo)};SM.undoable(f("Deleted \u201C{name}\u201D",{name:W.label}),{actionLabel:f("Undo"),commit:async po=>{await Ie(W.id,po),Hf(W.id,!1)},undo:()=>{Ue(),Re&&e(W.slug)},onFail:()=>{Ue(),SM.error(f("Couldn\u2019t delete the page \u2014 please retry."))}})},Bo=W=>n.send("storefront-editor:open-page",{slug:W}),Je=W=>{if(!N(W.label))return null;let he=!t&&W.slug===d,Ie=l.canDeletePagesInline&&(x??[]).length>1,Ze=hf(W),Oo=fP(W),Re=[...Ze?[{label:f("Dynamic"),tone:"info"}]:[],...Oo?[{label:f("Lightbox"),tone:"success"}]:[],...W.draft?[{label:f("draft"),tone:"draft"}]:[]],Ue=Re.length>0?Re:void 0,po=!!R&&fJ(W),Eo=po||l.pageCreationInAdminForm||Ie?Eu(YX,{children:[po&&ve(_u,{kind:"plain",label:f("Duplicate \u201C{name}\u201D",{name:W.label}),disabled:O,onClick:()=>L(W),children:ve(nJ,{size:13})}),l.pageCreationInAdminForm&&ve(_u,{kind:"plain",label:f("Page settings for \u201C{name}\u201D",{name:W.label}),onClick:()=>Bo(W.slug),children:ve(lJ,{size:13})}),Ie&&ve(_u,{kind:"delete",label:f("Delete \u201C{name}\u201D",{name:W.label}),disabled:O,onClick:()=>bo(W),children:ve(Ty,{name:"trash",size:13,strokeWidth:1.7,rounded:!0})})]}):void 0;return ve(bM,{icon:ve(sJ,{size:14}),name:W.label,selected:he,onSelect:()=>e(W.slug),badge:Ue,actions:Eo,rowProps:{"data-page-slug":W.slug}},W.id)},fo=(W,he,Ie)=>{let Ze=Ie.filter(Boolean);if(Ze.length===0)return null;let Oo=G(W);return Eu(XX,{children:[ve(rJ,{count:Ze.length,countLabel:Dt("{n} page","{n} pages",Ze.length),expanded:Oo,onToggle:()=>T(W),children:he}),Oo&&Ze]},W)},co=(a?.rows??[]).filter(W=>N(W.label)).map(W=>{let he=t===W.key;return ve(bM,{icon:W.icon,name:W.label,selected:he,onSelect:()=>r(W.key),badge:{label:f("Preview"),tone:"warning"},actions:ve(_u,{kind:"plain",label:f("Open the {name} in a new tab",{name:W.label}),onClick:()=>window.open(W.href,"_blank","noopener,noreferrer"),children:ve(Ty,{name:"external-link",size:13,strokeWidth:1.7,rounded:!0})}),rowProps:{"data-shop-surface":W.key}},W.key)}),se=l.hasSiteSettings&&!!a,Le=(()=>{if(x===null)return null;let W=[],he=!1;for(let Ie of S){se&&!he&&Ie.key.startsWith("system:")&&(W.push(fo("shop",a.title,co)),he=!0);let Ze=Ie.key===dP||Ie.label===iP?f(Ie.label):Ie.label;W.push(fo(Ie.key,Ze,Ie.rows.map(Je)))}return se&&!he&&W.push(fo("shop",a.title,co)),W})();return Eu("div",{className:"sf-pages",children:[ve(ZX,{icon:ve(iJ,{}),title:f("Pages"),context:c,actions:ve(QX,{buttonRef:ae,label:Y?f("Add"):f("New page"),hasPopup:Y?"menu":void 0,expanded:Y?me!==null:void 0,onClick:Ye,children:ve(aJ,{size:15})})}),me&&ve(oJ,{portal:!0,style:{top:me.top,right:me.right},onClose:()=>pe(null),children:Eu("div",{role:"menu","aria-label":f("Add"),children:[ve(yM,{role:"menuitem",onClick:()=>{pe(null),le()},children:f("Page")}),ve(yM,{role:"menuitem",disabled:O,onClick:()=>{pe(null),xe()},children:f("Popup")})]})}),ve("div",{className:"sf-pages-find",children:ve(eJ,{type:"search",leftIcon:ve(Ty,{name:"search",size:14,rounded:!0}),placeholder:f("Search all pages\u2026"),value:C,onChange:W=>P(W.target.value),"aria-label":f("Search all pages")})}),v&&!b&&ve("div",{className:"sf-note sf-note--error",role:"alert",children:v}),Le===null?ve("div",{className:"sf-note",children:f("Loading\u2026")}):Le.some(Boolean)?ve(tJ,{ariaLabel:f("Pages"),className:"sf-scroll",children:Le}):ve("div",{className:"sf-note",children:C.trim()?f("No pages match your search"):f("No pages yet. Add one with + above.")}),R&&k&&ve(cJ,{source:{title:k.label,slug:k.slug},taken:q,host:ff(),duplicate:W=>R(k,W),onClose:()=>L(null),onDuplicated:W=>{L(null),m(),e(W.slug)}},k.id),b?ve(pM,{open:!0,onClose:()=>E(!1),takenSlugs:q,onCreated:W=>{E(!1),m(),e(W.slug)}}):null]})}import{jsx as TM}from"react/jsx-runtime";import{createContext as hJ,useCallback as IJ,useContext as gJ,useMemo as yJ,useState as SJ}from"react";import{CanvasChromeContext as bJ}from"efficient-easel/easel";import{useSelectHandler as wJ}from"efficient-easel/draw/client";import{parseHexColor as uJ,parseOption as mJ}from"efficient-shell/format";var Au=["chat-bubble-left-right","chat-bubble-oval-left-ellipsis","chat","megaphone","phone","sparkles"],bs=Au[0],xJ=["right","left"],Wa="right";function Fu(e){return Au.includes(e??"")?e:bs}function vM(e){return mJ(xJ,Wa,e)}function PM(e){return e&&uJ(e)===e.toLowerCase()?e.toLowerCase():""}var OM="chat",Bu={enabled:!0,title:"",subtitle:"",greeting:"",launcherColor:"",launcherIcon:"",launcherPosition:Wa,launcherLabel:"",showOnPhones:!0};function OBe(e){return{enabled:e.enabled,title:e.title,subtitle:e.subtitle,greeting:e.greeting,launcherColor:PM(e.launcherColor),launcherIcon:e.launcherIcon?Fu(e.launcherIcon):"",launcherPosition:vM(e.launcherPosition),launcherLabel:e.launcherLabel??"",showOnPhones:e.showOnPhones!==!1}}var EM=hJ({chat:Bu,setChat:()=>{},setSelected:()=>{},setSelectHandler:()=>{}});function EBe({children:e,chat:o=Bu,onChatChange:t}){let[r,a]=SJ(!1),n=IJ(d=>t?.(d),[t]),{select:s,setSelectHandler:l}=wJ(),i=yJ(()=>({selected:()=>r?OM:null,select:d=>d===OM&&s()}),[r,s]);return TM(EM.Provider,{value:{chat:o,setChat:n,setSelected:a,setSelectHandler:l},children:TM(bJ.Provider,{value:i,children:e})})}var Lu=()=>gJ(EM);import{jsx as Ey}from"react/jsx-runtime";import{DesktopIcon as CJ,PhoneIcon as kJ,TabletIcon as vJ}from"efficient-easel/icons";import{VIEW_TIERS as PJ,VIEW_TIER_LABEL as TJ}from"efficient-easel/draw";var OJ={desktop:Ey(CJ,{}),tablet:Ey(vJ,{}),mobile:Ey(kJ,{})},_M=PJ.map(e=>({id:e,get label(){return f(TJ[e])},icon:OJ[e]}));import{PreviewDeviceContext as $re}from"efficient-easel/draw/client";import{jsx as EJ}from"react/jsx-runtime";import{createContext as _J,useCallback as AM,useContext as AJ,useMemo as FJ,useRef as BJ}from"react";var LJ=Object.fromEntries(Of.map(e=>[e,{value:"",error:null}])),FM=_J({links:IT,rows:LJ,canSave:!1,saveLink:async()=>({ok:!1,error:"There is no website to save to."}),openPanel:()=>{},setOpenHandler:()=>{}});function HBe({children:e,value:o}){let t=BJ(()=>{}),r=AM(()=>t.current(),[]),a=AM(s=>{t.current=s},[]),n=FJ(()=>({...o,openPanel:r,setOpenHandler:a}),[o,r,a]);return EJ(FM.Provider,{value:n,children:e})}var Pi=()=>AJ(FM);import{jsx as RJ}from"react/jsx-runtime";import{createContext as DJ,useContext as NJ,useMemo as MJ,useState as HJ}from"react";var BM=DJ(null);function UBe({children:e}){let[o,t]=HJ(null),r=MJ(()=>({surface:o,setSurface:t}),[o]);return RJ(BM.Provider,{value:r,children:e})}function LM(){return NJ(BM)??{surface:null,setSurface:()=>{}}}import{createPreviewSelectionContext as WJ}from"efficient-easel/draw/client";var{Provider:KBe,useSelection:Ru}=WJ("selectedHeroPart");import{jsx as we,jsxs as Gr,Fragment as Y2}from"react/jsx-runtime";import{useEasel as uoe,useRootFields as moe}from"efficient-easel/easel";import{EmptyState as xoe}from"efficient-shell/ui";function RM({kind:e,pageName:o}){return{name:o?.trim()||f("This page"),kindLabel:hf({kind:e})?f("Template"):f("Page")}}import{headWords as Q2,InspectorHead as hoe,InspectorIconButton as X2}from"efficient-easel/chrome";import{DuplicateIcon as Ioe,TrashIcon as goe}from"efficient-easel/icons";import{panelFieldsOf as yoe}from"efficient-easel/screen/lib/document/panel-fields";import{jsx as D,Fragment as ce,jsxs as ue}from"react/jsx-runtime";import{BlockBannerIcon as UJ,BlockBoxIcon as jJ,BlockButtonIcon as GJ,BlockDividerIcon as NM,BlockFooterIcon as MM,BlockHeadingIcon as KJ,BlockProductIcon as qJ,BlockSocialIcon as VJ,BlockTextIcon as YJ,CardPaymentIcon as XJ,ChatIcon as JJ,AccountIcon as ZJ,GlobeIcon as QJ,GridIcon as eZ,ImageIcon as Ay,MapIcon as oZ,MediaIcon as tZ,PageIcon as rZ}from"efficient-easel/icons";import{jsx as _y,Fragment as $J,jsxs as zJ}from"react/jsx-runtime";var DM=zJ($J,{children:[_y("circle",{cx:"9",cy:"20",r:"1.3"}),_y("circle",{cx:"18",cy:"20",r:"1.3"}),_y("path",{d:"M2.5 3.5h3l2.3 11.3a1.6 1.6 0 0 0 1.6 1.3h8.1a1.6 1.6 0 0 0 1.6-1.2L21 7H6"})]});var aZ={header:ue(ce,{children:[D("rect",{x:"3",y:"5",width:"18",height:"14",rx:"2"}),D("path",{d:"M3 9.5h18"})]}),social:ue(ce,{children:[D("circle",{cx:"6",cy:"12",r:"2.5"}),D("circle",{cx:"18",cy:"6",r:"2.5"}),D("circle",{cx:"18",cy:"18",r:"2.5"}),D("path",{d:"M8.2 10.8l7.6-3.6M8.2 13.2l7.6 3.6"})]}),ticker:ue(ce,{children:[D("rect",{x:"3",y:"8.5",width:"18",height:"7",rx:"2"}),D("path",{d:"M6 12h3.5M11.5 12h2M15.5 12h2.5"})]}),FooterLogo:ue(ce,{children:[D("path",{d:"M4 15.5h6M4 18h4"}),D("path",{d:"M14 8.5l3 7 3-7"})]}),FooterMenu:D("path",{d:"M6 7h12M6 11h12M6 15h8M6 19h8"}),FooterGroup:ue(ce,{children:[D("rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",strokeDasharray:"3 2.5"}),D("path",{d:"M8 9h8M8 13h8M8 16h5"})]}),FooterText:D("path",{d:"M5 7h14M5 12h14M5 17h9"}),FooterEmailSignup:ue(ce,{children:[D("rect",{x:"3",y:"6",width:"18",height:"12",rx:"2"}),D("path",{d:"M3.5 7l8.5 6 8.5-6"})]}),SearchBlock:ue(ce,{children:[D("circle",{cx:"11",cy:"11",r:"6"}),D("path",{d:"M20 20l-4.2-4.2"})]}),CartBlock:DM,CountrySwitchBlock:ue(ce,{children:[D("circle",{cx:"12",cy:"12",r:"8.5"}),D("path",{d:"M3.5 12h17M12 3.5c2.6 2.4 3.6 5.2 3.6 8.5s-1 6.1-3.6 8.5M12 3.5c-2.6 2.4-3.6 5.2-3.6 8.5s1 6.1 3.6 8.5"})]}),ThemeSwitchBlock:ue(ce,{children:[D("circle",{cx:"12",cy:"12",r:"8.5"}),D("path",{d:"M12 3.5v17M12 5.5l6 6M12 10.5l5.2 5.2M12 15.5l2.8 2.8"})]}),LegalLineBlock:ue(ce,{children:[D("path",{d:"M3 9h18"}),D("path",{d:"M3 14h8M14 14h2M18 14h3"})]}),Hero:ue(ce,{children:[D("rect",{x:"3",y:"4",width:"18",height:"16",rx:"2"}),D("path",{d:"M7 13.5h7M7 16.5h10"})]}),HeroSlide:ue(ce,{children:[D("rect",{x:"3",y:"5",width:"18",height:"14",rx:"2"}),D("path",{d:"M7 15h6M16 9.5h.01M9.5 12l-2.5 3"})]}),HeroSingle:ue(ce,{children:[D("rect",{x:"3",y:"4",width:"18",height:"16",rx:"2"}),D("path",{d:"M10.5 8.5l4 2.5-4 2.5z"}),D("path",{d:"M7 17h7"})]}),Collections:ue(ce,{children:[D("rect",{x:"3",y:"5",width:"4.6",height:"14",rx:"1.3"}),D("rect",{x:"9.7",y:"5",width:"4.6",height:"14",rx:"1.3"}),D("rect",{x:"16.4",y:"5",width:"4.6",height:"14",rx:"1.3"})]}),CollectionCard:ue(ce,{children:[D("rect",{x:"6",y:"4",width:"12",height:"16",rx:"2"}),D("path",{d:"M9 15h6M9 17.5h4"})]}),AlloyWheelsListing:ue(ce,{children:[D("path",{d:"M3 5h5M3 9h5M3 13h5M3 17h5"}),D("rect",{x:"11.5",y:"5",width:"4.2",height:"5",rx:"1"}),D("rect",{x:"17.3",y:"5",width:"4.2",height:"5",rx:"1"}),D("rect",{x:"11.5",y:"12",width:"4.2",height:"5",rx:"1"}),D("rect",{x:"17.3",y:"12",width:"4.2",height:"5",rx:"1"})]}),CatalogFilterBar:ue(ce,{children:[D("path",{d:"M3 7h9M15.5 7H21"}),D("circle",{cx:"13.5",cy:"7",r:"1.7"}),D("path",{d:"M3 12h4M10.5 12H21"}),D("circle",{cx:"8.5",cy:"12",r:"1.7"}),D("path",{d:"M3 17h9M15.5 17H21"}),D("circle",{cx:"13.5",cy:"17",r:"1.7"})]}),ProductGrid:ue(ce,{children:[D("rect",{x:"3",y:"5",width:"4.8",height:"6",rx:"1"}),D("rect",{x:"9.6",y:"5",width:"4.8",height:"6",rx:"1"}),D("rect",{x:"16.2",y:"5",width:"4.8",height:"6",rx:"1"}),D("rect",{x:"3",y:"13",width:"4.8",height:"6",rx:"1"}),D("rect",{x:"9.6",y:"13",width:"4.8",height:"6",rx:"1"}),D("rect",{x:"16.2",y:"13",width:"4.8",height:"6",rx:"1"})]}),RelatedProducts:ue(ce,{children:[D("path",{d:"M3 5h10"}),D("rect",{x:"3",y:"9.5",width:"5",height:"9",rx:"1"}),D("rect",{x:"9.5",y:"9.5",width:"5",height:"9",rx:"1"}),D("rect",{x:"16",y:"9.5",width:"5",height:"9",rx:"1"})]}),Gallery:ue(ce,{children:[D("rect",{x:"3",y:"4",width:"11",height:"16",rx:"2"}),D("rect",{x:"15.5",y:"4",width:"5.5",height:"7.5",rx:"1.5"}),D("rect",{x:"15.5",y:"12.5",width:"5.5",height:"7.5",rx:"1.5"})]}),GalleryB:ue(ce,{children:[D("rect",{x:"3.5",y:"4",width:"7.5",height:"7.5",rx:"1.5"}),D("rect",{x:"13",y:"4",width:"7.5",height:"7.5",rx:"1.5"}),D("rect",{x:"3.5",y:"12.5",width:"7.5",height:"7.5",rx:"1.5"}),D("rect",{x:"13",y:"12.5",width:"7.5",height:"7.5",rx:"1.5"})]}),GalleryItem:ue(ce,{children:[D("rect",{x:"4",y:"5",width:"16",height:"14",rx:"2"}),D("circle",{cx:"9",cy:"10",r:"1.6"}),D("path",{d:"M20 15.5l-4.5-4L7 19"})]}),Events:ue(ce,{children:[D("rect",{x:"4",y:"5",width:"16",height:"15",rx:"2"}),D("path",{d:"M4 9.5h16M8.5 3v4M15.5 3v4M8 14h2M14 14h2"})]}),PostCard:ue(ce,{children:[D("rect",{x:"4",y:"3.5",width:"16",height:"17",rx:"2"}),D("rect",{x:"6.5",y:"6",width:"11",height:"6",rx:"1"}),D("path",{d:"M6.5 14.5h11M6.5 17.5h7"})]}),Manifesto:ue(ce,{children:[D("path",{d:"M7 8h3.2v4c0 1.6-1 2.6-3 3.2"}),D("path",{d:"M14 8h3.2v4c0 1.6-1 2.6-3 3.2"})]}),Stats:ue(ce,{children:[D("path",{d:"M3.5 20h17"}),D("path",{d:"M6 20v-7M11 20V7M16 20v-5M20.5 20v-9"})]}),Logos:ue(ce,{children:[D("circle",{cx:"6",cy:"12",r:"2.6"}),D("rect",{x:"10",y:"9.4",width:"5.2",height:"5.2",rx:"1.2"}),D("path",{d:"M19 9.2l2.4 5h-4.8z"})]}),Ticker:ue(ce,{children:[D("rect",{x:"3",y:"8.5",width:"18",height:"7",rx:"2"}),D("path",{d:"M6 12h3.5M11.5 12h2M15.5 12h2.5"})]}),SectionHeader:ue(ce,{children:[D("rect",{x:"3.5",y:"6",width:"5",height:"5",rx:"1.2"}),D("path",{d:"M11 8.5h9M3.5 15.5h17"})]}),IntroBleed:ue(ce,{children:[D("rect",{x:"3",y:"4",width:"18",height:"16",rx:"2"}),D("path",{d:"M3 13.5h18M7 16.8h6"})]}),Split:ue(ce,{children:[D("rect",{x:"3",y:"5",width:"8",height:"14",rx:"1.5"}),D("path",{d:"M14 8.5h6M14 12h6M14 15.5h4"})]}),Eyebrow:ue(ce,{children:[D("path",{d:"M4 8.5h4.5M11 8.5h9"}),D("path",{d:"M4 14.5h16"})]}),HeroGroup:ue(ce,{children:[D("rect",{x:"3.5",y:"4.5",width:"17",height:"15",rx:"2"}),D("path",{d:"M7 9h8M7 12.5h10M7 16h6"})]}),Form:ue(ce,{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(ce,{children:D("path",{d:"M12 3.5l7.5 3.2v5.1c0 4.2-3.2 7.1-7.5 8.7-4.3-1.6-7.5-4.5-7.5-8.7V6.7z"})}),Spacer:ue(ce,{children:[D("path",{d:"M12 4v6M9.5 6.5L12 4l2.5 2.5M12 20v-6M9.5 17.5L12 20l2.5-2.5"}),D("path",{d:"M5 13h14",strokeDasharray:"2 2.5"})]}),ContactRouting:ue(ce,{children:[D("rect",{x:"3",y:"4",width:"5",height:"5",rx:"1"}),D("rect",{x:"9.5",y:"4",width:"5",height:"5",rx:"1"}),D("rect",{x:"16",y:"4",width:"5",height:"5",rx:"1"}),D("path",{d:"M4 13.5h11M4 17.5h7"}),D("path",{d:"M17 15l3 2-3 2"})]}),Contents:ue(ce,{children:[D("path",{d:"M4 7h2M4 12h2M4 17h2"}),D("path",{d:"M9 7h11M9 12h9M9 17h10"})]}),ListSearch:ue(ce,{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"})},nZ=D("rect",{x:"4",y:"4",width:"16",height:"16",rx:"2.5"}),sZ={footer:MM,Footer:MM,Divider:NM,FooterDivider:NM,Banner:UJ,Flex:jJ,FooterSocial:VJ,FooterPayment:XJ,page:rZ,website:QJ,AccountBlock:ZJ,chat:JJ,Heading:KJ,Text:YJ,ImageBlock:Ay,ButtonBlock:GJ,LocationMap:oZ,Grid:eZ,ProductRef:qJ,heroMedia:tZ,heroImage:Ay,heroImage2:Ay},lZ={MenuBlock:"FooterMenu",EmailFormBlock:"FooterEmailSignup",SocialLogosBlock:"FooterSocial",PaymentLogosBlock:"FooterPayment",SiteHeader:"header",SiteFooter:"footer"};function $a({type:e,size:o=16,className:t}){let r=lZ[e]??e,a=sZ[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:aZ[r]??nZ})}import{PanelHideButton as J2}from"efficient-easel/screen/components/SidePanelHead";import{useEaselSession as Soe}from"efficient-easel/screen/lib/session-context";import{jsx as be,jsxs as Ti,Fragment as iZ}from"react/jsx-runtime";import{useEffect as dZ,useId as HM,useState as fZ}from"react";import{IconPicker as cZ}from"efficient-shell/ui";import{SettingsDefaultReset as pZ,SettingsField as Oi,SettingsSegmented as uZ,SettingsSwitch as WM}from"efficient-easel/panel";import{ButtonIcon as mZ,ButtonIconIcon as xZ,EyeIcon as hZ,PhoneIcon as IZ,PlacementIcon as gZ,TypeIcon as yZ}from"efficient-easel/icons";var SZ="Chat with us",bZ="We usually reply within a few minutes",wZ="Hi! Ask us anything \u2014 about a wheel, an order, or fitment. Leave your details and we\u2019ll reply.";function Du({label:e,value:o,placeholder:t,onCommit:r,multiline:a=!1,hint:n}){let[s,l]=fZ(o);dZ(()=>l(o),[o]);let i=()=>{s!==o&&r(s)};return be(Oi,{label:e,icon:be(yZ,{}),changed:o!=="",action:be(Ei,{label:e,changed:o!=="",onReset:()=>r("")}),hint:n,children:a?be("textarea",{value:s,placeholder:t,rows:3,onChange:d=>l(d.target.value),onBlur:i,"aria-label":e}):be("input",{type:"text",value:s,placeholder:t,onChange:d=>l(d.target.value),onBlur:i,onKeyDown:d=>{d.key==="Enter"&&d.currentTarget.blur()},"aria-label":e,autoComplete:"off"})})}function Ei({label:e,changed:o,onReset:t}){return be(pZ,{words:jw()?.panel,label:e,changed:o,onReset:t})}function CZ({label:e,icon:o,checked:t,fallback:r,onChange:a,hint:n}){let s=HM();return be(Oi,{label:e,labelId:s,icon:o,changed:t!==r,action:Ti("span",{className:"inline-flex items-center gap-2",children:[be(WM,{checked:t,onChange:a,ariaLabelledBy:s}),be(Ei,{label:e,changed:t!==r,onReset:()=>a(r)})]}),hint:n})}var kZ=Au.map(e=>({value:e,icon:MP(e)}));function vZ(){let{theme:e}=vo(),o=Zt(e).themes[0];return kw(o)??o?.accent??""}function $M(){let{chat:e,setChat:o}=Lu(),t=HM(),r=vZ(),a=e.launcherIcon?Fu(e.launcherIcon):bs;return Ti(iZ,{children:[be(Oi,{label:f("Show the chat bubble"),labelId:t,icon:be(hZ,{}),changed:!e.enabled,action:Ti("span",{className:"inline-flex items-center gap-2",children:[be(WM,{checked:e.enabled,onChange:n=>o({enabled:n}),ariaLabelledBy:t}),be(Ei,{label:f("Show the chat bubble"),changed:!e.enabled,onReset:()=>o({enabled:!0})})]}),hint:e.enabled?f("The floating chat bubble shows in the corner of every page."):f("The chat bubble is hidden across the whole site.")}),Ti(Px,{title:f("Look"),children:[be(WP,{label:f("Button color"),icon:be(mZ,{}),changed:e.launcherColor!=="",value:e.launcherColor,inherited:r,caption:e.launcherColor?void 0:f("Site button color"),onChange:n=>o({launcherColor:n}),onReset:()=>o({launcherColor:""})}),be(Oi,{label:f("Icon"),icon:be(xZ,{}),value:be(OP,{value:a}),changed:a!==bs,action:be(Ei,{label:f("Icon"),changed:a!==bs,onReset:()=>o({launcherIcon:""})}),children:be(cZ,{label:f("Icon"),value:a,options:kZ,onChange:n=>o({launcherIcon:n===bs?"":n})})}),be(Oi,{label:f("Position"),icon:be(gZ,{}),changed:e.launcherPosition!==Wa,action:be(Ei,{label:f("Position"),changed:e.launcherPosition!==Wa,onReset:()=>o({launcherPosition:Wa})}),children:be(uZ,{options:[{label:f("Right"),id:"right"},{label:f("Left"),id:"left"}],value:e.launcherPosition,ariaLabel:f("Position"),onChange:n=>o({launcherPosition:n})})}),be(Du,{label:f("Label"),value:e.launcherLabel,placeholder:f("Icon only"),onCommit:n=>o({launcherLabel:n}),hint:f("Shows when a visitor points at the button")}),be(CZ,{label:f("Show on phones"),icon:be(IZ,{}),checked:e.showOnPhones,fallback:Bu.showOnPhones,onChange:n=>o({showOnPhones:n})})]}),Ti(Px,{title:f("Wording"),children:[be(Du,{label:f("Title"),value:e.title,placeholder:SZ,onCommit:n=>o({title:n})}),be(Du,{label:f("Subtitle"),value:e.subtitle,placeholder:bZ,onCommit:n=>o({subtitle:n})}),be(Du,{label:f("Greeting message"),value:e.greeting,placeholder:wZ,onCommit:n=>o({greeting:n}),multiline:!0}),be("p",{className:"es-field-hint",children:f("Leave a field blank to use the built-in wording.")})]})]})}import{jsx as za,Fragment as Qy,jsxs as KM}from"react/jsx-runtime";import{useEffect as oQ,useId as jM,useState as GM}from"react";import{SettingsField as tQ}from"efficient-easel/panel";import{jsx as KZ}from"react/jsx-runtime";import{forwardRef as PZ,createElement as Fy}from"react";var zM={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=PZ(({color:n="currentColor",size:s=24,stroke:l=2,title:i,className:d,children:c,...x},m)=>Fy("svg",{ref:m,...zM[e],width:s,height:s,className:["tabler-icon",`tabler-icon-${o}`,d].filter(Boolean).join(" "),...e==="filled"?{fill:n}:{strokeWidth:l,stroke:n},...x},[i&&Fy("title",{key:"svg-title"},i),...r.map(([h,I])=>Fy(h,I)),...Array.isArray(c)?c:[c]]));return a.displayName=`${t}`,a};var TZ=[["path",{d:"M7 10v4h3v7h4v-7h3l1 -4h-4v-2a1 1 0 0 1 1 -1h3v-4h-3a5 5 0 0 0 -5 5v2h-3",key:"svg-0"}]],By=ne("outline","brand-facebook","BrandFacebook",TZ);var OZ=[["path",{d:"M3 7a4 4 0 0 1 4 -4h10a4 4 0 0 1 4 4v10a4 4 0 0 1 -4 4h-10a4 4 0 0 1 -4 -4l0 -10",key:"svg-0"}],["path",{d:"M8.5 12a3.5 3.5 0 1 0 7 0a3.5 3.5 0 0 0 -7 0",key:"svg-1"}],["path",{d:"M17 7v.01",key:"svg-2"}]],Ly=ne("outline","brand-instagram","BrandInstagram",OZ);var EZ=[["path",{d:"M21 10.663c0 -4.224 -4.041 -7.663 -9 -7.663s-9 3.439 -9 7.663c0 3.783 3.201 6.958 7.527 7.56c1.053 .239 .932 .644 .696 2.133c-.039 .238 -.184 .932 .777 .512c.96 -.42 5.18 -3.201 7.073 -5.48c1.304 -1.504 1.927 -3.029 1.927 -4.715v-.01",key:"svg-0"}]],Ry=ne("outline","brand-line","BrandLine",EZ);var _Z=[["path",{d:"M8 11v5",key:"svg-0"}],["path",{d:"M8 8v.01",key:"svg-1"}],["path",{d:"M12 16v-5",key:"svg-2"}],["path",{d:"M16 16v-3a2 2 0 1 0 -4 0",key:"svg-3"}],["path",{d:"M3 7a4 4 0 0 1 4 -4h10a4 4 0 0 1 4 4v10a4 4 0 0 1 -4 4h-10a4 4 0 0 1 -4 -4l0 -10",key:"svg-4"}]],Dy=ne("outline","brand-linkedin","BrandLinkedin",_Z);var AZ=[["path",{d:"M8 20l4 -9",key:"svg-0"}],["path",{d:"M10.7 14c.437 1.263 1.43 2 2.55 2c2.071 0 3.75 -1.554 3.75 -4a5 5 0 1 0 -9.7 1.7",key:"svg-1"}],["path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 1 0 -18 0",key:"svg-2"}]],Ny=ne("outline","brand-pinterest","BrandPinterest",AZ);var FZ=[["path",{d:"M15 10l-4 4l6 6l4 -16l-18 7l4 2l2 6l3 -4",key:"svg-0"}]],My=ne("outline","brand-telegram","BrandTelegram",FZ);var BZ=[["path",{d:"M21 7.917v4.034a9.948 9.948 0 0 1 -5 -1.951v4.5a6.5 6.5 0 1 1 -8 -6.326v4.326a2.5 2.5 0 1 0 4 2v-11.5h4.083a6.005 6.005 0 0 0 4.917 4.917",key:"svg-0"}]],Hy=ne("outline","brand-tiktok","BrandTiktok",BZ);var LZ=[["path",{d:"M16.5 10c3.038 0 5.5 2.015 5.5 4.5c0 1.397 -.778 2.645 -2 3.47l0 2.03l-1.964 -1.178a6.649 6.649 0 0 1 -1.536 .178c-3.038 0 -5.5 -2.015 -5.5 -4.5s2.462 -4.5 5.5 -4.5",key:"svg-0"}],["path",{d:"M11.197 15.698c-.69 .196 -1.43 .302 -2.197 .302a8.008 8.008 0 0 1 -2.612 -.432l-2.388 1.432v-2.801c-1.237 -1.082 -2 -2.564 -2 -4.199c0 -3.314 3.134 -6 7 -6c3.782 0 6.863 2.57 7 5.785l0 .233",key:"svg-1"}],["path",{d:"M10 8h.01",key:"svg-2"}],["path",{d:"M7 8h.01",key:"svg-3"}],["path",{d:"M15 14h.01",key:"svg-4"}],["path",{d:"M18 14h.01",key:"svg-5"}]],Wy=ne("outline","brand-wechat","BrandWechat",LZ);var RZ=[["path",{d:"M3 21l1.65 -3.8a9 9 0 1 1 3.4 2.9l-5.05 .9",key:"svg-0"}],["path",{d:"M9 10a.5 .5 0 0 0 1 0v-1a.5 .5 0 0 0 -1 0v1a5 5 0 0 0 5 5h1a.5 .5 0 0 0 0 -1h-1a.5 .5 0 0 0 0 1",key:"svg-1"}]],$y=ne("outline","brand-whatsapp","BrandWhatsapp",RZ);var DZ=[["path",{d:"M4 4l11.733 16h4.267l-11.733 -16l-4.267 0",key:"svg-0"}],["path",{d:"M4 20l6.768 -6.768m2.46 -2.46l6.772 -6.772",key:"svg-1"}]],zy=ne("outline","brand-x","BrandX",DZ);var NZ=[["path",{d:"M2 8a4 4 0 0 1 4 -4h12a4 4 0 0 1 4 4v8a4 4 0 0 1 -4 4h-12a4 4 0 0 1 -4 -4v-8",key:"svg-0"}],["path",{d:"M10 9l5 3l-5 3l0 -6",key:"svg-1"}]],Uy=ne("outline","brand-youtube","BrandYoutube",NZ);var MZ=[["path",{d:"M18 2a1 1 0 0 1 .993 .883l.007 .117v4a1 1 0 0 1 -.883 .993l-.117 .007h-3v1h3a1 1 0 0 1 .991 1.131l-.02 .112l-1 4a1 1 0 0 1 -.858 .75l-.113 .007h-2v6a1 1 0 0 1 -.883 .993l-.117 .007h-4a1 1 0 0 1 -.993 -.883l-.007 -.117v-6h-2a1 1 0 0 1 -.993 -.883l-.007 -.117v-4a1 1 0 0 1 .883 -.993l.117 -.007h2v-1a6 6 0 0 1 5.775 -5.996l.225 -.004h3z",key:"svg-0"}]],jy=ne("filled","brand-facebook-filled","BrandFacebookFilled",MZ);var HZ=[["path",{d:"M16 3a5 5 0 0 1 5 5v8a5 5 0 0 1 -5 5h-8a5 5 0 0 1 -5 -5v-8a5 5 0 0 1 5 -5zm-4 5a4 4 0 0 0 -3.995 3.8l-.005 .2a4 4 0 1 0 4 -4m4.5 -1.5a1 1 0 0 0 -.993 .883l-.007 .127a1 1 0 0 0 1.993 .117l.007 -.127a1 1 0 0 0 -1 -1",key:"svg-0"}]],Gy=ne("filled","brand-instagram-filled","BrandInstagramFilled",HZ);var WZ=[["path",{d:"M17 2a5 5 0 0 1 5 5v10a5 5 0 0 1 -5 5h-10a5 5 0 0 1 -5 -5v-10a5 5 0 0 1 5 -5zm-9 8a1 1 0 0 0 -1 1v5a1 1 0 0 0 2 0v-5a1 1 0 0 0 -1 -1m6 0a3 3 0 0 0 -1.168 .236l-.125 .057a1 1 0 0 0 -1.707 .707v5a1 1 0 0 0 2 0v-3a1 1 0 0 1 2 0v3a1 1 0 0 0 2 0v-3a3 3 0 0 0 -3 -3m-6 -3a1 1 0 0 0 -.993 .883l-.007 .127a1 1 0 0 0 1.993 .117l.007 -.127a1 1 0 0 0 -1 -1",key:"svg-0"}]],Ky=ne("filled","brand-linkedin-filled","BrandLinkedinFilled",WZ);var $Z=[["path",{d:"M17 3.34a10 10 0 0 1 -8.512 18.023l2.364 -5.315a3.5 3.5 0 0 0 2.398 .952c2.708 0 4.75 -2.089 4.75 -5a6 6 0 1 0 -11.64 2.041a1 1 0 1 0 1.88 -.682a4 4 0 1 1 7.76 -1.36c0 1.818 -1.156 3.001 -2.75 3.001c-.609 0 -1.153 -.361 -1.478 -1.022l1.142 -2.572a1 1 0 0 0 -1.828 -.812l-4.392 9.882a10 10 0 0 1 -4.694 -8.476l.005 -.324a10 10 0 0 1 14.995 -8.336",key:"svg-0"}]],qy=ne("filled","brand-pinterest-filled","BrandPinterestFilled",$Z);var zZ=[["path",{d:"M16.083 2h-4.083a1 1 0 0 0 -1 1v11.5a1.5 1.5 0 1 1 -2.519 -1.1l.12 -.1a1 1 0 0 0 .399 -.8v-4.326a1 1 0 0 0 -1.23 -.974a7.5 7.5 0 0 0 1.73 14.8l.243 -.005a7.5 7.5 0 0 0 7.257 -7.495v-2.7l.311 .153c1.122 .53 2.333 .868 3.59 .993a1 1 0 0 0 1.099 -.996v-4.033a1 1 0 0 0 -.834 -.986a5.005 5.005 0 0 1 -4.097 -4.096a1 1 0 0 0 -.986 -.835z",key:"svg-0"}]],Vy=ne("filled","brand-tiktok-filled","BrandTiktokFilled",zZ);var UZ=[["path",{d:"M18.497 4.409a10 10 0 0 1 -10.36 16.828l-.223 -.098l-4.759 .849l-.11 .011a1 1 0 0 1 -.11 0l-.102 -.013l-.108 -.024l-.105 -.037l-.099 -.047l-.093 -.058l-.014 -.011l-.012 -.007l-.086 -.073l-.077 -.08l-.067 -.088l-.056 -.094l-.034 -.07l-.04 -.108l-.028 -.128l-.012 -.102a1 1 0 0 1 0 -.125l.012 -.1l.024 -.11l.045 -.122l1.433 -3.304l-.009 -.014a10 10 0 0 1 1.549 -12.454l.215 -.203a10 10 0 0 1 13.226 -.217m-8.997 3.09a1.5 1.5 0 0 0 -1.5 1.5v1a6 6 0 0 0 6 6h1a1.5 1.5 0 0 0 0 -3h-1l-.144 .007a1.5 1.5 0 0 0 -1.128 .697l-.042 .074l-.022 -.007a4.01 4.01 0 0 1 -2.435 -2.435l-.008 -.023l.075 -.041a1.5 1.5 0 0 0 .704 -1.272v-1a1.5 1.5 0 0 0 -1.5 -1.5",key:"svg-0"}]],Yy=ne("filled","brand-whatsapp-filled","BrandWhatsappFilled",UZ);var jZ=[["path",{d:"M8.267 3a1 1 0 0 1 .73 .317l.076 .092l4.274 5.828l5.946 -5.944a1 1 0 0 1 1.497 1.32l-.083 .094l-6.163 6.162l6.262 8.54a1 1 0 0 1 -.697 1.585l-.109 .006h-4.267a1 1 0 0 1 -.73 -.317l-.076 -.092l-4.276 -5.829l-5.944 5.945a1 1 0 0 1 -1.497 -1.32l.083 -.094l6.161 -6.163l-6.26 -8.539a1 1 0 0 1 .697 -1.585l.109 -.006h4.267z",key:"svg-0"}]],Xy=ne("filled","brand-x-filled","BrandXFilled",jZ);var GZ=[["path",{d:"M18 3a5 5 0 0 1 5 5v8a5 5 0 0 1 -5 5h-12a5 5 0 0 1 -5 -5v-8a5 5 0 0 1 5 -5zm-9 6v6a1 1 0 0 0 1.514 .857l5 -3a1 1 0 0 0 0 -1.714l-5 -3a1 1 0 0 0 -1.514 .857z",key:"svg-0"}]],Jy=ne("filled","brand-youtube-filled","BrandYoutubeFilled",GZ);var ERe="outline",Nu={fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},qZ={},Zy={fillRule:"evenodd"},VZ=[["path",{...Nu,d:"M21 4L3 11L7 13L9 19L12 15L17 20z"}],["path",{...Zy,d:"M21 4L3 11L7 13L9 19L12 15L17 20zM15.212 8.939 10.576 13.576 11.424 14.424 16.061 9.788z"}]],YZ=[["path",{...Nu,d:["M21 10.663c0 -4.224 -4.041 -7.663 -9 -7.663s-9 3.439 -9 7.663","c0 3.783 3.201 6.958 7.527 7.56c1.053 .239 .932 .644 .696 2.133","c-.039 .238 -.184 .932 .777 .512c.96 -.42 5.18 -3.201 7.073 -5.48","c1.304 -1.504 1.927 -3.029 1.927 -4.715v-.01z"].join("")}],["path",{...qZ,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("")}]],XZ=[["path",{...Nu,d:["M16.5 10c3.038 0 5.5 2.015 5.5 4.5c0 1.397 -.778 2.645 -2 3.47l0 2.03l-1.964 -1.178","a6.649 6.649 0 0 1 -1.536 .178c-3.038 0 -5.5 -2.015 -5.5 -4.5s2.462 -4.5 5.5 -4.5z"].join("")}],["path",{...Nu,d:["M8.319 15.972L7.84 15.918L7.349 15.832L6.865 15.715L6.388 15.568L4 17L4 14.199","L3.559 13.775L3.197 13.356L2.877 12.91L2.603 12.439L2.376 11.946L2.201 11.433","L2.079 10.902L2.016 10.405L2.001 9.897L2.036 9.386L2.12 8.889L2.25 8.405L2.425 7.937","L2.642 7.486L2.9 7.055L3.195 6.645L3.459 6.333L3.744 6.037L4.05 5.757L4.377 5.495","L4.723 5.25L5.086 5.025L5.467 4.819L5.864 4.634L6.275 4.471L6.701 4.331L7.139 4.214","L7.589 4.122L8.05 4.055L8.521 4.014L9.352 4.007L9.815 4.04L10.269 4.098L10.713 4.181","L11.146 4.287L11.567 4.416L11.975 4.567L12.369 4.739L12.748 4.932L13.112 5.143","L13.459 5.374L13.788 5.622L14.172 5.956L14.458 6.241L14.722 6.542L14.965 6.856","L15.217 7.237A8.35 7.35 0 0 0 8.319 15.972z"].join("")}],["path",{...Zy,d:["M8.319 15.972L7.84 15.918L7.349 15.832L6.865 15.715L6.388 15.568L4 17L4 14.199","L3.559 13.775L3.197 13.356L2.877 12.91L2.603 12.439L2.376 11.946L2.201 11.433","L2.079 10.902L2.016 10.405L2.001 9.897L2.036 9.386L2.12 8.889L2.25 8.405L2.425 7.937","L2.642 7.486L2.9 7.055L3.195 6.645L3.459 6.333L3.744 6.037L4.05 5.757L4.377 5.495","L4.723 5.25L5.086 5.025L5.467 4.819L5.864 4.634L6.275 4.471L6.701 4.331L7.139 4.214","L7.589 4.122L8.05 4.055L8.521 4.014L9.352 4.007L9.815 4.04L10.269 4.098L10.713 4.181","L11.146 4.287L11.567 4.416L11.975 4.567L12.369 4.739L12.748 4.932L13.112 5.143","L13.459 5.374L13.788 5.622L14.172 5.956L14.458 6.241L14.722 6.542L14.965 6.856","L15.217 7.237A8.35 7.35 0 0 0 8.319 15.972zM5.25 7.9a0.85 0.85 0 1 0 1.7 0","a0.85 0.85 0 1 0 -1.7 0zM8.25 7.9a0.85 0.85 0 1 0 1.7 0a0.85 0.85 0 1 0 -1.7 0z"].join("")}],["path",{...Zy,d:["M16.5 10c3.038 0 5.5 2.015 5.5 4.5c0 1.397 -.778 2.645 -2 3.47l0 2.03l-1.964 -1.178","a6.649 6.649 0 0 1 -1.536 .178c-3.038 0 -5.5 -2.015 -5.5 -4.5s2.462 -4.5 5.5 -4.5z","M14.15 14a0.85 0.85 0 1 0 1.7 0a0.85 0.85 0 1 0 -1.7 0zM17.15 14","a0.85 0.85 0 1 0 1.7 0a0.85 0.85 0 1 0 -1.7 0z"].join("")}]],JZ=ne("filled","brand-telegram-filled","BrandTelegramFilled",VZ),ZZ=ne("filled","brand-line-filled","BrandLineFilled",YZ),QZ=ne("filled","brand-wechat-filled","BrandWechatFilled",XZ),eQ={instagram:{outline:Ly,solid:Gy},facebook:{outline:By,solid:jy},tiktok:{outline:Hy,solid:Vy},youtube:{outline:Uy,solid:Jy},x:{outline:zy,solid:Xy},linkedin:{outline:Dy,solid:Ky},pinterest:{outline:Ny,solid:qy},whatsapp:{outline:$y,solid:Yy},telegram:{outline:My,solid:JZ},line:{outline:Ry,solid:ZZ},wechat:{outline:Wy,solid:QZ}};function UM({platform:e,iconStyle:o,size:t}){let r=eQ[e][o];return KZ(r,{size:t,stroke:1.75,"aria-hidden":"true",focusable:"false"})}var rQ={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 aQ({platform:e}){let{rows:o,saveLink:t}=Pi(),{value:r,error:a}=o[e],[n,s]=GM(r),[l,i]=GM(!1),d=jM(),c=jM();oQ(()=>s(r),[r]);let x=async()=>{if(n.trim()===r){n!==r&&s(r);return}i(!0),await t(e,n),i(!1)},m=hT[e];return KM(Qy,{children:[za(tQ,{label:f(m),htmlFor:d,icon:za(UM,{platform:e,iconStyle:"outline",size:18}),children:za("input",{id:d,type:"text",inputMode:"url",value:n,placeholder:rQ[e],onChange:h=>s(h.target.value),onBlur:()=>{x()},onKeyDown:h=>{h.key==="Enter"&&h.currentTarget.blur(),h.key==="Escape"&&(s(r),h.currentTarget.blur())},"aria-invalid":a?!0:void 0,"aria-describedby":a?c:void 0,"aria-busy":l||void 0,autoComplete:"off",spellCheck:!1})}),a&&za("p",{id:c,className:"sf-note sf-note--error",role:"alert",children:a})]})}function qM({unavailable:e}){let{canSave:o}=Pi();return!o&&e?za(Qy,{children:e}):KM(Qy,{children:[za("p",{className:"es-field-hint",children:f("Paste a link to each profile. A platform left empty shows nothing on the site.")}),Of.map(t=>za(aQ,{platform:t},t))]})}import{jsx as Ga,Fragment as _Q,jsxs as AQ}from"react/jsx-runtime";import{useId as FQ,useMemo as BQ}from"react";import{useEasel as LQ}from"efficient-easel/easel";import{SettingsField as RQ,SettingsSwitch as DQ}from"efficient-easel/panel";import{EyeIcon as NQ}from"efficient-easel/icons";import{fieldShownInView as MQ}from"efficient-easel/fields";import{usePreviewDevice as HQ}from"efficient-easel/draw/client";import{ROOT_ZONE as WQ}from"efficient-easel/draw";import{jsx as ja,Fragment as lQ}from"react/jsx-runtime";import{createContext as iQ,useContext as dQ,useLayoutEffect as fQ,useMemo as YM,useRef as cQ,useState as XM}from"react";import{useEasel as JM,useSelectedFields as pQ}from"efficient-easel/easel";import{fieldShownInView as uQ,Inspector as mQ,LEAD_BAND_KEY as xQ,planFields as ZM}from"efficient-easel/fields";function VM({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 nQ}from"react/jsx-runtime";import{EmptyState as sQ}from"efficient-shell/ui";function Ua(){return nQ(sQ,{variant:"none",icon:!1,message:f("These settings apply to every view.")})}import{usePreviewDevice as hQ}from"efficient-easel/draw/client";import{deviceField as IQ}from"efficient-easel/screen/lib/document/device-fields";var gQ="Text",eS=new Map,Mu=new Set,yQ=Object.fromEntries(wi.map(e=>{let o=JP[e];return[e,ja(o,{},e)]})),QM=iQ(null),SQ={_partBody:IQ("each",{type:"custom",render:()=>ja(bQ,{})})};function bQ(){return ja(lQ,{children:dQ(QM)})}function Et({entries:e,entryCount:o=0,part:t=null,omit:r,motion:a,body:n,itemWord:s}){let{id:l,fields:i,values:d,readOnly:c,onChange:x}=pQ(),m=YM(()=>a?{...d,...a.values}:d,[d,a?.values]),h=(Y,xe)=>a?.keys.has(Y)?a.onChange(Y,xe):x(Y,xe),I=hQ(),{appState:C,config:P}=JM(Y=>Y),O=uP(I,P,C.data.content??[],C.ui.itemSelector),F=n===void 0?$E(i,t):SQ,v=YM(()=>{let Y=r?.length?Object.fromEntries(Object.entries(F).filter(([xe])=>!r.includes(xe))):F;return a?{...Y,...a.fields}:Y},[F,r,a?.fields]),y=gx(v,m,O),[b,E]=XM(()=>new Set(Mu)),B=uQ({},I),R={key:xQ,title:gQ},k=JM(Y=>Y.selectedItem)!==null,L=a?.part??t??"",g=`${l}:${L}:${String(I)}`,[w,T]=XM(()=>({tab:eS.get(g)})),S=`${l}:${L}`,M=cQ(null),N={...O,node:m},G=ZM(y,{values:m,context:N}).buckets,q=VM({allTabs:k,remembered:eS.get(g),inherited:M.current?.panel===S?M.current.tab:w.tab,buckets:G,hasText:B&&o>0}),le=!B&&!G.includes(q)&&(ZM(gx(v,m,{...O,device:"desktop"}),{values:m,context:{...N,device:"desktop"}}).buckets.includes(q)||q==="Design"&&o>0);fQ(()=>{M.current={panel:S,tab:q}});let ge=q==="Design";return ja(QM.Provider,{value:n??null,children:ja(aT.Provider,{value:a?m:null,children:ja(mQ,{fields:y,values:m,onChange:h,readOnly:c,allTabs:k,showWhenContext:N,context:{itemWord:s},tab:q,onTab:Y=>{eS.set(g,Y),T({tab:Y})},tabIcons:yQ,idPrefix:l,ariaLabel:f("Section settings"),lead:ge?e:null,leadFold:R,closedFolds:b,onFold:(Y,xe)=>{xe?Mu.delete(Y):Mu.add(Y),E(new Set(Mu))},children:le&&ja(Ua,{})})})})}import{useMemo as wQ}from"react";import{useEasel as CQ}from"efficient-easel/easel";import{useSectionOps as kQ}from"efficient-easel/screen/lib/document/use-section-ops";var e2=new Map,vQ=e=>{let o=e2.get(e);return o||e2.set(e,o=yu(Iu(e),`part:${e}`)),o},PQ=new Set(yh);function ws(e,o,t){let{getItemById:r,getSelectorForId:a}=CQ(c=>c),n=kQ(),s=r(e)?.props??{},l=ha(s,o),i=JSON.stringify(l),d=wQ(()=>Object.fromEntries(yh.map(c=>[c,l[c]])),[i]);return{part:o,fields:vQ(t),values:d,keys:PQ,onChange:(c,x)=>{let m=a(e),h=r(e);if(!m||!h)return;let I=hO(h.props??{},o,c,x);n.replaceComponent(m.zone,m.index,{...h,props:I})}}}import{Fragment as TQ,createElement as OQ}from"react";import{deviceField as oS}from"efficient-easel/screen/lib/document/device-fields";var So=()=>({type:"custom",render:()=>OQ(TQ)});var tS={words:So(),sourceNote:So(),style:So(),font:So(),italic:So(),fontSize:oS("each",So()),lineHeight:So(),letterSpacing:So(),paragraphSpacing:So(),padding:So(),align:oS("each",So()),letterCase:So(),fixedSizeHint:oS("each",So()),regionNote:So(),regionStyle:So()},EQ=["fontSize","align"];function o2(e){return EQ.includes(e)}var t2={showTicker:So(),items:So()};function r2({heroId:e}){let{appState:o,dispatch:t}=LQ(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=BQ(()=>{let h=n?.props.tickerItems;return Array.isArray(h)?h:T_.map(I=>({text:I}))},[n]),i=FQ(),d=HQ(),c=h=>MQ(t2[h],d),x=ws(e,O_,"block");if(!n)return Ga("p",{className:"sf-note",children:f("This ticker\u2019s hero is no longer on the page.")});let m=h=>t({type:"replace",destinationZone:WQ,destinationIndex:a,data:{...n,props:{...n.props,...h}}});return Ga(Et,{motion:x,body:AQ(_Q,{children:[!c("showTicker")&&!c("items")&&Ga(Ua,{}),c("showTicker")&&Ga(RQ,{label:f("Show ticker"),labelId:i,icon:Ga(NQ,{}),action:Ga(DQ,{checked:s,onChange:h=>m({showTicker:h}),ariaLabelledBy:i})}),c("items")&&Ga(dT,{label:Ex.label,icon:Ex.icon,items:l,placeholder:"item",onChange:h=>m({tickerItems:h}),markup:!0})]})})}import{jsx as Z,Fragment as Fi,jsxs as mt}from"react/jsx-runtime";import{useContext as eee,useEffect as rS,useRef as oee,useState as m2}from"react";import{FieldSelect as tee,InspectorField as ree,fieldShownInView as aee}from"efficient-easel/fields";import{InertHint as C2,SettingsField as nee}from"efficient-easel/panel";import{InspectorUpLevel as ju}from"efficient-easel/chrome";import{StylesIcon as see,TypeIcon as lee}from"efficient-easel/icons";import{useEasel as iee}from"efficient-easel/easel";import{TextPartPanel as x2}from"efficient-easel/copy";import{Button as dee,IconButton as fee,Tooltip as cee}from"efficient-shell/ui";import{jsx as s2,jsxs as $Q}from"react/jsx-runtime";import{DEFAULT_EASEL_STRINGS as zQ}from"efficient-easel/strings";import{COPY_CELLS as Cs,COPY_CELL_LENGTHS as a2,CopyBox as UQ,lengthCellUnits as jQ}from"efficient-easel/copy";import{PaddingYIcon as GQ}from"efficient-easel/icons";import{onDesktopWords as KQ}from"efficient-easel/screen/lib/document/box-fields";var n2=zQ.copy.cells,qQ={kind:"spacing"},VQ=["left","center","right","justify"];function Hu(e,o,t,r="desktop"){let a=cv(e),n=uv(r),s=e[n]??e.size??o.sizePx,l=mv(e,r),i=(c,x,m,h,I)=>{let C=tl[m];return jQ({preset:c,row:x,table:gf,unit:e[C],value:e[m],tier:r,styleValue:h,label:f(I),onPick:(P,O)=>t({[C]:P??null,[m]:O??null}),onChange:(P,O)=>t({...O?{[C]:O.unit??null}:{},[m]:P??null})})},d={key:"padding",name:f("Padding"),icon:s2(GQ,{}),unit:"px",step:lv,shiftStep:10,min:nv,max:sv};return[{...Cs.fontSize,key:"fontSize",value:e[n],styleValue:Math.round(o.sizePx),onChange:c=>t({[n]:c??null}),...i(Cs.fontSize,a2.fontSize,n,Math.round(o.sizePx),n2.fontSize),...n==="size"?{}:{reset:{detail:l?KQ(c=>f(c),`${l.px}px`,l.view):void 0}}},{...Cs.lineHeight,key:"lineHeight",value:a.lineHeight,styleValue:o.lineRatio,onChange:c=>t(c===void 0?{lineHeight:null,line:null}:{lineHeight:c})},{...Cs.letterSpacing,key:"letterSpacing",scale:s,value:a.letterSpacingEm,styleValue:o.letterEm,onChange:c=>t(c===void 0?{letterSpacing:null,letter:null}:{letterSpacing:c})},{...Cs.paragraphSpacing,key:"paragraphSpacing",value:e.paragraphSpacing,styleValue:0,onChange:c=>t({paragraphSpacing:c??null}),...i(Cs.paragraphSpacing,a2.paragraphSpacing,"paragraphSpacing",0,n2.paragraphSpacing)},{...d,value:e.padding,styleValue:o.paddingPx,onChange:c=>t({padding:c??null}),...i(d,qQ,"padding",o.paddingPx,"Padding")}]}function l2({text:e,onTextChange:o,multiline:t,markup:r=!0,styled:a=!0,style:n,base:s,setValue:l,colors:i,placeholder:d,ariaLabel:c,head:x,typedOnCanvas:m=!1}){let h=Hu(n,s,l),I=Kx(r,t);return $Q("div",{className:"sf-part-textbox",children:[x,s2(UQ,{value:e,onChange:o,multiline:t,placeholder:d,ariaLabel:c,rules:ad,tools:I,barShows:m?"focus":"always",colors:r?i:[],colorNameOf:Zd,align:a?{value:n.align??s.align,allow:VQ,onChange:C=>l({align:C})}:void 0,letterCase:a?{value:n.case==="capitalize"?"":n.case??"",onChange:C=>l({case:C||null})}:void 0,cells:a?h:void 0})]})}import{UiIcon as h2}from"efficient-easel/draw/client";import{jsx as Wu,Fragment as YQ,jsxs as XQ}from"react/jsx-runtime";import{Button as i2,Dialog as JQ}from"efficient-shell/ui";function d2({styleName:e,onCancel:o,onConfirm:t}){return Wu(JQ,{open:!0,onClose:o,role:"alertdialog",size:"sm",title:f("Update {style}?",{style:e}),footer:XQ(YQ,{children:[Wu(i2,{variant:"secondary",onClick:o,children:f("Cancel")}),Wu(i2,{variant:"primary",onClick:t,children:f("Update style")})]}),children:Wu("p",{children:f("Every text on the site that follows {style} changes to look like this one. This text\u2019s own changes are cleared, and it keeps following {style}.",{style:e})})})}import{ScreenDocumentContext as pee}from"efficient-easel/screen/components/ScreenDocumentContext";import{usePreviewDevice as uee}from"efficient-easel/draw/client";import{shownTier as zu}from"efficient-easel/screen/lib/document/device-fields";import{TEXT_FIELD_MARKER as mee,viewKeyAt as xee}from"efficient-easel/draw";import{useSectionOps as hee}from"efficient-easel/screen/lib/document/use-section-ops";import{useEaselHost as Iee}from"efficient-easel/screen/lib/host";function ZQ(e){let o=new Set([...Object.keys($(Ak,e)??{}),...$(Fk,e)??[]]);for(let[t,r]of Object.entries($(Lk,e)??{}))r.verb==="snapshot"&&o.add(t);return[...o].sort()}var QQ={CollectionCard:"product",FooterMenu:"menu",Gallery:"product",GalleryItem:"product",ProductGrid:"product",ProductHero:"product",SpecTable:"product",Events:"blog",FeaturedCover:"blog",LongRead:"blog",SubscribeBlogs:"blog"},f2={product:"Synced from the product.",blog:"Synced from the blog post.",menu:"Synced from the site menu."},c2="Open",p2={product:{type:"storefront-editor:open-product",needsSlug:!0},blog:{type:"storefront-editor:open-post",needsSlug:!0},menu:{type:"storefront-editor:open-menus",needsSlug:!1}};function ks(e){let o=e?.source?.slug;return uo(o)}function _i(e){return $(QQ,e)??null}function u2(e,o){let t=_i(e);return t&&ZQ(e).includes(o)?t:null}function $u(e){let o=e?.menu?.id;return uo(o)}function aS(e){return e?f(e):null}function I2(e){return e.kind==="role"?xm[e.role]:e.kind==="custom"?"Custom":null}function gee(e){let o=nb(e.role);return o?{kind:"role",role:o}:null}function yee(e,o){if(!e)return{kind:"unread"};let{faceRole:t,base:r}=e;if(o[t]===r.fontKey)return{kind:"role",role:t};let a=Object.keys(o).filter(n=>o[n]===r.fontKey);return a.length===1?{kind:"role",role:a[0]}:{kind:"custom"}}function Uu(e,o,t,r){return gee(vr(e,o))??yee(t,r)}function See(e,o){if(!e.length)return null;let t=o(e[0]);return e.every(r=>o(r)===t)?t:null}function g2(e){return[{value:Ai,label:f("No style"),description:f("Section\u2019s own")},...e.map(o=>({value:o.id,label:o.name,description:o.values.font?rd(o.values.font)?.label:void 0}))]}var Ai="";function bee({face:e,base:o,onPick:t}){let r=e.kind==="role"?e.role:Ai,a=[{label:f("No style"),value:Ai},...ab.map(n=>({label:f(xm[n]),value:n}))];return Z(tee,{ariaLabel:f("Style"),value:r,options:a,inline:!0,onChange:n=>t(n===Ai?null:n),renderOption:n=>n.value===Ai?mt(Fi,{children:[Z("span",{className:"es-fsel-label sf-part-style-keep",children:n.label}),Z("span",{className:"sf-part-style-aside","aria-hidden":"true",children:f("Section\u2019s own")})]}):Z("span",{className:"es-fsel-label",style:{fontFamily:`var(--font-role-${n.value})`},children:n.label}),renderValue:()=>Z("span",{style:{fontFamily:o?.fontKey?`var(${rd(o.fontKey)?.cssVar})`:void 0,fontWeight:o?.weight},children:aS(I2(e))}),valueText:n=>aS(I2(e))??n?.label??""})}var k2=["regionNote","regionStyle"],wee=Object.keys(tS).filter(e=>!k2.includes(e));function v2(e,o){return!e.some(o)}function Cee({sectionName:e,onBack:o,textEditor:t,styleRow:r,children:a,tabs:n}){let s=mt(Fi,{children:[t,r,a]});return mt("div",{className:"sf-part-panel",children:[Z(ju,{inline:!0,name:f(e),onSelect:o}),n?n(s):s]})}function Gu({source:e,slug:o,menuId:t}){let r=Iee(),a=p2[e],n=!a.needsSlug||!!o;return Z("div",{className:"sf-note sf-note--source",children:mt(C2,{children:[f(f2[e]),n?mt(Fi,{children:[" ",Z(dee,{type:"button",variant:"link",size:"sm",onClick:()=>{a.type==="storefront-editor:open-menus"?r.send(a.type,{menuId:t??null}):o&&r.send(a.type,{slug:o})},children:f(c2)})]}):null]})})}var y2=4,kee=120;function S2(e){return f("Every {part} in this section follows it. The face and the size change; the letter case is the section\u2019s own and stays as it is.",{part:f(e.label).toLowerCase()})}function b2({region:e,sizePx:o,face:t,base:r,onFollowStyle:a,source:n,slug:s,onBack:l,shows:i,sizedStyle:d,ownLook:c}){let x=e.follows;return mt("div",{className:"sf-note",children:[Z("p",{children:Z("strong",{children:f(e.label)})}),i("regionNote")&&!c&&Z("p",{children:o?f("Its size follows Styles \u25B8 {follows} \u2014 {px}px right now.",{follows:f(x),px:Math.round(o)}):f("Its size follows Styles \u25B8 {follows}.",{follows:f(x)})}),d?mt(Fi,{children:[d,i("regionStyle")&&Z("p",{className:"es-field-hint",children:S2(e)})]}):a?i("regionStyle")?Z(Fi,{children:Z(nee,{label:f("Style"),icon:Z(see,{}),hint:S2(e),children:Z(bee,{face:t,base:r,onPick:a})})}):null:i("regionNote")&&Z("p",{className:"es-field-hint",children:f("Only the size follows a site style. This section sets its own font, weight and letter case.")}),n&&i("sourceNote")?Z(Gu,{source:n,slug:s}):null,v2([...k2,"sourceNote",...d?["fontSize"]:[]],m=>i(m)&&(m!=="sourceNote"||!!n))&&Z(Ua,{}),Z(ju,{inline:!0,name:f("Page"),onSelect:l})]})}function vee({onBack:e}){return mt("div",{className:"sf-note",children:[Z("p",{children:Z("strong",{children:f("This part is no longer here.")})}),Z("p",{children:f("The section it belonged to has been changed or removed.")}),Z(ju,{inline:!0,name:f("Page"),onSelect:e})]})}function Pee({onBack:e,partId:o,why:t}){return mt("div",{className:"sf-note",children:[Z("p",{children:Z("strong",{children:f("This part's settings did not open.")})}),Z("p",{children:f("The words are still on your page and nothing has been lost. The editor could not work out which control belongs to them, which is a fault on our side. Go back and click the section to open its settings instead.")}),Z("p",{className:"sf-note-detail",children:mt("code",{children:[o," \u2014 ",t]})}),Z(ju,{inline:!0,name:f("Page"),onSelect:e})]})}function P2({nodeId:e,propKey:o,onBack:t,onEditStyle:r}){let{getItemById:a,getSelectorForId:n,config:s}=iee(K=>K),l=hee(),i=YT(),{partStyle:d}=ds(),{fonts:c,textStyles:x}=vo(),m=eee(pee),h=!m?.capabilities?.hasSiteTheme,{persist:I}=UP({themeFromDocument:h,tokenRef:m?.tokenRef,siteId:m?.siteId??null}),C=vT({themeFromDocument:h,persist:I}),[P,O]=m2(!1),F=uee(),v=K=>(zu(F)!=="tablet"||o2(K))&&aee(tS[K],F),y=oee(null),b=a(e),E=n(e),B=b?s.components[b.type]:void 0,{key:R,row:k}=Mt(o),L=B?.fields?.[R],g=k?Rn(L,k):L,w=Ht(e,o),T=b?.props??{},S=of(g),M=Cf(g),N=Vk(g),G=b?_i(b.type):null,q=b?u2(b.type,R):null,le=k?rf(T[R],k):T[R],ge=!!k&&!(Array.isArray(T[R])&&k.index<T[R].length);rS(()=>{VT(document)||y.current?.querySelector(".es-copy [contenteditable='true'], .es-copy textarea, .sf-copybox textarea, .sf-copybox input")?.focus()},[w]);let[Y,xe]=m2(0);rS(()=>xe(0),[w]);let ae=!!b&&!ge&&(!E||!g);rS(()=>{if(!ae||Y>=y2)return;let K=setTimeout(()=>xe(je=>je+1),kee);return()=>clearTimeout(K)},[ae,Y]);let me=ae&&Y<y2,pe=ws(e,ar(b?.type,o),"textPart");if(!b||ge)return Z(vee,{onBack:t});let Ye=fs(b.type),bo=Ye?Ws(Ye,o):null;if(Ye&&bo){let K=d?.partId===w?d:null,je=Ye[bo],It=je.writable===!0&&!!E,mr=Vr=>{E&&l.replaceComponent(E.zone,E.index,{...b,props:ra(T,o,"role",Vr)})};if(It&&ew(je)){let Vr=vr(T,o),$S=Yr=>{if(!E)return;let um=T;for(let[m4,x4]of Object.entries(Yr))um=ra(um,o,m4,x4??null);l.replaceComponent(E.zone,E.index,{...b,props:um})},c4=Ax(C.saved,C.old),p4=fx(Vr)??"",u4=Hu(Vr,K?.base??w2,$S,zu(F)).filter(Yr=>Yr.key==="fontSize"&&v(Yr.key));return Z(Et,{motion:pe,body:Z(b2,{region:je,sizePx:K?.base.sizePx??null,face:Uu(T,o,K,c),base:K?.base??null,source:G,slug:ks(T),onBack:t,shows:v,ownLook:wv(Vr),sizedStyle:Z(x2,{style:v("style")?{value:p4,options:g2(c4),onChange:Yr=>$S(Yr?{textStyle:Yr}:{textStyle:null,role:null}),onEditStyles:r}:void 0,cells:u4})})})}return Z(Et,{motion:pe,body:Z(b2,{region:je,sizePx:K?.base.sizePx??null,face:Uu(T,o,K,c),base:K?.base??null,onFollowStyle:It?mr:void 0,source:G,slug:ks(T),onBack:t,shows:v})})}if(!E||!g)return me?Z("div",{className:"sf-note","aria-busy":"true"}):Z(Pee,{onBack:t,partId:w,why:E?"no field":"no selector"});let Bo=K=>{l.replaceComponent(E.zone,E.index,{...b,props:K})},Je=K=>{if(ia(K).hidden!==ia(le).hidden||!S){let je=k?Wk(T,R,k,K):{...T,[R]:K};je&&Bo(je);return}Ff({node:b,propKey:o,kind:S,zone:E.zone,index:E.index},ia(K).text,l.replaceComponent)},fo=le,co=d?.partId===w?d:null,se=co?.styleOwner,Le=se?a(se.owner):null,W=se&&Le?n(se.owner):null,he=!!(se&&Le&&W),Ie=he?Le.props??{}:T,Ze=he?K=>l.replaceComponent(W.zone,W.index,{...Le,props:K}):Bo,Oo=he?se.kind:ar(b?.type,o),Re=vr(Ie,Oo),Ue=[{partKey:Oo,face:Uu(Ie,Oo,co,c),sizeGroup:co?.sizeGroup??null,base:co?.base??w2,style:Re}],po=See(Ue,K=>K.sizeGroup),Eo=Qd(co?.inks),Kt=(K,je)=>{let It=Ie;for(let mr of Ue)It=ra(It,mr.partKey,K,je);Ze(It)},pr=K=>K?Kt("textStyle",K):Ya({textStyle:null,role:null}),Ya=K=>{let je=Ie;for(let It of Ue)for(let[mr,Vr]of Object.entries(K))je=ra(je,It.partKey,mr,Vr??null);Ze(je)},Xa=S==="text"||S==="textarea",{text:qt,hidden:ur}=ia(le),Ja=g?.[mee]?.label??o,_s=ur?f("Show {label} on the slide",{label:f(Ja)}):f("Hide {label} on the slide",{label:f(Ja)}),Za=mt("div",{className:"sf-field-head",children:[Z(lee,{}),Z("span",{className:"sf-field-label sf-field-label--inline",children:f(Ja)}),Xa&&Z(cee,{content:_s,children:Z(fee,{"aria-pressed":ur,"aria-label":_s,onClick:()=>Je({text:qt,hidden:!ur}),children:ur?Z(h2,{name:"eye-off",size:14}):Z(h2,{name:"eye",size:14})})})]}),Kr=!M&&N,As=!!S&&(XP(g)||M||ur||!N),qr=Uu(Ie,Oo,co,c),Yi=qr.kind==="role"?qr.role:null,Qa=fx(Re)??bT(Yi),Fs=Ax(C.saved,C.old),Xi=Object.entries(Re).filter(([K,je])=>K!=="role"&&K!=="textStyle"&&je!==void 0).length,Ji=()=>{let K=Ie;for(let je of Ue){let{role:It,textStyle:mr}=je.style;K=fv(K,je.partKey),It&&(K=ra(K,je.partKey,"role",It)),mr&&(K=ra(K,je.partKey,"textStyle",mr))}Ze(K)},ht=Qa,i4=CT(Ue[0].style),d4=ht?Fs.find(K=>K.id===ht)?.name??ht:"",f4=()=>{O(!1),ht&&(C.write(kT({saved:C.saved,old:C.old,styleId:ht,values:wT(Ue[0].style)}),!0),Ji())};return mt(Cee,{sectionName:B?.label??b.type,onBack:t,tabs:K=>Z(Et,{motion:pe,body:K}),textEditor:v("words")?Z("div",{ref:y,className:"sf-part-text",children:As?Z(l2,{text:qt,onTextChange:K=>Je(Xa?{text:K,hidden:ur}:K),multiline:tf(S),markup:S!=="plainText",styled:!1,style:Ue[0].style,base:Ue[0].base,setValue:Ya,colors:Eo,placeholder:aS(Dk(g))??void 0,ariaLabel:f(Ja),head:Za,typedOnCanvas:i===w}):S?Xa?Za:null:Z(ree,{field:g,name:o,value:fo,onChange:Je,id:`sf-part-${e}-${o}`})}):void 0,children:[q&&v("sourceNote")&&Z(Gu,{source:q,slug:ks(T),menuId:$u(T)}),Kr&&Z(x2,{style:v("style")?{value:Qa??"",options:g2(Fs),onChange:K=>pr(K||null),changed:Xi>0,onEditStyles:r,onUpdateStyle:ht&&i4?()=>O(!0):void 0}:void 0,font:v("font")?{value:Re.font??"",styleValue:rd(Ue[0].base.fontKey)?.label,options:rb.map(K=>({label:K.label,value:K.key})),onChange:K=>Kt("font",K||null)}:void 0,italic:v("italic")?{value:Re.italic,styleValue:Oee(x,Qa),onChange:K=>Kt("italic",K??null)}:void 0,cells:Hu(Ue[0].style,Ue[0].base,Ya,zu(F)).filter(K=>v(K.key)),align:v("align")?Tee(Re,Ue[0].base.align,zu(F),Kt):void 0,letterCase:v("letterCase")?{value:Re.case??"",styleValue:Ue[0].base.case,onChange:K=>Kt("case",K||null)}:void 0}),P&&ht&&Z(d2,{styleName:d4,onCancel:()=>O(!1),onConfirm:f4}),Kr&&po===null&&v("fixedSizeHint")&&Z(C2,{children:f("Fixed size \u2014 the site\u2019s Text setting doesn\u2019t resize this.")}),v2(wee,K=>v(K)&&(K==="words"||(K==="sourceNote"?!!q:K==="fixedSizeHint"?Kr&&po===null:Kr)))&&Z(Ua,{})]})}function Tee(e,o,t,r){let a=xee("align",t),n=pv(e,t);return{value:e[a]??"",styleValue:n??o,onChange:s=>r(a,s||null)}}function Oee(e,o){return!o||!Array.isArray(e)?!1:e.find(t=>t?.id===o)?.values?.italic===!0}var w2={fontKey:"",sizePx:16,weight:400,lineRatio:1.4,letterEm:0,align:"left",case:"none",paddingPx:0};import{jsx as _t,jsxs as fS,Fragment as Ree}from"react/jsx-runtime";import{useCallback as Dee,useRef as Nee,useState as Ri}from"react";import{InspectorIconButton as Mee}from"efficient-easel/chrome";import{useEasel as Hee}from"efficient-easel/easel";import{PopupMenu as Wee,PopupMenuItem as $ee,PopupMenuLabel as Zu}from"efficient-shell/ui";import{CopyToPageIcon as zee}from"efficient-easel/icons";import{useEaselSession as Uee}from"efficient-easel/screen/lib/session-context";import{cloneNodeWithFreshIds as jee}from"efficient-easel/screen/lib/document/section-doc";import{FOOTER_TYPE as Gee}from"efficient-easel/draw";import{newId as Aee}from"efficient-easel/data";import{isBackendError as vs}from"efficient-easel/screen/lib/backend-error";import{isEfficientBackend as D2}from"efficient-easel/screen/lib/session";var Ku=EP(),nS=Ku.set;function qu(e,o){nS(e,o)}function Vu(e,o){let t=Ku.get(e);nS(e,o??(t==="live"?"changed":t))}function Yu(e,o){nS(e,o??"live")}function T2(e){return Ku.get(e)}function O2(e){return Ku.use(e)}function E2(e,o){return e==="live"&&o?"changed":e}function sS({live:e,onPress:o,busy:t=!1,pinnedUnpublished:r=!1,goingLive:a}){let n=e==="live"&&!r,s=e==="changed"?f("Changes not live yet"):e==="never"?f("Never published"):r?f("Header and footer not live yet"):e==="live"?f("Everything is live"):null;return{label:f("Publish"),tooltip:e==="never"?f("Put this page on your site"):f("Put your changes on your site"),status:s,quiet:n?{label:f("Published"),reason:f("Everything is live")}:null,...a&&a.length?{goingLive:a}:{},onPress:o,busy:t}}function _2(e){return e.map(o=>o.change==="take_down"?f("{name} (taken down)",{name:o.name}):o.name)}var A2="SharedSection",Eee=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i,Bi=e=>{let o=e?.content;return Array.isArray(o)?o:[]},Li=e=>{let o=e?.props?.id;return typeof o=="string"?o:void 0};function F2(e){if(e?.type!==A2)return null;let o=e.props?.section;return typeof o=="string"&&Eee.test(o)?o.toLowerCase():null}function B2(e){let o=[];for(let t of Bi(e)){let r=F2(t),a=Li(t);r&&a&&o.push({refId:a,section:r})}return o}function Xu(e){let o=Bi(e)[0];return o&&typeof o=="object"&&Li(o)?o:null}function _ee(e,o){return{type:A2,props:{id:e,section:o}}}function L2(e,o){let t=new Map,r=new Set,a=!1,n=Bi(e).map(s=>{let l=F2(s),i=Li(s);if(!l||!i||r.has(l))return s;let d=Xu(o.get(l)),c=Li(d??void 0);return!d||!c||t.has(c)?s:(r.add(l),t.set(c,{section:l,refId:i,reference:s}),a=!0,d)});return{working:a?{...e,content:n}:e,held:t}}function R2(e,o,t){let r=new Map,a=!1,n=Bi(e).map(s=>{let l=Li(s),i=l?o.get(l):void 0,d=i?t.get(i.section):void 0;if(!i||!d||r.has(i.section))return s;let c=Bi(d).slice(1),x=Xu(d);return r.set(i.section,x===s?d:{...d,content:[s,...c]}),a=!0,i.reference??_ee(i.refId,i.section)});return{page:a?{...e,content:n}:e,docs:r}}function dS(e){return!!(e?.publish&&e.liveState)}function Fee(e,o){if(!dS(e))return;let{versions:t,nameVersion:r,restoreVersion:a,previewVersion:n}=e;if(!(!t||!r||!a||!n))return{list:()=>t.call(e,o),name:(s,l)=>r.call(e,s,l,o),restore:(s,l)=>a.call(e,s,l??{},o),preview:s=>n.call(e,s,o)}}function Bee(e,o){return async(t,r)=>{try{await zP()}catch(a){throw new Error(f("A change waiting to go live could not be saved."),{cause:a})}return(await e.publish(o)).state==="live"?bf({state:"live",changes:[]}):la(0),{version:r??null}}}function iS(e,o,t){let r=o?{siteId:o}:void 0;return{resolve:a=>e.load({slug:a,...r}).then(n=>(n&&(qu(n.id,n.live),BP(n.id,n.videoFrames)),n)),saveLayout:(a,n,s,l)=>e.save(a,{layout:n},{version:s,clientId:l??""}).then(i=>(Vu(a,i.live),LP(a,i.videoFrames),la(),i)),rereadVersion:e.version?a=>e.version(a):void 0,publish:dS(t)?Bee(t,r):e.publish?(a,n)=>e.publish(a,n?{version:n}:void 0).then(s=>(Yu(a,s.live),s)):void 0,listPages:()=>e.list(r),createPage:e.create?a=>e.create({...a,...r}):void 0,deletePage:e.remove?(a,n)=>e.remove(a,n):void 0}}function Lee(e,o,t,r,a=!1){let n=null,s=new Set,l=!1,i=new Map,d=new Map,c=new Map,x=new Map,m={docId:null,lockHolder:null,conflict:null,saveFailed:!1,unpublished:!1,loadFailed:!1,sections:[]},h=new Set,I=()=>{if(!n)return!1;let k=T2(n.id);return k==="changed"||k==="never"||k===void 0&&l},C=k=>{m={...m,...k,docId:n?.id??null,unpublished:I(),sections:[...c.values()],rootProps:_P(n?.layout)};for(let L of h)L()},P=(k,L,g)=>{L?c.set(k,{section:k,title:i.get(k)?.title??"",problem:L,holder:g}):c.delete(k)},O=k=>k&&typeof k=="object"&&!Array.isArray(k)?k:{},F=k=>s.has(k),v=()=>new Map([...i].map(([k,L])=>[k,L.layout])),y=()=>Aee("SharedSection"),b=(k,L,g,w)=>{let T=O(L);i.set(k,{layout:T,version:g,savedJson:JSON.stringify(T),title:w})},E={state:()=>m,subscribe:k=>(h.add(k),()=>{h.delete(k)})},B={sectionOf:k=>d.get(k)?.section??null,heldElsewhere:k=>{let L=d.get(k)?.section;return!!(L&&c.get(L)?.problem==="lock")},adopt:(k,L)=>{b(L.id,L.layout,L.layout_updated_at,L.title),d.set(k,{section:L.id,refId:y()}),x.set(L.id,L.used_on),C({})},place:k=>{if([...d.values()].some(w=>w.section===k.id))return null;let L=Xu(O(k.layout)),g=typeof L?.props?.id=="string"?L.props.id:null;return!L||!g||!L.type?null:(b(k.id,k.layout,k.layout_updated_at,k.title),d.set(g,{section:k.id,refId:y()}),x.set(k.id,k.used_on),L)},usedOn:k=>x.get(k)??null,learn:k=>{for(let L of k){x.set(L.id,L.used_on);let g=i.get(L.id);g&&(g.title=L.title);let w=c.get(L.id);w&&c.set(L.id,{...w,title:L.title})}C({})}},R=async(k,L)=>{for(let[g,w]of k){let T=i.get(g),S=JSON.stringify(w);if(!(!T||S===T.savedJson||c.get(g)?.problem==="lock"))try{let M=await e.save(g,{layout:w},{version:T.version,clientId:L??""});Vu(g,M.live),T.layout=w,T.version=M.version,T.savedJson=S,P(g,null)}catch(M){vs(M,"changed-elsewhere")?P(g,"conflict"):vs(M,"lock-taken")?P(g,"lock",M.holder??void 0):P(g,"save")}}k.size&&la(),C({})};return{resolve:async k=>{if(ay(k===Pr?null:E),wx(k===Pr?null:B),i=new Map,d=new Map,c=new Map,x=new Map,k===Pr)return t.resolve(k);let L=!1,[g,w]=await Promise.all([t.resolve(k),e.load({slug:Pr,...o}).catch(()=>(L=!0,null))]);if(w&&!YP(g?.layout)){qu(w.id,w.live);let q=O(w.layout);n={id:w.id,layout:q,version:w.version,savedJson:""}}else n=null;if(l=!1,!g)return C({conflict:null,saveFailed:!1,loadFailed:L}),g;let T=O(g.layout),S=B2(T),M=await Promise.all(S.map(q=>e.load({id:q.section,...o}).catch(()=>null)));S.forEach((q,le)=>{let ge=M[le];ge?(qu(ge.id,ge.live),b(q.section,ge.layout,ge.version,"")):(i.delete(q.section),c.set(q.section,{section:q.section,title:"",problem:"load"}))});let N=L2(T,v());if(d=N.held,!n)return d.size&&s.add(g.id),C({conflict:null,saveFailed:!1,loadFailed:L}),d.size?{...g,layout:N.working}:g;let G=AP(N.working,n.layout);return n.savedJson=JSON.stringify(bx(G,n.layout).chrome),s.add(g.id),C({conflict:null,saveFailed:!1,loadFailed:!1}),{...g,layout:G}},saveLayout:async(k,L,g,w)=>{if(!F(k))return t.saveLayout(k,L,g,w);let T=n,S=T?bx(L,T.layout):{page:L,chrome:null},M=R2(S.page,d,v()),N=await t.saveLayout(k,M.page,g,w);if(await R(M.docs,w),!T)return N;let G=JSON.stringify(S.chrome);if(!S.chrome||G===T.savedJson||m.lockHolder)return N;try{let q=await e.save(T.id,{layout:S.chrome},{version:T.version,clientId:w??""});Vu(T.id,q.live),la(),T.layout=S.chrome,T.version=q.version,T.savedJson=G,l=!0,C({conflict:null,saveFailed:!1})}catch(q){vs(q,"changed-elsewhere")?C({conflict:q.conflict??{savedBy:"",savedByYou:!1,secondsAgo:0}}):vs(q,"lock-taken")?C({lockHolder:q.holder??{name:"",secondsSinceSeen:0,secondsSinceHeld:0}}):C({saveFailed:!0})}return N},publish:t.publish?async(k,L)=>{let g=await t.publish(k,L),w=n;if(w&&F(k)&&!a&&e.publish&&I()&&!m.lockHolder){let T=await e.publish(w.id,w.version?{version:w.version}:void 0);Yu(w.id,T.live),T.version!==null&&(w.version=T.version),l=!1,C({})}if(F(k)&&!a&&e.publish)for(let[T,S]of i){if(c.get(T)?.problem==="lock")continue;let M=await e.publish(T,S.version?{version:S.version}:void 0);Yu(T,M.live),M.version!==null&&(S.version=M.version)}return g}:void 0,lock:r?{claim:async(k,L,g)=>{let w=await r.claim(k,L,g);if(!F(k))return w;let T=n;if(T)try{await r.claim(T.id,L,!1),m.lockHolder&&C({lockHolder:null})}catch(S){vs(S,"lock-taken")&&C({lockHolder:S.holder??{name:"",secondsSinceSeen:0,secondsSinceHeld:0}})}for(let S of i.keys())try{await r.claim(S,L,!1),c.get(S)?.problem==="lock"&&P(S,null)}catch(M){vs(M,"lock-taken")&&P(S,"lock",M.holder??void 0)}return i.size&&C({}),w},release:async(k,L)=>{if(await r.release(k,L),!F(k))return;let g=n;g&&!m.lockHolder&&await r.release(g.id,L).catch(()=>{});for(let w of i.keys())c.get(w)?.problem!=="lock"&&await r.release(w,L).catch(()=>{})}}:void 0,pinnedChrome:E}}function Ju(e){let o=(t,r,a)=>e.save(t,r.layout?{...r,layout:RT(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 iMe(e,o,t){return e.update(o,DT(t))}function dMe(e,o=_o(),t=Sg(),r={}){let a=D2(o),n=e?{siteId:e}:void 0,s=a?!!e:!0,l=o.site.update,i=a&&t.commerce&&t.service,d=!!r.editsPinnedInPlace&&i,c=dS(o.site)?o.site:void 0,x=Ju(o.pages),m=iS(x,e,c),h=d?Lee(x,n,m,o.lock,!!c):null;return{capabilities:{canPublish:!!c||!!o.pages.publish,hasSiteSettings:a,hasSiteTheme:!!o.theme,placeholderFrames:!1,mediaEditing:!0,pageCreationInAdminForm:!o.pages.create,canDeletePagesInline:!!o.pages.remove,hasEditLock:!!o.lock,hasEditGuard:!0,hasPinnedChrome:i,editsPinnedInPlace:d,explainsSiteSettings:!1,hasSiteRecord:s,canEditSiteRecord:s&&!!l,hasPreviewLink:a||!!o.preview,hasCatalog:a&&t.commerce,hasForms:a&&t.service,hasBlog:!!o.blog&&t.service,offersCommerce:t.commerce,offersService:t.service},...m,...N2(m.resolve),lock:o.lock,...h,site:s?()=>o.site.get(n):void 0,siteLiveState:c?()=>c.liveState(n):void 0,siteVersions:Fee(c,n),updateSite:s&&l?I=>l(I,n):void 0,previewHref:o.preview?I=>o.preview.href(I):void 0}}function fMe(e,o=_o(),t=Sg()){let r=D2(o),a=o.templates,n=a?Ju(a.pages(e)):{list:()=>Promise.reject(new Error(lS)),load:()=>Promise.reject(new Error(lS)),save:()=>Promise.reject(new Error(lS))};return{capabilities:{canPublish:!1,hasSiteSettings:!1,hasSiteTheme:!1,placeholderFrames:!0,mediaEditing:!1,pageCreationInAdminForm:!n.create,canDeletePagesInline:!!n.remove,hasEditLock:!1,hasEditGuard:!1,hasPinnedChrome:r&&t.commerce&&t.service,editsPinnedInPlace:!1,explainsSiteSettings:r,hasSiteRecord:!1,canEditSiteRecord:!1,hasPreviewLink:!1,hasCatalog:r&&t.commerce,hasForms:r&&t.service,hasBlog:!!o.blog&&t.service,offersCommerce:t.commerce,offersService:t.service},...iS(n,void 0),...N2(iS(n,void 0).resolve),publish:void 0,templateName:a?()=>a.get(e).then(s=>s.name):void 0}}function N2(e){return{resolve:o=>(ay(null),wx(null),e(o))}}var lS="This editor's backend has no website templates.";function Kee(e,o,t){let r=jee(e,void 0,o);return t?.(r)??r}function M2({node:e,currentSlug:o,siteId:t,tokenRef:r,runAuthed:a,onNotify:n}){let[s,l]=Ri(!1),[i,d]=Ri(null),c=Uee(),x=Hee(B=>B.config.components),[m,h]=Ri(!1),[I,C]=Ri(null),P=Nee(null),[O,F]=Ri(null),v=Dee(async()=>{if(c.usesBridgedToken&&!r.current){h(!0);return}try{d(await _o(c).pages.list(t?{siteId:t}:void 0))}catch{h(!0)}},[r,t,c]),y=()=>{if(s){l(!1);return}let B=P.current?.getBoundingClientRect();B&&F({top:B.bottom+6,right:Math.max(8,window.innerWidth-B.right)}),d(null),h(!1),v(),l(!0)},b=(i??[]).filter(B=>B.slug!==o),E=async B=>{if(I)return;C(B.slug);let R=Kee(e,x,c.documentHooks?.storedNode),k=await a(()=>qee(_o(c).pages,B,R));C(null),l(!1),n?.(k?f("Duplicated to \u201C{name}\u201D",{name:B.label}):f("Couldn\u2019t duplicate the section \u2014 please retry"),k?"success":"error")};return fS(Ree,{children:[_t("span",{"data-menu-toggle":!0,style:{display:"contents"},children:_t(Mee,{buttonRef:P,label:f("Duplicate to another page"),hasPopup:"menu",expanded:s,onClick:y,children:_t(zee,{size:15})})}),s&&O&&_t(Wee,{portal:!0,style:{top:O.top,right:O.right},onClose:()=>l(!1),children:fS("div",{role:"menu","aria-label":f("Duplicate to page"),children:[_t(Zu,{children:f("Duplicate to page")}),m?_t(Zu,{children:f("Couldn\u2019t load pages")}):i===null?_t(Zu,{children:f("Loading\u2026")}):b.length===0?_t(Zu,{children:f("No other pages")}):b.map(B=>fS($ee,{role:"menuitem",disabled:I!==null,onClick:()=>{E(B)},children:[_t("span",{className:"min-w-0 flex-1 truncate",children:B.label}),I===B.slug?_t("span",{className:"shrink-0 text-xs",children:f("Copying\u2026")}):B.draft&&_t("span",{className:"shrink-0 text-xs",children:f("draft")})]},B.id))]})})]})}async function qee(e,o,t){let r=Ju(e),a=await r.load({id:o.id});if(!a)throw new Error(`Page "${o.slug}" no longer exists.`);let n=a.layout??{},s=Array.isArray(n.content)?[...n.content]:[],l=s.findIndex(i=>i?.type===Gee);s.splice(l===-1?s.length:l,0,t),await r.save(o.id,{layout:{root:{},zones:{},...n,content:s}},{version:a.version,clientId:""})}import{useScreenDocument as boe}from"efficient-easel/screen/components/ScreenDocumentContext";import{useSectionOps as woe}from"efficient-easel/screen/lib/document/use-section-ops";import{SELECTION_MODE as D2e,isSelectionMode as xS}from"efficient-easel/screen/lib/screen-parts";import{usePreviewParts as Coe}from"efficient-easel/draw/client";import{jsx as Di,jsxs as Vee}from"react/jsx-runtime";import{SettingsDrill as Yee}from"efficient-easel/panel";import{UiIcon as Xee}from"efficient-easel/draw/client";var Jee="Not shown on the page";function Zee({part:e,onOpen:o}){return Di(Yee,{name:f(e.label),preview:e.offPage?f(Jee):e.preview||f("Empty"),offPage:e.offPage,status:e.hidden?Di("span",{className:"sf-entry-eye",role:"img","aria-label":f("Hidden on the page"),children:Di(Xee,{name:"eye-off",size:14})}):void 0,onOpen:()=>o(e.key)})}function cS(e){return e.filter(o=>!o.identifier)}function H2({parts:e,onOpen:o,heading:t=!0}){let r=cS(e);return r.length?Vee("div",{className:"sf-entries",children:[t?Di("h3",{className:"sf-entries-head",children:f("Text")}):null,r.map(a=>Di(Zee,{part:a,onOpen:o},a.key))]}):null}import{HEADER_TYPE as koe,ROOT_ZONE as Z2}from"efficient-easel/draw";import{newId as Qee}from"efficient-easel/data";import{HEADER_TYPE as Uo,FOOTER_TYPE as Be,newNodeId as eoe}from"efficient-easel/draw";function Qu(){return{type:Uo,props:{id:eoe(Uo)}}}var W2=[{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"}],ooe=W2.filter(e=>e.type!=="FooterLogo"&&e.type!=="FooterGroup"),toe="FooterGroup",$2="blocks";function z2(e){return e===Be?W2:e===toe?ooe:null}function em(){let e=(o,t)=>({type:o,props:{id:Qee(o),...t}});return[e("FooterLogo",{widthPct:100,align:"left",tagline:""}),e("FooterEmailSignup",{...Bv}),e("FooterPayment",{...sf})]}function pS(e){switch(e?.type){case No:case eo:return f("On every page");case Uo:case Be:return f("On every page \xB7 old style");default:return null}}var U2=()=>null,j2=()=>f("Changed on every page");function om(e,o){let t=EC(e,o);if(t)return t;let r=Gv(e,o);if(!r)return null;let a=r.group===No;return r.why==="type"?a?f("The header cannot take another one of these"):f("The footer cannot take another one of these"):a?f("The header holds at most 3 sections"):f("The footer holds at most 6 sections")}import{jsx as tm,Fragment as aoe,jsxs as noe}from"react/jsx-runtime";import{useState as soe}from"react";import{createNode as loe,newId as ioe}from"efficient-easel/data";import{useEasel as doe}from"efficient-easel/easel";import{Banner as foe,Button as uS}from"efficient-shell/ui";import{useScreenDocument as coe}from"efficient-easel/screen/components/ScreenDocumentContext";var roe=["FooterPayment"];function G2(e,o){let{id:t,...r}=e.props;for(let a of Ft(e))r[a]=r[a].map(n=>G2(n,o));return o(e.type,r)}var Ni=(e,o)=>{if(!roe.includes(e.type))return null;Wp();let t=Br(e.type);return t?va({type:e.type,props:{...e.props}},t).nodes.map(r=>G2(r,o)):null};function K2(){let{appState:e,dispatch:o,config:t}=doe(c=>c),{readOnly:r}=coe(),[a,n]=soe(!1),s=e.data.content;if(r||s.some(c=>c.type===eo))return null;let l=s.find(c=>c.type===Be)??null,i=(c,x)=>loe(t,c,x),d=()=>{let c=ri(l,i,ioe(eo),Ni);o({type:"setData",data:x=>({...x,content:[...df(x.content,c)]}),recordHistory:!0}),n(!1)};return tm(foe,{tone:"info",title:f("This footer uses the old layout"),action:a?noe(aoe,{children:[tm(uS,{variant:"primary",size:"sm",onClick:d,children:f("Switch now")}),tm(uS,{variant:"secondary",size:"sm",onClick:()=>n(!1),children:f("Cancel")})]}):tm(uS,{variant:"secondary",size:"sm",onClick:()=>n(!0),children:f("Switch to Box footer")}),children:f("Build this footer out of Boxes and blocks, like a page: the same menus, signup, social links and logo, with the copyright as a Legal Line. Your current footer is kept.")})}import{jsx as mS,jsxs as poe}from"react/jsx-runtime";import{InspectorUpLevel as q2}from"efficient-easel/chrome";function V2({nodeId:e,part:o,sectionName:t,onUpToSection:r}){let{select:a}=Ru(),n=ws(e,o,"picture");return poe("div",{children:[o!=="media"?mS(q2,{inline:!0,name:f(ir.media),onSelect:()=>a(ba(e,"media"))}):mS(q2,{inline:!0,name:f(t),onSelect:r}),mS(Et,{part:o,motion:n,itemWord:f(ir[o])})]})}import{HintsToggle as voe,SettingsSwitch as Poe,hintsFoldClass as Toe}from"efficient-easel/panel";import{useHints as Ooe}from"efficient-easel/screen/lib/hints";var eH={kind:"header"},IS={kind:"website"},oH={kind:"website",tab:Ef,revealPageGroup:!0},tH={kind:"chat"},rH={kind:"social"},Mi="Part";function Eoe(e){return f("Part of {name}",{name:f(e)})}function _oe(e,o,t){let r=e.describeNode(o);return{name:t,kindLabel:r?Eoe(r.label):f(Mi)}}function Aoe(e){switch(e){case"Header":return{title:f("Header settings belong to a website."),own:f("Each website created from this template sets its own header afterwards.")};case"Appearance":return{title:f("Appearance settings belong to a website."),own:f("Each website created from this template sets its own appearance afterwards.")};case"Live chat":return{title:f("Live chat settings belong to a website."),own:f("Each website created from this template sets its own live chat afterwards.")};case"Social link":return{title:f("Social link settings belong to a website."),own:f("Each website created from this template sets its own social link afterwards.")};default:return{title:f("{what} settings belong to a website.",{what:e}),own:f("Each website created from this template sets its own {what} afterwards.",{what:e.toLowerCase()})}}}function aH({what:e}){let o=Aoe(e);return Gr("div",{className:"sf-note",children:[we("p",{children:we("strong",{children:o.title})}),Gr("p",{children:[f("A template is a blueprint \u2014 it has no website of its own, so there is nothing here to change.")," ",o.own]})]})}function hS(e){let o=Hl[e];return{name:ir[e],kindLabel:Mi,icon:o,head:(t,r)=>{if(t.kind!==o)return null;let a=r.describeNode(t.nodeId);if(!a)return null;let n=Q2({name:f(Mc(e,a.props)),tier:"part",of:f(a.label)},{partOf:({name:s})=>f("Part of {name}",{name:s})});return{name:n.name,kindLabel:n.kind}},render:(t,r)=>t.kind===o?we(V2,{nodeId:t.nodeId,part:e,sectionName:r.describeNode(t.nodeId)?.label??"Hero",onUpToSection:()=>r.onSelectNode(t.nodeId)}):null}}var Foe={header:{name:"Header",kindLabel:"Site settings",icon:"header",render:(e,o)=>{let t=o.hostPanels?.header;return t?we(t,{placeholderMode:o.capabilities.placeholderFrames,tokenRef:o.tokenRef,siteId:o.siteId,websiteName:o.websiteName,onOpenWebsiteSettings:o.onOpenWebsiteSettings,onAuthExpired:()=>o.notifyParent("storefront-editor:auth-expired")}):null}},website:{name:"Appearance",kindLabel:"Site settings",icon:"website",render:(e,o)=>we(_f,{initialTab:e.tab,revealPageGroup:e.revealPageGroup,themeFromDocument:!o.capabilities.hasSiteTheme,tokenRef:o.tokenRef,siteId:o.siteId,onNotify:o.onNotify},e.tab??"")},chat:{name:"Live chat",kindLabel:"Site settings",icon:"chat",render:()=>we($M,{})},social:{name:"Social links",kindLabel:"Site settings",icon:"social",render:()=>we(qM,{unavailable:we(aH,{what:"Social link"})})},ticker:{name:La,kindLabel:Mi,icon:"ticker",head:(e,o)=>e.kind==="ticker"?_oe(o,e.heroId,f(La)):null,render:e=>we(r2,{heroId:e.kind==="ticker"?e.heroId:""})},heroMedia:hS("media"),heroImage:hS("image"),heroImage2:hS("image2"),part:{name:Mi,kindLabel:Mi,icon:"Text",head:(e,o)=>{if(e.kind!=="part")return null;let t=o.describeNode(e.nodeId);if(!t)return null;let{key:r,row:a}=Mt(e.propKey),n=a?Rn(t.fields[r],a):t.fields[r],s=fs(t.type),l=s?Ws(s,e.propKey):null,i=s&&l?s[l].label:fO[e.propKey],d=i?f(i):zk(f(nf(Yk(n??{},r))),a),c=Q2({name:d,tier:"part",of:f(t.label)},{partOf:({name:x})=>f("Part of {name}",{name:x})});return{name:c.name,kindLabel:c.kind}},render:(e,o)=>e.kind==="part"?we(P2,{nodeId:e.nodeId,propKey:e.propKey,onBack:()=>o.onSelectNode(e.nodeId),onEditStyle:o.onOpenSiteStyles}):null}},Boe=new Set(["header","website","chat"]);function Loe(e,o){if(e==="selection")return null;let t=Foe[e];return Boe.has(e)&&!o.hasSiteSettings?{...t,kindLabel:"Not part of a template",render:()=>we(aH,{what:t.name})}:t}function nH({mode:e,onOpenWebsiteSettings:o,onOpenSiteStyles:t,onSelectNode:r,hideNodeActions:a=!1,onNotify:n,onHidePanel:s}){let{capabilities:l,tokenRef:i,notifyParent:d,currentSlug:c,siteId:x,runAuthed:m,readOnly:h,navigate:I}=boe(),{rows:C}=pl(),P=C?.find(he=>he.slug===c)??null,O=moe(),F=Object.keys(O.fields).some(he=>!he.startsWith("_")&&!Fx.includes(he)),{websiteName:v}=vo(),y=woe({readOnly:h}),{select:b}=Coe(),{selectedItem:E,getItemById:B,getSelectorForId:R,config:k,appState:L}=uoe(he=>he),g=yoe(k,E?{type:E.type,props:E.props}:null),w=E?Zk(g??k.components[E.type]?.fields,E.props):[],T=he=>k.components[he]?.label??he,S=E?R(E.props.id):void 0,M=Loe(e.kind,l),N=Soe(),G={capabilities:l,tokenRef:i,hostPanels:N.chrome?.panels,describeNode:he=>{let Ie=B(he);if(!Ie)return null;let Ze=k.components[Ie.type];return{type:Ie.type,label:Ze?.label??Ie.type,fields:Ze?.fields??{},props:Ie.props??{}}},siteId:x,websiteName:v??null,notifyParent:d,onNotify:n,onOpenWebsiteSettings:o,onOpenSiteStyles:t,onSelectNode:r},q=M?.head?.(e,G)??null,le=RM({kind:P?.kind,pageName:P?.label}),ge=q?.name??(M?f(M.name):E?f(T(E.type)):le.name),Y=q?.kindLabel??(M?f(M.kindLabel):E?S&&S.zone!==Z2?f("Block"):f("Section"):le.kindLabel),xe=M?M.icon:E?E.type:"page",ae=xS(e)&&E?_i(E.type):null,me=!!E&&!!S&&S.zone===Z2&&E.type!==Be&&E.type!==koe,pe=om(L?.data,E),Ye=()=>{pe||S&&y.duplicateComponent(S.zone,S.index)},bo=()=>{S&&(y.removeComponent(S.zone,S.index),y.select(null))},Bo=E?k.components[E.type]?.defaultProps?.previewHover:void 0,Je=xS(e)&&!!E&&!!S&&Bo!==void 0,fo=Je&&E.props.previewHover===!0,co=()=>{!E||!S||y.replaceComponent(S.zone,S.index,{...E,props:{...E.props,previewHover:!fo}})},{shown:se,setShown:Le}=Ooe(),W=!!(M||E||F);return Gr("div",{className:`es-sidepanel es-sidepanel--right sf-panel sf-panel--right ${Toe(se)}`.trim(),children:[we(hoe,{icon:we($a,{type:xe,size:15}),name:ge,kind:Y,actions:!a&&xS(e)&&E&&E.type!==Be?Gr(Y2,{children:[we(X2,{label:f("Duplicate section"),title:pe??void 0,disabled:pe!==null,onClick:Ye,children:we(Ioe,{size:15})}),me&&l.hasSiteSettings&&we(M2,{node:E,currentSlug:c,siteId:x??void 0,tokenRef:i,runAuthed:m,onNotify:n}),we(X2,{label:f("Remove section"),danger:!0,onClick:bo,children:we(goe,{size:15})}),s?we(J2,{side:"right",onHide:s,divider:!0}):null]}):s?we(J2,{side:"right",onHide:s}):void 0}),Je&&Gr("div",{className:"sf-preview-pin",children:[Gr("div",{className:"sf-preview-pin-text",children:[we("span",{className:"sf-preview-pin-label",children:f("Preview hover state")}),we("span",{className:"sf-preview-pin-hint",children:f("not shown live")})]}),we(Poe,{checked:fo,onChange:co,ariaLabel:f("Preview hover state")})]}),Gr("div",{className:"sf-insp-body es-insp-body sf-scroll",children:[M?M.render(e,G):E?Gr(Y2,{children:[E.type===Be&&l.hasSiteSettings&&we(K2,{}),we($P,{children:we(Et,{entries:we(H2,{parts:w,heading:!1,onOpen:he=>b(Ht(E.props.id,he))}),entryCount:cS(w).length,itemWord:ge})}),ae&&we(Gu,{source:ae,slug:ks(E?.props),menuId:$u(E?.props)})]}):F?we(Et,{omit:Fx}):we(xoe,{variant:"none",icon:!1,message:f("Select a section or block to edit it.")}),W&&we(voe,{shown:se,onChange:Le,label:f("Show hints")})]})]})}import{jsx as p,jsxs as _,Fragment as fH}from"react/jsx-runtime";var to={dark:"var(--sf-thumb-bar-dark)",soft:"var(--sf-thumb-bar-light)",accent:"var(--sf-thumb-accent)",tint:"var(--sf-thumb-accent-tint)",block:"var(--sf-thumb-block)",line:"var(--sf-thumb-border)",card:"var(--sf-thumb-card)"},gS="repeating-linear-gradient(135deg,var(--sf-thumb-hatch1) 0,var(--sf-thumb-hatch1) 5px,var(--sf-thumb-hatch2) 5px,var(--sf-thumb-hatch2) 10px)";function U({w:e,h:o,tone:t="dark",r=2,style:a}){return p("div",{style:{width:e,height:o,borderRadius:r,background:to[t],flex:"none",...a}})}var Roe={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},u={ink:"var(--sf-thumb-ink)",ink2:"var(--sf-thumb-ink-2)",inkSoft:"var(--sf-thumb-ink-soft)",inkSoft2:"var(--sf-thumb-ink-soft-2)",paper:"var(--sf-thumb-paper)",paper2:"var(--sf-thumb-paper-2)",warm:"var(--sf-thumb-warm)",rust:"var(--sf-thumb-rust)",onInk:"var(--sf-thumb-on-ink)",text:"var(--sf-thumb-scene-text)",muted:"var(--sf-thumb-scene-muted)",rule:"var(--sf-thumb-scene-rule)",mark1:"var(--sf-thumb-mark-1)",mark2:"var(--sf-thumb-mark-2)",card:"var(--sf-thumb-card)",scrim:"var(--sf-thumb-scrim)"},_e=(e,o,t=160)=>({background:`linear-gradient(${t}deg,${e},${o})`});function cr({size:e,style:o}){let t=Math.max(2,Math.round(e*.13)),r=(a,n,s)=>({position:"absolute",inset:a,background:n,borderRadius:t,...s?{mixBlendMode:s}:null});return _("span",{style:{position:"absolute",display:"block",width:e,height:e,...o},children:[p("span",{style:r("8% 26% 30% 6%",u.mark1)}),p("span",{style:r("26% 6% 8% 30%",u.mark2,"multiply")})]})}function am({children:e}){return p("span",{style:{fontSize:"4.64cqw",fontWeight:700,letterSpacing:"0.06em",textTransform:"uppercase",color:u.muted},children:e})}function sH({over:e,overTone:o,head:t,headSize:r=11.5,cta:a,ctaBg:n,ctaFg:s,tone:l}){return _(fH,{children:[e&&p("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.16em",fontWeight:700,color:o},children:e}),p("span",{style:{fontSize:r,lineHeight:1.15,fontWeight:700,maxWidth:"78%",color:l},children:t}),a&&p("span",{style:{alignSelf:"flex-start",fontSize:"3.65cqw",letterSpacing:"0.12em",fontWeight:700,padding:"4px 8px",borderRadius:2,marginTop:2,background:n,color:s},children:a})]})}function yS({name:e,price:o}){return _("div",{style:{display:"flex",flexDirection:"column",gap:2,minWidth:0},children:[p("div",{style:{flex:1,minHeight:0,borderRadius:3,position:"relative",overflow:"hidden",..._e(u.paper,u.paper2,150)},children:p(cr,{size:34,style:{left:"50%",top:"50%",transform:"translate(-50%,-50%)"}})}),p("span",{style:{fontSize:"3.65cqw",fontWeight:600,color:u.text},children:e}),p("span",{style:{fontSize:"3.65cqw",color:u.muted},children:o})]})}function fr({k:e,v:o,ok:t}){return _("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",gap:6,padding:"3.5px 2px",borderBottom:`1px solid ${u.rule}`,fontSize:"3.98cqw",color:u.muted},children:[p("span",{children:e}),_("span",{style:{display:"flex",gap:6,alignItems:"center"},children:[p("b",{style:{color:u.text,fontWeight:700},children:o}),t&&p("span",{style:{color:u.rust,fontWeight:700},children:"\u2713"})]})]})}function ke({title:e,children:o}){return _("div",{style:{...V,background:u.card,padding:"9px 10px",display:"flex",flexDirection:"column",gap:6},children:[p(am,{children:e}),o]})}function lH({size:e=14}){return p("span",{style:{width:e,height:e,borderRadius:"50%",flex:"none",display:"block",background:`linear-gradient(150deg,${u.mark1},${u.mark2})`}})}function SS({filled:e=5,size:o=6}){return _("span",{style:{fontSize:o,letterSpacing:"0.06em",color:u.rust,lineHeight:1},children:["\u2605".repeat(e),p("span",{style:{color:u.mark1},children:"\u2605".repeat(5-e)})]})}function Hi({n:e,label:o,tone:t=u.text}){return _("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:1,minWidth:0},children:[p("b",{style:{fontSize:"8.16cqw",lineHeight:1,color:t},children:e}),p("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.08em",textTransform:"uppercase",opacity:.62,color:t},children:o})]})}function Xe({children:e,w:o}){return p("span",{style:{fontSize:"3.98cqw",lineHeight:1.45,color:u.muted,width:o,display:"block"},children:e})}function rm({label:e,w:o="100%",filled:t}){return _("div",{style:{width:o,display:"flex",flexDirection:"column",gap:2},children:[p("span",{style:{fontSize:"3.32cqw",letterSpacing:"0.08em",textTransform:"uppercase",color:u.muted},children:e}),p("span",{style:{height:9,borderRadius:3,border:`1px solid ${u.rule}`,background:t?u.paper:u.card}})]})}function iH({children:e}){return p("span",{style:{alignSelf:"flex-start",fontSize:"3.65cqw",letterSpacing:"0.12em",fontWeight:700,padding:"5px 9px",borderRadius:2,background:u.text,color:u.onInk},children:e})}var Doe={wheelslisting:p(ke,{title:"All wheels",children:p("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[["Ridge 19","20\xD79 +12","$365"],["Ridge 29","18\xD79 +20","$410"],["Ridge 39","17\xD78 \u221210","$455"]].map(([e,o,t])=>_("div",{style:{display:"flex",alignItems:"center",gap:6},children:[p("span",{style:{width:20,height:15,borderRadius:3,flex:"none",position:"relative",overflow:"hidden",..._e(u.paper,u.paper2,150)},children:p(cr,{size:12,style:{left:"50%",top:"50%",transform:"translate(-50%,-50%)"}})}),p("b",{style:{flex:1,fontSize:"4.31cqw",color:u.text},children:e}),p("span",{style:{fontSize:"3.65cqw",color:u.muted},children:o}),p("b",{style:{fontSize:"4.31cqw",color:u.text,width:26,textAlign:"right"},children:t})]},e))})}),catalogfilterbar:_("div",{style:{...V,background:u.card,display:"flex",flexDirection:"column",justifyContent:"center",gap:7,padding:"0 11px"},children:[_("div",{style:{display:"flex",gap:4,alignItems:"center"},children:[["20 inch","6\xD7139.7","Black"].map(e=>_("span",{style:{fontSize:"3.65cqw",fontWeight:600,padding:"4px 7px",borderRadius:99,background:u.text,color:u.onInk,display:"flex",gap:4,alignItems:"center"},children:[e,p("span",{style:{opacity:.6},children:"\u2715"})]},e)),p("span",{style:{fontSize:"3.65cqw",color:u.rust,fontWeight:700},children:"Clear"})]}),_("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[p("span",{style:{fontSize:"3.65cqw",color:u.muted},children:"128 results"}),p("span",{style:{fontSize:"3.65cqw",color:u.muted,border:`1px solid ${u.rule}`,borderRadius:3,padding:"3px 6px"},children:"Sort: Price \u25BE"})]})]}),fitmentfinder:_("div",{style:{...V,padding:"10px 12px",display:"flex",flexDirection:"column",gap:6,justifyContent:"center",..._e(u.ink,u.inkSoft)},children:[p("span",{style:{fontSize:"5.31cqw",fontWeight:700,color:u.onInk},children:"Will it fit your rig?"}),_("div",{style:{display:"flex",gap:4},children:[["2021","Toyota","Hilux"].map(e=>_("span",{style:{flex:1,fontSize:"3.65cqw",color:u.text,background:u.card,borderRadius:3,padding:"5px 6px",display:"flex",justifyContent:"space-between"},children:[e," ",p("span",{style:{color:u.muted},children:"\u25BE"})]},e)),p("span",{style:{fontSize:"3.65cqw",fontWeight:700,letterSpacing:"0.08em",background:u.warm,color:u.ink,borderRadius:3,padding:"5px 7px"},children:"GO"})]})]}),compatibletyres:p(ke,{title:"Tyres that suit",children:p("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(3,1fr)",gap:5,minHeight:0},children:[["Ridge Grappler","$489"],["Trail Grappler","$525"],["Terra Grappler","$438"]].map(([e,o])=>_("div",{style:{display:"flex",flexDirection:"column",gap:2,minWidth:0},children:[p("div",{style:{flex:1,minHeight:0,borderRadius:3,position:"relative",overflow:"hidden",background:u.ink},children:p("span",{style:{position:"absolute",left:"50%",top:"50%",transform:"translate(-50%,-50%)",width:26,height:26,borderRadius:"50%",border:`5px solid ${u.mark2}`,boxSizing:"border-box"}})}),p("span",{style:{fontSize:"3.32cqw",fontWeight:600,color:u.text,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},children:e}),p("span",{style:{fontSize:"3.32cqw",color:u.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?u.rust:u.rule}`,color:o===0?u.rust:u.text,background:o===0?u.paper:u.card},children:e},e))})}),tyrefitment:_(ke,{title:"Will it fit your car?",children:[p("div",{style:{display:"flex",gap:3},children:["Make","Model","Year","Trim"].map(e=>_("span",{style:{flex:1,minWidth:0,fontSize:"3.32cqw",color:u.muted,background:u.paper,border:`1px solid ${u.rule}`,borderRadius:3,padding:"4px 5px",display:"flex",justifyContent:"space-between",gap:2,overflow:"hidden",whiteSpace:"nowrap"},children:[e," ",p("span",{style:{color:u.muted},children:"\u25BE"})]},e))}),p("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:2,justifyContent:"center",minHeight:0},children:[["265/65R17","Fits",!0],["285/70R17","Not your size",!1]].map(([e,o,t])=>_("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"baseline",gap:6,borderTop:`1px solid ${u.rule}`,paddingTop:3},children:[p("span",{style:{fontSize:"3.32cqw",fontWeight:600,color:u.text},children:e}),p("span",{style:{fontSize:"3.32cqw",fontWeight:t?700:400,letterSpacing:"0.06em",color:t?u.warm:u.muted},children:o})]},e))})]}),eutyrelabel:_("div",{style:{...V,background:u.card,padding:"9px 11px",display:"flex",gap:8,alignItems:"center"},children:[p("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:1.5},children:[["A","42%"],["B","56%"],["C","70%"],["D","84%"]].map(([e,o],t)=>_("div",{style:{display:"flex",alignItems:"center",gap:3},children:[p("span",{style:{width:o,height:6,borderRadius:"0 2px 2px 0",background:t===1?u.rust:u.mark1}}),p("span",{style:{fontSize:"3.32cqw",fontWeight:700,color:t===1?u.rust:u.muted},children:e})]},e))}),_("div",{style:{flex:"none",display:"flex",flexDirection:"column",gap:3,alignItems:"center"},children:[p("b",{style:{fontSize:"6.63cqw",lineHeight:1,color:u.text},children:"72"}),p("span",{style:{fontSize:"3.32cqw",letterSpacing:"0.08em",color:u.muted},children:"dB"})]})]}),bundleoffer:_("div",{style:{...V,background:u.paper,padding:"9px 11px",display:"flex",flexDirection:"column",gap:5,justifyContent:"center"},children:[p(am,{children:"Buy it with"}),_("div",{style:{display:"flex",alignItems:"center",gap:5},children:[[0,1].map(e=>p("span",{style:{width:26,height:22,borderRadius:3,flex:"none",position:"relative",overflow:"hidden",background:u.card},children:p(cr,{size:17,style:{left:"50%",top:"50%",transform:"translate(-50%,-50%)"}})},e)),p("span",{style:{fontSize:"5.69cqw",fontWeight:700,color:u.muted},children:"+"}),_("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:1},children:[p("span",{style:{fontSize:"3.65cqw",color:u.muted,textDecoration:"line-through"},children:"$1,024"}),p("b",{style:{fontSize:"6.02cqw",color:u.rust,lineHeight:1},children:"$899"})]})]})]}),checkoutcta:_("div",{style:{...V,display:"flex",alignItems:"center",justifyContent:"space-between",padding:"0 13px",gap:8,..._e(u.ink,u.ink2)},children:[_("div",{style:{display:"flex",flexDirection:"column",gap:2},children:[p("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.12em",color:u.warm,fontWeight:700},children:"READY TO ORDER"}),p("b",{style:{fontSize:"6.63cqw",color:u.onInk,lineHeight:1},children:"$1,956"}),p("span",{style:{fontSize:"3.65cqw",color:u.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:u.warm,color:u.ink,flex:"none"},children:"CHECKOUT"})]}),contact:p(ke,{title:"Who do you need?",children:p("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[["Fitment help","the workshop"],["Order status","the front desk"],["Trade accounts","sales"]].map(([e,o])=>_("div",{style:{display:"flex",alignItems:"center",gap:5},children:[p("b",{style:{flex:1,fontSize:"4.31cqw",color:u.text},children:e}),p("span",{style:{fontSize:"3.65cqw",color:u.muted},children:o}),p("span",{style:{fontSize:"4.64cqw",color:u.rust,lineHeight:1},children:"\u203A"})]},e))})}),contactlocations:p(ke,{title:"Find us",children:p("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(2,1fr)",gap:5,minHeight:0},children:[["Brisbane","7 Kerry Rd","Mon\u2013Sat"],["Townsville","12 Enterprise","Mon\u2013Fri"]].map(([e,o,t])=>_("div",{style:{border:`1px solid ${u.rule}`,borderRadius:4,padding:"5px 6px",display:"flex",flexDirection:"column",gap:1},children:[p("b",{style:{fontSize:"4.31cqw",color:u.text},children:e}),p("span",{style:{fontSize:"3.32cqw",color:u.muted},children:o}),p("span",{style:{fontSize:"3.32cqw",color:u.rust,fontWeight:700},children:t})]},e))})}),citypictures:p(ke,{title:"Our studios",children:_("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:3,minHeight:0},children:[p("span",{style:{fontSize:"3.32cqw",letterSpacing:"0.12em",fontWeight:700,color:u.muted},children:"A \xB7 AMERICAS"}),p("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(3,1fr)",gap:4,minHeight:0},children:["Los Angeles","Miami","Toronto"].map(e=>_("div",{style:{position:"relative",minHeight:0},children:[p(U,{r:3,style:{...V,background:`linear-gradient(transparent 45%,${u.scrim} 45%),${_e(u.ink,u.inkSoft2).background}`}}),p("b",{style:{position:"absolute",left:5,bottom:4,fontSize:"3.65cqw",color:u.onInk},children:e})]},e))})]})}),citymaps:p(ke,{title:"Find us",children:p("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(2,1fr)",gap:5,minHeight:0},children:[["Brisbane","7 Kerry Rd"],["Townsville","12 Enterprise"]].map(([e,o])=>_("div",{style:{position:"relative",padding:"4px 5px",display:"flex",flexDirection:"column",gap:2,minHeight:0},children:[p(U,{r:4,style:{...V,background:"none",border:`1px solid ${u.rule}`}}),p("b",{style:{position:"relative",fontSize:"4.31cqw",color:u.text},children:e}),p("span",{style:{position:"relative",fontSize:"3.32cqw",color:u.muted},children:o}),_("div",{style:{flex:1,minHeight:0,position:"relative"},children:[p(U,{r:3,style:{...V,..._e(u.paper,u.paper2,150)}}),p(U,{w:"60%",h:"60%",r:8,style:{position:"absolute",left:"12%",top:"20%",background:u.mark1,opacity:.75}}),p(U,{w:6,h:6,r:3,style:{position:"absolute",left:"44%",top:"34%",background:u.rust}})]})]},e))})}),form:p(ke,{title:"Send us a message",children:_("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[_("div",{style:{display:"flex",gap:5},children:[p(rm,{label:"Name"}),p(rm,{label:"Email"})]}),p(rm,{label:"Message",filled:!0}),p(iH,{children:"SEND"})]})}),appointmentbooking:p(ke,{title:"Book a fitting",children:_("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[p("div",{style:{display:"flex",gap:3},children:["Mon","Tue","Wed","Thu"].map((e,o)=>p("span",{style:{flex:1,textAlign:"center",fontSize:"3.32cqw",fontWeight:o===2?700:500,padding:"4px 0",borderRadius:3,background:o===2?u.text:u.paper,color:o===2?u.onInk:u.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?u.rust:u.rule}`,color:o===1?u.rust:u.muted,background:o===3?u.paper:u.card,textDecoration:o===3?"line-through":"none"},children:e},e))})]})}),reviewform:p(ke,{title:"Leave a review",children:_("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:5,justifyContent:"center"},children:[p(SS,{filled:4,size:14}),p(rm,{label:"Your review",filled:!0}),p(iH,{children:"POST"})]})}),submitbuild:p(ke,{title:"Show us your build",children:_("div",{style:{flex:1,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:3,border:`1px dashed ${u.mark1}`,borderRadius:5,background:u.paper},children:[p("span",{style:{fontSize:"6.63cqw",lineHeight:1,color:u.rust,fontWeight:300},children:"+"}),p("span",{style:{fontSize:"3.65cqw",color:u.muted},children:"Drop a photo of your rig"})]})}),masthead:_("div",{style:{...V,background:u.paper,display:"flex",flexDirection:"column",justifyContent:"center",padding:"0 13px",gap:5},children:[p("span",{style:{height:1.5,background:u.text}}),p("span",{style:{fontSize:"7.65cqw",fontWeight:800,letterSpacing:"0.02em",color:u.text,lineHeight:1},children:"THE TRACK"}),_("div",{style:{display:"flex",justifyContent:"space-between",fontSize:"3.65cqw",letterSpacing:"0.1em",textTransform:"uppercase",color:u.muted},children:[p("span",{children:"Issue 14"}),p("span",{children:"Spring 2026"})]}),p("span",{style:{height:1,background:u.rule}})]}),featuredcover:_("div",{style:{...V,overflow:"hidden",..._e(u.ink,u.inkSoft2)},children:[p(cr,{size:92,style:{right:-18,top:-14}}),p("div",{style:{position:"absolute",inset:0,background:`linear-gradient(0deg,${u.scrim},transparent 62%)`}}),_("div",{style:{position:"absolute",left:12,right:12,bottom:11,display:"flex",flexDirection:"column",gap:3},children:[p("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.16em",fontWeight:700,color:u.warm},children:"FEATURE"}),p("span",{style:{fontSize:"6.16cqw",lineHeight:1.15,fontWeight:700,color:u.onInk},children:"Four days on the Madigan Line"})]})]}),longread:_("div",{style:{...V,background:u.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:u.rust},children:"12 MIN READ"}),p("span",{style:{fontSize:"6.02cqw",lineHeight:1.15,fontWeight:700,color:u.text},children:"What breaks first, and why"}),p(Xe,{children:"Every failure starts in the same place:"}),p(Xe,{w:"80%",children:"the bolt nobody re-torqued."})]}),articlebody:_("div",{style:{...V,background:u.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:u.text},children:"Why offset beats width"}),p(Xe,{w:"100%",children:"A wider wheel adds grip only if the offset still"}),p(Xe,{w:"88%",children:"clears the arch, so the offset is chosen first."}),p(Xe,{w:"80%",children:"Width follows from the space left."})]}),series:p(ke,{title:"Recurring columns",children:p("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:5,justifyContent:"center"},children:[["Shed Notes","Monthly"],["Track Tested","Fortnightly"],["Reader Rigs","Weekly"]].map(([e,o])=>_("div",{style:{display:"flex",alignItems:"center",gap:6},children:[p("span",{style:{width:3,height:12,borderRadius:2,background:u.rust,flex:"none"}}),p("b",{style:{flex:1,fontSize:"4.64cqw",color:u.text},children:e}),p("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.08em",textTransform:"uppercase",color:u.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:[[u.inkSoft,u.inkSoft2,"Madigan Line, four days"],[u.rust,u.warm,"Why offset beats width"]].map(([e,o,t])=>_("div",{style:{display:"flex",gap:6,alignItems:"center"},children:[p("span",{style:{width:24,height:18,borderRadius:3,flex:"none",..._e(e,o,150)}}),_("div",{style:{display:"flex",flexDirection:"column",gap:1,minWidth:0},children:[p("b",{style:{fontSize:"4.31cqw",color:u.text},children:t}),p("span",{style:{fontSize:"3.65cqw",color:u.muted},children:"4 Sep \xB7 Shed Notes"})]})]},t))})}),docmasthead:_("div",{style:{...V,background:u.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:u.muted},children:"POLICY"}),p("span",{style:{fontSize:"6.49cqw",fontWeight:700,color:u.text,lineHeight:1.1},children:"Returns & refunds"}),p("span",{style:{fontSize:"3.65cqw",color:u.muted},children:"Version 3 \xB7 Updated 4 Sep 2026"}),p("span",{style:{height:2,width:26,background:u.rust,borderRadius:1}})]}),docbody:p("div",{style:{...V,background:u.card,padding:"9px 13px",display:"flex",flexDirection:"column",gap:3,justifyContent:"center"},children:[["1.","You may return an unfitted wheel within 30 days."],["2.","Fitted wheels are covered by the structural warranty."],["3.","Freight on a change of mind is yours."]].map(([e,o])=>_("div",{style:{display:"flex",gap:5},children:[p("b",{style:{fontSize:"3.98cqw",color:u.rust,flex:"none"},children:e}),p(Xe,{children:o})]},e))}),docmetacards:p(ke,{title:"At a glance",children:p("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(2,1fr)",gap:5,minHeight:0},children:[["30 days","To return"],["5 years","Structural"],["Free","Fitting"],["48 hrs","Dispatch"]].map(([e,o])=>_("div",{style:{border:`1px solid ${u.rule}`,borderRadius:4,padding:"5px 6px",display:"flex",flexDirection:"column",gap:1},children:[p("b",{style:{fontSize:"5.31cqw",color:u.text,lineHeight:1},children:e}),p("span",{style:{fontSize:"3.32cqw",letterSpacing:"0.08em",textTransform:"uppercase",color:u.muted},children:o})]},o))})}),doctabs:_("div",{style:{...V,background:u.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?u.text:u.muted,background:o===0?u.paper:"transparent",borderRadius:"4px 4px 0 0",border:`1px solid ${o===0?u.rule:"transparent"}`,borderBottom:"none"},children:e},e))}),p("span",{style:{height:1,background:u.rule}}),_("div",{style:{paddingTop:6,display:"flex",flexDirection:"column",gap:2},children:[p(Xe,{children:"Unfitted wheels come back within 30 days, no questions."}),p(Xe,{w:"58%",children:"Freight on a change of mind is yours."})]})]}),paragraphs:_("div",{style:{...V,background:u.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:u.text},children:"The right wheel is the boring one."}),_("div",{style:{flex:1,display:"flex",flexDirection:"column"},children:[p(Xe,{children:"Forged, correctly offset, rated for what you actually"}),p(Xe,{children:"carry. Everything else is a photograph."})]})]}),keyfeatures:p(ke,{title:"Key features",children:p("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:["Flow-formed barrel","1250 kg per corner","Hub-centric fit"].map(e=>_("div",{style:{display:"flex",gap:6,alignItems:"center"},children:[p("span",{style:{fontSize:"4.64cqw",color:u.rust,fontWeight:700,lineHeight:1},children:"\u2713"}),p("span",{style:{fontSize:"4.31cqw",color:u.text},children:e})]},e))})}),statsparagraph:_("div",{style:{...V,background:u.paper,padding:"10px 12px",display:"flex",gap:10,alignItems:"center"},children:[_("div",{style:{flex:"none",display:"flex",flexDirection:"column",gap:5},children:[p(Hi,{n:"27k",label:"Rigs"}),p(Hi,{n:"4.9",label:"Rating"})]}),_("div",{style:{flex:1,display:"flex",flexDirection:"column"},children:[p(Xe,{children:"Twelve years of fitting the same three questions, and the"}),p(Xe,{children:"answer has not moved: load rating, offset, then looks."})]})]}),chart:_(ke,{title:"Load vs weight",children:[p("div",{style:{flex:1,display:"flex",alignItems:"flex-end",gap:5,paddingBottom:2},children:[38,62,84,71,96].map((e,o)=>p("span",{style:{flex:1,height:`${e}%`,borderRadius:"2px 2px 0 0",background:o===4?u.rust:u.mark1}},o))}),p("span",{style:{height:1,background:u.rule,marginTop:-4}})]}),mockup:p("div",{style:{...V,overflow:"hidden",display:"flex",alignItems:"center",justifyContent:"center",..._e(u.inkSoft,u.ink)},children:_("div",{style:{width:"72%",height:"74%",borderRadius:4,overflow:"hidden",background:u.card,boxShadow:`0 6px 14px ${u.scrim}`},children:[p("div",{style:{height:9,background:u.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:u.mark1}},e))}),_("div",{style:{padding:5,display:"flex",flexDirection:"column",gap:3},children:[p("span",{style:{height:4,width:"56%",borderRadius:1,background:u.mark2}}),p("span",{style:{height:14,borderRadius:2,..._e(u.paper,u.paper2,150)}}),p("span",{style:{height:3,width:"38%",borderRadius:1,background:u.rust}})]})]})}),manifesto:p("div",{style:{...V,overflow:"hidden",display:"flex",alignItems:"center",padding:"0 16px",..._e(u.ink,u.ink2)},children:_("span",{style:{fontSize:"6.63cqw",lineHeight:1.2,fontWeight:700,color:u.onInk},children:["We build for the ",p("span",{style:{color:u.warm},children:"last"})," ten percent of the track."]})}),timeline:p(ke,{title:"Our story",children:p("div",{style:{flex:1,display:"flex",flexDirection:"column",justifyContent:"center",gap:6,paddingLeft:4},children:[["1998","One shed, one lathe."],["2009","First forged rim."],["2024","27,000 rigs on."]].map(([e,o],t)=>_("div",{style:{display:"flex",gap:7,alignItems:"flex-start",position:"relative"},children:[t<2&&p("span",{style:{position:"absolute",left:3,top:8,bottom:-8,width:1,background:u.rule}}),p("span",{style:{width:7,height:7,borderRadius:"50%",flex:"none",marginTop:1,background:u.rust,zIndex:1}}),_("div",{style:{display:"flex",flexDirection:"column",gap:0,minWidth:0},children:[p("b",{style:{fontSize:"4.64cqw",color:u.text},children:e}),p(Xe,{children:o})]})]},e))})}),timelinetrack:_("div",{style:{...V,padding:"0 12px",display:"flex",flexDirection:"column",gap:10,justifyContent:"center",..._e(u.ink,u.inkSoft)},children:[p("span",{style:{fontSize:"3.98cqw",fontWeight:700,letterSpacing:"0.14em",textTransform:"uppercase",color:u.warm},children:"Milestones"}),_("div",{style:{position:"relative",display:"flex",justifyContent:"space-between",paddingTop:7},children:[p("span",{style:{position:"absolute",left:0,right:0,top:3,height:1,background:u.mark2,opacity:.55}}),["1998","2009","2016","2024"].map((e,o)=>_("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:3,position:"relative"},children:[p("span",{style:{position:"absolute",top:-7,width:6,height:6,borderRadius:"50%",background:o===3?u.warm:u.mark1}}),p("span",{style:{fontSize:"4.31cqw",fontWeight:700,color:o===3?u.warm:u.onInk,opacity:o===3?1:.75},children:e})]},e))]})]}),footprint:_("div",{style:{...V,overflow:"hidden",..._e(u.paper,u.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:u.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:u.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:u.rust}},e)),p("span",{style:{position:"absolute",left:11,bottom:9,fontSize:"4.64cqw",fontWeight:700,color:u.text},children:"3 fitting bays"})]}),banner:_("div",{style:{...V,display:"flex",alignItems:"center",justifyContent:"space-between",padding:"0 13px",gap:8,background:u.rust},children:[_("div",{style:{display:"flex",flexDirection:"column",gap:2},children:[p("b",{style:{fontSize:"6.02cqw",color:u.onInk},children:"End of season \xB7 20% off"}),p("span",{style:{fontSize:"3.98cqw",color:u.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:u.onInk,color:u.text,flex:"none"},children:"SHOP"})]}),titlewithbuttons:_("div",{style:{...V,background:u.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:u.text},children:"Not sure what fits?"}),_("div",{style:{display:"flex",gap:5},children:[p("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.12em",fontWeight:700,padding:"5px 9px",borderRadius:2,background:u.text,color:u.onInk},children:"FIND MY FIT"}),p("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.12em",fontWeight:700,padding:"5px 9px",borderRadius:2,border:`1px solid ${u.text}`,color:u.text},children:"CALL US"})]})]}),ticker:p("div",{style:{...V,overflow:"hidden",background:u.ink,display:"flex",alignItems:"center"},children:p("span",{style:{whiteSpace:"nowrap",fontSize:"6.29cqw",fontWeight:800,letterSpacing:"0.06em",color:u.warm,marginLeft:-14},children:"FREE FITTING \xB7 48HR DISPATCH \xB7 FREE FITTING \xB7 48HR DISPATCH"})}),countdown:_("div",{style:{...V,padding:"10px 12px",display:"flex",flexDirection:"column",alignItems:"center",gap:6,justifyContent:"center",..._e(u.ink,u.ink2)},children:[p("span",{style:{fontSize:"3.65cqw",fontWeight:700,letterSpacing:"0.16em",textTransform:"uppercase",color:u.muted},children:"Back online in"}),p("div",{style:{display:"flex",alignItems:"flex-start",gap:5},children:[["23","Hours"],["59","Minutes"],["48","Seconds"]].map(([e,o],t)=>_("div",{style:{display:"flex",alignItems:"flex-start",gap:5},children:[t>0&&p("b",{style:{fontSize:"9.5cqw",lineHeight:1,color:u.warm},children:":"}),_("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:2},children:[p("b",{style:{fontSize:"11.5cqw",lineHeight:1,color:u.onInk,fontVariantNumeric:"tabular-nums"},children:e}),p("span",{style:{fontSize:"3.2cqw",letterSpacing:"0.1em",textTransform:"uppercase",opacity:.62,color:u.onInk},children:o})]})]},o))})]}),breadcrumb:p("div",{style:{...V,background:u.card,display:"flex",alignItems:"center",padding:"0 13px"},children:_("span",{style:{fontSize:"4.64cqw",color:u.muted},children:["Home ",p("span",{style:{opacity:.5},children:"/"})," Wheels ",p("span",{style:{opacity:.5},children:"/"})," ",p("span",{style:{color:u.text,fontWeight:700},children:"20 inch"})]})}),categorybar:_("div",{style:{...V,background:u.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?u.text:u.paper,color:o===0?u.onInk:u.muted},children:e},e))}),p("span",{style:{height:1,background:u.rule}})]}),intro:_("div",{style:{...V,overflow:"hidden",background:u.card},children:[p("div",{style:{position:"absolute",inset:0,..._e(u.ink,u.inkSoft2)}}),p(cr,{size:64,style:{right:8,top:6}}),_("div",{style:{position:"absolute",left:16,right:16,bottom:8,top:"46%",background:u.paper,borderRadius:6,padding:"8px 11px",display:"flex",flexDirection:"column",gap:2,boxShadow:`0 -4px 10px ${u.scrim}`},children:[p("span",{style:{fontSize:"5.69cqw",fontWeight:700,color:u.text},children:"Since 1998"}),p(Xe,{children:"One shed, one lathe, one idea."}),p(Xe,{w:"66%",children:"It turned out to be right."})]})]}),gallerygrid:p(ke,{title:"Photo gallery",children:p("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(3,1fr)",gridTemplateRows:"repeat(2,1fr)",gap:4,minHeight:0},children:[[u.rust,u.warm],[u.inkSoft,u.ink],[u.paper2,u.mark2],[u.ink,u.inkSoft2],[u.warm,u.paper2],[u.mark2,u.inkSoft]].map(([e,o],t)=>p("div",{style:{borderRadius:3,..._e(e,o,140+t*22)}},t))})}),gallery:_(ke,{title:"Gallery",children:[p("div",{style:{display:"flex",gap:8,alignItems:"center",marginTop:-2},children:["On the truck","Studio","Close-ups"].map((e,o)=>p("span",{style:{fontSize:"3.98cqw",fontWeight:o===0?700:500,color:o===0?u.text:u.muted,borderBottom:`1.5px solid ${o===0?u.rust:"transparent"}`,paddingBottom:2},children:e},e))}),p("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(3,1fr)",gap:4,minHeight:0},children:[[u.rust,u.warm],[u.ink,u.inkSoft],[u.paper2,u.mark2]].map(([e,o],t)=>p("div",{style:{borderRadius:3,..._e(e,o,150+t*20)}},t))})]}),ordersummary:_(ke,{title:"Order summary",children:[_("div",{style:{display:"flex",gap:6,alignItems:"center",paddingBottom:4},children:[p("span",{style:{width:26,height:26,borderRadius:4,position:"relative",overflow:"hidden",flex:"none",..._e(u.paper,u.paper2,150)},children:p(cr,{size:18,style:{left:"50%",top:"50%",transform:"translate(-50%,-50%)"}})}),_("div",{style:{display:"flex",flexDirection:"column",gap:1,minWidth:0},children:[p("b",{style:{fontSize:"4.31cqw",color:u.text},children:"Ridge Grappler"}),p("span",{style:{fontSize:"3.65cqw",color:u.muted},children:"20\xD79 +12 \xB7 qty 4"})]})]}),_("div",{style:{flex:1,minHeight:0,display:"flex",flexDirection:"column",justifyContent:"center"},children:[p(fr,{k:"Subtotal",v:"$1,956"}),p(fr,{k:"Fitting",v:"Free"}),_("div",{style:{display:"flex",justifyContent:"space-between",paddingTop:5,fontSize:"4.64cqw"},children:[p("b",{style:{color:u.text},children:"Total"}),p("b",{style:{color:u.text,fontSize:"6.02cqw"},children:"$1,956"})]})]})]}),deliveryoptions:p(ke,{title:"Delivery",children:p("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[["Standard","3\u20135 days","Free",!0],["Express","Next day","$19",!1]].map(([e,o,t,r])=>_("div",{style:{display:"flex",alignItems:"center",gap:6,padding:"5px 6px",borderRadius:4,border:`1px solid ${r?u.rust:u.rule}`,background:r?u.paper:u.card},children:[p("span",{style:{width:7,height:7,borderRadius:"50%",flex:"none",border:`1.5px solid ${r?u.rust:u.mark1}`,background:r?u.rust:"transparent"}}),p("span",{style:{flex:1,fontSize:"4.31cqw",fontWeight:600,color:u.text},children:e}),p("span",{style:{fontSize:"3.98cqw",color:u.muted},children:o}),p("b",{style:{fontSize:"4.31cqw",color:u.text},children:t})]},e))})}),paymentbadges:_("div",{style:{...V,background:u.paper,display:"flex",flexDirection:"column",gap:8,justifyContent:"center",padding:"0 12px"},children:[p(am,{children:"Ways to pay"}),p("div",{style:{display:"flex",gap:5},children:[["VISA",u.ink],["MC",u.rust],["AMEX",u.inkSoft],["PayPal",u.ink2]].map(([e,o])=>p("span",{style:{flex:1,textAlign:"center",fontSize:"3.65cqw",fontWeight:800,letterSpacing:"0.06em",color:u.onInk,borderRadius:3,padding:"6px 0",background:o},children:e},e))})]}),stats:_("div",{style:{...V,padding:"10px 12px",display:"flex",flexDirection:"column",gap:9,justifyContent:"center",..._e(u.ink,u.ink2)},children:[p("span",{style:{fontSize:"3.98cqw",fontWeight:700,letterSpacing:"0.14em",textTransform:"uppercase",color:u.warm},children:"By the numbers"}),_("div",{style:{display:"flex",gap:8},children:[p(Hi,{n:"27k",label:"Rigs fitted",tone:u.onInk}),p(Hi,{n:"12",label:"Years",tone:u.onInk}),p(Hi,{n:"4.9",label:"Avg rating",tone:u.warm})]})]}),testimonials:_("div",{style:{...V,overflow:"hidden",background:u.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:u.rust,opacity:.16},children:"\u201D"}),p(SS,{filled:5,size:7}),p("span",{style:{position:"relative",fontSize:"5.31cqw",lineHeight:1.35,color:u.text,fontWeight:600},children:"\u201CTook them out to the Simpson and back. Not one chip.\u201D"}),_("div",{style:{display:"flex",alignItems:"center",gap:5},children:[p(lH,{}),p("span",{style:{fontSize:"3.98cqw",color:u.muted},children:"Dave M. \xB7 Hilux N80"})]})]}),reviews:_(ke,{title:"Reviews",children:[p("div",{style:{display:"flex",gap:4,height:22},children:[[u.inkSoft,u.inkSoft2],[u.rust,u.warm],[u.ink,u.inkSoft],[u.mark2,u.mark1]].map(([e,o],t)=>p("div",{style:{flex:1,borderRadius:3,..._e(e,o,140+t*15)}},t))}),p("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:5,justifyContent:"center"},children:[["Dave M.",5,"Not one chip after the Simpson."],["Sara K.",4,"Fitted in an hour, no fuss."]].map(([e,o,t])=>_("div",{style:{display:"flex",gap:5,alignItems:"flex-start"},children:[p(lH,{size:12}),_("div",{style:{display:"flex",flexDirection:"column",gap:1,minWidth:0},children:[_("div",{style:{display:"flex",gap:4,alignItems:"center"},children:[p("b",{style:{fontSize:"3.98cqw",color:u.text},children:e}),p(SS,{filled:o})]}),p(Xe,{children:t})]})]},e))})]}),logos:_("div",{style:{...V,display:"flex",flexDirection:"column",gap:9,justifyContent:"center",padding:"0 12px",..._e(u.ink,u.inkSoft)},children:[p("span",{style:{fontSize:"3.98cqw",fontWeight:700,letterSpacing:"0.14em",textTransform:"uppercase",color:u.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:u.onInk,opacity:.82},children:e},e))})]}),prose:_("div",{style:{...V,background:u.paper,padding:"11px 14px",display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[p("span",{style:{fontSize:"5.86cqw",fontWeight:700,color:u.text},children:"Why offset matters"}),_("div",{style:{display:"flex",gap:6},children:[p("span",{style:{fontSize:"15.3cqw",lineHeight:.78,fontWeight:800,color:u.rust,marginTop:1},children:"T"}),_("div",{style:{display:"flex",flexDirection:"column"},children:[p(Xe,{children:"he number on the back of your wheel decides whether the"}),p(Xe,{w:"76%",children:"tyre sits under the guard or an inch outside it."})]})]})]}),cards:p(ke,{title:"What you get",children:p("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(3,1fr)",gap:5,minHeight:0},children:[["Fitted free","In store, same day."],["5 yr cover","Structural, no fine print."],["Swap it","30 days, any reason."]].map(([e,o])=>_("div",{style:{border:`1px solid ${u.rule}`,borderRadius:4,padding:6,display:"flex",flexDirection:"column",gap:2},children:[p("span",{style:{width:11,height:11,borderRadius:3,background:u.rust,opacity:.9}}),p("b",{style:{fontSize:"3.98cqw",color:u.text},children:e}),p(Xe,{children:o})]},e))})}),faq:p(ke,{title:"Questions",children:p("div",{style:{flex:1,display:"flex",flexDirection:"column",justifyContent:"center"},children:[["Will these fit my Hilux?",!0],["Do you fit them for me?",!1],["What if I pick wrong?",!1]].map(([e,o])=>_("div",{style:{borderBottom:`1px solid ${u.rule}`,padding:"4px 2px"},children:[_("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",gap:6},children:[p("b",{style:{fontSize:"4.31cqw",color:u.text},children:e}),p("span",{style:{fontSize:"4.64cqw",color:u.muted,lineHeight:1},children:o?"\u2212":"+"})]}),o&&p(Xe,{w:"90%",children:"Use the fitment finder \u2014 it reads your build, not just the model."})]},e))})}),hero:_("div",{style:{...V,overflow:"hidden",..._e(u.ink,u.ink2)},children:[p("div",{style:{...V,background:`linear-gradient(90deg,${u.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(sH,{over:"NEW \xB7 SUMMER",overTone:u.warm,head:"Built for the worst road you own",cta:"SHOP ALL",ctaBg:u.warm,ctaFg:u.ink,tone:u.onInk})}),p(cr,{size:104,style:{right:-24,bottom:-30}})]}),herosingle:_("div",{style:{...V,display:"flex",background:u.paper,overflow:"hidden"},children:[p("div",{style:{flex:1,padding:12,display:"flex",flexDirection:"column",gap:5,justifyContent:"center"},children:p(sH,{over:"ALL-TERRAIN",overTone:u.rust,head:"Grip that does not ask",headSize:12,cta:"EXPLORE",ctaBg:u.text,ctaFg:u.onInk,tone:u.text})}),p("div",{style:{flex:1,position:"relative",..._e(u.inkSoft,u.inkSoft2)},children:p(cr,{size:74,style:{right:-14,top:16}})})]}),productgrid:p(ke,{title:"Best sellers",children:_("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(3,1fr)",gap:5,minHeight:0},children:[p(yS,{name:"Ridge 19",price:"$365"}),p(yS,{name:"Ridge 29",price:"$410"}),p(yS,{name:"Ridge 39",price:"$455"})]})}),collections:p(ke,{title:"Shop by category",children:p("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(3,1fr)",gap:5,minHeight:0},children:[["Wheels",u.inkSoft,u.inkSoft2],["Tyres",u.rust,u.warm],["Lift kits",u.ink,u.inkSoft]].map(([e,o,t])=>p("div",{style:{borderRadius:4,display:"flex",alignItems:"flex-end",padding:5,color:u.onInk,..._e(o,t)},children:p("span",{style:{fontSize:"3.98cqw",fontWeight:700,letterSpacing:"0.04em"},children:e})},e))})}),producthero:_("div",{style:{...V,display:"flex",background:u.card,overflow:"hidden"},children:[p("div",{style:{flex:1.1,position:"relative",..._e(u.paper,u.paper2,150)},children:p(cr,{size:78,style:{left:"50%",top:"50%",transform:"translate(-50%,-50%)"}})}),_("div",{style:{flex:1,padding:"10px 10px 10px 8px",display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[p("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.16em",fontWeight:700,color:u.rust},children:"NITTO"}),p("b",{style:{fontSize:"6.29cqw",color:u.text},children:"Ridge Grappler"}),p("span",{style:{fontSize:"6.63cqw",fontWeight:700,color:u.text},children:"$489"}),p("span",{style:{alignSelf:"flex-start",fontSize:"3.65cqw",letterSpacing:"0.12em",fontWeight:700,padding:"4px 8px",borderRadius:2,background:u.text,color:u.onInk},children:"ADD TO CART"})]})]}),spectable:p(ke,{title:"Specifications",children:_("div",{style:{flex:1,display:"flex",flexDirection:"column",justifyContent:"center"},children:[p(fr,{k:"Diameter",v:'20"'}),p(fr,{k:"Width",v:"9.0J"}),p(fr,{k:"Offset",v:"+12"}),p(fr,{k:"Load",v:"1250 kg"})]})}),fitmenttable:p(ke,{title:"Will it fit?",children:_("div",{style:{flex:1,display:"flex",flexDirection:"column",justifyContent:"center"},children:[p(fr,{k:"Hilux N80",v:"20\xD79 +12",ok:!0}),p(fr,{k:"Ranger PX3",v:"20\xD79 +12",ok:!0}),p(fr,{k:"LC79",v:"17\xD78 \u221210",ok:!0})]})}),processsteps:_("div",{style:{...V,background:u.paper,padding:10,display:"flex",flexDirection:"column",gap:7,justifyContent:"center"},children:[p(am,{children:"How it works"}),p("div",{style:{display:"flex",gap:6},children:["Pick your rig","Match the fit","We fit it"].map((e,o)=>_("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:2},children:[p("span",{style:{width:11,height:11,borderRadius:"50%",background:u.text,color:u.onInk,fontSize:"3.98cqw",display:"flex",alignItems:"center",justifyContent:"center",fontWeight:700},children:o+1}),p("span",{style:{fontSize:"3.98cqw",color:u.text,fontWeight:600},children:e})]},e))})]}),detailrows:p("div",{style:{...V,background:u.card,display:"flex",flexDirection:"column",overflow:"hidden"},children:[["Forged, not cast","Half the weight, twice the road.",!1],["Fits your load","Rated to 1250 kg a corner.",!0]].map(([e,o,t])=>{let r=p("div",{style:{flex:1,..._e(t?u.rust:u.inkSoft,t?u.warm:u.inkSoft2)}},"art"),a=_("div",{style:{flex:1.1,padding:8,display:"flex",flexDirection:"column",gap:2,justifyContent:"center"},children:[p("b",{style:{fontSize:"4.64cqw",color:u.text},children:e}),p("span",{style:{fontSize:"3.98cqw",color:u.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:u.ink,color:u.onInk,display:"flex",alignItems:"center",justifyContent:"space-around",padding:"0 8px"},children:[["5 yr","Warranty"],["Free","Fitting"],["48 hr","Dispatch"]].map(([e,o])=>_("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:1},children:[p("b",{style:{fontSize:"5.69cqw",letterSpacing:"0.02em"},children:e}),p("span",{style:{fontSize:"3.65cqw",color:u.mark2,letterSpacing:"0.1em",textTransform:"uppercase"},children:o})]},o))})},dH={subscribe:_("div",{style:{...V,padding:13,display:"flex",flexDirection:"column"},children:[_("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:8},children:[_("div",{style:{display:"flex",alignItems:"center",gap:6},children:[p(U,{w:8,h:8,r:2,tone:"accent"}),p(U,{w:38,h:7,r:3,tone:"dark"}),p(U,{w:16,h:7,r:3,tone:"accent"})]}),p(U,{w:38,h:4,r:2,tone:"soft"})]}),p("div",{style:{height:1,background:to.line,marginBottom:10}}),_("div",{style:{flex:1,display:"flex",gap:10,border:`1px solid ${to.line}`,borderRadius:7,padding:10},children:[_("div",{style:{flex:1.1,display:"flex",flexDirection:"column",justifyContent:"center",gap:5},children:[p(U,{w:"46%",h:3,r:2,tone:"accent"}),p(U,{w:"84%",h:8,r:4,tone:"dark"}),p(U,{w:"56%",h:8,r:4,tone:"accent"}),p(U,{w:"96%",h:3,r:2,tone:"soft",style:{marginTop:2}}),_("div",{style:{display:"flex",gap:5,marginTop:4},children:[p("div",{style:{flex:1,height:13,borderRadius:5,border:`1px solid ${to.line}`,background:to.block}}),p(U,{w:34,h:13,r:5,tone:"accent"})]})]}),_("div",{style:{flex:1,background:to.block,borderRadius:6,padding:8,display:"flex",flexDirection:"column",gap:6},children:[p(U,{w:"52%",h:4,r:2,tone:"accent"}),Array.from({length:3}).map((e,o)=>_("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",gap:6,borderTop:o?`1px solid ${to.line}`:"none",paddingTop:o?4:0},children:[p(U,{w:34,h:4,r:2,tone:"dark"}),p(U,{w:16,h:3,r:2,tone:"soft"})]},o))]})]})]}),split:_("div",{style:{...V,display:"flex"},children:[p("div",{style:{width:"44%",background:gS}}),_("div",{style:{flex:1,padding:15,display:"flex",flexDirection:"column",justifyContent:"center",gap:7},children:[p(U,{w:"44%",h:5,r:3,tone:"accent"}),p(U,{w:"88%",h:8,r:4,tone:"dark"}),p(U,{w:"70%",h:8,r:4,tone:"dark"}),p(U,{w:"94%",h:5,r:2,tone:"soft",style:{marginTop:2}}),p(U,{w:"80%",h:5,r:2,tone:"soft"}),p(U,{w:"40%",h:13,r:6,tone:"accent",style:{marginTop:5}})]})]}),sectionheader:_(fH,{children:[p(U,{w:"18%",h:6,r:3,tone:"accent",style:{position:"absolute",top:15,right:16}}),_("div",{style:{...V,padding:16,display:"flex",flexDirection:"column",justifyContent:"center",gap:10},children:[_("div",{style:{display:"flex",alignItems:"center",gap:9},children:[p(U,{w:16,h:16,r:4,tone:"accent"}),p(U,{w:"20%",h:9,r:4,tone:"dark"})]}),p(U,{w:"62%",h:10,r:5,tone:"dark"}),p(U,{w:"42%",h:6,r:3,tone:"soft"})]})]}),header:p("div",{style:{...V,padding:14,display:"flex",flexDirection:"column",justifyContent:"center"},children:_("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[p(U,{w:"22%",h:12,r:4,tone:"dark"}),_("div",{style:{display:"flex",gap:9,alignItems:"center"},children:[p(U,{w:26,h:6,r:3,tone:"soft"}),p(U,{w:26,h:6,r:3,tone:"soft"}),p(U,{w:26,h:6,r:3,tone:"soft"}),p(U,{w:18,h:14,r:5,tone:"accent"})]})]})}),footer:_("div",{style:{...V,padding:15,display:"flex",flexDirection:"column",justifyContent:"center",gap:12},children:[_("div",{style:{display:"flex",gap:14},children:[_("div",{style:{flex:1.4,display:"flex",flexDirection:"column",gap:6},children:[p(U,{w:"60%",h:9,r:4,tone:"dark"}),p(U,{w:"90%",h:5,r:2,tone:"soft"}),p(U,{w:"70%",h:5,r:2,tone:"soft"})]}),[0,1].map(e=>_("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:6},children:[p(U,{w:"50%",h:6,r:3,tone:"dark"}),p(U,{w:"80%",h:5,r:2,tone:"soft"}),p(U,{w:"66%",h:5,r:2,tone:"soft"})]},e))]}),p("div",{style:{height:1,background:to.line}}),_("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[p(U,{w:"30%",h:5,r:2,tone:"soft"}),p(U,{w:"16%",h:5,r:2,tone:"soft"})]})]}),grid:p("div",{style:{...V,padding:14,display:"grid",gridTemplateColumns:"1fr 1fr",gridTemplateRows:"1fr 1fr",gap:9},children:Array.from({length:4}).map((e,o)=>p("div",{style:{borderRadius:6,background:to.block}},o))}),blanksection:p("div",{style:{...V,padding:14,display:"flex"},children:_("div",{style:{flex:1,border:`1px dashed ${to.line}`,borderRadius:7,display:"flex",alignItems:"center",justifyContent:"center",position:"relative"},children:[p(U,{w:14,h:2,r:1,tone:"tint"}),p(U,{w:2,h:14,r:1,tone:"tint",style:{position:"absolute"}})]})}),spacer:_("div",{style:{...V,padding:14,display:"flex",flexDirection:"column",justifyContent:"space-between"},children:[p(U,{w:"100%",h:6,r:3,tone:"soft"}),p(U,{w:16,h:22,r:3,tone:"block",style:{alignSelf:"center"}}),p(U,{w:"100%",h:6,r:3,tone:"soft"})]}),divider:p("div",{style:{...V,padding:14,display:"flex",alignItems:"center"},children:p(U,{w:"100%",h:3,r:2,tone:"dark"})}),customhtml:_("div",{style:{...V,display:"flex",alignItems:"center",justifyContent:"center",gap:8,background:gS},children:[p(U,{w:5,h:16,r:2,tone:"dark",style:{transform:"skewX(-14deg)"}}),p(U,{w:16,h:10,r:3,tone:"accent"}),p(U,{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(U,{w:"64%",h:13,r:4,tone:"dark"})}),text:_("div",{style:{...V,padding:16,display:"flex",flexDirection:"column",justifyContent:"center",gap:7},children:[p(U,{w:"100%",h:6,r:3,tone:"soft"}),p(U,{w:"96%",h:6,r:3,tone:"soft"}),p(U,{w:"100%",h:6,r:3,tone:"soft"}),p(U,{w:"58%",h:6,r:3,tone:"soft"})]}),image:p("div",{style:{position:"absolute",inset:14,borderRadius:7,background:gS}}),button:p("div",{style:{...V,display:"flex",alignItems:"center",justifyContent:"center"},children:p(U,{w:"34%",h:16,r:8,tone:"accent"})}),menu:_("div",{style:{...V,padding:"14px 22%",display:"flex",flexDirection:"column",justifyContent:"center",gap:7},children:[p(U,{w:"48%",h:7,r:3,tone:"dark"}),p(U,{w:"82%",h:5,r:2,tone:"soft"}),p(U,{w:"66%",h:5,r:2,tone:"soft"}),p(U,{w:"74%",h:5,r:2,tone:"soft"}),p(U,{w:"58%",h:5,r:2,tone:"soft"})]}),emailform:_("div",{style:{...V,padding:16,display:"flex",flexDirection:"column",justifyContent:"center",gap:9},children:[p(U,{w:"56%",h:8,r:3,tone:"dark"}),_("div",{style:{display:"flex",gap:6},children:[p("div",{style:{flex:1,height:16,borderRadius:5,border:`1px solid ${to.line}`}}),p(U,{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(U,{w:16,h:16,r:8,tone:"dark"},e))}),paymentlogos:_("div",{style:{...V,display:"flex",alignItems:"center",justifyContent:"center",gap:7},children:[p(U,{w:22,h:6,r:2,tone:"soft"}),[0,1,2,3].map(e=>p(U,{w:20,h:13,r:3,tone:"dark"},e))]}),search:p("div",{style:{...V,padding:"0 18%",display:"flex",alignItems:"center"},children:_("div",{style:{flex:1,height:22,borderRadius:11,border:`1px solid ${to.line}`,display:"flex",alignItems:"center",gap:7,padding:"0 9px"},children:[p("div",{style:{width:9,height:9,borderRadius:5,border:`2px solid ${to.dark}`}}),p(U,{w:"46%",h:5,r:2,tone:"soft"})]})}),cart:_("div",{style:{...V,display:"flex",alignItems:"center",justifyContent:"center",gap:7},children:[p("div",{style:{width:22,height:18,borderRadius:"3px 3px 6px 6px",border:`2px solid ${to.dark}`}}),p("div",{style:{padding:"2px 6px",borderRadius:6,border:`1.5px solid ${to.dark}`},children:p(U,{w:7,h:7,r:2,tone:"dark"})})]}),countryswitch:_("div",{style:{...V,padding:14,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:5},children:[_("div",{style:{display:"flex",alignItems:"center",gap:6,padding:"4px 8px",border:`1px solid ${to.line}`},children:[p(U,{w:22,h:6,r:2,tone:"dark"}),p(U,{w:6,h:4,r:1,tone:"soft"})]}),_("div",{style:{width:"46%",display:"flex",flexDirection:"column",gap:4,padding:6,border:`1px solid ${to.line}`},children:[p(U,{w:"80%",h:4,r:2,tone:"accent"}),p(U,{w:"64%",h:4,r:2,tone:"soft"}),p(U,{w:"72%",h:4,r:2,tone:"soft"})]})]}),legalline:_("div",{style:{...V,padding:16,display:"flex",flexDirection:"column",justifyContent:"center",gap:9},children:[p("div",{style:{height:1,background:to.line}}),_("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[p(U,{w:"38%",h:5,r:2,tone:"soft"}),_("div",{style:{display:"flex",gap:5},children:[p(U,{w:14,h:5,r:2,tone:"soft"}),p(U,{w:14,h:5,r:2,tone:"soft"}),p(U,{w:14,h:5,r:2,tone:"soft"})]})]})]}),fallback:p("div",{style:{position:"absolute",inset:14,borderRadius:8,background:to.block}})};function cH({type:e}){let o=Roe[e]??"",t=Doe[o]??dH[o]??dH.fallback;return p("div",{className:"sf-thumb","aria-hidden":"true",style:{position:"absolute",inset:0,background:"var(--sf-thumb-thumb-bg)",pointerEvents:"none",containerType:"inline-size"},children:t})}import{useScreenDocument as pm}from"efficient-easel/screen/components/ScreenDocumentContext";import{jsx as Ps,jsxs as pH}from"react/jsx-runtime";import Noe from"efficient-easel/screen/components/SidePanelHead";import{StylesIcon as Moe}from"efficient-easel/rail";import{Tooltip as Hoe}from"efficient-shell/ui";import{HintsToggle as Woe,hintsFoldClass as $oe}from"efficient-easel/panel";import{useHints as zoe}from"efficient-easel/screen/lib/hints";function uH({tokenRef:e,siteId:o,onClose:t,onNotify:r,tab:a,onTabChange:n,revealPageGroup:s,onPageGroupRevealed:l}){let i=Bn(),{shown:d,setShown:c}=zoe();return pH("div",{className:`sf-styles ${$oe(d)}`.trim(),children:[Ps(Noe,{icon:Ps(Moe,{}),title:f("Styles"),context:Ps(Hoe,{content:f("{name} \u2014 renamed in the Console: {place}.",{name:i,place:f("Storefront \u25B8 Sites \u25B8 Settings")}),className:"sf-name-tip",children:Ps("span",{className:"sf-name-text",children:i})})}),pH("div",{className:"sf-insp-body es-insp-body sf-scroll",children:[Ps(_f,{tokenRef:e,siteId:o,onNotify:r,tab:a,onTabChange:n,revealPageGroup:s,onPageGroupRevealed:l}),Ps(Woe,{shown:d,onChange:c,label:f("Show hints")})]})]})}import{jsx as lo,jsxs as qa,Fragment as qoe}from"react/jsx-runtime";import{Fragment as kH,useEffect as vH,useRef as PS}from"react";import{useTreeDrag as PH}from"efficient-easel/drag";import{GlobeIcon as Voe,ImageIcon as Yoe,LocationIcon as Xoe,MapIcon as Joe,TextLinesIcon as Zoe,TrashIcon as TH}from"efficient-easel/icons";import{Subtree as OH,TreeRow as $i,TreeRowAction as EH,TreeSeam as _H}from"efficient-easel/tree";import{useEaselStrings as Qoe}from"efficient-easel/strings";import{isSelectionMode as ete}from"efficient-easel/screen/lib/screen-parts";import{useSyncExternalStore as Uoe}from"react";var joe={level:"groups"},xH=joe,bS=new Set;function At(e){xH=e;for(let o of bS)o()}function Goe(e){return bS.add(e),()=>{bS.delete(e)}}var mH=()=>xH;function hH(){return Uoe(Goe,mH,mH)}var Wi=e=>String(e?.group??""),wS=new WeakMap,Koe=0;function nm(e){let o=wS.get(e);return o||(o=`loc${++Koe}`,wS.set(e,o)),o}var IH=(e,o)=>o||e||"Ungrouped",gH={photo:"",group:"",groupName:"",name:"City name",state:"State",country:"Country",timezone:"GMT \xB7 UTC +0",address:`Address line one
|
|
337
|
-
Address line two`,phone:"+00 000 0000",hours:"Mon\u2013Fri 9:00\u201318:00",lat:0,lng:0,mapsUrl:""};function Ka(e){return ud(e,Wi,o=>String(o?.groupName??"")).map(o=>({key:o.key,name:o.name,cards:o.items.map(t=>t.item)}))}var CS=e=>e.flatMap(o=>o.cards),yH=(e,o,t)=>Math.min(Math.max(e,o),t);function sm(e,o,t){let r=0;for(let a=0;a<e.length;a++)if(Wi(e[a])===o){if(r===t)return a;r++}return-1}function kS(e,o,t){let r=Ka(e);if(o<0||o>=r.length)return e;let[a]=r.splice(o,1),n=yH(o<t?t-1:t,0,r.length);return r.splice(n,0,a),CS(r)}function vS(e,o,t,r,a){let n=Ka(e),s=n.find(x=>x.key===o),l=n.find(x=>x.key===r);if(!s||!l||t<0||t>=s.cards.length)return e;let[i]=s.cards.splice(t,1),d=o===r?i:{...i,group:l.key,groupName:l.name};d!==i&&wS.set(d,nm(i));let c=yH(s===l&&t<a?a-1:a,0,l.cards.length);return l.cards.splice(c,0,d),CS(n)}function SH(e,o){let t=Ka(e),r=t.find(n=>n.key===o),a={...gH,group:o,groupName:r?.name??""};return r?(r.cards.push(a),CS(t)):[...e,a]}function bH(e){let o=new Set(Ka(e).map(a=>a.key)),t=o.size+1,r=`Group ${t}`;for(;o.has(r);)r=`Group ${++t}`;return{cards:[...e,{...gH,group:r,groupName:""}],key:r}}function wH(e,o){return e.filter(t=>Wi(t)!==o)}function CH(e,o,t){let r=sm(e,o,t);return r<0?e:e.filter((a,n)=>n!==r)}function mHe(e,o,t){let r=e.flatMap((s,l)=>Wi(s)===o?[l]:[]),a=e.slice();r.forEach((s,l)=>{a[s]=t[l]});let n=t.slice(r.length);return[...a.filter(s=>s!==void 0),...n]}function xHe(e,o,t){return o.flatMap(r=>{let a=e.filter(n=>Wi(n)===r);return a.length?a:t(r)})}var im="ContactLocations",lm=e=>({parentId:`locations-${e}`,slot:"groups"}),TS=(e,o)=>({parentId:`locations-${e}`,slot:`cities:${o}`});function AH(e,o){let{readOnly:t,selected:r}=o,a=Qoe().tree,n=o.data?.content??[],s=ete(e),l=PS(null);vH(()=>{let v=r?.type===im?String(r.props.id):null;v&&v!==l.current&&At({level:"groups"}),l.current=v},[r?.props.id]);let{selectedLocationPartId:i,setSelectedLocationPartId:d,setSelectHandler:c}=nL(),x=hH(),m=(v,y)=>{let b=n[v];b&&o.replace(v,{type:b.type,props:{...b.props,locations:y}})},h=v=>{let y=n[v]?.props?.locations;return Array.isArray(y)?y:[]},I=PH({keyOf:v=>`group:${v.si}:${v.index}`,readOnly:!!t,canDrop:(v,y)=>y.parentId===lm(v.si).parentId&&y.slot==="groups",onDrop:(v,y)=>{m(v.si,kS(h(v.si),v.index,y.index)),x.level==="city"&&At({level:"groups"})},onStep:(v,y)=>{m(v.si,kS(h(v.si),v.index,y<0?v.index-1:v.index+2)),x.level==="city"&&At({level:"groups"})}}),C=PH({keyOf:v=>`city:${v.si}:${v.group}:${v.index}`,readOnly:!!t,canDrop:(v,y)=>y.parentId===lm(v.si).parentId&&y.slot.startsWith("cities:"),onDrop:(v,y)=>{let b=y.slot.slice(7);m(v.si,vS(h(v.si),v.group,v.index,b,y.index)),At({level:"group",key:b})},onStep:(v,y)=>{m(v.si,vS(h(v.si),v.group,v.index,v.group,y<0?v.index-1:v.index+2)),x.level==="city"&&At({level:"group",key:v.group})}}),P=PS(n);P.current=n;let O=PS(()=>{});vH(()=>{c(v=>{let y=Gp(v);if(!y)return;let b=P.current.findIndex(E=>E.props?.id===y.nodeId);b<0||O.current(b,{level:y.part,index:y.index})})},[c]);let F=(v,y)=>{l.current=n[v]?.props?.id??null,o.select(v),At(y),e.reveal();let b=n[v]?.props?.id;typeof b=="string"&&(y.level==="city"||y.level==="image"||y.level==="map")?d(jp(b,y.index,y.level)):d(null),typeof b=="string"&&o.scrollTo(b)};return O.current=F,{renderLocationTree:(v,y,{rowClick:b,isCollapsed:E,toggleCollapse:B})=>{let R=h(y),k=Ka(R),L=String(v.props.id),g=s&&r?.props.id===L,w=S=>lo(_H,{...t?{}:I.seam({place:{...lm(y),index:S}})},`seam:${L}:groups:${S}`),T=(S,M)=>lo(_H,{...t?{}:C.seam({place:{...TS(y,S),index:M}})},`seam:${L}:cities:${S}:${M}`);return qa(qoe,{children:[lo($i,{icon:lo(Zoe,{size:13}),name:f("Texts"),words:a,onSelect:()=>F(y,{level:"texts"}),selected:g&&x.level==="texts",rowProps:{onClick:b(()=>F(y,{level:"texts"}))}}),k.map((S,M)=>{let N=`${L}::grp::${S.key}`,G=E(N),q=g&&x.level==="group"&&x.key===S.key,le=S.name||S.key?IH(S.key,S.name):f("Ungrouped"),ge={...TS(y,S.key),index:S.cards.length},Y=C.row({item:{si:y,group:S.key,index:-1},place:ge,into:ge,canDrag:!1},{onClick:b(()=>F(y,{level:"group",key:S.key}))}),xe=I.row({item:{si:y,index:M},place:{...lm(y),index:M}},Y.rowProps);return qa(kH,{children:[M===0&&w(0),lo($i,{icon:lo(Voe,{size:13}),name:le,words:a,onSelect:()=>F(y,{level:"group",key:S.key}),selected:q,draggable:xe.draggable,dragging:xe.dragging,drop:xe.drop??Y.drop,fold:{open:!G,label:f("group"),onToggle:()=>B(N)},actions:lo(EH,{kind:"delete",label:Dt("Delete {label} group ({n} city)","Delete {label} group ({n} cities)",S.cards.length,{label:le}),onClick:()=>{m(y,wH(R,S.key)),At({level:"groups"})},children:lo(TH,{size:15})}),rowProps:xe.rowProps,count:S.cards.length,countLabel:Dt("{n} city","{n} cities",S.cards.length)}),!G&&qa(OH,{children:[S.cards.map((ae,me)=>{let pe=sm(R,S.key,me),Ye=g&&x.level==="city"&&x.index===pe,bo=String(ae?.name??"")||f("City"),Bo=`${L}::city::${nm(ae)}`,Je=E(Bo),{rowProps:fo,...co}=C.row({item:{si:y,group:S.key,index:me},place:{...TS(y,S.key),index:me}},{onClick:b(()=>F(y,{level:"city",index:pe}))});return qa(kH,{children:[me===0&&T(S.key,0),lo($i,{icon:lo(Xoe,{size:13}),name:bo,words:a,onSelect:()=>F(y,{level:"city",index:pe}),selected:Ye,...co,fold:{open:!Je,label:bo,onToggle:()=>B(Bo)},actions:lo(EH,{kind:"delete",label:f("Delete {name}",{name:bo}),onClick:()=>{m(y,CH(R,S.key,me)),At({level:"group",key:S.key})},children:lo(TH,{size:15})}),rowProps:fo}),!Je&&qa(OH,{children:[lo($i,{icon:lo(Yoe,{size:13}),name:f("Image"),words:a,onSelect:()=>F(y,{level:"image",index:pe}),selected:g&&x.level==="image"&&x.index===pe,rowProps:{onClick:b(()=>F(y,{level:"image",index:pe}))}}),lo($i,{icon:lo(Joe,{size:13}),name:f("Map"),words:a,onSelect:()=>F(y,{level:"map",index:pe}),selected:g&&x.level==="map"&&x.index===pe,rowProps:{onClick:b(()=>F(y,{level:"map",index:pe}))}})]}),T(S.key,me+1)]},nm(ae))}),qa("button",{type:"button",className:"sf-add-card",onClick:()=>{let ae=SH(R,S.key);m(y,ae);let me=Ka(ae).find(pe=>pe.key===S.key);At(me&&me.cards.length?{level:"city",index:sm(ae,S.key,me.cards.length-1)}:{level:"group",key:S.key})},children:[lo("span",{className:"sf-plus sf-plus--sm",children:"+"}),f("Add city")]})]}),w(M+1)]},N)}),qa("button",{type:"button",className:"sf-add-card",onClick:()=>{let{cards:S,key:M}=bH(R);m(y,S),F(y,{level:"group",key:M})},children:[lo("span",{className:"sf-plus sf-plus--sm",children:"+"}),f("Add group")]})]})},sectionPressed:v=>{v?.type===im&&At({level:"groups"})}}}import{useEffect as ate,useRef as nte}from"react";import{createNode as ES,newId as _S}from"efficient-easel/data";import{useEaselApi as ste}from"efficient-easel/easel";import{useScreenDocument as lte}from"efficient-easel/screen/components/ScreenDocumentContext";import{useEaselSession as ite}from"efficient-easel/screen/lib/session-context";import{useEffect as RH,useRef as ote}from"react";import{useEasel as tte}from"efficient-easel/easel";import{ROOT_ZONE as OS}from"efficient-easel/draw";var zi={};function FH(e){return zi={...e?.theme?{theme:e.theme}:{},...e?.site?{site:e.site}:{}},zi}function BH(e){zi===e&&(zi={})}function Ts(){return zi}function LH(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 NH(e){let o=tte(d=>d.appState.data.content),{theme:t,themeRow:r,themeFromDocument:a,siteGutter:n,siteGutterPhone:s,siteLengthUnits:l}=vo(),i=ote(new Set);RH(()=>{let d=DH({theme:t,themeRow:r,themeFromDocument:a,siteGutter:n,siteGutterPhone:s,siteLengthUnits:l});d&&rte(W_(o,void 0,d),e,i.current)},[o,e,t,r,a,n,s,l]),RH(()=>{let d=FH(DH({theme:t,themeRow:r,themeFromDocument:a,siteGutter:n,siteGutterPhone:s,siteLengthUnits:l}));return()=>BH(d)},[t,r,a,n,s,l])}function DH(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=LH({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 rte(e,o,t){for(let{index:r,nodes:a}of[...e].sort((n,s)=>s.index-n.index)){let n=String(a[0].props.id);t.has(n)||(t.add(n),o.replaceComponent(OS,r,a[0]),a.slice(1).forEach((s,l)=>{o.insertNode(OS,r+1+l,s),o.replaceComponent(OS,r+1+l,s)}))}}import{ROOT_ZONE as Os,missingPinnedTypes as dte,pinnedDuplicateIds as AS}from"efficient-easel/draw";function MH(e){return!e.docId||e.saveStatus==="saving"?!1:e.seededDocId!==e.docId}function HH(e,o){let t=e.some(l=>l?.type===eo),r=e[e.length-1],a=!t&&r?.type===Be?r:null,n=e.filter(l=>l?.type===Be&&l!==a).map(l=>String(l.props?.id??"")).filter(Boolean),s=o.hasChromeDoc&&!t&&!a;return{remove:n,seedHeader:!e.some(l=>l?.type===Uo),seedFooter:s,seedSiteHeader:s&&!e.some(l=>l?.type===No)}}async function WH(e){let o=e.blocks?.seeds?.siteHeader;if(!o)return!1;let t;try{t=await o({make:e.make,id:e.id,siteId:e.siteId,token:e.token})}catch{return!1}if(!t||t.type!==No||!e.stillOpen())return!1;let r=e.latest();return r.some(a=>a?.type===No)?!1:(e.write(df(r,t)),!0)}function $H(e,o){let{adapter:t,capabilities:r,currentSlug:a,docId:n,data:s,saveStatus:l,siteId:i,tokenRef:d}=lte(),c=ite(),{hasSiteSettings:x,hasPinnedChrome:m}=r;NH(e);let h=!!r.editsPinnedInPlace&&a!==Pr,I=a===Pr,C=ste().getState,P=nte(null);ate(()=>{if(!MH({docId:n,saveStatus:l,seededDocId:P.current})||(P.current=n,!m))return;let O=C().appState.data,F=O.content,v=s?.content??[],y=(R,k)=>R.some(L=>L?.type===k);if(!x){let R=new Set(AS(F)),k=R.size?F.filter(g=>!R.has(g.props.id)):F;if(R.size&&e.setDocument({...O,content:k}),I)return;let L=dte(k,v);if(L.includes(Be)){let g=k.length,w=e.insertSection(Be,g);e.replaceComponent(Os,g,{type:Be,props:{id:w,blocks:em()}})}L.includes(Uo)&&e.insertNode(Os,0,Qu());return}if(I){let R=Uv(F);if(R!==F&&e.setDocument({...O,content:[...R]}),!R.find(k=>k.type===Be)&&!y(v,Be)&&!y(R,eo)&&!y(v,eo)){let k=(g,w)=>ES(o,g,w),L={type:Be,props:{blocks:em()}};e.insertNode(Os,R.length,ri(L,k,_S(eo),Ni))}return}if(h){let R=!!t?.pinnedChrome?.state().docId,k=HH(F,{hasChromeDoc:R}),L=new Set([...k.remove,...AS(F.filter(w=>!k.remove.includes(String(w.props.id))))]),g=L.size?F.filter(w=>!L.has(String(w.props.id))):F;if(g.length!==F.length&&e.setDocument({...O,content:g}),k.seedFooter&&!y(v,Be)&&!y(v,eo)){let w=(S,M)=>ES(o,S,M),T={type:Be,props:{blocks:em()}};e.insertNode(Os,g.length,ri(T,w,_S(eo),Ni))}if(k.seedHeader&&!y(v,Uo)){let w=g[0]?.type===No?1:0;e.insertNode(Os,w,Qu())}if(k.seedSiteHeader&&!y(v,No)&&!y(v,Be)&&!y(v,eo)){let w=n;WH({blocks:un(c),make:(T,S)=>ES(o,T,S),id:_S(No),siteId:i??null,token:d.current,latest:()=>C().appState.data.content,stillOpen:()=>P.current===w,write:T=>{let S=C().appState.data;e.setDocument({...S,content:[...T]})}})}return}let b=F.filter(R=>R.type!==Be),E=new Set(AS(b)),B=E.size?b.filter(R=>!E.has(R.props.id)):b;B.length!==F.length&&e.setDocument({...O,content:B}),!y(B,Uo)&&!y(v,Uo)&&e.insertNode(Os,0,Qu())},[n,l,s,C,e,x,m,I,h,t,c,i,d])}import{useEffect as JH,useMemo as hte,useRef as ZH}from"react";import{useEasel as Ite}from"efficient-easel/easel";import{newId as gte}from"efficient-easel/data";import{useEaselHost as yte}from"efficient-easel/screen/lib/host";import{FIELD_DESCRIPTION_MARKER as fte}from"efficient-easel/screen/lib/host";import{isNode as jH}from"efficient-easel/data";function Ui(e,o){let t=e.components[o]?.label;return typeof t=="string"&&t.trim()?t.trim():o}function cte(e){return e.length>3&&e.endsWith("s")?e.slice(0,-1):e}function FS(e,o,t,r){e.forEach((a,n)=>{if(jH(a)){r.push({node:a,list:e,index:n,parent:o,slot:t});for(let s of Ft(a))FS(a.props[s],a,s,r)}})}function pte(e){let o=[];FS(Array.isArray(e.content)?e.content:[],null,"",o);for(let t of Object.values(e.zones??{}))Array.isArray(t)&&FS(t,null,"",o);return o}function GH(e,o){return pte(e).find(t=>String(t.node.props.id)===o)}function KH(e,o,t){if(!t)return null;let r=GH(o,t);if(!r)return null;let a=Ui(e,r.node.type),n=r.parent?`${Ui(e,r.parent.type)} \xB7 ${cte(r.slot)} ${r.index+1}`:a;return{blockId:t,type:r.node.type,label:n,path:""}}var ute=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 mte(e){if(!e||typeof e!="object")return null;let o=e;if(typeof o.type!="string")return null;let t=o.type==="custom"?o[fte]: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=ute(n));for(let s of["arrayFields","objectFields"]){let l=t?.[s]??o[s];l&&typeof l=="object"&&(r[s]=qH(l))}return r}function qH(e){let o={};for(let[t,r]of Object.entries(e??{})){let a=mte(r);a&&(o[t]=a)}return o}function VH(e){let o={};for(let[t,r]of Object.entries(e.components))r&&(o[t]={label:Ui(e,t),fields:qH(r.fields),...YH(t)?{retired:!0}:{}});return o}function YH(e){return mo(ZS,e)}function zH(e,o){let t=e.components[o]?.defaultProps;return t&&typeof t=="object"?structuredClone(t):{}}function xte(e,o){let t=e;for(let r of o?o.split("."):[]){let a=/^([A-Za-z_][A-Za-z0-9_]*)(?:\[(\d+)\])?$/.exec(r);if(!a||!t||typeof t!="object")return null;t=t[a[1]],a[2]!==void 0&&(t=Array.isArray(t)?t[Number(a[2])]:void 0)}return t&&typeof t=="object"&&!Array.isArray(t)?t:null}function BS(e,o){return e.findIndex(t=>jH(t)&&String(t.props.id)===o)}function UH(e,o,t){let r=o||t;if(!r)return e.length;let a=BS(e,r);if(a<0)throw new Error(`there is no top-level block ${r}`);return o?a+1:a}function XH(e,o,t,r,a={}){let n=structuredClone(o),s=Array.isArray(n.content)?n.content:n.content=[];try{t.forEach((l,i)=>{let d=c=>{throw new Error(`change ${i+1}: ${c}`)};switch(l.op){case"set_props":{let c=GH(n,l.block_id)??d(`there is no block ${l.block_id}`);"id"in l.props&&d("a block's id is never changed");let x=xte(c.node.props,l.path)??d(`there is no ${l.path} in that block`);Object.assign(x,structuredClone(l.props));break}case"insert_block":{e.components[l.type]??d(`there is no block type ${l.type}`),YH(l.type)&&d(`${Ui(e,l.type)} is retired: it is no longer added (a page that holds one keeps it)`);let c=ps(l.type),x=Object.keys(l.props??{}).filter(h=>h!=="id");c&&x.length&&d(`${Ui(e,l.type)} is laid down as a Box of blocks: insert it with no props, then change its blocks`);let m=c?c(h=>zH(e,h),r,a):{type:l.type,props:{...zH(e,l.type),...structuredClone(l.props),id:r(l.type)}};s.splice(UH(s,l.after,l.before),0,m);break}case"remove_block":{let c=BS(s,l.block_id);c<0&&d(`there is no top-level block ${l.block_id}`),s.splice(c,1);break}case"move_block":{let c=BS(s,l.block_id);c<0&&d(`there is no top-level block ${l.block_id}`);let[x]=s.splice(c,1);s.splice(UH(s,l.after,l.before),0,x);break}default:d(`"${l.op}" is not a change this editor makes`)}})}catch(l){return{ok:!1,reason:l instanceof Error?l.message:String(l)}}return{ok:!0,document:n}}var LS=e=>uo(e.requestId)??null;function QH(){let e=yte(),{appState:o,selectedItem:t,dispatch:r,history:a,config:n}=Ite(m=>m),s=n,l=ZH({appState:o,dispatch:r,history:a,blockConfig:s});l.current={appState:o,dispatch:r,history:a,blockConfig:s};let i=ZH(new Map),d=t?.props?.id,c=hte(()=>KH(s,o.data,d),[s,o.data,d]),x=c?JSON.stringify(c):"";JH(()=>{e.connected&&e.send("storefront-editor:selection",{selection:c})},[e,x]),JH(()=>e.subscribe(m=>{let{appState:h,dispatch:I,history:C,blockConfig:P}=l.current;switch(m.type){case"storefront-editor:request-document":{let O=LS(m);if(!O)return;e.send("storefront-editor:document",{requestId:O,document:h.data,blocks:VH(P)});return}case"storefront-editor:apply-page-edits":{let O=LS(m);if(!O)return;let F=Array.isArray(m.ops)?m.ops:[],v=F.length?XH(P,h.data,F,gte,Ts()):{ok:!1,reason:"no changes"};v.ok&&(I({type:"setData",data:v.document,recordHistory:!0}),i.current.set(O,JSON.stringify(v.document.content??[]))),e.send("storefront-editor:page-edits-result",{requestId:O,applied:v.ok,reason:v.ok?null:v.reason});return}case"storefront-editor:undo-page-edits":{let O=LS(m);if(!O)return;let F=i.current.get(O),v=F!==void 0&&F===JSON.stringify(h.data.content??[]);v&&C.hasPast&&(C.back(),i.current.delete(O)),e.send("storefront-editor:page-edits-result",{requestId:O,applied:v&&C.hasPast,reason:v?null:"the page has changed since"});return}case"storefront-editor:set-right-panel":typeof m.shown=="boolean"&&I({type:"setUi",ui:{rightSideBarVisible:m.shown}});return;default:return}}),[e])}import{useEffect as t5,useState as r5}from"react";var dm=new Map;async function Ste(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 e5(e,o){let t=dm.get(o);return t||(t=Ste(e,o),dm.set(o,t),t.catch(()=>{dm.get(o)===t&&dm.delete(o)})),t}var bte=/^(localhost|(?:[a-z0-9-]+\.)+localhost|127(?:\.\d{1,3}){3}|0\.0\.0\.0|\[::1\]|::1)$/i;function RS(e){return!!e&&bte.test(e)}function o5(e){let{pageSlug:o,siteSlug:t,hostname:r}=e,a=o===HP?"/":`/${encodeURIComponent(o)}`;if(!RS(r))return a;let n=t?.trim();return n?`${a}?site=${encodeURIComponent(n)}`:a}function a5(e){let{pageSlug:o,siteId:t,token:r}=e,[a,n]=r5(null),[s,l]=r5(null),i=Vv();t5(()=>{try{l(new URL(Yv()).hostname)}catch{l(null)}},[i]),t5(()=>{if(!RS(s)||!t||!r){n(null);return}let c=!1;return e5(r,t).then(x=>{c||n(x)}),()=>{c=!0}},[s,t,r]);let d=o5({pageSlug:o,siteSlug:a,hostname:s});return i?`${i}${d}`:d}import{jsx as ji}from"react/jsx-runtime";import{useEffect as wte,useRef as n5,useState as Cte}from"react";import{ExternalIcon as s5}from"efficient-easel/icons";import{EaselIconButton as kte}from"efficient-easel/chrome";import{Tooltip as vte,iconButtonClasses as Pte}from"efficient-shell/ui";import{useSettledPress as Tte}from"efficient-easel/easel";import{useScreenDocument as Ote}from"efficient-easel/screen/components/ScreenDocumentContext";async function Ete({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 l5({liveHref:e,pageId:o,draftLink:t}){let{flushSave:r}=Ote(),a=n5(r);a.current=r;let n=Tte(),[s,l]=Cte(!1),i=n5(null);if(wte(()=>()=>i.current?.(),[]),t&&o){let d=()=>new Promise((x,m)=>{i.current=()=>x(!1),n.run(()=>{i.current=null,a.current().then(x,m)})}),c=()=>{s||n.waiting||(l(!0),Ete({pageId:o,liveHref:e,draftLink:t,ready:d}).finally(()=>l(!1)))};return ji(kte,{label:f("Preview your saved draft in a new tab"),tip:f("Open your saved draft in a new tab. Visitors don't see it."),disabled:s||n.waiting,onClick:c,children:ji(s5,{})})}return ji(vte,{content:f("Preview the live site (opens in a new tab)"),side:"bottom",children:ji("a",{className:Pte({className:"es-iconbtn"}),href:e,...bl,"aria-label":f("Preview the live site in a new tab"),children:ji(s5,{})})})}import{createElement as _te,useCallback as Ate,useEffect as i5,useRef as d5,useState as Fte}from"react";import{ClockIcon as Bte}from"efficient-shell/icons/efficient";import{useScreenDocument as Lte}from"efficient-easel/screen/components/ScreenDocumentContext";function f5(e){let{docId:o,capabilities:t,hasUnsavedEdits:r,onPublish:a,adapter:n}=Lte(),s=E2(O2(o??null),r),l=Cu(ku()),i=n.siteLiveState;i5(()=>{if(i)return kx(i),la(0),()=>kx(null)},[i]);let d=wf(),[c,x]=Fte(!1),m=d5(e);m.current=e;let h=d5(!0);i5(()=>(h.current=!0,()=>{h.current=!1}),[]);let I=Ate(()=>{x(!0),a(m.current).then(()=>{Pu()}).finally(()=>{h.current&&x(!1)})},[a]);if(t.canPublish){if(i){let C=d===void 0?void 0:r||d.state==="changed"?"changed":"live",P=sS({live:C,onPress:I,busy:c,goingLive:_2(d?.changes??[])});return n.siteVersions?{...P,menuItems:Rte()}:P}return sS({live:s,onPress:I,busy:c,pinnedUnpublished:l?.unpublished??!1})}}function Rte(){return[{key:"version-history",label:f("Version history"),icon:_te(Bte),onSelect:YN}]}import{jsx as ee,jsxs as Yo,Fragment as qi}from"react/jsx-runtime";import{useCallback as Dte,useEffect as Nte,useId as u5,useRef as Mte,useState as xt}from"react";import{useSettledAction as Hte}from"efficient-easel/easel";import{Avatar as Wte,Banner as Gi,Button as Va,ColoredBadge as DS,Dialog as m5,Drawer as $te,DropdownMenu as zte,FormField as x5,iconButtonClasses as Ute,Inline as NS,Input as jte,ListRow as Gte,Select as Kte,SortableList as qte,Stack as Ki}from"efficient-shell/ui";import{EditIcon as Vte,EyeIcon as c5,MenuIcon as Yte,MoreIcon as Xte,PageIcon as h5,RevertIcon as p5,StylesIcon as Jte}from"efficient-shell/icons/efficient";import{useScreenDocument as I5}from"efficient-easel/screen/components/ScreenDocumentContext";var Zte={page:h5,menu:Yte};function Qte(e,o){return e.pages.find(t=>t.id===o)??e.pages[0]??null}function ere(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 ore({version:e,page:o,waiting:t,busy:r,error:a,onCancel:n,onConfirm:s,onPage:l}){let i=u5();if(!e)return null;let d=e.kind==="draft_before_restore",c=e.number,x=rM(e),m=d?f("Put your drafts back?"):o?f("Restore {page} from version {n}?",{page:o.name,n:c}):f("Restore version {n}?",{n:c}),h=d?f("Your drafts go back to how they were before the restore."):o?f("{page} goes back to version {n} as a draft. Nothing else on your website changes.",{page:o.name,n:c}):x?f("The whole website goes back to version {n} as a draft: {what}.",{n:c,what:x}):f("The whole website goes back to version {n} as a draft.",{n:c}),I=e.deletedPictures??0;return ee(m5,{open:!0,onClose:()=>{r||n()},size:"sm",title:m,footer:Yo(qi,{children:[ee(Va,{variant:"secondary",onClick:n,disabled:r,children:f("Cancel")}),ee(Va,{onClick:s,loading:r,disabled:r,children:f("Restore as draft")})]}),children:Yo(Ki,{gap:4,children:[o&&e.pages.length>1?ee(x5,{label:f("Page"),htmlFor:i,children:ee(Kte,{id:i,value:o.id,options:e.pages.map(C=>({value:C.id,label:C.name})),onChange:l,disabled:r})}):null,ee("p",{children:h}),ee("p",{children:f("Your live website does not change until you press Publish.")}),I>0?ee(Gi,{tone:"warning",children:Dt("{n} picture in this version was deleted from the media library. It stays empty.","{n} pictures in this version were deleted from the media library. They stay empty.",I)}):null,t?ee(Gi,{tone:"info",title:f("Your unpublished changes are kept"),children:f("They are saved in Version history as \u201CDraft before restore\u201D, so you can get them back.")}):null,a?ee(Gi,{tone:"danger",children:a}):null]})})}function tre({version:e,onCancel:o,onSave:t}){let r=u5(),[a,n]=xt(null),[s,l]=xt(""),[i,d]=xt(!1),[c,x]=xt(null);if(e!==a&&(n(e),l(e?.name??""),x(null)),!e)return null;let m=s.trim()===e.name,h=async()=>{if(!(i||m)){d(!0),x(null);try{await t(s.trim())}catch{x(f("The name was not saved. Try again."))}finally{d(!1)}}};return ee(m5,{open:!0,onClose:()=>{i||o()},size:"sm",title:f("Name this version"),footer:Yo(qi,{children:[ee(Va,{variant:"secondary",onClick:o,disabled:i,children:f("Cancel")}),ee(Va,{onClick:()=>{h()},loading:i,disabled:i||m,children:f("Save")})]}),children:ee(x5,{label:f("Name"),htmlFor:r,hint:f("Named versions are always kept. Leave it empty to take the name away."),error:c??void 0,children:ee(jte,{id:r,value:s,invalid:!!c,onChange:I=>l(I.target.value),onKeyDown:I=>{I.key==="Enter"&&h()}})})})}function rre({version:e,expanded:o,onToggle:t,onPreview:r,onRestore:a,onRestorePage:n,onName:s}){let l=e.kind==="draft_before_restore",i=!e.live,d=e.changes.length,c=[...l?[]:[{key:"preview",label:f("Preview"),icon:ee(c5,{}),onSelect:r}],...i?[{key:"restore",label:l?f("Put these drafts back"):f("Restore whole website"),icon:ee(p5,{}),onSelect:a}]:[],...i&&!l&&e.pages.length?[{key:"restore-page",label:f("Restore one page only"),icon:ee(h5,{}),onSelect:n}]:[],...l?[]:[{type:"divider",key:"divider"},{key:"name",label:f("Name this version"),icon:ee(Vte,{}),onSelect:s}]];return ee(Gte,{title:Yo("span",{className:"sf-version-title",children:[ee("span",{children:tM(e)}),e.live?ee(DS,{tone:"success",size:"xs",children:f("Live")}):null,e.name?ee(DS,{tone:"neutral",size:"xs",children:f("Version {n}",{n:e.number})}):null,l?ee(DS,{tone:"warning",size:"xs",children:f("Not published")}):null]}),expanded:o,onToggle:t,actions:ee(zte,{align:"end","aria-label":f("More"),items:c,triggerClassName:Ute({variant:"ghost",size:"sm"}),trigger:ee(Xte,{})}),below:Yo(Ki,{gap:3,children:[Yo(NS,{gap:2,align:"center",wrap:!0,className:"sf-version-meta",children:[ee(Wte,{name:e.createdBy,size:"xs"}),ee("span",{children:e.createdBy}),ee("span",{"aria-hidden":"true",children:"\xB7"}),ee("span",{children:nM(e.createdAt)}),d?Yo(qi,{children:[ee("span",{"aria-hidden":"true",children:"\xB7"}),ee("span",{children:Dt("{n} change","{n} changes",d)})]}):null]}),o?Yo(Ki,{gap:3,children:[d?ee(Ki,{gap:2,children:e.changes.map(x=>{let m=Zte[x.kind]??Jte;return Yo(NS,{gap:2,align:"center",children:[ee(m,{size:16}),ee("span",{children:aM(x)})]},`${x.kind}:${x.id}`)})}):null,Yo(NS,{gap:2,children:[l?null:ee(Va,{variant:"secondary",size:"sm",leftIcon:ee(c5,{}),onClick:r,children:f("Preview")}),i?ee(Va,{variant:"secondary",size:"sm",leftIcon:ee(p5,{}),onClick:a,children:f("Restore")}):null]})]}):null]})})}function are({open:e,onClose:o,access:t,waiting:r}){let{flushSave:a,reloadFromServer:n,docId:s}=I5(),[l,i]=xt(null),[d,c]=xt(!1),[x,m]=xt(null),[h,I]=xt(null),[C,P]=xt(!1),[O,F]=xt(null),[v,y]=xt(null),[b,E]=xt(!1),B=Mte(0),R=Dte(()=>{let w=++B.current;c(!1),t.list().then(T=>{w===B.current&&i(T)},()=>{w===B.current&&c(!0)})},[t]);Nte(()=>{e&&R()},[e,R]);let k=w=>{E(!1),ere(t,w.id).catch(()=>E(!0))},L=async()=>{if(!(!h||C)){P(!0),F(null);try{await eM({access:t,version:h.version,page:h.page,flushSave:a,reload:n}),I(null),o()}catch(w){F(w instanceof ki?f("Your last changes did not save, so nothing was restored. Try again."):f("The version was not restored. Nothing changed. Try again."))}finally{P(!1)}}},g=Hte({onPress:()=>{L()},busy:C});return Yo(qi,{children:[ee($te,{open:e,onClose:o,side:"right",size:"md",title:f("Version history"),description:Yo(qi,{children:[f("Every Publish keeps a copy of the whole website: pages, menus and site styles.")," ",f("Products, prices and forms always show as they are now.")]}),footer:ee("span",{className:"sf-version-foot",children:f("The newest 30 are kept. Named versions are always kept.")}),children:Yo(Ki,{gap:3,children:[b?ee(Gi,{tone:"danger",onDismiss:()=>E(!1),children:f("The preview did not open. Try again.")}):null,d?ee(Gi,{tone:"danger",action:ee(Va,{variant:"secondary",size:"sm",onClick:R,children:f("Try again")}),children:f("Version history did not load.")}):l===null?ee("p",{className:"sf-version-foot",children:f("Loading versions")}):l.length===0?ee("p",{className:"sf-version-foot",children:f("No versions yet. Every Publish from now on keeps one.")}):ee(qte,{"aria-label":f("Versions"),spacing:"comfortable",children:l.map(w=>ee(rre,{version:w,expanded:x===w.id,onToggle:()=>m(T=>T===w.id?null:w.id),onPreview:()=>k(w),onRestore:()=>{F(null),I({version:w,page:null})},onRestorePage:()=>{F(null),I({version:w,page:Qte(w,s)})},onName:()=>y(w)},w.id))})]})}),ee(ore,{version:h?.version??null,page:h?.page??null,waiting:r,busy:g.busy===!0,error:O,onCancel:()=>I(null),onConfirm:g.onPress,onPage:w=>I(T=>T&&{...T,page:T.version.pages.find(S=>S.id===w)??T.page})}),ee(tre,{version:v,onCancel:()=>y(null),onSave:async w=>{await t.name(v.id,w),y(null),R()}})]})}function g5(){let{adapter:e,hasUnsavedEdits:o}=I5(),t=e.siteVersions,r=JN(),a=wf();return t?ee(are,{open:r,onClose:XN,access:t,waiting:o||a?.state==="changed"}):null}import{useEaselSession as r4}from"efficient-easel/screen/lib/session-context";import{buildPaletteSections as d4e,categoryLabel as f4e,paletteWithoutPinned as c4e,pinnedSection as p4e}from"efficient-easel/screen/lib/document/palette-sections";var nre={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 y5(e){return $(nre,e)?.label}var S5=ob;function sre(e){let o=Yp.Ticker(e.nodeDefaults,e.newNodeId),{sectionBorder:t,...r}=o.props,a=Vh.line?{sectionBorder:t}:{};return{...o,props:{...r,...a,sectionAccent:Vh.sectionAccent}}}var lre={Hero:{[jl]:{newChild:sre,childLabel:Xr.Ticker}}},b5=Object.fromEntries(Object.entries(F_).map(([e,o])=>[e,Object.fromEntries(Object.entries(o).map(([t,r])=>[t,{...r,...$(lre,e)?.[t]}]))]));function w5(e,o=0,t,r){let a=dre(fre(e,o,r),t),n=a?Cg():null;return a&&n?ire(a,n):a}function ire(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 dre(e,o){if(!e||e.source!=="container"||!o||!lw())return e;let t=wd({data:o.data},o.id),r=typeof t?.type=="string"?Id(t.type):[],a=e.choices??[],n=r.filter(s=>!a.some(l=>l.type===s.type));return n.length?{...e,choices:[...a,...n.map(s=>({type:s.type,label:s.label}))]}:e}function fre(e,o,t){let r=t?$(b5,e)?.[t]:void 0;if(r)return{source:"section",slot:r.slot,choices:null,spec:r};let a=$(nt,e);if(a)return{source:"section",slot:a.slot,choices:null,spec:a};let n=td(e,o);if(n)return{source:"container",slot:n.slot,choices:n.choices,spec:null};let s=z2(e);return s?{source:"footer",slot:$2,choices:s,spec:null}:null}function C5(e,o=Sd(e.type)){return yd(e.type)?o.map(t=>{let r=fw(e.type,t);return r===null?{slot:t,label:t,rung:!1}:{slot:t,label:f(r),rung:!0}}):null}import{useSyncExternalStore as cre}from"react";var MS=null,HS=new Set;function k5(e){if(MS!==e){MS=e;for(let o of HS)o()}}function pre(e){return HS.add(e),()=>{HS.delete(e)}}function R4e(){return cre(pre,()=>MS,()=>null)}function v5(e){return pP(e)?.ownerId??null}function P5(e,o){let t=e.props;if(e.type==="FooterMenu"){let r=t.menu;return t.heading||r?.name||f("Menu")}if(e.type==="FooterText"){let r=typeof t.text=="string"?t.text.trim():"";return r?r.length>28?`${r.slice(0,28)}\u2026`:r:f("Text")}return e.type==="FooterEmailSignup"?t.heading||f("Email signup"):o(e.type)}import{parseOption as ure}from"efficient-shell/format";var mre=["pages","sections","styles"],T5="sf-editor-left-view";function O5(){if(typeof window>"u")return"pages";try{let e=window.localStorage.getItem(T5);return ure(mre,"pages",e)}catch{return"pages"}}function E5(e){if(!(typeof window>"u"))try{window.localStorage.setItem(T5,e)}catch{}}function _5(e,o){return e==="styles"&&!o?"sections":e}function A5(e,o){return e?"sections":o}import{copyNode as xre}from"efficient-easel/data";function F5(e){let o=typeof e?.props?.id=="string"?e.props.id:null,t=or(),r=o&&t?t.sectionOf(o):null;if(!t||!r)return null;let a=t.usedOn(r);return a?a.length===1?f("On 1 page"):f("On {count} pages",{count:a.length}):f("On other pages")}var B5={usedOn:e=>{let o=or(),t=o?.sectionOf(e.props.id)??null;return!o||!t?null:o.usedOn(t)??[]},openPage:e=>yf()?.openPage(e),adopt:(e,o)=>or()?.adopt(e.props.id,o),nodeOf:e=>or()?.place(e)??null,detach:e=>{let o=yf()?.config;return o?xre(e,o):e},removed:()=>yf()?.reload()};import{sharedSectionsOf as zre}from"efficient-easel/screen/lib/shared-sections";import{scrollPreviewToSection as Ure,scrollPreviewToTop as X5}from"efficient-easel/screen/lib/document/preview-dom";var hre=If.mediaFields,Ire=/video|poster|focal|phone/i;function gre(e){return($(hre,e)??[]).find(o=>!o.includes("[]")&&!Ire.test(o))??null}function yre(e){let o=gre(e.type);return e.type!==j?o&&bd(e.type,e.props,o)?{fromData:!0}:o:_k(e.props)?{fromData:!0}:o}var L5={adds:{kind:"block",type:"ImageBlock"},kinds:["image"],pictureOf:yre,create:(e,o)=>({type:"ImageBlock",props:{...o.nodeDefaults("ImageBlock"),id:o.newNodeId("ImageBlock"),src:e.url}})};var R5={Hero:"Full-screen opener with rotating slides.",HeroSingle:"Full-screen image or video with a headline.",IntroBleed:"Full-bleed intro image the next section scrolls over.",Collections:"Product collections in a tidy grid.",AlloyWheelsListing:"A full product-listing page: filter rail, sortable card grid and pagination, from the live catalog. Choose which product types it shows.",CatalogFilterBar:"Filters the collection grids below it \u2014 a sticky row of Pills (the default), or Columns, one per filter you switch on.",ProductGrid:"Hand-picked products in a tidy grid.",FitmentFinder:"A vehicle picker \u2014 make, model, year and trim resolve the OEM stock fitment live.",Gallery:"Two image galleries with tabs and filters.",GalleryB:"A wall of your photos or your products' pictures, with a click-to-open lightbox.",SpecStrip:"A thin one-line spec strip \u2014 small-caps items spread across the width, as a dark band or a bare hairline row.",ProductHero:"A product hero \u2014 image beside price, bullets and a buy button.",SpecTable:"A spec sheet \u2014 labeled rows of product specifications.",ProcessSteps:"A heading over columns, or alternating rows, of image, title, blurb and specs.",DetailRows:"Repeating full-width rows \u2014 eyebrow, title and copy beside a numbered close-up image, alternating sides each row.",FitmentTable:"A fitment table \u2014 per-size bolt patterns, offsets and load ratings, filterable by diameter.",CompatibleTyres:"The current product's compatible tyres \u2014 image, size, key specs and price per tyre, with an inquiry link. Display only.",RelatedProducts:"The current product's related items in a tidy row \u2014 the product page's built-in 'Pair with' cross-sell.",OrderSummary:"A display order-summary panel \u2014 items, totals and a note.",DeliveryOptions:"Delivery tiers as cards \u2014 name, window and price, one highlighted.",PaymentBadges:"A payment-methods trust strip with reassurance lines.",CheckoutCTA:"A centered 'ready to order?' headline with the checkout button.",Manifesto:"A bold brand statement beside a full-height image, with a stat strip.",ParagraphsA:"An editorial text panel with a stat strip and founders' note.",StatsParagraph:"An editorial heading and paragraph over a row of stat cards whose units and small labels take the main color.",Chart:"A titled chart \u2014 bars, line or donut \u2014 drawn from your own labeled data points.",Mockup:"A headline beside a stylized product-UI mockup card \u2014 spec sheet, fitment, portal, kanban and more.",Prose:"A plain editorial text section \u2014 eyebrow, heading and body copy.",Timeline:"An editorial aside beside a rail-marked timeline of dated entries.",TimelineTrack:"A horizontal year track of milestones \u2014 company history or roadmap.",Footprint:"A world map of your locations with a legend \u2014 designed here, sold worldwide.",TitleWithButtons:"A big headline beside a stack of call-to-action buttons.",Split:"Side-by-side image and text in two columns.",Cards:"A heading over a grid of free-text title-and-blurb cards.",FAQ:"A frequently-asked-questions accordion with a header.",Testimonials:"Customer quotes in a grid \u2014 the quote, a name and a role.",Masthead:"A journal issue header with a lead statement and contents.",Breadcrumb:"A slim trail showing where the reader is (Home / Journal\u2026).",CategoryBar:"A sticky row of category tabs with counts and links.",FeaturedCover:"A featured article \u2014 big cover image beside a headline and dek.",LongRead:"A long-form article spread with a pull-quote and cover image.",Series:"A section heading over a grid of column cards.",Subscribe:"A newsletter signup beside a list of recent issues.",SubscribeBlogs:"A newsletter signup beside your latest blog posts, pulled live.",Events:"Latest journal posts in a three-card row.",DocMasthead:"A page header: eyebrow, title, details and a deck.",DocTabs:"A sticky tab bar that marks the page you are on.",DocBody:"Long-form document body with an 'On this page' contents list.",DocMetaCards:"A three-up meta strip for the foot of a document.",Banner:"Wide promo strip with background image.",Stats:"Highlight key numbers \u2014 years, designs.",Countdown:"Hours, minutes and seconds to a set date and time, then one line.",KeyFeatures:"A theme-color chip and heading over a grid of short feature labels.",Logos:"A row of partner or brand logos.",Ticker:"A scrolling marquee of short phrases, full width.",Reviews:"Approved customer reviews in a star-rated card grid, pulled live.",SubmitBuild:"A 'Show us yours.' headline with a photo-submission form.",ReviewForm:"A write-a-review form \u2014 submissions wait for your approval before they show.",ContactRouting:"Pick who to reach, then a form that routes the message.",ContactLocations:"Your locations as a city gallery plus address and map cards.",SectionHeader:"A numbered section title with optional link.",Grid:"Multi-column container for blocks.",Flex:"An empty section. Add whatever you want inside.",Spacer:"Vertical breathing room between sections.",Divider:"A thin horizontal rule between sections.",CustomHTML:"Drop in your own sanitized HTML.",Heading:"A single heading line.",Text:"A paragraph of body copy.",ImageBlock:"A standalone image, at the width you set.",ButtonBlock:"A call-to-action button."};import{jsx as fm}from"react/jsx-runtime";import{useState as Sre}from"react";import{Button as bre,Tooltip as wre,toast as D5}from"efficient-shell/ui";import{TemplateIcon as Cre}from"efficient-easel/icons";import{useSettledAction as kre}from"efficient-easel/easel";import{useScreenDocument as vre}from"efficient-easel/screen/components/ScreenDocumentContext";function M5({enabled:e,reason:o,onSaved:t}){let{flushSave:r}=vre(),[a,n]=Sre(!1),s=async()=>{if(!a){n(!0);try{await r()?t():D5.error(f(N5))}catch{D5.error(f(N5))}finally{n(!1)}}},l=kre({onPress:()=>{s()},busy:a});return fm(wre,{side:"bottom",content:e?f("Save this website as a platform template"):f(o),children:fm("span",{className:"sf-tip-disabled",tabIndex:e?void 0:0,children:fm(bre,{variant:"secondary",disabled:!e||l.busy,loading:l.busy,onClick:l.onPress,rightIcon:fm(Cre,{size:15}),children:f("Save as Template")})})})}var N5="Your last changes did not save, so the template was not made. Try again.";var Pre="Save your page changes first";function H5(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:Pre}:{visible:!0,enabled:!0}:{visible:!1,hiddenReason:"no-site"}:{visible:!1,hiddenReason:"not-operator"}:{visible:!1,hiddenReason:"no-console"}}var W5="storefront-editor:save-as-template";import{phoneKey as Tre,tabletKey as Ore}from"efficient-easel/draw";var Ere=[Co.top,Ore(Co.top),Tre(Co.top)],cm="ContactLocations",$5="ContactRouting",z5="CityPictures",U5="CityMaps",_re=[{key:z5,label:"City pictures",piece:0,desc:"A wall of city photos, grouped by region. Each photo links to its city's card."},{key:U5,label:"City maps",piece:1,desc:"A card per city, grouped by region: address, phone, hours and a map."}];function j5(e=ka,o=MI){let t=JS.find(r=>r.sections.some(a=>a.type===$5))?.key;return!e.includes(cm)||!t?[]:_re.filter(r=>!(o&&r.key===z5)).map(({key:r,label:a,desc:n,piece:s})=>({key:r,label:a,cat:t,after:$5,desc:n,alias:"locations offices stores branches",insert:l=>{let i=Br(cm);if(!i)return null;let d=Ts(),c=di(cm,i,s)(l.nodeDefaults,l.newNodeId,d);if(!c||!(o&&r===U5))return c;let x=di(cm,i,0)(l.nodeDefaults,h=>`${h}-above`,d),m=Object.fromEntries(Ere.filter(h=>x?.props[h]!==void 0).map(h=>[h,x.props[h]]));return{...c,props:{...c.props,...m}}}}))}function G5(e=ka,o){return[...j5(e,o)]}function q5(e,{nodeDefaults:o,newNodeId:t,sectionLabel:r,blockIsOffered:a}){let n=ps(e);if(n)return n(o,t,Ts());if(Zb(e)&&a(j)&&a(dn)){let l=$(bt,e);return{type:j,props:{...o(j),id:t(j),direction:"column",name:`${r(e)} section`,content:[{type:dn,props:{...o(dn),id:t(dn),...l?.headStyle?{headStyle:l.headStyle}:{},...l?.headRowGap?{rowGap:l.headRowGap}:{},...l?.headDescriptionSize?{descriptionSize:l.headDescriptionSize}:{},...Cl(e)!==Cl(dn)?{eyebrowLook:Cl(e)}:{}}},{type:e,props:{...o(e),id:t(e),headPlacement:"own-box",...K5(e,t)}}]}}}if($(nt,e)?.fixed===!0)return{type:e,props:{...o(e),id:t(e),layout:"boxes"}};let s=K5(e,t);return Object.keys(s).length?{type:e,props:{...o(e),id:t(e),...s}}:null}function K5(e,o){return e==="Cards"?{template:Vb(t=>o(t))}:e===Yb?{template:Xb(t=>o(t))}:{}}import{useEffect as Are,useState as Fre}from"react";import{useEaselSession as Bre}from"efficient-easel/screen/lib/session-context";function V5(){let e=Bre().chrome?.products?.list,[o,t]=Fre(null);return Are(()=>{if(!e)return;let r=!1;return e().then(a=>{r||t(a)}),()=>{r=!0}},[e]),o}function a4({mode:e,open:o}){let{setSelectedHeroId:t,setSelectHandler:r}=tL(),a=t4().tree,n=e,s=n.kind==="ticker"?n.heroId:null,l=Es(i=>{i&&(o({kind:"ticker",heroId:i}),Ure(i))},[o]);return Gt(()=>{t(s)},[s,t]),Gt(()=>{r(l)},[r,l]),{partRows:(i,{rowClick:d})=>{let c=String(i.props.id);return i.type==="Hero"&&Yh(i.props)&&io(e4,{icon:io($a,{type:"ticker",size:13}),name:f(La),onSelect:()=>l(c),selected:s===c,rowProps:{onClick:d(()=>l(c))},words:a})}}}function n4({mode:e,select:o}){let{setSelectedHeroPart:t,setSelectHandler:r}=Ru(),a=t4().tree,{appState:n,config:s}=o4(m=>m),l=Lre({data:n.data,config:s});l.current={data:n.data,config:s};let i=e,d=Sa.find(m=>Hl[m]===i.kind),c=d&&"nodeId"in i?ba(String(i.nodeId),d):null,x=Es(m=>{let h=Hc(m);if(!h)return;let{data:I,config:C}=l.current,P=Wre(I,C,{kind:"node",id:h.nodeId});if(!P)return;let O={kind:Hl[h.part],nodeId:h.nodeId};o({index:P.index,zone:P.zone},O)},[o]);return Gt(()=>{t(c)},[c,t]),Gt(()=>{r(x)},[r,x]),{partRows:(m,{rowClick:h})=>{let I=String(m.props.id),C=zE(m);if(C.length===0)return null;let P=v=>{let y=ba(I,v.part);return io(e4,{icon:io($a,{type:v.part==="media"?"heroMedia":"heroImage",size:13}),name:f(v.label),onSelect:()=>x(y),selected:c===y,rowProps:{onClick:h(()=>x(y))},words:a},y)},[O,...F]=C;return Vi(Q5,{children:[P(O),F.length>0&&io(Hre,{children:F.map(P)})]})}}}function s4(e,o){return{partRows:(t,r)=>Vi(Q5,{children:[e.partRows?.(t,r),o.partRows?.(t,r)]})}}function jre(e){let{adapter:o,capabilities:t,currentSlug:r,siteId:a,docId:n,hasUnsavedEdits:s,bridgeCapabilities:l,notifyParent:i,token:d}=pm(),{hasPreviewLink:c}=t,x=_o(r4()).preview?.draftLink,m=f5(e.data),h=H5({hasTrustedConsole:!!d,canCreatePlatformTemplate:l.canCreatePlatformTemplate,capabilities:t,siteId:a,hasUnsavedEdits:s}),I=Es(()=>{!a||!r||i(W5,{siteId:a,slug:r})},[i,a,r]),C=a5({pageSlug:r,siteId:a,token:d}),P=o.previewHref?.(r)??C;return{barLead:()=>h.visible&&io(M5,{enabled:h.enabled,reason:h.enabled?"":h.disabledReason,onSaved:I}),barView:()=>c&&r&&io(l5,{liveHref:P,pageId:n??null,draftLink:x}),mainAction:m}}function Gre(e,o){let{capabilities:t,templateId:r,siteId:a,tokenRef:n,navigate:s}=pm(),{hasSiteTheme:l,explainsSiteSettings:i}=t,d=v=>o.setView(v),[c,x]=Y5(TT[0].id),[m,h]=Y5(!1),{surface:I,setSurface:C}=LM(),P=()=>{if(l){d("styles"),o.reveal(),X5();return}e.show(IS),e.reveal(),X5()},O={id:"pages",label:f("Pages"),icon:io(Dre,{}),panel:({onHide:v})=>io(kM,{activeSurface:I,onPreviewSurface:C,onNavigate:y=>{C(null),s(r?{kind:"template",id:r,pageSlug:y}:{kind:"page",slug:y,siteId:a??void 0})},onClose:v})},F=[];return!l&&i&&F.push({id:"appearance",label:f("Appearance"),icon:io(Mre,{}),active:e.kind==="website",onSelect:P}),l&&F.push({id:"styles",label:f("Styles"),icon:io(Nre,{}),panel:({onHide:v,notify:y})=>io(uH,{tokenRef:n,siteId:a??void 0,onClose:v,onNotify:y,tab:c,onTabChange:x,revealPageGroup:m,onPageGroupRevealed:()=>h(!1)})}),{railLead:[O],railTrail:F,resolveLeftView:v=>_5(v,l),openSettings:P,openStyles:()=>{x(PT),d("styles")},openPageStyles:l?()=>{x(Ef),h(!0),d("styles"),o.reveal()}:i?()=>{e.show(oH),e.reveal()}:void 0}}function Kre(){let{navigate:e,siteId:o,reloadFromServer:t,docId:r}=pm(),a=o4(s=>s.config),n=r4();Gt(()=>(Cx({openPage:s=>e({kind:"page",slug:s.slug,siteId:o??void 0}),reload:()=>{t()},config:a}),()=>Cx(null)),[e,o,t,a]),Gt(()=>{let s=or();if(!s||!r)return;let l=!1;return zre(n).list().then(i=>{l||s.learn(i)}).catch(()=>{}),()=>{l=!0}},[r,n])}function l4(){let e=Af();return Es(o=>{QT(o,e)},[e])}function qre(e,o,t,r){let{kind:a,open:n}=e,{selected:s,zoneOf:l}=o;Gt(()=>{k5(s?.type==="BookingBox"&&s.props.region==="confirm"?v5(l(String(s.props.id))):null)},[s?.props.id]);let i=AH(e,o),{capabilities:{hasSiteSettings:d}}=pm();Kre();let{chat:c,setChat:x,setSelected:m,setSelectHandler:h}=Lu(),I=Es(()=>n(tH),[n]),C=a==="chat";Gt(()=>{m(C)},[C,m]),Gt(()=>{h(I)},[h,I]);let{setOpenHandler:P}=Pi(),O=Es(()=>n(rH),[n]);Gt(()=>{P(O)},[P,O]);let F=s4(a4(e),n4(e)),v=jre(o),y=Gre(e,r);hM(r);let b=t.device,E=l4();return{...F,...v,...y,hasOwnRows:B=>B.type===im,ownRows:i.renderLocationTree,sectionPressed:i.sectionPressed,onCopyItem:E,wrap:B=>io(Rx.Provider,{value:!0,children:Vi($re.Provider,{value:b,children:[B,io(g5,{})]})}),addPanelRow:B=>d?Vi("div",{className:"sf-addside-sitewide",children:[io("span",{className:"sf-addside-sitewide-glyph","aria-hidden":"true",children:io($a,{type:"chat",size:16})}),Vi("button",{type:"button",className:"sf-addside-sitewide-name",onClick:()=>{B(),I()},children:[f("Live chat"),io("span",{className:"sf-addside-sitewide-desc",children:f("A chat bubble on every page")})]}),io(Rre,{checked:c.enabled,onChange:R=>x({enabled:R}),ariaLabel:f("Show the chat bubble on the whole site")})]}):void 0}}var J5=null,WS=new WeakMap;function Vre(e){let o=Gw();if(!e||!o)return e;J5!==o&&(J5=o,WS=new WeakMap);let t=WS.get(e);return t||(t={...e,choices:e.choices?e.choices.map(r=>({...r,label:f(r.label)})):null,spec:e.spec?{...e.spec,addLabel:f(e.spec.addLabel),...e.spec.childLabel?{childLabel:f(e.spec.childLabel)}:{}}:null},WS.set(e,t)),t}var Yre={isLockedBlock:(e,o)=>pu(e,o)||!!(o&&or()?.heldElsewhere(o.props.id)),duplicateBlocked:om,nestDepth:(e,o,t)=>o===Fd?Bd(e,t):0,newSectionNode:q5,canAddTo:(e,o,t,r)=>Vre(w5(e,o,r,t)),blockIsOffered:YL,slotsOf:C5,resolveOnInsert:!0},Xre=new Proxy(R5,{get:(e,o)=>{let t=Reflect.get(e,o);return typeof t=="string"?f(t):t}}),Jre={labelAtLevel:(e,o,t)=>f(mm(e,o,t)),descriptions:Xre,categoryLabel:e=>{let o=y5(e);return o===void 0?void 0:f(o)},firstSection:S5,blockRowName:P5,rowName:uu,plainText:an,Icon:$a,Thumbnail:cH,useProducts:V5,presets:G5()},Zre={desktop:2e3,tablet:800,mobile:390},Z5="desktop",Qre={options:_M,initial:Z5,fluid:Z5,fluidMin:yt,widths:Zre,hidesPerView:!0},eae={read:O5,write:e=>E5(e),forSelection:(e,o)=>A5(e,o)},oae={first:Uo,last:Be,firstGroup:No,lastGroup:eo,isSectionGroup:Wv,sectionGroupZone:$v,panelOf:e=>e===Uo?eH:null,get sharedReach(){return Ma()?rae:void 0},get shared(){return or()?B5:void 0},get groupTab(){return Ma()?U2:void 0},get groupBadge(){return Ma()?pS({type:eo})??void 0:void 0},get changeNotice(){return Ma()?j2():void 0},get band(){return Ma()?tae:void 0},get groupAccepts(){return Ma()?jv:void 0}},tae={foldable:!0},rae=e=>pS(e)??F5(e);function aae(e){return{...s4(a4(e),n4(e)),onCopyItem:l4(),openSettings:()=>e.show(IS)}}function nae(e,o){$H(e,o),QH()}var K3e={useOwnerName:Bn,useDocumentLabel:a0,useBridges:qre,useStandaloneBridges:aae,useDocumentPass:nae,blockRules:Yre,blockLook:Jre,devices:Qre,leftView:eae,pinned:oae,Canvas:dM,canvasDrag:{media:L5},Inspector:nH};export{yg as a,$t as b,zt as c,oo as d,Oue as e,Jh as f,Ohe as g,ai as h,ni as i,uA as j,mA as k,wp as l,Ehe as m,fj as n,xA as o,_he as p,DL as q,nve as r,NL as s,ive as t,ml as u,pa as v,eI as w,Rue as x,Zc as y,cO as z,pO as A,o1 as B,T0 as C,Ct as D,Gf as E,O0 as F,da as G,ase as H,nse as I,sse as J,E0 as K,lse as L,Kf as M,B0 as N,cse as O,pse as P,L0 as Q,use as R,vse as S,H0 as T,qo as U,Mn as V,no as W,Oa as X,X as Y,Xn as Z,Q as _,J as $,te as aa,re as ba,de as ca,xme as da,fe as ea,Zn as fa,Qn as ga,Yl as ha,Xl as ia,s1 as ja,yme as ka,Gz as la,l1 as ma,wme as na,Cme as oa,i1 as pa,xh as qa,aO as ra,y3 as sa,Cl as ta,nO as ua,_le as va,tI as wa,Tme as xa,Ome as ya,Eme as za,_me as Aa,Ame as Ba,Fme as Ca,Zse as Da,mc as Ea,bl as Fa,Qse as Ga,ele as Ha,V0 as Ia,fh as Ja,Z6 as Ka,Q6 as La,ole as Ma,e3 as Na,tle as Oa,YO as Pa,Jde as Qa,aE as Ra,Zde as Sa,Qde as Ta,efe as Ua,lp as Va,sI as Wa,p1 as Xa,ip as Ya,Ume as Za,aU as _a,nU as $a,sU as ab,jme as bb,$o as cb,Fa as db,as as eb,_xe as fb,Axe as gb,Fxe as hb,pE as ib,Bc as jb,AW as kb,ife as lb,q1 as mb,V1 as nb,Y1 as ob,Jxe as pb,Z1 as qb,Lhe as rb,Rhe as sb,kp as tb,IA as ub,Pl as vb,iO as wb,dO as xb,gh as yb,ha as zb,CO as Ab,uie as Bb,mie as Cb,xie as Db,_l as Eb,rt as Fb,wie as Gb,nle as Hb,gle as Ib,ph as Jb,yle as Kb,ma as Lb,xc as Mb,Ve as Nb,Bie as Ob,EO as Pb,AO as Qb,FO as Rb,vp as Sb,vA as Tb,Jhe as Ub,Pp as Vb,PA as Wb,tIe as Xb,NA as Yb,Mj as Zb,Ap as _b,ege as $b,Dc as ac,UW as bc,Nh as cc,Yj as dc,xge as ec,dF as fc,fF as gc,hge as hc,Ige as ic,Mx as jc,R4 as kc,Hx as lc,NT as mc,Ege as nc,wF as oc,CF as pc,Zge as qc,fye as rc,cye as sc,pye as tc,QI as uc,_F as vc,pG as wc,uG as xc,Bp as yc,xye as zc,hye as Ac,Uye as Bc,ZF as Cc,jye as Dc,QF as Ec,Kye as Fc,sB as Gc,lB as Hc,qG as Ic,fB as Jc,fSe as Kc,Np as Lc,SSe as Mc,li as Nc,CSe as Oc,mB as Pc,vSe as Qc,xB as Rc,hB as Sc,OSe as Tc,wl as Uc,g3 as Vc,dr as Wc,BSe as Xc,Mp as Yc,NSe as Zc,Wp as _c,wle as $c,Cle as ad,xa as bd,kle as cd,Jx as dd,jf as ed,c0 as fd,Er as gd,Ml as hd,hce as id,Ice as jd,gce as kd,yce as ld,f$ as md,Sce as nd,Hc as od,Wl as pd,kce as qd,Uh as rd,VE as sd,YE as td,Wh as ud,I$ as vd,vce as wd,Wc as xd,$l as yd,zc as zd,Pce as Ad,Tce as Bd,$c as Cd,Oce as Dd,Ece as Ed,QE as Fd,zl as Gd,Ul as Hd,jc as Id,o_ as Jd,Vn as Kd,t_ as Ld,Gc as Md,Kc as Nd,qc as Od,r_ as Pd,a_ as Qd,n_ as Rd,s_ as Sd,l_ as Td,c_ as Ud,p_ as Vd,spe as Wd,lpe as Xd,ipe as Yd,dpe as Zd,fpe as _d,W$ as $d,$$ as ae,cpe as be,ppe as ce,upe as de,m_ as ee,mpe as fe,xpe as ge,U$ as he,y_ as ie,K$ as je,b_ as ke,w_ as le,Pc as me,oz as ne,Upe as oe,O_ as pe,Xpe as qe,iue as re,due as se,dde as te,Al as ue,mde as ve,xde as we,GO as xe,fi as ye,jt as ze,xR as Ae,ou as Be,EPe as Ce,_Pe as De,$Pe as Ee,zPe as Fe,v7 as Ge,Dg as He,kR as Ie,UPe as Je,PR as Ke,TR as Le,FR as Me,F7 as Ne,R7 as Oe,pTe as Pe,vTe as Qe,PTe as Re,xi as Se,TTe as Te,OTe as Ue,Hg as Ve,ETe as We,Gwe as Xe,Bl as Ye,Ah as Ze,Ac as _e,a0e as $e,Gn as af,Tfe as bf,Ofe as cf,PE as df,hq as ef,PD as ff,gi as gf,wOe as hf,kOe as if,Yg as jf,WD as kf,Up as lf,Xwe as mf,Qwe as nf,tL as of,ig as pf,rL as qf,aL as rf,tCe as sf,nL as tf,Gp as uf,fCe as vf,lL as wf,fL as xf,iL as yf,C_e as zf,k_e as Af,v_e as Bf,uu as Cf,pN as Df,sy as Ef,K_e as Ff,q_e as Gf,xY as Hf,hY as If,A1e as Jf,F1e as Kf,B1e as Lf,L1e as Mf,yu as Nf,Su as Of,aAe as Pf,NN as Qf,WN as Rf,$N as Sf,zN as Tf,XFe as Uf,ewe as Vf,Cu as Wf,Fu as Xf,vM as Yf,PM as Zf,OM as _f,Bu as $f,OBe as ag,EBe as bg,Lu as cg,LJ as dg,HBe as eg,Pi as fg,UBe as gg,LM as hg,Ln as ig,F4 as jg,vae as kg,Pae as lg,iMe as mg,dMe as ng,fMe as og,R_ as pg,KBe as qg,Ru as rg,xae as sg,D4 as tg,N4 as ug,M4 as vg,WT as wg,Gae as xg,Wf as yg,n6 as zg,s6 as Ag,Sne as Bg,iae as Cg,P6 as Dg,K0 as Eg,Gse as Fg,Kse as Gg,X6 as Hg,qse as Ig,Vse as Jg,uc as Kg,Yse as Lg,Un as Mg,RO as Ng,DO as Og,qO as Pg,Kde as Qg,cE as Rg,afe as Sg,uE as Tg,Mh as Ug,KW as Vg,XW as Wg,Hfe as Xg,zbe as Yg,nwe as Zg,dwe as _g,MB as $g,mwe as ah,xwe as bh,Twe as ch,Owe as dh,$we as eh,ii as fh,yK as gh,zCe as hh,XCe as ih,uke as jh,mke as kh,Wke as lh,OL as mh,pae as nh,ERe as oh,UM as ph,Be as qh,em as rh,At as sh,hH as th,Wi as uh,IH as vh,gH as wh,mHe as xh,xHe as yh,e5 as zh,RS as Ah,o5 as Bh,w5 as Ch,R4e as Dh,K3e as Eh};
|