efficient-storefront-blocks 0.137.0 → 0.138.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +32 -0
- package/dist/chunks/{CustomHtmlCodeWindow-Z6VOLUDK.js → CustomHtmlCodeWindow-4OS3BLNS.js} +1 -1
- package/dist/chunks/EditorPreviewCheckout-RF2M6FBA.js +4 -0
- package/dist/chunks/SiteEditorProvider-445QTFDY.js +1 -0
- package/dist/chunks/{chunk-JBOIT52E.js → chunk-55HCCLM4.js} +1 -1
- package/dist/chunks/chunk-6VZXQPDK.js +337 -0
- package/dist/chunks/chunk-DXVVHVFA.js +11 -0
- package/dist/chunks/chunk-JZT76GOY.js +1 -0
- package/dist/chunks/{chunk-HTPROWNP.js → chunk-LAUTWUIM.js} +1 -1
- package/dist/chunks/{chunk-FI4EXF37.js → chunk-MCIZHB3Z.js} +1 -1
- package/dist/chunks/{chunk-ZVHG5QQR.js → chunk-OAHMFUHH.js} +1 -1
- package/dist/chunks/{chunk-2XZFXVKX.js → chunk-U54HRBBL.js} +1 -1
- package/dist/chunks/{fitment-data-QZLRTN6S.js → fitment-data-5CQLYPUS.js} +1 -1
- package/dist/chunks/{section-css-style-MHLXSGS3.js → section-css-style-GS3GFILD.js} +1 -1
- package/dist/editor/lib/efficient-backend.js +1 -1
- package/dist/index.js +25 -25
- package/dist/render/built-with.json +1 -1
- package/dist/render/components/CouponField.js +1 -1
- package/dist/render/components/checkout/CheckoutPageClient.js +1 -1
- package/dist/render/components/checkout/checkout-parts.js +1 -1
- package/dist/render/lib/api/index.d.ts +38 -2
- package/dist/render/lib/api/index.js +1 -1
- package/dist/render/lib/api/types.d.ts +26 -0
- package/dist/render/lib/cart/shipping-status.d.ts +1 -0
- package/dist/render/lib/cart/shipping-status.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 +2 -2
- package/dist/chunks/EditorPreviewCheckout-2VQTCCYW.js +0 -4
- package/dist/chunks/SiteEditorProvider-DRHFIJIM.js +0 -1
- package/dist/chunks/chunk-4AVKWZMD.js +0 -1
- package/dist/chunks/chunk-JRZLQGD3.js +0 -337
- package/dist/chunks/chunk-MYDBTUHM.js +0 -9
- /package/dist/chunks/{chunk-MHHLECYD.js → chunk-4BGF2KJJ.js} +0 -0
- /package/dist/chunks/{chunk-JRZLQGD3.js.LEGAL.txt → chunk-6VZXQPDK.js.LEGAL.txt} +0 -0
- /package/dist/chunks/{chunk-PAE6QL75.js → chunk-EWEX5KJD.js} +0 -0
- /package/dist/chunks/{chunk-ZVHG5QQR.js.LEGAL.txt → chunk-OAHMFUHH.js.LEGAL.txt} +0 -0
- /package/dist/chunks/{chunk-BKBFZATI.js → chunk-T3YKEXOD.js} +0 -0
|
@@ -0,0 +1,337 @@
|
|
|
1
|
+
import{$ as ff,D as Fk,E as Bk,F as af,G as Rk,H as $k,I as vr,J as zk,K as Uk,L as jk,M as lt,N as nf,O as ko,P as fe,R as sf,S as Pr,T as lf,X as Gk,Y as df,Z as Tr,_ as Kk,a as Zo,b as Qs,ba as rP,c as Vd,d as wn,e as el,f as lk,fa as xP,g as Cn,h as Yd,ha as hP,ia as Wf,ja as UT,ka as jT,r as ll,t as Ak}from"./chunk-MCIZHB3Z.js";import{a as bP,d as Cf,e as it,f as kf,g as vf,h as Ef,l as qx}from"./chunk-4BGF2KJJ.js";import{$ as dx,$a as Zd,$c as bv,$d as fa,$e as Tf,$f as _f,$j as Dn,A as CC,Aa as VC,Ab as of,Ac as nv,Ad as Mv,Ae as iP,Ag as oT,Aj as Fn,Al as Nn,B as kC,Ba as YC,Bb as tf,Bc as sv,Bd as Hv,Be as dP,Bf as WP,Bg as tT,Bj as TT,Bl as zf,C as vC,Ca as XC,Cb as Tk,Cc as lv,Cd as Wv,Ce as fP,Cg as rT,D as nt,Da as ux,Db as Io,Dc as hf,Dd as $v,De as cP,Dg as Rx,Dk as Il,E as PC,Ea as JC,Eb as Ix,Ec as iv,Ed as kx,Ee as bf,Eg as aT,Ej as Wx,Ek as Hf,F as TC,Fa as ZC,Fb as nl,Fc as dv,Fd as zv,Fe as pP,Fg as Lx,Fj as xl,Fk as jx,G as OC,Ga as QC,Gb as zt,Gc as fv,Gd as Uv,Ge as uP,Gg as lr,Gk as HT,H as EC,Ha as ek,Hb as vn,Hc as cv,Hd as jv,Hg as Dx,Hk as ua,I as _C,Ia as ok,Ib as sl,Ic as jt,Id as Gv,Ie as Qo,Ig as Ff,Ij as Bn,Ik as WT,J as AC,Ja as tk,Jc as ze,Jd as Kv,Je as mP,Jg as nT,Jk as $T,K as FC,Ka as wr,Kc as Or,Kd as vx,Ke as Ue,Kf as $P,Kg as sT,Kj as OT,Kk as zT,La as rk,Lb as gx,Lc as bx,Ld as qv,Le as vt,Lf as zP,Lg as lT,M as BC,Mb as na,Mc as pv,Md as Px,Me as Te,Mf as UP,Mg as iT,Mk as GT,N as RC,Na as ak,Nb as rf,Nc as uv,Nd as Vv,Ne as yP,Nf as jP,Ng as dT,O as LC,Oa as Xd,Ob as Ok,Oc as mv,Od as Yv,Of as Fx,Ok as KT,P as zd,Pa as ol,Pb as Ek,Pc as If,Pd as Xv,Pf as GP,Pk as Gx,Q as DC,Qa as Jd,Qb as _k,Qc as dl,Qd as Gt,Qf as KP,Qg as fT,R as NC,Ra as ik,Rb as cf,Rc as xv,Rd as Jv,Re as Tx,Rf as Bx,Rg as cT,Rk as qT,Sb as Yk,Sc as hv,Sd as da,Sj as ET,Sk as VT,Tb as pf,Tc as Iv,Tj as $x,Tk as YT,Ub as Sx,Uc as gf,Ud as Zv,Ue as ul,Uj as _T,Uk as XT,Va as dk,Vb as uf,Vc as gv,Vd as En,Vf as sr,Vi as pa,Vj as AT,Vk as JT,W as ix,Wa as fk,Wc as yv,Wk as ZT,Xa as tl,Xc as wx,Xd as nr,Xf as _n,Xi as ir,Xj as Mf,Xk as QT,Y as Js,Yc as Sv,Yd as Qv,Ye as SP,Yj as Rn,Yk as e0,Z as Ud,Za as kn,Zc as On,Zd as pl,Ze as Ox,Zf as qP,Zh as gT,Zj as Ln,_ as Fo,_a as ck,_b as Pn,_d as eP,_e as wP,_f as VP,_g as Bf,_h as yT,_j as hl,a as Ao,aa as yn,ab as pk,ad as wv,ae as oP,ag as Ar,ak as FT,b as hn,ba as MC,bb as rl,bc as Xk,bd as Cv,bf as _P,bg as Af,ca as HC,cb as uk,cc as Jk,cd as kv,ce as yf,cj as Df,d as nC,da as WC,db as mk,dc as Zk,dd as vv,de as _r,dg as An,e as ax,ea as $C,eb as xk,ec as il,ed as sa,ee as tP,ef as _x,eh as pT,ej as wT,f as sC,fa as zC,fb as hk,fd as Pv,g as c,ga as fx,gb as xx,gd as Cx,gh as uT,h as $t,hb as Ik,hd as Tv,hk as BT,i as gn,ia as UC,ib as al,id as Ov,ii as ST,ik as RT,j as Ys,ja as jd,jb as gk,jd as Ev,jf as AP,ji as bT,k as Ho,kb as hx,kd as _v,kf as FP,l as Xs,ld as Av,lf as Of,mb as yk,md as Er,me as aP,mf as BP,mg as Fr,n as mC,nb as Sk,nd as fl,nf as RP,ng as YP,nl as Kx,o as xC,od as la,og as XP,p as hC,pb as Qd,pc as Tn,pd as Fv,pe as nP,pg as JP,pk as zx,q as IC,qb as bk,qc as Ut,qe as sP,qh as Nx,qj as CT,r as gC,rb as wk,rc as Qk,rd as ia,re as lP,rh as Rf,rk as LT,s as yC,sb as Ck,sc as ev,sd as cl,sh as ca,sk as DT,t as SC,tb as kk,tc as ov,td as Bv,th as Lf,tj as kT,tk as NT,u as bC,ub as ef,uc as tv,ud as Rv,uf as LP,ug as ZP,uj as Nf,v as $d,vb as vk,vc as rv,vf as Ax,vh as mT,vj as Mx,vk as MT,vl as o0,w as br,wc as mf,wd as Lv,we as Wo,wf as DP,wh as xT,wj as vT,wl as t0,xc as xf,xd as Dv,xe as ao,xf as NP,xh as hT,xj as PT,xk as Ux,xl as $f,y as lx,yb as Pk,yc as av,yd as Nv,yf as MP,yg as QP,yh as IT,yj as Hx,yl as r0,z as wC,za as qC,zb as Cr,ze as Sf,zf as HP,zg as eT}from"./chunk-DXVVHVFA.js";import{a as pC,b as Wd,c as uC,g as qk,h as yx,i as Vk}from"./chunk-55HCCLM4.js";import{$ as Ib,$a as Nb,$c as R,$e as Qm,$g as fC,A as io,Ab as Jb,Ad as cw,B as an,Be as Jm,Bf as tx,Ca as ye,Cb as js,Cd as Ym,Ce as bw,Ci as vo,D as $s,Db as Zb,E as pd,Ed as pw,Ee as Zm,F as Nt,Fd as vd,G as nn,Ga as rt,Gg as Jw,Gi as ml,H as $e,Ha as wt,Hb as wd,Hd as at,Hg as Zw,I as Ye,Ia as _m,Ic as aw,Id as Mo,Ie as Od,If as Lw,Ig as Qw,J as sn,Ja as Am,Jd as ro,Je as Ed,Jg as eC,K as ud,Kc as jm,Kd as Ht,Ke as ww,Kh as mx,L as fb,La as Fm,Ld as rr,Le as _d,Lf as ar,Lh as Sn,M as cb,Ma as Bm,Mb as Qb,Md as kt,Me as Ad,Mg as oC,Mh as nk,Nd as pn,Ne as Cw,Nh as st,O as pb,Od as uw,Oe as kw,Oh as Jo,P as md,Pd as un,Pe as Fd,Pg as tC,Ph as qd,Q as ub,Qa as Rm,Qd as mw,Qe as Bd,Qg as rC,Qh as sk,R as ea,Ra as Eb,Rb as Cd,Rc as nw,Re as aa,Rf as Dw,Rh as bn,S as mb,Sa as _b,Se as vw,Sg as aC,T as xb,Ta as Ge,U as zs,Ua as Ab,Ub as ew,Ud as ra,Ug as lC,Uh as Lk,V as Om,Va as yd,Vb as ow,Vd as xw,Vg as iC,W as Ce,Wa as Fb,Wd as hw,We as Pw,X as K,Xa as Bb,Xb as tw,Xd as mn,Xf as Nw,Xg as Sr,Y as hb,Ya as Rb,Yc as U,Yd as Ks,Yf as Mw,Yh as Dk,Za as Lb,Zb as $m,Zc as oe,Zd as qs,Ze as Wt,Zf as Hw,Zg as dC,_ as xd,_a as Db,_c as Gm,_d as Xm,_e as Vs,_f as Ww,_g as nx,a as rn,ab as Mb,ad as Co,ae as Iw,af as ex,ah as sx,b as ho,bb as Hb,bd as or,be as gw,bf as Tw,bh as Hd,c as lo,ca as hd,cb as Sd,cd as sw,ce as yw,cf as Ow,cg as $w,d as Qt,da as gb,db as bd,dd as H,df as Rd,dg as zw,dh as cC,di as Nk,ea as yb,eb as Wb,ed as kd,ee as Sw,ef as Ew,ei as kr,f as Xo,fa as Em,fb as $b,fd as No,fg as Uw,g as Ws,ga as Sb,gc as zm,gd as lw,ge as Pd,gg as jw,gi as Mk,h as tb,ha as bb,hb as zb,hd as Ct,hf as _w,hg as Nd,hi as Hk,i as rb,ia as wb,ib as Ub,id as Mt,ie as Td,if as Ld,ig as Gw,ii as Wk,j as ab,jb as Lm,jd as Km,jf as Aw,jg as Md,k as nb,kb as jb,kd as gr,kf as ox,kg as rx,la as Cb,lb as Gb,ld as tr,lf as Fw,ma as kb,mb as Dm,md as iw,mf as Bw,na as vb,nb as dn,nf as Dd,ng as Kw,o as sb,od as Fe,of as xn,og as qw,pa as Pb,pb as oa,pd as ta,pf as In,pi as CP,qb as Nm,qd as Gs,qf as yr,qi as kP,ra as Tb,rb as Mm,rd as fn,rg as Vw,rh as cx,ri as Pf,s as lb,sa as Id,sb as Hm,sd as dw,sg as Yw,sh as Gd,si as vP,ta as Ob,tb as Kb,td as qm,th as jC,ti as Ex,u as Le,ua as gd,ub as qb,ud as cn,uf as Rw,uh as px,ui as PP,v as ib,vb as Vb,vc as Um,vd as Vm,vg as Xw,vh as GC,w as cd,wb as Wm,wi as TP,x as db,xb as Yb,xc as rw,xh as Kd,xi as OP,ya as Us,yb as er,yh as KC,yi as EP,z as Pe,za as ln,zb as Xb,zd as fw,zh as Zs}from"./chunk-U54HRBBL.js";import{a as z,b as Qe}from"./chunk-EWEX5KJD.js";import{c as IP,d as gP,e as wf}from"./chunk-T3YKEXOD.js";import{jsx as Uf,Fragment as w6,jsxs as C6}from"react/jsx-runtime";import{createContext as k6,useContext as v6}from"react";var P6={mirrorHostStyles:!0,css:null,fontHrefs:[]},a0=k6(P6);function mse({value:e,children:o}){return Uf(a0.Provider,{value:e,children:o})}function gl(){return v6(a0)}function n0(){let{mirrorHostStyles:e,css:o,fontHrefs:t}=gl(),r=Qo();return C6(w6,{children:[t.map(a=>Uf("link",{rel:"stylesheet",href:a},a)),o?Uf("style",{"data-sf-canvas-css":"",children:o}):null,e?null:Uf(mP,{usedKeys:r.siteFonts.keys(),preload:!1})]})}import{jsx as T6}from"react/jsx-runtime";import{createContext as O6,useContext as E6}from"react";var s0=O6(void 0);function gse({metadata:e,children:o}){return T6(s0.Provider,{value:e,children:o})}var l0=()=>E6(s0);import{jsx as uo,Fragment as i6,jsxs as sd}from"react/jsx-runtime";import{useCallback as Bs,useEffect as Jt,useRef as Hne,useState as a6}from"react";import{SettingsSwitch as Wne}from"efficient-easel/panel";import{PagesIcon as $ne,StylesIcon as zne}from"efficient-easel/rail";import{PaletteIcon as Une}from"efficient-shell/icons/efficient";import{Subtree as jne,TreeRow as d6}from"efficient-easel/tree";import{useEasel as f6}from"efficient-easel/easel";import{toItemSelector as Gne}from"efficient-easel/node-ops";import{useEaselStrings as c6}from"efficient-easel/strings";import{createContext as _6,useContext as A6}from"react";var Vx=_6(!1),bse=()=>A6(Vx);import{useMemo as F6,useRef as B6}from"react";import{useEaselApi as R6}from"efficient-easel/easel";import{useSectionOps as L6}from"efficient-easel/screen/lib/document/use-section-ops";function jf(){let e=R6(),o=L6(),t=B6(o);return t.current=o,F6(()=>({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 t3}from"efficient-easel/draw";import{insertAt as r3,moveTo as a3,removeAt as n3}from"efficient-easel/fields";import{useSyncExternalStore as Y6}from"react";import{isNodeList as i0}from"efficient-easel/data";var d0="Flex";function Mn(e,o){return Wt(e)?typeof e?.[Xo]=="string"?Yx(o?.[Xo]):"":Yx(e?.[Xo])}var Yx=e=>typeof e=="string"?e.trim():"",D6=e=>e.type===io&&Array.isArray(e.props?.[Zm])&&e.props[Zm].some(o=>Yx(o?.[Xo])!==""),N6=new Intl.NumberFormat("en-US");function M6(e){return/^\d+$/.test(e)?N6.format(Number(e)):e}function Ase(e,o){let t=o?o.find(r=>r.key===e)?.value:lb(Ws).find(r=>r.key===e)?.value;return t===void 0?null:M6(t)}var H6={[Xo]:"any"};function Xx(e,o=!1){let t=e.props;if(!t)return{node:e,names:!1};let r=e.type==="Text"&&(Mn(t)!==""||o&&Mn(t,H6)!==""),a=o||D6(e),n=Ye(e,l=>$e(l,i=>{let d=Xx(i,a);return d.names&&(r=!0),d.node})).props;if(e.type!==d0)return{node:n===t?e:{...e,props:n},names:r};let s=Le(n);if(r&&!s&&(n={...n,[lo]:Ws}),!r&&s===Ws){let{[lo]:l,...i}=n;n=i}return{node:n===t?e:{...e,props:n},names:!1}}function f0(e,o,t){for(let r of e){if(r?.props?.id===o)return t;for(let a of nn(r??{})){let n=f0(a,o,r.type===d0?r:t);if(n!==void 0)return n}}}function Fse(e,o){if(!i0(e))return!0;let t=f0(e,o,null);if(t===void 0)return!0;if(t===null)return!1;let r=Le(t.props);return!r||r===Ws}function c0(e){let o=e?.content;if(!i0(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 p0(e){return Xx(e).node}import{decodePartId as X6}from"efficient-easel/draw";function Hn(e,o){let t=sv(e);return t?.control==="textList"?o.rowKey===(t.itemKey??"text")?DT(t,o.index):null:lv(e)?.[o.rowKey]??null}function Gf(e,o,t){let r=e.node.props,{key:a,row:n}=Ut(e.propKey),s=n?dv(r,a,n,e.kind,o):nv(r,a,e.kind,o);return s?(t(e.zone,e.index,{...e.node,props:s}),!0):!1}import{readHidable as x0}from"efficient-easel/draw";import{parseOption as W6}from"efficient-shell/format";var Jx=e=>String(e+1).padStart(2,"0"),$6=[{label:"01 \xB7",value:"two-digit"},{label:"1.",value:"plain"}],Zx="two-digit",u0=e=>W6($6,Zx,e),Kf=(e,o)=>e==="plain"?`${o+1}.`:Jx(o);var oh="Contents",Qx="Flex",m0="Text",z6="numberForm",U6="_contentsEntries",j6="_kickerNumber",h0="data-sf-kicker-number",G6=e=>x0(e).text.trim(),I0=e=>fa(e?.anchor),eh=e=>String(e.props?.id??""),K6=e=>!x0(e.props?.text).hidden&&!Mn(e.props)&&!Wt(e.props),yl=e=>nn(e);function g0(e){for(let o of yl(e))for(let t of o){if(nr(t.props??{}))continue;if(t.type===m0&&K6(t))return t;if(t.type===m0)continue;let r=g0(t);if(r)return r}}function y0(e){return yl(e).some(o=>o.some(t=>t&&!nr(t.props??{})&&(t.type===oh||y0(t))))}var S0=e=>e.type===Qx&&_n(Qx,e.props?.direction)==="row";function b0(e){return yl(e).some(o=>o.some(t=>t&&!nr(t.props??{})&&(t.type===oh||!S0(t)&&b0(t))))}function q6(e){let o=[],t=(r,a)=>{for(let n of r){if(!n||nr(n.props??{}))continue;if(n.type===oh){a.open={contents:n,sections:a.waiting??[]},a.waiting=null,o.push(a.open);continue}if(S0(n)&&b0(n)){let l={inRow:!0,open:null,waiting:[]};for(let i of yl(n))t(i,l);a.inRow||(a.open=null);continue}let s=a.open?.sections??a.waiting;if(n.type===Qx&&I0(n.props)&&s&&!y0(n)){s.push({box:n,kicker:g0(n)});continue}for(let l of yl(n))t(l,a)}};return t(e,{inRow:!1,open:null,waiting:null}),o}function V6(e){return e.map(o=>({label:o.kicker?ln(G6(o.kicker.props?.text)):"",anchor:I0(o.box.props)}))}function th(e){let o=e?.length?q6(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,V6(a.sections));let s=u0(a.contents.props?.[z6]);a.sections.forEach((l,i)=>{let d=l.kicker?eh(l.kicker):"";d&&r.set(d,Kf(s,i))})}return{entries:t,numbers:r}}var Jse=e=>e.endsWith(".")?`${e} `:`${e} \xB7 `;function w0(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=Ye(s,h=>$e(h,n)),i=l.props??{},d=l!==s,f=eh(s),m=f?r.get(f):void 0;m&&(i={...i,[U6]:m},d=!0);let u=f?a.get(f):void 0;return u&&(i={...i,[j6]:u},d=!0),d?{...s,props:i}:s};return{...o,content:o.content.map(n)}}var J6=`[${h0}]`,Z6=["bold","italic","underline","strike","link","sup","sub"],Q6=["bullet","number"];function nh(e,o){return e?[...Z6,...o?Q6:[]]:[]}function C0(e,o){let t=X6(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?Hn(d,i):d,m=mf(f);if(!m)return null;let u=n.props??{};if(gT(u)!==null||!i&&Rd(n.type,u,l)||n.type==="Text"&&l==="text"&&Mn(u)||i&&!(Array.isArray(u[l])&&i.index<u[l].length))return null;let h=i?hf(u[l],i):u[l];return{node:n,selector:s,propKey:a,kind:m,stored:h,offPage:Df(f),panelOnly:rv(f)}}function qf(e,o){let t=C0(e,o);if(!t)return null;let{text:r,hidden:a}=pa(t.stored);if(!yv({offPage:t.offPage,hidden:!!a,panelOnly:t.panelOnly}))return null;let n=xf(t.kind);return{partId:e,value:r,rules:Id,multiline:n,skip:J6,offered:nh(t.kind!=="plainText",n),write:s=>{let l=C0(e,o);l&&Gf({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(ze)===t?e:o?.querySelector(`[${ze}="${Vf(t)}"]`)??null}function Vf(e){return e.replace(/["\\]/g,"\\$&")}function k0(e){let o=e.activeElement;return o?o.tagName==="IFRAME"||!!o.closest(".es-canvas"):!1}var rh=null,ah=new Set;function e3(){return rh}function lh(e){if(e!==rh){rh=e;for(let o of ah)o()}}function o3(e){return ah.add(e),()=>{ah.delete(e)}}function v0(){return Y6(o3,e3,()=>null)}function P0(e,o){if(e.outer)return null;let t=o.getItemById(e.ownerId);if(!t)return null;let r=Cw(t.type);return!r||Le(t.props)?null:{node:t,rows:r}}function s3(e,o){let t=P0(e,o),r=o.getItemById(e.nodeId);if(!t||!r)return null;let a=Ew(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:t3(e.ownerId,Tn(t.rows,{index:e.index,rowKey:a}))}function Yf(e,o){let t=s3(e,o);return t?qf(t,o):null}function T0(e,o){return Yf(e,o)?.value}function O0(e,o){let t=Yf(e,o);return t?(t.write(e.text),!0):!1}function E0(e,o){let t=P0(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=r3(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=a3(n,s,i);break}case"delete":l=n3(n,s);break;default:return!1}return o.replace(r.zone,r.index,{...t.node,props:{...a,[t.rows]:l}}),!0}import{jsx as ve,Fragment as QZ,jsxs as Uu}from"react/jsx-runtime";import{Fragment as eQ,useEffect as TH,useMemo as OH,useRef as oQ,useState as Ua}from"react";import{useScreenDocument as BH}from"efficient-easel/screen/components/ScreenDocumentContext";import{UiIcon as Wy}from"efficient-easel/draw/client";import tQ from"efficient-easel/screen/components/SidePanelHead";import{InspectorIconButton as rQ}from"efficient-easel/chrome";import{Input as aQ,LoadingSpinner as nQ,PopupMenu as sQ,PopupMenuItem as EH,toast as _H}from"efficient-shell/ui";import{LayersTree as lQ,TreeGroupLabel as iQ,TreeRow as AH,TreeRowAction as ju}from"efficient-easel/tree";import{AddIcon as dQ,DuplicateIcon as fQ,PageIcon as cQ,SettingsIcon as pQ}from"efficient-easel/icons";import{PagesIcon as uQ}from"efficient-easel/rail";import{useEaselHost as mQ}from"efficient-easel/screen/lib/host";import{useEaselSession as $y}from"efficient-easel/screen/lib/session-context";import{useCallback as Xf,useEffect as l3,useSyncExternalStore as i3}from"react";import{useScreenDocument as B0}from"efficient-easel/screen/components/ScreenDocumentContext";var _0=new WeakMap;function Sl(e){let o=_0.get(e);return o||(o={rows:null,loading:null,listeners:new Set},_0.set(e,o)),o}function ih(e,o){e.rows=o;for(let t of e.listeners)t()}var Jf=new Set;function Zf(e,o){o?Jf.add(e):Jf.delete(e)}function A0(e){let o=Sl(e),t=e.listPages().then(r=>ih(o,Jf.size?r.filter(a=>!Jf.has(a.id)):r),()=>ih(o,[])).finally(()=>{o.loading===t&&(o.loading=null)});return o.loading=t,t}var F0=()=>null,d3=()=>()=>{};function bl(){let{adapter:e,ready:o}=B0(),t=Xf(l=>{let{listeners:i}=Sl(e);return i.add(l),()=>i.delete(l)},[e]),r=Xf(()=>Sl(e).rows,[e]),a=i3(o?t:d3,o?r:F0,F0);l3(()=>{if(!o)return;let l=Sl(e);l.rows===null&&!l.loading&&A0(e)},[e,o]);let n=Xf(()=>o?A0(e):Promise.resolve(),[e,o]),s=Xf(l=>ih(Sl(e),l),[e]);return{rows:a,reload:n,setRows:s,getRows:r}}function f3(e,o){return e?.find(t=>t.slug===o)?.label?.trim()||`/${o}`}function R0(){let{currentSlug:e}=B0(),{rows:o}=bl();return f3(o,e)}import{canDuplicatePage as xQ,DuplicatePageDialog as hQ}from"efficient-easel/page-copy";import{jsx as Oo,jsxs as yH}from"react/jsx-runtime";import{useEffect as DZ,useId as NZ,useMemo as MZ,useRef as HZ,useState as Ny}from"react";import{useScreenDocument as WZ}from"efficient-easel/screen/components/ScreenDocumentContext";import{useEaselSession as $Z}from"efficient-easel/screen/lib/session-context";import{uniqueSlug as SH}from"efficient-easel/page-copy";import{AddIcon as zZ}from"efficient-easel/icons";import{Button as UZ,Dialog as jZ,EmptyState as GZ,LoadingSpinner as KZ,Paragraph as qZ,SidebarLayout as VZ,SidebarNavItem as My,Title as YZ,toast as bH}from"efficient-shell/ui";import{jsx as Ot,jsxs as DL}from"react/jsx-runtime";import{useEffect as Lq,useState as Ag}from"react";import{CanvasFrame as Dq}from"efficient-easel/easel";import{Button as Nq,Card as Mq,FitFrame as Hq,Text as Wq}from"efficient-shell/ui";import{jsx as H0,Fragment as w3,jsxs as C3}from"react/jsx-runtime";import{useEffect as W0,useLayoutEffect as k3}from"react";var Qf="data-theme",L0="light";function c3(e){return e.getAttribute(Qf)===L0?"light":"dark"}function p3(e,o){return c3(e)===o?!1:(o==="light"?e.setAttribute(Qf,L0):e.removeAttribute(Qf),!0)}function u3(e){return qx(e).getItem(tx)}function Ple(e,o){qx(e).setItem(tx,o)}function m3(e,o,t=new Date().getHours()){return Lw({mode:o.mode,override:u3(e),switchShown:o.switchShown,hour:t})}function D0(e,o){let t=e.documentElement;if(!t)return()=>{};let r=()=>p3(t,m3(e,o));r();let a=e.defaultView?.MutationObserver;if(!a)return()=>{};let n=new a(r);return n.observe(t,{attributes:!0,attributeFilter:[Qf]}),()=>n.disconnect()}var x3="style";function h3(e,o){let t=Md(o),r=!1;for(let a of Gw){let n=t[a]??"";e.style.getPropertyValue(a)!==n&&(n?e.style.setProperty(a,n):e.style.removeProperty(a),r=!0)}return r}function N0(e,o){let t=e.body;if(!t)return()=>{};let r=()=>h3(t,o);r();let a=e.defaultView?.MutationObserver;if(!a)return()=>{};let n=new a(r);return n.observe(t,{attributes:!0,attributeFilter:[x3]}),()=>n.disconnect()}import{VIEW_DESKTOP_MIN as I3,VIEW_TABLET_MIN as g3}from"efficient-easel/screen/lib/content/view-tiers";var dr={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"},et=dr,y3=e=>e.flatMap(o=>[`[${o}] p`,`[${o}] li`]).join(","),S3=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(y3([et.fit,et.fitTablet,et.fitPhone]))};
|
|
8
|
+
var CANDIDATES = SELECTOR + "," + SHRINK_BODY;
|
|
9
|
+
var MIN_SCALE = 0.3, MIN_PX = 16, SLACK = 1, PHONE_BELOW = ${er};
|
|
10
|
+
var TABLET_MIN = ${g3}, 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(et.fitTablet)}, ${JSON.stringify(et.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(et.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(et.fit)}, ${JSON.stringify(et.fitTablet)}, ${JSON.stringify(et.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(et.min)}, ${JSON.stringify(et.minTablet)}, ${JSON.stringify(et.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(et))},
|
|
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);`,b3="storefront-fit-words";function M0(e){let o=e.createElement("script");return o.id=b3,o.textContent=S3,(e.head??e.documentElement).appendChild(o),()=>{e.__sfFitWords?.(),o.remove()}}var v3=`
|
|
303
|
+
[${ze}][${ze}] { cursor: text; }
|
|
304
|
+
`;function ec({children:e,document:o}){let{theme:t,themeMode:r,themeSwitchShown:a}=vo(),n=ar(t);return W0(()=>{if(o)return D0(o,{mode:r,switchShown:a})},[o,r,a]),W0(()=>{if(o)return N0(o,n)},[o,n]),k3(()=>{if(o)return M0(o)},[o]),C3(w3,{children:[H0(n0,{}),H0("style",{children:v3}),e]})}import{jsx as BR}from"react/jsx-runtime";import{memo as m7}from"react";import{Render as x7}from"efficient-easel/render";import{jsx as Wn}from"react/jsx-runtime";import{createContext as P3,useContext as T3,useMemo as O3}from"react";var dh=P3(null);function E3({children:e}){return Wn(dh.Provider,{value:"first",children:e})}function tc({children:e}){return Wn(dh.Provider,{value:"below",children:e})}function wl(){return T3(dh)}function fh(){return wl()==="below"?{loading:"lazy"}:{}}function rc(e){let o=fh();return Wn("img",{...e,...o})}var $0="laterSlideIds",_3=new Set(["Breadcrumb","CategoryBar","Divider","Spacer","Ticker"]);function z0(e){return Pf(e?.filter(o=>!o?.type||!_3.has(o.type)))}function oc(e,o=[]){if(Array.isArray(e))for(let t of e)oc(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))oc(r,o)}return o}function U0(e,o){let t=o?.type,r=o?.props?.id;return O3(()=>{let a=t?e.components[t]:void 0;if(!t||!a)return e;let n=a.render,s=l=>l.id===r?Wn(E3,{children:Wn(n,{...l})}):Wn(n,{...l});return{...e,components:{...e.components,[t]:{...a,render:s}}}},[e,t,r])}function j0(e){return e.props?Ye(e,o=>{let t=$e(o,j0),r=e.type===KC&&t.every(a=>a.type===Gd)?jC(t):t;return r.length!==o.length||r.some((a,n)=>a!==o[n])?r:o}):e}function G0(e){return ud(e,o=>$e(o,j0))}var A3="Flex",K0="ListSearch",q0=["FAQ"],F3="listKey";function V0(e,o){let t={search:e.type===K0,list:q0.includes(String(e.type))};return Ye(e,r=>{for(let a of r){let n=V0(a,o);t.search||=n.search,t.list||=n.list}return r}),e.type===A3&&t.search&&t.list&&String(e.props?.id??"")?(o.add(e),{search:!1,list:!1}):t}function Y0(e,o,t){let r=o.has(e)?String(e.props?.id):t,a=Ye(e,n=>$e(n,s=>Y0(s,o,r)));return r&&(e.type===K0||q0.includes(String(e.type)))?{...a,props:{...a.props,[F3]:r}}:a}function X0(e){return sn(e,o=>{let t=new Set;for(let r of o)V0(r,t);return t.size?$e(o,r=>Y0(r,t,"")):o})}import{isNode as W$,isNodeList as qE}from"efficient-easel/data";import{jsx as Ee,Fragment as O$,jsxs as pr}from"react/jsx-runtime";import{jsx as gh}from"react/jsx-runtime";import{Fragment as M3,jsx as H3}from"react/jsx-runtime";import{jsx as ch}from"react/jsx-runtime";import{createContext as L3,Fragment as D3,useContext as N3}from"react";import{jsx as J0,jsxs as B3}from"react/jsx-runtime";import{lazy as R3}from"react";var Z0=R3(()=>import("./section-css-style-GS3GFILD.js"));function Q0({css:e,id:o,attr:t}){return J0(Z0,{css:e,id:o,attr:t})}var eO={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,[Wd]:""};let o=e.render;e.render=t=>{let r=uC(t),a=typeof t.id=="string"?t.id:"";return!r||!a?o(t):B3(Tr,{className:"sf-section-css",attrs:{[pC]:a},children:[J0(Z0,{css:r,id:a}),o(t)]})}}};var oO=L3(null);function tO({rootProps:e,children:o}){let t=e&&typeof e=="object"?e:null,r=Ek(t),a=ch(D3,{children:o},"page");return ch(oO.Provider,{value:t,children:r?[ch(Q0,{css:r,id:Ok,attr:rf},"css"),a]:a})}function rO(){return N3(oO)}function Pt(){return $d(rO())===bC}function ac({className:e,children:o}){let t=Pt();return H3(M3,{children:o(nt(e,t))})}import{SITE_SIDE as W3}from"efficient-easel/screen/lib/content/length-units";var aO="sideSpace",Cl=W3,ph="none",fie=[{value:"box",label:"Box"},{value:Cl,label:"Site"},{value:ph,label:"None"}],cie="box",pie="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 nO(e){return e===Cl||e===ph?e:"box"}function uie(e){return e===Cl||e===ph?e:void 0}import{parseOption as xh}from"efficient-shell/format";var nc="standard",dO=[{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"],sO={standard:["eyebrowLook"],editorial:[...mh,"eyebrowLook"],simple:uh,statement:uh,natural:mh,essay:uh},lO=["gap-5","gap-3"],iO=["text-[length:var(--size-body,16px)]","text-[15px]"];function Iie(e){return xh(lO,lO[0],e)}function gie(e){return xh(iO,iO[0],e)}function fO(e){return xh(dO,nc,e)}function yie(e){let o=dO.map(r=>r.value),t=[...new Set(Object.values(sO).flat())];return at(e,t.map(r=>[[r],vd("headStyle",o,nc,o.filter(a=>!sO[a].includes(r)))]))}import{readHidable as $3,VIEW_TIERS as z3,viewKeyAt as U3}from"efficient-easel/draw";var ma={direction:"row",share:"content",align:"center"},xa={top:14,bottom:14,topPhone:12,bottomPhone:12},sc={wrap:"nowrap",loop:"scroll",sectionAccent:fC,gap:60,gapPhone:32,separator:"dot",sectionBorder:{top:1,bottom:1}},cO={gap:120,gapPhone:64},lc={...No,sizeToken:{step:"label",px:14,pxPhone:12},letterSpacing:.25,lineHeight:1.5},pO={textStyle:"heading-3",letterSpacing:.005,case:"upper",lineHeight:1},kl={top:24,bottom:24,topPhone:16,bottomPhone:16},ha={top:16,bottom:16,topPhone:12,bottomPhone:12},vl={justify:"between",wrap:"wrap",gap:32,separator:"none"},Pl={...No,letterSpacing:.1,lineHeight:1.5};var ic={top:24,bottom:24,topPhone:24,bottomPhone:24},dc={top:72,bottom:72,topPhone:72,bottomPhone:72},$n={top:100,bottom:100,topPhone:60,bottomPhone:60},fc={top:120,bottom:120,topPhone:70,bottomPhone:70},j3={top:24,bottom:24,topPhone:24,bottomPhone:24},G3=40,cc={top:120,bottom:120,topTablet:80,bottomTablet:80,topPhone:80,bottomPhone:80},K3={top:24,bottom:24,topPhone:24,bottomPhone:24},pc={top:24,bottom:24,topPhone:24,bottomPhone:24},q3={top:84,bottom:84,topPhone:84,bottomPhone:84},uc={top:48,bottom:48,topPhone:48,bottomPhone:48},mc={top:80,bottom:80,topPhone:60,bottomPhone:60},xc={top:100,bottom:60,topPhone:60,bottomPhone:40},hc={top:60,bottom:60,topPhone:40,bottomPhone:40},Ic={top:80,bottom:80,topTablet:60,bottomTablet:60,topPhone:60,bottomPhone:60},gc={top:76,bottom:76,topPhone:76,bottomPhone:76},yc={top:76,bottom:76,topPhone:76,bottomPhone:76},Ol={top:80,bottom:40,topPhone:60,bottomPhone:32},El={top:76,bottom:76,topPhone:76,bottomPhone:76},Sc={top:72,bottom:72,topPhone:72,bottomPhone:72},bc={top:40,bottom:64,topPhone:24,bottomPhone:36},wc={top:120,bottom:120,topPhone:80,bottomPhone:80,topTablet:80,bottomTablet:80},Cc={top:48,bottom:48,topPhone:48,bottomPhone:48},_l=e=>{let o=ye(e.bandPadding)??G3;return{top:o,bottom:o,topPhone:o,bottomPhone:o}},uO=(e,o,t)=>({desktop:e,tablet:o,mobile:t}),hh=e=>un(e.headPlacement)==="own-box",Be=(e,o)=>({top:uO(e.top,o?.top??e.topTablet??e.top,e.topPhone),bottom:uO(e.bottom,o?.bottom??e.bottomTablet??e.bottom,e.bottomPhone)}),mO=e=>({top:e.topPhone,bottom:e.bottomPhone}),Tl=e=>o=>hh(o)?{top:0,bottom:e.bottom}:e,V3=(e,o)=>{let t=$3(e[o]);return t.hidden?!1:!!t.text||e.editor?.isEditing===!0},kc={Banner:{frame:()=>Be(ic)},Cards:{frame:Tl(Be(dc))},Chart:{frame:()=>Be(El)},ContactLocations:{frame:()=>Be($n,mO($n))},Countdown:{frame:()=>Be(uc)},DocBody:{frame:()=>Be(mc)},DocMasthead:{frame:()=>Be(xc)},DocMetaCards:{frame:()=>Be(hc)},FAQ:{frame:e=>{let o=hh(e)||!["num","title","linkText"].some(r=>V3(e,r)),t=Be(fc);return o?{top:0,bottom:t.bottom}:t},edge:!0},FeaturedCover:{frame:()=>Be(Ic)},Grid:{frame:()=>Be(j3)},Integrations:{frame:()=>Be(gc)},KeyFeatures:{frame:()=>Be(yc)},Logos:{frame:e=>hh(e)?0:Be(_l(e))},LongRead:{frame:Tl(Be(cc))},Masthead:{frame:()=>Be(Ol,mO(Ol))},Mockup:{frame:()=>Be(El)},OrderSummary:{frame:()=>Be(K3)},PaymentBadges:{frame:()=>Be(pc)},Prose:{frame:Tl(Be(Sc))},SectionHeader:{frame:e=>{let o=Be(bc);return fO(e.headStyle)==="standard"?o:{top:o.top,bottom:0}},edge:!0},Series:{frame:Tl(Be(wc))},Stats:{frame:()=>Be(Cc)},Testimonials:{frame:Tl(Be(q3))},Ticker:{frame:()=>Be(xa),edge:!0}};function Aie(e,o,t){let r=z(kc,e)??t;return r?na({values:nl(o,Io,!0),frame:r.frame(o),drawsFrame:!0,edge:r.edge},!0).root:null}var xO=(e,o)=>typeof e=="object"&&"top"in e?e[o]:e;function Y3(e,o){let t={...e};for(let r of z3)delete t[U3(o,r)];return t}function Fie(e,o,t,r){let a=z(kc,e)??t;if(!a)return{first:null,last:null};let n=a.frame(o),s=nl(o,Io,!0),l=(i,d)=>na({values:Y3(s,i),frame:d,drawsFrame:!0,edge:a.edge},!0).root;return{first:l("bottom",{top:xO(n,"top"),bottom:r.firstBottom}),last:l("top",{top:r.lastTop,bottom:xO(n,"bottom")})}}var X3=/^(?:[^\s]*:)?p[ytb]-/;function hO(e,o,t){if(!o)return t?{className:e,style:t}:{className:e};let r=e.split(/\s+/).filter(n=>n&&!X3.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 J3}from"efficient-easel/data";var Ih=new Set(["FAQ"]);function ot(e,o){if(!Ih.has(e))return!1;let t=o.template;return typeof t=="function"?(t.blockCount??0)>0:J3(t)}var yO={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}},SO=new Set(Object.keys(yO));function yh(e,o){return o?.innerPadding??z(yO,e)}var zn=e=>yh(e)??{};var vc=new Set(["Flex","Text","Heading","ImageBlock","ButtonBlock"]),Z3=new Set(["Divider"]),Q3=new Set(["Hero","HeroSingle","IntroBleed","CategoryBar","DocTabs"]),IO=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={...nl(n,Io,t),sideSpace:nO(n.sideSpace)},l=r?na({values:s,frame:r(n)},!0).outer:vk(s),i=a(n);if(!l)return i;let d=u=>gh(ac,{className:u?`${l.className} ${u}`:l.className,children:h=>gh(fe,{className:h,style:l.style,children:i})}),f=kr(n,{atSectionLine:!0}),m=kr(n);return f===m?d(f):gh(sf,{line:"by-box",draw:u=>d(u?m:f)})}}var bO={name:"sectionPadding",applies:(e,o,t)=>o.isSection(e)&&!Q3.has(e)&&!!t&&typeof t.render=="function",panel(e,o,t){let r=yh(o,e);if(r){e.fields={...e.fields,...t.sidesPaddingFields({keys:Cr,unitKey:of,fallback:r,tablet:!0,siteSide:!0})};return}if(IO.has(o))return;let a=[Cr.top,Cr.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=gO(o,e);if(n){CO(e,o,t,n);return}e.fields={...e.fields,...t.sidesPaddingFields({tablet:!0,siteSide:!0})}},draw(e,o){if(!yh(o,e)){if(IO.has(o)){Sh(e);return}vc.has(o)||Z3.has(o)||Sh(e,o==="Flex"?t=>Xk(t.bgImage):Ih.has(o)?t=>ot(o,t):void 0,!0,gO(o,e))}}},eW=["Heading","Text","ImageBlock","ButtonBlock"],oW=["LogoBlock"],wO={Text:e=>Er(e,"text").textStyle?.startsWith("heading-")?sl.heading:sl.text,Heading:()=>sl.heading,ButtonBlock:()=>sl.text,Breadcrumb:()=>gx(kl),SpecStrip:()=>gx(ha),...Object.fromEntries(Object.entries(kc).map(([e,o])=>[e,o.frame]))};function gO(e,o){return z(wO,e)??o?.ownPad?.frame}var tW={ButtonBlock:"Outer padding"};function rW(e,o){let t=e[zt],r=Array.isArray(t)?t.filter(i=>typeof i=="string"):[],a=vn().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 aW(e,o,t){if(o<=0)return null;let r=Array.isArray(e[zt])?e[zt]:[];return(t?vn().filter(a=>a.startsWith(Io[t])):vn()).some(a=>typeof e[a]=="number"&&!r.includes(a))?c("plus {n} px (older setting)",{n:o}):null}function CO(e,o,t,r){e.fields={...e.fields,...t.ownPaddingFields?.(r,aW,z(tW,o))??t.sidesPaddingFields({tablet:!0,siteSide:!0})};let a=e.resolveData;e.resolveData=(n,s)=>{let l=n.props??{},i=s?.trigger==="replace"?rW(l,s.changed):l,d=i===l?n:{...n,props:i};return a?a(d,s):d}}var kO={name:"blockPadding",applies:(e,o,t)=>(eW.includes(e)||oW.includes(e))&&!!t&&typeof t.render=="function",panel(e,o,t){let r=z(wO,o);if(!r){e.fields={...e.fields,...t.sidesPaddingFields({tablet:!0,siteSide:!0})};return}CO(e,o,t,r)},draw(e,o){vc.has(o)||Sh(e,void 0,!0)}};import{createContext as bh,useContext as Pc}from"react";var vO=bh(null);function Zie(){return Pc(vO)===!0}function Qie(){return Pc(vO)!==null}var nW=bh(!1);function ede(){return Pc(nW)}function ode(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 Tc=bh(null);function tde(){return Pc(Tc)}import{jsx as Ia}from"react/jsx-runtime";import{Component as uW,createContext as mW,lazy as gde,Suspense as yde,useContext as xW,useSyncExternalStore as hW}from"react";function sW(e,o){let t=e.trim();if(!Oc(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 nde(e){return e.startsWith("/")||Oc(e)}function Oc(e){return/^(?:https?:)?\/\//i.test(e.trim())}var Al=Object.freeze({target:"_blank",rel:"noopener noreferrer"});function PO(e,o){return sW(e,o)?{...Al}:{}}function sde(e){return typeof e=="string"?e.trim():""}var lde="data-sf-box-link",TO="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",lW="data-sf-box-jump";function iW(e){return`sf-box-jump-${e}`}function ide(e,o){return e===!0?fa(o):""}function dW({box:e,lit:o,first:t}){let r=s=>s.join(`,
|
|
305
|
+
`),a=t(e),n=o.flatMap(t);return`
|
|
306
|
+
${e} {
|
|
307
|
+
outline: 2px solid transparent;
|
|
308
|
+
outline-offset: -2px;
|
|
309
|
+
transition: outline-color 600ms ease-out;
|
|
310
|
+
}
|
|
311
|
+
${r(a)} { transition: background-color 600ms ease-out; }
|
|
312
|
+
${r(a.map(s=>`${s} *`))} { transition: color 600ms ease-out; }
|
|
313
|
+
${r(o)} { outline-color: var(--accent); }
|
|
314
|
+
${r(n)} { background-color: var(--accent); }
|
|
315
|
+
${r([...n,...n.map(s=>`${s} *`)])} { color: var(--bg) !important; }
|
|
316
|
+
`}function dde(e){let o=`[${lW}="${e}"]`,t=`.${iW(e)}`,r=`[id="${e}"]:target`;return dW({box:o,lit:[`${r}~${o}`,`${r}~* ${o}`],first:a=>[`${a} ${t}>:first-child:not(.sf-section-anchor)`,`${a} ${t}>.sf-section-anchor:first-child+*`]})}var fW="hrefRewrite";function cW(){return rn("efficient.link-href-rewrites",()=>({rewrites:new Map,count:0,missed:new Set}))}function pW(){return typeof process<"u"&&!0}function pde(e){let o=e?.[fW];return typeof o=="string"?o.trim():""}function OO(e){if(!e)return null;let o=cW(),t=o.rewrites.get(e);return!t&&!pW()&&o.missed.add(e),t??null}var IW={Link:hP,Image:xP},EO=mW(IW);function vde({runtime:e,children:o}){return Ia(EO.Provider,{value:e,children:o})}function kh(){return xW(EO)}function Pde(){return kh().pagePath??null}var gW=()=>()=>{},yW=()=>wf()||null,SW=()=>null;function bW(){return hW(gW,yW,SW)}function ga({hrefRewrite:e,newTab:o,...t}){let{Link:r}=kh(),a=bW(),n=o===!0?{...t,...Al}:o==="auto"?{...t,...PO(t.href,a)}:t,s=OO(e);return s?Ia(Ch,{name:s.name,href:n.href,fallback:Ia(r,{...n}),children:Ia(wW,{Link:r,rewrite:s.rewrite,...n})},s.key):Ia(r,{...n})}function wW({Link:e,rewrite:o,...t}){let r=ho(o(t.href)),a=r&&Tb(r)?r:t.href;return Ia(e,{...t,href:a})}var Ch=class extends uW{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 Ec(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 u$}from"react/jsx-runtime";import{imageCopyUrl as AO,imageSrcSet as CW}from"efficient-shell/image-copies";var _O;function vh(){return _O===void 0?{}:{host:_O}}var _de="(max-width: 800px) 100vw, min(100vw, 1600px)",Ade="(max-width: 960px) 100vw, 50vw";function ya(e,{fallbackWidth:o=1280,maxWidth:t}={}){let r=CW(e,{...vh(),...t===void 0?{}:{maxWidth:t}});return r?{src:AO(e,o,vh()),srcSet:r}:{src:e}}var kW=/[\s"'()\\;]/;function Fde(e){let o=AO(e,1920,vh());return o===e?kW.test(e)?`url("${yx(e)}")`:`url(${e})`:`url("${yx(o)}")`}import{parseOption as vW}from"efficient-shell/format";var Fl="solid",PW=[{label:"Solid",value:"solid"},{label:"Outlined",value:"outlined"}];function FO(e){return vW(PW,Fl,e)}var Ph="sf-secnum-outline",BO="font-display text-[length:var(--size-headingMedium,clamp(48px,6vw,96px))] font-medium leading-[0.8] tracking-[-0.02em]",RO=`@supports (-webkit-text-stroke: 1px currentColor){.${Ph}{color:var(--site-surface-2);-webkit-text-stroke:1px var(--site-line)}}`;import{parseOption as LO}from"efficient-shell/format";var Th="plain",DO=[{label:"Plain",value:"plain"},{label:"Filled",value:"filled"},{label:"Line",value:"line"}],TW="line",OW={KeyFeatures:"filled"};function Bl(e){return z(OW,e)??Th}function NO(e,o){return LO(DO,Bl(o),e)}function Mde(e){return LO(DO,TW,e)}import{jsxs as wa,jsx as De}from"react/jsx-runtime";import{Fragment as Mh}from"react";import{Fragment as QW,jsx as Lh}from"react/jsx-runtime";import{Fragment as XO,jsx as Ml,jsxs as KW}from"react/jsx-runtime";import{createContext as Rh,useContext as Hl,useEffect as qW,useId as VW,useMemo as YW,useRef as XW}from"react";import{armEntrance as JW}from"efficient-shell/format";import{jsx as EW}from"react/jsx-runtime";import{useEffect as HO,useRef as MO,useState as _W}from"react";import{armEntrance as AW,entranceAttrs as FW,playEntrance as BW}from"efficient-shell/format";function _c({views:e,editing:o,boxClass:t,boxAttrs:r,boxStyle:a,takesViewHide:n=!1,atEdge:s=!1,children:l}){let i=MO(null),d=df(),f=lt(),m=n?f:vr,u=Rl(i,!0,s),{attrs:h,style:I}=FW(e[u]),S=MO(Un.seed(e)),T=JSON.stringify(e);return HO(()=>{let P=i.current;if(P){if(o){let L=Un.next(S.current,e,u);S.current=L.seen,L.play&&BW(P);return}return AW(P)}},[T,u,o]),m.scope(EW("div",{ref:i,className:ko(`${wn}${d.fill}${t?` ${t}`:""}`,m.className),...r,...m.attrs,...h,...Object.keys(I).length||a?{style:{...a,...I}}:{},children:d.inner(l)}))}var Un={seed(e){return{desktop:JSON.stringify(e.desktop),tablet:JSON.stringify(e.tablet),phone:JSON.stringify(e.phone)}},next(e,o,t){let r=Un.seed(o);return{play:r[t]!==e[t],seen:r}}};function Rl(e,o=!0,t=!1){return Ll(e,o,t)??"desktop"}function Ll(e,o=!0,t=!1){let[r,a]=_W(void 0),n=Pr(t?"edge":"by-box"),{phone:s,tablet:l}=Vv(n);return HO(()=>{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 Dl="@name",WO="@body",$O="@value",zO={[Dl]:"Name",[WO]:"Body",[$O]:"Value"},RW={TimelineTrack:{"entries.date":Dl,"entries.title":Dl,"entries.blurb":WO},Footprint:{"offices.city":Dl},Stats:{"items.label":Dl,"items.value":$O}};function LW(e){let{key:o,row:t}=Ut(e);return t?`${o}.${t.rowKey}`:null}function fr(e,o){if(!e)return o;let t=LW(o);return t?z(RW,e)?.[t]??o:o}import{ENTRANCE_STATE_ATTR as $W,entranceAttrs as zW,scrollAttrs as UW}from"efficient-shell/format";import{parseFocal as MW,formatFocal as HW,readScroll as WW}from"efficient-shell/format";import{phoneKey as DW,tabletKey as NW}from"efficient-easel/screen/lib/content/view-tiers";var Oh=[{block:"HeroSlide",upload:"mediaImage",focus:ol.image},{block:"HeroSlide",upload:"mediaImage2",focus:ol.image2},{block:"HeroSingle",upload:"mediaImage",focus:ol.image},{block:"HeroSingle",upload:"mediaImage2",focus:ol.image2},{block:"ImageBlock",upload:"src",focus:"focal"}],UO=e=>[e,NW(e),DW(e)],Qde=[...new Set(Oh.flatMap(e=>UO(e.focus)))].sort();function jO(e,o){let[t,r,a]=UO(o).map(n=>typeof e[n]=="string"&&e[n]?e[n]:void 0);return{desktop:t,tablet:r,phone:a}}var eo={effect:"scroll",zoom:"scrollZoom",start:"scrollStart",end:"scrollEnd",ease:"scrollEase"},jn="_gScroll",Ac="_cScroll",Fc=qd(Object.values(eo));function Kt(e,o){return WW(bn(e,eo.effect,o),bn(e,eo.zoom,o),bn(e,eo.start,o),bn(e,eo.end,o),bn(e,eo.ease,o))}function Gn(e){let o={desktop:Kt(e,"desktop"),tablet:Kt(e,"tablet"),phone:Kt(e,"phone")};return st.every(t=>o[t].effect==="none")?null:o}function Eh(e){let o=sk(e.desktop,e.tablet,e.phone),t=r=>{let a=o[r];if(typeof a!="string")return;let{x:n,y:s}=MW(a);return HW(n,s)};return{desktop:t("desktop"),tablet:t("tablet"),phone:t("phone")}}function GO(e,o){return Eh(jO(e,o))}var Bc={},_h="_partMotion",Ah=[...Vd,rt,Ge.duration,Ge.delay,...Fc];function qO(e){return bv(e,_h)}function Sa(e,o){return wv(e,_h,o)}var jW=new Set([Zo.kind,rt,eo.effect]);function VO(e,o,t,r){let{[t]:a,...n}=Sa(e,o),s=r==null||r===""||r==="none"&&jW.has(t)?n:{...n,[t]:r};return Cv(e,_h,o,Object.keys(s).length?s:null)}function Nl(e){return{entrance:Cn(e),hover:Eb(e),scroll:Gn(e)}}function YO(e){let o=Nl(e);return o.entrance!==null||o.hover!=="none"||o.scroll!==null}function Rc(e,o){let{attrs:t,style:r}=zW(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($W)}}function Lc(e,o){let{attrs:t,style:r}=UW(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 GW=4;function Kn(e){let o;for(let t of e)(!o||t.element.compareDocumentPosition(o.element)&GW)&&(o=t);return o}var Fh="data-sf-part-host";function Dc(e){let o=e?.ownerDocument.defaultView,t=e;for(;t&&!t.hasAttribute(Fh)&&!t.classList.contains(wn);){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",KO="sf-part-lift";function Nc(e){if(e.getElementById(KO))return;let o=e.createElement("style");o.id=KO,o.textContent=_v(`[${ba}]`).join(`
|
|
317
|
+
`),e.head.appendChild(o)}var Mc=Rh(null),ZO=Rh(null),QO=Rh(null);function eE({needles:e,styles:o,motions:t=Bc,type:r,atEdge:a=!1,sizeCaps:n,children:s}){let l=VW(),i=Pr(a?"edge":"by-box"),d=JSON.stringify([l,e,o,t,r,n]),f=Qo(),m=YW(()=>{let h=Object.keys(t).filter(I=>YO(t[I]));return qv(e,o,l,I=>fr(r,I),I=>cl(r,I),I=>h.includes(I)?Nl(t[I]):null,h,I=>ia(n,I),f)},[d,f]);if(!m)return Ml(XO,{children:s});let u=Yv(m,{inBox:i});return KW(XO,{children:[u&&Ml("style",{href:`${ZW}${l}-${Vk(u)}`,precedence:tE,dangerouslySetInnerHTML:{__html:qk(u)}}),Ml(Mc.Provider,{value:m,children:s})]})}var Bh=new WeakMap;function JO(e,o){let t=Kn(o.filter(a=>a.arm)),r=o.some(a=>a.entering)?void 0:Kn(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)?(Nc(e.ownerDocument),e.setAttribute(ba,"")):e.removeAttribute(ba)}function oE(e){let o=XW(null),t=e?.motion?.entrance??null,r=e?.motion?.scroll??null,a=e?.motion?.hover==="lift",n=Rl(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 qW(()=>{let d=o.current,f=Dc(d?.parentElement??null);if(!t&&!r&&!a||!d||!f)return;let m=s?()=>{let I=Rc(f,s),S=JW(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?()=>Lc(f,l):null,lift:a};return u.push(h),JO(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,JO(f,u),u.length||Bh.delete(f))}},[i,a]),o}var tE="sf-part-styles",ZW=`${tE}-`;function rE(e){let o=Hl(Mc),t=Hl(ZO),r=Xv(o,e);return r&&r.stamp!==t?r:null}function wfe(e){return Px(Hl(Mc),e)}function aE({stamp:e,children:o}){return Ml(ZO.Provider,{value:e,children:o})}function Cfe({children:e}){let o=Hl(Mc);return Ml(QO.Provider,{value:o,children:e})}function kfe(e){return Px(Hl(QO),e)}function Wl({value:e,children:o}){let t=rE(e),r=oE(t);return t?Lh(aE,{stamp:t.stamp,children:Lh("span",{ref:r,[vv]:t.stamp,...t.textStyle?{[sa]:t.textStyle}:{},children:o})}):Lh(QW,{children:o})}import{jsx as Dh,Fragment as e$}from"react/jsx-runtime";function nE({className:e}){return Dh("span",{className:e||void 0,children:"\xAE"})}function dt(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(nE,{},`r${a}`))}),Dh(e$,{children:t})}var Afe=nE;function Xe(e,o=!1,t){let r=l$(o),a=gd(e);if(a.length===1){let[s]=a,l=Ob(s),i=l?n$(l,s.children):s.children;return wa(Wl,{value:e,children:[t,Hc(i,r)]})}let n=[];return a.forEach((s,l)=>{if(s.bullet){n.push(De("span",{"data-sf-bullet":"",className:o$,children:Hc(s.children,r)},l));return}if(s.number!=null){n.push(wa("span",{"data-sf-number":s.number,className:t$,children:[wa("span",{className:r$,children:[s.number,"."]}),Hc(s.children,r)]},l));return}l>0&&!a$(a[l-1])&&n.push(De("br",{},`br${l}`)),n.push(De(Mh,{children:Hc(s.children,r)},l))}),wa(Wl,{value:e,children:[t,n]})}var o$="relative block pl-6 before:absolute before:left-1.5 before:font-bold before:text-accent before:content-['\xB7']",t$="relative block pl-[2em]",r$="absolute left-0 w-[1.6em] text-right tabular-nums";function a$(e){return e.bullet||e.number!=null}var sE="text-accent underline underline-offset-[0.18em]";function n$(e,o){let[t,...r]=o;return t?.kind==="text"?[{kind:"text",text:`${e}${t.text}`},...r]:[{kind:"text",text:e},...o]}function s$(e){return Yk(e)||void 0}function Hc(e,o){let t=[],r=!1;return e.forEach((a,n)=>{if(a.kind==="text"){t.push(De("span",{children:dt(a.text)},n)),r=!0;return}r||t.push(De("span",{},`e${n}`)),t.push(iE(a,n,o)),r=!1}),r||t.push(De("span",{},"end")),t}function Nh(e,o){return e.length===1&&e[0].kind==="text"?dt(e[0].text):e.map((t,r)=>t.kind==="text"?De(Mh,{children:dt(t.text)},r):iE(t,r,o))}function l$(e){return e?"font-normal italic text-accent":"not-italic text-accent"}function zfe(e){return lE(e)}function lE(e,o){let t=e.split(`
|
|
318
|
+
`);return wa(Wl,{value:e,children:[o,t.map((r,a)=>wa(Mh,{children:[a>0?De("br",{}):null,De("span",{children:r})]},a))]})}function iE(e,o,t){if(e.kind==="link")return Oc(e.href)?De(ga,{newTab:"auto",href:e.href,className:sE,children:Nh(e.children,t)},o):De("a",{href:e.href,className:sE,children:Nh(e.children,t)},o);let r=Nh(e.children,t),a=kb[e.kind];if(a)return De("span",{[vb]:a,children:r},o);switch(e.kind){case"underline":return De("u",{children:r},o);case"sup":return De("sup",{children:r},o);case"sub":return De("sub",{children:r},o);case"color":{let n=s$(e.color);return n?De("span",{style:{color:n},children:r},o):De("span",{children:r},o)}case"accent":case"highlight":return De("em",{className:t,children:r},o);case"bold":return De("strong",{className:"font-semibold",children:r},o);case"italic":return De("em",{className:"italic",children:r},o);case"strike":return De("s",{className:"line-through",children:r},o);default:return De("span",{children:r},o)}}function dE(e,o=!0,t=!1){let r=e.split(`
|
|
319
|
+
`);return De(Wl,{value:e,children:r.map((a,n)=>wa("span",{children:[t?lE(a):Xe(a,o),n<r.length-1?De("br",{}):null]},n))})}function fE(e){return e.split(/\n\s*\n/).map(o=>o.trim()).filter(Boolean)}import{jsx as Hh,jsxs as d$}from"react/jsx-runtime";import{jsx as i$}from"react/jsx-runtime";function cE(){return i$("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 f$(e,o){return`font-mono text-[length:var(--size-label,${e}px)] uppercase tracking-[0.3em] text-accent`}var c$=`inline-block w-fit bg-accent px-3.5 py-1.5 font-mono ${Wh.labelSmall} font-semibold uppercase tracking-[0.16em] text-bg`,p$=`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 qn({text:e,look:o="plain",size:t=13,scaled:r=!0,className:a="",classNameAfter:n="",takesViewHide:s=!1}){let l=lt(),i=s?l:vr;if(o==="line")return i.scope(d$("div",{className:ko([a,p$,n].filter(Boolean).join(" "),i.className),...i.attrs,children:[Hh(cE,{}),Hh("span",{children:Xe(e)})]}));let d=o==="filled"?c$:f$(t,r);return i.scope(Hh("span",{className:ko([a,d,n].filter(Boolean).join(" "),i.className),...i.attrs,children:Xe(e)}))}var Oe={headingMediumUpTo800Small:"max-view-wide:text-[length:min(var(--size-headingMedium,32px),var(--sf-heading-max,9999px))]",headingMediumUpTo800Large:"max-view-wide:text-[length:min(var(--size-headingMedium,36px),var(--sf-heading-max,9999px))]",headingSmallUpTo800:"max-view-wide:text-[length:var(--size-headingSmall,28px)]",headingMedium2:"text-[length:min(var(--size-headingMedium,44px),var(--sf-heading-max,9999px))]",headingMedium3:"text-[length:min(var(--size-headingMedium,56px),var(--sf-heading-max,9999px))]",headingMedium1:"text-[length:var(--sf-heading-max,var(--size-headingMedium,38px))]",bodySmall:"text-[length:var(--size-body,14px)]",bodyLarge:"text-[length:var(--size-body,16px)]",label:"text-[length:var(--size-label,14px)]",shelfLabel:"text-[length:var(--size-label,13px)]",shelfLabelSmall:"text-[length:var(--size-label,12px)]",shelfBody:"text-[length:var(--size-body,13px)]",shelfHeadingUpTo800Xs:"max-view-wide:text-[length:var(--size-headingMedium,28px)]",shelfHeadingUpTo800Small:"max-view-wide:text-[length:var(--size-headingMedium,32px)]",shelfHeadingUpTo800Large:"max-view-wide:text-[length:var(--size-headingMedium,36px)]",shelfHeadingUpTo800Xl:"max-view-wide:text-[length:var(--size-headingMedium,40px)]",shelfHeading1:"text-[length:var(--size-headingMedium,40px)]",shelfHeading2:"text-[length:var(--size-headingMedium,48px)]",shelfHeading3:"text-[length:var(--size-headingMedium,56px)]",shelfHeading4:"text-[length:var(--size-headingMedium,64px)]"},pE=[{value:"para",label:"Paragraph size \u2014 13px",cls:`font-mono font-normal uppercase tracking-[0.22em] ${Oe.shelfLabel}`},{value:"sm",label:"Small \u2014 40px",cls:`font-heading2 font-medium tracking-[-0.03em] ${Oe.shelfHeading1} ${Oe.shelfHeadingUpTo800Xs}`},{value:"md",label:"Medium \u2014 48px",cls:`font-heading2 font-medium tracking-[-0.03em] ${Oe.shelfHeading2} ${Oe.shelfHeadingUpTo800Small}`},{value:"lg",label:"Large \u2014 56px",cls:`font-heading2 font-medium tracking-[-0.03em] ${Oe.shelfHeading3} ${Oe.shelfHeadingUpTo800Large}`},{value:"xl",label:"Extra large \u2014 64px",cls:`font-heading2 font-medium tracking-[-0.03em] ${Oe.shelfHeading4} ${Oe.shelfHeadingUpTo800Xl}`}],m$="lg";function x$(e){return(pE.find(o=>o.value===e)??pE.find(o=>o.value===m$)).cls}var Vn=(e,o=!1)=>typeof e=="string"?dE(e,o):e,cr=(e,o=!1)=>typeof e=="string"?Xe(e,o):e;function uE({num:e,title:o,link:t,logo:r,description:a,accent:n,accentNum:s,numStyle:l=Fl,look:i="standard",titleAccent:d,accentTracking:f="-0.02em",spaceBelow:m,rowGap:u,descriptionSize:h,className:I="",eyebrowLook:S=Th,titleSize:T,count:P,capped:L=!1,rootPadsBottom:C=!1}){let y=Pt(),b=m??(i==="editorial"?"mb-[60px]":"");if(i==="shelf")return e||o||a||t?Po("div",{className:nt(`${kP} 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 ${L?"":"-mx-[var(--sf-site-gutter,40px)] px-[var(--sf-site-gutter,40px)] max-view-wide:-mx-[min(20px,var(--sf-site-gutter,40px))] max-view-wide:px-[min(20px,var(--sf-site-gutter,40px))]"}`,y),children:[Po("div",{className:"flex min-w-0 items-end gap-6 max-view-wide:flex-col max-view-wide:items-stretch max-view-wide:gap-3",children:[e&&Se("span",{className:`font-mono ${Oe.shelfLabel} leading-none uppercase tracking-[0.22em] text-fg-dim`,children:cr(e)}),o&&Se("h2",{className:`${x$(T)} leading-none text-fg max-view-wide:leading-[1] [&>span]:block`,children:Vn(o)})]}),(a||t||P)&&Po("div",{className:"flex items-center gap-5 max-view-wide:gap-3 view-wide:grow view-wide:justify-end",children:[a&&Se("span",{className:`max-w-[340px] truncate font-display ${Oe.shelfBody} leading-[1.4] text-fg-dim max-view-wide:hidden view-wide:w-0 view-wide:grow view-wide:text-right`,children:cr(a)}),t&&Po(ga,{newTab:"auto",href:t.href,className:`inline-flex items-center gap-2 whitespace-nowrap font-mono ${Oe.shelfLabel} uppercase tracking-[0.2em] text-fg-dim transition-colors hover:text-fg`,children:[cr(t.text),Se("span",{"aria-hidden":!0,children:"\u2192"})]}),P&&Se("span",{className:`whitespace-nowrap font-mono ${Oe.shelfLabelSmall} uppercase tracking-[0.2em] text-fg-dim`,children:P})]})]}):null;if(i==="editorial"){let g=!!o||!!d;return Po("header",{className:`${b} grid grid-cols-[auto_1fr_auto] items-end gap-10 border-b border-line pb-8 max-view-desktop:grid-cols-1 max-view-desktop:gap-3.5 ${I}`.trim(),children:[e&&(typeof e=="string"?Se(qn,{text:e,className:"pb-2"}):Se("span",{className:"pb-2",children:e})),g&&Po("h2",{className:"font-heading2 text-[length:min(var(--size-headingMedium,clamp(40px,5.5vw,80px)),var(--sf-heading-max,9999px))] font-medium uppercase leading-none tracking-[-0.03em]",children:[o,d&&Po(u$,{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 ${Oe.bodySmall} leading-[1.5] text-fg-dim max-view-desktop:max-w-full max-view-desktop:text-left`,children:a})]})}if(i==="simple"){let g=`${b} ${I}`.trim();return Po("div",{className:g||void 0,children:[e&&(typeof e=="string"?Se(qn,{text:e,look:S,className:"mb-4 block"}):Se("span",{className:"mb-4 block",children:e})),o&&Se("h2",{className:`font-heading2 ${Oe.headingMedium2} font-medium uppercase leading-none tracking-[-0.02em] text-fg ${Oe.headingMediumUpTo800Small}`,children:Vn(o)})]})}if(i==="statement"){let g=`${b} ${I}`.trim();return Po("div",{className:g||void 0,children:[e&&(typeof e=="string"?Se(qn,{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:Vn(o,!0)})]})}if(i==="natural"){let g=`flex max-w-[680px] flex-col ${u??"gap-5"} ${b} ${I}`.replace(/\s+/g," ").trim();return Po("div",{className:g,children:[e&&(typeof e=="string"?Se(qn,{text:e,look:S}):Se("span",{children:e})),o&&Se("h2",{className:`font-heading2 ${Oe.headingMedium2} font-medium leading-[1.05] tracking-[-0.03em] ${Oe.headingMediumUpTo800Small}`,children:Vn(o)}),a&&Se("p",{className:`${h??`${Oe.bodyLarge}`} leading-[1.6] opacity-85`,children:a})]})}if(i==="essay"){let g=`${b} ${I}`.trim();return Po("div",{className:g||void 0,children:[e&&(typeof e=="string"?Se(qn,{text:e,look:S,className:"mb-4 block"}):Se("span",{className:"mb-4 block",children:e})),o&&Se("h2",{className:`font-heading2 ${Oe.headingMedium1} [font-weight:var(--sf-heading-weight,500)] [text-transform:var(--sf-heading-case,uppercase)] [&_em]:[font-weight:var(--sf-heading-weight-strong,inherit)] leading-none tracking-[-0.02em] text-fg ${Oe.headingSmallUpTo800}`,children:Vn(o)})]})}let F=!!a||!!t,_=!!o,D=FO(l)==="outlined",w=`font-mono ${Oe.label} uppercase tracking-[0.3em]`,E=null;if(e)if(D)E=Se("span",{className:`${BO} text-fg-dim ${Ph}`,children:cr(e)});else if(s&&!n&&typeof e=="string"){let g=e.indexOf("/"),v=g===-1?e:e.slice(0,g),O=g===-1?"":e.slice(g);E=Po("span",{className:w,children:[Se("span",{className:"text-accent",children:cr(v)}),O&&Se("span",{className:"text-fg-dim",children:cr(O)})]})}else E=Se("span",{className:`${w} ${n?"text-accent":"text-fg-dim"}`,children:cr(e)});return Po("div",{className:C?"grid grid-cols-[auto_1fr_auto] items-end gap-10 border-b border-line pb-6 max-view-wide:grid-cols-1 max-view-wide:gap-3 max-view-wide:pb-5":"mb-16 grid grid-cols-[auto_1fr_auto] items-end gap-10 border-b border-line pb-6 max-view-wide:mb-9 max-view-wide:grid-cols-1 max-view-wide:gap-3 max-view-wide:pb-5",children:[D&&e&&Se("style",{children:RO}),Po("div",{className:"flex flex-col items-start gap-3",children:[r?.src&&Se(Rk,{children:Se(rc,{...h$(bP(r.src)),alt:r.alt,className:"h-8 w-auto object-contain"})}),E]}),_&&Se("h2",{className:n?"font-heading2 text-[length:min(var(--size-headingMedium,clamp(36px,5vw,64px)),var(--sf-heading-max,9999px))] [font-weight:var(--sf-heading-weight,500)] [text-transform:var(--sf-heading-case,uppercase)] [&_em]:[font-weight:var(--sf-heading-weight-strong,inherit)] leading-[0.95] tracking-[-0.025em]":`font-heading2 ${Oe.headingMedium3} [font-weight:var(--sf-heading-weight,500)] [&_em]:[font-weight:var(--sf-heading-weight-strong,inherit)] leading-none tracking-[-0.03em] whitespace-pre-line ${Oe.headingMediumUpTo800Large} max-view-wide:leading-[1]`,children:Vn(o)}),F&&Po("div",{className:"flex flex-col items-end gap-3 max-view-wide:items-start",children:[a&&Se("p",{className:`max-w-[340px] font-display ${Oe.bodySmall} leading-[1.5] text-fg-dim text-right max-view-wide:max-w-full max-view-wide:text-left`,children:cr(a)}),t&&Po(ga,{newTab:"auto",href:t.href,className:`inline-flex items-center gap-2 whitespace-nowrap font-mono ${Oe.label} uppercase tracking-[0.2em] text-fg-dim transition-colors hover:text-fg`,children:[cr(t.text),Se("span",{"aria-hidden":!0,children:"\u2192"})]})]})]})}function h$(e){let o=ya(e,{fallbackWidth:640,maxWidth:960});return o.srcSet?{src:o.src,srcSet:o.srcSet,sizes:"240px"}:{src:e}}function mE({num:e,title:o,titleAccent:t,desc:r,accentTracking:a="-0.02em",spaceBelow:n="mb-[60px]",className:s=""}){return I$(uE,{look:"editorial",num:e,title:o,titleAccent:t,description:r,accentTracking:a,spaceBelow:n,className:s})}import{jsx as zl,jsxs as k$}from"react/jsx-runtime";import{useEffect as v$,useState as kE}from"react";import{jsx as g$}from"react/jsx-runtime";var xE="sf-photo-hover";function Wc({sheet:e,name:o=xE}){return e?g$("style",{href:o,precedence:xE,dangerouslySetInnerHTML:{__html:e}}):null}import{jsx as bE,Fragment as b$}from"react/jsx-runtime";import{createContext as w$,useContext as zc}from"react";var y$=Jb["view-desktop"];function S$(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`,$c=e=>{let o=/^([\d.]+)vw$/.exec(e??"");return o?Math.min(1,Number(o[1])/100):1};function gce(e,o){return{phone:$h(e.phone*$c(o?.phone)),tablet:$h(e.tablet*$c(o?.tablet)),desktop:$h(e.desktop*$c(o?.desktop))}}function zh(e){if([e.phone,e.tablet,e.desktop].every(r=>$c(r)>=1))return;let o=[{below:er,slot:e.phone},{below:y$,slot:e.tablet}],t=o.filter((r,a)=>r.slot!==(o[a+1]?.slot??e.desktop));return S$(t,e.desktop)}function hE(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 IE=(e,o)=>e.steps.find(t=>o<=t.edge)?.slot??e.last,gE=e=>{let o=/^min\((.+)\)$/.exec(e);return o?o[1].split(/,\s*(?![^()]*\))/).map(t=>t.trim()):[e]};function yE(e,o){if(e===o)return e;let t=[...gE(e),...gE(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 SE(e,o){if(!o)return e;let t=hE(e),r=hE(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:yE(IE(t,s),IE(r,s))})),n=yE(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 C$={hasWidth:!1},$l=w$(C$);function Cce(){return zc($l).hasWidth}function kce(e){let{bound:o}=zc($l);return o&&zh(o)||e}function wE(e){let{bound:o}=zc($l);return SE(e,o&&zh(o))}function CE({children:e}){let o=zc($l);return o.bound?bE($l.Provider,{value:{hasWidth:o.hasWidth},children:e}):bE(b$,{children:e})}function vE({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=wE(s),I=l?h:s,[S,T]=kE(!1),[P,L]=kE(!1),C=t||"";v$(()=>{T(!1),L(!1)},[C]);let y=Cf(C),b=y&&!P?ya(C):{src:C},F=!C||S;return k$("div",{className:`relative h-full w-full overflow-hidden ${o??""}`,children:[zl("div",{className:"absolute inset-0 flex items-center justify-center",style:f?{background:"var(--site-surface)"}:void 0,children:F?e:null}),zl(af,{fill:ll,children:C&&(y?zl("img",{src:b.src,alt:r,...b.srcSet?{srcSet:b.srcSet,sizes:I}:{},decoding:"async",...d?{loading:"lazy"}:u,className:`absolute inset-0 h-full w-full${m?.className?` ${m.className}`:""}`,style:{display:S?"none":"block",objectFit:n,...a?{objectPosition:a}:{},...m?.style??{}},onError:()=>b.srcSet?L(!0):T(!0)}):zl(Ec,{src:C,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:()=>T(!0)}))}),zl(Wc,{sheet:m?.sheet})]})}import{jsx as P$}from"react/jsx-runtime";var Ul="sf-empty-hides",Uh="sf-empty-else",Uc="sf-head-core",jc="sf-head-box",jl="holdsHeadCore",Gl="isHeadCore",T$=`.${Ul}:empty{display:none}.${Ul}:not(:empty)~.${Uh}{display:none}.${jc},.${Uc}{display:contents}.${jc}:not(:has(.${Uc}:not(:empty))){display:none}`;function Gc(){return P$("style",{children:T$})}var $o={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)]"},PE={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",E$="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 ope({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:T}){let P=Pt(),L=T!==void 0,C=S&&(L||(r?.blockCount??0)>0)?S:null,y=d??Tk({padTop:l,padBottom:i},zn("ProcessSteps")),b=L?[]:Gh(a),F=b.length>0?b:f&&!r&&!L?[1,2,3].map(g=>({tag:c("Column {n}",{n:g})})):[],_=PE[n]??PE[3],D=C?"grid-cols-1":_,w=C?"":" [&>*]:min-h-[560px]",E=I==="on-image";return Ee(fe,{as:"section",className:nt(["relative z-[2] border-b border-line bg-bg",y.className].filter(Boolean).join(" "),P),style:{...y.style,...dT(u,h)},children:pr("div",{className:nt(PC,P),children:[m?null:Ee(mE,{num:e,title:o?.trim()?Xe(o,!0):void 0,desc:t?.trim()?Xe(t,!1):void 0}),r&&!L?pr(O$,{children:[Ee(Gc,{}),C?Ee(Tc.Provider,{value:{hand:C,ids:r.blockIds??[],boxes:[]},children:Ee(r,{className:`${jh} ${Ul} sf-card grid ${D} gap-[2px] border border-line bg-line${w} [&>*]:bg-bg`,minEmptyHeight:260})}):Ee(r,{className:`${jh} ${Ul} sf-card grid ${D} gap-[2px] border border-line bg-line [&>*]:min-h-[560px] [&>*]:bg-bg`,minEmptyHeight:260})]}):null,L&&T?Ee("div",{className:`${jh} sf-card grid ${D} gap-[2px] border border-line bg-line${w} [&>*]:bg-bg`,children:C?Ee(Tc.Provider,{value:{hand:C,copies:!0},children:T}):T}):null,F.length>0&&Ee("div",{className:`${E$} ${Uh} sf-card grid ${_} gap-[2px] border border-line bg-line`,children:F.map((g,v)=>{let O=(g.specs??[]).filter(k=>(k?.label??"").trim()||(k?.value??"").trim());return pr("article",{className:E?"flex flex-col bg-bg":"flex min-h-[560px] flex-col bg-bg",children:[pr("div",{className:E?"sf-card-image relative aspect-[5/3] overflow-hidden bg-surface max-[700px]:aspect-[4/3]":"sf-card-image relative aspect-[5/3] overflow-hidden border-b border-line bg-surface",children:[Ee(vE,{label:g.tag?.trim()||g.title?.trim()||`column-${v+1}`,src:g.image||void 0,sizes:"(max-width: 1100px) 100vw, 33vw",...r?{deferFetch:!0}:{}}),Ee("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-0 z-[1]",style:{background:`linear-gradient(180deg, ${Zs(.55)} 0%, transparent 30%, transparent 70%, ${Zs(.65)} 100%)`}}),E&&Ee("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-x-0 bottom-0 z-[1] h-[78%]",style:{background:`linear-gradient(180deg, transparent 0%, ${Zs(.73)} 55%, ${Zs(.92)} 100%)`}}),g.tag?.trim()&&Ee("span",{className:`absolute left-5 top-[18px] z-[2] font-mono ${$o.label} uppercase tracking-[0.3em] text-accent`,children:dt(g.tag)}),g.meta?.trim()&&Ee("span",{className:E?`absolute right-5 top-[18px] z-[2] font-mono ${$o.label} uppercase tracking-[0.24em] text-overlay-fg/80`:`absolute right-5 bottom-[18px] z-[2] font-mono ${$o.label} uppercase tracking-[0.24em] text-overlay-fg/80`,children:dt(g.meta)}),E&&(g.title?.trim()||g.copy?.trim())&&pr("div",{className:"absolute inset-x-0 bottom-0 z-[2] flex flex-col gap-2.5 px-8 pb-7 pt-14 max-[700px]:px-6 max-[700px]:pb-6",children:[g.title?.trim()&&Ee("h3",{className:`flex min-h-[2em] flex-col justify-end font-heading3 ${$o.headingSmall1} font-medium uppercase leading-none tracking-[-0.02em] text-overlay-fg ${$o.headingSmallUpTo700Small}`,children:Xe(g.title,!0)}),g.copy?.trim()&&Ee("p",{className:`min-h-[3em] font-display ${$o.bodySmall} leading-[1.5] text-overlay-fg/85`,children:Xe(g.copy,!1)})]})]}),E?O.length>0&&Ee("div",{className:"grid grid-cols-2 gap-2 border-t border-line px-8 py-7 max-[700px]:px-6 max-[700px]:py-6",children:O.map((k,A)=>pr("div",{className:"flex flex-col gap-1",children:[k.label?.trim()&&Ee("span",{className:`font-mono ${$o.labelSmall} uppercase tracking-[0.24em] text-fg-dim`,children:dt(k.label)}),k.value?.trim()&&Ee("span",{className:`font-display ${$o.bodyLarge} font-medium tracking-[-0.01em] text-fg`,children:dt(k.value)})]},A))}):pr("div",{className:"flex flex-1 flex-col gap-4 px-8 py-9 max-[700px]:px-6 max-[700px]:py-7",children:[g.title?.trim()&&Ee("h3",{className:`font-heading3 ${$o.headingSmall2} font-medium uppercase leading-none tracking-[-0.02em] ${$o.headingSmallUpTo700Large}`,children:Xe(g.title,!0)}),g.copy?.trim()&&Ee("p",{className:`font-display ${$o.bodySmall} leading-[1.55] text-fg-dim`,children:Xe(g.copy,!1)}),O.length>0&&Ee("div",{className:"mt-auto grid grid-cols-2 gap-2 border-t border-line pt-4",children:O.map((k,A)=>pr("div",{className:"flex flex-col gap-1",children:[k.label?.trim()&&Ee("span",{className:`font-mono ${$o.labelSmall} uppercase tracking-[0.24em] text-fg-dim`,children:dt(k.label)}),k.value?.trim()&&Ee("span",{className:`font-display ${$o.bodyLarge} font-medium tracking-[-0.01em] text-fg`,children:dt(k.value)})]},A))})]})]},v)})}),s?.text&&Ee("div",{className:"mt-12 flex justify-end border-t border-line pt-8",children:pr(ga,{newTab:"auto",href:s.href,className:`group inline-flex items-center gap-3.5 border border-line px-6 py-4 font-mono ${$o.labelLarge} uppercase tracking-[0.3em] text-fg transition-colors hover:border-accent hover:text-accent`,children:[dt(s.text),Ee("span",{"aria-hidden":!0,className:"text-accent transition-transform group-hover:translate-x-[3px]",children:"\u2192"})]})})]})})}var _$=["selected","highlighted"],TE="data-sf-card-state",EE="pointer-events-none absolute inset-0 border border-accent",_E="pointer-events-none absolute inset-x-0 bottom-0 border-b-2 border-accent",AE="pointer-events-none absolute inset-0 border-2 border-accent outline outline-1 -outline-offset-1 outline-accent",FE="absolute inset-y-0 left-0 w-[3px] bg-accent",BE="absolute -inset-[2px] -z-[1] bg-[color-mix(in_oklab,var(--accent)_14%,transparent)]",RE="after:pointer-events-none after:absolute after:inset-0 hover:after:border-2 hover:after:border-accent",OE=e=>{let o=lC.find(t=>t.role===e)?.token;if(!o)throw new Error(`card-state: the palette has no ink token for "${e}"`);return o},A$={[OE("muted")]:`var(${OE("fg")})`};function Kh(e){return e?.selected===!0}function qh(e){return e?_$.filter(o=>e[o]===!0).join(" "):""}function LE(e,o="frame"){let t=qh(e);return t?o==="frame"&&Kh(e)?{[TE]:t,className:"relative isolate",style:{...A$}}:{[TE]:t,className:"relative"}:{}}var F$={highlighted:!0},B$={},Kc="badge";function spe(e,o=[]){return e.map((t,r)=>({...t,key:t.key||o[r]?.key||Vs(t,r)}))}function DE(e){return!e||typeof e!="object"?!1:Object.entries(e).some(([o,t])=>o==="key"||o===Kc||o==="state"?!1:typeof t=="string"?t.trim()!=="":Array.isArray(t)?t.length>0:t!=null&&typeof t!="function")}function lpe(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,[Kc]:s===a?t:""})),states:e.map((n,s)=>s===a?F$:B$)}}function ipe(e){return{chosen:typeof e.highlightedCard=="string"?e.highlightedCard.trim():"",badge:typeof e.highlightBadge=="string"?e.highlightBadge:""}}function dpe(e){if(!e||typeof e!="object")return;let{press:o,pressLabel:t,pressDisabled:r}=e;if(typeof o=="function")return{press:o,...typeof t=="string"&&t.trim()!==""?{label:t}:null,...r===!0?{disabled:!0}:null}}var NE="data-sf-card-press",ME=`${TO} appearance-none bg-transparent border-0 p-0 m-0`,HE=`${ME} cursor-pointer`,WE=ME;import{paymentMarkItems as R$,paymentMarks as L$}from"efficient-shell/icons/payment";var D$=[tb,rb],$E=e=>D$.includes(e),zE=e=>R$({name:e.label,kind:e.kind}),N$=(e,o)=>e.kind===o.kind&&e.label===o.label&&(e.kind==="brand"?e.mark===o.mark:e.glyph===o.glyph);function UE(e){return L$(e.map(o=>({name:o.label,kind:o.kind}))).map(o=>({label:o.label,kind:e.find(t=>zE(t).some(r=>N$(r,o)))?.kind??""}))}function upe(e){return zE(e)[0]??null}var jE={heading:"Trusted by *teams worldwide*"},qc=()=>[{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")}],M$=pd.Logos,Ipe={label:"Logos",drawsPictures:!0,fields:M$,defaultProps:{items:[],contained:!0}};var H$=()=>qc().map(e=>({label:e.alt}));function GE(e,o){let t=cd(e,o,H$()).rows.filter(r=>r.label);return $E(Le(e))?UE(t):t}var Kl="Flex",$$="Text",ql=e=>Object.values(e??{}).filter(qE),z$=e=>e.type===io&&Le(e.props)!=="",VE=e=>{if(e.type!==Kl)return!1;let o=ql(e.props).flat();return o.length>0&&o.every(z$)},Vc=e=>un(e.props?.headPlacement)==="own-box"||VE(e),Vh=e=>e===void 0||Array.isArray(e)&&e.length===0;function YE(e){return e.type===$$?!0:e.type===Kl&&ql(e.props).every(o=>o.every(YE))}var XE={ProcessSteps:e=>Vh(e.boxes)&&Gh(e.steps).length===0,Logos:e=>Le(e)?U$(e):Vh(e.logos)&&Vh(e.items)};function U$(e){return ib(e)!==null&&GE(e,!1).length===0}function j$(e){return ql(e.props).flat().every(o=>!cd(o.props,!1).rows.some(DE))}function Yc(e){let o=ql(e.props).flat();return o.some(Vc)&&o.every(t=>Vc(t)||YE(t))}function G$(e){if(!W$(e)||!Vc(e))return e;let o=VE(e)?j$(e):z(XE,String(e.type))?.(e.props??{})===!0;return{...e,props:{...e.props,[Gl]:o?"empty":!0}}}function KE(e){return Ye(e,o=>$e(o,G$))}function JE(e){let o=Object.entries(e.props??{}).filter(([,r])=>qE(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===Kl&&t.props?{key:o[0][0],inner:t}:null}function ZE(e){if(e?.type!==Kl||!e.props)return e;if(Yc(e)){let t=KE(e);return{...t,props:{...t.props,[jl]:!0}}}let o=JE(e);return!o||!Yc(o.inner)?e:{...e,props:{...e.props,[o.key]:[KE(o.inner)],[jl]:!0}}}function QE(e){let o=e;if(!o||!Array.isArray(o.content))return e;let t=!1,r=o.content.map(a=>{let n=ZE(a);return n!==a&&(t=!0),n});return t?{...o,content:r}:e}var K$=e=>z(XE,String(e.type))?.(e.props??{})===!0;function q$(e){if(e.type!==Kl||!e.props)return!1;let o=Yc(e)?null:JE(e),t=o?o.inner:e;if(!Yc(t))return!1;let r=ql(t.props).flat().filter(Vc);return r.some(a=>Le(a.props)!=="")&&r.every(K$)}function e_(e){return Ye(e,o=>V$(o))}function V$(e){let o=!1,t=[];for(let r of e){if(q$(r)){o=!0;continue}let a=e_(r);a!==r&&(o=!0),t.push(a)}return o?t:e}function o_(e){let o=e;if(!o||!Array.isArray(o.content))return e;let t=!1,r=o.content.map(a=>{if(ZE(a)!==a)return a;let n=e_(a);return n!==a&&(t=!0),n});return t?{...o,content:r}:e}var Y$=["DocMasthead","AlloyWheelsListing"],Xc="titleLevel",X$=e=>e===2?"h2":"h1",Yh=e=>X$(e?.[Xc])==="h2";function t_(e){let o=e;if(!o?.content?.length)return e;let t=!1,r=!1,a=o.content.map(n=>Y$.includes(n?.type??"")?t?(r=!0,{...n,props:{...n.props??{},[Xc]:2}}):(t=!0,n):n);return r?{...o,content:a}:e}import{readHidable as tz}from"efficient-easel/draw";var Yn="showFor";function r_(){return rn("efficient.box-show-for-choices",()=>({choices:[],revision:0}))}var J$=e=>!!e&&typeof e=="object"&&typeof e.slug=="string"&&e.slug.trim()!==""&&typeof e.name=="string"&&e.name.trim()!=="";function Dpe(){return r_().choices}function Npe(){return r_().revision}function a_(e){return J$(e)?{slug:e.slug,name:e.name}:void 0}import{readHidable as Z$}from"efficient-easel/draw";var Xh="_wallLabelId",Q$="_wallLabelledBy",Jh=e=>e.props?.id==null?"":String(e.props.id);function ez(e){if(!e||e.type!=="Text"||!Jh(e))return!1;let o=Z$(e.props?.text);return!o.hidden&&o.text.trim()!==""}var oz=e=>!!e&&e.type==="Logos"&&e.props?.look==="marks"&&Jh(e)!=="",n_=(e,o,t)=>({...e,props:{...e.props,[o]:t}});function s_(e){let o=$e(e,r=>Ye(r,s_)),t=null;for(let r=1;r<o.length;r++){if(!oz(o[r])||!ez(o[r-1]))continue;let a=`sf-wall-label-${Jh(o[r-1])}`;t??=o.slice(),t[r-1]=n_(t[r-1],Xh,a),t[r]=n_(t[r],Q$,a)}return t??o}function l_(e){return sn(e,s_)}var i_="_cardPressTitles",rz="_cardPressTitle";function Vpe(e,o){let t=e?.[i_],r=t&&typeof t=="object"?t[o]:void 0;return Array.isArray(r)&&r.length?r:void 0}var d_=(e,o)=>({...e,props:{...e.props,...o}});function az(e){let o=e.props??{};return e.type!=="Text"||tz(o.text).hidden||typeof o[Xo]=="string"||typeof o[Xh]=="string"?"":Wt(o)}function f_(e,o,t,r){return $e(e,a=>{let n=az(a);if(n&&!r.has(n))return r.add(n),t.push({field:n,gates:o}),d_(a,{[rz]:!0});if(a.type==="Text"||Array.isArray(a.props?.[Yn]))return a;let s=a.props?.[an],l=Array.isArray(s)&&s.length?[...o,s.filter(i=>typeof i=="string")]:o;return Ye(a,(i,d)=>aa(a.type,d)?i:f_(i,l,t,r))})}function c_(e){let o,t=Ye(e,(r,a)=>{let n=$e(r,c_);if(!aa(e.type,a))return n;let s=[],l=f_(n,[],s,new Set);return s.length&&((o??={})[a]=s),l});return o?d_(t,{[i_]:o}):t}function p_(e){return sn(e,o=>$e(o,c_))}import{pinnedDuplicateIndices as qU}from"efficient-easel/draw";import{jsx as zo,jsxs as w1}from"react/jsx-runtime";import{createContext as HU,useContext as WU,useEffect as $U,useRef as C1,useState as k1}from"react";import{jsx as Br,jsxs as __}from"react/jsx-runtime";import{useEffect as Xn,useRef as A_,useState as Ca}from"react";import{jsx as u_,Fragment as nz,jsxs as sz}from"react/jsx-runtime";import{useEffect as lz,useRef as m_,useState as iz}from"react";var dz="#t=0.001",fz=2;function cz(e,o){if(e.readyState<fz||!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 x_({src:e,objectPosition:o="50% 50%",onError:t}){let r=m_(null),a=m_(null),[n,s]=iz(!1);return lz(()=>{let l=r.current,i=a.current;if(n||!l||!i)return;let d=()=>{cz(l,i)&&s(!0)};return d(),l.addEventListener("loadeddata",d),l.addEventListener("seeked",d),()=>{l.removeEventListener("loadeddata",d),l.removeEventListener("seeked",d)}},[n]),sz(nz,{children:[u_("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&&u_("video",{ref:r,src:`${e}${dz}`,muted:!0,playsInline:!0,preload:"auto",className:"hidden",onError:t})]})}import{useEffect as xz}from"react";import{PIN_SCRUB as hz,PIN_STEPS_ATTR as b_}from"efficient-shell/format";var h_="video-time";function I_(e,o,t){if(!Number.isFinite(t)||t<=0)return e;let r=(e+o*t)%t;return r<0?r+t:r}function g_(e,o,t,r){if(!Number.isFinite(r)||r<=0)return e;let a=Math.max(0,r-uz),n=Math.min(a,Math.max(0,e)),s=Math.min(1,Math.max(0,t));return s>=o?o>=1?a:n+(s-o)/(1-o)*(a-n):o<=0?0:n*(s/o)}function y_(e,o){return!(o&&e>=1-pz)}var pz=.005,uz=.05;function S_(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 w_(e,o,t){xz(()=>{let r=t.current;if(!e||!r)return;let a=r.ownerDocument.defaultView??window,n=r.closest("[data-motion-pin]"),s=n??r;n?.setAttribute(b_,hz);let l=()=>{let C=s.getBoundingClientRect();return S_({top:C.top,height:C.height},a.innerHeight)},i=l(),d=!1,f=0,m=0,u=0,h=!1,I=0,S=()=>{let C=o.current;if(C){if(Math.abs(C.currentTime-f)<.01){h=!1;return}h=!0,C.currentTime=f}},T=()=>{h=!1;let C=o.current;d&&C&&Math.abs(C.currentTime-f)>.02&&S()},P=()=>{let C=l(),y=C-i;i=C;let b=o.current;y===0||!b||!b.duration||(d||(d=!0,b.pause(),f=b.currentTime,m=C-y,u=f),f=n?g_(u,m,C,b.duration):I_(f,y,b.duration),h||S(),a.clearTimeout(I),I=a.setTimeout(()=>{d=!1,y_(l(),!!n)&&o.current?.play()?.catch(()=>{})},150))},L=()=>{i=l()};return r.addEventListener("seeked",T,!0),a.addEventListener("scroll",P,{passive:!0}),a.addEventListener("resize",L),()=>{n?.removeAttribute(b_),r.removeEventListener("seeked",T,!0),a.removeEventListener("scroll",P),a.removeEventListener("resize",L),a.clearTimeout(I)}},[e,o,t])}import{useEffect as gz}from"react";var C_="video-name-ticks";var k_='[data-part="text"] a[href]';function v_(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 P_(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 yz="var(--overlay-fg)",Sz="color-mix(in srgb, var(--overlay-fg) 25%, transparent)";function T_(e,o,t){gz(()=>{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(k_)]:[],l=[];if(e==="names"){r.replaceChildren();for(let m=0;m<s.length;m++){let u=r.ownerDocument.createElement("b");u.style.background=Sz;let h=r.ownerDocument.createElement("i");h.style.background=yz,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=v_(m.currentTime,m.duration,l.length);l.forEach((I,S)=>{I.style.transform=`scaleX(${u[S]})`});let h=P_(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 bz="data-part",iue=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 ft(e){return{[bz]:e}}var Vl={min:40,max:100,step:5,fallback:100,unit:"vh"};function wz(e){return`${typeof e=="number"?e:Vl.fallback}${Vl.unit}`}function O_(...e){return e.some(o=>typeof o=="number"||Yl(o)!==null)}var Zh={...Lk,fallback:680,unit:"px"},pue={ratio:"16/9",px:`${Zh.fallback}px`},Cz=/^(\d{1,5}(?:\.\d{1,3})?)px$/;function Yl(e){if(typeof e!="string")return null;let o=Ak(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(Zh.max,Math.max(Zh.min,Number(t[1])));return{unit:"px",value:`${r}px`,px:r,css:`${r}px`}}return null}function kz(e){return Object.keys(e.style??{}).some(o=>o.startsWith("--sf-hero-ar-"))}function uue({heightDesktop:e,heightTablet:o,heightMobile:t,heightFixed:r,heightFixedTablet:a,heightFixedMobile:n}){let s=I=>Yl(I)?.value,l=O_(e,t,s(r),s(n)),i=O_(o,s(a)),d=(I,S,T)=>{let P=Yl(S);return P?.unit==="ratio"?{[`--sf-hero-h-${I}`]:P.css,[`--sf-hero-ar-${I}`]:P.aspect}:{[`--sf-hero-h-${I}`]:P?.css??wz(T)}},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=kz({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 Jc=1280,vz="16 / 9",Pz="100svh",Tz=[{minDppx:3.01,dppx:4,capPx:Math.floor(Jc/4)},{minDppx:2.01,dppx:3,capPx:Math.floor(Jc/3)},{minDppx:1.01,dppx:2,capPx:Math.floor(Jc/2)},{minDppx:null,dppx:1,capPx:Jc}];function E_(e=Pz){let o=`max(100vw, calc(${e} * ${vz}))`;return[...Tz.map(({minDppx:t,capPx:r})=>`${t===null?On:`${On} and (min-resolution: ${t}dppx)`} min(${o}, ${r}px)`),"100vw"].join(", ")}function Iue(e,o){let t=Yl(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>=Vl.min&&e<=Vl.max)return`${e}svh`}var Oz=.5;function Xl({videoSrc:e,videoAv1Src:o,videoSrcPhone:t,videoAv1SrcPhone:r,posterSrc:a,posterSrcPhone:n,showVideo:s=!0,playbackRate:l=Oz,objectPosition:i="50% 50%",objectPositionPhone:d,objectPositionTablet:f,quiet:m=!1,slideShown:u,laterSlide:h=!1,laterOfLead:I=!1,phoneFrame:S,followsScroll:T=!1,progress:P,followScrollBar:L}){let C=E_(S),y=wP(d,f),b=wl(),[F,_]=Ca(!1),D=b==="below"&&!F,w=b==="first",E=a||"",g=n||"",v=A_(null),O=Ll(v,!0,!0),k=O===void 0?void 0:O==="phone",A=vf({video:e,av1:o,videoPhone:t,av1Phone:r},k===!0),M=A.video||"",G=kf(M,A.av1),[$,de]=Ca(!1),[le,ee]=Ca(!1),[Ie,ae]=Ca(!1),[xe,ge]=Ca(!1),Je=u??!0,[Ze,mo]=Ca(!1),qe=b!=="first"&&!I,[to,Eo]=Ca(!1),_o=A_(null),xo=L?{kind:"bar",fill:L}:void 0;w_(T||!!L,_o,v),T_((P??xo)?.kind??"none",_o,(P??xo)?.fill),Xn(()=>{if(!qe)return;if(document.readyState==="complete"){Eo(!0);return}let ne=()=>Eo(!0);return window.addEventListener("load",ne,{once:!0}),()=>window.removeEventListener("load",ne)},[qe]),Xn(()=>{de(!1),ee(!1),ae(!1),ge(!1)},[M,E,g]),Xn(()=>{Je&&mo(!0)},[Je]),Xn(()=>{let ne=_o.current;ne&&(Je?ne.play()?.catch(()=>{}):ne.pause())},[Je,Ze,to]),Xn(()=>{if(!h||qe&&!to)return;let ne=()=>_(!0);if(typeof window.requestIdleCallback=="function"){let Yo=window.requestIdleCallback(ne,{timeout:2e3});return()=>window.cancelIdleCallback(Yo)}let He=setTimeout(ne,800);return()=>clearTimeout(He)},[h,qe,to]),Xn(()=>{let ne=_o.current;if(!ne)return;let He=()=>{ne.playbackRate=l};return He(),ne.addEventListener("loadedmetadata",He),()=>ne.removeEventListener("loadedmetadata",He)},[M,l]);let W=Cf(E),ie=E&&(W||g)&&!le?ya(E):{src:E},he=g&&!le?ya(g):{src:g},Ve=g&&!D&&!F?[{sized:he,media:On},...E?[{sized:ie,media:js}]:[]]:[];return __("div",{ref:v,className:"absolute inset-0 z-[1]",...ft("hero-media"),children:[Br("div",{className:"absolute inset-0",style:{background:"var(--site-surface)"}}),Ve.map(({sized:ne,media:He})=>Br("link",{rel:"preload",as:"image",href:ne.src,media:He,fetchPriority:"high",...ne.srcSet?{imageSrcSet:ne.srcSet,imageSizes:C}:{}},He)),(E||g)&&(W||g?(()=>{let ne=Br("img",{...E?{src:ie.src}:{},...ie.srcSet?{srcSet:ie.srcSet,sizes:C}:{},alt:"",...D?{loading:"lazy"}:{},...w?{fetchPriority:"high"}:{},className:`absolute inset-0 z-[2] h-full w-full object-cover ${y.className}`.trim(),style:{display:$?"none":"block",objectPosition:i,...y.style},onError:He=>{He.currentTarget.currentSrc&&(ie.srcSet||he.srcSet?ee(!0):de(!0))}},g?void 0:E);return g?__("picture",{children:[Br("source",{media:On,srcSet:he.srcSet||he.src,sizes:C}),ne]},`${E} ${g}`):ne})():Br(Ec,{src:E,alt:"",fill:!0,...D?{}:F?{loading:"eager"}:{priority:!0},sizes:C,className:`z-[2] object-cover ${y.className}`.trim(),style:{display:$?"none":"block",objectPosition:i,...y.style},onError:()=>de(!0)},E)),s&&!m&&M&&k!==void 0&&Ze&&(!qe||to)&&!Ie&&Br("video",{ref:_o,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:G.map(ne=>Br("source",{src:ne.src,type:ne.type},ne.src))},M),s&&m&&M&&k!==void 0&&Ze&&(!qe||to)&&!xe&&(!E||$)&&Br(x_,{src:M,objectPosition:i,onError:()=>ge(!0)},M)]})}import{jsx as F_}from"react/jsx-runtime";import{forwardRef as Ez}from"react";var _z=Ez(function(e,o){return F_("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)"},...ft(h_),children:F_("i",{ref:o,className:"block h-full w-full origin-left",style:{background:"var(--overlay-fg)",transform:"scaleX(0)"}})})}),B_=_z;import{jsx as Az}from"react/jsx-runtime";import{forwardRef as Fz}from"react";var Bz=Fz(function(e,o){return Az("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",...ft(C_)})}),R_=Bz;import{jsx as go,Fragment as q_,jsxs as rI}from"react/jsx-runtime";import{jsx as Jn}from"react/jsx-runtime";import{useRef as Rz}from"react";import{EXPAND_SIDE_VAR as Lz,SCROLL_EFFECTS_WITH_ZOOM as Dz,scrollAttrs as Nz}from"efficient-shell/format";var Mz={[Lz]:`var(${hC}, 0px)`};function Zc({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=Rz(null),m=df(),u=lt(),h=n?u:vr,I=Rl(f,!0,s),S=Nz(e[I],o[I]),{attrs:T}=S,P=e[I].effect==="expand"?{...S.style,...Mz}:S.style,L=Dz.includes(e[I].effect),C=ko(`${wn}${m.fill}${t?` ${t}`:""}`,h.className);if(L&&l==="picture")return h.scope(Jn("div",{ref:f,className:C,...r,...h.attrs,...a?{style:a}:{},children:Jn(Fk,{attrs:T,style:P,children:m.inner(d)})}));let y=Jn(Bk,{children:m.inner(d)});if(L){let F=i??(m.fill?"h-full":void 0);return h.scope(Jn("div",{ref:f,className:C,...r,...h.attrs,style:{...a,overflow:"clip"},children:Jn("div",{...F?{className:F}:{},...T,style:P,children:y})}))}let b=Object.keys(P).length||a?{style:{...a,...P}}:{};return h.scope(Jn("div",{ref:f,className:C,...r,...h.attrs,...T,...b,children:y}))}var ka=["media","image","image2"],ur={media:"Media",image:"Image",image2:"Image 2"},Jl={media:"heroMedia",image:"heroImage",image2:"heroImage2"};function Qc(e,o){return e==="image"&&tl(o)>1?"Image 1":ur[e]}var rme="Video file",ame="Upload a video file",nme="AV1 file",sme="Upload an AV1 file";function Hz(e,o){return vd("mediaType",Xd,o,[e])}var Wz=new Set(Object.keys(Jd)),L_="heroPart";function $z(e,o){return{...o,[L_]:e}}function lme(e,{parts:o={},onlyFor:t,fallback:r,rules:a}){let n={...e},s=[...Object.values(o).flat(),...Xd.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 Xd)for(let i of t[l])n[i]=ro(n[i],Hz(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]=$z(l,n[i]);return n}function zz(e){let o=e?.[L_];return ka.includes(o)?o:null}function D_(e,o){let t={};for(let[r,a]of Object.entries(e))zz(a)===o&&(t[r]=a);return t}function N_(e){if(!Wz.has(e.type))return[];let o=[{part:"media",label:ur.media,depth:0}];return ik(e.type,e.props.mediaType)!=="video"&&(o.push({part:"image",label:Qc("image",e.props),depth:1}),tl(e.props)>1&&o.push({part:"image2",label:Qc("image2",e.props),depth:1})),o}function va(e,o){return`${e}::${o}`}function ep(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 Zl="data-sf-hero-part";import{MOTION_TIMING as Uz}from"efficient-shell/format";var $_="grayscale(1) contrast(1.03)",cme="Black and white";function jz(e){return e===!0?{filter:$_}:{}}function Gz(e){let{filter:o}=jz(e);return o?{style:{filter:o}}:{}}var Pa="sf-photo-grayscale",tI="data-sf-photo-host",M_={duration:"--sf-photo-hover-duration",delay:"--sf-photo-hover-delay"},ap=`@media (hover:hover){.${Pa}{filter:${$_};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 z_(e){let o=Uz.hover,t={...e.duration!==o.duration.default?{[M_.duration]:`${e.duration}s`}:{},...e.delay!==o.delay.default?{[M_.delay]:`${e.delay}s`}:{}};return Object.keys(t).length?t:void 0}function U_(e,o,t){if(e===!0)return Gz(!0);if(t?.kind==="mono"){let r=z_(t);return{className:Pa,sheet:ap,...r?{style:r}:{}}}return e===!1?{}:o===!0?{className:Pa}:{}}var j_="data-sf-repeat",Qh="sf-photo-zoom",Kz="--sf-photo-zoom",pme="sf-photo-wash",op="sf-photo-wash-rest",Ql="sf-photo-wash-hover",rp="sf-photo-frame",G_=(e,o)=>`:not([${j_}]:not(${o}) .${e})`,oI=(e,o)=>`[${j_}]${o} .${e}${G_(e,o)}`,eI=(e,o)=>`${o},${oI(e,":hover")},[${tI}]:hover .${e}${G_(e,":hover")}`,H_=e=>`${e} var(--sf-photo-hover-duration,var(--page-motion-hover-duration)) var(--page-ease-media) var(--sf-photo-hover-delay,var(--page-motion-hover-delay))`,qz=`.${Ql}{opacity:0}@media (hover:hover){.${op},.${Ql}{transition:${H_("opacity")}}${eI(Ql,`.${rp}:hover .${Ql}`)}{opacity:1}${eI(op,`.${rp}:hover .${op}`)}{opacity:0}}@media (hover:hover) and (prefers-reduced-motion:no-preference){.${Qh}{transition:${H_("transform")}}${eI(Qh,`.${rp}:hover .${Qh}`)}{transform:scale(var(${Kz}))}}@media (hover:hover) and (prefers-reduced-motion:reduce){.${op},.${Ql}{transition:none}}`,ume="sf-photo-move";function mme(e){if(!e||!e.zoom&&!e.darken)return null;let o=z_(e);return{className:rp,sheet:qz,...o?{style:o}:{}}}function K_(e){return e===!0?{[Pa]:ap}:{}}var tp="sf-box-reveal",xme="sf-box-reveal",Vz=8,W_=.3,hme=`@media ${js}{.${tp}{opacity:0;transform:translateY(${Vz}px);transition:opacity ${W_}s ease-out,transform ${W_}s ease-out}${oI(tp,":hover")},${oI(tp,":focus-within")}{opacity:1;transform:none}}@media ${js} and (prefers-reduced-motion:reduce){.${tp}{transition:none;transform:none}}`;import{hidableText as Yz}from"efficient-easel/draw";var Xz={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"},Jz={one:"view-tablet:grid-cols-1 view-tablet:grid-rows-1",side:"view-tablet:grid-cols-2 view-tablet:grid-rows-1",stacked:"view-tablet:grid-cols-1 view-tablet:grid-rows-2"};function V_(e){let o=e.isVideo&&zP(e.videoSource)==="youtube",t=e.isVideo?UP(e.videoPlayback):null,r=t==="click",a=o?jP(Yz(e.youtubeUrl)):null,n=dk(e.mediaLayout);return{fromYouTube:o,onClick:r,youTubeId:a,backgroundFile:e.isVideo&&!o&&!r,followsScroll:t==="scroll"&&!o,progress:t?$P(e.videoProgress,t,o):"none",desktopLayout:n,phoneLayout:fk(e.mediaLayoutPhone,n),twoPictures:!e.isVideo&&tl(e)>1}}function ei(e,o){return Cn(Sa({_partMotion:e},o))}function oi(e,o){return Gn(Sa({_partMotion:e},o))}var np=e=>Eh({desktop:e.objectPosition,tablet:e.objectPositionTablet,phone:e.objectPositionPhone}),Y_=ll.img;function X_({entrance:e,scroll:o,origins:t,editing:r,className:a,attrs:n,style:s,zoomLayerClass:l,children:i}){return e?go(_c,{views:e,editing:r,boxClass:a,boxAttrs:n,...s?{boxStyle:s}:{},children:i}):o?go(Zc,{views:o,...t?{origins:t}:{},boxClass:a,boxAttrs:n,...s?{boxStyle:s}:{},...l?{zoomLayerClass:l}:{},children:i}):go("div",{className:a,...n,...s?{style:s}:{},children:i})}function Zn(e,o){return U_(void 0,void 0,qb(Sa({_partMotion:e},o)))}function J_(e){return ka.some(o=>Zn(e,o).className)?{hostAttrs:{[tI]:""},sheet:ap}:{}}function sp({treatment:e,children:o}){return e.className?go("div",{className:`absolute inset-0 ${e.className}`,...e.style?{style:e.style}:{},children:o}):go(q_,{children:o})}function lp({color:e,opacity:o,passClicks:t=!0}){return o>0?go("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},...ft("tint")}):null}function ip({part:e,editing:o,marked:t=!0,entrance:r,scroll:a=null,origins:n,className:s,children:l}){let i=o&&t?{[Zl]:e}:void 0;return go(X_,{entrance:r,scroll:a,origins:n,editing:o,className:s,attrs:i,zoomLayerClass:Y_,children:l})}function Z_({partMotion:e,editing:o,children:t}){let r=ei(e,"media"),a=oi(e,"media"),n=Zn(e,"media"),s=go(af,{fill:ll,children:t}),l=n.className?go("div",{className:`absolute inset-0 z-[1] ${n.className}`,...n.style?{style:n.style}:{},children:s}):s;return r||a?go(X_,{entrance:r,scroll:a,editing:o,className:"absolute inset-0 z-[1]",zoomLayerClass:Y_,children:l}):go(q_,{children:l})}function Q_({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 ${Xz[o]} ${Jz[e]}`,"data-hero-layout":e,"data-hero-layout-phone":o,children:[go(ip,{part:"image",editing:t,marked:r,entrance:ei(a,"image"),scroll:oi(a,"image"),origins:np(n),className:"relative overflow-hidden",children:rI(sp,{treatment:Zn(a,"image"),children:[go(Xl,{posterSrc:it(n.src),showVideo:!1,laterSlide:l,objectPosition:n.objectPosition,objectPositionPhone:n.objectPositionPhone,objectPositionTablet:n.objectPositionTablet}),go(lp,{color:n.tintColor,opacity:n.tintOpacity})]})}),go(ip,{part:"image2",editing:t,marked:r,entrance:ei(a,"image2"),scroll:oi(a,"image2"),origins:np(s),className:`relative overflow-hidden ${Zv({desktop:e==="one",tablet:e==="one",mobile:o==="one"},{atSectionLine:!0})}`.trimEnd(),children:rI(sp,{treatment:Zn(a,"image2"),children:[go(Xl,{posterSrc:it(s.src),showVideo:!1,laterSlide:l,objectPosition:s.objectPosition,objectPositionPhone:s.objectPositionPhone,objectPositionTablet:s.objectPositionTablet}),go(lp,{color:s.tintColor,opacity:s.tintOpacity})]})})]})}import{jsx as Rr,Fragment as Zz,jsxs as Qz}from"react/jsx-runtime";import{useEffect as eU,useRef as oU,useState as tU}from"react";import{PlaySolidIcon as rU}from"efficient-shell/icons/efficient-looks";function e1({youTubeId:e,ownPoster:o,background:t,editing:r}){let[a,n]=tU("large");return eU(()=>n("large"),[e]),e?Qz(Zz,{children:[!o&&a!=="none"&&Rr(rc,{src:a==="large"?GP(e):KP(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&&Rr("div",{className:"pointer-events-none absolute inset-0 z-[3] overflow-hidden [container-type:size]","aria-hidden":"true",children:Rr("iframe",{src:Fx(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 o1({youTubeId:e,fileSrc:o,fileAv1Src:t,fileSrcPhone:r,fileAv1SrcPhone:a,playing:n,onPlay:s,editing:l}){let i=oU(null),d=Ll(i,!0,!0)==="phone";if(!e&&!o)return null;let f=vf({video:o,av1:t,videoPhone:r,av1Phone:a},d),m=kf(f.video,f.av1);return n&&!l?e?Rr("iframe",{src:Fx(e,"click"),title:Bx,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"}):Rr("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=>Rr("source",{src:u.src,type:u.type},u.src))},f.video):Rr("button",{ref:u=>{i.current=u},type:"button","aria-label":Bx,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:Rr(rU,{size:28})})}function t1(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 s1}from"efficient-shell/format";var l1=["top","middle","bottom"],i1=["left","center","right"],d1="bottom",f1="left",aU={top:"Top",middle:"Middle",bottom:"Bottom"},nU={left:"Left",center:"Center",right:"Right"},qme="Up and down",Vme="Sideways",sU={top:"flex-start",middle:"center",bottom:"flex-end"},lU={left:"flex-start",center:"center",right:"flex-end"},iU="--sf-hero-phone-y",dU="--sf-hero-phone-x";function fU(e){return s1(l1,d1,e)}function cU(e){return s1(i1,f1,e)}function c1(e,o){let t=fU(e),r=cU(o),a={};return t!==d1&&(a[iU]=sU[t]),r!==f1&&(a[dU]=lU[r]),a}var pU="--sf-hero-phone-words-top",uU="--sf-hero-phone-words-bottom",mU="--sf-hero-phone-box-gap",Yme=100,Xme=90,Jme=28,xU=0,hU=200,Zme="Words space top",Qme="Words space bottom",exe="Space between boxes";function aI(e){if(!(typeof e!="number"||!Number.isFinite(e)))return Math.min(hU,Math.max(xU,Math.round(e)))}function p1(e,o,t){let r={},a=aI(e),n=aI(o),s=aI(t);return a!==void 0&&(r[pU]=`${a}px`),n!==void 0&&(r[uU]=`${n}px`),s!==void 0&&(r[mU]=`${s}px`),r}function oxe(){return l1.map(e=>({label:aU[e],value:e}))}function txe(){return i1.map(e=>({label:nU[e],value:e}))}var IU="--sf-hero-words-top",gU="--sf-hero-words-bottom",r1="--sf-hero-words-top-t",a1="--sf-hero-words-bottom-t",rxe=140,axe=56,yU=0,SU=400,n1="pt-[var(--sf-hero-words-top,140px)] pb-[var(--sf-hero-words-bottom,56px)]",bU="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 wU(e){if(!(typeof e!="number"||!Number.isFinite(e)))return Math.min(SU,Math.max(yU,Math.round(e)))}function u1(e,o,t,r){let a={},n=(s,l)=>{let i=wU(l);i!==void 0&&(a[s]=`${i}px`)};return n(IU,e),n(gU,o),n(r1,t),n(a1,r),Object.keys(a).length===0?{className:null,style:a}:{className:r1 in a||a1 in a?`${n1} ${bU}`:n1,style:a}}import{hexToRgb as CU,parseOption as kU}from"efficient-shell/format";var vU=!0;var PU=[[0,".5"],[30,".1"],[60,".1"],[100,".85"]];function m1(e){let o=CU(e);return o?`${o.r},${o.g},${o.b}`:null}function x1(e){return e==null?vU:e!==!1}var TU="classic",OU=[{label:"Classic",value:"classic"},{label:"Edges",value:"edges"}],EU=160,_U=62,AU=".38";function FU(e){return kU(OU,TU,e)}function h1(e,o){let t=(e?m1(e):null)??m1(sr);if(FU(o)==="edges"){let r=`rgba(${t},${AU})`,a=`rgba(${t},0)`;return`linear-gradient(180deg, ${r} 0px, ${a} ${EU}px), linear-gradient(180deg, ${a} ${_U}%, ${r} 100%)`}return`linear-gradient(180deg, ${PU.map(([r,a])=>`rgba(${t},${a}) ${r}%`).join(", ")})`}import{hexToRgb as I1,parseOption as BU}from"efficient-shell/format";var g1="bottom";var RU=[{label:"Bottom",value:"bottom",cell:"bottom"},{label:"Top",value:"top",cell:"top"},{label:"Left",value:"left",cell:"left"},{label:"Right",value:"right",cell:"right"}],LU={bottom:180,top:0,left:270,right:90},DU=[[.55,0],[.15,18],[null,35],[null,55],[.85,100]],NU=[[null,33],[.6,67],[.94,100]];function MU(e,o){let{r:t,g:r,b:a}=I1(e)??I1(sr);return`rgba(${t},${r},${a},${o})`}function y1(e){return BU(RU,g1,e)}function S1(e=sr,o=g1){let t=y1(o),r=(t==="top"||t==="bottom"?DU:NU).map(([a,n])=>`${a===null?"transparent":MU(e,a)} ${n}%`);return`linear-gradient(${LU[t]}deg, ${r.join(", ")})`}function b1(e,o){let t=ho(e.overlayColor),r=ho(e.overlayPosition),a=ho(o)??sr;return!t&&!r?{own:!1,color:a,position:null}:{own:!0,color:t??a,position:y1(r)}}var zU=HU({});function Rxe({name:e,process:o,mediaType:t=Jd.HeroSlide,mediaSrc:r,videoSpeed:a,poster:n,mediaAv1:s,mediaSrcPhone:l,mediaAv1Phone:i,posterPhone:d,objectPosition:f,objectPositionPhone:m,objectPositionTablet:u,tintColor:h=sr,tintOpacity:I=0,groups:S,editing:T=!1,themeClassName:P,themeStyle:L,overlayColor:C,overlayPosition:y,mediaLayout:b,mediaLayoutPhone:F,mediaImage2:_,objectPosition2:D,objectPosition2Phone:w,objectPosition2Tablet:E,tintColor2:g=sr,tintOpacity2:v=0,videoSource:O,youtubeUrl:k,videoPlayback:A,videoProgress:M,partMotion:G,laterSlide:$=!1}){let de=Pt(),le=lt(),{alignment:ee="left",textureOpacity:Ie,textureOn:ae,textureColor:xe,textureShape:ge,quietVideo:Je,phoneUpDown:Ze,phoneSideways:mo,phoneWordsTop:qe,phoneWordsBottom:to,phoneBoxGap:Eo,wordsTop:_o,wordsBottom:xo,wordsTopTablet:W,wordsBottomTablet:ie,holdReel:he,reelHeld:Ve,shownSlide:ne,ratioMin:He,posterPhoneFrame:Yo}=WU(zU),We=u1(_o,xo,W,ie),je=wl(),Yr=$&&je==="first",ld=C1(null),[Xr,Pm]=k1(ne===void 0?void 0:!1);$U(()=>{let tn=ld.current;Pm(ne===void 0||!tn?void 0:t1(tn.closest(".hero-track"),"data-slide-name")[ne]===tn)});let Ro=t==="video",Jr=Ro?it(r):void 0,Rs=Ro?it(n):it(r)??it(n),Lo=Ro?{av1:it(s),phone:it(l),av1Phone:it(i),poster:it(d)}:{},Qa=typeof a=="number"?a/100:1,{fromYouTube:Zt,onClick:Ls,youTubeId:Zr,backgroundFile:Ir,followsScroll:id,progress:en,desktopLayout:Ds,phoneLayout:dd,twoPictures:fd}=V_({isVideo:Ro,videoSource:O,videoPlayback:A,videoProgress:M,youtubeUrl:k,mediaLayout:b,mediaLayoutPhone:F}),[Ns,Lt]=k1(!1),Ms=C1(null);Ns&&Ve===!1&&Lt(!1);let Hs=!Ns,on=b1({overlayColor:C,overlayPosition:y},xe),q=Ro?null:ei(G,"image"),Ae=Ro?null:oi(G,"image"),Do=J_(G),bt=zo(sp,{treatment:Ro?{}:Zn(G,"image"),children:zo(Xl,{videoSrc:Ir?Jr:void 0,videoAv1Src:Ir?Lo.av1:void 0,videoSrcPhone:Ir?Lo.phone:void 0,videoAv1SrcPhone:Ir?Lo.av1Phone:void 0,posterSrc:Rs,posterSrcPhone:Lo.poster,showVideo:Ir,playbackRate:Qa,objectPosition:f,objectPositionPhone:Ro?void 0:m,objectPositionTablet:Ro?void 0:u,quiet:Je,slideShown:Xr,laterSlide:$,laterOfLead:Yr,phoneFrame:Yo,followsScroll:id,progress:en==="none"?void 0:{kind:en,fill:Ms}})}),Dt=w1("section",{ref:ld,className:ko(`${He?"relative flex min-h-full w-full flex-col overflow-clip":"relative h-full w-full overflow-hidden"}${P?` ${P}`:""}`,le.className),...le.attrs,style:L,"data-slide-name":e??"","data-slide-process":o??"","data-slide-media":Ir&&Jr?"video":"still",...Do.hostAttrs,...ft("slide"),children:[zo(Wc,{sheet:Do.sheet}),zo(Z_,{partMotion:G,editing:T,children:fd?zo(Q_,{laterSlide:$,desktopLayout:Ds,phoneLayout:dd,editing:T,partMotion:G,first:{src:r,objectPosition:f,objectPositionPhone:m,objectPositionTablet:u,tintColor:h,tintOpacity:I},second:{src:_,objectPosition:D,objectPositionPhone:w,objectPositionTablet:E,tintColor:g,tintOpacity:v}}):Zt||q||Ae?w1(ip,{part:Ro?"media":"image",editing:T,entrance:q,scroll:Ae,origins:np({objectPosition:f,objectPositionTablet:u,objectPositionPhone:m}),className:"absolute inset-0 z-[1]",children:[bt,Zt&&zo(e1,{youTubeId:Zr,ownPoster:!!Rs,background:!Ls,editing:T})]}):bt}),Ls&&zo(o1,{youTubeId:Zr,fileSrc:Zt?void 0:Jr,fileAv1Src:Zt?void 0:Lo.av1,fileSrcPhone:Zt?void 0:Lo.phone,fileAv1SrcPhone:Zt?void 0:Lo.av1Phone,playing:Ns,onPlay:()=>{Lt(!0),he?.()},editing:T}),Hs&&!fd&&zo(lp,{color:h,opacity:I,passClicks:!1}),Hs&&x1(ae)&&zo("div",{className:"absolute inset-0 z-[2]",style:{background:on.own?S1(on.color,on.position??void 0):h1(on.color,ge),...Ie!==void 0?{opacity:Ie/100}:null},...ft("overlay")}),Hs&&zo("div",{className:[He?"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)]",We.className??"pt-[140px] pb-14",de?CC:"",T?"sf-hero-group-layer-edit":""].filter(Boolean).join(" "),style:{...iC,...c1(Ze,mo),...p1(qe,to,Eo),...We.style},...ft("hero-content"),children:S&&zo(S,{className:"sf-hero-group-zone",minEmptyHeight:160})}),en==="bar"?zo(B_,{ref:Ms}):en==="names"?zo(R_,{ref:Ms}):null]});return le.scope(Yr?zo(tc,{children:Dt}):Dt)}var v1=Array.from({length:3},(e,o)=>({name:`Slide ${o+1}`,process:"Category",mediaType:"image",mediaVideo:"",poster:""}));import{newNodeId as _1}from"efficient-easel/draw";import{isNodeList as jU}from"efficient-easel/data";var nI=3,sI=()=>({type:K,props:{direction:"column"},slots:{[Ce]:[{type:"ImageBlock"},{type:K,props:{direction:"column"},slots:{[Ce]:[{type:"Text",props:gr()},{type:"Text"}]}}]}}),P1=()=>Array.from({length:nI},sI);var T1=["","","","","",""],O1="#ticker",ti="strip",lI={sectionAccent:Sr,line:!1};function UU(e){return(Array.isArray(e.tickerItems)?e.tickerItems:[]).map(o=>typeof o?.text=="string"?o.text:"").filter(o=>o.trim()!=="")}function iI(e){return UU(e).length>0}function $xe(e){return e.showTicker!==!1&&iI(e)}var A1=(e,o)=>({type:e.type,props:{...o?.(e.type)??{},...Object.fromEntries(Object.entries(e.props).map(([t,r])=>[t,jU(r)?r.map(a=>A1(a,o)):r]))}}),GU=e=>{let[o]=Mt([sI()],a=>_1(a)),{id:t,...r}=A1(o,e).props;return r},ct={Hero:{slot:"slides",childType:"HeroSlide",addLabel:"Add slide",slider:!0,seeds:()=>v1.map(e=>({...e}))},HeroSlide:{slot:"groups",childType:"HeroGroup",addLabel:`Add ${zs.toLowerCase()}`,seeds:()=>[],addBlocked:cx,notice:px},HeroSingle:{slot:"boxes",childType:"HeroGroup",addLabel:`Add ${zs.toLowerCase()}`,seeds:()=>[],addBlocked:cx,notice:px},ProcessSteps:{slot:$s,childType:K,addLabel:`Add ${zs.toLowerCase()}`,seeds:e=>Array.from({length:nI},()=>GU(e)),skipSeed:e=>Array.isArray(e.steps)&&e.steps.length>0}},E1=1,KU={slot:ti,childType:K,addLabel:`Add ${zs.toLowerCase()}`,seeds:()=>[],addBlocked:e=>e.length>=E1?"This Hero has its Scrolling Bar already. Delete it to add another.":null,notice:e=>e.length>E1?`This Hero holds ${e.length} Scrolling Bars. Keep one and delete the others.`:null},F1={Hero:{[ti]:KU}};function Qxe(e){for(let[o,t]of Object.entries(e)){if(Qe(ct,o)&&z(ct,o)!==t)throw new Error(`lib/document/slot-specs: "${o}" already has a slot spec`);ct[o]=t}}function ehe(e,o){let t=z(ct,e);return t?{slot:t.slot,children:t.seeds(o).map(r=>({type:t.childType,props:{id:_1(t.childType),...r}}))}:null}var VU=["GalleryB"];function B1(e){let o=e.content;if(!Array.isArray(o))return e;let t=!1,r=o.map(s=>{let l=s?.type;if(!l||!VU.includes(l))return s;let i=z(ct,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(qU(r)),n=a.size?r.filter((s,l)=>!a.has(l)):r;return a.size&&(t=!0),t?{...e,content:n}:e}var YU={"Logos.logosPerRow":"columns","HeroSlide.tintOpacity":"overlay","Split.textBgTint":"overlay"},XU={"Footprint.source":"typed"};function R1(e){let o=e.props,t=!1;if(e.type&&o)for(let[r,a]of Object.entries(YU)){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(XU)){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&&!Le(i)&&(i[lo]=l),o=i,t=!0}if(e.type&&o){let r=Od(e.type,o);r!==o&&(o=r,t=!0)}if(o){let r=Ye({props:o},a=>$e(a,R1));r.props!==o&&(o=r.props,t=!0)}return t?{...e,props:o}:e}function L1(e){return ud(e,o=>$e(o,R1))}import{readHidable as JU}from"efficient-easel/draw";var qt=K,Vt=Ce;function Ta(e){if(e.theme)return ar(e.theme);let o=e.site?.themePresets;return o?ar({selected:e.site?.selectedPreset??0,themes:[...o]}):void 0}function ZU(e,o){return o===0?`${e}~box`:`${e}~box-${o+1}`}var N1=new Set(["id"]),Lr={},ri=[],QU={ProductGrid:["ProductColour","ProductEyebrow","ProductName","ProductPicture","ProductPrice","ProductRef","ProductSpecs"],Events:[],Collections:["CollectionCard"],GalleryB:["GalleryItem"],ContactRouting:[],ReviewForm:[],AppointmentBooking:["BookingBox"],Reviews:["RatingBlock"],CheckoutCTA:[],AlloyWheelsListing:["ProductBuy","ProductColour","ProductEyebrow","ProductName","ProductPicture","ProductPrice","ProductSpecs"],SpecTable:["EuTyreLabelBlock","WheelDiagram"],FitmentTable:[],ProductHero:["ProductGallery","ProductEyebrow","ProductName","ProductPrice","ProductBuyButton"]},ej=Object.keys(QU),Oa=["Breadcrumb","DocBody","Form","SubmitBuild","Footprint","FAQ","ContactLocations","ProcessSteps",...ej,"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(Qe(Lr,o)&&z(Lr,o)!==t)throw new Error(`lib/sections/section-to-box: "${o}" already has a row`);Lr[o]=t}}function Dr(e){return z(Lr,e)}function oj(e){return Qe(Lr,e)&&ri.includes(e)}function M1(e,o=Oa){return Qe(Lr,e)&&(o.includes(e)||oj(e))}function yhe(e){let o=z(kt,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=>JU(e),Ne=e=>dI(e).text.trim()!=="";function tj(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 rj=e=>e==="heading"?gr():e==="eyebrow"?tr():{};function aj(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 nj(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 D1(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 sj(e){let o=new Set([...N1,"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=>un(e.headPlacement)==="own-box";function lj(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 ij(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 dj(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 fj(e,o,t){if(!t.press)for(let r of dj(e)){let a=ij(o,r);if(a!==void 0)return a}}function Ea(e,o,t={}){let r=e.props,a=(o.ownBoxConverts?void 0:lj(r))??fj(o,r,t)??o.skip?.(r);if(a!==void 0)return{node:e,nodes:[e],carried:[],dropped:[],siteWrites:[],skipped:a};let n=String(r.id??e.type),s=[],l=[],i=new Set,d=(y,b)=>{s.push({key:y,home:b}),i.add(y)},f=r._partStyles??{},m=sj(o),u=0,h=(y,b)=>({type:y,props:{...b,id:`${n}~${y}-${++u}`}}),I=(y,b,F,_,D,w,E)=>{if(D){for(let v of y??[]){let O=typeof v=="string"?v:v[0];F[O]!==void 0&&E(O,`nothing \u2014 the ${_} has no parts, so it is not drawn`)}return}let g=typeof b=="function"?b(r,t):b??{};return D1(y??[],g,F,(v,O,k)=>E(v,k?`nothing \u2014 the old value draws nothing (${_}: no ${O})`:`${w}${_}: ${O}`),t)},S=y=>Mt(y,b=>`${n}~${b}-${++u}`),T=(y,b,F)=>{let _=y.of?y.of(b):Array.isArray(b[y.key])?b[y.key]:[],D=typeof y.props=="function"?y.props(r,t):y.props??{},w=_.map((k,A)=>{let M=k??{},G=y.item?.(M,A,r)??{},$=P(G.reverse?[...y.parts].reverse():y.parts,M,!1,`item ${A+1}: `);return y.flat?G.props?$.map(de=>({...de,props:{...de.props,...G.props,id:de.props.id}})):$:[h(qt,{name:`${y.name} ${A+1}`,...D,...G.props??{},[Vt]:$})]});if(y.groups){let k=y.groups;return F(y.key,_.length?`one Box per item (${_.length}), in a Box per group`:"nothing \u2014 the list is empty"),Pd(_.map(A=>A??{}),k.of,k.of).map((A,M)=>{let G=A.items.map(ae=>ae.item),$=k.parts?P(k.parts,k.head?.(G,r)??{},!1,`group ${M+1}: `):[],de=A.items.map(ae=>w[ae.index]),le=k.perRow?.(G.length,r),ee=Number.isInteger(le)&&le>=1?le:1,Ie=[];if(k.perRow&&ee<de.length)for(let ae=0;ae*ee<de.length;ae++)Ie.push(de.slice(ae*ee,(ae+1)*ee).flat());return h(qt,{name:`${k.name} ${M+1}`,...k.props??{},[Vt]:[...$,h(qt,{name:`${k.itemsName} ${M+1}`,...k.itemsProps?.(G.length,r)??{},[Vt]:Ie.length?Ie.map((ae,xe)=>h(qt,{name:`${k.rowName??`${k.itemsName} row`} ${xe+1}`,...k.rowProps??{},[Vt]:ae})):de.flat()})]})})}let E=y.perRow?.(r),g=y.perRow?Number.isInteger(E)&&E>=1?E:1:0;if(F(y.key,(_.length?y.flat?`each item's parts (${_.length} items), in order`:`one Box per item (${_.length}), its parts inside`:"nothing \u2014 the list is empty")+(g&&_.length?`, in rows of ${g}`:"")),!g)return w.flat();let v=typeof y.rowProps=="function"?y.rowProps(r,t):y.rowProps??{},O=[];for(let k=0;k*g<w.length;k++){let A=w.slice(k*g,(k+1)*g).flat(),M=y.rowFiller?g-w.slice(k*g,(k+1)*g).length:0;O.push(h(qt,{name:`${y.rowName??`${y.name} row`} ${k+1}`,...v,[Vt]:[...A,...Array.from({length:M},(G,$)=>h(qt,{name:`Empty ${$+1}`,...y.rowFiller,[Vt]:[]}))]}))}return O},P=(y,b,F,_)=>{let D=[],w=(g,v)=>F?d(g,v):void 0,E=g=>F?f[g]:void 0;for(let g of y)if(!(g.when&&!g.when(r,F?void 0:b)))switch(g.kind){case"text":{let v=dI(b[g.key]);if(!v.text.trim()&&!(F&&t.press&&o.pressKeepsEmpty?.includes(g.key))){w(g.key,"nothing \u2014 empty words draw nothing, so no block");break}let O=rj(g.role??"body"),{_partStyles:k,...A}=O,M=aj(O,g.styleFrom?{...g.style,...g.styleFrom(r,t)}:g.style,E(g.key),g.props?.align);D.push(h("Text",{text:g.mark==="accentLead"?tj(v.text):g.mark==="accentItalic"?Us(v.text):v.text,...A,...g.props??{},...M,...v.hidden?{_hidden:!0}:{}})),w(g.key,`${_}Text block: its words${v.hidden?", hidden":""}`);break}case"button":{let v=dI(b[g.key]);if(!v.text.trim()){w(g.key,"nothing \u2014 no words, no button"),w(g.href,"nothing \u2014 no button to link"),typeof g.variant=="object"&&w(g.variant.key,"nothing \u2014 no button to style");break}let O=typeof b[g.href]=="string"&&b[g.href]?b[g.href]:"#",k={...g.style??{},...E(g.key)??{}};D.push(h("ButtonBlock",{label:v.text,href:O,...typeof g.props=="function"?g.props(b,t):g.props??{},...nj(g.variant,b),...Object.keys(k).length?{_partStyles:{label:k}}:{},...v.hidden?{_hidden:!0}:{}})),w(g.key,`${_}Button block: its words`),w(g.href,`${_}Button block: its link`),typeof g.variant=="object"&&w(g.variant.key,`${_}Button block: its Style`);break}case"image":{let v=b[g.key];if(typeof v!="string"||!v){w(g.key,"nothing \u2014 no picture, no block"),g.alt&&w(g.alt,"nothing \u2014 no picture to describe");break}let O=g.alt&&typeof b[g.alt]=="string"?b[g.alt]:"";D.push(h("ImageBlock",{src:v,alt:O,...g.props??{}})),w(g.key,`${_}Image block: its picture`),g.alt&&w(g.alt,`${_}Image block: its alt text`);break}case"list":{D.push(...T(g,b,w));break}case"group":{let v=P(g.parts,b,F,_),O=I(g.box,g.props,b,`${g.name} Box`,!v.length&&!g.keepEmpty,_,w);O&&D.push(h(qt,{name:g.name,...O,[Vt]:v}));break}case"block":{let v=g.parts?P(g.parts,b,F,_):[],O=I(g.box,g.props,b,`${g.type} block`,!!g.parts&&!v.length&&!g.keepEmpty,_,w);O&&D.push(h(g.type,{...O,...g.slot?{[g.slot]:v}:{}}));break}case"core":{let v=g.as??e.type,O={...g.headless?{}:{headPlacement:"own-box"},...g.props??{}},k=g.keep==="rest"?Object.keys(b).filter(M=>!m.has(M)&&!(M in O)):g.keep;for(let M of k)b[M]!==void 0&&(O[M]=b[M],w(M,`the ${v} block inside the Box`));if(g.keep==="rest"){for(let G of Object.keys(g.props??{}))b[G]!==void 0&&!m.has(G)&&w(G,`nothing \u2014 the ${v} block inside the Box has the row's own value`);b.headPlacement!==void 0&&w("headPlacement",`the ${v} block inside the Box: own-box`);let M=Object.fromEntries(Object.entries(f).filter(([G])=>!m.has(G)));Object.keys(M).length&&(O._partStyles=M)}for(let[M,G]of Object.entries(g.rename??{}))b[M]!==void 0&&(O[G]=b[M],w(M,`the ${v} block inside the Box: ${G}`));if(g.derive){Object.assign(O,g.derive.props(b,t));for(let M of g.derive.reads)b[M]!==void 0&&w(M,`the ${v} block inside the Box`)}let A=typeof g.slots=="function"?g.slots(b,t):g.slots??{};for(let[M,G]of Object.entries(A))O[M]=G.flatMap($=>"kind"in $?T($,b,w):S([$]));D.push(h(v,O));break}}return D},L=(y,b)=>{let F=b===0?"Box":`${y.name} Box`,_=P(y.parts,r,!0,b===0?"":`${F}: `),D=typeof y.boxProps=="function"?y.boxProps(r,t):y.boxProps??{},w=D1(y.box??[],D,r,(E,g,v)=>d(E,v?`nothing \u2014 the old value draws nothing (${F}: no ${g})`:`${F}: ${g}`),t);return{type:qt,props:{name:y.name,...w,[Vt]:_,id:ZU(n,b)}}},C=[o,...o.also??[]].map(L);r._partStyles!==void 0&&d("_partStyles","each old part's style moved to its new part");for(let[y,b]of Object.entries(o.reads??{}))r[y]!==void 0&&d(y,b);for(let[y,b]of Object.entries(o.drop??{}))y in r&&(l.push({key:y,why:b}),i.add(y));for(let y of Object.keys(r))N1.has(y)||i.has(y)||l.push({key:y,why:"not in the row \u2014 not carried"});return{node:C[0],nodes:C,carried:s,dropped:l,siteWrites:[...o.site?.(e,t)??[]]}}function H1(e,o=ri,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(Lr,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 W1(e,o=ri,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(Lr,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 cj,BLOCK_SIZE_KEYS as pj,parseBlockWidthFit as fp,phoneKey as $1,parseTextFit as dp,tabletKey as z1,viewKeyAt as U1}from"efficient-easel/draw";import{sideLengthAt as uj}from"efficient-easel/screen/lib/content/length-units";var mj="sf-block-size",ai=["width","minWidth","maxWidth"],cp=e=>`${e}Unit`,Nr=e=>typeof e=="number"&&Number.isFinite(e)&&e>=0?e:void 0,xj={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"}},q1={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"}},hj={desktop:q1.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"}},Ij={two:{desktop:"view-wide:[.flex-row>*>&]:grow"},three:{desktop:"view-desktop:[.flex-row>*>&]:grow",tablet:"view-wide:max-view-desktop:[.flex-row>*>&]:grow"}},V1="max-view-wide:grow!";function Y1(e){return pp(e).mode.phone==="fill"}var gj={desktop:"--sf-bw",tablet:"--sf-bw-t",phone:"--sf-bw-p"},yj={fill:"data-sf-width-fill",fixed:"data-sf-width-fixed"},Sj="data-sf-min-width",j1={two:{desktop:"wide",phone:mx.phone},three:mx},bj={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)]"]}},wj={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",...ai],G1={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!"},kj={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!"},X1={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"},vj={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:X1.phone},J1={desktop:"view-wide:max-w-full",phone:"max-view-wide:max-w-full"},K1={desktop:"view-desktop:max-w-full",tablet:"view-wide:max-view-desktop:max-w-full",phone:J1.phone};function Z1(e){let o=pp(e);return o.sides.filter(t=>o.mode[t]==="fill").map(t=>Ij[o.three?"three":"two"][t]).filter(Boolean).join(" ")}function Q1(e){let{three:o,sides:t,mode:r,lengthPerSide:a}=pp(e),n=d=>o?j1.three[d]:j1.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[yj[d]]=s[d].join(" "));return s.min.length&&(i[Sj]=s.min.join(" ")),i}function pp(e){let o=Cj.some(a=>{let n=e[a]?.tablet;return a==="widthFit"?fp(n)!==void 0:Nr(n)!==void 0}),t=o?["desktop","tablet","phone"]:["desktop","phone"],r=(a,n)=>{let s=a(n?.desktop),l=o?a(n?.tablet)??s:s;return{desktop:s,tablet:l,phone:a(n?.phone)??l}};return{three:o,sides:t,perSide:r,lengthPerSide:a=>{let n=cp(a),s={};for(let i of t)s[U1(a,Sn(i))]=Nr(e[a]?.[i]),s[U1(n,Sn(i))]=e.units?.[a]?.[i];let l=i=>uj(s,{length:a},n,Sn(i),"length")??void 0;return{desktop:l("desktop"),tablet:l("tablet"),phone:l("phone")}},mode:r(fp,e.widthFit)}}function uI(e,{atSectionLine:o=!1}={}){let t=["desktop","tablet","phone"].some(v=>dp(e.textFit?.[v])==="ellipsis"),r=o&&!t,a=r?hj:q1,n=r?wj:cI,s=r?kj:pI,l=[],i={},d={},{three:f,sides:m,lengthPerSide:u,mode:h}=pp(e),I=u("width");for(let v of m){let O=h[v];!O||O==="fit"||(l.push(f?a[v][O]:xj[v][O]),O==="fixed"&&(i[gj[v]]=In(I[v]?.value??cj.fallback,I[v]?.unit)))}for(let v of ai.filter(O=>O!=="width")){let O=u(v);for(let k of m){let A=O[k];if(A===void 0)continue;let[M,G]=f?n[v][k]:bj[v][k];i[M]=In(A.value,A.unit),l.push(G)}}let S=dp(e.textFit?.desktop),T=dp(e.textFit?.phone),P=v=>{let O=Nr(e.minFont?.[v]);return O===void 0?void 0:e.units?.minFont?.[v]==="vw"?`${O}vw`:String(O)},L=P("desktop"),C=P("phone"),y=dp(e.textFit?.tablet),b=y!==S||T!==void 0?y:void 0,F=P("tablet"),_=F!==L||C!==void 0?F:void 0,D=Nr(e.maxWidth?.desktop),w=Nr(e.maxWidth?.tablet)??D,E={desktop:D!==void 0,tablet:w!==void 0,phone:(Nr(e.maxWidth?.phone)??w)!==void 0},g=(v,O,k)=>{if(O!=="line"&&O!=="ellipsis")return;let A=v==="tablet"?void 0:v,M=(G,$)=>k||!A?G[v]:$[A];if(O==="line"){l.push(M(s,G1));return}if(l.push(M(pI,G1)),l.push(M(vj,X1)),f&&!k&&v==="desktop")for(let G of["desktop","tablet"])E[G]||l.push(K1[G]);else E[v]||l.push(M(K1,J1))};return b?(g("desktop",S,!0),g("tablet",b,!0),g("phone",T??b,!0)):(g("desktop",S,!1),g("phone",T??S,!1)),S&&(d[dr.fit]=S),b&&(d[dr.fitTablet]=b),T&&(d[dr.fitPhone]=T),L!==void 0&&(d[dr.min]=L),_!==void 0&&(d[dr.minTablet]=_),C!==void 0&&(d[dr.minPhone]=C),!r&&(b||_!==void 0)&&(d[dr.edge]=""),l.length===0&&Object.keys(d).length===0?null:{className:[mj,...l].join(" "),style:i,attrs:d}}function Phe(e){if(Nr(e.maxWidth?.desktop)!==void 0)return!0;let o=fp(e.widthFit?.desktop);return o==="fill"||o==="fixed"}function eA(e){return["desktop","tablet","phone"].some(o=>{let t=fp(e.widthFit?.[o]);return t==="fixed"||t==="fill"||Nr(e.minWidth?.[o])!==void 0})}function up(e){let o={};for(let t of pj){let r=e[t],a=e[z1(t)],n=e[$1(t)];(r!==void 0||a!==void 0||n!==void 0)&&(o[t]={desktop:r,tablet:a,phone:n});let s=cp(t),l={desktop:e[s],tablet:e[z1(s)],phone:e[$1(s)]};(l.desktop!==void 0||l.tablet!==void 0||l.phone!==void 0)&&((o.units??={})[t]=l)}return o}var oA={label:"Button",defaultProps:{label:"",href:"#",variant:"primary",align:"left",contained:!0}};import{parseHexColor as Pj}from"efficient-shell/format";import{convertLength as Tj}from"efficient-easel/screen/lib/content/length-units";import{viewKeyAt as tA}from"efficient-easel/draw";var Yt=(e,o,t,r)=>o===t?e:Tj(e,o,t,r,{min:0,max:200,step:4}),_a={textFit:"line",textFitPhone:"wrap"},Aa={...U,[Xo]:""},{label:aIe,href:nIe,...Oj}=oA.defaultProps,fo=Oj,Fa={buttonFillOpacity:0,buttonBorder:{width:0},buttonPaddingTop:0,buttonPaddingRight:0,buttonPaddingBottom:0,buttonPaddingLeft:0},Y={...Gm,sectionAccent:0},es={sectionAccent:-1},Z=[...wr,"sectionHeightMode","sectionHeightValue","sectionHeightUnit","sectionHeightModeTablet","sectionHeightValueTablet","sectionHeightUnitTablet","sectionHeightModePhone","sectionHeightValuePhone","sectionHeightUnitPhone","sectionCorners","sectionCornerSides","sectionBorder","sectionBorderTablet","sectionBorderPhone","sectionAccent",yk.unitKey,...wk,...hk,"anchor",Qs,...En,Wd,...Vd,...Fc,...qd(["widthFit",...ai,...ai.map(cp)]),...Object.values(Fo)],Qn="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:Qn,fullWidth:Qn,pageWidth:Qn,backgroundWidth:Qn,contentWidth:Qn,contentMax:Qn},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)"])),mp={[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=yr(e.sectionPaddingUnit),l=yr(e.sectionPaddingUnitTablet),i=yr(e.sectionPaddingUnitPhone),d=Array.isArray(e[zt])?e[zt]:[],f=(T,P)=>d.includes(T)?0:P,m=(T,P,L,C,y,b)=>{let F=ye(e[T]);if(F!==void 0)return F+Yt(f(T,b),"px",i,"mobile");let _=C===void 0?{n:y,unit:s,key:L}:{n:C,unit:l,key:P};return Yt(_.n,_.unit,i,"mobile")+Yt(f(_.key,b),"px",i,"mobile")},u=(T,P,L,C,y,b)=>L!==void 0?{[T]:L+Yt(f(T,b??y),"px",l,"tablet")}:b===void 0?{}:{[T]:Yt(C,s,l,"tablet")+Yt(f(P,b),"px",l,"tablet")},h=T=>({desktop:Io[T],tablet:tA(Io[T],"tablet"),phone:tA(Io[T],"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 pt(e,o){let t={};for(let[a,n]of Ix)e[a]!==void 0&&(t[n]=e[a]);let r=tf(e,zn(o));return{...t,sectionPaddingTop:r.top,sectionPaddingBottom:r.bottom}}var Mr=e=>[...Ix.map(([o,t])=>[o,t,(r,a)=>pt(a,e)[t]]),["sectionPaddingTop","sectionPaddingTop",(o,t)=>pt(t,e).sectionPaddingTop],["sectionPaddingBottom","sectionPaddingBottom",(o,t)=>pt(t,e).sectionPaddingBottom]],Ej={kind:"heading-case-upper",styles:["heading-1","heading-2","heading-3"]},sIe=e=>o=>Ne(o.props[e])?[Ej]:[],pe=(e,o)=>({kind:"text",key:e,role:"eyebrow",props:U,...o?{style:o}:{}}),os=e=>({kind:"group",name:"Chip",props:{...R,...or("main"),...Co(6,14)},parts:[pe(e,{color:"background",...H("label",12),weight:600,letterSpacing:.16})]}),rA=e=>e.background!=="transparent",_j=(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},ni={align:"right",alignPhone:"left"},Aj=(e,o,t)=>{let r=a=>_j(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}},si=(e,o,t,r={})=>Aj(e,o,{...Aa,...ni,...r,_partStyles:{text:{...No,color:"labels",...t,case:No.case,...ni}}}),ts=(e,o)=>typeof e=="number"&&Number.isInteger(e)&&e>=0?e:Ta(o)?.selected??0,aA="var(--site-surface-2)",xp=(e,o)=>Ta(o)?.themes[ts(e.sectionAccent??0,o)],Uo=(e,o)=>(t,r)=>{if(!o?.(t,r))return or(e);let a=xp(t,r)?.[e];return a?{fillColor:a}:{}},hp=(e,o)=>Hr(e,o)>=0,nA=e=>e.startsWith("#")&&Pj(e)!==null,Ip=(e,o,t)=>{let r=e?.trim();if(r&&nA(r))return{fillColor:r};let a=Sx(r);if(a)return or(a);let n=r===aA?xp(o,t):void 0;return n?{fillColor:zw(n)}:{}},gp=e=>{let o=e?.trim();return!o||o==="transparent"||o===Gt||Sx(o)||o===aA||nA(o)?void 0:"it paints a colour that no Box Fill can hold"},Hr=(e,o)=>{let t=Ta(o)?.themes;return t&&rA(e)?Uw(t,ts(e.sectionAccent,o)):-1},Wr=(e,o,t)=>{let r=Hr(o,t);return r>=0?r:e},rs=(e,o)=>{let t=Ta(o)?.themes,r=t?jw(t,ts(e,o)):-1;return r>=0?r:e},Ba=(e,o)=>{let t=Hr(e,o);return t>=0?{sectionAccent:t}:{}},$r=(e,o)=>rA(e.props)&&Hr(e.props,o)<0?[{kind:"band-preset",page:ts(e.props.sectionAccent,o)}]:[],as=(e,{view:o="desktop",to:t="px",maxPx:r=1/0}={})=>{let{siteGutter:a,siteGutterUnit:n,siteGutterPhone:s,siteGutterPhoneUnit:l}=e.site??{},i=Sn(o),d=(m,u,h)=>{let I=yr(u),S=Rw(m,I,"spacing",h);return S===null?null:Yt(S,I,"px",i)},f=o==="desktop"?d(a,n,xC)??TC(a):d(s,l,IC)??EC(s)??FC(a,n);return Yt(Math.min(r,f),"px",t,i)},li=Object.fromEntries(["Top","Right","Bottom","Left","TopPhone","RightPhone","BottomPhone","LeftPhone"].map(e=>[`sectionPadding${e}`,0])),ii=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,...li,...Uo("surface")(a,n),...typeof t=="function"?t(a,n):t}),box:[[o,"bgImage"],Ge.kind,Ge.duration,Ge.delay],parts:r});import{phoneKey as OI,readHidable as EI}from"efficient-easel/draw";import{isNodeList as rG,newId as aG}from"efficient-easel/data";function sA(e){return Math.min(4,Math.max(2,e??3))}var fIe={eyebrow:"Label",title:"Section *heading.*"},Fj=pd.Cards,lA={label:"Cards",fields:Fj,defaultProps:{eyebrow:"",title:"",items:[],columns:3}};var uIe={eyebrow:"Highlight",title:"Key *features.*"},mIe=()=>[{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")}],iA={label:"Key Features",defaultProps:{eyebrow:"",title:"",items:[],columns:3}};import{parseOption as Bj}from"efficient-shell/format";var xI="cardPlace",Rj=["","top-line"];function gIe(e){return Bj(Rj,"",e[xI])}var yIe="absolute left-5 top-0 z-10 -translate-y-1/2 bg-bg px-2",SIe="data-sf-top-line",Lj=new Set(["Cards",io]);function bIe(e){return typeof e=="string"&&Lj.has(e)}var Dj=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 wIe(e,o,t){return!t||!o?.linesBetween||o.index!==0?e:Dj(e)?{...e,top:0}:e}var CIe="outsideFramedCard";var yp={sectionBorder:{top:0,right:1,bottom:1,left:0},...or("background")},Nj={gap:0,gapPhone:0,sectionBorder:{top:1,right:0,bottom:0,left:1},shadow:!0},Ra=e=>({direction:"row",columns:e,columnsTablet:e,...Nj}),dA=(e={})=>Fe(Kc,{...U,tag:"p",[xI]:"top-line"},e,!0),ns=(e=ta)=>{let o=fn(e);return{...o,props:{...yp,...o.props},slots:{[Ce]:[...o.slots?.[Ce]??[],dA()]}}},hI=(e=!1)=>{let o=cn(e);return{...o,props:{...yp,...o.props}}},Mj={name:"name",time:"time",note:"note",price:"price"},Hj={textStyle:"body-1",...H("body",16),weight:500,lineHeight:1.5},Wj={...No,...H("label",12),letterSpacing:.18,lineHeight:1.5},$j={textStyle:"body-1",...H("body",14),lineHeight:1.6},zj={textStyle:"body-1",fontRole:"heading",...H("headingSmall",20),weight:500,color:"accent",lineHeight:1.5},Uj={...H("label",11),letterSpacing:.25},jj={gap:16,gapPhone:16,sectionBorder:{top:0,right:0,bottom:0,left:0},shadow:!1},Sp=e=>({direction:"row",columns:e,...jj}),II=[...new Set([...Object.keys(Ra(1)),...Object.keys(Sp(1))])],gI=()=>{let e=Mj,o={tag:"p",widthFit:"fill"};return{type:K,props:{...R,name:"Card",justify:"between",gap:16,gapPhone:16,...Co(24),sectionBorder:{top:1,right:1,bottom:1,left:1},...or("surface"),shadow:!0},slots:{[Ce]:[dA(Uj),{type:K,props:{...R,name:"Words",gap:8,gapPhone:8},slots:{[Ce]:[Fe(e.name,{...U,...o},Hj),Fe(e.time,{...oe,...o},Wj),Fe(e.note,{...oe,...o},$j)]}},Fe(e.price,{...U,...o},zj)]}}};import{tabletKey as uA}from"efficient-easel/draw";import{VIEW_DESKTOP_MIN as bp}from"efficient-easel/draw";var wp=er,yI=bp,fA=960,cA=er,pA={min:wp,max:1600,step:10},Cp="stackBelow";function RIe(e){if(!(typeof e!="number"||!Number.isFinite(e))&&!(e<pA.min||e>pA.max))return Math.round(e)}var Gj=e=>`sf-stack-${e}`,Kj=e=>`sf-stack-${e}-gutter`,qj=e=>`sf-stack-${e}-outer`,ss=e=>`${e-.02}px`;function LIe(e,o={}){let t=o.gutter!==!1,r=`.${Gj(e)}`,a=`.${Kj(e)}`,n=`.${qj(e)}`,s=[];if(e>wp){let l=`${r}>.sf-block-size,${r}>[data-easel-block]>[data-sf-part-host]>.sf-block-size`,i=Math.min(e,bp);s.push(`@media (min-width:${wp}px) and (max-width:${ss(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:${wp}px) and (max-width:${ss(i)}){.sf-gap-zone${r}{gap:var(--sf-gap-len-tablet,var(--sf-gap-len-phone,calc(var(--sf-gap-len) / 2)))}}`),e>bp&&s.push(`@media (min-width:${bp}px) and (max-width:${ss(e)}){.sf-gap-zone${r}{gap:var(--sf-gap-len-phone,calc(var(--sf-gap-len) / 2))}}`)}return t&&s.push(`@media (max-width:${ss(e)}){${a}${a}{padding-inline:${yC.frame}}}`),t&&e<fA&&s.push(`@media (min-width:${e}px) and (max-width:${ss(fA)}){${a}${a}{padding-inline:${gC}}}`),e>cA&&s.push(`@media (min-width:${cA}px) and (max-width:${ss(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 Vj}from"efficient-shell/format";var Yj=["standard","editorial","simple","essay"];function La(e){if(e==="ProductGrid")return"shelf";let o=z(kt,e)?.headStyle;return Vj(Yj,"standard",o)}var di={standard:64,editorial:60,simple:36,essay:28,shelf:20},Xj={SectionHeader:"accent",FAQ:"accent",FitmentFinder:"accent",FitmentTable:"accent",SpecTable:"accent",RelatedProducts:"accent",Collections:"accentNum"};function Jj(e){if(e==="SectionHeader")return{num:"num",title:"title",description:"description",link:!0};let o=z(kt,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 vp(e,o,t){let r=`editorial:${e}|${o}|${t}`,a=kp.get(r);if(a)return a;let n=IA({num:e,title:o,description:t,link:!1});return kp.set(r,n),n}var jo={[Cp]:yI},bI={top:0,right:0,bottom:1,left:0},Go=(e,o,t,r)=>({sizeToken:{step:e,px:r,fluid:{minPx:o,vw:t}}}),Pp=(e,o,t={})=>pe(e,{...H("label",o),...t}),Tp=(e,o)=>({kind:"text",key:e,role:"heading",props:U,style:{textStyle:"heading-2",...o}}),wI=er,Zj=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}}),hA={...fo,align:"right",alignPhone:"left",...Fa},SI=e=>({kind:"button",key:"linkText",href:"linkHref",variant:"ghost",props:hA,style:{...Ct(e),color:"labels"}}),mA=(e,o,t)=>{let r=t.role==="heading"?{tag:"h2"}:{};return{kind:"block",type:"Text",when:a=>a[e]===void 0,props:{...U,...r,...t.props,text:o,_partStyles:{text:{...t.role==="eyebrow"?Qj(tr()):{},...t.style}}}}},Qj=e=>e._partStyles.text??{},ls={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),...ls}):{...o,...ls}}}return{...e,parts:e.parts.map(kI)}}function eG(e,o){let t=z(Xj,e),r=t==="accent",a=Pp(o.num,14,{color:r?"accent":"labels"}),n=t==="accentNum"&&a.kind==="text"?{...a,mark:"accentLead"}:a,s=Tp(o.title,r?{...Go("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,...ls,direction:"row",align:"end",gap:40,gapPhone:12,share:"content"},parts:[{kind:"group",name:"Number",props:{...R,...ls,align:"start",gap:12},parts:[{kind:"image",key:"logoSrc",alt:"logoAlt",props:{aspect:"auto",contained:!1}},n,...l?[mA(o.num,"==01== / Collections",n)]:[]]},{kind:"group",name:"Heading",props:{...R,...ls},parts:[s,...l?[mA(o.title,`Three ranges,
|
|
320
|
+
one standard.`,s)]:[]]}]},{kind:"group",name:"Words",props:{...R,...ls,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:{...hA,variant:"ghost",label:"View all",href:"/wheels",_partStyles:{label:SI(14).style}}}]:[]]}]}}function Op(e,o){return e.kind==="text"?o.includes(e.key)?{...e,mark:"accentItalic"}:e:e.kind==="group"?{...e,parts:e.parts.map(t=>Op(t,o))}:e}function IA(e){let o=Tp(e.title,{...Go("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,...jo},parts:[{kind:"group",name:"Title",props:{...R,direction:"row",align:"end",gap:40,gapPhone:14,share:"content",...jo},parts:[{kind:"group",name:"Number",props:{...R,sectionPaddingBottom:8},parts:[{...Pp(e.num,13),props:{...U,..._a}}]},Op(o,[e.title])]},{kind:"group",name:"Words",props:{...R,sectionPaddingBottom:4,maxWidth:360,[uA("maxWidth")]:Zj,maxWidthPhone:wI},parts:e.description?[CI(e.description,14,void 0,{lineHeight:1.5},{[uA("align")]:"left"})]:[]}]}}function xA(e,o){return{kind:"group",name:"Header",props:{...R,gap:16,gapPhone:16},parts:[Pp(e.num,13),Tp(e.title,o)]}}var gA=[["para",{...Ct(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}]],oG=e=>gA.some(([o])=>o===e.titleSize)?e.titleSize:"lg";function tG(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:[Pp(e.num,13,{color:"labels",letterSpacing:.22,lineHeight:1}),...gA.map(([o,t])=>({...Tp(e.title,t),when:r=>oG(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 Ep(e){return La(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 kp=new Map,vI={...H("headingMedium",44,32),case:"upper",weight:500,lineHeight:1,letterSpacing:-.02};function ut(e){let o=kp.get(e);if(o)return o;let t=Jj(e),r=La(e),a=r==="editorial"?IA(t):r==="simple"?xA(t,vI):r==="essay"?xA(t,{...H("headingMedium",38,28,"headingSmall"),case:"upper",lineHeight:1,letterSpacing:-.02}):r==="shelf"?tG(t):eG(e,t);return kp.set(e,a),a}var Da={Series:"transparent",StatsParagraph:"transparent",TimelineTrack:Gt,Stats:void 0};var fi=(e,o,t,r)=>({sectionBorder:{top:e,right:o,bottom:t,left:r}}),TA=e=>o=>sA(ye(o.columns)??ye(e.columns)),nG="inline is the head the row draws; an own-box node is skipped (`skip`)",sG={kind:"text",key:"title",role:"heading",props:U,style:{textStyle:"heading-3",...vI}},Ap=e=>{let o=da(typeof e.background=="string"?e.background:void 0,Da.Series);return o&&o!=="transparent"?o:void 0},_p=e=>Ap(e)===Gt,lG={...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},yA={...R,direction:"row",justify:"between",gap:12,share:"content",phoneRow:2,[OI("share")]:"content"},iG=e=>{let o=Ap(e)?1:2;return{...R,direction:"row",columns:4,columnsTablet:2,gap:o,gapPhone:o}},PI={...Ct(12),letterSpacing:.22,lineHeight:1.5},SA=e=>Ne(e.viewLabel)&&!EI(e.viewLabel).hidden,mt=e=>EI(e).text?.trim?.()??"",Fp=e=>Object.fromEntries(Object.entries(e).filter(([,o])=>ho(o)!==void 0)),_I=e=>e.map(([o,t,r])=>({key:o,label:t,...r?{multiline:!0}:{}})),dG=_I([["num","Number"],["since","Corner note"],["title","Card title"],["body","Card body",!0],["count","Count"],["countLabel","Count word"]]),fG=_I([["label","Label"],["value","Value"],["body","Card body",!0]]),ci=(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=>Dd(r(l),t)},slots:(l,i)=>({[Pe]:[a(l,i)]})}]}),OA=e=>Array.isArray(e.cards)?e.cards:[],EA=e=>(Array.isArray(e.items)?e.items:[]).map(o=>Fp({title:mt(o?.label),href:typeof o?.href=="string"?o.href.trim():""})).filter(o=>o.title!==void 0).map((o,t)=>({key:Vs(Qm(o),t),...o})),cG=e=>EA(e).some(o=>ho(o.href)!==void 0),_A=[{key:qm.label,label:"Feature label"},{key:qm.href,label:"Link",kind:"link"}],bA=e=>NO(e.eyebrowLook,"KeyFeatures")==="filled",pG={name:"Key Features",boxProps:(e,o)=>({...Y,direction:"column",gap:44,gapPhone:32,...Uo("surface")(e,o),...fi(1,0,1,0),...re(e,yc)}),box:[...Z,...ce(yc)],parts:[{kind:"group",name:"Heading",props:{...R,direction:"row",align:"end",gap:20,wrap:!0,share:"content",phoneRow:2,[OI("share")]:"content"},parts:[{...os("eyebrow"),when:bA},{...pe("eyebrow"),when:e=>!bA(e)},sG]},ci("Cards",e=>({...R,...Ra(TA(iA.defaultProps)(e))}),_A,EA,e=>hI(cG(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"}},wA=(e,o)=>({...yp,...Uo("background")(e,o)}),CA=e=>{let o=TA(lA.defaultProps)(e);return{...R,...Ra(o)}},uG=_I([["title","Card title"],["body","Card body",!0]]),AA=e=>(Array.isArray(e.items)?e.items:[]).map((o,t)=>({key:typeof o?.key=="string"&&o.key?o.key:Vs(Qm(o),t),title:mt(o?.title),body:mt(o?.body)})),FA=e=>{let o={},t={};for(let[r,a]of Object.entries(e.props??{}))r!=="id"&&(rG(a)?t[r]=a.map(FA):o[r]=a);return{type:String(e.type),props:o,...Object.keys(t).length?{slots:t}:{}}},kA=(e,o)=>{let t=TI(e)?hI(mG(e)):ns(),r=Array.isArray(e.template)?e.template.map(FA):[t],[a]=r;return r.length===1&&a.type===K?{...a,props:{...wA(e,o),...a.props}}:{type:K,props:{...R,...wA(e,o),name:"Card"},slots:{[Ce]:r}}},TI=e=>e.cardStyle==="label-only",BA=e=>AA(e).map((o,t)=>{let r=e.items[t]?.href;return Fp({key:o.key,title:o.title,href:typeof r=="string"?r.trim():""})}),mG=e=>BA(e).some(o=>ho(o.href)!==void 0),vA=e=>Array.isArray(e.template)&&e.template.length===0,PA=["dataSource","dataSourceOptions","highlightedCard","highlightBadge"];function RA(){let e=t=>({key:aG("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 xG={name:"Cards",ownBoxConverts:!0,boxProps:(e,o)=>({...Y,direction:"column",gap:36,gapPhone:28,...Uo("surface")(e,o),...re(e,dc)}),box:[...Z,...ce(dc)],parts:[{...ut("Cards"),when:e=>!fI(e)},{...ci("Cards",CA,uG,AA,kA,{reads:["items"],keep:PA}),when:e=>!vA(e)&&!TI(e)},{...ci("Cards",CA,_A,BA,kA,{reads:["items"],keep:PA}),when:e=>!vA(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)"}},hG={name:"Recurring Columns",boxProps:(e,o)=>({...Y,direction:"column",gap:60,gapPhone:60,...fi(0,0,1,0),...jo,..._p(e)?Ba(e,o):{},...Ip(Ap(e),e,o),...re(e,wc)}),box:[...Z.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,t)=>_p(o)?Wr(e,o,t):e],...ce(wc)],skip:e=>gp(Ap(e)),site:(e,o)=>_p(e.props)?$r(e,o):[],parts:[ut("Series"),ci("Cards",iG,dG,e=>OA(e).map(o=>Fp({num:mt(o.num),since:mt(o.since),title:mt(o.title),body:mt(o.desc),count:mt(o.entries),countLabel:mt(o.entriesLabel)})),(e,o)=>({type:K,props:{...lG,...Uo("background",(t,r)=>_p(t)&&hp(t,r))(e,o),name:"Card"},slots:{[Ce]:[{type:K,props:{...R,name:"Words",gap:16,gapPhone:16},slots:{[Ce]:[{type:K,props:{...yA,name:"Top"},slots:{[Ce]:[Fe("num",U,H("label",13),!0),Fe("since",U,H("label",13),!0)]}},Fe("title",{...U,tag:"h3"},{textStyle:"heading-3",...H("headingSmall",28),weight:500,case:"upper",lineHeight:1.04,letterSpacing:-.02}),Fe("body",oe,{textStyle:"body-5",fontRole:"heading",...H("body",14),lineHeight:1.6})]}},{type:K,props:{...yA,name:"Footer",align:"center",gap:0,gapPhone:0,sectionPaddingTop:16,sectionPaddingTopPhone:16,...fi(1,0,0,0),...SA(e)?{}:{[an]:["count","countLabel"]}},slots:{[Ce]:[{type:K,props:{...R,name:"Count",direction:"row",align:"center",gap:12,gapPhone:12,share:"content",phoneRow:2,[OI("share")]:"content"},slots:{[Ce]:[Fe("count",U,PI),Fe("countLabel",oe,PI)]}},...SA(e)?[{type:K,props:{...R,name:"View",maxWidthPhone:266},slots:{[Ce]:[{type:"Text",props:{...U,text:EI(e.viewLabel).text,_partStyles:{text:{...tr()._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:nG}},IG={...R,direction:"row",columns:3,gap:40,gapPhone:16},gG={...R,gap:8,gapPhone:8,...Co(24),...fi(1,1,1,1)},yG={name:"Document Detail Cards",boxProps:e=>({...Y,direction:"column",gap:40,gapPhone:16,...fi(0,0,1,0),...re(e,hc)}),box:[...Z,...ce(hc)],parts:[ci("Cards",IG,fG,e=>OA(e).map(o=>Fp({label:mt(o.label),value:mt(o.value),body:mt(o.desc)})),(e,o)=>({type:K,props:{...gG,...Uo("surface")(e,o),name:"Card"},slots:{[Ce]:[Fe("label",U,{...H("label",12),lineHeight:1.5},!0),{type:K,props:{...R,name:"Words",gap:14,gapPhone:14},slots:{[Ce]:[Fe("value",U,{textStyle:"heading-3",...H("headingSmall",20),weight:500,letterSpacing:-.015,lineHeight:1.5}),Fe("body",oe,{textStyle:"body-5",fontRole:"accent",...H("body",14),italic:!0,lineHeight:1.5})]}}]}}))],drop:{...X,...te}},LA={Cards:xG,KeyFeatures:pG,Series:hG,DocMetaCards:yG};import{SITE_SIDE as SR}from"efficient-easel/screen/lib/content/length-units";import{phoneKey as CG}from"efficient-easel/draw";import{newId as kG}from"efficient-easel/data";import{phoneKey as SG}from"efficient-easel/draw";import{isNode as pi}from"efficient-easel/data";var is="cardStyle";function DA(e){let{widthPhone:o,...t}=e;return e.widthFitPhone==="fixed"?{...t,widthFitPhone:"fill"}:{...e}}var Bp={table:{items:{gap:0,gapPhone:0,columnsTablet:2},grid:{gap:0},row:{gap:0,[SG("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}}}},xt={table:{...Bp.table,listCard:DA(Bp.table.card)},list:{...Bp.list,listCard:DA(Bp.list.card)}},bge=[{label:"Table",value:"table"},{label:"List",value:"list"}],wge=e=>e==="table"||e==="list",bG=e=>[...new Set([...Object.keys(xt.table[e]),...Object.keys(xt.list[e])])];function ui(e,o,t){let r={...e};for(let a of bG(o))delete r[a];return{...r,...structuredClone(xt[t][o])}}function wG(e,o,t){let r=e.props??{},a=Array.isArray(r[Pe])?r[Pe]:[],n=a.findIndex(i=>pi(i)&&i.type===t);if(n<0)return e;let s=a[n],l=a.map((i,d)=>d===n?{...s,props:ui(s.props??{},"listCard",o)}:i);return{...e,props:{...r,[Pe]:l}}}function Cge(e,o,t,r){let a=Array.isArray(e[r])?e[r]:[];if(a.some(s=>pi(s)&&s.type===io)){let s=a.map(l=>pi(l)&&l.type===io?wG(l,o,t):l);return{...ui(e,"items",o),[is]:o,[r]:s}}let n=a.map(s=>{if(!pi(s)||s.type!==t)return s;let l=s.props??{},i=(Array.isArray(l[r])?l[r]:[]).map(d=>pi(d)&&d.type===t?{...d,props:ui(d.props??{},"card",o)}:d);return{...s,props:{...ui(l,"row",o),[r]:i}}});return{...ui(e,"grid",o),[is]:o,[r]:n}}var AI=e=>typeof e=="string"?e.trim():"";function NA(e){let o=`${AI(e.prefix)}${AI(e.value)}`,t=AI(e.suffix);return e.emphasizeAll===!0?o?`==_${o}_==`:"":`${o}${t?`==_${t}_==`:""}`}var HA={textStyle:"heading-2",...Go("headingMedium",56,7,96),weight:500,case:"none",lineHeight:.9,letterSpacing:-.04},FI={kind:"block",type:"Text",props:{...Aa,_partStyles:{text:HA}},box:[["value","text",(e,o)=>NA(o)]],when:(e,o)=>o!==void 0&&typeof o.value=="string"&&NA(o)!==""},MA=e=>Ne(e?.supSuffix),WA={textStyle:"body-1",fontRole:"heading",...H("body",16),lineHeight:1.5,letterSpacing:-.01},$A={color:"labels",...H("label",12),lineHeight:1.5,letterSpacing:.24},zA={...R,direction:"row",align:"start",gap:32,gapPhone:32,share:"content",phoneRow:2,[CG("share")]:"content"},UA={textStyle:"body-5",...H("label",13),weight:500,color:"accent",letterSpacing:.18,lineHeight:1,padding:12},BI=e=>da(e.background,Da.StatsParagraph),mi=e=>BI(e)===Gt,Rp=e=>({...e,sectionAccent:e.sectionAccent??0}),vG=(e,o)=>mi(e)?Uo("background",(t,r)=>hp(Rp(t),r))(e,o):{},PG={name:"Stats with Text",skip:e=>BI(e)&&BI(e)!=="transparent"&&!mi(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},...jo,...pt(e,"StatsParagraph"),...mi(e)?Ba(Rp(e),o):{}}),box:[...Z.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,t)=>mi(o)?Wr(e,Rp(o),t):e],...Mr("StatsParagraph")],site:(e,o)=>mi(e.props)?$r({props:Rp(e.props)},o):[],parts:[ut("StatsParagraph"),{kind:"group",name:"Stats",props:{...R,...xt.table.grid,[is]:"table"},parts:[{kind:"list",key:"stats",name:"Stat",perRow:()=>4,rowName:"Stats row",rowProps:{...R,direction:"row",share:"equal",phoneRow:2,...xt.table.row},props:(e,o)=>({...R,...xt.table.card,...vG(e,o)}),parts:[{...FI,when:(e,o)=>!MA(o)&&FI.when(e,o)},{kind:"group",name:"Figure",props:zA,when:(e,o)=>MA(o),parts:[FI,{kind:"text",key:"supSuffix",props:U,style:UA}]},{kind:"group",name:"Words",props:{...R,gap:4,gapPhone:4},parts:[{kind:"text",key:"label",props:U,style:WA},pe("sub",$A)]}]}]}],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"}},TG=new Set(["value","label",Xo]),OG=e=>{let o=da(typeof e.background=="string"?e.background:void 0,Da.Stats);return!!o&&o!=="transparent"},EG={name:"Stats",skip:e=>OG(e)?"it paints a colour inside its padding, and a Box paints its Fill over the padding too":Ne(e.dataSource)?"its figures come from a source":Array.isArray(e.items)&&e.items.some(o=>Ne(o?.[Xo]))?"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=>!TG.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,Cc)}),box:[...Z,...ce(Cc)],parts:[pe("heading",{color:"labels",...H("label",12),letterSpacing:.2}),{kind:"group",name:"Stats",props:{...R,...xt.list.grid,[is]:"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,...xt.list.row},props:{...R,...xt.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"}},jA={StatsParagraph:PG,Stats:EG};function GA(){return{eyebrow:c("By the numbers"),title:c("What we count."),desc:c("A few numbers that matter to us."),stats:[],background:"transparent"}}var _G=[{key:"figure",label:"Figure"},{key:"superscript",label:"Superscript"},{key:"label",label:"Label"},{key:"body",label:"Text",multiline:!0}];function KA(){let e=(o,t,r,a="")=>({key:kG("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 AG(e){return{type:K,props:{...R,name:"Card",...structuredClone(xt[e].listCard)},slots:{[Ce]:[{type:K,props:{...zA,name:"Figure"},slots:{[Ce]:[Fe("figure",Aa,HA),Fe("superscript",U,UA)]}},{type:K,props:{...R,name:"Words",gap:4,gapPhone:4},slots:{[Ce]:[Fe("label",{...U,widthFit:"fill"},WA),Fe("body",{...U,widthFit:"fill"},$A,!0)]}}]}}}function RI(e,o,t=4){return{type:K,props:{...R,name:"Stats",direction:"row",columns:t,...structuredClone(xt[o].items),[is]:o},slots:{[Ce]:[{type:io,props:Dd(e,_G),slots:{[Pe]:[AG(o)]}}]}}}var qA={heading:"Ways to pay"},VA=()=>[{label:"Visa"},{label:"Mastercard"},{label:"Amex"},{label:"PayPal"}],YA=()=>[{text:c("Secure encrypted checkout")},{text:c("30-day returns")}],zge={label:"Payment Methods",drawsPictures:!0,defaultProps:{heading:"",badges:[],assurances:[],contained:!0}};import{hiddenKeyOf as FG}from"efficient-easel/screen/lib/content/view-hide";import{parseOption as JA}from"efficient-shell/format";var Lp="Flex",BG={FooterMenu:"MenuBlock",FooterEmailSignup:"EmailFormBlock",FooterSocial:"SocialLogosBlock"},RG={FooterPayment:"PaymentLogosBlock"},LG=e=>{let{id:o,...t}=e;return t},XA=e=>typeof e=="string"?e:"",ds={sm:12,md:13,lg:15},ZA={sm:{mark:16,words:ds.sm},md:{mark:20,words:ds.md}},DG="md",QA=1.5,NG={size:13,lineHeight:QA,width:280},MG=14,HG=40,WG=e=>JA(["left","center","right"],"left",e);function $G(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 zG(e,o,t){let r=t(e,LG(o));if(Array.isArray(o.template))return{...r,props:{...r.props,template:eF(o.template,String(r.props.id))}};if(o.template!==void 0)return r;let a=Ed(e,r.props);return a===r.props?r:{...r,props:a}}function eF(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]=eF(a[n],o,t);return{...r,props:a}})}function oF(e,o,t){let r=e.props??{},a=t?.(e,o);if(a)return a;let n=z(BG,e.type)??z(RG,e.type);if(n)return[zG(n,r,o)];switch(e.type){case"FooterLogo":{let s=WG(r.align),l=o("LogoBlock",{...r.reverse?{reverse:r.reverse}:{},...typeof r.customColor=="string"&&r.customColor?{customColor:r.customColor}:{},heightPx:Math.round(rP*((ye(r.widthPct)??100)/100)),href:"/",align:s,...$G(r)}),i=XA(r.tagline).trim();return i?[l,o("Text",{text:i,tone:"dim",align:s,_partStyles:{text:{...NG}}})]:[l]}case"FooterText":{let s=typeof r.size=="string"&&Qe(ds,r.size)?r.size:DG;return[o("Text",{text:XA(r.text),tone:typeof r.tone=="string"?r.tone:"default",_partStyles:{text:{size:ds[s],lineHeight:QA}}})]}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?{[FG("mobile")]:!0}:{}})]}case"FooterGroup":{let s=Array.isArray(r.blocks)?r.blocks:[];return[o(Lp,{direction:r.direction==="horizontal"?"row":"column",gap:aP("FooterGroup",r.gap),align:JA(["start","center","end","stretch"],"start",r.align),...zm,content:s.flatMap(l=>oF(l,o,t))})]}default:return[]}}function xi(e,o,t,r){let a=e&&Array.isArray(e.props?.blocks)?e.props.blocks:[],n=f=>o(Lp,{direction:"row",wrap:!0,share:"equal",gap:HG,content:f}),s=[],l=[];for(let f of a){let m=oF(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(Lp,{direction:"column",gap:MG,align:"stretch",...zm,content:m}))}(l.length||!s.length)&&s.push(n(l));let i=o(Lp,{direction:"column",content:[o("LegalLineBlock")]}),d=fP(ao,t,[...s,i]);return{...d,props:{...d.props,...e?.props?.width==="full"?{fullWidth:!0}:{}}}}import{phoneKey as LI,readHidable as UG}from"efficient-easel/draw";import{parseOption as jG}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)=>Ne(r?.src)||Ne(r?.[o])}]}]}),GG={...pe("heading",{color:"labels",letterSpacing:.2}),props:{...U,align:"center"}},KG={name:"Logos",boxProps:e=>({...Y,direction:"column",gap:32,...re(e,_l(e))}),box:[...Z,...ce(_l),["bandPadding","sectionPaddingTop",(e,o)=>re(o,_l(o)).sectionPaddingTop]],parts:[GG,{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"}},qG={kind:"group",name:"Mark",keepEmpty:!0,parts:[],props:sw(4,"main",{sectionCorners:2})},VG={name:"Payment Methods",boxProps:e=>({...Y,direction:"column",...re(e,pc)}),box:[...Z,...ce(pc)],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,Qt],props:e=>Ne(e[lo])?{[lo]:e[lo],...e[Qt]!==void 0?{[Qt]:e[Qt]}:{}}:{}},props:{...DI,look:"cards",grayscale:!1},slots:e=>({...NI("badges","label"),...Ne(e[lo])?{[Pe]:[Ym()]}:{}})},{kind:"group",name:"Reassurance",props:{...R,direction:"row",wrap:!0,justify:"center",gap:24,gapPhone:24,phoneRow:2,[LI("share")]:"content"},parts:[{kind:"list",key:"assurances",name:"Line",of:e=>(Array.isArray(e.assurances)?e.assurances:[]).filter(o=>Ne(o?.text)),props:{...R,direction:"row",align:"center",gap:8,gapPhone:8,phoneRow:2,[LI("share")]:"content"},item:e=>UG(e.text).hidden?{props:{_hidden:!0}}:{},parts:[qG,{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`)"}},tF=e=>Qb(e.align)??"left",rF=e=>jG(["sm","md"],"sm",e.size),aF=12,nF={name:"Payment logos",boxProps:e=>({...R,direction:"row",wrap:!0,align:"center",justify:wd[tF(e)],gap:aF,gapPhone:aF,phoneRow:2,[LI("share")]:"content"}),box:[...wr],parts:[{kind:"text",key:"lead",props:oe,styleFrom:e=>({size:ds[rF(e)],lineHeight:1.5})},{kind:"core",keep:[],as:"Logos",derive:{reads:[lo,Qt],props:e=>({logoHeight:ZA[rF(e)].mark,align:tF(e),...Ne(e[lo])?{[lo]:e[lo],...e[Qt]!==void 0?{[Qt]:e[Qt]}:{}}:{}})},props:{...DI,look:"marks",grayscale:!1,sectionAccent:Sr},slots:e=>({...NI("methods","label"),...Ne(e[lo])?{[Pe]:[Ym()]}:{}})}],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"}},sF={Logos:KG,PaymentBadges:VG,FooterPayment:nF,PaymentLogosBlock:nF},lF=()=>({heading:jE.heading,items:qc()}),iF=()=>({heading:qA.heading,badges:VA(),assurances:YA()}),dF=()=>({...yf,methods:[]});import{mixHex as QG}from"efficient-shell/format";import{MOTION_EASING as YG,MOTION_TIMING as fF,motionSeconds as cF,parseOption as pF}from"efficient-shell/format";var MI="none",Dp=[{label:"None",value:"none"},{label:"Marquee",value:"scroll"}];function yye(e){return pF(Dp,MI,e)}var fs="_gLoop",hi={field:"loop",is:"scroll"},Ii="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"}],XG={left:"storefront-ticker",right:"storefront-ticker-right",up:"storefront-ticker-up",down:"storefront-ticker-down"};function uF(e){return pF(HI,Ii,e)}function mF(e){return e==="up"||e==="down"}function Np(e){return cF("loop","duration",e.loopDuration!=null?e.loopDuration:e.speed)}var Sye=fF.loop.duration.default,JG=fF.loop.delay.default;function xF(e){return cF("loop","delay",e.loopDelay)}function bye(e,o,t=JG){return`${XG[e]} ${o}s ${YG.loop}${t?` ${t}s`:""} infinite`}var Mp="_gEntrance";var vye="none",Pye=[{label:"Nothing",value:"none"},{label:"Section above",value:"above"},{label:"Section below",value:"below"}];function Hp(e){return e==="above"||e==="below"?e:null}var hF="sf-ticker-join";function ZG(e){return e==="above"?"sf-ticker-join-above":"sf-ticker-join-below"}function IF(e){return`absolute inset-x-0 ${ZG(e)}`}var gF=e=>e.size==="display",e8=(e,o)=>{let t=xp(e,o),r=e.tone!=="plain"&&t?.text&&t.background?QG(t.text,t.background,.3):null;return r?{color:r}:{}},o8=(e,o)=>e.tone!=="plain"&&sx(e.sectionAccent)===null?Uo("background")(e,o):{},yF=(e,o)=>({kind:"list",key:"items",name:"Item",flat:!0,when:o,parts:[{kind:"text",key:"text",props:oe,style:e,styleFrom:e8}]}),t8={name:"Scrolling Bar",boxProps:(e,o)=>({...Y,...ma,...sc,...tw[$m(e.separator)]===""?cO:{},...re(e,xa),...o8(e,o)}),box:[["scrollDirection","scrollDirection",e=>uF(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=>$m(e)],["join","join",e=>Hp(e)??void 0],["borders","sectionBorder",e=>e===!1?void 0:{top:1,bottom:1}],...Z,["tone","sectionAccent",(e,o)=>sx(o.sectionAccent)??Sr],...ce(xa)],parts:[yF(lc,e=>!gF(e)),yF(pO,gF)],drop:{...X,...te,size:"each item's Text style: Small \u2192 Body 5, Display \u2192 Heading 3"}},SF=e=>e?.tone==="muted",bF=e=>Nd(Ta(e)),r8={name:"Spec Strip",boxProps:(e,o)=>({...Y,...ma,...vl,...e.fill==="none"?{sectionBorder:{top:1}}:{sectionAccent:bF(o)},...re(e,ha)}),box:[...Z.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,t)=>o.fill==="none"?e:bF(t)],...ce(ha)],parts:[{kind:"list",key:"cells",name:"Cell",flat:!0,parts:[{kind:"text",key:"text",props:U,style:Pl,when:(e,o)=>!SF(o)},{kind:"text",key:"text",props:oe,style:Pl,when:(e,o)=>SF(o)}]}],drop:{...X,...te,...mp,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"}},wF={Ticker:t8,SpecStrip:r8};import{tabletKey as CF}from"efficient-easel/screen/lib/content/view-tiers";var kF={direction:"column",justify:"between",gap:14,gapPhone:14,sectionPaddingLeft:14,sectionPaddingRight:14,[CF("sectionPaddingLeft")]:0,sectionPaddingLeftPhone:0,sectionHeightMode:"fixed",sectionHeightValue:280,sectionHeightUnit:"px",[CF("sectionHeightMode")]:"auto",sectionHeightModePhone:"auto"},WI={name:"Year and title",direction:"column",gap:14,gapPhone:14};import{tabletKey as a8}from"efficient-easel/draw";var Wp={eyebrow:Te.eyebrow,title:`Section heading
|
|
321
|
+
*Highlight line*`,intro:Te.body,imageCaption:Te.imageCaption,imageMeta:Te.imageMeta,cta:Ue.text},vF=()=>[{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.")}],zye={label:"Story Timeline",drawsPictures:!0,defaultProps:{layout:"split",eyebrow:"",title:"",intro:"",imageSrc:"",imageCaption:"",imageMeta:"",ctaText:"",ctaHref:"",entries:[],padTop:120,padBottom:120}};var $p={eyebrow:Te.eyebrow,title:Te.headingAccent,intro:Te.body,cta:Ue.text},PF=()=>[{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}],qye={label:"Milestone Timeline",defaultProps:{eyebrow:"",title:"",intro:"",entries:[],ctaText:"",ctaHref:"",background:Jv,padTop:120,padBottom:120}};var FF={buttonBorder:{width:0}},jp=(e,o,t={})=>({textStyle:"body-5",...H("label",e),letterSpacing:o,lineHeight:1.5,weight:400,...t}),cs=(e,o,t={})=>({...jp(e,o),...No,...t}),Gp=(e,o,t)=>({...e,case:"upper",weight:500,letterSpacing:o,lineHeight:t}),gi=(e,o,t={})=>({textStyle:"body-1",fontRole:"heading",...e,weight:400,case:"none",lineHeight:o,...t}),ht=(e,o,t={})=>({kind:"text",key:e,props:U,style:o,...t}),TF=(e,o)=>o?.future===!0,zp=e=>fE(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"},n8={name:"Milestone Timeline",skip:e=>gp(GI(e)),boxProps:(e,o)=>{let t=Hr($I(e),o);return{...Y,direction:"column",gap:60,[a8("gap")]:36,gapPhone:36,sectionBorder:{bottom:1},...jo,...pt(e,"TimelineTrack"),...Ip(GI(e),e,o),...t>=0?{sectionAccent:t}:{}}},box:[...Z.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,t)=>Wr(e,$I(o),t)],...Mr("TimelineTrack")],parts:[kI(Op(vp("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,...jo},parts:[{kind:"list",key:"entries",name:"Year",props:{...R,...kF},item:e=>({props:e.future===!0?{upcoming:!0}:{}}),parts:[{kind:"group",name:WI.name,props:{...R,...WI},parts:[ht("date",jp(13,.22,{color:"accent"}),{when:(e,o)=>!TF(e,o)}),ht("date",jp(13,.22,{color:"labels"}),{when:TF}),ht("title",{textStyle:"heading-3",...Gp(H("headingSmall",20),-.02,1.1)},{role:"heading"})]},ht("blurb",gi(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",...FF},style:cs(13,.3)}]}]}],site:(e,o)=>$r({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",Up=e=>qI(e)==="split",KI=e=>!Up(e),BF=e=>qI(e)==="spine",s8=e=>KI(e)&&!BF(e),OF=(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:[ht("imageCaption",cs(11,.24,{color:"text"})),ht("imageMeta",cs(11,.24,{color:"accent"}),{props:{...U,align:"right"}})]}]}),EF=(e={})=>({kind:"button",key:"ctaText",href:"ctaHref",variant:"ghost",props:{...fo,...e,...FF},style:cs(13,.3)}),zI=()=>[ht("title",{textStyle:"heading-3",...Gp(H("headingSmall",24,20),-.02,1.5)},{role:"heading",mark:"accentItalic"}),{kind:"block",type:"Text",props:{...U,_partStyles:{text:gi(H("body",17,16),1.6)}},box:[["body","text",(e,o)=>Us(zp(o)[0]??"")]],when:(e,o)=>zp(o).length>0},{kind:"block",type:"Text",props:{...oe,_partStyles:{text:gi(H("body",17,16),1.6,{paragraphSpacing:14})}},box:[["body","text",(e,o)=>Us(zp(o).slice(1).join(`
|
|
322
|
+
|
|
323
|
+
`))]],when:(e,o)=>zp(o).length>1}],UI=()=>ht("date",jp(13,.24,{color:"accent"})),jI=(e,o,t={})=>ht(e,o,{...t,props:{...U,...t.props??{},align:"center"}}),_F=Go("headingMedium",40,5,76),AF={sectionBorder:{bottom:1}},l8={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=>Up(e)?{...Y,direction:"row",share:[40],gap:80,gapPhone:48,align:"start",...AF,...pt(e,"Timeline")}:{...Y,direction:"column",gap:48,gapPhone:48,align:"center",...AF,...pt(e,"Timeline")},box:[...Z,...Mr("Timeline")],parts:[{kind:"group",name:"Heading",props:{...R,gap:24,gapPhone:24},when:Up,parts:[ht("eyebrow",cs(12,.3,{color:"accent"}),{role:"eyebrow"}),ht("title",{textStyle:"heading-2",...Gp(_F,-.03,.94)},{role:"heading",mark:"accentItalic"}),ht("intro",gi(H("body",14),1.6),{props:{...oe,maxWidth:360},mark:"accentItalic"}),OF(667,419,{},()=>!0),EF()]},{kind:"group",name:"Chapters",props:{...R,gap:48,gapPhone:48,line:!1},when:Up,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",cs(12,.3,{color:"accent"}),{role:"eyebrow"}),jI("title",{textStyle:"heading-2",...Gp(_F,-.03,.94)},{role:"heading",mark:"accentItalic"}),jI("intro",gi(H("body",14),1.6),{props:{...oe,maxWidth:520},mark:"accentItalic"}),EF({align:"center"})]},OF(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:BF,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:s8,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)"}},RF=()=>({eyebrow:Wp.eyebrow,title:vt(Wp.title),intro:Wp.intro,ctaText:Ue.text,ctaHref:Ue.href,entries:vF()}),LF=()=>({eyebrow:$p.eyebrow,title:vt($p.title),intro:$p.intro,ctaText:Ue.text,ctaHref:Ue.href,entries:PF()}),DF={TimelineTrack:n8,Timeline:l8};import{tabletKey as i8}from"efficient-easel/draw";function NF(e){let o=String(e??"").replace(/[^+\d]/g,"");return o?`tel:${o}`:void 0}var It=e=>typeof e=="string"?e:e==null?"":String(e),VI=e=>Array.isArray(e.locations)?e.locations.map(o=>o??{}):[],ps=e=>It(e.group),KF=e=>`loc-${e}`,qF=e=>It(e.state).trim()||Tx(It(e.region)).state,VF=e=>It(e.country).trim()||Tx(It(e.region)).country,MF=e=>[qF(e),VF(e)].filter(Boolean).join(" \xB7 "),d8=e=>VI(e).some(o=>It(o.photo).trim()!==""),f8=e=>VI(e).some(o=>Sw(Number(o.lat),Number(o.lng))),c8=(e,o)=>VI(e).filter(t=>ps(t)===ps(o)).length,p8=(e,o)=>c8(e,o)===1?"wide":yP(e.imageShape),HF=48,Tt=(e,o={})=>({...Ct(e),...o}),YI={top:1,right:1,bottom:1,left:1},XI={...R,direction:"row",share:"equal",gap:0},u8=e=>o=>o>Td(o)?{...R,gap:0}:{...XI,...o>1?{phoneRow:e}:{}},JI=!0,m8={kind:"group",name:"Gallery",props:{...R,gap:20,...JI?{_hidden:!0}:{}},when:d8,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:{...It(e.photo).trim()?{bgImage:It(e.photo),hover:"mono"}:{},link:`#${KF(o)}`,boxShape:p8(t,e)}}),parts:[{kind:"text",key:"name",props:U,style:Tt(11,{letterSpacing:.22,color:"text"})}],groups:{of:ps,name:"Group",props:{...R,gap:10},head:e=>({label:ps(e[0]??{})}),parts:[pe("label",Tt(11,{color:"accent",letterSpacing:.3}))],itemsName:"Cities",itemsProps:u8(2),perRow:Td,rowName:"Row",rowProps:{...XI,phoneRow:2}}}]}]},x8={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)=>MF(t)]),when:(e,o)=>MF(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=>NF(It(e))??"#"]],when:(e,o)=>It(o?.phone).trim()!==""},{kind:"text",key:"hours",props:oe,style:Tt(12,{letterSpacing:.18,lineHeight:1.7})}]},h8={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)=>qF(t)]),...["region","country"].map(e=>[e,"country",(o,t)=>VF(t)])]},I8={kind:"group",name:"Map",props:{...R,sectionBorder:{top:1,right:0,bottom:0,left:0}},parts:[h8]},g8={kind:"list",key:"locations",name:"City",props:(e,o)=>({...R,gap:0,justify:"between",sectionBorder:YI,jumpHighlight:!0,sectionAccent:Hr(e,o)>=0?ts(e.sectionAccent,o):-1}),item:(e,o)=>({props:{anchor:KF(o)}}),parts:[x8,I8],groups:{of:ps,name:"Group",props:{...R,gap:20},head:e=>{let o=e[0]??{};return{key:ps(o),groupName:It(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)=>It(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:Td(e),[i8("columns")]:1})}},WF=Tt(10,{letterSpacing:.25}),y8={kind:"block",type:qt,props:{...R,name:"Credit",direction:"row",justify:"end",align:"center",gap:6,share:"content",wrap:!0},when:f8,slot:Vt,keepEmpty:!0,parts:[{kind:"block",type:"Text",props:{...oe,text:"Location coordinates \xA9",_partStyles:{text:WF}}},{kind:"block",type:"ButtonBlock",props:{...fo,...Fa,variant:"ghost",arrow:!1,label:"OpenStreetMap contributors",href:"https://www.openstreetmap.org/copyright",_partStyles:{label:{...WF,color:"labels"}}}}]},$F=(e,o)=>Object.fromEntries(o.filter(t=>e[t]!==void 0).map(t=>[t,e[t]])),zF=["sectionPaddingTop","sectionPaddingTopTablet","sectionPaddingTopPhone"],UF=["sectionPaddingBottom","sectionPaddingBottomTablet","sectionPaddingBottomPhone"],jF=e=>e.map(o=>[o,o,(t,r)=>re(r,$n)[o]]),GF=["sectionAccent","sectionAccent",Wr],S8=[...wr,...En,...Object.values(Fo)],b8={name:"City pictures",skip:e=>Le(e)?`fed by the data source "${Le(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",...jo,...$F(re(e,$n),zF),sectionPaddingBottom:HF,sectionPaddingBottomPhone:HF,...Ba(e,o)}),box:[...Z.filter(e=>e!=="sectionAccent"&&e!=="anchor"),GF,["anchor","anchor",e=>eP(e).trim()?e:"studios"],...jF(zF)],parts:[vp("sectionNumber","heading","tagline"),m8],also:[{name:"City maps",boxProps:(e,o)=>({...Y,direction:"column",gap:40,sectionBorder:{bottom:1},...jo,sectionPaddingTop:0,sectionPaddingTopPhone:0,...$F(re(e,$n),UF),...Ba(e,o)}),box:[...S8,GF,...jF(UF)],parts:[g8,y8]}],reads:{mapTheme:"City maps Box: each Map block's Map theme",imageShape:"City pictures Box: each picture Box's Box shape"},site:$r,drop:{...X,...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)"}},YF={ContactLocations:b8};import{SITE_SIDE as XF,sideLengthAt as w8}from"efficient-easel/screen/lib/content/length-units";import{viewKeyAt as ZI}from"efficient-easel/draw";var C8=["FAQ","Footprint","LongRead","ProcessSteps","RelatedProducts"];var zr=(e,o)=>()=>({top:e,topPhone:o}),JF=e=>o=>{let t=zn(e),r={...o,[Cr.top]:tf(o,t).top},a=i=>{let d=w8(r,Cr,of,i,"top");return d?.unit==="px"?d.value:void 0},n=i=>ye(o[ZI(Cr.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}:{}}},k8={Collections:zr(120,70),Events:zr(120,70),FAQ:zr(fc.top,fc.topPhone),GalleryB:zr(120,70),FitmentTable:zr(120,80),SpecTable:zr(120,80),LongRead:zr(cc.top,cc.topPhone),RelatedProducts:zr(0,0),Footprint:JF("Footprint"),ProcessSteps:JF("ProcessSteps"),ProductGrid:e=>({top:ye(e.padTop)??120,topPhone:0})};function v8(e,o={}){let t=z(kt,e),r=z(k8,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=ut(e),s=Ep(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=La(e)==="editorial"?jo:{};return{...Y,direction:"column",gap:di[La(e)],sectionPaddingTop:m.top,...m.topTablet!==void 0?{sectionPaddingTopTablet:m.topTablet}:{},...m.topPhone!==void 0?{sectionPaddingTopPhone:m.topPhone}:{},...I,...u,...h}},box:[...Z,...a?[[a,"sectionPaddingTop",(d,f)=>r(f).top]]:[]],parts:[n,...(()=>{let d=a&&SO.has(e)?{[ZI(a,"tablet")]:0,[ZI(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 P8={...R,direction:"accordion",rowStyle:"numbered"},T8={sectionPaddingLeft:XF,sectionPaddingRight:XF},O8={Footprint:{slots:{[Pe]:[bw()]},pressHeading:!0},ProcessSteps:{slots:(e,o)=>o.press?{[$s]:P1().map(t=>({...t,props:{...t.props,...T8}}))}:{},boxProps:{gapPhone:di.editorial}},FAQ:{slots:{[Pe]:[yw()]},pressHeading:!0,coreBox:{name:"Questions",props:P8},coreProps:{sectionAccent:Sr},roomBelow:{bottom:120,bottomPhone:70},boxProps:(e,o)=>o.press?{}:{[aO]:Cl},skip:e=>{let o=e._partStyles??{},t=gw().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}}},ZF=Object.fromEntries(C8.map(e=>[e,v8(e,z(O8,e))]));import{BLOCK_WIDTH_LIMIT as E8}from"efficient-easel/draw";var Kp={eyebrow:Te.eyebrow,title:Te.headingAccent,deck:"Add a sentence or two introducing this document."},GSe={label:"Document masthead",defaultProps:{eyebrow:"",title:"",deck:"",meta:[]}};var rB={minWidth:E8.min},QF=(e,o,t)=>({...pe(e,{...o,...ni}),props:{...U,align:"right",..._a,...t}}),aB={top:1,bottom:0},eg=(e,o,t,r)=>({kind:"group",name:e,props:{...R,sectionPaddingBottom:o,sectionPaddingBottomPhone:t},parts:[r]}),eB={widthFit:"fill",...rB},_8={...H("label",13),letterSpacing:.22,lineHeight:1.8},oB={textStyle:"heading-1",...Go("headingLarge",56,8,128),case:"upper",weight:500,lineHeight:.88,letterSpacing:-.04},A8=()=>({name:"Page Header",boxProps:e=>({...Y,direction:"column",gap:0,sectionBorder:{bottom:1},...re(e,xc)}),box:[...Z,...ce(xc)],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",...eB},style:oB,mark:"accentItalic",when:e=>!Yh(e)},{kind:"text",key:"title",role:"heading",props:{...U,tag:"h2",...eB},style:oB,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:[si("label","value",_8,_a)]}]}]},{kind:"group",name:"Deck",props:{...R,maxWidth:760,sectionBorder:aB,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,[Xc]:"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"}}),nB=()=>({eyebrow:Kp.eyebrow,title:vt(Kp.title),deck:Kp.deck,meta:[{label:Te.label,value:Te.value},{label:Te.label,value:Te.value}]}),F8={...H("label",13),letterSpacing:.18,lineHeight:1.8},tB={...H("label",13),letterSpacing:.22,lineHeight:1.9},B8=()=>({name:"Issue Header",boxProps:e=>({...Y,direction:"column",gap:0,sectionBorder:{bottom:1},...re(e,Ol)}),box:[...Z,...ce(Ol)],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:[si("lead","rest",F8)]}]}]},{kind:"group",name:"Bottom",props:{...R,direction:"row",align:"start",justify:"between",gap:60,gapPhone:16,share:"content",sectionBorder:aB,sectionPaddingTop:32},parts:[{kind:"text",key:"lead",props:{...U,maxWidth:720,...rB},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,...ni}}),{kind:"group",name:"Lines",props:{...R,align:"stretch",gap:0},parts:[{kind:"list",key:"issueList",name:"Line",flat:!0,parts:[QF("text",{color:"labels",...tB})]}]},QF("issueTotal",tB)]}]}],drop:{...X,...te}}),QI={color:"labels",...H("label",13),letterSpacing:.2},sB=e=>(Array.isArray(e.items)?e.items:[]).filter(o=>o&&typeof o.label=="string"&&o.label.trim()!==""),og=(e,o)=>o!==void 0&&sB(e).at(-1)===o,lB=(e,o)=>o!==void 0&&sB(e).includes(o),R8=(e,o)=>lB(e,o)&&!og(e,o)&&Ne(o?.href),L8=()=>({name:"Breadcrumb",skip:e=>Ne(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,kl)}),box:[...Z,...ce(kl)],parts:[{kind:"list",key:"items",name:"Crumb",flat:!0,parts:[{kind:"button",key:"label",href:"href",variant:"ghost",when:R8,props:{...fo,...Fa,icon:"none"},style:QI},{...pe("label",QI),when:(e,o)=>lB(e,o)&&!og(e,o)&&!Ne(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",...mp}}),iB={DocMasthead:A8(),Masthead:B8(),Breadcrumb:L8()};import{BLOCK_WIDTH_LIMIT as N8,hiddenKeyOf as M8}from"efficient-easel/draw";import{readHidable as tg}from"efficient-easel/draw";function D8(e,o,t){return e||(t?.isEditing?c(o):void 0)}function sbe(e,o,t){let r=Array.isArray(e)?e:[];return r.length?r:t?.isEditing?o:[]}function dB(e,o,t){let r=tg(e);if(!r.hidden)return D8(r.text,o,t)}function fB(e){if(e==null)return;let o=tg(e);return o.hidden?"":o.text}function lbe(e,o,t){return tg(e).hidden?"":dB(e,o,t)}function ibe(e,o,t){return{text:dB(e,Ue.text,t),href:o||Ue.href}}var mB="MenuBlock",rg=e=>(Array.isArray(e)?e:[]).filter(o=>o&&Ne(o.label)),cB=e=>{let[o,t]=[e.metaLabel,e.metaValue].map(a=>(fB(a)??"").trim());if(!t)return o;let r=t.includes("==")?t:`==${t}==`;return o?`${o} ${r}`:r},pB={top:0,bottom:0,topPhone:0,bottomPhone:0},H8={...No,color:"labels",...H("label",12),letterSpacing:.24},W8={kind:"group",name:"Note",props:{...R,justify:"center",sectionBorder:{top:0,right:0,bottom:0,left:1},sectionPaddingLeft:28,[M8("mobile")]:!0},parts:[{kind:"block",type:"Text",when:e=>cB(e)!=="",props:e=>({...U,textFit:"line",text:cB(e),[kv]:{text:H8}})}]},xB=()=>({tabs:[],metaLabel:Te.label,metaValue:Te.value}),uB="the note Text inside the Box (the label, then the value in the accent); no words, no Text",hB={direction:"row",menuStyle:"tabs",currentPage:!0,minWidth:N8.min},IB=e=>({...e,boxProps:o=>({...Y,direction:"row",align:"stretch",justify:"between",gap:0,stickTop:!0,[kn]:0,[rl]:!0,sectionBorder:{bottom:1},...re(o,pB)}),box:[...Z,...ce(pB)]}),$8=()=>IB({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:uB,metaValue:uB},parts:[{kind:"block",type:mB,props:hB},W8],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"}}),z8=()=>IB({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:mB,props:{...hB,[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"}}),gB={DocTabs:$8(),CategoryBar:z8()};import{jsx as Na,jsxs as ag}from"react/jsx-runtime";import{slugify as X8}from"efficient-shell/format";import{jsx as Vp,jsxs as bB}from"react/jsx-runtime";import{jsx as U8}from"react/jsx-runtime";import{useEffect as j8,useRef as G8}from"react";var yB="data-current",K8=1/3,q8=2;function V8(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 Y8(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=V8(n,o,t);for(let l of r)s!==null&&a(l)===s?(l.setAttribute(yB,""),l.setAttribute("aria-current","location")):(l.removeAttribute(yB),l.removeAttribute("aria-current"))}function SB(){let e=G8(null);return j8(()=>{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-q8;Y8(o,window.innerHeight*K8,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)}},[]),U8("span",{ref:e,hidden:!0})}var Cbe="sticky top-[120px]";var qp={entry:{label:"Entry",follows:"Labels",builtIn:"13px",writable:!0},number:{label:"Entry number",follows:"Labels",builtIn:"13px",writable:!0}};var wB=(e,o)=>e?{[ra]:o}:{},CB=(e,o)=>hw(e?.[Ks(o)]?.role,qp[o],Sb),kB=120;function vB({title:e,entries:o,stickyTop:t,sticky:r=!0,editing:a=!1,partStyles:n,numberForm:s=Zx,takesViewHide:l=!1,markCurrent:i=!1}){let d=s==="plain",f=lt(),m=l?f:vr;return m.scope(bB("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&&Vp("h4",{className:"mb-[18px] font-mono text-[length:var(--size-label,12px)] uppercase tracking-[0.3em] text-accent",children:Xe(e)}),o.map((u,h)=>{let I=Vp("span",{...wB(a,"number"),style:CB(n,"number"),className:"text-accent",children:Kf(s,h)});return bB("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,Vp("span",{...wB(a,"entry"),style:CB(n,"entry"),children:Xe(u.label||"Section")}),!d&&I]},`${h}-${u.anchor}`)}),i&&!a&&Vp(SB,{})]}))}function PB(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 J8(e,o){return X8(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 PB(e.map((o,t)=>J8(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=gd(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 Z8=()=>[{label:c("First section"),heading:c("Your *first* section."),body:c(`Write the opening paragraph here.
|
|
327
|
+
|
|
328
|
+
- Start a line with a dash for a bullet.
|
|
329
|
+
- Add as many as you like.`)},{label:c("Second section"),heading:c("Your *second* section."),body:c("Leave a blank line between paragraphs to start a new one.")}],Q8=kB;function Ybe({tocTitle:e,sections:o,editing:t=!1,stickyTop:r=Q8,pad:a}){let n=Pt(),s=sg(o);if(s.length===0&&!t)return null;let l=s.length===0&&t?Z8():s,i=lg(l);return Na(fe,{as:"section",className:"relative z-[2] bg-bg",children:ag("div",{...hO(nt("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(vB,{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:[Jx(f)," \xB7 ",Xe(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:Xe(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:Xe(h)},I))},u):Na("p",{className:"max-w-[680px] font-serif text-[length:var(--size-body,17px)] leading-[1.7] text-fg-dim",children:Xe(m.text)},u))]},i[f]))})]})})}var TB=18,OB=18,EB=8,eK=10,dg=e=>typeof e=="string"&&e.trim()!=="",_B=e=>sg(e.sections),oK=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={...Ct(12),letterSpacing:.3,color:"accent",lineHeight:1.5},AB={textStyle:"body-1",fontRole:"accent",...H("body",17)},tK=[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:EB,sectionPaddingBottomPhone:EB},parts:[{kind:"group",name:"Heading line",props:{...R,sectionBorder:{bottom:1},sectionPaddingBottom:OB,sectionPaddingBottomPhone:OB},parts:[{kind:"text",key:"heading",role:"heading",props:U,style:{textStyle:"heading-2",...Go("headingMedium",28,3.5,44),case:"upper",weight:500,lineHeight:1.04,letterSpacing:-.025}}]}]},{kind:"list",key:"body",name:"Body",flat:!0,of:oK,parts:[{kind:"text",key:"text",props:oe,style:{...AB,lineHeight:1.7},when:(e,o)=>o?.kind==="p"},{kind:"text",key:"text",props:oe,style:{...AB,lineHeight:1.65,paragraphSpacing:eK},when:(e,o)=>o?.kind==="ul"}]}],rK=900,aK={name:"Document Text",boxProps:e=>({...Y,direction:"row",gap:80,gapPhone:40,[Cp]:rK,sectionBorder:{bottom:1},...re(e,mc)}),box:["anchor","sectionAccent",...wr,...En,...Object.values(Fo),...ce(mc)],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=>_B(e),props:{...R,gap:TB,gapPhone:TB},item:(e,o,t)=>({props:{anchor:lg(_B(t))[o]??`section-${o+1}`}}),parts:tK}]}],reads:{tocTitle:"the Contents block's Heading"},drop:{...X,stickyTop:"the Contents block draws DocBody's default (120px); 0 live nodes store it"}},FB={DocBody:aK};import{phoneKey as iK}from"efficient-easel/draw";import{SITE_SIDE as dK}from"efficient-easel/screen/lib/content/length-units";var lwe={eyebrow:"\u2014 Label",title:`Section headline *here.*
|
|
331
|
+
*Highlight line*`,body:"Describe this section in a sentence or two."},iwe={text:"Learn more"},dwe={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 nK}from"efficient-shell/format";var BB="[--intro-edge:60px] max-[960px]:[--intro-edge:24px]",sK="overlay",lK=[{label:"Copy over image",value:"overlay"},{label:"Copy above image",value:"stacked"}];function Yp(e){return nK(lK,sK,e)}var pwe={desktop:40,mobile:45,min:20,max:80,step:5};function uwe(e,o){return`${typeof e=="number"?e:o}%`}import{parseOption as fK}from"efficient-shell/format";var RB=(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(fl.size,t?.desktop)},...a===void 0?{}:{sizePhone:a,...n(fl.sizePhone,t?.phone)}}},cK=e=>Yp(e.layout)==="stacked",LB=e=>Math.min(Math.max(ye(e.overlay)??60,0),100),Xp=e=>ye(e)??100,pK={textStyle:"heading-1",sizeToken:{...Go("headingLarge",48,7,96).sizeToken,pxPhone:36},weight:500,lineHeight:.95,letterSpacing:-.03},uK=[pe("eyebrow",H("label",14)),...[!0,!1].map(e=>({kind:"text",key:"title",role:"heading",props:U,style:{...pK,case:e?"upper":"none"},styleFrom:o=>{let t=Ox(o);return RB(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=Ox(e);return RB(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}]}],DB=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)`,mK=()=>({name:"Scroll-Over Text",skip:e=>cK(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",...li,placement:"left",darken:LB(e),darkenStyle:"even",sectionHeightMode:"fixed",sectionHeightUnit:"%",sectionHeightValue:Xp(e.heightDesktop),sectionHeightModePhone:"fixed",sectionHeightUnitPhone:"%",sectionHeightValuePhone:Xp(e.heightMobile),[Zd]:pk}),box:[...Z.filter(e=>!String(typeof e=="string"?e:e[0]).startsWith("sectionHeight")),["imageSrc","bgImage"],["imageSrcMobile","bgImagePhone"],["overlay","darken",(e,o)=>LB(o)],["heightDesktop","sectionHeightValue",e=>Xp(e)],["heightMobile","sectionHeightValuePhone",e=>Xp(e)]],parts:uK,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(SP.map(e=>[e,"read by its part's `styleFrom`: the unit of that view's Size"])),buttonColor:DB("Button color"),buttonTextColor:DB("Button text color"),...X}}),HB={textStyle:"heading-2",...H("headingMedium",56,36),weight:400,lineHeight:1.05,letterSpacing:-.03},xK={textStyle:"body-1",...H("body",16),lineHeight:1.7},WB=e=>({kind:"text",key:"body",props:{...oe,maxWidth:520},style:{...xK,paragraphSpacing:e}}),Zp={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"},hK=(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"}},$B={boxShapePhone:"landscape"},zB="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)",IK=(e,o)=>({[e]:o,[iK(e)]:o}),gK={textStyle:"heading-2",...H("headingMedium",40),weight:500,case:"none",lineHeight:1,letterSpacing:-.02},NB=e=>(Array.isArray(e.stats)?e.stats:[]).filter(o=>o&&(String(o.value??"").trim()!==""||String(o.label??"").trim()!=="")),yK=()=>({name:"Brand Text",boxProps:(e,o)=>({...Y,...Uo("background")(e,o),direction:"row",share:"equal",gap:0,gapPhone:0,sectionBorder:{top:1,bottom:1},...re(e,Zp),...pg(e,100)}),box:[...Z,...ce(Zp)],parts:[{kind:"group",name:"Words",props:()=>({...R,justify:"center",gap:28,gapPhone:28,sectionBorder:ii({right:1}),sectionBorderPhone:ii({}),...li,sectionPaddingTop:100,sectionPaddingBottom:100,sectionPaddingTopPhone:60,sectionPaddingBottomPhone:60,sectionPaddingRight:dK}),parts:[pe("eyebrow",H("label",14)),{kind:"text",key:"heading",role:"heading",props:U,style:{...HB,case:"none"},mark:"accentItalic"},WB(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(NB(e).length,1),3),...IK("sectionBorder",ii({top:1})),sectionPaddingTop:28,sectionPaddingTopPhone:28}),parts:[{kind:"list",key:"stats",name:"Stat",of:NB,props:{...R,gap:4,gapPhone:4},parts:[{kind:"text",key:"value",props:Aa,style:gK},pe("label",{...H("label",13),color:"labels",letterSpacing:.2})]}]}]}]},mI("Picture","imageSrc",$B)],drop:{...X,grayscale:zB,...te}}),Jp=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}},SK=e=>e.textAlign==="center"||e.textAlign==="right"?wd[e.textAlign]:"stretch",bK=e=>Math.min(Math.max(ye(e.overlay)??60,0),100),UB=e=>typeof e=="string"&&e.trim()!=="",wK={...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},MB=e=>({...mI("Picture","imageSrc",(o,t)=>({...UB(o.imageSrc)&&cg(o.imageOverlay)>0?{darken:cg(o.imageOverlay),darkenStyle:"even"}:{},placement:"center",...$B,sectionBorder:ii(e?{left:1}:{right:1}),...jB(e?"left":"right",as(t))}),[{kind:"button",key:"imageBtnText",href:"imageBtnHref",variant:"ghost",props:wK,style:{...Ct(13,12),letterSpacing:.18}}]),when:o=>o.reverse===!0===e}),jB=(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:SK(e),placement:fK(["left","center","right"],"left",e.textAlign),...hK(e,72),gap:24,gapPhone:24,...UB(e.textBgSrc)?{darken:bK(e),darkenStyle:"even"}:{},...li,sectionPaddingTop:100,sectionPaddingBottom:100,...jB(t?"right":"left",as(o)),sectionPaddingTopPhone:60,sectionPaddingBottomPhone:60}},box:[["textBgSrc","bgImage"]],parts:[{...pe("eyebrow",H("label",14)),styleFrom:Jp},{kind:"text",key:"title",role:"heading",props:U,style:HB,styleFrom:e=>({case:e.uppercase===!0?"upper":"none",...Jp(e)})},{...WB(24),styleFrom:Jp},{kind:"group",name:"Button",props:{...R,sectionPaddingTop:8,sectionPaddingTopPhone:8},parts:[{kind:"button",key:"ctaText",href:"ctaHref",variant:"primary",props:e=>{let o=Jp(e);return{...fo,...o.align?{align:o.align}:{},...o.alignPhone?{alignPhone:o.alignPhone}:{}}}}]}]},kK=()=>({name:"Image & Text Split",boxProps:(e,o)=>({...Y,...Uo("background")(e,o),direction:"row",share:"equal",gap:0,gapPhone:0,sectionBorder:{top:1,bottom:1},...re(e,Zp),...pg(e,72)}),box:[...Z,...ce(Zp)],parts:[MB(!1),CK,MB(!0)],drop:{reverse:"not a value of its own: it picks the order \u2014 the Picture Box first, or after the Words",uppercase:"not a value of its own: the heading part's Case \u2014 Upper when on, None (as typed) when off",textAlign:"read by each words part (its Align) and the Words Box (its Align); left writes nothing, as the old emitted no class",textAlignPhone:"read by each words part as its phone Align",textAlignTablet:"not carried to the words part's own tablet Align (`alignTablet`) yet: no old node stores it (new with the Tablet view's Text alignment row, 0 stored on the US sites 2026-11-06), so nothing moves",overlay:"read by the Words Box: its Darken over the words picture (60 when unset); no picture, no wash",imageOverlay:"read by the Picture Box: its Darken over the image column's picture (40 when unset, none at 0); no picture, no wash",grayscale:zB,...X,...te}}),GB={IntroBleed:mK(),Manifesto:yK(),Split:kK()};var VB={headPlacement:void 0},KB={top:0,bottom:0,topPhone:0,bottomPhone:0},vK=()=>({name:"Form",ownBoxConverts:!0,boxProps:e=>({...Y,direction:"column",...re(e,KB)}),box:[...Z,...ce(KB)],parts:[{kind:"core",keep:"rest",props:VB}],drop:{...X,...te}}),qB={top:120,bottom:120,topPhone:60,bottomPhone:60},PK=()=>({name:"Photo Submission Form",boxProps:e=>({...Y,direction:"column",gap:24,...re(e,qB)}),box:[...Z,...ce(qB)],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:VB}],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'}}),YB={Form:vK(),SubmitBuild:PK()};import{phoneKey as XB}from"efficient-easel/draw";var ZB=1.5,JB={textStyle:"body-1",...H("body",15),lineHeight:ZB},TK={...No,...H("label",12),letterSpacing:.12,lineHeight:ZB},QB=()=>({type:K,props:{...R,direction:"row",justify:"between",align:"start",gap:16,gapPhone:16,share:"content",phoneRow:2,[XB("share")]:"content",[XB("wrap")]:"nowrap",...Co(12,0),sectionBorder:{top:1},name:"Item"},slots:{[Ce]:[{type:K,props:{...R,gap:0,gapPhone:0,name:"Item words"},slots:{[Ce]:[Fe("label",{...U,tag:"p"},JB),Fe("meta",{...oe,tag:"p"},TK)]}},Fe("amount",{...U,tag:"p"},JB)]}});var OK=()=>({name:"Order Table",boxProps:()=>({...Y,direction:"column"}),box:[...Z],parts:[{kind:"core",keep:"rest",headless:!0,slots:{[Pe]:[QB()]}}],drop:{...X}}),eR={OrderSummary:OK()};import{phoneKey as EK}from"efficient-easel/draw";var Wwe={eyebrow:"By the numbers",title:`A picture worth
|
|
332
|
+
*a thousand rows.*`},oR=["eyebrow","title","body","caption"],$we={label:"Chart",defaultProps:{eyebrow:"",title:"",body:"",items:[],caption:"",chartStyle:"bars",valueSuffix:""}};var tR=["eyebrow","title","body"],Uwe={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 nR=()=>({kind:"group",name:"Words",props:{...R,gap:20,gapPhone:20},parts:[{kind:"group",name:"Chip row",props:{...R,direction:"row",phoneRow:2,[EK("share")]:"content"},parts:[os("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:kd(16)}]}),sR=e=>(o,t)=>({...Y,sectionAccent:rs(o.sectionAccent??0,t),direction:"row",align:"center",gap:56,gapPhone:56,share:e,sectionBorder:{top:1,bottom:1},...re(o,El)}),lR=[...Z.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,t)=>rs(e,t)],...ce(El)],_K=()=>({name:"Chart",boxProps:sR([42]),box:lR,parts:[nR(),{kind:"group",name:"Chart",props:{...R,gap:16,gapPhone:16},keepEmpty:!0,parts:[{kind:"core",keep:"rest",props:es},pe("caption",{color:"muted",...H("label",10),letterSpacing:.14})]}],pressKeepsEmpty:[...oR],drop:{...X,...te}}),rR=e=>e.align==="left",aR={kind:"group",name:"Card",keepEmpty:!0,props:R,parts:[{kind:"core",keep:"rest",props:es}]},AK=()=>({name:"Mockup Card",boxProps:sR("equal"),box:lR,parts:[{...aR,when:rR},nR(),{...aR,when:e=>!rR(e)}],pressKeepsEmpty:[...tR],drop:{...X,...te}}),iR={Chart:_K(),Mockup:AK()};import{phoneKey as BK}from"efficient-easel/draw";function dR(e,o=3){let t=Array.from({length:o},()=>[]);return e.forEach((r,a)=>t[a%o].push(r)),t}function fR(e){return Math.max(e*6,30)}var RK=e=>(Array.isArray(e.apps)?e.apps:[]).map(o=>o&&typeof o=="object"&&typeof o.text=="string"?o.text.trim():"").filter(Boolean),ug=e=>dR(RK(e)),LK=e=>Np({loopDuration:fR(e)}),DK={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:[os("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:kd(16)}]},NK=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:LK(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"]}]}]}]}),MK={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"}}]},HK=[...Z.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,t)=>rs(e,t)],...ce(gc)],WK={name:"Integrations",boxProps:(e,o)=>({...Y,sectionAccent:rs(e.sectionAccent??0,o),direction:"column",gap:48,gapPhone:48,sectionBorder:{top:1,bottom:1},...re(e,gc)}),box:HK,parts:[DK,{kind:"group",name:"Rows",props:{...R,gap:12,gapPhone:12},parts:Array.from({length:3},(e,o)=>NK(o))},MK],pressKeepsEmpty:["body","statValue","statLabel","note"],reads:{apps:"a Logo block per app, dealt into the three Rows"},drop:{...X,...te}},cR={Integrations:WK},pR=()=>({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 $K={title:"Back online in",zeroText:"Almost done. Back very soon."},uR=["title"],lCe={label:"Countdown",defaultProps:{...$K,endsAt:"",showUnits:!0}};var zK={...pe("title",{...lw(12),color:"muted"}),props:{...U,align:"center"}},UK=()=>({name:"Countdown",boxProps:e=>({...Y,direction:"column",align:"center",gap:16,gapPhone:16,...re(e,uc)}),box:[...Z,...ce(uc)],parts:[zK,{kind:"core",keep:"rest",props:es}],pressKeepsEmpty:[...uR],drop:{...X,...te}}),jK=()=>({name:"Feature Banner",boxProps:e=>({...Y,direction:"column",sectionBorder:{bottom:1},...re(e,Ic)}),box:[...Z,...ce(Ic)],parts:[{kind:"core",keep:"rest",props:es}],drop:{...X,...te}}),mR={Countdown:UK(),FeaturedCover:jK()};var xR={top:80,bottom:80,topPhone:60,bottomPhone:60},GK=()=>{let e=Ep("FitmentFinder");return{name:"Fitment Form",boxProps:o=>({...Y,direction:"column",gap:di[La("FitmentFinder")],...re(o,xR)}),box:[...Z,...ce(xR)],parts:[ut("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'}}},hR={FitmentFinder:GK()};var Qp={eyebrow:"Label",title:"Section *heading.*",body:"Add this section's copy here. A blank line starts a new paragraph."},ICe={label:"Editorial Text",defaultProps:{eyebrow:"",title:"",body:"",topBorder:!0}};var yi={eyebrow:Te.eyebrow,lead:"Introduce your company in a paragraph or two.",foundersHeading:"Add a short heading.",foundersBody:"Add a short statement here \u2014 a sentence or two is plenty.",attribution:"\u2014 Name, Year"},SCe={label:"Lead Text",defaultProps:{eyebrow:"",lead:"",stats:[],foundersHeading:"",foundersBody:"",attribution:"",padTop:60,padBottom:80}};var IR={eyebrow:"Limited release",title:"Banner headline",body:"A line or two of supporting copy."},wCe={label:"Banner",drawsPictures:!0,defaultProps:{eyebrow:"",title:"",body:"",imageSrc:"",ctaText:"",ctaHref:"",contained:!0,overlay:60}};var gR={title:`Section heading
|
|
334
|
+
*Highlight line*`},yR=[{label:Ue.text,href:Ue.href,variant:"primary"},{label:Ue.text,href:Ue.href,variant:"outline"}],vCe={label:"Call-to-Action Heading",defaultProps:{title:"",buttons:[],padTop:140,padBottom:140}};var mr={num:"01 / Section",title:"Section *title*",description:"Short supporting line",linkText:Te.viewAll},_Ce={label:"Section Header",drawsPictures:!0,defaultProps:{headStyle:nc,num:mr.num,numStyle:Fl,title:mr.title,description:"",logoSrc:"",logoAlt:"",linkText:"",linkHref:""}};var eu={eyebrow:"\u2014 Label",title:`Section headline
|
|
335
|
+
*Highlight line*`,body:"A sentence or two of supporting copy."},RCe={label:"Scroll-Over Text",drawsPictures:!0,defaultProps:{eyebrow:"",title:"",body:"",imageSrc:"",imageSrcMobile:"",heightDesktop:100,heightMobile:100,overlay:60,titleSizeDesktop:ul,bodySizeDesktop:ul,titleSizeMobile:ul,bodySizeMobile:ul,ctaText:"",ctaHref:"",buttonColor:"",buttonTextColor:"",stickTop:!0,[kn]:0,uppercase:!1}};var KK={name:"Editorial Text",boxProps:e=>({...Y,direction:"column",gap:28,gapPhone:28,sectionBorder:{top:1},...re(e,Sc)}),box:[["topBorder","sectionBorder",e=>e===!1?void 0:{top:1}],...Z,...ce(Sc)],parts:[ut("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)"}},bR={buttonPaddingTop:20,buttonPaddingBottom:20,buttonPaddingLeft:28,buttonPaddingRight:28},wR=(e,o)=>o?.variant==="primary",CR=(e,o)=>({kind:"list",key:"buttons",name:"Button",flat:!0,when:e,parts:[{kind:"button",key:"label",href:"href",when:wR,variant:"primary",style:{letterSpacing:.3},props:{...fo,...bR,...o}},{kind:"button",key:"label",href:"href",when:(t,r)=>!wR(t,r),variant:"ghost",style:{letterSpacing:.3},props:{...fo,...bR,...o}}]}),ou=e=>Ne(e.title),qK={name:"Call-to-Action Heading",boxProps:e=>({...Y,direction:"row",align:"center",justify:ou(e)?"between":"end",gap:60,gapPhone:60,share:"content",sectionBorder:{bottom:1},...pt(e,"TitleWithButtons")}),box:[...Z,...Mr("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",...Go("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",...ou(e)?{minWidth:280,minWidthPhone:0}:{}}),parts:[CR(ou,{widthFit:"fill",iconPosition:"end"}),CR(e=>!ou(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 VK(e,o){let t=as(o,{to:yr(e.sectionPaddingUnitTablet??e.sectionPaddingUnit)}),r=as(o,{view:"phone",to:yr(e.sectionPaddingUnitPhone),maxPx:20});return{sectionPaddingLeft:SR,sectionPaddingRight:SR,sectionPaddingLeftTablet:t,sectionPaddingRightTablet:t,sectionPaddingLeftPhone:r,sectionPaddingRightPhone:r}}var YK={name:"Section Header",boxProps:(e,o)=>({...Y,direction:"column",gap:0,...re(e,bc),...VK(e,o)}),box:[...Z,...ce(bc)],parts:[ut("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"}},kR={...R,direction:"row",share:[67],gap:32},vR={...R,sectionPaddingLeft:24,sectionPaddingLeftPhone:0},PR=(e,o,t)=>({kind:"group",name:e,props:o,parts:[t]}),XK={name:"Lead Text",boxProps:e=>({...Y,direction:"column",gap:40,gapPhone:40,sectionBorder:{bottom:1},...pt(e,"ParagraphsA")}),box:[...Z,...Mr("ParagraphsA")],parts:[{kind:"group",name:"Numbers",props:{...kR,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})]},PR("Stats column",R,{kind:"group",name:"Stats",props:{...vR,gap:0,gapPhone:0},parts:[{kind:"list",key:"stats",name:"Stat",flat:!0,parts:[si("value","label",{...H("label",13),letterSpacing:.18,lineHeight:1.8})]}]})]},{kind:"group",name:"Words",props:{...kR,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}}]}]},PR("Note column",{...R,justify:"end"},{kind:"group",name:"Founders",props:{...vR,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}},JK={name:"Banner",boxProps:e=>({...Y,direction:"column",gap:0,...re(e,ic)}),box:[...Z,"contained",...ce(ic)],parts:[{kind:"group",name:"Card",keepEmpty:!0,props:{...R,gap:28,gapPhone:28,placement:"top-left",darken:60,darkenStyle:"even",sectionBorder:{width:1},...or("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:KK,TitleWithButtons:qK,SectionHeader:YK,ParagraphsA:XK,Banner:JK},TR={Prose:()=>({eyebrow:Qp.eyebrow,title:vt(Qp.title),body:Qp.body}),TitleWithButtons:()=>({title:vt(gR.title),buttons:yR.map(e=>({...e}))}),SectionHeader:()=>({num:mr.num,title:vt(mr.title),description:mr.description,linkText:mr.linkText,linkHref:Ue.href}),ParagraphsA:()=>({eyebrow:yi.eyebrow,lead:Te.body,foundersHeading:yi.foundersHeading,foundersBody:yi.foundersBody,attribution:yi.attribution}),Banner:()=>({...IR,ctaText:Ue.text,ctaHref:Ue.href}),ProcessSteps:()=>({num:mr.num,title:vt(mr.title)}),IntroBleed:()=>({eyebrow:eu.eyebrow,title:vt(eu.title),body:eu.body,ctaText:Ue.text,ctaHref:Ue.href})};function tu(){no(mg),no(jA),no(sF),no(LA),no(wF),no(DF),no(YF),no(ZF),no(iB),no(gB),no(FB),no(GB),no(YB),no(eR),no(hR),no(iR),no(cR),no(mR)}var ZK=[{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=>B1(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=>L1(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})=>(tu(),H1(e,ri,{theme:aC(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=>G0(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=>t_(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=>o_(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=>QE(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=>X0(e)},{name:"withPageContents",chrome:!1,why:"page-only: a Contents block lists the PAGE's anchored sections and numbers their kickers",run:e=>w0(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=>l_(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=>p_(e)}];function QK(e,o,t){let r=e;for(let a of ZK)(!t||a.chrome)&&(r=a.run(r,o));return r}function OR(e,o){return QK(e,{metadata:o},!1)}import{useRef as e7}from"react";import{createRenderKeep as o7}from"efficient-easel/render";function ER(){let e=e7(null);return e.current??=o7(),e.current}import{isNode as t7,isNodeList as r7}from"efficient-easel/data";import{hidableText as a7,readHidable as n7}from"efficient-easel/draw";var AR="slotCounts",xg=e=>!n7(e).hidden&&a7(e).trim()!=="",s7=e=>typeof e=="string"&&e.trim()!=="",l7={Flex:()=>!0,PostCard:()=>!0,ImageBlock:e=>s7(e.src),Text:e=>xg(e.text),Heading:e=>xg(e.text),Eyebrow:e=>xg(e.eyebrow)},i7=["widthFit","width","minWidth"],_R=e=>r7(e);function d7(e){if(Array.isArray(e.content))return _R(e.content)?e.content:null;let o=Object.values(e).filter(_R);return o.length===1?o[0]:null}function f7(e,o){return[...new Set([db,...Object.values(z(Tw,e)??{})])].some(t=>Wt(o,t)!=="")}function c7(e){let o=e.props??{},t=z(l7,e.type);if(!t||!t(o)||f7(e.type,o)||pl(o))return!1;let r=o[Yn];if(r!=null&&r!=="")return!1;let a=up(o);return!i7.some(n=>a[n]!==void 0)}function p7(e){let o=0;for(let t of e)if(!nr(t.props??{})){if(!c7(t))return;o+=1}return o>0?o:void 0}function u7(e){let o={},t=new Set,r=new Set,a=(n,s)=>{if(Array.isArray(n))for(let l of n){if(!t7(l))continue;let i=l.props.id;typeof i=="string"&&(t.has(i)?r:t).add(i);let d=s?null:d7(l.props);if(typeof i=="string"&&d){let f=p7(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 FR(e,o){return{...e??{},[AR]:u7(o)}}function Hke(e){let o=e.editor?.metadata?.[AR],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 h7({config:e,data:o,metadata:t}){let r=OR(o,t),a=ER(),n=U0(e,z0(r.content)),s=oc(r.content),l=s.length>0?{...t,[$0]:s}:t;return BR(tc,{children:BR(x7,{config:n,metadata:FR(l,r.content),keep:a,data:r})})}var RR=m7(h7);import{jsx as Ko,Fragment as Pq,jsxs as _L}from"react/jsx-runtime";import{Suspense as Tq,useMemo as Oq}from"react";import{jsx as I7}from"react/jsx-runtime";import{createContext as g7,useCallback as y7,useContext as S7,useState as hg}from"react";var LR=g7({footerBlock:null,setFooterBlock:()=>{},headerGroup:null,setHeaderGroup:()=>{},refreshToken:0,refreshFooter:()=>{},chromeRootProps:null});function Jke({children:e,editFooter:o,chromeRootProps:t=null}){let[r,a]=hg(null),[n,s]=hg(null),[l,i]=hg(0),d=y7(()=>i(f=>f+1),[]);return I7(LR.Provider,{value:{footerBlock:r,setFooterBlock:a,headerGroup:n,setHeaderGroup:s,editFooter:o,refreshToken:l,refreshFooter:d,chromeRootProps:t},children:e})}var DR=()=>S7(LR);import{jsx as b7,jsxs as w7}from"react/jsx-runtime";import{createContext as C7,useContext as k7}from"react";var NR=C7(!1);function tve(){return k7(NR)}function MR({grayscale:e,children:o}){let t=e===!0;return w7(NR.Provider,{value:t,children:[Object.entries(K_(e)).map(([r,a])=>b7("style",{children:a},r)),o]})}import{jsx as v7}from"react/jsx-runtime";import{createContext as P7,useContext as T7}from"react";var HR=P7(null);function sve(){return T7(HR)}function WR({ink:e,children:o}){return v7(HR.Provider,{value:e??null,children:o})}import{parseOption as O7}from"efficient-shell/format";var $R="data-lead-ink",cve="data-header-ink",E7=["auto","light","dark"],_7="auto";function A7(e){return e.type==="IntroBleed"?Yp(e.props?.layout)!=="stacked":!0}function zR(e){let o=Pf(e);return o&&vP(e)&&A7(o)?"light":null}function pve(e){return O7(E7,_7,e)}import{useEasel as Eg}from"efficient-easel/easel";import{useEffect as U7}from"react";import{useEaselApi as j7}from"efficient-easel/easel";import{find as F7,walk as UR}from"efficient-easel/data";var B7=()=>"",R7=e=>Jm(Mt([e],B7));function KR(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(R7))])),a=Jm(e);return Object.keys(r).find(n=>r[n].has(a))??null}var L7=()=>({press:[ns(ta),ns(Gs)],delivery:[gI()]}),D7={},Ig=e=>KR(e,L7,D7),N7=e=>Le(e)===ab?"delivery":"press";function kve(e,o){if(!o||Le(e)===Le(o))return e;let t=Ig(e[Pe]),r=N7(e);if(!t||t===r)return e;let a=Km(e,io),n=r==="delivery"?gI():ns(Le(e)?Gs:ta),s=Mt([n],Vm(a));return{...e,[Pe]:s}}var M7=()=>({cards:[fn(ta),fn(Gs)],label:[cn(!1),cn(!0)]}),H7={},W7=e=>KR(e,M7,H7);function vve(e,o){if(!o||e.cardStyle==="label-only"==(o.cardStyle==="label-only"))return e;let t=W7(e[Pe]),r=e.cardStyle==="label-only"?"label":"cards";if(!t||t===r)return e;let a=Km(e,iw),n=Array.isArray(e.items)&&e.items.some(i=>ho(i?.href)!==void 0),s=r==="label"?cn(n):fn(Le(e)?Gs:ta),l=Mt([s],Vm(a));return{...e,[Pe]:l}}var jR=(e,o)=>II.every(t=>JSON.stringify(e[t])===JSON.stringify(o[t]));function GR(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 $7(e,o){let t=gg(e),r=gg(o);if(!t?.props||!r?.props||r.props.id!==t.props.id||Le(t.props)===Le(r.props))return e;let a=Ig(t.props[Pe]);if(!a||a===Ig(r.props[Pe]))return e;let n=ye(e.columns);return n===void 0?e:a==="delivery"&&jR(e,Ra(n))?GR(e,Sp(n)):a==="press"&&jR(e,Sp(n))?GR(e,Ra(n)):e}function qR(e){let o=ru.get(e);o?o.count+=1:ru.set(e,{count:1,stop:z7(e)});let t=!1;return()=>{let r=ru.get(e);t||!r||(t=!0,r.count-=1,!(r.count>0)&&(r.stop(),ru.delete(e)))}}var ru=new WeakMap;function z7(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;UR(t,e.config,n=>{if(n.type!==K||!gg(n.props))return;let s=F7(r,e.config,n.props.id);if(!s||s.node===n)return;let l=$7(n.props,s.node.props);l!==n.props&&a.set(n.props.id,l)}),a.size&&e.dispatch({type:"setData",recordHistory:!1,data:n=>UR(n,e.config,s=>{let l=a.get(s.props.id);return l?{...s,props:{...l,id:s.props.id}}:void 0})})})}function VR(){let e=G7();U7(()=>e?qR(e):void 0,[e])}function G7(){try{return j7()}catch{return null}}import{jsx as au}from"react/jsx-runtime";import{useEffect as K7}from"react";import{armPinSteps as q7,armScrollProgress as V7,PIN_ATTR as YR,PIN_CENTRE_ATTR as Y7,PIN_SETTLE_ATTR as X7}from"efficient-shell/format";var J7=`[${YR}]:not([${YR}="stick"]), [${Y7}], [${X7}]`;function XR({armed:e,children:o}){return K7(()=>{if(!e)return;let t=V7(),r=document.querySelector(J7)?q7(document):()=>{};return()=>{r(),t()}},[e]),o}function yg(){return{style:{"--sf-page-width":Ho}}}function Z7({children:e}){return au("div",{style:yg().style,children:e})}function Mve({pageBackground:e,inheritBackground:o=!1,chrome:t=!1,children:r}){return au("div",{style:{...o?{}:Bf(e),background:"var(--bg)",minHeight:"100%",overflowX:"clip"},children:au(XR,{armed:!t,children:au(Z7,{children:r})})})}import{jsx as JR,Fragment as Q7}from"react/jsx-runtime";import{createContext as QR,useContext as ZR}from"react";var eL=QR({}),oL=eL.Provider,tL=QR(void 0),rL=tL.Provider;function zve(e){let{SectionTextParts:o}=ZR(eL),t=ZR(tL);return o?JR(o,{...e,sizeCaps:t}):JR(Q7,{children:e.children})}import{jsx as gq}from"react/jsx-runtime";import{useEffect as yq,useRef as Sq}from"react";var aL="data-easel-overlay-portal";function nu(e){return e.setAttribute(aL,"true"),()=>{e.removeAttribute(aL)}}import{jsx as fq}from"react/jsx-runtime";import{useEffect as cq,useRef as yL}from"react";import{usePreviewParts as pq}from"efficient-easel/draw/client";import{jsx as eq}from"react/jsx-runtime";import{createContext as oq,useContext as tq,useMemo as rq,useState as aq}from"react";var nq={partStyle:null,setPartStyle:()=>{}},nL=oq(nq);function qve({children:e}){let[o,t]=aq(null),r=rq(()=>({partStyle:o,setPartStyle:t}),[o]);return eq(nL.Provider,{value:r,children:e})}function us(){return tq(nL)}import{usePreviewDevice as uq}from"efficient-easel/draw/client";import{shownTier as mq}from"efficient-easel/screen/lib/document/device-fields";import{decodePartId as SL,encodePartId as xq}from"efficient-easel/draw";import{BLOCK_ATTRIBUTE as hq}from"efficient-easel/canvas";import{createPreviewSelectionContext as sq}from"efficient-easel/draw/client";var Ma="Scrolling Bar",{Provider:Xve,useSelection:sL}=sq("selectedHeroId"),Sg="data-sf-hero-ticker";function lL(e){return`${e}::ticker`}function iL(e){return!e||!e.endsWith("::ticker")?null:e.slice(0,-8)||null}import{BLOCK_ATTRIBUTE as Ur}from"efficient-easel/canvas";import{createPreviewSelectionContext as lq}from"efficient-easel/draw/client";var{Provider:Qve,useSelection:dL}=lq("selectedLocationPartId");function su(e,o,t){return`${e}::${o}::${t}`}function lu(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(`[${Ur}]`)?.getAttribute(Ur)===o}function fL(e,o,t){let r=e.querySelectorAll("*"),a=new Map(t.map(y=>[y.key,gf(y.label)])),n=[],s=new Set;for(let y=0;y<r.length;y+=1){let b=r[y];if(!Cg(b,o))continue;let F=b.getAttribute(uv);if(!F)continue;let _=a.get(F);n.push({element:b,partId:jt(o,F),..._?{label:_}:{}}),s.add(b)}let l=[],i=new Set;for(let y=0;y<r.length;y+=1){let b=r[y];if(!Cg(b,o)||s.has(b))continue;let F=xv(b.textContent??"");if(!F)continue;let _=b.closest(`[${bx}]`)?.getAttribute(bx)||null;_&&i.add(_.replace(/\[\d+\]$/u,"")),l.push({element:b,text:F,row:_})}let d=y=>l.filter(b=>b.row===pv(y.key,y.row.index)),f=l.filter(y=>y.row===null),m=y=>y.row&&i.has(y.key)?d(y):i.size?f:l,u=new Map,h=[],I=y=>y.row?`${y.key}.${y.row.rowKey}`:null,S=new Map;for(let y of t){let b=I(y);if(!b||i.has(y.key))continue;let F=S.get(b);F?F.push(y):S.set(b,[y])}let T=new Set;for(let[y,b]of S){if(b.length<2)continue;let F=b.flatMap(w=>w.texts);if(new Set(F).size===F.length)continue;let _=m(b[0]).filter(w=>F.includes(w.text));if(_.length!==b.length)continue;let D=[...b].sort((w,E)=>(w.row?.index??0)-(E.row?.index??0));for(let w=0;w<D.length;w+=1){let E=D[w],g=_[w].element,v={key:E.key,partKey:Tn(E.key,E.row),exact:!0},O=u.get(g);O?O.push(v):(u.set(g,[v]),h.push(g))}T.add(y)}let P=new Map;for(let y of t){if(T.has(I(y)??""))continue;let b=Tn(y.key,y.row);for(let F of y.texts)for(let _ of m(y)){if(_.text!==F)continue;let D=P.get(_.element);D?D.add(b):P.set(_.element,new Set([b]))}}let L=(y,b)=>[...P].some(([F,_])=>F!==y&&!_.has(b)&&F.contains(y));for(let y of t){if(T.has(I(y)??""))continue;let b=Tn(y.key,y.row);for(let F of y.texts){let _=[],D=null;for(let g of m(y))g.text===F?L(g.element,b)||_.push(g.element):!_.length&&g.text.includes(F)&&(!D||g.text.length<=D.length)&&(D={element:g.element,length:g.text.length});let w=_.length?_:D?[D.element]:[],E=w.filter(g=>!w.some(v=>v!==g&&g.contains(v)));for(let g of E){let v={key:y.key,partKey:b,exact:_.length>0},O=u.get(g);O?O.push(v):(u.set(g,[v]),h.push(g))}}}let C=[...n];for(let y of h){let b=u.get(y)??[],F=b.some(_=>_.exact)?b.filter(_=>_.exact):b;if(new Set(F.map(_=>_.partKey)).size===1){let _=a.get(F[0].key);C.push({element:y,partId:jt(o,F[0].partKey),..._?{label:_}:{}});continue}new Set(F.map(_=>_.key)).size===1&&C.push({element:y,partId:jt(o,F[0].key)})}return C}function bg(e,o,t){let r=e.querySelectorAll(`[${ze}]`);for(let n=0;n<r.length;n+=1){let s=r[n];Cg(s,o)&&(s.removeAttribute(ze),s.removeAttribute(wg))}let a=[];for(let{element:n,partId:s,label:l}of t)n.setAttribute(ze,s),l&&n.setAttribute(wg,l),a.push(n);return a}function uL(e,o,t,r,a,n=()=>null){let s=null,l=null,i=null,d=()=>{let f=t(),m=f?.getAttribute(Ur)??null;if(!f||!m)return!1;s=m;let u=fL(e,m,o);return a(f,m,bg(e,m,u)),i=n(()=>{let h=fL(e,m,o);iq(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 iq(e,o){return e.length===o.length&&e.every((t,r)=>t.element===o[r].element&&t.partId===o[r].partId)}function lPe(e,o){let t=e?.closest?.(`[${ze}],[${Or}]`),r=t?.getAttribute(ze)??t?.getAttribute(Or),a=r?cv(r):null;if(t&&r&&a?.nodeId===o&&a.propKey)return{id:r,element:t,whole:pL(t,r),label:cL(t,r)};let n=e?.closest?.(xL.slice(2).map(l=>`[${l}]`).join(","));if(!n)return null;let s=n.closest?.(`[${Ur}]`)?.getAttribute(Ur)===o?hL(n,o):null;return s?{id:s,element:n,whole:pL(n,s),label:cL(n,s)}:null}function cL(e,o){let t=lu(o);if(t)return t.part==="map"?"Map":t.part==="city"?"City":"Image";let r=ep(o);return r?ur[r.part]:iL(o)?Ma:e.getAttribute(wg)??void 0}var mL="data-loc-pick",xL=[ze,Or,Zl,Sg,mL];function hL(e,o){let t=e.getAttribute(ze)??e.getAttribute(Or);if(t)return t;let r=e.getAttribute(Zl);if(r)return va(o,r);if(e.getAttribute(Sg)!==null)return lL(o);let a=e.getAttribute(mL)?.split(":");return a&&(a[1]==="image"||a[1]==="map"||a[1]==="city")&&/^\d+$/.test(a[0])?su(o,Number(a[0]),a[1]):null}function pL(e,o){let t=e.closest?.(`[${Ur}]`),r=t?.getAttribute(Ur);if(!t||!r)return!1;let a=new Set;for(let n of t.querySelectorAll(xL.map(s=>`[${s}]`).join(","))){if(n.closest?.(`[${Ur}]`)!==t)continue;let s=hL(n,r);s&&a.add(s)}return a.size===1&&a.has(o)}import{ENTRANCE_ATTR as IL,playEntrance as dq}from"efficient-shell/format";var kg=new WeakMap;function gL(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=lk(f),u=r.get(d),h=u?Un.next(u,m,a):null;r.set(d,h?h.seen:Un.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=Dc(d.element);f&&l.set(f,[...l.get(f)??[],d])}for(let[d,f]of l){let m=I=>Nl(o(I.partKey)??{}),u=Kn(f.filter(I=>m(I).entrance));if(u){let I=o(u.partKey)??{};n.push(Rc(d,el(I,a)));let S=kg.get(d);kg.set(d,u.partKey),(s.get(u.partKey)||S!==void 0&&S!==u.partKey)&&d.hasAttribute(IL)&&dq(d)}else kg.delete(d);let h=d.hasAttribute(IL)?void 0:Kn(f.filter(I=>Kt(o(I.partKey)??{},a).effect!=="none"));h&&n.push(Lc(d,Kt(o(h.partKey)??{},a))),f.some(I=>m(I).hover==="lift")&&(Nc(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??=bb(a),t??=rx(a)}return{faceRole:o??"body",sizeGroup:t}}function iu(e,o={},t=Ib){let r=e.style,a={};for(let i of vx)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=Mv({fontSize:n.fontSize,fontWeight:n.fontWeight,lineHeight:n.lineHeight,letterSpacing:n.letterSpacing,textAlign:n.textAlign,textTransform:n.textTransform,paddingTop:n.paddingTop},Hv(n.fontFamily,i=>s.getPropertyValue(i),t));for(let i of vx)r[i]=a[i];return l}function bL({needles:e,styles:o,motions:t=Bc,type:r,sizeCaps:a,children:n}){let s=yL(null),{selectedPartId:l}=pq(),{setPartStyle:i}=us(),d=mq(uq()),f=Qo(),m=JSON.stringify(e),u=JSON.stringify(o),h=JSON.stringify(t),I=yL(new Map);return cq(()=>{let S=s.current;if(!S)return;let T=[],P=()=>S.parentElement,L=w=>{let E=P();if(!E)return null;let g=new MutationObserver(w);return g.observe(E,{attributes:!0,attributeFilter:[hq]}),()=>g.disconnect()},C=w=>{let E=new MutationObserver(w);return E.observe(S,{childList:!0,subtree:!0,characterData:!0}),()=>E.disconnect()},y=[];T.push(()=>{for(let w of y)w();y=[]});let b=JSON.parse(m),F=JSON.parse(u),_=JSON.parse(h),D=uL(S,b,P,L,(w,E,g)=>{for(let A of y)A();y=[];let v=[];for(let A of g){let M=A,G=nu(M);G&&y.push(G),M.getAttribute(ze)===l&&v.push(M)}let O=Wv(E,l,v,A=>wb(A)!==null||rx(A)!==null);if(O&&l){let A=O,M=SL(l)?.propKey??"",G=dl(A)?{}:Nv($v(F,fr(r,M)),d,{blockDrawsStyle:cl(r,M),sizeCap:ia(a,M),fonts:f});i({partId:l,...vg(A),base:iu(A,G,f),inks:uf(A),...(()=>{let $=dl(A);return $?{styleOwner:$}:{}})()})}kx(g.filter(A=>!dl(A)).map(A=>({element:A,partId:A.getAttribute(ze)??""})),F,A=>iu(A,void 0,f),A=>fr(r,A),void 0,d,A=>cl(r,A),A=>ia(a,A),f);let k=[...S.querySelectorAll(`[${mv}="${CSS.escape(E)}"][${If}]`)];k.length&&kx(k.map(A=>({element:A,partId:xq(E,A.getAttribute(If)??"")})),F,void 0,A=>A,void 0,d,void 0,void 0,f),y.push(gL([...g.filter(A=>!dl(A)).map(A=>{let M=A,G=SL(M.getAttribute(ze)??"")?.propKey??"";return{element:M,partKey:fr(r,G)}}),...k.map(A=>({element:A,partKey:A.getAttribute(If)??""}))],A=>_[A],nk(d),I.current))},C);return()=>{D();for(let w of T)w()}},[m,u,h,l,i,d,r,f]),fq("div",{ref:s,[Fh]:"",style:{display:"contents"},children:n})}import{shownTier as bq}from"efficient-easel/screen/lib/document/device-fields";import{usePreviewDevice as wq,usePreviewParts as Cq}from"efficient-easel/draw/client";var Si={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)]"},Iq={tag:{label:"Tag",follows:"Labels",builtIn:mn(Si.tag),writable:!0},name:{label:"Name",follows:"Heading 2",builtIn:mn(Si.name),writable:!0},body:{label:"Body",follows:"Body",builtIn:mn(Si.body),writable:!0},price:{label:"Price",follows:"Labels",builtIn:mn(Si.price),writable:!0},link:{label:"Link",follows:"Labels",builtIn:mn(Si.link),writable:!0}},wL=Iq;var WPe=ra,CL={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 kL={SpecTable:CL,FAQ:Iw,Collections:wL,Contents:qp};function vL(){return rn("efficient.section-text-regions",()=>new Map)}function VPe(e){let o=vL();for(let[t,r]of Object.entries(e)){if(Qe(kL,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 ms(e){return e?z(kL,e)??vL().get(e)??null:null}function PL({nodeId:e,sectionType:o,partStyles:t,sizeCaps:r,children:a}){let n=Sq(null),{selectedPartId:s}=Cq(),{setPartStyle:l}=us(),i=bq(wq()),d=Qo(),f=JSON.stringify([t??null,r??null]);return yq(()=>{let m=n.current,u=ms(o);if(!m||!e||!u)return;let h=[],I=Array.from(m.querySelectorAll(`[${ra}]`));for(let S of I){let T=Xm(u,S.getAttribute(ra));if(!T)continue;let P=nu(S);P&&h.push(P);let L=Ks(T),C=jt(e,L);S.setAttribute(Or,C);let y=t?.[L];if(u[T].sized&&zv(y)){let b=Uv(y,i,{sizeCap:ia(r,L),fonts:d}),F={fontFamily:S.style.fontFamily,fontSize:S.style.fontSize},_=S.getAttribute(sa);b.fontFamily&&(S.style.fontFamily=b.fontFamily),b.fontSize&&(S.style.fontSize=b.fontSize);let D={fontFamily:b.fontFamily?S.style.fontFamily:void 0,fontSize:b.fontSize?S.style.fontSize:void 0},w=y?.textStyle;Pv(w)&&S.setAttribute(sa,w),h.push(()=>{Kv(S.style,F,D),_===null?S.removeAttribute(sa):S.setAttribute(sa,_)})}if(C===s){let b=iu(S,Gv(y,u[T],i,d),d);l({partId:C,...vg(S),base:b})}}return()=>{for(let S of h)S();for(let S of I)S.removeAttribute(Or)}},[e,o,s,l,i,f,d]),gq("div",{ref:n,style:{display:"contents"},children:a})}import{jsx as Pg,Fragment as TL}from"react/jsx-runtime";import{createContext as kq,useContext as OL,useMemo as vq}from"react";var Tg=kq(null),EL=e=>e==null||e===""?void 0:String(e);function Og({content:e,children:o}){let t=vq(()=>th(e),[e]);return Pg(Tg.Provider,{value:t,children:o})}function pTe({id:e,children:o}){let t=OL(Tg),r=EL(e);return Pg(TL,{children:o(r?t?.entries.get(r):void 0)})}function uTe({id:e,children:o}){let t=OL(Tg),r=EL(e);return Pg(TL,{children:o(r?t?.numbers.get(r):void 0)})}var Eq={SectionTextParts:PL},_q="color-mix(in oklab, var(--bg) 40%, #ffffff)",Aq="12vh";function Fq({style:e,children:o}){let{appState:t}=Eg(u=>u),r=t.data.content,a=t.data.root;if(PP(r))return Ko("div",{className:"sf-themed-content",style:{...e,background:_q,minHeight:"100vh",paddingBottom:Aq},children:Ko("div",{style:{background:"var(--bg)"},children:Ko(Og,{content:r,children:o})})});let n=Ex(r)&&OP(a,r),s=Ex(r)?EP(a,r):null,l=s?{[TP]:s}:null,i=NC(a?.widthChoice),d=i?{[DC]:i}:null,f=n?null:zR(r),m=f?{[$R]:f}:null;return Ko("div",{className:`sf-themed-content${n?` ${CP}`:""}`,style:e,...m,...l,...d,children:Ko("div",{style:{background:"var(--bg)",minHeight:"100%"},children:Ko(Og,{content:r,children:o})})})}function $Te({propsTheme:e,propsFonts:o,propsCornerStyle:t,propsCornerRadiusPx:r,propsHeadingCompression:a,propsHeadingTypography:n,pageBackground:s,chromeInheritsSiteBackground:l,suppressPreviewNav:i,footer:d,overlay:f,children:m}){VR();let u=Eg(I=>I.appState.data.root?.props),h=Eg(I=>eT(I.appState.data.content));return Ko(_g,{siteFooterRootProps:u?.kind===tP?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=>_L(Pq,{children:[Ko(Fq,{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}=DR(),h=Oq(()=>oT(u,f),[u,f]),{theme:I,fonts:S,sizes:T,cornerRadiusPx:P,cardShadow:L,shadowColor:C,cardGap:y,hoverEffect:b,headingCompression:F,siteWidth:_,siteGutter:D,siteGutterPhone:w,blockGap:E,blockGapPhone:g,siteLengthUnits:v,headingTypography:O,heroBackgroundFollowsWidth:k,photographyGrayscale:A,textStyles:M,wordStyles:G,themeFromDocument:$}=vo(),de=Qo(),le=$?e:I,ee=$?o:S,Ie=$?void 0:T,ae=$?r===void 0?Vw[qw(t)]:Yw(r):P,xe=$?{}:v,ge=$?a:F,Je=$?n:O,Ze=[qT(KT($?void 0:M),de),VT(tC(Je).italicStrong)].filter(Boolean).join(`
|
|
336
|
+
`),mo=yg(),qe={...Nw(le),...Kw(Ie),...rC(Je),...mo.style,...l?{}:Bf(s)};return _L("div",{className:`sf-theme-surfaces sf-theme-accent ${[AC($?void 0:w),lP($?void 0:g)].filter(Boolean).join(" ")}`.trim(),style:{...Cb(ee,de),...Pb($?null:G,de),...Mw(le),...Ww(le),...$w(le),...Md(le),...Xw(ae,xe.cornerRadiusUnit),...eC($?void 0:L,$?void 0:C,$?void 0:b),...mC($?void 0:_,xe.siteWidthUnit),...OC($?void 0:D,xe.siteGutterUnit),..._C($?void 0:w,xe.siteGutterPhoneUnit),...nP($?void 0:E,xe.blockGapUnit),...sP($?void 0:g,xe.blockGapPhoneUnit),...zd($?void 0:k)},"data-sf-headings":oC(ge),[SC]:$d(d??h),[rf]:_k(d??h),"data-sf-card-shadow":$?void 0:Jw(L),"data-sf-card-gap":$?void 0:Zw(y),"data-sf-card-hover":$?void 0:Qw(b),onClickCapture:i,children:[Ze?Ko("style",{"data-sf-text-styles":"",dangerouslySetInnerHTML:{__html:Ze}}):null,Ko(MR,{grayscale:$?void 0:A,children:Ko(oL,{value:Eq,children:Ko(WR,{ink:Dw(le),children:Ko(Tq,{fallback:null,children:Ko(tO,{rootProps:d??h,children:m(qe)})})})})})]})}var AL=e=>{e.target?.closest?.("a")&&e.preventDefault()};var Bq=/(-?(?:\d+\.?\d*|\.\d+))(?:s|d|l)?vh\b/g;function Rq(e,o){return e.replace(Bq,(t,r)=>`${+(Number(r)*o/100).toFixed(3)}px`)}function BL(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=Rq(a,o);n!==a&&e.setProperty(r,n,e.getPropertyPriority(r))}}function RL(e,o){for(let t of Array.from(e)){let r=t.style;r&&BL(r,o);let a=t.cssRules;a&&RL(a,o)}}function FL(e,o){for(let t of Array.from(e.styleSheets)){let r;try{r=t.cssRules}catch{continue}RL(r,o)}for(let t of Array.from(e.querySelectorAll('[style*="vh"]')))BL(t.style,o)}function LL(e,o){FL(e,o);let t=e.defaultView,r=0,a=()=>{r||!t||(r=t.requestAnimationFrame(()=>{r=0,FL(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 $q=1440,Fg=800;function NL({starter:e,config:o,metadata:t,busy:r,onAdd:a}){let{mirrorHostStyles:n}=gl(),[s,l]=Ag(null),[i,d]=Ag(Fg),[f,m]=Ag(null);return Lq(()=>{if(!s)return;let u=LL(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]),DL("div",{className:"sf-starter",children:[DL(Mq,{padding:"none",className:"sf-starter-picture",children:[Ot("div",{inert:!0,className:"sf-starter-frame",children:Ot(Hq,{width:$q,height:i,children:Ot(Dq,{id:`page-starter-${e.id}`,title:e.title,mirrorStyles:n,onDocument:l,height:"fill",children:Ot(ec,{document:s??void 0,children:Ot(_g,{onClickCapture:AL,body:u=>Ot("div",{className:"sf-themed-content",style:u,children:Ot("div",{ref:m,style:{background:"var(--bg)"},children:Ot(RR,{config:o,data:e.layout,metadata:t})})})})})})})}),Ot("div",{className:"sf-starter-add",children:Ot(Nq,{onClick:()=>a(e),loading:r,"aria-label":c("Add \u201C{name}\u201D",{name:e.title}),children:c("Add page")})})]}),Ot(Wq,{size:"sm",children:e.title})]})}import{useMemo as rZ}from"react";import{sessionRegistry as aZ}from"efficient-easel/screen/lib/session";import{useEaselSession as nZ}from"efficient-easel/screen/lib/session-context";import{currentEaselSession as zq}from"efficient-easel/screen/lib/session";var Uq={general:!0,commerce:!0,service:!0};function Bg(e){let o=e?.sets;return o?Object.fromEntries(fb.map(t=>[t,o.includes(t)])):Uq}function Rg(e=zq()){return Bg(e.blocks)}import{currentEaselSession as XL}from"efficient-easel/screen/lib/session";import{SITE_SIDE as WL}from"efficient-easel/screen/lib/content/length-units";var ML=[{text:"Ticker item"},{text:"Ticker item"},{text:"Ticker item"},{text:"Ticker item"}],s0e={label:"Scrolling Bar",defaultProps:{items:[],tone:"scrim",borders:!0,size:ew,separator:ow,scrollDirection:Ii}};var HL=()=>[{text:c("Spec label"),tone:"normal"},{text:c("Spec value"),tone:"muted"},{text:c("Spec label"),tone:"normal"},{text:c("Spec value"),tone:"muted"}],d0e={label:"Spec Strip",defaultProps:{cells:[{text:"",tone:"normal"},{text:"",tone:"normal"}],fill:"dark"}};function yo(e,o,t,r={}){return{type:e,props:{...o(e),id:t(e),...r}}}function $L(e,o,t){return yo(K,e,o,{...t,sectionPaddingTop:void 0,sectionPaddingBottom:void 0})}var du={Manifesto:(e,o)=>({type:K,props:{...e(K),id:o(K),direction:"row",share:"equal",sectionHeightMode:"screen",name:"Brand Text",content:[yo(K,e,o,{direction:"column",justify:"center",blockSpacing:"gap",name:"Text",sectionPaddingTop:100,sectionPaddingBottom:100,sectionPaddingLeft:WL,sectionPaddingRight:WL,content:[yo("Text",e,o,tr()),yo("Text",e,o,gr()),yo("Text",e,o),yo("Stats",e,o)]}),$L(e,o,{direction:"column",name:"Picture",content:[]})]}}),Split:(e,o)=>({type:K,props:{...e(K),id:o(K),direction:"row",share:"equal",sectionHeightMode:"screen",sectionHeightValue:70,name:"Image & Text Split",content:[yo(K,e,o,{direction:"column",justify:"center",blockSpacing:"gap",name:"Text",sectionPaddingTop:100,sectionPaddingBottom:100,sectionPaddingLeft:60,sectionPaddingRight:60,content:[yo("Text",e,o,tr()),yo("Text",e,o,gr()),yo("Text",e,o),yo("ButtonBlock",e,o)]}),$L(e,o,{direction:"column",name:"Image",content:[yo("ImageBlock",e,o)]})]}}),Subscribe:(e,o)=>({type:K,props:{...e(K),id:o(K),direction:"column",name:"Subscribe",content:[yo("Text",e,o,gr()),yo("Text",e,o),yo("Form",e,o)]}}),Ticker:(e,o)=>zL("Scrolling Bar",sc,xa,ML.map(t=>({text:t.text,style:lc,muted:!0})),e,o),SpecStrip:(e,o,t)=>zL("Spec Strip",t?.theme?{...vl,sectionAccent:Nd(ar(t.theme))}:{...vl,sectionBorder:{top:1}},ha,HL().map(r=>({text:r.text??"",style:Pl,muted:r.tone==="muted"})),e,o)};function zL(e,o,t,r,a,n){return yo(K,a,n,{...ma,...o,blockSpacing:"gap",padV2:!0,name:e,sectionPaddingTop:t.top,sectionPaddingBottom:t.bottom,sectionPaddingTopPhone:t.topPhone,sectionPaddingBottomPhone:t.bottomPhone,content:r.map(s=>yo("Text",a,n,{text:s.text,...s.muted?{tone:"dim"}:{},_partStyles:{text:s.style}}))})}function UL(e){return z(du,e)??null}import{isNodeList as Lg}from"efficient-easel/data";var R0e=Object.keys(mg),jq={Logos:lF,DocMasthead:nB,DocTabs:xB,Timeline:RF,TimelineTrack:LF},Gq={PaymentBadges:iF,PaymentLogosBlock:dF,Integrations:pR};function fu(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]=Lg(n)?n.map(s=>fu(s,o,t)):n;return r.id=t(e.type),{type:e.type,props:r}}var jL=e=>({...e?.theme?{theme:e.theme}:{},...e?.site?{site:e.site}:{},press:!0});function bi(e,o,t=0,r=()=>({})){return(a,n,s)=>{let{nodes:l}=Ea({type:e,props:{...a(e),...r(),id:n(e)}},o,jL(s));return fu(l[t],a,n)}}var Kq={Stats:Vq,Cards:qq};function qq(){let e=Dr("Cards");if(!e)return null;let o=bi("Cards",e,0,RA);return(t,r,a)=>{let n=o(t,r,a);return{...n,props:{...n.props,name:"Cards section"}}}}function Vq(){let e=Dr("StatsParagraph");return e?(o,t,r)=>{let{nodes:a}=Ea({type:"StatsParagraph",props:{...o("StatsParagraph"),...GA(),id:t("StatsParagraph")}},e,jL(r)),n=a[0],s=Lg(n.props.content)?n.props.content.filter(f=>f.props?.cardStyle===void 0):[],l=KL(RI(KA(),"table")),i=s.map(GL),d=fu({...n,props:{...n.props,content:[...i,l]}},o,t);return{...d,props:{...d.props,name:"Stats section"}}}:null}function GL(e){return e.props?.name==="Words"?{...e,props:{...e.props,widthFitPhone:"fill"}}:Lg(e.props?.content)?{...e,props:{...e.props,content:e.props.content.map(GL)}}:e}var KL=e=>Mt([e],(o,t)=>`${o}-seed-${t}`)[0];function Yq(e,o){if(!M1(e,o))return null;let t=z(Kq,e);if(t)return t();let r=Dr(e);return r?bi(e,r,0,z(jq,e)??z(TR,e)??z(Gq,e)):null}function Xq(e){return(o,t,r)=>{let a=n=>{if(n.type==="Stats"){let l=fu(KL(RI([],"list")),o,t);return{...l,props:{...l.props,name:"Numbers"}}}let s=Ye(n,l=>$e(l,a));return s===n?n:{type:n.type,props:s.props}};return a(e(o,t,r))}}function xs(e,o=Oa){let t=UL(e);return t?Xq(t):Yq(e,o)}import{blockTypesIn as qL}from"efficient-easel/screen/lib/document/block-types-in";var VL=()=>({}),YL=new Map;function Jq(e){let o=YL.get(e);if(o)return o;let t=new Set,r=z(ct,e);if(r)for(let s of r.seeds(VL))for(let l of qL({type:r.childType,props:s}))t.add(l);let a=xs(e);if(a){let s=0;for(let l of qL(a(VL,i=>`${i}-${s+=1}`)))t.add(l)}t.delete(e);let n=[...t].sort();return YL.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)&&Jq(i).every(l);return s.set(i,f),f};return{sets:o,offers:l}}var Zq="block-offer";function Ng(e=XL()){return e.cache(Zq,()=>Dg(hn(e)))}function JL(e,o=XL()){let t=Ng(o);return t?t.offers(e):!0}var ZL={name:"catalogueLabel",applies:e=>Qe(ea,e),draw(e,o){e.label=z(ea,o)}};import{jsx as zg}from"react/jsx-runtime";import{parseBlockWidthFit as rV,phoneKey as Et,tabletKey as gt}from"efficient-easel/draw";import{jsx as Qq}from"react/jsx-runtime";import{phoneKey as cu}from"efficient-easel/draw";var QL={name:"sectionGroupAllow",applies:e=>Sf.includes(e),panel(e,o,t,r){let a=e.fields?.sections;a&&(a.allow=[...r.sectionGroupAllow])}},Mg=new Set(Object.keys(kt)),eD={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 tD=Array.from(new Set([...hb.map(e=>e.type),...Mg]));function Hg(e,o){return tD.includes(e)||o?.sitsInBox===!0}var eV=Array.from(new Set([...tD,...md,"GalleryItem"])),oV={not:{context:"parentOffersPositions",is:!1}},tV={not:{context:"parentTileSlot",is:!1}},oD=[ux,cu("gridSpan"),cu("gridRowSpan")],rD={name:"cellWidth",applies:(e,o,t)=>(eV.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=Mo(e.fields??{},a.filter(n=>!oD.includes(n)),oV),e.fields=Mo(e.fields??{},oD,tV)},draw(e){let o=e.render;e.render=t=>{let r=qC(t.gridSpan),a=YC(t.gridRowSpan),n=JC(t[ux]),s=QC(t[cu("gridSpan")]),l=ek(t[cu("gridRowSpan")]),i=o(t);if(r==null&&a==null&&n==null&&s==null&&l==null)return i;let d={};r!=null&&(d[VC]=String(r)),a!=null&&(d[XC]=String(a)),s!=null&&(d[ok]=String(s)),l!=null&&(d[tk]=String(l));let f=n!=null?{[ZC]:n}:void 0;return Qq(fe,{className:"sf-grid-cell",style:f,...d,children:i})}}};function aD(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 wi={not:{context:"heldByANode",is:!0}};function pu(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 nn(s??{})){let i=r(l,s);if(i!==void 0)return i}}};return r(t,null)}var aV=new Set(["Text","Heading"]),nV=new Set(["h1","h2","h3","h4","h5","h6"]);function nD(e,o){return e==="Heading"?!0:e!=="Text"?!1:typeof o.tag=="string"&&nV.has(o.tag)?!0:Er(o,"text").textStyle?.startsWith("heading-")===!0}var jr={not:{context:"blockOutsideBox",is:!0}},sD={all:[jr,{not:{context:"boxSharesWidth",is:!0}}]},lD={all:[jr,{not:{context:"boxSharesWidthPhone",is:!0}}]},iD={all:[jr,{not:{context:"boxSharesWidthTablet",is:!0}}]};function pD(e,o,t){return{any:[{field:gt(e),is:o},{all:[{field:gt(e),set:!1},t??{field:e,is:o}]}]}}function uD(e,o,t){return{any:[{field:Et(e),is:o},{all:[{field:Et(e),set:!1},t??{field:e,is:o}]}]}}var mD={any:[{field:"textFit",is:"shrink"},{all:[{field:"textFit",set:!1},{not:{context:"textWrapsByDefault",is:!0}}]}]},sV=[[["_gBlockSize","minWidth",gt("minWidth"),Et("minWidth"),"maxWidth",gt("maxWidth"),Et("maxWidth")],jr],[["widthFit"],sD],[[gt("widthFit")],iD],[[Et("widthFit")],lD],[["width"],{all:[sD,{field:"widthFit",is:"fixed"}]}],[[gt("width")],{all:[iD,pD("widthFit","fixed")]}],[[Et("width")],{all:[lD,uD("widthFit","fixed")]}]],dD=pD("textFit","shrink",mD),fD=[[["_gText","textFit",gt("textFit"),Et("textFit")],jr],[["minFont"],{all:[jr,mD]}],[[gt("minFont")],{all:[jr,dD]}],[[Et("minFont")],{all:[jr,uD("textFit","shrink",dD)]}]],uu=(e,o)=>Xt(o.appState,e.props?.id),mu=e=>!!e&&typeof e.type=="string"&&xd(e.type)!==null,Wg=e=>(e.type==="Flex"||e.type==="HeroGroup")&&_n(e.type,e.props?.direction)==="row",$g=e=>{let o=rV(e);return o!==void 0&&o!=="fit"},lV={blockOutsideBox:(e,o)=>!mu(uu(e,o)),boxSharesWidth:(e,o)=>{let t=uu(e,o);return!mu(t)||!Wg(t)?!1:jm({...t.props,direction:"row"})!==""?!0:Um(t.props?.share)!==""&&!$g(e.props?.widthFit)},boxSharesWidthTablet:(e,o)=>{let t=uu(e,o);if(!mu(t)||!Wg(t))return!1;if(aw(t.props?.[gt("columns")])!==""||jm({...t.props,direction:"row"})!=="")return!0;let r=rw(t.props?.[gt("share")])??t.props?.share;return Um(r)!==""&&!$g(e.props?.[gt("widthFit")]??e.props?.widthFit)},boxSharesWidthPhone:(e,o)=>{let t=uu(e,o);if(!mu(t)||!Wg(t))return!1;let r=t.props?.phoneRow;return(Number(r)===2||Number(r)===3)&&!nw(r,t.props?.[Et("share")])&&!$g(e.props?.[Et("widthFit")]??e.props?.widthFit)}},iV=e=>/^_[gds][A-Z]/.test(e);function dV(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&&!iV(r[n][0]);)n++;return Object.fromEntries([...r.slice(0,n),...Object.entries(t),...r.slice(n)])}function cD(e,o,t){let r=Object.entries(e);return Object.fromEntries([...r.slice(0,o),...Object.entries(t),...r.slice(o)])}function fV(e,o,t){let r=Object.keys(o);if(r.includes("_dSize")){let{_gBlockSize:a,...n}=t;return cD(o,r.indexOf("_dSize")+1,n)}return cV.has(e)&&r.includes("_gSpacing")?cD(o,r.indexOf("_gSpacing"),t):{...o,...t}}var cV=new Set(["Text","Heading"]);function pV(e,o){let{_gText:t,...r}=o;return dV(e,"_gText",r)??{...e,...o}}function uV(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",gt("textFit"),Et("textFit")])a in r&&(r[a]=e[a]);o.set(t,r)}return r}}var xD={name:"blockSize",applies:(e,o,t)=>Hg(e,t)&&!!t&&typeof t.render=="function",panel(e,o,t){let r=aV.has(o),{text:a}=t.blockSizeFields(r?{tablet:!0,textFit:o==="Heading"?"shrink":"wrap"}:{}),{size:n}=t.blockSizeFields({tablet:!0}),s=fV(o,e.fields??{},at(n,sV));if(r){let l=at(a,fD);if(s=pV(s,l),o==="Text"){let i=at(t.blockSizeFields({tablet:!0,textFit:"shrink"}).text,fD),d=uV(i),f=e.resolveFields,m=(u,h)=>{let I=f?f(u,h):h.fields,S=T=>nD(o,u?.props??{})?d(T??h.fields):T;return I instanceof Promise?I.then(S):S(I)};e.resolveFields=m}}e.fields=s,Ht(e,{...lV,textWrapsByDefault:l=>!nD(o,l.props??{})})},draw(e,o){mV(e,o)}};function mV(e,o){let t=e.render;e.render=r=>{let a=up(r),n=uI(a),s=t(r),l=n&&uI(a,{atSectionLine:!0});return n===null?s:zg(xV,{size:n,sectionSize:l??n,atEdge:o===K,canvasAttrs:r.editor?.isEditing?Q1(a):hD,inCell:Z1(a),fillsPhone:Y1(a),widens:eA(a),children:s})}}var hD={};function xV({size:e,sectionSize:o,atEdge:t,canvasAttrs:r,inCell:a,fillsPhone:n,widens:s,children:l}){let i=lf(),d=Pr(t?"edge":"by-box"),f=d?e:o,m=f.className,u=i?.phoneCells===!0,h=n&&i?.phoneRowFits===!0,I=s?zg(CE,{children:l}):l;return zg(Tr,{className:[m,u?a:"",h?V1:""].filter(Boolean).join(" "),...Object.keys(f.style).length?{style:f.style}:{},attrs:d&&r!==hD?{...f.attrs,...r}:f.attrs,children:I})}import{Fragment as TV,jsx as gu}from"react/jsx-runtime";import{jsx as To,Fragment as Kg}from"react/jsx-runtime";import{createContext as hs,useContext as _t}from"react";var hV=new Set(["Flex","Grid"]);function Gr(e){return typeof e=="string"&&hV.has(e)}var Ha="contentWidth",Ug="full",jg="content";function ki(e){let o=e?.[Ha];return o===Ug?!1:o===jg?!0:void 0}function ID(e,o){return e&&!o}function xu(e){return e.loop==="scroll"&&e.direction!=="tabs"&&e.direction!=="accordion"&&!Jk(e)&&!mF(e.scrollDirection)}function Ci(e,o){return Gr(e)&&xu(il(o,!1))?yn({}):yn(o)}function hu(e,o){return typeof e!="string"||!Ud(e)||Js[e]==="rawMarkup"?Ci(e,o).background??"full":Ci(e,o).background??jd(o).background}function Iu(e){return e!=="full"}function gD(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=Gr(d?.type),u=(l?Ci(d?.type,f).content:null)==="content"?!0:s,h=m&&(n.inBox?ki(f)??u:u),I={insideGutter:n.insideGutter||h||m&&xu(il(f,i)),inBox:n.inBox||m};for(let S of Nt({type:d?.type,props:f})){let T=f[S],P=r(T,I,u,!1,i||aa(d?.type,S));if(P!==void 0)return P}}};return r(e,{insideGutter:!1,inBox:!1},t,!0,!1)}var IV=" [--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))))]",gV="[--sf-edge-g:0px] [--sf-edge-al:var(--sf-edge-l)] [--sf-edge-ar:var(--sf-edge-r)]",yV="[--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)))]",yD="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))] ${yD}`;function SD(e,o=!1){let t={},r=e.pad??{},a=Pk({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=br(e.site?"site":"box"),l=a.classes.includes(s.className.split(" ")[0]),i=e.gutter?`${s.className} ${s.edge}${IV}`:`${gV}${l?` ${s.className}`:""}`,d=o?` ${kC}${e.gutter?` ${vC}`:""}`:"";return{className:`${i} ${yV}${d}`,style:t}}function _Oe(e,o=!1){let{className:t,style:r}=SD(e,o);return{className:`${t} ${SV}`,...Object.keys(r).length?{style:r}:{}}}var bV="[--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 wV="--sf-edge-beyond";function bD(e){return`max(0px,calc((${e===null?Xs:`min(${Xs},${e})`} - ${Ho}) / 2))`}var CV=`${bV} 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))] ${yD}`;function AOe(e){let{className:o,style:t}=SD(e);return{className:`${o} ${CV}`,style:{...t,[wV]:e.beyond??"0px"}}}var vi=hs(!1);function zOe(){return _t(vi)}function UOe({children:e}){return To(vi.Provider,{value:!0,children:e})}var Gg=hs(!1);function qg({children:e}){return To(Gg.Provider,{value:!0,children:e})}var wD=hs(null);function Vg({ground:e,children:o}){return To(wD.Provider,{value:e,children:o})}var Yg=hs(!1);function kV(){return _t(Yg)}function CD({atTop:e,nested:o}){return To(Kg,{children:kV()?o:e})}var Pi=hs(void 0);function kD({children:e}){return To(Pi.Provider,{value:null,children:e})}function Xg(){return _t(Pi)===void 0&&!_t(Yg)&&!_t(vi)}function Wa({own:e,followed:o}){return To(Kg,{children:Xg()?e():o()})}var vD=hs(null);function PD({value:e,children:o}){return To(vD.Provider,{value:e,children:o})}function TD({draw:e}){return To(Kg,{children:e(_t(vD))})}function jOe(){return _t(Pi)??null}function OD({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:T}){let P=_t(vi),L=Pt(),C=L?` ${br(I?"site":"box").onceFrame}`:"",y=_t(Gg),b=ID(e,P),F=b&&!y,_=lt(),D=!!(l&&F),w=D?u:ko(u??"",_.className)||void 0,E=D||!_.className?i:{...i,..._.attrs},g=s?na(s,F):null,v=g&&L?{root:g.root?{...g.root,className:nt(g.root.className,!0)}:null,outer:g.outer?{...g.outer,className:nt(g.outer.className,!0)}:null}:g,O=v?.root??null,k=l&&!F?l:null,A=d&&!h?L?`${lx} ${wC(I?"site":"box")}`:lx:null,M=[F?`${o}${C}`:t,F?A:null,O?.className,k?bk:null].filter(Boolean).join(" "),G=vV(h&&F,O||k?{...a,...O?.style,...k}:a),$=_t(Pi),de=_t(wD),le=d&&f&&$===void 0?{gutter:b,...s?{pad:s.values}:{},beyond:b&&y?bD(de):"0px",...I&&b?{site:!0}:{}}:null,ee=d?To(Yg.Provider,{value:!0,children:To(Pi.Provider,{value:le,children:T})}):T,Ie=b?To(vi.Provider,{value:!0,children:ee}):ee,ae=v?.outer??null,xe=E&&Object.keys(E).length>0?E:null,ge=To("div",{...ae?null:xe,className:!ae&&w?M?`${M} ${w}`:w:M,style:ae||!m?G:{...G,...m},"data-tab-label":n,...ae?null:S,children:y?To(Gg.Provider,{value:!1,children:b&&!h?To("div",{className:A?`${r}${C} ${A}`:`${r}${C}`,children:Ie}):Ie}):Ie}),Je=ae?To("div",{...xe,className:w?`${ae.className} ${w}`:ae.className,style:m?{...ae.style,...m}:ae.style,...S,children:ge}):ge;return _.scope(l&&F?To("div",{className:ko(Qd,_.className),style:{display:"contents",...l},..._.attrs,children:Je}):Je)}function vV(e,o){return e?{...o,paddingLeft:0,paddingRight:0}:o}import{jsx as PV}from"react/jsx-runtime";function ED({children:e}){return PV(fe,{className:hF,children:e})}function OV({side:e,children:o}){return Xg()?gu(ED,{children:gu(fe,{className:IF(e),children:o})}):gu(TV,{children:o})}var _D={name:"boxJoin",applies:(e,o,t)=>e===K&&!!t&&typeof t.render=="function",draw(e){let o=e.render;e.render=t=>{let r=Hp(t.join);return r?gu(OV,{side:r,children:o(t)}):o(t)}}};var AD=(e,o)=>e.fields?.[o]?.type==="slot",EV=(e,o)=>AD(o,Pe)||Bd(e).some(t=>AD(o,t)),FD={name:"cardTemplateOnInsert",applies:(e,o,t)=>EV(e,t),panel(e,o){let t=e.resolveData;e.resolveData=(r,a)=>{let n=r.props??{},s=a?.trigger,l=s==="insert"?Ed(o,n):s==="copy"?Od(o,n):n,i=l===n?r:{...r,props:l};return t?t(i,a):i}}};import{jsx as Oi}from"react/jsx-runtime";import{Fragment as $a,jsx as Me,jsxs as Jg}from"react/jsx-runtime";import{createContext as Zg,useContext as Kr,useId as LV}from"react";import{REPEAT_ATTRIBUTE as DV,REPEAT_INDEX_ATTRIBUTE as NV}from"efficient-easel/draw";import{jsx as dEe}from"react/jsx-runtime";import{createContext as FV,useContext as DD,useMemo as BV}from"react";var BD="title";function RD(e){return`${e}Alt`}function _V(e){let o=e.find(t=>typeof t?.url=="string");return{url:o?.url??"",alt:typeof o?.alt=="string"?o.alt:""}}function LD(e,o){let t={[BD]: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}=_V(n);t[r]=s,t[RD(r)]=l}}return t}function AV(e,o){return typeof o!="string"?o.flatMap(t=>AV(e,t)):e===Tf||!_P(e)?[]:o==="image"?_x(e,["images"]).map(t=>({key:t.key,label:t.label,kind:"image",alt:RD(t.key)})):o!=="text"?[]:[{key:BD,label:c("Title")},..._x(e,["text","date"]).map(t=>({key:t.key,label:t.label}))]}var ND=FV(null);function RV(){return DD(ND)?.record??null}function uEe(e){let o=RV();return o!==null&&o.type===e?o:null}function MD(){let e=DD(ND);return BV(()=>e&&e.record.type!==Tf?LD(e.record,e.dateWords):null,[e])}function PEe({props:e,editing:o,children:t}){let r=Kr(Ti);return!o&&ex(e,r?.row)?null:Me($a,{children:t})}var Su=Zg(null);function TEe({field:e,children:o}){let t=Kr(Su);return Me($a,{children:o(t&&t.field===e?t.id:void 0)})}function MV(e,o){return e?.find(t=>!!o[t.field]?.trim()&&!t.gates.some(r=>ex({[an]:r},o)))?.field??""}var Ti=Zg(null),yu=Zg(null),HV={label:"text-[length:var(--size-label,12px)]"},WV=`flex min-h-6 items-center border border-dashed border-line px-2 py-1 ${HV.label} text-fg-dim`;function OEe({name:e,label:o,editing:t}){let r=Kr(yu)?.(e),a=nf()!=="";return r!=null&&r!==!1?a?Me(fe,{className:"contents",children:r}):Me($a,{children:r}):t?Me(fe,{className:WV,children:c("Shown by the section: {name}",{name:o?.trim()||e})}):null}function EEe(){return Kr(Ti)}function Qg({type:e,props:o,children:t}){let r=Kr(Ti),a=MD(),n=r?.row??a;return Me($a,{children:t(_w(e,o,n,r?.ownerType,r?.fields,r?.slot),r,n)})}function $V({attrs:e,selected:o,hover:t,action:r,titleField:a,children:n}){let s=LV(),{press:l,disabled:i}=r,d=r.label?.trim(),f=!d&&a?{id:`${s}-title`,field:a}:null;return Jg("div",{...e,id:s,className:t&&!i?`${wh} ${RE}`:wh,children:[Me("button",{type:"button",[NE]:"",className:i?WE:HE,"aria-pressed":o,...d?{"aria-label":d}:{"aria-labelledby":f?.id??s},...i?{"aria-disabled":!0,tabIndex:-1}:null,onClick:i?void 0:l}),Me(Su.Provider,{value:f,children:n})]})}function _Ee({ownerId:e,ownerType:o,slot:t=Pe,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:T,children:P}){let L=Kr(Ti),C=Kr(Su),y=Kr(yu);if(!r||(r.blockCount??0)<=0)return Me($a,{children:u});let b=L!==null,F=kw(o),_=m??L?.previewHover,D=r.blockCount===1?Me(Kk,{children:Me(r,{className:Nk})}):Me(r,{}),w=new Set,E=(v,O)=>{if(!S)return O;let k=S(v,O);for(;w.has(k);)k=`${k}#${O}`;return w.add(k),k},g=a.map((v,O)=>{let k=l?.[O],A={row:v,index:O,ownerType:o,slot:t,item:n?.[O],nested:b,...s?{fields:s}:null,...k?{state:k}:null,...F?{linesBetween:F}:null,..._?{previewHover:_}:null},M=qh(k)?Jg($a,{children:[D,i==="under"?Me("span",{"aria-hidden":"true",className:_E}):Kh(k)?Jg("span",{"aria-hidden":"true",className:AE,children:[Me("span",{className:FE}),Me("span",{className:BE})]}):Me("span",{"aria-hidden":"true",className:EE})]}):D,G={[DV]:`${e}:${t}`,[NV]:O,...typeof h=="function"?h(A):h},$=d?.[O],de=LE(k,i),le=$?Me($V,{attrs:{...G,...de},selected:k?.selected===!0,hover:i!=="under",action:$,titleField:MV(f,v),children:M}):C?Me("div",{...G,...de,children:Me(Su.Provider,{value:null,children:M})}):Me("div",{...G,...de,children:M}),ee=I?I(le,A):le;return Me(Ti.Provider,{value:A,children:T?Me(yu.Provider,{value:Ie=>T(A,Ie),children:ee}):y?Me(yu.Provider,{value:null,children:ee}):ee},E(A,O))});return Me($a,{children:P(g)})}var HD={name:"clickableParts",applies:(e,o,t)=>typeof t?.render=="function"&&e!==io&&e!==xn,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)=>gv(a(),f,m=>Ow(o,d,m));r.render=d=>{let f=Av(d),m=qO(d);return d.editor?.isEditing&&l?Oi(Qg,{type:o,props:d,children:u=>Oi(l,{needles:i(d,u),styles:f,motions:m,type:o,sizeCaps:n,children:Oi(rL,{value:n,children:s(d)})})}):!Object.keys(f).length&&!Object.keys(m).length?s(d):Oi(Qg,{type:o,props:d,children:u=>Oi(eE,{needles:i(d,u),styles:f,motions:m,type:o,atEdge:o===K,sizeCaps:n,children:s(d)})})}}};import{jsx as WD}from"react/jsx-runtime";var $D={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=Sk(t.sectionCorners,t.sectionCornerSides,t.sectionCornersUnit),a=o(t);return r?WD(fe,{className:"sf-section-corners",style:{display:"contents",...r},children:a}):a}}},ey=["CollectionCard"],zD={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=qP(t.cardCorners,t.cardCornerSides,t.cardCornersUnit),a=o(t);return r?WD(fe,{className:"sf-card-corners",style:{display:"contents",...r},children:a}):a}}};var UD={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 jD={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 GD,jsxs as zV}from"react/jsx-runtime";var UV="Flex",KD=(e,o)=>e[o]!==void 0&&e[o]!==!1&&!e.editor?.isEditing,qD={name:"headCore",applies:(e,o,t)=>typeof t?.render=="function",draw(e){let o=e.render;e.render=t=>KD(t,Gl)?GD(fe,{className:Uc,children:t[Gl]==="empty"?null:o(t)}):o(t)}},VD={name:"headBox",applies:(e,o,t)=>e===UV&&typeof t?.render=="function",draw(e){let o=e.render;e.render=t=>KD(t,jl)?zV(fe,{className:jc,children:[GD(Gc,{}),o(t)]}):o(t)}};import{createElement as jV}from"react";var YD={name:"hiddenNodes",applies:(e,o,t)=>typeof t?.render=="function",draw(e,o,t){let r=o===K?"edge":t.isSection(o)?"section":"by-box",a=e.render;e.render=n=>{if(nr(n))return null;let s=pl(n),l=jk(s,Qv(n),{sectionClassName:pl(n,{atSectionLine:!0}),line:r});return jV($k.Provider,{value:l},a(n))}}};import{jsx as VV}from"react/jsx-runtime";import{createContext as JD,createElement as XD,useContext as GV}from"react";var ZD=JD(null),KV=JD(!1),n_e=ZD.Provider;function qV(e,o,t){return e===void 0||e===""||o===null||o.length===0||!t.includes(e)?!0:o.includes(e)}function QD({name:e,editing:o,children:t}){let r=GV(ZD);return o||qV(e,r?.selected??null,r?.known??[])?t:XD("div",{hidden:!0,style:{display:"none"}},XD(KV.Provider,{value:!0},t))}var YV="Flex",eN={name:"showFor",applies:(e,o,t)=>e===YV&&typeof t?.render=="function",draw(e){let o=e.render;e.render=t=>{let r=a_(t[Yn])?.name;if(r===void 0)return o(t);let a=!!t.editor?.isEditing;return VV(QD,{name:r,editing:a,children:o(t)})}}};var oN=Ef.mediaFields,XV=e=>HP(e)?e.src:e;function JV(e,o){let t=o;for(let r of z(oN,e)??[])t=WP(t,r,XV);return t}var tN={name:"mediaValues",applies:(e,o,t)=>typeof t?.render=="function"&&(z(oN,e)?.length??0)>0,draw(e,o){let t=e.render;e.render=r=>t(JV(o,r))}};import{jsx as Ei,Fragment as rN,jsxs as aN}from"react/jsx-runtime";var ZV="!grow-0 !shrink-0 !basis-0",QV=["[.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(" "),e9="flex flex-col w-full min-w-0 [&>*]:grow";function nN({anchor:e}){let o=fa(e),t=Pr(),r=nf();return o?Ei("span",{id:o,className:ko(t?`sf-section-anchor ${ZV} ${QV}`:"sf-section-anchor",r),"aria-hidden":"true"}):null}function o9({anchor:e,copiesInBox:o,children:t}){let r=lf()?.columnsRow===!0,a=Gk(),n=fa(e)!=="";return o?Ei(rN,{children:t}):r&&!a&&n?aN(fe,{className:e9,children:[Ei(nN,{anchor:e}),t]}):aN(rN,{children:[Ei(nN,{anchor:e}),t]})}var sN={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=>Ei(o9,{anchor:r.anchor,copiesInBox:ot(o,r),children:t(r)})}};import{jsx as t9}from"react/jsx-runtime";var lN=Object.fromEntries(jb.map(e=>[e,"picture"])),r9={[K]:"box",Ticker:"marquee",...Object.fromEntries(yd.map(e=>[e,"cards"])),...lN},iN=(e,o)=>!Yd.has(e)&&!!o&&typeof o.render=="function";function dN(e,o,t,r){e.fields={...e.fields,...t.animationTabFields(o,r)}}function fN(e,o){let t=e,r=t.render;t.render=a=>{let n=Cn(a);return!n||ot(o,a)?r(a):t9(_c,{views:n,editing:!!a.editor?.isEditing,takesViewHide:!0,atEdge:o===K,children:r(a)})}}var cN={name:"sectionAnimation",applies:(e,o,t)=>o.isSection(e)&&iN(e,t),panel:(e,o,t)=>dN(e,z(r9,o)??"section",t,o),draw:(e,o)=>fN(e,o)},pN={name:"blockEntrance",applies:(e,o,t)=>!o.isSection(e)&&iN(e,t),panel:(e,o,t)=>dN(e,z(lN,o)??"block",t,o),draw:(e,o)=>fN(e,o)};import{jsx as a9}from"react/jsx-runtime";var uN=(e,o)=>!Yd.has(e)&&!!o&&typeof o.render=="function";function n9(e){let o=Oh.filter(t=>t.block===e);return o.length===1?o[0].focus:void 0}function mN(e,o){let t=e,r=t.render,a=n9(o),n=e.drawsPictures===!0;t.render=s=>{let l=Gn(s);return!l||ot(o,s)?r(s):a9(Zc,{views:l,...a?{origins:GO(s,a)}:{},takesViewHide:!0,atEdge:o===K,zoomInside:n?"picture":"layer",children:r(s)})}}var xN={name:"sectionScroll",applies:(e,o,t)=>o.isSection(e)&&uN(e,t),draw:(e,o)=>mN(e,o)},hN={name:"blockScroll",applies:(e,o,t)=>!o.isSection(e)&&uN(e,t),draw:(e,o)=>mN(e,o)};import{jsx as s9}from"react/jsx-runtime";import{createElement as l9}from"react";var oy=["sectionHeightMode","sectionHeightModeTablet","sectionHeightModePhone"];function i9(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===K}var ty={name:"sectionHeight",applies:(e,o,t)=>o.isSection(e)&&!Dk.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=>i9(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(ot(o,r))return t(r);let a=Wk(r);return a?s9(Tr,{className:a.className,style:a.style,...o===K?{attrs:Zb}:null,children:t(r)}):t(r)}}},IN={name:"sectionHeightFillRoot",applies:ty.applies,draw(e,o){let t=e.render;e.render=r=>{let a=ot(o,r)?null:Uk(Hk(r),Mk(r).join(" "));return l9(zk.Provider,{value:a},t(r))}}};import{jsx as Is}from"react/jsx-runtime";import{PIN_ATTR as gN,PIN_CENTRE_ATTR as d9,PIN_FRAME_ATTR as f9}from"efficient-shell/format";var SN=wN("sectionSticky",(e,o,t)=>o.isSection(e)&&!Ik.has(e)&&!!t&&typeof t.render=="function",!0),bN=wN("cardSticky",(e,o,t)=>ey.includes(e)&&!!t&&typeof t.render=="function",!1);function wN(e,o,t){return{name:e,applies:o,panel(r,a,n){let s=xx.has(a);r.fields=p9(r.fields??{},at(n.stickFields({intro:s,screens:t,above:t,center:t}),u9(s))),t&&Ht(r,{heldByANode:pu})},draw(r,a){let n=r.render,s=xx.has(a);r.render=l=>{let i=hx(l,{atScreenTop:s,above:t});if(!i)return!t||s||!xk(l)?n(l):Is(Wa,{own:()=>Is(fe,{[d9]:"",children:n(l)}),followed:()=>n(l)});let d=m=>{let u=Is(ff,{children:n(l)});return Is(fe,{...m.attrs,style:m.style,children:m.attrs[gN]===""?Is("div",{[f9]:"",children:u}):u})},f=t?hx(l,{atScreenTop:s,track:t,above:!0}):i;return!f||f.attrs[gN]!==""?d(i):Is(Wa,{own:()=>d(f),followed:()=>d(i)})}}}}var yN=[wt,fs],c9="_gStick";function p9(e,o){let t=Object.keys(e),r=e[jn];if(!r){let P=t.findIndex(L=>yN.includes(L));return P<0?{...e,...o}:Object.fromEntries([...t.slice(0,P).map(L=>[L,e[L]]),...Object.entries(o),...t.slice(P).map(L=>[L,e[L]])])}let{[c9]:a,...n}=o,s=P=>P.startsWith(kn),l=Object.entries(n).filter(([P])=>!s(P)),i=Object.entries(n).filter(([P])=>s(P)),d=[r.dot,a?.dot].filter(P=>!!P),f=t.indexOf(jn),m=t.findIndex((P,L)=>L>f&&yN.includes(P)),u=m<0?t.length:m,h=t.indexOf(Ac),I=h>f&&h<u?h:u,S=P=>[P,P===jn?{...r,dot:{any:d}}:e[P]],T=[...t.slice(0,I).map(S),...l,...t.slice(I,u).map(S),...i,...t.slice(u).map(S)];return Object.fromEntries(T)}function u9(e){let o=i=>({field:i,in:[!0,!1]}),t=i=>e&&i==="stickTop"?{any:[{field:i,is:!0},gk]}:{field:i,is:!0},r=i=>({field:i,is:!0}),a=i=>({all:[i,wi,{not:{field:rl,is:!0}}]}),[n,s,l]=ck;return[[["stickTopDistance"],t("stickTop")],[["stickTopDistanceTablet"],rr(["stickTopTablet","stickTop"],o,t)],[["stickTopDistancePhone"],rr(["stickTopPhone","stickTopTablet","stickTop"],o,t)],[[n],a(r("stickTop"))],[[s],a(rr(["stickTopTablet","stickTop"],o,r))],[[l],a(rr(["stickTopPhone","stickTopTablet","stickTop"],o,r))],[[Zd],al],[[rl],al],[[uk],a(al)],[[mk],{not:al}]]}import{jsx as m9}from"react/jsx-runtime";var CN={name:"sectionBorder",applies:(e,o,t)=>o.isSection(e)&&!!t&&typeof t.render=="function",draw(e,o){if(vc.has(o))return;let t=e.render;e.render=r=>{let a=kk(r.sectionBorder,r.sectionBorderPhone,r.sectionBorderTablet,Ck(r)),n=t(r);return a?m9(fe,{className:Qd,style:{display:"contents",...a},children:n}):n}}};import{jsx as ry}from"react/jsx-runtime";var kN={name:"sectionTheme",applies:(e,o,t)=>o.isSection(e)&&!dC.has(e)&&!!t&&typeof t.render=="function",panel(e,o,t){let{sectionThemeFields:r,SECTION_THEME_FOLLOW_LABEL:a}=t,n=nx.has(o);e.fields={...e.fields,...n?r(Hd,a):r()}},draw(e,o){let t=nx.has(o),r=e.render;e.render=a=>{let n=cC(t?{...a,sectionAccent:Hd(a.sectionAccent)}:a),s=r(a);if(!n)return s;let l=d=>ry(Tr,{className:n.className,style:d,children:s}),i=n.style;return ot(o,a)?ry("div",{className:n.className,style:{...i,display:"contents"},children:s}):hu(o,a)!=="content"?l(i):ry(Wa,{own:()=>l({...i,...Ys(Ho)}),followed:()=>l(i)})}}},vN={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(Hd,a)})}};import{jsx as Ke}from"react/jsx-runtime";var PN=null;function ay(e){PN=e}function TN(){return PN}import{jsx as x9}from"react/jsx-runtime";var h9="mx-auto w-full max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)]",ON=br("box").frame,_i=`${h9} ${ON}`,I9=br("site").frame,g9=br("none").frame;function C1e(e){let o=e===!0?"site":e===!1?"box":e;return o==="none"?g9:o==="site"?I9:ON}var y9="mx-auto w-full max-w-[1280px] px-[60px]",S9="max-[960px]:px-6",k1e=`${y9} ${S9}`;function v1e({contained:e,className:o="",style:t,pad:r,fillWidth:a="w-full",part:n,children:s}){return x9(OD,{contained:e,framedClass:`${_i} ${o}`,fillClass:`${a} ${o}`,columnClass:_i,style:t,pad:r,part:n,children:s})}var gs="--sf-sw-site",b9="--sf-sw-content",w9="--sf-bg-cap",C9="contents [--sf-site-width:var(--sf-sw-content)] max-view-wide:[--sf-site-width:var(--sf-sw-site)]",ny=({own:e,content:o,siteContent:t})=>e===!0&&o==="full"&&t!=="full",_N="contents view-wide:[--sf-site-width:100vw]",sy=({held:e},o,t)=>e?t:Ke(fe,{className:o,children:t}),k9=`contents view-wide:[--sf-site-width:100vw] ${BB} view-wide:[--sf-site-gutter:var(--intro-edge)]`,ly=(e,o,t)=>o==="content"?`min(${In(e,t)},var(${gs}))`:In(e,t);function Ai({content:e,contentMax:o,contentMaxUnit:t},r){return e==="full"?r!=="content"?Xs:null:o===null?null:ly(o,r,t)}function Fi(e,o){return o===null?e:Ke(fe,{className:"contents",style:{[gs]:Ho},children:Ke(fe,{className:C9,style:{[b9]:o},children:e})})}var v9="--sf-content-cap",P9="contents max-view-wide:[--sf-content-cap:none]";function T9({content:e,contentMax:o,contentMaxUnit:t},r){return e==="full"?null:o!==null?ly(o,r,t):r==="content"?null:`var(${gs})`}function O9(e,o){return o===null?e:Ke(fe,{className:"contents",style:{[gs]:Ho},children:Ke(fe,{className:P9,style:{[v9]:o},children:e})})}var AN=`var(${gs},${Ho})`,qr=(e,o,t="")=>e==="content"?Ke(fe,{className:t||void 0,style:Ys(Ho),children:Ke(Vg,{ground:AN,children:o})}):o;function FN(e,o,t,r,a){if(ny(t))return qr(r,sy(t,_N,Ke(qg,{children:e({...o,contained:!0})})),a);if(t.content==="full")return qr(r,e({...o,contained:!1}),a);let n=Ai(t,r);return r==="content"&&n===null&&!t.own?e({...o,contained:!0}):qr(r,Fi(Ke(qg,{children:e({...o,contained:!0})}),n),a)}function E9(e,o,t,r,a){if(t==="hero"){let l=Fi(e(o),Ai(r,r.band));return r.band==="full"?Ke(fe,{style:{[BC]:"none",[RC]:"initial",[LC]:"initial"},children:l}):r.band==="content"?Ke(fe,{style:zd(!0),children:l}):l}let n=r.band??"full",s=kr(o,{atSectionLine:!a});if(t==="rawMarkup"){if(r.content==="full")return qr(n,e(o),s);let l=r.contentMax===null?Ho:ly(r.contentMax,n,r.contentMaxUnit);return Ke(fe,{className:"contents",style:{[gs]:Ho},children:qr(n,Ke(fe,{className:s||void 0,style:Ys(l),children:e(o)}),s)})}if(t==="scrollOver"){let l=r.content==="full",i=ny(r)?sy(r,k9,e({...o,fullWidth:!1})):Fi(e({...o,fullWidth:l}),l?null:Ai(r,n));return n==="content"?Ke(fe,{className:"contents",style:{[w9]:Ho},children:i}):i}switch(t){case"both":return qr(n,O9(e(o),T9(r,n)),s);case"contained":return FN(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,_N,e({...o,widthMode:i})):Fi(e({...o,widthMode:i}),r.content==="full"?null:Ai(r,n));return t==="productGrid"&&!r.own?n==="content"?Ke(ac,{className:s?`${_i} ${s}`:_i,children:f=>Ke(fe,{className:f,children:d})}):d:qr(n,d,s)}default:return qr(n,Fi(e(o),Ai(r,n)),s)}}function EN(e,o,t,r,a){let n=a===K?"edge":"by-box",s=l=>E9(e,o,t,r,l);return n==="edge"?s(!0):kr(o)===kr(o,{atSectionLine:!0})?s(!1):Ke(sf,{line:n,draw:s})}function _9(e,o){let t=z(Js,o);if(!t)return;let r=e.render;e.render=a=>{let n=jd(a),s={band:n.background,content:n.content??"content",contentMax:null},l=()=>t==="rawMarkup"?r(a):Ke(TD,{draw:I=>I?.background==="content"?Ke(Vg,{ground:AN,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,T=EN(r,a,t,S,o);if(!Gr(o))return T;let P=ki(a),L=P===void 0?S.content:P?"content":"full";return L===S.content?T:Ke(CD,{atTop:T,nested:FN(r,a,{...S,content:L,own:!1},S.band??"full",kr(a))})},d=Ci(o,a);if(!HC(d))return l();let f=t==="rawMarkup",m=hu(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 Ke(Wa,{own:()=>Ke(PD,{value:{background:h.band,content:h.content},children:EN(r,a,t,h,o)}),followed:l})}}var A9={all:[wi,{not:{context:"runsEdgeToEdge",is:!0}}]},BN={name:"sectionWidth",applies:(e,o,t)=>Ud(e)&&!!t&&typeof t.render=="function",panel(e,o,t){let r=t.sectionOwnWidthFields({drawsFullOnItsOwn:z(Js,o)==="rawMarkup"}),a=Gr(o)?t.boxGutterFields():{},n={...e.fields,...a,...r},s=Gr(o)?DN(o,e,n,[Ha]):n;Ht(e,{heldByANode:pu}),Gr(o)&&Ht(e,{runsEdgeToEdge:(l,i)=>xu(il(l.props??{},Fw(i.appState,l.props?.id)?.inCopy!==!1))}),e.fields=Mo(s,[Fo.background,Fo.content],Gr(o)?A9:wi)},draw(e,o){_9(e,o)}};function F9(e,o){if(!e||!("widthMode"in e))return e;let t={...e},r=t.widthMode;return r&&(t.widthMode={...r,currentValue:o.mode,inherited:o.inherited}),t}var B9=new Set(["Heading","Text","ImageBlock","ButtonBlock"]),RN={name:"containedWidth",applies:(e,o,t)=>B9.has(e)&&!!t&&typeof t.render=="function",panel(e,o,t){let r=t.widthField;e.fields=DN(o,e,{...e.fields,...r("page")});let a=e.resolveFields;e.resolveFields=(n,s)=>{let l=a?a(n,s):s.fields,i=ix(n?.props??{},"page"),d=f=>F9(f,i);return l&&typeof l.then=="function"?l.then(d):d(l)}},draw(e){let o=e.render;e.render=t=>{let{mode:r}=ix(t,"page");return o({...t,contained:r!=="full"})}}},R9={not:{context:"inHeroGroupRow",is:!0}},LN={name:"buttonAlignInRow",applies:e=>e==="ButtonBlock",panel(e){let o=e;o.fields=Mo(o.fields??{},["align"],R9),Ht(o,{inHeroGroupRow:(t,r)=>{let a=Xt(r.appState,t.props?.id);return!!a&&a.type==="HeroGroup"&&_n("HeroGroup",a.props?.direction)==="row"}})}};function L9(e){return Object.values(e).some(o=>!!o&&typeof o=="object"&&o.type==="slot")}var D9={any:[]},N9={all:[{not:{context:"outsideBox",is:!0}},{not:{context:"insideSiteGutter",is:!0}}]},M9={not:{context:"widthCappedByParent",is:!0}};function DN(e,o,t,r=["widthMode"]){if(e==="ButtonBlock")return Mo(t,["_gWidth",...r],D9);if(L9(t)){let a=(n,s)=>gD(s.appState?.data?.content,n.props?.id,Iu(TN()));return Ht(o,{outsideBox:(n,s)=>a(n,s)?.inBox!==!0,insideSiteGutter:(n,s)=>a(n,s)?.insideGutter}),Mo(t,r,N9)}return Ht(o,{widthCappedByParent:(a,n)=>"parent"in n?mw(n.parent):aD({props:a.props??{}},n)}),Mo(t,r,M9)}var H9=new Set(["Reviews","Cards","FAQ","Prose","ProductHero","SpecTable","ProductGrid","ParagraphsA","KeyFeatures","Integrations","Stats","StatsParagraph","Chart","Mockup","Testimonials","Logos","ContactRouting","ContactLocations","SubmitBuild","ReviewForm","Form","AppointmentBooking","OrderSummary","DeliveryOptions","PaymentBadges","CheckoutCTA","Collections","AlloyWheelsListing","CatalogFilterBar","FitmentFinder","GalleryB","DocMasthead","DocBody","DocMetaCards","Masthead","FeaturedCover","LongRead","Series","Events","ArticleBody","SectionHeader","Grid","Flex","Spacer","Divider","CustomHTML","Breadcrumb","CategoryBar","DocTabs","Hero","HeroSingle","IntroBleed","Manifesto","Timeline","TimelineTrack","Footprint","Banner","TitleWithButtons","Ticker","SubscribeBlogs","TyreSizes","TyreFitment","EuTyreLabel","SpecStrip","ProcessSteps","DetailRows","FitmentTable","CompatibleTyres","RelatedProducts","BundleOffer","Split","Gallery","Subscribe","Countdown"]),NN={name:"sectionGroups",applies:(e,o)=>o.isSection(e)&&(H9.has(e)||o.isHostBlock(e)),panel(e,o,t){let r=t.assignSectionGroups;e?.fields&&(e.fields=r(e.fields,o))}},W9=new Set(["HeroSlide","HeroGroup"]),MN={name:"blockGroups",applies:(e,o,t)=>W9.has(e)||!o.isSection(e)&&Mp 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 $9=new Set(["Flex","Grid"]),HN=e=>Object.entries(e.fields??{}).filter(([,o])=>o?.type==="slot").map(([o])=>o),z9=(e,o)=>e.fields?.[o]?.ownPictures===!0,U9=["blockCount","blockIds"],j9=new WeakMap,G9=new WeakMap;function K9(e,o){let t=o?G9:j9,r=t.get(e);if(r)return r;let a=e,n=s=>iy(kD,{children:iy(ff,{ownPictures:o,children:iy(a,{...s})})});Object.assign(n,e);for(let s of U9)Object.defineProperty(n,s,{get:()=>e[s],configurable:!0,enumerable:!0});return t.set(e,n),n}var WN={name:"slotsStartAfresh",applies:(e,o,t)=>!$9.has(e)&&typeof t?.render=="function"&&HN(t).length>0,draw(e){let o=HN(e),t=e.render;e.render=r=>{let a={...r};for(let n of o){let s=r[n];typeof s=="function"&&(a[n]=K9(s,z9(e,n)))}return t(a)}}};var q9=new Set(["Form","Stats","Logos"]);function $N(){return[...q9]}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"&&!Sf.includes(d)),s=new Set([...o,...md,...$N()]),l=a.filter(d=>!s.has(d)),i=new Set([...a,...t]);return{isSection:d=>i.has(d)&&!Ad(d),isHostBlock:()=>!1,sectionGroupAllow:n,contentSectionKeys:l}}var V9=[WN,tN,qD,QL,eD,bO,$D,CN,zD,kO,pN,hN,rD,BN,RN,LN,ty,eO,sN,kN,cN,xN,SN,bN,_D,vN,xD,NN,MN,jD,UD,HD,VD,eN,IN,YD,ZL,FD];function zN(e,o,t){let r=o;for(let a of V9)a.applies(e,t,r)&&(t.inspector&&a.panel?.(r,e,t.inspector,t),a.draw?.(r,e,t));return o}import{jsx as fy}from"react/jsx-runtime";import{ClockIcon as Y9,DurationIcon as X9}from"efficient-easel/icons";import{MOTION_TIMING as UN}from"efficient-shell/format";import{useSelectedHost as J9}from"efficient-easel/easel";function ys(e){let{min:o,max:t,step:r,default:a}=UN[e].duration;return Ar("Duration",fy(X9,{}),o,t,r,a,"s")}function Ss(e){let{min:o,max:t,step:r,default:a}=UN[e].delay;return Ar("Delay",fy(Y9,{}),o,t,r,a,"s")}function bs(e,o){let t=e.render,r=a=>{let n=J9();return t({...a,value:o(a.value,n?.values)})};return{...e,render:a=>fy(r,{...a})}}function bu({readsSpeed:e}){return bs(ys("loop"),(o,t)=>Np({loopDuration:o,speed:e?t?.speed:void 0}))}function wu(){return bs(Ss("loop"),e=>xF({loopDelay:e}))}import{jsx as co}from"react/jsx-runtime";import{DirectionDownIcon as Z9,DirectionIcon as Q9,DirectionLeftIcon as eY,DirectionRightIcon as oY,DirectionUpIcon as tY,EntranceBounceIcon as rY,EntranceFadeIcon as aY,EntranceFlipIcon as nY,EntranceGlideIcon as sY,EntranceRevealIcon as lY,EntranceRiseIcon as iY,EntranceScaleIcon as dY,EntranceSpinIcon as fY,NoSymbolIcon as cY}from"efficient-easel/icons";import{NoControlMark as pY,noControlField as uY}from"efficient-easel/screen/lib/document/panel-no-control-mark";import{customize as mY,group as xY}from"efficient-easel/screen/lib/document/box-fields";import{ENTRANCE_FROM as hY,ENTRANCE_FROM_DEFAULT as GN,ENTRANCE_KINDS as KN,ENTRANCE_KINDS_WITH_FROM as IY,entranceAttrs as gY,playEntrance as yY,readEntrance as SY}from"efficient-shell/format";var bY={none:"None",fade:"Fade",rise:"Rise",scale:"Scale",glide:"Glide",bounce:"Bounce",flip:"Flip",reveal:"Reveal",spin:"Spin"},wY={top:"Top",bottom:"Bottom",left:"Left",right:"Right"},CY={top:()=>co(Z9,{}),bottom:()=>co(tY,{}),left:()=>co(oY,{}),right:()=>co(eY,{})},qN="Entrance",py=KN.filter(e=>e!=="none"),VN=e=>({any:[{field:Zo.kind,in:e},{all:[{field:Zo.kind,set:!1},{field:Qs,in:e}]}]}),jN=(e,o)=>rr(st.slice(0,st.indexOf(e)+1).reverse().map(t=>Jo(Zo.kind,t)),t=>({field:t,set:!0}),t=>t===Zo.kind?VN(o):{field:t,in:o}),kY={any:[VN(py),...st.slice(1).map(e=>({field:Jo(Zo.kind,e),in:py}))]},vY=st.flatMap(e=>[[[Jo(Zo.from,e)],jN(e,IY)],[[Jo(Zo.duration,e),Jo(Zo.delay,e)],jN(e,py)]]),PY={none:()=>co(cY,{}),fade:()=>co(aY,{}),rise:()=>co(iY,{}),scale:()=>co(dY,{}),glide:()=>co(sY,{}),bounce:()=>co(rY,{}),flip:()=>co(nY,{}),reveal:()=>co(lY,{}),spin:()=>co(fY,{})},YN="data-entrance-tile";function TY({kind:e}){let{attrs:o}=gY(SY(e,GN));return co("span",{className:"sf-entrance-stage",[YN]:e,children:co("i",{...o,children:PY[e]()})})}var OY=(e,o)=>{let t=e.querySelector(`[${YN}="${o}"] > i`);t&&yY(t)},EY="Effect",_Y=()=>Hf(Zo.kind,{label:qN,tileWord:EY,values:KN,fallback:"none",word:e=>bY[e],picture:e=>co(TY,{kind:e}),read:(e,o)=>el(e,o).kind,preview:OY}),cy=(e,o)=>Il(Zo[e],o,(t,r)=>el(t,r)[e]),AY=hY.map(e=>({label:wY[e],value:e,picture:CY[e]()}));function At(){let e={[Mp]:xY(qN,{dot:kY}),..._Y(),[Qs]:uY({type:"custom",render:()=>co(pY,{})},"always"),_cEntrance:mY(),...cy("from",An("From",co(Q9,{}),AY,GN)),...cy("duration",ys("entrance")),...cy("delay",Ss("entrance"))};return at(e,vY)}import{jsx as qo}from"react/jsx-runtime";import{EntranceRevealIcon as FY,NoSymbolIcon as BY,PercentIcon as XN,ScrollFadeInIcon as RY,ScrollFadeOutIcon as LY,ScrollMoveDownIcon as DY,ScrollMoveUpIcon as NY,DurationIcon as MY,ScrollExpandIcon as HY,ScrollParallaxIcon as WY,ScrollZoomInIcon as $Y,ScrollZoomOutIcon as zY,ZoomInIcon as UY}from"efficient-easel/icons";import{customize as jY,group as GY}from"efficient-easel/screen/lib/document/box-fields";import{SCROLL_EASES as KY,SCROLL_EFFECTS as ZN,SCROLL_EFFECTS_WITH_ZOOM as qY,SCROLL_END as VY,SCROLL_START as YY,SCROLL_ZOOM as XY}from"efficient-shell/format";var QN="Scroll",eM={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"},JY={linear:"Linear",smooth:"Smooth",arrive:"Ease out"},oM={none:()=>qo(BY,{}),"zoom-in":()=>qo($Y,{}),"zoom-out":()=>qo(zY,{}),"fade-in":()=>qo(RY,{}),"fade-out":()=>qo(LY,{}),"move-up":()=>qo(NY,{}),"move-down":()=>qo(DY,{}),reveal:()=>qo(FY,{}),parallax:()=>qo(WY,{}),expand:()=>qo(HY,{})},ZY=ZN.filter(e=>Qe(eM,e)&&Qe(oM,e)),QY="Effect",tM=ZN.filter(e=>e!=="none"),JN=(e,o)=>rr(st.slice(0,st.indexOf(e)+1).reverse().map(t=>Jo(eo.effect,t)),t=>({field:t,set:!0}),t=>({field:t,in:o})),eX={any:st.map(e=>({field:Jo(eo.effect,e),in:tM}))},oX=st.flatMap(e=>[[[Jo(eo.zoom,e)],JN(e,qY)],[[Jo(eo.start,e),Jo(eo.end,e),Jo(eo.ease,e)],JN(e,tM)]]),tX=()=>Hf(eo.effect,{label:QN,tileWord:QY,values:ZY,fallback:"none",word:e=>eM[e],picture:e=>oM[e](),read:(e,o)=>Kt(e,o).effect}),uy=(e,o,t,r,a)=>Il(e,Ar(t,r,a.min,a.max,a.step,a.default,"%"),(n,s)=>Kt(n,s)[o]),rX=()=>Il(eo.ease,Af("Speed",qo(MY,{}),KY.map(e=>({label:JY[e],value:e})),"linear"),(e,o)=>Kt(e,o).ease);function za(){let e={[jn]:GY(QN,{dot:eX}),...tX(),[Ac]:jY(),...uy(eo.zoom,"zoom","Zoom",qo(UY,{}),XY),...uy(eo.start,"start","Start",qo(XN,{}),YY),...uy(eo.end,"end","End",qo(XN,{}),VY),...rX()};return at(e,oX)}import{jsx as Bo}from"react/jsx-runtime";import{AccentIcon as aX,ContrastIcon as nX,EyeIcon as sX,ExpandIcon as lX,FinishIcon as iX,ImagesIcon as dX,NoSymbolIcon as aM,HoverLiftIcon as fX,HoverNextImageIcon as cX,HoverRotateIcon as pX,HoverZoomIcon as nM,OpacityIcon as uX}from"efficient-easel/icons";import{customize as mX,describedAs as sM,group as xX}from"efficient-easel/screen/lib/document/box-fields";import{effectTiles as lM}from"efficient-easel/screen/lib/document/effect-tiles";import{deviceField as So}from"efficient-easel/screen/lib/document/device-fields";import{NoControlMark as hX,noControlField as IX}from"efficient-easel/screen/lib/document/panel-no-control-mark";var Cu=e=>So("desktop",xX("Hover",{dot:e})),iM=()=>So("desktop",mX()),gX="What this does when a shopper points at it, or taps it on a phone.",yX="What this picture does when a shopper points at it. Black and white shows it in grey until then. A phone shows its colour.",SX="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.",bX="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.",wX="When this shows. On card hover shows it while a shopper points at the card. A phone always shows it.",CX="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.",kX="Which of the product's pictures the card shows.",vX="Same finish shows the photos of the finish the card shows, else the first group.",PX="Whole card hides the words under the photo. Picture keeps the words and swatches in view.",TX={none:()=>Bo(aM,{}),nextImage:()=>Bo(cX,{}),rotate:()=>Bo(pX,{}),zoom:()=>Bo(nM,{}),lift:()=>Bo(fX,{}),mono:()=>Bo(nX,{})};function my(e,o){let t=lM({label:c("Hover effect"),options:e.map(r=>({value:r,label:c(_m[r]),picture:TX[r]()})),fallback:o});return sM(t,{type:"select",label:"Hover effect",options:e.map(r=>({value:r,label:_m[r]}))})}function dM(){return{[wt]:Cu({field:rt,in:Rm.filter(e=>e!=="none")}),[rt]:So("desktop",{...my(Rm,"none"),description:gX})}}function fM(e){let o=zb(e),t=bd(),r=XP(Bb);return{[wt]:Cu({any:[o,t]}),[Ge.kind]:So("desktop",{...bs(my(_b,e),(a,n)=>Wb(n??{},e)),description:CX}),...xy(t),[Ab]:IX({type:"custom",render:()=>Bo(hX,{})},"always"),_cHover:iM(),[Ge.angle]:So("desktop",ro(bs(r,a=>$b(a)),o)),[Ge.duration]:So("desktop",ro(ys("hover"),o)),[Ge.delay]:So("desktop",ro(Ss("hover"),o))}}function xy(e){let o=Af("Type",Bo(dX,{}),Rb.map(a=>({value:a,label:Lb[a]})),Sd.kind),t=An("Group",Bo(iX,{}),Db.map(a=>({value:a,label:Nb[a]})),Sd.group),r=An("Covers",Bo(lX,{}),Mb.map(a=>({value:a,label:Hb[a]})),Sd.cover);return{[Ge.mediaKind]:So("desktop",ro({...o,description:kX},e)),[Ge.mediaGroup]:So("desktop",ro({...t,description:vX},e)),[Ge.cover]:So("desktop",ro({...r,description:PX},e))}}function hy(e,o="",t=Hm.includes(o)){let r=Wm(e),a=Yb(e);return{[wt]:Cu(r),[Ge.kind]:Iy(Ub,e,yX),...Hm.includes(o)?xy(bd()):{},_cHover:iM(),...t?cM():{},[Ge.duration]:So("desktop",ro(ys("hover"),a)),[Ge.delay]:So("desktop",ro(Ss("hover"),a))}}function cM(e=!1){let o=a=>e?a:ro(a,Vb()),t=Ar("Zoom",Bo(nM,{}),dn.min,dn.max,dn.step,dn.min,dn.unit),r=Ar("Darken on hover",Bo(uX,{}),Pn.min,Pn.max,Pn.step,Pn.fallback,Pn.unit);return{[Dm.zoom]:So("desktop",o(t)),[Dm.darken]:So("desktop",o(r))}}function Iy(e,o,t){let r=So("desktop",{...bs(my(e,o),a=>Kb({[rt]:a},o,e)),description:t});return Object.assign(r,{[pM]:o})}var pM="sfPictureResting",rM=new WeakMap;function vFe(e,o,t){let r=e[Ge.kind],a=r?.[pM];if(!r||!a)return e;let n=o.props?.[rt]==="nextImage",s=n?null:Ld(t.appState,o.props?.id);if(!n&&!yd.includes(String(s?.type??"")))return e;let l=rM.get(e);return l||(l={...e,[Ge.kind]:Iy(Lm,a,SX)},rM.set(e,l)),l}var OX="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.",EX={none:()=>Bo(aM,{}),[Am]:()=>Bo(aX,{})},PFe=So("desktop",{...sM(lM({label:c("Hover effect"),options:Fm.map(e=>({value:e,label:c(Bm[e]),picture:EX[e]()})),fallback:"none"}),{type:"select",label:"Hover effect",options:Fm.map(e=>({value:e,label:Bm[e]}))}),description:OX}),_X=So("desktop",{...An("Show",Bo(sX,{}),[{value:Mm,label:"Always"},{value:Nm,label:"On card hover"}],Mm),description:wX});function uM(){let e={any:[Wm("none"),{field:rt,is:Am},{field:oa,is:Nm}]},{[wt]:o,[Ge.kind]:t,...r}=hy("none","",!0);return{[wt]:Cu(e),[Ge.kind]:t,[oa]:_X,...xy(bd()),...r,...cM(!0)}}var TFe=Iy(Lm,"none",bX);import{jsx as Bi}from"react/jsx-runtime";import{isNodeList as RX}from"efficient-easel/data";import{useEasel as LX}from"efficient-easel/easel";import{hiddenInView as DX,hiddenKeyOf as gy,hidePatch as NX,slotChildName as MX,slotChildRowName as HX}from"efficient-easel/draw";var AX=new Set(["BookingBox","SubmitBox"]);function FX(e){return typeof e=="string"&&AX.has(e)}var BX=aT(FX,HT);function ku(e,o){return BX(e)||yT(o)}var vu=(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 WX}from"efficient-easel/screen/lib/document/device-fields";import{NoControlMark as $X}from"efficient-easel/screen/lib/document/panel-no-control-mark";var mM="notCardOfTemplate",xM={not:{context:mM,is:!0}},yy={any:[Cd,xM]},qFe={[mM]:(e,o)=>{let t=ox(o.appState,e.props?.id);return t===void 0?void 0:t===null}};function Pu(e){let o=e.props?.content;return RX(o)?o:[]}var Ou=(e,o)=>DX(e.props??{},o),zX=(e,o)=>e.props?.[gy(o)]!==void 0;function hM(e,o=()=>!1,t="desktop"){return Pu(e).flatMap(r=>typeof r?.props?.id!="string"?[]:Pu(r).length&&!Ou(r,t)?hM(r,o,t):o(r)?[]:[r])}function UX(e,o,t,r="desktop"){let a=hM(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:!Ou(l,r)}})}function Tu(e,o,t){let r=a=>t==="desktop"?Ou(a,t):zX(a,t);return Pu(e).flatMap(a=>r(a)?o(a)?[]:[a,...Tu(a,o,t)]:Tu(a,o,t))}function jX(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=Pu(e),a=!1,n=r.map(s=>{if(a)return s;let l=s;if(s?.props?.id===o){let i=jX(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 IM(e,o,t,r="desktop"){return Sy(e,o,a=>r==="desktop"&&Ou({props:a},r)===!t?{}:NX(a,r,!t))}function GX(e,o,t){return t==="desktop"?IM(e,o,!0,t):Sy(e,o,()=>({[gy(t)]:void 0}))}function KX(e,o,t,r,a,n){return MX(e).trim()?t(e):Pw({ownerType:o,owner:r,fields:a,slot:n},Wt(e.props))?.label??t(e)}var qX="This page is read-only.";function VX({card:e,ownerType:o,owner:t,fields:r,slot:a,labelOf:n,write:s,readOnly:l,view:i="desktop"}){let d=u=>HX(u,n,ln,void 0,vu),f=u=>ku(u.type,u),m=UX(e,u=>KX(u,o,d,t,r,a),f,i);return m.length?Bi(Ux,{parts:m,changed:Tu(e,f,i).length>0,shown:u=>m.find(h=>h.id===u)?.shown??!0,disabledReason:l?qX:void 0,onPress:(u,h)=>s(I=>IM(I,u,h,i)),onReset:()=>s(u=>Tu(u,f,i).reduce((h,I)=>GX(h,String(I.props.id),i),u))}):Bi($X,{})}function YX(){try{let e=LX(a=>a),o=e.config.components??{},t=e.selectedItem;if(!t)return null;let r=ox(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:Bw(e.appState,r),slot:Aw(e.appState,t.props?.id)??void 0}}catch{return null}}function XX({readOnly:e,view:o}){let t=YX(),r=xl();return t?Bi(VX,{...t,view:o,readOnly:e,write:a=>{e||r(n=>{let s={...t.card,props:n},l=a(s);return l===s?null:{content:l.props.content}})}}):Bi(Ux,{parts:[],changed:!1,shown:()=>!0,onPress:()=>{},onReset:()=>{}})}function VFe(e){return ro(WX(e,{type:"custom",render:({readOnly:o})=>Bi(XX,{readOnly:o,view:e})}),xM)}import{customize as sJ}from"efficient-easel/screen/lib/document/box-fields";import{jsx as by}from"react/jsx-runtime";import{DirectionIcon as JX,LoopMarqueeIcon as ZX,NoSymbolIcon as QX}from"efficient-easel/icons";import{customize as eJ,describedAs as oJ,group as tJ}from"efficient-easel/screen/lib/document/box-fields";import{effectTiles as rJ}from"efficient-easel/screen/lib/document/effect-tiles";function wy(){return RT("Direction",HI,Ii,"A marquee cannot run diagonally, so the corners are not answers.",by(JX,{}),BT)}var Cy=e=>tJ("Loop",e?{dot:e}:void 0),aJ={none:()=>by(QX,{}),scroll:()=>by(ZX,{})};function nJ(){let e=rJ({label:c("Loop"),options:Dp.map(({value:o,label:t})=>({value:o,label:c(t),picture:aJ[o]()})),fallback:MI});return oJ(e,{type:"select",label:"Loop",options:Dp.map(({value:o,label:t})=>({value:o,label:t}))})}function gM(){return{[fs]:Cy(hi),loop:nJ(),_cLoop:eJ(),scrollDirection:ro(wy(),hi),loopDuration:ro(bu({readsSpeed:!1}),hi),loopDelay:ro(wu(),hi)}}var yM={field:oa,set:!0};function lJ(){let e=uM(),o=[wt,rt],t=Mo(e,Object.keys(e).filter(n=>!o.includes(n)&&n!==oa),Cd),r=Mo(t,[oa],yM),a=Mo(r,[rt],yy);return Mo(a,[wt],{any:[yy,yM]})}function Eu(e,o=""){switch(e){case"section":case"block":return{...At(),...za()};case"box":return{...At(),...za(),...gM(),...lJ()};case"picture":return{...At(),...za(),...hy(Gb(o),o)};case"textPart":return{...At(),...za(),...dM()};case"cards":return{...At(),...za(),...fM(Fb(o))};case"marquee":return{...At(),...za(),[fs]:Cy(),_cLoop:sJ(),scrollDirection:wy(),loopDuration:bu({readsSpeed:!0}),loopDelay:wu()}}}import{blockSizeFieldSet as ZJ}from"efficient-easel/screen/lib/document/block-size-fields";import{VIEW_KEY_ACCESS as QJ}from"efficient-easel/screen/lib/document/box-fields";import{jsx as SM,Fragment as iJ,jsxs as dJ}from"react/jsx-runtime";import{useSelectedHost as bM}from"efficient-easel/easel";import{VIEW_TIERS as fJ,viewKeyAt as cJ}from"efficient-easel/draw";var wM=e=>fJ.find(o=>Object.values(Io).some(t=>cJ(t,o)===e))??"desktop";function pJ(e,o,t){let r=e(o),a=wM(t);return{top:ef(r,"top",a),bottom:ef(r,"bottom",a)}}var uJ=e=>e.startsWith(Io.bottom)?"bottom":"top";function mJ(e,o,t,r){let a=uJ(r);return o(t,ef(e(t),a,wM(r)),a)}function xJ({frameOf:e,note:o,rowKey:t}){let r=bM()?.values,a=r?mJ(e,o,r,t):null;return a?SM("p",{className:"es-field-hint",children:a}):null}var hJ=new Set(vn());function CM(e,o,t){let r=Fr({tablet:!0,siteSide:!0,...t?{label:t}:{},useFallback:a=>{let n=bM()?.values;return n?pJ(e,n,a.name):{top:0,bottom:0}}});return Object.fromEntries(Object.entries(r).map(([a,n])=>{let s=n.render;return!hJ.has(a)||typeof s!="function"?[a,n]:[a,{...n,render:l=>dJ(iJ,{children:[s(l),SM(xJ,{frameOf:e,note:o,rowKey:a})]})}]}))}import{group as IJ}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as gJ,deviceMetaOf as PM}from"efficient-easel/screen/lib/document/device-fields";import{DESIGN_GROUPS as vy,SETTINGS_BUCKETS as yJ}from"efficient-easel/panel";import{BUCKET_KEY as bo,DESIGN_GROUP_KEY as ws}from"efficient-easel/screen/lib/document/field-buckets";var Ri=yJ;var SJ="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",[SJ]:"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"},TM={"AlloyWheelsListing._gCards":"Design","Flex._gLink":"Link","LongRead._gLink":"Link"},OM={"Text._gSpacing":"Size","Heading._gSpacing":"Size"};function kM(e,o,t){let r=`${e}.${o}`;return z(OM,r)??z(TM,r)??z(Py,t)}function bJ(e){return e==="Animation"?[bo.Animation]:[bo.Design,ws[e]]}function _u(...e){let o=[];for(let t of e)for(let r of Object.values(t)){let a=PM(r),n=ir(a?a.inner:r),s=n?z(Py,n.label):void 0;if(s)for(let l of bJ(s))o.includes(l)||o.push(l)}return o}var FBe=[..._u(Fr({tablet:!0,siteSide:!0}),Rn("full"),Ln(),Dn(),hl()),...Object.keys(Fr({tablet:!0,siteSide:!0})),...Object.keys(Rn("full")),...Object.keys(Ln()),...Object.keys(Dn()),...Object.keys(hl())],BBe=[..._u(Fn()),...Object.keys(Fn())],RBe=[..._u(Bn()),...Object.keys(Bn())],LBe=[..._u(At()),...Object.keys(At())],DBe=Object.keys(NT()),NBe=Object.keys(MT()),wJ={"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)"},EM={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={...Fr({tablet:!0,siteSide:!0}),...Rn("full"),...Ln(),...Dn(),...Fn(),...Bn(),...At()};for(let o of Object.keys(ky)){let t=ir(e[o]),r=t?z(Py,t.label):void 0;if(!t||t.level!==2||!r||!EM[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 CJ=new Set(["_sContent","_sStyle","_sLayout","_sMedia"]),kJ=new Map([[bo.Design,"Content"],[bo.Animation,"Animation"],...vy.map(e=>[ws[e],e])]);function vJ(e){let o=`${e}.`;return Object.keys(wJ).filter(t=>t.startsWith(o)).map(t=>t.slice(o.length))}function PJ(e,o){let t=PM(e),r=IJ(o);return t?gJ(t.tier,r):r}function TJ(e,o){let t=ir(o);return t?e==="Content"||e==="Animation"?vT(o,t.label):PT(o):o}function vM(e){return e==="Design"?vy:["Animation"]}function Au(e,o){let t=[],r=new Set(vJ(o)),a=new Set,n=!1,s=null;for(let[u,h]of Object.entries(e)){let I=ir(h);if(CJ.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=kJ.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===bo.Design||u===bo.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)||Qe(ky,u)){let P=kM(o,u,I.label);if(I.level!==2||!P||!EM[P].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 ${P??"(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:P,entries:[],uniform:Qe(ky,u)});continue}let T=kM(o,u,I.label);if(!T)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:T,entries:[[u,I.level===2?h:PJ(h,I.label)]]})}let l=new Set(Object.entries(e).filter(([,u])=>ir(u)).map(([u])=>u));for(let[u,h]of[["BLOCK_KEY_GROUP",OM],["KEY_GROUP",TM]]){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=Ri.filter(u=>vM(u).some(h=>d.has(h))),m={};for(let u of f){m[bo[u]]=Nf(u,u===f[0]?f:null);for(let h of vM(u)){if(!d.has(h))continue;let I=t.filter(P=>P.place===h),S=I.findIndex(P=>P.adopted);S>0&&I.unshift(...I.splice(S,1));let T=I.filter(P=>P.uniform);if(T.length>0){let P=I.filter(C=>!C.uniform),L=I[0]?.adopted?1:0;I.splice(0,I.length,...P.slice(0,L),...T,...P.slice(L))}u==="Design"&&(m[ws[h]]=Mx(h));for(let P of I)for(let[L,C]of P.entries)m[L]=TJ(h,C)}}return m}function _M(e){return bo.Design in e?e:{[bo.Design]:Nf("Design",null),[ws.Content]:Mx("Content"),...e}}function AM(e){return Ri.some(o=>bo[o]in e)}function Fu(e){let o=Ri.filter(r=>bo[r]in e);if(o.length===0)return e;let t={...e};for(let r of o)t[bo[r]]=Nf(r,r===o[0]?o:null);return t}import{jsx as Bu}from"react/jsx-runtime";import{WidthIcon as OJ}from"efficient-easel/icons";import{SettingsField as EJ,SettingsSwitch as _J}from"efficient-easel/panel";import{group as AJ,iconOf as FJ,sharedStyleKinds as BJ}from"efficient-easel/screen/lib/document/box-fields";var RJ="Gutter";function LJ({value:e,onChange:o,labelId:t}){let r=Iu(ml()),a=ki({[Ha]:e})??r,n=s=>o(s?r?void 0:jg:Ug);return Bu(EJ,{label:c(RJ),labelId:t,icon:FJ(Bu(OJ,{})),action:Bu(_J,{checked:a,onChange:n,ariaLabelledBy:t})})}function FM(){return BJ({_gWidth:AJ(Mf),[Ha]:{type:"custom",render:({value:e,onChange:o,id:t,name:r})=>Bu(LJ,{value:e,onChange:o,labelId:`${t??r??Ha}-label`})}})}import{jsx as Oy}from"react/jsx-runtime";import{group as DJ,sharedStyleKinds as RM}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as NJ}from"efficient-easel/screen/lib/document/device-fields";var MJ="Content cannot be wider than the background.",Ty=e=>c(e==="content"?"Content width":"Full width");function LM(e){let{siteWidth:o,sectionBackgroundWidth:t,sectionContentWidth:r,themeFromDocument:a}=vo(),n=ye(o)??gn.default;return e.drawsFullOnItsOwn?{px:n,background:"full",content:"full"}:{px:n,background:(a?null:t)??"full",content:(a?null:r)??"content"}}var HJ={read:yn},WJ={read:yn,drawsFullOnItsOwn:!0},$J={read:MC,clearOnContent:{fullWidth:void 0}};function zJ({source:e}){let o=e.read($x()),t=xl(),r=LM(e);return Oy($T,{value:o.background??r.background,changed:o.background!==null,detail:Ty(r.background),onChange:a=>t(WC(a)),onReset:()=>t(fx("background"))})}function UJ({source:e}){let o=e.read($x()),t=xl(),r=i=>t({...i,...e.clearOnContent}),a=LM(e),n=(o.background??a.background)==="content",s=TT({row:dx,label:WT,grid:{min:gn.min,max:n?a.px:gn.max,step:gn.step},valueKey:Fo.contentMax,view:"desktop",numbersIn:()=>o.contentMax!==null}),l=o.content??a.content;return Oy(zT,{mode:n&&l==="full"?"content":l,px:o.contentMax??a.px,max:n?a.px:gn.max,changed:o.content!==null,detail:a.content==="full"?Ty("full"):`${Ty("content")} ${a.px}px`,fullClosed:n,hint:n?MJ:void 0,onMode:i=>r($C(i)),onPx:i=>r({...zC(i),...s?.unitPatch(!1)}),...s?{length:s}:{},onReset:()=>r(fx("content"))})}var BM=(e,o)=>NJ("desktop",{type:"custom",render:()=>Oy(e,{source:o})}),DM=e=>({[Fo.background]:BM(zJ,e),[Fo.content]:BM(UJ,e),[Fo.contentMax]:Wx(),...YP(dx,Fo.content)});function NM(e){let o=e?.drawsFullOnItsOwn?WJ:HJ;return RM({_gWidth:DJ(Mf),...DM(o)})}function nRe(){return RM({...DM($J),fullWidth:Wx()})}import{deviceMetaOf as HM}from"efficient-easel/screen/lib/document/device-fields";import{noControlMetaOf as jJ}from"efficient-easel/screen/lib/document/panel-no-control-mark";function GJ(e,o){let t=HM(o),r=t?t.inner:o;if(ir(r)||r?.customize===!0)return!1;if(r?.type==="slot")return!0;let a=jJ(r);return a==="always"?!1:a==="authored-copy"?ov(e):!0}function MM(e){let o=HM(e),t=o?o.inner:e,r=ir(t);return r?kT(t)?0:r.level:null}function KJ(e,o,t){return t?o===0&&e===bo.Design||o===1&&e===ws.Content:!1}var qJ=new WeakMap,VJ=new WeakMap;function WM(e,o="section"){let t=o==="page"?VJ:qJ,r=t.get(e);if(r)return r;let a=Object.entries(e).map(([m,u])=>({key:m,field:u,level:MM(u),draws:GJ(m,u)||o==="page"&&MM(u)===null&&wx(m,u)})),n=o==="section"&&a.some(m=>wx(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&&!KJ(a[m].key,u,n)&&s.add(a[m].key)}let l=n&&AM(e),i=l&&!(bo.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=Fu(l?_M(d):d);return t.set(e,f),f}import{isShown as YJ,showWhenFactReaders as XJ}from"efficient-shell/format";var $M=new WeakMap,JJ=new Set(Object.values(bo));function zM(e,o,t,r={}){if(!e)return e;let a=o?.props??{},n=a.id,s=XJ(r,o,t),l=MP(t,{...s,parentOffersPositions:()=>{let I=Xt(t.appState,n);return I===void 0?void 0:rk(I,n)},parentTileSlot:()=>{let I=Xt(t.appState,n);return I===void 0?void 0:ak(I,n)},heroGroupDepth:()=>Kd(t.appState?.data,typeof n=="string"?n:"")}),i=[];for(let[I,S]of Object.entries(e)){let T=pw(S);!T||NP(T,"device")||YJ(T,a,l)||i.push(I)}if(i.length===0)return e;let d=$M.get(e);d||$M.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=>JJ.has(I))&&(h=Fu(h)),d.set(f,h),h}var UM={spacingFields:AT,sidesPaddingFields:Fr,ownPaddingFields:CM,sectionShapeFields:Bn,cardShapeFields:OT,cellWidthFields:ET,widthField:Rn,boxGutterFields:FM,sectionOwnWidthFields:NM,heightFields:Ln,anchorFields:Dn,customCssFields:FT,stickFields:hl,sectionThemeFields:Fn,animationTabFields:Eu,blockSizeFields:({tablet:e,...o}={})=>ZJ({...o,shorten:!0,say:VP,lengthUnits:_f,...e?{phone:QJ}:{}}),assignSectionGroups:Au,dropEmptyHeadings:WM,rowsShownForNode:zM,SECTION_THEME_FOLLOW_LABEL:hT,BLOCK_THEME_FOLLOW_LABEL:IT,PartAnchors:bL};function Ru(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=Ru(s.arrayFields,o,t),d=Ru(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 eZ(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=zN(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 oZ(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];tZ(e,o,a);for(let n of a){let s=n.components.filter(Ad);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(!Fd(n))continue;let s=_d(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 tZ(e,o,t){let r=n=>{throw new Error(`efficient-web-builder: ${n} names "${xn}". 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(xn)&&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(xn,n,s?.fields);l.length>0&&r(`the slot ${l.map(i=>`"${i}"`).join(", ")}, whose allow list`)}}function jM(e,o){let t=Object.entries(o?.host??{}),r=o?.categories??[],a=Dg(o);if(oZ(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?Ru(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:UM};for(let[I,S]of t){let T=eZ(I,S,h),P=Ru(T.fields,l,i);d[I]=P===T.fields?T:{...T,fields:P}}}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(T=>T in d&&l(T));if(u.length===0)continue;let h=f.find(([T])=>T===m.key);if(h){let[,T]=h,P=new Set(T.components??[]);h[1]={...T,components:[...T.components??[],...u.filter(L=>!P.has(L))]};continue}let I=[m.key,{title:m.title,components:u}],S=m.before?f.findIndex(([T])=>T===m.before):-1;S===-1?f.push(I):f.splice(S,0,I)}return{...e,components:d,categories:Object.fromEntries(f)}}function GM(){let e=nZ();return rZ(()=>jM(aZ(e),hn(e)),[e])}import{jsx as Fy,Fragment as vZ,jsxs as PZ}from"react/jsx-runtime";import{useContext as TZ,useEffect as OZ,useMemo as Wu,useRef as cH}from"react";import{EaselCanvas as EZ,repeatCopyAt as _Z,useEasel as AZ}from"efficient-easel/easel";import{jsx as _y}from"react/jsx-runtime";import{useEffect as dZ,useState as fZ}from"react";import{Banner as cZ}from"efficient-shell/ui";import{useSyncExternalStore as sZ}from"react";import{useScreenDocument as lZ}from"efficient-easel/screen/components/ScreenDocumentContext";var iZ=()=>()=>{},KM=()=>null;function Lu(e){return sZ(e?e.subscribe:iZ,e?e.state:KM,e?e.state:KM)}function Du(){let{adapter:e}=lZ();return e?.pinnedChrome}var Nu={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."},pZ={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."},uZ=Nu.load,mZ=Nu.lock,xZ=Nu.conflict,hZ=Nu.save;function IZ(e){if(!e)return null;if(e.loadFailed)return c(uZ);if(e.lockHolder)return c(mZ,{name:e.lockHolder.name||c("Somebody else")});if(e.conflict)return c(xZ);if(e.saveFailed)return c(hZ);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(pZ[o.problem],{section:t,name:r})}function gZ({report:e}){let o=IZ(Lu(e)),[t,r]=fZ(null);return dZ(()=>{o||r(null)},[o]),!o||t===o?null:_y("aside",{className:"sf-canvas-notice",children:_y(cZ,{tone:"warning",onDismiss:()=>r(o),children:o})})}function qM(){return _y(gZ,{report:Du()})}import{jsx as Hu}from"react/jsx-runtime";import{useState as dH}from"react";import{Banner as SZ,Button as bZ}from"efficient-shell/ui";import{UndoIcon as wZ}from"efficient-shell/icons/efficient";import{useScreenDocument as CZ}from"efficient-easel/screen/components/ScreenDocumentContext";import{useSyncExternalStore as XM}from"react";var Li=!1,Cs=null,Ay=new Set;function Ni(){for(let e of Ay)e()}function JM(e){return Ay.add(e),()=>{Ay.delete(e)}}function ZM(){Li||(Li=!0,Ni())}function QM(){Li&&(Li=!1,Ni())}function VM(){return Li}function eH(){return XM(JM,VM,VM)}function YM(){return Cs}function Mu(){Cs&&(Cs=null,Ni())}function oH(){return XM(JM,YM,YM)}var Di=class extends Error{constructor(){super("The editor's last changes could not be saved, so nothing was restored."),this.name="HeldEditsNotSaved"}};async function tH(e,o,t,{flushSave:r,reload:a}){if(!await r())throw new Di;let n=await e.restore(o,t);return Rf(n.liveState),a(),n}async function rH({access:e,version:o,page:t,...r}){let a=await tH(e,o.id,t?{page:t.id}:{},r);Cs={title:yZ(o,t??null),undo:a.undo},Ni()}async function aH({access:e,...o}){let t=Cs?.undo;t&&(await tH(e,t,{},o),Cs=null,Ni())}function nH(e){return e.name?e.name:e.kind==="draft_before_restore"?c("Draft before restore"):c("Version {n}",{n:e.number})}function yZ(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 sH(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(ax(),{type:"conjunction"}).format(t)}catch{return t.join(", ")}}function lH(e){return e.change==="take_down"?c("{name} (taken down)",{name:e.name}):e.name}function iH(e,o=new Date){let t=new Date(e);if(Number.isNaN(t.getTime()))return"";let r=ax(),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 kZ}from"efficient-easel/easel";function fH(){let e=oH(),{adapter:o,flushSave:t,reloadFromServer:r}=CZ(),a=o.siteVersions,[n,s]=dH(!1),[l,i]=dH(!1),d=async()=>{if(!(!a||n)){s(!0),i(!1);try{await aH({access:a,flushSave:t,reload:r})}catch{i(!0)}finally{s(!1)}}},f=kZ({onPress:()=>{d()},busy:n});return e?Hu("aside",{className:"sf-canvas-notice",children:Hu(SZ,{tone:l?"danger":"info",title:e.title,onDismiss:Mu,action:a&&e.undo?Hu(bZ,{variant:"secondary",size:"sm",leftIcon:Hu(wZ,{}),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 FZ,REPEAT_ATTRIBUTE as By,REPEAT_INDEX_ATTRIBUTE as Ry}from"efficient-easel/draw";import{usePreviewParts as BZ}from"efficient-easel/draw/client";import{ScreenDocumentContext as RZ}from"efficient-easel/screen/components/ScreenDocumentContext";function pH(e){let{mirrorHostStyles:o}=gl(),t=l0(),r=Ly(),a=ml(),n=TZ(RZ),s=lT(n?.docId??null),l=AZ(T=>T.appState.data),i=iT(s,l),d=JSON.stringify(i),f=Wu(()=>i,[d]),m=Wu(()=>({...e.metadata??t??{},...r,...f}),[e.metadata,t,r,f]);OZ(()=>(ay(a),()=>ay(null)),[a]);let u=cH(null),h=LZ(u),{onDocument:I}=e,S=T=>{u.current=T,I?.(T)};return PZ(vZ,{children:[Fy(fH,{}),Fy(qM,{}),Fy(EZ,{...e,onDocument:S,typing:h,metadata:m,height:"fill",mirrorStyles:o,frameWrapper:ec})]})}function Ly(){let{sectionBackgroundWidth:e,themeFromDocument:o}=vo(),t=ml();return Wu(()=>UC(o?null:e,t),[e,t,o])}function LZ(e){let o=jf(),t=BZ(),r=cH({parts:t});return r.current={parts:t},Wu(()=>{let a=(n,s)=>{let l=qf(n,o),i,d=null,f=s??(l?null:sh(null,e.current,n)),m=!l&&f?_Z(f):null,u=m?FZ(n):null;if(m&&f&&u?.propKey){l=Yf({...m,nodeId:u.nodeId,key:u.propKey},o),i=u.propKey;let T=f.closest(`[${By}][${Ry}]`),P=`[${By}="${Vf(T?.getAttribute(By)??"")}"][${Ry}="${Vf(T?.getAttribute(Ry)??"")}"]`;d=()=>(f.ownerDocument??e.current)?.querySelector(P)??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?pf(uf(S)):void 0,colorNameOf:cf}}:null};return{at:n=>{let s=n.closest(`[${ze}]`),l=s?.getAttribute(ze);return s&&l?a(l,s):null},atSelection:()=>{let n=r.current.parts.selectedPartId;return n?a(n,null):null},onCopyText:n=>O0(n,o),copyValue:n=>T0(n,o),onChange:n=>{if(!n.typing){lh(null);return}let s=n.element.closest(`[${ze}]`)?.getAttribute(ze)??null;lh(s),s&&r.current.parts.selectedPartId!==s&&r.current.parts.select(s)}}},[o,e])}var $u=[{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"]}],ks="all",zu="template";function uH(e){for(let o=0;o<$u.length;o++){let t=$u[o].slugs.indexOf(e);if(t>=0)return o*100+t}return Number.MAX_SAFE_INTEGER}function mH(e){return e.map((o,t)=>({s:o,i:t})).filter(({s:o})=>o.source==="library").sort((o,t)=>uH(o.s.slug)-uH(t.s.slug)||o.i-t.i).map(({s:o})=>o)}function Dy(e){return e.filter(o=>o.source==="template")}function xH(e){let o=new Set(mH(e).map(t=>t.slug));return $u.filter(t=>t.slugs.some(r=>o.has(r)))}function hH(e,o){if(e===zu)return Dy(o);let t=mH(o);if(e===ks)return t;let r=$u.find(a=>a.key===e);return r?t.filter(a=>r.slugs.includes(a.slug)):[]}var IH=3;function gH(e,o){let t=Array.from({length:e},()=>[]);return o.forEach((r,a)=>t[a%e].push(r)),t}function wH({open:e,onClose:o,takenSlugs:t,onCreated:r}){let a=$Z(),{adapter:n,siteId:s,templateId:l}=WZ(),i=Ao(a).pages,d=!l&&!!(i.starters&&i.createFromStarter),f=MZ(()=>s?{siteId:s}:{},[s]),m=GM(),u=Ly(),[h,I]=Ny(null),[S,T]=Ny(ks),[P,L]=Ny(null),C=HZ(null),y=NZ();DZ(()=>{if(!e)return;if(T(ks),!d){I([]);return}let O=!0;return I(null),i.starters(f).then(k=>O&&I(k),()=>{O&&(I([]),bH.error(c("Couldn\u2019t load the pages \u2014 please retry.")))}),()=>{O=!1}},[e,d,i,f]);let b=async(O,k)=>{if(!P){L(O);try{r(await k())}catch{bH.error(c("Couldn\u2019t add the page \u2014 please retry."))}finally{L(null)}}},F=()=>{if(!n.createPage)return;let O=c("New page");b("blank",()=>n.createPage({slug:SH(O,t),title:O,layout:{}}))},_=O=>{b(O.id,()=>i.createFromStarter(O.id,{title:O.title,slug:SH(O.slug,t),...f}))},D=h??[],w=xH(D),E=hH(S,D),g=gH(IH,E),v=yH("nav",{"aria-label":c("Pages"),className:"sf-add-page-nav",children:[Oo(My,{label:c("All pages"),active:S===ks,onClick:()=>T(ks)}),w.map(O=>Oo(My,{label:c(O.label),active:S===O.key,onClick:()=>T(O.key)},O.key)),Dy(D).length>0?Oo("div",{className:"sf-add-page-group",children:Oo(My,{label:c("From your template"),active:S===zu,onClick:()=>T(zu)})}):null]});return Oo(jZ,{open:e,onClose:o,size:"full",title:c("Add page"),initialFocus:C,children:Oo(VZ,{sidebarTop:Oo("div",{className:"sf-add-page-blank",children:Oo(UZ,{variant:"secondary",size:"md",leftIcon:Oo(zZ,{"aria-hidden":!0}),onClick:F,disabled:!n.createPage||P!==null,children:c("Blank page")})}),sidebar:v,children:yH("div",{ref:C,tabIndex:-1,role:"region","aria-labelledby":y,className:"sf-add-page",children:[Oo(YZ,{id:y,level:2,as:"h3",children:c("Pages for your site")}),Oo(qZ,{tone:"default",className:"sf-add-page-sub",children:c("Choose a page and change the text, images and more.")}),h===null?Oo(KZ,{label:c("Loading\u2026")}):E.length===0?Oo(GZ,{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:g.map((O,k)=>Oo("div",{className:"sf-add-page-column",children:O.map(A=>Oo(NL,{starter:A,config:m,metadata:u,busy:P===A.id,onAdd:_},A.id))},k))})]})})})}import{jsx as XZ}from"react/jsx-runtime";import{createContext as JZ,useContext as CH,useEffect as ZZ,useRef as kH}from"react";var Hy=JZ(null);function ZLe({open:e,children:o}){let t=kH(!!e);return XZ(Hy.Provider,{value:t,children:o})}function vH(){let e=CH(Hy);return()=>e?.current?(e.current=!1,!0):!1}function PH(e){let o=CH(Hy),t=kH(e);t.current=e,ZZ(()=>{o?.current&&(t.current.setView("pages"),t.current.reveal())},[o])}var FH="sf-editor-pages-collapsed-groups";function IQ(){let e=$y(),{siteId:o,templateId:t}=BH(),r=Ao(e).pages;if(!(!r.duplicate||t))return(a,n)=>r.duplicate(a.id,{...n,...o?{siteId:o}:{}})}function RH({onNavigate:e,onClose:o,activeSurface:t,onPreviewSurface:r}){let a=$y().chrome?.pageRows,n=mQ(),{adapter:s,capabilities:l,ready:i,currentSlug:d}=BH(),f=Nn(),{rows:m,reload:u,setRows:h,getRows:I}=bl(),[S,T]=Ua(""),[P,L]=Ua(!1),[C,y]=Ua(null),[b,F]=Ua(!1),_=!!Ao($y()).pages.createFromStarter,D=IQ(),[w,E]=Ua(null),[g,v]=Ua(()=>{if(typeof window>"u")return new Set;try{let W=window.localStorage.getItem(FH);return new Set(W?JSON.parse(W):[])}catch{return new Set}});TH(()=>{try{window.localStorage.setItem(FH,JSON.stringify([...g]))}catch{}},[g]);let O=W=>v(ie=>{let he=new Set(ie);return he.has(W)?he.delete(W):he.add(W),he}),k=OH(()=>RP(m??[]),[m]),A=S.trim().toLowerCase(),M=W=>!A||W.toLowerCase().includes(A),G=W=>A?!0:!g.has(W),$=OH(()=>new Set((m??[]).map(W=>W.slug)),[m]),de=()=>{if(l.pageCreationInAdminForm&&!_){n.send("storefront-editor:new-page");return}y(null),F(!0)},le=vH();TH(()=>{le()&&de()},[]);let ee=l.hasSiteSettings&&!!s.createPage,Ie=async()=>{if(!(!i||P||!s.createPage)){L(!0),y(null);try{let W=await s.createPage(ST(c("New popup"),$));await u(),e(W.slug)}catch{y(c("Couldn\u2019t add the popup \u2014 please retry."))}finally{L(!1)}}},ae=oQ(null),[xe,ge]=Ua(null),Je=()=>{if(!ee)return de();if(xe)return ge(null);let W=ae.current?.getBoundingClientRect();W&&ge({top:W.bottom+6,right:Math.max(8,window.innerWidth-W.right)})},Ze=W=>{let ie=m??[],he=s.deletePage;if(!i||P||!he||ie.length<=1)return;let Ve=ie.findIndex(We=>We.id===W.id),ne=ie.filter(We=>We.id!==W.id),He=W.slug===d;Zf(W.id,!0),h(ne),y(null),He&&ne[0]&&e(ne[0].slug);let Yo=()=>{Zf(W.id,!1);let We=I()??[];if(We.some(Yr=>Yr.id===W.id))return;let je=[...We];je.splice(Math.max(0,Math.min(Ve,je.length)),0,W),h(je)};_H.undoable(c("Deleted \u201C{name}\u201D",{name:W.label}),{actionLabel:c("Undo"),commit:async We=>{await he(W.id,We),Zf(W.id,!1)},undo:()=>{Yo(),He&&e(W.slug)},onFail:()=>{Yo(),_H.error(c("Couldn\u2019t delete the page \u2014 please retry."))}})},mo=W=>n.send("storefront-editor:open-page",{slug:W}),qe=W=>{if(!M(W.label))return null;let ie=!t&&W.slug===d,he=l.canDeletePagesInline&&(m??[]).length>1,Ve=Of(W),ne=BP(W),He=[...Ve?[{label:c("Dynamic"),tone:"info"}]:[],...ne?[{label:c("Lightbox"),tone:"success"}]:[],...W.draft?[{label:c("draft"),tone:"draft"}]:[]],Yo=He.length>0?He:void 0,We=!!D&&xQ(W),je=We||l.pageCreationInAdminForm||he?Uu(QZ,{children:[We&&ve(ju,{kind:"plain",label:c("Duplicate \u201C{name}\u201D",{name:W.label}),disabled:P,onClick:()=>E(W),children:ve(fQ,{size:13})}),l.pageCreationInAdminForm&&ve(ju,{kind:"plain",label:c("Page settings for \u201C{name}\u201D",{name:W.label}),onClick:()=>mo(W.slug),children:ve(pQ,{size:13})}),he&&ve(ju,{kind:"delete",label:c("Delete \u201C{name}\u201D",{name:W.label}),disabled:P,onClick:()=>Ze(W),children:ve(Wy,{name:"trash",size:13,strokeWidth:1.7,rounded:!0})})]}):void 0;return ve(AH,{icon:ve(cQ,{size:14}),name:W.label,selected:ie,onSelect:()=>e(W.slug),badge:Yo,actions:je,rowProps:{"data-page-slug":W.slug}},W.id)},to=(W,ie,he)=>{let Ve=he.filter(Boolean);if(Ve.length===0)return null;let ne=G(W);return Uu(eQ,{children:[ve(iQ,{count:Ve.length,countLabel:$t("{n} page","{n} pages",Ve.length),expanded:ne,onToggle:()=>O(W),children:ie}),ne&&Ve]},W)},Eo=(a?.rows??[]).filter(W=>M(W.label)).map(W=>{let ie=t===W.key;return ve(AH,{icon:W.icon,name:W.label,selected:ie,onSelect:()=>r(W.key),badge:{label:c("Preview"),tone:"warning"},actions:ve(ju,{kind:"plain",label:c("Open the {name} in a new tab",{name:W.label}),onClick:()=>window.open(W.href,"_blank","noopener,noreferrer"),children:ve(Wy,{name:"external-link",size:13,strokeWidth:1.7,rounded:!0})}),rowProps:{"data-shop-surface":W.key}},W.key)}),_o=l.hasSiteSettings&&!!a,xo=(()=>{if(m===null)return null;let W=[],ie=!1;for(let he of k){_o&&!ie&&he.key.startsWith("system:")&&(W.push(to("shop",a.title,Eo)),ie=!0);let Ve=he.key===FP||he.label===AP?c(he.label):he.label;W.push(to(he.key,Ve,he.rows.map(qe)))}return _o&&!ie&&W.push(to("shop",a.title,Eo)),W})();return Uu("div",{className:"sf-pages",children:[ve(tQ,{icon:ve(uQ,{}),title:c("Pages"),context:f,actions:ve(rQ,{buttonRef:ae,label:ee?c("Add"):c("New page"),hasPopup:ee?"menu":void 0,expanded:ee?xe!==null:void 0,onClick:Je,children:ve(dQ,{size:15})})}),xe&&ve(sQ,{portal:!0,style:{top:xe.top,right:xe.right},onClose:()=>ge(null),children:Uu("div",{role:"menu","aria-label":c("Add"),children:[ve(EH,{role:"menuitem",onClick:()=>{ge(null),de()},children:c("Page")}),ve(EH,{role:"menuitem",disabled:P,onClick:()=>{ge(null),Ie()},children:c("Popup")})]})}),ve("div",{className:"sf-pages-find",children:ve(aQ,{type:"search",leftIcon:ve(Wy,{name:"search",size:14,rounded:!0}),placeholder:c("Search all pages\u2026"),value:S,onChange:W=>T(W.target.value),"aria-label":c("Search all pages")})}),C&&!b&&ve("div",{className:"sf-note sf-note--error",role:"alert",children:C}),xo===null?ve(nQ,{label:c("Loading\u2026")}):xo.some(Boolean)?ve(lQ,{ariaLabel:c("Pages"),className:"sf-scroll",children:xo}):ve("div",{className:"sf-note",children:S.trim()?c("No pages match your search"):c("No pages yet. Add one with + above.")}),D&&w&&ve(hQ,{source:{title:w.label,slug:w.slug},taken:$,host:wf(),duplicate:W=>D(w,W),onClose:()=>E(null),onDuplicated:W=>{E(null),u(),e(W.slug)}},w.id),b?ve(wH,{open:!0,onClose:()=>F(!1),takenSlugs:$,onCreated:W=>{F(!1),u(),e(W.slug)}}):null]})}import{jsx as NH}from"react/jsx-runtime";import{createContext as bQ,useCallback as wQ,useContext as CQ,useMemo as kQ,useState as vQ}from"react";import{CanvasChromeContext as PQ}from"efficient-easel/easel";import{useSelectHandler as TQ}from"efficient-easel/draw/client";import{parseHexColor as gQ,parseOption as yQ}from"efficient-shell/format";var Gu=["chat-bubble-left-right","chat-bubble-oval-left-ellipsis","chat","megaphone","phone","sparkles"],vs=Gu[0],SQ=["right","left"],ja="right";function Ku(e){return Gu.includes(e??"")?e:vs}function LH(e){return yQ(SQ,ja,e)}function DH(e){return e&&gQ(e)===e.toLowerCase()?e.toLowerCase():""}var MH="chat",qu={enabled:!0,title:"",subtitle:"",greeting:"",launcherColor:"",launcherIcon:"",launcherPosition:ja,launcherLabel:"",showOnPhones:!0};function _De(e){return{enabled:e.enabled,title:e.title,subtitle:e.subtitle,greeting:e.greeting,launcherColor:DH(e.launcherColor),launcherIcon:e.launcherIcon?Ku(e.launcherIcon):"",launcherPosition:LH(e.launcherPosition),launcherLabel:e.launcherLabel??"",showOnPhones:e.showOnPhones!==!1}}var HH=bQ({chat:qu,setChat:()=>{},setSelected:()=>{},setSelectHandler:()=>{}});function ADe({children:e,chat:o=qu,onChatChange:t}){let[r,a]=vQ(!1),n=wQ(d=>t?.(d),[t]),{select:s,setSelectHandler:l}=TQ(),i=kQ(()=>({selected:()=>r?MH:null,select:d=>d===MH&&s()}),[r,s]);return NH(HH.Provider,{value:{chat:o,setChat:n,setSelected:a,setSelectHandler:l},children:NH(PQ.Provider,{value:i,children:e})})}var Vu=()=>CQ(HH);import{jsx as zy}from"react/jsx-runtime";import{DesktopIcon as OQ,PhoneIcon as EQ,TabletIcon as _Q}from"efficient-easel/icons";import{VIEW_TIERS as AQ,VIEW_TIER_LABEL as FQ}from"efficient-easel/draw";var BQ={desktop:zy(OQ,{}),tablet:zy(_Q,{}),mobile:zy(EQ,{})},WH=AQ.map(e=>({id:e,get label(){return c(FQ[e])},icon:BQ[e]}));import{PreviewDeviceContext as Kne}from"efficient-easel/draw/client";import{jsx as RQ}from"react/jsx-runtime";import{createContext as LQ,useCallback as $H,useContext as DQ,useMemo as NQ,useRef as MQ}from"react";var HQ=Object.fromEntries(Wf.map(e=>[e,{value:"",error:null}])),zH=LQ({links:jT,rows:HQ,canSave:!1,saveLink:async()=>({ok:!1,error:"There is no website to save to."}),openPanel:()=>{},setOpenHandler:()=>{}});function $De({children:e,value:o}){let t=MQ(()=>{}),r=$H(()=>t.current(),[]),a=$H(s=>{t.current=s},[]),n=NQ(()=>({...o,openPanel:r,setOpenHandler:a}),[o,r,a]);return RQ(zH.Provider,{value:n,children:e})}var Mi=()=>DQ(zH);import{jsx as WQ}from"react/jsx-runtime";import{createContext as $Q,useContext as zQ,useMemo as UQ,useState as jQ}from"react";var UH=$Q(null);function GDe({children:e}){let[o,t]=jQ(null),r=UQ(()=>({surface:o,setSurface:t}),[o]);return WQ(UH.Provider,{value:r,children:e})}function jH(){return zQ(UH)??{surface:null,setSurface:()=>{}}}import{createPreviewSelectionContext as GQ}from"efficient-easel/draw/client";var{Provider:VDe,useSelection:Yu}=GQ("selectedHeroPart");import{jsx as we,jsxs as Vr,Fragment as n5}from"react/jsx-runtime";import{useEasel as yre,useRootFields as Sre}from"efficient-easel/easel";import{EmptyState as bre}from"efficient-shell/ui";function GH({kind:e,pageName:o}){return{name:o?.trim()||c("This page"),kindLabel:Of({kind:e})?c("Template"):c("Page")}}import{headWords as d5,InspectorHead as wre,InspectorIconButton as s5}from"efficient-easel/chrome";import{DuplicateIcon as Cre,TrashIcon as kre}from"efficient-easel/icons";import{panelFieldsOf as vre}from"efficient-easel/screen/lib/document/panel-fields";import{jsx as N,Fragment as ue,jsxs as me}from"react/jsx-runtime";import{BlockBannerIcon as VQ,BlockBoxIcon as YQ,BlockButtonIcon as XQ,BlockDividerIcon as qH,BlockFooterIcon as VH,BlockHeadingIcon as JQ,BlockProductIcon as ZQ,BlockSocialIcon as QQ,BlockTextIcon as eee,CardPaymentIcon as oee,ChatIcon as tee,AccountIcon as ree,GlobeIcon as aee,GridIcon as nee,ImageIcon as jy,MapIcon as see,MediaIcon as lee,PageIcon as iee}from"efficient-easel/icons";import{jsx as Uy,Fragment as KQ,jsxs as qQ}from"react/jsx-runtime";var KH=qQ(KQ,{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 dee={header:me(ue,{children:[N("rect",{x:"3",y:"5",width:"18",height:"14",rx:"2"}),N("path",{d:"M3 9.5h18"})]}),social:me(ue,{children:[N("circle",{cx:"6",cy:"12",r:"2.5"}),N("circle",{cx:"18",cy:"6",r:"2.5"}),N("circle",{cx:"18",cy:"18",r:"2.5"}),N("path",{d:"M8.2 10.8l7.6-3.6M8.2 13.2l7.6 3.6"})]}),ticker:me(ue,{children:[N("rect",{x:"3",y:"8.5",width:"18",height:"7",rx:"2"}),N("path",{d:"M6 12h3.5M11.5 12h2M15.5 12h2.5"})]}),FooterLogo:me(ue,{children:[N("path",{d:"M4 15.5h6M4 18h4"}),N("path",{d:"M14 8.5l3 7 3-7"})]}),FooterMenu:N("path",{d:"M6 7h12M6 11h12M6 15h8M6 19h8"}),FooterGroup:me(ue,{children:[N("rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",strokeDasharray:"3 2.5"}),N("path",{d:"M8 9h8M8 13h8M8 16h5"})]}),FooterText:N("path",{d:"M5 7h14M5 12h14M5 17h9"}),FooterEmailSignup:me(ue,{children:[N("rect",{x:"3",y:"6",width:"18",height:"12",rx:"2"}),N("path",{d:"M3.5 7l8.5 6 8.5-6"})]}),SearchBlock:me(ue,{children:[N("circle",{cx:"11",cy:"11",r:"6"}),N("path",{d:"M20 20l-4.2-4.2"})]}),CartBlock:KH,CountrySwitchBlock:me(ue,{children:[N("circle",{cx:"12",cy:"12",r:"8.5"}),N("path",{d:"M3.5 12h17M12 3.5c2.6 2.4 3.6 5.2 3.6 8.5s-1 6.1-3.6 8.5M12 3.5c-2.6 2.4-3.6 5.2-3.6 8.5s1 6.1 3.6 8.5"})]}),ThemeSwitchBlock:me(ue,{children:[N("circle",{cx:"12",cy:"12",r:"8.5"}),N("path",{d:"M12 3.5v17M12 5.5l6 6M12 10.5l5.2 5.2M12 15.5l2.8 2.8"})]}),LegalLineBlock:me(ue,{children:[N("path",{d:"M3 9h18"}),N("path",{d:"M3 14h8M14 14h2M18 14h3"})]}),Hero:me(ue,{children:[N("rect",{x:"3",y:"4",width:"18",height:"16",rx:"2"}),N("path",{d:"M7 13.5h7M7 16.5h10"})]}),HeroSlide:me(ue,{children:[N("rect",{x:"3",y:"5",width:"18",height:"14",rx:"2"}),N("path",{d:"M7 15h6M16 9.5h.01M9.5 12l-2.5 3"})]}),HeroSingle:me(ue,{children:[N("rect",{x:"3",y:"4",width:"18",height:"16",rx:"2"}),N("path",{d:"M10.5 8.5l4 2.5-4 2.5z"}),N("path",{d:"M7 17h7"})]}),Collections:me(ue,{children:[N("rect",{x:"3",y:"5",width:"4.6",height:"14",rx:"1.3"}),N("rect",{x:"9.7",y:"5",width:"4.6",height:"14",rx:"1.3"}),N("rect",{x:"16.4",y:"5",width:"4.6",height:"14",rx:"1.3"})]}),CollectionCard:me(ue,{children:[N("rect",{x:"6",y:"4",width:"12",height:"16",rx:"2"}),N("path",{d:"M9 15h6M9 17.5h4"})]}),AlloyWheelsListing:me(ue,{children:[N("path",{d:"M3 5h5M3 9h5M3 13h5M3 17h5"}),N("rect",{x:"11.5",y:"5",width:"4.2",height:"5",rx:"1"}),N("rect",{x:"17.3",y:"5",width:"4.2",height:"5",rx:"1"}),N("rect",{x:"11.5",y:"12",width:"4.2",height:"5",rx:"1"}),N("rect",{x:"17.3",y:"12",width:"4.2",height:"5",rx:"1"})]}),CatalogFilterBar:me(ue,{children:[N("path",{d:"M3 7h9M15.5 7H21"}),N("circle",{cx:"13.5",cy:"7",r:"1.7"}),N("path",{d:"M3 12h4M10.5 12H21"}),N("circle",{cx:"8.5",cy:"12",r:"1.7"}),N("path",{d:"M3 17h9M15.5 17H21"}),N("circle",{cx:"13.5",cy:"17",r:"1.7"})]}),ProductGrid:me(ue,{children:[N("rect",{x:"3",y:"5",width:"4.8",height:"6",rx:"1"}),N("rect",{x:"9.6",y:"5",width:"4.8",height:"6",rx:"1"}),N("rect",{x:"16.2",y:"5",width:"4.8",height:"6",rx:"1"}),N("rect",{x:"3",y:"13",width:"4.8",height:"6",rx:"1"}),N("rect",{x:"9.6",y:"13",width:"4.8",height:"6",rx:"1"}),N("rect",{x:"16.2",y:"13",width:"4.8",height:"6",rx:"1"})]}),RelatedProducts:me(ue,{children:[N("path",{d:"M3 5h10"}),N("rect",{x:"3",y:"9.5",width:"5",height:"9",rx:"1"}),N("rect",{x:"9.5",y:"9.5",width:"5",height:"9",rx:"1"}),N("rect",{x:"16",y:"9.5",width:"5",height:"9",rx:"1"})]}),Gallery:me(ue,{children:[N("rect",{x:"3",y:"4",width:"11",height:"16",rx:"2"}),N("rect",{x:"15.5",y:"4",width:"5.5",height:"7.5",rx:"1.5"}),N("rect",{x:"15.5",y:"12.5",width:"5.5",height:"7.5",rx:"1.5"})]}),GalleryB:me(ue,{children:[N("rect",{x:"3.5",y:"4",width:"7.5",height:"7.5",rx:"1.5"}),N("rect",{x:"13",y:"4",width:"7.5",height:"7.5",rx:"1.5"}),N("rect",{x:"3.5",y:"12.5",width:"7.5",height:"7.5",rx:"1.5"}),N("rect",{x:"13",y:"12.5",width:"7.5",height:"7.5",rx:"1.5"})]}),GalleryItem:me(ue,{children:[N("rect",{x:"4",y:"5",width:"16",height:"14",rx:"2"}),N("circle",{cx:"9",cy:"10",r:"1.6"}),N("path",{d:"M20 15.5l-4.5-4L7 19"})]}),Events:me(ue,{children:[N("rect",{x:"4",y:"5",width:"16",height:"15",rx:"2"}),N("path",{d:"M4 9.5h16M8.5 3v4M15.5 3v4M8 14h2M14 14h2"})]}),PostCard:me(ue,{children:[N("rect",{x:"4",y:"3.5",width:"16",height:"17",rx:"2"}),N("rect",{x:"6.5",y:"6",width:"11",height:"6",rx:"1"}),N("path",{d:"M6.5 14.5h11M6.5 17.5h7"})]}),Manifesto:me(ue,{children:[N("path",{d:"M7 8h3.2v4c0 1.6-1 2.6-3 3.2"}),N("path",{d:"M14 8h3.2v4c0 1.6-1 2.6-3 3.2"})]}),Stats:me(ue,{children:[N("path",{d:"M3.5 20h17"}),N("path",{d:"M6 20v-7M11 20V7M16 20v-5M20.5 20v-9"})]}),Logos:me(ue,{children:[N("circle",{cx:"6",cy:"12",r:"2.6"}),N("rect",{x:"10",y:"9.4",width:"5.2",height:"5.2",rx:"1.2"}),N("path",{d:"M19 9.2l2.4 5h-4.8z"})]}),Ticker:me(ue,{children:[N("rect",{x:"3",y:"8.5",width:"18",height:"7",rx:"2"}),N("path",{d:"M6 12h3.5M11.5 12h2M15.5 12h2.5"})]}),SectionHeader:me(ue,{children:[N("rect",{x:"3.5",y:"6",width:"5",height:"5",rx:"1.2"}),N("path",{d:"M11 8.5h9M3.5 15.5h17"})]}),IntroBleed:me(ue,{children:[N("rect",{x:"3",y:"4",width:"18",height:"16",rx:"2"}),N("path",{d:"M3 13.5h18M7 16.8h6"})]}),Split:me(ue,{children:[N("rect",{x:"3",y:"5",width:"8",height:"14",rx:"1.5"}),N("path",{d:"M14 8.5h6M14 12h6M14 15.5h4"})]}),Eyebrow:me(ue,{children:[N("path",{d:"M4 8.5h4.5M11 8.5h9"}),N("path",{d:"M4 14.5h16"})]}),HeroGroup:me(ue,{children:[N("rect",{x:"3.5",y:"4.5",width:"17",height:"15",rx:"2"}),N("path",{d:"M7 9h8M7 12.5h10M7 16h6"})]}),Form:me(ue,{children:[N("rect",{x:"3",y:"4",width:"18",height:"16",rx:"2"}),N("path",{d:"M6.5 9h11M6.5 12.5h11"}),N("rect",{x:"6.5",y:"15",width:"6.5",height:"2.6",rx:"1.3"})]}),LogoBlock:N(ue,{children:N("path",{d:"M12 3.5l7.5 3.2v5.1c0 4.2-3.2 7.1-7.5 8.7-4.3-1.6-7.5-4.5-7.5-8.7V6.7z"})}),Spacer:me(ue,{children:[N("path",{d:"M12 4v6M9.5 6.5L12 4l2.5 2.5M12 20v-6M9.5 17.5L12 20l2.5-2.5"}),N("path",{d:"M5 13h14",strokeDasharray:"2 2.5"})]}),ContactRouting:me(ue,{children:[N("rect",{x:"3",y:"4",width:"5",height:"5",rx:"1"}),N("rect",{x:"9.5",y:"4",width:"5",height:"5",rx:"1"}),N("rect",{x:"16",y:"4",width:"5",height:"5",rx:"1"}),N("path",{d:"M4 13.5h11M4 17.5h7"}),N("path",{d:"M17 15l3 2-3 2"})]}),Contents:me(ue,{children:[N("path",{d:"M4 7h2M4 12h2M4 17h2"}),N("path",{d:"M9 7h11M9 12h9M9 17h10"})]}),ListSearch:me(ue,{children:[N("path",{d:"M4 6h9M4 11h5M4 16h5"}),N("circle",{cx:"15",cy:"15",r:"4"}),N("path",{d:"M20.5 20.5l-2.7-2.7"})]}),CustomHTML:N("path",{d:"M9 8l-4 4 4 4M15 8l4 4-4 4"})},fee=N("rect",{x:"4",y:"4",width:"16",height:"16",rx:"2.5"}),cee={footer:VH,Footer:VH,Divider:qH,FooterDivider:qH,Banner:VQ,Flex:YQ,FooterSocial:QQ,FooterPayment:oee,page:iee,website:aee,AccountBlock:ree,chat:tee,Heading:JQ,Text:eee,ImageBlock:jy,ButtonBlock:XQ,LocationMap:see,Grid:nee,ProductRef:ZQ,heroMedia:lee,heroImage:jy,heroImage2:jy},pee={MenuBlock:"FooterMenu",EmailFormBlock:"FooterEmailSignup",SocialLogosBlock:"FooterSocial",PaymentLogosBlock:"FooterPayment",SiteHeader:"header",SiteFooter:"footer"};function Ga({type:e,size:o=16,className:t}){let r=pee[e]??e,a=cee[r];return a?N(a,{size:o,className:t}):N("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:dee[r]??fee})}import{PanelHideButton as l5}from"efficient-easel/screen/components/SidePanelHead";import{useEaselSession as Pre}from"efficient-easel/screen/lib/session-context";import{jsx as be,jsxs as Hi,Fragment as uee}from"react/jsx-runtime";import{useEffect as mee,useId as YH,useState as xee}from"react";import{IconPicker as hee}from"efficient-shell/ui";import{SettingsDefaultReset as Iee,SettingsField as Wi,SettingsSegmented as gee,SettingsSwitch as XH}from"efficient-easel/panel";import{ButtonIcon as yee,ButtonIconIcon as See,EyeIcon as bee,PhoneIcon as wee,PlacementIcon as Cee,TypeIcon as kee}from"efficient-easel/icons";var vee="Chat with us",Pee="We usually reply within a few minutes",Tee="Hi! Ask us anything \u2014 about a wheel, an order, or fitment. Leave your details and we\u2019ll reply.";function Xu({label:e,value:o,placeholder:t,onCommit:r,multiline:a=!1,hint:n}){let[s,l]=xee(o);mee(()=>l(o),[o]);let i=()=>{s!==o&&r(s)};return be(Wi,{label:e,icon:be(kee,{}),changed:o!=="",action:be($i,{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 $i({label:e,changed:o,onReset:t}){return be(Iee,{words:nC()?.panel,label:e,changed:o,onReset:t})}function Oee({label:e,icon:o,checked:t,fallback:r,onChange:a,hint:n}){let s=YH();return be(Wi,{label:e,labelId:s,icon:o,changed:t!==r,action:Hi("span",{className:"inline-flex items-center gap-2",children:[be(XH,{checked:t,onChange:a,ariaLabelledBy:s}),be($i,{label:e,changed:t!==r,onReset:()=>a(r)})]}),hint:n})}var Eee=Gu.map(e=>({value:e,icon:fT(e)}));function _ee(){let{theme:e}=vo(),o=ar(e).themes[0];return Hw(o)??o?.accent??""}function JH(){let{chat:e,setChat:o}=Vu(),t=YH(),r=_ee(),a=e.launcherIcon?Ku(e.launcherIcon):vs;return Hi(uee,{children:[be(Wi,{label:c("Show the chat bubble"),labelId:t,icon:be(bee,{}),changed:!e.enabled,action:Hi("span",{className:"inline-flex items-center gap-2",children:[be(XH,{checked:e.enabled,onChange:n=>o({enabled:n}),ariaLabelledBy:t}),be($i,{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.")}),Hi(Hx,{title:c("Look"),children:[be(pT,{label:c("Button color"),icon:be(yee,{}),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(Wi,{label:c("Icon"),icon:be(See,{}),value:be(JP,{value:a}),changed:a!==vs,action:be($i,{label:c("Icon"),changed:a!==vs,onReset:()=>o({launcherIcon:""})}),children:be(hee,{label:c("Icon"),value:a,options:Eee,onChange:n=>o({launcherIcon:n===vs?"":n})})}),be(Wi,{label:c("Position"),icon:be(Cee,{}),changed:e.launcherPosition!==ja,action:be($i,{label:c("Position"),changed:e.launcherPosition!==ja,onReset:()=>o({launcherPosition:ja})}),children:be(gee,{options:[{label:c("Right"),id:"right"},{label:c("Left"),id:"left"}],value:e.launcherPosition,ariaLabel:c("Position"),onChange:n=>o({launcherPosition:n})})}),be(Xu,{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(Oee,{label:c("Show on phones"),icon:be(wee,{}),checked:e.showOnPhones,fallback:qu.showOnPhones,onChange:n=>o({showOnPhones:n})})]}),Hi(Hx,{title:c("Wording"),children:[be(Xu,{label:c("Title"),value:e.title,placeholder:vee,onCommit:n=>o({title:n})}),be(Xu,{label:c("Subtitle"),value:e.subtitle,placeholder:Pee,onCommit:n=>o({subtitle:n})}),be(Xu,{label:c("Greeting message"),value:e.greeting,placeholder:Tee,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 Ka,Fragment as pS,jsxs as t2}from"react/jsx-runtime";import{useEffect as soe,useId as e2,useState as o2}from"react";import{SettingsField as loe}from"efficient-easel/panel";import{jsx as Jee}from"react/jsx-runtime";import{forwardRef as Aee,createElement as Gy}from"react";var ZH={outline:{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"},filled:{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",stroke:"none"}};var se=(e,o,t,r)=>{let a=Aee(({color:n="currentColor",size:s=24,stroke:l=2,title:i,className:d,children:f,...m},u)=>Gy("svg",{ref:u,...ZH[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 Fee=[["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=se("outline","brand-facebook","BrandFacebook",Fee);var Bee=[["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=se("outline","brand-instagram","BrandInstagram",Bee);var Ree=[["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=se("outline","brand-line","BrandLine",Ree);var Lee=[["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=se("outline","brand-linkedin","BrandLinkedin",Lee);var Dee=[["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=se("outline","brand-pinterest","BrandPinterest",Dee);var Nee=[["path",{d:"M15 10l-4 4l6 6l4 -16l-18 7l4 2l2 6l3 -4",key:"svg-0"}]],Jy=se("outline","brand-telegram","BrandTelegram",Nee);var Mee=[["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"}]],Zy=se("outline","brand-tiktok","BrandTiktok",Mee);var Hee=[["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=se("outline","brand-wechat","BrandWechat",Hee);var Wee=[["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=se("outline","brand-whatsapp","BrandWhatsapp",Wee);var $ee=[["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=se("outline","brand-x","BrandX",$ee);var zee=[["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=se("outline","brand-youtube","BrandYoutube",zee);var Uee=[["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=se("filled","brand-facebook-filled","BrandFacebookFilled",Uee);var jee=[["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=se("filled","brand-instagram-filled","BrandInstagramFilled",jee);var Gee=[["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=se("filled","brand-linkedin-filled","BrandLinkedinFilled",Gee);var Kee=[["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=se("filled","brand-pinterest-filled","BrandPinterestFilled",Kee);var qee=[["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=se("filled","brand-tiktok-filled","BrandTiktokFilled",qee);var Vee=[["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=se("filled","brand-whatsapp-filled","BrandWhatsappFilled",Vee);var Yee=[["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=se("filled","brand-x-filled","BrandXFilled",Yee);var Xee=[["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=se("filled","brand-youtube-filled","BrandYoutubeFilled",Xee);var AMe="outline",Ju={fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},Zee={},cS={fillRule:"evenodd"},Qee=[["path",{...Ju,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"}]],eoe=[["path",{...Ju,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",{...Zee,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("")}]],ooe=[["path",{...Ju,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",{...Ju,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("")}]],toe=se("filled","brand-telegram-filled","BrandTelegramFilled",Qee),roe=se("filled","brand-line-filled","BrandLineFilled",eoe),aoe=se("filled","brand-wechat-filled","BrandWechatFilled",ooe),noe={instagram:{outline:qy,solid:aS},facebook:{outline:Ky,solid:rS},tiktok:{outline:Zy,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:Jy,solid:toe},line:{outline:Vy,solid:roe},wechat:{outline:Qy,solid:aoe}};function QH({platform:e,iconStyle:o,size:t}){let r=noe[e][o];return Jee(r,{size:t,stroke:1.75,"aria-hidden":"true",focusable:"false"})}var ioe={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 doe({platform:e}){let{rows:o,saveLink:t}=Mi(),{value:r,error:a}=o[e],[n,s]=o2(r),[l,i]=o2(!1),d=e2(),f=e2();soe(()=>s(r),[r]);let m=async()=>{if(n.trim()===r){n!==r&&s(r);return}i(!0),await t(e,n),i(!1)},u=UT[e];return t2(pS,{children:[Ka(loe,{label:c(u),htmlFor:d,icon:Ka(QH,{platform:e,iconStyle:"outline",size:18}),children:Ka("input",{id:d,type:"text",inputMode:"url",value:n,placeholder:ioe[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&&Ka("p",{id:f,className:"sf-note sf-note--error",role:"alert",children:a})]})}function r2({unavailable:e}){let{canSave:o}=Mi();return!o&&e?Ka(pS,{children:e}):t2(pS,{children:[Ka("p",{className:"es-field-hint",children:c("Paste a link to each profile. A platform left empty shows nothing on the site.")}),Wf.map(t=>Ka(doe,{platform:t},t))]})}import{jsx as Ya,Fragment as Loe,jsxs as Doe}from"react/jsx-runtime";import{useId as Noe,useMemo as Moe}from"react";import{useEasel as Hoe}from"efficient-easel/easel";import{SettingsField as Woe,SettingsSwitch as $oe}from"efficient-easel/panel";import{EyeIcon as zoe}from"efficient-easel/icons";import{fieldShownInView as Uoe}from"efficient-easel/fields";import{usePreviewDevice as joe}from"efficient-easel/draw/client";import{ROOT_ZONE as Goe}from"efficient-easel/draw";import{jsx as Va,Fragment as poe}from"react/jsx-runtime";import{createContext as uoe,useContext as moe,useLayoutEffect as xoe,useMemo as n2,useRef as hoe,useState as s2}from"react";import{useEasel as l2,useSelectedFields as Ioe}from"efficient-easel/easel";import{fieldShownInView as goe,Inspector as yoe,LEAD_BAND_KEY as Soe,planFields as i2}from"efficient-easel/fields";function a2({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 foe}from"react/jsx-runtime";import{EmptyState as coe}from"efficient-shell/ui";function qa(){return foe(coe,{variant:"none",icon:!1,message:c("These settings apply to every view.")})}import{usePreviewDevice as boe}from"efficient-easel/draw/client";import{deviceField as woe}from"efficient-easel/screen/lib/document/device-fields";var Coe="Text",uS=new Map,Zu=new Set,koe=Object.fromEntries(Ri.map(e=>{let o=CT[e];return[e,Va(o,{},e)]})),d2=uoe(null),voe={_partBody:woe("each",{type:"custom",render:()=>Va(Poe,{})})};function Poe(){return Va(poe,{children:moe(d2)})}function Ft({entries:e,entryCount:o=0,part:t=null,omit:r,motion:a,body:n,itemWord:s}){let{id:l,fields:i,values:d,readOnly:f,onChange:m}=Ioe(),u=n2(()=>a?{...d,...a.values}:d,[d,a?.values]),h=(ee,Ie)=>a?.keys.has(ee)?a.onChange(ee,Ie):m(ee,Ie),I=boe(),{appState:S,config:T}=l2(ee=>ee),P=DP(I,T,S.data.content??[],S.ui.itemSelector),L=n===void 0?D_(i,t):voe,C=n2(()=>{let ee=r?.length?Object.fromEntries(Object.entries(L).filter(([Ie])=>!r.includes(Ie))):L;return a?{...ee,...a.fields}:ee},[L,r,a?.fields]),y=Ax(C,u,P),[b,F]=s2(()=>new Set(Zu)),_=goe({},I),D={key:Soe,title:Coe},w=l2(ee=>ee.selectedItem)!==null,E=a?.part??t??"",g=`${l}:${E}:${String(I)}`,[v,O]=s2(()=>({tab:uS.get(g)})),k=`${l}:${E}`,A=hoe(null),M={...P,node:u},G=i2(y,{values:u,context:M}).buckets,$=a2({allTabs:w,remembered:uS.get(g),inherited:A.current?.panel===k?A.current.tab:v.tab,buckets:G,hasText:_&&o>0}),de=!_&&!G.includes($)&&(i2(Ax(C,u,{...P,device:"desktop"}),{values:u,context:{...M,device:"desktop"}}).buckets.includes($)||$==="Design"&&o>0);xoe(()=>{A.current={panel:k,tab:$}});let le=$==="Design";return Va(d2.Provider,{value:n??null,children:Va(_T.Provider,{value:a?u:null,children:Va(yoe,{fields:y,values:u,onChange:h,readOnly:f,allTabs:w,showWhenContext:M,context:{itemWord:s},tab:$,onTab:ee=>{uS.set(g,ee),O({tab:ee})},tabIcons:koe,idPrefix:l,ariaLabel:c("Section settings"),lead:le?e:null,leadFold:D,closedFolds:b,onFold:(ee,Ie)=>{Ie?Zu.delete(ee):Zu.add(ee),F(new Set(Zu))},children:de&&Va(qa,{})})})})}import{useMemo as Toe}from"react";import{useEasel as Ooe}from"efficient-easel/easel";import{useSectionOps as Eoe}from"efficient-easel/screen/lib/document/use-section-ops";var f2=new Map,_oe=e=>{let o=f2.get(e);return o||f2.set(e,o=Au(Eu(e),`part:${e}`)),o},Aoe=new Set(Ah);function Ps(e,o,t){let{getItemById:r,getSelectorForId:a}=Ooe(f=>f),n=Eoe(),s=r(e)?.props??{},l=Sa(s,o),i=JSON.stringify(l),d=Toe(()=>Object.fromEntries(Ah.map(f=>[f,l[f]])),[i]);return{part:o,fields:_oe(t),values:d,keys:Aoe,onChange:(f,m)=>{let u=a(e),h=r(e);if(!u||!h)return;let I=VO(h.props??{},o,f,m);n.replaceComponent(u.zone,u.index,{...h,props:I})}}}import{Fragment as Foe,createElement as Boe}from"react";import{deviceField as mS}from"efficient-easel/screen/lib/document/device-fields";var wo=()=>({type:"custom",render:()=>Boe(Foe)});var xS={words:wo(),sourceNote:wo(),style:wo(),font:wo(),italic:wo(),fontSize:mS("each",wo()),lineHeight:wo(),letterSpacing:wo(),paragraphSpacing:wo(),padding:wo(),align:mS("each",wo()),letterCase:wo(),fixedSizeHint:mS("each",wo()),regionNote:wo(),regionStyle:wo()},Roe=["fontSize","align"];function c2(e){return Roe.includes(e)}var p2={showTicker:wo(),items:wo()};function u2({heroId:e}){let{appState:o,dispatch:t}=Hoe(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=Moe(()=>{let h=n?.props.tickerItems;return Array.isArray(h)?h:T1.map(I=>({text:I}))},[n]),i=Noe(),d=joe(),f=h=>Uoe(p2[h],d),m=Ps(e,O1,"block");if(!n)return Ya("p",{className:"sf-note",children:c("This ticker\u2019s hero is no longer on the page.")});let u=h=>t({type:"replace",destinationZone:Goe,destinationIndex:a,data:{...n,props:{...n.props,...h}}});return Ya(Ft,{motion:m,body:Doe(Loe,{children:[!f("showTicker")&&!f("items")&&Ya(qa,{}),f("showTicker")&&Ya(Woe,{label:c("Show ticker"),labelId:i,icon:Ya(zoe,{}),action:Ya($oe,{checked:s,onChange:h=>u({showTicker:h}),ariaLabelledBy:i})}),f("items")&&Ya(LT,{label:zx.label,icon:zx.icon,items:l,placeholder:"item",onChange:h=>u({tickerItems:h}),markup:!0})]})})}import{jsx as J,Fragment as ji,jsxs as yt}from"react/jsx-runtime";import{useContext as nte,useEffect as hS,useRef as ste,useState as k2}from"react";import{FieldSelect as lte,InspectorField as ite,fieldShownInView as dte}from"efficient-easel/fields";import{InertHint as B2,SettingsField as fte}from"efficient-easel/panel";import{InspectorUpLevel as am}from"efficient-easel/chrome";import{StylesIcon as cte,TypeIcon as pte}from"efficient-easel/icons";import{useEasel as ute}from"efficient-easel/easel";import{TextPartPanel as v2}from"efficient-easel/copy";import{Button as mte,IconButton as xte,Tooltip as hte}from"efficient-shell/ui";import{jsx as h2,jsxs as Koe}from"react/jsx-runtime";import{DEFAULT_EASEL_STRINGS as qoe}from"efficient-easel/strings";import{COPY_CELLS as Ts,COPY_CELL_LENGTHS as m2,CopyBox as Voe,lengthCellUnits as Yoe}from"efficient-easel/copy";import{PaddingYIcon as Xoe}from"efficient-easel/icons";import{onDesktopWords as Joe}from"efficient-easel/screen/lib/document/box-fields";var x2=qoe.copy.cells,Zoe={kind:"spacing"},Qoe=["left","center","right","justify"];function Qu(e,o,t,r="desktop"){let a=Bv(e),n=Lv(r),s=e[n]??e.size??o.sizePx,l=Dv(e,r),i=(f,m,u,h,I)=>{let S=fl[u];return Yoe({preset:f,row:m,table:_f,unit:e[S],value:e[u],tier:r,styleValue:h,label:c(I),onPick:(T,P)=>t({[S]:T??null,[u]:P??null}),onChange:(T,P)=>t({...P?{[S]:P.unit??null}:{},[u]:T??null})})},d={key:"padding",name:c("Padding"),icon:h2(Xoe,{}),unit:"px",step:Ev,shiftStep:10,min:Tv,max:Ov};return[{...Ts.fontSize,key:"fontSize",value:e[n],styleValue:Math.round(o.sizePx),onChange:f=>t({[n]:f??null}),...i(Ts.fontSize,m2.fontSize,n,Math.round(o.sizePx),x2.fontSize),...n==="size"?{}:{reset:{detail:l?Joe(f=>c(f),`${l.px}px`,l.view):void 0}}},{...Ts.lineHeight,key:"lineHeight",value:a.lineHeight,styleValue:o.lineRatio,onChange:f=>t(f===void 0?{lineHeight:null,line:null}:{lineHeight:f})},{...Ts.letterSpacing,key:"letterSpacing",scale:s,value:a.letterSpacingEm,styleValue:o.letterEm,onChange:f=>t(f===void 0?{letterSpacing:null,letter:null}:{letterSpacing:f})},{...Ts.paragraphSpacing,key:"paragraphSpacing",value:e.paragraphSpacing,styleValue:0,onChange:f=>t({paragraphSpacing:f??null}),...i(Ts.paragraphSpacing,m2.paragraphSpacing,"paragraphSpacing",0,x2.paragraphSpacing)},{...d,value:e.padding,styleValue:o.paddingPx,onChange:f=>t({padding:f??null}),...i(d,Zoe,"padding",o.paddingPx,"Padding")}]}function I2({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=Qu(n,s,l),I=nh(r,t);return Koe("div",{className:"sf-part-textbox",children:[m,h2(Voe,{value:e,onChange:o,multiline:t,placeholder:d,ariaLabel:f,rules:Id,tools:I,barShows:u?"focus":"always",colors:r?i:[],colorNameOf:cf,align:a?{value:n.align??s.align,allow:Qoe,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 P2}from"efficient-easel/draw/client";import{jsx as em,Fragment as ete,jsxs as ote}from"react/jsx-runtime";import{Button as g2,Dialog as tte}from"efficient-shell/ui";function y2({styleName:e,onCancel:o,onConfirm:t}){return em(tte,{open:!0,onClose:o,role:"alertdialog",size:"sm",title:c("Update {style}?",{style:e}),footer:ote(ete,{children:[em(g2,{variant:"secondary",onClick:o,children:c("Cancel")}),em(g2,{variant:"primary",onClick:t,children:c("Update style")})]}),children:em("p",{children:c("Every text on the site that follows {style} changes to look like this one. This text\u2019s own changes are cleared, and it keeps following {style}.",{style:e})})})}import{ScreenDocumentContext as Ite}from"efficient-easel/screen/components/ScreenDocumentContext";import{usePreviewDevice as gte}from"efficient-easel/draw/client";import{shownTier as tm}from"efficient-easel/screen/lib/document/device-fields";import{TEXT_FIELD_MARKER as yte,viewKeyAt as Ste}from"efficient-easel/draw";import{useSectionOps as bte}from"efficient-easel/screen/lib/document/use-section-ops";import{useEaselHost as wte}from"efficient-easel/screen/lib/host";function rte(e){let o=new Set([...Object.keys(z(Qk,e)??{}),...z(ev,e)??[]]);for(let[t,r]of Object.entries(z(tv,e)??{}))r.verb==="snapshot"&&o.add(t);return[...o].sort()}var ate={CollectionCard:"product",FooterMenu:"menu",Gallery:"product",GalleryItem:"product",ProductGrid:"product",ProductHero:"product",SpecTable:"product",Events:"blog",FeaturedCover:"blog",LongRead:"blog",SubscribeBlogs:"blog"},S2={product:"Synced from the product.",blog:"Synced from the blog post.",menu:"Synced from the site menu."},b2="Open",w2={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 Os(e){let o=e?.source?.slug;return ho(o)}function zi(e){return z(ate,e)??null}function C2(e,o){let t=zi(e);return t&&rte(e).includes(o)?t:null}function om(e){let o=e?.menu?.id;return ho(o)}function IS(e){return e?c(e):null}function T2(e){return e.kind==="role"?Em[e.role]:e.kind==="custom"?"Custom":null}function Cte(e){let o=yb(e.role);return o?{kind:"role",role:o}:null}function kte(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 rm(e,o,t,r){return Cte(Er(e,o))??kte(t,r)}function vte(e,o){if(!e.length)return null;let t=o(e[0]);return e.every(r=>o(r)===t)?t:null}function O2(e,o){return[{value:Ui,label:c("No style"),description:c("Section\u2019s own")},...e.map(t=>({value:t.id,label:t.name,description:t.values.font?hd(t.values.font,o)?.label:void 0}))]}var Ui="";function Pte({face:e,base:o,onPick:t}){let r=Qo(),a=e.kind==="role"?e.role:Ui,n=[{label:c("No style"),value:Ui},...gb.map(s=>({label:c(Em[s]),value:s}))];return J(lte,{ariaLabel:c("Style"),value:a,options:n,inline:!0,onChange:s=>t(s===Ui?null:s),renderOption:s=>s.value===Ui?yt(ji,{children:[J("span",{className:"es-fsel-label sf-part-style-keep",children:s.label}),J("span",{className:"sf-part-style-aside","aria-hidden":"true",children:c("Section\u2019s own")})]}):J("span",{className:"es-fsel-label",style:{fontFamily:`var(--font-role-${s.value})`},children:s.label}),renderValue:()=>J("span",{style:{fontFamily:o?.fontKey?`var(${hd(o.fontKey,r)?.cssVar})`:void 0,fontWeight:o?.weight},children:IS(T2(e))}),valueText:s=>IS(T2(e))??s?.label??""})}var R2=["regionNote","regionStyle"],Tte=Object.keys(xS).filter(e=>!R2.includes(e));function L2(e,o){return!e.some(o)}function Ote({sectionName:e,onBack:o,textEditor:t,styleRow:r,children:a,tabs:n}){let s=yt(ji,{children:[t,r,a]});return yt("div",{className:"sf-part-panel",children:[J(am,{inline:!0,name:c(e),onSelect:o}),n?n(s):s]})}function nm({source:e,slug:o,menuId:t}){let r=wte(),a=w2[e],n=!a.needsSlug||!!o;return J("div",{className:"sf-note sf-note--source",children:yt(B2,{children:[c(S2[e]),n?yt(ji,{children:[" ",J(mte,{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(b2)})]}):null]})})}var E2=4,Ete=120;function _2(e){return c("Every {part} in this section follows it. The face and the size change; the letter case is the section\u2019s own and stays as it is.",{part:c(e.label).toLowerCase()})}function A2({region:e,sizePx:o,face:t,base:r,onFollowStyle:a,source:n,slug:s,onBack:l,shows:i,sizedStyle:d,ownLook:f}){let m=e.follows;return yt("div",{className:"sf-note",children:[J("p",{children:J("strong",{children:c(e.label)})}),i("regionNote")&&!f&&J("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?yt(ji,{children:[d,i("regionStyle")&&J("p",{className:"es-field-hint",children:_2(e)})]}):a?i("regionStyle")?J(ji,{children:J(fte,{label:c("Style"),icon:J(cte,{}),hint:_2(e),children:J(Pte,{face:t,base:r,onPick:a})})}):null:i("regionNote")&&J("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")?J(nm,{source:n,slug:s}):null,L2([...R2,"sourceNote",...d?["fontSize"]:[]],u=>i(u)&&(u!=="sourceNote"||!!n))&&J(qa,{}),J(am,{inline:!0,name:c("Page"),onSelect:l})]})}function _te({onBack:e}){return yt("div",{className:"sf-note",children:[J("p",{children:J("strong",{children:c("This part is no longer here.")})}),J("p",{children:c("The section it belonged to has been changed or removed.")}),J(am,{inline:!0,name:c("Page"),onSelect:e})]})}function Ate({onBack:e,partId:o,why:t}){return yt("div",{className:"sf-note",children:[J("p",{children:J("strong",{children:c("This part's settings did not open.")})}),J("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.")}),J("p",{className:"sf-note-detail",children:yt("code",{children:[o," \u2014 ",t]})}),J(am,{inline:!0,name:c("Page"),onSelect:e})]})}function D2({nodeId:e,propKey:o,onBack:t,onEditStyle:r}){let{getItemById:a,getSelectorForId:n,config:s}=ute(q=>q),l=bte(),i=v0(),{partStyle:d}=us(),{fonts:f,textStyles:m}=vo(),u=Qo(),h=GT(),I=nte(Ite),S=!I?.capabilities?.hasSiteTheme,{persist:T}=xT({themeFromDocument:S,tokenRef:I?.tokenRef,siteId:I?.siteId??null}),P=o0({themeFromDocument:S,persist:T}),[L,C]=k2(!1),y=gte(),b=q=>(tm(y)!=="tablet"||c2(q))&&dte(xS[q],y),F=ste(null),_=a(e),D=n(e),w=_?s.components[_.type]:void 0,{key:E,row:g}=Ut(o),v=w?.fields?.[E],O=g?Hn(v,g):v,k=jt(e,o),A=_?.props??{},M=mf(O),G=Df(O),$=hv(O),de=_?zi(_.type):null,le=_?C2(_.type,E):null,ee=g?hf(A[E],g):A[E],Ie=!!g&&!(Array.isArray(A[E])&&g.index<A[E].length);hS(()=>{k0(document)||F.current?.querySelector(".es-copy [contenteditable='true'], .es-copy textarea, .sf-copybox textarea, .sf-copybox input")?.focus()},[k]);let[ae,xe]=k2(0);hS(()=>xe(0),[k]);let ge=!!_&&!Ie&&(!D||!O);hS(()=>{if(!ge||ae>=E2)return;let q=setTimeout(()=>xe(Ae=>Ae+1),Ete);return()=>clearTimeout(q)},[ge,ae]);let Je=ge&&ae<E2,Ze=Ps(e,fr(_?.type,o),"textPart");if(!_||Ie)return J(_te,{onBack:t});let mo=ms(_.type),qe=mo?qs(mo,o):null;if(mo&&qe){let q=d?.partId===k?d:null,Ae=mo[qe],Do=Ae.writable===!0&&!!D,bt=Dt=>{D&&l.replaceComponent(D.zone,D.index,{..._,props:la(A,o,"role",Dt)})};if(Do&&xw(Ae)){let Dt=Er(A,o),tn=Qr=>{if(!D)return;let Tm=A;for(let[S6,b6]of Object.entries(Qr))Tm=la(Tm,o,S6,b6??null);l.replaceComponent(D.zone,D.index,{..._,props:Tm})},I6=Gx(P.saved,P.old),g6=Cx(Dt)??"",y6=Qu(Dt,q?.base??F2,tn,tm(y)).filter(Qr=>Qr.key==="fontSize"&&b(Qr.key));return J(Ft,{motion:Ze,body:J(A2,{region:Ae,sizePx:q?.base.sizePx??null,face:rm(A,o,q,f),base:q?.base??null,source:de,slug:Os(A),onBack:t,shows:b,ownLook:jv(Dt),sizedStyle:J(v2,{style:b("style")?{value:g6,options:O2(I6,u),onChange:Qr=>tn(Qr?{textStyle:Qr}:{textStyle:null,role:null}),onEditStyles:r}:void 0,cells:y6})})})}return J(Ft,{motion:Ze,body:J(A2,{region:Ae,sizePx:q?.base.sizePx??null,face:rm(A,o,q,f),base:q?.base??null,onFollowStyle:Do?bt:void 0,source:de,slug:Os(A),onBack:t,shows:b})})}if(!D||!O)return Je?J("div",{className:"sf-note","aria-busy":"true"}):J(Ate,{onBack:t,partId:k,why:D?"no field":"no selector"});let to=q=>{l.replaceComponent(D.zone,D.index,{..._,props:q})},Eo=q=>{if(pa(q).hidden!==pa(ee).hidden||!M){let Ae=g?iv(A,E,g,q):{...A,[E]:q};Ae&&to(Ae);return}Gf({node:_,propKey:o,kind:M,zone:D.zone,index:D.index},pa(q).text,l.replaceComponent)},_o=ee,xo=d?.partId===k?d:null,W=xo?.styleOwner,ie=W?a(W.owner):null,he=W&&ie?n(W.owner):null,Ve=!!(W&&ie&&he),ne=Ve?ie.props??{}:A,He=Ve?q=>l.replaceComponent(he.zone,he.index,{...ie,props:q}):to,Yo=Ve?W.kind:fr(_?.type,o),We=Er(ne,Yo),je=[{partKey:Yo,face:rm(ne,Yo,xo,f),sizeGroup:xo?.sizeGroup??null,base:xo?.base??F2,style:We}],Yr=vte(je,q=>q.sizeGroup),ld=pf(xo?.inks),Xr=(q,Ae)=>{let Do=ne;for(let bt of je)Do=la(Do,bt.partKey,q,Ae);He(Do)},Pm=q=>q?Xr("textStyle",q):Ro({textStyle:null,role:null}),Ro=q=>{let Ae=ne;for(let Do of je)for(let[bt,Dt]of Object.entries(q))Ae=la(Ae,Do.partKey,bt,Dt??null);He(Ae)},Jr=M==="text"||M==="textarea",{text:Rs,hidden:Lo}=pa(ee),Qa=O?.[yte]?.label??o,Zt=Lo?c("Show {label} on the slide",{label:c(Qa)}):c("Hide {label} on the slide",{label:c(Qa)}),Ls=yt("div",{className:"sf-field-head",children:[J(pte,{}),J("span",{className:"sf-field-label sf-field-label--inline",children:c(Qa)}),Jr&&J(hte,{content:Zt,children:J(xte,{"aria-pressed":Lo,"aria-label":Zt,onClick:()=>Eo({text:Rs,hidden:!Lo}),children:Lo?J(P2,{name:"eye-off",size:14}):J(P2,{name:"eye",size:14})})})]}),Zr=!G&&$,Ir=!!M&&(wT(O)||G||Lo||!$),id=rm(ne,Yo,xo,f),en=id.kind==="role"?id.role:null,Ds=Cx(We)??YT(en),dd=Gx(P.saved,P.old),fd=Object.entries(We).filter(([q,Ae])=>q!=="role"&&q!=="textStyle"&&Ae!==void 0).length,Ns=()=>{let q=ne;for(let Ae of je){let{role:Do,textStyle:bt}=Ae.style;q=Fv(q,Ae.partKey),Do&&(q=la(q,Ae.partKey,"role",Do)),bt&&(q=la(q,Ae.partKey,"textStyle",bt))}He(q)},Lt=Ds,Ms=JT(je[0].style),Hs=Lt?dd.find(q=>q.id===Lt)?.name??Lt:"",on=()=>{C(!1),Lt&&(P.write(ZT({saved:P.saved,old:P.old,styleId:Lt,values:XT(je[0].style)}),!0),Ns())};return yt(Ote,{sectionName:w?.label??_.type,onBack:t,tabs:q=>J(Ft,{motion:Ze,body:q}),textEditor:b("words")?J("div",{ref:F,className:"sf-part-text",children:Ir?J(I2,{text:Rs,onTextChange:q=>Eo(Jr?{text:q,hidden:Lo}:q),multiline:xf(M),markup:M!=="plainText",styled:!1,style:je[0].style,base:je[0].base,setValue:Ro,colors:ld,placeholder:IS(av(O))??void 0,ariaLabel:c(Qa),head:Ls,typedOnCanvas:i===k}):M?Jr?Ls:null:J(ite,{field:O,name:o,value:_o,onChange:Eo,id:`sf-part-${e}-${o}`})}):void 0,children:[le&&b("sourceNote")&&J(nm,{source:le,slug:Os(A),menuId:om(A)}),Zr&&J(v2,{style:b("style")?{value:Ds??"",options:O2(dd,u),onChange:q=>Pm(q||null),changed:fd>0,onEditStyles:r,onUpdateStyle:Lt&&Ms?()=>C(!0):void 0}:void 0,font:b("font")?{value:We.font??"",styleValue:hd(je[0].base.fontKey,u)?.label,options:QT(u,e0(h,[We.font,je[0].base.fontKey])),onChange:q=>Xr("font",q||null)}:void 0,italic:b("italic")?{value:We.italic,styleValue:Bte(m,Ds),onChange:q=>Xr("italic",q??null)}:void 0,cells:Qu(je[0].style,je[0].base,Ro,tm(y)).filter(q=>b(q.key)),align:b("align")?Fte(We,je[0].base.align,tm(y),Xr):void 0,letterCase:b("letterCase")?{value:We.case??"",styleValue:je[0].base.case,onChange:q=>Xr("case",q||null)}:void 0}),L&&Lt&&J(y2,{styleName:Hs,onCancel:()=>C(!1),onConfirm:on}),Zr&&Yr===null&&b("fixedSizeHint")&&J(B2,{children:c("Fixed size \u2014 the site\u2019s Text setting doesn\u2019t resize this.")}),L2(Tte,q=>b(q)&&(q==="words"||(q==="sourceNote"?!!le:q==="fixedSizeHint"?Zr&&Yr===null:Zr)))&&J(qa,{})]})}function Fte(e,o,t,r){let a=Ste("align",t),n=Rv(e,t);return{value:e[a]??"",styleValue:n??o,onChange:s=>r(a,s||null)}}function Bte(e,o){return!o||!Array.isArray(e)?!1:e.find(t=>t?.id===o)?.values?.italic===!0}var F2={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 Wte}from"react/jsx-runtime";import{useCallback as $te,useRef as zte,useState as qi}from"react";import{InspectorIconButton as Ute}from"efficient-easel/chrome";import{useEasel as jte}from"efficient-easel/easel";import{LoadingSpinner as Gte,PopupMenu as Kte,PopupMenuItem as qte,PopupMenuLabel as kS}from"efficient-shell/ui";import{CopyToPageIcon as Vte}from"efficient-easel/icons";import{useEaselSession as Yte}from"efficient-easel/screen/lib/session-context";import{cloneNodeWithFreshIds as Xte}from"efficient-easel/screen/lib/document/section-doc";import{FOOTER_TYPE as Jte}from"efficient-easel/draw";import{newId as Dte}from"efficient-easel/data";import{isBackendError as Es}from"efficient-easel/screen/lib/backend-error";import{isEfficientBackend as K2}from"efficient-easel/screen/lib/session";var sm=ZP(),gS=sm.set;function lm(e,o){gS(e,o)}function im(e,o){let t=sm.get(e);gS(e,o??(t==="live"?"changed":t))}function dm(e,o){gS(e,o??"live")}function N2(e){return sm.get(e)}function M2(e){return sm.use(e)}function H2(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 W2(e){return e.map(o=>o.change==="take_down"?c("{name} (taken down)",{name:o.name}):o.name)}var $2="SharedSection",Rte=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i,Gi=e=>{let o=e?.content;return Array.isArray(o)?o:[]},Ki=e=>{let o=e?.props?.id;return typeof o=="string"?o:void 0};function z2(e){if(e?.type!==$2)return null;let o=e.props?.section;return typeof o=="string"&&Rte.test(o)?o.toLowerCase():null}function U2(e){let o=[];for(let t of Gi(e)){let r=z2(t),a=Ki(t);r&&a&&o.push({refId:a,section:r})}return o}function fm(e){let o=Gi(e)[0];return o&&typeof o=="object"&&Ki(o)?o:null}function Lte(e,o){return{type:$2,props:{id:e,section:o}}}function j2(e,o){let t=new Map,r=new Set,a=!1,n=Gi(e).map(s=>{let l=z2(s),i=Ki(s);if(!l||!i||r.has(l))return s;let d=fm(o.get(l)),f=Ki(d??void 0);return!d||!f||t.has(f)?s:(r.add(l),t.set(f,{section:l,refId:i,reference:s}),a=!0,d)});return{working:a?{...e,content:n}:e,held:t}}function G2(e,o,t){let r=new Map,a=!1,n=Gi(e).map(s=>{let l=Ki(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=Gi(d).slice(1),m=fm(d);return r.set(i.section,m===s?d:{...d,content:[s,...f]}),a=!0,i.reference??Lte(i.refId,i.section)});return{page:a?{...e,content:n}:e,docs:r}}function wS(e){return!!(e?.publish&&e.liveState)}function Nte(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 Mte(e,o){return async(t,r)=>{try{await mT()}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"?Rf({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&&(lm(n.id,n.live),nT(n.id,n.videoFrames)),n)),saveLayout:(a,n,s,l)=>e.save(a,{layout:n},{version:s,clientId:l??""}).then(i=>(im(a,i.live),sT(a,i.videoFrames),ca(),i)),rereadVersion:e.version?a=>e.version(a):void 0,publish:wS(t)?Mte(t,r):e.publish?(a,n)=>e.publish(a,n?{version:n}:void 0).then(s=>(dm(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 Hte(e,o,t,r,a=!1){let n=null,s=new Set,l=!1,i=new Map,d=new Map,f=new Map,m=new Map,u={docId:null,lockHolder:null,conflict:null,saveFailed:!1,unpublished:!1,loadFailed:!1,sections:[]},h=new Set,I=()=>{if(!n)return!1;let w=N2(n.id);return w==="changed"||w==="never"||w===void 0&&l},S=w=>{u={...u,...w,docId:n?.id??null,unpublished:I(),sections:[...f.values()],rootProps:tT(n?.layout)};for(let E of h)E()},T=(w,E,g)=>{E?f.set(w,{section:w,title:i.get(w)?.title??"",problem:E,holder:g}):f.delete(w)},P=w=>w&&typeof w=="object"&&!Array.isArray(w)?w:{},L=w=>s.has(w),C=()=>new Map([...i].map(([w,E])=>[w,E.layout])),y=()=>Dte("SharedSection"),b=(w,E,g,v)=>{let O=P(E);i.set(w,{layout:O,version:g,savedJson:JSON.stringify(O),title:v})},F={state:()=>u,subscribe:w=>(h.add(w),()=>{h.delete(w)})},_={sectionOf:w=>d.get(w)?.section??null,heldElsewhere:w=>{let E=d.get(w)?.section;return!!(E&&f.get(E)?.problem==="lock")},adopt:(w,E)=>{b(E.id,E.layout,E.layout_updated_at,E.title),d.set(w,{section:E.id,refId:y()}),m.set(E.id,E.used_on),S({})},place:w=>{if([...d.values()].some(v=>v.section===w.id))return null;let E=fm(P(w.layout)),g=typeof E?.props?.id=="string"?E.props.id:null;return!E||!g||!E.type?null:(b(w.id,w.layout,w.layout_updated_at,w.title),d.set(g,{section:w.id,refId:y()}),m.set(w.id,w.used_on),E)},usedOn:w=>m.get(w)??null,learn:w=>{for(let E of w){m.set(E.id,E.used_on);let g=i.get(E.id);g&&(g.title=E.title);let v=f.get(E.id);v&&f.set(E.id,{...v,title:E.title})}S({})}},D=async(w,E)=>{for(let[g,v]of w){let O=i.get(g),k=JSON.stringify(v);if(!(!O||k===O.savedJson||f.get(g)?.problem==="lock"))try{let A=await e.save(g,{layout:v},{version:O.version,clientId:E??""});im(g,A.live),O.layout=v,O.version=A.version,O.savedJson=k,T(g,null)}catch(A){Es(A,"changed-elsewhere")?T(g,"conflict"):Es(A,"lock-taken")?T(g,"lock",A.holder??void 0):T(g,"save")}}w.size&&ca(),S({})};return{resolve:async w=>{if(jx(w===_r?null:F),Lx(w===_r?null:_),i=new Map,d=new Map,f=new Map,m=new Map,w===_r)return t.resolve(w);let E=!1,[g,v]=await Promise.all([t.resolve(w),e.load({slug:_r,...o}).catch(()=>(E=!0,null))]);if(v&&!bT(g?.layout)){lm(v.id,v.live);let $=P(v.layout);n={id:v.id,layout:$,version:v.version,savedJson:""}}else n=null;if(l=!1,!g)return S({conflict:null,saveFailed:!1,loadFailed:E}),g;let O=P(g.layout),k=U2(O),A=await Promise.all(k.map($=>e.load({id:$.section,...o}).catch(()=>null)));k.forEach(($,de)=>{let le=A[de];le?(lm(le.id,le.live),b($.section,le.layout,le.version,"")):(i.delete($.section),f.set($.section,{section:$.section,title:"",problem:"load"}))});let M=j2(O,C());if(d=M.held,!n)return d.size&&s.add(g.id),S({conflict:null,saveFailed:!1,loadFailed:E}),d.size?{...g,layout:M.working}:g;let G=rT(M.working,n.layout);return n.savedJson=JSON.stringify(Rx(G,n.layout).chrome),s.add(g.id),S({conflict:null,saveFailed:!1,loadFailed:!1}),{...g,layout:G}},saveLayout:async(w,E,g,v)=>{if(!L(w))return t.saveLayout(w,E,g,v);let O=n,k=O?Rx(E,O.layout):{page:E,chrome:null},A=G2(k.page,d,C()),M=await t.saveLayout(w,A.page,g,v);if(await D(A.docs,v),!O)return M;let G=JSON.stringify(k.chrome);if(!k.chrome||G===O.savedJson||u.lockHolder)return M;try{let $=await e.save(O.id,{layout:k.chrome},{version:O.version,clientId:v??""});im(O.id,$.live),ca(),O.layout=k.chrome,O.version=$.version,O.savedJson=G,l=!0,S({conflict:null,saveFailed:!1})}catch($){Es($,"changed-elsewhere")?S({conflict:$.conflict??{savedBy:"",savedByYou:!1,secondsAgo:0}}):Es($,"lock-taken")?S({lockHolder:$.holder??{name:"",secondsSinceSeen:0,secondsSinceHeld:0}}):S({saveFailed:!0})}return M},publish:t.publish?async(w,E)=>{let g=await t.publish(w,E),v=n;if(v&&L(w)&&!a&&e.publish&&I()&&!u.lockHolder){let O=await e.publish(v.id,v.version?{version:v.version}:void 0);dm(v.id,O.live),O.version!==null&&(v.version=O.version),l=!1,S({})}if(L(w)&&!a&&e.publish)for(let[O,k]of i){if(f.get(O)?.problem==="lock")continue;let A=await e.publish(O,k.version?{version:k.version}:void 0);dm(O,A.live),A.version!==null&&(k.version=A.version)}return g}:void 0,lock:r?{claim:async(w,E,g)=>{let v=await r.claim(w,E,g);if(!L(w))return v;let O=n;if(O)try{await r.claim(O.id,E,!1),u.lockHolder&&S({lockHolder:null})}catch(k){Es(k,"lock-taken")&&S({lockHolder:k.holder??{name:"",secondsSinceSeen:0,secondsSinceHeld:0}})}for(let k of i.keys())try{await r.claim(k,E,!1),f.get(k)?.problem==="lock"&&T(k,null)}catch(A){Es(A,"lock-taken")&&T(k,"lock",A.holder??void 0)}return i.size&&S({}),v},release:async(w,E)=>{if(await r.release(w,E),!L(w))return;let g=n;g&&!u.lockHolder&&await r.release(g.id,E).catch(()=>{});for(let v of i.keys())f.get(v)?.problem!=="lock"&&await r.release(v,E).catch(()=>{})}}:void 0,pinnedChrome:F}}function cm(e){let o=(t,r,a)=>e.save(t,r.layout?{...r,layout:c0(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 u5e(e,o,t){return e.update(o,p0(t))}function m5e(e,o=Ao(),t=Rg(),r={}){let a=K2(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=cm(o.pages),u=bS(m,e,f),h=d?Hte(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,...q2(u.resolve),lock:o.lock,...h,site:s?()=>o.site.get(n):void 0,siteLiveState:f?()=>f.liveState(n):void 0,siteVersions:Nte(f,n),updateSite:s&&l?I=>l(I,n):void 0,previewHref:o.preview?I=>o.preview.href(I):void 0}}function x5e(e,o=Ao(),t=Rg()){let r=K2(o),a=o.templates,n=a?cm(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),...q2(bS(n,void 0).resolve),publish:void 0,templateName:a?()=>a.get(e).then(s=>s.name):void 0}}function q2(e){return{resolve:o=>(jx(null),Lx(null),e(o))}}var SS="This editor's backend has no website templates.";function Zte(e,o,t){let r=Xte(e,void 0,o);return t?.(r)??r}function V2({node:e,currentSlug:o,siteId:t,tokenRef:r,runAuthed:a,onNotify:n}){let[s,l]=qi(!1),[i,d]=qi(null),f=Yte(),m=jte(_=>_.config.components),[u,h]=qi(!1),[I,S]=qi(null),T=zte(null),[P,L]=qi(null),C=$te(async()=>{if(f.usesBridgedToken&&!r.current){h(!0);return}try{d(await Ao(f).pages.list(t?{siteId:t}:void 0))}catch{h(!0)}},[r,t,f]),y=()=>{if(s){l(!1);return}let _=T.current?.getBoundingClientRect();_&&L({top:_.bottom+6,right:Math.max(8,window.innerWidth-_.right)}),d(null),h(!1),C(),l(!0)},b=(i??[]).filter(_=>_.slug!==o),F=async _=>{if(I)return;S(_.slug);let D=Zte(e,m,f.documentHooks?.storedNode),w=await a(()=>Qte(Ao(f).pages,_,D));S(null),l(!1),n?.(w?c("Duplicated to \u201C{name}\u201D",{name:_.label}):c("Couldn\u2019t duplicate the section \u2014 please retry"),w?"success":"error")};return CS(Wte,{children:[Bt("span",{"data-menu-toggle":!0,style:{display:"contents"},children:Bt(Ute,{buttonRef:T,label:c("Duplicate to another page"),hasPopup:"menu",expanded:s,onClick:y,children:Bt(Vte,{size:15})})}),s&&P&&Bt(Kte,{portal:!0,style:{top:P.top,right:P.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(Gte,{label:c("Loading\u2026")}):b.length===0?Bt(kS,{children:c("No other pages")}):b.map(_=>CS(qte,{role:"menuitem",disabled:I!==null,onClick:()=>{F(_)},children:[Bt("span",{className:"min-w-0 flex-1 truncate",children:_.label}),I===_.slug?Bt("span",{className:"shrink-0 text-xs",children:c("Copying\u2026")}):_.draft&&Bt("span",{className:"shrink-0 text-xs",children:c("draft")})]},_.id))]})})]})}async function Qte(e,o,t){let r=cm(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===Jte);s.splice(l===-1?s.length:l,0,QP(t)),await r.save(o.id,{layout:{root:{},zones:{},...n,content:s}},{version:a.version,clientId:""})}import{useScreenDocument as Tre}from"efficient-easel/screen/components/ScreenDocumentContext";import{useSectionOps as Ore}from"efficient-easel/screen/lib/document/use-section-ops";import{SELECTION_MODE as z4e,isSelectionMode as ES}from"efficient-easel/screen/lib/screen-parts";import{usePreviewParts as Ere}from"efficient-easel/draw/client";import{jsx as Vi,jsxs as ere}from"react/jsx-runtime";import{SettingsDrill as ore}from"efficient-easel/panel";import{UiIcon as tre}from"efficient-easel/draw/client";var rre="Not shown on the page";function are({part:e,onOpen:o}){return Vi(ore,{name:c(e.label),preview:e.offPage?c(rre):e.preview||c("Empty"),offPage:e.offPage,status:e.hidden?Vi("span",{className:"sf-entry-eye",role:"img","aria-label":c("Hidden on the page"),children:Vi(tre,{name:"eye-off",size:14})}):void 0,onOpen:()=>o(e.key)})}function vS(e){return e.filter(o=>!o.identifier)}function Y2({parts:e,onOpen:o,heading:t=!0}){let r=vS(e);return r.length?ere("div",{className:"sf-entries",children:[t?Vi("h3",{className:"sf-entries-head",children:c("Text")}):null,r.map(a=>Vi(are,{part:a,onOpen:o},a.key))]}):null}import{HEADER_TYPE as _re,ROOT_ZONE as i5}from"efficient-easel/draw";import{newId as nre}from"efficient-easel/data";import{HEADER_TYPE as Vo,FOOTER_TYPE as Re,newNodeId as sre}from"efficient-easel/draw";function pm(){return{type:Vo,props:{id:sre(Vo)}}}var X2=[{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"}],lre=X2.filter(e=>e.type!=="FooterLogo"&&e.type!=="FooterGroup"),ire="FooterGroup",J2="blocks";function Z2(e){return e===Re?X2:e===ire?lre:null}function um(){let e=(o,t)=>({type:o,props:{id:nre(o),...t}});return[e("FooterLogo",{widthPct:100,align:"left",tagline:""}),e("FooterEmailSignup",{...oP}),e("FooterPayment",{...yf})]}function PS(e){switch(e?.type){case Wo:case ao:return c("On every page");case Vo:case Re:return c("On every page \xB7 old style");default:return null}}var Q2=()=>null,e5=()=>c("Changed on every page");function mm(e,o){let t=GC(e,o);if(t)return t;let r=uP(e,o);if(!r)return null;let a=r.group===Wo;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 xm,Fragment as fre,jsxs as cre}from"react/jsx-runtime";import{useState as pre}from"react";import{createNode as ure,newId as mre}from"efficient-easel/data";import{useEasel as xre}from"efficient-easel/easel";import{Banner as hre,Button as TS}from"efficient-shell/ui";import{useScreenDocument as Ire}from"efficient-easel/screen/components/ScreenDocumentContext";var dre=["FooterPayment"];function o5(e,o){let{id:t,...r}=e.props;for(let a of Nt(e))r[a]=r[a].map(n=>o5(n,o));return o(e.type,r)}var Yi=(e,o)=>{if(!dre.includes(e.type))return null;tu();let t=Dr(e.type);return t?Ea({type:e.type,props:{...e.props}},t).nodes.map(r=>o5(r,o)):null};function t5(){let{appState:e,dispatch:o,config:t}=xre(f=>f),{readOnly:r}=Ire(),[a,n]=pre(!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)=>ure(t,f,m),d=()=>{let f=xi(l,i,mre(ao),Yi);o({type:"setData",data:m=>({...m,content:[...bf(m.content,f)]}),recordHistory:!0}),n(!1)};return xm(hre,{tone:"info",title:c("This footer uses the old layout"),action:a?cre(fre,{children:[xm(TS,{variant:"primary",size:"sm",onClick:d,children:c("Switch now")}),xm(TS,{variant:"secondary",size:"sm",onClick:()=>n(!1),children:c("Cancel")})]}):xm(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 gre}from"react/jsx-runtime";import{InspectorUpLevel as r5}from"efficient-easel/chrome";function a5({nodeId:e,part:o,sectionName:t,onUpToSection:r}){let{select:a}=Yu(),n=Ps(e,o,"picture");return gre("div",{children:[o!=="media"?OS(r5,{inline:!0,name:c(ur.media),onSelect:()=>a(va(e,"media"))}):OS(r5,{inline:!0,name:c(t),onSelect:r}),OS(Ft,{part:o,motion:n,itemWord:c(ur[o])})]})}import{HintsToggle as Are,SettingsSwitch as Fre,hintsFoldClass as Bre}from"efficient-easel/panel";import{useHints as Rre}from"efficient-easel/screen/lib/hints";var f5={kind:"header"},AS={kind:"website"},c5={kind:"website",tab:$f,revealPageGroup:!0},p5={kind:"chat"},u5={kind:"social"},Xi="Part";function Lre(e){return c("Part of {name}",{name:c(e)})}function Dre(e,o,t){let r=e.describeNode(o);return{name:t,kindLabel:r?Lre(r.label):c(Xi)}}function Nre(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 m5({what:e}){let o=Nre(e);return Vr("div",{className:"sf-note",children:[we("p",{children:we("strong",{children:o.title})}),Vr("p",{children:[c("A template is a blueprint \u2014 it has no website of its own, so there is nothing here to change.")," ",o.own]})]})}function _S(e){let o=Jl[e];return{name:ur[e],kindLabel:Xi,icon:o,head:(t,r)=>{if(t.kind!==o)return null;let a=r.describeNode(t.nodeId);if(!a)return null;let n=d5({name:c(Qc(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(a5,{nodeId:t.nodeId,part:e,sectionName:r.describeNode(t.nodeId)?.label??"Hero",onUpToSection:()=>r.onSelectNode(t.nodeId)}):null}}var Mre={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(zf,{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(JH,{})},social:{name:"Social links",kindLabel:"Site settings",icon:"social",render:()=>we(r2,{unavailable:we(m5,{what:"Social link"})})},ticker:{name:Ma,kindLabel:Xi,icon:"ticker",head:(e,o)=>e.kind==="ticker"?Dre(o,e.heroId,c(Ma)):null,render:e=>we(u2,{heroId:e.kind==="ticker"?e.heroId:""})},heroMedia:_S("media"),heroImage:_S("image"),heroImage2:_S("image2"),part:{name:Xi,kindLabel:Xi,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?Hn(t.fields[r],a):t.fields[r],s=ms(t.type),l=s?qs(s,e.propKey):null,i=s&&l?s[l].label:zO[e.propKey],d=i?c(i):fv(c(gf(Iv(n??{},r))),a),f=d5({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(D2,{nodeId:e.nodeId,propKey:e.propKey,onBack:()=>o.onSelectNode(e.nodeId),onEditStyle:o.onOpenSiteStyles}):null}},Hre=new Set(["header","website","chat"]);function Wre(e,o){if(e==="selection")return null;let t=Mre[e];return Hre.has(e)&&!o.hasSiteSettings?{...t,kindLabel:"Not part of a template",render:()=>we(m5,{what:t.name})}:t}function x5({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}=Tre(),{rows:S}=bl(),T=S?.find(ie=>ie.slug===f)??null,P=Sre(),L=Object.keys(P.fields).some(ie=>!ie.startsWith("_")&&!Kx.includes(ie)),{websiteName:C}=vo(),y=Ore({readOnly:h}),{select:b}=Ere(),{selectedItem:F,getItemById:_,getSelectorForId:D,config:w,appState:E}=yre(ie=>ie),g=vre(w,F?{type:F.type,props:F.props}:null),v=F?Sv(g??w.components[F.type]?.fields,F.props):[],O=ie=>w.components[ie]?.label??ie,k=F?D(F.props.id):void 0,A=Wre(e.kind,l),M=Pre(),G={capabilities:l,tokenRef:i,hostPanels:M.chrome?.panels,describeNode:ie=>{let he=_(ie);if(!he)return null;let Ve=w.components[he.type];return{type:he.type,label:Ve?.label??he.type,fields:Ve?.fields??{},props:he.props??{}}},siteId:m,websiteName:C??null,notifyParent:d,onNotify:n,onOpenWebsiteSettings:o,onOpenSiteStyles:t,onSelectNode:r},$=A?.head?.(e,G)??null,de=GH({kind:T?.kind,pageName:T?.label}),le=$?.name??(A?c(A.name):F?c(O(F.type)):de.name),ee=$?.kindLabel??(A?c(A.kindLabel):F?k&&k.zone!==i5?c("Block"):c("Section"):de.kindLabel),Ie=A?A.icon:F?F.type:"page",ae=ES(e)&&F?zi(F.type):null,xe=!!F&&!!k&&k.zone===i5&&F.type!==Re&&F.type!==_re,ge=mm(E?.data,F),Je=()=>{ge||k&&y.duplicateComponent(k.zone,k.index)},Ze=()=>{k&&(y.removeComponent(k.zone,k.index),y.select(null))},mo=F?w.components[F.type]?.defaultProps?.previewHover:void 0,qe=ES(e)&&!!F&&!!k&&mo!==void 0,to=qe&&F.props.previewHover===!0,Eo=()=>{!F||!k||y.replaceComponent(k.zone,k.index,{...F,props:{...F.props,previewHover:!to}})},{shown:_o,setShown:xo}=Rre(),W=!!(A||F||L);return Vr("div",{className:`es-sidepanel es-sidepanel--right sf-panel sf-panel--right ${Bre(_o)}`.trim(),children:[we(wre,{icon:we(Ga,{type:Ie,size:15}),name:le,kind:ee,actions:!a&&ES(e)&&F&&F.type!==Re?Vr(n5,{children:[we(s5,{label:c("Duplicate section"),title:ge??void 0,disabled:ge!==null,onClick:Je,children:we(Cre,{size:15})}),xe&&l.hasSiteSettings&&we(V2,{node:F,currentSlug:f,siteId:m??void 0,tokenRef:i,runAuthed:u,onNotify:n}),we(s5,{label:c("Remove section"),danger:!0,onClick:Ze,children:we(kre,{size:15})}),s?we(l5,{side:"right",onHide:s,divider:!0}):null]}):s?we(l5,{side:"right",onHide:s}):void 0}),qe&&Vr("div",{className:"sf-preview-pin",children:[Vr("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(Fre,{checked:to,onChange:Eo,ariaLabel:c("Preview hover state")})]}),Vr("div",{className:"sf-insp-body es-insp-body sf-scroll",children:[A?A.render(e,G):F?Vr(n5,{children:[F.type===Re&&l.hasSiteSettings&&we(t5,{}),we(uT,{children:we(Ft,{entries:we(Y2,{parts:v,heading:!1,onOpen:ie=>b(jt(F.props.id,ie))}),entryCount:vS(v).length,itemWord:le})}),ae&&we(nm,{source:ae,slug:Os(F?.props),menuId:om(F?.props)})]}):L?we(Ft,{omit:Kx}):we(bre,{variant:"none",icon:!1,message:c("Select a section or block to edit it.")}),W&&we(Are,{shown:_o,onChange:xo,label:c("Show hints")})]})]})}import{jsx as p,jsxs as B,Fragment as S5}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 $re={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)"},_e=(e,o,t=160)=>({background:`linear-gradient(${t}deg,${e},${o})`});function hr({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 B("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 Im({children:e}){return p("span",{style:{fontSize:"4.64cqw",fontWeight:700,letterSpacing:"0.06em",textTransform:"uppercase",color:x.muted},children:e})}function h5({over:e,overTone:o,head:t,headSize:r=11.5,cta:a,ctaBg:n,ctaFg:s,tone:l}){return B(S5,{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 B("div",{style:{display:"flex",flexDirection:"column",gap:2,minWidth:0},children:[p("div",{style:{flex:1,minHeight:0,borderRadius:3,position:"relative",overflow:"hidden",..._e(x.paper,x.paper2,150)},children:p(hr,{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 xr({k:e,v:o,ok:t}){return B("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}),B("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 B("div",{style:{...V,background:x.card,padding:"9px 10px",display:"flex",flexDirection:"column",gap:6},children:[p(Im,{children:e}),o]})}function I5({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 RS({filled:e=5,size:o=6}){return B("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 Ji({n:e,label:o,tone:t=x.text}){return B("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 oo({children:e,w:o}){return p("span",{style:{fontSize:"3.98cqw",lineHeight:1.45,color:x.muted,width:o,display:"block"},children:e})}function hm({label:e,w:o="100%",filled:t}){return B("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 g5({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 zre={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])=>B("div",{style:{display:"flex",alignItems:"center",gap:6},children:[p("span",{style:{width:20,height:15,borderRadius:3,flex:"none",position:"relative",overflow:"hidden",..._e(x.paper,x.paper2,150)},children:p(hr,{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:B("div",{style:{...V,background:x.card,display:"flex",flexDirection:"column",justifyContent:"center",gap:7,padding:"0 11px"},children:[B("div",{style:{display:"flex",gap:4,alignItems:"center"},children:[["20 inch","6\xD7139.7","Black"].map(e=>B("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"})]}),B("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:B("div",{style:{...V,padding:"10px 12px",display:"flex",flexDirection:"column",gap:6,justifyContent:"center",..._e(x.ink,x.inkSoft)},children:[p("span",{style:{fontSize:"5.31cqw",fontWeight:700,color:x.onInk},children:"Will it fit your rig?"}),B("div",{style:{display:"flex",gap:4},children:[["2021","Toyota","Hilux"].map(e=>B("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])=>B("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:B(ke,{title:"Will it fit your car?",children:[p("div",{style:{display:"flex",gap:3},children:["Make","Model","Year","Trim"].map(e=>B("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])=>B("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:B("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)=>B("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))}),B("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:B("div",{style:{...V,background:x.paper,padding:"9px 11px",display:"flex",flexDirection:"column",gap:5,justifyContent:"center"},children:[p(Im,{children:"Buy it with"}),B("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(hr,{size:17,style:{left:"50%",top:"50%",transform:"translate(-50%,-50%)"}})},e)),p("span",{style:{fontSize:"5.69cqw",fontWeight:700,color:x.muted},children:"+"}),B("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:B("div",{style:{...V,display:"flex",alignItems:"center",justifyContent:"space-between",padding:"0 13px",gap:8,..._e(x.ink,x.ink2)},children:[B("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])=>B("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])=>B("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:B("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=>B("div",{style:{position:"relative",minHeight:0},children:[p(j,{r:3,style:{...V,background:`linear-gradient(transparent 45%,${x.scrim} 45%),${_e(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])=>B("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}),B("div",{style:{flex:1,minHeight:0,position:"relative"},children:[p(j,{r:3,style:{...V,..._e(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:B("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[B("div",{style:{display:"flex",gap:5},children:[p(hm,{label:"Name"}),p(hm,{label:"Email"})]}),p(hm,{label:"Message",filled:!0}),p(g5,{children:"SEND"})]})}),appointmentbooking:p(ke,{title:"Book a fitting",children:B("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:B("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:5,justifyContent:"center"},children:[p(RS,{filled:4,size:14}),p(hm,{label:"Your review",filled:!0}),p(g5,{children:"POST"})]})}),submitbuild:p(ke,{title:"Show us your build",children:B("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:B("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"}),B("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:B("div",{style:{...V,overflow:"hidden",..._e(x.ink,x.inkSoft2)},children:[p(hr,{size:92,style:{right:-18,top:-14}}),p("div",{style:{position:"absolute",inset:0,background:`linear-gradient(0deg,${x.scrim},transparent 62%)`}}),B("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:B("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(oo,{children:"Every failure starts in the same place:"}),p(oo,{w:"80%",children:"the bolt nobody re-torqued."})]}),articlebody:B("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(oo,{w:"100%",children:"A wider wheel adds grip only if the offset still"}),p(oo,{w:"88%",children:"clears the arch, so the offset is chosen first."}),p(oo,{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])=>B("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])=>B("div",{style:{display:"flex",gap:6,alignItems:"center"},children:[p("span",{style:{width:24,height:18,borderRadius:3,flex:"none",..._e(e,o,150)}}),B("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:B("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])=>B("div",{style:{display:"flex",gap:5},children:[p("b",{style:{fontSize:"3.98cqw",color:x.rust,flex:"none"},children:e}),p(oo,{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])=>B("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:B("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}}),B("div",{style:{paddingTop:6,display:"flex",flexDirection:"column",gap:2},children:[p(oo,{children:"Unfitted wheels come back within 30 days, no questions."}),p(oo,{w:"58%",children:"Freight on a change of mind is yours."})]})]}),paragraphs:B("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."}),B("div",{style:{flex:1,display:"flex",flexDirection:"column"},children:[p(oo,{children:"Forged, correctly offset, rated for what you actually"}),p(oo,{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=>B("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:B("div",{style:{...V,background:x.paper,padding:"10px 12px",display:"flex",gap:10,alignItems:"center"},children:[B("div",{style:{flex:"none",display:"flex",flexDirection:"column",gap:5},children:[p(Ji,{n:"27k",label:"Rigs"}),p(Ji,{n:"4.9",label:"Rating"})]}),B("div",{style:{flex:1,display:"flex",flexDirection:"column"},children:[p(oo,{children:"Twelve years of fitting the same three questions, and the"}),p(oo,{children:"answer has not moved: load rating, offset, then looks."})]})]}),chart:B(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",..._e(x.inkSoft,x.ink)},children:B("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))}),B("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,..._e(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",..._e(x.ink,x.ink2)},children:B("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)=>B("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}}),B("div",{style:{display:"flex",flexDirection:"column",gap:0,minWidth:0},children:[p("b",{style:{fontSize:"4.64cqw",color:x.text},children:e}),p(oo,{children:o})]})]},e))})}),timelinetrack:B("div",{style:{...V,padding:"0 12px",display:"flex",flexDirection:"column",gap:10,justifyContent:"center",..._e(x.ink,x.inkSoft)},children:[p("span",{style:{fontSize:"3.98cqw",fontWeight:700,letterSpacing:"0.14em",textTransform:"uppercase",color:x.warm},children:"Milestones"}),B("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)=>B("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:B("div",{style:{...V,overflow:"hidden",..._e(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:B("div",{style:{...V,display:"flex",alignItems:"center",justifyContent:"space-between",padding:"0 13px",gap:8,background:x.rust},children:[B("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:B("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?"}),B("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:B("div",{style:{...V,padding:"10px 12px",display:"flex",flexDirection:"column",alignItems:"center",gap:6,justifyContent:"center",..._e(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)=>B("div",{style:{display:"flex",alignItems:"flex-start",gap:5},children:[t>0&&p("b",{style:{fontSize:"9.5cqw",lineHeight:1,color:x.warm},children:":"}),B("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:B("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:B("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:B("div",{style:{...V,overflow:"hidden",background:x.card},children:[p("div",{style:{position:"absolute",inset:0,..._e(x.ink,x.inkSoft2)}}),p(hr,{size:64,style:{right:8,top:6}}),B("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(oo,{children:"One shed, one lathe, one idea."}),p(oo,{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,..._e(e,o,140+t*22)}},t))})}),gallery:B(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,..._e(e,o,150+t*20)}},t))})]}),ordersummary:B(ke,{title:"Order summary",children:[B("div",{style:{display:"flex",gap:6,alignItems:"center",paddingBottom:4},children:[p("span",{style:{width:26,height:26,borderRadius:4,position:"relative",overflow:"hidden",flex:"none",..._e(x.paper,x.paper2,150)},children:p(hr,{size:18,style:{left:"50%",top:"50%",transform:"translate(-50%,-50%)"}})}),B("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"})]})]}),B("div",{style:{flex:1,minHeight:0,display:"flex",flexDirection:"column",justifyContent:"center"},children:[p(xr,{k:"Subtotal",v:"$1,956"}),p(xr,{k:"Fitting",v:"Free"}),B("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])=>B("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:B("div",{style:{...V,background:x.paper,display:"flex",flexDirection:"column",gap:8,justifyContent:"center",padding:"0 12px"},children:[p(Im,{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:B("div",{style:{...V,padding:"10px 12px",display:"flex",flexDirection:"column",gap:9,justifyContent:"center",..._e(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"}),B("div",{style:{display:"flex",gap:8},children:[p(Ji,{n:"27k",label:"Rigs fitted",tone:x.onInk}),p(Ji,{n:"12",label:"Years",tone:x.onInk}),p(Ji,{n:"4.9",label:"Avg rating",tone:x.warm})]})]}),testimonials:B("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(RS,{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"}),B("div",{style:{display:"flex",alignItems:"center",gap:5},children:[p(I5,{}),p("span",{style:{fontSize:"3.98cqw",color:x.muted},children:"Dave M. \xB7 Hilux N80"})]})]}),reviews:B(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,..._e(e,o,140+t*15)}},t))}),p("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:5,justifyContent:"center"},children:[["Dave M.",5,"Not one chip after the Simpson."],["Sara K.",4,"Fitted in an hour, no fuss."]].map(([e,o,t])=>B("div",{style:{display:"flex",gap:5,alignItems:"flex-start"},children:[p(I5,{size:12}),B("div",{style:{display:"flex",flexDirection:"column",gap:1,minWidth:0},children:[B("div",{style:{display:"flex",gap:4,alignItems:"center"},children:[p("b",{style:{fontSize:"3.98cqw",color:x.text},children:e}),p(RS,{filled:o})]}),p(oo,{children:t})]})]},e))})]}),logos:B("div",{style:{...V,display:"flex",flexDirection:"column",gap:9,justifyContent:"center",padding:"0 12px",..._e(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:B("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"}),B("div",{style:{display:"flex",gap:6},children:[p("span",{style:{fontSize:"15.3cqw",lineHeight:.78,fontWeight:800,color:x.rust,marginTop:1},children:"T"}),B("div",{style:{display:"flex",flexDirection:"column"},children:[p(oo,{children:"he number on the back of your wheel decides whether the"}),p(oo,{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])=>B("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(oo,{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])=>B("div",{style:{borderBottom:`1px solid ${x.rule}`,padding:"4px 2px"},children:[B("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(oo,{w:"90%",children:"Use the fitment finder \u2014 it reads your build, not just the model."})]},e))})}),hero:B("div",{style:{...V,overflow:"hidden",..._e(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(h5,{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(hr,{size:104,style:{right:-24,bottom:-30}})]}),herosingle:B("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(h5,{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",..._e(x.inkSoft,x.inkSoft2)},children:p(hr,{size:74,style:{right:-14,top:16}})})]}),productgrid:p(ke,{title:"Best sellers",children:B("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,..._e(o,t)},children:p("span",{style:{fontSize:"3.98cqw",fontWeight:700,letterSpacing:"0.04em"},children:e})},e))})}),producthero:B("div",{style:{...V,display:"flex",background:x.card,overflow:"hidden"},children:[p("div",{style:{flex:1.1,position:"relative",..._e(x.paper,x.paper2,150)},children:p(hr,{size:78,style:{left:"50%",top:"50%",transform:"translate(-50%,-50%)"}})}),B("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:B("div",{style:{flex:1,display:"flex",flexDirection:"column",justifyContent:"center"},children:[p(xr,{k:"Diameter",v:'20"'}),p(xr,{k:"Width",v:"9.0J"}),p(xr,{k:"Offset",v:"+12"}),p(xr,{k:"Load",v:"1250 kg"})]})}),fitmenttable:p(ke,{title:"Will it fit?",children:B("div",{style:{flex:1,display:"flex",flexDirection:"column",justifyContent:"center"},children:[p(xr,{k:"Hilux N80",v:"20\xD79 +12",ok:!0}),p(xr,{k:"Ranger PX3",v:"20\xD79 +12",ok:!0}),p(xr,{k:"LC79",v:"17\xD78 \u221210",ok:!0})]})}),processsteps:B("div",{style:{...V,background:x.paper,padding:10,display:"flex",flexDirection:"column",gap:7,justifyContent:"center"},children:[p(Im,{children:"How it works"}),p("div",{style:{display:"flex",gap:6},children:["Pick your rig","Match the fit","We fit it"].map((e,o)=>B("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,..._e(t?x.rust:x.inkSoft,t?x.warm:x.inkSoft2)}},"art"),a=B("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])=>B("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))})},y5={subscribe:B("div",{style:{...V,padding:13,display:"flex",flexDirection:"column"},children:[B("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:8},children:[B("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}}),B("div",{style:{flex:1,display:"flex",gap:10,border:`1px solid ${so.line}`,borderRadius:7,padding:10},children:[B("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}}),B("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"})]})]}),B("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)=>B("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:B("div",{style:{...V,display:"flex"},children:[p("div",{style:{width:"44%",background:FS}}),B("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:B(S5,{children:[p(j,{w:"18%",h:6,r:3,tone:"accent",style:{position:"absolute",top:15,right:16}}),B("div",{style:{...V,padding:16,display:"flex",flexDirection:"column",justifyContent:"center",gap:10},children:[B("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:B("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[p(j,{w:"22%",h:12,r:4,tone:"dark"}),B("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:B("div",{style:{...V,padding:15,display:"flex",flexDirection:"column",justifyContent:"center",gap:12},children:[B("div",{style:{display:"flex",gap:14},children:[B("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=>B("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}}),B("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:B("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:B("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:B("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:B("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:B("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:B("div",{style:{...V,padding:16,display:"flex",flexDirection:"column",justifyContent:"center",gap:9},children:[p(j,{w:"56%",h:8,r:3,tone:"dark"}),B("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:B("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:B("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:B("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:B("div",{style:{...V,padding:14,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:5},children:[B("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"})]}),B("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:B("div",{style:{...V,padding:16,display:"flex",flexDirection:"column",justifyContent:"center",gap:9},children:[p("div",{style:{height:1,background:so.line}}),B("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[p(j,{w:"38%",h:5,r:2,tone:"soft"}),B("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 b5({type:e}){let o=$re[e]??"",t=zre[o]??y5[o]??y5.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 vm}from"efficient-easel/screen/components/ScreenDocumentContext";import{jsx as _s,jsxs as w5}from"react/jsx-runtime";import Ure from"efficient-easel/screen/components/SidePanelHead";import{StylesIcon as jre}from"efficient-easel/rail";import{Tooltip as Gre}from"efficient-shell/ui";import{HintsToggle as Kre,hintsFoldClass as qre}from"efficient-easel/panel";import{useHints as Vre}from"efficient-easel/screen/lib/hints";function C5({tokenRef:e,siteId:o,onClose:t,onNotify:r,tab:a,onTabChange:n,revealPageGroup:s,onPageGroupRevealed:l}){let i=Nn(),{shown:d,setShown:f}=Vre();return w5("div",{className:`sf-styles ${qre(d)}`.trim(),children:[_s(Ure,{icon:_s(jre,{}),title:c("Styles"),context:_s(Gre,{content:c("{name} \u2014 renamed in the Console: {place}.",{name:i,place:c("Storefront \u25B8 Sites \u25B8 Settings")}),className:"sf-name-tip",children:_s("span",{className:"sf-name-text",children:i})})}),w5("div",{className:"sf-insp-body es-insp-body sf-scroll",children:[_s(zf,{tokenRef:e,siteId:o,onNotify:r,tab:a,onTabChange:n,revealPageGroup:s,onPageGroupRevealed:l}),_s(Kre,{shown:d,onChange:f,label:c("Show hints")})]})]})}import{jsx as po,jsxs as Ja,Fragment as Qre}from"react/jsx-runtime";import{Fragment as R5,useEffect as L5,useRef as WS}from"react";import{useTreeDrag as D5}from"efficient-easel/drag";import{GlobeIcon as eae,ImageIcon as oae,LocationIcon as tae,MapIcon as rae,TextLinesIcon as aae,TrashIcon as N5}from"efficient-easel/icons";import{Subtree as M5,TreeRow as Qi,TreeRowAction as H5,TreeSeam as W5}from"efficient-easel/tree";import{useEaselStrings as nae}from"efficient-easel/strings";import{isSelectionMode as sae}from"efficient-easel/screen/lib/screen-parts";import{useSyncExternalStore as Yre}from"react";var Xre={level:"groups"},v5=Xre,LS=new Set;function Rt(e){v5=e;for(let o of LS)o()}function Jre(e){return LS.add(e),()=>{LS.delete(e)}}var k5=()=>v5;function P5(){return Yre(Jre,k5,k5)}var Zi=e=>String(e?.group??""),DS=new WeakMap,Zre=0;function gm(e){let o=DS.get(e);return o||(o=`loc${++Zre}`,DS.set(e,o)),o}var T5=(e,o)=>o||e||"Ungrouped",O5={photo:"",group:"",groupName:"",name:"City name",state:"State",country:"Country",timezone:"GMT \xB7 UTC +0",address:`Address line one
|
|
337
|
+
Address line two`,phone:"+00 000 0000",hours:"Mon\u2013Fri 9:00\u201318:00",lat:0,lng:0,mapsUrl:""};function Xa(e){return Pd(e,Zi,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),E5=(e,o,t)=>Math.min(Math.max(e,o),t);function ym(e,o,t){let r=0;for(let a=0;a<e.length;a++)if(Zi(e[a])===o){if(r===t)return a;r++}return-1}function MS(e,o,t){let r=Xa(e);if(o<0||o>=r.length)return e;let[a]=r.splice(o,1),n=E5(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=Xa(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,gm(i));let f=E5(s===l&&t<a?a-1:a,0,l.cards.length);return l.cards.splice(f,0,d),NS(n)}function _5(e,o){let t=Xa(e),r=t.find(n=>n.key===o),a={...O5,group:o,groupName:r?.name??""};return r?(r.cards.push(a),NS(t)):[...e,a]}function A5(e){let o=new Set(Xa(e).map(a=>a.key)),t=o.size+1,r=`Group ${t}`;for(;o.has(r);)r=`Group ${++t}`;return{cards:[...e,{...O5,group:r,groupName:""}],key:r}}function F5(e,o){return e.filter(t=>Zi(t)!==o)}function B5(e,o,t){let r=ym(e,o,t);return r<0?e:e.filter((a,n)=>n!==r)}function S6e(e,o,t){let r=e.flatMap((s,l)=>Zi(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 b6e(e,o,t){return o.flatMap(r=>{let a=e.filter(n=>Zi(n)===r);return a.length?a:t(r)})}var bm="ContactLocations",Sm=e=>({parentId:`locations-${e}`,slot:"groups"}),$S=(e,o)=>({parentId:`locations-${e}`,slot:`cities:${o}`});function $5(e,o){let{readOnly:t,selected:r}=o,a=nae().tree,n=o.data?.content??[],s=sae(e),l=WS(null);L5(()=>{let C=r?.type===bm?String(r.props.id):null;C&&C!==l.current&&Rt({level:"groups"}),l.current=C},[r?.props.id]);let{selectedLocationPartId:i,setSelectedLocationPartId:d,setSelectHandler:f}=dL(),m=P5(),u=(C,y)=>{let b=n[C];b&&o.replace(C,{type:b.type,props:{...b.props,locations:y}})},h=C=>{let y=n[C]?.props?.locations;return Array.isArray(y)?y:[]},I=D5({keyOf:C=>`group:${C.si}:${C.index}`,readOnly:!!t,canDrop:(C,y)=>y.parentId===Sm(C.si).parentId&&y.slot==="groups",onDrop:(C,y)=>{u(C.si,MS(h(C.si),C.index,y.index)),m.level==="city"&&Rt({level:"groups"})},onStep:(C,y)=>{u(C.si,MS(h(C.si),C.index,y<0?C.index-1:C.index+2)),m.level==="city"&&Rt({level:"groups"})}}),S=D5({keyOf:C=>`city:${C.si}:${C.group}:${C.index}`,readOnly:!!t,canDrop:(C,y)=>y.parentId===Sm(C.si).parentId&&y.slot.startsWith("cities:"),onDrop:(C,y)=>{let b=y.slot.slice(7);u(C.si,HS(h(C.si),C.group,C.index,b,y.index)),Rt({level:"group",key:b})},onStep:(C,y)=>{u(C.si,HS(h(C.si),C.group,C.index,C.group,y<0?C.index-1:C.index+2)),m.level==="city"&&Rt({level:"group",key:C.group})}}),T=WS(n);T.current=n;let P=WS(()=>{});L5(()=>{f(C=>{let y=lu(C);if(!y)return;let b=T.current.findIndex(F=>F.props?.id===y.nodeId);b<0||P.current(b,{level:y.part,index:y.index})})},[f]);let L=(C,y)=>{l.current=n[C]?.props?.id??null,o.select(C),Rt(y),e.reveal();let b=n[C]?.props?.id;typeof b=="string"&&(y.level==="city"||y.level==="image"||y.level==="map")?d(su(b,y.index,y.level)):d(null),typeof b=="string"&&o.scrollTo(b)};return P.current=L,{renderLocationTree:(C,y,{rowClick:b,isCollapsed:F,toggleCollapse:_})=>{let D=h(y),w=Xa(D),E=String(C.props.id),g=s&&r?.props.id===E,v=k=>po(W5,{...t?{}:I.seam({place:{...Sm(y),index:k}})},`seam:${E}:groups:${k}`),O=(k,A)=>po(W5,{...t?{}:S.seam({place:{...$S(y,k),index:A}})},`seam:${E}:cities:${k}:${A}`);return Ja(Qre,{children:[po(Qi,{icon:po(aae,{size:13}),name:c("Texts"),words:a,onSelect:()=>L(y,{level:"texts"}),selected:g&&m.level==="texts",rowProps:{onClick:b(()=>L(y,{level:"texts"}))}}),w.map((k,A)=>{let M=`${E}::grp::${k.key}`,G=F(M),$=g&&m.level==="group"&&m.key===k.key,de=k.name||k.key?T5(k.key,k.name):c("Ungrouped"),le={...$S(y,k.key),index:k.cards.length},ee=S.row({item:{si:y,group:k.key,index:-1},place:le,into:le,canDrag:!1},{onClick:b(()=>L(y,{level:"group",key:k.key}))}),Ie=I.row({item:{si:y,index:A},place:{...Sm(y),index:A}},ee.rowProps);return Ja(R5,{children:[A===0&&v(0),po(Qi,{icon:po(eae,{size:13}),name:de,words:a,onSelect:()=>L(y,{level:"group",key:k.key}),selected:$,draggable:Ie.draggable,dragging:Ie.dragging,drop:Ie.drop??ee.drop,fold:{open:!G,label:c("group"),onToggle:()=>_(M)},actions:po(H5,{kind:"delete",label:$t("Delete {label} group ({n} city)","Delete {label} group ({n} cities)",k.cards.length,{label:de}),onClick:()=>{u(y,F5(D,k.key)),Rt({level:"groups"})},children:po(N5,{size:15})}),rowProps:Ie.rowProps,count:k.cards.length,countLabel:$t("{n} city","{n} cities",k.cards.length)}),!G&&Ja(M5,{children:[k.cards.map((ae,xe)=>{let ge=ym(D,k.key,xe),Je=g&&m.level==="city"&&m.index===ge,Ze=String(ae?.name??"")||c("City"),mo=`${E}::city::${gm(ae)}`,qe=F(mo),{rowProps:to,...Eo}=S.row({item:{si:y,group:k.key,index:xe},place:{...$S(y,k.key),index:xe}},{onClick:b(()=>L(y,{level:"city",index:ge}))});return Ja(R5,{children:[xe===0&&O(k.key,0),po(Qi,{icon:po(tae,{size:13}),name:Ze,words:a,onSelect:()=>L(y,{level:"city",index:ge}),selected:Je,...Eo,fold:{open:!qe,label:Ze,onToggle:()=>_(mo)},actions:po(H5,{kind:"delete",label:c("Delete {name}",{name:Ze}),onClick:()=>{u(y,B5(D,k.key,xe)),Rt({level:"group",key:k.key})},children:po(N5,{size:15})}),rowProps:to}),!qe&&Ja(M5,{children:[po(Qi,{icon:po(oae,{size:13}),name:c("Image"),words:a,onSelect:()=>L(y,{level:"image",index:ge}),selected:g&&m.level==="image"&&m.index===ge,rowProps:{onClick:b(()=>L(y,{level:"image",index:ge}))}}),po(Qi,{icon:po(rae,{size:13}),name:c("Map"),words:a,onSelect:()=>L(y,{level:"map",index:ge}),selected:g&&m.level==="map"&&m.index===ge,rowProps:{onClick:b(()=>L(y,{level:"map",index:ge}))}})]}),O(k.key,xe+1)]},gm(ae))}),Ja("button",{type:"button",className:"sf-add-card",onClick:()=>{let ae=_5(D,k.key);u(y,ae);let xe=Xa(ae).find(ge=>ge.key===k.key);Rt(xe&&xe.cards.length?{level:"city",index:ym(ae,k.key,xe.cards.length-1)}:{level:"group",key:k.key})},children:[po("span",{className:"sf-plus sf-plus--sm",children:"+"}),c("Add city")]})]}),v(A+1)]},M)}),Ja("button",{type:"button",className:"sf-add-card",onClick:()=>{let{cards:k,key:A}=A5(D);u(y,k),L(y,{level:"group",key:A})},children:[po("span",{className:"sf-plus sf-plus--sm",children:"+"}),c("Add group")]})]})},sectionPressed:C=>{C?.type===bm&&Rt({level:"groups"})}}}import{useEffect as fae,useRef as cae}from"react";import{createNode as US,newId as jS}from"efficient-easel/data";import{useEaselApi as pae}from"efficient-easel/easel";import{useScreenDocument as uae}from"efficient-easel/screen/components/ScreenDocumentContext";import{useEaselSession as mae}from"efficient-easel/screen/lib/session-context";import{useEffect as G5,useRef as lae}from"react";import{useEasel as iae}from"efficient-easel/easel";import{ROOT_ZONE as zS}from"efficient-easel/draw";var ed={};function z5(e){return ed={...e?.theme?{theme:e.theme}:{},...e?.site?{site:e.site}:{}},ed}function U5(e){ed===e&&(ed={})}function As(){return ed}function j5(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 q5(e){let o=iae(d=>d.appState.data.content),{theme:t,themeRow:r,themeFromDocument:a,siteGutter:n,siteGutterPhone:s,siteLengthUnits:l}=vo(),i=lae(new Set);G5(()=>{let d=K5({theme:t,themeRow:r,themeFromDocument:a,siteGutter:n,siteGutterPhone:s,siteLengthUnits:l});d&&dae(W1(o,void 0,d),e,i.current)},[o,e,t,r,a,n,s,l]),G5(()=>{let d=z5(K5({theme:t,themeRow:r,themeFromDocument:a,siteGutter:n,siteGutterPhone:s,siteLengthUnits:l}));return()=>U5(d)},[t,r,a,n,s,l])}function K5(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=j5({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 dae(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 Fs,missingPinnedTypes as xae,pinnedDuplicateIds as GS}from"efficient-easel/draw";function V5(e){return!e.docId||e.saveStatus==="saving"?!1:e.seededDocId!==e.docId}function Y5(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===Vo),seedFooter:s,seedSiteHeader:s&&!e.some(l=>l?.type===Wo)}}async function X5(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!==Wo||!e.stillOpen())return!1;let r=e.latest();return r.some(a=>a?.type===Wo)?!1:(e.write(bf(r,t)),!0)}function J5(e,o){let{adapter:t,capabilities:r,currentSlug:a,docId:n,data:s,saveStatus:l,siteId:i,tokenRef:d}=uae(),f=mae(),{hasSiteSettings:m,hasPinnedChrome:u}=r;q5(e);let h=!!r.editsPinnedInPlace&&a!==_r,I=a===_r,S=pae().getState,T=cae(null);fae(()=>{if(!V5({docId:n,saveStatus:l,seededDocId:T.current})||(T.current=n,!u))return;let P=S().appState.data,L=P.content,C=s?.content??[],y=(D,w)=>D.some(E=>E?.type===w);if(!m){let D=new Set(GS(L)),w=D.size?L.filter(g=>!D.has(g.props.id)):L;if(D.size&&e.setDocument({...P,content:w}),I)return;let E=xae(w,C);if(E.includes(Re)){let g=w.length,v=e.insertSection(Re,g);e.replaceComponent(Fs,g,{type:Re,props:{id:v,blocks:um()}})}E.includes(Vo)&&e.insertNode(Fs,0,pm());return}if(I){let D=cP(L);if(D!==L&&e.setDocument({...P,content:[...D]}),!D.find(w=>w.type===Re)&&!y(C,Re)&&!y(D,ao)&&!y(C,ao)){let w=(g,v)=>US(o,g,v),E={type:Re,props:{blocks:um()}};e.insertNode(Fs,D.length,xi(E,w,jS(ao),Yi))}return}if(h){let D=!!t?.pinnedChrome?.state().docId,w=Y5(L,{hasChromeDoc:D}),E=new Set([...w.remove,...GS(L.filter(v=>!w.remove.includes(String(v.props.id))))]),g=E.size?L.filter(v=>!E.has(String(v.props.id))):L;if(g.length!==L.length&&e.setDocument({...P,content:g}),w.seedFooter&&!y(C,Re)&&!y(C,ao)){let v=(k,A)=>US(o,k,A),O={type:Re,props:{blocks:um()}};e.insertNode(Fs,g.length,xi(O,v,jS(ao),Yi))}if(w.seedHeader&&!y(C,Vo)){let v=g[0]?.type===Wo?1:0;e.insertNode(Fs,v,pm())}if(w.seedSiteHeader&&!y(C,Wo)&&!y(C,Re)&&!y(C,ao)){let v=n;X5({blocks:hn(f),make:(O,k)=>US(o,O,k),id:jS(Wo),siteId:i??null,token:d.current,latest:()=>S().appState.data.content,stillOpen:()=>T.current===v,write:O=>{let k=S().appState.data;e.setDocument({...k,content:[...O]})}})}return}let b=L.filter(D=>D.type!==Re),F=new Set(GS(b)),_=F.size?b.filter(D=>!F.has(D.props.id)):b;_.length!==L.length&&e.setDocument({...P,content:_}),!y(_,Vo)&&!y(C,Vo)&&e.insertNode(Fs,0,pm())},[n,l,s,S,e,m,u,I,h,t,f,i,d])}import{useEffect as l4,useMemo as wae,useRef as i4}from"react";import{useEasel as Cae}from"efficient-easel/easel";import{newId as kae}from"efficient-easel/data";import{useEaselHost as vae}from"efficient-easel/screen/lib/host";import{FIELD_DESCRIPTION_MARKER as hae}from"efficient-easel/screen/lib/host";import{isNode as e4}from"efficient-easel/data";function od(e,o){let t=e.components[o]?.label;return typeof t=="string"&&t.trim()?t.trim():o}function Iae(e){return e.length>3&&e.endsWith("s")?e.slice(0,-1):e}function KS(e,o,t,r){e.forEach((a,n)=>{if(e4(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 gae(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 o4(e,o){return gae(e).find(t=>String(t.node.props.id)===o)}function t4(e,o,t){if(!t)return null;let r=o4(o,t);if(!r)return null;let a=od(e,r.node.type),n=r.parent?`${od(e,r.parent.type)} \xB7 ${Iae(r.slot)} ${r.index+1}`:a;return{blockId:t,type:r.node.type,label:n,path:""}}var yae=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 Sae(e){if(!e||typeof e!="object")return null;let o=e;if(typeof o.type!="string")return null;let t=o.type==="custom"?o[hae]: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=yae(n));for(let s of["arrayFields","objectFields"]){let l=t?.[s]??o[s];l&&typeof l=="object"&&(r[s]=r4(l))}return r}function r4(e){let o={};for(let[t,r]of Object.entries(e??{})){let a=Sae(r);a&&(o[t]=a)}return o}function a4(e){let o={};for(let[t,r]of Object.entries(e.components))r&&(o[t]={label:od(e,t),fields:r4(r.fields),...n4(t)?{retired:!0}:{}});return o}function n4(e){return Qe(pb,e)}function Z5(e,o){let t=e.components[o]?.defaultProps;return t&&typeof t=="object"?structuredClone(t):{}}function bae(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=>e4(t)&&String(t.props.id)===o)}function Q5(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 s4(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=o4(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=bae(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}`),n4(l.type)&&d(`${od(e,l.type)} is retired: it is no longer added (a page that holds one keeps it)`);let f=xs(l.type),m=Object.keys(l.props??{}).filter(h=>h!=="id");f&&m.length&&d(`${od(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=>Z5(e,h),r,a):{type:l.type,props:{...Z5(e,l.type),...structuredClone(l.props),id:r(l.type)}};s.splice(Q5(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(Q5(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=>ho(e.requestId)??null;function d4(){let e=vae(),{appState:o,selectedItem:t,dispatch:r,history:a,config:n}=Cae(u=>u),s=n,l=i4({appState:o,dispatch:r,history:a,blockConfig:s});l.current={appState:o,dispatch:r,history:a,blockConfig:s};let i=i4(new Map),d=t?.props?.id,f=wae(()=>t4(s,o.data,d),[s,o.data,d]),m=f?JSON.stringify(f):"";l4(()=>{e.connected&&e.send("storefront-editor:selection",{selection:f})},[e,m]),l4(()=>e.subscribe(u=>{let{appState:h,dispatch:I,history:S,blockConfig:T}=l.current;switch(u.type){case"storefront-editor:request-document":{let P=VS(u);if(!P)return;e.send("storefront-editor:document",{requestId:P,document:h.data,blocks:a4(T)});return}case"storefront-editor:apply-page-edits":{let P=VS(u);if(!P)return;let L=Array.isArray(u.ops)?u.ops:[],C=L.length?s4(T,h.data,L,kae,As()):{ok:!1,reason:"no changes"};C.ok&&(I({type:"setData",data:C.document,recordHistory:!0}),i.current.set(P,JSON.stringify(C.document.content??[]))),e.send("storefront-editor:page-edits-result",{requestId:P,applied:C.ok,reason:C.ok?null:C.reason});return}case"storefront-editor:undo-page-edits":{let P=VS(u);if(!P)return;let L=i.current.get(P),C=L!==void 0&&L===JSON.stringify(h.data.content??[]);C&&S.hasPast&&(S.back(),i.current.delete(P)),e.send("storefront-editor:page-edits-result",{requestId:P,applied:C&&S.hasPast,reason:C?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 p4,useState as u4}from"react";var wm=new Map;async function Pae(e,o){try{return(await Ao().site.get({siteId:o})).slug?.trim()||null}catch(t){return console.warn("[editor-site-slug] could not resolve the site slug",t),null}}function f4(e,o){let t=wm.get(o);return t||(t=Pae(e,o),wm.set(o,t),t.catch(()=>{wm.get(o)===t&&wm.delete(o)})),t}var Tae=/^(localhost|(?:[a-z0-9-]+\.)+localhost|127(?:\.\d{1,3}){3}|0\.0\.0\.0|\[::1\]|::1)$/i;function YS(e){return!!e&&Tae.test(e)}function c4(e){let{pageSlug:o,siteSlug:t,hostname:r}=e,a=o===cT?"/":`/${encodeURIComponent(o)}`;if(!YS(r))return a;let n=t?.trim();return n?`${a}?site=${encodeURIComponent(n)}`:a}function m4(e){let{pageSlug:o,siteId:t,token:r}=e,[a,n]=u4(null),[s,l]=u4(null),i=IP();p4(()=>{try{l(new URL(gP()).hostname)}catch{l(null)}},[i]),p4(()=>{if(!YS(s)||!t||!r){n(null);return}let f=!1;return f4(r,t).then(m=>{f||n(m)}),()=>{f=!0}},[s,t,r]);let d=c4({pageSlug:o,siteSlug:a,hostname:s});return i?`${i}${d}`:d}import{jsx as td}from"react/jsx-runtime";import{useEffect as Oae,useRef as x4,useState as Eae}from"react";import{ExternalIcon as h4}from"efficient-easel/icons";import{EaselIconButton as _ae}from"efficient-easel/chrome";import{Tooltip as Aae,iconButtonClasses as Fae}from"efficient-shell/ui";import{useSettledPress as Bae}from"efficient-easel/easel";import{useScreenDocument as Rae}from"efficient-easel/screen/components/ScreenDocumentContext";async function Lae({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 I4({liveHref:e,pageId:o,draftLink:t}){let{flushSave:r}=Rae(),a=x4(r);a.current=r;let n=Bae(),[s,l]=Eae(!1),i=x4(null);if(Oae(()=>()=>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),Lae({pageId:o,liveHref:e,draftLink:t,ready:d}).finally(()=>l(!1)))};return td(_ae,{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:td(h4,{})})}return td(Aae,{content:c("Preview the live site (opens in a new tab)"),side:"bottom",children:td("a",{className:Fae({className:"es-iconbtn"}),href:e,...Al,"aria-label":c("Preview the live site in a new tab"),children:td(h4,{})})})}import{createElement as Dae,useCallback as Nae,useEffect as g4,useRef as y4,useState as Mae}from"react";import{ClockIcon as Hae}from"efficient-shell/icons/efficient";import{useScreenDocument as Wae}from"efficient-easel/screen/components/ScreenDocumentContext";function S4(e){let{docId:o,capabilities:t,hasUnsavedEdits:r,onPublish:a,adapter:n}=Wae(),s=H2(M2(o??null),r),l=Lu(Du()),i=n.siteLiveState;g4(()=>{if(i)return Nx(i),ca(0),()=>Nx(null)},[i]);let d=Lf(),[f,m]=Mae(!1),u=y4(e);u.current=e;let h=y4(!0);g4(()=>(h.current=!0,()=>{h.current=!1}),[]);let I=Nae(()=>{m(!0),a(u.current).then(()=>{Mu()}).finally(()=>{h.current&&m(!1)})},[a]);if(t.canPublish){if(i){let S=d===void 0?void 0:r||d.state==="changed"?"changed":"live",T=yS({live:S,onPress:I,busy:f,goingLive:W2(d?.changes??[])});return n.siteVersions?{...T,menuItems:$ae()}:T}return yS({live:s,onPress:I,busy:f,pinnedUnpublished:l?.unpublished??!1})}}function $ae(){return[{key:"version-history",label:c("Version history"),icon:Dae(Hae),onSelect:ZM}]}import{jsx as Q,jsxs as tt,Fragment as nd}from"react/jsx-runtime";import{useCallback as zae,useEffect as Uae,useId as C4,useRef as jae,useState as St}from"react";import{useSettledAction as Gae}from"efficient-easel/easel";import{Avatar as Kae,Banner as rd,Button as Za,ColoredBadge as XS,Dialog as ZS,DropdownMenu as qae,FormField as k4,iconButtonClasses as Vae,Inline as JS,Input as Yae,ListRow as Xae,Select as Jae,SortableList as Zae,Stack as ad}from"efficient-shell/ui";import{EditIcon as Qae,EyeIcon as b4,MenuIcon as ene,MoreIcon as one,PageIcon as v4,RevertIcon as w4,StylesIcon as tne}from"efficient-shell/icons/efficient";import{useScreenDocument as P4}from"efficient-easel/screen/components/ScreenDocumentContext";var rne={page:v4,menu:ene};function ane(e,o){return e.pages.find(t=>t.id===o)??e.pages[0]??null}function nne(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 sne({version:e,page:o,waiting:t,busy:r,error:a,onCancel:n,onConfirm:s,onPage:l}){let i=C4();if(!e)return null;let d=e.kind==="draft_before_restore",f=e.number,m=sH(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(ZS,{open:!0,onClose:()=>{r||n()},size:"sm",title:u,footer:tt(nd,{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:tt(ad,{gap:4,children:[o&&e.pages.length>1?Q(k4,{label:c("Page"),htmlFor:i,children:Q(Jae,{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(rd,{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(rd,{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(rd,{tone:"danger",children:a}):null]})})}function lne({version:e,onCancel:o,onSave:t}){let r=C4(),[a,n]=St(null),[s,l]=St(""),[i,d]=St(!1),[f,m]=St(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(ZS,{open:!0,onClose:()=>{i||o()},size:"sm",title:c("Name this version"),footer:tt(nd,{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(k4,{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(Yae,{id:r,value:s,invalid:!!f,onChange:I=>l(I.target.value),onKeyDown:I=>{I.key==="Enter"&&h()}})})})}function ine({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(b4,{}),onSelect:r}],...i?[{key:"restore",label:l?c("Put these drafts back"):c("Restore whole website"),icon:Q(w4,{}),onSelect:a}]:[],...i&&!l&&e.pages.length?[{key:"restore-page",label:c("Restore one page only"),icon:Q(v4,{}),onSelect:n}]:[],...l?[]:[{type:"divider",key:"divider"},{key:"name",label:c("Name this version"),icon:Q(Qae,{}),onSelect:s}]];return Q(Xae,{title:tt("span",{className:"sf-version-title",children:[Q("span",{children:nH(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(qae,{align:"end","aria-label":c("More"),items:f,triggerClassName:Vae({variant:"ghost",size:"sm"}),trigger:Q(one,{})}),below:tt(ad,{gap:3,children:[tt(JS,{gap:2,align:"center",wrap:!0,className:"sf-version-meta",children:[Q(Kae,{name:e.createdBy,size:"xs"}),Q("span",{children:e.createdBy}),Q("span",{"aria-hidden":"true",children:"\xB7"}),Q("span",{children:iH(e.createdAt)}),d?tt(nd,{children:[Q("span",{"aria-hidden":"true",children:"\xB7"}),Q("span",{children:$t("{n} change","{n} changes",d)})]}):null]}),o?tt(ad,{gap:3,children:[d?Q(ad,{gap:2,children:e.changes.map(m=>{let u=rne[m.kind]??tne;return tt(JS,{gap:2,align:"center",children:[Q(u,{size:16}),Q("span",{children:lH(m)})]},`${m.kind}:${m.id}`)})}):null,tt(JS,{gap:2,children:[l?null:Q(Za,{variant:"secondary",size:"sm",leftIcon:Q(b4,{}),onClick:r,children:c("Preview")}),i?Q(Za,{variant:"secondary",size:"sm",leftIcon:Q(w4,{}),onClick:a,children:c("Restore")}):null]})]}):null]})})}function dne({open:e,onClose:o,access:t,waiting:r}){let{flushSave:a,reloadFromServer:n,docId:s}=P4(),[l,i]=St(null),[d,f]=St(!1),[m,u]=St(null),[h,I]=St(null),[S,T]=St(!1),[P,L]=St(null),[C,y]=St(null),[b,F]=St(!1),_=jae(0),D=zae(()=>{let v=++_.current;f(!1),t.list().then(O=>{v===_.current&&i(O)},()=>{v===_.current&&f(!0)})},[t]);Uae(()=>{e&&D()},[e,D]);let w=v=>{F(!1),nne(t,v.id).catch(()=>F(!0))},E=async()=>{if(!(!h||S)){T(!0),L(null);try{await rH({access:t,version:h.version,page:h.page,flushSave:a,reload:n}),I(null),o()}catch(v){L(v instanceof Di?c("Your last changes did not save, so nothing was restored. Try again."):c("The version was not restored. Nothing changed. Try again."))}finally{T(!1)}}},g=Gae({onPress:()=>{E()},busy:S});return tt(nd,{children:[Q(ZS,{open:e,onClose:o,size:"xl",title:c("Version history"),description:tt(nd,{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:tt(ad,{gap:3,children:[b?Q(rd,{tone:"danger",onDismiss:()=>F(!1),children:c("The preview did not open. Try again.")}):null,d?Q(rd,{tone:"danger",action:Q(Za,{variant:"secondary",size:"sm",onClick:D,children:c("Try again")}),children:c("Version history did not load.")}):l===null?Q("p",{className:"sf-version-foot",children:c("Loading versions")}):l.length===0?Q("p",{className:"sf-version-foot",children:c("No versions yet. Every Publish from now on keeps one.")}):Q(Zae,{"aria-label":c("Versions"),spacing:"comfortable",children:l.map(v=>Q(ine,{version:v,expanded:m===v.id,onToggle:()=>u(O=>O===v.id?null:v.id),onPreview:()=>w(v),onRestore:()=>{L(null),I({version:v,page:null})},onRestorePage:()=>{L(null),I({version:v,page:ane(v,s)})},onName:()=>y(v)},v.id))})]})}),Q(sne,{version:h?.version??null,page:h?.page??null,waiting:r,busy:g.busy===!0,error:P,onCancel:()=>I(null),onConfirm:g.onPress,onPage:v=>I(O=>O&&{...O,page:O.version.pages.find(k=>k.id===v)??O.page})}),Q(lne,{version:C,onCancel:()=>y(null),onSave:async v=>{await t.name(C.id,v),y(null),D()}})]})}function T4(){let{adapter:e,hasUnsavedEdits:o}=P4(),t=e.siteVersions,r=eH(),a=Lf();return t?Q(dne,{open:r,onClose:QM,access:t,waiting:o||a?.state==="changed"}):null}import{useEaselSession as p6}from"efficient-easel/screen/lib/session-context";import{buildPaletteSections as xWe,categoryLabel as hWe,paletteWithoutPinned as IWe,pinnedSection as gWe}from"efficient-easel/screen/lib/document/palette-sections";var fne={openers:{label:"Hero & intros",icon:"image"},shop:{label:"Shop & galleries",icon:"bag"},product:{label:"Product page",icon:"box"},checkout:{label:"Checkout & ordering",icon:"bag"},about:{label:"About & brand story",icon:"book"},content:{label:"Text & content",icon:"type"},proof:{label:"Stats & social proof",icon:"star"},promo:{label:"Promotions & sign-ups",icon:"sparkles"},blog:{label:"Blog & journal",icon:"newspaper"},navigation:{label:"Navigation & wayfinding",icon:"bookmark"},legal:{label:"Legal & documents",icon:"file"},contact:{label:"Contact, FAQ & forms",icon:"mail"},structure:{label:"Layout, structure & embeds",icon:"grid"},layouts:{label:"Layouts",icon:"layers"}};function O4(e){return z(fne,e)?.label}var E4=xb;function cne(e){let o=du.Ticker(e.nodeDefaults,e.newNodeId),{sectionBorder:t,...r}=o.props,a=lI.line?{sectionBorder:t}:{};return{...o,props:{...r,...a,sectionAccent:lI.sectionAccent}}}var pne={Hero:{[ti]:{newChild:cne,childLabel:ea.Ticker}}},_4=Object.fromEntries(Object.entries(F1).map(([e,o])=>[e,Object.fromEntries(Object.entries(o).map(([t,r])=>[t,{...r,...z(pne,e)?.[t]}]))]));function A4(e,o=0,t,r){let a=mne(xne(e,o,r),t),n=a?Ng():null;return a&&n?une(a,n):a}function une(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 mne(e,o){if(!e||e.source!=="container"||!o||!ww())return e;let t=Ld({data:o.data},o.id),r=typeof t?.type=="string"?_d(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 xne(e,o,t){let r=t?z(_4,e)?.[t]:void 0;if(r)return{source:"section",slot:r.slot,choices:null,spec:r};let a=z(ct,e);if(a)return{source:"section",slot:a.slot,choices:null,spec:a};let n=xd(e,o);if(n)return{source:"container",slot:n.slot,choices:n.choices,spec:null};let s=Z2(e);return s?{source:"footer",slot:J2,choices:s,spec:null}:null}function F4(e,o=Bd(e.type)){return Fd(e.type)?o.map(t=>{let r=vw(e.type,t);return r===null?{slot:t,label:t,rung:!1}:{slot:t,label:c(r),rung:!0}}):null}import{useSyncExternalStore as hne}from"react";var QS=null,eb=new Set;function B4(e){if(QS!==e){QS=e;for(let o of eb)o()}}function Ine(e){return eb.add(e),()=>{eb.delete(e)}}function $We(){return hne(Ine,()=>QS,()=>null)}function R4(e){return LP(e)?.ownerId??null}function L4(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 gne}from"efficient-shell/format";var yne=["pages","sections","styles"],D4="sf-editor-left-view";function N4(){if(typeof window>"u")return"pages";try{let e=window.localStorage.getItem(D4);return gne(yne,"pages",e)}catch{return"pages"}}function M4(e){if(!(typeof window>"u"))try{window.localStorage.setItem(D4,e)}catch{}}function H4(e,o){return e==="styles"&&!o?"sections":e}function W4(e,o){return e?"sections":o}import{copyNode as Sne}from"efficient-easel/data";function $4(e){let o=typeof e?.props?.id=="string"?e.props.id:null,t=lr(),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 z4={usedOn:e=>{let o=lr(),t=o?.sectionOf(e.props.id)??null;return!o||!t?null:o.usedOn(t)??[]},openPage:e=>Ff()?.openPage(e),adopt:(e,o)=>lr()?.adopt(e.props.id,o),nodeOf:e=>lr()?.place(e)??null,detach:e=>{let o=Ff()?.config;return o?Sne(e,o):e},removed:()=>Ff()?.reload()};import{sharedSectionsOf as qne}from"efficient-easel/screen/lib/shared-sections";import{scrollPreviewToSection as Vne,scrollPreviewToTop as n6}from"efficient-easel/screen/lib/document/preview-dom";var bne=Ef.mediaFields,wne=/video|poster|focal|phone/i;function Cne(e){return(z(bne,e)??[]).find(o=>!o.includes("[]")&&!wne.test(o))??null}function kne(e){let o=Cne(e.type);return e.type!==K?o&&Rd(e.type,e.props,o)?{fromData:!0}:o:Zk(e.props)?{fromData:!0}:o}var U4={adds:{kind:"block",type:"ImageBlock"},kinds:["image"],pictureOf:kne,create:(e,o)=>({type:"ImageBlock",props:{...o.nodeDefaults("ImageBlock"),id:o.newNodeId("ImageBlock"),src:e.url}})};var j4={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 Cm}from"react/jsx-runtime";import{useState as vne}from"react";import{Button as Pne,Tooltip as Tne,toast as G4}from"efficient-shell/ui";import{TemplateIcon as One}from"efficient-easel/icons";import{useSettledAction as Ene}from"efficient-easel/easel";import{useScreenDocument as _ne}from"efficient-easel/screen/components/ScreenDocumentContext";function q4({enabled:e,reason:o,onSaved:t}){let{flushSave:r}=_ne(),[a,n]=vne(!1),s=async()=>{if(!a){n(!0);try{await r()?t():G4.error(c(K4))}catch{G4.error(c(K4))}finally{n(!1)}}},l=Ene({onPress:()=>{s()},busy:a});return Cm(Tne,{side:"bottom",content:e?c("Save this website as a platform template"):c(o),children:Cm("span",{className:"sf-tip-disabled",tabIndex:e?void 0:0,children:Cm(Pne,{variant:"secondary",disabled:!e||l.busy,loading:l.busy,onClick:l.onPress,rightIcon:Cm(One,{size:15}),children:c("Save as Template")})})})}var K4="Your last changes did not save, so the template was not made. Try again.";var Ane="Save your page changes first";function V4(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:Ane}:{visible:!0,enabled:!0}:{visible:!1,hiddenReason:"no-site"}:{visible:!1,hiddenReason:"not-operator"}:{visible:!1,hiddenReason:"no-console"}}var Y4="storefront-editor:save-as-template";import{phoneKey as Fne,tabletKey as Bne}from"efficient-easel/draw";var Rne=[Io.top,Bne(Io.top),Fne(Io.top)],km="ContactLocations",X4="ContactRouting",J4="CityPictures",Z4="CityMaps",Lne=[{key:J4,label:"City pictures",piece:0,desc:"A wall of city photos, grouped by region. Each photo links to its city's card."},{key:Z4,label:"City maps",piece:1,desc:"A card per city, grouped by region: address, phone, hours and a map."}];function Q4(e=Oa,o=JI){let t=cb.find(r=>r.sections.some(a=>a.type===X4))?.key;return!e.includes(km)||!t?[]:Lne.filter(r=>!(o&&r.key===J4)).map(({key:r,label:a,desc:n,piece:s})=>({key:r,label:a,cat:t,after:X4,desc:n,alias:"locations offices stores branches",insert:l=>{let i=Dr(km);if(!i)return null;let d=As(),f=bi(km,i,s)(l.nodeDefaults,l.newNodeId,d);if(!f||!(o&&r===Z4))return f;let m=bi(km,i,0)(l.nodeDefaults,h=>`${h}-above`,d),u=Object.fromEntries(Rne.filter(h=>m?.props[h]!==void 0).map(h=>[h,m.props[h]]));return{...f,props:{...f.props,...u}}}}))}function e6(e=Oa,o){return[...Q4(e,o)]}function t6(e,{nodeDefaults:o,newNodeId:t,sectionLabel:r,blockIsOffered:a}){let n=xs(e);if(n)return n(o,t,As());if(uw(e)&&a(K)&&a(pn)){let l=z(kt,e);return{type:K,props:{...o(K),id:t(K),direction:"column",name:`${r(e)} section`,content:[{type:pn,props:{...o(pn),id:t(pn),...l?.headStyle?{headStyle:l.headStyle}:{},...l?.headRowGap?{rowGap:l.headRowGap}:{},...l?.headDescriptionSize?{descriptionSize:l.headDescriptionSize}:{},...Bl(e)!==Bl(pn)?{eyebrowLook:Bl(e)}:{}}},{type:e,props:{...o(e),id:t(e),headPlacement:"own-box",...o6(e,t)}}]}}}if(z(ct,e)?.fixed===!0)return{type:e,props:{...o(e),id:t(e),layout:"boxes"}};let s=o6(e,t);return Object.keys(s).length?{type:e,props:{...o(e),id:t(e),...s}}:null}function o6(e,o){return e==="Cards"?{template:dw(t=>o(t))}:e===fw?{template:cw(t=>o(t))}:{}}import{useEffect as Dne,useState as Nne}from"react";import{useEaselSession as Mne}from"efficient-easel/screen/lib/session-context";function r6(){let e=Mne().chrome?.products?.list,[o,t]=Nne(null);return Dne(()=>{if(!e)return;let r=!1;return e().then(a=>{r||t(a)}),()=>{r=!0}},[e]),o}function u6({mode:e,open:o}){let{setSelectedHeroId:t,setSelectHandler:r}=sL(),a=c6().tree,n=e,s=n.kind==="ticker"?n.heroId:null,l=Bs(i=>{i&&(o({kind:"ticker",heroId:i}),Vne(i))},[o]);return Jt(()=>{t(s)},[s,t]),Jt(()=>{r(l)},[r,l]),{partRows:(i,{rowClick:d})=>{let f=String(i.props.id);return i.type==="Hero"&&iI(i.props)&&uo(d6,{icon:uo(Ga,{type:"ticker",size:13}),name:c(Ma),onSelect:()=>l(f),selected:s===f,rowProps:{onClick:d(()=>l(f))},words:a})}}}function m6({mode:e,select:o}){let{setSelectedHeroPart:t,setSelectHandler:r}=Yu(),a=c6().tree,{appState:n,config:s}=f6(u=>u),l=Hne({data:n.data,config:s});l.current={data:n.data,config:s};let i=e,d=ka.find(u=>Jl[u]===i.kind),f=d&&"nodeId"in i?va(String(i.nodeId),d):null,m=Bs(u=>{let h=ep(u);if(!h)return;let{data:I,config:S}=l.current,T=Gne(I,S,{kind:"node",id:h.nodeId});if(!T)return;let P={kind:Jl[h.part],nodeId:h.nodeId};o({index:T.index,zone:T.zone},P)},[o]);return Jt(()=>{t(f)},[f,t]),Jt(()=>{r(m)},[r,m]),{partRows:(u,{rowClick:h})=>{let I=String(u.props.id),S=N_(u);if(S.length===0)return null;let T=C=>{let y=va(I,C.part);return uo(d6,{icon:uo(Ga,{type:C.part==="media"?"heroMedia":"heroImage",size:13}),name:c(C.label),onSelect:()=>m(y),selected:f===y,rowProps:{onClick:h(()=>m(y))},words:a},y)},[P,...L]=S;return sd(i6,{children:[T(P),L.length>0&&uo(jne,{children:L.map(T)})]})}}}function x6(e,o){return{partRows:(t,r)=>sd(i6,{children:[e.partRows?.(t,r),o.partRows?.(t,r)]})}}function Yne(e){let{adapter:o,capabilities:t,currentSlug:r,siteId:a,docId:n,hasUnsavedEdits:s,bridgeCapabilities:l,notifyParent:i,token:d}=vm(),{hasPreviewLink:f}=t,m=Ao(p6()).preview?.draftLink,u=S4(e.data),h=V4({hasTrustedConsole:!!d,canCreatePlatformTemplate:l.canCreatePlatformTemplate,capabilities:t,siteId:a,hasUnsavedEdits:s}),I=Bs(()=>{!a||!r||i(Y4,{siteId:a,slug:r})},[i,a,r]),S=m4({pageSlug:r,siteId:a,token:d}),T=o.previewHref?.(r)??S;return{barLead:()=>h.visible&&uo(q4,{enabled:h.enabled,reason:h.enabled?"":h.disabledReason,onSaved:I}),barView:()=>f&&r&&uo(I4,{liveHref:T,pageId:n??null,draftLink:m}),mainAction:u}}function Xne(e,o){let{capabilities:t,templateId:r,siteId:a,tokenRef:n,navigate:s}=vm(),{hasSiteTheme:l,explainsSiteSettings:i}=t,d=C=>o.setView(C),[f,m]=a6(r0[0].id),[u,h]=a6(!1),{surface:I,setSurface:S}=jH(),T=()=>{if(l){d("styles"),o.reveal(),n6();return}e.show(AS),e.reveal(),n6()},P={id:"pages",label:c("Pages"),icon:uo($ne,{}),panel:({onHide:C})=>uo(RH,{activeSurface:I,onPreviewSurface:S,onNavigate:y=>{S(null),s(r?{kind:"template",id:r,pageSlug:y}:{kind:"page",slug:y,siteId:a??void 0})},onClose:C})},L=[];return!l&&i&&L.push({id:"appearance",label:c("Appearance"),icon:uo(Une,{}),active:e.kind==="website",onSelect:T}),l&&L.push({id:"styles",label:c("Styles"),icon:uo(zne,{}),panel:({onHide:C,notify:y})=>uo(C5,{tokenRef:n,siteId:a??void 0,onClose:C,onNotify:y,tab:f,onTabChange:m,revealPageGroup:u,onPageGroupRevealed:()=>h(!1)})}),{railLead:[P],railTrail:L,resolveLeftView:C=>H4(C,l),openSettings:T,openStyles:()=>{m(t0),d("styles")},openPageStyles:l?()=>{m($f),h(!0),d("styles"),o.reveal()}:i?()=>{e.show(c5),e.reveal()}:void 0}}function Jne(){let{navigate:e,siteId:o,reloadFromServer:t,docId:r}=vm(),a=f6(s=>s.config),n=p6();Jt(()=>(Dx({openPage:s=>e({kind:"page",slug:s.slug,siteId:o??void 0}),reload:()=>{t()},config:a}),()=>Dx(null)),[e,o,t,a]),Jt(()=>{let s=lr();if(!s||!r)return;let l=!1;return qne(n).list().then(i=>{l||s.learn(i)}).catch(()=>{}),()=>{l=!0}},[r,n])}function h6(){let e=jf();return Bs(o=>{E0(o,e)},[e])}function Zne(e,o,t,r){let{kind:a,open:n}=e,{selected:s,zoneOf:l}=o;Jt(()=>{B4(s?.type==="BookingBox"&&s.props.region==="confirm"?R4(l(String(s.props.id))):null)},[s?.props.id]);let i=$5(e,o),{capabilities:{hasSiteSettings:d}}=vm();Jne();let{chat:f,setChat:m,setSelected:u,setSelectHandler:h}=Vu(),I=Bs(()=>n(p5),[n]),S=a==="chat";Jt(()=>{u(S)},[S,u]),Jt(()=>{h(I)},[h,I]);let{setOpenHandler:T}=Mi(),P=Bs(()=>n(u5),[n]);Jt(()=>{T(P)},[T,P]);let L=x6(u6(e),m6(e)),C=Yne(o),y=Xne(e,r);PH(r);let b=t.device,F=h6();return{...L,...C,...y,hasOwnRows:_=>_.type===bm,ownRows:i.renderLocationTree,sectionPressed:i.sectionPressed,onCopyItem:F,wrap:_=>uo(Vx.Provider,{value:!0,children:sd(Kne.Provider,{value:b,children:[_,uo(T4,{})]})}),addPanelRow:_=>d?sd("div",{className:"sf-addside-sitewide",children:[uo("span",{className:"sf-addside-sitewide-glyph","aria-hidden":"true",children:uo(Ga,{type:"chat",size:16})}),sd("button",{type:"button",className:"sf-addside-sitewide-name",onClick:()=>{_(),I()},children:[c("Live chat"),uo("span",{className:"sf-addside-sitewide-desc",children:c("A chat bubble on every page")})]}),uo(Wne,{checked:f.enabled,onChange:D=>m({enabled:D}),ariaLabel:c("Show the chat bubble on the whole site")})]}):void 0}}var s6=null,ob=new WeakMap;function Qne(e){let o=sC();if(!e||!o)return e;s6!==o&&(s6=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 ese={isLockedBlock:(e,o)=>ku(e,o)||!!(o&&lr()?.heldElsewhere(o.props.id)),duplicateBlocked:mm,nestDepth:(e,o,t)=>o===Gd?Kd(e,t):0,newSectionNode:t6,canAddTo:(e,o,t,r)=>Qne(A4(e,o,r,t)),blockIsOffered:JL,slotsOf:F4,resolveOnInsert:!0},ose=new Proxy(j4,{get:(e,o)=>{let t=Reflect.get(e,o);return typeof t=="string"?c(t):t}}),tse={labelAtLevel:(e,o,t)=>c(Om(e,o,t)),descriptions:ose,categoryLabel:e=>{let o=O4(e);return o===void 0?void 0:c(o)},firstSection:E4,blockRowName:L4,rowName:vu,plainText:ln,Icon:Ga,Thumbnail:b5,useProducts:r6,presets:e6()},rse={desktop:2e3,tablet:800,mobile:390},l6="desktop",ase={options:WH,initial:l6,fluid:l6,fluidMin:Xb,widths:rse,hidesPerView:!0},nse={read:N4,write:e=>M4(e),forSelection:(e,o)=>W4(e,o)},sse={first:Vo,last:Re,firstGroup:Wo,lastGroup:ao,isSectionGroup:iP,sectionGroupZone:dP,panelOf:e=>e===Vo?f5:null,get sharedReach(){return ua()?ise:void 0},get shared(){return lr()?z4:void 0},get groupTab(){return ua()?Q2:void 0},get groupBadge(){return ua()?PS({type:ao})??void 0:void 0},get changeNotice(){return ua()?e5():void 0},get band(){return ua()?lse:void 0},get groupAccepts(){return ua()?pP:void 0}},lse={foldable:!0},ise=e=>PS(e)??$4(e);function dse(e){return{...x6(u6(e),m6(e)),onCopyItem:h6(),openSettings:()=>e.show(AS)}}function fse(e,o){J5(e,o),d4()}var Zze={useOwnerName:Nn,useDocumentLabel:R0,useBridges:Zne,useStandaloneBridges:dse,useDocumentPass:fse,blockRules:ese,blockLook:tse,devices:ase,leftView:nse,pinned:sse,Canvas:pH,canvasDrag:{media:U4},Inspector:x5};export{Bg as a,qt as b,Vt as c,no as d,yhe as e,fI as f,yye as g,hi as h,Ii as i,uF as j,mF as k,Np as l,Sye as m,JG as n,xF as o,bye as p,ML as q,s0e as r,HL as s,d0e as t,kl as u,ha as v,uI as w,Phe as x,up as y,UO as z,jO as A,oA as B,rO as C,Pt as D,ac as E,aO as F,ph as G,fie as H,cie as I,pie as J,nO as K,uie as L,nc as M,dO as N,Iie as O,gie as P,fO as Q,yie as R,Aie as S,Fie as T,hO as U,ot as V,zn as W,fo as X,Fa as Y,Y as Z,es as _,Z as $,X as aa,te as ba,re as ca,ce as da,sIe as ea,pe as fa,ts as ga,rs as ha,li as ia,ii as ja,sA as ka,fIe as la,Fj as ma,lA as na,uIe as oa,mIe as pa,iA as qa,Th as ra,DO as sa,TW as ta,Bl as ua,NO as va,Mde as wa,xI as xa,gIe as ya,yIe as za,SIe as Aa,bIe as Ba,wIe as Ca,CIe as Da,nde as Ea,Oc as Fa,Al as Ga,sde as Ha,lde as Ia,TO as Ja,wh as Ka,lW as La,iW as Ma,ide as Na,dW as Oa,dde as Pa,TE as Qa,spe as Ra,DE as Sa,lpe as Ta,ipe as Ua,dpe as Va,wp as Wa,yI as Xa,pA as Ya,Cp as Za,RIe as _a,Gj as $a,Kj as ab,qj as bb,LIe as cb,Go as db,Da as eb,is as fb,bge as gb,wge as hb,Cge as ib,jE as jb,qc as kb,M$ as lb,Ipe as mb,qA as nb,VA as ob,YA as pb,zge as qb,ZA as rb,vye as sb,Pye as tb,Hp as ub,IF as vb,Dl as wb,WO as xb,$O as yb,_h as zb,Sa as Ab,oE as Bb,wfe as Cb,Cfe as Db,kfe as Eb,Wl as Fb,dt as Gb,Afe as Hb,pde as Ib,vde as Jb,kh as Kb,Pde as Lb,ga as Mb,Ec as Nb,Xe as Ob,zfe as Pb,lE as Qb,dE as Rb,fE as Sb,Wp as Tb,vF as Ub,zye as Vb,$p as Wb,PF as Xb,qye as Yb,NF as Zb,v8 as _b,Kp as $b,GSe as ac,Xc as bc,X$ as cc,Yh as dc,D8 as ec,sbe as fc,dB as gc,fB as hc,lbe as ic,ibe as jc,Jx as kc,$6 as lc,Zx as mc,u0 as nc,Cbe as oc,kB as pc,vB as qc,PB as rc,Ybe as sc,lwe as tc,iwe as uc,dwe as vc,cg as wc,BB as xc,sK as yc,lK as zc,Yp as Ac,pwe as Bc,uwe as Cc,Wwe as Dc,oR as Ec,$we as Fc,tR as Gc,Uwe as Hc,dR as Ic,fR as Jc,$K as Kc,uR as Lc,lCe as Mc,Qp as Nc,ICe as Oc,yi as Pc,SCe as Qc,IR as Rc,wCe as Sc,gR as Tc,yR as Uc,vCe as Vc,Fl as Wc,PW as Xc,mr as Yc,_Ce as Zc,eu as _c,RCe as $c,tu as ad,_de as bd,Ade as cd,ya as dd,Fde as ed,fh as fd,rc as gd,$0 as hd,ft as id,Vl as jd,wz as kd,Zh as ld,pue as md,Yl as nd,kz as od,uue as pd,Iue as qd,Xl as rd,B_ as sd,R_ as td,rme as ud,ame as vd,nme as wd,sme as xd,Hz as yd,lme as zd,ep as Ad,Zl as Bd,cme as Cd,tI as Dd,U_ as Ed,j_ as Fd,Qh as Gd,Kz as Hd,pme as Id,op as Jd,Ql as Kd,rp as Ld,ume as Md,mme as Nd,tp as Od,xme as Pd,hme as Qd,V_ as Rd,ei as Sd,oi as Td,np as Ud,X_ as Vd,Zn as Wd,J_ as Xd,sp as Yd,lp as Zd,ip as _d,Z_ as $d,Q_ as ae,e1 as be,o1 as ce,t1 as de,d1 as ee,f1 as fe,qme as ge,Vme as he,Yme as ie,Xme as je,Jme as ke,xU as le,hU as me,Zme as ne,Qme as oe,exe as pe,p1 as qe,oxe as re,txe as se,rxe as te,axe as ue,yU as ve,SU as we,vU as xe,TU as ye,OU as ze,g1 as Ae,RU as Be,S1 as Ce,b1 as De,Wc as Ee,zU as Fe,Rxe as Ge,O1 as He,$xe as Ie,Qxe as Je,ehe as Ke,gce as Le,$l as Me,Cce as Ne,kce as Oe,CE as Pe,wi as Qe,Xt as Re,ID as Se,xu as Te,_Oe as Ue,AOe as Ve,zOe as We,UOe as Xe,kV as Ye,Xg as Ze,PD as _e,jOe as $e,OD as af,ED as bf,RD as cf,AV as df,RV as ef,uEe as ff,PEe as gf,TEe as hf,Ti as if,OEe as jf,EEe as kf,Qg as lf,_Ee as mf,zve as nf,Ul as of,Uh as pf,Gc as qf,n_e as rf,Yn as sf,Dpe as tf,Npe as uf,a_ as vf,h9 as wf,ON as xf,_i as yf,C1e as zf,v1e as Af,dy as Bf,zN as Cf,nu as Df,qve as Ef,Xve as Ff,sL as Gf,Sg as Hf,lL as If,iL as Jf,Qve as Kf,dL as Lf,lu as Mf,lPe as Nf,cL as Of,mL as Pf,pL as Qf,hy as Rf,vFe as Sf,PFe as Tf,TFe as Uf,vu as Vf,xM as Wf,yy as Xf,qFe as Yf,VFe as Zf,SJ as _f,bJ as $f,FBe as ag,BBe as bg,RBe as cg,LBe as dg,Au as eg,Fu as fg,nRe as gg,WM as hg,UM as ig,jM as jg,GM as kg,ZLe as lg,Jke as mg,Lu as ng,Ku as og,LH as pg,DH as qg,MH as rg,qu as sg,_De as tg,ADe as ug,Vu as vg,HQ as wg,$De as xg,Mi as yg,GDe as zg,jH as Ag,Mn as Bg,M6 as Cg,Ase as Dg,Fse as Eg,u5e as Fg,m5e as Gg,x5e as Hg,L1 as Ig,VDe as Jg,Yu as Kg,bse as Lg,z6 as Mg,U6 as Ng,j6 as Og,h0 as Pg,Jse as Qg,Qf as Rg,c3 as Sg,p3 as Tg,Ple as Ug,mse as Vg,F3 as Wg,vO as Xg,Zie as Yg,Qie as Zg,nW as _g,ede as $g,ode as ah,Tc as bh,tde as ch,qn as dh,uE as eh,mE as fh,vE as gh,ope as hh,UE as ih,upe as jh,GE as kh,Xh as lh,Q$ as mh,rz as nh,Vpe as oh,Hke as ph,tve as qh,sve as rh,$R as sh,cve as th,pve as uh,kve as vh,vve as wh,Mve as xh,Si as yh,Iq as zh,WPe as Ah,VPe as Bh,pTe as Ch,uTe as Dh,$Te as Eh,AL as Fh,gse as Gh,AMe as Hh,QH as Ih,Re as Jh,um as Kh,Rt as Lh,P5 as Mh,Zi as Nh,T5 as Oh,O5 as Ph,S6e as Qh,b6e as Rh,f4 as Sh,YS as Th,c4 as Uh,A4 as Vh,$We as Wh,Zze as Xh};
|