efficient-storefront-blocks 0.125.23 → 0.126.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -0
- package/dist/chunks/{CustomHtmlCodeWindow-LITJEQFG.js → CustomHtmlCodeWindow-LBWGRQID.js} +1 -1
- package/dist/chunks/{EditorPreviewCheckout-LRPANZRI.js → EditorPreviewCheckout-PWVUKVPS.js} +1 -1
- package/dist/chunks/SiteEditorProvider-73GAIF7L.js +1 -0
- package/dist/chunks/{chunk-PVRWP47B.js → chunk-3ZZ3Z6U5.js} +1 -1
- package/dist/chunks/{chunk-YOF4KT5H.js → chunk-ADYUBBPE.js} +1 -1
- package/dist/chunks/{chunk-ZHEHF42C.js → chunk-BLDYFJQ6.js} +1 -1
- package/dist/chunks/{chunk-TT3AZYTK.js → chunk-CKAOUQ5E.js} +1 -1
- package/dist/chunks/chunk-JYZ42RYY.js +337 -0
- package/dist/chunks/{chunk-ESKHLPB5.js → chunk-SI2DLHOL.js} +1 -1
- package/dist/chunks/{chunk-TMSNT2CP.js → chunk-VUFE7ACW.js} +1 -1
- package/dist/chunks/{chunk-DQ2TQC5H.js → chunk-WR3AVDA5.js} +1 -1
- package/dist/chunks/{fitment-data-FJ3MIJXK.js → fitment-data-VOATE5L5.js} +1 -1
- package/dist/chunks/{section-css-style-JQZMV74P.js → section-css-style-42PP2TPA.js} +1 -1
- package/dist/index.js +25 -25
- 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 +3 -0
- package/dist/words.js +2 -2
- package/package.json +2 -2
- package/dist/chunks/SiteEditorProvider-FT3P5QZM.js +0 -1
- package/dist/chunks/chunk-EEHSAQWF.js +0 -337
- /package/dist/chunks/{chunk-TT3AZYTK.js.LEGAL.txt → chunk-CKAOUQ5E.js.LEGAL.txt} +0 -0
- /package/dist/chunks/{chunk-LY7GZJ6M.js → chunk-D5HXXBSX.js} +0 -0
- /package/dist/chunks/{chunk-EEHSAQWF.js.LEGAL.txt → chunk-JYZ42RYY.js.LEGAL.txt} +0 -0
- /package/dist/chunks/{chunk-G5LEO2F2.js → chunk-OHEU7JQW.js} +0 -0
- /package/dist/chunks/{chunk-DFYWYSOT.js → chunk-ZV2GXEDX.js} +0 -0
|
@@ -1,337 +0,0 @@
|
|
|
1
|
-
import{$ as nf,D as Ok,E as Ek,F as ef,G as _k,H as Nk,I as kr,J as Mk,K as Hk,L as Wk,M as ot,N as of,O as Co,P as de,R as tf,S as vr,T as rf,X as $k,Y as af,Z as Pr,_ as zk,a as Go,b as Ys,ba as Qv,c as Ud,d as gn,e as Xs,f as nk,fa as fP,g as yn,h as jd,ha as cP,ia as Df,ja as MT,ka as HT,r as tl,t as Tk}from"./chunk-ZHEHF42C.js";import{a as hP,d as yf,e as tt,f as Sf,g as bf,h as vf,l as Ux}from"./chunk-DFYWYSOT.js";import{$ as hn,$a as pk,$c as wv,$e as yP,$j as _n,A as wC,Aa as YC,Ab as $t,Ac as sv,Ad as Hv,Ah as cT,Aj as bT,Ak as Hx,Al as Mf,B as CC,Ba as XC,Bb as bn,Bc as lv,Bd as Wv,Be as Ct,Bh as pT,Bj as Rx,C as Jo,Ca as ZC,Cb as ol,Cc as Ut,Cd as $v,Cf as _P,Cg as VP,D as kC,Da as JC,Dc as Ue,Dd as zv,De as je,Df as Tx,Dg as YP,Dj as On,E as vC,Ea as QC,Ec as Tr,Ed as bx,Ee as kt,Ef as AP,Eg as XP,Ej as wT,F as PC,Fa as ek,Fb as mx,Fc as Ix,Fd as Uv,Fe as Oe,Ff as FP,Fg as ZP,G as TC,Ga as br,Gb as na,Gc as iv,Gd as wx,Ge as mP,Gf as BP,Gg as JP,Gk as Lf,H as OC,Ha as ok,Hb as Qd,Hc as dv,Hd as jv,Hf as LP,Hg as _x,Hj as Dx,Hk as Rf,I as EC,Ib as kk,Ic as fv,Id as Gv,Ig as QP,Ij as fl,Ik as Wx,J as _C,Ja as tk,Jb as vk,Jc as uf,Jd as Kv,Jf as RP,Jg as Ax,Jk as LT,Ka as Gd,Kb as Pk,Kc as al,Kd as jt,Ke as Cx,Kg as ar,Kk as ua,L as AC,La as Zs,Lb as sf,Lc as cv,Ld as qv,Lg as Fx,Lj as En,Lk as RT,M as FC,Ma as Kd,Mb as Gk,Mc as pv,Md as da,Mg as Tf,Mk as DT,N as BC,Na as sk,Nb as lf,Nc as uv,Nd as Vv,Ne as il,Ng as eT,Nj as CT,Nk as NT,O as Nd,Ob as hx,Oc as mf,Od as vn,Og as oT,P as LC,Pb as df,Pc as mv,Pg as tT,Pk as WT,Q as RC,Qc as xv,Qd as tr,Qf as DP,Qg as rT,Qk as $x,Ra as lk,Rc as gx,Rd as Yv,Re as xP,Rf as NP,Rg as aT,Sa as ik,Sc as hv,Sd as ll,Se as kx,Sf as MP,Sk as $T,Ta as Js,Tc as kn,Td as Xv,Te as IP,Tf as Ox,Tk as zT,Ub as wn,Ud as fa,Uf as HP,Ug as nT,Uk as UT,V as ax,Va as Sn,Vc as Iv,Vd as Zv,Vf as WP,Vg as sT,Vj as kT,Vk as jT,Wa as dk,Wc as gv,Wf as Ex,Wj as Nx,Wk as GT,X as Ks,Xa as qd,Xb as Kk,Xc as yv,Xd as xf,Xj as vT,Xk as KT,Y as Md,Ya as fk,Yb as qk,Yc as Sv,Yd as Er,Yi as pa,Yj as PT,Z as Eo,Za as Qs,Zb as Vk,Zc as bv,Zd as Jv,_ as nx,_a as ck,_b as rl,_c as sa,_e as gP,_f as rr,_i as nr,_j as Bf,a as Oo,aa as DC,ab as cx,ad as yx,af as wf,ag as Pn,ai as uT,ak as An,b as un,ba as NC,bb as uk,bd as Cv,bf as SP,bh as Of,bi as mT,bk as cl,ca as MC,cb as Vd,cd as kv,cf as vx,cg as $P,ck as Fn,d as aC,da as HC,db as mk,dd as vv,df as bP,dg as zP,dk as TT,e as ex,ea as WC,eb as px,ed as Pv,ef as wP,eg as Pf,f as nC,fa as sx,fd as Tv,fe as eP,ff as CP,fg as _r,fj as Af,g as c,gb as xk,gd as Or,gf as kP,gg as UP,h as Wt,ha as $C,hb as hk,hd as nl,hf as Cf,hh as lT,hj as IT,i as xn,ia as Hd,id as la,ie as oP,ig as Tn,j as js,jb as Yd,jc as Cn,jd as Ov,je as tP,jf as vP,jh as iT,k as Ro,kb as Ik,kc as zt,ke as rP,kk as OT,l as Gs,lb as gk,lc as Yk,ld as ia,li as xT,lk as ET,mb as yk,mc as Xk,md as sl,mf as Px,mi as hT,ml as zx,n as uC,nb as Sk,nc as Zk,nd as Ev,o as mC,ob as Xd,oc as Jk,od as _v,p as xC,pb as bk,pc as Qk,pe as Do,q as hC,qc as ff,qd as Av,qe as Je,r as IC,rc as cf,rd as Fv,rf as PP,rg as Ar,s as gC,sb as wk,sc as ev,sd as Bv,se as hf,sf as TP,sg as jP,sk as Mx,t as yC,tb as wr,te as aP,tf as kf,tg as GP,th as Bx,tj as gT,u as Dd,ub as Zd,uc as ov,ud as Lv,ue as nP,uf as OP,ug as KP,uh as Ef,uk as _T,ul as qT,v as Sr,va as GC,vb as Jd,vc as tv,vd as Rv,ve as sP,vf as EP,vh as ca,vk as AT,vl as VT,wa as KC,wb as Ck,wc as rv,wd as Dv,we as lP,wh as _f,wj as yT,wk as FT,wl as Nf,x as rx,xa as qC,xb as po,xc as pf,xd as Nv,xe as If,xj as Ff,xl as YT,y as SC,ya as VC,yb as ux,yc as av,yd as Sx,ye as iP,yg as qP,yh as dT,yj as Lx,yk as BT,z as bC,za as dx,zb as el,zc as nv,zd as Mv,ze as dP,zh as fT,zj as ST,zl as Bn}from"./chunk-YOF4KT5H.js";import{a as cC,b as Rd,c as pC,g as Uk,h as xx,i as jk}from"./chunk-ESKHLPB5.js";import{$ as xb,$a as Db,$c as wo,$d as hw,$e as Xm,$g as tx,A as ro,Ae as qm,Af as Jm,B as on,Bb as Hs,Bd as Gm,Be as Sw,Ca as Ie,Cb as Zb,D as Ds,Dd as cw,De as Vm,E as ld,Ed as Sd,F as Dt,Fg as Xw,G as tn,Ga as Xo,Gb as Id,Gd as Zo,Gg as Zw,H as ze,Ha as St,Hc as rw,Hd as Lo,He as Cd,Hf as Lw,Hg as Jw,I as qe,Ia as Pm,Id as Ze,Ie as kd,Ig as Qw,J as rn,Ja as Tm,Jc as Wm,Jd as Mt,Je as bw,Jh as fx,K as id,Kd as er,Ke as vd,Kf as or,Kh as In,L as ib,La as Om,Lb as Jb,Ld as wt,Le as Pd,Lg as eC,Lh as rk,M as db,Ma as Em,Md as dn,Me as ww,Mh as Qo,Nd as pw,Ne as Cw,Nh as et,O as fb,Od as fn,Oe as Td,Og as oC,Oh as zd,P as dd,Pd as uw,Pe as Od,Pg as tC,Ph as ak,Q as cb,Qa as _m,Qb as gd,Qc as aw,Qe as aa,Qf as Rw,Qh as Vs,R as ea,Ra as Ob,Re as kw,Rg as rC,S as pb,Sa as Eb,T as ub,Ta as Ge,Tb as Qb,Td as ra,Tg as sC,Th as Ak,U as Ns,Ua as _b,Ub as ew,Ud as mw,Ug as lC,V as km,Va as md,Vd as xw,Ve as vw,W as we,Wa as Ab,Wb as ow,Wd as cn,Wf as Dw,Wg as yr,X as K,Xa as Fb,Xc as U,Xd as $s,Xf as Nw,Xh as Fk,Y as mb,Ya as Bb,Yb as Nm,Yc as re,Yd as zs,Ye as Ht,Yf as Mw,Yg as iC,Za as Lb,Zc as $m,Zd as Km,Ze as Us,Zf as Hw,Zg as ox,_ as fd,_a as Rb,_c as L,_e as Ym,_g as dC,a as en,ab as Nb,ad as Jt,ae as Iw,af as Pw,ah as Ld,b as fo,ba as hb,bb as Mb,bd as nw,be as gw,bf as Tw,bg as Ww,c as to,ca as cd,cb as xd,cd as W,cf as Ed,cg as $w,ch as fC,ci as Bk,d as Xt,da as Ib,db as hd,dd as yd,de as yw,df as Ow,di as Cr,ea as gb,eb as Hb,ed as Bo,eg as zw,f as jo,fa as vm,fb as Wb,fc as Mm,fd as sw,fe as bd,fg as Uw,fi as Lk,g as Rs,ga as yb,gd as bt,gf as Ew,gg as Fd,gi as Rk,h as eb,ha as Sb,hb as $b,hd as Nt,he as wd,hf as _d,hg as jw,hi as Dk,i as ob,ia as bb,ib as zb,id as zm,if as _w,ig as Bd,j as tb,jb as Am,jd as Ir,jf as Zm,jg as Qm,k as rb,kb as Ub,kd as Qt,kf as Aw,la as wb,lb as jb,ld as lw,lf as Fw,li as ko,ma as Cb,mb as Fm,mf as Ad,mg as Gw,na as kb,nb as nn,nd as Fe,nf as pn,ng as Kw,o as ab,ob as oa,od as ta,of as mn,pa as vb,pb as Bm,pd as Ws,pf as gr,pi as dl,qb as Lm,qd as sn,qg as qw,qh as lx,ra as Pb,rb as Rm,rd as iw,rg as Vw,rh as Wd,s as nb,sa as pd,sb as Gb,sd as Um,sh as zC,ta as Tb,tb as Kb,td as ln,tf as Bw,th as ix,u as De,ua as ud,ub as qb,uc as Hm,ud as jm,ug as Yw,uh as UC,v as sb,vb as Dm,w as sd,wb as Vb,wc as tw,wh as $d,x as lb,xb as Zt,xh as jC,ya as Ms,yb as Yb,yd as dw,yh as qs,z as Pe,za as an,zb as Xb,zd as fw}from"./chunk-PVRWP47B.js";import{a as z,b as co}from"./chunk-G5LEO2F2.js";import{c as pP,d as uP,e as gf}from"./chunk-LY7GZJ6M.js";import{jsx as jx,Fragment as Y4,jsxs as X4}from"react/jsx-runtime";import{createContext as Z4,useContext as J4}from"react";var Q4={mirrorHostStyles:!0,css:null,fontHrefs:[]},XT=Z4(Q4);function dne({value:e,children:o}){return jx(XT.Provider,{value:e,children:o})}function pl(){return J4(XT)}function ZT(){let{css:e,fontHrefs:o}=pl();return X4(Y4,{children:[o.map(t=>jx("link",{rel:"stylesheet",href:t},t)),e?jx("style",{"data-sf-canvas-css":"",children:e}):null]})}import{jsx as e6}from"react/jsx-runtime";import{createContext as o6,useContext as t6}from"react";var JT=o6(void 0);function une({metadata:e,children:o}){return e6(JT.Provider,{value:e,children:o})}var QT=()=>t6(JT);import{jsx as lo,Fragment as R4,jsxs as ed}from"react/jsx-runtime";import{useCallback as Es,useEffect as Yt,useRef as Rae,useState as A4}from"react";import{SettingsSwitch as Dae}from"efficient-easel/panel";import{PagesIcon as Nae,StylesIcon as Mae}from"efficient-easel/rail";import{PaletteIcon as Hae}from"efficient-shell/icons/efficient";import{Subtree as Wae,TreeRow as D4}from"efficient-easel/tree";import{useEasel as N4}from"efficient-easel/easel";import{toItemSelector as $ae}from"efficient-easel/node-ops";import{useEaselStrings as M4}from"efficient-easel/strings";import{createContext as r6,useContext as a6}from"react";var Gx=r6(!1),hne=()=>a6(Gx);import{useMemo as n6,useRef as s6}from"react";import{useEaselApi as l6}from"efficient-easel/easel";import{useSectionOps as i6}from"efficient-easel/screen/lib/document/use-section-ops";function Hf(){let e=l6(),o=i6(),t=s6(o);return t.current=o,n6(()=>({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 E6}from"efficient-easel/draw";import{insertAt as _6,moveTo as A6,removeAt as F6}from"efficient-easel/fields";import{useSyncExternalStore as w6}from"react";import{isNodeList as e0}from"efficient-easel/data";var o0="Flex";function Ln(e,o){return Ht(e)?typeof e?.[jo]=="string"?Kx(o?.[jo]):"":Kx(e?.[jo])}var Kx=e=>typeof e=="string"?e.trim():"",d6=e=>e.type===ro&&Array.isArray(e.props?.[Vm])&&e.props[Vm].some(o=>Kx(o?.[jo])!==""),f6=new Intl.NumberFormat("en-US");function c6(e){return/^\d+$/.test(e)?f6.format(Number(e)):e}function Pne(e,o){let t=o?o.find(r=>r.key===e)?.value:nb(Rs).find(r=>r.key===e)?.value;return t===void 0?null:c6(t)}var p6={[jo]:"any"};function qx(e,o=!1){let t=e.props;if(!t)return{node:e,names:!1};let r=e.type==="Text"&&(Ln(t)!==""||o&&Ln(t,p6)!==""),a=o||d6(e),n=qe(e,l=>ze(l,i=>{let d=qx(i,a);return d.names&&(r=!0),d.node})).props;if(e.type!==o0)return{node:n===t?e:{...e,props:n},names:r};let s=De(n);if(r&&!s&&(n={...n,[to]:Rs}),!r&&s===Rs){let{[to]:l,...i}=n;n=i}return{node:n===t?e:{...e,props:n},names:!1}}function t0(e,o,t){for(let r of e){if(r?.props?.id===o)return t;for(let a of tn(r??{})){let n=t0(a,o,r.type===o0?r:t);if(n!==void 0)return n}}}function Tne(e,o){if(!e0(e))return!0;let t=t0(e,o,null);if(t===void 0)return!0;if(t===null)return!1;let r=De(t.props);return!r||r===Rs}function r0(e){let o=e?.content;if(!e0(o))return e;let t=o.map(r=>qx(r));return t.every((r,a)=>r.node===o[a])?e:{...e,content:t.map(r=>r.node)}}function a0(e){return qx(e).node}import{decodePartId as C6}from"efficient-easel/draw";function Rn(e,o){let t=tv(e);return t?.control==="textList"?o.rowKey===(t.itemKey??"text")?AT(t,o.index):null:rv(e)?.[o.rowKey]??null}function Wf(e,o,t){let r=e.node.props,{key:a,row:n}=zt(e.propKey),s=n?nv(r,a,n,e.kind,o):ov(r,a,e.kind,o);return s?(t(e.zone,e.index,{...e.node,props:s}),!0):!1}import{readHidable as l0}from"efficient-easel/draw";import{parseOption as u6}from"efficient-shell/format";var Vx=e=>String(e+1).padStart(2,"0"),m6=[{label:"01 \xB7",value:"two-digit"},{label:"1.",value:"plain"}],Yx="two-digit",n0=e=>u6(m6,Yx,e),$f=(e,o)=>e==="plain"?`${o+1}.`:Vx(o);var Jx="Contents",Xx="Flex",s0="Text",x6="numberForm",h6="_contentsEntries",I6="_kickerNumber",i0="data-sf-kicker-number",g6=e=>l0(e).text.trim(),d0=e=>fa(e?.anchor),Zx=e=>String(e.props?.id??""),y6=e=>!l0(e.props?.text).hidden&&!Ln(e.props)&&!Ht(e.props),ul=e=>tn(e);function f0(e){for(let o of ul(e))for(let t of o){if(tr(t.props??{}))continue;if(t.type===s0&&y6(t))return t;if(t.type===s0)continue;let r=f0(t);if(r)return r}}function c0(e){return ul(e).some(o=>o.some(t=>t&&!tr(t.props??{})&&(t.type===Jx||c0(t))))}var p0=e=>e.type===Xx&&Pn(Xx,e.props?.direction)==="row";function u0(e){return ul(e).some(o=>o.some(t=>t&&!tr(t.props??{})&&(t.type===Jx||!p0(t)&&u0(t))))}function S6(e){let o=[],t=(r,a)=>{for(let n of r){if(!n||tr(n.props??{}))continue;if(n.type===Jx){a.open={contents:n,sections:a.waiting??[]},a.waiting=null,o.push(a.open);continue}if(p0(n)&&u0(n)){let l={inRow:!0,open:null,waiting:[]};for(let i of ul(n))t(i,l);a.inRow||(a.open=null);continue}let s=a.open?.sections??a.waiting;if(n.type===Xx&&d0(n.props)&&s&&!c0(n)){s.push({box:n,kicker:f0(n)});continue}for(let l of ul(n))t(l,a)}};return t(e,{inRow:!1,open:null,waiting:null}),o}function b6(e){return e.map(o=>({label:o.kicker?an(g6(o.kicker.props?.text)):"",anchor:d0(o.box.props)}))}function Qx(e){let o=e?.length?S6(e):[];if(!o.length)return null;let t=new Map,r=new Map;for(let a of o){let n=Zx(a.contents);n&&t.set(n,b6(a.sections));let s=n0(a.contents.props?.[x6]);a.sections.forEach((l,i)=>{let d=l.kicker?Zx(l.kicker):"";d&&r.set(d,$f(s,i))})}return{entries:t,numbers:r}}var Kne=e=>e.endsWith(".")?`${e} `:`${e} \xB7 `;function m0(e){let o=e;if(!o?.content?.length)return e;let t=Qx(o.content);if(!t)return e;let{entries:r,numbers:a}=t,n=s=>{let l=qe(s,h=>ze(h,n)),i=l.props??{},d=l!==s,f=Zx(s),x=f?r.get(f):void 0;x&&(i={...i,[h6]:x},d=!0);let u=f?a.get(f):void 0;return u&&(i={...i,[I6]:u},d=!0),d?{...s,props:i}:s};return{...o,content:o.content.map(n)}}var k6=`[${i0}]`,v6=["bold","italic","underline","strike","link","sup","sub"],P6=["bullet","number"];function th(e,o){return e?[...v6,...o?P6:[]]:[]}function x0(e,o){let t=C6(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}=zt(a),d=o.components[n.type]?.fields?.[l],f=i?Rn(d,i):d,x=ff(f);if(!x)return null;let u=n.props??{};if(uT(u)!==null||!i&&Ed(n.type,u,l)||n.type==="Text"&&l==="text"&&Ln(u)||i&&!(Array.isArray(u[l])&&i.index<u[l].length))return null;let h=i?pf(u[l],i):u[l];return{node:n,selector:s,propKey:a,kind:x,stored:h,offPage:Af(f),panelOnly:Qk(f)}}function zf(e,o){let t=x0(e,o);if(!t)return null;let{text:r,hidden:a}=pa(t.stored);if(!xv({offPage:t.offPage,hidden:!!a,panelOnly:t.panelOnly}))return null;let n=cf(t.kind);return{partId:e,value:r,rules:pd,multiline:n,skip:k6,offered:th(t.kind!=="plainText",n),write:s=>{let l=x0(e,o);l&&Wf({node:l.node,propKey:l.propKey,kind:l.kind,zone:l.selector.zone,index:l.selector.index},s,o.replace)}}}function rh(e,o,t){return e?.isConnected&&e.getAttribute(Ue)===t?e:o?.querySelector(`[${Ue}="${Uf(t)}"]`)??null}function Uf(e){return e.replace(/["\\]/g,"\\$&")}function h0(e){let o=e.activeElement;return o?o.tagName==="IFRAME"||!!o.closest(".es-canvas"):!1}var eh=null,oh=new Set;function T6(){return eh}function ah(e){if(e!==eh){eh=e;for(let o of oh)o()}}function O6(e){return oh.add(e),()=>{oh.delete(e)}}function I0(){return w6(O6,T6,()=>null)}function g0(e,o){if(e.outer)return null;let t=o.getItemById(e.ownerId);if(!t)return null;let r=ww(t.type);return!r||De(t.props)?null:{node:t,rows:r}}function B6(e,o){let t=g0(e,o),r=o.getItemById(e.nodeId);if(!t||!r)return null;let a=Ow(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:E6(e.ownerId,Cn(t.rows,{index:e.index,rowKey:a}))}function jf(e,o){let t=B6(e,o);return t?zf(t,o):null}function y0(e,o){return jf(e,o)?.value}function S0(e,o){let t=jf(e,o);return t?(t.write(e.text),!0):!1}function b0(e,o){let t=g0(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=_6(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=A6(n,s,i);break}case"delete":l=F6(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 YZ,jsxs as Hu}from"react/jsx-runtime";import{Fragment as XZ,useEffect as eH,useMemo as oH,useRef as ZZ,useState as za}from"react";import{useScreenDocument as sH}from"efficient-easel/screen/components/ScreenDocumentContext";import{UiIcon as Ny}from"efficient-easel/draw/client";import JZ from"efficient-easel/screen/components/SidePanelHead";import{InspectorIconButton as QZ}from"efficient-easel/chrome";import{Input as eJ,LoadingSpinner as oJ,PopupMenu as tJ,PopupMenuItem as tH,toast as rH}from"efficient-shell/ui";import{LayersTree as rJ,TreeGroupLabel as aJ,TreeRow as aH,TreeRowAction as Wu}from"efficient-easel/tree";import{AddIcon as nJ,DuplicateIcon as sJ,PageIcon as lJ,SettingsIcon as iJ}from"efficient-easel/icons";import{PagesIcon as dJ}from"efficient-easel/rail";import{useEaselHost as fJ}from"efficient-easel/screen/lib/host";import{useEaselSession as My}from"efficient-easel/screen/lib/session-context";import{useCallback as Gf,useEffect as L6,useSyncExternalStore as R6}from"react";import{useScreenDocument as v0}from"efficient-easel/screen/components/ScreenDocumentContext";var w0=new WeakMap;function ml(e){let o=w0.get(e);return o||(o={rows:null,loading:null,listeners:new Set},w0.set(e,o)),o}function nh(e,o){e.rows=o;for(let t of e.listeners)t()}var Kf=new Set;function qf(e,o){o?Kf.add(e):Kf.delete(e)}function C0(e){let o=ml(e),t=e.listPages().then(r=>nh(o,Kf.size?r.filter(a=>!Kf.has(a.id)):r),()=>nh(o,[])).finally(()=>{o.loading===t&&(o.loading=null)});return o.loading=t,t}var k0=()=>null,D6=()=>()=>{};function xl(){let{adapter:e,ready:o}=v0(),t=Gf(l=>{let{listeners:i}=ml(e);return i.add(l),()=>i.delete(l)},[e]),r=Gf(()=>ml(e).rows,[e]),a=R6(o?t:D6,o?r:k0,k0);L6(()=>{if(!o)return;let l=ml(e);l.rows===null&&!l.loading&&C0(e)},[e,o]);let n=Gf(()=>o?C0(e):Promise.resolve(),[e,o]),s=Gf(l=>nh(ml(e),l),[e]);return{rows:a,reload:n,setRows:s,getRows:r}}function N6(e,o){return e?.find(t=>t.slug===o)?.label?.trim()||`/${o}`}function P0(){let{currentSlug:e}=v0(),{rows:o}=xl();return N6(o,e)}import{canDuplicatePage as cJ,DuplicatePageDialog as pJ}from"efficient-easel/page-copy";import{jsx as To,jsxs as KM}from"react/jsx-runtime";import{useEffect as FZ,useId as BZ,useMemo as LZ,useRef as RZ,useState as Ly}from"react";import{useScreenDocument as DZ}from"efficient-easel/screen/components/ScreenDocumentContext";import{useEaselSession as NZ}from"efficient-easel/screen/lib/session-context";import{uniqueSlug as qM}from"efficient-easel/page-copy";import{AddIcon as MZ}from"efficient-easel/icons";import{Button as HZ,Dialog as WZ,EmptyState as $Z,LoadingSpinner as zZ,Paragraph as UZ,SidebarLayout as jZ,SidebarNavItem as Ry,Title as GZ,toast as VM}from"efficient-shell/ui";import{jsx as Tt,jsxs as cR}from"react/jsx-runtime";import{useEffect as D7,useState as Og}from"react";import{CanvasFrame as N7}from"efficient-easel/easel";import{Button as M7,Card as H7,FitFrame as W7,Text as $7}from"efficient-shell/ui";import{jsx as A0,Fragment as Y6,jsxs as X6}from"react/jsx-runtime";import{useEffect as F0,useLayoutEffect as Z6}from"react";var Vf="data-theme",T0="light";function M6(e){return e.getAttribute(Vf)===T0?"light":"dark"}function H6(e,o){return M6(e)===o?!1:(o==="light"?e.setAttribute(Vf,T0):e.removeAttribute(Vf),!0)}function W6(e){return Ux(e).getItem(Jm)}function bse(e,o){Ux(e).setItem(Jm,o)}function $6(e,o,t=new Date().getHours()){return Lw({mode:o.mode,override:W6(e),switchShown:o.switchShown,hour:t})}function O0(e,o){let t=e.documentElement;if(!t)return()=>{};let r=()=>H6(t,$6(e,o));r();let a=e.defaultView?.MutationObserver;if(!a)return()=>{};let n=new a(r);return n.observe(t,{attributes:!0,attributeFilter:[Vf]}),()=>n.disconnect()}var z6="style";function U6(e,o){let t=Bd(o),r=!1;for(let a of jw){let n=t[a]??"";e.style.getPropertyValue(a)!==n&&(n?e.style.setProperty(a,n):e.style.removeProperty(a),r=!0)}return r}function E0(e,o){let t=e.body;if(!t)return()=>{};let r=()=>U6(t,o);r();let a=e.defaultView?.MutationObserver;if(!a)return()=>{};let n=new a(r);return n.observe(t,{attributes:!0,attributeFilter:[z6]}),()=>n.disconnect()}import{VIEW_DESKTOP_MIN as j6,VIEW_TABLET_MIN as G6}from"efficient-easel/screen/lib/content/view-tiers";var sr={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=sr,K6=e=>e.flatMap(o=>[`[${o}] p`,`[${o}] li`]).join(","),q6=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(K6([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 = ${Zt};
|
|
10
|
-
var TABLET_MIN = ${G6}, DESKTOP_MIN = ${j6};
|
|
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);`,V6="storefront-fit-words";function _0(e){let o=e.createElement("script");return o.id=V6,o.textContent=q6,(e.head??e.documentElement).appendChild(o),()=>{e.__sfFitWords?.(),o.remove()}}var J6=`
|
|
303
|
-
[${Ue}][${Ue}] { cursor: text; }
|
|
304
|
-
`;function Yf({children:e,document:o}){let{theme:t,themeMode:r,themeSwitchShown:a}=ko(),n=or(t);return F0(()=>{if(o)return O0(o,{mode:r,switchShown:a})},[o,r,a]),F0(()=>{if(o)return E0(o,n)},[o,n]),Z6(()=>{if(o)return _0(o)},[o]),X6(Y6,{children:[A0(ZT,{}),A0("style",{children:J6}),e]})}import{jsx as dL}from"react/jsx-runtime";import{memo as yK}from"react";import{Render as SK}from"efficient-easel/render";import{jsx as Dn}from"react/jsx-runtime";import{createContext as Q6,useContext as eW,useMemo as oW}from"react";var sh=Q6(null);function tW({children:e}){return Dn(sh.Provider,{value:"first",children:e})}function Zf({children:e}){return Dn(sh.Provider,{value:"below",children:e})}function hl(){return eW(sh)}function lh(){return hl()==="below"?{loading:"lazy"}:{}}function Jf(e){let o=lh();return Dn("img",{...e,...o})}var B0="laterSlideIds",rW=new Set(["Breadcrumb","CategoryBar","Divider","Spacer","Ticker"]);function L0(e){return wf(e?.filter(o=>!o?.type||!rW.has(o.type)))}function Xf(e,o=[]){if(Array.isArray(e))for(let t of e)Xf(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))Xf(r,o)}return o}function R0(e,o){let t=o?.type,r=o?.props?.id;return oW(()=>{let a=t?e.components[t]:void 0;if(!t||!a)return e;let n=a.render,s=l=>l.id===r?Dn(tW,{children:Dn(n,{...l})}):Dn(n,{...l});return{...e,components:{...e.components,[t]:{...a,render:s}}}},[e,t,r])}function D0(e){return e.props?qe(e,o=>{let t=ze(o,D0),r=e.type===jC&&t.every(a=>a.type===Wd)?zC(t):t;return r.length!==o.length||r.some((a,n)=>a!==o[n])?r:o}):e}function N0(e){return id(e,o=>ze(o,D0))}var aW="Flex",M0="ListSearch",H0=["FAQ"],nW="listKey";function W0(e,o){let t={search:e.type===M0,list:H0.includes(String(e.type))};return qe(e,r=>{for(let a of r){let n=W0(a,o);t.search||=n.search,t.list||=n.list}return r}),e.type===aW&&t.search&&t.list&&String(e.props?.id??"")?(o.add(e),{search:!1,list:!1}):t}function $0(e,o,t){let r=o.has(e)?String(e.props?.id):t,a=qe(e,n=>ze(n,s=>$0(s,o,r)));return r&&(e.type===M0||H0.includes(String(e.type)))?{...a,props:{...a.props,[nW]:r}}:a}function z0(e){return rn(e,o=>{let t=new Set;for(let r of o)W0(r,t);return t.size?ze(o,r=>$0(r,t,"")):o})}import{isNode as u$,isNodeList as HE}from"efficient-easel/data";import{jsx as _e,Fragment as o$,jsxs as fr}from"react/jsx-runtime";import{jsx as xh}from"react/jsx-runtime";import{Fragment as cW,jsx as pW}from"react/jsx-runtime";import{jsx as ih}from"react/jsx-runtime";import{createContext as iW,Fragment as dW,useContext as fW}from"react";import{jsx as U0,jsxs as sW}from"react/jsx-runtime";import{lazy as lW}from"react";var j0=lW(()=>import("./section-css-style-JQZMV74P.js"));function G0({css:e,id:o,attr:t}){return U0(j0,{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,[Rd]:""};let o=e.render;e.render=t=>{let r=pC(t),a=typeof t.id=="string"?t.id:"";return!r||!a?o(t):sW(Pr,{className:"sf-section-css",attrs:{[cC]:a},children:[U0(j0,{css:r,id:a}),o(t)]})}}};var q0=iW(null);function V0({rootProps:e,children:o}){let t=e&&typeof e=="object"?e:null,r=vk(t),a=ih(dW,{children:o},"page");return ih(q0.Provider,{value:t,children:r?[ih(G0,{css:r,id:kk,attr:Qd},"css"),a]:a})}function Y0(){return fW(q0)}function vt(){return Dd(Y0())===yC}function Qf({className:e,children:o}){let t=vt();return pW(cW,{children:o(Jo(e,t))})}import{SITE_SIDE as uW}from"efficient-easel/screen/lib/content/length-units";var X0="sideSpace",Il=uW,dh="none",nle=[{value:"box",label:"Box"},{value:Il,label:"Site"},{value:dh,label:"None"}],sle="box",lle="Box: on small screens the Box keeps its own side space, up to 24 px. Site: it uses the site's Side space, as the site's own sections do. None: from 800 px up the Box runs to the screen's edges; on small screens it keeps the site's Side space, up to 20 px.";function Z0(e){return e===Il||e===dh?e:"box"}function ile(e){return e===Il||e===dh?e:void 0}import{parseOption as ph}from"efficient-shell/format";var ec="standard",oO=[{label:"Standard",value:"standard"},{label:"Editorial",value:"editorial"},{label:"Simple",value:"simple"},{label:"Statement",value:"statement"},{label:"Natural",value:"natural"},{label:"Essay",value:"essay"}],ch=["numStyle","logoSrc","logoAlt","linkText","linkHref","_gLogo"],fh=[...ch,"description"],J0={standard:["eyebrowLook"],editorial:[...ch,"eyebrowLook"],simple:fh,statement:fh,natural:ch,essay:fh},Q0=["gap-5","gap-3"],eO=["text-[length:var(--size-body,16px)]","text-[15px]"];function ple(e){return ph(Q0,Q0[0],e)}function ule(e){return ph(eO,eO[0],e)}function tO(e){return ph(oO,ec,e)}function mle(e){let o=oO.map(r=>r.value),t=[...new Set(Object.values(J0).flat())];return Zo(e,t.map(r=>[[r],Sd("headStyle",o,ec,o.filter(a=>!J0[a].includes(r)))]))}import{readHidable as mW,VIEW_TIERS as xW,viewKeyAt as hW}from"efficient-easel/draw";var ma={direction:"row",share:"content",align:"center"},xa={top:14,bottom:14,topPhone:12,bottomPhone:12},oc={wrap:"nowrap",loop:"scroll",sectionAccent:dC,gap:60,gapPhone:32,separator:"dot",sectionBorder:{top:1,bottom:1}},rO={gap:120,gapPhone:64},tc={...Bo,sizeToken:{step:"label",px:14,pxPhone:12},letterSpacing:.25,lineHeight:1.5},aO={textStyle:"heading-3",letterSpacing:.005,case:"upper",lineHeight:1},gl={top:24,bottom:24,topPhone:16,bottomPhone:16},ha={top:16,bottom:16,topPhone:12,bottomPhone:12},yl={justify:"between",wrap:"wrap",gap:32,separator:"none"},Sl={...Bo,letterSpacing:.1,lineHeight:1.5};var rc={top:24,bottom:24,topPhone:24,bottomPhone:24},ac={top:72,bottom:72,topPhone:72,bottomPhone:72},Nn={top:100,bottom:100,topPhone:60,bottomPhone:60},nc={top:120,bottom:120,topPhone:70,bottomPhone:70},IW={top:24,bottom:24,topPhone:24,bottomPhone:24},gW=40,sc={top:120,bottom:120,topTablet:80,bottomTablet:80,topPhone:80,bottomPhone:80},yW={top:24,bottom:24,topPhone:24,bottomPhone:24},lc={top:24,bottom:24,topPhone:24,bottomPhone:24},SW={top:84,bottom:84,topPhone:84,bottomPhone:84},ic={top:48,bottom:48,topPhone:48,bottomPhone:48},dc={top:80,bottom:80,topPhone:60,bottomPhone:60},fc={top:100,bottom:60,topPhone:60,bottomPhone:40},cc={top:60,bottom:60,topPhone:40,bottomPhone:40},pc={top:80,bottom:80,topTablet:60,bottomTablet:60,topPhone:60,bottomPhone:60},uc={top:76,bottom:76,topPhone:76,bottomPhone:76},mc={top:76,bottom:76,topPhone:76,bottomPhone:76},wl={top:80,bottom:40,topPhone:60,bottomPhone:32},Cl={top:76,bottom:76,topPhone:76,bottomPhone:76},xc={top:72,bottom:72,topPhone:72,bottomPhone:72},hc={top:40,bottom:64,topPhone:24,bottomPhone:36},Ic={top:120,bottom:120,topPhone:80,bottomPhone:80,topTablet:80,bottomTablet:80},gc={top:48,bottom:48,topPhone:48,bottomPhone:48},kl=e=>{let o=Ie(e.bandPadding)??gW;return{top:o,bottom:o,topPhone:o,bottomPhone:o}},nO=(e,o,t)=>({desktop:e,tablet:o,mobile:t}),uh=e=>fn(e.headPlacement)==="own-box",Be=(e,o)=>({top:nO(e.top,o?.top??e.topTablet??e.top,e.topPhone),bottom:nO(e.bottom,o?.bottom??e.bottomTablet??e.bottom,e.bottomPhone)}),sO=e=>({top:e.topPhone,bottom:e.bottomPhone}),bl=e=>o=>uh(o)?{top:0,bottom:e.bottom}:e,bW=(e,o)=>{let t=mW(e[o]);return t.hidden?!1:!!t.text||e.editor?.isEditing===!0},yc={Banner:{frame:()=>Be(rc)},Cards:{frame:bl(Be(ac))},Chart:{frame:()=>Be(Cl)},ContactLocations:{frame:()=>Be(Nn,sO(Nn))},Countdown:{frame:()=>Be(ic)},DocBody:{frame:()=>Be(dc)},DocMasthead:{frame:()=>Be(fc)},DocMetaCards:{frame:()=>Be(cc)},FAQ:{frame:e=>{let o=uh(e)||!["num","title","linkText"].some(r=>bW(e,r)),t=Be(nc);return o?{top:0,bottom:t.bottom}:t},edge:!0},FeaturedCover:{frame:()=>Be(pc)},Grid:{frame:()=>Be(IW)},Integrations:{frame:()=>Be(uc)},KeyFeatures:{frame:()=>Be(mc)},Logos:{frame:e=>uh(e)?0:Be(kl(e))},LongRead:{frame:bl(Be(sc))},Masthead:{frame:()=>Be(wl,sO(wl))},Mockup:{frame:()=>Be(Cl)},OrderSummary:{frame:()=>Be(yW)},PaymentBadges:{frame:()=>Be(lc)},Prose:{frame:bl(Be(xc))},SectionHeader:{frame:e=>{let o=Be(hc);return tO(e.headStyle)==="standard"?o:{top:o.top,bottom:0}},edge:!0},Series:{frame:bl(Be(Ic))},Stats:{frame:()=>Be(gc)},Testimonials:{frame:bl(Be(SW))},Ticker:{frame:()=>Be(xa),edge:!0}};function Ple(e,o,t){let r=z(yc,e)??t;return r?na({values:el(o,po,!0),frame:r.frame(o),drawsFrame:!0,edge:r.edge},!0).root:null}var lO=(e,o)=>typeof e=="object"&&"top"in e?e[o]:e;function wW(e,o){let t={...e};for(let r of xW)delete t[hW(o,r)];return t}function Tle(e,o,t,r){let a=z(yc,e)??t;if(!a)return{first:null,last:null};let n=a.frame(o),s=el(o,po,!0),l=(i,d)=>na({values:wW(s,i),frame:d,drawsFrame:!0,edge:a.edge},!0).root;return{first:l("bottom",{top:lO(n,"top"),bottom:r.firstBottom}),last:l("top",{top:r.lastTop,bottom:lO(n,"bottom")})}}var CW=/^(?:[^\s]*:)?p[ytb]-/;function iO(e,o,t){if(!o)return t?{className:e,style:t}:{className:e};let r=e.split(/\s+/).filter(n=>n&&!CW.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 kW}from"efficient-easel/data";var mh=new Set(["FAQ"]);function qo(e,o){if(!mh.has(e))return!1;let t=o.template;return typeof t=="function"?(t.blockCount??0)>0:kW(t)}var cO={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}},pO=new Set(Object.keys(cO));function hh(e,o){return o?.innerPadding??z(cO,e)}var Mn=e=>hh(e)??{};var Sc=new Set(["Flex","Text","Heading","ImageBlock","ButtonBlock"]),vW=new Set(["Divider"]),PW=new Set(["Hero","HeroSingle","IntroBleed","CategoryBar","DocTabs"]),dO=new Set(["ProductGrid"]);function Ih(e,o,t=!1,r){let a=e.render;e.render=n=>{if(o?.(n))return a(n);let s={...el(n,po,t),sideSpace:Z0(n.sideSpace)},l=r?na({values:s,frame:r(n)},!0).outer:bk(s),i=a(n);if(!l)return i;let d=u=>xh(Qf,{className:u?`${l.className} ${u}`:l.className,children:h=>xh(de,{className:h,style:l.style,children:i})}),f=Cr(n,{atSectionLine:!0}),x=Cr(n);return f===x?d(f):xh(tf,{line:"by-box",draw:u=>d(u?x:f)})}}var uO={name:"sectionPadding",applies:(e,o,t)=>o.isSection(e)&&!PW.has(e)&&!!t&&typeof t.render=="function",panel(e,o,t){let r=hh(o,e);if(r){e.fields={...e.fields,...t.sidesPaddingFields({keys:wr,unitKey:Zd,fallback:r,tablet:!0,siteSide:!0})};return}if(dO.has(o))return;let a=[wr.top,wr.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=fO(o,e);if(n){xO(e,o,t,n);return}e.fields={...e.fields,...t.sidesPaddingFields({tablet:!0,siteSide:!0})}},draw(e,o){if(!hh(o,e)){if(dO.has(o)){Ih(e);return}Sc.has(o)||vW.has(o)||Ih(e,o==="Flex"?t=>Kk(t.bgImage):mh.has(o)?t=>qo(o,t):void 0,!0,fO(o,e))}}},TW=["Heading","Text","ImageBlock","ButtonBlock"],OW=["LogoBlock"],mO={Text:e=>Or(e,"text").textStyle?.startsWith("heading-")?ol.heading:ol.text,Heading:()=>ol.heading,ButtonBlock:()=>ol.text,Breadcrumb:()=>mx(gl),SpecStrip:()=>mx(ha),...Object.fromEntries(Object.entries(yc).map(([e,o])=>[e,o.frame]))};function fO(e,o){return z(mO,e)??o?.ownPad?.frame}var EW={ButtonBlock:"Outer padding"};function _W(e,o){let t=e[$t],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{[$t]:s,...l}=e;return n.length?{...l,[$t]:n}:l}function AW(e,o,t){if(o<=0)return null;let r=Array.isArray(e[$t])?e[$t]:[];return(t?bn().filter(a=>a.startsWith(po[t])):bn()).some(a=>typeof e[a]=="number"&&!r.includes(a))?c("plus {n} px (older setting)",{n:o}):null}function xO(e,o,t,r){e.fields={...e.fields,...t.ownPaddingFields?.(r,AW,z(EW,o))??t.sidesPaddingFields({tablet:!0,siteSide:!0})};let a=e.resolveData;e.resolveData=(n,s)=>{let l=n.props??{},i=s?.trigger==="replace"?_W(l,s.changed):l,d=i===l?n:{...n,props:i};return a?a(d,s):d}}var hO={name:"blockPadding",applies:(e,o,t)=>(TW.includes(e)||OW.includes(e))&&!!t&&typeof t.render=="function",panel(e,o,t){let r=z(mO,o);if(!r){e.fields={...e.fields,...t.sidesPaddingFields({tablet:!0,siteSide:!0})};return}xO(e,o,t,r)},draw(e,o){Sc.has(o)||Ih(e,void 0,!0)}};import{createContext as gh,useContext as bc}from"react";var IO=gh(null);function qle(){return bc(IO)===!0}function Vle(){return bc(IO)!==null}var FW=gh(!1);function Yle(){return bc(FW)}function Xle(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 wc=gh(null);function Zle(){return bc(wc)}import{jsx as Ia}from"react/jsx-runtime";import{Component as WW,createContext as $W,lazy as uie,Suspense as mie,useContext as zW,useSyncExternalStore as UW}from"react";function BW(e,o){let t=e.trim();if(!Cc(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 eie(e){return e.startsWith("/")||Cc(e)}function Cc(e){return/^(?:https?:)?\/\//i.test(e.trim())}var vl=Object.freeze({target:"_blank",rel:"noopener noreferrer"});function gO(e,o){return BW(e,o)?{...vl}:{}}function oie(e){return typeof e=="string"?e.trim():""}var tie="data-sf-box-link",yO="absolute inset-0 -z-[1] outline-none focus-visible:z-[2] focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-accent",yh="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",LW="data-sf-box-jump";function RW(e){return`sf-box-jump-${e}`}function rie(e,o){return e===!0?fa(o):""}function DW({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 aie(e){let o=`[${LW}="${e}"]`,t=`.${RW(e)}`,r=`[id="${e}"]:target`;return DW({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 NW="hrefRewrite";function MW(){return en("efficient.link-href-rewrites",()=>({rewrites:new Map,count:0,missed:new Set}))}function HW(){return typeof process<"u"&&!0}function lie(e){let o=e?.[NW];return typeof o=="string"?o.trim():""}function SO(e){if(!e)return null;let o=MW(),t=o.rewrites.get(e);return!t&&!HW()&&o.missed.add(e),t??null}var jW={Link:cP,Image:fP},bO=$W(jW);function Sie({runtime:e,children:o}){return Ia(bO.Provider,{value:e,children:o})}function bh(){return zW(bO)}function bie(){return bh().pagePath??null}var GW=()=>()=>{},KW=()=>gf()||null,qW=()=>null;function VW(){return UW(GW,KW,qW)}function ga({hrefRewrite:e,newTab:o,...t}){let{Link:r}=bh(),a=VW(),n=o===!0?{...t,...vl}:o==="auto"?{...t,...gO(t.href,a)}:t,s=SO(e);return s?Ia(Sh,{name:s.name,href:n.href,fallback:Ia(r,{...n}),children:Ia(YW,{Link:r,rewrite:s.rewrite,...n})},s.key):Ia(r,{...n})}function YW({Link:e,rewrite:o,...t}){let r=fo(o(t.href)),a=r&&Pb(r)?r:t.href;return Ia(e,{...t,href:a})}var Sh=class extends WW{state={failed:!1,href:this.props.href};static getDerivedStateFromProps(o,t){return o.href===t.href?null:{failed:!1,href:o.href}}static getDerivedStateFromError(){return{failed:!0}}componentDidCatch(o){console.error(`The link href rewrite ${this.props.name} failed; the link goes where it was typed.`,o)}render(){return this.state.failed?this.props.fallback:this.props.children}};function kc(e){let{Image:o}=bh();return Ia(o,{...e})}import{jsx as j3}from"react/jsx-runtime";import{jsx as ye,jsxs as vo,Fragment as W3}from"react/jsx-runtime";import{imageCopyUrl as CO,imageSrcSet as XW}from"efficient-shell/image-copies";var wO;function wh(){return wO===void 0?{}:{host:wO}}var vie="(max-width: 800px) 100vw, min(100vw, 1600px)",Pie="(max-width: 960px) 100vw, 50vw";function ya(e,{fallbackWidth:o=1280,maxWidth:t}={}){let r=XW(e,{...wh(),...t===void 0?{}:{maxWidth:t}});return r?{src:CO(e,o,wh()),srcSet:r}:{src:e}}var ZW=/[\s"'()\\;]/;function Tie(e){let o=CO(e,1920,wh());return o===e?ZW.test(e)?`url("${xx(e)}")`:`url(${e})`:`url("${xx(o)}")`}import{parseOption as JW}from"efficient-shell/format";var Pl="solid",QW=[{label:"Solid",value:"solid"},{label:"Outlined",value:"outlined"}];function kO(e){return JW(QW,Pl,e)}var Ch="sf-secnum-outline",vO="font-display text-[length:var(--size-headingMedium,clamp(48px,6vw,96px))] font-medium leading-[0.8] tracking-[-0.02em]",PO=`@supports (-webkit-text-stroke: 1px currentColor){.${Ch}{color:var(--site-surface-2);-webkit-text-stroke:1px var(--site-line)}}`;import{parseOption as TO}from"efficient-shell/format";var kh="plain",OO=[{label:"Plain",value:"plain"},{label:"Filled",value:"filled"},{label:"Line",value:"line"}],e3="line",o3={KeyFeatures:"filled"};function Tl(e){return z(o3,e)??kh}function EO(e,o){return TO(OO,Tl(o),e)}function Bie(e){return TO(OO,e3,e)}import{jsxs as wa,jsx as Ne}from"react/jsx-runtime";import{Fragment as Rh}from"react";import{Fragment as P3,jsx as Fh}from"react/jsx-runtime";import{Fragment as zO,jsx as Fl,jsxs as y3}from"react/jsx-runtime";import{createContext as Ah,useContext as Bl,useEffect as S3,useId as b3,useMemo as w3,useRef as C3}from"react";import{armEntrance as k3}from"efficient-shell/format";import{jsx as t3}from"react/jsx-runtime";import{useEffect as AO,useRef as _O,useState as r3}from"react";import{armEntrance as a3,entranceAttrs as n3,playEntrance as s3}from"efficient-shell/format";function vc({views:e,editing:o,boxClass:t,boxAttrs:r,boxStyle:a,takesViewHide:n=!1,atEdge:s=!1,children:l}){let i=_O(null),d=af(),f=ot(),x=n?f:kr,u=Ol(i,!0,s),{attrs:h,style:I}=n3(e[u]),S=_O(Hn.seed(e)),v=JSON.stringify(e);return AO(()=>{let O=i.current;if(O){if(o){let R=Hn.next(S.current,e,u);S.current=R.seen,R.play&&s3(O);return}return a3(O)}},[v,u,o]),x.scope(t3("div",{ref:i,className:Co(`${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 Ol(e,o=!0,t=!1){return El(e,o,t)??"desktop"}function El(e,o=!0,t=!1){let[r,a]=r3(void 0),n=vr(t?"edge":"by-box"),{phone:s,tablet:l}=jv(n);return AO(()=>{if(!o)return;let i=e.current?.ownerDocument?.defaultView??(typeof window>"u"?null:window);if(!i?.matchMedia){a("desktop");return}let d=i.matchMedia(s),f=i.matchMedia(l),x=()=>a(d.matches?"phone":f.matches?"tablet":"desktop");return x(),d.addEventListener("change",x),f.addEventListener("change",x),()=>{d.removeEventListener("change",x),f.removeEventListener("change",x)}},[e,o,s,l]),r}var _l="@name",FO="@body",BO="@value",LO={[_l]:"Name",[FO]:"Body",[BO]:"Value"},l3={TimelineTrack:{"entries.date":_l,"entries.title":_l,"entries.blurb":FO},Footprint:{"offices.city":_l},Stats:{"items.label":_l,"items.value":BO}};function i3(e){let{key:o,row:t}=zt(e);return t?`${o}.${t.rowKey}`:null}function lr(e,o){if(!e)return o;let t=i3(o);return t?z(l3,e)?.[t]??o:o}import{ENTRANCE_STATE_ATTR as m3,entranceAttrs as x3,scrollAttrs as h3}from"efficient-shell/format";import{parseFocal as c3,formatFocal as p3,readScroll as u3}from"efficient-shell/format";import{phoneKey as d3,tabletKey as f3}from"efficient-easel/screen/lib/content/view-tiers";var vh=[{block:"HeroSlide",upload:"mediaImage",focus:Zs.image},{block:"HeroSlide",upload:"mediaImage2",focus:Zs.image2},{block:"HeroSingle",upload:"mediaImage",focus:Zs.image},{block:"HeroSingle",upload:"mediaImage2",focus:Zs.image2},{block:"ImageBlock",upload:"src",focus:"focal"}],RO=e=>[e,f3(e),d3(e)],Vie=[...new Set(vh.flatMap(e=>RO(e.focus)))].sort();function DO(e,o){let[t,r,a]=RO(o).map(n=>typeof e[n]=="string"&&e[n]?e[n]:void 0);return{desktop:t,tablet:r,phone:a}}var uo={effect:"scroll",zoom:"scrollZoom",start:"scrollStart",end:"scrollEnd"},Wn="_gScroll",Pc="_cScroll",Tc=zd(Object.values(uo));function ir(e,o){return u3(Vs(e,uo.effect,o),Vs(e,uo.zoom,o),Vs(e,uo.start,o),Vs(e,uo.end,o))}function $n(e){let o={desktop:ir(e,"desktop"),tablet:ir(e,"tablet"),phone:ir(e,"phone")};return Qo.every(t=>o[t].effect==="none")?null:o}function Ph(e){let o=ak(e.desktop,e.tablet,e.phone),t=r=>{let a=o[r];if(typeof a!="string")return;let{x:n,y:s}=c3(a);return p3(n,s)};return{desktop:t("desktop"),tablet:t("tablet"),phone:t("phone")}}function NO(e,o){return Ph(DO(e,o))}var Oc={},Th="_partMotion",Oh=[...Ud,Xo,Ge.duration,Ge.delay,...Tc];function HO(e){return Iv(e,Th)}function Sa(e,o){return gv(e,Th,o)}var I3=new Set([Go.kind,Xo,uo.effect]);function WO(e,o,t,r){let{[t]:a,...n}=Sa(e,o),s=r==null||r===""||r==="none"&&I3.has(t)?n:{...n,[t]:r};return yv(e,Th,o,Object.keys(s).length?s:null)}function Al(e){return{entrance:yn(e),hover:Ob(e),scroll:$n(e)}}function $O(e){let o=Al(e);return o.entrance!==null||o.hover!=="none"||o.scroll!==null}function Ec(e,o){let{attrs:t,style:r}=x3(o),a=Object.keys(t).filter(n=>t[n]!==void 0);for(let n of a)e.setAttribute(n,String(t[n]));for(let[n,s]of Object.entries(r))e.style.setProperty(n,String(s));return()=>{for(let n of a)e.removeAttribute(n);for(let n of Object.keys(r))e.style.removeProperty(n);e.removeAttribute(m3)}}function _c(e,o){let{attrs:t,style:r}=h3(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 g3=4;function zn(e){let o;for(let t of e)(!o||t.element.compareDocumentPosition(o.element)&g3)&&(o=t);return o}var Eh="data-sf-part-host";function Ac(e){let o=e?.ownerDocument.defaultView,t=e;for(;t&&!t.hasAttribute(Eh)&&!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 ba="data-sf-part-lift",MO="sf-part-lift";function Fc(e){if(e.getElementById(MO))return;let o=e.createElement("style");o.id=MO,o.textContent=Pv(`[${ba}]`).join(`
|
|
317
|
-
`),e.head.appendChild(o)}var Bc=Ah(null),jO=Ah(null),GO=Ah(null);function KO({needles:e,styles:o,motions:t=Oc,type:r,atEdge:a=!1,sizeCaps:n,children:s}){let l=b3(),i=vr(a?"edge":"by-box"),d=JSON.stringify([l,e,o,t,r,n]),f=Ct(),x=w3(()=>{let h=Object.keys(t).filter(I=>$O(t[I]));return Uv(e,o,l,I=>lr(r,I),I=>sl(r,I),I=>h.includes(I)?Al(t[I]):null,h,I=>ia(n,I),f)},[d,f]);if(!x)return Fl(zO,{children:s});let u=Gv(x,{inBox:i});return y3(zO,{children:[u&&Fl("style",{href:`${v3}${l}-${jk(u)}`,precedence:VO,dangerouslySetInnerHTML:{__html:Uk(u)}}),Fl(Bc.Provider,{value:x,children:s})]})}var _h=new WeakMap;function UO(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)?(Fc(e.ownerDocument),e.setAttribute(ba,"")):e.removeAttribute(ba)}function qO(e){let o=C3(null),t=e?.motion?.entrance??null,r=e?.motion?.scroll??null,a=e?.motion?.hover==="lift",n=Ol(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 S3(()=>{let d=o.current,f=Ac(d?.parentElement??null);if(!t&&!r&&!a||!d||!f)return;let x=s?()=>{let I=Ec(f,s),S=k3(f);return()=>{S?.(),I()}}:null,u=_h.get(f)??[];_h.set(f,u);let h={element:d,arm:x,entering:s!==null&&s.kind!=="none",scroll:l?()=>_c(f,l):null,lift:a};return u.push(h),UO(f,u),()=>{let I=u.indexOf(h);I<0||(u.splice(I,1),h.undo?.(),h.undo=void 0,h.undoScroll?.(),h.undoScroll=void 0,UO(f,u),u.length||_h.delete(f))}},[i,a]),o}var VO="sf-part-styles",v3=`${VO}-`;function YO(e){let o=Bl(Bc),t=Bl(jO),r=Kv(o,e);return r&&r.stamp!==t?r:null}function Ide(e){return wx(Bl(Bc),e)}function XO({stamp:e,children:o}){return Fl(jO.Provider,{value:e,children:o})}function gde({children:e}){let o=Bl(Bc);return Fl(GO.Provider,{value:o,children:e})}function yde(e){return wx(Bl(GO),e)}function Ll({value:e,children:o}){let t=YO(e),r=qO(t);return t?Fh(XO,{stamp:t.stamp,children:Fh("span",{ref:r,[bv]:t.stamp,...t.textStyle?{[sa]:t.textStyle}:{},children:o})}):Fh(P3,{children:o})}import{jsx as Bh,Fragment as T3}from"react/jsx-runtime";function ZO({className:e}){return Bh("span",{className:e||void 0,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(Bh(ZO,{},`r${a}`))}),Bh(T3,{children:t})}var Pde=ZO;function Ve(e,o=!1,t){let r=L3(o),a=ud(e);if(a.length===1){let[s]=a,l=Tb(s),i=l?F3(l,s.children):s.children;return wa(Ll,{value:e,children:[t,Lc(i,r)]})}let n=[];return a.forEach((s,l)=>{if(s.bullet){n.push(Ne("span",{"data-sf-bullet":"",className:O3,children:Lc(s.children,r)},l));return}if(s.number!=null){n.push(wa("span",{"data-sf-number":s.number,className:E3,children:[wa("span",{className:_3,children:[s.number,"."]}),Lc(s.children,r)]},l));return}l>0&&!A3(a[l-1])&&n.push(Ne("br",{},`br${l}`)),n.push(Ne(Rh,{children:Lc(s.children,r)},l))}),wa(Ll,{value:e,children:[t,n]})}var O3="relative block pl-6 before:absolute before:left-1.5 before:font-bold before:text-accent before:content-['\xB7']",E3="relative block pl-[2em]",_3="absolute left-0 w-[1.6em] text-right tabular-nums";function A3(e){return e.bullet||e.number!=null}var JO="text-accent underline underline-offset-[0.18em]";function F3(e,o){let[t,...r]=o;return t?.kind==="text"?[{kind:"text",text:`${e}${t.text}`},...r]:[{kind:"text",text:e},...o]}function B3(e){return Gk(e)||void 0}function Lc(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(eE(a,n,o)),r=!1}),r||t.push(Ne("span",{},"end")),t}function Lh(e,o){return e.length===1&&e[0].kind==="text"?rt(e[0].text):e.map((t,r)=>t.kind==="text"?Ne(Rh,{children:rt(t.text)},r):eE(t,r,o))}function L3(e){return e?"font-normal italic text-accent":"not-italic text-accent"}function Nde(e){return QO(e)}function QO(e,o){let t=e.split(`
|
|
318
|
-
`);return wa(Ll,{value:e,children:[o,t.map((r,a)=>wa(Rh,{children:[a>0?Ne("br",{}):null,Ne("span",{children:r})]},a))]})}function eE(e,o,t){if(e.kind==="link")return Cc(e.href)?Ne(ga,{newTab:"auto",href:e.href,className:JO,children:Lh(e.children,t)},o):Ne("a",{href:e.href,className:JO,children:Lh(e.children,t)},o);let r=Lh(e.children,t),a=Cb[e.kind];if(a)return Ne("span",{[kb]: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=B3(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 oE(e,o=!0,t=!1){let r=e.split(`
|
|
319
|
-
`);return Ne(Ll,{value:e,children:r.map((a,n)=>wa("span",{children:[t?QO(a):Ve(a,o),n<r.length-1?Ne("br",{}):null]},n))})}function tE(e){return e.split(/\n\s*\n/).map(o=>o.trim()).filter(Boolean)}import{jsx as Dh,jsxs as D3}from"react/jsx-runtime";import{jsx as R3}from"react/jsx-runtime";function rE(){return R3("span",{className:"block h-px w-[30px] bg-current"})}var Nh={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 N3(e,o){return`font-mono text-[length:var(--size-label,${e}px)] uppercase tracking-[0.3em] text-accent`}var M3=`inline-block w-fit bg-accent px-3.5 py-1.5 font-mono ${Nh.labelSmall} font-semibold uppercase tracking-[0.16em] text-bg`,H3=`flex items-center gap-3.5 font-mono ${Nh.labelLarge} uppercase tracking-[0.3em] opacity-80 ${Nh.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:kr;if(o==="line")return i.scope(D3("div",{className:Co([a,H3,n].filter(Boolean).join(" "),i.className),...i.attrs,children:[Dh(rE,{}),Dh("span",{children:Ve(e)})]}));let d=o==="filled"?M3:N3(t,r);return i.scope(Dh("span",{className:Co([a,d,n].filter(Boolean).join(" "),i.className),...i.attrs,children:Ve(e)}))}var Ee={headingMediumUpTo800Small:"max-view-wide:text-[length:min(var(--size-headingMedium,32px),var(--sf-heading-max,9999px))]",headingMediumUpTo800Large:"max-view-wide:text-[length:min(var(--size-headingMedium,36px),var(--sf-heading-max,9999px))]",headingSmallUpTo800:"max-view-wide:text-[length:var(--size-headingSmall,28px)]",headingMedium2:"text-[length:min(var(--size-headingMedium,44px),var(--sf-heading-max,9999px))]",headingMedium3:"text-[length:min(var(--size-headingMedium,56px),var(--sf-heading-max,9999px))]",headingMedium1:"text-[length:var(--sf-heading-max,var(--size-headingMedium,38px))]",bodySmall:"text-[length:var(--size-body,14px)]",bodyLarge:"text-[length:var(--size-body,16px)]",label:"text-[length:var(--size-label,14px)]",shelfLabel:"text-[length:var(--size-label,13px)]",shelfLabelSmall:"text-[length:var(--size-label,12px)]",shelfBody:"text-[length:var(--size-body,13px)]",shelfHeadingUpTo800Xs:"max-view-wide:text-[length:var(--size-headingMedium,28px)]",shelfHeadingUpTo800Small:"max-view-wide:text-[length:var(--size-headingMedium,32px)]",shelfHeadingUpTo800Large:"max-view-wide:text-[length:var(--size-headingMedium,36px)]",shelfHeadingUpTo800Xl:"max-view-wide:text-[length:var(--size-headingMedium,40px)]",shelfHeading1:"text-[length:var(--size-headingMedium,40px)]",shelfHeading2:"text-[length:var(--size-headingMedium,48px)]",shelfHeading3:"text-[length:var(--size-headingMedium,56px)]",shelfHeading4:"text-[length:var(--size-headingMedium,64px)]"},aE=[{value:"para",label:"Paragraph size \u2014 13px",cls:`font-mono font-normal uppercase tracking-[0.22em] ${Ee.shelfLabel}`},{value:"sm",label:"Small \u2014 40px",cls:`font-heading2 font-medium tracking-[-0.03em] ${Ee.shelfHeading1} ${Ee.shelfHeadingUpTo800Xs}`},{value:"md",label:"Medium \u2014 48px",cls:`font-heading2 font-medium tracking-[-0.03em] ${Ee.shelfHeading2} ${Ee.shelfHeadingUpTo800Small}`},{value:"lg",label:"Large \u2014 56px",cls:`font-heading2 font-medium tracking-[-0.03em] ${Ee.shelfHeading3} ${Ee.shelfHeadingUpTo800Large}`},{value:"xl",label:"Extra large \u2014 64px",cls:`font-heading2 font-medium tracking-[-0.03em] ${Ee.shelfHeading4} ${Ee.shelfHeadingUpTo800Xl}`}],$3="lg";function z3(e){return(aE.find(o=>o.value===e)??aE.find(o=>o.value===$3)).cls}var jn=(e,o=!1)=>typeof e=="string"?oE(e,o):e,dr=(e,o=!1)=>typeof e=="string"?Ve(e,o):e;function nE({num:e,title:o,link:t,logo:r,description:a,accent:n,accentNum:s,numStyle:l=Pl,look:i="standard",titleAccent:d,accentTracking:f="-0.02em",spaceBelow:x,rowGap:u,descriptionSize:h,className:I="",eyebrowLook:S=kh,titleSize:v,count:O,capped:R=!1,rootPadsBottom:T=!1}){let g=vt(),w=x??(i==="editorial"?"mb-[60px]":"");if(i==="shelf")return e||o||a||t?vo("div",{className:Jo(`${yP} 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 ${R?"":"-mx-[var(--sf-site-gutter,40px)] px-[var(--sf-site-gutter,40px)] max-view-wide:-mx-[min(20px,var(--sf-site-gutter,40px))] max-view-wide:px-[min(20px,var(--sf-site-gutter,40px))]"}`,g),children:[vo("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&&ye("span",{className:`font-mono ${Ee.shelfLabel} leading-none uppercase tracking-[0.22em] text-fg-dim`,children:dr(e)}),o&&ye("h2",{className:`${z3(v)} leading-none text-fg max-view-wide:leading-[1] [&>span]:block`,children:jn(o)})]}),(a||t||O)&&vo("div",{className:"flex items-center gap-5 max-view-wide:gap-3 view-wide:grow view-wide:justify-end",children:[a&&ye("span",{className:`max-w-[340px] truncate font-display ${Ee.shelfBody} leading-[1.4] text-fg-dim max-view-wide:hidden view-wide:w-0 view-wide:grow view-wide:text-right`,children:dr(a)}),t&&vo(ga,{newTab:"auto",href:t.href,className:`inline-flex items-center gap-2 whitespace-nowrap font-mono ${Ee.shelfLabel} uppercase tracking-[0.2em] text-fg-dim transition-colors hover:text-fg`,children:[dr(t.text),ye("span",{"aria-hidden":!0,children:"\u2192"})]}),O&&ye("span",{className:`whitespace-nowrap font-mono ${Ee.shelfLabelSmall} uppercase tracking-[0.2em] text-fg-dim`,children:O})]})]}):null;if(i==="editorial"){let y=!!o||!!d;return vo("header",{className:`${w} 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"?ye(Un,{text:e,className:"pb-2"}):ye("span",{className:"pb-2",children:e})),y&&vo("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&&vo(W3,{children:[" ",ye("em",{className:"font-serif font-normal italic text-accent",style:{letterSpacing:f},children:d})]})]}),a&&ye("p",{className:`max-w-[360px] pb-1 text-right font-display ${Ee.bodySmall} leading-[1.5] text-fg-dim max-view-desktop:max-w-full max-view-desktop:text-left`,children:a})]})}if(i==="simple"){let y=`${w} ${I}`.trim();return vo("div",{className:y||void 0,children:[e&&(typeof e=="string"?ye(Un,{text:e,look:S,className:"mb-4 block"}):ye("span",{className:"mb-4 block",children:e})),o&&ye("h2",{className:`font-heading2 ${Ee.headingMedium2} font-medium uppercase leading-none tracking-[-0.02em] text-fg ${Ee.headingMediumUpTo800Small}`,children:jn(o)})]})}if(i==="statement"){let y=`${w} ${I}`.trim();return vo("div",{className:y||void 0,children:[e&&(typeof e=="string"?ye(Un,{text:e,look:S,className:"mb-4 block"}):ye("span",{className:"mb-4 block",children:e})),o&&ye("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 y=`flex max-w-[680px] flex-col ${u??"gap-5"} ${w} ${I}`.replace(/\s+/g," ").trim();return vo("div",{className:y,children:[e&&(typeof e=="string"?ye(Un,{text:e,look:S}):ye("span",{children:e})),o&&ye("h2",{className:`font-heading2 ${Ee.headingMedium2} font-medium leading-[1.05] tracking-[-0.03em] ${Ee.headingMediumUpTo800Small}`,children:jn(o)}),a&&ye("p",{className:`${h??`${Ee.bodyLarge}`} leading-[1.6] opacity-85`,children:a})]})}if(i==="essay"){let y=`${w} ${I}`.trim();return vo("div",{className:y||void 0,children:[e&&(typeof e=="string"?ye(Un,{text:e,look:S,className:"mb-4 block"}):ye("span",{className:"mb-4 block",children:e})),o&&ye("h2",{className:`font-heading2 ${Ee.headingMedium1} [font-weight:var(--sf-heading-weight,500)] [text-transform:var(--sf-heading-case,uppercase)] [&_em]:[font-weight:var(--sf-heading-weight-strong,inherit)] leading-none tracking-[-0.02em] text-fg ${Ee.headingSmallUpTo800}`,children:jn(o)})]})}let _=!!a||!!t,E=!!o,D=kO(l)==="outlined",b=`font-mono ${Ee.label} uppercase tracking-[0.3em]`,F=null;if(e)if(D)F=ye("span",{className:`${vO} text-fg-dim ${Ch}`,children:dr(e)});else if(s&&!n&&typeof e=="string"){let y=e.indexOf("/"),k=y===-1?e:e.slice(0,y),P=y===-1?"":e.slice(y);F=vo("span",{className:b,children:[ye("span",{className:"text-accent",children:dr(k)}),P&&ye("span",{className:"text-fg-dim",children:dr(P)})]})}else F=ye("span",{className:`${b} ${n?"text-accent":"text-fg-dim"}`,children:dr(e)});return vo("div",{className:T?"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:[D&&e&&ye("style",{children:PO}),vo("div",{className:"flex flex-col items-start gap-3",children:[r?.src&&ye(_k,{children:ye(Jf,{...U3(hP(r.src)),alt:r.alt,className:"h-8 w-auto object-contain"})}),F]}),E&&ye("h2",{className:n?"font-heading2 text-[length:min(var(--size-headingMedium,clamp(36px,5vw,64px)),var(--sf-heading-max,9999px))] [font-weight:var(--sf-heading-weight,500)] [text-transform:var(--sf-heading-case,uppercase)] [&_em]:[font-weight:var(--sf-heading-weight-strong,inherit)] leading-[0.95] tracking-[-0.025em]":`font-heading2 ${Ee.headingMedium3} [font-weight:var(--sf-heading-weight,500)] [&_em]:[font-weight:var(--sf-heading-weight-strong,inherit)] leading-none tracking-[-0.03em] whitespace-pre-line ${Ee.headingMediumUpTo800Large} max-view-wide:leading-[1]`,children:jn(o)}),_&&vo("div",{className:"flex flex-col items-end gap-3 max-view-wide:items-start",children:[a&&ye("p",{className:`max-w-[340px] font-display ${Ee.bodySmall} leading-[1.5] text-fg-dim text-right max-view-wide:max-w-full max-view-wide:text-left`,children:dr(a)}),t&&vo(ga,{newTab:"auto",href:t.href,className:`inline-flex items-center gap-2 whitespace-nowrap font-mono ${Ee.label} uppercase tracking-[0.2em] text-fg-dim transition-colors hover:text-fg`,children:[dr(t.text),ye("span",{"aria-hidden":!0,children:"\u2192"})]})]})]})}function U3(e){let o=ya(e,{fallbackWidth:640,maxWidth:960});return o.srcSet?{src:o.src,srcSet:o.srcSet,sizes:"240px"}:{src:e}}function sE({num:e,title:o,titleAccent:t,desc:r,accentTracking:a="-0.02em",spaceBelow:n="mb-[60px]",className:s=""}){return j3(nE,{look:"editorial",num:e,title:o,titleAccent:t,description:r,accentTracking:a,spaceBelow:n,className:s})}import{jsx as Dl,jsxs as Z3}from"react/jsx-runtime";import{useEffect as J3,useState as hE}from"react";import{jsx as G3}from"react/jsx-runtime";var lE="sf-photo-hover";function Rc({sheet:e,name:o=lE}){return e?G3("style",{href:o,precedence:lE,dangerouslySetInnerHTML:{__html:e}}):null}import{jsx as uE,Fragment as V3}from"react/jsx-runtime";import{createContext as Y3,useContext as Nc}from"react";var K3=Xb["view-desktop"];function q3(e,o){return[...[...e].sort((t,r)=>t.below-r.below).map(t=>`(max-width: ${t.below-.02}px) ${t.slot}`),o].join(", ")}var Mh=e=>`${Math.ceil(e*1e4-1e-6)/100}vw`,Dc=e=>{let o=/^([\d.]+)vw$/.exec(e??"");return o?Math.min(1,Number(o[1])/100):1};function ufe(e,o){return{phone:Mh(e.phone*Dc(o?.phone)),tablet:Mh(e.tablet*Dc(o?.tablet)),desktop:Mh(e.desktop*Dc(o?.desktop))}}function Hh(e){if([e.phone,e.tablet,e.desktop].every(r=>Dc(r)>=1))return;let o=[{below:Zt,slot:e.phone},{below:K3,slot:e.tablet}],t=o.filter((r,a)=>r.slot!==(o[a+1]?.slot??e.desktop));return q3(t,e.desktop)}function iE(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 dE=(e,o)=>e.steps.find(t=>o<=t.edge)?.slot??e.last,fE=e=>{let o=/^min\((.+)\)$/.exec(e);return o?o[1].split(/,\s*(?![^()]*\))/).map(t=>t.trim()):[e]};function cE(e,o){if(e===o)return e;let t=[...fE(e),...fE(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 pE(e,o){if(!o)return e;let t=iE(e),r=iE(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:cE(dE(t,s),dE(r,s))})),n=cE(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 X3={hasWidth:!1},Rl=Y3(X3);function gfe(){return Nc(Rl).hasWidth}function yfe(e){let{bound:o}=Nc(Rl);return o&&Hh(o)||e}function mE(e){let{bound:o}=Nc(Rl);return pE(e,o&&Hh(o))}function xE({children:e}){let o=Nc(Rl);return o.bound?uE(Rl.Provider,{value:{hasWidth:o.hasWidth},children:e}):uE(V3,{children:e})}function IE({fallback:e,className:o,src:t,alt:r="",objectPosition:a,objectFit:n="cover",sizes:s="100vw",sizesFromCell:l=!1,priority:i=!1,deferFetch:d=!1,showBackground:f=!0,treatment:x}){let u=lh(),h=mE(s),I=l?h:s,[S,v]=hE(!1),[O,R]=hE(!1),T=t||"";J3(()=>{v(!1),R(!1)},[T]);let g=yf(T),w=g&&!O?ya(T):{src:T},_=!T||S;return Z3("div",{className:`relative h-full w-full overflow-hidden ${o??""}`,children:[Dl("div",{className:"absolute inset-0 flex items-center justify-center",style:f?{background:"var(--site-surface)"}:void 0,children:_?e:null}),Dl(ef,{fill:tl,children:T&&(g?Dl("img",{src:w.src,alt:r,...w.srcSet?{srcSet:w.srcSet,sizes:I}:{},decoding:"async",...d?{loading:"lazy"}:u,className:`absolute inset-0 h-full w-full${x?.className?` ${x.className}`:""}`,style:{display:S?"none":"block",objectFit:n,...a?{objectPosition:a}:{},...x?.style??{}},onError:()=>w.srcSet?R(!0):v(!0)}):Dl(kc,{src:T,alt:r,fill:!0,sizes:I,priority:i,...x?.className?{className:x.className}:{},style:{display:S?"none":"block",objectFit:n,...a?{objectPosition:a}:{},...x?.style??{}},onError:()=>v(!0)}))}),Dl(Rc,{sheet:x?.sheet})]})}import{jsx as Q3}from"react/jsx-runtime";var Nl="sf-empty-hides",Wh="sf-empty-else",Mc="sf-head-core",Hc="sf-head-box",Ml="holdsHeadCore",Hl="isHeadCore",e$=`.${Nl}:empty{display:none}.${Nl}:not(:empty)~.${Wh}{display:none}.${Hc},.${Mc}{display:contents}.${Hc}:not(:has(.${Mc}:not(:empty))){display:none}`;function Wc(){return Q3("style",{children:e$})}var No={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)]"},gE={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"},$h="sf-itc-boxes",t$="sf-itc-steps";function zh(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 Xfe({num:e,title:o,description:t,boxes:r,steps:a,columns:n=3,cta:s,padTop:l,padBottom:i,bandPad:d,editing:f=!1,omitHead:x=!1,cardImage:u,cardImageUnit:h,cardText:I,rows:S,copies:v}){let O=vt(),R=v!==void 0,T=S&&(R||(r?.blockCount??0)>0)?S:null,g=d??Ck({padTop:l,padBottom:i},Mn("ProcessSteps")),w=R?[]:zh(a),_=w.length>0?w:f&&!r&&!R?[1,2,3].map(y=>({tag:c("Column {n}",{n:y})})):[],E=gE[n]??gE[3],D=T?"grid-cols-1":E,b=T?"":" [&>*]:min-h-[560px]",F=I==="on-image";return _e(de,{as:"section",className:Jo(["relative z-[2] border-b border-line bg-bg",g.className].filter(Boolean).join(" "),O),style:{...g.style,...aT(u,h)},children:fr("div",{className:Jo(kC,O),children:[x?null:_e(sE,{num:e,title:o?.trim()?Ve(o,!0):void 0,desc:t?.trim()?Ve(t,!1):void 0}),r&&!R?fr(o$,{children:[_e(Wc,{}),T?_e(wc.Provider,{value:{hand:T,ids:r.blockIds??[],boxes:[]},children:_e(r,{className:`${$h} ${Nl} sf-card grid ${D} gap-[2px] border border-line bg-line${b} [&>*]:bg-bg`,minEmptyHeight:260})}):_e(r,{className:`${$h} ${Nl} sf-card grid ${D} gap-[2px] border border-line bg-line [&>*]:min-h-[560px] [&>*]:bg-bg`,minEmptyHeight:260})]}):null,R&&v?_e("div",{className:`${$h} sf-card grid ${D} gap-[2px] border border-line bg-line${b} [&>*]:bg-bg`,children:T?_e(wc.Provider,{value:{hand:T,copies:!0},children:v}):v}):null,_.length>0&&_e("div",{className:`${t$} ${Wh} sf-card grid ${E} gap-[2px] border border-line bg-line`,children:_.map((y,k)=>{let P=(y.specs??[]).filter(C=>(C?.label??"").trim()||(C?.value??"").trim());return fr("article",{className:F?"flex flex-col bg-bg":"flex min-h-[560px] flex-col bg-bg",children:[fr("div",{className:F?"sf-card-image relative aspect-[5/3] overflow-hidden bg-surface max-[700px]:aspect-[4/3]":"sf-card-image relative aspect-[5/3] overflow-hidden border-b border-line bg-surface",children:[_e(IE,{label:y.tag?.trim()||y.title?.trim()||`column-${k+1}`,src:y.image||void 0,sizes:"(max-width: 1100px) 100vw, 33vw",...r?{deferFetch:!0}:{}}),_e("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-0 z-[1]",style:{background:`linear-gradient(180deg, ${qs(.55)} 0%, transparent 30%, transparent 70%, ${qs(.65)} 100%)`}}),F&&_e("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-x-0 bottom-0 z-[1] h-[78%]",style:{background:`linear-gradient(180deg, transparent 0%, ${qs(.73)} 55%, ${qs(.92)} 100%)`}}),y.tag?.trim()&&_e("span",{className:`absolute left-5 top-[18px] z-[2] font-mono ${No.label} uppercase tracking-[0.3em] text-accent`,children:rt(y.tag)}),y.meta?.trim()&&_e("span",{className:F?`absolute right-5 top-[18px] z-[2] font-mono ${No.label} uppercase tracking-[0.24em] text-overlay-fg/80`:`absolute right-5 bottom-[18px] z-[2] font-mono ${No.label} uppercase tracking-[0.24em] text-overlay-fg/80`,children:rt(y.meta)}),F&&(y.title?.trim()||y.copy?.trim())&&fr("div",{className:"absolute inset-x-0 bottom-0 z-[2] flex flex-col gap-2.5 px-8 pb-7 pt-14 max-[700px]:px-6 max-[700px]:pb-6",children:[y.title?.trim()&&_e("h3",{className:`flex min-h-[2em] flex-col justify-end font-heading3 ${No.headingSmall1} font-medium uppercase leading-none tracking-[-0.02em] text-overlay-fg ${No.headingSmallUpTo700Small}`,children:Ve(y.title,!0)}),y.copy?.trim()&&_e("p",{className:`min-h-[3em] font-display ${No.bodySmall} leading-[1.5] text-overlay-fg/85`,children:Ve(y.copy,!1)})]})]}),F?P.length>0&&_e("div",{className:"grid grid-cols-2 gap-2 border-t border-line px-8 py-7 max-[700px]:px-6 max-[700px]:py-6",children:P.map((C,B)=>fr("div",{className:"flex flex-col gap-1",children:[C.label?.trim()&&_e("span",{className:`font-mono ${No.labelSmall} uppercase tracking-[0.24em] text-fg-dim`,children:rt(C.label)}),C.value?.trim()&&_e("span",{className:`font-display ${No.bodyLarge} font-medium tracking-[-0.01em] text-fg`,children:rt(C.value)})]},B))}):fr("div",{className:"flex flex-1 flex-col gap-4 px-8 py-9 max-[700px]:px-6 max-[700px]:py-7",children:[y.title?.trim()&&_e("h3",{className:`font-heading3 ${No.headingSmall2} font-medium uppercase leading-none tracking-[-0.02em] ${No.headingSmallUpTo700Large}`,children:Ve(y.title,!0)}),y.copy?.trim()&&_e("p",{className:`font-display ${No.bodySmall} leading-[1.55] text-fg-dim`,children:Ve(y.copy,!1)}),P.length>0&&_e("div",{className:"mt-auto grid grid-cols-2 gap-2 border-t border-line pt-4",children:P.map((C,B)=>fr("div",{className:"flex flex-col gap-1",children:[C.label?.trim()&&_e("span",{className:`font-mono ${No.labelSmall} uppercase tracking-[0.24em] text-fg-dim`,children:rt(C.label)}),C.value?.trim()&&_e("span",{className:`font-display ${No.bodyLarge} font-medium tracking-[-0.01em] text-fg`,children:rt(C.value)})]},B))})]})]},k)})}),s?.text&&_e("div",{className:"mt-12 flex justify-end border-t border-line pt-8",children:fr(ga,{newTab:"auto",href:s.href,className:`group inline-flex items-center gap-3.5 border border-line px-6 py-4 font-mono ${No.labelLarge} uppercase tracking-[0.3em] text-fg transition-colors hover:border-accent hover:text-accent`,children:[rt(s.text),_e("span",{"aria-hidden":!0,className:"text-accent transition-transform group-hover:translate-x-[3px]",children:"\u2192"})]})})]})})}var r$=["selected","highlighted"],yE="data-sf-card-state",bE="pointer-events-none absolute inset-0 border border-accent",wE="pointer-events-none absolute inset-x-0 bottom-0 border-b-2 border-accent",CE="pointer-events-none absolute inset-0 border-2 border-accent outline outline-1 -outline-offset-1 outline-accent",kE="absolute inset-y-0 left-0 w-[3px] bg-accent",vE="absolute -inset-[2px] -z-[1] bg-[color-mix(in_oklab,var(--accent)_14%,transparent)]",PE="after:pointer-events-none after:absolute after:inset-0 hover:after:border-2 hover:after:border-accent",SE=e=>{let o=sC.find(t=>t.role===e)?.token;if(!o)throw new Error(`card-state: the palette has no ink token for "${e}"`);return o},a$={[SE("muted")]:`var(${SE("fg")})`};function Uh(e){return e?.selected===!0}function jh(e){return e?r$.filter(o=>e[o]===!0).join(" "):""}function TE(e,o="frame"){let t=jh(e);return t?o==="frame"&&Uh(e)?{[yE]:t,className:"relative isolate",style:{...a$}}:{[yE]:t,className:"relative"}:{}}var n$={highlighted:!0},s$={},$c="badge";function oce(e,o=[]){return e.map((t,r)=>({...t,key:t.key||o[r]?.key||Us(t,r)}))}function OE(e){return!e||typeof e!="object"?!1:Object.entries(e).some(([o,t])=>o==="key"||o===$c||o==="state"?!1:typeof t=="string"?t.trim()!=="":Array.isArray(t)?t.length>0:t!=null&&typeof t!="function")}function tce(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,[$c]:s===a?t:""})),states:e.map((n,s)=>s===a?n$:s$)}}function rce(e){return{chosen:typeof e.highlightedCard=="string"?e.highlightedCard.trim():"",badge:typeof e.highlightBadge=="string"?e.highlightBadge:""}}function ace(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 EE="data-sf-card-press",_E=`${yO} appearance-none bg-transparent border-0 p-0 m-0`,AE=`${_E} cursor-pointer`,FE=_E;import{paymentMarkItems as l$,paymentMarks as i$}from"efficient-shell/icons/payment";var d$=[eb,ob],BE=e=>d$.includes(e),LE=e=>l$({name:e.label,kind:e.kind}),f$=(e,o)=>e.kind===o.kind&&e.label===o.label&&(e.kind==="brand"?e.mark===o.mark:e.glyph===o.glyph);function RE(e){return i$(e.map(o=>({name:o.label,kind:o.kind}))).map(o=>({label:o.label,kind:e.find(t=>LE(t).some(r=>f$(r,o)))?.kind??""}))}function ice(e){return LE(e)[0]??null}var DE={heading:"Trusted by *teams worldwide*"},zc=()=>[{src:"",alt:c("Logo one")},{src:"",alt:c("Logo two")},{src:"",alt:c("Logo three")},{src:"",alt:c("Logo four")},{src:"",alt:c("Logo five")}],c$=ld.Logos,pce={label:"Logos",drawsPictures:!0,fields:c$,defaultProps:{items:[],contained:!0}};var p$=()=>zc().map(e=>({label:e.alt}));function NE(e,o){let t=sd(e,o,p$()).rows.filter(r=>r.label);return BE(De(e))?RE(t):t}var Wl="Flex",m$="Text",$l=e=>Object.values(e??{}).filter(HE),x$=e=>e.type===ro&&De(e.props)!=="",WE=e=>{if(e.type!==Wl)return!1;let o=$l(e.props).flat();return o.length>0&&o.every(x$)},Uc=e=>fn(e.props?.headPlacement)==="own-box"||WE(e),Gh=e=>e===void 0||Array.isArray(e)&&e.length===0;function $E(e){return e.type===m$?!0:e.type===Wl&&$l(e.props).every(o=>o.every($E))}var zE={ProcessSteps:e=>Gh(e.boxes)&&zh(e.steps).length===0,Logos:e=>De(e)?h$(e):Gh(e.logos)&&Gh(e.items)};function h$(e){return sb(e)!==null&&NE(e,!1).length===0}function I$(e){return $l(e.props).flat().every(o=>!sd(o.props,!1).rows.some(OE))}function jc(e){let o=$l(e.props).flat();return o.some(Uc)&&o.every(t=>Uc(t)||$E(t))}function g$(e){if(!u$(e)||!Uc(e))return e;let o=WE(e)?I$(e):z(zE,String(e.type))?.(e.props??{})===!0;return{...e,props:{...e.props,[Hl]:o?"empty":!0}}}function ME(e){return qe(e,o=>ze(o,g$))}function UE(e){let o=Object.entries(e.props??{}).filter(([,r])=>HE(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===Wl&&t.props?{key:o[0][0],inner:t}:null}function jE(e){if(e?.type!==Wl||!e.props)return e;if(jc(e)){let t=ME(e);return{...t,props:{...t.props,[Ml]:!0}}}let o=UE(e);return!o||!jc(o.inner)?e:{...e,props:{...e.props,[o.key]:[ME(o.inner)],[Ml]:!0}}}function GE(e){let o=e;if(!o||!Array.isArray(o.content))return e;let t=!1,r=o.content.map(a=>{let n=jE(a);return n!==a&&(t=!0),n});return t?{...o,content:r}:e}var y$=e=>z(zE,String(e.type))?.(e.props??{})===!0;function S$(e){if(e.type!==Wl||!e.props)return!1;let o=jc(e)?null:UE(e),t=o?o.inner:e;if(!jc(t))return!1;let r=$l(t.props).flat().filter(Uc);return r.some(a=>De(a.props)!=="")&&r.every(y$)}function KE(e){return qe(e,o=>b$(o))}function b$(e){let o=!1,t=[];for(let r of e){if(S$(r)){o=!0;continue}let a=KE(r);a!==r&&(o=!0),t.push(a)}return o?t:e}function qE(e){let o=e;if(!o||!Array.isArray(o.content))return e;let t=!1,r=o.content.map(a=>{if(jE(a)!==a)return a;let n=KE(a);return n!==a&&(t=!0),n});return t?{...o,content:r}:e}var w$=["DocMasthead","AlloyWheelsListing"],Gc="titleLevel",C$=e=>e===2?"h2":"h1",Kh=e=>C$(e?.[Gc])==="h2";function VE(e){let o=e;if(!o?.content?.length)return e;let t=!1,r=!1,a=o.content.map(n=>w$.includes(n?.type??"")?t?(r=!0,{...n,props:{...n.props??{},[Gc]:2}}):(t=!0,n):n);return r?{...o,content:a}:e}import{readHidable as E$}from"efficient-easel/draw";var Gn="showFor";function YE(){return en("efficient.box-show-for-choices",()=>({choices:[],revision:0}))}var k$=e=>!!e&&typeof e=="object"&&typeof e.slug=="string"&&e.slug.trim()!==""&&typeof e.name=="string"&&e.name.trim()!=="";function Ace(){return YE().choices}function Fce(){return YE().revision}function XE(e){return k$(e)?{slug:e.slug,name:e.name}:void 0}import{readHidable as v$}from"efficient-easel/draw";var qh="_wallLabelId",P$="_wallLabelledBy",Vh=e=>e.props?.id==null?"":String(e.props.id);function T$(e){if(!e||e.type!=="Text"||!Vh(e))return!1;let o=v$(e.props?.text);return!o.hidden&&o.text.trim()!==""}var O$=e=>!!e&&e.type==="Logos"&&e.props?.look==="marks"&&Vh(e)!=="",ZE=(e,o,t)=>({...e,props:{...e.props,[o]:t}});function JE(e){let o=ze(e,r=>qe(r,JE)),t=null;for(let r=1;r<o.length;r++){if(!O$(o[r])||!T$(o[r-1]))continue;let a=`sf-wall-label-${Vh(o[r-1])}`;t??=o.slice(),t[r-1]=ZE(t[r-1],qh,a),t[r]=ZE(t[r],P$,a)}return t??o}function QE(e){return rn(e,JE)}var e_="_cardPressTitles",_$="_cardPressTitle";function Uce(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 o_=(e,o)=>({...e,props:{...e.props,...o}});function A$(e){let o=e.props??{};return e.type!=="Text"||E$(o.text).hidden||typeof o[jo]=="string"||typeof o[qh]=="string"?"":Ht(o)}function t_(e,o,t,r){return ze(e,a=>{let n=A$(a);if(n&&!r.has(n))return r.add(n),t.push({field:n,gates:o}),o_(a,{[_$]:!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)=>aa(a.type,d)?i:t_(i,l,t,r))})}function r_(e){let o,t=qe(e,(r,a)=>{let n=ze(r,r_);if(!aa(e.type,a))return n;let s=[],l=t_(n,[],s,new Set);return s.length&&((o??={})[a]=s),l});return o?o_(t,{[e_]:o}):t}function a_(e){return rn(e,o=>ze(o,r_))}import{pinnedDuplicateIndices as Jz}from"efficient-easel/draw";import{jsx as at,jsxs as Q_}from"react/jsx-runtime";import{createContext as Uz,useContext as jz,useEffect as Gz,useRef as Kz,useState as e1}from"react";import{jsx as Br,jsxs as f_}from"react/jsx-runtime";import{useEffect as Kn,useRef as c_,useState as Ca}from"react";import{jsx as n_,Fragment as F$,jsxs as B$}from"react/jsx-runtime";import{useEffect as L$,useRef as s_,useState as R$}from"react";var D$="#t=0.001",N$=2;function M$(e,o){if(e.readyState<N$||!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 l_({src:e,objectPosition:o="50% 50%",onError:t}){let r=s_(null),a=s_(null),[n,s]=R$(!1);return L$(()=>{let l=r.current,i=a.current;if(n||!l||!i)return;let d=()=>{M$(l,i)&&s(!0)};return d(),l.addEventListener("loadeddata",d),l.addEventListener("seeked",d),()=>{l.removeEventListener("loadeddata",d),l.removeEventListener("seeked",d)}},[n]),B$(F$,{children:[n_("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&&n_("video",{ref:r,src:`${e}${D$}`,muted:!0,playsInline:!0,preload:"auto",className:"hidden",onError:t})]})}var H$="data-part",Vce=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 Fr(e){return{[H$]:e}}var zl={min:40,max:100,step:5,fallback:100,unit:"vh"};function W$(e){return`${typeof e=="number"?e:zl.fallback}${zl.unit}`}function i_(...e){return e.some(o=>typeof o=="number"||Ul(o)!==null)}var Yh={...Ak,fallback:680,unit:"px"},Jce={ratio:"16/9",px:`${Yh.fallback}px`},$$=/^(\d{1,5}(?:\.\d{1,3})?)px$/;function Ul(e){if(typeof e!="string")return null;let o=Tk(e);if(o!==null)return{unit:"ratio",value:e,css:"auto",aspect:o};let t=$$.exec(e);if(t&&Number(t[1])>0){let r=Math.min(Yh.max,Math.max(Yh.min,Number(t[1])));return{unit:"px",value:`${r}px`,px:r,css:`${r}px`}}return null}function z$(e){return Object.keys(e.style??{}).some(o=>o.startsWith("--sf-hero-ar-"))}function Qce({heightDesktop:e,heightTablet:o,heightMobile:t,heightFixed:r,heightFixedTablet:a,heightFixedMobile:n}){let s=I=>Ul(I)?.value,l=i_(e,t,s(r),s(n)),i=i_(o,s(a)),d=(I,S,v)=>{let O=Ul(S);return O?.unit==="ratio"?{[`--sf-hero-h-${I}`]:O.css,[`--sf-hero-ar-${I}`]:O.aspect}:{[`--sf-hero-h-${I}`]:O?.css??W$(v)}},f="view-tablet:max-view-desktop:h-[var(--sf-hero-h-t)]",x=l?i?`h-[var(--sf-hero-h-m)] ${f} view-desktop:h-[var(--sf-hero-h-d)]`:"h-[var(--sf-hero-h-m)] view-tablet:h-[var(--sf-hero-h-d)]":i?`h-screen min-h-[680px] ${f} view-tablet:max-view-desktop:min-h-0`:"h-screen min-h-[680px]";if(!l&&!i)return{className:x,style:void 0};let u={...l?d("d",r,e):{},...i?d("t",a,o):{},...l?d("m",n,t):{}},h=z$({style:u})?l?i?" aspect-[var(--sf-hero-ar-m,auto)] view-tablet:max-view-desktop:aspect-[var(--sf-hero-ar-t,auto)] view-desktop:aspect-[var(--sf-hero-ar-d,auto)]":" aspect-[var(--sf-hero-ar-m,auto)] view-tablet:aspect-[var(--sf-hero-ar-d,auto)]":" view-tablet:max-view-desktop:aspect-[var(--sf-hero-ar-t,auto)]":"";return{className:`${x}${h}`,style:u}}var Kc=1280,U$="16 / 9",j$="100svh",G$=[{minDppx:3.01,dppx:4,capPx:Math.floor(Kc/4)},{minDppx:2.01,dppx:3,capPx:Math.floor(Kc/3)},{minDppx:1.01,dppx:2,capPx:Math.floor(Kc/2)},{minDppx:null,dppx:1,capPx:Kc}];function d_(e=j$){let o=`max(100vw, calc(${e} * ${U$}))`;return[...G$.map(({minDppx:t,capPx:r})=>`${t===null?kn:`${kn} and (min-resolution: ${t}dppx)`} min(${o}, ${r}px)`),"100vw"].join(", ")}function rpe(e,o){let t=Ul(o);if(t?.unit==="px")return t.css;if(t?.unit==="ratio"){let[r,a]=t.aspect.split("/").map(n=>n.trim());return r&&a?`calc(100vw * ${a} / ${r})`:void 0}if(typeof e=="number"&&e>=zl.min&&e<=zl.max)return`${e}svh`}var K$=.5;function jl({videoSrc:e,videoAv1Src:o,videoSrcPhone:t,videoAv1SrcPhone:r,posterSrc:a,posterSrcPhone:n,showVideo:s=!0,playbackRate:l=K$,objectPosition:i="50% 50%",objectPositionPhone:d,objectPositionTablet:f,quiet:x=!1,slideShown:u,laterSlide:h=!1,laterOfLead:I=!1,phoneFrame:S}){let v=d_(S),O=IP(d,f),R=hl(),[T,g]=Ca(!1),w=R==="below"&&!T,_=R==="first",E=a||"",D=n||"",b=c_(null),F=El(b,!0,!0),y=F===void 0?void 0:F==="phone",k=bf({video:e,av1:o,videoPhone:t,av1Phone:r},y===!0),P=k.video||"",C=Sf(P,k.av1),[B,H]=Ca(!1),[q,$]=Ca(!1),[le,pe]=Ca(!1),[ee,xe]=Ca(!1),oe=u??!0,[ie,ge]=Ca(!1),Re=R!=="first"&&!I,[We,yo]=Ca(!1),oo=c_(null);Kn(()=>{if(!Re)return;if(document.readyState==="complete"){yo(!0);return}let N=()=>yo(!0);return window.addEventListener("load",N,{once:!0}),()=>window.removeEventListener("load",N)},[Re]),Kn(()=>{H(!1),$(!1),pe(!1),xe(!1)},[P,E,D]),Kn(()=>{oe&&ge(!0)},[oe]),Kn(()=>{let N=oo.current;N&&(oe?N.play()?.catch(()=>{}):N.pause())},[oe,ie,We]),Kn(()=>{if(!h||Re&&!We)return;let N=()=>g(!0);if(typeof window.requestIdleCallback=="function"){let he=window.requestIdleCallback(N,{timeout:2e3});return()=>window.cancelIdleCallback(he)}let te=setTimeout(N,800);return()=>clearTimeout(te)},[h,Re,We]),Kn(()=>{let N=oo.current;if(!N)return;let te=()=>{N.playbackRate=l};return te(),N.addEventListener("loadedmetadata",te),()=>N.removeEventListener("loadedmetadata",te)},[P,l]);let io=yf(E),So=E&&(io||D)&&!q?ya(E):{src:E},Xe=D&&!q?ya(D):{src:D},bo=D&&!w&&!T?[{sized:Xe,media:kn},...E?[{sized:So,media:Hs}]:[]]:[];return f_("div",{ref:b,className:"absolute inset-0 z-[1]",...Fr("hero-media"),children:[Br("div",{className:"absolute inset-0",style:{background:"var(--site-surface)"}}),bo.map(({sized:N,media:te})=>Br("link",{rel:"preload",as:"image",href:N.src,media:te,fetchPriority:"high",...N.srcSet?{imageSrcSet:N.srcSet,imageSizes:v}:{}},te)),(E||D)&&(io||D?(()=>{let N=Br("img",{...E?{src:So.src}:{},...So.srcSet?{srcSet:So.srcSet,sizes:v}:{},alt:"",...w?{loading:"lazy"}:{},..._?{fetchPriority:"high"}:{},className:`absolute inset-0 z-[2] h-full w-full object-cover ${O.className}`.trim(),style:{display:B?"none":"block",objectPosition:i,...O.style},onError:te=>{te.currentTarget.currentSrc&&(So.srcSet||Xe.srcSet?$(!0):H(!0))}},D?void 0:E);return D?f_("picture",{children:[Br("source",{media:kn,srcSet:Xe.srcSet||Xe.src,sizes:v}),N]},`${E} ${D}`):N})():Br(kc,{src:E,alt:"",fill:!0,...w?{}:T?{loading:"eager"}:{priority:!0},sizes:v,className:`z-[2] object-cover ${O.className}`.trim(),style:{display:B?"none":"block",objectPosition:i,...O.style},onError:()=>H(!0)},E)),s&&!x&&P&&y!==void 0&&ie&&(!Re||We)&&!le&&Br("video",{ref:oo,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:()=>pe(!0),children:C.map(N=>Br("source",{src:N.src,type:N.type},N.src))},P),s&&x&&P&&y!==void 0&&ie&&(!Re||We)&&!ee&&(!E||B)&&Br(l_,{src:P,objectPosition:i,onError:()=>xe(!0)},P)]})}import{jsx as mo,Fragment as k_,jsxs as eI}from"react/jsx-runtime";import{jsx as qn}from"react/jsx-runtime";import{useRef as q$}from"react";import{SCROLL_EFFECTS_WITH_ZOOM as V$,scrollAttrs as Y$}from"efficient-shell/format";function qc({views:e,origins:o={},boxClass:t,boxAttrs:r,boxStyle:a,takesViewHide:n=!1,atEdge:s=!1,zoomInside:l="layer",zoomLayerClass:i,children:d}){let f=q$(null),x=af(),u=ot(),h=n?u:kr,I=Ol(f,!0,s),{attrs:S,style:v}=Y$(e[I],o[I]),O=V$.includes(e[I].effect),R=Co(`${gn}${x.fill}${t?` ${t}`:""}`,h.className);if(O&&l==="picture")return h.scope(qn("div",{ref:f,className:R,...r,...h.attrs,...a?{style:a}:{},children:qn(Ok,{attrs:S,style:v,children:x.inner(d)})}));let T=qn(Ek,{children:x.inner(d)});if(O){let w=i??(x.fill?"h-full":void 0);return h.scope(qn("div",{ref:f,className:R,...r,...h.attrs,style:{...a,overflow:"clip"},children:qn("div",{...w?{className:w}:{},...S,style:v,children:T})}))}let g=Object.keys(v).length||a?{style:{...a,...v}}:{};return h.scope(qn("div",{ref:f,className:R,...r,...h.attrs,...S,...g,children:T}))}var ka=["media","image","image2"],cr={media:"Media",image:"Image",image2:"Image 2"},Gl={media:"heroMedia",image:"heroImage",image2:"heroImage2"};function Vc(e,o){return e==="image"&&Js(o)>1?"Image 1":cr[e]}var _pe="Video file",Ape="Upload a video file",Fpe="AV1 file",Bpe="Upload an AV1 file";function X$(e,o){return Sd("mediaType",Gd,o,[e])}var Z$=new Set(Object.keys(Kd)),p_="heroPart";function J$(e,o){return{...o,[p_]:e}}function Lpe(e,{parts:o={},onlyFor:t,fallback:r,rules:a}){let n={...e},s=[...Object.values(o).flat(),...Gd.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 Gd)for(let i of t[l])n[i]=Ze(n[i],X$(l,r));for(let[l,i]of Object.entries(a??{}))i&&(n[l]=Ze(n[l],i));for(let l of ka)for(let i of o[l]??[])n[i]=J$(l,n[i]);return n}function Q$(e){let o=e?.[p_];return ka.includes(o)?o:null}function u_(e,o){let t={};for(let[r,a]of Object.entries(e))Q$(a)===o&&(t[r]=a);return t}function m_(e){if(!Z$.has(e.type))return[];let o=[{part:"media",label:cr.media,depth:0}];return sk(e.type,e.props.mediaType)!=="video"&&(o.push({part:"image",label:Vc("image",e.props),depth:1}),Js(e.props)>1&&o.push({part:"image2",label:Vc("image2",e.props),depth:1})),o}function va(e,o){return`${e}::${o}`}function Yc(e){if(!e)return null;let o=e.lastIndexOf("::");if(o<=0)return null;let t=e.slice(o+2);return ka.includes(t)?{nodeId:e.slice(0,o),part:t}:null}var Kl="data-sf-hero-part";import{MOTION_TIMING as ez}from"efficient-shell/format";var g_="grayscale(1) contrast(1.03)",Mpe="Black and white";function oz(e){return e===!0?{filter:g_}:{}}function tz(e){let{filter:o}=oz(e);return o?{style:{filter:o}}:{}}var Pa="sf-photo-grayscale",Qh="data-sf-photo-host",x_={duration:"--sf-photo-hover-duration",delay:"--sf-photo-hover-delay"},Qc=`@media (hover:hover){.${Pa}{filter:${g_};transition:filter var(--sf-photo-hover-duration,var(--page-motion-hover-duration)) var(--page-ease-media) var(--sf-photo-hover-delay,var(--page-motion-hover-delay))}.${Pa}:hover,[data-sf-photo-host]:hover .${Pa}{filter:none}}@media (hover:hover) and (prefers-reduced-motion:reduce){.${Pa}{transition:none}}`;function y_(e){let o=ez.hover,t={...e.duration!==o.duration.default?{[x_.duration]:`${e.duration}s`}:{},...e.delay!==o.delay.default?{[x_.delay]:`${e.delay}s`}:{}};return Object.keys(t).length?t:void 0}function S_(e,o,t){if(e===!0)return tz(!0);if(t?.kind==="mono"){let r=y_(t);return{className:Pa,sheet:Qc,...r?{style:r}:{}}}return e===!1?{}:o===!0?{className:Pa}:{}}var b_="data-sf-repeat",Xh="sf-photo-zoom",rz="--sf-photo-zoom",Hpe="sf-photo-wash",Xc="sf-photo-wash-rest",ql="sf-photo-wash-hover",Jc="sf-photo-frame",w_=(e,o)=>`:not([${b_}]:not(${o}) .${e})`,Jh=(e,o)=>`[${b_}]${o} .${e}${w_(e,o)}`,Zh=(e,o)=>`${o},${Jh(e,":hover")},[${Qh}]:hover .${e}${w_(e,":hover")}`,h_=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))`,az=`.${ql}{opacity:0}@media (hover:hover){.${Xc},.${ql}{transition:${h_("opacity")}}${Zh(ql,`.${Jc}:hover .${ql}`)}{opacity:1}${Zh(Xc,`.${Jc}:hover .${Xc}`)}{opacity:0}}@media (hover:hover) and (prefers-reduced-motion:no-preference){.${Xh}{transition:${h_("transform")}}${Zh(Xh,`.${Jc}:hover .${Xh}`)}{transform:scale(var(${rz}))}}@media (hover:hover) and (prefers-reduced-motion:reduce){.${Xc},.${ql}{transition:none}}`,Wpe="sf-photo-move";function $pe(e){if(!e||!e.zoom&&!e.darken)return null;let o=y_(e);return{className:Jc,sheet:az,...o?{style:o}:{}}}function C_(e){return e===!0?{[Pa]:Qc}:{}}var Zc="sf-box-reveal",zpe="sf-box-reveal",nz=8,I_=.3,Upe=`@media ${Hs}{.${Zc}{opacity:0;transform:translateY(${nz}px);transition:opacity ${I_}s ease-out,transform ${I_}s ease-out}${Jh(Zc,":hover")},${Jh(Zc,":focus-within")}{opacity:1;transform:none}}@media ${Hs} and (prefers-reduced-motion:reduce){.${Zc}{transition:none;transform:none}}`;import{hidableText as sz}from"efficient-easel/draw";var lz={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"},iz={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 v_(e){let o=e.isVideo&&DP(e.videoSource)==="youtube",t=e.isVideo&&NP(e.videoPlayback)==="click",r=o?MP(sz(e.youtubeUrl)):null,a=lk(e.mediaLayout);return{fromYouTube:o,onClick:t,youTubeId:r,backgroundFile:e.isVideo&&!o&&!t,desktopLayout:a,phoneLayout:ik(e.mediaLayoutPhone,a),twoPictures:!e.isVideo&&Js(e)>1}}function Vl(e,o){return yn(Sa({_partMotion:e},o))}function Yl(e,o){return $n(Sa({_partMotion:e},o))}var ep=e=>Ph({desktop:e.objectPosition,tablet:e.objectPositionTablet,phone:e.objectPositionPhone}),P_=tl.img;function T_({entrance:e,scroll:o,origins:t,editing:r,className:a,attrs:n,style:s,zoomLayerClass:l,children:i}){return e?mo(vc,{views:e,editing:r,boxClass:a,boxAttrs:n,...s?{boxStyle:s}:{},children:i}):o?mo(qc,{views:o,...t?{origins:t}:{},boxClass:a,boxAttrs:n,...s?{boxStyle:s}:{},...l?{zoomLayerClass:l}:{},children:i}):mo("div",{className:a,...n,...s?{style:s}:{},children:i})}function Vn(e,o){return S_(void 0,void 0,Kb(Sa({_partMotion:e},o)))}function O_(e){return ka.some(o=>Vn(e,o).className)?{hostAttrs:{[Qh]:""},sheet:Qc}:{}}function op({treatment:e,children:o}){return e.className?mo("div",{className:`absolute inset-0 ${e.className}`,...e.style?{style:e.style}:{},children:o}):mo(k_,{children:o})}function tp({color:e,opacity:o,passClicks:t=!0}){return o>0?mo("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},...Fr("tint")}):null}function rp({part:e,editing:o,marked:t=!0,entrance:r,scroll:a=null,origins:n,className:s,children:l}){let i=o&&t?{[Kl]:e}:void 0;return mo(T_,{entrance:r,scroll:a,origins:n,editing:o,className:s,attrs:i,zoomLayerClass:P_,children:l})}function E_({partMotion:e,editing:o,children:t}){let r=Vl(e,"media"),a=Yl(e,"media"),n=Vn(e,"media"),s=mo(ef,{fill:tl,children:t}),l=n.className?mo("div",{className:`absolute inset-0 z-[1] ${n.className}`,...n.style?{style:n.style}:{},children:s}):s;return r||a?mo(T_,{entrance:r,scroll:a,editing:o,className:"absolute inset-0 z-[1]",zoomLayerClass:P_,children:l}):mo(k_,{children:l})}function __({desktopLayout:e,phoneLayout:o,editing:t,marked:r=!0,partMotion:a,first:n,second:s,laterSlide:l=!1}){return eI("div",{className:`absolute inset-0 z-[1] grid ${lz[o]} ${iz[e]}`,"data-hero-layout":e,"data-hero-layout-phone":o,children:[mo(rp,{part:"image",editing:t,marked:r,entrance:Vl(a,"image"),scroll:Yl(a,"image"),origins:ep(n),className:"relative overflow-hidden",children:eI(op,{treatment:Vn(a,"image"),children:[mo(jl,{posterSrc:tt(n.src),showVideo:!1,laterSlide:l,objectPosition:n.objectPosition,objectPositionPhone:n.objectPositionPhone,objectPositionTablet:n.objectPositionTablet}),mo(tp,{color:n.tintColor,opacity:n.tintOpacity})]})}),mo(rp,{part:"image2",editing:t,marked:r,entrance:Vl(a,"image2"),scroll:Yl(a,"image2"),origins:ep(s),className:`relative overflow-hidden ${Vv({desktop:e==="one",tablet:e==="one",mobile:o==="one"},{atSectionLine:!0})}`.trimEnd(),children:eI(op,{treatment:Vn(a,"image2"),children:[mo(jl,{posterSrc:tt(s.src),showVideo:!1,laterSlide:l,objectPosition:s.objectPosition,objectPositionPhone:s.objectPositionPhone,objectPositionTablet:s.objectPositionTablet}),mo(tp,{color:s.tintColor,opacity:s.tintOpacity})]})})]})}import{jsx as Lr,Fragment as dz,jsxs as fz}from"react/jsx-runtime";import{useEffect as cz,useRef as pz,useState as uz}from"react";import{PlaySolidIcon as mz}from"efficient-shell/icons/efficient-looks";function A_({youTubeId:e,ownPoster:o,background:t,editing:r}){let[a,n]=uz("large");return cz(()=>n("large"),[e]),e?fz(dz,{children:[!o&&a!=="none"&&Lr(Jf,{src:a==="large"?HP(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&&Lr("div",{className:"pointer-events-none absolute inset-0 z-[3] overflow-hidden [container-type:size]","aria-hidden":"true",children:Lr("iframe",{src:Ox(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 F_({youTubeId:e,fileSrc:o,fileAv1Src:t,fileSrcPhone:r,fileAv1SrcPhone:a,playing:n,onPlay:s,editing:l}){let i=pz(null),d=El(i,!0,!0)==="phone";if(!e&&!o)return null;let f=bf({video:o,av1:t,videoPhone:r,av1Phone:a},d),x=Sf(f.video,f.av1);return n&&!l?e?Lr("iframe",{src:Ox(e,"click"),title:Ex,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"}):Lr("video",{ref:u=>{i.current=u},...x.length===1?{src:x[0].src}:{},controls:!0,autoPlay:!0,playsInline:!0,className:"absolute inset-0 z-[6] h-full w-full bg-overlay-scrim object-contain",children:x.length>1&&x.map(u=>Lr("source",{src:u.src,type:u.type},u.src))},f.video):Lr("button",{ref:u=>{i.current=u},type:"button","aria-label":Ex,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:Lr(mz,{size:28})})}function B_(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 N_}from"efficient-shell/format";var M_=["top","middle","bottom"],H_=["left","center","right"],W_="bottom",$_="left",xz={top:"Top",middle:"Middle",bottom:"Bottom"},hz={left:"Left",center:"Center",right:"Right"},Sue="Up and down",bue="Sideways",Iz={top:"flex-start",middle:"center",bottom:"flex-end"},gz={left:"flex-start",center:"center",right:"flex-end"},yz="--sf-hero-phone-y",Sz="--sf-hero-phone-x";function bz(e){return N_(M_,W_,e)}function wz(e){return N_(H_,$_,e)}function z_(e,o){let t=bz(e),r=wz(o),a={};return t!==W_&&(a[yz]=Iz[t]),r!==$_&&(a[Sz]=gz[r]),a}var Cz="--sf-hero-phone-words-top",kz="--sf-hero-phone-words-bottom",vz="--sf-hero-phone-box-gap",wue=100,Cue=90,kue=28,Pz=0,Tz=200,vue="Words space top",Pue="Words space bottom",Tue="Space between boxes";function oI(e){if(!(typeof e!="number"||!Number.isFinite(e)))return Math.min(Tz,Math.max(Pz,Math.round(e)))}function U_(e,o,t){let r={},a=oI(e),n=oI(o),s=oI(t);return a!==void 0&&(r[Cz]=`${a}px`),n!==void 0&&(r[kz]=`${n}px`),s!==void 0&&(r[vz]=`${s}px`),r}function Oue(){return M_.map(e=>({label:xz[e],value:e}))}function Eue(){return H_.map(e=>({label:hz[e],value:e}))}var Oz="--sf-hero-words-top",Ez="--sf-hero-words-bottom",L_="--sf-hero-words-top-t",R_="--sf-hero-words-bottom-t",_ue=140,Aue=56,_z=0,Az=400,D_="pt-[var(--sf-hero-words-top,140px)] pb-[var(--sf-hero-words-bottom,56px)]",Fz="view-wide:max-view-desktop:pt-[var(--sf-hero-words-top-t,var(--sf-hero-words-top,140px))] view-wide:max-view-desktop:pb-[var(--sf-hero-words-bottom-t,var(--sf-hero-words-bottom,56px))]";function Bz(e){if(!(typeof e!="number"||!Number.isFinite(e)))return Math.min(Az,Math.max(_z,Math.round(e)))}function j_(e,o,t,r){let a={},n=(s,l)=>{let i=Bz(l);i!==void 0&&(a[s]=`${i}px`)};return n(Oz,e),n(Ez,o),n(L_,t),n(R_,r),Object.keys(a).length===0?{className:null,style:a}:{className:L_ in a||R_ in a?`${D_} ${Fz}`:D_,style:a}}import{hexToRgb as Lz}from"efficient-shell/format";var Rz=!0;var Dz=[[0,".5"],[30,".1"],[60,".1"],[100,".85"]];function G_(e){let o=Lz(e);return o?`${o.r},${o.g},${o.b}`:null}function K_(e){return e==null?Rz:e!==!1}function q_(e){let o=(e?G_(e):null)??G_(rr);return`linear-gradient(180deg, ${Dz.map(([t,r])=>`rgba(${o},${r}) ${t}%`).join(", ")})`}import{hexToRgb as V_,parseOption as Nz}from"efficient-shell/format";var Y_="bottom";var Mz=[{label:"Bottom",value:"bottom",cell:"bottom"},{label:"Top",value:"top",cell:"top"},{label:"Left",value:"left",cell:"left"},{label:"Right",value:"right",cell:"right"}],Hz={bottom:180,top:0,left:270,right:90},Wz=[[.55,0],[.15,18],[null,35],[null,55],[.85,100]],$z=[[null,33],[.6,67],[.94,100]];function zz(e,o){let{r:t,g:r,b:a}=V_(e)??V_(rr);return`rgba(${t},${r},${a},${o})`}function X_(e){return Nz(Mz,Y_,e)}function Z_(e=rr,o=Y_){let t=X_(o),r=(t==="top"||t==="bottom"?Wz:$z).map(([a,n])=>`${a===null?"transparent":zz(e,a)} ${n}%`);return`linear-gradient(${Hz[t]}deg, ${r.join(", ")})`}function J_(e,o){let t=fo(e.overlayColor),r=fo(e.overlayPosition),a=fo(o)??rr;return!t&&!r?{own:!1,color:a,position:null}:{own:!0,color:t??a,position:X_(r)}}var qz=Uz({});function nme({name:e,process:o,mediaType:t=Kd.HeroSlide,mediaSrc:r,videoSpeed:a,poster:n,mediaAv1:s,mediaSrcPhone:l,mediaAv1Phone:i,posterPhone:d,objectPosition:f,objectPositionPhone:x,objectPositionTablet:u,tintColor:h=rr,tintOpacity:I=0,groups:S,editing:v=!1,themeClassName:O,themeStyle:R,overlayColor:T,overlayPosition:g,mediaLayout:w,mediaLayoutPhone:_,mediaImage2:E,objectPosition2:D,objectPosition2Phone:b,objectPosition2Tablet:F,tintColor2:y=rr,tintOpacity2:k=0,videoSource:P,youtubeUrl:C,videoPlayback:B,partMotion:H,laterSlide:q=!1}){let $=vt(),le=ot(),{alignment:pe="left",textureOpacity:ee,textureOn:xe,textureColor:oe,quietVideo:ie,phoneUpDown:ge,phoneSideways:Re,phoneWordsTop:We,phoneWordsBottom:yo,phoneBoxGap:oo,wordsTop:io,wordsBottom:So,wordsTopTablet:Xe,wordsBottomTablet:bo,holdReel:N,reelHeld:te,shownSlide:he,ratioMin:$e,posterPhoneFrame:Ao}=jz(qz),Uo=j_(io,So,Xe,bo),Fo=hl(),ke=q&&Fo==="first",ht=Kz(null),[_s,Yr]=e1(he===void 0?void 0:!1);Gz(()=>{let Te=ht.current;Yr(he===void 0||!Te?void 0:B_(Te.closest(".hero-track"),"data-slide-name")[he]===Te)});let Yo=t==="video",Xr=Yo?tt(r):void 0,Ja=Yo?tt(n):tt(r)??tt(n),Lt=Yo?{av1:tt(s),phone:tt(l),av1Phone:tt(i),poster:tt(d)}:{},xr=typeof a=="number"?a/100:1,{fromYouTube:It,onClick:As,youTubeId:Fs,backgroundFile:gt,desktopLayout:wm,phoneLayout:od,twoPictures:td}=v_({isVideo:Yo,videoSource:P,videoPlayback:B,youtubeUrl:C,mediaLayout:w,mediaLayoutPhone:_}),[Zr,Bs]=e1(!1);Zr&&te===!1&&Bs(!1);let Ls=!Zr,Qa=J_({overlayColor:T,overlayPosition:g},oe),Rt=Yo?null:Vl(H,"image"),rd=Yo?null:Yl(H,"image"),ad=O_(H),nd=at(op,{treatment:Yo?{}:Vn(H,"image"),children:at(jl,{videoSrc:gt?Xr:void 0,videoAv1Src:gt?Lt.av1:void 0,videoSrcPhone:gt?Lt.phone:void 0,videoAv1SrcPhone:gt?Lt.av1Phone:void 0,posterSrc:Ja,posterSrcPhone:Lt.poster,showVideo:gt,playbackRate:xr,objectPosition:f,objectPositionPhone:Yo?void 0:x,objectPositionTablet:Yo?void 0:u,quiet:ie,slideShown:_s,laterSlide:q,laterOfLead:ke,phoneFrame:Ao})}),G=Q_("section",{ref:ht,className:Co(`${$e?"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:R,"data-slide-name":e??"","data-slide-process":o??"","data-slide-media":gt&&Xr?"video":"still",...ad.hostAttrs,...Fr("slide"),children:[at(Rc,{sheet:ad.sheet}),at(E_,{partMotion:H,editing:v,children:td?at(__,{laterSlide:q,desktopLayout:wm,phoneLayout:od,editing:v,partMotion:H,first:{src:r,objectPosition:f,objectPositionPhone:x,objectPositionTablet:u,tintColor:h,tintOpacity:I},second:{src:E,objectPosition:D,objectPositionPhone:b,objectPositionTablet:F,tintColor:y,tintOpacity:k}}):It||Rt||rd?Q_(rp,{part:Yo?"media":"image",editing:v,entrance:Rt,scroll:rd,origins:ep({objectPosition:f,objectPositionTablet:u,objectPositionPhone:x}),className:"absolute inset-0 z-[1]",children:[nd,It&&at(A_,{youTubeId:Fs,ownPoster:!!Ja,background:!As,editing:v})]}):nd}),As&&at(F_,{youTubeId:Fs,fileSrc:It?void 0:Xr,fileAv1Src:It?void 0:Lt.av1,fileSrcPhone:It?void 0:Lt.phone,fileAv1SrcPhone:It?void 0:Lt.av1Phone,playing:Zr,onPlay:()=>{Bs(!0),N?.()},editing:v}),Ls&&!td&&at(tp,{color:h,opacity:I,passClicks:!1}),Ls&&K_(xe)&&at("div",{className:"absolute inset-0 z-[2]",style:{background:Qa.own?Z_(Qa.color,Qa.position??void 0):q_(Qa.color),...ee!==void 0?{opacity:ee/100}:null},...Fr("overlay")}),Ls&&at("div",{className:[$e?"sf-hero-group-layer relative z-[3] mx-auto w-full flex-1 max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)]":"sf-hero-group-layer absolute inset-0 z-[3] mx-auto max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)]",Uo.className??"pt-[140px] pb-14",$?bC:"",v?"sf-hero-group-layer-edit":""].filter(Boolean).join(" "),style:{...lC,...z_(ge,Re),...U_(We,yo,oo),...Uo.style},...Fr("hero-content"),children:S&&at(S,{className:"sf-hero-group-zone",minEmptyHeight:160})})]});return le.scope(ke?at(Zf,{children:G}):G)}var o1=Array.from({length:3},(e,o)=>({name:`Slide ${o+1}`,process:"Category",mediaType:"image",mediaVideo:"",poster:""}));import{newNodeId as s1}from"efficient-easel/draw";import{isNodeList as Yz}from"efficient-easel/data";var tI=3,rI=()=>({type:K,props:{direction:"column"},slots:{[we]:[{type:"ImageBlock"},{type:K,props:{direction:"column"},slots:{[we]:[{type:"Text",props:Ir()},{type:"Text"}]}}]}}),t1=()=>Array.from({length:tI},rI);var r1=["","","","","",""],a1="#ticker",Xl="strip",aI={sectionAccent:yr,line:!1};function Vz(e){return(Array.isArray(e.tickerItems)?e.tickerItems:[]).map(o=>typeof o?.text=="string"?o.text:"").filter(o=>o.trim()!=="")}function nI(e){return Vz(e).length>0}function pme(e){return e.showTicker!==!1&&nI(e)}var l1=(e,o)=>({type:e.type,props:{...o?.(e.type)??{},...Object.fromEntries(Object.entries(e.props).map(([t,r])=>[t,Yz(r)?r.map(a=>l1(a,o)):r]))}}),Xz=e=>{let[o]=Nt([rI()],a=>s1(a)),{id:t,...r}=l1(o,e).props;return r},nt={Hero:{slot:"slides",childType:"HeroSlide",addLabel:"Add slide",slider:!0,seeds:()=>o1.map(e=>({...e}))},HeroSlide:{slot:"groups",childType:"HeroGroup",addLabel:`Add ${Ns.toLowerCase()}`,seeds:()=>[],addBlocked:lx,notice:ix},HeroSingle:{slot:"boxes",childType:"HeroGroup",addLabel:`Add ${Ns.toLowerCase()}`,seeds:()=>[],addBlocked:lx,notice:ix},ProcessSteps:{slot:Ds,childType:K,addLabel:`Add ${Ns.toLowerCase()}`,seeds:e=>Array.from({length:tI},()=>Xz(e)),skipSeed:e=>Array.isArray(e.steps)&&e.steps.length>0}},n1=1,Zz={slot:Xl,childType:K,addLabel:`Add ${Ns.toLowerCase()}`,seeds:()=>[],addBlocked:e=>e.length>=n1?"This Hero has its Scrolling Bar already. Delete it to add another.":null,notice:e=>e.length>n1?`This Hero holds ${e.length} Scrolling Bars. Keep one and delete the others.`:null},i1={Hero:{[Xl]:Zz}};function kme(e){for(let[o,t]of Object.entries(e)){if(co(nt,o)&&z(nt,o)!==t)throw new Error(`lib/document/slot-specs: "${o}" already has a slot spec`);nt[o]=t}}function vme(e,o){let t=z(nt,e);return t?{slot:t.slot,children:t.seeds(o).map(r=>({type:t.childType,props:{id:s1(t.childType),...r}}))}:null}var Qz=["GalleryB"];function d1(e){let o=e.content;if(!Array.isArray(o))return e;let t=!1,r=o.map(s=>{let l=s?.type;if(!l||!Qz.includes(l))return s;let i=z(nt,l);if(!i?.legacy)return s;let d=s.props??{},f=d[i.slot];if(Array.isArray(f)&&f.length>0)return s;let x=i.legacy(d);if(!x.length)return s;t=!0;let u=String(d.id??l),h=x.map((I,S)=>({type:i.childType,props:{id:`${i.childType}-${u}-${S}`,...I}}));return{...s,props:{...d,[i.slot]:h}}}),a=new Set(Jz(r)),n=a.size?r.filter((s,l)=>!a.has(l)):r;return a.size&&(t=!0),t?{...e,content:n}:e}var eU={"Logos.logosPerRow":"columns","HeroSlide.tintOpacity":"overlay","Split.textBgTint":"overlay"},oU={"Footprint.source":"typed"};function f1(e){let o=e.props,t=!1;if(e.type&&o)for(let[r,a]of Object.entries(eU)){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(oU)){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],ab(l)&&l!==a&&!De(i)&&(i[to]=l),o=i,t=!0}if(e.type&&o){let r=Cd(e.type,o);r!==o&&(o=r,t=!0)}if(o){let r=qe({props:o},a=>ze(a,f1));r.props!==o&&(o=r.props,t=!0)}return t?{...e,props:o}:e}function c1(e){return id(e,o=>ze(o,f1))}import{readHidable as tU}from"efficient-easel/draw";var Gt=K,Kt=we;function Ta(e){if(e.theme)return or(e.theme);let o=e.site?.themePresets;return o?or({selected:e.site?.selectedPreset??0,themes:[...o]}):void 0}function rU(e,o){return o===0?`${e}~box`:`${e}~box-${o+1}`}var u1=new Set(["id"]),Rr={},Zl=[],aU={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"]},nU=Object.keys(aU),Oa=["Breadcrumb","DocBody","Form","SubmitBuild","Footprint","FAQ","ContactLocations","ProcessSteps",...nU,"Stats","Logos","PaymentBadges","PaymentLogosBlock","FitmentFinder","DocMasthead","DocTabs","Timeline","TimelineTrack","OrderSummary","Chart","Mockup","Integrations","Countdown","FeaturedCover","IntroBleed","SectionHeader","TitleWithButtons","Prose","ParagraphsA","Banner","Cards"];function Qe(e){for(let[o,t]of Object.entries(e)){if(co(Rr,o)&&z(Rr,o)!==t)throw new Error(`lib/sections/section-to-box: "${o}" already has a row`);Rr[o]=t}}function Dr(e){return z(Rr,e)}function sU(e){return co(Rr,e)&&Zl.includes(e)}function m1(e,o=Oa){return co(Rr,e)&&(o.includes(e)||sU(e))}function jme(e){let o=z(wt,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 sI=e=>tU(e),Me=e=>sI(e).text.trim()!=="";function lU(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 iU=e=>e==="heading"?Ir():e==="eyebrow"?Qt():{};function dU(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 fU(e,o){if(e===void 0)return{};if(typeof e=="string")return{variant:e};let t=o[e.key];return{variant:(typeof t=="string"?z(e.map,t):void 0)??e.fallback}}function p1(e,o,t,r,a={}){let n={...o};for(let s of e){let[l,i,d]=typeof s=="string"?[s,s,void 0]:s;if(t[l]===void 0)continue;let f=d?d(t[l],t,a):t[l];f===void 0?delete n[i]:n[i]=f,r(l,i,f===void 0)}return n}function cU(e){let o=new Set([...u1,"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 lI=e=>fn(e.headPlacement)==="own-box";function pU(e){return lI(e)?"its head sits in a Box of its own above it (own-box): the row draws the head inline":void 0}function uU(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 mU(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 xU(e,o,t){if(!t.press)for(let r of mU(e)){let a=uU(o,r);if(a!==void 0)return a}}function Ea(e,o,t={}){let r=e.props,a=(o.ownBoxConverts?void 0:pU(r))??xU(o,r,t)??o.skip?.(r);if(a!==void 0)return{node:e,nodes:[e],carried:[],dropped:[],siteWrites:[],skipped:a};let n=String(r.id??e.type),s=[],l=[],i=new Set,d=(g,w)=>{s.push({key:g,home:w}),i.add(g)},f=r._partStyles??{},x=cU(o),u=0,h=(g,w)=>({type:g,props:{...w,id:`${n}~${g}-${++u}`}}),I=(g,w,_,E,D,b,F)=>{if(D){for(let k of g??[]){let P=typeof k=="string"?k:k[0];_[P]!==void 0&&F(P,`nothing \u2014 the ${E} has no parts, so it is not drawn`)}return}let y=typeof w=="function"?w(r,t):w??{};return p1(g??[],y,_,(k,P,C)=>F(k,C?`nothing \u2014 the old value draws nothing (${E}: no ${P})`:`${b}${E}: ${P}`),t)},S=g=>Nt(g,w=>`${n}~${w}-${++u}`),v=(g,w,_)=>{let E=g.of?g.of(w):Array.isArray(w[g.key])?w[g.key]:[],D=typeof g.props=="function"?g.props(r,t):g.props??{},b=E.map((C,B)=>{let H=C??{},q=g.item?.(H,B,r)??{},$=O(q.reverse?[...g.parts].reverse():g.parts,H,!1,`item ${B+1}: `);return g.flat?q.props?$.map(le=>({...le,props:{...le.props,...q.props,id:le.props.id}})):$:[h(Gt,{name:`${g.name} ${B+1}`,...D,...q.props??{},[Kt]:$})]});if(g.groups){let C=g.groups;return _(g.key,E.length?`one Box per item (${E.length}), in a Box per group`:"nothing \u2014 the list is empty"),bd(E.map(B=>B??{}),C.of,C.of).map((B,H)=>{let q=B.items.map(oe=>oe.item),$=C.parts?O(C.parts,C.head?.(q,r)??{},!1,`group ${H+1}: `):[],le=B.items.map(oe=>b[oe.index]),pe=C.perRow?.(q.length,r),ee=Number.isInteger(pe)&&pe>=1?pe:1,xe=[];if(C.perRow&&ee<le.length)for(let oe=0;oe*ee<le.length;oe++)xe.push(le.slice(oe*ee,(oe+1)*ee).flat());return h(Gt,{name:`${C.name} ${H+1}`,...C.props??{},[Kt]:[...$,h(Gt,{name:`${C.itemsName} ${H+1}`,...C.itemsProps?.(q.length,r)??{},[Kt]:xe.length?xe.map((oe,ie)=>h(Gt,{name:`${C.rowName??`${C.itemsName} row`} ${ie+1}`,...C.rowProps??{},[Kt]:oe})):le.flat()})]})})}let F=g.perRow?.(r),y=g.perRow?Number.isInteger(F)&&F>=1?F:1:0;if(_(g.key,(E.length?g.flat?`each item's parts (${E.length} items), in order`:`one Box per item (${E.length}), its parts inside`:"nothing \u2014 the list is empty")+(y&&E.length?`, in rows of ${y}`:"")),!y)return b.flat();let k=typeof g.rowProps=="function"?g.rowProps(r,t):g.rowProps??{},P=[];for(let C=0;C*y<b.length;C++){let B=b.slice(C*y,(C+1)*y).flat(),H=g.rowFiller?y-b.slice(C*y,(C+1)*y).length:0;P.push(h(Gt,{name:`${g.rowName??`${g.name} row`} ${C+1}`,...k,[Kt]:[...B,...Array.from({length:H},(q,$)=>h(Gt,{name:`Empty ${$+1}`,...g.rowFiller,[Kt]:[]}))]}))}return P},O=(g,w,_,E)=>{let D=[],b=(y,k)=>_?d(y,k):void 0,F=y=>_?f[y]:void 0;for(let y of g)if(!(y.when&&!y.when(r,_?void 0:w)))switch(y.kind){case"text":{let k=sI(w[y.key]);if(!k.text.trim()&&!(_&&t.press&&o.pressKeepsEmpty?.includes(y.key))){b(y.key,"nothing \u2014 empty words draw nothing, so no block");break}let P=iU(y.role??"body"),{_partStyles:C,...B}=P,H=dU(P,y.styleFrom?{...y.style,...y.styleFrom(r,t)}:y.style,F(y.key),y.props?.align);D.push(h("Text",{text:y.mark==="accentLead"?lU(k.text):y.mark==="accentItalic"?Ms(k.text):k.text,...B,...y.props??{},...H,...k.hidden?{_hidden:!0}:{}})),b(y.key,`${E}Text block: its words${k.hidden?", hidden":""}`);break}case"button":{let k=sI(w[y.key]);if(!k.text.trim()){b(y.key,"nothing \u2014 no words, no button"),b(y.href,"nothing \u2014 no button to link"),typeof y.variant=="object"&&b(y.variant.key,"nothing \u2014 no button to style");break}let P=typeof w[y.href]=="string"&&w[y.href]?w[y.href]:"#",C={...y.style??{},...F(y.key)??{}};D.push(h("ButtonBlock",{label:k.text,href:P,...typeof y.props=="function"?y.props(w,t):y.props??{},...fU(y.variant,w),...Object.keys(C).length?{_partStyles:{label:C}}:{},...k.hidden?{_hidden:!0}:{}})),b(y.key,`${E}Button block: its words`),b(y.href,`${E}Button block: its link`),typeof y.variant=="object"&&b(y.variant.key,`${E}Button block: its Style`);break}case"image":{let k=w[y.key];if(typeof k!="string"||!k){b(y.key,"nothing \u2014 no picture, no block"),y.alt&&b(y.alt,"nothing \u2014 no picture to describe");break}let P=y.alt&&typeof w[y.alt]=="string"?w[y.alt]:"";D.push(h("ImageBlock",{src:k,alt:P,...y.props??{}})),b(y.key,`${E}Image block: its picture`),y.alt&&b(y.alt,`${E}Image block: its alt text`);break}case"list":{D.push(...v(y,w,b));break}case"group":{let k=O(y.parts,w,_,E),P=I(y.box,y.props,w,`${y.name} Box`,!k.length&&!y.keepEmpty,E,b);P&&D.push(h(Gt,{name:y.name,...P,[Kt]:k}));break}case"block":{let k=y.parts?O(y.parts,w,_,E):[],P=I(y.box,y.props,w,`${y.type} block`,!!y.parts&&!k.length&&!y.keepEmpty,E,b);P&&D.push(h(y.type,{...P,...y.slot?{[y.slot]:k}:{}}));break}case"core":{let k=y.as??e.type,P={...y.headless?{}:{headPlacement:"own-box"},...y.props??{}},C=y.keep==="rest"?Object.keys(w).filter(H=>!x.has(H)&&!(H in P)):y.keep;for(let H of C)w[H]!==void 0&&(P[H]=w[H],b(H,`the ${k} block inside the Box`));if(y.keep==="rest"){for(let q of Object.keys(y.props??{}))w[q]!==void 0&&!x.has(q)&&b(q,`nothing \u2014 the ${k} block inside the Box has the row's own value`);w.headPlacement!==void 0&&b("headPlacement",`the ${k} block inside the Box: own-box`);let H=Object.fromEntries(Object.entries(f).filter(([q])=>!x.has(q)));Object.keys(H).length&&(P._partStyles=H)}for(let[H,q]of Object.entries(y.rename??{}))w[H]!==void 0&&(P[q]=w[H],b(H,`the ${k} block inside the Box: ${q}`));if(y.derive){Object.assign(P,y.derive.props(w,t));for(let H of y.derive.reads)w[H]!==void 0&&b(H,`the ${k} block inside the Box`)}let B=typeof y.slots=="function"?y.slots(w,t):y.slots??{};for(let[H,q]of Object.entries(B))P[H]=q.flatMap($=>"kind"in $?v($,w,b):S([$]));D.push(h(k,P));break}}return D},R=(g,w)=>{let _=w===0?"Box":`${g.name} Box`,E=O(g.parts,r,!0,w===0?"":`${_}: `),D=typeof g.boxProps=="function"?g.boxProps(r,t):g.boxProps??{},b=p1(g.box??[],D,r,(F,y,k)=>d(F,k?`nothing \u2014 the old value draws nothing (${_}: no ${y})`:`${_}: ${y}`),t);return{type:Gt,props:{name:g.name,...b,[Kt]:E,id:rU(n,w)}}},T=[o,...o.also??[]].map(R);r._partStyles!==void 0&&d("_partStyles","each old part's style moved to its new part");for(let[g,w]of Object.entries(o.reads??{}))r[g]!==void 0&&d(g,w);for(let[g,w]of Object.entries(o.drop??{}))g in r&&(l.push({key:g,why:w}),i.add(g));for(let g of Object.keys(r))u1.has(g)||i.has(g)||l.push({key:g,why:"not in the row \u2014 not carried"});return{node:T[0],nodes:T,carried:s,dropped:l,siteWrites:[...o.site?.(e,t)??[]]}}function x1(e,o=Zl,t={}){let r=e.content;if(!Array.isArray(r))return e;let a=!1,n=r.flatMap(s=>{let l=s&&typeof s.type=="string"&&o.includes(s.type)?z(Rr,s.type):void 0;if(!l)return[s];let i=Ea(s,l,t);return i.skipped!==void 0?[s]:(a=!0,i.nodes)});return a?{...e,content:n}:e}function h1(e,o=Zl,t={}){if(!Array.isArray(e))return[];let r=[];return e.forEach((a,n)=>{let s=a&&typeof a.type=="string"&&o.includes(a.type)?z(Rr,a.type):void 0;if(!s)return;let l=Ea(a,s,t);l.skipped===void 0&&r.push({index:n,node:l.node,nodes:l.nodes})}),r}import{BLOCK_FIXED_WIDTH as hU,BLOCK_SIZE_KEYS as IU,parseBlockWidthFit as np,phoneKey as I1,parseTextFit as ap,tabletKey as g1,viewKeyAt as y1}from"efficient-easel/draw";import{sideLengthAt as gU}from"efficient-easel/screen/lib/content/length-units";var yU="sf-block-size",Jl=["width","minWidth","maxWidth"],sp=e=>`${e}Unit`,Nr=e=>typeof e=="number"&&Number.isFinite(e)&&e>=0?e:void 0,SU={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"}},C1={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"}},bU={desktop:C1.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"}},wU={two:{desktop:"view-wide:[.flex-row>*>&]:grow"},three:{desktop:"view-desktop:[.flex-row>*>&]:grow",tablet:"view-wide:max-view-desktop:[.flex-row>*>&]:grow"}},k1="max-view-wide:grow!";function v1(e){return lp(e).mode.phone==="fill"}var CU={desktop:"--sf-bw",tablet:"--sf-bw-t",phone:"--sf-bw-p"},kU={fill:"data-sf-width-fill",fixed:"data-sf-width-fixed"},vU="data-sf-min-width",S1={two:{desktop:"wide",phone:fx.phone},three:fx},PU={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)]"]}},iI={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)]"]}},TU={minWidth:{desktop:iI.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:iI.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)]"]}},OU=["widthFit",...Jl],b1={desktop:"view-wide:whitespace-nowrap view-wide:[&_*]:whitespace-nowrap!",phone:"max-view-wide:whitespace-nowrap max-view-wide:[&_*]:whitespace-nowrap!"},dI={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!"},EU={desktop:dI.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!"},P1={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"},_U={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:P1.phone},T1={desktop:"view-wide:max-w-full",phone:"max-view-wide:max-w-full"},w1={desktop:"view-desktop:max-w-full",tablet:"view-wide:max-view-desktop:max-w-full",phone:T1.phone};function O1(e){let o=lp(e);return o.sides.filter(t=>o.mode[t]==="fill").map(t=>wU[o.three?"three":"two"][t]).filter(Boolean).join(" ")}function E1(e){let{three:o,sides:t,mode:r,lengthPerSide:a}=lp(e),n=d=>o?S1.three[d]:S1.two[d],s={fill:[],fixed:[],min:[]},l=a("minWidth");for(let d of t){let f=r[d];(f==="fill"||f==="fixed")&&s[f].push(n(d)),l[d]!==void 0&&s.min.push(n(d))}let i={};for(let d of["fill","fixed"])s[d].length&&(i[kU[d]]=s[d].join(" "));return s.min.length&&(i[vU]=s.min.join(" ")),i}function lp(e){let o=OU.some(a=>{let n=e[a]?.tablet;return a==="widthFit"?np(n)!==void 0:Nr(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=sp(a),s={};for(let i of t)s[y1(a,In(i))]=Nr(e[a]?.[i]),s[y1(n,In(i))]=e.units?.[a]?.[i];let l=i=>gU(s,{length:a},n,In(i),"length")??void 0;return{desktop:l("desktop"),tablet:l("tablet"),phone:l("phone")}},mode:r(np,e.widthFit)}}function fI(e,{atSectionLine:o=!1}={}){let t=["desktop","tablet","phone"].some(k=>ap(e.textFit?.[k])==="ellipsis"),r=o&&!t,a=r?bU:C1,n=r?TU:iI,s=r?EU:dI,l=[],i={},d={},{three:f,sides:x,lengthPerSide:u,mode:h}=lp(e),I=u("width");for(let k of x){let P=h[k];!P||P==="fit"||(l.push(f?a[k][P]:SU[k][P]),P==="fixed"&&(i[CU[k]]=mn(I[k]?.value??hU.fallback,I[k]?.unit)))}for(let k of Jl.filter(P=>P!=="width")){let P=u(k);for(let C of x){let B=P[C];if(B===void 0)continue;let[H,q]=f?n[k][C]:PU[k][C];i[H]=mn(B.value,B.unit),l.push(q)}}let S=ap(e.textFit?.desktop),v=ap(e.textFit?.phone),O=k=>{let P=Nr(e.minFont?.[k]);return P===void 0?void 0:e.units?.minFont?.[k]==="vw"?`${P}vw`:String(P)},R=O("desktop"),T=O("phone"),g=ap(e.textFit?.tablet),w=g!==S||v!==void 0?g:void 0,_=O("tablet"),E=_!==R||T!==void 0?_:void 0,D=Nr(e.maxWidth?.desktop),b=Nr(e.maxWidth?.tablet)??D,F={desktop:D!==void 0,tablet:b!==void 0,phone:(Nr(e.maxWidth?.phone)??b)!==void 0},y=(k,P,C)=>{if(P!=="line"&&P!=="ellipsis")return;let B=k==="tablet"?void 0:k,H=(q,$)=>C||!B?q[k]:$[B];if(P==="line"){l.push(H(s,b1));return}if(l.push(H(dI,b1)),l.push(H(_U,P1)),f&&!C&&k==="desktop")for(let q of["desktop","tablet"])F[q]||l.push(w1[q]);else F[k]||l.push(H(w1,T1))};return w?(y("desktop",S,!0),y("tablet",w,!0),y("phone",v??w,!0)):(y("desktop",S,!1),y("phone",v??S,!1)),S&&(d[sr.fit]=S),w&&(d[sr.fitTablet]=w),v&&(d[sr.fitPhone]=v),R!==void 0&&(d[sr.min]=R),E!==void 0&&(d[sr.minTablet]=E),T!==void 0&&(d[sr.minPhone]=T),!r&&(w||E!==void 0)&&(d[sr.edge]=""),l.length===0&&Object.keys(d).length===0?null:{className:[yU,...l].join(" "),style:i,attrs:d}}function Zme(e){if(Nr(e.maxWidth?.desktop)!==void 0)return!0;let o=np(e.widthFit?.desktop);return o==="fill"||o==="fixed"}function _1(e){return["desktop","tablet","phone"].some(o=>{let t=np(e.widthFit?.[o]);return t==="fixed"||t==="fill"||Nr(e.minWidth?.[o])!==void 0})}function ip(e){let o={};for(let t of IU){let r=e[t],a=e[g1(t)],n=e[I1(t)];(r!==void 0||a!==void 0||n!==void 0)&&(o[t]={desktop:r,tablet:a,phone:n});let s=sp(t),l={desktop:e[s],tablet:e[g1(s)],phone:e[I1(s)]};(l.desktop!==void 0||l.tablet!==void 0||l.phone!==void 0)&&((o.units??={})[t]=l)}return o}var A1={label:"Button",defaultProps:{label:"",href:"#",variant:"primary",align:"left",contained:!0}};import{parseHexColor as AU}from"efficient-shell/format";import{convertLength as FU}from"efficient-easel/screen/lib/content/length-units";import{viewKeyAt as F1}from"efficient-easel/draw";var qt=(e,o,t,r)=>o===t?e:FU(e,o,t,r,{min:0,max:200,step:4}),_a={textFit:"line",textFitPhone:"wrap"},Aa={...U,[jo]:""},{label:Exe,href:_xe,...BU}=A1.defaultProps,ao=BU,Fa={buttonFillOpacity:0,buttonBorder:{width:0},buttonPaddingTop:0,buttonPaddingRight:0,buttonPaddingBottom:0,buttonPaddingLeft:0},Y={...$m,sectionAccent:0},Xn={sectionAccent:-1},J=[...br,"sectionHeightMode","sectionHeightValue","sectionHeightUnit","sectionHeightModeTablet","sectionHeightValueTablet","sectionHeightUnitTablet","sectionHeightModePhone","sectionHeightValuePhone","sectionHeightUnitPhone","sectionCorners","sectionCornerSides","sectionBorder","sectionBorderTablet","sectionBorderPhone","sectionAccent",xk.unitKey,...gk,...pk,"anchor",Ys,...vn,Rd,...Ud,...Tc,...zd(["widthFit",...Jl,...Jl.map(sp)]),...Object.values(Eo)],Yn="a section width key, ignored since efficient-web-builder 45 (an old key; a section's own width has new keys, lib/content/section-width), so dropping it changes nothing",X={sectionSurface:"read by nothing in src/ (searched 2026-10-24): a retired theme key that draws nothing today, so dropping it changes nothing",widthMode:Yn,fullWidth:Yn,pageWidth:Yn,backgroundWidth:Yn,contentWidth:Yn,contentMax:Yn},ae=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)"])),dp={[$t]:"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 ne(e,o){let t=Ie(e.sectionPaddingTop)??0,r=Ie(e.sectionPaddingBottom)??0,a=Ie(e.sectionPaddingTopTablet),n=Ie(e.sectionPaddingBottomTablet),s=gr(e.sectionPaddingUnit),l=gr(e.sectionPaddingUnitTablet),i=gr(e.sectionPaddingUnitPhone),d=Array.isArray(e[$t])?e[$t]:[],f=(v,O)=>d.includes(v)?0:O,x=(v,O,R,T,g,w)=>{let _=Ie(e[v]);if(_!==void 0)return _+qt(f(v,w),"px",i,"mobile");let E=T===void 0?{n:g,unit:s,key:R}:{n:T,unit:l,key:O};return qt(E.n,E.unit,i,"mobile")+qt(f(E.key,w),"px",i,"mobile")},u=(v,O,R,T,g,w)=>R!==void 0?{[v]:R+qt(f(v,w??g),"px",l,"tablet")}:w===void 0?{}:{[v]:qt(T,s,l,"tablet")+qt(f(O,w),"px",l,"tablet")},h=v=>({desktop:po[v],tablet:F1(po[v],"tablet"),phone:F1(po[v],"mobile")}),I=h("top"),S=h("bottom");return{[I.desktop]:t+qt(f(I.desktop,o.top),"px",s,"desktop"),[S.desktop]:r+qt(f(S.desktop,o.bottom),"px",s,"desktop"),...u(I.tablet,I.desktop,a,t,o.top,o.topTablet),...u(S.tablet,S.desktop,n,r,o.bottom,o.bottomTablet),[I.phone]:x(I.phone,I.tablet,I.desktop,a,t,o.topPhone),[S.phone]:x(S.phone,S.tablet,S.desktop,n,r,o.bottomPhone)}}var fe=e=>[...["sectionPaddingTop","sectionPaddingBottom","sectionPaddingTopTablet","sectionPaddingBottomTablet","sectionPaddingTopPhone","sectionPaddingBottomPhone"].map(o=>[o,o,(t,r)=>ne(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 ux)e[a]!==void 0&&(t[n]=e[a]);let r=Jd(e,Mn(o));return{...t,sectionPaddingTop:r.top,sectionPaddingBottom:r.bottom}}var Mr=e=>[...ux.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]],LU={kind:"heading-case-upper",styles:["heading-1","heading-2","heading-3"]},Axe=e=>o=>Me(o.props[e])?[LU]:[],ce=(e,o)=>({kind:"text",key:e,role:"eyebrow",props:U,...o?{style:o}:{}}),Zn=e=>({kind:"group",name:"Chip",props:{...L,...Jt("main"),...wo(6,14)},parts:[ce(e,{color:"background",...W("label",12),weight:600,letterSpacing:.16})]}),B1=e=>e.background!=="transparent",RU=(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"},DU=(e,o,t)=>{let r=a=>RU(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}},ei=(e,o,t,r={})=>DU(e,o,{...Aa,...Ql,...r,_partStyles:{text:{...Bo,color:"labels",...t,case:Bo.case,...Ql}}}),Jn=(e,o)=>typeof e=="number"&&Number.isInteger(e)&&e>=0?e:Ta(o)?.selected??0,L1="var(--site-surface-2)",fp=(e,o)=>Ta(o)?.themes[Jn(e.sectionAccent??0,o)],Mo=(e,o)=>(t,r)=>{if(!o?.(t,r))return Jt(e);let a=fp(t,r)?.[e];return a?{fillColor:a}:{}},cp=(e,o)=>Hr(e,o)>=0,R1=e=>e.startsWith("#")&&AU(e)!==null,pp=(e,o,t)=>{let r=e?.trim();if(r&&R1(r))return{fillColor:r};let a=hx(r);if(a)return Jt(a);let n=r===L1?fp(o,t):void 0;return n?{fillColor:$w(n)}:{}},up=e=>{let o=e?.trim();return!o||o==="transparent"||o===jt||hx(o)||o===L1||R1(o)?void 0:"it paints a colour that no Box Fill can hold"},Hr=(e,o)=>{let t=Ta(o)?.themes;return t&&B1(e)?zw(t,Jn(e.sectionAccent,o)):-1},Wr=(e,o,t)=>{let r=Hr(o,t);return r>=0?r:e},Qn=(e,o)=>{let t=Ta(o)?.themes,r=t?Uw(t,Jn(e,o)):-1;return r>=0?r:e},Ba=(e,o)=>{let t=Hr(e,o);return t>=0?{sectionAccent:t}:{}},$r=(e,o)=>B1(e.props)&&Hr(e.props,o)<0?[{kind:"band-preset",page:Jn(e.props.sectionAccent,o)}]:[],es=(e,{view:o="desktop",to:t="px",maxPx:r=1/0}={})=>{let{siteGutter:a,siteGutterUnit:n,siteGutterPhone:s,siteGutterPhoneUnit:l}=e.site??{},i=In(o),d=(x,u,h)=>{let I=gr(u),S=Bw(x,I,"spacing",h);return S===null?null:qt(S,I,"px",i)},f=o==="desktop"?d(a,n,mC)??vC(a):d(s,l,xC)??TC(s)??_C(a,n);return qt(Math.min(r,f),"px",t,i)},oi=Object.fromEntries(["Top","Right","Bottom","Left","TopPhone","RightPhone","BottomPhone","LeftPhone"].map(e=>[`sectionPadding${e}`,0])),ti=e=>({top:0,right:0,bottom:0,left:0,...e}),cI=(e,o,t,r=[])=>({kind:"group",name:e,keepEmpty:!0,props:(a,n)=>({...L,...oi,...Mo("surface")(a,n),...typeof t=="function"?t(a,n):t}),box:[[o,"bgImage"],Ge.kind,Ge.duration,Ge.delay],parts:r});import{phoneKey as vI,readHidable as PI}from"efficient-easel/draw";import{isNodeList as ij,newId as dj}from"efficient-easel/data";function D1(e){return Math.min(4,Math.max(2,e??3))}var Rxe={eyebrow:"Label",title:"Section *heading.*"},NU=ld.Cards,N1={label:"Cards",fields:NU,defaultProps:{eyebrow:"",title:"",items:[],columns:3}};var Mxe={eyebrow:"Highlight",title:"Key *features.*"},Hxe=()=>[{label:c("Feature label one")},{label:c("Feature label two")},{label:c("Feature label three")},{label:c("Feature label four")},{label:c("Feature label five")},{label:c("Feature label six")}],M1={label:"Key Features",defaultProps:{eyebrow:"",title:"",items:[],columns:3}};import{parseOption as MU}from"efficient-shell/format";var pI="cardPlace",HU=["","top-line"];function Uxe(e){return MU(HU,"",e[pI])}var jxe="absolute left-5 top-0 z-10 -translate-y-1/2 bg-bg px-2",Gxe="data-sf-top-line",WU=new Set(["Cards",ro]);function Kxe(e){return typeof e=="string"&&WU.has(e)}var $U=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 qxe(e,o,t){return!t||!o?.linesBetween||o.index!==0?e:$U(e)?{...e,top:0}:e}var Vxe="outsideFramedCard";var mp={sectionBorder:{top:0,right:1,bottom:1,left:0},...Jt("background")},zU={gap:0,gapPhone:0,sectionBorder:{top:1,right:0,bottom:0,left:1},shadow:!0},La=e=>({direction:"row",columns:e,columnsTablet:e,...zU}),H1=(e={})=>Fe($c,{...U,tag:"p",[pI]:"top-line"},e,!0),os=(e=ta)=>{let o=sn(e);return{...o,props:{...mp,...o.props},slots:{[we]:[...o.slots?.[we]??[],H1()]}}},uI=(e=!1)=>{let o=ln(e);return{...o,props:{...mp,...o.props}}},UU={name:"name",time:"time",note:"note",price:"price"},jU={textStyle:"body-1",...W("body",16),weight:500,lineHeight:1.5},GU={...Bo,...W("label",12),letterSpacing:.18,lineHeight:1.5},KU={textStyle:"body-1",...W("body",14),lineHeight:1.6},qU={textStyle:"body-1",fontRole:"heading",...W("headingSmall",20),weight:500,color:"accent",lineHeight:1.5},VU={...W("label",11),letterSpacing:.25},YU={gap:16,gapPhone:16,sectionBorder:{top:0,right:0,bottom:0,left:0},shadow:!1},xp=e=>({direction:"row",columns:e,...YU}),mI=[...new Set([...Object.keys(La(1)),...Object.keys(xp(1))])],xI=()=>{let e=UU,o={tag:"p",widthFit:"fill"};return{type:K,props:{...L,name:"Card",justify:"between",gap:16,gapPhone:16,...wo(24),sectionBorder:{top:1,right:1,bottom:1,left:1},...Jt("surface"),shadow:!0},slots:{[we]:[H1(VU),{type:K,props:{...L,name:"Words",gap:8,gapPhone:8},slots:{[we]:[Fe(e.name,{...U,...o},jU),Fe(e.time,{...re,...o},GU),Fe(e.note,{...re,...o},KU)]}},Fe(e.price,{...U,...o},qU)]}}};import{tabletKey as U1}from"efficient-easel/draw";import{VIEW_DESKTOP_MIN as hp}from"efficient-easel/draw";var Ip=Zt,hI=hp,W1=960,$1=Zt,z1={min:Ip,max:1600,step:10},gp="stackBelow";function nhe(e){if(!(typeof e!="number"||!Number.isFinite(e))&&!(e<z1.min||e>z1.max))return Math.round(e)}var XU=e=>`sf-stack-${e}`,ZU=e=>`sf-stack-${e}-gutter`,JU=e=>`sf-stack-${e}-outer`,ts=e=>`${e-.02}px`;function she(e,o={}){let t=o.gutter!==!1,r=`.${XU(e)}`,a=`.${ZU(e)}`,n=`.${JU(e)}`,s=[];if(e>Ip){let l=`${r}>.sf-block-size,${r}>[data-easel-block]>[data-sf-part-host]>.sf-block-size`,i=Math.min(e,hp);s.push(`@media (min-width:${Ip}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:${Ip}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>hp&&s.push(`@media (min-width:${hp}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:${IC.frame}}}`),t&&e<W1&&s.push(`@media (min-width:${e}px) and (max-width:${ts(W1)}){${a}${a}{padding-inline:${hC}}}`),e>$1&&s.push(`@media (min-width:${$1}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 QU}from"efficient-shell/format";var ej=["standard","editorial","simple","essay"];function Ra(e){if(e==="ProductGrid")return"shelf";let o=z(wt,e)?.headStyle;return QU(ej,"standard",o)}var ri={standard:64,editorial:60,simple:36,essay:28,shelf:20},oj={SectionHeader:"accent",FAQ:"accent",FitmentFinder:"accent",FitmentTable:"accent",SpecTable:"accent",RelatedProducts:"accent",Collections:"accentNum"};function tj(e){if(e==="SectionHeader")return{num:"num",title:"title",description:"description",link:!0};let o=z(wt,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 Sp(e,o,t){let r=`editorial:${e}|${o}|${t}`,a=yp.get(r);if(a)return a;let n=q1({num:e,title:o,description:t,link:!1});return yp.set(r,n),n}var Ho={[gp]:hI},gI={top:0,right:0,bottom:1,left:0},Wo=(e,o,t,r)=>({sizeToken:{step:e,px:r,fluid:{minPx:o,vw:t}}}),bp=(e,o,t={})=>ce(e,{...W("label",o),...t}),wp=(e,o)=>({kind:"text",key:e,role:"heading",props:U,style:{textStyle:"heading-2",...o}}),yI=Zt,rj=hI,SI=(e,o,t,r,a={})=>({kind:"text",key:e,props:{...re,align:"right",alignPhone:"left",...t?{maxWidth:t,maxWidthPhone:yI}:{},...a},style:{textStyle:"body-5",fontRole:"heading",alignPhone:"left",...W("body",o),...r,...a}}),K1={...ao,align:"right",alignPhone:"left",...Fa},II=e=>({kind:"button",key:"linkText",href:"linkHref",variant:"ghost",props:K1,style:{...bt(e),color:"labels"}}),j1=(e,o,t)=>{let r=t.role==="heading"?{tag:"h2"}:{};return{kind:"block",type:"Text",when:a=>a[e]===void 0,props:{...U,...r,...t.props,text:o,_partStyles:{text:{...t.role==="eyebrow"?aj(Qt()):{},...t.style}}}}},aj=e=>e._partStyles.text??{},rs={widthFitPhone:"fill"};function bI(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(bI)}}function nj(e,o){let t=z(oj,e),r=t==="accent",a=bp(o.num,14,{color:r?"accent":"labels"}),n=t==="accentNum"&&a.kind==="text"?{...a,mark:"accentLead"}:a,s=wp(o.title,r?{...Wo("headingMedium",36,5,64),case:"upper",lineHeight:.95,letterSpacing:-.025}:{...W("headingMedium",56,36),case:"none",lineHeight:1,letterSpacing:-.03}),l=e==="Collections";return{kind:"group",name:"Header",props:{...L,direction:"row",align:"end",justify:"between",gap:40,gapPhone:12,share:"content",sectionBorder:gI,sectionPaddingBottom:24,sectionPaddingBottomPhone:20},parts:[{kind:"group",name:"Title",props:{...L,...rs,direction:"row",align:"end",gap:40,gapPhone:12,share:"content"},parts:[{kind:"group",name:"Number",props:{...L,...rs,align:"start",gap:12},parts:[{kind:"image",key:"logoSrc",alt:"logoAlt",props:{aspect:"auto",contained:!1}},n,...l?[j1(o.num,"==01== / Collections",n)]:[]]},{kind:"group",name:"Heading",props:{...L,...rs},parts:[s,...l?[j1(o.title,`Three ranges,
|
|
320
|
-
one standard.`,s)]:[]]}]},{kind:"group",name:"Words",props:{...L,...rs,gap:12,maxWidth:340,maxWidthPhone:yI},parts:[...o.description?[SI(o.description,14,void 0,{lineHeight:1.5})]:[],...o.link?[II(14)]:[],...l?[{kind:"block",type:"ButtonBlock",props:{...K1,variant:"ghost",label:"View all",href:"/wheels",_partStyles:{label:II(14).style}}}]:[]]}]}}function Cp(e,o){return e.kind==="text"?o.includes(e.key)?{...e,mark:"accentItalic"}:e:e.kind==="group"?{...e,parts:e.parts.map(t=>Cp(t,o))}:e}function q1(e){let o=wp(e.title,{...Wo("headingMedium",40,5.5,80),case:"upper",weight:500,lineHeight:1,letterSpacing:-.03});return{kind:"group",name:"Header",props:{...L,direction:"row",align:"end",justify:"between",gap:40,gapPhone:14,share:"content",sectionBorder:gI,sectionPaddingBottom:32,...Ho},parts:[{kind:"group",name:"Title",props:{...L,direction:"row",align:"end",gap:40,gapPhone:14,share:"content",...Ho},parts:[{kind:"group",name:"Number",props:{...L,sectionPaddingBottom:8},parts:[{...bp(e.num,13),props:{...U,..._a}}]},Cp(o,[e.title])]},{kind:"group",name:"Words",props:{...L,sectionPaddingBottom:4,maxWidth:360,[U1("maxWidth")]:rj,maxWidthPhone:yI},parts:e.description?[SI(e.description,14,void 0,{lineHeight:1.5},{[U1("align")]:"left"})]:[]}]}}function G1(e,o){return{kind:"group",name:"Header",props:{...L,gap:16,gapPhone:16},parts:[bp(e.num,13),wp(e.title,o)]}}var V1=[["para",{...bt(13),weight:400,lineHeight:1,letterSpacing:.22}],["sm",{...W("headingMedium",40,28),case:"none",weight:500,lineHeight:1,letterSpacing:-.03}],["md",{...W("headingMedium",48,32),case:"none",weight:500,lineHeight:1,letterSpacing:-.03}],["lg",{...W("headingMedium",56,36),case:"none",weight:500,lineHeight:1,letterSpacing:-.03}],["xl",{...W("headingMedium",64,40),case:"none",weight:500,lineHeight:1,letterSpacing:-.03}]],sj=e=>V1.some(([o])=>o===e.titleSize)?e.titleSize:"lg";function lj(e){return{kind:"group",name:"Header",props:{...L,direction:"row",align:"center",justify:"between",gap:16,share:"content",stickTop:!0,sectionBorder:gI,sectionPaddingTop:12,sectionPaddingBottom:12},parts:[{kind:"group",name:"Title",props:{...L,direction:"row",align:"end",gap:24,share:"content"},parts:[bp(e.num,13,{color:"labels",letterSpacing:.22,lineHeight:1}),...V1.map(([o,t])=>({...wp(e.title,t),when:r=>sj(r)===o}))]},{kind:"group",name:"Words",props:{...L,direction:"row",align:"center",justify:"end",gap:20,share:"content"},parts:[...e.description?[SI(e.description,13,340,{lineHeight:1.4})]:[],...e.link?[II(13)]:[]]}]}}function kp(e){return Ra(e)==="shelf"?{titleSize:"the Header Box's title Text part: its size, as the old shelf title drew it (lib/document/blocks/general/section-head-looks)"}:{}}var yp=new Map,wI={...W("headingMedium",44,32),case:"upper",weight:500,lineHeight:1,letterSpacing:-.02};function lt(e){let o=yp.get(e);if(o)return o;let t=tj(e),r=Ra(e),a=r==="editorial"?q1(t):r==="simple"?G1(t,wI):r==="essay"?G1(t,{...W("headingMedium",38,28,"headingSmall"),case:"upper",lineHeight:1,letterSpacing:-.02}):r==="shelf"?lj(t):nj(e,t);return yp.set(e,a),a}var Da={Series:"transparent",StatsParagraph:"transparent",TimelineTrack:jt,Stats:void 0};var ai=(e,o,t,r)=>({sectionBorder:{top:e,right:o,bottom:t,left:r}}),rA=e=>o=>D1(Ie(o.columns)??Ie(e.columns)),fj="inline is the head the row draws; an own-box node is skipped (`skip`)",cj={kind:"text",key:"title",role:"heading",props:U,style:{textStyle:"heading-3",...wI}},Pp=e=>{let o=da(typeof e.background=="string"?e.background:void 0,Da.Series);return o&&o!=="transparent"?o:void 0},vp=e=>Pp(e)===jt,pj={...L,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={...L,direction:"row",justify:"between",gap:12,share:"content",phoneRow:2,[vI("share")]:"content"},uj=e=>{let o=Pp(e)?1:2;return{...L,direction:"row",columns:4,columnsTablet:2,gap:o,gapPhone:o}},CI={...bt(12),letterSpacing:.22,lineHeight:1.5},X1=e=>Me(e.viewLabel)&&!PI(e.viewLabel).hidden,it=e=>PI(e).text?.trim?.()??"",Tp=e=>Object.fromEntries(Object.entries(e).filter(([,o])=>fo(o)!==void 0)),TI=e=>e.map(([o,t,r])=>({key:o,label:t,...r?{multiline:!0}:{}})),mj=TI([["num","Number"],["since","Corner note"],["title","Card title"],["body","Card body",!0],["count","Count"],["countLabel","Count word"]]),xj=TI([["label","Label"],["value","Value"],["body","Card body",!0]]),ni=(e,o,t,r,a,{reads:n=["cards"],keep:s=[]}={})=>({kind:"group",name:e,props:o,parts:[{kind:"core",as:ro,headless:!0,keep:s,derive:{reads:n,props:l=>Ad(r(l),t)},slots:(l,i)=>({[Pe]:[a(l,i)]})}]}),aA=e=>Array.isArray(e.cards)?e.cards:[],nA=e=>(Array.isArray(e.items)?e.items:[]).map(o=>Tp({title:it(o?.label),href:typeof o?.href=="string"?o.href.trim():""})).filter(o=>o.title!==void 0).map((o,t)=>({key:Us(Ym(o),t),...o})),hj=e=>nA(e).some(o=>fo(o.href)!==void 0),sA=[{key:Um.label,label:"Feature label"},{key:Um.href,label:"Link",kind:"link"}],Z1=e=>EO(e.eyebrowLook,"KeyFeatures")==="filled",Ij={name:"Key Features",boxProps:(e,o)=>({...Y,direction:"column",gap:44,gapPhone:32,...Mo("surface")(e,o),...ai(1,0,1,0),...ne(e,mc)}),box:[...J,...fe(mc)],parts:[{kind:"group",name:"Heading",props:{...L,direction:"row",align:"end",gap:20,wrap:!0,share:"content",phoneRow:2,[vI("share")]:"content"},parts:[{...Zn("eyebrow"),when:Z1},{...ce("eyebrow"),when:e=>!Z1(e)},cj]},ni("Cards",e=>({...L,...La(rA(M1.defaultProps)(e))}),sA,nA,e=>uI(hj(e)),{reads:["items"]})],drop:{...X,...ae,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"}},J1=(e,o)=>({...mp,...Mo("background")(e,o)}),Q1=e=>{let o=rA(N1.defaultProps)(e);return{...L,...La(o)}},gj=TI([["title","Card title"],["body","Card body",!0]]),lA=e=>(Array.isArray(e.items)?e.items:[]).map((o,t)=>({key:typeof o?.key=="string"&&o.key?o.key:Us(Ym(o),t),title:it(o?.title),body:it(o?.body)})),iA=e=>{let o={},t={};for(let[r,a]of Object.entries(e.props??{}))r!=="id"&&(ij(a)?t[r]=a.map(iA):o[r]=a);return{type:String(e.type),props:o,...Object.keys(t).length?{slots:t}:{}}},eA=(e,o)=>{let t=kI(e)?uI(yj(e)):os(),r=Array.isArray(e.template)?e.template.map(iA):[t],[a]=r;return r.length===1&&a.type===K?{...a,props:{...J1(e,o),...a.props}}:{type:K,props:{...L,...J1(e,o),name:"Card"},slots:{[we]:r}}},kI=e=>e.cardStyle==="label-only",dA=e=>lA(e).map((o,t)=>{let r=e.items[t]?.href;return Tp({key:o.key,title:o.title,href:typeof r=="string"?r.trim():""})}),yj=e=>dA(e).some(o=>fo(o.href)!==void 0),oA=e=>Array.isArray(e.template)&&e.template.length===0,tA=["dataSource","dataSourceOptions","highlightedCard","highlightBadge"];function fA(){let e=t=>({key:dj("card"),title:c(t),body:c("A short line about this card.")}),o=[e("Card title one"),e("Card title two"),e("Card title three")];return{eyebrow:c("Label"),title:c("Section *heading.*"),items:o}}var Sj={name:"Cards",ownBoxConverts:!0,boxProps:(e,o)=>({...Y,direction:"column",gap:36,gapPhone:28,...Mo("surface")(e,o),...ne(e,ac)}),box:[...J,...fe(ac)],parts:[{...lt("Cards"),when:e=>!lI(e)},{...ni("Cards",Q1,gj,lA,eA,{reads:["items"],keep:tA}),when:e=>!oA(e)&&!kI(e)},{...ni("Cards",Q1,sA,dA,eA,{reads:["items"],keep:tA}),when:e=>!oA(e)&&kI(e)}],drop:{...X,...ae,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)"}},bj={name:"Recurring Columns",boxProps:(e,o)=>({...Y,direction:"column",gap:60,gapPhone:60,...ai(0,0,1,0),...Ho,...vp(e)?Ba(e,o):{},...pp(Pp(e),e,o),...ne(e,Ic)}),box:[...J.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,t)=>vp(o)?Wr(e,o,t):e],...fe(Ic)],skip:e=>up(Pp(e)),site:(e,o)=>vp(e.props)?$r(e,o):[],parts:[lt("Series"),ni("Cards",uj,mj,e=>aA(e).map(o=>Tp({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:K,props:{...pj,...Mo("background",(t,r)=>vp(t)&&cp(t,r))(e,o),name:"Card"},slots:{[we]:[{type:K,props:{...L,name:"Words",gap:16,gapPhone:16},slots:{[we]:[{type:K,props:{...Y1,name:"Top"},slots:{[we]:[Fe("num",U,W("label",13),!0),Fe("since",U,W("label",13),!0)]}},Fe("title",{...U,tag:"h3"},{textStyle:"heading-3",...W("headingSmall",28),weight:500,case:"upper",lineHeight:1.04,letterSpacing:-.02}),Fe("body",re,{textStyle:"body-5",fontRole:"heading",...W("body",14),lineHeight:1.6})]}},{type:K,props:{...Y1,name:"Footer",align:"center",gap:0,gapPhone:0,sectionPaddingTop:16,sectionPaddingTopPhone:16,...ai(1,0,0,0),...X1(e)?{}:{[on]:["count","countLabel"]}},slots:{[we]:[{type:K,props:{...L,name:"Count",direction:"row",align:"center",gap:12,gapPhone:12,share:"content",phoneRow:2,[vI("share")]:"content"},slots:{[we]:[Fe("count",U,CI),Fe("countLabel",re,CI)]}},...X1(e)?[{type:K,props:{...L,name:"View",maxWidthPhone:266},slots:{[we]:[{type:"Text",props:{...U,text:PI(e.viewLabel).text,_partStyles:{text:{...Qt()._partStyles.text,...CI}}}}]}}]:[]]}}]}}))],reads:{viewLabel:"a Text typed once in the card template: the far end of every card's footer",background:"the Box's theme (the band preset) or its Fill"},drop:{...X,...ae,headPlacement:fj}},wj={...L,direction:"row",columns:3,gap:40,gapPhone:16},Cj={...L,gap:8,gapPhone:8,...wo(24),...ai(1,1,1,1)},kj={name:"Document Detail Cards",boxProps:e=>({...Y,direction:"column",gap:40,gapPhone:16,...ai(0,0,1,0),...ne(e,cc)}),box:[...J,...fe(cc)],parts:[ni("Cards",wj,xj,e=>aA(e).map(o=>Tp({label:it(o.label),value:it(o.value),body:it(o.desc)})),(e,o)=>({type:K,props:{...Cj,...Mo("surface")(e,o),name:"Card"},slots:{[we]:[Fe("label",U,{...W("label",12),lineHeight:1.5},!0),{type:K,props:{...L,name:"Words",gap:14,gapPhone:14},slots:{[we]:[Fe("value",U,{textStyle:"heading-3",...W("headingSmall",20),weight:500,letterSpacing:-.015,lineHeight:1.5}),Fe("body",re,{textStyle:"body-5",fontRole:"accent",...W("body",14),italic:!0,lineHeight:1.5})]}}]}}))],drop:{...X,...ae}},cA={Cards:Sj,KeyFeatures:Ij,Series:bj,DocMetaCards:kj};import{SITE_SIDE as XB}from"efficient-easel/screen/lib/content/length-units";import{phoneKey as Oj}from"efficient-easel/draw";import{newId as Ej}from"efficient-easel/data";import{phoneKey as vj}from"efficient-easel/draw";import{isNode as si}from"efficient-easel/data";var as="cardStyle";function pA(e){let{widthPhone:o,...t}=e;return e.widthFitPhone==="fixed"?{...t,widthFitPhone:"fill"}:{...e}}var Op={table:{items:{gap:0,gapPhone:0,columnsTablet:2},grid:{gap:0},row:{gap:0,[vj("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:{...Op.table,listCard:pA(Op.table.card)},list:{...Op.list,listCard:pA(Op.list.card)}},Khe=[{label:"Table",value:"table"},{label:"List",value:"list"}],qhe=e=>e==="table"||e==="list",Pj=e=>[...new Set([...Object.keys(dt.table[e]),...Object.keys(dt.list[e])])];function li(e,o,t){let r={...e};for(let a of Pj(o))delete r[a];return{...r,...structuredClone(dt[t][o])}}function Tj(e,o,t){let r=e.props??{},a=Array.isArray(r[Pe])?r[Pe]:[],n=a.findIndex(i=>si(i)&&i.type===t);if(n<0)return e;let s=a[n],l=a.map((i,d)=>d===n?{...s,props:li(s.props??{},"listCard",o)}:i);return{...e,props:{...r,[Pe]:l}}}function Vhe(e,o,t,r){let a=Array.isArray(e[r])?e[r]:[];if(a.some(s=>si(s)&&s.type===ro)){let s=a.map(l=>si(l)&&l.type===ro?Tj(l,o,t):l);return{...li(e,"items",o),[as]:o,[r]:s}}let n=a.map(s=>{if(!si(s)||s.type!==t)return s;let l=s.props??{},i=(Array.isArray(l[r])?l[r]:[]).map(d=>si(d)&&d.type===t?{...d,props:li(d.props??{},"card",o)}:d);return{...s,props:{...li(l,"row",o),[r]:i}}});return{...li(e,"grid",o),[as]:o,[r]:n}}var OI=e=>typeof e=="string"?e.trim():"";function uA(e){let o=`${OI(e.prefix)}${OI(e.value)}`,t=OI(e.suffix);return e.emphasizeAll===!0?o?`==_${o}_==`:"":`${o}${t?`==_${t}_==`:""}`}var xA={textStyle:"heading-2",...Wo("headingMedium",56,7,96),weight:500,case:"none",lineHeight:.9,letterSpacing:-.04},EI={kind:"block",type:"Text",props:{...Aa,_partStyles:{text:xA}},box:[["value","text",(e,o)=>uA(o)]],when:(e,o)=>o!==void 0&&typeof o.value=="string"&&uA(o)!==""},mA=e=>Me(e?.supSuffix),hA={textStyle:"body-1",fontRole:"heading",...W("body",16),lineHeight:1.5,letterSpacing:-.01},IA={color:"labels",...W("label",12),lineHeight:1.5,letterSpacing:.24},gA={...L,direction:"row",align:"start",gap:32,gapPhone:32,share:"content",phoneRow:2,[Oj("share")]:"content"},yA={textStyle:"body-5",...W("label",13),weight:500,color:"accent",letterSpacing:.18,lineHeight:1,padding:12},_I=e=>da(e.background,Da.StatsParagraph),ii=e=>_I(e)===jt,Ep=e=>({...e,sectionAccent:e.sectionAccent??0}),_j=(e,o)=>ii(e)?Mo("background",(t,r)=>cp(Ep(t),r))(e,o):{},Aj={name:"Stats with Text",skip:e=>_I(e)&&_I(e)!=="transparent"&&!ii(e)?"it paints a colour of its own, not the section band":void 0,boxProps:(e,o)=>({...Y,direction:"column",gap:60,gapPhone:60,sectionBorder:{bottom:1},...Ho,...st(e,"StatsParagraph"),...ii(e)?Ba(Ep(e),o):{}}),box:[...J.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,t)=>ii(o)?Wr(e,Ep(o),t):e],...Mr("StatsParagraph")],site:(e,o)=>ii(e.props)?$r({props:Ep(e.props)},o):[],parts:[lt("StatsParagraph"),{kind:"group",name:"Stats",props:{...L,...dt.table.grid,[as]:"table"},parts:[{kind:"list",key:"stats",name:"Stat",perRow:()=>4,rowName:"Stats row",rowProps:{...L,direction:"row",share:"equal",phoneRow:2,...dt.table.row},props:(e,o)=>({...L,...dt.table.card,..._j(e,o)}),parts:[{...EI,when:(e,o)=>!mA(o)&&EI.when(e,o)},{kind:"group",name:"Figure",props:gA,when:(e,o)=>mA(o),parts:[EI,{kind:"text",key:"supSuffix",props:U,style:yA}]},{kind:"group",name:"Words",props:{...L,gap:4,gapPhone:4},parts:[{kind:"text",key:"label",props:U,style:hA},ce("sub",IA)]}]}]}],drop:{...X,...ae,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"}},Fj=new Set(["value","label",jo]),Bj=e=>{let o=da(typeof e.background=="string"?e.background:void 0,Da.Stats);return!!o&&o!=="transparent"},Lj={name:"Stats",skip:e=>Bj(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=>!Fj.has(t)))?"a figure has a key no part here reads":Object.keys(e._partStyles??{}).some(o=>o!=="heading")?"a figure or a name has a style of its own, kept by kind, which no part here reads":void 0,boxProps:e=>({...Y,direction:"column",gap:24,gapPhone:24,...ne(e,gc)}),box:[...J,...fe(gc)],parts:[ce("heading",{color:"labels",...W("label",12),letterSpacing:.2}),{kind:"group",name:"Stats",props:{...L,...dt.list.grid,[as]:"list"},parts:[{kind:"list",key:"items",name:"Stat",perRow:e=>Ie(e.columns)??4,rowName:"Stats row",rowProps:{...L,direction:"row",share:"equal",phoneRow:2,...dt.list.row},props:{...L,...dt.list.card},parts:[{kind:"text",key:"value",props:Aa,style:{textStyle:"heading-2",...W("headingMedium",48,36),weight:500,case:"none",lineHeight:1,letterSpacing:-.03}},ce("label",{color:"labels",...W("label",12),letterSpacing:.2})]}]}],drop:{...X,...ae,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"}},SA={StatsParagraph:Aj,Stats:Lj};function bA(){return{eyebrow:c("By the numbers"),title:c("What we count."),desc:c("A few numbers that matter to us."),stats:[],background:"transparent"}}var Rj=[{key:"figure",label:"Figure"},{key:"superscript",label:"Superscript"},{key:"label",label:"Label"},{key:"body",label:"Text",multiline:!0}];function wA(){let e=(o,t,r,a="")=>({key:Ej("stat"),figure:o,superscript:a,label:t,body:r});return[e("28==_yr_==",c("Years in business"),c("Privately held since day one. Same two founders.")),e("==_8_==",c("Operating footprint"),c("Los Angeles \xB7 Fort Lauderdale \xB7 Bewdley \xB7 Drachten \xB7 Mumbai \xB7 Selangor \xB7 Ho Chi Minh \xB7 Sydney. Three continents covered from one California design studio."),c("cities")),e("\u221221==_%_==",c("Avg. weight saving"),c("Versus OEM equivalents, across our forged catalog.")),e("14==_\xD7_==",c("Finish steps"),c("Specified in California to a 14-step protocol. No two sets are identical."))]}function Dj(e){return{type:K,props:{...L,name:"Card",...structuredClone(dt[e].listCard)},slots:{[we]:[{type:K,props:{...gA,name:"Figure"},slots:{[we]:[Fe("figure",Aa,xA),Fe("superscript",U,yA)]}},{type:K,props:{...L,name:"Words",gap:4,gapPhone:4},slots:{[we]:[Fe("label",{...U,widthFit:"fill"},hA),Fe("body",{...U,widthFit:"fill"},IA,!0)]}}]}}}function AI(e,o,t=4){return{type:K,props:{...L,name:"Stats",direction:"row",columns:t,...structuredClone(dt[o].items),[as]:o},slots:{[we]:[{type:ro,props:Ad(e,Rj),slots:{[Pe]:[Dj(o)]}}]}}}var CA={heading:"Ways to pay"},kA=()=>[{label:"Visa"},{label:"Mastercard"},{label:"Amex"},{label:"PayPal"}],vA=()=>[{text:c("Secure encrypted checkout")},{text:c("30-day returns")}],uIe={label:"Payment Methods",drawsPictures:!0,defaultProps:{heading:"",badges:[],assurances:[],contained:!0}};import{hiddenKeyOf as Nj}from"efficient-easel/screen/lib/content/view-hide";import{parseOption as TA}from"efficient-shell/format";var _p="Flex",Mj={FooterMenu:"MenuBlock",FooterEmailSignup:"EmailFormBlock",FooterSocial:"SocialLogosBlock"},Hj={FooterPayment:"PaymentLogosBlock"},Wj=e=>{let{id:o,...t}=e;return t},PA=e=>typeof e=="string"?e:"",ns={sm:12,md:13,lg:15},OA={sm:{mark:16,words:ns.sm},md:{mark:20,words:ns.md}},$j="md",EA=1.5,zj={size:13,lineHeight:EA,width:280},Uj=14,jj=40,Gj=e=>TA(["left","center","right"],"left",e);function Kj(e){let o={},t=[["padTop","sectionPaddingTop"],["padRight","sectionPaddingRight"],["padBottom","sectionPaddingBottom"],["padLeft","sectionPaddingLeft"]];for(let[r,a]of t){let n=Ie(e[r]);n&&(o[a]=n)}return o}function qj(e,o,t){let r=t(e,Wj(o));if(Array.isArray(o.template))return{...r,props:{...r.props,template:_A(o.template,String(r.props.id))}};if(o.template!==void 0)return r;let a=kd(e,r.props);return a===r.props?r:{...r,props:a}}function _A(e,o,t={at:0}){return e.map(r=>{let a={...r.props,id:`${o}~t${t.at++}`};for(let n of Dt(r))a[n]=_A(a[n],o,t);return{...r,props:a}})}function AA(e,o,t){let r=e.props??{},a=t?.(e,o);if(a)return a;let n=z(Mj,e.type)??z(Hj,e.type);if(n)return[qj(n,r,o)];switch(e.type){case"FooterLogo":{let s=Gj(r.align),l=o("LogoBlock",{...r.reverse?{reverse:r.reverse}:{},...typeof r.customColor=="string"&&r.customColor?{customColor:r.customColor}:{},heightPx:Math.round(Qv*((Ie(r.widthPct)??100)/100)),href:"/",align:s,...Kj(r)}),i=PA(r.tagline).trim();return i?[l,o("Text",{text:i,tone:"dim",align:s,_partStyles:{text:{...zj}}})]:[l]}case"FooterText":{let s=typeof r.size=="string"&&co(ns,r.size)?r.size:$j;return[o("Text",{text:PA(r.text),tone:typeof r.tone=="string"?r.tone:"default",_partStyles:{text:{size:ns[s],lineHeight:EA}}})]}case"FooterDivider":{let s=Ie(r.thickness),l=Ie(r.lengthPct);return[o("Divider",{...s!==void 0?{thickness:s}:{},...l!==void 0?{lengthPct:l}:{},...r.hideOnMobile===!0?{[Nj("mobile")]:!0}:{}})]}case"FooterGroup":{let s=Array.isArray(r.blocks)?r.blocks:[];return[o(_p,{direction:r.direction==="horizontal"?"row":"column",gap:eP("FooterGroup",r.gap),align:TA(["start","center","end","stretch"],"start",r.align),...Mm,content:s.flatMap(l=>AA(l,o,t))})]}default:return[]}}function di(e,o,t,r){let a=e&&Array.isArray(e.props?.blocks)?e.props.blocks:[],n=f=>o(_p,{direction:"row",wrap:!0,share:"equal",gap:jj,content:f}),s=[],l=[];for(let f of a){let x=AA(f,o,r);if(f.type==="FooterDivider"){l.length&&s.push(n(l)),l=[],s.push(...x);continue}x.length<=1?l.push(...x):l.push(o(_p,{direction:"column",gap:Uj,align:"stretch",...Mm,content:x}))}(l.length||!s.length)&&s.push(n(l));let i=o(_p,{direction:"column",content:[o("LegalLineBlock")]}),d=sP(Je,t,[...s,i]);return{...d,props:{...d.props,...e?.props?.width==="full"?{fullWidth:!0}:{}}}}import{phoneKey as FI,readHidable as Vj}from"efficient-easel/draw";import{parseOption as Yj}from"efficient-shell/format";var BI={contained:!1},LI=(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])}]}]}),Xj={...ce("heading",{color:"labels",letterSpacing:.2}),props:{...U,align:"center"}},Zj={name:"Logos",boxProps:e=>({...Y,direction:"column",gap:32,...ne(e,kl(e))}),box:[...J,...fe(kl),["bandPadding","sectionPaddingTop",(e,o)=>ne(o,kl(o)).sectionPaddingTop]],parts:[Xj,{kind:"core",keep:["columns","logoHeight","grayscale"],rename:{logosPerRow:"columns"},props:BI,slots:LI("items","alt")}],drop:{...X,...ae,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"}},Jj={kind:"group",name:"Mark",keepEmpty:!0,parts:[],props:nw(4,"main",{sectionCorners:2})},Qj={name:"Payment Methods",boxProps:e=>({...Y,direction:"column",...ne(e,lc)}),box:[...J,...fe(lc)],parts:[{kind:"group",name:"Methods",props:{...L,align:"center",gap:20,gapPhone:20,sectionBorder:{top:1,bottom:1},sectionPaddingTop:32,sectionPaddingBottom:32},parts:[{...ce("heading",{color:"labels"}),props:{...U,align:"center"}},{kind:"core",keep:[],as:"Logos",derive:{reads:[to,Xt],props:e=>Me(e[to])?{[to]:e[to],...e[Xt]!==void 0?{[Xt]:e[Xt]}:{}}:{}},props:{...BI,look:"cards",grayscale:!1},slots:e=>({...LI("badges","label"),...Me(e[to])?{[Pe]:[Gm()]}:{}})},{kind:"group",name:"Reassurance",props:{...L,direction:"row",wrap:!0,justify:"center",gap:24,gapPhone:24,phoneRow:2,[FI("share")]:"content"},parts:[{kind:"list",key:"assurances",name:"Line",of:e=>(Array.isArray(e.assurances)?e.assurances:[]).filter(o=>Me(o?.text)),props:{...L,direction:"row",align:"center",gap:8,gapPhone:8,phoneRow:2,[FI("share")]:"content"},item:e=>Vj(e.text).hidden?{props:{_hidden:!0}}:{},parts:[Jj,{kind:"text",key:"text",props:{...U,align:"center"},style:{...W("label",13),color:"labels",lineHeight:1.5}}]}]}]}],drop:{...X,...ae,contained:"the Box draws the site frame now; the Logos block inside it fills the Box's column (`contained: false`)"}},FA=e=>Jb(e.align)??"left",BA=e=>Yj(["sm","md"],"sm",e.size),LA=12,RA={name:"Payment logos",boxProps:e=>({...L,direction:"row",wrap:!0,align:"center",justify:Id[FA(e)],gap:LA,gapPhone:LA,phoneRow:2,[FI("share")]:"content"}),box:[...br],parts:[{kind:"text",key:"lead",props:re,styleFrom:e=>({size:ns[BA(e)],lineHeight:1.5})},{kind:"core",keep:[],as:"Logos",derive:{reads:[to,Xt],props:e=>({logoHeight:OA[BA(e)].mark,align:FA(e),...Me(e[to])?{[to]:e[to],...e[Xt]!==void 0?{[Xt]:e[Xt]}:{}}:{}})},props:{...BI,look:"marks",grayscale:!1,sectionAccent:yr},slots:e=>({...LI("methods","label"),...Me(e[to])?{[Pe]:[Gm()]}:{}})}],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"}},DA={Logos:Zj,PaymentBadges:Qj,FooterPayment:RA,PaymentLogosBlock:RA},NA=()=>({heading:DE.heading,items:zc()}),MA=()=>({heading:CA.heading,badges:kA(),assurances:vA()}),HA=()=>({...xf,methods:[]});import{mixHex as aG}from"efficient-shell/format";import{MOTION_EASING as eG,MOTION_TIMING as WA,motionSeconds as $A,parseOption as zA}from"efficient-shell/format";var RI="none",Ap=[{label:"None",value:"none"},{label:"Marquee",value:"scroll"}];function jIe(e){return zA(Ap,RI,e)}var ss="_gLoop",fi={field:"loop",is:"scroll"},ci="left",DI=[{label:"Left",value:"left",cell:"left"},{label:"Right",value:"right",cell:"right"},{label:"Up",value:"up",cell:"top"},{label:"Down",value:"down",cell:"bottom"}],oG={left:"storefront-ticker",right:"storefront-ticker-right",up:"storefront-ticker-up",down:"storefront-ticker-down"};function UA(e){return zA(DI,ci,e)}function jA(e){return e==="up"||e==="down"}function Fp(e){return $A("loop","duration",e.loopDuration!=null?e.loopDuration:e.speed)}var GIe=WA.loop.duration.default,tG=WA.loop.delay.default;function GA(e){return $A("loop","delay",e.loopDelay)}function KIe(e,o,t=tG){return`${oG[e]} ${o}s ${eG.loop}${t?` ${t}s`:""} infinite`}var Bp="_gEntrance";var XIe="none",ZIe=[{label:"Nothing",value:"none"},{label:"Section above",value:"above"},{label:"Section below",value:"below"}];function Lp(e){return e==="above"||e==="below"?e:null}var KA="sf-ticker-join";function rG(e){return e==="above"?"sf-ticker-join-above":"sf-ticker-join-below"}function qA(e){return`absolute inset-x-0 ${rG(e)}`}var VA=e=>e.size==="display",nG=(e,o)=>{let t=fp(e,o),r=e.tone!=="plain"&&t?.text&&t.background?aG(t.text,t.background,.3):null;return r?{color:r}:{}},sG=(e,o)=>e.tone!=="plain"&&tx(e.sectionAccent)===null?Mo("background")(e,o):{},YA=(e,o)=>({kind:"list",key:"items",name:"Item",flat:!0,when:o,parts:[{kind:"text",key:"text",props:re,style:e,styleFrom:nG}]}),lG={name:"Scrolling Bar",boxProps:(e,o)=>({...Y,...ma,...oc,...ow[Nm(e.separator)]===""?rO:{},...ne(e,xa),...sG(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=>Nm(e)],["join","join",e=>Lp(e)??void 0],["borders","sectionBorder",e=>e===!1?void 0:{top:1,bottom:1}],...J,["tone","sectionAccent",(e,o)=>tx(o.sectionAccent)??yr],...fe(xa)],parts:[YA(tc,e=>!VA(e)),YA(aO,VA)],drop:{...X,...ae,size:"each item's Text style: Small \u2192 Body 5, Display \u2192 Heading 3"}},XA=e=>e?.tone==="muted",ZA=e=>Fd(Ta(e)),iG={name:"Spec Strip",boxProps:(e,o)=>({...Y,...ma,...yl,...e.fill==="none"?{sectionBorder:{top:1}}:{sectionAccent:ZA(o)},...ne(e,ha)}),box:[...J.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,t)=>o.fill==="none"?e:ZA(t)],...fe(ha)],parts:[{kind:"list",key:"cells",name:"Cell",flat:!0,parts:[{kind:"text",key:"text",props:U,style:Sl,when:(e,o)=>!XA(o)},{kind:"text",key:"text",props:re,style:Sl,when:(e,o)=>XA(o)}]}],drop:{...X,...ae,...dp,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"}},JA={Ticker:lG,SpecStrip:iG};import{tabletKey as QA}from"efficient-easel/screen/lib/content/view-tiers";var eF={direction:"column",justify:"between",gap:14,gapPhone:14,sectionPaddingLeft:14,sectionPaddingRight:14,[QA("sectionPaddingLeft")]:0,sectionPaddingLeftPhone:0,sectionHeightMode:"fixed",sectionHeightValue:280,sectionHeightUnit:"px",[QA("sectionHeightMode")]:"auto",sectionHeightModePhone:"auto"},NI={name:"Year and title",direction:"column",gap:14,gapPhone:14};import{tabletKey as dG}from"efficient-easel/draw";var Rp={eyebrow:Oe.eyebrow,title:`Section heading
|
|
321
|
-
*Highlight line*`,intro:Oe.body,imageCaption:Oe.imageCaption,imageMeta:Oe.imageMeta,cta:je.text},oF=()=>[{date:c("Year"),title:c("Milestone title."),body:c("Describe what happened, in a sentence or two.")},{date:c("Year"),title:c("Milestone title."),body:c("Describe what happened, in a sentence or two.")},{date:c("Year"),title:c("Milestone title."),body:c("Describe what happened, in a sentence or two.")}],uge={label:"Story Timeline",drawsPictures:!0,defaultProps:{layout:"split",eyebrow:"",title:"",intro:"",imageSrc:"",imageCaption:"",imageMeta:"",ctaText:"",ctaHref:"",entries:[],padTop:120,padBottom:120}};var Dp={eyebrow:Oe.eyebrow,title:Oe.headingAccent,intro:Oe.body,cta:je.text},tF=()=>[{date:c("Year"),title:c("Milestone"),blurb:c("A short line about this milestone."),future:!1},{date:c("Year"),title:c("Milestone"),blurb:c("A short line about this milestone."),future:!1},{date:c("Year"),title:c("Milestone"),blurb:c("A short line about this milestone."),future:!1},{date:c("Year \u2192"),title:c("Upcoming"),blurb:c("A milestone still to come."),future:!0}],gge={label:"Milestone Timeline",defaultProps:{eyebrow:"",title:"",intro:"",entries:[],ctaText:"",ctaHref:"",background:qv,padTop:120,padBottom:120}};var iF={buttonBorder:{width:0}},Hp=(e,o,t={})=>({textStyle:"body-5",...W("label",e),letterSpacing:o,lineHeight:1.5,weight:400,...t}),ls=(e,o,t={})=>({...Hp(e,o),...Bo,...t}),Wp=(e,o,t)=>({...e,case:"upper",weight:500,letterSpacing:o,lineHeight:t}),pi=(e,o,t={})=>({textStyle:"body-1",fontRole:"heading",...e,weight:400,case:"none",lineHeight:o,...t}),ft=(e,o,t={})=>({kind:"text",key:e,props:U,style:o,...t}),rF=(e,o)=>o?.future===!0,Np=e=>tE(typeof e?.body=="string"?e.body:""),zI=e=>da(typeof e.background=="string"?e.background:void 0,Da.TimelineTrack),MI=e=>zI(e)===jt?e:{...e,background:"transparent"},fG={name:"Milestone Timeline",skip:e=>up(zI(e)),boxProps:(e,o)=>{let t=Hr(MI(e),o);return{...Y,direction:"column",gap:60,[dG("gap")]:36,gapPhone:36,sectionBorder:{bottom:1},...Ho,...st(e,"TimelineTrack"),...pp(zI(e),e,o),...t>=0?{sectionAccent:t}:{}}},box:[...J.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,t)=>Wr(e,MI(o),t)],...Mr("TimelineTrack")],parts:[bI(Cp(Sp("eyebrow","title","intro"),["intro"])),{kind:"group",name:"Track",props:{...L,gap:48,gapPhone:48},parts:[{kind:"group",name:"Years",props:{...L,direction:"row",share:"equal",gap:0,line:!0,...Ho},parts:[{kind:"list",key:"entries",name:"Year",props:{...L,...eF},item:e=>({props:e.future===!0?{upcoming:!0}:{}}),parts:[{kind:"group",name:NI.name,props:{...L,...NI},parts:[ft("date",Hp(13,.22,{color:"accent"}),{when:(e,o)=>!rF(e,o)}),ft("date",Hp(13,.22,{color:"labels"}),{when:rF}),ft("title",{textStyle:"heading-3",...Wp(W("headingSmall",20),-.02,1.1)},{role:"heading"})]},ft("blurb",pi(W("body",13),1.55),{props:re,mark:"accentItalic"})]}]},{kind:"group",name:"Button row",props:{...L,sectionBorder:{top:1,right:0,bottom:0,left:0},sectionPaddingTop:32},parts:[{kind:"button",key:"ctaText",href:"ctaHref",variant:"ghost",props:{...ao,align:"right",...iF},style:ls(13,.3)}]}]}],site:(e,o)=>$r({props:MI(e.props)},o),drop:{...X,...ae,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"}},jI=e=>typeof e.layout=="string"?e.layout:"split",Mp=e=>jI(e)==="split",UI=e=>!Mp(e),dF=e=>jI(e)==="spine",cG=e=>UI(e)&&!dF(e),aF=(e,o,t,r)=>({kind:"group",name:"Picture",keepEmpty:!0,box:[["imageSrc","bgImage"]],props:{...L,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:{...L,direction:"row",justify:"between",align:"center",gap:12,gapPhone:12,share:"content",phoneRow:2},parts:[ft("imageCaption",ls(11,.24,{color:"text"})),ft("imageMeta",ls(11,.24,{color:"accent"}),{props:{...U,align:"right"}})]}]}),nF=(e={})=>({kind:"button",key:"ctaText",href:"ctaHref",variant:"ghost",props:{...ao,...e,...iF},style:ls(13,.3)}),HI=()=>[ft("title",{textStyle:"heading-3",...Wp(W("headingSmall",24,20),-.02,1.5)},{role:"heading",mark:"accentItalic"}),{kind:"block",type:"Text",props:{...U,_partStyles:{text:pi(W("body",17,16),1.6)}},box:[["body","text",(e,o)=>Ms(Np(o)[0]??"")]],when:(e,o)=>Np(o).length>0},{kind:"block",type:"Text",props:{...re,_partStyles:{text:pi(W("body",17,16),1.6,{paragraphSpacing:14})}},box:[["body","text",(e,o)=>Ms(Np(o).slice(1).join(`
|
|
322
|
-
|
|
323
|
-
`))]],when:(e,o)=>Np(o).length>1}],WI=()=>ft("date",Hp(13,.24,{color:"accent"})),$I=(e,o,t={})=>ft(e,o,{...t,props:{...U,...t.props??{},align:"center"}}),sF=Wo("headingMedium",40,5,76),lF={sectionBorder:{bottom:1}},pG={name:"Story Timeline",skip:e=>jI(e)==="track"?'display "track": not converted (it draws the Milestone rail; a Track story is not stored anywhere)':void 0,boxProps:e=>Mp(e)?{...Y,direction:"row",share:[40],gap:80,gapPhone:48,align:"start",...lF,...st(e,"Timeline")}:{...Y,direction:"column",gap:48,gapPhone:48,align:"center",...lF,...st(e,"Timeline")},box:[...J,...Mr("Timeline")],parts:[{kind:"group",name:"Heading",props:{...L,gap:24,gapPhone:24},when:Mp,parts:[ft("eyebrow",ls(12,.3,{color:"accent"}),{role:"eyebrow"}),ft("title",{textStyle:"heading-2",...Wp(sF,-.03,.94)},{role:"heading",mark:"accentItalic"}),ft("intro",pi(W("body",14),1.6),{props:{...re,maxWidth:360},mark:"accentItalic"}),aF(667,419,{},()=>!0),nF()]},{kind:"group",name:"Chapters",props:{...L,gap:48,gapPhone:48,line:!1},when:Mp,parts:[{kind:"list",key:"entries",name:"Chapter",props:{...L,direction:"row",gap:24,gapPhone:8,share:[12],align:"start"},parts:[WI(),{kind:"group",name:"Words",props:{...L,gap:14,gapPhone:14},parts:HI()}]}]},{kind:"group",name:"Heading",props:{...L,gap:24,gapPhone:24,align:"center",maxWidth:760,widthFit:"fill"},when:UI,parts:[$I("eyebrow",ls(12,.3,{color:"accent"}),{role:"eyebrow"}),$I("title",{textStyle:"heading-2",...Wp(sF,-.03,.94)},{role:"heading",mark:"accentItalic"}),$I("intro",pi(W("body",14),1.6),{props:{...re,maxWidth:520},mark:"accentItalic"}),nF({align:"center"})]},aF(506,192,{maxWidth:900,widthFit:"fill"},UI),{kind:"group",name:"Chapters",props:{...L,gap:48,gapPhone:48,line:!0,maxWidth:760,widthFit:"fill",sectionPaddingTop:16},when:dF,parts:[{kind:"list",key:"entries",name:"Chapter",props:{...L,gap:8,gapPhone:8},parts:[WI(),{kind:"group",name:"Words",props:{...L,gap:14,gapPhone:14},parts:HI()}]}]},{kind:"group",name:"Chapters",props:{...L,gap:56,gapPhone:56,maxWidth:1e3,widthFit:"fill",sectionPaddingTop:16,mirrorCards:"even"},when:cG,parts:[{kind:"list",key:"entries",name:"Chapter",props:{...L,direction:"row",gap:64,gapPhone:0,share:[50],align:"start"},parts:[{kind:"group",name:"Entry",props:{...L,gap:8,gapPhone:8},parts:[WI(),{kind:"group",name:"Words",props:{...L,gap:14,gapPhone:14},parts:HI()}]},{kind:"group",name:"Spacer",props:{...L},keepEmpty:!0,parts:[]}]}]}],drop:{...X,...ae,layout:"the Box's own arrangement replaces it: Split a row of two Boxes; Spine and Alternating a centred column (Track is skipped)"}},fF=()=>({eyebrow:Rp.eyebrow,title:kt(Rp.title),intro:Rp.intro,ctaText:je.text,ctaHref:je.href,entries:oF()}),cF=()=>({eyebrow:Dp.eyebrow,title:kt(Dp.title),intro:Dp.intro,ctaText:je.text,ctaHref:je.href,entries:tF()}),pF={TimelineTrack:fG,Timeline:pG};import{tabletKey as uG}from"efficient-easel/draw";function uF(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),GI=e=>Array.isArray(e.locations)?e.locations.map(o=>o??{}):[],is=e=>ct(e.group),wF=e=>`loc-${e}`,CF=e=>ct(e.state).trim()||Cx(ct(e.region)).state,kF=e=>ct(e.country).trim()||Cx(ct(e.region)).country,mF=e=>[CF(e),kF(e)].filter(Boolean).join(" \xB7 "),mG=e=>GI(e).some(o=>ct(o.photo).trim()!==""),xG=e=>GI(e).some(o=>yw(Number(o.lat),Number(o.lng))),hG=(e,o)=>GI(e).filter(t=>is(t)===is(o)).length,IG=(e,o)=>hG(e,o)===1?"wide":mP(e.imageShape),xF=48,Pt=(e,o={})=>({...bt(e),...o}),KI={top:1,right:1,bottom:1,left:1},qI={...L,direction:"row",share:"equal",gap:0},gG=e=>o=>o>wd(o)?{...L,gap:0}:{...qI,...o>1?{phoneRow:e}:{}},VI=!0,yG={kind:"group",name:"Gallery",props:{...L,gap:20,...VI?{_hidden:!0}:{}},when:mG,parts:[{kind:"group",name:"Gallery head",props:{...L,direction:"row",justify:"between",align:"end",gap:24,share:"content",sectionBorder:{bottom:1},sectionPaddingBottom:16},parts:[ce("galleryKicker",Pt(12,{color:"accent",letterSpacing:.3})),{kind:"text",key:"galleryHint",props:{...re,align:"right",alignPhone:"left"},style:Pt(11,{letterSpacing:.22,alignPhone:"left"})}]},{kind:"group",name:"Groups",props:{...L,gap:24},parts:[{kind:"list",key:"locations",name:"City picture",props:{...L,darken:85,darkenStyle:"bottom",placement:"bottom-left",sectionBorder:KI,...wo(12,12)},item:(e,o,t)=>({props:{...ct(e.photo).trim()?{bgImage:ct(e.photo),hover:"mono"}:{},link:`#${wF(o)}`,boxShape:IG(t,e)}}),parts:[{kind:"text",key:"name",props:U,style:Pt(11,{letterSpacing:.22,color:"text"})}],groups:{of:is,name:"Group",props:{...L,gap:10},head:e=>({label:is(e[0]??{})}),parts:[ce("label",Pt(11,{color:"accent",letterSpacing:.3}))],itemsName:"Cities",itemsProps:gG(2),perRow:wd,rowName:"Row",rowProps:{...qI,phoneRow:2}}}]}]},SG={kind:"group",name:"Words",props:{...L,gap:12,gapPhone:12,...wo(28,28),sectionHeightMode:"fixed",sectionHeightValue:280,sectionHeightUnit:"px",sectionHeightModePhone:"auto"},parts:[{kind:"group",name:"Name row",props:{...L,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:{...L,gap:6,gapPhone:6},parts:[{kind:"text",key:"name",role:"heading",props:U,style:{textStyle:"heading-3",...W("headingSmall",30),case:"upper",weight:500,lineHeight:1,letterSpacing:-.02}},{kind:"block",type:"Text",props:{...U,_partStyles:{text:Pt(12,{color:"accent",letterSpacing:.24,lineHeight:1.5})}},box:["region","state","country"].map(e=>[e,"text",(o,t)=>mF(t)]),when:(e,o)=>mF(o??{})!==""}]},{kind:"group",name:"Time zone",props:{...L,sectionBorder:KI,...wo(6,10)},parts:[{kind:"text",key:"timezone",props:{...re,textFit:"line"},style:Pt(12,{letterSpacing:.22,lineHeight:1.5})}]}]},{kind:"text",key:"address",props:re,style:{textStyle:"body-5",fontRole:"heading",...W("body",14),lineHeight:1.5}},{kind:"block",type:"ButtonBlock",props:{...ao,...Fa,variant:"ghost",arrow:!1,_partStyles:{label:Pt(13,{letterSpacing:.18,color:"text",lineHeight:24/13})}},box:[["phone","label"],["phone","href",e=>uF(ct(e))??"#"]],when:(e,o)=>ct(o?.phone).trim()!==""},{kind:"text",key:"hours",props:re,style:Pt(12,{letterSpacing:.18,lineHeight:1.7})}]},bG={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)=>CF(t)]),...["region","country"].map(e=>[e,"country",(o,t)=>kF(t)])]},wG={kind:"group",name:"Map",props:{...L,sectionBorder:{top:1,right:0,bottom:0,left:0}},parts:[bG]},CG={kind:"list",key:"locations",name:"City",props:(e,o)=>({...L,gap:0,justify:"between",sectionBorder:KI,jumpHighlight:!0,sectionAccent:Hr(e,o)>=0?Jn(e.sectionAccent,o):-1}),item:(e,o)=>({props:{anchor:wF(o)}}),parts:[SG,wG],groups:{of:is,name:"Group",props:{...L,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:{...L,direction:"row",justify:"between",align:"end",gap:16,share:"content",sectionBorder:{bottom:1},sectionPaddingBottom:16},when:(e,o)=>ct(o?.key).trim()!=="",parts:[ce("key",Pt(13,{color:"accent",letterSpacing:.3})),{kind:"text",key:"groupName",role:"heading",props:U,style:{textStyle:"heading-3",...W("headingSmall",24),case:"upper",weight:500,letterSpacing:-.01}},{kind:"text",key:"count",props:re,style:Pt(12,{letterSpacing:.22})}]}],itemsName:"Cities",itemsProps:e=>({...qI,columns:wd(e),[uG("columns")]:1})}},hF=Pt(10,{letterSpacing:.25}),kG={kind:"block",type:Gt,props:{...L,name:"Credit",direction:"row",justify:"end",align:"center",gap:6,share:"content",wrap:!0},when:xG,slot:Kt,keepEmpty:!0,parts:[{kind:"block",type:"Text",props:{...re,text:"Location coordinates \xA9",_partStyles:{text:hF}}},{kind:"block",type:"ButtonBlock",props:{...ao,...Fa,variant:"ghost",arrow:!1,label:"OpenStreetMap contributors",href:"https://www.openstreetmap.org/copyright",_partStyles:{label:{...hF,color:"labels"}}}}]},IF=(e,o)=>Object.fromEntries(o.filter(t=>e[t]!==void 0).map(t=>[t,e[t]])),gF=["sectionPaddingTop","sectionPaddingTopTablet","sectionPaddingTopPhone"],yF=["sectionPaddingBottom","sectionPaddingBottomTablet","sectionPaddingBottomPhone"],SF=e=>e.map(o=>[o,o,(t,r)=>ne(r,Nn)[o]]),bF=["sectionAccent","sectionAccent",Wr],vG=[...br,...vn,...Object.values(Eo)],PG={name:"City pictures",skip:e=>De(e)?`fed by the data source "${De(e)}": its cities are read as the page is served, not stored on the node`:void 0,boxProps:(e,o)=>({...Y,direction:"column",gap:40,anchor:"studios",...Ho,...IF(ne(e,Nn),gF),sectionPaddingBottom:xF,sectionPaddingBottomPhone:xF,...Ba(e,o)}),box:[...J.filter(e=>e!=="sectionAccent"&&e!=="anchor"),bF,["anchor","anchor",e=>Xv(e).trim()?e:"studios"],...SF(gF)],parts:[Sp("sectionNumber","heading","tagline"),yG],also:[{name:"City maps",boxProps:(e,o)=>({...Y,direction:"column",gap:40,sectionBorder:{bottom:1},...Ho,sectionPaddingTop:0,sectionPaddingTopPhone:0,...IF(ne(e,Nn),yF),...Ba(e,o)}),box:[...vG,bF,...SF(yF)],parts:[CG,kG]}],reads:{mapTheme:"City maps Box: each Map block's Map theme",imageShape:"City pictures Box: each picture Box's Box shape"},site:$r,drop:{...X,...ae,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)"}},vF={ContactLocations:PG};import{SITE_SIDE as PF,sideLengthAt as TG}from"efficient-easel/screen/lib/content/length-units";import{viewKeyAt as YI}from"efficient-easel/draw";var OG=["FAQ","Footprint","LongRead","ProcessSteps","RelatedProducts"];var zr=(e,o)=>()=>({top:e,topPhone:o}),TF=e=>o=>{let t=Mn(e),r={...o,[wr.top]:Jd(o,t).top},a=i=>{let d=TG(r,wr,Zd,i,"top");return d?.unit==="px"?d.value:void 0},n=i=>Ie(o[YI(wr.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}:{}}},EG={Collections:zr(120,70),Events:zr(120,70),FAQ:zr(nc.top,nc.topPhone),GalleryB:zr(120,70),FitmentTable:zr(120,80),SpecTable:zr(120,80),LongRead:zr(sc.top,sc.topPhone),RelatedProducts:zr(0,0),Footprint:TF("Footprint"),ProcessSteps:TF("ProcessSteps"),ProductGrid:e=>({top:Ie(e.padTop)??120,topPhone:0})};function _G(e,o={}){let t=z(wt,e),r=z(EG,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=kp(e),l=t.headRows.filter(d=>![t.num,t.title,t.description,"linkText","linkHref"].includes(d)),i={...Object.fromEntries(l.filter(d=>!(d in s)).map(d=>[d,"a head setting no Header Box part reads (lib/document/blocks/general/section-head-looks `headReads`)"])),...o.drop};return{name:z(ea,e)??e,boxProps:(d,f)=>{let x=r(d),u=o.roomBelow?{sectionPaddingBottom:o.roomBelow.bottom,sectionPaddingBottomPhone:o.roomBelow.bottomPhone}:{},h=typeof o.boxProps=="function"?o.boxProps(d,f):o.boxProps??{},I=Ra(e)==="editorial"?Ho:{};return{...Y,direction:"column",gap:ri[Ra(e)],sectionPaddingTop:x.top,...x.topTablet!==void 0?{sectionPaddingTopTablet:x.topTablet}:{},...x.topPhone!==void 0?{sectionPaddingTopPhone:x.topPhone}:{},...I,...u,...h}},box:[...J,...a?[[a,"sectionPaddingTop",(d,f)=>r(f).top]]:[]],parts:[n,...(()=>{let d=a&&pO.has(e)?{[YI(a,"tablet")]:0,[YI(a,"mobile")]:0}:{},f={...a?{[a]:0}:{},...d,...o.coreProps},x={kind:"core",keep:"rest",...Object.keys(f).length?{props:f}:{},...o.slots?{slots:o.slots}:{}};return[o.coreBox?{kind:"group",name:o.coreBox.name,props:o.coreBox.props,parts:[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 AG={...L,direction:"accordion",rowStyle:"numbered"},FG={sectionPaddingLeft:PF,sectionPaddingRight:PF},BG={Footprint:{slots:{[Pe]:[Sw()]},pressHeading:!0},ProcessSteps:{slots:(e,o)=>o.press?{[Ds]:t1().map(t=>({...t,props:{...t.props,...FG}}))}:{},boxProps:{gapPhone:ri.editorial}},FAQ:{slots:{[Pe]:[gw()]},pressHeading:!0,coreBox:{name:"Questions",props:AG},coreProps:{sectionAccent:yr},roomBelow:{bottom:120,bottomPhone:70},boxProps:(e,o)=>o.press?{}:{[X0]:Il},skip:e=>{let o=e._partStyles??{},t=Iw().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}}},OF=Object.fromEntries(OG.map(e=>[e,_G(e,z(BG,e))]));import{BLOCK_WIDTH_LIMIT as LG}from"efficient-easel/draw";var $p={eyebrow:Oe.eyebrow,title:Oe.headingAccent,deck:"Add a sentence or two introducing this document."},hye={label:"Document masthead",defaultProps:{eyebrow:"",title:"",deck:"",meta:[]}};var BF={minWidth:LG.min},EF=(e,o,t)=>({...ce(e,{...o,...Ql}),props:{...U,align:"right",..._a,...t}}),LF={top:1,bottom:0},ZI=(e,o,t,r)=>({kind:"group",name:e,props:{...L,sectionPaddingBottom:o,sectionPaddingBottomPhone:t},parts:[r]}),_F={widthFit:"fill",...BF},RG={...W("label",13),letterSpacing:.22,lineHeight:1.8},AF={textStyle:"heading-1",...Wo("headingLarge",56,8,128),case:"upper",weight:500,lineHeight:.88,letterSpacing:-.04},DG=()=>({name:"Page Header",boxProps:e=>({...Y,direction:"column",gap:0,sectionBorder:{bottom:1},...ne(e,fc)}),box:[...J,...fe(fc)],parts:[{kind:"group",name:"Header",props:{...L,direction:"row",align:"end",justify:"between",gap:40,gapPhone:16,share:"content",sectionPaddingBottom:32},parts:[ZI("Eyebrow",12,0,{...ce("eyebrow",W("label",13)),props:{...U,..._a}}),{kind:"text",key:"title",role:"heading",props:{...U,tag:"h1",..._F},style:AF,mark:"accentItalic",when:e=>!Kh(e)},{kind:"text",key:"title",role:"heading",props:{...U,tag:"h2",..._F},style:AF,mark:"accentItalic",when:Kh},{kind:"group",name:"Details",props:{...L,align:"stretch",gap:0,gapPhone:0,sectionPaddingBottom:12,sectionPaddingBottomPhone:0},parts:[{kind:"list",key:"meta",name:"Detail",flat:!0,parts:[ei("label","value",RG,_a)]}]}]},{kind:"group",name:"Deck",props:{...L,maxWidth:760,sectionBorder:LF,sectionPaddingTop:28},parts:[{kind:"text",key:"deck",props:re,style:{textStyle:"body-1",fontRole:"accent",...W("body",22,19),italic:!0,lineHeight:1.5}}]}],drop:{...X,...ae,[Gc]:"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"}}),RF=()=>({eyebrow:$p.eyebrow,title:kt($p.title),deck:$p.deck,meta:[{label:Oe.label,value:Oe.value},{label:Oe.label,value:Oe.value}]}),NG={...W("label",13),letterSpacing:.18,lineHeight:1.8},FF={...W("label",13),letterSpacing:.22,lineHeight:1.9},MG=()=>({name:"Issue Header",boxProps:e=>({...Y,direction:"column",gap:0,sectionBorder:{bottom:1},...ne(e,wl)}),box:[...J,...fe(wl)],parts:[{kind:"group",name:"Top",props:{...L,direction:"row",align:"end",justify:"between",gap:60,gapPhone:16,share:"content",sectionPaddingBottom:32},parts:[ZI("Eyebrow",14,14,ce("eyebrow",W("label",14))),{kind:"group",name:"Issue",props:{...L,align:"end",gap:0,gapPhone:0,sectionPaddingBottom:14},parts:[{kind:"list",key:"issueMeta",name:"Issue line",flat:!0,parts:[ei("lead","rest",NG)]}]}]},{kind:"group",name:"Bottom",props:{...L,direction:"row",align:"start",justify:"between",gap:60,gapPhone:16,share:"content",sectionBorder:LF,sectionPaddingTop:32},parts:[{kind:"text",key:"lead",props:{...U,maxWidth:720,...BF},style:{textStyle:"body-1",fontRole:"heading3",...W("headingSmall",20),lineHeight:1.5,letterSpacing:-.005,paragraphSpacing:16}},{kind:"group",name:"In this issue",props:{...L,align:"stretch",gap:0},parts:[ZI("Heading",6,6,{kind:"text",key:"issueHeading",props:{...U,align:"right",..._a},style:{textStyle:"body-1",fontRole:"heading",...W("body",18),weight:400,letterSpacing:-.01,lineHeight:1.9,...Ql}}),{kind:"group",name:"Lines",props:{...L,align:"stretch",gap:0},parts:[{kind:"list",key:"issueList",name:"Line",flat:!0,parts:[EF("text",{color:"labels",...FF})]}]},EF("issueTotal",FF)]}]}],drop:{...X,...ae}}),XI={color:"labels",...W("label",13),letterSpacing:.2},DF=e=>(Array.isArray(e.items)?e.items:[]).filter(o=>o&&typeof o.label=="string"&&o.label.trim()!==""),JI=(e,o)=>o!==void 0&&DF(e).at(-1)===o,NF=(e,o)=>o!==void 0&&DF(e).includes(o),HG=(e,o)=>NF(e,o)&&!JI(e,o)&&Me(o?.href),WG=()=>({name:"Breadcrumb",skip:e=>Me(e.meta)?'a trailing note after "\xB7" needs a second mark; none live':void 0,boxProps:e=>({...Y,...ma,wrap:"wrap",gap:16,gapPhone:16,separator:"slash",sectionBorder:{bottom:1},...ne(e,gl)}),box:[...J,...fe(gl)],parts:[{kind:"list",key:"items",name:"Crumb",flat:!0,parts:[{kind:"button",key:"label",href:"href",variant:"ghost",when:HG,props:{...ao,...Fa,icon:"none"},style:XI},{...ce("label",XI),when:(e,o)=>NF(e,o)&&!JI(e,o)&&!Me(o?.href)},{...ce("label",{...XI,color:"text"}),when:JI}]}],drop:{...X,...ae,meta:"a node that stores a note is skipped (`skip`); an empty one draws nothing",...dp}}),MF={DocMasthead:DG(),Masthead:MG(),Breadcrumb:WG()};import{BLOCK_WIDTH_LIMIT as zG,hiddenKeyOf as UG}from"efficient-easel/draw";import{readHidable as QI}from"efficient-easel/draw";function $G(e,o,t){return e||(t?.isEditing?c(o):void 0)}function Aye(e,o,t){let r=Array.isArray(e)?e:[];return r.length?r:t?.isEditing?o:[]}function HF(e,o,t){let r=QI(e);if(!r.hidden)return $G(r.text,o,t)}function WF(e){if(e==null)return;let o=QI(e);return o.hidden?"":o.text}function Fye(e,o,t){return QI(e).hidden?"":HF(e,o,t)}function Bye(e,o,t){return{text:HF(e,je.text,t),href:o||je.href}}var jF="MenuBlock",eg=e=>(Array.isArray(e)?e:[]).filter(o=>o&&Me(o.label)),$F=e=>{let[o,t]=[e.metaLabel,e.metaValue].map(a=>(WF(a)??"").trim());if(!t)return o;let r=t.includes("==")?t:`==${t}==`;return o?`${o} ${r}`:r},zF={top:0,bottom:0,topPhone:0,bottomPhone:0},jG={...Bo,color:"labels",...W("label",12),letterSpacing:.24},GG={kind:"group",name:"Note",props:{...L,justify:"center",sectionBorder:{top:0,right:0,bottom:0,left:1},sectionPaddingLeft:28,[UG("mobile")]:!0},parts:[{kind:"block",type:"Text",when:e=>$F(e)!=="",props:e=>({...U,textFit:"line",text:$F(e),[Sv]:{text:jG}})}]},GF=()=>({tabs:[],metaLabel:Oe.label,metaValue:Oe.value}),UF="the note Text inside the Box (the label, then the value in the accent); no words, no Text",KF={direction:"row",menuStyle:"tabs",currentPage:!0,minWidth:zG.min},qF=e=>({...e,boxProps:o=>({...Y,direction:"row",align:"stretch",justify:"between",gap:0,stickTop:!0,[Sn]:0,[Qs]:!0,sectionBorder:{bottom:1},...ne(o,zF)}),box:[...J,...fe(zF)]}),KG=()=>qF({name:"Tab Bar",skip:e=>eg(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:jF,props:KF},GG],drop:{...X,...ae,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"}}),qG=()=>qF({name:"Category Bar",skip:e=>{if(eg(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(eg(e.links).length)return"its right-hand links are typed words: the bar holds the Menu only"},parts:[{kind:"block",type:jF,props:{...KF,[to]:rb}}],drop:{...X,...ae,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"}}),VF={DocTabs:KG(),CategoryBar:qG()};import{jsx as Na,jsxs as og}from"react/jsx-runtime";import{slugify as o8}from"efficient-shell/format";import{jsx as Up,jsxs as ZF}from"react/jsx-runtime";import{jsx as VG}from"react/jsx-runtime";import{useEffect as YG,useRef as XG}from"react";var YF="data-current",ZG=1/3,JG=2;function QG(e,o,t=!1){if(t&&e.length)return e[e.length-1].anchor;let r=null;for(let a of e)a.top<=o&&(!r||a.top>r.top)&&(r=a);return r?.anchor??null}function e8(e,o,t=!1){let r=Array.from(e.querySelectorAll("a[href^='#']")),a=l=>{try{return decodeURIComponent((l.getAttribute("href")??"").slice(1))}catch{return""}},n=r.flatMap(l=>{let i=a(l),d=i?e.ownerDocument.getElementById(i):null;return d?[{anchor:i,top:d.getBoundingClientRect().top}]:[]}),s=QG(n,o,t);for(let l of r)s!==null&&a(l)===s?(l.setAttribute(YF,""),l.setAttribute("aria-current","location")):(l.removeAttribute(YF),l.removeAttribute("aria-current"))}function XF(){let e=XG(null);return YG(()=>{let o=e.current?.parentElement;if(!o)return;let t=0,r=()=>{t=0;let n=document.documentElement,s=window.scrollY>0&&window.scrollY+window.innerHeight>=n.scrollHeight-JG;e8(o,window.innerHeight*ZG,s)},a=()=>{t||(t=requestAnimationFrame(r))};return r(),window.addEventListener("scroll",a,{passive:!0}),window.addEventListener("resize",a),()=>{window.removeEventListener("scroll",a),window.removeEventListener("resize",a),t&&cancelAnimationFrame(t)}},[]),VG("span",{ref:e,hidden:!0})}var Vye="sticky top-[120px]";var zp={entry:{label:"Entry",follows:"Labels",builtIn:"13px",writable:!0},number:{label:"Entry number",follows:"Labels",builtIn:"13px",writable:!0}};var JF=(e,o)=>e?{[ra]:o}:{},QF=(e,o)=>xw(e?.[$s(o)]?.role,zp[o],yb),eB=120;function oB({title:e,entries:o,stickyTop:t,sticky:r=!0,editing:a=!1,partStyles:n,numberForm:s=Yx,takesViewHide:l=!1,markCurrent:i=!1}){let d=s==="plain",f=ot(),x=l?f:kr;return x.scope(ZF("aside",{className:Co(`${r?"sticky ":""}flex flex-col self-start max-[900px]:static`,x.className),style:r?{top:t}:void 0,...x.attrs,children:[e&&Up("h4",{className:"mb-[18px] font-mono text-[length:var(--size-label,12px)] uppercase tracking-[0.3em] text-accent",children:Ve(e)}),o.map((u,h)=>{let I=Up("span",{...JF(a,"number"),style:QF(n,"number"),className:"text-accent",children:$f(s,h)});return ZF("a",{href:`#${u.anchor}`,className:`flex items-center ${d?"justify-start gap-1":"justify-between gap-3"} border-b border-line py-2.5 font-mono text-[length:var(--size-label,13px)] uppercase tracking-[0.18em] text-fg-dim transition-colors hover:text-fg${h===0?" border-t":""}${i?" data-[current]:text-fg":""}`,children:[d&&I,Up("span",{...JF(a,"entry"),style:QF(n,"entry"),children:Ve(u.label||"Section")}),!d&&I]},`${h}-${u.anchor}`)}),i&&!a&&Up(XF,{})]}))}function tB(e){let o=new Set;return e.map(t=>{if(!t)return"";let r=t,a=2;for(;o.has(r);)r=`${t}-${a++}`;return o.add(r),r})}function t8(e,o){return o8(e)||`section-${o+1}`}var tg=e=>typeof e=="string"&&e.trim()!=="";function rg(e){return(e??[]).filter(o=>tg(o.heading)||tg(o.label)||tg(o.body))}function ag(e){return tB(e.map((o,t)=>t8(o.label||o.heading||"",t)))}function ng(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=ud(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 r8=()=>[{label:c("First section"),heading:c("Your *first* section."),body:c(`Write the opening paragraph here.
|
|
327
|
-
|
|
328
|
-
- Start a line with a dash for a bullet.
|
|
329
|
-
- Add as many as you like.`)},{label:c("Second section"),heading:c("Your *second* section."),body:c("Leave a blank line between paragraphs to start a new one.")}],a8=eB;function SSe({tocTitle:e,sections:o,editing:t=!1,stickyTop:r=a8,pad:a}){let n=vt(),s=rg(o);if(s.length===0&&!t)return null;let l=s.length===0&&t?r8():s,i=ag(l);return Na(de,{as:"section",className:"relative z-[2] bg-bg",children:og("div",{...iO(Jo("mx-auto grid max-w-[var(--sf-site-width,1600px)] grid-cols-[240px_1fr] items-start gap-20 border-b border-line px-[var(--sf-site-gutter,40px)] py-20 max-[900px]:grid-cols-1 max-[900px]:gap-10 max-[900px]:px-[min(24px,var(--sf-site-gutter,40px))] max-[900px]:py-[60px]",n),a),children:[Na(oB,{title:e,entries:l.map((d,f)=>({label:d.label||"Section",anchor:i[f]})),stickyTop:r}),Na("div",{className:"flex flex-col gap-16",children:l.map((d,f)=>og("article",{id:i[f],className:"flex flex-col gap-[18px]",style:{scrollMarginTop:r},children:[og("span",{className:"font-mono text-[length:var(--size-label,12px)] uppercase tracking-[0.3em] text-accent",children:[Vx(f)," \xB7 ",Ve(d.label||"Section")]}),d.heading&&Na("h2",{className:"mb-2 border-b border-line pb-[18px] font-heading2 text-[length:min(var(--size-headingMedium,clamp(28px,3.5vw,44px)),var(--sf-heading-max,9999px))] font-medium uppercase leading-[1.04] tracking-[-0.025em]",children:Ve(d.heading)}),ng(d.body??"").map((x,u)=>x.type==="ul"?Na("ul",{className:"flex max-w-[680px] list-none flex-col gap-2.5 pl-0",children:x.items.map((h,I)=>Na("li",{className:"relative pl-6 font-serif text-[length:var(--size-body,17px)] leading-[1.65] text-fg-dim before:absolute before:-top-0.5 before:left-1.5 before:text-[length:var(--size-body,24px)] before:leading-none before:text-accent before:content-['\xB7']",children:Ve(h)},I))},u):Na("p",{className:"max-w-[680px] font-serif text-[length:var(--size-body,17px)] leading-[1.7] text-fg-dim",children:Ve(x.text)},u))]},i[f]))})]})})}var rB=18,aB=18,nB=8,n8=10,sg=e=>typeof e=="string"&&e.trim()!=="",sB=e=>rg(e.sections),s8=e=>ng(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}),lg={...bt(12),letterSpacing:.3,color:"accent",lineHeight:1.5},lB={textStyle:"body-1",fontRole:"accent",...W("body",17)},l8=[ce("label",lg),{...ce("title",lg),when:(e,o)=>!sg(o?.label)},{kind:"block",type:"Text",when:(e,o)=>!sg(o?.label)&&!sg(o?.title),props:{...U,text:"Section",_partStyles:{text:lg}}},{kind:"group",name:"Heading",props:{...L,sectionPaddingBottom:nB,sectionPaddingBottomPhone:nB},parts:[{kind:"group",name:"Heading line",props:{...L,sectionBorder:{bottom:1},sectionPaddingBottom:aB,sectionPaddingBottomPhone:aB},parts:[{kind:"text",key:"heading",role:"heading",props:U,style:{textStyle:"heading-2",...Wo("headingMedium",28,3.5,44),case:"upper",weight:500,lineHeight:1.04,letterSpacing:-.025}}]}]},{kind:"list",key:"body",name:"Body",flat:!0,of:s8,parts:[{kind:"text",key:"text",props:re,style:{...lB,lineHeight:1.7},when:(e,o)=>o?.kind==="p"},{kind:"text",key:"text",props:re,style:{...lB,lineHeight:1.65,paragraphSpacing:n8},when:(e,o)=>o?.kind==="ul"}]}],i8=900,d8={name:"Document Text",boxProps:e=>({...Y,direction:"row",gap:80,gapPhone:40,[gp]:i8,sectionBorder:{bottom:1},...ne(e,dc)}),box:["anchor","sectionAccent",...br,...vn,...Object.values(Eo),...fe(dc)],parts:[{kind:"block",type:"Contents",props:e=>({title:e.tocTitle??"",sticky:!0,widthFit:"fixed",width:240,widthFitPhone:"fill"})},{kind:"group",name:"Sections",props:{...L,gap:64,gapPhone:64,widthFit:"fill"},parts:[{kind:"list",key:"sections",name:"Section",of:e=>sB(e),props:{...L,gap:rB,gapPhone:rB},item:(e,o,t)=>({props:{anchor:ag(sB(t))[o]??`section-${o+1}`}}),parts:l8}]}],reads:{tocTitle:"the Contents block's Heading"},drop:{...X,stickyTop:"the Contents block draws DocBody's default (120px); 0 live nodes store it"}},iB={DocBody:d8};import{phoneKey as u8}from"efficient-easel/draw";import{SITE_SIDE as m8}from"efficient-easel/screen/lib/content/length-units";var FSe={eyebrow:"\u2014 Label",title:`Section headline *here.*
|
|
331
|
-
*Highlight line*`,body:"Describe this section in a sentence or two."},BSe={text:"Learn more"},LSe={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 ig(e){return typeof e=="number"&&Number.isFinite(e)?Math.min(Math.max(e,0),100):40}import{parseOption as f8}from"efficient-shell/format";var dB="[--intro-edge:60px] max-[960px]:[--intro-edge:24px]",c8="overlay",p8=[{label:"Copy over image",value:"overlay"},{label:"Copy above image",value:"stacked"}];function jp(e){return f8(p8,c8,e)}var NSe={desktop:40,mobile:45,min:20,max:80,step:5};function MSe(e,o){return`${typeof e=="number"?e:o}%`}import{parseOption as x8}from"efficient-shell/format";var fB=(e,o,t)=>{let r=Ie(e),a=Ie(o),n=(s,l)=>l&&l!=="px"?{[s]:l}:{};return{...r===void 0?{}:{size:r,...n(nl.size,t?.desktop)},...a===void 0?{}:{sizePhone:a,...n(nl.sizePhone,t?.phone)}}},h8=e=>jp(e.layout)==="stacked",cB=e=>Math.min(Math.max(Ie(e.overlay)??60,0),100),Gp=e=>Ie(e)??100,I8={textStyle:"heading-1",sizeToken:{...Wo("headingLarge",48,7,96).sizeToken,pxPhone:36},weight:500,lineHeight:.95,letterSpacing:-.03},g8=[ce("eyebrow",W("label",14)),...[!0,!1].map(e=>({kind:"text",key:"title",role:"heading",props:U,style:{...I8,case:e?"upper":"none"},styleFrom:o=>{let t=kx(o);return fB(o.titleSizeDesktop,o.titleSizeMobile,{desktop:t.titleDesktop,phone:t.titleMobile})},when:o=>o.uppercase===!0===e})),{kind:"text",key:"body",props:{...re,maxWidth:560},style:{textStyle:"body-1",...W("body",17,16),lineHeight:1.6,paragraphSpacing:24},styleFrom:e=>{let o=kx(e);return fB(e.bodySizeDesktop,e.bodySizeMobile,{desktop:o.bodyDesktop,phone:o.bodyMobile})}},{kind:"group",name:"Button",props:{...L,align:"start",sectionPaddingTop:8,sectionPaddingTopPhone:8},parts:[{kind:"button",key:"ctaText",href:"ctaHref",variant:"primary",props:ao}]}],pB=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)`,y8=()=>({name:"Scroll-Over Text",skip:e=>h8(e)?"the stacked layout: its words row's height floor (`copyShare*`) and the header subtraction have no Box setting; 0 live US nodes":void 0,boxProps:e=>({...Y,direction:"column",justify:"center",align:"start",gap:24,gapPhone:24,share:"content",...oi,placement:"left",darken:cB(e),darkenStyle:"even",sectionHeightMode:"fixed",sectionHeightUnit:"%",sectionHeightValue:Gp(e.heightDesktop),sectionHeightModePhone:"fixed",sectionHeightUnitPhone:"%",sectionHeightValuePhone:Gp(e.heightMobile),[qd]:fk}),box:[...J.filter(e=>!String(typeof e=="string"?e:e[0]).startsWith("sectionHeight")),["imageSrc","bgImage"],["imageSrcMobile","bgImagePhone"],["overlay","darken",(e,o)=>cB(o)],["heightDesktop","sectionHeightValue",e=>Gp(e)],["heightMobile","sectionHeightValuePhone",e=>Gp(e)]],parts:g8,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(xP.map(e=>[e,"read by its part's `styleFrom`: the unit of that view's Size"])),buttonColor:pB("Button color"),buttonTextColor:pB("Button text color"),...X}}),xB={textStyle:"heading-2",...W("headingMedium",56,36),weight:400,lineHeight:1.05,letterSpacing:-.03},S8={textStyle:"body-1",...W("body",16),lineHeight:1.7},hB=e=>({kind:"text",key:"body",props:{...re,maxWidth:520},style:{...S8,paragraphSpacing:e}}),qp={top:0,bottom:0,topPhone:0,bottomPhone:0},dg=(e,o)=>typeof e.sectionHeightMode=="string"&&e.sectionHeightMode!=="auto"?{}:{sectionHeightMode:"fixed",sectionHeightUnit:"%",sectionHeightValue:o,sectionHeightModePhone:"auto"},b8=(e,o)=>{let t=dg(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"}},IB={boxShapePhone:"landscape"},gB="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)",w8=(e,o)=>({[e]:o,[u8(e)]:o}),C8={textStyle:"heading-2",...W("headingMedium",40),weight:500,case:"none",lineHeight:1,letterSpacing:-.02},uB=e=>(Array.isArray(e.stats)?e.stats:[]).filter(o=>o&&(String(o.value??"").trim()!==""||String(o.label??"").trim()!=="")),k8=()=>({name:"Brand Text",boxProps:(e,o)=>({...Y,...Mo("background")(e,o),direction:"row",share:"equal",gap:0,gapPhone:0,sectionBorder:{top:1,bottom:1},...ne(e,qp),...dg(e,100)}),box:[...J,...fe(qp)],parts:[{kind:"group",name:"Words",props:()=>({...L,justify:"center",gap:28,gapPhone:28,sectionBorder:ti({right:1}),sectionBorderPhone:ti({}),...oi,sectionPaddingTop:100,sectionPaddingBottom:100,sectionPaddingTopPhone:60,sectionPaddingBottomPhone:60,sectionPaddingRight:m8}),parts:[ce("eyebrow",W("label",14)),{kind:"text",key:"heading",role:"heading",props:U,style:{...xB,case:"none"},mark:"accentItalic"},hB(28),{kind:"group",name:"Stats",props:{...L,sectionPaddingTop:16,sectionPaddingTopPhone:16},parts:[{kind:"group",name:"Figures",props:e=>({...L,direction:"row",share:"equal",gap:24,gapPhone:24,maxWidth:520,phoneRow:Math.min(Math.max(uB(e).length,1),3),...w8("sectionBorder",ti({top:1})),sectionPaddingTop:28,sectionPaddingTopPhone:28}),parts:[{kind:"list",key:"stats",name:"Stat",of:uB,props:{...L,gap:4,gapPhone:4},parts:[{kind:"text",key:"value",props:Aa,style:C8},ce("label",{...W("label",13),color:"labels",letterSpacing:.2})]}]}]}]},cI("Picture","imageSrc",IB)],drop:{...X,grayscale:gB,...ae}}),Kp=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}},v8=e=>e.textAlign==="center"||e.textAlign==="right"?Id[e.textAlign]:"stretch",P8=e=>Math.min(Math.max(Ie(e.overlay)??60,0),100),yB=e=>typeof e=="string"&&e.trim()!=="",T8={...ao,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},mB=e=>({...cI("Picture","imageSrc",(o,t)=>({...yB(o.imageSrc)&&ig(o.imageOverlay)>0?{darken:ig(o.imageOverlay),darkenStyle:"even"}:{},placement:"center",...IB,sectionBorder:ti(e?{left:1}:{right:1}),...SB(e?"left":"right",es(t))}),[{kind:"button",key:"imageBtnText",href:"imageBtnHref",variant:"ghost",props:T8,style:{...bt(13,12),letterSpacing:.18}}]),when:o=>o.reverse===!0===e}),SB=(e,o)=>{let t=Math.max(60-o,0);return{sectionPaddingLeft:e==="left"?60:t,sectionPaddingRight:e==="right"?60:t}},O8={kind:"group",name:"Words",props:(e,o)=>{let t=e.reverse===!0;return{...L,justify:"center",align:v8(e),placement:x8(["left","center","right"],"left",e.textAlign),...b8(e,72),gap:24,gapPhone:24,...yB(e.textBgSrc)?{darken:P8(e),darkenStyle:"even"}:{},...oi,sectionPaddingTop:100,sectionPaddingBottom:100,...SB(t?"right":"left",es(o)),sectionPaddingTopPhone:60,sectionPaddingBottomPhone:60}},box:[["textBgSrc","bgImage"]],parts:[{...ce("eyebrow",W("label",14)),styleFrom:Kp},{kind:"text",key:"title",role:"heading",props:U,style:xB,styleFrom:e=>({case:e.uppercase===!0?"upper":"none",...Kp(e)})},{...hB(24),styleFrom:Kp},{kind:"group",name:"Button",props:{...L,sectionPaddingTop:8,sectionPaddingTopPhone:8},parts:[{kind:"button",key:"ctaText",href:"ctaHref",variant:"primary",props:e=>{let o=Kp(e);return{...ao,...o.align?{align:o.align}:{},...o.alignPhone?{alignPhone:o.alignPhone}:{}}}}]}]},E8=()=>({name:"Image & Text Split",boxProps:(e,o)=>({...Y,...Mo("background")(e,o),direction:"row",share:"equal",gap:0,gapPhone:0,sectionBorder:{top:1,bottom:1},...ne(e,qp),...dg(e,72)}),box:[...J,...fe(qp)],parts:[mB(!1),O8,mB(!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:gB,...X,...ae}}),bB={IntroBleed:y8(),Manifesto:k8(),Split:E8()};var kB={headPlacement:void 0},wB={top:0,bottom:0,topPhone:0,bottomPhone:0},_8=()=>({name:"Form",ownBoxConverts:!0,boxProps:e=>({...Y,direction:"column",...ne(e,wB)}),box:[...J,...fe(wB)],parts:[{kind:"core",keep:"rest",props:kB}],drop:{...X,...ae}}),CB={top:120,bottom:120,topPhone:60,bottomPhone:60},A8=()=>({name:"Photo Submission Form",boxProps:e=>({...Y,direction:"column",gap:24,...ne(e,CB)}),box:[...J,...fe(CB)],parts:[ce("eyebrow"),{kind:"text",key:"title",role:"heading",props:U,style:{textStyle:"heading-2"},mark:"accentItalic"},{kind:"text",key:"body",role:"body",props:re},{kind:"core",as:"Form",keep:["formSlug"],rename:{buttonText:"submitText",consent:"finePrint"},props:kB}],skip:e=>e.layout==="boxes"?`its words are in its two SubmitBox regions (layout "boxes"); this row reads only the section's own words`:void 0,drop:{...X,...ae,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'}}),vB={Form:_8(),SubmitBuild:A8()};import{phoneKey as PB}from"efficient-easel/draw";var OB=1.5,TB={textStyle:"body-1",...W("body",15),lineHeight:OB},F8={...Bo,...W("label",12),letterSpacing:.12,lineHeight:OB},EB=()=>({type:K,props:{...L,direction:"row",justify:"between",align:"start",gap:16,gapPhone:16,share:"content",phoneRow:2,[PB("share")]:"content",[PB("wrap")]:"nowrap",...wo(12,0),sectionBorder:{top:1},name:"Item"},slots:{[we]:[{type:K,props:{...L,gap:0,gapPhone:0,name:"Item words"},slots:{[we]:[Fe("label",{...U,tag:"p"},TB),Fe("meta",{...re,tag:"p"},F8)]}},Fe("amount",{...U,tag:"p"},TB)]}});var B8=()=>({name:"Order Table",boxProps:()=>({...Y,direction:"column"}),box:[...J],parts:[{kind:"core",keep:"rest",headless:!0,slots:{[Pe]:[EB()]}}],drop:{...X}}),_B={OrderSummary:B8()};import{phoneKey as L8}from"efficient-easel/draw";var cbe={eyebrow:"By the numbers",title:`A picture worth
|
|
332
|
-
*a thousand rows.*`},AB=["eyebrow","title","body","caption"],pbe={label:"Chart",defaultProps:{eyebrow:"",title:"",body:"",items:[],caption:"",chartStyle:"bars",valueSuffix:""}};var FB=["eyebrow","title","body"],mbe={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 RB=()=>({kind:"group",name:"Words",props:{...L,gap:20,gapPhone:20},parts:[{kind:"group",name:"Chip row",props:{...L,direction:"row",phoneRow:2,[L8("share")]:"content"},parts:[Zn("eyebrow")]},{kind:"text",key:"title",role:"heading",props:U,style:{textStyle:"heading-2",...W("headingMedium",44,32),weight:500,case:"upper",lineHeight:1.04,letterSpacing:-.02}},{kind:"text",key:"body",props:{...re,maxWidth:435},style:yd(16)}]}),DB=e=>(o,t)=>({...Y,sectionAccent:Qn(o.sectionAccent??0,t),direction:"row",align:"center",gap:56,gapPhone:56,share:e,sectionBorder:{top:1,bottom:1},...ne(o,Cl)}),NB=[...J.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,t)=>Qn(e,t)],...fe(Cl)],R8=()=>({name:"Chart",boxProps:DB([42]),box:NB,parts:[RB(),{kind:"group",name:"Chart",props:{...L,gap:16,gapPhone:16},keepEmpty:!0,parts:[{kind:"core",keep:"rest",props:Xn},ce("caption",{color:"muted",...W("label",10),letterSpacing:.14})]}],pressKeepsEmpty:[...AB],drop:{...X,...ae}}),BB=e=>e.align==="left",LB={kind:"group",name:"Card",keepEmpty:!0,props:L,parts:[{kind:"core",keep:"rest",props:Xn}]},D8=()=>({name:"Mockup Card",boxProps:DB("equal"),box:NB,parts:[{...LB,when:BB},RB(),{...LB,when:e=>!BB(e)}],pressKeepsEmpty:[...FB],drop:{...X,...ae}}),MB={Chart:R8(),Mockup:D8()};import{phoneKey as M8}from"efficient-easel/draw";function HB(e,o=3){let t=Array.from({length:o},()=>[]);return e.forEach((r,a)=>t[a%o].push(r)),t}function WB(e){return Math.max(e*6,30)}var H8=e=>(Array.isArray(e.apps)?e.apps:[]).map(o=>o&&typeof o=="object"&&typeof o.text=="string"?o.text.trim():"").filter(Boolean),fg=e=>HB(H8(e)),W8=e=>Fp({loopDuration:WB(e)}),$8={kind:"group",name:"Header",props:{...L,align:"center",gap:20,gapPhone:20},parts:[{kind:"group",name:"Chip row",props:{...L,direction:"row",justify:"center",phoneRow:2,[M8("share")]:"content"},parts:[Zn("eyebrow")]},{kind:"text",key:"title",role:"heading",props:{...U,align:"center"},style:{textStyle:"heading-2",...W("headingMedium",40,30),weight:500,case:"upper",lineHeight:1.04,letterSpacing:-.02}},{kind:"text",key:"body",props:{...re,align:"center",maxWidth:568},style:yd(16)}]},z8=e=>({kind:"group",name:`Row ${e+1}`,when:o=>fg(o)[e].length>0,props:o=>({...L,direction:"row",gap:12,gapPhone:12,loop:"scroll",...e%2===1?{scrollDirection:"right"}:{},loopDuration:W8(fg(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=>fg(o)[e].map(t=>({alt:t})),parts:[{kind:"block",type:"LogoBlock",box:["alt"]}]}]}]}),U8={kind:"group",name:"Stat",props:{...L,align:"center",gap:16,gapPhone:16},parts:[{kind:"group",name:"Figure",props:{...L,align:"center",gap:8,gapPhone:8},parts:[{kind:"text",key:"statValue",props:{...U,align:"center"},style:{textStyle:"heading-1",...W("headingLarge",64,46),weight:500,case:"upper",lineHeight:1,color:"accent"}},{kind:"text",key:"statLabel",props:{...U,align:"center"},style:{textStyle:"heading-3",...W("headingSmall",18),weight:500,case:"upper",letterSpacing:.06}}]},{kind:"text",key:"note",props:{...U,align:"center",maxWidth:428},style:{textStyle:"body-1",...W("label",14),lineHeight:1.625,color:"muted"}}]},j8=[...J.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,t)=>Qn(e,t)],...fe(uc)],G8={name:"Integrations",boxProps:(e,o)=>({...Y,sectionAccent:Qn(e.sectionAccent??0,o),direction:"column",gap:48,gapPhone:48,sectionBorder:{top:1,bottom:1},...ne(e,uc)}),box:j8,parts:[$8,{kind:"group",name:"Rows",props:{...L,gap:12,gapPhone:12},parts:Array.from({length:3},(e,o)=>z8(o))},U8],pressKeepsEmpty:["body","statValue","statLabel","note"],reads:{apps:"a Logo block per app, dealt into the three Rows"},drop:{...X,...ae}},$B={Integrations:G8},zB=()=>({eyebrow:c("Integrations"),title:c(`Plays well with
|
|
333
|
-
*your favourite apps.*`),apps:["Shopify","Xero","Stripe","Mailchimp","Zapier","HubSpot","QuickBooks","PayPal","Google Analytics"].map(e=>({text:e}))});var K8={title:"Back online in",zeroText:"Almost done. Back very soon."},UB=["title"],Fbe={label:"Countdown",defaultProps:{...K8,endsAt:"",showUnits:!0}};var q8={...ce("title",{...sw(12),color:"muted"}),props:{...U,align:"center"}},V8=()=>({name:"Countdown",boxProps:e=>({...Y,direction:"column",align:"center",gap:16,gapPhone:16,...ne(e,ic)}),box:[...J,...fe(ic)],parts:[q8,{kind:"core",keep:"rest",props:Xn}],pressKeepsEmpty:[...UB],drop:{...X,...ae}}),Y8=()=>({name:"Feature Banner",boxProps:e=>({...Y,direction:"column",sectionBorder:{bottom:1},...ne(e,pc)}),box:[...J,...fe(pc)],parts:[{kind:"core",keep:"rest",props:Xn}],drop:{...X,...ae}}),jB={Countdown:V8(),FeaturedCover:Y8()};var GB={top:80,bottom:80,topPhone:60,bottomPhone:60},X8=()=>{let e=kp("FitmentFinder");return{name:"Fitment Form",boxProps:o=>({...Y,direction:"column",gap:ri[Ra("FitmentFinder")],...ne(o,GB)}),box:[...J,...fe(GB)],parts:[lt("FitmentFinder"),{kind:"block",type:"FitmentPicker"},{kind:"block",type:"StockFitment"},{kind:"button",key:"ctaText",href:"ctaHref"}],skip:o=>o.layout==="bar"?"the one-row shape goes to the shop on the fourth pick and draws no head; the Fitment picker block never leaves the page":void 0,...Object.keys(e).length?{reads:e}:{},drop:{...X,...ae,layout:'the section shape; "bar" is skipped (above), so here it is the stacked shape this Box draws'}}},KB={FitmentFinder:X8()};var Vp={eyebrow:"Label",title:"Section *heading.*",body:"Add this section's copy here. A blank line starts a new paragraph."},zbe={label:"Editorial Text",defaultProps:{eyebrow:"",title:"",body:"",topBorder:!0}};var ui={eyebrow:Oe.eyebrow,lead:"Introduce your company in a paragraph or two.",foundersHeading:"Add a short heading.",foundersBody:"Add a short statement here \u2014 a sentence or two is plenty.",attribution:"\u2014 Name, Year"},Gbe={label:"Lead Text",defaultProps:{eyebrow:"",lead:"",stats:[],foundersHeading:"",foundersBody:"",attribution:"",padTop:60,padBottom:80}};var qB={eyebrow:"Limited release",title:"Banner headline",body:"A line or two of supporting copy."},qbe={label:"Banner",drawsPictures:!0,defaultProps:{eyebrow:"",title:"",body:"",imageSrc:"",ctaText:"",ctaHref:"",contained:!0,overlay:60}};var VB={title:`Section heading
|
|
334
|
-
*Highlight line*`},YB=[{label:je.text,href:je.href,variant:"primary"},{label:je.text,href:je.href,variant:"outline"}],Xbe={label:"Call-to-Action Heading",defaultProps:{title:"",buttons:[],padTop:140,padBottom:140}};var pr={num:"01 / Section",title:"Section *title*",description:"Short supporting line",linkText:Oe.viewAll},owe={label:"Section Header",drawsPictures:!0,defaultProps:{headStyle:ec,num:pr.num,numStyle:Pl,title:pr.title,description:"",logoSrc:"",logoAlt:"",linkText:"",linkHref:""}};var Yp={eyebrow:"\u2014 Label",title:`Section headline
|
|
335
|
-
*Highlight line*`,body:"A sentence or two of supporting copy."},nwe={label:"Scroll-Over Text",drawsPictures:!0,defaultProps:{eyebrow:"",title:"",body:"",imageSrc:"",imageSrcMobile:"",heightDesktop:100,heightMobile:100,overlay:60,titleSizeDesktop:il,bodySizeDesktop:il,titleSizeMobile:il,bodySizeMobile:il,ctaText:"",ctaHref:"",buttonColor:"",buttonTextColor:"",stickTop:!0,[Sn]:0,uppercase:!1}};var Z8={name:"Editorial Text",boxProps:e=>({...Y,direction:"column",gap:28,gapPhone:28,sectionBorder:{top:1},...ne(e,xc)}),box:[["topBorder","sectionBorder",e=>e===!1?void 0:{top:1}],...J,...fe(xc)],parts:[lt("Prose"),{kind:"text",key:"body",props:re,style:{textStyle:"body-1",...W("body",16),lineHeight:1.7,paragraphSpacing:18}}],drop:{...X,...ae,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)"}},ZB={buttonPaddingTop:20,buttonPaddingBottom:20,buttonPaddingLeft:28,buttonPaddingRight:28},JB=(e,o)=>o?.variant==="primary",QB=(e,o)=>({kind:"list",key:"buttons",name:"Button",flat:!0,when:e,parts:[{kind:"button",key:"label",href:"href",when:JB,variant:"primary",style:{letterSpacing:.3},props:{...ao,...ZB,...o}},{kind:"button",key:"label",href:"href",when:(t,r)=>!JB(t,r),variant:"ghost",style:{letterSpacing:.3},props:{...ao,...ZB,...o}}]}),Xp=e=>Me(e.title),J8={name:"Call-to-Action Heading",boxProps:e=>({...Y,direction:"row",align:"center",justify:Xp(e)?"between":"end",gap:60,gapPhone:60,share:"content",sectionBorder:{bottom:1},...st(e,"TitleWithButtons")}),box:[...J,...Mr("TitleWithButtons")],parts:[{kind:"group",name:"Title",props:{...L,maxWidth:1e3,widthFitPhone:"fill"},parts:[{kind:"text",key:"title",role:"heading",props:U,style:{textStyle:"heading-1",...Wo("headingLarge",48,7,108),case:"upper",lineHeight:.94,letterSpacing:-.035},mark:"accentItalic"}]},{kind:"group",name:"Buttons",props:e=>({...L,gap:14,gapPhone:14,widthFitPhone:"fill",...Xp(e)?{minWidth:280,minWidthPhone:0}:{}}),parts:[QB(Xp,{widthFit:"fill",iconPosition:"end"}),QB(e=>!Xp(e),{})]}],drop:{...X,buttonsAlign:"moves the buttons only when there is no heading (4 of 128 live nodes), where the Box puts them at the end. 0 of 128 live nodes store it (the live export, 2026-10-24)",buttonsAlignPhone:"the phone's own side of `buttonsAlign`, read only with no heading; no old node stores it (it is new with the Phone view's Block alignment row), so nothing moves",buttonsAlignTablet:"the tablet's own side of `buttonsAlign`, read only with no heading; no old node stores it (it is new with the Tablet view's Block alignment row, 0 stored on the US sites 2026-11-05), so nothing moves"}};function Q8(e,o){let t=es(o,{to:gr(e.sectionPaddingUnitTablet??e.sectionPaddingUnit)}),r=es(o,{view:"phone",to:gr(e.sectionPaddingUnitPhone),maxPx:20});return{sectionPaddingLeft:XB,sectionPaddingRight:XB,sectionPaddingLeftTablet:t,sectionPaddingRightTablet:t,sectionPaddingLeftPhone:r,sectionPaddingRightPhone:r}}var eK={name:"Section Header",boxProps:(e,o)=>({...Y,direction:"column",gap:0,...ne(e,hc),...Q8(e,o)}),box:[...J,...fe(hc)],parts:[lt("SectionHeader")],drop:{...X,...ae,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"}},eL={...L,direction:"row",share:[67],gap:32},oL={...L,sectionPaddingLeft:24,sectionPaddingLeftPhone:0},tL=(e,o,t)=>({kind:"group",name:e,props:o,parts:[t]}),oK={name:"Lead Text",boxProps:e=>({...Y,direction:"column",gap:40,gapPhone:40,sectionBorder:{bottom:1},...st(e,"ParagraphsA")}),box:[...J,...Mr("ParagraphsA")],parts:[{kind:"group",name:"Numbers",props:{...eL,gapPhone:24,sectionBorder:{bottom:1},sectionPaddingBottom:40,sectionPaddingBottomPhone:40},parts:[{kind:"group",name:"Eyebrow",props:{...L,sectionPaddingTop:5,sectionPaddingBottom:1,sectionPaddingTopPhone:5,sectionPaddingBottomPhone:1},parts:[ce("eyebrow",{color:"labels",...W("label",12),letterSpacing:.24})]},tL("Stats column",L,{kind:"group",name:"Stats",props:{...oL,gap:0,gapPhone:0},parts:[{kind:"list",key:"stats",name:"Stat",flat:!0,parts:[ei("value","label",{...W("label",13),letterSpacing:.18,lineHeight:1.8})]}]})]},{kind:"group",name:"Words",props:{...eL,gapPhone:28},parts:[{kind:"group",name:"Lead",props:L,parts:[{kind:"group",name:"Measure",props:{...L,maxWidth:780},parts:[{kind:"text",key:"lead",props:U,style:{textStyle:"heading-3",...W("headingSmall",22,20),weight:400,case:"none",lineHeight:1.45,letterSpacing:-.005}}]}]},tL("Note column",{...L,justify:"end"},{kind:"group",name:"Founders",props:{...oL,gap:8,gapPhone:8},parts:[{kind:"group",name:"Note",props:{...L,gap:6,gapPhone:6},parts:[{kind:"text",key:"foundersHeading",props:U,style:{textStyle:"body-1",fontRole:"heading",...W("body",18,16),weight:500,letterSpacing:-.01,lineHeight:1.7}},{kind:"text",key:"foundersBody",props:re,style:{textStyle:"body-5",fontRole:"heading",...W("body",14,12),lineHeight:1.7}}]},ce("attribution",{...W("label",12,10),letterSpacing:.24,lineHeight:1.7})]})]}],drop:{...X}},tK={name:"Banner",boxProps:e=>({...Y,direction:"column",gap:0,...ne(e,rc)}),box:[...J,"contained",...fe(rc)],parts:[{kind:"group",name:"Card",keepEmpty:!0,props:{...L,gap:28,gapPhone:28,placement:"top-left",darken:60,darkenStyle:"even",sectionBorder:{width:1},...Jt("surface"),...wo(64,40,40,24)},box:[["imageSrc","bgImage"],["overlay","darken",e=>Math.min(Math.max(Ie(e)??60,0),100)]],parts:[{kind:"group",name:"Words",props:{...L,gap:20,gapPhone:20},parts:[ce("eyebrow"),{kind:"text",key:"title",role:"heading",props:{...U,maxWidth:680},style:{weight:500,lineHeight:1.05,letterSpacing:-.03,case:"none",...W("headingMedium",44,32)}},{kind:"text",key:"body",props:{...U,maxWidth:680},style:{textStyle:"body-1",lineHeight:1.6,...W("body",16)}}]},{kind:"button",key:"ctaText",href:"ctaHref",variant:"primary",props:ao}]}],drop:{...X,...ae}},cg={Prose:Z8,TitleWithButtons:J8,SectionHeader:eK,ParagraphsA:oK,Banner:tK},rL={Prose:()=>({eyebrow:Vp.eyebrow,title:kt(Vp.title),body:Vp.body}),TitleWithButtons:()=>({title:kt(VB.title),buttons:YB.map(e=>({...e}))}),SectionHeader:()=>({num:pr.num,title:kt(pr.title),description:pr.description,linkText:pr.linkText,linkHref:je.href}),ParagraphsA:()=>({eyebrow:ui.eyebrow,lead:Oe.body,foundersHeading:ui.foundersHeading,foundersBody:ui.foundersBody,attribution:ui.attribution}),Banner:()=>({...qB,ctaText:je.text,ctaHref:je.href}),ProcessSteps:()=>({num:pr.num,title:kt(pr.title)}),IntroBleed:()=>({eyebrow:Yp.eyebrow,title:kt(Yp.title),body:Yp.body,ctaText:je.text,ctaHref:je.href})};function Zp(){Qe(cg),Qe(SA),Qe(DA),Qe(cA),Qe(JA),Qe(pF),Qe(vF),Qe(OF),Qe(MF),Qe(VF),Qe(iB),Qe(bB),Qe(vB),Qe(_B),Qe(KB),Qe(MB),Qe($B),Qe(jB)}var rK=[{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=>d1(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=>c1(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})=>(Zp(),x1(e,Zl,{theme:rC(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=>N0(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=>VE(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=>qE(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=>GE(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=>z0(e)},{name:"withPageContents",chrome:!1,why:"page-only: a Contents block lists the PAGE's anchored sections and numbers their kickers",run:e=>m0(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=>QE(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=>a_(e)}];function aK(e,o,t){let r=e;for(let a of rK)(!t||a.chrome)&&(r=a.run(r,o));return r}function aL(e,o){return aK(e,{metadata:o},!1)}import{useRef as nK}from"react";import{createRenderKeep as sK}from"efficient-easel/render";function nL(){let e=nK(null);return e.current??=sK(),e.current}import{isNode as lK,isNodeList as iK}from"efficient-easel/data";import{hidableText as dK,readHidable as fK}from"efficient-easel/draw";var lL="slotCounts",pg=e=>!fK(e).hidden&&dK(e).trim()!=="",cK=e=>typeof e=="string"&&e.trim()!=="",pK={Flex:()=>!0,PostCard:()=>!0,ImageBlock:e=>cK(e.src),Text:e=>pg(e.text),Heading:e=>pg(e.text),Eyebrow:e=>pg(e.eyebrow)},uK=["widthFit","width","minWidth"],sL=e=>iK(e);function mK(e){if(Array.isArray(e.content))return sL(e.content)?e.content:null;let o=Object.values(e).filter(sL);return o.length===1?o[0]:null}function xK(e,o){return[...new Set([lb,...Object.values(z(Pw,e)??{})])].some(t=>Ht(o,t)!=="")}function hK(e){let o=e.props??{},t=z(pK,e.type);if(!t||!t(o)||xK(e.type,o)||ll(o))return!1;let r=o[Gn];if(r!=null&&r!=="")return!1;let a=ip(o);return!uK.some(n=>a[n]!==void 0)}function IK(e){let o=0;for(let t of e)if(!tr(t.props??{})){if(!hK(t))return;o+=1}return o>0?o:void 0}function gK(e){let o={},t=new Set,r=new Set,a=(n,s)=>{if(Array.isArray(n))for(let l of n){if(!lK(l))continue;let i=l.props.id;typeof i=="string"&&(t.has(i)?r:t).add(i);let d=s?null:mK(l.props);if(typeof i=="string"&&d){let f=IK(d);f!==void 0&&(o[i]=f)}for(let f of Dt(l))a(l.props[f],s||aa(l.type,f))}};a(e,!1);for(let n of r)delete o[n];return o}function iL(e,o){return{...e??{},[lL]:gK(o)}}function fCe(e){let o=e.editor?.metadata?.[lL],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 bK({config:e,data:o,metadata:t}){let r=aL(o,t),a=nL(),n=R0(e,L0(r.content)),s=Xf(r.content),l=s.length>0?{...t,[B0]:s}:t;return dL(Zf,{children:dL(SK,{config:n,metadata:iL(l,r.content),keep:a,data:r})})}var fL=yK(bK);import{jsx as $o,Fragment as T7,jsxs as nR}from"react/jsx-runtime";import{Suspense as O7,useMemo as E7}from"react";import{jsx as wK}from"react/jsx-runtime";import{createContext as CK,useCallback as kK,useContext as vK,useState as ug}from"react";var cL=CK({footerBlock:null,setFooterBlock:()=>{},headerGroup:null,setHeaderGroup:()=>{},refreshToken:0,refreshFooter:()=>{},chromeRootProps:null});function wCe({children:e,editFooter:o,chromeRootProps:t=null}){let[r,a]=ug(null),[n,s]=ug(null),[l,i]=ug(0),d=kK(()=>i(f=>f+1),[]);return wK(cL.Provider,{value:{footerBlock:r,setFooterBlock:a,headerGroup:n,setHeaderGroup:s,editFooter:o,refreshToken:l,refreshFooter:d,chromeRootProps:t},children:e})}var pL=()=>vK(cL);import{jsx as PK,jsxs as TK}from"react/jsx-runtime";import{createContext as OK,useContext as EK}from"react";var uL=OK(!1);function TCe(){return EK(uL)}function mL({grayscale:e,children:o}){let t=e===!0;return TK(uL.Provider,{value:t,children:[Object.entries(C_(e)).map(([r,a])=>PK("style",{children:a},r)),o]})}import{jsx as _K}from"react/jsx-runtime";import{createContext as AK,useContext as FK}from"react";var xL=AK(null);function ACe(){return FK(xL)}function hL({ink:e,children:o}){return _K(xL.Provider,{value:e??null,children:o})}import{parseOption as BK}from"efficient-shell/format";var IL="data-lead-ink",DCe="data-header-ink",LK=["auto","light","dark"],RK="auto";function DK(e){return e.type==="IntroBleed"?jp(e.props?.layout)!=="stacked":!0}function gL(e){let o=wf(e);return o&&SP(e)&&DK(o)?"light":null}function NCe(e){return BK(LK,RK,e)}import{useEasel as Pg}from"efficient-easel/easel";import{useEffect as VK}from"react";import{useEaselApi as YK}from"efficient-easel/easel";import{find as NK,walk as yL}from"efficient-easel/data";var MK=()=>"",HK=e=>qm(Nt([e],MK));function wL(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(HK))])),a=qm(e);return Object.keys(r).find(n=>r[n].has(a))??null}var WK=()=>({press:[os(ta),os(Ws)],delivery:[xI()]}),$K={},mg=e=>wL(e,WK,$K),zK=e=>De(e)===tb?"delivery":"press";function YCe(e,o){if(!o||De(e)===De(o))return e;let t=mg(e[Pe]),r=zK(e);if(!t||t===r)return e;let a=zm(e,ro),n=r==="delivery"?xI():os(De(e)?Ws:ta),s=Nt([n],jm(a));return{...e,[Pe]:s}}var UK=()=>({cards:[sn(ta),sn(Ws)],label:[ln(!1),ln(!0)]}),jK={},GK=e=>wL(e,UK,jK);function XCe(e,o){if(!o||e.cardStyle==="label-only"==(o.cardStyle==="label-only"))return e;let t=GK(e[Pe]),r=e.cardStyle==="label-only"?"label":"cards";if(!t||t===r)return e;let a=zm(e,lw),n=Array.isArray(e.items)&&e.items.some(i=>fo(i?.href)!==void 0),s=r==="label"?ln(n):sn(De(e)?Ws:ta),l=Nt([s],jm(a));return{...e,[Pe]:l}}var SL=(e,o)=>mI.every(t=>JSON.stringify(e[t])===JSON.stringify(o[t]));function bL(e,o){let t={...e};for(let r of mI)delete t[r];return{...t,...structuredClone(o)}}function xg(e){let o=e?.[we];if(!Array.isArray(o)||o.length!==1)return null;let t=o[0];return t?.type===ro&&t.props?t:null}function KK(e,o){let t=xg(e),r=xg(o);if(!t?.props||!r?.props||r.props.id!==t.props.id||De(t.props)===De(r.props))return e;let a=mg(t.props[Pe]);if(!a||a===mg(r.props[Pe]))return e;let n=Ie(e.columns);return n===void 0?e:a==="delivery"&&SL(e,La(n))?bL(e,xp(n)):a==="press"&&SL(e,xp(n))?bL(e,La(n)):e}function CL(e){let o=Jp.get(e);o?o.count+=1:Jp.set(e,{count:1,stop:qK(e)});let t=!1;return()=>{let r=Jp.get(e);t||!r||(t=!0,r.count-=1,!(r.count>0)&&(r.stop(),Jp.delete(e)))}}var Jp=new WeakMap;function qK(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;yL(t,e.config,n=>{if(n.type!==K||!xg(n.props))return;let s=NK(r,e.config,n.props.id);if(!s||s.node===n)return;let l=KK(n.props,s.node.props);l!==n.props&&a.set(n.props.id,l)}),a.size&&e.dispatch({type:"setData",recordHistory:!1,data:n=>yL(n,e.config,s=>{let l=a.get(s.props.id);return l?{...s,props:{...l,id:s.props.id}}:void 0})})})}function kL(){let e=XK();VK(()=>e?CL(e):void 0,[e])}function XK(){try{return YK()}catch{return null}}import{jsx as Qp}from"react/jsx-runtime";import{useEffect as ZK}from"react";import{armScrollProgress as JK}from"efficient-shell/format";function vL({armed:e,children:o}){return ZK(()=>e?JK():void 0,[e]),o}function hg(){return{style:{"--sf-page-width":Ro}}}function QK({children:e}){return Qp("div",{style:hg().style,children:e})}function dke({pageBackground:e,inheritBackground:o=!1,chrome:t=!1,children:r}){return Qp("div",{style:{...o?{}:Of(e),background:"var(--bg)",minHeight:"100%",overflowX:"clip"},children:Qp(vL,{armed:!t,children:Qp(QK,{children:r})})})}import{jsx as PL,Fragment as e7}from"react/jsx-runtime";import{createContext as OL,useContext as TL}from"react";var EL=OL({}),_L=EL.Provider,AL=OL(void 0),FL=AL.Provider;function uke(e){let{SectionTextParts:o}=TL(EL),t=TL(AL);return o?PL(o,{...e,sizeCaps:t}):PL(e7,{children:e.children})}import{jsx as y7}from"react/jsx-runtime";import{useEffect as S7,useRef as b7}from"react";var BL="data-easel-overlay-portal";function eu(e){return e.setAttribute(BL,"true"),()=>{e.removeAttribute(BL)}}import{jsx as c7}from"react/jsx-runtime";import{useEffect as p7,useRef as VL}from"react";import{usePreviewParts as u7}from"efficient-easel/draw/client";import{jsx as o7}from"react/jsx-runtime";import{createContext as t7,useContext as r7,useMemo as a7,useState as n7}from"react";var s7={partStyle:null,setPartStyle:()=>{}},LL=t7(s7);function gke({children:e}){let[o,t]=n7(null),r=a7(()=>({partStyle:o,setPartStyle:t}),[o]);return o7(LL.Provider,{value:r,children:e})}function ds(){return r7(LL)}import{usePreviewDevice as m7}from"efficient-easel/draw/client";import{shownTier as x7}from"efficient-easel/screen/lib/document/device-fields";import{decodePartId as YL,encodePartId as h7}from"efficient-easel/draw";import{BLOCK_ATTRIBUTE as I7}from"efficient-easel/canvas";import{createPreviewSelectionContext as l7}from"efficient-easel/draw/client";var Ma="Scrolling Bar",{Provider:bke,useSelection:RL}=l7("selectedHeroId"),Ig="data-sf-hero-ticker";function DL(e){return`${e}::ticker`}function NL(e){return!e||!e.endsWith("::ticker")?null:e.slice(0,-8)||null}import{BLOCK_ATTRIBUTE as Ur}from"efficient-easel/canvas";import{createPreviewSelectionContext as i7}from"efficient-easel/draw/client";var{Provider:kke,useSelection:ML}=i7("selectedLocationPartId");function ou(e,o,t){return`${e}::${o}::${t}`}function tu(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 yg="data-sf-part-label";function Sg(e,o){return e.closest(`[${Ur}]`)?.getAttribute(Ur)===o}function HL(e,o,t){let r=e.querySelectorAll("*"),a=new Map(t.map(g=>[g.key,mf(g.label)])),n=[],s=new Set;for(let g=0;g<r.length;g+=1){let w=r[g];if(!Sg(w,o))continue;let _=w.getAttribute(dv);if(!_)continue;let E=a.get(_);n.push({element:w,partId:Ut(o,_),...E?{label:E}:{}}),s.add(w)}let l=[],i=new Set;for(let g=0;g<r.length;g+=1){let w=r[g];if(!Sg(w,o)||s.has(w))continue;let _=cv(w.textContent??"");if(!_)continue;let E=w.closest(`[${Ix}]`)?.getAttribute(Ix)||null;E&&i.add(E.replace(/\[\d+\]$/u,"")),l.push({element:w,text:_,row:E})}let d=g=>l.filter(w=>w.row===iv(g.key,g.row.index)),f=l.filter(g=>g.row===null),x=g=>g.row&&i.has(g.key)?d(g):i.size?f:l,u=new Map,h=[],I=g=>g.row?`${g.key}.${g.row.rowKey}`:null,S=new Map;for(let g of t){let w=I(g);if(!w||i.has(g.key))continue;let _=S.get(w);_?_.push(g):S.set(w,[g])}let v=new Set;for(let[g,w]of S){if(w.length<2)continue;let _=w.flatMap(b=>b.texts);if(new Set(_).size===_.length)continue;let E=x(w[0]).filter(b=>_.includes(b.text));if(E.length!==w.length)continue;let D=[...w].sort((b,F)=>(b.row?.index??0)-(F.row?.index??0));for(let b=0;b<D.length;b+=1){let F=D[b],y=E[b].element,k={key:F.key,partKey:Cn(F.key,F.row),exact:!0},P=u.get(y);P?P.push(k):(u.set(y,[k]),h.push(y))}v.add(g)}let O=new Map;for(let g of t){if(v.has(I(g)??""))continue;let w=Cn(g.key,g.row);for(let _ of g.texts)for(let E of x(g)){if(E.text!==_)continue;let D=O.get(E.element);D?D.add(w):O.set(E.element,new Set([w]))}}let R=(g,w)=>[...O].some(([_,E])=>_!==g&&!E.has(w)&&_.contains(g));for(let g of t){if(v.has(I(g)??""))continue;let w=Cn(g.key,g.row);for(let _ of g.texts){let E=[],D=null;for(let y of x(g))y.text===_?R(y.element,w)||E.push(y.element):!E.length&&y.text.includes(_)&&(!D||y.text.length<=D.length)&&(D={element:y.element,length:y.text.length});let b=E.length?E:D?[D.element]:[],F=b.filter(y=>!b.some(k=>k!==y&&y.contains(k)));for(let y of F){let k={key:g.key,partKey:w,exact:E.length>0},P=u.get(y);P?P.push(k):(u.set(y,[k]),h.push(y))}}}let T=[...n];for(let g of h){let w=u.get(g)??[],_=w.some(E=>E.exact)?w.filter(E=>E.exact):w;if(new Set(_.map(E=>E.partKey)).size===1){let E=a.get(_[0].key);T.push({element:g,partId:Ut(o,_[0].partKey),...E?{label:E}:{}});continue}new Set(_.map(E=>E.key)).size===1&&T.push({element:g,partId:Ut(o,_[0].key)})}return T}function gg(e,o,t){let r=e.querySelectorAll(`[${Ue}]`);for(let n=0;n<r.length;n+=1){let s=r[n];Sg(s,o)&&(s.removeAttribute(Ue),s.removeAttribute(yg))}let a=[];for(let{element:n,partId:s,label:l}of t)n.setAttribute(Ue,s),l&&n.setAttribute(yg,l),a.push(n);return a}function zL(e,o,t,r,a,n=()=>null){let s=null,l=null,i=null,d=()=>{let f=t(),x=f?.getAttribute(Ur)??null;if(!f||!x)return!1;s=x;let u=HL(e,x,o);return a(f,x,gg(e,x,u)),i=n(()=>{let h=HL(e,x,o);d7(u,h)||(u=h,a(f,x,gg(e,x,h)))}),!0};return d()||(l=r(()=>{(s||d())&&(l?.(),l=null)})),()=>{l?.(),l=null,i?.(),i=null,s&&gg(e,s,[])}}function d7(e,o){return e.length===o.length&&e.every((t,r)=>t.element===o[r].element&&t.partId===o[r].partId)}function Fke(e,o){let t=e?.closest?.(`[${Ue}],[${Tr}]`),r=t?.getAttribute(Ue)??t?.getAttribute(Tr),a=r?lv(r):null;if(t&&r&&a?.nodeId===o&&a.propKey)return{id:r,element:t,whole:$L(t,r),label:WL(t,r)};let n=e?.closest?.(jL.slice(2).map(l=>`[${l}]`).join(","));if(!n)return null;let s=n.closest?.(`[${Ur}]`)?.getAttribute(Ur)===o?GL(n,o):null;return s?{id:s,element:n,whole:$L(n,s),label:WL(n,s)}:null}function WL(e,o){let t=tu(o);if(t)return t.part==="map"?"Map":t.part==="city"?"City":"Image";let r=Yc(o);return r?cr[r.part]:NL(o)?Ma:e.getAttribute(yg)??void 0}var UL="data-loc-pick",jL=[Ue,Tr,Kl,Ig,UL];function GL(e,o){let t=e.getAttribute(Ue)??e.getAttribute(Tr);if(t)return t;let r=e.getAttribute(Kl);if(r)return va(o,r);if(e.getAttribute(Ig)!==null)return DL(o);let a=e.getAttribute(UL)?.split(":");return a&&(a[1]==="image"||a[1]==="map"||a[1]==="city")&&/^\d+$/.test(a[0])?ou(o,Number(a[0]),a[1]):null}function $L(e,o){let t=e.closest?.(`[${Ur}]`),r=t?.getAttribute(Ur);if(!t||!r)return!1;let a=new Set;for(let n of t.querySelectorAll(jL.map(s=>`[${s}]`).join(","))){if(n.closest?.(`[${Ur}]`)!==t)continue;let s=GL(n,r);s&&a.add(s)}return a.size===1&&a.has(o)}import{ENTRANCE_ATTR as KL,playEntrance as f7}from"efficient-shell/format";var bg=new WeakMap;function qL(e,o,t,r){let a=typeof t=="boolean"?t?"phone":"desktop":t,n=[],s=new Map;for(let{partKey:d}of e){if(s.has(d))continue;let f=o(d)??{},x=nk(f),u=r.get(d),h=u?Hn.next(u,x,a):null;r.set(d,h?h.seen:Hn.seed(x)),s.set(d,h?.play??!1)}let l=new Map,i=e.filter(d=>!e.some(f=>f!==d&&f.partKey===d.partKey&&f.element.contains(d.element)));for(let d of i){let f=Ac(d.element);f&&l.set(f,[...l.get(f)??[],d])}for(let[d,f]of l){let x=I=>Al(o(I.partKey)??{}),u=zn(f.filter(I=>x(I).entrance));if(u){let I=o(u.partKey)??{};n.push(Ec(d,Xs(I,a)));let S=bg.get(d);bg.set(d,u.partKey),(s.get(u.partKey)||S!==void 0&&S!==u.partKey)&&d.hasAttribute(KL)&&f7(d)}else bg.delete(d);let h=d.hasAttribute(KL)?void 0:zn(f.filter(I=>ir(o(I.partKey)??{},a).effect!=="none"));h&&n.push(_c(d,ir(o(h.partKey)??{},a))),f.some(I=>x(I).hover==="lift")&&(Fc(d.ownerDocument),d.setAttribute(ba,""),n.push(()=>d.removeAttribute(ba)))}return()=>n.forEach(d=>d())}function wg(e){let o=null,t=null;for(let r=e;r&&(o===null||t===null);r=r.parentElement){let a=r.getAttribute("class");o??=Sb(a),t??=Qm(a)}return{faceRole:o??"body",sizeGroup:t}}function ru(e,o={},t=xb){let r=e.style,a={};for(let i of bx)a[i]=r[i]??"",r[i]="";o.fontFamily&&(r.fontFamily=o.fontFamily),o.fontSize&&(r.fontSize=o.fontSize);let n=getComputedStyle(e),s=getComputedStyle(e.ownerDocument.documentElement),l=Lv({fontSize:n.fontSize,fontWeight:n.fontWeight,lineHeight:n.lineHeight,letterSpacing:n.letterSpacing,textAlign:n.textAlign,textTransform:n.textTransform,paddingTop:n.paddingTop},Rv(n.fontFamily,i=>s.getPropertyValue(i),t));for(let i of bx)r[i]=a[i];return l}function XL({needles:e,styles:o,motions:t=Oc,type:r,sizeCaps:a,children:n}){let s=VL(null),{selectedPartId:l}=u7(),{setPartStyle:i}=ds(),d=x7(m7()),f=Ct(),x=JSON.stringify(e),u=JSON.stringify(o),h=JSON.stringify(t),I=VL(new Map);return p7(()=>{let S=s.current;if(!S)return;let v=[],O=()=>S.parentElement,R=b=>{let F=O();if(!F)return null;let y=new MutationObserver(b);return y.observe(F,{attributes:!0,attributeFilter:[I7]}),()=>y.disconnect()},T=b=>{let F=new MutationObserver(b);return F.observe(S,{childList:!0,subtree:!0,characterData:!0}),()=>F.disconnect()},g=[];v.push(()=>{for(let b of g)b();g=[]});let w=JSON.parse(x),_=JSON.parse(u),E=JSON.parse(h),D=zL(S,w,O,R,(b,F,y)=>{for(let B of g)B();g=[];let k=[];for(let B of y){let H=B,q=eu(H);q&&g.push(q),H.getAttribute(Ue)===l&&k.push(H)}let P=Dv(F,l,k,B=>bb(B)!==null||Qm(B)!==null);if(P&&l){let B=P,H=YL(l)?.propKey??"",q=al(B)?{}:Bv(Nv(_,lr(r,H)),d,{blockDrawsStyle:sl(r,H),sizeCap:ia(a,H),fonts:f});i({partId:l,...wg(B),base:ru(B,q,f),inks:df(B),...(()=>{let $=al(B);return $?{styleOwner:$}:{}})()})}Sx(y.filter(B=>!al(B)).map(B=>({element:B,partId:B.getAttribute(Ue)??""})),_,B=>ru(B,void 0,f),B=>lr(r,B),void 0,d,B=>sl(r,B),B=>ia(a,B),f);let C=[...S.querySelectorAll(`[${fv}="${CSS.escape(F)}"][${uf}]`)];C.length&&Sx(C.map(B=>({element:B,partId:h7(F,B.getAttribute(uf)??"")})),_,void 0,B=>B,void 0,d,void 0,void 0,f),g.push(qL([...y.filter(B=>!al(B)).map(B=>{let H=B,q=YL(H.getAttribute(Ue)??"")?.propKey??"";return{element:H,partKey:lr(r,q)}}),...C.map(B=>({element:B,partKey:B.getAttribute(uf)??""}))],B=>E[B],rk(d),I.current))},T);return()=>{D();for(let b of v)b()}},[x,u,h,l,i,d,r,f]),c7("div",{ref:s,[Eh]:"",style:{display:"contents"},children:n})}import{shownTier as w7}from"efficient-easel/screen/lib/document/device-fields";import{usePreviewDevice as C7,usePreviewParts as k7}from"efficient-easel/draw/client";var mi={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)]"},g7={tag:{label:"Tag",follows:"Labels",builtIn:cn(mi.tag),writable:!0},name:{label:"Name",follows:"Heading 2",builtIn:cn(mi.name),writable:!0},body:{label:"Body",follows:"Body",builtIn:cn(mi.body),writable:!0},price:{label:"Price",follows:"Labels",builtIn:cn(mi.price),writable:!0},link:{label:"Link",follows:"Labels",builtIn:cn(mi.link),writable:!0}},ZL=g7;var cve=ra,JL={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 QL={SpecTable:JL,FAQ:hw,Collections:ZL,Contents:zp};function eR(){return en("efficient.section-text-regions",()=>new Map)}function yve(e){let o=eR();for(let[t,r]of Object.entries(e)){if(co(QL,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?z(QL,e)??eR().get(e)??null:null}function oR({nodeId:e,sectionType:o,partStyles:t,sizeCaps:r,children:a}){let n=b7(null),{selectedPartId:s}=k7(),{setPartStyle:l}=ds(),i=w7(C7()),d=Ct(),f=JSON.stringify([t??null,r??null]);return S7(()=>{let x=n.current,u=fs(o);if(!x||!e||!u)return;let h=[],I=Array.from(x.querySelectorAll(`[${ra}]`));for(let S of I){let v=Km(u,S.getAttribute(ra));if(!v)continue;let O=eu(S);O&&h.push(O);let R=$s(v),T=Ut(e,R);S.setAttribute(Tr,T);let g=t?.[R];if(u[v].sized&&Mv(g)){let w=Hv(g,i,{sizeCap:ia(r,R),fonts:d}),_={fontFamily:S.style.fontFamily,fontSize:S.style.fontSize},E=S.getAttribute(sa);w.fontFamily&&(S.style.fontFamily=w.fontFamily),w.fontSize&&(S.style.fontSize=w.fontSize);let D={fontFamily:w.fontFamily?S.style.fontFamily:void 0,fontSize:w.fontSize?S.style.fontSize:void 0},b=g?.textStyle;wv(b)&&S.setAttribute(sa,b),h.push(()=>{zv(S.style,_,D),E===null?S.removeAttribute(sa):S.setAttribute(sa,E)})}if(T===s){let w=ru(S,$v(g,u[v],i,d),d);l({partId:T,...wg(S),base:w})}}return()=>{for(let S of h)S();for(let S of I)S.removeAttribute(Tr)}},[e,o,s,l,i,f,d]),y7("div",{ref:n,style:{display:"contents"},children:a})}import{jsx as Cg,Fragment as tR}from"react/jsx-runtime";import{createContext as v7,useContext as rR,useMemo as P7}from"react";var kg=v7(null),aR=e=>e==null||e===""?void 0:String(e);function vg({content:e,children:o}){let t=P7(()=>Qx(e),[e]);return Cg(kg.Provider,{value:t,children:o})}function Nve({id:e,children:o}){let t=rR(kg),r=aR(e);return Cg(tR,{children:o(r?t?.entries.get(r):void 0)})}function Mve({id:e,children:o}){let t=rR(kg),r=aR(e);return Cg(tR,{children:o(r?t?.numbers.get(r):void 0)})}var _7={SectionTextParts:oR},A7="color-mix(in oklab, var(--bg) 40%, #ffffff)",F7="12vh";function B7({style:e,children:o}){let{appState:t}=Pg(u=>u),r=t.data.content,a=t.data.root;if(bP(r))return $o("div",{className:"sf-themed-content",style:{...e,background:A7,minHeight:"100vh",paddingBottom:F7},children:$o("div",{style:{background:"var(--bg)"},children:$o(vg,{content:r,children:o})})});let n=vx(r)&&CP(a,r),s=vx(r)?kP(a,r):null,l=s?{[wP]:s}:null,i=RC(a?.widthChoice),d=i?{[LC]:i}:null,f=n?null:gL(r),x=f?{[IL]:f}:null;return $o("div",{className:`sf-themed-content${n?` ${gP}`:""}`,style:e,...x,...l,...d,children:$o("div",{style:{background:"var(--bg)",minHeight:"100%"},children:$o(vg,{content:r,children:o})})})}function pPe({propsTheme:e,propsFonts:o,propsCornerStyle:t,propsCornerRadiusPx:r,propsHeadingCompression:a,propsHeadingTypography:n,pageBackground:s,chromeInheritsSiteBackground:l,suppressPreviewNav:i,footer:d,overlay:f,children:x}){kL();let u=Pg(I=>I.appState.data.root?.props),h=Pg(I=>YP(I.appState.data.content));return $o(Tg,{siteFooterRootProps:u?.kind===Jv?u:void 0,inPlaceFooterProps:h,propsTheme:e,propsFonts:o,propsCornerStyle:t,propsCornerRadiusPx:r,propsHeadingCompression:a,propsHeadingTypography:n,pageBackground:s,chromeInheritsSiteBackground:l,onClickCapture:i,body:I=>nR(T7,{children:[$o(B7,{style:I,children:x}),d,f]})})}function Tg({propsTheme:e,propsFonts:o,propsCornerStyle:t,propsCornerRadiusPx:r,propsHeadingCompression:a,propsHeadingTypography:n,pageBackground:s,chromeInheritsSiteBackground:l,onClickCapture:i,siteFooterRootProps:d,inPlaceFooterProps:f,body:x}){let{chromeRootProps:u}=pL(),h=E7(()=>XP(u,f),[u,f]),{theme:I,fonts:S,sizes:v,cornerRadiusPx:O,cardShadow:R,shadowColor:T,cardGap:g,hoverEffect:w,headingCompression:_,siteWidth:E,siteGutter:D,siteGutterPhone:b,blockGap:F,blockGapPhone:y,siteLengthUnits:k,headingTypography:P,heroBackgroundFollowsWidth:C,photographyGrayscale:B,textStyles:H,wordStyles:q,themeFromDocument:$}=ko(),le=Ct(),pe=$?e:I,ee=$?o:S,xe=$?void 0:v,oe=$?r===void 0?qw[Kw(t)]:Vw(r):O,ie=$?{}:k,ge=$?a:_,Re=$?n:P,We=[$T(WT($?void 0:H),le),zT(oC(Re).italicStrong)].filter(Boolean).join(`
|
|
336
|
-
`),yo=hg(),oo={...Dw(pe),...Gw(xe),...tC(Re),...yo.style,...l?{}:Of(s)};return nR("div",{className:`sf-theme-surfaces sf-theme-accent ${[EC($?void 0:b),rP($?void 0:y)].filter(Boolean).join(" ")}`.trim(),style:{...wb(ee,le),...vb($?null:q,le),...Nw(pe),...Hw(pe),...Ww(pe),...Bd(pe),...Yw(oe,ie.cornerRadiusUnit),...Qw($?void 0:R,$?void 0:T,$?void 0:w),...uC($?void 0:E,ie.siteWidthUnit),...PC($?void 0:D,ie.siteGutterUnit),...OC($?void 0:b,ie.siteGutterPhoneUnit),...oP($?void 0:F,ie.blockGapUnit),...tP($?void 0:y,ie.blockGapPhoneUnit),...Nd($?void 0:C)},"data-sf-headings":eC(ge),[gC]:Dd(d??h),[Qd]:Pk(d??h),"data-sf-card-shadow":$?void 0:Xw(R),"data-sf-card-gap":$?void 0:Zw(g),"data-sf-card-hover":$?void 0:Jw(w),onClickCapture:i,children:[We?$o("style",{"data-sf-text-styles":"",dangerouslySetInnerHTML:{__html:We}}):null,$o(mL,{grayscale:$?void 0:B,children:$o(_L,{value:_7,children:$o(hL,{ink:Rw(pe),children:$o(O7,{fallback:null,children:$o(V0,{rootProps:d??h,children:x(oo)})})})})})]})}var sR=e=>{e.target?.closest?.("a")&&e.preventDefault()};var L7=/(-?(?:\d+\.?\d*|\.\d+))(?:s|d|l)?vh\b/g;function R7(e,o){return e.replace(L7,(t,r)=>`${+(Number(r)*o/100).toFixed(3)}px`)}function iR(e,o){for(let t=0;t<e.length;t++){let r=e.item(t),a=e.getPropertyValue(r);if(!a.includes("vh"))continue;let n=R7(a,o);n!==a&&e.setProperty(r,n,e.getPropertyPriority(r))}}function dR(e,o){for(let t of Array.from(e)){let r=t.style;r&&iR(r,o);let a=t.cssRules;a&&dR(a,o)}}function lR(e,o){for(let t of Array.from(e.styleSheets)){let r;try{r=t.cssRules}catch{continue}dR(r,o)}for(let t of Array.from(e.querySelectorAll('[style*="vh"]')))iR(t.style,o)}function fR(e,o){lR(e,o);let t=e.defaultView,r=0,a=()=>{r||!t||(r=t.requestAnimationFrame(()=>{r=0,lR(e,o)}))};e.addEventListener("load",a,!0);let n=t?new t.MutationObserver(a):null;return n?.observe(e,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["style"],characterData:!0}),()=>{n?.disconnect(),e.removeEventListener("load",a,!0),r&&t&&t.cancelAnimationFrame(r)}}var z7=1440,Eg=800;function pR({starter:e,config:o,metadata:t,busy:r,onAdd:a}){let{mirrorHostStyles:n}=pl(),[s,l]=Og(null),[i,d]=Og(Eg),[f,x]=Og(null);return D7(()=>{if(!s)return;let u=fR(s,Eg),h=s.defaultView,I=()=>{f&&d(Math.max(Eg,Math.ceil(f.getBoundingClientRect().height)))},S=h&&f?new h.ResizeObserver(I):null;return f&&S?.observe(f),I(),()=>{u(),S?.disconnect()}},[s,f]),cR("div",{className:"sf-starter",children:[cR(H7,{padding:"none",className:"sf-starter-picture",children:[Tt("div",{inert:!0,className:"sf-starter-frame",children:Tt(W7,{width:z7,height:i,children:Tt(N7,{id:`page-starter-${e.id}`,title:e.title,mirrorStyles:n,onDocument:l,height:"fill",children:Tt(Yf,{document:s??void 0,children:Tt(Tg,{onClickCapture:sR,body:u=>Tt("div",{className:"sf-themed-content",style:u,children:Tt("div",{ref:x,style:{background:"var(--bg)"},children:Tt(fL,{config:o,data:e.layout,metadata:t})})})})})})})}),Tt("div",{className:"sf-starter-add",children:Tt(M7,{onClick:()=>a(e),loading:r,"aria-label":c("Add \u201C{name}\u201D",{name:e.title}),children:c("Add page")})})]}),Tt($7,{size:"sm",children:e.title})]})}import{useMemo as QX}from"react";import{sessionRegistry as eZ}from"efficient-easel/screen/lib/session";import{useEaselSession as oZ}from"efficient-easel/screen/lib/session-context";import{currentEaselSession as U7}from"efficient-easel/screen/lib/session";var j7={general:!0,commerce:!0,service:!0};function _g(e){let o=e?.sets;return o?Object.fromEntries(ib.map(t=>[t,o.includes(t)])):j7}function Ag(e=U7()){return _g(e.blocks)}import{currentEaselSession as vR}from"efficient-easel/screen/lib/session";import{SITE_SIDE as xR}from"efficient-easel/screen/lib/content/length-units";var uR=[{text:"Ticker item"},{text:"Ticker item"},{text:"Ticker item"},{text:"Ticker item"}],APe={label:"Scrolling Bar",defaultProps:{items:[],tone:"scrim",borders:!0,size:Qb,separator:ew,scrollDirection:ci}};var mR=()=>[{text:c("Spec label"),tone:"normal"},{text:c("Spec value"),tone:"muted"},{text:c("Spec label"),tone:"normal"},{text:c("Spec value"),tone:"muted"}],LPe={label:"Spec Strip",defaultProps:{cells:[{text:"",tone:"normal"},{text:"",tone:"normal"}],fill:"dark"}};function xo(e,o,t,r={}){return{type:e,props:{...o(e),id:t(e),...r}}}function hR(e,o,t){return xo(K,e,o,{...t,sectionPaddingTop:void 0,sectionPaddingBottom:void 0})}var au={Manifesto:(e,o)=>({type:K,props:{...e(K),id:o(K),direction:"row",share:"equal",sectionHeightMode:"screen",name:"Brand Text",content:[xo(K,e,o,{direction:"column",justify:"center",blockSpacing:"gap",name:"Text",sectionPaddingTop:100,sectionPaddingBottom:100,sectionPaddingLeft:xR,sectionPaddingRight:xR,content:[xo("Text",e,o,Qt()),xo("Text",e,o,Ir()),xo("Text",e,o),xo("Stats",e,o)]}),hR(e,o,{direction:"column",name:"Picture",content:[]})]}}),Split:(e,o)=>({type:K,props:{...e(K),id:o(K),direction:"row",share:"equal",sectionHeightMode:"screen",sectionHeightValue:70,name:"Image & Text Split",content:[xo(K,e,o,{direction:"column",justify:"center",blockSpacing:"gap",name:"Text",sectionPaddingTop:100,sectionPaddingBottom:100,sectionPaddingLeft:60,sectionPaddingRight:60,content:[xo("Text",e,o,Qt()),xo("Text",e,o,Ir()),xo("Text",e,o),xo("ButtonBlock",e,o)]}),hR(e,o,{direction:"column",name:"Image",content:[xo("ImageBlock",e,o)]})]}}),Subscribe:(e,o)=>({type:K,props:{...e(K),id:o(K),direction:"column",name:"Subscribe",content:[xo("Text",e,o,Ir()),xo("Text",e,o),xo("Form",e,o)]}}),Ticker:(e,o)=>IR("Scrolling Bar",oc,xa,uR.map(t=>({text:t.text,style:tc,muted:!0})),e,o),SpecStrip:(e,o,t)=>IR("Spec Strip",t?.theme?{...yl,sectionAccent:Fd(or(t.theme))}:{...yl,sectionBorder:{top:1}},ha,mR().map(r=>({text:r.text??"",style:Sl,muted:r.tone==="muted"})),e,o)};function IR(e,o,t,r,a,n){return xo(K,a,n,{...ma,...o,blockSpacing:"gap",padV2:!0,name:e,sectionPaddingTop:t.top,sectionPaddingBottom:t.bottom,sectionPaddingTopPhone:t.topPhone,sectionPaddingBottomPhone:t.bottomPhone,content:r.map(s=>xo("Text",a,n,{text:s.text,...s.muted?{tone:"dim"}:{},_partStyles:{text:s.style}}))})}function gR(e){return z(au,e)??null}import{isNodeList as Fg}from"efficient-easel/data";var nTe=Object.keys(cg),G7={Logos:NA,DocMasthead:RF,DocTabs:GF,Timeline:fF,TimelineTrack:cF},K7={PaymentBadges:MA,PaymentLogosBlock:HA,Integrations:zB};function nu(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]=Fg(n)?n.map(s=>nu(s,o,t)):n;return r.id=t(e.type),{type:e.type,props:r}}var yR=e=>({...e?.theme?{theme:e.theme}:{},...e?.site?{site:e.site}:{},press:!0});function xi(e,o,t=0,r=()=>({})){return(a,n,s)=>{let{nodes:l}=Ea({type:e,props:{...a(e),...r(),id:n(e)}},o,yR(s));return nu(l[t],a,n)}}var q7={Stats:Y7,Cards:V7};function V7(){let e=Dr("Cards");if(!e)return null;let o=xi("Cards",e,0,fA);return(t,r,a)=>{let n=o(t,r,a);return{...n,props:{...n.props,name:"Cards section"}}}}function Y7(){let e=Dr("StatsParagraph");return e?(o,t,r)=>{let{nodes:a}=Ea({type:"StatsParagraph",props:{...o("StatsParagraph"),...bA(),id:t("StatsParagraph")}},e,yR(r)),n=a[0],s=Fg(n.props.content)?n.props.content.filter(f=>f.props?.cardStyle===void 0):[],l=bR(AI(wA(),"table")),i=s.map(SR),d=nu({...n,props:{...n.props,content:[...i,l]}},o,t);return{...d,props:{...d.props,name:"Stats section"}}}:null}function SR(e){return e.props?.name==="Words"?{...e,props:{...e.props,widthFitPhone:"fill"}}:Fg(e.props?.content)?{...e,props:{...e.props,content:e.props.content.map(SR)}}:e}var bR=e=>Nt([e],(o,t)=>`${o}-seed-${t}`)[0];function X7(e,o){if(!m1(e,o))return null;let t=z(q7,e);if(t)return t();let r=Dr(e);return r?xi(e,r,0,z(G7,e)??z(rL,e)??z(K7,e)):null}function Z7(e){return(o,t,r)=>{let a=n=>{if(n.type==="Stats"){let l=nu(bR(AI([],"list")),o,t);return{...l,props:{...l.props,name:"Numbers"}}}let s=qe(n,l=>ze(l,a));return s===n?n:{type:n.type,props:s.props}};return a(e(o,t,r))}}function cs(e,o=Oa){let t=gR(e);return t?Z7(t):X7(e,o)}import{blockTypesIn as wR}from"efficient-easel/screen/lib/document/block-types-in";var CR=()=>({}),kR=new Map;function J7(e){let o=kR.get(e);if(o)return o;let t=new Set,r=z(nt,e);if(r)for(let s of r.seeds(CR))for(let l of wR({type:r.childType,props:s}))t.add(l);let a=cs(e);if(a){let s=0;for(let l of wR(a(CR,i=>`${i}-${s+=1}`)))t.add(l)}t.delete(e);let n=[...t].sort();return kR.set(e,n),n}function Bg(e){if(!e||!e.sets&&!e.allow&&!e.deny?.length)return null;let o=_g(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=pb(i);return!d||!o[d]?!1:t?t.has(i):!0},s=new Map,l=i=>{let d=s.get(i);if(d!==void 0)return d;s.set(i,!1);let f=n(i)&&J7(i).every(l);return s.set(i,f),f};return{sets:o,offers:l}}var Q7="block-offer";function Lg(e=vR()){return e.cache(Q7,()=>Bg(un(e)))}function PR(e,o=vR()){let t=Lg(o);return t?t.offers(e):!0}var TR={name:"catalogueLabel",applies:e=>co(ea,e),draw(e,o){e.label=z(ea,o)}};import{jsx as Hg}from"react/jsx-runtime";import{parseBlockWidthFit as aq,phoneKey as Ot,tabletKey as pt}from"efficient-easel/draw";import{jsx as eq}from"react/jsx-runtime";import{phoneKey as su}from"efficient-easel/draw";var OR={name:"sectionGroupAllow",applies:e=>hf.includes(e),panel(e,o,t,r){let a=e.fields?.sections;a&&(a.allow=[...r.sectionGroupAllow])}},Rg=new Set(Object.keys(wt)),ER={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=>!Rg.has(i)):a;s.disallow=Array.from(new Set([...s.disallow??[],...l]))}}};var AR=Array.from(new Set([...mb.map(e=>e.type),...Rg]));function Dg(e,o){return AR.includes(e)||o?.sitsInBox===!0}var oq=Array.from(new Set([...AR,...dd,"GalleryItem"])),tq={not:{context:"parentOffersPositions",is:!1}},rq={not:{context:"parentTileSlot",is:!1}},_R=[dx,su("gridSpan"),su("gridRowSpan")],FR={name:"cellWidth",applies:(e,o,t)=>(oq.includes(e)||Dg(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=Lo(e.fields??{},a.filter(n=>!_R.includes(n)),tq),e.fields=Lo(e.fields??{},_R,rq)},draw(e){let o=e.render;e.render=t=>{let r=GC(t.gridSpan),a=qC(t.gridRowSpan),n=YC(t[dx]),s=ZC(t[su("gridSpan")]),l=JC(t[su("gridRowSpan")]),i=o(t);if(r==null&&a==null&&n==null&&s==null&&l==null)return i;let d={};r!=null&&(d[KC]=String(r)),a!=null&&(d[VC]=String(a)),s!=null&&(d[QC]=String(s)),l!=null&&(d[ek]=String(l));let f=n!=null?{[XC]:n}:void 0;return eq(de,{className:"sf-grid-cell",style:f,...d,children:i})}}};function BR(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 hi={not:{context:"heldByANode",is:!0}};function lu(e,o){return"parent"in o?o.parent!=null:!!Vt(o.appState,e.props?.id)}function Vt(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 nq=new Set(["Text","Heading"]),sq=new Set(["h1","h2","h3","h4","h5","h6"]);function LR(e,o){return e==="Heading"?!0:e!=="Text"?!1:typeof o.tag=="string"&&sq.has(o.tag)?!0:Or(o,"text").textStyle?.startsWith("heading-")===!0}var jr={not:{context:"blockOutsideBox",is:!0}},RR={all:[jr,{not:{context:"boxSharesWidth",is:!0}}]},DR={all:[jr,{not:{context:"boxSharesWidthPhone",is:!0}}]},NR={all:[jr,{not:{context:"boxSharesWidthTablet",is:!0}}]};function $R(e,o,t){return{any:[{field:pt(e),is:o},{all:[{field:pt(e),set:!1},t??{field:e,is:o}]}]}}function zR(e,o,t){return{any:[{field:Ot(e),is:o},{all:[{field:Ot(e),set:!1},t??{field:e,is:o}]}]}}var UR={any:[{field:"textFit",is:"shrink"},{all:[{field:"textFit",set:!1},{not:{context:"textWrapsByDefault",is:!0}}]}]},lq=[[["_gBlockSize","minWidth",pt("minWidth"),Ot("minWidth"),"maxWidth",pt("maxWidth"),Ot("maxWidth")],jr],[["widthFit"],RR],[[pt("widthFit")],NR],[[Ot("widthFit")],DR],[["width"],{all:[RR,{field:"widthFit",is:"fixed"}]}],[[pt("width")],{all:[NR,$R("widthFit","fixed")]}],[[Ot("width")],{all:[DR,zR("widthFit","fixed")]}]],MR=$R("textFit","shrink",UR),HR=[[["_gText","textFit",pt("textFit"),Ot("textFit")],jr],[["minFont"],{all:[jr,UR]}],[[pt("minFont")],{all:[jr,MR]}],[[Ot("minFont")],{all:[jr,zR("textFit","shrink",MR)]}]],iu=(e,o)=>Vt(o.appState,e.props?.id),du=e=>!!e&&typeof e.type=="string"&&fd(e.type)!==null,Ng=e=>(e.type==="Flex"||e.type==="HeroGroup")&&Pn(e.type,e.props?.direction)==="row",Mg=e=>{let o=aq(e);return o!==void 0&&o!=="fit"},iq={blockOutsideBox:(e,o)=>!du(iu(e,o)),boxSharesWidth:(e,o)=>{let t=iu(e,o);return!du(t)||!Ng(t)?!1:Wm({...t.props,direction:"row"})!==""?!0:Hm(t.props?.share)!==""&&!Mg(e.props?.widthFit)},boxSharesWidthTablet:(e,o)=>{let t=iu(e,o);if(!du(t)||!Ng(t))return!1;if(rw(t.props?.[pt("columns")])!==""||Wm({...t.props,direction:"row"})!=="")return!0;let r=tw(t.props?.[pt("share")])??t.props?.share;return Hm(r)!==""&&!Mg(e.props?.[pt("widthFit")]??e.props?.widthFit)},boxSharesWidthPhone:(e,o)=>{let t=iu(e,o);if(!du(t)||!Ng(t))return!1;let r=t.props?.phoneRow;return(Number(r)===2||Number(r)===3)&&!aw(r,t.props?.[Ot("share")])&&!Mg(e.props?.[Ot("widthFit")]??e.props?.widthFit)}},dq=e=>/^_[gds][A-Z]/.test(e);function fq(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&&!dq(r[n][0]);)n++;return Object.fromEntries([...r.slice(0,n),...Object.entries(t),...r.slice(n)])}function WR(e,o,t){let r=Object.entries(e);return Object.fromEntries([...r.slice(0,o),...Object.entries(t),...r.slice(o)])}function cq(e,o,t){let r=Object.keys(o);if(r.includes("_dSize")){let{_gBlockSize:a,...n}=t;return WR(o,r.indexOf("_dSize")+1,n)}return pq.has(e)&&r.includes("_gSpacing")?WR(o,r.indexOf("_gSpacing"),t):{...o,...t}}var pq=new Set(["Text","Heading"]);function uq(e,o){let{_gText:t,...r}=o;return fq(e,"_gText",r)??{...e,...o}}function mq(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"),Ot("textFit")])a in r&&(r[a]=e[a]);o.set(t,r)}return r}}var jR={name:"blockSize",applies:(e,o,t)=>Dg(e,t)&&!!t&&typeof t.render=="function",panel(e,o,t){let r=nq.has(o),{text:a}=t.blockSizeFields(r?{tablet:!0,textFit:o==="Heading"?"shrink":"wrap"}:{}),{size:n}=t.blockSizeFields({tablet:!0}),s=cq(o,e.fields??{},Zo(n,lq));if(r){let l=Zo(a,HR);if(s=uq(s,l),o==="Text"){let i=Zo(t.blockSizeFields({tablet:!0,textFit:"shrink"}).text,HR),d=mq(i),f=e.resolveFields,x=(u,h)=>{let I=f?f(u,h):h.fields,S=v=>LR(o,u?.props??{})?d(v??h.fields):v;return I instanceof Promise?I.then(S):S(I)};e.resolveFields=x}}e.fields=s,Mt(e,{...iq,textWrapsByDefault:l=>!LR(o,l.props??{})})},draw(e,o){xq(e,o)}};function xq(e,o){let t=e.render;e.render=r=>{let a=ip(r),n=fI(a),s=t(r),l=n&&fI(a,{atSectionLine:!0});return n===null?s:Hg(hq,{size:n,sectionSize:l??n,atEdge:o===K,canvasAttrs:r.editor?.isEditing?E1(a):GR,inCell:O1(a),fillsPhone:v1(a),widens:_1(a),children:s})}}var GR={};function hq({size:e,sectionSize:o,atEdge:t,canvasAttrs:r,inCell:a,fillsPhone:n,widens:s,children:l}){let i=rf(),d=vr(t?"edge":"by-box"),f=d?e:o,x=f.className,u=i?.phoneCells===!0,h=n&&i?.phoneRowFits===!0,I=s?Hg(xE,{children:l}):l;return Hg(Pr,{className:[x,u?a:"",h?k1:""].filter(Boolean).join(" "),...Object.keys(f.style).length?{style:f.style}:{},attrs:d&&r!==GR?{...f.attrs,...r}:f.attrs,children:I})}import{Fragment as Oq,jsx as uu}from"react/jsx-runtime";import{jsx as Po,Fragment as Ug}from"react/jsx-runtime";import{createContext as ps,useContext as Et}from"react";var Iq=new Set(["Flex","Grid"]);function Gr(e){return typeof e=="string"&&Iq.has(e)}var Ha="contentWidth",Wg="full",$g="content";function gi(e){let o=e?.[Ha];return o===Wg?!1:o===$g?!0:void 0}function KR(e,o){return e&&!o}function fu(e){return e.loop==="scroll"&&e.direction!=="tabs"&&e.direction!=="accordion"&&!qk(e)&&!jA(e.scrollDirection)}function Ii(e,o){return Gr(e)&&fu(rl(o,!1))?hn({}):hn(o)}function cu(e,o){return typeof e!="string"||!Md(e)||Ks[e]==="rawMarkup"?Ii(e,o).background??"full":Ii(e,o).background??Hd(o).background}function pu(e){return e!=="full"}function qR(e,o,t){if(!Array.isArray(e)||typeof o!="string")return;let r=(a,n,s,l,i)=>{for(let d of a){let f=d?.props??{};if(f.id===o)return n;let x=Gr(d?.type),u=(l?Ii(d?.type,f).content:null)==="content"?!0:s,h=x&&(n.inBox?gi(f)??u:u),I={insideGutter:n.insideGutter||h||x&&fu(rl(f,i)),inBox:n.inBox||x};for(let S of Dt({type:d?.type,props:f})){let v=f[S],O=r(v,I,u,!1,i||aa(d?.type,S));if(O!==void 0)return O}}};return r(e,{insideGutter:!1,inBox:!1},t,!0,!1)}var gq=" [--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))))]",yq="[--sf-edge-g:0px] [--sf-edge-al:var(--sf-edge-l)] [--sf-edge-ar:var(--sf-edge-r)]",Sq="[--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)))]",VR="max-w-[100vw]",bq=`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))] ${VR}`;function YR(e,o=!1){let t={},r=e.pad??{},a=wk({left:r.left,right:r.right},{left:r.leftPhone,right:r.rightPhone},{left:r.leftTablet,right:r.rightTablet},{left:r.left,right:r.right},{desktop:r.unit,tablet:r.unitTablet,phone:r.unitPhone},0,e.site?"site":"box"),n=a.style;for(let[f,x]of[["l","paddingLeft"],["r","paddingRight"]]){let u=n[x];u!==void 0&&(t[`--sf-edge-${f}d`]=typeof u=="number"?`${u}px`:String(u));let h=n[`--sf-pad-${f}-tablet`],I=n[`--sf-pad-${f}-phone`];h!==void 0&&(t[`--sf-edge-${f}t`]=String(h)),I!==void 0&&(t[`--sf-edge-${f}p`]=String(I))}let s=Sr(e.site?"site":"box"),l=a.classes.includes(s.className.split(" ")[0]),i=e.gutter?`${s.className} ${s.edge}${gq}`:`${yq}${l?` ${s.className}`:""}`,d=o?` ${wC}${e.gutter?` ${CC}`:""}`:"";return{className:`${i} ${Sq}${d}`,style:t}}function o0e(e,o=!1){let{className:t,style:r}=YR(e,o);return{className:`${t} ${bq}`,...Object.keys(r).length?{style:r}:{}}}var wq="[--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 Cq="--sf-edge-beyond";function XR(e){return`max(0px,calc((${e===null?Gs:`min(${Gs},${e})`} - ${Ro}) / 2))`}var kq=`${wq} 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))] ${VR}`;function t0e(e){let{className:o,style:t}=YR(e);return{className:`${o} ${kq}`,style:{...t,[Cq]:e.beyond??"0px"}}}var yi=ps(!1);function u0e(){return Et(yi)}function m0e({children:e}){return Po(yi.Provider,{value:!0,children:e})}var zg=ps(!1);function jg({children:e}){return Po(zg.Provider,{value:!0,children:e})}var ZR=ps(null);function Gg({ground:e,children:o}){return Po(ZR.Provider,{value:e,children:o})}var Kg=ps(!1);function vq(){return Et(Kg)}function JR({atTop:e,nested:o}){return Po(Ug,{children:vq()?o:e})}var Si=ps(void 0);function QR({children:e}){return Po(Si.Provider,{value:null,children:e})}function qg(){return Et(Si)===void 0&&!Et(Kg)&&!Et(yi)}function us({own:e,followed:o}){return Po(Ug,{children:qg()?e():o()})}var eD=ps(null);function oD({value:e,children:o}){return Po(eD.Provider,{value:e,children:o})}function tD({draw:e}){return Po(Ug,{children:e(Et(eD))})}function x0e(){return Et(Si)??null}function rD({contained:e,framedClass:o,fillClass:t,columnClass:r,style:a,tabLabel:n,pad:s,border:l,outerAttrs:i,box:d=!1,edge:f=!1,outerStyle:x,outerClass:u,bleed:h=!1,siteSide:I=!1,part:S,children:v}){let O=Et(yi),R=vt(),T=R?` ${Sr(I?"site":"box").onceFrame}`:"",g=Et(zg),w=KR(e,O),_=w&&!g,E=ot(),D=!!(l&&_),b=D?u:Co(u??"",E.className)||void 0,F=D||!E.className?i:{...i,...E.attrs},y=s?na(s,_):null,k=y&&R?{root:y.root?{...y.root,className:Jo(y.root.className,!0)}:null,outer:y.outer?{...y.outer,className:Jo(y.outer.className,!0)}:null}:y,P=k?.root??null,C=l&&!_?l:null,B=d&&!h?R?`${rx} ${SC(I?"site":"box")}`:rx:null,H=[_?`${o}${T}`:t,_?B:null,P?.className,C?Ik:null].filter(Boolean).join(" "),q=Pq(h&&_,P||C?{...a,...P?.style,...C}:a),$=Et(Si),le=Et(ZR),pe=d&&f&&$===void 0?{gutter:w,...s?{pad:s.values}:{},beyond:w&&g?XR(le):"0px",...I&&w?{site:!0}:{}}:null,ee=d?Po(Kg.Provider,{value:!0,children:Po(Si.Provider,{value:pe,children:v})}):v,xe=w?Po(yi.Provider,{value:!0,children:ee}):ee,oe=k?.outer??null,ie=F&&Object.keys(F).length>0?F:null,ge=Po("div",{...oe?null:ie,className:!oe&&b?H?`${H} ${b}`:b:H,style:oe||!x?q:{...q,...x},"data-tab-label":n,...oe?null:S,children:g?Po(zg.Provider,{value:!1,children:w&&!h?Po("div",{className:B?`${r}${T} ${B}`:`${r}${T}`,children:xe}):xe}):xe}),Re=oe?Po("div",{...ie,className:b?`${oe.className} ${b}`:oe.className,style:x?{...oe.style,...x}:oe.style,...S,children:ge}):ge;return E.scope(l&&_?Po("div",{className:Co(Yd,E.className),style:{display:"contents",...l},...E.attrs,children:Re}):Re)}function Pq(e,o){return e?{...o,paddingLeft:0,paddingRight:0}:o}import{jsx as Tq}from"react/jsx-runtime";function aD({children:e}){return Tq(de,{className:KA,children:e})}function Eq({side:e,children:o}){return qg()?uu(aD,{children:uu(de,{className:qA(e),children:o})}):uu(Oq,{children:o})}var nD={name:"boxJoin",applies:(e,o,t)=>e===K&&!!t&&typeof t.render=="function",draw(e){let o=e.render;e.render=t=>{let r=Lp(t.join);return r?uu(Eq,{side:r,children:o(t)}):o(t)}}};var sD=(e,o)=>e.fields?.[o]?.type==="slot",_q=(e,o)=>sD(o,Pe)||Od(e).some(t=>sD(o,t)),lD={name:"cardTemplateOnInsert",applies:(e,o,t)=>_q(e,t),panel(e,o){let t=e.resolveData;e.resolveData=(r,a)=>{let n=r.props??{},s=a?.trigger,l=s==="insert"?kd(o,n):s==="copy"?Cd(o,n):n,i=l===n?r:{...r,props:l};return t?t(i,a):i}}};import{jsx as wi}from"react/jsx-runtime";import{Fragment as Wa,jsx as He,jsxs as Vg}from"react/jsx-runtime";import{createContext as Yg,useContext as Kr,useId as Dq}from"react";import{REPEAT_ATTRIBUTE as Nq,REPEAT_INDEX_ATTRIBUTE as Mq}from"efficient-easel/draw";import{jsx as L0e}from"react/jsx-runtime";import{createContext as Bq,useContext as cD,useMemo as Lq}from"react";var iD="title";function dD(e){return`${e}Alt`}function Aq(e){let o=e.find(t=>typeof t?.url=="string");return{url:o?.url??"",alt:typeof o?.alt=="string"?o.alt:""}}function fD(e,o){let t={[iD]: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}=Aq(n);t[r]=s,t[dD(r)]=l}}return t}function Fq(e,o){return typeof o!="string"?o.flatMap(t=>Fq(e,t)):e===Cf||!vP(e)?[]:o==="image"?Px(e,["images"]).map(t=>({key:t.key,label:t.label,kind:"image",alt:dD(t.key)})):o!=="text"?[]:[{key:iD,label:c("Title")},...Px(e,["text","date"]).map(t=>({key:t.key,label:t.label}))]}var pD=Bq(null);function Rq(){return cD(pD)?.record??null}function M0e(e){let o=Rq();return o!==null&&o.type===e?o:null}function uD(){let e=cD(pD);return Lq(()=>e&&e.record.type!==Cf?fD(e.record,e.dateWords):null,[e])}function Z0e({props:e,editing:o,children:t}){let r=Kr(bi);return!o&&Xm(e,r?.row)?null:He(Wa,{children:t})}var xu=Yg(null);function J0e({field:e,children:o}){let t=Kr(xu);return He(Wa,{children:o(t&&t.field===e?t.id:void 0)})}function Hq(e,o){return e?.find(t=>!!o[t.field]?.trim()&&!t.gates.some(r=>Xm({[on]:r},o)))?.field??""}var bi=Yg(null),mu=Yg(null),Wq={label:"text-[length:var(--size-label,12px)]"},$q=`flex min-h-6 items-center border border-dashed border-line px-2 py-1 ${Wq.label} text-fg-dim`;function Q0e({name:e,label:o,editing:t}){let r=Kr(mu)?.(e),a=of()!=="";return r!=null&&r!==!1?a?He(de,{className:"contents",children:r}):He(Wa,{children:r}):t?He(de,{className:$q,children:c("Shown by the section: {name}",{name:o?.trim()||e})}):null}function eOe(){return Kr(bi)}function Xg({type:e,props:o,children:t}){let r=Kr(bi),a=uD(),n=r?.row??a;return He(Wa,{children:t(Ew(e,o,n,r?.ownerType,r?.fields,r?.slot),r,n)})}function zq({attrs:e,selected:o,hover:t,action:r,titleField:a,children:n}){let s=Dq(),{press:l,disabled:i}=r,d=r.label?.trim(),f=!d&&a?{id:`${s}-title`,field:a}:null;return Vg("div",{...e,id:s,className:t&&!i?`${yh} ${PE}`:yh,children:[He("button",{type:"button",[EE]:"",className:i?FE:AE,"aria-pressed":o,...d?{"aria-label":d}:{"aria-labelledby":f?.id??s},...i?{"aria-disabled":!0,tabIndex:-1}:null,onClick:i?void 0:l}),He(xu.Provider,{value:f,children:n})]})}function oOe({ownerId:e,ownerType:o,slot:t=Pe,Template:r,rows:a,items:n,fields:s,states:l,stateLine:i,actions:d,pressTitles:f,previewHover:x,fallback:u,copyAttrs:h,wrapCopy:I,rowKey:S,hostParts:v,children:O}){let R=Kr(bi),T=Kr(xu),g=Kr(mu);if(!r||(r.blockCount??0)<=0)return He(Wa,{children:u});let w=R!==null,_=Cw(o),E=x??R?.previewHover,D=r.blockCount===1?He(zk,{children:He(r,{className:Bk})}):He(r,{}),b=new Set,F=(k,P)=>{if(!S)return P;let C=S(k,P);for(;b.has(C);)C=`${C}#${P}`;return b.add(C),C},y=a.map((k,P)=>{let C=l?.[P],B={row:k,index:P,ownerType:o,slot:t,item:n?.[P],nested:w,...s?{fields:s}:null,...C?{state:C}:null,..._?{linesBetween:_}:null,...E?{previewHover:E}:null},H=jh(C)?Vg(Wa,{children:[D,i==="under"?He("span",{"aria-hidden":"true",className:wE}):Uh(C)?Vg("span",{"aria-hidden":"true",className:CE,children:[He("span",{className:kE}),He("span",{className:vE})]}):He("span",{"aria-hidden":"true",className:bE})]}):D,q={[Nq]:`${e}:${t}`,[Mq]:P,...typeof h=="function"?h(B):h},$=d?.[P],le=TE(C,i),pe=$?He(zq,{attrs:{...q,...le},selected:C?.selected===!0,hover:i!=="under",action:$,titleField:Hq(f,k),children:H}):T?He("div",{...q,...le,children:He(xu.Provider,{value:null,children:H})}):He("div",{...q,...le,children:H}),ee=I?I(pe,B):pe;return He(bi.Provider,{value:B,children:v?He(mu.Provider,{value:xe=>v(B,xe),children:ee}):g?He(mu.Provider,{value:null,children:ee}):ee},F(B,P))});return He(Wa,{children:O(y)})}var mD={name:"clickableParts",applies:(e,o,t)=>typeof t?.render=="function"&&e!==ro&&e!==pn,draw(e,o,t){let r=e,a=()=>r.textParts??r.fields,n=r.partSizeCaps,s=r.render,l=t.inspector?.PartAnchors,i=(d,f)=>mv(a(),f,x=>Tw(o,d,x));r.render=d=>{let f=Tv(d),x=HO(d);return d.editor?.isEditing&&l?wi(Xg,{type:o,props:d,children:u=>wi(l,{needles:i(d,u),styles:f,motions:x,type:o,sizeCaps:n,children:wi(FL,{value:n,children:s(d)})})}):!Object.keys(f).length&&!Object.keys(x).length?s(d):wi(Xg,{type:o,props:d,children:u=>wi(KO,{needles:i(d,u),styles:f,motions:x,type:o,atEdge:o===K,sizeCaps:n,children:s(d)})})}}};import{jsx as xD}from"react/jsx-runtime";var hD={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=hk(t.sectionCorners,t.sectionCornerSides,t.sectionCornersUnit),a=o(t);return r?xD(de,{className:"sf-section-corners",style:{display:"contents",...r},children:a}):a}}},Zg=["CollectionCard"],ID={name:"cardCorners",applies:(e,o,t)=>Zg.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=$P(t.cardCorners,t.cardCornerSides,t.cardCornersUnit),a=o(t);return r?xD(de,{className:"sf-card-corners",style:{display:"contents",...r},children:a}):a}}};var gD={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 yD={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 SD,jsxs as Uq}from"react/jsx-runtime";var jq="Flex",bD=(e,o)=>e[o]!==void 0&&e[o]!==!1&&!e.editor?.isEditing,wD={name:"headCore",applies:(e,o,t)=>typeof t?.render=="function",draw(e){let o=e.render;e.render=t=>bD(t,Hl)?SD(de,{className:Mc,children:t[Hl]==="empty"?null:o(t)}):o(t)}},CD={name:"headBox",applies:(e,o,t)=>e===jq&&typeof t?.render=="function",draw(e){let o=e.render;e.render=t=>bD(t,Ml)?Uq(de,{className:Hc,children:[SD(Wc,{}),o(t)]}):o(t)}};import{createElement as Gq}from"react";var kD={name:"hiddenNodes",applies:(e,o,t)=>typeof t?.render=="function",draw(e,o,t){let r=o===K?"edge":t.isSection(o)?"section":"by-box",a=e.render;e.render=n=>{if(tr(n))return null;let s=ll(n),l=Wk(s,Yv(n),{sectionClassName:ll(n,{atSectionLine:!0}),line:r});return Gq(Nk.Provider,{value:l},a(n))}}};import{jsx as Yq}from"react/jsx-runtime";import{createContext as PD,createElement as vD,useContext as Kq}from"react";var TD=PD(null),qq=PD(!1),_Oe=TD.Provider;function Vq(e,o,t){return e===void 0||e===""||o===null||o.length===0||!t.includes(e)?!0:o.includes(e)}function OD({name:e,editing:o,children:t}){let r=Kq(TD);return o||Vq(e,r?.selected??null,r?.known??[])?t:vD("div",{hidden:!0,style:{display:"none"}},vD(qq.Provider,{value:!0},t))}var Xq="Flex",ED={name:"showFor",applies:(e,o,t)=>e===Xq&&typeof t?.render=="function",draw(e){let o=e.render;e.render=t=>{let r=XE(t[Gn])?.name;if(r===void 0)return o(t);let a=!!t.editor?.isEditing;return Yq(OD,{name:r,editing:a,children:o(t)})}}};var _D=vf.mediaFields,Zq=e=>LP(e)?e.src:e;function Jq(e,o){let t=o;for(let r of z(_D,e)??[])t=RP(t,r,Zq);return t}var AD={name:"mediaValues",applies:(e,o,t)=>typeof t?.render=="function"&&(z(_D,e)?.length??0)>0,draw(e,o){let t=e.render;e.render=r=>t(Jq(o,r))}};import{jsx as Ci,Fragment as FD,jsxs as BD}from"react/jsx-runtime";var Qq="!grow-0 !shrink-0 !basis-0",e9=["[.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(" "),o9="flex flex-col w-full min-w-0 [&>*]:grow";function LD({anchor:e}){let o=fa(e),t=vr(),r=of();return o?Ci("span",{id:o,className:Co(t?`sf-section-anchor ${Qq} ${e9}`:"sf-section-anchor",r),"aria-hidden":"true"}):null}function t9({anchor:e,copiesInBox:o,children:t}){let r=rf()?.columnsRow===!0,a=$k(),n=fa(e)!=="";return o?Ci(FD,{children:t}):r&&!a&&n?BD(de,{className:o9,children:[Ci(LD,{anchor:e}),t]}):BD(FD,{children:[Ci(LD,{anchor:e}),t]})}var RD={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=>Ci(t9,{anchor:r.anchor,copiesInBox:qo(o,r),children:t(r)})}};import{jsx as r9}from"react/jsx-runtime";var DD=Object.fromEntries(Ub.map(e=>[e,"picture"])),a9={[K]:"box",Ticker:"marquee",...Object.fromEntries(md.map(e=>[e,"cards"])),...DD},ND=(e,o)=>!jd.has(e)&&!!o&&typeof o.render=="function";function MD(e,o,t,r){e.fields={...e.fields,...t.animationTabFields(o,r)}}function HD(e,o){let t=e,r=t.render;t.render=a=>{let n=yn(a);return!n||qo(o,a)?r(a):r9(vc,{views:n,editing:!!a.editor?.isEditing,takesViewHide:!0,atEdge:o===K,children:r(a)})}}var WD={name:"sectionAnimation",applies:(e,o,t)=>o.isSection(e)&&ND(e,t),panel:(e,o,t)=>MD(e,z(a9,o)??"section",t,o),draw:(e,o)=>HD(e,o)},$D={name:"blockEntrance",applies:(e,o,t)=>!o.isSection(e)&&ND(e,t),panel:(e,o,t)=>MD(e,z(DD,o)??"block",t,o),draw:(e,o)=>HD(e,o)};import{jsx as n9}from"react/jsx-runtime";var zD=(e,o)=>!jd.has(e)&&!!o&&typeof o.render=="function";function s9(e){let o=vh.filter(t=>t.block===e);return o.length===1?o[0].focus:void 0}function UD(e,o){let t=e,r=t.render,a=s9(o),n=e.drawsPictures===!0;t.render=s=>{let l=$n(s);return!l||qo(o,s)?r(s):n9(qc,{views:l,...a?{origins:NO(s,a)}:{},takesViewHide:!0,atEdge:o===K,zoomInside:n?"picture":"layer",children:r(s)})}}var jD={name:"sectionScroll",applies:(e,o,t)=>o.isSection(e)&&zD(e,t),draw:(e,o)=>UD(e,o)},GD={name:"blockScroll",applies:(e,o,t)=>!o.isSection(e)&&zD(e,t),draw:(e,o)=>UD(e,o)};import{jsx as l9}from"react/jsx-runtime";import{createElement as i9}from"react";var Jg=["sectionHeightMode","sectionHeightModeTablet","sectionHeightModePhone"];function d9(e,o){let t=e.props??{};return Jg.some(r=>t[r]==="fill")?!0:("parent"in o?o.parent:Vt(o.appState,t.id))?.type===K}var Qg={name:"sectionHeight",applies:(e,o,t)=>o.isSection(e)&&!Fk.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||!Jg.some(f=>f in i))return i;let d=n.get(i);if(!d){d={...i};for(let f of Jg)f in d&&(d[f]=a[f]);n.set(i,d)}return d},l=e.resolveFields;e.resolveFields=(i,d)=>{let f=l?l(i,d):d.fields,x=u=>d9(i??{},d)?s(u??d.fields):u;return f instanceof Promise?f.then(x):x(f)}},draw(e,o){let t=e.render;e.render=r=>{if(qo(o,r))return t(r);let a=Dk(r);return a?l9(Pr,{className:a.className,style:a.style,...o===K?{attrs:Zb}:null,children:t(r)}):t(r)}}},KD={name:"sectionHeightFillRoot",applies:Qg.applies,draw(e,o){let t=e.render;e.render=r=>{let a=qo(o,r)?null:Hk(Rk(r),Lk(r).join(" "));return i9(Mk.Provider,{value:a},t(r))}}};import{jsx as hu}from"react/jsx-runtime";import{PIN_ATTR as qD,PIN_FRAME_ATTR as f9}from"efficient-shell/format";var YD=ZD("sectionSticky",(e,o,t)=>o.isSection(e)&&!uk.has(e)&&!!t&&typeof t.render=="function",!0),XD=ZD("cardSticky",(e,o,t)=>Zg.includes(e)&&!!t&&typeof t.render=="function",!1);function ZD(e,o,t){return{name:e,applies:o,panel(r,a,n){let s=cx.has(a);r.fields=p9(r.fields??{},Zo(n.stickFields({intro:s,screens:t,above:t}),u9(s))),t&&Mt(r,{heldByANode:lu})},draw(r,a){let n=r.render,s=cx.has(a);r.render=l=>{let i=px(l,{atScreenTop:s,above:t});if(!i)return n(l);let d=x=>{let u=hu(nf,{children:n(l)});return hu(de,{...x.attrs,style:x.style,children:x.attrs[qD]===""?hu("div",{[f9]:"",children:u}):u})},f=t?px(l,{atScreenTop:s,track:t,above:!0}):i;return!f||f.attrs[qD]!==""?d(i):hu(us,{own:()=>d(f),followed:()=>d(i)})}}}}var VD=[St,ss],c9="_gStick";function p9(e,o){let t=Object.keys(e),r=e[Wn];if(!r){let O=t.findIndex(R=>VD.includes(R));return O<0?{...e,...o}:Object.fromEntries([...t.slice(0,O).map(R=>[R,e[R]]),...Object.entries(o),...t.slice(O).map(R=>[R,e[R]])])}let{[c9]: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),f=t.indexOf(Wn),x=t.findIndex((O,R)=>R>f&&VD.includes(O)),u=x<0?t.length:x,h=t.indexOf(Pc),I=h>f&&h<u?h:u,S=O=>[O,O===Wn?{...r,dot:{any:d}}:e[O]],v=[...t.slice(0,I).map(S),...l,...t.slice(I,u).map(S),...i,...t.slice(u).map(S)];return Object.fromEntries(v)}function u9(e){let o=i=>({field:i,in:[!0,!1]}),t=i=>e&&i==="stickTop"?{any:[{field:i,is:!0},mk]}:{field:i,is:!0},r=i=>({field:i,is:!0}),a=i=>({all:[i,hi,{not:{field:Qs,is:!0}}]}),[n,s,l]=dk;return[[["stickTopDistance"],t("stickTop")],[["stickTopDistanceTablet"],er(["stickTopTablet","stickTop"],o,t)],[["stickTopDistancePhone"],er(["stickTopPhone","stickTopTablet","stickTop"],o,t)],[[n],a(r("stickTop"))],[[s],a(er(["stickTopTablet","stickTop"],o,r))],[[l],a(er(["stickTopPhone","stickTopTablet","stickTop"],o,r))],[[qd],Vd],[[Qs],Vd],[[ck],a(Vd)]]}import{jsx as m9}from"react/jsx-runtime";var JD={name:"sectionBorder",applies:(e,o,t)=>o.isSection(e)&&!!t&&typeof t.render=="function",draw(e,o){if(Sc.has(o))return;let t=e.render;e.render=r=>{let a=Sk(r.sectionBorder,r.sectionBorderPhone,r.sectionBorderTablet,yk(r)),n=t(r);return a?m9(de,{className:Yd,style:{display:"contents",...a},children:n}):n}}};import{jsx as ey}from"react/jsx-runtime";var QD={name:"sectionTheme",applies:(e,o,t)=>o.isSection(e)&&!iC.has(e)&&!!t&&typeof t.render=="function",panel(e,o,t){let{sectionThemeFields:r,SECTION_THEME_FOLLOW_LABEL:a}=t,n=ox.has(o);e.fields={...e.fields,...n?r(Ld,a):r()}},draw(e,o){let t=ox.has(o),r=e.render;e.render=a=>{let n=fC(t?{...a,sectionAccent:Ld(a.sectionAccent)}:a),s=r(a);if(!n)return s;let l=d=>ey(Pr,{className:n.className,style:d,children:s}),i=n.style;return qo(o,a)?ey("div",{className:n.className,style:{...i,display:"contents"},children:s}):cu(o,a)!=="content"?l(i):ey(us,{own:()=>l({...i,...js(Ro)}),followed:()=>l(i)})}}},eN={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(Ld,a)})}};import{jsx as Ke}from"react/jsx-runtime";var oN=null;function oy(e){oN=e}function tN(){return oN}import{jsx as x9}from"react/jsx-runtime";var h9="mx-auto w-full max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)]",rN=Sr("box").frame,ki=`${h9} ${rN}`,I9=Sr("site").frame,g9=Sr("none").frame;function VEe(e){let o=e===!0?"site":e===!1?"box":e;return o==="none"?g9:o==="site"?I9:rN}var y9="mx-auto w-full max-w-[1280px] px-[60px]",S9="max-[960px]:px-6",YEe=`${y9} ${S9}`;function XEe({contained:e,className:o="",style:t,pad:r,fillWidth:a="w-full",part:n,children:s}){return x9(rD,{contained:e,framedClass:`${ki} ${o}`,fillClass:`${a} ${o}`,columnClass:ki,style:t,pad:r,part:n,children:s})}var ms="--sf-sw-site",b9="--sf-sw-content",w9="--sf-bg-cap",C9="contents [--sf-site-width:var(--sf-sw-content)] max-view-wide:[--sf-site-width:var(--sf-sw-site)]",ty=({own:e,content:o,siteContent:t})=>e===!0&&o==="full"&&t!=="full",nN="contents view-wide:[--sf-site-width:100vw]",ry=({held:e},o,t)=>e?t:Ke(de,{className:o,children:t}),k9=`contents view-wide:[--sf-site-width:100vw] ${dB} view-wide:[--sf-site-gutter:var(--intro-edge)]`,ay=(e,o,t)=>o==="content"?`min(${mn(e,t)},var(${ms}))`:mn(e,t);function vi({content:e,contentMax:o,contentMaxUnit:t},r){return e==="full"?r!=="content"?Gs:null:o===null?null:ay(o,r,t)}function Pi(e,o){return o===null?e:Ke(de,{className:"contents",style:{[ms]:Ro},children:Ke(de,{className:C9,style:{[b9]:o},children:e})})}var v9="--sf-content-cap",P9="contents max-view-wide:[--sf-content-cap:none]";function T9({content:e,contentMax:o,contentMaxUnit:t},r){return e==="full"?null:o!==null?ay(o,r,t):r==="content"?null:`var(${ms})`}function O9(e,o){return o===null?e:Ke(de,{className:"contents",style:{[ms]:Ro},children:Ke(de,{className:P9,style:{[v9]:o},children:e})})}var sN=`var(${ms},${Ro})`,qr=(e,o,t="")=>e==="content"?Ke(de,{className:t||void 0,style:js(Ro),children:Ke(Gg,{ground:sN,children:o})}):o;function lN(e,o,t,r,a){if(ty(t))return qr(r,ry(t,nN,Ke(jg,{children:e({...o,contained:!0})})),a);if(t.content==="full")return qr(r,e({...o,contained:!1}),a);let n=vi(t,r);return r==="content"&&n===null&&!t.own?e({...o,contained:!0}):qr(r,Pi(Ke(jg,{children:e({...o,contained:!0})}),n),a)}function E9(e,o,t,r,a){if(t==="hero"){let l=Pi(e(o),vi(r,r.band));return r.band==="full"?Ke(de,{style:{[AC]:"none",[FC]:"initial",[BC]:"initial"},children:l}):r.band==="content"?Ke(de,{style:Nd(!0),children:l}):l}let n=r.band??"full",s=Cr(o,{atSectionLine:!a});if(t==="rawMarkup"){if(r.content==="full")return qr(n,e(o),s);let l=r.contentMax===null?Ro:ay(r.contentMax,n,r.contentMaxUnit);return Ke(de,{className:"contents",style:{[ms]:Ro},children:qr(n,Ke(de,{className:s||void 0,style:js(l),children:e(o)}),s)})}if(t==="scrollOver"){let l=r.content==="full",i=ty(r)?ry(r,k9,e({...o,fullWidth:!1})):Pi(e({...o,fullWidth:l}),l?null:vi(r,n));return n==="content"?Ke(de,{className:"contents",style:{[w9]:Ro},children:i}):i}switch(t){case"both":return qr(n,O9(e(o),T9(r,n)),s);case"contained":return lN(e,o,r,n,s);case"contentColumn":case"contentFull":case"productGrid":{let l=ty(r),i=r.content==="full"&&!l?"full":"page",d=l?ry(r,nN,e({...o,widthMode:i})):Pi(e({...o,widthMode:i}),r.content==="full"?null:vi(r,n));return t==="productGrid"&&!r.own?n==="content"?Ke(Qf,{className:s?`${ki} ${s}`:ki,children:f=>Ke(de,{className:f,children:d})}):d:qr(n,d,s)}default:return qr(n,Pi(e(o),vi(r,n)),s)}}function aN(e,o,t,r,a){let n=a===K?"edge":"by-box",s=l=>E9(e,o,t,r,l);return n==="edge"?s(!0):Cr(o)===Cr(o,{atSectionLine:!0})?s(!1):Ke(tf,{line:n,draw:s})}function _9(e,o){let t=z(Ks,o);if(!t)return;let r=e.render;e.render=a=>{let n=Hd(a),s={band:n.background,content:n.content??"content",contentMax:null},l=()=>t==="rawMarkup"?r(a):Ke(tD,{draw:I=>I?.background==="content"?Ke(Gg,{ground:sN,children:i(I)}):i(I)}),i=I=>{let S=I?{...s,band:I.background==="content"?s.band:I.background??s.band,content:I.content??s.content,own:I.background==="full"||I.content!==null,held:!0,siteContent:s.content}:s,v=aN(r,a,t,S,o);if(!Gr(o))return v;let O=gi(a),R=O===void 0?S.content:O?"content":"full";return R===S.content?v:Ke(JR,{atTop:v,nested:lN(r,a,{...S,content:R,own:!1},S.band??"full",Cr(a))})},d=Ii(o,a);if(!NC(d))return l();let f=t==="rawMarkup",x=cu(o,a),u=d.content??(f?"full":s.content),h={band:x,content:x==="content"?"content":u,contentMax:d.contentMax,contentMaxUnit:d.contentMaxUnit,own:!f,siteContent:s.content};return Ke(us,{own:()=>Ke(oD,{value:{background:h.band,content:h.content},children:aN(r,a,t,h,o)}),followed:l})}}var A9={all:[hi,{not:{context:"runsEdgeToEdge",is:!0}}]},iN={name:"sectionWidth",applies:(e,o,t)=>Md(e)&&!!t&&typeof t.render=="function",panel(e,o,t){let r=t.sectionOwnWidthFields({drawsFullOnItsOwn:z(Ks,o)==="rawMarkup"}),a=Gr(o)?t.boxGutterFields():{},n={...e.fields,...a,...r},s=Gr(o)?cN(o,e,n,[Ha]):n;Mt(e,{heldByANode:lu}),Gr(o)&&Mt(e,{runsEdgeToEdge:(l,i)=>fu(rl(l.props??{},Aw(i.appState,l.props?.id)?.inCopy!==!1))}),e.fields=Lo(s,[Eo.background,Eo.content],Gr(o)?A9:hi)},draw(e,o){_9(e,o)}};function F9(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 B9=new Set(["Heading","Text","ImageBlock","ButtonBlock"]),dN={name:"containedWidth",applies:(e,o,t)=>B9.has(e)&&!!t&&typeof t.render=="function",panel(e,o,t){let r=t.widthField;e.fields=cN(o,e,{...e.fields,...r("page")});let a=e.resolveFields;e.resolveFields=(n,s)=>{let l=a?a(n,s):s.fields,i=ax(n?.props??{},"page"),d=f=>F9(f,i);return l&&typeof l.then=="function"?l.then(d):d(l)}},draw(e){let o=e.render;e.render=t=>{let{mode:r}=ax(t,"page");return o({...t,contained:r!=="full"})}}},L9={not:{context:"inHeroGroupRow",is:!0}},fN={name:"buttonAlignInRow",applies:e=>e==="ButtonBlock",panel(e){let o=e;o.fields=Lo(o.fields??{},["align"],L9),Mt(o,{inHeroGroupRow:(t,r)=>{let a=Vt(r.appState,t.props?.id);return!!a&&a.type==="HeroGroup"&&Pn("HeroGroup",a.props?.direction)==="row"}})}};function R9(e){return Object.values(e).some(o=>!!o&&typeof o=="object"&&o.type==="slot")}var D9={any:[]},N9={all:[{not:{context:"outsideBox",is:!0}},{not:{context:"insideSiteGutter",is:!0}}]},M9={not:{context:"widthCappedByParent",is:!0}};function cN(e,o,t,r=["widthMode"]){if(e==="ButtonBlock")return Lo(t,["_gWidth",...r],D9);if(R9(t)){let a=(n,s)=>qR(s.appState?.data?.content,n.props?.id,pu(tN()));return Mt(o,{outsideBox:(n,s)=>a(n,s)?.inBox!==!0,insideSiteGutter:(n,s)=>a(n,s)?.insideGutter}),Lo(t,r,N9)}return Mt(o,{widthCappedByParent:(a,n)=>"parent"in n?uw(n.parent):BR({props:a.props??{}},n)}),Lo(t,r,M9)}var H9=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"]),pN={name:"sectionGroups",applies:(e,o)=>o.isSection(e)&&(H9.has(e)||o.isHostBlock(e)),panel(e,o,t){let r=t.assignSectionGroups;e?.fields&&(e.fields=r(e.fields,o))}},W9=new Set(["HeroSlide","HeroGroup"]),uN={name:"blockGroups",applies:(e,o,t)=>W9.has(e)||!o.isSection(e)&&Bp in(t?.fields??{}),panel(e,o,t){let r=t.assignSectionGroups;e?.fields&&(e.fields=r(e.fields,o))}};import{jsx as ny}from"react/jsx-runtime";var $9=new Set(["Flex","Grid"]),mN=e=>Object.entries(e.fields??{}).filter(([,o])=>o?.type==="slot").map(([o])=>o),z9=(e,o)=>e.fields?.[o]?.ownPictures===!0,U9=["blockCount","blockIds"],j9=new WeakMap,G9=new WeakMap;function K9(e,o){let t=o?G9:j9,r=t.get(e);if(r)return r;let a=e,n=s=>ny(QR,{children:ny(nf,{ownPictures:o,children:ny(a,{...s})})});Object.assign(n,e);for(let s of U9)Object.defineProperty(n,s,{get:()=>e[s],configurable:!0,enumerable:!0});return t.set(e,n),n}var xN={name:"slotsStartAfresh",applies:(e,o,t)=>!$9.has(e)&&typeof t?.render=="function"&&mN(t).length>0,draw(e){let o=mN(e),t=e.render;e.render=r=>{let a={...r};for(let n of o){let s=r[n];typeof s=="function"&&(a[n]=K9(s,z9(e,n)))}return t(a)}}};var q9=new Set(["Form","Stats","Logos"]);function hN(){return[...q9]}function sy(e,o,t=[]){let r=new Set(e),a=cb.filter(d=>r.has(d)),n=a.filter(d=>d!=="Header"&&d!=="Footer"&&!hf.includes(d)),s=new Set([...o,...dd,...hN()]),l=a.filter(d=>!s.has(d)),i=new Set([...a,...t]);return{isSection:d=>i.has(d)&&!Pd(d),isHostBlock:()=>!1,sectionGroupAllow:n,contentSectionKeys:l}}var V9=[xN,AD,wD,OR,ER,uO,hD,JD,ID,hO,$D,GD,FR,iN,dN,fN,Qg,K0,RD,QD,WD,jD,YD,XD,nD,eN,jR,pN,uN,yD,gD,mD,CD,ED,KD,kD,TR,lD];function IN(e,o,t){let r=o;for(let a of V9)a.applies(e,t,r)&&(t.inspector&&a.panel?.(r,e,t.inspector,t),a.draw?.(r,e,t));return o}import{jsx as ly}from"react/jsx-runtime";import{ClockIcon as Y9,DurationIcon as X9}from"efficient-easel/icons";import{MOTION_TIMING as gN}from"efficient-shell/format";import{useSelectedHost as Z9}from"efficient-easel/easel";function xs(e){let{min:o,max:t,step:r,default:a}=gN[e].duration;return _r("Duration",ly(X9,{}),o,t,r,a,"s")}function hs(e){let{min:o,max:t,step:r,default:a}=gN[e].delay;return _r("Delay",ly(Y9,{}),o,t,r,a,"s")}function Is(e,o){let t=e.render,r=a=>{let n=Z9();return t({...a,value:o(a.value,n?.values)})};return{...e,render:a=>ly(r,{...a})}}function Iu({readsSpeed:e}){return Is(xs("loop"),(o,t)=>Fp({loopDuration:o,speed:e?t?.speed:void 0}))}function gu(){return Is(hs("loop"),e=>GA({loopDelay:e}))}import{jsx as no}from"react/jsx-runtime";import{DirectionDownIcon as J9,DirectionIcon as Q9,DirectionLeftIcon as eV,DirectionRightIcon as oV,DirectionUpIcon as tV,EntranceBounceIcon as rV,EntranceFadeIcon as aV,EntranceFlipIcon as nV,EntranceGlideIcon as sV,EntranceRevealIcon as lV,EntranceRiseIcon as iV,EntranceScaleIcon as dV,EntranceSpinIcon as fV,NoSymbolIcon as cV}from"efficient-easel/icons";import{NoControlMark as pV,noControlField as uV}from"efficient-easel/screen/lib/document/panel-no-control-mark";import{customize as mV,group as xV}from"efficient-easel/screen/lib/document/box-fields";import{ENTRANCE_FROM as hV,ENTRANCE_FROM_DEFAULT as SN,ENTRANCE_KINDS as bN,ENTRANCE_KINDS_WITH_FROM as IV,entranceAttrs as gV,playEntrance as yV,readEntrance as SV}from"efficient-shell/format";var bV={none:"None",fade:"Fade",rise:"Rise",scale:"Scale",glide:"Glide",bounce:"Bounce",flip:"Flip",reveal:"Reveal",spin:"Spin"},wV={top:"Top",bottom:"Bottom",left:"Left",right:"Right"},CV={top:()=>no(J9,{}),bottom:()=>no(tV,{}),left:()=>no(oV,{}),right:()=>no(eV,{})},wN="Entrance",dy=bN.filter(e=>e!=="none"),CN=e=>({any:[{field:Go.kind,in:e},{all:[{field:Go.kind,set:!1},{field:Ys,in:e}]}]}),yN=(e,o)=>er(Qo.slice(0,Qo.indexOf(e)+1).reverse().map(t=>et(Go.kind,t)),t=>({field:t,set:!0}),t=>t===Go.kind?CN(o):{field:t,in:o}),kV={any:[CN(dy),...Qo.slice(1).map(e=>({field:et(Go.kind,e),in:dy}))]},vV=Qo.flatMap(e=>[[[et(Go.from,e)],yN(e,IV)],[[et(Go.duration,e),et(Go.delay,e)],yN(e,dy)]]),PV={none:()=>no(cV,{}),fade:()=>no(aV,{}),rise:()=>no(iV,{}),scale:()=>no(dV,{}),glide:()=>no(sV,{}),bounce:()=>no(rV,{}),flip:()=>no(nV,{}),reveal:()=>no(lV,{}),spin:()=>no(fV,{})},kN="data-entrance-tile";function TV({kind:e}){let{attrs:o}=gV(SV(e,SN));return no("span",{className:"sf-entrance-stage",[kN]:e,children:no("i",{...o,children:PV[e]()})})}var OV=(e,o)=>{let t=e.querySelector(`[${kN}="${o}"] > i`);t&&yV(t)},EV="Effect",_V=()=>Rf(Go.kind,{label:wN,tileWord:EV,values:bN,fallback:"none",word:e=>bV[e],picture:e=>no(TV,{kind:e}),read:(e,o)=>Xs(e,o).kind,preview:OV}),iy=(e,o)=>Lf(Go[e],o,(t,r)=>Xs(t,r)[e]),AV=hV.map(e=>({label:wV[e],value:e,picture:CV[e]()}));function _t(){let e={[Bp]:xV(wN,{dot:kV}),..._V(),[Ys]:uV({type:"custom",render:()=>no(pV,{})},"always"),_cEntrance:mV(),...iy("from",Tn("From",no(Q9,{}),AV,SN)),...iy("duration",xs("entrance")),...iy("delay",hs("entrance"))};return Zo(e,vV)}import{jsx as ut}from"react/jsx-runtime";import{EntranceRevealIcon as FV,NoSymbolIcon as BV,PercentIcon as vN,ScrollFadeInIcon as LV,ScrollFadeOutIcon as RV,ScrollMoveDownIcon as DV,ScrollMoveUpIcon as NV,ScrollParallaxIcon as MV,ScrollZoomInIcon as HV,ScrollZoomOutIcon as WV,ZoomInIcon as $V}from"efficient-easel/icons";import{customize as zV,group as UV}from"efficient-easel/screen/lib/document/box-fields";import{SCROLL_EFFECTS as TN,SCROLL_EFFECTS_WITH_ZOOM as jV,SCROLL_END as GV,SCROLL_START as KV,SCROLL_ZOOM as qV}from"efficient-shell/format";var ON="Scroll",VV={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"},YV={none:()=>ut(BV,{}),"zoom-in":()=>ut(HV,{}),"zoom-out":()=>ut(WV,{}),"fade-in":()=>ut(LV,{}),"fade-out":()=>ut(RV,{}),"move-up":()=>ut(NV,{}),"move-down":()=>ut(DV,{}),reveal:()=>ut(FV,{}),parallax:()=>ut(MV,{})},XV="Effect",EN=TN.filter(e=>e!=="none"),PN=(e,o)=>er(Qo.slice(0,Qo.indexOf(e)+1).reverse().map(t=>et(uo.effect,t)),t=>({field:t,set:!0}),t=>({field:t,in:o})),ZV={any:Qo.map(e=>({field:et(uo.effect,e),in:EN}))},JV=Qo.flatMap(e=>[[[et(uo.zoom,e)],PN(e,jV)],[[et(uo.start,e),et(uo.end,e)],PN(e,EN)]]),QV=()=>Rf(uo.effect,{label:ON,tileWord:XV,values:TN,fallback:"none",word:e=>VV[e],picture:e=>YV[e](),read:(e,o)=>ir(e,o).effect}),fy=(e,o,t,r,a)=>Lf(e,_r(t,r,a.min,a.max,a.step,a.default,"%"),(n,s)=>ir(n,s)[o]);function $a(){let e={[Wn]:UV(ON,{dot:ZV}),...QV(),[Pc]:zV(),...fy(uo.zoom,"zoom","Zoom",ut($V,{}),qV),...fy(uo.start,"start","Start",ut(vN,{}),KV),...fy(uo.end,"end","End",ut(vN,{}),GV)};return Zo(e,JV)}import{jsx as _o}from"react/jsx-runtime";import{AccentIcon as eY,ContrastIcon as oY,EyeIcon as tY,ExpandIcon as rY,FinishIcon as aY,ImagesIcon as nY,NoSymbolIcon as AN,HoverLiftIcon as sY,HoverNextImageIcon as lY,HoverRotateIcon as iY,HoverZoomIcon as FN,OpacityIcon as dY}from"efficient-easel/icons";import{customize as fY,describedAs as BN,group as cY}from"efficient-easel/screen/lib/document/box-fields";import{effectTiles as LN}from"efficient-easel/screen/lib/document/effect-tiles";import{deviceField as ho}from"efficient-easel/screen/lib/document/device-fields";import{NoControlMark as pY,noControlField as uY}from"efficient-easel/screen/lib/document/panel-no-control-mark";var yu=e=>ho("desktop",cY("Hover",{dot:e})),RN=()=>ho("desktop",fY()),mY="What this does when a shopper points at it, or taps it on a phone.",xY="What this picture does when a shopper points at it. Black and white shows it in grey until then. A phone shows its colour.",hY="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.",IY="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.",gY="When this shows. On card hover shows it while a shopper points at the card. A phone always shows it.",yY="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.",SY="Which of the product's pictures the card shows.",bY="Same finish shows the photos of the finish the card shows, else the first group.",wY="Whole card hides the words under the photo. Picture keeps the words and swatches in view.",CY={none:()=>_o(AN,{}),nextImage:()=>_o(lY,{}),rotate:()=>_o(iY,{}),zoom:()=>_o(FN,{}),lift:()=>_o(sY,{}),mono:()=>_o(oY,{})};function cy(e,o){let t=LN({label:c("Hover effect"),options:e.map(r=>({value:r,label:c(Pm[r]),picture:CY[r]()})),fallback:o});return BN(t,{type:"select",label:"Hover effect",options:e.map(r=>({value:r,label:Pm[r]}))})}function DN(){return{[St]:yu({field:Xo,in:_m.filter(e=>e!=="none")}),[Xo]:ho("desktop",{...cy(_m,"none"),description:mY})}}function NN(e){let o=$b(e),t=hd(),r=GP(Fb);return{[St]:yu({any:[o,t]}),[Ge.kind]:ho("desktop",{...Is(cy(Eb,e),(a,n)=>Hb(n??{},e)),description:yY}),...py(t),[_b]:uY({type:"custom",render:()=>_o(pY,{})},"always"),_cHover:RN(),[Ge.angle]:ho("desktop",Ze(Is(r,a=>Wb(a)),o)),[Ge.duration]:ho("desktop",Ze(xs("hover"),o)),[Ge.delay]:ho("desktop",Ze(hs("hover"),o))}}function py(e){let o=UP("Type",_o(nY,{}),Bb.map(a=>({value:a,label:Lb[a]})),xd.kind),t=Tn("Group",_o(aY,{}),Rb.map(a=>({value:a,label:Db[a]})),xd.group),r=Tn("Covers",_o(rY,{}),Nb.map(a=>({value:a,label:Mb[a]})),xd.cover);return{[Ge.mediaKind]:ho("desktop",Ze({...o,description:SY},e)),[Ge.mediaGroup]:ho("desktop",Ze({...t,description:bY},e)),[Ge.cover]:ho("desktop",Ze({...r,description:wY},e))}}function uy(e,o="",t=Rm.includes(o)){let r=Dm(e),a=Vb(e);return{[St]:yu(r),[Ge.kind]:my(zb,e,xY),...Rm.includes(o)?py(hd()):{},_cHover:RN(),...t?MN():{},[Ge.duration]:ho("desktop",Ze(xs("hover"),a)),[Ge.delay]:ho("desktop",Ze(hs("hover"),a))}}function MN(e=!1){let o=a=>e?a:Ze(a,qb()),t=_r("Zoom",_o(FN,{}),nn.min,nn.max,nn.step,nn.min,nn.unit),r=_r("Darken on hover",_o(dY,{}),wn.min,wn.max,wn.step,wn.fallback,wn.unit);return{[Fm.zoom]:ho("desktop",o(t)),[Fm.darken]:ho("desktop",o(r))}}function my(e,o,t){let r=ho("desktop",{...Is(cy(e,o),a=>Gb({[Xo]:a},o,e)),description:t});return Object.assign(r,{[HN]:o})}var HN="sfPictureResting",_N=new WeakMap;function Y1e(e,o,t){let r=e[Ge.kind],a=r?.[HN];if(!r||!a)return e;let n=o.props?.[Xo]==="nextImage",s=n?null:_d(t.appState,o.props?.id);if(!n&&!md.includes(String(s?.type??"")))return e;let l=_N.get(e);return l||(l={...e,[Ge.kind]:my(Am,a,hY)},_N.set(e,l)),l}var kY="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.",vY={none:()=>_o(AN,{}),[Tm]:()=>_o(eY,{})},X1e=ho("desktop",{...BN(LN({label:c("Hover effect"),options:Om.map(e=>({value:e,label:c(Em[e]),picture:vY[e]()})),fallback:"none"}),{type:"select",label:"Hover effect",options:Om.map(e=>({value:e,label:Em[e]}))}),description:kY}),PY=ho("desktop",{...Tn("Show",_o(tY,{}),[{value:Lm,label:"Always"},{value:Bm,label:"On card hover"}],Lm),description:gY});function WN(){let e={any:[Dm("none"),{field:Xo,is:Tm},{field:oa,is:Bm}]},{[St]:o,[Ge.kind]:t,...r}=uy("none","",!0);return{[St]:yu(e),[Ge.kind]:t,[oa]:PY,...py(hd()),...r,...MN(!0)}}var Z1e=my(Am,"none",IY);import{jsx as Ti}from"react/jsx-runtime";import{isNodeList as _Y}from"efficient-easel/data";import{useEasel as AY}from"efficient-easel/easel";import{hiddenInView as FY,hiddenKeyOf as xy,hidePatch as BY,slotChildName as LY,slotChildRowName as RY}from"efficient-easel/draw";var TY=new Set(["BookingBox","SubmitBox"]);function OY(e){return typeof e=="string"&&TY.has(e)}var EY=QP(OY,LT);function Su(e,o){return EY(e)||mT(o)}var bu=(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 DY}from"efficient-easel/screen/lib/document/device-fields";import{NoControlMark as NY}from"efficient-easel/screen/lib/document/panel-no-control-mark";var $N="notCardOfTemplate",zN={not:{context:$N,is:!0}},hy={any:[gd,zN]},IAe={[$N]:(e,o)=>{let t=Zm(o.appState,e.props?.id);return t===void 0?void 0:t===null}};function wu(e){let o=e.props?.content;return _Y(o)?o:[]}var ku=(e,o)=>FY(e.props??{},o),MY=(e,o)=>e.props?.[xy(o)]!==void 0;function UN(e,o=()=>!1,t="desktop"){return wu(e).flatMap(r=>typeof r?.props?.id!="string"?[]:wu(r).length&&!ku(r,t)?UN(r,o,t):o(r)?[]:[r])}function HY(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 f=2;for(;n.has(`${i} ${f}`);)f+=1;d=`${i} ${f}`,n.add(d)}return s.add(i),{id:l.props.id,label:d,shown:!ku(l,r)}})}function Cu(e,o,t){let r=a=>t==="desktop"?ku(a,t):MY(a,t);return wu(e).flatMap(a=>r(a)?o(a)?[]:[a,...Cu(a,o,t)]:Cu(a,o,t))}function WY(e,o){let t={...e};for(let[r,a]of Object.entries(o))a===void 0||r===xy("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 Iy(e,o,t){let r=wu(e),a=!1,n=r.map(s=>{if(a)return s;let l=s;if(s?.props?.id===o){let i=WY(s.props,t(s.props));i!==s.props&&(l={...s,props:i})}else l=Iy(s,o,t);return a=l!==s,l});return a?{...e,props:{...e.props,content:n}}:e}function jN(e,o,t,r="desktop"){return Iy(e,o,a=>r==="desktop"&&ku({props:a},r)===!t?{}:BY(a,r,!t))}function $Y(e,o,t){return t==="desktop"?jN(e,o,!0,t):Iy(e,o,()=>({[xy(t)]:void 0}))}function zY(e,o,t,r,a,n){return LY(e).trim()?t(e):vw({ownerType:o,owner:r,fields:a,slot:n},Ht(e.props))?.label??t(e)}var UY="This page is read-only.";function jY({card:e,ownerType:o,owner:t,fields:r,slot:a,labelOf:n,write:s,readOnly:l,view:i="desktop"}){let d=u=>RY(u,n,an,void 0,bu),f=u=>Su(u.type,u),x=HY(e,u=>zY(u,o,d,t,r,a),f,i);return x.length?Ti(Hx,{parts:x,changed:Cu(e,f,i).length>0,shown:u=>x.find(h=>h.id===u)?.shown??!0,disabledReason:l?UY:void 0,onPress:(u,h)=>s(I=>jN(I,u,h,i)),onReset:()=>s(u=>Cu(u,f,i).reduce((h,I)=>$Y(h,String(I.props.id),i),u))}):Ti(NY,{})}function GY(){try{let e=AY(a=>a),o=e.config.components??{},t=e.selectedItem;if(!t)return null;let r=Zm(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:Fw(e.appState,r),slot:_w(e.appState,t.props?.id)??void 0}}catch{return null}}function KY({readOnly:e,view:o}){let t=GY(),r=fl();return t?Ti(jY,{...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}})}}):Ti(Hx,{parts:[],changed:!1,shown:()=>!0,onPress:()=>{},onReset:()=>{}})}function gAe(e){return Ze(DY(e,{type:"custom",render:({readOnly:o})=>Ti(KY,{readOnly:o,view:e})}),zN)}import{customize as tX}from"efficient-easel/screen/lib/document/box-fields";import{jsx as gy}from"react/jsx-runtime";import{DirectionIcon as qY,LoopMarqueeIcon as VY,NoSymbolIcon as YY}from"efficient-easel/icons";import{customize as XY,describedAs as ZY,group as JY}from"efficient-easel/screen/lib/document/box-fields";import{effectTiles as QY}from"efficient-easel/screen/lib/document/effect-tiles";function yy(){return ET("Direction",DI,ci,"A marquee cannot run diagonally, so the corners are not answers.",gy(qY,{}),OT)}var Sy=e=>JY("Loop",e?{dot:e}:void 0),eX={none:()=>gy(YY,{}),scroll:()=>gy(VY,{})};function oX(){let e=QY({label:c("Loop"),options:Ap.map(({value:o,label:t})=>({value:o,label:c(t),picture:eX[o]()})),fallback:RI});return ZY(e,{type:"select",label:"Loop",options:Ap.map(({value:o,label:t})=>({value:o,label:t}))})}function GN(){return{[ss]:Sy(fi),loop:oX(),_cLoop:XY(),scrollDirection:Ze(yy(),fi),loopDuration:Ze(Iu({readsSpeed:!1}),fi),loopDelay:Ze(gu(),fi)}}var KN={field:oa,set:!0};function rX(){let e=WN(),o=[St,Xo],t=Lo(e,Object.keys(e).filter(n=>!o.includes(n)&&n!==oa),gd),r=Lo(t,[oa],KN),a=Lo(r,[Xo],hy);return Lo(a,[St],{any:[hy,KN]})}function vu(e,o=""){switch(e){case"section":case"block":return{..._t(),...$a()};case"box":return{..._t(),...$a(),...GN(),...rX()};case"picture":return{..._t(),...$a(),...uy(jb(o),o)};case"textPart":return{..._t(),...$a(),...DN()};case"cards":return{..._t(),...$a(),...NN(Ab(o))};case"marquee":return{..._t(),...$a(),[ss]:Sy(),_cLoop:tX(),scrollDirection:yy(),loopDuration:Iu({readsSpeed:!0}),loopDelay:gu()}}}import{blockSizeFieldSet as VX}from"efficient-easel/screen/lib/document/block-size-fields";import{VIEW_KEY_ACCESS as YX}from"efficient-easel/screen/lib/document/box-fields";import{jsx as qN,Fragment as aX,jsxs as nX}from"react/jsx-runtime";import{useSelectedHost as VN}from"efficient-easel/easel";import{VIEW_TIERS as sX,viewKeyAt as lX}from"efficient-easel/draw";var YN=e=>sX.find(o=>Object.values(po).some(t=>lX(t,o)===e))??"desktop";function iX(e,o,t){let r=e(o),a=YN(t);return{top:Xd(r,"top",a),bottom:Xd(r,"bottom",a)}}var dX=e=>e.startsWith(po.bottom)?"bottom":"top";function fX(e,o,t,r){let a=dX(r);return o(t,Xd(e(t),a,YN(r)),a)}function cX({frameOf:e,note:o,rowKey:t}){let r=VN()?.values,a=r?fX(e,o,r,t):null;return a?qN("p",{className:"es-field-hint",children:a}):null}var pX=new Set(bn());function XN(e,o,t){let r=Ar({tablet:!0,siteSide:!0,...t?{label:t}:{},useFallback:a=>{let n=VN()?.values;return n?iX(e,n,a.name):{top:0,bottom:0}}});return Object.fromEntries(Object.entries(r).map(([a,n])=>{let s=n.render;return!pX.has(a)||typeof s!="function"?[a,n]:[a,{...n,render:l=>nX(aX,{children:[s(l),qN(cX,{frameOf:e,note:o,rowKey:a})]})}]}))}import{group as uX}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as mX,deviceMetaOf as QN}from"efficient-easel/screen/lib/document/device-fields";import{DESIGN_GROUPS as wy,SETTINGS_BUCKETS as xX}from"efficient-easel/panel";import{BUCKET_KEY as Io,DESIGN_GROUP_KEY as gs}from"efficient-easel/screen/lib/document/field-buckets";var Oi=xX;var hX="Editor only \u2014 not shown live",Cy={"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",[hX]:"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"},eM={"AlloyWheelsListing._gCards":"Design","Flex._gLink":"Link","LongRead._gLink":"Link"},oM={"Text._gSpacing":"Size","Heading._gSpacing":"Size"};function ZN(e,o,t){let r=`${e}.${o}`;return z(oM,r)??z(eM,r)??z(Cy,t)}function IX(e){return e==="Animation"?[Io.Animation]:[Io.Design,gs[e]]}function Pu(...e){let o=[];for(let t of e)for(let r of Object.values(t)){let a=QN(r),n=nr(a?a.inner:r),s=n?z(Cy,n.label):void 0;if(s)for(let l of IX(s))o.includes(l)||o.push(l)}return o}var tFe=[...Pu(Ar({tablet:!0,siteSide:!0}),_n("full"),An(),Fn(),cl()),...Object.keys(Ar({tablet:!0,siteSide:!0})),...Object.keys(_n("full")),...Object.keys(An()),...Object.keys(Fn()),...Object.keys(cl())],rFe=[...Pu(On()),...Object.keys(On())],aFe=[...Pu(En()),...Object.keys(En())],nFe=[...Pu(_t()),...Object.keys(_t())],sFe=Object.keys(FT()),lFe=Object.keys(BT()),gX={"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)"},tM={Content:["Content"],Size:["Size"],Design:["Design","Style"],Layout:["Layout"],Position:["Position"],Advanced:["Advanced"],Link:["Link"],Anchor:["Anchor"],Animation:["Animation"]},by={_gAnchor:"repeated the Anchor group heading above it (two tabs, 11.0.0)"};{let e={...Ar({tablet:!0,siteSide:!0}),..._n("full"),...An(),...Fn(),...On(),...En(),..._t()};for(let o of Object.keys(by)){let t=nr(e[o]),r=t?z(Cy,t.label):void 0;if(!t||t.level!==2||!r||!tM[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 yX=new Set(["_sContent","_sStyle","_sLayout","_sMedia"]),SX=new Map([[Io.Design,"Content"],[Io.Animation,"Animation"],...wy.map(e=>[gs[e],e])]);function bX(e){let o=`${e}.`;return Object.keys(gX).filter(t=>t.startsWith(o)).map(t=>t.slice(o.length))}function wX(e,o){let t=QN(e),r=uX(o);return t?mX(t.tier,r):r}function CX(e,o){let t=nr(o);return t?e==="Content"||e==="Animation"?ST(o,t.label):bT(o):o}function JN(e){return e==="Design"?wy:["Animation"]}function Tu(e,o){let t=[],r=new Set(bX(o)),a=new Set,n=!1,s=null;for(let[u,h]of Object.entries(e)){let I=nr(h);if(yX.has(u))throw new Error(`${o}.${u}: that key was a tab header until efficient-web-builder 11.0.0, when the panel moved to two tabs (Design \xB7 Animation). Its tab is gone, so the key may not come back. Give the heading a key of the section's own (\`_g\u2026\`), or open a Design group with its own key from efficient-easel's DESIGN_GROUP_KEY (\`[DESIGN_GROUP_KEY.Design]: section("Design")\`).`);let S=SX.get(u);if(S!==void 0){if(I?.level!==1)throw new Error(`${o}.${u}: that key is reserved for the ${S} heading of the settings panel, but this field is ${I?`a level-${I.level} "${I.label}" header`:"not a header"}, so it cannot serve as one. Rename the section's own field.`);(u===Io.Design||u===Io.Animation)&&(n=!0),t.push(s={place:S,entries:[],adopted:!0});continue}if(!I){s||t.push(s={place:"Content",entries:[]}),s.entries.push([u,h]);continue}if(r.has(u)||co(by,u)){let O=ZN(o,u,I.label);if(I.level!==2||!O||!tM[O].includes(I.label))throw new Error(`${o}.${u}: ${r.has(u)?"RETIRED":"INJECTED_RETIRED"} (lib/document/field-groups.ts) lists this sub-heading as one whose name repeats the place it sits in, but it is a level-${I.level} "${I.label}" header in the ${O??"(unclassified)"} place. Only a level-2 header whose label is one of its place's words (PLACE_WORDS) may be retired \u2014 anything else is a heading a merchant reads for its own sake. Fix the row or drop it.`);r.has(u)&&a.add(u),t.push(s={place:O,entries:[],uniform:co(by,u)});continue}let v=ZN(o,u,I.label);if(!v)throw new Error(`${o}.${u}: the inspector group "${I.label}" is not classified in LABEL_GROUP (lib/document/field-groups.ts), so there is no way to say which of ${[...wy,"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:v,entries:[[u,I.level===2?h:wX(h,I.label)]]})}let l=new Set(Object.entries(e).filter(([,u])=>nr(u)).map(([u])=>u));for(let[u,h]of[["BLOCK_KEY_GROUP",oM],["KEY_GROUP",eM]]){let I=Object.keys(h).filter(S=>S.startsWith(`${o}.`)).filter(S=>!l.has(S.slice(o.length+1))&&!r.has(S.slice(o.length+1)));if(I.length)throw new Error(`${o}: ${u} (lib/document/field-groups.ts) lists ${JSON.stringify(I)}, but no fold header by that key is in this section's panel. Either the heading was renamed or removed and the row is stale, or the row names the wrong key \u2014 an override that quietly matches nothing is worse than no override.`)}let i=n?[]:[...r].filter(u=>!a.has(u));if(i.length)throw new Error(`${o}: RETIRED (lib/document/field-groups.ts) lists ${JSON.stringify(i)}, but this section has no such fold header${i.length>1?"s":""}. Either the heading was renamed or removed and the row is stale, or the row names the wrong section \u2014 a list that quietly matches nothing is worse than no list.`);let d=new Set(t.filter(u=>u.entries.length>0).map(u=>u.place)),f=Oi.filter(u=>JN(u).some(h=>d.has(h))),x={};for(let u of f){x[Io[u]]=Ff(u,u===f[0]?f:null);for(let h of JN(u)){if(!d.has(h))continue;let I=t.filter(O=>O.place===h),S=I.findIndex(O=>O.adopted);S>0&&I.unshift(...I.splice(S,1));let v=I.filter(O=>O.uniform);if(v.length>0){let O=I.filter(T=>!T.uniform),R=I[0]?.adopted?1:0;I.splice(0,I.length,...O.slice(0,R),...v,...O.slice(R))}u==="Design"&&(x[gs[h]]=Lx(h));for(let O of I)for(let[R,T]of O.entries)x[R]=CX(h,T)}}return x}function rM(e){return Io.Design in e?e:{[Io.Design]:Ff("Design",null),[gs.Content]:Lx("Content"),...e}}function aM(e){return Oi.some(o=>Io[o]in e)}function Ou(e){let o=Oi.filter(r=>Io[r]in e);if(o.length===0)return e;let t={...e};for(let r of o)t[Io[r]]=Ff(r,r===o[0]?o:null);return t}import{jsx as Eu}from"react/jsx-runtime";import{WidthIcon as kX}from"efficient-easel/icons";import{SettingsField as vX,SettingsSwitch as PX}from"efficient-easel/panel";import{group as TX,iconOf as OX,sharedStyleKinds as EX}from"efficient-easel/screen/lib/document/box-fields";var _X="Gutter";function AX({value:e,onChange:o,labelId:t}){let r=pu(dl()),a=gi({[Ha]:e})??r,n=s=>o(s?r?void 0:$g:Wg);return Eu(vX,{label:c(_X),labelId:t,icon:OX(Eu(kX,{})),action:Eu(PX,{checked:a,onChange:n,ariaLabelledBy:t})})}function nM(){return EX({_gWidth:TX(Bf),[Ha]:{type:"custom",render:({value:e,onChange:o,id:t,name:r})=>Eu(AX,{value:e,onChange:o,labelId:`${t??r??Ha}-label`})}})}import{jsx as vy}from"react/jsx-runtime";import{group as FX,sharedStyleKinds as lM}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as BX}from"efficient-easel/screen/lib/document/device-fields";var LX="Content cannot be wider than the background.",ky=e=>c(e==="content"?"Content width":"Full width");function iM(e){let{siteWidth:o,sectionBackgroundWidth:t,sectionContentWidth:r,themeFromDocument:a}=ko(),n=Ie(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 RX={read:hn},DX={read:hn,drawsFullOnItsOwn:!0},NX={read:DC,clearOnContent:{fullWidth:void 0}};function MX({source:e}){let o=e.read(Nx()),t=fl(),r=iM(e);return vy(DT,{value:o.background??r.background,changed:o.background!==null,detail:ky(r.background),onChange:a=>t(MC(a)),onReset:()=>t(sx("background"))})}function HX({source:e}){let o=e.read(Nx()),t=fl(),r=i=>t({...i,...e.clearOnContent}),a=iM(e),n=(o.background??a.background)==="content",s=wT({row:nx,label:RT,grid:{min:xn.min,max:n?a.px:xn.max,step:xn.step},valueKey:Eo.contentMax,view:"desktop",numbersIn:()=>o.contentMax!==null}),l=o.content??a.content;return vy(NT,{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"?ky("full"):`${ky("content")} ${a.px}px`,fullClosed:n,hint:n?LX:void 0,onMode:i=>r(HC(i)),onPx:i=>r({...WC(i),...s?.unitPatch(!1)}),...s?{length:s}:{},onReset:()=>r(sx("content"))})}var sM=(e,o)=>BX("desktop",{type:"custom",render:()=>vy(e,{source:o})}),dM=e=>({[Eo.background]:sM(MX,e),[Eo.content]:sM(HX,e),[Eo.contentMax]:Dx(),...jP(nx,Eo.content)});function fM(e){let o=e?.drawsFullOnItsOwn?DX:RX;return lM({_gWidth:FX(Bf),...dM(o)})}function EFe(){return lM({...dM(NX),fullWidth:Dx()})}import{deviceMetaOf as pM}from"efficient-easel/screen/lib/document/device-fields";import{noControlMetaOf as WX}from"efficient-easel/screen/lib/document/panel-no-control-mark";function $X(e,o){let t=pM(o),r=t?t.inner:o;if(nr(r)||r?.customize===!0)return!1;if(r?.type==="slot")return!0;let a=WX(r);return a==="always"?!1:a==="authored-copy"?Zk(e):!0}function cM(e){let o=pM(e),t=o?o.inner:e,r=nr(t);return r?yT(t)?0:r.level:null}function zX(e,o,t){return t?o===0&&e===Io.Design||o===1&&e===gs.Content:!1}var UX=new WeakMap,jX=new WeakMap;function uM(e,o="section"){let t=o==="page"?jX:UX,r=t.get(e);if(r)return r;let a=Object.entries(e).map(([x,u])=>({key:x,field:u,level:cM(u),draws:$X(x,u)||o==="page"&&cM(u)===null&&gx(x,u)})),n=o==="section"&&a.some(x=>gx(x.key,x.field)),s=new Set;for(let x=0;x<a.length;x++){let u=a[x].level;if(u===null)continue;let h=0;for(let I=x+1;I<a.length;I++){let S=a[I].level;if(S!==null&&S<=u)break;a[I].draws&&(h+=1)}h===0&&!zX(a[x].key,u,n)&&s.add(a[x].key)}let l=n&&aM(e),i=l&&!(Io.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 f=Ou(l?rM(d):d);return t.set(e,f),f}import{isShown as GX,showWhenFactReaders as KX}from"efficient-shell/format";var mM=new WeakMap,qX=new Set(Object.values(Io));function xM(e,o,t,r={}){if(!e)return e;let a=o?.props??{},n=a.id,s=KX(r,o,t),l=BP(t,{...s,parentOffersPositions:()=>{let I=Vt(t.appState,n);return I===void 0?void 0:ok(I,n)},parentTileSlot:()=>{let I=Vt(t.appState,n);return I===void 0?void 0:tk(I,n)},heroGroupDepth:()=>$d(t.appState?.data,typeof n=="string"?n:"")}),i=[];for(let[I,S]of Object.entries(e)){let v=cw(S);!v||FP(v,"device")||GX(v,a,l)||i.push(I)}if(i.length===0)return e;let d=mM.get(e);d||mM.set(e,d=new Map);let f=i.join("\0"),x=d.get(f);if(x)return x;let u=new Set(i),h={};for(let[I,S]of Object.entries(e))u.has(I)||(h[I]=S);return i.some(I=>qX.has(I))&&(h=Ou(h)),d.set(f,h),h}var hM={spacingFields:PT,sidesPaddingFields:Ar,ownPaddingFields:XN,sectionShapeFields:En,cardShapeFields:CT,cellWidthFields:kT,widthField:_n,boxGutterFields:nM,sectionOwnWidthFields:fM,heightFields:An,anchorFields:Fn,customCssFields:TT,stickFields:cl,sectionThemeFields:On,animationTabFields:vu,blockSizeFields:({tablet:e,...o}={})=>VX({...o,shorten:!0,say:zP,lengthUnits:Pf,...e?{phone:YX}:{}}),assignSectionGroups:Tu,dropEmptyHeadings:uM,rowsShownForNode:xM,SECTION_THEME_FOLLOW_LABEL:cT,BLOCK_THEME_FOLLOW_LABEL:pT,PartAnchors:XL};function _u(e,o,t){if(!e)return e;let r=!1,a={};for(let[n,s]of Object.entries(e)){let l=s;if(s&&typeof s=="object")if(s.type==="slot")if(s.allow){let i=s.allow.filter(o);i.length!==s.allow.length&&(l={...s,allow:i})}else{let i=new Set(s.disallow??[]),d=t.filter(f=>!i.has(f));d.length>0&&(l={...s,disallow:[...s.disallow??[],...d]})}else{let i=_u(s.arrayFields,o,t),d=_u(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 XX(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=IN(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 ZX(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];JX(e,o,a);for(let n of a){let s=n.components.filter(Pd);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(!Td(n))continue;let s=vd(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 Py(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(...Py(e,o,s.arrayFields,`${l}.`),...Py(e,o,s.objectFields,`${l}.`))}return a}function JX(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=Py(pn,n,s?.fields);l.length>0&&r(`the slot ${l.map(i=>`"${i}"`).join(", ")}, whose allow list`)}}function IM(e,o){let t=Object.entries(o?.host??{}),r=o?.categories??[],a=Bg(o);if(ZX(e,t,r),!a&&t.length===0&&r.length===0)return e;let n=e.components,s=t.map(([x])=>x).filter(x=>x in n);if(s.length>0)throw new Error(`efficient-web-builder: blocks.host registers ${s.map(x=>`"${x}"`).join(", ")}, which ${s.length===1?"is already a block":"are already blocks"} of the editor. Give a host's block a type of its own.`);let l=x=>a?a.offers(x):!0,i=Object.keys(n).filter(x=>!l(x)),d={};for(let[x,u]of Object.entries(n)){let h=a?_u(u?.fields,l,i):u?.fields;d[x]=h===u?.fields?u:{...u,fields:h}}if(t.length>0){let x=new Set(t.map(([I])=>I)),u=e.categories?.structure?.components??[],h={...sy(Object.keys(n),u,x),isHostBlock:I=>x.has(I),inspector:hM};for(let[I,S]of t){let v=XX(I,S,h),O=_u(v.fields,l,i);d[I]=O===v.fields?v:{...v,fields:O}}}let f=[];for(let[x,u]of Object.entries(e.categories??{})){let h=u?.components??[],I=h.filter(l);I.length===h.length?f.push([x,u]):I.length>0&&f.push([x,{...u,components:I}])}for(let x of r){let u=x.components.filter(v=>v in d&&l(v));if(u.length===0)continue;let h=f.find(([v])=>v===x.key);if(h){let[,v]=h,O=new Set(v.components??[]);h[1]={...v,components:[...v.components??[],...u.filter(R=>!O.has(R))]};continue}let I=[x.key,{title:x.title,components:u}],S=x.before?f.findIndex(([v])=>v===x.before):-1;S===-1?f.push(I):f.splice(S,0,I)}return{...e,components:d,categories:Object.fromEntries(f)}}function gM(){let e=oZ();return QX(()=>IM(eZ(e),un(e)),[e])}import{jsx as Ey,Fragment as bZ,jsxs as wZ}from"react/jsx-runtime";import{useContext as CZ,useEffect as kZ,useMemo as Du,useRef as MM}from"react";import{EaselCanvas as vZ,repeatCopyAt as PZ,useEasel as TZ}from"efficient-easel/easel";import{jsx as Ty}from"react/jsx-runtime";import{useEffect as nZ,useState as sZ}from"react";import{Banner as lZ}from"efficient-shell/ui";import{useSyncExternalStore as tZ}from"react";import{useScreenDocument as rZ}from"efficient-easel/screen/components/ScreenDocumentContext";var aZ=()=>()=>{},yM=()=>null;function Au(e){return tZ(e?e.subscribe:aZ,e?e.state:yM,e?e.state:yM)}function Fu(){let{adapter:e}=rZ();return e?.pinnedChrome}var Bu={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."},iZ={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."},dZ=Bu.load,fZ=Bu.lock,cZ=Bu.conflict,pZ=Bu.save;function uZ(e){if(!e)return null;if(e.loadFailed)return c(dZ);if(e.lockHolder)return c(fZ,{name:e.lockHolder.name||c("Somebody else")});if(e.conflict)return c(cZ);if(e.saveFailed)return c(pZ);let o=e.sections?.[0];if(!o)return null;let t=o.title||c("A shared section"),r=o.holder?.name||c("Somebody else");return c(iZ[o.problem],{section:t,name:r})}function mZ({report:e}){let o=uZ(Au(e)),[t,r]=sZ(null);return nZ(()=>{o||r(null)},[o]),!o||t===o?null:Ty("aside",{className:"sf-canvas-notice",children:Ty(lZ,{tone:"warning",onDismiss:()=>r(o),children:o})})}function SM(){return Ty(mZ,{report:Fu()})}import{jsx as Ru}from"react/jsx-runtime";import{useState as DM}from"react";import{Banner as hZ,Button as IZ}from"efficient-shell/ui";import{UndoIcon as gZ}from"efficient-shell/icons/efficient";import{useScreenDocument as yZ}from"efficient-easel/screen/components/ScreenDocumentContext";import{useSyncExternalStore as CM}from"react";var Ei=!1,ys=null,Oy=new Set;function Ai(){for(let e of Oy)e()}function kM(e){return Oy.add(e),()=>{Oy.delete(e)}}function vM(){Ei||(Ei=!0,Ai())}function PM(){Ei&&(Ei=!1,Ai())}function bM(){return Ei}function TM(){return CM(kM,bM,bM)}function wM(){return ys}function Lu(){ys&&(ys=null,Ai())}function OM(){return CM(kM,wM,wM)}var _i=class extends Error{constructor(){super("The editor's last changes could not be saved, so nothing was restored."),this.name="HeldEditsNotSaved"}};async function EM(e,o,t,{flushSave:r,reload:a}){if(!await r())throw new _i;let n=await e.restore(o,t);return Ef(n.liveState),a(),n}async function _M({access:e,version:o,page:t,...r}){let a=await EM(e,o.id,t?{page:t.id}:{},r);ys={title:xZ(o,t??null),undo:a.undo},Ai()}async function AM({access:e,...o}){let t=ys?.undo;t&&(await EM(e,t,{},o),ys=null,Ai())}function FM(e){return e.name?e.name:e.kind==="draft_before_restore"?c("Draft before restore"):c("Version {n}",{n:e.number})}function xZ(e,o){return e.kind==="draft_before_restore"?c("Your drafts from before the restore are back"):o?c("{page} from version {n} is now your draft",{page:o.name,n:e.number}):c("Version {n} is now your draft",{n:e.number})}function BM(e){let o=e.changes.filter(r=>r.kind==="page").length,t=[...o?[Wt("{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(ex(),{type:"conjunction"}).format(t)}catch{return t.join(", ")}}function LM(e){return e.change==="take_down"?c("{name} (taken down)",{name:e.name}):e.name}function RM(e,o=new Date){let t=new Date(e);if(Number.isNaN(t.getTime()))return"";let r=ex(),a=new Intl.DateTimeFormat(r,{hour:"numeric",minute:"2-digit"}).format(t);if(t.toDateString()===o.toDateString())return c("Today, {time}",{time:a});let n=new Intl.DateTimeFormat(r,{day:"numeric",month:"short",...t.getFullYear()===o.getFullYear()?{}:{year:"numeric"}}).format(t);return c("{day}, {time}",{day:n,time:a})}import{useSettledAction as SZ}from"efficient-easel/easel";function NM(){let e=OM(),{adapter:o,flushSave:t,reloadFromServer:r}=yZ(),a=o.siteVersions,[n,s]=DM(!1),[l,i]=DM(!1),d=async()=>{if(!(!a||n)){s(!0),i(!1);try{await AM({access:a,flushSave:t,reload:r})}catch{i(!0)}finally{s(!1)}}},f=SZ({onPress:()=>{d()},busy:n});return e?Ru("aside",{className:"sf-canvas-notice",children:Ru(hZ,{tone:l?"danger":"info",title:e.title,onDismiss:Lu,action:a&&e.undo?Ru(IZ,{variant:"secondary",size:"sm",leftIcon:Ru(gZ,{}),loading:f.busy,disabled:f.busy,onClick:f.onPress,children:c("Undo")}):void 0,children:l?c("Undo did not work. Nothing changed. Try again."):c("Check it with Preview. Press Publish to put it live.")})}):null}import{decodePartId as OZ,REPEAT_ATTRIBUTE as _y,REPEAT_INDEX_ATTRIBUTE as Ay}from"efficient-easel/draw";import{usePreviewParts as EZ}from"efficient-easel/draw/client";import{ScreenDocumentContext as _Z}from"efficient-easel/screen/components/ScreenDocumentContext";function HM(e){let{mirrorHostStyles:o}=pl(),t=QT(),r=Fy(),a=dl(),n=CZ(_Z),s=tT(n?.docId??null),l=TZ(v=>v.appState.data),i=rT(s,l),d=JSON.stringify(i),f=Du(()=>i,[d]),x=Du(()=>({...e.metadata??t??{},...r,...f}),[e.metadata,t,r,f]);kZ(()=>(oy(a),()=>oy(null)),[a]);let u=MM(null),h=AZ(u),{onDocument:I}=e,S=v=>{u.current=v,I?.(v)};return wZ(bZ,{children:[Ey(NM,{}),Ey(SM,{}),Ey(vZ,{...e,onDocument:S,typing:h,metadata:x,height:"fill",mirrorStyles:o,frameWrapper:Yf})]})}function Fy(){let{sectionBackgroundWidth:e,themeFromDocument:o}=ko(),t=dl();return Du(()=>$C(o?null:e,t),[e,t,o])}function AZ(e){let o=Hf(),t=EZ(),r=MM({parts:t});return r.current={parts:t},Du(()=>{let a=(n,s)=>{let l=zf(n,o),i,d=null,f=s??(l?null:rh(null,e.current,n)),x=!l&&f?PZ(f):null,u=x?OZ(n):null;if(x&&f&&u?.propKey){l=jf({...x,nodeId:u.nodeId,key:u.propKey},o),i=u.propKey;let v=f.closest(`[${_y}][${Ay}]`),O=`[${_y}="${Uf(v?.getAttribute(_y)??"")}"][${Ay}="${Uf(v?.getAttribute(Ay)??"")}"]`;d=()=>(f.ownerDocument??e.current)?.querySelector(O)??null}if(!l)return null;let h=f,I=()=>(h=rh(h,d?d():h?.ownerDocument??e.current,n),h),S=I();return S?{element:I,value:l.value,rules:l.rules,multiline:l.multiline,skip:l.skip,write:l.write,key:i,toolbar:{offered:l.offered,colors:l.offered.length>0?lf(df(S)):void 0,colorNameOf:sf}}:null};return{at:n=>{let s=n.closest(`[${Ue}]`),l=s?.getAttribute(Ue);return s&&l?a(l,s):null},atSelection:()=>{let n=r.current.parts.selectedPartId;return n?a(n,null):null},onCopyText:n=>S0(n,o),copyValue:n=>y0(n,o),onChange:n=>{if(!n.typing){ah(null);return}let s=n.element.closest(`[${Ue}]`)?.getAttribute(Ue)??null;ah(s),s&&r.current.parts.selectedPartId!==s&&r.current.parts.select(s)}}},[o,e])}var Nu=[{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"]}],Ss="all",Mu="template";function WM(e){for(let o=0;o<Nu.length;o++){let t=Nu[o].slugs.indexOf(e);if(t>=0)return o*100+t}return Number.MAX_SAFE_INTEGER}function $M(e){return e.map((o,t)=>({s:o,i:t})).filter(({s:o})=>o.source==="library").sort((o,t)=>WM(o.s.slug)-WM(t.s.slug)||o.i-t.i).map(({s:o})=>o)}function By(e){return e.filter(o=>o.source==="template")}function zM(e){let o=new Set($M(e).map(t=>t.slug));return Nu.filter(t=>t.slugs.some(r=>o.has(r)))}function UM(e,o){if(e===Mu)return By(o);let t=$M(o);if(e===Ss)return t;let r=Nu.find(a=>a.key===e);return r?t.filter(a=>r.slugs.includes(a.slug)):[]}var jM=3;function GM(e,o){let t=Array.from({length:e},()=>[]);return o.forEach((r,a)=>t[a%e].push(r)),t}function YM({open:e,onClose:o,takenSlugs:t,onCreated:r}){let a=NZ(),{adapter:n,siteId:s,templateId:l}=DZ(),i=Oo(a).pages,d=!l&&!!(i.starters&&i.createFromStarter),f=LZ(()=>s?{siteId:s}:{},[s]),x=gM(),u=Fy(),[h,I]=Ly(null),[S,v]=Ly(Ss),[O,R]=Ly(null),T=RZ(null),g=BZ();FZ(()=>{if(!e)return;if(v(Ss),!d){I([]);return}let P=!0;return I(null),i.starters(f).then(C=>P&&I(C),()=>{P&&(I([]),VM.error(c("Couldn\u2019t load the pages \u2014 please retry.")))}),()=>{P=!1}},[e,d,i,f]);let w=async(P,C)=>{if(!O){R(P);try{r(await C())}catch{VM.error(c("Couldn\u2019t add the page \u2014 please retry."))}finally{R(null)}}},_=()=>{if(!n.createPage)return;let P=c("New page");w("blank",()=>n.createPage({slug:qM(P,t),title:P,layout:{}}))},E=P=>{w(P.id,()=>i.createFromStarter(P.id,{title:P.title,slug:qM(P.slug,t),...f}))},D=h??[],b=zM(D),F=UM(S,D),y=GM(jM,F),k=KM("nav",{"aria-label":c("Pages"),className:"sf-add-page-nav",children:[To(Ry,{label:c("All pages"),active:S===Ss,onClick:()=>v(Ss)}),b.map(P=>To(Ry,{label:c(P.label),active:S===P.key,onClick:()=>v(P.key)},P.key)),By(D).length>0?To("div",{className:"sf-add-page-group",children:To(Ry,{label:c("From your template"),active:S===Mu,onClick:()=>v(Mu)})}):null]});return To(WZ,{open:e,onClose:o,size:"full",title:c("Add page"),initialFocus:T,children:To(jZ,{sidebarTop:To("div",{className:"sf-add-page-blank",children:To(HZ,{variant:"secondary",size:"md",leftIcon:To(MZ,{"aria-hidden":!0}),onClick:_,disabled:!n.createPage||O!==null,children:c("Blank page")})}),sidebar:k,children:KM("div",{ref:T,tabIndex:-1,role:"region","aria-labelledby":g,className:"sf-add-page",children:[To(GZ,{id:g,level:2,as:"h3",children:c("Pages for your site")}),To(UZ,{tone:"default",className:"sf-add-page-sub",children:c("Choose a page and change the text, images and more.")}),h===null?To(zZ,{label:c("Loading\u2026")}):F.length===0?To($Z,{title:c("No pages to start from"),description:c("Start with a blank page, then add sections.")}):To("div",{className:"sf-add-page-cards",children:y.map((P,C)=>To("div",{className:"sf-add-page-column",children:P.map(B=>To(pR,{starter:B,config:x,metadata:u,busy:O===B.id,onAdd:E},B.id))},C))})]})})})}import{jsx as KZ}from"react/jsx-runtime";import{createContext as qZ,useContext as XM,useEffect as VZ,useRef as ZM}from"react";var Dy=qZ(null);function wLe({open:e,children:o}){let t=ZM(!!e);return KZ(Dy.Provider,{value:t,children:o})}function JM(){let e=XM(Dy);return()=>e?.current?(e.current=!1,!0):!1}function QM(e){let o=XM(Dy),t=ZM(e);t.current=e,VZ(()=>{o?.current&&(t.current.setView("pages"),t.current.reveal())},[o])}var nH="sf-editor-pages-collapsed-groups";function uJ(){let e=My(),{siteId:o,templateId:t}=sH(),r=Oo(e).pages;if(!(!r.duplicate||t))return(a,n)=>r.duplicate(a.id,{...n,...o?{siteId:o}:{}})}function lH({onNavigate:e,onClose:o,activeSurface:t,onPreviewSurface:r}){let a=My().chrome?.pageRows,n=fJ(),{adapter:s,capabilities:l,ready:i,currentSlug:d}=sH(),f=Bn(),{rows:x,reload:u,setRows:h,getRows:I}=xl(),[S,v]=za(""),[O,R]=za(!1),[T,g]=za(null),[w,_]=za(!1),E=!!Oo(My()).pages.createFromStarter,D=uJ(),[b,F]=za(null),[y,k]=za(()=>{if(typeof window>"u")return new Set;try{let N=window.localStorage.getItem(nH);return new Set(N?JSON.parse(N):[])}catch{return new Set}});eH(()=>{try{window.localStorage.setItem(nH,JSON.stringify([...y]))}catch{}},[y]);let P=N=>k(te=>{let he=new Set(te);return he.has(N)?he.delete(N):he.add(N),he}),C=oH(()=>EP(x??[]),[x]),B=S.trim().toLowerCase(),H=N=>!B||N.toLowerCase().includes(B),q=N=>B?!0:!y.has(N),$=oH(()=>new Set((x??[]).map(N=>N.slug)),[x]),le=()=>{if(l.pageCreationInAdminForm&&!E){n.send("storefront-editor:new-page");return}g(null),_(!0)},pe=JM();eH(()=>{pe()&&le()},[]);let ee=l.hasSiteSettings&&!!s.createPage,xe=async()=>{if(!(!i||O||!s.createPage)){R(!0),g(null);try{let N=await s.createPage(xT(c("New popup"),$));await u(),e(N.slug)}catch{g(c("Couldn\u2019t add the popup \u2014 please retry."))}finally{R(!1)}}},oe=ZZ(null),[ie,ge]=za(null),Re=()=>{if(!ee)return le();if(ie)return ge(null);let N=oe.current?.getBoundingClientRect();N&&ge({top:N.bottom+6,right:Math.max(8,window.innerWidth-N.right)})},We=N=>{let te=x??[],he=s.deletePage;if(!i||O||!he||te.length<=1)return;let $e=te.findIndex(ke=>ke.id===N.id),Ao=te.filter(ke=>ke.id!==N.id),Uo=N.slug===d;qf(N.id,!0),h(Ao),g(null),Uo&&Ao[0]&&e(Ao[0].slug);let Fo=()=>{qf(N.id,!1);let ke=I()??[];if(ke.some(_s=>_s.id===N.id))return;let ht=[...ke];ht.splice(Math.max(0,Math.min($e,ht.length)),0,N),h(ht)};rH.undoable(c("Deleted \u201C{name}\u201D",{name:N.label}),{actionLabel:c("Undo"),commit:async ke=>{await he(N.id,ke),qf(N.id,!1)},undo:()=>{Fo(),Uo&&e(N.slug)},onFail:()=>{Fo(),rH.error(c("Couldn\u2019t delete the page \u2014 please retry."))}})},yo=N=>n.send("storefront-editor:open-page",{slug:N}),oo=N=>{if(!H(N.label))return null;let te=!t&&N.slug===d,he=l.canDeletePagesInline&&(x??[]).length>1,$e=kf(N),Ao=OP(N),Uo=[...$e?[{label:c("Dynamic"),tone:"info"}]:[],...Ao?[{label:c("Lightbox"),tone:"success"}]:[],...N.draft?[{label:c("draft"),tone:"draft"}]:[]],Fo=Uo.length>0?Uo:void 0,ke=!!D&&cJ(N),ht=ke||l.pageCreationInAdminForm||he?Hu(YZ,{children:[ke&&ve(Wu,{kind:"plain",label:c("Duplicate \u201C{name}\u201D",{name:N.label}),disabled:O,onClick:()=>F(N),children:ve(sJ,{size:13})}),l.pageCreationInAdminForm&&ve(Wu,{kind:"plain",label:c("Page settings for \u201C{name}\u201D",{name:N.label}),onClick:()=>yo(N.slug),children:ve(iJ,{size:13})}),he&&ve(Wu,{kind:"delete",label:c("Delete \u201C{name}\u201D",{name:N.label}),disabled:O,onClick:()=>We(N),children:ve(Ny,{name:"trash",size:13,strokeWidth:1.7,rounded:!0})})]}):void 0;return ve(aH,{icon:ve(lJ,{size:14}),name:N.label,selected:te,onSelect:()=>e(N.slug),badge:Fo,actions:ht,rowProps:{"data-page-slug":N.slug}},N.id)},io=(N,te,he)=>{let $e=he.filter(Boolean);if($e.length===0)return null;let Ao=q(N);return Hu(XZ,{children:[ve(aJ,{count:$e.length,countLabel:Wt("{n} page","{n} pages",$e.length),expanded:Ao,onToggle:()=>P(N),children:te}),Ao&&$e]},N)},So=(a?.rows??[]).filter(N=>H(N.label)).map(N=>{let te=t===N.key;return ve(aH,{icon:N.icon,name:N.label,selected:te,onSelect:()=>r(N.key),badge:{label:c("Preview"),tone:"warning"},actions:ve(Wu,{kind:"plain",label:c("Open the {name} in a new tab",{name:N.label}),onClick:()=>window.open(N.href,"_blank","noopener,noreferrer"),children:ve(Ny,{name:"external-link",size:13,strokeWidth:1.7,rounded:!0})}),rowProps:{"data-shop-surface":N.key}},N.key)}),Xe=l.hasSiteSettings&&!!a,bo=(()=>{if(x===null)return null;let N=[],te=!1;for(let he of C){Xe&&!te&&he.key.startsWith("system:")&&(N.push(io("shop",a.title,So)),te=!0);let $e=he.key===TP||he.label===PP?c(he.label):he.label;N.push(io(he.key,$e,he.rows.map(oo)))}return Xe&&!te&&N.push(io("shop",a.title,So)),N})();return Hu("div",{className:"sf-pages",children:[ve(JZ,{icon:ve(dJ,{}),title:c("Pages"),context:f,actions:ve(QZ,{buttonRef:oe,label:ee?c("Add"):c("New page"),hasPopup:ee?"menu":void 0,expanded:ee?ie!==null:void 0,onClick:Re,children:ve(nJ,{size:15})})}),ie&&ve(tJ,{portal:!0,style:{top:ie.top,right:ie.right},onClose:()=>ge(null),children:Hu("div",{role:"menu","aria-label":c("Add"),children:[ve(tH,{role:"menuitem",onClick:()=>{ge(null),le()},children:c("Page")}),ve(tH,{role:"menuitem",disabled:O,onClick:()=>{ge(null),xe()},children:c("Popup")})]})}),ve("div",{className:"sf-pages-find",children:ve(eJ,{type:"search",leftIcon:ve(Ny,{name:"search",size:14,rounded:!0}),placeholder:c("Search all pages\u2026"),value:S,onChange:N=>v(N.target.value),"aria-label":c("Search all pages")})}),T&&!w&&ve("div",{className:"sf-note sf-note--error",role:"alert",children:T}),bo===null?ve(oJ,{label:c("Loading\u2026")}):bo.some(Boolean)?ve(rJ,{ariaLabel:c("Pages"),className:"sf-scroll",children:bo}):ve("div",{className:"sf-note",children:S.trim()?c("No pages match your search"):c("No pages yet. Add one with + above.")}),D&&b&&ve(pJ,{source:{title:b.label,slug:b.slug},taken:$,host:gf(),duplicate:N=>D(b,N),onClose:()=>F(null),onDuplicated:N=>{F(null),u(),e(N.slug)}},b.id),w?ve(YM,{open:!0,onClose:()=>_(!1),takenSlugs:$,onCreated:N=>{_(!1),u(),e(N.slug)}}):null]})}import{jsx as fH}from"react/jsx-runtime";import{createContext as IJ,useCallback as gJ,useContext as yJ,useMemo as SJ,useState as bJ}from"react";import{CanvasChromeContext as wJ}from"efficient-easel/easel";import{useSelectHandler as CJ}from"efficient-easel/draw/client";import{parseHexColor as mJ,parseOption as xJ}from"efficient-shell/format";var $u=["chat-bubble-left-right","chat-bubble-oval-left-ellipsis","chat","megaphone","phone","sparkles"],bs=$u[0],hJ=["right","left"],Ua="right";function zu(e){return $u.includes(e??"")?e:bs}function iH(e){return xJ(hJ,Ua,e)}function dH(e){return e&&mJ(e)===e.toLowerCase()?e.toLowerCase():""}var cH="chat",Uu={enabled:!0,title:"",subtitle:"",greeting:"",launcherColor:"",launcherIcon:"",launcherPosition:Ua,launcherLabel:"",showOnPhones:!0};function eRe(e){return{enabled:e.enabled,title:e.title,subtitle:e.subtitle,greeting:e.greeting,launcherColor:dH(e.launcherColor),launcherIcon:e.launcherIcon?zu(e.launcherIcon):"",launcherPosition:iH(e.launcherPosition),launcherLabel:e.launcherLabel??"",showOnPhones:e.showOnPhones!==!1}}var pH=IJ({chat:Uu,setChat:()=>{},setSelected:()=>{},setSelectHandler:()=>{}});function oRe({children:e,chat:o=Uu,onChatChange:t}){let[r,a]=bJ(!1),n=gJ(d=>t?.(d),[t]),{select:s,setSelectHandler:l}=CJ(),i=SJ(()=>({selected:()=>r?cH:null,select:d=>d===cH&&s()}),[r,s]);return fH(pH.Provider,{value:{chat:o,setChat:n,setSelected:a,setSelectHandler:l},children:fH(wJ.Provider,{value:i,children:e})})}var ju=()=>yJ(pH);import{jsx as Hy}from"react/jsx-runtime";import{DesktopIcon as kJ,PhoneIcon as vJ,TabletIcon as PJ}from"efficient-easel/icons";import{VIEW_TIERS as TJ,VIEW_TIER_LABEL as OJ}from"efficient-easel/draw";var EJ={desktop:Hy(kJ,{}),tablet:Hy(PJ,{}),mobile:Hy(vJ,{})},uH=TJ.map(e=>({id:e,get label(){return c(OJ[e])},icon:EJ[e]}));import{PreviewDeviceContext as zae}from"efficient-easel/draw/client";import{jsx as _J}from"react/jsx-runtime";import{createContext as AJ,useCallback as mH,useContext as FJ,useMemo as BJ,useRef as LJ}from"react";var RJ=Object.fromEntries(Df.map(e=>[e,{value:"",error:null}])),xH=AJ({links:HT,rows:RJ,canSave:!1,saveLink:async()=>({ok:!1,error:"There is no website to save to."}),openPanel:()=>{},setOpenHandler:()=>{}});function cRe({children:e,value:o}){let t=LJ(()=>{}),r=mH(()=>t.current(),[]),a=mH(s=>{t.current=s},[]),n=BJ(()=>({...o,openPanel:r,setOpenHandler:a}),[o,r,a]);return _J(xH.Provider,{value:n,children:e})}var Fi=()=>FJ(xH);import{jsx as DJ}from"react/jsx-runtime";import{createContext as NJ,useContext as MJ,useMemo as HJ,useState as WJ}from"react";var hH=NJ(null);function xRe({children:e}){let[o,t]=WJ(null),r=HJ(()=>({surface:o,setSurface:t}),[o]);return DJ(hH.Provider,{value:r,children:e})}function IH(){return MJ(hH)??{surface:null,setSurface:()=>{}}}import{createPreviewSelectionContext as $J}from"efficient-easel/draw/client";var{Provider:gRe,useSelection:Gu}=$J("selectedHeroPart");import{jsx as be,jsxs as Vr,Fragment as F2}from"react/jsx-runtime";import{useEasel as xte,useRootFields as hte}from"efficient-easel/easel";import{EmptyState as Ite}from"efficient-shell/ui";function gH({kind:e,pageName:o}){return{name:o?.trim()||c("This page"),kindLabel:kf({kind:e})?c("Template"):c("Page")}}import{headWords as D2,InspectorHead as gte,InspectorIconButton as B2}from"efficient-easel/chrome";import{DuplicateIcon as yte,TrashIcon as Ste}from"efficient-easel/icons";import{panelFieldsOf as bte}from"efficient-easel/screen/lib/document/panel-fields";import{jsx as M,Fragment as ue,jsxs as me}from"react/jsx-runtime";import{BlockBannerIcon as jJ,BlockBoxIcon as GJ,BlockButtonIcon as KJ,BlockDividerIcon as SH,BlockFooterIcon as bH,BlockHeadingIcon as qJ,BlockProductIcon as VJ,BlockSocialIcon as YJ,BlockTextIcon as XJ,CardPaymentIcon as ZJ,ChatIcon as JJ,AccountIcon as QJ,GlobeIcon as eQ,GridIcon as oQ,ImageIcon as $y,MapIcon as tQ,MediaIcon as rQ,PageIcon as aQ}from"efficient-easel/icons";import{jsx as Wy,Fragment as zJ,jsxs as UJ}from"react/jsx-runtime";var yH=UJ(zJ,{children:[Wy("circle",{cx:"9",cy:"20",r:"1.3"}),Wy("circle",{cx:"18",cy:"20",r:"1.3"}),Wy("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 nQ={header:me(ue,{children:[M("rect",{x:"3",y:"5",width:"18",height:"14",rx:"2"}),M("path",{d:"M3 9.5h18"})]}),social:me(ue,{children:[M("circle",{cx:"6",cy:"12",r:"2.5"}),M("circle",{cx:"18",cy:"6",r:"2.5"}),M("circle",{cx:"18",cy:"18",r:"2.5"}),M("path",{d:"M8.2 10.8l7.6-3.6M8.2 13.2l7.6 3.6"})]}),ticker:me(ue,{children:[M("rect",{x:"3",y:"8.5",width:"18",height:"7",rx:"2"}),M("path",{d:"M6 12h3.5M11.5 12h2M15.5 12h2.5"})]}),FooterLogo:me(ue,{children:[M("path",{d:"M4 15.5h6M4 18h4"}),M("path",{d:"M14 8.5l3 7 3-7"})]}),FooterMenu:M("path",{d:"M6 7h12M6 11h12M6 15h8M6 19h8"}),FooterGroup:me(ue,{children:[M("rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",strokeDasharray:"3 2.5"}),M("path",{d:"M8 9h8M8 13h8M8 16h5"})]}),FooterText:M("path",{d:"M5 7h14M5 12h14M5 17h9"}),FooterEmailSignup:me(ue,{children:[M("rect",{x:"3",y:"6",width:"18",height:"12",rx:"2"}),M("path",{d:"M3.5 7l8.5 6 8.5-6"})]}),SearchBlock:me(ue,{children:[M("circle",{cx:"11",cy:"11",r:"6"}),M("path",{d:"M20 20l-4.2-4.2"})]}),CartBlock:yH,CountrySwitchBlock:me(ue,{children:[M("circle",{cx:"12",cy:"12",r:"8.5"}),M("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:me(ue,{children:[M("circle",{cx:"12",cy:"12",r:"8.5"}),M("path",{d:"M12 3.5v17M12 5.5l6 6M12 10.5l5.2 5.2M12 15.5l2.8 2.8"})]}),LegalLineBlock:me(ue,{children:[M("path",{d:"M3 9h18"}),M("path",{d:"M3 14h8M14 14h2M18 14h3"})]}),Hero:me(ue,{children:[M("rect",{x:"3",y:"4",width:"18",height:"16",rx:"2"}),M("path",{d:"M7 13.5h7M7 16.5h10"})]}),HeroSlide:me(ue,{children:[M("rect",{x:"3",y:"5",width:"18",height:"14",rx:"2"}),M("path",{d:"M7 15h6M16 9.5h.01M9.5 12l-2.5 3"})]}),HeroSingle:me(ue,{children:[M("rect",{x:"3",y:"4",width:"18",height:"16",rx:"2"}),M("path",{d:"M10.5 8.5l4 2.5-4 2.5z"}),M("path",{d:"M7 17h7"})]}),Collections:me(ue,{children:[M("rect",{x:"3",y:"5",width:"4.6",height:"14",rx:"1.3"}),M("rect",{x:"9.7",y:"5",width:"4.6",height:"14",rx:"1.3"}),M("rect",{x:"16.4",y:"5",width:"4.6",height:"14",rx:"1.3"})]}),CollectionCard:me(ue,{children:[M("rect",{x:"6",y:"4",width:"12",height:"16",rx:"2"}),M("path",{d:"M9 15h6M9 17.5h4"})]}),AlloyWheelsListing:me(ue,{children:[M("path",{d:"M3 5h5M3 9h5M3 13h5M3 17h5"}),M("rect",{x:"11.5",y:"5",width:"4.2",height:"5",rx:"1"}),M("rect",{x:"17.3",y:"5",width:"4.2",height:"5",rx:"1"}),M("rect",{x:"11.5",y:"12",width:"4.2",height:"5",rx:"1"}),M("rect",{x:"17.3",y:"12",width:"4.2",height:"5",rx:"1"})]}),CatalogFilterBar:me(ue,{children:[M("path",{d:"M3 7h9M15.5 7H21"}),M("circle",{cx:"13.5",cy:"7",r:"1.7"}),M("path",{d:"M3 12h4M10.5 12H21"}),M("circle",{cx:"8.5",cy:"12",r:"1.7"}),M("path",{d:"M3 17h9M15.5 17H21"}),M("circle",{cx:"13.5",cy:"17",r:"1.7"})]}),ProductGrid:me(ue,{children:[M("rect",{x:"3",y:"5",width:"4.8",height:"6",rx:"1"}),M("rect",{x:"9.6",y:"5",width:"4.8",height:"6",rx:"1"}),M("rect",{x:"16.2",y:"5",width:"4.8",height:"6",rx:"1"}),M("rect",{x:"3",y:"13",width:"4.8",height:"6",rx:"1"}),M("rect",{x:"9.6",y:"13",width:"4.8",height:"6",rx:"1"}),M("rect",{x:"16.2",y:"13",width:"4.8",height:"6",rx:"1"})]}),RelatedProducts:me(ue,{children:[M("path",{d:"M3 5h10"}),M("rect",{x:"3",y:"9.5",width:"5",height:"9",rx:"1"}),M("rect",{x:"9.5",y:"9.5",width:"5",height:"9",rx:"1"}),M("rect",{x:"16",y:"9.5",width:"5",height:"9",rx:"1"})]}),Gallery:me(ue,{children:[M("rect",{x:"3",y:"4",width:"11",height:"16",rx:"2"}),M("rect",{x:"15.5",y:"4",width:"5.5",height:"7.5",rx:"1.5"}),M("rect",{x:"15.5",y:"12.5",width:"5.5",height:"7.5",rx:"1.5"})]}),GalleryB:me(ue,{children:[M("rect",{x:"3.5",y:"4",width:"7.5",height:"7.5",rx:"1.5"}),M("rect",{x:"13",y:"4",width:"7.5",height:"7.5",rx:"1.5"}),M("rect",{x:"3.5",y:"12.5",width:"7.5",height:"7.5",rx:"1.5"}),M("rect",{x:"13",y:"12.5",width:"7.5",height:"7.5",rx:"1.5"})]}),GalleryItem:me(ue,{children:[M("rect",{x:"4",y:"5",width:"16",height:"14",rx:"2"}),M("circle",{cx:"9",cy:"10",r:"1.6"}),M("path",{d:"M20 15.5l-4.5-4L7 19"})]}),Events:me(ue,{children:[M("rect",{x:"4",y:"5",width:"16",height:"15",rx:"2"}),M("path",{d:"M4 9.5h16M8.5 3v4M15.5 3v4M8 14h2M14 14h2"})]}),PostCard:me(ue,{children:[M("rect",{x:"4",y:"3.5",width:"16",height:"17",rx:"2"}),M("rect",{x:"6.5",y:"6",width:"11",height:"6",rx:"1"}),M("path",{d:"M6.5 14.5h11M6.5 17.5h7"})]}),Manifesto:me(ue,{children:[M("path",{d:"M7 8h3.2v4c0 1.6-1 2.6-3 3.2"}),M("path",{d:"M14 8h3.2v4c0 1.6-1 2.6-3 3.2"})]}),Stats:me(ue,{children:[M("path",{d:"M3.5 20h17"}),M("path",{d:"M6 20v-7M11 20V7M16 20v-5M20.5 20v-9"})]}),Logos:me(ue,{children:[M("circle",{cx:"6",cy:"12",r:"2.6"}),M("rect",{x:"10",y:"9.4",width:"5.2",height:"5.2",rx:"1.2"}),M("path",{d:"M19 9.2l2.4 5h-4.8z"})]}),Ticker:me(ue,{children:[M("rect",{x:"3",y:"8.5",width:"18",height:"7",rx:"2"}),M("path",{d:"M6 12h3.5M11.5 12h2M15.5 12h2.5"})]}),SectionHeader:me(ue,{children:[M("rect",{x:"3.5",y:"6",width:"5",height:"5",rx:"1.2"}),M("path",{d:"M11 8.5h9M3.5 15.5h17"})]}),IntroBleed:me(ue,{children:[M("rect",{x:"3",y:"4",width:"18",height:"16",rx:"2"}),M("path",{d:"M3 13.5h18M7 16.8h6"})]}),Split:me(ue,{children:[M("rect",{x:"3",y:"5",width:"8",height:"14",rx:"1.5"}),M("path",{d:"M14 8.5h6M14 12h6M14 15.5h4"})]}),Eyebrow:me(ue,{children:[M("path",{d:"M4 8.5h4.5M11 8.5h9"}),M("path",{d:"M4 14.5h16"})]}),HeroGroup:me(ue,{children:[M("rect",{x:"3.5",y:"4.5",width:"17",height:"15",rx:"2"}),M("path",{d:"M7 9h8M7 12.5h10M7 16h6"})]}),Form:me(ue,{children:[M("rect",{x:"3",y:"4",width:"18",height:"16",rx:"2"}),M("path",{d:"M6.5 9h11M6.5 12.5h11"}),M("rect",{x:"6.5",y:"15",width:"6.5",height:"2.6",rx:"1.3"})]}),LogoBlock:M(ue,{children:M("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:me(ue,{children:[M("path",{d:"M12 4v6M9.5 6.5L12 4l2.5 2.5M12 20v-6M9.5 17.5L12 20l2.5-2.5"}),M("path",{d:"M5 13h14",strokeDasharray:"2 2.5"})]}),ContactRouting:me(ue,{children:[M("rect",{x:"3",y:"4",width:"5",height:"5",rx:"1"}),M("rect",{x:"9.5",y:"4",width:"5",height:"5",rx:"1"}),M("rect",{x:"16",y:"4",width:"5",height:"5",rx:"1"}),M("path",{d:"M4 13.5h11M4 17.5h7"}),M("path",{d:"M17 15l3 2-3 2"})]}),Contents:me(ue,{children:[M("path",{d:"M4 7h2M4 12h2M4 17h2"}),M("path",{d:"M9 7h11M9 12h9M9 17h10"})]}),ListSearch:me(ue,{children:[M("path",{d:"M4 6h9M4 11h5M4 16h5"}),M("circle",{cx:"15",cy:"15",r:"4"}),M("path",{d:"M20.5 20.5l-2.7-2.7"})]}),CustomHTML:M("path",{d:"M9 8l-4 4 4 4M15 8l4 4-4 4"})},sQ=M("rect",{x:"4",y:"4",width:"16",height:"16",rx:"2.5"}),lQ={footer:bH,Footer:bH,Divider:SH,FooterDivider:SH,Banner:jJ,Flex:GJ,FooterSocial:YJ,FooterPayment:ZJ,page:aQ,website:eQ,AccountBlock:QJ,chat:JJ,Heading:qJ,Text:XJ,ImageBlock:$y,ButtonBlock:KJ,LocationMap:tQ,Grid:oQ,ProductRef:VJ,heroMedia:rQ,heroImage:$y,heroImage2:$y},iQ={MenuBlock:"FooterMenu",EmailFormBlock:"FooterEmailSignup",SocialLogosBlock:"FooterSocial",PaymentLogosBlock:"FooterPayment",SiteHeader:"header",SiteFooter:"footer"};function ja({type:e,size:o=16,className:t}){let r=iQ[e]??e,a=lQ[r];return a?M(a,{size:o,className:t}):M("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:nQ[r]??sQ})}import{PanelHideButton as L2}from"efficient-easel/screen/components/SidePanelHead";import{useEaselSession as wte}from"efficient-easel/screen/lib/session-context";import{jsx as Se,jsxs as Bi,Fragment as dQ}from"react/jsx-runtime";import{useEffect as fQ,useId as wH,useState as cQ}from"react";import{IconPicker as pQ}from"efficient-shell/ui";import{SettingsDefaultReset as uQ,SettingsField as Li,SettingsSegmented as mQ,SettingsSwitch as CH}from"efficient-easel/panel";import{ButtonIcon as xQ,ButtonIconIcon as hQ,EyeIcon as IQ,PhoneIcon as gQ,PlacementIcon as yQ,TypeIcon as SQ}from"efficient-easel/icons";var bQ="Chat with us",wQ="We usually reply within a few minutes",CQ="Hi! Ask us anything \u2014 about a wheel, an order, or fitment. Leave your details and we\u2019ll reply.";function Ku({label:e,value:o,placeholder:t,onCommit:r,multiline:a=!1,hint:n}){let[s,l]=cQ(o);fQ(()=>l(o),[o]);let i=()=>{s!==o&&r(s)};return Se(Li,{label:e,icon:Se(SQ,{}),changed:o!=="",action:Se(Ri,{label:e,changed:o!=="",onReset:()=>r("")}),hint:n,children:a?Se("textarea",{value:s,placeholder:t,rows:3,onChange:d=>l(d.target.value),onBlur:i,"aria-label":e}):Se("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 Ri({label:e,changed:o,onReset:t}){return Se(uQ,{words:aC()?.panel,label:e,changed:o,onReset:t})}function kQ({label:e,icon:o,checked:t,fallback:r,onChange:a,hint:n}){let s=wH();return Se(Li,{label:e,labelId:s,icon:o,changed:t!==r,action:Bi("span",{className:"inline-flex items-center gap-2",children:[Se(CH,{checked:t,onChange:a,ariaLabelledBy:s}),Se(Ri,{label:e,changed:t!==r,onReset:()=>a(r)})]}),hint:n})}var vQ=$u.map(e=>({value:e,icon:nT(e)}));function PQ(){let{theme:e}=ko(),o=or(e).themes[0];return Mw(o)??o?.accent??""}function kH(){let{chat:e,setChat:o}=ju(),t=wH(),r=PQ(),a=e.launcherIcon?zu(e.launcherIcon):bs;return Bi(dQ,{children:[Se(Li,{label:c("Show the chat bubble"),labelId:t,icon:Se(IQ,{}),changed:!e.enabled,action:Bi("span",{className:"inline-flex items-center gap-2",children:[Se(CH,{checked:e.enabled,onChange:n=>o({enabled:n}),ariaLabelledBy:t}),Se(Ri,{label:c("Show the chat bubble"),changed:!e.enabled,onReset:()=>o({enabled:!0})})]}),hint:e.enabled?c("The floating chat bubble shows in the corner of every page."):c("The chat bubble is hidden across the whole site.")}),Bi(Rx,{title:c("Look"),children:[Se(lT,{label:c("Button color"),icon:Se(xQ,{}),changed:e.launcherColor!=="",value:e.launcherColor,inherited:r,caption:e.launcherColor?void 0:c("Site button color"),onChange:n=>o({launcherColor:n}),onReset:()=>o({launcherColor:""})}),Se(Li,{label:c("Icon"),icon:Se(hQ,{}),value:Se(KP,{value:a}),changed:a!==bs,action:Se(Ri,{label:c("Icon"),changed:a!==bs,onReset:()=>o({launcherIcon:""})}),children:Se(pQ,{label:c("Icon"),value:a,options:vQ,onChange:n=>o({launcherIcon:n===bs?"":n})})}),Se(Li,{label:c("Position"),icon:Se(yQ,{}),changed:e.launcherPosition!==Ua,action:Se(Ri,{label:c("Position"),changed:e.launcherPosition!==Ua,onReset:()=>o({launcherPosition:Ua})}),children:Se(mQ,{options:[{label:c("Right"),id:"right"},{label:c("Left"),id:"left"}],value:e.launcherPosition,ariaLabel:c("Position"),onChange:n=>o({launcherPosition:n})})}),Se(Ku,{label:c("Label"),value:e.launcherLabel,placeholder:c("Icon only"),onCommit:n=>o({launcherLabel:n}),hint:c("Shows when a visitor points at the button")}),Se(kQ,{label:c("Show on phones"),icon:Se(gQ,{}),checked:e.showOnPhones,fallback:Uu.showOnPhones,onChange:n=>o({showOnPhones:n})})]}),Bi(Rx,{title:c("Wording"),children:[Se(Ku,{label:c("Title"),value:e.title,placeholder:bQ,onCommit:n=>o({title:n})}),Se(Ku,{label:c("Subtitle"),value:e.subtitle,placeholder:wQ,onCommit:n=>o({subtitle:n})}),Se(Ku,{label:c("Greeting message"),value:e.greeting,placeholder:CQ,onCommit:n=>o({greeting:n}),multiline:!0}),Se("p",{className:"es-field-hint",children:c("Leave a field blank to use the built-in wording.")})]})]})}import{jsx as Ga,Fragment as dS,jsxs as EH}from"react/jsx-runtime";import{useEffect as tee,useId as TH,useState as OH}from"react";import{SettingsField as ree}from"efficient-easel/panel";import{jsx as qQ}from"react/jsx-runtime";import{forwardRef as TQ,createElement as zy}from"react";var vH={outline:{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"},filled:{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",stroke:"none"}};var se=(e,o,t,r)=>{let a=TQ(({color:n="currentColor",size:s=24,stroke:l=2,title:i,className:d,children:f,...x},u)=>zy("svg",{ref:u,...vH[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&&zy("title",{key:"svg-title"},i),...r.map(([h,I])=>zy(h,I)),...Array.isArray(f)?f:[f]]));return a.displayName=`${t}`,a};var OQ=[["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"}]],Uy=se("outline","brand-facebook","BrandFacebook",OQ);var EQ=[["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"}]],jy=se("outline","brand-instagram","BrandInstagram",EQ);var _Q=[["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"}]],Gy=se("outline","brand-line","BrandLine",_Q);var AQ=[["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"}]],Ky=se("outline","brand-linkedin","BrandLinkedin",AQ);var FQ=[["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"}]],qy=se("outline","brand-pinterest","BrandPinterest",FQ);var BQ=[["path",{d:"M15 10l-4 4l6 6l4 -16l-18 7l4 2l2 6l3 -4",key:"svg-0"}]],Vy=se("outline","brand-telegram","BrandTelegram",BQ);var LQ=[["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"}]],Yy=se("outline","brand-tiktok","BrandTiktok",LQ);var RQ=[["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"}]],Xy=se("outline","brand-wechat","BrandWechat",RQ);var DQ=[["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"}]],Zy=se("outline","brand-whatsapp","BrandWhatsapp",DQ);var NQ=[["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"}]],Jy=se("outline","brand-x","BrandX",NQ);var MQ=[["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"}]],Qy=se("outline","brand-youtube","BrandYoutube",MQ);var HQ=[["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"}]],eS=se("filled","brand-facebook-filled","BrandFacebookFilled",HQ);var WQ=[["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"}]],oS=se("filled","brand-instagram-filled","BrandInstagramFilled",WQ);var $Q=[["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"}]],tS=se("filled","brand-linkedin-filled","BrandLinkedinFilled",$Q);var zQ=[["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"}]],rS=se("filled","brand-pinterest-filled","BrandPinterestFilled",zQ);var UQ=[["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"}]],aS=se("filled","brand-tiktok-filled","BrandTiktokFilled",UQ);var jQ=[["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"}]],nS=se("filled","brand-whatsapp-filled","BrandWhatsappFilled",jQ);var GQ=[["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"}]],sS=se("filled","brand-x-filled","BrandXFilled",GQ);var KQ=[["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"}]],lS=se("filled","brand-youtube-filled","BrandYoutubeFilled",KQ);var oNe="outline",qu={fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},VQ={},iS={fillRule:"evenodd"},YQ=[["path",{...qu,d:"M21 4L3 11L7 13L9 19L12 15L17 20z"}],["path",{...iS,d:"M21 4L3 11L7 13L9 19L12 15L17 20zM15.212 8.939 10.576 13.576 11.424 14.424 16.061 9.788z"}]],XQ=[["path",{...qu,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",{...VQ,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("")}]],ZQ=[["path",{...qu,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",{...qu,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",{...iS,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",{...iS,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("")}]],JQ=se("filled","brand-telegram-filled","BrandTelegramFilled",YQ),QQ=se("filled","brand-line-filled","BrandLineFilled",XQ),eee=se("filled","brand-wechat-filled","BrandWechatFilled",ZQ),oee={instagram:{outline:jy,solid:oS},facebook:{outline:Uy,solid:eS},tiktok:{outline:Yy,solid:aS},youtube:{outline:Qy,solid:lS},x:{outline:Jy,solid:sS},linkedin:{outline:Ky,solid:tS},pinterest:{outline:qy,solid:rS},whatsapp:{outline:Zy,solid:nS},telegram:{outline:Vy,solid:JQ},line:{outline:Gy,solid:QQ},wechat:{outline:Xy,solid:eee}};function PH({platform:e,iconStyle:o,size:t}){let r=oee[e][o];return qQ(r,{size:t,stroke:1.75,"aria-hidden":"true",focusable:"false"})}var aee={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 nee({platform:e}){let{rows:o,saveLink:t}=Fi(),{value:r,error:a}=o[e],[n,s]=OH(r),[l,i]=OH(!1),d=TH(),f=TH();tee(()=>s(r),[r]);let x=async()=>{if(n.trim()===r){n!==r&&s(r);return}i(!0),await t(e,n),i(!1)},u=MT[e];return EH(dS,{children:[Ga(ree,{label:c(u),htmlFor:d,icon:Ga(PH,{platform:e,iconStyle:"outline",size:18}),children:Ga("input",{id:d,type:"text",inputMode:"url",value:n,placeholder:aee[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?f:void 0,"aria-busy":l||void 0,autoComplete:"off",spellCheck:!1})}),a&&Ga("p",{id:f,className:"sf-note sf-note--error",role:"alert",children:a})]})}function _H({unavailable:e}){let{canSave:o}=Fi();return!o&&e?Ga(dS,{children:e}):EH(dS,{children:[Ga("p",{className:"es-field-hint",children:c("Paste a link to each profile. A platform left empty shows nothing on the site.")}),Df.map(t=>Ga(nee,{platform:t},t))]})}import{jsx as Va,Fragment as Aee,jsxs as Fee}from"react/jsx-runtime";import{useId as Bee,useMemo as Lee}from"react";import{useEasel as Ree}from"efficient-easel/easel";import{SettingsField as Dee,SettingsSwitch as Nee}from"efficient-easel/panel";import{EyeIcon as Mee}from"efficient-easel/icons";import{fieldShownInView as Hee}from"efficient-easel/fields";import{usePreviewDevice as Wee}from"efficient-easel/draw/client";import{ROOT_ZONE as $ee}from"efficient-easel/draw";import{jsx as qa,Fragment as iee}from"react/jsx-runtime";import{createContext as dee,useContext as fee,useLayoutEffect as cee,useMemo as FH,useRef as pee,useState as BH}from"react";import{useEasel as LH,useSelectedFields as uee}from"efficient-easel/easel";import{fieldShownInView as mee,Inspector as xee,LEAD_BAND_KEY as hee,planFields as RH}from"efficient-easel/fields";function AH({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 see}from"react/jsx-runtime";import{EmptyState as lee}from"efficient-shell/ui";function Ka(){return see(lee,{variant:"none",icon:!1,message:c("These settings apply to every view.")})}import{usePreviewDevice as Iee}from"efficient-easel/draw/client";import{deviceField as gee}from"efficient-easel/screen/lib/document/device-fields";var yee="Text",fS=new Map,Vu=new Set,See=Object.fromEntries(Oi.map(e=>{let o=gT[e];return[e,qa(o,{},e)]})),DH=dee(null),bee={_partBody:gee("each",{type:"custom",render:()=>qa(wee,{})})};function wee(){return qa(iee,{children:fee(DH)})}function At({entries:e,entryCount:o=0,part:t=null,omit:r,motion:a,body:n,itemWord:s}){let{id:l,fields:i,values:d,readOnly:f,onChange:x}=uee(),u=FH(()=>a?{...d,...a.values}:d,[d,a?.values]),h=(ee,xe)=>a?.keys.has(ee)?a.onChange(ee,xe):x(ee,xe),I=Iee(),{appState:S,config:v}=LH(ee=>ee),O=AP(I,v,S.data.content??[],S.ui.itemSelector),R=n===void 0?u_(i,t):bee,T=FH(()=>{let ee=r?.length?Object.fromEntries(Object.entries(R).filter(([xe])=>!r.includes(xe))):R;return a?{...ee,...a.fields}:ee},[R,r,a?.fields]),g=Tx(T,u,O),[w,_]=BH(()=>new Set(Vu)),E=mee({},I),D={key:hee,title:yee},b=LH(ee=>ee.selectedItem)!==null,F=a?.part??t??"",y=`${l}:${F}:${String(I)}`,[k,P]=BH(()=>({tab:fS.get(y)})),C=`${l}:${F}`,B=pee(null),H={...O,node:u},q=RH(g,{values:u,context:H}).buckets,$=AH({allTabs:b,remembered:fS.get(y),inherited:B.current?.panel===C?B.current.tab:k.tab,buckets:q,hasText:E&&o>0}),le=!E&&!q.includes($)&&(RH(Tx(T,u,{...O,device:"desktop"}),{values:u,context:{...H,device:"desktop"}}).buckets.includes($)||$==="Design"&&o>0);cee(()=>{B.current={panel:C,tab:$}});let pe=$==="Design";return qa(DH.Provider,{value:n??null,children:qa(vT.Provider,{value:a?u:null,children:qa(xee,{fields:g,values:u,onChange:h,readOnly:f,allTabs:b,showWhenContext:H,context:{itemWord:s},tab:$,onTab:ee=>{fS.set(y,ee),P({tab:ee})},tabIcons:See,idPrefix:l,ariaLabel:c("Section settings"),lead:pe?e:null,leadFold:D,closedFolds:w,onFold:(ee,xe)=>{xe?Vu.delete(ee):Vu.add(ee),_(new Set(Vu))},children:le&&qa(Ka,{})})})})}import{useMemo as Cee}from"react";import{useEasel as kee}from"efficient-easel/easel";import{useSectionOps as vee}from"efficient-easel/screen/lib/document/use-section-ops";var NH=new Map,Pee=e=>{let o=NH.get(e);return o||NH.set(e,o=Tu(vu(e),`part:${e}`)),o},Tee=new Set(Oh);function ws(e,o,t){let{getItemById:r,getSelectorForId:a}=kee(f=>f),n=vee(),s=r(e)?.props??{},l=Sa(s,o),i=JSON.stringify(l),d=Cee(()=>Object.fromEntries(Oh.map(f=>[f,l[f]])),[i]);return{part:o,fields:Pee(t),values:d,keys:Tee,onChange:(f,x)=>{let u=a(e),h=r(e);if(!u||!h)return;let I=WO(h.props??{},o,f,x);n.replaceComponent(u.zone,u.index,{...h,props:I})}}}import{Fragment as Oee,createElement as Eee}from"react";import{deviceField as cS}from"efficient-easel/screen/lib/document/device-fields";var go=()=>({type:"custom",render:()=>Eee(Oee)});var pS={words:go(),sourceNote:go(),style:go(),font:go(),italic:go(),fontSize:cS("each",go()),lineHeight:go(),letterSpacing:go(),paragraphSpacing:go(),padding:go(),align:cS("each",go()),letterCase:go(),fixedSizeHint:cS("each",go()),regionNote:go(),regionStyle:go()},_ee=["fontSize","align"];function MH(e){return _ee.includes(e)}var HH={showTicker:go(),items:go()};function WH({heroId:e}){let{appState:o,dispatch:t}=Ree(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=Lee(()=>{let h=n?.props.tickerItems;return Array.isArray(h)?h:r1.map(I=>({text:I}))},[n]),i=Bee(),d=Wee(),f=h=>Hee(HH[h],d),x=ws(e,a1,"block");if(!n)return Va("p",{className:"sf-note",children:c("This ticker\u2019s hero is no longer on the page.")});let u=h=>t({type:"replace",destinationZone:$ee,destinationIndex:a,data:{...n,props:{...n.props,...h}}});return Va(At,{motion:x,body:Fee(Aee,{children:[!f("showTicker")&&!f("items")&&Va(Ka,{}),f("showTicker")&&Va(Dee,{label:c("Show ticker"),labelId:i,icon:Va(Mee,{}),action:Va(Nee,{checked:s,onChange:h=>u({showTicker:h}),ariaLabelledBy:i})}),f("items")&&Va(_T,{label:Mx.label,icon:Mx.icon,items:l,placeholder:"item",onChange:h=>u({tickerItems:h}),markup:!0})]})})}import{jsx as Z,Fragment as Mi,jsxs as mt}from"react/jsx-runtime";import{useContext as ooe,useEffect as uS,useRef as toe,useState as ZH}from"react";import{FieldSelect as roe,InspectorField as aoe,fieldShownInView as noe}from"efficient-easel/fields";import{InertHint as s2,SettingsField as soe}from"efficient-easel/panel";import{InspectorUpLevel as em}from"efficient-easel/chrome";import{StylesIcon as loe,TypeIcon as ioe}from"efficient-easel/icons";import{useEasel as doe}from"efficient-easel/easel";import{TextPartPanel as JH}from"efficient-easel/copy";import{Button as foe,IconButton as coe,Tooltip as poe}from"efficient-shell/ui";import{jsx as UH,jsxs as zee}from"react/jsx-runtime";import{DEFAULT_EASEL_STRINGS as Uee}from"efficient-easel/strings";import{COPY_CELLS as Cs,COPY_CELL_LENGTHS as $H,CopyBox as jee,lengthCellUnits as Gee}from"efficient-easel/copy";import{PaddingYIcon as Kee}from"efficient-easel/icons";import{onDesktopWords as qee}from"efficient-easel/screen/lib/document/box-fields";var zH=Uee.copy.cells,Vee={kind:"spacing"},Yee=["left","center","right","justify"];function Yu(e,o,t,r="desktop"){let a=Ev(e),n=Av(r),s=e[n]??e.size??o.sizePx,l=Fv(e,r),i=(f,x,u,h,I)=>{let S=nl[u];return Gee({preset:f,row:x,table:Pf,unit:e[S],value:e[u],tier:r,styleValue:h,label:c(I),onPick:(v,O)=>t({[S]:v??null,[u]:O??null}),onChange:(v,O)=>t({...O?{[S]:O.unit??null}:{},[u]:v??null})})},d={key:"padding",name:c("Padding"),icon:UH(Kee,{}),unit:"px",step:vv,shiftStep:10,min:Cv,max:kv};return[{...Cs.fontSize,key:"fontSize",value:e[n],styleValue:Math.round(o.sizePx),onChange:f=>t({[n]:f??null}),...i(Cs.fontSize,$H.fontSize,n,Math.round(o.sizePx),zH.fontSize),...n==="size"?{}:{reset:{detail:l?qee(f=>c(f),`${l.px}px`,l.view):void 0}}},{...Cs.lineHeight,key:"lineHeight",value:a.lineHeight,styleValue:o.lineRatio,onChange:f=>t(f===void 0?{lineHeight:null,line:null}:{lineHeight:f})},{...Cs.letterSpacing,key:"letterSpacing",scale:s,value:a.letterSpacingEm,styleValue:o.letterEm,onChange:f=>t(f===void 0?{letterSpacing:null,letter:null}:{letterSpacing:f})},{...Cs.paragraphSpacing,key:"paragraphSpacing",value:e.paragraphSpacing,styleValue:0,onChange:f=>t({paragraphSpacing:f??null}),...i(Cs.paragraphSpacing,$H.paragraphSpacing,"paragraphSpacing",0,zH.paragraphSpacing)},{...d,value:e.padding,styleValue:o.paddingPx,onChange:f=>t({padding:f??null}),...i(d,Vee,"padding",o.paddingPx,"Padding")}]}function jH({text:e,onTextChange:o,multiline:t,markup:r=!0,styled:a=!0,style:n,base:s,setValue:l,colors:i,placeholder:d,ariaLabel:f,head:x,typedOnCanvas:u=!1}){let h=Yu(n,s,l),I=th(r,t);return zee("div",{className:"sf-part-textbox",children:[x,UH(jee,{value:e,onChange:o,multiline:t,placeholder:d,ariaLabel:f,rules:pd,tools:I,barShows:u?"focus":"always",colors:r?i:[],colorNameOf:sf,align:a?{value:n.align??s.align,allow:Yee,onChange:S=>l({align:S})}:void 0,letterCase:a?{value:n.case==="capitalize"?"":n.case??"",onChange:S=>l({case:S||null})}:void 0,cells:a?h:void 0})]})}import{UiIcon as QH}from"efficient-easel/draw/client";import{jsx as Xu,Fragment as Xee,jsxs as Zee}from"react/jsx-runtime";import{Button as GH,Dialog as Jee}from"efficient-shell/ui";function KH({styleName:e,onCancel:o,onConfirm:t}){return Xu(Jee,{open:!0,onClose:o,role:"alertdialog",size:"sm",title:c("Update {style}?",{style:e}),footer:Zee(Xee,{children:[Xu(GH,{variant:"secondary",onClick:o,children:c("Cancel")}),Xu(GH,{variant:"primary",onClick:t,children:c("Update style")})]}),children:Xu("p",{children:c("Every text on the site that follows {style} changes to look like this one. This text\u2019s own changes are cleared, and it keeps following {style}.",{style:e})})})}import{ScreenDocumentContext as uoe}from"efficient-easel/screen/components/ScreenDocumentContext";import{usePreviewDevice as moe}from"efficient-easel/draw/client";import{shownTier as Ju}from"efficient-easel/screen/lib/document/device-fields";import{TEXT_FIELD_MARKER as xoe,viewKeyAt as hoe}from"efficient-easel/draw";import{useSectionOps as Ioe}from"efficient-easel/screen/lib/document/use-section-ops";import{useEaselHost as goe}from"efficient-easel/screen/lib/host";function Qee(e){let o=new Set([...Object.keys(z(Yk,e)??{}),...z(Xk,e)??[]]);for(let[t,r]of Object.entries(z(Jk,e)??{}))r.verb==="snapshot"&&o.add(t);return[...o].sort()}var eoe={CollectionCard:"product",FooterMenu:"menu",Gallery:"product",GalleryItem:"product",ProductGrid:"product",ProductHero:"product",SpecTable:"product",Events:"blog",FeaturedCover:"blog",LongRead:"blog",SubscribeBlogs:"blog"},qH={product:"Synced from the product.",blog:"Synced from the blog post.",menu:"Synced from the site menu."},VH="Open",YH={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 fo(o)}function Di(e){return z(eoe,e)??null}function XH(e,o){let t=Di(e);return t&&Qee(e).includes(o)?t:null}function Zu(e){let o=e?.menu?.id;return fo(o)}function mS(e){return e?c(e):null}function e2(e){return e.kind==="role"?vm[e.role]:e.kind==="custom"?"Custom":null}function yoe(e){let o=gb(e.role);return o?{kind:"role",role:o}:null}function Soe(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 Qu(e,o,t,r){return yoe(Or(e,o))??Soe(t,r)}function boe(e,o){if(!e.length)return null;let t=o(e[0]);return e.every(r=>o(r)===t)?t:null}function o2(e,o){return[{value:Ni,label:c("No style"),description:c("Section\u2019s own")},...e.map(t=>({value:t.id,label:t.name,description:t.values.font?cd(t.values.font,o)?.label:void 0}))]}var Ni="";function woe({face:e,base:o,onPick:t}){let r=Ct(),a=e.kind==="role"?e.role:Ni,n=[{label:c("No style"),value:Ni},...Ib.map(s=>({label:c(vm[s]),value:s}))];return Z(roe,{ariaLabel:c("Style"),value:a,options:n,inline:!0,onChange:s=>t(s===Ni?null:s),renderOption:s=>s.value===Ni?mt(Mi,{children:[Z("span",{className:"es-fsel-label sf-part-style-keep",children:s.label}),Z("span",{className:"sf-part-style-aside","aria-hidden":"true",children:c("Section\u2019s own")})]}):Z("span",{className:"es-fsel-label",style:{fontFamily:`var(--font-role-${s.value})`},children:s.label}),renderValue:()=>Z("span",{style:{fontFamily:o?.fontKey?`var(${cd(o.fontKey,r)?.cssVar})`:void 0,fontWeight:o?.weight},children:mS(e2(e))}),valueText:s=>mS(e2(e))??s?.label??""})}var l2=["regionNote","regionStyle"],Coe=Object.keys(pS).filter(e=>!l2.includes(e));function i2(e,o){return!e.some(o)}function koe({sectionName:e,onBack:o,textEditor:t,styleRow:r,children:a,tabs:n}){let s=mt(Mi,{children:[t,r,a]});return mt("div",{className:"sf-part-panel",children:[Z(em,{inline:!0,name:c(e),onSelect:o}),n?n(s):s]})}function om({source:e,slug:o,menuId:t}){let r=goe(),a=YH[e],n=!a.needsSlug||!!o;return Z("div",{className:"sf-note sf-note--source",children:mt(s2,{children:[c(qH[e]),n?mt(Mi,{children:[" ",Z(foe,{type:"button",variant:"link",size:"sm",onClick:()=>{a.type==="storefront-editor:open-menus"?r.send(a.type,{menuId:t??null}):o&&r.send(a.type,{slug:o})},children:c(VH)})]}):null]})})}var t2=4,voe=120;function r2(e){return c("Every {part} in this section follows it. The face and the size change; the letter case is the section\u2019s own and stays as it is.",{part:c(e.label).toLowerCase()})}function a2({region:e,sizePx:o,face:t,base:r,onFollowStyle:a,source:n,slug:s,onBack:l,shows:i,sizedStyle:d,ownLook:f}){let x=e.follows;return mt("div",{className:"sf-note",children:[Z("p",{children:Z("strong",{children:c(e.label)})}),i("regionNote")&&!f&&Z("p",{children:o?c("Its size follows Styles \u25B8 {follows} \u2014 {px}px right now.",{follows:c(x),px:Math.round(o)}):c("Its size follows Styles \u25B8 {follows}.",{follows:c(x)})}),d?mt(Mi,{children:[d,i("regionStyle")&&Z("p",{className:"es-field-hint",children:r2(e)})]}):a?i("regionStyle")?Z(Mi,{children:Z(soe,{label:c("Style"),icon:Z(loe,{}),hint:r2(e),children:Z(woe,{face:t,base:r,onPick:a})})}):null:i("regionNote")&&Z("p",{className:"es-field-hint",children:c("Only the size follows a site style. This section sets its own font, weight and letter case.")}),n&&i("sourceNote")?Z(om,{source:n,slug:s}):null,i2([...l2,"sourceNote",...d?["fontSize"]:[]],u=>i(u)&&(u!=="sourceNote"||!!n))&&Z(Ka,{}),Z(em,{inline:!0,name:c("Page"),onSelect:l})]})}function Poe({onBack:e}){return mt("div",{className:"sf-note",children:[Z("p",{children:Z("strong",{children:c("This part is no longer here.")})}),Z("p",{children:c("The section it belonged to has been changed or removed.")}),Z(em,{inline:!0,name:c("Page"),onSelect:e})]})}function Toe({onBack:e,partId:o,why:t}){return mt("div",{className:"sf-note",children:[Z("p",{children:Z("strong",{children:c("This part's settings did not open.")})}),Z("p",{children:c("The words are still on your page and nothing has been lost. The editor could not work out which control belongs to them, which is a fault on our side. Go back and click the section to open its settings instead.")}),Z("p",{className:"sf-note-detail",children:mt("code",{children:[o," \u2014 ",t]})}),Z(em,{inline:!0,name:c("Page"),onSelect:e})]})}function d2({nodeId:e,propKey:o,onBack:t,onEditStyle:r}){let{getItemById:a,getSelectorForId:n,config:s}=doe(G=>G),l=Ioe(),i=I0(),{partStyle:d}=ds(),{fonts:f,textStyles:x}=ko(),u=Ct(),h=ooe(uoe),I=!h?.capabilities?.hasSiteTheme,{persist:S}=fT({themeFromDocument:I,tokenRef:h?.tokenRef,siteId:h?.siteId??null}),v=qT({themeFromDocument:I,persist:S}),[O,R]=ZH(!1),T=moe(),g=G=>(Ju(T)!=="tablet"||MH(G))&&noe(pS[G],T),w=toe(null),_=a(e),E=n(e),D=_?s.components[_.type]:void 0,{key:b,row:F}=zt(o),y=D?.fields?.[b],k=F?Rn(y,F):y,P=Ut(e,o),C=_?.props??{},B=ff(k),H=Af(k),q=pv(k),$=_?Di(_.type):null,le=_?XH(_.type,b):null,pe=F?pf(C[b],F):C[b],ee=!!F&&!(Array.isArray(C[b])&&F.index<C[b].length);uS(()=>{h0(document)||w.current?.querySelector(".es-copy [contenteditable='true'], .es-copy textarea, .sf-copybox textarea, .sf-copybox input")?.focus()},[P]);let[xe,oe]=ZH(0);uS(()=>oe(0),[P]);let ie=!!_&&!ee&&(!E||!k);uS(()=>{if(!ie||xe>=t2)return;let G=setTimeout(()=>oe(Te=>Te+1),voe);return()=>clearTimeout(G)},[ie,xe]);let ge=ie&&xe<t2,Re=ws(e,lr(_?.type,o),"textPart");if(!_||ee)return Z(Poe,{onBack:t});let We=fs(_.type),yo=We?zs(We,o):null;if(We&&yo){let G=d?.partId===P?d:null,Te=We[yo],yt=Te.writable===!0&&!!E,hr=Jr=>{E&&l.replaceComponent(E.zone,E.index,{..._,props:la(C,o,"role",Jr)})};if(yt&&mw(Te)){let Jr=Or(C,o),QS=Qr=>{if(!E)return;let Cm=C;for(let[q4,V4]of Object.entries(Qr))Cm=la(Cm,o,q4,V4??null);l.replaceComponent(E.zone,E.index,{..._,props:Cm})},j4=$x(v.saved,v.old),G4=yx(Jr)??"",K4=Yu(Jr,G?.base??n2,QS,Ju(T)).filter(Qr=>Qr.key==="fontSize"&&g(Qr.key));return Z(At,{motion:Re,body:Z(a2,{region:Te,sizePx:G?.base.sizePx??null,face:Qu(C,o,G,f),base:G?.base??null,source:$,slug:ks(C),onBack:t,shows:g,ownLook:Wv(Jr),sizedStyle:Z(JH,{style:g("style")?{value:G4,options:o2(j4,u),onChange:Qr=>QS(Qr?{textStyle:Qr}:{textStyle:null,role:null}),onEditStyles:r}:void 0,cells:K4})})})}return Z(At,{motion:Re,body:Z(a2,{region:Te,sizePx:G?.base.sizePx??null,face:Qu(C,o,G,f),base:G?.base??null,onFollowStyle:yt?hr:void 0,source:$,slug:ks(C),onBack:t,shows:g})})}if(!E||!k)return ge?Z("div",{className:"sf-note","aria-busy":"true"}):Z(Toe,{onBack:t,partId:P,why:E?"no field":"no selector"});let oo=G=>{l.replaceComponent(E.zone,E.index,{..._,props:G})},io=G=>{if(pa(G).hidden!==pa(pe).hidden||!B){let Te=F?av(C,b,F,G):{...C,[b]:G};Te&&oo(Te);return}Wf({node:_,propKey:o,kind:B,zone:E.zone,index:E.index},pa(G).text,l.replaceComponent)},So=pe,Xe=d?.partId===P?d:null,bo=Xe?.styleOwner,N=bo?a(bo.owner):null,te=bo&&N?n(bo.owner):null,he=!!(bo&&N&&te),$e=he?N.props??{}:C,Ao=he?G=>l.replaceComponent(te.zone,te.index,{...N,props:G}):oo,Uo=he?bo.kind:lr(_?.type,o),Fo=Or($e,Uo),ke=[{partKey:Uo,face:Qu($e,Uo,Xe,f),sizeGroup:Xe?.sizeGroup??null,base:Xe?.base??n2,style:Fo}],ht=boe(ke,G=>G.sizeGroup),_s=lf(Xe?.inks),Yr=(G,Te)=>{let yt=$e;for(let hr of ke)yt=la(yt,hr.partKey,G,Te);Ao(yt)},Yo=G=>G?Yr("textStyle",G):Xr({textStyle:null,role:null}),Xr=G=>{let Te=$e;for(let yt of ke)for(let[hr,Jr]of Object.entries(G))Te=la(Te,yt.partKey,hr,Jr??null);Ao(Te)},Ja=B==="text"||B==="textarea",{text:Lt,hidden:xr}=pa(pe),It=k?.[xoe]?.label??o,As=xr?c("Show {label} on the slide",{label:c(It)}):c("Hide {label} on the slide",{label:c(It)}),Fs=mt("div",{className:"sf-field-head",children:[Z(ioe,{}),Z("span",{className:"sf-field-label sf-field-label--inline",children:c(It)}),Ja&&Z(poe,{content:As,children:Z(coe,{"aria-pressed":xr,"aria-label":As,onClick:()=>io({text:Lt,hidden:!xr}),children:xr?Z(QH,{name:"eye-off",size:14}):Z(QH,{name:"eye",size:14})})})]}),gt=!H&&q,wm=!!B&&(IT(k)||H||xr||!q),od=Qu($e,Uo,Xe,f),td=od.kind==="role"?od.role:null,Zr=yx(Fo)??UT(td),Bs=$x(v.saved,v.old),Ls=Object.entries(Fo).filter(([G,Te])=>G!=="role"&&G!=="textStyle"&&Te!==void 0).length,Qa=()=>{let G=$e;for(let Te of ke){let{role:yt,textStyle:hr}=Te.style;G=Ov(G,Te.partKey),yt&&(G=la(G,Te.partKey,"role",yt)),hr&&(G=la(G,Te.partKey,"textStyle",hr))}Ao(G)},Rt=Zr,rd=GT(ke[0].style),ad=Rt?Bs.find(G=>G.id===Rt)?.name??Rt:"",nd=()=>{R(!1),Rt&&(v.write(KT({saved:v.saved,old:v.old,styleId:Rt,values:jT(ke[0].style)}),!0),Qa())};return mt(koe,{sectionName:D?.label??_.type,onBack:t,tabs:G=>Z(At,{motion:Re,body:G}),textEditor:g("words")?Z("div",{ref:w,className:"sf-part-text",children:wm?Z(jH,{text:Lt,onTextChange:G=>io(Ja?{text:G,hidden:xr}:G),multiline:cf(B),markup:B!=="plainText",styled:!1,style:ke[0].style,base:ke[0].base,setValue:Xr,colors:_s,placeholder:mS(ev(k))??void 0,ariaLabel:c(It),head:Fs,typedOnCanvas:i===P}):B?Ja?Fs:null:Z(aoe,{field:k,name:o,value:So,onChange:io,id:`sf-part-${e}-${o}`})}):void 0,children:[le&&g("sourceNote")&&Z(om,{source:le,slug:ks(C),menuId:Zu(C)}),gt&&Z(JH,{style:g("style")?{value:Zr??"",options:o2(Bs,u),onChange:G=>Yo(G||null),changed:Ls>0,onEditStyles:r,onUpdateStyle:Rt&&rd?()=>R(!0):void 0}:void 0,font:g("font")?{value:Fo.font??"",styleValue:cd(ke[0].base.fontKey,u)?.label,options:hb(u).map(G=>({label:G.label,value:G.key})),onChange:G=>Yr("font",G||null)}:void 0,italic:g("italic")?{value:Fo.italic,styleValue:Eoe(x,Zr),onChange:G=>Yr("italic",G??null)}:void 0,cells:Yu(ke[0].style,ke[0].base,Xr,Ju(T)).filter(G=>g(G.key)),align:g("align")?Ooe(Fo,ke[0].base.align,Ju(T),Yr):void 0,letterCase:g("letterCase")?{value:Fo.case??"",styleValue:ke[0].base.case,onChange:G=>Yr("case",G||null)}:void 0}),O&&Rt&&Z(KH,{styleName:ad,onCancel:()=>R(!1),onConfirm:nd}),gt&&ht===null&&g("fixedSizeHint")&&Z(s2,{children:c("Fixed size \u2014 the site\u2019s Text setting doesn\u2019t resize this.")}),i2(Coe,G=>g(G)&&(G==="words"||(G==="sourceNote"?!!le:G==="fixedSizeHint"?gt&&ht===null:gt)))&&Z(Ka,{})]})}function Ooe(e,o,t,r){let a=hoe("align",t),n=_v(e,t);return{value:e[a]??"",styleValue:n??o,onChange:s=>r(a,s||null)}}function Eoe(e,o){return!o||!Array.isArray(e)?!1:e.find(t=>t?.id===o)?.values?.italic===!0}var n2={fontKey:"",sizePx:16,weight:400,lineRatio:1.4,letterEm:0,align:"left",case:"none",paddingPx:0};import{jsx as Ft,jsxs as SS,Fragment as Doe}from"react/jsx-runtime";import{useCallback as Noe,useRef as Moe,useState as $i}from"react";import{InspectorIconButton as Hoe}from"efficient-easel/chrome";import{useEasel as Woe}from"efficient-easel/easel";import{LoadingSpinner as $oe,PopupMenu as zoe,PopupMenuItem as Uoe,PopupMenuLabel as bS}from"efficient-shell/ui";import{CopyToPageIcon as joe}from"efficient-easel/icons";import{useEaselSession as Goe}from"efficient-easel/screen/lib/session-context";import{cloneNodeWithFreshIds as Koe}from"efficient-easel/screen/lib/document/section-doc";import{FOOTER_TYPE as qoe}from"efficient-easel/draw";import{newId as Foe}from"efficient-easel/data";import{isBackendError as vs}from"efficient-easel/screen/lib/backend-error";import{isEfficientBackend as y2}from"efficient-easel/screen/lib/session";var tm=qP(),xS=tm.set;function rm(e,o){xS(e,o)}function am(e,o){let t=tm.get(e);xS(e,o??(t==="live"?"changed":t))}function nm(e,o){xS(e,o??"live")}function f2(e){return tm.get(e)}function c2(e){return tm.use(e)}function p2(e,o){return e==="live"&&o?"changed":e}function hS({live:e,onPress:o,busy:t=!1,pinnedUnpublished:r=!1,goingLive:a}){let n=e==="live"&&!r,s=e==="changed"?c("Changes not live yet"):e==="never"?c("Never published"):r?c("Header and footer not live yet"):e==="live"?c("Everything is live"):null;return{label:c("Publish"),tooltip:e==="never"?c("Put this page on your site"):c("Put your changes on your site"),status:s,quiet:n?{label:c("Published"),reason:c("Everything is live")}:null,...a&&a.length?{goingLive:a}:{},onPress:o,busy:t}}function u2(e){return e.map(o=>o.change==="take_down"?c("{name} (taken down)",{name:o.name}):o.name)}var m2="SharedSection",_oe=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i,Hi=e=>{let o=e?.content;return Array.isArray(o)?o:[]},Wi=e=>{let o=e?.props?.id;return typeof o=="string"?o:void 0};function x2(e){if(e?.type!==m2)return null;let o=e.props?.section;return typeof o=="string"&&_oe.test(o)?o.toLowerCase():null}function h2(e){let o=[];for(let t of Hi(e)){let r=x2(t),a=Wi(t);r&&a&&o.push({refId:a,section:r})}return o}function sm(e){let o=Hi(e)[0];return o&&typeof o=="object"&&Wi(o)?o:null}function Aoe(e,o){return{type:m2,props:{id:e,section:o}}}function I2(e,o){let t=new Map,r=new Set,a=!1,n=Hi(e).map(s=>{let l=x2(s),i=Wi(s);if(!l||!i||r.has(l))return s;let d=sm(o.get(l)),f=Wi(d??void 0);return!d||!f||t.has(f)?s:(r.add(l),t.set(f,{section:l,refId:i,reference:s}),a=!0,d)});return{working:a?{...e,content:n}:e,held:t}}function g2(e,o,t){let r=new Map,a=!1,n=Hi(e).map(s=>{let l=Wi(s),i=l?o.get(l):void 0,d=i?t.get(i.section):void 0;if(!i||!d||r.has(i.section))return s;let f=Hi(d).slice(1),x=sm(d);return r.set(i.section,x===s?d:{...d,content:[s,...f]}),a=!0,i.reference??Aoe(i.refId,i.section)});return{page:a?{...e,content:n}:e,docs:r}}function yS(e){return!!(e?.publish&&e.liveState)}function Boe(e,o){if(!yS(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 Loe(e,o){return async(t,r)=>{try{await dT()}catch(a){throw new Error(c("A change waiting to go live could not be saved."),{cause:a})}return(await e.publish(o)).state==="live"?Ef({state:"live",changes:[]}):ca(0),{version:r??null}}}function gS(e,o,t){let r=o?{siteId:o}:void 0;return{resolve:a=>e.load({slug:a,...r}).then(n=>(n&&(rm(n.id,n.live),eT(n.id,n.videoFrames)),n)),saveLayout:(a,n,s,l)=>e.save(a,{layout:n},{version:s,clientId:l??""}).then(i=>(am(a,i.live),oT(a,i.videoFrames),ca(),i)),rereadVersion:e.version?a=>e.version(a):void 0,publish:yS(t)?Loe(t,r):e.publish?(a,n)=>e.publish(a,n?{version:n}:void 0).then(s=>(nm(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 Roe(e,o,t,r,a=!1){let n=null,s=new Set,l=!1,i=new Map,d=new Map,f=new Map,x=new Map,u={docId:null,lockHolder:null,conflict:null,saveFailed:!1,unpublished:!1,loadFailed:!1,sections:[]},h=new Set,I=()=>{if(!n)return!1;let b=f2(n.id);return b==="changed"||b==="never"||b===void 0&&l},S=b=>{u={...u,...b,docId:n?.id??null,unpublished:I(),sections:[...f.values()],rootProps:ZP(n?.layout)};for(let F of h)F()},v=(b,F,y)=>{F?f.set(b,{section:b,title:i.get(b)?.title??"",problem:F,holder:y}):f.delete(b)},O=b=>b&&typeof b=="object"&&!Array.isArray(b)?b:{},R=b=>s.has(b),T=()=>new Map([...i].map(([b,F])=>[b,F.layout])),g=()=>Foe("SharedSection"),w=(b,F,y,k)=>{let P=O(F);i.set(b,{layout:P,version:y,savedJson:JSON.stringify(P),title:k})},_={state:()=>u,subscribe:b=>(h.add(b),()=>{h.delete(b)})},E={sectionOf:b=>d.get(b)?.section??null,heldElsewhere:b=>{let F=d.get(b)?.section;return!!(F&&f.get(F)?.problem==="lock")},adopt:(b,F)=>{w(F.id,F.layout,F.layout_updated_at,F.title),d.set(b,{section:F.id,refId:g()}),x.set(F.id,F.used_on),S({})},place:b=>{if([...d.values()].some(k=>k.section===b.id))return null;let F=sm(O(b.layout)),y=typeof F?.props?.id=="string"?F.props.id:null;return!F||!y||!F.type?null:(w(b.id,b.layout,b.layout_updated_at,b.title),d.set(y,{section:b.id,refId:g()}),x.set(b.id,b.used_on),F)},usedOn:b=>x.get(b)??null,learn:b=>{for(let F of b){x.set(F.id,F.used_on);let y=i.get(F.id);y&&(y.title=F.title);let k=f.get(F.id);k&&f.set(F.id,{...k,title:F.title})}S({})}},D=async(b,F)=>{for(let[y,k]of b){let P=i.get(y),C=JSON.stringify(k);if(!(!P||C===P.savedJson||f.get(y)?.problem==="lock"))try{let B=await e.save(y,{layout:k},{version:P.version,clientId:F??""});am(y,B.live),P.layout=k,P.version=B.version,P.savedJson=C,v(y,null)}catch(B){vs(B,"changed-elsewhere")?v(y,"conflict"):vs(B,"lock-taken")?v(y,"lock",B.holder??void 0):v(y,"save")}}b.size&&ca(),S({})};return{resolve:async b=>{if(Wx(b===Er?null:_),Ax(b===Er?null:E),i=new Map,d=new Map,f=new Map,x=new Map,b===Er)return t.resolve(b);let F=!1,[y,k]=await Promise.all([t.resolve(b),e.load({slug:Er,...o}).catch(()=>(F=!0,null))]);if(k&&!hT(y?.layout)){rm(k.id,k.live);let $=O(k.layout);n={id:k.id,layout:$,version:k.version,savedJson:""}}else n=null;if(l=!1,!y)return S({conflict:null,saveFailed:!1,loadFailed:F}),y;let P=O(y.layout),C=h2(P),B=await Promise.all(C.map($=>e.load({id:$.section,...o}).catch(()=>null)));C.forEach(($,le)=>{let pe=B[le];pe?(rm(pe.id,pe.live),w($.section,pe.layout,pe.version,"")):(i.delete($.section),f.set($.section,{section:$.section,title:"",problem:"load"}))});let H=I2(P,T());if(d=H.held,!n)return d.size&&s.add(y.id),S({conflict:null,saveFailed:!1,loadFailed:F}),d.size?{...y,layout:H.working}:y;let q=JP(H.working,n.layout);return n.savedJson=JSON.stringify(_x(q,n.layout).chrome),s.add(y.id),S({conflict:null,saveFailed:!1,loadFailed:!1}),{...y,layout:q}},saveLayout:async(b,F,y,k)=>{if(!R(b))return t.saveLayout(b,F,y,k);let P=n,C=P?_x(F,P.layout):{page:F,chrome:null},B=g2(C.page,d,T()),H=await t.saveLayout(b,B.page,y,k);if(await D(B.docs,k),!P)return H;let q=JSON.stringify(C.chrome);if(!C.chrome||q===P.savedJson||u.lockHolder)return H;try{let $=await e.save(P.id,{layout:C.chrome},{version:P.version,clientId:k??""});am(P.id,$.live),ca(),P.layout=C.chrome,P.version=$.version,P.savedJson=q,l=!0,S({conflict:null,saveFailed:!1})}catch($){vs($,"changed-elsewhere")?S({conflict:$.conflict??{savedBy:"",savedByYou:!1,secondsAgo:0}}):vs($,"lock-taken")?S({lockHolder:$.holder??{name:"",secondsSinceSeen:0,secondsSinceHeld:0}}):S({saveFailed:!0})}return H},publish:t.publish?async(b,F)=>{let y=await t.publish(b,F),k=n;if(k&&R(b)&&!a&&e.publish&&I()&&!u.lockHolder){let P=await e.publish(k.id,k.version?{version:k.version}:void 0);nm(k.id,P.live),P.version!==null&&(k.version=P.version),l=!1,S({})}if(R(b)&&!a&&e.publish)for(let[P,C]of i){if(f.get(P)?.problem==="lock")continue;let B=await e.publish(P,C.version?{version:C.version}:void 0);nm(P,B.live),B.version!==null&&(C.version=B.version)}return y}:void 0,lock:r?{claim:async(b,F,y)=>{let k=await r.claim(b,F,y);if(!R(b))return k;let P=n;if(P)try{await r.claim(P.id,F,!1),u.lockHolder&&S({lockHolder:null})}catch(C){vs(C,"lock-taken")&&S({lockHolder:C.holder??{name:"",secondsSinceSeen:0,secondsSinceHeld:0}})}for(let C of i.keys())try{await r.claim(C,F,!1),f.get(C)?.problem==="lock"&&v(C,null)}catch(B){vs(B,"lock-taken")&&v(C,"lock",B.holder??void 0)}return i.size&&S({}),k},release:async(b,F)=>{if(await r.release(b,F),!R(b))return;let y=n;y&&!u.lockHolder&&await r.release(y.id,F).catch(()=>{});for(let k of i.keys())f.get(k)?.problem!=="lock"&&await r.release(k,F).catch(()=>{})}}:void 0,pinnedChrome:_}}function lm(e){let o=(t,r,a)=>e.save(t,r.layout?{...r,layout:r0(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 RHe(e,o,t){return e.update(o,a0(t))}function DHe(e,o=Oo(),t=Ag(),r={}){let a=y2(o),n=e?{siteId:e}:void 0,s=a?!!e:!0,l=o.site.update,i=a&&t.commerce&&t.service,d=!!r.editsPinnedInPlace&&i,f=yS(o.site)?o.site:void 0,x=lm(o.pages),u=gS(x,e,f),h=d?Roe(x,n,u,o.lock,!!f):null;return{capabilities:{canPublish:!!f||!!o.pages.publish,hasSiteSettings:a,hasSiteTheme:!!o.theme,placeholderFrames:!1,mediaEditing:!0,pageCreationInAdminForm:!o.pages.create,canDeletePagesInline:!!o.pages.remove,hasEditLock:!!o.lock,hasEditGuard:!0,hasPinnedChrome:i,editsPinnedInPlace:d,explainsSiteSettings:!1,hasSiteRecord:s,canEditSiteRecord:s&&!!l,hasPreviewLink:a||!!o.preview,hasCatalog:a&&t.commerce,hasForms:a&&t.service,hasBlog:!!o.blog&&t.service,offersCommerce:t.commerce,offersService:t.service},...u,...S2(u.resolve),lock:o.lock,...h,site:s?()=>o.site.get(n):void 0,siteLiveState:f?()=>f.liveState(n):void 0,siteVersions:Boe(f,n),updateSite:s&&l?I=>l(I,n):void 0,previewHref:o.preview?I=>o.preview.href(I):void 0}}function NHe(e,o=Oo(),t=Ag()){let r=y2(o),a=o.templates,n=a?lm(a.pages(e)):{list:()=>Promise.reject(new Error(IS)),load:()=>Promise.reject(new Error(IS)),save:()=>Promise.reject(new Error(IS))};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},...gS(n,void 0),...S2(gS(n,void 0).resolve),publish:void 0,templateName:a?()=>a.get(e).then(s=>s.name):void 0}}function S2(e){return{resolve:o=>(Wx(null),Ax(null),e(o))}}var IS="This editor's backend has no website templates.";function Voe(e,o,t){let r=Koe(e,void 0,o);return t?.(r)??r}function b2({node:e,currentSlug:o,siteId:t,tokenRef:r,runAuthed:a,onNotify:n}){let[s,l]=$i(!1),[i,d]=$i(null),f=Goe(),x=Woe(E=>E.config.components),[u,h]=$i(!1),[I,S]=$i(null),v=Moe(null),[O,R]=$i(null),T=Noe(async()=>{if(f.usesBridgedToken&&!r.current){h(!0);return}try{d(await Oo(f).pages.list(t?{siteId:t}:void 0))}catch{h(!0)}},[r,t,f]),g=()=>{if(s){l(!1);return}let E=v.current?.getBoundingClientRect();E&&R({top:E.bottom+6,right:Math.max(8,window.innerWidth-E.right)}),d(null),h(!1),T(),l(!0)},w=(i??[]).filter(E=>E.slug!==o),_=async E=>{if(I)return;S(E.slug);let D=Voe(e,x,f.documentHooks?.storedNode),b=await a(()=>Yoe(Oo(f).pages,E,D));S(null),l(!1),n?.(b?c("Duplicated to \u201C{name}\u201D",{name:E.label}):c("Couldn\u2019t duplicate the section \u2014 please retry"),b?"success":"error")};return SS(Doe,{children:[Ft("span",{"data-menu-toggle":!0,style:{display:"contents"},children:Ft(Hoe,{buttonRef:v,label:c("Duplicate to another page"),hasPopup:"menu",expanded:s,onClick:g,children:Ft(joe,{size:15})})}),s&&O&&Ft(zoe,{portal:!0,style:{top:O.top,right:O.right},onClose:()=>l(!1),children:SS("div",{role:"menu","aria-label":c("Duplicate to page"),children:[Ft(bS,{children:c("Duplicate to page")}),u?Ft(bS,{children:c("Couldn\u2019t load pages")}):i===null?Ft($oe,{label:c("Loading\u2026")}):w.length===0?Ft(bS,{children:c("No other pages")}):w.map(E=>SS(Uoe,{role:"menuitem",disabled:I!==null,onClick:()=>{_(E)},children:[Ft("span",{className:"min-w-0 flex-1 truncate",children:E.label}),I===E.slug?Ft("span",{className:"shrink-0 text-xs",children:c("Copying\u2026")}):E.draft&&Ft("span",{className:"shrink-0 text-xs",children:c("draft")})]},E.id))]})})]})}async function Yoe(e,o,t){let r=lm(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===qoe);s.splice(l===-1?s.length:l,0,VP(t)),await r.save(o.id,{layout:{root:{},zones:{},...n,content:s}},{version:a.version,clientId:""})}import{useScreenDocument as Cte}from"efficient-easel/screen/components/ScreenDocumentContext";import{useSectionOps as kte}from"efficient-easel/screen/lib/document/use-section-ops";import{SELECTION_MODE as f5e,isSelectionMode as PS}from"efficient-easel/screen/lib/screen-parts";import{usePreviewParts as vte}from"efficient-easel/draw/client";import{jsx as zi,jsxs as Xoe}from"react/jsx-runtime";import{SettingsDrill as Zoe}from"efficient-easel/panel";import{UiIcon as Joe}from"efficient-easel/draw/client";var Qoe="Not shown on the page";function ete({part:e,onOpen:o}){return zi(Zoe,{name:c(e.label),preview:e.offPage?c(Qoe):e.preview||c("Empty"),offPage:e.offPage,status:e.hidden?zi("span",{className:"sf-entry-eye",role:"img","aria-label":c("Hidden on the page"),children:zi(Joe,{name:"eye-off",size:14})}):void 0,onOpen:()=>o(e.key)})}function wS(e){return e.filter(o=>!o.identifier)}function w2({parts:e,onOpen:o,heading:t=!0}){let r=wS(e);return r.length?Xoe("div",{className:"sf-entries",children:[t?zi("h3",{className:"sf-entries-head",children:c("Text")}):null,r.map(a=>zi(ete,{part:a,onOpen:o},a.key))]}):null}import{HEADER_TYPE as Pte,ROOT_ZONE as R2}from"efficient-easel/draw";import{newId as ote}from"efficient-easel/data";import{HEADER_TYPE as zo,FOOTER_TYPE as Le,newNodeId as tte}from"efficient-easel/draw";function im(){return{type:zo,props:{id:tte(zo)}}}var C2=[{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"}],rte=C2.filter(e=>e.type!=="FooterLogo"&&e.type!=="FooterGroup"),ate="FooterGroup",k2="blocks";function v2(e){return e===Le?C2:e===ate?rte:null}function dm(){let e=(o,t)=>({type:o,props:{id:ote(o),...t}});return[e("FooterLogo",{widthPct:100,align:"left",tagline:""}),e("FooterEmailSignup",{...Zv}),e("FooterPayment",{...xf})]}function CS(e){switch(e?.type){case Do:case Je:return c("On every page");case zo:case Le:return c("On every page \xB7 old style");default:return null}}var P2=()=>null,T2=()=>c("Changed on every page");function fm(e,o){let t=UC(e,o);if(t)return t;let r=dP(e,o);if(!r)return null;let a=r.group===Do;return r.why==="type"?a?c("The header cannot take another one of these"):c("The footer cannot take another one of these"):a?c("The header holds at most 3 sections"):c("The footer holds at most 6 sections")}import{jsx as cm,Fragment as ste,jsxs as lte}from"react/jsx-runtime";import{useState as ite}from"react";import{createNode as dte,newId as fte}from"efficient-easel/data";import{useEasel as cte}from"efficient-easel/easel";import{Banner as pte,Button as kS}from"efficient-shell/ui";import{useScreenDocument as ute}from"efficient-easel/screen/components/ScreenDocumentContext";var nte=["FooterPayment"];function O2(e,o){let{id:t,...r}=e.props;for(let a of Dt(e))r[a]=r[a].map(n=>O2(n,o));return o(e.type,r)}var Ui=(e,o)=>{if(!nte.includes(e.type))return null;Zp();let t=Dr(e.type);return t?Ea({type:e.type,props:{...e.props}},t).nodes.map(r=>O2(r,o)):null};function E2(){let{appState:e,dispatch:o,config:t}=cte(f=>f),{readOnly:r}=ute(),[a,n]=ite(!1),s=e.data.content;if(r||s.some(f=>f.type===Je))return null;let l=s.find(f=>f.type===Le)??null,i=(f,x)=>dte(t,f,x),d=()=>{let f=di(l,i,fte(Je),Ui);o({type:"setData",data:x=>({...x,content:[...If(x.content,f)]}),recordHistory:!0}),n(!1)};return cm(pte,{tone:"info",title:c("This footer uses the old layout"),action:a?lte(ste,{children:[cm(kS,{variant:"primary",size:"sm",onClick:d,children:c("Switch now")}),cm(kS,{variant:"secondary",size:"sm",onClick:()=>n(!1),children:c("Cancel")})]}):cm(kS,{variant:"secondary",size:"sm",onClick:()=>n(!0),children:c("Switch to Box footer")}),children:c("Build this footer out of Boxes and blocks, like a page: the same menus, signup, social links and logo, with the copyright as a Legal Line. Your current footer is kept.")})}import{jsx as vS,jsxs as mte}from"react/jsx-runtime";import{InspectorUpLevel as _2}from"efficient-easel/chrome";function A2({nodeId:e,part:o,sectionName:t,onUpToSection:r}){let{select:a}=Gu(),n=ws(e,o,"picture");return mte("div",{children:[o!=="media"?vS(_2,{inline:!0,name:c(cr.media),onSelect:()=>a(va(e,"media"))}):vS(_2,{inline:!0,name:c(t),onSelect:r}),vS(At,{part:o,motion:n,itemWord:c(cr[o])})]})}import{HintsToggle as Tte,SettingsSwitch as Ote,hintsFoldClass as Ete}from"efficient-easel/panel";import{useHints as _te}from"efficient-easel/screen/lib/hints";var N2={kind:"header"},OS={kind:"website"},M2={kind:"website",tab:Nf,revealPageGroup:!0},H2={kind:"chat"},W2={kind:"social"},ji="Part";function Ate(e){return c("Part of {name}",{name:c(e)})}function Fte(e,o,t){let r=e.describeNode(o);return{name:t,kindLabel:r?Ate(r.label):c(ji)}}function Bte(e){switch(e){case"Header":return{title:c("Header settings belong to a website."),own:c("Each website created from this template sets its own header afterwards.")};case"Appearance":return{title:c("Appearance settings belong to a website."),own:c("Each website created from this template sets its own appearance afterwards.")};case"Live chat":return{title:c("Live chat settings belong to a website."),own:c("Each website created from this template sets its own live chat afterwards.")};case"Social link":return{title:c("Social link settings belong to a website."),own:c("Each website created from this template sets its own social link afterwards.")};default:return{title:c("{what} settings belong to a website.",{what:e}),own:c("Each website created from this template sets its own {what} afterwards.",{what:e.toLowerCase()})}}}function $2({what:e}){let o=Bte(e);return Vr("div",{className:"sf-note",children:[be("p",{children:be("strong",{children:o.title})}),Vr("p",{children:[c("A template is a blueprint \u2014 it has no website of its own, so there is nothing here to change.")," ",o.own]})]})}function TS(e){let o=Gl[e];return{name:cr[e],kindLabel:ji,icon:o,head:(t,r)=>{if(t.kind!==o)return null;let a=r.describeNode(t.nodeId);if(!a)return null;let n=D2({name:c(Vc(e,a.props)),tier:"part",of:c(a.label)},{partOf:({name:s})=>c("Part of {name}",{name:s})});return{name:n.name,kindLabel:n.kind}},render:(t,r)=>t.kind===o?be(A2,{nodeId:t.nodeId,part:e,sectionName:r.describeNode(t.nodeId)?.label??"Hero",onUpToSection:()=>r.onSelectNode(t.nodeId)}):null}}var Lte={header:{name:"Header",kindLabel:"Site settings",icon:"header",render:(e,o)=>{let t=o.hostPanels?.header;return t?be(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)=>be(Mf,{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:()=>be(kH,{})},social:{name:"Social links",kindLabel:"Site settings",icon:"social",render:()=>be(_H,{unavailable:be($2,{what:"Social link"})})},ticker:{name:Ma,kindLabel:ji,icon:"ticker",head:(e,o)=>e.kind==="ticker"?Fte(o,e.heroId,c(Ma)):null,render:e=>be(WH,{heroId:e.kind==="ticker"?e.heroId:""})},heroMedia:TS("media"),heroImage:TS("image"),heroImage2:TS("image2"),part:{name:ji,kindLabel:ji,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}=zt(e.propKey),n=a?Rn(t.fields[r],a):t.fields[r],s=fs(t.type),l=s?zs(s,e.propKey):null,i=s&&l?s[l].label:LO[e.propKey],d=i?c(i):sv(c(mf(uv(n??{},r))),a),f=D2({name:d,tier:"part",of:c(t.label)},{partOf:({name:x})=>c("Part of {name}",{name:x})});return{name:f.name,kindLabel:f.kind}},render:(e,o)=>e.kind==="part"?be(d2,{nodeId:e.nodeId,propKey:e.propKey,onBack:()=>o.onSelectNode(e.nodeId),onEditStyle:o.onOpenSiteStyles}):null}},Rte=new Set(["header","website","chat"]);function Dte(e,o){if(e==="selection")return null;let t=Lte[e];return Rte.has(e)&&!o.hasSiteSettings?{...t,kindLabel:"Not part of a template",render:()=>be($2,{what:t.name})}:t}function z2({mode:e,onOpenWebsiteSettings:o,onOpenSiteStyles:t,onSelectNode:r,hideNodeActions:a=!1,onNotify:n,onHidePanel:s}){let{capabilities:l,tokenRef:i,notifyParent:d,currentSlug:f,siteId:x,runAuthed:u,readOnly:h,navigate:I}=Cte(),{rows:S}=xl(),v=S?.find(te=>te.slug===f)??null,O=hte(),R=Object.keys(O.fields).some(te=>!te.startsWith("_")&&!zx.includes(te)),{websiteName:T}=ko(),g=kte({readOnly:h}),{select:w}=vte(),{selectedItem:_,getItemById:E,getSelectorForId:D,config:b,appState:F}=xte(te=>te),y=bte(b,_?{type:_.type,props:_.props}:null),k=_?hv(y??b.components[_.type]?.fields,_.props):[],P=te=>b.components[te]?.label??te,C=_?D(_.props.id):void 0,B=Dte(e.kind,l),H=wte(),q={capabilities:l,tokenRef:i,hostPanels:H.chrome?.panels,describeNode:te=>{let he=E(te);if(!he)return null;let $e=b.components[he.type];return{type:he.type,label:$e?.label??he.type,fields:$e?.fields??{},props:he.props??{}}},siteId:x,websiteName:T??null,notifyParent:d,onNotify:n,onOpenWebsiteSettings:o,onOpenSiteStyles:t,onSelectNode:r},$=B?.head?.(e,q)??null,le=gH({kind:v?.kind,pageName:v?.label}),pe=$?.name??(B?c(B.name):_?c(P(_.type)):le.name),ee=$?.kindLabel??(B?c(B.kindLabel):_?C&&C.zone!==R2?c("Block"):c("Section"):le.kindLabel),xe=B?B.icon:_?_.type:"page",oe=PS(e)&&_?Di(_.type):null,ie=!!_&&!!C&&C.zone===R2&&_.type!==Le&&_.type!==Pte,ge=fm(F?.data,_),Re=()=>{ge||C&&g.duplicateComponent(C.zone,C.index)},We=()=>{C&&(g.removeComponent(C.zone,C.index),g.select(null))},yo=_?b.components[_.type]?.defaultProps?.previewHover:void 0,oo=PS(e)&&!!_&&!!C&&yo!==void 0,io=oo&&_.props.previewHover===!0,So=()=>{!_||!C||g.replaceComponent(C.zone,C.index,{..._,props:{..._.props,previewHover:!io}})},{shown:Xe,setShown:bo}=_te(),N=!!(B||_||R);return Vr("div",{className:`es-sidepanel es-sidepanel--right sf-panel sf-panel--right ${Ete(Xe)}`.trim(),children:[be(gte,{icon:be(ja,{type:xe,size:15}),name:pe,kind:ee,actions:!a&&PS(e)&&_&&_.type!==Le?Vr(F2,{children:[be(B2,{label:c("Duplicate section"),title:ge??void 0,disabled:ge!==null,onClick:Re,children:be(yte,{size:15})}),ie&&l.hasSiteSettings&&be(b2,{node:_,currentSlug:f,siteId:x??void 0,tokenRef:i,runAuthed:u,onNotify:n}),be(B2,{label:c("Remove section"),danger:!0,onClick:We,children:be(Ste,{size:15})}),s?be(L2,{side:"right",onHide:s,divider:!0}):null]}):s?be(L2,{side:"right",onHide:s}):void 0}),oo&&Vr("div",{className:"sf-preview-pin",children:[Vr("div",{className:"sf-preview-pin-text",children:[be("span",{className:"sf-preview-pin-label",children:c("Preview hover state")}),be("span",{className:"sf-preview-pin-hint",children:c("not shown live")})]}),be(Ote,{checked:io,onChange:So,ariaLabel:c("Preview hover state")})]}),Vr("div",{className:"sf-insp-body es-insp-body sf-scroll",children:[B?B.render(e,q):_?Vr(F2,{children:[_.type===Le&&l.hasSiteSettings&&be(E2,{}),be(iT,{children:be(At,{entries:be(w2,{parts:k,heading:!1,onOpen:te=>w(Ut(_.props.id,te))}),entryCount:wS(k).length,itemWord:pe})}),oe&&be(om,{source:oe,slug:ks(_?.props),menuId:Zu(_?.props)})]}):R?be(At,{omit:zx}):be(Ite,{variant:"none",icon:!1,message:c("Select a section or block to edit it.")}),N&&be(Tte,{shown:Xe,onChange:bo,label:c("Show hints")})]})]})}import{jsx as p,jsxs as A,Fragment as q2}from"react/jsx-runtime";var eo={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)"},ES="repeating-linear-gradient(135deg,var(--sf-thumb-hatch1) 0,var(--sf-thumb-hatch1) 5px,var(--sf-thumb-hatch2) 5px,var(--sf-thumb-hatch2) 10px)";function j({w:e,h:o,tone:t="dark",r=2,style:a}){return p("div",{style:{width:e,height:o,borderRadius:r,background:eo[t],flex:"none",...a}})}var Nte={Hero:"hero",HeroSingle:"herosingle",IntroBleed:"intro",Collections:"collections",AlloyWheelsListing:"wheelslisting",CatalogFilterBar:"catalogfilterbar",ProductGrid:"productgrid",FitmentFinder:"fitmentfinder",Gallery:"gallery",GalleryB:"gallerygrid",SpecStrip:"specstrip",ProductHero:"producthero",SpecTable:"spectable",ProcessSteps:"processsteps",DetailRows:"detailrows",FitmentTable:"fitmenttable",CompatibleTyres:"compatibletyres",TyreSizes:"tyresizes",TyreFitment:"tyrefitment",EuTyreLabel:"eutyrelabel",RelatedProducts:"productgrid",BundleOffer:"bundleoffer",OrderSummary:"ordersummary",DeliveryOptions:"deliveryoptions",PaymentBadges:"paymentbadges",CheckoutCTA:"checkoutcta",Manifesto:"manifesto",ParagraphsA:"paragraphs",Prose:"prose",StatsParagraph:"statsparagraph",Chart:"chart",Mockup:"mockup",Footprint:"footprint",Timeline:"timeline",TimelineTrack:"timelinetrack",TitleWithButtons:"titlewithbuttons",Split:"split",Cards:"cards",FAQ:"faq",Testimonials:"testimonials",Masthead:"masthead",Breadcrumb:"breadcrumb",CategoryBar:"categorybar",FeaturedCover:"featuredcover",LongRead:"longread",ArticleBody:"articlebody",Series:"series",Subscribe:"subscribe",SubscribeBlogs:"subscribe",Events:"events",DocMasthead:"docmasthead",DocTabs:"doctabs",DocBody:"docbody",DocMetaCards:"docmetacards",Banner:"banner",Stats:"stats",KeyFeatures:"keyfeatures",Logos:"logos",Ticker:"ticker",Countdown:"countdown",Reviews:"reviews",SubmitBuild:"submitbuild",ReviewForm:"reviewform",Form:"form",AppointmentBooking:"appointmentbooking",ContactRouting:"contact",ContactLocations:"contactlocations",CityPictures:"citypictures",CityMaps:"citymaps",Header:"header",Footer:"footer",SectionHeader:"sectionheader",Grid:"grid",Flex:"blanksection",Spacer:"spacer",Divider:"divider",CustomHTML:"customhtml",Heading:"heading",Text:"text",ImageBlock:"image",ButtonBlock:"button",MenuBlock:"menu",EmailFormBlock:"emailform",SocialLogosBlock:"sociallogos",PaymentLogosBlock:"paymentlogos",LegalLineBlock:"legalline",SearchBlock:"search",CartBlock:"cart",CountrySwitchBlock:"countryswitch"},V={position:"absolute",inset:0},m={ink:"var(--sf-thumb-ink)",ink2:"var(--sf-thumb-ink-2)",inkSoft:"var(--sf-thumb-ink-soft)",inkSoft2:"var(--sf-thumb-ink-soft-2)",paper:"var(--sf-thumb-paper)",paper2:"var(--sf-thumb-paper-2)",warm:"var(--sf-thumb-warm)",rust:"var(--sf-thumb-rust)",onInk:"var(--sf-thumb-on-ink)",text:"var(--sf-thumb-scene-text)",muted:"var(--sf-thumb-scene-muted)",rule:"var(--sf-thumb-scene-rule)",mark1:"var(--sf-thumb-mark-1)",mark2:"var(--sf-thumb-mark-2)",card:"var(--sf-thumb-card)",scrim:"var(--sf-thumb-scrim)"},Ae=(e,o,t=160)=>({background:`linear-gradient(${t}deg,${e},${o})`});function mr({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 A("span",{style:{position:"absolute",display:"block",width:e,height:e,...o},children:[p("span",{style:r("8% 26% 30% 6%",m.mark1)}),p("span",{style:r("26% 6% 8% 30%",m.mark2,"multiply")})]})}function um({children:e}){return p("span",{style:{fontSize:"4.64cqw",fontWeight:700,letterSpacing:"0.06em",textTransform:"uppercase",color:m.muted},children:e})}function U2({over:e,overTone:o,head:t,headSize:r=11.5,cta:a,ctaBg:n,ctaFg:s,tone:l}){return A(q2,{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 _S({name:e,price:o}){return A("div",{style:{display:"flex",flexDirection:"column",gap:2,minWidth:0},children:[p("div",{style:{flex:1,minHeight:0,borderRadius:3,position:"relative",overflow:"hidden",...Ae(m.paper,m.paper2,150)},children:p(mr,{size:34,style:{left:"50%",top:"50%",transform:"translate(-50%,-50%)"}})}),p("span",{style:{fontSize:"3.65cqw",fontWeight:600,color:m.text},children:e}),p("span",{style:{fontSize:"3.65cqw",color:m.muted},children:o})]})}function ur({k:e,v:o,ok:t}){return A("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",gap:6,padding:"3.5px 2px",borderBottom:`1px solid ${m.rule}`,fontSize:"3.98cqw",color:m.muted},children:[p("span",{children:e}),A("span",{style:{display:"flex",gap:6,alignItems:"center"},children:[p("b",{style:{color:m.text,fontWeight:700},children:o}),t&&p("span",{style:{color:m.rust,fontWeight:700},children:"\u2713"})]})]})}function Ce({title:e,children:o}){return A("div",{style:{...V,background:m.card,padding:"9px 10px",display:"flex",flexDirection:"column",gap:6},children:[p(um,{children:e}),o]})}function j2({size:e=14}){return p("span",{style:{width:e,height:e,borderRadius:"50%",flex:"none",display:"block",background:`linear-gradient(150deg,${m.mark1},${m.mark2})`}})}function AS({filled:e=5,size:o=6}){return A("span",{style:{fontSize:o,letterSpacing:"0.06em",color:m.rust,lineHeight:1},children:["\u2605".repeat(e),p("span",{style:{color:m.mark1},children:"\u2605".repeat(5-e)})]})}function Gi({n:e,label:o,tone:t=m.text}){return A("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 Ye({children:e,w:o}){return p("span",{style:{fontSize:"3.98cqw",lineHeight:1.45,color:m.muted,width:o,display:"block"},children:e})}function pm({label:e,w:o="100%",filled:t}){return A("div",{style:{width:o,display:"flex",flexDirection:"column",gap:2},children:[p("span",{style:{fontSize:"3.32cqw",letterSpacing:"0.08em",textTransform:"uppercase",color:m.muted},children:e}),p("span",{style:{height:9,borderRadius:3,border:`1px solid ${m.rule}`,background:t?m.paper:m.card}})]})}function G2({children:e}){return p("span",{style:{alignSelf:"flex-start",fontSize:"3.65cqw",letterSpacing:"0.12em",fontWeight:700,padding:"5px 9px",borderRadius:2,background:m.text,color:m.onInk},children:e})}var Mte={wheelslisting:p(Ce,{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])=>A("div",{style:{display:"flex",alignItems:"center",gap:6},children:[p("span",{style:{width:20,height:15,borderRadius:3,flex:"none",position:"relative",overflow:"hidden",...Ae(m.paper,m.paper2,150)},children:p(mr,{size:12,style:{left:"50%",top:"50%",transform:"translate(-50%,-50%)"}})}),p("b",{style:{flex:1,fontSize:"4.31cqw",color:m.text},children:e}),p("span",{style:{fontSize:"3.65cqw",color:m.muted},children:o}),p("b",{style:{fontSize:"4.31cqw",color:m.text,width:26,textAlign:"right"},children:t})]},e))})}),catalogfilterbar:A("div",{style:{...V,background:m.card,display:"flex",flexDirection:"column",justifyContent:"center",gap:7,padding:"0 11px"},children:[A("div",{style:{display:"flex",gap:4,alignItems:"center"},children:[["20 inch","6\xD7139.7","Black"].map(e=>A("span",{style:{fontSize:"3.65cqw",fontWeight:600,padding:"4px 7px",borderRadius:99,background:m.text,color:m.onInk,display:"flex",gap:4,alignItems:"center"},children:[e,p("span",{style:{opacity:.6},children:"\u2715"})]},e)),p("span",{style:{fontSize:"3.65cqw",color:m.rust,fontWeight:700},children:"Clear"})]}),A("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[p("span",{style:{fontSize:"3.65cqw",color:m.muted},children:"128 results"}),p("span",{style:{fontSize:"3.65cqw",color:m.muted,border:`1px solid ${m.rule}`,borderRadius:3,padding:"3px 6px"},children:"Sort: Price \u25BE"})]})]}),fitmentfinder:A("div",{style:{...V,padding:"10px 12px",display:"flex",flexDirection:"column",gap:6,justifyContent:"center",...Ae(m.ink,m.inkSoft)},children:[p("span",{style:{fontSize:"5.31cqw",fontWeight:700,color:m.onInk},children:"Will it fit your rig?"}),A("div",{style:{display:"flex",gap:4},children:[["2021","Toyota","Hilux"].map(e=>A("span",{style:{flex:1,fontSize:"3.65cqw",color:m.text,background:m.card,borderRadius:3,padding:"5px 6px",display:"flex",justifyContent:"space-between"},children:[e," ",p("span",{style:{color:m.muted},children:"\u25BE"})]},e)),p("span",{style:{fontSize:"3.65cqw",fontWeight:700,letterSpacing:"0.08em",background:m.warm,color:m.ink,borderRadius:3,padding:"5px 7px"},children:"GO"})]})]}),compatibletyres:p(Ce,{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])=>A("div",{style:{display:"flex",flexDirection:"column",gap:2,minWidth:0},children:[p("div",{style:{flex:1,minHeight:0,borderRadius:3,position:"relative",overflow:"hidden",background:m.ink},children:p("span",{style:{position:"absolute",left:"50%",top:"50%",transform:"translate(-50%,-50%)",width:26,height:26,borderRadius:"50%",border:`5px solid ${m.mark2}`,boxSizing:"border-box"}})}),p("span",{style:{fontSize:"3.32cqw",fontWeight:600,color:m.text,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},children:e}),p("span",{style:{fontSize:"3.32cqw",color:m.muted},children:o})]},e))})}),tyresizes:p(Ce,{title:"Available sizes",children:p("div",{style:{flex:1,display:"flex",flexWrap:"wrap",gap:4,alignContent:"center"},children:["265/65R17","285/70R17","265/60R18","275/55R20"].map((e,o)=>p("span",{style:{fontSize:"3.65cqw",fontWeight:600,padding:"5px 7px",borderRadius:3,border:`1px solid ${o===0?m.rust:m.rule}`,color:o===0?m.rust:m.text,background:o===0?m.paper:m.card},children:e},e))})}),tyrefitment:A(Ce,{title:"Will it fit your car?",children:[p("div",{style:{display:"flex",gap:3},children:["Make","Model","Year","Trim"].map(e=>A("span",{style:{flex:1,minWidth:0,fontSize:"3.32cqw",color:m.muted,background:m.paper,border:`1px solid ${m.rule}`,borderRadius:3,padding:"4px 5px",display:"flex",justifyContent:"space-between",gap:2,overflow:"hidden",whiteSpace:"nowrap"},children:[e," ",p("span",{style:{color:m.muted},children:"\u25BE"})]},e))}),p("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:2,justifyContent:"center",minHeight:0},children:[["265/65R17","Fits",!0],["285/70R17","Not your size",!1]].map(([e,o,t])=>A("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"baseline",gap:6,borderTop:`1px solid ${m.rule}`,paddingTop:3},children:[p("span",{style:{fontSize:"3.32cqw",fontWeight:600,color:m.text},children:e}),p("span",{style:{fontSize:"3.32cqw",fontWeight:t?700:400,letterSpacing:"0.06em",color:t?m.warm:m.muted},children:o})]},e))})]}),eutyrelabel:A("div",{style:{...V,background:m.card,padding:"9px 11px",display:"flex",gap:8,alignItems:"center"},children:[p("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:1.5},children:[["A","42%"],["B","56%"],["C","70%"],["D","84%"]].map(([e,o],t)=>A("div",{style:{display:"flex",alignItems:"center",gap:3},children:[p("span",{style:{width:o,height:6,borderRadius:"0 2px 2px 0",background:t===1?m.rust:m.mark1}}),p("span",{style:{fontSize:"3.32cqw",fontWeight:700,color:t===1?m.rust:m.muted},children:e})]},e))}),A("div",{style:{flex:"none",display:"flex",flexDirection:"column",gap:3,alignItems:"center"},children:[p("b",{style:{fontSize:"6.63cqw",lineHeight:1,color:m.text},children:"72"}),p("span",{style:{fontSize:"3.32cqw",letterSpacing:"0.08em",color:m.muted},children:"dB"})]})]}),bundleoffer:A("div",{style:{...V,background:m.paper,padding:"9px 11px",display:"flex",flexDirection:"column",gap:5,justifyContent:"center"},children:[p(um,{children:"Buy it with"}),A("div",{style:{display:"flex",alignItems:"center",gap:5},children:[[0,1].map(e=>p("span",{style:{width:26,height:22,borderRadius:3,flex:"none",position:"relative",overflow:"hidden",background:m.card},children:p(mr,{size:17,style:{left:"50%",top:"50%",transform:"translate(-50%,-50%)"}})},e)),p("span",{style:{fontSize:"5.69cqw",fontWeight:700,color:m.muted},children:"+"}),A("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:1},children:[p("span",{style:{fontSize:"3.65cqw",color:m.muted,textDecoration:"line-through"},children:"$1,024"}),p("b",{style:{fontSize:"6.02cqw",color:m.rust,lineHeight:1},children:"$899"})]})]})]}),checkoutcta:A("div",{style:{...V,display:"flex",alignItems:"center",justifyContent:"space-between",padding:"0 13px",gap:8,...Ae(m.ink,m.ink2)},children:[A("div",{style:{display:"flex",flexDirection:"column",gap:2},children:[p("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.12em",color:m.warm,fontWeight:700},children:"READY TO ORDER"}),p("b",{style:{fontSize:"6.63cqw",color:m.onInk,lineHeight:1},children:"$1,956"}),p("span",{style:{fontSize:"3.65cqw",color:m.onInk,opacity:.65},children:"4 items \xB7 fitted free"})]}),p("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.12em",fontWeight:700,padding:"6px 10px",borderRadius:2,background:m.warm,color:m.ink,flex:"none"},children:"CHECKOUT"})]}),contact:p(Ce,{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])=>A("div",{style:{display:"flex",alignItems:"center",gap:5},children:[p("b",{style:{flex:1,fontSize:"4.31cqw",color:m.text},children:e}),p("span",{style:{fontSize:"3.65cqw",color:m.muted},children:o}),p("span",{style:{fontSize:"4.64cqw",color:m.rust,lineHeight:1},children:"\u203A"})]},e))})}),contactlocations:p(Ce,{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])=>A("div",{style:{border:`1px solid ${m.rule}`,borderRadius:4,padding:"5px 6px",display:"flex",flexDirection:"column",gap:1},children:[p("b",{style:{fontSize:"4.31cqw",color:m.text},children:e}),p("span",{style:{fontSize:"3.32cqw",color:m.muted},children:o}),p("span",{style:{fontSize:"3.32cqw",color:m.rust,fontWeight:700},children:t})]},e))})}),citypictures:p(Ce,{title:"Our studios",children:A("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:3,minHeight:0},children:[p("span",{style:{fontSize:"3.32cqw",letterSpacing:"0.12em",fontWeight:700,color:m.muted},children:"A \xB7 AMERICAS"}),p("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(3,1fr)",gap:4,minHeight:0},children:["Los Angeles","Miami","Toronto"].map(e=>A("div",{style:{position:"relative",minHeight:0},children:[p(j,{r:3,style:{...V,background:`linear-gradient(transparent 45%,${m.scrim} 45%),${Ae(m.ink,m.inkSoft2).background}`}}),p("b",{style:{position:"absolute",left:5,bottom:4,fontSize:"3.65cqw",color:m.onInk},children:e})]},e))})]})}),citymaps:p(Ce,{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])=>A("div",{style:{position:"relative",padding:"4px 5px",display:"flex",flexDirection:"column",gap:2,minHeight:0},children:[p(j,{r:4,style:{...V,background:"none",border:`1px solid ${m.rule}`}}),p("b",{style:{position:"relative",fontSize:"4.31cqw",color:m.text},children:e}),p("span",{style:{position:"relative",fontSize:"3.32cqw",color:m.muted},children:o}),A("div",{style:{flex:1,minHeight:0,position:"relative"},children:[p(j,{r:3,style:{...V,...Ae(m.paper,m.paper2,150)}}),p(j,{w:"60%",h:"60%",r:8,style:{position:"absolute",left:"12%",top:"20%",background:m.mark1,opacity:.75}}),p(j,{w:6,h:6,r:3,style:{position:"absolute",left:"44%",top:"34%",background:m.rust}})]})]},e))})}),form:p(Ce,{title:"Send us a message",children:A("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[A("div",{style:{display:"flex",gap:5},children:[p(pm,{label:"Name"}),p(pm,{label:"Email"})]}),p(pm,{label:"Message",filled:!0}),p(G2,{children:"SEND"})]})}),appointmentbooking:p(Ce,{title:"Book a fitting",children:A("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[p("div",{style:{display:"flex",gap:3},children:["Mon","Tue","Wed","Thu"].map((e,o)=>p("span",{style:{flex:1,textAlign:"center",fontSize:"3.32cqw",fontWeight:o===2?700:500,padding:"4px 0",borderRadius:3,background:o===2?m.text:m.paper,color:o===2?m.onInk:m.muted},children:e},e))}),p("div",{style:{display:"flex",gap:3},children:["8:00","10:30","13:00","15:30"].map((e,o)=>p("span",{style:{flex:1,textAlign:"center",fontSize:"3.32cqw",padding:"4px 0",borderRadius:3,border:`1px solid ${o===1?m.rust:m.rule}`,color:o===1?m.rust:m.muted,background:o===3?m.paper:m.card,textDecoration:o===3?"line-through":"none"},children:e},e))})]})}),reviewform:p(Ce,{title:"Leave a review",children:A("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:5,justifyContent:"center"},children:[p(AS,{filled:4,size:14}),p(pm,{label:"Your review",filled:!0}),p(G2,{children:"POST"})]})}),submitbuild:p(Ce,{title:"Show us your build",children:A("div",{style:{flex:1,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:3,border:`1px dashed ${m.mark1}`,borderRadius:5,background:m.paper},children:[p("span",{style:{fontSize:"6.63cqw",lineHeight:1,color:m.rust,fontWeight:300},children:"+"}),p("span",{style:{fontSize:"3.65cqw",color:m.muted},children:"Drop a photo of your rig"})]})}),masthead:A("div",{style:{...V,background:m.paper,display:"flex",flexDirection:"column",justifyContent:"center",padding:"0 13px",gap:5},children:[p("span",{style:{height:1.5,background:m.text}}),p("span",{style:{fontSize:"7.65cqw",fontWeight:800,letterSpacing:"0.02em",color:m.text,lineHeight:1},children:"THE TRACK"}),A("div",{style:{display:"flex",justifyContent:"space-between",fontSize:"3.65cqw",letterSpacing:"0.1em",textTransform:"uppercase",color:m.muted},children:[p("span",{children:"Issue 14"}),p("span",{children:"Spring 2026"})]}),p("span",{style:{height:1,background:m.rule}})]}),featuredcover:A("div",{style:{...V,overflow:"hidden",...Ae(m.ink,m.inkSoft2)},children:[p(mr,{size:92,style:{right:-18,top:-14}}),p("div",{style:{position:"absolute",inset:0,background:`linear-gradient(0deg,${m.scrim},transparent 62%)`}}),A("div",{style:{position:"absolute",left:12,right:12,bottom:11,display:"flex",flexDirection:"column",gap:3},children:[p("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.16em",fontWeight:700,color:m.warm},children:"FEATURE"}),p("span",{style:{fontSize:"6.16cqw",lineHeight:1.15,fontWeight:700,color:m.onInk},children:"Four days on the Madigan Line"})]})]}),longread:A("div",{style:{...V,background:m.card,padding:"10px 14px",display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[p("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.14em",fontWeight:700,color:m.rust},children:"12 MIN READ"}),p("span",{style:{fontSize:"6.02cqw",lineHeight:1.15,fontWeight:700,color:m.text},children:"What breaks first, and why"}),p(Ye,{children:"Every failure starts in the same place:"}),p(Ye,{w:"80%",children:"the bolt nobody re-torqued."})]}),articlebody:A("div",{style:{...V,background:m.card,padding:"10px 22px",display:"flex",flexDirection:"column",gap:4,justifyContent:"center",alignItems:"center",textAlign:"center"},children:[p("span",{style:{fontSize:"4.97cqw",lineHeight:1.2,fontWeight:700,color:m.text},children:"Why offset beats width"}),p(Ye,{w:"100%",children:"A wider wheel adds grip only if the offset still"}),p(Ye,{w:"88%",children:"clears the arch, so the offset is chosen first."}),p(Ye,{w:"80%",children:"Width follows from the space left."})]}),series:p(Ce,{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])=>A("div",{style:{display:"flex",alignItems:"center",gap:6},children:[p("span",{style:{width:3,height:12,borderRadius:2,background:m.rust,flex:"none"}}),p("b",{style:{flex:1,fontSize:"4.64cqw",color:m.text},children:e}),p("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.08em",textTransform:"uppercase",color:m.muted},children:o})]},e))})}),events:p(Ce,{title:"Latest posts",children:p("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:5,justifyContent:"center"},children:[[m.inkSoft,m.inkSoft2,"Madigan Line, four days"],[m.rust,m.warm,"Why offset beats width"]].map(([e,o,t])=>A("div",{style:{display:"flex",gap:6,alignItems:"center"},children:[p("span",{style:{width:24,height:18,borderRadius:3,flex:"none",...Ae(e,o,150)}}),A("div",{style:{display:"flex",flexDirection:"column",gap:1,minWidth:0},children:[p("b",{style:{fontSize:"4.31cqw",color:m.text},children:t}),p("span",{style:{fontSize:"3.65cqw",color:m.muted},children:"4 Sep \xB7 Shed Notes"})]})]},t))})}),docmasthead:A("div",{style:{...V,background:m.card,padding:"12px 14px",display:"flex",flexDirection:"column",gap:5,justifyContent:"center"},children:[p("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.16em",fontWeight:700,color:m.muted},children:"POLICY"}),p("span",{style:{fontSize:"6.49cqw",fontWeight:700,color:m.text,lineHeight:1.1},children:"Returns & refunds"}),p("span",{style:{fontSize:"3.65cqw",color:m.muted},children:"Version 3 \xB7 Updated 4 Sep 2026"}),p("span",{style:{height:2,width:26,background:m.rust,borderRadius:1}})]}),docbody:p("div",{style:{...V,background:m.card,padding:"9px 13px",display:"flex",flexDirection:"column",gap:3,justifyContent:"center"},children:[["1.","You may return an unfitted wheel within 30 days."],["2.","Fitted wheels are covered by the structural warranty."],["3.","Freight on a change of mind is yours."]].map(([e,o])=>A("div",{style:{display:"flex",gap:5},children:[p("b",{style:{fontSize:"3.98cqw",color:m.rust,flex:"none"},children:e}),p(Ye,{children:o})]},e))}),docmetacards:p(Ce,{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])=>A("div",{style:{border:`1px solid ${m.rule}`,borderRadius:4,padding:"5px 6px",display:"flex",flexDirection:"column",gap:1},children:[p("b",{style:{fontSize:"5.31cqw",color:m.text,lineHeight:1},children:e}),p("span",{style:{fontSize:"3.32cqw",letterSpacing:"0.08em",textTransform:"uppercase",color:m.muted},children:o})]},o))})}),doctabs:A("div",{style:{...V,background:m.card,display:"flex",flexDirection:"column",justifyContent:"center",gap:0,padding:"0 11px"},children:[p("div",{style:{display:"flex",gap:0},children:["Returns","Warranty","Shipping"].map((e,o)=>p("span",{style:{fontSize:"3.98cqw",fontWeight:o===0?700:500,padding:"5px 8px",color:o===0?m.text:m.muted,background:o===0?m.paper:"transparent",borderRadius:"4px 4px 0 0",border:`1px solid ${o===0?m.rule:"transparent"}`,borderBottom:"none"},children:e},e))}),p("span",{style:{height:1,background:m.rule}}),A("div",{style:{paddingTop:6,display:"flex",flexDirection:"column",gap:2},children:[p(Ye,{children:"Unfitted wheels come back within 30 days, no questions."}),p(Ye,{w:"58%",children:"Freight on a change of mind is yours."})]})]}),paragraphs:A("div",{style:{...V,background:m.card,padding:"11px 14px",display:"flex",gap:10,alignItems:"center"},children:[p("span",{style:{flex:1,fontSize:"5.86cqw",lineHeight:1.2,fontWeight:700,color:m.text},children:"The right wheel is the boring one."}),A("div",{style:{flex:1,display:"flex",flexDirection:"column"},children:[p(Ye,{children:"Forged, correctly offset, rated for what you actually"}),p(Ye,{children:"carry. Everything else is a photograph."})]})]}),keyfeatures:p(Ce,{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=>A("div",{style:{display:"flex",gap:6,alignItems:"center"},children:[p("span",{style:{fontSize:"4.64cqw",color:m.rust,fontWeight:700,lineHeight:1},children:"\u2713"}),p("span",{style:{fontSize:"4.31cqw",color:m.text},children:e})]},e))})}),statsparagraph:A("div",{style:{...V,background:m.paper,padding:"10px 12px",display:"flex",gap:10,alignItems:"center"},children:[A("div",{style:{flex:"none",display:"flex",flexDirection:"column",gap:5},children:[p(Gi,{n:"27k",label:"Rigs"}),p(Gi,{n:"4.9",label:"Rating"})]}),A("div",{style:{flex:1,display:"flex",flexDirection:"column"},children:[p(Ye,{children:"Twelve years of fitting the same three questions, and the"}),p(Ye,{children:"answer has not moved: load rating, offset, then looks."})]})]}),chart:A(Ce,{title:"Load vs weight",children:[p("div",{style:{flex:1,display:"flex",alignItems:"flex-end",gap:5,paddingBottom:2},children:[38,62,84,71,96].map((e,o)=>p("span",{style:{flex:1,height:`${e}%`,borderRadius:"2px 2px 0 0",background:o===4?m.rust:m.mark1}},o))}),p("span",{style:{height:1,background:m.rule,marginTop:-4}})]}),mockup:p("div",{style:{...V,overflow:"hidden",display:"flex",alignItems:"center",justifyContent:"center",...Ae(m.inkSoft,m.ink)},children:A("div",{style:{width:"72%",height:"74%",borderRadius:4,overflow:"hidden",background:m.card,boxShadow:`0 6px 14px ${m.scrim}`},children:[p("div",{style:{height:9,background:m.paper,display:"flex",alignItems:"center",gap:2,padding:"0 4px"},children:[0,1,2].map(e=>p("span",{style:{width:2.5,height:2.5,borderRadius:"50%",background:m.mark1}},e))}),A("div",{style:{padding:5,display:"flex",flexDirection:"column",gap:3},children:[p("span",{style:{height:4,width:"56%",borderRadius:1,background:m.mark2}}),p("span",{style:{height:14,borderRadius:2,...Ae(m.paper,m.paper2,150)}}),p("span",{style:{height:3,width:"38%",borderRadius:1,background:m.rust}})]})]})}),manifesto:p("div",{style:{...V,overflow:"hidden",display:"flex",alignItems:"center",padding:"0 16px",...Ae(m.ink,m.ink2)},children:A("span",{style:{fontSize:"6.63cqw",lineHeight:1.2,fontWeight:700,color:m.onInk},children:["We build for the ",p("span",{style:{color:m.warm},children:"last"})," ten percent of the track."]})}),timeline:p(Ce,{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)=>A("div",{style:{display:"flex",gap:7,alignItems:"flex-start",position:"relative"},children:[t<2&&p("span",{style:{position:"absolute",left:3,top:8,bottom:-8,width:1,background:m.rule}}),p("span",{style:{width:7,height:7,borderRadius:"50%",flex:"none",marginTop:1,background:m.rust,zIndex:1}}),A("div",{style:{display:"flex",flexDirection:"column",gap:0,minWidth:0},children:[p("b",{style:{fontSize:"4.64cqw",color:m.text},children:e}),p(Ye,{children:o})]})]},e))})}),timelinetrack:A("div",{style:{...V,padding:"0 12px",display:"flex",flexDirection:"column",gap:10,justifyContent:"center",...Ae(m.ink,m.inkSoft)},children:[p("span",{style:{fontSize:"3.98cqw",fontWeight:700,letterSpacing:"0.14em",textTransform:"uppercase",color:m.warm},children:"Milestones"}),A("div",{style:{position:"relative",display:"flex",justifyContent:"space-between",paddingTop:7},children:[p("span",{style:{position:"absolute",left:0,right:0,top:3,height:1,background:m.mark2,opacity:.55}}),["1998","2009","2016","2024"].map((e,o)=>A("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:3,position:"relative"},children:[p("span",{style:{position:"absolute",top:-7,width:6,height:6,borderRadius:"50%",background:o===3?m.warm:m.mark1}}),p("span",{style:{fontSize:"4.31cqw",fontWeight:700,color:o===3?m.warm:m.onInk,opacity:o===3?1:.75},children:e})]},e))]})]}),footprint:A("div",{style:{...V,overflow:"hidden",...Ae(m.paper,m.paper2,150)},children:[p("span",{style:{position:"absolute",left:"8%",top:"18%",width:"62%",height:"64%",borderRadius:"48% 52% 40% 60% / 55% 45% 55% 45%",background:m.mark1,opacity:.75}}),p("span",{style:{position:"absolute",left:"52%",top:"52%",width:"34%",height:"34%",borderRadius:"58% 42% 55% 45% / 45% 58% 42% 55%",background:m.mark2,opacity:.55}}),[["26%","38%"],["44%","58%"],["62%","34%"]].map(([e,o])=>p("span",{style:{position:"absolute",left:e,top:o,width:7,height:7,borderRadius:"50% 50% 50% 0",transform:"rotate(-45deg)",background:m.rust}},e)),p("span",{style:{position:"absolute",left:11,bottom:9,fontSize:"4.64cqw",fontWeight:700,color:m.text},children:"3 fitting bays"})]}),banner:A("div",{style:{...V,display:"flex",alignItems:"center",justifyContent:"space-between",padding:"0 13px",gap:8,background:m.rust},children:[A("div",{style:{display:"flex",flexDirection:"column",gap:2},children:[p("b",{style:{fontSize:"6.02cqw",color:m.onInk},children:"End of season \xB7 20% off"}),p("span",{style:{fontSize:"3.98cqw",color:m.onInk,opacity:.8},children:"Fitted free, this month only."})]}),p("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.12em",fontWeight:700,padding:"5px 9px",borderRadius:2,background:m.onInk,color:m.text,flex:"none"},children:"SHOP"})]}),titlewithbuttons:A("div",{style:{...V,background:m.paper,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:7,padding:"0 14px",textAlign:"center"},children:[p("span",{style:{fontSize:"6.49cqw",lineHeight:1.15,fontWeight:700,color:m.text},children:"Not sure what fits?"}),A("div",{style:{display:"flex",gap:5},children:[p("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.12em",fontWeight:700,padding:"5px 9px",borderRadius:2,background:m.text,color:m.onInk},children:"FIND MY FIT"}),p("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.12em",fontWeight:700,padding:"5px 9px",borderRadius:2,border:`1px solid ${m.text}`,color:m.text},children:"CALL US"})]})]}),ticker:p("div",{style:{...V,overflow:"hidden",background:m.ink,display:"flex",alignItems:"center"},children:p("span",{style:{whiteSpace:"nowrap",fontSize:"6.29cqw",fontWeight:800,letterSpacing:"0.06em",color:m.warm,marginLeft:-14},children:"FREE FITTING \xB7 48HR DISPATCH \xB7 FREE FITTING \xB7 48HR DISPATCH"})}),countdown:A("div",{style:{...V,padding:"10px 12px",display:"flex",flexDirection:"column",alignItems:"center",gap:6,justifyContent:"center",...Ae(m.ink,m.ink2)},children:[p("span",{style:{fontSize:"3.65cqw",fontWeight:700,letterSpacing:"0.16em",textTransform:"uppercase",color:m.muted},children:"Back online in"}),p("div",{style:{display:"flex",alignItems:"flex-start",gap:5},children:[["23","Hours"],["59","Minutes"],["48","Seconds"]].map(([e,o],t)=>A("div",{style:{display:"flex",alignItems:"flex-start",gap:5},children:[t>0&&p("b",{style:{fontSize:"9.5cqw",lineHeight:1,color:m.warm},children:":"}),A("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:2},children:[p("b",{style:{fontSize:"11.5cqw",lineHeight:1,color:m.onInk,fontVariantNumeric:"tabular-nums"},children:e}),p("span",{style:{fontSize:"3.2cqw",letterSpacing:"0.1em",textTransform:"uppercase",opacity:.62,color:m.onInk},children:o})]})]},o))})]}),breadcrumb:p("div",{style:{...V,background:m.card,display:"flex",alignItems:"center",padding:"0 13px"},children:A("span",{style:{fontSize:"4.64cqw",color:m.muted},children:["Home ",p("span",{style:{opacity:.5},children:"/"})," Wheels ",p("span",{style:{opacity:.5},children:"/"})," ",p("span",{style:{color:m.text,fontWeight:700},children:"20 inch"})]})}),categorybar:A("div",{style:{...V,background:m.card,display:"flex",flexDirection:"column",justifyContent:"center",gap:7,padding:"0 11px"},children:[p("div",{style:{display:"flex",gap:5},children:["All","Wheels","Tyres","Lift"].map((e,o)=>p("span",{style:{fontSize:"3.98cqw",fontWeight:o===0?700:500,padding:"4px 7px",borderRadius:99,background:o===0?m.text:m.paper,color:o===0?m.onInk:m.muted},children:e},e))}),p("span",{style:{height:1,background:m.rule}})]}),intro:A("div",{style:{...V,overflow:"hidden",background:m.card},children:[p("div",{style:{position:"absolute",inset:0,...Ae(m.ink,m.inkSoft2)}}),p(mr,{size:64,style:{right:8,top:6}}),A("div",{style:{position:"absolute",left:16,right:16,bottom:8,top:"46%",background:m.paper,borderRadius:6,padding:"8px 11px",display:"flex",flexDirection:"column",gap:2,boxShadow:`0 -4px 10px ${m.scrim}`},children:[p("span",{style:{fontSize:"5.69cqw",fontWeight:700,color:m.text},children:"Since 1998"}),p(Ye,{children:"One shed, one lathe, one idea."}),p(Ye,{w:"66%",children:"It turned out to be right."})]})]}),gallerygrid:p(Ce,{title:"Photo gallery",children:p("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(3,1fr)",gridTemplateRows:"repeat(2,1fr)",gap:4,minHeight:0},children:[[m.rust,m.warm],[m.inkSoft,m.ink],[m.paper2,m.mark2],[m.ink,m.inkSoft2],[m.warm,m.paper2],[m.mark2,m.inkSoft]].map(([e,o],t)=>p("div",{style:{borderRadius:3,...Ae(e,o,140+t*22)}},t))})}),gallery:A(Ce,{title:"Gallery",children:[p("div",{style:{display:"flex",gap:8,alignItems:"center",marginTop:-2},children:["On the truck","Studio","Close-ups"].map((e,o)=>p("span",{style:{fontSize:"3.98cqw",fontWeight:o===0?700:500,color:o===0?m.text:m.muted,borderBottom:`1.5px solid ${o===0?m.rust:"transparent"}`,paddingBottom:2},children:e},e))}),p("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(3,1fr)",gap:4,minHeight:0},children:[[m.rust,m.warm],[m.ink,m.inkSoft],[m.paper2,m.mark2]].map(([e,o],t)=>p("div",{style:{borderRadius:3,...Ae(e,o,150+t*20)}},t))})]}),ordersummary:A(Ce,{title:"Order summary",children:[A("div",{style:{display:"flex",gap:6,alignItems:"center",paddingBottom:4},children:[p("span",{style:{width:26,height:26,borderRadius:4,position:"relative",overflow:"hidden",flex:"none",...Ae(m.paper,m.paper2,150)},children:p(mr,{size:18,style:{left:"50%",top:"50%",transform:"translate(-50%,-50%)"}})}),A("div",{style:{display:"flex",flexDirection:"column",gap:1,minWidth:0},children:[p("b",{style:{fontSize:"4.31cqw",color:m.text},children:"Ridge Grappler"}),p("span",{style:{fontSize:"3.65cqw",color:m.muted},children:"20\xD79 +12 \xB7 qty 4"})]})]}),A("div",{style:{flex:1,minHeight:0,display:"flex",flexDirection:"column",justifyContent:"center"},children:[p(ur,{k:"Subtotal",v:"$1,956"}),p(ur,{k:"Fitting",v:"Free"}),A("div",{style:{display:"flex",justifyContent:"space-between",paddingTop:5,fontSize:"4.64cqw"},children:[p("b",{style:{color:m.text},children:"Total"}),p("b",{style:{color:m.text,fontSize:"6.02cqw"},children:"$1,956"})]})]})]}),deliveryoptions:p(Ce,{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])=>A("div",{style:{display:"flex",alignItems:"center",gap:6,padding:"5px 6px",borderRadius:4,border:`1px solid ${r?m.rust:m.rule}`,background:r?m.paper:m.card},children:[p("span",{style:{width:7,height:7,borderRadius:"50%",flex:"none",border:`1.5px solid ${r?m.rust:m.mark1}`,background:r?m.rust:"transparent"}}),p("span",{style:{flex:1,fontSize:"4.31cqw",fontWeight:600,color:m.text},children:e}),p("span",{style:{fontSize:"3.98cqw",color:m.muted},children:o}),p("b",{style:{fontSize:"4.31cqw",color:m.text},children:t})]},e))})}),paymentbadges:A("div",{style:{...V,background:m.paper,display:"flex",flexDirection:"column",gap:8,justifyContent:"center",padding:"0 12px"},children:[p(um,{children:"Ways to pay"}),p("div",{style:{display:"flex",gap:5},children:[["VISA",m.ink],["MC",m.rust],["AMEX",m.inkSoft],["PayPal",m.ink2]].map(([e,o])=>p("span",{style:{flex:1,textAlign:"center",fontSize:"3.65cqw",fontWeight:800,letterSpacing:"0.06em",color:m.onInk,borderRadius:3,padding:"6px 0",background:o},children:e},e))})]}),stats:A("div",{style:{...V,padding:"10px 12px",display:"flex",flexDirection:"column",gap:9,justifyContent:"center",...Ae(m.ink,m.ink2)},children:[p("span",{style:{fontSize:"3.98cqw",fontWeight:700,letterSpacing:"0.14em",textTransform:"uppercase",color:m.warm},children:"By the numbers"}),A("div",{style:{display:"flex",gap:8},children:[p(Gi,{n:"27k",label:"Rigs fitted",tone:m.onInk}),p(Gi,{n:"12",label:"Years",tone:m.onInk}),p(Gi,{n:"4.9",label:"Avg rating",tone:m.warm})]})]}),testimonials:A("div",{style:{...V,overflow:"hidden",background:m.paper,padding:"10px 11px",display:"flex",flexDirection:"column",gap:6,justifyContent:"center"},children:[p("span",{style:{position:"absolute",right:10,top:2,fontSize:"22.4cqw",lineHeight:1,fontWeight:800,color:m.rust,opacity:.16},children:"\u201D"}),p(AS,{filled:5,size:7}),p("span",{style:{position:"relative",fontSize:"5.31cqw",lineHeight:1.35,color:m.text,fontWeight:600},children:"\u201CTook them out to the Simpson and back. Not one chip.\u201D"}),A("div",{style:{display:"flex",alignItems:"center",gap:5},children:[p(j2,{}),p("span",{style:{fontSize:"3.98cqw",color:m.muted},children:"Dave M. \xB7 Hilux N80"})]})]}),reviews:A(Ce,{title:"Reviews",children:[p("div",{style:{display:"flex",gap:4,height:22},children:[[m.inkSoft,m.inkSoft2],[m.rust,m.warm],[m.ink,m.inkSoft],[m.mark2,m.mark1]].map(([e,o],t)=>p("div",{style:{flex:1,borderRadius:3,...Ae(e,o,140+t*15)}},t))}),p("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:5,justifyContent:"center"},children:[["Dave M.",5,"Not one chip after the Simpson."],["Sara K.",4,"Fitted in an hour, no fuss."]].map(([e,o,t])=>A("div",{style:{display:"flex",gap:5,alignItems:"flex-start"},children:[p(j2,{size:12}),A("div",{style:{display:"flex",flexDirection:"column",gap:1,minWidth:0},children:[A("div",{style:{display:"flex",gap:4,alignItems:"center"},children:[p("b",{style:{fontSize:"3.98cqw",color:m.text},children:e}),p(AS,{filled:o})]}),p(Ye,{children:t})]})]},e))})]}),logos:A("div",{style:{...V,display:"flex",flexDirection:"column",gap:9,justifyContent:"center",padding:"0 12px",...Ae(m.ink,m.inkSoft)},children:[p("span",{style:{fontSize:"3.98cqw",fontWeight:700,letterSpacing:"0.14em",textTransform:"uppercase",color:m.warm},children:"As fitted by"}),p("div",{style:{display:"grid",gridTemplateColumns:"repeat(4,1fr)",gap:8},children:["ARB","TJM","IRONMAN","OPPOSITE"].map(e=>p("span",{style:{textAlign:"center",fontSize:"4.31cqw",fontWeight:800,letterSpacing:"0.08em",color:m.onInk,opacity:.82},children:e},e))})]}),prose:A("div",{style:{...V,background:m.paper,padding:"11px 14px",display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[p("span",{style:{fontSize:"5.86cqw",fontWeight:700,color:m.text},children:"Why offset matters"}),A("div",{style:{display:"flex",gap:6},children:[p("span",{style:{fontSize:"15.3cqw",lineHeight:.78,fontWeight:800,color:m.rust,marginTop:1},children:"T"}),A("div",{style:{display:"flex",flexDirection:"column"},children:[p(Ye,{children:"he number on the back of your wheel decides whether the"}),p(Ye,{w:"76%",children:"tyre sits under the guard or an inch outside it."})]})]})]}),cards:p(Ce,{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])=>A("div",{style:{border:`1px solid ${m.rule}`,borderRadius:4,padding:6,display:"flex",flexDirection:"column",gap:2},children:[p("span",{style:{width:11,height:11,borderRadius:3,background:m.rust,opacity:.9}}),p("b",{style:{fontSize:"3.98cqw",color:m.text},children:e}),p(Ye,{children:o})]},e))})}),faq:p(Ce,{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])=>A("div",{style:{borderBottom:`1px solid ${m.rule}`,padding:"4px 2px"},children:[A("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",gap:6},children:[p("b",{style:{fontSize:"4.31cqw",color:m.text},children:e}),p("span",{style:{fontSize:"4.64cqw",color:m.muted,lineHeight:1},children:o?"\u2212":"+"})]}),o&&p(Ye,{w:"90%",children:"Use the fitment finder \u2014 it reads your build, not just the model."})]},e))})}),hero:A("div",{style:{...V,overflow:"hidden",...Ae(m.ink,m.ink2)},children:[p("div",{style:{...V,background:`linear-gradient(90deg,${m.scrim},transparent 70%)`}}),p("div",{style:{position:"relative",height:"100%",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"flex-start",padding:"12px 14px",gap:5},children:p(U2,{over:"NEW \xB7 SUMMER",overTone:m.warm,head:"Built for the worst road you own",cta:"SHOP ALL",ctaBg:m.warm,ctaFg:m.ink,tone:m.onInk})}),p(mr,{size:104,style:{right:-24,bottom:-30}})]}),herosingle:A("div",{style:{...V,display:"flex",background:m.paper,overflow:"hidden"},children:[p("div",{style:{flex:1,padding:12,display:"flex",flexDirection:"column",gap:5,justifyContent:"center"},children:p(U2,{over:"ALL-TERRAIN",overTone:m.rust,head:"Grip that does not ask",headSize:12,cta:"EXPLORE",ctaBg:m.text,ctaFg:m.onInk,tone:m.text})}),p("div",{style:{flex:1,position:"relative",...Ae(m.inkSoft,m.inkSoft2)},children:p(mr,{size:74,style:{right:-14,top:16}})})]}),productgrid:p(Ce,{title:"Best sellers",children:A("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(3,1fr)",gap:5,minHeight:0},children:[p(_S,{name:"Ridge 19",price:"$365"}),p(_S,{name:"Ridge 29",price:"$410"}),p(_S,{name:"Ridge 39",price:"$455"})]})}),collections:p(Ce,{title:"Shop by category",children:p("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(3,1fr)",gap:5,minHeight:0},children:[["Wheels",m.inkSoft,m.inkSoft2],["Tyres",m.rust,m.warm],["Lift kits",m.ink,m.inkSoft]].map(([e,o,t])=>p("div",{style:{borderRadius:4,display:"flex",alignItems:"flex-end",padding:5,color:m.onInk,...Ae(o,t)},children:p("span",{style:{fontSize:"3.98cqw",fontWeight:700,letterSpacing:"0.04em"},children:e})},e))})}),producthero:A("div",{style:{...V,display:"flex",background:m.card,overflow:"hidden"},children:[p("div",{style:{flex:1.1,position:"relative",...Ae(m.paper,m.paper2,150)},children:p(mr,{size:78,style:{left:"50%",top:"50%",transform:"translate(-50%,-50%)"}})}),A("div",{style:{flex:1,padding:"10px 10px 10px 8px",display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[p("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.16em",fontWeight:700,color:m.rust},children:"NITTO"}),p("b",{style:{fontSize:"6.29cqw",color:m.text},children:"Ridge Grappler"}),p("span",{style:{fontSize:"6.63cqw",fontWeight:700,color:m.text},children:"$489"}),p("span",{style:{alignSelf:"flex-start",fontSize:"3.65cqw",letterSpacing:"0.12em",fontWeight:700,padding:"4px 8px",borderRadius:2,background:m.text,color:m.onInk},children:"ADD TO CART"})]})]}),spectable:p(Ce,{title:"Specifications",children:A("div",{style:{flex:1,display:"flex",flexDirection:"column",justifyContent:"center"},children:[p(ur,{k:"Diameter",v:'20"'}),p(ur,{k:"Width",v:"9.0J"}),p(ur,{k:"Offset",v:"+12"}),p(ur,{k:"Load",v:"1250 kg"})]})}),fitmenttable:p(Ce,{title:"Will it fit?",children:A("div",{style:{flex:1,display:"flex",flexDirection:"column",justifyContent:"center"},children:[p(ur,{k:"Hilux N80",v:"20\xD79 +12",ok:!0}),p(ur,{k:"Ranger PX3",v:"20\xD79 +12",ok:!0}),p(ur,{k:"LC79",v:"17\xD78 \u221210",ok:!0})]})}),processsteps:A("div",{style:{...V,background:m.paper,padding:10,display:"flex",flexDirection:"column",gap:7,justifyContent:"center"},children:[p(um,{children:"How it works"}),p("div",{style:{display:"flex",gap:6},children:["Pick your rig","Match the fit","We fit it"].map((e,o)=>A("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:2},children:[p("span",{style:{width:11,height:11,borderRadius:"50%",background:m.text,color:m.onInk,fontSize:"3.98cqw",display:"flex",alignItems:"center",justifyContent:"center",fontWeight:700},children:o+1}),p("span",{style:{fontSize:"3.98cqw",color:m.text,fontWeight:600},children:e})]},e))})]}),detailrows:p("div",{style:{...V,background:m.card,display:"flex",flexDirection:"column",overflow:"hidden"},children:[["Forged, not cast","Half the weight, twice the road.",!1],["Fits your load","Rated to 1250 kg a corner.",!0]].map(([e,o,t])=>{let r=p("div",{style:{flex:1,...Ae(t?m.rust:m.inkSoft,t?m.warm:m.inkSoft2)}},"art"),a=A("div",{style:{flex:1.1,padding:8,display:"flex",flexDirection:"column",gap:2,justifyContent:"center"},children:[p("b",{style:{fontSize:"4.64cqw",color:m.text},children:e}),p("span",{style:{fontSize:"3.98cqw",color:m.muted,lineHeight:1.3},children:o})]},"tx");return p("div",{style:{flex:1,display:"flex",minHeight:0},children:t?[a,r]:[r,a]},e)})}),specstrip:p("div",{style:{...V,background:m.ink,color:m.onInk,display:"flex",alignItems:"center",justifyContent:"space-around",padding:"0 8px"},children:[["5 yr","Warranty"],["Free","Fitting"],["48 hr","Dispatch"]].map(([e,o])=>A("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:1},children:[p("b",{style:{fontSize:"5.69cqw",letterSpacing:"0.02em"},children:e}),p("span",{style:{fontSize:"3.65cqw",color:m.mark2,letterSpacing:"0.1em",textTransform:"uppercase"},children:o})]},o))})},K2={subscribe:A("div",{style:{...V,padding:13,display:"flex",flexDirection:"column"},children:[A("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:8},children:[A("div",{style:{display:"flex",alignItems:"center",gap:6},children:[p(j,{w:8,h:8,r:2,tone:"accent"}),p(j,{w:38,h:7,r:3,tone:"dark"}),p(j,{w:16,h:7,r:3,tone:"accent"})]}),p(j,{w:38,h:4,r:2,tone:"soft"})]}),p("div",{style:{height:1,background:eo.line,marginBottom:10}}),A("div",{style:{flex:1,display:"flex",gap:10,border:`1px solid ${eo.line}`,borderRadius:7,padding:10},children:[A("div",{style:{flex:1.1,display:"flex",flexDirection:"column",justifyContent:"center",gap:5},children:[p(j,{w:"46%",h:3,r:2,tone:"accent"}),p(j,{w:"84%",h:8,r:4,tone:"dark"}),p(j,{w:"56%",h:8,r:4,tone:"accent"}),p(j,{w:"96%",h:3,r:2,tone:"soft",style:{marginTop:2}}),A("div",{style:{display:"flex",gap:5,marginTop:4},children:[p("div",{style:{flex:1,height:13,borderRadius:5,border:`1px solid ${eo.line}`,background:eo.block}}),p(j,{w:34,h:13,r:5,tone:"accent"})]})]}),A("div",{style:{flex:1,background:eo.block,borderRadius:6,padding:8,display:"flex",flexDirection:"column",gap:6},children:[p(j,{w:"52%",h:4,r:2,tone:"accent"}),Array.from({length:3}).map((e,o)=>A("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",gap:6,borderTop:o?`1px solid ${eo.line}`:"none",paddingTop:o?4:0},children:[p(j,{w:34,h:4,r:2,tone:"dark"}),p(j,{w:16,h:3,r:2,tone:"soft"})]},o))]})]})]}),split:A("div",{style:{...V,display:"flex"},children:[p("div",{style:{width:"44%",background:ES}}),A("div",{style:{flex:1,padding:15,display:"flex",flexDirection:"column",justifyContent:"center",gap:7},children:[p(j,{w:"44%",h:5,r:3,tone:"accent"}),p(j,{w:"88%",h:8,r:4,tone:"dark"}),p(j,{w:"70%",h:8,r:4,tone:"dark"}),p(j,{w:"94%",h:5,r:2,tone:"soft",style:{marginTop:2}}),p(j,{w:"80%",h:5,r:2,tone:"soft"}),p(j,{w:"40%",h:13,r:6,tone:"accent",style:{marginTop:5}})]})]}),sectionheader:A(q2,{children:[p(j,{w:"18%",h:6,r:3,tone:"accent",style:{position:"absolute",top:15,right:16}}),A("div",{style:{...V,padding:16,display:"flex",flexDirection:"column",justifyContent:"center",gap:10},children:[A("div",{style:{display:"flex",alignItems:"center",gap:9},children:[p(j,{w:16,h:16,r:4,tone:"accent"}),p(j,{w:"20%",h:9,r:4,tone:"dark"})]}),p(j,{w:"62%",h:10,r:5,tone:"dark"}),p(j,{w:"42%",h:6,r:3,tone:"soft"})]})]}),header:p("div",{style:{...V,padding:14,display:"flex",flexDirection:"column",justifyContent:"center"},children:A("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[p(j,{w:"22%",h:12,r:4,tone:"dark"}),A("div",{style:{display:"flex",gap:9,alignItems:"center"},children:[p(j,{w:26,h:6,r:3,tone:"soft"}),p(j,{w:26,h:6,r:3,tone:"soft"}),p(j,{w:26,h:6,r:3,tone:"soft"}),p(j,{w:18,h:14,r:5,tone:"accent"})]})]})}),footer:A("div",{style:{...V,padding:15,display:"flex",flexDirection:"column",justifyContent:"center",gap:12},children:[A("div",{style:{display:"flex",gap:14},children:[A("div",{style:{flex:1.4,display:"flex",flexDirection:"column",gap:6},children:[p(j,{w:"60%",h:9,r:4,tone:"dark"}),p(j,{w:"90%",h:5,r:2,tone:"soft"}),p(j,{w:"70%",h:5,r:2,tone:"soft"})]}),[0,1].map(e=>A("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:6},children:[p(j,{w:"50%",h:6,r:3,tone:"dark"}),p(j,{w:"80%",h:5,r:2,tone:"soft"}),p(j,{w:"66%",h:5,r:2,tone:"soft"})]},e))]}),p("div",{style:{height:1,background:eo.line}}),A("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[p(j,{w:"30%",h:5,r:2,tone:"soft"}),p(j,{w:"16%",h:5,r:2,tone:"soft"})]})]}),grid:p("div",{style:{...V,padding:14,display:"grid",gridTemplateColumns:"1fr 1fr",gridTemplateRows:"1fr 1fr",gap:9},children:Array.from({length:4}).map((e,o)=>p("div",{style:{borderRadius:6,background:eo.block}},o))}),blanksection:p("div",{style:{...V,padding:14,display:"flex"},children:A("div",{style:{flex:1,border:`1px dashed ${eo.line}`,borderRadius:7,display:"flex",alignItems:"center",justifyContent:"center",position:"relative"},children:[p(j,{w:14,h:2,r:1,tone:"tint"}),p(j,{w:2,h:14,r:1,tone:"tint",style:{position:"absolute"}})]})}),spacer:A("div",{style:{...V,padding:14,display:"flex",flexDirection:"column",justifyContent:"space-between"},children:[p(j,{w:"100%",h:6,r:3,tone:"soft"}),p(j,{w:16,h:22,r:3,tone:"block",style:{alignSelf:"center"}}),p(j,{w:"100%",h:6,r:3,tone:"soft"})]}),divider:p("div",{style:{...V,padding:14,display:"flex",alignItems:"center"},children:p(j,{w:"100%",h:3,r:2,tone:"dark"})}),customhtml:A("div",{style:{...V,display:"flex",alignItems:"center",justifyContent:"center",gap:8,background:ES},children:[p(j,{w:5,h:16,r:2,tone:"dark",style:{transform:"skewX(-14deg)"}}),p(j,{w:16,h:10,r:3,tone:"accent"}),p(j,{w:5,h:16,r:2,tone:"dark",style:{transform:"skewX(14deg)"}})]}),heading:p("div",{style:{...V,padding:14,display:"flex",alignItems:"center"},children:p(j,{w:"64%",h:13,r:4,tone:"dark"})}),text:A("div",{style:{...V,padding:16,display:"flex",flexDirection:"column",justifyContent:"center",gap:7},children:[p(j,{w:"100%",h:6,r:3,tone:"soft"}),p(j,{w:"96%",h:6,r:3,tone:"soft"}),p(j,{w:"100%",h:6,r:3,tone:"soft"}),p(j,{w:"58%",h:6,r:3,tone:"soft"})]}),image:p("div",{style:{position:"absolute",inset:14,borderRadius:7,background:ES}}),button:p("div",{style:{...V,display:"flex",alignItems:"center",justifyContent:"center"},children:p(j,{w:"34%",h:16,r:8,tone:"accent"})}),menu:A("div",{style:{...V,padding:"14px 22%",display:"flex",flexDirection:"column",justifyContent:"center",gap:7},children:[p(j,{w:"48%",h:7,r:3,tone:"dark"}),p(j,{w:"82%",h:5,r:2,tone:"soft"}),p(j,{w:"66%",h:5,r:2,tone:"soft"}),p(j,{w:"74%",h:5,r:2,tone:"soft"}),p(j,{w:"58%",h:5,r:2,tone:"soft"})]}),emailform:A("div",{style:{...V,padding:16,display:"flex",flexDirection:"column",justifyContent:"center",gap:9},children:[p(j,{w:"56%",h:8,r:3,tone:"dark"}),A("div",{style:{display:"flex",gap:6},children:[p("div",{style:{flex:1,height:16,borderRadius:5,border:`1px solid ${eo.line}`}}),p(j,{w:"30%",h:16,r:5,tone:"accent"})]})]}),sociallogos:p("div",{style:{...V,display:"flex",alignItems:"center",justifyContent:"center",gap:9},children:[0,1,2,3].map(e=>p(j,{w:16,h:16,r:8,tone:"dark"},e))}),paymentlogos:A("div",{style:{...V,display:"flex",alignItems:"center",justifyContent:"center",gap:7},children:[p(j,{w:22,h:6,r:2,tone:"soft"}),[0,1,2,3].map(e=>p(j,{w:20,h:13,r:3,tone:"dark"},e))]}),search:p("div",{style:{...V,padding:"0 18%",display:"flex",alignItems:"center"},children:A("div",{style:{flex:1,height:22,borderRadius:11,border:`1px solid ${eo.line}`,display:"flex",alignItems:"center",gap:7,padding:"0 9px"},children:[p("div",{style:{width:9,height:9,borderRadius:5,border:`2px solid ${eo.dark}`}}),p(j,{w:"46%",h:5,r:2,tone:"soft"})]})}),cart:A("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 ${eo.dark}`}}),p("div",{style:{padding:"2px 6px",borderRadius:6,border:`1.5px solid ${eo.dark}`},children:p(j,{w:7,h:7,r:2,tone:"dark"})})]}),countryswitch:A("div",{style:{...V,padding:14,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:5},children:[A("div",{style:{display:"flex",alignItems:"center",gap:6,padding:"4px 8px",border:`1px solid ${eo.line}`},children:[p(j,{w:22,h:6,r:2,tone:"dark"}),p(j,{w:6,h:4,r:1,tone:"soft"})]}),A("div",{style:{width:"46%",display:"flex",flexDirection:"column",gap:4,padding:6,border:`1px solid ${eo.line}`},children:[p(j,{w:"80%",h:4,r:2,tone:"accent"}),p(j,{w:"64%",h:4,r:2,tone:"soft"}),p(j,{w:"72%",h:4,r:2,tone:"soft"})]})]}),legalline:A("div",{style:{...V,padding:16,display:"flex",flexDirection:"column",justifyContent:"center",gap:9},children:[p("div",{style:{height:1,background:eo.line}}),A("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[p(j,{w:"38%",h:5,r:2,tone:"soft"}),A("div",{style:{display:"flex",gap:5},children:[p(j,{w:14,h:5,r:2,tone:"soft"}),p(j,{w:14,h:5,r:2,tone:"soft"}),p(j,{w:14,h:5,r:2,tone:"soft"})]})]})]}),fallback:p("div",{style:{position:"absolute",inset:14,borderRadius:8,background:eo.block}})};function V2({type:e}){let o=Nte[e]??"",t=Mte[o]??K2[o]??K2.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 bm}from"efficient-easel/screen/components/ScreenDocumentContext";import{jsx as Ps,jsxs as Y2}from"react/jsx-runtime";import Hte from"efficient-easel/screen/components/SidePanelHead";import{StylesIcon as Wte}from"efficient-easel/rail";import{Tooltip as $te}from"efficient-shell/ui";import{HintsToggle as zte,hintsFoldClass as Ute}from"efficient-easel/panel";import{useHints as jte}from"efficient-easel/screen/lib/hints";function X2({tokenRef:e,siteId:o,onClose:t,onNotify:r,tab:a,onTabChange:n,revealPageGroup:s,onPageGroupRevealed:l}){let i=Bn(),{shown:d,setShown:f}=jte();return Y2("div",{className:`sf-styles ${Ute(d)}`.trim(),children:[Ps(Hte,{icon:Ps(Wte,{}),title:c("Styles"),context:Ps($te,{content:c("{name} \u2014 renamed in the Console: {place}.",{name:i,place:c("Storefront \u25B8 Sites \u25B8 Settings")}),className:"sf-name-tip",children:Ps("span",{className:"sf-name-text",children:i})})}),Y2("div",{className:"sf-insp-body es-insp-body sf-scroll",children:[Ps(Mf,{tokenRef:e,siteId:o,onNotify:r,tab:a,onTabChange:n,revealPageGroup:s,onPageGroupRevealed:l}),Ps(zte,{shown:d,onChange:f,label:c("Show hints")})]})]})}import{jsx as so,jsxs as Xa,Fragment as Yte}from"react/jsx-runtime";import{Fragment as l5,useEffect as i5,useRef as NS}from"react";import{useTreeDrag as d5}from"efficient-easel/drag";import{GlobeIcon as Xte,ImageIcon as Zte,LocationIcon as Jte,MapIcon as Qte,TextLinesIcon as ere,TrashIcon as f5}from"efficient-easel/icons";import{Subtree as c5,TreeRow as qi,TreeRowAction as p5,TreeSeam as u5}from"efficient-easel/tree";import{useEaselStrings as ore}from"efficient-easel/strings";import{isSelectionMode as tre}from"efficient-easel/screen/lib/screen-parts";import{useSyncExternalStore as Gte}from"react";var Kte={level:"groups"},J2=Kte,FS=new Set;function Bt(e){J2=e;for(let o of FS)o()}function qte(e){return FS.add(e),()=>{FS.delete(e)}}var Z2=()=>J2;function Q2(){return Gte(qte,Z2,Z2)}var Ki=e=>String(e?.group??""),BS=new WeakMap,Vte=0;function mm(e){let o=BS.get(e);return o||(o=`loc${++Vte}`,BS.set(e,o)),o}var e5=(e,o)=>o||e||"Ungrouped",o5={photo:"",group:"",groupName:"",name:"City name",state:"State",country:"Country",timezone:"GMT \xB7 UTC +0",address:`Address line one
|
|
337
|
-
Address line two`,phone:"+00 000 0000",hours:"Mon\u2013Fri 9:00\u201318:00",lat:0,lng:0,mapsUrl:""};function Ya(e){return bd(e,Ki,o=>String(o?.groupName??"")).map(o=>({key:o.key,name:o.name,cards:o.items.map(t=>t.item)}))}var LS=e=>e.flatMap(o=>o.cards),t5=(e,o,t)=>Math.min(Math.max(e,o),t);function xm(e,o,t){let r=0;for(let a=0;a<e.length;a++)if(Ki(e[a])===o){if(r===t)return a;r++}return-1}function RS(e,o,t){let r=Ya(e);if(o<0||o>=r.length)return e;let[a]=r.splice(o,1),n=t5(o<t?t-1:t,0,r.length);return r.splice(n,0,a),LS(r)}function DS(e,o,t,r,a){let n=Ya(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&&BS.set(d,mm(i));let f=t5(s===l&&t<a?a-1:a,0,l.cards.length);return l.cards.splice(f,0,d),LS(n)}function r5(e,o){let t=Ya(e),r=t.find(n=>n.key===o),a={...o5,group:o,groupName:r?.name??""};return r?(r.cards.push(a),LS(t)):[...e,a]}function a5(e){let o=new Set(Ya(e).map(a=>a.key)),t=o.size+1,r=`Group ${t}`;for(;o.has(r);)r=`Group ${++t}`;return{cards:[...e,{...o5,group:r,groupName:""}],key:r}}function n5(e,o){return e.filter(t=>Ki(t)!==o)}function s5(e,o,t){let r=xm(e,o,t);return r<0?e:e.filter((a,n)=>n!==r)}function z5e(e,o,t){let r=e.flatMap((s,l)=>Ki(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 U5e(e,o,t){return o.flatMap(r=>{let a=e.filter(n=>Ki(n)===r);return a.length?a:t(r)})}var Im="ContactLocations",hm=e=>({parentId:`locations-${e}`,slot:"groups"}),MS=(e,o)=>({parentId:`locations-${e}`,slot:`cities:${o}`});function m5(e,o){let{readOnly:t,selected:r}=o,a=ore().tree,n=o.data?.content??[],s=tre(e),l=NS(null);i5(()=>{let T=r?.type===Im?String(r.props.id):null;T&&T!==l.current&&Bt({level:"groups"}),l.current=T},[r?.props.id]);let{selectedLocationPartId:i,setSelectedLocationPartId:d,setSelectHandler:f}=ML(),x=Q2(),u=(T,g)=>{let w=n[T];w&&o.replace(T,{type:w.type,props:{...w.props,locations:g}})},h=T=>{let g=n[T]?.props?.locations;return Array.isArray(g)?g:[]},I=d5({keyOf:T=>`group:${T.si}:${T.index}`,readOnly:!!t,canDrop:(T,g)=>g.parentId===hm(T.si).parentId&&g.slot==="groups",onDrop:(T,g)=>{u(T.si,RS(h(T.si),T.index,g.index)),x.level==="city"&&Bt({level:"groups"})},onStep:(T,g)=>{u(T.si,RS(h(T.si),T.index,g<0?T.index-1:T.index+2)),x.level==="city"&&Bt({level:"groups"})}}),S=d5({keyOf:T=>`city:${T.si}:${T.group}:${T.index}`,readOnly:!!t,canDrop:(T,g)=>g.parentId===hm(T.si).parentId&&g.slot.startsWith("cities:"),onDrop:(T,g)=>{let w=g.slot.slice(7);u(T.si,DS(h(T.si),T.group,T.index,w,g.index)),Bt({level:"group",key:w})},onStep:(T,g)=>{u(T.si,DS(h(T.si),T.group,T.index,T.group,g<0?T.index-1:T.index+2)),x.level==="city"&&Bt({level:"group",key:T.group})}}),v=NS(n);v.current=n;let O=NS(()=>{});i5(()=>{f(T=>{let g=tu(T);if(!g)return;let w=v.current.findIndex(_=>_.props?.id===g.nodeId);w<0||O.current(w,{level:g.part,index:g.index})})},[f]);let R=(T,g)=>{l.current=n[T]?.props?.id??null,o.select(T),Bt(g),e.reveal();let w=n[T]?.props?.id;typeof w=="string"&&(g.level==="city"||g.level==="image"||g.level==="map")?d(ou(w,g.index,g.level)):d(null),typeof w=="string"&&o.scrollTo(w)};return O.current=R,{renderLocationTree:(T,g,{rowClick:w,isCollapsed:_,toggleCollapse:E})=>{let D=h(g),b=Ya(D),F=String(T.props.id),y=s&&r?.props.id===F,k=C=>so(u5,{...t?{}:I.seam({place:{...hm(g),index:C}})},`seam:${F}:groups:${C}`),P=(C,B)=>so(u5,{...t?{}:S.seam({place:{...MS(g,C),index:B}})},`seam:${F}:cities:${C}:${B}`);return Xa(Yte,{children:[so(qi,{icon:so(ere,{size:13}),name:c("Texts"),words:a,onSelect:()=>R(g,{level:"texts"}),selected:y&&x.level==="texts",rowProps:{onClick:w(()=>R(g,{level:"texts"}))}}),b.map((C,B)=>{let H=`${F}::grp::${C.key}`,q=_(H),$=y&&x.level==="group"&&x.key===C.key,le=C.name||C.key?e5(C.key,C.name):c("Ungrouped"),pe={...MS(g,C.key),index:C.cards.length},ee=S.row({item:{si:g,group:C.key,index:-1},place:pe,into:pe,canDrag:!1},{onClick:w(()=>R(g,{level:"group",key:C.key}))}),xe=I.row({item:{si:g,index:B},place:{...hm(g),index:B}},ee.rowProps);return Xa(l5,{children:[B===0&&k(0),so(qi,{icon:so(Xte,{size:13}),name:le,words:a,onSelect:()=>R(g,{level:"group",key:C.key}),selected:$,draggable:xe.draggable,dragging:xe.dragging,drop:xe.drop??ee.drop,fold:{open:!q,label:c("group"),onToggle:()=>E(H)},actions:so(p5,{kind:"delete",label:Wt("Delete {label} group ({n} city)","Delete {label} group ({n} cities)",C.cards.length,{label:le}),onClick:()=>{u(g,n5(D,C.key)),Bt({level:"groups"})},children:so(f5,{size:15})}),rowProps:xe.rowProps,count:C.cards.length,countLabel:Wt("{n} city","{n} cities",C.cards.length)}),!q&&Xa(c5,{children:[C.cards.map((oe,ie)=>{let ge=xm(D,C.key,ie),Re=y&&x.level==="city"&&x.index===ge,We=String(oe?.name??"")||c("City"),yo=`${F}::city::${mm(oe)}`,oo=_(yo),{rowProps:io,...So}=S.row({item:{si:g,group:C.key,index:ie},place:{...MS(g,C.key),index:ie}},{onClick:w(()=>R(g,{level:"city",index:ge}))});return Xa(l5,{children:[ie===0&&P(C.key,0),so(qi,{icon:so(Jte,{size:13}),name:We,words:a,onSelect:()=>R(g,{level:"city",index:ge}),selected:Re,...So,fold:{open:!oo,label:We,onToggle:()=>E(yo)},actions:so(p5,{kind:"delete",label:c("Delete {name}",{name:We}),onClick:()=>{u(g,s5(D,C.key,ie)),Bt({level:"group",key:C.key})},children:so(f5,{size:15})}),rowProps:io}),!oo&&Xa(c5,{children:[so(qi,{icon:so(Zte,{size:13}),name:c("Image"),words:a,onSelect:()=>R(g,{level:"image",index:ge}),selected:y&&x.level==="image"&&x.index===ge,rowProps:{onClick:w(()=>R(g,{level:"image",index:ge}))}}),so(qi,{icon:so(Qte,{size:13}),name:c("Map"),words:a,onSelect:()=>R(g,{level:"map",index:ge}),selected:y&&x.level==="map"&&x.index===ge,rowProps:{onClick:w(()=>R(g,{level:"map",index:ge}))}})]}),P(C.key,ie+1)]},mm(oe))}),Xa("button",{type:"button",className:"sf-add-card",onClick:()=>{let oe=r5(D,C.key);u(g,oe);let ie=Ya(oe).find(ge=>ge.key===C.key);Bt(ie&&ie.cards.length?{level:"city",index:xm(oe,C.key,ie.cards.length-1)}:{level:"group",key:C.key})},children:[so("span",{className:"sf-plus sf-plus--sm",children:"+"}),c("Add city")]})]}),k(B+1)]},H)}),Xa("button",{type:"button",className:"sf-add-card",onClick:()=>{let{cards:C,key:B}=a5(D);u(g,C),R(g,{level:"group",key:B})},children:[so("span",{className:"sf-plus sf-plus--sm",children:"+"}),c("Add group")]})]})},sectionPressed:T=>{T?.type===Im&&Bt({level:"groups"})}}}import{useEffect as sre,useRef as lre}from"react";import{createNode as WS,newId as $S}from"efficient-easel/data";import{useEaselApi as ire}from"efficient-easel/easel";import{useScreenDocument as dre}from"efficient-easel/screen/components/ScreenDocumentContext";import{useEaselSession as fre}from"efficient-easel/screen/lib/session-context";import{useEffect as g5,useRef as rre}from"react";import{useEasel as are}from"efficient-easel/easel";import{ROOT_ZONE as HS}from"efficient-easel/draw";var Vi={};function x5(e){return Vi={...e?.theme?{theme:e.theme}:{},...e?.site?{site:e.site}:{}},Vi}function h5(e){Vi===e&&(Vi={})}function Ts(){return Vi}function I5(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 S5(e){let o=are(d=>d.appState.data.content),{theme:t,themeRow:r,themeFromDocument:a,siteGutter:n,siteGutterPhone:s,siteLengthUnits:l}=ko(),i=rre(new Set);g5(()=>{let d=y5({theme:t,themeRow:r,themeFromDocument:a,siteGutter:n,siteGutterPhone:s,siteLengthUnits:l});d&&nre(h1(o,void 0,d),e,i.current)},[o,e,t,r,a,n,s,l]),g5(()=>{let d=x5(y5({theme:t,themeRow:r,themeFromDocument:a,siteGutter:n,siteGutterPhone:s,siteLengthUnits:l}));return()=>h5(d)},[t,r,a,n,s,l])}function y5(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=I5({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 nre(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(HS,r,a[0]),a.slice(1).forEach((s,l)=>{o.insertNode(HS,r+1+l,s),o.replaceComponent(HS,r+1+l,s)}))}}import{ROOT_ZONE as Os,missingPinnedTypes as cre,pinnedDuplicateIds as zS}from"efficient-easel/draw";function b5(e){return!e.docId||e.saveStatus==="saving"?!1:e.seededDocId!==e.docId}function w5(e,o){let t=e.some(l=>l?.type===Je),r=e[e.length-1],a=!t&&r?.type===Le?r:null,n=e.filter(l=>l?.type===Le&&l!==a).map(l=>String(l.props?.id??"")).filter(Boolean),s=o.hasChromeDoc&&!t&&!a;return{remove:n,seedHeader:!e.some(l=>l?.type===zo),seedFooter:s,seedSiteHeader:s&&!e.some(l=>l?.type===Do)}}async function C5(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!==Do||!e.stillOpen())return!1;let r=e.latest();return r.some(a=>a?.type===Do)?!1:(e.write(If(r,t)),!0)}function k5(e,o){let{adapter:t,capabilities:r,currentSlug:a,docId:n,data:s,saveStatus:l,siteId:i,tokenRef:d}=dre(),f=fre(),{hasSiteSettings:x,hasPinnedChrome:u}=r;S5(e);let h=!!r.editsPinnedInPlace&&a!==Er,I=a===Er,S=ire().getState,v=lre(null);sre(()=>{if(!b5({docId:n,saveStatus:l,seededDocId:v.current})||(v.current=n,!u))return;let O=S().appState.data,R=O.content,T=s?.content??[],g=(D,b)=>D.some(F=>F?.type===b);if(!x){let D=new Set(zS(R)),b=D.size?R.filter(y=>!D.has(y.props.id)):R;if(D.size&&e.setDocument({...O,content:b}),I)return;let F=cre(b,T);if(F.includes(Le)){let y=b.length,k=e.insertSection(Le,y);e.replaceComponent(Os,y,{type:Le,props:{id:k,blocks:dm()}})}F.includes(zo)&&e.insertNode(Os,0,im());return}if(I){let D=lP(R);if(D!==R&&e.setDocument({...O,content:[...D]}),!D.find(b=>b.type===Le)&&!g(T,Le)&&!g(D,Je)&&!g(T,Je)){let b=(y,k)=>WS(o,y,k),F={type:Le,props:{blocks:dm()}};e.insertNode(Os,D.length,di(F,b,$S(Je),Ui))}return}if(h){let D=!!t?.pinnedChrome?.state().docId,b=w5(R,{hasChromeDoc:D}),F=new Set([...b.remove,...zS(R.filter(k=>!b.remove.includes(String(k.props.id))))]),y=F.size?R.filter(k=>!F.has(String(k.props.id))):R;if(y.length!==R.length&&e.setDocument({...O,content:y}),b.seedFooter&&!g(T,Le)&&!g(T,Je)){let k=(C,B)=>WS(o,C,B),P={type:Le,props:{blocks:dm()}};e.insertNode(Os,y.length,di(P,k,$S(Je),Ui))}if(b.seedHeader&&!g(T,zo)){let k=y[0]?.type===Do?1:0;e.insertNode(Os,k,im())}if(b.seedSiteHeader&&!g(T,Do)&&!g(T,Le)&&!g(T,Je)){let k=n;C5({blocks:un(f),make:(P,C)=>WS(o,P,C),id:$S(Do),siteId:i??null,token:d.current,latest:()=>S().appState.data.content,stillOpen:()=>v.current===k,write:P=>{let C=S().appState.data;e.setDocument({...C,content:[...P]})}})}return}let w=R.filter(D=>D.type!==Le),_=new Set(zS(w)),E=_.size?w.filter(D=>!_.has(D.props.id)):w;E.length!==R.length&&e.setDocument({...O,content:E}),!g(E,zo)&&!g(T,zo)&&e.insertNode(Os,0,im())},[n,l,s,S,e,x,u,I,h,t,f,i,d])}import{useEffect as L5,useMemo as gre,useRef as R5}from"react";import{useEasel as yre}from"efficient-easel/easel";import{newId as Sre}from"efficient-easel/data";import{useEaselHost as bre}from"efficient-easel/screen/lib/host";import{FIELD_DESCRIPTION_MARKER as pre}from"efficient-easel/screen/lib/host";import{isNode as T5}from"efficient-easel/data";function Yi(e,o){let t=e.components[o]?.label;return typeof t=="string"&&t.trim()?t.trim():o}function ure(e){return e.length>3&&e.endsWith("s")?e.slice(0,-1):e}function US(e,o,t,r){e.forEach((a,n)=>{if(T5(a)){r.push({node:a,list:e,index:n,parent:o,slot:t});for(let s of Dt(a))US(a.props[s],a,s,r)}})}function mre(e){let o=[];US(Array.isArray(e.content)?e.content:[],null,"",o);for(let t of Object.values(e.zones??{}))Array.isArray(t)&&US(t,null,"",o);return o}function O5(e,o){return mre(e).find(t=>String(t.node.props.id)===o)}function E5(e,o,t){if(!t)return null;let r=O5(o,t);if(!r)return null;let a=Yi(e,r.node.type),n=r.parent?`${Yi(e,r.parent.type)} \xB7 ${ure(r.slot)} ${r.index+1}`:a;return{blockId:t,type:r.node.type,label:n,path:""}}var xre=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 hre(e){if(!e||typeof e!="object")return null;let o=e;if(typeof o.type!="string")return null;let t=o.type==="custom"?o[pre]: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=xre(n));for(let s of["arrayFields","objectFields"]){let l=t?.[s]??o[s];l&&typeof l=="object"&&(r[s]=_5(l))}return r}function _5(e){let o={};for(let[t,r]of Object.entries(e??{})){let a=hre(r);a&&(o[t]=a)}return o}function A5(e){let o={};for(let[t,r]of Object.entries(e.components))r&&(o[t]={label:Yi(e,t),fields:_5(r.fields),...F5(t)?{retired:!0}:{}});return o}function F5(e){return co(fb,e)}function v5(e,o){let t=e.components[o]?.defaultProps;return t&&typeof t=="object"?structuredClone(t):{}}function Ire(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 jS(e,o){return e.findIndex(t=>T5(t)&&String(t.props.id)===o)}function P5(e,o,t){let r=o||t;if(!r)return e.length;let a=jS(e,r);if(a<0)throw new Error(`there is no top-level block ${r}`);return o?a+1:a}function B5(e,o,t,r,a={}){let n=structuredClone(o),s=Array.isArray(n.content)?n.content:n.content=[];try{t.forEach((l,i)=>{let d=f=>{throw new Error(`change ${i+1}: ${f}`)};switch(l.op){case"set_props":{let f=O5(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=Ire(f.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}`),F5(l.type)&&d(`${Yi(e,l.type)} is retired: it is no longer added (a page that holds one keeps it)`);let f=cs(l.type),x=Object.keys(l.props??{}).filter(h=>h!=="id");f&&x.length&&d(`${Yi(e,l.type)} is laid down as a Box of blocks: insert it with no props, then change its blocks`);let u=f?f(h=>v5(e,h),r,a):{type:l.type,props:{...v5(e,l.type),...structuredClone(l.props),id:r(l.type)}};s.splice(P5(s,l.after,l.before),0,u);break}case"remove_block":{let f=jS(s,l.block_id);f<0&&d(`there is no top-level block ${l.block_id}`),s.splice(f,1);break}case"move_block":{let f=jS(s,l.block_id);f<0&&d(`there is no top-level block ${l.block_id}`);let[x]=s.splice(f,1);s.splice(P5(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 GS=e=>fo(e.requestId)??null;function D5(){let e=bre(),{appState:o,selectedItem:t,dispatch:r,history:a,config:n}=yre(u=>u),s=n,l=R5({appState:o,dispatch:r,history:a,blockConfig:s});l.current={appState:o,dispatch:r,history:a,blockConfig:s};let i=R5(new Map),d=t?.props?.id,f=gre(()=>E5(s,o.data,d),[s,o.data,d]),x=f?JSON.stringify(f):"";L5(()=>{e.connected&&e.send("storefront-editor:selection",{selection:f})},[e,x]),L5(()=>e.subscribe(u=>{let{appState:h,dispatch:I,history:S,blockConfig:v}=l.current;switch(u.type){case"storefront-editor:request-document":{let O=GS(u);if(!O)return;e.send("storefront-editor:document",{requestId:O,document:h.data,blocks:A5(v)});return}case"storefront-editor:apply-page-edits":{let O=GS(u);if(!O)return;let R=Array.isArray(u.ops)?u.ops:[],T=R.length?B5(v,h.data,R,Sre,Ts()):{ok:!1,reason:"no changes"};T.ok&&(I({type:"setData",data:T.document,recordHistory:!0}),i.current.set(O,JSON.stringify(T.document.content??[]))),e.send("storefront-editor:page-edits-result",{requestId:O,applied:T.ok,reason:T.ok?null:T.reason});return}case"storefront-editor:undo-page-edits":{let O=GS(u);if(!O)return;let R=i.current.get(O),T=R!==void 0&&R===JSON.stringify(h.data.content??[]);T&&S.hasPast&&(S.back(),i.current.delete(O)),e.send("storefront-editor:page-edits-result",{requestId:O,applied:T&&S.hasPast,reason:T?null:"the page has changed since"});return}case"storefront-editor:set-right-panel":typeof u.shown=="boolean"&&I({type:"setUi",ui:{rightSideBarVisible:u.shown}});return;default:return}}),[e])}import{useEffect as H5,useState as W5}from"react";var gm=new Map;async function wre(e,o){try{return(await Oo().site.get({siteId:o})).slug?.trim()||null}catch(t){return console.warn("[editor-site-slug] could not resolve the site slug",t),null}}function N5(e,o){let t=gm.get(o);return t||(t=wre(e,o),gm.set(o,t),t.catch(()=>{gm.get(o)===t&&gm.delete(o)})),t}var Cre=/^(localhost|(?:[a-z0-9-]+\.)+localhost|127(?:\.\d{1,3}){3}|0\.0\.0\.0|\[::1\]|::1)$/i;function KS(e){return!!e&&Cre.test(e)}function M5(e){let{pageSlug:o,siteSlug:t,hostname:r}=e,a=o===sT?"/":`/${encodeURIComponent(o)}`;if(!KS(r))return a;let n=t?.trim();return n?`${a}?site=${encodeURIComponent(n)}`:a}function $5(e){let{pageSlug:o,siteId:t,token:r}=e,[a,n]=W5(null),[s,l]=W5(null),i=pP();H5(()=>{try{l(new URL(uP()).hostname)}catch{l(null)}},[i]),H5(()=>{if(!KS(s)||!t||!r){n(null);return}let f=!1;return N5(r,t).then(x=>{f||n(x)}),()=>{f=!0}},[s,t,r]);let d=M5({pageSlug:o,siteSlug:a,hostname:s});return i?`${i}${d}`:d}import{jsx as Xi}from"react/jsx-runtime";import{useEffect as kre,useRef as z5,useState as vre}from"react";import{ExternalIcon as U5}from"efficient-easel/icons";import{EaselIconButton as Pre}from"efficient-easel/chrome";import{Tooltip as Tre,iconButtonClasses as Ore}from"efficient-shell/ui";import{useSettledPress as Ere}from"efficient-easel/easel";import{useScreenDocument as _re}from"efficient-easel/screen/components/ScreenDocumentContext";async function Are({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 j5({liveHref:e,pageId:o,draftLink:t}){let{flushSave:r}=_re(),a=z5(r);a.current=r;let n=Ere(),[s,l]=vre(!1),i=z5(null);if(kre(()=>()=>i.current?.(),[]),t&&o){let d=()=>new Promise((x,u)=>{i.current=()=>x(!1),n.run(()=>{i.current=null,a.current().then(x,u)})}),f=()=>{s||n.waiting||(l(!0),Are({pageId:o,liveHref:e,draftLink:t,ready:d}).finally(()=>l(!1)))};return Xi(Pre,{label:c("Preview your saved draft in a new tab"),tip:c("Open your saved draft in a new tab. Visitors don't see it."),disabled:s||n.waiting,onClick:f,children:Xi(U5,{})})}return Xi(Tre,{content:c("Preview the live site (opens in a new tab)"),side:"bottom",children:Xi("a",{className:Ore({className:"es-iconbtn"}),href:e,...vl,"aria-label":c("Preview the live site in a new tab"),children:Xi(U5,{})})})}import{createElement as Fre,useCallback as Bre,useEffect as G5,useRef as K5,useState as Lre}from"react";import{ClockIcon as Rre}from"efficient-shell/icons/efficient";import{useScreenDocument as Dre}from"efficient-easel/screen/components/ScreenDocumentContext";function q5(e){let{docId:o,capabilities:t,hasUnsavedEdits:r,onPublish:a,adapter:n}=Dre(),s=p2(c2(o??null),r),l=Au(Fu()),i=n.siteLiveState;G5(()=>{if(i)return Bx(i),ca(0),()=>Bx(null)},[i]);let d=_f(),[f,x]=Lre(!1),u=K5(e);u.current=e;let h=K5(!0);G5(()=>(h.current=!0,()=>{h.current=!1}),[]);let I=Bre(()=>{x(!0),a(u.current).then(()=>{Lu()}).finally(()=>{h.current&&x(!1)})},[a]);if(t.canPublish){if(i){let S=d===void 0?void 0:r||d.state==="changed"?"changed":"live",v=hS({live:S,onPress:I,busy:f,goingLive:u2(d?.changes??[])});return n.siteVersions?{...v,menuItems:Nre()}:v}return hS({live:s,onPress:I,busy:f,pinnedUnpublished:l?.unpublished??!1})}}function Nre(){return[{key:"version-history",label:c("Version history"),icon:Fre(Rre),onSelect:vM}]}import{jsx as Q,jsxs as Vo,Fragment as Qi}from"react/jsx-runtime";import{useCallback as Mre,useEffect as Hre,useId as X5,useRef as Wre,useState as xt}from"react";import{useSettledAction as $re}from"efficient-easel/easel";import{Avatar as zre,Banner as Zi,Button as Za,ColoredBadge as qS,Dialog as YS,DropdownMenu as Ure,FormField as Z5,iconButtonClasses as jre,Inline as VS,Input as Gre,ListRow as Kre,Select as qre,SortableList as Vre,Stack as Ji}from"efficient-shell/ui";import{EditIcon as Yre,EyeIcon as V5,MenuIcon as Xre,MoreIcon as Zre,PageIcon as J5,RevertIcon as Y5,StylesIcon as Jre}from"efficient-shell/icons/efficient";import{useScreenDocument as Q5}from"efficient-easel/screen/components/ScreenDocumentContext";var Qre={page:J5,menu:Xre};function eae(e,o){return e.pages.find(t=>t.id===o)??e.pages[0]??null}function oae(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 tae({version:e,page:o,waiting:t,busy:r,error:a,onCancel:n,onConfirm:s,onPage:l}){let i=X5();if(!e)return null;let d=e.kind==="draft_before_restore",f=e.number,x=BM(e),u=d?c("Put your drafts back?"):o?c("Restore {page} from version {n}?",{page:o.name,n:f}):c("Restore version {n}?",{n:f}),h=d?c("Your drafts go back to how they were before the restore."):o?c("{page} goes back to version {n} as a draft. Nothing else on your website changes.",{page:o.name,n:f}):x?c("The whole website goes back to version {n} as a draft: {what}.",{n:f,what:x}):c("The whole website goes back to version {n} as a draft.",{n:f}),I=e.deletedPictures??0;return Q(YS,{open:!0,onClose:()=>{r||n()},size:"sm",title:u,footer:Vo(Qi,{children:[Q(Za,{variant:"secondary",onClick:n,disabled:r,children:c("Cancel")}),Q(Za,{onClick:s,loading:r,disabled:r,children:c("Restore as draft")})]}),children:Vo(Ji,{gap:4,children:[o&&e.pages.length>1?Q(Z5,{label:c("Page"),htmlFor:i,children:Q(qre,{id:i,value:o.id,options:e.pages.map(S=>({value:S.id,label:S.name})),onChange:l,disabled:r})}):null,Q("p",{children:h}),Q("p",{children:c("Your live website does not change until you press Publish.")}),I>0?Q(Zi,{tone:"warning",children:Wt("{n} picture in this version was deleted from the media library. It stays empty.","{n} pictures in this version were deleted from the media library. They stay empty.",I)}):null,t?Q(Zi,{tone:"info",title:c("Your unpublished changes are kept"),children:c("They are saved in Version history as \u201CDraft before restore\u201D, so you can get them back.")}):null,a?Q(Zi,{tone:"danger",children:a}):null]})})}function rae({version:e,onCancel:o,onSave:t}){let r=X5(),[a,n]=xt(null),[s,l]=xt(""),[i,d]=xt(!1),[f,x]=xt(null);if(e!==a&&(n(e),l(e?.name??""),x(null)),!e)return null;let u=s.trim()===e.name,h=async()=>{if(!(i||u)){d(!0),x(null);try{await t(s.trim())}catch{x(c("The name was not saved. Try again."))}finally{d(!1)}}};return Q(YS,{open:!0,onClose:()=>{i||o()},size:"sm",title:c("Name this version"),footer:Vo(Qi,{children:[Q(Za,{variant:"secondary",onClick:o,disabled:i,children:c("Cancel")}),Q(Za,{onClick:()=>{h()},loading:i,disabled:i||u,children:c("Save")})]}),children:Q(Z5,{label:c("Name"),htmlFor:r,hint:c("Named versions are always kept. Leave it empty to take the name away."),error:f??void 0,children:Q(Gre,{id:r,value:s,invalid:!!f,onChange:I=>l(I.target.value),onKeyDown:I=>{I.key==="Enter"&&h()}})})})}function aae({version:e,expanded:o,onToggle:t,onPreview:r,onRestore:a,onRestorePage:n,onName:s}){let l=e.kind==="draft_before_restore",i=!e.live,d=e.changes.length,f=[...l?[]:[{key:"preview",label:c("Preview"),icon:Q(V5,{}),onSelect:r}],...i?[{key:"restore",label:l?c("Put these drafts back"):c("Restore whole website"),icon:Q(Y5,{}),onSelect:a}]:[],...i&&!l&&e.pages.length?[{key:"restore-page",label:c("Restore one page only"),icon:Q(J5,{}),onSelect:n}]:[],...l?[]:[{type:"divider",key:"divider"},{key:"name",label:c("Name this version"),icon:Q(Yre,{}),onSelect:s}]];return Q(Kre,{title:Vo("span",{className:"sf-version-title",children:[Q("span",{children:FM(e)}),e.live?Q(qS,{tone:"success",size:"xs",children:c("Live")}):null,e.name?Q(qS,{tone:"neutral",size:"xs",children:c("Version {n}",{n:e.number})}):null,l?Q(qS,{tone:"warning",size:"xs",children:c("Not published")}):null]}),expanded:o,onToggle:t,actions:Q(Ure,{align:"end","aria-label":c("More"),items:f,triggerClassName:jre({variant:"ghost",size:"sm"}),trigger:Q(Zre,{})}),below:Vo(Ji,{gap:3,children:[Vo(VS,{gap:2,align:"center",wrap:!0,className:"sf-version-meta",children:[Q(zre,{name:e.createdBy,size:"xs"}),Q("span",{children:e.createdBy}),Q("span",{"aria-hidden":"true",children:"\xB7"}),Q("span",{children:RM(e.createdAt)}),d?Vo(Qi,{children:[Q("span",{"aria-hidden":"true",children:"\xB7"}),Q("span",{children:Wt("{n} change","{n} changes",d)})]}):null]}),o?Vo(Ji,{gap:3,children:[d?Q(Ji,{gap:2,children:e.changes.map(x=>{let u=Qre[x.kind]??Jre;return Vo(VS,{gap:2,align:"center",children:[Q(u,{size:16}),Q("span",{children:LM(x)})]},`${x.kind}:${x.id}`)})}):null,Vo(VS,{gap:2,children:[l?null:Q(Za,{variant:"secondary",size:"sm",leftIcon:Q(V5,{}),onClick:r,children:c("Preview")}),i?Q(Za,{variant:"secondary",size:"sm",leftIcon:Q(Y5,{}),onClick:a,children:c("Restore")}):null]})]}):null]})})}function nae({open:e,onClose:o,access:t,waiting:r}){let{flushSave:a,reloadFromServer:n,docId:s}=Q5(),[l,i]=xt(null),[d,f]=xt(!1),[x,u]=xt(null),[h,I]=xt(null),[S,v]=xt(!1),[O,R]=xt(null),[T,g]=xt(null),[w,_]=xt(!1),E=Wre(0),D=Mre(()=>{let k=++E.current;f(!1),t.list().then(P=>{k===E.current&&i(P)},()=>{k===E.current&&f(!0)})},[t]);Hre(()=>{e&&D()},[e,D]);let b=k=>{_(!1),oae(t,k.id).catch(()=>_(!0))},F=async()=>{if(!(!h||S)){v(!0),R(null);try{await _M({access:t,version:h.version,page:h.page,flushSave:a,reload:n}),I(null),o()}catch(k){R(k instanceof _i?c("Your last changes did not save, so nothing was restored. Try again."):c("The version was not restored. Nothing changed. Try again."))}finally{v(!1)}}},y=$re({onPress:()=>{F()},busy:S});return Vo(Qi,{children:[Q(YS,{open:e,onClose:o,size:"xl",title:c("Version history"),description:Vo(Qi,{children:[c("Every Publish keeps a copy of the whole website: pages, menus and site styles.")," ",c("Products, prices and forms always show as they are now.")]}),footer:Q("span",{className:"sf-version-foot",children:c("The newest 30 are kept. Named versions are always kept.")}),children:Vo(Ji,{gap:3,children:[w?Q(Zi,{tone:"danger",onDismiss:()=>_(!1),children:c("The preview did not open. Try again.")}):null,d?Q(Zi,{tone:"danger",action:Q(Za,{variant:"secondary",size:"sm",onClick:D,children:c("Try again")}),children:c("Version history did not load.")}):l===null?Q("p",{className:"sf-version-foot",children:c("Loading versions")}):l.length===0?Q("p",{className:"sf-version-foot",children:c("No versions yet. Every Publish from now on keeps one.")}):Q(Vre,{"aria-label":c("Versions"),spacing:"comfortable",children:l.map(k=>Q(aae,{version:k,expanded:x===k.id,onToggle:()=>u(P=>P===k.id?null:k.id),onPreview:()=>b(k),onRestore:()=>{R(null),I({version:k,page:null})},onRestorePage:()=>{R(null),I({version:k,page:eae(k,s)})},onName:()=>g(k)},k.id))})]})}),Q(tae,{version:h?.version??null,page:h?.page??null,waiting:r,busy:y.busy===!0,error:O,onCancel:()=>I(null),onConfirm:y.onPress,onPage:k=>I(P=>P&&{...P,page:P.version.pages.find(C=>C.id===k)??P.page})}),Q(rae,{version:T,onCancel:()=>g(null),onSave:async k=>{await t.name(T.id,k),g(null),D()}})]})}function e4(){let{adapter:e,hasUnsavedEdits:o}=Q5(),t=e.siteVersions,r=TM(),a=_f();return t?Q(nae,{open:r,onClose:PM,access:t,waiting:o||a?.state==="changed"}):null}import{useEaselSession as H4}from"efficient-easel/screen/lib/session-context";import{buildPaletteSections as N6e,categoryLabel as M6e,paletteWithoutPinned as H6e,pinnedSection as W6e}from"efficient-easel/screen/lib/document/palette-sections";var sae={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 o4(e){return z(sae,e)?.label}var t4=ub;function lae(e){let o=au.Ticker(e.nodeDefaults,e.newNodeId),{sectionBorder:t,...r}=o.props,a=aI.line?{sectionBorder:t}:{};return{...o,props:{...r,...a,sectionAccent:aI.sectionAccent}}}var iae={Hero:{[Xl]:{newChild:lae,childLabel:ea.Ticker}}},r4=Object.fromEntries(Object.entries(i1).map(([e,o])=>[e,Object.fromEntries(Object.entries(o).map(([t,r])=>[t,{...r,...z(iae,e)?.[t]}]))]));function a4(e,o=0,t,r){let a=fae(cae(e,o,r),t),n=a?Lg():null;return a&&n?dae(a,n):a}function dae(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 fae(e,o){if(!e||e.source!=="container"||!o||!bw())return e;let t=_d({data:o.data},o.id),r=typeof t?.type=="string"?vd(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 cae(e,o,t){let r=t?z(r4,e)?.[t]:void 0;if(r)return{source:"section",slot:r.slot,choices:null,spec:r};let a=z(nt,e);if(a)return{source:"section",slot:a.slot,choices:null,spec:a};let n=fd(e,o);if(n)return{source:"container",slot:n.slot,choices:n.choices,spec:null};let s=v2(e);return s?{source:"footer",slot:k2,choices:s,spec:null}:null}function n4(e,o=Od(e.type)){return Td(e.type)?o.map(t=>{let r=kw(e.type,t);return r===null?{slot:t,label:t,rung:!1}:{slot:t,label:c(r),rung:!0}}):null}import{useSyncExternalStore as pae}from"react";var XS=null,ZS=new Set;function s4(e){if(XS!==e){XS=e;for(let o of ZS)o()}}function uae(e){return ZS.add(e),()=>{ZS.delete(e)}}function dWe(){return pae(uae,()=>XS,()=>null)}function l4(e){return _P(e)?.ownerId??null}function i4(e,o){let t=e.props;if(e.type==="FooterMenu"){let r=t.menu;return t.heading||r?.name||c("Menu")}if(e.type==="FooterText"){let r=typeof t.text=="string"?t.text.trim():"";return r?r.length>28?`${r.slice(0,28)}\u2026`:r:c("Text")}return e.type==="FooterEmailSignup"?t.heading||c("Email signup"):o(e.type)}import{parseOption as mae}from"efficient-shell/format";var xae=["pages","sections","styles"],d4="sf-editor-left-view";function f4(){if(typeof window>"u")return"pages";try{let e=window.localStorage.getItem(d4);return mae(xae,"pages",e)}catch{return"pages"}}function c4(e){if(!(typeof window>"u"))try{window.localStorage.setItem(d4,e)}catch{}}function p4(e,o){return e==="styles"&&!o?"sections":e}function u4(e,o){return e?"sections":o}import{copyNode as hae}from"efficient-easel/data";function m4(e){let o=typeof e?.props?.id=="string"?e.props.id:null,t=ar(),r=o&&t?t.sectionOf(o):null;if(!t||!r)return null;let a=t.usedOn(r);return a?a.length===1?c("On 1 page"):c("On {count} pages",{count:a.length}):c("On other pages")}var x4={usedOn:e=>{let o=ar(),t=o?.sectionOf(e.props.id)??null;return!o||!t?null:o.usedOn(t)??[]},openPage:e=>Tf()?.openPage(e),adopt:(e,o)=>ar()?.adopt(e.props.id,o),nodeOf:e=>ar()?.place(e)??null,detach:e=>{let o=Tf()?.config;return o?hae(e,o):e},removed:()=>Tf()?.reload()};import{sharedSectionsOf as Uae}from"efficient-easel/screen/lib/shared-sections";import{scrollPreviewToSection as jae,scrollPreviewToTop as F4}from"efficient-easel/screen/lib/document/preview-dom";var Iae=vf.mediaFields,gae=/video|poster|focal|phone/i;function yae(e){return(z(Iae,e)??[]).find(o=>!o.includes("[]")&&!gae.test(o))??null}function Sae(e){let o=yae(e.type);return e.type!==K?o&&Ed(e.type,e.props,o)?{fromData:!0}:o:Vk(e.props)?{fromData:!0}:o}var h4={adds:{kind:"block",type:"ImageBlock"},kinds:["image"],pictureOf:Sae,create:(e,o)=>({type:"ImageBlock",props:{...o.nodeDefaults("ImageBlock"),id:o.newNodeId("ImageBlock"),src:e.url}})};var I4={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 ym}from"react/jsx-runtime";import{useState as bae}from"react";import{Button as wae,Tooltip as Cae,toast as g4}from"efficient-shell/ui";import{TemplateIcon as kae}from"efficient-easel/icons";import{useSettledAction as vae}from"efficient-easel/easel";import{useScreenDocument as Pae}from"efficient-easel/screen/components/ScreenDocumentContext";function S4({enabled:e,reason:o,onSaved:t}){let{flushSave:r}=Pae(),[a,n]=bae(!1),s=async()=>{if(!a){n(!0);try{await r()?t():g4.error(c(y4))}catch{g4.error(c(y4))}finally{n(!1)}}},l=vae({onPress:()=>{s()},busy:a});return ym(Cae,{side:"bottom",content:e?c("Save this website as a platform template"):c(o),children:ym("span",{className:"sf-tip-disabled",tabIndex:e?void 0:0,children:ym(wae,{variant:"secondary",disabled:!e||l.busy,loading:l.busy,onClick:l.onPress,rightIcon:ym(kae,{size:15}),children:c("Save as Template")})})})}var y4="Your last changes did not save, so the template was not made. Try again.";var Tae="Save your page changes first";function b4(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:Tae}:{visible:!0,enabled:!0}:{visible:!1,hiddenReason:"no-site"}:{visible:!1,hiddenReason:"not-operator"}:{visible:!1,hiddenReason:"no-console"}}var w4="storefront-editor:save-as-template";import{phoneKey as Oae,tabletKey as Eae}from"efficient-easel/draw";var _ae=[po.top,Eae(po.top),Oae(po.top)],Sm="ContactLocations",C4="ContactRouting",k4="CityPictures",v4="CityMaps",Aae=[{key:k4,label:"City pictures",piece:0,desc:"A wall of city photos, grouped by region. Each photo links to its city's card."},{key:v4,label:"City maps",piece:1,desc:"A card per city, grouped by region: address, phone, hours and a map."}];function P4(e=Oa,o=VI){let t=db.find(r=>r.sections.some(a=>a.type===C4))?.key;return!e.includes(Sm)||!t?[]:Aae.filter(r=>!(o&&r.key===k4)).map(({key:r,label:a,desc:n,piece:s})=>({key:r,label:a,cat:t,after:C4,desc:n,alias:"locations offices stores branches",insert:l=>{let i=Dr(Sm);if(!i)return null;let d=Ts(),f=xi(Sm,i,s)(l.nodeDefaults,l.newNodeId,d);if(!f||!(o&&r===v4))return f;let x=xi(Sm,i,0)(l.nodeDefaults,h=>`${h}-above`,d),u=Object.fromEntries(_ae.filter(h=>x?.props[h]!==void 0).map(h=>[h,x.props[h]]));return{...f,props:{...f.props,...u}}}}))}function T4(e=Oa,o){return[...P4(e,o)]}function E4(e,{nodeDefaults:o,newNodeId:t,sectionLabel:r,blockIsOffered:a}){let n=cs(e);if(n)return n(o,t,Ts());if(pw(e)&&a(K)&&a(dn)){let l=z(wt,e);return{type:K,props:{...o(K),id:t(K),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}:{},...Tl(e)!==Tl(dn)?{eyebrowLook:Tl(e)}:{}}},{type:e,props:{...o(e),id:t(e),headPlacement:"own-box",...O4(e,t)}}]}}}if(z(nt,e)?.fixed===!0)return{type:e,props:{...o(e),id:t(e),layout:"boxes"}};let s=O4(e,t);return Object.keys(s).length?{type:e,props:{...o(e),id:t(e),...s}}:null}function O4(e,o){return e==="Cards"?{template:iw(t=>o(t))}:e===dw?{template:fw(t=>o(t))}:{}}import{useEffect as Fae,useState as Bae}from"react";import{useEaselSession as Lae}from"efficient-easel/screen/lib/session-context";function _4(){let e=Lae().chrome?.products?.list,[o,t]=Bae(null);return Fae(()=>{if(!e)return;let r=!1;return e().then(a=>{r||t(a)}),()=>{r=!0}},[e]),o}function W4({mode:e,open:o}){let{setSelectedHeroId:t,setSelectHandler:r}=RL(),a=M4().tree,n=e,s=n.kind==="ticker"?n.heroId:null,l=Es(i=>{i&&(o({kind:"ticker",heroId:i}),jae(i))},[o]);return Yt(()=>{t(s)},[s,t]),Yt(()=>{r(l)},[r,l]),{partRows:(i,{rowClick:d})=>{let f=String(i.props.id);return i.type==="Hero"&&nI(i.props)&&lo(D4,{icon:lo(ja,{type:"ticker",size:13}),name:c(Ma),onSelect:()=>l(f),selected:s===f,rowProps:{onClick:d(()=>l(f))},words:a})}}}function $4({mode:e,select:o}){let{setSelectedHeroPart:t,setSelectHandler:r}=Gu(),a=M4().tree,{appState:n,config:s}=N4(u=>u),l=Rae({data:n.data,config:s});l.current={data:n.data,config:s};let i=e,d=ka.find(u=>Gl[u]===i.kind),f=d&&"nodeId"in i?va(String(i.nodeId),d):null,x=Es(u=>{let h=Yc(u);if(!h)return;let{data:I,config:S}=l.current,v=$ae(I,S,{kind:"node",id:h.nodeId});if(!v)return;let O={kind:Gl[h.part],nodeId:h.nodeId};o({index:v.index,zone:v.zone},O)},[o]);return Yt(()=>{t(f)},[f,t]),Yt(()=>{r(x)},[r,x]),{partRows:(u,{rowClick:h})=>{let I=String(u.props.id),S=m_(u);if(S.length===0)return null;let v=T=>{let g=va(I,T.part);return lo(D4,{icon:lo(ja,{type:T.part==="media"?"heroMedia":"heroImage",size:13}),name:c(T.label),onSelect:()=>x(g),selected:f===g,rowProps:{onClick:h(()=>x(g))},words:a},g)},[O,...R]=S;return ed(R4,{children:[v(O),R.length>0&&lo(Wae,{children:R.map(v)})]})}}}function z4(e,o){return{partRows:(t,r)=>ed(R4,{children:[e.partRows?.(t,r),o.partRows?.(t,r)]})}}function Gae(e){let{adapter:o,capabilities:t,currentSlug:r,siteId:a,docId:n,hasUnsavedEdits:s,bridgeCapabilities:l,notifyParent:i,token:d}=bm(),{hasPreviewLink:f}=t,x=Oo(H4()).preview?.draftLink,u=q5(e.data),h=b4({hasTrustedConsole:!!d,canCreatePlatformTemplate:l.canCreatePlatformTemplate,capabilities:t,siteId:a,hasUnsavedEdits:s}),I=Es(()=>{!a||!r||i(w4,{siteId:a,slug:r})},[i,a,r]),S=$5({pageSlug:r,siteId:a,token:d}),v=o.previewHref?.(r)??S;return{barLead:()=>h.visible&&lo(S4,{enabled:h.enabled,reason:h.enabled?"":h.disabledReason,onSaved:I}),barView:()=>f&&r&&lo(j5,{liveHref:v,pageId:n??null,draftLink:x}),mainAction:u}}function Kae(e,o){let{capabilities:t,templateId:r,siteId:a,tokenRef:n,navigate:s}=bm(),{hasSiteTheme:l,explainsSiteSettings:i}=t,d=T=>o.setView(T),[f,x]=A4(YT[0].id),[u,h]=A4(!1),{surface:I,setSurface:S}=IH(),v=()=>{if(l){d("styles"),o.reveal(),F4();return}e.show(OS),e.reveal(),F4()},O={id:"pages",label:c("Pages"),icon:lo(Nae,{}),panel:({onHide:T})=>lo(lH,{activeSurface:I,onPreviewSurface:S,onNavigate:g=>{S(null),s(r?{kind:"template",id:r,pageSlug:g}:{kind:"page",slug:g,siteId:a??void 0})},onClose:T})},R=[];return!l&&i&&R.push({id:"appearance",label:c("Appearance"),icon:lo(Hae,{}),active:e.kind==="website",onSelect:v}),l&&R.push({id:"styles",label:c("Styles"),icon:lo(Mae,{}),panel:({onHide:T,notify:g})=>lo(X2,{tokenRef:n,siteId:a??void 0,onClose:T,onNotify:g,tab:f,onTabChange:x,revealPageGroup:u,onPageGroupRevealed:()=>h(!1)})}),{railLead:[O],railTrail:R,resolveLeftView:T=>p4(T,l),openSettings:v,openStyles:()=>{x(VT),d("styles")},openPageStyles:l?()=>{x(Nf),h(!0),d("styles"),o.reveal()}:i?()=>{e.show(M2),e.reveal()}:void 0}}function qae(){let{navigate:e,siteId:o,reloadFromServer:t,docId:r}=bm(),a=N4(s=>s.config),n=H4();Yt(()=>(Fx({openPage:s=>e({kind:"page",slug:s.slug,siteId:o??void 0}),reload:()=>{t()},config:a}),()=>Fx(null)),[e,o,t,a]),Yt(()=>{let s=ar();if(!s||!r)return;let l=!1;return Uae(n).list().then(i=>{l||s.learn(i)}).catch(()=>{}),()=>{l=!0}},[r,n])}function U4(){let e=Hf();return Es(o=>{b0(o,e)},[e])}function Vae(e,o,t,r){let{kind:a,open:n}=e,{selected:s,zoneOf:l}=o;Yt(()=>{s4(s?.type==="BookingBox"&&s.props.region==="confirm"?l4(l(String(s.props.id))):null)},[s?.props.id]);let i=m5(e,o),{capabilities:{hasSiteSettings:d}}=bm();qae();let{chat:f,setChat:x,setSelected:u,setSelectHandler:h}=ju(),I=Es(()=>n(H2),[n]),S=a==="chat";Yt(()=>{u(S)},[S,u]),Yt(()=>{h(I)},[h,I]);let{setOpenHandler:v}=Fi(),O=Es(()=>n(W2),[n]);Yt(()=>{v(O)},[v,O]);let R=z4(W4(e),$4(e)),T=Gae(o),g=Kae(e,r);QM(r);let w=t.device,_=U4();return{...R,...T,...g,hasOwnRows:E=>E.type===Im,ownRows:i.renderLocationTree,sectionPressed:i.sectionPressed,onCopyItem:_,wrap:E=>lo(Gx.Provider,{value:!0,children:ed(zae.Provider,{value:w,children:[E,lo(e4,{})]})}),addPanelRow:E=>d?ed("div",{className:"sf-addside-sitewide",children:[lo("span",{className:"sf-addside-sitewide-glyph","aria-hidden":"true",children:lo(ja,{type:"chat",size:16})}),ed("button",{type:"button",className:"sf-addside-sitewide-name",onClick:()=>{E(),I()},children:[c("Live chat"),lo("span",{className:"sf-addside-sitewide-desc",children:c("A chat bubble on every page")})]}),lo(Dae,{checked:f.enabled,onChange:D=>x({enabled:D}),ariaLabel:c("Show the chat bubble on the whole site")})]}):void 0}}var B4=null,JS=new WeakMap;function Yae(e){let o=nC();if(!e||!o)return e;B4!==o&&(B4=o,JS=new WeakMap);let t=JS.get(e);return t||(t={...e,choices:e.choices?e.choices.map(r=>({...r,label:c(r.label)})):null,spec:e.spec?{...e.spec,addLabel:c(e.spec.addLabel),...e.spec.childLabel?{childLabel:c(e.spec.childLabel)}:{}}:null},JS.set(e,t)),t}var Xae={isLockedBlock:(e,o)=>Su(e,o)||!!(o&&ar()?.heldElsewhere(o.props.id)),duplicateBlocked:fm,nestDepth:(e,o,t)=>o===Wd?$d(e,t):0,newSectionNode:E4,canAddTo:(e,o,t,r)=>Yae(a4(e,o,r,t)),blockIsOffered:PR,slotsOf:n4,resolveOnInsert:!0},Zae=new Proxy(I4,{get:(e,o)=>{let t=Reflect.get(e,o);return typeof t=="string"?c(t):t}}),Jae={labelAtLevel:(e,o,t)=>c(km(e,o,t)),descriptions:Zae,categoryLabel:e=>{let o=o4(e);return o===void 0?void 0:c(o)},firstSection:t4,blockRowName:i4,rowName:bu,plainText:an,Icon:ja,Thumbnail:V2,useProducts:_4,presets:T4()},Qae={desktop:2e3,tablet:800,mobile:390},L4="desktop",ene={options:uH,initial:L4,fluid:L4,fluidMin:Yb,widths:Qae,hidesPerView:!0},one={read:f4,write:e=>c4(e),forSelection:(e,o)=>u4(e,o)},tne={first:zo,last:Le,firstGroup:Do,lastGroup:Je,isSectionGroup:aP,sectionGroupZone:nP,panelOf:e=>e===zo?N2:null,get sharedReach(){return ua()?ane:void 0},get shared(){return ar()?x4:void 0},get groupTab(){return ua()?P2:void 0},get groupBadge(){return ua()?CS({type:Je})??void 0:void 0},get changeNotice(){return ua()?T2():void 0},get band(){return ua()?rne:void 0},get groupAccepts(){return ua()?iP:void 0}},rne={foldable:!0},ane=e=>CS(e)??m4(e);function nne(e){return{...z4(W4(e),$4(e)),onCopyItem:U4(),openSettings:()=>e.show(OS)}}function sne(e,o){k5(e,o),D5()}var S$e={useOwnerName:Bn,useDocumentLabel:P0,useBridges:Vae,useStandaloneBridges:nne,useDocumentPass:sne,blockRules:Xae,blockLook:Jae,devices:ene,leftView:one,pinned:tne,Canvas:HM,canvasDrag:{media:h4},Inspector:z2};export{_g as a,Gt as b,Kt as c,Qe as d,jme as e,lI as f,jIe as g,fi as h,ci as i,UA as j,jA as k,Fp as l,GIe as m,tG as n,GA as o,KIe as p,uR as q,APe as r,mR as s,LPe as t,gl as u,ha as v,fI as w,Zme as x,ip as y,RO as z,DO as A,A1 as B,Y0 as C,vt as D,Qf as E,X0 as F,dh as G,nle as H,sle as I,lle as J,Z0 as K,ile as L,ec as M,oO as N,ple as O,ule as P,tO as Q,mle as R,Ple as S,Tle as T,iO as U,qo as V,Mn as W,ao as X,Fa as Y,Y as Z,Xn as _,J as $,X as aa,ae as ba,ne as ca,fe as da,Axe as ea,ce as fa,Jn as ga,Qn as ha,oi as ia,ti as ja,D1 as ka,Rxe as la,NU as ma,N1 as na,Mxe as oa,Hxe as pa,M1 as qa,kh as ra,OO as sa,e3 as ta,Tl as ua,EO as va,Bie as wa,pI as xa,Uxe as ya,jxe as za,Gxe as Aa,Kxe as Ba,qxe as Ca,Vxe as Da,eie as Ea,Cc as Fa,vl as Ga,oie as Ha,tie as Ia,yO as Ja,yh as Ka,LW as La,RW as Ma,rie as Na,DW as Oa,aie as Pa,yE as Qa,oce as Ra,OE as Sa,tce as Ta,rce as Ua,ace as Va,Ip as Wa,hI as Xa,z1 as Ya,gp as Za,nhe as _a,XU as $a,ZU as ab,JU as bb,she as cb,Wo as db,Da as eb,as as fb,Khe as gb,qhe as hb,Vhe as ib,DE as jb,zc as kb,c$ as lb,pce as mb,CA as nb,kA as ob,vA as pb,uIe as qb,OA as rb,XIe as sb,ZIe as tb,Lp as ub,qA as vb,_l as wb,FO as xb,BO as yb,Th as zb,Sa as Ab,qO as Bb,Ide as Cb,gde as Db,yde as Eb,Ll as Fb,rt as Gb,Pde as Hb,lie as Ib,Sie as Jb,bh as Kb,bie as Lb,ga as Mb,kc as Nb,Ve as Ob,Nde as Pb,QO as Qb,oE as Rb,tE as Sb,Rp as Tb,oF as Ub,uge as Vb,Dp as Wb,tF as Xb,gge as Yb,uF as Zb,_G as _b,$p as $b,hye as ac,Gc as bc,C$ as cc,Kh as dc,$G as ec,Aye as fc,HF as gc,WF as hc,Fye as ic,Bye as jc,Vx as kc,m6 as lc,Yx as mc,n0 as nc,Vye as oc,eB as pc,oB as qc,tB as rc,SSe as sc,FSe as tc,BSe as uc,LSe as vc,ig as wc,dB as xc,c8 as yc,p8 as zc,jp as Ac,NSe as Bc,MSe as Cc,cbe as Dc,AB as Ec,pbe as Fc,FB as Gc,mbe as Hc,HB as Ic,WB as Jc,K8 as Kc,UB as Lc,Fbe as Mc,Vp as Nc,zbe as Oc,ui as Pc,Gbe as Qc,qB as Rc,qbe as Sc,VB as Tc,YB as Uc,Xbe as Vc,Pl as Wc,QW as Xc,pr as Yc,owe as Zc,Yp as _c,nwe as $c,Zp as ad,vie as bd,Pie as cd,ya as dd,Tie as ed,lh as fd,Jf as gd,B0 as hd,Fr as id,zl as jd,W$ as kd,Yh as ld,Jce as md,Ul as nd,z$ as od,Qce as pd,rpe as qd,jl as rd,_pe as sd,Ape as td,Fpe as ud,Bpe as vd,X$ as wd,Lpe as xd,Yc as yd,Kl as zd,Mpe as Ad,Qh as Bd,S_ as Cd,b_ as Dd,Xh as Ed,rz as Fd,Hpe as Gd,Xc as Hd,ql as Id,Jc as Jd,Wpe as Kd,$pe as Ld,Zc as Md,zpe as Nd,Upe as Od,v_ as Pd,Vl as Qd,Yl as Rd,ep as Sd,T_ as Td,Vn as Ud,O_ as Vd,op as Wd,tp as Xd,rp as Yd,E_ as Zd,__ as _d,A_ as $d,F_ as ae,B_ as be,W_ as ce,$_ as de,Sue as ee,bue as fe,wue as ge,Cue as he,kue as ie,Pz as je,Tz as ke,vue as le,Pue as me,Tue as ne,U_ as oe,Oue as pe,Eue as qe,_ue as re,Aue as se,_z as te,Az as ue,Rz as ve,Y_ as we,Mz as xe,Z_ as ye,J_ as ze,Rc as Ae,qz as Be,nme as Ce,a1 as De,pme as Ee,kme as Fe,vme as Ge,ufe as He,Rl as Ie,gfe as Je,yfe as Ke,xE as Le,hi as Me,Vt as Ne,KR as Oe,fu as Pe,o0e as Qe,t0e as Re,u0e as Se,m0e as Te,vq as Ue,qg as Ve,oD as We,x0e as Xe,rD as Ye,aD as Ze,dD as _e,Fq as $e,Rq as af,M0e as bf,Z0e as cf,J0e as df,bi as ef,Q0e as ff,eOe as gf,Xg as hf,oOe as if,uke as jf,Nl as kf,Wh as lf,Wc as mf,_Oe as nf,Gn as of,Ace as pf,Fce as qf,XE as rf,h9 as sf,rN as tf,ki as uf,VEe as vf,XEe as wf,sy as xf,IN as yf,eu as zf,gke as Af,bke as Bf,RL as Cf,Ig as Df,DL as Ef,NL as Ff,kke as Gf,ML as Hf,tu as If,Fke as Jf,WL as Kf,UL as Lf,$L as Mf,Y1e as Nf,X1e as Of,Z1e as Pf,bu as Qf,zN as Rf,hy as Sf,IAe as Tf,gAe as Uf,hX as Vf,IX as Wf,tFe as Xf,rFe as Yf,aFe as Zf,nFe as _f,Tu as $f,Ou as ag,EFe as bg,uM as cg,hM as dg,IM as eg,gM as fg,wLe as gg,wCe as hg,Au as ig,zu as jg,iH as kg,dH as lg,cH as mg,Uu as ng,eRe as og,oRe as pg,ju as qg,RJ as rg,cRe as sg,Fi as tg,xRe as ug,IH as vg,Ln as wg,c6 as xg,Pne as yg,Tne as zg,RHe as Ag,DHe as Bg,NHe as Cg,c1 as Dg,gRe as Eg,Gu as Fg,hne as Gg,x6 as Hg,h6 as Ig,I6 as Jg,i0 as Kg,Kne as Lg,Vf as Mg,M6 as Ng,H6 as Og,bse as Pg,dne as Qg,nW as Rg,IO as Sg,qle as Tg,Vle as Ug,FW as Vg,Yle as Wg,Xle as Xg,wc as Yg,Zle as Zg,Un as _g,nE as $g,sE as ah,IE as bh,Xfe as ch,RE as dh,ice as eh,NE as fh,qh as gh,P$ as hh,_$ as ih,Uce as jh,fCe as kh,TCe as lh,ACe as mh,IL as nh,DCe as oh,NCe as ph,YCe as qh,XCe as rh,dke as sh,mi as th,g7 as uh,cve as vh,yve as wh,Nve as xh,Mve as yh,pPe as zh,sR as Ah,une as Bh,oNe as Ch,PH as Dh,Le as Eh,dm as Fh,Bt as Gh,Q2 as Hh,Ki as Ih,e5 as Jh,o5 as Kh,z5e as Lh,U5e as Mh,N5 as Nh,KS as Oh,M5 as Ph,a4 as Qh,dWe as Rh,S$e as Sh};
|