efficient-storefront-blocks 0.133.10 → 0.134.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 +13 -0
- package/dist/chunks/{CustomHtmlCodeWindow-2CJO3FRG.js → CustomHtmlCodeWindow-PCCIJDTP.js} +1 -1
- package/dist/chunks/{EditorPreviewCheckout-524ZFYDR.js → EditorPreviewCheckout-K5CYDY5Q.js} +1 -1
- package/dist/chunks/SiteEditorProvider-5GQBSTAR.js +1 -0
- package/dist/chunks/{chunk-DO5FAI7I.js → chunk-4HZQEMGD.js} +1 -1
- package/dist/chunks/{chunk-NQZ3O6A3.js → chunk-6RKYPO5H.js} +1 -1
- package/dist/chunks/{chunk-5W6M2F4B.js → chunk-AKNNDIRL.js} +1 -1
- package/dist/chunks/{chunk-I4IY2GTB.js → chunk-GZKBN53C.js} +1 -1
- package/dist/chunks/{chunk-C2YDFOCO.js → chunk-ITZRFN64.js} +1 -1
- package/dist/chunks/{chunk-6JIG2WYA.js → chunk-K7S3C6QE.js} +1 -1
- package/dist/chunks/chunk-MM7TBACQ.js +337 -0
- package/dist/chunks/{chunk-UQDOJWLM.js → chunk-UYU65XIT.js} +1 -1
- package/dist/chunks/{fitment-data-6FBUVM5L.js → fitment-data-RJ6DAYHD.js} +1 -1
- package/dist/chunks/{section-css-style-YWXTU6HK.js → section-css-style-K25L45AT.js} +1 -1
- package/dist/editor/lib/document/blocks/service/SiteFooter/fields.js +1 -1
- package/dist/editor/lib/storefront-editor-words.d.ts +1 -0
- package/dist/editor/lib/storefront-editor-words.js +1 -1
- package/dist/index.js +24 -24
- package/dist/links.js +1 -1
- package/dist/render/app/globals.css +17 -0
- package/dist/render/built-with.json +1 -1
- package/dist/render/components/SectionGroupBody.d.ts +2 -1
- package/dist/render/components/SectionGroupBody.js +1 -1
- package/dist/render/lib/content/footer-reveal.d.ts +5 -0
- package/dist/render/lib/content/footer-reveal.js +1 -1
- package/dist/render/lib/document/blocks/service/SiteFooter/render.js +1 -1
- package/dist/routine-index.json +1 -1
- package/dist/value-index.json +1 -1
- package/dist/words.d.ts +1 -0
- package/dist/words.js +1 -1
- package/package.json +3 -3
- package/dist/chunks/SiteEditorProvider-E53DXAEH.js +0 -1
- package/dist/chunks/chunk-LUHOZIHO.js +0 -337
- /package/dist/chunks/{chunk-454ZVMST.js → chunk-DSTQVJ5G.js} +0 -0
- /package/dist/chunks/{chunk-C2YDFOCO.js.LEGAL.txt → chunk-ITZRFN64.js.LEGAL.txt} +0 -0
- /package/dist/chunks/{chunk-LUHOZIHO.js.LEGAL.txt → chunk-MM7TBACQ.js.LEGAL.txt} +0 -0
- /package/dist/chunks/{chunk-IHBF4FM5.js → chunk-XPDSLIZ3.js} +0 -0
- /package/dist/chunks/{chunk-LN6M3FAM.js → chunk-YMJRKOEC.js} +0 -0
|
@@ -1,337 +0,0 @@
|
|
|
1
|
-
import{$ as sf,D as Ak,E as Fk,F as of,G as Bk,H as Wk,I as Or,J as $k,K as zk,L as Uk,M as nt,N as tf,O as ko,P as fe,R as rf,S as Er,T as af,X as jk,Y as nf,Z as _r,_ as Gk,a as Xo,b as Ys,ba as tP,c as jd,d as yn,e as Xs,f as ik,fa as uP,g as Sn,h as Gd,ha as mP,ia as Nf,ja as $T,ka as zT,r as tl,t as _k}from"./chunk-UQDOJWLM.js";import{a as yP,d as Sf,e as st,f as bf,g as wf,h as Pf,l as Kx}from"./chunk-LN6M3FAM.js";import{$ as ix,$a as Qs,$b as Zk,$c as kv,$d as Br,$f as On,A as kC,Aa as ZC,Ab as hx,Ac as lv,Ad as Cx,Ae as gf,Ag as tT,Aj as Hx,Ak as Df,B as vC,Ba as px,Bb as el,Bc as iv,Bd as $v,Be as cP,Bg as Lx,Bj as fl,Bk as Ux,C as PC,Ca as JC,Cb as zt,Cc as dv,Cd as zv,Ce as pP,Cg as dr,Ck as NT,D as rt,Da as QC,Db as wn,Dc as fv,Dd as Uv,Dg as Rx,Dk as ua,E as TC,Ea as ek,Eb as ol,Ec as jt,Ed as jv,Ee as kt,Eg as Ef,Ej as _n,Ek as MT,F as OC,Fa as ok,Fc as Ue,Fd as Gv,Fg as rT,Fk as HT,G as EC,Ga as tk,Gc as Ar,Gd as kx,Ge as je,Gf as HP,Gg as aT,Gj as PT,Gk as WT,H as _C,Ha as rk,Hb as Ix,Hc as Sx,Hd as Kv,He as vt,Hf as WP,Hg as nT,I as AC,Ia as vr,Ib as na,Ic as cv,Id as vx,Ie as Oe,If as $P,Ig as sT,Ik as UT,J as FC,Ja as ak,Jb as ef,Jc as pv,Jd as qv,Je as IP,Jf as zP,Jg as lT,Jk as jx,K as BC,Kb as Tk,Kc as uv,Kd as Vv,Kf as Ax,La as nk,Lb as Ok,Lc as mf,Ld as Yv,Lf as UP,Lk as jT,M as LC,Ma as Kd,Mb as Ek,Mc as al,Md as Gt,Mf as jP,Mg as iT,Mk as GT,N as RC,Na as Zs,Nb as lf,Nc as mv,Nd as Xv,Ne as Px,Nf as Fx,Ng as dT,Nk as KT,O as DC,Oa as qd,Ob as Vk,Oc as xv,Od as da,Oj as TT,Ok as qT,P as Md,Pa as dk,Pb as df,Pc as hv,Pj as Wx,Pk as VT,Q as NC,Qb as yx,Qc as xf,Qd as Zv,Qe as il,Qj as OT,Qk as YT,R as MC,Rb as ff,Rc as Iv,Rd as Pn,Rf as ir,Ri as pa,Rj as ET,Sc as gv,Ta as fk,Tc as bx,Td as lr,Tf as Tn,Ti as fr,Tj as Rf,Ua as ck,Uc as yv,Ud as Jv,Ue as gP,Uj as An,Va as Js,Vc as vn,Vd as ll,Ve as Tx,Vf as GP,Vh as hT,Vj as Fn,W as lx,Wb as Cn,Wd as Qv,We as SP,Wf as KP,Wg as _f,Wh as IT,Wj as cl,Xa as bn,Xc as Sv,Xd as fa,Xe as kf,Xf as Tf,Xj as Bn,Y as qs,Ya as pk,Yc as bv,Yd as eP,Yf as Lr,Yj as _T,Z as Hd,Za as Vd,Zb as Yk,Zc as wv,Ze as OP,Zf as Of,_ as Ao,_a as uk,_b as Xk,_c as Cv,_d as hf,_i as Bf,a as _o,aa as hn,ab as mk,ac as rl,ad as sa,ae as oP,af as Ex,ah as fT,aj as ST,b as un,ba as HC,bb as xk,bd as vv,ca as WC,cb as mx,cd as wx,ch as cT,d as sC,da as $C,db as hk,dd as Pv,dk as AT,e as rx,ea as zC,eb as Yd,ed as Tv,ei as gT,ek as FT,f as lC,fa as UC,fb as Ik,fd as Ov,ff as EP,fi as yT,fl as Gx,g as c,ga as dx,gb as xx,gd as Ev,gf as _P,h as $t,hd as _v,hf as vf,i as xn,ia as jC,ib as gk,id as Fr,ie as rP,if as AP,ig as Rr,j as Gs,ja as Wd,jb as yk,jd as nl,jf as FP,jg as qP,k as No,kd as la,kg as VP,l as Ks,lb as Xd,lc as kn,ld as Av,le as aP,lg as YP,lk as $x,mb as Sk,mc as Ut,me as nP,mh as Dx,mj as bT,n as xC,nb as bk,nc as Jk,nd as ia,ne as sP,nh as Af,nk as BT,nl as XT,o as hC,ob as wk,oc as Qk,od as sl,oh as ca,ok as LT,ol as ZT,p as IC,pb as Ck,pc as ev,pd as Fv,ph as Ff,pj as wT,pk as RT,pl as Mf,q as gC,qb as Zd,qc as ov,qd as Bv,qf as BP,qg as XP,qj as Lf,ql as JT,r as yC,rb as kk,rc as tv,rf as _x,rh as pT,rj as Nx,rk as DT,s as SC,sc as cf,sd as Lv,se as Mo,sf as LP,sh as uT,sj as CT,sl as Ln,t as bC,tc as pf,td as Rv,te as ao,tf as RP,th as mT,tj as kT,tk as zx,tl as Hf,u as wC,ub as vk,uc as rv,ud as Dv,uf as DP,ug as ZP,uh as xT,uj as Mx,v as Nd,vb as Pr,ve as If,vf as NP,vg as JP,w as kr,wb as Jd,wc as av,wd as Nv,we as lP,wg as QP,wj as En,xa as VC,xb as Qd,xc as nv,xd as Mv,xe as iP,xf as MP,xg as eT,xj as vT,y as sx,ya as YC,yb as Pk,yc as sv,yd as Hv,ye as dP,yg as oT,z as CC,za as XC,zb as ho,zc as uf,zd as Wv,ze as fP,zg as Bx,zk as pl}from"./chunk-5W6M2F4B.js";import{a as uC,b as Dd,c as mC,g as Kk,h as gx,i as qk}from"./chunk-DO5FAI7I.js";import{$ as Ib,$a as Mb,$c as R,$e as Jm,$g as cC,A as io,Ab as Jb,Ad as pw,B as on,Be as Xm,Bf as ox,Ca as ye,Cb as Ws,Cd as Vm,Ce as ww,Ci as vo,D as Ns,Db as Qb,E as id,Ed as uw,Ee as Zm,F as Nt,Fd as bd,G as tn,Ga as ot,Gg as Jw,Gi as dl,H as ze,Ha as bt,Hb as gd,Hd as tt,Hg as Qw,I as Xe,Ia as Em,Ic as nw,Id as Do,Ie as kd,If as Dw,Ig as eC,J as rn,Ja as _m,Jd as ro,Je as vd,Jg as oC,K as dd,Kc as Um,Kd as Ht,Ke as Cw,Kh as ux,L as fb,La as Am,Ld as nr,Le as Pd,Lf as sr,Lh as In,M as cb,Ma as Fm,Mb as ew,Md as Ct,Me as Td,Mg as tC,Mh as sk,Nd as dn,Ne as kw,Nh as at,O as pb,Od as mw,Oe as vw,Oh as Yo,P as fd,Pd as fn,Pe as Od,Pg as rC,Ph as Ud,Q as ub,Qa as Bm,Qd as xw,Qe as Ed,Qg as aC,Qh as lk,R as ea,Ra as _b,Rb as yd,Rc as sw,Re as aa,Rf as Nw,Rh as gn,S as mb,Sa as Ab,Se as Pw,Sg as nC,T as xb,Ta as Ke,U as Ms,Ua as Fb,Ub as ow,Ud as ra,Ug as iC,Uh as Lk,V as Tm,Va as xd,Vb as tw,Vd as hw,Vg as dC,W as Ce,Wa as Bb,Wd as Iw,We as Tw,X as q,Xa as Lb,Xb as rw,Xd as cn,Xf as Mw,Xg as Cr,Y as hb,Ya as Rb,Yc as U,Yd as zs,Yf as Hw,Yh as Rk,Za as Db,Zb as Wm,Zc as oe,Zd as Us,Ze as Wt,Zf as Ww,Zg as fC,_ as cd,_a as Nb,_c as jm,_d as Ym,_e as js,_f as $w,_g as ax,a as en,ab as Hb,ad as Co,ae as gw,af as Qm,ah as nx,b as xo,ba as gb,bb as Wb,bd as rr,be as yw,bf as Ow,bh as Rd,c as lo,ca as pd,cb as hd,cd as lw,ce as Sw,cf as Ew,cg as zw,d as or,da as yb,db as Id,dd as H,df as _d,dg as Uw,dh as pC,di as Dk,ea as Sb,eb as $b,ed as Sd,ee as bw,ef as _w,ei as Tr,f as Vo,fa as Om,fb as zb,fd as Ro,fg as jw,g as Ds,ga as bb,gc as $m,gd as iw,ge as wd,gg as Gw,gi as Nk,h as tb,ha as wb,hb as Ub,hd as wt,hf as Aw,hg as Bd,hi as Mk,i as rb,ia as Cb,ib as jb,id as Mt,ie as Cd,if as Ad,ig as Kw,ii as Hk,j as ab,jb as Lm,jd as Gm,jf as Fw,jg as Ld,k as nb,kb as Gb,kd as br,kf as ex,kg as tx,la as kb,lb as Kb,ld as ar,lf as Bw,ma as vb,mb as Rm,md as dw,mf as Lw,na as Pb,nb as nn,nf as Fd,ng as qw,o as sb,od as Be,of as pn,og as Vw,pa as Tb,pb as oa,pd as ta,pf as mn,pi as bP,qb as Dm,qd as $s,qf as wr,qi as wP,ra as Ob,rb as Nm,rd as sn,rg as Yw,rh as fx,ri as Cf,s as lb,sa as ud,sb as Mm,sd as fw,sg as Xw,sh as $d,si as CP,ta as Eb,tb as qb,td as Km,th as GC,ti as Ox,u as Me,ua as md,ub as Vb,ud as ln,uf as Rw,uh as cx,ui as kP,v as ib,vb as Yb,vc as zm,vd as qm,vg as Zw,vh as KC,w as ld,wb as Hm,wi as vP,x as db,xb as Xb,xc as aw,xh as zd,xi as PP,ya as Hs,yb as tr,yh as qC,yi as TP,z as Te,za as an,zb as Zb,zd as cw,zh as Vs}from"./chunk-I4IY2GTB.js";import{a as z,b as eo}from"./chunk-IHBF4FM5.js";import{c as xP,d as hP,e as yf}from"./chunk-454ZVMST.js";import{jsx as qx,Fragment as u6,jsxs as m6}from"react/jsx-runtime";import{createContext as x6,useContext as h6}from"react";var I6={mirrorHostStyles:!0,css:null,fontHrefs:[]},QT=x6(I6);function Jne({value:e,children:o}){return qx(QT.Provider,{value:e,children:o})}function ul(){return h6(QT)}function e0(){let{css:e,fontHrefs:o}=ul();return m6(u6,{children:[o.map(t=>qx("link",{rel:"stylesheet",href:t},t)),e?qx("style",{"data-sf-canvas-css":"",children:e}):null]})}import{jsx as g6}from"react/jsx-runtime";import{createContext as y6,useContext as S6}from"react";var o0=y6(void 0);function tse({metadata:e,children:o}){return g6(o0.Provider,{value:e,children:o})}var t0=()=>S6(o0);import{jsx as uo,Fragment as e6,jsxs as od}from"react/jsx-runtime";import{useCallback as _s,useEffect as Zt,useRef as kne,useState as X4}from"react";import{SettingsSwitch as vne}from"efficient-easel/panel";import{PagesIcon as Pne,StylesIcon as Tne}from"efficient-easel/rail";import{PaletteIcon as One}from"efficient-shell/icons/efficient";import{Subtree as Ene,TreeRow as o6}from"efficient-easel/tree";import{useEasel as t6}from"efficient-easel/easel";import{toItemSelector as _ne}from"efficient-easel/node-ops";import{useEaselStrings as r6}from"efficient-easel/strings";import{createContext as b6,useContext as w6}from"react";var Vx=b6(!1),nse=()=>w6(Vx);import{useMemo as C6,useRef as k6}from"react";import{useEaselApi as v6}from"efficient-easel/easel";import{useSectionOps as P6}from"efficient-easel/screen/lib/document/use-section-ops";function Wf(){let e=v6(),o=P6(),t=k6(o);return t.current=o,C6(()=>({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 q6}from"efficient-easel/draw";import{insertAt as V6,moveTo as Y6,removeAt as X6}from"efficient-easel/fields";import{useSyncExternalStore as W6}from"react";import{isNodeList as r0}from"efficient-easel/data";var a0="Flex";function Rn(e,o){return Wt(e)?typeof e?.[Vo]=="string"?Yx(o?.[Vo]):"":Yx(e?.[Vo])}var Yx=e=>typeof e=="string"?e.trim():"",T6=e=>e.type===io&&Array.isArray(e.props?.[Zm])&&e.props[Zm].some(o=>Yx(o?.[Vo])!==""),O6=new Intl.NumberFormat("en-US");function E6(e){return/^\d+$/.test(e)?O6.format(Number(e)):e}function xse(e,o){let t=o?o.find(r=>r.key===e)?.value:lb(Ds).find(r=>r.key===e)?.value;return t===void 0?null:E6(t)}var _6={[Vo]:"any"};function Xx(e,o=!1){let t=e.props;if(!t)return{node:e,names:!1};let r=e.type==="Text"&&(Rn(t)!==""||o&&Rn(t,_6)!==""),a=o||T6(e),n=Xe(e,l=>ze(l,i=>{let d=Xx(i,a);return d.names&&(r=!0),d.node})).props;if(e.type!==a0)return{node:n===t?e:{...e,props:n},names:r};let s=Me(n);if(r&&!s&&(n={...n,[lo]:Ds}),!r&&s===Ds){let{[lo]:l,...i}=n;n=i}return{node:n===t?e:{...e,props:n},names:!1}}function n0(e,o,t){for(let r of e){if(r?.props?.id===o)return t;for(let a of tn(r??{})){let n=n0(a,o,r.type===a0?r:t);if(n!==void 0)return n}}}function hse(e,o){if(!r0(e))return!0;let t=n0(e,o,null);if(t===void 0)return!0;if(t===null)return!1;let r=Me(t.props);return!r||r===Ds}function s0(e){let o=e?.content;if(!r0(o))return e;let t=o.map(r=>Xx(r));return t.every((r,a)=>r.node===o[a])?e:{...e,content:t.map(r=>r.node)}}function l0(e){return Xx(e).node}import{decodePartId as $6}from"efficient-easel/draw";function Dn(e,o){let t=nv(e);return t?.control==="textList"?o.rowKey===(t.itemKey??"text")?LT(t,o.index):null:sv(e)?.[o.rowKey]??null}function $f(e,o,t){let r=e.node.props,{key:a,row:n}=Ut(e.propKey),s=n?iv(r,a,n,e.kind,o):av(r,a,e.kind,o);return s?(t(e.zone,e.index,{...e.node,props:s}),!0):!1}import{readHidable as f0}from"efficient-easel/draw";import{parseOption as A6}from"efficient-shell/format";var Zx=e=>String(e+1).padStart(2,"0"),F6=[{label:"01 \xB7",value:"two-digit"},{label:"1.",value:"plain"}],Jx="two-digit",i0=e=>A6(F6,Jx,e),zf=(e,o)=>e==="plain"?`${o+1}.`:Zx(o);var oh="Contents",Qx="Flex",d0="Text",B6="numberForm",L6="_contentsEntries",R6="_kickerNumber",c0="data-sf-kicker-number",D6=e=>f0(e).text.trim(),p0=e=>fa(e?.anchor),eh=e=>String(e.props?.id??""),N6=e=>!f0(e.props?.text).hidden&&!Rn(e.props)&&!Wt(e.props),ml=e=>tn(e);function u0(e){for(let o of ml(e))for(let t of o){if(lr(t.props??{}))continue;if(t.type===d0&&N6(t))return t;if(t.type===d0)continue;let r=u0(t);if(r)return r}}function m0(e){return ml(e).some(o=>o.some(t=>t&&!lr(t.props??{})&&(t.type===oh||m0(t))))}var x0=e=>e.type===Qx&&Tn(Qx,e.props?.direction)==="row";function h0(e){return ml(e).some(o=>o.some(t=>t&&!lr(t.props??{})&&(t.type===oh||!x0(t)&&h0(t))))}function M6(e){let o=[],t=(r,a)=>{for(let n of r){if(!n||lr(n.props??{}))continue;if(n.type===oh){a.open={contents:n,sections:a.waiting??[]},a.waiting=null,o.push(a.open);continue}if(x0(n)&&h0(n)){let l={inRow:!0,open:null,waiting:[]};for(let i of ml(n))t(i,l);a.inRow||(a.open=null);continue}let s=a.open?.sections??a.waiting;if(n.type===Qx&&p0(n.props)&&s&&!m0(n)){s.push({box:n,kicker:u0(n)});continue}for(let l of ml(n))t(l,a)}};return t(e,{inRow:!1,open:null,waiting:null}),o}function H6(e){return e.map(o=>({label:o.kicker?an(D6(o.kicker.props?.text)):"",anchor:p0(o.box.props)}))}function th(e){let o=e?.length?M6(e):[];if(!o.length)return null;let t=new Map,r=new Map;for(let a of o){let n=eh(a.contents);n&&t.set(n,H6(a.sections));let s=i0(a.contents.props?.[B6]);a.sections.forEach((l,i)=>{let d=l.kicker?eh(l.kicker):"";d&&r.set(d,zf(s,i))})}return{entries:t,numbers:r}}var Rse=e=>e.endsWith(".")?`${e} `:`${e} \xB7 `;function I0(e){let o=e;if(!o?.content?.length)return e;let t=th(o.content);if(!t)return e;let{entries:r,numbers:a}=t,n=s=>{let l=Xe(s,h=>ze(h,n)),i=l.props??{},d=l!==s,f=eh(s),m=f?r.get(f):void 0;m&&(i={...i,[L6]:m},d=!0);let u=f?a.get(f):void 0;return u&&(i={...i,[R6]:u},d=!0),d?{...s,props:i}:s};return{...o,content:o.content.map(n)}}var z6=`[${c0}]`,U6=["bold","italic","underline","strike","link","sup","sub"],j6=["bullet","number"];function nh(e,o){return e?[...U6,...o?j6:[]]:[]}function g0(e,o){let t=$6(e);if(!t?.propKey)return null;let{nodeId:r,propKey:a}=t,n=o.getItemById(r),s=o.getSelectorForId(r);if(!n||!s)return null;let{key:l,row:i}=Ut(a),d=o.components[n.type]?.fields?.[l],f=i?Dn(d,i):d,m=cf(f);if(!m)return null;let u=n.props??{};if(hT(u)!==null||!i&&_d(n.type,u,l)||n.type==="Text"&&l==="text"&&Rn(u)||i&&!(Array.isArray(u[l])&&i.index<u[l].length))return null;let h=i?uf(u[l],i):u[l];return{node:n,selector:s,propKey:a,kind:m,stored:h,offPage:Bf(f),panelOnly:tv(f)}}function Uf(e,o){let t=g0(e,o);if(!t)return null;let{text:r,hidden:a}=pa(t.stored);if(!gv({offPage:t.offPage,hidden:!!a,panelOnly:t.panelOnly}))return null;let n=pf(t.kind);return{partId:e,value:r,rules:ud,multiline:n,skip:z6,offered:nh(t.kind!=="plainText",n),write:s=>{let l=g0(e,o);l&&$f({node:l.node,propKey:l.propKey,kind:l.kind,zone:l.selector.zone,index:l.selector.index},s,o.replace)}}}function sh(e,o,t){return e?.isConnected&&e.getAttribute(Ue)===t?e:o?.querySelector(`[${Ue}="${jf(t)}"]`)??null}function jf(e){return e.replace(/["\\]/g,"\\$&")}function y0(e){let o=e.activeElement;return o?o.tagName==="IFRAME"||!!o.closest(".es-canvas"):!1}var rh=null,ah=new Set;function G6(){return rh}function lh(e){if(e!==rh){rh=e;for(let o of ah)o()}}function K6(e){return ah.add(e),()=>{ah.delete(e)}}function S0(){return W6(K6,G6,()=>null)}function b0(e,o){if(e.outer)return null;let t=o.getItemById(e.ownerId);if(!t)return null;let r=kw(t.type);return!r||Me(t.props)?null:{node:t,rows:r}}function Z6(e,o){let t=b0(e,o),r=o.getItemById(e.nodeId);if(!t||!r)return null;let a=_w(r.type,r.props,e.key);if(!a)return null;let n=t.node.props[t.rows];return!Array.isArray(n)||e.index<0||e.index>=n.length?null:q6(e.ownerId,kn(t.rows,{index:e.index,rowKey:a}))}function Gf(e,o){let t=Z6(e,o);return t?Uf(t,o):null}function w0(e,o){return Gf(e,o)?.value}function C0(e,o){let t=Gf(e,o);return t?(t.write(e.text),!0):!1}function k0(e,o){let t=b0(e,o),r=t&&o.getSelectorForId(e.ownerId);if(!t||!r)return!1;let a=t.node.props,n=a[t.rows],s=e.index;if(!Array.isArray(n)||s<0||s>=n.length)return!1;let l;switch(e.action){case"addAfter":{let i=o.components[t.node.type]?.fields?.[t.rows];l=V6(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=Y6(n,s,i);break}case"delete":l=X6(n,s);break;default:return!1}return o.replace(r.zone,r.index,{...t.node,props:{...a,[t.rows]:l}}),!0}import{jsx as Pe,Fragment as MJ,jsxs as Wu}from"react/jsx-runtime";import{Fragment as HJ,useEffect as yH,useMemo as SH,useRef as WJ,useState as za}from"react";import{useScreenDocument as vH}from"efficient-easel/screen/components/ScreenDocumentContext";import{UiIcon as Wy}from"efficient-easel/draw/client";import $J from"efficient-easel/screen/components/SidePanelHead";import{InspectorIconButton as zJ}from"efficient-easel/chrome";import{Input as UJ,LoadingSpinner as jJ,PopupMenu as GJ,PopupMenuItem as bH,toast as wH}from"efficient-shell/ui";import{LayersTree as KJ,TreeGroupLabel as qJ,TreeRow as CH,TreeRowAction as $u}from"efficient-easel/tree";import{AddIcon as VJ,DuplicateIcon as YJ,PageIcon as XJ,SettingsIcon as ZJ}from"efficient-easel/icons";import{PagesIcon as JJ}from"efficient-easel/rail";import{useEaselHost as QJ}from"efficient-easel/screen/lib/host";import{useEaselSession as $y}from"efficient-easel/screen/lib/session-context";import{useCallback as Kf,useEffect as J6,useSyncExternalStore as Q6}from"react";import{useScreenDocument as O0}from"efficient-easel/screen/components/ScreenDocumentContext";var v0=new WeakMap;function xl(e){let o=v0.get(e);return o||(o={rows:null,loading:null,listeners:new Set},v0.set(e,o)),o}function ih(e,o){e.rows=o;for(let t of e.listeners)t()}var qf=new Set;function Vf(e,o){o?qf.add(e):qf.delete(e)}function P0(e){let o=xl(e),t=e.listPages().then(r=>ih(o,qf.size?r.filter(a=>!qf.has(a.id)):r),()=>ih(o,[])).finally(()=>{o.loading===t&&(o.loading=null)});return o.loading=t,t}var T0=()=>null,e3=()=>()=>{};function hl(){let{adapter:e,ready:o}=O0(),t=Kf(l=>{let{listeners:i}=xl(e);return i.add(l),()=>i.delete(l)},[e]),r=Kf(()=>xl(e).rows,[e]),a=Q6(o?t:e3,o?r:T0,T0);J6(()=>{if(!o)return;let l=xl(e);l.rows===null&&!l.loading&&P0(e)},[e,o]);let n=Kf(()=>o?P0(e):Promise.resolve(),[e,o]),s=Kf(l=>ih(xl(e),l),[e]);return{rows:a,reload:n,setRows:s,getRows:r}}function o3(e,o){return e?.find(t=>t.slug===o)?.label?.trim()||`/${o}`}function E0(){let{currentSlug:e}=O0(),{rows:o}=hl();return o3(o,e)}import{canDuplicatePage as eQ,DuplicatePageDialog as oQ}from"efficient-easel/page-copy";import{jsx as Oo,jsxs as cH}from"react/jsx-runtime";import{useEffect as bJ,useId as wJ,useMemo as CJ,useRef as kJ,useState as Ny}from"react";import{useScreenDocument as vJ}from"efficient-easel/screen/components/ScreenDocumentContext";import{useEaselSession as PJ}from"efficient-easel/screen/lib/session-context";import{uniqueSlug as pH}from"efficient-easel/page-copy";import{AddIcon as TJ}from"efficient-easel/icons";import{Button as OJ,Dialog as EJ,EmptyState as _J,LoadingSpinner as AJ,Paragraph as FJ,SidebarLayout as BJ,SidebarNavItem as My,Title as LJ,toast as uH}from"efficient-shell/ui";import{jsx as Ot,jsxs as OR}from"react/jsx-runtime";import{useEffect as bq,useState as Ag}from"react";import{CanvasFrame as wq}from"efficient-easel/easel";import{Button as Cq,Card as kq,FitFrame as vq,Text as Pq}from"efficient-shell/ui";import{jsx as L0,Fragment as u3,jsxs as m3}from"react/jsx-runtime";import{useEffect as R0,useLayoutEffect as x3}from"react";var Yf="data-theme",_0="light";function t3(e){return e.getAttribute(Yf)===_0?"light":"dark"}function r3(e,o){return t3(e)===o?!1:(o==="light"?e.setAttribute(Yf,_0):e.removeAttribute(Yf),!0)}function a3(e){return Kx(e).getItem(ox)}function fle(e,o){Kx(e).setItem(ox,o)}function n3(e,o,t=new Date().getHours()){return Dw({mode:o.mode,override:a3(e),switchShown:o.switchShown,hour:t})}function A0(e,o){let t=e.documentElement;if(!t)return()=>{};let r=()=>r3(t,n3(e,o));r();let a=e.defaultView?.MutationObserver;if(!a)return()=>{};let n=new a(r);return n.observe(t,{attributes:!0,attributeFilter:[Yf]}),()=>n.disconnect()}var s3="style";function l3(e,o){let t=Ld(o),r=!1;for(let a of Kw){let n=t[a]??"";e.style.getPropertyValue(a)!==n&&(n?e.style.setProperty(a,n):e.style.removeProperty(a),r=!0)}return r}function F0(e,o){let t=e.body;if(!t)return()=>{};let r=()=>l3(t,o);r();let a=e.defaultView?.MutationObserver;if(!a)return()=>{};let n=new a(r);return n.observe(t,{attributes:!0,attributeFilter:[s3]}),()=>n.disconnect()}import{VIEW_DESKTOP_MIN as i3,VIEW_TABLET_MIN as d3}from"efficient-easel/screen/lib/content/view-tiers";var cr={fit:"data-fit",fitTablet:"data-fit-tablet",fitPhone:"data-fit-phone",min:"data-fit-min",minTablet:"data-fit-min-tablet",minPhone:"data-fit-min-phone",edge:"data-fit-edge"},Zo=cr,f3=e=>e.flatMap(o=>[`[${o}] p`,`[${o}] li`]).join(","),c3=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(f3([Zo.fit,Zo.fitTablet,Zo.fitPhone]))};
|
|
8
|
-
var CANDIDATES = SELECTOR + "," + SHRINK_BODY;
|
|
9
|
-
var MIN_SCALE = 0.3, MIN_PX = 16, SLACK = 1, PHONE_BELOW = ${tr};
|
|
10
|
-
var TABLET_MIN = ${d3}, DESKTOP_MIN = ${i3};
|
|
11
|
-
|
|
12
|
-
// A block's own answer (lib/content/block-size, the wrapper's attributes):
|
|
13
|
-
// the fit "wrap" | "shrink" | "line" | "ellipsis" and the floor, each with a tablet and a
|
|
14
|
-
// phone twin. From 1100 the desktop's; from the tablet line (800 for a holder
|
|
15
|
-
// in a Box, marked edge; 720 outside one) the tablet's where it has one;
|
|
16
|
-
// under it the phone's, else the tablet's, else the desktop's. With no
|
|
17
|
-
// tablet answer the phone's is read under 800, as before (the edge moves with
|
|
18
|
-
// F1). With none, a heading shrinks and body text wraps, as always.
|
|
19
|
-
// A holder with any tablet attribute takes the three views (its line and 1100)
|
|
20
|
-
// for its fit AND its floor together; one with none keeps the 800 edge.
|
|
21
|
-
var TABLET_ATTRS = [${JSON.stringify(Zo.fitTablet)}, ${JSON.stringify(Zo.minTablet)}];
|
|
22
|
-
function own(el, attr, tabletAttr, phoneAttr) {
|
|
23
|
-
var holder = el.closest("[" + attr + "],[" + tabletAttr + "],[" + phoneAttr + "]");
|
|
24
|
-
if (!holder) return null;
|
|
25
|
-
var w = win.innerWidth, d = holder.getAttribute(attr);
|
|
26
|
-
if (w >= DESKTOP_MIN) return d;
|
|
27
|
-
var t = holder.getAttribute(tabletAttr), p = holder.getAttribute(phoneAttr);
|
|
28
|
-
if (w < (holder.hasAttribute(${JSON.stringify(Zo.edge)}) ? PHONE_BELOW : TABLET_MIN)) return p || t || d;
|
|
29
|
-
if (holder.hasAttribute(TABLET_ATTRS[0]) || holder.hasAttribute(TABLET_ATTRS[1])) return t || d;
|
|
30
|
-
return (w < PHONE_BELOW && p) || d;
|
|
31
|
-
}
|
|
32
|
-
function modeOf(el) {
|
|
33
|
-
var mode = own(el, ${JSON.stringify(Zo.fit)}, ${JSON.stringify(Zo.fitTablet)}, ${JSON.stringify(Zo.fitPhone)});
|
|
34
|
-
if (mode === "wrap" || mode === "shrink") return mode;
|
|
35
|
-
// One line and Shorten (stored "ellipsis", which cuts its words with "..."):
|
|
36
|
-
// the block keeps its words at their set size, nothing shrinks.
|
|
37
|
-
if (mode === "line" || mode === "ellipsis") return "wrap";
|
|
38
|
-
return el.matches(SELECTOR) ? "shrink" : "wrap";
|
|
39
|
-
}
|
|
40
|
-
function floorOf(el, set) {
|
|
41
|
-
var raw = own(el, ${JSON.stringify(Zo.min)}, ${JSON.stringify(Zo.minTablet)}, ${JSON.stringify(Zo.minPhone)});
|
|
42
|
-
var min = parseFloat(raw);
|
|
43
|
-
// A Min font size in vw (block-size.ts): a share of the window's width.
|
|
44
|
-
if (/vw$/.test(String(raw))) min = min * win.innerWidth / 100;
|
|
45
|
-
return min >= 0 ? min : Math.max(set * MIN_SCALE, MIN_PX);
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
function measure(el) {
|
|
49
|
-
var widest = 0, current = 0, last = null, split = false, lastBlock = null;
|
|
50
|
-
function blockOf(n) {
|
|
51
|
-
for (var p = n.parentElement; p && p !== el; p = p.parentElement) {
|
|
52
|
-
var d = win.getComputedStyle(p).display;
|
|
53
|
-
if (d.indexOf("inline") !== 0 && d !== "contents") return p;
|
|
54
|
-
}
|
|
55
|
-
return el;
|
|
56
|
-
}
|
|
57
|
-
function close() { if (current > widest) widest = current; current = 0; last = null; }
|
|
58
|
-
var walker = doc.createTreeWalker(el, 5), range = doc.createRange(), node;
|
|
59
|
-
while ((node = walker.nextNode())) {
|
|
60
|
-
if (node.nodeType === 1) {
|
|
61
|
-
if (node.tagName === "BR" || node.tagName === "WBR") close();
|
|
62
|
-
continue;
|
|
63
|
-
}
|
|
64
|
-
var block = blockOf(node);
|
|
65
|
-
if (block !== lastBlock) close();
|
|
66
|
-
lastBlock = block;
|
|
67
|
-
var re = /(\S+)|(\s+)/g, m;
|
|
68
|
-
while ((m = re.exec(node.data))) {
|
|
69
|
-
if (m[2]) { close(); continue; }
|
|
70
|
-
range.setStart(node, m.index);
|
|
71
|
-
range.setEnd(node, m.index + m[0].length);
|
|
72
|
-
var rects = range.getClientRects();
|
|
73
|
-
for (var i = 0; i < rects.length; i++) {
|
|
74
|
-
var r = rects[i];
|
|
75
|
-
if (r.width <= 0) continue;
|
|
76
|
-
current += r.width;
|
|
77
|
-
if (last && r.top > last.top + last.height / 2) split = true;
|
|
78
|
-
last = r;
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
close();
|
|
83
|
-
return { widest: widest, split: split };
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
function lineWidth(el) {
|
|
87
|
-
var cs = win.getComputedStyle(el);
|
|
88
|
-
return el.getBoundingClientRect().width - parseFloat(cs.paddingLeft) - parseFloat(cs.paddingRight)
|
|
89
|
-
- parseFloat(cs.borderLeftWidth) - parseFloat(cs.borderRightWidth);
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
// ⚠️ THE HEADING ELEMENT IS NEVER TOUCHED — no style="", no data-*. This
|
|
93
|
-
// runs before React hydrates, and React 19 in development reports ANY
|
|
94
|
-
// attribute that differs from what it rendered ("a tree hydrated but some
|
|
95
|
-
// attributes didn't match"): first our inline font-size on the hero (which
|
|
96
|
-
// React owns via --heading-size), then, when that moved to a data-sf-fit
|
|
97
|
-
// attribute, the attribute itself. So the fitted size lives only in this
|
|
98
|
-
// script's own stylesheet, in <head>, addressed to each heading by its
|
|
99
|
-
// POSITION (":root>*:nth-child(2)>…"). A position goes stale when the page's
|
|
100
|
-
// structure changes, so the rules are rewritten in the MutationObserver
|
|
101
|
-
// callback, which runs before the next paint. !important so the size also
|
|
102
|
-
// beats a part's own inline size.
|
|
103
|
-
var head = doc.head || doc.documentElement;
|
|
104
|
-
var fitEl = doc.createElement("style");
|
|
105
|
-
fitEl.id = "storefront-fit-words-sizes";
|
|
106
|
-
head.appendChild(fitEl);
|
|
107
|
-
// heading -> [[element, fitted size]]: the heading and each Text part inside
|
|
108
|
-
// it that holds its own size (a span [data-sf-part-styled]), e.g.
|
|
109
|
-
// [[h2, "43.8px"], [span, "43.8px"]]. Sizing the heading alone leaves such
|
|
110
|
-
// a part at its own size, and the word still breaks (card C25, Spec Table).
|
|
111
|
-
var fitted = new Map();
|
|
112
|
-
|
|
113
|
-
function pathOf(el) {
|
|
114
|
-
var parts = [];
|
|
115
|
-
for (var e = el; e && e.parentElement; e = e.parentElement) {
|
|
116
|
-
var i = 1, s = e;
|
|
117
|
-
while ((s = s.previousElementSibling)) i++;
|
|
118
|
-
parts.unshift("*:nth-child(" + i + ")");
|
|
119
|
-
}
|
|
120
|
-
return ":root>" + parts.join(">");
|
|
121
|
-
}
|
|
122
|
-
function writeRules() {
|
|
123
|
-
var css = "";
|
|
124
|
-
fitted.forEach(function (sizes, el) {
|
|
125
|
-
if (!el.isConnected) { fitted.delete(el); return; }
|
|
126
|
-
for (var i = 0; i < sizes.length; i++) css += pathOf(sizes[i][0]) + "{font-size:" + sizes[i][1] + " !important}";
|
|
127
|
-
});
|
|
128
|
-
if (fitEl.textContent !== css) fitEl.textContent = css;
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
function unfit(el) {
|
|
132
|
-
if (fitted.delete(el)) writeRules();
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
function fits(el) {
|
|
136
|
-
var m = measure(el);
|
|
137
|
-
return !m.split && m.widest <= lineWidth(el) + SLACK;
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
function fit(el) {
|
|
141
|
-
unfit(el);
|
|
142
|
-
if (modeOf(el) !== "shrink") return; // the block's own Wrap
|
|
143
|
-
if (lineWidth(el) <= 0) return; // hidden, or not laid out yet
|
|
144
|
-
if (fits(el)) return;
|
|
145
|
-
var set = parseFloat(win.getComputedStyle(el).fontSize);
|
|
146
|
-
if (!set) return;
|
|
147
|
-
var floor = floorOf(el, set);
|
|
148
|
-
if (floor >= set) return;
|
|
149
|
-
function size(px) { return Math.floor(px * 10) / 10 + "px"; }
|
|
150
|
-
// The SEARCH tries sizes on the element's own style and then puts that
|
|
151
|
-
// attribute back byte for byte (or removes it, if it had none), so nothing
|
|
152
|
-
// is left for React to see. A trial in a stylesheet instead restyles the
|
|
153
|
-
// whole page per step: a full pass on the Hartes home took 75–160ms at 4x
|
|
154
|
-
// CPU that way.
|
|
155
|
-
// Every trial scales the heading AND each part inside it that holds its
|
|
156
|
-
// own size, by the same ratio, so a part keeps its proportion to the
|
|
157
|
-
// heading.
|
|
158
|
-
var carriers = [el].concat(Array.prototype.slice.call(el.querySelectorAll("[data-sf-part-styled]")));
|
|
159
|
-
var base = carriers.map(function (c) { return parseFloat(win.getComputedStyle(c).fontSize) || set; });
|
|
160
|
-
var saved = carriers.map(function (c) { return c.hasAttribute("style") ? c.getAttribute("style") : null; });
|
|
161
|
-
function attempt(px) {
|
|
162
|
-
for (var i = 0; i < carriers.length; i++) carriers[i].style.setProperty("font-size", size(base[i] * px / set), "important");
|
|
163
|
-
}
|
|
164
|
-
function done() {
|
|
165
|
-
for (var i = 0; i < carriers.length; i++) {
|
|
166
|
-
if (saved[i] !== null) carriers[i].setAttribute("style", saved[i]); else carriers[i].removeAttribute("style");
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
attempt(floor);
|
|
170
|
-
if (!fits(el)) { done(); return; } // even the floor does not fit: leave it as set
|
|
171
|
-
var lo = floor, hi = set;
|
|
172
|
-
for (var i = 0; i < 8; i++) {
|
|
173
|
-
var mid = (lo + hi) / 2;
|
|
174
|
-
attempt(mid);
|
|
175
|
-
if (fits(el)) lo = mid; else hi = mid;
|
|
176
|
-
}
|
|
177
|
-
done();
|
|
178
|
-
fitted.set(el, carriers.map(function (c, i) { return [c, size(base[i] * lo / set)]; }));
|
|
179
|
-
writeRules();
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
// What each heading measured right after we last fitted it, so the
|
|
183
|
-
// ResizeObserver below can tell a real change (a font swap, a rotate, a
|
|
184
|
-
// container that moved) from the size change our own write just caused.
|
|
185
|
-
var seen = new WeakMap();
|
|
186
|
-
function remember(el) {
|
|
187
|
-
var b = el.getBoundingClientRect();
|
|
188
|
-
seen.set(el, b.width + "x" + b.height);
|
|
189
|
-
}
|
|
190
|
-
function fitAndRemember(el) { fit(el); remember(el); }
|
|
191
|
-
|
|
192
|
-
// ⚠️ A ResizeObserver, NOT fonts.ready or a resize event, and the reason is
|
|
193
|
-
// WHEN it runs: after layout, BEFORE paint. The web font arriving re-wraps a
|
|
194
|
-
// fitted heading, and fonts.ready resolves only after that frame is painted —
|
|
195
|
-
// measured on the Hartes hero: a 42px jump in 2 of 3 loads. A size change
|
|
196
|
-
// reported here is fitted in the same frame, so the broken state is never
|
|
197
|
-
// drawn. It also covers a container that resizes.
|
|
198
|
-
var ro = new win.ResizeObserver(function (entries) {
|
|
199
|
-
for (var i = 0; i < entries.length; i++) {
|
|
200
|
-
var el = entries[i].target;
|
|
201
|
-
var b = el.getBoundingClientRect();
|
|
202
|
-
if (seen.get(el) === b.width + "x" + b.height) continue; // our own write
|
|
203
|
-
fitAndRemember(el);
|
|
204
|
-
}
|
|
205
|
-
});
|
|
206
|
-
// Its own set, not seen: fitAndRemember has written seen by the
|
|
207
|
-
// time watch runs, so a seen test observed no heading at all, and a
|
|
208
|
-
// heading fitted in the fallback face was never fitted again when the web
|
|
209
|
-
// font arrived (hartesmetal.com.au, "FusionForge." with its "." alone).
|
|
210
|
-
var watched = new WeakSet();
|
|
211
|
-
function watch(el) { if (!watched.has(el)) { watched.add(el); ro.observe(el); } }
|
|
212
|
-
|
|
213
|
-
function fitAll() {
|
|
214
|
-
var els = doc.querySelectorAll(CANDIDATES);
|
|
215
|
-
for (var i = 0; i < els.length; i++) {
|
|
216
|
-
if (modeOf(els[i]) === "shrink") { fitAndRemember(els[i]); watch(els[i]); }
|
|
217
|
-
else unfit(els[i]); // Wrap here (a phone value may differ from the desktop's)
|
|
218
|
-
}
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
var queued = 0, all = false, touched = new Set();
|
|
222
|
-
function run() {
|
|
223
|
-
queued = 0;
|
|
224
|
-
if (all) { all = false; touched.clear(); fitAll(); return; }
|
|
225
|
-
var els = Array.from(touched);
|
|
226
|
-
touched.clear();
|
|
227
|
-
for (var i = 0; i < els.length; i++) {
|
|
228
|
-
if (!els[i].isConnected) continue;
|
|
229
|
-
if (modeOf(els[i]) === "shrink") { fitAndRemember(els[i]); watch(els[i]); }
|
|
230
|
-
else unfit(els[i]);
|
|
231
|
-
}
|
|
232
|
-
}
|
|
233
|
-
function schedule() { if (!queued) queued = win.requestAnimationFrame(run); }
|
|
234
|
-
function scheduleAll() { all = true; schedule(); }
|
|
235
|
-
|
|
236
|
-
fitAll();
|
|
237
|
-
// A backstop only: a font that changes widths without changing any
|
|
238
|
-
// heading's box is not seen by the ResizeObserver.
|
|
239
|
-
if (doc.fonts && doc.fonts.ready) doc.fonts.ready.then(scheduleAll, function () {});
|
|
240
|
-
|
|
241
|
-
// …and the viewport WIDTH, which the ResizeObserver cannot stand in for: a
|
|
242
|
-
// heading sized to its own text (fit-content, a flex item) keeps the SAME box
|
|
243
|
-
// when the phone turns to 844, so nothing reports a change and it would stay
|
|
244
|
-
// shrunk. The probe's rotate check caught exactly that.
|
|
245
|
-
var lastWidth = win.innerWidth;
|
|
246
|
-
function onResize() {
|
|
247
|
-
if (win.innerWidth === lastWidth) return; // a phone's toolbar changing HEIGHT is not our business
|
|
248
|
-
lastWidth = win.innerWidth;
|
|
249
|
-
scheduleAll();
|
|
250
|
-
}
|
|
251
|
-
win.addEventListener("resize", onResize);
|
|
252
|
-
|
|
253
|
-
var mo = new win.MutationObserver(function (records) {
|
|
254
|
-
// Positions first: a node added or removed anywhere can shift the
|
|
255
|
-
// nth-child path of a fitted heading, and this callback runs before paint.
|
|
256
|
-
if (fitted.size) {
|
|
257
|
-
for (var q = 0; q < records.length; q++) if (records[q].type === "childList") { writeRules(); break; }
|
|
258
|
-
}
|
|
259
|
-
for (var i = 0; i < records.length; i++) {
|
|
260
|
-
var r = records[i];
|
|
261
|
-
// A block's text fit (Wrap / Shrink / One line) or Min font size changed in the editor:
|
|
262
|
-
// only a data-fit attribute moved, so every heading is measured again.
|
|
263
|
-
if (r.type === "attributes") { scheduleAll(); continue; }
|
|
264
|
-
var target = r.target.nodeType === 1 ? r.target : r.target.parentElement;
|
|
265
|
-
var owner = target && target.closest(CANDIDATES);
|
|
266
|
-
if (owner) touched.add(owner);
|
|
267
|
-
for (var j = 0; j < r.addedNodes.length; j++) {
|
|
268
|
-
var n = r.addedNodes[j];
|
|
269
|
-
if (n.nodeType !== 1) continue;
|
|
270
|
-
if (n.matches(CANDIDATES)) touched.add(n);
|
|
271
|
-
var inner = n.querySelectorAll(CANDIDATES);
|
|
272
|
-
for (var k = 0; k < inner.length; k++) touched.add(inner[k]);
|
|
273
|
-
}
|
|
274
|
-
}
|
|
275
|
-
if (touched.size) schedule();
|
|
276
|
-
});
|
|
277
|
-
mo.observe(doc.body, {
|
|
278
|
-
childList: true,
|
|
279
|
-
subtree: true,
|
|
280
|
-
characterData: true,
|
|
281
|
-
attributes: true,
|
|
282
|
-
attributeFilter: ${JSON.stringify(Object.values(Zo))},
|
|
283
|
-
});
|
|
284
|
-
|
|
285
|
-
doc.__sfFitWords = function stop() {
|
|
286
|
-
win.removeEventListener("resize", onResize);
|
|
287
|
-
ro.disconnect();
|
|
288
|
-
mo.disconnect();
|
|
289
|
-
if (queued) win.cancelAnimationFrame(queued);
|
|
290
|
-
fitted.clear();
|
|
291
|
-
fitEl.remove();
|
|
292
|
-
delete doc.__sfFitWords;
|
|
293
|
-
};
|
|
294
|
-
// For the probe and for debugging: which headings are fitted, at what size,
|
|
295
|
-
// and the sheet that holds it (disable it to read a heading's set size).
|
|
296
|
-
doc.__sfFitWords.fitted = fitted;
|
|
297
|
-
doc.__sfFitWords.sheet = fitEl;
|
|
298
|
-
// …and the two questions a block's own answer changes, for the guard
|
|
299
|
-
// (scripts/test-block-size.tsx §5): which mode an element is in, and its floor.
|
|
300
|
-
doc.__sfFitWords.modeOf = modeOf;
|
|
301
|
-
doc.__sfFitWords.floorOf = floorOf;
|
|
302
|
-
})(document);`,p3="storefront-fit-words";function B0(e){let o=e.createElement("script");return o.id=p3,o.textContent=c3,(e.head??e.documentElement).appendChild(o),()=>{e.__sfFitWords?.(),o.remove()}}var h3=`
|
|
303
|
-
[${Ue}][${Ue}] { cursor: text; }
|
|
304
|
-
`;function Xf({children:e,document:o}){let{theme:t,themeMode:r,themeSwitchShown:a}=vo(),n=sr(t);return R0(()=>{if(o)return A0(o,{mode:r,switchShown:a})},[o,r,a]),R0(()=>{if(o)return F0(o,n)},[o,n]),x3(()=>{if(o)return B0(o)},[o]),m3(u3,{children:[L0(e0,{}),L0("style",{children:h3}),e]})}import{jsx as vL}from"react/jsx-runtime";import{memo as t7}from"react";import{Render as r7}from"efficient-easel/render";import{jsx as Nn}from"react/jsx-runtime";import{createContext as I3,useContext as g3,useMemo as y3}from"react";var dh=I3(null);function S3({children:e}){return Nn(dh.Provider,{value:"first",children:e})}function Jf({children:e}){return Nn(dh.Provider,{value:"below",children:e})}function Il(){return g3(dh)}function fh(){return Il()==="below"?{loading:"lazy"}:{}}function Qf(e){let o=fh();return Nn("img",{...e,...o})}var D0="laterSlideIds",b3=new Set(["Breadcrumb","CategoryBar","Divider","Spacer","Ticker"]);function N0(e){return Cf(e?.filter(o=>!o?.type||!b3.has(o.type)))}function Zf(e,o=[]){if(Array.isArray(e))for(let t of e)Zf(t,o);else if(e&&typeof e=="object"){let{slides:t}=e;if(Array.isArray(t))for(let r of t.slice(1))typeof r?.props?.id=="string"&&o.push(r.props.id);for(let r of Object.values(e))Zf(r,o)}return o}function M0(e,o){let t=o?.type,r=o?.props?.id;return y3(()=>{let a=t?e.components[t]:void 0;if(!t||!a)return e;let n=a.render,s=l=>l.id===r?Nn(S3,{children:Nn(n,{...l})}):Nn(n,{...l});return{...e,components:{...e.components,[t]:{...a,render:s}}}},[e,t,r])}function H0(e){return e.props?Xe(e,o=>{let t=ze(o,H0),r=e.type===qC&&t.every(a=>a.type===$d)?GC(t):t;return r.length!==o.length||r.some((a,n)=>a!==o[n])?r:o}):e}function W0(e){return dd(e,o=>ze(o,H0))}var w3="Flex",$0="ListSearch",z0=["FAQ"],C3="listKey";function U0(e,o){let t={search:e.type===$0,list:z0.includes(String(e.type))};return Xe(e,r=>{for(let a of r){let n=U0(a,o);t.search||=n.search,t.list||=n.list}return r}),e.type===w3&&t.search&&t.list&&String(e.props?.id??"")?(o.add(e),{search:!1,list:!1}):t}function j0(e,o,t){let r=o.has(e)?String(e.props?.id):t,a=Xe(e,n=>ze(n,s=>j0(s,o,r)));return r&&(e.type===$0||z0.includes(String(e.type)))?{...a,props:{...a.props,[C3]:r}}:a}function G0(e){return rn(e,o=>{let t=new Set;for(let r of o)U0(r,t);return t.size?ze(o,r=>j0(r,t,"")):o})}import{isNode as A$,isNodeList as zE}from"efficient-easel/data";import{jsx as _e,Fragment as y$,jsxs as mr}from"react/jsx-runtime";import{jsx as gh}from"react/jsx-runtime";import{Fragment as E3,jsx as _3}from"react/jsx-runtime";import{jsx as ch}from"react/jsx-runtime";import{createContext as P3,Fragment as T3,useContext as O3}from"react";import{jsx as K0,jsxs as k3}from"react/jsx-runtime";import{lazy as v3}from"react";var q0=v3(()=>import("./section-css-style-YWXTU6HK.js"));function V0({css:e,id:o,attr:t}){return K0(q0,{css:e,id:o,attr:t})}var Y0={name:"sectionCustomCss",applies:(e,o,t)=>o.isSection(e)&&!!t&&typeof t.render=="function",panel(e,o,t){e.fields={...e.fields,...t.customCssFields()}},draw(e){e.defaultProps={...e.defaultProps,[Dd]:""};let o=e.render;e.render=t=>{let r=mC(t),a=typeof t.id=="string"?t.id:"";return!r||!a?o(t):k3(_r,{className:"sf-section-css",attrs:{[uC]:a},children:[K0(q0,{css:r,id:a}),o(t)]})}}};var X0=P3(null);function Z0({rootProps:e,children:o}){let t=e&&typeof e=="object"?e:null,r=Ok(t),a=ch(T3,{children:o},"page");return ch(X0.Provider,{value:t,children:r?[ch(V0,{css:r,id:Tk,attr:ef},"css"),a]:a})}function J0(){return O3(X0)}function Pt(){return Nd(J0())===wC}function ec({className:e,children:o}){let t=Pt();return _3(E3,{children:o(rt(e,t))})}import{SITE_SIDE as A3}from"efficient-easel/screen/lib/content/length-units";var Q0="sideSpace",gl=A3,ph="none",Vle=[{value:"box",label:"Box"},{value:gl,label:"Site"},{value:ph,label:"None"}],Yle="box",Xle="Box: on small screens the Box keeps its own side space, up to 24 px. Site: it uses the site's Side space, as the site's own sections do. None: from 800 px up the Box runs to the screen's edges; on small screens it keeps the site's Side space, up to 20 px.";function eO(e){return e===gl||e===ph?e:"box"}function Zle(e){return e===gl||e===ph?e:void 0}import{parseOption as xh}from"efficient-shell/format";var oc="standard",aO=[{label:"Standard",value:"standard"},{label:"Editorial",value:"editorial"},{label:"Simple",value:"simple"},{label:"Statement",value:"statement"},{label:"Natural",value:"natural"},{label:"Essay",value:"essay"}],mh=["numStyle","logoSrc","logoAlt","linkText","linkHref","_gLogo"],uh=[...mh,"description"],oO={standard:["eyebrowLook"],editorial:[...mh,"eyebrowLook"],simple:uh,statement:uh,natural:mh,essay:uh},tO=["gap-5","gap-3"],rO=["text-[length:var(--size-body,16px)]","text-[15px]"];function oie(e){return xh(tO,tO[0],e)}function tie(e){return xh(rO,rO[0],e)}function nO(e){return xh(aO,oc,e)}function rie(e){let o=aO.map(r=>r.value),t=[...new Set(Object.values(oO).flat())];return tt(e,t.map(r=>[[r],bd("headStyle",o,oc,o.filter(a=>!oO[a].includes(r)))]))}import{readHidable as F3,VIEW_TIERS as B3,viewKeyAt as L3}from"efficient-easel/draw";var ma={direction:"row",share:"content",align:"center"},xa={top:14,bottom:14,topPhone:12,bottomPhone:12},tc={wrap:"nowrap",loop:"scroll",sectionAccent:cC,gap:60,gapPhone:32,separator:"dot",sectionBorder:{top:1,bottom:1}},sO={gap:120,gapPhone:64},rc={...Ro,sizeToken:{step:"label",px:14,pxPhone:12},letterSpacing:.25,lineHeight:1.5},lO={textStyle:"heading-3",letterSpacing:.005,case:"upper",lineHeight:1},yl={top:24,bottom:24,topPhone:16,bottomPhone:16},ha={top:16,bottom:16,topPhone:12,bottomPhone:12},Sl={justify:"between",wrap:"wrap",gap:32,separator:"none"},bl={...Ro,letterSpacing:.1,lineHeight:1.5};var ac={top:24,bottom:24,topPhone:24,bottomPhone:24},nc={top:72,bottom:72,topPhone:72,bottomPhone:72},Mn={top:100,bottom:100,topPhone:60,bottomPhone:60},sc={top:120,bottom:120,topPhone:70,bottomPhone:70},R3={top:24,bottom:24,topPhone:24,bottomPhone:24},D3=40,lc={top:120,bottom:120,topTablet:80,bottomTablet:80,topPhone:80,bottomPhone:80},N3={top:24,bottom:24,topPhone:24,bottomPhone:24},ic={top:24,bottom:24,topPhone:24,bottomPhone:24},M3={top:84,bottom:84,topPhone:84,bottomPhone:84},dc={top:48,bottom:48,topPhone:48,bottomPhone:48},fc={top:80,bottom:80,topPhone:60,bottomPhone:60},cc={top:100,bottom:60,topPhone:60,bottomPhone:40},pc={top:60,bottom:60,topPhone:40,bottomPhone:40},uc={top:80,bottom:80,topTablet:60,bottomTablet:60,topPhone:60,bottomPhone:60},mc={top:76,bottom:76,topPhone:76,bottomPhone:76},xc={top:76,bottom:76,topPhone:76,bottomPhone:76},Cl={top:80,bottom:40,topPhone:60,bottomPhone:32},kl={top:76,bottom:76,topPhone:76,bottomPhone:76},hc={top:72,bottom:72,topPhone:72,bottomPhone:72},Ic={top:40,bottom:64,topPhone:24,bottomPhone:36},gc={top:120,bottom:120,topPhone:80,bottomPhone:80,topTablet:80,bottomTablet:80},yc={top:48,bottom:48,topPhone:48,bottomPhone:48},vl=e=>{let o=ye(e.bandPadding)??D3;return{top:o,bottom:o,topPhone:o,bottomPhone:o}},iO=(e,o,t)=>({desktop:e,tablet:o,mobile:t}),hh=e=>fn(e.headPlacement)==="own-box",Le=(e,o)=>({top:iO(e.top,o?.top??e.topTablet??e.top,e.topPhone),bottom:iO(e.bottom,o?.bottom??e.bottomTablet??e.bottom,e.bottomPhone)}),dO=e=>({top:e.topPhone,bottom:e.bottomPhone}),wl=e=>o=>hh(o)?{top:0,bottom:e.bottom}:e,H3=(e,o)=>{let t=F3(e[o]);return t.hidden?!1:!!t.text||e.editor?.isEditing===!0},Sc={Banner:{frame:()=>Le(ac)},Cards:{frame:wl(Le(nc))},Chart:{frame:()=>Le(kl)},ContactLocations:{frame:()=>Le(Mn,dO(Mn))},Countdown:{frame:()=>Le(dc)},DocBody:{frame:()=>Le(fc)},DocMasthead:{frame:()=>Le(cc)},DocMetaCards:{frame:()=>Le(pc)},FAQ:{frame:e=>{let o=hh(e)||!["num","title","linkText"].some(r=>H3(e,r)),t=Le(sc);return o?{top:0,bottom:t.bottom}:t},edge:!0},FeaturedCover:{frame:()=>Le(uc)},Grid:{frame:()=>Le(R3)},Integrations:{frame:()=>Le(mc)},KeyFeatures:{frame:()=>Le(xc)},Logos:{frame:e=>hh(e)?0:Le(vl(e))},LongRead:{frame:wl(Le(lc))},Masthead:{frame:()=>Le(Cl,dO(Cl))},Mockup:{frame:()=>Le(kl)},OrderSummary:{frame:()=>Le(N3)},PaymentBadges:{frame:()=>Le(ic)},Prose:{frame:wl(Le(hc))},SectionHeader:{frame:e=>{let o=Le(Ic);return nO(e.headStyle)==="standard"?o:{top:o.top,bottom:0}},edge:!0},Series:{frame:wl(Le(gc))},Stats:{frame:()=>Le(yc)},Testimonials:{frame:wl(Le(M3))},Ticker:{frame:()=>Le(xa),edge:!0}};function xie(e,o,t){let r=z(Sc,e)??t;return r?na({values:el(o,ho,!0),frame:r.frame(o),drawsFrame:!0,edge:r.edge},!0).root:null}var fO=(e,o)=>typeof e=="object"&&"top"in e?e[o]:e;function W3(e,o){let t={...e};for(let r of B3)delete t[L3(o,r)];return t}function hie(e,o,t,r){let a=z(Sc,e)??t;if(!a)return{first:null,last:null};let n=a.frame(o),s=el(o,ho,!0),l=(i,d)=>na({values:W3(s,i),frame:d,drawsFrame:!0,edge:a.edge},!0).root;return{first:l("bottom",{top:fO(n,"top"),bottom:r.firstBottom}),last:l("top",{top:r.lastTop,bottom:fO(n,"bottom")})}}var $3=/^(?:[^\s]*:)?p[ytb]-/;function cO(e,o,t){if(!o)return t?{className:e,style:t}:{className:e};let r=e.split(/\s+/).filter(n=>n&&!$3.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 z3}from"efficient-easel/data";var Ih=new Set(["FAQ"]);function Jo(e,o){if(!Ih.has(e))return!1;let t=o.template;return typeof t=="function"?(t.blockCount??0)>0:z3(t)}var mO={ParagraphsA:{top:60,bottom:80},StatsParagraph:{top:120,bottom:120},Timeline:{top:120,bottom:120},Footprint:{top:120,bottom:120},TimelineTrack:{top:120,bottom:120},TitleWithButtons:{top:140,bottom:140},ProcessSteps:{top:120,bottom:120}},xO=new Set(Object.keys(mO));function yh(e,o){return o?.innerPadding??z(mO,e)}var Hn=e=>yh(e)??{};var bc=new Set(["Flex","Text","Heading","ImageBlock","ButtonBlock"]),U3=new Set(["Divider"]),j3=new Set(["Hero","HeroSingle","IntroBleed","CategoryBar","DocTabs"]),pO=new Set(["ProductGrid"]);function Sh(e,o,t=!1,r){let a=e.render;e.render=n=>{if(o?.(n))return a(n);let s={...el(n,ho,t),sideSpace:eO(n.sideSpace)},l=r?na({values:s,frame:r(n)},!0).outer:kk(s),i=a(n);if(!l)return i;let d=u=>gh(ec,{className:u?`${l.className} ${u}`:l.className,children:h=>gh(fe,{className:h,style:l.style,children:i})}),f=Tr(n,{atSectionLine:!0}),m=Tr(n);return f===m?d(f):gh(rf,{line:"by-box",draw:u=>d(u?m:f)})}}var hO={name:"sectionPadding",applies:(e,o,t)=>o.isSection(e)&&!j3.has(e)&&!!t&&typeof t.render=="function",panel(e,o,t){let r=yh(o,e);if(r){e.fields={...e.fields,...t.sidesPaddingFields({keys:Pr,unitKey:Jd,fallback:r,tablet:!0,siteSide:!0})};return}if(pO.has(o))return;let a=[Pr.top,Pr.bottom].filter(s=>e.fields!=null&&s in e.fields);if(a.length)throw new Error(`section-padding: ${o} declares its own ${a.join(" / ")} row; declare \`innerPadding: { top, bottom }\` in its meta and the one Padding row draws on its band`);let n=uO(o,e);if(n){gO(e,o,t,n);return}e.fields={...e.fields,...t.sidesPaddingFields({tablet:!0,siteSide:!0})}},draw(e,o){if(!yh(o,e)){if(pO.has(o)){Sh(e);return}bc.has(o)||U3.has(o)||Sh(e,o==="Flex"?t=>Yk(t.bgImage):Ih.has(o)?t=>Jo(o,t):void 0,!0,uO(o,e))}}},G3=["Heading","Text","ImageBlock","ButtonBlock"],K3=["LogoBlock"],IO={Text:e=>Fr(e,"text").textStyle?.startsWith("heading-")?ol.heading:ol.text,Heading:()=>ol.heading,ButtonBlock:()=>ol.text,Breadcrumb:()=>Ix(yl),SpecStrip:()=>Ix(ha),...Object.fromEntries(Object.entries(Sc).map(([e,o])=>[e,o.frame]))};function uO(e,o){return z(IO,e)??o?.ownPad?.frame}var q3={ButtonBlock:"Outer padding"};function V3(e,o){let t=e[zt],r=Array.isArray(t)?t.filter(i=>typeof i=="string"):[],a=wn().filter(i=>o?.[i]);if(!a.length)return e;let n=[...r.filter(i=>!a.includes(i)),...a.filter(i=>typeof e[i]=="number")];if(n.length===r.length&&n.every((i,d)=>i===r[d]))return e;let{[zt]:s,...l}=e;return n.length?{...l,[zt]:n}:l}function Y3(e,o,t){if(o<=0)return null;let r=Array.isArray(e[zt])?e[zt]:[];return(t?wn().filter(a=>a.startsWith(ho[t])):wn()).some(a=>typeof e[a]=="number"&&!r.includes(a))?c("plus {n} px (older setting)",{n:o}):null}function gO(e,o,t,r){e.fields={...e.fields,...t.ownPaddingFields?.(r,Y3,z(q3,o))??t.sidesPaddingFields({tablet:!0,siteSide:!0})};let a=e.resolveData;e.resolveData=(n,s)=>{let l=n.props??{},i=s?.trigger==="replace"?V3(l,s.changed):l,d=i===l?n:{...n,props:i};return a?a(d,s):d}}var yO={name:"blockPadding",applies:(e,o,t)=>(G3.includes(e)||K3.includes(e))&&!!t&&typeof t.render=="function",panel(e,o,t){let r=z(IO,o);if(!r){e.fields={...e.fields,...t.sidesPaddingFields({tablet:!0,siteSide:!0})};return}gO(e,o,t,r)},draw(e,o){bc.has(o)||Sh(e,void 0,!0)}};import{createContext as bh,useContext as wc}from"react";var SO=bh(null);function Die(){return wc(SO)===!0}function Nie(){return wc(SO)!==null}var X3=bh(!1);function Mie(){return wc(X3)}function Hie(e,o,t){let r=e.boxes;if(!r)return t;let a=r.indexOf(o);return a>=0?a:(r.push(o),r.length-1)}var Cc=bh(null);function Wie(){return wc(Cc)}import{jsx as Ia}from"react/jsx-runtime";import{Component as aW,createContext as nW,lazy as tde,Suspense as rde,useContext as sW,useSyncExternalStore as lW}from"react";function Z3(e,o){let t=e.trim();if(!kc(t))return!1;if(!o)return!0;let r;try{r=new URL(t,"https://x.invalid").host}catch{return!1}let a=n=>n.toLowerCase().replace(/^www\./,"");return a(r)!==a(o)}function Uie(e){return e.startsWith("/")||kc(e)}function kc(e){return/^(?:https?:)?\/\//i.test(e.trim())}var Pl=Object.freeze({target:"_blank",rel:"noopener noreferrer"});function bO(e,o){return Z3(e,o)?{...Pl}:{}}function jie(e){return typeof e=="string"?e.trim():""}var Gie="data-sf-box-link",wO="absolute inset-0 -z-[1] outline-none focus-visible:z-[2] focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-accent",wh="relative isolate pointer-events-none [&_a]:pointer-events-auto [&_button]:pointer-events-auto [&_input]:pointer-events-auto [&_select]:pointer-events-auto [&_textarea]:pointer-events-auto [&_label]:pointer-events-auto [&_summary]:pointer-events-auto [&_iframe]:pointer-events-auto [&_video]:pointer-events-auto [&_audio]:pointer-events-auto [&_[role=button]]:pointer-events-auto [&_[tabindex]:not([tabindex='-1'])]:pointer-events-auto",J3="data-sf-box-jump";function Q3(e){return`sf-box-jump-${e}`}function Kie(e,o){return e===!0?fa(o):""}function eW({box:e,lit:o,first:t}){let r=s=>s.join(`,
|
|
305
|
-
`),a=t(e),n=o.flatMap(t);return`
|
|
306
|
-
${e} {
|
|
307
|
-
outline: 2px solid transparent;
|
|
308
|
-
outline-offset: -2px;
|
|
309
|
-
transition: outline-color 600ms ease-out;
|
|
310
|
-
}
|
|
311
|
-
${r(a)} { transition: background-color 600ms ease-out; }
|
|
312
|
-
${r(a.map(s=>`${s} *`))} { transition: color 600ms ease-out; }
|
|
313
|
-
${r(o)} { outline-color: var(--accent); }
|
|
314
|
-
${r(n)} { background-color: var(--accent); }
|
|
315
|
-
${r([...n,...n.map(s=>`${s} *`)])} { color: var(--bg) !important; }
|
|
316
|
-
`}function qie(e){let o=`[${J3}="${e}"]`,t=`.${Q3(e)}`,r=`[id="${e}"]:target`;return eW({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 oW="hrefRewrite";function tW(){return en("efficient.link-href-rewrites",()=>({rewrites:new Map,count:0,missed:new Set}))}function rW(){return typeof process<"u"&&!0}function Xie(e){let o=e?.[oW];return typeof o=="string"?o.trim():""}function CO(e){if(!e)return null;let o=tW(),t=o.rewrites.get(e);return!t&&!rW()&&o.missed.add(e),t??null}var iW={Link:mP,Image:uP},kO=nW(iW);function dde({runtime:e,children:o}){return Ia(kO.Provider,{value:e,children:o})}function kh(){return sW(kO)}function fde(){return kh().pagePath??null}var dW=()=>()=>{},fW=()=>yf()||null,cW=()=>null;function pW(){return lW(dW,fW,cW)}function ga({hrefRewrite:e,newTab:o,...t}){let{Link:r}=kh(),a=pW(),n=o===!0?{...t,...Pl}:o==="auto"?{...t,...bO(t.href,a)}:t,s=CO(e);return s?Ia(Ch,{name:s.name,href:n.href,fallback:Ia(r,{...n}),children:Ia(uW,{Link:r,rewrite:s.rewrite,...n})},s.key):Ia(r,{...n})}function uW({Link:e,rewrite:o,...t}){let r=xo(o(t.href)),a=r&&Ob(r)?r:t.href;return Ia(e,{...t,href:a})}var Ch=class extends aW{state={failed:!1,href:this.props.href};static getDerivedStateFromProps(o,t){return o.href===t.href?null:{failed:!1,href:o.href}}static getDerivedStateFromError(){return{failed:!0}}componentDidCatch(o){console.error(`The link href rewrite ${this.props.name} failed; the link goes where it was typed.`,o)}render(){return this.state.failed?this.props.fallback:this.props.children}};function vc(e){let{Image:o}=kh();return Ia(o,{...e})}import{jsx as i$}from"react/jsx-runtime";import{jsx as Se,jsxs as Po,Fragment as a$}from"react/jsx-runtime";import{imageCopyUrl as PO,imageSrcSet as mW}from"efficient-shell/image-copies";var vO;function vh(){return vO===void 0?{}:{host:vO}}var mde="(max-width: 800px) 100vw, min(100vw, 1600px)",xde="(max-width: 960px) 100vw, 50vw";function ya(e,{fallbackWidth:o=1280,maxWidth:t}={}){let r=mW(e,{...vh(),...t===void 0?{}:{maxWidth:t}});return r?{src:PO(e,o,vh()),srcSet:r}:{src:e}}var xW=/[\s"'()\\;]/;function hde(e){let o=PO(e,1920,vh());return o===e?xW.test(e)?`url("${gx(e)}")`:`url(${e})`:`url("${gx(o)}")`}import{parseOption as hW}from"efficient-shell/format";var Tl="solid",IW=[{label:"Solid",value:"solid"},{label:"Outlined",value:"outlined"}];function TO(e){return hW(IW,Tl,e)}var Ph="sf-secnum-outline",OO="font-display text-[length:var(--size-headingMedium,clamp(48px,6vw,96px))] font-medium leading-[0.8] tracking-[-0.02em]",EO=`@supports (-webkit-text-stroke: 1px currentColor){.${Ph}{color:var(--site-surface-2);-webkit-text-stroke:1px var(--site-line)}}`;import{parseOption as _O}from"efficient-shell/format";var Th="plain",AO=[{label:"Plain",value:"plain"},{label:"Filled",value:"filled"},{label:"Line",value:"line"}],gW="line",yW={KeyFeatures:"filled"};function Ol(e){return z(yW,e)??Th}function FO(e,o){return _O(AO,Ol(o),e)}function wde(e){return _O(AO,gW,e)}import{jsxs as wa,jsx as He}from"react/jsx-runtime";import{Fragment as Mh}from"react";import{Fragment as jW,jsx as Rh}from"react/jsx-runtime";import{Fragment as GO,jsx as Bl,jsxs as NW}from"react/jsx-runtime";import{createContext as Lh,useContext as Ll,useEffect as MW,useId as HW,useMemo as WW,useRef as $W}from"react";import{armEntrance as zW}from"efficient-shell/format";import{jsx as SW}from"react/jsx-runtime";import{useEffect as LO,useRef as BO,useState as bW}from"react";import{armEntrance as wW,entranceAttrs as CW,playEntrance as kW}from"efficient-shell/format";function Pc({views:e,editing:o,boxClass:t,boxAttrs:r,boxStyle:a,takesViewHide:n=!1,atEdge:s=!1,children:l}){let i=BO(null),d=nf(),f=nt(),m=n?f:Or,u=El(i,!0,s),{attrs:h,style:I}=CW(e[u]),S=BO(Wn.seed(e)),w=JSON.stringify(e);return LO(()=>{let T=i.current;if(T){if(o){let B=Wn.next(S.current,e,u);S.current=B.seen,B.play&&kW(T);return}return wW(T)}},[w,u,o]),m.scope(SW("div",{ref:i,className:ko(`${yn}${d.fill}${t?` ${t}`:""}`,m.className),...r,...m.attrs,...h,...Object.keys(I).length||a?{style:{...a,...I}}:{},children:d.inner(l)}))}var Wn={seed(e){return{desktop:JSON.stringify(e.desktop),tablet:JSON.stringify(e.tablet),phone:JSON.stringify(e.phone)}},next(e,o,t){let r=Wn.seed(o);return{play:r[t]!==e[t],seen:r}}};function El(e,o=!0,t=!1){return _l(e,o,t)??"desktop"}function _l(e,o=!0,t=!1){let[r,a]=bW(void 0),n=Er(t?"edge":"by-box"),{phone:s,tablet:l}=qv(n);return LO(()=>{if(!o)return;let i=e.current?.ownerDocument?.defaultView??(typeof window>"u"?null:window);if(!i?.matchMedia){a("desktop");return}let d=i.matchMedia(s),f=i.matchMedia(l),m=()=>a(d.matches?"phone":f.matches?"tablet":"desktop");return m(),d.addEventListener("change",m),f.addEventListener("change",m),()=>{d.removeEventListener("change",m),f.removeEventListener("change",m)}},[e,o,s,l]),r}var Al="@name",RO="@body",DO="@value",NO={[Al]:"Name",[RO]:"Body",[DO]:"Value"},vW={TimelineTrack:{"entries.date":Al,"entries.title":Al,"entries.blurb":RO},Footprint:{"offices.city":Al},Stats:{"items.label":Al,"items.value":DO}};function PW(e){let{key:o,row:t}=Ut(e);return t?`${o}.${t.rowKey}`:null}function pr(e,o){if(!e)return o;let t=PW(o);return t?z(vW,e)?.[t]??o:o}import{ENTRANCE_STATE_ATTR as FW,entranceAttrs as BW,scrollAttrs as LW}from"efficient-shell/format";import{parseFocal as EW,formatFocal as _W,readScroll as AW}from"efficient-shell/format";import{phoneKey as TW,tabletKey as OW}from"efficient-easel/screen/lib/content/view-tiers";var Oh=[{block:"HeroSlide",upload:"mediaImage",focus:Zs.image},{block:"HeroSlide",upload:"mediaImage2",focus:Zs.image2},{block:"HeroSingle",upload:"mediaImage",focus:Zs.image},{block:"HeroSingle",upload:"mediaImage2",focus:Zs.image2},{block:"ImageBlock",upload:"src",focus:"focal"}],MO=e=>[e,OW(e),TW(e)],Nde=[...new Set(Oh.flatMap(e=>MO(e.focus)))].sort();function HO(e,o){let[t,r,a]=MO(o).map(n=>typeof e[n]=="string"&&e[n]?e[n]:void 0);return{desktop:t,tablet:r,phone:a}}var oo={effect:"scroll",zoom:"scrollZoom",start:"scrollStart",end:"scrollEnd",ease:"scrollEase"},$n="_gScroll",Tc="_cScroll",Oc=Ud(Object.values(oo));function Kt(e,o){return AW(gn(e,oo.effect,o),gn(e,oo.zoom,o),gn(e,oo.start,o),gn(e,oo.end,o),gn(e,oo.ease,o))}function zn(e){let o={desktop:Kt(e,"desktop"),tablet:Kt(e,"tablet"),phone:Kt(e,"phone")};return at.every(t=>o[t].effect==="none")?null:o}function Eh(e){let o=lk(e.desktop,e.tablet,e.phone),t=r=>{let a=o[r];if(typeof a!="string")return;let{x:n,y:s}=EW(a);return _W(n,s)};return{desktop:t("desktop"),tablet:t("tablet"),phone:t("phone")}}function WO(e,o){return Eh(HO(e,o))}var Ec={},_h="_partMotion",Ah=[...jd,ot,Ke.duration,Ke.delay,...Oc];function zO(e){return Sv(e,_h)}function Sa(e,o){return bv(e,_h,o)}var RW=new Set([Xo.kind,ot,oo.effect]);function UO(e,o,t,r){let{[t]:a,...n}=Sa(e,o),s=r==null||r===""||r==="none"&&RW.has(t)?n:{...n,[t]:r};return wv(e,_h,o,Object.keys(s).length?s:null)}function Fl(e){return{entrance:Sn(e),hover:_b(e),scroll:zn(e)}}function jO(e){let o=Fl(e);return o.entrance!==null||o.hover!=="none"||o.scroll!==null}function _c(e,o){let{attrs:t,style:r}=BW(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(FW)}}function Ac(e,o){let{attrs:t,style:r}=LW(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 DW=4;function Un(e){let o;for(let t of e)(!o||t.element.compareDocumentPosition(o.element)&DW)&&(o=t);return o}var Fh="data-sf-part-host";function Fc(e){let o=e?.ownerDocument.defaultView,t=e;for(;t&&!t.hasAttribute(Fh)&&!t.classList.contains(yn);){let r=o?.getComputedStyle(t).display??"";if(r==="contents")return null;if(r!=="inline")return t;t=t.parentElement}return null}var ba="data-sf-part-lift",$O="sf-part-lift";function Bc(e){if(e.getElementById($O))return;let o=e.createElement("style");o.id=$O,o.textContent=Ev(`[${ba}]`).join(`
|
|
317
|
-
`),e.head.appendChild(o)}var Lc=Lh(null),qO=Lh(null),VO=Lh(null);function YO({needles:e,styles:o,motions:t=Ec,type:r,atEdge:a=!1,sizeCaps:n,children:s}){let l=HW(),i=Er(a?"edge":"by-box"),d=JSON.stringify([l,e,o,t,r,n]),f=kt(),m=WW(()=>{let h=Object.keys(t).filter(I=>jO(t[I]));return Kv(e,o,l,I=>pr(r,I),I=>sl(r,I),I=>h.includes(I)?Fl(t[I]):null,h,I=>ia(n,I),f)},[d,f]);if(!m)return Bl(GO,{children:s});let u=Vv(m,{inBox:i});return NW(GO,{children:[u&&Bl("style",{href:`${UW}${l}-${qk(u)}`,precedence:ZO,dangerouslySetInnerHTML:{__html:Kk(u)}}),Bl(Lc.Provider,{value:m,children:s})]})}var Bh=new WeakMap;function KO(e,o){let t=Un(o.filter(a=>a.arm)),r=o.some(a=>a.entering)?void 0:Un(o.filter(a=>a.scroll));for(let a of o)a!==t&&a.undo&&(a.undo(),a.undo=void 0),a!==r&&a.undoScroll&&(a.undoScroll(),a.undoScroll=void 0);t?.arm&&!t.undo&&(t.undo=t.arm()),r?.scroll&&!r.undoScroll&&(r.undoScroll=r.scroll()),o.some(a=>a.lift)?(Bc(e.ownerDocument),e.setAttribute(ba,"")):e.removeAttribute(ba)}function XO(e){let o=$W(null),t=e?.motion?.entrance??null,r=e?.motion?.scroll??null,a=e?.motion?.hover==="lift",n=El(o,t!==null||r!==null),s=t?t[n]:null,l=r&&r[n].effect!=="none"?r[n]:null,i=JSON.stringify([s,l]);return MW(()=>{let d=o.current,f=Fc(d?.parentElement??null);if(!t&&!r&&!a||!d||!f)return;let m=s?()=>{let I=_c(f,s),S=zW(f);return()=>{S?.(),I()}}:null,u=Bh.get(f)??[];Bh.set(f,u);let h={element:d,arm:m,entering:s!==null&&s.kind!=="none",scroll:l?()=>Ac(f,l):null,lift:a};return u.push(h),KO(f,u),()=>{let I=u.indexOf(h);I<0||(u.splice(I,1),h.undo?.(),h.undo=void 0,h.undoScroll?.(),h.undoScroll=void 0,KO(f,u),u.length||Bh.delete(f))}},[i,a]),o}var ZO="sf-part-styles",UW=`${ZO}-`;function JO(e){let o=Ll(Lc),t=Ll(qO),r=Yv(o,e);return r&&r.stamp!==t?r:null}function sfe(e){return vx(Ll(Lc),e)}function QO({stamp:e,children:o}){return Bl(qO.Provider,{value:e,children:o})}function lfe({children:e}){let o=Ll(Lc);return Bl(VO.Provider,{value:o,children:e})}function ife(e){return vx(Ll(VO),e)}function Rl({value:e,children:o}){let t=JO(e),r=XO(t);return t?Rh(QO,{stamp:t.stamp,children:Rh("span",{ref:r,[kv]:t.stamp,...t.textStyle?{[sa]:t.textStyle}:{},children:o})}):Rh(jW,{children:o})}import{jsx as Dh,Fragment as GW}from"react/jsx-runtime";function eE({className:e}){return Dh("span",{className:e||void 0,children:"\xAE"})}function lt(e){if(!e.includes("\xAE"))return e;let o=e.split("\xAE"),t=[];return o.forEach((r,a)=>{r&&t.push(r),a<o.length-1&&t.push(Dh(eE,{},`r${a}`))}),Dh(GW,{children:t})}var xfe=eE;function Ze(e,o=!1,t){let r=JW(o),a=md(e);if(a.length===1){let[s]=a,l=Eb(s),i=l?XW(l,s.children):s.children;return wa(Rl,{value:e,children:[t,Rc(i,r)]})}let n=[];return a.forEach((s,l)=>{if(s.bullet){n.push(He("span",{"data-sf-bullet":"",className:KW,children:Rc(s.children,r)},l));return}if(s.number!=null){n.push(wa("span",{"data-sf-number":s.number,className:qW,children:[wa("span",{className:VW,children:[s.number,"."]}),Rc(s.children,r)]},l));return}l>0&&!YW(a[l-1])&&n.push(He("br",{},`br${l}`)),n.push(He(Mh,{children:Rc(s.children,r)},l))}),wa(Rl,{value:e,children:[t,n]})}var KW="relative block pl-6 before:absolute before:left-1.5 before:font-bold before:text-accent before:content-['\xB7']",qW="relative block pl-[2em]",VW="absolute left-0 w-[1.6em] text-right tabular-nums";function YW(e){return e.bullet||e.number!=null}var oE="text-accent underline underline-offset-[0.18em]";function XW(e,o){let[t,...r]=o;return t?.kind==="text"?[{kind:"text",text:`${e}${t.text}`},...r]:[{kind:"text",text:e},...o]}function ZW(e){return Vk(e)||void 0}function Rc(e,o){let t=[],r=!1;return e.forEach((a,n)=>{if(a.kind==="text"){t.push(He("span",{children:lt(a.text)},n)),r=!0;return}r||t.push(He("span",{},`e${n}`)),t.push(rE(a,n,o)),r=!1}),r||t.push(He("span",{},"end")),t}function Nh(e,o){return e.length===1&&e[0].kind==="text"?lt(e[0].text):e.map((t,r)=>t.kind==="text"?He(Mh,{children:lt(t.text)},r):rE(t,r,o))}function JW(e){return e?"font-normal italic text-accent":"not-italic text-accent"}function Pfe(e){return tE(e)}function tE(e,o){let t=e.split(`
|
|
318
|
-
`);return wa(Rl,{value:e,children:[o,t.map((r,a)=>wa(Mh,{children:[a>0?He("br",{}):null,He("span",{children:r})]},a))]})}function rE(e,o,t){if(e.kind==="link")return kc(e.href)?He(ga,{newTab:"auto",href:e.href,className:oE,children:Nh(e.children,t)},o):He("a",{href:e.href,className:oE,children:Nh(e.children,t)},o);let r=Nh(e.children,t),a=vb[e.kind];if(a)return He("span",{[Pb]:a,children:r},o);switch(e.kind){case"underline":return He("u",{children:r},o);case"sup":return He("sup",{children:r},o);case"sub":return He("sub",{children:r},o);case"color":{let n=ZW(e.color);return n?He("span",{style:{color:n},children:r},o):He("span",{children:r},o)}case"accent":case"highlight":return He("em",{className:t,children:r},o);case"bold":return He("strong",{className:"font-semibold",children:r},o);case"italic":return He("em",{className:"italic",children:r},o);case"strike":return He("s",{className:"line-through",children:r},o);default:return He("span",{children:r},o)}}function aE(e,o=!0,t=!1){let r=e.split(`
|
|
319
|
-
`);return He(Rl,{value:e,children:r.map((a,n)=>wa("span",{children:[t?tE(a):Ze(a,o),n<r.length-1?He("br",{}):null]},n))})}function nE(e){return e.split(/\n\s*\n/).map(o=>o.trim()).filter(Boolean)}import{jsx as Hh,jsxs as e$}from"react/jsx-runtime";import{jsx as QW}from"react/jsx-runtime";function sE(){return QW("span",{className:"block h-px w-[30px] bg-current"})}var Wh={labelUpTo800:"max-view-wide:text-[length:var(--size-label,12px)]",labelSmall:"text-[length:var(--size-label,12px)]",labelLarge:"text-[length:var(--size-label,14px)]"};function o$(e,o){return`font-mono text-[length:var(--size-label,${e}px)] uppercase tracking-[0.3em] text-accent`}var t$=`inline-block w-fit bg-accent px-3.5 py-1.5 font-mono ${Wh.labelSmall} font-semibold uppercase tracking-[0.16em] text-bg`,r$=`flex items-center gap-3.5 font-mono ${Wh.labelLarge} uppercase tracking-[0.3em] opacity-80 ${Wh.labelUpTo800} max-view-wide:tracking-[0.25em]`;function jn({text:e,look:o="plain",size:t=13,scaled:r=!0,className:a="",classNameAfter:n="",takesViewHide:s=!1}){let l=nt(),i=s?l:Or;if(o==="line")return i.scope(e$("div",{className:ko([a,r$,n].filter(Boolean).join(" "),i.className),...i.attrs,children:[Hh(sE,{}),Hh("span",{children:Ze(e)})]}));let d=o==="filled"?t$:o$(t,r);return i.scope(Hh("span",{className:ko([a,d,n].filter(Boolean).join(" "),i.className),...i.attrs,children:Ze(e)}))}var Ee={headingMediumUpTo800Small:"max-view-wide:text-[length:min(var(--size-headingMedium,32px),var(--sf-heading-max,9999px))]",headingMediumUpTo800Large:"max-view-wide:text-[length:min(var(--size-headingMedium,36px),var(--sf-heading-max,9999px))]",headingSmallUpTo800:"max-view-wide:text-[length:var(--size-headingSmall,28px)]",headingMedium2:"text-[length:min(var(--size-headingMedium,44px),var(--sf-heading-max,9999px))]",headingMedium3:"text-[length:min(var(--size-headingMedium,56px),var(--sf-heading-max,9999px))]",headingMedium1:"text-[length:var(--sf-heading-max,var(--size-headingMedium,38px))]",bodySmall:"text-[length:var(--size-body,14px)]",bodyLarge:"text-[length:var(--size-body,16px)]",label:"text-[length:var(--size-label,14px)]",shelfLabel:"text-[length:var(--size-label,13px)]",shelfLabelSmall:"text-[length:var(--size-label,12px)]",shelfBody:"text-[length:var(--size-body,13px)]",shelfHeadingUpTo800Xs:"max-view-wide:text-[length:var(--size-headingMedium,28px)]",shelfHeadingUpTo800Small:"max-view-wide:text-[length:var(--size-headingMedium,32px)]",shelfHeadingUpTo800Large:"max-view-wide:text-[length:var(--size-headingMedium,36px)]",shelfHeadingUpTo800Xl:"max-view-wide:text-[length:var(--size-headingMedium,40px)]",shelfHeading1:"text-[length:var(--size-headingMedium,40px)]",shelfHeading2:"text-[length:var(--size-headingMedium,48px)]",shelfHeading3:"text-[length:var(--size-headingMedium,56px)]",shelfHeading4:"text-[length:var(--size-headingMedium,64px)]"},lE=[{value:"para",label:"Paragraph size \u2014 13px",cls:`font-mono font-normal uppercase tracking-[0.22em] ${Ee.shelfLabel}`},{value:"sm",label:"Small \u2014 40px",cls:`font-heading2 font-medium tracking-[-0.03em] ${Ee.shelfHeading1} ${Ee.shelfHeadingUpTo800Xs}`},{value:"md",label:"Medium \u2014 48px",cls:`font-heading2 font-medium tracking-[-0.03em] ${Ee.shelfHeading2} ${Ee.shelfHeadingUpTo800Small}`},{value:"lg",label:"Large \u2014 56px",cls:`font-heading2 font-medium tracking-[-0.03em] ${Ee.shelfHeading3} ${Ee.shelfHeadingUpTo800Large}`},{value:"xl",label:"Extra large \u2014 64px",cls:`font-heading2 font-medium tracking-[-0.03em] ${Ee.shelfHeading4} ${Ee.shelfHeadingUpTo800Xl}`}],n$="lg";function s$(e){return(lE.find(o=>o.value===e)??lE.find(o=>o.value===n$)).cls}var Gn=(e,o=!1)=>typeof e=="string"?aE(e,o):e,ur=(e,o=!1)=>typeof e=="string"?Ze(e,o):e;function iE({num:e,title:o,link:t,logo:r,description:a,accent:n,accentNum:s,numStyle:l=Tl,look:i="standard",titleAccent:d,accentTracking:f="-0.02em",spaceBelow:m,rowGap:u,descriptionSize:h,className:I="",eyebrowLook:S=Th,titleSize:w,count:T,capped:B=!1,rootPadsBottom:P=!1}){let g=Pt(),C=m??(i==="editorial"?"mb-[60px]":"");if(i==="shelf")return e||o||a||t?Po("div",{className:rt(`${wP} sticky top-[var(--sf-header-h,88px)] z-30 mb-5 flex items-center justify-between gap-4 max-view-wide:flex-wrap max-view-wide:gap-y-2 border-b border-line bg-bg/95 py-3 backdrop-blur-md ${B?"":"-mx-[var(--sf-site-gutter,40px)] px-[var(--sf-site-gutter,40px)] max-view-wide:-mx-[min(20px,var(--sf-site-gutter,40px))] max-view-wide:px-[min(20px,var(--sf-site-gutter,40px))]"}`,g),children:[Po("div",{className:"flex min-w-0 items-end gap-6 max-view-wide:flex-col max-view-wide:items-stretch max-view-wide:gap-3",children:[e&&Se("span",{className:`font-mono ${Ee.shelfLabel} leading-none uppercase tracking-[0.22em] text-fg-dim`,children:ur(e)}),o&&Se("h2",{className:`${s$(w)} leading-none text-fg max-view-wide:leading-[1] [&>span]:block`,children:Gn(o)})]}),(a||t||T)&&Po("div",{className:"flex items-center gap-5 max-view-wide:gap-3 view-wide:grow view-wide:justify-end",children:[a&&Se("span",{className:`max-w-[340px] truncate font-display ${Ee.shelfBody} leading-[1.4] text-fg-dim max-view-wide:hidden view-wide:w-0 view-wide:grow view-wide:text-right`,children:ur(a)}),t&&Po(ga,{newTab:"auto",href:t.href,className:`inline-flex items-center gap-2 whitespace-nowrap font-mono ${Ee.shelfLabel} uppercase tracking-[0.2em] text-fg-dim transition-colors hover:text-fg`,children:[ur(t.text),Se("span",{"aria-hidden":!0,children:"\u2192"})]}),T&&Se("span",{className:`whitespace-nowrap font-mono ${Ee.shelfLabelSmall} uppercase tracking-[0.2em] text-fg-dim`,children:T})]})]}):null;if(i==="editorial"){let y=!!o||!!d;return Po("header",{className:`${C} grid grid-cols-[auto_1fr_auto] items-end gap-10 border-b border-line pb-8 max-view-desktop:grid-cols-1 max-view-desktop:gap-3.5 ${I}`.trim(),children:[e&&(typeof e=="string"?Se(jn,{text:e,className:"pb-2"}):Se("span",{className:"pb-2",children:e})),y&&Po("h2",{className:"font-heading2 text-[length:min(var(--size-headingMedium,clamp(40px,5.5vw,80px)),var(--sf-heading-max,9999px))] font-medium uppercase leading-none tracking-[-0.03em]",children:[o,d&&Po(a$,{children:[" ",Se("em",{className:"font-serif font-normal italic text-accent",style:{letterSpacing:f},children:d})]})]}),a&&Se("p",{className:`max-w-[360px] pb-1 text-right font-display ${Ee.bodySmall} leading-[1.5] text-fg-dim max-view-desktop:max-w-full max-view-desktop:text-left`,children:a})]})}if(i==="simple"){let y=`${C} ${I}`.trim();return Po("div",{className:y||void 0,children:[e&&(typeof e=="string"?Se(jn,{text:e,look:S,className:"mb-4 block"}):Se("span",{className:"mb-4 block",children:e})),o&&Se("h2",{className:`font-heading2 ${Ee.headingMedium2} font-medium uppercase leading-none tracking-[-0.02em] text-fg ${Ee.headingMediumUpTo800Small}`,children:Gn(o)})]})}if(i==="statement"){let y=`${C} ${I}`.trim();return Po("div",{className:y||void 0,children:[e&&(typeof e=="string"?Se(jn,{text:e,look:S,className:"mb-4 block"}):Se("span",{className:"mb-4 block",children:e})),o&&Se("h2",{className:"font-heading2 text-[length:min(var(--size-headingMedium,clamp(40px,5vw,72px)),var(--sf-heading-max,9999px))] font-medium uppercase leading-none tracking-[-0.03em] text-fg",children:Gn(o,!0)})]})}if(i==="natural"){let y=`flex max-w-[680px] flex-col ${u??"gap-5"} ${C} ${I}`.replace(/\s+/g," ").trim();return Po("div",{className:y,children:[e&&(typeof e=="string"?Se(jn,{text:e,look:S}):Se("span",{children:e})),o&&Se("h2",{className:`font-heading2 ${Ee.headingMedium2} font-medium leading-[1.05] tracking-[-0.03em] ${Ee.headingMediumUpTo800Small}`,children:Gn(o)}),a&&Se("p",{className:`${h??`${Ee.bodyLarge}`} leading-[1.6] opacity-85`,children:a})]})}if(i==="essay"){let y=`${C} ${I}`.trim();return Po("div",{className:y||void 0,children:[e&&(typeof e=="string"?Se(jn,{text:e,look:S,className:"mb-4 block"}):Se("span",{className:"mb-4 block",children:e})),o&&Se("h2",{className:`font-heading2 ${Ee.headingMedium1} [font-weight:var(--sf-heading-weight,500)] [text-transform:var(--sf-heading-case,uppercase)] [&_em]:[font-weight:var(--sf-heading-weight-strong,inherit)] leading-none tracking-[-0.02em] text-fg ${Ee.headingSmallUpTo800}`,children:Gn(o)})]})}let E=!!a||!!t,A=!!o,N=TO(l)==="outlined",b=`font-mono ${Ee.label} uppercase tracking-[0.3em]`,_=null;if(e)if(N)_=Se("span",{className:`${OO} text-fg-dim ${Ph}`,children:ur(e)});else if(s&&!n&&typeof e=="string"){let y=e.indexOf("/"),v=y===-1?e:e.slice(0,y),O=y===-1?"":e.slice(y);_=Po("span",{className:b,children:[Se("span",{className:"text-accent",children:ur(v)}),O&&Se("span",{className:"text-fg-dim",children:ur(O)})]})}else _=Se("span",{className:`${b} ${n?"text-accent":"text-fg-dim"}`,children:ur(e)});return Po("div",{className:P?"grid grid-cols-[auto_1fr_auto] items-end gap-10 border-b border-line pb-6 max-view-wide:grid-cols-1 max-view-wide:gap-3 max-view-wide:pb-5":"mb-16 grid grid-cols-[auto_1fr_auto] items-end gap-10 border-b border-line pb-6 max-view-wide:mb-9 max-view-wide:grid-cols-1 max-view-wide:gap-3 max-view-wide:pb-5",children:[N&&e&&Se("style",{children:EO}),Po("div",{className:"flex flex-col items-start gap-3",children:[r?.src&&Se(Bk,{children:Se(Qf,{...l$(yP(r.src)),alt:r.alt,className:"h-8 w-auto object-contain"})}),_]}),A&&Se("h2",{className:n?"font-heading2 text-[length:min(var(--size-headingMedium,clamp(36px,5vw,64px)),var(--sf-heading-max,9999px))] [font-weight:var(--sf-heading-weight,500)] [text-transform:var(--sf-heading-case,uppercase)] [&_em]:[font-weight:var(--sf-heading-weight-strong,inherit)] leading-[0.95] tracking-[-0.025em]":`font-heading2 ${Ee.headingMedium3} [font-weight:var(--sf-heading-weight,500)] [&_em]:[font-weight:var(--sf-heading-weight-strong,inherit)] leading-none tracking-[-0.03em] whitespace-pre-line ${Ee.headingMediumUpTo800Large} max-view-wide:leading-[1]`,children:Gn(o)}),E&&Po("div",{className:"flex flex-col items-end gap-3 max-view-wide:items-start",children:[a&&Se("p",{className:`max-w-[340px] font-display ${Ee.bodySmall} leading-[1.5] text-fg-dim text-right max-view-wide:max-w-full max-view-wide:text-left`,children:ur(a)}),t&&Po(ga,{newTab:"auto",href:t.href,className:`inline-flex items-center gap-2 whitespace-nowrap font-mono ${Ee.label} uppercase tracking-[0.2em] text-fg-dim transition-colors hover:text-fg`,children:[ur(t.text),Se("span",{"aria-hidden":!0,children:"\u2192"})]})]})]})}function l$(e){let o=ya(e,{fallbackWidth:640,maxWidth:960});return o.srcSet?{src:o.src,srcSet:o.srcSet,sizes:"240px"}:{src:e}}function dE({num:e,title:o,titleAccent:t,desc:r,accentTracking:a="-0.02em",spaceBelow:n="mb-[60px]",className:s=""}){return i$(iE,{look:"editorial",num:e,title:o,titleAccent:t,description:r,accentTracking:a,spaceBelow:n,className:s})}import{jsx as Nl,jsxs as x$}from"react/jsx-runtime";import{useEffect as h$,useState as yE}from"react";import{jsx as d$}from"react/jsx-runtime";var fE="sf-photo-hover";function Dc({sheet:e,name:o=fE}){return e?d$("style",{href:o,precedence:fE,dangerouslySetInnerHTML:{__html:e}}):null}import{jsx as hE,Fragment as p$}from"react/jsx-runtime";import{createContext as u$,useContext as Mc}from"react";var f$=Jb["view-desktop"];function c$(e,o){return[...[...e].sort((t,r)=>t.below-r.below).map(t=>`(max-width: ${t.below-.02}px) ${t.slot}`),o].join(", ")}var $h=e=>`${Math.ceil(e*1e4-1e-6)/100}vw`,Nc=e=>{let o=/^([\d.]+)vw$/.exec(e??"");return o?Math.min(1,Number(o[1])/100):1};function tce(e,o){return{phone:$h(e.phone*Nc(o?.phone)),tablet:$h(e.tablet*Nc(o?.tablet)),desktop:$h(e.desktop*Nc(o?.desktop))}}function zh(e){if([e.phone,e.tablet,e.desktop].every(r=>Nc(r)>=1))return;let o=[{below:tr,slot:e.phone},{below:f$,slot:e.tablet}],t=o.filter((r,a)=>r.slot!==(o[a+1]?.slot??e.desktop));return c$(t,e.desktop)}function cE(e){let o=e.split(/,\s*(?![^()]*\))/).map(a=>a.trim()),t=[];for(let a of o.slice(0,-1)){let n=/^\(max-width:\s*([\d.]+)px\)\s+(.+)$/.exec(a);if(!n)return null;let s=Number(n[1]);if(t.length&&s<=t[t.length-1].edge)return null;t.push({edge:s,slot:n[2]})}let r=o[o.length-1];return!r||r.startsWith("(")?null:{steps:t,last:r}}var pE=(e,o)=>e.steps.find(t=>o<=t.edge)?.slot??e.last,uE=e=>{let o=/^min\((.+)\)$/.exec(e);return o?o[1].split(/,\s*(?![^()]*\))/).map(t=>t.trim()):[e]};function mE(e,o){if(e===o)return e;let t=[...uE(e),...uE(o)],r=s=>{let l=t.map(i=>new RegExp(`^([\\d.]+)${s}$`).exec(i)).filter(Boolean).map(i=>Number(i[1]));return l.length?[`${Math.min(...l)}${s}`]:[]},a=[...new Set(t.filter(s=>!/^[\d.]+(vw|px)$/.test(s)))],n=[...r("vw"),...r("px"),...a];return n.length===1?n[0]:`min(${n.join(", ")})`}function xE(e,o){if(!o)return e;let t=cE(e),r=cE(o);if(!t||!r)return e;let a=[...new Set([...t.steps,...r.steps].map(s=>s.edge))].sort((s,l)=>s-l).map(s=>({edge:s,slot:mE(pE(t,s),pE(r,s))})),n=mE(t.last,r.last);return[...a.filter((s,l)=>s.slot!==(a[l+1]?.slot??n)).map(s=>`(max-width: ${s.edge}px) ${s.slot}`),n].join(", ")}var m$={hasWidth:!1},Dl=u$(m$);function lce(){return Mc(Dl).hasWidth}function ice(e){let{bound:o}=Mc(Dl);return o&&zh(o)||e}function IE(e){let{bound:o}=Mc(Dl);return xE(e,o&&zh(o))}function gE({children:e}){let o=Mc(Dl);return o.bound?hE(Dl.Provider,{value:{hasWidth:o.hasWidth},children:e}):hE(p$,{children:e})}function SE({fallback:e,className:o,src:t,alt:r="",objectPosition:a,objectFit:n="cover",sizes:s="100vw",sizesFromCell:l=!1,priority:i=!1,deferFetch:d=!1,showBackground:f=!0,treatment:m}){let u=fh(),h=IE(s),I=l?h:s,[S,w]=yE(!1),[T,B]=yE(!1),P=t||"";h$(()=>{w(!1),B(!1)},[P]);let g=Sf(P),C=g&&!T?ya(P):{src:P},E=!P||S;return x$("div",{className:`relative h-full w-full overflow-hidden ${o??""}`,children:[Nl("div",{className:"absolute inset-0 flex items-center justify-center",style:f?{background:"var(--site-surface)"}:void 0,children:E?e:null}),Nl(of,{fill:tl,children:P&&(g?Nl("img",{src:C.src,alt:r,...C.srcSet?{srcSet:C.srcSet,sizes:I}:{},decoding:"async",...d?{loading:"lazy"}:u,className:`absolute inset-0 h-full w-full${m?.className?` ${m.className}`:""}`,style:{display:S?"none":"block",objectFit:n,...a?{objectPosition:a}:{},...m?.style??{}},onError:()=>C.srcSet?B(!0):w(!0)}):Nl(vc,{src:P,alt:r,fill:!0,sizes:I,priority:i,...m?.className?{className:m.className}:{},style:{display:S?"none":"block",objectFit:n,...a?{objectPosition:a}:{},...m?.style??{}},onError:()=>w(!0)}))}),Nl(Dc,{sheet:m?.sheet})]})}import{jsx as I$}from"react/jsx-runtime";var Ml="sf-empty-hides",Uh="sf-empty-else",Hc="sf-head-core",Wc="sf-head-box",Hl="holdsHeadCore",Wl="isHeadCore",g$=`.${Ml}:empty{display:none}.${Ml}:not(:empty)~.${Uh}{display:none}.${Wc},.${Hc}{display:contents}.${Wc}:not(:has(.${Hc}:not(:empty))){display:none}`;function $c(){return I$("style",{children:g$})}var Ho={headingSmallUpTo700Small:"max-[700px]:text-[length:var(--size-headingSmall,26px)]",headingSmallUpTo700Large:"max-[700px]:text-[length:var(--size-headingSmall,28px)]",bodySmall:"text-[length:var(--size-body,15px)]",bodyLarge:"text-[length:var(--size-body,18px)]",headingSmall1:"text-[length:var(--size-headingSmall,28px)]",headingSmall2:"text-[length:var(--size-headingSmall,34px)]",labelSmall:"text-[length:var(--size-label,11px)]",label:"text-[length:var(--size-label,12px)]",labelLarge:"text-[length:var(--size-label,13px)]"},bE={2:"grid-cols-2 max-[900px]:grid-cols-1",3:"grid-cols-3 max-view-desktop:grid-cols-1",4:"grid-cols-4 max-view-desktop:grid-cols-2 max-[700px]:grid-cols-1"},jh="sf-itc-boxes",S$="sf-itc-steps";function Gh(e){return(e??[]).filter(o=>(o?.tag??"").trim()||(o?.meta??"").trim()||(o?.title??"").trim()||(o?.copy??"").trim()||(o?.image??"").trim()||(o?.specs??[]).some(t=>(t?.label??"").trim()||(t?.value??"").trim()))}function Hce({num:e,title:o,description:t,boxes:r,steps:a,columns:n=3,cta:s,padTop:l,padBottom:i,bandPad:d,editing:f=!1,omitHead:m=!1,cardImage:u,cardImageUnit:h,cardText:I,rows:S,copies:w}){let T=Pt(),B=w!==void 0,P=S&&(B||(r?.blockCount??0)>0)?S:null,g=d??Pk({padTop:l,padBottom:i},Hn("ProcessSteps")),C=B?[]:Gh(a),E=C.length>0?C:f&&!r&&!B?[1,2,3].map(y=>({tag:c("Column {n}",{n:y})})):[],A=bE[n]??bE[3],N=P?"grid-cols-1":A,b=P?"":" [&>*]:min-h-[560px]",_=I==="on-image";return _e(fe,{as:"section",className:rt(["relative z-[2] border-b border-line bg-bg",g.className].filter(Boolean).join(" "),T),style:{...g.style,...lT(u,h)},children:mr("div",{className:rt(TC,T),children:[m?null:_e(dE,{num:e,title:o?.trim()?Ze(o,!0):void 0,desc:t?.trim()?Ze(t,!1):void 0}),r&&!B?mr(y$,{children:[_e($c,{}),P?_e(Cc.Provider,{value:{hand:P,ids:r.blockIds??[],boxes:[]},children:_e(r,{className:`${jh} ${Ml} sf-card grid ${N} gap-[2px] border border-line bg-line${b} [&>*]:bg-bg`,minEmptyHeight:260})}):_e(r,{className:`${jh} ${Ml} sf-card grid ${N} gap-[2px] border border-line bg-line [&>*]:min-h-[560px] [&>*]:bg-bg`,minEmptyHeight:260})]}):null,B&&w?_e("div",{className:`${jh} sf-card grid ${N} gap-[2px] border border-line bg-line${b} [&>*]:bg-bg`,children:P?_e(Cc.Provider,{value:{hand:P,copies:!0},children:w}):w}):null,E.length>0&&_e("div",{className:`${S$} ${Uh} sf-card grid ${A} gap-[2px] border border-line bg-line`,children:E.map((y,v)=>{let O=(y.specs??[]).filter(k=>(k?.label??"").trim()||(k?.value??"").trim());return mr("article",{className:_?"flex flex-col bg-bg":"flex min-h-[560px] flex-col bg-bg",children:[mr("div",{className:_?"sf-card-image relative aspect-[5/3] overflow-hidden bg-surface max-[700px]:aspect-[4/3]":"sf-card-image relative aspect-[5/3] overflow-hidden border-b border-line bg-surface",children:[_e(SE,{label:y.tag?.trim()||y.title?.trim()||`column-${v+1}`,src:y.image||void 0,sizes:"(max-width: 1100px) 100vw, 33vw",...r?{deferFetch:!0}:{}}),_e("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-0 z-[1]",style:{background:`linear-gradient(180deg, ${Vs(.55)} 0%, transparent 30%, transparent 70%, ${Vs(.65)} 100%)`}}),_&&_e("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-x-0 bottom-0 z-[1] h-[78%]",style:{background:`linear-gradient(180deg, transparent 0%, ${Vs(.73)} 55%, ${Vs(.92)} 100%)`}}),y.tag?.trim()&&_e("span",{className:`absolute left-5 top-[18px] z-[2] font-mono ${Ho.label} uppercase tracking-[0.3em] text-accent`,children:lt(y.tag)}),y.meta?.trim()&&_e("span",{className:_?`absolute right-5 top-[18px] z-[2] font-mono ${Ho.label} uppercase tracking-[0.24em] text-overlay-fg/80`:`absolute right-5 bottom-[18px] z-[2] font-mono ${Ho.label} uppercase tracking-[0.24em] text-overlay-fg/80`,children:lt(y.meta)}),_&&(y.title?.trim()||y.copy?.trim())&&mr("div",{className:"absolute inset-x-0 bottom-0 z-[2] flex flex-col gap-2.5 px-8 pb-7 pt-14 max-[700px]:px-6 max-[700px]:pb-6",children:[y.title?.trim()&&_e("h3",{className:`flex min-h-[2em] flex-col justify-end font-heading3 ${Ho.headingSmall1} font-medium uppercase leading-none tracking-[-0.02em] text-overlay-fg ${Ho.headingSmallUpTo700Small}`,children:Ze(y.title,!0)}),y.copy?.trim()&&_e("p",{className:`min-h-[3em] font-display ${Ho.bodySmall} leading-[1.5] text-overlay-fg/85`,children:Ze(y.copy,!1)})]})]}),_?O.length>0&&_e("div",{className:"grid grid-cols-2 gap-2 border-t border-line px-8 py-7 max-[700px]:px-6 max-[700px]:py-6",children:O.map((k,L)=>mr("div",{className:"flex flex-col gap-1",children:[k.label?.trim()&&_e("span",{className:`font-mono ${Ho.labelSmall} uppercase tracking-[0.24em] text-fg-dim`,children:lt(k.label)}),k.value?.trim()&&_e("span",{className:`font-display ${Ho.bodyLarge} font-medium tracking-[-0.01em] text-fg`,children:lt(k.value)})]},L))}):mr("div",{className:"flex flex-1 flex-col gap-4 px-8 py-9 max-[700px]:px-6 max-[700px]:py-7",children:[y.title?.trim()&&_e("h3",{className:`font-heading3 ${Ho.headingSmall2} font-medium uppercase leading-none tracking-[-0.02em] ${Ho.headingSmallUpTo700Large}`,children:Ze(y.title,!0)}),y.copy?.trim()&&_e("p",{className:`font-display ${Ho.bodySmall} leading-[1.55] text-fg-dim`,children:Ze(y.copy,!1)}),O.length>0&&_e("div",{className:"mt-auto grid grid-cols-2 gap-2 border-t border-line pt-4",children:O.map((k,L)=>mr("div",{className:"flex flex-col gap-1",children:[k.label?.trim()&&_e("span",{className:`font-mono ${Ho.labelSmall} uppercase tracking-[0.24em] text-fg-dim`,children:lt(k.label)}),k.value?.trim()&&_e("span",{className:`font-display ${Ho.bodyLarge} font-medium tracking-[-0.01em] text-fg`,children:lt(k.value)})]},L))})]})]},v)})}),s?.text&&_e("div",{className:"mt-12 flex justify-end border-t border-line pt-8",children:mr(ga,{newTab:"auto",href:s.href,className:`group inline-flex items-center gap-3.5 border border-line px-6 py-4 font-mono ${Ho.labelLarge} uppercase tracking-[0.3em] text-fg transition-colors hover:border-accent hover:text-accent`,children:[lt(s.text),_e("span",{"aria-hidden":!0,className:"text-accent transition-transform group-hover:translate-x-[3px]",children:"\u2192"})]})})]})})}var b$=["selected","highlighted"],wE="data-sf-card-state",kE="pointer-events-none absolute inset-0 border border-accent",vE="pointer-events-none absolute inset-x-0 bottom-0 border-b-2 border-accent",PE="pointer-events-none absolute inset-0 border-2 border-accent outline outline-1 -outline-offset-1 outline-accent",TE="absolute inset-y-0 left-0 w-[3px] bg-accent",OE="absolute -inset-[2px] -z-[1] bg-[color-mix(in_oklab,var(--accent)_14%,transparent)]",EE="after:pointer-events-none after:absolute after:inset-0 hover:after:border-2 hover:after:border-accent",CE=e=>{let o=iC.find(t=>t.role===e)?.token;if(!o)throw new Error(`card-state: the palette has no ink token for "${e}"`);return o},w$={[CE("muted")]:`var(${CE("fg")})`};function Kh(e){return e?.selected===!0}function qh(e){return e?b$.filter(o=>e[o]===!0).join(" "):""}function _E(e,o="frame"){let t=qh(e);return t?o==="frame"&&Kh(e)?{[wE]:t,className:"relative isolate",style:{...w$}}:{[wE]:t,className:"relative"}:{}}var C$={highlighted:!0},k$={},zc="badge";function jce(e,o=[]){return e.map((t,r)=>({...t,key:t.key||o[r]?.key||js(t,r)}))}function AE(e){return!e||typeof e!="object"?!1:Object.entries(e).some(([o,t])=>o==="key"||o===zc||o==="state"?!1:typeof t=="string"?t.trim()!=="":Array.isArray(t)?t.length>0:t!=null&&typeof t!="function")}function Gce(e,{chosen:o,badge:t}){let r=o.trim(),a=r?e.findIndex(n=>n.key===r):-1;return{rows:e.map((n,s)=>({...n,[zc]:s===a?t:""})),states:e.map((n,s)=>s===a?C$:k$)}}function Kce(e){return{chosen:typeof e.highlightedCard=="string"?e.highlightedCard.trim():"",badge:typeof e.highlightBadge=="string"?e.highlightBadge:""}}function qce(e){if(!e||typeof e!="object")return;let{press:o,pressLabel:t,pressDisabled:r}=e;if(typeof o=="function")return{press:o,...typeof t=="string"&&t.trim()!==""?{label:t}:null,...r===!0?{disabled:!0}:null}}var FE="data-sf-card-press",BE=`${wO} appearance-none bg-transparent border-0 p-0 m-0`,LE=`${BE} cursor-pointer`,RE=BE;import{paymentMarkItems as v$,paymentMarks as P$}from"efficient-shell/icons/payment";var T$=[tb,rb],DE=e=>T$.includes(e),NE=e=>v$({name:e.label,kind:e.kind}),O$=(e,o)=>e.kind===o.kind&&e.label===o.label&&(e.kind==="brand"?e.mark===o.mark:e.glyph===o.glyph);function ME(e){return P$(e.map(o=>({name:o.label,kind:o.kind}))).map(o=>({label:o.label,kind:e.find(t=>NE(t).some(r=>O$(r,o)))?.kind??""}))}function Zce(e){return NE(e)[0]??null}var HE={heading:"Trusted by *teams worldwide*"},Uc=()=>[{src:"",alt:c("Logo one")},{src:"",alt:c("Logo two")},{src:"",alt:c("Logo three")},{src:"",alt:c("Logo four")},{src:"",alt:c("Logo five")}],E$=id.Logos,ope={label:"Logos",drawsPictures:!0,fields:E$,defaultProps:{items:[],contained:!0}};var _$=()=>Uc().map(e=>({label:e.alt}));function WE(e,o){let t=ld(e,o,_$()).rows.filter(r=>r.label);return DE(Me(e))?ME(t):t}var $l="Flex",F$="Text",zl=e=>Object.values(e??{}).filter(zE),B$=e=>e.type===io&&Me(e.props)!=="",UE=e=>{if(e.type!==$l)return!1;let o=zl(e.props).flat();return o.length>0&&o.every(B$)},jc=e=>fn(e.props?.headPlacement)==="own-box"||UE(e),Vh=e=>e===void 0||Array.isArray(e)&&e.length===0;function jE(e){return e.type===F$?!0:e.type===$l&&zl(e.props).every(o=>o.every(jE))}var GE={ProcessSteps:e=>Vh(e.boxes)&&Gh(e.steps).length===0,Logos:e=>Me(e)?L$(e):Vh(e.logos)&&Vh(e.items)};function L$(e){return ib(e)!==null&&WE(e,!1).length===0}function R$(e){return zl(e.props).flat().every(o=>!ld(o.props,!1).rows.some(AE))}function Gc(e){let o=zl(e.props).flat();return o.some(jc)&&o.every(t=>jc(t)||jE(t))}function D$(e){if(!A$(e)||!jc(e))return e;let o=UE(e)?R$(e):z(GE,String(e.type))?.(e.props??{})===!0;return{...e,props:{...e.props,[Wl]:o?"empty":!0}}}function $E(e){return Xe(e,o=>ze(o,D$))}function KE(e){let o=Object.entries(e.props??{}).filter(([,r])=>zE(r)).filter(([,r])=>r.length>0);if(o.length!==1||o[0][1].length!==1)return null;let t=o[0][1][0];return t?.type===$l&&t.props?{key:o[0][0],inner:t}:null}function qE(e){if(e?.type!==$l||!e.props)return e;if(Gc(e)){let t=$E(e);return{...t,props:{...t.props,[Hl]:!0}}}let o=KE(e);return!o||!Gc(o.inner)?e:{...e,props:{...e.props,[o.key]:[$E(o.inner)],[Hl]:!0}}}function VE(e){let o=e;if(!o||!Array.isArray(o.content))return e;let t=!1,r=o.content.map(a=>{let n=qE(a);return n!==a&&(t=!0),n});return t?{...o,content:r}:e}var N$=e=>z(GE,String(e.type))?.(e.props??{})===!0;function M$(e){if(e.type!==$l||!e.props)return!1;let o=Gc(e)?null:KE(e),t=o?o.inner:e;if(!Gc(t))return!1;let r=zl(t.props).flat().filter(jc);return r.some(a=>Me(a.props)!=="")&&r.every(N$)}function YE(e){return Xe(e,o=>H$(o))}function H$(e){let o=!1,t=[];for(let r of e){if(M$(r)){o=!0;continue}let a=YE(r);a!==r&&(o=!0),t.push(a)}return o?t:e}function XE(e){let o=e;if(!o||!Array.isArray(o.content))return e;let t=!1,r=o.content.map(a=>{if(qE(a)!==a)return a;let n=YE(a);return n!==a&&(t=!0),n});return t?{...o,content:r}:e}var W$=["DocMasthead","AlloyWheelsListing"],Kc="titleLevel",$$=e=>e===2?"h2":"h1",Yh=e=>$$(e?.[Kc])==="h2";function ZE(e){let o=e;if(!o?.content?.length)return e;let t=!1,r=!1,a=o.content.map(n=>W$.includes(n?.type??"")?t?(r=!0,{...n,props:{...n.props??{},[Kc]:2}}):(t=!0,n):n);return r?{...o,content:a}:e}import{readHidable as q$}from"efficient-easel/draw";var Kn="showFor";function JE(){return en("efficient.box-show-for-choices",()=>({choices:[],revision:0}))}var z$=e=>!!e&&typeof e=="object"&&typeof e.slug=="string"&&e.slug.trim()!==""&&typeof e.name=="string"&&e.name.trim()!=="";function Spe(){return JE().choices}function bpe(){return JE().revision}function QE(e){return z$(e)?{slug:e.slug,name:e.name}:void 0}import{readHidable as U$}from"efficient-easel/draw";var Xh="_wallLabelId",j$="_wallLabelledBy",Zh=e=>e.props?.id==null?"":String(e.props.id);function G$(e){if(!e||e.type!=="Text"||!Zh(e))return!1;let o=U$(e.props?.text);return!o.hidden&&o.text.trim()!==""}var K$=e=>!!e&&e.type==="Logos"&&e.props?.look==="marks"&&Zh(e)!=="",e_=(e,o,t)=>({...e,props:{...e.props,[o]:t}});function o_(e){let o=ze(e,r=>Xe(r,o_)),t=null;for(let r=1;r<o.length;r++){if(!K$(o[r])||!G$(o[r-1]))continue;let a=`sf-wall-label-${Zh(o[r-1])}`;t??=o.slice(),t[r-1]=e_(t[r-1],Xh,a),t[r]=e_(t[r],j$,a)}return t??o}function t_(e){return rn(e,o_)}var r_="_cardPressTitles",V$="_cardPressTitle";function Fpe(e,o){let t=e?.[r_],r=t&&typeof t=="object"?t[o]:void 0;return Array.isArray(r)&&r.length?r:void 0}var a_=(e,o)=>({...e,props:{...e.props,...o}});function Y$(e){let o=e.props??{};return e.type!=="Text"||q$(o.text).hidden||typeof o[Vo]=="string"||typeof o[Xh]=="string"?"":Wt(o)}function n_(e,o,t,r){return ze(e,a=>{let n=Y$(a);if(n&&!r.has(n))return r.add(n),t.push({field:n,gates:o}),a_(a,{[V$]:!0});if(a.type==="Text"||Array.isArray(a.props?.[Kn]))return a;let s=a.props?.[on],l=Array.isArray(s)&&s.length?[...o,s.filter(i=>typeof i=="string")]:o;return Xe(a,(i,d)=>aa(a.type,d)?i:n_(i,l,t,r))})}function s_(e){let o,t=Xe(e,(r,a)=>{let n=ze(r,s_);if(!aa(e.type,a))return n;let s=[],l=n_(n,[],s,new Set);return s.length&&((o??={})[a]=s),l});return o?a_(t,{[r_]:o}):t}function l_(e){return rn(e,o=>ze(o,s_))}import{pinnedDuplicateIndices as RU}from"efficient-easel/draw";import{jsx as Wo,jsxs as m1}from"react/jsx-runtime";import{createContext as TU,useContext as OU,useEffect as EU,useRef as x1,useState as h1}from"react";import{jsx as Dr,jsxs as w_}from"react/jsx-runtime";import{useEffect as qn,useRef as C_,useState as Ca}from"react";import{jsx as i_,Fragment as X$,jsxs as Z$}from"react/jsx-runtime";import{useEffect as J$,useRef as d_,useState as Q$}from"react";var ez="#t=0.001",oz=2;function tz(e,o){if(e.readyState<oz||!e.videoWidth||!e.videoHeight)return!1;let t=o.getContext("2d");return t?(o.width=e.videoWidth,o.height=e.videoHeight,t.drawImage(e,0,0,o.width,o.height),!0):!1}function f_({src:e,objectPosition:o="50% 50%",onError:t}){let r=d_(null),a=d_(null),[n,s]=Q$(!1);return J$(()=>{let l=r.current,i=a.current;if(n||!l||!i)return;let d=()=>{tz(l,i)&&s(!0)};return d(),l.addEventListener("loadeddata",d),l.addEventListener("seeked",d),()=>{l.removeEventListener("loadeddata",d),l.removeEventListener("seeked",d)}},[n]),Z$(X$,{children:[i_("canvas",{ref:a,"aria-hidden":!0,className:"absolute inset-0 z-[3] h-full w-full object-cover",style:{objectPosition:o,visibility:n?"visible":"hidden"}}),!n&&i_("video",{ref:r,src:`${e}${ez}`,muted:!0,playsInline:!0,preload:"auto",className:"hidden",onError:t})]})}import{useEffect as az}from"react";var c_="video-time";function p_(e,o,t){if(!Number.isFinite(t)||t<=0)return e;let r=(e+o*t)%t;return r<0?r+t:r}function u_(e,o){let t=e.height-o,r=t>0?-e.top/t:(o-e.top)/(o+e.height);return Math.min(1,Math.max(0,r))}function m_(e,o,t){az(()=>{let r=t.current;if(!e||!r)return;let a=r.ownerDocument.defaultView??window,n=r.closest("[data-motion-pin]")??r,s=()=>{let w=n.getBoundingClientRect();return u_({top:w.top,height:w.height},a.innerHeight)},l=s(),i=!1,d=0,f=!1,m=0,u=()=>{let w=o.current;if(w){if(Math.abs(w.currentTime-d)<.01){f=!1;return}f=!0,w.currentTime=d}},h=()=>{f=!1;let w=o.current;i&&w&&Math.abs(w.currentTime-d)>.02&&u()},I=()=>{let w=s(),T=w-l;l=w;let B=o.current;T===0||!B||!B.duration||(i||(i=!0,B.pause(),d=B.currentTime),d=p_(d,T,B.duration),f||u(),a.clearTimeout(m),m=a.setTimeout(()=>{i=!1,o.current?.play()?.catch(()=>{})},150))},S=()=>{l=s()};return r.addEventListener("seeked",h,!0),a.addEventListener("scroll",I,{passive:!0}),a.addEventListener("resize",S),()=>{r.removeEventListener("seeked",h,!0),a.removeEventListener("scroll",I),a.removeEventListener("resize",S),a.clearTimeout(m)}},[e,o,t])}import{useEffect as sz}from"react";var x_="video-name-ticks";var h_='[data-part="text"] a[href]';function I_(e,o,t){if(t<=0)return[];if(!Number.isFinite(o)||o<=0)return Array.from({length:t},()=>0);let r=o/t;return Array.from({length:t},(a,n)=>Math.min(1,Math.max(0,(e-n*r)/r)))}function g_(e,o,t){return t<=0||!Number.isFinite(o)||o<=0?0:Math.min(t-1,Math.max(0,Math.floor(e/(o/t))))}var lz="var(--overlay-fg)",iz="color-mix(in srgb, var(--overlay-fg) 25%, transparent)";function y_(e,o,t){sz(()=>{let r=t?.current;if(e==="none"||!r)return;let a=r.ownerDocument.defaultView??window,n=r.closest("section")??r.parentElement,s=e==="names"&&n?[...n.querySelectorAll(h_)]:[],l=[];if(e==="names"){r.replaceChildren();for(let m=0;m<s.length;m++){let u=r.ownerDocument.createElement("b");u.style.background=iz;let h=r.ownerDocument.createElement("i");h.style.background=lz,h.style.transform="scaleX(0)",u.appendChild(h),r.appendChild(u),l.push(h)}}let i=s.map(m=>m.style.opacity),d=0,f=()=>{let m=o.current;if(m&&m.duration)if(e==="bar")r.style.transform=`scaleX(${Math.min(1,m.currentTime/m.duration)})`;else{let u=I_(m.currentTime,m.duration,l.length);l.forEach((I,S)=>{I.style.transform=`scaleX(${u[S]})`});let h=g_(m.currentTime,m.duration,s.length);s.forEach((I,S)=>{I.style.opacity=S===h?"":String(.55)})}d=a.requestAnimationFrame(f)};return d=a.requestAnimationFrame(f),()=>{a.cancelAnimationFrame(d),s.forEach((m,u)=>{m.style.opacity=i[u]??""}),e==="names"&&r.replaceChildren()}},[e,o,t])}var dz="data-part",Gpe=Object.freeze({Flex:Object.freeze(["box","card","card-content"]),Grid:Object.freeze(["grid"]),Hero:Object.freeze(["hero","arrows","arrow","dots","dot","strip"]),HeroSlide:Object.freeze(["slide","hero-media","tint","overlay","hero-content","video-time","video-name-ticks"]),HeroSingle:Object.freeze(["hero","hero-media","tint","overlay","hero-content","video-time","video-name-ticks"]),ImageBlock:Object.freeze(["image-block","image-frame","image"]),ButtonBlock:Object.freeze(["button-block","button","button-icon"]),Text:Object.freeze(["text-block","text"]),Heading:Object.freeze(["heading-block","heading"]),LogoBlock:Object.freeze(["logo"]),MenuBlock:Object.freeze(["menu-block","heading","menu","menu-item","menu-link","menu-button"]),SiteHeader:Object.freeze(["header","header-content"]),SiteFooter:Object.freeze(["footer"]),FooterSection:Object.freeze(["footer-block","grid","legal-line","copyright"]),FooterLogo:Object.freeze(["logo-block","logo-link","tagline"]),FooterSocial:Object.freeze(["social-block","social-item","social-link"]),ProductGrid:Object.freeze(["product-grid-block","grid-head","grid-number","heading","description","view-all","count","grid","grid-empty"]),ProductCard:Object.freeze(["card","card-link","card-content","image-block","image-frame","image-plate","image","card-number","badges","badge","eyebrow","product-name","pattern","specs","price","price-note","swatches","swatch","sizes","size","buy","button","page-label"])});function it(e){return{[dz]:e}}var Ul={min:40,max:100,step:5,fallback:100,unit:"vh"};function fz(e){return`${typeof e=="number"?e:Ul.fallback}${Ul.unit}`}function S_(...e){return e.some(o=>typeof o=="number"||jl(o)!==null)}var Jh={...Lk,fallback:680,unit:"px"},Ype={ratio:"16/9",px:`${Jh.fallback}px`},cz=/^(\d{1,5}(?:\.\d{1,3})?)px$/;function jl(e){if(typeof e!="string")return null;let o=_k(e);if(o!==null)return{unit:"ratio",value:e,css:"auto",aspect:o};let t=cz.exec(e);if(t&&Number(t[1])>0){let r=Math.min(Jh.max,Math.max(Jh.min,Number(t[1])));return{unit:"px",value:`${r}px`,px:r,css:`${r}px`}}return null}function pz(e){return Object.keys(e.style??{}).some(o=>o.startsWith("--sf-hero-ar-"))}function Xpe({heightDesktop:e,heightTablet:o,heightMobile:t,heightFixed:r,heightFixedTablet:a,heightFixedMobile:n}){let s=I=>jl(I)?.value,l=S_(e,t,s(r),s(n)),i=S_(o,s(a)),d=(I,S,w)=>{let T=jl(S);return T?.unit==="ratio"?{[`--sf-hero-h-${I}`]:T.css,[`--sf-hero-ar-${I}`]:T.aspect}:{[`--sf-hero-h-${I}`]:T?.css??fz(w)}},f="view-tablet:max-view-desktop:h-[var(--sf-hero-h-t)]",m=l?i?`h-[var(--sf-hero-h-m)] ${f} view-desktop:h-[var(--sf-hero-h-d)]`:"h-[var(--sf-hero-h-m)] view-tablet:h-[var(--sf-hero-h-d)]":i?`h-screen min-h-[680px] ${f} view-tablet:max-view-desktop:min-h-0`:"h-screen min-h-[680px]";if(!l&&!i)return{className:m,style:void 0};let u={...l?d("d",r,e):{},...i?d("t",a,o):{},...l?d("m",n,t):{}},h=pz({style:u})?l?i?" aspect-[var(--sf-hero-ar-m,auto)] view-tablet:max-view-desktop:aspect-[var(--sf-hero-ar-t,auto)] view-desktop:aspect-[var(--sf-hero-ar-d,auto)]":" aspect-[var(--sf-hero-ar-m,auto)] view-tablet:aspect-[var(--sf-hero-ar-d,auto)]":" view-tablet:max-view-desktop:aspect-[var(--sf-hero-ar-t,auto)]":"";return{className:`${m}${h}`,style:u}}var qc=1280,uz="16 / 9",mz="100svh",xz=[{minDppx:3.01,dppx:4,capPx:Math.floor(qc/4)},{minDppx:2.01,dppx:3,capPx:Math.floor(qc/3)},{minDppx:1.01,dppx:2,capPx:Math.floor(qc/2)},{minDppx:null,dppx:1,capPx:qc}];function b_(e=mz){let o=`max(100vw, calc(${e} * ${uz}))`;return[...xz.map(({minDppx:t,capPx:r})=>`${t===null?vn:`${vn} and (min-resolution: ${t}dppx)`} min(${o}, ${r}px)`),"100vw"].join(", ")}function eue(e,o){let t=jl(o);if(t?.unit==="px")return t.css;if(t?.unit==="ratio"){let[r,a]=t.aspect.split("/").map(n=>n.trim());return r&&a?`calc(100vw * ${a} / ${r})`:void 0}if(typeof e=="number"&&e>=Ul.min&&e<=Ul.max)return`${e}svh`}var hz=.5;function Gl({videoSrc:e,videoAv1Src:o,videoSrcPhone:t,videoAv1SrcPhone:r,posterSrc:a,posterSrcPhone:n,showVideo:s=!0,playbackRate:l=hz,objectPosition:i="50% 50%",objectPositionPhone:d,objectPositionTablet:f,quiet:m=!1,slideShown:u,laterSlide:h=!1,laterOfLead:I=!1,phoneFrame:S,followsScroll:w=!1,progress:T,followScrollBar:B}){let P=b_(S),g=SP(d,f),C=Il(),[E,A]=Ca(!1),N=C==="below"&&!E,b=C==="first",_=a||"",y=n||"",v=C_(null),O=_l(v,!0,!0),k=O===void 0?void 0:O==="phone",L=wf({video:e,av1:o,videoPhone:t,av1Phone:r},k===!0),M=L.video||"",K=bf(M,L.av1),[W,se]=Ca(!1),[le,ee]=Ca(!1),[Ie,ae]=Ca(!1),[me,ge]=Ca(!1),Ge=u??!0,[Ve,Eo]=Ca(!1),Ye=C!=="first"&&!I,[Je,qo]=Ca(!1),Qe=C_(null),mo=B?{kind:"bar",fill:B}:void 0;m_(w||!!B,Qe,v),y_((T??mo)?.kind??"none",Qe,(T??mo)?.fill),qn(()=>{if(!Ye)return;if(document.readyState==="complete"){qo(!0);return}let ie=()=>qo(!0);return window.addEventListener("load",ie,{once:!0}),()=>window.removeEventListener("load",ie)},[Ye]),qn(()=>{se(!1),ee(!1),ae(!1),ge(!1)},[M,_,y]),qn(()=>{Ge&&Eo(!0)},[Ge]),qn(()=>{let ie=Qe.current;ie&&(Ge?ie.play()?.catch(()=>{}):ie.pause())},[Ge,Ve,Je]),qn(()=>{if(!h||Ye&&!Je)return;let ie=()=>A(!0);if(typeof window.requestIdleCallback=="function"){let wo=window.requestIdleCallback(ie,{timeout:2e3});return()=>window.cancelIdleCallback(wo)}let Ne=setTimeout(ie,800);return()=>clearTimeout(Ne)},[h,Ye,Je]),qn(()=>{let ie=Qe.current;if(!ie)return;let Ne=()=>{ie.playbackRate=l};return Ne(),ie.addEventListener("loadedmetadata",Ne),()=>ie.removeEventListener("loadedmetadata",Ne)},[M,l]);let $=Sf(_),de=_&&($||y)&&!le?ya(_):{src:_},he=y&&!le?ya(y):{src:y},De=y&&!N&&!E?[{sized:he,media:vn},..._?[{sized:de,media:Ws}]:[]]:[];return w_("div",{ref:v,className:"absolute inset-0 z-[1]",...it("hero-media"),children:[Dr("div",{className:"absolute inset-0",style:{background:"var(--site-surface)"}}),De.map(({sized:ie,media:Ne})=>Dr("link",{rel:"preload",as:"image",href:ie.src,media:Ne,fetchPriority:"high",...ie.srcSet?{imageSrcSet:ie.srcSet,imageSizes:P}:{}},Ne)),(_||y)&&($||y?(()=>{let ie=Dr("img",{..._?{src:de.src}:{},...de.srcSet?{srcSet:de.srcSet,sizes:P}:{},alt:"",...N?{loading:"lazy"}:{},...b?{fetchPriority:"high"}:{},className:`absolute inset-0 z-[2] h-full w-full object-cover ${g.className}`.trim(),style:{display:W?"none":"block",objectPosition:i,...g.style},onError:Ne=>{Ne.currentTarget.currentSrc&&(de.srcSet||he.srcSet?ee(!0):se(!0))}},y?void 0:_);return y?w_("picture",{children:[Dr("source",{media:vn,srcSet:he.srcSet||he.src,sizes:P}),ie]},`${_} ${y}`):ie})():Dr(vc,{src:_,alt:"",fill:!0,...N?{}:E?{loading:"eager"}:{priority:!0},sizes:P,className:`z-[2] object-cover ${g.className}`.trim(),style:{display:W?"none":"block",objectPosition:i,...g.style},onError:()=>se(!0)},_)),s&&!m&&M&&k!==void 0&&Ve&&(!Ye||Je)&&!Ie&&Dr("video",{ref:Qe,autoPlay:!0,loop:!0,muted:!0,playsInline:!0,preload:"metadata",className:"absolute inset-0 z-[3] h-full w-full object-cover",style:{objectPosition:i},onError:()=>ae(!0),children:K.map(ie=>Dr("source",{src:ie.src,type:ie.type},ie.src))},M),s&&m&&M&&k!==void 0&&Ve&&(!Ye||Je)&&!me&&(!_||W)&&Dr(f_,{src:M,objectPosition:i,onError:()=>ge(!0)},M)]})}import{jsx as k_}from"react/jsx-runtime";import{forwardRef as Iz}from"react";var gz=Iz(function(e,o){return k_("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-x-0 bottom-0 z-[2] h-0.5",style:{background:"color-mix(in srgb, var(--overlay-fg) 22%, transparent)"},...it(c_),children:k_("i",{ref:o,className:"block h-full w-full origin-left",style:{background:"var(--overlay-fg)",transform:"scaleX(0)"}})})}),v_=gz;import{jsx as yz}from"react/jsx-runtime";import{forwardRef as Sz}from"react";var bz=Sz(function(e,o){return yz("div",{ref:o,"aria-hidden":!0,className:"pointer-events-none absolute bottom-6 left-1/2 z-[4] flex -translate-x-1/2 gap-1 view-wide:bottom-12 view-wide:gap-2 [&>b]:relative [&>b]:block [&>b]:h-px [&>b]:w-10 [&>b]:overflow-hidden view-wide:[&>b]:w-14 [&_i]:absolute [&_i]:inset-0 [&_i]:origin-left",...it(x_)})}),P_=bz;import{jsx as Io,Fragment as H_,jsxs as rI}from"react/jsx-runtime";import{jsx as Vn}from"react/jsx-runtime";import{useRef as wz}from"react";import{EXPAND_SIDE_VAR as Cz,SCROLL_EFFECTS_WITH_ZOOM as kz,scrollAttrs as vz}from"efficient-shell/format";var Pz={[Cz]:`var(${IC}, 0px)`};function Vc({views:e,origins:o={},boxClass:t,boxAttrs:r,boxStyle:a,takesViewHide:n=!1,atEdge:s=!1,zoomInside:l="layer",zoomLayerClass:i,children:d}){let f=wz(null),m=nf(),u=nt(),h=n?u:Or,I=El(f,!0,s),S=vz(e[I],o[I]),{attrs:w}=S,T=e[I].effect==="expand"?{...S.style,...Pz}:S.style,B=kz.includes(e[I].effect),P=ko(`${yn}${m.fill}${t?` ${t}`:""}`,h.className);if(B&&l==="picture")return h.scope(Vn("div",{ref:f,className:P,...r,...h.attrs,...a?{style:a}:{},children:Vn(Ak,{attrs:w,style:T,children:m.inner(d)})}));let g=Vn(Fk,{children:m.inner(d)});if(B){let E=i??(m.fill?"h-full":void 0);return h.scope(Vn("div",{ref:f,className:P,...r,...h.attrs,style:{...a,overflow:"clip"},children:Vn("div",{...E?{className:E}:{},...w,style:T,children:g})}))}let C=Object.keys(T).length||a?{style:{...a,...T}}:{};return h.scope(Vn("div",{ref:f,className:P,...r,...h.attrs,...w,...C,children:g}))}var ka=["media","image","image2"],xr={media:"Media",image:"Image",image2:"Image 2"},Kl={media:"heroMedia",image:"heroImage",image2:"heroImage2"};function Yc(e,o){return e==="image"&&Js(o)>1?"Image 1":xr[e]}var Wue="Video file",$ue="Upload a video file",zue="AV1 file",Uue="Upload an AV1 file";function Tz(e,o){return bd("mediaType",Kd,o,[e])}var Oz=new Set(Object.keys(qd)),T_="heroPart";function Ez(e,o){return{...o,[T_]:e}}function jue(e,{parts:o={},onlyFor:t,fallback:r,rules:a}){let n={...e},s=[...Object.values(o).flat(),...Kd.flatMap(l=>t[l])].filter(l=>!(l in e));if(s.length)throw new Error(`heroMediaFields: ${s.join(", ")} is not a row of this block`);for(let l of Kd)for(let i of t[l])n[i]=ro(n[i],Tz(l,r));for(let[l,i]of Object.entries(a??{}))i&&(n[l]=ro(n[l],i));for(let l of ka)for(let i of o[l]??[])n[i]=Ez(l,n[i]);return n}function _z(e){let o=e?.[T_];return ka.includes(o)?o:null}function O_(e,o){let t={};for(let[r,a]of Object.entries(e))_z(a)===o&&(t[r]=a);return t}function E_(e){if(!Oz.has(e.type))return[];let o=[{part:"media",label:xr.media,depth:0}];return dk(e.type,e.props.mediaType)!=="video"&&(o.push({part:"image",label:Yc("image",e.props),depth:1}),Js(e.props)>1&&o.push({part:"image2",label:Yc("image2",e.props),depth:1})),o}function va(e,o){return`${e}::${o}`}function Xc(e){if(!e)return null;let o=e.lastIndexOf("::");if(o<=0)return null;let t=e.slice(o+2);return ka.includes(t)?{nodeId:e.slice(0,o),part:t}:null}var ql="data-sf-hero-part";import{MOTION_TIMING as Az}from"efficient-shell/format";var B_="grayscale(1) contrast(1.03)",Vue="Black and white";function Fz(e){return e===!0?{filter:B_}:{}}function Bz(e){let{filter:o}=Fz(e);return o?{style:{filter:o}}:{}}var Pa="sf-photo-grayscale",tI="data-sf-photo-host",__={duration:"--sf-photo-hover-duration",delay:"--sf-photo-hover-delay"},ep=`@media (hover:hover){.${Pa}{filter:${B_};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 L_(e){let o=Az.hover,t={...e.duration!==o.duration.default?{[__.duration]:`${e.duration}s`}:{},...e.delay!==o.delay.default?{[__.delay]:`${e.delay}s`}:{}};return Object.keys(t).length?t:void 0}function R_(e,o,t){if(e===!0)return Bz(!0);if(t?.kind==="mono"){let r=L_(t);return{className:Pa,sheet:ep,...r?{style:r}:{}}}return e===!1?{}:o===!0?{className:Pa}:{}}var D_="data-sf-repeat",Qh="sf-photo-zoom",Lz="--sf-photo-zoom",Yue="sf-photo-wash",Zc="sf-photo-wash-rest",Vl="sf-photo-wash-hover",Qc="sf-photo-frame",N_=(e,o)=>`:not([${D_}]:not(${o}) .${e})`,oI=(e,o)=>`[${D_}]${o} .${e}${N_(e,o)}`,eI=(e,o)=>`${o},${oI(e,":hover")},[${tI}]:hover .${e}${N_(e,":hover")}`,A_=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))`,Rz=`.${Vl}{opacity:0}@media (hover:hover){.${Zc},.${Vl}{transition:${A_("opacity")}}${eI(Vl,`.${Qc}:hover .${Vl}`)}{opacity:1}${eI(Zc,`.${Qc}:hover .${Zc}`)}{opacity:0}}@media (hover:hover) and (prefers-reduced-motion:no-preference){.${Qh}{transition:${A_("transform")}}${eI(Qh,`.${Qc}:hover .${Qh}`)}{transform:scale(var(${Lz}))}}@media (hover:hover) and (prefers-reduced-motion:reduce){.${Zc},.${Vl}{transition:none}}`,Xue="sf-photo-move";function Zue(e){if(!e||!e.zoom&&!e.darken)return null;let o=L_(e);return{className:Qc,sheet:Rz,...o?{style:o}:{}}}function M_(e){return e===!0?{[Pa]:ep}:{}}var Jc="sf-box-reveal",Jue="sf-box-reveal",Dz=8,F_=.3,Que=`@media ${Ws}{.${Jc}{opacity:0;transform:translateY(${Dz}px);transition:opacity ${F_}s ease-out,transform ${F_}s ease-out}${oI(Jc,":hover")},${oI(Jc,":focus-within")}{opacity:1;transform:none}}@media ${Ws} and (prefers-reduced-motion:reduce){.${Jc}{transition:none;transform:none}}`;import{hidableText as Nz}from"efficient-easel/draw";var Mz={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"},Hz={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 W_(e){let o=e.isVideo&&WP(e.videoSource)==="youtube",t=e.isVideo?$P(e.videoPlayback):null,r=t==="click",a=o?zP(Nz(e.youtubeUrl)):null,n=fk(e.mediaLayout);return{fromYouTube:o,onClick:r,youTubeId:a,backgroundFile:e.isVideo&&!o&&!r,followsScroll:t==="scroll"&&!o,progress:t?HP(e.videoProgress,t,o):"none",desktopLayout:n,phoneLayout:ck(e.mediaLayoutPhone,n),twoPictures:!e.isVideo&&Js(e)>1}}function Yl(e,o){return Sn(Sa({_partMotion:e},o))}function Xl(e,o){return zn(Sa({_partMotion:e},o))}var op=e=>Eh({desktop:e.objectPosition,tablet:e.objectPositionTablet,phone:e.objectPositionPhone}),$_=tl.img;function z_({entrance:e,scroll:o,origins:t,editing:r,className:a,attrs:n,style:s,zoomLayerClass:l,children:i}){return e?Io(Pc,{views:e,editing:r,boxClass:a,boxAttrs:n,...s?{boxStyle:s}:{},children:i}):o?Io(Vc,{views:o,...t?{origins:t}:{},boxClass:a,boxAttrs:n,...s?{boxStyle:s}:{},...l?{zoomLayerClass:l}:{},children:i}):Io("div",{className:a,...n,...s?{style:s}:{},children:i})}function Yn(e,o){return R_(void 0,void 0,Vb(Sa({_partMotion:e},o)))}function U_(e){return ka.some(o=>Yn(e,o).className)?{hostAttrs:{[tI]:""},sheet:ep}:{}}function tp({treatment:e,children:o}){return e.className?Io("div",{className:`absolute inset-0 ${e.className}`,...e.style?{style:e.style}:{},children:o}):Io(H_,{children:o})}function rp({color:e,opacity:o,passClicks:t=!0}){return o>0?Io("div",{className:t?"pointer-events-none absolute inset-0 z-[2]":"absolute inset-0 z-[2]",style:{background:e,opacity:Math.min(Math.max(o,0),100)/100},...it("tint")}):null}function ap({part:e,editing:o,marked:t=!0,entrance:r,scroll:a=null,origins:n,className:s,children:l}){let i=o&&t?{[ql]:e}:void 0;return Io(z_,{entrance:r,scroll:a,origins:n,editing:o,className:s,attrs:i,zoomLayerClass:$_,children:l})}function j_({partMotion:e,editing:o,children:t}){let r=Yl(e,"media"),a=Xl(e,"media"),n=Yn(e,"media"),s=Io(of,{fill:tl,children:t}),l=n.className?Io("div",{className:`absolute inset-0 z-[1] ${n.className}`,...n.style?{style:n.style}:{},children:s}):s;return r||a?Io(z_,{entrance:r,scroll:a,editing:o,className:"absolute inset-0 z-[1]",zoomLayerClass:$_,children:l}):Io(H_,{children:l})}function G_({desktopLayout:e,phoneLayout:o,editing:t,marked:r=!0,partMotion:a,first:n,second:s,laterSlide:l=!1}){return rI("div",{className:`absolute inset-0 z-[1] grid ${Mz[o]} ${Hz[e]}`,"data-hero-layout":e,"data-hero-layout-phone":o,children:[Io(ap,{part:"image",editing:t,marked:r,entrance:Yl(a,"image"),scroll:Xl(a,"image"),origins:op(n),className:"relative overflow-hidden",children:rI(tp,{treatment:Yn(a,"image"),children:[Io(Gl,{posterSrc:st(n.src),showVideo:!1,laterSlide:l,objectPosition:n.objectPosition,objectPositionPhone:n.objectPositionPhone,objectPositionTablet:n.objectPositionTablet}),Io(rp,{color:n.tintColor,opacity:n.tintOpacity})]})}),Io(ap,{part:"image2",editing:t,marked:r,entrance:Yl(a,"image2"),scroll:Xl(a,"image2"),origins:op(s),className:`relative overflow-hidden ${Zv({desktop:e==="one",tablet:e==="one",mobile:o==="one"},{atSectionLine:!0})}`.trimEnd(),children:rI(tp,{treatment:Yn(a,"image2"),children:[Io(Gl,{posterSrc:st(s.src),showVideo:!1,laterSlide:l,objectPosition:s.objectPosition,objectPositionPhone:s.objectPositionPhone,objectPositionTablet:s.objectPositionTablet}),Io(rp,{color:s.tintColor,opacity:s.tintOpacity})]})})]})}import{jsx as Nr,Fragment as Wz,jsxs as $z}from"react/jsx-runtime";import{useEffect as zz,useRef as Uz,useState as jz}from"react";import{PlaySolidIcon as Gz}from"efficient-shell/icons/efficient-looks";function K_({youTubeId:e,ownPoster:o,background:t,editing:r}){let[a,n]=jz("large");return zz(()=>n("large"),[e]),e?$z(Wz,{children:[!o&&a!=="none"&&Nr(Qf,{src:a==="large"?UP(e):jP(e),alt:"",className:"absolute inset-0 z-[2] h-full w-full object-cover",onLoad:s=>{a==="large"&&s.currentTarget.naturalWidth<=120&&n("small")},onError:()=>n(a==="large"?"small":"none")},`${e}-${a}`),t&&!r&&Nr("div",{className:"pointer-events-none absolute inset-0 z-[3] overflow-hidden [container-type:size]","aria-hidden":"true",children:Nr("iframe",{src:Ax(e,"background"),title:"",tabIndex:-1,allow:"autoplay; encrypted-media; picture-in-picture",className:"absolute left-1/2 top-1/2 h-[max(100%,56.25cqw)] w-[max(100%,177.78cqh)] -translate-x-1/2 -translate-y-1/2 border-0"})})]}):null}function q_({youTubeId:e,fileSrc:o,fileAv1Src:t,fileSrcPhone:r,fileAv1SrcPhone:a,playing:n,onPlay:s,editing:l}){let i=Uz(null),d=_l(i,!0,!0)==="phone";if(!e&&!o)return null;let f=wf({video:o,av1:t,videoPhone:r,av1Phone:a},d),m=bf(f.video,f.av1);return n&&!l?e?Nr("iframe",{src:Ax(e,"click"),title:Fx,allow:"autoplay; encrypted-media; picture-in-picture; fullscreen",allowFullScreen:!0,className:"absolute inset-0 z-[6] h-full w-full border-0 bg-overlay-scrim"}):Nr("video",{ref:u=>{i.current=u},...m.length===1?{src:m[0].src}:{},controls:!0,autoPlay:!0,playsInline:!0,className:"absolute inset-0 z-[6] h-full w-full bg-overlay-scrim object-contain",children:m.length>1&&m.map(u=>Nr("source",{src:u.src,type:u.type},u.src))},f.video):Nr("button",{ref:u=>{i.current=u},type:"button","aria-label":Fx,onClick:l?void 0:s,className:`absolute left-1/2 top-1/2 z-[4] grid h-16 w-16 -translate-x-1/2 -translate-y-1/2 place-items-center rounded-full bg-btn text-btn-ink shadow-lg transition-transform motion-reduce:transition-none ${l?"pointer-events-none":"cursor-pointer hover:scale-105"}`,children:Nr(Gz,{size:28})})}function V_(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 J_}from"efficient-shell/format";var Q_=["top","middle","bottom"],e1=["left","center","right"],o1="bottom",t1="left",Kz={top:"Top",middle:"Middle",bottom:"Bottom"},qz={left:"Left",center:"Center",right:"Right"},_me="Up and down",Ame="Sideways",Vz={top:"flex-start",middle:"center",bottom:"flex-end"},Yz={left:"flex-start",center:"center",right:"flex-end"},Xz="--sf-hero-phone-y",Zz="--sf-hero-phone-x";function Jz(e){return J_(Q_,o1,e)}function Qz(e){return J_(e1,t1,e)}function r1(e,o){let t=Jz(e),r=Qz(o),a={};return t!==o1&&(a[Xz]=Vz[t]),r!==t1&&(a[Zz]=Yz[r]),a}var eU="--sf-hero-phone-words-top",oU="--sf-hero-phone-words-bottom",tU="--sf-hero-phone-box-gap",Fme=100,Bme=90,Lme=28,rU=0,aU=200,Rme="Words space top",Dme="Words space bottom",Nme="Space between boxes";function aI(e){if(!(typeof e!="number"||!Number.isFinite(e)))return Math.min(aU,Math.max(rU,Math.round(e)))}function a1(e,o,t){let r={},a=aI(e),n=aI(o),s=aI(t);return a!==void 0&&(r[eU]=`${a}px`),n!==void 0&&(r[oU]=`${n}px`),s!==void 0&&(r[tU]=`${s}px`),r}function Mme(){return Q_.map(e=>({label:Kz[e],value:e}))}function Hme(){return e1.map(e=>({label:qz[e],value:e}))}var nU="--sf-hero-words-top",sU="--sf-hero-words-bottom",Y_="--sf-hero-words-top-t",X_="--sf-hero-words-bottom-t",Wme=140,$me=56,lU=0,iU=400,Z_="pt-[var(--sf-hero-words-top,140px)] pb-[var(--sf-hero-words-bottom,56px)]",dU="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 fU(e){if(!(typeof e!="number"||!Number.isFinite(e)))return Math.min(iU,Math.max(lU,Math.round(e)))}function n1(e,o,t,r){let a={},n=(s,l)=>{let i=fU(l);i!==void 0&&(a[s]=`${i}px`)};return n(nU,e),n(sU,o),n(Y_,t),n(X_,r),Object.keys(a).length===0?{className:null,style:a}:{className:Y_ in a||X_ in a?`${Z_} ${dU}`:Z_,style:a}}import{hexToRgb as cU,parseOption as pU}from"efficient-shell/format";var uU=!0;var mU=[[0,".5"],[30,".1"],[60,".1"],[100,".85"]];function s1(e){let o=cU(e);return o?`${o.r},${o.g},${o.b}`:null}function l1(e){return e==null?uU:e!==!1}var xU="classic",hU=[{label:"Classic",value:"classic"},{label:"Edges",value:"edges"}],IU=160,gU=62,yU=".38";function SU(e){return pU(hU,xU,e)}function i1(e,o){let t=(e?s1(e):null)??s1(ir);if(SU(o)==="edges"){let r=`rgba(${t},${yU})`,a=`rgba(${t},0)`;return`linear-gradient(180deg, ${r} 0px, ${a} ${IU}px), linear-gradient(180deg, ${a} ${gU}%, ${r} 100%)`}return`linear-gradient(180deg, ${mU.map(([r,a])=>`rgba(${t},${a}) ${r}%`).join(", ")})`}import{hexToRgb as d1,parseOption as bU}from"efficient-shell/format";var f1="bottom";var wU=[{label:"Bottom",value:"bottom",cell:"bottom"},{label:"Top",value:"top",cell:"top"},{label:"Left",value:"left",cell:"left"},{label:"Right",value:"right",cell:"right"}],CU={bottom:180,top:0,left:270,right:90},kU=[[.55,0],[.15,18],[null,35],[null,55],[.85,100]],vU=[[null,33],[.6,67],[.94,100]];function PU(e,o){let{r:t,g:r,b:a}=d1(e)??d1(ir);return`rgba(${t},${r},${a},${o})`}function c1(e){return bU(wU,f1,e)}function p1(e=ir,o=f1){let t=c1(o),r=(t==="top"||t==="bottom"?kU:vU).map(([a,n])=>`${a===null?"transparent":PU(e,a)} ${n}%`);return`linear-gradient(${CU[t]}deg, ${r.join(", ")})`}function u1(e,o){let t=xo(e.overlayColor),r=xo(e.overlayPosition),a=xo(o)??ir;return!t&&!r?{own:!1,color:a,position:null}:{own:!0,color:t??a,position:c1(r)}}var _U=TU({});function Ixe({name:e,process:o,mediaType:t=qd.HeroSlide,mediaSrc:r,videoSpeed:a,poster:n,mediaAv1:s,mediaSrcPhone:l,mediaAv1Phone:i,posterPhone:d,objectPosition:f,objectPositionPhone:m,objectPositionTablet:u,tintColor:h=ir,tintOpacity:I=0,groups:S,editing:w=!1,themeClassName:T,themeStyle:B,overlayColor:P,overlayPosition:g,mediaLayout:C,mediaLayoutPhone:E,mediaImage2:A,objectPosition2:N,objectPosition2Phone:b,objectPosition2Tablet:_,tintColor2:y=ir,tintOpacity2:v=0,videoSource:O,youtubeUrl:k,videoPlayback:L,videoProgress:M,partMotion:K,laterSlide:W=!1}){let se=Pt(),le=nt(),{alignment:ee="left",textureOpacity:Ie,textureOn:ae,textureColor:me,textureShape:ge,quietVideo:Ge,phoneUpDown:Ve,phoneSideways:Eo,phoneWordsTop:Ye,phoneWordsBottom:Je,phoneBoxGap:qo,wordsTop:Qe,wordsBottom:mo,wordsTopTablet:$,wordsBottomTablet:de,holdReel:he,reelHeld:De,shownSlide:ie,ratioMin:Ne,posterPhoneFrame:wo}=OU(_U),ve=n1(Qe,mo,$,de),Rt=Il(),Ja=W&&Rt==="first",yr=x1(null),[Cm,As]=h1(ie===void 0?void 0:!1);EU(()=>{let Rs=yr.current;As(ie===void 0||!Rs?void 0:V_(Rs.closest(".hero-track"),"data-slide-name")[ie]===Rs)});let Bo=t==="video",Qa=Bo?st(r):void 0,Jt=Bo?st(n):st(r)??st(n),et=Bo?{av1:st(s),phone:st(l),av1Phone:st(i),poster:st(d)}:{},td=typeof a=="number"?a/100:1,{fromYouTube:Qt,onClick:Jr,youTubeId:rd,backgroundFile:er,followsScroll:km,progress:Sr,desktopLayout:ad,phoneLayout:vm,twoPictures:nd}=W_({isVideo:Bo,videoSource:O,videoPlayback:L,videoProgress:M,youtubeUrl:k,mediaLayout:C,mediaLayoutPhone:E}),[yt,sd]=h1(!1),Fs=x1(null);yt&&De===!1&&sd(!1);let Bs=!yt,G=u1({overlayColor:P,overlayPosition:g},me),Fe=Bo?null:Yl(K,"image"),Lo=Bo?null:Xl(K,"image"),St=U_(K),Dt=Wo(tp,{treatment:Bo?{}:Yn(K,"image"),children:Wo(Gl,{videoSrc:er?Qa:void 0,videoAv1Src:er?et.av1:void 0,videoSrcPhone:er?et.phone:void 0,videoAv1SrcPhone:er?et.av1Phone:void 0,posterSrc:Jt,posterSrcPhone:et.poster,showVideo:er,playbackRate:td,objectPosition:f,objectPositionPhone:Bo?void 0:m,objectPositionTablet:Bo?void 0:u,quiet:Ge,slideShown:Cm,laterSlide:W,laterOfLead:Ja,phoneFrame:wo,followsScroll:km,progress:Sr==="none"?void 0:{kind:Sr,fill:Fs}})}),Ls=m1("section",{ref:yr,className:ko(`${Ne?"relative flex min-h-full w-full flex-col overflow-clip":"relative h-full w-full overflow-hidden"}${T?` ${T}`:""}`,le.className),...le.attrs,style:B,"data-slide-name":e??"","data-slide-process":o??"","data-slide-media":er&&Qa?"video":"still",...St.hostAttrs,...it("slide"),children:[Wo(Dc,{sheet:St.sheet}),Wo(j_,{partMotion:K,editing:w,children:nd?Wo(G_,{laterSlide:W,desktopLayout:ad,phoneLayout:vm,editing:w,partMotion:K,first:{src:r,objectPosition:f,objectPositionPhone:m,objectPositionTablet:u,tintColor:h,tintOpacity:I},second:{src:A,objectPosition:N,objectPositionPhone:b,objectPositionTablet:_,tintColor:y,tintOpacity:v}}):Qt||Fe||Lo?m1(ap,{part:Bo?"media":"image",editing:w,entrance:Fe,scroll:Lo,origins:op({objectPosition:f,objectPositionTablet:u,objectPositionPhone:m}),className:"absolute inset-0 z-[1]",children:[Dt,Qt&&Wo(K_,{youTubeId:rd,ownPoster:!!Jt,background:!Jr,editing:w})]}):Dt}),Jr&&Wo(q_,{youTubeId:rd,fileSrc:Qt?void 0:Qa,fileAv1Src:Qt?void 0:et.av1,fileSrcPhone:Qt?void 0:et.phone,fileAv1SrcPhone:Qt?void 0:et.av1Phone,playing:yt,onPlay:()=>{sd(!0),he?.()},editing:w}),Bs&&!nd&&Wo(rp,{color:h,opacity:I,passClicks:!1}),Bs&&l1(ae)&&Wo("div",{className:"absolute inset-0 z-[2]",style:{background:G.own?p1(G.color,G.position??void 0):i1(G.color,ge),...Ie!==void 0?{opacity:Ie/100}:null},...it("overlay")}),Bs&&Wo("div",{className:[Ne?"sf-hero-group-layer relative z-[3] mx-auto w-full flex-1 max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)]":"sf-hero-group-layer absolute inset-0 z-[3] mx-auto max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)]",ve.className??"pt-[140px] pb-14",se?kC:"",w?"sf-hero-group-layer-edit":""].filter(Boolean).join(" "),style:{...dC,...r1(Ve,Eo),...a1(Ye,Je,qo),...ve.style},...it("hero-content"),children:S&&Wo(S,{className:"sf-hero-group-zone",minEmptyHeight:160})}),Sr==="bar"?Wo(v_,{ref:Fs}):Sr==="names"?Wo(P_,{ref:Fs}):null]});return le.scope(Ja?Wo(Jf,{children:Ls}):Ls)}var I1=Array.from({length:3},(e,o)=>({name:`Slide ${o+1}`,process:"Category",mediaType:"image",mediaVideo:"",poster:""}));import{newNodeId as w1}from"efficient-easel/draw";import{isNodeList as FU}from"efficient-easel/data";var nI=3,sI=()=>({type:q,props:{direction:"column"},slots:{[Ce]:[{type:"ImageBlock"},{type:q,props:{direction:"column"},slots:{[Ce]:[{type:"Text",props:br()},{type:"Text"}]}}]}}),g1=()=>Array.from({length:nI},sI);var y1=["","","","","",""],S1="#ticker",Zl="strip",lI={sectionAccent:Cr,line:!1};function AU(e){return(Array.isArray(e.tickerItems)?e.tickerItems:[]).map(o=>typeof o?.text=="string"?o.text:"").filter(o=>o.trim()!=="")}function iI(e){return AU(e).length>0}function kxe(e){return e.showTicker!==!1&&iI(e)}var C1=(e,o)=>({type:e.type,props:{...o?.(e.type)??{},...Object.fromEntries(Object.entries(e.props).map(([t,r])=>[t,FU(r)?r.map(a=>C1(a,o)):r]))}}),BU=e=>{let[o]=Mt([sI()],a=>w1(a)),{id:t,...r}=C1(o,e).props;return r},dt={Hero:{slot:"slides",childType:"HeroSlide",addLabel:"Add slide",slider:!0,seeds:()=>I1.map(e=>({...e}))},HeroSlide:{slot:"groups",childType:"HeroGroup",addLabel:`Add ${Ms.toLowerCase()}`,seeds:()=>[],addBlocked:fx,notice:cx},HeroSingle:{slot:"boxes",childType:"HeroGroup",addLabel:`Add ${Ms.toLowerCase()}`,seeds:()=>[],addBlocked:fx,notice:cx},ProcessSteps:{slot:Ns,childType:q,addLabel:`Add ${Ms.toLowerCase()}`,seeds:e=>Array.from({length:nI},()=>BU(e)),skipSeed:e=>Array.isArray(e.steps)&&e.steps.length>0}},b1=1,LU={slot:Zl,childType:q,addLabel:`Add ${Ms.toLowerCase()}`,seeds:()=>[],addBlocked:e=>e.length>=b1?"This Hero has its Scrolling Bar already. Delete it to add another.":null,notice:e=>e.length>b1?`This Hero holds ${e.length} Scrolling Bars. Keep one and delete the others.`:null},k1={Hero:{[Zl]:LU}};function Dxe(e){for(let[o,t]of Object.entries(e)){if(eo(dt,o)&&z(dt,o)!==t)throw new Error(`lib/document/slot-specs: "${o}" already has a slot spec`);dt[o]=t}}function Nxe(e,o){let t=z(dt,e);return t?{slot:t.slot,children:t.seeds(o).map(r=>({type:t.childType,props:{id:w1(t.childType),...r}}))}:null}var DU=["GalleryB"];function v1(e){let o=e.content;if(!Array.isArray(o))return e;let t=!1,r=o.map(s=>{let l=s?.type;if(!l||!DU.includes(l))return s;let i=z(dt,l);if(!i?.legacy)return s;let d=s.props??{},f=d[i.slot];if(Array.isArray(f)&&f.length>0)return s;let m=i.legacy(d);if(!m.length)return s;t=!0;let u=String(d.id??l),h=m.map((I,S)=>({type:i.childType,props:{id:`${i.childType}-${u}-${S}`,...I}}));return{...s,props:{...d,[i.slot]:h}}}),a=new Set(RU(r)),n=a.size?r.filter((s,l)=>!a.has(l)):r;return a.size&&(t=!0),t?{...e,content:n}:e}var NU={"Logos.logosPerRow":"columns","HeroSlide.tintOpacity":"overlay","Split.textBgTint":"overlay"},MU={"Footprint.source":"typed"};function P1(e){let o=e.props,t=!1;if(e.type&&o)for(let[r,a]of Object.entries(NU)){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(MU)){let n=r.indexOf("."),s=r.slice(n+1);if(r.slice(0,n)!==e.type||!(s in o))continue;let l=typeof o[s]=="string"?o[s].trim():"",i={...o};delete i[s],sb(l)&&l!==a&&!Me(i)&&(i[lo]=l),o=i,t=!0}if(e.type&&o){let r=kd(e.type,o);r!==o&&(o=r,t=!0)}if(o){let r=Xe({props:o},a=>ze(a,P1));r.props!==o&&(o=r.props,t=!0)}return t?{...e,props:o}:e}function T1(e){return dd(e,o=>ze(o,P1))}import{readHidable as HU}from"efficient-easel/draw";var qt=q,Vt=Ce;function Ta(e){if(e.theme)return sr(e.theme);let o=e.site?.themePresets;return o?sr({selected:e.site?.selectedPreset??0,themes:[...o]}):void 0}function WU(e,o){return o===0?`${e}~box`:`${e}~box-${o+1}`}var E1=new Set(["id"]),Mr={},Jl=[],$U={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"]},zU=Object.keys($U),Oa=["Breadcrumb","DocBody","Form","SubmitBuild","Footprint","FAQ","ContactLocations","ProcessSteps",...zU,"Stats","Logos","PaymentBadges","PaymentLogosBlock","FitmentFinder","DocMasthead","DocTabs","Timeline","TimelineTrack","OrderSummary","Chart","Mockup","Integrations","Countdown","FeaturedCover","IntroBleed","SectionHeader","TitleWithButtons","Prose","ParagraphsA","Banner","Cards"];function no(e){for(let[o,t]of Object.entries(e)){if(eo(Mr,o)&&z(Mr,o)!==t)throw new Error(`lib/sections/section-to-box: "${o}" already has a row`);Mr[o]=t}}function Hr(e){return z(Mr,e)}function UU(e){return eo(Mr,e)&&Jl.includes(e)}function _1(e,o=Oa){return eo(Mr,e)&&(o.includes(e)||UU(e))}function the(e){let o=z(Ct,e);if(!o)throw new Error(`lib/sections/section-to-box: "${e}" has no head row in SPLITTABLE_SECTIONS`);let t=[{kind:"text",key:o.num,role:"eyebrow"},{kind:"text",key:o.title,role:"heading"}];return o.description&&t.push({kind:"text",key:o.description,role:"body"}),o.headRows.includes("linkText")&&o.headRows.includes("linkHref")&&t.push({kind:"button",key:"linkText",href:"linkHref"}),t}var dI=e=>HU(e),We=e=>dI(e).text.trim()!=="";function jU(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 GU=e=>e==="heading"?br():e==="eyebrow"?ar():{};function KU(e,o,t,r){let a={...e._partStyles?.text??{},...o??{},...t??{}};return(r==="center"||r==="right")&&a.align===void 0&&(a.align=r),Object.keys(a).length?{_partStyles:{text:a}}:{}}function qU(e,o){if(e===void 0)return{};if(typeof e=="string")return{variant:e};let t=o[e.key];return{variant:(typeof t=="string"?z(e.map,t):void 0)??e.fallback}}function O1(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 VU(e){let o=new Set([...E1,"headPlacement","_partStyles",...Object.keys(e.drop??{}),...Object.keys(e.reads??{})]),t=a=>{for(let n of a??[])o.add(typeof n=="string"?n:n[0])},r=a=>{for(let n of a)switch(n.kind){case"text":case"image":o.add(n.key),n.kind==="image"&&n.alt&&o.add(n.alt);break;case"button":o.add(n.key),o.add(n.href),typeof n.variant=="object"&&o.add(n.variant.key);break;case"list":o.add(n.key);break;case"group":case"block":t(n.box),r(n.parts??[]);break;case"core":if(n.keep!=="rest"&&n.keep.forEach(s=>o.add(s)),Object.keys(n.rename??{}).forEach(s=>o.add(s)),n.derive?.reads.forEach(s=>o.add(s)),typeof n.slots!="function")for(let s of Object.values(n.slots??{}))for(let l of s)"kind"in l&&o.add(l.key);break}};for(let a of[e,...e.also??[]])t(a.box),r(a.parts);return o}var fI=e=>fn(e.headPlacement)==="own-box";function YU(e){return fI(e)?"its head sits in a Box of its own above it (own-box): the row draws the head inline":void 0}function XU(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 ZU(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 JU(e,o,t){if(!t.press)for(let r of ZU(e)){let a=XU(o,r);if(a!==void 0)return a}}function Ea(e,o,t={}){let r=e.props,a=(o.ownBoxConverts?void 0:YU(r))??JU(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,C)=>{s.push({key:g,home:C}),i.add(g)},f=r._partStyles??{},m=VU(o),u=0,h=(g,C)=>({type:g,props:{...C,id:`${n}~${g}-${++u}`}}),I=(g,C,E,A,N,b,_)=>{if(N){for(let v of g??[]){let O=typeof v=="string"?v:v[0];E[O]!==void 0&&_(O,`nothing \u2014 the ${A} has no parts, so it is not drawn`)}return}let y=typeof C=="function"?C(r,t):C??{};return O1(g??[],y,E,(v,O,k)=>_(v,k?`nothing \u2014 the old value draws nothing (${A}: no ${O})`:`${b}${A}: ${O}`),t)},S=g=>Mt(g,C=>`${n}~${C}-${++u}`),w=(g,C,E)=>{let A=g.of?g.of(C):Array.isArray(C[g.key])?C[g.key]:[],N=typeof g.props=="function"?g.props(r,t):g.props??{},b=A.map((k,L)=>{let M=k??{},K=g.item?.(M,L,r)??{},W=T(K.reverse?[...g.parts].reverse():g.parts,M,!1,`item ${L+1}: `);return g.flat?K.props?W.map(se=>({...se,props:{...se.props,...K.props,id:se.props.id}})):W:[h(qt,{name:`${g.name} ${L+1}`,...N,...K.props??{},[Vt]:W})]});if(g.groups){let k=g.groups;return E(g.key,A.length?`one Box per item (${A.length}), in a Box per group`:"nothing \u2014 the list is empty"),wd(A.map(L=>L??{}),k.of,k.of).map((L,M)=>{let K=L.items.map(ae=>ae.item),W=k.parts?T(k.parts,k.head?.(K,r)??{},!1,`group ${M+1}: `):[],se=L.items.map(ae=>b[ae.index]),le=k.perRow?.(K.length,r),ee=Number.isInteger(le)&&le>=1?le:1,Ie=[];if(k.perRow&&ee<se.length)for(let ae=0;ae*ee<se.length;ae++)Ie.push(se.slice(ae*ee,(ae+1)*ee).flat());return h(qt,{name:`${k.name} ${M+1}`,...k.props??{},[Vt]:[...W,h(qt,{name:`${k.itemsName} ${M+1}`,...k.itemsProps?.(K.length,r)??{},[Vt]:Ie.length?Ie.map((ae,me)=>h(qt,{name:`${k.rowName??`${k.itemsName} row`} ${me+1}`,...k.rowProps??{},[Vt]:ae})):se.flat()})]})})}let _=g.perRow?.(r),y=g.perRow?Number.isInteger(_)&&_>=1?_:1:0;if(E(g.key,(A.length?g.flat?`each item's parts (${A.length} items), in order`:`one Box per item (${A.length}), its parts inside`:"nothing \u2014 the list is empty")+(y&&A.length?`, in rows of ${y}`:"")),!y)return b.flat();let v=typeof g.rowProps=="function"?g.rowProps(r,t):g.rowProps??{},O=[];for(let k=0;k*y<b.length;k++){let L=b.slice(k*y,(k+1)*y).flat(),M=g.rowFiller?y-b.slice(k*y,(k+1)*y).length:0;O.push(h(qt,{name:`${g.rowName??`${g.name} row`} ${k+1}`,...v,[Vt]:[...L,...Array.from({length:M},(K,W)=>h(qt,{name:`Empty ${W+1}`,...g.rowFiller,[Vt]:[]}))]}))}return O},T=(g,C,E,A)=>{let N=[],b=(y,v)=>E?d(y,v):void 0,_=y=>E?f[y]:void 0;for(let y of g)if(!(y.when&&!y.when(r,E?void 0:C)))switch(y.kind){case"text":{let v=dI(C[y.key]);if(!v.text.trim()&&!(E&&t.press&&o.pressKeepsEmpty?.includes(y.key))){b(y.key,"nothing \u2014 empty words draw nothing, so no block");break}let O=GU(y.role??"body"),{_partStyles:k,...L}=O,M=KU(O,y.styleFrom?{...y.style,...y.styleFrom(r,t)}:y.style,_(y.key),y.props?.align);N.push(h("Text",{text:y.mark==="accentLead"?jU(v.text):y.mark==="accentItalic"?Hs(v.text):v.text,...L,...y.props??{},...M,...v.hidden?{_hidden:!0}:{}})),b(y.key,`${A}Text block: its words${v.hidden?", hidden":""}`);break}case"button":{let v=dI(C[y.key]);if(!v.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 O=typeof C[y.href]=="string"&&C[y.href]?C[y.href]:"#",k={...y.style??{},..._(y.key)??{}};N.push(h("ButtonBlock",{label:v.text,href:O,...typeof y.props=="function"?y.props(C,t):y.props??{},...qU(y.variant,C),...Object.keys(k).length?{_partStyles:{label:k}}:{},...v.hidden?{_hidden:!0}:{}})),b(y.key,`${A}Button block: its words`),b(y.href,`${A}Button block: its link`),typeof y.variant=="object"&&b(y.variant.key,`${A}Button block: its Style`);break}case"image":{let v=C[y.key];if(typeof v!="string"||!v){b(y.key,"nothing \u2014 no picture, no block"),y.alt&&b(y.alt,"nothing \u2014 no picture to describe");break}let O=y.alt&&typeof C[y.alt]=="string"?C[y.alt]:"";N.push(h("ImageBlock",{src:v,alt:O,...y.props??{}})),b(y.key,`${A}Image block: its picture`),y.alt&&b(y.alt,`${A}Image block: its alt text`);break}case"list":{N.push(...w(y,C,b));break}case"group":{let v=T(y.parts,C,E,A),O=I(y.box,y.props,C,`${y.name} Box`,!v.length&&!y.keepEmpty,A,b);O&&N.push(h(qt,{name:y.name,...O,[Vt]:v}));break}case"block":{let v=y.parts?T(y.parts,C,E,A):[],O=I(y.box,y.props,C,`${y.type} block`,!!y.parts&&!v.length&&!y.keepEmpty,A,b);O&&N.push(h(y.type,{...O,...y.slot?{[y.slot]:v}:{}}));break}case"core":{let v=y.as??e.type,O={...y.headless?{}:{headPlacement:"own-box"},...y.props??{}},k=y.keep==="rest"?Object.keys(C).filter(M=>!m.has(M)&&!(M in O)):y.keep;for(let M of k)C[M]!==void 0&&(O[M]=C[M],b(M,`the ${v} block inside the Box`));if(y.keep==="rest"){for(let K of Object.keys(y.props??{}))C[K]!==void 0&&!m.has(K)&&b(K,`nothing \u2014 the ${v} block inside the Box has the row's own value`);C.headPlacement!==void 0&&b("headPlacement",`the ${v} block inside the Box: own-box`);let M=Object.fromEntries(Object.entries(f).filter(([K])=>!m.has(K)));Object.keys(M).length&&(O._partStyles=M)}for(let[M,K]of Object.entries(y.rename??{}))C[M]!==void 0&&(O[K]=C[M],b(M,`the ${v} block inside the Box: ${K}`));if(y.derive){Object.assign(O,y.derive.props(C,t));for(let M of y.derive.reads)C[M]!==void 0&&b(M,`the ${v} block inside the Box`)}let L=typeof y.slots=="function"?y.slots(C,t):y.slots??{};for(let[M,K]of Object.entries(L))O[M]=K.flatMap(W=>"kind"in W?w(W,C,b):S([W]));N.push(h(v,O));break}}return N},B=(g,C)=>{let E=C===0?"Box":`${g.name} Box`,A=T(g.parts,r,!0,C===0?"":`${E}: `),N=typeof g.boxProps=="function"?g.boxProps(r,t):g.boxProps??{},b=O1(g.box??[],N,r,(_,y,v)=>d(_,v?`nothing \u2014 the old value draws nothing (${E}: no ${y})`:`${E}: ${y}`),t);return{type:qt,props:{name:g.name,...b,[Vt]:A,id:WU(n,C)}}},P=[o,...o.also??[]].map(B);r._partStyles!==void 0&&d("_partStyles","each old part's style moved to its new part");for(let[g,C]of Object.entries(o.reads??{}))r[g]!==void 0&&d(g,C);for(let[g,C]of Object.entries(o.drop??{}))g in r&&(l.push({key:g,why:C}),i.add(g));for(let g of Object.keys(r))E1.has(g)||i.has(g)||l.push({key:g,why:"not in the row \u2014 not carried"});return{node:P[0],nodes:P,carried:s,dropped:l,siteWrites:[...o.site?.(e,t)??[]]}}function A1(e,o=Jl,t={}){let r=e.content;if(!Array.isArray(r))return e;let a=!1,n=r.flatMap(s=>{let l=s&&typeof s.type=="string"&&o.includes(s.type)?z(Mr,s.type):void 0;if(!l)return[s];let i=Ea(s,l,t);return i.skipped!==void 0?[s]:(a=!0,i.nodes)});return a?{...e,content:n}:e}function F1(e,o=Jl,t={}){if(!Array.isArray(e))return[];let r=[];return e.forEach((a,n)=>{let s=a&&typeof a.type=="string"&&o.includes(a.type)?z(Mr,a.type):void 0;if(!s)return;let l=Ea(a,s,t);l.skipped===void 0&&r.push({index:n,node:l.node,nodes:l.nodes})}),r}import{BLOCK_FIXED_WIDTH as QU,BLOCK_SIZE_KEYS as ej,parseBlockWidthFit as sp,phoneKey as B1,parseTextFit as np,tabletKey as L1,viewKeyAt as R1}from"efficient-easel/draw";import{sideLengthAt as oj}from"efficient-easel/screen/lib/content/length-units";var tj="sf-block-size",Ql=["width","minWidth","maxWidth"],lp=e=>`${e}Unit`,Wr=e=>typeof e=="number"&&Number.isFinite(e)&&e>=0?e:void 0,rj={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"}},H1={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"}},aj={desktop:H1.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"}},nj={two:{desktop:"view-wide:[.flex-row>*>&]:grow"},three:{desktop:"view-desktop:[.flex-row>*>&]:grow",tablet:"view-wide:max-view-desktop:[.flex-row>*>&]:grow"}},W1="max-view-wide:grow!";function $1(e){return ip(e).mode.phone==="fill"}var sj={desktop:"--sf-bw",tablet:"--sf-bw-t",phone:"--sf-bw-p"},lj={fill:"data-sf-width-fill",fixed:"data-sf-width-fixed"},ij="data-sf-min-width",D1={two:{desktop:"wide",phone:ux.phone},three:ux},dj={minWidth:{desktop:["--sf-bmin","view-wide:min-w-[var(--sf-bmin)]!"],phone:["--sf-bmin-p","max-view-wide:min-w-[var(--sf-bmin-p)]!"]},maxWidth:{desktop:["--sf-bmax","view-wide:max-w-[var(--sf-bmax)]"],phone:["--sf-bmax-p","max-view-wide:max-w-[var(--sf-bmax-p)]"]}},cI={minWidth:{desktop:["--sf-bmin","view-desktop:min-w-[var(--sf-bmin)]!"],tablet:["--sf-bmin-t","view-wide:max-view-desktop:min-w-[var(--sf-bmin-t)]!"],phone:["--sf-bmin-p","max-view-wide:min-w-[var(--sf-bmin-p)]!"]},maxWidth:{desktop:["--sf-bmax","view-desktop:max-w-[var(--sf-bmax)]"],tablet:["--sf-bmax-t","view-wide:max-view-desktop:max-w-[var(--sf-bmax-t)]"],phone:["--sf-bmax-p","max-view-wide:max-w-[var(--sf-bmax-p)]"]}},fj={minWidth:{desktop:cI.minWidth.desktop,tablet:["--sf-bmin-t","view-tablet:max-view-desktop:min-w-[var(--sf-bmin-t)]!"],phone:["--sf-bmin-p","max-view-tablet:min-w-[var(--sf-bmin-p)]!"]},maxWidth:{desktop:cI.maxWidth.desktop,tablet:["--sf-bmax-t","view-tablet:max-view-desktop:max-w-[var(--sf-bmax-t)]"],phone:["--sf-bmax-p","max-view-tablet:max-w-[var(--sf-bmax-p)]"]}},cj=["widthFit",...Ql],N1={desktop:"view-wide:whitespace-nowrap view-wide:[&_*]:whitespace-nowrap!",phone:"max-view-wide:whitespace-nowrap max-view-wide:[&_*]:whitespace-nowrap!"},pI={desktop:"view-desktop:whitespace-nowrap view-desktop:[&_*]:whitespace-nowrap!",tablet:"view-wide:max-view-desktop:whitespace-nowrap view-wide:max-view-desktop:[&_*]:whitespace-nowrap!",phone:"max-view-wide:whitespace-nowrap max-view-wide:[&_*]:whitespace-nowrap!"},pj={desktop:pI.desktop,tablet:"view-tablet:max-view-desktop:whitespace-nowrap view-tablet:max-view-desktop:[&_*]:whitespace-nowrap!",phone:"max-view-tablet:whitespace-nowrap max-view-tablet:[&_*]:whitespace-nowrap!"},z1={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"},uj={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:z1.phone},U1={desktop:"view-wide:max-w-full",phone:"max-view-wide:max-w-full"},M1={desktop:"view-desktop:max-w-full",tablet:"view-wide:max-view-desktop:max-w-full",phone:U1.phone};function j1(e){let o=ip(e);return o.sides.filter(t=>o.mode[t]==="fill").map(t=>nj[o.three?"three":"two"][t]).filter(Boolean).join(" ")}function G1(e){let{three:o,sides:t,mode:r,lengthPerSide:a}=ip(e),n=d=>o?D1.three[d]:D1.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[lj[d]]=s[d].join(" "));return s.min.length&&(i[ij]=s.min.join(" ")),i}function ip(e){let o=cj.some(a=>{let n=e[a]?.tablet;return a==="widthFit"?sp(n)!==void 0:Wr(n)!==void 0}),t=o?["desktop","tablet","phone"]:["desktop","phone"],r=(a,n)=>{let s=a(n?.desktop),l=o?a(n?.tablet)??s:s;return{desktop:s,tablet:l,phone:a(n?.phone)??l}};return{three:o,sides:t,perSide:r,lengthPerSide:a=>{let n=lp(a),s={};for(let i of t)s[R1(a,In(i))]=Wr(e[a]?.[i]),s[R1(n,In(i))]=e.units?.[a]?.[i];let l=i=>oj(s,{length:a},n,In(i),"length")??void 0;return{desktop:l("desktop"),tablet:l("tablet"),phone:l("phone")}},mode:r(sp,e.widthFit)}}function uI(e,{atSectionLine:o=!1}={}){let t=["desktop","tablet","phone"].some(v=>np(e.textFit?.[v])==="ellipsis"),r=o&&!t,a=r?aj:H1,n=r?fj:cI,s=r?pj:pI,l=[],i={},d={},{three:f,sides:m,lengthPerSide:u,mode:h}=ip(e),I=u("width");for(let v of m){let O=h[v];!O||O==="fit"||(l.push(f?a[v][O]:rj[v][O]),O==="fixed"&&(i[sj[v]]=mn(I[v]?.value??QU.fallback,I[v]?.unit)))}for(let v of Ql.filter(O=>O!=="width")){let O=u(v);for(let k of m){let L=O[k];if(L===void 0)continue;let[M,K]=f?n[v][k]:dj[v][k];i[M]=mn(L.value,L.unit),l.push(K)}}let S=np(e.textFit?.desktop),w=np(e.textFit?.phone),T=v=>{let O=Wr(e.minFont?.[v]);return O===void 0?void 0:e.units?.minFont?.[v]==="vw"?`${O}vw`:String(O)},B=T("desktop"),P=T("phone"),g=np(e.textFit?.tablet),C=g!==S||w!==void 0?g:void 0,E=T("tablet"),A=E!==B||P!==void 0?E:void 0,N=Wr(e.maxWidth?.desktop),b=Wr(e.maxWidth?.tablet)??N,_={desktop:N!==void 0,tablet:b!==void 0,phone:(Wr(e.maxWidth?.phone)??b)!==void 0},y=(v,O,k)=>{if(O!=="line"&&O!=="ellipsis")return;let L=v==="tablet"?void 0:v,M=(K,W)=>k||!L?K[v]:W[L];if(O==="line"){l.push(M(s,N1));return}if(l.push(M(pI,N1)),l.push(M(uj,z1)),f&&!k&&v==="desktop")for(let K of["desktop","tablet"])_[K]||l.push(M1[K]);else _[v]||l.push(M(M1,U1))};return C?(y("desktop",S,!0),y("tablet",C,!0),y("phone",w??C,!0)):(y("desktop",S,!1),y("phone",w??S,!1)),S&&(d[cr.fit]=S),C&&(d[cr.fitTablet]=C),w&&(d[cr.fitPhone]=w),B!==void 0&&(d[cr.min]=B),A!==void 0&&(d[cr.minTablet]=A),P!==void 0&&(d[cr.minPhone]=P),!r&&(C||A!==void 0)&&(d[cr.edge]=""),l.length===0&&Object.keys(d).length===0?null:{className:[tj,...l].join(" "),style:i,attrs:d}}function dhe(e){if(Wr(e.maxWidth?.desktop)!==void 0)return!0;let o=sp(e.widthFit?.desktop);return o==="fill"||o==="fixed"}function K1(e){return["desktop","tablet","phone"].some(o=>{let t=sp(e.widthFit?.[o]);return t==="fixed"||t==="fill"||Wr(e.minWidth?.[o])!==void 0})}function dp(e){let o={};for(let t of ej){let r=e[t],a=e[L1(t)],n=e[B1(t)];(r!==void 0||a!==void 0||n!==void 0)&&(o[t]={desktop:r,tablet:a,phone:n});let s=lp(t),l={desktop:e[s],tablet:e[L1(s)],phone:e[B1(s)]};(l.desktop!==void 0||l.tablet!==void 0||l.phone!==void 0)&&((o.units??={})[t]=l)}return o}var q1={label:"Button",defaultProps:{label:"",href:"#",variant:"primary",align:"left",contained:!0}};import{parseHexColor as mj}from"efficient-shell/format";import{convertLength as xj}from"efficient-easel/screen/lib/content/length-units";import{viewKeyAt as V1}from"efficient-easel/draw";var Yt=(e,o,t,r)=>o===t?e:xj(e,o,t,r,{min:0,max:200,step:4}),_a={textFit:"line",textFitPhone:"wrap"},Aa={...U,[Vo]:""},{label:$he,href:zhe,...hj}=q1.defaultProps,fo=hj,Fa={buttonFillOpacity:0,buttonBorder:{width:0},buttonPaddingTop:0,buttonPaddingRight:0,buttonPaddingBottom:0,buttonPaddingLeft:0},Y={...jm,sectionAccent:0},Zn={sectionAccent:-1},J=[...vr,"sectionHeightMode","sectionHeightValue","sectionHeightUnit","sectionHeightModeTablet","sectionHeightValueTablet","sectionHeightUnitTablet","sectionHeightModePhone","sectionHeightValuePhone","sectionHeightUnitPhone","sectionCorners","sectionCornerSides","sectionBorder","sectionBorderTablet","sectionBorderPhone","sectionAccent",gk.unitKey,...bk,...xk,"anchor",Ys,...Pn,Dd,...jd,...Oc,...Ud(["widthFit",...Ql,...Ql.map(lp)]),...Object.values(Ao)],Xn="a section width key, ignored since efficient-web-builder 45 (an old key; a section's own width has new keys, lib/content/section-width), so dropping it changes nothing",X={sectionSurface:"read by nothing in src/ (searched 2026-10-24): a retired theme key that draws nothing today, so dropping it changes nothing",widthMode:Xn,fullWidth:Xn,pageWidth:Xn,backgroundWidth:Xn,contentWidth:Xn,contentMax:Xn},te=Object.fromEntries(["sectionPaddingLeft","sectionPaddingRight","sectionPaddingLeftTablet","sectionPaddingRightTablet","sectionPaddingLeftPhone","sectionPaddingRightPhone"].map(e=>[e,"needs Box side padding outside its gutter: the old section added it outside its frame, a Box's side padding replaces the gutter. 0 live nodes store it (JJ's read-only export, 2026-10-24)"])),fp={[zt]:"read by `wrapperPad`: a value named here is drawn as it is, so the section's own px is not added; the Box's padding is the total"};function re(e,o){let t=ye(e.sectionPaddingTop)??0,r=ye(e.sectionPaddingBottom)??0,a=ye(e.sectionPaddingTopTablet),n=ye(e.sectionPaddingBottomTablet),s=wr(e.sectionPaddingUnit),l=wr(e.sectionPaddingUnitTablet),i=wr(e.sectionPaddingUnitPhone),d=Array.isArray(e[zt])?e[zt]:[],f=(w,T)=>d.includes(w)?0:T,m=(w,T,B,P,g,C)=>{let E=ye(e[w]);if(E!==void 0)return E+Yt(f(w,C),"px",i,"mobile");let A=P===void 0?{n:g,unit:s,key:B}:{n:P,unit:l,key:T};return Yt(A.n,A.unit,i,"mobile")+Yt(f(A.key,C),"px",i,"mobile")},u=(w,T,B,P,g,C)=>B!==void 0?{[w]:B+Yt(f(w,C??g),"px",l,"tablet")}:C===void 0?{}:{[w]:Yt(P,s,l,"tablet")+Yt(f(T,C),"px",l,"tablet")},h=w=>({desktop:ho[w],tablet:V1(ho[w],"tablet"),phone:V1(ho[w],"mobile")}),I=h("top"),S=h("bottom");return{[I.desktop]:t+Yt(f(I.desktop,o.top),"px",s,"desktop"),[S.desktop]:r+Yt(f(S.desktop,o.bottom),"px",s,"desktop"),...u(I.tablet,I.desktop,a,t,o.top,o.topTablet),...u(S.tablet,S.desktop,n,r,o.bottom,o.bottomTablet),[I.phone]:m(I.phone,I.tablet,I.desktop,a,t,o.topPhone),[S.phone]:m(S.phone,S.tablet,S.desktop,n,r,o.bottomPhone)}}var ce=e=>[...["sectionPaddingTop","sectionPaddingBottom","sectionPaddingTopTablet","sectionPaddingBottomTablet","sectionPaddingTopPhone","sectionPaddingBottomPhone"].map(o=>[o,o,(t,r)=>re(r,typeof e=="function"?e(r):e)[o]]),["sectionPaddingUnit","sectionPaddingUnit"],["sectionPaddingUnitTablet","sectionPaddingUnitTablet"],["sectionPaddingUnitPhone","sectionPaddingUnitPhone"]];function ft(e,o){let t={};for(let[a,n]of hx)e[a]!==void 0&&(t[n]=e[a]);let r=Qd(e,Hn(o));return{...t,sectionPaddingTop:r.top,sectionPaddingBottom:r.bottom}}var $r=e=>[...hx.map(([o,t])=>[o,t,(r,a)=>ft(a,e)[t]]),["sectionPaddingTop","sectionPaddingTop",(o,t)=>ft(t,e).sectionPaddingTop],["sectionPaddingBottom","sectionPaddingBottom",(o,t)=>ft(t,e).sectionPaddingBottom]],Ij={kind:"heading-case-upper",styles:["heading-1","heading-2","heading-3"]},Uhe=e=>o=>We(o.props[e])?[Ij]:[],pe=(e,o)=>({kind:"text",key:e,role:"eyebrow",props:U,...o?{style:o}:{}}),Jn=e=>({kind:"group",name:"Chip",props:{...R,...rr("main"),...Co(6,14)},parts:[pe(e,{color:"background",...H("label",12),weight:600,letterSpacing:.16})]}),Y1=e=>e.background!=="transparent",gj=(e,o)=>{let[t,r]=[e,o].map(a=>typeof a=="string"?a.trim():"");return t?r?`[${t} ]{color=text}${r}`:`[${t}]{color=text}`:r},ei={align:"right",alignPhone:"left"},yj=(e,o,t)=>{let r=a=>gj(a[e],a[o]);return{kind:"block",type:"Text",when:(a,n)=>n!==void 0&&r(n)!=="",box:[[e,"text",(a,n)=>r(n)],[o,"text",(a,n)=>r(n)]],props:t}},oi=(e,o,t,r={})=>yj(e,o,{...Aa,...ei,...r,_partStyles:{text:{...Ro,color:"labels",...t,case:Ro.case,...ei}}}),Qn=(e,o)=>typeof e=="number"&&Number.isInteger(e)&&e>=0?e:Ta(o)?.selected??0,X1="var(--site-surface-2)",cp=(e,o)=>Ta(o)?.themes[Qn(e.sectionAccent??0,o)],$o=(e,o)=>(t,r)=>{if(!o?.(t,r))return rr(e);let a=cp(t,r)?.[e];return a?{fillColor:a}:{}},pp=(e,o)=>zr(e,o)>=0,Z1=e=>e.startsWith("#")&&mj(e)!==null,up=(e,o,t)=>{let r=e?.trim();if(r&&Z1(r))return{fillColor:r};let a=yx(r);if(a)return rr(a);let n=r===X1?cp(o,t):void 0;return n?{fillColor:Uw(n)}:{}},mp=e=>{let o=e?.trim();return!o||o==="transparent"||o===Gt||yx(o)||o===X1||Z1(o)?void 0:"it paints a colour that no Box Fill can hold"},zr=(e,o)=>{let t=Ta(o)?.themes;return t&&Y1(e)?jw(t,Qn(e.sectionAccent,o)):-1},Ur=(e,o,t)=>{let r=zr(o,t);return r>=0?r:e},es=(e,o)=>{let t=Ta(o)?.themes,r=t?Gw(t,Qn(e,o)):-1;return r>=0?r:e},Ba=(e,o)=>{let t=zr(e,o);return t>=0?{sectionAccent:t}:{}},jr=(e,o)=>Y1(e.props)&&zr(e.props,o)<0?[{kind:"band-preset",page:Qn(e.props.sectionAccent,o)}]:[],os=(e,{view:o="desktop",to:t="px",maxPx:r=1/0}={})=>{let{siteGutter:a,siteGutterUnit:n,siteGutterPhone:s,siteGutterPhoneUnit:l}=e.site??{},i=In(o),d=(m,u,h)=>{let I=wr(u),S=Rw(m,I,"spacing",h);return S===null?null:Yt(S,I,"px",i)},f=o==="desktop"?d(a,n,hC)??OC(a):d(s,l,gC)??_C(s)??BC(a,n);return Yt(Math.min(r,f),"px",t,i)},ti=Object.fromEntries(["Top","Right","Bottom","Left","TopPhone","RightPhone","BottomPhone","LeftPhone"].map(e=>[`sectionPadding${e}`,0])),ri=e=>({top:0,right:0,bottom:0,left:0,...e}),mI=(e,o,t,r=[])=>({kind:"group",name:e,keepEmpty:!0,props:(a,n)=>({...R,...ti,...$o("surface")(a,n),...typeof t=="function"?t(a,n):t}),box:[[o,"bgImage"],Ke.kind,Ke.duration,Ke.delay],parts:r});import{phoneKey as OI,readHidable as EI}from"efficient-easel/draw";import{isNodeList as Gj,newId as Kj}from"efficient-easel/data";function J1(e){return Math.min(4,Math.max(2,e??3))}var qhe={eyebrow:"Label",title:"Section *heading.*"},Sj=id.Cards,Q1={label:"Cards",fields:Sj,defaultProps:{eyebrow:"",title:"",items:[],columns:3}};var Xhe={eyebrow:"Highlight",title:"Key *features.*"},Zhe=()=>[{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")}],eA={label:"Key Features",defaultProps:{eyebrow:"",title:"",items:[],columns:3}};import{parseOption as bj}from"efficient-shell/format";var xI="cardPlace",wj=["","top-line"];function oIe(e){return bj(wj,"",e[xI])}var tIe="absolute left-5 top-0 z-10 -translate-y-1/2 bg-bg px-2",rIe="data-sf-top-line",Cj=new Set(["Cards",io]);function aIe(e){return typeof e=="string"&&Cj.has(e)}var kj=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 nIe(e,o,t){return!t||!o?.linesBetween||o.index!==0?e:kj(e)?{...e,top:0}:e}var sIe="outsideFramedCard";var xp={sectionBorder:{top:0,right:1,bottom:1,left:0},...rr("background")},vj={gap:0,gapPhone:0,sectionBorder:{top:1,right:0,bottom:0,left:1},shadow:!0},La=e=>({direction:"row",columns:e,columnsTablet:e,...vj}),oA=(e={})=>Be(zc,{...U,tag:"p",[xI]:"top-line"},e,!0),ts=(e=ta)=>{let o=sn(e);return{...o,props:{...xp,...o.props},slots:{[Ce]:[...o.slots?.[Ce]??[],oA()]}}},hI=(e=!1)=>{let o=ln(e);return{...o,props:{...xp,...o.props}}},Pj={name:"name",time:"time",note:"note",price:"price"},Tj={textStyle:"body-1",...H("body",16),weight:500,lineHeight:1.5},Oj={...Ro,...H("label",12),letterSpacing:.18,lineHeight:1.5},Ej={textStyle:"body-1",...H("body",14),lineHeight:1.6},_j={textStyle:"body-1",fontRole:"heading",...H("headingSmall",20),weight:500,color:"accent",lineHeight:1.5},Aj={...H("label",11),letterSpacing:.25},Fj={gap:16,gapPhone:16,sectionBorder:{top:0,right:0,bottom:0,left:0},shadow:!1},hp=e=>({direction:"row",columns:e,...Fj}),II=[...new Set([...Object.keys(La(1)),...Object.keys(hp(1))])],gI=()=>{let e=Pj,o={tag:"p",widthFit:"fill"};return{type:q,props:{...R,name:"Card",justify:"between",gap:16,gapPhone:16,...Co(24),sectionBorder:{top:1,right:1,bottom:1,left:1},...rr("surface"),shadow:!0},slots:{[Ce]:[oA(Aj),{type:q,props:{...R,name:"Words",gap:8,gapPhone:8},slots:{[Ce]:[Be(e.name,{...U,...o},Tj),Be(e.time,{...oe,...o},Oj),Be(e.note,{...oe,...o},Ej)]}},Be(e.price,{...U,...o},_j)]}}};import{tabletKey as nA}from"efficient-easel/draw";import{VIEW_DESKTOP_MIN as Ip}from"efficient-easel/draw";var gp=tr,yI=Ip,tA=960,rA=tr,aA={min:gp,max:1600,step:10},yp="stackBelow";function IIe(e){if(!(typeof e!="number"||!Number.isFinite(e))&&!(e<aA.min||e>aA.max))return Math.round(e)}var Bj=e=>`sf-stack-${e}`,Lj=e=>`sf-stack-${e}-gutter`,Rj=e=>`sf-stack-${e}-outer`,rs=e=>`${e-.02}px`;function gIe(e,o={}){let t=o.gutter!==!1,r=`.${Bj(e)}`,a=`.${Lj(e)}`,n=`.${Rj(e)}`,s=[];if(e>gp){let l=`${r}>.sf-block-size,${r}>[data-easel-block]>[data-sf-part-host]>.sf-block-size`,i=Math.min(e,Ip);s.push(`@media (min-width:${gp}px) and (max-width:${rs(e)}){${r}${r}{flex-direction:column}.sf-gap-overlap${r}{--sf-gap-overlap-eff:calc(var(--sf-gap-overlap) / 2)}${l}{width:min(var(--sf-bw-p,100%),100%);flex-grow:0}}`,`@media (min-width:${gp}px) and (max-width:${rs(i)}){.sf-gap-zone${r}{gap:var(--sf-gap-len-tablet,var(--sf-gap-len-phone,calc(var(--sf-gap-len) / 2)))}}`),e>Ip&&s.push(`@media (min-width:${Ip}px) and (max-width:${rs(e)}){.sf-gap-zone${r}{gap:var(--sf-gap-len-phone,calc(var(--sf-gap-len) / 2))}}`)}return t&&s.push(`@media (max-width:${rs(e)}){${a}${a}{padding-inline:${SC.frame}}}`),t&&e<tA&&s.push(`@media (min-width:${e}px) and (max-width:${rs(tA)}){${a}${a}{padding-inline:${yC}}}`),e>rA&&s.push(`@media (min-width:${rA}px) and (max-width:${rs(e)}){`+["top","bottom","left","right"].map(l=>`.sf-pad-${l}-phone:has(>${n}),.sf-pad-${l}-phone${n}{padding-${l}:var(--sf-pad-${l[0]}-phone)!important}`).join("")+"}"),s.join("")}import{parseOption as Dj}from"efficient-shell/format";var Nj=["standard","editorial","simple","essay"];function Ra(e){if(e==="ProductGrid")return"shelf";let o=z(Ct,e)?.headStyle;return Dj(Nj,"standard",o)}var ai={standard:64,editorial:60,simple:36,essay:28,shelf:20},Mj={SectionHeader:"accent",FAQ:"accent",FitmentFinder:"accent",FitmentTable:"accent",SpecTable:"accent",RelatedProducts:"accent",Collections:"accentNum"};function Hj(e){if(e==="SectionHeader")return{num:"num",title:"title",description:"description",link:!0};let o=z(Ct,e);if(!o)throw new Error(`section-head-looks: "${e}" has no head row in SPLITTABLE_SECTIONS`);return{num:o.num,title:o.title,description:o.description,link:o.headRows.includes("linkText")&&o.headRows.includes("linkHref")}}function bp(e,o,t){let r=`editorial:${e}|${o}|${t}`,a=Sp.get(r);if(a)return a;let n=dA({num:e,title:o,description:t,link:!1});return Sp.set(r,n),n}var zo={[yp]:yI},bI={top:0,right:0,bottom:1,left:0},Uo=(e,o,t,r)=>({sizeToken:{step:e,px:r,fluid:{minPx:o,vw:t}}}),wp=(e,o,t={})=>pe(e,{...H("label",o),...t}),Cp=(e,o)=>({kind:"text",key:e,role:"heading",props:U,style:{textStyle:"heading-2",...o}}),wI=tr,Wj=yI,CI=(e,o,t,r,a={})=>({kind:"text",key:e,props:{...oe,align:"right",alignPhone:"left",...t?{maxWidth:t,maxWidthPhone:wI}:{},...a},style:{textStyle:"body-5",fontRole:"heading",alignPhone:"left",...H("body",o),...r,...a}}),iA={...fo,align:"right",alignPhone:"left",...Fa},SI=e=>({kind:"button",key:"linkText",href:"linkHref",variant:"ghost",props:iA,style:{...wt(e),color:"labels"}}),sA=(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"?$j(ar()):{},...t.style}}}}},$j=e=>e._partStyles.text??{},as={widthFitPhone:"fill"};function kI(e){if(e.kind!=="group")return e;if(e.name==="Words"){let o=e.props;return{...e,props:typeof o=="function"?(t,r)=>({...o(t,r),...as}):{...o,...as}}}return{...e,parts:e.parts.map(kI)}}function zj(e,o){let t=z(Mj,e),r=t==="accent",a=wp(o.num,14,{color:r?"accent":"labels"}),n=t==="accentNum"&&a.kind==="text"?{...a,mark:"accentLead"}:a,s=Cp(o.title,r?{...Uo("headingMedium",36,5,64),case:"upper",lineHeight:.95,letterSpacing:-.025}:{...H("headingMedium",56,36),case:"none",lineHeight:1,letterSpacing:-.03}),l=e==="Collections";return{kind:"group",name:"Header",props:{...R,direction:"row",align:"end",justify:"between",gap:40,gapPhone:12,share:"content",sectionBorder:bI,sectionPaddingBottom:24,sectionPaddingBottomPhone:20},parts:[{kind:"group",name:"Title",props:{...R,...as,direction:"row",align:"end",gap:40,gapPhone:12,share:"content"},parts:[{kind:"group",name:"Number",props:{...R,...as,align:"start",gap:12},parts:[{kind:"image",key:"logoSrc",alt:"logoAlt",props:{aspect:"auto",contained:!1}},n,...l?[sA(o.num,"==01== / Collections",n)]:[]]},{kind:"group",name:"Heading",props:{...R,...as},parts:[s,...l?[sA(o.title,`Three ranges,
|
|
320
|
-
one standard.`,s)]:[]]}]},{kind:"group",name:"Words",props:{...R,...as,gap:12,maxWidth:340,maxWidthPhone:wI},parts:[...o.description?[CI(o.description,14,void 0,{lineHeight:1.5})]:[],...o.link?[SI(14)]:[],...l?[{kind:"block",type:"ButtonBlock",props:{...iA,variant:"ghost",label:"View all",href:"/wheels",_partStyles:{label:SI(14).style}}}]:[]]}]}}function kp(e,o){return e.kind==="text"?o.includes(e.key)?{...e,mark:"accentItalic"}:e:e.kind==="group"?{...e,parts:e.parts.map(t=>kp(t,o))}:e}function dA(e){let o=Cp(e.title,{...Uo("headingMedium",40,5.5,80),case:"upper",weight:500,lineHeight:1,letterSpacing:-.03});return{kind:"group",name:"Header",props:{...R,direction:"row",align:"end",justify:"between",gap:40,gapPhone:14,share:"content",sectionBorder:bI,sectionPaddingBottom:32,...zo},parts:[{kind:"group",name:"Title",props:{...R,direction:"row",align:"end",gap:40,gapPhone:14,share:"content",...zo},parts:[{kind:"group",name:"Number",props:{...R,sectionPaddingBottom:8},parts:[{...wp(e.num,13),props:{...U,..._a}}]},kp(o,[e.title])]},{kind:"group",name:"Words",props:{...R,sectionPaddingBottom:4,maxWidth:360,[nA("maxWidth")]:Wj,maxWidthPhone:wI},parts:e.description?[CI(e.description,14,void 0,{lineHeight:1.5},{[nA("align")]:"left"})]:[]}]}}function lA(e,o){return{kind:"group",name:"Header",props:{...R,gap:16,gapPhone:16},parts:[wp(e.num,13),Cp(e.title,o)]}}var fA=[["para",{...wt(13),weight:400,lineHeight:1,letterSpacing:.22}],["sm",{...H("headingMedium",40,28),case:"none",weight:500,lineHeight:1,letterSpacing:-.03}],["md",{...H("headingMedium",48,32),case:"none",weight:500,lineHeight:1,letterSpacing:-.03}],["lg",{...H("headingMedium",56,36),case:"none",weight:500,lineHeight:1,letterSpacing:-.03}],["xl",{...H("headingMedium",64,40),case:"none",weight:500,lineHeight:1,letterSpacing:-.03}]],Uj=e=>fA.some(([o])=>o===e.titleSize)?e.titleSize:"lg";function jj(e){return{kind:"group",name:"Header",props:{...R,direction:"row",align:"center",justify:"between",gap:16,share:"content",stickTop:!0,sectionBorder:bI,sectionPaddingTop:12,sectionPaddingBottom:12},parts:[{kind:"group",name:"Title",props:{...R,direction:"row",align:"end",gap:24,share:"content"},parts:[wp(e.num,13,{color:"labels",letterSpacing:.22,lineHeight:1}),...fA.map(([o,t])=>({...Cp(e.title,t),when:r=>Uj(r)===o}))]},{kind:"group",name:"Words",props:{...R,direction:"row",align:"center",justify:"end",gap:20,share:"content"},parts:[...e.description?[CI(e.description,13,340,{lineHeight:1.4})]:[],...e.link?[SI(13)]:[]]}]}}function vp(e){return Ra(e)==="shelf"?{titleSize:"the Header Box's title Text part: its size, as the old shelf title drew it (lib/document/blocks/general/section-head-looks)"}:{}}var Sp=new Map,vI={...H("headingMedium",44,32),case:"upper",weight:500,lineHeight:1,letterSpacing:-.02};function ct(e){let o=Sp.get(e);if(o)return o;let t=Hj(e),r=Ra(e),a=r==="editorial"?dA(t):r==="simple"?lA(t,vI):r==="essay"?lA(t,{...H("headingMedium",38,28,"headingSmall"),case:"upper",lineHeight:1,letterSpacing:-.02}):r==="shelf"?jj(t):zj(e,t);return Sp.set(e,a),a}var Da={Series:"transparent",StatsParagraph:"transparent",TimelineTrack:Gt,Stats:void 0};var ni=(e,o,t,r)=>({sectionBorder:{top:e,right:o,bottom:t,left:r}}),yA=e=>o=>J1(ye(o.columns)??ye(e.columns)),qj="inline is the head the row draws; an own-box node is skipped (`skip`)",Vj={kind:"text",key:"title",role:"heading",props:U,style:{textStyle:"heading-3",...vI}},Tp=e=>{let o=da(typeof e.background=="string"?e.background:void 0,Da.Series);return o&&o!=="transparent"?o:void 0},Pp=e=>Tp(e)===Gt,Yj={...R,justify:"between",gap:16,gapPhone:16,sectionHeightMode:"fixed",sectionHeightValue:340,sectionHeightUnit:"px",sectionPaddingTop:36,sectionPaddingRight:28,sectionPaddingBottom:32,sectionPaddingLeft:28,sectionPaddingTopPhone:36,sectionPaddingRightPhone:28,sectionPaddingBottomPhone:32,sectionPaddingLeftPhone:28},cA={...R,direction:"row",justify:"between",gap:12,share:"content",phoneRow:2,[OI("share")]:"content"},Xj=e=>{let o=Tp(e)?1:2;return{...R,direction:"row",columns:4,columnsTablet:2,gap:o,gapPhone:o}},PI={...wt(12),letterSpacing:.22,lineHeight:1.5},pA=e=>We(e.viewLabel)&&!EI(e.viewLabel).hidden,pt=e=>EI(e).text?.trim?.()??"",Op=e=>Object.fromEntries(Object.entries(e).filter(([,o])=>xo(o)!==void 0)),_I=e=>e.map(([o,t,r])=>({key:o,label:t,...r?{multiline:!0}:{}})),Zj=_I([["num","Number"],["since","Corner note"],["title","Card title"],["body","Card body",!0],["count","Count"],["countLabel","Count word"]]),Jj=_I([["label","Label"],["value","Value"],["body","Card body",!0]]),si=(e,o,t,r,a,{reads:n=["cards"],keep:s=[]}={})=>({kind:"group",name:e,props:o,parts:[{kind:"core",as:io,headless:!0,keep:s,derive:{reads:n,props:l=>Fd(r(l),t)},slots:(l,i)=>({[Te]:[a(l,i)]})}]}),SA=e=>Array.isArray(e.cards)?e.cards:[],bA=e=>(Array.isArray(e.items)?e.items:[]).map(o=>Op({title:pt(o?.label),href:typeof o?.href=="string"?o.href.trim():""})).filter(o=>o.title!==void 0).map((o,t)=>({key:js(Jm(o),t),...o})),Qj=e=>bA(e).some(o=>xo(o.href)!==void 0),wA=[{key:Km.label,label:"Feature label"},{key:Km.href,label:"Link",kind:"link"}],uA=e=>FO(e.eyebrowLook,"KeyFeatures")==="filled",eG={name:"Key Features",boxProps:(e,o)=>({...Y,direction:"column",gap:44,gapPhone:32,...$o("surface")(e,o),...ni(1,0,1,0),...re(e,xc)}),box:[...J,...ce(xc)],parts:[{kind:"group",name:"Heading",props:{...R,direction:"row",align:"end",gap:20,wrap:!0,share:"content",phoneRow:2,[OI("share")]:"content"},parts:[{...Jn("eyebrow"),when:uA},{...pe("eyebrow"),when:e=>!uA(e)},Vj]},si("Cards",e=>({...R,...La(yA(eA.defaultProps)(e))}),wA,bA,e=>hI(Qj(e)),{reads:["items"]})],drop:{...X,...te,columns:'Box "Cards": its Columns and tablet Columns',eyebrowLook:"the Filled look is a Box in the main colour round the eyebrow Text; the plain look is the eyebrow Text"}},mA=(e,o)=>({...xp,...$o("background")(e,o)}),xA=e=>{let o=yA(Q1.defaultProps)(e);return{...R,...La(o)}},oG=_I([["title","Card title"],["body","Card body",!0]]),CA=e=>(Array.isArray(e.items)?e.items:[]).map((o,t)=>({key:typeof o?.key=="string"&&o.key?o.key:js(Jm(o),t),title:pt(o?.title),body:pt(o?.body)})),kA=e=>{let o={},t={};for(let[r,a]of Object.entries(e.props??{}))r!=="id"&&(Gj(a)?t[r]=a.map(kA):o[r]=a);return{type:String(e.type),props:o,...Object.keys(t).length?{slots:t}:{}}},hA=(e,o)=>{let t=TI(e)?hI(tG(e)):ts(),r=Array.isArray(e.template)?e.template.map(kA):[t],[a]=r;return r.length===1&&a.type===q?{...a,props:{...mA(e,o),...a.props}}:{type:q,props:{...R,...mA(e,o),name:"Card"},slots:{[Ce]:r}}},TI=e=>e.cardStyle==="label-only",vA=e=>CA(e).map((o,t)=>{let r=e.items[t]?.href;return Op({key:o.key,title:o.title,href:typeof r=="string"?r.trim():""})}),tG=e=>vA(e).some(o=>xo(o.href)!==void 0),IA=e=>Array.isArray(e.template)&&e.template.length===0,gA=["dataSource","dataSourceOptions","highlightedCard","highlightBadge"];function PA(){let e=t=>({key:Kj("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 rG={name:"Cards",ownBoxConverts:!0,boxProps:(e,o)=>({...Y,direction:"column",gap:36,gapPhone:28,...$o("surface")(e,o),...re(e,nc)}),box:[...J,...ce(nc)],parts:[{...ct("Cards"),when:e=>!fI(e)},{...si("Cards",xA,oG,CA,hA,{reads:["items"],keep:gA}),when:e=>!IA(e)&&!TI(e)},{...si("Cards",xA,wA,vA,hA,{reads:["items"],keep:gA}),when:e=>!IA(e)&&TI(e)}],drop:{...X,...te,columns:'Box "Cards": its Columns and tablet Columns',fillLastRow:"a Box's cells have no span: a short last row lands with its cells one column each, as the switch off draws (a cell can be widened by hand)",cardStyle:"the Card list's template: the Cards card, or under Label only the Label only card (a cell Box, a Mark Box, the label Text)",template:"the Card list's template (the card Box takes the old cell's ground and lines)",headPlacement:"an own-box node lands without its head; inline is the head the row draws",eyebrowLook:"needs the eyebrow's Filled look on a Text block: Plain is the eyebrow start look the row draws; 2 of 62 live nodes store it (the stored-node export, 2026-10-24)"}},aG={name:"Recurring Columns",boxProps:(e,o)=>({...Y,direction:"column",gap:60,gapPhone:60,...ni(0,0,1,0),...zo,...Pp(e)?Ba(e,o):{},...up(Tp(e),e,o),...re(e,gc)}),box:[...J.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,t)=>Pp(o)?Ur(e,o,t):e],...ce(gc)],skip:e=>mp(Tp(e)),site:(e,o)=>Pp(e.props)?jr(e,o):[],parts:[ct("Series"),si("Cards",Xj,Zj,e=>SA(e).map(o=>Op({num:pt(o.num),since:pt(o.since),title:pt(o.title),body:pt(o.desc),count:pt(o.entries),countLabel:pt(o.entriesLabel)})),(e,o)=>({type:q,props:{...Yj,...$o("background",(t,r)=>Pp(t)&&pp(t,r))(e,o),name:"Card"},slots:{[Ce]:[{type:q,props:{...R,name:"Words",gap:16,gapPhone:16},slots:{[Ce]:[{type:q,props:{...cA,name:"Top"},slots:{[Ce]:[Be("num",U,H("label",13),!0),Be("since",U,H("label",13),!0)]}},Be("title",{...U,tag:"h3"},{textStyle:"heading-3",...H("headingSmall",28),weight:500,case:"upper",lineHeight:1.04,letterSpacing:-.02}),Be("body",oe,{textStyle:"body-5",fontRole:"heading",...H("body",14),lineHeight:1.6})]}},{type:q,props:{...cA,name:"Footer",align:"center",gap:0,gapPhone:0,sectionPaddingTop:16,sectionPaddingTopPhone:16,...ni(1,0,0,0),...pA(e)?{}:{[on]:["count","countLabel"]}},slots:{[Ce]:[{type:q,props:{...R,name:"Count",direction:"row",align:"center",gap:12,gapPhone:12,share:"content",phoneRow:2,[OI("share")]:"content"},slots:{[Ce]:[Be("count",U,PI),Be("countLabel",oe,PI)]}},...pA(e)?[{type:q,props:{...R,name:"View",maxWidthPhone:266},slots:{[Ce]:[{type:"Text",props:{...U,text:EI(e.viewLabel).text,_partStyles:{text:{...ar()._partStyles.text,...PI}}}}]}}]:[]]}}]}}))],reads:{viewLabel:"a Text typed once in the card template: the far end of every card's footer",background:"the Box's theme (the band preset) or its Fill"},drop:{...X,...te,headPlacement:qj}},nG={...R,direction:"row",columns:3,gap:40,gapPhone:16},sG={...R,gap:8,gapPhone:8,...Co(24),...ni(1,1,1,1)},lG={name:"Document Detail Cards",boxProps:e=>({...Y,direction:"column",gap:40,gapPhone:16,...ni(0,0,1,0),...re(e,pc)}),box:[...J,...ce(pc)],parts:[si("Cards",nG,Jj,e=>SA(e).map(o=>Op({label:pt(o.label),value:pt(o.value),body:pt(o.desc)})),(e,o)=>({type:q,props:{...sG,...$o("surface")(e,o),name:"Card"},slots:{[Ce]:[Be("label",U,{...H("label",12),lineHeight:1.5},!0),{type:q,props:{...R,name:"Words",gap:14,gapPhone:14},slots:{[Ce]:[Be("value",U,{textStyle:"heading-3",...H("headingSmall",20),weight:500,letterSpacing:-.015,lineHeight:1.5}),Be("body",oe,{textStyle:"body-5",fontRole:"accent",...H("body",14),italic:!0,lineHeight:1.5})]}}]}}))],drop:{...X,...te}},TA={Cards:rG,KeyFeatures:eG,Series:aG,DocMetaCards:lG};import{SITE_SIDE as pL}from"efficient-easel/screen/lib/content/length-units";import{phoneKey as cG}from"efficient-easel/draw";import{newId as pG}from"efficient-easel/data";import{phoneKey as iG}from"efficient-easel/draw";import{isNode as li}from"efficient-easel/data";var ns="cardStyle";function OA(e){let{widthPhone:o,...t}=e;return e.widthFitPhone==="fixed"?{...t,widthFitPhone:"fill"}:{...e}}var Ep={table:{items:{gap:0,gapPhone:0,columnsTablet:2},grid:{gap:0},row:{gap:0,[iG("share")]:"content"},card:{justify:"between",gap:12,gapPhone:12,sectionHeightMode:"fixed",sectionHeightValue:242,sectionHeightUnit:"px",widthFitPhone:"fixed",widthPhone:800,sectionPaddingTop:48,sectionPaddingBottom:48,sectionPaddingLeft:32,sectionPaddingRight:32,sectionBorder:{top:1,right:1,bottom:1,left:1}}},list:{items:{gap:32,gapPhone:32,phoneRow:2},grid:{gap:32,gapPhone:32},row:{gap:32,gapPhone:32},card:{justify:"start",gap:8,gapPhone:8,sectionPaddingTop:20,sectionPaddingBottom:0,sectionBorder:{top:1,right:0,bottom:0,left:0}}}},ut={table:{...Ep.table,listCard:OA(Ep.table.card)},list:{...Ep.list,listCard:OA(Ep.list.card)}},age=[{label:"Table",value:"table"},{label:"List",value:"list"}],nge=e=>e==="table"||e==="list",dG=e=>[...new Set([...Object.keys(ut.table[e]),...Object.keys(ut.list[e])])];function ii(e,o,t){let r={...e};for(let a of dG(o))delete r[a];return{...r,...structuredClone(ut[t][o])}}function fG(e,o,t){let r=e.props??{},a=Array.isArray(r[Te])?r[Te]:[],n=a.findIndex(i=>li(i)&&i.type===t);if(n<0)return e;let s=a[n],l=a.map((i,d)=>d===n?{...s,props:ii(s.props??{},"listCard",o)}:i);return{...e,props:{...r,[Te]:l}}}function sge(e,o,t,r){let a=Array.isArray(e[r])?e[r]:[];if(a.some(s=>li(s)&&s.type===io)){let s=a.map(l=>li(l)&&l.type===io?fG(l,o,t):l);return{...ii(e,"items",o),[ns]:o,[r]:s}}let n=a.map(s=>{if(!li(s)||s.type!==t)return s;let l=s.props??{},i=(Array.isArray(l[r])?l[r]:[]).map(d=>li(d)&&d.type===t?{...d,props:ii(d.props??{},"card",o)}:d);return{...s,props:{...ii(l,"row",o),[r]:i}}});return{...ii(e,"grid",o),[ns]:o,[r]:n}}var AI=e=>typeof e=="string"?e.trim():"";function EA(e){let o=`${AI(e.prefix)}${AI(e.value)}`,t=AI(e.suffix);return e.emphasizeAll===!0?o?`==_${o}_==`:"":`${o}${t?`==_${t}_==`:""}`}var AA={textStyle:"heading-2",...Uo("headingMedium",56,7,96),weight:500,case:"none",lineHeight:.9,letterSpacing:-.04},FI={kind:"block",type:"Text",props:{...Aa,_partStyles:{text:AA}},box:[["value","text",(e,o)=>EA(o)]],when:(e,o)=>o!==void 0&&typeof o.value=="string"&&EA(o)!==""},_A=e=>We(e?.supSuffix),FA={textStyle:"body-1",fontRole:"heading",...H("body",16),lineHeight:1.5,letterSpacing:-.01},BA={color:"labels",...H("label",12),lineHeight:1.5,letterSpacing:.24},LA={...R,direction:"row",align:"start",gap:32,gapPhone:32,share:"content",phoneRow:2,[cG("share")]:"content"},RA={textStyle:"body-5",...H("label",13),weight:500,color:"accent",letterSpacing:.18,lineHeight:1,padding:12},BI=e=>da(e.background,Da.StatsParagraph),di=e=>BI(e)===Gt,_p=e=>({...e,sectionAccent:e.sectionAccent??0}),uG=(e,o)=>di(e)?$o("background",(t,r)=>pp(_p(t),r))(e,o):{},mG={name:"Stats with Text",skip:e=>BI(e)&&BI(e)!=="transparent"&&!di(e)?"it paints a colour of its own, not the section band":void 0,boxProps:(e,o)=>({...Y,direction:"column",gap:60,gapPhone:60,sectionBorder:{bottom:1},...zo,...ft(e,"StatsParagraph"),...di(e)?Ba(_p(e),o):{}}),box:[...J.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,t)=>di(o)?Ur(e,_p(o),t):e],...$r("StatsParagraph")],site:(e,o)=>di(e.props)?jr({props:_p(e.props)},o):[],parts:[ct("StatsParagraph"),{kind:"group",name:"Stats",props:{...R,...ut.table.grid,[ns]:"table"},parts:[{kind:"list",key:"stats",name:"Stat",perRow:()=>4,rowName:"Stats row",rowProps:{...R,direction:"row",share:"equal",phoneRow:2,...ut.table.row},props:(e,o)=>({...R,...ut.table.card,...uG(e,o)}),parts:[{...FI,when:(e,o)=>!_A(o)&&FI.when(e,o)},{kind:"group",name:"Figure",props:LA,when:(e,o)=>_A(o),parts:[FI,{kind:"text",key:"supSuffix",props:U,style:RA}]},{kind:"group",name:"Words",props:{...R,gap:4,gapPhone:4},parts:[{kind:"text",key:"label",props:U,style:FA},pe("sub",BA)]}]}]}],drop:{...X,...te,background:"the band is the Box's theme: the site's band preset (`sectionAccent`), or a declared band-preset write; none paints nothing, and any other colour is skipped",headPlacement:"needs a row per head placement: an own-box Stats with Text draws no head (its words sit in a Section Header above it), the row always draws the head"}},xG=new Set(["value","label",Vo]),hG=e=>{let o=da(typeof e.background=="string"?e.background:void 0,Da.Stats);return!!o&&o!=="transparent"},IG={name:"Stats",skip:e=>hG(e)?"it paints a colour inside its padding, and a Box paints its Fill over the padding too":We(e.dataSource)?"its figures come from a source":Array.isArray(e.items)&&e.items.some(o=>We(o?.[Vo]))?"a figure names a count, and each figure Text here is typed by hand until it is linked":Array.isArray(e.items)&&e.items.some(o=>Object.keys(o??{}).some(t=>!xG.has(t)))?"a figure has a key no part here reads":Object.keys(e._partStyles??{}).some(o=>o!=="heading")?"a figure or a name has a style of its own, kept by kind, which no part here reads":void 0,boxProps:e=>({...Y,direction:"column",gap:24,gapPhone:24,...re(e,yc)}),box:[...J,...ce(yc)],parts:[pe("heading",{color:"labels",...H("label",12),letterSpacing:.2}),{kind:"group",name:"Stats",props:{...R,...ut.list.grid,[ns]:"list"},parts:[{kind:"list",key:"items",name:"Stat",perRow:e=>ye(e.columns)??4,rowName:"Stats row",rowProps:{...R,direction:"row",share:"equal",phoneRow:2,...ut.list.row},props:{...R,...ut.list.card},parts:[{kind:"text",key:"value",props:Aa,style:{textStyle:"heading-2",...H("headingMedium",48,36),weight:500,case:"none",lineHeight:1,letterSpacing:-.03}},pe("label",{color:"labels",...H("label",12),letterSpacing:.2})]}]}],drop:{...X,...te,columns:"the rows of N: one row Box per `columns` figures, which the Box draws",dataSource:"an empty source is typed figures, what the row draws; a sourced node is skipped (0 Hartes nodes)",dataSourceOptions:"read only with a source; a sourced node is skipped (0 Hartes nodes)",contained:"the Box draws the site frame now; each figure fills the Box's column",background:"only no fill reaches here: a node that paints a colour is skipped"}},DA={StatsParagraph:mG,Stats:IG};function NA(){return{eyebrow:c("By the numbers"),title:c("What we count."),desc:c("A few numbers that matter to us."),stats:[],background:"transparent"}}var gG=[{key:"figure",label:"Figure"},{key:"superscript",label:"Superscript"},{key:"label",label:"Label"},{key:"body",label:"Text",multiline:!0}];function MA(){let e=(o,t,r,a="")=>({key:pG("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 yG(e){return{type:q,props:{...R,name:"Card",...structuredClone(ut[e].listCard)},slots:{[Ce]:[{type:q,props:{...LA,name:"Figure"},slots:{[Ce]:[Be("figure",Aa,AA),Be("superscript",U,RA)]}},{type:q,props:{...R,name:"Words",gap:4,gapPhone:4},slots:{[Ce]:[Be("label",{...U,widthFit:"fill"},FA),Be("body",{...U,widthFit:"fill"},BA,!0)]}}]}}}function LI(e,o,t=4){return{type:q,props:{...R,name:"Stats",direction:"row",columns:t,...structuredClone(ut[o].items),[ns]:o},slots:{[Ce]:[{type:io,props:Fd(e,gG),slots:{[Te]:[yG(o)]}}]}}}var HA={heading:"Ways to pay"},WA=()=>[{label:"Visa"},{label:"Mastercard"},{label:"Amex"},{label:"PayPal"}],$A=()=>[{text:c("Secure encrypted checkout")},{text:c("30-day returns")}],vge={label:"Payment Methods",drawsPictures:!0,defaultProps:{heading:"",badges:[],assurances:[],contained:!0}};import{hiddenKeyOf as SG}from"efficient-easel/screen/lib/content/view-hide";import{parseOption as UA}from"efficient-shell/format";var Ap="Flex",bG={FooterMenu:"MenuBlock",FooterEmailSignup:"EmailFormBlock",FooterSocial:"SocialLogosBlock"},wG={FooterPayment:"PaymentLogosBlock"},CG=e=>{let{id:o,...t}=e;return t},zA=e=>typeof e=="string"?e:"",ss={sm:12,md:13,lg:15},jA={sm:{mark:16,words:ss.sm},md:{mark:20,words:ss.md}},kG="md",GA=1.5,vG={size:13,lineHeight:GA,width:280},PG=14,TG=40,OG=e=>UA(["left","center","right"],"left",e);function EG(e){let o={},t=[["padTop","sectionPaddingTop"],["padRight","sectionPaddingRight"],["padBottom","sectionPaddingBottom"],["padLeft","sectionPaddingLeft"]];for(let[r,a]of t){let n=ye(e[r]);n&&(o[a]=n)}return o}function _G(e,o,t){let r=t(e,CG(o));if(Array.isArray(o.template))return{...r,props:{...r.props,template:KA(o.template,String(r.props.id))}};if(o.template!==void 0)return r;let a=vd(e,r.props);return a===r.props?r:{...r,props:a}}function KA(e,o,t={at:0}){return e.map(r=>{let a={...r.props,id:`${o}~t${t.at++}`};for(let n of Nt(r))a[n]=KA(a[n],o,t);return{...r,props:a}})}function qA(e,o,t){let r=e.props??{},a=t?.(e,o);if(a)return a;let n=z(bG,e.type)??z(wG,e.type);if(n)return[_G(n,r,o)];switch(e.type){case"FooterLogo":{let s=OG(r.align),l=o("LogoBlock",{...r.reverse?{reverse:r.reverse}:{},...typeof r.customColor=="string"&&r.customColor?{customColor:r.customColor}:{},heightPx:Math.round(tP*((ye(r.widthPct)??100)/100)),href:"/",align:s,...EG(r)}),i=zA(r.tagline).trim();return i?[l,o("Text",{text:i,tone:"dim",align:s,_partStyles:{text:{...vG}}})]:[l]}case"FooterText":{let s=typeof r.size=="string"&&eo(ss,r.size)?r.size:kG;return[o("Text",{text:zA(r.text),tone:typeof r.tone=="string"?r.tone:"default",_partStyles:{text:{size:ss[s],lineHeight:GA}}})]}case"FooterDivider":{let s=ye(r.thickness),l=ye(r.lengthPct);return[o("Divider",{...s!==void 0?{thickness:s}:{},...l!==void 0?{lengthPct:l}:{},...r.hideOnMobile===!0?{[SG("mobile")]:!0}:{}})]}case"FooterGroup":{let s=Array.isArray(r.blocks)?r.blocks:[];return[o(Ap,{direction:r.direction==="horizontal"?"row":"column",gap:rP("FooterGroup",r.gap),align:UA(["start","center","end","stretch"],"start",r.align),...$m,content:s.flatMap(l=>qA(l,o,t))})]}default:return[]}}function fi(e,o,t,r){let a=e&&Array.isArray(e.props?.blocks)?e.props.blocks:[],n=f=>o(Ap,{direction:"row",wrap:!0,share:"equal",gap:TG,content:f}),s=[],l=[];for(let f of a){let m=qA(f,o,r);if(f.type==="FooterDivider"){l.length&&s.push(n(l)),l=[],s.push(...m);continue}m.length<=1?l.push(...m):l.push(o(Ap,{direction:"column",gap:PG,align:"stretch",...$m,content:m}))}(l.length||!s.length)&&s.push(n(l));let i=o(Ap,{direction:"column",content:[o("LegalLineBlock")]}),d=dP(ao,t,[...s,i]);return{...d,props:{...d.props,...e?.props?.width==="full"?{fullWidth:!0}:{}}}}import{phoneKey as RI,readHidable as AG}from"efficient-easel/draw";import{parseOption as FG}from"efficient-shell/format";var DI={contained:!1},NI=(e,o)=>({logos:[{kind:"list",key:e,name:"Logo",flat:!0,parts:[{kind:"block",type:"LogoBlock",box:["src",[o,"alt"]],when:(t,r)=>We(r?.src)||We(r?.[o])}]}]}),BG={...pe("heading",{color:"labels",letterSpacing:.2}),props:{...U,align:"center"}},LG={name:"Logos",boxProps:e=>({...Y,direction:"column",gap:32,...re(e,vl(e))}),box:[...J,...ce(vl),["bandPadding","sectionPaddingTop",(e,o)=>re(o,vl(o)).sectionPaddingTop]],parts:[BG,{kind:"core",keep:["columns","logoHeight","grayscale"],rename:{logosPerRow:"columns"},props:DI,slots:NI("items","alt")}],drop:{...X,...te,contained:"the Box draws the site frame now; the Logos block inside it fills the Box's column (`contained: false`)",headPlacement:"a Logos band has no split head (not in SPLITTABLE_SECTIONS): no stored node can hold one, and the converted block stores own-box"}},RG={kind:"group",name:"Mark",keepEmpty:!0,parts:[],props:lw(4,"main",{sectionCorners:2})},DG={name:"Payment Methods",boxProps:e=>({...Y,direction:"column",...re(e,ic)}),box:[...J,...ce(ic)],parts:[{kind:"group",name:"Methods",props:{...R,align:"center",gap:20,gapPhone:20,sectionBorder:{top:1,bottom:1},sectionPaddingTop:32,sectionPaddingBottom:32},parts:[{...pe("heading",{color:"labels"}),props:{...U,align:"center"}},{kind:"core",keep:[],as:"Logos",derive:{reads:[lo,or],props:e=>We(e[lo])?{[lo]:e[lo],...e[or]!==void 0?{[or]:e[or]}:{}}:{}},props:{...DI,look:"cards",grayscale:!1},slots:e=>({...NI("badges","label"),...We(e[lo])?{[Te]:[Vm()]}:{}})},{kind:"group",name:"Reassurance",props:{...R,direction:"row",wrap:!0,justify:"center",gap:24,gapPhone:24,phoneRow:2,[RI("share")]:"content"},parts:[{kind:"list",key:"assurances",name:"Line",of:e=>(Array.isArray(e.assurances)?e.assurances:[]).filter(o=>We(o?.text)),props:{...R,direction:"row",align:"center",gap:8,gapPhone:8,phoneRow:2,[RI("share")]:"content"},item:e=>AG(e.text).hidden?{props:{_hidden:!0}}:{},parts:[RG,{kind:"text",key:"text",props:{...U,align:"center"},style:{...H("label",13),color:"labels",lineHeight:1.5}}]}]}]}],drop:{...X,...te,contained:"the Box draws the site frame now; the Logos block inside it fills the Box's column (`contained: false`)"}},VA=e=>ew(e.align)??"left",YA=e=>FG(["sm","md"],"sm",e.size),XA=12,ZA={name:"Payment logos",boxProps:e=>({...R,direction:"row",wrap:!0,align:"center",justify:gd[VA(e)],gap:XA,gapPhone:XA,phoneRow:2,[RI("share")]:"content"}),box:[...vr],parts:[{kind:"text",key:"lead",props:oe,styleFrom:e=>({size:ss[YA(e)],lineHeight:1.5})},{kind:"core",keep:[],as:"Logos",derive:{reads:[lo,or],props:e=>({logoHeight:jA[YA(e)].mark,align:VA(e),...We(e[lo])?{[lo]:e[lo],...e[or]!==void 0?{[or]:e[or]}:{}}:{}})},props:{...DI,look:"marks",grayscale:!1,sectionAccent:Cr},slots:e=>({...NI("methods","label"),...We(e[lo])?{[Te]:[Vm()]}:{}})}],drop:{size:"read as the wall's Logo height (S 16, M 20) and the lead's size (the footer size table, 12 / 13)",align:"read as the Box's justify and the wall's own Alignment (start is left, end is right)",editing:"the editor's preview flag, never a stored setting: the editor tells every block it is editing"}},JA={Logos:LG,PaymentBadges:DG,FooterPayment:ZA,PaymentLogosBlock:ZA},QA=()=>({heading:HE.heading,items:Uc()}),eF=()=>({heading:HA.heading,badges:WA(),assurances:$A()}),oF=()=>({...hf,methods:[]});import{mixHex as $G}from"efficient-shell/format";import{MOTION_EASING as NG,MOTION_TIMING as tF,motionSeconds as rF,parseOption as aF}from"efficient-shell/format";var MI="none",Fp=[{label:"None",value:"none"},{label:"Marquee",value:"scroll"}];function tye(e){return aF(Fp,MI,e)}var ls="_gLoop",ci={field:"loop",is:"scroll"},pi="left",HI=[{label:"Left",value:"left",cell:"left"},{label:"Right",value:"right",cell:"right"},{label:"Up",value:"up",cell:"top"},{label:"Down",value:"down",cell:"bottom"}],MG={left:"storefront-ticker",right:"storefront-ticker-right",up:"storefront-ticker-up",down:"storefront-ticker-down"};function nF(e){return aF(HI,pi,e)}function sF(e){return e==="up"||e==="down"}function Bp(e){return rF("loop","duration",e.loopDuration!=null?e.loopDuration:e.speed)}var rye=tF.loop.duration.default,HG=tF.loop.delay.default;function lF(e){return rF("loop","delay",e.loopDelay)}function aye(e,o,t=HG){return`${MG[e]} ${o}s ${NG.loop}${t?` ${t}s`:""} infinite`}var Lp="_gEntrance";var iye="none",dye=[{label:"Nothing",value:"none"},{label:"Section above",value:"above"},{label:"Section below",value:"below"}];function Rp(e){return e==="above"||e==="below"?e:null}var iF="sf-ticker-join";function WG(e){return e==="above"?"sf-ticker-join-above":"sf-ticker-join-below"}function dF(e){return`absolute inset-x-0 ${WG(e)}`}var fF=e=>e.size==="display",zG=(e,o)=>{let t=cp(e,o),r=e.tone!=="plain"&&t?.text&&t.background?$G(t.text,t.background,.3):null;return r?{color:r}:{}},UG=(e,o)=>e.tone!=="plain"&&nx(e.sectionAccent)===null?$o("background")(e,o):{},cF=(e,o)=>({kind:"list",key:"items",name:"Item",flat:!0,when:o,parts:[{kind:"text",key:"text",props:oe,style:e,styleFrom:zG}]}),jG={name:"Scrolling Bar",boxProps:(e,o)=>({...Y,...ma,...tc,...rw[Wm(e.separator)]===""?sO:{},...re(e,xa),...UG(e,o)}),box:[["scrollDirection","scrollDirection",e=>nF(e)],["speed","loopDuration",(e,o)=>o.loopDuration!=null?o.loopDuration:e],["loopDuration","loopDuration",(e,o)=>e??o.speed],["loopDelay","loopDelay",e=>e],["separator","separator",e=>Wm(e)],["join","join",e=>Rp(e)??void 0],["borders","sectionBorder",e=>e===!1?void 0:{top:1,bottom:1}],...J,["tone","sectionAccent",(e,o)=>nx(o.sectionAccent)??Cr],...ce(xa)],parts:[cF(rc,e=>!fF(e)),cF(lO,fF)],drop:{...X,...te,size:"each item's Text style: Small \u2192 Body 5, Display \u2192 Heading 3"}},pF=e=>e?.tone==="muted",uF=e=>Bd(Ta(e)),GG={name:"Spec Strip",boxProps:(e,o)=>({...Y,...ma,...Sl,...e.fill==="none"?{sectionBorder:{top:1}}:{sectionAccent:uF(o)},...re(e,ha)}),box:[...J.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,t)=>o.fill==="none"?e:uF(t)],...ce(ha)],parts:[{kind:"list",key:"cells",name:"Cell",flat:!0,parts:[{kind:"text",key:"text",props:U,style:bl,when:(e,o)=>!pF(o)},{kind:"text",key:"text",props:oe,style:bl,when:(e,o)=>pF(o)}]}],drop:{...X,...te,...fp,fill:"None \u2192 no fill and a line on top. Dark band (the default) \u2192 the Box's theme is the site's first dark preset that is not its page (lib/theme `darkBandIndex`; Theme 2 with no site theme): the old fixed `plate-band` colour, as a theme"}},mF={Ticker:jG,SpecStrip:GG};import{tabletKey as xF}from"efficient-easel/screen/lib/content/view-tiers";var hF={direction:"column",justify:"between",gap:14,gapPhone:14,sectionPaddingLeft:14,sectionPaddingRight:14,[xF("sectionPaddingLeft")]:0,sectionPaddingLeftPhone:0,sectionHeightMode:"fixed",sectionHeightValue:280,sectionHeightUnit:"px",[xF("sectionHeightMode")]:"auto",sectionHeightModePhone:"auto"},WI={name:"Year and title",direction:"column",gap:14,gapPhone:14};import{tabletKey as KG}from"efficient-easel/draw";var Dp={eyebrow:Oe.eyebrow,title:`Section heading
|
|
321
|
-
*Highlight line*`,intro:Oe.body,imageCaption:Oe.imageCaption,imageMeta:Oe.imageMeta,cta:je.text},IF=()=>[{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.")}],vye={label:"Story Timeline",drawsPictures:!0,defaultProps:{layout:"split",eyebrow:"",title:"",intro:"",imageSrc:"",imageCaption:"",imageMeta:"",ctaText:"",ctaHref:"",entries:[],padTop:120,padBottom:120}};var Np={eyebrow:Oe.eyebrow,title:Oe.headingAccent,intro:Oe.body,cta:je.text},gF=()=>[{date:c("Year"),title:c("Milestone"),blurb:c("A short line about this milestone."),future:!1},{date:c("Year"),title:c("Milestone"),blurb:c("A short line about this milestone."),future:!1},{date:c("Year"),title:c("Milestone"),blurb:c("A short line about this milestone."),future:!1},{date:c("Year \u2192"),title:c("Upcoming"),blurb:c("A milestone still to come."),future:!0}],_ye={label:"Milestone Timeline",defaultProps:{eyebrow:"",title:"",intro:"",entries:[],ctaText:"",ctaHref:"",background:Xv,padTop:120,padBottom:120}};var kF={buttonBorder:{width:0}},Wp=(e,o,t={})=>({textStyle:"body-5",...H("label",e),letterSpacing:o,lineHeight:1.5,weight:400,...t}),is=(e,o,t={})=>({...Wp(e,o),...Ro,...t}),$p=(e,o,t)=>({...e,case:"upper",weight:500,letterSpacing:o,lineHeight:t}),ui=(e,o,t={})=>({textStyle:"body-1",fontRole:"heading",...e,weight:400,case:"none",lineHeight:o,...t}),mt=(e,o,t={})=>({kind:"text",key:e,props:U,style:o,...t}),yF=(e,o)=>o?.future===!0,Mp=e=>nE(typeof e?.body=="string"?e.body:""),GI=e=>da(typeof e.background=="string"?e.background:void 0,Da.TimelineTrack),$I=e=>GI(e)===Gt?e:{...e,background:"transparent"},qG={name:"Milestone Timeline",skip:e=>mp(GI(e)),boxProps:(e,o)=>{let t=zr($I(e),o);return{...Y,direction:"column",gap:60,[KG("gap")]:36,gapPhone:36,sectionBorder:{bottom:1},...zo,...ft(e,"TimelineTrack"),...up(GI(e),e,o),...t>=0?{sectionAccent:t}:{}}},box:[...J.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,t)=>Ur(e,$I(o),t)],...$r("TimelineTrack")],parts:[kI(kp(bp("eyebrow","title","intro"),["intro"])),{kind:"group",name:"Track",props:{...R,gap:48,gapPhone:48},parts:[{kind:"group",name:"Years",props:{...R,direction:"row",share:"equal",gap:0,line:!0,...zo},parts:[{kind:"list",key:"entries",name:"Year",props:{...R,...hF},item:e=>({props:e.future===!0?{upcoming:!0}:{}}),parts:[{kind:"group",name:WI.name,props:{...R,...WI},parts:[mt("date",Wp(13,.22,{color:"accent"}),{when:(e,o)=>!yF(e,o)}),mt("date",Wp(13,.22,{color:"labels"}),{when:yF}),mt("title",{textStyle:"heading-3",...$p(H("headingSmall",20),-.02,1.1)},{role:"heading"})]},mt("blurb",ui(H("body",13),1.55),{props:oe,mark:"accentItalic"})]}]},{kind:"group",name:"Button row",props:{...R,sectionBorder:{top:1,right:0,bottom:0,left:0},sectionPaddingTop:32},parts:[{kind:"button",key:"ctaText",href:"ctaHref",variant:"ghost",props:{...fo,align:"right",...kF},style:is(13,.3)}]}]}],site:(e,o)=>jr({props:$I(e.props)},o),drop:{...X,...te,background:"another colour is the Box's Fill, or a skip if no Fill holds it; the band is the Box's theme: the site's band preset (`sectionAccent`), or a declared band-preset write (`lib/theme` `bandPresetIndex`)",headPlacement:"needs a row per head placement: an own-box Milestone Timeline draws no head (its words sit in a Section Header above it), the row always draws the head"}},qI=e=>typeof e.layout=="string"?e.layout:"split",Hp=e=>qI(e)==="split",KI=e=>!Hp(e),vF=e=>qI(e)==="spine",VG=e=>KI(e)&&!vF(e),SF=(e,o,t,r)=>({kind:"group",name:"Picture",keepEmpty:!0,box:[["imageSrc","bgImage"]],props:{...R,sectionBorder:{top:1,right:1,bottom:1,left:1},darken:75,darkenStyle:"bottom",placement:"bottom-center",sectionHeightMode:"fixed",sectionHeightValue:e,sectionHeightUnit:"px",sectionHeightModePhone:"fixed",sectionHeightValuePhone:o,sectionHeightUnitPhone:"px",...Co(12,16),...t},when:a=>r(a)&&typeof a.imageSrc=="string"&&a.imageSrc.trim()!=="",parts:[{kind:"group",name:"Caption",props:{...R,direction:"row",justify:"between",align:"center",gap:12,gapPhone:12,share:"content",phoneRow:2},parts:[mt("imageCaption",is(11,.24,{color:"text"})),mt("imageMeta",is(11,.24,{color:"accent"}),{props:{...U,align:"right"}})]}]}),bF=(e={})=>({kind:"button",key:"ctaText",href:"ctaHref",variant:"ghost",props:{...fo,...e,...kF},style:is(13,.3)}),zI=()=>[mt("title",{textStyle:"heading-3",...$p(H("headingSmall",24,20),-.02,1.5)},{role:"heading",mark:"accentItalic"}),{kind:"block",type:"Text",props:{...U,_partStyles:{text:ui(H("body",17,16),1.6)}},box:[["body","text",(e,o)=>Hs(Mp(o)[0]??"")]],when:(e,o)=>Mp(o).length>0},{kind:"block",type:"Text",props:{...oe,_partStyles:{text:ui(H("body",17,16),1.6,{paragraphSpacing:14})}},box:[["body","text",(e,o)=>Hs(Mp(o).slice(1).join(`
|
|
322
|
-
|
|
323
|
-
`))]],when:(e,o)=>Mp(o).length>1}],UI=()=>mt("date",Wp(13,.24,{color:"accent"})),jI=(e,o,t={})=>mt(e,o,{...t,props:{...U,...t.props??{},align:"center"}}),wF=Uo("headingMedium",40,5,76),CF={sectionBorder:{bottom:1}},YG={name:"Story Timeline",skip:e=>qI(e)==="track"?'display "track": not converted (it draws the Milestone rail; a Track story is not stored anywhere)':void 0,boxProps:e=>Hp(e)?{...Y,direction:"row",share:[40],gap:80,gapPhone:48,align:"start",...CF,...ft(e,"Timeline")}:{...Y,direction:"column",gap:48,gapPhone:48,align:"center",...CF,...ft(e,"Timeline")},box:[...J,...$r("Timeline")],parts:[{kind:"group",name:"Heading",props:{...R,gap:24,gapPhone:24},when:Hp,parts:[mt("eyebrow",is(12,.3,{color:"accent"}),{role:"eyebrow"}),mt("title",{textStyle:"heading-2",...$p(wF,-.03,.94)},{role:"heading",mark:"accentItalic"}),mt("intro",ui(H("body",14),1.6),{props:{...oe,maxWidth:360},mark:"accentItalic"}),SF(667,419,{},()=>!0),bF()]},{kind:"group",name:"Chapters",props:{...R,gap:48,gapPhone:48,line:!1},when:Hp,parts:[{kind:"list",key:"entries",name:"Chapter",props:{...R,direction:"row",gap:24,gapPhone:8,share:[12],align:"start"},parts:[UI(),{kind:"group",name:"Words",props:{...R,gap:14,gapPhone:14},parts:zI()}]}]},{kind:"group",name:"Heading",props:{...R,gap:24,gapPhone:24,align:"center",maxWidth:760,widthFit:"fill"},when:KI,parts:[jI("eyebrow",is(12,.3,{color:"accent"}),{role:"eyebrow"}),jI("title",{textStyle:"heading-2",...$p(wF,-.03,.94)},{role:"heading",mark:"accentItalic"}),jI("intro",ui(H("body",14),1.6),{props:{...oe,maxWidth:520},mark:"accentItalic"}),bF({align:"center"})]},SF(506,192,{maxWidth:900,widthFit:"fill"},KI),{kind:"group",name:"Chapters",props:{...R,gap:48,gapPhone:48,line:!0,maxWidth:760,widthFit:"fill",sectionPaddingTop:16},when:vF,parts:[{kind:"list",key:"entries",name:"Chapter",props:{...R,gap:8,gapPhone:8},parts:[UI(),{kind:"group",name:"Words",props:{...R,gap:14,gapPhone:14},parts:zI()}]}]},{kind:"group",name:"Chapters",props:{...R,gap:56,gapPhone:56,maxWidth:1e3,widthFit:"fill",sectionPaddingTop:16,mirrorCards:"even"},when:VG,parts:[{kind:"list",key:"entries",name:"Chapter",props:{...R,direction:"row",gap:64,gapPhone:0,share:[50],align:"start"},parts:[{kind:"group",name:"Entry",props:{...R,gap:8,gapPhone:8},parts:[UI(),{kind:"group",name:"Words",props:{...R,gap:14,gapPhone:14},parts:zI()}]},{kind:"group",name:"Spacer",props:{...R},keepEmpty:!0,parts:[]}]}]}],drop:{...X,...te,layout:"the Box's own arrangement replaces it: Split a row of two Boxes; Spine and Alternating a centred column (Track is skipped)"}},PF=()=>({eyebrow:Dp.eyebrow,title:vt(Dp.title),intro:Dp.intro,ctaText:je.text,ctaHref:je.href,entries:IF()}),TF=()=>({eyebrow:Np.eyebrow,title:vt(Np.title),intro:Np.intro,ctaText:je.text,ctaHref:je.href,entries:gF()}),OF={TimelineTrack:qG,Timeline:YG};import{tabletKey as XG}from"efficient-easel/draw";function EF(e){let o=String(e??"").replace(/[^+\d]/g,"");return o?`tel:${o}`:void 0}var xt=e=>typeof e=="string"?e:e==null?"":String(e),VI=e=>Array.isArray(e.locations)?e.locations.map(o=>o??{}):[],ds=e=>xt(e.group),MF=e=>`loc-${e}`,HF=e=>xt(e.state).trim()||Px(xt(e.region)).state,WF=e=>xt(e.country).trim()||Px(xt(e.region)).country,_F=e=>[HF(e),WF(e)].filter(Boolean).join(" \xB7 "),ZG=e=>VI(e).some(o=>xt(o.photo).trim()!==""),JG=e=>VI(e).some(o=>bw(Number(o.lat),Number(o.lng))),QG=(e,o)=>VI(e).filter(t=>ds(t)===ds(o)).length,e8=(e,o)=>QG(e,o)===1?"wide":IP(e.imageShape),AF=48,Tt=(e,o={})=>({...wt(e),...o}),YI={top:1,right:1,bottom:1,left:1},XI={...R,direction:"row",share:"equal",gap:0},o8=e=>o=>o>Cd(o)?{...R,gap:0}:{...XI,...o>1?{phoneRow:e}:{}},ZI=!0,t8={kind:"group",name:"Gallery",props:{...R,gap:20,...ZI?{_hidden:!0}:{}},when:ZG,parts:[{kind:"group",name:"Gallery head",props:{...R,direction:"row",justify:"between",align:"end",gap:24,share:"content",sectionBorder:{bottom:1},sectionPaddingBottom:16},parts:[pe("galleryKicker",Tt(12,{color:"accent",letterSpacing:.3})),{kind:"text",key:"galleryHint",props:{...oe,align:"right",alignPhone:"left"},style:Tt(11,{letterSpacing:.22,alignPhone:"left"})}]},{kind:"group",name:"Groups",props:{...R,gap:24},parts:[{kind:"list",key:"locations",name:"City picture",props:{...R,darken:85,darkenStyle:"bottom",placement:"bottom-left",sectionBorder:YI,...Co(12,12)},item:(e,o,t)=>({props:{...xt(e.photo).trim()?{bgImage:xt(e.photo),hover:"mono"}:{},link:`#${MF(o)}`,boxShape:e8(t,e)}}),parts:[{kind:"text",key:"name",props:U,style:Tt(11,{letterSpacing:.22,color:"text"})}],groups:{of:ds,name:"Group",props:{...R,gap:10},head:e=>({label:ds(e[0]??{})}),parts:[pe("label",Tt(11,{color:"accent",letterSpacing:.3}))],itemsName:"Cities",itemsProps:o8(2),perRow:Cd,rowName:"Row",rowProps:{...XI,phoneRow:2}}}]}]},r8={kind:"group",name:"Words",props:{...R,gap:12,gapPhone:12,...Co(28,28),sectionHeightMode:"fixed",sectionHeightValue:280,sectionHeightUnit:"px",sectionHeightModePhone:"auto"},parts:[{kind:"group",name:"Name row",props:{...R,direction:"row",justify:"between",align:"start",gap:14,share:"content",phoneRow:2,sharePhone:"content",wrapPhone:"wrap",sectionPaddingBottom:6,sectionPaddingBottomPhone:6},parts:[{kind:"group",name:"Name",props:{...R,gap:6,gapPhone:6},parts:[{kind:"text",key:"name",role:"heading",props:U,style:{textStyle:"heading-3",...H("headingSmall",30),case:"upper",weight:500,lineHeight:1,letterSpacing:-.02}},{kind:"block",type:"Text",props:{...U,_partStyles:{text:Tt(12,{color:"accent",letterSpacing:.24,lineHeight:1.5})}},box:["region","state","country"].map(e=>[e,"text",(o,t)=>_F(t)]),when:(e,o)=>_F(o??{})!==""}]},{kind:"group",name:"Time zone",props:{...R,sectionBorder:YI,...Co(6,10)},parts:[{kind:"text",key:"timezone",props:{...oe,textFit:"line"},style:Tt(12,{letterSpacing:.22,lineHeight:1.5})}]}]},{kind:"text",key:"address",props:oe,style:{textStyle:"body-5",fontRole:"heading",...H("body",14),lineHeight:1.5}},{kind:"block",type:"ButtonBlock",props:{...fo,...Fa,variant:"ghost",arrow:!1,_partStyles:{label:Tt(13,{letterSpacing:.18,color:"text",lineHeight:24/13})}},box:[["phone","label"],["phone","href",e=>EF(xt(e))??"#"]],when:(e,o)=>xt(o?.phone).trim()!==""},{kind:"text",key:"hours",props:oe,style:Tt(12,{letterSpacing:.18,lineHeight:1.7})}]},a8={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)=>HF(t)]),...["region","country"].map(e=>[e,"country",(o,t)=>WF(t)])]},n8={kind:"group",name:"Map",props:{...R,sectionBorder:{top:1,right:0,bottom:0,left:0}},parts:[a8]},s8={kind:"list",key:"locations",name:"City",props:(e,o)=>({...R,gap:0,justify:"between",sectionBorder:YI,jumpHighlight:!0,sectionAccent:zr(e,o)>=0?Qn(e.sectionAccent,o):-1}),item:(e,o)=>({props:{anchor:MF(o)}}),parts:[r8,n8],groups:{of:ds,name:"Group",props:{...R,gap:20},head:e=>{let o=e[0]??{};return{key:ds(o),groupName:xt(o.groupName),count:`${e.length} location${e.length===1?"":"s"}`}},parts:[{kind:"group",name:"Group head",props:{...R,direction:"row",justify:"between",align:"end",gap:16,share:"content",sectionBorder:{bottom:1},sectionPaddingBottom:16},when:(e,o)=>xt(o?.key).trim()!=="",parts:[pe("key",Tt(13,{color:"accent",letterSpacing:.3})),{kind:"text",key:"groupName",role:"heading",props:U,style:{textStyle:"heading-3",...H("headingSmall",24),case:"upper",weight:500,letterSpacing:-.01}},{kind:"text",key:"count",props:oe,style:Tt(12,{letterSpacing:.22})}]}],itemsName:"Cities",itemsProps:e=>({...XI,columns:Cd(e),[XG("columns")]:1})}},FF=Tt(10,{letterSpacing:.25}),l8={kind:"block",type:qt,props:{...R,name:"Credit",direction:"row",justify:"end",align:"center",gap:6,share:"content",wrap:!0},when:JG,slot:Vt,keepEmpty:!0,parts:[{kind:"block",type:"Text",props:{...oe,text:"Location coordinates \xA9",_partStyles:{text:FF}}},{kind:"block",type:"ButtonBlock",props:{...fo,...Fa,variant:"ghost",arrow:!1,label:"OpenStreetMap contributors",href:"https://www.openstreetmap.org/copyright",_partStyles:{label:{...FF,color:"labels"}}}}]},BF=(e,o)=>Object.fromEntries(o.filter(t=>e[t]!==void 0).map(t=>[t,e[t]])),LF=["sectionPaddingTop","sectionPaddingTopTablet","sectionPaddingTopPhone"],RF=["sectionPaddingBottom","sectionPaddingBottomTablet","sectionPaddingBottomPhone"],DF=e=>e.map(o=>[o,o,(t,r)=>re(r,Mn)[o]]),NF=["sectionAccent","sectionAccent",Ur],i8=[...vr,...Pn,...Object.values(Ao)],d8={name:"City pictures",skip:e=>Me(e)?`fed by the data source "${Me(e)}": its cities are read as the page is served, not stored on the node`:void 0,boxProps:(e,o)=>({...Y,direction:"column",gap:40,anchor:"studios",...zo,...BF(re(e,Mn),LF),sectionPaddingBottom:AF,sectionPaddingBottomPhone:AF,...Ba(e,o)}),box:[...J.filter(e=>e!=="sectionAccent"&&e!=="anchor"),NF,["anchor","anchor",e=>Qv(e).trim()?e:"studios"],...DF(LF)],parts:[bp("sectionNumber","heading","tagline"),t8],also:[{name:"City maps",boxProps:(e,o)=>({...Y,direction:"column",gap:40,sectionBorder:{bottom:1},...zo,sectionPaddingTop:0,sectionPaddingTopPhone:0,...BF(re(e,Mn),RF),...Ba(e,o)}),box:[...i8,NF,...DF(RF)],parts:[s8,l8]}],reads:{mapTheme:"City maps Box: each Map block's Map theme",imageShape:"City pictures Box: each picture Box's Box shape"},site:jr,drop:{...X,...te,apiKey:"a stored Google Maps key from before the map needed none: the website's one map (components/SiteMap) takes no key, and a key is a credential, never page content",mapId:"a Google Maps style id from the same retired map: nothing in src/ reads it",gallery:"the retired separate tile list: the wall is derived from the cities (`components/ContactLocations`), nothing in src/ reads it",dataSource:"always empty here: a node fed by a source is skipped (see skip)"}},$F={ContactLocations:d8};import{SITE_SIDE as zF,sideLengthAt as f8}from"efficient-easel/screen/lib/content/length-units";import{viewKeyAt as JI}from"efficient-easel/draw";var c8=["FAQ","Footprint","LongRead","ProcessSteps","RelatedProducts"];var Gr=(e,o)=>()=>({top:e,topPhone:o}),UF=e=>o=>{let t=Hn(e),r={...o,[Pr.top]:Qd(o,t).top},a=i=>{let d=f8(r,Pr,Jd,i,"top");return d?.unit==="px"?d.value:void 0},n=i=>ye(o[JI(Pr.top,i)])===void 0?void 0:a(i),s=n("tablet"),l=n("mobile");return{top:a("desktop")??t.top??0,...s!==void 0?{topTablet:s}:{},...l!==void 0?{topPhone:l}:{}}},p8={Collections:Gr(120,70),Events:Gr(120,70),FAQ:Gr(sc.top,sc.topPhone),GalleryB:Gr(120,70),FitmentTable:Gr(120,80),SpecTable:Gr(120,80),LongRead:Gr(lc.top,lc.topPhone),RelatedProducts:Gr(0,0),Footprint:UF("Footprint"),ProcessSteps:UF("ProcessSteps"),ProductGrid:e=>({top:ye(e.padTop)??120,topPhone:0})};function u8(e,o={}){let t=z(Ct,e),r=z(p8,e);if(!t||!r)throw new Error(`section-to-box-rows-head: "${e}" has no head row or no head room`);let a=t.padKey,n=ct(e),s=vp(e),l=t.headRows.filter(d=>![t.num,t.title,t.description,"linkText","linkHref"].includes(d)),i={...Object.fromEntries(l.filter(d=>!(d in s)).map(d=>[d,"a head setting no Header Box part reads (lib/document/blocks/general/section-head-looks `headReads`)"])),...o.drop};return{name:z(ea,e)??e,boxProps:(d,f)=>{let m=r(d),u=o.roomBelow?{sectionPaddingBottom:o.roomBelow.bottom,sectionPaddingBottomPhone:o.roomBelow.bottomPhone}:{},h=typeof o.boxProps=="function"?o.boxProps(d,f):o.boxProps??{},I=Ra(e)==="editorial"?zo:{};return{...Y,direction:"column",gap:ai[Ra(e)],sectionPaddingTop:m.top,...m.topTablet!==void 0?{sectionPaddingTopTablet:m.topTablet}:{},...m.topPhone!==void 0?{sectionPaddingTopPhone:m.topPhone}:{},...I,...u,...h}},box:[...J,...a?[[a,"sectionPaddingTop",(d,f)=>r(f).top]]:[]],parts:[n,...(()=>{let d=a&&xO.has(e)?{[JI(a,"tablet")]:0,[JI(a,"mobile")]:0}:{},f={...a?{[a]:0}:{},...d,...o.coreProps},m={kind:"core",keep:"rest",...Object.keys(f).length?{props:f}:{},...o.slots?{slots:o.slots}:{}};return[o.coreBox?{kind:"group",name:o.coreBox.name,props:o.coreBox.props,parts:[m]}:m]})(),...o.partsAfter??[]],...Object.keys(s).length?{reads:s}:{},...Object.keys(i).length?{drop:i}:{},...o.pressHeading?{pressKeepsEmpty:[t.title]}:{},...o.skip?{skip:o.skip}:{}}}var m8={...R,direction:"accordion",rowStyle:"numbered"},x8={sectionPaddingLeft:zF,sectionPaddingRight:zF},h8={Footprint:{slots:{[Te]:[ww()]},pressHeading:!0},ProcessSteps:{slots:(e,o)=>o.press?{[Ns]:g1().map(t=>({...t,props:{...t.props,...x8}}))}:{},boxProps:{gapPhone:ai.editorial}},FAQ:{slots:{[Te]:[Sw()]},pressHeading:!0,coreBox:{name:"Questions",props:m8},coreProps:{sectionAccent:Cr},roomBelow:{bottom:120,bottomPhone:70},boxProps:(e,o)=>o.press?{}:{[Q0]:gl},skip:e=>{let o=e._partStyles??{},t=yw().filter(r=>o[r]!==void 0);return t.length?`held: its rows carry their own run style (_partStyles ${t.map(r=>`"${r}"`).join(", ")}), which the Box path does not draw the same`:void 0}}},jF=Object.fromEntries(c8.map(e=>[e,u8(e,z(h8,e))]));import{BLOCK_WIDTH_LIMIT as I8}from"efficient-easel/draw";var zp={eyebrow:Oe.eyebrow,title:Oe.headingAccent,deck:"Add a sentence or two introducing this document."},OSe={label:"Document masthead",defaultProps:{eyebrow:"",title:"",deck:"",meta:[]}};var YF={minWidth:I8.min},GF=(e,o,t)=>({...pe(e,{...o,...ei}),props:{...U,align:"right",..._a,...t}}),XF={top:1,bottom:0},eg=(e,o,t,r)=>({kind:"group",name:e,props:{...R,sectionPaddingBottom:o,sectionPaddingBottomPhone:t},parts:[r]}),KF={widthFit:"fill",...YF},g8={...H("label",13),letterSpacing:.22,lineHeight:1.8},qF={textStyle:"heading-1",...Uo("headingLarge",56,8,128),case:"upper",weight:500,lineHeight:.88,letterSpacing:-.04},y8=()=>({name:"Page Header",boxProps:e=>({...Y,direction:"column",gap:0,sectionBorder:{bottom:1},...re(e,cc)}),box:[...J,...ce(cc)],parts:[{kind:"group",name:"Header",props:{...R,direction:"row",align:"end",justify:"between",gap:40,gapPhone:16,share:"content",sectionPaddingBottom:32},parts:[eg("Eyebrow",12,0,{...pe("eyebrow",H("label",13)),props:{...U,..._a}}),{kind:"text",key:"title",role:"heading",props:{...U,tag:"h1",...KF},style:qF,mark:"accentItalic",when:e=>!Yh(e)},{kind:"text",key:"title",role:"heading",props:{...U,tag:"h2",...KF},style:qF,mark:"accentItalic",when:Yh},{kind:"group",name:"Details",props:{...R,align:"stretch",gap:0,gapPhone:0,sectionPaddingBottom:12,sectionPaddingBottomPhone:0},parts:[{kind:"list",key:"meta",name:"Detail",flat:!0,parts:[oi("label","value",g8,_a)]}]}]},{kind:"group",name:"Deck",props:{...R,maxWidth:760,sectionBorder:XF,sectionPaddingTop:28},parts:[{kind:"text",key:"deck",props:oe,style:{textStyle:"body-1",fontRole:"accent",...H("body",22,19),italic:!0,lineHeight:1.5}}]}],drop:{...X,...te,[Kc]:"read by the title part's `when`: 2 (set by lib/document/one-h1 on a later opener) makes the Text an h2, anything else an h1"}}),ZF=()=>({eyebrow:zp.eyebrow,title:vt(zp.title),deck:zp.deck,meta:[{label:Oe.label,value:Oe.value},{label:Oe.label,value:Oe.value}]}),S8={...H("label",13),letterSpacing:.18,lineHeight:1.8},VF={...H("label",13),letterSpacing:.22,lineHeight:1.9},b8=()=>({name:"Issue Header",boxProps:e=>({...Y,direction:"column",gap:0,sectionBorder:{bottom:1},...re(e,Cl)}),box:[...J,...ce(Cl)],parts:[{kind:"group",name:"Top",props:{...R,direction:"row",align:"end",justify:"between",gap:60,gapPhone:16,share:"content",sectionPaddingBottom:32},parts:[eg("Eyebrow",14,14,pe("eyebrow",H("label",14))),{kind:"group",name:"Issue",props:{...R,align:"end",gap:0,gapPhone:0,sectionPaddingBottom:14},parts:[{kind:"list",key:"issueMeta",name:"Issue line",flat:!0,parts:[oi("lead","rest",S8)]}]}]},{kind:"group",name:"Bottom",props:{...R,direction:"row",align:"start",justify:"between",gap:60,gapPhone:16,share:"content",sectionBorder:XF,sectionPaddingTop:32},parts:[{kind:"text",key:"lead",props:{...U,maxWidth:720,...YF},style:{textStyle:"body-1",fontRole:"heading3",...H("headingSmall",20),lineHeight:1.5,letterSpacing:-.005,paragraphSpacing:16}},{kind:"group",name:"In this issue",props:{...R,align:"stretch",gap:0},parts:[eg("Heading",6,6,{kind:"text",key:"issueHeading",props:{...U,align:"right",..._a},style:{textStyle:"body-1",fontRole:"heading",...H("body",18),weight:400,letterSpacing:-.01,lineHeight:1.9,...ei}}),{kind:"group",name:"Lines",props:{...R,align:"stretch",gap:0},parts:[{kind:"list",key:"issueList",name:"Line",flat:!0,parts:[GF("text",{color:"labels",...VF})]}]},GF("issueTotal",VF)]}]}],drop:{...X,...te}}),QI={color:"labels",...H("label",13),letterSpacing:.2},JF=e=>(Array.isArray(e.items)?e.items:[]).filter(o=>o&&typeof o.label=="string"&&o.label.trim()!==""),og=(e,o)=>o!==void 0&&JF(e).at(-1)===o,QF=(e,o)=>o!==void 0&&JF(e).includes(o),w8=(e,o)=>QF(e,o)&&!og(e,o)&&We(o?.href),C8=()=>({name:"Breadcrumb",skip:e=>We(e.meta)?'a trailing note after "\xB7" needs a second mark; none live':void 0,boxProps:e=>({...Y,...ma,wrap:"wrap",gap:16,gapPhone:16,separator:"slash",sectionBorder:{bottom:1},...re(e,yl)}),box:[...J,...ce(yl)],parts:[{kind:"list",key:"items",name:"Crumb",flat:!0,parts:[{kind:"button",key:"label",href:"href",variant:"ghost",when:w8,props:{...fo,...Fa,icon:"none"},style:QI},{...pe("label",QI),when:(e,o)=>QF(e,o)&&!og(e,o)&&!We(o?.href)},{...pe("label",{...QI,color:"text"}),when:og}]}],drop:{...X,...te,meta:"a node that stores a note is skipped (`skip`); an empty one draws nothing",...fp}}),eB={DocMasthead:y8(),Masthead:b8(),Breadcrumb:C8()};import{BLOCK_WIDTH_LIMIT as v8,hiddenKeyOf as P8}from"efficient-easel/draw";import{readHidable as tg}from"efficient-easel/draw";function k8(e,o,t){return e||(t?.isEditing?c(o):void 0)}function USe(e,o,t){let r=Array.isArray(e)?e:[];return r.length?r:t?.isEditing?o:[]}function oB(e,o,t){let r=tg(e);if(!r.hidden)return k8(r.text,o,t)}function tB(e){if(e==null)return;let o=tg(e);return o.hidden?"":o.text}function jSe(e,o,t){return tg(e).hidden?"":oB(e,o,t)}function GSe(e,o,t){return{text:oB(e,je.text,t),href:o||je.href}}var sB="MenuBlock",rg=e=>(Array.isArray(e)?e:[]).filter(o=>o&&We(o.label)),rB=e=>{let[o,t]=[e.metaLabel,e.metaValue].map(a=>(tB(a)??"").trim());if(!t)return o;let r=t.includes("==")?t:`==${t}==`;return o?`${o} ${r}`:r},aB={top:0,bottom:0,topPhone:0,bottomPhone:0},T8={...Ro,color:"labels",...H("label",12),letterSpacing:.24},O8={kind:"group",name:"Note",props:{...R,justify:"center",sectionBorder:{top:0,right:0,bottom:0,left:1},sectionPaddingLeft:28,[P8("mobile")]:!0},parts:[{kind:"block",type:"Text",when:e=>rB(e)!=="",props:e=>({...U,textFit:"line",text:rB(e),[Cv]:{text:T8}})}]},lB=()=>({tabs:[],metaLabel:Oe.label,metaValue:Oe.value}),nB="the note Text inside the Box (the label, then the value in the accent); no words, no Text",iB={direction:"row",menuStyle:"tabs",currentPage:!0,minWidth:v8.min},dB=e=>({...e,boxProps:o=>({...Y,direction:"row",align:"stretch",justify:"between",gap:0,stickTop:!0,[bn]:0,[Qs]:!0,sectionBorder:{bottom:1},...re(o,aB)}),box:[...J,...ce(aB)]}),E8=()=>dB({name:"Tab Bar",skip:e=>rg(e.tabs).length?"its tabs need a Console menu first: they are typed labels and links, and the Menu block draws only a Console menu":void 0,reads:{metaLabel:nB,metaValue:nB},parts:[{kind:"block",type:sB,props:iB},O8],drop:{...X,...te,tabs:"a node whose tabs hold words is skipped (`skip`): typed tabs are not a Console menu; a list of blank tabs draws nothing, so nothing is lost"}}),_8=()=>dB({name:"Category Bar",skip:e=>{if(rg(e.tabs).length)return"its tabs are typed words with typed counts, not the blog's categories: a Blog categories Menu would replace them";if(rg(e.links).length)return"its right-hand links are typed words: the bar holds the Menu only"},parts:[{kind:"block",type:sB,props:{...iB,[lo]:nb}}],drop:{...X,...te,tabs:"a node whose tabs hold words is skipped (`skip`); blank tabs draw nothing on a page, so nothing is lost. The Menu draws the blog's own categories",activeTab:"the Menu marks the page's own entry (Current page), not a typed active tab",links:"a node whose links hold words is skipped (`skip`); blank links draw nothing",sticky:"the bar is always pinned (the Box's own pin, Stays above): the merchant turns the Box's pin off",editing:"the editor's preview flag, never a stored setting: the editor tells every block it is editing"}}),fB={DocTabs:E8(),CategoryBar:_8()};import{jsx as Na,jsxs as ag}from"react/jsx-runtime";import{slugify as M8}from"efficient-shell/format";import{jsx as jp,jsxs as uB}from"react/jsx-runtime";import{jsx as A8}from"react/jsx-runtime";import{useEffect as F8,useRef as B8}from"react";var cB="data-current",L8=1/3,R8=2;function D8(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 N8(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=D8(n,o,t);for(let l of r)s!==null&&a(l)===s?(l.setAttribute(cB,""),l.setAttribute("aria-current","location")):(l.removeAttribute(cB),l.removeAttribute("aria-current"))}function pB(){let e=B8(null);return F8(()=>{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-R8;N8(o,window.innerHeight*L8,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)}},[]),A8("span",{ref:e,hidden:!0})}var sbe="sticky top-[120px]";var Up={entry:{label:"Entry",follows:"Labels",builtIn:"13px",writable:!0},number:{label:"Entry number",follows:"Labels",builtIn:"13px",writable:!0}};var mB=(e,o)=>e?{[ra]:o}:{},xB=(e,o)=>Iw(e?.[zs(o)]?.role,Up[o],bb),hB=120;function IB({title:e,entries:o,stickyTop:t,sticky:r=!0,editing:a=!1,partStyles:n,numberForm:s=Jx,takesViewHide:l=!1,markCurrent:i=!1}){let d=s==="plain",f=nt(),m=l?f:Or;return m.scope(uB("aside",{className:ko(`${r?"sticky ":""}flex flex-col self-start max-[900px]:static`,m.className),style:r?{top:t}:void 0,...m.attrs,children:[e&&jp("h4",{className:"mb-[18px] font-mono text-[length:var(--size-label,12px)] uppercase tracking-[0.3em] text-accent",children:Ze(e)}),o.map((u,h)=>{let I=jp("span",{...mB(a,"number"),style:xB(n,"number"),className:"text-accent",children:zf(s,h)});return uB("a",{href:`#${u.anchor}`,className:`flex items-center ${d?"justify-start gap-1":"justify-between gap-3"} border-b border-line py-2.5 font-mono text-[length:var(--size-label,13px)] uppercase tracking-[0.18em] text-fg-dim transition-colors hover:text-fg${h===0?" border-t":""}${i?" data-[current]:text-fg":""}`,children:[d&&I,jp("span",{...mB(a,"entry"),style:xB(n,"entry"),children:Ze(u.label||"Section")}),!d&&I]},`${h}-${u.anchor}`)}),i&&!a&&jp(pB,{})]}))}function gB(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 H8(e,o){return M8(e)||`section-${o+1}`}var ng=e=>typeof e=="string"&&e.trim()!=="";function sg(e){return(e??[]).filter(o=>ng(o.heading)||ng(o.label)||ng(o.body))}function lg(e){return gB(e.map((o,t)=>H8(o.label||o.heading||"",t)))}function ig(e){let o=[];for(let t of e.replace(/\r\n?/g,`
|
|
324
|
-
`).split(/\n[ \t]*\n/))t.split(`
|
|
325
|
-
`).map(r=>r.replace(/\s+$/,"")).filter(r=>r.trim()!=="").forEach((r,a)=>{let n=md(r)[0].bullet,s=o.at(-1),l=a===0||!s||s.type==="ul"!==n;if(n){let i=r.slice(2);!l&&s?.type==="ul"?s.items.push(i):o.push({type:"ul",items:[i]})}else!l&&s?.type==="p"?s.text+=`
|
|
326
|
-
${r}`:o.push({type:"p",text:r})});return o}var W8=()=>[{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.")}],$8=hB;function Fbe({tocTitle:e,sections:o,editing:t=!1,stickyTop:r=$8,pad:a}){let n=Pt(),s=sg(o);if(s.length===0&&!t)return null;let l=s.length===0&&t?W8():s,i=lg(l);return Na(fe,{as:"section",className:"relative z-[2] bg-bg",children:ag("div",{...cO(rt("mx-auto grid max-w-[var(--sf-site-width,1600px)] grid-cols-[240px_1fr] items-start gap-20 border-b border-line px-[var(--sf-site-gutter,40px)] py-20 max-[900px]:grid-cols-1 max-[900px]:gap-10 max-[900px]:px-[min(24px,var(--sf-site-gutter,40px))] max-[900px]:py-[60px]",n),a),children:[Na(IB,{title:e,entries:l.map((d,f)=>({label:d.label||"Section",anchor:i[f]})),stickyTop:r}),Na("div",{className:"flex flex-col gap-16",children:l.map((d,f)=>ag("article",{id:i[f],className:"flex flex-col gap-[18px]",style:{scrollMarginTop:r},children:[ag("span",{className:"font-mono text-[length:var(--size-label,12px)] uppercase tracking-[0.3em] text-accent",children:[Zx(f)," \xB7 ",Ze(d.label||"Section")]}),d.heading&&Na("h2",{className:"mb-2 border-b border-line pb-[18px] font-heading2 text-[length:min(var(--size-headingMedium,clamp(28px,3.5vw,44px)),var(--sf-heading-max,9999px))] font-medium uppercase leading-[1.04] tracking-[-0.025em]",children:Ze(d.heading)}),ig(d.body??"").map((m,u)=>m.type==="ul"?Na("ul",{className:"flex max-w-[680px] list-none flex-col gap-2.5 pl-0",children:m.items.map((h,I)=>Na("li",{className:"relative pl-6 font-serif text-[length:var(--size-body,17px)] leading-[1.65] text-fg-dim before:absolute before:-top-0.5 before:left-1.5 before:text-[length:var(--size-body,24px)] before:leading-none before:text-accent before:content-['\xB7']",children:Ze(h)},I))},u):Na("p",{className:"max-w-[680px] font-serif text-[length:var(--size-body,17px)] leading-[1.7] text-fg-dim",children:Ze(m.text)},u))]},i[f]))})]})})}var yB=18,SB=18,bB=8,z8=10,dg=e=>typeof e=="string"&&e.trim()!=="",wB=e=>sg(e.sections),U8=e=>ig(typeof e.body=="string"?e.body:"").map(o=>o.type==="ul"?{kind:"ul",text:o.items.map(t=>`- ${t}`).join(`
|
|
330
|
-
`)}:{kind:"p",text:o.text}),fg={...wt(12),letterSpacing:.3,color:"accent",lineHeight:1.5},CB={textStyle:"body-1",fontRole:"accent",...H("body",17)},j8=[pe("label",fg),{...pe("title",fg),when:(e,o)=>!dg(o?.label)},{kind:"block",type:"Text",when:(e,o)=>!dg(o?.label)&&!dg(o?.title),props:{...U,text:"Section",_partStyles:{text:fg}}},{kind:"group",name:"Heading",props:{...R,sectionPaddingBottom:bB,sectionPaddingBottomPhone:bB},parts:[{kind:"group",name:"Heading line",props:{...R,sectionBorder:{bottom:1},sectionPaddingBottom:SB,sectionPaddingBottomPhone:SB},parts:[{kind:"text",key:"heading",role:"heading",props:U,style:{textStyle:"heading-2",...Uo("headingMedium",28,3.5,44),case:"upper",weight:500,lineHeight:1.04,letterSpacing:-.025}}]}]},{kind:"list",key:"body",name:"Body",flat:!0,of:U8,parts:[{kind:"text",key:"text",props:oe,style:{...CB,lineHeight:1.7},when:(e,o)=>o?.kind==="p"},{kind:"text",key:"text",props:oe,style:{...CB,lineHeight:1.65,paragraphSpacing:z8},when:(e,o)=>o?.kind==="ul"}]}],G8=900,K8={name:"Document Text",boxProps:e=>({...Y,direction:"row",gap:80,gapPhone:40,[yp]:G8,sectionBorder:{bottom:1},...re(e,fc)}),box:["anchor","sectionAccent",...vr,...Pn,...Object.values(Ao),...ce(fc)],parts:[{kind:"block",type:"Contents",props:e=>({title:e.tocTitle??"",sticky:!0,widthFit:"fixed",width:240,widthFitPhone:"fill"})},{kind:"group",name:"Sections",props:{...R,gap:64,gapPhone:64,widthFit:"fill"},parts:[{kind:"list",key:"sections",name:"Section",of:e=>wB(e),props:{...R,gap:yB,gapPhone:yB},item:(e,o,t)=>({props:{anchor:lg(wB(t))[o]??`section-${o+1}`}}),parts:j8}]}],reads:{tocTitle:"the Contents block's Heading"},drop:{...X,stickyTop:"the Contents block draws DocBody's default (120px); 0 live nodes store it"}},kB={DocBody:K8};import{phoneKey as X8}from"efficient-easel/draw";import{SITE_SIDE as Z8}from"efficient-easel/screen/lib/content/length-units";var jbe={eyebrow:"\u2014 Label",title:`Section headline *here.*
|
|
331
|
-
*Highlight line*`,body:"Describe this section in a sentence or two."},Gbe={text:"Learn more"},Kbe={label:"Image & Text Split",drawsPictures:!0,defaultProps:{eyebrow:"",title:"",body:"",imageSrc:"",reverse:!1,uppercase:!1,textAlign:"left",ctaText:"",ctaHref:"",imageBtnText:"",imageBtnHref:"",textBgSrc:"",overlay:60,imageOverlay:40}};function cg(e){return typeof e=="number"&&Number.isFinite(e)?Math.min(Math.max(e,0),100):40}import{parseOption as q8}from"efficient-shell/format";var vB="[--intro-edge:60px] max-[960px]:[--intro-edge:24px]",V8="overlay",Y8=[{label:"Copy over image",value:"overlay"},{label:"Copy above image",value:"stacked"}];function Gp(e){return q8(Y8,V8,e)}var Ybe={desktop:40,mobile:45,min:20,max:80,step:5};function Xbe(e,o){return`${typeof e=="number"?e:o}%`}import{parseOption as J8}from"efficient-shell/format";var PB=(e,o,t)=>{let r=ye(e),a=ye(o),n=(s,l)=>l&&l!=="px"?{[s]:l}:{};return{...r===void 0?{}:{size:r,...n(nl.size,t?.desktop)},...a===void 0?{}:{sizePhone:a,...n(nl.sizePhone,t?.phone)}}},Q8=e=>Gp(e.layout)==="stacked",TB=e=>Math.min(Math.max(ye(e.overlay)??60,0),100),Kp=e=>ye(e)??100,eK={textStyle:"heading-1",sizeToken:{...Uo("headingLarge",48,7,96).sizeToken,pxPhone:36},weight:500,lineHeight:.95,letterSpacing:-.03},oK=[pe("eyebrow",H("label",14)),...[!0,!1].map(e=>({kind:"text",key:"title",role:"heading",props:U,style:{...eK,case:e?"upper":"none"},styleFrom:o=>{let t=Tx(o);return PB(o.titleSizeDesktop,o.titleSizeMobile,{desktop:t.titleDesktop,phone:t.titleMobile})},when:o=>o.uppercase===!0===e})),{kind:"text",key:"body",props:{...oe,maxWidth:560},style:{textStyle:"body-1",...H("body",17,16),lineHeight:1.6,paragraphSpacing:24},styleFrom:e=>{let o=Tx(e);return PB(e.bodySizeDesktop,e.bodySizeMobile,{desktop:o.bodyDesktop,phone:o.bodyMobile})}},{kind:"group",name:"Button",props:{...R,align:"start",sectionPaddingTop:8,sectionPaddingTopPhone:8},parts:[{kind:"button",key:"ctaText",href:"ctaHref",variant:"primary",props:fo}]}],OB=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)`,tK=()=>({name:"Scroll-Over Text",skip:e=>Q8(e)?"the stacked layout: its words row's height floor (`copyShare*`) and the header subtraction have no Box setting; 0 live US nodes":void 0,boxProps:e=>({...Y,direction:"column",justify:"center",align:"start",gap:24,gapPhone:24,share:"content",...ti,placement:"left",darken:TB(e),darkenStyle:"even",sectionHeightMode:"fixed",sectionHeightUnit:"%",sectionHeightValue:Kp(e.heightDesktop),sectionHeightModePhone:"fixed",sectionHeightUnitPhone:"%",sectionHeightValuePhone:Kp(e.heightMobile),[Vd]:uk}),box:[...J.filter(e=>!String(typeof e=="string"?e:e[0]).startsWith("sectionHeight")),["imageSrc","bgImage"],["imageSrcMobile","bgImagePhone"],["overlay","darken",(e,o)=>TB(o)],["heightDesktop","sectionHeightValue",e=>Kp(e)],["heightMobile","sectionHeightValuePhone",e=>Kp(e)]],parts:oK,drop:{uppercase:"not a value of its own: it picks the heading part \u2014 Case Upper when on, None (as typed) when off",layout:"not a value of its own: the overlay layout is this tree; a stacked node is skipped (`skip`)",copyShareDesktop:"the stacked layout's words-row floor, read only there; a stacked node is skipped",copyShareMobile:"the stacked layout's words-row floor, read only there; a stacked node is skipped",sticky:"the old pin key, read as `stickTop` by the section pin's one reader (lib/content/section-sticky); the Box keeps a stored `stickTop` (SAME_KEYS), and this row is switched off until the stored pages hold `stickTop`",titleSizeDesktop:"read by the heading part's `styleFrom`: a number is its Size, `inherit` and unset follow the token",titleSizeMobile:"read by the heading part's `styleFrom`: a number is its phone Size, `inherit` and unset follow the token",bodySizeDesktop:"read by the words part's `styleFrom`: a number is its Size, `inherit` and unset follow the token",bodySizeMobile:"read by the words part's `styleFrom`: a number is its phone Size, `inherit` and unset follow the token",...Object.fromEntries(gP.map(e=>[e,"read by its part's `styleFrom`: the unit of that view's Size"])),buttonColor:OB("Button color"),buttonTextColor:OB("Button text color"),...X}}),AB={textStyle:"heading-2",...H("headingMedium",56,36),weight:400,lineHeight:1.05,letterSpacing:-.03},rK={textStyle:"body-1",...H("body",16),lineHeight:1.7},FB=e=>({kind:"text",key:"body",props:{...oe,maxWidth:520},style:{...rK,paragraphSpacing:e}}),Vp={top:0,bottom:0,topPhone:0,bottomPhone:0},pg=(e,o)=>typeof e.sectionHeightMode=="string"&&e.sectionHeightMode!=="auto"?{}:{sectionHeightMode:"fixed",sectionHeightUnit:"%",sectionHeightValue:o,sectionHeightModePhone:"auto"},aK=(e,o)=>{let t=pg(e,o);return Object.keys(t).length?t:{sectionHeightMode:e.sectionHeightMode,...e.sectionHeightValue===void 0?{}:{sectionHeightValue:e.sectionHeightValue},...e.sectionHeightUnit===void 0?{}:{sectionHeightUnit:e.sectionHeightUnit},sectionHeightModePhone:"auto"}},BB={boxShapePhone:"landscape"},LB="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)",nK=(e,o)=>({[e]:o,[X8(e)]:o}),sK={textStyle:"heading-2",...H("headingMedium",40),weight:500,case:"none",lineHeight:1,letterSpacing:-.02},EB=e=>(Array.isArray(e.stats)?e.stats:[]).filter(o=>o&&(String(o.value??"").trim()!==""||String(o.label??"").trim()!=="")),lK=()=>({name:"Brand Text",boxProps:(e,o)=>({...Y,...$o("background")(e,o),direction:"row",share:"equal",gap:0,gapPhone:0,sectionBorder:{top:1,bottom:1},...re(e,Vp),...pg(e,100)}),box:[...J,...ce(Vp)],parts:[{kind:"group",name:"Words",props:()=>({...R,justify:"center",gap:28,gapPhone:28,sectionBorder:ri({right:1}),sectionBorderPhone:ri({}),...ti,sectionPaddingTop:100,sectionPaddingBottom:100,sectionPaddingTopPhone:60,sectionPaddingBottomPhone:60,sectionPaddingRight:Z8}),parts:[pe("eyebrow",H("label",14)),{kind:"text",key:"heading",role:"heading",props:U,style:{...AB,case:"none"},mark:"accentItalic"},FB(28),{kind:"group",name:"Stats",props:{...R,sectionPaddingTop:16,sectionPaddingTopPhone:16},parts:[{kind:"group",name:"Figures",props:e=>({...R,direction:"row",share:"equal",gap:24,gapPhone:24,maxWidth:520,phoneRow:Math.min(Math.max(EB(e).length,1),3),...nK("sectionBorder",ri({top:1})),sectionPaddingTop:28,sectionPaddingTopPhone:28}),parts:[{kind:"list",key:"stats",name:"Stat",of:EB,props:{...R,gap:4,gapPhone:4},parts:[{kind:"text",key:"value",props:Aa,style:sK},pe("label",{...H("label",13),color:"labels",letterSpacing:.2})]}]}]}]},mI("Picture","imageSrc",BB)],drop:{...X,grayscale:LB,...te}}),qp=e=>{let o=e.textAlign==="center"||e.textAlign==="right"?{align:e.textAlign}:{},t=e.textAlignPhone==="left"||e.textAlignPhone==="center"||e.textAlignPhone==="right"?{alignPhone:e.textAlignPhone}:{};return{...o,...t}},iK=e=>e.textAlign==="center"||e.textAlign==="right"?gd[e.textAlign]:"stretch",dK=e=>Math.min(Math.max(ye(e.overlay)??60,0),100),RB=e=>typeof e=="string"&&e.trim()!=="",fK={...fo,align:"center",alignPhone:"center",buttonFillOpacity:0,buttonBorder:{width:1},buttonPaddingTop:16,buttonPaddingRight:28,buttonPaddingBottom:16,buttonPaddingLeft:28,buttonPaddingTopPhone:12,buttonPaddingRightPhone:20,buttonPaddingBottomPhone:12,buttonPaddingLeftPhone:20},_B=e=>({...mI("Picture","imageSrc",(o,t)=>({...RB(o.imageSrc)&&cg(o.imageOverlay)>0?{darken:cg(o.imageOverlay),darkenStyle:"even"}:{},placement:"center",...BB,sectionBorder:ri(e?{left:1}:{right:1}),...DB(e?"left":"right",os(t))}),[{kind:"button",key:"imageBtnText",href:"imageBtnHref",variant:"ghost",props:fK,style:{...wt(13,12),letterSpacing:.18}}]),when:o=>o.reverse===!0===e}),DB=(e,o)=>{let t=Math.max(60-o,0);return{sectionPaddingLeft:e==="left"?60:t,sectionPaddingRight:e==="right"?60:t}},cK={kind:"group",name:"Words",props:(e,o)=>{let t=e.reverse===!0;return{...R,justify:"center",align:iK(e),placement:J8(["left","center","right"],"left",e.textAlign),...aK(e,72),gap:24,gapPhone:24,...RB(e.textBgSrc)?{darken:dK(e),darkenStyle:"even"}:{},...ti,sectionPaddingTop:100,sectionPaddingBottom:100,...DB(t?"right":"left",os(o)),sectionPaddingTopPhone:60,sectionPaddingBottomPhone:60}},box:[["textBgSrc","bgImage"]],parts:[{...pe("eyebrow",H("label",14)),styleFrom:qp},{kind:"text",key:"title",role:"heading",props:U,style:AB,styleFrom:e=>({case:e.uppercase===!0?"upper":"none",...qp(e)})},{...FB(24),styleFrom:qp},{kind:"group",name:"Button",props:{...R,sectionPaddingTop:8,sectionPaddingTopPhone:8},parts:[{kind:"button",key:"ctaText",href:"ctaHref",variant:"primary",props:e=>{let o=qp(e);return{...fo,...o.align?{align:o.align}:{},...o.alignPhone?{alignPhone:o.alignPhone}:{}}}}]}]},pK=()=>({name:"Image & Text Split",boxProps:(e,o)=>({...Y,...$o("background")(e,o),direction:"row",share:"equal",gap:0,gapPhone:0,sectionBorder:{top:1,bottom:1},...re(e,Vp),...pg(e,72)}),box:[...J,...ce(Vp)],parts:[_B(!1),cK,_B(!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:LB,...X,...te}}),NB={IntroBleed:tK(),Manifesto:lK(),Split:pK()};var WB={headPlacement:void 0},MB={top:0,bottom:0,topPhone:0,bottomPhone:0},uK=()=>({name:"Form",ownBoxConverts:!0,boxProps:e=>({...Y,direction:"column",...re(e,MB)}),box:[...J,...ce(MB)],parts:[{kind:"core",keep:"rest",props:WB}],drop:{...X,...te}}),HB={top:120,bottom:120,topPhone:60,bottomPhone:60},mK=()=>({name:"Photo Submission Form",boxProps:e=>({...Y,direction:"column",gap:24,...re(e,HB)}),box:[...J,...ce(HB)],parts:[pe("eyebrow"),{kind:"text",key:"title",role:"heading",props:U,style:{textStyle:"heading-2"},mark:"accentItalic"},{kind:"text",key:"body",role:"body",props:oe},{kind:"core",as:"Form",keep:["formSlug"],rename:{buttonText:"submitText",consent:"finePrint"},props:WB}],skip:e=>e.layout==="boxes"?`its words are in its two SubmitBox regions (layout "boxes"); this row reads only the section's own words`:void 0,drop:{...X,...te,layout:'the marker of the two-region drawing; a node that has it is skipped (above), so here it is never "boxes"',boxes:'the SubmitBox regions, drawn only under layout "boxes", which this row skips (above); without that marker they draw nothing'}}),$B={Form:uK(),SubmitBuild:mK()};import{phoneKey as zB}from"efficient-easel/draw";var jB=1.5,UB={textStyle:"body-1",...H("body",15),lineHeight:jB},xK={...Ro,...H("label",12),letterSpacing:.12,lineHeight:jB},GB=()=>({type:q,props:{...R,direction:"row",justify:"between",align:"start",gap:16,gapPhone:16,share:"content",phoneRow:2,[zB("share")]:"content",[zB("wrap")]:"nowrap",...Co(12,0),sectionBorder:{top:1},name:"Item"},slots:{[Ce]:[{type:q,props:{...R,gap:0,gapPhone:0,name:"Item words"},slots:{[Ce]:[Be("label",{...U,tag:"p"},UB),Be("meta",{...oe,tag:"p"},xK)]}},Be("amount",{...U,tag:"p"},UB)]}});var hK=()=>({name:"Order Table",boxProps:()=>({...Y,direction:"column"}),box:[...J],parts:[{kind:"core",keep:"rest",headless:!0,slots:{[Te]:[GB()]}}],drop:{...X}}),KB={OrderSummary:hK()};import{phoneKey as IK}from"efficient-easel/draw";var Cwe={eyebrow:"By the numbers",title:`A picture worth
|
|
332
|
-
*a thousand rows.*`},qB=["eyebrow","title","body","caption"],kwe={label:"Chart",defaultProps:{eyebrow:"",title:"",body:"",items:[],caption:"",chartStyle:"bars",valueSuffix:""}};var VB=["eyebrow","title","body"],Pwe={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 ZB=()=>({kind:"group",name:"Words",props:{...R,gap:20,gapPhone:20},parts:[{kind:"group",name:"Chip row",props:{...R,direction:"row",phoneRow:2,[IK("share")]:"content"},parts:[Jn("eyebrow")]},{kind:"text",key:"title",role:"heading",props:U,style:{textStyle:"heading-2",...H("headingMedium",44,32),weight:500,case:"upper",lineHeight:1.04,letterSpacing:-.02}},{kind:"text",key:"body",props:{...oe,maxWidth:435},style:Sd(16)}]}),JB=e=>(o,t)=>({...Y,sectionAccent:es(o.sectionAccent??0,t),direction:"row",align:"center",gap:56,gapPhone:56,share:e,sectionBorder:{top:1,bottom:1},...re(o,kl)}),QB=[...J.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,t)=>es(e,t)],...ce(kl)],gK=()=>({name:"Chart",boxProps:JB([42]),box:QB,parts:[ZB(),{kind:"group",name:"Chart",props:{...R,gap:16,gapPhone:16},keepEmpty:!0,parts:[{kind:"core",keep:"rest",props:Zn},pe("caption",{color:"muted",...H("label",10),letterSpacing:.14})]}],pressKeepsEmpty:[...qB],drop:{...X,...te}}),YB=e=>e.align==="left",XB={kind:"group",name:"Card",keepEmpty:!0,props:R,parts:[{kind:"core",keep:"rest",props:Zn}]},yK=()=>({name:"Mockup Card",boxProps:JB("equal"),box:QB,parts:[{...XB,when:YB},ZB(),{...XB,when:e=>!YB(e)}],pressKeepsEmpty:[...VB],drop:{...X,...te}}),eL={Chart:gK(),Mockup:yK()};import{phoneKey as bK}from"efficient-easel/draw";function oL(e,o=3){let t=Array.from({length:o},()=>[]);return e.forEach((r,a)=>t[a%o].push(r)),t}function tL(e){return Math.max(e*6,30)}var wK=e=>(Array.isArray(e.apps)?e.apps:[]).map(o=>o&&typeof o=="object"&&typeof o.text=="string"?o.text.trim():"").filter(Boolean),ug=e=>oL(wK(e)),CK=e=>Bp({loopDuration:tL(e)}),kK={kind:"group",name:"Header",props:{...R,align:"center",gap:20,gapPhone:20},parts:[{kind:"group",name:"Chip row",props:{...R,direction:"row",justify:"center",phoneRow:2,[bK("share")]:"content"},parts:[Jn("eyebrow")]},{kind:"text",key:"title",role:"heading",props:{...U,align:"center"},style:{textStyle:"heading-2",...H("headingMedium",40,30),weight:500,case:"upper",lineHeight:1.04,letterSpacing:-.02}},{kind:"text",key:"body",props:{...oe,align:"center",maxWidth:568},style:Sd(16)}]},vK=e=>({kind:"group",name:`Row ${e+1}`,when:o=>ug(o)[e].length>0,props:o=>({...R,direction:"row",gap:12,gapPhone:12,loop:"scroll",...e%2===1?{scrollDirection:"right"}:{},loopDuration:CK(ug(o)[e].length)}),parts:[{kind:"block",type:"Logos",props:{contained:!1,headPlacement:"own-box",look:"chips",grayscale:!1},slot:"logos",parts:[{kind:"list",key:"apps",name:"Logo",flat:!0,of:o=>ug(o)[e].map(t=>({alt:t})),parts:[{kind:"block",type:"LogoBlock",box:["alt"]}]}]}]}),PK={kind:"group",name:"Stat",props:{...R,align:"center",gap:16,gapPhone:16},parts:[{kind:"group",name:"Figure",props:{...R,align:"center",gap:8,gapPhone:8},parts:[{kind:"text",key:"statValue",props:{...U,align:"center"},style:{textStyle:"heading-1",...H("headingLarge",64,46),weight:500,case:"upper",lineHeight:1,color:"accent"}},{kind:"text",key:"statLabel",props:{...U,align:"center"},style:{textStyle:"heading-3",...H("headingSmall",18),weight:500,case:"upper",letterSpacing:.06}}]},{kind:"text",key:"note",props:{...U,align:"center",maxWidth:428},style:{textStyle:"body-1",...H("label",14),lineHeight:1.625,color:"muted"}}]},TK=[...J.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,t)=>es(e,t)],...ce(mc)],OK={name:"Integrations",boxProps:(e,o)=>({...Y,sectionAccent:es(e.sectionAccent??0,o),direction:"column",gap:48,gapPhone:48,sectionBorder:{top:1,bottom:1},...re(e,mc)}),box:TK,parts:[kK,{kind:"group",name:"Rows",props:{...R,gap:12,gapPhone:12},parts:Array.from({length:3},(e,o)=>vK(o))},PK],pressKeepsEmpty:["body","statValue","statLabel","note"],reads:{apps:"a Logo block per app, dealt into the three Rows"},drop:{...X,...te}},rL={Integrations:OK},aL=()=>({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 EK={title:"Back online in",zeroText:"Almost done. Back very soon."},nL=["title"],jwe={label:"Countdown",defaultProps:{...EK,endsAt:"",showUnits:!0}};var _K={...pe("title",{...iw(12),color:"muted"}),props:{...U,align:"center"}},AK=()=>({name:"Countdown",boxProps:e=>({...Y,direction:"column",align:"center",gap:16,gapPhone:16,...re(e,dc)}),box:[...J,...ce(dc)],parts:[_K,{kind:"core",keep:"rest",props:Zn}],pressKeepsEmpty:[...nL],drop:{...X,...te}}),FK=()=>({name:"Feature Banner",boxProps:e=>({...Y,direction:"column",sectionBorder:{bottom:1},...re(e,uc)}),box:[...J,...ce(uc)],parts:[{kind:"core",keep:"rest",props:Zn}],drop:{...X,...te}}),sL={Countdown:AK(),FeaturedCover:FK()};var lL={top:80,bottom:80,topPhone:60,bottomPhone:60},BK=()=>{let e=vp("FitmentFinder");return{name:"Fitment Form",boxProps:o=>({...Y,direction:"column",gap:ai[Ra("FitmentFinder")],...re(o,lL)}),box:[...J,...ce(lL)],parts:[ct("FitmentFinder"),{kind:"block",type:"FitmentPicker"},{kind:"block",type:"StockFitment"},{kind:"button",key:"ctaText",href:"ctaHref"}],skip:o=>o.layout==="bar"?"the one-row shape goes to the shop on the fourth pick and draws no head; the Fitment picker block never leaves the page":void 0,...Object.keys(e).length?{reads:e}:{},drop:{...X,...te,layout:'the section shape; "bar" is skipped (above), so here it is the stacked shape this Box draws'}}},iL={FitmentFinder:BK()};var Yp={eyebrow:"Label",title:"Section *heading.*",body:"Add this section's copy here. A blank line starts a new paragraph."},eCe={label:"Editorial Text",defaultProps:{eyebrow:"",title:"",body:"",topBorder:!0}};var mi={eyebrow:Oe.eyebrow,lead:"Introduce your company in a paragraph or two.",foundersHeading:"Add a short heading.",foundersBody:"Add a short statement here \u2014 a sentence or two is plenty.",attribution:"\u2014 Name, Year"},rCe={label:"Lead Text",defaultProps:{eyebrow:"",lead:"",stats:[],foundersHeading:"",foundersBody:"",attribution:"",padTop:60,padBottom:80}};var dL={eyebrow:"Limited release",title:"Banner headline",body:"A line or two of supporting copy."},nCe={label:"Banner",drawsPictures:!0,defaultProps:{eyebrow:"",title:"",body:"",imageSrc:"",ctaText:"",ctaHref:"",contained:!0,overlay:60}};var fL={title:`Section heading
|
|
334
|
-
*Highlight line*`},cL=[{label:je.text,href:je.href,variant:"primary"},{label:je.text,href:je.href,variant:"outline"}],iCe={label:"Call-to-Action Heading",defaultProps:{title:"",buttons:[],padTop:140,padBottom:140}};var hr={num:"01 / Section",title:"Section *title*",description:"Short supporting line",linkText:Oe.viewAll},uCe={label:"Section Header",drawsPictures:!0,defaultProps:{headStyle:oc,num:hr.num,numStyle:Tl,title:hr.title,description:"",logoSrc:"",logoAlt:"",linkText:"",linkHref:""}};var Xp={eyebrow:"\u2014 Label",title:`Section headline
|
|
335
|
-
*Highlight line*`,body:"A sentence or two of supporting copy."},ICe={label:"Scroll-Over Text",drawsPictures:!0,defaultProps:{eyebrow:"",title:"",body:"",imageSrc:"",imageSrcMobile:"",heightDesktop:100,heightMobile:100,overlay:60,titleSizeDesktop:il,bodySizeDesktop:il,titleSizeMobile:il,bodySizeMobile:il,ctaText:"",ctaHref:"",buttonColor:"",buttonTextColor:"",stickTop:!0,[bn]:0,uppercase:!1}};var LK={name:"Editorial Text",boxProps:e=>({...Y,direction:"column",gap:28,gapPhone:28,sectionBorder:{top:1},...re(e,hc)}),box:[["topBorder","sectionBorder",e=>e===!1?void 0:{top:1}],...J,...ce(hc)],parts:[ct("Prose"),{kind:"text",key:"body",props:oe,style:{textStyle:"body-1",...H("body",16),lineHeight:1.7,paragraphSpacing:18}}],drop:{...X,...te,headPlacement:"needs a row per head placement: an own-box Prose draws no head (its words sit in a Section Header above it), the row always draws the head. 0 of 123 live nodes store it (the live export, 2026-10-24)"}},uL={buttonPaddingTop:20,buttonPaddingBottom:20,buttonPaddingLeft:28,buttonPaddingRight:28},mL=(e,o)=>o?.variant==="primary",xL=(e,o)=>({kind:"list",key:"buttons",name:"Button",flat:!0,when:e,parts:[{kind:"button",key:"label",href:"href",when:mL,variant:"primary",style:{letterSpacing:.3},props:{...fo,...uL,...o}},{kind:"button",key:"label",href:"href",when:(t,r)=>!mL(t,r),variant:"ghost",style:{letterSpacing:.3},props:{...fo,...uL,...o}}]}),Zp=e=>We(e.title),RK={name:"Call-to-Action Heading",boxProps:e=>({...Y,direction:"row",align:"center",justify:Zp(e)?"between":"end",gap:60,gapPhone:60,share:"content",sectionBorder:{bottom:1},...ft(e,"TitleWithButtons")}),box:[...J,...$r("TitleWithButtons")],parts:[{kind:"group",name:"Title",props:{...R,maxWidth:1e3,widthFitPhone:"fill"},parts:[{kind:"text",key:"title",role:"heading",props:U,style:{textStyle:"heading-1",...Uo("headingLarge",48,7,108),case:"upper",lineHeight:.94,letterSpacing:-.035},mark:"accentItalic"}]},{kind:"group",name:"Buttons",props:e=>({...R,gap:14,gapPhone:14,widthFitPhone:"fill",...Zp(e)?{minWidth:280,minWidthPhone:0}:{}}),parts:[xL(Zp,{widthFit:"fill",iconPosition:"end"}),xL(e=>!Zp(e),{})]}],drop:{...X,buttonsAlign:"moves the buttons only when there is no heading (4 of 128 live nodes), where the Box puts them at the end. 0 of 128 live nodes store it (the live export, 2026-10-24)",buttonsAlignPhone:"the phone's own side of `buttonsAlign`, read only with no heading; no old node stores it (it is new with the Phone view's Block alignment row), so nothing moves",buttonsAlignTablet:"the tablet's own side of `buttonsAlign`, read only with no heading; no old node stores it (it is new with the Tablet view's Block alignment row, 0 stored on the US sites 2026-11-05), so nothing moves"}};function DK(e,o){let t=os(o,{to:wr(e.sectionPaddingUnitTablet??e.sectionPaddingUnit)}),r=os(o,{view:"phone",to:wr(e.sectionPaddingUnitPhone),maxPx:20});return{sectionPaddingLeft:pL,sectionPaddingRight:pL,sectionPaddingLeftTablet:t,sectionPaddingRightTablet:t,sectionPaddingLeftPhone:r,sectionPaddingRightPhone:r}}var NK={name:"Section Header",boxProps:(e,o)=>({...Y,direction:"column",gap:0,...re(e,Ic),...DK(e,o)}),box:[...J,...ce(Ic)],parts:[ct("SectionHeader")],drop:{...X,...te,headStyle:"needs a row per head look: the row draws the standard look; the editorial, simple, statement, natural and essay looks are other layouts. 0 of 69 live nodes store it (the live export, 2026-10-24)",eyebrowLook:"read only by the simple, statement, natural and essay looks, which this row does not draw. 0 of 69 live nodes store it",rowGap:"read only by the natural look, which this row does not draw. 0 of 69 live nodes store it",descriptionSize:"read only by the natural look, which this row does not draw. 0 of 69 live nodes store it",numStyle:"Solid (the default; 4 of 69 live nodes store it) IS the eyebrow Text the row draws; Outlined (0 live) needs an outlined-number text look"}},hL={...R,direction:"row",share:[67],gap:32},IL={...R,sectionPaddingLeft:24,sectionPaddingLeftPhone:0},gL=(e,o,t)=>({kind:"group",name:e,props:o,parts:[t]}),MK={name:"Lead Text",boxProps:e=>({...Y,direction:"column",gap:40,gapPhone:40,sectionBorder:{bottom:1},...ft(e,"ParagraphsA")}),box:[...J,...$r("ParagraphsA")],parts:[{kind:"group",name:"Numbers",props:{...hL,gapPhone:24,sectionBorder:{bottom:1},sectionPaddingBottom:40,sectionPaddingBottomPhone:40},parts:[{kind:"group",name:"Eyebrow",props:{...R,sectionPaddingTop:5,sectionPaddingBottom:1,sectionPaddingTopPhone:5,sectionPaddingBottomPhone:1},parts:[pe("eyebrow",{color:"labels",...H("label",12),letterSpacing:.24})]},gL("Stats column",R,{kind:"group",name:"Stats",props:{...IL,gap:0,gapPhone:0},parts:[{kind:"list",key:"stats",name:"Stat",flat:!0,parts:[oi("value","label",{...H("label",13),letterSpacing:.18,lineHeight:1.8})]}]})]},{kind:"group",name:"Words",props:{...hL,gapPhone:28},parts:[{kind:"group",name:"Lead",props:R,parts:[{kind:"group",name:"Measure",props:{...R,maxWidth:780},parts:[{kind:"text",key:"lead",props:U,style:{textStyle:"heading-3",...H("headingSmall",22,20),weight:400,case:"none",lineHeight:1.45,letterSpacing:-.005}}]}]},gL("Note column",{...R,justify:"end"},{kind:"group",name:"Founders",props:{...IL,gap:8,gapPhone:8},parts:[{kind:"group",name:"Note",props:{...R,gap:6,gapPhone:6},parts:[{kind:"text",key:"foundersHeading",props:U,style:{textStyle:"body-1",fontRole:"heading",...H("body",18,16),weight:500,letterSpacing:-.01,lineHeight:1.7}},{kind:"text",key:"foundersBody",props:oe,style:{textStyle:"body-5",fontRole:"heading",...H("body",14,12),lineHeight:1.7}}]},pe("attribution",{...H("label",12,10),letterSpacing:.24,lineHeight:1.7})]})]}],drop:{...X}},HK={name:"Banner",boxProps:e=>({...Y,direction:"column",gap:0,...re(e,ac)}),box:[...J,"contained",...ce(ac)],parts:[{kind:"group",name:"Card",keepEmpty:!0,props:{...R,gap:28,gapPhone:28,placement:"top-left",darken:60,darkenStyle:"even",sectionBorder:{width:1},...rr("surface"),...Co(64,40,40,24)},box:[["imageSrc","bgImage"],["overlay","darken",e=>Math.min(Math.max(ye(e)??60,0),100)]],parts:[{kind:"group",name:"Words",props:{...R,gap:20,gapPhone:20},parts:[pe("eyebrow"),{kind:"text",key:"title",role:"heading",props:{...U,maxWidth:680},style:{weight:500,lineHeight:1.05,letterSpacing:-.03,case:"none",...H("headingMedium",44,32)}},{kind:"text",key:"body",props:{...U,maxWidth:680},style:{textStyle:"body-1",lineHeight:1.6,...H("body",16)}}]},{kind:"button",key:"ctaText",href:"ctaHref",variant:"primary",props:fo}]}],drop:{...X,...te}},mg={Prose:LK,TitleWithButtons:RK,SectionHeader:NK,ParagraphsA:MK,Banner:HK},yL={Prose:()=>({eyebrow:Yp.eyebrow,title:vt(Yp.title),body:Yp.body}),TitleWithButtons:()=>({title:vt(fL.title),buttons:cL.map(e=>({...e}))}),SectionHeader:()=>({num:hr.num,title:vt(hr.title),description:hr.description,linkText:hr.linkText,linkHref:je.href}),ParagraphsA:()=>({eyebrow:mi.eyebrow,lead:Oe.body,foundersHeading:mi.foundersHeading,foundersBody:mi.foundersBody,attribution:mi.attribution}),Banner:()=>({...dL,ctaText:je.text,ctaHref:je.href}),ProcessSteps:()=>({num:hr.num,title:vt(hr.title)}),IntroBleed:()=>({eyebrow:Xp.eyebrow,title:vt(Xp.title),body:Xp.body,ctaText:je.text,ctaHref:je.href})};function Jp(){no(mg),no(DA),no(JA),no(TA),no(mF),no(OF),no($F),no(jF),no(eB),no(fB),no(kB),no(NB),no($B),no(KB),no(iL),no(eL),no(rL),no(sL)}var WK=[{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=>v1(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=>T1(e)},{name:"convertSectionsInPage",chrome:!1,why:"page-only: it turns an old top-level SECTION into its Box, with the site theme off the page's metadata; chrome is a Box group, never one of those sections",run:(e,{metadata:o})=>(Jp(),A1(e,Jl,{theme:nC(o)}))},{name:"capHeroGroups",chrome:!1,why:"page-only: it caps a top-level Hero's slide groups, and a Hero is a page section",run:e=>W0(e)},{name:"oneH1",chrome:!1,why:"page-only: it hands the h1 to the first opener in the PAGE's document order; on a chrome document it would count a second document on its own",run:e=>ZE(e)},{name:"dropEmptySourcedBoxes",chrome:!0,why:"any document: a nested head over sourced cores served none goes (the Box footer's payment line), at any depth inside a slot",run:e=>XE(e)},{name:"markHeadCoreBoxes",chrome:!1,why:"page-only: it marks a head Box at the TOP of the page, where the mark element draws (lib/content/empty-hides); a chrome document's top is the chrome group",run:e=>VE(e)},{name:"markListSearchScopes",chrome:!1,why:"page-only for now: it ties a Search to the lists of the page's Box; no chrome holds a Search, and a chrome entry is one flag when one does",run:e=>G0(e)},{name:"withPageContents",chrome:!1,why:"page-only: a Contents block lists the PAGE's anchored sections and numbers their kickers",run:e=>I0(e)},{name:"markWallLabels",chrome:!0,why:"any document: each Marks wall is named by the lead Text drawn before it (aria-labelledby), the Box footer's walls too",run:e=>t_(e)},{name:"markCardPressTitles",chrome:!0,why:"any document: an acting copy's press button is named by its template's title Text (aria-labelledby), a header or footer list too; after the wall labels, so a Text keeps one id",run:e=>l_(e)}];function $K(e,o,t){let r=e;for(let a of WK)(!t||a.chrome)&&(r=a.run(r,o));return r}function SL(e,o){return $K(e,{metadata:o},!1)}import{useRef as zK}from"react";import{createRenderKeep as UK}from"efficient-easel/render";function bL(){let e=zK(null);return e.current??=UK(),e.current}import{isNode as jK,isNodeList as GK}from"efficient-easel/data";import{hidableText as KK,readHidable as qK}from"efficient-easel/draw";var CL="slotCounts",xg=e=>!qK(e).hidden&&KK(e).trim()!=="",VK=e=>typeof e=="string"&&e.trim()!=="",YK={Flex:()=>!0,PostCard:()=>!0,ImageBlock:e=>VK(e.src),Text:e=>xg(e.text),Heading:e=>xg(e.text),Eyebrow:e=>xg(e.eyebrow)},XK=["widthFit","width","minWidth"],wL=e=>GK(e);function ZK(e){if(Array.isArray(e.content))return wL(e.content)?e.content:null;let o=Object.values(e).filter(wL);return o.length===1?o[0]:null}function JK(e,o){return[...new Set([db,...Object.values(z(Ow,e)??{})])].some(t=>Wt(o,t)!=="")}function QK(e){let o=e.props??{},t=z(YK,e.type);if(!t||!t(o)||JK(e.type,o)||ll(o))return!1;let r=o[Kn];if(r!=null&&r!=="")return!1;let a=dp(o);return!XK.some(n=>a[n]!==void 0)}function e7(e){let o=0;for(let t of e)if(!lr(t.props??{})){if(!QK(t))return;o+=1}return o>0?o:void 0}function o7(e){let o={},t=new Set,r=new Set,a=(n,s)=>{if(Array.isArray(n))for(let l of n){if(!jK(l))continue;let i=l.props.id;typeof i=="string"&&(t.has(i)?r:t).add(i);let d=s?null:ZK(l.props);if(typeof i=="string"&&d){let f=e7(d);f!==void 0&&(o[i]=f)}for(let f of Nt(l))a(l.props[f],s||aa(l.type,f))}};a(e,!1);for(let n of r)delete o[n];return o}function kL(e,o){return{...e??{},[CL]:o7(o)}}function wke(e){let o=e.editor?.metadata?.[CL],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 a7({config:e,data:o,metadata:t}){let r=SL(o,t),a=bL(),n=M0(e,N0(r.content)),s=Zf(r.content),l=s.length>0?{...t,[D0]:s}:t;return vL(Jf,{children:vL(r7,{config:n,metadata:kL(l,r.content),keep:a,data:r})})}var PL=t7(a7);import{jsx as jo,Fragment as pq,jsxs as wR}from"react/jsx-runtime";import{Suspense as uq,useMemo as mq}from"react";import{jsx as n7}from"react/jsx-runtime";import{createContext as s7,useCallback as l7,useContext as i7,useState as hg}from"react";var TL=s7({footerBlock:null,setFooterBlock:()=>{},headerGroup:null,setHeaderGroup:()=>{},refreshToken:0,refreshFooter:()=>{},chromeRootProps:null});function Lke({children:e,editFooter:o,chromeRootProps:t=null}){let[r,a]=hg(null),[n,s]=hg(null),[l,i]=hg(0),d=l7(()=>i(f=>f+1),[]);return n7(TL.Provider,{value:{footerBlock:r,setFooterBlock:a,headerGroup:n,setHeaderGroup:s,editFooter:o,refreshToken:l,refreshFooter:d,chromeRootProps:t},children:e})}var OL=()=>i7(TL);import{jsx as d7,jsxs as f7}from"react/jsx-runtime";import{createContext as c7,useContext as p7}from"react";var EL=c7(!1);function Hke(){return p7(EL)}function _L({grayscale:e,children:o}){let t=e===!0;return f7(EL.Provider,{value:t,children:[Object.entries(M_(e)).map(([r,a])=>d7("style",{children:a},r)),o]})}import{jsx as u7}from"react/jsx-runtime";import{createContext as m7,useContext as x7}from"react";var AL=m7(null);function Uke(){return x7(AL)}function FL({ink:e,children:o}){return u7(AL.Provider,{value:e??null,children:o})}import{parseOption as h7}from"efficient-shell/format";var BL="data-lead-ink",Vke="data-header-ink",I7=["auto","light","dark"],g7="auto";function y7(e){return e.type==="IntroBleed"?Gp(e.props?.layout)!=="stacked":!0}function LL(e){let o=Cf(e);return o&&CP(e)&&y7(o)?"light":null}function Yke(e){return h7(I7,g7,e)}import{useEasel as Eg}from"efficient-easel/easel";import{useEffect as A7}from"react";import{useEaselApi as F7}from"efficient-easel/easel";import{find as S7,walk as RL}from"efficient-easel/data";var b7=()=>"",w7=e=>Xm(Mt([e],b7));function ML(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(w7))])),a=Xm(e);return Object.keys(r).find(n=>r[n].has(a))??null}var C7=()=>({press:[ts(ta),ts($s)],delivery:[gI()]}),k7={},Ig=e=>ML(e,C7,k7),v7=e=>Me(e)===ab?"delivery":"press";function lve(e,o){if(!o||Me(e)===Me(o))return e;let t=Ig(e[Te]),r=v7(e);if(!t||t===r)return e;let a=Gm(e,io),n=r==="delivery"?gI():ts(Me(e)?$s:ta),s=Mt([n],qm(a));return{...e,[Te]:s}}var P7=()=>({cards:[sn(ta),sn($s)],label:[ln(!1),ln(!0)]}),T7={},O7=e=>ML(e,P7,T7);function ive(e,o){if(!o||e.cardStyle==="label-only"==(o.cardStyle==="label-only"))return e;let t=O7(e[Te]),r=e.cardStyle==="label-only"?"label":"cards";if(!t||t===r)return e;let a=Gm(e,dw),n=Array.isArray(e.items)&&e.items.some(i=>xo(i?.href)!==void 0),s=r==="label"?ln(n):sn(Me(e)?$s:ta),l=Mt([s],qm(a));return{...e,[Te]:l}}var DL=(e,o)=>II.every(t=>JSON.stringify(e[t])===JSON.stringify(o[t]));function NL(e,o){let t={...e};for(let r of II)delete t[r];return{...t,...structuredClone(o)}}function gg(e){let o=e?.[Ce];if(!Array.isArray(o)||o.length!==1)return null;let t=o[0];return t?.type===io&&t.props?t:null}function E7(e,o){let t=gg(e),r=gg(o);if(!t?.props||!r?.props||r.props.id!==t.props.id||Me(t.props)===Me(r.props))return e;let a=Ig(t.props[Te]);if(!a||a===Ig(r.props[Te]))return e;let n=ye(e.columns);return n===void 0?e:a==="delivery"&&DL(e,La(n))?NL(e,hp(n)):a==="press"&&DL(e,hp(n))?NL(e,La(n)):e}function HL(e){let o=Qp.get(e);o?o.count+=1:Qp.set(e,{count:1,stop:_7(e)});let t=!1;return()=>{let r=Qp.get(e);t||!r||(t=!0,r.count-=1,!(r.count>0)&&(r.stop(),Qp.delete(e)))}}var Qp=new WeakMap;function _7(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;RL(t,e.config,n=>{if(n.type!==q||!gg(n.props))return;let s=S7(r,e.config,n.props.id);if(!s||s.node===n)return;let l=E7(n.props,s.node.props);l!==n.props&&a.set(n.props.id,l)}),a.size&&e.dispatch({type:"setData",recordHistory:!1,data:n=>RL(n,e.config,s=>{let l=a.get(s.props.id);return l?{...s,props:{...l,id:s.props.id}}:void 0})})})}function WL(){let e=B7();A7(()=>e?HL(e):void 0,[e])}function B7(){try{return F7()}catch{return null}}import{jsx as eu}from"react/jsx-runtime";import{useEffect as L7}from"react";import{armPinSteps as R7,armScrollProgress as D7,PIN_ATTR as $L}from"efficient-shell/format";var N7=`[${$L}]:not([${$L}="stick"])`;function zL({armed:e,children:o}){return L7(()=>{if(!e)return;let t=D7(),r=document.querySelector(N7)?R7(document):()=>{};return()=>{r(),t()}},[e]),o}function yg(){return{style:{"--sf-page-width":No}}}function M7({children:e}){return eu("div",{style:yg().style,children:e})}function bve({pageBackground:e,inheritBackground:o=!1,chrome:t=!1,children:r}){return eu("div",{style:{...o?{}:_f(e),background:"var(--bg)",minHeight:"100%",overflowX:"clip"},children:eu(zL,{armed:!t,children:eu(M7,{children:r})})})}import{jsx as UL,Fragment as H7}from"react/jsx-runtime";import{createContext as GL,useContext as jL}from"react";var KL=GL({}),qL=KL.Provider,VL=GL(void 0),YL=VL.Provider;function vve(e){let{SectionTextParts:o}=jL(KL),t=jL(VL);return o?UL(o,{...e,sizeCaps:t}):UL(H7,{children:e.children})}import{jsx as aq}from"react/jsx-runtime";import{useEffect as nq,useRef as sq}from"react";var XL="data-easel-overlay-portal";function ou(e){return e.setAttribute(XL,"true"),()=>{e.removeAttribute(XL)}}import{jsx as X7}from"react/jsx-runtime";import{useEffect as Z7,useRef as cR}from"react";import{usePreviewParts as J7}from"efficient-easel/draw/client";import{jsx as W7}from"react/jsx-runtime";import{createContext as $7,useContext as z7,useMemo as U7,useState as j7}from"react";var G7={partStyle:null,setPartStyle:()=>{}},ZL=$7(G7);function _ve({children:e}){let[o,t]=j7(null),r=U7(()=>({partStyle:o,setPartStyle:t}),[o]);return W7(ZL.Provider,{value:r,children:e})}function fs(){return z7(ZL)}import{usePreviewDevice as Q7}from"efficient-easel/draw/client";import{shownTier as eq}from"efficient-easel/screen/lib/document/device-fields";import{decodePartId as pR,encodePartId as oq}from"efficient-easel/draw";import{BLOCK_ATTRIBUTE as tq}from"efficient-easel/canvas";import{createPreviewSelectionContext as K7}from"efficient-easel/draw/client";var Ma="Scrolling Bar",{Provider:Bve,useSelection:JL}=K7("selectedHeroId"),Sg="data-sf-hero-ticker";function QL(e){return`${e}::ticker`}function eR(e){return!e||!e.endsWith("::ticker")?null:e.slice(0,-8)||null}import{BLOCK_ATTRIBUTE as Kr}from"efficient-easel/canvas";import{createPreviewSelectionContext as q7}from"efficient-easel/draw/client";var{Provider:Dve,useSelection:oR}=q7("selectedLocationPartId");function tu(e,o,t){return`${e}::${o}::${t}`}function ru(e){if(!e)return null;let o=e.split("::");if(o.length<3)return null;let t=o[o.length-1];if(t!=="image"&&t!=="map"&&t!=="city")return null;let r=Number(o[o.length-2]);if(!Number.isInteger(r)||r<0)return null;let a=o.slice(0,-2).join("::");return a?{nodeId:a,index:r,part:t}:null}var wg="data-sf-part-label";function Cg(e,o){return e.closest(`[${Kr}]`)?.getAttribute(Kr)===o}function tR(e,o,t){let r=e.querySelectorAll("*"),a=new Map(t.map(g=>[g.key,xf(g.label)])),n=[],s=new Set;for(let g=0;g<r.length;g+=1){let C=r[g];if(!Cg(C,o))continue;let E=C.getAttribute(pv);if(!E)continue;let A=a.get(E);n.push({element:C,partId:jt(o,E),...A?{label:A}:{}}),s.add(C)}let l=[],i=new Set;for(let g=0;g<r.length;g+=1){let C=r[g];if(!Cg(C,o)||s.has(C))continue;let E=mv(C.textContent??"");if(!E)continue;let A=C.closest(`[${Sx}]`)?.getAttribute(Sx)||null;A&&i.add(A.replace(/\[\d+\]$/u,"")),l.push({element:C,text:E,row:A})}let d=g=>l.filter(C=>C.row===cv(g.key,g.row.index)),f=l.filter(g=>g.row===null),m=g=>g.row&&i.has(g.key)?d(g):i.size?f:l,u=new Map,h=[],I=g=>g.row?`${g.key}.${g.row.rowKey}`:null,S=new Map;for(let g of t){let C=I(g);if(!C||i.has(g.key))continue;let E=S.get(C);E?E.push(g):S.set(C,[g])}let w=new Set;for(let[g,C]of S){if(C.length<2)continue;let E=C.flatMap(b=>b.texts);if(new Set(E).size===E.length)continue;let A=m(C[0]).filter(b=>E.includes(b.text));if(A.length!==C.length)continue;let N=[...C].sort((b,_)=>(b.row?.index??0)-(_.row?.index??0));for(let b=0;b<N.length;b+=1){let _=N[b],y=A[b].element,v={key:_.key,partKey:kn(_.key,_.row),exact:!0},O=u.get(y);O?O.push(v):(u.set(y,[v]),h.push(y))}w.add(g)}let T=new Map;for(let g of t){if(w.has(I(g)??""))continue;let C=kn(g.key,g.row);for(let E of g.texts)for(let A of m(g)){if(A.text!==E)continue;let N=T.get(A.element);N?N.add(C):T.set(A.element,new Set([C]))}}let B=(g,C)=>[...T].some(([E,A])=>E!==g&&!A.has(C)&&E.contains(g));for(let g of t){if(w.has(I(g)??""))continue;let C=kn(g.key,g.row);for(let E of g.texts){let A=[],N=null;for(let y of m(g))y.text===E?B(y.element,C)||A.push(y.element):!A.length&&y.text.includes(E)&&(!N||y.text.length<=N.length)&&(N={element:y.element,length:y.text.length});let b=A.length?A:N?[N.element]:[],_=b.filter(y=>!b.some(v=>v!==y&&y.contains(v)));for(let y of _){let v={key:g.key,partKey:C,exact:A.length>0},O=u.get(y);O?O.push(v):(u.set(y,[v]),h.push(y))}}}let P=[...n];for(let g of h){let C=u.get(g)??[],E=C.some(A=>A.exact)?C.filter(A=>A.exact):C;if(new Set(E.map(A=>A.partKey)).size===1){let A=a.get(E[0].key);P.push({element:g,partId:jt(o,E[0].partKey),...A?{label:A}:{}});continue}new Set(E.map(A=>A.key)).size===1&&P.push({element:g,partId:jt(o,E[0].key)})}return P}function bg(e,o,t){let r=e.querySelectorAll(`[${Ue}]`);for(let n=0;n<r.length;n+=1){let s=r[n];Cg(s,o)&&(s.removeAttribute(Ue),s.removeAttribute(wg))}let a=[];for(let{element:n,partId:s,label:l}of t)n.setAttribute(Ue,s),l&&n.setAttribute(wg,l),a.push(n);return a}function nR(e,o,t,r,a,n=()=>null){let s=null,l=null,i=null,d=()=>{let f=t(),m=f?.getAttribute(Kr)??null;if(!f||!m)return!1;s=m;let u=tR(e,m,o);return a(f,m,bg(e,m,u)),i=n(()=>{let h=tR(e,m,o);V7(u,h)||(u=h,a(f,m,bg(e,m,h)))}),!0};return d()||(l=r(()=>{(s||d())&&(l?.(),l=null)})),()=>{l?.(),l=null,i?.(),i=null,s&&bg(e,s,[])}}function V7(e,o){return e.length===o.length&&e.every((t,r)=>t.element===o[r].element&&t.partId===o[r].partId)}function jve(e,o){let t=e?.closest?.(`[${Ue}],[${Ar}]`),r=t?.getAttribute(Ue)??t?.getAttribute(Ar),a=r?fv(r):null;if(t&&r&&a?.nodeId===o&&a.propKey)return{id:r,element:t,whole:aR(t,r),label:rR(t,r)};let n=e?.closest?.(lR.slice(2).map(l=>`[${l}]`).join(","));if(!n)return null;let s=n.closest?.(`[${Kr}]`)?.getAttribute(Kr)===o?iR(n,o):null;return s?{id:s,element:n,whole:aR(n,s),label:rR(n,s)}:null}function rR(e,o){let t=ru(o);if(t)return t.part==="map"?"Map":t.part==="city"?"City":"Image";let r=Xc(o);return r?xr[r.part]:eR(o)?Ma:e.getAttribute(wg)??void 0}var sR="data-loc-pick",lR=[Ue,Ar,ql,Sg,sR];function iR(e,o){let t=e.getAttribute(Ue)??e.getAttribute(Ar);if(t)return t;let r=e.getAttribute(ql);if(r)return va(o,r);if(e.getAttribute(Sg)!==null)return QL(o);let a=e.getAttribute(sR)?.split(":");return a&&(a[1]==="image"||a[1]==="map"||a[1]==="city")&&/^\d+$/.test(a[0])?tu(o,Number(a[0]),a[1]):null}function aR(e,o){let t=e.closest?.(`[${Kr}]`),r=t?.getAttribute(Kr);if(!t||!r)return!1;let a=new Set;for(let n of t.querySelectorAll(lR.map(s=>`[${s}]`).join(","))){if(n.closest?.(`[${Kr}]`)!==t)continue;let s=iR(n,r);s&&a.add(s)}return a.size===1&&a.has(o)}import{ENTRANCE_ATTR as dR,playEntrance as Y7}from"efficient-shell/format";var kg=new WeakMap;function fR(e,o,t,r){let a=typeof t=="boolean"?t?"phone":"desktop":t,n=[],s=new Map;for(let{partKey:d}of e){if(s.has(d))continue;let f=o(d)??{},m=ik(f),u=r.get(d),h=u?Wn.next(u,m,a):null;r.set(d,h?h.seen:Wn.seed(m)),s.set(d,h?.play??!1)}let l=new Map,i=e.filter(d=>!e.some(f=>f!==d&&f.partKey===d.partKey&&f.element.contains(d.element)));for(let d of i){let f=Fc(d.element);f&&l.set(f,[...l.get(f)??[],d])}for(let[d,f]of l){let m=I=>Fl(o(I.partKey)??{}),u=Un(f.filter(I=>m(I).entrance));if(u){let I=o(u.partKey)??{};n.push(_c(d,Xs(I,a)));let S=kg.get(d);kg.set(d,u.partKey),(s.get(u.partKey)||S!==void 0&&S!==u.partKey)&&d.hasAttribute(dR)&&Y7(d)}else kg.delete(d);let h=d.hasAttribute(dR)?void 0:Un(f.filter(I=>Kt(o(I.partKey)??{},a).effect!=="none"));h&&n.push(Ac(d,Kt(o(h.partKey)??{},a))),f.some(I=>m(I).hover==="lift")&&(Bc(d.ownerDocument),d.setAttribute(ba,""),n.push(()=>d.removeAttribute(ba)))}return()=>n.forEach(d=>d())}function vg(e){let o=null,t=null;for(let r=e;r&&(o===null||t===null);r=r.parentElement){let a=r.getAttribute("class");o??=wb(a),t??=tx(a)}return{faceRole:o??"body",sizeGroup:t}}function au(e,o={},t=Ib){let r=e.style,a={};for(let i of kx)a[i]=r[i]??"",r[i]="";o.fontFamily&&(r.fontFamily=o.fontFamily),o.fontSize&&(r.fontSize=o.fontSize);let n=getComputedStyle(e),s=getComputedStyle(e.ownerDocument.documentElement),l=Nv({fontSize:n.fontSize,fontWeight:n.fontWeight,lineHeight:n.lineHeight,letterSpacing:n.letterSpacing,textAlign:n.textAlign,textTransform:n.textTransform,paddingTop:n.paddingTop},Mv(n.fontFamily,i=>s.getPropertyValue(i),t));for(let i of kx)r[i]=a[i];return l}function uR({needles:e,styles:o,motions:t=Ec,type:r,sizeCaps:a,children:n}){let s=cR(null),{selectedPartId:l}=J7(),{setPartStyle:i}=fs(),d=eq(Q7()),f=kt(),m=JSON.stringify(e),u=JSON.stringify(o),h=JSON.stringify(t),I=cR(new Map);return Z7(()=>{let S=s.current;if(!S)return;let w=[],T=()=>S.parentElement,B=b=>{let _=T();if(!_)return null;let y=new MutationObserver(b);return y.observe(_,{attributes:!0,attributeFilter:[tq]}),()=>y.disconnect()},P=b=>{let _=new MutationObserver(b);return _.observe(S,{childList:!0,subtree:!0,characterData:!0}),()=>_.disconnect()},g=[];w.push(()=>{for(let b of g)b();g=[]});let C=JSON.parse(m),E=JSON.parse(u),A=JSON.parse(h),N=nR(S,C,T,B,(b,_,y)=>{for(let L of g)L();g=[];let v=[];for(let L of y){let M=L,K=ou(M);K&&g.push(K),M.getAttribute(Ue)===l&&v.push(M)}let O=Hv(_,l,v,L=>Cb(L)!==null||tx(L)!==null);if(O&&l){let L=O,M=pR(l)?.propKey??"",K=al(L)?{}:Dv(Wv(E,pr(r,M)),d,{blockDrawsStyle:sl(r,M),sizeCap:ia(a,M),fonts:f});i({partId:l,...vg(L),base:au(L,K,f),inks:ff(L),...(()=>{let W=al(L);return W?{styleOwner:W}:{}})()})}Cx(y.filter(L=>!al(L)).map(L=>({element:L,partId:L.getAttribute(Ue)??""})),E,L=>au(L,void 0,f),L=>pr(r,L),void 0,d,L=>sl(r,L),L=>ia(a,L),f);let k=[...S.querySelectorAll(`[${uv}="${CSS.escape(_)}"][${mf}]`)];k.length&&Cx(k.map(L=>({element:L,partId:oq(_,L.getAttribute(mf)??"")})),E,void 0,L=>L,void 0,d,void 0,void 0,f),g.push(fR([...y.filter(L=>!al(L)).map(L=>{let M=L,K=pR(M.getAttribute(Ue)??"")?.propKey??"";return{element:M,partKey:pr(r,K)}}),...k.map(L=>({element:L,partKey:L.getAttribute(mf)??""}))],L=>A[L],sk(d),I.current))},P);return()=>{N();for(let b of w)b()}},[m,u,h,l,i,d,r,f]),X7("div",{ref:s,[Fh]:"",style:{display:"contents"},children:n})}import{shownTier as lq}from"efficient-easel/screen/lib/document/device-fields";import{usePreviewDevice as iq,usePreviewParts as dq}from"efficient-easel/draw/client";var xi={tag:"text-[length:var(--size-label,13px)]",name:"text-[length:min(var(--size-headingMedium,48px),var(--sf-heading-max,9999px))]",namePhone:"max-view-wide:text-[length:min(var(--size-headingMedium,36px),var(--sf-heading-max,9999px))]",body:"text-[length:var(--size-body,14px)]",price:"text-[length:var(--size-label,15px)]",link:"text-[length:var(--size-label,14px)]"},rq={tag:{label:"Tag",follows:"Labels",builtIn:cn(xi.tag),writable:!0},name:{label:"Name",follows:"Heading 2",builtIn:cn(xi.name),writable:!0},body:{label:"Body",follows:"Body",builtIn:cn(xi.body),writable:!0},price:{label:"Price",follows:"Labels",builtIn:cn(xi.price),writable:!0},link:{label:"Link",follows:"Labels",builtIn:cn(xi.link),writable:!0}},mR=rq;var CPe=ra,xR={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 hR={SpecTable:xR,FAQ:gw,Collections:mR,Contents:Up};function IR(){return en("efficient.section-text-regions",()=>new Map)}function APe(e){let o=IR();for(let[t,r]of Object.entries(e)){if(eo(hR,t))throw new Error(`lib/sections/section-text-regions: "${t}" is a builder section; its table is the builder's`);let a=o.get(t);if(a&&a!==r)throw new Error(`lib/sections/section-text-regions: "${t}" already has a table`);o.set(t,r)}}function cs(e){return e?z(hR,e)??IR().get(e)??null:null}function gR({nodeId:e,sectionType:o,partStyles:t,sizeCaps:r,children:a}){let n=sq(null),{selectedPartId:s}=dq(),{setPartStyle:l}=fs(),i=lq(iq()),d=kt(),f=JSON.stringify([t??null,r??null]);return nq(()=>{let m=n.current,u=cs(o);if(!m||!e||!u)return;let h=[],I=Array.from(m.querySelectorAll(`[${ra}]`));for(let S of I){let w=Ym(u,S.getAttribute(ra));if(!w)continue;let T=ou(S);T&&h.push(T);let B=zs(w),P=jt(e,B);S.setAttribute(Ar,P);let g=t?.[B];if(u[w].sized&&$v(g)){let C=zv(g,i,{sizeCap:ia(r,B),fonts:d}),E={fontFamily:S.style.fontFamily,fontSize:S.style.fontSize},A=S.getAttribute(sa);C.fontFamily&&(S.style.fontFamily=C.fontFamily),C.fontSize&&(S.style.fontSize=C.fontSize);let N={fontFamily:C.fontFamily?S.style.fontFamily:void 0,fontSize:C.fontSize?S.style.fontSize:void 0},b=g?.textStyle;vv(b)&&S.setAttribute(sa,b),h.push(()=>{Gv(S.style,E,N),A===null?S.removeAttribute(sa):S.setAttribute(sa,A)})}if(P===s){let C=au(S,jv(g,u[w],i,d),d);l({partId:P,...vg(S),base:C})}}return()=>{for(let S of h)S();for(let S of I)S.removeAttribute(Ar)}},[e,o,s,l,i,f,d]),aq("div",{ref:n,style:{display:"contents"},children:a})}import{jsx as Pg,Fragment as yR}from"react/jsx-runtime";import{createContext as fq,useContext as SR,useMemo as cq}from"react";var Tg=fq(null),bR=e=>e==null||e===""?void 0:String(e);function Og({content:e,children:o}){let t=cq(()=>th(e),[e]);return Pg(Tg.Provider,{value:t,children:o})}function YPe({id:e,children:o}){let t=SR(Tg),r=bR(e);return Pg(yR,{children:o(r?t?.entries.get(r):void 0)})}function XPe({id:e,children:o}){let t=SR(Tg),r=bR(e);return Pg(yR,{children:o(r?t?.numbers.get(r):void 0)})}var xq={SectionTextParts:gR},hq="color-mix(in oklab, var(--bg) 40%, #ffffff)",Iq="12vh";function gq({style:e,children:o}){let{appState:t}=Eg(u=>u),r=t.data.content,a=t.data.root;if(kP(r))return jo("div",{className:"sf-themed-content",style:{...e,background:hq,minHeight:"100vh",paddingBottom:Iq},children:jo("div",{style:{background:"var(--bg)"},children:jo(Og,{content:r,children:o})})});let n=Ox(r)&&PP(a,r),s=Ox(r)?TP(a,r):null,l=s?{[vP]:s}:null,i=MC(a?.widthChoice),d=i?{[NC]:i}:null,f=n?null:LL(r),m=f?{[BL]:f}:null;return jo("div",{className:`sf-themed-content${n?` ${bP}`:""}`,style:e,...m,...l,...d,children:jo("div",{style:{background:"var(--bg)",minHeight:"100%"},children:jo(Og,{content:r,children:o})})})}function kTe({propsTheme:e,propsFonts:o,propsCornerStyle:t,propsCornerRadiusPx:r,propsHeadingCompression:a,propsHeadingTypography:n,pageBackground:s,chromeInheritsSiteBackground:l,suppressPreviewNav:i,footer:d,overlay:f,children:m}){WL();let u=Eg(I=>I.appState.data.root?.props),h=Eg(I=>JP(I.appState.data.content));return jo(_g,{siteFooterRootProps:u?.kind===oP?u:void 0,inPlaceFooterProps:h,propsTheme:e,propsFonts:o,propsCornerStyle:t,propsCornerRadiusPx:r,propsHeadingCompression:a,propsHeadingTypography:n,pageBackground:s,chromeInheritsSiteBackground:l,onClickCapture:i,body:I=>wR(pq,{children:[jo(gq,{style:I,children:m}),d,f]})})}function _g({propsTheme:e,propsFonts:o,propsCornerStyle:t,propsCornerRadiusPx:r,propsHeadingCompression:a,propsHeadingTypography:n,pageBackground:s,chromeInheritsSiteBackground:l,onClickCapture:i,siteFooterRootProps:d,inPlaceFooterProps:f,body:m}){let{chromeRootProps:u}=OL(),h=mq(()=>QP(u,f),[u,f]),{theme:I,fonts:S,sizes:w,cornerRadiusPx:T,cardShadow:B,shadowColor:P,cardGap:g,hoverEffect:C,headingCompression:E,siteWidth:A,siteGutter:N,siteGutterPhone:b,blockGap:_,blockGapPhone:y,siteLengthUnits:v,headingTypography:O,heroBackgroundFollowsWidth:k,photographyGrayscale:L,textStyles:M,wordStyles:K,themeFromDocument:W}=vo(),se=kt(),le=W?e:I,ee=W?o:S,Ie=W?void 0:w,ae=W?r===void 0?Yw[Vw(t)]:Xw(r):T,me=W?{}:v,ge=W?a:E,Ge=W?n:O,Ve=[jT(UT(W?void 0:M),se),GT(rC(Ge).italicStrong)].filter(Boolean).join(`
|
|
336
|
-
`),Eo=yg(),Ye={...Mw(le),...qw(Ie),...aC(Ge),...Eo.style,...l?{}:_f(s)};return wR("div",{className:`sf-theme-surfaces sf-theme-accent ${[FC(W?void 0:b),sP(W?void 0:y)].filter(Boolean).join(" ")}`.trim(),style:{...kb(ee,se),...Tb(W?null:K,se),...Hw(le),...$w(le),...zw(le),...Ld(le),...Zw(ae,me.cornerRadiusUnit),...oC(W?void 0:B,W?void 0:P,W?void 0:C),...xC(W?void 0:A,me.siteWidthUnit),...EC(W?void 0:N,me.siteGutterUnit),...AC(W?void 0:b,me.siteGutterPhoneUnit),...aP(W?void 0:_,me.blockGapUnit),...nP(W?void 0:y,me.blockGapPhoneUnit),...Md(W?void 0:k)},"data-sf-headings":tC(ge),[bC]:Nd(d??h),[ef]:Ek(d??h),"data-sf-card-shadow":W?void 0:Jw(B),"data-sf-card-gap":W?void 0:Qw(g),"data-sf-card-hover":W?void 0:eC(C),onClickCapture:i,children:[Ve?jo("style",{"data-sf-text-styles":"",dangerouslySetInnerHTML:{__html:Ve}}):null,jo(_L,{grayscale:W?void 0:L,children:jo(qL,{value:xq,children:jo(FL,{ink:Nw(le),children:jo(uq,{fallback:null,children:jo(Z0,{rootProps:d??h,children:m(Ye)})})})})})]})}var CR=e=>{e.target?.closest?.("a")&&e.preventDefault()};var yq=/(-?(?:\d+\.?\d*|\.\d+))(?:s|d|l)?vh\b/g;function Sq(e,o){return e.replace(yq,(t,r)=>`${+(Number(r)*o/100).toFixed(3)}px`)}function vR(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=Sq(a,o);n!==a&&e.setProperty(r,n,e.getPropertyPriority(r))}}function PR(e,o){for(let t of Array.from(e)){let r=t.style;r&&vR(r,o);let a=t.cssRules;a&&PR(a,o)}}function kR(e,o){for(let t of Array.from(e.styleSheets)){let r;try{r=t.cssRules}catch{continue}PR(r,o)}for(let t of Array.from(e.querySelectorAll('[style*="vh"]')))vR(t.style,o)}function TR(e,o){kR(e,o);let t=e.defaultView,r=0,a=()=>{r||!t||(r=t.requestAnimationFrame(()=>{r=0,kR(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 Tq=1440,Fg=800;function ER({starter:e,config:o,metadata:t,busy:r,onAdd:a}){let{mirrorHostStyles:n}=ul(),[s,l]=Ag(null),[i,d]=Ag(Fg),[f,m]=Ag(null);return bq(()=>{if(!s)return;let u=TR(s,Fg),h=s.defaultView,I=()=>{f&&d(Math.max(Fg,Math.ceil(f.getBoundingClientRect().height)))},S=h&&f?new h.ResizeObserver(I):null;return f&&S?.observe(f),I(),()=>{u(),S?.disconnect()}},[s,f]),OR("div",{className:"sf-starter",children:[OR(kq,{padding:"none",className:"sf-starter-picture",children:[Ot("div",{inert:!0,className:"sf-starter-frame",children:Ot(vq,{width:Tq,height:i,children:Ot(wq,{id:`page-starter-${e.id}`,title:e.title,mirrorStyles:n,onDocument:l,height:"fill",children:Ot(Xf,{document:s??void 0,children:Ot(_g,{onClickCapture:CR,body:u=>Ot("div",{className:"sf-themed-content",style:u,children:Ot("div",{ref:m,style:{background:"var(--bg)"},children:Ot(PL,{config:o,data:e.layout,metadata:t})})})})})})})}),Ot("div",{className:"sf-starter-add",children:Ot(Cq,{onClick:()=>a(e),loading:r,"aria-label":c("Add \u201C{name}\u201D",{name:e.title}),children:c("Add page")})})]}),Ot(Pq,{size:"sm",children:e.title})]})}import{useMemo as zZ}from"react";import{sessionRegistry as UZ}from"efficient-easel/screen/lib/session";import{useEaselSession as jZ}from"efficient-easel/screen/lib/session-context";import{currentEaselSession as Oq}from"efficient-easel/screen/lib/session";var Eq={general:!0,commerce:!0,service:!0};function Bg(e){let o=e?.sets;return o?Object.fromEntries(fb.map(t=>[t,o.includes(t)])):Eq}function Lg(e=Oq()){return Bg(e.blocks)}import{currentEaselSession as zR}from"efficient-easel/screen/lib/session";import{SITE_SIDE as FR}from"efficient-easel/screen/lib/content/length-units";var _R=[{text:"Ticker item"},{text:"Ticker item"},{text:"Ticker item"},{text:"Ticker item"}],UTe={label:"Scrolling Bar",defaultProps:{items:[],tone:"scrim",borders:!0,size:ow,separator:tw,scrollDirection:pi}};var AR=()=>[{text:c("Spec label"),tone:"normal"},{text:c("Spec value"),tone:"muted"},{text:c("Spec label"),tone:"normal"},{text:c("Spec value"),tone:"muted"}],KTe={label:"Spec Strip",defaultProps:{cells:[{text:"",tone:"normal"},{text:"",tone:"normal"}],fill:"dark"}};function go(e,o,t,r={}){return{type:e,props:{...o(e),id:t(e),...r}}}function BR(e,o,t){return go(q,e,o,{...t,sectionPaddingTop:void 0,sectionPaddingBottom:void 0})}var nu={Manifesto:(e,o)=>({type:q,props:{...e(q),id:o(q),direction:"row",share:"equal",sectionHeightMode:"screen",name:"Brand Text",content:[go(q,e,o,{direction:"column",justify:"center",blockSpacing:"gap",name:"Text",sectionPaddingTop:100,sectionPaddingBottom:100,sectionPaddingLeft:FR,sectionPaddingRight:FR,content:[go("Text",e,o,ar()),go("Text",e,o,br()),go("Text",e,o),go("Stats",e,o)]}),BR(e,o,{direction:"column",name:"Picture",content:[]})]}}),Split:(e,o)=>({type:q,props:{...e(q),id:o(q),direction:"row",share:"equal",sectionHeightMode:"screen",sectionHeightValue:70,name:"Image & Text Split",content:[go(q,e,o,{direction:"column",justify:"center",blockSpacing:"gap",name:"Text",sectionPaddingTop:100,sectionPaddingBottom:100,sectionPaddingLeft:60,sectionPaddingRight:60,content:[go("Text",e,o,ar()),go("Text",e,o,br()),go("Text",e,o),go("ButtonBlock",e,o)]}),BR(e,o,{direction:"column",name:"Image",content:[go("ImageBlock",e,o)]})]}}),Subscribe:(e,o)=>({type:q,props:{...e(q),id:o(q),direction:"column",name:"Subscribe",content:[go("Text",e,o,br()),go("Text",e,o),go("Form",e,o)]}}),Ticker:(e,o)=>LR("Scrolling Bar",tc,xa,_R.map(t=>({text:t.text,style:rc,muted:!0})),e,o),SpecStrip:(e,o,t)=>LR("Spec Strip",t?.theme?{...Sl,sectionAccent:Bd(sr(t.theme))}:{...Sl,sectionBorder:{top:1}},ha,AR().map(r=>({text:r.text??"",style:bl,muted:r.tone==="muted"})),e,o)};function LR(e,o,t,r,a,n){return go(q,a,n,{...ma,...o,blockSpacing:"gap",padV2:!0,name:e,sectionPaddingTop:t.top,sectionPaddingBottom:t.bottom,sectionPaddingTopPhone:t.topPhone,sectionPaddingBottomPhone:t.bottomPhone,content:r.map(s=>go("Text",a,n,{text:s.text,...s.muted?{tone:"dim"}:{},_partStyles:{text:s.style}}))})}function RR(e){return z(nu,e)??null}import{isNodeList as Rg}from"efficient-easel/data";var I0e=Object.keys(mg),_q={Logos:QA,DocMasthead:ZF,DocTabs:lB,Timeline:PF,TimelineTrack:TF},Aq={PaymentBadges:eF,PaymentLogosBlock:oF,Integrations:aL};function su(e,o,t){let r={};for(let a of Object.keys(o(e.type)))r[a]=void 0;for(let[a,n]of Object.entries(e.props))r[a]=Rg(n)?n.map(s=>su(s,o,t)):n;return r.id=t(e.type),{type:e.type,props:r}}var DR=e=>({...e?.theme?{theme:e.theme}:{},...e?.site?{site:e.site}:{},press:!0});function hi(e,o,t=0,r=()=>({})){return(a,n,s)=>{let{nodes:l}=Ea({type:e,props:{...a(e),...r(),id:n(e)}},o,DR(s));return su(l[t],a,n)}}var Fq={Stats:Lq,Cards:Bq};function Bq(){let e=Hr("Cards");if(!e)return null;let o=hi("Cards",e,0,PA);return(t,r,a)=>{let n=o(t,r,a);return{...n,props:{...n.props,name:"Cards section"}}}}function Lq(){let e=Hr("StatsParagraph");return e?(o,t,r)=>{let{nodes:a}=Ea({type:"StatsParagraph",props:{...o("StatsParagraph"),...NA(),id:t("StatsParagraph")}},e,DR(r)),n=a[0],s=Rg(n.props.content)?n.props.content.filter(f=>f.props?.cardStyle===void 0):[],l=MR(LI(MA(),"table")),i=s.map(NR),d=su({...n,props:{...n.props,content:[...i,l]}},o,t);return{...d,props:{...d.props,name:"Stats section"}}}:null}function NR(e){return e.props?.name==="Words"?{...e,props:{...e.props,widthFitPhone:"fill"}}:Rg(e.props?.content)?{...e,props:{...e.props,content:e.props.content.map(NR)}}:e}var MR=e=>Mt([e],(o,t)=>`${o}-seed-${t}`)[0];function Rq(e,o){if(!_1(e,o))return null;let t=z(Fq,e);if(t)return t();let r=Hr(e);return r?hi(e,r,0,z(_q,e)??z(yL,e)??z(Aq,e)):null}function Dq(e){return(o,t,r)=>{let a=n=>{if(n.type==="Stats"){let l=su(MR(LI([],"list")),o,t);return{...l,props:{...l.props,name:"Numbers"}}}let s=Xe(n,l=>ze(l,a));return s===n?n:{type:n.type,props:s.props}};return a(e(o,t,r))}}function ps(e,o=Oa){let t=RR(e);return t?Dq(t):Rq(e,o)}import{blockTypesIn as HR}from"efficient-easel/screen/lib/document/block-types-in";var WR=()=>({}),$R=new Map;function Nq(e){let o=$R.get(e);if(o)return o;let t=new Set,r=z(dt,e);if(r)for(let s of r.seeds(WR))for(let l of HR({type:r.childType,props:s}))t.add(l);let a=ps(e);if(a){let s=0;for(let l of HR(a(WR,i=>`${i}-${s+=1}`)))t.add(l)}t.delete(e);let n=[...t].sort();return $R.set(e,n),n}function Dg(e){if(!e||!e.sets&&!e.allow&&!e.deny?.length)return null;let o=Bg(e),t=e.allow?new Set(e.allow):null,r=new Set(e.deny??[]),a=new Set(Object.keys(e.host??{})),n=i=>{if(r.has(i))return!1;if(a.has(i))return!0;let d=mb(i);return!d||!o[d]?!1:t?t.has(i):!0},s=new Map,l=i=>{let d=s.get(i);if(d!==void 0)return d;s.set(i,!1);let f=n(i)&&Nq(i).every(l);return s.set(i,f),f};return{sets:o,offers:l}}var Mq="block-offer";function Ng(e=zR()){return e.cache(Mq,()=>Dg(un(e)))}function UR(e,o=zR()){let t=Ng(o);return t?t.offers(e):!0}var jR={name:"catalogueLabel",applies:e=>eo(ea,e),draw(e,o){e.label=z(ea,o)}};import{jsx as zg}from"react/jsx-runtime";import{parseBlockWidthFit as Uq,phoneKey as Et,tabletKey as ht}from"efficient-easel/draw";import{jsx as Hq}from"react/jsx-runtime";import{phoneKey as lu}from"efficient-easel/draw";var GR={name:"sectionGroupAllow",applies:e=>If.includes(e),panel(e,o,t,r){let a=e.fields?.sections;a&&(a.allow=[...r.sectionGroupAllow])}},Mg=new Set(Object.keys(Ct)),KR={name:"openSlotDisallow",applies:()=>!0,panel(e,o,t,r){let a=r.contentSectionKeys;if(e?.fields)for(let n of Object.values(e.fields)){let s=n;if(s.type!=="slot"||s.allow)continue;let l=o==="Flex"?a.filter(i=>!Mg.has(i)):a;s.disallow=Array.from(new Set([...s.disallow??[],...l]))}}};var VR=Array.from(new Set([...hb.map(e=>e.type),...Mg]));function Hg(e,o){return VR.includes(e)||o?.sitsInBox===!0}var Wq=Array.from(new Set([...VR,...fd,"GalleryItem"])),$q={not:{context:"parentOffersPositions",is:!1}},zq={not:{context:"parentTileSlot",is:!1}},qR=[px,lu("gridSpan"),lu("gridRowSpan")],YR={name:"cellWidth",applies:(e,o,t)=>(Wq.includes(e)||Hg(e,t))&&!!t&&typeof t.render=="function",panel(e,o,t){let r=t.cellWidthFields;e.fields={...e.fields,...r()};let a=Object.keys(r());e.fields=Do(e.fields??{},a.filter(n=>!qR.includes(n)),$q),e.fields=Do(e.fields??{},qR,zq)},draw(e){let o=e.render;e.render=t=>{let r=VC(t.gridSpan),a=XC(t.gridRowSpan),n=JC(t[px]),s=ek(t[lu("gridSpan")]),l=ok(t[lu("gridRowSpan")]),i=o(t);if(r==null&&a==null&&n==null&&s==null&&l==null)return i;let d={};r!=null&&(d[YC]=String(r)),a!=null&&(d[ZC]=String(a)),s!=null&&(d[tk]=String(s)),l!=null&&(d[rk]=String(l));let f=n!=null?{[QC]:n}:void 0;return Hq(fe,{className:"sf-grid-cell",style:f,...d,children:i})}}};function XR(e,o){let t=e.props?.id,r=o.appState?.data?.content;return!Array.isArray(r)||typeof t!="string"?!0:!r.some(a=>a?.props?.id===t)}var Ii={not:{context:"heldByANode",is:!0}};function iu(e,o){return"parent"in o?o.parent!=null:!!Xt(o.appState,e.props?.id)}function Xt(e,o){let t=e?.data?.content;if(!Array.isArray(t)||typeof o!="string")return;let r=(a,n)=>{for(let s of a){if(s?.props?.id===o)return n;for(let l of tn(s??{})){let i=r(l,s);if(i!==void 0)return i}}};return r(t,null)}var jq=new Set(["Text","Heading"]),Gq=new Set(["h1","h2","h3","h4","h5","h6"]);function ZR(e,o){return e==="Heading"?!0:e!=="Text"?!1:typeof o.tag=="string"&&Gq.has(o.tag)?!0:Fr(o,"text").textStyle?.startsWith("heading-")===!0}var qr={not:{context:"blockOutsideBox",is:!0}},JR={all:[qr,{not:{context:"boxSharesWidth",is:!0}}]},QR={all:[qr,{not:{context:"boxSharesWidthPhone",is:!0}}]},eD={all:[qr,{not:{context:"boxSharesWidthTablet",is:!0}}]};function aD(e,o,t){return{any:[{field:ht(e),is:o},{all:[{field:ht(e),set:!1},t??{field:e,is:o}]}]}}function nD(e,o,t){return{any:[{field:Et(e),is:o},{all:[{field:Et(e),set:!1},t??{field:e,is:o}]}]}}var sD={any:[{field:"textFit",is:"shrink"},{all:[{field:"textFit",set:!1},{not:{context:"textWrapsByDefault",is:!0}}]}]},Kq=[[["_gBlockSize","minWidth",ht("minWidth"),Et("minWidth"),"maxWidth",ht("maxWidth"),Et("maxWidth")],qr],[["widthFit"],JR],[[ht("widthFit")],eD],[[Et("widthFit")],QR],[["width"],{all:[JR,{field:"widthFit",is:"fixed"}]}],[[ht("width")],{all:[eD,aD("widthFit","fixed")]}],[[Et("width")],{all:[QR,nD("widthFit","fixed")]}]],oD=aD("textFit","shrink",sD),tD=[[["_gText","textFit",ht("textFit"),Et("textFit")],qr],[["minFont"],{all:[qr,sD]}],[[ht("minFont")],{all:[qr,oD]}],[[Et("minFont")],{all:[qr,nD("textFit","shrink",oD)]}]],du=(e,o)=>Xt(o.appState,e.props?.id),fu=e=>!!e&&typeof e.type=="string"&&cd(e.type)!==null,Wg=e=>(e.type==="Flex"||e.type==="HeroGroup")&&Tn(e.type,e.props?.direction)==="row",$g=e=>{let o=Uq(e);return o!==void 0&&o!=="fit"},qq={blockOutsideBox:(e,o)=>!fu(du(e,o)),boxSharesWidth:(e,o)=>{let t=du(e,o);return!fu(t)||!Wg(t)?!1:Um({...t.props,direction:"row"})!==""?!0:zm(t.props?.share)!==""&&!$g(e.props?.widthFit)},boxSharesWidthTablet:(e,o)=>{let t=du(e,o);if(!fu(t)||!Wg(t))return!1;if(nw(t.props?.[ht("columns")])!==""||Um({...t.props,direction:"row"})!=="")return!0;let r=aw(t.props?.[ht("share")])??t.props?.share;return zm(r)!==""&&!$g(e.props?.[ht("widthFit")]??e.props?.widthFit)},boxSharesWidthPhone:(e,o)=>{let t=du(e,o);if(!fu(t)||!Wg(t))return!1;let r=t.props?.phoneRow;return(Number(r)===2||Number(r)===3)&&!sw(r,t.props?.[Et("share")])&&!$g(e.props?.[Et("widthFit")]??e.props?.widthFit)}},Vq=e=>/^_[gds][A-Z]/.test(e);function Yq(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&&!Vq(r[n][0]);)n++;return Object.fromEntries([...r.slice(0,n),...Object.entries(t),...r.slice(n)])}function rD(e,o,t){let r=Object.entries(e);return Object.fromEntries([...r.slice(0,o),...Object.entries(t),...r.slice(o)])}function Xq(e,o,t){let r=Object.keys(o);if(r.includes("_dSize")){let{_gBlockSize:a,...n}=t;return rD(o,r.indexOf("_dSize")+1,n)}return Zq.has(e)&&r.includes("_gSpacing")?rD(o,r.indexOf("_gSpacing"),t):{...o,...t}}var Zq=new Set(["Text","Heading"]);function Jq(e,o){let{_gText:t,...r}=o;return Yq(e,"_gText",r)??{...e,...o}}function Qq(e){let o=new WeakMap;return t=>{if(!t||!("textFit"in t))return t;let r=o.get(t);if(!r){r={...t};for(let a of["textFit",ht("textFit"),Et("textFit")])a in r&&(r[a]=e[a]);o.set(t,r)}return r}}var lD={name:"blockSize",applies:(e,o,t)=>Hg(e,t)&&!!t&&typeof t.render=="function",panel(e,o,t){let r=jq.has(o),{text:a}=t.blockSizeFields(r?{tablet:!0,textFit:o==="Heading"?"shrink":"wrap"}:{}),{size:n}=t.blockSizeFields({tablet:!0}),s=Xq(o,e.fields??{},tt(n,Kq));if(r){let l=tt(a,tD);if(s=Jq(s,l),o==="Text"){let i=tt(t.blockSizeFields({tablet:!0,textFit:"shrink"}).text,tD),d=Qq(i),f=e.resolveFields,m=(u,h)=>{let I=f?f(u,h):h.fields,S=w=>ZR(o,u?.props??{})?d(w??h.fields):w;return I instanceof Promise?I.then(S):S(I)};e.resolveFields=m}}e.fields=s,Ht(e,{...qq,textWrapsByDefault:l=>!ZR(o,l.props??{})})},draw(e,o){eV(e,o)}};function eV(e,o){let t=e.render;e.render=r=>{let a=dp(r),n=uI(a),s=t(r),l=n&&uI(a,{atSectionLine:!0});return n===null?s:zg(oV,{size:n,sectionSize:l??n,atEdge:o===q,canvasAttrs:r.editor?.isEditing?G1(a):iD,inCell:j1(a),fillsPhone:$1(a),widens:K1(a),children:s})}}var iD={};function oV({size:e,sectionSize:o,atEdge:t,canvasAttrs:r,inCell:a,fillsPhone:n,widens:s,children:l}){let i=af(),d=Er(t?"edge":"by-box"),f=d?e:o,m=f.className,u=i?.phoneCells===!0,h=n&&i?.phoneRowFits===!0,I=s?zg(gE,{children:l}):l;return zg(_r,{className:[m,u?a:"",h?W1:""].filter(Boolean).join(" "),...Object.keys(f.style).length?{style:f.style}:{},attrs:d&&r!==iD?{...f.attrs,...r}:f.attrs,children:I})}import{Fragment as uV,jsx as mu}from"react/jsx-runtime";import{jsx as To,Fragment as Kg}from"react/jsx-runtime";import{createContext as us,useContext as _t}from"react";var tV=new Set(["Flex","Grid"]);function Vr(e){return typeof e=="string"&&tV.has(e)}var Ha="contentWidth",Ug="full",jg="content";function yi(e){let o=e?.[Ha];return o===Ug?!1:o===jg?!0:void 0}function dD(e,o){return e&&!o}function cu(e){return e.loop==="scroll"&&e.direction!=="tabs"&&e.direction!=="accordion"&&!Xk(e)&&!sF(e.scrollDirection)}function gi(e,o){return Vr(e)&&cu(rl(o,!1))?hn({}):hn(o)}function pu(e,o){return typeof e!="string"||!Hd(e)||qs[e]==="rawMarkup"?gi(e,o).background??"full":gi(e,o).background??Wd(o).background}function uu(e){return e!=="full"}function fD(e,o,t){if(!Array.isArray(e)||typeof o!="string")return;let r=(a,n,s,l,i)=>{for(let d of a){let f=d?.props??{};if(f.id===o)return n;let m=Vr(d?.type),u=(l?gi(d?.type,f).content:null)==="content"?!0:s,h=m&&(n.inBox?yi(f)??u:u),I={insideGutter:n.insideGutter||h||m&&cu(rl(f,i)),inBox:n.inBox||m};for(let S of Nt({type:d?.type,props:f})){let w=f[S],T=r(w,I,u,!1,i||aa(d?.type,S));if(T!==void 0)return T}}};return r(e,{insideGutter:!1,inBox:!1},t,!0,!1)}var rV=" [--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))))]",aV="[--sf-edge-g:0px] [--sf-edge-al:var(--sf-edge-l)] [--sf-edge-ar:var(--sf-edge-r)]",nV="[--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)))]",cD="max-w-[100vw]",sV=`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))] ${cD}`;function pD(e,o=!1){let t={},r=e.pad??{},a=vk({left:r.left,right:r.right},{left:r.leftPhone,right:r.rightPhone},{left:r.leftTablet,right:r.rightTablet},{left:r.left,right:r.right},{desktop:r.unit,tablet:r.unitTablet,phone:r.unitPhone},0,e.site?"site":"box"),n=a.style;for(let[f,m]of[["l","paddingLeft"],["r","paddingRight"]]){let u=n[m];u!==void 0&&(t[`--sf-edge-${f}d`]=typeof u=="number"?`${u}px`:String(u));let h=n[`--sf-pad-${f}-tablet`],I=n[`--sf-pad-${f}-phone`];h!==void 0&&(t[`--sf-edge-${f}t`]=String(h)),I!==void 0&&(t[`--sf-edge-${f}p`]=String(I))}let s=kr(e.site?"site":"box"),l=a.classes.includes(s.className.split(" ")[0]),i=e.gutter?`${s.className} ${s.edge}${rV}`:`${aV}${l?` ${s.className}`:""}`,d=o?` ${vC}${e.gutter?` ${PC}`:""}`:"";return{className:`${i} ${nV}${d}`,style:t}}function uOe(e,o=!1){let{className:t,style:r}=pD(e,o);return{className:`${t} ${sV}`,...Object.keys(r).length?{style:r}:{}}}var lV="[--sf-edge-bl:max(0px,min(calc(var(--sf-edge-beyond)_+_(var(--sf-edge-l)_-_var(--sf-edge-r))_/_2),calc(2_*_var(--sf-edge-beyond))))] [--sf-edge-br:max(0px,min(calc(var(--sf-edge-beyond)_+_(var(--sf-edge-r)_-_var(--sf-edge-l))_/_2),calc(2_*_var(--sf-edge-beyond))))]";var iV="--sf-edge-beyond";function uD(e){return`max(0px,calc((${e===null?Ks:`min(${Ks},${e})`} - ${No}) / 2))`}var dV=`${lV} 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))] ${cD}`;function mOe(e){let{className:o,style:t}=pD(e);return{className:`${o} ${dV}`,style:{...t,[iV]:e.beyond??"0px"}}}var Si=us(!1);function vOe(){return _t(Si)}function POe({children:e}){return To(Si.Provider,{value:!0,children:e})}var Gg=us(!1);function qg({children:e}){return To(Gg.Provider,{value:!0,children:e})}var mD=us(null);function Vg({ground:e,children:o}){return To(mD.Provider,{value:e,children:o})}var Yg=us(!1);function fV(){return _t(Yg)}function xD({atTop:e,nested:o}){return To(Kg,{children:fV()?o:e})}var bi=us(void 0);function hD({children:e}){return To(bi.Provider,{value:null,children:e})}function Xg(){return _t(bi)===void 0&&!_t(Yg)&&!_t(Si)}function ms({own:e,followed:o}){return To(Kg,{children:Xg()?e():o()})}var ID=us(null);function gD({value:e,children:o}){return To(ID.Provider,{value:e,children:o})}function yD({draw:e}){return To(Kg,{children:e(_t(ID))})}function TOe(){return _t(bi)??null}function SD({contained:e,framedClass:o,fillClass:t,columnClass:r,style:a,tabLabel:n,pad:s,border:l,outerAttrs:i,box:d=!1,edge:f=!1,outerStyle:m,outerClass:u,bleed:h=!1,siteSide:I=!1,part:S,children:w}){let T=_t(Si),B=Pt(),P=B?` ${kr(I?"site":"box").onceFrame}`:"",g=_t(Gg),C=dD(e,T),E=C&&!g,A=nt(),N=!!(l&&E),b=N?u:ko(u??"",A.className)||void 0,_=N||!A.className?i:{...i,...A.attrs},y=s?na(s,E):null,v=y&&B?{root:y.root?{...y.root,className:rt(y.root.className,!0)}:null,outer:y.outer?{...y.outer,className:rt(y.outer.className,!0)}:null}:y,O=v?.root??null,k=l&&!E?l:null,L=d&&!h?B?`${sx} ${CC(I?"site":"box")}`:sx:null,M=[E?`${o}${P}`:t,E?L:null,O?.className,k?Sk:null].filter(Boolean).join(" "),K=cV(h&&E,O||k?{...a,...O?.style,...k}:a),W=_t(bi),se=_t(mD),le=d&&f&&W===void 0?{gutter:C,...s?{pad:s.values}:{},beyond:C&&g?uD(se):"0px",...I&&C?{site:!0}:{}}:null,ee=d?To(Yg.Provider,{value:!0,children:To(bi.Provider,{value:le,children:w})}):w,Ie=C?To(Si.Provider,{value:!0,children:ee}):ee,ae=v?.outer??null,me=_&&Object.keys(_).length>0?_:null,ge=To("div",{...ae?null:me,className:!ae&&b?M?`${M} ${b}`:b:M,style:ae||!m?K:{...K,...m},"data-tab-label":n,...ae?null:S,children:g?To(Gg.Provider,{value:!1,children:C&&!h?To("div",{className:L?`${r}${P} ${L}`:`${r}${P}`,children:Ie}):Ie}):Ie}),Ge=ae?To("div",{...me,className:b?`${ae.className} ${b}`:ae.className,style:m?{...ae.style,...m}:ae.style,...S,children:ge}):ge;return A.scope(l&&E?To("div",{className:ko(Xd,A.className),style:{display:"contents",...l},...A.attrs,children:Ge}):Ge)}function cV(e,o){return e?{...o,paddingLeft:0,paddingRight:0}:o}import{jsx as pV}from"react/jsx-runtime";function bD({children:e}){return pV(fe,{className:iF,children:e})}function mV({side:e,children:o}){return Xg()?mu(bD,{children:mu(fe,{className:dF(e),children:o})}):mu(uV,{children:o})}var wD={name:"boxJoin",applies:(e,o,t)=>e===q&&!!t&&typeof t.render=="function",draw(e){let o=e.render;e.render=t=>{let r=Rp(t.join);return r?mu(mV,{side:r,children:o(t)}):o(t)}}};var CD=(e,o)=>e.fields?.[o]?.type==="slot",xV=(e,o)=>CD(o,Te)||Ed(e).some(t=>CD(o,t)),kD={name:"cardTemplateOnInsert",applies:(e,o,t)=>xV(e,t),panel(e,o){let t=e.resolveData;e.resolveData=(r,a)=>{let n=r.props??{},s=a?.trigger,l=s==="insert"?vd(o,n):s==="copy"?kd(o,n):n,i=l===n?r:{...r,props:l};return t?t(i,a):i}}};import{jsx as Ci}from"react/jsx-runtime";import{Fragment as Wa,jsx as $e,jsxs as Zg}from"react/jsx-runtime";import{createContext as Jg,useContext as Yr,useId as bV}from"react";import{REPEAT_ATTRIBUTE as wV,REPEAT_INDEX_ATTRIBUTE as CV}from"efficient-easel/draw";import{jsx as KOe}from"react/jsx-runtime";import{createContext as gV,useContext as OD,useMemo as yV}from"react";var vD="title";function PD(e){return`${e}Alt`}function hV(e){let o=e.find(t=>typeof t?.url=="string");return{url:o?.url??"",alt:typeof o?.alt=="string"?o.alt:""}}function TD(e,o){let t={[vD]: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}=hV(n);t[r]=s,t[PD(r)]=l}}return t}function IV(e,o){return typeof o!="string"?o.flatMap(t=>IV(e,t)):e===kf||!OP(e)?[]:o==="image"?Ex(e,["images"]).map(t=>({key:t.key,label:t.label,kind:"image",alt:PD(t.key)})):o!=="text"?[]:[{key:vD,label:c("Title")},...Ex(e,["text","date"]).map(t=>({key:t.key,label:t.label}))]}var ED=gV(null);function SV(){return OD(ED)?.record??null}function XOe(e){let o=SV();return o!==null&&o.type===e?o:null}function _D(){let e=OD(ED);return yV(()=>e&&e.record.type!==kf?TD(e.record,e.dateWords):null,[e])}function dEe({props:e,editing:o,children:t}){let r=Yr(wi);return!o&&Qm(e,r?.row)?null:$e(Wa,{children:t})}var hu=Jg(null);function fEe({field:e,children:o}){let t=Yr(hu);return $e(Wa,{children:o(t&&t.field===e?t.id:void 0)})}function kV(e,o){return e?.find(t=>!!o[t.field]?.trim()&&!t.gates.some(r=>Qm({[on]:r},o)))?.field??""}var wi=Jg(null),xu=Jg(null),vV={label:"text-[length:var(--size-label,12px)]"},PV=`flex min-h-6 items-center border border-dashed border-line px-2 py-1 ${vV.label} text-fg-dim`;function cEe({name:e,label:o,editing:t}){let r=Yr(xu)?.(e),a=tf()!=="";return r!=null&&r!==!1?a?$e(fe,{className:"contents",children:r}):$e(Wa,{children:r}):t?$e(fe,{className:PV,children:c("Shown by the section: {name}",{name:o?.trim()||e})}):null}function pEe(){return Yr(wi)}function Qg({type:e,props:o,children:t}){let r=Yr(wi),a=_D(),n=r?.row??a;return $e(Wa,{children:t(Aw(e,o,n,r?.ownerType,r?.fields,r?.slot),r,n)})}function TV({attrs:e,selected:o,hover:t,action:r,titleField:a,children:n}){let s=bV(),{press:l,disabled:i}=r,d=r.label?.trim(),f=!d&&a?{id:`${s}-title`,field:a}:null;return Zg("div",{...e,id:s,className:t&&!i?`${wh} ${EE}`:wh,children:[$e("button",{type:"button",[FE]:"",className:i?RE:LE,"aria-pressed":o,...d?{"aria-label":d}:{"aria-labelledby":f?.id??s},...i?{"aria-disabled":!0,tabIndex:-1}:null,onClick:i?void 0:l}),$e(hu.Provider,{value:f,children:n})]})}function uEe({ownerId:e,ownerType:o,slot:t=Te,Template:r,rows:a,items:n,fields:s,states:l,stateLine:i,actions:d,pressTitles:f,previewHover:m,fallback:u,copyAttrs:h,wrapCopy:I,rowKey:S,hostParts:w,children:T}){let B=Yr(wi),P=Yr(hu),g=Yr(xu);if(!r||(r.blockCount??0)<=0)return $e(Wa,{children:u});let C=B!==null,E=vw(o),A=m??B?.previewHover,N=r.blockCount===1?$e(Gk,{children:$e(r,{className:Dk})}):$e(r,{}),b=new Set,_=(v,O)=>{if(!S)return O;let k=S(v,O);for(;b.has(k);)k=`${k}#${O}`;return b.add(k),k},y=a.map((v,O)=>{let k=l?.[O],L={row:v,index:O,ownerType:o,slot:t,item:n?.[O],nested:C,...s?{fields:s}:null,...k?{state:k}:null,...E?{linesBetween:E}:null,...A?{previewHover:A}:null},M=qh(k)?Zg(Wa,{children:[N,i==="under"?$e("span",{"aria-hidden":"true",className:vE}):Kh(k)?Zg("span",{"aria-hidden":"true",className:PE,children:[$e("span",{className:TE}),$e("span",{className:OE})]}):$e("span",{"aria-hidden":"true",className:kE})]}):N,K={[wV]:`${e}:${t}`,[CV]:O,...typeof h=="function"?h(L):h},W=d?.[O],se=_E(k,i),le=W?$e(TV,{attrs:{...K,...se},selected:k?.selected===!0,hover:i!=="under",action:W,titleField:kV(f,v),children:M}):P?$e("div",{...K,...se,children:$e(hu.Provider,{value:null,children:M})}):$e("div",{...K,...se,children:M}),ee=I?I(le,L):le;return $e(wi.Provider,{value:L,children:w?$e(xu.Provider,{value:Ie=>w(L,Ie),children:ee}):g?$e(xu.Provider,{value:null,children:ee}):ee},_(L,O))});return $e(Wa,{children:T(y)})}var AD={name:"clickableParts",applies:(e,o,t)=>typeof t?.render=="function"&&e!==io&&e!==pn,draw(e,o,t){let r=e,a=()=>r.textParts??r.fields,n=r.partSizeCaps,s=r.render,l=t.inspector?.PartAnchors,i=(d,f)=>Iv(a(),f,m=>Ew(o,d,m));r.render=d=>{let f=_v(d),m=zO(d);return d.editor?.isEditing&&l?Ci(Qg,{type:o,props:d,children:u=>Ci(l,{needles:i(d,u),styles:f,motions:m,type:o,sizeCaps:n,children:Ci(YL,{value:n,children:s(d)})})}):!Object.keys(f).length&&!Object.keys(m).length?s(d):Ci(Qg,{type:o,props:d,children:u=>Ci(YO,{needles:i(d,u),styles:f,motions:m,type:o,atEdge:o===q,sizeCaps:n,children:s(d)})})}}};import{jsx as FD}from"react/jsx-runtime";var BD={name:"sectionCorners",applies:(e,o,t)=>o.isSection(e)&&!!t&&typeof t.render=="function",panel(e,o,t){e.fields={...e.fields,...t.sectionShapeFields()}},draw(e){let o=e.render;e.render=t=>{let r=yk(t.sectionCorners,t.sectionCornerSides,t.sectionCornersUnit),a=o(t);return r?FD(fe,{className:"sf-section-corners",style:{display:"contents",...r},children:a}):a}}},ey=["CollectionCard"],LD={name:"cardCorners",applies:(e,o,t)=>ey.includes(e)&&!!t&&typeof t.render=="function",panel(e,o,t){e.fields={...e.fields,...t.cardShapeFields()}},draw(e){let o=e.render;e.render=t=>{let r=GP(t.cardCorners,t.cardCornerSides,t.cardCornersUnit),a=o(t);return r?FD(fe,{className:"sf-card-corners",style:{display:"contents",...r},children:a}):a}}};var RD={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 DD={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 ND,jsxs as OV}from"react/jsx-runtime";var EV="Flex",MD=(e,o)=>e[o]!==void 0&&e[o]!==!1&&!e.editor?.isEditing,HD={name:"headCore",applies:(e,o,t)=>typeof t?.render=="function",draw(e){let o=e.render;e.render=t=>MD(t,Wl)?ND(fe,{className:Hc,children:t[Wl]==="empty"?null:o(t)}):o(t)}},WD={name:"headBox",applies:(e,o,t)=>e===EV&&typeof t?.render=="function",draw(e){let o=e.render;e.render=t=>MD(t,Hl)?OV(fe,{className:Wc,children:[ND($c,{}),o(t)]}):o(t)}};import{createElement as _V}from"react";var $D={name:"hiddenNodes",applies:(e,o,t)=>typeof t?.render=="function",draw(e,o,t){let r=o===q?"edge":t.isSection(o)?"section":"by-box",a=e.render;e.render=n=>{if(lr(n))return null;let s=ll(n),l=Uk(s,Jv(n),{sectionClassName:ll(n,{atSectionLine:!0}),line:r});return _V(Wk.Provider,{value:l},a(n))}}};import{jsx as LV}from"react/jsx-runtime";import{createContext as UD,createElement as zD,useContext as AV}from"react";var jD=UD(null),FV=UD(!1),zEe=jD.Provider;function BV(e,o,t){return e===void 0||e===""||o===null||o.length===0||!t.includes(e)?!0:o.includes(e)}function GD({name:e,editing:o,children:t}){let r=AV(jD);return o||BV(e,r?.selected??null,r?.known??[])?t:zD("div",{hidden:!0,style:{display:"none"}},zD(FV.Provider,{value:!0},t))}var RV="Flex",KD={name:"showFor",applies:(e,o,t)=>e===RV&&typeof t?.render=="function",draw(e){let o=e.render;e.render=t=>{let r=QE(t[Kn])?.name;if(r===void 0)return o(t);let a=!!t.editor?.isEditing;return LV(GD,{name:r,editing:a,children:o(t)})}}};var qD=Pf.mediaFields,DV=e=>NP(e)?e.src:e;function NV(e,o){let t=o;for(let r of z(qD,e)??[])t=MP(t,r,DV);return t}var VD={name:"mediaValues",applies:(e,o,t)=>typeof t?.render=="function"&&(z(qD,e)?.length??0)>0,draw(e,o){let t=e.render;e.render=r=>t(NV(o,r))}};import{jsx as ki,Fragment as YD,jsxs as XD}from"react/jsx-runtime";var MV="!grow-0 !shrink-0 !basis-0",HV=["[.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(" "),WV="flex flex-col w-full min-w-0 [&>*]:grow";function ZD({anchor:e}){let o=fa(e),t=Er(),r=tf();return o?ki("span",{id:o,className:ko(t?`sf-section-anchor ${MV} ${HV}`:"sf-section-anchor",r),"aria-hidden":"true"}):null}function $V({anchor:e,copiesInBox:o,children:t}){let r=af()?.columnsRow===!0,a=jk(),n=fa(e)!=="";return o?ki(YD,{children:t}):r&&!a&&n?XD(fe,{className:WV,children:[ki(ZD,{anchor:e}),t]}):XD(YD,{children:[ki(ZD,{anchor:e}),t]})}var JD={name:"sectionAnchor",applies:(e,o,t)=>o.isSection(e)&&!!t&&typeof t.render=="function",panel(e,o,t){let r=t.anchorFields;e.fields={...e.fields,...r()}},draw(e,o){e.defaultProps={...e.defaultProps,anchor:""};let t=e.render;e.render=r=>ki($V,{anchor:r.anchor,copiesInBox:Jo(o,r),children:t(r)})}};import{jsx as zV}from"react/jsx-runtime";var QD=Object.fromEntries(Gb.map(e=>[e,"picture"])),UV={[q]:"box",Ticker:"marquee",...Object.fromEntries(xd.map(e=>[e,"cards"])),...QD},eN=(e,o)=>!Gd.has(e)&&!!o&&typeof o.render=="function";function oN(e,o,t,r){e.fields={...e.fields,...t.animationTabFields(o,r)}}function tN(e,o){let t=e,r=t.render;t.render=a=>{let n=Sn(a);return!n||Jo(o,a)?r(a):zV(Pc,{views:n,editing:!!a.editor?.isEditing,takesViewHide:!0,atEdge:o===q,children:r(a)})}}var rN={name:"sectionAnimation",applies:(e,o,t)=>o.isSection(e)&&eN(e,t),panel:(e,o,t)=>oN(e,z(UV,o)??"section",t,o),draw:(e,o)=>tN(e,o)},aN={name:"blockEntrance",applies:(e,o,t)=>!o.isSection(e)&&eN(e,t),panel:(e,o,t)=>oN(e,z(QD,o)??"block",t,o),draw:(e,o)=>tN(e,o)};import{jsx as jV}from"react/jsx-runtime";var nN=(e,o)=>!Gd.has(e)&&!!o&&typeof o.render=="function";function GV(e){let o=Oh.filter(t=>t.block===e);return o.length===1?o[0].focus:void 0}function sN(e,o){let t=e,r=t.render,a=GV(o),n=e.drawsPictures===!0;t.render=s=>{let l=zn(s);return!l||Jo(o,s)?r(s):jV(Vc,{views:l,...a?{origins:WO(s,a)}:{},takesViewHide:!0,atEdge:o===q,zoomInside:n?"picture":"layer",children:r(s)})}}var lN={name:"sectionScroll",applies:(e,o,t)=>o.isSection(e)&&nN(e,t),draw:(e,o)=>sN(e,o)},iN={name:"blockScroll",applies:(e,o,t)=>!o.isSection(e)&&nN(e,t),draw:(e,o)=>sN(e,o)};import{jsx as KV}from"react/jsx-runtime";import{createElement as qV}from"react";var oy=["sectionHeightMode","sectionHeightModeTablet","sectionHeightModePhone"];function VV(e,o){let t=e.props??{};return oy.some(r=>t[r]==="fill")?!0:("parent"in o?o.parent:Xt(o.appState,t.id))?.type===q}var ty={name:"sectionHeight",applies:(e,o,t)=>o.isSection(e)&&!Rk.has(e)&&!!t&&typeof t.render=="function",panel(e,o,t){let r=t.heightFields;e.fields={...e.fields,...r()};let a=r({fill:!0}),n=new WeakMap,s=i=>{if(!i||!oy.some(f=>f in i))return i;let d=n.get(i);if(!d){d={...i};for(let f of oy)f in d&&(d[f]=a[f]);n.set(i,d)}return d},l=e.resolveFields;e.resolveFields=(i,d)=>{let f=l?l(i,d):d.fields,m=u=>VV(i??{},d)?s(u??d.fields):u;return f instanceof Promise?f.then(m):m(f)}},draw(e,o){let t=e.render;e.render=r=>{if(Jo(o,r))return t(r);let a=Hk(r);return a?KV(_r,{className:a.className,style:a.style,...o===q?{attrs:Qb}:null,children:t(r)}):t(r)}}},dN={name:"sectionHeightFillRoot",applies:ty.applies,draw(e,o){let t=e.render;e.render=r=>{let a=Jo(o,r)?null:zk(Mk(r),Nk(r).join(" "));return qV($k.Provider,{value:a},t(r))}}};import{jsx as Iu}from"react/jsx-runtime";import{PIN_ATTR as fN,PIN_FRAME_ATTR as YV}from"efficient-shell/format";var pN=mN("sectionSticky",(e,o,t)=>o.isSection(e)&&!hk.has(e)&&!!t&&typeof t.render=="function",!0),uN=mN("cardSticky",(e,o,t)=>ey.includes(e)&&!!t&&typeof t.render=="function",!1);function mN(e,o,t){return{name:e,applies:o,panel(r,a,n){let s=mx.has(a);r.fields=ZV(r.fields??{},tt(n.stickFields({intro:s,screens:t,above:t}),JV(s))),t&&Ht(r,{heldByANode:iu})},draw(r,a){let n=r.render,s=mx.has(a);r.render=l=>{let i=xx(l,{atScreenTop:s,above:t});if(!i)return n(l);let d=m=>{let u=Iu(sf,{children:n(l)});return Iu(fe,{...m.attrs,style:m.style,children:m.attrs[fN]===""?Iu("div",{[YV]:"",children:u}):u})},f=t?xx(l,{atScreenTop:s,track:t,above:!0}):i;return!f||f.attrs[fN]!==""?d(i):Iu(ms,{own:()=>d(f),followed:()=>d(i)})}}}}var cN=[bt,ls],XV="_gStick";function ZV(e,o){let t=Object.keys(e),r=e[$n];if(!r){let T=t.findIndex(B=>cN.includes(B));return T<0?{...e,...o}:Object.fromEntries([...t.slice(0,T).map(B=>[B,e[B]]),...Object.entries(o),...t.slice(T).map(B=>[B,e[B]])])}let{[XV]:a,...n}=o,s=T=>T.startsWith(bn),l=Object.entries(n).filter(([T])=>!s(T)),i=Object.entries(n).filter(([T])=>s(T)),d=[r.dot,a?.dot].filter(T=>!!T),f=t.indexOf($n),m=t.findIndex((T,B)=>B>f&&cN.includes(T)),u=m<0?t.length:m,h=t.indexOf(Tc),I=h>f&&h<u?h:u,S=T=>[T,T===$n?{...r,dot:{any:d}}:e[T]],w=[...t.slice(0,I).map(S),...l,...t.slice(I,u).map(S),...i,...t.slice(u).map(S)];return Object.fromEntries(w)}function JV(e){let o=i=>({field:i,in:[!0,!1]}),t=i=>e&&i==="stickTop"?{any:[{field:i,is:!0},Ik]}:{field:i,is:!0},r=i=>({field:i,is:!0}),a=i=>({all:[i,Ii,{not:{field:Qs,is:!0}}]}),[n,s,l]=pk;return[[["stickTopDistance"],t("stickTop")],[["stickTopDistanceTablet"],nr(["stickTopTablet","stickTop"],o,t)],[["stickTopDistancePhone"],nr(["stickTopPhone","stickTopTablet","stickTop"],o,t)],[[n],a(r("stickTop"))],[[s],a(nr(["stickTopTablet","stickTop"],o,r))],[[l],a(nr(["stickTopPhone","stickTopTablet","stickTop"],o,r))],[[Vd],Yd],[[Qs],Yd],[[mk],a(Yd)]]}import{jsx as QV}from"react/jsx-runtime";var xN={name:"sectionBorder",applies:(e,o,t)=>o.isSection(e)&&!!t&&typeof t.render=="function",draw(e,o){if(bc.has(o))return;let t=e.render;e.render=r=>{let a=Ck(r.sectionBorder,r.sectionBorderPhone,r.sectionBorderTablet,wk(r)),n=t(r);return a?QV(fe,{className:Xd,style:{display:"contents",...a},children:n}):n}}};import{jsx as ry}from"react/jsx-runtime";var hN={name:"sectionTheme",applies:(e,o,t)=>o.isSection(e)&&!fC.has(e)&&!!t&&typeof t.render=="function",panel(e,o,t){let{sectionThemeFields:r,SECTION_THEME_FOLLOW_LABEL:a}=t,n=ax.has(o);e.fields={...e.fields,...n?r(Rd,a):r()}},draw(e,o){let t=ax.has(o),r=e.render;e.render=a=>{let n=pC(t?{...a,sectionAccent:Rd(a.sectionAccent)}:a),s=r(a);if(!n)return s;let l=d=>ry(_r,{className:n.className,style:d,children:s}),i=n.style;return Jo(o,a)?ry("div",{className:n.className,style:{...i,display:"contents"},children:s}):pu(o,a)!=="content"?l(i):ry(ms,{own:()=>l({...i,...Gs(No)}),followed:()=>l(i)})}}},IN={name:"slideTheme",applies:e=>e==="HeroSlide",panel(e,o,t){let{sectionThemeFields:r,BLOCK_THEME_FOLLOW_LABEL:a}=t;e?.fields&&(e.fields={...e.fields,...r(Rd,a)})}};import{jsx as qe}from"react/jsx-runtime";var gN=null;function ay(e){gN=e}function yN(){return gN}import{jsx as e9}from"react/jsx-runtime";var o9="mx-auto w-full max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)]",SN=kr("box").frame,vi=`${o9} ${SN}`,t9=kr("site").frame,r9=kr("none").frame;function s1e(e){let o=e===!0?"site":e===!1?"box":e;return o==="none"?r9:o==="site"?t9:SN}var a9="mx-auto w-full max-w-[1280px] px-[60px]",n9="max-[960px]:px-6",l1e=`${a9} ${n9}`;function i1e({contained:e,className:o="",style:t,pad:r,fillWidth:a="w-full",part:n,children:s}){return e9(SD,{contained:e,framedClass:`${vi} ${o}`,fillClass:`${a} ${o}`,columnClass:vi,style:t,pad:r,part:n,children:s})}var xs="--sf-sw-site",s9="--sf-sw-content",l9="--sf-bg-cap",i9="contents [--sf-site-width:var(--sf-sw-content)] max-view-wide:[--sf-site-width:var(--sf-sw-site)]",ny=({own:e,content:o,siteContent:t})=>e===!0&&o==="full"&&t!=="full",wN="contents view-wide:[--sf-site-width:100vw]",sy=({held:e},o,t)=>e?t:qe(fe,{className:o,children:t}),d9=`contents view-wide:[--sf-site-width:100vw] ${vB} view-wide:[--sf-site-gutter:var(--intro-edge)]`,ly=(e,o,t)=>o==="content"?`min(${mn(e,t)},var(${xs}))`:mn(e,t);function Pi({content:e,contentMax:o,contentMaxUnit:t},r){return e==="full"?r!=="content"?Ks:null:o===null?null:ly(o,r,t)}function Ti(e,o){return o===null?e:qe(fe,{className:"contents",style:{[xs]:No},children:qe(fe,{className:i9,style:{[s9]:o},children:e})})}var f9="--sf-content-cap",c9="contents max-view-wide:[--sf-content-cap:none]";function p9({content:e,contentMax:o,contentMaxUnit:t},r){return e==="full"?null:o!==null?ly(o,r,t):r==="content"?null:`var(${xs})`}function u9(e,o){return o===null?e:qe(fe,{className:"contents",style:{[xs]:No},children:qe(fe,{className:c9,style:{[f9]:o},children:e})})}var CN=`var(${xs},${No})`,Xr=(e,o,t="")=>e==="content"?qe(fe,{className:t||void 0,style:Gs(No),children:qe(Vg,{ground:CN,children:o})}):o;function kN(e,o,t,r,a){if(ny(t))return Xr(r,sy(t,wN,qe(qg,{children:e({...o,contained:!0})})),a);if(t.content==="full")return Xr(r,e({...o,contained:!1}),a);let n=Pi(t,r);return r==="content"&&n===null&&!t.own?e({...o,contained:!0}):Xr(r,Ti(qe(qg,{children:e({...o,contained:!0})}),n),a)}function m9(e,o,t,r,a){if(t==="hero"){let l=Ti(e(o),Pi(r,r.band));return r.band==="full"?qe(fe,{style:{[LC]:"none",[RC]:"initial",[DC]:"initial"},children:l}):r.band==="content"?qe(fe,{style:Md(!0),children:l}):l}let n=r.band??"full",s=Tr(o,{atSectionLine:!a});if(t==="rawMarkup"){if(r.content==="full")return Xr(n,e(o),s);let l=r.contentMax===null?No:ly(r.contentMax,n,r.contentMaxUnit);return qe(fe,{className:"contents",style:{[xs]:No},children:Xr(n,qe(fe,{className:s||void 0,style:Gs(l),children:e(o)}),s)})}if(t==="scrollOver"){let l=r.content==="full",i=ny(r)?sy(r,d9,e({...o,fullWidth:!1})):Ti(e({...o,fullWidth:l}),l?null:Pi(r,n));return n==="content"?qe(fe,{className:"contents",style:{[l9]:No},children:i}):i}switch(t){case"both":return Xr(n,u9(e(o),p9(r,n)),s);case"contained":return kN(e,o,r,n,s);case"contentColumn":case"contentFull":case"productGrid":{let l=ny(r),i=r.content==="full"&&!l?"full":"page",d=l?sy(r,wN,e({...o,widthMode:i})):Ti(e({...o,widthMode:i}),r.content==="full"?null:Pi(r,n));return t==="productGrid"&&!r.own?n==="content"?qe(ec,{className:s?`${vi} ${s}`:vi,children:f=>qe(fe,{className:f,children:d})}):d:Xr(n,d,s)}default:return Xr(n,Ti(e(o),Pi(r,n)),s)}}function bN(e,o,t,r,a){let n=a===q?"edge":"by-box",s=l=>m9(e,o,t,r,l);return n==="edge"?s(!0):Tr(o)===Tr(o,{atSectionLine:!0})?s(!1):qe(rf,{line:n,draw:s})}function x9(e,o){let t=z(qs,o);if(!t)return;let r=e.render;e.render=a=>{let n=Wd(a),s={band:n.background,content:n.content??"content",contentMax:null},l=()=>t==="rawMarkup"?r(a):qe(yD,{draw:I=>I?.background==="content"?qe(Vg,{ground:CN,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,w=bN(r,a,t,S,o);if(!Vr(o))return w;let T=yi(a),B=T===void 0?S.content:T?"content":"full";return B===S.content?w:qe(xD,{atTop:w,nested:kN(r,a,{...S,content:B,own:!1},S.band??"full",Tr(a))})},d=gi(o,a);if(!WC(d))return l();let f=t==="rawMarkup",m=pu(o,a),u=d.content??(f?"full":s.content),h={band:m,content:m==="content"?"content":u,contentMax:d.contentMax,contentMaxUnit:d.contentMaxUnit,own:!f,siteContent:s.content};return qe(ms,{own:()=>qe(gD,{value:{background:h.band,content:h.content},children:bN(r,a,t,h,o)}),followed:l})}}var h9={all:[Ii,{not:{context:"runsEdgeToEdge",is:!0}}]},vN={name:"sectionWidth",applies:(e,o,t)=>Hd(e)&&!!t&&typeof t.render=="function",panel(e,o,t){let r=t.sectionOwnWidthFields({drawsFullOnItsOwn:z(qs,o)==="rawMarkup"}),a=Vr(o)?t.boxGutterFields():{},n={...e.fields,...a,...r},s=Vr(o)?ON(o,e,n,[Ha]):n;Ht(e,{heldByANode:iu}),Vr(o)&&Ht(e,{runsEdgeToEdge:(l,i)=>cu(rl(l.props??{},Bw(i.appState,l.props?.id)?.inCopy!==!1))}),e.fields=Do(s,[Ao.background,Ao.content],Vr(o)?h9:Ii)},draw(e,o){x9(e,o)}};function I9(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 g9=new Set(["Heading","Text","ImageBlock","ButtonBlock"]),PN={name:"containedWidth",applies:(e,o,t)=>g9.has(e)&&!!t&&typeof t.render=="function",panel(e,o,t){let r=t.widthField;e.fields=ON(o,e,{...e.fields,...r("page")});let a=e.resolveFields;e.resolveFields=(n,s)=>{let l=a?a(n,s):s.fields,i=lx(n?.props??{},"page"),d=f=>I9(f,i);return l&&typeof l.then=="function"?l.then(d):d(l)}},draw(e){let o=e.render;e.render=t=>{let{mode:r}=lx(t,"page");return o({...t,contained:r!=="full"})}}},y9={not:{context:"inHeroGroupRow",is:!0}},TN={name:"buttonAlignInRow",applies:e=>e==="ButtonBlock",panel(e){let o=e;o.fields=Do(o.fields??{},["align"],y9),Ht(o,{inHeroGroupRow:(t,r)=>{let a=Xt(r.appState,t.props?.id);return!!a&&a.type==="HeroGroup"&&Tn("HeroGroup",a.props?.direction)==="row"}})}};function S9(e){return Object.values(e).some(o=>!!o&&typeof o=="object"&&o.type==="slot")}var b9={any:[]},w9={all:[{not:{context:"outsideBox",is:!0}},{not:{context:"insideSiteGutter",is:!0}}]},C9={not:{context:"widthCappedByParent",is:!0}};function ON(e,o,t,r=["widthMode"]){if(e==="ButtonBlock")return Do(t,["_gWidth",...r],b9);if(S9(t)){let a=(n,s)=>fD(s.appState?.data?.content,n.props?.id,uu(yN()));return Ht(o,{outsideBox:(n,s)=>a(n,s)?.inBox!==!0,insideSiteGutter:(n,s)=>a(n,s)?.insideGutter}),Do(t,r,w9)}return Ht(o,{widthCappedByParent:(a,n)=>"parent"in n?xw(n.parent):XR({props:a.props??{}},n)}),Do(t,r,C9)}var k9=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"]),EN={name:"sectionGroups",applies:(e,o)=>o.isSection(e)&&(k9.has(e)||o.isHostBlock(e)),panel(e,o,t){let r=t.assignSectionGroups;e?.fields&&(e.fields=r(e.fields,o))}},v9=new Set(["HeroSlide","HeroGroup"]),_N={name:"blockGroups",applies:(e,o,t)=>v9.has(e)||!o.isSection(e)&&Lp in(t?.fields??{}),panel(e,o,t){let r=t.assignSectionGroups;e?.fields&&(e.fields=r(e.fields,o))}};import{jsx as iy}from"react/jsx-runtime";var P9=new Set(["Flex","Grid"]),AN=e=>Object.entries(e.fields??{}).filter(([,o])=>o?.type==="slot").map(([o])=>o),T9=(e,o)=>e.fields?.[o]?.ownPictures===!0,O9=["blockCount","blockIds"],E9=new WeakMap,_9=new WeakMap;function A9(e,o){let t=o?_9:E9,r=t.get(e);if(r)return r;let a=e,n=s=>iy(hD,{children:iy(sf,{ownPictures:o,children:iy(a,{...s})})});Object.assign(n,e);for(let s of O9)Object.defineProperty(n,s,{get:()=>e[s],configurable:!0,enumerable:!0});return t.set(e,n),n}var FN={name:"slotsStartAfresh",applies:(e,o,t)=>!P9.has(e)&&typeof t?.render=="function"&&AN(t).length>0,draw(e){let o=AN(e),t=e.render;e.render=r=>{let a={...r};for(let n of o){let s=r[n];typeof s=="function"&&(a[n]=A9(s,T9(e,n)))}return t(a)}}};var F9=new Set(["Form","Stats","Logos"]);function BN(){return[...F9]}function dy(e,o,t=[]){let r=new Set(e),a=ub.filter(d=>r.has(d)),n=a.filter(d=>d!=="Header"&&d!=="Footer"&&!If.includes(d)),s=new Set([...o,...fd,...BN()]),l=a.filter(d=>!s.has(d)),i=new Set([...a,...t]);return{isSection:d=>i.has(d)&&!Td(d),isHostBlock:()=>!1,sectionGroupAllow:n,contentSectionKeys:l}}var B9=[FN,VD,HD,GR,KR,hO,BD,xN,LD,yO,aN,iN,YR,vN,PN,TN,ty,Y0,JD,hN,rN,lN,pN,uN,wD,IN,lD,EN,_N,DD,RD,AD,WD,KD,dN,$D,jR,kD];function LN(e,o,t){let r=o;for(let a of B9)a.applies(e,t,r)&&(t.inspector&&a.panel?.(r,e,t.inspector,t),a.draw?.(r,e,t));return o}import{jsx as fy}from"react/jsx-runtime";import{ClockIcon as L9,DurationIcon as R9}from"efficient-easel/icons";import{MOTION_TIMING as RN}from"efficient-shell/format";import{useSelectedHost as D9}from"efficient-easel/easel";function hs(e){let{min:o,max:t,step:r,default:a}=RN[e].duration;return Lr("Duration",fy(R9,{}),o,t,r,a,"s")}function Is(e){let{min:o,max:t,step:r,default:a}=RN[e].delay;return Lr("Delay",fy(L9,{}),o,t,r,a,"s")}function gs(e,o){let t=e.render,r=a=>{let n=D9();return t({...a,value:o(a.value,n?.values)})};return{...e,render:a=>fy(r,{...a})}}function gu({readsSpeed:e}){return gs(hs("loop"),(o,t)=>Bp({loopDuration:o,speed:e?t?.speed:void 0}))}function yu(){return gs(Is("loop"),e=>lF({loopDelay:e}))}import{jsx as co}from"react/jsx-runtime";import{DirectionDownIcon as N9,DirectionIcon as M9,DirectionLeftIcon as H9,DirectionRightIcon as W9,DirectionUpIcon as $9,EntranceBounceIcon as z9,EntranceFadeIcon as U9,EntranceFlipIcon as j9,EntranceGlideIcon as G9,EntranceRevealIcon as K9,EntranceRiseIcon as q9,EntranceScaleIcon as V9,EntranceSpinIcon as Y9,NoSymbolIcon as X9}from"efficient-easel/icons";import{NoControlMark as Z9,noControlField as J9}from"efficient-easel/screen/lib/document/panel-no-control-mark";import{customize as Q9,group as eY}from"efficient-easel/screen/lib/document/box-fields";import{ENTRANCE_FROM as oY,ENTRANCE_FROM_DEFAULT as NN,ENTRANCE_KINDS as MN,ENTRANCE_KINDS_WITH_FROM as tY,entranceAttrs as rY,playEntrance as aY,readEntrance as nY}from"efficient-shell/format";var sY={none:"None",fade:"Fade",rise:"Rise",scale:"Scale",glide:"Glide",bounce:"Bounce",flip:"Flip",reveal:"Reveal",spin:"Spin"},lY={top:"Top",bottom:"Bottom",left:"Left",right:"Right"},iY={top:()=>co(N9,{}),bottom:()=>co($9,{}),left:()=>co(W9,{}),right:()=>co(H9,{})},HN="Entrance",py=MN.filter(e=>e!=="none"),WN=e=>({any:[{field:Xo.kind,in:e},{all:[{field:Xo.kind,set:!1},{field:Ys,in:e}]}]}),DN=(e,o)=>nr(at.slice(0,at.indexOf(e)+1).reverse().map(t=>Yo(Xo.kind,t)),t=>({field:t,set:!0}),t=>t===Xo.kind?WN(o):{field:t,in:o}),dY={any:[WN(py),...at.slice(1).map(e=>({field:Yo(Xo.kind,e),in:py}))]},fY=at.flatMap(e=>[[[Yo(Xo.from,e)],DN(e,tY)],[[Yo(Xo.duration,e),Yo(Xo.delay,e)],DN(e,py)]]),cY={none:()=>co(X9,{}),fade:()=>co(U9,{}),rise:()=>co(q9,{}),scale:()=>co(V9,{}),glide:()=>co(G9,{}),bounce:()=>co(z9,{}),flip:()=>co(j9,{}),reveal:()=>co(K9,{}),spin:()=>co(Y9,{})},$N="data-entrance-tile";function pY({kind:e}){let{attrs:o}=rY(nY(e,NN));return co("span",{className:"sf-entrance-stage",[$N]:e,children:co("i",{...o,children:cY[e]()})})}var uY=(e,o)=>{let t=e.querySelector(`[${$N}="${o}"] > i`);t&&aY(t)},mY="Effect",xY=()=>Df(Xo.kind,{label:HN,tileWord:mY,values:MN,fallback:"none",word:e=>sY[e],picture:e=>co(pY,{kind:e}),read:(e,o)=>Xs(e,o).kind,preview:uY}),cy=(e,o)=>pl(Xo[e],o,(t,r)=>Xs(t,r)[e]),hY=oY.map(e=>({label:lY[e],value:e,picture:iY[e]()}));function At(){let e={[Lp]:eY(HN,{dot:dY}),...xY(),[Ys]:J9({type:"custom",render:()=>co(Z9,{})},"always"),_cEntrance:Q9(),...cy("from",On("From",co(M9,{}),hY,NN)),...cy("duration",hs("entrance")),...cy("delay",Is("entrance"))};return tt(e,fY)}import{jsx as Go}from"react/jsx-runtime";import{EntranceRevealIcon as IY,NoSymbolIcon as gY,PercentIcon as zN,ScrollFadeInIcon as yY,ScrollFadeOutIcon as SY,ScrollMoveDownIcon as bY,ScrollMoveUpIcon as wY,DurationIcon as CY,ScrollExpandIcon as kY,ScrollParallaxIcon as vY,ScrollZoomInIcon as PY,ScrollZoomOutIcon as TY,ZoomInIcon as OY}from"efficient-easel/icons";import{customize as EY,group as _Y}from"efficient-easel/screen/lib/document/box-fields";import{SCROLL_EASES as AY,SCROLL_EFFECTS as jN,SCROLL_EFFECTS_WITH_ZOOM as FY,SCROLL_END as BY,SCROLL_START as LY,SCROLL_ZOOM as RY}from"efficient-shell/format";var GN="Scroll",KN={none:"None","zoom-in":"Zoom in","zoom-out":"Zoom out","fade-in":"Fade in","fade-out":"Fade out","move-up":"Move up","move-down":"Move down",reveal:"Reveal",parallax:"Parallax",expand:"Expand"},DY={linear:"Linear",smooth:"Smooth",arrive:"Ease out"},qN={none:()=>Go(gY,{}),"zoom-in":()=>Go(PY,{}),"zoom-out":()=>Go(TY,{}),"fade-in":()=>Go(yY,{}),"fade-out":()=>Go(SY,{}),"move-up":()=>Go(wY,{}),"move-down":()=>Go(bY,{}),reveal:()=>Go(IY,{}),parallax:()=>Go(vY,{}),expand:()=>Go(kY,{})},NY=jN.filter(e=>eo(KN,e)&&eo(qN,e)),MY="Effect",VN=jN.filter(e=>e!=="none"),UN=(e,o)=>nr(at.slice(0,at.indexOf(e)+1).reverse().map(t=>Yo(oo.effect,t)),t=>({field:t,set:!0}),t=>({field:t,in:o})),HY={any:at.map(e=>({field:Yo(oo.effect,e),in:VN}))},WY=at.flatMap(e=>[[[Yo(oo.zoom,e)],UN(e,FY)],[[Yo(oo.start,e),Yo(oo.end,e),Yo(oo.ease,e)],UN(e,VN)]]),$Y=()=>Df(oo.effect,{label:GN,tileWord:MY,values:NY,fallback:"none",word:e=>KN[e],picture:e=>qN[e](),read:(e,o)=>Kt(e,o).effect}),uy=(e,o,t,r,a)=>pl(e,Lr(t,r,a.min,a.max,a.step,a.default,"%"),(n,s)=>Kt(n,s)[o]),zY=()=>pl(oo.ease,Of("Speed",Go(CY,{}),AY.map(e=>({label:DY[e],value:e})),"linear"),(e,o)=>Kt(e,o).ease);function $a(){let e={[$n]:_Y(GN,{dot:HY}),...$Y(),[Tc]:EY(),...uy(oo.zoom,"zoom","Zoom",Go(OY,{}),RY),...uy(oo.start,"start","Start",Go(zN,{}),LY),...uy(oo.end,"end","End",Go(zN,{}),BY),...zY()};return tt(e,WY)}import{jsx as Fo}from"react/jsx-runtime";import{AccentIcon as UY,ContrastIcon as jY,EyeIcon as GY,ExpandIcon as KY,FinishIcon as qY,ImagesIcon as VY,NoSymbolIcon as XN,HoverLiftIcon as YY,HoverNextImageIcon as XY,HoverRotateIcon as ZY,HoverZoomIcon as ZN,OpacityIcon as JY}from"efficient-easel/icons";import{customize as QY,describedAs as JN,group as eX}from"efficient-easel/screen/lib/document/box-fields";import{effectTiles as QN}from"efficient-easel/screen/lib/document/effect-tiles";import{deviceField as yo}from"efficient-easel/screen/lib/document/device-fields";import{NoControlMark as oX,noControlField as tX}from"efficient-easel/screen/lib/document/panel-no-control-mark";var Su=e=>yo("desktop",eX("Hover",{dot:e})),eM=()=>yo("desktop",QY()),rX="What this does when a shopper points at it, or taps it on a phone.",aX="What this picture does when a shopper points at it. Black and white shows it in grey until then. A phone shows its colour.",nX="What this picture does when a shopper points at the card. Show next image covers the card or the picture with this product's photos; a phone shows the picture as it is. Black and white shows it in grey until then.",sX="What this picture does when a shopper points at the card. Show next image covers the picture with the card's photos; a phone shows the picture as it is. Black and white shows it in grey until then.",lX="When this shows. On card hover shows it while a shopper points at the card. A phone always shows it.",iX="What each card does when a shopper points at it. Show next image covers the card with this product's photos; a phone shows the card as it is. Rotate turns the wheel picture.",dX="Which of the product's pictures the card shows.",fX="Same finish shows the photos of the finish the card shows, else the first group.",cX="Whole card hides the words under the photo. Picture keeps the words and swatches in view.",pX={none:()=>Fo(XN,{}),nextImage:()=>Fo(XY,{}),rotate:()=>Fo(ZY,{}),zoom:()=>Fo(ZN,{}),lift:()=>Fo(YY,{}),mono:()=>Fo(jY,{})};function my(e,o){let t=QN({label:c("Hover effect"),options:e.map(r=>({value:r,label:c(Em[r]),picture:pX[r]()})),fallback:o});return JN(t,{type:"select",label:"Hover effect",options:e.map(r=>({value:r,label:Em[r]}))})}function oM(){return{[bt]:Su({field:ot,in:Bm.filter(e=>e!=="none")}),[ot]:yo("desktop",{...my(Bm,"none"),description:rX})}}function tM(e){let o=Ub(e),t=Id(),r=VP(Lb);return{[bt]:Su({any:[o,t]}),[Ke.kind]:yo("desktop",{...gs(my(Ab,e),(a,n)=>$b(n??{},e)),description:iX}),...xy(t),[Fb]:tX({type:"custom",render:()=>Fo(oX,{})},"always"),_cHover:eM(),[Ke.angle]:yo("desktop",ro(gs(r,a=>zb(a)),o)),[Ke.duration]:yo("desktop",ro(hs("hover"),o)),[Ke.delay]:yo("desktop",ro(Is("hover"),o))}}function xy(e){let o=Of("Type",Fo(VY,{}),Rb.map(a=>({value:a,label:Db[a]})),hd.kind),t=On("Group",Fo(qY,{}),Nb.map(a=>({value:a,label:Mb[a]})),hd.group),r=On("Covers",Fo(KY,{}),Hb.map(a=>({value:a,label:Wb[a]})),hd.cover);return{[Ke.mediaKind]:yo("desktop",ro({...o,description:dX},e)),[Ke.mediaGroup]:yo("desktop",ro({...t,description:fX},e)),[Ke.cover]:yo("desktop",ro({...r,description:cX},e))}}function hy(e,o="",t=Mm.includes(o)){let r=Hm(e),a=Xb(e);return{[bt]:Su(r),[Ke.kind]:Iy(jb,e,aX),...Mm.includes(o)?xy(Id()):{},_cHover:eM(),...t?rM():{},[Ke.duration]:yo("desktop",ro(hs("hover"),a)),[Ke.delay]:yo("desktop",ro(Is("hover"),a))}}function rM(e=!1){let o=a=>e?a:ro(a,Yb()),t=Lr("Zoom",Fo(ZN,{}),nn.min,nn.max,nn.step,nn.min,nn.unit),r=Lr("Darken on hover",Fo(JY,{}),Cn.min,Cn.max,Cn.step,Cn.fallback,Cn.unit);return{[Rm.zoom]:yo("desktop",o(t)),[Rm.darken]:yo("desktop",o(r))}}function Iy(e,o,t){let r=yo("desktop",{...gs(my(e,o),a=>qb({[ot]:a},o,e)),description:t});return Object.assign(r,{[aM]:o})}var aM="sfPictureResting",YN=new WeakMap;function iFe(e,o,t){let r=e[Ke.kind],a=r?.[aM];if(!r||!a)return e;let n=o.props?.[ot]==="nextImage",s=n?null:Ad(t.appState,o.props?.id);if(!n&&!xd.includes(String(s?.type??"")))return e;let l=YN.get(e);return l||(l={...e,[Ke.kind]:Iy(Lm,a,nX)},YN.set(e,l)),l}var uX="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.",mX={none:()=>Fo(XN,{}),[_m]:()=>Fo(UY,{})},dFe=yo("desktop",{...JN(QN({label:c("Hover effect"),options:Am.map(e=>({value:e,label:c(Fm[e]),picture:mX[e]()})),fallback:"none"}),{type:"select",label:"Hover effect",options:Am.map(e=>({value:e,label:Fm[e]}))}),description:uX}),xX=yo("desktop",{...On("Show",Fo(GY,{}),[{value:Nm,label:"Always"},{value:Dm,label:"On card hover"}],Nm),description:lX});function nM(){let e={any:[Hm("none"),{field:ot,is:_m},{field:oa,is:Dm}]},{[bt]:o,[Ke.kind]:t,...r}=hy("none","",!0);return{[bt]:Su(e),[Ke.kind]:t,[oa]:xX,...xy(Id()),...r,...rM(!0)}}var fFe=Iy(Lm,"none",sX);import{jsx as Oi}from"react/jsx-runtime";import{isNodeList as yX}from"efficient-easel/data";import{useEasel as SX}from"efficient-easel/easel";import{hiddenInView as bX,hiddenKeyOf as gy,hidePatch as wX,slotChildName as CX,slotChildRowName as kX}from"efficient-easel/draw";var hX=new Set(["BookingBox","SubmitBox"]);function IX(e){return typeof e=="string"&&hX.has(e)}var gX=tT(IX,NT);function bu(e,o){return gX(e)||IT(o)}var wu=(e,o,t)=>{if(o!=="block"||e.props?.fromProduct!==!0)return t;let r=e.props.product;return!r?.code||typeof r.name!="string"?t:r.name.trim()||t};import{deviceField as vX}from"efficient-easel/screen/lib/document/device-fields";import{NoControlMark as PX}from"efficient-easel/screen/lib/document/panel-no-control-mark";var sM="notCardOfTemplate",lM={not:{context:sM,is:!0}},yy={any:[yd,lM]},_Fe={[sM]:(e,o)=>{let t=ex(o.appState,e.props?.id);return t===void 0?void 0:t===null}};function Cu(e){let o=e.props?.content;return yX(o)?o:[]}var vu=(e,o)=>bX(e.props??{},o),TX=(e,o)=>e.props?.[gy(o)]!==void 0;function iM(e,o=()=>!1,t="desktop"){return Cu(e).flatMap(r=>typeof r?.props?.id!="string"?[]:Cu(r).length&&!vu(r,t)?iM(r,o,t):o(r)?[]:[r])}function OX(e,o,t,r="desktop"){let a=iM(e,t,r).map(l=>({child:l,name:o(l)})),n=new Set(a.map(l=>l.name)),s=new Set;return a.map(({child:l,name:i})=>{let d=i;if(s.has(i)){let f=2;for(;n.has(`${i} ${f}`);)f+=1;d=`${i} ${f}`,n.add(d)}return s.add(i),{id:l.props.id,label:d,shown:!vu(l,r)}})}function ku(e,o,t){let r=a=>t==="desktop"?vu(a,t):TX(a,t);return Cu(e).flatMap(a=>r(a)?o(a)?[]:[a,...ku(a,o,t)]:ku(a,o,t))}function EX(e,o){let t={...e};for(let[r,a]of Object.entries(o))a===void 0||r===gy("desktop")&&a===!1?delete t[r]:t[r]=a;return Object.keys(t).length===Object.keys(e).length&&Object.keys(t).every(r=>t[r]===e[r])?e:t}function Sy(e,o,t){let r=Cu(e),a=!1,n=r.map(s=>{if(a)return s;let l=s;if(s?.props?.id===o){let i=EX(s.props,t(s.props));i!==s.props&&(l={...s,props:i})}else l=Sy(s,o,t);return a=l!==s,l});return a?{...e,props:{...e.props,content:n}}:e}function dM(e,o,t,r="desktop"){return Sy(e,o,a=>r==="desktop"&&vu({props:a},r)===!t?{}:wX(a,r,!t))}function _X(e,o,t){return t==="desktop"?dM(e,o,!0,t):Sy(e,o,()=>({[gy(t)]:void 0}))}function AX(e,o,t,r,a,n){return CX(e).trim()?t(e):Tw({ownerType:o,owner:r,fields:a,slot:n},Wt(e.props))?.label??t(e)}var FX="This page is read-only.";function BX({card:e,ownerType:o,owner:t,fields:r,slot:a,labelOf:n,write:s,readOnly:l,view:i="desktop"}){let d=u=>kX(u,n,an,void 0,wu),f=u=>bu(u.type,u),m=OX(e,u=>AX(u,o,d,t,r,a),f,i);return m.length?Oi(zx,{parts:m,changed:ku(e,f,i).length>0,shown:u=>m.find(h=>h.id===u)?.shown??!0,disabledReason:l?FX:void 0,onPress:(u,h)=>s(I=>dM(I,u,h,i)),onReset:()=>s(u=>ku(u,f,i).reduce((h,I)=>_X(h,String(I.props.id),i),u))}):Oi(PX,{})}function LX(){try{let e=SX(a=>a),o=e.config.components??{},t=e.selectedItem;if(!t)return null;let r=ex(e.appState,t.props?.id);return{labelOf:a=>o[a]?.label??a,card:t,ownerType:typeof r?.type=="string"?r.type:void 0,owner:r,fields:Lw(e.appState,r),slot:Fw(e.appState,t.props?.id)??void 0}}catch{return null}}function RX({readOnly:e,view:o}){let t=LX(),r=fl();return t?Oi(BX,{...t,view:o,readOnly:e,write:a=>{e||r(n=>{let s={...t.card,props:n},l=a(s);return l===s?null:{content:l.props.content}})}}):Oi(zx,{parts:[],changed:!1,shown:()=>!0,onPress:()=>{},onReset:()=>{}})}function AFe(e){return ro(vX(e,{type:"custom",render:({readOnly:o})=>Oi(RX,{readOnly:o,view:e})}),lM)}import{customize as GX}from"efficient-easel/screen/lib/document/box-fields";import{jsx as by}from"react/jsx-runtime";import{DirectionIcon as DX,LoopMarqueeIcon as NX,NoSymbolIcon as MX}from"efficient-easel/icons";import{customize as HX,describedAs as WX,group as $X}from"efficient-easel/screen/lib/document/box-fields";import{effectTiles as zX}from"efficient-easel/screen/lib/document/effect-tiles";function wy(){return FT("Direction",HI,pi,"A marquee cannot run diagonally, so the corners are not answers.",by(DX,{}),AT)}var Cy=e=>$X("Loop",e?{dot:e}:void 0),UX={none:()=>by(MX,{}),scroll:()=>by(NX,{})};function jX(){let e=zX({label:c("Loop"),options:Fp.map(({value:o,label:t})=>({value:o,label:c(t),picture:UX[o]()})),fallback:MI});return WX(e,{type:"select",label:"Loop",options:Fp.map(({value:o,label:t})=>({value:o,label:t}))})}function fM(){return{[ls]:Cy(ci),loop:jX(),_cLoop:HX(),scrollDirection:ro(wy(),ci),loopDuration:ro(gu({readsSpeed:!1}),ci),loopDelay:ro(yu(),ci)}}var cM={field:oa,set:!0};function KX(){let e=nM(),o=[bt,ot],t=Do(e,Object.keys(e).filter(n=>!o.includes(n)&&n!==oa),yd),r=Do(t,[oa],cM),a=Do(r,[ot],yy);return Do(a,[bt],{any:[yy,cM]})}function Pu(e,o=""){switch(e){case"section":case"block":return{...At(),...$a()};case"box":return{...At(),...$a(),...fM(),...KX()};case"picture":return{...At(),...$a(),...hy(Kb(o),o)};case"textPart":return{...At(),...$a(),...oM()};case"cards":return{...At(),...$a(),...tM(Bb(o))};case"marquee":return{...At(),...$a(),[ls]:Cy(),_cLoop:GX(),scrollDirection:wy(),loopDuration:gu({readsSpeed:!0}),loopDelay:yu()}}}import{blockSizeFieldSet as NZ}from"efficient-easel/screen/lib/document/block-size-fields";import{VIEW_KEY_ACCESS as MZ}from"efficient-easel/screen/lib/document/box-fields";import{jsx as pM,Fragment as qX,jsxs as VX}from"react/jsx-runtime";import{useSelectedHost as uM}from"efficient-easel/easel";import{VIEW_TIERS as YX,viewKeyAt as XX}from"efficient-easel/draw";var mM=e=>YX.find(o=>Object.values(ho).some(t=>XX(t,o)===e))??"desktop";function ZX(e,o,t){let r=e(o),a=mM(t);return{top:Zd(r,"top",a),bottom:Zd(r,"bottom",a)}}var JX=e=>e.startsWith(ho.bottom)?"bottom":"top";function QX(e,o,t,r){let a=JX(r);return o(t,Zd(e(t),a,mM(r)),a)}function eZ({frameOf:e,note:o,rowKey:t}){let r=uM()?.values,a=r?QX(e,o,r,t):null;return a?pM("p",{className:"es-field-hint",children:a}):null}var oZ=new Set(wn());function xM(e,o,t){let r=Rr({tablet:!0,siteSide:!0,...t?{label:t}:{},useFallback:a=>{let n=uM()?.values;return n?ZX(e,n,a.name):{top:0,bottom:0}}});return Object.fromEntries(Object.entries(r).map(([a,n])=>{let s=n.render;return!oZ.has(a)||typeof s!="function"?[a,n]:[a,{...n,render:l=>VX(qX,{children:[s(l),pM(eZ,{frameOf:e,note:o,rowKey:a})]})}]}))}import{group as tZ}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as rZ,deviceMetaOf as gM}from"efficient-easel/screen/lib/document/device-fields";import{DESIGN_GROUPS as vy,SETTINGS_BUCKETS as aZ}from"efficient-easel/panel";import{BUCKET_KEY as So,DESIGN_GROUP_KEY as ys}from"efficient-easel/screen/lib/document/field-buckets";var Ei=aZ;var nZ="Editor only \u2014 not shown live",Py={"Archive link":"Content",Article:"Content",Blocks:"Content","Blog posts":"Content","Browser mock":"Content",Button:"Content","Call to action":"Content","Car prompt":"Content","Card link":"Content","Card list":"Content",Cards:"Content","Claims bars":"Content","Contact info":"Content",Content:"Content",Display:"Content","Content source":"Content",Contents:"Content",Filters:"Content","Show on a card":"Content",Footnote:"Content",Form:"Content",Founders:"Content","Gallery A":"Content","Gallery B":"Content","Gallery link":"Content",Header:"Content","Header link":"Content","Image caption":"Content","In this issue":"Content",Items:"Content","Kanban columns":"Content",Lead:"Content","Left panel":"Content",Link:"Content",Links:"Content",List:"Content","Message form":"Content",Metadata:"Content",Milestones:"Content","Mockup card":"Content","Newsletter panel":"Content",Offices:"Content",Options:"Content","Others gallery":"Content","Overlay button":"Content",Product:"Content","Product page":"Content",Products:"Content","Pull quote":"Content",Questions:"Content","Recent issues":"Content","Recent posts":"Content",Reviews:"Content","Right panel \xB7 actions":"Content","Right panel \xB7 choices":"Content","Right panel \xB7 form":"Content","Routing groups":"Content",Rows:"Content",Section:"Content","Section header":"Content",Sections:"Content","Signup form":"Content",Source:"Content","Source product":"Content","Stat & note":"Content",Stats:"Content","Submit button":"Content","Success state":"Content",Wheel:"Content",Terminal:"Content",Text:"Content","Text column":"Content","Timeline entries":"Content","Top row":"Content",Total:"Content","Trailing note":"Content","\u201COther\u201D reason":"Content","Background images":"Design",Gallery:"Content",Image:"Content","Image column":"Content",Images:"Content",Logo:"Content",Map:"Content",Media:"Content","Background image":"Design",Color:"Design","Image tint":"Design",Style:"Design",Shape:"Design",Shadow:"Design",Texture:"Design",Overlay:"Design","Text style":"Design",Entrance:"Animation",Hover:"Animation",Loop:"Animation",Scroll:"Animation",Advanced:"Advanced",Anchor:"Anchor",Arrangement:"Layout","Auto-slide":"Layout",Bar:"Layout","Cell size":"Size",Behavior:"Layout",Schedule:"Layout",Controls:"Layout",Diagram:"Layout",[nZ]:"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"},yM={"AlloyWheelsListing._gCards":"Design","Flex._gLink":"Link","LongRead._gLink":"Link"},SM={"Text._gSpacing":"Size","Heading._gSpacing":"Size"};function hM(e,o,t){let r=`${e}.${o}`;return z(SM,r)??z(yM,r)??z(Py,t)}function sZ(e){return e==="Animation"?[So.Animation]:[So.Design,ys[e]]}function Tu(...e){let o=[];for(let t of e)for(let r of Object.values(t)){let a=gM(r),n=fr(a?a.inner:r),s=n?z(Py,n.label):void 0;if(s)for(let l of sZ(s))o.includes(l)||o.push(l)}return o}var xBe=[...Tu(Rr({tablet:!0,siteSide:!0}),An("full"),Fn(),Bn(),cl()),...Object.keys(Rr({tablet:!0,siteSide:!0})),...Object.keys(An("full")),...Object.keys(Fn()),...Object.keys(Bn()),...Object.keys(cl())],hBe=[...Tu(En()),...Object.keys(En())],IBe=[...Tu(_n()),...Object.keys(_n())],gBe=[...Tu(At()),...Object.keys(At())],yBe=Object.keys(RT()),SBe=Object.keys(DT()),lZ={"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)"},bM={Content:["Content"],Size:["Size"],Design:["Design","Style"],Layout:["Layout"],Position:["Position"],Advanced:["Advanced"],Link:["Link"],Anchor:["Anchor"],Animation:["Animation"]},ky={_gAnchor:"repeated the Anchor group heading above it (two tabs, 11.0.0)"};{let e={...Rr({tablet:!0,siteSide:!0}),...An("full"),...Fn(),...Bn(),...En(),..._n(),...At()};for(let o of Object.keys(ky)){let t=fr(e[o]),r=t?z(Py,t.label):void 0;if(!t||t.level!==2||!r||!bM[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 iZ=new Set(["_sContent","_sStyle","_sLayout","_sMedia"]),dZ=new Map([[So.Design,"Content"],[So.Animation,"Animation"],...vy.map(e=>[ys[e],e])]);function fZ(e){let o=`${e}.`;return Object.keys(lZ).filter(t=>t.startsWith(o)).map(t=>t.slice(o.length))}function cZ(e,o){let t=gM(e),r=tZ(o);return t?rZ(t.tier,r):r}function pZ(e,o){let t=fr(o);return t?e==="Content"||e==="Animation"?CT(o,t.label):kT(o):o}function IM(e){return e==="Design"?vy:["Animation"]}function Ou(e,o){let t=[],r=new Set(fZ(o)),a=new Set,n=!1,s=null;for(let[u,h]of Object.entries(e)){let I=fr(h);if(iZ.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=dZ.get(u);if(S!==void 0){if(I?.level!==1)throw new Error(`${o}.${u}: that key is reserved for the ${S} heading of the settings panel, but this field is ${I?`a level-${I.level} "${I.label}" header`:"not a header"}, so it cannot serve as one. Rename the section's own field.`);(u===So.Design||u===So.Animation)&&(n=!0),t.push(s={place:S,entries:[],adopted:!0});continue}if(!I){s||t.push(s={place:"Content",entries:[]}),s.entries.push([u,h]);continue}if(r.has(u)||eo(ky,u)){let T=hM(o,u,I.label);if(I.level!==2||!T||!bM[T].includes(I.label))throw new Error(`${o}.${u}: ${r.has(u)?"RETIRED":"INJECTED_RETIRED"} (lib/document/field-groups.ts) lists this sub-heading as one whose name repeats the place it sits in, but it is a level-${I.level} "${I.label}" header in the ${T??"(unclassified)"} place. Only a level-2 header whose label is one of its place's words (PLACE_WORDS) may be retired \u2014 anything else is a heading a merchant reads for its own sake. Fix the row or drop it.`);r.has(u)&&a.add(u),t.push(s={place:T,entries:[],uniform:eo(ky,u)});continue}let w=hM(o,u,I.label);if(!w)throw new Error(`${o}.${u}: the inspector group "${I.label}" is not classified in LABEL_GROUP (lib/document/field-groups.ts), so there is no way to say which of ${[...vy,"Animation"].join(" / ")} its controls belong under. Classify it \u2014 an unclassified group silently lands wherever it was declared, which is the whole bug.`);t.push(s={place:w,entries:[[u,I.level===2?h:cZ(h,I.label)]]})}let l=new Set(Object.entries(e).filter(([,u])=>fr(u)).map(([u])=>u));for(let[u,h]of[["BLOCK_KEY_GROUP",SM],["KEY_GROUP",yM]]){let I=Object.keys(h).filter(S=>S.startsWith(`${o}.`)).filter(S=>!l.has(S.slice(o.length+1))&&!r.has(S.slice(o.length+1)));if(I.length)throw new Error(`${o}: ${u} (lib/document/field-groups.ts) lists ${JSON.stringify(I)}, but no fold header by that key is in this section's panel. Either the heading was renamed or removed and the row is stale, or the row names the wrong key \u2014 an override that quietly matches nothing is worse than no override.`)}let i=n?[]:[...r].filter(u=>!a.has(u));if(i.length)throw new Error(`${o}: RETIRED (lib/document/field-groups.ts) lists ${JSON.stringify(i)}, but this section has no such fold header${i.length>1?"s":""}. Either the heading was renamed or removed and the row is stale, or the row names the wrong section \u2014 a list that quietly matches nothing is worse than no list.`);let d=new Set(t.filter(u=>u.entries.length>0).map(u=>u.place)),f=Ei.filter(u=>IM(u).some(h=>d.has(h))),m={};for(let u of f){m[So[u]]=Lf(u,u===f[0]?f:null);for(let h of IM(u)){if(!d.has(h))continue;let I=t.filter(T=>T.place===h),S=I.findIndex(T=>T.adopted);S>0&&I.unshift(...I.splice(S,1));let w=I.filter(T=>T.uniform);if(w.length>0){let T=I.filter(P=>!P.uniform),B=I[0]?.adopted?1:0;I.splice(0,I.length,...T.slice(0,B),...w,...T.slice(B))}u==="Design"&&(m[ys[h]]=Nx(h));for(let T of I)for(let[B,P]of T.entries)m[B]=pZ(h,P)}}return m}function wM(e){return So.Design in e?e:{[So.Design]:Lf("Design",null),[ys.Content]:Nx("Content"),...e}}function CM(e){return Ei.some(o=>So[o]in e)}function Eu(e){let o=Ei.filter(r=>So[r]in e);if(o.length===0)return e;let t={...e};for(let r of o)t[So[r]]=Lf(r,r===o[0]?o:null);return t}import{jsx as _u}from"react/jsx-runtime";import{WidthIcon as uZ}from"efficient-easel/icons";import{SettingsField as mZ,SettingsSwitch as xZ}from"efficient-easel/panel";import{group as hZ,iconOf as IZ,sharedStyleKinds as gZ}from"efficient-easel/screen/lib/document/box-fields";var yZ="Gutter";function SZ({value:e,onChange:o,labelId:t}){let r=uu(dl()),a=yi({[Ha]:e})??r,n=s=>o(s?r?void 0:jg:Ug);return _u(mZ,{label:c(yZ),labelId:t,icon:IZ(_u(uZ,{})),action:_u(xZ,{checked:a,onChange:n,ariaLabelledBy:t})})}function kM(){return gZ({_gWidth:hZ(Rf),[Ha]:{type:"custom",render:({value:e,onChange:o,id:t,name:r})=>_u(SZ,{value:e,onChange:o,labelId:`${t??r??Ha}-label`})}})}import{jsx as Oy}from"react/jsx-runtime";import{group as bZ,sharedStyleKinds as PM}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as wZ}from"efficient-easel/screen/lib/document/device-fields";var CZ="Content cannot be wider than the background.",Ty=e=>c(e==="content"?"Content width":"Full width");function TM(e){let{siteWidth:o,sectionBackgroundWidth:t,sectionContentWidth:r,themeFromDocument:a}=vo(),n=ye(o)??xn.default;return e.drawsFullOnItsOwn?{px:n,background:"full",content:"full"}:{px:n,background:(a?null:t)??"full",content:(a?null:r)??"content"}}var kZ={read:hn},vZ={read:hn,drawsFullOnItsOwn:!0},PZ={read:HC,clearOnContent:{fullWidth:void 0}};function TZ({source:e}){let o=e.read(Wx()),t=fl(),r=TM(e);return Oy(HT,{value:o.background??r.background,changed:o.background!==null,detail:Ty(r.background),onChange:a=>t($C(a)),onReset:()=>t(dx("background"))})}function OZ({source:e}){let o=e.read(Wx()),t=fl(),r=i=>t({...i,...e.clearOnContent}),a=TM(e),n=(o.background??a.background)==="content",s=vT({row:ix,label:MT,grid:{min:xn.min,max:n?a.px:xn.max,step:xn.step},valueKey:Ao.contentMax,view:"desktop",numbersIn:()=>o.contentMax!==null}),l=o.content??a.content;return Oy(WT,{mode:n&&l==="full"?"content":l,px:o.contentMax??a.px,max:n?a.px:xn.max,changed:o.content!==null,detail:a.content==="full"?Ty("full"):`${Ty("content")} ${a.px}px`,fullClosed:n,hint:n?CZ:void 0,onMode:i=>r(zC(i)),onPx:i=>r({...UC(i),...s?.unitPatch(!1)}),...s?{length:s}:{},onReset:()=>r(dx("content"))})}var vM=(e,o)=>wZ("desktop",{type:"custom",render:()=>Oy(e,{source:o})}),OM=e=>({[Ao.background]:vM(TZ,e),[Ao.content]:vM(OZ,e),[Ao.contentMax]:Hx(),...qP(ix,Ao.content)});function EM(e){let o=e?.drawsFullOnItsOwn?vZ:kZ;return PM({_gWidth:bZ(Rf),...OM(o)})}function zBe(){return PM({...OM(PZ),fullWidth:Hx()})}import{deviceMetaOf as AM}from"efficient-easel/screen/lib/document/device-fields";import{noControlMetaOf as EZ}from"efficient-easel/screen/lib/document/panel-no-control-mark";function _Z(e,o){let t=AM(o),r=t?t.inner:o;if(fr(r)||r?.customize===!0)return!1;if(r?.type==="slot")return!0;let a=EZ(r);return a==="always"?!1:a==="authored-copy"?ev(e):!0}function _M(e){let o=AM(e),t=o?o.inner:e,r=fr(t);return r?wT(t)?0:r.level:null}function AZ(e,o,t){return t?o===0&&e===So.Design||o===1&&e===ys.Content:!1}var FZ=new WeakMap,BZ=new WeakMap;function FM(e,o="section"){let t=o==="page"?BZ:FZ,r=t.get(e);if(r)return r;let a=Object.entries(e).map(([m,u])=>({key:m,field:u,level:_M(u),draws:_Z(m,u)||o==="page"&&_M(u)===null&&bx(m,u)})),n=o==="section"&&a.some(m=>bx(m.key,m.field)),s=new Set;for(let m=0;m<a.length;m++){let u=a[m].level;if(u===null)continue;let h=0;for(let I=m+1;I<a.length;I++){let S=a[I].level;if(S!==null&&S<=u)break;a[I].draws&&(h+=1)}h===0&&!AZ(a[m].key,u,n)&&s.add(a[m].key)}let l=n&&CM(e),i=l&&!(So.Design in e);if(!s.size&&!i)return t.set(e,e),e;let d={};for(let m of a)s.has(m.key)||(d[m.key]=m.field);let f=Eu(l?wM(d):d);return t.set(e,f),f}import{isShown as LZ,showWhenFactReaders as RZ}from"efficient-shell/format";var BM=new WeakMap,DZ=new Set(Object.values(So));function LM(e,o,t,r={}){if(!e)return e;let a=o?.props??{},n=a.id,s=RZ(r,o,t),l=DP(t,{...s,parentOffersPositions:()=>{let I=Xt(t.appState,n);return I===void 0?void 0:ak(I,n)},parentTileSlot:()=>{let I=Xt(t.appState,n);return I===void 0?void 0:nk(I,n)},heroGroupDepth:()=>zd(t.appState?.data,typeof n=="string"?n:"")}),i=[];for(let[I,S]of Object.entries(e)){let w=uw(S);!w||RP(w,"device")||LZ(w,a,l)||i.push(I)}if(i.length===0)return e;let d=BM.get(e);d||BM.set(e,d=new Map);let f=i.join("\0"),m=d.get(f);if(m)return m;let u=new Set(i),h={};for(let[I,S]of Object.entries(e))u.has(I)||(h[I]=S);return i.some(I=>DZ.has(I))&&(h=Eu(h)),d.set(f,h),h}var RM={spacingFields:ET,sidesPaddingFields:Rr,ownPaddingFields:xM,sectionShapeFields:_n,cardShapeFields:PT,cellWidthFields:TT,widthField:An,boxGutterFields:kM,sectionOwnWidthFields:EM,heightFields:Fn,anchorFields:Bn,customCssFields:_T,stickFields:cl,sectionThemeFields:En,animationTabFields:Pu,blockSizeFields:({tablet:e,...o}={})=>NZ({...o,shorten:!0,say:KP,lengthUnits:Tf,...e?{phone:MZ}:{}}),assignSectionGroups:Ou,dropEmptyHeadings:FM,rowsShownForNode:LM,SECTION_THEME_FOLLOW_LABEL:mT,BLOCK_THEME_FOLLOW_LABEL:xT,PartAnchors:uR};function Au(e,o,t){if(!e)return e;let r=!1,a={};for(let[n,s]of Object.entries(e)){let l=s;if(s&&typeof s=="object")if(s.type==="slot")if(s.allow){let i=s.allow.filter(o);i.length!==s.allow.length&&(l={...s,allow:i})}else{let i=new Set(s.disallow??[]),d=t.filter(f=>!i.has(f));d.length>0&&(l={...s,disallow:[...s.disallow??[],...d]})}else{let i=Au(s.arrayFields,o,t),d=Au(s.objectFields,o,t);(i!==s.arrayFields||d!==s.objectFields)&&(l={...s,...i?{arrayFields:i}:null,...d?{objectFields:d}:null})}l!==s&&(r=!0),a[n]=l}return r?a:e}function HZ(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=LN(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 WZ(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];$Z(e,o,a);for(let n of a){let s=n.components.filter(Td);if(s.length>0)throw new Error(`efficient-web-builder: the category "${n.key}" lists ${s.map(l=>`"${l}"`).join(", ")}, a block a card template declares. A card's block is added in its card only; take it out of the category.`)}for(let n of r){if(!Od(n))continue;let s=Pd(n).filter(l=>!r.has(l.type)).map(l=>`"${l.type}"`);if(s.length>0)throw new Error(`efficient-web-builder: the card template of "${n}" declares ${s.join(", ")}, which the editor does not register. Register it in the registry or in blocks.host.`)}}function Ey(e,o,t,r=""){let a=[];for(let[n,s]of Object.entries(t??{})){if(!s||typeof s!="object")continue;let l=`${r}${n}`;s.type==="slot"&&s.allow?.includes(e)&&a.push(`${o}.${l}`),a.push(...Ey(e,o,s.arrayFields,`${l}.`),...Ey(e,o,s.objectFields,`${l}.`))}return a}function $Z(e,o,t){let r=n=>{throw new Error(`efficient-web-builder: ${n} names "${pn}". Only a host's seed puts a host part in a card template; a merchant never adds one. Take it out.`)};for(let n of t)n.components.includes(pn)&&r(`the category "${n.key}"`);let a=[...Object.entries(e.components??{}),...o.map(([n,s])=>[n,s])];for(let[n,s]of a){let l=Ey(pn,n,s?.fields);l.length>0&&r(`the slot ${l.map(i=>`"${i}"`).join(", ")}, whose allow list`)}}function DM(e,o){let t=Object.entries(o?.host??{}),r=o?.categories??[],a=Dg(o);if(WZ(e,t,r),!a&&t.length===0&&r.length===0)return e;let n=e.components,s=t.map(([m])=>m).filter(m=>m in n);if(s.length>0)throw new Error(`efficient-web-builder: blocks.host registers ${s.map(m=>`"${m}"`).join(", ")}, which ${s.length===1?"is already a block":"are already blocks"} of the editor. Give a host's block a type of its own.`);let l=m=>a?a.offers(m):!0,i=Object.keys(n).filter(m=>!l(m)),d={};for(let[m,u]of Object.entries(n)){let h=a?Au(u?.fields,l,i):u?.fields;d[m]=h===u?.fields?u:{...u,fields:h}}if(t.length>0){let m=new Set(t.map(([I])=>I)),u=e.categories?.structure?.components??[],h={...dy(Object.keys(n),u,m),isHostBlock:I=>m.has(I),inspector:RM};for(let[I,S]of t){let w=HZ(I,S,h),T=Au(w.fields,l,i);d[I]=T===w.fields?w:{...w,fields:T}}}let f=[];for(let[m,u]of Object.entries(e.categories??{})){let h=u?.components??[],I=h.filter(l);I.length===h.length?f.push([m,u]):I.length>0&&f.push([m,{...u,components:I}])}for(let m of r){let u=m.components.filter(w=>w in d&&l(w));if(u.length===0)continue;let h=f.find(([w])=>w===m.key);if(h){let[,w]=h,T=new Set(w.components??[]);h[1]={...w,components:[...w.components??[],...u.filter(B=>!T.has(B))]};continue}let I=[m.key,{title:m.title,components:u}],S=m.before?f.findIndex(([w])=>w===m.before):-1;S===-1?f.push(I):f.splice(S,0,I)}return{...e,components:d,categories:Object.fromEntries(f)}}function NM(){let e=jZ();return zZ(()=>DM(UZ(e),un(e)),[e])}import{jsx as Fy,Fragment as fJ,jsxs as cJ}from"react/jsx-runtime";import{useContext as pJ,useEffect as uJ,useMemo as Nu,useRef as rH}from"react";import{EaselCanvas as mJ,repeatCopyAt as xJ,useEasel as hJ}from"efficient-easel/easel";import{jsx as _y}from"react/jsx-runtime";import{useEffect as VZ,useState as YZ}from"react";import{Banner as XZ}from"efficient-shell/ui";import{useSyncExternalStore as GZ}from"react";import{useScreenDocument as KZ}from"efficient-easel/screen/components/ScreenDocumentContext";var qZ=()=>()=>{},MM=()=>null;function Fu(e){return GZ(e?e.subscribe:qZ,e?e.state:MM,e?e.state:MM)}function Bu(){let{adapter:e}=KZ();return e?.pinnedChrome}var Lu={load:"The header and footer could not load. They are hidden for now and nothing in them is saved. Reload to try again.",lock:"{name} is editing the header and footer. Nothing you change in them here is saved.",conflict:"The header and footer were changed somewhere else. Nothing you change in them here is saved. Reload to get the latest.",save:"The header and footer did not save. They are sent again with your next change."},ZZ={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."},JZ=Lu.load,QZ=Lu.lock,eJ=Lu.conflict,oJ=Lu.save;function tJ(e){if(!e)return null;if(e.loadFailed)return c(JZ);if(e.lockHolder)return c(QZ,{name:e.lockHolder.name||c("Somebody else")});if(e.conflict)return c(eJ);if(e.saveFailed)return c(oJ);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(ZZ[o.problem],{section:t,name:r})}function rJ({report:e}){let o=tJ(Fu(e)),[t,r]=YZ(null);return VZ(()=>{o||r(null)},[o]),!o||t===o?null:_y("aside",{className:"sf-canvas-notice",children:_y(XZ,{tone:"warning",onDismiss:()=>r(o),children:o})})}function HM(){return _y(rJ,{report:Bu()})}import{jsx as Du}from"react/jsx-runtime";import{useState as oH}from"react";import{Banner as nJ,Button as sJ}from"efficient-shell/ui";import{UndoIcon as lJ}from"efficient-shell/icons/efficient";import{useScreenDocument as iJ}from"efficient-easel/screen/components/ScreenDocumentContext";import{useSyncExternalStore as zM}from"react";var _i=!1,Ss=null,Ay=new Set;function Fi(){for(let e of Ay)e()}function UM(e){return Ay.add(e),()=>{Ay.delete(e)}}function jM(){_i||(_i=!0,Fi())}function GM(){_i&&(_i=!1,Fi())}function WM(){return _i}function KM(){return zM(UM,WM,WM)}function $M(){return Ss}function Ru(){Ss&&(Ss=null,Fi())}function qM(){return zM(UM,$M,$M)}var Ai=class extends Error{constructor(){super("The editor's last changes could not be saved, so nothing was restored."),this.name="HeldEditsNotSaved"}};async function VM(e,o,t,{flushSave:r,reload:a}){if(!await r())throw new Ai;let n=await e.restore(o,t);return Af(n.liveState),a(),n}async function YM({access:e,version:o,page:t,...r}){let a=await VM(e,o.id,t?{page:t.id}:{},r);Ss={title:aJ(o,t??null),undo:a.undo},Fi()}async function XM({access:e,...o}){let t=Ss?.undo;t&&(await VM(e,t,{},o),Ss=null,Fi())}function ZM(e){return e.name?e.name:e.kind==="draft_before_restore"?c("Draft before restore"):c("Version {n}",{n:e.number})}function aJ(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 JM(e){let o=e.changes.filter(r=>r.kind==="page").length,t=[...o?[$t("{n} page","{n} pages",o)]:[],...e.changes.filter(r=>r.kind!=="page").map(r=>r.name)];if(!t.length)return"";try{return new Intl.ListFormat(rx(),{type:"conjunction"}).format(t)}catch{return t.join(", ")}}function QM(e){return e.change==="take_down"?c("{name} (taken down)",{name:e.name}):e.name}function eH(e,o=new Date){let t=new Date(e);if(Number.isNaN(t.getTime()))return"";let r=rx(),a=new Intl.DateTimeFormat(r,{hour:"numeric",minute:"2-digit"}).format(t);if(t.toDateString()===o.toDateString())return c("Today, {time}",{time:a});let n=new Intl.DateTimeFormat(r,{day:"numeric",month:"short",...t.getFullYear()===o.getFullYear()?{}:{year:"numeric"}}).format(t);return c("{day}, {time}",{day:n,time:a})}import{useSettledAction as dJ}from"efficient-easel/easel";function tH(){let e=qM(),{adapter:o,flushSave:t,reloadFromServer:r}=iJ(),a=o.siteVersions,[n,s]=oH(!1),[l,i]=oH(!1),d=async()=>{if(!(!a||n)){s(!0),i(!1);try{await XM({access:a,flushSave:t,reload:r})}catch{i(!0)}finally{s(!1)}}},f=dJ({onPress:()=>{d()},busy:n});return e?Du("aside",{className:"sf-canvas-notice",children:Du(nJ,{tone:l?"danger":"info",title:e.title,onDismiss:Ru,action:a&&e.undo?Du(sJ,{variant:"secondary",size:"sm",leftIcon:Du(lJ,{}),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 IJ,REPEAT_ATTRIBUTE as By,REPEAT_INDEX_ATTRIBUTE as Ly}from"efficient-easel/draw";import{usePreviewParts as gJ}from"efficient-easel/draw/client";import{ScreenDocumentContext as yJ}from"efficient-easel/screen/components/ScreenDocumentContext";function aH(e){let{mirrorHostStyles:o}=ul(),t=t0(),r=Ry(),a=dl(),n=pJ(yJ),s=nT(n?.docId??null),l=hJ(w=>w.appState.data),i=sT(s,l),d=JSON.stringify(i),f=Nu(()=>i,[d]),m=Nu(()=>({...e.metadata??t??{},...r,...f}),[e.metadata,t,r,f]);uJ(()=>(ay(a),()=>ay(null)),[a]);let u=rH(null),h=SJ(u),{onDocument:I}=e,S=w=>{u.current=w,I?.(w)};return cJ(fJ,{children:[Fy(tH,{}),Fy(HM,{}),Fy(mJ,{...e,onDocument:S,typing:h,metadata:m,height:"fill",mirrorStyles:o,frameWrapper:Xf})]})}function Ry(){let{sectionBackgroundWidth:e,themeFromDocument:o}=vo(),t=dl();return Nu(()=>jC(o?null:e,t),[e,t,o])}function SJ(e){let o=Wf(),t=gJ(),r=rH({parts:t});return r.current={parts:t},Nu(()=>{let a=(n,s)=>{let l=Uf(n,o),i,d=null,f=s??(l?null:sh(null,e.current,n)),m=!l&&f?xJ(f):null,u=m?IJ(n):null;if(m&&f&&u?.propKey){l=Gf({...m,nodeId:u.nodeId,key:u.propKey},o),i=u.propKey;let w=f.closest(`[${By}][${Ly}]`),T=`[${By}="${jf(w?.getAttribute(By)??"")}"][${Ly}="${jf(w?.getAttribute(Ly)??"")}"]`;d=()=>(f.ownerDocument??e.current)?.querySelector(T)??null}if(!l)return null;let h=f,I=()=>(h=sh(h,d?d():h?.ownerDocument??e.current,n),h),S=I();return S?{element:I,value:l.value,rules:l.rules,multiline:l.multiline,skip:l.skip,write:l.write,key:i,toolbar:{offered:l.offered,colors:l.offered.length>0?df(ff(S)):void 0,colorNameOf:lf}}:null};return{at:n=>{let s=n.closest(`[${Ue}]`),l=s?.getAttribute(Ue);return s&&l?a(l,s):null},atSelection:()=>{let n=r.current.parts.selectedPartId;return n?a(n,null):null},onCopyText:n=>C0(n,o),copyValue:n=>w0(n,o),onChange:n=>{if(!n.typing){lh(null);return}let s=n.element.closest(`[${Ue}]`)?.getAttribute(Ue)??null;lh(s),s&&r.current.parts.selectedPartId!==s&&r.current.parts.select(s)}}},[o,e])}var Mu=[{key:"about",label:"About",slugs:["about"]},{key:"contact",label:"Contact",slugs:["contact"]},{key:"faq",label:"FAQ",slugs:["faq"]},{key:"gallery",label:"Gallery",slugs:["gallery"]},{key:"store-locator",label:"Store locator",slugs:["store-locator"]},{key:"policies",label:"Policies",slugs:["warranty","shipping-returns","privacy-policy","terms-and-conditions"]}],bs="all",Hu="template";function nH(e){for(let o=0;o<Mu.length;o++){let t=Mu[o].slugs.indexOf(e);if(t>=0)return o*100+t}return Number.MAX_SAFE_INTEGER}function sH(e){return e.map((o,t)=>({s:o,i:t})).filter(({s:o})=>o.source==="library").sort((o,t)=>nH(o.s.slug)-nH(t.s.slug)||o.i-t.i).map(({s:o})=>o)}function Dy(e){return e.filter(o=>o.source==="template")}function lH(e){let o=new Set(sH(e).map(t=>t.slug));return Mu.filter(t=>t.slugs.some(r=>o.has(r)))}function iH(e,o){if(e===Hu)return Dy(o);let t=sH(o);if(e===bs)return t;let r=Mu.find(a=>a.key===e);return r?t.filter(a=>r.slugs.includes(a.slug)):[]}var dH=3;function fH(e,o){let t=Array.from({length:e},()=>[]);return o.forEach((r,a)=>t[a%e].push(r)),t}function mH({open:e,onClose:o,takenSlugs:t,onCreated:r}){let a=PJ(),{adapter:n,siteId:s,templateId:l}=vJ(),i=_o(a).pages,d=!l&&!!(i.starters&&i.createFromStarter),f=CJ(()=>s?{siteId:s}:{},[s]),m=NM(),u=Ry(),[h,I]=Ny(null),[S,w]=Ny(bs),[T,B]=Ny(null),P=kJ(null),g=wJ();bJ(()=>{if(!e)return;if(w(bs),!d){I([]);return}let O=!0;return I(null),i.starters(f).then(k=>O&&I(k),()=>{O&&(I([]),uH.error(c("Couldn\u2019t load the pages \u2014 please retry.")))}),()=>{O=!1}},[e,d,i,f]);let C=async(O,k)=>{if(!T){B(O);try{r(await k())}catch{uH.error(c("Couldn\u2019t add the page \u2014 please retry."))}finally{B(null)}}},E=()=>{if(!n.createPage)return;let O=c("New page");C("blank",()=>n.createPage({slug:pH(O,t),title:O,layout:{}}))},A=O=>{C(O.id,()=>i.createFromStarter(O.id,{title:O.title,slug:pH(O.slug,t),...f}))},N=h??[],b=lH(N),_=iH(S,N),y=fH(dH,_),v=cH("nav",{"aria-label":c("Pages"),className:"sf-add-page-nav",children:[Oo(My,{label:c("All pages"),active:S===bs,onClick:()=>w(bs)}),b.map(O=>Oo(My,{label:c(O.label),active:S===O.key,onClick:()=>w(O.key)},O.key)),Dy(N).length>0?Oo("div",{className:"sf-add-page-group",children:Oo(My,{label:c("From your template"),active:S===Hu,onClick:()=>w(Hu)})}):null]});return Oo(EJ,{open:e,onClose:o,size:"full",title:c("Add page"),initialFocus:P,children:Oo(BJ,{sidebarTop:Oo("div",{className:"sf-add-page-blank",children:Oo(OJ,{variant:"secondary",size:"md",leftIcon:Oo(TJ,{"aria-hidden":!0}),onClick:E,disabled:!n.createPage||T!==null,children:c("Blank page")})}),sidebar:v,children:cH("div",{ref:P,tabIndex:-1,role:"region","aria-labelledby":g,className:"sf-add-page",children:[Oo(LJ,{id:g,level:2,as:"h3",children:c("Pages for your site")}),Oo(FJ,{tone:"default",className:"sf-add-page-sub",children:c("Choose a page and change the text, images and more.")}),h===null?Oo(AJ,{label:c("Loading\u2026")}):_.length===0?Oo(_J,{title:c("No pages to start from"),description:c("Start with a blank page, then add sections.")}):Oo("div",{className:"sf-add-page-cards",children:y.map((O,k)=>Oo("div",{className:"sf-add-page-column",children:O.map(L=>Oo(ER,{starter:L,config:m,metadata:u,busy:T===L.id,onAdd:A},L.id))},k))})]})})})}import{jsx as RJ}from"react/jsx-runtime";import{createContext as DJ,useContext as xH,useEffect as NJ,useRef as hH}from"react";var Hy=DJ(null);function RRe({open:e,children:o}){let t=hH(!!e);return RJ(Hy.Provider,{value:t,children:o})}function IH(){let e=xH(Hy);return()=>e?.current?(e.current=!1,!0):!1}function gH(e){let o=xH(Hy),t=hH(e);t.current=e,NJ(()=>{o?.current&&(t.current.setView("pages"),t.current.reveal())},[o])}var kH="sf-editor-pages-collapsed-groups";function tQ(){let e=$y(),{siteId:o,templateId:t}=vH(),r=_o(e).pages;if(!(!r.duplicate||t))return(a,n)=>r.duplicate(a.id,{...n,...o?{siteId:o}:{}})}function PH({onNavigate:e,onClose:o,activeSurface:t,onPreviewSurface:r}){let a=$y().chrome?.pageRows,n=QJ(),{adapter:s,capabilities:l,ready:i,currentSlug:d}=vH(),f=Ln(),{rows:m,reload:u,setRows:h,getRows:I}=hl(),[S,w]=za(""),[T,B]=za(!1),[P,g]=za(null),[C,E]=za(!1),A=!!_o($y()).pages.createFromStarter,N=tQ(),[b,_]=za(null),[y,v]=za(()=>{if(typeof window>"u")return new Set;try{let $=window.localStorage.getItem(kH);return new Set($?JSON.parse($):[])}catch{return new Set}});yH(()=>{try{window.localStorage.setItem(kH,JSON.stringify([...y]))}catch{}},[y]);let O=$=>v(de=>{let he=new Set(de);return he.has($)?he.delete($):he.add($),he}),k=SH(()=>FP(m??[]),[m]),L=S.trim().toLowerCase(),M=$=>!L||$.toLowerCase().includes(L),K=$=>L?!0:!y.has($),W=SH(()=>new Set((m??[]).map($=>$.slug)),[m]),se=()=>{if(l.pageCreationInAdminForm&&!A){n.send("storefront-editor:new-page");return}g(null),E(!0)},le=IH();yH(()=>{le()&&se()},[]);let ee=l.hasSiteSettings&&!!s.createPage,Ie=async()=>{if(!(!i||T||!s.createPage)){B(!0),g(null);try{let $=await s.createPage(gT(c("New popup"),W));await u(),e($.slug)}catch{g(c("Couldn\u2019t add the popup \u2014 please retry."))}finally{B(!1)}}},ae=WJ(null),[me,ge]=za(null),Ge=()=>{if(!ee)return se();if(me)return ge(null);let $=ae.current?.getBoundingClientRect();$&&ge({top:$.bottom+6,right:Math.max(8,window.innerWidth-$.right)})},Ve=$=>{let de=m??[],he=s.deletePage;if(!i||T||!he||de.length<=1)return;let De=de.findIndex(ve=>ve.id===$.id),ie=de.filter(ve=>ve.id!==$.id),Ne=$.slug===d;Vf($.id,!0),h(ie),g(null),Ne&&ie[0]&&e(ie[0].slug);let wo=()=>{Vf($.id,!1);let ve=I()??[];if(ve.some(Ja=>Ja.id===$.id))return;let Rt=[...ve];Rt.splice(Math.max(0,Math.min(De,Rt.length)),0,$),h(Rt)};wH.undoable(c("Deleted \u201C{name}\u201D",{name:$.label}),{actionLabel:c("Undo"),commit:async ve=>{await he($.id,ve),Vf($.id,!1)},undo:()=>{wo(),Ne&&e($.slug)},onFail:()=>{wo(),wH.error(c("Couldn\u2019t delete the page \u2014 please retry."))}})},Eo=$=>n.send("storefront-editor:open-page",{slug:$}),Ye=$=>{if(!M($.label))return null;let de=!t&&$.slug===d,he=l.canDeletePagesInline&&(m??[]).length>1,De=vf($),ie=AP($),Ne=[...De?[{label:c("Dynamic"),tone:"info"}]:[],...ie?[{label:c("Lightbox"),tone:"success"}]:[],...$.draft?[{label:c("draft"),tone:"draft"}]:[]],wo=Ne.length>0?Ne:void 0,ve=!!N&&eQ($),Rt=ve||l.pageCreationInAdminForm||he?Wu(MJ,{children:[ve&&Pe($u,{kind:"plain",label:c("Duplicate \u201C{name}\u201D",{name:$.label}),disabled:T,onClick:()=>_($),children:Pe(YJ,{size:13})}),l.pageCreationInAdminForm&&Pe($u,{kind:"plain",label:c("Page settings for \u201C{name}\u201D",{name:$.label}),onClick:()=>Eo($.slug),children:Pe(ZJ,{size:13})}),he&&Pe($u,{kind:"delete",label:c("Delete \u201C{name}\u201D",{name:$.label}),disabled:T,onClick:()=>Ve($),children:Pe(Wy,{name:"trash",size:13,strokeWidth:1.7,rounded:!0})})]}):void 0;return Pe(CH,{icon:Pe(XJ,{size:14}),name:$.label,selected:de,onSelect:()=>e($.slug),badge:wo,actions:Rt,rowProps:{"data-page-slug":$.slug}},$.id)},Je=($,de,he)=>{let De=he.filter(Boolean);if(De.length===0)return null;let ie=K($);return Wu(HJ,{children:[Pe(qJ,{count:De.length,countLabel:$t("{n} page","{n} pages",De.length),expanded:ie,onToggle:()=>O($),children:de}),ie&&De]},$)},qo=(a?.rows??[]).filter($=>M($.label)).map($=>{let de=t===$.key;return Pe(CH,{icon:$.icon,name:$.label,selected:de,onSelect:()=>r($.key),badge:{label:c("Preview"),tone:"warning"},actions:Pe($u,{kind:"plain",label:c("Open the {name} in a new tab",{name:$.label}),onClick:()=>window.open($.href,"_blank","noopener,noreferrer"),children:Pe(Wy,{name:"external-link",size:13,strokeWidth:1.7,rounded:!0})}),rowProps:{"data-shop-surface":$.key}},$.key)}),Qe=l.hasSiteSettings&&!!a,mo=(()=>{if(m===null)return null;let $=[],de=!1;for(let he of k){Qe&&!de&&he.key.startsWith("system:")&&($.push(Je("shop",a.title,qo)),de=!0);let De=he.key===_P||he.label===EP?c(he.label):he.label;$.push(Je(he.key,De,he.rows.map(Ye)))}return Qe&&!de&&$.push(Je("shop",a.title,qo)),$})();return Wu("div",{className:"sf-pages",children:[Pe($J,{icon:Pe(JJ,{}),title:c("Pages"),context:f,actions:Pe(zJ,{buttonRef:ae,label:ee?c("Add"):c("New page"),hasPopup:ee?"menu":void 0,expanded:ee?me!==null:void 0,onClick:Ge,children:Pe(VJ,{size:15})})}),me&&Pe(GJ,{portal:!0,style:{top:me.top,right:me.right},onClose:()=>ge(null),children:Wu("div",{role:"menu","aria-label":c("Add"),children:[Pe(bH,{role:"menuitem",onClick:()=>{ge(null),se()},children:c("Page")}),Pe(bH,{role:"menuitem",disabled:T,onClick:()=>{ge(null),Ie()},children:c("Popup")})]})}),Pe("div",{className:"sf-pages-find",children:Pe(UJ,{type:"search",leftIcon:Pe(Wy,{name:"search",size:14,rounded:!0}),placeholder:c("Search all pages\u2026"),value:S,onChange:$=>w($.target.value),"aria-label":c("Search all pages")})}),P&&!C&&Pe("div",{className:"sf-note sf-note--error",role:"alert",children:P}),mo===null?Pe(jJ,{label:c("Loading\u2026")}):mo.some(Boolean)?Pe(KJ,{ariaLabel:c("Pages"),className:"sf-scroll",children:mo}):Pe("div",{className:"sf-note",children:S.trim()?c("No pages match your search"):c("No pages yet. Add one with + above.")}),N&&b&&Pe(oQ,{source:{title:b.label,slug:b.slug},taken:W,host:yf(),duplicate:$=>N(b,$),onClose:()=>_(null),onDuplicated:$=>{_(null),u(),e($.slug)}},b.id),C?Pe(mH,{open:!0,onClose:()=>E(!1),takenSlugs:W,onCreated:$=>{E(!1),u(),e($.slug)}}):null]})}import{jsx as EH}from"react/jsx-runtime";import{createContext as sQ,useCallback as lQ,useContext as iQ,useMemo as dQ,useState as fQ}from"react";import{CanvasChromeContext as cQ}from"efficient-easel/easel";import{useSelectHandler as pQ}from"efficient-easel/draw/client";import{parseHexColor as rQ,parseOption as aQ}from"efficient-shell/format";var zu=["chat-bubble-left-right","chat-bubble-oval-left-ellipsis","chat","megaphone","phone","sparkles"],ws=zu[0],nQ=["right","left"],Ua="right";function Uu(e){return zu.includes(e??"")?e:ws}function TH(e){return aQ(nQ,Ua,e)}function OH(e){return e&&rQ(e)===e.toLowerCase()?e.toLowerCase():""}var _H="chat",ju={enabled:!0,title:"",subtitle:"",greeting:"",launcherColor:"",launcherIcon:"",launcherPosition:Ua,launcherLabel:"",showOnPhones:!0};function uDe(e){return{enabled:e.enabled,title:e.title,subtitle:e.subtitle,greeting:e.greeting,launcherColor:OH(e.launcherColor),launcherIcon:e.launcherIcon?Uu(e.launcherIcon):"",launcherPosition:TH(e.launcherPosition),launcherLabel:e.launcherLabel??"",showOnPhones:e.showOnPhones!==!1}}var AH=sQ({chat:ju,setChat:()=>{},setSelected:()=>{},setSelectHandler:()=>{}});function mDe({children:e,chat:o=ju,onChatChange:t}){let[r,a]=fQ(!1),n=lQ(d=>t?.(d),[t]),{select:s,setSelectHandler:l}=pQ(),i=dQ(()=>({selected:()=>r?_H:null,select:d=>d===_H&&s()}),[r,s]);return EH(AH.Provider,{value:{chat:o,setChat:n,setSelected:a,setSelectHandler:l},children:EH(cQ.Provider,{value:i,children:e})})}var Gu=()=>iQ(AH);import{jsx as zy}from"react/jsx-runtime";import{DesktopIcon as uQ,PhoneIcon as mQ,TabletIcon as xQ}from"efficient-easel/icons";import{VIEW_TIERS as hQ,VIEW_TIER_LABEL as IQ}from"efficient-easel/draw";var gQ={desktop:zy(uQ,{}),tablet:zy(xQ,{}),mobile:zy(mQ,{})},FH=hQ.map(e=>({id:e,get label(){return c(IQ[e])},icon:gQ[e]}));import{PreviewDeviceContext as Ane}from"efficient-easel/draw/client";import{jsx as yQ}from"react/jsx-runtime";import{createContext as SQ,useCallback as BH,useContext as bQ,useMemo as wQ,useRef as CQ}from"react";var kQ=Object.fromEntries(Nf.map(e=>[e,{value:"",error:null}])),LH=SQ({links:zT,rows:kQ,canSave:!1,saveLink:async()=>({ok:!1,error:"There is no website to save to."}),openPanel:()=>{},setOpenHandler:()=>{}});function kDe({children:e,value:o}){let t=CQ(()=>{}),r=BH(()=>t.current(),[]),a=BH(s=>{t.current=s},[]),n=wQ(()=>({...o,openPanel:r,setOpenHandler:a}),[o,r,a]);return yQ(LH.Provider,{value:n,children:e})}var Bi=()=>bQ(LH);import{jsx as vQ}from"react/jsx-runtime";import{createContext as PQ,useContext as TQ,useMemo as OQ,useState as EQ}from"react";var RH=PQ(null);function ODe({children:e}){let[o,t]=EQ(null),r=OQ(()=>({surface:o,setSurface:t}),[o]);return vQ(RH.Provider,{value:r,children:e})}function DH(){return TQ(RH)??{surface:null,setSurface:()=>{}}}import{createPreviewSelectionContext as _Q}from"efficient-easel/draw/client";var{Provider:ADe,useSelection:Ku}=_Q("selectedHeroPart");import{jsx as we,jsxs as Zr,Fragment as Z2}from"react/jsx-runtime";import{useEasel as are,useRootFields as nre}from"efficient-easel/easel";import{EmptyState as sre}from"efficient-shell/ui";function NH({kind:e,pageName:o}){return{name:o?.trim()||c("This page"),kindLabel:vf({kind:e})?c("Template"):c("Page")}}import{headWords as o5,InspectorHead as lre,InspectorIconButton as J2}from"efficient-easel/chrome";import{DuplicateIcon as ire,TrashIcon as dre}from"efficient-easel/icons";import{panelFieldsOf as fre}from"efficient-easel/screen/lib/document/panel-fields";import{jsx as D,Fragment as ue,jsxs as xe}from"react/jsx-runtime";import{BlockBannerIcon as BQ,BlockBoxIcon as LQ,BlockButtonIcon as RQ,BlockDividerIcon as HH,BlockFooterIcon as WH,BlockHeadingIcon as DQ,BlockProductIcon as NQ,BlockSocialIcon as MQ,BlockTextIcon as HQ,CardPaymentIcon as WQ,ChatIcon as $Q,AccountIcon as zQ,GlobeIcon as UQ,GridIcon as jQ,ImageIcon as jy,MapIcon as GQ,MediaIcon as KQ,PageIcon as qQ}from"efficient-easel/icons";import{jsx as Uy,Fragment as AQ,jsxs as FQ}from"react/jsx-runtime";var MH=FQ(AQ,{children:[Uy("circle",{cx:"9",cy:"20",r:"1.3"}),Uy("circle",{cx:"18",cy:"20",r:"1.3"}),Uy("path",{d:"M2.5 3.5h3l2.3 11.3a1.6 1.6 0 0 0 1.6 1.3h8.1a1.6 1.6 0 0 0 1.6-1.2L21 7H6"})]});var VQ={header:xe(ue,{children:[D("rect",{x:"3",y:"5",width:"18",height:"14",rx:"2"}),D("path",{d:"M3 9.5h18"})]}),social:xe(ue,{children:[D("circle",{cx:"6",cy:"12",r:"2.5"}),D("circle",{cx:"18",cy:"6",r:"2.5"}),D("circle",{cx:"18",cy:"18",r:"2.5"}),D("path",{d:"M8.2 10.8l7.6-3.6M8.2 13.2l7.6 3.6"})]}),ticker:xe(ue,{children:[D("rect",{x:"3",y:"8.5",width:"18",height:"7",rx:"2"}),D("path",{d:"M6 12h3.5M11.5 12h2M15.5 12h2.5"})]}),FooterLogo:xe(ue,{children:[D("path",{d:"M4 15.5h6M4 18h4"}),D("path",{d:"M14 8.5l3 7 3-7"})]}),FooterMenu:D("path",{d:"M6 7h12M6 11h12M6 15h8M6 19h8"}),FooterGroup:xe(ue,{children:[D("rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",strokeDasharray:"3 2.5"}),D("path",{d:"M8 9h8M8 13h8M8 16h5"})]}),FooterText:D("path",{d:"M5 7h14M5 12h14M5 17h9"}),FooterEmailSignup:xe(ue,{children:[D("rect",{x:"3",y:"6",width:"18",height:"12",rx:"2"}),D("path",{d:"M3.5 7l8.5 6 8.5-6"})]}),SearchBlock:xe(ue,{children:[D("circle",{cx:"11",cy:"11",r:"6"}),D("path",{d:"M20 20l-4.2-4.2"})]}),CartBlock:MH,CountrySwitchBlock:xe(ue,{children:[D("circle",{cx:"12",cy:"12",r:"8.5"}),D("path",{d:"M3.5 12h17M12 3.5c2.6 2.4 3.6 5.2 3.6 8.5s-1 6.1-3.6 8.5M12 3.5c-2.6 2.4-3.6 5.2-3.6 8.5s1 6.1 3.6 8.5"})]}),ThemeSwitchBlock:xe(ue,{children:[D("circle",{cx:"12",cy:"12",r:"8.5"}),D("path",{d:"M12 3.5v17M12 5.5l6 6M12 10.5l5.2 5.2M12 15.5l2.8 2.8"})]}),LegalLineBlock:xe(ue,{children:[D("path",{d:"M3 9h18"}),D("path",{d:"M3 14h8M14 14h2M18 14h3"})]}),Hero:xe(ue,{children:[D("rect",{x:"3",y:"4",width:"18",height:"16",rx:"2"}),D("path",{d:"M7 13.5h7M7 16.5h10"})]}),HeroSlide:xe(ue,{children:[D("rect",{x:"3",y:"5",width:"18",height:"14",rx:"2"}),D("path",{d:"M7 15h6M16 9.5h.01M9.5 12l-2.5 3"})]}),HeroSingle:xe(ue,{children:[D("rect",{x:"3",y:"4",width:"18",height:"16",rx:"2"}),D("path",{d:"M10.5 8.5l4 2.5-4 2.5z"}),D("path",{d:"M7 17h7"})]}),Collections:xe(ue,{children:[D("rect",{x:"3",y:"5",width:"4.6",height:"14",rx:"1.3"}),D("rect",{x:"9.7",y:"5",width:"4.6",height:"14",rx:"1.3"}),D("rect",{x:"16.4",y:"5",width:"4.6",height:"14",rx:"1.3"})]}),CollectionCard:xe(ue,{children:[D("rect",{x:"6",y:"4",width:"12",height:"16",rx:"2"}),D("path",{d:"M9 15h6M9 17.5h4"})]}),AlloyWheelsListing:xe(ue,{children:[D("path",{d:"M3 5h5M3 9h5M3 13h5M3 17h5"}),D("rect",{x:"11.5",y:"5",width:"4.2",height:"5",rx:"1"}),D("rect",{x:"17.3",y:"5",width:"4.2",height:"5",rx:"1"}),D("rect",{x:"11.5",y:"12",width:"4.2",height:"5",rx:"1"}),D("rect",{x:"17.3",y:"12",width:"4.2",height:"5",rx:"1"})]}),CatalogFilterBar:xe(ue,{children:[D("path",{d:"M3 7h9M15.5 7H21"}),D("circle",{cx:"13.5",cy:"7",r:"1.7"}),D("path",{d:"M3 12h4M10.5 12H21"}),D("circle",{cx:"8.5",cy:"12",r:"1.7"}),D("path",{d:"M3 17h9M15.5 17H21"}),D("circle",{cx:"13.5",cy:"17",r:"1.7"})]}),ProductGrid:xe(ue,{children:[D("rect",{x:"3",y:"5",width:"4.8",height:"6",rx:"1"}),D("rect",{x:"9.6",y:"5",width:"4.8",height:"6",rx:"1"}),D("rect",{x:"16.2",y:"5",width:"4.8",height:"6",rx:"1"}),D("rect",{x:"3",y:"13",width:"4.8",height:"6",rx:"1"}),D("rect",{x:"9.6",y:"13",width:"4.8",height:"6",rx:"1"}),D("rect",{x:"16.2",y:"13",width:"4.8",height:"6",rx:"1"})]}),RelatedProducts:xe(ue,{children:[D("path",{d:"M3 5h10"}),D("rect",{x:"3",y:"9.5",width:"5",height:"9",rx:"1"}),D("rect",{x:"9.5",y:"9.5",width:"5",height:"9",rx:"1"}),D("rect",{x:"16",y:"9.5",width:"5",height:"9",rx:"1"})]}),Gallery:xe(ue,{children:[D("rect",{x:"3",y:"4",width:"11",height:"16",rx:"2"}),D("rect",{x:"15.5",y:"4",width:"5.5",height:"7.5",rx:"1.5"}),D("rect",{x:"15.5",y:"12.5",width:"5.5",height:"7.5",rx:"1.5"})]}),GalleryB:xe(ue,{children:[D("rect",{x:"3.5",y:"4",width:"7.5",height:"7.5",rx:"1.5"}),D("rect",{x:"13",y:"4",width:"7.5",height:"7.5",rx:"1.5"}),D("rect",{x:"3.5",y:"12.5",width:"7.5",height:"7.5",rx:"1.5"}),D("rect",{x:"13",y:"12.5",width:"7.5",height:"7.5",rx:"1.5"})]}),GalleryItem:xe(ue,{children:[D("rect",{x:"4",y:"5",width:"16",height:"14",rx:"2"}),D("circle",{cx:"9",cy:"10",r:"1.6"}),D("path",{d:"M20 15.5l-4.5-4L7 19"})]}),Events:xe(ue,{children:[D("rect",{x:"4",y:"5",width:"16",height:"15",rx:"2"}),D("path",{d:"M4 9.5h16M8.5 3v4M15.5 3v4M8 14h2M14 14h2"})]}),PostCard:xe(ue,{children:[D("rect",{x:"4",y:"3.5",width:"16",height:"17",rx:"2"}),D("rect",{x:"6.5",y:"6",width:"11",height:"6",rx:"1"}),D("path",{d:"M6.5 14.5h11M6.5 17.5h7"})]}),Manifesto:xe(ue,{children:[D("path",{d:"M7 8h3.2v4c0 1.6-1 2.6-3 3.2"}),D("path",{d:"M14 8h3.2v4c0 1.6-1 2.6-3 3.2"})]}),Stats:xe(ue,{children:[D("path",{d:"M3.5 20h17"}),D("path",{d:"M6 20v-7M11 20V7M16 20v-5M20.5 20v-9"})]}),Logos:xe(ue,{children:[D("circle",{cx:"6",cy:"12",r:"2.6"}),D("rect",{x:"10",y:"9.4",width:"5.2",height:"5.2",rx:"1.2"}),D("path",{d:"M19 9.2l2.4 5h-4.8z"})]}),Ticker:xe(ue,{children:[D("rect",{x:"3",y:"8.5",width:"18",height:"7",rx:"2"}),D("path",{d:"M6 12h3.5M11.5 12h2M15.5 12h2.5"})]}),SectionHeader:xe(ue,{children:[D("rect",{x:"3.5",y:"6",width:"5",height:"5",rx:"1.2"}),D("path",{d:"M11 8.5h9M3.5 15.5h17"})]}),IntroBleed:xe(ue,{children:[D("rect",{x:"3",y:"4",width:"18",height:"16",rx:"2"}),D("path",{d:"M3 13.5h18M7 16.8h6"})]}),Split:xe(ue,{children:[D("rect",{x:"3",y:"5",width:"8",height:"14",rx:"1.5"}),D("path",{d:"M14 8.5h6M14 12h6M14 15.5h4"})]}),Eyebrow:xe(ue,{children:[D("path",{d:"M4 8.5h4.5M11 8.5h9"}),D("path",{d:"M4 14.5h16"})]}),HeroGroup:xe(ue,{children:[D("rect",{x:"3.5",y:"4.5",width:"17",height:"15",rx:"2"}),D("path",{d:"M7 9h8M7 12.5h10M7 16h6"})]}),Form:xe(ue,{children:[D("rect",{x:"3",y:"4",width:"18",height:"16",rx:"2"}),D("path",{d:"M6.5 9h11M6.5 12.5h11"}),D("rect",{x:"6.5",y:"15",width:"6.5",height:"2.6",rx:"1.3"})]}),LogoBlock:D(ue,{children:D("path",{d:"M12 3.5l7.5 3.2v5.1c0 4.2-3.2 7.1-7.5 8.7-4.3-1.6-7.5-4.5-7.5-8.7V6.7z"})}),Spacer:xe(ue,{children:[D("path",{d:"M12 4v6M9.5 6.5L12 4l2.5 2.5M12 20v-6M9.5 17.5L12 20l2.5-2.5"}),D("path",{d:"M5 13h14",strokeDasharray:"2 2.5"})]}),ContactRouting:xe(ue,{children:[D("rect",{x:"3",y:"4",width:"5",height:"5",rx:"1"}),D("rect",{x:"9.5",y:"4",width:"5",height:"5",rx:"1"}),D("rect",{x:"16",y:"4",width:"5",height:"5",rx:"1"}),D("path",{d:"M4 13.5h11M4 17.5h7"}),D("path",{d:"M17 15l3 2-3 2"})]}),Contents:xe(ue,{children:[D("path",{d:"M4 7h2M4 12h2M4 17h2"}),D("path",{d:"M9 7h11M9 12h9M9 17h10"})]}),ListSearch:xe(ue,{children:[D("path",{d:"M4 6h9M4 11h5M4 16h5"}),D("circle",{cx:"15",cy:"15",r:"4"}),D("path",{d:"M20.5 20.5l-2.7-2.7"})]}),CustomHTML:D("path",{d:"M9 8l-4 4 4 4M15 8l4 4-4 4"})},YQ=D("rect",{x:"4",y:"4",width:"16",height:"16",rx:"2.5"}),XQ={footer:WH,Footer:WH,Divider:HH,FooterDivider:HH,Banner:BQ,Flex:LQ,FooterSocial:MQ,FooterPayment:WQ,page:qQ,website:UQ,AccountBlock:zQ,chat:$Q,Heading:DQ,Text:HQ,ImageBlock:jy,ButtonBlock:RQ,LocationMap:GQ,Grid:jQ,ProductRef:NQ,heroMedia:KQ,heroImage:jy,heroImage2:jy},ZQ={MenuBlock:"FooterMenu",EmailFormBlock:"FooterEmailSignup",SocialLogosBlock:"FooterSocial",PaymentLogosBlock:"FooterPayment",SiteHeader:"header",SiteFooter:"footer"};function ja({type:e,size:o=16,className:t}){let r=ZQ[e]??e,a=XQ[r];return a?D(a,{size:o,className:t}):D("svg",{width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.7,strokeLinecap:"round",strokeLinejoin:"round",className:t,"aria-hidden":"true",children:VQ[r]??YQ})}import{PanelHideButton as Q2}from"efficient-easel/screen/components/SidePanelHead";import{useEaselSession as cre}from"efficient-easel/screen/lib/session-context";import{jsx as be,jsxs as Li,Fragment as JQ}from"react/jsx-runtime";import{useEffect as QQ,useId as $H,useState as eee}from"react";import{IconPicker as oee}from"efficient-shell/ui";import{SettingsDefaultReset as tee,SettingsField as Ri,SettingsSegmented as ree,SettingsSwitch as zH}from"efficient-easel/panel";import{ButtonIcon as aee,ButtonIconIcon as nee,EyeIcon as see,PhoneIcon as lee,PlacementIcon as iee,TypeIcon as dee}from"efficient-easel/icons";var fee="Chat with us",cee="We usually reply within a few minutes",pee="Hi! Ask us anything \u2014 about a wheel, an order, or fitment. Leave your details and we\u2019ll reply.";function qu({label:e,value:o,placeholder:t,onCommit:r,multiline:a=!1,hint:n}){let[s,l]=eee(o);QQ(()=>l(o),[o]);let i=()=>{s!==o&&r(s)};return be(Ri,{label:e,icon:be(dee,{}),changed:o!=="",action:be(Di,{label:e,changed:o!=="",onReset:()=>r("")}),hint:n,children:a?be("textarea",{value:s,placeholder:t,rows:3,onChange:d=>l(d.target.value),onBlur:i,"aria-label":e}):be("input",{type:"text",value:s,placeholder:t,onChange:d=>l(d.target.value),onBlur:i,onKeyDown:d=>{d.key==="Enter"&&d.currentTarget.blur()},"aria-label":e,autoComplete:"off"})})}function Di({label:e,changed:o,onReset:t}){return be(tee,{words:sC()?.panel,label:e,changed:o,onReset:t})}function uee({label:e,icon:o,checked:t,fallback:r,onChange:a,hint:n}){let s=$H();return be(Ri,{label:e,labelId:s,icon:o,changed:t!==r,action:Li("span",{className:"inline-flex items-center gap-2",children:[be(zH,{checked:t,onChange:a,ariaLabelledBy:s}),be(Di,{label:e,changed:t!==r,onReset:()=>a(r)})]}),hint:n})}var mee=zu.map(e=>({value:e,icon:iT(e)}));function xee(){let{theme:e}=vo(),o=sr(e).themes[0];return Ww(o)??o?.accent??""}function UH(){let{chat:e,setChat:o}=Gu(),t=$H(),r=xee(),a=e.launcherIcon?Uu(e.launcherIcon):ws;return Li(JQ,{children:[be(Ri,{label:c("Show the chat bubble"),labelId:t,icon:be(see,{}),changed:!e.enabled,action:Li("span",{className:"inline-flex items-center gap-2",children:[be(zH,{checked:e.enabled,onChange:n=>o({enabled:n}),ariaLabelledBy:t}),be(Di,{label:c("Show the chat bubble"),changed:!e.enabled,onReset:()=>o({enabled:!0})})]}),hint:e.enabled?c("The floating chat bubble shows in the corner of every page."):c("The chat bubble is hidden across the whole site.")}),Li(Mx,{title:c("Look"),children:[be(fT,{label:c("Button color"),icon:be(aee,{}),changed:e.launcherColor!=="",value:e.launcherColor,inherited:r,caption:e.launcherColor?void 0:c("Site button color"),onChange:n=>o({launcherColor:n}),onReset:()=>o({launcherColor:""})}),be(Ri,{label:c("Icon"),icon:be(nee,{}),value:be(YP,{value:a}),changed:a!==ws,action:be(Di,{label:c("Icon"),changed:a!==ws,onReset:()=>o({launcherIcon:""})}),children:be(oee,{label:c("Icon"),value:a,options:mee,onChange:n=>o({launcherIcon:n===ws?"":n})})}),be(Ri,{label:c("Position"),icon:be(iee,{}),changed:e.launcherPosition!==Ua,action:be(Di,{label:c("Position"),changed:e.launcherPosition!==Ua,onReset:()=>o({launcherPosition:Ua})}),children:be(ree,{options:[{label:c("Right"),id:"right"},{label:c("Left"),id:"left"}],value:e.launcherPosition,ariaLabel:c("Position"),onChange:n=>o({launcherPosition:n})})}),be(qu,{label:c("Label"),value:e.launcherLabel,placeholder:c("Icon only"),onCommit:n=>o({launcherLabel:n}),hint:c("Shows when a visitor points at the button")}),be(uee,{label:c("Show on phones"),icon:be(lee,{}),checked:e.showOnPhones,fallback:ju.showOnPhones,onChange:n=>o({showOnPhones:n})})]}),Li(Mx,{title:c("Wording"),children:[be(qu,{label:c("Title"),value:e.title,placeholder:fee,onCommit:n=>o({title:n})}),be(qu,{label:c("Subtitle"),value:e.subtitle,placeholder:cee,onCommit:n=>o({subtitle:n})}),be(qu,{label:c("Greeting message"),value:e.greeting,placeholder:pee,onCommit:n=>o({greeting:n}),multiline:!0}),be("p",{className:"es-field-hint",children:c("Leave a field blank to use the built-in wording.")})]})]})}import{jsx as Ga,Fragment as pS,jsxs as VH}from"react/jsx-runtime";import{useEffect as Gee,useId as KH,useState as qH}from"react";import{SettingsField as Kee}from"efficient-easel/panel";import{jsx as Dee}from"react/jsx-runtime";import{forwardRef as hee,createElement as Gy}from"react";var jH={outline:{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"},filled:{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",stroke:"none"}};var ne=(e,o,t,r)=>{let a=hee(({color:n="currentColor",size:s=24,stroke:l=2,title:i,className:d,children:f,...m},u)=>Gy("svg",{ref:u,...jH[e],width:s,height:s,className:["tabler-icon",`tabler-icon-${o}`,d].filter(Boolean).join(" "),...e==="filled"?{fill:n}:{strokeWidth:l,stroke:n},...m},[i&&Gy("title",{key:"svg-title"},i),...r.map(([h,I])=>Gy(h,I)),...Array.isArray(f)?f:[f]]));return a.displayName=`${t}`,a};var Iee=[["path",{d:"M7 10v4h3v7h4v-7h3l1 -4h-4v-2a1 1 0 0 1 1 -1h3v-4h-3a5 5 0 0 0 -5 5v2h-3",key:"svg-0"}]],Ky=ne("outline","brand-facebook","BrandFacebook",Iee);var gee=[["path",{d:"M3 7a4 4 0 0 1 4 -4h10a4 4 0 0 1 4 4v10a4 4 0 0 1 -4 4h-10a4 4 0 0 1 -4 -4l0 -10",key:"svg-0"}],["path",{d:"M8.5 12a3.5 3.5 0 1 0 7 0a3.5 3.5 0 0 0 -7 0",key:"svg-1"}],["path",{d:"M17 7v.01",key:"svg-2"}]],qy=ne("outline","brand-instagram","BrandInstagram",gee);var yee=[["path",{d:"M21 10.663c0 -4.224 -4.041 -7.663 -9 -7.663s-9 3.439 -9 7.663c0 3.783 3.201 6.958 7.527 7.56c1.053 .239 .932 .644 .696 2.133c-.039 .238 -.184 .932 .777 .512c.96 -.42 5.18 -3.201 7.073 -5.48c1.304 -1.504 1.927 -3.029 1.927 -4.715v-.01",key:"svg-0"}]],Vy=ne("outline","brand-line","BrandLine",yee);var See=[["path",{d:"M8 11v5",key:"svg-0"}],["path",{d:"M8 8v.01",key:"svg-1"}],["path",{d:"M12 16v-5",key:"svg-2"}],["path",{d:"M16 16v-3a2 2 0 1 0 -4 0",key:"svg-3"}],["path",{d:"M3 7a4 4 0 0 1 4 -4h10a4 4 0 0 1 4 4v10a4 4 0 0 1 -4 4h-10a4 4 0 0 1 -4 -4l0 -10",key:"svg-4"}]],Yy=ne("outline","brand-linkedin","BrandLinkedin",See);var bee=[["path",{d:"M8 20l4 -9",key:"svg-0"}],["path",{d:"M10.7 14c.437 1.263 1.43 2 2.55 2c2.071 0 3.75 -1.554 3.75 -4a5 5 0 1 0 -9.7 1.7",key:"svg-1"}],["path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 1 0 -18 0",key:"svg-2"}]],Xy=ne("outline","brand-pinterest","BrandPinterest",bee);var wee=[["path",{d:"M15 10l-4 4l6 6l4 -16l-18 7l4 2l2 6l3 -4",key:"svg-0"}]],Zy=ne("outline","brand-telegram","BrandTelegram",wee);var Cee=[["path",{d:"M21 7.917v4.034a9.948 9.948 0 0 1 -5 -1.951v4.5a6.5 6.5 0 1 1 -8 -6.326v4.326a2.5 2.5 0 1 0 4 2v-11.5h4.083a6.005 6.005 0 0 0 4.917 4.917",key:"svg-0"}]],Jy=ne("outline","brand-tiktok","BrandTiktok",Cee);var kee=[["path",{d:"M16.5 10c3.038 0 5.5 2.015 5.5 4.5c0 1.397 -.778 2.645 -2 3.47l0 2.03l-1.964 -1.178a6.649 6.649 0 0 1 -1.536 .178c-3.038 0 -5.5 -2.015 -5.5 -4.5s2.462 -4.5 5.5 -4.5",key:"svg-0"}],["path",{d:"M11.197 15.698c-.69 .196 -1.43 .302 -2.197 .302a8.008 8.008 0 0 1 -2.612 -.432l-2.388 1.432v-2.801c-1.237 -1.082 -2 -2.564 -2 -4.199c0 -3.314 3.134 -6 7 -6c3.782 0 6.863 2.57 7 5.785l0 .233",key:"svg-1"}],["path",{d:"M10 8h.01",key:"svg-2"}],["path",{d:"M7 8h.01",key:"svg-3"}],["path",{d:"M15 14h.01",key:"svg-4"}],["path",{d:"M18 14h.01",key:"svg-5"}]],Qy=ne("outline","brand-wechat","BrandWechat",kee);var vee=[["path",{d:"M3 21l1.65 -3.8a9 9 0 1 1 3.4 2.9l-5.05 .9",key:"svg-0"}],["path",{d:"M9 10a.5 .5 0 0 0 1 0v-1a.5 .5 0 0 0 -1 0v1a5 5 0 0 0 5 5h1a.5 .5 0 0 0 0 -1h-1a.5 .5 0 0 0 0 1",key:"svg-1"}]],eS=ne("outline","brand-whatsapp","BrandWhatsapp",vee);var Pee=[["path",{d:"M4 4l11.733 16h4.267l-11.733 -16l-4.267 0",key:"svg-0"}],["path",{d:"M4 20l6.768 -6.768m2.46 -2.46l6.772 -6.772",key:"svg-1"}]],oS=ne("outline","brand-x","BrandX",Pee);var Tee=[["path",{d:"M2 8a4 4 0 0 1 4 -4h12a4 4 0 0 1 4 4v8a4 4 0 0 1 -4 4h-12a4 4 0 0 1 -4 -4v-8",key:"svg-0"}],["path",{d:"M10 9l5 3l-5 3l0 -6",key:"svg-1"}]],tS=ne("outline","brand-youtube","BrandYoutube",Tee);var Oee=[["path",{d:"M18 2a1 1 0 0 1 .993 .883l.007 .117v4a1 1 0 0 1 -.883 .993l-.117 .007h-3v1h3a1 1 0 0 1 .991 1.131l-.02 .112l-1 4a1 1 0 0 1 -.858 .75l-.113 .007h-2v6a1 1 0 0 1 -.883 .993l-.117 .007h-4a1 1 0 0 1 -.993 -.883l-.007 -.117v-6h-2a1 1 0 0 1 -.993 -.883l-.007 -.117v-4a1 1 0 0 1 .883 -.993l.117 -.007h2v-1a6 6 0 0 1 5.775 -5.996l.225 -.004h3z",key:"svg-0"}]],rS=ne("filled","brand-facebook-filled","BrandFacebookFilled",Oee);var Eee=[["path",{d:"M16 3a5 5 0 0 1 5 5v8a5 5 0 0 1 -5 5h-8a5 5 0 0 1 -5 -5v-8a5 5 0 0 1 5 -5zm-4 5a4 4 0 0 0 -3.995 3.8l-.005 .2a4 4 0 1 0 4 -4m4.5 -1.5a1 1 0 0 0 -.993 .883l-.007 .127a1 1 0 0 0 1.993 .117l.007 -.127a1 1 0 0 0 -1 -1",key:"svg-0"}]],aS=ne("filled","brand-instagram-filled","BrandInstagramFilled",Eee);var _ee=[["path",{d:"M17 2a5 5 0 0 1 5 5v10a5 5 0 0 1 -5 5h-10a5 5 0 0 1 -5 -5v-10a5 5 0 0 1 5 -5zm-9 8a1 1 0 0 0 -1 1v5a1 1 0 0 0 2 0v-5a1 1 0 0 0 -1 -1m6 0a3 3 0 0 0 -1.168 .236l-.125 .057a1 1 0 0 0 -1.707 .707v5a1 1 0 0 0 2 0v-3a1 1 0 0 1 2 0v3a1 1 0 0 0 2 0v-3a3 3 0 0 0 -3 -3m-6 -3a1 1 0 0 0 -.993 .883l-.007 .127a1 1 0 0 0 1.993 .117l.007 -.127a1 1 0 0 0 -1 -1",key:"svg-0"}]],nS=ne("filled","brand-linkedin-filled","BrandLinkedinFilled",_ee);var Aee=[["path",{d:"M17 3.34a10 10 0 0 1 -8.512 18.023l2.364 -5.315a3.5 3.5 0 0 0 2.398 .952c2.708 0 4.75 -2.089 4.75 -5a6 6 0 1 0 -11.64 2.041a1 1 0 1 0 1.88 -.682a4 4 0 1 1 7.76 -1.36c0 1.818 -1.156 3.001 -2.75 3.001c-.609 0 -1.153 -.361 -1.478 -1.022l1.142 -2.572a1 1 0 0 0 -1.828 -.812l-4.392 9.882a10 10 0 0 1 -4.694 -8.476l.005 -.324a10 10 0 0 1 14.995 -8.336",key:"svg-0"}]],sS=ne("filled","brand-pinterest-filled","BrandPinterestFilled",Aee);var Fee=[["path",{d:"M16.083 2h-4.083a1 1 0 0 0 -1 1v11.5a1.5 1.5 0 1 1 -2.519 -1.1l.12 -.1a1 1 0 0 0 .399 -.8v-4.326a1 1 0 0 0 -1.23 -.974a7.5 7.5 0 0 0 1.73 14.8l.243 -.005a7.5 7.5 0 0 0 7.257 -7.495v-2.7l.311 .153c1.122 .53 2.333 .868 3.59 .993a1 1 0 0 0 1.099 -.996v-4.033a1 1 0 0 0 -.834 -.986a5.005 5.005 0 0 1 -4.097 -4.096a1 1 0 0 0 -.986 -.835z",key:"svg-0"}]],lS=ne("filled","brand-tiktok-filled","BrandTiktokFilled",Fee);var Bee=[["path",{d:"M18.497 4.409a10 10 0 0 1 -10.36 16.828l-.223 -.098l-4.759 .849l-.11 .011a1 1 0 0 1 -.11 0l-.102 -.013l-.108 -.024l-.105 -.037l-.099 -.047l-.093 -.058l-.014 -.011l-.012 -.007l-.086 -.073l-.077 -.08l-.067 -.088l-.056 -.094l-.034 -.07l-.04 -.108l-.028 -.128l-.012 -.102a1 1 0 0 1 0 -.125l.012 -.1l.024 -.11l.045 -.122l1.433 -3.304l-.009 -.014a10 10 0 0 1 1.549 -12.454l.215 -.203a10 10 0 0 1 13.226 -.217m-8.997 3.09a1.5 1.5 0 0 0 -1.5 1.5v1a6 6 0 0 0 6 6h1a1.5 1.5 0 0 0 0 -3h-1l-.144 .007a1.5 1.5 0 0 0 -1.128 .697l-.042 .074l-.022 -.007a4.01 4.01 0 0 1 -2.435 -2.435l-.008 -.023l.075 -.041a1.5 1.5 0 0 0 .704 -1.272v-1a1.5 1.5 0 0 0 -1.5 -1.5",key:"svg-0"}]],iS=ne("filled","brand-whatsapp-filled","BrandWhatsappFilled",Bee);var Lee=[["path",{d:"M8.267 3a1 1 0 0 1 .73 .317l.076 .092l4.274 5.828l5.946 -5.944a1 1 0 0 1 1.497 1.32l-.083 .094l-6.163 6.162l6.262 8.54a1 1 0 0 1 -.697 1.585l-.109 .006h-4.267a1 1 0 0 1 -.73 -.317l-.076 -.092l-4.276 -5.829l-5.944 5.945a1 1 0 0 1 -1.497 -1.32l.083 -.094l6.161 -6.163l-6.26 -8.539a1 1 0 0 1 .697 -1.585l.109 -.006h4.267z",key:"svg-0"}]],dS=ne("filled","brand-x-filled","BrandXFilled",Lee);var Ree=[["path",{d:"M18 3a5 5 0 0 1 5 5v8a5 5 0 0 1 -5 5h-12a5 5 0 0 1 -5 -5v-8a5 5 0 0 1 5 -5zm-9 6v6a1 1 0 0 0 1.514 .857l5 -3a1 1 0 0 0 0 -1.714l-5 -3a1 1 0 0 0 -1.514 .857z",key:"svg-0"}]],fS=ne("filled","brand-youtube-filled","BrandYoutubeFilled",Ree);var mMe="outline",Vu={fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},Nee={},cS={fillRule:"evenodd"},Mee=[["path",{...Vu,d:"M21 4L3 11L7 13L9 19L12 15L17 20z"}],["path",{...cS,d:"M21 4L3 11L7 13L9 19L12 15L17 20zM15.212 8.939 10.576 13.576 11.424 14.424 16.061 9.788z"}]],Hee=[["path",{...Vu,d:["M21 10.663c0 -4.224 -4.041 -7.663 -9 -7.663s-9 3.439 -9 7.663","c0 3.783 3.201 6.958 7.527 7.56c1.053 .239 .932 .644 .696 2.133","c-.039 .238 -.184 .932 .777 .512c.96 -.42 5.18 -3.201 7.073 -5.48","c1.304 -1.504 1.927 -3.029 1.927 -4.715v-.01z"].join("")}],["path",{...Nee,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("")}]],Wee=[["path",{...Vu,d:["M16.5 10c3.038 0 5.5 2.015 5.5 4.5c0 1.397 -.778 2.645 -2 3.47l0 2.03l-1.964 -1.178","a6.649 6.649 0 0 1 -1.536 .178c-3.038 0 -5.5 -2.015 -5.5 -4.5s2.462 -4.5 5.5 -4.5z"].join("")}],["path",{...Vu,d:["M8.319 15.972L7.84 15.918L7.349 15.832L6.865 15.715L6.388 15.568L4 17L4 14.199","L3.559 13.775L3.197 13.356L2.877 12.91L2.603 12.439L2.376 11.946L2.201 11.433","L2.079 10.902L2.016 10.405L2.001 9.897L2.036 9.386L2.12 8.889L2.25 8.405L2.425 7.937","L2.642 7.486L2.9 7.055L3.195 6.645L3.459 6.333L3.744 6.037L4.05 5.757L4.377 5.495","L4.723 5.25L5.086 5.025L5.467 4.819L5.864 4.634L6.275 4.471L6.701 4.331L7.139 4.214","L7.589 4.122L8.05 4.055L8.521 4.014L9.352 4.007L9.815 4.04L10.269 4.098L10.713 4.181","L11.146 4.287L11.567 4.416L11.975 4.567L12.369 4.739L12.748 4.932L13.112 5.143","L13.459 5.374L13.788 5.622L14.172 5.956L14.458 6.241L14.722 6.542L14.965 6.856","L15.217 7.237A8.35 7.35 0 0 0 8.319 15.972z"].join("")}],["path",{...cS,d:["M8.319 15.972L7.84 15.918L7.349 15.832L6.865 15.715L6.388 15.568L4 17L4 14.199","L3.559 13.775L3.197 13.356L2.877 12.91L2.603 12.439L2.376 11.946L2.201 11.433","L2.079 10.902L2.016 10.405L2.001 9.897L2.036 9.386L2.12 8.889L2.25 8.405L2.425 7.937","L2.642 7.486L2.9 7.055L3.195 6.645L3.459 6.333L3.744 6.037L4.05 5.757L4.377 5.495","L4.723 5.25L5.086 5.025L5.467 4.819L5.864 4.634L6.275 4.471L6.701 4.331L7.139 4.214","L7.589 4.122L8.05 4.055L8.521 4.014L9.352 4.007L9.815 4.04L10.269 4.098L10.713 4.181","L11.146 4.287L11.567 4.416L11.975 4.567L12.369 4.739L12.748 4.932L13.112 5.143","L13.459 5.374L13.788 5.622L14.172 5.956L14.458 6.241L14.722 6.542L14.965 6.856","L15.217 7.237A8.35 7.35 0 0 0 8.319 15.972zM5.25 7.9a0.85 0.85 0 1 0 1.7 0","a0.85 0.85 0 1 0 -1.7 0zM8.25 7.9a0.85 0.85 0 1 0 1.7 0a0.85 0.85 0 1 0 -1.7 0z"].join("")}],["path",{...cS,d:["M16.5 10c3.038 0 5.5 2.015 5.5 4.5c0 1.397 -.778 2.645 -2 3.47l0 2.03l-1.964 -1.178","a6.649 6.649 0 0 1 -1.536 .178c-3.038 0 -5.5 -2.015 -5.5 -4.5s2.462 -4.5 5.5 -4.5z","M14.15 14a0.85 0.85 0 1 0 1.7 0a0.85 0.85 0 1 0 -1.7 0zM17.15 14","a0.85 0.85 0 1 0 1.7 0a0.85 0.85 0 1 0 -1.7 0z"].join("")}]],$ee=ne("filled","brand-telegram-filled","BrandTelegramFilled",Mee),zee=ne("filled","brand-line-filled","BrandLineFilled",Hee),Uee=ne("filled","brand-wechat-filled","BrandWechatFilled",Wee),jee={instagram:{outline:qy,solid:aS},facebook:{outline:Ky,solid:rS},tiktok:{outline:Jy,solid:lS},youtube:{outline:tS,solid:fS},x:{outline:oS,solid:dS},linkedin:{outline:Yy,solid:nS},pinterest:{outline:Xy,solid:sS},whatsapp:{outline:eS,solid:iS},telegram:{outline:Zy,solid:$ee},line:{outline:Vy,solid:zee},wechat:{outline:Qy,solid:Uee}};function GH({platform:e,iconStyle:o,size:t}){let r=jee[e][o];return Dee(r,{size:t,stroke:1.75,"aria-hidden":"true",focusable:"false"})}var qee={instagram:"instagram.com/yourshop",facebook:"facebook.com/yourshop",tiktok:"tiktok.com/@yourshop",youtube:"youtube.com/@yourshop",x:"x.com/yourshop",linkedin:"linkedin.com/company/yourshop",pinterest:"pinterest.com/yourshop",whatsapp:"wa.me/61400000000",telegram:"t.me/yourshop",line:"line.me/ti/p/~yourshop",wechat:"u.wechat.com/your-qr-code-link"};function Vee({platform:e}){let{rows:o,saveLink:t}=Bi(),{value:r,error:a}=o[e],[n,s]=qH(r),[l,i]=qH(!1),d=KH(),f=KH();Gee(()=>s(r),[r]);let m=async()=>{if(n.trim()===r){n!==r&&s(r);return}i(!0),await t(e,n),i(!1)},u=$T[e];return VH(pS,{children:[Ga(Kee,{label:c(u),htmlFor:d,icon:Ga(GH,{platform:e,iconStyle:"outline",size:18}),children:Ga("input",{id:d,type:"text",inputMode:"url",value:n,placeholder:qee[e],onChange:h=>s(h.target.value),onBlur:()=>{m()},onKeyDown:h=>{h.key==="Enter"&&h.currentTarget.blur(),h.key==="Escape"&&(s(r),h.currentTarget.blur())},"aria-invalid":a?!0:void 0,"aria-describedby":a?f:void 0,"aria-busy":l||void 0,autoComplete:"off",spellCheck:!1})}),a&&Ga("p",{id:f,className:"sf-note sf-note--error",role:"alert",children:a})]})}function YH({unavailable:e}){let{canSave:o}=Bi();return!o&&e?Ga(pS,{children:e}):VH(pS,{children:[Ga("p",{className:"es-field-hint",children:c("Paste a link to each profile. A platform left empty shows nothing on the site.")}),Nf.map(t=>Ga(Vee,{platform:t},t))]})}import{jsx as Va,Fragment as Soe,jsxs as boe}from"react/jsx-runtime";import{useId as woe,useMemo as Coe}from"react";import{useEasel as koe}from"efficient-easel/easel";import{SettingsField as voe,SettingsSwitch as Poe}from"efficient-easel/panel";import{EyeIcon as Toe}from"efficient-easel/icons";import{fieldShownInView as Ooe}from"efficient-easel/fields";import{usePreviewDevice as Eoe}from"efficient-easel/draw/client";import{ROOT_ZONE as _oe}from"efficient-easel/draw";import{jsx as qa,Fragment as Zee}from"react/jsx-runtime";import{createContext as Jee,useContext as Qee,useLayoutEffect as eoe,useMemo as ZH,useRef as ooe,useState as JH}from"react";import{useEasel as QH,useSelectedFields as toe}from"efficient-easel/easel";import{fieldShownInView as roe,Inspector as aoe,LEAD_BAND_KEY as noe,planFields as e2}from"efficient-easel/fields";function XH({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 Yee}from"react/jsx-runtime";import{EmptyState as Xee}from"efficient-shell/ui";function Ka(){return Yee(Xee,{variant:"none",icon:!1,message:c("These settings apply to every view.")})}import{usePreviewDevice as soe}from"efficient-easel/draw/client";import{deviceField as loe}from"efficient-easel/screen/lib/document/device-fields";var ioe="Text",uS=new Map,Yu=new Set,doe=Object.fromEntries(Ei.map(e=>{let o=bT[e];return[e,qa(o,{},e)]})),o2=Jee(null),foe={_partBody:loe("each",{type:"custom",render:()=>qa(coe,{})})};function coe(){return qa(Zee,{children:Qee(o2)})}function Ft({entries:e,entryCount:o=0,part:t=null,omit:r,motion:a,body:n,itemWord:s}){let{id:l,fields:i,values:d,readOnly:f,onChange:m}=toe(),u=ZH(()=>a?{...d,...a.values}:d,[d,a?.values]),h=(ee,Ie)=>a?.keys.has(ee)?a.onChange(ee,Ie):m(ee,Ie),I=soe(),{appState:S,config:w}=QH(ee=>ee),T=LP(I,w,S.data.content??[],S.ui.itemSelector),B=n===void 0?O_(i,t):foe,P=ZH(()=>{let ee=r?.length?Object.fromEntries(Object.entries(B).filter(([Ie])=>!r.includes(Ie))):B;return a?{...ee,...a.fields}:ee},[B,r,a?.fields]),g=_x(P,u,T),[C,E]=JH(()=>new Set(Yu)),A=roe({},I),N={key:noe,title:ioe},b=QH(ee=>ee.selectedItem)!==null,_=a?.part??t??"",y=`${l}:${_}:${String(I)}`,[v,O]=JH(()=>({tab:uS.get(y)})),k=`${l}:${_}`,L=ooe(null),M={...T,node:u},K=e2(g,{values:u,context:M}).buckets,W=XH({allTabs:b,remembered:uS.get(y),inherited:L.current?.panel===k?L.current.tab:v.tab,buckets:K,hasText:A&&o>0}),se=!A&&!K.includes(W)&&(e2(_x(P,u,{...T,device:"desktop"}),{values:u,context:{...M,device:"desktop"}}).buckets.includes(W)||W==="Design"&&o>0);eoe(()=>{L.current={panel:k,tab:W}});let le=W==="Design";return qa(o2.Provider,{value:n??null,children:qa(OT.Provider,{value:a?u:null,children:qa(aoe,{fields:g,values:u,onChange:h,readOnly:f,allTabs:b,showWhenContext:M,context:{itemWord:s},tab:W,onTab:ee=>{uS.set(y,ee),O({tab:ee})},tabIcons:doe,idPrefix:l,ariaLabel:c("Section settings"),lead:le?e:null,leadFold:N,closedFolds:C,onFold:(ee,Ie)=>{Ie?Yu.delete(ee):Yu.add(ee),E(new Set(Yu))},children:se&&qa(Ka,{})})})})}import{useMemo as poe}from"react";import{useEasel as uoe}from"efficient-easel/easel";import{useSectionOps as moe}from"efficient-easel/screen/lib/document/use-section-ops";var t2=new Map,xoe=e=>{let o=t2.get(e);return o||t2.set(e,o=Ou(Pu(e),`part:${e}`)),o},hoe=new Set(Ah);function Cs(e,o,t){let{getItemById:r,getSelectorForId:a}=uoe(f=>f),n=moe(),s=r(e)?.props??{},l=Sa(s,o),i=JSON.stringify(l),d=poe(()=>Object.fromEntries(Ah.map(f=>[f,l[f]])),[i]);return{part:o,fields:xoe(t),values:d,keys:hoe,onChange:(f,m)=>{let u=a(e),h=r(e);if(!u||!h)return;let I=UO(h.props??{},o,f,m);n.replaceComponent(u.zone,u.index,{...h,props:I})}}}import{Fragment as Ioe,createElement as goe}from"react";import{deviceField as mS}from"efficient-easel/screen/lib/document/device-fields";var bo=()=>({type:"custom",render:()=>goe(Ioe)});var xS={words:bo(),sourceNote:bo(),style:bo(),font:bo(),italic:bo(),fontSize:mS("each",bo()),lineHeight:bo(),letterSpacing:bo(),paragraphSpacing:bo(),padding:bo(),align:mS("each",bo()),letterCase:bo(),fixedSizeHint:mS("each",bo()),regionNote:bo(),regionStyle:bo()},yoe=["fontSize","align"];function r2(e){return yoe.includes(e)}var a2={showTicker:bo(),items:bo()};function n2({heroId:e}){let{appState:o,dispatch:t}=koe(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=Coe(()=>{let h=n?.props.tickerItems;return Array.isArray(h)?h:y1.map(I=>({text:I}))},[n]),i=woe(),d=Eoe(),f=h=>Ooe(a2[h],d),m=Cs(e,S1,"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:_oe,destinationIndex:a,data:{...n,props:{...n.props,...h}}});return Va(Ft,{motion:m,body:boe(Soe,{children:[!f("showTicker")&&!f("items")&&Va(Ka,{}),f("showTicker")&&Va(voe,{label:c("Show ticker"),labelId:i,icon:Va(Toe,{}),action:Va(Poe,{checked:s,onChange:h=>u({showTicker:h}),ariaLabelledBy:i})}),f("items")&&Va(BT,{label:$x.label,icon:$x.icon,items:l,placeholder:"item",onChange:h=>u({tickerItems:h}),markup:!0})]})})}import{jsx as Z,Fragment as Hi,jsxs as It}from"react/jsx-runtime";import{useContext as joe,useEffect as hS,useRef as Goe,useState as h2}from"react";import{FieldSelect as Koe,InspectorField as qoe,fieldShownInView as Voe}from"efficient-easel/fields";import{InertHint as v2,SettingsField as Yoe}from"efficient-easel/panel";import{InspectorUpLevel as om}from"efficient-easel/chrome";import{StylesIcon as Xoe,TypeIcon as Zoe}from"efficient-easel/icons";import{useEasel as Joe}from"efficient-easel/easel";import{TextPartPanel as I2}from"efficient-easel/copy";import{Button as Qoe,IconButton as ete,Tooltip as ote}from"efficient-shell/ui";import{jsx as i2,jsxs as Aoe}from"react/jsx-runtime";import{DEFAULT_EASEL_STRINGS as Foe}from"efficient-easel/strings";import{COPY_CELLS as ks,COPY_CELL_LENGTHS as s2,CopyBox as Boe,lengthCellUnits as Loe}from"efficient-easel/copy";import{PaddingYIcon as Roe}from"efficient-easel/icons";import{onDesktopWords as Doe}from"efficient-easel/screen/lib/document/box-fields";var l2=Foe.copy.cells,Noe={kind:"spacing"},Moe=["left","center","right","justify"];function Xu(e,o,t,r="desktop"){let a=Fv(e),n=Lv(r),s=e[n]??e.size??o.sizePx,l=Rv(e,r),i=(f,m,u,h,I)=>{let S=nl[u];return Loe({preset:f,row:m,table:Tf,unit:e[S],value:e[u],tier:r,styleValue:h,label:c(I),onPick:(w,T)=>t({[S]:w??null,[u]:T??null}),onChange:(w,T)=>t({...T?{[S]:T.unit??null}:{},[u]:w??null})})},d={key:"padding",name:c("Padding"),icon:i2(Roe,{}),unit:"px",step:Ov,shiftStep:10,min:Pv,max:Tv};return[{...ks.fontSize,key:"fontSize",value:e[n],styleValue:Math.round(o.sizePx),onChange:f=>t({[n]:f??null}),...i(ks.fontSize,s2.fontSize,n,Math.round(o.sizePx),l2.fontSize),...n==="size"?{}:{reset:{detail:l?Doe(f=>c(f),`${l.px}px`,l.view):void 0}}},{...ks.lineHeight,key:"lineHeight",value:a.lineHeight,styleValue:o.lineRatio,onChange:f=>t(f===void 0?{lineHeight:null,line:null}:{lineHeight:f})},{...ks.letterSpacing,key:"letterSpacing",scale:s,value:a.letterSpacingEm,styleValue:o.letterEm,onChange:f=>t(f===void 0?{letterSpacing:null,letter:null}:{letterSpacing:f})},{...ks.paragraphSpacing,key:"paragraphSpacing",value:e.paragraphSpacing,styleValue:0,onChange:f=>t({paragraphSpacing:f??null}),...i(ks.paragraphSpacing,s2.paragraphSpacing,"paragraphSpacing",0,l2.paragraphSpacing)},{...d,value:e.padding,styleValue:o.paddingPx,onChange:f=>t({padding:f??null}),...i(d,Noe,"padding",o.paddingPx,"Padding")}]}function d2({text:e,onTextChange:o,multiline:t,markup:r=!0,styled:a=!0,style:n,base:s,setValue:l,colors:i,placeholder:d,ariaLabel:f,head:m,typedOnCanvas:u=!1}){let h=Xu(n,s,l),I=nh(r,t);return Aoe("div",{className:"sf-part-textbox",children:[m,i2(Boe,{value:e,onChange:o,multiline:t,placeholder:d,ariaLabel:f,rules:ud,tools:I,barShows:u?"focus":"always",colors:r?i:[],colorNameOf:lf,align:a?{value:n.align??s.align,allow:Moe,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 g2}from"efficient-easel/draw/client";import{jsx as Zu,Fragment as Hoe,jsxs as Woe}from"react/jsx-runtime";import{Button as f2,Dialog as $oe}from"efficient-shell/ui";function c2({styleName:e,onCancel:o,onConfirm:t}){return Zu($oe,{open:!0,onClose:o,role:"alertdialog",size:"sm",title:c("Update {style}?",{style:e}),footer:Woe(Hoe,{children:[Zu(f2,{variant:"secondary",onClick:o,children:c("Cancel")}),Zu(f2,{variant:"primary",onClick:t,children:c("Update style")})]}),children:Zu("p",{children:c("Every text on the site that follows {style} changes to look like this one. This text\u2019s own changes are cleared, and it keeps following {style}.",{style:e})})})}import{ScreenDocumentContext as tte}from"efficient-easel/screen/components/ScreenDocumentContext";import{usePreviewDevice as rte}from"efficient-easel/draw/client";import{shownTier as Qu}from"efficient-easel/screen/lib/document/device-fields";import{TEXT_FIELD_MARKER as ate,viewKeyAt as nte}from"efficient-easel/draw";import{useSectionOps as ste}from"efficient-easel/screen/lib/document/use-section-ops";import{useEaselHost as lte}from"efficient-easel/screen/lib/host";function zoe(e){let o=new Set([...Object.keys(z(Jk,e)??{}),...z(Qk,e)??[]]);for(let[t,r]of Object.entries(z(ov,e)??{}))r.verb==="snapshot"&&o.add(t);return[...o].sort()}var Uoe={CollectionCard:"product",FooterMenu:"menu",Gallery:"product",GalleryItem:"product",ProductGrid:"product",ProductHero:"product",SpecTable:"product",Events:"blog",FeaturedCover:"blog",LongRead:"blog",SubscribeBlogs:"blog"},p2={product:"Synced from the product.",blog:"Synced from the blog post.",menu:"Synced from the site menu."},u2="Open",m2={product:{type:"storefront-editor:open-product",needsSlug:!0},blog:{type:"storefront-editor:open-post",needsSlug:!0},menu:{type:"storefront-editor:open-menus",needsSlug:!1}};function vs(e){let o=e?.source?.slug;return xo(o)}function Ni(e){return z(Uoe,e)??null}function x2(e,o){let t=Ni(e);return t&&zoe(e).includes(o)?t:null}function Ju(e){let o=e?.menu?.id;return xo(o)}function IS(e){return e?c(e):null}function y2(e){return e.kind==="role"?Om[e.role]:e.kind==="custom"?"Custom":null}function ite(e){let o=Sb(e.role);return o?{kind:"role",role:o}:null}function dte(e,o){if(!e)return{kind:"unread"};let{faceRole:t,base:r}=e;if(o[t]===r.fontKey)return{kind:"role",role:t};let a=Object.keys(o).filter(n=>o[n]===r.fontKey);return a.length===1?{kind:"role",role:a[0]}:{kind:"custom"}}function em(e,o,t,r){return ite(Fr(e,o))??dte(t,r)}function fte(e,o){if(!e.length)return null;let t=o(e[0]);return e.every(r=>o(r)===t)?t:null}function S2(e,o){return[{value:Mi,label:c("No style"),description:c("Section\u2019s own")},...e.map(t=>({value:t.id,label:t.name,description:t.values.font?pd(t.values.font,o)?.label:void 0}))]}var Mi="";function cte({face:e,base:o,onPick:t}){let r=kt(),a=e.kind==="role"?e.role:Mi,n=[{label:c("No style"),value:Mi},...yb.map(s=>({label:c(Om[s]),value:s}))];return Z(Koe,{ariaLabel:c("Style"),value:a,options:n,inline:!0,onChange:s=>t(s===Mi?null:s),renderOption:s=>s.value===Mi?It(Hi,{children:[Z("span",{className:"es-fsel-label sf-part-style-keep",children:s.label}),Z("span",{className:"sf-part-style-aside","aria-hidden":"true",children:c("Section\u2019s own")})]}):Z("span",{className:"es-fsel-label",style:{fontFamily:`var(--font-role-${s.value})`},children:s.label}),renderValue:()=>Z("span",{style:{fontFamily:o?.fontKey?`var(${pd(o.fontKey,r)?.cssVar})`:void 0,fontWeight:o?.weight},children:IS(y2(e))}),valueText:s=>IS(y2(e))??s?.label??""})}var P2=["regionNote","regionStyle"],pte=Object.keys(xS).filter(e=>!P2.includes(e));function T2(e,o){return!e.some(o)}function ute({sectionName:e,onBack:o,textEditor:t,styleRow:r,children:a,tabs:n}){let s=It(Hi,{children:[t,r,a]});return It("div",{className:"sf-part-panel",children:[Z(om,{inline:!0,name:c(e),onSelect:o}),n?n(s):s]})}function tm({source:e,slug:o,menuId:t}){let r=lte(),a=m2[e],n=!a.needsSlug||!!o;return Z("div",{className:"sf-note sf-note--source",children:It(v2,{children:[c(p2[e]),n?It(Hi,{children:[" ",Z(Qoe,{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(u2)})]}):null]})})}var b2=4,mte=120;function w2(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 C2({region:e,sizePx:o,face:t,base:r,onFollowStyle:a,source:n,slug:s,onBack:l,shows:i,sizedStyle:d,ownLook:f}){let m=e.follows;return It("div",{className:"sf-note",children:[Z("p",{children:Z("strong",{children:c(e.label)})}),i("regionNote")&&!f&&Z("p",{children:o?c("Its size follows Styles \u25B8 {follows} \u2014 {px}px right now.",{follows:c(m),px:Math.round(o)}):c("Its size follows Styles \u25B8 {follows}.",{follows:c(m)})}),d?It(Hi,{children:[d,i("regionStyle")&&Z("p",{className:"es-field-hint",children:w2(e)})]}):a?i("regionStyle")?Z(Hi,{children:Z(Yoe,{label:c("Style"),icon:Z(Xoe,{}),hint:w2(e),children:Z(cte,{face:t,base:r,onPick:a})})}):null:i("regionNote")&&Z("p",{className:"es-field-hint",children:c("Only the size follows a site style. This section sets its own font, weight and letter case.")}),n&&i("sourceNote")?Z(tm,{source:n,slug:s}):null,T2([...P2,"sourceNote",...d?["fontSize"]:[]],u=>i(u)&&(u!=="sourceNote"||!!n))&&Z(Ka,{}),Z(om,{inline:!0,name:c("Page"),onSelect:l})]})}function xte({onBack:e}){return It("div",{className:"sf-note",children:[Z("p",{children:Z("strong",{children:c("This part is no longer here.")})}),Z("p",{children:c("The section it belonged to has been changed or removed.")}),Z(om,{inline:!0,name:c("Page"),onSelect:e})]})}function hte({onBack:e,partId:o,why:t}){return It("div",{className:"sf-note",children:[Z("p",{children:Z("strong",{children:c("This part's settings did not open.")})}),Z("p",{children:c("The words are still on your page and nothing has been lost. The editor could not work out which control belongs to them, which is a fault on our side. Go back and click the section to open its settings instead.")}),Z("p",{className:"sf-note-detail",children:It("code",{children:[o," \u2014 ",t]})}),Z(om,{inline:!0,name:c("Page"),onSelect:e})]})}function O2({nodeId:e,propKey:o,onBack:t,onEditStyle:r}){let{getItemById:a,getSelectorForId:n,config:s}=Joe(G=>G),l=ste(),i=S0(),{partStyle:d}=fs(),{fonts:f,textStyles:m}=vo(),u=kt(),h=joe(tte),I=!h?.capabilities?.hasSiteTheme,{persist:S}=uT({themeFromDocument:I,tokenRef:h?.tokenRef,siteId:h?.siteId??null}),w=XT({themeFromDocument:I,persist:S}),[T,B]=h2(!1),P=rte(),g=G=>(Qu(P)!=="tablet"||r2(G))&&Voe(xS[G],P),C=Goe(null),E=a(e),A=n(e),N=E?s.components[E.type]:void 0,{key:b,row:_}=Ut(o),y=N?.fields?.[b],v=_?Dn(y,_):y,O=jt(e,o),k=E?.props??{},L=cf(v),M=Bf(v),K=xv(v),W=E?Ni(E.type):null,se=E?x2(E.type,b):null,le=_?uf(k[b],_):k[b],ee=!!_&&!(Array.isArray(k[b])&&_.index<k[b].length);hS(()=>{y0(document)||C.current?.querySelector(".es-copy [contenteditable='true'], .es-copy textarea, .sf-copybox textarea, .sf-copybox input")?.focus()},[O]);let[Ie,ae]=h2(0);hS(()=>ae(0),[O]);let me=!!E&&!ee&&(!A||!v);hS(()=>{if(!me||Ie>=b2)return;let G=setTimeout(()=>ae(Fe=>Fe+1),mte);return()=>clearTimeout(G)},[me,Ie]);let ge=me&&Ie<b2,Ge=Cs(e,pr(E?.type,o),"textPart");if(!E||ee)return Z(xte,{onBack:t});let Ve=cs(E.type),Eo=Ve?Us(Ve,o):null;if(Ve&&Eo){let G=d?.partId===O?d:null,Fe=Ve[Eo],Lo=Fe.writable===!0&&!!A,St=Dt=>{A&&l.replaceComponent(A.zone,A.index,{...E,props:la(k,o,"role",Dt)})};if(Lo&&hw(Fe)){let Dt=Fr(k,o),Ls=Qr=>{if(!A)return;let Pm=k;for(let[c6,p6]of Object.entries(Qr))Pm=la(Pm,o,c6,p6??null);l.replaceComponent(A.zone,A.index,{...E,props:Pm})},Rs=jx(w.saved,w.old),d6=wx(Dt)??"",f6=Xu(Dt,G?.base??k2,Ls,Qu(P)).filter(Qr=>Qr.key==="fontSize"&&g(Qr.key));return Z(Ft,{motion:Ge,body:Z(C2,{region:Fe,sizePx:G?.base.sizePx??null,face:em(k,o,G,f),base:G?.base??null,source:W,slug:vs(k),onBack:t,shows:g,ownLook:Uv(Dt),sizedStyle:Z(I2,{style:g("style")?{value:d6,options:S2(Rs,u),onChange:Qr=>Ls(Qr?{textStyle:Qr}:{textStyle:null,role:null}),onEditStyles:r}:void 0,cells:f6})})})}return Z(Ft,{motion:Ge,body:Z(C2,{region:Fe,sizePx:G?.base.sizePx??null,face:em(k,o,G,f),base:G?.base??null,onFollowStyle:Lo?St:void 0,source:W,slug:vs(k),onBack:t,shows:g})})}if(!A||!v)return ge?Z("div",{className:"sf-note","aria-busy":"true"}):Z(hte,{onBack:t,partId:O,why:A?"no field":"no selector"});let Ye=G=>{l.replaceComponent(A.zone,A.index,{...E,props:G})},Je=G=>{if(pa(G).hidden!==pa(le).hidden||!L){let Fe=_?lv(k,b,_,G):{...k,[b]:G};Fe&&Ye(Fe);return}$f({node:E,propKey:o,kind:L,zone:A.zone,index:A.index},pa(G).text,l.replaceComponent)},qo=le,Qe=d?.partId===O?d:null,mo=Qe?.styleOwner,$=mo?a(mo.owner):null,de=mo&&$?n(mo.owner):null,he=!!(mo&&$&&de),De=he?$.props??{}:k,ie=he?G=>l.replaceComponent(de.zone,de.index,{...$,props:G}):Ye,Ne=he?mo.kind:pr(E?.type,o),wo=Fr(De,Ne),ve=[{partKey:Ne,face:em(De,Ne,Qe,f),sizeGroup:Qe?.sizeGroup??null,base:Qe?.base??k2,style:wo}],Rt=fte(ve,G=>G.sizeGroup),Ja=df(Qe?.inks),yr=(G,Fe)=>{let Lo=De;for(let St of ve)Lo=la(Lo,St.partKey,G,Fe);ie(Lo)},Cm=G=>G?yr("textStyle",G):As({textStyle:null,role:null}),As=G=>{let Fe=De;for(let Lo of ve)for(let[St,Dt]of Object.entries(G))Fe=la(Fe,Lo.partKey,St,Dt??null);ie(Fe)},Bo=L==="text"||L==="textarea",{text:Qa,hidden:Jt}=pa(le),et=v?.[ate]?.label??o,td=Jt?c("Show {label} on the slide",{label:c(et)}):c("Hide {label} on the slide",{label:c(et)}),Qt=It("div",{className:"sf-field-head",children:[Z(Zoe,{}),Z("span",{className:"sf-field-label sf-field-label--inline",children:c(et)}),Bo&&Z(ote,{content:td,children:Z(ete,{"aria-pressed":Jt,"aria-label":td,onClick:()=>Je({text:Qa,hidden:!Jt}),children:Jt?Z(g2,{name:"eye-off",size:14}):Z(g2,{name:"eye",size:14})})})]}),Jr=!M&&K,rd=!!L&&(ST(v)||M||Jt||!K),er=em(De,Ne,Qe,f),km=er.kind==="role"?er.role:null,Sr=wx(wo)??KT(km),ad=jx(w.saved,w.old),vm=Object.entries(wo).filter(([G,Fe])=>G!=="role"&&G!=="textStyle"&&Fe!==void 0).length,nd=()=>{let G=De;for(let Fe of ve){let{role:Lo,textStyle:St}=Fe.style;G=Av(G,Fe.partKey),Lo&&(G=la(G,Fe.partKey,"role",Lo)),St&&(G=la(G,Fe.partKey,"textStyle",St))}ie(G)},yt=Sr,sd=VT(ve[0].style),Fs=yt?ad.find(G=>G.id===yt)?.name??yt:"",Bs=()=>{B(!1),yt&&(w.write(YT({saved:w.saved,old:w.old,styleId:yt,values:qT(ve[0].style)}),!0),nd())};return It(ute,{sectionName:N?.label??E.type,onBack:t,tabs:G=>Z(Ft,{motion:Ge,body:G}),textEditor:g("words")?Z("div",{ref:C,className:"sf-part-text",children:rd?Z(d2,{text:Qa,onTextChange:G=>Je(Bo?{text:G,hidden:Jt}:G),multiline:pf(L),markup:L!=="plainText",styled:!1,style:ve[0].style,base:ve[0].base,setValue:As,colors:Ja,placeholder:IS(rv(v))??void 0,ariaLabel:c(et),head:Qt,typedOnCanvas:i===O}):L?Bo?Qt:null:Z(qoe,{field:v,name:o,value:qo,onChange:Je,id:`sf-part-${e}-${o}`})}):void 0,children:[se&&g("sourceNote")&&Z(tm,{source:se,slug:vs(k),menuId:Ju(k)}),Jr&&Z(I2,{style:g("style")?{value:Sr??"",options:S2(ad,u),onChange:G=>Cm(G||null),changed:vm>0,onEditStyles:r,onUpdateStyle:yt&&sd?()=>B(!0):void 0}:void 0,font:g("font")?{value:wo.font??"",styleValue:pd(ve[0].base.fontKey,u)?.label,options:gb(u).map(G=>({label:G.label,value:G.key})),onChange:G=>yr("font",G||null)}:void 0,italic:g("italic")?{value:wo.italic,styleValue:gte(m,Sr),onChange:G=>yr("italic",G??null)}:void 0,cells:Xu(ve[0].style,ve[0].base,As,Qu(P)).filter(G=>g(G.key)),align:g("align")?Ite(wo,ve[0].base.align,Qu(P),yr):void 0,letterCase:g("letterCase")?{value:wo.case??"",styleValue:ve[0].base.case,onChange:G=>yr("case",G||null)}:void 0}),T&&yt&&Z(c2,{styleName:Fs,onCancel:()=>B(!1),onConfirm:Bs}),Jr&&Rt===null&&g("fixedSizeHint")&&Z(v2,{children:c("Fixed size \u2014 the site\u2019s Text setting doesn\u2019t resize this.")}),T2(pte,G=>g(G)&&(G==="words"||(G==="sourceNote"?!!se:G==="fixedSizeHint"?Jr&&Rt===null:Jr)))&&Z(Ka,{})]})}function Ite(e,o,t,r){let a=nte("align",t),n=Bv(e,t);return{value:e[a]??"",styleValue:n??o,onChange:s=>r(a,s||null)}}function gte(e,o){return!o||!Array.isArray(e)?!1:e.find(t=>t?.id===o)?.values?.italic===!0}var k2={fontKey:"",sizePx:16,weight:400,lineRatio:1.4,letterEm:0,align:"left",case:"none",paddingPx:0};import{jsx as Bt,jsxs as CS,Fragment as vte}from"react/jsx-runtime";import{useCallback as Pte,useRef as Tte,useState as zi}from"react";import{InspectorIconButton as Ote}from"efficient-easel/chrome";import{useEasel as Ete}from"efficient-easel/easel";import{LoadingSpinner as _te,PopupMenu as Ate,PopupMenuItem as Fte,PopupMenuLabel as kS}from"efficient-shell/ui";import{CopyToPageIcon as Bte}from"efficient-easel/icons";import{useEaselSession as Lte}from"efficient-easel/screen/lib/session-context";import{cloneNodeWithFreshIds as Rte}from"efficient-easel/screen/lib/document/section-doc";import{FOOTER_TYPE as Dte}from"efficient-easel/draw";import{newId as bte}from"efficient-easel/data";import{isBackendError as Ps}from"efficient-easel/screen/lib/backend-error";import{isEfficientBackend as M2}from"efficient-easel/screen/lib/session";var rm=XP(),gS=rm.set;function am(e,o){gS(e,o)}function nm(e,o){let t=rm.get(e);gS(e,o??(t==="live"?"changed":t))}function sm(e,o){gS(e,o??"live")}function E2(e){return rm.get(e)}function _2(e){return rm.use(e)}function A2(e,o){return e==="live"&&o?"changed":e}function yS({live:e,onPress:o,busy:t=!1,pinnedUnpublished:r=!1,goingLive:a}){let n=e==="live"&&!r,s=e==="changed"?c("Changes not live yet"):e==="never"?c("Never published"):r?c("Header and footer not live yet"):e==="live"?c("Everything is live"):null;return{label:c("Publish"),tooltip:e==="never"?c("Put this page on your site"):c("Put your changes on your site"),status:s,quiet:n?{label:c("Published"),reason:c("Everything is live")}:null,...a&&a.length?{goingLive:a}:{},onPress:o,busy:t}}function F2(e){return e.map(o=>o.change==="take_down"?c("{name} (taken down)",{name:o.name}):o.name)}var B2="SharedSection",yte=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i,Wi=e=>{let o=e?.content;return Array.isArray(o)?o:[]},$i=e=>{let o=e?.props?.id;return typeof o=="string"?o:void 0};function L2(e){if(e?.type!==B2)return null;let o=e.props?.section;return typeof o=="string"&&yte.test(o)?o.toLowerCase():null}function R2(e){let o=[];for(let t of Wi(e)){let r=L2(t),a=$i(t);r&&a&&o.push({refId:a,section:r})}return o}function lm(e){let o=Wi(e)[0];return o&&typeof o=="object"&&$i(o)?o:null}function Ste(e,o){return{type:B2,props:{id:e,section:o}}}function D2(e,o){let t=new Map,r=new Set,a=!1,n=Wi(e).map(s=>{let l=L2(s),i=$i(s);if(!l||!i||r.has(l))return s;let d=lm(o.get(l)),f=$i(d??void 0);return!d||!f||t.has(f)?s:(r.add(l),t.set(f,{section:l,refId:i,reference:s}),a=!0,d)});return{working:a?{...e,content:n}:e,held:t}}function N2(e,o,t){let r=new Map,a=!1,n=Wi(e).map(s=>{let l=$i(s),i=l?o.get(l):void 0,d=i?t.get(i.section):void 0;if(!i||!d||r.has(i.section))return s;let f=Wi(d).slice(1),m=lm(d);return r.set(i.section,m===s?d:{...d,content:[s,...f]}),a=!0,i.reference??Ste(i.refId,i.section)});return{page:a?{...e,content:n}:e,docs:r}}function wS(e){return!!(e?.publish&&e.liveState)}function wte(e,o){if(!wS(e))return;let{versions:t,nameVersion:r,restoreVersion:a,previewVersion:n}=e;if(!(!t||!r||!a||!n))return{list:()=>t.call(e,o),name:(s,l)=>r.call(e,s,l,o),restore:(s,l)=>a.call(e,s,l??{},o),preview:s=>n.call(e,s,o)}}function Cte(e,o){return async(t,r)=>{try{await pT()}catch(a){throw new Error(c("A change waiting to go live could not be saved."),{cause:a})}return(await e.publish(o)).state==="live"?Af({state:"live",changes:[]}):ca(0),{version:r??null}}}function bS(e,o,t){let r=o?{siteId:o}:void 0;return{resolve:a=>e.load({slug:a,...r}).then(n=>(n&&(am(n.id,n.live),rT(n.id,n.videoFrames)),n)),saveLayout:(a,n,s,l)=>e.save(a,{layout:n},{version:s,clientId:l??""}).then(i=>(nm(a,i.live),aT(a,i.videoFrames),ca(),i)),rereadVersion:e.version?a=>e.version(a):void 0,publish:wS(t)?Cte(t,r):e.publish?(a,n)=>e.publish(a,n?{version:n}:void 0).then(s=>(sm(a,s.live),s)):void 0,listPages:()=>e.list(r),createPage:e.create?a=>e.create({...a,...r}):void 0,deletePage:e.remove?(a,n)=>e.remove(a,n):void 0}}function kte(e,o,t,r,a=!1){let n=null,s=new Set,l=!1,i=new Map,d=new Map,f=new Map,m=new Map,u={docId:null,lockHolder:null,conflict:null,saveFailed:!1,unpublished:!1,loadFailed:!1,sections:[]},h=new Set,I=()=>{if(!n)return!1;let b=E2(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:eT(n?.layout)};for(let _ of h)_()},w=(b,_,y)=>{_?f.set(b,{section:b,title:i.get(b)?.title??"",problem:_,holder:y}):f.delete(b)},T=b=>b&&typeof b=="object"&&!Array.isArray(b)?b:{},B=b=>s.has(b),P=()=>new Map([...i].map(([b,_])=>[b,_.layout])),g=()=>bte("SharedSection"),C=(b,_,y,v)=>{let O=T(_);i.set(b,{layout:O,version:y,savedJson:JSON.stringify(O),title:v})},E={state:()=>u,subscribe:b=>(h.add(b),()=>{h.delete(b)})},A={sectionOf:b=>d.get(b)?.section??null,heldElsewhere:b=>{let _=d.get(b)?.section;return!!(_&&f.get(_)?.problem==="lock")},adopt:(b,_)=>{C(_.id,_.layout,_.layout_updated_at,_.title),d.set(b,{section:_.id,refId:g()}),m.set(_.id,_.used_on),S({})},place:b=>{if([...d.values()].some(v=>v.section===b.id))return null;let _=lm(T(b.layout)),y=typeof _?.props?.id=="string"?_.props.id:null;return!_||!y||!_.type?null:(C(b.id,b.layout,b.layout_updated_at,b.title),d.set(y,{section:b.id,refId:g()}),m.set(b.id,b.used_on),_)},usedOn:b=>m.get(b)??null,learn:b=>{for(let _ of b){m.set(_.id,_.used_on);let y=i.get(_.id);y&&(y.title=_.title);let v=f.get(_.id);v&&f.set(_.id,{...v,title:_.title})}S({})}},N=async(b,_)=>{for(let[y,v]of b){let O=i.get(y),k=JSON.stringify(v);if(!(!O||k===O.savedJson||f.get(y)?.problem==="lock"))try{let L=await e.save(y,{layout:v},{version:O.version,clientId:_??""});nm(y,L.live),O.layout=v,O.version=L.version,O.savedJson=k,w(y,null)}catch(L){Ps(L,"changed-elsewhere")?w(y,"conflict"):Ps(L,"lock-taken")?w(y,"lock",L.holder??void 0):w(y,"save")}}b.size&&ca(),S({})};return{resolve:async b=>{if(Ux(b===Br?null:E),Lx(b===Br?null:A),i=new Map,d=new Map,f=new Map,m=new Map,b===Br)return t.resolve(b);let _=!1,[y,v]=await Promise.all([t.resolve(b),e.load({slug:Br,...o}).catch(()=>(_=!0,null))]);if(v&&!yT(y?.layout)){am(v.id,v.live);let W=T(v.layout);n={id:v.id,layout:W,version:v.version,savedJson:""}}else n=null;if(l=!1,!y)return S({conflict:null,saveFailed:!1,loadFailed:_}),y;let O=T(y.layout),k=R2(O),L=await Promise.all(k.map(W=>e.load({id:W.section,...o}).catch(()=>null)));k.forEach((W,se)=>{let le=L[se];le?(am(le.id,le.live),C(W.section,le.layout,le.version,"")):(i.delete(W.section),f.set(W.section,{section:W.section,title:"",problem:"load"}))});let M=D2(O,P());if(d=M.held,!n)return d.size&&s.add(y.id),S({conflict:null,saveFailed:!1,loadFailed:_}),d.size?{...y,layout:M.working}:y;let K=oT(M.working,n.layout);return n.savedJson=JSON.stringify(Bx(K,n.layout).chrome),s.add(y.id),S({conflict:null,saveFailed:!1,loadFailed:!1}),{...y,layout:K}},saveLayout:async(b,_,y,v)=>{if(!B(b))return t.saveLayout(b,_,y,v);let O=n,k=O?Bx(_,O.layout):{page:_,chrome:null},L=N2(k.page,d,P()),M=await t.saveLayout(b,L.page,y,v);if(await N(L.docs,v),!O)return M;let K=JSON.stringify(k.chrome);if(!k.chrome||K===O.savedJson||u.lockHolder)return M;try{let W=await e.save(O.id,{layout:k.chrome},{version:O.version,clientId:v??""});nm(O.id,W.live),ca(),O.layout=k.chrome,O.version=W.version,O.savedJson=K,l=!0,S({conflict:null,saveFailed:!1})}catch(W){Ps(W,"changed-elsewhere")?S({conflict:W.conflict??{savedBy:"",savedByYou:!1,secondsAgo:0}}):Ps(W,"lock-taken")?S({lockHolder:W.holder??{name:"",secondsSinceSeen:0,secondsSinceHeld:0}}):S({saveFailed:!0})}return M},publish:t.publish?async(b,_)=>{let y=await t.publish(b,_),v=n;if(v&&B(b)&&!a&&e.publish&&I()&&!u.lockHolder){let O=await e.publish(v.id,v.version?{version:v.version}:void 0);sm(v.id,O.live),O.version!==null&&(v.version=O.version),l=!1,S({})}if(B(b)&&!a&&e.publish)for(let[O,k]of i){if(f.get(O)?.problem==="lock")continue;let L=await e.publish(O,k.version?{version:k.version}:void 0);sm(O,L.live),L.version!==null&&(k.version=L.version)}return y}:void 0,lock:r?{claim:async(b,_,y)=>{let v=await r.claim(b,_,y);if(!B(b))return v;let O=n;if(O)try{await r.claim(O.id,_,!1),u.lockHolder&&S({lockHolder:null})}catch(k){Ps(k,"lock-taken")&&S({lockHolder:k.holder??{name:"",secondsSinceSeen:0,secondsSinceHeld:0}})}for(let k of i.keys())try{await r.claim(k,_,!1),f.get(k)?.problem==="lock"&&w(k,null)}catch(L){Ps(L,"lock-taken")&&w(k,"lock",L.holder??void 0)}return i.size&&S({}),v},release:async(b,_)=>{if(await r.release(b,_),!B(b))return;let y=n;y&&!u.lockHolder&&await r.release(y.id,_).catch(()=>{});for(let v of i.keys())f.get(v)?.problem!=="lock"&&await r.release(v,_).catch(()=>{})}}:void 0,pinnedChrome:E}}function im(e){let o=(t,r,a)=>e.save(t,r.layout?{...r,layout:s0(r.layout)}:r,a);return new Proxy(e,{get(t,r){if(r==="save")return o;let a=Reflect.get(t,r,t);return typeof a=="function"?a.bind(t):a}})}function V2e(e,o,t){return e.update(o,l0(t))}function Y2e(e,o=_o(),t=Lg(),r={}){let a=M2(o),n=e?{siteId:e}:void 0,s=a?!!e:!0,l=o.site.update,i=a&&t.commerce&&t.service,d=!!r.editsPinnedInPlace&&i,f=wS(o.site)?o.site:void 0,m=im(o.pages),u=bS(m,e,f),h=d?kte(m,n,u,o.lock,!!f):null;return{capabilities:{canPublish:!!f||!!o.pages.publish,hasSiteSettings:a,hasSiteTheme:!!o.theme,placeholderFrames:!1,mediaEditing:!0,pageCreationInAdminForm:!o.pages.create,canDeletePagesInline:!!o.pages.remove,hasEditLock:!!o.lock,hasEditGuard:!0,hasPinnedChrome:i,editsPinnedInPlace:d,explainsSiteSettings:!1,hasSiteRecord:s,canEditSiteRecord:s&&!!l,hasPreviewLink:a||!!o.preview,hasCatalog:a&&t.commerce,hasForms:a&&t.service,hasBlog:!!o.blog&&t.service,offersCommerce:t.commerce,offersService:t.service},...u,...H2(u.resolve),lock:o.lock,...h,site:s?()=>o.site.get(n):void 0,siteLiveState:f?()=>f.liveState(n):void 0,siteVersions:wte(f,n),updateSite:s&&l?I=>l(I,n):void 0,previewHref:o.preview?I=>o.preview.href(I):void 0}}function X2e(e,o=_o(),t=Lg()){let r=M2(o),a=o.templates,n=a?im(a.pages(e)):{list:()=>Promise.reject(new Error(SS)),load:()=>Promise.reject(new Error(SS)),save:()=>Promise.reject(new Error(SS))};return{capabilities:{canPublish:!1,hasSiteSettings:!1,hasSiteTheme:!1,placeholderFrames:!0,mediaEditing:!1,pageCreationInAdminForm:!n.create,canDeletePagesInline:!!n.remove,hasEditLock:!1,hasEditGuard:!1,hasPinnedChrome:r&&t.commerce&&t.service,editsPinnedInPlace:!1,explainsSiteSettings:r,hasSiteRecord:!1,canEditSiteRecord:!1,hasPreviewLink:!1,hasCatalog:r&&t.commerce,hasForms:r&&t.service,hasBlog:!!o.blog&&t.service,offersCommerce:t.commerce,offersService:t.service},...bS(n,void 0),...H2(bS(n,void 0).resolve),publish:void 0,templateName:a?()=>a.get(e).then(s=>s.name):void 0}}function H2(e){return{resolve:o=>(Ux(null),Lx(null),e(o))}}var SS="This editor's backend has no website templates.";function Nte(e,o,t){let r=Rte(e,void 0,o);return t?.(r)??r}function W2({node:e,currentSlug:o,siteId:t,tokenRef:r,runAuthed:a,onNotify:n}){let[s,l]=zi(!1),[i,d]=zi(null),f=Lte(),m=Ete(A=>A.config.components),[u,h]=zi(!1),[I,S]=zi(null),w=Tte(null),[T,B]=zi(null),P=Pte(async()=>{if(f.usesBridgedToken&&!r.current){h(!0);return}try{d(await _o(f).pages.list(t?{siteId:t}:void 0))}catch{h(!0)}},[r,t,f]),g=()=>{if(s){l(!1);return}let A=w.current?.getBoundingClientRect();A&&B({top:A.bottom+6,right:Math.max(8,window.innerWidth-A.right)}),d(null),h(!1),P(),l(!0)},C=(i??[]).filter(A=>A.slug!==o),E=async A=>{if(I)return;S(A.slug);let N=Nte(e,m,f.documentHooks?.storedNode),b=await a(()=>Mte(_o(f).pages,A,N));S(null),l(!1),n?.(b?c("Duplicated to \u201C{name}\u201D",{name:A.label}):c("Couldn\u2019t duplicate the section \u2014 please retry"),b?"success":"error")};return CS(vte,{children:[Bt("span",{"data-menu-toggle":!0,style:{display:"contents"},children:Bt(Ote,{buttonRef:w,label:c("Duplicate to another page"),hasPopup:"menu",expanded:s,onClick:g,children:Bt(Bte,{size:15})})}),s&&T&&Bt(Ate,{portal:!0,style:{top:T.top,right:T.right},onClose:()=>l(!1),children:CS("div",{role:"menu","aria-label":c("Duplicate to page"),children:[Bt(kS,{children:c("Duplicate to page")}),u?Bt(kS,{children:c("Couldn\u2019t load pages")}):i===null?Bt(_te,{label:c("Loading\u2026")}):C.length===0?Bt(kS,{children:c("No other pages")}):C.map(A=>CS(Fte,{role:"menuitem",disabled:I!==null,onClick:()=>{E(A)},children:[Bt("span",{className:"min-w-0 flex-1 truncate",children:A.label}),I===A.slug?Bt("span",{className:"shrink-0 text-xs",children:c("Copying\u2026")}):A.draft&&Bt("span",{className:"shrink-0 text-xs",children:c("draft")})]},A.id))]})})]})}async function Mte(e,o,t){let r=im(e),a=await r.load({id:o.id});if(!a)throw new Error(`Page "${o.slug}" no longer exists.`);let n=a.layout??{},s=Array.isArray(n.content)?[...n.content]:[],l=s.findIndex(i=>i?.type===Dte);s.splice(l===-1?s.length:l,0,ZP(t)),await r.save(o.id,{layout:{root:{},zones:{},...n,content:s}},{version:a.version,clientId:""})}import{useScreenDocument as pre}from"efficient-easel/screen/components/ScreenDocumentContext";import{useSectionOps as ure}from"efficient-easel/screen/lib/document/use-section-ops";import{SELECTION_MODE as C4e,isSelectionMode as ES}from"efficient-easel/screen/lib/screen-parts";import{usePreviewParts as mre}from"efficient-easel/draw/client";import{jsx as Ui,jsxs as Hte}from"react/jsx-runtime";import{SettingsDrill as Wte}from"efficient-easel/panel";import{UiIcon as $te}from"efficient-easel/draw/client";var zte="Not shown on the page";function Ute({part:e,onOpen:o}){return Ui(Wte,{name:c(e.label),preview:e.offPage?c(zte):e.preview||c("Empty"),offPage:e.offPage,status:e.hidden?Ui("span",{className:"sf-entry-eye",role:"img","aria-label":c("Hidden on the page"),children:Ui($te,{name:"eye-off",size:14})}):void 0,onOpen:()=>o(e.key)})}function vS(e){return e.filter(o=>!o.identifier)}function $2({parts:e,onOpen:o,heading:t=!0}){let r=vS(e);return r.length?Hte("div",{className:"sf-entries",children:[t?Ui("h3",{className:"sf-entries-head",children:c("Text")}):null,r.map(a=>Ui(Ute,{part:a,onOpen:o},a.key))]}):null}import{HEADER_TYPE as xre,ROOT_ZONE as e5}from"efficient-easel/draw";import{newId as jte}from"efficient-easel/data";import{HEADER_TYPE as Ko,FOOTER_TYPE as Re,newNodeId as Gte}from"efficient-easel/draw";function dm(){return{type:Ko,props:{id:Gte(Ko)}}}var z2=[{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"}],Kte=z2.filter(e=>e.type!=="FooterLogo"&&e.type!=="FooterGroup"),qte="FooterGroup",U2="blocks";function j2(e){return e===Re?z2:e===qte?Kte:null}function fm(){let e=(o,t)=>({type:o,props:{id:jte(o),...t}});return[e("FooterLogo",{widthPct:100,align:"left",tagline:""}),e("FooterEmailSignup",{...eP}),e("FooterPayment",{...hf})]}function PS(e){switch(e?.type){case Mo:case ao:return c("On every page");case Ko:case Re:return c("On every page \xB7 old style");default:return null}}var G2=()=>null,K2=()=>c("Changed on every page");function cm(e,o){let t=KC(e,o);if(t)return t;let r=pP(e,o);if(!r)return null;let a=r.group===Mo;return r.why==="type"?a?c("The header cannot take another one of these"):c("The footer cannot take another one of these"):a?c("The header holds at most 3 sections"):c("The footer holds at most 6 sections")}import{jsx as pm,Fragment as Yte,jsxs as Xte}from"react/jsx-runtime";import{useState as Zte}from"react";import{createNode as Jte,newId as Qte}from"efficient-easel/data";import{useEasel as ere}from"efficient-easel/easel";import{Banner as ore,Button as TS}from"efficient-shell/ui";import{useScreenDocument as tre}from"efficient-easel/screen/components/ScreenDocumentContext";var Vte=["FooterPayment"];function q2(e,o){let{id:t,...r}=e.props;for(let a of Nt(e))r[a]=r[a].map(n=>q2(n,o));return o(e.type,r)}var ji=(e,o)=>{if(!Vte.includes(e.type))return null;Jp();let t=Hr(e.type);return t?Ea({type:e.type,props:{...e.props}},t).nodes.map(r=>q2(r,o)):null};function V2(){let{appState:e,dispatch:o,config:t}=ere(f=>f),{readOnly:r}=tre(),[a,n]=Zte(!1),s=e.data.content;if(r||s.some(f=>f.type===ao))return null;let l=s.find(f=>f.type===Re)??null,i=(f,m)=>Jte(t,f,m),d=()=>{let f=fi(l,i,Qte(ao),ji);o({type:"setData",data:m=>({...m,content:[...gf(m.content,f)]}),recordHistory:!0}),n(!1)};return pm(ore,{tone:"info",title:c("This footer uses the old layout"),action:a?Xte(Yte,{children:[pm(TS,{variant:"primary",size:"sm",onClick:d,children:c("Switch now")}),pm(TS,{variant:"secondary",size:"sm",onClick:()=>n(!1),children:c("Cancel")})]}):pm(TS,{variant:"secondary",size:"sm",onClick:()=>n(!0),children:c("Switch to Box footer")}),children:c("Build this footer out of Boxes and blocks, like a page: the same menus, signup, social links and logo, with the copyright as a Legal Line. Your current footer is kept.")})}import{jsx as OS,jsxs as rre}from"react/jsx-runtime";import{InspectorUpLevel as Y2}from"efficient-easel/chrome";function X2({nodeId:e,part:o,sectionName:t,onUpToSection:r}){let{select:a}=Ku(),n=Cs(e,o,"picture");return rre("div",{children:[o!=="media"?OS(Y2,{inline:!0,name:c(xr.media),onSelect:()=>a(va(e,"media"))}):OS(Y2,{inline:!0,name:c(t),onSelect:r}),OS(Ft,{part:o,motion:n,itemWord:c(xr[o])})]})}import{HintsToggle as hre,SettingsSwitch as Ire,hintsFoldClass as gre}from"efficient-easel/panel";import{useHints as yre}from"efficient-easel/screen/lib/hints";var t5={kind:"header"},AS={kind:"website"},r5={kind:"website",tab:Mf,revealPageGroup:!0},a5={kind:"chat"},n5={kind:"social"},Gi="Part";function Sre(e){return c("Part of {name}",{name:c(e)})}function bre(e,o,t){let r=e.describeNode(o);return{name:t,kindLabel:r?Sre(r.label):c(Gi)}}function wre(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 s5({what:e}){let o=wre(e);return Zr("div",{className:"sf-note",children:[we("p",{children:we("strong",{children:o.title})}),Zr("p",{children:[c("A template is a blueprint \u2014 it has no website of its own, so there is nothing here to change.")," ",o.own]})]})}function _S(e){let o=Kl[e];return{name:xr[e],kindLabel:Gi,icon:o,head:(t,r)=>{if(t.kind!==o)return null;let a=r.describeNode(t.nodeId);if(!a)return null;let n=o5({name:c(Yc(e,a.props)),tier:"part",of:c(a.label)},{partOf:({name:s})=>c("Part of {name}",{name:s})});return{name:n.name,kindLabel:n.kind}},render:(t,r)=>t.kind===o?we(X2,{nodeId:t.nodeId,part:e,sectionName:r.describeNode(t.nodeId)?.label??"Hero",onUpToSection:()=>r.onSelectNode(t.nodeId)}):null}}var Cre={header:{name:"Header",kindLabel:"Site settings",icon:"header",render:(e,o)=>{let t=o.hostPanels?.header;return t?we(t,{placeholderMode:o.capabilities.placeholderFrames,tokenRef:o.tokenRef,siteId:o.siteId,websiteName:o.websiteName,onOpenWebsiteSettings:o.onOpenWebsiteSettings,onAuthExpired:()=>o.notifyParent("storefront-editor:auth-expired")}):null}},website:{name:"Appearance",kindLabel:"Site settings",icon:"website",render:(e,o)=>we(Hf,{initialTab:e.tab,revealPageGroup:e.revealPageGroup,themeFromDocument:!o.capabilities.hasSiteTheme,tokenRef:o.tokenRef,siteId:o.siteId,onNotify:o.onNotify},e.tab??"")},chat:{name:"Live chat",kindLabel:"Site settings",icon:"chat",render:()=>we(UH,{})},social:{name:"Social links",kindLabel:"Site settings",icon:"social",render:()=>we(YH,{unavailable:we(s5,{what:"Social link"})})},ticker:{name:Ma,kindLabel:Gi,icon:"ticker",head:(e,o)=>e.kind==="ticker"?bre(o,e.heroId,c(Ma)):null,render:e=>we(n2,{heroId:e.kind==="ticker"?e.heroId:""})},heroMedia:_S("media"),heroImage:_S("image"),heroImage2:_S("image2"),part:{name:Gi,kindLabel:Gi,icon:"Text",head:(e,o)=>{if(e.kind!=="part")return null;let t=o.describeNode(e.nodeId);if(!t)return null;let{key:r,row:a}=Ut(e.propKey),n=a?Dn(t.fields[r],a):t.fields[r],s=cs(t.type),l=s?Us(s,e.propKey):null,i=s&&l?s[l].label:NO[e.propKey],d=i?c(i):dv(c(xf(hv(n??{},r))),a),f=o5({name:d,tier:"part",of:c(t.label)},{partOf:({name:m})=>c("Part of {name}",{name:m})});return{name:f.name,kindLabel:f.kind}},render:(e,o)=>e.kind==="part"?we(O2,{nodeId:e.nodeId,propKey:e.propKey,onBack:()=>o.onSelectNode(e.nodeId),onEditStyle:o.onOpenSiteStyles}):null}},kre=new Set(["header","website","chat"]);function vre(e,o){if(e==="selection")return null;let t=Cre[e];return kre.has(e)&&!o.hasSiteSettings?{...t,kindLabel:"Not part of a template",render:()=>we(s5,{what:t.name})}:t}function l5({mode:e,onOpenWebsiteSettings:o,onOpenSiteStyles:t,onSelectNode:r,hideNodeActions:a=!1,onNotify:n,onHidePanel:s}){let{capabilities:l,tokenRef:i,notifyParent:d,currentSlug:f,siteId:m,runAuthed:u,readOnly:h,navigate:I}=pre(),{rows:S}=hl(),w=S?.find(de=>de.slug===f)??null,T=nre(),B=Object.keys(T.fields).some(de=>!de.startsWith("_")&&!Gx.includes(de)),{websiteName:P}=vo(),g=ure({readOnly:h}),{select:C}=mre(),{selectedItem:E,getItemById:A,getSelectorForId:N,config:b,appState:_}=are(de=>de),y=fre(b,E?{type:E.type,props:E.props}:null),v=E?yv(y??b.components[E.type]?.fields,E.props):[],O=de=>b.components[de]?.label??de,k=E?N(E.props.id):void 0,L=vre(e.kind,l),M=cre(),K={capabilities:l,tokenRef:i,hostPanels:M.chrome?.panels,describeNode:de=>{let he=A(de);if(!he)return null;let De=b.components[he.type];return{type:he.type,label:De?.label??he.type,fields:De?.fields??{},props:he.props??{}}},siteId:m,websiteName:P??null,notifyParent:d,onNotify:n,onOpenWebsiteSettings:o,onOpenSiteStyles:t,onSelectNode:r},W=L?.head?.(e,K)??null,se=NH({kind:w?.kind,pageName:w?.label}),le=W?.name??(L?c(L.name):E?c(O(E.type)):se.name),ee=W?.kindLabel??(L?c(L.kindLabel):E?k&&k.zone!==e5?c("Block"):c("Section"):se.kindLabel),Ie=L?L.icon:E?E.type:"page",ae=ES(e)&&E?Ni(E.type):null,me=!!E&&!!k&&k.zone===e5&&E.type!==Re&&E.type!==xre,ge=cm(_?.data,E),Ge=()=>{ge||k&&g.duplicateComponent(k.zone,k.index)},Ve=()=>{k&&(g.removeComponent(k.zone,k.index),g.select(null))},Eo=E?b.components[E.type]?.defaultProps?.previewHover:void 0,Ye=ES(e)&&!!E&&!!k&&Eo!==void 0,Je=Ye&&E.props.previewHover===!0,qo=()=>{!E||!k||g.replaceComponent(k.zone,k.index,{...E,props:{...E.props,previewHover:!Je}})},{shown:Qe,setShown:mo}=yre(),$=!!(L||E||B);return Zr("div",{className:`es-sidepanel es-sidepanel--right sf-panel sf-panel--right ${gre(Qe)}`.trim(),children:[we(lre,{icon:we(ja,{type:Ie,size:15}),name:le,kind:ee,actions:!a&&ES(e)&&E&&E.type!==Re?Zr(Z2,{children:[we(J2,{label:c("Duplicate section"),title:ge??void 0,disabled:ge!==null,onClick:Ge,children:we(ire,{size:15})}),me&&l.hasSiteSettings&&we(W2,{node:E,currentSlug:f,siteId:m??void 0,tokenRef:i,runAuthed:u,onNotify:n}),we(J2,{label:c("Remove section"),danger:!0,onClick:Ve,children:we(dre,{size:15})}),s?we(Q2,{side:"right",onHide:s,divider:!0}):null]}):s?we(Q2,{side:"right",onHide:s}):void 0}),Ye&&Zr("div",{className:"sf-preview-pin",children:[Zr("div",{className:"sf-preview-pin-text",children:[we("span",{className:"sf-preview-pin-label",children:c("Preview hover state")}),we("span",{className:"sf-preview-pin-hint",children:c("not shown live")})]}),we(Ire,{checked:Je,onChange:qo,ariaLabel:c("Preview hover state")})]}),Zr("div",{className:"sf-insp-body es-insp-body sf-scroll",children:[L?L.render(e,K):E?Zr(Z2,{children:[E.type===Re&&l.hasSiteSettings&&we(V2,{}),we(cT,{children:we(Ft,{entries:we($2,{parts:v,heading:!1,onOpen:de=>C(jt(E.props.id,de))}),entryCount:vS(v).length,itemWord:le})}),ae&&we(tm,{source:ae,slug:vs(E?.props),menuId:Ju(E?.props)})]}):B?we(Ft,{omit:Gx}):we(sre,{variant:"none",icon:!1,message:c("Select a section or block to edit it.")}),$&&we(hre,{shown:Qe,onChange:mo,label:c("Show hints")})]})]})}import{jsx as p,jsxs as F,Fragment as p5}from"react/jsx-runtime";var so={dark:"var(--sf-thumb-bar-dark)",soft:"var(--sf-thumb-bar-light)",accent:"var(--sf-thumb-accent)",tint:"var(--sf-thumb-accent-tint)",block:"var(--sf-thumb-block)",line:"var(--sf-thumb-border)",card:"var(--sf-thumb-card)"},FS="repeating-linear-gradient(135deg,var(--sf-thumb-hatch1) 0,var(--sf-thumb-hatch1) 5px,var(--sf-thumb-hatch2) 5px,var(--sf-thumb-hatch2) 10px)";function j({w:e,h:o,tone:t="dark",r=2,style:a}){return p("div",{style:{width:e,height:o,borderRadius:r,background:so[t],flex:"none",...a}})}var Pre={Hero:"hero",HeroSingle:"herosingle",IntroBleed:"intro",Collections:"collections",AlloyWheelsListing:"wheelslisting",CatalogFilterBar:"catalogfilterbar",ProductGrid:"productgrid",FitmentFinder:"fitmentfinder",Gallery:"gallery",GalleryB:"gallerygrid",SpecStrip:"specstrip",ProductHero:"producthero",SpecTable:"spectable",ProcessSteps:"processsteps",DetailRows:"detailrows",FitmentTable:"fitmenttable",CompatibleTyres:"compatibletyres",TyreSizes:"tyresizes",TyreFitment:"tyrefitment",EuTyreLabel:"eutyrelabel",RelatedProducts:"productgrid",BundleOffer:"bundleoffer",OrderSummary:"ordersummary",DeliveryOptions:"deliveryoptions",PaymentBadges:"paymentbadges",CheckoutCTA:"checkoutcta",Manifesto:"manifesto",ParagraphsA:"paragraphs",Prose:"prose",StatsParagraph:"statsparagraph",Chart:"chart",Mockup:"mockup",Footprint:"footprint",Timeline:"timeline",TimelineTrack:"timelinetrack",TitleWithButtons:"titlewithbuttons",Split:"split",Cards:"cards",FAQ:"faq",Testimonials:"testimonials",Masthead:"masthead",Breadcrumb:"breadcrumb",CategoryBar:"categorybar",FeaturedCover:"featuredcover",LongRead:"longread",ArticleBody:"articlebody",Series:"series",Subscribe:"subscribe",SubscribeBlogs:"subscribe",Events:"events",DocMasthead:"docmasthead",DocTabs:"doctabs",DocBody:"docbody",DocMetaCards:"docmetacards",Banner:"banner",Stats:"stats",KeyFeatures:"keyfeatures",Logos:"logos",Ticker:"ticker",Countdown:"countdown",Reviews:"reviews",SubmitBuild:"submitbuild",ReviewForm:"reviewform",Form:"form",AppointmentBooking:"appointmentbooking",ContactRouting:"contact",ContactLocations:"contactlocations",CityPictures:"citypictures",CityMaps:"citymaps",Header:"header",Footer:"footer",SectionHeader:"sectionheader",Grid:"grid",Flex:"blanksection",Spacer:"spacer",Divider:"divider",CustomHTML:"customhtml",Heading:"heading",Text:"text",ImageBlock:"image",ButtonBlock:"button",MenuBlock:"menu",EmailFormBlock:"emailform",SocialLogosBlock:"sociallogos",PaymentLogosBlock:"paymentlogos",LegalLineBlock:"legalline",SearchBlock:"search",CartBlock:"cart",CountrySwitchBlock:"countryswitch"},V={position:"absolute",inset:0},x={ink:"var(--sf-thumb-ink)",ink2:"var(--sf-thumb-ink-2)",inkSoft:"var(--sf-thumb-ink-soft)",inkSoft2:"var(--sf-thumb-ink-soft-2)",paper:"var(--sf-thumb-paper)",paper2:"var(--sf-thumb-paper-2)",warm:"var(--sf-thumb-warm)",rust:"var(--sf-thumb-rust)",onInk:"var(--sf-thumb-on-ink)",text:"var(--sf-thumb-scene-text)",muted:"var(--sf-thumb-scene-muted)",rule:"var(--sf-thumb-scene-rule)",mark1:"var(--sf-thumb-mark-1)",mark2:"var(--sf-thumb-mark-2)",card:"var(--sf-thumb-card)",scrim:"var(--sf-thumb-scrim)"},Ae=(e,o,t=160)=>({background:`linear-gradient(${t}deg,${e},${o})`});function gr({size:e,style:o}){let t=Math.max(2,Math.round(e*.13)),r=(a,n,s)=>({position:"absolute",inset:a,background:n,borderRadius:t,...s?{mixBlendMode:s}:null});return F("span",{style:{position:"absolute",display:"block",width:e,height:e,...o},children:[p("span",{style:r("8% 26% 30% 6%",x.mark1)}),p("span",{style:r("26% 6% 8% 30%",x.mark2,"multiply")})]})}function mm({children:e}){return p("span",{style:{fontSize:"4.64cqw",fontWeight:700,letterSpacing:"0.06em",textTransform:"uppercase",color:x.muted},children:e})}function i5({over:e,overTone:o,head:t,headSize:r=11.5,cta:a,ctaBg:n,ctaFg:s,tone:l}){return F(p5,{children:[e&&p("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.16em",fontWeight:700,color:o},children:e}),p("span",{style:{fontSize:r,lineHeight:1.15,fontWeight:700,maxWidth:"78%",color:l},children:t}),a&&p("span",{style:{alignSelf:"flex-start",fontSize:"3.65cqw",letterSpacing:"0.12em",fontWeight:700,padding:"4px 8px",borderRadius:2,marginTop:2,background:n,color:s},children:a})]})}function BS({name:e,price:o}){return F("div",{style:{display:"flex",flexDirection:"column",gap:2,minWidth:0},children:[p("div",{style:{flex:1,minHeight:0,borderRadius:3,position:"relative",overflow:"hidden",...Ae(x.paper,x.paper2,150)},children:p(gr,{size:34,style:{left:"50%",top:"50%",transform:"translate(-50%,-50%)"}})}),p("span",{style:{fontSize:"3.65cqw",fontWeight:600,color:x.text},children:e}),p("span",{style:{fontSize:"3.65cqw",color:x.muted},children:o})]})}function Ir({k:e,v:o,ok:t}){return F("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",gap:6,padding:"3.5px 2px",borderBottom:`1px solid ${x.rule}`,fontSize:"3.98cqw",color:x.muted},children:[p("span",{children:e}),F("span",{style:{display:"flex",gap:6,alignItems:"center"},children:[p("b",{style:{color:x.text,fontWeight:700},children:o}),t&&p("span",{style:{color:x.rust,fontWeight:700},children:"\u2713"})]})]})}function ke({title:e,children:o}){return F("div",{style:{...V,background:x.card,padding:"9px 10px",display:"flex",flexDirection:"column",gap:6},children:[p(mm,{children:e}),o]})}function d5({size:e=14}){return p("span",{style:{width:e,height:e,borderRadius:"50%",flex:"none",display:"block",background:`linear-gradient(150deg,${x.mark1},${x.mark2})`}})}function LS({filled:e=5,size:o=6}){return F("span",{style:{fontSize:o,letterSpacing:"0.06em",color:x.rust,lineHeight:1},children:["\u2605".repeat(e),p("span",{style:{color:x.mark1},children:"\u2605".repeat(5-e)})]})}function Ki({n:e,label:o,tone:t=x.text}){return F("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:1,minWidth:0},children:[p("b",{style:{fontSize:"8.16cqw",lineHeight:1,color:t},children:e}),p("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.08em",textTransform:"uppercase",opacity:.62,color:t},children:o})]})}function to({children:e,w:o}){return p("span",{style:{fontSize:"3.98cqw",lineHeight:1.45,color:x.muted,width:o,display:"block"},children:e})}function um({label:e,w:o="100%",filled:t}){return F("div",{style:{width:o,display:"flex",flexDirection:"column",gap:2},children:[p("span",{style:{fontSize:"3.32cqw",letterSpacing:"0.08em",textTransform:"uppercase",color:x.muted},children:e}),p("span",{style:{height:9,borderRadius:3,border:`1px solid ${x.rule}`,background:t?x.paper:x.card}})]})}function f5({children:e}){return p("span",{style:{alignSelf:"flex-start",fontSize:"3.65cqw",letterSpacing:"0.12em",fontWeight:700,padding:"5px 9px",borderRadius:2,background:x.text,color:x.onInk},children:e})}var Tre={wheelslisting:p(ke,{title:"All wheels",children:p("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[["Ridge 19","20\xD79 +12","$365"],["Ridge 29","18\xD79 +20","$410"],["Ridge 39","17\xD78 \u221210","$455"]].map(([e,o,t])=>F("div",{style:{display:"flex",alignItems:"center",gap:6},children:[p("span",{style:{width:20,height:15,borderRadius:3,flex:"none",position:"relative",overflow:"hidden",...Ae(x.paper,x.paper2,150)},children:p(gr,{size:12,style:{left:"50%",top:"50%",transform:"translate(-50%,-50%)"}})}),p("b",{style:{flex:1,fontSize:"4.31cqw",color:x.text},children:e}),p("span",{style:{fontSize:"3.65cqw",color:x.muted},children:o}),p("b",{style:{fontSize:"4.31cqw",color:x.text,width:26,textAlign:"right"},children:t})]},e))})}),catalogfilterbar:F("div",{style:{...V,background:x.card,display:"flex",flexDirection:"column",justifyContent:"center",gap:7,padding:"0 11px"},children:[F("div",{style:{display:"flex",gap:4,alignItems:"center"},children:[["20 inch","6\xD7139.7","Black"].map(e=>F("span",{style:{fontSize:"3.65cqw",fontWeight:600,padding:"4px 7px",borderRadius:99,background:x.text,color:x.onInk,display:"flex",gap:4,alignItems:"center"},children:[e,p("span",{style:{opacity:.6},children:"\u2715"})]},e)),p("span",{style:{fontSize:"3.65cqw",color:x.rust,fontWeight:700},children:"Clear"})]}),F("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[p("span",{style:{fontSize:"3.65cqw",color:x.muted},children:"128 results"}),p("span",{style:{fontSize:"3.65cqw",color:x.muted,border:`1px solid ${x.rule}`,borderRadius:3,padding:"3px 6px"},children:"Sort: Price \u25BE"})]})]}),fitmentfinder:F("div",{style:{...V,padding:"10px 12px",display:"flex",flexDirection:"column",gap:6,justifyContent:"center",...Ae(x.ink,x.inkSoft)},children:[p("span",{style:{fontSize:"5.31cqw",fontWeight:700,color:x.onInk},children:"Will it fit your rig?"}),F("div",{style:{display:"flex",gap:4},children:[["2021","Toyota","Hilux"].map(e=>F("span",{style:{flex:1,fontSize:"3.65cqw",color:x.text,background:x.card,borderRadius:3,padding:"5px 6px",display:"flex",justifyContent:"space-between"},children:[e," ",p("span",{style:{color:x.muted},children:"\u25BE"})]},e)),p("span",{style:{fontSize:"3.65cqw",fontWeight:700,letterSpacing:"0.08em",background:x.warm,color:x.ink,borderRadius:3,padding:"5px 7px"},children:"GO"})]})]}),compatibletyres:p(ke,{title:"Tyres that suit",children:p("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(3,1fr)",gap:5,minHeight:0},children:[["Ridge Grappler","$489"],["Trail Grappler","$525"],["Terra Grappler","$438"]].map(([e,o])=>F("div",{style:{display:"flex",flexDirection:"column",gap:2,minWidth:0},children:[p("div",{style:{flex:1,minHeight:0,borderRadius:3,position:"relative",overflow:"hidden",background:x.ink},children:p("span",{style:{position:"absolute",left:"50%",top:"50%",transform:"translate(-50%,-50%)",width:26,height:26,borderRadius:"50%",border:`5px solid ${x.mark2}`,boxSizing:"border-box"}})}),p("span",{style:{fontSize:"3.32cqw",fontWeight:600,color:x.text,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},children:e}),p("span",{style:{fontSize:"3.32cqw",color:x.muted},children:o})]},e))})}),tyresizes:p(ke,{title:"Available sizes",children:p("div",{style:{flex:1,display:"flex",flexWrap:"wrap",gap:4,alignContent:"center"},children:["265/65R17","285/70R17","265/60R18","275/55R20"].map((e,o)=>p("span",{style:{fontSize:"3.65cqw",fontWeight:600,padding:"5px 7px",borderRadius:3,border:`1px solid ${o===0?x.rust:x.rule}`,color:o===0?x.rust:x.text,background:o===0?x.paper:x.card},children:e},e))})}),tyrefitment:F(ke,{title:"Will it fit your car?",children:[p("div",{style:{display:"flex",gap:3},children:["Make","Model","Year","Trim"].map(e=>F("span",{style:{flex:1,minWidth:0,fontSize:"3.32cqw",color:x.muted,background:x.paper,border:`1px solid ${x.rule}`,borderRadius:3,padding:"4px 5px",display:"flex",justifyContent:"space-between",gap:2,overflow:"hidden",whiteSpace:"nowrap"},children:[e," ",p("span",{style:{color:x.muted},children:"\u25BE"})]},e))}),p("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:2,justifyContent:"center",minHeight:0},children:[["265/65R17","Fits",!0],["285/70R17","Not your size",!1]].map(([e,o,t])=>F("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"baseline",gap:6,borderTop:`1px solid ${x.rule}`,paddingTop:3},children:[p("span",{style:{fontSize:"3.32cqw",fontWeight:600,color:x.text},children:e}),p("span",{style:{fontSize:"3.32cqw",fontWeight:t?700:400,letterSpacing:"0.06em",color:t?x.warm:x.muted},children:o})]},e))})]}),eutyrelabel:F("div",{style:{...V,background:x.card,padding:"9px 11px",display:"flex",gap:8,alignItems:"center"},children:[p("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:1.5},children:[["A","42%"],["B","56%"],["C","70%"],["D","84%"]].map(([e,o],t)=>F("div",{style:{display:"flex",alignItems:"center",gap:3},children:[p("span",{style:{width:o,height:6,borderRadius:"0 2px 2px 0",background:t===1?x.rust:x.mark1}}),p("span",{style:{fontSize:"3.32cqw",fontWeight:700,color:t===1?x.rust:x.muted},children:e})]},e))}),F("div",{style:{flex:"none",display:"flex",flexDirection:"column",gap:3,alignItems:"center"},children:[p("b",{style:{fontSize:"6.63cqw",lineHeight:1,color:x.text},children:"72"}),p("span",{style:{fontSize:"3.32cqw",letterSpacing:"0.08em",color:x.muted},children:"dB"})]})]}),bundleoffer:F("div",{style:{...V,background:x.paper,padding:"9px 11px",display:"flex",flexDirection:"column",gap:5,justifyContent:"center"},children:[p(mm,{children:"Buy it with"}),F("div",{style:{display:"flex",alignItems:"center",gap:5},children:[[0,1].map(e=>p("span",{style:{width:26,height:22,borderRadius:3,flex:"none",position:"relative",overflow:"hidden",background:x.card},children:p(gr,{size:17,style:{left:"50%",top:"50%",transform:"translate(-50%,-50%)"}})},e)),p("span",{style:{fontSize:"5.69cqw",fontWeight:700,color:x.muted},children:"+"}),F("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:1},children:[p("span",{style:{fontSize:"3.65cqw",color:x.muted,textDecoration:"line-through"},children:"$1,024"}),p("b",{style:{fontSize:"6.02cqw",color:x.rust,lineHeight:1},children:"$899"})]})]})]}),checkoutcta:F("div",{style:{...V,display:"flex",alignItems:"center",justifyContent:"space-between",padding:"0 13px",gap:8,...Ae(x.ink,x.ink2)},children:[F("div",{style:{display:"flex",flexDirection:"column",gap:2},children:[p("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.12em",color:x.warm,fontWeight:700},children:"READY TO ORDER"}),p("b",{style:{fontSize:"6.63cqw",color:x.onInk,lineHeight:1},children:"$1,956"}),p("span",{style:{fontSize:"3.65cqw",color:x.onInk,opacity:.65},children:"4 items \xB7 fitted free"})]}),p("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.12em",fontWeight:700,padding:"6px 10px",borderRadius:2,background:x.warm,color:x.ink,flex:"none"},children:"CHECKOUT"})]}),contact:p(ke,{title:"Who do you need?",children:p("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[["Fitment help","the workshop"],["Order status","the front desk"],["Trade accounts","sales"]].map(([e,o])=>F("div",{style:{display:"flex",alignItems:"center",gap:5},children:[p("b",{style:{flex:1,fontSize:"4.31cqw",color:x.text},children:e}),p("span",{style:{fontSize:"3.65cqw",color:x.muted},children:o}),p("span",{style:{fontSize:"4.64cqw",color:x.rust,lineHeight:1},children:"\u203A"})]},e))})}),contactlocations:p(ke,{title:"Find us",children:p("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(2,1fr)",gap:5,minHeight:0},children:[["Brisbane","7 Kerry Rd","Mon\u2013Sat"],["Townsville","12 Enterprise","Mon\u2013Fri"]].map(([e,o,t])=>F("div",{style:{border:`1px solid ${x.rule}`,borderRadius:4,padding:"5px 6px",display:"flex",flexDirection:"column",gap:1},children:[p("b",{style:{fontSize:"4.31cqw",color:x.text},children:e}),p("span",{style:{fontSize:"3.32cqw",color:x.muted},children:o}),p("span",{style:{fontSize:"3.32cqw",color:x.rust,fontWeight:700},children:t})]},e))})}),citypictures:p(ke,{title:"Our studios",children:F("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:3,minHeight:0},children:[p("span",{style:{fontSize:"3.32cqw",letterSpacing:"0.12em",fontWeight:700,color:x.muted},children:"A \xB7 AMERICAS"}),p("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(3,1fr)",gap:4,minHeight:0},children:["Los Angeles","Miami","Toronto"].map(e=>F("div",{style:{position:"relative",minHeight:0},children:[p(j,{r:3,style:{...V,background:`linear-gradient(transparent 45%,${x.scrim} 45%),${Ae(x.ink,x.inkSoft2).background}`}}),p("b",{style:{position:"absolute",left:5,bottom:4,fontSize:"3.65cqw",color:x.onInk},children:e})]},e))})]})}),citymaps:p(ke,{title:"Find us",children:p("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(2,1fr)",gap:5,minHeight:0},children:[["Brisbane","7 Kerry Rd"],["Townsville","12 Enterprise"]].map(([e,o])=>F("div",{style:{position:"relative",padding:"4px 5px",display:"flex",flexDirection:"column",gap:2,minHeight:0},children:[p(j,{r:4,style:{...V,background:"none",border:`1px solid ${x.rule}`}}),p("b",{style:{position:"relative",fontSize:"4.31cqw",color:x.text},children:e}),p("span",{style:{position:"relative",fontSize:"3.32cqw",color:x.muted},children:o}),F("div",{style:{flex:1,minHeight:0,position:"relative"},children:[p(j,{r:3,style:{...V,...Ae(x.paper,x.paper2,150)}}),p(j,{w:"60%",h:"60%",r:8,style:{position:"absolute",left:"12%",top:"20%",background:x.mark1,opacity:.75}}),p(j,{w:6,h:6,r:3,style:{position:"absolute",left:"44%",top:"34%",background:x.rust}})]})]},e))})}),form:p(ke,{title:"Send us a message",children:F("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[F("div",{style:{display:"flex",gap:5},children:[p(um,{label:"Name"}),p(um,{label:"Email"})]}),p(um,{label:"Message",filled:!0}),p(f5,{children:"SEND"})]})}),appointmentbooking:p(ke,{title:"Book a fitting",children:F("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[p("div",{style:{display:"flex",gap:3},children:["Mon","Tue","Wed","Thu"].map((e,o)=>p("span",{style:{flex:1,textAlign:"center",fontSize:"3.32cqw",fontWeight:o===2?700:500,padding:"4px 0",borderRadius:3,background:o===2?x.text:x.paper,color:o===2?x.onInk:x.muted},children:e},e))}),p("div",{style:{display:"flex",gap:3},children:["8:00","10:30","13:00","15:30"].map((e,o)=>p("span",{style:{flex:1,textAlign:"center",fontSize:"3.32cqw",padding:"4px 0",borderRadius:3,border:`1px solid ${o===1?x.rust:x.rule}`,color:o===1?x.rust:x.muted,background:o===3?x.paper:x.card,textDecoration:o===3?"line-through":"none"},children:e},e))})]})}),reviewform:p(ke,{title:"Leave a review",children:F("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:5,justifyContent:"center"},children:[p(LS,{filled:4,size:14}),p(um,{label:"Your review",filled:!0}),p(f5,{children:"POST"})]})}),submitbuild:p(ke,{title:"Show us your build",children:F("div",{style:{flex:1,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:3,border:`1px dashed ${x.mark1}`,borderRadius:5,background:x.paper},children:[p("span",{style:{fontSize:"6.63cqw",lineHeight:1,color:x.rust,fontWeight:300},children:"+"}),p("span",{style:{fontSize:"3.65cqw",color:x.muted},children:"Drop a photo of your rig"})]})}),masthead:F("div",{style:{...V,background:x.paper,display:"flex",flexDirection:"column",justifyContent:"center",padding:"0 13px",gap:5},children:[p("span",{style:{height:1.5,background:x.text}}),p("span",{style:{fontSize:"7.65cqw",fontWeight:800,letterSpacing:"0.02em",color:x.text,lineHeight:1},children:"THE TRACK"}),F("div",{style:{display:"flex",justifyContent:"space-between",fontSize:"3.65cqw",letterSpacing:"0.1em",textTransform:"uppercase",color:x.muted},children:[p("span",{children:"Issue 14"}),p("span",{children:"Spring 2026"})]}),p("span",{style:{height:1,background:x.rule}})]}),featuredcover:F("div",{style:{...V,overflow:"hidden",...Ae(x.ink,x.inkSoft2)},children:[p(gr,{size:92,style:{right:-18,top:-14}}),p("div",{style:{position:"absolute",inset:0,background:`linear-gradient(0deg,${x.scrim},transparent 62%)`}}),F("div",{style:{position:"absolute",left:12,right:12,bottom:11,display:"flex",flexDirection:"column",gap:3},children:[p("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.16em",fontWeight:700,color:x.warm},children:"FEATURE"}),p("span",{style:{fontSize:"6.16cqw",lineHeight:1.15,fontWeight:700,color:x.onInk},children:"Four days on the Madigan Line"})]})]}),longread:F("div",{style:{...V,background:x.card,padding:"10px 14px",display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[p("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.14em",fontWeight:700,color:x.rust},children:"12 MIN READ"}),p("span",{style:{fontSize:"6.02cqw",lineHeight:1.15,fontWeight:700,color:x.text},children:"What breaks first, and why"}),p(to,{children:"Every failure starts in the same place:"}),p(to,{w:"80%",children:"the bolt nobody re-torqued."})]}),articlebody:F("div",{style:{...V,background:x.card,padding:"10px 22px",display:"flex",flexDirection:"column",gap:4,justifyContent:"center",alignItems:"center",textAlign:"center"},children:[p("span",{style:{fontSize:"4.97cqw",lineHeight:1.2,fontWeight:700,color:x.text},children:"Why offset beats width"}),p(to,{w:"100%",children:"A wider wheel adds grip only if the offset still"}),p(to,{w:"88%",children:"clears the arch, so the offset is chosen first."}),p(to,{w:"80%",children:"Width follows from the space left."})]}),series:p(ke,{title:"Recurring columns",children:p("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:5,justifyContent:"center"},children:[["Shed Notes","Monthly"],["Track Tested","Fortnightly"],["Reader Rigs","Weekly"]].map(([e,o])=>F("div",{style:{display:"flex",alignItems:"center",gap:6},children:[p("span",{style:{width:3,height:12,borderRadius:2,background:x.rust,flex:"none"}}),p("b",{style:{flex:1,fontSize:"4.64cqw",color:x.text},children:e}),p("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.08em",textTransform:"uppercase",color:x.muted},children:o})]},e))})}),events:p(ke,{title:"Latest posts",children:p("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:5,justifyContent:"center"},children:[[x.inkSoft,x.inkSoft2,"Madigan Line, four days"],[x.rust,x.warm,"Why offset beats width"]].map(([e,o,t])=>F("div",{style:{display:"flex",gap:6,alignItems:"center"},children:[p("span",{style:{width:24,height:18,borderRadius:3,flex:"none",...Ae(e,o,150)}}),F("div",{style:{display:"flex",flexDirection:"column",gap:1,minWidth:0},children:[p("b",{style:{fontSize:"4.31cqw",color:x.text},children:t}),p("span",{style:{fontSize:"3.65cqw",color:x.muted},children:"4 Sep \xB7 Shed Notes"})]})]},t))})}),docmasthead:F("div",{style:{...V,background:x.card,padding:"12px 14px",display:"flex",flexDirection:"column",gap:5,justifyContent:"center"},children:[p("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.16em",fontWeight:700,color:x.muted},children:"POLICY"}),p("span",{style:{fontSize:"6.49cqw",fontWeight:700,color:x.text,lineHeight:1.1},children:"Returns & refunds"}),p("span",{style:{fontSize:"3.65cqw",color:x.muted},children:"Version 3 \xB7 Updated 4 Sep 2026"}),p("span",{style:{height:2,width:26,background:x.rust,borderRadius:1}})]}),docbody:p("div",{style:{...V,background:x.card,padding:"9px 13px",display:"flex",flexDirection:"column",gap:3,justifyContent:"center"},children:[["1.","You may return an unfitted wheel within 30 days."],["2.","Fitted wheels are covered by the structural warranty."],["3.","Freight on a change of mind is yours."]].map(([e,o])=>F("div",{style:{display:"flex",gap:5},children:[p("b",{style:{fontSize:"3.98cqw",color:x.rust,flex:"none"},children:e}),p(to,{children:o})]},e))}),docmetacards:p(ke,{title:"At a glance",children:p("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(2,1fr)",gap:5,minHeight:0},children:[["30 days","To return"],["5 years","Structural"],["Free","Fitting"],["48 hrs","Dispatch"]].map(([e,o])=>F("div",{style:{border:`1px solid ${x.rule}`,borderRadius:4,padding:"5px 6px",display:"flex",flexDirection:"column",gap:1},children:[p("b",{style:{fontSize:"5.31cqw",color:x.text,lineHeight:1},children:e}),p("span",{style:{fontSize:"3.32cqw",letterSpacing:"0.08em",textTransform:"uppercase",color:x.muted},children:o})]},o))})}),doctabs:F("div",{style:{...V,background:x.card,display:"flex",flexDirection:"column",justifyContent:"center",gap:0,padding:"0 11px"},children:[p("div",{style:{display:"flex",gap:0},children:["Returns","Warranty","Shipping"].map((e,o)=>p("span",{style:{fontSize:"3.98cqw",fontWeight:o===0?700:500,padding:"5px 8px",color:o===0?x.text:x.muted,background:o===0?x.paper:"transparent",borderRadius:"4px 4px 0 0",border:`1px solid ${o===0?x.rule:"transparent"}`,borderBottom:"none"},children:e},e))}),p("span",{style:{height:1,background:x.rule}}),F("div",{style:{paddingTop:6,display:"flex",flexDirection:"column",gap:2},children:[p(to,{children:"Unfitted wheels come back within 30 days, no questions."}),p(to,{w:"58%",children:"Freight on a change of mind is yours."})]})]}),paragraphs:F("div",{style:{...V,background:x.card,padding:"11px 14px",display:"flex",gap:10,alignItems:"center"},children:[p("span",{style:{flex:1,fontSize:"5.86cqw",lineHeight:1.2,fontWeight:700,color:x.text},children:"The right wheel is the boring one."}),F("div",{style:{flex:1,display:"flex",flexDirection:"column"},children:[p(to,{children:"Forged, correctly offset, rated for what you actually"}),p(to,{children:"carry. Everything else is a photograph."})]})]}),keyfeatures:p(ke,{title:"Key features",children:p("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:["Flow-formed barrel","1250 kg per corner","Hub-centric fit"].map(e=>F("div",{style:{display:"flex",gap:6,alignItems:"center"},children:[p("span",{style:{fontSize:"4.64cqw",color:x.rust,fontWeight:700,lineHeight:1},children:"\u2713"}),p("span",{style:{fontSize:"4.31cqw",color:x.text},children:e})]},e))})}),statsparagraph:F("div",{style:{...V,background:x.paper,padding:"10px 12px",display:"flex",gap:10,alignItems:"center"},children:[F("div",{style:{flex:"none",display:"flex",flexDirection:"column",gap:5},children:[p(Ki,{n:"27k",label:"Rigs"}),p(Ki,{n:"4.9",label:"Rating"})]}),F("div",{style:{flex:1,display:"flex",flexDirection:"column"},children:[p(to,{children:"Twelve years of fitting the same three questions, and the"}),p(to,{children:"answer has not moved: load rating, offset, then looks."})]})]}),chart:F(ke,{title:"Load vs weight",children:[p("div",{style:{flex:1,display:"flex",alignItems:"flex-end",gap:5,paddingBottom:2},children:[38,62,84,71,96].map((e,o)=>p("span",{style:{flex:1,height:`${e}%`,borderRadius:"2px 2px 0 0",background:o===4?x.rust:x.mark1}},o))}),p("span",{style:{height:1,background:x.rule,marginTop:-4}})]}),mockup:p("div",{style:{...V,overflow:"hidden",display:"flex",alignItems:"center",justifyContent:"center",...Ae(x.inkSoft,x.ink)},children:F("div",{style:{width:"72%",height:"74%",borderRadius:4,overflow:"hidden",background:x.card,boxShadow:`0 6px 14px ${x.scrim}`},children:[p("div",{style:{height:9,background:x.paper,display:"flex",alignItems:"center",gap:2,padding:"0 4px"},children:[0,1,2].map(e=>p("span",{style:{width:2.5,height:2.5,borderRadius:"50%",background:x.mark1}},e))}),F("div",{style:{padding:5,display:"flex",flexDirection:"column",gap:3},children:[p("span",{style:{height:4,width:"56%",borderRadius:1,background:x.mark2}}),p("span",{style:{height:14,borderRadius:2,...Ae(x.paper,x.paper2,150)}}),p("span",{style:{height:3,width:"38%",borderRadius:1,background:x.rust}})]})]})}),manifesto:p("div",{style:{...V,overflow:"hidden",display:"flex",alignItems:"center",padding:"0 16px",...Ae(x.ink,x.ink2)},children:F("span",{style:{fontSize:"6.63cqw",lineHeight:1.2,fontWeight:700,color:x.onInk},children:["We build for the ",p("span",{style:{color:x.warm},children:"last"})," ten percent of the track."]})}),timeline:p(ke,{title:"Our story",children:p("div",{style:{flex:1,display:"flex",flexDirection:"column",justifyContent:"center",gap:6,paddingLeft:4},children:[["1998","One shed, one lathe."],["2009","First forged rim."],["2024","27,000 rigs on."]].map(([e,o],t)=>F("div",{style:{display:"flex",gap:7,alignItems:"flex-start",position:"relative"},children:[t<2&&p("span",{style:{position:"absolute",left:3,top:8,bottom:-8,width:1,background:x.rule}}),p("span",{style:{width:7,height:7,borderRadius:"50%",flex:"none",marginTop:1,background:x.rust,zIndex:1}}),F("div",{style:{display:"flex",flexDirection:"column",gap:0,minWidth:0},children:[p("b",{style:{fontSize:"4.64cqw",color:x.text},children:e}),p(to,{children:o})]})]},e))})}),timelinetrack:F("div",{style:{...V,padding:"0 12px",display:"flex",flexDirection:"column",gap:10,justifyContent:"center",...Ae(x.ink,x.inkSoft)},children:[p("span",{style:{fontSize:"3.98cqw",fontWeight:700,letterSpacing:"0.14em",textTransform:"uppercase",color:x.warm},children:"Milestones"}),F("div",{style:{position:"relative",display:"flex",justifyContent:"space-between",paddingTop:7},children:[p("span",{style:{position:"absolute",left:0,right:0,top:3,height:1,background:x.mark2,opacity:.55}}),["1998","2009","2016","2024"].map((e,o)=>F("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:3,position:"relative"},children:[p("span",{style:{position:"absolute",top:-7,width:6,height:6,borderRadius:"50%",background:o===3?x.warm:x.mark1}}),p("span",{style:{fontSize:"4.31cqw",fontWeight:700,color:o===3?x.warm:x.onInk,opacity:o===3?1:.75},children:e})]},e))]})]}),footprint:F("div",{style:{...V,overflow:"hidden",...Ae(x.paper,x.paper2,150)},children:[p("span",{style:{position:"absolute",left:"8%",top:"18%",width:"62%",height:"64%",borderRadius:"48% 52% 40% 60% / 55% 45% 55% 45%",background:x.mark1,opacity:.75}}),p("span",{style:{position:"absolute",left:"52%",top:"52%",width:"34%",height:"34%",borderRadius:"58% 42% 55% 45% / 45% 58% 42% 55%",background:x.mark2,opacity:.55}}),[["26%","38%"],["44%","58%"],["62%","34%"]].map(([e,o])=>p("span",{style:{position:"absolute",left:e,top:o,width:7,height:7,borderRadius:"50% 50% 50% 0",transform:"rotate(-45deg)",background:x.rust}},e)),p("span",{style:{position:"absolute",left:11,bottom:9,fontSize:"4.64cqw",fontWeight:700,color:x.text},children:"3 fitting bays"})]}),banner:F("div",{style:{...V,display:"flex",alignItems:"center",justifyContent:"space-between",padding:"0 13px",gap:8,background:x.rust},children:[F("div",{style:{display:"flex",flexDirection:"column",gap:2},children:[p("b",{style:{fontSize:"6.02cqw",color:x.onInk},children:"End of season \xB7 20% off"}),p("span",{style:{fontSize:"3.98cqw",color:x.onInk,opacity:.8},children:"Fitted free, this month only."})]}),p("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.12em",fontWeight:700,padding:"5px 9px",borderRadius:2,background:x.onInk,color:x.text,flex:"none"},children:"SHOP"})]}),titlewithbuttons:F("div",{style:{...V,background:x.paper,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:7,padding:"0 14px",textAlign:"center"},children:[p("span",{style:{fontSize:"6.49cqw",lineHeight:1.15,fontWeight:700,color:x.text},children:"Not sure what fits?"}),F("div",{style:{display:"flex",gap:5},children:[p("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.12em",fontWeight:700,padding:"5px 9px",borderRadius:2,background:x.text,color:x.onInk},children:"FIND MY FIT"}),p("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.12em",fontWeight:700,padding:"5px 9px",borderRadius:2,border:`1px solid ${x.text}`,color:x.text},children:"CALL US"})]})]}),ticker:p("div",{style:{...V,overflow:"hidden",background:x.ink,display:"flex",alignItems:"center"},children:p("span",{style:{whiteSpace:"nowrap",fontSize:"6.29cqw",fontWeight:800,letterSpacing:"0.06em",color:x.warm,marginLeft:-14},children:"FREE FITTING \xB7 48HR DISPATCH \xB7 FREE FITTING \xB7 48HR DISPATCH"})}),countdown:F("div",{style:{...V,padding:"10px 12px",display:"flex",flexDirection:"column",alignItems:"center",gap:6,justifyContent:"center",...Ae(x.ink,x.ink2)},children:[p("span",{style:{fontSize:"3.65cqw",fontWeight:700,letterSpacing:"0.16em",textTransform:"uppercase",color:x.muted},children:"Back online in"}),p("div",{style:{display:"flex",alignItems:"flex-start",gap:5},children:[["23","Hours"],["59","Minutes"],["48","Seconds"]].map(([e,o],t)=>F("div",{style:{display:"flex",alignItems:"flex-start",gap:5},children:[t>0&&p("b",{style:{fontSize:"9.5cqw",lineHeight:1,color:x.warm},children:":"}),F("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:2},children:[p("b",{style:{fontSize:"11.5cqw",lineHeight:1,color:x.onInk,fontVariantNumeric:"tabular-nums"},children:e}),p("span",{style:{fontSize:"3.2cqw",letterSpacing:"0.1em",textTransform:"uppercase",opacity:.62,color:x.onInk},children:o})]})]},o))})]}),breadcrumb:p("div",{style:{...V,background:x.card,display:"flex",alignItems:"center",padding:"0 13px"},children:F("span",{style:{fontSize:"4.64cqw",color:x.muted},children:["Home ",p("span",{style:{opacity:.5},children:"/"})," Wheels ",p("span",{style:{opacity:.5},children:"/"})," ",p("span",{style:{color:x.text,fontWeight:700},children:"20 inch"})]})}),categorybar:F("div",{style:{...V,background:x.card,display:"flex",flexDirection:"column",justifyContent:"center",gap:7,padding:"0 11px"},children:[p("div",{style:{display:"flex",gap:5},children:["All","Wheels","Tyres","Lift"].map((e,o)=>p("span",{style:{fontSize:"3.98cqw",fontWeight:o===0?700:500,padding:"4px 7px",borderRadius:99,background:o===0?x.text:x.paper,color:o===0?x.onInk:x.muted},children:e},e))}),p("span",{style:{height:1,background:x.rule}})]}),intro:F("div",{style:{...V,overflow:"hidden",background:x.card},children:[p("div",{style:{position:"absolute",inset:0,...Ae(x.ink,x.inkSoft2)}}),p(gr,{size:64,style:{right:8,top:6}}),F("div",{style:{position:"absolute",left:16,right:16,bottom:8,top:"46%",background:x.paper,borderRadius:6,padding:"8px 11px",display:"flex",flexDirection:"column",gap:2,boxShadow:`0 -4px 10px ${x.scrim}`},children:[p("span",{style:{fontSize:"5.69cqw",fontWeight:700,color:x.text},children:"Since 1998"}),p(to,{children:"One shed, one lathe, one idea."}),p(to,{w:"66%",children:"It turned out to be right."})]})]}),gallerygrid:p(ke,{title:"Photo gallery",children:p("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(3,1fr)",gridTemplateRows:"repeat(2,1fr)",gap:4,minHeight:0},children:[[x.rust,x.warm],[x.inkSoft,x.ink],[x.paper2,x.mark2],[x.ink,x.inkSoft2],[x.warm,x.paper2],[x.mark2,x.inkSoft]].map(([e,o],t)=>p("div",{style:{borderRadius:3,...Ae(e,o,140+t*22)}},t))})}),gallery:F(ke,{title:"Gallery",children:[p("div",{style:{display:"flex",gap:8,alignItems:"center",marginTop:-2},children:["On the truck","Studio","Close-ups"].map((e,o)=>p("span",{style:{fontSize:"3.98cqw",fontWeight:o===0?700:500,color:o===0?x.text:x.muted,borderBottom:`1.5px solid ${o===0?x.rust:"transparent"}`,paddingBottom:2},children:e},e))}),p("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(3,1fr)",gap:4,minHeight:0},children:[[x.rust,x.warm],[x.ink,x.inkSoft],[x.paper2,x.mark2]].map(([e,o],t)=>p("div",{style:{borderRadius:3,...Ae(e,o,150+t*20)}},t))})]}),ordersummary:F(ke,{title:"Order summary",children:[F("div",{style:{display:"flex",gap:6,alignItems:"center",paddingBottom:4},children:[p("span",{style:{width:26,height:26,borderRadius:4,position:"relative",overflow:"hidden",flex:"none",...Ae(x.paper,x.paper2,150)},children:p(gr,{size:18,style:{left:"50%",top:"50%",transform:"translate(-50%,-50%)"}})}),F("div",{style:{display:"flex",flexDirection:"column",gap:1,minWidth:0},children:[p("b",{style:{fontSize:"4.31cqw",color:x.text},children:"Ridge Grappler"}),p("span",{style:{fontSize:"3.65cqw",color:x.muted},children:"20\xD79 +12 \xB7 qty 4"})]})]}),F("div",{style:{flex:1,minHeight:0,display:"flex",flexDirection:"column",justifyContent:"center"},children:[p(Ir,{k:"Subtotal",v:"$1,956"}),p(Ir,{k:"Fitting",v:"Free"}),F("div",{style:{display:"flex",justifyContent:"space-between",paddingTop:5,fontSize:"4.64cqw"},children:[p("b",{style:{color:x.text},children:"Total"}),p("b",{style:{color:x.text,fontSize:"6.02cqw"},children:"$1,956"})]})]})]}),deliveryoptions:p(ke,{title:"Delivery",children:p("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[["Standard","3\u20135 days","Free",!0],["Express","Next day","$19",!1]].map(([e,o,t,r])=>F("div",{style:{display:"flex",alignItems:"center",gap:6,padding:"5px 6px",borderRadius:4,border:`1px solid ${r?x.rust:x.rule}`,background:r?x.paper:x.card},children:[p("span",{style:{width:7,height:7,borderRadius:"50%",flex:"none",border:`1.5px solid ${r?x.rust:x.mark1}`,background:r?x.rust:"transparent"}}),p("span",{style:{flex:1,fontSize:"4.31cqw",fontWeight:600,color:x.text},children:e}),p("span",{style:{fontSize:"3.98cqw",color:x.muted},children:o}),p("b",{style:{fontSize:"4.31cqw",color:x.text},children:t})]},e))})}),paymentbadges:F("div",{style:{...V,background:x.paper,display:"flex",flexDirection:"column",gap:8,justifyContent:"center",padding:"0 12px"},children:[p(mm,{children:"Ways to pay"}),p("div",{style:{display:"flex",gap:5},children:[["VISA",x.ink],["MC",x.rust],["AMEX",x.inkSoft],["PayPal",x.ink2]].map(([e,o])=>p("span",{style:{flex:1,textAlign:"center",fontSize:"3.65cqw",fontWeight:800,letterSpacing:"0.06em",color:x.onInk,borderRadius:3,padding:"6px 0",background:o},children:e},e))})]}),stats:F("div",{style:{...V,padding:"10px 12px",display:"flex",flexDirection:"column",gap:9,justifyContent:"center",...Ae(x.ink,x.ink2)},children:[p("span",{style:{fontSize:"3.98cqw",fontWeight:700,letterSpacing:"0.14em",textTransform:"uppercase",color:x.warm},children:"By the numbers"}),F("div",{style:{display:"flex",gap:8},children:[p(Ki,{n:"27k",label:"Rigs fitted",tone:x.onInk}),p(Ki,{n:"12",label:"Years",tone:x.onInk}),p(Ki,{n:"4.9",label:"Avg rating",tone:x.warm})]})]}),testimonials:F("div",{style:{...V,overflow:"hidden",background:x.paper,padding:"10px 11px",display:"flex",flexDirection:"column",gap:6,justifyContent:"center"},children:[p("span",{style:{position:"absolute",right:10,top:2,fontSize:"22.4cqw",lineHeight:1,fontWeight:800,color:x.rust,opacity:.16},children:"\u201D"}),p(LS,{filled:5,size:7}),p("span",{style:{position:"relative",fontSize:"5.31cqw",lineHeight:1.35,color:x.text,fontWeight:600},children:"\u201CTook them out to the Simpson and back. Not one chip.\u201D"}),F("div",{style:{display:"flex",alignItems:"center",gap:5},children:[p(d5,{}),p("span",{style:{fontSize:"3.98cqw",color:x.muted},children:"Dave M. \xB7 Hilux N80"})]})]}),reviews:F(ke,{title:"Reviews",children:[p("div",{style:{display:"flex",gap:4,height:22},children:[[x.inkSoft,x.inkSoft2],[x.rust,x.warm],[x.ink,x.inkSoft],[x.mark2,x.mark1]].map(([e,o],t)=>p("div",{style:{flex:1,borderRadius:3,...Ae(e,o,140+t*15)}},t))}),p("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:5,justifyContent:"center"},children:[["Dave M.",5,"Not one chip after the Simpson."],["Sara K.",4,"Fitted in an hour, no fuss."]].map(([e,o,t])=>F("div",{style:{display:"flex",gap:5,alignItems:"flex-start"},children:[p(d5,{size:12}),F("div",{style:{display:"flex",flexDirection:"column",gap:1,minWidth:0},children:[F("div",{style:{display:"flex",gap:4,alignItems:"center"},children:[p("b",{style:{fontSize:"3.98cqw",color:x.text},children:e}),p(LS,{filled:o})]}),p(to,{children:t})]})]},e))})]}),logos:F("div",{style:{...V,display:"flex",flexDirection:"column",gap:9,justifyContent:"center",padding:"0 12px",...Ae(x.ink,x.inkSoft)},children:[p("span",{style:{fontSize:"3.98cqw",fontWeight:700,letterSpacing:"0.14em",textTransform:"uppercase",color:x.warm},children:"As fitted by"}),p("div",{style:{display:"grid",gridTemplateColumns:"repeat(4,1fr)",gap:8},children:["ARB","TJM","IRONMAN","OPPOSITE"].map(e=>p("span",{style:{textAlign:"center",fontSize:"4.31cqw",fontWeight:800,letterSpacing:"0.08em",color:x.onInk,opacity:.82},children:e},e))})]}),prose:F("div",{style:{...V,background:x.paper,padding:"11px 14px",display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[p("span",{style:{fontSize:"5.86cqw",fontWeight:700,color:x.text},children:"Why offset matters"}),F("div",{style:{display:"flex",gap:6},children:[p("span",{style:{fontSize:"15.3cqw",lineHeight:.78,fontWeight:800,color:x.rust,marginTop:1},children:"T"}),F("div",{style:{display:"flex",flexDirection:"column"},children:[p(to,{children:"he number on the back of your wheel decides whether the"}),p(to,{w:"76%",children:"tyre sits under the guard or an inch outside it."})]})]})]}),cards:p(ke,{title:"What you get",children:p("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(3,1fr)",gap:5,minHeight:0},children:[["Fitted free","In store, same day."],["5 yr cover","Structural, no fine print."],["Swap it","30 days, any reason."]].map(([e,o])=>F("div",{style:{border:`1px solid ${x.rule}`,borderRadius:4,padding:6,display:"flex",flexDirection:"column",gap:2},children:[p("span",{style:{width:11,height:11,borderRadius:3,background:x.rust,opacity:.9}}),p("b",{style:{fontSize:"3.98cqw",color:x.text},children:e}),p(to,{children:o})]},e))})}),faq:p(ke,{title:"Questions",children:p("div",{style:{flex:1,display:"flex",flexDirection:"column",justifyContent:"center"},children:[["Will these fit my Hilux?",!0],["Do you fit them for me?",!1],["What if I pick wrong?",!1]].map(([e,o])=>F("div",{style:{borderBottom:`1px solid ${x.rule}`,padding:"4px 2px"},children:[F("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",gap:6},children:[p("b",{style:{fontSize:"4.31cqw",color:x.text},children:e}),p("span",{style:{fontSize:"4.64cqw",color:x.muted,lineHeight:1},children:o?"\u2212":"+"})]}),o&&p(to,{w:"90%",children:"Use the fitment finder \u2014 it reads your build, not just the model."})]},e))})}),hero:F("div",{style:{...V,overflow:"hidden",...Ae(x.ink,x.ink2)},children:[p("div",{style:{...V,background:`linear-gradient(90deg,${x.scrim},transparent 70%)`}}),p("div",{style:{position:"relative",height:"100%",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"flex-start",padding:"12px 14px",gap:5},children:p(i5,{over:"NEW \xB7 SUMMER",overTone:x.warm,head:"Built for the worst road you own",cta:"SHOP ALL",ctaBg:x.warm,ctaFg:x.ink,tone:x.onInk})}),p(gr,{size:104,style:{right:-24,bottom:-30}})]}),herosingle:F("div",{style:{...V,display:"flex",background:x.paper,overflow:"hidden"},children:[p("div",{style:{flex:1,padding:12,display:"flex",flexDirection:"column",gap:5,justifyContent:"center"},children:p(i5,{over:"ALL-TERRAIN",overTone:x.rust,head:"Grip that does not ask",headSize:12,cta:"EXPLORE",ctaBg:x.text,ctaFg:x.onInk,tone:x.text})}),p("div",{style:{flex:1,position:"relative",...Ae(x.inkSoft,x.inkSoft2)},children:p(gr,{size:74,style:{right:-14,top:16}})})]}),productgrid:p(ke,{title:"Best sellers",children:F("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(3,1fr)",gap:5,minHeight:0},children:[p(BS,{name:"Ridge 19",price:"$365"}),p(BS,{name:"Ridge 29",price:"$410"}),p(BS,{name:"Ridge 39",price:"$455"})]})}),collections:p(ke,{title:"Shop by category",children:p("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(3,1fr)",gap:5,minHeight:0},children:[["Wheels",x.inkSoft,x.inkSoft2],["Tyres",x.rust,x.warm],["Lift kits",x.ink,x.inkSoft]].map(([e,o,t])=>p("div",{style:{borderRadius:4,display:"flex",alignItems:"flex-end",padding:5,color:x.onInk,...Ae(o,t)},children:p("span",{style:{fontSize:"3.98cqw",fontWeight:700,letterSpacing:"0.04em"},children:e})},e))})}),producthero:F("div",{style:{...V,display:"flex",background:x.card,overflow:"hidden"},children:[p("div",{style:{flex:1.1,position:"relative",...Ae(x.paper,x.paper2,150)},children:p(gr,{size:78,style:{left:"50%",top:"50%",transform:"translate(-50%,-50%)"}})}),F("div",{style:{flex:1,padding:"10px 10px 10px 8px",display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[p("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.16em",fontWeight:700,color:x.rust},children:"NITTO"}),p("b",{style:{fontSize:"6.29cqw",color:x.text},children:"Ridge Grappler"}),p("span",{style:{fontSize:"6.63cqw",fontWeight:700,color:x.text},children:"$489"}),p("span",{style:{alignSelf:"flex-start",fontSize:"3.65cqw",letterSpacing:"0.12em",fontWeight:700,padding:"4px 8px",borderRadius:2,background:x.text,color:x.onInk},children:"ADD TO CART"})]})]}),spectable:p(ke,{title:"Specifications",children:F("div",{style:{flex:1,display:"flex",flexDirection:"column",justifyContent:"center"},children:[p(Ir,{k:"Diameter",v:'20"'}),p(Ir,{k:"Width",v:"9.0J"}),p(Ir,{k:"Offset",v:"+12"}),p(Ir,{k:"Load",v:"1250 kg"})]})}),fitmenttable:p(ke,{title:"Will it fit?",children:F("div",{style:{flex:1,display:"flex",flexDirection:"column",justifyContent:"center"},children:[p(Ir,{k:"Hilux N80",v:"20\xD79 +12",ok:!0}),p(Ir,{k:"Ranger PX3",v:"20\xD79 +12",ok:!0}),p(Ir,{k:"LC79",v:"17\xD78 \u221210",ok:!0})]})}),processsteps:F("div",{style:{...V,background:x.paper,padding:10,display:"flex",flexDirection:"column",gap:7,justifyContent:"center"},children:[p(mm,{children:"How it works"}),p("div",{style:{display:"flex",gap:6},children:["Pick your rig","Match the fit","We fit it"].map((e,o)=>F("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:2},children:[p("span",{style:{width:11,height:11,borderRadius:"50%",background:x.text,color:x.onInk,fontSize:"3.98cqw",display:"flex",alignItems:"center",justifyContent:"center",fontWeight:700},children:o+1}),p("span",{style:{fontSize:"3.98cqw",color:x.text,fontWeight:600},children:e})]},e))})]}),detailrows:p("div",{style:{...V,background:x.card,display:"flex",flexDirection:"column",overflow:"hidden"},children:[["Forged, not cast","Half the weight, twice the road.",!1],["Fits your load","Rated to 1250 kg a corner.",!0]].map(([e,o,t])=>{let r=p("div",{style:{flex:1,...Ae(t?x.rust:x.inkSoft,t?x.warm:x.inkSoft2)}},"art"),a=F("div",{style:{flex:1.1,padding:8,display:"flex",flexDirection:"column",gap:2,justifyContent:"center"},children:[p("b",{style:{fontSize:"4.64cqw",color:x.text},children:e}),p("span",{style:{fontSize:"3.98cqw",color:x.muted,lineHeight:1.3},children:o})]},"tx");return p("div",{style:{flex:1,display:"flex",minHeight:0},children:t?[a,r]:[r,a]},e)})}),specstrip:p("div",{style:{...V,background:x.ink,color:x.onInk,display:"flex",alignItems:"center",justifyContent:"space-around",padding:"0 8px"},children:[["5 yr","Warranty"],["Free","Fitting"],["48 hr","Dispatch"]].map(([e,o])=>F("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:1},children:[p("b",{style:{fontSize:"5.69cqw",letterSpacing:"0.02em"},children:e}),p("span",{style:{fontSize:"3.65cqw",color:x.mark2,letterSpacing:"0.1em",textTransform:"uppercase"},children:o})]},o))})},c5={subscribe:F("div",{style:{...V,padding:13,display:"flex",flexDirection:"column"},children:[F("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:8},children:[F("div",{style:{display:"flex",alignItems:"center",gap:6},children:[p(j,{w:8,h:8,r:2,tone:"accent"}),p(j,{w:38,h:7,r:3,tone:"dark"}),p(j,{w:16,h:7,r:3,tone:"accent"})]}),p(j,{w:38,h:4,r:2,tone:"soft"})]}),p("div",{style:{height:1,background:so.line,marginBottom:10}}),F("div",{style:{flex:1,display:"flex",gap:10,border:`1px solid ${so.line}`,borderRadius:7,padding:10},children:[F("div",{style:{flex:1.1,display:"flex",flexDirection:"column",justifyContent:"center",gap:5},children:[p(j,{w:"46%",h:3,r:2,tone:"accent"}),p(j,{w:"84%",h:8,r:4,tone:"dark"}),p(j,{w:"56%",h:8,r:4,tone:"accent"}),p(j,{w:"96%",h:3,r:2,tone:"soft",style:{marginTop:2}}),F("div",{style:{display:"flex",gap:5,marginTop:4},children:[p("div",{style:{flex:1,height:13,borderRadius:5,border:`1px solid ${so.line}`,background:so.block}}),p(j,{w:34,h:13,r:5,tone:"accent"})]})]}),F("div",{style:{flex:1,background:so.block,borderRadius:6,padding:8,display:"flex",flexDirection:"column",gap:6},children:[p(j,{w:"52%",h:4,r:2,tone:"accent"}),Array.from({length:3}).map((e,o)=>F("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",gap:6,borderTop:o?`1px solid ${so.line}`:"none",paddingTop:o?4:0},children:[p(j,{w:34,h:4,r:2,tone:"dark"}),p(j,{w:16,h:3,r:2,tone:"soft"})]},o))]})]})]}),split:F("div",{style:{...V,display:"flex"},children:[p("div",{style:{width:"44%",background:FS}}),F("div",{style:{flex:1,padding:15,display:"flex",flexDirection:"column",justifyContent:"center",gap:7},children:[p(j,{w:"44%",h:5,r:3,tone:"accent"}),p(j,{w:"88%",h:8,r:4,tone:"dark"}),p(j,{w:"70%",h:8,r:4,tone:"dark"}),p(j,{w:"94%",h:5,r:2,tone:"soft",style:{marginTop:2}}),p(j,{w:"80%",h:5,r:2,tone:"soft"}),p(j,{w:"40%",h:13,r:6,tone:"accent",style:{marginTop:5}})]})]}),sectionheader:F(p5,{children:[p(j,{w:"18%",h:6,r:3,tone:"accent",style:{position:"absolute",top:15,right:16}}),F("div",{style:{...V,padding:16,display:"flex",flexDirection:"column",justifyContent:"center",gap:10},children:[F("div",{style:{display:"flex",alignItems:"center",gap:9},children:[p(j,{w:16,h:16,r:4,tone:"accent"}),p(j,{w:"20%",h:9,r:4,tone:"dark"})]}),p(j,{w:"62%",h:10,r:5,tone:"dark"}),p(j,{w:"42%",h:6,r:3,tone:"soft"})]})]}),header:p("div",{style:{...V,padding:14,display:"flex",flexDirection:"column",justifyContent:"center"},children:F("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[p(j,{w:"22%",h:12,r:4,tone:"dark"}),F("div",{style:{display:"flex",gap:9,alignItems:"center"},children:[p(j,{w:26,h:6,r:3,tone:"soft"}),p(j,{w:26,h:6,r:3,tone:"soft"}),p(j,{w:26,h:6,r:3,tone:"soft"}),p(j,{w:18,h:14,r:5,tone:"accent"})]})]})}),footer:F("div",{style:{...V,padding:15,display:"flex",flexDirection:"column",justifyContent:"center",gap:12},children:[F("div",{style:{display:"flex",gap:14},children:[F("div",{style:{flex:1.4,display:"flex",flexDirection:"column",gap:6},children:[p(j,{w:"60%",h:9,r:4,tone:"dark"}),p(j,{w:"90%",h:5,r:2,tone:"soft"}),p(j,{w:"70%",h:5,r:2,tone:"soft"})]}),[0,1].map(e=>F("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:6},children:[p(j,{w:"50%",h:6,r:3,tone:"dark"}),p(j,{w:"80%",h:5,r:2,tone:"soft"}),p(j,{w:"66%",h:5,r:2,tone:"soft"})]},e))]}),p("div",{style:{height:1,background:so.line}}),F("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[p(j,{w:"30%",h:5,r:2,tone:"soft"}),p(j,{w:"16%",h:5,r:2,tone:"soft"})]})]}),grid:p("div",{style:{...V,padding:14,display:"grid",gridTemplateColumns:"1fr 1fr",gridTemplateRows:"1fr 1fr",gap:9},children:Array.from({length:4}).map((e,o)=>p("div",{style:{borderRadius:6,background:so.block}},o))}),blanksection:p("div",{style:{...V,padding:14,display:"flex"},children:F("div",{style:{flex:1,border:`1px dashed ${so.line}`,borderRadius:7,display:"flex",alignItems:"center",justifyContent:"center",position:"relative"},children:[p(j,{w:14,h:2,r:1,tone:"tint"}),p(j,{w:2,h:14,r:1,tone:"tint",style:{position:"absolute"}})]})}),spacer:F("div",{style:{...V,padding:14,display:"flex",flexDirection:"column",justifyContent:"space-between"},children:[p(j,{w:"100%",h:6,r:3,tone:"soft"}),p(j,{w:16,h:22,r:3,tone:"block",style:{alignSelf:"center"}}),p(j,{w:"100%",h:6,r:3,tone:"soft"})]}),divider:p("div",{style:{...V,padding:14,display:"flex",alignItems:"center"},children:p(j,{w:"100%",h:3,r:2,tone:"dark"})}),customhtml:F("div",{style:{...V,display:"flex",alignItems:"center",justifyContent:"center",gap:8,background:FS},children:[p(j,{w:5,h:16,r:2,tone:"dark",style:{transform:"skewX(-14deg)"}}),p(j,{w:16,h:10,r:3,tone:"accent"}),p(j,{w:5,h:16,r:2,tone:"dark",style:{transform:"skewX(14deg)"}})]}),heading:p("div",{style:{...V,padding:14,display:"flex",alignItems:"center"},children:p(j,{w:"64%",h:13,r:4,tone:"dark"})}),text:F("div",{style:{...V,padding:16,display:"flex",flexDirection:"column",justifyContent:"center",gap:7},children:[p(j,{w:"100%",h:6,r:3,tone:"soft"}),p(j,{w:"96%",h:6,r:3,tone:"soft"}),p(j,{w:"100%",h:6,r:3,tone:"soft"}),p(j,{w:"58%",h:6,r:3,tone:"soft"})]}),image:p("div",{style:{position:"absolute",inset:14,borderRadius:7,background:FS}}),button:p("div",{style:{...V,display:"flex",alignItems:"center",justifyContent:"center"},children:p(j,{w:"34%",h:16,r:8,tone:"accent"})}),menu:F("div",{style:{...V,padding:"14px 22%",display:"flex",flexDirection:"column",justifyContent:"center",gap:7},children:[p(j,{w:"48%",h:7,r:3,tone:"dark"}),p(j,{w:"82%",h:5,r:2,tone:"soft"}),p(j,{w:"66%",h:5,r:2,tone:"soft"}),p(j,{w:"74%",h:5,r:2,tone:"soft"}),p(j,{w:"58%",h:5,r:2,tone:"soft"})]}),emailform:F("div",{style:{...V,padding:16,display:"flex",flexDirection:"column",justifyContent:"center",gap:9},children:[p(j,{w:"56%",h:8,r:3,tone:"dark"}),F("div",{style:{display:"flex",gap:6},children:[p("div",{style:{flex:1,height:16,borderRadius:5,border:`1px solid ${so.line}`}}),p(j,{w:"30%",h:16,r:5,tone:"accent"})]})]}),sociallogos:p("div",{style:{...V,display:"flex",alignItems:"center",justifyContent:"center",gap:9},children:[0,1,2,3].map(e=>p(j,{w:16,h:16,r:8,tone:"dark"},e))}),paymentlogos:F("div",{style:{...V,display:"flex",alignItems:"center",justifyContent:"center",gap:7},children:[p(j,{w:22,h:6,r:2,tone:"soft"}),[0,1,2,3].map(e=>p(j,{w:20,h:13,r:3,tone:"dark"},e))]}),search:p("div",{style:{...V,padding:"0 18%",display:"flex",alignItems:"center"},children:F("div",{style:{flex:1,height:22,borderRadius:11,border:`1px solid ${so.line}`,display:"flex",alignItems:"center",gap:7,padding:"0 9px"},children:[p("div",{style:{width:9,height:9,borderRadius:5,border:`2px solid ${so.dark}`}}),p(j,{w:"46%",h:5,r:2,tone:"soft"})]})}),cart:F("div",{style:{...V,display:"flex",alignItems:"center",justifyContent:"center",gap:7},children:[p("div",{style:{width:22,height:18,borderRadius:"3px 3px 6px 6px",border:`2px solid ${so.dark}`}}),p("div",{style:{padding:"2px 6px",borderRadius:6,border:`1.5px solid ${so.dark}`},children:p(j,{w:7,h:7,r:2,tone:"dark"})})]}),countryswitch:F("div",{style:{...V,padding:14,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:5},children:[F("div",{style:{display:"flex",alignItems:"center",gap:6,padding:"4px 8px",border:`1px solid ${so.line}`},children:[p(j,{w:22,h:6,r:2,tone:"dark"}),p(j,{w:6,h:4,r:1,tone:"soft"})]}),F("div",{style:{width:"46%",display:"flex",flexDirection:"column",gap:4,padding:6,border:`1px solid ${so.line}`},children:[p(j,{w:"80%",h:4,r:2,tone:"accent"}),p(j,{w:"64%",h:4,r:2,tone:"soft"}),p(j,{w:"72%",h:4,r:2,tone:"soft"})]})]}),legalline:F("div",{style:{...V,padding:16,display:"flex",flexDirection:"column",justifyContent:"center",gap:9},children:[p("div",{style:{height:1,background:so.line}}),F("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[p(j,{w:"38%",h:5,r:2,tone:"soft"}),F("div",{style:{display:"flex",gap:5},children:[p(j,{w:14,h:5,r:2,tone:"soft"}),p(j,{w:14,h:5,r:2,tone:"soft"}),p(j,{w:14,h:5,r:2,tone:"soft"})]})]})]}),fallback:p("div",{style:{position:"absolute",inset:14,borderRadius:8,background:so.block}})};function u5({type:e}){let o=Pre[e]??"",t=Tre[o]??c5[o]??c5.fallback;return p("div",{className:"sf-thumb","aria-hidden":"true",style:{position:"absolute",inset:0,background:"var(--sf-thumb-thumb-bg)",pointerEvents:"none",containerType:"inline-size"},children:t})}import{useScreenDocument as wm}from"efficient-easel/screen/components/ScreenDocumentContext";import{jsx as Ts,jsxs as m5}from"react/jsx-runtime";import Ore from"efficient-easel/screen/components/SidePanelHead";import{StylesIcon as Ere}from"efficient-easel/rail";import{Tooltip as _re}from"efficient-shell/ui";import{HintsToggle as Are,hintsFoldClass as Fre}from"efficient-easel/panel";import{useHints as Bre}from"efficient-easel/screen/lib/hints";function x5({tokenRef:e,siteId:o,onClose:t,onNotify:r,tab:a,onTabChange:n,revealPageGroup:s,onPageGroupRevealed:l}){let i=Ln(),{shown:d,setShown:f}=Bre();return m5("div",{className:`sf-styles ${Fre(d)}`.trim(),children:[Ts(Ore,{icon:Ts(Ere,{}),title:c("Styles"),context:Ts(_re,{content:c("{name} \u2014 renamed in the Console: {place}.",{name:i,place:c("Storefront \u25B8 Sites \u25B8 Settings")}),className:"sf-name-tip",children:Ts("span",{className:"sf-name-text",children:i})})}),m5("div",{className:"sf-insp-body es-insp-body sf-scroll",children:[Ts(Hf,{tokenRef:e,siteId:o,onNotify:r,tab:a,onTabChange:n,revealPageGroup:s,onPageGroupRevealed:l}),Ts(Are,{shown:d,onChange:f,label:c("Show hints")})]})]})}import{jsx as po,jsxs as Xa,Fragment as Mre}from"react/jsx-runtime";import{Fragment as P5,useEffect as T5,useRef as WS}from"react";import{useTreeDrag as O5}from"efficient-easel/drag";import{GlobeIcon as Hre,ImageIcon as Wre,LocationIcon as $re,MapIcon as zre,TextLinesIcon as Ure,TrashIcon as E5}from"efficient-easel/icons";import{Subtree as _5,TreeRow as Vi,TreeRowAction as A5,TreeSeam as F5}from"efficient-easel/tree";import{useEaselStrings as jre}from"efficient-easel/strings";import{isSelectionMode as Gre}from"efficient-easel/screen/lib/screen-parts";import{useSyncExternalStore as Lre}from"react";var Rre={level:"groups"},I5=Rre,RS=new Set;function Lt(e){I5=e;for(let o of RS)o()}function Dre(e){return RS.add(e),()=>{RS.delete(e)}}var h5=()=>I5;function g5(){return Lre(Dre,h5,h5)}var qi=e=>String(e?.group??""),DS=new WeakMap,Nre=0;function xm(e){let o=DS.get(e);return o||(o=`loc${++Nre}`,DS.set(e,o)),o}var y5=(e,o)=>o||e||"Ungrouped",S5={photo:"",group:"",groupName:"",name:"City name",state:"State",country:"Country",timezone:"GMT \xB7 UTC +0",address:`Address line one
|
|
337
|
-
Address line two`,phone:"+00 000 0000",hours:"Mon\u2013Fri 9:00\u201318:00",lat:0,lng:0,mapsUrl:""};function Ya(e){return wd(e,qi,o=>String(o?.groupName??"")).map(o=>({key:o.key,name:o.name,cards:o.items.map(t=>t.item)}))}var NS=e=>e.flatMap(o=>o.cards),b5=(e,o,t)=>Math.min(Math.max(e,o),t);function hm(e,o,t){let r=0;for(let a=0;a<e.length;a++)if(qi(e[a])===o){if(r===t)return a;r++}return-1}function MS(e,o,t){let r=Ya(e);if(o<0||o>=r.length)return e;let[a]=r.splice(o,1),n=b5(o<t?t-1:t,0,r.length);return r.splice(n,0,a),NS(r)}function HS(e,o,t,r,a){let n=Ya(e),s=n.find(m=>m.key===o),l=n.find(m=>m.key===r);if(!s||!l||t<0||t>=s.cards.length)return e;let[i]=s.cards.splice(t,1),d=o===r?i:{...i,group:l.key,groupName:l.name};d!==i&&DS.set(d,xm(i));let f=b5(s===l&&t<a?a-1:a,0,l.cards.length);return l.cards.splice(f,0,d),NS(n)}function w5(e,o){let t=Ya(e),r=t.find(n=>n.key===o),a={...S5,group:o,groupName:r?.name??""};return r?(r.cards.push(a),NS(t)):[...e,a]}function C5(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,{...S5,group:r,groupName:""}],key:r}}function k5(e,o){return e.filter(t=>qi(t)!==o)}function v5(e,o,t){let r=hm(e,o,t);return r<0?e:e.filter((a,n)=>n!==r)}function o6e(e,o,t){let r=e.flatMap((s,l)=>qi(s)===o?[l]:[]),a=e.slice();r.forEach((s,l)=>{a[s]=t[l]});let n=t.slice(r.length);return[...a.filter(s=>s!==void 0),...n]}function t6e(e,o,t){return o.flatMap(r=>{let a=e.filter(n=>qi(n)===r);return a.length?a:t(r)})}var gm="ContactLocations",Im=e=>({parentId:`locations-${e}`,slot:"groups"}),$S=(e,o)=>({parentId:`locations-${e}`,slot:`cities:${o}`});function B5(e,o){let{readOnly:t,selected:r}=o,a=jre().tree,n=o.data?.content??[],s=Gre(e),l=WS(null);T5(()=>{let P=r?.type===gm?String(r.props.id):null;P&&P!==l.current&&Lt({level:"groups"}),l.current=P},[r?.props.id]);let{selectedLocationPartId:i,setSelectedLocationPartId:d,setSelectHandler:f}=oR(),m=g5(),u=(P,g)=>{let C=n[P];C&&o.replace(P,{type:C.type,props:{...C.props,locations:g}})},h=P=>{let g=n[P]?.props?.locations;return Array.isArray(g)?g:[]},I=O5({keyOf:P=>`group:${P.si}:${P.index}`,readOnly:!!t,canDrop:(P,g)=>g.parentId===Im(P.si).parentId&&g.slot==="groups",onDrop:(P,g)=>{u(P.si,MS(h(P.si),P.index,g.index)),m.level==="city"&&Lt({level:"groups"})},onStep:(P,g)=>{u(P.si,MS(h(P.si),P.index,g<0?P.index-1:P.index+2)),m.level==="city"&&Lt({level:"groups"})}}),S=O5({keyOf:P=>`city:${P.si}:${P.group}:${P.index}`,readOnly:!!t,canDrop:(P,g)=>g.parentId===Im(P.si).parentId&&g.slot.startsWith("cities:"),onDrop:(P,g)=>{let C=g.slot.slice(7);u(P.si,HS(h(P.si),P.group,P.index,C,g.index)),Lt({level:"group",key:C})},onStep:(P,g)=>{u(P.si,HS(h(P.si),P.group,P.index,P.group,g<0?P.index-1:P.index+2)),m.level==="city"&&Lt({level:"group",key:P.group})}}),w=WS(n);w.current=n;let T=WS(()=>{});T5(()=>{f(P=>{let g=ru(P);if(!g)return;let C=w.current.findIndex(E=>E.props?.id===g.nodeId);C<0||T.current(C,{level:g.part,index:g.index})})},[f]);let B=(P,g)=>{l.current=n[P]?.props?.id??null,o.select(P),Lt(g),e.reveal();let C=n[P]?.props?.id;typeof C=="string"&&(g.level==="city"||g.level==="image"||g.level==="map")?d(tu(C,g.index,g.level)):d(null),typeof C=="string"&&o.scrollTo(C)};return T.current=B,{renderLocationTree:(P,g,{rowClick:C,isCollapsed:E,toggleCollapse:A})=>{let N=h(g),b=Ya(N),_=String(P.props.id),y=s&&r?.props.id===_,v=k=>po(F5,{...t?{}:I.seam({place:{...Im(g),index:k}})},`seam:${_}:groups:${k}`),O=(k,L)=>po(F5,{...t?{}:S.seam({place:{...$S(g,k),index:L}})},`seam:${_}:cities:${k}:${L}`);return Xa(Mre,{children:[po(Vi,{icon:po(Ure,{size:13}),name:c("Texts"),words:a,onSelect:()=>B(g,{level:"texts"}),selected:y&&m.level==="texts",rowProps:{onClick:C(()=>B(g,{level:"texts"}))}}),b.map((k,L)=>{let M=`${_}::grp::${k.key}`,K=E(M),W=y&&m.level==="group"&&m.key===k.key,se=k.name||k.key?y5(k.key,k.name):c("Ungrouped"),le={...$S(g,k.key),index:k.cards.length},ee=S.row({item:{si:g,group:k.key,index:-1},place:le,into:le,canDrag:!1},{onClick:C(()=>B(g,{level:"group",key:k.key}))}),Ie=I.row({item:{si:g,index:L},place:{...Im(g),index:L}},ee.rowProps);return Xa(P5,{children:[L===0&&v(0),po(Vi,{icon:po(Hre,{size:13}),name:se,words:a,onSelect:()=>B(g,{level:"group",key:k.key}),selected:W,draggable:Ie.draggable,dragging:Ie.dragging,drop:Ie.drop??ee.drop,fold:{open:!K,label:c("group"),onToggle:()=>A(M)},actions:po(A5,{kind:"delete",label:$t("Delete {label} group ({n} city)","Delete {label} group ({n} cities)",k.cards.length,{label:se}),onClick:()=>{u(g,k5(N,k.key)),Lt({level:"groups"})},children:po(E5,{size:15})}),rowProps:Ie.rowProps,count:k.cards.length,countLabel:$t("{n} city","{n} cities",k.cards.length)}),!K&&Xa(_5,{children:[k.cards.map((ae,me)=>{let ge=hm(N,k.key,me),Ge=y&&m.level==="city"&&m.index===ge,Ve=String(ae?.name??"")||c("City"),Eo=`${_}::city::${xm(ae)}`,Ye=E(Eo),{rowProps:Je,...qo}=S.row({item:{si:g,group:k.key,index:me},place:{...$S(g,k.key),index:me}},{onClick:C(()=>B(g,{level:"city",index:ge}))});return Xa(P5,{children:[me===0&&O(k.key,0),po(Vi,{icon:po($re,{size:13}),name:Ve,words:a,onSelect:()=>B(g,{level:"city",index:ge}),selected:Ge,...qo,fold:{open:!Ye,label:Ve,onToggle:()=>A(Eo)},actions:po(A5,{kind:"delete",label:c("Delete {name}",{name:Ve}),onClick:()=>{u(g,v5(N,k.key,me)),Lt({level:"group",key:k.key})},children:po(E5,{size:15})}),rowProps:Je}),!Ye&&Xa(_5,{children:[po(Vi,{icon:po(Wre,{size:13}),name:c("Image"),words:a,onSelect:()=>B(g,{level:"image",index:ge}),selected:y&&m.level==="image"&&m.index===ge,rowProps:{onClick:C(()=>B(g,{level:"image",index:ge}))}}),po(Vi,{icon:po(zre,{size:13}),name:c("Map"),words:a,onSelect:()=>B(g,{level:"map",index:ge}),selected:y&&m.level==="map"&&m.index===ge,rowProps:{onClick:C(()=>B(g,{level:"map",index:ge}))}})]}),O(k.key,me+1)]},xm(ae))}),Xa("button",{type:"button",className:"sf-add-card",onClick:()=>{let ae=w5(N,k.key);u(g,ae);let me=Ya(ae).find(ge=>ge.key===k.key);Lt(me&&me.cards.length?{level:"city",index:hm(ae,k.key,me.cards.length-1)}:{level:"group",key:k.key})},children:[po("span",{className:"sf-plus sf-plus--sm",children:"+"}),c("Add city")]})]}),v(L+1)]},M)}),Xa("button",{type:"button",className:"sf-add-card",onClick:()=>{let{cards:k,key:L}=C5(N);u(g,k),B(g,{level:"group",key:L})},children:[po("span",{className:"sf-plus sf-plus--sm",children:"+"}),c("Add group")]})]})},sectionPressed:P=>{P?.type===gm&&Lt({level:"groups"})}}}import{useEffect as Yre,useRef as Xre}from"react";import{createNode as US,newId as jS}from"efficient-easel/data";import{useEaselApi as Zre}from"efficient-easel/easel";import{useScreenDocument as Jre}from"efficient-easel/screen/components/ScreenDocumentContext";import{useEaselSession as Qre}from"efficient-easel/screen/lib/session-context";import{useEffect as N5,useRef as Kre}from"react";import{useEasel as qre}from"efficient-easel/easel";import{ROOT_ZONE as zS}from"efficient-easel/draw";var Yi={};function L5(e){return Yi={...e?.theme?{theme:e.theme}:{},...e?.site?{site:e.site}:{}},Yi}function R5(e){Yi===e&&(Yi={})}function Os(){return Yi}function D5(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 H5(e){let o=qre(d=>d.appState.data.content),{theme:t,themeRow:r,themeFromDocument:a,siteGutter:n,siteGutterPhone:s,siteLengthUnits:l}=vo(),i=Kre(new Set);N5(()=>{let d=M5({theme:t,themeRow:r,themeFromDocument:a,siteGutter:n,siteGutterPhone:s,siteLengthUnits:l});d&&Vre(F1(o,void 0,d),e,i.current)},[o,e,t,r,a,n,s,l]),N5(()=>{let d=L5(M5({theme:t,themeRow:r,themeFromDocument:a,siteGutter:n,siteGutterPhone:s,siteLengthUnits:l}));return()=>R5(d)},[t,r,a,n,s,l])}function M5(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=D5({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 Vre(e,o,t){for(let{index:r,nodes:a}of[...e].sort((n,s)=>s.index-n.index)){let n=String(a[0].props.id);t.has(n)||(t.add(n),o.replaceComponent(zS,r,a[0]),a.slice(1).forEach((s,l)=>{o.insertNode(zS,r+1+l,s),o.replaceComponent(zS,r+1+l,s)}))}}import{ROOT_ZONE as Es,missingPinnedTypes as eae,pinnedDuplicateIds as GS}from"efficient-easel/draw";function W5(e){return!e.docId||e.saveStatus==="saving"?!1:e.seededDocId!==e.docId}function $5(e,o){let t=e.some(l=>l?.type===ao),r=e[e.length-1],a=!t&&r?.type===Re?r:null,n=e.filter(l=>l?.type===Re&&l!==a).map(l=>String(l.props?.id??"")).filter(Boolean),s=o.hasChromeDoc&&!t&&!a;return{remove:n,seedHeader:!e.some(l=>l?.type===Ko),seedFooter:s,seedSiteHeader:s&&!e.some(l=>l?.type===Mo)}}async function z5(e){let o=e.blocks?.seeds?.siteHeader;if(!o)return!1;let t;try{t=await o({make:e.make,id:e.id,siteId:e.siteId,token:e.token})}catch{return!1}if(!t||t.type!==Mo||!e.stillOpen())return!1;let r=e.latest();return r.some(a=>a?.type===Mo)?!1:(e.write(gf(r,t)),!0)}function U5(e,o){let{adapter:t,capabilities:r,currentSlug:a,docId:n,data:s,saveStatus:l,siteId:i,tokenRef:d}=Jre(),f=Qre(),{hasSiteSettings:m,hasPinnedChrome:u}=r;H5(e);let h=!!r.editsPinnedInPlace&&a!==Br,I=a===Br,S=Zre().getState,w=Xre(null);Yre(()=>{if(!W5({docId:n,saveStatus:l,seededDocId:w.current})||(w.current=n,!u))return;let T=S().appState.data,B=T.content,P=s?.content??[],g=(N,b)=>N.some(_=>_?.type===b);if(!m){let N=new Set(GS(B)),b=N.size?B.filter(y=>!N.has(y.props.id)):B;if(N.size&&e.setDocument({...T,content:b}),I)return;let _=eae(b,P);if(_.includes(Re)){let y=b.length,v=e.insertSection(Re,y);e.replaceComponent(Es,y,{type:Re,props:{id:v,blocks:fm()}})}_.includes(Ko)&&e.insertNode(Es,0,dm());return}if(I){let N=fP(B);if(N!==B&&e.setDocument({...T,content:[...N]}),!N.find(b=>b.type===Re)&&!g(P,Re)&&!g(N,ao)&&!g(P,ao)){let b=(y,v)=>US(o,y,v),_={type:Re,props:{blocks:fm()}};e.insertNode(Es,N.length,fi(_,b,jS(ao),ji))}return}if(h){let N=!!t?.pinnedChrome?.state().docId,b=$5(B,{hasChromeDoc:N}),_=new Set([...b.remove,...GS(B.filter(v=>!b.remove.includes(String(v.props.id))))]),y=_.size?B.filter(v=>!_.has(String(v.props.id))):B;if(y.length!==B.length&&e.setDocument({...T,content:y}),b.seedFooter&&!g(P,Re)&&!g(P,ao)){let v=(k,L)=>US(o,k,L),O={type:Re,props:{blocks:fm()}};e.insertNode(Es,y.length,fi(O,v,jS(ao),ji))}if(b.seedHeader&&!g(P,Ko)){let v=y[0]?.type===Mo?1:0;e.insertNode(Es,v,dm())}if(b.seedSiteHeader&&!g(P,Mo)&&!g(P,Re)&&!g(P,ao)){let v=n;z5({blocks:un(f),make:(O,k)=>US(o,O,k),id:jS(Mo),siteId:i??null,token:d.current,latest:()=>S().appState.data.content,stillOpen:()=>w.current===v,write:O=>{let k=S().appState.data;e.setDocument({...k,content:[...O]})}})}return}let C=B.filter(N=>N.type!==Re),E=new Set(GS(C)),A=E.size?C.filter(N=>!E.has(N.props.id)):C;A.length!==B.length&&e.setDocument({...T,content:A}),!g(A,Ko)&&!g(P,Ko)&&e.insertNode(Es,0,dm())},[n,l,s,S,e,m,u,I,h,t,f,i,d])}import{useEffect as Q5,useMemo as lae,useRef as e4}from"react";import{useEasel as iae}from"efficient-easel/easel";import{newId as dae}from"efficient-easel/data";import{useEaselHost as fae}from"efficient-easel/screen/lib/host";import{FIELD_DESCRIPTION_MARKER as oae}from"efficient-easel/screen/lib/host";import{isNode as K5}from"efficient-easel/data";function Xi(e,o){let t=e.components[o]?.label;return typeof t=="string"&&t.trim()?t.trim():o}function tae(e){return e.length>3&&e.endsWith("s")?e.slice(0,-1):e}function KS(e,o,t,r){e.forEach((a,n)=>{if(K5(a)){r.push({node:a,list:e,index:n,parent:o,slot:t});for(let s of Nt(a))KS(a.props[s],a,s,r)}})}function rae(e){let o=[];KS(Array.isArray(e.content)?e.content:[],null,"",o);for(let t of Object.values(e.zones??{}))Array.isArray(t)&&KS(t,null,"",o);return o}function q5(e,o){return rae(e).find(t=>String(t.node.props.id)===o)}function V5(e,o,t){if(!t)return null;let r=q5(o,t);if(!r)return null;let a=Xi(e,r.node.type),n=r.parent?`${Xi(e,r.parent.type)} \xB7 ${tae(r.slot)} ${r.index+1}`:a;return{blockId:t,type:r.node.type,label:n,path:""}}var aae=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 nae(e){if(!e||typeof e!="object")return null;let o=e;if(typeof o.type!="string")return null;let t=o.type==="custom"?o[oae]: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=aae(n));for(let s of["arrayFields","objectFields"]){let l=t?.[s]??o[s];l&&typeof l=="object"&&(r[s]=Y5(l))}return r}function Y5(e){let o={};for(let[t,r]of Object.entries(e??{})){let a=nae(r);a&&(o[t]=a)}return o}function X5(e){let o={};for(let[t,r]of Object.entries(e.components))r&&(o[t]={label:Xi(e,t),fields:Y5(r.fields),...Z5(t)?{retired:!0}:{}});return o}function Z5(e){return eo(pb,e)}function j5(e,o){let t=e.components[o]?.defaultProps;return t&&typeof t=="object"?structuredClone(t):{}}function sae(e,o){let t=e;for(let r of o?o.split("."):[]){let a=/^([A-Za-z_][A-Za-z0-9_]*)(?:\[(\d+)\])?$/.exec(r);if(!a||!t||typeof t!="object")return null;t=t[a[1]],a[2]!==void 0&&(t=Array.isArray(t)?t[Number(a[2])]:void 0)}return t&&typeof t=="object"&&!Array.isArray(t)?t:null}function qS(e,o){return e.findIndex(t=>K5(t)&&String(t.props.id)===o)}function G5(e,o,t){let r=o||t;if(!r)return e.length;let a=qS(e,r);if(a<0)throw new Error(`there is no top-level block ${r}`);return o?a+1:a}function J5(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=q5(n,l.block_id)??d(`there is no block ${l.block_id}`);"id"in l.props&&d("a block's id is never changed");let m=sae(f.node.props,l.path)??d(`there is no ${l.path} in that block`);Object.assign(m,structuredClone(l.props));break}case"insert_block":{e.components[l.type]??d(`there is no block type ${l.type}`),Z5(l.type)&&d(`${Xi(e,l.type)} is retired: it is no longer added (a page that holds one keeps it)`);let f=ps(l.type),m=Object.keys(l.props??{}).filter(h=>h!=="id");f&&m.length&&d(`${Xi(e,l.type)} is laid down as a Box of blocks: insert it with no props, then change its blocks`);let u=f?f(h=>j5(e,h),r,a):{type:l.type,props:{...j5(e,l.type),...structuredClone(l.props),id:r(l.type)}};s.splice(G5(s,l.after,l.before),0,u);break}case"remove_block":{let f=qS(s,l.block_id);f<0&&d(`there is no top-level block ${l.block_id}`),s.splice(f,1);break}case"move_block":{let f=qS(s,l.block_id);f<0&&d(`there is no top-level block ${l.block_id}`);let[m]=s.splice(f,1);s.splice(G5(s,l.after,l.before),0,m);break}default:d(`"${l.op}" is not a change this editor makes`)}})}catch(l){return{ok:!1,reason:l instanceof Error?l.message:String(l)}}return{ok:!0,document:n}}var VS=e=>xo(e.requestId)??null;function o4(){let e=fae(),{appState:o,selectedItem:t,dispatch:r,history:a,config:n}=iae(u=>u),s=n,l=e4({appState:o,dispatch:r,history:a,blockConfig:s});l.current={appState:o,dispatch:r,history:a,blockConfig:s};let i=e4(new Map),d=t?.props?.id,f=lae(()=>V5(s,o.data,d),[s,o.data,d]),m=f?JSON.stringify(f):"";Q5(()=>{e.connected&&e.send("storefront-editor:selection",{selection:f})},[e,m]),Q5(()=>e.subscribe(u=>{let{appState:h,dispatch:I,history:S,blockConfig:w}=l.current;switch(u.type){case"storefront-editor:request-document":{let T=VS(u);if(!T)return;e.send("storefront-editor:document",{requestId:T,document:h.data,blocks:X5(w)});return}case"storefront-editor:apply-page-edits":{let T=VS(u);if(!T)return;let B=Array.isArray(u.ops)?u.ops:[],P=B.length?J5(w,h.data,B,dae,Os()):{ok:!1,reason:"no changes"};P.ok&&(I({type:"setData",data:P.document,recordHistory:!0}),i.current.set(T,JSON.stringify(P.document.content??[]))),e.send("storefront-editor:page-edits-result",{requestId:T,applied:P.ok,reason:P.ok?null:P.reason});return}case"storefront-editor:undo-page-edits":{let T=VS(u);if(!T)return;let B=i.current.get(T),P=B!==void 0&&B===JSON.stringify(h.data.content??[]);P&&S.hasPast&&(S.back(),i.current.delete(T)),e.send("storefront-editor:page-edits-result",{requestId:T,applied:P&&S.hasPast,reason:P?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 a4,useState as n4}from"react";var ym=new Map;async function cae(e,o){try{return(await _o().site.get({siteId:o})).slug?.trim()||null}catch(t){return console.warn("[editor-site-slug] could not resolve the site slug",t),null}}function t4(e,o){let t=ym.get(o);return t||(t=cae(e,o),ym.set(o,t),t.catch(()=>{ym.get(o)===t&&ym.delete(o)})),t}var pae=/^(localhost|(?:[a-z0-9-]+\.)+localhost|127(?:\.\d{1,3}){3}|0\.0\.0\.0|\[::1\]|::1)$/i;function YS(e){return!!e&&pae.test(e)}function r4(e){let{pageSlug:o,siteSlug:t,hostname:r}=e,a=o===dT?"/":`/${encodeURIComponent(o)}`;if(!YS(r))return a;let n=t?.trim();return n?`${a}?site=${encodeURIComponent(n)}`:a}function s4(e){let{pageSlug:o,siteId:t,token:r}=e,[a,n]=n4(null),[s,l]=n4(null),i=xP();a4(()=>{try{l(new URL(hP()).hostname)}catch{l(null)}},[i]),a4(()=>{if(!YS(s)||!t||!r){n(null);return}let f=!1;return t4(r,t).then(m=>{f||n(m)}),()=>{f=!0}},[s,t,r]);let d=r4({pageSlug:o,siteSlug:a,hostname:s});return i?`${i}${d}`:d}import{jsx as Zi}from"react/jsx-runtime";import{useEffect as uae,useRef as l4,useState as mae}from"react";import{ExternalIcon as i4}from"efficient-easel/icons";import{EaselIconButton as xae}from"efficient-easel/chrome";import{Tooltip as hae,iconButtonClasses as Iae}from"efficient-shell/ui";import{useSettledPress as gae}from"efficient-easel/easel";import{useScreenDocument as yae}from"efficient-easel/screen/components/ScreenDocumentContext";async function Sae({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 d4({liveHref:e,pageId:o,draftLink:t}){let{flushSave:r}=yae(),a=l4(r);a.current=r;let n=gae(),[s,l]=mae(!1),i=l4(null);if(uae(()=>()=>i.current?.(),[]),t&&o){let d=()=>new Promise((m,u)=>{i.current=()=>m(!1),n.run(()=>{i.current=null,a.current().then(m,u)})}),f=()=>{s||n.waiting||(l(!0),Sae({pageId:o,liveHref:e,draftLink:t,ready:d}).finally(()=>l(!1)))};return Zi(xae,{label:c("Preview your saved draft in a new tab"),tip:c("Open your saved draft in a new tab. Visitors don't see it."),disabled:s||n.waiting,onClick:f,children:Zi(i4,{})})}return Zi(hae,{content:c("Preview the live site (opens in a new tab)"),side:"bottom",children:Zi("a",{className:Iae({className:"es-iconbtn"}),href:e,...Pl,"aria-label":c("Preview the live site in a new tab"),children:Zi(i4,{})})})}import{createElement as bae,useCallback as wae,useEffect as f4,useRef as c4,useState as Cae}from"react";import{ClockIcon as kae}from"efficient-shell/icons/efficient";import{useScreenDocument as vae}from"efficient-easel/screen/components/ScreenDocumentContext";function p4(e){let{docId:o,capabilities:t,hasUnsavedEdits:r,onPublish:a,adapter:n}=vae(),s=A2(_2(o??null),r),l=Fu(Bu()),i=n.siteLiveState;f4(()=>{if(i)return Dx(i),ca(0),()=>Dx(null)},[i]);let d=Ff(),[f,m]=Cae(!1),u=c4(e);u.current=e;let h=c4(!0);f4(()=>(h.current=!0,()=>{h.current=!1}),[]);let I=wae(()=>{m(!0),a(u.current).then(()=>{Ru()}).finally(()=>{h.current&&m(!1)})},[a]);if(t.canPublish){if(i){let S=d===void 0?void 0:r||d.state==="changed"?"changed":"live",w=yS({live:S,onPress:I,busy:f,goingLive:F2(d?.changes??[])});return n.siteVersions?{...w,menuItems:Pae()}:w}return yS({live:s,onPress:I,busy:f,pinnedUnpublished:l?.unpublished??!1})}}function Pae(){return[{key:"version-history",label:c("Version history"),icon:bae(kae),onSelect:jM}]}import{jsx as Q,jsxs as Qo,Fragment as ed}from"react/jsx-runtime";import{useCallback as Tae,useEffect as Oae,useId as x4,useRef as Eae,useState as gt}from"react";import{useSettledAction as _ae}from"efficient-easel/easel";import{Avatar as Aae,Banner as Ji,Button as Za,ColoredBadge as XS,Dialog as JS,DropdownMenu as Fae,FormField as h4,iconButtonClasses as Bae,Inline as ZS,Input as Lae,ListRow as Rae,Select as Dae,SortableList as Nae,Stack as Qi}from"efficient-shell/ui";import{EditIcon as Mae,EyeIcon as u4,MenuIcon as Hae,MoreIcon as Wae,PageIcon as I4,RevertIcon as m4,StylesIcon as $ae}from"efficient-shell/icons/efficient";import{useScreenDocument as g4}from"efficient-easel/screen/components/ScreenDocumentContext";var zae={page:I4,menu:Hae};function Uae(e,o){return e.pages.find(t=>t.id===o)??e.pages[0]??null}function jae(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 Gae({version:e,page:o,waiting:t,busy:r,error:a,onCancel:n,onConfirm:s,onPage:l}){let i=x4();if(!e)return null;let d=e.kind==="draft_before_restore",f=e.number,m=JM(e),u=d?c("Put your drafts back?"):o?c("Restore {page} from version {n}?",{page:o.name,n:f}):c("Restore version {n}?",{n:f}),h=d?c("Your drafts go back to how they were before the restore."):o?c("{page} goes back to version {n} as a draft. Nothing else on your website changes.",{page:o.name,n:f}):m?c("The whole website goes back to version {n} as a draft: {what}.",{n:f,what:m}):c("The whole website goes back to version {n} as a draft.",{n:f}),I=e.deletedPictures??0;return Q(JS,{open:!0,onClose:()=>{r||n()},size:"sm",title:u,footer:Qo(ed,{children:[Q(Za,{variant:"secondary",onClick:n,disabled:r,children:c("Cancel")}),Q(Za,{onClick:s,loading:r,disabled:r,children:c("Restore as draft")})]}),children:Qo(Qi,{gap:4,children:[o&&e.pages.length>1?Q(h4,{label:c("Page"),htmlFor:i,children:Q(Dae,{id:i,value:o.id,options:e.pages.map(S=>({value:S.id,label:S.name})),onChange:l,disabled:r})}):null,Q("p",{children:h}),Q("p",{children:c("Your live website does not change until you press Publish.")}),I>0?Q(Ji,{tone:"warning",children:$t("{n} picture in this version was deleted from the media library. It stays empty.","{n} pictures in this version were deleted from the media library. They stay empty.",I)}):null,t?Q(Ji,{tone:"info",title:c("Your unpublished changes are kept"),children:c("They are saved in Version history as \u201CDraft before restore\u201D, so you can get them back.")}):null,a?Q(Ji,{tone:"danger",children:a}):null]})})}function Kae({version:e,onCancel:o,onSave:t}){let r=x4(),[a,n]=gt(null),[s,l]=gt(""),[i,d]=gt(!1),[f,m]=gt(null);if(e!==a&&(n(e),l(e?.name??""),m(null)),!e)return null;let u=s.trim()===e.name,h=async()=>{if(!(i||u)){d(!0),m(null);try{await t(s.trim())}catch{m(c("The name was not saved. Try again."))}finally{d(!1)}}};return Q(JS,{open:!0,onClose:()=>{i||o()},size:"sm",title:c("Name this version"),footer:Qo(ed,{children:[Q(Za,{variant:"secondary",onClick:o,disabled:i,children:c("Cancel")}),Q(Za,{onClick:()=>{h()},loading:i,disabled:i||u,children:c("Save")})]}),children:Q(h4,{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(Lae,{id:r,value:s,invalid:!!f,onChange:I=>l(I.target.value),onKeyDown:I=>{I.key==="Enter"&&h()}})})})}function qae({version:e,expanded:o,onToggle:t,onPreview:r,onRestore:a,onRestorePage:n,onName:s}){let l=e.kind==="draft_before_restore",i=!e.live,d=e.changes.length,f=[...l?[]:[{key:"preview",label:c("Preview"),icon:Q(u4,{}),onSelect:r}],...i?[{key:"restore",label:l?c("Put these drafts back"):c("Restore whole website"),icon:Q(m4,{}),onSelect:a}]:[],...i&&!l&&e.pages.length?[{key:"restore-page",label:c("Restore one page only"),icon:Q(I4,{}),onSelect:n}]:[],...l?[]:[{type:"divider",key:"divider"},{key:"name",label:c("Name this version"),icon:Q(Mae,{}),onSelect:s}]];return Q(Rae,{title:Qo("span",{className:"sf-version-title",children:[Q("span",{children:ZM(e)}),e.live?Q(XS,{tone:"success",size:"xs",children:c("Live")}):null,e.name?Q(XS,{tone:"neutral",size:"xs",children:c("Version {n}",{n:e.number})}):null,l?Q(XS,{tone:"warning",size:"xs",children:c("Not published")}):null]}),expanded:o,onToggle:t,actions:Q(Fae,{align:"end","aria-label":c("More"),items:f,triggerClassName:Bae({variant:"ghost",size:"sm"}),trigger:Q(Wae,{})}),below:Qo(Qi,{gap:3,children:[Qo(ZS,{gap:2,align:"center",wrap:!0,className:"sf-version-meta",children:[Q(Aae,{name:e.createdBy,size:"xs"}),Q("span",{children:e.createdBy}),Q("span",{"aria-hidden":"true",children:"\xB7"}),Q("span",{children:eH(e.createdAt)}),d?Qo(ed,{children:[Q("span",{"aria-hidden":"true",children:"\xB7"}),Q("span",{children:$t("{n} change","{n} changes",d)})]}):null]}),o?Qo(Qi,{gap:3,children:[d?Q(Qi,{gap:2,children:e.changes.map(m=>{let u=zae[m.kind]??$ae;return Qo(ZS,{gap:2,align:"center",children:[Q(u,{size:16}),Q("span",{children:QM(m)})]},`${m.kind}:${m.id}`)})}):null,Qo(ZS,{gap:2,children:[l?null:Q(Za,{variant:"secondary",size:"sm",leftIcon:Q(u4,{}),onClick:r,children:c("Preview")}),i?Q(Za,{variant:"secondary",size:"sm",leftIcon:Q(m4,{}),onClick:a,children:c("Restore")}):null]})]}):null]})})}function Vae({open:e,onClose:o,access:t,waiting:r}){let{flushSave:a,reloadFromServer:n,docId:s}=g4(),[l,i]=gt(null),[d,f]=gt(!1),[m,u]=gt(null),[h,I]=gt(null),[S,w]=gt(!1),[T,B]=gt(null),[P,g]=gt(null),[C,E]=gt(!1),A=Eae(0),N=Tae(()=>{let v=++A.current;f(!1),t.list().then(O=>{v===A.current&&i(O)},()=>{v===A.current&&f(!0)})},[t]);Oae(()=>{e&&N()},[e,N]);let b=v=>{E(!1),jae(t,v.id).catch(()=>E(!0))},_=async()=>{if(!(!h||S)){w(!0),B(null);try{await YM({access:t,version:h.version,page:h.page,flushSave:a,reload:n}),I(null),o()}catch(v){B(v instanceof Ai?c("Your last changes did not save, so nothing was restored. Try again."):c("The version was not restored. Nothing changed. Try again."))}finally{w(!1)}}},y=_ae({onPress:()=>{_()},busy:S});return Qo(ed,{children:[Q(JS,{open:e,onClose:o,size:"xl",title:c("Version history"),description:Qo(ed,{children:[c("Every Publish keeps a copy of the whole website: pages, menus and site styles.")," ",c("Products, prices and forms always show as they are now.")]}),footer:Q("span",{className:"sf-version-foot",children:c("The newest 30 are kept. Named versions are always kept.")}),children:Qo(Qi,{gap:3,children:[C?Q(Ji,{tone:"danger",onDismiss:()=>E(!1),children:c("The preview did not open. Try again.")}):null,d?Q(Ji,{tone:"danger",action:Q(Za,{variant:"secondary",size:"sm",onClick:N,children:c("Try again")}),children:c("Version history did not load.")}):l===null?Q("p",{className:"sf-version-foot",children:c("Loading versions")}):l.length===0?Q("p",{className:"sf-version-foot",children:c("No versions yet. Every Publish from now on keeps one.")}):Q(Nae,{"aria-label":c("Versions"),spacing:"comfortable",children:l.map(v=>Q(qae,{version:v,expanded:m===v.id,onToggle:()=>u(O=>O===v.id?null:v.id),onPreview:()=>b(v),onRestore:()=>{B(null),I({version:v,page:null})},onRestorePage:()=>{B(null),I({version:v,page:Uae(v,s)})},onName:()=>g(v)},v.id))})]})}),Q(Gae,{version:h?.version??null,page:h?.page??null,waiting:r,busy:y.busy===!0,error:T,onCancel:()=>I(null),onConfirm:y.onPress,onPage:v=>I(O=>O&&{...O,page:O.version.pages.find(k=>k.id===v)??O.page})}),Q(Kae,{version:P,onCancel:()=>g(null),onSave:async v=>{await t.name(P.id,v),g(null),N()}})]})}function y4(){let{adapter:e,hasUnsavedEdits:o}=g4(),t=e.siteVersions,r=KM(),a=Ff();return t?Q(Vae,{open:r,onClose:GM,access:t,waiting:o||a?.state==="changed"}):null}import{useEaselSession as a6}from"efficient-easel/screen/lib/session-context";import{buildPaletteSections as X3e,categoryLabel as Z3e,paletteWithoutPinned as J3e,pinnedSection as Q3e}from"efficient-easel/screen/lib/document/palette-sections";var Yae={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 S4(e){return z(Yae,e)?.label}var b4=xb;function Xae(e){let o=nu.Ticker(e.nodeDefaults,e.newNodeId),{sectionBorder:t,...r}=o.props,a=lI.line?{sectionBorder:t}:{};return{...o,props:{...r,...a,sectionAccent:lI.sectionAccent}}}var Zae={Hero:{[Zl]:{newChild:Xae,childLabel:ea.Ticker}}},w4=Object.fromEntries(Object.entries(k1).map(([e,o])=>[e,Object.fromEntries(Object.entries(o).map(([t,r])=>[t,{...r,...z(Zae,e)?.[t]}]))]));function C4(e,o=0,t,r){let a=Qae(ene(e,o,r),t),n=a?Ng():null;return a&&n?Jae(a,n):a}function Jae(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 Qae(e,o){if(!e||e.source!=="container"||!o||!Cw())return e;let t=Ad({data:o.data},o.id),r=typeof t?.type=="string"?Pd(t.type):[],a=e.choices??[],n=r.filter(s=>!a.some(l=>l.type===s.type));return n.length?{...e,choices:[...a,...n.map(s=>({type:s.type,label:s.label}))]}:e}function ene(e,o,t){let r=t?z(w4,e)?.[t]:void 0;if(r)return{source:"section",slot:r.slot,choices:null,spec:r};let a=z(dt,e);if(a)return{source:"section",slot:a.slot,choices:null,spec:a};let n=cd(e,o);if(n)return{source:"container",slot:n.slot,choices:n.choices,spec:null};let s=j2(e);return s?{source:"footer",slot:U2,choices:s,spec:null}:null}function k4(e,o=Ed(e.type)){return Od(e.type)?o.map(t=>{let r=Pw(e.type,t);return r===null?{slot:t,label:t,rung:!1}:{slot:t,label:c(r),rung:!0}}):null}import{useSyncExternalStore as one}from"react";var QS=null,eb=new Set;function v4(e){if(QS!==e){QS=e;for(let o of eb)o()}}function tne(e){return eb.add(e),()=>{eb.delete(e)}}function wWe(){return one(tne,()=>QS,()=>null)}function P4(e){return BP(e)?.ownerId??null}function T4(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 rne}from"efficient-shell/format";var ane=["pages","sections","styles"],O4="sf-editor-left-view";function E4(){if(typeof window>"u")return"pages";try{let e=window.localStorage.getItem(O4);return rne(ane,"pages",e)}catch{return"pages"}}function _4(e){if(!(typeof window>"u"))try{window.localStorage.setItem(O4,e)}catch{}}function A4(e,o){return e==="styles"&&!o?"sections":e}function F4(e,o){return e?"sections":o}import{copyNode as nne}from"efficient-easel/data";function B4(e){let o=typeof e?.props?.id=="string"?e.props.id:null,t=dr(),r=o&&t?t.sectionOf(o):null;if(!t||!r)return null;let a=t.usedOn(r);return a?a.length===1?c("On 1 page"):c("On {count} pages",{count:a.length}):c("On other pages")}var L4={usedOn:e=>{let o=dr(),t=o?.sectionOf(e.props.id)??null;return!o||!t?null:o.usedOn(t)??[]},openPage:e=>Ef()?.openPage(e),adopt:(e,o)=>dr()?.adopt(e.props.id,o),nodeOf:e=>dr()?.place(e)??null,detach:e=>{let o=Ef()?.config;return o?nne(e,o):e},removed:()=>Ef()?.reload()};import{sharedSectionsOf as Fne}from"efficient-easel/screen/lib/shared-sections";import{scrollPreviewToSection as Bne,scrollPreviewToTop as Z4}from"efficient-easel/screen/lib/document/preview-dom";var sne=Pf.mediaFields,lne=/video|poster|focal|phone/i;function ine(e){return(z(sne,e)??[]).find(o=>!o.includes("[]")&&!lne.test(o))??null}function dne(e){let o=ine(e.type);return e.type!==q?o&&_d(e.type,e.props,o)?{fromData:!0}:o:Zk(e.props)?{fromData:!0}:o}var R4={adds:{kind:"block",type:"ImageBlock"},kinds:["image"],pictureOf:dne,create:(e,o)=>({type:"ImageBlock",props:{...o.nodeDefaults("ImageBlock"),id:o.newNodeId("ImageBlock"),src:e.url}})};var D4={Hero:"Full-screen opener with rotating slides.",HeroSingle:"Full-screen image or video with a headline.",IntroBleed:"Full-bleed intro image the next section scrolls over.",Collections:"Product collections in a tidy grid.",AlloyWheelsListing:"A full product-listing page: filter rail, sortable card grid and pagination, from the live catalog. Choose which product types it shows.",CatalogFilterBar:"Filters the collection grids below it \u2014 a sticky row of Pills (the default), or Columns, one per filter you switch on.",ProductGrid:"Hand-picked products in a tidy grid.",FitmentFinder:"A vehicle picker \u2014 make, model, year and trim resolve the OEM stock fitment live.",Gallery:"Two image galleries with tabs and filters.",GalleryB:"A wall of your photos or your products' pictures, with a click-to-open lightbox.",SpecStrip:"A thin one-line spec strip \u2014 small-caps items spread across the width, as a dark band or a bare hairline row.",ProductHero:"A product hero \u2014 image beside price, bullets and a buy button.",SpecTable:"A spec sheet \u2014 labeled rows of product specifications.",ProcessSteps:"A heading over columns, or alternating rows, of image, title, blurb and specs.",DetailRows:"Repeating full-width rows \u2014 eyebrow, title and copy beside a numbered close-up image, alternating sides each row.",FitmentTable:"A fitment table \u2014 per-size bolt patterns, offsets and load ratings, filterable by diameter.",CompatibleTyres:"The current product's compatible tyres \u2014 image, size, key specs and price per tyre, with an inquiry link. Display only.",RelatedProducts:"The current product's related items in a tidy row \u2014 the product page's built-in 'Pair with' cross-sell.",OrderSummary:"A display order-summary panel \u2014 items, totals and a note.",DeliveryOptions:"Delivery tiers as cards \u2014 name, window and price, one highlighted.",PaymentBadges:"A payment-methods trust strip with reassurance lines.",CheckoutCTA:"A centered 'ready to order?' headline with the checkout button.",Manifesto:"A bold brand statement beside a full-height image, with a stat strip.",ParagraphsA:"An editorial text panel with a stat strip and founders' note.",StatsParagraph:"An editorial heading and paragraph over a row of stat cards whose units and small labels take the main color.",Chart:"A titled chart \u2014 bars, line or donut \u2014 drawn from your own labeled data points.",Mockup:"A headline beside a stylized product-UI mockup card \u2014 spec sheet, fitment, portal, kanban and more.",Prose:"A plain editorial text section \u2014 eyebrow, heading and body copy.",Timeline:"An editorial aside beside a rail-marked timeline of dated entries.",TimelineTrack:"A horizontal year track of milestones \u2014 company history or roadmap.",Footprint:"A world map of your locations with a legend \u2014 designed here, sold worldwide.",TitleWithButtons:"A big headline beside a stack of call-to-action buttons.",Split:"Side-by-side image and text in two columns.",Cards:"A heading over a grid of free-text title-and-blurb cards.",FAQ:"A frequently-asked-questions accordion with a header.",Testimonials:"Customer quotes in a grid \u2014 the quote, a name and a role.",Masthead:"A journal issue header with a lead statement and contents.",Breadcrumb:"A slim trail showing where the reader is (Home / Journal\u2026).",CategoryBar:"A sticky row of category tabs with counts and links.",FeaturedCover:"A featured article \u2014 big cover image beside a headline and dek.",LongRead:"A long-form article spread with a pull-quote and cover image.",Series:"A section heading over a grid of column cards.",Subscribe:"A newsletter signup beside a list of recent issues.",SubscribeBlogs:"A newsletter signup beside your latest blog posts, pulled live.",Events:"Latest journal posts in a three-card row.",DocMasthead:"A page header: eyebrow, title, details and a deck.",DocTabs:"A sticky tab bar that marks the page you are on.",DocBody:"Long-form document body with an 'On this page' contents list.",DocMetaCards:"A three-up meta strip for the foot of a document.",Banner:"Wide promo strip with background image.",Stats:"Highlight key numbers \u2014 years, designs.",Countdown:"Hours, minutes and seconds to a set date and time, then one line.",KeyFeatures:"A theme-color chip and heading over a grid of short feature labels.",Logos:"A row of partner or brand logos.",Ticker:"A scrolling marquee of short phrases, full width.",Reviews:"Approved customer reviews in a star-rated card grid, pulled live.",SubmitBuild:"A 'Show us yours.' headline with a photo-submission form.",ReviewForm:"A write-a-review form \u2014 submissions wait for your approval before they show.",ContactRouting:"Pick who to reach, then a form that routes the message.",ContactLocations:"Your locations as a city gallery plus address and map cards.",SectionHeader:"A numbered section title with optional link.",Grid:"Multi-column container for blocks.",Flex:"An empty section. Add whatever you want inside.",Spacer:"Vertical breathing room between sections.",Divider:"A thin horizontal rule between sections.",CustomHTML:"Drop in your own sanitized HTML.",Heading:"A single heading line.",Text:"A paragraph of body copy.",ImageBlock:"A standalone image, at the width you set.",ButtonBlock:"A call-to-action button."};import{jsx as Sm}from"react/jsx-runtime";import{useState as fne}from"react";import{Button as cne,Tooltip as pne,toast as N4}from"efficient-shell/ui";import{TemplateIcon as une}from"efficient-easel/icons";import{useSettledAction as mne}from"efficient-easel/easel";import{useScreenDocument as xne}from"efficient-easel/screen/components/ScreenDocumentContext";function H4({enabled:e,reason:o,onSaved:t}){let{flushSave:r}=xne(),[a,n]=fne(!1),s=async()=>{if(!a){n(!0);try{await r()?t():N4.error(c(M4))}catch{N4.error(c(M4))}finally{n(!1)}}},l=mne({onPress:()=>{s()},busy:a});return Sm(pne,{side:"bottom",content:e?c("Save this website as a platform template"):c(o),children:Sm("span",{className:"sf-tip-disabled",tabIndex:e?void 0:0,children:Sm(cne,{variant:"secondary",disabled:!e||l.busy,loading:l.busy,onClick:l.onPress,rightIcon:Sm(une,{size:15}),children:c("Save as Template")})})})}var M4="Your last changes did not save, so the template was not made. Try again.";var hne="Save your page changes first";function W4(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:hne}:{visible:!0,enabled:!0}:{visible:!1,hiddenReason:"no-site"}:{visible:!1,hiddenReason:"not-operator"}:{visible:!1,hiddenReason:"no-console"}}var $4="storefront-editor:save-as-template";import{phoneKey as Ine,tabletKey as gne}from"efficient-easel/draw";var yne=[ho.top,gne(ho.top),Ine(ho.top)],bm="ContactLocations",z4="ContactRouting",U4="CityPictures",j4="CityMaps",Sne=[{key:U4,label:"City pictures",piece:0,desc:"A wall of city photos, grouped by region. Each photo links to its city's card."},{key:j4,label:"City maps",piece:1,desc:"A card per city, grouped by region: address, phone, hours and a map."}];function G4(e=Oa,o=ZI){let t=cb.find(r=>r.sections.some(a=>a.type===z4))?.key;return!e.includes(bm)||!t?[]:Sne.filter(r=>!(o&&r.key===U4)).map(({key:r,label:a,desc:n,piece:s})=>({key:r,label:a,cat:t,after:z4,desc:n,alias:"locations offices stores branches",insert:l=>{let i=Hr(bm);if(!i)return null;let d=Os(),f=hi(bm,i,s)(l.nodeDefaults,l.newNodeId,d);if(!f||!(o&&r===j4))return f;let m=hi(bm,i,0)(l.nodeDefaults,h=>`${h}-above`,d),u=Object.fromEntries(yne.filter(h=>m?.props[h]!==void 0).map(h=>[h,m.props[h]]));return{...f,props:{...f.props,...u}}}}))}function K4(e=Oa,o){return[...G4(e,o)]}function V4(e,{nodeDefaults:o,newNodeId:t,sectionLabel:r,blockIsOffered:a}){let n=ps(e);if(n)return n(o,t,Os());if(mw(e)&&a(q)&&a(dn)){let l=z(Ct,e);return{type:q,props:{...o(q),id:t(q),direction:"column",name:`${r(e)} section`,content:[{type:dn,props:{...o(dn),id:t(dn),...l?.headStyle?{headStyle:l.headStyle}:{},...l?.headRowGap?{rowGap:l.headRowGap}:{},...l?.headDescriptionSize?{descriptionSize:l.headDescriptionSize}:{},...Ol(e)!==Ol(dn)?{eyebrowLook:Ol(e)}:{}}},{type:e,props:{...o(e),id:t(e),headPlacement:"own-box",...q4(e,t)}}]}}}if(z(dt,e)?.fixed===!0)return{type:e,props:{...o(e),id:t(e),layout:"boxes"}};let s=q4(e,t);return Object.keys(s).length?{type:e,props:{...o(e),id:t(e),...s}}:null}function q4(e,o){return e==="Cards"?{template:fw(t=>o(t))}:e===cw?{template:pw(t=>o(t))}:{}}import{useEffect as bne,useState as wne}from"react";import{useEaselSession as Cne}from"efficient-easel/screen/lib/session-context";function Y4(){let e=Cne().chrome?.products?.list,[o,t]=wne(null);return bne(()=>{if(!e)return;let r=!1;return e().then(a=>{r||t(a)}),()=>{r=!0}},[e]),o}function n6({mode:e,open:o}){let{setSelectedHeroId:t,setSelectHandler:r}=JL(),a=r6().tree,n=e,s=n.kind==="ticker"?n.heroId:null,l=_s(i=>{i&&(o({kind:"ticker",heroId:i}),Bne(i))},[o]);return Zt(()=>{t(s)},[s,t]),Zt(()=>{r(l)},[r,l]),{partRows:(i,{rowClick:d})=>{let f=String(i.props.id);return i.type==="Hero"&&iI(i.props)&&uo(o6,{icon:uo(ja,{type:"ticker",size:13}),name:c(Ma),onSelect:()=>l(f),selected:s===f,rowProps:{onClick:d(()=>l(f))},words:a})}}}function s6({mode:e,select:o}){let{setSelectedHeroPart:t,setSelectHandler:r}=Ku(),a=r6().tree,{appState:n,config:s}=t6(u=>u),l=kne({data:n.data,config:s});l.current={data:n.data,config:s};let i=e,d=ka.find(u=>Kl[u]===i.kind),f=d&&"nodeId"in i?va(String(i.nodeId),d):null,m=_s(u=>{let h=Xc(u);if(!h)return;let{data:I,config:S}=l.current,w=_ne(I,S,{kind:"node",id:h.nodeId});if(!w)return;let T={kind:Kl[h.part],nodeId:h.nodeId};o({index:w.index,zone:w.zone},T)},[o]);return Zt(()=>{t(f)},[f,t]),Zt(()=>{r(m)},[r,m]),{partRows:(u,{rowClick:h})=>{let I=String(u.props.id),S=E_(u);if(S.length===0)return null;let w=P=>{let g=va(I,P.part);return uo(o6,{icon:uo(ja,{type:P.part==="media"?"heroMedia":"heroImage",size:13}),name:c(P.label),onSelect:()=>m(g),selected:f===g,rowProps:{onClick:h(()=>m(g))},words:a},g)},[T,...B]=S;return od(e6,{children:[w(T),B.length>0&&uo(Ene,{children:B.map(w)})]})}}}function l6(e,o){return{partRows:(t,r)=>od(e6,{children:[e.partRows?.(t,r),o.partRows?.(t,r)]})}}function Lne(e){let{adapter:o,capabilities:t,currentSlug:r,siteId:a,docId:n,hasUnsavedEdits:s,bridgeCapabilities:l,notifyParent:i,token:d}=wm(),{hasPreviewLink:f}=t,m=_o(a6()).preview?.draftLink,u=p4(e.data),h=W4({hasTrustedConsole:!!d,canCreatePlatformTemplate:l.canCreatePlatformTemplate,capabilities:t,siteId:a,hasUnsavedEdits:s}),I=_s(()=>{!a||!r||i($4,{siteId:a,slug:r})},[i,a,r]),S=s4({pageSlug:r,siteId:a,token:d}),w=o.previewHref?.(r)??S;return{barLead:()=>h.visible&&uo(H4,{enabled:h.enabled,reason:h.enabled?"":h.disabledReason,onSaved:I}),barView:()=>f&&r&&uo(d4,{liveHref:w,pageId:n??null,draftLink:m}),mainAction:u}}function Rne(e,o){let{capabilities:t,templateId:r,siteId:a,tokenRef:n,navigate:s}=wm(),{hasSiteTheme:l,explainsSiteSettings:i}=t,d=P=>o.setView(P),[f,m]=X4(JT[0].id),[u,h]=X4(!1),{surface:I,setSurface:S}=DH(),w=()=>{if(l){d("styles"),o.reveal(),Z4();return}e.show(AS),e.reveal(),Z4()},T={id:"pages",label:c("Pages"),icon:uo(Pne,{}),panel:({onHide:P})=>uo(PH,{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:P})},B=[];return!l&&i&&B.push({id:"appearance",label:c("Appearance"),icon:uo(One,{}),active:e.kind==="website",onSelect:w}),l&&B.push({id:"styles",label:c("Styles"),icon:uo(Tne,{}),panel:({onHide:P,notify:g})=>uo(x5,{tokenRef:n,siteId:a??void 0,onClose:P,onNotify:g,tab:f,onTabChange:m,revealPageGroup:u,onPageGroupRevealed:()=>h(!1)})}),{railLead:[T],railTrail:B,resolveLeftView:P=>A4(P,l),openSettings:w,openStyles:()=>{m(ZT),d("styles")},openPageStyles:l?()=>{m(Mf),h(!0),d("styles"),o.reveal()}:i?()=>{e.show(r5),e.reveal()}:void 0}}function Dne(){let{navigate:e,siteId:o,reloadFromServer:t,docId:r}=wm(),a=t6(s=>s.config),n=a6();Zt(()=>(Rx({openPage:s=>e({kind:"page",slug:s.slug,siteId:o??void 0}),reload:()=>{t()},config:a}),()=>Rx(null)),[e,o,t,a]),Zt(()=>{let s=dr();if(!s||!r)return;let l=!1;return Fne(n).list().then(i=>{l||s.learn(i)}).catch(()=>{}),()=>{l=!0}},[r,n])}function i6(){let e=Wf();return _s(o=>{k0(o,e)},[e])}function Nne(e,o,t,r){let{kind:a,open:n}=e,{selected:s,zoneOf:l}=o;Zt(()=>{v4(s?.type==="BookingBox"&&s.props.region==="confirm"?P4(l(String(s.props.id))):null)},[s?.props.id]);let i=B5(e,o),{capabilities:{hasSiteSettings:d}}=wm();Dne();let{chat:f,setChat:m,setSelected:u,setSelectHandler:h}=Gu(),I=_s(()=>n(a5),[n]),S=a==="chat";Zt(()=>{u(S)},[S,u]),Zt(()=>{h(I)},[h,I]);let{setOpenHandler:w}=Bi(),T=_s(()=>n(n5),[n]);Zt(()=>{w(T)},[w,T]);let B=l6(n6(e),s6(e)),P=Lne(o),g=Rne(e,r);gH(r);let C=t.device,E=i6();return{...B,...P,...g,hasOwnRows:A=>A.type===gm,ownRows:i.renderLocationTree,sectionPressed:i.sectionPressed,onCopyItem:E,wrap:A=>uo(Vx.Provider,{value:!0,children:od(Ane.Provider,{value:C,children:[A,uo(y4,{})]})}),addPanelRow:A=>d?od("div",{className:"sf-addside-sitewide",children:[uo("span",{className:"sf-addside-sitewide-glyph","aria-hidden":"true",children:uo(ja,{type:"chat",size:16})}),od("button",{type:"button",className:"sf-addside-sitewide-name",onClick:()=>{A(),I()},children:[c("Live chat"),uo("span",{className:"sf-addside-sitewide-desc",children:c("A chat bubble on every page")})]}),uo(vne,{checked:f.enabled,onChange:N=>m({enabled:N}),ariaLabel:c("Show the chat bubble on the whole site")})]}):void 0}}var J4=null,ob=new WeakMap;function Mne(e){let o=lC();if(!e||!o)return e;J4!==o&&(J4=o,ob=new WeakMap);let t=ob.get(e);return t||(t={...e,choices:e.choices?e.choices.map(r=>({...r,label:c(r.label)})):null,spec:e.spec?{...e.spec,addLabel:c(e.spec.addLabel),...e.spec.childLabel?{childLabel:c(e.spec.childLabel)}:{}}:null},ob.set(e,t)),t}var Hne={isLockedBlock:(e,o)=>bu(e,o)||!!(o&&dr()?.heldElsewhere(o.props.id)),duplicateBlocked:cm,nestDepth:(e,o,t)=>o===$d?zd(e,t):0,newSectionNode:V4,canAddTo:(e,o,t,r)=>Mne(C4(e,o,r,t)),blockIsOffered:UR,slotsOf:k4,resolveOnInsert:!0},Wne=new Proxy(D4,{get:(e,o)=>{let t=Reflect.get(e,o);return typeof t=="string"?c(t):t}}),$ne={labelAtLevel:(e,o,t)=>c(Tm(e,o,t)),descriptions:Wne,categoryLabel:e=>{let o=S4(e);return o===void 0?void 0:c(o)},firstSection:b4,blockRowName:T4,rowName:wu,plainText:an,Icon:ja,Thumbnail:u5,useProducts:Y4,presets:K4()},zne={desktop:2e3,tablet:800,mobile:390},Q4="desktop",Une={options:FH,initial:Q4,fluid:Q4,fluidMin:Zb,widths:zne,hidesPerView:!0},jne={read:E4,write:e=>_4(e),forSelection:(e,o)=>F4(e,o)},Gne={first:Ko,last:Re,firstGroup:Mo,lastGroup:ao,isSectionGroup:lP,sectionGroupZone:iP,panelOf:e=>e===Ko?t5:null,get sharedReach(){return ua()?qne:void 0},get shared(){return dr()?L4:void 0},get groupTab(){return ua()?G2:void 0},get groupBadge(){return ua()?PS({type:ao})??void 0:void 0},get changeNotice(){return ua()?K2():void 0},get band(){return ua()?Kne:void 0},get groupAccepts(){return ua()?cP:void 0}},Kne={foldable:!0},qne=e=>PS(e)??B4(e);function Vne(e){return{...l6(n6(e),s6(e)),onCopyItem:i6(),openSettings:()=>e.show(AS)}}function Yne(e,o){U5(e,o),o4()}var Bze={useOwnerName:Ln,useDocumentLabel:E0,useBridges:Nne,useStandaloneBridges:Vne,useDocumentPass:Yne,blockRules:Hne,blockLook:$ne,devices:Une,leftView:jne,pinned:Gne,Canvas:aH,canvasDrag:{media:R4},Inspector:l5};export{Bg as a,qt as b,Vt as c,no as d,the as e,fI as f,tye as g,ci as h,pi as i,nF as j,sF as k,Bp as l,rye as m,HG as n,lF as o,aye as p,_R as q,UTe as r,AR as s,KTe as t,yl as u,ha as v,uI as w,dhe as x,dp as y,MO as z,HO as A,q1 as B,J0 as C,Pt as D,ec as E,Q0 as F,ph as G,Vle as H,Yle as I,Xle as J,eO as K,Zle as L,oc as M,aO as N,oie as O,tie as P,nO as Q,rie as R,xie as S,hie as T,cO as U,Jo as V,Hn as W,fo as X,Fa as Y,Y as Z,Zn as _,J as $,X as aa,te as ba,re as ca,ce as da,Uhe as ea,pe as fa,Qn as ga,es as ha,ti as ia,ri as ja,J1 as ka,qhe as la,Sj as ma,Q1 as na,Xhe as oa,Zhe as pa,eA as qa,Th as ra,AO as sa,gW as ta,Ol as ua,FO as va,wde as wa,xI as xa,oIe as ya,tIe as za,rIe as Aa,aIe as Ba,nIe as Ca,sIe as Da,Uie as Ea,kc as Fa,Pl as Ga,jie as Ha,Gie as Ia,wO as Ja,wh as Ka,J3 as La,Q3 as Ma,Kie as Na,eW as Oa,qie as Pa,wE as Qa,jce as Ra,AE as Sa,Gce as Ta,Kce as Ua,qce as Va,gp as Wa,yI as Xa,aA as Ya,yp as Za,IIe as _a,Bj as $a,Lj as ab,Rj as bb,gIe as cb,Uo as db,Da as eb,ns as fb,age as gb,nge as hb,sge as ib,HE as jb,Uc as kb,E$ as lb,ope as mb,HA as nb,WA as ob,$A as pb,vge as qb,jA as rb,iye as sb,dye as tb,Rp as ub,dF as vb,Al as wb,RO as xb,DO as yb,_h as zb,Sa as Ab,XO as Bb,sfe as Cb,lfe as Db,ife as Eb,Rl as Fb,lt as Gb,xfe as Hb,Xie as Ib,dde as Jb,kh as Kb,fde as Lb,ga as Mb,vc as Nb,Ze as Ob,Pfe as Pb,tE as Qb,aE as Rb,nE as Sb,Dp as Tb,IF as Ub,vye as Vb,Np as Wb,gF as Xb,_ye as Yb,EF as Zb,u8 as _b,zp as $b,OSe as ac,Kc as bc,$$ as cc,Yh as dc,k8 as ec,USe as fc,oB as gc,tB as hc,jSe as ic,GSe as jc,Zx as kc,F6 as lc,Jx as mc,i0 as nc,sbe as oc,hB as pc,IB as qc,gB as rc,Fbe as sc,jbe as tc,Gbe as uc,Kbe as vc,cg as wc,vB as xc,V8 as yc,Y8 as zc,Gp as Ac,Ybe as Bc,Xbe as Cc,Cwe as Dc,qB as Ec,kwe as Fc,VB as Gc,Pwe as Hc,oL as Ic,tL as Jc,EK as Kc,nL as Lc,jwe as Mc,Yp as Nc,eCe as Oc,mi as Pc,rCe as Qc,dL as Rc,nCe as Sc,fL as Tc,cL as Uc,iCe as Vc,Tl as Wc,IW as Xc,hr as Yc,uCe as Zc,Xp as _c,ICe as $c,Jp as ad,mde as bd,xde as cd,ya as dd,hde as ed,fh as fd,Qf as gd,D0 as hd,it as id,Ul as jd,fz as kd,Jh as ld,Ype as md,jl as nd,pz as od,Xpe as pd,eue as qd,Gl as rd,v_ as sd,P_ as td,Wue as ud,$ue as vd,zue as wd,Uue as xd,Tz as yd,jue as zd,Xc as Ad,ql as Bd,Vue as Cd,tI as Dd,R_ as Ed,D_ as Fd,Qh as Gd,Lz as Hd,Yue as Id,Zc as Jd,Vl as Kd,Qc as Ld,Xue as Md,Zue as Nd,Jc as Od,Jue as Pd,Que as Qd,W_ as Rd,Yl as Sd,Xl as Td,op as Ud,z_ as Vd,Yn as Wd,U_ as Xd,tp as Yd,rp as Zd,ap as _d,j_ as $d,G_ as ae,K_ as be,q_ as ce,V_ as de,o1 as ee,t1 as fe,_me as ge,Ame as he,Fme as ie,Bme as je,Lme as ke,rU as le,aU as me,Rme as ne,Dme as oe,Nme as pe,a1 as qe,Mme as re,Hme as se,Wme as te,$me as ue,lU as ve,iU as we,uU as xe,xU as ye,hU as ze,f1 as Ae,wU as Be,p1 as Ce,u1 as De,Dc as Ee,_U as Fe,Ixe as Ge,S1 as He,kxe as Ie,Dxe as Je,Nxe as Ke,tce as Le,Dl as Me,lce as Ne,ice as Oe,gE as Pe,Ii as Qe,Xt as Re,dD as Se,cu as Te,uOe as Ue,mOe as Ve,vOe as We,POe as Xe,fV as Ye,Xg as Ze,gD as _e,TOe as $e,SD as af,bD as bf,PD as cf,IV as df,SV as ef,XOe as ff,dEe as gf,fEe as hf,wi as if,cEe as jf,pEe as kf,Qg as lf,uEe as mf,vve as nf,Ml as of,Uh as pf,$c as qf,zEe as rf,Kn as sf,Spe as tf,bpe as uf,QE as vf,o9 as wf,SN as xf,vi as yf,s1e as zf,i1e as Af,dy as Bf,LN as Cf,ou as Df,_ve as Ef,Bve as Ff,JL as Gf,Sg as Hf,QL as If,eR as Jf,Dve as Kf,oR as Lf,ru as Mf,jve as Nf,rR as Of,sR as Pf,aR as Qf,hy as Rf,iFe as Sf,dFe as Tf,fFe as Uf,wu as Vf,lM as Wf,yy as Xf,_Fe as Yf,AFe as Zf,nZ as _f,sZ as $f,xBe as ag,hBe as bg,IBe as cg,gBe as dg,Ou as eg,Eu as fg,zBe as gg,FM as hg,RM as ig,DM as jg,NM as kg,RRe as lg,Lke as mg,Fu as ng,Uu as og,TH as pg,OH as qg,_H as rg,ju as sg,uDe as tg,mDe as ug,Gu as vg,kQ as wg,kDe as xg,Bi as yg,ODe as zg,DH as Ag,Rn as Bg,E6 as Cg,xse as Dg,hse as Eg,V2e as Fg,Y2e as Gg,X2e as Hg,T1 as Ig,ADe as Jg,Ku as Kg,nse as Lg,B6 as Mg,L6 as Ng,R6 as Og,c0 as Pg,Rse as Qg,Yf as Rg,t3 as Sg,r3 as Tg,fle as Ug,Jne as Vg,C3 as Wg,SO as Xg,Die as Yg,Nie as Zg,X3 as _g,Mie as $g,Hie as ah,Cc as bh,Wie as ch,jn as dh,iE as eh,dE as fh,SE as gh,Hce as hh,ME as ih,Zce as jh,WE as kh,Xh as lh,j$ as mh,V$ as nh,Fpe as oh,wke as ph,Hke as qh,Uke as rh,BL as sh,Vke as th,Yke as uh,lve as vh,ive as wh,bve as xh,xi as yh,rq as zh,CPe as Ah,APe as Bh,YPe as Ch,XPe as Dh,kTe as Eh,CR as Fh,tse as Gh,mMe as Hh,GH as Ih,Re as Jh,fm as Kh,Lt as Lh,g5 as Mh,qi as Nh,y5 as Oh,S5 as Ph,o6e as Qh,t6e as Rh,t4 as Sh,YS as Th,r4 as Uh,C4 as Vh,wWe as Wh,Bze as Xh};
|