efficient-storefront-blocks 0.126.4 → 0.126.5
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 +11 -0
- package/dist/chunks/{CustomHtmlCodeWindow-LBWGRQID.js → CustomHtmlCodeWindow-KYIRVDW4.js} +1 -1
- package/dist/chunks/{EditorPreviewCheckout-PWVUKVPS.js → EditorPreviewCheckout-LFT3ZXWA.js} +1 -1
- package/dist/chunks/SiteEditorProvider-WQG3BNYV.js +1 -0
- package/dist/chunks/{chunk-BLDYFJQ6.js → chunk-5LNWW4W3.js} +1 -1
- package/dist/chunks/{chunk-CKAOUQ5E.js → chunk-FP652PBZ.js} +1 -1
- package/dist/chunks/{chunk-JYZ42RYY.js → chunk-INU4IUCT.js} +3 -3
- package/dist/chunks/{chunk-3ZZ3Z6U5.js → chunk-KNFNQXH3.js} +1 -1
- package/dist/chunks/{chunk-SI2DLHOL.js → chunk-LFKRQYYH.js} +1 -1
- package/dist/chunks/{chunk-ADYUBBPE.js → chunk-N64MDCTX.js} +1 -1
- package/dist/chunks/{chunk-VUFE7ACW.js → chunk-WFSVFVZX.js} +1 -1
- package/dist/chunks/{chunk-WR3AVDA5.js → chunk-WZCQINHM.js} +1 -1
- package/dist/chunks/{fitment-data-VOATE5L5.js → fitment-data-GPEMPASJ.js} +1 -1
- package/dist/chunks/{section-css-style-42PP2TPA.js → section-css-style-UICZZ7D5.js} +1 -1
- package/dist/index.js +27 -27
- package/dist/render/app/globals.css +12 -10
- package/dist/render/built-with.json +1 -1
- package/dist/render/components/GridCardTemplate.js +1 -1
- package/dist/routine-index.json +1 -1
- package/dist/value-index.json +1 -1
- package/dist/words.d.ts +3 -2
- package/dist/words.js +1 -1
- package/package.json +2 -2
- package/dist/chunks/SiteEditorProvider-73GAIF7L.js +0 -1
- /package/dist/chunks/{chunk-D5HXXBSX.js → chunk-DIX2FLX7.js} +0 -0
- /package/dist/chunks/{chunk-CKAOUQ5E.js.LEGAL.txt → chunk-FP652PBZ.js.LEGAL.txt} +0 -0
- /package/dist/chunks/{chunk-JYZ42RYY.js.LEGAL.txt → chunk-INU4IUCT.js.LEGAL.txt} +0 -0
- /package/dist/chunks/{chunk-OHEU7JQW.js → chunk-VRXNUWWF.js} +0 -0
- /package/dist/chunks/{chunk-ZV2GXEDX.js → chunk-XSDGCHJH.js} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{$ as af,D as Ok,E as Ek,F as Qd,G as _k,H as Nk,I as Cr,J as Mk,K as Hk,L as Wk,M as at,N as ef,O as Co,P as de,R as of,S as kr,T as tf,X as $k,Y as rf,Z as vr,_ as zk,a as qo,b as Vs,ba as Qv,c as zd,d as yn,e as Ys,f as nk,fa as fP,g as Sn,h as Ud,ha as cP,ia as Rf,ja as MT,ka as HT,r as ol,t as Tk}from"./chunk-BLDYFJQ6.js";import{a as hP,d as gf,e as nt,f as yf,g as Sf,h as kf,l as Ux}from"./chunk-ZV2GXEDX.js";import{$ as In,$a as pk,$c as wv,$e as yP,$j as An,A as wC,Aa as YC,Ab as Ht,Ac as sv,Ad as Hv,Ah as cT,Aj as bT,Ak as Hx,Al as Nf,B as CC,Ba as XC,Bb as wn,Bc as lv,Bd as Wv,Be as Ct,Bh as pT,Bj as Rx,C as ot,Ca as ZC,Cb as el,Cc as $t,Cd as $v,Cf as _P,Cg as VP,D as kC,Da as JC,Dc as Ue,Dd as zv,De as je,Df as Tx,Dg as YP,Dj as En,E as vC,Ea as QC,Ec as Pr,Ed as bx,Ee as kt,Ef as AP,Eg as XP,Ej as wT,F as PC,Fa as ek,Fb as mx,Fc as Ix,Fd as Uv,Fe as Te,Ff as FP,Fg as ZP,G as TC,Ga as Sr,Gb as aa,Gc as iv,Gd as wx,Ge as mP,Gf as BP,Gg as JP,Gk as Bf,H as OC,Ha as ok,Hb as Jd,Hc as dv,Hd as jv,Hf as LP,Hg as _x,Hj as Dx,Hk as Lf,I as EC,Ib as kk,Ic as fv,Id as Gv,Ig as QP,Ij as dl,Ik as Wx,J as _C,Ja as tk,Jb as vk,Jc as pf,Jd as Kv,Jf as RP,Jg as Ax,Jk as LT,Ka as jd,Kb as Pk,Kc as rl,Kd as zt,Ke as Cx,Kg as rr,Kk as pa,L as AC,La as Xs,Lb as nf,Lc as cv,Ld as qv,Lg as Fx,Lj as _n,Lk as RT,M as FC,Ma as Gd,Mb as Gk,Mc as pv,Md as ia,Mg as Pf,Mk as DT,N as BC,Na as sk,Nb as sf,Nc as uv,Nd as Vv,Ne as ll,Ng as eT,Nj as CT,Nk as NT,O as Dd,Ob as hx,Oc as uf,Od as Pn,Og as oT,P as LC,Pb as lf,Pc as mv,Pg as tT,Pk as WT,Q as RC,Qc as xv,Qd as or,Qf as DP,Qg as rT,Qk as $x,Ra as lk,Rc as gx,Rd as Yv,Re as xP,Rf as NP,Rg as aT,Sa as ik,Sc as hv,Sd as sl,Se as kx,Sf as MP,Sk as $T,Ta as Zs,Tc as vn,Td as Xv,Te as IP,Tf as Ox,Tk as zT,Ub as Cn,Ud as da,Uf as HP,Ug as nT,Uk as UT,V as ax,Va as bn,Vc as Iv,Vd as Zv,Vf as WP,Vg as sT,Vj as kT,Vk as jT,Wa as dk,Wc as gv,Wf as Ex,Wj as Nx,Wk as GT,X as Gs,Xa as Kd,Xb as Kk,Xc as yv,Xd as mf,Xj as vT,Xk as KT,Y as Nd,Ya as fk,Yb as qk,Yc as Sv,Yd as Or,Yi as ca,Yj as PT,Z as Fo,Za as Js,Zb as Vk,Zc as bv,Zd as Jv,_ as nx,_a as ck,_b as tl,_c as na,_e as gP,_f as tr,_i as ar,_j as Ff,a as Ao,aa as DC,ab as cx,ad as yx,af as bf,ag as Tn,ai as uT,ak as Fn,b as mn,ba as NC,bb as uk,bd as Cv,bf as SP,bh as Tf,bi as mT,bk as fl,ca as MC,cb as qd,cd as kv,cf as vx,cg as $P,ck as Bn,d as aC,da as HC,db as mk,dd as vv,df as bP,dg as zP,dk as TT,e as ex,ea as WC,eb as px,ed as Pv,ef as wP,eg as vf,f as nC,fa as sx,fd as Tv,fe as eP,ff as CP,fg as Er,fj as _f,g as c,gb as xk,gd as Tr,gf as kP,gg as UP,h as Mt,ha as $C,hb as hk,hd as al,hf as wf,hh as lT,hj as IT,i as hn,ia as Md,id as sa,ie as oP,ig as On,j as Us,jb as Vd,jc as kn,jd as Ov,je as tP,jf as vP,jh as iT,k as Mo,kb as Ik,kc as Wt,ke as rP,kk as OT,l as js,lb as gk,lc as Yk,ld as la,li as xT,lk as ET,mb as yk,mc as Xk,md as nl,mf as Px,mi as hT,ml as zx,n as uC,nb as Sk,nc as Zk,nd as Ev,o as mC,ob as Yd,oc as Jk,od as _v,p as xC,pb as bk,pc as Qk,pe as Ho,q as hC,qc as df,qd as Av,qe as Je,r as IC,rc as ff,rd as Fv,rf as PP,rg as _r,s as gC,sb as wk,sc as ev,sd as Bv,se as xf,sf as TP,sg as jP,sk as Mx,t as yC,tb as br,te as aP,tf as Cf,tg as GP,th as Bx,tj as gT,u as Rd,ub as Xd,uc as ov,ud as Lv,ue as nP,uf as OP,ug as KP,uh as Of,uk as _T,ul as qT,v as yr,va as GC,vb as Zd,vc as tv,vd as Rv,ve as sP,vf as EP,vh as fa,vk as AT,vl as VT,wa as KC,wb as Ck,wc as rv,wd as Dv,we as lP,wh as Ef,wj as yT,wk as FT,wl as Df,x as rx,xa as qC,xb as po,xc as cf,xd as Nv,xe as hf,xj as Af,xl as YT,y as SC,ya as VC,yb as ux,yc as av,yd as Sx,ye as iP,yg as qP,yh as dT,yj as Lx,yk as BT,z as bC,za as dx,zb as Qs,zc as nv,zd as Mv,ze as dP,zh as fT,zj as ST,zl as Ln}from"./chunk-ADYUBBPE.js";import{a as cC,b as Ld,c as pC,g as Uk,h as xx,i as jk}from"./chunk-SI2DLHOL.js";import{$ as xb,$a as Db,$c as wo,$d as hw,$e as Xm,$g as tx,A as ro,Ae as qm,Af as Jm,B as tn,Bb as Ms,Bd as Gm,Be as Sw,Ca as Ie,Cb as Zb,D as Rs,Dd as cw,De as Vm,E as sd,Ed as yd,F as Lt,Fg as Xw,G as rn,Ga as Qo,Gb as hd,Gd as et,Gg as Zw,H as ze,Ha as St,Hc as rw,Hd as No,He as wd,Hf as Lw,Hg as Jw,I as qe,Ia as Pm,Id as Ze,Ie as Cd,Ig as Qw,J as an,Ja as Tm,Jc as Wm,Jd as Dt,Je as bw,Jh as fx,K as ld,Kd as Qt,Ke as kd,Kf as er,Kh as gn,L as ib,La as Om,Lb as Jb,Ld as wt,Le as vd,Lg as eC,Lh as rk,M as db,Ma as Em,Md as fn,Me as ww,Mh as tt,Nd as pw,Ne as Cw,Nh as rt,O as fb,Od as cn,Oe as Pd,Og as oC,Oh as $d,P as id,Pd as uw,Pe as Td,Pg as tC,Ph as ak,Q as cb,Qa as _m,Qb as Id,Qc as aw,Qe as ra,Qf as Rw,Qh as qs,R as Qr,Ra as Ob,Re as kw,Rg as rC,S as pb,Sa as Eb,T as ub,Ta as Ge,Tb as Qb,Td as ta,Tg as sC,Th as Ak,U as Ds,Ua as _b,Ub as ew,Ud as mw,Ug as lC,V as km,Va as ud,Vd as xw,Ve as vw,W as we,Wa as Ab,Wb as ow,Wd as pn,Wf as Dw,Wg as gr,X as K,Xa as Fb,Xc as U,Xd as Ws,Xf as Nw,Xh as Fk,Y as mb,Ya as Bb,Yb as Nm,Yc as re,Yd as $s,Ye as Nt,Yf as Mw,Yg as iC,Za as Lb,Zc as $m,Zd as Km,Ze as zs,Zf as Hw,Zg as ox,_ as dd,_a as Rb,_c as L,_e as Ym,_g as dC,a as on,ab as Nb,ad as Zt,ae as Iw,af as Pw,ah as Bd,b as fo,ba as hb,bb as Mb,bd as nw,be as gw,bf as Tw,bg as Ww,c as to,ca as fd,cb as md,cd as W,cf as Od,cg as $w,ch as fC,ci as Bk,d as Yt,da as Ib,db as xd,dd as gd,de as yw,df as Ow,di as wr,ea as gb,eb as Hb,ed as Do,eg as zw,f as Ko,fa as vm,fb as Wb,fc as Mm,fd as sw,fe as Sd,fg as Uw,fi as Lk,g as Ls,ga as yb,gd as bt,gf as Ew,gg as Ad,gi as Rk,h as eb,ha as Sb,hb as $b,hd as Rt,he as bd,hf as Ed,hg as jw,hi as Dk,i as ob,ia as bb,ib as zb,id as zm,if as _w,ig as Fd,j as tb,jb as Am,jd as hr,jf as Zm,jg as Qm,k as rb,kb as Ub,kd as Jt,kf as Aw,la as wb,lb as jb,ld as lw,lf as Fw,li as ko,ma as Cb,mb as Fm,mf as _d,mg as Gw,na as kb,nb as sn,nd as Fe,nf as un,ng as Kw,o as ab,ob as ea,od as oa,of as xn,pa as vb,pb as Bm,pd as Hs,pf as Ir,pi as il,qb as Lm,qd as ln,qg as qw,qh as lx,ra as Pb,rb as Rm,rd as iw,rg as Vw,rh as Hd,s as nb,sa as cd,sb as Gb,sd as Um,sh as zC,ta as Tb,tb as Kb,td as dn,tf as Bw,th as ix,u as Ne,ua as pd,ub as qb,uc as Hm,ud as jm,ug as Yw,uh as UC,v as sb,vb as Dm,w as nd,wb as Vb,wc as tw,wh as Wd,x as lb,xb as Xt,xh as jC,ya as Ns,yb as Yb,yd as dw,yh as Ks,z as Pe,za as nn,zb as Xb,zd as fw}from"./chunk-3ZZ3Z6U5.js";import{a as z,b as co}from"./chunk-OHEU7JQW.js";import{c as pP,d as uP,e as If}from"./chunk-D5HXXBSX.js";import{jsx as jx,Fragment as Y4,jsxs as X4}from"react/jsx-runtime";import{createContext as Z4,useContext as J4}from"react";var Q4={mirrorHostStyles:!0,css:null,fontHrefs:[]},XT=Z4(Q4);function hne({value:e,children:o}){return jx(XT.Provider,{value:e,children:o})}function cl(){return J4(XT)}function ZT(){let{css:e,fontHrefs:o}=cl();return X4(Y4,{children:[o.map(t=>jx("link",{rel:"stylesheet",href:t},t)),e?jx("style",{"data-sf-canvas-css":"",children:e}):null]})}import{jsx as e6}from"react/jsx-runtime";import{createContext as o6,useContext as t6}from"react";var JT=o6(void 0);function Sne({metadata:e,children:o}){return e6(JT.Provider,{value:e,children:o})}var QT=()=>t6(JT);import{jsx as lo,Fragment as R4,jsxs as Qi}from"react/jsx-runtime";import{useCallback as _s,useEffect as qt,useRef as zae,useState as A4}from"react";import{SettingsSwitch as Uae}from"efficient-easel/panel";import{PagesIcon as jae,StylesIcon as Gae}from"efficient-easel/rail";import{PaletteIcon as Kae}from"efficient-shell/icons/efficient";import{Subtree as qae,TreeRow as D4}from"efficient-easel/tree";import{useEasel as N4}from"efficient-easel/easel";import{toItemSelector as Vae}from"efficient-easel/node-ops";import{useEaselStrings as M4}from"efficient-easel/strings";import{createContext as r6,useContext as a6}from"react";var Gx=r6(!1),Cne=()=>a6(Gx);import{useMemo as n6,useRef as s6}from"react";import{useEaselApi as l6}from"efficient-easel/easel";import{useSectionOps as i6}from"efficient-easel/screen/lib/document/use-section-ops";function Mf(){let e=l6(),o=i6(),t=s6(o);return t.current=o,n6(()=>({getItemById:r=>e.getState().getItemById(r),getSelectorForId:r=>e.getState().getSelectorForId(r),get components(){return e.getState().config.components},replace:(r,a,n)=>t.current.replaceComponent(r,a,n)}),[e])}import{encodePartId as E6}from"efficient-easel/draw";import{insertAt as _6,moveTo as A6,removeAt as F6}from"efficient-easel/fields";import{useSyncExternalStore as w6}from"react";import{isNodeList as e0}from"efficient-easel/data";var o0="Flex";function Rn(e,o){return Nt(e)?typeof e?.[Ko]=="string"?Kx(o?.[Ko]):"":Kx(e?.[Ko])}var Kx=e=>typeof e=="string"?e.trim():"",d6=e=>e.type===ro&&Array.isArray(e.props?.[Vm])&&e.props[Vm].some(o=>Kx(o?.[Ko])!==""),f6=new Intl.NumberFormat("en-US");function c6(e){return/^\d+$/.test(e)?f6.format(Number(e)):e}function Bne(e,o){let t=o?o.find(r=>r.key===e)?.value:nb(Ls).find(r=>r.key===e)?.value;return t===void 0?null:c6(t)}var p6={[Ko]:"any"};function qx(e,o=!1){let t=e.props;if(!t)return{node:e,names:!1};let r=e.type==="Text"&&(Rn(t)!==""||o&&Rn(t,p6)!==""),a=o||d6(e),n=qe(e,l=>ze(l,i=>{let d=qx(i,a);return d.names&&(r=!0),d.node})).props;if(e.type!==o0)return{node:n===t?e:{...e,props:n},names:r};let s=Ne(n);if(r&&!s&&(n={...n,[to]:Ls}),!r&&s===Ls){let{[to]:l,...i}=n;n=i}return{node:n===t?e:{...e,props:n},names:!1}}function t0(e,o,t){for(let r of e){if(r?.props?.id===o)return t;for(let a of rn(r??{})){let n=t0(a,o,r.type===o0?r:t);if(n!==void 0)return n}}}function Lne(e,o){if(!e0(e))return!0;let t=t0(e,o,null);if(t===void 0)return!0;if(t===null)return!1;let r=Ne(t.props);return!r||r===Ls}function r0(e){let o=e?.content;if(!e0(o))return e;let t=o.map(r=>qx(r));return t.every((r,a)=>r.node===o[a])?e:{...e,content:t.map(r=>r.node)}}function a0(e){return qx(e).node}import{decodePartId as C6}from"efficient-easel/draw";function Dn(e,o){let t=tv(e);return t?.control==="textList"?o.rowKey===(t.itemKey??"text")?AT(t,o.index):null:rv(e)?.[o.rowKey]??null}function Hf(e,o,t){let r=e.node.props,{key:a,row:n}=Wt(e.propKey),s=n?nv(r,a,n,e.kind,o):ov(r,a,e.kind,o);return s?(t(e.zone,e.index,{...e.node,props:s}),!0):!1}import{readHidable as l0}from"efficient-easel/draw";import{parseOption as u6}from"efficient-shell/format";var Vx=e=>String(e+1).padStart(2,"0"),m6=[{label:"01 \xB7",value:"two-digit"},{label:"1.",value:"plain"}],Yx="two-digit",n0=e=>u6(m6,Yx,e),Wf=(e,o)=>e==="plain"?`${o+1}.`:Vx(o);var Jx="Contents",Xx="Flex",s0="Text",x6="numberForm",h6="_contentsEntries",I6="_kickerNumber",i0="data-sf-kicker-number",g6=e=>l0(e).text.trim(),d0=e=>da(e?.anchor),Zx=e=>String(e.props?.id??""),y6=e=>!l0(e.props?.text).hidden&&!Rn(e.props)&&!Nt(e.props),pl=e=>rn(e);function f0(e){for(let o of pl(e))for(let t of o){if(or(t.props??{}))continue;if(t.type===s0&&y6(t))return t;if(t.type===s0)continue;let r=f0(t);if(r)return r}}function c0(e){return pl(e).some(o=>o.some(t=>t&&!or(t.props??{})&&(t.type===Jx||c0(t))))}var p0=e=>e.type===Xx&&Tn(Xx,e.props?.direction)==="row";function u0(e){return pl(e).some(o=>o.some(t=>t&&!or(t.props??{})&&(t.type===Jx||!p0(t)&&u0(t))))}function S6(e){let o=[],t=(r,a)=>{for(let n of r){if(!n||or(n.props??{}))continue;if(n.type===Jx){a.open={contents:n,sections:a.waiting??[]},a.waiting=null,o.push(a.open);continue}if(p0(n)&&u0(n)){let l={inRow:!0,open:null,waiting:[]};for(let i of pl(n))t(i,l);a.inRow||(a.open=null);continue}let s=a.open?.sections??a.waiting;if(n.type===Xx&&d0(n.props)&&s&&!c0(n)){s.push({box:n,kicker:f0(n)});continue}for(let l of pl(n))t(l,a)}};return t(e,{inRow:!1,open:null,waiting:null}),o}function b6(e){return e.map(o=>({label:o.kicker?nn(g6(o.kicker.props?.text)):"",anchor:d0(o.box.props)}))}function Qx(e){let o=e?.length?S6(e):[];if(!o.length)return null;let t=new Map,r=new Map;for(let a of o){let n=Zx(a.contents);n&&t.set(n,b6(a.sections));let s=n0(a.contents.props?.[x6]);a.sections.forEach((l,i)=>{let d=l.kicker?Zx(l.kicker):"";d&&r.set(d,Wf(s,i))})}return{entries:t,numbers:r}}var Qne=e=>e.endsWith(".")?`${e} `:`${e} \xB7 `;function m0(e){let o=e;if(!o?.content?.length)return e;let t=Qx(o.content);if(!t)return e;let{entries:r,numbers:a}=t,n=s=>{let l=qe(s,h=>ze(h,n)),i=l.props??{},d=l!==s,f=Zx(s),x=f?r.get(f):void 0;x&&(i={...i,[h6]:x},d=!0);let u=f?a.get(f):void 0;return u&&(i={...i,[I6]:u},d=!0),d?{...s,props:i}:s};return{...o,content:o.content.map(n)}}var k6=`[${i0}]`,v6=["bold","italic","underline","strike","link","sup","sub"],P6=["bullet","number"];function th(e,o){return e?[...v6,...o?P6:[]]:[]}function x0(e,o){let t=C6(e);if(!t?.propKey)return null;let{nodeId:r,propKey:a}=t,n=o.getItemById(r),s=o.getSelectorForId(r);if(!n||!s)return null;let{key:l,row:i}=Wt(a),d=o.components[n.type]?.fields?.[l],f=i?Dn(d,i):d,x=df(f);if(!x)return null;let u=n.props??{};if(uT(u)!==null||!i&&Od(n.type,u,l)||n.type==="Text"&&l==="text"&&Rn(u)||i&&!(Array.isArray(u[l])&&i.index<u[l].length))return null;let h=i?cf(u[l],i):u[l];return{node:n,selector:s,propKey:a,kind:x,stored:h,offPage:_f(f),panelOnly:Qk(f)}}function $f(e,o){let t=x0(e,o);if(!t)return null;let{text:r,hidden:a}=ca(t.stored);if(!xv({offPage:t.offPage,hidden:!!a,panelOnly:t.panelOnly}))return null;let n=ff(t.kind);return{partId:e,value:r,rules:cd,multiline:n,skip:k6,offered:th(t.kind!=="plainText",n),write:s=>{let l=x0(e,o);l&&Hf({node:l.node,propKey:l.propKey,kind:l.kind,zone:l.selector.zone,index:l.selector.index},s,o.replace)}}}function rh(e,o,t){return e?.isConnected&&e.getAttribute(Ue)===t?e:o?.querySelector(`[${Ue}="${zf(t)}"]`)??null}function zf(e){return e.replace(/["\\]/g,"\\$&")}function h0(e){let o=e.activeElement;return o?o.tagName==="IFRAME"||!!o.closest(".es-canvas"):!1}var eh=null,oh=new Set;function T6(){return eh}function ah(e){if(e!==eh){eh=e;for(let o of oh)o()}}function O6(e){return oh.add(e),()=>{oh.delete(e)}}function I0(){return w6(O6,T6,()=>null)}function g0(e,o){if(e.outer)return null;let t=o.getItemById(e.ownerId);if(!t)return null;let r=ww(t.type);return!r||Ne(t.props)?null:{node:t,rows:r}}function B6(e,o){let t=g0(e,o),r=o.getItemById(e.nodeId);if(!t||!r)return null;let a=Ow(r.type,r.props,e.key);if(!a)return null;let n=t.node.props[t.rows];return!Array.isArray(n)||e.index<0||e.index>=n.length?null:E6(e.ownerId,kn(t.rows,{index:e.index,rowKey:a}))}function Uf(e,o){let t=B6(e,o);return t?$f(t,o):null}function y0(e,o){return Uf(e,o)?.value}function S0(e,o){let t=Uf(e,o);return t?(t.write(e.text),!0):!1}function b0(e,o){let t=g0(e,o),r=t&&o.getSelectorForId(e.ownerId);if(!t||!r)return!1;let a=t.node.props,n=a[t.rows],s=e.index;if(!Array.isArray(n)||s<0||s>=n.length)return!1;let l;switch(e.action){case"addAfter":{let i=o.components[t.node.type]?.fields?.[t.rows];l=_6(n,s+1,{...i?.defaultItemProps??{}});break}case"moveEarlier":case"moveLater":{let i=e.action==="moveEarlier"?s-1:s+1;if(i<0||i>=n.length)return!1;l=A6(n,s,i);break}case"delete":l=F6(n,s);break;default:return!1}return o.replace(r.zone,r.index,{...t.node,props:{...a,[t.rows]:l}}),!0}import{jsx as ke,Fragment as tJ,jsxs as Mu}from"react/jsx-runtime";import{Fragment as rJ,useEffect as eH,useMemo as oH,useRef as aJ,useState as $a}from"react";import{useScreenDocument as sH}from"efficient-easel/screen/components/ScreenDocumentContext";import{UiIcon as Ny}from"efficient-easel/draw/client";import nJ from"efficient-easel/screen/components/SidePanelHead";import{InspectorIconButton as sJ}from"efficient-easel/chrome";import{Input as lJ,LoadingSpinner as iJ,PopupMenu as dJ,PopupMenuItem as tH,toast as rH}from"efficient-shell/ui";import{LayersTree as fJ,TreeGroupLabel as cJ,TreeRow as aH,TreeRowAction as Hu}from"efficient-easel/tree";import{AddIcon as pJ,DuplicateIcon as uJ,PageIcon as mJ,SettingsIcon as xJ}from"efficient-easel/icons";import{PagesIcon as hJ}from"efficient-easel/rail";import{useEaselHost as IJ}from"efficient-easel/screen/lib/host";import{useEaselSession as My}from"efficient-easel/screen/lib/session-context";import{useCallback as jf,useEffect as L6,useSyncExternalStore as R6}from"react";import{useScreenDocument as v0}from"efficient-easel/screen/components/ScreenDocumentContext";var w0=new WeakMap;function ul(e){let o=w0.get(e);return o||(o={rows:null,loading:null,listeners:new Set},w0.set(e,o)),o}function nh(e,o){e.rows=o;for(let t of e.listeners)t()}var Gf=new Set;function Kf(e,o){o?Gf.add(e):Gf.delete(e)}function C0(e){let o=ul(e),t=e.listPages().then(r=>nh(o,Gf.size?r.filter(a=>!Gf.has(a.id)):r),()=>nh(o,[])).finally(()=>{o.loading===t&&(o.loading=null)});return o.loading=t,t}var k0=()=>null,D6=()=>()=>{};function ml(){let{adapter:e,ready:o}=v0(),t=jf(l=>{let{listeners:i}=ul(e);return i.add(l),()=>i.delete(l)},[e]),r=jf(()=>ul(e).rows,[e]),a=R6(o?t:D6,o?r:k0,k0);L6(()=>{if(!o)return;let l=ul(e);l.rows===null&&!l.loading&&C0(e)},[e,o]);let n=jf(()=>o?C0(e):Promise.resolve(),[e,o]),s=jf(l=>nh(ul(e),l),[e]);return{rows:a,reload:n,setRows:s,getRows:r}}function N6(e,o){return e?.find(t=>t.slug===o)?.label?.trim()||`/${o}`}function P0(){let{currentSlug:e}=v0(),{rows:o}=ml();return N6(o,e)}import{canDuplicatePage as gJ,DuplicatePageDialog as yJ}from"efficient-easel/page-copy";import{jsx as To,jsxs as KM}from"react/jsx-runtime";import{useEffect as HZ,useId as WZ,useMemo as $Z,useRef as zZ,useState as Ly}from"react";import{useScreenDocument as UZ}from"efficient-easel/screen/components/ScreenDocumentContext";import{useEaselSession as jZ}from"efficient-easel/screen/lib/session-context";import{uniqueSlug as qM}from"efficient-easel/page-copy";import{AddIcon as GZ}from"efficient-easel/icons";import{Button as KZ,Dialog as qZ,EmptyState as VZ,LoadingSpinner as YZ,Paragraph as XZ,SidebarLayout as ZZ,SidebarNavItem as Ry,Title as JZ,toast as VM}from"efficient-shell/ui";import{jsx as Tt,jsxs as cR}from"react/jsx-runtime";import{useEffect as U7,useState as Og}from"react";import{CanvasFrame as j7}from"efficient-easel/easel";import{Button as G7,Card as K7,FitFrame as q7,Text as V7}from"efficient-shell/ui";import{jsx as A0,Fragment as Y6,jsxs as X6}from"react/jsx-runtime";import{useEffect as F0,useLayoutEffect as Z6}from"react";var qf="data-theme",T0="light";function M6(e){return e.getAttribute(qf)===T0?"light":"dark"}function H6(e,o){return M6(e)===o?!1:(o==="light"?e.setAttribute(qf,T0):e.removeAttribute(qf),!0)}function W6(e){return Ux(e).getItem(Jm)}function Ose(e,o){Ux(e).setItem(Jm,o)}function $6(e,o,t=new Date().getHours()){return Lw({mode:o.mode,override:W6(e),switchShown:o.switchShown,hour:t})}function O0(e,o){let t=e.documentElement;if(!t)return()=>{};let r=()=>H6(t,$6(e,o));r();let a=e.defaultView?.MutationObserver;if(!a)return()=>{};let n=new a(r);return n.observe(t,{attributes:!0,attributeFilter:[qf]}),()=>n.disconnect()}var z6="style";function U6(e,o){let t=Fd(o),r=!1;for(let a of jw){let n=t[a]??"";e.style.getPropertyValue(a)!==n&&(n?e.style.setProperty(a,n):e.style.removeProperty(a),r=!0)}return r}function E0(e,o){let t=e.body;if(!t)return()=>{};let r=()=>U6(t,o);r();let a=e.defaultView?.MutationObserver;if(!a)return()=>{};let n=new a(r);return n.observe(t,{attributes:!0,attributeFilter:[z6]}),()=>n.disconnect()}import{VIEW_DESKTOP_MIN as j6,VIEW_TABLET_MIN as G6}from"efficient-easel/screen/lib/content/view-tiers";var nr={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"},Vo=nr,K6=e=>e.flatMap(o=>[`[${o}] p`,`[${o}] li`]).join(","),q6=String.raw`(function (doc) {
|
|
1
|
+
import{$ as af,D as Ok,E as Ek,F as Qd,G as _k,H as Nk,I as Cr,J as Mk,K as Hk,L as Wk,M as at,N as ef,O as Co,P as de,R as of,S as kr,T as tf,X as $k,Y as rf,Z as vr,_ as zk,a as qo,b as Vs,ba as Qv,c as zd,d as yn,e as Ys,f as nk,fa as fP,g as Sn,h as Ud,ha as cP,ia as Rf,ja as MT,ka as HT,r as ol,t as Tk}from"./chunk-5LNWW4W3.js";import{a as hP,d as gf,e as nt,f as yf,g as Sf,h as kf,l as Ux}from"./chunk-XSDGCHJH.js";import{$ as In,$a as pk,$c as wv,$e as yP,$j as An,A as wC,Aa as YC,Ab as Ht,Ac as sv,Ad as Hv,Ah as cT,Aj as bT,Ak as Hx,Al as Nf,B as CC,Ba as XC,Bb as wn,Bc as lv,Bd as Wv,Be as Ct,Bh as pT,Bj as Rx,C as ot,Ca as ZC,Cb as el,Cc as $t,Cd as $v,Cf as _P,Cg as VP,D as kC,Da as JC,Dc as Ue,Dd as zv,De as je,Df as Tx,Dg as YP,Dj as En,E as vC,Ea as QC,Ec as Pr,Ed as bx,Ee as kt,Ef as AP,Eg as XP,Ej as wT,F as PC,Fa as ek,Fb as mx,Fc as Ix,Fd as Uv,Fe as Te,Ff as FP,Fg as ZP,G as TC,Ga as Sr,Gb as aa,Gc as iv,Gd as wx,Ge as mP,Gf as BP,Gg as JP,Gk as Bf,H as OC,Ha as ok,Hb as Jd,Hc as dv,Hd as jv,Hf as LP,Hg as _x,Hj as Dx,Hk as Lf,I as EC,Ib as kk,Ic as fv,Id as Gv,Ig as QP,Ij as dl,Ik as Wx,J as _C,Ja as tk,Jb as vk,Jc as pf,Jd as Kv,Jf as RP,Jg as Ax,Jk as LT,Ka as jd,Kb as Pk,Kc as rl,Kd as zt,Ke as Cx,Kg as rr,Kk as pa,L as AC,La as Xs,Lb as nf,Lc as cv,Ld as qv,Lg as Fx,Lj as _n,Lk as RT,M as FC,Ma as Gd,Mb as Gk,Mc as pv,Md as ia,Mg as Pf,Mk as DT,N as BC,Na as sk,Nb as sf,Nc as uv,Nd as Vv,Ne as ll,Ng as eT,Nj as CT,Nk as NT,O as Dd,Ob as hx,Oc as uf,Od as Pn,Og as oT,P as LC,Pb as lf,Pc as mv,Pg as tT,Pk as WT,Q as RC,Qc as xv,Qd as or,Qf as DP,Qg as rT,Qk as $x,Ra as lk,Rc as gx,Rd as Yv,Re as xP,Rf as NP,Rg as aT,Sa as ik,Sc as hv,Sd as sl,Se as kx,Sf as MP,Sk as $T,Ta as Zs,Tc as vn,Td as Xv,Te as IP,Tf as Ox,Tk as zT,Ub as Cn,Ud as da,Uf as HP,Ug as nT,Uk as UT,V as ax,Va as bn,Vc as Iv,Vd as Zv,Vf as WP,Vg as sT,Vj as kT,Vk as jT,Wa as dk,Wc as gv,Wf as Ex,Wj as Nx,Wk as GT,X as Gs,Xa as Kd,Xb as Kk,Xc as yv,Xd as mf,Xj as vT,Xk as KT,Y as Nd,Ya as fk,Yb as qk,Yc as Sv,Yd as Or,Yi as ca,Yj as PT,Z as Fo,Za as Js,Zb as Vk,Zc as bv,Zd as Jv,_ as nx,_a as ck,_b as tl,_c as na,_e as gP,_f as tr,_i as ar,_j as Ff,a as Ao,aa as DC,ab as cx,ad as yx,af as bf,ag as Tn,ai as uT,ak as Fn,b as mn,ba as NC,bb as uk,bd as Cv,bf as SP,bh as Tf,bi as mT,bk as fl,ca as MC,cb as qd,cd as kv,cf as vx,cg as $P,ck as Bn,d as aC,da as HC,db as mk,dd as vv,df as bP,dg as zP,dk as TT,e as ex,ea as WC,eb as px,ed as Pv,ef as wP,eg as vf,f as nC,fa as sx,fd as Tv,fe as eP,ff as CP,fg as Er,fj as _f,g as c,gb as xk,gd as Tr,gf as kP,gg as UP,h as Mt,ha as $C,hb as hk,hd as al,hf as wf,hh as lT,hj as IT,i as hn,ia as Md,id as sa,ie as oP,ig as On,j as Us,jb as Vd,jc as kn,jd as Ov,je as tP,jf as vP,jh as iT,k as Mo,kb as Ik,kc as Wt,ke as rP,kk as OT,l as js,lb as gk,lc as Yk,ld as la,li as xT,lk as ET,mb as yk,mc as Xk,md as nl,mf as Px,mi as hT,ml as zx,n as uC,nb as Sk,nc as Zk,nd as Ev,o as mC,ob as Yd,oc as Jk,od as _v,p as xC,pb as bk,pc as Qk,pe as Ho,q as hC,qc as df,qd as Av,qe as Je,r as IC,rc as ff,rd as Fv,rf as PP,rg as _r,s as gC,sb as wk,sc as ev,sd as Bv,se as xf,sf as TP,sg as jP,sk as Mx,t as yC,tb as br,te as aP,tf as Cf,tg as GP,th as Bx,tj as gT,u as Rd,ub as Xd,uc as ov,ud as Lv,ue as nP,uf as OP,ug as KP,uh as Of,uk as _T,ul as qT,v as yr,va as GC,vb as Zd,vc as tv,vd as Rv,ve as sP,vf as EP,vh as fa,vk as AT,vl as VT,wa as KC,wb as Ck,wc as rv,wd as Dv,we as lP,wh as Ef,wj as yT,wk as FT,wl as Df,x as rx,xa as qC,xb as po,xc as cf,xd as Nv,xe as hf,xj as Af,xl as YT,y as SC,ya as VC,yb as ux,yc as av,yd as Sx,ye as iP,yg as qP,yh as dT,yj as Lx,yk as BT,z as bC,za as dx,zb as Qs,zc as nv,zd as Mv,ze as dP,zh as fT,zj as ST,zl as Ln}from"./chunk-N64MDCTX.js";import{a as cC,b as Ld,c as pC,g as Uk,h as xx,i as jk}from"./chunk-LFKRQYYH.js";import{$ as xb,$a as Db,$c as wo,$d as hw,$e as Xm,$g as tx,A as ro,Ae as qm,Af as Jm,B as tn,Bb as Ms,Bd as Gm,Be as Sw,Ca as Ie,Cb as Zb,D as Rs,Dd as cw,De as Vm,E as sd,Ed as yd,F as Lt,Fg as Xw,G as rn,Ga as Qo,Gb as hd,Gd as et,Gg as Zw,H as ze,Ha as St,Hc as rw,Hd as No,He as wd,Hf as Lw,Hg as Jw,I as qe,Ia as Pm,Id as Ze,Ie as Cd,Ig as Qw,J as an,Ja as Tm,Jc as Wm,Jd as Dt,Je as bw,Jh as fx,K as ld,Kd as Qt,Ke as kd,Kf as er,Kh as gn,L as ib,La as Om,Lb as Jb,Ld as wt,Le as vd,Lg as eC,Lh as rk,M as db,Ma as Em,Md as fn,Me as ww,Mh as tt,Nd as pw,Ne as Cw,Nh as rt,O as fb,Od as cn,Oe as Pd,Og as oC,Oh as $d,P as id,Pd as uw,Pe as Td,Pg as tC,Ph as ak,Q as cb,Qa as _m,Qb as Id,Qc as aw,Qe as ra,Qf as Rw,Qh as qs,R as Qr,Ra as Ob,Re as kw,Rg as rC,S as pb,Sa as Eb,T as ub,Ta as Ge,Tb as Qb,Td as ta,Tg as sC,Th as Ak,U as Ds,Ua as _b,Ub as ew,Ud as mw,Ug as lC,V as km,Va as ud,Vd as xw,Ve as vw,W as we,Wa as Ab,Wb as ow,Wd as pn,Wf as Dw,Wg as gr,X as K,Xa as Fb,Xc as U,Xd as Ws,Xf as Nw,Xh as Fk,Y as mb,Ya as Bb,Yb as Nm,Yc as re,Yd as $s,Ye as Nt,Yf as Mw,Yg as iC,Za as Lb,Zc as $m,Zd as Km,Ze as zs,Zf as Hw,Zg as ox,_ as dd,_a as Rb,_c as L,_e as Ym,_g as dC,a as on,ab as Nb,ad as Zt,ae as Iw,af as Pw,ah as Bd,b as fo,ba as hb,bb as Mb,bd as nw,be as gw,bf as Tw,bg as Ww,c as to,ca as fd,cb as md,cd as W,cf as Od,cg as $w,ch as fC,ci as Bk,d as Yt,da as Ib,db as xd,dd as gd,de as yw,df as Ow,di as wr,ea as gb,eb as Hb,ed as Do,eg as zw,f as Ko,fa as vm,fb as Wb,fc as Mm,fd as sw,fe as Sd,fg as Uw,fi as Lk,g as Ls,ga as yb,gd as bt,gf as Ew,gg as Ad,gi as Rk,h as eb,ha as Sb,hb as $b,hd as Rt,he as bd,hf as Ed,hg as jw,hi as Dk,i as ob,ia as bb,ib as zb,id as zm,if as _w,ig as Fd,j as tb,jb as Am,jd as hr,jf as Zm,jg as Qm,k as rb,kb as Ub,kd as Jt,kf as Aw,la as wb,lb as jb,ld as lw,lf as Fw,li as ko,ma as Cb,mb as Fm,mf as _d,mg as Gw,na as kb,nb as sn,nd as Fe,nf as un,ng as Kw,o as ab,ob as ea,od as oa,of as xn,pa as vb,pb as Bm,pd as Hs,pf as Ir,pi as il,qb as Lm,qd as ln,qg as qw,qh as lx,ra as Pb,rb as Rm,rd as iw,rg as Vw,rh as Hd,s as nb,sa as cd,sb as Gb,sd as Um,sh as zC,ta as Tb,tb as Kb,td as dn,tf as Bw,th as ix,u as Ne,ua as pd,ub as qb,uc as Hm,ud as jm,ug as Yw,uh as UC,v as sb,vb as Dm,w as nd,wb as Vb,wc as tw,wh as Wd,x as lb,xb as Xt,xh as jC,ya as Ns,yb as Yb,yd as dw,yh as Ks,z as Pe,za as nn,zb as Xb,zd as fw}from"./chunk-KNFNQXH3.js";import{a as z,b as co}from"./chunk-VRXNUWWF.js";import{c as pP,d as uP,e as If}from"./chunk-DIX2FLX7.js";import{jsx as jx,Fragment as Y4,jsxs as X4}from"react/jsx-runtime";import{createContext as Z4,useContext as J4}from"react";var Q4={mirrorHostStyles:!0,css:null,fontHrefs:[]},XT=Z4(Q4);function hne({value:e,children:o}){return jx(XT.Provider,{value:e,children:o})}function cl(){return J4(XT)}function ZT(){let{css:e,fontHrefs:o}=cl();return X4(Y4,{children:[o.map(t=>jx("link",{rel:"stylesheet",href:t},t)),e?jx("style",{"data-sf-canvas-css":"",children:e}):null]})}import{jsx as e6}from"react/jsx-runtime";import{createContext as o6,useContext as t6}from"react";var JT=o6(void 0);function Sne({metadata:e,children:o}){return e6(JT.Provider,{value:e,children:o})}var QT=()=>t6(JT);import{jsx as lo,Fragment as R4,jsxs as Qi}from"react/jsx-runtime";import{useCallback as _s,useEffect as qt,useRef as zae,useState as A4}from"react";import{SettingsSwitch as Uae}from"efficient-easel/panel";import{PagesIcon as jae,StylesIcon as Gae}from"efficient-easel/rail";import{PaletteIcon as Kae}from"efficient-shell/icons/efficient";import{Subtree as qae,TreeRow as D4}from"efficient-easel/tree";import{useEasel as N4}from"efficient-easel/easel";import{toItemSelector as Vae}from"efficient-easel/node-ops";import{useEaselStrings as M4}from"efficient-easel/strings";import{createContext as r6,useContext as a6}from"react";var Gx=r6(!1),Cne=()=>a6(Gx);import{useMemo as n6,useRef as s6}from"react";import{useEaselApi as l6}from"efficient-easel/easel";import{useSectionOps as i6}from"efficient-easel/screen/lib/document/use-section-ops";function Mf(){let e=l6(),o=i6(),t=s6(o);return t.current=o,n6(()=>({getItemById:r=>e.getState().getItemById(r),getSelectorForId:r=>e.getState().getSelectorForId(r),get components(){return e.getState().config.components},replace:(r,a,n)=>t.current.replaceComponent(r,a,n)}),[e])}import{encodePartId as E6}from"efficient-easel/draw";import{insertAt as _6,moveTo as A6,removeAt as F6}from"efficient-easel/fields";import{useSyncExternalStore as w6}from"react";import{isNodeList as e0}from"efficient-easel/data";var o0="Flex";function Rn(e,o){return Nt(e)?typeof e?.[Ko]=="string"?Kx(o?.[Ko]):"":Kx(e?.[Ko])}var Kx=e=>typeof e=="string"?e.trim():"",d6=e=>e.type===ro&&Array.isArray(e.props?.[Vm])&&e.props[Vm].some(o=>Kx(o?.[Ko])!==""),f6=new Intl.NumberFormat("en-US");function c6(e){return/^\d+$/.test(e)?f6.format(Number(e)):e}function Bne(e,o){let t=o?o.find(r=>r.key===e)?.value:nb(Ls).find(r=>r.key===e)?.value;return t===void 0?null:c6(t)}var p6={[Ko]:"any"};function qx(e,o=!1){let t=e.props;if(!t)return{node:e,names:!1};let r=e.type==="Text"&&(Rn(t)!==""||o&&Rn(t,p6)!==""),a=o||d6(e),n=qe(e,l=>ze(l,i=>{let d=qx(i,a);return d.names&&(r=!0),d.node})).props;if(e.type!==o0)return{node:n===t?e:{...e,props:n},names:r};let s=Ne(n);if(r&&!s&&(n={...n,[to]:Ls}),!r&&s===Ls){let{[to]:l,...i}=n;n=i}return{node:n===t?e:{...e,props:n},names:!1}}function t0(e,o,t){for(let r of e){if(r?.props?.id===o)return t;for(let a of rn(r??{})){let n=t0(a,o,r.type===o0?r:t);if(n!==void 0)return n}}}function Lne(e,o){if(!e0(e))return!0;let t=t0(e,o,null);if(t===void 0)return!0;if(t===null)return!1;let r=Ne(t.props);return!r||r===Ls}function r0(e){let o=e?.content;if(!e0(o))return e;let t=o.map(r=>qx(r));return t.every((r,a)=>r.node===o[a])?e:{...e,content:t.map(r=>r.node)}}function a0(e){return qx(e).node}import{decodePartId as C6}from"efficient-easel/draw";function Dn(e,o){let t=tv(e);return t?.control==="textList"?o.rowKey===(t.itemKey??"text")?AT(t,o.index):null:rv(e)?.[o.rowKey]??null}function Hf(e,o,t){let r=e.node.props,{key:a,row:n}=Wt(e.propKey),s=n?nv(r,a,n,e.kind,o):ov(r,a,e.kind,o);return s?(t(e.zone,e.index,{...e.node,props:s}),!0):!1}import{readHidable as l0}from"efficient-easel/draw";import{parseOption as u6}from"efficient-shell/format";var Vx=e=>String(e+1).padStart(2,"0"),m6=[{label:"01 \xB7",value:"two-digit"},{label:"1.",value:"plain"}],Yx="two-digit",n0=e=>u6(m6,Yx,e),Wf=(e,o)=>e==="plain"?`${o+1}.`:Vx(o);var Jx="Contents",Xx="Flex",s0="Text",x6="numberForm",h6="_contentsEntries",I6="_kickerNumber",i0="data-sf-kicker-number",g6=e=>l0(e).text.trim(),d0=e=>da(e?.anchor),Zx=e=>String(e.props?.id??""),y6=e=>!l0(e.props?.text).hidden&&!Rn(e.props)&&!Nt(e.props),pl=e=>rn(e);function f0(e){for(let o of pl(e))for(let t of o){if(or(t.props??{}))continue;if(t.type===s0&&y6(t))return t;if(t.type===s0)continue;let r=f0(t);if(r)return r}}function c0(e){return pl(e).some(o=>o.some(t=>t&&!or(t.props??{})&&(t.type===Jx||c0(t))))}var p0=e=>e.type===Xx&&Tn(Xx,e.props?.direction)==="row";function u0(e){return pl(e).some(o=>o.some(t=>t&&!or(t.props??{})&&(t.type===Jx||!p0(t)&&u0(t))))}function S6(e){let o=[],t=(r,a)=>{for(let n of r){if(!n||or(n.props??{}))continue;if(n.type===Jx){a.open={contents:n,sections:a.waiting??[]},a.waiting=null,o.push(a.open);continue}if(p0(n)&&u0(n)){let l={inRow:!0,open:null,waiting:[]};for(let i of pl(n))t(i,l);a.inRow||(a.open=null);continue}let s=a.open?.sections??a.waiting;if(n.type===Xx&&d0(n.props)&&s&&!c0(n)){s.push({box:n,kicker:f0(n)});continue}for(let l of pl(n))t(l,a)}};return t(e,{inRow:!1,open:null,waiting:null}),o}function b6(e){return e.map(o=>({label:o.kicker?nn(g6(o.kicker.props?.text)):"",anchor:d0(o.box.props)}))}function Qx(e){let o=e?.length?S6(e):[];if(!o.length)return null;let t=new Map,r=new Map;for(let a of o){let n=Zx(a.contents);n&&t.set(n,b6(a.sections));let s=n0(a.contents.props?.[x6]);a.sections.forEach((l,i)=>{let d=l.kicker?Zx(l.kicker):"";d&&r.set(d,Wf(s,i))})}return{entries:t,numbers:r}}var Qne=e=>e.endsWith(".")?`${e} `:`${e} \xB7 `;function m0(e){let o=e;if(!o?.content?.length)return e;let t=Qx(o.content);if(!t)return e;let{entries:r,numbers:a}=t,n=s=>{let l=qe(s,h=>ze(h,n)),i=l.props??{},d=l!==s,f=Zx(s),x=f?r.get(f):void 0;x&&(i={...i,[h6]:x},d=!0);let u=f?a.get(f):void 0;return u&&(i={...i,[I6]:u},d=!0),d?{...s,props:i}:s};return{...o,content:o.content.map(n)}}var k6=`[${i0}]`,v6=["bold","italic","underline","strike","link","sup","sub"],P6=["bullet","number"];function th(e,o){return e?[...v6,...o?P6:[]]:[]}function x0(e,o){let t=C6(e);if(!t?.propKey)return null;let{nodeId:r,propKey:a}=t,n=o.getItemById(r),s=o.getSelectorForId(r);if(!n||!s)return null;let{key:l,row:i}=Wt(a),d=o.components[n.type]?.fields?.[l],f=i?Dn(d,i):d,x=df(f);if(!x)return null;let u=n.props??{};if(uT(u)!==null||!i&&Od(n.type,u,l)||n.type==="Text"&&l==="text"&&Rn(u)||i&&!(Array.isArray(u[l])&&i.index<u[l].length))return null;let h=i?cf(u[l],i):u[l];return{node:n,selector:s,propKey:a,kind:x,stored:h,offPage:_f(f),panelOnly:Qk(f)}}function $f(e,o){let t=x0(e,o);if(!t)return null;let{text:r,hidden:a}=ca(t.stored);if(!xv({offPage:t.offPage,hidden:!!a,panelOnly:t.panelOnly}))return null;let n=ff(t.kind);return{partId:e,value:r,rules:cd,multiline:n,skip:k6,offered:th(t.kind!=="plainText",n),write:s=>{let l=x0(e,o);l&&Hf({node:l.node,propKey:l.propKey,kind:l.kind,zone:l.selector.zone,index:l.selector.index},s,o.replace)}}}function rh(e,o,t){return e?.isConnected&&e.getAttribute(Ue)===t?e:o?.querySelector(`[${Ue}="${zf(t)}"]`)??null}function zf(e){return e.replace(/["\\]/g,"\\$&")}function h0(e){let o=e.activeElement;return o?o.tagName==="IFRAME"||!!o.closest(".es-canvas"):!1}var eh=null,oh=new Set;function T6(){return eh}function ah(e){if(e!==eh){eh=e;for(let o of oh)o()}}function O6(e){return oh.add(e),()=>{oh.delete(e)}}function I0(){return w6(O6,T6,()=>null)}function g0(e,o){if(e.outer)return null;let t=o.getItemById(e.ownerId);if(!t)return null;let r=ww(t.type);return!r||Ne(t.props)?null:{node:t,rows:r}}function B6(e,o){let t=g0(e,o),r=o.getItemById(e.nodeId);if(!t||!r)return null;let a=Ow(r.type,r.props,e.key);if(!a)return null;let n=t.node.props[t.rows];return!Array.isArray(n)||e.index<0||e.index>=n.length?null:E6(e.ownerId,kn(t.rows,{index:e.index,rowKey:a}))}function Uf(e,o){let t=B6(e,o);return t?$f(t,o):null}function y0(e,o){return Uf(e,o)?.value}function S0(e,o){let t=Uf(e,o);return t?(t.write(e.text),!0):!1}function b0(e,o){let t=g0(e,o),r=t&&o.getSelectorForId(e.ownerId);if(!t||!r)return!1;let a=t.node.props,n=a[t.rows],s=e.index;if(!Array.isArray(n)||s<0||s>=n.length)return!1;let l;switch(e.action){case"addAfter":{let i=o.components[t.node.type]?.fields?.[t.rows];l=_6(n,s+1,{...i?.defaultItemProps??{}});break}case"moveEarlier":case"moveLater":{let i=e.action==="moveEarlier"?s-1:s+1;if(i<0||i>=n.length)return!1;l=A6(n,s,i);break}case"delete":l=F6(n,s);break;default:return!1}return o.replace(r.zone,r.index,{...t.node,props:{...a,[t.rows]:l}}),!0}import{jsx as ke,Fragment as tJ,jsxs as Mu}from"react/jsx-runtime";import{Fragment as rJ,useEffect as eH,useMemo as oH,useRef as aJ,useState as $a}from"react";import{useScreenDocument as sH}from"efficient-easel/screen/components/ScreenDocumentContext";import{UiIcon as Ny}from"efficient-easel/draw/client";import nJ from"efficient-easel/screen/components/SidePanelHead";import{InspectorIconButton as sJ}from"efficient-easel/chrome";import{Input as lJ,LoadingSpinner as iJ,PopupMenu as dJ,PopupMenuItem as tH,toast as rH}from"efficient-shell/ui";import{LayersTree as fJ,TreeGroupLabel as cJ,TreeRow as aH,TreeRowAction as Hu}from"efficient-easel/tree";import{AddIcon as pJ,DuplicateIcon as uJ,PageIcon as mJ,SettingsIcon as xJ}from"efficient-easel/icons";import{PagesIcon as hJ}from"efficient-easel/rail";import{useEaselHost as IJ}from"efficient-easel/screen/lib/host";import{useEaselSession as My}from"efficient-easel/screen/lib/session-context";import{useCallback as jf,useEffect as L6,useSyncExternalStore as R6}from"react";import{useScreenDocument as v0}from"efficient-easel/screen/components/ScreenDocumentContext";var w0=new WeakMap;function ul(e){let o=w0.get(e);return o||(o={rows:null,loading:null,listeners:new Set},w0.set(e,o)),o}function nh(e,o){e.rows=o;for(let t of e.listeners)t()}var Gf=new Set;function Kf(e,o){o?Gf.add(e):Gf.delete(e)}function C0(e){let o=ul(e),t=e.listPages().then(r=>nh(o,Gf.size?r.filter(a=>!Gf.has(a.id)):r),()=>nh(o,[])).finally(()=>{o.loading===t&&(o.loading=null)});return o.loading=t,t}var k0=()=>null,D6=()=>()=>{};function ml(){let{adapter:e,ready:o}=v0(),t=jf(l=>{let{listeners:i}=ul(e);return i.add(l),()=>i.delete(l)},[e]),r=jf(()=>ul(e).rows,[e]),a=R6(o?t:D6,o?r:k0,k0);L6(()=>{if(!o)return;let l=ul(e);l.rows===null&&!l.loading&&C0(e)},[e,o]);let n=jf(()=>o?C0(e):Promise.resolve(),[e,o]),s=jf(l=>nh(ul(e),l),[e]);return{rows:a,reload:n,setRows:s,getRows:r}}function N6(e,o){return e?.find(t=>t.slug===o)?.label?.trim()||`/${o}`}function P0(){let{currentSlug:e}=v0(),{rows:o}=ml();return N6(o,e)}import{canDuplicatePage as gJ,DuplicatePageDialog as yJ}from"efficient-easel/page-copy";import{jsx as To,jsxs as KM}from"react/jsx-runtime";import{useEffect as HZ,useId as WZ,useMemo as $Z,useRef as zZ,useState as Ly}from"react";import{useScreenDocument as UZ}from"efficient-easel/screen/components/ScreenDocumentContext";import{useEaselSession as jZ}from"efficient-easel/screen/lib/session-context";import{uniqueSlug as qM}from"efficient-easel/page-copy";import{AddIcon as GZ}from"efficient-easel/icons";import{Button as KZ,Dialog as qZ,EmptyState as VZ,LoadingSpinner as YZ,Paragraph as XZ,SidebarLayout as ZZ,SidebarNavItem as Ry,Title as JZ,toast as VM}from"efficient-shell/ui";import{jsx as Tt,jsxs as cR}from"react/jsx-runtime";import{useEffect as U7,useState as Og}from"react";import{CanvasFrame as j7}from"efficient-easel/easel";import{Button as G7,Card as K7,FitFrame as q7,Text as V7}from"efficient-shell/ui";import{jsx as A0,Fragment as Y6,jsxs as X6}from"react/jsx-runtime";import{useEffect as F0,useLayoutEffect as Z6}from"react";var qf="data-theme",T0="light";function M6(e){return e.getAttribute(qf)===T0?"light":"dark"}function H6(e,o){return M6(e)===o?!1:(o==="light"?e.setAttribute(qf,T0):e.removeAttribute(qf),!0)}function W6(e){return Ux(e).getItem(Jm)}function Ose(e,o){Ux(e).setItem(Jm,o)}function $6(e,o,t=new Date().getHours()){return Lw({mode:o.mode,override:W6(e),switchShown:o.switchShown,hour:t})}function O0(e,o){let t=e.documentElement;if(!t)return()=>{};let r=()=>H6(t,$6(e,o));r();let a=e.defaultView?.MutationObserver;if(!a)return()=>{};let n=new a(r);return n.observe(t,{attributes:!0,attributeFilter:[qf]}),()=>n.disconnect()}var z6="style";function U6(e,o){let t=Fd(o),r=!1;for(let a of jw){let n=t[a]??"";e.style.getPropertyValue(a)!==n&&(n?e.style.setProperty(a,n):e.style.removeProperty(a),r=!0)}return r}function E0(e,o){let t=e.body;if(!t)return()=>{};let r=()=>U6(t,o);r();let a=e.defaultView?.MutationObserver;if(!a)return()=>{};let n=new a(r);return n.observe(t,{attributes:!0,attributeFilter:[z6]}),()=>n.disconnect()}import{VIEW_DESKTOP_MIN as j6,VIEW_TABLET_MIN as G6}from"efficient-easel/screen/lib/content/view-tiers";var nr={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"},Vo=nr,K6=e=>e.flatMap(o=>[`[${o}] p`,`[${o}] li`]).join(","),q6=String.raw`(function (doc) {
|
|
2
2
|
if (doc.__sfFitWords) return;
|
|
3
3
|
var win = doc.defaultView;
|
|
4
4
|
var SELECTOR = "h1,h2,h3,h4,h5,h6,[class*='font-heading'],[class*='font-display']";
|
|
@@ -301,7 +301,7 @@ import{$ as af,D as Ok,E as Ek,F as Qd,G as _k,H as Nk,I as Cr,J as Mk,K as Hk,L
|
|
|
301
301
|
doc.__sfFitWords.floorOf = floorOf;
|
|
302
302
|
})(document);`,V6="storefront-fit-words";function _0(e){let o=e.createElement("script");return o.id=V6,o.textContent=q6,(e.head??e.documentElement).appendChild(o),()=>{e.__sfFitWords?.(),o.remove()}}var J6=`
|
|
303
303
|
[${Ue}][${Ue}] { cursor: text; }
|
|
304
|
-
`;function Vf({children:e,document:o}){let{theme:t,themeMode:r,themeSwitchShown:a}=ko(),n=er(t);return F0(()=>{if(o)return O0(o,{mode:r,switchShown:a})},[o,r,a]),F0(()=>{if(o)return E0(o,n)},[o,n]),Z6(()=>{if(o)return _0(o)},[o]),X6(Y6,{children:[A0(ZT,{}),A0("style",{children:J6}),e]})}import{jsx as dL}from"react/jsx-runtime";import{memo as PK}from"react";import{Render as TK}from"efficient-easel/render";import{jsx as Nn}from"react/jsx-runtime";import{createContext as Q6,useContext as eW,useMemo as oW}from"react";var sh=Q6(null);function tW({children:e}){return Nn(sh.Provider,{value:"first",children:e})}function Xf({children:e}){return Nn(sh.Provider,{value:"below",children:e})}function xl(){return eW(sh)}function lh(){return xl()==="below"?{loading:"lazy"}:{}}function Zf(e){let o=lh();return Nn("img",{...e,...o})}var B0="laterSlideIds",rW=new Set(["Breadcrumb","CategoryBar","Divider","Spacer","Ticker"]);function L0(e){return bf(e?.filter(o=>!o?.type||!rW.has(o.type)))}function Yf(e,o=[]){if(Array.isArray(e))for(let t of e)Yf(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))Yf(r,o)}return o}function R0(e,o){let t=o?.type,r=o?.props?.id;return oW(()=>{let a=t?e.components[t]:void 0;if(!t||!a)return e;let n=a.render,s=l=>l.id===r?Nn(tW,{children:Nn(n,{...l})}):Nn(n,{...l});return{...e,components:{...e.components,[t]:{...a,render:s}}}},[e,t,r])}function D0(e){return e.props?qe(e,o=>{let t=ze(o,D0),r=e.type===jC&&t.every(a=>a.type===Hd)?zC(t):t;return r.length!==o.length||r.some((a,n)=>a!==o[n])?r:o}):e}function N0(e){return ld(e,o=>ze(o,D0))}var aW="Flex",M0="ListSearch",H0=["FAQ"],nW="listKey";function W0(e,o){let t={search:e.type===M0,list:H0.includes(String(e.type))};return qe(e,r=>{for(let a of r){let n=W0(a,o);t.search||=n.search,t.list||=n.list}return r}),e.type===aW&&t.search&&t.list&&String(e.props?.id??"")?(o.add(e),{search:!1,list:!1}):t}function $0(e,o,t){let r=o.has(e)?String(e.props?.id):t,a=qe(e,n=>ze(n,s=>$0(s,o,r)));return r&&(e.type===M0||H0.includes(String(e.type)))?{...a,props:{...a.props,[nW]:r}}:a}function z0(e){return an(e,o=>{let t=new Set;for(let r of o)W0(r,t);return t.size?ze(o,r=>$0(r,t,"")):o})}import{isNode as u$,isNodeList as HE}from"efficient-easel/data";import{jsx as Ee,Fragment as o$,jsxs as dr}from"react/jsx-runtime";import{jsx as xh}from"react/jsx-runtime";import{Fragment as cW,jsx as pW}from"react/jsx-runtime";import{jsx as ih}from"react/jsx-runtime";import{createContext as iW,Fragment as dW,useContext as fW}from"react";import{jsx as U0,jsxs as sW}from"react/jsx-runtime";import{lazy as lW}from"react";var j0=lW(()=>import("./section-css-style-42PP2TPA.js"));function G0({css:e,id:o,attr:t}){return U0(j0,{css:e,id:o,attr:t})}var K0={name:"sectionCustomCss",applies:(e,o,t)=>o.isSection(e)&&!!t&&typeof t.render=="function",panel(e,o,t){e.fields={...e.fields,...t.customCssFields()}},draw(e){e.defaultProps={...e.defaultProps,[Ld]:""};let o=e.render;e.render=t=>{let r=pC(t),a=typeof t.id=="string"?t.id:"";return!r||!a?o(t):sW(vr,{className:"sf-section-css",attrs:{[cC]:a},children:[U0(j0,{css:r,id:a}),o(t)]})}}};var q0=iW(null);function V0({rootProps:e,children:o}){let t=e&&typeof e=="object"?e:null,r=vk(t),a=ih(dW,{children:o},"page");return ih(q0.Provider,{value:t,children:r?[ih(G0,{css:r,id:kk,attr:Jd},"css"),a]:a})}function Y0(){return fW(q0)}function vt(){return Rd(Y0())===yC}function Jf({className:e,children:o}){let t=vt();return pW(cW,{children:o(ot(e,t))})}import{SITE_SIDE as uW}from"efficient-easel/screen/lib/content/length-units";var X0="sideSpace",hl=uW,dh="none",ple=[{value:"box",label:"Box"},{value:hl,label:"Site"},{value:dh,label:"None"}],ule="box",mle="Box: on small screens the Box keeps its own side space, up to 24 px. Site: it uses the site's Side space, as the site's own sections do. None: from 800 px up the Box runs to the screen's edges; on small screens it keeps the site's Side space, up to 20 px.";function Z0(e){return e===hl||e===dh?e:"box"}function xle(e){return e===hl||e===dh?e:void 0}import{parseOption as ph}from"efficient-shell/format";var Qf="standard",oO=[{label:"Standard",value:"standard"},{label:"Editorial",value:"editorial"},{label:"Simple",value:"simple"},{label:"Statement",value:"statement"},{label:"Natural",value:"natural"},{label:"Essay",value:"essay"}],ch=["numStyle","logoSrc","logoAlt","linkText","linkHref","_gLogo"],fh=[...ch,"description"],J0={standard:["eyebrowLook"],editorial:[...ch,"eyebrowLook"],simple:fh,statement:fh,natural:ch,essay:fh},Q0=["gap-5","gap-3"],eO=["text-[length:var(--size-body,16px)]","text-[15px]"];function yle(e){return ph(Q0,Q0[0],e)}function Sle(e){return ph(eO,eO[0],e)}function tO(e){return ph(oO,Qf,e)}function ble(e){let o=oO.map(r=>r.value),t=[...new Set(Object.values(J0).flat())];return et(e,t.map(r=>[[r],yd("headStyle",o,Qf,o.filter(a=>!J0[a].includes(r)))]))}import{readHidable as mW,VIEW_TIERS as xW,viewKeyAt as hW}from"efficient-easel/draw";var ua={direction:"row",share:"content",align:"center"},ma={top:14,bottom:14,topPhone:12,bottomPhone:12},ec={wrap:"nowrap",loop:"scroll",sectionAccent:dC,gap:60,gapPhone:32,separator:"dot",sectionBorder:{top:1,bottom:1}},rO={gap:120,gapPhone:64},oc={...Do,sizeToken:{step:"label",px:14,pxPhone:12},letterSpacing:.25,lineHeight:1.5},aO={textStyle:"heading-3",letterSpacing:.005,case:"upper",lineHeight:1},Il={top:24,bottom:24,topPhone:16,bottomPhone:16},xa={top:16,bottom:16,topPhone:12,bottomPhone:12},gl={justify:"between",wrap:"wrap",gap:32,separator:"none"},yl={...Do,letterSpacing:.1,lineHeight:1.5};var tc={top:24,bottom:24,topPhone:24,bottomPhone:24},rc={top:72,bottom:72,topPhone:72,bottomPhone:72},Mn={top:100,bottom:100,topPhone:60,bottomPhone:60},ac={top:120,bottom:120,topPhone:70,bottomPhone:70},IW={top:24,bottom:24,topPhone:24,bottomPhone:24},gW=40,nc={top:120,bottom:120,topTablet:80,bottomTablet:80,topPhone:80,bottomPhone:80},yW={top:24,bottom:24,topPhone:24,bottomPhone:24},sc={top:24,bottom:24,topPhone:24,bottomPhone:24},SW={top:84,bottom:84,topPhone:84,bottomPhone:84},lc={top:48,bottom:48,topPhone:48,bottomPhone:48},ic={top:80,bottom:80,topPhone:60,bottomPhone:60},dc={top:100,bottom:60,topPhone:60,bottomPhone:40},fc={top:60,bottom:60,topPhone:40,bottomPhone:40},cc={top:80,bottom:80,topTablet:60,bottomTablet:60,topPhone:60,bottomPhone:60},pc={top:76,bottom:76,topPhone:76,bottomPhone:76},uc={top:76,bottom:76,topPhone:76,bottomPhone:76},bl={top:80,bottom:40,topPhone:60,bottomPhone:32},wl={top:76,bottom:76,topPhone:76,bottomPhone:76},mc={top:72,bottom:72,topPhone:72,bottomPhone:72},xc={top:40,bottom:64,topPhone:24,bottomPhone:36},hc={top:120,bottom:120,topPhone:80,bottomPhone:80,topTablet:80,bottomTablet:80},Ic={top:48,bottom:48,topPhone:48,bottomPhone:48},Cl=e=>{let o=Ie(e.bandPadding)??gW;return{top:o,bottom:o,topPhone:o,bottomPhone:o}},nO=(e,o,t)=>({desktop:e,tablet:o,mobile:t}),uh=e=>cn(e.headPlacement)==="own-box",Be=(e,o)=>({top:nO(e.top,o?.top??e.topTablet??e.top,e.topPhone),bottom:nO(e.bottom,o?.bottom??e.bottomTablet??e.bottom,e.bottomPhone)}),sO=e=>({top:e.topPhone,bottom:e.bottomPhone}),Sl=e=>o=>uh(o)?{top:0,bottom:e.bottom}:e,bW=(e,o)=>{let t=mW(e[o]);return t.hidden?!1:!!t.text||e.editor?.isEditing===!0},gc={Banner:{frame:()=>Be(tc)},Cards:{frame:Sl(Be(rc))},Chart:{frame:()=>Be(wl)},ContactLocations:{frame:()=>Be(Mn,sO(Mn))},Countdown:{frame:()=>Be(lc)},DocBody:{frame:()=>Be(ic)},DocMasthead:{frame:()=>Be(dc)},DocMetaCards:{frame:()=>Be(fc)},FAQ:{frame:e=>{let o=uh(e)||!["num","title","linkText"].some(r=>bW(e,r)),t=Be(ac);return o?{top:0,bottom:t.bottom}:t},edge:!0},FeaturedCover:{frame:()=>Be(cc)},Grid:{frame:()=>Be(IW)},Integrations:{frame:()=>Be(pc)},KeyFeatures:{frame:()=>Be(uc)},Logos:{frame:e=>uh(e)?0:Be(Cl(e))},LongRead:{frame:Sl(Be(nc))},Masthead:{frame:()=>Be(bl,sO(bl))},Mockup:{frame:()=>Be(wl)},OrderSummary:{frame:()=>Be(yW)},PaymentBadges:{frame:()=>Be(sc)},Prose:{frame:Sl(Be(mc))},SectionHeader:{frame:e=>{let o=Be(xc);return tO(e.headStyle)==="standard"?o:{top:o.top,bottom:0}},edge:!0},Series:{frame:Sl(Be(hc))},Stats:{frame:()=>Be(Ic)},Testimonials:{frame:Sl(Be(SW))},Ticker:{frame:()=>Be(ma),edge:!0}};function Ble(e,o,t){let r=z(gc,e)??t;return r?aa({values:Qs(o,po,!0),frame:r.frame(o),drawsFrame:!0,edge:r.edge},!0).root:null}var lO=(e,o)=>typeof e=="object"&&"top"in e?e[o]:e;function wW(e,o){let t={...e};for(let r of xW)delete t[hW(o,r)];return t}function Lle(e,o,t,r){let a=z(gc,e)??t;if(!a)return{first:null,last:null};let n=a.frame(o),s=Qs(o,po,!0),l=(i,d)=>aa({values:wW(s,i),frame:d,drawsFrame:!0,edge:a.edge},!0).root;return{first:l("bottom",{top:lO(n,"top"),bottom:r.firstBottom}),last:l("top",{top:r.lastTop,bottom:lO(n,"bottom")})}}var CW=/^(?:[^\s]*:)?p[ytb]-/;function iO(e,o,t){if(!o)return t?{className:e,style:t}:{className:e};let r=e.split(/\s+/).filter(n=>n&&!CW.test(n)),a={...t,...o.style};return{className:[...r,o.className].filter(Boolean).join(" "),...Object.keys(a).length?{style:a}:{},...o.attrs}}import{isNodeList as kW}from"efficient-easel/data";var mh=new Set(["FAQ"]);function Yo(e,o){if(!mh.has(e))return!1;let t=o.template;return typeof t=="function"?(t.blockCount??0)>0:kW(t)}var cO={ParagraphsA:{top:60,bottom:80},StatsParagraph:{top:120,bottom:120},Timeline:{top:120,bottom:120},Footprint:{top:120,bottom:120},TimelineTrack:{top:120,bottom:120},TitleWithButtons:{top:140,bottom:140},ProcessSteps:{top:120,bottom:120}},pO=new Set(Object.keys(cO));function hh(e,o){return o?.innerPadding??z(cO,e)}var Hn=e=>hh(e)??{};var yc=new Set(["Flex","Text","Heading","ImageBlock","ButtonBlock"]),vW=new Set(["Divider"]),PW=new Set(["Hero","HeroSingle","IntroBleed","CategoryBar","DocTabs"]),dO=new Set(["ProductGrid"]);function Ih(e,o,t=!1,r){let a=e.render;e.render=n=>{if(o?.(n))return a(n);let s={...Qs(n,po,t),sideSpace:Z0(n.sideSpace)},l=r?aa({values:s,frame:r(n)},!0).outer:bk(s),i=a(n);if(!l)return i;let d=u=>xh(Jf,{className:u?`${l.className} ${u}`:l.className,children:h=>xh(de,{className:h,style:l.style,children:i})}),f=wr(n,{atSectionLine:!0}),x=wr(n);return f===x?d(f):xh(of,{line:"by-box",draw:u=>d(u?x:f)})}}var uO={name:"sectionPadding",applies:(e,o,t)=>o.isSection(e)&&!PW.has(e)&&!!t&&typeof t.render=="function",panel(e,o,t){let r=hh(o,e);if(r){e.fields={...e.fields,...t.sidesPaddingFields({keys:br,unitKey:Xd,fallback:r,tablet:!0,siteSide:!0})};return}if(dO.has(o))return;let a=[br.top,br.bottom].filter(s=>e.fields!=null&&s in e.fields);if(a.length)throw new Error(`section-padding: ${o} declares its own ${a.join(" / ")} row; declare \`innerPadding: { top, bottom }\` in its meta and the one Padding row draws on its band`);let n=fO(o,e);if(n){xO(e,o,t,n);return}e.fields={...e.fields,...t.sidesPaddingFields({tablet:!0,siteSide:!0})}},draw(e,o){if(!hh(o,e)){if(dO.has(o)){Ih(e);return}yc.has(o)||vW.has(o)||Ih(e,o==="Flex"?t=>Kk(t.bgImage):mh.has(o)?t=>Yo(o,t):void 0,!0,fO(o,e))}}},TW=["Heading","Text","ImageBlock","ButtonBlock"],OW=["LogoBlock"],mO={Text:e=>Tr(e,"text").textStyle?.startsWith("heading-")?el.heading:el.text,Heading:()=>el.heading,ButtonBlock:()=>el.text,Breadcrumb:()=>mx(Il),SpecStrip:()=>mx(xa),...Object.fromEntries(Object.entries(gc).map(([e,o])=>[e,o.frame]))};function fO(e,o){return z(mO,e)??o?.ownPad?.frame}var EW={ButtonBlock:"Outer padding"};function _W(e,o){let t=e[Ht],r=Array.isArray(t)?t.filter(i=>typeof i=="string"):[],a=wn().filter(i=>o?.[i]);if(!a.length)return e;let n=[...r.filter(i=>!a.includes(i)),...a.filter(i=>typeof e[i]=="number")];if(n.length===r.length&&n.every((i,d)=>i===r[d]))return e;let{[Ht]:s,...l}=e;return n.length?{...l,[Ht]:n}:l}function AW(e,o,t){if(o<=0)return null;let r=Array.isArray(e[Ht])?e[Ht]:[];return(t?wn().filter(a=>a.startsWith(po[t])):wn()).some(a=>typeof e[a]=="number"&&!r.includes(a))?c("plus {n} px (older setting)",{n:o}):null}function xO(e,o,t,r){e.fields={...e.fields,...t.ownPaddingFields?.(r,AW,z(EW,o))??t.sidesPaddingFields({tablet:!0,siteSide:!0})};let a=e.resolveData;e.resolveData=(n,s)=>{let l=n.props??{},i=s?.trigger==="replace"?_W(l,s.changed):l,d=i===l?n:{...n,props:i};return a?a(d,s):d}}var hO={name:"blockPadding",applies:(e,o,t)=>(TW.includes(e)||OW.includes(e))&&!!t&&typeof t.render=="function",panel(e,o,t){let r=z(mO,o);if(!r){e.fields={...e.fields,...t.sidesPaddingFields({tablet:!0,siteSide:!0})};return}xO(e,o,t,r)},draw(e,o){yc.has(o)||Ih(e,void 0,!0)}};import{createContext as gh,useContext as Sc}from"react";var IO=gh(null);function eie(){return Sc(IO)===!0}function oie(){return Sc(IO)!==null}var FW=gh(!1);function tie(){return Sc(FW)}function rie(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 bc=gh(null);function aie(){return Sc(bc)}import{jsx as ha}from"react/jsx-runtime";import{Component as WW,createContext as $W,lazy as Sie,Suspense as bie,useContext as zW,useSyncExternalStore as UW}from"react";function BW(e,o){let t=e.trim();if(!wc(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 lie(e){return e.startsWith("/")||wc(e)}function wc(e){return/^(?:https?:)?\/\//i.test(e.trim())}var kl=Object.freeze({target:"_blank",rel:"noopener noreferrer"});function gO(e,o){return BW(e,o)?{...kl}:{}}function iie(e){return typeof e=="string"?e.trim():""}var die="data-sf-box-link",yO="absolute inset-0 -z-[1] outline-none focus-visible:z-[2] focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-accent",yh="relative isolate pointer-events-none [&_a]:pointer-events-auto [&_button]:pointer-events-auto [&_input]:pointer-events-auto [&_select]:pointer-events-auto [&_textarea]:pointer-events-auto [&_label]:pointer-events-auto [&_summary]:pointer-events-auto [&_iframe]:pointer-events-auto [&_video]:pointer-events-auto [&_audio]:pointer-events-auto [&_[role=button]]:pointer-events-auto [&_[tabindex]:not([tabindex='-1'])]:pointer-events-auto",LW="data-sf-box-jump";function RW(e){return`sf-box-jump-${e}`}function fie(e,o){return e===!0?da(o):""}function DW({box:e,lit:o,first:t}){let r=s=>s.join(`,
|
|
304
|
+
`;function Vf({children:e,document:o}){let{theme:t,themeMode:r,themeSwitchShown:a}=ko(),n=er(t);return F0(()=>{if(o)return O0(o,{mode:r,switchShown:a})},[o,r,a]),F0(()=>{if(o)return E0(o,n)},[o,n]),Z6(()=>{if(o)return _0(o)},[o]),X6(Y6,{children:[A0(ZT,{}),A0("style",{children:J6}),e]})}import{jsx as dL}from"react/jsx-runtime";import{memo as PK}from"react";import{Render as TK}from"efficient-easel/render";import{jsx as Nn}from"react/jsx-runtime";import{createContext as Q6,useContext as eW,useMemo as oW}from"react";var sh=Q6(null);function tW({children:e}){return Nn(sh.Provider,{value:"first",children:e})}function Xf({children:e}){return Nn(sh.Provider,{value:"below",children:e})}function xl(){return eW(sh)}function lh(){return xl()==="below"?{loading:"lazy"}:{}}function Zf(e){let o=lh();return Nn("img",{...e,...o})}var B0="laterSlideIds",rW=new Set(["Breadcrumb","CategoryBar","Divider","Spacer","Ticker"]);function L0(e){return bf(e?.filter(o=>!o?.type||!rW.has(o.type)))}function Yf(e,o=[]){if(Array.isArray(e))for(let t of e)Yf(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))Yf(r,o)}return o}function R0(e,o){let t=o?.type,r=o?.props?.id;return oW(()=>{let a=t?e.components[t]:void 0;if(!t||!a)return e;let n=a.render,s=l=>l.id===r?Nn(tW,{children:Nn(n,{...l})}):Nn(n,{...l});return{...e,components:{...e.components,[t]:{...a,render:s}}}},[e,t,r])}function D0(e){return e.props?qe(e,o=>{let t=ze(o,D0),r=e.type===jC&&t.every(a=>a.type===Hd)?zC(t):t;return r.length!==o.length||r.some((a,n)=>a!==o[n])?r:o}):e}function N0(e){return ld(e,o=>ze(o,D0))}var aW="Flex",M0="ListSearch",H0=["FAQ"],nW="listKey";function W0(e,o){let t={search:e.type===M0,list:H0.includes(String(e.type))};return qe(e,r=>{for(let a of r){let n=W0(a,o);t.search||=n.search,t.list||=n.list}return r}),e.type===aW&&t.search&&t.list&&String(e.props?.id??"")?(o.add(e),{search:!1,list:!1}):t}function $0(e,o,t){let r=o.has(e)?String(e.props?.id):t,a=qe(e,n=>ze(n,s=>$0(s,o,r)));return r&&(e.type===M0||H0.includes(String(e.type)))?{...a,props:{...a.props,[nW]:r}}:a}function z0(e){return an(e,o=>{let t=new Set;for(let r of o)W0(r,t);return t.size?ze(o,r=>$0(r,t,"")):o})}import{isNode as u$,isNodeList as HE}from"efficient-easel/data";import{jsx as Ee,Fragment as o$,jsxs as dr}from"react/jsx-runtime";import{jsx as xh}from"react/jsx-runtime";import{Fragment as cW,jsx as pW}from"react/jsx-runtime";import{jsx as ih}from"react/jsx-runtime";import{createContext as iW,Fragment as dW,useContext as fW}from"react";import{jsx as U0,jsxs as sW}from"react/jsx-runtime";import{lazy as lW}from"react";var j0=lW(()=>import("./section-css-style-UICZZ7D5.js"));function G0({css:e,id:o,attr:t}){return U0(j0,{css:e,id:o,attr:t})}var K0={name:"sectionCustomCss",applies:(e,o,t)=>o.isSection(e)&&!!t&&typeof t.render=="function",panel(e,o,t){e.fields={...e.fields,...t.customCssFields()}},draw(e){e.defaultProps={...e.defaultProps,[Ld]:""};let o=e.render;e.render=t=>{let r=pC(t),a=typeof t.id=="string"?t.id:"";return!r||!a?o(t):sW(vr,{className:"sf-section-css",attrs:{[cC]:a},children:[U0(j0,{css:r,id:a}),o(t)]})}}};var q0=iW(null);function V0({rootProps:e,children:o}){let t=e&&typeof e=="object"?e:null,r=vk(t),a=ih(dW,{children:o},"page");return ih(q0.Provider,{value:t,children:r?[ih(G0,{css:r,id:kk,attr:Jd},"css"),a]:a})}function Y0(){return fW(q0)}function vt(){return Rd(Y0())===yC}function Jf({className:e,children:o}){let t=vt();return pW(cW,{children:o(ot(e,t))})}import{SITE_SIDE as uW}from"efficient-easel/screen/lib/content/length-units";var X0="sideSpace",hl=uW,dh="none",ple=[{value:"box",label:"Box"},{value:hl,label:"Site"},{value:dh,label:"None"}],ule="box",mle="Box: on small screens the Box keeps its own side space, up to 24 px. Site: it uses the site's Side space, as the site's own sections do. None: from 800 px up the Box runs to the screen's edges; on small screens it keeps the site's Side space, up to 20 px.";function Z0(e){return e===hl||e===dh?e:"box"}function xle(e){return e===hl||e===dh?e:void 0}import{parseOption as ph}from"efficient-shell/format";var Qf="standard",oO=[{label:"Standard",value:"standard"},{label:"Editorial",value:"editorial"},{label:"Simple",value:"simple"},{label:"Statement",value:"statement"},{label:"Natural",value:"natural"},{label:"Essay",value:"essay"}],ch=["numStyle","logoSrc","logoAlt","linkText","linkHref","_gLogo"],fh=[...ch,"description"],J0={standard:["eyebrowLook"],editorial:[...ch,"eyebrowLook"],simple:fh,statement:fh,natural:ch,essay:fh},Q0=["gap-5","gap-3"],eO=["text-[length:var(--size-body,16px)]","text-[15px]"];function yle(e){return ph(Q0,Q0[0],e)}function Sle(e){return ph(eO,eO[0],e)}function tO(e){return ph(oO,Qf,e)}function ble(e){let o=oO.map(r=>r.value),t=[...new Set(Object.values(J0).flat())];return et(e,t.map(r=>[[r],yd("headStyle",o,Qf,o.filter(a=>!J0[a].includes(r)))]))}import{readHidable as mW,VIEW_TIERS as xW,viewKeyAt as hW}from"efficient-easel/draw";var ua={direction:"row",share:"content",align:"center"},ma={top:14,bottom:14,topPhone:12,bottomPhone:12},ec={wrap:"nowrap",loop:"scroll",sectionAccent:dC,gap:60,gapPhone:32,separator:"dot",sectionBorder:{top:1,bottom:1}},rO={gap:120,gapPhone:64},oc={...Do,sizeToken:{step:"label",px:14,pxPhone:12},letterSpacing:.25,lineHeight:1.5},aO={textStyle:"heading-3",letterSpacing:.005,case:"upper",lineHeight:1},Il={top:24,bottom:24,topPhone:16,bottomPhone:16},xa={top:16,bottom:16,topPhone:12,bottomPhone:12},gl={justify:"between",wrap:"wrap",gap:32,separator:"none"},yl={...Do,letterSpacing:.1,lineHeight:1.5};var tc={top:24,bottom:24,topPhone:24,bottomPhone:24},rc={top:72,bottom:72,topPhone:72,bottomPhone:72},Mn={top:100,bottom:100,topPhone:60,bottomPhone:60},ac={top:120,bottom:120,topPhone:70,bottomPhone:70},IW={top:24,bottom:24,topPhone:24,bottomPhone:24},gW=40,nc={top:120,bottom:120,topTablet:80,bottomTablet:80,topPhone:80,bottomPhone:80},yW={top:24,bottom:24,topPhone:24,bottomPhone:24},sc={top:24,bottom:24,topPhone:24,bottomPhone:24},SW={top:84,bottom:84,topPhone:84,bottomPhone:84},lc={top:48,bottom:48,topPhone:48,bottomPhone:48},ic={top:80,bottom:80,topPhone:60,bottomPhone:60},dc={top:100,bottom:60,topPhone:60,bottomPhone:40},fc={top:60,bottom:60,topPhone:40,bottomPhone:40},cc={top:80,bottom:80,topTablet:60,bottomTablet:60,topPhone:60,bottomPhone:60},pc={top:76,bottom:76,topPhone:76,bottomPhone:76},uc={top:76,bottom:76,topPhone:76,bottomPhone:76},bl={top:80,bottom:40,topPhone:60,bottomPhone:32},wl={top:76,bottom:76,topPhone:76,bottomPhone:76},mc={top:72,bottom:72,topPhone:72,bottomPhone:72},xc={top:40,bottom:64,topPhone:24,bottomPhone:36},hc={top:120,bottom:120,topPhone:80,bottomPhone:80,topTablet:80,bottomTablet:80},Ic={top:48,bottom:48,topPhone:48,bottomPhone:48},Cl=e=>{let o=Ie(e.bandPadding)??gW;return{top:o,bottom:o,topPhone:o,bottomPhone:o}},nO=(e,o,t)=>({desktop:e,tablet:o,mobile:t}),uh=e=>cn(e.headPlacement)==="own-box",Be=(e,o)=>({top:nO(e.top,o?.top??e.topTablet??e.top,e.topPhone),bottom:nO(e.bottom,o?.bottom??e.bottomTablet??e.bottom,e.bottomPhone)}),sO=e=>({top:e.topPhone,bottom:e.bottomPhone}),Sl=e=>o=>uh(o)?{top:0,bottom:e.bottom}:e,bW=(e,o)=>{let t=mW(e[o]);return t.hidden?!1:!!t.text||e.editor?.isEditing===!0},gc={Banner:{frame:()=>Be(tc)},Cards:{frame:Sl(Be(rc))},Chart:{frame:()=>Be(wl)},ContactLocations:{frame:()=>Be(Mn,sO(Mn))},Countdown:{frame:()=>Be(lc)},DocBody:{frame:()=>Be(ic)},DocMasthead:{frame:()=>Be(dc)},DocMetaCards:{frame:()=>Be(fc)},FAQ:{frame:e=>{let o=uh(e)||!["num","title","linkText"].some(r=>bW(e,r)),t=Be(ac);return o?{top:0,bottom:t.bottom}:t},edge:!0},FeaturedCover:{frame:()=>Be(cc)},Grid:{frame:()=>Be(IW)},Integrations:{frame:()=>Be(pc)},KeyFeatures:{frame:()=>Be(uc)},Logos:{frame:e=>uh(e)?0:Be(Cl(e))},LongRead:{frame:Sl(Be(nc))},Masthead:{frame:()=>Be(bl,sO(bl))},Mockup:{frame:()=>Be(wl)},OrderSummary:{frame:()=>Be(yW)},PaymentBadges:{frame:()=>Be(sc)},Prose:{frame:Sl(Be(mc))},SectionHeader:{frame:e=>{let o=Be(xc);return tO(e.headStyle)==="standard"?o:{top:o.top,bottom:0}},edge:!0},Series:{frame:Sl(Be(hc))},Stats:{frame:()=>Be(Ic)},Testimonials:{frame:Sl(Be(SW))},Ticker:{frame:()=>Be(ma),edge:!0}};function Ble(e,o,t){let r=z(gc,e)??t;return r?aa({values:Qs(o,po,!0),frame:r.frame(o),drawsFrame:!0,edge:r.edge},!0).root:null}var lO=(e,o)=>typeof e=="object"&&"top"in e?e[o]:e;function wW(e,o){let t={...e};for(let r of xW)delete t[hW(o,r)];return t}function Lle(e,o,t,r){let a=z(gc,e)??t;if(!a)return{first:null,last:null};let n=a.frame(o),s=Qs(o,po,!0),l=(i,d)=>aa({values:wW(s,i),frame:d,drawsFrame:!0,edge:a.edge},!0).root;return{first:l("bottom",{top:lO(n,"top"),bottom:r.firstBottom}),last:l("top",{top:r.lastTop,bottom:lO(n,"bottom")})}}var CW=/^(?:[^\s]*:)?p[ytb]-/;function iO(e,o,t){if(!o)return t?{className:e,style:t}:{className:e};let r=e.split(/\s+/).filter(n=>n&&!CW.test(n)),a={...t,...o.style};return{className:[...r,o.className].filter(Boolean).join(" "),...Object.keys(a).length?{style:a}:{},...o.attrs}}import{isNodeList as kW}from"efficient-easel/data";var mh=new Set(["FAQ"]);function Yo(e,o){if(!mh.has(e))return!1;let t=o.template;return typeof t=="function"?(t.blockCount??0)>0:kW(t)}var cO={ParagraphsA:{top:60,bottom:80},StatsParagraph:{top:120,bottom:120},Timeline:{top:120,bottom:120},Footprint:{top:120,bottom:120},TimelineTrack:{top:120,bottom:120},TitleWithButtons:{top:140,bottom:140},ProcessSteps:{top:120,bottom:120}},pO=new Set(Object.keys(cO));function hh(e,o){return o?.innerPadding??z(cO,e)}var Hn=e=>hh(e)??{};var yc=new Set(["Flex","Text","Heading","ImageBlock","ButtonBlock"]),vW=new Set(["Divider"]),PW=new Set(["Hero","HeroSingle","IntroBleed","CategoryBar","DocTabs"]),dO=new Set(["ProductGrid"]);function Ih(e,o,t=!1,r){let a=e.render;e.render=n=>{if(o?.(n))return a(n);let s={...Qs(n,po,t),sideSpace:Z0(n.sideSpace)},l=r?aa({values:s,frame:r(n)},!0).outer:bk(s),i=a(n);if(!l)return i;let d=u=>xh(Jf,{className:u?`${l.className} ${u}`:l.className,children:h=>xh(de,{className:h,style:l.style,children:i})}),f=wr(n,{atSectionLine:!0}),x=wr(n);return f===x?d(f):xh(of,{line:"by-box",draw:u=>d(u?x:f)})}}var uO={name:"sectionPadding",applies:(e,o,t)=>o.isSection(e)&&!PW.has(e)&&!!t&&typeof t.render=="function",panel(e,o,t){let r=hh(o,e);if(r){e.fields={...e.fields,...t.sidesPaddingFields({keys:br,unitKey:Xd,fallback:r,tablet:!0,siteSide:!0})};return}if(dO.has(o))return;let a=[br.top,br.bottom].filter(s=>e.fields!=null&&s in e.fields);if(a.length)throw new Error(`section-padding: ${o} declares its own ${a.join(" / ")} row; declare \`innerPadding: { top, bottom }\` in its meta and the one Padding row draws on its band`);let n=fO(o,e);if(n){xO(e,o,t,n);return}e.fields={...e.fields,...t.sidesPaddingFields({tablet:!0,siteSide:!0})}},draw(e,o){if(!hh(o,e)){if(dO.has(o)){Ih(e);return}yc.has(o)||vW.has(o)||Ih(e,o==="Flex"?t=>Kk(t.bgImage):mh.has(o)?t=>Yo(o,t):void 0,!0,fO(o,e))}}},TW=["Heading","Text","ImageBlock","ButtonBlock"],OW=["LogoBlock"],mO={Text:e=>Tr(e,"text").textStyle?.startsWith("heading-")?el.heading:el.text,Heading:()=>el.heading,ButtonBlock:()=>el.text,Breadcrumb:()=>mx(Il),SpecStrip:()=>mx(xa),...Object.fromEntries(Object.entries(gc).map(([e,o])=>[e,o.frame]))};function fO(e,o){return z(mO,e)??o?.ownPad?.frame}var EW={ButtonBlock:"Outer padding"};function _W(e,o){let t=e[Ht],r=Array.isArray(t)?t.filter(i=>typeof i=="string"):[],a=wn().filter(i=>o?.[i]);if(!a.length)return e;let n=[...r.filter(i=>!a.includes(i)),...a.filter(i=>typeof e[i]=="number")];if(n.length===r.length&&n.every((i,d)=>i===r[d]))return e;let{[Ht]:s,...l}=e;return n.length?{...l,[Ht]:n}:l}function AW(e,o,t){if(o<=0)return null;let r=Array.isArray(e[Ht])?e[Ht]:[];return(t?wn().filter(a=>a.startsWith(po[t])):wn()).some(a=>typeof e[a]=="number"&&!r.includes(a))?c("plus {n} px (older setting)",{n:o}):null}function xO(e,o,t,r){e.fields={...e.fields,...t.ownPaddingFields?.(r,AW,z(EW,o))??t.sidesPaddingFields({tablet:!0,siteSide:!0})};let a=e.resolveData;e.resolveData=(n,s)=>{let l=n.props??{},i=s?.trigger==="replace"?_W(l,s.changed):l,d=i===l?n:{...n,props:i};return a?a(d,s):d}}var hO={name:"blockPadding",applies:(e,o,t)=>(TW.includes(e)||OW.includes(e))&&!!t&&typeof t.render=="function",panel(e,o,t){let r=z(mO,o);if(!r){e.fields={...e.fields,...t.sidesPaddingFields({tablet:!0,siteSide:!0})};return}xO(e,o,t,r)},draw(e,o){yc.has(o)||Ih(e,void 0,!0)}};import{createContext as gh,useContext as Sc}from"react";var IO=gh(null);function eie(){return Sc(IO)===!0}function oie(){return Sc(IO)!==null}var FW=gh(!1);function tie(){return Sc(FW)}function rie(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 bc=gh(null);function aie(){return Sc(bc)}import{jsx as ha}from"react/jsx-runtime";import{Component as WW,createContext as $W,lazy as Sie,Suspense as bie,useContext as zW,useSyncExternalStore as UW}from"react";function BW(e,o){let t=e.trim();if(!wc(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 lie(e){return e.startsWith("/")||wc(e)}function wc(e){return/^(?:https?:)?\/\//i.test(e.trim())}var kl=Object.freeze({target:"_blank",rel:"noopener noreferrer"});function gO(e,o){return BW(e,o)?{...kl}:{}}function iie(e){return typeof e=="string"?e.trim():""}var die="data-sf-box-link",yO="absolute inset-0 -z-[1] outline-none focus-visible:z-[2] focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-accent",yh="relative isolate pointer-events-none [&_a]:pointer-events-auto [&_button]:pointer-events-auto [&_input]:pointer-events-auto [&_select]:pointer-events-auto [&_textarea]:pointer-events-auto [&_label]:pointer-events-auto [&_summary]:pointer-events-auto [&_iframe]:pointer-events-auto [&_video]:pointer-events-auto [&_audio]:pointer-events-auto [&_[role=button]]:pointer-events-auto [&_[tabindex]:not([tabindex='-1'])]:pointer-events-auto",LW="data-sf-box-jump";function RW(e){return`sf-box-jump-${e}`}function fie(e,o){return e===!0?da(o):""}function DW({box:e,lit:o,first:t}){let r=s=>s.join(`,
|
|
305
305
|
`),a=t(e),n=o.flatMap(t);return`
|
|
306
306
|
${e} {
|
|
307
307
|
outline: 2px solid transparent;
|
|
@@ -333,5 +333,5 @@ ${r}`:o.push({type:"p",text:r})});return o}var f8=()=>[{label:c("First section")
|
|
|
333
333
|
*your favourite apps.*`),apps:["Shopify","Xero","Stripe","Mailchimp","Zapier","HubSpot","QuickBooks","PayPal","Google Analytics"].map(e=>({text:e}))});var Q8={title:"Back online in",zeroText:"Almost done. Back very soon."},UB=["title"],Hbe={label:"Countdown",defaultProps:{...Q8,endsAt:"",showUnits:!0}};var eK={...ce("title",{...sw(12),color:"muted"}),props:{...U,align:"center"}},oK=()=>({name:"Countdown",boxProps:e=>({...Y,direction:"column",align:"center",gap:16,gapPhone:16,...ne(e,lc)}),box:[...J,...fe(lc)],parts:[eK,{kind:"core",keep:"rest",props:Zn}],pressKeepsEmpty:[...UB],drop:{...X,...ae}}),tK=()=>({name:"Feature Banner",boxProps:e=>({...Y,direction:"column",sectionBorder:{bottom:1},...ne(e,cc)}),box:[...J,...fe(cc)],parts:[{kind:"core",keep:"rest",props:Zn}],drop:{...X,...ae}}),jB={Countdown:oK(),FeaturedCover:tK()};var GB={top:80,bottom:80,topPhone:60,bottomPhone:60},rK=()=>{let e=Cp("FitmentFinder");return{name:"Fitment Form",boxProps:o=>({...Y,direction:"column",gap:ti[La("FitmentFinder")],...ne(o,GB)}),box:[...J,...fe(GB)],parts:[ft("FitmentFinder"),{kind:"block",type:"FitmentPicker"},{kind:"block",type:"StockFitment"},{kind:"button",key:"ctaText",href:"ctaHref"}],skip:o=>o.layout==="bar"?"the one-row shape goes to the shop on the fourth pick and draws no head; the Fitment picker block never leaves the page":void 0,...Object.keys(e).length?{reads:e}:{},drop:{...X,...ae,layout:'the section shape; "bar" is skipped (above), so here it is the stacked shape this Box draws'}}},KB={FitmentFinder:rK()};var qp={eyebrow:"Label",title:"Section *heading.*",body:"Add this section's copy here. A blank line starts a new paragraph."},Ybe={label:"Editorial Text",defaultProps:{eyebrow:"",title:"",body:"",topBorder:!0}};var pi={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"},Jbe={label:"Lead Text",defaultProps:{eyebrow:"",lead:"",stats:[],foundersHeading:"",foundersBody:"",attribution:"",padTop:60,padBottom:80}};var qB={eyebrow:"Limited release",title:"Banner headline",body:"A line or two of supporting copy."},ewe={label:"Banner",drawsPictures:!0,defaultProps:{eyebrow:"",title:"",body:"",imageSrc:"",ctaText:"",ctaHref:"",contained:!0,overlay:60}};var VB={title:`Section heading
|
|
334
334
|
*Highlight line*`},YB=[{label:je.text,href:je.href,variant:"primary"},{label:je.text,href:je.href,variant:"outline"}],rwe={label:"Call-to-Action Heading",defaultProps:{title:"",buttons:[],padTop:140,padBottom:140}};var cr={num:"01 / Section",title:"Section *title*",description:"Short supporting line",linkText:Te.viewAll},iwe={label:"Section Header",drawsPictures:!0,defaultProps:{headStyle:Qf,num:cr.num,numStyle:vl,title:cr.title,description:"",logoSrc:"",logoAlt:"",linkText:"",linkHref:""}};var Vp={eyebrow:"\u2014 Label",title:`Section headline
|
|
335
335
|
*Highlight line*`,body:"A sentence or two of supporting copy."},pwe={label:"Scroll-Over Text",drawsPictures:!0,defaultProps:{eyebrow:"",title:"",body:"",imageSrc:"",imageSrcMobile:"",heightDesktop:100,heightMobile:100,overlay:60,titleSizeDesktop:ll,bodySizeDesktop:ll,titleSizeMobile:ll,bodySizeMobile:ll,ctaText:"",ctaHref:"",buttonColor:"",buttonTextColor:"",stickTop:!0,[bn]:0,uppercase:!1}};var aK={name:"Editorial Text",boxProps:e=>({...Y,direction:"column",gap:28,gapPhone:28,sectionBorder:{top:1},...ne(e,mc)}),box:[["topBorder","sectionBorder",e=>e===!1?void 0:{top:1}],...J,...fe(mc)],parts:[ft("Prose"),{kind:"text",key:"body",props:re,style:{textStyle:"body-1",...W("body",16),lineHeight:1.7,paragraphSpacing:18}}],drop:{...X,...ae,headPlacement:"needs a row per head placement: an own-box Prose draws no head (its words sit in a Section Header above it), the row always draws the head. 0 of 123 live nodes store it (the live export, 2026-10-24)"}},ZB={buttonPaddingTop:20,buttonPaddingBottom:20,buttonPaddingLeft:28,buttonPaddingRight:28},JB=(e,o)=>o?.variant==="primary",QB=(e,o)=>({kind:"list",key:"buttons",name:"Button",flat:!0,when:e,parts:[{kind:"button",key:"label",href:"href",when:JB,variant:"primary",style:{letterSpacing:.3},props:{...ao,...ZB,...o}},{kind:"button",key:"label",href:"href",when:(t,r)=>!JB(t,r),variant:"ghost",style:{letterSpacing:.3},props:{...ao,...ZB,...o}}]}),Yp=e=>He(e.title),nK={name:"Call-to-Action Heading",boxProps:e=>({...Y,direction:"row",align:"center",justify:Yp(e)?"between":"end",gap:60,gapPhone:60,share:"content",sectionBorder:{bottom:1},...dt(e,"TitleWithButtons")}),box:[...J,...Nr("TitleWithButtons")],parts:[{kind:"group",name:"Title",props:{...L,maxWidth:1e3,widthFitPhone:"fill"},parts:[{kind:"text",key:"title",role:"heading",props:U,style:{textStyle:"heading-1",...Uo("headingLarge",48,7,108),case:"upper",lineHeight:.94,letterSpacing:-.035},mark:"accentItalic"}]},{kind:"group",name:"Buttons",props:e=>({...L,gap:14,gapPhone:14,widthFitPhone:"fill",...Yp(e)?{minWidth:280,minWidthPhone:0}:{}}),parts:[QB(Yp,{widthFit:"fill",iconPosition:"end"}),QB(e=>!Yp(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 sK(e,o){let t=os(o,{to:Ir(e.sectionPaddingUnitTablet??e.sectionPaddingUnit)}),r=os(o,{view:"phone",to:Ir(e.sectionPaddingUnitPhone),maxPx:20});return{sectionPaddingLeft:XB,sectionPaddingRight:XB,sectionPaddingLeftTablet:t,sectionPaddingRightTablet:t,sectionPaddingLeftPhone:r,sectionPaddingRightPhone:r}}var lK={name:"Section Header",boxProps:(e,o)=>({...Y,direction:"column",gap:0,...ne(e,xc),...sK(e,o)}),box:[...J,...fe(xc)],parts:[ft("SectionHeader")],drop:{...X,...ae,headStyle:"needs a row per head look: the row draws the standard look; the editorial, simple, statement, natural and essay looks are other layouts. 0 of 69 live nodes store it (the live export, 2026-10-24)",eyebrowLook:"read only by the simple, statement, natural and essay looks, which this row does not draw. 0 of 69 live nodes store it",rowGap:"read only by the natural look, which this row does not draw. 0 of 69 live nodes store it",descriptionSize:"read only by the natural look, which this row does not draw. 0 of 69 live nodes store it",numStyle:"Solid (the default; 4 of 69 live nodes store it) IS the eyebrow Text the row draws; Outlined (0 live) needs an outlined-number text look"}},eL={...L,direction:"row",share:[67],gap:32},oL={...L,sectionPaddingLeft:24,sectionPaddingLeftPhone:0},tL=(e,o,t)=>({kind:"group",name:e,props:o,parts:[t]}),iK={name:"Lead Text",boxProps:e=>({...Y,direction:"column",gap:40,gapPhone:40,sectionBorder:{bottom:1},...dt(e,"ParagraphsA")}),box:[...J,...Nr("ParagraphsA")],parts:[{kind:"group",name:"Numbers",props:{...eL,gapPhone:24,sectionBorder:{bottom:1},sectionPaddingBottom:40,sectionPaddingBottomPhone:40},parts:[{kind:"group",name:"Eyebrow",props:{...L,sectionPaddingTop:5,sectionPaddingBottom:1,sectionPaddingTopPhone:5,sectionPaddingBottomPhone:1},parts:[ce("eyebrow",{color:"labels",...W("label",12),letterSpacing:.24})]},tL("Stats column",L,{kind:"group",name:"Stats",props:{...oL,gap:0,gapPhone:0},parts:[{kind:"list",key:"stats",name:"Stat",flat:!0,parts:[Ql("value","label",{...W("label",13),letterSpacing:.18,lineHeight:1.8})]}]})]},{kind:"group",name:"Words",props:{...eL,gapPhone:28},parts:[{kind:"group",name:"Lead",props:L,parts:[{kind:"group",name:"Measure",props:{...L,maxWidth:780},parts:[{kind:"text",key:"lead",props:U,style:{textStyle:"heading-3",...W("headingSmall",22,20),weight:400,case:"none",lineHeight:1.45,letterSpacing:-.005}}]}]},tL("Note column",{...L,justify:"end"},{kind:"group",name:"Founders",props:{...oL,gap:8,gapPhone:8},parts:[{kind:"group",name:"Note",props:{...L,gap:6,gapPhone:6},parts:[{kind:"text",key:"foundersHeading",props:U,style:{textStyle:"body-1",fontRole:"heading",...W("body",18,16),weight:500,letterSpacing:-.01,lineHeight:1.7}},{kind:"text",key:"foundersBody",props:re,style:{textStyle:"body-5",fontRole:"heading",...W("body",14,12),lineHeight:1.7}}]},ce("attribution",{...W("label",12,10),letterSpacing:.24,lineHeight:1.7})]})]}],drop:{...X}},dK={name:"Banner",boxProps:e=>({...Y,direction:"column",gap:0,...ne(e,tc)}),box:[...J,"contained",...fe(tc)],parts:[{kind:"group",name:"Card",keepEmpty:!0,props:{...L,gap:28,gapPhone:28,placement:"top-left",darken:60,darkenStyle:"even",sectionBorder:{width:1},...Zt("surface"),...wo(64,40,40,24)},box:[["imageSrc","bgImage"],["overlay","darken",e=>Math.min(Math.max(Ie(e)??60,0),100)]],parts:[{kind:"group",name:"Words",props:{...L,gap:20,gapPhone:20},parts:[ce("eyebrow"),{kind:"text",key:"title",role:"heading",props:{...U,maxWidth:680},style:{weight:500,lineHeight:1.05,letterSpacing:-.03,case:"none",...W("headingMedium",44,32)}},{kind:"text",key:"body",props:{...U,maxWidth:680},style:{textStyle:"body-1",lineHeight:1.6,...W("body",16)}}]},{kind:"button",key:"ctaText",href:"ctaHref",variant:"primary",props:ao}]}],drop:{...X,...ae}},cg={Prose:aK,TitleWithButtons:nK,SectionHeader:lK,ParagraphsA:iK,Banner:dK},rL={Prose:()=>({eyebrow:qp.eyebrow,title:kt(qp.title),body:qp.body}),TitleWithButtons:()=>({title:kt(VB.title),buttons:YB.map(e=>({...e}))}),SectionHeader:()=>({num:cr.num,title:kt(cr.title),description:cr.description,linkText:cr.linkText,linkHref:je.href}),ParagraphsA:()=>({eyebrow:pi.eyebrow,lead:Te.body,foundersHeading:pi.foundersHeading,foundersBody:pi.foundersBody,attribution:pi.attribution}),Banner:()=>({...qB,ctaText:je.text,ctaHref:je.href}),ProcessSteps:()=>({num:cr.num,title:kt(cr.title)}),IntroBleed:()=>({eyebrow:Vp.eyebrow,title:kt(Vp.title),body:Vp.body,ctaText:je.text,ctaHref:je.href})};function Xp(){Qe(cg),Qe(SA),Qe(DA),Qe(cA),Qe(JA),Qe(pF),Qe(vF),Qe(OF),Qe(MF),Qe(VF),Qe(iB),Qe(bB),Qe(vB),Qe(_B),Qe(KB),Qe(MB),Qe($B),Qe(jB)}var fK=[{name:"migrateLegacyPageData",chrome:!1,why:"page-only: it walks the top-level sections (Gallery B's array to its slot, a second pinned Header or Footer); a chrome document's one top-level node is the chrome itself",run:e=>d1(e)},{name:"migrateRenamedProps",chrome:!0,why:"every document built from stored props: a renamed key still reads its stored answer (lib/source-rules/document-surfaces)",run:e=>c1(e)},{name:"convertSectionsInPage",chrome:!1,why:"page-only: it turns an old top-level SECTION into its Box, with the site theme off the page's metadata; chrome is a Box group, never one of those sections",run:(e,{metadata:o})=>(Xp(),x1(e,Xl,{theme:rC(o)}))},{name:"capHeroGroups",chrome:!1,why:"page-only: it caps a top-level Hero's slide groups, and a Hero is a page section",run:e=>N0(e)},{name:"oneH1",chrome:!1,why:"page-only: it hands the h1 to the first opener in the PAGE's document order; on a chrome document it would count a second document on its own",run:e=>VE(e)},{name:"dropEmptySourcedBoxes",chrome:!0,why:"any document: a nested head over sourced cores served none goes (the Box footer's payment line), at any depth inside a slot",run:e=>qE(e)},{name:"markHeadCoreBoxes",chrome:!1,why:"page-only: it marks a head Box at the TOP of the page, where the mark element draws (lib/content/empty-hides); a chrome document's top is the chrome group",run:e=>GE(e)},{name:"markListSearchScopes",chrome:!1,why:"page-only for now: it ties a Search to the lists of the page's Box; no chrome holds a Search, and a chrome entry is one flag when one does",run:e=>z0(e)},{name:"withPageContents",chrome:!1,why:"page-only: a Contents block lists the PAGE's anchored sections and numbers their kickers",run:e=>m0(e)},{name:"markWallLabels",chrome:!0,why:"any document: each Marks wall is named by the lead Text drawn before it (aria-labelledby), the Box footer's walls too",run:e=>QE(e)},{name:"markCardPressTitles",chrome:!0,why:"any document: an acting copy's press button is named by its template's title Text (aria-labelledby), a header or footer list too; after the wall labels, so a Text keeps one id",run:e=>a_(e)}];function cK(e,o,t){let r=e;for(let a of fK)(!t||a.chrome)&&(r=a.run(r,o));return r}function aL(e,o){return cK(e,{metadata:o},!1)}import{useRef as pK}from"react";import{createRenderKeep as uK}from"efficient-easel/render";function nL(){let e=pK(null);return e.current??=uK(),e.current}import{isNode as mK,isNodeList as xK}from"efficient-easel/data";import{hidableText as hK,readHidable as IK}from"efficient-easel/draw";var lL="slotCounts",pg=e=>!IK(e).hidden&&hK(e).trim()!=="",gK=e=>typeof e=="string"&&e.trim()!=="",yK={Flex:()=>!0,PostCard:()=>!0,ImageBlock:e=>gK(e.src),Text:e=>pg(e.text),Heading:e=>pg(e.text),Eyebrow:e=>pg(e.eyebrow)},SK=["widthFit","width","minWidth"],sL=e=>xK(e);function bK(e){if(Array.isArray(e.content))return sL(e.content)?e.content:null;let o=Object.values(e).filter(sL);return o.length===1?o[0]:null}function wK(e,o){return[...new Set([lb,...Object.values(z(Pw,e)??{})])].some(t=>Nt(o,t)!=="")}function CK(e){let o=e.props??{},t=z(yK,e.type);if(!t||!t(o)||wK(e.type,o)||sl(o))return!1;let r=o[Kn];if(r!=null&&r!=="")return!1;let a=lp(o);return!SK.some(n=>a[n]!==void 0)}function kK(e){let o=0;for(let t of e)if(!or(t.props??{})){if(!CK(t))return;o+=1}return o>0?o:void 0}function vK(e){let o={},t=new Set,r=new Set,a=(n,s)=>{if(Array.isArray(n))for(let l of n){if(!mK(l))continue;let i=l.props.id;typeof i=="string"&&(t.has(i)?r:t).add(i);let d=s?null:bK(l.props);if(typeof i=="string"&&d){let f=kK(d);f!==void 0&&(o[i]=f)}for(let f of Lt(l))a(l.props[f],s||ra(l.type,f))}};a(e,!1);for(let n of r)delete o[n];return o}function iL(e,o){return{...e??{},[lL]:vK(o)}}function ICe(e){let o=e.editor?.metadata?.[lL],t=e.id,r=typeof t=="string"&&o&&typeof o=="object"?o[t]:void 0;return typeof r=="number"&&Number.isInteger(r)&&r>0?r:void 0}function OK({config:e,data:o,metadata:t}){let r=aL(o,t),a=nL(),n=R0(e,L0(r.content)),s=Yf(r.content),l=s.length>0?{...t,[B0]:s}:t;return dL(Xf,{children:dL(TK,{config:n,metadata:iL(l,r.content),keep:a,data:r})})}var fL=PK(OK);import{jsx as jo,Fragment as L7,jsxs as nR}from"react/jsx-runtime";import{Suspense as R7,useMemo as D7}from"react";import{jsx as EK}from"react/jsx-runtime";import{createContext as _K,useCallback as AK,useContext as FK,useState as ug}from"react";var cL=_K({footerBlock:null,setFooterBlock:()=>{},headerGroup:null,setHeaderGroup:()=>{},refreshToken:0,refreshFooter:()=>{},chromeRootProps:null});function ECe({children:e,editFooter:o,chromeRootProps:t=null}){let[r,a]=ug(null),[n,s]=ug(null),[l,i]=ug(0),d=AK(()=>i(f=>f+1),[]);return EK(cL.Provider,{value:{footerBlock:r,setFooterBlock:a,headerGroup:n,setHeaderGroup:s,editFooter:o,refreshToken:l,refreshFooter:d,chromeRootProps:t},children:e})}var pL=()=>FK(cL);import{jsx as BK,jsxs as LK}from"react/jsx-runtime";import{createContext as RK,useContext as DK}from"react";var uL=RK(!1);function LCe(){return DK(uL)}function mL({grayscale:e,children:o}){let t=e===!0;return LK(uL.Provider,{value:t,children:[Object.entries(C_(e)).map(([r,a])=>BK("style",{children:a},r)),o]})}import{jsx as NK}from"react/jsx-runtime";import{createContext as MK,useContext as HK}from"react";var xL=MK(null);function MCe(){return HK(xL)}function hL({ink:e,children:o}){return NK(xL.Provider,{value:e??null,children:o})}import{parseOption as WK}from"efficient-shell/format";var IL="data-lead-ink",UCe="data-header-ink",$K=["auto","light","dark"],zK="auto";function UK(e){return e.type==="IntroBleed"?Up(e.props?.layout)!=="stacked":!0}function gL(e){let o=bf(e);return o&&SP(e)&&UK(o)?"light":null}function jCe(e){return WK($K,zK,e)}import{useEasel as Pg}from"efficient-easel/easel";import{useEffect as o7}from"react";import{useEaselApi as t7}from"efficient-easel/easel";import{find as jK,walk as yL}from"efficient-easel/data";var GK=()=>"",KK=e=>qm(Rt([e],GK));function wL(e,o,t){if(!Array.isArray(e)||e.length!==1)return null;let r=t.keys??=Object.fromEntries(Object.entries(o()).map(([n,s])=>[n,new Set(s.map(KK))])),a=qm(e);return Object.keys(r).find(n=>r[n].has(a))??null}var qK=()=>({press:[ts(oa),ts(Hs)],delivery:[xI()]}),VK={},mg=e=>wL(e,qK,VK),YK=e=>Ne(e)===tb?"delivery":"press";function tke(e,o){if(!o||Ne(e)===Ne(o))return e;let t=mg(e[Pe]),r=YK(e);if(!t||t===r)return e;let a=zm(e,ro),n=r==="delivery"?xI():ts(Ne(e)?Hs:oa),s=Rt([n],jm(a));return{...e,[Pe]:s}}var XK=()=>({cards:[ln(oa),ln(Hs)],label:[dn(!1),dn(!0)]}),ZK={},JK=e=>wL(e,XK,ZK);function rke(e,o){if(!o||e.cardStyle==="label-only"==(o.cardStyle==="label-only"))return e;let t=JK(e[Pe]),r=e.cardStyle==="label-only"?"label":"cards";if(!t||t===r)return e;let a=zm(e,lw),n=Array.isArray(e.items)&&e.items.some(i=>fo(i?.href)!==void 0),s=r==="label"?dn(n):ln(Ne(e)?Hs:oa),l=Rt([s],jm(a));return{...e,[Pe]:l}}var SL=(e,o)=>mI.every(t=>JSON.stringify(e[t])===JSON.stringify(o[t]));function bL(e,o){let t={...e};for(let r of mI)delete t[r];return{...t,...structuredClone(o)}}function xg(e){let o=e?.[we];if(!Array.isArray(o)||o.length!==1)return null;let t=o[0];return t?.type===ro&&t.props?t:null}function QK(e,o){let t=xg(e),r=xg(o);if(!t?.props||!r?.props||r.props.id!==t.props.id||Ne(t.props)===Ne(r.props))return e;let a=mg(t.props[Pe]);if(!a||a===mg(r.props[Pe]))return e;let n=Ie(e.columns);return n===void 0?e:a==="delivery"&&SL(e,Ba(n))?bL(e,mp(n)):a==="press"&&SL(e,mp(n))?bL(e,Ba(n)):e}function CL(e){let o=Zp.get(e);o?o.count+=1:Zp.set(e,{count:1,stop:e7(e)});let t=!1;return()=>{let r=Zp.get(e);t||!r||(t=!0,r.count-=1,!(r.count>0)&&(r.stop(),Zp.delete(e)))}}var Zp=new WeakMap;function e7(e){let o=e.getState().appState.data;return e.subscribe(()=>{let t=e.getState().appState.data;if(t===o)return;let r=o;if(o=t,t===e.loaded)return;let a=new Map;yL(t,e.config,n=>{if(n.type!==K||!xg(n.props))return;let s=jK(r,e.config,n.props.id);if(!s||s.node===n)return;let l=QK(n.props,s.node.props);l!==n.props&&a.set(n.props.id,l)}),a.size&&e.dispatch({type:"setData",recordHistory:!1,data:n=>yL(n,e.config,s=>{let l=a.get(s.props.id);return l?{...s,props:{...l,id:s.props.id}}:void 0})})})}function kL(){let e=r7();o7(()=>e?CL(e):void 0,[e])}function r7(){try{return t7()}catch{return null}}import{jsx as Jp}from"react/jsx-runtime";import{useEffect as a7}from"react";import{armScrollProgress as n7}from"efficient-shell/format";function vL({armed:e,children:o}){return a7(()=>e?n7():void 0,[e]),o}function hg(){return{style:{"--sf-page-width":Mo}}}function s7({children:e}){return Jp("div",{style:hg().style,children:e})}function hke({pageBackground:e,inheritBackground:o=!1,chrome:t=!1,children:r}){return Jp("div",{style:{...o?{}:Tf(e),background:"var(--bg)",minHeight:"100%",overflowX:"clip"},children:Jp(vL,{armed:!t,children:Jp(s7,{children:r})})})}import{jsx as PL,Fragment as l7}from"react/jsx-runtime";import{createContext as OL,useContext as TL}from"react";var EL=OL({}),_L=EL.Provider,AL=OL(void 0),FL=AL.Provider;function Ske(e){let{SectionTextParts:o}=TL(EL),t=TL(AL);return o?PL(o,{...e,sizeCaps:t}):PL(l7,{children:e.children})}import{jsx as P7}from"react/jsx-runtime";import{useEffect as T7,useRef as O7}from"react";var BL="data-easel-overlay-portal";function Qp(e){return e.setAttribute(BL,"true"),()=>{e.removeAttribute(BL)}}import{jsx as g7}from"react/jsx-runtime";import{useEffect as y7,useRef as VL}from"react";import{usePreviewParts as S7}from"efficient-easel/draw/client";import{jsx as i7}from"react/jsx-runtime";import{createContext as d7,useContext as f7,useMemo as c7,useState as p7}from"react";var u7={partStyle:null,setPartStyle:()=>{}},LL=d7(u7);function vke({children:e}){let[o,t]=p7(null),r=c7(()=>({partStyle:o,setPartStyle:t}),[o]);return i7(LL.Provider,{value:r,children:e})}function fs(){return f7(LL)}import{usePreviewDevice as b7}from"efficient-easel/draw/client";import{shownTier as w7}from"efficient-easel/screen/lib/document/device-fields";import{decodePartId as YL,encodePartId as C7}from"efficient-easel/draw";import{BLOCK_ATTRIBUTE as k7}from"efficient-easel/canvas";import{createPreviewSelectionContext as m7}from"efficient-easel/draw/client";var Na="Scrolling Bar",{Provider:Oke,useSelection:RL}=m7("selectedHeroId"),Ig="data-sf-hero-ticker";function DL(e){return`${e}::ticker`}function NL(e){return!e||!e.endsWith("::ticker")?null:e.slice(0,-8)||null}import{BLOCK_ATTRIBUTE as zr}from"efficient-easel/canvas";import{createPreviewSelectionContext as x7}from"efficient-easel/draw/client";var{Provider:Ake,useSelection:ML}=x7("selectedLocationPartId");function eu(e,o,t){return`${e}::${o}::${t}`}function ou(e){if(!e)return null;let o=e.split("::");if(o.length<3)return null;let t=o[o.length-1];if(t!=="image"&&t!=="map"&&t!=="city")return null;let r=Number(o[o.length-2]);if(!Number.isInteger(r)||r<0)return null;let a=o.slice(0,-2).join("::");return a?{nodeId:a,index:r,part:t}:null}var yg="data-sf-part-label";function Sg(e,o){return e.closest(`[${zr}]`)?.getAttribute(zr)===o}function HL(e,o,t){let r=e.querySelectorAll("*"),a=new Map(t.map(g=>[g.key,uf(g.label)])),n=[],s=new Set;for(let g=0;g<r.length;g+=1){let w=r[g];if(!Sg(w,o))continue;let _=w.getAttribute(dv);if(!_)continue;let E=a.get(_);n.push({element:w,partId:$t(o,_),...E?{label:E}:{}}),s.add(w)}let l=[],i=new Set;for(let g=0;g<r.length;g+=1){let w=r[g];if(!Sg(w,o)||s.has(w))continue;let _=cv(w.textContent??"");if(!_)continue;let E=w.closest(`[${Ix}]`)?.getAttribute(Ix)||null;E&&i.add(E.replace(/\[\d+\]$/u,"")),l.push({element:w,text:_,row:E})}let d=g=>l.filter(w=>w.row===iv(g.key,g.row.index)),f=l.filter(g=>g.row===null),x=g=>g.row&&i.has(g.key)?d(g):i.size?f:l,u=new Map,h=[],I=g=>g.row?`${g.key}.${g.row.rowKey}`:null,S=new Map;for(let g of t){let w=I(g);if(!w||i.has(g.key))continue;let _=S.get(w);_?_.push(g):S.set(w,[g])}let v=new Set;for(let[g,w]of S){if(w.length<2)continue;let _=w.flatMap(b=>b.texts);if(new Set(_).size===_.length)continue;let E=x(w[0]).filter(b=>_.includes(b.text));if(E.length!==w.length)continue;let D=[...w].sort((b,F)=>(b.row?.index??0)-(F.row?.index??0));for(let b=0;b<D.length;b+=1){let F=D[b],y=E[b].element,k={key:F.key,partKey:kn(F.key,F.row),exact:!0},P=u.get(y);P?P.push(k):(u.set(y,[k]),h.push(y))}v.add(g)}let O=new Map;for(let g of t){if(v.has(I(g)??""))continue;let w=kn(g.key,g.row);for(let _ of g.texts)for(let E of x(g)){if(E.text!==_)continue;let D=O.get(E.element);D?D.add(w):O.set(E.element,new Set([w]))}}let R=(g,w)=>[...O].some(([_,E])=>_!==g&&!E.has(w)&&_.contains(g));for(let g of t){if(v.has(I(g)??""))continue;let w=kn(g.key,g.row);for(let _ of g.texts){let E=[],D=null;for(let y of x(g))y.text===_?R(y.element,w)||E.push(y.element):!E.length&&y.text.includes(_)&&(!D||y.text.length<=D.length)&&(D={element:y.element,length:y.text.length});let b=E.length?E:D?[D.element]:[],F=b.filter(y=>!b.some(k=>k!==y&&y.contains(k)));for(let y of F){let k={key:g.key,partKey:w,exact:E.length>0},P=u.get(y);P?P.push(k):(u.set(y,[k]),h.push(y))}}}let T=[...n];for(let g of h){let w=u.get(g)??[],_=w.some(E=>E.exact)?w.filter(E=>E.exact):w;if(new Set(_.map(E=>E.partKey)).size===1){let E=a.get(_[0].key);T.push({element:g,partId:$t(o,_[0].partKey),...E?{label:E}:{}});continue}new Set(_.map(E=>E.key)).size===1&&T.push({element:g,partId:$t(o,_[0].key)})}return T}function gg(e,o,t){let r=e.querySelectorAll(`[${Ue}]`);for(let n=0;n<r.length;n+=1){let s=r[n];Sg(s,o)&&(s.removeAttribute(Ue),s.removeAttribute(yg))}let a=[];for(let{element:n,partId:s,label:l}of t)n.setAttribute(Ue,s),l&&n.setAttribute(yg,l),a.push(n);return a}function zL(e,o,t,r,a,n=()=>null){let s=null,l=null,i=null,d=()=>{let f=t(),x=f?.getAttribute(zr)??null;if(!f||!x)return!1;s=x;let u=HL(e,x,o);return a(f,x,gg(e,x,u)),i=n(()=>{let h=HL(e,x,o);h7(u,h)||(u=h,a(f,x,gg(e,x,h)))}),!0};return d()||(l=r(()=>{(s||d())&&(l?.(),l=null)})),()=>{l?.(),l=null,i?.(),i=null,s&&gg(e,s,[])}}function h7(e,o){return e.length===o.length&&e.every((t,r)=>t.element===o[r].element&&t.partId===o[r].partId)}function Hke(e,o){let t=e?.closest?.(`[${Ue}],[${Pr}]`),r=t?.getAttribute(Ue)??t?.getAttribute(Pr),a=r?lv(r):null;if(t&&r&&a?.nodeId===o&&a.propKey)return{id:r,element:t,whole:$L(t,r),label:WL(t,r)};let n=e?.closest?.(jL.slice(2).map(l=>`[${l}]`).join(","));if(!n)return null;let s=n.closest?.(`[${zr}]`)?.getAttribute(zr)===o?GL(n,o):null;return s?{id:s,element:n,whole:$L(n,s),label:WL(n,s)}:null}function WL(e,o){let t=ou(o);if(t)return t.part==="map"?"Map":t.part==="city"?"City":"Image";let r=Vc(o);return r?fr[r.part]:NL(o)?Na:e.getAttribute(yg)??void 0}var UL="data-loc-pick",jL=[Ue,Pr,Gl,Ig,UL];function GL(e,o){let t=e.getAttribute(Ue)??e.getAttribute(Pr);if(t)return t;let r=e.getAttribute(Gl);if(r)return ka(o,r);if(e.getAttribute(Ig)!==null)return DL(o);let a=e.getAttribute(UL)?.split(":");return a&&(a[1]==="image"||a[1]==="map"||a[1]==="city")&&/^\d+$/.test(a[0])?eu(o,Number(a[0]),a[1]):null}function $L(e,o){let t=e.closest?.(`[${zr}]`),r=t?.getAttribute(zr);if(!t||!r)return!1;let a=new Set;for(let n of t.querySelectorAll(jL.map(s=>`[${s}]`).join(","))){if(n.closest?.(`[${zr}]`)!==t)continue;let s=GL(n,r);s&&a.add(s)}return a.size===1&&a.has(o)}import{ENTRANCE_ATTR as KL,playEntrance as I7}from"efficient-shell/format";var bg=new WeakMap;function qL(e,o,t,r){let a=typeof t=="boolean"?t?"phone":"desktop":t,n=[],s=new Map;for(let{partKey:d}of e){if(s.has(d))continue;let f=o(d)??{},x=nk(f),u=r.get(d),h=u?Wn.next(u,x,a):null;r.set(d,h?h.seen:Wn.seed(x)),s.set(d,h?.play??!1)}let l=new Map,i=e.filter(d=>!e.some(f=>f!==d&&f.partKey===d.partKey&&f.element.contains(d.element)));for(let d of i){let f=_c(d.element);f&&l.set(f,[...l.get(f)??[],d])}for(let[d,f]of l){let x=I=>_l(o(I.partKey)??{}),u=Un(f.filter(I=>x(I).entrance));if(u){let I=o(u.partKey)??{};n.push(Oc(d,Ys(I,a)));let S=bg.get(d);bg.set(d,u.partKey),(s.get(u.partKey)||S!==void 0&&S!==u.partKey)&&d.hasAttribute(KL)&&I7(d)}else bg.delete(d);let h=d.hasAttribute(KL)?void 0:Un(f.filter(I=>lr(o(I.partKey)??{},a).effect!=="none"));h&&n.push(Ec(d,lr(o(h.partKey)??{},a))),f.some(I=>x(I).hover==="lift")&&(Ac(d.ownerDocument),d.setAttribute(Sa,""),n.push(()=>d.removeAttribute(Sa)))}return()=>n.forEach(d=>d())}function wg(e){let o=null,t=null;for(let r=e;r&&(o===null||t===null);r=r.parentElement){let a=r.getAttribute("class");o??=Sb(a),t??=Qm(a)}return{faceRole:o??"body",sizeGroup:t}}function tu(e,o={},t=xb){let r=e.style,a={};for(let i of bx)a[i]=r[i]??"",r[i]="";o.fontFamily&&(r.fontFamily=o.fontFamily),o.fontSize&&(r.fontSize=o.fontSize);let n=getComputedStyle(e),s=getComputedStyle(e.ownerDocument.documentElement),l=Lv({fontSize:n.fontSize,fontWeight:n.fontWeight,lineHeight:n.lineHeight,letterSpacing:n.letterSpacing,textAlign:n.textAlign,textTransform:n.textTransform,paddingTop:n.paddingTop},Rv(n.fontFamily,i=>s.getPropertyValue(i),t));for(let i of bx)r[i]=a[i];return l}function XL({needles:e,styles:o,motions:t=Tc,type:r,sizeCaps:a,children:n}){let s=VL(null),{selectedPartId:l}=S7(),{setPartStyle:i}=fs(),d=w7(b7()),f=Ct(),x=JSON.stringify(e),u=JSON.stringify(o),h=JSON.stringify(t),I=VL(new Map);return y7(()=>{let S=s.current;if(!S)return;let v=[],O=()=>S.parentElement,R=b=>{let F=O();if(!F)return null;let y=new MutationObserver(b);return y.observe(F,{attributes:!0,attributeFilter:[k7]}),()=>y.disconnect()},T=b=>{let F=new MutationObserver(b);return F.observe(S,{childList:!0,subtree:!0,characterData:!0}),()=>F.disconnect()},g=[];v.push(()=>{for(let b of g)b();g=[]});let w=JSON.parse(x),_=JSON.parse(u),E=JSON.parse(h),D=zL(S,w,O,R,(b,F,y)=>{for(let B of g)B();g=[];let k=[];for(let B of y){let H=B,q=Qp(H);q&&g.push(q),H.getAttribute(Ue)===l&&k.push(H)}let P=Dv(F,l,k,B=>bb(B)!==null||Qm(B)!==null);if(P&&l){let B=P,H=YL(l)?.propKey??"",q=rl(B)?{}:Bv(Nv(_,sr(r,H)),d,{blockDrawsStyle:nl(r,H),sizeCap:la(a,H),fonts:f});i({partId:l,...wg(B),base:tu(B,q,f),inks:lf(B),...(()=>{let $=rl(B);return $?{styleOwner:$}:{}})()})}Sx(y.filter(B=>!rl(B)).map(B=>({element:B,partId:B.getAttribute(Ue)??""})),_,B=>tu(B,void 0,f),B=>sr(r,B),void 0,d,B=>nl(r,B),B=>la(a,B),f);let C=[...S.querySelectorAll(`[${fv}="${CSS.escape(F)}"][${pf}]`)];C.length&&Sx(C.map(B=>({element:B,partId:C7(F,B.getAttribute(pf)??"")})),_,void 0,B=>B,void 0,d,void 0,void 0,f),g.push(qL([...y.filter(B=>!rl(B)).map(B=>{let H=B,q=YL(H.getAttribute(Ue)??"")?.propKey??"";return{element:H,partKey:sr(r,q)}}),...C.map(B=>({element:B,partKey:B.getAttribute(pf)??""}))],B=>E[B],rk(d),I.current))},T);return()=>{D();for(let b of v)b()}},[x,u,h,l,i,d,r,f]),g7("div",{ref:s,[Eh]:"",style:{display:"contents"},children:n})}import{shownTier as E7}from"efficient-easel/screen/lib/document/device-fields";import{usePreviewDevice as _7,usePreviewParts as A7}from"efficient-easel/draw/client";var ui={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)]"},v7={tag:{label:"Tag",follows:"Labels",builtIn:pn(ui.tag),writable:!0},name:{label:"Name",follows:"Heading 2",builtIn:pn(ui.name),writable:!0},body:{label:"Body",follows:"Body",builtIn:pn(ui.body),writable:!0},price:{label:"Price",follows:"Labels",builtIn:pn(ui.price),writable:!0},link:{label:"Link",follows:"Labels",builtIn:pn(ui.link),writable:!0}},ZL=v7;var gve=ta,JL={rowLabel:{label:"Spec row name",follows:"Labels",builtIn:"14px"},rowValue:{label:"Spec row value",follows:"Labels",builtIn:"14px"},diagramTitle:{label:"Diagram title",follows:"Labels",builtIn:"12px"},diagramCallout:{label:"Diagram measurement",follows:"Labels",builtIn:"12px"},diagramStatLabel:{label:"Diagram stat name",follows:"Labels",builtIn:"11px"},diagramStatValue:{label:"Diagram stat value",follows:"Labels",builtIn:"11px"}};var QL={SpecTable:JL,FAQ:hw,Collections:ZL,Contents:$p};function eR(){return on("efficient.section-text-regions",()=>new Map)}function Pve(e){let o=eR();for(let[t,r]of Object.entries(e)){if(co(QL,t))throw new Error(`lib/sections/section-text-regions: "${t}" is a builder section; its table is the builder's`);let a=o.get(t);if(a&&a!==r)throw new Error(`lib/sections/section-text-regions: "${t}" already has a table`);o.set(t,r)}}function cs(e){return e?z(QL,e)??eR().get(e)??null:null}function oR({nodeId:e,sectionType:o,partStyles:t,sizeCaps:r,children:a}){let n=O7(null),{selectedPartId:s}=A7(),{setPartStyle:l}=fs(),i=E7(_7()),d=Ct(),f=JSON.stringify([t??null,r??null]);return T7(()=>{let x=n.current,u=cs(o);if(!x||!e||!u)return;let h=[],I=Array.from(x.querySelectorAll(`[${ta}]`));for(let S of I){let v=Km(u,S.getAttribute(ta));if(!v)continue;let O=Qp(S);O&&h.push(O);let R=Ws(v),T=$t(e,R);S.setAttribute(Pr,T);let g=t?.[R];if(u[v].sized&&Mv(g)){let w=Hv(g,i,{sizeCap:la(r,R),fonts:d}),_={fontFamily:S.style.fontFamily,fontSize:S.style.fontSize},E=S.getAttribute(na);w.fontFamily&&(S.style.fontFamily=w.fontFamily),w.fontSize&&(S.style.fontSize=w.fontSize);let D={fontFamily:w.fontFamily?S.style.fontFamily:void 0,fontSize:w.fontSize?S.style.fontSize:void 0},b=g?.textStyle;wv(b)&&S.setAttribute(na,b),h.push(()=>{zv(S.style,_,D),E===null?S.removeAttribute(na):S.setAttribute(na,E)})}if(T===s){let w=tu(S,$v(g,u[v],i,d),d);l({partId:T,...wg(S),base:w})}}return()=>{for(let S of h)S();for(let S of I)S.removeAttribute(Pr)}},[e,o,s,l,i,f,d]),P7("div",{ref:n,style:{display:"contents"},children:a})}import{jsx as Cg,Fragment as tR}from"react/jsx-runtime";import{createContext as F7,useContext as rR,useMemo as B7}from"react";var kg=F7(null),aR=e=>e==null||e===""?void 0:String(e);function vg({content:e,children:o}){let t=B7(()=>Qx(e),[e]);return Cg(kg.Provider,{value:t,children:o})}function jve({id:e,children:o}){let t=rR(kg),r=aR(e);return Cg(tR,{children:o(r?t?.entries.get(r):void 0)})}function Gve({id:e,children:o}){let t=rR(kg),r=aR(e);return Cg(tR,{children:o(r?t?.numbers.get(r):void 0)})}var N7={SectionTextParts:oR},M7="color-mix(in oklab, var(--bg) 40%, #ffffff)",H7="12vh";function W7({style:e,children:o}){let{appState:t}=Pg(u=>u),r=t.data.content,a=t.data.root;if(bP(r))return jo("div",{className:"sf-themed-content",style:{...e,background:M7,minHeight:"100vh",paddingBottom:H7},children:jo("div",{style:{background:"var(--bg)"},children:jo(vg,{content:r,children:o})})});let n=vx(r)&&CP(a,r),s=vx(r)?kP(a,r):null,l=s?{[wP]:s}:null,i=RC(a?.widthChoice),d=i?{[LC]:i}:null,f=n?null:gL(r),x=f?{[IL]:f}:null;return jo("div",{className:`sf-themed-content${n?` ${gP}`:""}`,style:e,...x,...l,...d,children:jo("div",{style:{background:"var(--bg)",minHeight:"100%"},children:jo(vg,{content:r,children:o})})})}function yPe({propsTheme:e,propsFonts:o,propsCornerStyle:t,propsCornerRadiusPx:r,propsHeadingCompression:a,propsHeadingTypography:n,pageBackground:s,chromeInheritsSiteBackground:l,suppressPreviewNav:i,footer:d,overlay:f,children:x}){kL();let u=Pg(I=>I.appState.data.root?.props),h=Pg(I=>YP(I.appState.data.content));return jo(Tg,{siteFooterRootProps:u?.kind===Jv?u:void 0,inPlaceFooterProps:h,propsTheme:e,propsFonts:o,propsCornerStyle:t,propsCornerRadiusPx:r,propsHeadingCompression:a,propsHeadingTypography:n,pageBackground:s,chromeInheritsSiteBackground:l,onClickCapture:i,body:I=>nR(L7,{children:[jo(W7,{style:I,children:x}),d,f]})})}function Tg({propsTheme:e,propsFonts:o,propsCornerStyle:t,propsCornerRadiusPx:r,propsHeadingCompression:a,propsHeadingTypography:n,pageBackground:s,chromeInheritsSiteBackground:l,onClickCapture:i,siteFooterRootProps:d,inPlaceFooterProps:f,body:x}){let{chromeRootProps:u}=pL(),h=D7(()=>XP(u,f),[u,f]),{theme:I,fonts:S,sizes:v,cornerRadiusPx:O,cardShadow:R,shadowColor:T,cardGap:g,hoverEffect:w,headingCompression:_,siteWidth:E,siteGutter:D,siteGutterPhone:b,blockGap:F,blockGapPhone:y,siteLengthUnits:k,headingTypography:P,heroBackgroundFollowsWidth:C,photographyGrayscale:B,textStyles:H,wordStyles:q,themeFromDocument:$}=ko(),le=Ct(),pe=$?e:I,ee=$?o:S,xe=$?void 0:v,oe=$?r===void 0?qw[Kw(t)]:Vw(r):O,ie=$?{}:k,ge=$?a:_,Re=$?n:P,$e=[$T(WT($?void 0:H),le),zT(oC(Re).italicStrong)].filter(Boolean).join(`
|
|
336
|
-
`),yo=hg(),oo={...Dw(pe),...Gw(xe),...tC(Re),...yo.style,...l?{}:Tf(s)};return nR("div",{className:`sf-theme-surfaces sf-theme-accent ${[EC($?void 0:b),rP($?void 0:y)].filter(Boolean).join(" ")}`.trim(),style:{...wb(ee,le),...vb($?null:q,le),...Nw(pe),...Hw(pe),...Ww(pe),...Fd(pe),...Yw(oe,ie.cornerRadiusUnit),...Qw($?void 0:R,$?void 0:T,$?void 0:w),...uC($?void 0:E,ie.siteWidthUnit),...PC($?void 0:D,ie.siteGutterUnit),...OC($?void 0:b,ie.siteGutterPhoneUnit),...oP($?void 0:F,ie.blockGapUnit),...tP($?void 0:y,ie.blockGapPhoneUnit),...Dd($?void 0:C)},"data-sf-headings":eC(ge),[gC]:Rd(d??h),[Jd]:Pk(d??h),"data-sf-card-shadow":$?void 0:Xw(R),"data-sf-card-gap":$?void 0:Zw(g),"data-sf-card-hover":$?void 0:Jw(w),onClickCapture:i,children:[$e?jo("style",{"data-sf-text-styles":"",dangerouslySetInnerHTML:{__html:$e}}):null,jo(mL,{grayscale:$?void 0:B,children:jo(_L,{value:N7,children:jo(hL,{ink:Rw(pe),children:jo(R7,{fallback:null,children:jo(V0,{rootProps:d??h,children:x(oo)})})})})})]})}var sR=e=>{e.target?.closest?.("a")&&e.preventDefault()};var $7=/(-?(?:\d+\.?\d*|\.\d+))(?:s|d|l)?vh\b/g;function z7(e,o){return e.replace($7,(t,r)=>`${+(Number(r)*o/100).toFixed(3)}px`)}function iR(e,o){for(let t=0;t<e.length;t++){let r=e.item(t),a=e.getPropertyValue(r);if(!a.includes("vh"))continue;let n=z7(a,o);n!==a&&e.setProperty(r,n,e.getPropertyPriority(r))}}function dR(e,o){for(let t of Array.from(e)){let r=t.style;r&&iR(r,o);let a=t.cssRules;a&&dR(a,o)}}function lR(e,o){for(let t of Array.from(e.styleSheets)){let r;try{r=t.cssRules}catch{continue}dR(r,o)}for(let t of Array.from(e.querySelectorAll('[style*="vh"]')))iR(t.style,o)}function fR(e,o){lR(e,o);let t=e.defaultView,r=0,a=()=>{r||!t||(r=t.requestAnimationFrame(()=>{r=0,lR(e,o)}))};e.addEventListener("load",a,!0);let n=t?new t.MutationObserver(a):null;return n?.observe(e,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["style"],characterData:!0}),()=>{n?.disconnect(),e.removeEventListener("load",a,!0),r&&t&&t.cancelAnimationFrame(r)}}var Y7=1440,Eg=800;function pR({starter:e,config:o,metadata:t,busy:r,onAdd:a}){let{mirrorHostStyles:n}=cl(),[s,l]=Og(null),[i,d]=Og(Eg),[f,x]=Og(null);return U7(()=>{if(!s)return;let u=fR(s,Eg),h=s.defaultView,I=()=>{f&&d(Math.max(Eg,Math.ceil(f.getBoundingClientRect().height)))},S=h&&f?new h.ResizeObserver(I):null;return f&&S?.observe(f),I(),()=>{u(),S?.disconnect()}},[s,f]),cR("div",{className:"sf-starter",children:[cR(K7,{padding:"none",className:"sf-starter-picture",children:[Tt("div",{inert:!0,className:"sf-starter-frame",children:Tt(q7,{width:Y7,height:i,children:Tt(j7,{id:`page-starter-${e.id}`,title:e.title,mirrorStyles:n,onDocument:l,height:"fill",children:Tt(Vf,{document:s??void 0,children:Tt(Tg,{onClickCapture:sR,body:u=>Tt("div",{className:"sf-themed-content",style:u,children:Tt("div",{ref:x,style:{background:"var(--bg)"},children:Tt(fL,{config:o,data:e.layout,metadata:t})})})})})})})}),Tt("div",{className:"sf-starter-add",children:Tt(G7,{onClick:()=>a(e),loading:r,"aria-label":c("Add \u201C{name}\u201D",{name:e.title}),children:c("Add page")})})]}),Tt(V7,{size:"sm",children:e.title})]})}import{useMemo as sZ}from"react";import{sessionRegistry as lZ}from"efficient-easel/screen/lib/session";import{useEaselSession as iZ}from"efficient-easel/screen/lib/session-context";import{currentEaselSession as X7}from"efficient-easel/screen/lib/session";var Z7={general:!0,commerce:!0,service:!0};function _g(e){let o=e?.sets;return o?Object.fromEntries(ib.map(t=>[t,o.includes(t)])):Z7}function Ag(e=X7()){return _g(e.blocks)}import{currentEaselSession as vR}from"efficient-easel/screen/lib/session";import{SITE_SIDE as xR}from"efficient-easel/screen/lib/content/length-units";var uR=[{text:"Ticker item"},{text:"Ticker item"},{text:"Ticker item"},{text:"Ticker item"}],MPe={label:"Scrolling Bar",defaultProps:{items:[],tone:"scrim",borders:!0,size:Qb,separator:ew,scrollDirection:fi}};var mR=()=>[{text:c("Spec label"),tone:"normal"},{text:c("Spec value"),tone:"muted"},{text:c("Spec label"),tone:"normal"},{text:c("Spec value"),tone:"muted"}],$Pe={label:"Spec Strip",defaultProps:{cells:[{text:"",tone:"normal"},{text:"",tone:"normal"}],fill:"dark"}};function xo(e,o,t,r={}){return{type:e,props:{...o(e),id:t(e),...r}}}function hR(e,o,t){return xo(K,e,o,{...t,sectionPaddingTop:void 0,sectionPaddingBottom:void 0})}var ru={Manifesto:(e,o)=>({type:K,props:{...e(K),id:o(K),direction:"row",share:"equal",sectionHeightMode:"screen",name:"Brand Text",content:[xo(K,e,o,{direction:"column",justify:"center",blockSpacing:"gap",name:"Text",sectionPaddingTop:100,sectionPaddingBottom:100,sectionPaddingLeft:xR,sectionPaddingRight:xR,content:[xo("Text",e,o,Jt()),xo("Text",e,o,hr()),xo("Text",e,o),xo("Stats",e,o)]}),hR(e,o,{direction:"column",name:"Picture",content:[]})]}}),Split:(e,o)=>({type:K,props:{...e(K),id:o(K),direction:"row",share:"equal",sectionHeightMode:"screen",sectionHeightValue:70,name:"Image & Text Split",content:[xo(K,e,o,{direction:"column",justify:"center",blockSpacing:"gap",name:"Text",sectionPaddingTop:100,sectionPaddingBottom:100,sectionPaddingLeft:60,sectionPaddingRight:60,content:[xo("Text",e,o,Jt()),xo("Text",e,o,hr()),xo("Text",e,o),xo("ButtonBlock",e,o)]}),hR(e,o,{direction:"column",name:"Image",content:[xo("ImageBlock",e,o)]})]}}),Subscribe:(e,o)=>({type:K,props:{...e(K),id:o(K),direction:"column",name:"Subscribe",content:[xo("Text",e,o,hr()),xo("Text",e,o),xo("Form",e,o)]}}),Ticker:(e,o)=>IR("Scrolling Bar",ec,ma,uR.map(t=>({text:t.text,style:oc,muted:!0})),e,o),SpecStrip:(e,o,t)=>IR("Spec Strip",t?.theme?{...gl,sectionAccent:Ad(er(t.theme))}:{...gl,sectionBorder:{top:1}},xa,mR().map(r=>({text:r.text??"",style:yl,muted:r.tone==="muted"})),e,o)};function IR(e,o,t,r,a,n){return xo(K,a,n,{...ua,...o,blockSpacing:"gap",padV2:!0,name:e,sectionPaddingTop:t.top,sectionPaddingBottom:t.bottom,sectionPaddingTopPhone:t.topPhone,sectionPaddingBottomPhone:t.bottomPhone,content:r.map(s=>xo("Text",a,n,{text:s.text,...s.muted?{tone:"dim"}:{},_partStyles:{text:s.style}}))})}function gR(e){return z(ru,e)??null}import{isNodeList as Fg}from"efficient-easel/data";var pTe=Object.keys(cg),J7={Logos:NA,DocMasthead:RF,DocTabs:GF,Timeline:fF,TimelineTrack:cF},Q7={PaymentBadges:MA,PaymentLogosBlock:HA,Integrations:zB};function au(e,o,t){let r={};for(let a of Object.keys(o(e.type)))r[a]=void 0;for(let[a,n]of Object.entries(e.props))r[a]=Fg(n)?n.map(s=>au(s,o,t)):n;return r.id=t(e.type),{type:e.type,props:r}}var yR=e=>({...e?.theme?{theme:e.theme}:{},...e?.site?{site:e.site}:{},press:!0});function mi(e,o,t=0,r=()=>({})){return(a,n,s)=>{let{nodes:l}=Oa({type:e,props:{...a(e),...r(),id:n(e)}},o,yR(s));return au(l[t],a,n)}}var eq={Stats:tq,Cards:oq};function oq(){let e=Rr("Cards");if(!e)return null;let o=mi("Cards",e,0,fA);return(t,r,a)=>{let n=o(t,r,a);return{...n,props:{...n.props,name:"Cards section"}}}}function tq(){let e=Rr("StatsParagraph");return e?(o,t,r)=>{let{nodes:a}=Oa({type:"StatsParagraph",props:{...o("StatsParagraph"),...bA(),id:t("StatsParagraph")}},e,yR(r)),n=a[0],s=Fg(n.props.content)?n.props.content.filter(f=>f.props?.cardStyle===void 0):[],l=bR(AI(wA(),"table")),i=s.map(SR),d=au({...n,props:{...n.props,content:[...i,l]}},o,t);return{...d,props:{...d.props,name:"Stats section"}}}:null}function SR(e){return e.props?.name==="Words"?{...e,props:{...e.props,widthFitPhone:"fill"}}:Fg(e.props?.content)?{...e,props:{...e.props,content:e.props.content.map(SR)}}:e}var bR=e=>Rt([e],(o,t)=>`${o}-seed-${t}`)[0];function rq(e,o){if(!m1(e,o))return null;let t=z(eq,e);if(t)return t();let r=Rr(e);return r?mi(e,r,0,z(J7,e)??z(rL,e)??z(Q7,e)):null}function aq(e){return(o,t,r)=>{let a=n=>{if(n.type==="Stats"){let l=au(bR(AI([],"list")),o,t);return{...l,props:{...l.props,name:"Numbers"}}}let s=qe(n,l=>ze(l,a));return s===n?n:{type:n.type,props:s.props}};return a(e(o,t,r))}}function ps(e,o=Ta){let t=gR(e);return t?aq(t):rq(e,o)}import{blockTypesIn as wR}from"efficient-easel/screen/lib/document/block-types-in";var CR=()=>({}),kR=new Map;function nq(e){let o=kR.get(e);if(o)return o;let t=new Set,r=z(it,e);if(r)for(let s of r.seeds(CR))for(let l of wR({type:r.childType,props:s}))t.add(l);let a=ps(e);if(a){let s=0;for(let l of wR(a(CR,i=>`${i}-${s+=1}`)))t.add(l)}t.delete(e);let n=[...t].sort();return kR.set(e,n),n}function Bg(e){if(!e||!e.sets&&!e.allow&&!e.deny?.length)return null;let o=_g(e),t=e.allow?new Set(e.allow):null,r=new Set(e.deny??[]),a=new Set(Object.keys(e.host??{})),n=i=>{if(r.has(i))return!1;if(a.has(i))return!0;let d=pb(i);return!d||!o[d]?!1:t?t.has(i):!0},s=new Map,l=i=>{let d=s.get(i);if(d!==void 0)return d;s.set(i,!1);let f=n(i)&&nq(i).every(l);return s.set(i,f),f};return{sets:o,offers:l}}var sq="block-offer";function Lg(e=vR()){return e.cache(sq,()=>Bg(mn(e)))}function PR(e,o=vR()){let t=Lg(o);return t?t.offers(e):!0}var TR={name:"catalogueLabel",applies:e=>co(Qr,e),draw(e,o){e.label=z(Qr,o)}};import{jsx as Hg}from"react/jsx-runtime";import{parseBlockWidthFit as cq,phoneKey as Ot,tabletKey as xt}from"efficient-easel/draw";import{jsx as lq}from"react/jsx-runtime";import{phoneKey as nu}from"efficient-easel/draw";var OR={name:"sectionGroupAllow",applies:e=>xf.includes(e),panel(e,o,t,r){let a=e.fields?.sections;a&&(a.allow=[...r.sectionGroupAllow])}},Rg=new Set(Object.keys(wt)),ER={name:"openSlotDisallow",applies:()=>!0,panel(e,o,t,r){let a=r.contentSectionKeys;if(e?.fields)for(let n of Object.values(e.fields)){let s=n;if(s.type!=="slot"||s.allow)continue;let l=o==="Flex"?a.filter(i=>!Rg.has(i)):a;s.disallow=Array.from(new Set([...s.disallow??[],...l]))}}};var AR=Array.from(new Set([...mb.map(e=>e.type),...Rg]));function Dg(e,o){return AR.includes(e)||o?.sitsInBox===!0}var iq=Array.from(new Set([...AR,...id,"GalleryItem"])),dq={not:{context:"parentOffersPositions",is:!1}},fq={not:{context:"parentTileSlot",is:!1}},_R=[dx,nu("gridSpan"),nu("gridRowSpan")],FR={name:"cellWidth",applies:(e,o,t)=>(iq.includes(e)||Dg(e,t))&&!!t&&typeof t.render=="function",panel(e,o,t){let r=t.cellWidthFields;e.fields={...e.fields,...r()};let a=Object.keys(r());e.fields=No(e.fields??{},a.filter(n=>!_R.includes(n)),dq),e.fields=No(e.fields??{},_R,fq)},draw(e){let o=e.render;e.render=t=>{let r=GC(t.gridSpan),a=qC(t.gridRowSpan),n=YC(t[dx]),s=ZC(t[nu("gridSpan")]),l=JC(t[nu("gridRowSpan")]),i=o(t);if(r==null&&a==null&&n==null&&s==null&&l==null)return i;let d={};r!=null&&(d[KC]=String(r)),a!=null&&(d[VC]=String(a)),s!=null&&(d[QC]=String(s)),l!=null&&(d[ek]=String(l));let f=n!=null?{[XC]:n}:void 0;return lq(de,{className:"sf-grid-cell",style:f,...d,children:i})}}};function BR(e,o){let t=e.props?.id,r=o.appState?.data?.content;return!Array.isArray(r)||typeof t!="string"?!0:!r.some(a=>a?.props?.id===t)}var xi={not:{context:"heldByANode",is:!0}};function su(e,o){return"parent"in o?o.parent!=null:!!Kt(o.appState,e.props?.id)}function Kt(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 rn(s??{})){let i=r(l,s);if(i!==void 0)return i}}};return r(t,null)}var pq=new Set(["Text","Heading"]),uq=new Set(["h1","h2","h3","h4","h5","h6"]);function LR(e,o){return e==="Heading"?!0:e!=="Text"?!1:typeof o.tag=="string"&&uq.has(o.tag)?!0:Tr(o,"text").textStyle?.startsWith("heading-")===!0}var Ur={not:{context:"blockOutsideBox",is:!0}},RR={all:[Ur,{not:{context:"boxSharesWidth",is:!0}}]},DR={all:[Ur,{not:{context:"boxSharesWidthPhone",is:!0}}]},NR={all:[Ur,{not:{context:"boxSharesWidthTablet",is:!0}}]};function $R(e,o,t){return{any:[{field:xt(e),is:o},{all:[{field:xt(e),set:!1},t??{field:e,is:o}]}]}}function zR(e,o,t){return{any:[{field:Ot(e),is:o},{all:[{field:Ot(e),set:!1},t??{field:e,is:o}]}]}}var UR={any:[{field:"textFit",is:"shrink"},{all:[{field:"textFit",set:!1},{not:{context:"textWrapsByDefault",is:!0}}]}]},mq=[[["_gBlockSize","minWidth",xt("minWidth"),Ot("minWidth"),"maxWidth",xt("maxWidth"),Ot("maxWidth")],Ur],[["widthFit"],RR],[[xt("widthFit")],NR],[[Ot("widthFit")],DR],[["width"],{all:[RR,{field:"widthFit",is:"fixed"}]}],[[xt("width")],{all:[NR,$R("widthFit","fixed")]}],[[Ot("width")],{all:[DR,zR("widthFit","fixed")]}]],MR=$R("textFit","shrink",UR),HR=[[["_gText","textFit",xt("textFit"),Ot("textFit")],Ur],[["minFont"],{all:[Ur,UR]}],[[xt("minFont")],{all:[Ur,MR]}],[[Ot("minFont")],{all:[Ur,zR("textFit","shrink",MR)]}]],lu=(e,o)=>Kt(o.appState,e.props?.id),iu=e=>!!e&&typeof e.type=="string"&&dd(e.type)!==null,Ng=e=>(e.type==="Flex"||e.type==="HeroGroup")&&Tn(e.type,e.props?.direction)==="row",Mg=e=>{let o=cq(e);return o!==void 0&&o!=="fit"},xq={blockOutsideBox:(e,o)=>!iu(lu(e,o)),boxSharesWidth:(e,o)=>{let t=lu(e,o);return!iu(t)||!Ng(t)?!1:Wm({...t.props,direction:"row"})!==""?!0:Hm(t.props?.share)!==""&&!Mg(e.props?.widthFit)},boxSharesWidthTablet:(e,o)=>{let t=lu(e,o);if(!iu(t)||!Ng(t))return!1;if(rw(t.props?.[xt("columns")])!==""||Wm({...t.props,direction:"row"})!=="")return!0;let r=tw(t.props?.[xt("share")])??t.props?.share;return Hm(r)!==""&&!Mg(e.props?.[xt("widthFit")]??e.props?.widthFit)},boxSharesWidthPhone:(e,o)=>{let t=lu(e,o);if(!iu(t)||!Ng(t))return!1;let r=t.props?.phoneRow;return(Number(r)===2||Number(r)===3)&&!aw(r,t.props?.[Ot("share")])&&!Mg(e.props?.[Ot("widthFit")]??e.props?.widthFit)}},hq=e=>/^_[gds][A-Z]/.test(e);function Iq(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&&!hq(r[n][0]);)n++;return Object.fromEntries([...r.slice(0,n),...Object.entries(t),...r.slice(n)])}function WR(e,o,t){let r=Object.entries(e);return Object.fromEntries([...r.slice(0,o),...Object.entries(t),...r.slice(o)])}function gq(e,o,t){let r=Object.keys(o);if(r.includes("_dSize")){let{_gBlockSize:a,...n}=t;return WR(o,r.indexOf("_dSize")+1,n)}return yq.has(e)&&r.includes("_gSpacing")?WR(o,r.indexOf("_gSpacing"),t):{...o,...t}}var yq=new Set(["Text","Heading"]);function Sq(e,o){let{_gText:t,...r}=o;return Iq(e,"_gText",r)??{...e,...o}}function bq(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",xt("textFit"),Ot("textFit")])a in r&&(r[a]=e[a]);o.set(t,r)}return r}}var jR={name:"blockSize",applies:(e,o,t)=>Dg(e,t)&&!!t&&typeof t.render=="function",panel(e,o,t){let r=pq.has(o),{text:a}=t.blockSizeFields(r?{tablet:!0,textFit:o==="Heading"?"shrink":"wrap"}:{}),{size:n}=t.blockSizeFields({tablet:!0}),s=gq(o,e.fields??{},et(n,mq));if(r){let l=et(a,HR);if(s=Sq(s,l),o==="Text"){let i=et(t.blockSizeFields({tablet:!0,textFit:"shrink"}).text,HR),d=bq(i),f=e.resolveFields,x=(u,h)=>{let I=f?f(u,h):h.fields,S=v=>LR(o,u?.props??{})?d(v??h.fields):v;return I instanceof Promise?I.then(S):S(I)};e.resolveFields=x}}e.fields=s,Dt(e,{...xq,textWrapsByDefault:l=>!LR(o,l.props??{})})},draw(e,o){wq(e,o)}};function wq(e,o){let t=e.render;e.render=r=>{let a=lp(r),n=fI(a),s=t(r),l=n&&fI(a,{atSectionLine:!0});return n===null?s:Hg(Cq,{size:n,sectionSize:l??n,atEdge:o===K,canvasAttrs:r.editor?.isEditing?E1(a):GR,inCell:O1(a),fillsPhone:v1(a),widens:_1(a),children:s})}}var GR={};function Cq({size:e,sectionSize:o,atEdge:t,canvasAttrs:r,inCell:a,fillsPhone:n,widens:s,children:l}){let i=tf(),d=kr(t?"edge":"by-box"),f=d?e:o,x=f.className,u=i?.phoneCells===!0,h=n&&i?.phoneRowFits===!0,I=s?Hg(xE,{children:l}):l;return Hg(vr,{className:[x,u?a:"",h?k1:""].filter(Boolean).join(" "),...Object.keys(f.style).length?{style:f.style}:{},attrs:d&&r!==GR?{...f.attrs,...r}:f.attrs,children:I})}import{Fragment as Rq,jsx as pu}from"react/jsx-runtime";import{jsx as Po,Fragment as Ug}from"react/jsx-runtime";import{createContext as us,useContext as Et}from"react";var kq=new Set(["Flex","Grid"]);function jr(e){return typeof e=="string"&&kq.has(e)}var Ma="contentWidth",Wg="full",$g="content";function Ii(e){let o=e?.[Ma];return o===Wg?!1:o===$g?!0:void 0}function KR(e,o){return e&&!o}function du(e){return e.loop==="scroll"&&e.direction!=="tabs"&&e.direction!=="accordion"&&!qk(e)&&!jA(e.scrollDirection)}function hi(e,o){return jr(e)&&du(tl(o,!1))?In({}):In(o)}function fu(e,o){return typeof e!="string"||!Nd(e)||Gs[e]==="rawMarkup"?hi(e,o).background??"full":hi(e,o).background??Md(o).background}function cu(e){return e!=="full"}function qR(e,o,t){if(!Array.isArray(e)||typeof o!="string")return;let r=(a,n,s,l,i)=>{for(let d of a){let f=d?.props??{};if(f.id===o)return n;let x=jr(d?.type),u=(l?hi(d?.type,f).content:null)==="content"?!0:s,h=x&&(n.inBox?Ii(f)??u:u),I={insideGutter:n.insideGutter||h||x&&du(tl(f,i)),inBox:n.inBox||x};for(let S of Lt({type:d?.type,props:f})){let v=f[S],O=r(v,I,u,!1,i||ra(d?.type,S));if(O!==void 0)return O}}};return r(e,{insideGutter:!1,inBox:!1},t,!0,!1)}var vq=" [--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))))]",Pq="[--sf-edge-g:0px] [--sf-edge-al:var(--sf-edge-l)] [--sf-edge-ar:var(--sf-edge-r)]",Tq="[--sf-edge-l:var(--sf-edge-ld,0px)] [--sf-edge-r:var(--sf-edge-rd,0px)] max-view-desktop:[--sf-edge-l:var(--sf-edge-lt,var(--sf-edge-ld,0px))] max-view-desktop:[--sf-edge-r:var(--sf-edge-rt,var(--sf-edge-rd,0px))] max-view-wide:[--sf-edge-l:var(--sf-edge-lp,var(--sf-edge-lt,var(--sf-edge-ld,0px)))] max-view-wide:[--sf-edge-r:var(--sf-edge-rp,var(--sf-edge-rt,var(--sf-edge-rd,0px)))]",VR="max-w-[100vw]",Oq=`ml-[calc(-1_*_(var(--sf-edge-g)_+_var(--sf-edge-al)))] mr-[calc(-1_*_(var(--sf-edge-g)_+_var(--sf-edge-ar)))] w-[calc(100%_+_2_*_var(--sf-edge-g)_+_var(--sf-edge-al)_+_var(--sf-edge-ar))] ${VR}`;function YR(e,o=!1){let t={},r=e.pad??{},a=wk({left:r.left,right:r.right},{left:r.leftPhone,right:r.rightPhone},{left:r.leftTablet,right:r.rightTablet},{left:r.left,right:r.right},{desktop:r.unit,tablet:r.unitTablet,phone:r.unitPhone},0,e.site?"site":"box"),n=a.style;for(let[f,x]of[["l","paddingLeft"],["r","paddingRight"]]){let u=n[x];u!==void 0&&(t[`--sf-edge-${f}d`]=typeof u=="number"?`${u}px`:String(u));let h=n[`--sf-pad-${f}-tablet`],I=n[`--sf-pad-${f}-phone`];h!==void 0&&(t[`--sf-edge-${f}t`]=String(h)),I!==void 0&&(t[`--sf-edge-${f}p`]=String(I))}let s=yr(e.site?"site":"box"),l=a.classes.includes(s.className.split(" ")[0]),i=e.gutter?`${s.className} ${s.edge}${vq}`:`${Pq}${l?` ${s.className}`:""}`,d=o?` ${wC}${e.gutter?` ${CC}`:""}`:"";return{className:`${i} ${Tq}${d}`,style:t}}function i0e(e,o=!1){let{className:t,style:r}=YR(e,o);return{className:`${t} ${Oq}`,...Object.keys(r).length?{style:r}:{}}}var Eq="[--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 _q="--sf-edge-beyond";function XR(e){return`max(0px,calc((${e===null?js:`min(${js},${e})`} - ${Mo}) / 2))`}var Aq=`${Eq} ml-[calc(-1_*_(var(--sf-edge-g)_+_var(--sf-edge-al)_+_var(--sf-edge-bl)))] mr-[calc(-1_*_(var(--sf-edge-g)_+_var(--sf-edge-ar)_+_var(--sf-edge-br)))] w-[calc(100%_+_2_*_var(--sf-edge-g)_+_var(--sf-edge-al)_+_var(--sf-edge-ar)_+_var(--sf-edge-bl)_+_var(--sf-edge-br))] pl-[calc(var(--sf-edge-g)_+_var(--sf-edge-al)_+_var(--sf-edge-bl))] pr-[calc(var(--sf-edge-g)_+_var(--sf-edge-ar)_+_var(--sf-edge-br))] ${VR}`;function d0e(e){let{className:o,style:t}=YR(e);return{className:`${o} ${Aq}`,style:{...t,[_q]:e.beyond??"0px"}}}var gi=us(!1);function S0e(){return Et(gi)}function b0e({children:e}){return Po(gi.Provider,{value:!0,children:e})}var zg=us(!1);function jg({children:e}){return Po(zg.Provider,{value:!0,children:e})}var ZR=us(null);function Gg({ground:e,children:o}){return Po(ZR.Provider,{value:e,children:o})}var Kg=us(!1);function Fq(){return Et(Kg)}function JR({atTop:e,nested:o}){return Po(Ug,{children:Fq()?o:e})}var yi=us(void 0);function QR({children:e}){return Po(yi.Provider,{value:null,children:e})}function qg(){return Et(yi)===void 0&&!Et(Kg)&&!Et(gi)}function ms({own:e,followed:o}){return Po(Ug,{children:qg()?e():o()})}var eD=us(null);function oD({value:e,children:o}){return Po(eD.Provider,{value:e,children:o})}function tD({draw:e}){return Po(Ug,{children:e(Et(eD))})}function w0e(){return Et(yi)??null}function rD({contained:e,framedClass:o,fillClass:t,columnClass:r,style:a,tabLabel:n,pad:s,border:l,outerAttrs:i,box:d=!1,edge:f=!1,outerStyle:x,outerClass:u,bleed:h=!1,siteSide:I=!1,part:S,children:v}){let O=Et(gi),R=vt(),T=R?` ${yr(I?"site":"box").onceFrame}`:"",g=Et(zg),w=KR(e,O),_=w&&!g,E=at(),D=!!(l&&_),b=D?u:Co(u??"",E.className)||void 0,F=D||!E.className?i:{...i,...E.attrs},y=s?aa(s,_):null,k=y&&R?{root:y.root?{...y.root,className:ot(y.root.className,!0)}:null,outer:y.outer?{...y.outer,className:ot(y.outer.className,!0)}:null}:y,P=k?.root??null,C=l&&!_?l:null,B=d&&!h?R?`${rx} ${SC(I?"site":"box")}`:rx:null,H=[_?`${o}${T}`:t,_?B:null,P?.className,C?Ik:null].filter(Boolean).join(" "),q=Bq(h&&_,P||C?{...a,...P?.style,...C}:a),$=Et(yi),le=Et(ZR),pe=d&&f&&$===void 0?{gutter:w,...s?{pad:s.values}:{},beyond:w&&g?XR(le):"0px",...I&&w?{site:!0}:{}}:null,ee=d?Po(Kg.Provider,{value:!0,children:Po(yi.Provider,{value:pe,children:v})}):v,xe=w?Po(gi.Provider,{value:!0,children:ee}):ee,oe=k?.outer??null,ie=F&&Object.keys(F).length>0?F:null,ge=Po("div",{...oe?null:ie,className:!oe&&b?H?`${H} ${b}`:b:H,style:oe||!x?q:{...q,...x},"data-tab-label":n,...oe?null:S,children:g?Po(zg.Provider,{value:!1,children:w&&!h?Po("div",{className:B?`${r}${T} ${B}`:`${r}${T}`,children:xe}):xe}):xe}),Re=oe?Po("div",{...ie,className:b?`${oe.className} ${b}`:oe.className,style:x?{...oe.style,...x}:oe.style,...S,children:ge}):ge;return E.scope(l&&_?Po("div",{className:Co(Vd,E.className),style:{display:"contents",...l},...E.attrs,children:Re}):Re)}function Bq(e,o){return e?{...o,paddingLeft:0,paddingRight:0}:o}import{jsx as Lq}from"react/jsx-runtime";function aD({children:e}){return Lq(de,{className:KA,children:e})}function Dq({side:e,children:o}){return qg()?pu(aD,{children:pu(de,{className:qA(e),children:o})}):pu(Rq,{children:o})}var nD={name:"boxJoin",applies:(e,o,t)=>e===K&&!!t&&typeof t.render=="function",draw(e){let o=e.render;e.render=t=>{let r=Bp(t.join);return r?pu(Dq,{side:r,children:o(t)}):o(t)}}};var sD=(e,o)=>e.fields?.[o]?.type==="slot",Nq=(e,o)=>sD(o,Pe)||Td(e).some(t=>sD(o,t)),lD={name:"cardTemplateOnInsert",applies:(e,o,t)=>Nq(e,t),panel(e,o){let t=e.resolveData;e.resolveData=(r,a)=>{let n=r.props??{},s=a?.trigger,l=s==="insert"?Cd(o,n):s==="copy"?wd(o,n):n,i=l===n?r:{...r,props:l};return t?t(i,a):i}}};import{jsx as bi}from"react/jsx-runtime";import{Fragment as Ha,jsx as We,jsxs as Vg}from"react/jsx-runtime";import{createContext as Yg,useContext as Gr,useId as Uq}from"react";import{REPEAT_ATTRIBUTE as jq,REPEAT_INDEX_ATTRIBUTE as Gq}from"efficient-easel/draw";import{jsx as $0e}from"react/jsx-runtime";import{createContext as Wq,useContext as cD,useMemo as $q}from"react";var iD="title";function dD(e){return`${e}Alt`}function Mq(e){let o=e.find(t=>typeof t?.url=="string");return{url:o?.url??"",alt:typeof o?.alt=="string"?o.alt:""}}function fD(e,o){let t={[iD]:typeof e.title=="string"?e.title:""};for(let{key:r,kind:a}of e.schema??[]){let n=e.fields?.[r];if(a==="text"&&typeof n=="string")t[r]=n;else if(a==="date"&&typeof n=="string")t[r]=n&&o?o(n):n;else if(a==="images"&&Array.isArray(n)){let{url:s,alt:l}=Mq(n);t[r]=s,t[dD(r)]=l}}return t}function Hq(e,o){return typeof o!="string"?o.flatMap(t=>Hq(e,t)):e===wf||!vP(e)?[]:o==="image"?Px(e,["images"]).map(t=>({key:t.key,label:t.label,kind:"image",alt:dD(t.key)})):o!=="text"?[]:[{key:iD,label:c("Title")},...Px(e,["text","date"]).map(t=>({key:t.key,label:t.label}))]}var pD=Wq(null);function zq(){return cD(pD)?.record??null}function G0e(e){let o=zq();return o!==null&&o.type===e?o:null}function uD(){let e=cD(pD);return $q(()=>e&&e.record.type!==wf?fD(e.record,e.dateWords):null,[e])}function aOe({props:e,editing:o,children:t}){let r=Gr(Si);return!o&&Xm(e,r?.row)?null:We(Ha,{children:t})}var mu=Yg(null);function nOe({field:e,children:o}){let t=Gr(mu);return We(Ha,{children:o(t&&t.field===e?t.id:void 0)})}function Kq(e,o){return e?.find(t=>!!o[t.field]?.trim()&&!t.gates.some(r=>Xm({[tn]:r},o)))?.field??""}var Si=Yg(null),uu=Yg(null),qq={label:"text-[length:var(--size-label,12px)]"},Vq=`flex min-h-6 items-center border border-dashed border-line px-2 py-1 ${qq.label} text-fg-dim`;function sOe({name:e,label:o,editing:t}){let r=Gr(uu)?.(e),a=ef()!=="";return r!=null&&r!==!1?a?We(de,{className:"contents",children:r}):We(Ha,{children:r}):t?We(de,{className:Vq,children:c("Shown by the section: {name}",{name:o?.trim()||e})}):null}function lOe(){return Gr(Si)}function Xg({type:e,props:o,children:t}){let r=Gr(Si),a=uD(),n=r?.row??a;return We(Ha,{children:t(Ew(e,o,n,r?.ownerType,r?.fields,r?.slot),r,n)})}function Yq({attrs:e,selected:o,hover:t,action:r,titleField:a,children:n}){let s=Uq(),{press:l,disabled:i}=r,d=r.label?.trim(),f=!d&&a?{id:`${s}-title`,field:a}:null;return Vg("div",{...e,id:s,className:t&&!i?`${yh} ${PE}`:yh,children:[We("button",{type:"button",[EE]:"",className:i?FE:AE,"aria-pressed":o,...d?{"aria-label":d}:{"aria-labelledby":f?.id??s},...i?{"aria-disabled":!0,tabIndex:-1}:null,onClick:i?void 0:l}),We(mu.Provider,{value:f,children:n})]})}function iOe({ownerId:e,ownerType:o,slot:t=Pe,Template:r,rows:a,items:n,fields:s,states:l,stateLine:i,actions:d,pressTitles:f,previewHover:x,fallback:u,copyAttrs:h,wrapCopy:I,rowKey:S,hostParts:v,children:O}){let R=Gr(Si),T=Gr(mu),g=Gr(uu);if(!r||(r.blockCount??0)<=0)return We(Ha,{children:u});let w=R!==null,_=Cw(o),E=x??R?.previewHover,D=r.blockCount===1?We(zk,{children:We(r,{className:Bk})}):We(r,{}),b=new Set,F=(k,P)=>{if(!S)return P;let C=S(k,P);for(;b.has(C);)C=`${C}#${P}`;return b.add(C),C},y=a.map((k,P)=>{let C=l?.[P],B={row:k,index:P,ownerType:o,slot:t,item:n?.[P],nested:w,...s?{fields:s}:null,...C?{state:C}:null,..._?{linesBetween:_}:null,...E?{previewHover:E}:null},H=jh(C)?Vg(Ha,{children:[D,i==="under"?We("span",{"aria-hidden":"true",className:wE}):Uh(C)?Vg("span",{"aria-hidden":"true",className:CE,children:[We("span",{className:kE}),We("span",{className:vE})]}):We("span",{"aria-hidden":"true",className:bE})]}):D,q={[jq]:`${e}:${t}`,[Gq]:P,...typeof h=="function"?h(B):h},$=d?.[P],le=TE(C,i),pe=$?We(Yq,{attrs:{...q,...le},selected:C?.selected===!0,hover:i!=="under",action:$,titleField:Kq(f,k),children:H}):T?We("div",{...q,...le,children:We(mu.Provider,{value:null,children:H})}):We("div",{...q,...le,children:H}),ee=I?I(pe,B):pe;return We(Si.Provider,{value:B,children:v?We(uu.Provider,{value:xe=>v(B,xe),children:ee}):g?We(uu.Provider,{value:null,children:ee}):ee},F(B,P))});return We(Ha,{children:O(y)})}var mD={name:"clickableParts",applies:(e,o,t)=>typeof t?.render=="function"&&e!==ro&&e!==un,draw(e,o,t){let r=e,a=()=>r.textParts??r.fields,n=r.partSizeCaps,s=r.render,l=t.inspector?.PartAnchors,i=(d,f)=>mv(a(),f,x=>Tw(o,d,x));r.render=d=>{let f=Tv(d),x=HO(d);return d.editor?.isEditing&&l?bi(Xg,{type:o,props:d,children:u=>bi(l,{needles:i(d,u),styles:f,motions:x,type:o,sizeCaps:n,children:bi(FL,{value:n,children:s(d)})})}):!Object.keys(f).length&&!Object.keys(x).length?s(d):bi(Xg,{type:o,props:d,children:u=>bi(KO,{needles:i(d,u),styles:f,motions:x,type:o,atEdge:o===K,sizeCaps:n,children:s(d)})})}}};import{jsx as xD}from"react/jsx-runtime";var hD={name:"sectionCorners",applies:(e,o,t)=>o.isSection(e)&&!!t&&typeof t.render=="function",panel(e,o,t){e.fields={...e.fields,...t.sectionShapeFields()}},draw(e){let o=e.render;e.render=t=>{let r=hk(t.sectionCorners,t.sectionCornerSides,t.sectionCornersUnit),a=o(t);return r?xD(de,{className:"sf-section-corners",style:{display:"contents",...r},children:a}):a}}},Zg=["CollectionCard"],ID={name:"cardCorners",applies:(e,o,t)=>Zg.includes(e)&&!!t&&typeof t.render=="function",panel(e,o,t){e.fields={...e.fields,...t.cardShapeFields()}},draw(e){let o=e.render;e.render=t=>{let r=$P(t.cardCorners,t.cardCornerSides,t.cardCornersUnit),a=o(t);return r?xD(de,{className:"sf-card-corners",style:{display:"contents",...r},children:a}):a}}};var gD={name:"emptyHeadings",applies:()=>!0,panel(e,o,t){let r=t.dropEmptyHeadings,a=e.resolveFields;e.resolveFields=a?(n,s)=>{let l=a(n,s);return l instanceof Promise?l.then(i=>r(i??s.fields)):r(l??s.fields)}:(n,s)=>r(s.fields)}};var yD={name:"showWhenRows",applies:()=>!0,panel(e,o,t){let r=t.rowsShownForNode,a=e.showWhenFacts??{},n=e.resolveFields;e.resolveFields=n?(s,l)=>{let i=n(s,l);return i instanceof Promise?i.then(d=>r(d??l.fields,s,l,a)):r(i??l.fields,s,l,a)}:(s,l)=>r(l.fields,s,l,a)}};import{jsx as SD,jsxs as Xq}from"react/jsx-runtime";var Zq="Flex",bD=(e,o)=>e[o]!==void 0&&e[o]!==!1&&!e.editor?.isEditing,wD={name:"headCore",applies:(e,o,t)=>typeof t?.render=="function",draw(e){let o=e.render;e.render=t=>bD(t,Ml)?SD(de,{className:Nc,children:t[Ml]==="empty"?null:o(t)}):o(t)}},CD={name:"headBox",applies:(e,o,t)=>e===Zq&&typeof t?.render=="function",draw(e){let o=e.render;e.render=t=>bD(t,Nl)?Xq(de,{className:Mc,children:[SD(Hc,{}),o(t)]}):o(t)}};import{createElement as Jq}from"react";var kD={name:"hiddenNodes",applies:(e,o,t)=>typeof t?.render=="function",draw(e,o,t){let r=o===K?"edge":t.isSection(o)?"section":"by-box",a=e.render;e.render=n=>{if(or(n))return null;let s=sl(n),l=Wk(s,Yv(n),{sectionClassName:sl(n,{atSectionLine:!0}),line:r});return Jq(Nk.Provider,{value:l},a(n))}}};import{jsx as t9}from"react/jsx-runtime";import{createContext as PD,createElement as vD,useContext as Qq}from"react";var TD=PD(null),e9=PD(!1),NOe=TD.Provider;function o9(e,o,t){return e===void 0||e===""||o===null||o.length===0||!t.includes(e)?!0:o.includes(e)}function OD({name:e,editing:o,children:t}){let r=Qq(TD);return o||o9(e,r?.selected??null,r?.known??[])?t:vD("div",{hidden:!0,style:{display:"none"}},vD(e9.Provider,{value:!0},t))}var r9="Flex",ED={name:"showFor",applies:(e,o,t)=>e===r9&&typeof t?.render=="function",draw(e){let o=e.render;e.render=t=>{let r=XE(t[Kn])?.name;if(r===void 0)return o(t);let a=!!t.editor?.isEditing;return t9(OD,{name:r,editing:a,children:o(t)})}}};var _D=kf.mediaFields,a9=e=>LP(e)?e.src:e;function n9(e,o){let t=o;for(let r of z(_D,e)??[])t=RP(t,r,a9);return t}var AD={name:"mediaValues",applies:(e,o,t)=>typeof t?.render=="function"&&(z(_D,e)?.length??0)>0,draw(e,o){let t=e.render;e.render=r=>t(n9(o,r))}};import{jsx as wi,Fragment as FD,jsxs as BD}from"react/jsx-runtime";var s9="!grow-0 !shrink-0 !basis-0",l9=["[.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(" "),i9="flex flex-col w-full min-w-0 [&>*]:grow";function LD({anchor:e}){let o=da(e),t=kr(),r=ef();return o?wi("span",{id:o,className:Co(t?`sf-section-anchor ${s9} ${l9}`:"sf-section-anchor",r),"aria-hidden":"true"}):null}function d9({anchor:e,copiesInBox:o,children:t}){let r=tf()?.columnsRow===!0,a=$k(),n=da(e)!=="";return o?wi(FD,{children:t}):r&&!a&&n?BD(de,{className:i9,children:[wi(LD,{anchor:e}),t]}):BD(FD,{children:[wi(LD,{anchor:e}),t]})}var RD={name:"sectionAnchor",applies:(e,o,t)=>o.isSection(e)&&!!t&&typeof t.render=="function",panel(e,o,t){let r=t.anchorFields;e.fields={...e.fields,...r()}},draw(e,o){e.defaultProps={...e.defaultProps,anchor:""};let t=e.render;e.render=r=>wi(d9,{anchor:r.anchor,copiesInBox:Yo(o,r),children:t(r)})}};import{jsx as f9}from"react/jsx-runtime";var DD=Object.fromEntries(Ub.map(e=>[e,"picture"])),c9={[K]:"box",Ticker:"marquee",...Object.fromEntries(ud.map(e=>[e,"cards"])),...DD},ND=(e,o)=>!Ud.has(e)&&!!o&&typeof o.render=="function";function MD(e,o,t,r){e.fields={...e.fields,...t.animationTabFields(o,r)}}function HD(e,o){let t=e,r=t.render;t.render=a=>{let n=Sn(a);return!n||Yo(o,a)?r(a):f9(kc,{views:n,editing:!!a.editor?.isEditing,takesViewHide:!0,atEdge:o===K,children:r(a)})}}var WD={name:"sectionAnimation",applies:(e,o,t)=>o.isSection(e)&&ND(e,t),panel:(e,o,t)=>MD(e,z(c9,o)??"section",t,o),draw:(e,o)=>HD(e,o)},$D={name:"blockEntrance",applies:(e,o,t)=>!o.isSection(e)&&ND(e,t),panel:(e,o,t)=>MD(e,z(DD,o)??"block",t,o),draw:(e,o)=>HD(e,o)};import{jsx as p9}from"react/jsx-runtime";var zD=(e,o)=>!Ud.has(e)&&!!o&&typeof o.render=="function";function u9(e){let o=vh.filter(t=>t.block===e);return o.length===1?o[0].focus:void 0}function UD(e,o){let t=e,r=t.render,a=u9(o),n=e.drawsPictures===!0;t.render=s=>{let l=zn(s);return!l||Yo(o,s)?r(s):p9(Kc,{views:l,...a?{origins:NO(s,a)}:{},takesViewHide:!0,atEdge:o===K,zoomInside:n?"picture":"layer",children:r(s)})}}var jD={name:"sectionScroll",applies:(e,o,t)=>o.isSection(e)&&zD(e,t),draw:(e,o)=>UD(e,o)},GD={name:"blockScroll",applies:(e,o,t)=>!o.isSection(e)&&zD(e,t),draw:(e,o)=>UD(e,o)};import{jsx as m9}from"react/jsx-runtime";import{createElement as x9}from"react";var Jg=["sectionHeightMode","sectionHeightModeTablet","sectionHeightModePhone"];function h9(e,o){let t=e.props??{};return Jg.some(r=>t[r]==="fill")?!0:("parent"in o?o.parent:Kt(o.appState,t.id))?.type===K}var Qg={name:"sectionHeight",applies:(e,o,t)=>o.isSection(e)&&!Fk.has(e)&&!!t&&typeof t.render=="function",panel(e,o,t){let r=t.heightFields;e.fields={...e.fields,...r()};let a=r({fill:!0}),n=new WeakMap,s=i=>{if(!i||!Jg.some(f=>f in i))return i;let d=n.get(i);if(!d){d={...i};for(let f of Jg)f in d&&(d[f]=a[f]);n.set(i,d)}return d},l=e.resolveFields;e.resolveFields=(i,d)=>{let f=l?l(i,d):d.fields,x=u=>h9(i??{},d)?s(u??d.fields):u;return f instanceof Promise?f.then(x):x(f)}},draw(e,o){let t=e.render;e.render=r=>{if(Yo(o,r))return t(r);let a=Dk(r);return a?m9(vr,{className:a.className,style:a.style,...o===K?{attrs:Zb}:null,children:t(r)}):t(r)}}},KD={name:"sectionHeightFillRoot",applies:Qg.applies,draw(e,o){let t=e.render;e.render=r=>{let a=Yo(o,r)?null:Hk(Rk(r),Lk(r).join(" "));return x9(Mk.Provider,{value:a},t(r))}}};import{jsx as xu}from"react/jsx-runtime";import{PIN_ATTR as qD,PIN_FRAME_ATTR as I9}from"efficient-shell/format";var YD=ZD("sectionSticky",(e,o,t)=>o.isSection(e)&&!uk.has(e)&&!!t&&typeof t.render=="function",!0),XD=ZD("cardSticky",(e,o,t)=>Zg.includes(e)&&!!t&&typeof t.render=="function",!1);function ZD(e,o,t){return{name:e,applies:o,panel(r,a,n){let s=cx.has(a);r.fields=y9(r.fields??{},et(n.stickFields({intro:s,screens:t,above:t}),S9(s))),t&&Dt(r,{heldByANode:su})},draw(r,a){let n=r.render,s=cx.has(a);r.render=l=>{let i=px(l,{atScreenTop:s,above:t});if(!i)return n(l);let d=x=>{let u=xu(af,{children:n(l)});return xu(de,{...x.attrs,style:x.style,children:x.attrs[qD]===""?xu("div",{[I9]:"",children:u}):u})},f=t?px(l,{atScreenTop:s,track:t,above:!0}):i;return!f||f.attrs[qD]!==""?d(i):xu(ms,{own:()=>d(f),followed:()=>d(i)})}}}}var VD=[St,ls],g9="_gStick";function y9(e,o){let t=Object.keys(e),r=e[$n];if(!r){let O=t.findIndex(R=>VD.includes(R));return O<0?{...e,...o}:Object.fromEntries([...t.slice(0,O).map(R=>[R,e[R]]),...Object.entries(o),...t.slice(O).map(R=>[R,e[R]])])}let{[g9]:a,...n}=o,s=O=>O.startsWith(bn),l=Object.entries(n).filter(([O])=>!s(O)),i=Object.entries(n).filter(([O])=>s(O)),d=[r.dot,a?.dot].filter(O=>!!O),f=t.indexOf($n),x=t.findIndex((O,R)=>R>f&&VD.includes(O)),u=x<0?t.length:x,h=t.indexOf(vc),I=h>f&&h<u?h:u,S=O=>[O,O===$n?{...r,dot:{any:d}}:e[O]],v=[...t.slice(0,I).map(S),...l,...t.slice(I,u).map(S),...i,...t.slice(u).map(S)];return Object.fromEntries(v)}function S9(e){let o=i=>({field:i,in:[!0,!1]}),t=i=>e&&i==="stickTop"?{any:[{field:i,is:!0},mk]}:{field:i,is:!0},r=i=>({field:i,is:!0}),a=i=>({all:[i,xi,{not:{field:Js,is:!0}}]}),[n,s,l]=dk;return[[["stickTopDistance"],t("stickTop")],[["stickTopDistanceTablet"],Qt(["stickTopTablet","stickTop"],o,t)],[["stickTopDistancePhone"],Qt(["stickTopPhone","stickTopTablet","stickTop"],o,t)],[[n],a(r("stickTop"))],[[s],a(Qt(["stickTopTablet","stickTop"],o,r))],[[l],a(Qt(["stickTopPhone","stickTopTablet","stickTop"],o,r))],[[Kd],qd],[[Js],qd],[[ck],a(qd)]]}import{jsx as b9}from"react/jsx-runtime";var JD={name:"sectionBorder",applies:(e,o,t)=>o.isSection(e)&&!!t&&typeof t.render=="function",draw(e,o){if(yc.has(o))return;let t=e.render;e.render=r=>{let a=Sk(r.sectionBorder,r.sectionBorderPhone,r.sectionBorderTablet,yk(r)),n=t(r);return a?b9(de,{className:Vd,style:{display:"contents",...a},children:n}):n}}};import{jsx as ey}from"react/jsx-runtime";var QD={name:"sectionTheme",applies:(e,o,t)=>o.isSection(e)&&!iC.has(e)&&!!t&&typeof t.render=="function",panel(e,o,t){let{sectionThemeFields:r,SECTION_THEME_FOLLOW_LABEL:a}=t,n=ox.has(o);e.fields={...e.fields,...n?r(Bd,a):r()}},draw(e,o){let t=ox.has(o),r=e.render;e.render=a=>{let n=fC(t?{...a,sectionAccent:Bd(a.sectionAccent)}:a),s=r(a);if(!n)return s;let l=d=>ey(vr,{className:n.className,style:d,children:s}),i=n.style;return Yo(o,a)?ey("div",{className:n.className,style:{...i,display:"contents"},children:s}):fu(o,a)!=="content"?l(i):ey(ms,{own:()=>l({...i,...Us(Mo)}),followed:()=>l(i)})}}},eN={name:"slideTheme",applies:e=>e==="HeroSlide",panel(e,o,t){let{sectionThemeFields:r,BLOCK_THEME_FOLLOW_LABEL:a}=t;e?.fields&&(e.fields={...e.fields,...r(Bd,a)})}};import{jsx as Ke}from"react/jsx-runtime";var oN=null;function oy(e){oN=e}function tN(){return oN}import{jsx as w9}from"react/jsx-runtime";var C9="mx-auto w-full max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)]",rN=yr("box").frame,Ci=`${C9} ${rN}`,k9=yr("site").frame,v9=yr("none").frame;function o_e(e){let o=e===!0?"site":e===!1?"box":e;return o==="none"?v9:o==="site"?k9:rN}var P9="mx-auto w-full max-w-[1280px] px-[60px]",T9="max-[960px]:px-6",t_e=`${P9} ${T9}`;function r_e({contained:e,className:o="",style:t,pad:r,fillWidth:a="w-full",part:n,children:s}){return w9(rD,{contained:e,framedClass:`${Ci} ${o}`,fillClass:`${a} ${o}`,columnClass:Ci,style:t,pad:r,part:n,children:s})}var xs="--sf-sw-site",O9="--sf-sw-content",E9="--sf-bg-cap",_9="contents [--sf-site-width:var(--sf-sw-content)] max-view-wide:[--sf-site-width:var(--sf-sw-site)]",ty=({own:e,content:o,siteContent:t})=>e===!0&&o==="full"&&t!=="full",nN="contents view-wide:[--sf-site-width:100vw]",ry=({held:e},o,t)=>e?t:Ke(de,{className:o,children:t}),A9=`contents view-wide:[--sf-site-width:100vw] ${dB} view-wide:[--sf-site-gutter:var(--intro-edge)]`,ay=(e,o,t)=>o==="content"?`min(${xn(e,t)},var(${xs}))`:xn(e,t);function ki({content:e,contentMax:o,contentMaxUnit:t},r){return e==="full"?r!=="content"?js:null:o===null?null:ay(o,r,t)}function vi(e,o){return o===null?e:Ke(de,{className:"contents",style:{[xs]:Mo},children:Ke(de,{className:_9,style:{[O9]:o},children:e})})}var F9="--sf-content-cap",B9="contents max-view-wide:[--sf-content-cap:none]";function L9({content:e,contentMax:o,contentMaxUnit:t},r){return e==="full"?null:o!==null?ay(o,r,t):r==="content"?null:`var(${xs})`}function R9(e,o){return o===null?e:Ke(de,{className:"contents",style:{[xs]:Mo},children:Ke(de,{className:B9,style:{[F9]:o},children:e})})}var sN=`var(${xs},${Mo})`,Kr=(e,o,t="")=>e==="content"?Ke(de,{className:t||void 0,style:Us(Mo),children:Ke(Gg,{ground:sN,children:o})}):o;function lN(e,o,t,r,a){if(ty(t))return Kr(r,ry(t,nN,Ke(jg,{children:e({...o,contained:!0})})),a);if(t.content==="full")return Kr(r,e({...o,contained:!1}),a);let n=ki(t,r);return r==="content"&&n===null&&!t.own?e({...o,contained:!0}):Kr(r,vi(Ke(jg,{children:e({...o,contained:!0})}),n),a)}function D9(e,o,t,r,a){if(t==="hero"){let l=vi(e(o),ki(r,r.band));return r.band==="full"?Ke(de,{style:{[AC]:"none",[FC]:"initial",[BC]:"initial"},children:l}):r.band==="content"?Ke(de,{style:Dd(!0),children:l}):l}let n=r.band??"full",s=wr(o,{atSectionLine:!a});if(t==="rawMarkup"){if(r.content==="full")return Kr(n,e(o),s);let l=r.contentMax===null?Mo:ay(r.contentMax,n,r.contentMaxUnit);return Ke(de,{className:"contents",style:{[xs]:Mo},children:Kr(n,Ke(de,{className:s||void 0,style:Us(l),children:e(o)}),s)})}if(t==="scrollOver"){let l=r.content==="full",i=ty(r)?ry(r,A9,e({...o,fullWidth:!1})):vi(e({...o,fullWidth:l}),l?null:ki(r,n));return n==="content"?Ke(de,{className:"contents",style:{[E9]:Mo},children:i}):i}switch(t){case"both":return Kr(n,R9(e(o),L9(r,n)),s);case"contained":return lN(e,o,r,n,s);case"contentColumn":case"contentFull":case"productGrid":{let l=ty(r),i=r.content==="full"&&!l?"full":"page",d=l?ry(r,nN,e({...o,widthMode:i})):vi(e({...o,widthMode:i}),r.content==="full"?null:ki(r,n));return t==="productGrid"&&!r.own?n==="content"?Ke(Jf,{className:s?`${Ci} ${s}`:Ci,children:f=>Ke(de,{className:f,children:d})}):d:Kr(n,d,s)}default:return Kr(n,vi(e(o),ki(r,n)),s)}}function aN(e,o,t,r,a){let n=a===K?"edge":"by-box",s=l=>D9(e,o,t,r,l);return n==="edge"?s(!0):wr(o)===wr(o,{atSectionLine:!0})?s(!1):Ke(of,{line:n,draw:s})}function N9(e,o){let t=z(Gs,o);if(!t)return;let r=e.render;e.render=a=>{let n=Md(a),s={band:n.background,content:n.content??"content",contentMax:null},l=()=>t==="rawMarkup"?r(a):Ke(tD,{draw:I=>I?.background==="content"?Ke(Gg,{ground:sN,children:i(I)}):i(I)}),i=I=>{let S=I?{...s,band:I.background==="content"?s.band:I.background??s.band,content:I.content??s.content,own:I.background==="full"||I.content!==null,held:!0,siteContent:s.content}:s,v=aN(r,a,t,S,o);if(!jr(o))return v;let O=Ii(a),R=O===void 0?S.content:O?"content":"full";return R===S.content?v:Ke(JR,{atTop:v,nested:lN(r,a,{...S,content:R,own:!1},S.band??"full",wr(a))})},d=hi(o,a);if(!NC(d))return l();let f=t==="rawMarkup",x=fu(o,a),u=d.content??(f?"full":s.content),h={band:x,content:x==="content"?"content":u,contentMax:d.contentMax,contentMaxUnit:d.contentMaxUnit,own:!f,siteContent:s.content};return Ke(ms,{own:()=>Ke(oD,{value:{background:h.band,content:h.content},children:aN(r,a,t,h,o)}),followed:l})}}var M9={all:[xi,{not:{context:"runsEdgeToEdge",is:!0}}]},iN={name:"sectionWidth",applies:(e,o,t)=>Nd(e)&&!!t&&typeof t.render=="function",panel(e,o,t){let r=t.sectionOwnWidthFields({drawsFullOnItsOwn:z(Gs,o)==="rawMarkup"}),a=jr(o)?t.boxGutterFields():{},n={...e.fields,...a,...r},s=jr(o)?cN(o,e,n,[Ma]):n;Dt(e,{heldByANode:su}),jr(o)&&Dt(e,{runsEdgeToEdge:(l,i)=>du(tl(l.props??{},Aw(i.appState,l.props?.id)?.inCopy!==!1))}),e.fields=No(s,[Fo.background,Fo.content],jr(o)?M9:xi)},draw(e,o){N9(e,o)}};function H9(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 W9=new Set(["Heading","Text","ImageBlock","ButtonBlock"]),dN={name:"containedWidth",applies:(e,o,t)=>W9.has(e)&&!!t&&typeof t.render=="function",panel(e,o,t){let r=t.widthField;e.fields=cN(o,e,{...e.fields,...r("page")});let a=e.resolveFields;e.resolveFields=(n,s)=>{let l=a?a(n,s):s.fields,i=ax(n?.props??{},"page"),d=f=>H9(f,i);return l&&typeof l.then=="function"?l.then(d):d(l)}},draw(e){let o=e.render;e.render=t=>{let{mode:r}=ax(t,"page");return o({...t,contained:r!=="full"})}}},$9={not:{context:"inHeroGroupRow",is:!0}},fN={name:"buttonAlignInRow",applies:e=>e==="ButtonBlock",panel(e){let o=e;o.fields=No(o.fields??{},["align"],$9),Dt(o,{inHeroGroupRow:(t,r)=>{let a=Kt(r.appState,t.props?.id);return!!a&&a.type==="HeroGroup"&&Tn("HeroGroup",a.props?.direction)==="row"}})}};function z9(e){return Object.values(e).some(o=>!!o&&typeof o=="object"&&o.type==="slot")}var U9={any:[]},j9={all:[{not:{context:"outsideBox",is:!0}},{not:{context:"insideSiteGutter",is:!0}}]},G9={not:{context:"widthCappedByParent",is:!0}};function cN(e,o,t,r=["widthMode"]){if(e==="ButtonBlock")return No(t,["_gWidth",...r],U9);if(z9(t)){let a=(n,s)=>qR(s.appState?.data?.content,n.props?.id,cu(tN()));return Dt(o,{outsideBox:(n,s)=>a(n,s)?.inBox!==!0,insideSiteGutter:(n,s)=>a(n,s)?.insideGutter}),No(t,r,j9)}return Dt(o,{widthCappedByParent:(a,n)=>"parent"in n?uw(n.parent):BR({props:a.props??{}},n)}),No(t,r,G9)}var K9=new Set(["Reviews","Cards","FAQ","Prose","ProductHero","SpecTable","ProductGrid","ParagraphsA","KeyFeatures","Integrations","Stats","StatsParagraph","Chart","Mockup","Testimonials","Logos","ContactRouting","ContactLocations","SubmitBuild","ReviewForm","Form","AppointmentBooking","OrderSummary","DeliveryOptions","PaymentBadges","CheckoutCTA","Collections","AlloyWheelsListing","CatalogFilterBar","FitmentFinder","GalleryB","DocMasthead","DocBody","DocMetaCards","Masthead","FeaturedCover","LongRead","Series","Events","ArticleBody","SectionHeader","Grid","Flex","Spacer","Divider","CustomHTML","Breadcrumb","CategoryBar","DocTabs","Hero","HeroSingle","IntroBleed","Manifesto","Timeline","TimelineTrack","Footprint","Banner","TitleWithButtons","Ticker","SubscribeBlogs","TyreSizes","TyreFitment","EuTyreLabel","SpecStrip","ProcessSteps","DetailRows","FitmentTable","CompatibleTyres","RelatedProducts","BundleOffer","Split","Gallery","Subscribe","Countdown"]),pN={name:"sectionGroups",applies:(e,o)=>o.isSection(e)&&(K9.has(e)||o.isHostBlock(e)),panel(e,o,t){let r=t.assignSectionGroups;e?.fields&&(e.fields=r(e.fields,o))}},q9=new Set(["HeroSlide","HeroGroup"]),uN={name:"blockGroups",applies:(e,o,t)=>q9.has(e)||!o.isSection(e)&&Fp in(t?.fields??{}),panel(e,o,t){let r=t.assignSectionGroups;e?.fields&&(e.fields=r(e.fields,o))}};import{jsx as ny}from"react/jsx-runtime";var V9=new Set(["Flex","Grid"]),mN=e=>Object.entries(e.fields??{}).filter(([,o])=>o?.type==="slot").map(([o])=>o),Y9=(e,o)=>e.fields?.[o]?.ownPictures===!0,X9=["blockCount","blockIds"],Z9=new WeakMap,J9=new WeakMap;function Q9(e,o){let t=o?J9:Z9,r=t.get(e);if(r)return r;let a=e,n=s=>ny(QR,{children:ny(af,{ownPictures:o,children:ny(a,{...s})})});Object.assign(n,e);for(let s of X9)Object.defineProperty(n,s,{get:()=>e[s],configurable:!0,enumerable:!0});return t.set(e,n),n}var xN={name:"slotsStartAfresh",applies:(e,o,t)=>!V9.has(e)&&typeof t?.render=="function"&&mN(t).length>0,draw(e){let o=mN(e),t=e.render;e.render=r=>{let a={...r};for(let n of o){let s=r[n];typeof s=="function"&&(a[n]=Q9(s,Y9(e,n)))}return t(a)}}};var eV=new Set(["Form","Stats","Logos"]);function hN(){return[...eV]}function sy(e,o,t=[]){let r=new Set(e),a=cb.filter(d=>r.has(d)),n=a.filter(d=>d!=="Header"&&d!=="Footer"&&!xf.includes(d)),s=new Set([...o,...id,...hN()]),l=a.filter(d=>!s.has(d)),i=new Set([...a,...t]);return{isSection:d=>i.has(d)&&!vd(d),isHostBlock:()=>!1,sectionGroupAllow:n,contentSectionKeys:l}}var oV=[xN,AD,wD,OR,ER,uO,hD,JD,ID,hO,$D,GD,FR,iN,dN,fN,Qg,K0,RD,QD,WD,jD,YD,XD,nD,eN,jR,pN,uN,yD,gD,mD,CD,ED,KD,kD,TR,lD];function IN(e,o,t){let r=o;for(let a of oV)a.applies(e,t,r)&&(t.inspector&&a.panel?.(r,e,t.inspector,t),a.draw?.(r,e,t));return o}import{jsx as ly}from"react/jsx-runtime";import{ClockIcon as tV,DurationIcon as rV}from"efficient-easel/icons";import{MOTION_TIMING as gN}from"efficient-shell/format";import{useSelectedHost as aV}from"efficient-easel/easel";function hs(e){let{min:o,max:t,step:r,default:a}=gN[e].duration;return Er("Duration",ly(rV,{}),o,t,r,a,"s")}function Is(e){let{min:o,max:t,step:r,default:a}=gN[e].delay;return Er("Delay",ly(tV,{}),o,t,r,a,"s")}function gs(e,o){let t=e.render,r=a=>{let n=aV();return t({...a,value:o(a.value,n?.values)})};return{...e,render:a=>ly(r,{...a})}}function hu({readsSpeed:e}){return gs(hs("loop"),(o,t)=>Ap({loopDuration:o,speed:e?t?.speed:void 0}))}function Iu(){return gs(Is("loop"),e=>GA({loopDelay:e}))}import{jsx as no}from"react/jsx-runtime";import{DirectionDownIcon as nV,DirectionIcon as sV,DirectionLeftIcon as lV,DirectionRightIcon as iV,DirectionUpIcon as dV,EntranceBounceIcon as fV,EntranceFadeIcon as cV,EntranceFlipIcon as pV,EntranceGlideIcon as uV,EntranceRevealIcon as mV,EntranceRiseIcon as xV,EntranceScaleIcon as hV,EntranceSpinIcon as IV,NoSymbolIcon as gV}from"efficient-easel/icons";import{NoControlMark as yV,noControlField as SV}from"efficient-easel/screen/lib/document/panel-no-control-mark";import{customize as bV,group as wV}from"efficient-easel/screen/lib/document/box-fields";import{ENTRANCE_FROM as CV,ENTRANCE_FROM_DEFAULT as SN,ENTRANCE_KINDS as bN,ENTRANCE_KINDS_WITH_FROM as kV,entranceAttrs as vV,playEntrance as PV,readEntrance as TV}from"efficient-shell/format";var OV={none:"None",fade:"Fade",rise:"Rise",scale:"Scale",glide:"Glide",bounce:"Bounce",flip:"Flip",reveal:"Reveal",spin:"Spin"},EV={top:"Top",bottom:"Bottom",left:"Left",right:"Right"},_V={top:()=>no(nV,{}),bottom:()=>no(dV,{}),left:()=>no(iV,{}),right:()=>no(lV,{})},wN="Entrance",dy=bN.filter(e=>e!=="none"),CN=e=>({any:[{field:qo.kind,in:e},{all:[{field:qo.kind,set:!1},{field:Vs,in:e}]}]}),yN=(e,o)=>Qt(tt.slice(0,tt.indexOf(e)+1).reverse().map(t=>rt(qo.kind,t)),t=>({field:t,set:!0}),t=>t===qo.kind?CN(o):{field:t,in:o}),AV={any:[CN(dy),...tt.slice(1).map(e=>({field:rt(qo.kind,e),in:dy}))]},FV=tt.flatMap(e=>[[[rt(qo.from,e)],yN(e,kV)],[[rt(qo.duration,e),rt(qo.delay,e)],yN(e,dy)]]),BV={none:()=>no(gV,{}),fade:()=>no(cV,{}),rise:()=>no(xV,{}),scale:()=>no(hV,{}),glide:()=>no(uV,{}),bounce:()=>no(fV,{}),flip:()=>no(pV,{}),reveal:()=>no(mV,{}),spin:()=>no(IV,{})},kN="data-entrance-tile";function LV({kind:e}){let{attrs:o}=vV(TV(e,SN));return no("span",{className:"sf-entrance-stage",[kN]:e,children:no("i",{...o,children:BV[e]()})})}var RV=(e,o)=>{let t=e.querySelector(`[${kN}="${o}"] > i`);t&&PV(t)},DV="Effect",NV=()=>Lf(qo.kind,{label:wN,tileWord:DV,values:bN,fallback:"none",word:e=>OV[e],picture:e=>no(LV,{kind:e}),read:(e,o)=>Ys(e,o).kind,preview:RV}),iy=(e,o)=>Bf(qo[e],o,(t,r)=>Ys(t,r)[e]),MV=CV.map(e=>({label:EV[e],value:e,picture:_V[e]()}));function _t(){let e={[Fp]:wV(wN,{dot:AV}),...NV(),[Vs]:SV({type:"custom",render:()=>no(yV,{})},"always"),_cEntrance:bV(),...iy("from",On("From",no(sV,{}),MV,SN)),...iy("duration",hs("entrance")),...iy("delay",Is("entrance"))};return et(e,FV)}import{jsx as ht}from"react/jsx-runtime";import{EntranceRevealIcon as HV,NoSymbolIcon as WV,PercentIcon as vN,ScrollFadeInIcon as $V,ScrollFadeOutIcon as zV,ScrollMoveDownIcon as UV,ScrollMoveUpIcon as jV,ScrollParallaxIcon as GV,ScrollZoomInIcon as KV,ScrollZoomOutIcon as qV,ZoomInIcon as VV}from"efficient-easel/icons";import{customize as YV,group as XV}from"efficient-easel/screen/lib/document/box-fields";import{SCROLL_EFFECTS as TN,SCROLL_EFFECTS_WITH_ZOOM as ZV,SCROLL_END as JV,SCROLL_START as QV,SCROLL_ZOOM as eY}from"efficient-shell/format";var ON="Scroll",oY={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"},tY={none:()=>ht(WV,{}),"zoom-in":()=>ht(KV,{}),"zoom-out":()=>ht(qV,{}),"fade-in":()=>ht($V,{}),"fade-out":()=>ht(zV,{}),"move-up":()=>ht(jV,{}),"move-down":()=>ht(UV,{}),reveal:()=>ht(HV,{}),parallax:()=>ht(GV,{})},rY="Effect",EN=TN.filter(e=>e!=="none"),PN=(e,o)=>Qt(tt.slice(0,tt.indexOf(e)+1).reverse().map(t=>rt(uo.effect,t)),t=>({field:t,set:!0}),t=>({field:t,in:o})),aY={any:tt.map(e=>({field:rt(uo.effect,e),in:EN}))},nY=tt.flatMap(e=>[[[rt(uo.zoom,e)],PN(e,ZV)],[[rt(uo.start,e),rt(uo.end,e)],PN(e,EN)]]),sY=()=>Lf(uo.effect,{label:ON,tileWord:rY,values:TN,fallback:"none",word:e=>oY[e],picture:e=>tY[e](),read:(e,o)=>lr(e,o).effect}),fy=(e,o,t,r,a)=>Bf(e,Er(t,r,a.min,a.max,a.step,a.default,"%"),(n,s)=>lr(n,s)[o]);function Wa(){let e={[$n]:XV(ON,{dot:aY}),...sY(),[vc]:YV(),...fy(uo.zoom,"zoom","Zoom",ht(VV,{}),eY),...fy(uo.start,"start","Start",ht(vN,{}),QV),...fy(uo.end,"end","End",ht(vN,{}),JV)};return et(e,nY)}import{jsx as Bo}from"react/jsx-runtime";import{AccentIcon as lY,ContrastIcon as iY,EyeIcon as dY,ExpandIcon as fY,FinishIcon as cY,ImagesIcon as pY,NoSymbolIcon as AN,HoverLiftIcon as uY,HoverNextImageIcon as mY,HoverRotateIcon as xY,HoverZoomIcon as FN,OpacityIcon as hY}from"efficient-easel/icons";import{customize as IY,describedAs as BN,group as gY}from"efficient-easel/screen/lib/document/box-fields";import{effectTiles as LN}from"efficient-easel/screen/lib/document/effect-tiles";import{deviceField as ho}from"efficient-easel/screen/lib/document/device-fields";import{NoControlMark as yY,noControlField as SY}from"efficient-easel/screen/lib/document/panel-no-control-mark";var gu=e=>ho("desktop",gY("Hover",{dot:e})),RN=()=>ho("desktop",IY()),bY="What this does when a shopper points at it, or taps it on a phone.",wY="What this picture does when a shopper points at it. Black and white shows it in grey until then. A phone shows its colour.",CY="What this picture does when a shopper points at the card. Show next image covers the card or the picture with this product's photos, with arrows; a phone shows the picture as it is. Black and white shows it in grey until then.",kY="What this picture does when a shopper points at the card. Show next image covers the picture with the card's photos, with arrows; a phone shows the picture as it is. Black and white shows it in grey until then.",vY="When this shows. On card hover shows it while a shopper points at the card. A phone always shows it.",PY="What each card does when a shopper points at it. Show next image covers the card with this product's photos, with arrows; a phone shows the card as it is. Rotate turns the wheel picture.",TY="Which of the product's pictures the card shows.",OY="Same finish shows the photos of the finish the card shows, else the first group.",EY="Whole card hides the words under the photo. Picture keeps the words and swatches in view.",_Y={none:()=>Bo(AN,{}),nextImage:()=>Bo(mY,{}),rotate:()=>Bo(xY,{}),zoom:()=>Bo(FN,{}),lift:()=>Bo(uY,{}),mono:()=>Bo(iY,{})};function cy(e,o){let t=LN({label:c("Hover effect"),options:e.map(r=>({value:r,label:c(Pm[r]),picture:_Y[r]()})),fallback:o});return BN(t,{type:"select",label:"Hover effect",options:e.map(r=>({value:r,label:Pm[r]}))})}function DN(){return{[St]:gu({field:Qo,in:_m.filter(e=>e!=="none")}),[Qo]:ho("desktop",{...cy(_m,"none"),description:bY})}}function NN(e){let o=$b(e),t=xd(),r=GP(Fb);return{[St]:gu({any:[o,t]}),[Ge.kind]:ho("desktop",{...gs(cy(Eb,e),(a,n)=>Hb(n??{},e)),description:PY}),...py(t),[_b]:SY({type:"custom",render:()=>Bo(yY,{})},"always"),_cHover:RN(),[Ge.angle]:ho("desktop",Ze(gs(r,a=>Wb(a)),o)),[Ge.duration]:ho("desktop",Ze(hs("hover"),o)),[Ge.delay]:ho("desktop",Ze(Is("hover"),o))}}function py(e){let o=UP("Type",Bo(pY,{}),Bb.map(a=>({value:a,label:Lb[a]})),md.kind),t=On("Group",Bo(cY,{}),Rb.map(a=>({value:a,label:Db[a]})),md.group),r=On("Covers",Bo(fY,{}),Nb.map(a=>({value:a,label:Mb[a]})),md.cover);return{[Ge.mediaKind]:ho("desktop",Ze({...o,description:TY},e)),[Ge.mediaGroup]:ho("desktop",Ze({...t,description:OY},e)),[Ge.cover]:ho("desktop",Ze({...r,description:EY},e))}}function uy(e,o="",t=Rm.includes(o)){let r=Dm(e),a=Vb(e);return{[St]:gu(r),[Ge.kind]:my(zb,e,wY),...Rm.includes(o)?py(xd()):{},_cHover:RN(),...t?MN():{},[Ge.duration]:ho("desktop",Ze(hs("hover"),a)),[Ge.delay]:ho("desktop",Ze(Is("hover"),a))}}function MN(e=!1){let o=a=>e?a:Ze(a,qb()),t=Er("Zoom",Bo(FN,{}),sn.min,sn.max,sn.step,sn.min,sn.unit),r=Er("Darken on hover",Bo(hY,{}),Cn.min,Cn.max,Cn.step,Cn.fallback,Cn.unit);return{[Fm.zoom]:ho("desktop",o(t)),[Fm.darken]:ho("desktop",o(r))}}function my(e,o,t){let r=ho("desktop",{...gs(cy(e,o),a=>Gb({[Qo]:a},o,e)),description:t});return Object.assign(r,{[HN]:o})}var HN="sfPictureResting",_N=new WeakMap;function tAe(e,o,t){let r=e[Ge.kind],a=r?.[HN];if(!r||!a)return e;let n=o.props?.[Qo]==="nextImage",s=n?null:Ed(t.appState,o.props?.id);if(!n&&!ud.includes(String(s?.type??"")))return e;let l=_N.get(e);return l||(l={...e,[Ge.kind]:my(Am,a,CY)},_N.set(e,l)),l}var AY="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.",FY={none:()=>Bo(AN,{}),[Tm]:()=>Bo(lY,{})},rAe=ho("desktop",{...BN(LN({label:c("Hover effect"),options:Om.map(e=>({value:e,label:c(Em[e]),picture:FY[e]()})),fallback:"none"}),{type:"select",label:"Hover effect",options:Om.map(e=>({value:e,label:Em[e]}))}),description:AY}),BY=ho("desktop",{...On("Show",Bo(dY,{}),[{value:Lm,label:"Always"},{value:Bm,label:"On card hover"}],Lm),description:vY});function WN(){let e={any:[Dm("none"),{field:Qo,is:Tm},{field:ea,is:Bm}]},{[St]:o,[Ge.kind]:t,...r}=uy("none","",!0);return{[St]:gu(e),[Ge.kind]:t,[ea]:BY,...py(xd()),...r,...MN(!0)}}var aAe=my(Am,"none",kY);import{jsx as Pi}from"react/jsx-runtime";import{isNodeList as NY}from"efficient-easel/data";import{useEasel as MY}from"efficient-easel/easel";import{hiddenInView as HY,hiddenKeyOf as xy,hidePatch as WY,slotChildName as $Y,slotChildRowName as zY}from"efficient-easel/draw";var LY=new Set(["BookingBox","SubmitBox"]);function RY(e){return typeof e=="string"&&LY.has(e)}var DY=QP(RY,LT);function yu(e,o){return DY(e)||mT(o)}var Su=(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 UY}from"efficient-easel/screen/lib/document/device-fields";import{NoControlMark as jY}from"efficient-easel/screen/lib/document/panel-no-control-mark";var $N="notCardOfTemplate",zN={not:{context:$N,is:!0}},hy={any:[Id,zN]},kAe={[$N]:(e,o)=>{let t=Zm(o.appState,e.props?.id);return t===void 0?void 0:t===null}};function bu(e){let o=e.props?.content;return NY(o)?o:[]}var Cu=(e,o)=>HY(e.props??{},o),GY=(e,o)=>e.props?.[xy(o)]!==void 0;function UN(e,o=()=>!1,t="desktop"){return bu(e).flatMap(r=>typeof r?.props?.id!="string"?[]:bu(r).length&&!Cu(r,t)?UN(r,o,t):o(r)?[]:[r])}function KY(e,o,t,r="desktop"){let a=UN(e,t,r).map(l=>({child:l,name:o(l)})),n=new Set(a.map(l=>l.name)),s=new Set;return a.map(({child:l,name:i})=>{let d=i;if(s.has(i)){let f=2;for(;n.has(`${i} ${f}`);)f+=1;d=`${i} ${f}`,n.add(d)}return s.add(i),{id:l.props.id,label:d,shown:!Cu(l,r)}})}function wu(e,o,t){let r=a=>t==="desktop"?Cu(a,t):GY(a,t);return bu(e).flatMap(a=>r(a)?o(a)?[]:[a,...wu(a,o,t)]:wu(a,o,t))}function qY(e,o){let t={...e};for(let[r,a]of Object.entries(o))a===void 0||r===xy("desktop")&&a===!1?delete t[r]:t[r]=a;return Object.keys(t).length===Object.keys(e).length&&Object.keys(t).every(r=>t[r]===e[r])?e:t}function Iy(e,o,t){let r=bu(e),a=!1,n=r.map(s=>{if(a)return s;let l=s;if(s?.props?.id===o){let i=qY(s.props,t(s.props));i!==s.props&&(l={...s,props:i})}else l=Iy(s,o,t);return a=l!==s,l});return a?{...e,props:{...e.props,content:n}}:e}function jN(e,o,t,r="desktop"){return Iy(e,o,a=>r==="desktop"&&Cu({props:a},r)===!t?{}:WY(a,r,!t))}function VY(e,o,t){return t==="desktop"?jN(e,o,!0,t):Iy(e,o,()=>({[xy(t)]:void 0}))}function YY(e,o,t,r,a,n){return $Y(e).trim()?t(e):vw({ownerType:o,owner:r,fields:a,slot:n},Nt(e.props))?.label??t(e)}var XY="This page is read-only.";function ZY({card:e,ownerType:o,owner:t,fields:r,slot:a,labelOf:n,write:s,readOnly:l,view:i="desktop"}){let d=u=>zY(u,n,nn,void 0,Su),f=u=>yu(u.type,u),x=KY(e,u=>YY(u,o,d,t,r,a),f,i);return x.length?Pi(Hx,{parts:x,changed:wu(e,f,i).length>0,shown:u=>x.find(h=>h.id===u)?.shown??!0,disabledReason:l?XY:void 0,onPress:(u,h)=>s(I=>jN(I,u,h,i)),onReset:()=>s(u=>wu(u,f,i).reduce((h,I)=>VY(h,String(I.props.id),i),u))}):Pi(jY,{})}function JY(){try{let e=MY(a=>a),o=e.config.components??{},t=e.selectedItem;if(!t)return null;let r=Zm(e.appState,t.props?.id);return{labelOf:a=>o[a]?.label??a,card:t,ownerType:typeof r?.type=="string"?r.type:void 0,owner:r,fields:Fw(e.appState,r),slot:_w(e.appState,t.props?.id)??void 0}}catch{return null}}function QY({readOnly:e,view:o}){let t=JY(),r=dl();return t?Pi(ZY,{...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}})}}):Pi(Hx,{parts:[],changed:!1,shown:()=>!0,onPress:()=>{},onReset:()=>{}})}function vAe(e){return Ze(UY(e,{type:"custom",render:({readOnly:o})=>Pi(QY,{readOnly:o,view:e})}),zN)}import{customize as dX}from"efficient-easel/screen/lib/document/box-fields";import{jsx as gy}from"react/jsx-runtime";import{DirectionIcon as eX,LoopMarqueeIcon as oX,NoSymbolIcon as tX}from"efficient-easel/icons";import{customize as rX,describedAs as aX,group as nX}from"efficient-easel/screen/lib/document/box-fields";import{effectTiles as sX}from"efficient-easel/screen/lib/document/effect-tiles";function yy(){return ET("Direction",DI,fi,"A marquee cannot run diagonally, so the corners are not answers.",gy(eX,{}),OT)}var Sy=e=>nX("Loop",e?{dot:e}:void 0),lX={none:()=>gy(tX,{}),scroll:()=>gy(oX,{})};function iX(){let e=sX({label:c("Loop"),options:_p.map(({value:o,label:t})=>({value:o,label:c(t),picture:lX[o]()})),fallback:RI});return aX(e,{type:"select",label:"Loop",options:_p.map(({value:o,label:t})=>({value:o,label:t}))})}function GN(){return{[ls]:Sy(di),loop:iX(),_cLoop:rX(),scrollDirection:Ze(yy(),di),loopDuration:Ze(hu({readsSpeed:!1}),di),loopDelay:Ze(Iu(),di)}}var KN={field:ea,set:!0};function fX(){let e=WN(),o=[St,Qo],t=No(e,Object.keys(e).filter(n=>!o.includes(n)&&n!==ea),Id),r=No(t,[ea],KN),a=No(r,[Qo],hy);return No(a,[St],{any:[hy,KN]})}function ku(e,o=""){switch(e){case"section":case"block":return{..._t(),...Wa()};case"box":return{..._t(),...Wa(),...GN(),...fX()};case"picture":return{..._t(),...Wa(),...uy(jb(o),o)};case"textPart":return{..._t(),...Wa(),...DN()};case"cards":return{..._t(),...Wa(),...NN(Ab(o))};case"marquee":return{..._t(),...Wa(),[ls]:Sy(),_cLoop:dX(),scrollDirection:yy(),loopDuration:hu({readsSpeed:!0}),loopDelay:Iu()}}}import{blockSizeFieldSet as oZ}from"efficient-easel/screen/lib/document/block-size-fields";import{VIEW_KEY_ACCESS as tZ}from"efficient-easel/screen/lib/document/box-fields";import{jsx as qN,Fragment as cX,jsxs as pX}from"react/jsx-runtime";import{useSelectedHost as VN}from"efficient-easel/easel";import{VIEW_TIERS as uX,viewKeyAt as mX}from"efficient-easel/draw";var YN=e=>uX.find(o=>Object.values(po).some(t=>mX(t,o)===e))??"desktop";function xX(e,o,t){let r=e(o),a=YN(t);return{top:Yd(r,"top",a),bottom:Yd(r,"bottom",a)}}var hX=e=>e.startsWith(po.bottom)?"bottom":"top";function IX(e,o,t,r){let a=hX(r);return o(t,Yd(e(t),a,YN(r)),a)}function gX({frameOf:e,note:o,rowKey:t}){let r=VN()?.values,a=r?IX(e,o,r,t):null;return a?qN("p",{className:"es-field-hint",children:a}):null}var yX=new Set(wn());function XN(e,o,t){let r=_r({tablet:!0,siteSide:!0,...t?{label:t}:{},useFallback:a=>{let n=VN()?.values;return n?xX(e,n,a.name):{top:0,bottom:0}}});return Object.fromEntries(Object.entries(r).map(([a,n])=>{let s=n.render;return!yX.has(a)||typeof s!="function"?[a,n]:[a,{...n,render:l=>pX(cX,{children:[s(l),qN(gX,{frameOf:e,note:o,rowKey:a})]})}]}))}import{group as SX}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as bX,deviceMetaOf as QN}from"efficient-easel/screen/lib/document/device-fields";import{DESIGN_GROUPS as wy,SETTINGS_BUCKETS as wX}from"efficient-easel/panel";import{BUCKET_KEY as Io,DESIGN_GROUP_KEY as ys}from"efficient-easel/screen/lib/document/field-buckets";var Ti=wX;var CX="Editor only \u2014 not shown live",Cy={"Archive link":"Content",Article:"Content",Blocks:"Content","Blog posts":"Content","Browser mock":"Content",Button:"Content","Call to action":"Content","Car prompt":"Content","Card link":"Content","Card list":"Content",Cards:"Content","Claims bars":"Content","Contact info":"Content",Content:"Content",Display:"Content","Content source":"Content",Contents:"Content",Filters:"Content","Show on a card":"Content",Footnote:"Content",Form:"Content",Founders:"Content","Gallery A":"Content","Gallery B":"Content","Gallery link":"Content",Header:"Content","Header link":"Content","Image caption":"Content","In this issue":"Content",Items:"Content","Kanban columns":"Content",Lead:"Content","Left panel":"Content",Link:"Content",Links:"Content",List:"Content","Message form":"Content",Metadata:"Content",Milestones:"Content","Mockup card":"Content","Newsletter panel":"Content",Offices:"Content",Options:"Content","Others gallery":"Content","Overlay button":"Content",Product:"Content","Product page":"Content",Products:"Content","Pull quote":"Content",Questions:"Content","Recent issues":"Content","Recent posts":"Content",Reviews:"Content","Right panel \xB7 actions":"Content","Right panel \xB7 choices":"Content","Right panel \xB7 form":"Content","Routing groups":"Content",Rows:"Content",Section:"Content","Section header":"Content",Sections:"Content","Signup form":"Content",Source:"Content","Source product":"Content","Stat & note":"Content",Stats:"Content","Submit button":"Content","Success state":"Content",Wheel:"Content",Terminal:"Content",Text:"Content","Text column":"Content","Timeline entries":"Content","Top row":"Content",Total:"Content","Trailing note":"Content","\u201COther\u201D reason":"Content","Background images":"Design",Gallery:"Content",Image:"Content","Image column":"Content",Images:"Content",Logo:"Content",Map:"Content",Media:"Content","Background image":"Design",Color:"Design","Image tint":"Design",Style:"Design",Shape:"Design",Shadow:"Design",Texture:"Design",Overlay:"Design","Text style":"Design",Entrance:"Animation",Hover:"Animation",Loop:"Animation",Scroll:"Animation",Advanced:"Advanced",Anchor:"Anchor",Arrangement:"Layout","Auto-slide":"Layout",Bar:"Layout","Cell size":"Size",Behavior:"Layout",Schedule:"Layout",Controls:"Layout",Diagram:"Layout",[CX]:"Layout","Filters shown":"Layout","Slide picker":"Layout",Arrows:"Layout","On a phone":"Layout",Placement:"Position",Nudge:"Position","Stick to top":"Position","Image gallery":"Layout",Grid:"Layout",Layout:"Layout",Padding:"Layout",Price:"Layout",Preview:"Layout",Setup:"Layout","Show / hide elements":"Layout","Show in the buy box":"Layout",Visibility:"Layout",Width:"Size",Size:"Size",Height:"Size"},eM={"AlloyWheelsListing._gCards":"Design","Flex._gLink":"Link","LongRead._gLink":"Link"},oM={"Text._gSpacing":"Size","Heading._gSpacing":"Size"};function ZN(e,o,t){let r=`${e}.${o}`;return z(oM,r)??z(eM,r)??z(Cy,t)}function kX(e){return e==="Animation"?[Io.Animation]:[Io.Design,ys[e]]}function vu(...e){let o=[];for(let t of e)for(let r of Object.values(t)){let a=QN(r),n=ar(a?a.inner:r),s=n?z(Cy,n.label):void 0;if(s)for(let l of kX(s))o.includes(l)||o.push(l)}return o}var dFe=[...vu(_r({tablet:!0,siteSide:!0}),An("full"),Fn(),Bn(),fl()),...Object.keys(_r({tablet:!0,siteSide:!0})),...Object.keys(An("full")),...Object.keys(Fn()),...Object.keys(Bn()),...Object.keys(fl())],fFe=[...vu(En()),...Object.keys(En())],cFe=[...vu(_n()),...Object.keys(_n())],pFe=[...vu(_t()),...Object.keys(_t())],uFe=Object.keys(FT()),mFe=Object.keys(BT()),vX={"ImageBlock._gStyle":"duplicated the Style bucket header above it (2026-09-04)","ButtonBlock._gStyle":"duplicated the Style bucket header above it (2026-09-04)","HeroGroup._gContent":"duplicated the Content bucket header above it (2026-09-04)","HeroGroup._gLayout":"duplicated the Layout bucket header above it (2026-09-04)","Footer._gLayout":"duplicated the Layout bucket header above it (2026-09-04)","FooterLogo._gContent":"duplicated the Content bucket header above it (2026-09-04)","FooterLogo._gStyle":"duplicated the Style bucket header above it (2026-09-04)","FooterMenu._gContent":"duplicated the Content bucket header above it (2026-09-04)","FooterMenu._gStyle":"duplicated the Style bucket header above it (2026-09-04)","FooterGroup._gLayout":"duplicated the Layout bucket header above it (2026-09-04)","FooterText._gContent":"duplicated the Content bucket header above it (2026-09-04)","FooterText._gStyle":"duplicated the Style bucket header above it (2026-09-04)","FooterSocial._gStyle":"duplicated the Style bucket header above it (born tabbed, 2026-09-17)","FooterSocial._gLayout":"duplicated the Layout bucket header above it (born tabbed, 2026-09-17)","MenuBlock._gContent":"duplicated the Content bucket header above it (born tabbed, H.1)","MenuBlock._gStyle":"duplicated the Style bucket header above it (born tabbed, H.1)","SocialLogosBlock._gStyle":"duplicated the Style bucket header above it (born tabbed, H.1)","SocialLogosBlock._gLayout":"duplicated the Layout bucket header above it (born tabbed, H.1)","SearchBlock._gStyle":"duplicated the Style bucket header above it (born tabbed, H.2)","CartBlock._gStyle":"duplicated the Style bucket header above it (born tabbed, H.2)","CountrySwitchBlock._gStyle":"duplicated the Style bucket header above it (born tabbed with its Show as, 2026-10-17)","Split._gContent":"duplicated the Content bucket header above it (2026-09-04)","Gallery._gVehicleContent":"duplicated the Content bucket header above it (2026-09-04)","Gallery._gWheelContent":"duplicated the Content bucket header above it (2026-09-04)","Gallery._gOthersContent":"duplicated the Content bucket header above it (2026-09-04)","Subscribe._gHeadCopy":"duplicated the Content bucket header above it (2026-09-04)","Subscribe._gLeftCopy":"duplicated the Content bucket header above it (2026-09-04)","Subscribe._gRightCopy":"duplicated the Content bucket header above it (2026-09-04)","CollectionCard._gContent":"duplicated the Content bucket header above it (A Card Sets Its Own Corners)","HeroSlide._gContent":"duplicated the Content bucket header above it (Hero Slide Tabs And Theme)","KeyFeatures._gContent":"duplicated the Content bucket header above it (66049)","KeyFeatures._gStyle":"duplicated the Style bucket header above it (66049)","ParagraphsA._gContent":"duplicated the Content bucket header above it (66049)","Chart._gContent":"duplicated the Content bucket header above it (66049)","Chart._gStyle":"duplicated the Style bucket header above it (66049)","Logos._gContent":"duplicated the Content bucket header above it (66049)","Logos._gStyle":"duplicated the Style bucket header above it (66049)","Mockup._gContent":"duplicated the Content bucket header above it (66049)","Mockup._gStyle":"duplicated the Style bucket header above it (66049)","Stats._gContent":"duplicated the Content bucket header above it (66049)","Stats._gStyle":"duplicated the Style bucket header above it (66049)","StatsParagraph._gContent":"duplicated the Content bucket header above it (66049)","StatsParagraph._gStyle":"duplicated the Style bucket header above it (66049)","Testimonials._gContent":"duplicated the Content bucket header above it (66049)","Testimonials._gStyle":"duplicated the Style bucket header above it (66049)","AppointmentBooking._gContent":"duplicated the Content bucket header above it (66050)","BookingBox._gContent":"duplicated the Content bucket header above it ([SPLIT] Booking Form Into Three Boxes) \u2014 the same fault its own section retired in 66050, one level down","FAQ._gContent":"duplicated the Content bucket header above it (66050, family sweep)","FAQ._gLayout":"duplicated the Layout bucket header above it (66050, family sweep)","Form._gContent":"duplicated the Content bucket header above it (66050)","ReviewForm._gContent":"duplicated the Content bucket header above it (66050)","SubmitBuild._gContent":"duplicated the Content bucket header above it (66050)","SubmitBox._gContent":"duplicated the Content bucket header above it ([SPLIT] SubmitBuild Keeps Its Two Columns) \u2014 the same fault its own section retired in 66050, one level down","CheckoutCTA._gContent":"duplicated the Content bucket header above it (66051)","CheckoutCTA._gLayout":"duplicated the Layout bucket header above it (66051)","DeliveryOptions._gContent":"duplicated the Content bucket header above it (66051)","DeliveryOptions._gLayout":"duplicated the Layout bucket header above it (66051)","OrderSummary._gContent":"duplicated the Content bucket header above it (66051)","OrderSummary._gLayout":"duplicated the Layout bucket header above it (66051)","PaymentBadges._gContent":"duplicated the Content bucket header above it (66051)","PaymentBadges._gLayout":"duplicated the Layout bucket header above it (66051)","Collections._gContent":"duplicated the Content bucket header above it (66052)","Collections._gLayout":"duplicated the Layout bucket header above it (66052)","DocMasthead._gContent":"duplicated the Content bucket header above it (66053)","Events._gContent":"duplicated the Content bucket header above it (66054)","Events._gLayout":"duplicated the Layout bucket header above it (66054)","FeaturedCover._gContent":"duplicated the Content bucket header above it (66054)","Series._gStyle":"duplicated the Style bucket header above it (66054)","Flex._gContent":"duplicated the Content bucket header above it (66055)","Flex._gLayout":"duplicated the Layout bucket header above it (66055)","Flex._gLink":"repeated the Link group heading above it (owner 2026-11-17)","LongRead._gLink":"repeated the Link group heading above it (decided 2026-11-17)","Flex._gJump":"repeated the Anchor group heading above it (owner 2026-11-17)","SectionHeader._gContent":"duplicated the Content bucket header above it (66055)","Breadcrumb._gContent":"duplicated the Content bucket header above it (66056)","CategoryBar._gStyle":"duplicated the Style bucket header above it (66056)","Hero._gContent":"duplicated the Content bucket header above it (66056)","Hero._gStyle":"duplicated the Style bucket header above it (66056)","HeroSingle._gStyle":"duplicated the Style bucket header above it (66056)","IntroBleed._gContent":"duplicated the Content bucket header above it (66056)","IntroBleed._gLayout":"duplicated the Layout bucket header above it (66056)","BundleOffer._gLayout":"duplicated the Layout bucket header above it (66059)","ProcessSteps._gContent":"duplicated the Content bucket header above it (66059)","Banner._gContent":"duplicated the Content bucket header above it (66060.1)","Banner._gLayout":"duplicated the Layout bucket header above it, and governed no controls (66060.1)","Manifesto._gContent":"duplicated the Content bucket header above it (66060.1)","SubscribeBlogs._gHeadCopy":"duplicated the Content bucket header above it (66060.1)","SubscribeBlogs._gLeftCopy":"duplicated the Content bucket header above it (66060.1)","SubscribeBlogs._gRightCopy":"duplicated the Content bucket header above it (66060.1)","Ticker._gContent":"duplicated the Content bucket header above it (66060.1)","Ticker._gStyle":"duplicated the Style bucket header above it (66060.1)","Timeline._gContent":"duplicated the Content bucket header above it (66060.1)","TitleWithButtons._gContent":"duplicated the Content bucket header above it (66060.1)","TitleWithButtons._gStyle":"duplicated the Style bucket header above it (66060.1)","Cards._gContent":"duplicated the Content bucket header above it (66218)","Cards._gStyle":"duplicated the Style bucket header above it (66218)","Prose._gContent":"duplicated the Content bucket header above it (66218)","Reviews._gContent":"duplicated the Content bucket header above it (66218)","Reviews._gStyle":"duplicated the Style bucket header above it (66218)"},tM={Content:["Content"],Size:["Size"],Design:["Design","Style"],Layout:["Layout"],Position:["Position"],Advanced:["Advanced"],Link:["Link"],Anchor:["Anchor"],Animation:["Animation"]},by={_gAnchor:"repeated the Anchor group heading above it (two tabs, 11.0.0)"};{let e={..._r({tablet:!0,siteSide:!0}),...An("full"),...Fn(),...Bn(),...En(),..._n(),..._t()};for(let o of Object.keys(by)){let t=ar(e[o]),r=t?z(Cy,t.label):void 0;if(!t||t.level!==2||!r||!tM[r].includes(t.label))throw new Error(`INJECTED_RETIRED (lib/document/field-groups.ts) lists "${o}", but no uniform builder makes a level-2 heading by that key whose label repeats its place's word. The heading was renamed, moved or removed and the row is stale \u2014 a list that quietly matches nothing is worse than no list.`)}}var PX=new Set(["_sContent","_sStyle","_sLayout","_sMedia"]),TX=new Map([[Io.Design,"Content"],[Io.Animation,"Animation"],...wy.map(e=>[ys[e],e])]);function OX(e){let o=`${e}.`;return Object.keys(vX).filter(t=>t.startsWith(o)).map(t=>t.slice(o.length))}function EX(e,o){let t=QN(e),r=SX(o);return t?bX(t.tier,r):r}function _X(e,o){let t=ar(o);return t?e==="Content"||e==="Animation"?ST(o,t.label):bT(o):o}function JN(e){return e==="Design"?wy:["Animation"]}function Pu(e,o){let t=[],r=new Set(OX(o)),a=new Set,n=!1,s=null;for(let[u,h]of Object.entries(e)){let I=ar(h);if(PX.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=TX.get(u);if(S!==void 0){if(I?.level!==1)throw new Error(`${o}.${u}: that key is reserved for the ${S} heading of the settings panel, but this field is ${I?`a level-${I.level} "${I.label}" header`:"not a header"}, so it cannot serve as one. Rename the section's own field.`);(u===Io.Design||u===Io.Animation)&&(n=!0),t.push(s={place:S,entries:[],adopted:!0});continue}if(!I){s||t.push(s={place:"Content",entries:[]}),s.entries.push([u,h]);continue}if(r.has(u)||co(by,u)){let O=ZN(o,u,I.label);if(I.level!==2||!O||!tM[O].includes(I.label))throw new Error(`${o}.${u}: ${r.has(u)?"RETIRED":"INJECTED_RETIRED"} (lib/document/field-groups.ts) lists this sub-heading as one whose name repeats the place it sits in, but it is a level-${I.level} "${I.label}" header in the ${O??"(unclassified)"} place. Only a level-2 header whose label is one of its place's words (PLACE_WORDS) may be retired \u2014 anything else is a heading a merchant reads for its own sake. Fix the row or drop it.`);r.has(u)&&a.add(u),t.push(s={place:O,entries:[],uniform:co(by,u)});continue}let v=ZN(o,u,I.label);if(!v)throw new Error(`${o}.${u}: the inspector group "${I.label}" is not classified in LABEL_GROUP (lib/document/field-groups.ts), so there is no way to say which of ${[...wy,"Animation"].join(" / ")} its controls belong under. Classify it \u2014 an unclassified group silently lands wherever it was declared, which is the whole bug.`);t.push(s={place:v,entries:[[u,I.level===2?h:EX(h,I.label)]]})}let l=new Set(Object.entries(e).filter(([,u])=>ar(u)).map(([u])=>u));for(let[u,h]of[["BLOCK_KEY_GROUP",oM],["KEY_GROUP",eM]]){let I=Object.keys(h).filter(S=>S.startsWith(`${o}.`)).filter(S=>!l.has(S.slice(o.length+1))&&!r.has(S.slice(o.length+1)));if(I.length)throw new Error(`${o}: ${u} (lib/document/field-groups.ts) lists ${JSON.stringify(I)}, but no fold header by that key is in this section's panel. Either the heading was renamed or removed and the row is stale, or the row names the wrong key \u2014 an override that quietly matches nothing is worse than no override.`)}let i=n?[]:[...r].filter(u=>!a.has(u));if(i.length)throw new Error(`${o}: RETIRED (lib/document/field-groups.ts) lists ${JSON.stringify(i)}, but this section has no such fold header${i.length>1?"s":""}. Either the heading was renamed or removed and the row is stale, or the row names the wrong section \u2014 a list that quietly matches nothing is worse than no list.`);let d=new Set(t.filter(u=>u.entries.length>0).map(u=>u.place)),f=Ti.filter(u=>JN(u).some(h=>d.has(h))),x={};for(let u of f){x[Io[u]]=Af(u,u===f[0]?f:null);for(let h of JN(u)){if(!d.has(h))continue;let I=t.filter(O=>O.place===h),S=I.findIndex(O=>O.adopted);S>0&&I.unshift(...I.splice(S,1));let v=I.filter(O=>O.uniform);if(v.length>0){let O=I.filter(T=>!T.uniform),R=I[0]?.adopted?1:0;I.splice(0,I.length,...O.slice(0,R),...v,...O.slice(R))}u==="Design"&&(x[ys[h]]=Lx(h));for(let O of I)for(let[R,T]of O.entries)x[R]=_X(h,T)}}return x}function rM(e){return Io.Design in e?e:{[Io.Design]:Af("Design",null),[ys.Content]:Lx("Content"),...e}}function aM(e){return Ti.some(o=>Io[o]in e)}function Tu(e){let o=Ti.filter(r=>Io[r]in e);if(o.length===0)return e;let t={...e};for(let r of o)t[Io[r]]=Af(r,r===o[0]?o:null);return t}import{jsx as Ou}from"react/jsx-runtime";import{WidthIcon as AX}from"efficient-easel/icons";import{SettingsField as FX,SettingsSwitch as BX}from"efficient-easel/panel";import{group as LX,iconOf as RX,sharedStyleKinds as DX}from"efficient-easel/screen/lib/document/box-fields";var NX="Gutter";function MX({value:e,onChange:o,labelId:t}){let r=cu(il()),a=Ii({[Ma]:e})??r,n=s=>o(s?r?void 0:$g:Wg);return Ou(FX,{label:c(NX),labelId:t,icon:RX(Ou(AX,{})),action:Ou(BX,{checked:a,onChange:n,ariaLabelledBy:t})})}function nM(){return DX({_gWidth:LX(Ff),[Ma]:{type:"custom",render:({value:e,onChange:o,id:t,name:r})=>Ou(MX,{value:e,onChange:o,labelId:`${t??r??Ma}-label`})}})}import{jsx as vy}from"react/jsx-runtime";import{group as HX,sharedStyleKinds as lM}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as WX}from"efficient-easel/screen/lib/document/device-fields";var $X="Content cannot be wider than the background.",ky=e=>c(e==="content"?"Content width":"Full width");function iM(e){let{siteWidth:o,sectionBackgroundWidth:t,sectionContentWidth:r,themeFromDocument:a}=ko(),n=Ie(o)??hn.default;return e.drawsFullOnItsOwn?{px:n,background:"full",content:"full"}:{px:n,background:(a?null:t)??"full",content:(a?null:r)??"content"}}var zX={read:In},UX={read:In,drawsFullOnItsOwn:!0},jX={read:DC,clearOnContent:{fullWidth:void 0}};function GX({source:e}){let o=e.read(Nx()),t=dl(),r=iM(e);return vy(DT,{value:o.background??r.background,changed:o.background!==null,detail:ky(r.background),onChange:a=>t(MC(a)),onReset:()=>t(sx("background"))})}function KX({source:e}){let o=e.read(Nx()),t=dl(),r=i=>t({...i,...e.clearOnContent}),a=iM(e),n=(o.background??a.background)==="content",s=wT({row:nx,label:RT,grid:{min:hn.min,max:n?a.px:hn.max,step:hn.step},valueKey:Fo.contentMax,view:"desktop",numbersIn:()=>o.contentMax!==null}),l=o.content??a.content;return vy(NT,{mode:n&&l==="full"?"content":l,px:o.contentMax??a.px,max:n?a.px:hn.max,changed:o.content!==null,detail:a.content==="full"?ky("full"):`${ky("content")} ${a.px}px`,fullClosed:n,hint:n?$X:void 0,onMode:i=>r(HC(i)),onPx:i=>r({...WC(i),...s?.unitPatch(!1)}),...s?{length:s}:{},onReset:()=>r(sx("content"))})}var sM=(e,o)=>WX("desktop",{type:"custom",render:()=>vy(e,{source:o})}),dM=e=>({[Fo.background]:sM(GX,e),[Fo.content]:sM(KX,e),[Fo.contentMax]:Dx(),...jP(nx,Fo.content)});function fM(e){let o=e?.drawsFullOnItsOwn?UX:zX;return lM({_gWidth:HX(Ff),...dM(o)})}function DFe(){return lM({...dM(jX),fullWidth:Dx()})}import{deviceMetaOf as pM}from"efficient-easel/screen/lib/document/device-fields";import{noControlMetaOf as qX}from"efficient-easel/screen/lib/document/panel-no-control-mark";function VX(e,o){let t=pM(o),r=t?t.inner:o;if(ar(r)||r?.customize===!0)return!1;if(r?.type==="slot")return!0;let a=qX(r);return a==="always"?!1:a==="authored-copy"?Zk(e):!0}function cM(e){let o=pM(e),t=o?o.inner:e,r=ar(t);return r?yT(t)?0:r.level:null}function YX(e,o,t){return t?o===0&&e===Io.Design||o===1&&e===ys.Content:!1}var XX=new WeakMap,ZX=new WeakMap;function uM(e,o="section"){let t=o==="page"?ZX:XX,r=t.get(e);if(r)return r;let a=Object.entries(e).map(([x,u])=>({key:x,field:u,level:cM(u),draws:VX(x,u)||o==="page"&&cM(u)===null&&gx(x,u)})),n=o==="section"&&a.some(x=>gx(x.key,x.field)),s=new Set;for(let x=0;x<a.length;x++){let u=a[x].level;if(u===null)continue;let h=0;for(let I=x+1;I<a.length;I++){let S=a[I].level;if(S!==null&&S<=u)break;a[I].draws&&(h+=1)}h===0&&!YX(a[x].key,u,n)&&s.add(a[x].key)}let l=n&&aM(e),i=l&&!(Io.Design in e);if(!s.size&&!i)return t.set(e,e),e;let d={};for(let x of a)s.has(x.key)||(d[x.key]=x.field);let f=Tu(l?rM(d):d);return t.set(e,f),f}import{isShown as JX,showWhenFactReaders as QX}from"efficient-shell/format";var mM=new WeakMap,eZ=new Set(Object.values(Io));function xM(e,o,t,r={}){if(!e)return e;let a=o?.props??{},n=a.id,s=QX(r,o,t),l=BP(t,{...s,parentOffersPositions:()=>{let I=Kt(t.appState,n);return I===void 0?void 0:ok(I,n)},parentTileSlot:()=>{let I=Kt(t.appState,n);return I===void 0?void 0:tk(I,n)},heroGroupDepth:()=>Wd(t.appState?.data,typeof n=="string"?n:"")}),i=[];for(let[I,S]of Object.entries(e)){let v=cw(S);!v||FP(v,"device")||JX(v,a,l)||i.push(I)}if(i.length===0)return e;let d=mM.get(e);d||mM.set(e,d=new Map);let f=i.join("\0"),x=d.get(f);if(x)return x;let u=new Set(i),h={};for(let[I,S]of Object.entries(e))u.has(I)||(h[I]=S);return i.some(I=>eZ.has(I))&&(h=Tu(h)),d.set(f,h),h}var hM={spacingFields:PT,sidesPaddingFields:_r,ownPaddingFields:XN,sectionShapeFields:_n,cardShapeFields:CT,cellWidthFields:kT,widthField:An,boxGutterFields:nM,sectionOwnWidthFields:fM,heightFields:Fn,anchorFields:Bn,customCssFields:TT,stickFields:fl,sectionThemeFields:En,animationTabFields:ku,blockSizeFields:({tablet:e,...o}={})=>oZ({...o,shorten:!0,say:zP,lengthUnits:vf,...e?{phone:tZ}:{}}),assignSectionGroups:Pu,dropEmptyHeadings:uM,rowsShownForNode:xM,SECTION_THEME_FOLLOW_LABEL:cT,BLOCK_THEME_FOLLOW_LABEL:pT,PartAnchors:XL};function Eu(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=Eu(s.arrayFields,o,t),d=Eu(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 rZ(e,o,t){let r={};for(let[l,i]of Object.entries(o.fields??{}))r[l]=i&&typeof i=="object"&&i.type==="slot"?{...i}:i;let a={...o,...o.fields?{fields:r}:null},n=IN(e,a,t),s=Object.keys(r).filter(l=>n.fields?.[l]!==r[l]);if(s.length>0)throw new Error(`efficient-web-builder: blocks.host["${e}"] declares ${s.map(l=>`"${l}"`).join(", ")}, ${s.length===1?"a name":"names"} the editor gives every section a setting under. Give the block's own field another name.`);return n}function aZ(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];nZ(e,o,a);for(let n of a){let s=n.components.filter(vd);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(!Pd(n))continue;let s=kd(n).filter(l=>!r.has(l.type)).map(l=>`"${l.type}"`);if(s.length>0)throw new Error(`efficient-web-builder: the card template of "${n}" declares ${s.join(", ")}, which the editor does not register. Register it in the registry or in blocks.host.`)}}function Py(e,o,t,r=""){let a=[];for(let[n,s]of Object.entries(t??{})){if(!s||typeof s!="object")continue;let l=`${r}${n}`;s.type==="slot"&&s.allow?.includes(e)&&a.push(`${o}.${l}`),a.push(...Py(e,o,s.arrayFields,`${l}.`),...Py(e,o,s.objectFields,`${l}.`))}return a}function nZ(e,o,t){let r=n=>{throw new Error(`efficient-web-builder: ${n} names "${un}". 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(un)&&r(`the category "${n.key}"`);let a=[...Object.entries(e.components??{}),...o.map(([n,s])=>[n,s])];for(let[n,s]of a){let l=Py(un,n,s?.fields);l.length>0&&r(`the slot ${l.map(i=>`"${i}"`).join(", ")}, whose allow list`)}}function IM(e,o){let t=Object.entries(o?.host??{}),r=o?.categories??[],a=Bg(o);if(aZ(e,t,r),!a&&t.length===0&&r.length===0)return e;let n=e.components,s=t.map(([x])=>x).filter(x=>x in n);if(s.length>0)throw new Error(`efficient-web-builder: blocks.host registers ${s.map(x=>`"${x}"`).join(", ")}, which ${s.length===1?"is already a block":"are already blocks"} of the editor. Give a host's block a type of its own.`);let l=x=>a?a.offers(x):!0,i=Object.keys(n).filter(x=>!l(x)),d={};for(let[x,u]of Object.entries(n)){let h=a?Eu(u?.fields,l,i):u?.fields;d[x]=h===u?.fields?u:{...u,fields:h}}if(t.length>0){let x=new Set(t.map(([I])=>I)),u=e.categories?.structure?.components??[],h={...sy(Object.keys(n),u,x),isHostBlock:I=>x.has(I),inspector:hM};for(let[I,S]of t){let v=rZ(I,S,h),O=Eu(v.fields,l,i);d[I]=O===v.fields?v:{...v,fields:O}}}let f=[];for(let[x,u]of Object.entries(e.categories??{})){let h=u?.components??[],I=h.filter(l);I.length===h.length?f.push([x,u]):I.length>0&&f.push([x,{...u,components:I}])}for(let x of r){let u=x.components.filter(v=>v in d&&l(v));if(u.length===0)continue;let h=f.find(([v])=>v===x.key);if(h){let[,v]=h,O=new Set(v.components??[]);h[1]={...v,components:[...v.components??[],...u.filter(R=>!O.has(R))]};continue}let I=[x.key,{title:x.title,components:u}],S=x.before?f.findIndex(([v])=>v===x.before):-1;S===-1?f.push(I):f.splice(S,0,I)}return{...e,components:d,categories:Object.fromEntries(f)}}function gM(){let e=iZ();return sZ(()=>IM(lZ(e),mn(e)),[e])}import{jsx as Ey,Fragment as OZ,jsxs as EZ}from"react/jsx-runtime";import{useContext as _Z,useEffect as AZ,useMemo as Ru,useRef as MM}from"react";import{EaselCanvas as FZ,repeatCopyAt as BZ,useEasel as LZ}from"efficient-easel/easel";import{jsx as Ty}from"react/jsx-runtime";import{useEffect as pZ,useState as uZ}from"react";import{Banner as mZ}from"efficient-shell/ui";import{useSyncExternalStore as dZ}from"react";import{useScreenDocument as fZ}from"efficient-easel/screen/components/ScreenDocumentContext";var cZ=()=>()=>{},yM=()=>null;function _u(e){return dZ(e?e.subscribe:cZ,e?e.state:yM,e?e.state:yM)}function Au(){let{adapter:e}=fZ();return e?.pinnedChrome}var Fu={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."},xZ={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."},hZ=Fu.load,IZ=Fu.lock,gZ=Fu.conflict,yZ=Fu.save;function SZ(e){if(!e)return null;if(e.loadFailed)return c(hZ);if(e.lockHolder)return c(IZ,{name:e.lockHolder.name||c("Somebody else")});if(e.conflict)return c(gZ);if(e.saveFailed)return c(yZ);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(xZ[o.problem],{section:t,name:r})}function bZ({report:e}){let o=SZ(_u(e)),[t,r]=uZ(null);return pZ(()=>{o||r(null)},[o]),!o||t===o?null:Ty("aside",{className:"sf-canvas-notice",children:Ty(mZ,{tone:"warning",onDismiss:()=>r(o),children:o})})}function SM(){return Ty(bZ,{report:Au()})}import{jsx as Lu}from"react/jsx-runtime";import{useState as DM}from"react";import{Banner as CZ,Button as kZ}from"efficient-shell/ui";import{UndoIcon as vZ}from"efficient-shell/icons/efficient";import{useScreenDocument as PZ}from"efficient-easel/screen/components/ScreenDocumentContext";import{useSyncExternalStore as CM}from"react";var Oi=!1,Ss=null,Oy=new Set;function _i(){for(let e of Oy)e()}function kM(e){return Oy.add(e),()=>{Oy.delete(e)}}function vM(){Oi||(Oi=!0,_i())}function PM(){Oi&&(Oi=!1,_i())}function bM(){return Oi}function TM(){return CM(kM,bM,bM)}function wM(){return Ss}function Bu(){Ss&&(Ss=null,_i())}function OM(){return CM(kM,wM,wM)}var Ei=class extends Error{constructor(){super("The editor's last changes could not be saved, so nothing was restored."),this.name="HeldEditsNotSaved"}};async function EM(e,o,t,{flushSave:r,reload:a}){if(!await r())throw new Ei;let n=await e.restore(o,t);return Of(n.liveState),a(),n}async function _M({access:e,version:o,page:t,...r}){let a=await EM(e,o.id,t?{page:t.id}:{},r);Ss={title:wZ(o,t??null),undo:a.undo},_i()}async function AM({access:e,...o}){let t=Ss?.undo;t&&(await EM(e,t,{},o),Ss=null,_i())}function FM(e){return e.name?e.name:e.kind==="draft_before_restore"?c("Draft before restore"):c("Version {n}",{n:e.number})}function wZ(e,o){return e.kind==="draft_before_restore"?c("Your drafts from before the restore are back"):o?c("{page} from version {n} is now your draft",{page:o.name,n:e.number}):c("Version {n} is now your draft",{n:e.number})}function BM(e){let o=e.changes.filter(r=>r.kind==="page").length,t=[...o?[Mt("{n} page","{n} pages",o)]:[],...e.changes.filter(r=>r.kind!=="page").map(r=>r.name)];if(!t.length)return"";try{return new Intl.ListFormat(ex(),{type:"conjunction"}).format(t)}catch{return t.join(", ")}}function LM(e){return e.change==="take_down"?c("{name} (taken down)",{name:e.name}):e.name}function RM(e,o=new Date){let t=new Date(e);if(Number.isNaN(t.getTime()))return"";let r=ex(),a=new Intl.DateTimeFormat(r,{hour:"numeric",minute:"2-digit"}).format(t);if(t.toDateString()===o.toDateString())return c("Today, {time}",{time:a});let n=new Intl.DateTimeFormat(r,{day:"numeric",month:"short",...t.getFullYear()===o.getFullYear()?{}:{year:"numeric"}}).format(t);return c("{day}, {time}",{day:n,time:a})}import{useSettledAction as TZ}from"efficient-easel/easel";function NM(){let e=OM(),{adapter:o,flushSave:t,reloadFromServer:r}=PZ(),a=o.siteVersions,[n,s]=DM(!1),[l,i]=DM(!1),d=async()=>{if(!(!a||n)){s(!0),i(!1);try{await AM({access:a,flushSave:t,reload:r})}catch{i(!0)}finally{s(!1)}}},f=TZ({onPress:()=>{d()},busy:n});return e?Lu("aside",{className:"sf-canvas-notice",children:Lu(CZ,{tone:l?"danger":"info",title:e.title,onDismiss:Bu,action:a&&e.undo?Lu(kZ,{variant:"secondary",size:"sm",leftIcon:Lu(vZ,{}),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 RZ,REPEAT_ATTRIBUTE as _y,REPEAT_INDEX_ATTRIBUTE as Ay}from"efficient-easel/draw";import{usePreviewParts as DZ}from"efficient-easel/draw/client";import{ScreenDocumentContext as NZ}from"efficient-easel/screen/components/ScreenDocumentContext";function HM(e){let{mirrorHostStyles:o}=cl(),t=QT(),r=Fy(),a=il(),n=_Z(NZ),s=tT(n?.docId??null),l=LZ(v=>v.appState.data),i=rT(s,l),d=JSON.stringify(i),f=Ru(()=>i,[d]),x=Ru(()=>({...e.metadata??t??{},...r,...f}),[e.metadata,t,r,f]);AZ(()=>(oy(a),()=>oy(null)),[a]);let u=MM(null),h=MZ(u),{onDocument:I}=e,S=v=>{u.current=v,I?.(v)};return EZ(OZ,{children:[Ey(NM,{}),Ey(SM,{}),Ey(FZ,{...e,onDocument:S,typing:h,metadata:x,height:"fill",mirrorStyles:o,frameWrapper:Vf})]})}function Fy(){let{sectionBackgroundWidth:e,themeFromDocument:o}=ko(),t=il();return Ru(()=>$C(o?null:e,t),[e,t,o])}function MZ(e){let o=Mf(),t=DZ(),r=MM({parts:t});return r.current={parts:t},Ru(()=>{let a=(n,s)=>{let l=$f(n,o),i,d=null,f=s??(l?null:rh(null,e.current,n)),x=!l&&f?BZ(f):null,u=x?RZ(n):null;if(x&&f&&u?.propKey){l=Uf({...x,nodeId:u.nodeId,key:u.propKey},o),i=u.propKey;let v=f.closest(`[${_y}][${Ay}]`),O=`[${_y}="${zf(v?.getAttribute(_y)??"")}"][${Ay}="${zf(v?.getAttribute(Ay)??"")}"]`;d=()=>(f.ownerDocument??e.current)?.querySelector(O)??null}if(!l)return null;let h=f,I=()=>(h=rh(h,d?d():h?.ownerDocument??e.current,n),h),S=I();return S?{element:I,value:l.value,rules:l.rules,multiline:l.multiline,skip:l.skip,write:l.write,key:i,toolbar:{offered:l.offered,colors:l.offered.length>0?sf(lf(S)):void 0,colorNameOf:nf}}:null};return{at:n=>{let s=n.closest(`[${Ue}]`),l=s?.getAttribute(Ue);return s&&l?a(l,s):null},atSelection:()=>{let n=r.current.parts.selectedPartId;return n?a(n,null):null},onCopyText:n=>S0(n,o),copyValue:n=>y0(n,o),onChange:n=>{if(!n.typing){ah(null);return}let s=n.element.closest(`[${Ue}]`)?.getAttribute(Ue)??null;ah(s),s&&r.current.parts.selectedPartId!==s&&r.current.parts.select(s)}}},[o,e])}var Du=[{key:"about",label:"About",slugs:["about"]},{key:"contact",label:"Contact",slugs:["contact"]},{key:"faq",label:"FAQ",slugs:["faq"]},{key:"gallery",label:"Gallery",slugs:["gallery"]},{key:"store-locator",label:"Store locator",slugs:["store-locator"]},{key:"policies",label:"Policies",slugs:["warranty","shipping-returns","privacy-policy","terms-and-conditions"]}],bs="all",Nu="template";function WM(e){for(let o=0;o<Du.length;o++){let t=Du[o].slugs.indexOf(e);if(t>=0)return o*100+t}return Number.MAX_SAFE_INTEGER}function $M(e){return e.map((o,t)=>({s:o,i:t})).filter(({s:o})=>o.source==="library").sort((o,t)=>WM(o.s.slug)-WM(t.s.slug)||o.i-t.i).map(({s:o})=>o)}function By(e){return e.filter(o=>o.source==="template")}function zM(e){let o=new Set($M(e).map(t=>t.slug));return Du.filter(t=>t.slugs.some(r=>o.has(r)))}function UM(e,o){if(e===Nu)return By(o);let t=$M(o);if(e===bs)return t;let r=Du.find(a=>a.key===e);return r?t.filter(a=>r.slugs.includes(a.slug)):[]}var jM=3;function GM(e,o){let t=Array.from({length:e},()=>[]);return o.forEach((r,a)=>t[a%e].push(r)),t}function YM({open:e,onClose:o,takenSlugs:t,onCreated:r}){let a=jZ(),{adapter:n,siteId:s,templateId:l}=UZ(),i=Ao(a).pages,d=!l&&!!(i.starters&&i.createFromStarter),f=$Z(()=>s?{siteId:s}:{},[s]),x=gM(),u=Fy(),[h,I]=Ly(null),[S,v]=Ly(bs),[O,R]=Ly(null),T=zZ(null),g=WZ();HZ(()=>{if(!e)return;if(v(bs),!d){I([]);return}let P=!0;return I(null),i.starters(f).then(C=>P&&I(C),()=>{P&&(I([]),VM.error(c("Couldn\u2019t load the pages \u2014 please retry.")))}),()=>{P=!1}},[e,d,i,f]);let w=async(P,C)=>{if(!O){R(P);try{r(await C())}catch{VM.error(c("Couldn\u2019t add the page \u2014 please retry."))}finally{R(null)}}},_=()=>{if(!n.createPage)return;let P=c("New page");w("blank",()=>n.createPage({slug:qM(P,t),title:P,layout:{}}))},E=P=>{w(P.id,()=>i.createFromStarter(P.id,{title:P.title,slug:qM(P.slug,t),...f}))},D=h??[],b=zM(D),F=UM(S,D),y=GM(jM,F),k=KM("nav",{"aria-label":c("Pages"),className:"sf-add-page-nav",children:[To(Ry,{label:c("All pages"),active:S===bs,onClick:()=>v(bs)}),b.map(P=>To(Ry,{label:c(P.label),active:S===P.key,onClick:()=>v(P.key)},P.key)),By(D).length>0?To("div",{className:"sf-add-page-group",children:To(Ry,{label:c("From your template"),active:S===Nu,onClick:()=>v(Nu)})}):null]});return To(qZ,{open:e,onClose:o,size:"full",title:c("Add page"),initialFocus:T,children:To(ZZ,{sidebarTop:To("div",{className:"sf-add-page-blank",children:To(KZ,{variant:"secondary",size:"md",leftIcon:To(GZ,{"aria-hidden":!0}),onClick:_,disabled:!n.createPage||O!==null,children:c("Blank page")})}),sidebar:k,children:KM("div",{ref:T,tabIndex:-1,role:"region","aria-labelledby":g,className:"sf-add-page",children:[To(JZ,{id:g,level:2,as:"h3",children:c("Pages for your site")}),To(XZ,{tone:"default",className:"sf-add-page-sub",children:c("Choose a page and change the text, images and more.")}),h===null?To(YZ,{label:c("Loading\u2026")}):F.length===0?To(VZ,{title:c("No pages to start from"),description:c("Start with a blank page, then add sections.")}):To("div",{className:"sf-add-page-cards",children:y.map((P,C)=>To("div",{className:"sf-add-page-column",children:P.map(B=>To(pR,{starter:B,config:x,metadata:u,busy:O===B.id,onAdd:E},B.id))},C))})]})})})}import{jsx as QZ}from"react/jsx-runtime";import{createContext as eJ,useContext as XM,useEffect as oJ,useRef as ZM}from"react";var Dy=eJ(null);function ELe({open:e,children:o}){let t=ZM(!!e);return QZ(Dy.Provider,{value:t,children:o})}function JM(){let e=XM(Dy);return()=>e?.current?(e.current=!1,!0):!1}function QM(e){let o=XM(Dy),t=ZM(e);t.current=e,oJ(()=>{o?.current&&(t.current.setView("pages"),t.current.reveal())},[o])}var nH="sf-editor-pages-collapsed-groups";function SJ(){let e=My(),{siteId:o,templateId:t}=sH(),r=Ao(e).pages;if(!(!r.duplicate||t))return(a,n)=>r.duplicate(a.id,{...n,...o?{siteId:o}:{}})}function lH({onNavigate:e,onClose:o,activeSurface:t,onPreviewSurface:r}){let a=My().chrome?.pageRows,n=IJ(),{adapter:s,capabilities:l,ready:i,currentSlug:d}=sH(),f=Ln(),{rows:x,reload:u,setRows:h,getRows:I}=ml(),[S,v]=$a(""),[O,R]=$a(!1),[T,g]=$a(null),[w,_]=$a(!1),E=!!Ao(My()).pages.createFromStarter,D=SJ(),[b,F]=$a(null),[y,k]=$a(()=>{if(typeof window>"u")return new Set;try{let N=window.localStorage.getItem(nH);return new Set(N?JSON.parse(N):[])}catch{return new Set}});eH(()=>{try{window.localStorage.setItem(nH,JSON.stringify([...y]))}catch{}},[y]);let P=N=>k(te=>{let he=new Set(te);return he.has(N)?he.delete(N):he.add(N),he}),C=oH(()=>EP(x??[]),[x]),B=S.trim().toLowerCase(),H=N=>!B||N.toLowerCase().includes(B),q=N=>B?!0:!y.has(N),$=oH(()=>new Set((x??[]).map(N=>N.slug)),[x]),le=()=>{if(l.pageCreationInAdminForm&&!E){n.send("storefront-editor:new-page");return}g(null),_(!0)},pe=JM();eH(()=>{pe()&&le()},[]);let ee=l.hasSiteSettings&&!!s.createPage,xe=async()=>{if(!(!i||O||!s.createPage)){R(!0),g(null);try{let N=await s.createPage(xT(c("New popup"),$));await u(),e(N.slug)}catch{g(c("Couldn\u2019t add the popup \u2014 please retry."))}finally{R(!1)}}},oe=aJ(null),[ie,ge]=$a(null),Re=()=>{if(!ee)return le();if(ie)return ge(null);let N=oe.current?.getBoundingClientRect();N&&ge({top:N.bottom+6,right:Math.max(8,window.innerWidth-N.right)})},$e=N=>{let te=x??[],he=s.deletePage;if(!i||O||!he||te.length<=1)return;let De=te.findIndex(ve=>ve.id===N.id),Oo=te.filter(ve=>ve.id!==N.id),Zo=N.slug===d;Kf(N.id,!0),h(Oo),g(null),Zo&&Oo[0]&&e(Oo[0].slug);let Eo=()=>{Kf(N.id,!1);let ve=I()??[];if(ve.some(Za=>Za.id===N.id))return;let yt=[...ve];yt.splice(Math.max(0,Math.min(De,yt.length)),0,N),h(yt)};rH.undoable(c("Deleted \u201C{name}\u201D",{name:N.label}),{actionLabel:c("Undo"),commit:async ve=>{await he(N.id,ve),Kf(N.id,!1)},undo:()=>{Eo(),Zo&&e(N.slug)},onFail:()=>{Eo(),rH.error(c("Couldn\u2019t delete the page \u2014 please retry."))}})},yo=N=>n.send("storefront-editor:open-page",{slug:N}),oo=N=>{if(!H(N.label))return null;let te=!t&&N.slug===d,he=l.canDeletePagesInline&&(x??[]).length>1,De=Cf(N),Oo=OP(N),Zo=[...De?[{label:c("Dynamic"),tone:"info"}]:[],...Oo?[{label:c("Lightbox"),tone:"success"}]:[],...N.draft?[{label:c("draft"),tone:"draft"}]:[]],Eo=Zo.length>0?Zo:void 0,ve=!!D&&gJ(N),yt=ve||l.pageCreationInAdminForm||he?Mu(tJ,{children:[ve&&ke(Hu,{kind:"plain",label:c("Duplicate \u201C{name}\u201D",{name:N.label}),disabled:O,onClick:()=>F(N),children:ke(uJ,{size:13})}),l.pageCreationInAdminForm&&ke(Hu,{kind:"plain",label:c("Page settings for \u201C{name}\u201D",{name:N.label}),onClick:()=>yo(N.slug),children:ke(xJ,{size:13})}),he&&ke(Hu,{kind:"delete",label:c("Delete \u201C{name}\u201D",{name:N.label}),disabled:O,onClick:()=>$e(N),children:ke(Ny,{name:"trash",size:13,strokeWidth:1.7,rounded:!0})})]}):void 0;return ke(aH,{icon:ke(mJ,{size:14}),name:N.label,selected:te,onSelect:()=>e(N.slug),badge:Eo,actions:yt,rowProps:{"data-page-slug":N.slug}},N.id)},io=(N,te,he)=>{let De=he.filter(Boolean);if(De.length===0)return null;let Oo=q(N);return Mu(rJ,{children:[ke(cJ,{count:De.length,countLabel:Mt("{n} page","{n} pages",De.length),expanded:Oo,onToggle:()=>P(N),children:te}),Oo&&De]},N)},So=(a?.rows??[]).filter(N=>H(N.label)).map(N=>{let te=t===N.key;return ke(aH,{icon:N.icon,name:N.label,selected:te,onSelect:()=>r(N.key),badge:{label:c("Preview"),tone:"warning"},actions:ke(Hu,{kind:"plain",label:c("Open the {name} in a new tab",{name:N.label}),onClick:()=>window.open(N.href,"_blank","noopener,noreferrer"),children:ke(Ny,{name:"external-link",size:13,strokeWidth:1.7,rounded:!0})}),rowProps:{"data-shop-surface":N.key}},N.key)}),Xe=l.hasSiteSettings&&!!a,bo=(()=>{if(x===null)return null;let N=[],te=!1;for(let he of C){Xe&&!te&&he.key.startsWith("system:")&&(N.push(io("shop",a.title,So)),te=!0);let De=he.key===TP||he.label===PP?c(he.label):he.label;N.push(io(he.key,De,he.rows.map(oo)))}return Xe&&!te&&N.push(io("shop",a.title,So)),N})();return Mu("div",{className:"sf-pages",children:[ke(nJ,{icon:ke(hJ,{}),title:c("Pages"),context:f,actions:ke(sJ,{buttonRef:oe,label:ee?c("Add"):c("New page"),hasPopup:ee?"menu":void 0,expanded:ee?ie!==null:void 0,onClick:Re,children:ke(pJ,{size:15})})}),ie&&ke(dJ,{portal:!0,style:{top:ie.top,right:ie.right},onClose:()=>ge(null),children:Mu("div",{role:"menu","aria-label":c("Add"),children:[ke(tH,{role:"menuitem",onClick:()=>{ge(null),le()},children:c("Page")}),ke(tH,{role:"menuitem",disabled:O,onClick:()=>{ge(null),xe()},children:c("Popup")})]})}),ke("div",{className:"sf-pages-find",children:ke(lJ,{type:"search",leftIcon:ke(Ny,{name:"search",size:14,rounded:!0}),placeholder:c("Search all pages\u2026"),value:S,onChange:N=>v(N.target.value),"aria-label":c("Search all pages")})}),T&&!w&&ke("div",{className:"sf-note sf-note--error",role:"alert",children:T}),bo===null?ke(iJ,{label:c("Loading\u2026")}):bo.some(Boolean)?ke(fJ,{ariaLabel:c("Pages"),className:"sf-scroll",children:bo}):ke("div",{className:"sf-note",children:S.trim()?c("No pages match your search"):c("No pages yet. Add one with + above.")}),D&&b&&ke(yJ,{source:{title:b.label,slug:b.slug},taken:$,host:If(),duplicate:N=>D(b,N),onClose:()=>F(null),onDuplicated:N=>{F(null),u(),e(N.slug)}},b.id),w?ke(YM,{open:!0,onClose:()=>_(!1),takenSlugs:$,onCreated:N=>{_(!1),u(),e(N.slug)}}):null]})}import{jsx as fH}from"react/jsx-runtime";import{createContext as kJ,useCallback as vJ,useContext as PJ,useMemo as TJ,useState as OJ}from"react";import{CanvasChromeContext as EJ}from"efficient-easel/easel";import{useSelectHandler as _J}from"efficient-easel/draw/client";import{parseHexColor as bJ,parseOption as wJ}from"efficient-shell/format";var Wu=["chat-bubble-left-right","chat-bubble-oval-left-ellipsis","chat","megaphone","phone","sparkles"],ws=Wu[0],CJ=["right","left"],za="right";function $u(e){return Wu.includes(e??"")?e:ws}function iH(e){return wJ(CJ,za,e)}function dH(e){return e&&bJ(e)===e.toLowerCase()?e.toLowerCase():""}var cH="chat",zu={enabled:!0,title:"",subtitle:"",greeting:"",launcherColor:"",launcherIcon:"",launcherPosition:za,launcherLabel:"",showOnPhones:!0};function lRe(e){return{enabled:e.enabled,title:e.title,subtitle:e.subtitle,greeting:e.greeting,launcherColor:dH(e.launcherColor),launcherIcon:e.launcherIcon?$u(e.launcherIcon):"",launcherPosition:iH(e.launcherPosition),launcherLabel:e.launcherLabel??"",showOnPhones:e.showOnPhones!==!1}}var pH=kJ({chat:zu,setChat:()=>{},setSelected:()=>{},setSelectHandler:()=>{}});function iRe({children:e,chat:o=zu,onChatChange:t}){let[r,a]=OJ(!1),n=vJ(d=>t?.(d),[t]),{select:s,setSelectHandler:l}=_J(),i=TJ(()=>({selected:()=>r?cH:null,select:d=>d===cH&&s()}),[r,s]);return fH(pH.Provider,{value:{chat:o,setChat:n,setSelected:a,setSelectHandler:l},children:fH(EJ.Provider,{value:i,children:e})})}var Uu=()=>PJ(pH);import{jsx as Hy}from"react/jsx-runtime";import{DesktopIcon as AJ,PhoneIcon as FJ,TabletIcon as BJ}from"efficient-easel/icons";import{VIEW_TIERS as LJ,VIEW_TIER_LABEL as RJ}from"efficient-easel/draw";var DJ={desktop:Hy(AJ,{}),tablet:Hy(BJ,{}),mobile:Hy(FJ,{})},uH=LJ.map(e=>({id:e,get label(){return c(RJ[e])},icon:DJ[e]}));import{PreviewDeviceContext as Yae}from"efficient-easel/draw/client";import{jsx as NJ}from"react/jsx-runtime";import{createContext as MJ,useCallback as mH,useContext as HJ,useMemo as WJ,useRef as $J}from"react";var zJ=Object.fromEntries(Rf.map(e=>[e,{value:"",error:null}])),xH=MJ({links:HT,rows:zJ,canSave:!1,saveLink:async()=>({ok:!1,error:"There is no website to save to."}),openPanel:()=>{},setOpenHandler:()=>{}});function gRe({children:e,value:o}){let t=$J(()=>{}),r=mH(()=>t.current(),[]),a=mH(s=>{t.current=s},[]),n=WJ(()=>({...o,openPanel:r,setOpenHandler:a}),[o,r,a]);return NJ(xH.Provider,{value:n,children:e})}var Ai=()=>HJ(xH);import{jsx as UJ}from"react/jsx-runtime";import{createContext as jJ,useContext as GJ,useMemo as KJ,useState as qJ}from"react";var hH=jJ(null);function wRe({children:e}){let[o,t]=qJ(null),r=KJ(()=>({surface:o,setSurface:t}),[o]);return UJ(hH.Provider,{value:r,children:e})}function IH(){return GJ(hH)??{surface:null,setSurface:()=>{}}}import{createPreviewSelectionContext as VJ}from"efficient-easel/draw/client";var{Provider:vRe,useSelection:ju}=VJ("selectedHeroPart");import{jsx as be,jsxs as qr,Fragment as F2}from"react/jsx-runtime";import{useEasel as wte,useRootFields as Cte}from"efficient-easel/easel";import{EmptyState as kte}from"efficient-shell/ui";function gH({kind:e,pageName:o}){return{name:o?.trim()||c("This page"),kindLabel:Cf({kind:e})?c("Template"):c("Page")}}import{headWords as D2,InspectorHead as vte,InspectorIconButton as B2}from"efficient-easel/chrome";import{DuplicateIcon as Pte,TrashIcon as Tte}from"efficient-easel/icons";import{panelFieldsOf as Ote}from"efficient-easel/screen/lib/document/panel-fields";import{jsx as M,Fragment as ue,jsxs as me}from"react/jsx-runtime";import{BlockBannerIcon as ZJ,BlockBoxIcon as JJ,BlockButtonIcon as QJ,BlockDividerIcon as SH,BlockFooterIcon as bH,BlockHeadingIcon as eQ,BlockProductIcon as oQ,BlockSocialIcon as tQ,BlockTextIcon as rQ,CardPaymentIcon as aQ,ChatIcon as nQ,AccountIcon as sQ,GlobeIcon as lQ,GridIcon as iQ,ImageIcon as $y,MapIcon as dQ,MediaIcon as fQ,PageIcon as cQ}from"efficient-easel/icons";import{jsx as Wy,Fragment as YJ,jsxs as XJ}from"react/jsx-runtime";var yH=XJ(YJ,{children:[Wy("circle",{cx:"9",cy:"20",r:"1.3"}),Wy("circle",{cx:"18",cy:"20",r:"1.3"}),Wy("path",{d:"M2.5 3.5h3l2.3 11.3a1.6 1.6 0 0 0 1.6 1.3h8.1a1.6 1.6 0 0 0 1.6-1.2L21 7H6"})]});var pQ={header:me(ue,{children:[M("rect",{x:"3",y:"5",width:"18",height:"14",rx:"2"}),M("path",{d:"M3 9.5h18"})]}),social:me(ue,{children:[M("circle",{cx:"6",cy:"12",r:"2.5"}),M("circle",{cx:"18",cy:"6",r:"2.5"}),M("circle",{cx:"18",cy:"18",r:"2.5"}),M("path",{d:"M8.2 10.8l7.6-3.6M8.2 13.2l7.6 3.6"})]}),ticker:me(ue,{children:[M("rect",{x:"3",y:"8.5",width:"18",height:"7",rx:"2"}),M("path",{d:"M6 12h3.5M11.5 12h2M15.5 12h2.5"})]}),FooterLogo:me(ue,{children:[M("path",{d:"M4 15.5h6M4 18h4"}),M("path",{d:"M14 8.5l3 7 3-7"})]}),FooterMenu:M("path",{d:"M6 7h12M6 11h12M6 15h8M6 19h8"}),FooterGroup:me(ue,{children:[M("rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",strokeDasharray:"3 2.5"}),M("path",{d:"M8 9h8M8 13h8M8 16h5"})]}),FooterText:M("path",{d:"M5 7h14M5 12h14M5 17h9"}),FooterEmailSignup:me(ue,{children:[M("rect",{x:"3",y:"6",width:"18",height:"12",rx:"2"}),M("path",{d:"M3.5 7l8.5 6 8.5-6"})]}),SearchBlock:me(ue,{children:[M("circle",{cx:"11",cy:"11",r:"6"}),M("path",{d:"M20 20l-4.2-4.2"})]}),CartBlock:yH,CountrySwitchBlock:me(ue,{children:[M("circle",{cx:"12",cy:"12",r:"8.5"}),M("path",{d:"M3.5 12h17M12 3.5c2.6 2.4 3.6 5.2 3.6 8.5s-1 6.1-3.6 8.5M12 3.5c-2.6 2.4-3.6 5.2-3.6 8.5s1 6.1 3.6 8.5"})]}),ThemeSwitchBlock:me(ue,{children:[M("circle",{cx:"12",cy:"12",r:"8.5"}),M("path",{d:"M12 3.5v17M12 5.5l6 6M12 10.5l5.2 5.2M12 15.5l2.8 2.8"})]}),LegalLineBlock:me(ue,{children:[M("path",{d:"M3 9h18"}),M("path",{d:"M3 14h8M14 14h2M18 14h3"})]}),Hero:me(ue,{children:[M("rect",{x:"3",y:"4",width:"18",height:"16",rx:"2"}),M("path",{d:"M7 13.5h7M7 16.5h10"})]}),HeroSlide:me(ue,{children:[M("rect",{x:"3",y:"5",width:"18",height:"14",rx:"2"}),M("path",{d:"M7 15h6M16 9.5h.01M9.5 12l-2.5 3"})]}),HeroSingle:me(ue,{children:[M("rect",{x:"3",y:"4",width:"18",height:"16",rx:"2"}),M("path",{d:"M10.5 8.5l4 2.5-4 2.5z"}),M("path",{d:"M7 17h7"})]}),Collections:me(ue,{children:[M("rect",{x:"3",y:"5",width:"4.6",height:"14",rx:"1.3"}),M("rect",{x:"9.7",y:"5",width:"4.6",height:"14",rx:"1.3"}),M("rect",{x:"16.4",y:"5",width:"4.6",height:"14",rx:"1.3"})]}),CollectionCard:me(ue,{children:[M("rect",{x:"6",y:"4",width:"12",height:"16",rx:"2"}),M("path",{d:"M9 15h6M9 17.5h4"})]}),AlloyWheelsListing:me(ue,{children:[M("path",{d:"M3 5h5M3 9h5M3 13h5M3 17h5"}),M("rect",{x:"11.5",y:"5",width:"4.2",height:"5",rx:"1"}),M("rect",{x:"17.3",y:"5",width:"4.2",height:"5",rx:"1"}),M("rect",{x:"11.5",y:"12",width:"4.2",height:"5",rx:"1"}),M("rect",{x:"17.3",y:"12",width:"4.2",height:"5",rx:"1"})]}),CatalogFilterBar:me(ue,{children:[M("path",{d:"M3 7h9M15.5 7H21"}),M("circle",{cx:"13.5",cy:"7",r:"1.7"}),M("path",{d:"M3 12h4M10.5 12H21"}),M("circle",{cx:"8.5",cy:"12",r:"1.7"}),M("path",{d:"M3 17h9M15.5 17H21"}),M("circle",{cx:"13.5",cy:"17",r:"1.7"})]}),ProductGrid:me(ue,{children:[M("rect",{x:"3",y:"5",width:"4.8",height:"6",rx:"1"}),M("rect",{x:"9.6",y:"5",width:"4.8",height:"6",rx:"1"}),M("rect",{x:"16.2",y:"5",width:"4.8",height:"6",rx:"1"}),M("rect",{x:"3",y:"13",width:"4.8",height:"6",rx:"1"}),M("rect",{x:"9.6",y:"13",width:"4.8",height:"6",rx:"1"}),M("rect",{x:"16.2",y:"13",width:"4.8",height:"6",rx:"1"})]}),RelatedProducts:me(ue,{children:[M("path",{d:"M3 5h10"}),M("rect",{x:"3",y:"9.5",width:"5",height:"9",rx:"1"}),M("rect",{x:"9.5",y:"9.5",width:"5",height:"9",rx:"1"}),M("rect",{x:"16",y:"9.5",width:"5",height:"9",rx:"1"})]}),Gallery:me(ue,{children:[M("rect",{x:"3",y:"4",width:"11",height:"16",rx:"2"}),M("rect",{x:"15.5",y:"4",width:"5.5",height:"7.5",rx:"1.5"}),M("rect",{x:"15.5",y:"12.5",width:"5.5",height:"7.5",rx:"1.5"})]}),GalleryB:me(ue,{children:[M("rect",{x:"3.5",y:"4",width:"7.5",height:"7.5",rx:"1.5"}),M("rect",{x:"13",y:"4",width:"7.5",height:"7.5",rx:"1.5"}),M("rect",{x:"3.5",y:"12.5",width:"7.5",height:"7.5",rx:"1.5"}),M("rect",{x:"13",y:"12.5",width:"7.5",height:"7.5",rx:"1.5"})]}),GalleryItem:me(ue,{children:[M("rect",{x:"4",y:"5",width:"16",height:"14",rx:"2"}),M("circle",{cx:"9",cy:"10",r:"1.6"}),M("path",{d:"M20 15.5l-4.5-4L7 19"})]}),Events:me(ue,{children:[M("rect",{x:"4",y:"5",width:"16",height:"15",rx:"2"}),M("path",{d:"M4 9.5h16M8.5 3v4M15.5 3v4M8 14h2M14 14h2"})]}),PostCard:me(ue,{children:[M("rect",{x:"4",y:"3.5",width:"16",height:"17",rx:"2"}),M("rect",{x:"6.5",y:"6",width:"11",height:"6",rx:"1"}),M("path",{d:"M6.5 14.5h11M6.5 17.5h7"})]}),Manifesto:me(ue,{children:[M("path",{d:"M7 8h3.2v4c0 1.6-1 2.6-3 3.2"}),M("path",{d:"M14 8h3.2v4c0 1.6-1 2.6-3 3.2"})]}),Stats:me(ue,{children:[M("path",{d:"M3.5 20h17"}),M("path",{d:"M6 20v-7M11 20V7M16 20v-5M20.5 20v-9"})]}),Logos:me(ue,{children:[M("circle",{cx:"6",cy:"12",r:"2.6"}),M("rect",{x:"10",y:"9.4",width:"5.2",height:"5.2",rx:"1.2"}),M("path",{d:"M19 9.2l2.4 5h-4.8z"})]}),Ticker:me(ue,{children:[M("rect",{x:"3",y:"8.5",width:"18",height:"7",rx:"2"}),M("path",{d:"M6 12h3.5M11.5 12h2M15.5 12h2.5"})]}),SectionHeader:me(ue,{children:[M("rect",{x:"3.5",y:"6",width:"5",height:"5",rx:"1.2"}),M("path",{d:"M11 8.5h9M3.5 15.5h17"})]}),IntroBleed:me(ue,{children:[M("rect",{x:"3",y:"4",width:"18",height:"16",rx:"2"}),M("path",{d:"M3 13.5h18M7 16.8h6"})]}),Split:me(ue,{children:[M("rect",{x:"3",y:"5",width:"8",height:"14",rx:"1.5"}),M("path",{d:"M14 8.5h6M14 12h6M14 15.5h4"})]}),Eyebrow:me(ue,{children:[M("path",{d:"M4 8.5h4.5M11 8.5h9"}),M("path",{d:"M4 14.5h16"})]}),HeroGroup:me(ue,{children:[M("rect",{x:"3.5",y:"4.5",width:"17",height:"15",rx:"2"}),M("path",{d:"M7 9h8M7 12.5h10M7 16h6"})]}),Form:me(ue,{children:[M("rect",{x:"3",y:"4",width:"18",height:"16",rx:"2"}),M("path",{d:"M6.5 9h11M6.5 12.5h11"}),M("rect",{x:"6.5",y:"15",width:"6.5",height:"2.6",rx:"1.3"})]}),LogoBlock:M(ue,{children:M("path",{d:"M12 3.5l7.5 3.2v5.1c0 4.2-3.2 7.1-7.5 8.7-4.3-1.6-7.5-4.5-7.5-8.7V6.7z"})}),Spacer:me(ue,{children:[M("path",{d:"M12 4v6M9.5 6.5L12 4l2.5 2.5M12 20v-6M9.5 17.5L12 20l2.5-2.5"}),M("path",{d:"M5 13h14",strokeDasharray:"2 2.5"})]}),ContactRouting:me(ue,{children:[M("rect",{x:"3",y:"4",width:"5",height:"5",rx:"1"}),M("rect",{x:"9.5",y:"4",width:"5",height:"5",rx:"1"}),M("rect",{x:"16",y:"4",width:"5",height:"5",rx:"1"}),M("path",{d:"M4 13.5h11M4 17.5h7"}),M("path",{d:"M17 15l3 2-3 2"})]}),Contents:me(ue,{children:[M("path",{d:"M4 7h2M4 12h2M4 17h2"}),M("path",{d:"M9 7h11M9 12h9M9 17h10"})]}),ListSearch:me(ue,{children:[M("path",{d:"M4 6h9M4 11h5M4 16h5"}),M("circle",{cx:"15",cy:"15",r:"4"}),M("path",{d:"M20.5 20.5l-2.7-2.7"})]}),CustomHTML:M("path",{d:"M9 8l-4 4 4 4M15 8l4 4-4 4"})},uQ=M("rect",{x:"4",y:"4",width:"16",height:"16",rx:"2.5"}),mQ={footer:bH,Footer:bH,Divider:SH,FooterDivider:SH,Banner:ZJ,Flex:JJ,FooterSocial:tQ,FooterPayment:aQ,page:cQ,website:lQ,AccountBlock:sQ,chat:nQ,Heading:eQ,Text:rQ,ImageBlock:$y,ButtonBlock:QJ,LocationMap:dQ,Grid:iQ,ProductRef:oQ,heroMedia:fQ,heroImage:$y,heroImage2:$y},xQ={MenuBlock:"FooterMenu",EmailFormBlock:"FooterEmailSignup",SocialLogosBlock:"FooterSocial",PaymentLogosBlock:"FooterPayment",SiteHeader:"header",SiteFooter:"footer"};function Ua({type:e,size:o=16,className:t}){let r=xQ[e]??e,a=mQ[r];return a?M(a,{size:o,className:t}):M("svg",{width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.7,strokeLinecap:"round",strokeLinejoin:"round",className:t,"aria-hidden":"true",children:pQ[r]??uQ})}import{PanelHideButton as L2}from"efficient-easel/screen/components/SidePanelHead";import{useEaselSession as Ete}from"efficient-easel/screen/lib/session-context";import{jsx as Se,jsxs as Fi,Fragment as hQ}from"react/jsx-runtime";import{useEffect as IQ,useId as wH,useState as gQ}from"react";import{IconPicker as yQ}from"efficient-shell/ui";import{SettingsDefaultReset as SQ,SettingsField as Bi,SettingsSegmented as bQ,SettingsSwitch as CH}from"efficient-easel/panel";import{ButtonIcon as wQ,ButtonIconIcon as CQ,EyeIcon as kQ,PhoneIcon as vQ,PlacementIcon as PQ,TypeIcon as TQ}from"efficient-easel/icons";var OQ="Chat with us",EQ="We usually reply within a few minutes",_Q="Hi! Ask us anything \u2014 about a wheel, an order, or fitment. Leave your details and we\u2019ll reply.";function Gu({label:e,value:o,placeholder:t,onCommit:r,multiline:a=!1,hint:n}){let[s,l]=gQ(o);IQ(()=>l(o),[o]);let i=()=>{s!==o&&r(s)};return Se(Bi,{label:e,icon:Se(TQ,{}),changed:o!=="",action:Se(Li,{label:e,changed:o!=="",onReset:()=>r("")}),hint:n,children:a?Se("textarea",{value:s,placeholder:t,rows:3,onChange:d=>l(d.target.value),onBlur:i,"aria-label":e}):Se("input",{type:"text",value:s,placeholder:t,onChange:d=>l(d.target.value),onBlur:i,onKeyDown:d=>{d.key==="Enter"&&d.currentTarget.blur()},"aria-label":e,autoComplete:"off"})})}function Li({label:e,changed:o,onReset:t}){return Se(SQ,{words:aC()?.panel,label:e,changed:o,onReset:t})}function AQ({label:e,icon:o,checked:t,fallback:r,onChange:a,hint:n}){let s=wH();return Se(Bi,{label:e,labelId:s,icon:o,changed:t!==r,action:Fi("span",{className:"inline-flex items-center gap-2",children:[Se(CH,{checked:t,onChange:a,ariaLabelledBy:s}),Se(Li,{label:e,changed:t!==r,onReset:()=>a(r)})]}),hint:n})}var FQ=Wu.map(e=>({value:e,icon:nT(e)}));function BQ(){let{theme:e}=ko(),o=er(e).themes[0];return Mw(o)??o?.accent??""}function kH(){let{chat:e,setChat:o}=Uu(),t=wH(),r=BQ(),a=e.launcherIcon?$u(e.launcherIcon):ws;return Fi(hQ,{children:[Se(Bi,{label:c("Show the chat bubble"),labelId:t,icon:Se(kQ,{}),changed:!e.enabled,action:Fi("span",{className:"inline-flex items-center gap-2",children:[Se(CH,{checked:e.enabled,onChange:n=>o({enabled:n}),ariaLabelledBy:t}),Se(Li,{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.")}),Fi(Rx,{title:c("Look"),children:[Se(lT,{label:c("Button color"),icon:Se(wQ,{}),changed:e.launcherColor!=="",value:e.launcherColor,inherited:r,caption:e.launcherColor?void 0:c("Site button color"),onChange:n=>o({launcherColor:n}),onReset:()=>o({launcherColor:""})}),Se(Bi,{label:c("Icon"),icon:Se(CQ,{}),value:Se(KP,{value:a}),changed:a!==ws,action:Se(Li,{label:c("Icon"),changed:a!==ws,onReset:()=>o({launcherIcon:""})}),children:Se(yQ,{label:c("Icon"),value:a,options:FQ,onChange:n=>o({launcherIcon:n===ws?"":n})})}),Se(Bi,{label:c("Position"),icon:Se(PQ,{}),changed:e.launcherPosition!==za,action:Se(Li,{label:c("Position"),changed:e.launcherPosition!==za,onReset:()=>o({launcherPosition:za})}),children:Se(bQ,{options:[{label:c("Right"),id:"right"},{label:c("Left"),id:"left"}],value:e.launcherPosition,ariaLabel:c("Position"),onChange:n=>o({launcherPosition:n})})}),Se(Gu,{label:c("Label"),value:e.launcherLabel,placeholder:c("Icon only"),onCommit:n=>o({launcherLabel:n}),hint:c("Shows when a visitor points at the button")}),Se(AQ,{label:c("Show on phones"),icon:Se(vQ,{}),checked:e.showOnPhones,fallback:zu.showOnPhones,onChange:n=>o({showOnPhones:n})})]}),Fi(Rx,{title:c("Wording"),children:[Se(Gu,{label:c("Title"),value:e.title,placeholder:OQ,onCommit:n=>o({title:n})}),Se(Gu,{label:c("Subtitle"),value:e.subtitle,placeholder:EQ,onCommit:n=>o({subtitle:n})}),Se(Gu,{label:c("Greeting message"),value:e.greeting,placeholder:_Q,onCommit:n=>o({greeting:n}),multiline:!0}),Se("p",{className:"es-field-hint",children:c("Leave a field blank to use the built-in wording.")})]})]})}import{jsx as ja,Fragment as dS,jsxs as EH}from"react/jsx-runtime";import{useEffect as dee,useId as TH,useState as OH}from"react";import{SettingsField as fee}from"efficient-easel/panel";import{jsx as eee}from"react/jsx-runtime";import{forwardRef as LQ,createElement as zy}from"react";var vH={outline:{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"},filled:{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",stroke:"none"}};var se=(e,o,t,r)=>{let a=LQ(({color:n="currentColor",size:s=24,stroke:l=2,title:i,className:d,children:f,...x},u)=>zy("svg",{ref:u,...vH[e],width:s,height:s,className:["tabler-icon",`tabler-icon-${o}`,d].filter(Boolean).join(" "),...e==="filled"?{fill:n}:{strokeWidth:l,stroke:n},...x},[i&&zy("title",{key:"svg-title"},i),...r.map(([h,I])=>zy(h,I)),...Array.isArray(f)?f:[f]]));return a.displayName=`${t}`,a};var RQ=[["path",{d:"M7 10v4h3v7h4v-7h3l1 -4h-4v-2a1 1 0 0 1 1 -1h3v-4h-3a5 5 0 0 0 -5 5v2h-3",key:"svg-0"}]],Uy=se("outline","brand-facebook","BrandFacebook",RQ);var DQ=[["path",{d:"M3 7a4 4 0 0 1 4 -4h10a4 4 0 0 1 4 4v10a4 4 0 0 1 -4 4h-10a4 4 0 0 1 -4 -4l0 -10",key:"svg-0"}],["path",{d:"M8.5 12a3.5 3.5 0 1 0 7 0a3.5 3.5 0 0 0 -7 0",key:"svg-1"}],["path",{d:"M17 7v.01",key:"svg-2"}]],jy=se("outline","brand-instagram","BrandInstagram",DQ);var NQ=[["path",{d:"M21 10.663c0 -4.224 -4.041 -7.663 -9 -7.663s-9 3.439 -9 7.663c0 3.783 3.201 6.958 7.527 7.56c1.053 .239 .932 .644 .696 2.133c-.039 .238 -.184 .932 .777 .512c.96 -.42 5.18 -3.201 7.073 -5.48c1.304 -1.504 1.927 -3.029 1.927 -4.715v-.01",key:"svg-0"}]],Gy=se("outline","brand-line","BrandLine",NQ);var MQ=[["path",{d:"M8 11v5",key:"svg-0"}],["path",{d:"M8 8v.01",key:"svg-1"}],["path",{d:"M12 16v-5",key:"svg-2"}],["path",{d:"M16 16v-3a2 2 0 1 0 -4 0",key:"svg-3"}],["path",{d:"M3 7a4 4 0 0 1 4 -4h10a4 4 0 0 1 4 4v10a4 4 0 0 1 -4 4h-10a4 4 0 0 1 -4 -4l0 -10",key:"svg-4"}]],Ky=se("outline","brand-linkedin","BrandLinkedin",MQ);var HQ=[["path",{d:"M8 20l4 -9",key:"svg-0"}],["path",{d:"M10.7 14c.437 1.263 1.43 2 2.55 2c2.071 0 3.75 -1.554 3.75 -4a5 5 0 1 0 -9.7 1.7",key:"svg-1"}],["path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 1 0 -18 0",key:"svg-2"}]],qy=se("outline","brand-pinterest","BrandPinterest",HQ);var WQ=[["path",{d:"M15 10l-4 4l6 6l4 -16l-18 7l4 2l2 6l3 -4",key:"svg-0"}]],Vy=se("outline","brand-telegram","BrandTelegram",WQ);var $Q=[["path",{d:"M21 7.917v4.034a9.948 9.948 0 0 1 -5 -1.951v4.5a6.5 6.5 0 1 1 -8 -6.326v4.326a2.5 2.5 0 1 0 4 2v-11.5h4.083a6.005 6.005 0 0 0 4.917 4.917",key:"svg-0"}]],Yy=se("outline","brand-tiktok","BrandTiktok",$Q);var zQ=[["path",{d:"M16.5 10c3.038 0 5.5 2.015 5.5 4.5c0 1.397 -.778 2.645 -2 3.47l0 2.03l-1.964 -1.178a6.649 6.649 0 0 1 -1.536 .178c-3.038 0 -5.5 -2.015 -5.5 -4.5s2.462 -4.5 5.5 -4.5",key:"svg-0"}],["path",{d:"M11.197 15.698c-.69 .196 -1.43 .302 -2.197 .302a8.008 8.008 0 0 1 -2.612 -.432l-2.388 1.432v-2.801c-1.237 -1.082 -2 -2.564 -2 -4.199c0 -3.314 3.134 -6 7 -6c3.782 0 6.863 2.57 7 5.785l0 .233",key:"svg-1"}],["path",{d:"M10 8h.01",key:"svg-2"}],["path",{d:"M7 8h.01",key:"svg-3"}],["path",{d:"M15 14h.01",key:"svg-4"}],["path",{d:"M18 14h.01",key:"svg-5"}]],Xy=se("outline","brand-wechat","BrandWechat",zQ);var UQ=[["path",{d:"M3 21l1.65 -3.8a9 9 0 1 1 3.4 2.9l-5.05 .9",key:"svg-0"}],["path",{d:"M9 10a.5 .5 0 0 0 1 0v-1a.5 .5 0 0 0 -1 0v1a5 5 0 0 0 5 5h1a.5 .5 0 0 0 0 -1h-1a.5 .5 0 0 0 0 1",key:"svg-1"}]],Zy=se("outline","brand-whatsapp","BrandWhatsapp",UQ);var jQ=[["path",{d:"M4 4l11.733 16h4.267l-11.733 -16l-4.267 0",key:"svg-0"}],["path",{d:"M4 20l6.768 -6.768m2.46 -2.46l6.772 -6.772",key:"svg-1"}]],Jy=se("outline","brand-x","BrandX",jQ);var GQ=[["path",{d:"M2 8a4 4 0 0 1 4 -4h12a4 4 0 0 1 4 4v8a4 4 0 0 1 -4 4h-12a4 4 0 0 1 -4 -4v-8",key:"svg-0"}],["path",{d:"M10 9l5 3l-5 3l0 -6",key:"svg-1"}]],Qy=se("outline","brand-youtube","BrandYoutube",GQ);var KQ=[["path",{d:"M18 2a1 1 0 0 1 .993 .883l.007 .117v4a1 1 0 0 1 -.883 .993l-.117 .007h-3v1h3a1 1 0 0 1 .991 1.131l-.02 .112l-1 4a1 1 0 0 1 -.858 .75l-.113 .007h-2v6a1 1 0 0 1 -.883 .993l-.117 .007h-4a1 1 0 0 1 -.993 -.883l-.007 -.117v-6h-2a1 1 0 0 1 -.993 -.883l-.007 -.117v-4a1 1 0 0 1 .883 -.993l.117 -.007h2v-1a6 6 0 0 1 5.775 -5.996l.225 -.004h3z",key:"svg-0"}]],eS=se("filled","brand-facebook-filled","BrandFacebookFilled",KQ);var qQ=[["path",{d:"M16 3a5 5 0 0 1 5 5v8a5 5 0 0 1 -5 5h-8a5 5 0 0 1 -5 -5v-8a5 5 0 0 1 5 -5zm-4 5a4 4 0 0 0 -3.995 3.8l-.005 .2a4 4 0 1 0 4 -4m4.5 -1.5a1 1 0 0 0 -.993 .883l-.007 .127a1 1 0 0 0 1.993 .117l.007 -.127a1 1 0 0 0 -1 -1",key:"svg-0"}]],oS=se("filled","brand-instagram-filled","BrandInstagramFilled",qQ);var VQ=[["path",{d:"M17 2a5 5 0 0 1 5 5v10a5 5 0 0 1 -5 5h-10a5 5 0 0 1 -5 -5v-10a5 5 0 0 1 5 -5zm-9 8a1 1 0 0 0 -1 1v5a1 1 0 0 0 2 0v-5a1 1 0 0 0 -1 -1m6 0a3 3 0 0 0 -1.168 .236l-.125 .057a1 1 0 0 0 -1.707 .707v5a1 1 0 0 0 2 0v-3a1 1 0 0 1 2 0v3a1 1 0 0 0 2 0v-3a3 3 0 0 0 -3 -3m-6 -3a1 1 0 0 0 -.993 .883l-.007 .127a1 1 0 0 0 1.993 .117l.007 -.127a1 1 0 0 0 -1 -1",key:"svg-0"}]],tS=se("filled","brand-linkedin-filled","BrandLinkedinFilled",VQ);var YQ=[["path",{d:"M17 3.34a10 10 0 0 1 -8.512 18.023l2.364 -5.315a3.5 3.5 0 0 0 2.398 .952c2.708 0 4.75 -2.089 4.75 -5a6 6 0 1 0 -11.64 2.041a1 1 0 1 0 1.88 -.682a4 4 0 1 1 7.76 -1.36c0 1.818 -1.156 3.001 -2.75 3.001c-.609 0 -1.153 -.361 -1.478 -1.022l1.142 -2.572a1 1 0 0 0 -1.828 -.812l-4.392 9.882a10 10 0 0 1 -4.694 -8.476l.005 -.324a10 10 0 0 1 14.995 -8.336",key:"svg-0"}]],rS=se("filled","brand-pinterest-filled","BrandPinterestFilled",YQ);var XQ=[["path",{d:"M16.083 2h-4.083a1 1 0 0 0 -1 1v11.5a1.5 1.5 0 1 1 -2.519 -1.1l.12 -.1a1 1 0 0 0 .399 -.8v-4.326a1 1 0 0 0 -1.23 -.974a7.5 7.5 0 0 0 1.73 14.8l.243 -.005a7.5 7.5 0 0 0 7.257 -7.495v-2.7l.311 .153c1.122 .53 2.333 .868 3.59 .993a1 1 0 0 0 1.099 -.996v-4.033a1 1 0 0 0 -.834 -.986a5.005 5.005 0 0 1 -4.097 -4.096a1 1 0 0 0 -.986 -.835z",key:"svg-0"}]],aS=se("filled","brand-tiktok-filled","BrandTiktokFilled",XQ);var ZQ=[["path",{d:"M18.497 4.409a10 10 0 0 1 -10.36 16.828l-.223 -.098l-4.759 .849l-.11 .011a1 1 0 0 1 -.11 0l-.102 -.013l-.108 -.024l-.105 -.037l-.099 -.047l-.093 -.058l-.014 -.011l-.012 -.007l-.086 -.073l-.077 -.08l-.067 -.088l-.056 -.094l-.034 -.07l-.04 -.108l-.028 -.128l-.012 -.102a1 1 0 0 1 0 -.125l.012 -.1l.024 -.11l.045 -.122l1.433 -3.304l-.009 -.014a10 10 0 0 1 1.549 -12.454l.215 -.203a10 10 0 0 1 13.226 -.217m-8.997 3.09a1.5 1.5 0 0 0 -1.5 1.5v1a6 6 0 0 0 6 6h1a1.5 1.5 0 0 0 0 -3h-1l-.144 .007a1.5 1.5 0 0 0 -1.128 .697l-.042 .074l-.022 -.007a4.01 4.01 0 0 1 -2.435 -2.435l-.008 -.023l.075 -.041a1.5 1.5 0 0 0 .704 -1.272v-1a1.5 1.5 0 0 0 -1.5 -1.5",key:"svg-0"}]],nS=se("filled","brand-whatsapp-filled","BrandWhatsappFilled",ZQ);var JQ=[["path",{d:"M8.267 3a1 1 0 0 1 .73 .317l.076 .092l4.274 5.828l5.946 -5.944a1 1 0 0 1 1.497 1.32l-.083 .094l-6.163 6.162l6.262 8.54a1 1 0 0 1 -.697 1.585l-.109 .006h-4.267a1 1 0 0 1 -.73 -.317l-.076 -.092l-4.276 -5.829l-5.944 5.945a1 1 0 0 1 -1.497 -1.32l.083 -.094l6.161 -6.163l-6.26 -8.539a1 1 0 0 1 .697 -1.585l.109 -.006h4.267z",key:"svg-0"}]],sS=se("filled","brand-x-filled","BrandXFilled",JQ);var QQ=[["path",{d:"M18 3a5 5 0 0 1 5 5v8a5 5 0 0 1 -5 5h-12a5 5 0 0 1 -5 -5v-8a5 5 0 0 1 5 -5zm-9 6v6a1 1 0 0 0 1.514 .857l5 -3a1 1 0 0 0 0 -1.714l-5 -3a1 1 0 0 0 -1.514 .857z",key:"svg-0"}]],lS=se("filled","brand-youtube-filled","BrandYoutubeFilled",QQ);var iNe="outline",Ku={fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},oee={},iS={fillRule:"evenodd"},tee=[["path",{...Ku,d:"M21 4L3 11L7 13L9 19L12 15L17 20z"}],["path",{...iS,d:"M21 4L3 11L7 13L9 19L12 15L17 20zM15.212 8.939 10.576 13.576 11.424 14.424 16.061 9.788z"}]],ree=[["path",{...Ku,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",{...oee,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("")}]],aee=[["path",{...Ku,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",{...Ku,d:["M8.319 15.972L7.84 15.918L7.349 15.832L6.865 15.715L6.388 15.568L4 17L4 14.199","L3.559 13.775L3.197 13.356L2.877 12.91L2.603 12.439L2.376 11.946L2.201 11.433","L2.079 10.902L2.016 10.405L2.001 9.897L2.036 9.386L2.12 8.889L2.25 8.405L2.425 7.937","L2.642 7.486L2.9 7.055L3.195 6.645L3.459 6.333L3.744 6.037L4.05 5.757L4.377 5.495","L4.723 5.25L5.086 5.025L5.467 4.819L5.864 4.634L6.275 4.471L6.701 4.331L7.139 4.214","L7.589 4.122L8.05 4.055L8.521 4.014L9.352 4.007L9.815 4.04L10.269 4.098L10.713 4.181","L11.146 4.287L11.567 4.416L11.975 4.567L12.369 4.739L12.748 4.932L13.112 5.143","L13.459 5.374L13.788 5.622L14.172 5.956L14.458 6.241L14.722 6.542L14.965 6.856","L15.217 7.237A8.35 7.35 0 0 0 8.319 15.972z"].join("")}],["path",{...iS,d:["M8.319 15.972L7.84 15.918L7.349 15.832L6.865 15.715L6.388 15.568L4 17L4 14.199","L3.559 13.775L3.197 13.356L2.877 12.91L2.603 12.439L2.376 11.946L2.201 11.433","L2.079 10.902L2.016 10.405L2.001 9.897L2.036 9.386L2.12 8.889L2.25 8.405L2.425 7.937","L2.642 7.486L2.9 7.055L3.195 6.645L3.459 6.333L3.744 6.037L4.05 5.757L4.377 5.495","L4.723 5.25L5.086 5.025L5.467 4.819L5.864 4.634L6.275 4.471L6.701 4.331L7.139 4.214","L7.589 4.122L8.05 4.055L8.521 4.014L9.352 4.007L9.815 4.04L10.269 4.098L10.713 4.181","L11.146 4.287L11.567 4.416L11.975 4.567L12.369 4.739L12.748 4.932L13.112 5.143","L13.459 5.374L13.788 5.622L14.172 5.956L14.458 6.241L14.722 6.542L14.965 6.856","L15.217 7.237A8.35 7.35 0 0 0 8.319 15.972zM5.25 7.9a0.85 0.85 0 1 0 1.7 0","a0.85 0.85 0 1 0 -1.7 0zM8.25 7.9a0.85 0.85 0 1 0 1.7 0a0.85 0.85 0 1 0 -1.7 0z"].join("")}],["path",{...iS,d:["M16.5 10c3.038 0 5.5 2.015 5.5 4.5c0 1.397 -.778 2.645 -2 3.47l0 2.03l-1.964 -1.178","a6.649 6.649 0 0 1 -1.536 .178c-3.038 0 -5.5 -2.015 -5.5 -4.5s2.462 -4.5 5.5 -4.5z","M14.15 14a0.85 0.85 0 1 0 1.7 0a0.85 0.85 0 1 0 -1.7 0zM17.15 14","a0.85 0.85 0 1 0 1.7 0a0.85 0.85 0 1 0 -1.7 0z"].join("")}]],nee=se("filled","brand-telegram-filled","BrandTelegramFilled",tee),see=se("filled","brand-line-filled","BrandLineFilled",ree),lee=se("filled","brand-wechat-filled","BrandWechatFilled",aee),iee={instagram:{outline:jy,solid:oS},facebook:{outline:Uy,solid:eS},tiktok:{outline:Yy,solid:aS},youtube:{outline:Qy,solid:lS},x:{outline:Jy,solid:sS},linkedin:{outline:Ky,solid:tS},pinterest:{outline:qy,solid:rS},whatsapp:{outline:Zy,solid:nS},telegram:{outline:Vy,solid:nee},line:{outline:Gy,solid:see},wechat:{outline:Xy,solid:lee}};function PH({platform:e,iconStyle:o,size:t}){let r=iee[e][o];return eee(r,{size:t,stroke:1.75,"aria-hidden":"true",focusable:"false"})}var cee={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 pee({platform:e}){let{rows:o,saveLink:t}=Ai(),{value:r,error:a}=o[e],[n,s]=OH(r),[l,i]=OH(!1),d=TH(),f=TH();dee(()=>s(r),[r]);let x=async()=>{if(n.trim()===r){n!==r&&s(r);return}i(!0),await t(e,n),i(!1)},u=MT[e];return EH(dS,{children:[ja(fee,{label:c(u),htmlFor:d,icon:ja(PH,{platform:e,iconStyle:"outline",size:18}),children:ja("input",{id:d,type:"text",inputMode:"url",value:n,placeholder:cee[e],onChange:h=>s(h.target.value),onBlur:()=>{x()},onKeyDown:h=>{h.key==="Enter"&&h.currentTarget.blur(),h.key==="Escape"&&(s(r),h.currentTarget.blur())},"aria-invalid":a?!0:void 0,"aria-describedby":a?f:void 0,"aria-busy":l||void 0,autoComplete:"off",spellCheck:!1})}),a&&ja("p",{id:f,className:"sf-note sf-note--error",role:"alert",children:a})]})}function _H({unavailable:e}){let{canSave:o}=Ai();return!o&&e?ja(dS,{children:e}):EH(dS,{children:[ja("p",{className:"es-field-hint",children:c("Paste a link to each profile. A platform left empty shows nothing on the site.")}),Rf.map(t=>ja(pee,{platform:t},t))]})}import{jsx as qa,Fragment as Mee,jsxs as Hee}from"react/jsx-runtime";import{useId as Wee,useMemo as $ee}from"react";import{useEasel as zee}from"efficient-easel/easel";import{SettingsField as Uee,SettingsSwitch as jee}from"efficient-easel/panel";import{EyeIcon as Gee}from"efficient-easel/icons";import{fieldShownInView as Kee}from"efficient-easel/fields";import{usePreviewDevice as qee}from"efficient-easel/draw/client";import{ROOT_ZONE as Vee}from"efficient-easel/draw";import{jsx as Ka,Fragment as xee}from"react/jsx-runtime";import{createContext as hee,useContext as Iee,useLayoutEffect as gee,useMemo as FH,useRef as yee,useState as BH}from"react";import{useEasel as LH,useSelectedFields as See}from"efficient-easel/easel";import{fieldShownInView as bee,Inspector as wee,LEAD_BAND_KEY as Cee,planFields as RH}from"efficient-easel/fields";function AH({allTabs:e,remembered:o,inherited:t,buckets:r,hasText:a}){return o&&(e||r.includes(o))?o:t&&r.includes(t)?t:a?"Design":r[0]??"Design"}import{jsx as uee}from"react/jsx-runtime";import{EmptyState as mee}from"efficient-shell/ui";function Ga(){return uee(mee,{variant:"none",icon:!1,message:c("These settings apply to every view.")})}import{usePreviewDevice as kee}from"efficient-easel/draw/client";import{deviceField as vee}from"efficient-easel/screen/lib/document/device-fields";var Pee="Text",fS=new Map,qu=new Set,Tee=Object.fromEntries(Ti.map(e=>{let o=gT[e];return[e,Ka(o,{},e)]})),DH=hee(null),Oee={_partBody:vee("each",{type:"custom",render:()=>Ka(Eee,{})})};function Eee(){return Ka(xee,{children:Iee(DH)})}function At({entries:e,entryCount:o=0,part:t=null,omit:r,motion:a,body:n,itemWord:s}){let{id:l,fields:i,values:d,readOnly:f,onChange:x}=See(),u=FH(()=>a?{...d,...a.values}:d,[d,a?.values]),h=(ee,xe)=>a?.keys.has(ee)?a.onChange(ee,xe):x(ee,xe),I=kee(),{appState:S,config:v}=LH(ee=>ee),O=AP(I,v,S.data.content??[],S.ui.itemSelector),R=n===void 0?u_(i,t):Oee,T=FH(()=>{let ee=r?.length?Object.fromEntries(Object.entries(R).filter(([xe])=>!r.includes(xe))):R;return a?{...ee,...a.fields}:ee},[R,r,a?.fields]),g=Tx(T,u,O),[w,_]=BH(()=>new Set(qu)),E=bee({},I),D={key:Cee,title:Pee},b=LH(ee=>ee.selectedItem)!==null,F=a?.part??t??"",y=`${l}:${F}:${String(I)}`,[k,P]=BH(()=>({tab:fS.get(y)})),C=`${l}:${F}`,B=yee(null),H={...O,node:u},q=RH(g,{values:u,context:H}).buckets,$=AH({allTabs:b,remembered:fS.get(y),inherited:B.current?.panel===C?B.current.tab:k.tab,buckets:q,hasText:E&&o>0}),le=!E&&!q.includes($)&&(RH(Tx(T,u,{...O,device:"desktop"}),{values:u,context:{...H,device:"desktop"}}).buckets.includes($)||$==="Design"&&o>0);gee(()=>{B.current={panel:C,tab:$}});let pe=$==="Design";return Ka(DH.Provider,{value:n??null,children:Ka(vT.Provider,{value:a?u:null,children:Ka(wee,{fields:g,values:u,onChange:h,readOnly:f,allTabs:b,showWhenContext:H,context:{itemWord:s},tab:$,onTab:ee=>{fS.set(y,ee),P({tab:ee})},tabIcons:Tee,idPrefix:l,ariaLabel:c("Section settings"),lead:pe?e:null,leadFold:D,closedFolds:w,onFold:(ee,xe)=>{xe?qu.delete(ee):qu.add(ee),_(new Set(qu))},children:le&&Ka(Ga,{})})})})}import{useMemo as _ee}from"react";import{useEasel as Aee}from"efficient-easel/easel";import{useSectionOps as Fee}from"efficient-easel/screen/lib/document/use-section-ops";var NH=new Map,Bee=e=>{let o=NH.get(e);return o||NH.set(e,o=Pu(ku(e),`part:${e}`)),o},Lee=new Set(Oh);function Cs(e,o,t){let{getItemById:r,getSelectorForId:a}=Aee(f=>f),n=Fee(),s=r(e)?.props??{},l=ya(s,o),i=JSON.stringify(l),d=_ee(()=>Object.fromEntries(Oh.map(f=>[f,l[f]])),[i]);return{part:o,fields:Bee(t),values:d,keys:Lee,onChange:(f,x)=>{let u=a(e),h=r(e);if(!u||!h)return;let I=WO(h.props??{},o,f,x);n.replaceComponent(u.zone,u.index,{...h,props:I})}}}import{Fragment as Ree,createElement as Dee}from"react";import{deviceField as cS}from"efficient-easel/screen/lib/document/device-fields";var go=()=>({type:"custom",render:()=>Dee(Ree)});var pS={words:go(),sourceNote:go(),style:go(),font:go(),italic:go(),fontSize:cS("each",go()),lineHeight:go(),letterSpacing:go(),paragraphSpacing:go(),padding:go(),align:cS("each",go()),letterCase:go(),fixedSizeHint:cS("each",go()),regionNote:go(),regionStyle:go()},Nee=["fontSize","align"];function MH(e){return Nee.includes(e)}var HH={showTicker:go(),items:go()};function WH({heroId:e}){let{appState:o,dispatch:t}=zee(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=$ee(()=>{let h=n?.props.tickerItems;return Array.isArray(h)?h:r1.map(I=>({text:I}))},[n]),i=Wee(),d=qee(),f=h=>Kee(HH[h],d),x=Cs(e,a1,"block");if(!n)return qa("p",{className:"sf-note",children:c("This ticker\u2019s hero is no longer on the page.")});let u=h=>t({type:"replace",destinationZone:Vee,destinationIndex:a,data:{...n,props:{...n.props,...h}}});return qa(At,{motion:x,body:Hee(Mee,{children:[!f("showTicker")&&!f("items")&&qa(Ga,{}),f("showTicker")&&qa(Uee,{label:c("Show ticker"),labelId:i,icon:qa(Gee,{}),action:qa(jee,{checked:s,onChange:h=>u({showTicker:h}),ariaLabelledBy:i})}),f("items")&&qa(_T,{label:Mx.label,icon:Mx.icon,items:l,placeholder:"item",onChange:h=>u({tickerItems:h}),markup:!0})]})})}import{jsx as Z,Fragment as Ni,jsxs as It}from"react/jsx-runtime";import{useContext as ioe,useEffect as uS,useRef as doe,useState as ZH}from"react";import{FieldSelect as foe,InspectorField as coe,fieldShownInView as poe}from"efficient-easel/fields";import{InertHint as s2,SettingsField as uoe}from"efficient-easel/panel";import{InspectorUpLevel as Qu}from"efficient-easel/chrome";import{StylesIcon as moe,TypeIcon as xoe}from"efficient-easel/icons";import{useEasel as hoe}from"efficient-easel/easel";import{TextPartPanel as JH}from"efficient-easel/copy";import{Button as Ioe,IconButton as goe,Tooltip as yoe}from"efficient-shell/ui";import{jsx as UH,jsxs as Yee}from"react/jsx-runtime";import{DEFAULT_EASEL_STRINGS as Xee}from"efficient-easel/strings";import{COPY_CELLS as ks,COPY_CELL_LENGTHS as $H,CopyBox as Zee,lengthCellUnits as Jee}from"efficient-easel/copy";import{PaddingYIcon as Qee}from"efficient-easel/icons";import{onDesktopWords as eoe}from"efficient-easel/screen/lib/document/box-fields";var zH=Xee.copy.cells,ooe={kind:"spacing"},toe=["left","center","right","justify"];function Vu(e,o,t,r="desktop"){let a=Ev(e),n=Av(r),s=e[n]??e.size??o.sizePx,l=Fv(e,r),i=(f,x,u,h,I)=>{let S=al[u];return Jee({preset:f,row:x,table:vf,unit:e[S],value:e[u],tier:r,styleValue:h,label:c(I),onPick:(v,O)=>t({[S]:v??null,[u]:O??null}),onChange:(v,O)=>t({...O?{[S]:O.unit??null}:{},[u]:v??null})})},d={key:"padding",name:c("Padding"),icon:UH(Qee,{}),unit:"px",step:vv,shiftStep:10,min:Cv,max:kv};return[{...ks.fontSize,key:"fontSize",value:e[n],styleValue:Math.round(o.sizePx),onChange:f=>t({[n]:f??null}),...i(ks.fontSize,$H.fontSize,n,Math.round(o.sizePx),zH.fontSize),...n==="size"?{}:{reset:{detail:l?eoe(f=>c(f),`${l.px}px`,l.view):void 0}}},{...ks.lineHeight,key:"lineHeight",value:a.lineHeight,styleValue:o.lineRatio,onChange:f=>t(f===void 0?{lineHeight:null,line:null}:{lineHeight:f})},{...ks.letterSpacing,key:"letterSpacing",scale:s,value:a.letterSpacingEm,styleValue:o.letterEm,onChange:f=>t(f===void 0?{letterSpacing:null,letter:null}:{letterSpacing:f})},{...ks.paragraphSpacing,key:"paragraphSpacing",value:e.paragraphSpacing,styleValue:0,onChange:f=>t({paragraphSpacing:f??null}),...i(ks.paragraphSpacing,$H.paragraphSpacing,"paragraphSpacing",0,zH.paragraphSpacing)},{...d,value:e.padding,styleValue:o.paddingPx,onChange:f=>t({padding:f??null}),...i(d,ooe,"padding",o.paddingPx,"Padding")}]}function jH({text:e,onTextChange:o,multiline:t,markup:r=!0,styled:a=!0,style:n,base:s,setValue:l,colors:i,placeholder:d,ariaLabel:f,head:x,typedOnCanvas:u=!1}){let h=Vu(n,s,l),I=th(r,t);return Yee("div",{className:"sf-part-textbox",children:[x,UH(Zee,{value:e,onChange:o,multiline:t,placeholder:d,ariaLabel:f,rules:cd,tools:I,barShows:u?"focus":"always",colors:r?i:[],colorNameOf:nf,align:a?{value:n.align??s.align,allow:toe,onChange:S=>l({align:S})}:void 0,letterCase:a?{value:n.case==="capitalize"?"":n.case??"",onChange:S=>l({case:S||null})}:void 0,cells:a?h:void 0})]})}import{UiIcon as QH}from"efficient-easel/draw/client";import{jsx as Yu,Fragment as roe,jsxs as aoe}from"react/jsx-runtime";import{Button as GH,Dialog as noe}from"efficient-shell/ui";function KH({styleName:e,onCancel:o,onConfirm:t}){return Yu(noe,{open:!0,onClose:o,role:"alertdialog",size:"sm",title:c("Update {style}?",{style:e}),footer:aoe(roe,{children:[Yu(GH,{variant:"secondary",onClick:o,children:c("Cancel")}),Yu(GH,{variant:"primary",onClick:t,children:c("Update style")})]}),children:Yu("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 Soe}from"efficient-easel/screen/components/ScreenDocumentContext";import{usePreviewDevice as boe}from"efficient-easel/draw/client";import{shownTier as Zu}from"efficient-easel/screen/lib/document/device-fields";import{TEXT_FIELD_MARKER as woe,viewKeyAt as Coe}from"efficient-easel/draw";import{useSectionOps as koe}from"efficient-easel/screen/lib/document/use-section-ops";import{useEaselHost as voe}from"efficient-easel/screen/lib/host";function soe(e){let o=new Set([...Object.keys(z(Yk,e)??{}),...z(Xk,e)??[]]);for(let[t,r]of Object.entries(z(Jk,e)??{}))r.verb==="snapshot"&&o.add(t);return[...o].sort()}var loe={CollectionCard:"product",FooterMenu:"menu",Gallery:"product",GalleryItem:"product",ProductGrid:"product",ProductHero:"product",SpecTable:"product",Events:"blog",FeaturedCover:"blog",LongRead:"blog",SubscribeBlogs:"blog"},qH={product:"Synced from the product.",blog:"Synced from the blog post.",menu:"Synced from the site menu."},VH="Open",YH={product:{type:"storefront-editor:open-product",needsSlug:!0},blog:{type:"storefront-editor:open-post",needsSlug:!0},menu:{type:"storefront-editor:open-menus",needsSlug:!1}};function vs(e){let o=e?.source?.slug;return fo(o)}function Ri(e){return z(loe,e)??null}function XH(e,o){let t=Ri(e);return t&&soe(e).includes(o)?t:null}function Xu(e){let o=e?.menu?.id;return fo(o)}function mS(e){return e?c(e):null}function e2(e){return e.kind==="role"?vm[e.role]:e.kind==="custom"?"Custom":null}function Poe(e){let o=gb(e.role);return o?{kind:"role",role:o}:null}function Toe(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 Ju(e,o,t,r){return Poe(Tr(e,o))??Toe(t,r)}function Ooe(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:Di,label:c("No style"),description:c("Section\u2019s own")},...e.map(t=>({value:t.id,label:t.name,description:t.values.font?fd(t.values.font,o)?.label:void 0}))]}var Di="";function Eoe({face:e,base:o,onPick:t}){let r=Ct(),a=e.kind==="role"?e.role:Di,n=[{label:c("No style"),value:Di},...Ib.map(s=>({label:c(vm[s]),value:s}))];return Z(foe,{ariaLabel:c("Style"),value:a,options:n,inline:!0,onChange:s=>t(s===Di?null:s),renderOption:s=>s.value===Di?It(Ni,{children:[Z("span",{className:"es-fsel-label sf-part-style-keep",children:s.label}),Z("span",{className:"sf-part-style-aside","aria-hidden":"true",children:c("Section\u2019s own")})]}):Z("span",{className:"es-fsel-label",style:{fontFamily:`var(--font-role-${s.value})`},children:s.label}),renderValue:()=>Z("span",{style:{fontFamily:o?.fontKey?`var(${fd(o.fontKey,r)?.cssVar})`:void 0,fontWeight:o?.weight},children:mS(e2(e))}),valueText:s=>mS(e2(e))??s?.label??""})}var l2=["regionNote","regionStyle"],_oe=Object.keys(pS).filter(e=>!l2.includes(e));function i2(e,o){return!e.some(o)}function Aoe({sectionName:e,onBack:o,textEditor:t,styleRow:r,children:a,tabs:n}){let s=It(Ni,{children:[t,r,a]});return It("div",{className:"sf-part-panel",children:[Z(Qu,{inline:!0,name:c(e),onSelect:o}),n?n(s):s]})}function em({source:e,slug:o,menuId:t}){let r=voe(),a=YH[e],n=!a.needsSlug||!!o;return Z("div",{className:"sf-note sf-note--source",children:It(s2,{children:[c(qH[e]),n?It(Ni,{children:[" ",Z(Ioe,{type:"button",variant:"link",size:"sm",onClick:()=>{a.type==="storefront-editor:open-menus"?r.send(a.type,{menuId:t??null}):o&&r.send(a.type,{slug:o})},children:c(VH)})]}):null]})})}var t2=4,Foe=120;function r2(e){return c("Every {part} in this section follows it. The face and the size change; the letter case is the section\u2019s own and stays as it is.",{part:c(e.label).toLowerCase()})}function a2({region:e,sizePx:o,face:t,base:r,onFollowStyle:a,source:n,slug:s,onBack:l,shows:i,sizedStyle:d,ownLook:f}){let x=e.follows;return It("div",{className:"sf-note",children:[Z("p",{children:Z("strong",{children:c(e.label)})}),i("regionNote")&&!f&&Z("p",{children:o?c("Its size follows Styles \u25B8 {follows} \u2014 {px}px right now.",{follows:c(x),px:Math.round(o)}):c("Its size follows Styles \u25B8 {follows}.",{follows:c(x)})}),d?It(Ni,{children:[d,i("regionStyle")&&Z("p",{className:"es-field-hint",children:r2(e)})]}):a?i("regionStyle")?Z(Ni,{children:Z(uoe,{label:c("Style"),icon:Z(moe,{}),hint:r2(e),children:Z(Eoe,{face:t,base:r,onPick:a})})}):null:i("regionNote")&&Z("p",{className:"es-field-hint",children:c("Only the size follows a site style. This section sets its own font, weight and letter case.")}),n&&i("sourceNote")?Z(em,{source:n,slug:s}):null,i2([...l2,"sourceNote",...d?["fontSize"]:[]],u=>i(u)&&(u!=="sourceNote"||!!n))&&Z(Ga,{}),Z(Qu,{inline:!0,name:c("Page"),onSelect:l})]})}function Boe({onBack:e}){return It("div",{className:"sf-note",children:[Z("p",{children:Z("strong",{children:c("This part is no longer here.")})}),Z("p",{children:c("The section it belonged to has been changed or removed.")}),Z(Qu,{inline:!0,name:c("Page"),onSelect:e})]})}function Loe({onBack:e,partId:o,why:t}){return It("div",{className:"sf-note",children:[Z("p",{children:Z("strong",{children:c("This part's settings did not open.")})}),Z("p",{children:c("The words are still on your page and nothing has been lost. The editor could not work out which control belongs to them, which is a fault on our side. Go back and click the section to open its settings instead.")}),Z("p",{className:"sf-note-detail",children:It("code",{children:[o," \u2014 ",t]})}),Z(Qu,{inline:!0,name:c("Page"),onSelect:e})]})}function d2({nodeId:e,propKey:o,onBack:t,onEditStyle:r}){let{getItemById:a,getSelectorForId:n,config:s}=hoe(G=>G),l=koe(),i=I0(),{partStyle:d}=fs(),{fonts:f,textStyles:x}=ko(),u=Ct(),h=ioe(Soe),I=!h?.capabilities?.hasSiteTheme,{persist:S}=fT({themeFromDocument:I,tokenRef:h?.tokenRef,siteId:h?.siteId??null}),v=qT({themeFromDocument:I,persist:S}),[O,R]=ZH(!1),T=boe(),g=G=>(Zu(T)!=="tablet"||MH(G))&&poe(pS[G],T),w=doe(null),_=a(e),E=n(e),D=_?s.components[_.type]:void 0,{key:b,row:F}=Wt(o),y=D?.fields?.[b],k=F?Dn(y,F):y,P=$t(e,o),C=_?.props??{},B=df(k),H=_f(k),q=pv(k),$=_?Ri(_.type):null,le=_?XH(_.type,b):null,pe=F?cf(C[b],F):C[b],ee=!!F&&!(Array.isArray(C[b])&&F.index<C[b].length);uS(()=>{h0(document)||w.current?.querySelector(".es-copy [contenteditable='true'], .es-copy textarea, .sf-copybox textarea, .sf-copybox input")?.focus()},[P]);let[xe,oe]=ZH(0);uS(()=>oe(0),[P]);let ie=!!_&&!ee&&(!E||!k);uS(()=>{if(!ie||xe>=t2)return;let G=setTimeout(()=>oe(Ae=>Ae+1),Foe);return()=>clearTimeout(G)},[ie,xe]);let ge=ie&&xe<t2,Re=Cs(e,sr(_?.type,o),"textPart");if(!_||ee)return Z(Boe,{onBack:t});let $e=cs(_.type),yo=$e?$s($e,o):null;if($e&&yo){let G=d?.partId===P?d:null,Ae=$e[yo],_o=Ae.writable===!0&&!!E,xr=Zr=>{E&&l.replaceComponent(E.zone,E.index,{..._,props:sa(C,o,"role",Zr)})};if(_o&&mw(Ae)){let Zr=Tr(C,o),QS=Jr=>{if(!E)return;let Cm=C;for(let[q4,V4]of Object.entries(Jr))Cm=sa(Cm,o,q4,V4??null);l.replaceComponent(E.zone,E.index,{..._,props:Cm})},j4=$x(v.saved,v.old),G4=yx(Zr)??"",K4=Vu(Zr,G?.base??n2,QS,Zu(T)).filter(Jr=>Jr.key==="fontSize"&&g(Jr.key));return Z(At,{motion:Re,body:Z(a2,{region:Ae,sizePx:G?.base.sizePx??null,face:Ju(C,o,G,f),base:G?.base??null,source:$,slug:vs(C),onBack:t,shows:g,ownLook:Wv(Zr),sizedStyle:Z(JH,{style:g("style")?{value:G4,options:o2(j4,u),onChange:Jr=>QS(Jr?{textStyle:Jr}:{textStyle:null,role:null}),onEditStyles:r}:void 0,cells:K4})})})}return Z(At,{motion:Re,body:Z(a2,{region:Ae,sizePx:G?.base.sizePx??null,face:Ju(C,o,G,f),base:G?.base??null,onFollowStyle:_o?xr:void 0,source:$,slug:vs(C),onBack:t,shows:g})})}if(!E||!k)return ge?Z("div",{className:"sf-note","aria-busy":"true"}):Z(Loe,{onBack:t,partId:P,why:E?"no field":"no selector"});let oo=G=>{l.replaceComponent(E.zone,E.index,{..._,props:G})},io=G=>{if(ca(G).hidden!==ca(pe).hidden||!B){let Ae=F?av(C,b,F,G):{...C,[b]:G};Ae&&oo(Ae);return}Hf({node:_,propKey:o,kind:B,zone:E.zone,index:E.index},ca(G).text,l.replaceComponent)},So=pe,Xe=d?.partId===P?d:null,bo=Xe?.styleOwner,N=bo?a(bo.owner):null,te=bo&&N?n(bo.owner):null,he=!!(bo&&N&&te),De=he?N.props??{}:C,Oo=he?G=>l.replaceComponent(te.zone,te.index,{...N,props:G}):oo,Zo=he?bo.kind:sr(_?.type,o),Eo=Tr(De,Zo),ve=[{partKey:Zo,face:Ju(De,Zo,Xe,f),sizeGroup:Xe?.sizeGroup??null,base:Xe?.base??n2,style:Eo}],yt=Ooe(ve,G=>G.sizeGroup),Za=sf(Xe?.inks),Vr=(G,Ae)=>{let _o=De;for(let xr of ve)_o=sa(_o,xr.partKey,G,Ae);Oo(_o)},bm=G=>G?Vr("textStyle",G):Lo({textStyle:null,role:null}),Lo=G=>{let Ae=De;for(let _o of ve)for(let[xr,Zr]of Object.entries(G))Ae=sa(Ae,_o.partKey,xr,Zr??null);Oo(Ae)},Yr=B==="text"||B==="textarea",{text:As,hidden:Ro}=ca(pe),Ja=k?.[woe]?.label??o,Vt=Ro?c("Show {label} on the slide",{label:c(Ja)}):c("Hide {label} on the slide",{label:c(Ja)}),Fs=It("div",{className:"sf-field-head",children:[Z(xoe,{}),Z("span",{className:"sf-field-label sf-field-label--inline",children:c(Ja)}),Yr&&Z(yoe,{content:Vt,children:Z(goe,{"aria-pressed":Ro,"aria-label":Vt,onClick:()=>io({text:As,hidden:!Ro}),children:Ro?Z(QH,{name:"eye-off",size:14}):Z(QH,{name:"eye",size:14})})})]}),Xr=!H&&q,mr=!!B&&(IT(k)||H||Ro||!q),ed=Ju(De,Zo,Xe,f),wm=ed.kind==="role"?ed.role:null,Qa=yx(Eo)??UT(wm),en=$x(v.saved,v.old),od=Object.entries(Eo).filter(([G,Ae])=>G!=="role"&&G!=="textStyle"&&Ae!==void 0).length,Bs=()=>{let G=De;for(let Ae of ve){let{role:_o,textStyle:xr}=Ae.style;G=Ov(G,Ae.partKey),_o&&(G=sa(G,Ae.partKey,"role",_o)),xr&&(G=sa(G,Ae.partKey,"textStyle",xr))}Oo(G)},Jo=Qa,td=GT(ve[0].style),rd=Jo?en.find(G=>G.id===Jo)?.name??Jo:"",ad=()=>{R(!1),Jo&&(v.write(KT({saved:v.saved,old:v.old,styleId:Jo,values:jT(ve[0].style)}),!0),Bs())};return It(Aoe,{sectionName:D?.label??_.type,onBack:t,tabs:G=>Z(At,{motion:Re,body:G}),textEditor:g("words")?Z("div",{ref:w,className:"sf-part-text",children:mr?Z(jH,{text:As,onTextChange:G=>io(Yr?{text:G,hidden:Ro}:G),multiline:ff(B),markup:B!=="plainText",styled:!1,style:ve[0].style,base:ve[0].base,setValue:Lo,colors:Za,placeholder:mS(ev(k))??void 0,ariaLabel:c(Ja),head:Fs,typedOnCanvas:i===P}):B?Yr?Fs:null:Z(coe,{field:k,name:o,value:So,onChange:io,id:`sf-part-${e}-${o}`})}):void 0,children:[le&&g("sourceNote")&&Z(em,{source:le,slug:vs(C),menuId:Xu(C)}),Xr&&Z(JH,{style:g("style")?{value:Qa??"",options:o2(en,u),onChange:G=>bm(G||null),changed:od>0,onEditStyles:r,onUpdateStyle:Jo&&td?()=>R(!0):void 0}:void 0,font:g("font")?{value:Eo.font??"",styleValue:fd(ve[0].base.fontKey,u)?.label,options:hb(u).map(G=>({label:G.label,value:G.key})),onChange:G=>Vr("font",G||null)}:void 0,italic:g("italic")?{value:Eo.italic,styleValue:Doe(x,Qa),onChange:G=>Vr("italic",G??null)}:void 0,cells:Vu(ve[0].style,ve[0].base,Lo,Zu(T)).filter(G=>g(G.key)),align:g("align")?Roe(Eo,ve[0].base.align,Zu(T),Vr):void 0,letterCase:g("letterCase")?{value:Eo.case??"",styleValue:ve[0].base.case,onChange:G=>Vr("case",G||null)}:void 0}),O&&Jo&&Z(KH,{styleName:rd,onCancel:()=>R(!1),onConfirm:ad}),Xr&&yt===null&&g("fixedSizeHint")&&Z(s2,{children:c("Fixed size \u2014 the site\u2019s Text setting doesn\u2019t resize this.")}),i2(_oe,G=>g(G)&&(G==="words"||(G==="sourceNote"?!!le:G==="fixedSizeHint"?Xr&&yt===null:Xr)))&&Z(Ga,{})]})}function Roe(e,o,t,r){let a=Coe("align",t),n=_v(e,t);return{value:e[a]??"",styleValue:n??o,onChange:s=>r(a,s||null)}}function Doe(e,o){return!o||!Array.isArray(e)?!1:e.find(t=>t?.id===o)?.values?.italic===!0}var n2={fontKey:"",sizePx:16,weight:400,lineRatio:1.4,letterEm:0,align:"left",case:"none",paddingPx:0};import{jsx as Ft,jsxs as SS,Fragment as Uoe}from"react/jsx-runtime";import{useCallback as joe,useRef as Goe,useState as Wi}from"react";import{InspectorIconButton as Koe}from"efficient-easel/chrome";import{useEasel as qoe}from"efficient-easel/easel";import{LoadingSpinner as Voe,PopupMenu as Yoe,PopupMenuItem as Xoe,PopupMenuLabel as bS}from"efficient-shell/ui";import{CopyToPageIcon as Zoe}from"efficient-easel/icons";import{useEaselSession as Joe}from"efficient-easel/screen/lib/session-context";import{cloneNodeWithFreshIds as Qoe}from"efficient-easel/screen/lib/document/section-doc";import{FOOTER_TYPE as ete}from"efficient-easel/draw";import{newId as Hoe}from"efficient-easel/data";import{isBackendError as Ps}from"efficient-easel/screen/lib/backend-error";import{isEfficientBackend as y2}from"efficient-easel/screen/lib/session";var om=qP(),xS=om.set;function tm(e,o){xS(e,o)}function rm(e,o){let t=om.get(e);xS(e,o??(t==="live"?"changed":t))}function am(e,o){xS(e,o??"live")}function f2(e){return om.get(e)}function c2(e){return om.use(e)}function p2(e,o){return e==="live"&&o?"changed":e}function hS({live:e,onPress:o,busy:t=!1,pinnedUnpublished:r=!1,goingLive:a}){let n=e==="live"&&!r,s=e==="changed"?c("Changes not live yet"):e==="never"?c("Never published"):r?c("Header and footer not live yet"):e==="live"?c("Everything is live"):null;return{label:c("Publish"),tooltip:e==="never"?c("Put this page on your site"):c("Put your changes on your site"),status:s,quiet:n?{label:c("Published"),reason:c("Everything is live")}:null,...a&&a.length?{goingLive:a}:{},onPress:o,busy:t}}function u2(e){return e.map(o=>o.change==="take_down"?c("{name} (taken down)",{name:o.name}):o.name)}var m2="SharedSection",Noe=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i,Mi=e=>{let o=e?.content;return Array.isArray(o)?o:[]},Hi=e=>{let o=e?.props?.id;return typeof o=="string"?o:void 0};function x2(e){if(e?.type!==m2)return null;let o=e.props?.section;return typeof o=="string"&&Noe.test(o)?o.toLowerCase():null}function h2(e){let o=[];for(let t of Mi(e)){let r=x2(t),a=Hi(t);r&&a&&o.push({refId:a,section:r})}return o}function nm(e){let o=Mi(e)[0];return o&&typeof o=="object"&&Hi(o)?o:null}function Moe(e,o){return{type:m2,props:{id:e,section:o}}}function I2(e,o){let t=new Map,r=new Set,a=!1,n=Mi(e).map(s=>{let l=x2(s),i=Hi(s);if(!l||!i||r.has(l))return s;let d=nm(o.get(l)),f=Hi(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=Mi(e).map(s=>{let l=Hi(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=Mi(d).slice(1),x=nm(d);return r.set(i.section,x===s?d:{...d,content:[s,...f]}),a=!0,i.reference??Moe(i.refId,i.section)});return{page:a?{...e,content:n}:e,docs:r}}function yS(e){return!!(e?.publish&&e.liveState)}function Woe(e,o){if(!yS(e))return;let{versions:t,nameVersion:r,restoreVersion:a,previewVersion:n}=e;if(!(!t||!r||!a||!n))return{list:()=>t.call(e,o),name:(s,l)=>r.call(e,s,l,o),restore:(s,l)=>a.call(e,s,l??{},o),preview:s=>n.call(e,s,o)}}function $oe(e,o){return async(t,r)=>{try{await dT()}catch(a){throw new Error(c("A change waiting to go live could not be saved."),{cause:a})}return(await e.publish(o)).state==="live"?Of({state:"live",changes:[]}):fa(0),{version:r??null}}}function gS(e,o,t){let r=o?{siteId:o}:void 0;return{resolve:a=>e.load({slug:a,...r}).then(n=>(n&&(tm(n.id,n.live),eT(n.id,n.videoFrames)),n)),saveLayout:(a,n,s,l)=>e.save(a,{layout:n},{version:s,clientId:l??""}).then(i=>(rm(a,i.live),oT(a,i.videoFrames),fa(),i)),rereadVersion:e.version?a=>e.version(a):void 0,publish:yS(t)?$oe(t,r):e.publish?(a,n)=>e.publish(a,n?{version:n}:void 0).then(s=>(am(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 zoe(e,o,t,r,a=!1){let n=null,s=new Set,l=!1,i=new Map,d=new Map,f=new Map,x=new Map,u={docId:null,lockHolder:null,conflict:null,saveFailed:!1,unpublished:!1,loadFailed:!1,sections:[]},h=new Set,I=()=>{if(!n)return!1;let b=f2(n.id);return b==="changed"||b==="never"||b===void 0&&l},S=b=>{u={...u,...b,docId:n?.id??null,unpublished:I(),sections:[...f.values()],rootProps:ZP(n?.layout)};for(let F of h)F()},v=(b,F,y)=>{F?f.set(b,{section:b,title:i.get(b)?.title??"",problem:F,holder:y}):f.delete(b)},O=b=>b&&typeof b=="object"&&!Array.isArray(b)?b:{},R=b=>s.has(b),T=()=>new Map([...i].map(([b,F])=>[b,F.layout])),g=()=>Hoe("SharedSection"),w=(b,F,y,k)=>{let P=O(F);i.set(b,{layout:P,version:y,savedJson:JSON.stringify(P),title:k})},_={state:()=>u,subscribe:b=>(h.add(b),()=>{h.delete(b)})},E={sectionOf:b=>d.get(b)?.section??null,heldElsewhere:b=>{let F=d.get(b)?.section;return!!(F&&f.get(F)?.problem==="lock")},adopt:(b,F)=>{w(F.id,F.layout,F.layout_updated_at,F.title),d.set(b,{section:F.id,refId:g()}),x.set(F.id,F.used_on),S({})},place:b=>{if([...d.values()].some(k=>k.section===b.id))return null;let F=nm(O(b.layout)),y=typeof F?.props?.id=="string"?F.props.id:null;return!F||!y||!F.type?null:(w(b.id,b.layout,b.layout_updated_at,b.title),d.set(y,{section:b.id,refId:g()}),x.set(b.id,b.used_on),F)},usedOn:b=>x.get(b)??null,learn:b=>{for(let F of b){x.set(F.id,F.used_on);let y=i.get(F.id);y&&(y.title=F.title);let k=f.get(F.id);k&&f.set(F.id,{...k,title:F.title})}S({})}},D=async(b,F)=>{for(let[y,k]of b){let P=i.get(y),C=JSON.stringify(k);if(!(!P||C===P.savedJson||f.get(y)?.problem==="lock"))try{let B=await e.save(y,{layout:k},{version:P.version,clientId:F??""});rm(y,B.live),P.layout=k,P.version=B.version,P.savedJson=C,v(y,null)}catch(B){Ps(B,"changed-elsewhere")?v(y,"conflict"):Ps(B,"lock-taken")?v(y,"lock",B.holder??void 0):v(y,"save")}}b.size&&fa(),S({})};return{resolve:async b=>{if(Wx(b===Or?null:_),Ax(b===Or?null:E),i=new Map,d=new Map,f=new Map,x=new Map,b===Or)return t.resolve(b);let F=!1,[y,k]=await Promise.all([t.resolve(b),e.load({slug:Or,...o}).catch(()=>(F=!0,null))]);if(k&&!hT(y?.layout)){tm(k.id,k.live);let $=O(k.layout);n={id:k.id,layout:$,version:k.version,savedJson:""}}else n=null;if(l=!1,!y)return S({conflict:null,saveFailed:!1,loadFailed:F}),y;let P=O(y.layout),C=h2(P),B=await Promise.all(C.map($=>e.load({id:$.section,...o}).catch(()=>null)));C.forEach(($,le)=>{let pe=B[le];pe?(tm(pe.id,pe.live),w($.section,pe.layout,pe.version,"")):(i.delete($.section),f.set($.section,{section:$.section,title:"",problem:"load"}))});let H=I2(P,T());if(d=H.held,!n)return d.size&&s.add(y.id),S({conflict:null,saveFailed:!1,loadFailed:F}),d.size?{...y,layout:H.working}:y;let q=JP(H.working,n.layout);return n.savedJson=JSON.stringify(_x(q,n.layout).chrome),s.add(y.id),S({conflict:null,saveFailed:!1,loadFailed:!1}),{...y,layout:q}},saveLayout:async(b,F,y,k)=>{if(!R(b))return t.saveLayout(b,F,y,k);let P=n,C=P?_x(F,P.layout):{page:F,chrome:null},B=g2(C.page,d,T()),H=await t.saveLayout(b,B.page,y,k);if(await D(B.docs,k),!P)return H;let q=JSON.stringify(C.chrome);if(!C.chrome||q===P.savedJson||u.lockHolder)return H;try{let $=await e.save(P.id,{layout:C.chrome},{version:P.version,clientId:k??""});rm(P.id,$.live),fa(),P.layout=C.chrome,P.version=$.version,P.savedJson=q,l=!0,S({conflict:null,saveFailed:!1})}catch($){Ps($,"changed-elsewhere")?S({conflict:$.conflict??{savedBy:"",savedByYou:!1,secondsAgo:0}}):Ps($,"lock-taken")?S({lockHolder:$.holder??{name:"",secondsSinceSeen:0,secondsSinceHeld:0}}):S({saveFailed:!0})}return H},publish:t.publish?async(b,F)=>{let y=await t.publish(b,F),k=n;if(k&&R(b)&&!a&&e.publish&&I()&&!u.lockHolder){let P=await e.publish(k.id,k.version?{version:k.version}:void 0);am(k.id,P.live),P.version!==null&&(k.version=P.version),l=!1,S({})}if(R(b)&&!a&&e.publish)for(let[P,C]of i){if(f.get(P)?.problem==="lock")continue;let B=await e.publish(P,C.version?{version:C.version}:void 0);am(P,B.live),B.version!==null&&(C.version=B.version)}return y}:void 0,lock:r?{claim:async(b,F,y)=>{let k=await r.claim(b,F,y);if(!R(b))return k;let P=n;if(P)try{await r.claim(P.id,F,!1),u.lockHolder&&S({lockHolder:null})}catch(C){Ps(C,"lock-taken")&&S({lockHolder:C.holder??{name:"",secondsSinceSeen:0,secondsSinceHeld:0}})}for(let C of i.keys())try{await r.claim(C,F,!1),f.get(C)?.problem==="lock"&&v(C,null)}catch(B){Ps(B,"lock-taken")&&v(C,"lock",B.holder??void 0)}return i.size&&S({}),k},release:async(b,F)=>{if(await r.release(b,F),!R(b))return;let y=n;y&&!u.lockHolder&&await r.release(y.id,F).catch(()=>{});for(let k of i.keys())f.get(k)?.problem!=="lock"&&await r.release(k,F).catch(()=>{})}}:void 0,pinnedChrome:_}}function sm(e){let o=(t,r,a)=>e.save(t,r.layout?{...r,layout:r0(r.layout)}:r,a);return new Proxy(e,{get(t,r){if(r==="save")return o;let a=Reflect.get(t,r,t);return typeof a=="function"?a.bind(t):a}})}function zHe(e,o,t){return e.update(o,a0(t))}function UHe(e,o=Ao(),t=Ag(),r={}){let a=y2(o),n=e?{siteId:e}:void 0,s=a?!!e:!0,l=o.site.update,i=a&&t.commerce&&t.service,d=!!r.editsPinnedInPlace&&i,f=yS(o.site)?o.site:void 0,x=sm(o.pages),u=gS(x,e,f),h=d?zoe(x,n,u,o.lock,!!f):null;return{capabilities:{canPublish:!!f||!!o.pages.publish,hasSiteSettings:a,hasSiteTheme:!!o.theme,placeholderFrames:!1,mediaEditing:!0,pageCreationInAdminForm:!o.pages.create,canDeletePagesInline:!!o.pages.remove,hasEditLock:!!o.lock,hasEditGuard:!0,hasPinnedChrome:i,editsPinnedInPlace:d,explainsSiteSettings:!1,hasSiteRecord:s,canEditSiteRecord:s&&!!l,hasPreviewLink:a||!!o.preview,hasCatalog:a&&t.commerce,hasForms:a&&t.service,hasBlog:!!o.blog&&t.service,offersCommerce:t.commerce,offersService:t.service},...u,...S2(u.resolve),lock:o.lock,...h,site:s?()=>o.site.get(n):void 0,siteLiveState:f?()=>f.liveState(n):void 0,siteVersions:Woe(f,n),updateSite:s&&l?I=>l(I,n):void 0,previewHref:o.preview?I=>o.preview.href(I):void 0}}function jHe(e,o=Ao(),t=Ag()){let r=y2(o),a=o.templates,n=a?sm(a.pages(e)):{list:()=>Promise.reject(new Error(IS)),load:()=>Promise.reject(new Error(IS)),save:()=>Promise.reject(new Error(IS))};return{capabilities:{canPublish:!1,hasSiteSettings:!1,hasSiteTheme:!1,placeholderFrames:!0,mediaEditing:!1,pageCreationInAdminForm:!n.create,canDeletePagesInline:!!n.remove,hasEditLock:!1,hasEditGuard:!1,hasPinnedChrome:r&&t.commerce&&t.service,editsPinnedInPlace:!1,explainsSiteSettings:r,hasSiteRecord:!1,canEditSiteRecord:!1,hasPreviewLink:!1,hasCatalog:r&&t.commerce,hasForms:r&&t.service,hasBlog:!!o.blog&&t.service,offersCommerce:t.commerce,offersService:t.service},...gS(n,void 0),...S2(gS(n,void 0).resolve),publish:void 0,templateName:a?()=>a.get(e).then(s=>s.name):void 0}}function S2(e){return{resolve:o=>(Wx(null),Ax(null),e(o))}}var IS="This editor's backend has no website templates.";function ote(e,o,t){let r=Qoe(e,void 0,o);return t?.(r)??r}function b2({node:e,currentSlug:o,siteId:t,tokenRef:r,runAuthed:a,onNotify:n}){let[s,l]=Wi(!1),[i,d]=Wi(null),f=Joe(),x=qoe(E=>E.config.components),[u,h]=Wi(!1),[I,S]=Wi(null),v=Goe(null),[O,R]=Wi(null),T=joe(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]),g=()=>{if(s){l(!1);return}let E=v.current?.getBoundingClientRect();E&&R({top:E.bottom+6,right:Math.max(8,window.innerWidth-E.right)}),d(null),h(!1),T(),l(!0)},w=(i??[]).filter(E=>E.slug!==o),_=async E=>{if(I)return;S(E.slug);let D=ote(e,x,f.documentHooks?.storedNode),b=await a(()=>tte(Ao(f).pages,E,D));S(null),l(!1),n?.(b?c("Duplicated to \u201C{name}\u201D",{name:E.label}):c("Couldn\u2019t duplicate the section \u2014 please retry"),b?"success":"error")};return SS(Uoe,{children:[Ft("span",{"data-menu-toggle":!0,style:{display:"contents"},children:Ft(Koe,{buttonRef:v,label:c("Duplicate to another page"),hasPopup:"menu",expanded:s,onClick:g,children:Ft(Zoe,{size:15})})}),s&&O&&Ft(Yoe,{portal:!0,style:{top:O.top,right:O.right},onClose:()=>l(!1),children:SS("div",{role:"menu","aria-label":c("Duplicate to page"),children:[Ft(bS,{children:c("Duplicate to page")}),u?Ft(bS,{children:c("Couldn\u2019t load pages")}):i===null?Ft(Voe,{label:c("Loading\u2026")}):w.length===0?Ft(bS,{children:c("No other pages")}):w.map(E=>SS(Xoe,{role:"menuitem",disabled:I!==null,onClick:()=>{_(E)},children:[Ft("span",{className:"min-w-0 flex-1 truncate",children:E.label}),I===E.slug?Ft("span",{className:"shrink-0 text-xs",children:c("Copying\u2026")}):E.draft&&Ft("span",{className:"shrink-0 text-xs",children:c("draft")})]},E.id))]})})]})}async function tte(e,o,t){let r=sm(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===ete);s.splice(l===-1?s.length:l,0,VP(t)),await r.save(o.id,{layout:{root:{},zones:{},...n,content:s}},{version:a.version,clientId:""})}import{useScreenDocument as _te}from"efficient-easel/screen/components/ScreenDocumentContext";import{useSectionOps as Ate}from"efficient-easel/screen/lib/document/use-section-ops";import{SELECTION_MODE as I5e,isSelectionMode as PS}from"efficient-easel/screen/lib/screen-parts";import{usePreviewParts as Fte}from"efficient-easel/draw/client";import{jsx as $i,jsxs as rte}from"react/jsx-runtime";import{SettingsDrill as ate}from"efficient-easel/panel";import{UiIcon as nte}from"efficient-easel/draw/client";var ste="Not shown on the page";function lte({part:e,onOpen:o}){return $i(ate,{name:c(e.label),preview:e.offPage?c(ste):e.preview||c("Empty"),offPage:e.offPage,status:e.hidden?$i("span",{className:"sf-entry-eye",role:"img","aria-label":c("Hidden on the page"),children:$i(nte,{name:"eye-off",size:14})}):void 0,onOpen:()=>o(e.key)})}function wS(e){return e.filter(o=>!o.identifier)}function w2({parts:e,onOpen:o,heading:t=!0}){let r=wS(e);return r.length?rte("div",{className:"sf-entries",children:[t?$i("h3",{className:"sf-entries-head",children:c("Text")}):null,r.map(a=>$i(lte,{part:a,onOpen:o},a.key))]}):null}import{HEADER_TYPE as Bte,ROOT_ZONE as R2}from"efficient-easel/draw";import{newId as ite}from"efficient-easel/data";import{HEADER_TYPE as Go,FOOTER_TYPE as Le,newNodeId as dte}from"efficient-easel/draw";function lm(){return{type:Go,props:{id:dte(Go)}}}var C2=[{type:"FooterLogo",label:"Logo"},{type:"FooterMenu",label:"Menu"},{type:"FooterText",label:"Text"},{type:"FooterEmailSignup",label:"Email Form"},{type:"FooterSocial",label:"Social Logos"},{type:"FooterPayment",label:"Payment Logos"},{type:"FooterGroup",label:"Footer Box"}],fte=C2.filter(e=>e.type!=="FooterLogo"&&e.type!=="FooterGroup"),cte="FooterGroup",k2="blocks";function v2(e){return e===Le?C2:e===cte?fte:null}function im(){let e=(o,t)=>({type:o,props:{id:ite(o),...t}});return[e("FooterLogo",{widthPct:100,align:"left",tagline:""}),e("FooterEmailSignup",{...Zv}),e("FooterPayment",{...mf})]}function CS(e){switch(e?.type){case Ho:case Je:return c("On every page");case Go:case Le:return c("On every page \xB7 old style");default:return null}}var P2=()=>null,T2=()=>c("Changed on every page");function dm(e,o){let t=UC(e,o);if(t)return t;let r=dP(e,o);if(!r)return null;let a=r.group===Ho;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 fm,Fragment as ute,jsxs as mte}from"react/jsx-runtime";import{useState as xte}from"react";import{createNode as hte,newId as Ite}from"efficient-easel/data";import{useEasel as gte}from"efficient-easel/easel";import{Banner as yte,Button as kS}from"efficient-shell/ui";import{useScreenDocument as Ste}from"efficient-easel/screen/components/ScreenDocumentContext";var pte=["FooterPayment"];function O2(e,o){let{id:t,...r}=e.props;for(let a of Lt(e))r[a]=r[a].map(n=>O2(n,o));return o(e.type,r)}var zi=(e,o)=>{if(!pte.includes(e.type))return null;Xp();let t=Rr(e.type);return t?Oa({type:e.type,props:{...e.props}},t).nodes.map(r=>O2(r,o)):null};function E2(){let{appState:e,dispatch:o,config:t}=gte(f=>f),{readOnly:r}=Ste(),[a,n]=xte(!1),s=e.data.content;if(r||s.some(f=>f.type===Je))return null;let l=s.find(f=>f.type===Le)??null,i=(f,x)=>hte(t,f,x),d=()=>{let f=ii(l,i,Ite(Je),zi);o({type:"setData",data:x=>({...x,content:[...hf(x.content,f)]}),recordHistory:!0}),n(!1)};return fm(yte,{tone:"info",title:c("This footer uses the old layout"),action:a?mte(ute,{children:[fm(kS,{variant:"primary",size:"sm",onClick:d,children:c("Switch now")}),fm(kS,{variant:"secondary",size:"sm",onClick:()=>n(!1),children:c("Cancel")})]}):fm(kS,{variant:"secondary",size:"sm",onClick:()=>n(!0),children:c("Switch to Box footer")}),children:c("Build this footer out of Boxes and blocks, like a page: the same menus, signup, social links and logo, with the copyright as a Legal Line. Your current footer is kept.")})}import{jsx as vS,jsxs as bte}from"react/jsx-runtime";import{InspectorUpLevel as _2}from"efficient-easel/chrome";function A2({nodeId:e,part:o,sectionName:t,onUpToSection:r}){let{select:a}=ju(),n=Cs(e,o,"picture");return bte("div",{children:[o!=="media"?vS(_2,{inline:!0,name:c(fr.media),onSelect:()=>a(ka(e,"media"))}):vS(_2,{inline:!0,name:c(t),onSelect:r}),vS(At,{part:o,motion:n,itemWord:c(fr[o])})]})}import{HintsToggle as Lte,SettingsSwitch as Rte,hintsFoldClass as Dte}from"efficient-easel/panel";import{useHints as Nte}from"efficient-easel/screen/lib/hints";var N2={kind:"header"},OS={kind:"website"},M2={kind:"website",tab:Df,revealPageGroup:!0},H2={kind:"chat"},W2={kind:"social"},Ui="Part";function Mte(e){return c("Part of {name}",{name:c(e)})}function Hte(e,o,t){let r=e.describeNode(o);return{name:t,kindLabel:r?Mte(r.label):c(Ui)}}function Wte(e){switch(e){case"Header":return{title:c("Header settings belong to a website."),own:c("Each website created from this template sets its own header afterwards.")};case"Appearance":return{title:c("Appearance settings belong to a website."),own:c("Each website created from this template sets its own appearance afterwards.")};case"Live chat":return{title:c("Live chat settings belong to a website."),own:c("Each website created from this template sets its own live chat afterwards.")};case"Social link":return{title:c("Social link settings belong to a website."),own:c("Each website created from this template sets its own social link afterwards.")};default:return{title:c("{what} settings belong to a website.",{what:e}),own:c("Each website created from this template sets its own {what} afterwards.",{what:e.toLowerCase()})}}}function $2({what:e}){let o=Wte(e);return qr("div",{className:"sf-note",children:[be("p",{children:be("strong",{children:o.title})}),qr("p",{children:[c("A template is a blueprint \u2014 it has no website of its own, so there is nothing here to change.")," ",o.own]})]})}function TS(e){let o=jl[e];return{name:fr[e],kindLabel:Ui,icon:o,head:(t,r)=>{if(t.kind!==o)return null;let a=r.describeNode(t.nodeId);if(!a)return null;let n=D2({name:c(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?be(A2,{nodeId:t.nodeId,part:e,sectionName:r.describeNode(t.nodeId)?.label??"Hero",onUpToSection:()=>r.onSelectNode(t.nodeId)}):null}}var $te={header:{name:"Header",kindLabel:"Site settings",icon:"header",render:(e,o)=>{let t=o.hostPanels?.header;return t?be(t,{placeholderMode:o.capabilities.placeholderFrames,tokenRef:o.tokenRef,siteId:o.siteId,websiteName:o.websiteName,onOpenWebsiteSettings:o.onOpenWebsiteSettings,onAuthExpired:()=>o.notifyParent("storefront-editor:auth-expired")}):null}},website:{name:"Appearance",kindLabel:"Site settings",icon:"website",render:(e,o)=>be(Nf,{initialTab:e.tab,revealPageGroup:e.revealPageGroup,themeFromDocument:!o.capabilities.hasSiteTheme,tokenRef:o.tokenRef,siteId:o.siteId,onNotify:o.onNotify},e.tab??"")},chat:{name:"Live chat",kindLabel:"Site settings",icon:"chat",render:()=>be(kH,{})},social:{name:"Social links",kindLabel:"Site settings",icon:"social",render:()=>be(_H,{unavailable:be($2,{what:"Social link"})})},ticker:{name:Na,kindLabel:Ui,icon:"ticker",head:(e,o)=>e.kind==="ticker"?Hte(o,e.heroId,c(Na)):null,render:e=>be(WH,{heroId:e.kind==="ticker"?e.heroId:""})},heroMedia:TS("media"),heroImage:TS("image"),heroImage2:TS("image2"),part:{name:Ui,kindLabel:Ui,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}=Wt(e.propKey),n=a?Dn(t.fields[r],a):t.fields[r],s=cs(t.type),l=s?$s(s,e.propKey):null,i=s&&l?s[l].label:LO[e.propKey],d=i?c(i):sv(c(uf(uv(n??{},r))),a),f=D2({name:d,tier:"part",of:c(t.label)},{partOf:({name:x})=>c("Part of {name}",{name:x})});return{name:f.name,kindLabel:f.kind}},render:(e,o)=>e.kind==="part"?be(d2,{nodeId:e.nodeId,propKey:e.propKey,onBack:()=>o.onSelectNode(e.nodeId),onEditStyle:o.onOpenSiteStyles}):null}},zte=new Set(["header","website","chat"]);function Ute(e,o){if(e==="selection")return null;let t=$te[e];return zte.has(e)&&!o.hasSiteSettings?{...t,kindLabel:"Not part of a template",render:()=>be($2,{what:t.name})}:t}function z2({mode:e,onOpenWebsiteSettings:o,onOpenSiteStyles:t,onSelectNode:r,hideNodeActions:a=!1,onNotify:n,onHidePanel:s}){let{capabilities:l,tokenRef:i,notifyParent:d,currentSlug:f,siteId:x,runAuthed:u,readOnly:h,navigate:I}=_te(),{rows:S}=ml(),v=S?.find(te=>te.slug===f)??null,O=Cte(),R=Object.keys(O.fields).some(te=>!te.startsWith("_")&&!zx.includes(te)),{websiteName:T}=ko(),g=Ate({readOnly:h}),{select:w}=Fte(),{selectedItem:_,getItemById:E,getSelectorForId:D,config:b,appState:F}=wte(te=>te),y=Ote(b,_?{type:_.type,props:_.props}:null),k=_?hv(y??b.components[_.type]?.fields,_.props):[],P=te=>b.components[te]?.label??te,C=_?D(_.props.id):void 0,B=Ute(e.kind,l),H=Ete(),q={capabilities:l,tokenRef:i,hostPanels:H.chrome?.panels,describeNode:te=>{let he=E(te);if(!he)return null;let De=b.components[he.type];return{type:he.type,label:De?.label??he.type,fields:De?.fields??{},props:he.props??{}}},siteId:x,websiteName:T??null,notifyParent:d,onNotify:n,onOpenWebsiteSettings:o,onOpenSiteStyles:t,onSelectNode:r},$=B?.head?.(e,q)??null,le=gH({kind:v?.kind,pageName:v?.label}),pe=$?.name??(B?c(B.name):_?c(P(_.type)):le.name),ee=$?.kindLabel??(B?c(B.kindLabel):_?C&&C.zone!==R2?c("Block"):c("Section"):le.kindLabel),xe=B?B.icon:_?_.type:"page",oe=PS(e)&&_?Ri(_.type):null,ie=!!_&&!!C&&C.zone===R2&&_.type!==Le&&_.type!==Bte,ge=dm(F?.data,_),Re=()=>{ge||C&&g.duplicateComponent(C.zone,C.index)},$e=()=>{C&&(g.removeComponent(C.zone,C.index),g.select(null))},yo=_?b.components[_.type]?.defaultProps?.previewHover:void 0,oo=PS(e)&&!!_&&!!C&&yo!==void 0,io=oo&&_.props.previewHover===!0,So=()=>{!_||!C||g.replaceComponent(C.zone,C.index,{..._,props:{..._.props,previewHover:!io}})},{shown:Xe,setShown:bo}=Nte(),N=!!(B||_||R);return qr("div",{className:`es-sidepanel es-sidepanel--right sf-panel sf-panel--right ${Dte(Xe)}`.trim(),children:[be(vte,{icon:be(Ua,{type:xe,size:15}),name:pe,kind:ee,actions:!a&&PS(e)&&_&&_.type!==Le?qr(F2,{children:[be(B2,{label:c("Duplicate section"),title:ge??void 0,disabled:ge!==null,onClick:Re,children:be(Pte,{size:15})}),ie&&l.hasSiteSettings&&be(b2,{node:_,currentSlug:f,siteId:x??void 0,tokenRef:i,runAuthed:u,onNotify:n}),be(B2,{label:c("Remove section"),danger:!0,onClick:$e,children:be(Tte,{size:15})}),s?be(L2,{side:"right",onHide:s,divider:!0}):null]}):s?be(L2,{side:"right",onHide:s}):void 0}),oo&&qr("div",{className:"sf-preview-pin",children:[qr("div",{className:"sf-preview-pin-text",children:[be("span",{className:"sf-preview-pin-label",children:c("Preview hover state")}),be("span",{className:"sf-preview-pin-hint",children:c("not shown live")})]}),be(Rte,{checked:io,onChange:So,ariaLabel:c("Preview hover state")})]}),qr("div",{className:"sf-insp-body es-insp-body sf-scroll",children:[B?B.render(e,q):_?qr(F2,{children:[_.type===Le&&l.hasSiteSettings&&be(E2,{}),be(iT,{children:be(At,{entries:be(w2,{parts:k,heading:!1,onOpen:te=>w($t(_.props.id,te))}),entryCount:wS(k).length,itemWord:pe})}),oe&&be(em,{source:oe,slug:vs(_?.props),menuId:Xu(_?.props)})]}):R?be(At,{omit:zx}):be(kte,{variant:"none",icon:!1,message:c("Select a section or block to edit it.")}),N&&be(Lte,{shown:Xe,onChange:bo,label:c("Show hints")})]})]})}import{jsx as p,jsxs as A,Fragment as q2}from"react/jsx-runtime";var eo={dark:"var(--sf-thumb-bar-dark)",soft:"var(--sf-thumb-bar-light)",accent:"var(--sf-thumb-accent)",tint:"var(--sf-thumb-accent-tint)",block:"var(--sf-thumb-block)",line:"var(--sf-thumb-border)",card:"var(--sf-thumb-card)"},ES="repeating-linear-gradient(135deg,var(--sf-thumb-hatch1) 0,var(--sf-thumb-hatch1) 5px,var(--sf-thumb-hatch2) 5px,var(--sf-thumb-hatch2) 10px)";function j({w:e,h:o,tone:t="dark",r=2,style:a}){return p("div",{style:{width:e,height:o,borderRadius:r,background:eo[t],flex:"none",...a}})}var jte={Hero:"hero",HeroSingle:"herosingle",IntroBleed:"intro",Collections:"collections",AlloyWheelsListing:"wheelslisting",CatalogFilterBar:"catalogfilterbar",ProductGrid:"productgrid",FitmentFinder:"fitmentfinder",Gallery:"gallery",GalleryB:"gallerygrid",SpecStrip:"specstrip",ProductHero:"producthero",SpecTable:"spectable",ProcessSteps:"processsteps",DetailRows:"detailrows",FitmentTable:"fitmenttable",CompatibleTyres:"compatibletyres",TyreSizes:"tyresizes",TyreFitment:"tyrefitment",EuTyreLabel:"eutyrelabel",RelatedProducts:"productgrid",BundleOffer:"bundleoffer",OrderSummary:"ordersummary",DeliveryOptions:"deliveryoptions",PaymentBadges:"paymentbadges",CheckoutCTA:"checkoutcta",Manifesto:"manifesto",ParagraphsA:"paragraphs",Prose:"prose",StatsParagraph:"statsparagraph",Chart:"chart",Mockup:"mockup",Footprint:"footprint",Timeline:"timeline",TimelineTrack:"timelinetrack",TitleWithButtons:"titlewithbuttons",Split:"split",Cards:"cards",FAQ:"faq",Testimonials:"testimonials",Masthead:"masthead",Breadcrumb:"breadcrumb",CategoryBar:"categorybar",FeaturedCover:"featuredcover",LongRead:"longread",ArticleBody:"articlebody",Series:"series",Subscribe:"subscribe",SubscribeBlogs:"subscribe",Events:"events",DocMasthead:"docmasthead",DocTabs:"doctabs",DocBody:"docbody",DocMetaCards:"docmetacards",Banner:"banner",Stats:"stats",KeyFeatures:"keyfeatures",Logos:"logos",Ticker:"ticker",Countdown:"countdown",Reviews:"reviews",SubmitBuild:"submitbuild",ReviewForm:"reviewform",Form:"form",AppointmentBooking:"appointmentbooking",ContactRouting:"contact",ContactLocations:"contactlocations",CityPictures:"citypictures",CityMaps:"citymaps",Header:"header",Footer:"footer",SectionHeader:"sectionheader",Grid:"grid",Flex:"blanksection",Spacer:"spacer",Divider:"divider",CustomHTML:"customhtml",Heading:"heading",Text:"text",ImageBlock:"image",ButtonBlock:"button",MenuBlock:"menu",EmailFormBlock:"emailform",SocialLogosBlock:"sociallogos",PaymentLogosBlock:"paymentlogos",LegalLineBlock:"legalline",SearchBlock:"search",CartBlock:"cart",CountrySwitchBlock:"countryswitch"},V={position:"absolute",inset:0},m={ink:"var(--sf-thumb-ink)",ink2:"var(--sf-thumb-ink-2)",inkSoft:"var(--sf-thumb-ink-soft)",inkSoft2:"var(--sf-thumb-ink-soft-2)",paper:"var(--sf-thumb-paper)",paper2:"var(--sf-thumb-paper-2)",warm:"var(--sf-thumb-warm)",rust:"var(--sf-thumb-rust)",onInk:"var(--sf-thumb-on-ink)",text:"var(--sf-thumb-scene-text)",muted:"var(--sf-thumb-scene-muted)",rule:"var(--sf-thumb-scene-rule)",mark1:"var(--sf-thumb-mark-1)",mark2:"var(--sf-thumb-mark-2)",card:"var(--sf-thumb-card)",scrim:"var(--sf-thumb-scrim)"},_e=(e,o,t=160)=>({background:`linear-gradient(${t}deg,${e},${o})`});function ur({size:e,style:o}){let t=Math.max(2,Math.round(e*.13)),r=(a,n,s)=>({position:"absolute",inset:a,background:n,borderRadius:t,...s?{mixBlendMode:s}:null});return A("span",{style:{position:"absolute",display:"block",width:e,height:e,...o},children:[p("span",{style:r("8% 26% 30% 6%",m.mark1)}),p("span",{style:r("26% 6% 8% 30%",m.mark2,"multiply")})]})}function pm({children:e}){return p("span",{style:{fontSize:"4.64cqw",fontWeight:700,letterSpacing:"0.06em",textTransform:"uppercase",color:m.muted},children:e})}function U2({over:e,overTone:o,head:t,headSize:r=11.5,cta:a,ctaBg:n,ctaFg:s,tone:l}){return A(q2,{children:[e&&p("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.16em",fontWeight:700,color:o},children:e}),p("span",{style:{fontSize:r,lineHeight:1.15,fontWeight:700,maxWidth:"78%",color:l},children:t}),a&&p("span",{style:{alignSelf:"flex-start",fontSize:"3.65cqw",letterSpacing:"0.12em",fontWeight:700,padding:"4px 8px",borderRadius:2,marginTop:2,background:n,color:s},children:a})]})}function _S({name:e,price:o}){return A("div",{style:{display:"flex",flexDirection:"column",gap:2,minWidth:0},children:[p("div",{style:{flex:1,minHeight:0,borderRadius:3,position:"relative",overflow:"hidden",..._e(m.paper,m.paper2,150)},children:p(ur,{size:34,style:{left:"50%",top:"50%",transform:"translate(-50%,-50%)"}})}),p("span",{style:{fontSize:"3.65cqw",fontWeight:600,color:m.text},children:e}),p("span",{style:{fontSize:"3.65cqw",color:m.muted},children:o})]})}function pr({k:e,v:o,ok:t}){return A("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",gap:6,padding:"3.5px 2px",borderBottom:`1px solid ${m.rule}`,fontSize:"3.98cqw",color:m.muted},children:[p("span",{children:e}),A("span",{style:{display:"flex",gap:6,alignItems:"center"},children:[p("b",{style:{color:m.text,fontWeight:700},children:o}),t&&p("span",{style:{color:m.rust,fontWeight:700},children:"\u2713"})]})]})}function Ce({title:e,children:o}){return A("div",{style:{...V,background:m.card,padding:"9px 10px",display:"flex",flexDirection:"column",gap:6},children:[p(pm,{children:e}),o]})}function j2({size:e=14}){return p("span",{style:{width:e,height:e,borderRadius:"50%",flex:"none",display:"block",background:`linear-gradient(150deg,${m.mark1},${m.mark2})`}})}function AS({filled:e=5,size:o=6}){return A("span",{style:{fontSize:o,letterSpacing:"0.06em",color:m.rust,lineHeight:1},children:["\u2605".repeat(e),p("span",{style:{color:m.mark1},children:"\u2605".repeat(5-e)})]})}function ji({n:e,label:o,tone:t=m.text}){return A("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:1,minWidth:0},children:[p("b",{style:{fontSize:"8.16cqw",lineHeight:1,color:t},children:e}),p("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.08em",textTransform:"uppercase",opacity:.62,color:t},children:o})]})}function Ye({children:e,w:o}){return p("span",{style:{fontSize:"3.98cqw",lineHeight:1.45,color:m.muted,width:o,display:"block"},children:e})}function cm({label:e,w:o="100%",filled:t}){return A("div",{style:{width:o,display:"flex",flexDirection:"column",gap:2},children:[p("span",{style:{fontSize:"3.32cqw",letterSpacing:"0.08em",textTransform:"uppercase",color:m.muted},children:e}),p("span",{style:{height:9,borderRadius:3,border:`1px solid ${m.rule}`,background:t?m.paper:m.card}})]})}function G2({children:e}){return p("span",{style:{alignSelf:"flex-start",fontSize:"3.65cqw",letterSpacing:"0.12em",fontWeight:700,padding:"5px 9px",borderRadius:2,background:m.text,color:m.onInk},children:e})}var Gte={wheelslisting:p(Ce,{title:"All wheels",children:p("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[["Ridge 19","20\xD79 +12","$365"],["Ridge 29","18\xD79 +20","$410"],["Ridge 39","17\xD78 \u221210","$455"]].map(([e,o,t])=>A("div",{style:{display:"flex",alignItems:"center",gap:6},children:[p("span",{style:{width:20,height:15,borderRadius:3,flex:"none",position:"relative",overflow:"hidden",..._e(m.paper,m.paper2,150)},children:p(ur,{size:12,style:{left:"50%",top:"50%",transform:"translate(-50%,-50%)"}})}),p("b",{style:{flex:1,fontSize:"4.31cqw",color:m.text},children:e}),p("span",{style:{fontSize:"3.65cqw",color:m.muted},children:o}),p("b",{style:{fontSize:"4.31cqw",color:m.text,width:26,textAlign:"right"},children:t})]},e))})}),catalogfilterbar:A("div",{style:{...V,background:m.card,display:"flex",flexDirection:"column",justifyContent:"center",gap:7,padding:"0 11px"},children:[A("div",{style:{display:"flex",gap:4,alignItems:"center"},children:[["20 inch","6\xD7139.7","Black"].map(e=>A("span",{style:{fontSize:"3.65cqw",fontWeight:600,padding:"4px 7px",borderRadius:99,background:m.text,color:m.onInk,display:"flex",gap:4,alignItems:"center"},children:[e,p("span",{style:{opacity:.6},children:"\u2715"})]},e)),p("span",{style:{fontSize:"3.65cqw",color:m.rust,fontWeight:700},children:"Clear"})]}),A("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[p("span",{style:{fontSize:"3.65cqw",color:m.muted},children:"128 results"}),p("span",{style:{fontSize:"3.65cqw",color:m.muted,border:`1px solid ${m.rule}`,borderRadius:3,padding:"3px 6px"},children:"Sort: Price \u25BE"})]})]}),fitmentfinder:A("div",{style:{...V,padding:"10px 12px",display:"flex",flexDirection:"column",gap:6,justifyContent:"center",..._e(m.ink,m.inkSoft)},children:[p("span",{style:{fontSize:"5.31cqw",fontWeight:700,color:m.onInk},children:"Will it fit your rig?"}),A("div",{style:{display:"flex",gap:4},children:[["2021","Toyota","Hilux"].map(e=>A("span",{style:{flex:1,fontSize:"3.65cqw",color:m.text,background:m.card,borderRadius:3,padding:"5px 6px",display:"flex",justifyContent:"space-between"},children:[e," ",p("span",{style:{color:m.muted},children:"\u25BE"})]},e)),p("span",{style:{fontSize:"3.65cqw",fontWeight:700,letterSpacing:"0.08em",background:m.warm,color:m.ink,borderRadius:3,padding:"5px 7px"},children:"GO"})]})]}),compatibletyres:p(Ce,{title:"Tyres that suit",children:p("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(3,1fr)",gap:5,minHeight:0},children:[["Ridge Grappler","$489"],["Trail Grappler","$525"],["Terra Grappler","$438"]].map(([e,o])=>A("div",{style:{display:"flex",flexDirection:"column",gap:2,minWidth:0},children:[p("div",{style:{flex:1,minHeight:0,borderRadius:3,position:"relative",overflow:"hidden",background:m.ink},children:p("span",{style:{position:"absolute",left:"50%",top:"50%",transform:"translate(-50%,-50%)",width:26,height:26,borderRadius:"50%",border:`5px solid ${m.mark2}`,boxSizing:"border-box"}})}),p("span",{style:{fontSize:"3.32cqw",fontWeight:600,color:m.text,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},children:e}),p("span",{style:{fontSize:"3.32cqw",color:m.muted},children:o})]},e))})}),tyresizes:p(Ce,{title:"Available sizes",children:p("div",{style:{flex:1,display:"flex",flexWrap:"wrap",gap:4,alignContent:"center"},children:["265/65R17","285/70R17","265/60R18","275/55R20"].map((e,o)=>p("span",{style:{fontSize:"3.65cqw",fontWeight:600,padding:"5px 7px",borderRadius:3,border:`1px solid ${o===0?m.rust:m.rule}`,color:o===0?m.rust:m.text,background:o===0?m.paper:m.card},children:e},e))})}),tyrefitment:A(Ce,{title:"Will it fit your car?",children:[p("div",{style:{display:"flex",gap:3},children:["Make","Model","Year","Trim"].map(e=>A("span",{style:{flex:1,minWidth:0,fontSize:"3.32cqw",color:m.muted,background:m.paper,border:`1px solid ${m.rule}`,borderRadius:3,padding:"4px 5px",display:"flex",justifyContent:"space-between",gap:2,overflow:"hidden",whiteSpace:"nowrap"},children:[e," ",p("span",{style:{color:m.muted},children:"\u25BE"})]},e))}),p("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:2,justifyContent:"center",minHeight:0},children:[["265/65R17","Fits",!0],["285/70R17","Not your size",!1]].map(([e,o,t])=>A("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"baseline",gap:6,borderTop:`1px solid ${m.rule}`,paddingTop:3},children:[p("span",{style:{fontSize:"3.32cqw",fontWeight:600,color:m.text},children:e}),p("span",{style:{fontSize:"3.32cqw",fontWeight:t?700:400,letterSpacing:"0.06em",color:t?m.warm:m.muted},children:o})]},e))})]}),eutyrelabel:A("div",{style:{...V,background:m.card,padding:"9px 11px",display:"flex",gap:8,alignItems:"center"},children:[p("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:1.5},children:[["A","42%"],["B","56%"],["C","70%"],["D","84%"]].map(([e,o],t)=>A("div",{style:{display:"flex",alignItems:"center",gap:3},children:[p("span",{style:{width:o,height:6,borderRadius:"0 2px 2px 0",background:t===1?m.rust:m.mark1}}),p("span",{style:{fontSize:"3.32cqw",fontWeight:700,color:t===1?m.rust:m.muted},children:e})]},e))}),A("div",{style:{flex:"none",display:"flex",flexDirection:"column",gap:3,alignItems:"center"},children:[p("b",{style:{fontSize:"6.63cqw",lineHeight:1,color:m.text},children:"72"}),p("span",{style:{fontSize:"3.32cqw",letterSpacing:"0.08em",color:m.muted},children:"dB"})]})]}),bundleoffer:A("div",{style:{...V,background:m.paper,padding:"9px 11px",display:"flex",flexDirection:"column",gap:5,justifyContent:"center"},children:[p(pm,{children:"Buy it with"}),A("div",{style:{display:"flex",alignItems:"center",gap:5},children:[[0,1].map(e=>p("span",{style:{width:26,height:22,borderRadius:3,flex:"none",position:"relative",overflow:"hidden",background:m.card},children:p(ur,{size:17,style:{left:"50%",top:"50%",transform:"translate(-50%,-50%)"}})},e)),p("span",{style:{fontSize:"5.69cqw",fontWeight:700,color:m.muted},children:"+"}),A("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:1},children:[p("span",{style:{fontSize:"3.65cqw",color:m.muted,textDecoration:"line-through"},children:"$1,024"}),p("b",{style:{fontSize:"6.02cqw",color:m.rust,lineHeight:1},children:"$899"})]})]})]}),checkoutcta:A("div",{style:{...V,display:"flex",alignItems:"center",justifyContent:"space-between",padding:"0 13px",gap:8,..._e(m.ink,m.ink2)},children:[A("div",{style:{display:"flex",flexDirection:"column",gap:2},children:[p("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.12em",color:m.warm,fontWeight:700},children:"READY TO ORDER"}),p("b",{style:{fontSize:"6.63cqw",color:m.onInk,lineHeight:1},children:"$1,956"}),p("span",{style:{fontSize:"3.65cqw",color:m.onInk,opacity:.65},children:"4 items \xB7 fitted free"})]}),p("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.12em",fontWeight:700,padding:"6px 10px",borderRadius:2,background:m.warm,color:m.ink,flex:"none"},children:"CHECKOUT"})]}),contact:p(Ce,{title:"Who do you need?",children:p("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[["Fitment help","the workshop"],["Order status","the front desk"],["Trade accounts","sales"]].map(([e,o])=>A("div",{style:{display:"flex",alignItems:"center",gap:5},children:[p("b",{style:{flex:1,fontSize:"4.31cqw",color:m.text},children:e}),p("span",{style:{fontSize:"3.65cqw",color:m.muted},children:o}),p("span",{style:{fontSize:"4.64cqw",color:m.rust,lineHeight:1},children:"\u203A"})]},e))})}),contactlocations:p(Ce,{title:"Find us",children:p("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(2,1fr)",gap:5,minHeight:0},children:[["Brisbane","7 Kerry Rd","Mon\u2013Sat"],["Townsville","12 Enterprise","Mon\u2013Fri"]].map(([e,o,t])=>A("div",{style:{border:`1px solid ${m.rule}`,borderRadius:4,padding:"5px 6px",display:"flex",flexDirection:"column",gap:1},children:[p("b",{style:{fontSize:"4.31cqw",color:m.text},children:e}),p("span",{style:{fontSize:"3.32cqw",color:m.muted},children:o}),p("span",{style:{fontSize:"3.32cqw",color:m.rust,fontWeight:700},children:t})]},e))})}),citypictures:p(Ce,{title:"Our studios",children:A("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:3,minHeight:0},children:[p("span",{style:{fontSize:"3.32cqw",letterSpacing:"0.12em",fontWeight:700,color:m.muted},children:"A \xB7 AMERICAS"}),p("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(3,1fr)",gap:4,minHeight:0},children:["Los Angeles","Miami","Toronto"].map(e=>A("div",{style:{position:"relative",minHeight:0},children:[p(j,{r:3,style:{...V,background:`linear-gradient(transparent 45%,${m.scrim} 45%),${_e(m.ink,m.inkSoft2).background}`}}),p("b",{style:{position:"absolute",left:5,bottom:4,fontSize:"3.65cqw",color:m.onInk},children:e})]},e))})]})}),citymaps:p(Ce,{title:"Find us",children:p("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(2,1fr)",gap:5,minHeight:0},children:[["Brisbane","7 Kerry Rd"],["Townsville","12 Enterprise"]].map(([e,o])=>A("div",{style:{position:"relative",padding:"4px 5px",display:"flex",flexDirection:"column",gap:2,minHeight:0},children:[p(j,{r:4,style:{...V,background:"none",border:`1px solid ${m.rule}`}}),p("b",{style:{position:"relative",fontSize:"4.31cqw",color:m.text},children:e}),p("span",{style:{position:"relative",fontSize:"3.32cqw",color:m.muted},children:o}),A("div",{style:{flex:1,minHeight:0,position:"relative"},children:[p(j,{r:3,style:{...V,..._e(m.paper,m.paper2,150)}}),p(j,{w:"60%",h:"60%",r:8,style:{position:"absolute",left:"12%",top:"20%",background:m.mark1,opacity:.75}}),p(j,{w:6,h:6,r:3,style:{position:"absolute",left:"44%",top:"34%",background:m.rust}})]})]},e))})}),form:p(Ce,{title:"Send us a message",children:A("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[A("div",{style:{display:"flex",gap:5},children:[p(cm,{label:"Name"}),p(cm,{label:"Email"})]}),p(cm,{label:"Message",filled:!0}),p(G2,{children:"SEND"})]})}),appointmentbooking:p(Ce,{title:"Book a fitting",children:A("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[p("div",{style:{display:"flex",gap:3},children:["Mon","Tue","Wed","Thu"].map((e,o)=>p("span",{style:{flex:1,textAlign:"center",fontSize:"3.32cqw",fontWeight:o===2?700:500,padding:"4px 0",borderRadius:3,background:o===2?m.text:m.paper,color:o===2?m.onInk:m.muted},children:e},e))}),p("div",{style:{display:"flex",gap:3},children:["8:00","10:30","13:00","15:30"].map((e,o)=>p("span",{style:{flex:1,textAlign:"center",fontSize:"3.32cqw",padding:"4px 0",borderRadius:3,border:`1px solid ${o===1?m.rust:m.rule}`,color:o===1?m.rust:m.muted,background:o===3?m.paper:m.card,textDecoration:o===3?"line-through":"none"},children:e},e))})]})}),reviewform:p(Ce,{title:"Leave a review",children:A("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:5,justifyContent:"center"},children:[p(AS,{filled:4,size:14}),p(cm,{label:"Your review",filled:!0}),p(G2,{children:"POST"})]})}),submitbuild:p(Ce,{title:"Show us your build",children:A("div",{style:{flex:1,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:3,border:`1px dashed ${m.mark1}`,borderRadius:5,background:m.paper},children:[p("span",{style:{fontSize:"6.63cqw",lineHeight:1,color:m.rust,fontWeight:300},children:"+"}),p("span",{style:{fontSize:"3.65cqw",color:m.muted},children:"Drop a photo of your rig"})]})}),masthead:A("div",{style:{...V,background:m.paper,display:"flex",flexDirection:"column",justifyContent:"center",padding:"0 13px",gap:5},children:[p("span",{style:{height:1.5,background:m.text}}),p("span",{style:{fontSize:"7.65cqw",fontWeight:800,letterSpacing:"0.02em",color:m.text,lineHeight:1},children:"THE TRACK"}),A("div",{style:{display:"flex",justifyContent:"space-between",fontSize:"3.65cqw",letterSpacing:"0.1em",textTransform:"uppercase",color:m.muted},children:[p("span",{children:"Issue 14"}),p("span",{children:"Spring 2026"})]}),p("span",{style:{height:1,background:m.rule}})]}),featuredcover:A("div",{style:{...V,overflow:"hidden",..._e(m.ink,m.inkSoft2)},children:[p(ur,{size:92,style:{right:-18,top:-14}}),p("div",{style:{position:"absolute",inset:0,background:`linear-gradient(0deg,${m.scrim},transparent 62%)`}}),A("div",{style:{position:"absolute",left:12,right:12,bottom:11,display:"flex",flexDirection:"column",gap:3},children:[p("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.16em",fontWeight:700,color:m.warm},children:"FEATURE"}),p("span",{style:{fontSize:"6.16cqw",lineHeight:1.15,fontWeight:700,color:m.onInk},children:"Four days on the Madigan Line"})]})]}),longread:A("div",{style:{...V,background:m.card,padding:"10px 14px",display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[p("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.14em",fontWeight:700,color:m.rust},children:"12 MIN READ"}),p("span",{style:{fontSize:"6.02cqw",lineHeight:1.15,fontWeight:700,color:m.text},children:"What breaks first, and why"}),p(Ye,{children:"Every failure starts in the same place:"}),p(Ye,{w:"80%",children:"the bolt nobody re-torqued."})]}),articlebody:A("div",{style:{...V,background:m.card,padding:"10px 22px",display:"flex",flexDirection:"column",gap:4,justifyContent:"center",alignItems:"center",textAlign:"center"},children:[p("span",{style:{fontSize:"4.97cqw",lineHeight:1.2,fontWeight:700,color:m.text},children:"Why offset beats width"}),p(Ye,{w:"100%",children:"A wider wheel adds grip only if the offset still"}),p(Ye,{w:"88%",children:"clears the arch, so the offset is chosen first."}),p(Ye,{w:"80%",children:"Width follows from the space left."})]}),series:p(Ce,{title:"Recurring columns",children:p("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:5,justifyContent:"center"},children:[["Shed Notes","Monthly"],["Track Tested","Fortnightly"],["Reader Rigs","Weekly"]].map(([e,o])=>A("div",{style:{display:"flex",alignItems:"center",gap:6},children:[p("span",{style:{width:3,height:12,borderRadius:2,background:m.rust,flex:"none"}}),p("b",{style:{flex:1,fontSize:"4.64cqw",color:m.text},children:e}),p("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.08em",textTransform:"uppercase",color:m.muted},children:o})]},e))})}),events:p(Ce,{title:"Latest posts",children:p("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:5,justifyContent:"center"},children:[[m.inkSoft,m.inkSoft2,"Madigan Line, four days"],[m.rust,m.warm,"Why offset beats width"]].map(([e,o,t])=>A("div",{style:{display:"flex",gap:6,alignItems:"center"},children:[p("span",{style:{width:24,height:18,borderRadius:3,flex:"none",..._e(e,o,150)}}),A("div",{style:{display:"flex",flexDirection:"column",gap:1,minWidth:0},children:[p("b",{style:{fontSize:"4.31cqw",color:m.text},children:t}),p("span",{style:{fontSize:"3.65cqw",color:m.muted},children:"4 Sep \xB7 Shed Notes"})]})]},t))})}),docmasthead:A("div",{style:{...V,background:m.card,padding:"12px 14px",display:"flex",flexDirection:"column",gap:5,justifyContent:"center"},children:[p("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.16em",fontWeight:700,color:m.muted},children:"POLICY"}),p("span",{style:{fontSize:"6.49cqw",fontWeight:700,color:m.text,lineHeight:1.1},children:"Returns & refunds"}),p("span",{style:{fontSize:"3.65cqw",color:m.muted},children:"Version 3 \xB7 Updated 4 Sep 2026"}),p("span",{style:{height:2,width:26,background:m.rust,borderRadius:1}})]}),docbody:p("div",{style:{...V,background:m.card,padding:"9px 13px",display:"flex",flexDirection:"column",gap:3,justifyContent:"center"},children:[["1.","You may return an unfitted wheel within 30 days."],["2.","Fitted wheels are covered by the structural warranty."],["3.","Freight on a change of mind is yours."]].map(([e,o])=>A("div",{style:{display:"flex",gap:5},children:[p("b",{style:{fontSize:"3.98cqw",color:m.rust,flex:"none"},children:e}),p(Ye,{children:o})]},e))}),docmetacards:p(Ce,{title:"At a glance",children:p("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(2,1fr)",gap:5,minHeight:0},children:[["30 days","To return"],["5 years","Structural"],["Free","Fitting"],["48 hrs","Dispatch"]].map(([e,o])=>A("div",{style:{border:`1px solid ${m.rule}`,borderRadius:4,padding:"5px 6px",display:"flex",flexDirection:"column",gap:1},children:[p("b",{style:{fontSize:"5.31cqw",color:m.text,lineHeight:1},children:e}),p("span",{style:{fontSize:"3.32cqw",letterSpacing:"0.08em",textTransform:"uppercase",color:m.muted},children:o})]},o))})}),doctabs:A("div",{style:{...V,background:m.card,display:"flex",flexDirection:"column",justifyContent:"center",gap:0,padding:"0 11px"},children:[p("div",{style:{display:"flex",gap:0},children:["Returns","Warranty","Shipping"].map((e,o)=>p("span",{style:{fontSize:"3.98cqw",fontWeight:o===0?700:500,padding:"5px 8px",color:o===0?m.text:m.muted,background:o===0?m.paper:"transparent",borderRadius:"4px 4px 0 0",border:`1px solid ${o===0?m.rule:"transparent"}`,borderBottom:"none"},children:e},e))}),p("span",{style:{height:1,background:m.rule}}),A("div",{style:{paddingTop:6,display:"flex",flexDirection:"column",gap:2},children:[p(Ye,{children:"Unfitted wheels come back within 30 days, no questions."}),p(Ye,{w:"58%",children:"Freight on a change of mind is yours."})]})]}),paragraphs:A("div",{style:{...V,background:m.card,padding:"11px 14px",display:"flex",gap:10,alignItems:"center"},children:[p("span",{style:{flex:1,fontSize:"5.86cqw",lineHeight:1.2,fontWeight:700,color:m.text},children:"The right wheel is the boring one."}),A("div",{style:{flex:1,display:"flex",flexDirection:"column"},children:[p(Ye,{children:"Forged, correctly offset, rated for what you actually"}),p(Ye,{children:"carry. Everything else is a photograph."})]})]}),keyfeatures:p(Ce,{title:"Key features",children:p("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:["Flow-formed barrel","1250 kg per corner","Hub-centric fit"].map(e=>A("div",{style:{display:"flex",gap:6,alignItems:"center"},children:[p("span",{style:{fontSize:"4.64cqw",color:m.rust,fontWeight:700,lineHeight:1},children:"\u2713"}),p("span",{style:{fontSize:"4.31cqw",color:m.text},children:e})]},e))})}),statsparagraph:A("div",{style:{...V,background:m.paper,padding:"10px 12px",display:"flex",gap:10,alignItems:"center"},children:[A("div",{style:{flex:"none",display:"flex",flexDirection:"column",gap:5},children:[p(ji,{n:"27k",label:"Rigs"}),p(ji,{n:"4.9",label:"Rating"})]}),A("div",{style:{flex:1,display:"flex",flexDirection:"column"},children:[p(Ye,{children:"Twelve years of fitting the same three questions, and the"}),p(Ye,{children:"answer has not moved: load rating, offset, then looks."})]})]}),chart:A(Ce,{title:"Load vs weight",children:[p("div",{style:{flex:1,display:"flex",alignItems:"flex-end",gap:5,paddingBottom:2},children:[38,62,84,71,96].map((e,o)=>p("span",{style:{flex:1,height:`${e}%`,borderRadius:"2px 2px 0 0",background:o===4?m.rust:m.mark1}},o))}),p("span",{style:{height:1,background:m.rule,marginTop:-4}})]}),mockup:p("div",{style:{...V,overflow:"hidden",display:"flex",alignItems:"center",justifyContent:"center",..._e(m.inkSoft,m.ink)},children:A("div",{style:{width:"72%",height:"74%",borderRadius:4,overflow:"hidden",background:m.card,boxShadow:`0 6px 14px ${m.scrim}`},children:[p("div",{style:{height:9,background:m.paper,display:"flex",alignItems:"center",gap:2,padding:"0 4px"},children:[0,1,2].map(e=>p("span",{style:{width:2.5,height:2.5,borderRadius:"50%",background:m.mark1}},e))}),A("div",{style:{padding:5,display:"flex",flexDirection:"column",gap:3},children:[p("span",{style:{height:4,width:"56%",borderRadius:1,background:m.mark2}}),p("span",{style:{height:14,borderRadius:2,..._e(m.paper,m.paper2,150)}}),p("span",{style:{height:3,width:"38%",borderRadius:1,background:m.rust}})]})]})}),manifesto:p("div",{style:{...V,overflow:"hidden",display:"flex",alignItems:"center",padding:"0 16px",..._e(m.ink,m.ink2)},children:A("span",{style:{fontSize:"6.63cqw",lineHeight:1.2,fontWeight:700,color:m.onInk},children:["We build for the ",p("span",{style:{color:m.warm},children:"last"})," ten percent of the track."]})}),timeline:p(Ce,{title:"Our story",children:p("div",{style:{flex:1,display:"flex",flexDirection:"column",justifyContent:"center",gap:6,paddingLeft:4},children:[["1998","One shed, one lathe."],["2009","First forged rim."],["2024","27,000 rigs on."]].map(([e,o],t)=>A("div",{style:{display:"flex",gap:7,alignItems:"flex-start",position:"relative"},children:[t<2&&p("span",{style:{position:"absolute",left:3,top:8,bottom:-8,width:1,background:m.rule}}),p("span",{style:{width:7,height:7,borderRadius:"50%",flex:"none",marginTop:1,background:m.rust,zIndex:1}}),A("div",{style:{display:"flex",flexDirection:"column",gap:0,minWidth:0},children:[p("b",{style:{fontSize:"4.64cqw",color:m.text},children:e}),p(Ye,{children:o})]})]},e))})}),timelinetrack:A("div",{style:{...V,padding:"0 12px",display:"flex",flexDirection:"column",gap:10,justifyContent:"center",..._e(m.ink,m.inkSoft)},children:[p("span",{style:{fontSize:"3.98cqw",fontWeight:700,letterSpacing:"0.14em",textTransform:"uppercase",color:m.warm},children:"Milestones"}),A("div",{style:{position:"relative",display:"flex",justifyContent:"space-between",paddingTop:7},children:[p("span",{style:{position:"absolute",left:0,right:0,top:3,height:1,background:m.mark2,opacity:.55}}),["1998","2009","2016","2024"].map((e,o)=>A("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:3,position:"relative"},children:[p("span",{style:{position:"absolute",top:-7,width:6,height:6,borderRadius:"50%",background:o===3?m.warm:m.mark1}}),p("span",{style:{fontSize:"4.31cqw",fontWeight:700,color:o===3?m.warm:m.onInk,opacity:o===3?1:.75},children:e})]},e))]})]}),footprint:A("div",{style:{...V,overflow:"hidden",..._e(m.paper,m.paper2,150)},children:[p("span",{style:{position:"absolute",left:"8%",top:"18%",width:"62%",height:"64%",borderRadius:"48% 52% 40% 60% / 55% 45% 55% 45%",background:m.mark1,opacity:.75}}),p("span",{style:{position:"absolute",left:"52%",top:"52%",width:"34%",height:"34%",borderRadius:"58% 42% 55% 45% / 45% 58% 42% 55%",background:m.mark2,opacity:.55}}),[["26%","38%"],["44%","58%"],["62%","34%"]].map(([e,o])=>p("span",{style:{position:"absolute",left:e,top:o,width:7,height:7,borderRadius:"50% 50% 50% 0",transform:"rotate(-45deg)",background:m.rust}},e)),p("span",{style:{position:"absolute",left:11,bottom:9,fontSize:"4.64cqw",fontWeight:700,color:m.text},children:"3 fitting bays"})]}),banner:A("div",{style:{...V,display:"flex",alignItems:"center",justifyContent:"space-between",padding:"0 13px",gap:8,background:m.rust},children:[A("div",{style:{display:"flex",flexDirection:"column",gap:2},children:[p("b",{style:{fontSize:"6.02cqw",color:m.onInk},children:"End of season \xB7 20% off"}),p("span",{style:{fontSize:"3.98cqw",color:m.onInk,opacity:.8},children:"Fitted free, this month only."})]}),p("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.12em",fontWeight:700,padding:"5px 9px",borderRadius:2,background:m.onInk,color:m.text,flex:"none"},children:"SHOP"})]}),titlewithbuttons:A("div",{style:{...V,background:m.paper,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:7,padding:"0 14px",textAlign:"center"},children:[p("span",{style:{fontSize:"6.49cqw",lineHeight:1.15,fontWeight:700,color:m.text},children:"Not sure what fits?"}),A("div",{style:{display:"flex",gap:5},children:[p("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.12em",fontWeight:700,padding:"5px 9px",borderRadius:2,background:m.text,color:m.onInk},children:"FIND MY FIT"}),p("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.12em",fontWeight:700,padding:"5px 9px",borderRadius:2,border:`1px solid ${m.text}`,color:m.text},children:"CALL US"})]})]}),ticker:p("div",{style:{...V,overflow:"hidden",background:m.ink,display:"flex",alignItems:"center"},children:p("span",{style:{whiteSpace:"nowrap",fontSize:"6.29cqw",fontWeight:800,letterSpacing:"0.06em",color:m.warm,marginLeft:-14},children:"FREE FITTING \xB7 48HR DISPATCH \xB7 FREE FITTING \xB7 48HR DISPATCH"})}),countdown:A("div",{style:{...V,padding:"10px 12px",display:"flex",flexDirection:"column",alignItems:"center",gap:6,justifyContent:"center",..._e(m.ink,m.ink2)},children:[p("span",{style:{fontSize:"3.65cqw",fontWeight:700,letterSpacing:"0.16em",textTransform:"uppercase",color:m.muted},children:"Back online in"}),p("div",{style:{display:"flex",alignItems:"flex-start",gap:5},children:[["23","Hours"],["59","Minutes"],["48","Seconds"]].map(([e,o],t)=>A("div",{style:{display:"flex",alignItems:"flex-start",gap:5},children:[t>0&&p("b",{style:{fontSize:"9.5cqw",lineHeight:1,color:m.warm},children:":"}),A("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:2},children:[p("b",{style:{fontSize:"11.5cqw",lineHeight:1,color:m.onInk,fontVariantNumeric:"tabular-nums"},children:e}),p("span",{style:{fontSize:"3.2cqw",letterSpacing:"0.1em",textTransform:"uppercase",opacity:.62,color:m.onInk},children:o})]})]},o))})]}),breadcrumb:p("div",{style:{...V,background:m.card,display:"flex",alignItems:"center",padding:"0 13px"},children:A("span",{style:{fontSize:"4.64cqw",color:m.muted},children:["Home ",p("span",{style:{opacity:.5},children:"/"})," Wheels ",p("span",{style:{opacity:.5},children:"/"})," ",p("span",{style:{color:m.text,fontWeight:700},children:"20 inch"})]})}),categorybar:A("div",{style:{...V,background:m.card,display:"flex",flexDirection:"column",justifyContent:"center",gap:7,padding:"0 11px"},children:[p("div",{style:{display:"flex",gap:5},children:["All","Wheels","Tyres","Lift"].map((e,o)=>p("span",{style:{fontSize:"3.98cqw",fontWeight:o===0?700:500,padding:"4px 7px",borderRadius:99,background:o===0?m.text:m.paper,color:o===0?m.onInk:m.muted},children:e},e))}),p("span",{style:{height:1,background:m.rule}})]}),intro:A("div",{style:{...V,overflow:"hidden",background:m.card},children:[p("div",{style:{position:"absolute",inset:0,..._e(m.ink,m.inkSoft2)}}),p(ur,{size:64,style:{right:8,top:6}}),A("div",{style:{position:"absolute",left:16,right:16,bottom:8,top:"46%",background:m.paper,borderRadius:6,padding:"8px 11px",display:"flex",flexDirection:"column",gap:2,boxShadow:`0 -4px 10px ${m.scrim}`},children:[p("span",{style:{fontSize:"5.69cqw",fontWeight:700,color:m.text},children:"Since 1998"}),p(Ye,{children:"One shed, one lathe, one idea."}),p(Ye,{w:"66%",children:"It turned out to be right."})]})]}),gallerygrid:p(Ce,{title:"Photo gallery",children:p("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(3,1fr)",gridTemplateRows:"repeat(2,1fr)",gap:4,minHeight:0},children:[[m.rust,m.warm],[m.inkSoft,m.ink],[m.paper2,m.mark2],[m.ink,m.inkSoft2],[m.warm,m.paper2],[m.mark2,m.inkSoft]].map(([e,o],t)=>p("div",{style:{borderRadius:3,..._e(e,o,140+t*22)}},t))})}),gallery:A(Ce,{title:"Gallery",children:[p("div",{style:{display:"flex",gap:8,alignItems:"center",marginTop:-2},children:["On the truck","Studio","Close-ups"].map((e,o)=>p("span",{style:{fontSize:"3.98cqw",fontWeight:o===0?700:500,color:o===0?m.text:m.muted,borderBottom:`1.5px solid ${o===0?m.rust:"transparent"}`,paddingBottom:2},children:e},e))}),p("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(3,1fr)",gap:4,minHeight:0},children:[[m.rust,m.warm],[m.ink,m.inkSoft],[m.paper2,m.mark2]].map(([e,o],t)=>p("div",{style:{borderRadius:3,..._e(e,o,150+t*20)}},t))})]}),ordersummary:A(Ce,{title:"Order summary",children:[A("div",{style:{display:"flex",gap:6,alignItems:"center",paddingBottom:4},children:[p("span",{style:{width:26,height:26,borderRadius:4,position:"relative",overflow:"hidden",flex:"none",..._e(m.paper,m.paper2,150)},children:p(ur,{size:18,style:{left:"50%",top:"50%",transform:"translate(-50%,-50%)"}})}),A("div",{style:{display:"flex",flexDirection:"column",gap:1,minWidth:0},children:[p("b",{style:{fontSize:"4.31cqw",color:m.text},children:"Ridge Grappler"}),p("span",{style:{fontSize:"3.65cqw",color:m.muted},children:"20\xD79 +12 \xB7 qty 4"})]})]}),A("div",{style:{flex:1,minHeight:0,display:"flex",flexDirection:"column",justifyContent:"center"},children:[p(pr,{k:"Subtotal",v:"$1,956"}),p(pr,{k:"Fitting",v:"Free"}),A("div",{style:{display:"flex",justifyContent:"space-between",paddingTop:5,fontSize:"4.64cqw"},children:[p("b",{style:{color:m.text},children:"Total"}),p("b",{style:{color:m.text,fontSize:"6.02cqw"},children:"$1,956"})]})]})]}),deliveryoptions:p(Ce,{title:"Delivery",children:p("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[["Standard","3\u20135 days","Free",!0],["Express","Next day","$19",!1]].map(([e,o,t,r])=>A("div",{style:{display:"flex",alignItems:"center",gap:6,padding:"5px 6px",borderRadius:4,border:`1px solid ${r?m.rust:m.rule}`,background:r?m.paper:m.card},children:[p("span",{style:{width:7,height:7,borderRadius:"50%",flex:"none",border:`1.5px solid ${r?m.rust:m.mark1}`,background:r?m.rust:"transparent"}}),p("span",{style:{flex:1,fontSize:"4.31cqw",fontWeight:600,color:m.text},children:e}),p("span",{style:{fontSize:"3.98cqw",color:m.muted},children:o}),p("b",{style:{fontSize:"4.31cqw",color:m.text},children:t})]},e))})}),paymentbadges:A("div",{style:{...V,background:m.paper,display:"flex",flexDirection:"column",gap:8,justifyContent:"center",padding:"0 12px"},children:[p(pm,{children:"Ways to pay"}),p("div",{style:{display:"flex",gap:5},children:[["VISA",m.ink],["MC",m.rust],["AMEX",m.inkSoft],["PayPal",m.ink2]].map(([e,o])=>p("span",{style:{flex:1,textAlign:"center",fontSize:"3.65cqw",fontWeight:800,letterSpacing:"0.06em",color:m.onInk,borderRadius:3,padding:"6px 0",background:o},children:e},e))})]}),stats:A("div",{style:{...V,padding:"10px 12px",display:"flex",flexDirection:"column",gap:9,justifyContent:"center",..._e(m.ink,m.ink2)},children:[p("span",{style:{fontSize:"3.98cqw",fontWeight:700,letterSpacing:"0.14em",textTransform:"uppercase",color:m.warm},children:"By the numbers"}),A("div",{style:{display:"flex",gap:8},children:[p(ji,{n:"27k",label:"Rigs fitted",tone:m.onInk}),p(ji,{n:"12",label:"Years",tone:m.onInk}),p(ji,{n:"4.9",label:"Avg rating",tone:m.warm})]})]}),testimonials:A("div",{style:{...V,overflow:"hidden",background:m.paper,padding:"10px 11px",display:"flex",flexDirection:"column",gap:6,justifyContent:"center"},children:[p("span",{style:{position:"absolute",right:10,top:2,fontSize:"22.4cqw",lineHeight:1,fontWeight:800,color:m.rust,opacity:.16},children:"\u201D"}),p(AS,{filled:5,size:7}),p("span",{style:{position:"relative",fontSize:"5.31cqw",lineHeight:1.35,color:m.text,fontWeight:600},children:"\u201CTook them out to the Simpson and back. Not one chip.\u201D"}),A("div",{style:{display:"flex",alignItems:"center",gap:5},children:[p(j2,{}),p("span",{style:{fontSize:"3.98cqw",color:m.muted},children:"Dave M. \xB7 Hilux N80"})]})]}),reviews:A(Ce,{title:"Reviews",children:[p("div",{style:{display:"flex",gap:4,height:22},children:[[m.inkSoft,m.inkSoft2],[m.rust,m.warm],[m.ink,m.inkSoft],[m.mark2,m.mark1]].map(([e,o],t)=>p("div",{style:{flex:1,borderRadius:3,..._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])=>A("div",{style:{display:"flex",gap:5,alignItems:"flex-start"},children:[p(j2,{size:12}),A("div",{style:{display:"flex",flexDirection:"column",gap:1,minWidth:0},children:[A("div",{style:{display:"flex",gap:4,alignItems:"center"},children:[p("b",{style:{fontSize:"3.98cqw",color:m.text},children:e}),p(AS,{filled:o})]}),p(Ye,{children:t})]})]},e))})]}),logos:A("div",{style:{...V,display:"flex",flexDirection:"column",gap:9,justifyContent:"center",padding:"0 12px",..._e(m.ink,m.inkSoft)},children:[p("span",{style:{fontSize:"3.98cqw",fontWeight:700,letterSpacing:"0.14em",textTransform:"uppercase",color:m.warm},children:"As fitted by"}),p("div",{style:{display:"grid",gridTemplateColumns:"repeat(4,1fr)",gap:8},children:["ARB","TJM","IRONMAN","OPPOSITE"].map(e=>p("span",{style:{textAlign:"center",fontSize:"4.31cqw",fontWeight:800,letterSpacing:"0.08em",color:m.onInk,opacity:.82},children:e},e))})]}),prose:A("div",{style:{...V,background:m.paper,padding:"11px 14px",display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[p("span",{style:{fontSize:"5.86cqw",fontWeight:700,color:m.text},children:"Why offset matters"}),A("div",{style:{display:"flex",gap:6},children:[p("span",{style:{fontSize:"15.3cqw",lineHeight:.78,fontWeight:800,color:m.rust,marginTop:1},children:"T"}),A("div",{style:{display:"flex",flexDirection:"column"},children:[p(Ye,{children:"he number on the back of your wheel decides whether the"}),p(Ye,{w:"76%",children:"tyre sits under the guard or an inch outside it."})]})]})]}),cards:p(Ce,{title:"What you get",children:p("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(3,1fr)",gap:5,minHeight:0},children:[["Fitted free","In store, same day."],["5 yr cover","Structural, no fine print."],["Swap it","30 days, any reason."]].map(([e,o])=>A("div",{style:{border:`1px solid ${m.rule}`,borderRadius:4,padding:6,display:"flex",flexDirection:"column",gap:2},children:[p("span",{style:{width:11,height:11,borderRadius:3,background:m.rust,opacity:.9}}),p("b",{style:{fontSize:"3.98cqw",color:m.text},children:e}),p(Ye,{children:o})]},e))})}),faq:p(Ce,{title:"Questions",children:p("div",{style:{flex:1,display:"flex",flexDirection:"column",justifyContent:"center"},children:[["Will these fit my Hilux?",!0],["Do you fit them for me?",!1],["What if I pick wrong?",!1]].map(([e,o])=>A("div",{style:{borderBottom:`1px solid ${m.rule}`,padding:"4px 2px"},children:[A("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",gap:6},children:[p("b",{style:{fontSize:"4.31cqw",color:m.text},children:e}),p("span",{style:{fontSize:"4.64cqw",color:m.muted,lineHeight:1},children:o?"\u2212":"+"})]}),o&&p(Ye,{w:"90%",children:"Use the fitment finder \u2014 it reads your build, not just the model."})]},e))})}),hero:A("div",{style:{...V,overflow:"hidden",..._e(m.ink,m.ink2)},children:[p("div",{style:{...V,background:`linear-gradient(90deg,${m.scrim},transparent 70%)`}}),p("div",{style:{position:"relative",height:"100%",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"flex-start",padding:"12px 14px",gap:5},children:p(U2,{over:"NEW \xB7 SUMMER",overTone:m.warm,head:"Built for the worst road you own",cta:"SHOP ALL",ctaBg:m.warm,ctaFg:m.ink,tone:m.onInk})}),p(ur,{size:104,style:{right:-24,bottom:-30}})]}),herosingle:A("div",{style:{...V,display:"flex",background:m.paper,overflow:"hidden"},children:[p("div",{style:{flex:1,padding:12,display:"flex",flexDirection:"column",gap:5,justifyContent:"center"},children:p(U2,{over:"ALL-TERRAIN",overTone:m.rust,head:"Grip that does not ask",headSize:12,cta:"EXPLORE",ctaBg:m.text,ctaFg:m.onInk,tone:m.text})}),p("div",{style:{flex:1,position:"relative",..._e(m.inkSoft,m.inkSoft2)},children:p(ur,{size:74,style:{right:-14,top:16}})})]}),productgrid:p(Ce,{title:"Best sellers",children:A("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(3,1fr)",gap:5,minHeight:0},children:[p(_S,{name:"Ridge 19",price:"$365"}),p(_S,{name:"Ridge 29",price:"$410"}),p(_S,{name:"Ridge 39",price:"$455"})]})}),collections:p(Ce,{title:"Shop by category",children:p("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(3,1fr)",gap:5,minHeight:0},children:[["Wheels",m.inkSoft,m.inkSoft2],["Tyres",m.rust,m.warm],["Lift kits",m.ink,m.inkSoft]].map(([e,o,t])=>p("div",{style:{borderRadius:4,display:"flex",alignItems:"flex-end",padding:5,color:m.onInk,..._e(o,t)},children:p("span",{style:{fontSize:"3.98cqw",fontWeight:700,letterSpacing:"0.04em"},children:e})},e))})}),producthero:A("div",{style:{...V,display:"flex",background:m.card,overflow:"hidden"},children:[p("div",{style:{flex:1.1,position:"relative",..._e(m.paper,m.paper2,150)},children:p(ur,{size:78,style:{left:"50%",top:"50%",transform:"translate(-50%,-50%)"}})}),A("div",{style:{flex:1,padding:"10px 10px 10px 8px",display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[p("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.16em",fontWeight:700,color:m.rust},children:"NITTO"}),p("b",{style:{fontSize:"6.29cqw",color:m.text},children:"Ridge Grappler"}),p("span",{style:{fontSize:"6.63cqw",fontWeight:700,color:m.text},children:"$489"}),p("span",{style:{alignSelf:"flex-start",fontSize:"3.65cqw",letterSpacing:"0.12em",fontWeight:700,padding:"4px 8px",borderRadius:2,background:m.text,color:m.onInk},children:"ADD TO CART"})]})]}),spectable:p(Ce,{title:"Specifications",children:A("div",{style:{flex:1,display:"flex",flexDirection:"column",justifyContent:"center"},children:[p(pr,{k:"Diameter",v:'20"'}),p(pr,{k:"Width",v:"9.0J"}),p(pr,{k:"Offset",v:"+12"}),p(pr,{k:"Load",v:"1250 kg"})]})}),fitmenttable:p(Ce,{title:"Will it fit?",children:A("div",{style:{flex:1,display:"flex",flexDirection:"column",justifyContent:"center"},children:[p(pr,{k:"Hilux N80",v:"20\xD79 +12",ok:!0}),p(pr,{k:"Ranger PX3",v:"20\xD79 +12",ok:!0}),p(pr,{k:"LC79",v:"17\xD78 \u221210",ok:!0})]})}),processsteps:A("div",{style:{...V,background:m.paper,padding:10,display:"flex",flexDirection:"column",gap:7,justifyContent:"center"},children:[p(pm,{children:"How it works"}),p("div",{style:{display:"flex",gap:6},children:["Pick your rig","Match the fit","We fit it"].map((e,o)=>A("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:2},children:[p("span",{style:{width:11,height:11,borderRadius:"50%",background:m.text,color:m.onInk,fontSize:"3.98cqw",display:"flex",alignItems:"center",justifyContent:"center",fontWeight:700},children:o+1}),p("span",{style:{fontSize:"3.98cqw",color:m.text,fontWeight:600},children:e})]},e))})]}),detailrows:p("div",{style:{...V,background:m.card,display:"flex",flexDirection:"column",overflow:"hidden"},children:[["Forged, not cast","Half the weight, twice the road.",!1],["Fits your load","Rated to 1250 kg a corner.",!0]].map(([e,o,t])=>{let r=p("div",{style:{flex:1,..._e(t?m.rust:m.inkSoft,t?m.warm:m.inkSoft2)}},"art"),a=A("div",{style:{flex:1.1,padding:8,display:"flex",flexDirection:"column",gap:2,justifyContent:"center"},children:[p("b",{style:{fontSize:"4.64cqw",color:m.text},children:e}),p("span",{style:{fontSize:"3.98cqw",color:m.muted,lineHeight:1.3},children:o})]},"tx");return p("div",{style:{flex:1,display:"flex",minHeight:0},children:t?[a,r]:[r,a]},e)})}),specstrip:p("div",{style:{...V,background:m.ink,color:m.onInk,display:"flex",alignItems:"center",justifyContent:"space-around",padding:"0 8px"},children:[["5 yr","Warranty"],["Free","Fitting"],["48 hr","Dispatch"]].map(([e,o])=>A("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:1},children:[p("b",{style:{fontSize:"5.69cqw",letterSpacing:"0.02em"},children:e}),p("span",{style:{fontSize:"3.65cqw",color:m.mark2,letterSpacing:"0.1em",textTransform:"uppercase"},children:o})]},o))})},K2={subscribe:A("div",{style:{...V,padding:13,display:"flex",flexDirection:"column"},children:[A("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:8},children:[A("div",{style:{display:"flex",alignItems:"center",gap:6},children:[p(j,{w:8,h:8,r:2,tone:"accent"}),p(j,{w:38,h:7,r:3,tone:"dark"}),p(j,{w:16,h:7,r:3,tone:"accent"})]}),p(j,{w:38,h:4,r:2,tone:"soft"})]}),p("div",{style:{height:1,background:eo.line,marginBottom:10}}),A("div",{style:{flex:1,display:"flex",gap:10,border:`1px solid ${eo.line}`,borderRadius:7,padding:10},children:[A("div",{style:{flex:1.1,display:"flex",flexDirection:"column",justifyContent:"center",gap:5},children:[p(j,{w:"46%",h:3,r:2,tone:"accent"}),p(j,{w:"84%",h:8,r:4,tone:"dark"}),p(j,{w:"56%",h:8,r:4,tone:"accent"}),p(j,{w:"96%",h:3,r:2,tone:"soft",style:{marginTop:2}}),A("div",{style:{display:"flex",gap:5,marginTop:4},children:[p("div",{style:{flex:1,height:13,borderRadius:5,border:`1px solid ${eo.line}`,background:eo.block}}),p(j,{w:34,h:13,r:5,tone:"accent"})]})]}),A("div",{style:{flex:1,background:eo.block,borderRadius:6,padding:8,display:"flex",flexDirection:"column",gap:6},children:[p(j,{w:"52%",h:4,r:2,tone:"accent"}),Array.from({length:3}).map((e,o)=>A("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",gap:6,borderTop:o?`1px solid ${eo.line}`:"none",paddingTop:o?4:0},children:[p(j,{w:34,h:4,r:2,tone:"dark"}),p(j,{w:16,h:3,r:2,tone:"soft"})]},o))]})]})]}),split:A("div",{style:{...V,display:"flex"},children:[p("div",{style:{width:"44%",background:ES}}),A("div",{style:{flex:1,padding:15,display:"flex",flexDirection:"column",justifyContent:"center",gap:7},children:[p(j,{w:"44%",h:5,r:3,tone:"accent"}),p(j,{w:"88%",h:8,r:4,tone:"dark"}),p(j,{w:"70%",h:8,r:4,tone:"dark"}),p(j,{w:"94%",h:5,r:2,tone:"soft",style:{marginTop:2}}),p(j,{w:"80%",h:5,r:2,tone:"soft"}),p(j,{w:"40%",h:13,r:6,tone:"accent",style:{marginTop:5}})]})]}),sectionheader:A(q2,{children:[p(j,{w:"18%",h:6,r:3,tone:"accent",style:{position:"absolute",top:15,right:16}}),A("div",{style:{...V,padding:16,display:"flex",flexDirection:"column",justifyContent:"center",gap:10},children:[A("div",{style:{display:"flex",alignItems:"center",gap:9},children:[p(j,{w:16,h:16,r:4,tone:"accent"}),p(j,{w:"20%",h:9,r:4,tone:"dark"})]}),p(j,{w:"62%",h:10,r:5,tone:"dark"}),p(j,{w:"42%",h:6,r:3,tone:"soft"})]})]}),header:p("div",{style:{...V,padding:14,display:"flex",flexDirection:"column",justifyContent:"center"},children:A("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[p(j,{w:"22%",h:12,r:4,tone:"dark"}),A("div",{style:{display:"flex",gap:9,alignItems:"center"},children:[p(j,{w:26,h:6,r:3,tone:"soft"}),p(j,{w:26,h:6,r:3,tone:"soft"}),p(j,{w:26,h:6,r:3,tone:"soft"}),p(j,{w:18,h:14,r:5,tone:"accent"})]})]})}),footer:A("div",{style:{...V,padding:15,display:"flex",flexDirection:"column",justifyContent:"center",gap:12},children:[A("div",{style:{display:"flex",gap:14},children:[A("div",{style:{flex:1.4,display:"flex",flexDirection:"column",gap:6},children:[p(j,{w:"60%",h:9,r:4,tone:"dark"}),p(j,{w:"90%",h:5,r:2,tone:"soft"}),p(j,{w:"70%",h:5,r:2,tone:"soft"})]}),[0,1].map(e=>A("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:6},children:[p(j,{w:"50%",h:6,r:3,tone:"dark"}),p(j,{w:"80%",h:5,r:2,tone:"soft"}),p(j,{w:"66%",h:5,r:2,tone:"soft"})]},e))]}),p("div",{style:{height:1,background:eo.line}}),A("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[p(j,{w:"30%",h:5,r:2,tone:"soft"}),p(j,{w:"16%",h:5,r:2,tone:"soft"})]})]}),grid:p("div",{style:{...V,padding:14,display:"grid",gridTemplateColumns:"1fr 1fr",gridTemplateRows:"1fr 1fr",gap:9},children:Array.from({length:4}).map((e,o)=>p("div",{style:{borderRadius:6,background:eo.block}},o))}),blanksection:p("div",{style:{...V,padding:14,display:"flex"},children:A("div",{style:{flex:1,border:`1px dashed ${eo.line}`,borderRadius:7,display:"flex",alignItems:"center",justifyContent:"center",position:"relative"},children:[p(j,{w:14,h:2,r:1,tone:"tint"}),p(j,{w:2,h:14,r:1,tone:"tint",style:{position:"absolute"}})]})}),spacer:A("div",{style:{...V,padding:14,display:"flex",flexDirection:"column",justifyContent:"space-between"},children:[p(j,{w:"100%",h:6,r:3,tone:"soft"}),p(j,{w:16,h:22,r:3,tone:"block",style:{alignSelf:"center"}}),p(j,{w:"100%",h:6,r:3,tone:"soft"})]}),divider:p("div",{style:{...V,padding:14,display:"flex",alignItems:"center"},children:p(j,{w:"100%",h:3,r:2,tone:"dark"})}),customhtml:A("div",{style:{...V,display:"flex",alignItems:"center",justifyContent:"center",gap:8,background:ES},children:[p(j,{w:5,h:16,r:2,tone:"dark",style:{transform:"skewX(-14deg)"}}),p(j,{w:16,h:10,r:3,tone:"accent"}),p(j,{w:5,h:16,r:2,tone:"dark",style:{transform:"skewX(14deg)"}})]}),heading:p("div",{style:{...V,padding:14,display:"flex",alignItems:"center"},children:p(j,{w:"64%",h:13,r:4,tone:"dark"})}),text:A("div",{style:{...V,padding:16,display:"flex",flexDirection:"column",justifyContent:"center",gap:7},children:[p(j,{w:"100%",h:6,r:3,tone:"soft"}),p(j,{w:"96%",h:6,r:3,tone:"soft"}),p(j,{w:"100%",h:6,r:3,tone:"soft"}),p(j,{w:"58%",h:6,r:3,tone:"soft"})]}),image:p("div",{style:{position:"absolute",inset:14,borderRadius:7,background:ES}}),button:p("div",{style:{...V,display:"flex",alignItems:"center",justifyContent:"center"},children:p(j,{w:"34%",h:16,r:8,tone:"accent"})}),menu:A("div",{style:{...V,padding:"14px 22%",display:"flex",flexDirection:"column",justifyContent:"center",gap:7},children:[p(j,{w:"48%",h:7,r:3,tone:"dark"}),p(j,{w:"82%",h:5,r:2,tone:"soft"}),p(j,{w:"66%",h:5,r:2,tone:"soft"}),p(j,{w:"74%",h:5,r:2,tone:"soft"}),p(j,{w:"58%",h:5,r:2,tone:"soft"})]}),emailform:A("div",{style:{...V,padding:16,display:"flex",flexDirection:"column",justifyContent:"center",gap:9},children:[p(j,{w:"56%",h:8,r:3,tone:"dark"}),A("div",{style:{display:"flex",gap:6},children:[p("div",{style:{flex:1,height:16,borderRadius:5,border:`1px solid ${eo.line}`}}),p(j,{w:"30%",h:16,r:5,tone:"accent"})]})]}),sociallogos:p("div",{style:{...V,display:"flex",alignItems:"center",justifyContent:"center",gap:9},children:[0,1,2,3].map(e=>p(j,{w:16,h:16,r:8,tone:"dark"},e))}),paymentlogos:A("div",{style:{...V,display:"flex",alignItems:"center",justifyContent:"center",gap:7},children:[p(j,{w:22,h:6,r:2,tone:"soft"}),[0,1,2,3].map(e=>p(j,{w:20,h:13,r:3,tone:"dark"},e))]}),search:p("div",{style:{...V,padding:"0 18%",display:"flex",alignItems:"center"},children:A("div",{style:{flex:1,height:22,borderRadius:11,border:`1px solid ${eo.line}`,display:"flex",alignItems:"center",gap:7,padding:"0 9px"},children:[p("div",{style:{width:9,height:9,borderRadius:5,border:`2px solid ${eo.dark}`}}),p(j,{w:"46%",h:5,r:2,tone:"soft"})]})}),cart:A("div",{style:{...V,display:"flex",alignItems:"center",justifyContent:"center",gap:7},children:[p("div",{style:{width:22,height:18,borderRadius:"3px 3px 6px 6px",border:`2px solid ${eo.dark}`}}),p("div",{style:{padding:"2px 6px",borderRadius:6,border:`1.5px solid ${eo.dark}`},children:p(j,{w:7,h:7,r:2,tone:"dark"})})]}),countryswitch:A("div",{style:{...V,padding:14,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:5},children:[A("div",{style:{display:"flex",alignItems:"center",gap:6,padding:"4px 8px",border:`1px solid ${eo.line}`},children:[p(j,{w:22,h:6,r:2,tone:"dark"}),p(j,{w:6,h:4,r:1,tone:"soft"})]}),A("div",{style:{width:"46%",display:"flex",flexDirection:"column",gap:4,padding:6,border:`1px solid ${eo.line}`},children:[p(j,{w:"80%",h:4,r:2,tone:"accent"}),p(j,{w:"64%",h:4,r:2,tone:"soft"}),p(j,{w:"72%",h:4,r:2,tone:"soft"})]})]}),legalline:A("div",{style:{...V,padding:16,display:"flex",flexDirection:"column",justifyContent:"center",gap:9},children:[p("div",{style:{height:1,background:eo.line}}),A("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[p(j,{w:"38%",h:5,r:2,tone:"soft"}),A("div",{style:{display:"flex",gap:5},children:[p(j,{w:14,h:5,r:2,tone:"soft"}),p(j,{w:14,h:5,r:2,tone:"soft"}),p(j,{w:14,h:5,r:2,tone:"soft"})]})]})]}),fallback:p("div",{style:{position:"absolute",inset:14,borderRadius:8,background:eo.block}})};function V2({type:e}){let o=jte[e]??"",t=Gte[o]??K2[o]??K2.fallback;return p("div",{className:"sf-thumb","aria-hidden":"true",style:{position:"absolute",inset:0,background:"var(--sf-thumb-thumb-bg)",pointerEvents:"none",containerType:"inline-size"},children:t})}import{useScreenDocument as Sm}from"efficient-easel/screen/components/ScreenDocumentContext";import{jsx as Ts,jsxs as Y2}from"react/jsx-runtime";import Kte from"efficient-easel/screen/components/SidePanelHead";import{StylesIcon as qte}from"efficient-easel/rail";import{Tooltip as Vte}from"efficient-shell/ui";import{HintsToggle as Yte,hintsFoldClass as Xte}from"efficient-easel/panel";import{useHints as Zte}from"efficient-easel/screen/lib/hints";function X2({tokenRef:e,siteId:o,onClose:t,onNotify:r,tab:a,onTabChange:n,revealPageGroup:s,onPageGroupRevealed:l}){let i=Ln(),{shown:d,setShown:f}=Zte();return Y2("div",{className:`sf-styles ${Xte(d)}`.trim(),children:[Ts(Kte,{icon:Ts(qte,{}),title:c("Styles"),context:Ts(Vte,{content:c("{name} \u2014 renamed in the Console: {place}.",{name:i,place:c("Storefront \u25B8 Sites \u25B8 Settings")}),className:"sf-name-tip",children:Ts("span",{className:"sf-name-text",children:i})})}),Y2("div",{className:"sf-insp-body es-insp-body sf-scroll",children:[Ts(Nf,{tokenRef:e,siteId:o,onNotify:r,tab:a,onTabChange:n,revealPageGroup:s,onPageGroupRevealed:l}),Ts(Yte,{shown:d,onChange:f,label:c("Show hints")})]})]})}import{jsx as so,jsxs as Ya,Fragment as tre}from"react/jsx-runtime";import{Fragment as l5,useEffect as i5,useRef as NS}from"react";import{useTreeDrag as d5}from"efficient-easel/drag";import{GlobeIcon as rre,ImageIcon as are,LocationIcon as nre,MapIcon as sre,TextLinesIcon as lre,TrashIcon as f5}from"efficient-easel/icons";import{Subtree as c5,TreeRow as Ki,TreeRowAction as p5,TreeSeam as u5}from"efficient-easel/tree";import{useEaselStrings as ire}from"efficient-easel/strings";import{isSelectionMode as dre}from"efficient-easel/screen/lib/screen-parts";import{useSyncExternalStore as Jte}from"react";var Qte={level:"groups"},J2=Qte,FS=new Set;function Bt(e){J2=e;for(let o of FS)o()}function ere(e){return FS.add(e),()=>{FS.delete(e)}}var Z2=()=>J2;function Q2(){return Jte(ere,Z2,Z2)}var Gi=e=>String(e?.group??""),BS=new WeakMap,ore=0;function um(e){let o=BS.get(e);return o||(o=`loc${++ore}`,BS.set(e,o)),o}var e5=(e,o)=>o||e||"Ungrouped",o5={photo:"",group:"",groupName:"",name:"City name",state:"State",country:"Country",timezone:"GMT \xB7 UTC +0",address:`Address line one
|
|
336
|
+
`),yo=hg(),oo={...Dw(pe),...Gw(xe),...tC(Re),...yo.style,...l?{}:Tf(s)};return nR("div",{className:`sf-theme-surfaces sf-theme-accent ${[EC($?void 0:b),rP($?void 0:y)].filter(Boolean).join(" ")}`.trim(),style:{...wb(ee,le),...vb($?null:q,le),...Nw(pe),...Hw(pe),...Ww(pe),...Fd(pe),...Yw(oe,ie.cornerRadiusUnit),...Qw($?void 0:R,$?void 0:T,$?void 0:w),...uC($?void 0:E,ie.siteWidthUnit),...PC($?void 0:D,ie.siteGutterUnit),...OC($?void 0:b,ie.siteGutterPhoneUnit),...oP($?void 0:F,ie.blockGapUnit),...tP($?void 0:y,ie.blockGapPhoneUnit),...Dd($?void 0:C)},"data-sf-headings":eC(ge),[gC]:Rd(d??h),[Jd]:Pk(d??h),"data-sf-card-shadow":$?void 0:Xw(R),"data-sf-card-gap":$?void 0:Zw(g),"data-sf-card-hover":$?void 0:Jw(w),onClickCapture:i,children:[$e?jo("style",{"data-sf-text-styles":"",dangerouslySetInnerHTML:{__html:$e}}):null,jo(mL,{grayscale:$?void 0:B,children:jo(_L,{value:N7,children:jo(hL,{ink:Rw(pe),children:jo(R7,{fallback:null,children:jo(V0,{rootProps:d??h,children:x(oo)})})})})})]})}var sR=e=>{e.target?.closest?.("a")&&e.preventDefault()};var $7=/(-?(?:\d+\.?\d*|\.\d+))(?:s|d|l)?vh\b/g;function z7(e,o){return e.replace($7,(t,r)=>`${+(Number(r)*o/100).toFixed(3)}px`)}function iR(e,o){for(let t=0;t<e.length;t++){let r=e.item(t),a=e.getPropertyValue(r);if(!a.includes("vh"))continue;let n=z7(a,o);n!==a&&e.setProperty(r,n,e.getPropertyPriority(r))}}function dR(e,o){for(let t of Array.from(e)){let r=t.style;r&&iR(r,o);let a=t.cssRules;a&&dR(a,o)}}function lR(e,o){for(let t of Array.from(e.styleSheets)){let r;try{r=t.cssRules}catch{continue}dR(r,o)}for(let t of Array.from(e.querySelectorAll('[style*="vh"]')))iR(t.style,o)}function fR(e,o){lR(e,o);let t=e.defaultView,r=0,a=()=>{r||!t||(r=t.requestAnimationFrame(()=>{r=0,lR(e,o)}))};e.addEventListener("load",a,!0);let n=t?new t.MutationObserver(a):null;return n?.observe(e,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["style"],characterData:!0}),()=>{n?.disconnect(),e.removeEventListener("load",a,!0),r&&t&&t.cancelAnimationFrame(r)}}var Y7=1440,Eg=800;function pR({starter:e,config:o,metadata:t,busy:r,onAdd:a}){let{mirrorHostStyles:n}=cl(),[s,l]=Og(null),[i,d]=Og(Eg),[f,x]=Og(null);return U7(()=>{if(!s)return;let u=fR(s,Eg),h=s.defaultView,I=()=>{f&&d(Math.max(Eg,Math.ceil(f.getBoundingClientRect().height)))},S=h&&f?new h.ResizeObserver(I):null;return f&&S?.observe(f),I(),()=>{u(),S?.disconnect()}},[s,f]),cR("div",{className:"sf-starter",children:[cR(K7,{padding:"none",className:"sf-starter-picture",children:[Tt("div",{inert:!0,className:"sf-starter-frame",children:Tt(q7,{width:Y7,height:i,children:Tt(j7,{id:`page-starter-${e.id}`,title:e.title,mirrorStyles:n,onDocument:l,height:"fill",children:Tt(Vf,{document:s??void 0,children:Tt(Tg,{onClickCapture:sR,body:u=>Tt("div",{className:"sf-themed-content",style:u,children:Tt("div",{ref:x,style:{background:"var(--bg)"},children:Tt(fL,{config:o,data:e.layout,metadata:t})})})})})})})}),Tt("div",{className:"sf-starter-add",children:Tt(G7,{onClick:()=>a(e),loading:r,"aria-label":c("Add \u201C{name}\u201D",{name:e.title}),children:c("Add page")})})]}),Tt(V7,{size:"sm",children:e.title})]})}import{useMemo as sZ}from"react";import{sessionRegistry as lZ}from"efficient-easel/screen/lib/session";import{useEaselSession as iZ}from"efficient-easel/screen/lib/session-context";import{currentEaselSession as X7}from"efficient-easel/screen/lib/session";var Z7={general:!0,commerce:!0,service:!0};function _g(e){let o=e?.sets;return o?Object.fromEntries(ib.map(t=>[t,o.includes(t)])):Z7}function Ag(e=X7()){return _g(e.blocks)}import{currentEaselSession as vR}from"efficient-easel/screen/lib/session";import{SITE_SIDE as xR}from"efficient-easel/screen/lib/content/length-units";var uR=[{text:"Ticker item"},{text:"Ticker item"},{text:"Ticker item"},{text:"Ticker item"}],MPe={label:"Scrolling Bar",defaultProps:{items:[],tone:"scrim",borders:!0,size:Qb,separator:ew,scrollDirection:fi}};var mR=()=>[{text:c("Spec label"),tone:"normal"},{text:c("Spec value"),tone:"muted"},{text:c("Spec label"),tone:"normal"},{text:c("Spec value"),tone:"muted"}],$Pe={label:"Spec Strip",defaultProps:{cells:[{text:"",tone:"normal"},{text:"",tone:"normal"}],fill:"dark"}};function xo(e,o,t,r={}){return{type:e,props:{...o(e),id:t(e),...r}}}function hR(e,o,t){return xo(K,e,o,{...t,sectionPaddingTop:void 0,sectionPaddingBottom:void 0})}var ru={Manifesto:(e,o)=>({type:K,props:{...e(K),id:o(K),direction:"row",share:"equal",sectionHeightMode:"screen",name:"Brand Text",content:[xo(K,e,o,{direction:"column",justify:"center",blockSpacing:"gap",name:"Text",sectionPaddingTop:100,sectionPaddingBottom:100,sectionPaddingLeft:xR,sectionPaddingRight:xR,content:[xo("Text",e,o,Jt()),xo("Text",e,o,hr()),xo("Text",e,o),xo("Stats",e,o)]}),hR(e,o,{direction:"column",name:"Picture",content:[]})]}}),Split:(e,o)=>({type:K,props:{...e(K),id:o(K),direction:"row",share:"equal",sectionHeightMode:"screen",sectionHeightValue:70,name:"Image & Text Split",content:[xo(K,e,o,{direction:"column",justify:"center",blockSpacing:"gap",name:"Text",sectionPaddingTop:100,sectionPaddingBottom:100,sectionPaddingLeft:60,sectionPaddingRight:60,content:[xo("Text",e,o,Jt()),xo("Text",e,o,hr()),xo("Text",e,o),xo("ButtonBlock",e,o)]}),hR(e,o,{direction:"column",name:"Image",content:[xo("ImageBlock",e,o)]})]}}),Subscribe:(e,o)=>({type:K,props:{...e(K),id:o(K),direction:"column",name:"Subscribe",content:[xo("Text",e,o,hr()),xo("Text",e,o),xo("Form",e,o)]}}),Ticker:(e,o)=>IR("Scrolling Bar",ec,ma,uR.map(t=>({text:t.text,style:oc,muted:!0})),e,o),SpecStrip:(e,o,t)=>IR("Spec Strip",t?.theme?{...gl,sectionAccent:Ad(er(t.theme))}:{...gl,sectionBorder:{top:1}},xa,mR().map(r=>({text:r.text??"",style:yl,muted:r.tone==="muted"})),e,o)};function IR(e,o,t,r,a,n){return xo(K,a,n,{...ua,...o,blockSpacing:"gap",padV2:!0,name:e,sectionPaddingTop:t.top,sectionPaddingBottom:t.bottom,sectionPaddingTopPhone:t.topPhone,sectionPaddingBottomPhone:t.bottomPhone,content:r.map(s=>xo("Text",a,n,{text:s.text,...s.muted?{tone:"dim"}:{},_partStyles:{text:s.style}}))})}function gR(e){return z(ru,e)??null}import{isNodeList as Fg}from"efficient-easel/data";var pTe=Object.keys(cg),J7={Logos:NA,DocMasthead:RF,DocTabs:GF,Timeline:fF,TimelineTrack:cF},Q7={PaymentBadges:MA,PaymentLogosBlock:HA,Integrations:zB};function au(e,o,t){let r={};for(let a of Object.keys(o(e.type)))r[a]=void 0;for(let[a,n]of Object.entries(e.props))r[a]=Fg(n)?n.map(s=>au(s,o,t)):n;return r.id=t(e.type),{type:e.type,props:r}}var yR=e=>({...e?.theme?{theme:e.theme}:{},...e?.site?{site:e.site}:{},press:!0});function mi(e,o,t=0,r=()=>({})){return(a,n,s)=>{let{nodes:l}=Oa({type:e,props:{...a(e),...r(),id:n(e)}},o,yR(s));return au(l[t],a,n)}}var eq={Stats:tq,Cards:oq};function oq(){let e=Rr("Cards");if(!e)return null;let o=mi("Cards",e,0,fA);return(t,r,a)=>{let n=o(t,r,a);return{...n,props:{...n.props,name:"Cards section"}}}}function tq(){let e=Rr("StatsParagraph");return e?(o,t,r)=>{let{nodes:a}=Oa({type:"StatsParagraph",props:{...o("StatsParagraph"),...bA(),id:t("StatsParagraph")}},e,yR(r)),n=a[0],s=Fg(n.props.content)?n.props.content.filter(f=>f.props?.cardStyle===void 0):[],l=bR(AI(wA(),"table")),i=s.map(SR),d=au({...n,props:{...n.props,content:[...i,l]}},o,t);return{...d,props:{...d.props,name:"Stats section"}}}:null}function SR(e){return e.props?.name==="Words"?{...e,props:{...e.props,widthFitPhone:"fill"}}:Fg(e.props?.content)?{...e,props:{...e.props,content:e.props.content.map(SR)}}:e}var bR=e=>Rt([e],(o,t)=>`${o}-seed-${t}`)[0];function rq(e,o){if(!m1(e,o))return null;let t=z(eq,e);if(t)return t();let r=Rr(e);return r?mi(e,r,0,z(J7,e)??z(rL,e)??z(Q7,e)):null}function aq(e){return(o,t,r)=>{let a=n=>{if(n.type==="Stats"){let l=au(bR(AI([],"list")),o,t);return{...l,props:{...l.props,name:"Numbers"}}}let s=qe(n,l=>ze(l,a));return s===n?n:{type:n.type,props:s.props}};return a(e(o,t,r))}}function ps(e,o=Ta){let t=gR(e);return t?aq(t):rq(e,o)}import{blockTypesIn as wR}from"efficient-easel/screen/lib/document/block-types-in";var CR=()=>({}),kR=new Map;function nq(e){let o=kR.get(e);if(o)return o;let t=new Set,r=z(it,e);if(r)for(let s of r.seeds(CR))for(let l of wR({type:r.childType,props:s}))t.add(l);let a=ps(e);if(a){let s=0;for(let l of wR(a(CR,i=>`${i}-${s+=1}`)))t.add(l)}t.delete(e);let n=[...t].sort();return kR.set(e,n),n}function Bg(e){if(!e||!e.sets&&!e.allow&&!e.deny?.length)return null;let o=_g(e),t=e.allow?new Set(e.allow):null,r=new Set(e.deny??[]),a=new Set(Object.keys(e.host??{})),n=i=>{if(r.has(i))return!1;if(a.has(i))return!0;let d=pb(i);return!d||!o[d]?!1:t?t.has(i):!0},s=new Map,l=i=>{let d=s.get(i);if(d!==void 0)return d;s.set(i,!1);let f=n(i)&&nq(i).every(l);return s.set(i,f),f};return{sets:o,offers:l}}var sq="block-offer";function Lg(e=vR()){return e.cache(sq,()=>Bg(mn(e)))}function PR(e,o=vR()){let t=Lg(o);return t?t.offers(e):!0}var TR={name:"catalogueLabel",applies:e=>co(Qr,e),draw(e,o){e.label=z(Qr,o)}};import{jsx as Hg}from"react/jsx-runtime";import{parseBlockWidthFit as cq,phoneKey as Ot,tabletKey as xt}from"efficient-easel/draw";import{jsx as lq}from"react/jsx-runtime";import{phoneKey as nu}from"efficient-easel/draw";var OR={name:"sectionGroupAllow",applies:e=>xf.includes(e),panel(e,o,t,r){let a=e.fields?.sections;a&&(a.allow=[...r.sectionGroupAllow])}},Rg=new Set(Object.keys(wt)),ER={name:"openSlotDisallow",applies:()=>!0,panel(e,o,t,r){let a=r.contentSectionKeys;if(e?.fields)for(let n of Object.values(e.fields)){let s=n;if(s.type!=="slot"||s.allow)continue;let l=o==="Flex"?a.filter(i=>!Rg.has(i)):a;s.disallow=Array.from(new Set([...s.disallow??[],...l]))}}};var AR=Array.from(new Set([...mb.map(e=>e.type),...Rg]));function Dg(e,o){return AR.includes(e)||o?.sitsInBox===!0}var iq=Array.from(new Set([...AR,...id,"GalleryItem"])),dq={not:{context:"parentOffersPositions",is:!1}},fq={not:{context:"parentTileSlot",is:!1}},_R=[dx,nu("gridSpan"),nu("gridRowSpan")],FR={name:"cellWidth",applies:(e,o,t)=>(iq.includes(e)||Dg(e,t))&&!!t&&typeof t.render=="function",panel(e,o,t){let r=t.cellWidthFields;e.fields={...e.fields,...r()};let a=Object.keys(r());e.fields=No(e.fields??{},a.filter(n=>!_R.includes(n)),dq),e.fields=No(e.fields??{},_R,fq)},draw(e){let o=e.render;e.render=t=>{let r=GC(t.gridSpan),a=qC(t.gridRowSpan),n=YC(t[dx]),s=ZC(t[nu("gridSpan")]),l=JC(t[nu("gridRowSpan")]),i=o(t);if(r==null&&a==null&&n==null&&s==null&&l==null)return i;let d={};r!=null&&(d[KC]=String(r)),a!=null&&(d[VC]=String(a)),s!=null&&(d[QC]=String(s)),l!=null&&(d[ek]=String(l));let f=n!=null?{[XC]:n}:void 0;return lq(de,{className:"sf-grid-cell",style:f,...d,children:i})}}};function BR(e,o){let t=e.props?.id,r=o.appState?.data?.content;return!Array.isArray(r)||typeof t!="string"?!0:!r.some(a=>a?.props?.id===t)}var xi={not:{context:"heldByANode",is:!0}};function su(e,o){return"parent"in o?o.parent!=null:!!Kt(o.appState,e.props?.id)}function Kt(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 rn(s??{})){let i=r(l,s);if(i!==void 0)return i}}};return r(t,null)}var pq=new Set(["Text","Heading"]),uq=new Set(["h1","h2","h3","h4","h5","h6"]);function LR(e,o){return e==="Heading"?!0:e!=="Text"?!1:typeof o.tag=="string"&&uq.has(o.tag)?!0:Tr(o,"text").textStyle?.startsWith("heading-")===!0}var Ur={not:{context:"blockOutsideBox",is:!0}},RR={all:[Ur,{not:{context:"boxSharesWidth",is:!0}}]},DR={all:[Ur,{not:{context:"boxSharesWidthPhone",is:!0}}]},NR={all:[Ur,{not:{context:"boxSharesWidthTablet",is:!0}}]};function $R(e,o,t){return{any:[{field:xt(e),is:o},{all:[{field:xt(e),set:!1},t??{field:e,is:o}]}]}}function zR(e,o,t){return{any:[{field:Ot(e),is:o},{all:[{field:Ot(e),set:!1},t??{field:e,is:o}]}]}}var UR={any:[{field:"textFit",is:"shrink"},{all:[{field:"textFit",set:!1},{not:{context:"textWrapsByDefault",is:!0}}]}]},mq=[[["_gBlockSize","minWidth",xt("minWidth"),Ot("minWidth"),"maxWidth",xt("maxWidth"),Ot("maxWidth")],Ur],[["widthFit"],RR],[[xt("widthFit")],NR],[[Ot("widthFit")],DR],[["width"],{all:[RR,{field:"widthFit",is:"fixed"}]}],[[xt("width")],{all:[NR,$R("widthFit","fixed")]}],[[Ot("width")],{all:[DR,zR("widthFit","fixed")]}]],MR=$R("textFit","shrink",UR),HR=[[["_gText","textFit",xt("textFit"),Ot("textFit")],Ur],[["minFont"],{all:[Ur,UR]}],[[xt("minFont")],{all:[Ur,MR]}],[[Ot("minFont")],{all:[Ur,zR("textFit","shrink",MR)]}]],lu=(e,o)=>Kt(o.appState,e.props?.id),iu=e=>!!e&&typeof e.type=="string"&&dd(e.type)!==null,Ng=e=>(e.type==="Flex"||e.type==="HeroGroup")&&Tn(e.type,e.props?.direction)==="row",Mg=e=>{let o=cq(e);return o!==void 0&&o!=="fit"},xq={blockOutsideBox:(e,o)=>!iu(lu(e,o)),boxSharesWidth:(e,o)=>{let t=lu(e,o);return!iu(t)||!Ng(t)?!1:Wm({...t.props,direction:"row"})!==""?!0:Hm(t.props?.share)!==""&&!Mg(e.props?.widthFit)},boxSharesWidthTablet:(e,o)=>{let t=lu(e,o);if(!iu(t)||!Ng(t))return!1;if(rw(t.props?.[xt("columns")])!==""||Wm({...t.props,direction:"row"})!=="")return!0;let r=tw(t.props?.[xt("share")])??t.props?.share;return Hm(r)!==""&&!Mg(e.props?.[xt("widthFit")]??e.props?.widthFit)},boxSharesWidthPhone:(e,o)=>{let t=lu(e,o);if(!iu(t)||!Ng(t))return!1;let r=t.props?.phoneRow;return(Number(r)===2||Number(r)===3)&&!aw(r,t.props?.[Ot("share")])&&!Mg(e.props?.[Ot("widthFit")]??e.props?.widthFit)}},hq=e=>/^_[gds][A-Z]/.test(e);function Iq(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&&!hq(r[n][0]);)n++;return Object.fromEntries([...r.slice(0,n),...Object.entries(t),...r.slice(n)])}function WR(e,o,t){let r=Object.entries(e);return Object.fromEntries([...r.slice(0,o),...Object.entries(t),...r.slice(o)])}function gq(e,o,t){let r=Object.keys(o);if(r.includes("_dSize")){let{_gBlockSize:a,...n}=t;return WR(o,r.indexOf("_dSize")+1,n)}return yq.has(e)&&r.includes("_gSpacing")?WR(o,r.indexOf("_gSpacing"),t):{...o,...t}}var yq=new Set(["Text","Heading"]);function Sq(e,o){let{_gText:t,...r}=o;return Iq(e,"_gText",r)??{...e,...o}}function bq(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",xt("textFit"),Ot("textFit")])a in r&&(r[a]=e[a]);o.set(t,r)}return r}}var jR={name:"blockSize",applies:(e,o,t)=>Dg(e,t)&&!!t&&typeof t.render=="function",panel(e,o,t){let r=pq.has(o),{text:a}=t.blockSizeFields(r?{tablet:!0,textFit:o==="Heading"?"shrink":"wrap"}:{}),{size:n}=t.blockSizeFields({tablet:!0}),s=gq(o,e.fields??{},et(n,mq));if(r){let l=et(a,HR);if(s=Sq(s,l),o==="Text"){let i=et(t.blockSizeFields({tablet:!0,textFit:"shrink"}).text,HR),d=bq(i),f=e.resolveFields,x=(u,h)=>{let I=f?f(u,h):h.fields,S=v=>LR(o,u?.props??{})?d(v??h.fields):v;return I instanceof Promise?I.then(S):S(I)};e.resolveFields=x}}e.fields=s,Dt(e,{...xq,textWrapsByDefault:l=>!LR(o,l.props??{})})},draw(e,o){wq(e,o)}};function wq(e,o){let t=e.render;e.render=r=>{let a=lp(r),n=fI(a),s=t(r),l=n&&fI(a,{atSectionLine:!0});return n===null?s:Hg(Cq,{size:n,sectionSize:l??n,atEdge:o===K,canvasAttrs:r.editor?.isEditing?E1(a):GR,inCell:O1(a),fillsPhone:v1(a),widens:_1(a),children:s})}}var GR={};function Cq({size:e,sectionSize:o,atEdge:t,canvasAttrs:r,inCell:a,fillsPhone:n,widens:s,children:l}){let i=tf(),d=kr(t?"edge":"by-box"),f=d?e:o,x=f.className,u=i?.phoneCells===!0,h=n&&i?.phoneRowFits===!0,I=s?Hg(xE,{children:l}):l;return Hg(vr,{className:[x,u?a:"",h?k1:""].filter(Boolean).join(" "),...Object.keys(f.style).length?{style:f.style}:{},attrs:d&&r!==GR?{...f.attrs,...r}:f.attrs,children:I})}import{Fragment as Rq,jsx as pu}from"react/jsx-runtime";import{jsx as Po,Fragment as Ug}from"react/jsx-runtime";import{createContext as us,useContext as Et}from"react";var kq=new Set(["Flex","Grid"]);function jr(e){return typeof e=="string"&&kq.has(e)}var Ma="contentWidth",Wg="full",$g="content";function Ii(e){let o=e?.[Ma];return o===Wg?!1:o===$g?!0:void 0}function KR(e,o){return e&&!o}function du(e){return e.loop==="scroll"&&e.direction!=="tabs"&&e.direction!=="accordion"&&!qk(e)&&!jA(e.scrollDirection)}function hi(e,o){return jr(e)&&du(tl(o,!1))?In({}):In(o)}function fu(e,o){return typeof e!="string"||!Nd(e)||Gs[e]==="rawMarkup"?hi(e,o).background??"full":hi(e,o).background??Md(o).background}function cu(e){return e!=="full"}function qR(e,o,t){if(!Array.isArray(e)||typeof o!="string")return;let r=(a,n,s,l,i)=>{for(let d of a){let f=d?.props??{};if(f.id===o)return n;let x=jr(d?.type),u=(l?hi(d?.type,f).content:null)==="content"?!0:s,h=x&&(n.inBox?Ii(f)??u:u),I={insideGutter:n.insideGutter||h||x&&du(tl(f,i)),inBox:n.inBox||x};for(let S of Lt({type:d?.type,props:f})){let v=f[S],O=r(v,I,u,!1,i||ra(d?.type,S));if(O!==void 0)return O}}};return r(e,{insideGutter:!1,inBox:!1},t,!0,!1)}var vq=" [--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))))]",Pq="[--sf-edge-g:0px] [--sf-edge-al:var(--sf-edge-l)] [--sf-edge-ar:var(--sf-edge-r)]",Tq="[--sf-edge-l:var(--sf-edge-ld,0px)] [--sf-edge-r:var(--sf-edge-rd,0px)] max-view-desktop:[--sf-edge-l:var(--sf-edge-lt,var(--sf-edge-ld,0px))] max-view-desktop:[--sf-edge-r:var(--sf-edge-rt,var(--sf-edge-rd,0px))] max-view-wide:[--sf-edge-l:var(--sf-edge-lp,var(--sf-edge-lt,var(--sf-edge-ld,0px)))] max-view-wide:[--sf-edge-r:var(--sf-edge-rp,var(--sf-edge-rt,var(--sf-edge-rd,0px)))]",VR="max-w-[100vw]",Oq=`ml-[calc(-1_*_(var(--sf-edge-g)_+_var(--sf-edge-al)))] mr-[calc(-1_*_(var(--sf-edge-g)_+_var(--sf-edge-ar)))] w-[calc(100%_+_2_*_var(--sf-edge-g)_+_var(--sf-edge-al)_+_var(--sf-edge-ar))] ${VR}`;function YR(e,o=!1){let t={},r=e.pad??{},a=wk({left:r.left,right:r.right},{left:r.leftPhone,right:r.rightPhone},{left:r.leftTablet,right:r.rightTablet},{left:r.left,right:r.right},{desktop:r.unit,tablet:r.unitTablet,phone:r.unitPhone},0,e.site?"site":"box"),n=a.style;for(let[f,x]of[["l","paddingLeft"],["r","paddingRight"]]){let u=n[x];u!==void 0&&(t[`--sf-edge-${f}d`]=typeof u=="number"?`${u}px`:String(u));let h=n[`--sf-pad-${f}-tablet`],I=n[`--sf-pad-${f}-phone`];h!==void 0&&(t[`--sf-edge-${f}t`]=String(h)),I!==void 0&&(t[`--sf-edge-${f}p`]=String(I))}let s=yr(e.site?"site":"box"),l=a.classes.includes(s.className.split(" ")[0]),i=e.gutter?`${s.className} ${s.edge}${vq}`:`${Pq}${l?` ${s.className}`:""}`,d=o?` ${wC}${e.gutter?` ${CC}`:""}`:"";return{className:`${i} ${Tq}${d}`,style:t}}function i0e(e,o=!1){let{className:t,style:r}=YR(e,o);return{className:`${t} ${Oq}`,...Object.keys(r).length?{style:r}:{}}}var Eq="[--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 _q="--sf-edge-beyond";function XR(e){return`max(0px,calc((${e===null?js:`min(${js},${e})`} - ${Mo}) / 2))`}var Aq=`${Eq} ml-[calc(-1_*_(var(--sf-edge-g)_+_var(--sf-edge-al)_+_var(--sf-edge-bl)))] mr-[calc(-1_*_(var(--sf-edge-g)_+_var(--sf-edge-ar)_+_var(--sf-edge-br)))] w-[calc(100%_+_2_*_var(--sf-edge-g)_+_var(--sf-edge-al)_+_var(--sf-edge-ar)_+_var(--sf-edge-bl)_+_var(--sf-edge-br))] pl-[calc(var(--sf-edge-g)_+_var(--sf-edge-al)_+_var(--sf-edge-bl))] pr-[calc(var(--sf-edge-g)_+_var(--sf-edge-ar)_+_var(--sf-edge-br))] ${VR}`;function d0e(e){let{className:o,style:t}=YR(e);return{className:`${o} ${Aq}`,style:{...t,[_q]:e.beyond??"0px"}}}var gi=us(!1);function S0e(){return Et(gi)}function b0e({children:e}){return Po(gi.Provider,{value:!0,children:e})}var zg=us(!1);function jg({children:e}){return Po(zg.Provider,{value:!0,children:e})}var ZR=us(null);function Gg({ground:e,children:o}){return Po(ZR.Provider,{value:e,children:o})}var Kg=us(!1);function Fq(){return Et(Kg)}function JR({atTop:e,nested:o}){return Po(Ug,{children:Fq()?o:e})}var yi=us(void 0);function QR({children:e}){return Po(yi.Provider,{value:null,children:e})}function qg(){return Et(yi)===void 0&&!Et(Kg)&&!Et(gi)}function ms({own:e,followed:o}){return Po(Ug,{children:qg()?e():o()})}var eD=us(null);function oD({value:e,children:o}){return Po(eD.Provider,{value:e,children:o})}function tD({draw:e}){return Po(Ug,{children:e(Et(eD))})}function w0e(){return Et(yi)??null}function rD({contained:e,framedClass:o,fillClass:t,columnClass:r,style:a,tabLabel:n,pad:s,border:l,outerAttrs:i,box:d=!1,edge:f=!1,outerStyle:x,outerClass:u,bleed:h=!1,siteSide:I=!1,part:S,children:v}){let O=Et(gi),R=vt(),T=R?` ${yr(I?"site":"box").onceFrame}`:"",g=Et(zg),w=KR(e,O),_=w&&!g,E=at(),D=!!(l&&_),b=D?u:Co(u??"",E.className)||void 0,F=D||!E.className?i:{...i,...E.attrs},y=s?aa(s,_):null,k=y&&R?{root:y.root?{...y.root,className:ot(y.root.className,!0)}:null,outer:y.outer?{...y.outer,className:ot(y.outer.className,!0)}:null}:y,P=k?.root??null,C=l&&!_?l:null,B=d&&!h?R?`${rx} ${SC(I?"site":"box")}`:rx:null,H=[_?`${o}${T}`:t,_?B:null,P?.className,C?Ik:null].filter(Boolean).join(" "),q=Bq(h&&_,P||C?{...a,...P?.style,...C}:a),$=Et(yi),le=Et(ZR),pe=d&&f&&$===void 0?{gutter:w,...s?{pad:s.values}:{},beyond:w&&g?XR(le):"0px",...I&&w?{site:!0}:{}}:null,ee=d?Po(Kg.Provider,{value:!0,children:Po(yi.Provider,{value:pe,children:v})}):v,xe=w?Po(gi.Provider,{value:!0,children:ee}):ee,oe=k?.outer??null,ie=F&&Object.keys(F).length>0?F:null,ge=Po("div",{...oe?null:ie,className:!oe&&b?H?`${H} ${b}`:b:H,style:oe||!x?q:{...q,...x},"data-tab-label":n,...oe?null:S,children:g?Po(zg.Provider,{value:!1,children:w&&!h?Po("div",{className:B?`${r}${T} ${B}`:`${r}${T}`,children:xe}):xe}):xe}),Re=oe?Po("div",{...ie,className:b?`${oe.className} ${b}`:oe.className,style:x?{...oe.style,...x}:oe.style,...S,children:ge}):ge;return E.scope(l&&_?Po("div",{className:Co(Vd,E.className),style:{display:"contents",...l},...E.attrs,children:Re}):Re)}function Bq(e,o){return e?{...o,paddingLeft:0,paddingRight:0}:o}import{jsx as Lq}from"react/jsx-runtime";function aD({children:e}){return Lq(de,{className:KA,children:e})}function Dq({side:e,children:o}){return qg()?pu(aD,{children:pu(de,{className:qA(e),children:o})}):pu(Rq,{children:o})}var nD={name:"boxJoin",applies:(e,o,t)=>e===K&&!!t&&typeof t.render=="function",draw(e){let o=e.render;e.render=t=>{let r=Bp(t.join);return r?pu(Dq,{side:r,children:o(t)}):o(t)}}};var sD=(e,o)=>e.fields?.[o]?.type==="slot",Nq=(e,o)=>sD(o,Pe)||Td(e).some(t=>sD(o,t)),lD={name:"cardTemplateOnInsert",applies:(e,o,t)=>Nq(e,t),panel(e,o){let t=e.resolveData;e.resolveData=(r,a)=>{let n=r.props??{},s=a?.trigger,l=s==="insert"?Cd(o,n):s==="copy"?wd(o,n):n,i=l===n?r:{...r,props:l};return t?t(i,a):i}}};import{jsx as bi}from"react/jsx-runtime";import{Fragment as Ha,jsx as We,jsxs as Vg}from"react/jsx-runtime";import{createContext as Yg,useContext as Gr,useId as Uq}from"react";import{REPEAT_ATTRIBUTE as jq,REPEAT_INDEX_ATTRIBUTE as Gq}from"efficient-easel/draw";import{jsx as $0e}from"react/jsx-runtime";import{createContext as Wq,useContext as cD,useMemo as $q}from"react";var iD="title";function dD(e){return`${e}Alt`}function Mq(e){let o=e.find(t=>typeof t?.url=="string");return{url:o?.url??"",alt:typeof o?.alt=="string"?o.alt:""}}function fD(e,o){let t={[iD]:typeof e.title=="string"?e.title:""};for(let{key:r,kind:a}of e.schema??[]){let n=e.fields?.[r];if(a==="text"&&typeof n=="string")t[r]=n;else if(a==="date"&&typeof n=="string")t[r]=n&&o?o(n):n;else if(a==="images"&&Array.isArray(n)){let{url:s,alt:l}=Mq(n);t[r]=s,t[dD(r)]=l}}return t}function Hq(e,o){return typeof o!="string"?o.flatMap(t=>Hq(e,t)):e===wf||!vP(e)?[]:o==="image"?Px(e,["images"]).map(t=>({key:t.key,label:t.label,kind:"image",alt:dD(t.key)})):o!=="text"?[]:[{key:iD,label:c("Title")},...Px(e,["text","date"]).map(t=>({key:t.key,label:t.label}))]}var pD=Wq(null);function zq(){return cD(pD)?.record??null}function G0e(e){let o=zq();return o!==null&&o.type===e?o:null}function uD(){let e=cD(pD);return $q(()=>e&&e.record.type!==wf?fD(e.record,e.dateWords):null,[e])}function aOe({props:e,editing:o,children:t}){let r=Gr(Si);return!o&&Xm(e,r?.row)?null:We(Ha,{children:t})}var mu=Yg(null);function nOe({field:e,children:o}){let t=Gr(mu);return We(Ha,{children:o(t&&t.field===e?t.id:void 0)})}function Kq(e,o){return e?.find(t=>!!o[t.field]?.trim()&&!t.gates.some(r=>Xm({[tn]:r},o)))?.field??""}var Si=Yg(null),uu=Yg(null),qq={label:"text-[length:var(--size-label,12px)]"},Vq=`flex min-h-6 items-center border border-dashed border-line px-2 py-1 ${qq.label} text-fg-dim`;function sOe({name:e,label:o,editing:t}){let r=Gr(uu)?.(e),a=ef()!=="";return r!=null&&r!==!1?a?We(de,{className:"contents",children:r}):We(Ha,{children:r}):t?We(de,{className:Vq,children:c("Shown by the section: {name}",{name:o?.trim()||e})}):null}function lOe(){return Gr(Si)}function Xg({type:e,props:o,children:t}){let r=Gr(Si),a=uD(),n=r?.row??a;return We(Ha,{children:t(Ew(e,o,n,r?.ownerType,r?.fields,r?.slot),r,n)})}function Yq({attrs:e,selected:o,hover:t,action:r,titleField:a,children:n}){let s=Uq(),{press:l,disabled:i}=r,d=r.label?.trim(),f=!d&&a?{id:`${s}-title`,field:a}:null;return Vg("div",{...e,id:s,className:t&&!i?`${yh} ${PE}`:yh,children:[We("button",{type:"button",[EE]:"",className:i?FE:AE,"aria-pressed":o,...d?{"aria-label":d}:{"aria-labelledby":f?.id??s},...i?{"aria-disabled":!0,tabIndex:-1}:null,onClick:i?void 0:l}),We(mu.Provider,{value:f,children:n})]})}function iOe({ownerId:e,ownerType:o,slot:t=Pe,Template:r,rows:a,items:n,fields:s,states:l,stateLine:i,actions:d,pressTitles:f,previewHover:x,fallback:u,copyAttrs:h,wrapCopy:I,rowKey:S,hostParts:v,children:O}){let R=Gr(Si),T=Gr(mu),g=Gr(uu);if(!r||(r.blockCount??0)<=0)return We(Ha,{children:u});let w=R!==null,_=Cw(o),E=x??R?.previewHover,D=r.blockCount===1?We(zk,{children:We(r,{className:Bk})}):We(r,{}),b=new Set,F=(k,P)=>{if(!S)return P;let C=S(k,P);for(;b.has(C);)C=`${C}#${P}`;return b.add(C),C},y=a.map((k,P)=>{let C=l?.[P],B={row:k,index:P,ownerType:o,slot:t,item:n?.[P],nested:w,...s?{fields:s}:null,...C?{state:C}:null,..._?{linesBetween:_}:null,...E?{previewHover:E}:null},H=jh(C)?Vg(Ha,{children:[D,i==="under"?We("span",{"aria-hidden":"true",className:wE}):Uh(C)?Vg("span",{"aria-hidden":"true",className:CE,children:[We("span",{className:kE}),We("span",{className:vE})]}):We("span",{"aria-hidden":"true",className:bE})]}):D,q={[jq]:`${e}:${t}`,[Gq]:P,...typeof h=="function"?h(B):h},$=d?.[P],le=TE(C,i),pe=$?We(Yq,{attrs:{...q,...le},selected:C?.selected===!0,hover:i!=="under",action:$,titleField:Kq(f,k),children:H}):T?We("div",{...q,...le,children:We(mu.Provider,{value:null,children:H})}):We("div",{...q,...le,children:H}),ee=I?I(pe,B):pe;return We(Si.Provider,{value:B,children:v?We(uu.Provider,{value:xe=>v(B,xe),children:ee}):g?We(uu.Provider,{value:null,children:ee}):ee},F(B,P))});return We(Ha,{children:O(y)})}var mD={name:"clickableParts",applies:(e,o,t)=>typeof t?.render=="function"&&e!==ro&&e!==un,draw(e,o,t){let r=e,a=()=>r.textParts??r.fields,n=r.partSizeCaps,s=r.render,l=t.inspector?.PartAnchors,i=(d,f)=>mv(a(),f,x=>Tw(o,d,x));r.render=d=>{let f=Tv(d),x=HO(d);return d.editor?.isEditing&&l?bi(Xg,{type:o,props:d,children:u=>bi(l,{needles:i(d,u),styles:f,motions:x,type:o,sizeCaps:n,children:bi(FL,{value:n,children:s(d)})})}):!Object.keys(f).length&&!Object.keys(x).length?s(d):bi(Xg,{type:o,props:d,children:u=>bi(KO,{needles:i(d,u),styles:f,motions:x,type:o,atEdge:o===K,sizeCaps:n,children:s(d)})})}}};import{jsx as xD}from"react/jsx-runtime";var hD={name:"sectionCorners",applies:(e,o,t)=>o.isSection(e)&&!!t&&typeof t.render=="function",panel(e,o,t){e.fields={...e.fields,...t.sectionShapeFields()}},draw(e){let o=e.render;e.render=t=>{let r=hk(t.sectionCorners,t.sectionCornerSides,t.sectionCornersUnit),a=o(t);return r?xD(de,{className:"sf-section-corners",style:{display:"contents",...r},children:a}):a}}},Zg=["CollectionCard"],ID={name:"cardCorners",applies:(e,o,t)=>Zg.includes(e)&&!!t&&typeof t.render=="function",panel(e,o,t){e.fields={...e.fields,...t.cardShapeFields()}},draw(e){let o=e.render;e.render=t=>{let r=$P(t.cardCorners,t.cardCornerSides,t.cardCornersUnit),a=o(t);return r?xD(de,{className:"sf-card-corners",style:{display:"contents",...r},children:a}):a}}};var gD={name:"emptyHeadings",applies:()=>!0,panel(e,o,t){let r=t.dropEmptyHeadings,a=e.resolveFields;e.resolveFields=a?(n,s)=>{let l=a(n,s);return l instanceof Promise?l.then(i=>r(i??s.fields)):r(l??s.fields)}:(n,s)=>r(s.fields)}};var yD={name:"showWhenRows",applies:()=>!0,panel(e,o,t){let r=t.rowsShownForNode,a=e.showWhenFacts??{},n=e.resolveFields;e.resolveFields=n?(s,l)=>{let i=n(s,l);return i instanceof Promise?i.then(d=>r(d??l.fields,s,l,a)):r(i??l.fields,s,l,a)}:(s,l)=>r(l.fields,s,l,a)}};import{jsx as SD,jsxs as Xq}from"react/jsx-runtime";var Zq="Flex",bD=(e,o)=>e[o]!==void 0&&e[o]!==!1&&!e.editor?.isEditing,wD={name:"headCore",applies:(e,o,t)=>typeof t?.render=="function",draw(e){let o=e.render;e.render=t=>bD(t,Ml)?SD(de,{className:Nc,children:t[Ml]==="empty"?null:o(t)}):o(t)}},CD={name:"headBox",applies:(e,o,t)=>e===Zq&&typeof t?.render=="function",draw(e){let o=e.render;e.render=t=>bD(t,Nl)?Xq(de,{className:Mc,children:[SD(Hc,{}),o(t)]}):o(t)}};import{createElement as Jq}from"react";var kD={name:"hiddenNodes",applies:(e,o,t)=>typeof t?.render=="function",draw(e,o,t){let r=o===K?"edge":t.isSection(o)?"section":"by-box",a=e.render;e.render=n=>{if(or(n))return null;let s=sl(n),l=Wk(s,Yv(n),{sectionClassName:sl(n,{atSectionLine:!0}),line:r});return Jq(Nk.Provider,{value:l},a(n))}}};import{jsx as t9}from"react/jsx-runtime";import{createContext as PD,createElement as vD,useContext as Qq}from"react";var TD=PD(null),e9=PD(!1),NOe=TD.Provider;function o9(e,o,t){return e===void 0||e===""||o===null||o.length===0||!t.includes(e)?!0:o.includes(e)}function OD({name:e,editing:o,children:t}){let r=Qq(TD);return o||o9(e,r?.selected??null,r?.known??[])?t:vD("div",{hidden:!0,style:{display:"none"}},vD(e9.Provider,{value:!0},t))}var r9="Flex",ED={name:"showFor",applies:(e,o,t)=>e===r9&&typeof t?.render=="function",draw(e){let o=e.render;e.render=t=>{let r=XE(t[Kn])?.name;if(r===void 0)return o(t);let a=!!t.editor?.isEditing;return t9(OD,{name:r,editing:a,children:o(t)})}}};var _D=kf.mediaFields,a9=e=>LP(e)?e.src:e;function n9(e,o){let t=o;for(let r of z(_D,e)??[])t=RP(t,r,a9);return t}var AD={name:"mediaValues",applies:(e,o,t)=>typeof t?.render=="function"&&(z(_D,e)?.length??0)>0,draw(e,o){let t=e.render;e.render=r=>t(n9(o,r))}};import{jsx as wi,Fragment as FD,jsxs as BD}from"react/jsx-runtime";var s9="!grow-0 !shrink-0 !basis-0",l9=["[.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(" "),i9="flex flex-col w-full min-w-0 [&>*]:grow";function LD({anchor:e}){let o=da(e),t=kr(),r=ef();return o?wi("span",{id:o,className:Co(t?`sf-section-anchor ${s9} ${l9}`:"sf-section-anchor",r),"aria-hidden":"true"}):null}function d9({anchor:e,copiesInBox:o,children:t}){let r=tf()?.columnsRow===!0,a=$k(),n=da(e)!=="";return o?wi(FD,{children:t}):r&&!a&&n?BD(de,{className:i9,children:[wi(LD,{anchor:e}),t]}):BD(FD,{children:[wi(LD,{anchor:e}),t]})}var RD={name:"sectionAnchor",applies:(e,o,t)=>o.isSection(e)&&!!t&&typeof t.render=="function",panel(e,o,t){let r=t.anchorFields;e.fields={...e.fields,...r()}},draw(e,o){e.defaultProps={...e.defaultProps,anchor:""};let t=e.render;e.render=r=>wi(d9,{anchor:r.anchor,copiesInBox:Yo(o,r),children:t(r)})}};import{jsx as f9}from"react/jsx-runtime";var DD=Object.fromEntries(Ub.map(e=>[e,"picture"])),c9={[K]:"box",Ticker:"marquee",...Object.fromEntries(ud.map(e=>[e,"cards"])),...DD},ND=(e,o)=>!Ud.has(e)&&!!o&&typeof o.render=="function";function MD(e,o,t,r){e.fields={...e.fields,...t.animationTabFields(o,r)}}function HD(e,o){let t=e,r=t.render;t.render=a=>{let n=Sn(a);return!n||Yo(o,a)?r(a):f9(kc,{views:n,editing:!!a.editor?.isEditing,takesViewHide:!0,atEdge:o===K,children:r(a)})}}var WD={name:"sectionAnimation",applies:(e,o,t)=>o.isSection(e)&&ND(e,t),panel:(e,o,t)=>MD(e,z(c9,o)??"section",t,o),draw:(e,o)=>HD(e,o)},$D={name:"blockEntrance",applies:(e,o,t)=>!o.isSection(e)&&ND(e,t),panel:(e,o,t)=>MD(e,z(DD,o)??"block",t,o),draw:(e,o)=>HD(e,o)};import{jsx as p9}from"react/jsx-runtime";var zD=(e,o)=>!Ud.has(e)&&!!o&&typeof o.render=="function";function u9(e){let o=vh.filter(t=>t.block===e);return o.length===1?o[0].focus:void 0}function UD(e,o){let t=e,r=t.render,a=u9(o),n=e.drawsPictures===!0;t.render=s=>{let l=zn(s);return!l||Yo(o,s)?r(s):p9(Kc,{views:l,...a?{origins:NO(s,a)}:{},takesViewHide:!0,atEdge:o===K,zoomInside:n?"picture":"layer",children:r(s)})}}var jD={name:"sectionScroll",applies:(e,o,t)=>o.isSection(e)&&zD(e,t),draw:(e,o)=>UD(e,o)},GD={name:"blockScroll",applies:(e,o,t)=>!o.isSection(e)&&zD(e,t),draw:(e,o)=>UD(e,o)};import{jsx as m9}from"react/jsx-runtime";import{createElement as x9}from"react";var Jg=["sectionHeightMode","sectionHeightModeTablet","sectionHeightModePhone"];function h9(e,o){let t=e.props??{};return Jg.some(r=>t[r]==="fill")?!0:("parent"in o?o.parent:Kt(o.appState,t.id))?.type===K}var Qg={name:"sectionHeight",applies:(e,o,t)=>o.isSection(e)&&!Fk.has(e)&&!!t&&typeof t.render=="function",panel(e,o,t){let r=t.heightFields;e.fields={...e.fields,...r()};let a=r({fill:!0}),n=new WeakMap,s=i=>{if(!i||!Jg.some(f=>f in i))return i;let d=n.get(i);if(!d){d={...i};for(let f of Jg)f in d&&(d[f]=a[f]);n.set(i,d)}return d},l=e.resolveFields;e.resolveFields=(i,d)=>{let f=l?l(i,d):d.fields,x=u=>h9(i??{},d)?s(u??d.fields):u;return f instanceof Promise?f.then(x):x(f)}},draw(e,o){let t=e.render;e.render=r=>{if(Yo(o,r))return t(r);let a=Dk(r);return a?m9(vr,{className:a.className,style:a.style,...o===K?{attrs:Zb}:null,children:t(r)}):t(r)}}},KD={name:"sectionHeightFillRoot",applies:Qg.applies,draw(e,o){let t=e.render;e.render=r=>{let a=Yo(o,r)?null:Hk(Rk(r),Lk(r).join(" "));return x9(Mk.Provider,{value:a},t(r))}}};import{jsx as xu}from"react/jsx-runtime";import{PIN_ATTR as qD,PIN_FRAME_ATTR as I9}from"efficient-shell/format";var YD=ZD("sectionSticky",(e,o,t)=>o.isSection(e)&&!uk.has(e)&&!!t&&typeof t.render=="function",!0),XD=ZD("cardSticky",(e,o,t)=>Zg.includes(e)&&!!t&&typeof t.render=="function",!1);function ZD(e,o,t){return{name:e,applies:o,panel(r,a,n){let s=cx.has(a);r.fields=y9(r.fields??{},et(n.stickFields({intro:s,screens:t,above:t}),S9(s))),t&&Dt(r,{heldByANode:su})},draw(r,a){let n=r.render,s=cx.has(a);r.render=l=>{let i=px(l,{atScreenTop:s,above:t});if(!i)return n(l);let d=x=>{let u=xu(af,{children:n(l)});return xu(de,{...x.attrs,style:x.style,children:x.attrs[qD]===""?xu("div",{[I9]:"",children:u}):u})},f=t?px(l,{atScreenTop:s,track:t,above:!0}):i;return!f||f.attrs[qD]!==""?d(i):xu(ms,{own:()=>d(f),followed:()=>d(i)})}}}}var VD=[St,ls],g9="_gStick";function y9(e,o){let t=Object.keys(e),r=e[$n];if(!r){let O=t.findIndex(R=>VD.includes(R));return O<0?{...e,...o}:Object.fromEntries([...t.slice(0,O).map(R=>[R,e[R]]),...Object.entries(o),...t.slice(O).map(R=>[R,e[R]])])}let{[g9]:a,...n}=o,s=O=>O.startsWith(bn),l=Object.entries(n).filter(([O])=>!s(O)),i=Object.entries(n).filter(([O])=>s(O)),d=[r.dot,a?.dot].filter(O=>!!O),f=t.indexOf($n),x=t.findIndex((O,R)=>R>f&&VD.includes(O)),u=x<0?t.length:x,h=t.indexOf(vc),I=h>f&&h<u?h:u,S=O=>[O,O===$n?{...r,dot:{any:d}}:e[O]],v=[...t.slice(0,I).map(S),...l,...t.slice(I,u).map(S),...i,...t.slice(u).map(S)];return Object.fromEntries(v)}function S9(e){let o=i=>({field:i,in:[!0,!1]}),t=i=>e&&i==="stickTop"?{any:[{field:i,is:!0},mk]}:{field:i,is:!0},r=i=>({field:i,is:!0}),a=i=>({all:[i,xi,{not:{field:Js,is:!0}}]}),[n,s,l]=dk;return[[["stickTopDistance"],t("stickTop")],[["stickTopDistanceTablet"],Qt(["stickTopTablet","stickTop"],o,t)],[["stickTopDistancePhone"],Qt(["stickTopPhone","stickTopTablet","stickTop"],o,t)],[[n],a(r("stickTop"))],[[s],a(Qt(["stickTopTablet","stickTop"],o,r))],[[l],a(Qt(["stickTopPhone","stickTopTablet","stickTop"],o,r))],[[Kd],qd],[[Js],qd],[[ck],a(qd)]]}import{jsx as b9}from"react/jsx-runtime";var JD={name:"sectionBorder",applies:(e,o,t)=>o.isSection(e)&&!!t&&typeof t.render=="function",draw(e,o){if(yc.has(o))return;let t=e.render;e.render=r=>{let a=Sk(r.sectionBorder,r.sectionBorderPhone,r.sectionBorderTablet,yk(r)),n=t(r);return a?b9(de,{className:Vd,style:{display:"contents",...a},children:n}):n}}};import{jsx as ey}from"react/jsx-runtime";var QD={name:"sectionTheme",applies:(e,o,t)=>o.isSection(e)&&!iC.has(e)&&!!t&&typeof t.render=="function",panel(e,o,t){let{sectionThemeFields:r,SECTION_THEME_FOLLOW_LABEL:a}=t,n=ox.has(o);e.fields={...e.fields,...n?r(Bd,a):r()}},draw(e,o){let t=ox.has(o),r=e.render;e.render=a=>{let n=fC(t?{...a,sectionAccent:Bd(a.sectionAccent)}:a),s=r(a);if(!n)return s;let l=d=>ey(vr,{className:n.className,style:d,children:s}),i=n.style;return Yo(o,a)?ey("div",{className:n.className,style:{...i,display:"contents"},children:s}):fu(o,a)!=="content"?l(i):ey(ms,{own:()=>l({...i,...Us(Mo)}),followed:()=>l(i)})}}},eN={name:"slideTheme",applies:e=>e==="HeroSlide",panel(e,o,t){let{sectionThemeFields:r,BLOCK_THEME_FOLLOW_LABEL:a}=t;e?.fields&&(e.fields={...e.fields,...r(Bd,a)})}};import{jsx as Ke}from"react/jsx-runtime";var oN=null;function oy(e){oN=e}function tN(){return oN}import{jsx as w9}from"react/jsx-runtime";var C9="mx-auto w-full max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)]",rN=yr("box").frame,Ci=`${C9} ${rN}`,k9=yr("site").frame,v9=yr("none").frame;function o_e(e){let o=e===!0?"site":e===!1?"box":e;return o==="none"?v9:o==="site"?k9:rN}var P9="mx-auto w-full max-w-[1280px] px-[60px]",T9="max-[960px]:px-6",t_e=`${P9} ${T9}`;function r_e({contained:e,className:o="",style:t,pad:r,fillWidth:a="w-full",part:n,children:s}){return w9(rD,{contained:e,framedClass:`${Ci} ${o}`,fillClass:`${a} ${o}`,columnClass:Ci,style:t,pad:r,part:n,children:s})}var xs="--sf-sw-site",O9="--sf-sw-content",E9="--sf-bg-cap",_9="contents [--sf-site-width:var(--sf-sw-content)] max-view-wide:[--sf-site-width:var(--sf-sw-site)]",ty=({own:e,content:o,siteContent:t})=>e===!0&&o==="full"&&t!=="full",nN="contents view-wide:[--sf-site-width:100vw]",ry=({held:e},o,t)=>e?t:Ke(de,{className:o,children:t}),A9=`contents view-wide:[--sf-site-width:100vw] ${dB} view-wide:[--sf-site-gutter:var(--intro-edge)]`,ay=(e,o,t)=>o==="content"?`min(${xn(e,t)},var(${xs}))`:xn(e,t);function ki({content:e,contentMax:o,contentMaxUnit:t},r){return e==="full"?r!=="content"?js:null:o===null?null:ay(o,r,t)}function vi(e,o){return o===null?e:Ke(de,{className:"contents",style:{[xs]:Mo},children:Ke(de,{className:_9,style:{[O9]:o},children:e})})}var F9="--sf-content-cap",B9="contents max-view-wide:[--sf-content-cap:none]";function L9({content:e,contentMax:o,contentMaxUnit:t},r){return e==="full"?null:o!==null?ay(o,r,t):r==="content"?null:`var(${xs})`}function R9(e,o){return o===null?e:Ke(de,{className:"contents",style:{[xs]:Mo},children:Ke(de,{className:B9,style:{[F9]:o},children:e})})}var sN=`var(${xs},${Mo})`,Kr=(e,o,t="")=>e==="content"?Ke(de,{className:t||void 0,style:Us(Mo),children:Ke(Gg,{ground:sN,children:o})}):o;function lN(e,o,t,r,a){if(ty(t))return Kr(r,ry(t,nN,Ke(jg,{children:e({...o,contained:!0})})),a);if(t.content==="full")return Kr(r,e({...o,contained:!1}),a);let n=ki(t,r);return r==="content"&&n===null&&!t.own?e({...o,contained:!0}):Kr(r,vi(Ke(jg,{children:e({...o,contained:!0})}),n),a)}function D9(e,o,t,r,a){if(t==="hero"){let l=vi(e(o),ki(r,r.band));return r.band==="full"?Ke(de,{style:{[AC]:"none",[FC]:"initial",[BC]:"initial"},children:l}):r.band==="content"?Ke(de,{style:Dd(!0),children:l}):l}let n=r.band??"full",s=wr(o,{atSectionLine:!a});if(t==="rawMarkup"){if(r.content==="full")return Kr(n,e(o),s);let l=r.contentMax===null?Mo:ay(r.contentMax,n,r.contentMaxUnit);return Ke(de,{className:"contents",style:{[xs]:Mo},children:Kr(n,Ke(de,{className:s||void 0,style:Us(l),children:e(o)}),s)})}if(t==="scrollOver"){let l=r.content==="full",i=ty(r)?ry(r,A9,e({...o,fullWidth:!1})):vi(e({...o,fullWidth:l}),l?null:ki(r,n));return n==="content"?Ke(de,{className:"contents",style:{[E9]:Mo},children:i}):i}switch(t){case"both":return Kr(n,R9(e(o),L9(r,n)),s);case"contained":return lN(e,o,r,n,s);case"contentColumn":case"contentFull":case"productGrid":{let l=ty(r),i=r.content==="full"&&!l?"full":"page",d=l?ry(r,nN,e({...o,widthMode:i})):vi(e({...o,widthMode:i}),r.content==="full"?null:ki(r,n));return t==="productGrid"&&!r.own?n==="content"?Ke(Jf,{className:s?`${Ci} ${s}`:Ci,children:f=>Ke(de,{className:f,children:d})}):d:Kr(n,d,s)}default:return Kr(n,vi(e(o),ki(r,n)),s)}}function aN(e,o,t,r,a){let n=a===K?"edge":"by-box",s=l=>D9(e,o,t,r,l);return n==="edge"?s(!0):wr(o)===wr(o,{atSectionLine:!0})?s(!1):Ke(of,{line:n,draw:s})}function N9(e,o){let t=z(Gs,o);if(!t)return;let r=e.render;e.render=a=>{let n=Md(a),s={band:n.background,content:n.content??"content",contentMax:null},l=()=>t==="rawMarkup"?r(a):Ke(tD,{draw:I=>I?.background==="content"?Ke(Gg,{ground:sN,children:i(I)}):i(I)}),i=I=>{let S=I?{...s,band:I.background==="content"?s.band:I.background??s.band,content:I.content??s.content,own:I.background==="full"||I.content!==null,held:!0,siteContent:s.content}:s,v=aN(r,a,t,S,o);if(!jr(o))return v;let O=Ii(a),R=O===void 0?S.content:O?"content":"full";return R===S.content?v:Ke(JR,{atTop:v,nested:lN(r,a,{...S,content:R,own:!1},S.band??"full",wr(a))})},d=hi(o,a);if(!NC(d))return l();let f=t==="rawMarkup",x=fu(o,a),u=d.content??(f?"full":s.content),h={band:x,content:x==="content"?"content":u,contentMax:d.contentMax,contentMaxUnit:d.contentMaxUnit,own:!f,siteContent:s.content};return Ke(ms,{own:()=>Ke(oD,{value:{background:h.band,content:h.content},children:aN(r,a,t,h,o)}),followed:l})}}var M9={all:[xi,{not:{context:"runsEdgeToEdge",is:!0}}]},iN={name:"sectionWidth",applies:(e,o,t)=>Nd(e)&&!!t&&typeof t.render=="function",panel(e,o,t){let r=t.sectionOwnWidthFields({drawsFullOnItsOwn:z(Gs,o)==="rawMarkup"}),a=jr(o)?t.boxGutterFields():{},n={...e.fields,...a,...r},s=jr(o)?cN(o,e,n,[Ma]):n;Dt(e,{heldByANode:su}),jr(o)&&Dt(e,{runsEdgeToEdge:(l,i)=>du(tl(l.props??{},Aw(i.appState,l.props?.id)?.inCopy!==!1))}),e.fields=No(s,[Fo.background,Fo.content],jr(o)?M9:xi)},draw(e,o){N9(e,o)}};function H9(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 W9=new Set(["Heading","Text","ImageBlock","ButtonBlock"]),dN={name:"containedWidth",applies:(e,o,t)=>W9.has(e)&&!!t&&typeof t.render=="function",panel(e,o,t){let r=t.widthField;e.fields=cN(o,e,{...e.fields,...r("page")});let a=e.resolveFields;e.resolveFields=(n,s)=>{let l=a?a(n,s):s.fields,i=ax(n?.props??{},"page"),d=f=>H9(f,i);return l&&typeof l.then=="function"?l.then(d):d(l)}},draw(e){let o=e.render;e.render=t=>{let{mode:r}=ax(t,"page");return o({...t,contained:r!=="full"})}}},$9={not:{context:"inHeroGroupRow",is:!0}},fN={name:"buttonAlignInRow",applies:e=>e==="ButtonBlock",panel(e){let o=e;o.fields=No(o.fields??{},["align"],$9),Dt(o,{inHeroGroupRow:(t,r)=>{let a=Kt(r.appState,t.props?.id);return!!a&&a.type==="HeroGroup"&&Tn("HeroGroup",a.props?.direction)==="row"}})}};function z9(e){return Object.values(e).some(o=>!!o&&typeof o=="object"&&o.type==="slot")}var U9={any:[]},j9={all:[{not:{context:"outsideBox",is:!0}},{not:{context:"insideSiteGutter",is:!0}}]},G9={not:{context:"widthCappedByParent",is:!0}};function cN(e,o,t,r=["widthMode"]){if(e==="ButtonBlock")return No(t,["_gWidth",...r],U9);if(z9(t)){let a=(n,s)=>qR(s.appState?.data?.content,n.props?.id,cu(tN()));return Dt(o,{outsideBox:(n,s)=>a(n,s)?.inBox!==!0,insideSiteGutter:(n,s)=>a(n,s)?.insideGutter}),No(t,r,j9)}return Dt(o,{widthCappedByParent:(a,n)=>"parent"in n?uw(n.parent):BR({props:a.props??{}},n)}),No(t,r,G9)}var K9=new Set(["Reviews","Cards","FAQ","Prose","ProductHero","SpecTable","ProductGrid","ParagraphsA","KeyFeatures","Integrations","Stats","StatsParagraph","Chart","Mockup","Testimonials","Logos","ContactRouting","ContactLocations","SubmitBuild","ReviewForm","Form","AppointmentBooking","OrderSummary","DeliveryOptions","PaymentBadges","CheckoutCTA","Collections","AlloyWheelsListing","CatalogFilterBar","FitmentFinder","GalleryB","DocMasthead","DocBody","DocMetaCards","Masthead","FeaturedCover","LongRead","Series","Events","ArticleBody","SectionHeader","Grid","Flex","Spacer","Divider","CustomHTML","Breadcrumb","CategoryBar","DocTabs","Hero","HeroSingle","IntroBleed","Manifesto","Timeline","TimelineTrack","Footprint","Banner","TitleWithButtons","Ticker","SubscribeBlogs","TyreSizes","TyreFitment","EuTyreLabel","SpecStrip","ProcessSteps","DetailRows","FitmentTable","CompatibleTyres","RelatedProducts","BundleOffer","Split","Gallery","Subscribe","Countdown"]),pN={name:"sectionGroups",applies:(e,o)=>o.isSection(e)&&(K9.has(e)||o.isHostBlock(e)),panel(e,o,t){let r=t.assignSectionGroups;e?.fields&&(e.fields=r(e.fields,o))}},q9=new Set(["HeroSlide","HeroGroup"]),uN={name:"blockGroups",applies:(e,o,t)=>q9.has(e)||!o.isSection(e)&&Fp in(t?.fields??{}),panel(e,o,t){let r=t.assignSectionGroups;e?.fields&&(e.fields=r(e.fields,o))}};import{jsx as ny}from"react/jsx-runtime";var V9=new Set(["Flex","Grid"]),mN=e=>Object.entries(e.fields??{}).filter(([,o])=>o?.type==="slot").map(([o])=>o),Y9=(e,o)=>e.fields?.[o]?.ownPictures===!0,X9=["blockCount","blockIds"],Z9=new WeakMap,J9=new WeakMap;function Q9(e,o){let t=o?J9:Z9,r=t.get(e);if(r)return r;let a=e,n=s=>ny(QR,{children:ny(af,{ownPictures:o,children:ny(a,{...s})})});Object.assign(n,e);for(let s of X9)Object.defineProperty(n,s,{get:()=>e[s],configurable:!0,enumerable:!0});return t.set(e,n),n}var xN={name:"slotsStartAfresh",applies:(e,o,t)=>!V9.has(e)&&typeof t?.render=="function"&&mN(t).length>0,draw(e){let o=mN(e),t=e.render;e.render=r=>{let a={...r};for(let n of o){let s=r[n];typeof s=="function"&&(a[n]=Q9(s,Y9(e,n)))}return t(a)}}};var eV=new Set(["Form","Stats","Logos"]);function hN(){return[...eV]}function sy(e,o,t=[]){let r=new Set(e),a=cb.filter(d=>r.has(d)),n=a.filter(d=>d!=="Header"&&d!=="Footer"&&!xf.includes(d)),s=new Set([...o,...id,...hN()]),l=a.filter(d=>!s.has(d)),i=new Set([...a,...t]);return{isSection:d=>i.has(d)&&!vd(d),isHostBlock:()=>!1,sectionGroupAllow:n,contentSectionKeys:l}}var oV=[xN,AD,wD,OR,ER,uO,hD,JD,ID,hO,$D,GD,FR,iN,dN,fN,Qg,K0,RD,QD,WD,jD,YD,XD,nD,eN,jR,pN,uN,yD,gD,mD,CD,ED,KD,kD,TR,lD];function IN(e,o,t){let r=o;for(let a of oV)a.applies(e,t,r)&&(t.inspector&&a.panel?.(r,e,t.inspector,t),a.draw?.(r,e,t));return o}import{jsx as ly}from"react/jsx-runtime";import{ClockIcon as tV,DurationIcon as rV}from"efficient-easel/icons";import{MOTION_TIMING as gN}from"efficient-shell/format";import{useSelectedHost as aV}from"efficient-easel/easel";function hs(e){let{min:o,max:t,step:r,default:a}=gN[e].duration;return Er("Duration",ly(rV,{}),o,t,r,a,"s")}function Is(e){let{min:o,max:t,step:r,default:a}=gN[e].delay;return Er("Delay",ly(tV,{}),o,t,r,a,"s")}function gs(e,o){let t=e.render,r=a=>{let n=aV();return t({...a,value:o(a.value,n?.values)})};return{...e,render:a=>ly(r,{...a})}}function hu({readsSpeed:e}){return gs(hs("loop"),(o,t)=>Ap({loopDuration:o,speed:e?t?.speed:void 0}))}function Iu(){return gs(Is("loop"),e=>GA({loopDelay:e}))}import{jsx as no}from"react/jsx-runtime";import{DirectionDownIcon as nV,DirectionIcon as sV,DirectionLeftIcon as lV,DirectionRightIcon as iV,DirectionUpIcon as dV,EntranceBounceIcon as fV,EntranceFadeIcon as cV,EntranceFlipIcon as pV,EntranceGlideIcon as uV,EntranceRevealIcon as mV,EntranceRiseIcon as xV,EntranceScaleIcon as hV,EntranceSpinIcon as IV,NoSymbolIcon as gV}from"efficient-easel/icons";import{NoControlMark as yV,noControlField as SV}from"efficient-easel/screen/lib/document/panel-no-control-mark";import{customize as bV,group as wV}from"efficient-easel/screen/lib/document/box-fields";import{ENTRANCE_FROM as CV,ENTRANCE_FROM_DEFAULT as SN,ENTRANCE_KINDS as bN,ENTRANCE_KINDS_WITH_FROM as kV,entranceAttrs as vV,playEntrance as PV,readEntrance as TV}from"efficient-shell/format";var OV={none:"None",fade:"Fade",rise:"Rise",scale:"Scale",glide:"Glide",bounce:"Bounce",flip:"Flip",reveal:"Reveal",spin:"Spin"},EV={top:"Top",bottom:"Bottom",left:"Left",right:"Right"},_V={top:()=>no(nV,{}),bottom:()=>no(dV,{}),left:()=>no(iV,{}),right:()=>no(lV,{})},wN="Entrance",dy=bN.filter(e=>e!=="none"),CN=e=>({any:[{field:qo.kind,in:e},{all:[{field:qo.kind,set:!1},{field:Vs,in:e}]}]}),yN=(e,o)=>Qt(tt.slice(0,tt.indexOf(e)+1).reverse().map(t=>rt(qo.kind,t)),t=>({field:t,set:!0}),t=>t===qo.kind?CN(o):{field:t,in:o}),AV={any:[CN(dy),...tt.slice(1).map(e=>({field:rt(qo.kind,e),in:dy}))]},FV=tt.flatMap(e=>[[[rt(qo.from,e)],yN(e,kV)],[[rt(qo.duration,e),rt(qo.delay,e)],yN(e,dy)]]),BV={none:()=>no(gV,{}),fade:()=>no(cV,{}),rise:()=>no(xV,{}),scale:()=>no(hV,{}),glide:()=>no(uV,{}),bounce:()=>no(fV,{}),flip:()=>no(pV,{}),reveal:()=>no(mV,{}),spin:()=>no(IV,{})},kN="data-entrance-tile";function LV({kind:e}){let{attrs:o}=vV(TV(e,SN));return no("span",{className:"sf-entrance-stage",[kN]:e,children:no("i",{...o,children:BV[e]()})})}var RV=(e,o)=>{let t=e.querySelector(`[${kN}="${o}"] > i`);t&&PV(t)},DV="Effect",NV=()=>Lf(qo.kind,{label:wN,tileWord:DV,values:bN,fallback:"none",word:e=>OV[e],picture:e=>no(LV,{kind:e}),read:(e,o)=>Ys(e,o).kind,preview:RV}),iy=(e,o)=>Bf(qo[e],o,(t,r)=>Ys(t,r)[e]),MV=CV.map(e=>({label:EV[e],value:e,picture:_V[e]()}));function _t(){let e={[Fp]:wV(wN,{dot:AV}),...NV(),[Vs]:SV({type:"custom",render:()=>no(yV,{})},"always"),_cEntrance:bV(),...iy("from",On("From",no(sV,{}),MV,SN)),...iy("duration",hs("entrance")),...iy("delay",Is("entrance"))};return et(e,FV)}import{jsx as ht}from"react/jsx-runtime";import{EntranceRevealIcon as HV,NoSymbolIcon as WV,PercentIcon as vN,ScrollFadeInIcon as $V,ScrollFadeOutIcon as zV,ScrollMoveDownIcon as UV,ScrollMoveUpIcon as jV,ScrollParallaxIcon as GV,ScrollZoomInIcon as KV,ScrollZoomOutIcon as qV,ZoomInIcon as VV}from"efficient-easel/icons";import{customize as YV,group as XV}from"efficient-easel/screen/lib/document/box-fields";import{SCROLL_EFFECTS as TN,SCROLL_EFFECTS_WITH_ZOOM as ZV,SCROLL_END as JV,SCROLL_START as QV,SCROLL_ZOOM as eY}from"efficient-shell/format";var ON="Scroll",oY={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"},tY={none:()=>ht(WV,{}),"zoom-in":()=>ht(KV,{}),"zoom-out":()=>ht(qV,{}),"fade-in":()=>ht($V,{}),"fade-out":()=>ht(zV,{}),"move-up":()=>ht(jV,{}),"move-down":()=>ht(UV,{}),reveal:()=>ht(HV,{}),parallax:()=>ht(GV,{})},rY="Effect",EN=TN.filter(e=>e!=="none"),PN=(e,o)=>Qt(tt.slice(0,tt.indexOf(e)+1).reverse().map(t=>rt(uo.effect,t)),t=>({field:t,set:!0}),t=>({field:t,in:o})),aY={any:tt.map(e=>({field:rt(uo.effect,e),in:EN}))},nY=tt.flatMap(e=>[[[rt(uo.zoom,e)],PN(e,ZV)],[[rt(uo.start,e),rt(uo.end,e)],PN(e,EN)]]),sY=()=>Lf(uo.effect,{label:ON,tileWord:rY,values:TN,fallback:"none",word:e=>oY[e],picture:e=>tY[e](),read:(e,o)=>lr(e,o).effect}),fy=(e,o,t,r,a)=>Bf(e,Er(t,r,a.min,a.max,a.step,a.default,"%"),(n,s)=>lr(n,s)[o]);function Wa(){let e={[$n]:XV(ON,{dot:aY}),...sY(),[vc]:YV(),...fy(uo.zoom,"zoom","Zoom",ht(VV,{}),eY),...fy(uo.start,"start","Start",ht(vN,{}),QV),...fy(uo.end,"end","End",ht(vN,{}),JV)};return et(e,nY)}import{jsx as Bo}from"react/jsx-runtime";import{AccentIcon as lY,ContrastIcon as iY,EyeIcon as dY,ExpandIcon as fY,FinishIcon as cY,ImagesIcon as pY,NoSymbolIcon as AN,HoverLiftIcon as uY,HoverNextImageIcon as mY,HoverRotateIcon as xY,HoverZoomIcon as FN,OpacityIcon as hY}from"efficient-easel/icons";import{customize as IY,describedAs as BN,group as gY}from"efficient-easel/screen/lib/document/box-fields";import{effectTiles as LN}from"efficient-easel/screen/lib/document/effect-tiles";import{deviceField as ho}from"efficient-easel/screen/lib/document/device-fields";import{NoControlMark as yY,noControlField as SY}from"efficient-easel/screen/lib/document/panel-no-control-mark";var gu=e=>ho("desktop",gY("Hover",{dot:e})),RN=()=>ho("desktop",IY()),bY="What this does when a shopper points at it, or taps it on a phone.",wY="What this picture does when a shopper points at it. Black and white shows it in grey until then. A phone shows its colour.",CY="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.",kY="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.",vY="When this shows. On card hover shows it while a shopper points at the card. A phone always shows it.",PY="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.",TY="Which of the product's pictures the card shows.",OY="Same finish shows the photos of the finish the card shows, else the first group.",EY="Whole card hides the words under the photo. Picture keeps the words and swatches in view.",_Y={none:()=>Bo(AN,{}),nextImage:()=>Bo(mY,{}),rotate:()=>Bo(xY,{}),zoom:()=>Bo(FN,{}),lift:()=>Bo(uY,{}),mono:()=>Bo(iY,{})};function cy(e,o){let t=LN({label:c("Hover effect"),options:e.map(r=>({value:r,label:c(Pm[r]),picture:_Y[r]()})),fallback:o});return BN(t,{type:"select",label:"Hover effect",options:e.map(r=>({value:r,label:Pm[r]}))})}function DN(){return{[St]:gu({field:Qo,in:_m.filter(e=>e!=="none")}),[Qo]:ho("desktop",{...cy(_m,"none"),description:bY})}}function NN(e){let o=$b(e),t=xd(),r=GP(Fb);return{[St]:gu({any:[o,t]}),[Ge.kind]:ho("desktop",{...gs(cy(Eb,e),(a,n)=>Hb(n??{},e)),description:PY}),...py(t),[_b]:SY({type:"custom",render:()=>Bo(yY,{})},"always"),_cHover:RN(),[Ge.angle]:ho("desktop",Ze(gs(r,a=>Wb(a)),o)),[Ge.duration]:ho("desktop",Ze(hs("hover"),o)),[Ge.delay]:ho("desktop",Ze(Is("hover"),o))}}function py(e){let o=UP("Type",Bo(pY,{}),Bb.map(a=>({value:a,label:Lb[a]})),md.kind),t=On("Group",Bo(cY,{}),Rb.map(a=>({value:a,label:Db[a]})),md.group),r=On("Covers",Bo(fY,{}),Nb.map(a=>({value:a,label:Mb[a]})),md.cover);return{[Ge.mediaKind]:ho("desktop",Ze({...o,description:TY},e)),[Ge.mediaGroup]:ho("desktop",Ze({...t,description:OY},e)),[Ge.cover]:ho("desktop",Ze({...r,description:EY},e))}}function uy(e,o="",t=Rm.includes(o)){let r=Dm(e),a=Vb(e);return{[St]:gu(r),[Ge.kind]:my(zb,e,wY),...Rm.includes(o)?py(xd()):{},_cHover:RN(),...t?MN():{},[Ge.duration]:ho("desktop",Ze(hs("hover"),a)),[Ge.delay]:ho("desktop",Ze(Is("hover"),a))}}function MN(e=!1){let o=a=>e?a:Ze(a,qb()),t=Er("Zoom",Bo(FN,{}),sn.min,sn.max,sn.step,sn.min,sn.unit),r=Er("Darken on hover",Bo(hY,{}),Cn.min,Cn.max,Cn.step,Cn.fallback,Cn.unit);return{[Fm.zoom]:ho("desktop",o(t)),[Fm.darken]:ho("desktop",o(r))}}function my(e,o,t){let r=ho("desktop",{...gs(cy(e,o),a=>Gb({[Qo]:a},o,e)),description:t});return Object.assign(r,{[HN]:o})}var HN="sfPictureResting",_N=new WeakMap;function tAe(e,o,t){let r=e[Ge.kind],a=r?.[HN];if(!r||!a)return e;let n=o.props?.[Qo]==="nextImage",s=n?null:Ed(t.appState,o.props?.id);if(!n&&!ud.includes(String(s?.type??"")))return e;let l=_N.get(e);return l||(l={...e,[Ge.kind]:my(Am,a,CY)},_N.set(e,l)),l}var AY="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.",FY={none:()=>Bo(AN,{}),[Tm]:()=>Bo(lY,{})},rAe=ho("desktop",{...BN(LN({label:c("Hover effect"),options:Om.map(e=>({value:e,label:c(Em[e]),picture:FY[e]()})),fallback:"none"}),{type:"select",label:"Hover effect",options:Om.map(e=>({value:e,label:Em[e]}))}),description:AY}),BY=ho("desktop",{...On("Show",Bo(dY,{}),[{value:Lm,label:"Always"},{value:Bm,label:"On card hover"}],Lm),description:vY});function WN(){let e={any:[Dm("none"),{field:Qo,is:Tm},{field:ea,is:Bm}]},{[St]:o,[Ge.kind]:t,...r}=uy("none","",!0);return{[St]:gu(e),[Ge.kind]:t,[ea]:BY,...py(xd()),...r,...MN(!0)}}var aAe=my(Am,"none",kY);import{jsx as Pi}from"react/jsx-runtime";import{isNodeList as NY}from"efficient-easel/data";import{useEasel as MY}from"efficient-easel/easel";import{hiddenInView as HY,hiddenKeyOf as xy,hidePatch as WY,slotChildName as $Y,slotChildRowName as zY}from"efficient-easel/draw";var LY=new Set(["BookingBox","SubmitBox"]);function RY(e){return typeof e=="string"&&LY.has(e)}var DY=QP(RY,LT);function yu(e,o){return DY(e)||mT(o)}var Su=(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 UY}from"efficient-easel/screen/lib/document/device-fields";import{NoControlMark as jY}from"efficient-easel/screen/lib/document/panel-no-control-mark";var $N="notCardOfTemplate",zN={not:{context:$N,is:!0}},hy={any:[Id,zN]},kAe={[$N]:(e,o)=>{let t=Zm(o.appState,e.props?.id);return t===void 0?void 0:t===null}};function bu(e){let o=e.props?.content;return NY(o)?o:[]}var Cu=(e,o)=>HY(e.props??{},o),GY=(e,o)=>e.props?.[xy(o)]!==void 0;function UN(e,o=()=>!1,t="desktop"){return bu(e).flatMap(r=>typeof r?.props?.id!="string"?[]:bu(r).length&&!Cu(r,t)?UN(r,o,t):o(r)?[]:[r])}function KY(e,o,t,r="desktop"){let a=UN(e,t,r).map(l=>({child:l,name:o(l)})),n=new Set(a.map(l=>l.name)),s=new Set;return a.map(({child:l,name:i})=>{let d=i;if(s.has(i)){let f=2;for(;n.has(`${i} ${f}`);)f+=1;d=`${i} ${f}`,n.add(d)}return s.add(i),{id:l.props.id,label:d,shown:!Cu(l,r)}})}function wu(e,o,t){let r=a=>t==="desktop"?Cu(a,t):GY(a,t);return bu(e).flatMap(a=>r(a)?o(a)?[]:[a,...wu(a,o,t)]:wu(a,o,t))}function qY(e,o){let t={...e};for(let[r,a]of Object.entries(o))a===void 0||r===xy("desktop")&&a===!1?delete t[r]:t[r]=a;return Object.keys(t).length===Object.keys(e).length&&Object.keys(t).every(r=>t[r]===e[r])?e:t}function Iy(e,o,t){let r=bu(e),a=!1,n=r.map(s=>{if(a)return s;let l=s;if(s?.props?.id===o){let i=qY(s.props,t(s.props));i!==s.props&&(l={...s,props:i})}else l=Iy(s,o,t);return a=l!==s,l});return a?{...e,props:{...e.props,content:n}}:e}function jN(e,o,t,r="desktop"){return Iy(e,o,a=>r==="desktop"&&Cu({props:a},r)===!t?{}:WY(a,r,!t))}function VY(e,o,t){return t==="desktop"?jN(e,o,!0,t):Iy(e,o,()=>({[xy(t)]:void 0}))}function YY(e,o,t,r,a,n){return $Y(e).trim()?t(e):vw({ownerType:o,owner:r,fields:a,slot:n},Nt(e.props))?.label??t(e)}var XY="This page is read-only.";function ZY({card:e,ownerType:o,owner:t,fields:r,slot:a,labelOf:n,write:s,readOnly:l,view:i="desktop"}){let d=u=>zY(u,n,nn,void 0,Su),f=u=>yu(u.type,u),x=KY(e,u=>YY(u,o,d,t,r,a),f,i);return x.length?Pi(Hx,{parts:x,changed:wu(e,f,i).length>0,shown:u=>x.find(h=>h.id===u)?.shown??!0,disabledReason:l?XY:void 0,onPress:(u,h)=>s(I=>jN(I,u,h,i)),onReset:()=>s(u=>wu(u,f,i).reduce((h,I)=>VY(h,String(I.props.id),i),u))}):Pi(jY,{})}function JY(){try{let e=MY(a=>a),o=e.config.components??{},t=e.selectedItem;if(!t)return null;let r=Zm(e.appState,t.props?.id);return{labelOf:a=>o[a]?.label??a,card:t,ownerType:typeof r?.type=="string"?r.type:void 0,owner:r,fields:Fw(e.appState,r),slot:_w(e.appState,t.props?.id)??void 0}}catch{return null}}function QY({readOnly:e,view:o}){let t=JY(),r=dl();return t?Pi(ZY,{...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}})}}):Pi(Hx,{parts:[],changed:!1,shown:()=>!0,onPress:()=>{},onReset:()=>{}})}function vAe(e){return Ze(UY(e,{type:"custom",render:({readOnly:o})=>Pi(QY,{readOnly:o,view:e})}),zN)}import{customize as dX}from"efficient-easel/screen/lib/document/box-fields";import{jsx as gy}from"react/jsx-runtime";import{DirectionIcon as eX,LoopMarqueeIcon as oX,NoSymbolIcon as tX}from"efficient-easel/icons";import{customize as rX,describedAs as aX,group as nX}from"efficient-easel/screen/lib/document/box-fields";import{effectTiles as sX}from"efficient-easel/screen/lib/document/effect-tiles";function yy(){return ET("Direction",DI,fi,"A marquee cannot run diagonally, so the corners are not answers.",gy(eX,{}),OT)}var Sy=e=>nX("Loop",e?{dot:e}:void 0),lX={none:()=>gy(tX,{}),scroll:()=>gy(oX,{})};function iX(){let e=sX({label:c("Loop"),options:_p.map(({value:o,label:t})=>({value:o,label:c(t),picture:lX[o]()})),fallback:RI});return aX(e,{type:"select",label:"Loop",options:_p.map(({value:o,label:t})=>({value:o,label:t}))})}function GN(){return{[ls]:Sy(di),loop:iX(),_cLoop:rX(),scrollDirection:Ze(yy(),di),loopDuration:Ze(hu({readsSpeed:!1}),di),loopDelay:Ze(Iu(),di)}}var KN={field:ea,set:!0};function fX(){let e=WN(),o=[St,Qo],t=No(e,Object.keys(e).filter(n=>!o.includes(n)&&n!==ea),Id),r=No(t,[ea],KN),a=No(r,[Qo],hy);return No(a,[St],{any:[hy,KN]})}function ku(e,o=""){switch(e){case"section":case"block":return{..._t(),...Wa()};case"box":return{..._t(),...Wa(),...GN(),...fX()};case"picture":return{..._t(),...Wa(),...uy(jb(o),o)};case"textPart":return{..._t(),...Wa(),...DN()};case"cards":return{..._t(),...Wa(),...NN(Ab(o))};case"marquee":return{..._t(),...Wa(),[ls]:Sy(),_cLoop:dX(),scrollDirection:yy(),loopDuration:hu({readsSpeed:!0}),loopDelay:Iu()}}}import{blockSizeFieldSet as oZ}from"efficient-easel/screen/lib/document/block-size-fields";import{VIEW_KEY_ACCESS as tZ}from"efficient-easel/screen/lib/document/box-fields";import{jsx as qN,Fragment as cX,jsxs as pX}from"react/jsx-runtime";import{useSelectedHost as VN}from"efficient-easel/easel";import{VIEW_TIERS as uX,viewKeyAt as mX}from"efficient-easel/draw";var YN=e=>uX.find(o=>Object.values(po).some(t=>mX(t,o)===e))??"desktop";function xX(e,o,t){let r=e(o),a=YN(t);return{top:Yd(r,"top",a),bottom:Yd(r,"bottom",a)}}var hX=e=>e.startsWith(po.bottom)?"bottom":"top";function IX(e,o,t,r){let a=hX(r);return o(t,Yd(e(t),a,YN(r)),a)}function gX({frameOf:e,note:o,rowKey:t}){let r=VN()?.values,a=r?IX(e,o,r,t):null;return a?qN("p",{className:"es-field-hint",children:a}):null}var yX=new Set(wn());function XN(e,o,t){let r=_r({tablet:!0,siteSide:!0,...t?{label:t}:{},useFallback:a=>{let n=VN()?.values;return n?xX(e,n,a.name):{top:0,bottom:0}}});return Object.fromEntries(Object.entries(r).map(([a,n])=>{let s=n.render;return!yX.has(a)||typeof s!="function"?[a,n]:[a,{...n,render:l=>pX(cX,{children:[s(l),qN(gX,{frameOf:e,note:o,rowKey:a})]})}]}))}import{group as SX}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as bX,deviceMetaOf as QN}from"efficient-easel/screen/lib/document/device-fields";import{DESIGN_GROUPS as wy,SETTINGS_BUCKETS as wX}from"efficient-easel/panel";import{BUCKET_KEY as Io,DESIGN_GROUP_KEY as ys}from"efficient-easel/screen/lib/document/field-buckets";var Ti=wX;var CX="Editor only \u2014 not shown live",Cy={"Archive link":"Content",Article:"Content",Blocks:"Content","Blog posts":"Content","Browser mock":"Content",Button:"Content","Call to action":"Content","Car prompt":"Content","Card link":"Content","Card list":"Content",Cards:"Content","Claims bars":"Content","Contact info":"Content",Content:"Content",Display:"Content","Content source":"Content",Contents:"Content",Filters:"Content","Show on a card":"Content",Footnote:"Content",Form:"Content",Founders:"Content","Gallery A":"Content","Gallery B":"Content","Gallery link":"Content",Header:"Content","Header link":"Content","Image caption":"Content","In this issue":"Content",Items:"Content","Kanban columns":"Content",Lead:"Content","Left panel":"Content",Link:"Content",Links:"Content",List:"Content","Message form":"Content",Metadata:"Content",Milestones:"Content","Mockup card":"Content","Newsletter panel":"Content",Offices:"Content",Options:"Content","Others gallery":"Content","Overlay button":"Content",Product:"Content","Product page":"Content",Products:"Content","Pull quote":"Content",Questions:"Content","Recent issues":"Content","Recent posts":"Content",Reviews:"Content","Right panel \xB7 actions":"Content","Right panel \xB7 choices":"Content","Right panel \xB7 form":"Content","Routing groups":"Content",Rows:"Content",Section:"Content","Section header":"Content",Sections:"Content","Signup form":"Content",Source:"Content","Source product":"Content","Stat & note":"Content",Stats:"Content","Submit button":"Content","Success state":"Content",Wheel:"Content",Terminal:"Content",Text:"Content","Text column":"Content","Timeline entries":"Content","Top row":"Content",Total:"Content","Trailing note":"Content","\u201COther\u201D reason":"Content","Background images":"Design",Gallery:"Content",Image:"Content","Image column":"Content",Images:"Content",Logo:"Content",Map:"Content",Media:"Content","Background image":"Design",Color:"Design","Image tint":"Design",Style:"Design",Shape:"Design",Shadow:"Design",Texture:"Design",Overlay:"Design","Text style":"Design",Entrance:"Animation",Hover:"Animation",Loop:"Animation",Scroll:"Animation",Advanced:"Advanced",Anchor:"Anchor",Arrangement:"Layout","Auto-slide":"Layout",Bar:"Layout","Cell size":"Size",Behavior:"Layout",Schedule:"Layout",Controls:"Layout",Diagram:"Layout",[CX]:"Layout","Filters shown":"Layout","Slide picker":"Layout",Arrows:"Layout","On a phone":"Layout",Placement:"Position",Nudge:"Position","Stick to top":"Position","Image gallery":"Layout",Grid:"Layout",Layout:"Layout",Padding:"Layout",Price:"Layout",Preview:"Layout",Setup:"Layout","Show / hide elements":"Layout","Show in the buy box":"Layout",Visibility:"Layout",Width:"Size",Size:"Size",Height:"Size"},eM={"AlloyWheelsListing._gCards":"Design","Flex._gLink":"Link","LongRead._gLink":"Link"},oM={"Text._gSpacing":"Size","Heading._gSpacing":"Size"};function ZN(e,o,t){let r=`${e}.${o}`;return z(oM,r)??z(eM,r)??z(Cy,t)}function kX(e){return e==="Animation"?[Io.Animation]:[Io.Design,ys[e]]}function vu(...e){let o=[];for(let t of e)for(let r of Object.values(t)){let a=QN(r),n=ar(a?a.inner:r),s=n?z(Cy,n.label):void 0;if(s)for(let l of kX(s))o.includes(l)||o.push(l)}return o}var dFe=[...vu(_r({tablet:!0,siteSide:!0}),An("full"),Fn(),Bn(),fl()),...Object.keys(_r({tablet:!0,siteSide:!0})),...Object.keys(An("full")),...Object.keys(Fn()),...Object.keys(Bn()),...Object.keys(fl())],fFe=[...vu(En()),...Object.keys(En())],cFe=[...vu(_n()),...Object.keys(_n())],pFe=[...vu(_t()),...Object.keys(_t())],uFe=Object.keys(FT()),mFe=Object.keys(BT()),vX={"ImageBlock._gStyle":"duplicated the Style bucket header above it (2026-09-04)","ButtonBlock._gStyle":"duplicated the Style bucket header above it (2026-09-04)","HeroGroup._gContent":"duplicated the Content bucket header above it (2026-09-04)","HeroGroup._gLayout":"duplicated the Layout bucket header above it (2026-09-04)","Footer._gLayout":"duplicated the Layout bucket header above it (2026-09-04)","FooterLogo._gContent":"duplicated the Content bucket header above it (2026-09-04)","FooterLogo._gStyle":"duplicated the Style bucket header above it (2026-09-04)","FooterMenu._gContent":"duplicated the Content bucket header above it (2026-09-04)","FooterMenu._gStyle":"duplicated the Style bucket header above it (2026-09-04)","FooterGroup._gLayout":"duplicated the Layout bucket header above it (2026-09-04)","FooterText._gContent":"duplicated the Content bucket header above it (2026-09-04)","FooterText._gStyle":"duplicated the Style bucket header above it (2026-09-04)","FooterSocial._gStyle":"duplicated the Style bucket header above it (born tabbed, 2026-09-17)","FooterSocial._gLayout":"duplicated the Layout bucket header above it (born tabbed, 2026-09-17)","MenuBlock._gContent":"duplicated the Content bucket header above it (born tabbed, H.1)","MenuBlock._gStyle":"duplicated the Style bucket header above it (born tabbed, H.1)","SocialLogosBlock._gStyle":"duplicated the Style bucket header above it (born tabbed, H.1)","SocialLogosBlock._gLayout":"duplicated the Layout bucket header above it (born tabbed, H.1)","SearchBlock._gStyle":"duplicated the Style bucket header above it (born tabbed, H.2)","CartBlock._gStyle":"duplicated the Style bucket header above it (born tabbed, H.2)","CountrySwitchBlock._gStyle":"duplicated the Style bucket header above it (born tabbed with its Show as, 2026-10-17)","Split._gContent":"duplicated the Content bucket header above it (2026-09-04)","Gallery._gVehicleContent":"duplicated the Content bucket header above it (2026-09-04)","Gallery._gWheelContent":"duplicated the Content bucket header above it (2026-09-04)","Gallery._gOthersContent":"duplicated the Content bucket header above it (2026-09-04)","Subscribe._gHeadCopy":"duplicated the Content bucket header above it (2026-09-04)","Subscribe._gLeftCopy":"duplicated the Content bucket header above it (2026-09-04)","Subscribe._gRightCopy":"duplicated the Content bucket header above it (2026-09-04)","CollectionCard._gContent":"duplicated the Content bucket header above it (A Card Sets Its Own Corners)","HeroSlide._gContent":"duplicated the Content bucket header above it (Hero Slide Tabs And Theme)","KeyFeatures._gContent":"duplicated the Content bucket header above it (66049)","KeyFeatures._gStyle":"duplicated the Style bucket header above it (66049)","ParagraphsA._gContent":"duplicated the Content bucket header above it (66049)","Chart._gContent":"duplicated the Content bucket header above it (66049)","Chart._gStyle":"duplicated the Style bucket header above it (66049)","Logos._gContent":"duplicated the Content bucket header above it (66049)","Logos._gStyle":"duplicated the Style bucket header above it (66049)","Mockup._gContent":"duplicated the Content bucket header above it (66049)","Mockup._gStyle":"duplicated the Style bucket header above it (66049)","Stats._gContent":"duplicated the Content bucket header above it (66049)","Stats._gStyle":"duplicated the Style bucket header above it (66049)","StatsParagraph._gContent":"duplicated the Content bucket header above it (66049)","StatsParagraph._gStyle":"duplicated the Style bucket header above it (66049)","Testimonials._gContent":"duplicated the Content bucket header above it (66049)","Testimonials._gStyle":"duplicated the Style bucket header above it (66049)","AppointmentBooking._gContent":"duplicated the Content bucket header above it (66050)","BookingBox._gContent":"duplicated the Content bucket header above it ([SPLIT] Booking Form Into Three Boxes) \u2014 the same fault its own section retired in 66050, one level down","FAQ._gContent":"duplicated the Content bucket header above it (66050, family sweep)","FAQ._gLayout":"duplicated the Layout bucket header above it (66050, family sweep)","Form._gContent":"duplicated the Content bucket header above it (66050)","ReviewForm._gContent":"duplicated the Content bucket header above it (66050)","SubmitBuild._gContent":"duplicated the Content bucket header above it (66050)","SubmitBox._gContent":"duplicated the Content bucket header above it ([SPLIT] SubmitBuild Keeps Its Two Columns) \u2014 the same fault its own section retired in 66050, one level down","CheckoutCTA._gContent":"duplicated the Content bucket header above it (66051)","CheckoutCTA._gLayout":"duplicated the Layout bucket header above it (66051)","DeliveryOptions._gContent":"duplicated the Content bucket header above it (66051)","DeliveryOptions._gLayout":"duplicated the Layout bucket header above it (66051)","OrderSummary._gContent":"duplicated the Content bucket header above it (66051)","OrderSummary._gLayout":"duplicated the Layout bucket header above it (66051)","PaymentBadges._gContent":"duplicated the Content bucket header above it (66051)","PaymentBadges._gLayout":"duplicated the Layout bucket header above it (66051)","Collections._gContent":"duplicated the Content bucket header above it (66052)","Collections._gLayout":"duplicated the Layout bucket header above it (66052)","DocMasthead._gContent":"duplicated the Content bucket header above it (66053)","Events._gContent":"duplicated the Content bucket header above it (66054)","Events._gLayout":"duplicated the Layout bucket header above it (66054)","FeaturedCover._gContent":"duplicated the Content bucket header above it (66054)","Series._gStyle":"duplicated the Style bucket header above it (66054)","Flex._gContent":"duplicated the Content bucket header above it (66055)","Flex._gLayout":"duplicated the Layout bucket header above it (66055)","Flex._gLink":"repeated the Link group heading above it (owner 2026-11-17)","LongRead._gLink":"repeated the Link group heading above it (decided 2026-11-17)","Flex._gJump":"repeated the Anchor group heading above it (owner 2026-11-17)","SectionHeader._gContent":"duplicated the Content bucket header above it (66055)","Breadcrumb._gContent":"duplicated the Content bucket header above it (66056)","CategoryBar._gStyle":"duplicated the Style bucket header above it (66056)","Hero._gContent":"duplicated the Content bucket header above it (66056)","Hero._gStyle":"duplicated the Style bucket header above it (66056)","HeroSingle._gStyle":"duplicated the Style bucket header above it (66056)","IntroBleed._gContent":"duplicated the Content bucket header above it (66056)","IntroBleed._gLayout":"duplicated the Layout bucket header above it (66056)","BundleOffer._gLayout":"duplicated the Layout bucket header above it (66059)","ProcessSteps._gContent":"duplicated the Content bucket header above it (66059)","Banner._gContent":"duplicated the Content bucket header above it (66060.1)","Banner._gLayout":"duplicated the Layout bucket header above it, and governed no controls (66060.1)","Manifesto._gContent":"duplicated the Content bucket header above it (66060.1)","SubscribeBlogs._gHeadCopy":"duplicated the Content bucket header above it (66060.1)","SubscribeBlogs._gLeftCopy":"duplicated the Content bucket header above it (66060.1)","SubscribeBlogs._gRightCopy":"duplicated the Content bucket header above it (66060.1)","Ticker._gContent":"duplicated the Content bucket header above it (66060.1)","Ticker._gStyle":"duplicated the Style bucket header above it (66060.1)","Timeline._gContent":"duplicated the Content bucket header above it (66060.1)","TitleWithButtons._gContent":"duplicated the Content bucket header above it (66060.1)","TitleWithButtons._gStyle":"duplicated the Style bucket header above it (66060.1)","Cards._gContent":"duplicated the Content bucket header above it (66218)","Cards._gStyle":"duplicated the Style bucket header above it (66218)","Prose._gContent":"duplicated the Content bucket header above it (66218)","Reviews._gContent":"duplicated the Content bucket header above it (66218)","Reviews._gStyle":"duplicated the Style bucket header above it (66218)"},tM={Content:["Content"],Size:["Size"],Design:["Design","Style"],Layout:["Layout"],Position:["Position"],Advanced:["Advanced"],Link:["Link"],Anchor:["Anchor"],Animation:["Animation"]},by={_gAnchor:"repeated the Anchor group heading above it (two tabs, 11.0.0)"};{let e={..._r({tablet:!0,siteSide:!0}),...An("full"),...Fn(),...Bn(),...En(),..._n(),..._t()};for(let o of Object.keys(by)){let t=ar(e[o]),r=t?z(Cy,t.label):void 0;if(!t||t.level!==2||!r||!tM[r].includes(t.label))throw new Error(`INJECTED_RETIRED (lib/document/field-groups.ts) lists "${o}", but no uniform builder makes a level-2 heading by that key whose label repeats its place's word. The heading was renamed, moved or removed and the row is stale \u2014 a list that quietly matches nothing is worse than no list.`)}}var PX=new Set(["_sContent","_sStyle","_sLayout","_sMedia"]),TX=new Map([[Io.Design,"Content"],[Io.Animation,"Animation"],...wy.map(e=>[ys[e],e])]);function OX(e){let o=`${e}.`;return Object.keys(vX).filter(t=>t.startsWith(o)).map(t=>t.slice(o.length))}function EX(e,o){let t=QN(e),r=SX(o);return t?bX(t.tier,r):r}function _X(e,o){let t=ar(o);return t?e==="Content"||e==="Animation"?ST(o,t.label):bT(o):o}function JN(e){return e==="Design"?wy:["Animation"]}function Pu(e,o){let t=[],r=new Set(OX(o)),a=new Set,n=!1,s=null;for(let[u,h]of Object.entries(e)){let I=ar(h);if(PX.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=TX.get(u);if(S!==void 0){if(I?.level!==1)throw new Error(`${o}.${u}: that key is reserved for the ${S} heading of the settings panel, but this field is ${I?`a level-${I.level} "${I.label}" header`:"not a header"}, so it cannot serve as one. Rename the section's own field.`);(u===Io.Design||u===Io.Animation)&&(n=!0),t.push(s={place:S,entries:[],adopted:!0});continue}if(!I){s||t.push(s={place:"Content",entries:[]}),s.entries.push([u,h]);continue}if(r.has(u)||co(by,u)){let O=ZN(o,u,I.label);if(I.level!==2||!O||!tM[O].includes(I.label))throw new Error(`${o}.${u}: ${r.has(u)?"RETIRED":"INJECTED_RETIRED"} (lib/document/field-groups.ts) lists this sub-heading as one whose name repeats the place it sits in, but it is a level-${I.level} "${I.label}" header in the ${O??"(unclassified)"} place. Only a level-2 header whose label is one of its place's words (PLACE_WORDS) may be retired \u2014 anything else is a heading a merchant reads for its own sake. Fix the row or drop it.`);r.has(u)&&a.add(u),t.push(s={place:O,entries:[],uniform:co(by,u)});continue}let v=ZN(o,u,I.label);if(!v)throw new Error(`${o}.${u}: the inspector group "${I.label}" is not classified in LABEL_GROUP (lib/document/field-groups.ts), so there is no way to say which of ${[...wy,"Animation"].join(" / ")} its controls belong under. Classify it \u2014 an unclassified group silently lands wherever it was declared, which is the whole bug.`);t.push(s={place:v,entries:[[u,I.level===2?h:EX(h,I.label)]]})}let l=new Set(Object.entries(e).filter(([,u])=>ar(u)).map(([u])=>u));for(let[u,h]of[["BLOCK_KEY_GROUP",oM],["KEY_GROUP",eM]]){let I=Object.keys(h).filter(S=>S.startsWith(`${o}.`)).filter(S=>!l.has(S.slice(o.length+1))&&!r.has(S.slice(o.length+1)));if(I.length)throw new Error(`${o}: ${u} (lib/document/field-groups.ts) lists ${JSON.stringify(I)}, but no fold header by that key is in this section's panel. Either the heading was renamed or removed and the row is stale, or the row names the wrong key \u2014 an override that quietly matches nothing is worse than no override.`)}let i=n?[]:[...r].filter(u=>!a.has(u));if(i.length)throw new Error(`${o}: RETIRED (lib/document/field-groups.ts) lists ${JSON.stringify(i)}, but this section has no such fold header${i.length>1?"s":""}. Either the heading was renamed or removed and the row is stale, or the row names the wrong section \u2014 a list that quietly matches nothing is worse than no list.`);let d=new Set(t.filter(u=>u.entries.length>0).map(u=>u.place)),f=Ti.filter(u=>JN(u).some(h=>d.has(h))),x={};for(let u of f){x[Io[u]]=Af(u,u===f[0]?f:null);for(let h of JN(u)){if(!d.has(h))continue;let I=t.filter(O=>O.place===h),S=I.findIndex(O=>O.adopted);S>0&&I.unshift(...I.splice(S,1));let v=I.filter(O=>O.uniform);if(v.length>0){let O=I.filter(T=>!T.uniform),R=I[0]?.adopted?1:0;I.splice(0,I.length,...O.slice(0,R),...v,...O.slice(R))}u==="Design"&&(x[ys[h]]=Lx(h));for(let O of I)for(let[R,T]of O.entries)x[R]=_X(h,T)}}return x}function rM(e){return Io.Design in e?e:{[Io.Design]:Af("Design",null),[ys.Content]:Lx("Content"),...e}}function aM(e){return Ti.some(o=>Io[o]in e)}function Tu(e){let o=Ti.filter(r=>Io[r]in e);if(o.length===0)return e;let t={...e};for(let r of o)t[Io[r]]=Af(r,r===o[0]?o:null);return t}import{jsx as Ou}from"react/jsx-runtime";import{WidthIcon as AX}from"efficient-easel/icons";import{SettingsField as FX,SettingsSwitch as BX}from"efficient-easel/panel";import{group as LX,iconOf as RX,sharedStyleKinds as DX}from"efficient-easel/screen/lib/document/box-fields";var NX="Gutter";function MX({value:e,onChange:o,labelId:t}){let r=cu(il()),a=Ii({[Ma]:e})??r,n=s=>o(s?r?void 0:$g:Wg);return Ou(FX,{label:c(NX),labelId:t,icon:RX(Ou(AX,{})),action:Ou(BX,{checked:a,onChange:n,ariaLabelledBy:t})})}function nM(){return DX({_gWidth:LX(Ff),[Ma]:{type:"custom",render:({value:e,onChange:o,id:t,name:r})=>Ou(MX,{value:e,onChange:o,labelId:`${t??r??Ma}-label`})}})}import{jsx as vy}from"react/jsx-runtime";import{group as HX,sharedStyleKinds as lM}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as WX}from"efficient-easel/screen/lib/document/device-fields";var $X="Content cannot be wider than the background.",ky=e=>c(e==="content"?"Content width":"Full width");function iM(e){let{siteWidth:o,sectionBackgroundWidth:t,sectionContentWidth:r,themeFromDocument:a}=ko(),n=Ie(o)??hn.default;return e.drawsFullOnItsOwn?{px:n,background:"full",content:"full"}:{px:n,background:(a?null:t)??"full",content:(a?null:r)??"content"}}var zX={read:In},UX={read:In,drawsFullOnItsOwn:!0},jX={read:DC,clearOnContent:{fullWidth:void 0}};function GX({source:e}){let o=e.read(Nx()),t=dl(),r=iM(e);return vy(DT,{value:o.background??r.background,changed:o.background!==null,detail:ky(r.background),onChange:a=>t(MC(a)),onReset:()=>t(sx("background"))})}function KX({source:e}){let o=e.read(Nx()),t=dl(),r=i=>t({...i,...e.clearOnContent}),a=iM(e),n=(o.background??a.background)==="content",s=wT({row:nx,label:RT,grid:{min:hn.min,max:n?a.px:hn.max,step:hn.step},valueKey:Fo.contentMax,view:"desktop",numbersIn:()=>o.contentMax!==null}),l=o.content??a.content;return vy(NT,{mode:n&&l==="full"?"content":l,px:o.contentMax??a.px,max:n?a.px:hn.max,changed:o.content!==null,detail:a.content==="full"?ky("full"):`${ky("content")} ${a.px}px`,fullClosed:n,hint:n?$X:void 0,onMode:i=>r(HC(i)),onPx:i=>r({...WC(i),...s?.unitPatch(!1)}),...s?{length:s}:{},onReset:()=>r(sx("content"))})}var sM=(e,o)=>WX("desktop",{type:"custom",render:()=>vy(e,{source:o})}),dM=e=>({[Fo.background]:sM(GX,e),[Fo.content]:sM(KX,e),[Fo.contentMax]:Dx(),...jP(nx,Fo.content)});function fM(e){let o=e?.drawsFullOnItsOwn?UX:zX;return lM({_gWidth:HX(Ff),...dM(o)})}function DFe(){return lM({...dM(jX),fullWidth:Dx()})}import{deviceMetaOf as pM}from"efficient-easel/screen/lib/document/device-fields";import{noControlMetaOf as qX}from"efficient-easel/screen/lib/document/panel-no-control-mark";function VX(e,o){let t=pM(o),r=t?t.inner:o;if(ar(r)||r?.customize===!0)return!1;if(r?.type==="slot")return!0;let a=qX(r);return a==="always"?!1:a==="authored-copy"?Zk(e):!0}function cM(e){let o=pM(e),t=o?o.inner:e,r=ar(t);return r?yT(t)?0:r.level:null}function YX(e,o,t){return t?o===0&&e===Io.Design||o===1&&e===ys.Content:!1}var XX=new WeakMap,ZX=new WeakMap;function uM(e,o="section"){let t=o==="page"?ZX:XX,r=t.get(e);if(r)return r;let a=Object.entries(e).map(([x,u])=>({key:x,field:u,level:cM(u),draws:VX(x,u)||o==="page"&&cM(u)===null&&gx(x,u)})),n=o==="section"&&a.some(x=>gx(x.key,x.field)),s=new Set;for(let x=0;x<a.length;x++){let u=a[x].level;if(u===null)continue;let h=0;for(let I=x+1;I<a.length;I++){let S=a[I].level;if(S!==null&&S<=u)break;a[I].draws&&(h+=1)}h===0&&!YX(a[x].key,u,n)&&s.add(a[x].key)}let l=n&&aM(e),i=l&&!(Io.Design in e);if(!s.size&&!i)return t.set(e,e),e;let d={};for(let x of a)s.has(x.key)||(d[x.key]=x.field);let f=Tu(l?rM(d):d);return t.set(e,f),f}import{isShown as JX,showWhenFactReaders as QX}from"efficient-shell/format";var mM=new WeakMap,eZ=new Set(Object.values(Io));function xM(e,o,t,r={}){if(!e)return e;let a=o?.props??{},n=a.id,s=QX(r,o,t),l=BP(t,{...s,parentOffersPositions:()=>{let I=Kt(t.appState,n);return I===void 0?void 0:ok(I,n)},parentTileSlot:()=>{let I=Kt(t.appState,n);return I===void 0?void 0:tk(I,n)},heroGroupDepth:()=>Wd(t.appState?.data,typeof n=="string"?n:"")}),i=[];for(let[I,S]of Object.entries(e)){let v=cw(S);!v||FP(v,"device")||JX(v,a,l)||i.push(I)}if(i.length===0)return e;let d=mM.get(e);d||mM.set(e,d=new Map);let f=i.join("\0"),x=d.get(f);if(x)return x;let u=new Set(i),h={};for(let[I,S]of Object.entries(e))u.has(I)||(h[I]=S);return i.some(I=>eZ.has(I))&&(h=Tu(h)),d.set(f,h),h}var hM={spacingFields:PT,sidesPaddingFields:_r,ownPaddingFields:XN,sectionShapeFields:_n,cardShapeFields:CT,cellWidthFields:kT,widthField:An,boxGutterFields:nM,sectionOwnWidthFields:fM,heightFields:Fn,anchorFields:Bn,customCssFields:TT,stickFields:fl,sectionThemeFields:En,animationTabFields:ku,blockSizeFields:({tablet:e,...o}={})=>oZ({...o,shorten:!0,say:zP,lengthUnits:vf,...e?{phone:tZ}:{}}),assignSectionGroups:Pu,dropEmptyHeadings:uM,rowsShownForNode:xM,SECTION_THEME_FOLLOW_LABEL:cT,BLOCK_THEME_FOLLOW_LABEL:pT,PartAnchors:XL};function Eu(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=Eu(s.arrayFields,o,t),d=Eu(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 rZ(e,o,t){let r={};for(let[l,i]of Object.entries(o.fields??{}))r[l]=i&&typeof i=="object"&&i.type==="slot"?{...i}:i;let a={...o,...o.fields?{fields:r}:null},n=IN(e,a,t),s=Object.keys(r).filter(l=>n.fields?.[l]!==r[l]);if(s.length>0)throw new Error(`efficient-web-builder: blocks.host["${e}"] declares ${s.map(l=>`"${l}"`).join(", ")}, ${s.length===1?"a name":"names"} the editor gives every section a setting under. Give the block's own field another name.`);return n}function aZ(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];nZ(e,o,a);for(let n of a){let s=n.components.filter(vd);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(!Pd(n))continue;let s=kd(n).filter(l=>!r.has(l.type)).map(l=>`"${l.type}"`);if(s.length>0)throw new Error(`efficient-web-builder: the card template of "${n}" declares ${s.join(", ")}, which the editor does not register. Register it in the registry or in blocks.host.`)}}function Py(e,o,t,r=""){let a=[];for(let[n,s]of Object.entries(t??{})){if(!s||typeof s!="object")continue;let l=`${r}${n}`;s.type==="slot"&&s.allow?.includes(e)&&a.push(`${o}.${l}`),a.push(...Py(e,o,s.arrayFields,`${l}.`),...Py(e,o,s.objectFields,`${l}.`))}return a}function nZ(e,o,t){let r=n=>{throw new Error(`efficient-web-builder: ${n} names "${un}". 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(un)&&r(`the category "${n.key}"`);let a=[...Object.entries(e.components??{}),...o.map(([n,s])=>[n,s])];for(let[n,s]of a){let l=Py(un,n,s?.fields);l.length>0&&r(`the slot ${l.map(i=>`"${i}"`).join(", ")}, whose allow list`)}}function IM(e,o){let t=Object.entries(o?.host??{}),r=o?.categories??[],a=Bg(o);if(aZ(e,t,r),!a&&t.length===0&&r.length===0)return e;let n=e.components,s=t.map(([x])=>x).filter(x=>x in n);if(s.length>0)throw new Error(`efficient-web-builder: blocks.host registers ${s.map(x=>`"${x}"`).join(", ")}, which ${s.length===1?"is already a block":"are already blocks"} of the editor. Give a host's block a type of its own.`);let l=x=>a?a.offers(x):!0,i=Object.keys(n).filter(x=>!l(x)),d={};for(let[x,u]of Object.entries(n)){let h=a?Eu(u?.fields,l,i):u?.fields;d[x]=h===u?.fields?u:{...u,fields:h}}if(t.length>0){let x=new Set(t.map(([I])=>I)),u=e.categories?.structure?.components??[],h={...sy(Object.keys(n),u,x),isHostBlock:I=>x.has(I),inspector:hM};for(let[I,S]of t){let v=rZ(I,S,h),O=Eu(v.fields,l,i);d[I]=O===v.fields?v:{...v,fields:O}}}let f=[];for(let[x,u]of Object.entries(e.categories??{})){let h=u?.components??[],I=h.filter(l);I.length===h.length?f.push([x,u]):I.length>0&&f.push([x,{...u,components:I}])}for(let x of r){let u=x.components.filter(v=>v in d&&l(v));if(u.length===0)continue;let h=f.find(([v])=>v===x.key);if(h){let[,v]=h,O=new Set(v.components??[]);h[1]={...v,components:[...v.components??[],...u.filter(R=>!O.has(R))]};continue}let I=[x.key,{title:x.title,components:u}],S=x.before?f.findIndex(([v])=>v===x.before):-1;S===-1?f.push(I):f.splice(S,0,I)}return{...e,components:d,categories:Object.fromEntries(f)}}function gM(){let e=iZ();return sZ(()=>IM(lZ(e),mn(e)),[e])}import{jsx as Ey,Fragment as OZ,jsxs as EZ}from"react/jsx-runtime";import{useContext as _Z,useEffect as AZ,useMemo as Ru,useRef as MM}from"react";import{EaselCanvas as FZ,repeatCopyAt as BZ,useEasel as LZ}from"efficient-easel/easel";import{jsx as Ty}from"react/jsx-runtime";import{useEffect as pZ,useState as uZ}from"react";import{Banner as mZ}from"efficient-shell/ui";import{useSyncExternalStore as dZ}from"react";import{useScreenDocument as fZ}from"efficient-easel/screen/components/ScreenDocumentContext";var cZ=()=>()=>{},yM=()=>null;function _u(e){return dZ(e?e.subscribe:cZ,e?e.state:yM,e?e.state:yM)}function Au(){let{adapter:e}=fZ();return e?.pinnedChrome}var Fu={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."},xZ={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."},hZ=Fu.load,IZ=Fu.lock,gZ=Fu.conflict,yZ=Fu.save;function SZ(e){if(!e)return null;if(e.loadFailed)return c(hZ);if(e.lockHolder)return c(IZ,{name:e.lockHolder.name||c("Somebody else")});if(e.conflict)return c(gZ);if(e.saveFailed)return c(yZ);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(xZ[o.problem],{section:t,name:r})}function bZ({report:e}){let o=SZ(_u(e)),[t,r]=uZ(null);return pZ(()=>{o||r(null)},[o]),!o||t===o?null:Ty("aside",{className:"sf-canvas-notice",children:Ty(mZ,{tone:"warning",onDismiss:()=>r(o),children:o})})}function SM(){return Ty(bZ,{report:Au()})}import{jsx as Lu}from"react/jsx-runtime";import{useState as DM}from"react";import{Banner as CZ,Button as kZ}from"efficient-shell/ui";import{UndoIcon as vZ}from"efficient-shell/icons/efficient";import{useScreenDocument as PZ}from"efficient-easel/screen/components/ScreenDocumentContext";import{useSyncExternalStore as CM}from"react";var Oi=!1,Ss=null,Oy=new Set;function _i(){for(let e of Oy)e()}function kM(e){return Oy.add(e),()=>{Oy.delete(e)}}function vM(){Oi||(Oi=!0,_i())}function PM(){Oi&&(Oi=!1,_i())}function bM(){return Oi}function TM(){return CM(kM,bM,bM)}function wM(){return Ss}function Bu(){Ss&&(Ss=null,_i())}function OM(){return CM(kM,wM,wM)}var Ei=class extends Error{constructor(){super("The editor's last changes could not be saved, so nothing was restored."),this.name="HeldEditsNotSaved"}};async function EM(e,o,t,{flushSave:r,reload:a}){if(!await r())throw new Ei;let n=await e.restore(o,t);return Of(n.liveState),a(),n}async function _M({access:e,version:o,page:t,...r}){let a=await EM(e,o.id,t?{page:t.id}:{},r);Ss={title:wZ(o,t??null),undo:a.undo},_i()}async function AM({access:e,...o}){let t=Ss?.undo;t&&(await EM(e,t,{},o),Ss=null,_i())}function FM(e){return e.name?e.name:e.kind==="draft_before_restore"?c("Draft before restore"):c("Version {n}",{n:e.number})}function wZ(e,o){return e.kind==="draft_before_restore"?c("Your drafts from before the restore are back"):o?c("{page} from version {n} is now your draft",{page:o.name,n:e.number}):c("Version {n} is now your draft",{n:e.number})}function BM(e){let o=e.changes.filter(r=>r.kind==="page").length,t=[...o?[Mt("{n} page","{n} pages",o)]:[],...e.changes.filter(r=>r.kind!=="page").map(r=>r.name)];if(!t.length)return"";try{return new Intl.ListFormat(ex(),{type:"conjunction"}).format(t)}catch{return t.join(", ")}}function LM(e){return e.change==="take_down"?c("{name} (taken down)",{name:e.name}):e.name}function RM(e,o=new Date){let t=new Date(e);if(Number.isNaN(t.getTime()))return"";let r=ex(),a=new Intl.DateTimeFormat(r,{hour:"numeric",minute:"2-digit"}).format(t);if(t.toDateString()===o.toDateString())return c("Today, {time}",{time:a});let n=new Intl.DateTimeFormat(r,{day:"numeric",month:"short",...t.getFullYear()===o.getFullYear()?{}:{year:"numeric"}}).format(t);return c("{day}, {time}",{day:n,time:a})}import{useSettledAction as TZ}from"efficient-easel/easel";function NM(){let e=OM(),{adapter:o,flushSave:t,reloadFromServer:r}=PZ(),a=o.siteVersions,[n,s]=DM(!1),[l,i]=DM(!1),d=async()=>{if(!(!a||n)){s(!0),i(!1);try{await AM({access:a,flushSave:t,reload:r})}catch{i(!0)}finally{s(!1)}}},f=TZ({onPress:()=>{d()},busy:n});return e?Lu("aside",{className:"sf-canvas-notice",children:Lu(CZ,{tone:l?"danger":"info",title:e.title,onDismiss:Bu,action:a&&e.undo?Lu(kZ,{variant:"secondary",size:"sm",leftIcon:Lu(vZ,{}),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 RZ,REPEAT_ATTRIBUTE as _y,REPEAT_INDEX_ATTRIBUTE as Ay}from"efficient-easel/draw";import{usePreviewParts as DZ}from"efficient-easel/draw/client";import{ScreenDocumentContext as NZ}from"efficient-easel/screen/components/ScreenDocumentContext";function HM(e){let{mirrorHostStyles:o}=cl(),t=QT(),r=Fy(),a=il(),n=_Z(NZ),s=tT(n?.docId??null),l=LZ(v=>v.appState.data),i=rT(s,l),d=JSON.stringify(i),f=Ru(()=>i,[d]),x=Ru(()=>({...e.metadata??t??{},...r,...f}),[e.metadata,t,r,f]);AZ(()=>(oy(a),()=>oy(null)),[a]);let u=MM(null),h=MZ(u),{onDocument:I}=e,S=v=>{u.current=v,I?.(v)};return EZ(OZ,{children:[Ey(NM,{}),Ey(SM,{}),Ey(FZ,{...e,onDocument:S,typing:h,metadata:x,height:"fill",mirrorStyles:o,frameWrapper:Vf})]})}function Fy(){let{sectionBackgroundWidth:e,themeFromDocument:o}=ko(),t=il();return Ru(()=>$C(o?null:e,t),[e,t,o])}function MZ(e){let o=Mf(),t=DZ(),r=MM({parts:t});return r.current={parts:t},Ru(()=>{let a=(n,s)=>{let l=$f(n,o),i,d=null,f=s??(l?null:rh(null,e.current,n)),x=!l&&f?BZ(f):null,u=x?RZ(n):null;if(x&&f&&u?.propKey){l=Uf({...x,nodeId:u.nodeId,key:u.propKey},o),i=u.propKey;let v=f.closest(`[${_y}][${Ay}]`),O=`[${_y}="${zf(v?.getAttribute(_y)??"")}"][${Ay}="${zf(v?.getAttribute(Ay)??"")}"]`;d=()=>(f.ownerDocument??e.current)?.querySelector(O)??null}if(!l)return null;let h=f,I=()=>(h=rh(h,d?d():h?.ownerDocument??e.current,n),h),S=I();return S?{element:I,value:l.value,rules:l.rules,multiline:l.multiline,skip:l.skip,write:l.write,key:i,toolbar:{offered:l.offered,colors:l.offered.length>0?sf(lf(S)):void 0,colorNameOf:nf}}:null};return{at:n=>{let s=n.closest(`[${Ue}]`),l=s?.getAttribute(Ue);return s&&l?a(l,s):null},atSelection:()=>{let n=r.current.parts.selectedPartId;return n?a(n,null):null},onCopyText:n=>S0(n,o),copyValue:n=>y0(n,o),onChange:n=>{if(!n.typing){ah(null);return}let s=n.element.closest(`[${Ue}]`)?.getAttribute(Ue)??null;ah(s),s&&r.current.parts.selectedPartId!==s&&r.current.parts.select(s)}}},[o,e])}var Du=[{key:"about",label:"About",slugs:["about"]},{key:"contact",label:"Contact",slugs:["contact"]},{key:"faq",label:"FAQ",slugs:["faq"]},{key:"gallery",label:"Gallery",slugs:["gallery"]},{key:"store-locator",label:"Store locator",slugs:["store-locator"]},{key:"policies",label:"Policies",slugs:["warranty","shipping-returns","privacy-policy","terms-and-conditions"]}],bs="all",Nu="template";function WM(e){for(let o=0;o<Du.length;o++){let t=Du[o].slugs.indexOf(e);if(t>=0)return o*100+t}return Number.MAX_SAFE_INTEGER}function $M(e){return e.map((o,t)=>({s:o,i:t})).filter(({s:o})=>o.source==="library").sort((o,t)=>WM(o.s.slug)-WM(t.s.slug)||o.i-t.i).map(({s:o})=>o)}function By(e){return e.filter(o=>o.source==="template")}function zM(e){let o=new Set($M(e).map(t=>t.slug));return Du.filter(t=>t.slugs.some(r=>o.has(r)))}function UM(e,o){if(e===Nu)return By(o);let t=$M(o);if(e===bs)return t;let r=Du.find(a=>a.key===e);return r?t.filter(a=>r.slugs.includes(a.slug)):[]}var jM=3;function GM(e,o){let t=Array.from({length:e},()=>[]);return o.forEach((r,a)=>t[a%e].push(r)),t}function YM({open:e,onClose:o,takenSlugs:t,onCreated:r}){let a=jZ(),{adapter:n,siteId:s,templateId:l}=UZ(),i=Ao(a).pages,d=!l&&!!(i.starters&&i.createFromStarter),f=$Z(()=>s?{siteId:s}:{},[s]),x=gM(),u=Fy(),[h,I]=Ly(null),[S,v]=Ly(bs),[O,R]=Ly(null),T=zZ(null),g=WZ();HZ(()=>{if(!e)return;if(v(bs),!d){I([]);return}let P=!0;return I(null),i.starters(f).then(C=>P&&I(C),()=>{P&&(I([]),VM.error(c("Couldn\u2019t load the pages \u2014 please retry.")))}),()=>{P=!1}},[e,d,i,f]);let w=async(P,C)=>{if(!O){R(P);try{r(await C())}catch{VM.error(c("Couldn\u2019t add the page \u2014 please retry."))}finally{R(null)}}},_=()=>{if(!n.createPage)return;let P=c("New page");w("blank",()=>n.createPage({slug:qM(P,t),title:P,layout:{}}))},E=P=>{w(P.id,()=>i.createFromStarter(P.id,{title:P.title,slug:qM(P.slug,t),...f}))},D=h??[],b=zM(D),F=UM(S,D),y=GM(jM,F),k=KM("nav",{"aria-label":c("Pages"),className:"sf-add-page-nav",children:[To(Ry,{label:c("All pages"),active:S===bs,onClick:()=>v(bs)}),b.map(P=>To(Ry,{label:c(P.label),active:S===P.key,onClick:()=>v(P.key)},P.key)),By(D).length>0?To("div",{className:"sf-add-page-group",children:To(Ry,{label:c("From your template"),active:S===Nu,onClick:()=>v(Nu)})}):null]});return To(qZ,{open:e,onClose:o,size:"full",title:c("Add page"),initialFocus:T,children:To(ZZ,{sidebarTop:To("div",{className:"sf-add-page-blank",children:To(KZ,{variant:"secondary",size:"md",leftIcon:To(GZ,{"aria-hidden":!0}),onClick:_,disabled:!n.createPage||O!==null,children:c("Blank page")})}),sidebar:k,children:KM("div",{ref:T,tabIndex:-1,role:"region","aria-labelledby":g,className:"sf-add-page",children:[To(JZ,{id:g,level:2,as:"h3",children:c("Pages for your site")}),To(XZ,{tone:"default",className:"sf-add-page-sub",children:c("Choose a page and change the text, images and more.")}),h===null?To(YZ,{label:c("Loading\u2026")}):F.length===0?To(VZ,{title:c("No pages to start from"),description:c("Start with a blank page, then add sections.")}):To("div",{className:"sf-add-page-cards",children:y.map((P,C)=>To("div",{className:"sf-add-page-column",children:P.map(B=>To(pR,{starter:B,config:x,metadata:u,busy:O===B.id,onAdd:E},B.id))},C))})]})})})}import{jsx as QZ}from"react/jsx-runtime";import{createContext as eJ,useContext as XM,useEffect as oJ,useRef as ZM}from"react";var Dy=eJ(null);function ELe({open:e,children:o}){let t=ZM(!!e);return QZ(Dy.Provider,{value:t,children:o})}function JM(){let e=XM(Dy);return()=>e?.current?(e.current=!1,!0):!1}function QM(e){let o=XM(Dy),t=ZM(e);t.current=e,oJ(()=>{o?.current&&(t.current.setView("pages"),t.current.reveal())},[o])}var nH="sf-editor-pages-collapsed-groups";function SJ(){let e=My(),{siteId:o,templateId:t}=sH(),r=Ao(e).pages;if(!(!r.duplicate||t))return(a,n)=>r.duplicate(a.id,{...n,...o?{siteId:o}:{}})}function lH({onNavigate:e,onClose:o,activeSurface:t,onPreviewSurface:r}){let a=My().chrome?.pageRows,n=IJ(),{adapter:s,capabilities:l,ready:i,currentSlug:d}=sH(),f=Ln(),{rows:x,reload:u,setRows:h,getRows:I}=ml(),[S,v]=$a(""),[O,R]=$a(!1),[T,g]=$a(null),[w,_]=$a(!1),E=!!Ao(My()).pages.createFromStarter,D=SJ(),[b,F]=$a(null),[y,k]=$a(()=>{if(typeof window>"u")return new Set;try{let N=window.localStorage.getItem(nH);return new Set(N?JSON.parse(N):[])}catch{return new Set}});eH(()=>{try{window.localStorage.setItem(nH,JSON.stringify([...y]))}catch{}},[y]);let P=N=>k(te=>{let he=new Set(te);return he.has(N)?he.delete(N):he.add(N),he}),C=oH(()=>EP(x??[]),[x]),B=S.trim().toLowerCase(),H=N=>!B||N.toLowerCase().includes(B),q=N=>B?!0:!y.has(N),$=oH(()=>new Set((x??[]).map(N=>N.slug)),[x]),le=()=>{if(l.pageCreationInAdminForm&&!E){n.send("storefront-editor:new-page");return}g(null),_(!0)},pe=JM();eH(()=>{pe()&&le()},[]);let ee=l.hasSiteSettings&&!!s.createPage,xe=async()=>{if(!(!i||O||!s.createPage)){R(!0),g(null);try{let N=await s.createPage(xT(c("New popup"),$));await u(),e(N.slug)}catch{g(c("Couldn\u2019t add the popup \u2014 please retry."))}finally{R(!1)}}},oe=aJ(null),[ie,ge]=$a(null),Re=()=>{if(!ee)return le();if(ie)return ge(null);let N=oe.current?.getBoundingClientRect();N&&ge({top:N.bottom+6,right:Math.max(8,window.innerWidth-N.right)})},$e=N=>{let te=x??[],he=s.deletePage;if(!i||O||!he||te.length<=1)return;let De=te.findIndex(ve=>ve.id===N.id),Oo=te.filter(ve=>ve.id!==N.id),Zo=N.slug===d;Kf(N.id,!0),h(Oo),g(null),Zo&&Oo[0]&&e(Oo[0].slug);let Eo=()=>{Kf(N.id,!1);let ve=I()??[];if(ve.some(Za=>Za.id===N.id))return;let yt=[...ve];yt.splice(Math.max(0,Math.min(De,yt.length)),0,N),h(yt)};rH.undoable(c("Deleted \u201C{name}\u201D",{name:N.label}),{actionLabel:c("Undo"),commit:async ve=>{await he(N.id,ve),Kf(N.id,!1)},undo:()=>{Eo(),Zo&&e(N.slug)},onFail:()=>{Eo(),rH.error(c("Couldn\u2019t delete the page \u2014 please retry."))}})},yo=N=>n.send("storefront-editor:open-page",{slug:N}),oo=N=>{if(!H(N.label))return null;let te=!t&&N.slug===d,he=l.canDeletePagesInline&&(x??[]).length>1,De=Cf(N),Oo=OP(N),Zo=[...De?[{label:c("Dynamic"),tone:"info"}]:[],...Oo?[{label:c("Lightbox"),tone:"success"}]:[],...N.draft?[{label:c("draft"),tone:"draft"}]:[]],Eo=Zo.length>0?Zo:void 0,ve=!!D&&gJ(N),yt=ve||l.pageCreationInAdminForm||he?Mu(tJ,{children:[ve&&ke(Hu,{kind:"plain",label:c("Duplicate \u201C{name}\u201D",{name:N.label}),disabled:O,onClick:()=>F(N),children:ke(uJ,{size:13})}),l.pageCreationInAdminForm&&ke(Hu,{kind:"plain",label:c("Page settings for \u201C{name}\u201D",{name:N.label}),onClick:()=>yo(N.slug),children:ke(xJ,{size:13})}),he&&ke(Hu,{kind:"delete",label:c("Delete \u201C{name}\u201D",{name:N.label}),disabled:O,onClick:()=>$e(N),children:ke(Ny,{name:"trash",size:13,strokeWidth:1.7,rounded:!0})})]}):void 0;return ke(aH,{icon:ke(mJ,{size:14}),name:N.label,selected:te,onSelect:()=>e(N.slug),badge:Eo,actions:yt,rowProps:{"data-page-slug":N.slug}},N.id)},io=(N,te,he)=>{let De=he.filter(Boolean);if(De.length===0)return null;let Oo=q(N);return Mu(rJ,{children:[ke(cJ,{count:De.length,countLabel:Mt("{n} page","{n} pages",De.length),expanded:Oo,onToggle:()=>P(N),children:te}),Oo&&De]},N)},So=(a?.rows??[]).filter(N=>H(N.label)).map(N=>{let te=t===N.key;return ke(aH,{icon:N.icon,name:N.label,selected:te,onSelect:()=>r(N.key),badge:{label:c("Preview"),tone:"warning"},actions:ke(Hu,{kind:"plain",label:c("Open the {name} in a new tab",{name:N.label}),onClick:()=>window.open(N.href,"_blank","noopener,noreferrer"),children:ke(Ny,{name:"external-link",size:13,strokeWidth:1.7,rounded:!0})}),rowProps:{"data-shop-surface":N.key}},N.key)}),Xe=l.hasSiteSettings&&!!a,bo=(()=>{if(x===null)return null;let N=[],te=!1;for(let he of C){Xe&&!te&&he.key.startsWith("system:")&&(N.push(io("shop",a.title,So)),te=!0);let De=he.key===TP||he.label===PP?c(he.label):he.label;N.push(io(he.key,De,he.rows.map(oo)))}return Xe&&!te&&N.push(io("shop",a.title,So)),N})();return Mu("div",{className:"sf-pages",children:[ke(nJ,{icon:ke(hJ,{}),title:c("Pages"),context:f,actions:ke(sJ,{buttonRef:oe,label:ee?c("Add"):c("New page"),hasPopup:ee?"menu":void 0,expanded:ee?ie!==null:void 0,onClick:Re,children:ke(pJ,{size:15})})}),ie&&ke(dJ,{portal:!0,style:{top:ie.top,right:ie.right},onClose:()=>ge(null),children:Mu("div",{role:"menu","aria-label":c("Add"),children:[ke(tH,{role:"menuitem",onClick:()=>{ge(null),le()},children:c("Page")}),ke(tH,{role:"menuitem",disabled:O,onClick:()=>{ge(null),xe()},children:c("Popup")})]})}),ke("div",{className:"sf-pages-find",children:ke(lJ,{type:"search",leftIcon:ke(Ny,{name:"search",size:14,rounded:!0}),placeholder:c("Search all pages\u2026"),value:S,onChange:N=>v(N.target.value),"aria-label":c("Search all pages")})}),T&&!w&&ke("div",{className:"sf-note sf-note--error",role:"alert",children:T}),bo===null?ke(iJ,{label:c("Loading\u2026")}):bo.some(Boolean)?ke(fJ,{ariaLabel:c("Pages"),className:"sf-scroll",children:bo}):ke("div",{className:"sf-note",children:S.trim()?c("No pages match your search"):c("No pages yet. Add one with + above.")}),D&&b&&ke(yJ,{source:{title:b.label,slug:b.slug},taken:$,host:If(),duplicate:N=>D(b,N),onClose:()=>F(null),onDuplicated:N=>{F(null),u(),e(N.slug)}},b.id),w?ke(YM,{open:!0,onClose:()=>_(!1),takenSlugs:$,onCreated:N=>{_(!1),u(),e(N.slug)}}):null]})}import{jsx as fH}from"react/jsx-runtime";import{createContext as kJ,useCallback as vJ,useContext as PJ,useMemo as TJ,useState as OJ}from"react";import{CanvasChromeContext as EJ}from"efficient-easel/easel";import{useSelectHandler as _J}from"efficient-easel/draw/client";import{parseHexColor as bJ,parseOption as wJ}from"efficient-shell/format";var Wu=["chat-bubble-left-right","chat-bubble-oval-left-ellipsis","chat","megaphone","phone","sparkles"],ws=Wu[0],CJ=["right","left"],za="right";function $u(e){return Wu.includes(e??"")?e:ws}function iH(e){return wJ(CJ,za,e)}function dH(e){return e&&bJ(e)===e.toLowerCase()?e.toLowerCase():""}var cH="chat",zu={enabled:!0,title:"",subtitle:"",greeting:"",launcherColor:"",launcherIcon:"",launcherPosition:za,launcherLabel:"",showOnPhones:!0};function lRe(e){return{enabled:e.enabled,title:e.title,subtitle:e.subtitle,greeting:e.greeting,launcherColor:dH(e.launcherColor),launcherIcon:e.launcherIcon?$u(e.launcherIcon):"",launcherPosition:iH(e.launcherPosition),launcherLabel:e.launcherLabel??"",showOnPhones:e.showOnPhones!==!1}}var pH=kJ({chat:zu,setChat:()=>{},setSelected:()=>{},setSelectHandler:()=>{}});function iRe({children:e,chat:o=zu,onChatChange:t}){let[r,a]=OJ(!1),n=vJ(d=>t?.(d),[t]),{select:s,setSelectHandler:l}=_J(),i=TJ(()=>({selected:()=>r?cH:null,select:d=>d===cH&&s()}),[r,s]);return fH(pH.Provider,{value:{chat:o,setChat:n,setSelected:a,setSelectHandler:l},children:fH(EJ.Provider,{value:i,children:e})})}var Uu=()=>PJ(pH);import{jsx as Hy}from"react/jsx-runtime";import{DesktopIcon as AJ,PhoneIcon as FJ,TabletIcon as BJ}from"efficient-easel/icons";import{VIEW_TIERS as LJ,VIEW_TIER_LABEL as RJ}from"efficient-easel/draw";var DJ={desktop:Hy(AJ,{}),tablet:Hy(BJ,{}),mobile:Hy(FJ,{})},uH=LJ.map(e=>({id:e,get label(){return c(RJ[e])},icon:DJ[e]}));import{PreviewDeviceContext as Yae}from"efficient-easel/draw/client";import{jsx as NJ}from"react/jsx-runtime";import{createContext as MJ,useCallback as mH,useContext as HJ,useMemo as WJ,useRef as $J}from"react";var zJ=Object.fromEntries(Rf.map(e=>[e,{value:"",error:null}])),xH=MJ({links:HT,rows:zJ,canSave:!1,saveLink:async()=>({ok:!1,error:"There is no website to save to."}),openPanel:()=>{},setOpenHandler:()=>{}});function gRe({children:e,value:o}){let t=$J(()=>{}),r=mH(()=>t.current(),[]),a=mH(s=>{t.current=s},[]),n=WJ(()=>({...o,openPanel:r,setOpenHandler:a}),[o,r,a]);return NJ(xH.Provider,{value:n,children:e})}var Ai=()=>HJ(xH);import{jsx as UJ}from"react/jsx-runtime";import{createContext as jJ,useContext as GJ,useMemo as KJ,useState as qJ}from"react";var hH=jJ(null);function wRe({children:e}){let[o,t]=qJ(null),r=KJ(()=>({surface:o,setSurface:t}),[o]);return UJ(hH.Provider,{value:r,children:e})}function IH(){return GJ(hH)??{surface:null,setSurface:()=>{}}}import{createPreviewSelectionContext as VJ}from"efficient-easel/draw/client";var{Provider:vRe,useSelection:ju}=VJ("selectedHeroPart");import{jsx as be,jsxs as qr,Fragment as F2}from"react/jsx-runtime";import{useEasel as wte,useRootFields as Cte}from"efficient-easel/easel";import{EmptyState as kte}from"efficient-shell/ui";function gH({kind:e,pageName:o}){return{name:o?.trim()||c("This page"),kindLabel:Cf({kind:e})?c("Template"):c("Page")}}import{headWords as D2,InspectorHead as vte,InspectorIconButton as B2}from"efficient-easel/chrome";import{DuplicateIcon as Pte,TrashIcon as Tte}from"efficient-easel/icons";import{panelFieldsOf as Ote}from"efficient-easel/screen/lib/document/panel-fields";import{jsx as M,Fragment as ue,jsxs as me}from"react/jsx-runtime";import{BlockBannerIcon as ZJ,BlockBoxIcon as JJ,BlockButtonIcon as QJ,BlockDividerIcon as SH,BlockFooterIcon as bH,BlockHeadingIcon as eQ,BlockProductIcon as oQ,BlockSocialIcon as tQ,BlockTextIcon as rQ,CardPaymentIcon as aQ,ChatIcon as nQ,AccountIcon as sQ,GlobeIcon as lQ,GridIcon as iQ,ImageIcon as $y,MapIcon as dQ,MediaIcon as fQ,PageIcon as cQ}from"efficient-easel/icons";import{jsx as Wy,Fragment as YJ,jsxs as XJ}from"react/jsx-runtime";var yH=XJ(YJ,{children:[Wy("circle",{cx:"9",cy:"20",r:"1.3"}),Wy("circle",{cx:"18",cy:"20",r:"1.3"}),Wy("path",{d:"M2.5 3.5h3l2.3 11.3a1.6 1.6 0 0 0 1.6 1.3h8.1a1.6 1.6 0 0 0 1.6-1.2L21 7H6"})]});var pQ={header:me(ue,{children:[M("rect",{x:"3",y:"5",width:"18",height:"14",rx:"2"}),M("path",{d:"M3 9.5h18"})]}),social:me(ue,{children:[M("circle",{cx:"6",cy:"12",r:"2.5"}),M("circle",{cx:"18",cy:"6",r:"2.5"}),M("circle",{cx:"18",cy:"18",r:"2.5"}),M("path",{d:"M8.2 10.8l7.6-3.6M8.2 13.2l7.6 3.6"})]}),ticker:me(ue,{children:[M("rect",{x:"3",y:"8.5",width:"18",height:"7",rx:"2"}),M("path",{d:"M6 12h3.5M11.5 12h2M15.5 12h2.5"})]}),FooterLogo:me(ue,{children:[M("path",{d:"M4 15.5h6M4 18h4"}),M("path",{d:"M14 8.5l3 7 3-7"})]}),FooterMenu:M("path",{d:"M6 7h12M6 11h12M6 15h8M6 19h8"}),FooterGroup:me(ue,{children:[M("rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",strokeDasharray:"3 2.5"}),M("path",{d:"M8 9h8M8 13h8M8 16h5"})]}),FooterText:M("path",{d:"M5 7h14M5 12h14M5 17h9"}),FooterEmailSignup:me(ue,{children:[M("rect",{x:"3",y:"6",width:"18",height:"12",rx:"2"}),M("path",{d:"M3.5 7l8.5 6 8.5-6"})]}),SearchBlock:me(ue,{children:[M("circle",{cx:"11",cy:"11",r:"6"}),M("path",{d:"M20 20l-4.2-4.2"})]}),CartBlock:yH,CountrySwitchBlock:me(ue,{children:[M("circle",{cx:"12",cy:"12",r:"8.5"}),M("path",{d:"M3.5 12h17M12 3.5c2.6 2.4 3.6 5.2 3.6 8.5s-1 6.1-3.6 8.5M12 3.5c-2.6 2.4-3.6 5.2-3.6 8.5s1 6.1 3.6 8.5"})]}),ThemeSwitchBlock:me(ue,{children:[M("circle",{cx:"12",cy:"12",r:"8.5"}),M("path",{d:"M12 3.5v17M12 5.5l6 6M12 10.5l5.2 5.2M12 15.5l2.8 2.8"})]}),LegalLineBlock:me(ue,{children:[M("path",{d:"M3 9h18"}),M("path",{d:"M3 14h8M14 14h2M18 14h3"})]}),Hero:me(ue,{children:[M("rect",{x:"3",y:"4",width:"18",height:"16",rx:"2"}),M("path",{d:"M7 13.5h7M7 16.5h10"})]}),HeroSlide:me(ue,{children:[M("rect",{x:"3",y:"5",width:"18",height:"14",rx:"2"}),M("path",{d:"M7 15h6M16 9.5h.01M9.5 12l-2.5 3"})]}),HeroSingle:me(ue,{children:[M("rect",{x:"3",y:"4",width:"18",height:"16",rx:"2"}),M("path",{d:"M10.5 8.5l4 2.5-4 2.5z"}),M("path",{d:"M7 17h7"})]}),Collections:me(ue,{children:[M("rect",{x:"3",y:"5",width:"4.6",height:"14",rx:"1.3"}),M("rect",{x:"9.7",y:"5",width:"4.6",height:"14",rx:"1.3"}),M("rect",{x:"16.4",y:"5",width:"4.6",height:"14",rx:"1.3"})]}),CollectionCard:me(ue,{children:[M("rect",{x:"6",y:"4",width:"12",height:"16",rx:"2"}),M("path",{d:"M9 15h6M9 17.5h4"})]}),AlloyWheelsListing:me(ue,{children:[M("path",{d:"M3 5h5M3 9h5M3 13h5M3 17h5"}),M("rect",{x:"11.5",y:"5",width:"4.2",height:"5",rx:"1"}),M("rect",{x:"17.3",y:"5",width:"4.2",height:"5",rx:"1"}),M("rect",{x:"11.5",y:"12",width:"4.2",height:"5",rx:"1"}),M("rect",{x:"17.3",y:"12",width:"4.2",height:"5",rx:"1"})]}),CatalogFilterBar:me(ue,{children:[M("path",{d:"M3 7h9M15.5 7H21"}),M("circle",{cx:"13.5",cy:"7",r:"1.7"}),M("path",{d:"M3 12h4M10.5 12H21"}),M("circle",{cx:"8.5",cy:"12",r:"1.7"}),M("path",{d:"M3 17h9M15.5 17H21"}),M("circle",{cx:"13.5",cy:"17",r:"1.7"})]}),ProductGrid:me(ue,{children:[M("rect",{x:"3",y:"5",width:"4.8",height:"6",rx:"1"}),M("rect",{x:"9.6",y:"5",width:"4.8",height:"6",rx:"1"}),M("rect",{x:"16.2",y:"5",width:"4.8",height:"6",rx:"1"}),M("rect",{x:"3",y:"13",width:"4.8",height:"6",rx:"1"}),M("rect",{x:"9.6",y:"13",width:"4.8",height:"6",rx:"1"}),M("rect",{x:"16.2",y:"13",width:"4.8",height:"6",rx:"1"})]}),RelatedProducts:me(ue,{children:[M("path",{d:"M3 5h10"}),M("rect",{x:"3",y:"9.5",width:"5",height:"9",rx:"1"}),M("rect",{x:"9.5",y:"9.5",width:"5",height:"9",rx:"1"}),M("rect",{x:"16",y:"9.5",width:"5",height:"9",rx:"1"})]}),Gallery:me(ue,{children:[M("rect",{x:"3",y:"4",width:"11",height:"16",rx:"2"}),M("rect",{x:"15.5",y:"4",width:"5.5",height:"7.5",rx:"1.5"}),M("rect",{x:"15.5",y:"12.5",width:"5.5",height:"7.5",rx:"1.5"})]}),GalleryB:me(ue,{children:[M("rect",{x:"3.5",y:"4",width:"7.5",height:"7.5",rx:"1.5"}),M("rect",{x:"13",y:"4",width:"7.5",height:"7.5",rx:"1.5"}),M("rect",{x:"3.5",y:"12.5",width:"7.5",height:"7.5",rx:"1.5"}),M("rect",{x:"13",y:"12.5",width:"7.5",height:"7.5",rx:"1.5"})]}),GalleryItem:me(ue,{children:[M("rect",{x:"4",y:"5",width:"16",height:"14",rx:"2"}),M("circle",{cx:"9",cy:"10",r:"1.6"}),M("path",{d:"M20 15.5l-4.5-4L7 19"})]}),Events:me(ue,{children:[M("rect",{x:"4",y:"5",width:"16",height:"15",rx:"2"}),M("path",{d:"M4 9.5h16M8.5 3v4M15.5 3v4M8 14h2M14 14h2"})]}),PostCard:me(ue,{children:[M("rect",{x:"4",y:"3.5",width:"16",height:"17",rx:"2"}),M("rect",{x:"6.5",y:"6",width:"11",height:"6",rx:"1"}),M("path",{d:"M6.5 14.5h11M6.5 17.5h7"})]}),Manifesto:me(ue,{children:[M("path",{d:"M7 8h3.2v4c0 1.6-1 2.6-3 3.2"}),M("path",{d:"M14 8h3.2v4c0 1.6-1 2.6-3 3.2"})]}),Stats:me(ue,{children:[M("path",{d:"M3.5 20h17"}),M("path",{d:"M6 20v-7M11 20V7M16 20v-5M20.5 20v-9"})]}),Logos:me(ue,{children:[M("circle",{cx:"6",cy:"12",r:"2.6"}),M("rect",{x:"10",y:"9.4",width:"5.2",height:"5.2",rx:"1.2"}),M("path",{d:"M19 9.2l2.4 5h-4.8z"})]}),Ticker:me(ue,{children:[M("rect",{x:"3",y:"8.5",width:"18",height:"7",rx:"2"}),M("path",{d:"M6 12h3.5M11.5 12h2M15.5 12h2.5"})]}),SectionHeader:me(ue,{children:[M("rect",{x:"3.5",y:"6",width:"5",height:"5",rx:"1.2"}),M("path",{d:"M11 8.5h9M3.5 15.5h17"})]}),IntroBleed:me(ue,{children:[M("rect",{x:"3",y:"4",width:"18",height:"16",rx:"2"}),M("path",{d:"M3 13.5h18M7 16.8h6"})]}),Split:me(ue,{children:[M("rect",{x:"3",y:"5",width:"8",height:"14",rx:"1.5"}),M("path",{d:"M14 8.5h6M14 12h6M14 15.5h4"})]}),Eyebrow:me(ue,{children:[M("path",{d:"M4 8.5h4.5M11 8.5h9"}),M("path",{d:"M4 14.5h16"})]}),HeroGroup:me(ue,{children:[M("rect",{x:"3.5",y:"4.5",width:"17",height:"15",rx:"2"}),M("path",{d:"M7 9h8M7 12.5h10M7 16h6"})]}),Form:me(ue,{children:[M("rect",{x:"3",y:"4",width:"18",height:"16",rx:"2"}),M("path",{d:"M6.5 9h11M6.5 12.5h11"}),M("rect",{x:"6.5",y:"15",width:"6.5",height:"2.6",rx:"1.3"})]}),LogoBlock:M(ue,{children:M("path",{d:"M12 3.5l7.5 3.2v5.1c0 4.2-3.2 7.1-7.5 8.7-4.3-1.6-7.5-4.5-7.5-8.7V6.7z"})}),Spacer:me(ue,{children:[M("path",{d:"M12 4v6M9.5 6.5L12 4l2.5 2.5M12 20v-6M9.5 17.5L12 20l2.5-2.5"}),M("path",{d:"M5 13h14",strokeDasharray:"2 2.5"})]}),ContactRouting:me(ue,{children:[M("rect",{x:"3",y:"4",width:"5",height:"5",rx:"1"}),M("rect",{x:"9.5",y:"4",width:"5",height:"5",rx:"1"}),M("rect",{x:"16",y:"4",width:"5",height:"5",rx:"1"}),M("path",{d:"M4 13.5h11M4 17.5h7"}),M("path",{d:"M17 15l3 2-3 2"})]}),Contents:me(ue,{children:[M("path",{d:"M4 7h2M4 12h2M4 17h2"}),M("path",{d:"M9 7h11M9 12h9M9 17h10"})]}),ListSearch:me(ue,{children:[M("path",{d:"M4 6h9M4 11h5M4 16h5"}),M("circle",{cx:"15",cy:"15",r:"4"}),M("path",{d:"M20.5 20.5l-2.7-2.7"})]}),CustomHTML:M("path",{d:"M9 8l-4 4 4 4M15 8l4 4-4 4"})},uQ=M("rect",{x:"4",y:"4",width:"16",height:"16",rx:"2.5"}),mQ={footer:bH,Footer:bH,Divider:SH,FooterDivider:SH,Banner:ZJ,Flex:JJ,FooterSocial:tQ,FooterPayment:aQ,page:cQ,website:lQ,AccountBlock:sQ,chat:nQ,Heading:eQ,Text:rQ,ImageBlock:$y,ButtonBlock:QJ,LocationMap:dQ,Grid:iQ,ProductRef:oQ,heroMedia:fQ,heroImage:$y,heroImage2:$y},xQ={MenuBlock:"FooterMenu",EmailFormBlock:"FooterEmailSignup",SocialLogosBlock:"FooterSocial",PaymentLogosBlock:"FooterPayment",SiteHeader:"header",SiteFooter:"footer"};function Ua({type:e,size:o=16,className:t}){let r=xQ[e]??e,a=mQ[r];return a?M(a,{size:o,className:t}):M("svg",{width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.7,strokeLinecap:"round",strokeLinejoin:"round",className:t,"aria-hidden":"true",children:pQ[r]??uQ})}import{PanelHideButton as L2}from"efficient-easel/screen/components/SidePanelHead";import{useEaselSession as Ete}from"efficient-easel/screen/lib/session-context";import{jsx as Se,jsxs as Fi,Fragment as hQ}from"react/jsx-runtime";import{useEffect as IQ,useId as wH,useState as gQ}from"react";import{IconPicker as yQ}from"efficient-shell/ui";import{SettingsDefaultReset as SQ,SettingsField as Bi,SettingsSegmented as bQ,SettingsSwitch as CH}from"efficient-easel/panel";import{ButtonIcon as wQ,ButtonIconIcon as CQ,EyeIcon as kQ,PhoneIcon as vQ,PlacementIcon as PQ,TypeIcon as TQ}from"efficient-easel/icons";var OQ="Chat with us",EQ="We usually reply within a few minutes",_Q="Hi! Ask us anything \u2014 about a wheel, an order, or fitment. Leave your details and we\u2019ll reply.";function Gu({label:e,value:o,placeholder:t,onCommit:r,multiline:a=!1,hint:n}){let[s,l]=gQ(o);IQ(()=>l(o),[o]);let i=()=>{s!==o&&r(s)};return Se(Bi,{label:e,icon:Se(TQ,{}),changed:o!=="",action:Se(Li,{label:e,changed:o!=="",onReset:()=>r("")}),hint:n,children:a?Se("textarea",{value:s,placeholder:t,rows:3,onChange:d=>l(d.target.value),onBlur:i,"aria-label":e}):Se("input",{type:"text",value:s,placeholder:t,onChange:d=>l(d.target.value),onBlur:i,onKeyDown:d=>{d.key==="Enter"&&d.currentTarget.blur()},"aria-label":e,autoComplete:"off"})})}function Li({label:e,changed:o,onReset:t}){return Se(SQ,{words:aC()?.panel,label:e,changed:o,onReset:t})}function AQ({label:e,icon:o,checked:t,fallback:r,onChange:a,hint:n}){let s=wH();return Se(Bi,{label:e,labelId:s,icon:o,changed:t!==r,action:Fi("span",{className:"inline-flex items-center gap-2",children:[Se(CH,{checked:t,onChange:a,ariaLabelledBy:s}),Se(Li,{label:e,changed:t!==r,onReset:()=>a(r)})]}),hint:n})}var FQ=Wu.map(e=>({value:e,icon:nT(e)}));function BQ(){let{theme:e}=ko(),o=er(e).themes[0];return Mw(o)??o?.accent??""}function kH(){let{chat:e,setChat:o}=Uu(),t=wH(),r=BQ(),a=e.launcherIcon?$u(e.launcherIcon):ws;return Fi(hQ,{children:[Se(Bi,{label:c("Show the chat bubble"),labelId:t,icon:Se(kQ,{}),changed:!e.enabled,action:Fi("span",{className:"inline-flex items-center gap-2",children:[Se(CH,{checked:e.enabled,onChange:n=>o({enabled:n}),ariaLabelledBy:t}),Se(Li,{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.")}),Fi(Rx,{title:c("Look"),children:[Se(lT,{label:c("Button color"),icon:Se(wQ,{}),changed:e.launcherColor!=="",value:e.launcherColor,inherited:r,caption:e.launcherColor?void 0:c("Site button color"),onChange:n=>o({launcherColor:n}),onReset:()=>o({launcherColor:""})}),Se(Bi,{label:c("Icon"),icon:Se(CQ,{}),value:Se(KP,{value:a}),changed:a!==ws,action:Se(Li,{label:c("Icon"),changed:a!==ws,onReset:()=>o({launcherIcon:""})}),children:Se(yQ,{label:c("Icon"),value:a,options:FQ,onChange:n=>o({launcherIcon:n===ws?"":n})})}),Se(Bi,{label:c("Position"),icon:Se(PQ,{}),changed:e.launcherPosition!==za,action:Se(Li,{label:c("Position"),changed:e.launcherPosition!==za,onReset:()=>o({launcherPosition:za})}),children:Se(bQ,{options:[{label:c("Right"),id:"right"},{label:c("Left"),id:"left"}],value:e.launcherPosition,ariaLabel:c("Position"),onChange:n=>o({launcherPosition:n})})}),Se(Gu,{label:c("Label"),value:e.launcherLabel,placeholder:c("Icon only"),onCommit:n=>o({launcherLabel:n}),hint:c("Shows when a visitor points at the button")}),Se(AQ,{label:c("Show on phones"),icon:Se(vQ,{}),checked:e.showOnPhones,fallback:zu.showOnPhones,onChange:n=>o({showOnPhones:n})})]}),Fi(Rx,{title:c("Wording"),children:[Se(Gu,{label:c("Title"),value:e.title,placeholder:OQ,onCommit:n=>o({title:n})}),Se(Gu,{label:c("Subtitle"),value:e.subtitle,placeholder:EQ,onCommit:n=>o({subtitle:n})}),Se(Gu,{label:c("Greeting message"),value:e.greeting,placeholder:_Q,onCommit:n=>o({greeting:n}),multiline:!0}),Se("p",{className:"es-field-hint",children:c("Leave a field blank to use the built-in wording.")})]})]})}import{jsx as ja,Fragment as dS,jsxs as EH}from"react/jsx-runtime";import{useEffect as dee,useId as TH,useState as OH}from"react";import{SettingsField as fee}from"efficient-easel/panel";import{jsx as eee}from"react/jsx-runtime";import{forwardRef as LQ,createElement as zy}from"react";var vH={outline:{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"},filled:{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",stroke:"none"}};var se=(e,o,t,r)=>{let a=LQ(({color:n="currentColor",size:s=24,stroke:l=2,title:i,className:d,children:f,...x},u)=>zy("svg",{ref:u,...vH[e],width:s,height:s,className:["tabler-icon",`tabler-icon-${o}`,d].filter(Boolean).join(" "),...e==="filled"?{fill:n}:{strokeWidth:l,stroke:n},...x},[i&&zy("title",{key:"svg-title"},i),...r.map(([h,I])=>zy(h,I)),...Array.isArray(f)?f:[f]]));return a.displayName=`${t}`,a};var RQ=[["path",{d:"M7 10v4h3v7h4v-7h3l1 -4h-4v-2a1 1 0 0 1 1 -1h3v-4h-3a5 5 0 0 0 -5 5v2h-3",key:"svg-0"}]],Uy=se("outline","brand-facebook","BrandFacebook",RQ);var DQ=[["path",{d:"M3 7a4 4 0 0 1 4 -4h10a4 4 0 0 1 4 4v10a4 4 0 0 1 -4 4h-10a4 4 0 0 1 -4 -4l0 -10",key:"svg-0"}],["path",{d:"M8.5 12a3.5 3.5 0 1 0 7 0a3.5 3.5 0 0 0 -7 0",key:"svg-1"}],["path",{d:"M17 7v.01",key:"svg-2"}]],jy=se("outline","brand-instagram","BrandInstagram",DQ);var NQ=[["path",{d:"M21 10.663c0 -4.224 -4.041 -7.663 -9 -7.663s-9 3.439 -9 7.663c0 3.783 3.201 6.958 7.527 7.56c1.053 .239 .932 .644 .696 2.133c-.039 .238 -.184 .932 .777 .512c.96 -.42 5.18 -3.201 7.073 -5.48c1.304 -1.504 1.927 -3.029 1.927 -4.715v-.01",key:"svg-0"}]],Gy=se("outline","brand-line","BrandLine",NQ);var MQ=[["path",{d:"M8 11v5",key:"svg-0"}],["path",{d:"M8 8v.01",key:"svg-1"}],["path",{d:"M12 16v-5",key:"svg-2"}],["path",{d:"M16 16v-3a2 2 0 1 0 -4 0",key:"svg-3"}],["path",{d:"M3 7a4 4 0 0 1 4 -4h10a4 4 0 0 1 4 4v10a4 4 0 0 1 -4 4h-10a4 4 0 0 1 -4 -4l0 -10",key:"svg-4"}]],Ky=se("outline","brand-linkedin","BrandLinkedin",MQ);var HQ=[["path",{d:"M8 20l4 -9",key:"svg-0"}],["path",{d:"M10.7 14c.437 1.263 1.43 2 2.55 2c2.071 0 3.75 -1.554 3.75 -4a5 5 0 1 0 -9.7 1.7",key:"svg-1"}],["path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 1 0 -18 0",key:"svg-2"}]],qy=se("outline","brand-pinterest","BrandPinterest",HQ);var WQ=[["path",{d:"M15 10l-4 4l6 6l4 -16l-18 7l4 2l2 6l3 -4",key:"svg-0"}]],Vy=se("outline","brand-telegram","BrandTelegram",WQ);var $Q=[["path",{d:"M21 7.917v4.034a9.948 9.948 0 0 1 -5 -1.951v4.5a6.5 6.5 0 1 1 -8 -6.326v4.326a2.5 2.5 0 1 0 4 2v-11.5h4.083a6.005 6.005 0 0 0 4.917 4.917",key:"svg-0"}]],Yy=se("outline","brand-tiktok","BrandTiktok",$Q);var zQ=[["path",{d:"M16.5 10c3.038 0 5.5 2.015 5.5 4.5c0 1.397 -.778 2.645 -2 3.47l0 2.03l-1.964 -1.178a6.649 6.649 0 0 1 -1.536 .178c-3.038 0 -5.5 -2.015 -5.5 -4.5s2.462 -4.5 5.5 -4.5",key:"svg-0"}],["path",{d:"M11.197 15.698c-.69 .196 -1.43 .302 -2.197 .302a8.008 8.008 0 0 1 -2.612 -.432l-2.388 1.432v-2.801c-1.237 -1.082 -2 -2.564 -2 -4.199c0 -3.314 3.134 -6 7 -6c3.782 0 6.863 2.57 7 5.785l0 .233",key:"svg-1"}],["path",{d:"M10 8h.01",key:"svg-2"}],["path",{d:"M7 8h.01",key:"svg-3"}],["path",{d:"M15 14h.01",key:"svg-4"}],["path",{d:"M18 14h.01",key:"svg-5"}]],Xy=se("outline","brand-wechat","BrandWechat",zQ);var UQ=[["path",{d:"M3 21l1.65 -3.8a9 9 0 1 1 3.4 2.9l-5.05 .9",key:"svg-0"}],["path",{d:"M9 10a.5 .5 0 0 0 1 0v-1a.5 .5 0 0 0 -1 0v1a5 5 0 0 0 5 5h1a.5 .5 0 0 0 0 -1h-1a.5 .5 0 0 0 0 1",key:"svg-1"}]],Zy=se("outline","brand-whatsapp","BrandWhatsapp",UQ);var jQ=[["path",{d:"M4 4l11.733 16h4.267l-11.733 -16l-4.267 0",key:"svg-0"}],["path",{d:"M4 20l6.768 -6.768m2.46 -2.46l6.772 -6.772",key:"svg-1"}]],Jy=se("outline","brand-x","BrandX",jQ);var GQ=[["path",{d:"M2 8a4 4 0 0 1 4 -4h12a4 4 0 0 1 4 4v8a4 4 0 0 1 -4 4h-12a4 4 0 0 1 -4 -4v-8",key:"svg-0"}],["path",{d:"M10 9l5 3l-5 3l0 -6",key:"svg-1"}]],Qy=se("outline","brand-youtube","BrandYoutube",GQ);var KQ=[["path",{d:"M18 2a1 1 0 0 1 .993 .883l.007 .117v4a1 1 0 0 1 -.883 .993l-.117 .007h-3v1h3a1 1 0 0 1 .991 1.131l-.02 .112l-1 4a1 1 0 0 1 -.858 .75l-.113 .007h-2v6a1 1 0 0 1 -.883 .993l-.117 .007h-4a1 1 0 0 1 -.993 -.883l-.007 -.117v-6h-2a1 1 0 0 1 -.993 -.883l-.007 -.117v-4a1 1 0 0 1 .883 -.993l.117 -.007h2v-1a6 6 0 0 1 5.775 -5.996l.225 -.004h3z",key:"svg-0"}]],eS=se("filled","brand-facebook-filled","BrandFacebookFilled",KQ);var qQ=[["path",{d:"M16 3a5 5 0 0 1 5 5v8a5 5 0 0 1 -5 5h-8a5 5 0 0 1 -5 -5v-8a5 5 0 0 1 5 -5zm-4 5a4 4 0 0 0 -3.995 3.8l-.005 .2a4 4 0 1 0 4 -4m4.5 -1.5a1 1 0 0 0 -.993 .883l-.007 .127a1 1 0 0 0 1.993 .117l.007 -.127a1 1 0 0 0 -1 -1",key:"svg-0"}]],oS=se("filled","brand-instagram-filled","BrandInstagramFilled",qQ);var VQ=[["path",{d:"M17 2a5 5 0 0 1 5 5v10a5 5 0 0 1 -5 5h-10a5 5 0 0 1 -5 -5v-10a5 5 0 0 1 5 -5zm-9 8a1 1 0 0 0 -1 1v5a1 1 0 0 0 2 0v-5a1 1 0 0 0 -1 -1m6 0a3 3 0 0 0 -1.168 .236l-.125 .057a1 1 0 0 0 -1.707 .707v5a1 1 0 0 0 2 0v-3a1 1 0 0 1 2 0v3a1 1 0 0 0 2 0v-3a3 3 0 0 0 -3 -3m-6 -3a1 1 0 0 0 -.993 .883l-.007 .127a1 1 0 0 0 1.993 .117l.007 -.127a1 1 0 0 0 -1 -1",key:"svg-0"}]],tS=se("filled","brand-linkedin-filled","BrandLinkedinFilled",VQ);var YQ=[["path",{d:"M17 3.34a10 10 0 0 1 -8.512 18.023l2.364 -5.315a3.5 3.5 0 0 0 2.398 .952c2.708 0 4.75 -2.089 4.75 -5a6 6 0 1 0 -11.64 2.041a1 1 0 1 0 1.88 -.682a4 4 0 1 1 7.76 -1.36c0 1.818 -1.156 3.001 -2.75 3.001c-.609 0 -1.153 -.361 -1.478 -1.022l1.142 -2.572a1 1 0 0 0 -1.828 -.812l-4.392 9.882a10 10 0 0 1 -4.694 -8.476l.005 -.324a10 10 0 0 1 14.995 -8.336",key:"svg-0"}]],rS=se("filled","brand-pinterest-filled","BrandPinterestFilled",YQ);var XQ=[["path",{d:"M16.083 2h-4.083a1 1 0 0 0 -1 1v11.5a1.5 1.5 0 1 1 -2.519 -1.1l.12 -.1a1 1 0 0 0 .399 -.8v-4.326a1 1 0 0 0 -1.23 -.974a7.5 7.5 0 0 0 1.73 14.8l.243 -.005a7.5 7.5 0 0 0 7.257 -7.495v-2.7l.311 .153c1.122 .53 2.333 .868 3.59 .993a1 1 0 0 0 1.099 -.996v-4.033a1 1 0 0 0 -.834 -.986a5.005 5.005 0 0 1 -4.097 -4.096a1 1 0 0 0 -.986 -.835z",key:"svg-0"}]],aS=se("filled","brand-tiktok-filled","BrandTiktokFilled",XQ);var ZQ=[["path",{d:"M18.497 4.409a10 10 0 0 1 -10.36 16.828l-.223 -.098l-4.759 .849l-.11 .011a1 1 0 0 1 -.11 0l-.102 -.013l-.108 -.024l-.105 -.037l-.099 -.047l-.093 -.058l-.014 -.011l-.012 -.007l-.086 -.073l-.077 -.08l-.067 -.088l-.056 -.094l-.034 -.07l-.04 -.108l-.028 -.128l-.012 -.102a1 1 0 0 1 0 -.125l.012 -.1l.024 -.11l.045 -.122l1.433 -3.304l-.009 -.014a10 10 0 0 1 1.549 -12.454l.215 -.203a10 10 0 0 1 13.226 -.217m-8.997 3.09a1.5 1.5 0 0 0 -1.5 1.5v1a6 6 0 0 0 6 6h1a1.5 1.5 0 0 0 0 -3h-1l-.144 .007a1.5 1.5 0 0 0 -1.128 .697l-.042 .074l-.022 -.007a4.01 4.01 0 0 1 -2.435 -2.435l-.008 -.023l.075 -.041a1.5 1.5 0 0 0 .704 -1.272v-1a1.5 1.5 0 0 0 -1.5 -1.5",key:"svg-0"}]],nS=se("filled","brand-whatsapp-filled","BrandWhatsappFilled",ZQ);var JQ=[["path",{d:"M8.267 3a1 1 0 0 1 .73 .317l.076 .092l4.274 5.828l5.946 -5.944a1 1 0 0 1 1.497 1.32l-.083 .094l-6.163 6.162l6.262 8.54a1 1 0 0 1 -.697 1.585l-.109 .006h-4.267a1 1 0 0 1 -.73 -.317l-.076 -.092l-4.276 -5.829l-5.944 5.945a1 1 0 0 1 -1.497 -1.32l.083 -.094l6.161 -6.163l-6.26 -8.539a1 1 0 0 1 .697 -1.585l.109 -.006h4.267z",key:"svg-0"}]],sS=se("filled","brand-x-filled","BrandXFilled",JQ);var QQ=[["path",{d:"M18 3a5 5 0 0 1 5 5v8a5 5 0 0 1 -5 5h-12a5 5 0 0 1 -5 -5v-8a5 5 0 0 1 5 -5zm-9 6v6a1 1 0 0 0 1.514 .857l5 -3a1 1 0 0 0 0 -1.714l-5 -3a1 1 0 0 0 -1.514 .857z",key:"svg-0"}]],lS=se("filled","brand-youtube-filled","BrandYoutubeFilled",QQ);var iNe="outline",Ku={fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},oee={},iS={fillRule:"evenodd"},tee=[["path",{...Ku,d:"M21 4L3 11L7 13L9 19L12 15L17 20z"}],["path",{...iS,d:"M21 4L3 11L7 13L9 19L12 15L17 20zM15.212 8.939 10.576 13.576 11.424 14.424 16.061 9.788z"}]],ree=[["path",{...Ku,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",{...oee,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("")}]],aee=[["path",{...Ku,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",{...Ku,d:["M8.319 15.972L7.84 15.918L7.349 15.832L6.865 15.715L6.388 15.568L4 17L4 14.199","L3.559 13.775L3.197 13.356L2.877 12.91L2.603 12.439L2.376 11.946L2.201 11.433","L2.079 10.902L2.016 10.405L2.001 9.897L2.036 9.386L2.12 8.889L2.25 8.405L2.425 7.937","L2.642 7.486L2.9 7.055L3.195 6.645L3.459 6.333L3.744 6.037L4.05 5.757L4.377 5.495","L4.723 5.25L5.086 5.025L5.467 4.819L5.864 4.634L6.275 4.471L6.701 4.331L7.139 4.214","L7.589 4.122L8.05 4.055L8.521 4.014L9.352 4.007L9.815 4.04L10.269 4.098L10.713 4.181","L11.146 4.287L11.567 4.416L11.975 4.567L12.369 4.739L12.748 4.932L13.112 5.143","L13.459 5.374L13.788 5.622L14.172 5.956L14.458 6.241L14.722 6.542L14.965 6.856","L15.217 7.237A8.35 7.35 0 0 0 8.319 15.972z"].join("")}],["path",{...iS,d:["M8.319 15.972L7.84 15.918L7.349 15.832L6.865 15.715L6.388 15.568L4 17L4 14.199","L3.559 13.775L3.197 13.356L2.877 12.91L2.603 12.439L2.376 11.946L2.201 11.433","L2.079 10.902L2.016 10.405L2.001 9.897L2.036 9.386L2.12 8.889L2.25 8.405L2.425 7.937","L2.642 7.486L2.9 7.055L3.195 6.645L3.459 6.333L3.744 6.037L4.05 5.757L4.377 5.495","L4.723 5.25L5.086 5.025L5.467 4.819L5.864 4.634L6.275 4.471L6.701 4.331L7.139 4.214","L7.589 4.122L8.05 4.055L8.521 4.014L9.352 4.007L9.815 4.04L10.269 4.098L10.713 4.181","L11.146 4.287L11.567 4.416L11.975 4.567L12.369 4.739L12.748 4.932L13.112 5.143","L13.459 5.374L13.788 5.622L14.172 5.956L14.458 6.241L14.722 6.542L14.965 6.856","L15.217 7.237A8.35 7.35 0 0 0 8.319 15.972zM5.25 7.9a0.85 0.85 0 1 0 1.7 0","a0.85 0.85 0 1 0 -1.7 0zM8.25 7.9a0.85 0.85 0 1 0 1.7 0a0.85 0.85 0 1 0 -1.7 0z"].join("")}],["path",{...iS,d:["M16.5 10c3.038 0 5.5 2.015 5.5 4.5c0 1.397 -.778 2.645 -2 3.47l0 2.03l-1.964 -1.178","a6.649 6.649 0 0 1 -1.536 .178c-3.038 0 -5.5 -2.015 -5.5 -4.5s2.462 -4.5 5.5 -4.5z","M14.15 14a0.85 0.85 0 1 0 1.7 0a0.85 0.85 0 1 0 -1.7 0zM17.15 14","a0.85 0.85 0 1 0 1.7 0a0.85 0.85 0 1 0 -1.7 0z"].join("")}]],nee=se("filled","brand-telegram-filled","BrandTelegramFilled",tee),see=se("filled","brand-line-filled","BrandLineFilled",ree),lee=se("filled","brand-wechat-filled","BrandWechatFilled",aee),iee={instagram:{outline:jy,solid:oS},facebook:{outline:Uy,solid:eS},tiktok:{outline:Yy,solid:aS},youtube:{outline:Qy,solid:lS},x:{outline:Jy,solid:sS},linkedin:{outline:Ky,solid:tS},pinterest:{outline:qy,solid:rS},whatsapp:{outline:Zy,solid:nS},telegram:{outline:Vy,solid:nee},line:{outline:Gy,solid:see},wechat:{outline:Xy,solid:lee}};function PH({platform:e,iconStyle:o,size:t}){let r=iee[e][o];return eee(r,{size:t,stroke:1.75,"aria-hidden":"true",focusable:"false"})}var cee={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 pee({platform:e}){let{rows:o,saveLink:t}=Ai(),{value:r,error:a}=o[e],[n,s]=OH(r),[l,i]=OH(!1),d=TH(),f=TH();dee(()=>s(r),[r]);let x=async()=>{if(n.trim()===r){n!==r&&s(r);return}i(!0),await t(e,n),i(!1)},u=MT[e];return EH(dS,{children:[ja(fee,{label:c(u),htmlFor:d,icon:ja(PH,{platform:e,iconStyle:"outline",size:18}),children:ja("input",{id:d,type:"text",inputMode:"url",value:n,placeholder:cee[e],onChange:h=>s(h.target.value),onBlur:()=>{x()},onKeyDown:h=>{h.key==="Enter"&&h.currentTarget.blur(),h.key==="Escape"&&(s(r),h.currentTarget.blur())},"aria-invalid":a?!0:void 0,"aria-describedby":a?f:void 0,"aria-busy":l||void 0,autoComplete:"off",spellCheck:!1})}),a&&ja("p",{id:f,className:"sf-note sf-note--error",role:"alert",children:a})]})}function _H({unavailable:e}){let{canSave:o}=Ai();return!o&&e?ja(dS,{children:e}):EH(dS,{children:[ja("p",{className:"es-field-hint",children:c("Paste a link to each profile. A platform left empty shows nothing on the site.")}),Rf.map(t=>ja(pee,{platform:t},t))]})}import{jsx as qa,Fragment as Mee,jsxs as Hee}from"react/jsx-runtime";import{useId as Wee,useMemo as $ee}from"react";import{useEasel as zee}from"efficient-easel/easel";import{SettingsField as Uee,SettingsSwitch as jee}from"efficient-easel/panel";import{EyeIcon as Gee}from"efficient-easel/icons";import{fieldShownInView as Kee}from"efficient-easel/fields";import{usePreviewDevice as qee}from"efficient-easel/draw/client";import{ROOT_ZONE as Vee}from"efficient-easel/draw";import{jsx as Ka,Fragment as xee}from"react/jsx-runtime";import{createContext as hee,useContext as Iee,useLayoutEffect as gee,useMemo as FH,useRef as yee,useState as BH}from"react";import{useEasel as LH,useSelectedFields as See}from"efficient-easel/easel";import{fieldShownInView as bee,Inspector as wee,LEAD_BAND_KEY as Cee,planFields as RH}from"efficient-easel/fields";function AH({allTabs:e,remembered:o,inherited:t,buckets:r,hasText:a}){return o&&(e||r.includes(o))?o:t&&r.includes(t)?t:a?"Design":r[0]??"Design"}import{jsx as uee}from"react/jsx-runtime";import{EmptyState as mee}from"efficient-shell/ui";function Ga(){return uee(mee,{variant:"none",icon:!1,message:c("These settings apply to every view.")})}import{usePreviewDevice as kee}from"efficient-easel/draw/client";import{deviceField as vee}from"efficient-easel/screen/lib/document/device-fields";var Pee="Text",fS=new Map,qu=new Set,Tee=Object.fromEntries(Ti.map(e=>{let o=gT[e];return[e,Ka(o,{},e)]})),DH=hee(null),Oee={_partBody:vee("each",{type:"custom",render:()=>Ka(Eee,{})})};function Eee(){return Ka(xee,{children:Iee(DH)})}function At({entries:e,entryCount:o=0,part:t=null,omit:r,motion:a,body:n,itemWord:s}){let{id:l,fields:i,values:d,readOnly:f,onChange:x}=See(),u=FH(()=>a?{...d,...a.values}:d,[d,a?.values]),h=(ee,xe)=>a?.keys.has(ee)?a.onChange(ee,xe):x(ee,xe),I=kee(),{appState:S,config:v}=LH(ee=>ee),O=AP(I,v,S.data.content??[],S.ui.itemSelector),R=n===void 0?u_(i,t):Oee,T=FH(()=>{let ee=r?.length?Object.fromEntries(Object.entries(R).filter(([xe])=>!r.includes(xe))):R;return a?{...ee,...a.fields}:ee},[R,r,a?.fields]),g=Tx(T,u,O),[w,_]=BH(()=>new Set(qu)),E=bee({},I),D={key:Cee,title:Pee},b=LH(ee=>ee.selectedItem)!==null,F=a?.part??t??"",y=`${l}:${F}:${String(I)}`,[k,P]=BH(()=>({tab:fS.get(y)})),C=`${l}:${F}`,B=yee(null),H={...O,node:u},q=RH(g,{values:u,context:H}).buckets,$=AH({allTabs:b,remembered:fS.get(y),inherited:B.current?.panel===C?B.current.tab:k.tab,buckets:q,hasText:E&&o>0}),le=!E&&!q.includes($)&&(RH(Tx(T,u,{...O,device:"desktop"}),{values:u,context:{...H,device:"desktop"}}).buckets.includes($)||$==="Design"&&o>0);gee(()=>{B.current={panel:C,tab:$}});let pe=$==="Design";return Ka(DH.Provider,{value:n??null,children:Ka(vT.Provider,{value:a?u:null,children:Ka(wee,{fields:g,values:u,onChange:h,readOnly:f,allTabs:b,showWhenContext:H,context:{itemWord:s},tab:$,onTab:ee=>{fS.set(y,ee),P({tab:ee})},tabIcons:Tee,idPrefix:l,ariaLabel:c("Section settings"),lead:pe?e:null,leadFold:D,closedFolds:w,onFold:(ee,xe)=>{xe?qu.delete(ee):qu.add(ee),_(new Set(qu))},children:le&&Ka(Ga,{})})})})}import{useMemo as _ee}from"react";import{useEasel as Aee}from"efficient-easel/easel";import{useSectionOps as Fee}from"efficient-easel/screen/lib/document/use-section-ops";var NH=new Map,Bee=e=>{let o=NH.get(e);return o||NH.set(e,o=Pu(ku(e),`part:${e}`)),o},Lee=new Set(Oh);function Cs(e,o,t){let{getItemById:r,getSelectorForId:a}=Aee(f=>f),n=Fee(),s=r(e)?.props??{},l=ya(s,o),i=JSON.stringify(l),d=_ee(()=>Object.fromEntries(Oh.map(f=>[f,l[f]])),[i]);return{part:o,fields:Bee(t),values:d,keys:Lee,onChange:(f,x)=>{let u=a(e),h=r(e);if(!u||!h)return;let I=WO(h.props??{},o,f,x);n.replaceComponent(u.zone,u.index,{...h,props:I})}}}import{Fragment as Ree,createElement as Dee}from"react";import{deviceField as cS}from"efficient-easel/screen/lib/document/device-fields";var go=()=>({type:"custom",render:()=>Dee(Ree)});var pS={words:go(),sourceNote:go(),style:go(),font:go(),italic:go(),fontSize:cS("each",go()),lineHeight:go(),letterSpacing:go(),paragraphSpacing:go(),padding:go(),align:cS("each",go()),letterCase:go(),fixedSizeHint:cS("each",go()),regionNote:go(),regionStyle:go()},Nee=["fontSize","align"];function MH(e){return Nee.includes(e)}var HH={showTicker:go(),items:go()};function WH({heroId:e}){let{appState:o,dispatch:t}=zee(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=$ee(()=>{let h=n?.props.tickerItems;return Array.isArray(h)?h:r1.map(I=>({text:I}))},[n]),i=Wee(),d=qee(),f=h=>Kee(HH[h],d),x=Cs(e,a1,"block");if(!n)return qa("p",{className:"sf-note",children:c("This ticker\u2019s hero is no longer on the page.")});let u=h=>t({type:"replace",destinationZone:Vee,destinationIndex:a,data:{...n,props:{...n.props,...h}}});return qa(At,{motion:x,body:Hee(Mee,{children:[!f("showTicker")&&!f("items")&&qa(Ga,{}),f("showTicker")&&qa(Uee,{label:c("Show ticker"),labelId:i,icon:qa(Gee,{}),action:qa(jee,{checked:s,onChange:h=>u({showTicker:h}),ariaLabelledBy:i})}),f("items")&&qa(_T,{label:Mx.label,icon:Mx.icon,items:l,placeholder:"item",onChange:h=>u({tickerItems:h}),markup:!0})]})})}import{jsx as Z,Fragment as Ni,jsxs as It}from"react/jsx-runtime";import{useContext as ioe,useEffect as uS,useRef as doe,useState as ZH}from"react";import{FieldSelect as foe,InspectorField as coe,fieldShownInView as poe}from"efficient-easel/fields";import{InertHint as s2,SettingsField as uoe}from"efficient-easel/panel";import{InspectorUpLevel as Qu}from"efficient-easel/chrome";import{StylesIcon as moe,TypeIcon as xoe}from"efficient-easel/icons";import{useEasel as hoe}from"efficient-easel/easel";import{TextPartPanel as JH}from"efficient-easel/copy";import{Button as Ioe,IconButton as goe,Tooltip as yoe}from"efficient-shell/ui";import{jsx as UH,jsxs as Yee}from"react/jsx-runtime";import{DEFAULT_EASEL_STRINGS as Xee}from"efficient-easel/strings";import{COPY_CELLS as ks,COPY_CELL_LENGTHS as $H,CopyBox as Zee,lengthCellUnits as Jee}from"efficient-easel/copy";import{PaddingYIcon as Qee}from"efficient-easel/icons";import{onDesktopWords as eoe}from"efficient-easel/screen/lib/document/box-fields";var zH=Xee.copy.cells,ooe={kind:"spacing"},toe=["left","center","right","justify"];function Vu(e,o,t,r="desktop"){let a=Ev(e),n=Av(r),s=e[n]??e.size??o.sizePx,l=Fv(e,r),i=(f,x,u,h,I)=>{let S=al[u];return Jee({preset:f,row:x,table:vf,unit:e[S],value:e[u],tier:r,styleValue:h,label:c(I),onPick:(v,O)=>t({[S]:v??null,[u]:O??null}),onChange:(v,O)=>t({...O?{[S]:O.unit??null}:{},[u]:v??null})})},d={key:"padding",name:c("Padding"),icon:UH(Qee,{}),unit:"px",step:vv,shiftStep:10,min:Cv,max:kv};return[{...ks.fontSize,key:"fontSize",value:e[n],styleValue:Math.round(o.sizePx),onChange:f=>t({[n]:f??null}),...i(ks.fontSize,$H.fontSize,n,Math.round(o.sizePx),zH.fontSize),...n==="size"?{}:{reset:{detail:l?eoe(f=>c(f),`${l.px}px`,l.view):void 0}}},{...ks.lineHeight,key:"lineHeight",value:a.lineHeight,styleValue:o.lineRatio,onChange:f=>t(f===void 0?{lineHeight:null,line:null}:{lineHeight:f})},{...ks.letterSpacing,key:"letterSpacing",scale:s,value:a.letterSpacingEm,styleValue:o.letterEm,onChange:f=>t(f===void 0?{letterSpacing:null,letter:null}:{letterSpacing:f})},{...ks.paragraphSpacing,key:"paragraphSpacing",value:e.paragraphSpacing,styleValue:0,onChange:f=>t({paragraphSpacing:f??null}),...i(ks.paragraphSpacing,$H.paragraphSpacing,"paragraphSpacing",0,zH.paragraphSpacing)},{...d,value:e.padding,styleValue:o.paddingPx,onChange:f=>t({padding:f??null}),...i(d,ooe,"padding",o.paddingPx,"Padding")}]}function jH({text:e,onTextChange:o,multiline:t,markup:r=!0,styled:a=!0,style:n,base:s,setValue:l,colors:i,placeholder:d,ariaLabel:f,head:x,typedOnCanvas:u=!1}){let h=Vu(n,s,l),I=th(r,t);return Yee("div",{className:"sf-part-textbox",children:[x,UH(Zee,{value:e,onChange:o,multiline:t,placeholder:d,ariaLabel:f,rules:cd,tools:I,barShows:u?"focus":"always",colors:r?i:[],colorNameOf:nf,align:a?{value:n.align??s.align,allow:toe,onChange:S=>l({align:S})}:void 0,letterCase:a?{value:n.case==="capitalize"?"":n.case??"",onChange:S=>l({case:S||null})}:void 0,cells:a?h:void 0})]})}import{UiIcon as QH}from"efficient-easel/draw/client";import{jsx as Yu,Fragment as roe,jsxs as aoe}from"react/jsx-runtime";import{Button as GH,Dialog as noe}from"efficient-shell/ui";function KH({styleName:e,onCancel:o,onConfirm:t}){return Yu(noe,{open:!0,onClose:o,role:"alertdialog",size:"sm",title:c("Update {style}?",{style:e}),footer:aoe(roe,{children:[Yu(GH,{variant:"secondary",onClick:o,children:c("Cancel")}),Yu(GH,{variant:"primary",onClick:t,children:c("Update style")})]}),children:Yu("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 Soe}from"efficient-easel/screen/components/ScreenDocumentContext";import{usePreviewDevice as boe}from"efficient-easel/draw/client";import{shownTier as Zu}from"efficient-easel/screen/lib/document/device-fields";import{TEXT_FIELD_MARKER as woe,viewKeyAt as Coe}from"efficient-easel/draw";import{useSectionOps as koe}from"efficient-easel/screen/lib/document/use-section-ops";import{useEaselHost as voe}from"efficient-easel/screen/lib/host";function soe(e){let o=new Set([...Object.keys(z(Yk,e)??{}),...z(Xk,e)??[]]);for(let[t,r]of Object.entries(z(Jk,e)??{}))r.verb==="snapshot"&&o.add(t);return[...o].sort()}var loe={CollectionCard:"product",FooterMenu:"menu",Gallery:"product",GalleryItem:"product",ProductGrid:"product",ProductHero:"product",SpecTable:"product",Events:"blog",FeaturedCover:"blog",LongRead:"blog",SubscribeBlogs:"blog"},qH={product:"Synced from the product.",blog:"Synced from the blog post.",menu:"Synced from the site menu."},VH="Open",YH={product:{type:"storefront-editor:open-product",needsSlug:!0},blog:{type:"storefront-editor:open-post",needsSlug:!0},menu:{type:"storefront-editor:open-menus",needsSlug:!1}};function vs(e){let o=e?.source?.slug;return fo(o)}function Ri(e){return z(loe,e)??null}function XH(e,o){let t=Ri(e);return t&&soe(e).includes(o)?t:null}function Xu(e){let o=e?.menu?.id;return fo(o)}function mS(e){return e?c(e):null}function e2(e){return e.kind==="role"?vm[e.role]:e.kind==="custom"?"Custom":null}function Poe(e){let o=gb(e.role);return o?{kind:"role",role:o}:null}function Toe(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 Ju(e,o,t,r){return Poe(Tr(e,o))??Toe(t,r)}function Ooe(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:Di,label:c("No style"),description:c("Section\u2019s own")},...e.map(t=>({value:t.id,label:t.name,description:t.values.font?fd(t.values.font,o)?.label:void 0}))]}var Di="";function Eoe({face:e,base:o,onPick:t}){let r=Ct(),a=e.kind==="role"?e.role:Di,n=[{label:c("No style"),value:Di},...Ib.map(s=>({label:c(vm[s]),value:s}))];return Z(foe,{ariaLabel:c("Style"),value:a,options:n,inline:!0,onChange:s=>t(s===Di?null:s),renderOption:s=>s.value===Di?It(Ni,{children:[Z("span",{className:"es-fsel-label sf-part-style-keep",children:s.label}),Z("span",{className:"sf-part-style-aside","aria-hidden":"true",children:c("Section\u2019s own")})]}):Z("span",{className:"es-fsel-label",style:{fontFamily:`var(--font-role-${s.value})`},children:s.label}),renderValue:()=>Z("span",{style:{fontFamily:o?.fontKey?`var(${fd(o.fontKey,r)?.cssVar})`:void 0,fontWeight:o?.weight},children:mS(e2(e))}),valueText:s=>mS(e2(e))??s?.label??""})}var l2=["regionNote","regionStyle"],_oe=Object.keys(pS).filter(e=>!l2.includes(e));function i2(e,o){return!e.some(o)}function Aoe({sectionName:e,onBack:o,textEditor:t,styleRow:r,children:a,tabs:n}){let s=It(Ni,{children:[t,r,a]});return It("div",{className:"sf-part-panel",children:[Z(Qu,{inline:!0,name:c(e),onSelect:o}),n?n(s):s]})}function em({source:e,slug:o,menuId:t}){let r=voe(),a=YH[e],n=!a.needsSlug||!!o;return Z("div",{className:"sf-note sf-note--source",children:It(s2,{children:[c(qH[e]),n?It(Ni,{children:[" ",Z(Ioe,{type:"button",variant:"link",size:"sm",onClick:()=>{a.type==="storefront-editor:open-menus"?r.send(a.type,{menuId:t??null}):o&&r.send(a.type,{slug:o})},children:c(VH)})]}):null]})})}var t2=4,Foe=120;function r2(e){return c("Every {part} in this section follows it. The face and the size change; the letter case is the section\u2019s own and stays as it is.",{part:c(e.label).toLowerCase()})}function a2({region:e,sizePx:o,face:t,base:r,onFollowStyle:a,source:n,slug:s,onBack:l,shows:i,sizedStyle:d,ownLook:f}){let x=e.follows;return It("div",{className:"sf-note",children:[Z("p",{children:Z("strong",{children:c(e.label)})}),i("regionNote")&&!f&&Z("p",{children:o?c("Its size follows Styles \u25B8 {follows} \u2014 {px}px right now.",{follows:c(x),px:Math.round(o)}):c("Its size follows Styles \u25B8 {follows}.",{follows:c(x)})}),d?It(Ni,{children:[d,i("regionStyle")&&Z("p",{className:"es-field-hint",children:r2(e)})]}):a?i("regionStyle")?Z(Ni,{children:Z(uoe,{label:c("Style"),icon:Z(moe,{}),hint:r2(e),children:Z(Eoe,{face:t,base:r,onPick:a})})}):null:i("regionNote")&&Z("p",{className:"es-field-hint",children:c("Only the size follows a site style. This section sets its own font, weight and letter case.")}),n&&i("sourceNote")?Z(em,{source:n,slug:s}):null,i2([...l2,"sourceNote",...d?["fontSize"]:[]],u=>i(u)&&(u!=="sourceNote"||!!n))&&Z(Ga,{}),Z(Qu,{inline:!0,name:c("Page"),onSelect:l})]})}function Boe({onBack:e}){return It("div",{className:"sf-note",children:[Z("p",{children:Z("strong",{children:c("This part is no longer here.")})}),Z("p",{children:c("The section it belonged to has been changed or removed.")}),Z(Qu,{inline:!0,name:c("Page"),onSelect:e})]})}function Loe({onBack:e,partId:o,why:t}){return It("div",{className:"sf-note",children:[Z("p",{children:Z("strong",{children:c("This part's settings did not open.")})}),Z("p",{children:c("The words are still on your page and nothing has been lost. The editor could not work out which control belongs to them, which is a fault on our side. Go back and click the section to open its settings instead.")}),Z("p",{className:"sf-note-detail",children:It("code",{children:[o," \u2014 ",t]})}),Z(Qu,{inline:!0,name:c("Page"),onSelect:e})]})}function d2({nodeId:e,propKey:o,onBack:t,onEditStyle:r}){let{getItemById:a,getSelectorForId:n,config:s}=hoe(G=>G),l=koe(),i=I0(),{partStyle:d}=fs(),{fonts:f,textStyles:x}=ko(),u=Ct(),h=ioe(Soe),I=!h?.capabilities?.hasSiteTheme,{persist:S}=fT({themeFromDocument:I,tokenRef:h?.tokenRef,siteId:h?.siteId??null}),v=qT({themeFromDocument:I,persist:S}),[O,R]=ZH(!1),T=boe(),g=G=>(Zu(T)!=="tablet"||MH(G))&&poe(pS[G],T),w=doe(null),_=a(e),E=n(e),D=_?s.components[_.type]:void 0,{key:b,row:F}=Wt(o),y=D?.fields?.[b],k=F?Dn(y,F):y,P=$t(e,o),C=_?.props??{},B=df(k),H=_f(k),q=pv(k),$=_?Ri(_.type):null,le=_?XH(_.type,b):null,pe=F?cf(C[b],F):C[b],ee=!!F&&!(Array.isArray(C[b])&&F.index<C[b].length);uS(()=>{h0(document)||w.current?.querySelector(".es-copy [contenteditable='true'], .es-copy textarea, .sf-copybox textarea, .sf-copybox input")?.focus()},[P]);let[xe,oe]=ZH(0);uS(()=>oe(0),[P]);let ie=!!_&&!ee&&(!E||!k);uS(()=>{if(!ie||xe>=t2)return;let G=setTimeout(()=>oe(Ae=>Ae+1),Foe);return()=>clearTimeout(G)},[ie,xe]);let ge=ie&&xe<t2,Re=Cs(e,sr(_?.type,o),"textPart");if(!_||ee)return Z(Boe,{onBack:t});let $e=cs(_.type),yo=$e?$s($e,o):null;if($e&&yo){let G=d?.partId===P?d:null,Ae=$e[yo],_o=Ae.writable===!0&&!!E,xr=Zr=>{E&&l.replaceComponent(E.zone,E.index,{..._,props:sa(C,o,"role",Zr)})};if(_o&&mw(Ae)){let Zr=Tr(C,o),QS=Jr=>{if(!E)return;let Cm=C;for(let[q4,V4]of Object.entries(Jr))Cm=sa(Cm,o,q4,V4??null);l.replaceComponent(E.zone,E.index,{..._,props:Cm})},j4=$x(v.saved,v.old),G4=yx(Zr)??"",K4=Vu(Zr,G?.base??n2,QS,Zu(T)).filter(Jr=>Jr.key==="fontSize"&&g(Jr.key));return Z(At,{motion:Re,body:Z(a2,{region:Ae,sizePx:G?.base.sizePx??null,face:Ju(C,o,G,f),base:G?.base??null,source:$,slug:vs(C),onBack:t,shows:g,ownLook:Wv(Zr),sizedStyle:Z(JH,{style:g("style")?{value:G4,options:o2(j4,u),onChange:Jr=>QS(Jr?{textStyle:Jr}:{textStyle:null,role:null}),onEditStyles:r}:void 0,cells:K4})})})}return Z(At,{motion:Re,body:Z(a2,{region:Ae,sizePx:G?.base.sizePx??null,face:Ju(C,o,G,f),base:G?.base??null,onFollowStyle:_o?xr:void 0,source:$,slug:vs(C),onBack:t,shows:g})})}if(!E||!k)return ge?Z("div",{className:"sf-note","aria-busy":"true"}):Z(Loe,{onBack:t,partId:P,why:E?"no field":"no selector"});let oo=G=>{l.replaceComponent(E.zone,E.index,{..._,props:G})},io=G=>{if(ca(G).hidden!==ca(pe).hidden||!B){let Ae=F?av(C,b,F,G):{...C,[b]:G};Ae&&oo(Ae);return}Hf({node:_,propKey:o,kind:B,zone:E.zone,index:E.index},ca(G).text,l.replaceComponent)},So=pe,Xe=d?.partId===P?d:null,bo=Xe?.styleOwner,N=bo?a(bo.owner):null,te=bo&&N?n(bo.owner):null,he=!!(bo&&N&&te),De=he?N.props??{}:C,Oo=he?G=>l.replaceComponent(te.zone,te.index,{...N,props:G}):oo,Zo=he?bo.kind:sr(_?.type,o),Eo=Tr(De,Zo),ve=[{partKey:Zo,face:Ju(De,Zo,Xe,f),sizeGroup:Xe?.sizeGroup??null,base:Xe?.base??n2,style:Eo}],yt=Ooe(ve,G=>G.sizeGroup),Za=sf(Xe?.inks),Vr=(G,Ae)=>{let _o=De;for(let xr of ve)_o=sa(_o,xr.partKey,G,Ae);Oo(_o)},bm=G=>G?Vr("textStyle",G):Lo({textStyle:null,role:null}),Lo=G=>{let Ae=De;for(let _o of ve)for(let[xr,Zr]of Object.entries(G))Ae=sa(Ae,_o.partKey,xr,Zr??null);Oo(Ae)},Yr=B==="text"||B==="textarea",{text:As,hidden:Ro}=ca(pe),Ja=k?.[woe]?.label??o,Vt=Ro?c("Show {label} on the slide",{label:c(Ja)}):c("Hide {label} on the slide",{label:c(Ja)}),Fs=It("div",{className:"sf-field-head",children:[Z(xoe,{}),Z("span",{className:"sf-field-label sf-field-label--inline",children:c(Ja)}),Yr&&Z(yoe,{content:Vt,children:Z(goe,{"aria-pressed":Ro,"aria-label":Vt,onClick:()=>io({text:As,hidden:!Ro}),children:Ro?Z(QH,{name:"eye-off",size:14}):Z(QH,{name:"eye",size:14})})})]}),Xr=!H&&q,mr=!!B&&(IT(k)||H||Ro||!q),ed=Ju(De,Zo,Xe,f),wm=ed.kind==="role"?ed.role:null,Qa=yx(Eo)??UT(wm),en=$x(v.saved,v.old),od=Object.entries(Eo).filter(([G,Ae])=>G!=="role"&&G!=="textStyle"&&Ae!==void 0).length,Bs=()=>{let G=De;for(let Ae of ve){let{role:_o,textStyle:xr}=Ae.style;G=Ov(G,Ae.partKey),_o&&(G=sa(G,Ae.partKey,"role",_o)),xr&&(G=sa(G,Ae.partKey,"textStyle",xr))}Oo(G)},Jo=Qa,td=GT(ve[0].style),rd=Jo?en.find(G=>G.id===Jo)?.name??Jo:"",ad=()=>{R(!1),Jo&&(v.write(KT({saved:v.saved,old:v.old,styleId:Jo,values:jT(ve[0].style)}),!0),Bs())};return It(Aoe,{sectionName:D?.label??_.type,onBack:t,tabs:G=>Z(At,{motion:Re,body:G}),textEditor:g("words")?Z("div",{ref:w,className:"sf-part-text",children:mr?Z(jH,{text:As,onTextChange:G=>io(Yr?{text:G,hidden:Ro}:G),multiline:ff(B),markup:B!=="plainText",styled:!1,style:ve[0].style,base:ve[0].base,setValue:Lo,colors:Za,placeholder:mS(ev(k))??void 0,ariaLabel:c(Ja),head:Fs,typedOnCanvas:i===P}):B?Yr?Fs:null:Z(coe,{field:k,name:o,value:So,onChange:io,id:`sf-part-${e}-${o}`})}):void 0,children:[le&&g("sourceNote")&&Z(em,{source:le,slug:vs(C),menuId:Xu(C)}),Xr&&Z(JH,{style:g("style")?{value:Qa??"",options:o2(en,u),onChange:G=>bm(G||null),changed:od>0,onEditStyles:r,onUpdateStyle:Jo&&td?()=>R(!0):void 0}:void 0,font:g("font")?{value:Eo.font??"",styleValue:fd(ve[0].base.fontKey,u)?.label,options:hb(u).map(G=>({label:G.label,value:G.key})),onChange:G=>Vr("font",G||null)}:void 0,italic:g("italic")?{value:Eo.italic,styleValue:Doe(x,Qa),onChange:G=>Vr("italic",G??null)}:void 0,cells:Vu(ve[0].style,ve[0].base,Lo,Zu(T)).filter(G=>g(G.key)),align:g("align")?Roe(Eo,ve[0].base.align,Zu(T),Vr):void 0,letterCase:g("letterCase")?{value:Eo.case??"",styleValue:ve[0].base.case,onChange:G=>Vr("case",G||null)}:void 0}),O&&Jo&&Z(KH,{styleName:rd,onCancel:()=>R(!1),onConfirm:ad}),Xr&&yt===null&&g("fixedSizeHint")&&Z(s2,{children:c("Fixed size \u2014 the site\u2019s Text setting doesn\u2019t resize this.")}),i2(_oe,G=>g(G)&&(G==="words"||(G==="sourceNote"?!!le:G==="fixedSizeHint"?Xr&&yt===null:Xr)))&&Z(Ga,{})]})}function Roe(e,o,t,r){let a=Coe("align",t),n=_v(e,t);return{value:e[a]??"",styleValue:n??o,onChange:s=>r(a,s||null)}}function Doe(e,o){return!o||!Array.isArray(e)?!1:e.find(t=>t?.id===o)?.values?.italic===!0}var n2={fontKey:"",sizePx:16,weight:400,lineRatio:1.4,letterEm:0,align:"left",case:"none",paddingPx:0};import{jsx as Ft,jsxs as SS,Fragment as Uoe}from"react/jsx-runtime";import{useCallback as joe,useRef as Goe,useState as Wi}from"react";import{InspectorIconButton as Koe}from"efficient-easel/chrome";import{useEasel as qoe}from"efficient-easel/easel";import{LoadingSpinner as Voe,PopupMenu as Yoe,PopupMenuItem as Xoe,PopupMenuLabel as bS}from"efficient-shell/ui";import{CopyToPageIcon as Zoe}from"efficient-easel/icons";import{useEaselSession as Joe}from"efficient-easel/screen/lib/session-context";import{cloneNodeWithFreshIds as Qoe}from"efficient-easel/screen/lib/document/section-doc";import{FOOTER_TYPE as ete}from"efficient-easel/draw";import{newId as Hoe}from"efficient-easel/data";import{isBackendError as Ps}from"efficient-easel/screen/lib/backend-error";import{isEfficientBackend as y2}from"efficient-easel/screen/lib/session";var om=qP(),xS=om.set;function tm(e,o){xS(e,o)}function rm(e,o){let t=om.get(e);xS(e,o??(t==="live"?"changed":t))}function am(e,o){xS(e,o??"live")}function f2(e){return om.get(e)}function c2(e){return om.use(e)}function p2(e,o){return e==="live"&&o?"changed":e}function hS({live:e,onPress:o,busy:t=!1,pinnedUnpublished:r=!1,goingLive:a}){let n=e==="live"&&!r,s=e==="changed"?c("Changes not live yet"):e==="never"?c("Never published"):r?c("Header and footer not live yet"):e==="live"?c("Everything is live"):null;return{label:c("Publish"),tooltip:e==="never"?c("Put this page on your site"):c("Put your changes on your site"),status:s,quiet:n?{label:c("Published"),reason:c("Everything is live")}:null,...a&&a.length?{goingLive:a}:{},onPress:o,busy:t}}function u2(e){return e.map(o=>o.change==="take_down"?c("{name} (taken down)",{name:o.name}):o.name)}var m2="SharedSection",Noe=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i,Mi=e=>{let o=e?.content;return Array.isArray(o)?o:[]},Hi=e=>{let o=e?.props?.id;return typeof o=="string"?o:void 0};function x2(e){if(e?.type!==m2)return null;let o=e.props?.section;return typeof o=="string"&&Noe.test(o)?o.toLowerCase():null}function h2(e){let o=[];for(let t of Mi(e)){let r=x2(t),a=Hi(t);r&&a&&o.push({refId:a,section:r})}return o}function nm(e){let o=Mi(e)[0];return o&&typeof o=="object"&&Hi(o)?o:null}function Moe(e,o){return{type:m2,props:{id:e,section:o}}}function I2(e,o){let t=new Map,r=new Set,a=!1,n=Mi(e).map(s=>{let l=x2(s),i=Hi(s);if(!l||!i||r.has(l))return s;let d=nm(o.get(l)),f=Hi(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=Mi(e).map(s=>{let l=Hi(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=Mi(d).slice(1),x=nm(d);return r.set(i.section,x===s?d:{...d,content:[s,...f]}),a=!0,i.reference??Moe(i.refId,i.section)});return{page:a?{...e,content:n}:e,docs:r}}function yS(e){return!!(e?.publish&&e.liveState)}function Woe(e,o){if(!yS(e))return;let{versions:t,nameVersion:r,restoreVersion:a,previewVersion:n}=e;if(!(!t||!r||!a||!n))return{list:()=>t.call(e,o),name:(s,l)=>r.call(e,s,l,o),restore:(s,l)=>a.call(e,s,l??{},o),preview:s=>n.call(e,s,o)}}function $oe(e,o){return async(t,r)=>{try{await dT()}catch(a){throw new Error(c("A change waiting to go live could not be saved."),{cause:a})}return(await e.publish(o)).state==="live"?Of({state:"live",changes:[]}):fa(0),{version:r??null}}}function gS(e,o,t){let r=o?{siteId:o}:void 0;return{resolve:a=>e.load({slug:a,...r}).then(n=>(n&&(tm(n.id,n.live),eT(n.id,n.videoFrames)),n)),saveLayout:(a,n,s,l)=>e.save(a,{layout:n},{version:s,clientId:l??""}).then(i=>(rm(a,i.live),oT(a,i.videoFrames),fa(),i)),rereadVersion:e.version?a=>e.version(a):void 0,publish:yS(t)?$oe(t,r):e.publish?(a,n)=>e.publish(a,n?{version:n}:void 0).then(s=>(am(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 zoe(e,o,t,r,a=!1){let n=null,s=new Set,l=!1,i=new Map,d=new Map,f=new Map,x=new Map,u={docId:null,lockHolder:null,conflict:null,saveFailed:!1,unpublished:!1,loadFailed:!1,sections:[]},h=new Set,I=()=>{if(!n)return!1;let b=f2(n.id);return b==="changed"||b==="never"||b===void 0&&l},S=b=>{u={...u,...b,docId:n?.id??null,unpublished:I(),sections:[...f.values()],rootProps:ZP(n?.layout)};for(let F of h)F()},v=(b,F,y)=>{F?f.set(b,{section:b,title:i.get(b)?.title??"",problem:F,holder:y}):f.delete(b)},O=b=>b&&typeof b=="object"&&!Array.isArray(b)?b:{},R=b=>s.has(b),T=()=>new Map([...i].map(([b,F])=>[b,F.layout])),g=()=>Hoe("SharedSection"),w=(b,F,y,k)=>{let P=O(F);i.set(b,{layout:P,version:y,savedJson:JSON.stringify(P),title:k})},_={state:()=>u,subscribe:b=>(h.add(b),()=>{h.delete(b)})},E={sectionOf:b=>d.get(b)?.section??null,heldElsewhere:b=>{let F=d.get(b)?.section;return!!(F&&f.get(F)?.problem==="lock")},adopt:(b,F)=>{w(F.id,F.layout,F.layout_updated_at,F.title),d.set(b,{section:F.id,refId:g()}),x.set(F.id,F.used_on),S({})},place:b=>{if([...d.values()].some(k=>k.section===b.id))return null;let F=nm(O(b.layout)),y=typeof F?.props?.id=="string"?F.props.id:null;return!F||!y||!F.type?null:(w(b.id,b.layout,b.layout_updated_at,b.title),d.set(y,{section:b.id,refId:g()}),x.set(b.id,b.used_on),F)},usedOn:b=>x.get(b)??null,learn:b=>{for(let F of b){x.set(F.id,F.used_on);let y=i.get(F.id);y&&(y.title=F.title);let k=f.get(F.id);k&&f.set(F.id,{...k,title:F.title})}S({})}},D=async(b,F)=>{for(let[y,k]of b){let P=i.get(y),C=JSON.stringify(k);if(!(!P||C===P.savedJson||f.get(y)?.problem==="lock"))try{let B=await e.save(y,{layout:k},{version:P.version,clientId:F??""});rm(y,B.live),P.layout=k,P.version=B.version,P.savedJson=C,v(y,null)}catch(B){Ps(B,"changed-elsewhere")?v(y,"conflict"):Ps(B,"lock-taken")?v(y,"lock",B.holder??void 0):v(y,"save")}}b.size&&fa(),S({})};return{resolve:async b=>{if(Wx(b===Or?null:_),Ax(b===Or?null:E),i=new Map,d=new Map,f=new Map,x=new Map,b===Or)return t.resolve(b);let F=!1,[y,k]=await Promise.all([t.resolve(b),e.load({slug:Or,...o}).catch(()=>(F=!0,null))]);if(k&&!hT(y?.layout)){tm(k.id,k.live);let $=O(k.layout);n={id:k.id,layout:$,version:k.version,savedJson:""}}else n=null;if(l=!1,!y)return S({conflict:null,saveFailed:!1,loadFailed:F}),y;let P=O(y.layout),C=h2(P),B=await Promise.all(C.map($=>e.load({id:$.section,...o}).catch(()=>null)));C.forEach(($,le)=>{let pe=B[le];pe?(tm(pe.id,pe.live),w($.section,pe.layout,pe.version,"")):(i.delete($.section),f.set($.section,{section:$.section,title:"",problem:"load"}))});let H=I2(P,T());if(d=H.held,!n)return d.size&&s.add(y.id),S({conflict:null,saveFailed:!1,loadFailed:F}),d.size?{...y,layout:H.working}:y;let q=JP(H.working,n.layout);return n.savedJson=JSON.stringify(_x(q,n.layout).chrome),s.add(y.id),S({conflict:null,saveFailed:!1,loadFailed:!1}),{...y,layout:q}},saveLayout:async(b,F,y,k)=>{if(!R(b))return t.saveLayout(b,F,y,k);let P=n,C=P?_x(F,P.layout):{page:F,chrome:null},B=g2(C.page,d,T()),H=await t.saveLayout(b,B.page,y,k);if(await D(B.docs,k),!P)return H;let q=JSON.stringify(C.chrome);if(!C.chrome||q===P.savedJson||u.lockHolder)return H;try{let $=await e.save(P.id,{layout:C.chrome},{version:P.version,clientId:k??""});rm(P.id,$.live),fa(),P.layout=C.chrome,P.version=$.version,P.savedJson=q,l=!0,S({conflict:null,saveFailed:!1})}catch($){Ps($,"changed-elsewhere")?S({conflict:$.conflict??{savedBy:"",savedByYou:!1,secondsAgo:0}}):Ps($,"lock-taken")?S({lockHolder:$.holder??{name:"",secondsSinceSeen:0,secondsSinceHeld:0}}):S({saveFailed:!0})}return H},publish:t.publish?async(b,F)=>{let y=await t.publish(b,F),k=n;if(k&&R(b)&&!a&&e.publish&&I()&&!u.lockHolder){let P=await e.publish(k.id,k.version?{version:k.version}:void 0);am(k.id,P.live),P.version!==null&&(k.version=P.version),l=!1,S({})}if(R(b)&&!a&&e.publish)for(let[P,C]of i){if(f.get(P)?.problem==="lock")continue;let B=await e.publish(P,C.version?{version:C.version}:void 0);am(P,B.live),B.version!==null&&(C.version=B.version)}return y}:void 0,lock:r?{claim:async(b,F,y)=>{let k=await r.claim(b,F,y);if(!R(b))return k;let P=n;if(P)try{await r.claim(P.id,F,!1),u.lockHolder&&S({lockHolder:null})}catch(C){Ps(C,"lock-taken")&&S({lockHolder:C.holder??{name:"",secondsSinceSeen:0,secondsSinceHeld:0}})}for(let C of i.keys())try{await r.claim(C,F,!1),f.get(C)?.problem==="lock"&&v(C,null)}catch(B){Ps(B,"lock-taken")&&v(C,"lock",B.holder??void 0)}return i.size&&S({}),k},release:async(b,F)=>{if(await r.release(b,F),!R(b))return;let y=n;y&&!u.lockHolder&&await r.release(y.id,F).catch(()=>{});for(let k of i.keys())f.get(k)?.problem!=="lock"&&await r.release(k,F).catch(()=>{})}}:void 0,pinnedChrome:_}}function sm(e){let o=(t,r,a)=>e.save(t,r.layout?{...r,layout:r0(r.layout)}:r,a);return new Proxy(e,{get(t,r){if(r==="save")return o;let a=Reflect.get(t,r,t);return typeof a=="function"?a.bind(t):a}})}function zHe(e,o,t){return e.update(o,a0(t))}function UHe(e,o=Ao(),t=Ag(),r={}){let a=y2(o),n=e?{siteId:e}:void 0,s=a?!!e:!0,l=o.site.update,i=a&&t.commerce&&t.service,d=!!r.editsPinnedInPlace&&i,f=yS(o.site)?o.site:void 0,x=sm(o.pages),u=gS(x,e,f),h=d?zoe(x,n,u,o.lock,!!f):null;return{capabilities:{canPublish:!!f||!!o.pages.publish,hasSiteSettings:a,hasSiteTheme:!!o.theme,placeholderFrames:!1,mediaEditing:!0,pageCreationInAdminForm:!o.pages.create,canDeletePagesInline:!!o.pages.remove,hasEditLock:!!o.lock,hasEditGuard:!0,hasPinnedChrome:i,editsPinnedInPlace:d,explainsSiteSettings:!1,hasSiteRecord:s,canEditSiteRecord:s&&!!l,hasPreviewLink:a||!!o.preview,hasCatalog:a&&t.commerce,hasForms:a&&t.service,hasBlog:!!o.blog&&t.service,offersCommerce:t.commerce,offersService:t.service},...u,...S2(u.resolve),lock:o.lock,...h,site:s?()=>o.site.get(n):void 0,siteLiveState:f?()=>f.liveState(n):void 0,siteVersions:Woe(f,n),updateSite:s&&l?I=>l(I,n):void 0,previewHref:o.preview?I=>o.preview.href(I):void 0}}function jHe(e,o=Ao(),t=Ag()){let r=y2(o),a=o.templates,n=a?sm(a.pages(e)):{list:()=>Promise.reject(new Error(IS)),load:()=>Promise.reject(new Error(IS)),save:()=>Promise.reject(new Error(IS))};return{capabilities:{canPublish:!1,hasSiteSettings:!1,hasSiteTheme:!1,placeholderFrames:!0,mediaEditing:!1,pageCreationInAdminForm:!n.create,canDeletePagesInline:!!n.remove,hasEditLock:!1,hasEditGuard:!1,hasPinnedChrome:r&&t.commerce&&t.service,editsPinnedInPlace:!1,explainsSiteSettings:r,hasSiteRecord:!1,canEditSiteRecord:!1,hasPreviewLink:!1,hasCatalog:r&&t.commerce,hasForms:r&&t.service,hasBlog:!!o.blog&&t.service,offersCommerce:t.commerce,offersService:t.service},...gS(n,void 0),...S2(gS(n,void 0).resolve),publish:void 0,templateName:a?()=>a.get(e).then(s=>s.name):void 0}}function S2(e){return{resolve:o=>(Wx(null),Ax(null),e(o))}}var IS="This editor's backend has no website templates.";function ote(e,o,t){let r=Qoe(e,void 0,o);return t?.(r)??r}function b2({node:e,currentSlug:o,siteId:t,tokenRef:r,runAuthed:a,onNotify:n}){let[s,l]=Wi(!1),[i,d]=Wi(null),f=Joe(),x=qoe(E=>E.config.components),[u,h]=Wi(!1),[I,S]=Wi(null),v=Goe(null),[O,R]=Wi(null),T=joe(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]),g=()=>{if(s){l(!1);return}let E=v.current?.getBoundingClientRect();E&&R({top:E.bottom+6,right:Math.max(8,window.innerWidth-E.right)}),d(null),h(!1),T(),l(!0)},w=(i??[]).filter(E=>E.slug!==o),_=async E=>{if(I)return;S(E.slug);let D=ote(e,x,f.documentHooks?.storedNode),b=await a(()=>tte(Ao(f).pages,E,D));S(null),l(!1),n?.(b?c("Duplicated to \u201C{name}\u201D",{name:E.label}):c("Couldn\u2019t duplicate the section \u2014 please retry"),b?"success":"error")};return SS(Uoe,{children:[Ft("span",{"data-menu-toggle":!0,style:{display:"contents"},children:Ft(Koe,{buttonRef:v,label:c("Duplicate to another page"),hasPopup:"menu",expanded:s,onClick:g,children:Ft(Zoe,{size:15})})}),s&&O&&Ft(Yoe,{portal:!0,style:{top:O.top,right:O.right},onClose:()=>l(!1),children:SS("div",{role:"menu","aria-label":c("Duplicate to page"),children:[Ft(bS,{children:c("Duplicate to page")}),u?Ft(bS,{children:c("Couldn\u2019t load pages")}):i===null?Ft(Voe,{label:c("Loading\u2026")}):w.length===0?Ft(bS,{children:c("No other pages")}):w.map(E=>SS(Xoe,{role:"menuitem",disabled:I!==null,onClick:()=>{_(E)},children:[Ft("span",{className:"min-w-0 flex-1 truncate",children:E.label}),I===E.slug?Ft("span",{className:"shrink-0 text-xs",children:c("Copying\u2026")}):E.draft&&Ft("span",{className:"shrink-0 text-xs",children:c("draft")})]},E.id))]})})]})}async function tte(e,o,t){let r=sm(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===ete);s.splice(l===-1?s.length:l,0,VP(t)),await r.save(o.id,{layout:{root:{},zones:{},...n,content:s}},{version:a.version,clientId:""})}import{useScreenDocument as _te}from"efficient-easel/screen/components/ScreenDocumentContext";import{useSectionOps as Ate}from"efficient-easel/screen/lib/document/use-section-ops";import{SELECTION_MODE as I5e,isSelectionMode as PS}from"efficient-easel/screen/lib/screen-parts";import{usePreviewParts as Fte}from"efficient-easel/draw/client";import{jsx as $i,jsxs as rte}from"react/jsx-runtime";import{SettingsDrill as ate}from"efficient-easel/panel";import{UiIcon as nte}from"efficient-easel/draw/client";var ste="Not shown on the page";function lte({part:e,onOpen:o}){return $i(ate,{name:c(e.label),preview:e.offPage?c(ste):e.preview||c("Empty"),offPage:e.offPage,status:e.hidden?$i("span",{className:"sf-entry-eye",role:"img","aria-label":c("Hidden on the page"),children:$i(nte,{name:"eye-off",size:14})}):void 0,onOpen:()=>o(e.key)})}function wS(e){return e.filter(o=>!o.identifier)}function w2({parts:e,onOpen:o,heading:t=!0}){let r=wS(e);return r.length?rte("div",{className:"sf-entries",children:[t?$i("h3",{className:"sf-entries-head",children:c("Text")}):null,r.map(a=>$i(lte,{part:a,onOpen:o},a.key))]}):null}import{HEADER_TYPE as Bte,ROOT_ZONE as R2}from"efficient-easel/draw";import{newId as ite}from"efficient-easel/data";import{HEADER_TYPE as Go,FOOTER_TYPE as Le,newNodeId as dte}from"efficient-easel/draw";function lm(){return{type:Go,props:{id:dte(Go)}}}var C2=[{type:"FooterLogo",label:"Logo"},{type:"FooterMenu",label:"Menu"},{type:"FooterText",label:"Text"},{type:"FooterEmailSignup",label:"Email Form"},{type:"FooterSocial",label:"Social Logos"},{type:"FooterPayment",label:"Payment Logos"},{type:"FooterGroup",label:"Footer Box"}],fte=C2.filter(e=>e.type!=="FooterLogo"&&e.type!=="FooterGroup"),cte="FooterGroup",k2="blocks";function v2(e){return e===Le?C2:e===cte?fte:null}function im(){let e=(o,t)=>({type:o,props:{id:ite(o),...t}});return[e("FooterLogo",{widthPct:100,align:"left",tagline:""}),e("FooterEmailSignup",{...Zv}),e("FooterPayment",{...mf})]}function CS(e){switch(e?.type){case Ho:case Je:return c("On every page");case Go:case Le:return c("On every page \xB7 old style");default:return null}}var P2=()=>null,T2=()=>c("Changed on every page");function dm(e,o){let t=UC(e,o);if(t)return t;let r=dP(e,o);if(!r)return null;let a=r.group===Ho;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 fm,Fragment as ute,jsxs as mte}from"react/jsx-runtime";import{useState as xte}from"react";import{createNode as hte,newId as Ite}from"efficient-easel/data";import{useEasel as gte}from"efficient-easel/easel";import{Banner as yte,Button as kS}from"efficient-shell/ui";import{useScreenDocument as Ste}from"efficient-easel/screen/components/ScreenDocumentContext";var pte=["FooterPayment"];function O2(e,o){let{id:t,...r}=e.props;for(let a of Lt(e))r[a]=r[a].map(n=>O2(n,o));return o(e.type,r)}var zi=(e,o)=>{if(!pte.includes(e.type))return null;Xp();let t=Rr(e.type);return t?Oa({type:e.type,props:{...e.props}},t).nodes.map(r=>O2(r,o)):null};function E2(){let{appState:e,dispatch:o,config:t}=gte(f=>f),{readOnly:r}=Ste(),[a,n]=xte(!1),s=e.data.content;if(r||s.some(f=>f.type===Je))return null;let l=s.find(f=>f.type===Le)??null,i=(f,x)=>hte(t,f,x),d=()=>{let f=ii(l,i,Ite(Je),zi);o({type:"setData",data:x=>({...x,content:[...hf(x.content,f)]}),recordHistory:!0}),n(!1)};return fm(yte,{tone:"info",title:c("This footer uses the old layout"),action:a?mte(ute,{children:[fm(kS,{variant:"primary",size:"sm",onClick:d,children:c("Switch now")}),fm(kS,{variant:"secondary",size:"sm",onClick:()=>n(!1),children:c("Cancel")})]}):fm(kS,{variant:"secondary",size:"sm",onClick:()=>n(!0),children:c("Switch to Box footer")}),children:c("Build this footer out of Boxes and blocks, like a page: the same menus, signup, social links and logo, with the copyright as a Legal Line. Your current footer is kept.")})}import{jsx as vS,jsxs as bte}from"react/jsx-runtime";import{InspectorUpLevel as _2}from"efficient-easel/chrome";function A2({nodeId:e,part:o,sectionName:t,onUpToSection:r}){let{select:a}=ju(),n=Cs(e,o,"picture");return bte("div",{children:[o!=="media"?vS(_2,{inline:!0,name:c(fr.media),onSelect:()=>a(ka(e,"media"))}):vS(_2,{inline:!0,name:c(t),onSelect:r}),vS(At,{part:o,motion:n,itemWord:c(fr[o])})]})}import{HintsToggle as Lte,SettingsSwitch as Rte,hintsFoldClass as Dte}from"efficient-easel/panel";import{useHints as Nte}from"efficient-easel/screen/lib/hints";var N2={kind:"header"},OS={kind:"website"},M2={kind:"website",tab:Df,revealPageGroup:!0},H2={kind:"chat"},W2={kind:"social"},Ui="Part";function Mte(e){return c("Part of {name}",{name:c(e)})}function Hte(e,o,t){let r=e.describeNode(o);return{name:t,kindLabel:r?Mte(r.label):c(Ui)}}function Wte(e){switch(e){case"Header":return{title:c("Header settings belong to a website."),own:c("Each website created from this template sets its own header afterwards.")};case"Appearance":return{title:c("Appearance settings belong to a website."),own:c("Each website created from this template sets its own appearance afterwards.")};case"Live chat":return{title:c("Live chat settings belong to a website."),own:c("Each website created from this template sets its own live chat afterwards.")};case"Social link":return{title:c("Social link settings belong to a website."),own:c("Each website created from this template sets its own social link afterwards.")};default:return{title:c("{what} settings belong to a website.",{what:e}),own:c("Each website created from this template sets its own {what} afterwards.",{what:e.toLowerCase()})}}}function $2({what:e}){let o=Wte(e);return qr("div",{className:"sf-note",children:[be("p",{children:be("strong",{children:o.title})}),qr("p",{children:[c("A template is a blueprint \u2014 it has no website of its own, so there is nothing here to change.")," ",o.own]})]})}function TS(e){let o=jl[e];return{name:fr[e],kindLabel:Ui,icon:o,head:(t,r)=>{if(t.kind!==o)return null;let a=r.describeNode(t.nodeId);if(!a)return null;let n=D2({name:c(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?be(A2,{nodeId:t.nodeId,part:e,sectionName:r.describeNode(t.nodeId)?.label??"Hero",onUpToSection:()=>r.onSelectNode(t.nodeId)}):null}}var $te={header:{name:"Header",kindLabel:"Site settings",icon:"header",render:(e,o)=>{let t=o.hostPanels?.header;return t?be(t,{placeholderMode:o.capabilities.placeholderFrames,tokenRef:o.tokenRef,siteId:o.siteId,websiteName:o.websiteName,onOpenWebsiteSettings:o.onOpenWebsiteSettings,onAuthExpired:()=>o.notifyParent("storefront-editor:auth-expired")}):null}},website:{name:"Appearance",kindLabel:"Site settings",icon:"website",render:(e,o)=>be(Nf,{initialTab:e.tab,revealPageGroup:e.revealPageGroup,themeFromDocument:!o.capabilities.hasSiteTheme,tokenRef:o.tokenRef,siteId:o.siteId,onNotify:o.onNotify},e.tab??"")},chat:{name:"Live chat",kindLabel:"Site settings",icon:"chat",render:()=>be(kH,{})},social:{name:"Social links",kindLabel:"Site settings",icon:"social",render:()=>be(_H,{unavailable:be($2,{what:"Social link"})})},ticker:{name:Na,kindLabel:Ui,icon:"ticker",head:(e,o)=>e.kind==="ticker"?Hte(o,e.heroId,c(Na)):null,render:e=>be(WH,{heroId:e.kind==="ticker"?e.heroId:""})},heroMedia:TS("media"),heroImage:TS("image"),heroImage2:TS("image2"),part:{name:Ui,kindLabel:Ui,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}=Wt(e.propKey),n=a?Dn(t.fields[r],a):t.fields[r],s=cs(t.type),l=s?$s(s,e.propKey):null,i=s&&l?s[l].label:LO[e.propKey],d=i?c(i):sv(c(uf(uv(n??{},r))),a),f=D2({name:d,tier:"part",of:c(t.label)},{partOf:({name:x})=>c("Part of {name}",{name:x})});return{name:f.name,kindLabel:f.kind}},render:(e,o)=>e.kind==="part"?be(d2,{nodeId:e.nodeId,propKey:e.propKey,onBack:()=>o.onSelectNode(e.nodeId),onEditStyle:o.onOpenSiteStyles}):null}},zte=new Set(["header","website","chat"]);function Ute(e,o){if(e==="selection")return null;let t=$te[e];return zte.has(e)&&!o.hasSiteSettings?{...t,kindLabel:"Not part of a template",render:()=>be($2,{what:t.name})}:t}function z2({mode:e,onOpenWebsiteSettings:o,onOpenSiteStyles:t,onSelectNode:r,hideNodeActions:a=!1,onNotify:n,onHidePanel:s}){let{capabilities:l,tokenRef:i,notifyParent:d,currentSlug:f,siteId:x,runAuthed:u,readOnly:h,navigate:I}=_te(),{rows:S}=ml(),v=S?.find(te=>te.slug===f)??null,O=Cte(),R=Object.keys(O.fields).some(te=>!te.startsWith("_")&&!zx.includes(te)),{websiteName:T}=ko(),g=Ate({readOnly:h}),{select:w}=Fte(),{selectedItem:_,getItemById:E,getSelectorForId:D,config:b,appState:F}=wte(te=>te),y=Ote(b,_?{type:_.type,props:_.props}:null),k=_?hv(y??b.components[_.type]?.fields,_.props):[],P=te=>b.components[te]?.label??te,C=_?D(_.props.id):void 0,B=Ute(e.kind,l),H=Ete(),q={capabilities:l,tokenRef:i,hostPanels:H.chrome?.panels,describeNode:te=>{let he=E(te);if(!he)return null;let De=b.components[he.type];return{type:he.type,label:De?.label??he.type,fields:De?.fields??{},props:he.props??{}}},siteId:x,websiteName:T??null,notifyParent:d,onNotify:n,onOpenWebsiteSettings:o,onOpenSiteStyles:t,onSelectNode:r},$=B?.head?.(e,q)??null,le=gH({kind:v?.kind,pageName:v?.label}),pe=$?.name??(B?c(B.name):_?c(P(_.type)):le.name),ee=$?.kindLabel??(B?c(B.kindLabel):_?C&&C.zone!==R2?c("Block"):c("Section"):le.kindLabel),xe=B?B.icon:_?_.type:"page",oe=PS(e)&&_?Ri(_.type):null,ie=!!_&&!!C&&C.zone===R2&&_.type!==Le&&_.type!==Bte,ge=dm(F?.data,_),Re=()=>{ge||C&&g.duplicateComponent(C.zone,C.index)},$e=()=>{C&&(g.removeComponent(C.zone,C.index),g.select(null))},yo=_?b.components[_.type]?.defaultProps?.previewHover:void 0,oo=PS(e)&&!!_&&!!C&&yo!==void 0,io=oo&&_.props.previewHover===!0,So=()=>{!_||!C||g.replaceComponent(C.zone,C.index,{..._,props:{..._.props,previewHover:!io}})},{shown:Xe,setShown:bo}=Nte(),N=!!(B||_||R);return qr("div",{className:`es-sidepanel es-sidepanel--right sf-panel sf-panel--right ${Dte(Xe)}`.trim(),children:[be(vte,{icon:be(Ua,{type:xe,size:15}),name:pe,kind:ee,actions:!a&&PS(e)&&_&&_.type!==Le?qr(F2,{children:[be(B2,{label:c("Duplicate section"),title:ge??void 0,disabled:ge!==null,onClick:Re,children:be(Pte,{size:15})}),ie&&l.hasSiteSettings&&be(b2,{node:_,currentSlug:f,siteId:x??void 0,tokenRef:i,runAuthed:u,onNotify:n}),be(B2,{label:c("Remove section"),danger:!0,onClick:$e,children:be(Tte,{size:15})}),s?be(L2,{side:"right",onHide:s,divider:!0}):null]}):s?be(L2,{side:"right",onHide:s}):void 0}),oo&&qr("div",{className:"sf-preview-pin",children:[qr("div",{className:"sf-preview-pin-text",children:[be("span",{className:"sf-preview-pin-label",children:c("Preview hover state")}),be("span",{className:"sf-preview-pin-hint",children:c("not shown live")})]}),be(Rte,{checked:io,onChange:So,ariaLabel:c("Preview hover state")})]}),qr("div",{className:"sf-insp-body es-insp-body sf-scroll",children:[B?B.render(e,q):_?qr(F2,{children:[_.type===Le&&l.hasSiteSettings&&be(E2,{}),be(iT,{children:be(At,{entries:be(w2,{parts:k,heading:!1,onOpen:te=>w($t(_.props.id,te))}),entryCount:wS(k).length,itemWord:pe})}),oe&&be(em,{source:oe,slug:vs(_?.props),menuId:Xu(_?.props)})]}):R?be(At,{omit:zx}):be(kte,{variant:"none",icon:!1,message:c("Select a section or block to edit it.")}),N&&be(Lte,{shown:Xe,onChange:bo,label:c("Show hints")})]})]})}import{jsx as p,jsxs as A,Fragment as q2}from"react/jsx-runtime";var eo={dark:"var(--sf-thumb-bar-dark)",soft:"var(--sf-thumb-bar-light)",accent:"var(--sf-thumb-accent)",tint:"var(--sf-thumb-accent-tint)",block:"var(--sf-thumb-block)",line:"var(--sf-thumb-border)",card:"var(--sf-thumb-card)"},ES="repeating-linear-gradient(135deg,var(--sf-thumb-hatch1) 0,var(--sf-thumb-hatch1) 5px,var(--sf-thumb-hatch2) 5px,var(--sf-thumb-hatch2) 10px)";function j({w:e,h:o,tone:t="dark",r=2,style:a}){return p("div",{style:{width:e,height:o,borderRadius:r,background:eo[t],flex:"none",...a}})}var jte={Hero:"hero",HeroSingle:"herosingle",IntroBleed:"intro",Collections:"collections",AlloyWheelsListing:"wheelslisting",CatalogFilterBar:"catalogfilterbar",ProductGrid:"productgrid",FitmentFinder:"fitmentfinder",Gallery:"gallery",GalleryB:"gallerygrid",SpecStrip:"specstrip",ProductHero:"producthero",SpecTable:"spectable",ProcessSteps:"processsteps",DetailRows:"detailrows",FitmentTable:"fitmenttable",CompatibleTyres:"compatibletyres",TyreSizes:"tyresizes",TyreFitment:"tyrefitment",EuTyreLabel:"eutyrelabel",RelatedProducts:"productgrid",BundleOffer:"bundleoffer",OrderSummary:"ordersummary",DeliveryOptions:"deliveryoptions",PaymentBadges:"paymentbadges",CheckoutCTA:"checkoutcta",Manifesto:"manifesto",ParagraphsA:"paragraphs",Prose:"prose",StatsParagraph:"statsparagraph",Chart:"chart",Mockup:"mockup",Footprint:"footprint",Timeline:"timeline",TimelineTrack:"timelinetrack",TitleWithButtons:"titlewithbuttons",Split:"split",Cards:"cards",FAQ:"faq",Testimonials:"testimonials",Masthead:"masthead",Breadcrumb:"breadcrumb",CategoryBar:"categorybar",FeaturedCover:"featuredcover",LongRead:"longread",ArticleBody:"articlebody",Series:"series",Subscribe:"subscribe",SubscribeBlogs:"subscribe",Events:"events",DocMasthead:"docmasthead",DocTabs:"doctabs",DocBody:"docbody",DocMetaCards:"docmetacards",Banner:"banner",Stats:"stats",KeyFeatures:"keyfeatures",Logos:"logos",Ticker:"ticker",Countdown:"countdown",Reviews:"reviews",SubmitBuild:"submitbuild",ReviewForm:"reviewform",Form:"form",AppointmentBooking:"appointmentbooking",ContactRouting:"contact",ContactLocations:"contactlocations",CityPictures:"citypictures",CityMaps:"citymaps",Header:"header",Footer:"footer",SectionHeader:"sectionheader",Grid:"grid",Flex:"blanksection",Spacer:"spacer",Divider:"divider",CustomHTML:"customhtml",Heading:"heading",Text:"text",ImageBlock:"image",ButtonBlock:"button",MenuBlock:"menu",EmailFormBlock:"emailform",SocialLogosBlock:"sociallogos",PaymentLogosBlock:"paymentlogos",LegalLineBlock:"legalline",SearchBlock:"search",CartBlock:"cart",CountrySwitchBlock:"countryswitch"},V={position:"absolute",inset:0},m={ink:"var(--sf-thumb-ink)",ink2:"var(--sf-thumb-ink-2)",inkSoft:"var(--sf-thumb-ink-soft)",inkSoft2:"var(--sf-thumb-ink-soft-2)",paper:"var(--sf-thumb-paper)",paper2:"var(--sf-thumb-paper-2)",warm:"var(--sf-thumb-warm)",rust:"var(--sf-thumb-rust)",onInk:"var(--sf-thumb-on-ink)",text:"var(--sf-thumb-scene-text)",muted:"var(--sf-thumb-scene-muted)",rule:"var(--sf-thumb-scene-rule)",mark1:"var(--sf-thumb-mark-1)",mark2:"var(--sf-thumb-mark-2)",card:"var(--sf-thumb-card)",scrim:"var(--sf-thumb-scrim)"},_e=(e,o,t=160)=>({background:`linear-gradient(${t}deg,${e},${o})`});function ur({size:e,style:o}){let t=Math.max(2,Math.round(e*.13)),r=(a,n,s)=>({position:"absolute",inset:a,background:n,borderRadius:t,...s?{mixBlendMode:s}:null});return A("span",{style:{position:"absolute",display:"block",width:e,height:e,...o},children:[p("span",{style:r("8% 26% 30% 6%",m.mark1)}),p("span",{style:r("26% 6% 8% 30%",m.mark2,"multiply")})]})}function pm({children:e}){return p("span",{style:{fontSize:"4.64cqw",fontWeight:700,letterSpacing:"0.06em",textTransform:"uppercase",color:m.muted},children:e})}function U2({over:e,overTone:o,head:t,headSize:r=11.5,cta:a,ctaBg:n,ctaFg:s,tone:l}){return A(q2,{children:[e&&p("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.16em",fontWeight:700,color:o},children:e}),p("span",{style:{fontSize:r,lineHeight:1.15,fontWeight:700,maxWidth:"78%",color:l},children:t}),a&&p("span",{style:{alignSelf:"flex-start",fontSize:"3.65cqw",letterSpacing:"0.12em",fontWeight:700,padding:"4px 8px",borderRadius:2,marginTop:2,background:n,color:s},children:a})]})}function _S({name:e,price:o}){return A("div",{style:{display:"flex",flexDirection:"column",gap:2,minWidth:0},children:[p("div",{style:{flex:1,minHeight:0,borderRadius:3,position:"relative",overflow:"hidden",..._e(m.paper,m.paper2,150)},children:p(ur,{size:34,style:{left:"50%",top:"50%",transform:"translate(-50%,-50%)"}})}),p("span",{style:{fontSize:"3.65cqw",fontWeight:600,color:m.text},children:e}),p("span",{style:{fontSize:"3.65cqw",color:m.muted},children:o})]})}function pr({k:e,v:o,ok:t}){return A("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",gap:6,padding:"3.5px 2px",borderBottom:`1px solid ${m.rule}`,fontSize:"3.98cqw",color:m.muted},children:[p("span",{children:e}),A("span",{style:{display:"flex",gap:6,alignItems:"center"},children:[p("b",{style:{color:m.text,fontWeight:700},children:o}),t&&p("span",{style:{color:m.rust,fontWeight:700},children:"\u2713"})]})]})}function Ce({title:e,children:o}){return A("div",{style:{...V,background:m.card,padding:"9px 10px",display:"flex",flexDirection:"column",gap:6},children:[p(pm,{children:e}),o]})}function j2({size:e=14}){return p("span",{style:{width:e,height:e,borderRadius:"50%",flex:"none",display:"block",background:`linear-gradient(150deg,${m.mark1},${m.mark2})`}})}function AS({filled:e=5,size:o=6}){return A("span",{style:{fontSize:o,letterSpacing:"0.06em",color:m.rust,lineHeight:1},children:["\u2605".repeat(e),p("span",{style:{color:m.mark1},children:"\u2605".repeat(5-e)})]})}function ji({n:e,label:o,tone:t=m.text}){return A("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:1,minWidth:0},children:[p("b",{style:{fontSize:"8.16cqw",lineHeight:1,color:t},children:e}),p("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.08em",textTransform:"uppercase",opacity:.62,color:t},children:o})]})}function Ye({children:e,w:o}){return p("span",{style:{fontSize:"3.98cqw",lineHeight:1.45,color:m.muted,width:o,display:"block"},children:e})}function cm({label:e,w:o="100%",filled:t}){return A("div",{style:{width:o,display:"flex",flexDirection:"column",gap:2},children:[p("span",{style:{fontSize:"3.32cqw",letterSpacing:"0.08em",textTransform:"uppercase",color:m.muted},children:e}),p("span",{style:{height:9,borderRadius:3,border:`1px solid ${m.rule}`,background:t?m.paper:m.card}})]})}function G2({children:e}){return p("span",{style:{alignSelf:"flex-start",fontSize:"3.65cqw",letterSpacing:"0.12em",fontWeight:700,padding:"5px 9px",borderRadius:2,background:m.text,color:m.onInk},children:e})}var Gte={wheelslisting:p(Ce,{title:"All wheels",children:p("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[["Ridge 19","20\xD79 +12","$365"],["Ridge 29","18\xD79 +20","$410"],["Ridge 39","17\xD78 \u221210","$455"]].map(([e,o,t])=>A("div",{style:{display:"flex",alignItems:"center",gap:6},children:[p("span",{style:{width:20,height:15,borderRadius:3,flex:"none",position:"relative",overflow:"hidden",..._e(m.paper,m.paper2,150)},children:p(ur,{size:12,style:{left:"50%",top:"50%",transform:"translate(-50%,-50%)"}})}),p("b",{style:{flex:1,fontSize:"4.31cqw",color:m.text},children:e}),p("span",{style:{fontSize:"3.65cqw",color:m.muted},children:o}),p("b",{style:{fontSize:"4.31cqw",color:m.text,width:26,textAlign:"right"},children:t})]},e))})}),catalogfilterbar:A("div",{style:{...V,background:m.card,display:"flex",flexDirection:"column",justifyContent:"center",gap:7,padding:"0 11px"},children:[A("div",{style:{display:"flex",gap:4,alignItems:"center"},children:[["20 inch","6\xD7139.7","Black"].map(e=>A("span",{style:{fontSize:"3.65cqw",fontWeight:600,padding:"4px 7px",borderRadius:99,background:m.text,color:m.onInk,display:"flex",gap:4,alignItems:"center"},children:[e,p("span",{style:{opacity:.6},children:"\u2715"})]},e)),p("span",{style:{fontSize:"3.65cqw",color:m.rust,fontWeight:700},children:"Clear"})]}),A("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[p("span",{style:{fontSize:"3.65cqw",color:m.muted},children:"128 results"}),p("span",{style:{fontSize:"3.65cqw",color:m.muted,border:`1px solid ${m.rule}`,borderRadius:3,padding:"3px 6px"},children:"Sort: Price \u25BE"})]})]}),fitmentfinder:A("div",{style:{...V,padding:"10px 12px",display:"flex",flexDirection:"column",gap:6,justifyContent:"center",..._e(m.ink,m.inkSoft)},children:[p("span",{style:{fontSize:"5.31cqw",fontWeight:700,color:m.onInk},children:"Will it fit your rig?"}),A("div",{style:{display:"flex",gap:4},children:[["2021","Toyota","Hilux"].map(e=>A("span",{style:{flex:1,fontSize:"3.65cqw",color:m.text,background:m.card,borderRadius:3,padding:"5px 6px",display:"flex",justifyContent:"space-between"},children:[e," ",p("span",{style:{color:m.muted},children:"\u25BE"})]},e)),p("span",{style:{fontSize:"3.65cqw",fontWeight:700,letterSpacing:"0.08em",background:m.warm,color:m.ink,borderRadius:3,padding:"5px 7px"},children:"GO"})]})]}),compatibletyres:p(Ce,{title:"Tyres that suit",children:p("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(3,1fr)",gap:5,minHeight:0},children:[["Ridge Grappler","$489"],["Trail Grappler","$525"],["Terra Grappler","$438"]].map(([e,o])=>A("div",{style:{display:"flex",flexDirection:"column",gap:2,minWidth:0},children:[p("div",{style:{flex:1,minHeight:0,borderRadius:3,position:"relative",overflow:"hidden",background:m.ink},children:p("span",{style:{position:"absolute",left:"50%",top:"50%",transform:"translate(-50%,-50%)",width:26,height:26,borderRadius:"50%",border:`5px solid ${m.mark2}`,boxSizing:"border-box"}})}),p("span",{style:{fontSize:"3.32cqw",fontWeight:600,color:m.text,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},children:e}),p("span",{style:{fontSize:"3.32cqw",color:m.muted},children:o})]},e))})}),tyresizes:p(Ce,{title:"Available sizes",children:p("div",{style:{flex:1,display:"flex",flexWrap:"wrap",gap:4,alignContent:"center"},children:["265/65R17","285/70R17","265/60R18","275/55R20"].map((e,o)=>p("span",{style:{fontSize:"3.65cqw",fontWeight:600,padding:"5px 7px",borderRadius:3,border:`1px solid ${o===0?m.rust:m.rule}`,color:o===0?m.rust:m.text,background:o===0?m.paper:m.card},children:e},e))})}),tyrefitment:A(Ce,{title:"Will it fit your car?",children:[p("div",{style:{display:"flex",gap:3},children:["Make","Model","Year","Trim"].map(e=>A("span",{style:{flex:1,minWidth:0,fontSize:"3.32cqw",color:m.muted,background:m.paper,border:`1px solid ${m.rule}`,borderRadius:3,padding:"4px 5px",display:"flex",justifyContent:"space-between",gap:2,overflow:"hidden",whiteSpace:"nowrap"},children:[e," ",p("span",{style:{color:m.muted},children:"\u25BE"})]},e))}),p("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:2,justifyContent:"center",minHeight:0},children:[["265/65R17","Fits",!0],["285/70R17","Not your size",!1]].map(([e,o,t])=>A("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"baseline",gap:6,borderTop:`1px solid ${m.rule}`,paddingTop:3},children:[p("span",{style:{fontSize:"3.32cqw",fontWeight:600,color:m.text},children:e}),p("span",{style:{fontSize:"3.32cqw",fontWeight:t?700:400,letterSpacing:"0.06em",color:t?m.warm:m.muted},children:o})]},e))})]}),eutyrelabel:A("div",{style:{...V,background:m.card,padding:"9px 11px",display:"flex",gap:8,alignItems:"center"},children:[p("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:1.5},children:[["A","42%"],["B","56%"],["C","70%"],["D","84%"]].map(([e,o],t)=>A("div",{style:{display:"flex",alignItems:"center",gap:3},children:[p("span",{style:{width:o,height:6,borderRadius:"0 2px 2px 0",background:t===1?m.rust:m.mark1}}),p("span",{style:{fontSize:"3.32cqw",fontWeight:700,color:t===1?m.rust:m.muted},children:e})]},e))}),A("div",{style:{flex:"none",display:"flex",flexDirection:"column",gap:3,alignItems:"center"},children:[p("b",{style:{fontSize:"6.63cqw",lineHeight:1,color:m.text},children:"72"}),p("span",{style:{fontSize:"3.32cqw",letterSpacing:"0.08em",color:m.muted},children:"dB"})]})]}),bundleoffer:A("div",{style:{...V,background:m.paper,padding:"9px 11px",display:"flex",flexDirection:"column",gap:5,justifyContent:"center"},children:[p(pm,{children:"Buy it with"}),A("div",{style:{display:"flex",alignItems:"center",gap:5},children:[[0,1].map(e=>p("span",{style:{width:26,height:22,borderRadius:3,flex:"none",position:"relative",overflow:"hidden",background:m.card},children:p(ur,{size:17,style:{left:"50%",top:"50%",transform:"translate(-50%,-50%)"}})},e)),p("span",{style:{fontSize:"5.69cqw",fontWeight:700,color:m.muted},children:"+"}),A("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:1},children:[p("span",{style:{fontSize:"3.65cqw",color:m.muted,textDecoration:"line-through"},children:"$1,024"}),p("b",{style:{fontSize:"6.02cqw",color:m.rust,lineHeight:1},children:"$899"})]})]})]}),checkoutcta:A("div",{style:{...V,display:"flex",alignItems:"center",justifyContent:"space-between",padding:"0 13px",gap:8,..._e(m.ink,m.ink2)},children:[A("div",{style:{display:"flex",flexDirection:"column",gap:2},children:[p("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.12em",color:m.warm,fontWeight:700},children:"READY TO ORDER"}),p("b",{style:{fontSize:"6.63cqw",color:m.onInk,lineHeight:1},children:"$1,956"}),p("span",{style:{fontSize:"3.65cqw",color:m.onInk,opacity:.65},children:"4 items \xB7 fitted free"})]}),p("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.12em",fontWeight:700,padding:"6px 10px",borderRadius:2,background:m.warm,color:m.ink,flex:"none"},children:"CHECKOUT"})]}),contact:p(Ce,{title:"Who do you need?",children:p("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[["Fitment help","the workshop"],["Order status","the front desk"],["Trade accounts","sales"]].map(([e,o])=>A("div",{style:{display:"flex",alignItems:"center",gap:5},children:[p("b",{style:{flex:1,fontSize:"4.31cqw",color:m.text},children:e}),p("span",{style:{fontSize:"3.65cqw",color:m.muted},children:o}),p("span",{style:{fontSize:"4.64cqw",color:m.rust,lineHeight:1},children:"\u203A"})]},e))})}),contactlocations:p(Ce,{title:"Find us",children:p("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(2,1fr)",gap:5,minHeight:0},children:[["Brisbane","7 Kerry Rd","Mon\u2013Sat"],["Townsville","12 Enterprise","Mon\u2013Fri"]].map(([e,o,t])=>A("div",{style:{border:`1px solid ${m.rule}`,borderRadius:4,padding:"5px 6px",display:"flex",flexDirection:"column",gap:1},children:[p("b",{style:{fontSize:"4.31cqw",color:m.text},children:e}),p("span",{style:{fontSize:"3.32cqw",color:m.muted},children:o}),p("span",{style:{fontSize:"3.32cqw",color:m.rust,fontWeight:700},children:t})]},e))})}),citypictures:p(Ce,{title:"Our studios",children:A("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:3,minHeight:0},children:[p("span",{style:{fontSize:"3.32cqw",letterSpacing:"0.12em",fontWeight:700,color:m.muted},children:"A \xB7 AMERICAS"}),p("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(3,1fr)",gap:4,minHeight:0},children:["Los Angeles","Miami","Toronto"].map(e=>A("div",{style:{position:"relative",minHeight:0},children:[p(j,{r:3,style:{...V,background:`linear-gradient(transparent 45%,${m.scrim} 45%),${_e(m.ink,m.inkSoft2).background}`}}),p("b",{style:{position:"absolute",left:5,bottom:4,fontSize:"3.65cqw",color:m.onInk},children:e})]},e))})]})}),citymaps:p(Ce,{title:"Find us",children:p("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(2,1fr)",gap:5,minHeight:0},children:[["Brisbane","7 Kerry Rd"],["Townsville","12 Enterprise"]].map(([e,o])=>A("div",{style:{position:"relative",padding:"4px 5px",display:"flex",flexDirection:"column",gap:2,minHeight:0},children:[p(j,{r:4,style:{...V,background:"none",border:`1px solid ${m.rule}`}}),p("b",{style:{position:"relative",fontSize:"4.31cqw",color:m.text},children:e}),p("span",{style:{position:"relative",fontSize:"3.32cqw",color:m.muted},children:o}),A("div",{style:{flex:1,minHeight:0,position:"relative"},children:[p(j,{r:3,style:{...V,..._e(m.paper,m.paper2,150)}}),p(j,{w:"60%",h:"60%",r:8,style:{position:"absolute",left:"12%",top:"20%",background:m.mark1,opacity:.75}}),p(j,{w:6,h:6,r:3,style:{position:"absolute",left:"44%",top:"34%",background:m.rust}})]})]},e))})}),form:p(Ce,{title:"Send us a message",children:A("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[A("div",{style:{display:"flex",gap:5},children:[p(cm,{label:"Name"}),p(cm,{label:"Email"})]}),p(cm,{label:"Message",filled:!0}),p(G2,{children:"SEND"})]})}),appointmentbooking:p(Ce,{title:"Book a fitting",children:A("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[p("div",{style:{display:"flex",gap:3},children:["Mon","Tue","Wed","Thu"].map((e,o)=>p("span",{style:{flex:1,textAlign:"center",fontSize:"3.32cqw",fontWeight:o===2?700:500,padding:"4px 0",borderRadius:3,background:o===2?m.text:m.paper,color:o===2?m.onInk:m.muted},children:e},e))}),p("div",{style:{display:"flex",gap:3},children:["8:00","10:30","13:00","15:30"].map((e,o)=>p("span",{style:{flex:1,textAlign:"center",fontSize:"3.32cqw",padding:"4px 0",borderRadius:3,border:`1px solid ${o===1?m.rust:m.rule}`,color:o===1?m.rust:m.muted,background:o===3?m.paper:m.card,textDecoration:o===3?"line-through":"none"},children:e},e))})]})}),reviewform:p(Ce,{title:"Leave a review",children:A("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:5,justifyContent:"center"},children:[p(AS,{filled:4,size:14}),p(cm,{label:"Your review",filled:!0}),p(G2,{children:"POST"})]})}),submitbuild:p(Ce,{title:"Show us your build",children:A("div",{style:{flex:1,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:3,border:`1px dashed ${m.mark1}`,borderRadius:5,background:m.paper},children:[p("span",{style:{fontSize:"6.63cqw",lineHeight:1,color:m.rust,fontWeight:300},children:"+"}),p("span",{style:{fontSize:"3.65cqw",color:m.muted},children:"Drop a photo of your rig"})]})}),masthead:A("div",{style:{...V,background:m.paper,display:"flex",flexDirection:"column",justifyContent:"center",padding:"0 13px",gap:5},children:[p("span",{style:{height:1.5,background:m.text}}),p("span",{style:{fontSize:"7.65cqw",fontWeight:800,letterSpacing:"0.02em",color:m.text,lineHeight:1},children:"THE TRACK"}),A("div",{style:{display:"flex",justifyContent:"space-between",fontSize:"3.65cqw",letterSpacing:"0.1em",textTransform:"uppercase",color:m.muted},children:[p("span",{children:"Issue 14"}),p("span",{children:"Spring 2026"})]}),p("span",{style:{height:1,background:m.rule}})]}),featuredcover:A("div",{style:{...V,overflow:"hidden",..._e(m.ink,m.inkSoft2)},children:[p(ur,{size:92,style:{right:-18,top:-14}}),p("div",{style:{position:"absolute",inset:0,background:`linear-gradient(0deg,${m.scrim},transparent 62%)`}}),A("div",{style:{position:"absolute",left:12,right:12,bottom:11,display:"flex",flexDirection:"column",gap:3},children:[p("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.16em",fontWeight:700,color:m.warm},children:"FEATURE"}),p("span",{style:{fontSize:"6.16cqw",lineHeight:1.15,fontWeight:700,color:m.onInk},children:"Four days on the Madigan Line"})]})]}),longread:A("div",{style:{...V,background:m.card,padding:"10px 14px",display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[p("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.14em",fontWeight:700,color:m.rust},children:"12 MIN READ"}),p("span",{style:{fontSize:"6.02cqw",lineHeight:1.15,fontWeight:700,color:m.text},children:"What breaks first, and why"}),p(Ye,{children:"Every failure starts in the same place:"}),p(Ye,{w:"80%",children:"the bolt nobody re-torqued."})]}),articlebody:A("div",{style:{...V,background:m.card,padding:"10px 22px",display:"flex",flexDirection:"column",gap:4,justifyContent:"center",alignItems:"center",textAlign:"center"},children:[p("span",{style:{fontSize:"4.97cqw",lineHeight:1.2,fontWeight:700,color:m.text},children:"Why offset beats width"}),p(Ye,{w:"100%",children:"A wider wheel adds grip only if the offset still"}),p(Ye,{w:"88%",children:"clears the arch, so the offset is chosen first."}),p(Ye,{w:"80%",children:"Width follows from the space left."})]}),series:p(Ce,{title:"Recurring columns",children:p("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:5,justifyContent:"center"},children:[["Shed Notes","Monthly"],["Track Tested","Fortnightly"],["Reader Rigs","Weekly"]].map(([e,o])=>A("div",{style:{display:"flex",alignItems:"center",gap:6},children:[p("span",{style:{width:3,height:12,borderRadius:2,background:m.rust,flex:"none"}}),p("b",{style:{flex:1,fontSize:"4.64cqw",color:m.text},children:e}),p("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.08em",textTransform:"uppercase",color:m.muted},children:o})]},e))})}),events:p(Ce,{title:"Latest posts",children:p("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:5,justifyContent:"center"},children:[[m.inkSoft,m.inkSoft2,"Madigan Line, four days"],[m.rust,m.warm,"Why offset beats width"]].map(([e,o,t])=>A("div",{style:{display:"flex",gap:6,alignItems:"center"},children:[p("span",{style:{width:24,height:18,borderRadius:3,flex:"none",..._e(e,o,150)}}),A("div",{style:{display:"flex",flexDirection:"column",gap:1,minWidth:0},children:[p("b",{style:{fontSize:"4.31cqw",color:m.text},children:t}),p("span",{style:{fontSize:"3.65cqw",color:m.muted},children:"4 Sep \xB7 Shed Notes"})]})]},t))})}),docmasthead:A("div",{style:{...V,background:m.card,padding:"12px 14px",display:"flex",flexDirection:"column",gap:5,justifyContent:"center"},children:[p("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.16em",fontWeight:700,color:m.muted},children:"POLICY"}),p("span",{style:{fontSize:"6.49cqw",fontWeight:700,color:m.text,lineHeight:1.1},children:"Returns & refunds"}),p("span",{style:{fontSize:"3.65cqw",color:m.muted},children:"Version 3 \xB7 Updated 4 Sep 2026"}),p("span",{style:{height:2,width:26,background:m.rust,borderRadius:1}})]}),docbody:p("div",{style:{...V,background:m.card,padding:"9px 13px",display:"flex",flexDirection:"column",gap:3,justifyContent:"center"},children:[["1.","You may return an unfitted wheel within 30 days."],["2.","Fitted wheels are covered by the structural warranty."],["3.","Freight on a change of mind is yours."]].map(([e,o])=>A("div",{style:{display:"flex",gap:5},children:[p("b",{style:{fontSize:"3.98cqw",color:m.rust,flex:"none"},children:e}),p(Ye,{children:o})]},e))}),docmetacards:p(Ce,{title:"At a glance",children:p("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(2,1fr)",gap:5,minHeight:0},children:[["30 days","To return"],["5 years","Structural"],["Free","Fitting"],["48 hrs","Dispatch"]].map(([e,o])=>A("div",{style:{border:`1px solid ${m.rule}`,borderRadius:4,padding:"5px 6px",display:"flex",flexDirection:"column",gap:1},children:[p("b",{style:{fontSize:"5.31cqw",color:m.text,lineHeight:1},children:e}),p("span",{style:{fontSize:"3.32cqw",letterSpacing:"0.08em",textTransform:"uppercase",color:m.muted},children:o})]},o))})}),doctabs:A("div",{style:{...V,background:m.card,display:"flex",flexDirection:"column",justifyContent:"center",gap:0,padding:"0 11px"},children:[p("div",{style:{display:"flex",gap:0},children:["Returns","Warranty","Shipping"].map((e,o)=>p("span",{style:{fontSize:"3.98cqw",fontWeight:o===0?700:500,padding:"5px 8px",color:o===0?m.text:m.muted,background:o===0?m.paper:"transparent",borderRadius:"4px 4px 0 0",border:`1px solid ${o===0?m.rule:"transparent"}`,borderBottom:"none"},children:e},e))}),p("span",{style:{height:1,background:m.rule}}),A("div",{style:{paddingTop:6,display:"flex",flexDirection:"column",gap:2},children:[p(Ye,{children:"Unfitted wheels come back within 30 days, no questions."}),p(Ye,{w:"58%",children:"Freight on a change of mind is yours."})]})]}),paragraphs:A("div",{style:{...V,background:m.card,padding:"11px 14px",display:"flex",gap:10,alignItems:"center"},children:[p("span",{style:{flex:1,fontSize:"5.86cqw",lineHeight:1.2,fontWeight:700,color:m.text},children:"The right wheel is the boring one."}),A("div",{style:{flex:1,display:"flex",flexDirection:"column"},children:[p(Ye,{children:"Forged, correctly offset, rated for what you actually"}),p(Ye,{children:"carry. Everything else is a photograph."})]})]}),keyfeatures:p(Ce,{title:"Key features",children:p("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:["Flow-formed barrel","1250 kg per corner","Hub-centric fit"].map(e=>A("div",{style:{display:"flex",gap:6,alignItems:"center"},children:[p("span",{style:{fontSize:"4.64cqw",color:m.rust,fontWeight:700,lineHeight:1},children:"\u2713"}),p("span",{style:{fontSize:"4.31cqw",color:m.text},children:e})]},e))})}),statsparagraph:A("div",{style:{...V,background:m.paper,padding:"10px 12px",display:"flex",gap:10,alignItems:"center"},children:[A("div",{style:{flex:"none",display:"flex",flexDirection:"column",gap:5},children:[p(ji,{n:"27k",label:"Rigs"}),p(ji,{n:"4.9",label:"Rating"})]}),A("div",{style:{flex:1,display:"flex",flexDirection:"column"},children:[p(Ye,{children:"Twelve years of fitting the same three questions, and the"}),p(Ye,{children:"answer has not moved: load rating, offset, then looks."})]})]}),chart:A(Ce,{title:"Load vs weight",children:[p("div",{style:{flex:1,display:"flex",alignItems:"flex-end",gap:5,paddingBottom:2},children:[38,62,84,71,96].map((e,o)=>p("span",{style:{flex:1,height:`${e}%`,borderRadius:"2px 2px 0 0",background:o===4?m.rust:m.mark1}},o))}),p("span",{style:{height:1,background:m.rule,marginTop:-4}})]}),mockup:p("div",{style:{...V,overflow:"hidden",display:"flex",alignItems:"center",justifyContent:"center",..._e(m.inkSoft,m.ink)},children:A("div",{style:{width:"72%",height:"74%",borderRadius:4,overflow:"hidden",background:m.card,boxShadow:`0 6px 14px ${m.scrim}`},children:[p("div",{style:{height:9,background:m.paper,display:"flex",alignItems:"center",gap:2,padding:"0 4px"},children:[0,1,2].map(e=>p("span",{style:{width:2.5,height:2.5,borderRadius:"50%",background:m.mark1}},e))}),A("div",{style:{padding:5,display:"flex",flexDirection:"column",gap:3},children:[p("span",{style:{height:4,width:"56%",borderRadius:1,background:m.mark2}}),p("span",{style:{height:14,borderRadius:2,..._e(m.paper,m.paper2,150)}}),p("span",{style:{height:3,width:"38%",borderRadius:1,background:m.rust}})]})]})}),manifesto:p("div",{style:{...V,overflow:"hidden",display:"flex",alignItems:"center",padding:"0 16px",..._e(m.ink,m.ink2)},children:A("span",{style:{fontSize:"6.63cqw",lineHeight:1.2,fontWeight:700,color:m.onInk},children:["We build for the ",p("span",{style:{color:m.warm},children:"last"})," ten percent of the track."]})}),timeline:p(Ce,{title:"Our story",children:p("div",{style:{flex:1,display:"flex",flexDirection:"column",justifyContent:"center",gap:6,paddingLeft:4},children:[["1998","One shed, one lathe."],["2009","First forged rim."],["2024","27,000 rigs on."]].map(([e,o],t)=>A("div",{style:{display:"flex",gap:7,alignItems:"flex-start",position:"relative"},children:[t<2&&p("span",{style:{position:"absolute",left:3,top:8,bottom:-8,width:1,background:m.rule}}),p("span",{style:{width:7,height:7,borderRadius:"50%",flex:"none",marginTop:1,background:m.rust,zIndex:1}}),A("div",{style:{display:"flex",flexDirection:"column",gap:0,minWidth:0},children:[p("b",{style:{fontSize:"4.64cqw",color:m.text},children:e}),p(Ye,{children:o})]})]},e))})}),timelinetrack:A("div",{style:{...V,padding:"0 12px",display:"flex",flexDirection:"column",gap:10,justifyContent:"center",..._e(m.ink,m.inkSoft)},children:[p("span",{style:{fontSize:"3.98cqw",fontWeight:700,letterSpacing:"0.14em",textTransform:"uppercase",color:m.warm},children:"Milestones"}),A("div",{style:{position:"relative",display:"flex",justifyContent:"space-between",paddingTop:7},children:[p("span",{style:{position:"absolute",left:0,right:0,top:3,height:1,background:m.mark2,opacity:.55}}),["1998","2009","2016","2024"].map((e,o)=>A("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:3,position:"relative"},children:[p("span",{style:{position:"absolute",top:-7,width:6,height:6,borderRadius:"50%",background:o===3?m.warm:m.mark1}}),p("span",{style:{fontSize:"4.31cqw",fontWeight:700,color:o===3?m.warm:m.onInk,opacity:o===3?1:.75},children:e})]},e))]})]}),footprint:A("div",{style:{...V,overflow:"hidden",..._e(m.paper,m.paper2,150)},children:[p("span",{style:{position:"absolute",left:"8%",top:"18%",width:"62%",height:"64%",borderRadius:"48% 52% 40% 60% / 55% 45% 55% 45%",background:m.mark1,opacity:.75}}),p("span",{style:{position:"absolute",left:"52%",top:"52%",width:"34%",height:"34%",borderRadius:"58% 42% 55% 45% / 45% 58% 42% 55%",background:m.mark2,opacity:.55}}),[["26%","38%"],["44%","58%"],["62%","34%"]].map(([e,o])=>p("span",{style:{position:"absolute",left:e,top:o,width:7,height:7,borderRadius:"50% 50% 50% 0",transform:"rotate(-45deg)",background:m.rust}},e)),p("span",{style:{position:"absolute",left:11,bottom:9,fontSize:"4.64cqw",fontWeight:700,color:m.text},children:"3 fitting bays"})]}),banner:A("div",{style:{...V,display:"flex",alignItems:"center",justifyContent:"space-between",padding:"0 13px",gap:8,background:m.rust},children:[A("div",{style:{display:"flex",flexDirection:"column",gap:2},children:[p("b",{style:{fontSize:"6.02cqw",color:m.onInk},children:"End of season \xB7 20% off"}),p("span",{style:{fontSize:"3.98cqw",color:m.onInk,opacity:.8},children:"Fitted free, this month only."})]}),p("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.12em",fontWeight:700,padding:"5px 9px",borderRadius:2,background:m.onInk,color:m.text,flex:"none"},children:"SHOP"})]}),titlewithbuttons:A("div",{style:{...V,background:m.paper,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:7,padding:"0 14px",textAlign:"center"},children:[p("span",{style:{fontSize:"6.49cqw",lineHeight:1.15,fontWeight:700,color:m.text},children:"Not sure what fits?"}),A("div",{style:{display:"flex",gap:5},children:[p("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.12em",fontWeight:700,padding:"5px 9px",borderRadius:2,background:m.text,color:m.onInk},children:"FIND MY FIT"}),p("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.12em",fontWeight:700,padding:"5px 9px",borderRadius:2,border:`1px solid ${m.text}`,color:m.text},children:"CALL US"})]})]}),ticker:p("div",{style:{...V,overflow:"hidden",background:m.ink,display:"flex",alignItems:"center"},children:p("span",{style:{whiteSpace:"nowrap",fontSize:"6.29cqw",fontWeight:800,letterSpacing:"0.06em",color:m.warm,marginLeft:-14},children:"FREE FITTING \xB7 48HR DISPATCH \xB7 FREE FITTING \xB7 48HR DISPATCH"})}),countdown:A("div",{style:{...V,padding:"10px 12px",display:"flex",flexDirection:"column",alignItems:"center",gap:6,justifyContent:"center",..._e(m.ink,m.ink2)},children:[p("span",{style:{fontSize:"3.65cqw",fontWeight:700,letterSpacing:"0.16em",textTransform:"uppercase",color:m.muted},children:"Back online in"}),p("div",{style:{display:"flex",alignItems:"flex-start",gap:5},children:[["23","Hours"],["59","Minutes"],["48","Seconds"]].map(([e,o],t)=>A("div",{style:{display:"flex",alignItems:"flex-start",gap:5},children:[t>0&&p("b",{style:{fontSize:"9.5cqw",lineHeight:1,color:m.warm},children:":"}),A("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:2},children:[p("b",{style:{fontSize:"11.5cqw",lineHeight:1,color:m.onInk,fontVariantNumeric:"tabular-nums"},children:e}),p("span",{style:{fontSize:"3.2cqw",letterSpacing:"0.1em",textTransform:"uppercase",opacity:.62,color:m.onInk},children:o})]})]},o))})]}),breadcrumb:p("div",{style:{...V,background:m.card,display:"flex",alignItems:"center",padding:"0 13px"},children:A("span",{style:{fontSize:"4.64cqw",color:m.muted},children:["Home ",p("span",{style:{opacity:.5},children:"/"})," Wheels ",p("span",{style:{opacity:.5},children:"/"})," ",p("span",{style:{color:m.text,fontWeight:700},children:"20 inch"})]})}),categorybar:A("div",{style:{...V,background:m.card,display:"flex",flexDirection:"column",justifyContent:"center",gap:7,padding:"0 11px"},children:[p("div",{style:{display:"flex",gap:5},children:["All","Wheels","Tyres","Lift"].map((e,o)=>p("span",{style:{fontSize:"3.98cqw",fontWeight:o===0?700:500,padding:"4px 7px",borderRadius:99,background:o===0?m.text:m.paper,color:o===0?m.onInk:m.muted},children:e},e))}),p("span",{style:{height:1,background:m.rule}})]}),intro:A("div",{style:{...V,overflow:"hidden",background:m.card},children:[p("div",{style:{position:"absolute",inset:0,..._e(m.ink,m.inkSoft2)}}),p(ur,{size:64,style:{right:8,top:6}}),A("div",{style:{position:"absolute",left:16,right:16,bottom:8,top:"46%",background:m.paper,borderRadius:6,padding:"8px 11px",display:"flex",flexDirection:"column",gap:2,boxShadow:`0 -4px 10px ${m.scrim}`},children:[p("span",{style:{fontSize:"5.69cqw",fontWeight:700,color:m.text},children:"Since 1998"}),p(Ye,{children:"One shed, one lathe, one idea."}),p(Ye,{w:"66%",children:"It turned out to be right."})]})]}),gallerygrid:p(Ce,{title:"Photo gallery",children:p("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(3,1fr)",gridTemplateRows:"repeat(2,1fr)",gap:4,minHeight:0},children:[[m.rust,m.warm],[m.inkSoft,m.ink],[m.paper2,m.mark2],[m.ink,m.inkSoft2],[m.warm,m.paper2],[m.mark2,m.inkSoft]].map(([e,o],t)=>p("div",{style:{borderRadius:3,..._e(e,o,140+t*22)}},t))})}),gallery:A(Ce,{title:"Gallery",children:[p("div",{style:{display:"flex",gap:8,alignItems:"center",marginTop:-2},children:["On the truck","Studio","Close-ups"].map((e,o)=>p("span",{style:{fontSize:"3.98cqw",fontWeight:o===0?700:500,color:o===0?m.text:m.muted,borderBottom:`1.5px solid ${o===0?m.rust:"transparent"}`,paddingBottom:2},children:e},e))}),p("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(3,1fr)",gap:4,minHeight:0},children:[[m.rust,m.warm],[m.ink,m.inkSoft],[m.paper2,m.mark2]].map(([e,o],t)=>p("div",{style:{borderRadius:3,..._e(e,o,150+t*20)}},t))})]}),ordersummary:A(Ce,{title:"Order summary",children:[A("div",{style:{display:"flex",gap:6,alignItems:"center",paddingBottom:4},children:[p("span",{style:{width:26,height:26,borderRadius:4,position:"relative",overflow:"hidden",flex:"none",..._e(m.paper,m.paper2,150)},children:p(ur,{size:18,style:{left:"50%",top:"50%",transform:"translate(-50%,-50%)"}})}),A("div",{style:{display:"flex",flexDirection:"column",gap:1,minWidth:0},children:[p("b",{style:{fontSize:"4.31cqw",color:m.text},children:"Ridge Grappler"}),p("span",{style:{fontSize:"3.65cqw",color:m.muted},children:"20\xD79 +12 \xB7 qty 4"})]})]}),A("div",{style:{flex:1,minHeight:0,display:"flex",flexDirection:"column",justifyContent:"center"},children:[p(pr,{k:"Subtotal",v:"$1,956"}),p(pr,{k:"Fitting",v:"Free"}),A("div",{style:{display:"flex",justifyContent:"space-between",paddingTop:5,fontSize:"4.64cqw"},children:[p("b",{style:{color:m.text},children:"Total"}),p("b",{style:{color:m.text,fontSize:"6.02cqw"},children:"$1,956"})]})]})]}),deliveryoptions:p(Ce,{title:"Delivery",children:p("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[["Standard","3\u20135 days","Free",!0],["Express","Next day","$19",!1]].map(([e,o,t,r])=>A("div",{style:{display:"flex",alignItems:"center",gap:6,padding:"5px 6px",borderRadius:4,border:`1px solid ${r?m.rust:m.rule}`,background:r?m.paper:m.card},children:[p("span",{style:{width:7,height:7,borderRadius:"50%",flex:"none",border:`1.5px solid ${r?m.rust:m.mark1}`,background:r?m.rust:"transparent"}}),p("span",{style:{flex:1,fontSize:"4.31cqw",fontWeight:600,color:m.text},children:e}),p("span",{style:{fontSize:"3.98cqw",color:m.muted},children:o}),p("b",{style:{fontSize:"4.31cqw",color:m.text},children:t})]},e))})}),paymentbadges:A("div",{style:{...V,background:m.paper,display:"flex",flexDirection:"column",gap:8,justifyContent:"center",padding:"0 12px"},children:[p(pm,{children:"Ways to pay"}),p("div",{style:{display:"flex",gap:5},children:[["VISA",m.ink],["MC",m.rust],["AMEX",m.inkSoft],["PayPal",m.ink2]].map(([e,o])=>p("span",{style:{flex:1,textAlign:"center",fontSize:"3.65cqw",fontWeight:800,letterSpacing:"0.06em",color:m.onInk,borderRadius:3,padding:"6px 0",background:o},children:e},e))})]}),stats:A("div",{style:{...V,padding:"10px 12px",display:"flex",flexDirection:"column",gap:9,justifyContent:"center",..._e(m.ink,m.ink2)},children:[p("span",{style:{fontSize:"3.98cqw",fontWeight:700,letterSpacing:"0.14em",textTransform:"uppercase",color:m.warm},children:"By the numbers"}),A("div",{style:{display:"flex",gap:8},children:[p(ji,{n:"27k",label:"Rigs fitted",tone:m.onInk}),p(ji,{n:"12",label:"Years",tone:m.onInk}),p(ji,{n:"4.9",label:"Avg rating",tone:m.warm})]})]}),testimonials:A("div",{style:{...V,overflow:"hidden",background:m.paper,padding:"10px 11px",display:"flex",flexDirection:"column",gap:6,justifyContent:"center"},children:[p("span",{style:{position:"absolute",right:10,top:2,fontSize:"22.4cqw",lineHeight:1,fontWeight:800,color:m.rust,opacity:.16},children:"\u201D"}),p(AS,{filled:5,size:7}),p("span",{style:{position:"relative",fontSize:"5.31cqw",lineHeight:1.35,color:m.text,fontWeight:600},children:"\u201CTook them out to the Simpson and back. Not one chip.\u201D"}),A("div",{style:{display:"flex",alignItems:"center",gap:5},children:[p(j2,{}),p("span",{style:{fontSize:"3.98cqw",color:m.muted},children:"Dave M. \xB7 Hilux N80"})]})]}),reviews:A(Ce,{title:"Reviews",children:[p("div",{style:{display:"flex",gap:4,height:22},children:[[m.inkSoft,m.inkSoft2],[m.rust,m.warm],[m.ink,m.inkSoft],[m.mark2,m.mark1]].map(([e,o],t)=>p("div",{style:{flex:1,borderRadius:3,..._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])=>A("div",{style:{display:"flex",gap:5,alignItems:"flex-start"},children:[p(j2,{size:12}),A("div",{style:{display:"flex",flexDirection:"column",gap:1,minWidth:0},children:[A("div",{style:{display:"flex",gap:4,alignItems:"center"},children:[p("b",{style:{fontSize:"3.98cqw",color:m.text},children:e}),p(AS,{filled:o})]}),p(Ye,{children:t})]})]},e))})]}),logos:A("div",{style:{...V,display:"flex",flexDirection:"column",gap:9,justifyContent:"center",padding:"0 12px",..._e(m.ink,m.inkSoft)},children:[p("span",{style:{fontSize:"3.98cqw",fontWeight:700,letterSpacing:"0.14em",textTransform:"uppercase",color:m.warm},children:"As fitted by"}),p("div",{style:{display:"grid",gridTemplateColumns:"repeat(4,1fr)",gap:8},children:["ARB","TJM","IRONMAN","OPPOSITE"].map(e=>p("span",{style:{textAlign:"center",fontSize:"4.31cqw",fontWeight:800,letterSpacing:"0.08em",color:m.onInk,opacity:.82},children:e},e))})]}),prose:A("div",{style:{...V,background:m.paper,padding:"11px 14px",display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[p("span",{style:{fontSize:"5.86cqw",fontWeight:700,color:m.text},children:"Why offset matters"}),A("div",{style:{display:"flex",gap:6},children:[p("span",{style:{fontSize:"15.3cqw",lineHeight:.78,fontWeight:800,color:m.rust,marginTop:1},children:"T"}),A("div",{style:{display:"flex",flexDirection:"column"},children:[p(Ye,{children:"he number on the back of your wheel decides whether the"}),p(Ye,{w:"76%",children:"tyre sits under the guard or an inch outside it."})]})]})]}),cards:p(Ce,{title:"What you get",children:p("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(3,1fr)",gap:5,minHeight:0},children:[["Fitted free","In store, same day."],["5 yr cover","Structural, no fine print."],["Swap it","30 days, any reason."]].map(([e,o])=>A("div",{style:{border:`1px solid ${m.rule}`,borderRadius:4,padding:6,display:"flex",flexDirection:"column",gap:2},children:[p("span",{style:{width:11,height:11,borderRadius:3,background:m.rust,opacity:.9}}),p("b",{style:{fontSize:"3.98cqw",color:m.text},children:e}),p(Ye,{children:o})]},e))})}),faq:p(Ce,{title:"Questions",children:p("div",{style:{flex:1,display:"flex",flexDirection:"column",justifyContent:"center"},children:[["Will these fit my Hilux?",!0],["Do you fit them for me?",!1],["What if I pick wrong?",!1]].map(([e,o])=>A("div",{style:{borderBottom:`1px solid ${m.rule}`,padding:"4px 2px"},children:[A("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",gap:6},children:[p("b",{style:{fontSize:"4.31cqw",color:m.text},children:e}),p("span",{style:{fontSize:"4.64cqw",color:m.muted,lineHeight:1},children:o?"\u2212":"+"})]}),o&&p(Ye,{w:"90%",children:"Use the fitment finder \u2014 it reads your build, not just the model."})]},e))})}),hero:A("div",{style:{...V,overflow:"hidden",..._e(m.ink,m.ink2)},children:[p("div",{style:{...V,background:`linear-gradient(90deg,${m.scrim},transparent 70%)`}}),p("div",{style:{position:"relative",height:"100%",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"flex-start",padding:"12px 14px",gap:5},children:p(U2,{over:"NEW \xB7 SUMMER",overTone:m.warm,head:"Built for the worst road you own",cta:"SHOP ALL",ctaBg:m.warm,ctaFg:m.ink,tone:m.onInk})}),p(ur,{size:104,style:{right:-24,bottom:-30}})]}),herosingle:A("div",{style:{...V,display:"flex",background:m.paper,overflow:"hidden"},children:[p("div",{style:{flex:1,padding:12,display:"flex",flexDirection:"column",gap:5,justifyContent:"center"},children:p(U2,{over:"ALL-TERRAIN",overTone:m.rust,head:"Grip that does not ask",headSize:12,cta:"EXPLORE",ctaBg:m.text,ctaFg:m.onInk,tone:m.text})}),p("div",{style:{flex:1,position:"relative",..._e(m.inkSoft,m.inkSoft2)},children:p(ur,{size:74,style:{right:-14,top:16}})})]}),productgrid:p(Ce,{title:"Best sellers",children:A("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(3,1fr)",gap:5,minHeight:0},children:[p(_S,{name:"Ridge 19",price:"$365"}),p(_S,{name:"Ridge 29",price:"$410"}),p(_S,{name:"Ridge 39",price:"$455"})]})}),collections:p(Ce,{title:"Shop by category",children:p("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(3,1fr)",gap:5,minHeight:0},children:[["Wheels",m.inkSoft,m.inkSoft2],["Tyres",m.rust,m.warm],["Lift kits",m.ink,m.inkSoft]].map(([e,o,t])=>p("div",{style:{borderRadius:4,display:"flex",alignItems:"flex-end",padding:5,color:m.onInk,..._e(o,t)},children:p("span",{style:{fontSize:"3.98cqw",fontWeight:700,letterSpacing:"0.04em"},children:e})},e))})}),producthero:A("div",{style:{...V,display:"flex",background:m.card,overflow:"hidden"},children:[p("div",{style:{flex:1.1,position:"relative",..._e(m.paper,m.paper2,150)},children:p(ur,{size:78,style:{left:"50%",top:"50%",transform:"translate(-50%,-50%)"}})}),A("div",{style:{flex:1,padding:"10px 10px 10px 8px",display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[p("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.16em",fontWeight:700,color:m.rust},children:"NITTO"}),p("b",{style:{fontSize:"6.29cqw",color:m.text},children:"Ridge Grappler"}),p("span",{style:{fontSize:"6.63cqw",fontWeight:700,color:m.text},children:"$489"}),p("span",{style:{alignSelf:"flex-start",fontSize:"3.65cqw",letterSpacing:"0.12em",fontWeight:700,padding:"4px 8px",borderRadius:2,background:m.text,color:m.onInk},children:"ADD TO CART"})]})]}),spectable:p(Ce,{title:"Specifications",children:A("div",{style:{flex:1,display:"flex",flexDirection:"column",justifyContent:"center"},children:[p(pr,{k:"Diameter",v:'20"'}),p(pr,{k:"Width",v:"9.0J"}),p(pr,{k:"Offset",v:"+12"}),p(pr,{k:"Load",v:"1250 kg"})]})}),fitmenttable:p(Ce,{title:"Will it fit?",children:A("div",{style:{flex:1,display:"flex",flexDirection:"column",justifyContent:"center"},children:[p(pr,{k:"Hilux N80",v:"20\xD79 +12",ok:!0}),p(pr,{k:"Ranger PX3",v:"20\xD79 +12",ok:!0}),p(pr,{k:"LC79",v:"17\xD78 \u221210",ok:!0})]})}),processsteps:A("div",{style:{...V,background:m.paper,padding:10,display:"flex",flexDirection:"column",gap:7,justifyContent:"center"},children:[p(pm,{children:"How it works"}),p("div",{style:{display:"flex",gap:6},children:["Pick your rig","Match the fit","We fit it"].map((e,o)=>A("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:2},children:[p("span",{style:{width:11,height:11,borderRadius:"50%",background:m.text,color:m.onInk,fontSize:"3.98cqw",display:"flex",alignItems:"center",justifyContent:"center",fontWeight:700},children:o+1}),p("span",{style:{fontSize:"3.98cqw",color:m.text,fontWeight:600},children:e})]},e))})]}),detailrows:p("div",{style:{...V,background:m.card,display:"flex",flexDirection:"column",overflow:"hidden"},children:[["Forged, not cast","Half the weight, twice the road.",!1],["Fits your load","Rated to 1250 kg a corner.",!0]].map(([e,o,t])=>{let r=p("div",{style:{flex:1,..._e(t?m.rust:m.inkSoft,t?m.warm:m.inkSoft2)}},"art"),a=A("div",{style:{flex:1.1,padding:8,display:"flex",flexDirection:"column",gap:2,justifyContent:"center"},children:[p("b",{style:{fontSize:"4.64cqw",color:m.text},children:e}),p("span",{style:{fontSize:"3.98cqw",color:m.muted,lineHeight:1.3},children:o})]},"tx");return p("div",{style:{flex:1,display:"flex",minHeight:0},children:t?[a,r]:[r,a]},e)})}),specstrip:p("div",{style:{...V,background:m.ink,color:m.onInk,display:"flex",alignItems:"center",justifyContent:"space-around",padding:"0 8px"},children:[["5 yr","Warranty"],["Free","Fitting"],["48 hr","Dispatch"]].map(([e,o])=>A("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:1},children:[p("b",{style:{fontSize:"5.69cqw",letterSpacing:"0.02em"},children:e}),p("span",{style:{fontSize:"3.65cqw",color:m.mark2,letterSpacing:"0.1em",textTransform:"uppercase"},children:o})]},o))})},K2={subscribe:A("div",{style:{...V,padding:13,display:"flex",flexDirection:"column"},children:[A("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:8},children:[A("div",{style:{display:"flex",alignItems:"center",gap:6},children:[p(j,{w:8,h:8,r:2,tone:"accent"}),p(j,{w:38,h:7,r:3,tone:"dark"}),p(j,{w:16,h:7,r:3,tone:"accent"})]}),p(j,{w:38,h:4,r:2,tone:"soft"})]}),p("div",{style:{height:1,background:eo.line,marginBottom:10}}),A("div",{style:{flex:1,display:"flex",gap:10,border:`1px solid ${eo.line}`,borderRadius:7,padding:10},children:[A("div",{style:{flex:1.1,display:"flex",flexDirection:"column",justifyContent:"center",gap:5},children:[p(j,{w:"46%",h:3,r:2,tone:"accent"}),p(j,{w:"84%",h:8,r:4,tone:"dark"}),p(j,{w:"56%",h:8,r:4,tone:"accent"}),p(j,{w:"96%",h:3,r:2,tone:"soft",style:{marginTop:2}}),A("div",{style:{display:"flex",gap:5,marginTop:4},children:[p("div",{style:{flex:1,height:13,borderRadius:5,border:`1px solid ${eo.line}`,background:eo.block}}),p(j,{w:34,h:13,r:5,tone:"accent"})]})]}),A("div",{style:{flex:1,background:eo.block,borderRadius:6,padding:8,display:"flex",flexDirection:"column",gap:6},children:[p(j,{w:"52%",h:4,r:2,tone:"accent"}),Array.from({length:3}).map((e,o)=>A("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",gap:6,borderTop:o?`1px solid ${eo.line}`:"none",paddingTop:o?4:0},children:[p(j,{w:34,h:4,r:2,tone:"dark"}),p(j,{w:16,h:3,r:2,tone:"soft"})]},o))]})]})]}),split:A("div",{style:{...V,display:"flex"},children:[p("div",{style:{width:"44%",background:ES}}),A("div",{style:{flex:1,padding:15,display:"flex",flexDirection:"column",justifyContent:"center",gap:7},children:[p(j,{w:"44%",h:5,r:3,tone:"accent"}),p(j,{w:"88%",h:8,r:4,tone:"dark"}),p(j,{w:"70%",h:8,r:4,tone:"dark"}),p(j,{w:"94%",h:5,r:2,tone:"soft",style:{marginTop:2}}),p(j,{w:"80%",h:5,r:2,tone:"soft"}),p(j,{w:"40%",h:13,r:6,tone:"accent",style:{marginTop:5}})]})]}),sectionheader:A(q2,{children:[p(j,{w:"18%",h:6,r:3,tone:"accent",style:{position:"absolute",top:15,right:16}}),A("div",{style:{...V,padding:16,display:"flex",flexDirection:"column",justifyContent:"center",gap:10},children:[A("div",{style:{display:"flex",alignItems:"center",gap:9},children:[p(j,{w:16,h:16,r:4,tone:"accent"}),p(j,{w:"20%",h:9,r:4,tone:"dark"})]}),p(j,{w:"62%",h:10,r:5,tone:"dark"}),p(j,{w:"42%",h:6,r:3,tone:"soft"})]})]}),header:p("div",{style:{...V,padding:14,display:"flex",flexDirection:"column",justifyContent:"center"},children:A("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[p(j,{w:"22%",h:12,r:4,tone:"dark"}),A("div",{style:{display:"flex",gap:9,alignItems:"center"},children:[p(j,{w:26,h:6,r:3,tone:"soft"}),p(j,{w:26,h:6,r:3,tone:"soft"}),p(j,{w:26,h:6,r:3,tone:"soft"}),p(j,{w:18,h:14,r:5,tone:"accent"})]})]})}),footer:A("div",{style:{...V,padding:15,display:"flex",flexDirection:"column",justifyContent:"center",gap:12},children:[A("div",{style:{display:"flex",gap:14},children:[A("div",{style:{flex:1.4,display:"flex",flexDirection:"column",gap:6},children:[p(j,{w:"60%",h:9,r:4,tone:"dark"}),p(j,{w:"90%",h:5,r:2,tone:"soft"}),p(j,{w:"70%",h:5,r:2,tone:"soft"})]}),[0,1].map(e=>A("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:6},children:[p(j,{w:"50%",h:6,r:3,tone:"dark"}),p(j,{w:"80%",h:5,r:2,tone:"soft"}),p(j,{w:"66%",h:5,r:2,tone:"soft"})]},e))]}),p("div",{style:{height:1,background:eo.line}}),A("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[p(j,{w:"30%",h:5,r:2,tone:"soft"}),p(j,{w:"16%",h:5,r:2,tone:"soft"})]})]}),grid:p("div",{style:{...V,padding:14,display:"grid",gridTemplateColumns:"1fr 1fr",gridTemplateRows:"1fr 1fr",gap:9},children:Array.from({length:4}).map((e,o)=>p("div",{style:{borderRadius:6,background:eo.block}},o))}),blanksection:p("div",{style:{...V,padding:14,display:"flex"},children:A("div",{style:{flex:1,border:`1px dashed ${eo.line}`,borderRadius:7,display:"flex",alignItems:"center",justifyContent:"center",position:"relative"},children:[p(j,{w:14,h:2,r:1,tone:"tint"}),p(j,{w:2,h:14,r:1,tone:"tint",style:{position:"absolute"}})]})}),spacer:A("div",{style:{...V,padding:14,display:"flex",flexDirection:"column",justifyContent:"space-between"},children:[p(j,{w:"100%",h:6,r:3,tone:"soft"}),p(j,{w:16,h:22,r:3,tone:"block",style:{alignSelf:"center"}}),p(j,{w:"100%",h:6,r:3,tone:"soft"})]}),divider:p("div",{style:{...V,padding:14,display:"flex",alignItems:"center"},children:p(j,{w:"100%",h:3,r:2,tone:"dark"})}),customhtml:A("div",{style:{...V,display:"flex",alignItems:"center",justifyContent:"center",gap:8,background:ES},children:[p(j,{w:5,h:16,r:2,tone:"dark",style:{transform:"skewX(-14deg)"}}),p(j,{w:16,h:10,r:3,tone:"accent"}),p(j,{w:5,h:16,r:2,tone:"dark",style:{transform:"skewX(14deg)"}})]}),heading:p("div",{style:{...V,padding:14,display:"flex",alignItems:"center"},children:p(j,{w:"64%",h:13,r:4,tone:"dark"})}),text:A("div",{style:{...V,padding:16,display:"flex",flexDirection:"column",justifyContent:"center",gap:7},children:[p(j,{w:"100%",h:6,r:3,tone:"soft"}),p(j,{w:"96%",h:6,r:3,tone:"soft"}),p(j,{w:"100%",h:6,r:3,tone:"soft"}),p(j,{w:"58%",h:6,r:3,tone:"soft"})]}),image:p("div",{style:{position:"absolute",inset:14,borderRadius:7,background:ES}}),button:p("div",{style:{...V,display:"flex",alignItems:"center",justifyContent:"center"},children:p(j,{w:"34%",h:16,r:8,tone:"accent"})}),menu:A("div",{style:{...V,padding:"14px 22%",display:"flex",flexDirection:"column",justifyContent:"center",gap:7},children:[p(j,{w:"48%",h:7,r:3,tone:"dark"}),p(j,{w:"82%",h:5,r:2,tone:"soft"}),p(j,{w:"66%",h:5,r:2,tone:"soft"}),p(j,{w:"74%",h:5,r:2,tone:"soft"}),p(j,{w:"58%",h:5,r:2,tone:"soft"})]}),emailform:A("div",{style:{...V,padding:16,display:"flex",flexDirection:"column",justifyContent:"center",gap:9},children:[p(j,{w:"56%",h:8,r:3,tone:"dark"}),A("div",{style:{display:"flex",gap:6},children:[p("div",{style:{flex:1,height:16,borderRadius:5,border:`1px solid ${eo.line}`}}),p(j,{w:"30%",h:16,r:5,tone:"accent"})]})]}),sociallogos:p("div",{style:{...V,display:"flex",alignItems:"center",justifyContent:"center",gap:9},children:[0,1,2,3].map(e=>p(j,{w:16,h:16,r:8,tone:"dark"},e))}),paymentlogos:A("div",{style:{...V,display:"flex",alignItems:"center",justifyContent:"center",gap:7},children:[p(j,{w:22,h:6,r:2,tone:"soft"}),[0,1,2,3].map(e=>p(j,{w:20,h:13,r:3,tone:"dark"},e))]}),search:p("div",{style:{...V,padding:"0 18%",display:"flex",alignItems:"center"},children:A("div",{style:{flex:1,height:22,borderRadius:11,border:`1px solid ${eo.line}`,display:"flex",alignItems:"center",gap:7,padding:"0 9px"},children:[p("div",{style:{width:9,height:9,borderRadius:5,border:`2px solid ${eo.dark}`}}),p(j,{w:"46%",h:5,r:2,tone:"soft"})]})}),cart:A("div",{style:{...V,display:"flex",alignItems:"center",justifyContent:"center",gap:7},children:[p("div",{style:{width:22,height:18,borderRadius:"3px 3px 6px 6px",border:`2px solid ${eo.dark}`}}),p("div",{style:{padding:"2px 6px",borderRadius:6,border:`1.5px solid ${eo.dark}`},children:p(j,{w:7,h:7,r:2,tone:"dark"})})]}),countryswitch:A("div",{style:{...V,padding:14,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:5},children:[A("div",{style:{display:"flex",alignItems:"center",gap:6,padding:"4px 8px",border:`1px solid ${eo.line}`},children:[p(j,{w:22,h:6,r:2,tone:"dark"}),p(j,{w:6,h:4,r:1,tone:"soft"})]}),A("div",{style:{width:"46%",display:"flex",flexDirection:"column",gap:4,padding:6,border:`1px solid ${eo.line}`},children:[p(j,{w:"80%",h:4,r:2,tone:"accent"}),p(j,{w:"64%",h:4,r:2,tone:"soft"}),p(j,{w:"72%",h:4,r:2,tone:"soft"})]})]}),legalline:A("div",{style:{...V,padding:16,display:"flex",flexDirection:"column",justifyContent:"center",gap:9},children:[p("div",{style:{height:1,background:eo.line}}),A("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[p(j,{w:"38%",h:5,r:2,tone:"soft"}),A("div",{style:{display:"flex",gap:5},children:[p(j,{w:14,h:5,r:2,tone:"soft"}),p(j,{w:14,h:5,r:2,tone:"soft"}),p(j,{w:14,h:5,r:2,tone:"soft"})]})]})]}),fallback:p("div",{style:{position:"absolute",inset:14,borderRadius:8,background:eo.block}})};function V2({type:e}){let o=jte[e]??"",t=Gte[o]??K2[o]??K2.fallback;return p("div",{className:"sf-thumb","aria-hidden":"true",style:{position:"absolute",inset:0,background:"var(--sf-thumb-thumb-bg)",pointerEvents:"none",containerType:"inline-size"},children:t})}import{useScreenDocument as Sm}from"efficient-easel/screen/components/ScreenDocumentContext";import{jsx as Ts,jsxs as Y2}from"react/jsx-runtime";import Kte from"efficient-easel/screen/components/SidePanelHead";import{StylesIcon as qte}from"efficient-easel/rail";import{Tooltip as Vte}from"efficient-shell/ui";import{HintsToggle as Yte,hintsFoldClass as Xte}from"efficient-easel/panel";import{useHints as Zte}from"efficient-easel/screen/lib/hints";function X2({tokenRef:e,siteId:o,onClose:t,onNotify:r,tab:a,onTabChange:n,revealPageGroup:s,onPageGroupRevealed:l}){let i=Ln(),{shown:d,setShown:f}=Zte();return Y2("div",{className:`sf-styles ${Xte(d)}`.trim(),children:[Ts(Kte,{icon:Ts(qte,{}),title:c("Styles"),context:Ts(Vte,{content:c("{name} \u2014 renamed in the Console: {place}.",{name:i,place:c("Storefront \u25B8 Sites \u25B8 Settings")}),className:"sf-name-tip",children:Ts("span",{className:"sf-name-text",children:i})})}),Y2("div",{className:"sf-insp-body es-insp-body sf-scroll",children:[Ts(Nf,{tokenRef:e,siteId:o,onNotify:r,tab:a,onTabChange:n,revealPageGroup:s,onPageGroupRevealed:l}),Ts(Yte,{shown:d,onChange:f,label:c("Show hints")})]})]})}import{jsx as so,jsxs as Ya,Fragment as tre}from"react/jsx-runtime";import{Fragment as l5,useEffect as i5,useRef as NS}from"react";import{useTreeDrag as d5}from"efficient-easel/drag";import{GlobeIcon as rre,ImageIcon as are,LocationIcon as nre,MapIcon as sre,TextLinesIcon as lre,TrashIcon as f5}from"efficient-easel/icons";import{Subtree as c5,TreeRow as Ki,TreeRowAction as p5,TreeSeam as u5}from"efficient-easel/tree";import{useEaselStrings as ire}from"efficient-easel/strings";import{isSelectionMode as dre}from"efficient-easel/screen/lib/screen-parts";import{useSyncExternalStore as Jte}from"react";var Qte={level:"groups"},J2=Qte,FS=new Set;function Bt(e){J2=e;for(let o of FS)o()}function ere(e){return FS.add(e),()=>{FS.delete(e)}}var Z2=()=>J2;function Q2(){return Jte(ere,Z2,Z2)}var Gi=e=>String(e?.group??""),BS=new WeakMap,ore=0;function um(e){let o=BS.get(e);return o||(o=`loc${++ore}`,BS.set(e,o)),o}var e5=(e,o)=>o||e||"Ungrouped",o5={photo:"",group:"",groupName:"",name:"City name",state:"State",country:"Country",timezone:"GMT \xB7 UTC +0",address:`Address line one
|
|
337
337
|
Address line two`,phone:"+00 000 0000",hours:"Mon\u2013Fri 9:00\u201318:00",lat:0,lng:0,mapsUrl:""};function Va(e){return Sd(e,Gi,o=>String(o?.groupName??"")).map(o=>({key:o.key,name:o.name,cards:o.items.map(t=>t.item)}))}var LS=e=>e.flatMap(o=>o.cards),t5=(e,o,t)=>Math.min(Math.max(e,o),t);function mm(e,o,t){let r=0;for(let a=0;a<e.length;a++)if(Gi(e[a])===o){if(r===t)return a;r++}return-1}function RS(e,o,t){let r=Va(e);if(o<0||o>=r.length)return e;let[a]=r.splice(o,1),n=t5(o<t?t-1:t,0,r.length);return r.splice(n,0,a),LS(r)}function DS(e,o,t,r,a){let n=Va(e),s=n.find(x=>x.key===o),l=n.find(x=>x.key===r);if(!s||!l||t<0||t>=s.cards.length)return e;let[i]=s.cards.splice(t,1),d=o===r?i:{...i,group:l.key,groupName:l.name};d!==i&&BS.set(d,um(i));let f=t5(s===l&&t<a?a-1:a,0,l.cards.length);return l.cards.splice(f,0,d),LS(n)}function r5(e,o){let t=Va(e),r=t.find(n=>n.key===o),a={...o5,group:o,groupName:r?.name??""};return r?(r.cards.push(a),LS(t)):[...e,a]}function a5(e){let o=new Set(Va(e).map(a=>a.key)),t=o.size+1,r=`Group ${t}`;for(;o.has(r);)r=`Group ${++t}`;return{cards:[...e,{...o5,group:r,groupName:""}],key:r}}function n5(e,o){return e.filter(t=>Gi(t)!==o)}function s5(e,o,t){let r=mm(e,o,t);return r<0?e:e.filter((a,n)=>n!==r)}function Y5e(e,o,t){let r=e.flatMap((s,l)=>Gi(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 X5e(e,o,t){return o.flatMap(r=>{let a=e.filter(n=>Gi(n)===r);return a.length?a:t(r)})}var hm="ContactLocations",xm=e=>({parentId:`locations-${e}`,slot:"groups"}),MS=(e,o)=>({parentId:`locations-${e}`,slot:`cities:${o}`});function m5(e,o){let{readOnly:t,selected:r}=o,a=ire().tree,n=o.data?.content??[],s=dre(e),l=NS(null);i5(()=>{let T=r?.type===hm?String(r.props.id):null;T&&T!==l.current&&Bt({level:"groups"}),l.current=T},[r?.props.id]);let{selectedLocationPartId:i,setSelectedLocationPartId:d,setSelectHandler:f}=ML(),x=Q2(),u=(T,g)=>{let w=n[T];w&&o.replace(T,{type:w.type,props:{...w.props,locations:g}})},h=T=>{let g=n[T]?.props?.locations;return Array.isArray(g)?g:[]},I=d5({keyOf:T=>`group:${T.si}:${T.index}`,readOnly:!!t,canDrop:(T,g)=>g.parentId===xm(T.si).parentId&&g.slot==="groups",onDrop:(T,g)=>{u(T.si,RS(h(T.si),T.index,g.index)),x.level==="city"&&Bt({level:"groups"})},onStep:(T,g)=>{u(T.si,RS(h(T.si),T.index,g<0?T.index-1:T.index+2)),x.level==="city"&&Bt({level:"groups"})}}),S=d5({keyOf:T=>`city:${T.si}:${T.group}:${T.index}`,readOnly:!!t,canDrop:(T,g)=>g.parentId===xm(T.si).parentId&&g.slot.startsWith("cities:"),onDrop:(T,g)=>{let w=g.slot.slice(7);u(T.si,DS(h(T.si),T.group,T.index,w,g.index)),Bt({level:"group",key:w})},onStep:(T,g)=>{u(T.si,DS(h(T.si),T.group,T.index,T.group,g<0?T.index-1:T.index+2)),x.level==="city"&&Bt({level:"group",key:T.group})}}),v=NS(n);v.current=n;let O=NS(()=>{});i5(()=>{f(T=>{let g=ou(T);if(!g)return;let w=v.current.findIndex(_=>_.props?.id===g.nodeId);w<0||O.current(w,{level:g.part,index:g.index})})},[f]);let R=(T,g)=>{l.current=n[T]?.props?.id??null,o.select(T),Bt(g),e.reveal();let w=n[T]?.props?.id;typeof w=="string"&&(g.level==="city"||g.level==="image"||g.level==="map")?d(eu(w,g.index,g.level)):d(null),typeof w=="string"&&o.scrollTo(w)};return O.current=R,{renderLocationTree:(T,g,{rowClick:w,isCollapsed:_,toggleCollapse:E})=>{let D=h(g),b=Va(D),F=String(T.props.id),y=s&&r?.props.id===F,k=C=>so(u5,{...t?{}:I.seam({place:{...xm(g),index:C}})},`seam:${F}:groups:${C}`),P=(C,B)=>so(u5,{...t?{}:S.seam({place:{...MS(g,C),index:B}})},`seam:${F}:cities:${C}:${B}`);return Ya(tre,{children:[so(Ki,{icon:so(lre,{size:13}),name:c("Texts"),words:a,onSelect:()=>R(g,{level:"texts"}),selected:y&&x.level==="texts",rowProps:{onClick:w(()=>R(g,{level:"texts"}))}}),b.map((C,B)=>{let H=`${F}::grp::${C.key}`,q=_(H),$=y&&x.level==="group"&&x.key===C.key,le=C.name||C.key?e5(C.key,C.name):c("Ungrouped"),pe={...MS(g,C.key),index:C.cards.length},ee=S.row({item:{si:g,group:C.key,index:-1},place:pe,into:pe,canDrag:!1},{onClick:w(()=>R(g,{level:"group",key:C.key}))}),xe=I.row({item:{si:g,index:B},place:{...xm(g),index:B}},ee.rowProps);return Ya(l5,{children:[B===0&&k(0),so(Ki,{icon:so(rre,{size:13}),name:le,words:a,onSelect:()=>R(g,{level:"group",key:C.key}),selected:$,draggable:xe.draggable,dragging:xe.dragging,drop:xe.drop??ee.drop,fold:{open:!q,label:c("group"),onToggle:()=>E(H)},actions:so(p5,{kind:"delete",label:Mt("Delete {label} group ({n} city)","Delete {label} group ({n} cities)",C.cards.length,{label:le}),onClick:()=>{u(g,n5(D,C.key)),Bt({level:"groups"})},children:so(f5,{size:15})}),rowProps:xe.rowProps,count:C.cards.length,countLabel:Mt("{n} city","{n} cities",C.cards.length)}),!q&&Ya(c5,{children:[C.cards.map((oe,ie)=>{let ge=mm(D,C.key,ie),Re=y&&x.level==="city"&&x.index===ge,$e=String(oe?.name??"")||c("City"),yo=`${F}::city::${um(oe)}`,oo=_(yo),{rowProps:io,...So}=S.row({item:{si:g,group:C.key,index:ie},place:{...MS(g,C.key),index:ie}},{onClick:w(()=>R(g,{level:"city",index:ge}))});return Ya(l5,{children:[ie===0&&P(C.key,0),so(Ki,{icon:so(nre,{size:13}),name:$e,words:a,onSelect:()=>R(g,{level:"city",index:ge}),selected:Re,...So,fold:{open:!oo,label:$e,onToggle:()=>E(yo)},actions:so(p5,{kind:"delete",label:c("Delete {name}",{name:$e}),onClick:()=>{u(g,s5(D,C.key,ie)),Bt({level:"group",key:C.key})},children:so(f5,{size:15})}),rowProps:io}),!oo&&Ya(c5,{children:[so(Ki,{icon:so(are,{size:13}),name:c("Image"),words:a,onSelect:()=>R(g,{level:"image",index:ge}),selected:y&&x.level==="image"&&x.index===ge,rowProps:{onClick:w(()=>R(g,{level:"image",index:ge}))}}),so(Ki,{icon:so(sre,{size:13}),name:c("Map"),words:a,onSelect:()=>R(g,{level:"map",index:ge}),selected:y&&x.level==="map"&&x.index===ge,rowProps:{onClick:w(()=>R(g,{level:"map",index:ge}))}})]}),P(C.key,ie+1)]},um(oe))}),Ya("button",{type:"button",className:"sf-add-card",onClick:()=>{let oe=r5(D,C.key);u(g,oe);let ie=Va(oe).find(ge=>ge.key===C.key);Bt(ie&&ie.cards.length?{level:"city",index:mm(oe,C.key,ie.cards.length-1)}:{level:"group",key:C.key})},children:[so("span",{className:"sf-plus sf-plus--sm",children:"+"}),c("Add city")]})]}),k(B+1)]},H)}),Ya("button",{type:"button",className:"sf-add-card",onClick:()=>{let{cards:C,key:B}=a5(D);u(g,C),R(g,{level:"group",key:B})},children:[so("span",{className:"sf-plus sf-plus--sm",children:"+"}),c("Add group")]})]})},sectionPressed:T=>{T?.type===hm&&Bt({level:"groups"})}}}import{useEffect as ure,useRef as mre}from"react";import{createNode as WS,newId as $S}from"efficient-easel/data";import{useEaselApi as xre}from"efficient-easel/easel";import{useScreenDocument as hre}from"efficient-easel/screen/components/ScreenDocumentContext";import{useEaselSession as Ire}from"efficient-easel/screen/lib/session-context";import{useEffect as g5,useRef as fre}from"react";import{useEasel as cre}from"efficient-easel/easel";import{ROOT_ZONE as HS}from"efficient-easel/draw";var qi={};function x5(e){return qi={...e?.theme?{theme:e.theme}:{},...e?.site?{site:e.site}:{}},qi}function h5(e){qi===e&&(qi={})}function Os(){return qi}function I5(e){let o=r=>typeof r=="string"?r:null,t=e.theme_row===void 0?null:e.theme_row==="site";return{schema:String(e.schema),site:String(e.site),headingCase:o(e.heading_case),textStyles:typeof e.text_styles_is_null=="boolean"?!e.text_styles_is_null:null,textStylesList:Array.isArray(e.text_styles)?e.text_styles:null,ownThemeRow:t,deleted:e.site_deleted===!0,...Array.isArray(e.theme_presets)?{themePresets:e.theme_presets}:{},...typeof e.selected_preset=="number"?{selectedPreset:e.selected_preset}:{},...typeof e.site_gutter=="number"?{siteGutter:e.site_gutter}:{},...typeof e.site_gutter_phone=="number"?{siteGutterPhone:e.site_gutter_phone}:{},..."site_gutter_unit"in e?{siteGutterUnit:o(e.site_gutter_unit)}:{},..."site_gutter_phone_unit"in e?{siteGutterPhoneUnit:o(e.site_gutter_phone_unit)}:{}}}function S5(e){let o=cre(d=>d.appState.data.content),{theme:t,themeRow:r,themeFromDocument:a,siteGutter:n,siteGutterPhone:s,siteLengthUnits:l}=ko(),i=fre(new Set);g5(()=>{let d=y5({theme:t,themeRow:r,themeFromDocument:a,siteGutter:n,siteGutterPhone:s,siteLengthUnits:l});d&&pre(h1(o,void 0,d),e,i.current)},[o,e,t,r,a,n,s,l]),g5(()=>{let d=x5(y5({theme:t,themeRow:r,themeFromDocument:a,siteGutter:n,siteGutterPhone:s,siteLengthUnits:l}));return()=>h5(d)},[t,r,a,n,s,l])}function y5(e){if(e.themeFromDocument||e.themeRow==="none")return{};if(e.themeRow!=="read")return null;let{siteGutter:o=null,siteGutterPhone:t=null,siteLengthUnits:r={}}=e;if(o===null&&t===null)return{theme:e.theme};let a=I5({schema:"",site:"",site_gutter:o,site_gutter_phone:t,site_gutter_unit:r.siteGutterUnit??null,site_gutter_phone_unit:r.siteGutterPhoneUnit??null});return{theme:e.theme,site:a}}function pre(e,o,t){for(let{index:r,nodes:a}of[...e].sort((n,s)=>s.index-n.index)){let n=String(a[0].props.id);t.has(n)||(t.add(n),o.replaceComponent(HS,r,a[0]),a.slice(1).forEach((s,l)=>{o.insertNode(HS,r+1+l,s),o.replaceComponent(HS,r+1+l,s)}))}}import{ROOT_ZONE as Es,missingPinnedTypes as gre,pinnedDuplicateIds as zS}from"efficient-easel/draw";function b5(e){return!e.docId||e.saveStatus==="saving"?!1:e.seededDocId!==e.docId}function w5(e,o){let t=e.some(l=>l?.type===Je),r=e[e.length-1],a=!t&&r?.type===Le?r:null,n=e.filter(l=>l?.type===Le&&l!==a).map(l=>String(l.props?.id??"")).filter(Boolean),s=o.hasChromeDoc&&!t&&!a;return{remove:n,seedHeader:!e.some(l=>l?.type===Go),seedFooter:s,seedSiteHeader:s&&!e.some(l=>l?.type===Ho)}}async function C5(e){let o=e.blocks?.seeds?.siteHeader;if(!o)return!1;let t;try{t=await o({make:e.make,id:e.id,siteId:e.siteId,token:e.token})}catch{return!1}if(!t||t.type!==Ho||!e.stillOpen())return!1;let r=e.latest();return r.some(a=>a?.type===Ho)?!1:(e.write(hf(r,t)),!0)}function k5(e,o){let{adapter:t,capabilities:r,currentSlug:a,docId:n,data:s,saveStatus:l,siteId:i,tokenRef:d}=hre(),f=Ire(),{hasSiteSettings:x,hasPinnedChrome:u}=r;S5(e);let h=!!r.editsPinnedInPlace&&a!==Or,I=a===Or,S=xre().getState,v=mre(null);ure(()=>{if(!b5({docId:n,saveStatus:l,seededDocId:v.current})||(v.current=n,!u))return;let O=S().appState.data,R=O.content,T=s?.content??[],g=(D,b)=>D.some(F=>F?.type===b);if(!x){let D=new Set(zS(R)),b=D.size?R.filter(y=>!D.has(y.props.id)):R;if(D.size&&e.setDocument({...O,content:b}),I)return;let F=gre(b,T);if(F.includes(Le)){let y=b.length,k=e.insertSection(Le,y);e.replaceComponent(Es,y,{type:Le,props:{id:k,blocks:im()}})}F.includes(Go)&&e.insertNode(Es,0,lm());return}if(I){let D=lP(R);if(D!==R&&e.setDocument({...O,content:[...D]}),!D.find(b=>b.type===Le)&&!g(T,Le)&&!g(D,Je)&&!g(T,Je)){let b=(y,k)=>WS(o,y,k),F={type:Le,props:{blocks:im()}};e.insertNode(Es,D.length,ii(F,b,$S(Je),zi))}return}if(h){let D=!!t?.pinnedChrome?.state().docId,b=w5(R,{hasChromeDoc:D}),F=new Set([...b.remove,...zS(R.filter(k=>!b.remove.includes(String(k.props.id))))]),y=F.size?R.filter(k=>!F.has(String(k.props.id))):R;if(y.length!==R.length&&e.setDocument({...O,content:y}),b.seedFooter&&!g(T,Le)&&!g(T,Je)){let k=(C,B)=>WS(o,C,B),P={type:Le,props:{blocks:im()}};e.insertNode(Es,y.length,ii(P,k,$S(Je),zi))}if(b.seedHeader&&!g(T,Go)){let k=y[0]?.type===Ho?1:0;e.insertNode(Es,k,lm())}if(b.seedSiteHeader&&!g(T,Ho)&&!g(T,Le)&&!g(T,Je)){let k=n;C5({blocks:mn(f),make:(P,C)=>WS(o,P,C),id:$S(Ho),siteId:i??null,token:d.current,latest:()=>S().appState.data.content,stillOpen:()=>v.current===k,write:P=>{let C=S().appState.data;e.setDocument({...C,content:[...P]})}})}return}let w=R.filter(D=>D.type!==Le),_=new Set(zS(w)),E=_.size?w.filter(D=>!_.has(D.props.id)):w;E.length!==R.length&&e.setDocument({...O,content:E}),!g(E,Go)&&!g(T,Go)&&e.insertNode(Es,0,lm())},[n,l,s,S,e,x,u,I,h,t,f,i,d])}import{useEffect as L5,useMemo as vre,useRef as R5}from"react";import{useEasel as Pre}from"efficient-easel/easel";import{newId as Tre}from"efficient-easel/data";import{useEaselHost as Ore}from"efficient-easel/screen/lib/host";import{FIELD_DESCRIPTION_MARKER as yre}from"efficient-easel/screen/lib/host";import{isNode as T5}from"efficient-easel/data";function Vi(e,o){let t=e.components[o]?.label;return typeof t=="string"&&t.trim()?t.trim():o}function Sre(e){return e.length>3&&e.endsWith("s")?e.slice(0,-1):e}function US(e,o,t,r){e.forEach((a,n)=>{if(T5(a)){r.push({node:a,list:e,index:n,parent:o,slot:t});for(let s of Lt(a))US(a.props[s],a,s,r)}})}function bre(e){let o=[];US(Array.isArray(e.content)?e.content:[],null,"",o);for(let t of Object.values(e.zones??{}))Array.isArray(t)&&US(t,null,"",o);return o}function O5(e,o){return bre(e).find(t=>String(t.node.props.id)===o)}function E5(e,o,t){if(!t)return null;let r=O5(o,t);if(!r)return null;let a=Vi(e,r.node.type),n=r.parent?`${Vi(e,r.parent.type)} \xB7 ${Sre(r.slot)} ${r.index+1}`:a;return{blockId:t,type:r.node.type,label:n,path:""}}var wre=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 Cre(e){if(!e||typeof e!="object")return null;let o=e;if(typeof o.type!="string")return null;let t=o.type==="custom"?o[yre]: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=wre(n));for(let s of["arrayFields","objectFields"]){let l=t?.[s]??o[s];l&&typeof l=="object"&&(r[s]=_5(l))}return r}function _5(e){let o={};for(let[t,r]of Object.entries(e??{})){let a=Cre(r);a&&(o[t]=a)}return o}function A5(e){let o={};for(let[t,r]of Object.entries(e.components))r&&(o[t]={label:Vi(e,t),fields:_5(r.fields),...F5(t)?{retired:!0}:{}});return o}function F5(e){return co(fb,e)}function v5(e,o){let t=e.components[o]?.defaultProps;return t&&typeof t=="object"?structuredClone(t):{}}function kre(e,o){let t=e;for(let r of o?o.split("."):[]){let a=/^([A-Za-z_][A-Za-z0-9_]*)(?:\[(\d+)\])?$/.exec(r);if(!a||!t||typeof t!="object")return null;t=t[a[1]],a[2]!==void 0&&(t=Array.isArray(t)?t[Number(a[2])]:void 0)}return t&&typeof t=="object"&&!Array.isArray(t)?t:null}function jS(e,o){return e.findIndex(t=>T5(t)&&String(t.props.id)===o)}function P5(e,o,t){let r=o||t;if(!r)return e.length;let a=jS(e,r);if(a<0)throw new Error(`there is no top-level block ${r}`);return o?a+1:a}function B5(e,o,t,r,a={}){let n=structuredClone(o),s=Array.isArray(n.content)?n.content:n.content=[];try{t.forEach((l,i)=>{let d=f=>{throw new Error(`change ${i+1}: ${f}`)};switch(l.op){case"set_props":{let f=O5(n,l.block_id)??d(`there is no block ${l.block_id}`);"id"in l.props&&d("a block's id is never changed");let x=kre(f.node.props,l.path)??d(`there is no ${l.path} in that block`);Object.assign(x,structuredClone(l.props));break}case"insert_block":{e.components[l.type]??d(`there is no block type ${l.type}`),F5(l.type)&&d(`${Vi(e,l.type)} is retired: it is no longer added (a page that holds one keeps it)`);let f=ps(l.type),x=Object.keys(l.props??{}).filter(h=>h!=="id");f&&x.length&&d(`${Vi(e,l.type)} is laid down as a Box of blocks: insert it with no props, then change its blocks`);let u=f?f(h=>v5(e,h),r,a):{type:l.type,props:{...v5(e,l.type),...structuredClone(l.props),id:r(l.type)}};s.splice(P5(s,l.after,l.before),0,u);break}case"remove_block":{let f=jS(s,l.block_id);f<0&&d(`there is no top-level block ${l.block_id}`),s.splice(f,1);break}case"move_block":{let f=jS(s,l.block_id);f<0&&d(`there is no top-level block ${l.block_id}`);let[x]=s.splice(f,1);s.splice(P5(s,l.after,l.before),0,x);break}default:d(`"${l.op}" is not a change this editor makes`)}})}catch(l){return{ok:!1,reason:l instanceof Error?l.message:String(l)}}return{ok:!0,document:n}}var GS=e=>fo(e.requestId)??null;function D5(){let e=Ore(),{appState:o,selectedItem:t,dispatch:r,history:a,config:n}=Pre(u=>u),s=n,l=R5({appState:o,dispatch:r,history:a,blockConfig:s});l.current={appState:o,dispatch:r,history:a,blockConfig:s};let i=R5(new Map),d=t?.props?.id,f=vre(()=>E5(s,o.data,d),[s,o.data,d]),x=f?JSON.stringify(f):"";L5(()=>{e.connected&&e.send("storefront-editor:selection",{selection:f})},[e,x]),L5(()=>e.subscribe(u=>{let{appState:h,dispatch:I,history:S,blockConfig:v}=l.current;switch(u.type){case"storefront-editor:request-document":{let O=GS(u);if(!O)return;e.send("storefront-editor:document",{requestId:O,document:h.data,blocks:A5(v)});return}case"storefront-editor:apply-page-edits":{let O=GS(u);if(!O)return;let R=Array.isArray(u.ops)?u.ops:[],T=R.length?B5(v,h.data,R,Tre,Os()):{ok:!1,reason:"no changes"};T.ok&&(I({type:"setData",data:T.document,recordHistory:!0}),i.current.set(O,JSON.stringify(T.document.content??[]))),e.send("storefront-editor:page-edits-result",{requestId:O,applied:T.ok,reason:T.ok?null:T.reason});return}case"storefront-editor:undo-page-edits":{let O=GS(u);if(!O)return;let R=i.current.get(O),T=R!==void 0&&R===JSON.stringify(h.data.content??[]);T&&S.hasPast&&(S.back(),i.current.delete(O)),e.send("storefront-editor:page-edits-result",{requestId:O,applied:T&&S.hasPast,reason:T?null:"the page has changed since"});return}case"storefront-editor:set-right-panel":typeof u.shown=="boolean"&&I({type:"setUi",ui:{rightSideBarVisible:u.shown}});return;default:return}}),[e])}import{useEffect as H5,useState as W5}from"react";var Im=new Map;async function Ere(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 N5(e,o){let t=Im.get(o);return t||(t=Ere(e,o),Im.set(o,t),t.catch(()=>{Im.get(o)===t&&Im.delete(o)})),t}var _re=/^(localhost|(?:[a-z0-9-]+\.)+localhost|127(?:\.\d{1,3}){3}|0\.0\.0\.0|\[::1\]|::1)$/i;function KS(e){return!!e&&_re.test(e)}function M5(e){let{pageSlug:o,siteSlug:t,hostname:r}=e,a=o===sT?"/":`/${encodeURIComponent(o)}`;if(!KS(r))return a;let n=t?.trim();return n?`${a}?site=${encodeURIComponent(n)}`:a}function $5(e){let{pageSlug:o,siteId:t,token:r}=e,[a,n]=W5(null),[s,l]=W5(null),i=pP();H5(()=>{try{l(new URL(uP()).hostname)}catch{l(null)}},[i]),H5(()=>{if(!KS(s)||!t||!r){n(null);return}let f=!1;return N5(r,t).then(x=>{f||n(x)}),()=>{f=!0}},[s,t,r]);let d=M5({pageSlug:o,siteSlug:a,hostname:s});return i?`${i}${d}`:d}import{jsx as Yi}from"react/jsx-runtime";import{useEffect as Are,useRef as z5,useState as Fre}from"react";import{ExternalIcon as U5}from"efficient-easel/icons";import{EaselIconButton as Bre}from"efficient-easel/chrome";import{Tooltip as Lre,iconButtonClasses as Rre}from"efficient-shell/ui";import{useSettledPress as Dre}from"efficient-easel/easel";import{useScreenDocument as Nre}from"efficient-easel/screen/components/ScreenDocumentContext";async function Mre({pageId:e,liveHref:o,draftLink:t,ready:r=async()=>!0,win:a=window}){let n=a.open("","_blank");if(n)try{n.opener=null}catch{}let s=l=>{n&&!n.closed?n.location.href=l:a.open(l,"_blank","noopener,noreferrer")};try{await r()}catch{}return t(e).then(l=>s(l.url??o),()=>s(o))}function j5({liveHref:e,pageId:o,draftLink:t}){let{flushSave:r}=Nre(),a=z5(r);a.current=r;let n=Dre(),[s,l]=Fre(!1),i=z5(null);if(Are(()=>()=>i.current?.(),[]),t&&o){let d=()=>new Promise((x,u)=>{i.current=()=>x(!1),n.run(()=>{i.current=null,a.current().then(x,u)})}),f=()=>{s||n.waiting||(l(!0),Mre({pageId:o,liveHref:e,draftLink:t,ready:d}).finally(()=>l(!1)))};return Yi(Bre,{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:Yi(U5,{})})}return Yi(Lre,{content:c("Preview the live site (opens in a new tab)"),side:"bottom",children:Yi("a",{className:Rre({className:"es-iconbtn"}),href:e,...kl,"aria-label":c("Preview the live site in a new tab"),children:Yi(U5,{})})})}import{createElement as Hre,useCallback as Wre,useEffect as G5,useRef as K5,useState as $re}from"react";import{ClockIcon as zre}from"efficient-shell/icons/efficient";import{useScreenDocument as Ure}from"efficient-easel/screen/components/ScreenDocumentContext";function q5(e){let{docId:o,capabilities:t,hasUnsavedEdits:r,onPublish:a,adapter:n}=Ure(),s=p2(c2(o??null),r),l=_u(Au()),i=n.siteLiveState;G5(()=>{if(i)return Bx(i),fa(0),()=>Bx(null)},[i]);let d=Ef(),[f,x]=$re(!1),u=K5(e);u.current=e;let h=K5(!0);G5(()=>(h.current=!0,()=>{h.current=!1}),[]);let I=Wre(()=>{x(!0),a(u.current).then(()=>{Bu()}).finally(()=>{h.current&&x(!1)})},[a]);if(t.canPublish){if(i){let S=d===void 0?void 0:r||d.state==="changed"?"changed":"live",v=hS({live:S,onPress:I,busy:f,goingLive:u2(d?.changes??[])});return n.siteVersions?{...v,menuItems:jre()}:v}return hS({live:s,onPress:I,busy:f,pinnedUnpublished:l?.unpublished??!1})}}function jre(){return[{key:"version-history",label:c("Version history"),icon:Hre(zre),onSelect:vM}]}import{jsx as Q,jsxs as Xo,Fragment as Ji}from"react/jsx-runtime";import{useCallback as Gre,useEffect as Kre,useId as X5,useRef as qre,useState as gt}from"react";import{useSettledAction as Vre}from"efficient-easel/easel";import{Avatar as Yre,Banner as Xi,Button as Xa,ColoredBadge as qS,Dialog as YS,DropdownMenu as Xre,FormField as Z5,iconButtonClasses as Zre,Inline as VS,Input as Jre,ListRow as Qre,Select as eae,SortableList as oae,Stack as Zi}from"efficient-shell/ui";import{EditIcon as tae,EyeIcon as V5,MenuIcon as rae,MoreIcon as aae,PageIcon as J5,RevertIcon as Y5,StylesIcon as nae}from"efficient-shell/icons/efficient";import{useScreenDocument as Q5}from"efficient-easel/screen/components/ScreenDocumentContext";var sae={page:J5,menu:rae};function lae(e,o){return e.pages.find(t=>t.id===o)??e.pages[0]??null}function iae(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 dae({version:e,page:o,waiting:t,busy:r,error:a,onCancel:n,onConfirm:s,onPage:l}){let i=X5();if(!e)return null;let d=e.kind==="draft_before_restore",f=e.number,x=BM(e),u=d?c("Put your drafts back?"):o?c("Restore {page} from version {n}?",{page:o.name,n:f}):c("Restore version {n}?",{n:f}),h=d?c("Your drafts go back to how they were before the restore."):o?c("{page} goes back to version {n} as a draft. Nothing else on your website changes.",{page:o.name,n:f}):x?c("The whole website goes back to version {n} as a draft: {what}.",{n:f,what:x}):c("The whole website goes back to version {n} as a draft.",{n:f}),I=e.deletedPictures??0;return Q(YS,{open:!0,onClose:()=>{r||n()},size:"sm",title:u,footer:Xo(Ji,{children:[Q(Xa,{variant:"secondary",onClick:n,disabled:r,children:c("Cancel")}),Q(Xa,{onClick:s,loading:r,disabled:r,children:c("Restore as draft")})]}),children:Xo(Zi,{gap:4,children:[o&&e.pages.length>1?Q(Z5,{label:c("Page"),htmlFor:i,children:Q(eae,{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(Xi,{tone:"warning",children:Mt("{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(Xi,{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(Xi,{tone:"danger",children:a}):null]})})}function fae({version:e,onCancel:o,onSave:t}){let r=X5(),[a,n]=gt(null),[s,l]=gt(""),[i,d]=gt(!1),[f,x]=gt(null);if(e!==a&&(n(e),l(e?.name??""),x(null)),!e)return null;let u=s.trim()===e.name,h=async()=>{if(!(i||u)){d(!0),x(null);try{await t(s.trim())}catch{x(c("The name was not saved. Try again."))}finally{d(!1)}}};return Q(YS,{open:!0,onClose:()=>{i||o()},size:"sm",title:c("Name this version"),footer:Xo(Ji,{children:[Q(Xa,{variant:"secondary",onClick:o,disabled:i,children:c("Cancel")}),Q(Xa,{onClick:()=>{h()},loading:i,disabled:i||u,children:c("Save")})]}),children:Q(Z5,{label:c("Name"),htmlFor:r,hint:c("Named versions are always kept. Leave it empty to take the name away."),error:f??void 0,children:Q(Jre,{id:r,value:s,invalid:!!f,onChange:I=>l(I.target.value),onKeyDown:I=>{I.key==="Enter"&&h()}})})})}function cae({version:e,expanded:o,onToggle:t,onPreview:r,onRestore:a,onRestorePage:n,onName:s}){let l=e.kind==="draft_before_restore",i=!e.live,d=e.changes.length,f=[...l?[]:[{key:"preview",label:c("Preview"),icon:Q(V5,{}),onSelect:r}],...i?[{key:"restore",label:l?c("Put these drafts back"):c("Restore whole website"),icon:Q(Y5,{}),onSelect:a}]:[],...i&&!l&&e.pages.length?[{key:"restore-page",label:c("Restore one page only"),icon:Q(J5,{}),onSelect:n}]:[],...l?[]:[{type:"divider",key:"divider"},{key:"name",label:c("Name this version"),icon:Q(tae,{}),onSelect:s}]];return Q(Qre,{title:Xo("span",{className:"sf-version-title",children:[Q("span",{children:FM(e)}),e.live?Q(qS,{tone:"success",size:"xs",children:c("Live")}):null,e.name?Q(qS,{tone:"neutral",size:"xs",children:c("Version {n}",{n:e.number})}):null,l?Q(qS,{tone:"warning",size:"xs",children:c("Not published")}):null]}),expanded:o,onToggle:t,actions:Q(Xre,{align:"end","aria-label":c("More"),items:f,triggerClassName:Zre({variant:"ghost",size:"sm"}),trigger:Q(aae,{})}),below:Xo(Zi,{gap:3,children:[Xo(VS,{gap:2,align:"center",wrap:!0,className:"sf-version-meta",children:[Q(Yre,{name:e.createdBy,size:"xs"}),Q("span",{children:e.createdBy}),Q("span",{"aria-hidden":"true",children:"\xB7"}),Q("span",{children:RM(e.createdAt)}),d?Xo(Ji,{children:[Q("span",{"aria-hidden":"true",children:"\xB7"}),Q("span",{children:Mt("{n} change","{n} changes",d)})]}):null]}),o?Xo(Zi,{gap:3,children:[d?Q(Zi,{gap:2,children:e.changes.map(x=>{let u=sae[x.kind]??nae;return Xo(VS,{gap:2,align:"center",children:[Q(u,{size:16}),Q("span",{children:LM(x)})]},`${x.kind}:${x.id}`)})}):null,Xo(VS,{gap:2,children:[l?null:Q(Xa,{variant:"secondary",size:"sm",leftIcon:Q(V5,{}),onClick:r,children:c("Preview")}),i?Q(Xa,{variant:"secondary",size:"sm",leftIcon:Q(Y5,{}),onClick:a,children:c("Restore")}):null]})]}):null]})})}function pae({open:e,onClose:o,access:t,waiting:r}){let{flushSave:a,reloadFromServer:n,docId:s}=Q5(),[l,i]=gt(null),[d,f]=gt(!1),[x,u]=gt(null),[h,I]=gt(null),[S,v]=gt(!1),[O,R]=gt(null),[T,g]=gt(null),[w,_]=gt(!1),E=qre(0),D=Gre(()=>{let k=++E.current;f(!1),t.list().then(P=>{k===E.current&&i(P)},()=>{k===E.current&&f(!0)})},[t]);Kre(()=>{e&&D()},[e,D]);let b=k=>{_(!1),iae(t,k.id).catch(()=>_(!0))},F=async()=>{if(!(!h||S)){v(!0),R(null);try{await _M({access:t,version:h.version,page:h.page,flushSave:a,reload:n}),I(null),o()}catch(k){R(k instanceof Ei?c("Your last changes did not save, so nothing was restored. Try again."):c("The version was not restored. Nothing changed. Try again."))}finally{v(!1)}}},y=Vre({onPress:()=>{F()},busy:S});return Xo(Ji,{children:[Q(YS,{open:e,onClose:o,size:"xl",title:c("Version history"),description:Xo(Ji,{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:Xo(Zi,{gap:3,children:[w?Q(Xi,{tone:"danger",onDismiss:()=>_(!1),children:c("The preview did not open. Try again.")}):null,d?Q(Xi,{tone:"danger",action:Q(Xa,{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(oae,{"aria-label":c("Versions"),spacing:"comfortable",children:l.map(k=>Q(cae,{version:k,expanded:x===k.id,onToggle:()=>u(P=>P===k.id?null:k.id),onPreview:()=>b(k),onRestore:()=>{R(null),I({version:k,page:null})},onRestorePage:()=>{R(null),I({version:k,page:lae(k,s)})},onName:()=>g(k)},k.id))})]})}),Q(dae,{version:h?.version??null,page:h?.page??null,waiting:r,busy:y.busy===!0,error:O,onCancel:()=>I(null),onConfirm:y.onPress,onPage:k=>I(P=>P&&{...P,page:P.version.pages.find(C=>C.id===k)??P.page})}),Q(fae,{version:T,onCancel:()=>g(null),onSave:async k=>{await t.name(T.id,k),g(null),D()}})]})}function e4(){let{adapter:e,hasUnsavedEdits:o}=Q5(),t=e.siteVersions,r=TM(),a=Ef();return t?Q(pae,{open:r,onClose:PM,access:t,waiting:o||a?.state==="changed"}):null}import{useEaselSession as H4}from"efficient-easel/screen/lib/session-context";import{buildPaletteSections as j6e,categoryLabel as G6e,paletteWithoutPinned as K6e,pinnedSection as q6e}from"efficient-easel/screen/lib/document/palette-sections";var uae={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(uae,e)?.label}var t4=ub;function mae(e){let o=ru.Ticker(e.nodeDefaults,e.newNodeId),{sectionBorder:t,...r}=o.props,a=aI.line?{sectionBorder:t}:{};return{...o,props:{...r,...a,sectionAccent:aI.sectionAccent}}}var xae={Hero:{[Yl]:{newChild:mae,childLabel:Qr.Ticker}}},r4=Object.fromEntries(Object.entries(i1).map(([e,o])=>[e,Object.fromEntries(Object.entries(o).map(([t,r])=>[t,{...r,...z(xae,e)?.[t]}]))]));function a4(e,o=0,t,r){let a=Iae(gae(e,o,r),t),n=a?Lg():null;return a&&n?hae(a,n):a}function hae(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 Iae(e,o){if(!e||e.source!=="container"||!o||!bw())return e;let t=Ed({data:o.data},o.id),r=typeof t?.type=="string"?kd(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 gae(e,o,t){let r=t?z(r4,e)?.[t]:void 0;if(r)return{source:"section",slot:r.slot,choices:null,spec:r};let a=z(it,e);if(a)return{source:"section",slot:a.slot,choices:null,spec:a};let n=dd(e,o);if(n)return{source:"container",slot:n.slot,choices:n.choices,spec:null};let s=v2(e);return s?{source:"footer",slot:k2,choices:s,spec:null}:null}function n4(e,o=Td(e.type)){return Pd(e.type)?o.map(t=>{let r=kw(e.type,t);return r===null?{slot:t,label:t,rung:!1}:{slot:t,label:c(r),rung:!0}}):null}import{useSyncExternalStore as yae}from"react";var XS=null,ZS=new Set;function s4(e){if(XS!==e){XS=e;for(let o of ZS)o()}}function Sae(e){return ZS.add(e),()=>{ZS.delete(e)}}function hWe(){return yae(Sae,()=>XS,()=>null)}function l4(e){return _P(e)?.ownerId??null}function i4(e,o){let t=e.props;if(e.type==="FooterMenu"){let r=t.menu;return t.heading||r?.name||c("Menu")}if(e.type==="FooterText"){let r=typeof t.text=="string"?t.text.trim():"";return r?r.length>28?`${r.slice(0,28)}\u2026`:r:c("Text")}return e.type==="FooterEmailSignup"?t.heading||c("Email signup"):o(e.type)}import{parseOption as bae}from"efficient-shell/format";var wae=["pages","sections","styles"],d4="sf-editor-left-view";function f4(){if(typeof window>"u")return"pages";try{let e=window.localStorage.getItem(d4);return bae(wae,"pages",e)}catch{return"pages"}}function c4(e){if(!(typeof window>"u"))try{window.localStorage.setItem(d4,e)}catch{}}function p4(e,o){return e==="styles"&&!o?"sections":e}function u4(e,o){return e?"sections":o}import{copyNode as Cae}from"efficient-easel/data";function m4(e){let o=typeof e?.props?.id=="string"?e.props.id:null,t=rr(),r=o&&t?t.sectionOf(o):null;if(!t||!r)return null;let a=t.usedOn(r);return a?a.length===1?c("On 1 page"):c("On {count} pages",{count:a.length}):c("On other pages")}var x4={usedOn:e=>{let o=rr(),t=o?.sectionOf(e.props.id)??null;return!o||!t?null:o.usedOn(t)??[]},openPage:e=>Pf()?.openPage(e),adopt:(e,o)=>rr()?.adopt(e.props.id,o),nodeOf:e=>rr()?.place(e)??null,detach:e=>{let o=Pf()?.config;return o?Cae(e,o):e},removed:()=>Pf()?.reload()};import{sharedSectionsOf as Xae}from"efficient-easel/screen/lib/shared-sections";import{scrollPreviewToSection as Zae,scrollPreviewToTop as F4}from"efficient-easel/screen/lib/document/preview-dom";var kae=kf.mediaFields,vae=/video|poster|focal|phone/i;function Pae(e){return(z(kae,e)??[]).find(o=>!o.includes("[]")&&!vae.test(o))??null}function Tae(e){let o=Pae(e.type);return e.type!==K?o&&Od(e.type,e.props,o)?{fromData:!0}:o:Vk(e.props)?{fromData:!0}:o}var h4={adds:{kind:"block",type:"ImageBlock"},kinds:["image"],pictureOf:Tae,create:(e,o)=>({type:"ImageBlock",props:{...o.nodeDefaults("ImageBlock"),id:o.newNodeId("ImageBlock"),src:e.url}})};var I4={Hero:"Full-screen opener with rotating slides.",HeroSingle:"Full-screen image or video with a headline.",IntroBleed:"Full-bleed intro image the next section scrolls over.",Collections:"Product collections in a tidy grid.",AlloyWheelsListing:"A full product-listing page: filter rail, sortable card grid and pagination, from the live catalog. Choose which product types it shows.",CatalogFilterBar:"Filters the collection grids below it \u2014 a sticky row of Pills (the default), or Columns, one per filter you switch on.",ProductGrid:"Hand-picked products in a tidy grid.",FitmentFinder:"A vehicle picker \u2014 make, model, year and trim resolve the OEM stock fitment live.",Gallery:"Two image galleries with tabs and filters.",GalleryB:"A wall of your photos or your products' pictures, with a click-to-open lightbox.",SpecStrip:"A thin one-line spec strip \u2014 small-caps items spread across the width, as a dark band or a bare hairline row.",ProductHero:"A product hero \u2014 image beside price, bullets and a buy button.",SpecTable:"A spec sheet \u2014 labeled rows of product specifications.",ProcessSteps:"A heading over columns, or alternating rows, of image, title, blurb and specs.",DetailRows:"Repeating full-width rows \u2014 eyebrow, title and copy beside a numbered close-up image, alternating sides each row.",FitmentTable:"A fitment table \u2014 per-size bolt patterns, offsets and load ratings, filterable by diameter.",CompatibleTyres:"The current product's compatible tyres \u2014 image, size, key specs and price per tyre, with an inquiry link. Display only.",RelatedProducts:"The current product's related items in a tidy row \u2014 the product page's built-in 'Pair with' cross-sell.",OrderSummary:"A display order-summary panel \u2014 items, totals and a note.",DeliveryOptions:"Delivery tiers as cards \u2014 name, window and price, one highlighted.",PaymentBadges:"A payment-methods trust strip with reassurance lines.",CheckoutCTA:"A centered 'ready to order?' headline with the checkout button.",Manifesto:"A bold brand statement beside a full-height image, with a stat strip.",ParagraphsA:"An editorial text panel with a stat strip and founders' note.",StatsParagraph:"An editorial heading and paragraph over a row of stat cards whose units and small labels take the main color.",Chart:"A titled chart \u2014 bars, line or donut \u2014 drawn from your own labeled data points.",Mockup:"A headline beside a stylized product-UI mockup card \u2014 spec sheet, fitment, portal, kanban and more.",Prose:"A plain editorial text section \u2014 eyebrow, heading and body copy.",Timeline:"An editorial aside beside a rail-marked timeline of dated entries.",TimelineTrack:"A horizontal year track of milestones \u2014 company history or roadmap.",Footprint:"A world map of your locations with a legend \u2014 designed here, sold worldwide.",TitleWithButtons:"A big headline beside a stack of call-to-action buttons.",Split:"Side-by-side image and text in two columns.",Cards:"A heading over a grid of free-text title-and-blurb cards.",FAQ:"A frequently-asked-questions accordion with a header.",Testimonials:"Customer quotes in a grid \u2014 the quote, a name and a role.",Masthead:"A journal issue header with a lead statement and contents.",Breadcrumb:"A slim trail showing where the reader is (Home / Journal\u2026).",CategoryBar:"A sticky row of category tabs with counts and links.",FeaturedCover:"A featured article \u2014 big cover image beside a headline and dek.",LongRead:"A long-form article spread with a pull-quote and cover image.",Series:"A section heading over a grid of column cards.",Subscribe:"A newsletter signup beside a list of recent issues.",SubscribeBlogs:"A newsletter signup beside your latest blog posts, pulled live.",Events:"Latest journal posts in a three-card row.",DocMasthead:"A page header: eyebrow, title, details and a deck.",DocTabs:"A sticky tab bar that marks the page you are on.",DocBody:"Long-form document body with an 'On this page' contents list.",DocMetaCards:"A three-up meta strip for the foot of a document.",Banner:"Wide promo strip with background image.",Stats:"Highlight key numbers \u2014 years, designs.",Countdown:"Hours, minutes and seconds to a set date and time, then one line.",KeyFeatures:"A theme-color chip and heading over a grid of short feature labels.",Logos:"A row of partner or brand logos.",Ticker:"A scrolling marquee of short phrases, full width.",Reviews:"Approved customer reviews in a star-rated card grid, pulled live.",SubmitBuild:"A 'Show us yours.' headline with a photo-submission form.",ReviewForm:"A write-a-review form \u2014 submissions wait for your approval before they show.",ContactRouting:"Pick who to reach, then a form that routes the message.",ContactLocations:"Your locations as a city gallery plus address and map cards.",SectionHeader:"A numbered section title with optional link.",Grid:"Multi-column container for blocks.",Flex:"An empty section. Add whatever you want inside.",Spacer:"Vertical breathing room between sections.",Divider:"A thin horizontal rule between sections.",CustomHTML:"Drop in your own sanitized HTML.",Heading:"A single heading line.",Text:"A paragraph of body copy.",ImageBlock:"A standalone image, at the width you set.",ButtonBlock:"A call-to-action button."};import{jsx as gm}from"react/jsx-runtime";import{useState as Oae}from"react";import{Button as Eae,Tooltip as _ae,toast as g4}from"efficient-shell/ui";import{TemplateIcon as Aae}from"efficient-easel/icons";import{useSettledAction as Fae}from"efficient-easel/easel";import{useScreenDocument as Bae}from"efficient-easel/screen/components/ScreenDocumentContext";function S4({enabled:e,reason:o,onSaved:t}){let{flushSave:r}=Bae(),[a,n]=Oae(!1),s=async()=>{if(!a){n(!0);try{await r()?t():g4.error(c(y4))}catch{g4.error(c(y4))}finally{n(!1)}}},l=Fae({onPress:()=>{s()},busy:a});return gm(_ae,{side:"bottom",content:e?c("Save this website as a platform template"):c(o),children:gm("span",{className:"sf-tip-disabled",tabIndex:e?void 0:0,children:gm(Eae,{variant:"secondary",disabled:!e||l.busy,loading:l.busy,onClick:l.onPress,rightIcon:gm(Aae,{size:15}),children:c("Save as Template")})})})}var y4="Your last changes did not save, so the template was not made. Try again.";var Lae="Save your page changes first";function b4(e){return e.hasTrustedConsole?e.canCreatePlatformTemplate?!e.capabilities.canPublish||!e.capabilities.hasSiteSettings?{visible:!1,hiddenReason:"not-a-site-page"}:e.siteId?e.hasUnsavedEdits?{visible:!0,enabled:!1,disabledReason:Lae}:{visible:!0,enabled:!0}:{visible:!1,hiddenReason:"no-site"}:{visible:!1,hiddenReason:"not-operator"}:{visible:!1,hiddenReason:"no-console"}}var w4="storefront-editor:save-as-template";import{phoneKey as Rae,tabletKey as Dae}from"efficient-easel/draw";var Nae=[po.top,Dae(po.top),Rae(po.top)],ym="ContactLocations",C4="ContactRouting",k4="CityPictures",v4="CityMaps",Mae=[{key:k4,label:"City pictures",piece:0,desc:"A wall of city photos, grouped by region. Each photo links to its city's card."},{key:v4,label:"City maps",piece:1,desc:"A card per city, grouped by region: address, phone, hours and a map."}];function P4(e=Ta,o=VI){let t=db.find(r=>r.sections.some(a=>a.type===C4))?.key;return!e.includes(ym)||!t?[]:Mae.filter(r=>!(o&&r.key===k4)).map(({key:r,label:a,desc:n,piece:s})=>({key:r,label:a,cat:t,after:C4,desc:n,alias:"locations offices stores branches",insert:l=>{let i=Rr(ym);if(!i)return null;let d=Os(),f=mi(ym,i,s)(l.nodeDefaults,l.newNodeId,d);if(!f||!(o&&r===v4))return f;let x=mi(ym,i,0)(l.nodeDefaults,h=>`${h}-above`,d),u=Object.fromEntries(Nae.filter(h=>x?.props[h]!==void 0).map(h=>[h,x.props[h]]));return{...f,props:{...f.props,...u}}}}))}function T4(e=Ta,o){return[...P4(e,o)]}function E4(e,{nodeDefaults:o,newNodeId:t,sectionLabel:r,blockIsOffered:a}){let n=ps(e);if(n)return n(o,t,Os());if(pw(e)&&a(K)&&a(fn)){let l=z(wt,e);return{type:K,props:{...o(K),id:t(K),direction:"column",name:`${r(e)} section`,content:[{type:fn,props:{...o(fn),id:t(fn),...l?.headStyle?{headStyle:l.headStyle}:{},...l?.headRowGap?{rowGap:l.headRowGap}:{},...l?.headDescriptionSize?{descriptionSize:l.headDescriptionSize}:{},...Pl(e)!==Pl(fn)?{eyebrowLook:Pl(e)}:{}}},{type:e,props:{...o(e),id:t(e),headPlacement:"own-box",...O4(e,t)}}]}}}if(z(it,e)?.fixed===!0)return{type:e,props:{...o(e),id:t(e),layout:"boxes"}};let s=O4(e,t);return Object.keys(s).length?{type:e,props:{...o(e),id:t(e),...s}}:null}function O4(e,o){return e==="Cards"?{template:iw(t=>o(t))}:e===dw?{template:fw(t=>o(t))}:{}}import{useEffect as Hae,useState as Wae}from"react";import{useEaselSession as $ae}from"efficient-easel/screen/lib/session-context";function _4(){let e=$ae().chrome?.products?.list,[o,t]=Wae(null);return Hae(()=>{if(!e)return;let r=!1;return e().then(a=>{r||t(a)}),()=>{r=!0}},[e]),o}function W4({mode:e,open:o}){let{setSelectedHeroId:t,setSelectHandler:r}=RL(),a=M4().tree,n=e,s=n.kind==="ticker"?n.heroId:null,l=_s(i=>{i&&(o({kind:"ticker",heroId:i}),Zae(i))},[o]);return qt(()=>{t(s)},[s,t]),qt(()=>{r(l)},[r,l]),{partRows:(i,{rowClick:d})=>{let f=String(i.props.id);return i.type==="Hero"&&nI(i.props)&&lo(D4,{icon:lo(Ua,{type:"ticker",size:13}),name:c(Na),onSelect:()=>l(f),selected:s===f,rowProps:{onClick:d(()=>l(f))},words:a})}}}function $4({mode:e,select:o}){let{setSelectedHeroPart:t,setSelectHandler:r}=ju(),a=M4().tree,{appState:n,config:s}=N4(u=>u),l=zae({data:n.data,config:s});l.current={data:n.data,config:s};let i=e,d=Ca.find(u=>jl[u]===i.kind),f=d&&"nodeId"in i?ka(String(i.nodeId),d):null,x=_s(u=>{let h=Vc(u);if(!h)return;let{data:I,config:S}=l.current,v=Vae(I,S,{kind:"node",id:h.nodeId});if(!v)return;let O={kind:jl[h.part],nodeId:h.nodeId};o({index:v.index,zone:v.zone},O)},[o]);return qt(()=>{t(f)},[f,t]),qt(()=>{r(x)},[r,x]),{partRows:(u,{rowClick:h})=>{let I=String(u.props.id),S=m_(u);if(S.length===0)return null;let v=T=>{let g=ka(I,T.part);return lo(D4,{icon:lo(Ua,{type:T.part==="media"?"heroMedia":"heroImage",size:13}),name:c(T.label),onSelect:()=>x(g),selected:f===g,rowProps:{onClick:h(()=>x(g))},words:a},g)},[O,...R]=S;return Qi(R4,{children:[v(O),R.length>0&&lo(qae,{children:R.map(v)})]})}}}function z4(e,o){return{partRows:(t,r)=>Qi(R4,{children:[e.partRows?.(t,r),o.partRows?.(t,r)]})}}function Jae(e){let{adapter:o,capabilities:t,currentSlug:r,siteId:a,docId:n,hasUnsavedEdits:s,bridgeCapabilities:l,notifyParent:i,token:d}=Sm(),{hasPreviewLink:f}=t,x=Ao(H4()).preview?.draftLink,u=q5(e.data),h=b4({hasTrustedConsole:!!d,canCreatePlatformTemplate:l.canCreatePlatformTemplate,capabilities:t,siteId:a,hasUnsavedEdits:s}),I=_s(()=>{!a||!r||i(w4,{siteId:a,slug:r})},[i,a,r]),S=$5({pageSlug:r,siteId:a,token:d}),v=o.previewHref?.(r)??S;return{barLead:()=>h.visible&&lo(S4,{enabled:h.enabled,reason:h.enabled?"":h.disabledReason,onSaved:I}),barView:()=>f&&r&&lo(j5,{liveHref:v,pageId:n??null,draftLink:x}),mainAction:u}}function Qae(e,o){let{capabilities:t,templateId:r,siteId:a,tokenRef:n,navigate:s}=Sm(),{hasSiteTheme:l,explainsSiteSettings:i}=t,d=T=>o.setView(T),[f,x]=A4(YT[0].id),[u,h]=A4(!1),{surface:I,setSurface:S}=IH(),v=()=>{if(l){d("styles"),o.reveal(),F4();return}e.show(OS),e.reveal(),F4()},O={id:"pages",label:c("Pages"),icon:lo(jae,{}),panel:({onHide:T})=>lo(lH,{activeSurface:I,onPreviewSurface:S,onNavigate:g=>{S(null),s(r?{kind:"template",id:r,pageSlug:g}:{kind:"page",slug:g,siteId:a??void 0})},onClose:T})},R=[];return!l&&i&&R.push({id:"appearance",label:c("Appearance"),icon:lo(Kae,{}),active:e.kind==="website",onSelect:v}),l&&R.push({id:"styles",label:c("Styles"),icon:lo(Gae,{}),panel:({onHide:T,notify:g})=>lo(X2,{tokenRef:n,siteId:a??void 0,onClose:T,onNotify:g,tab:f,onTabChange:x,revealPageGroup:u,onPageGroupRevealed:()=>h(!1)})}),{railLead:[O],railTrail:R,resolveLeftView:T=>p4(T,l),openSettings:v,openStyles:()=>{x(VT),d("styles")},openPageStyles:l?()=>{x(Df),h(!0),d("styles"),o.reveal()}:i?()=>{e.show(M2),e.reveal()}:void 0}}function ene(){let{navigate:e,siteId:o,reloadFromServer:t,docId:r}=Sm(),a=N4(s=>s.config),n=H4();qt(()=>(Fx({openPage:s=>e({kind:"page",slug:s.slug,siteId:o??void 0}),reload:()=>{t()},config:a}),()=>Fx(null)),[e,o,t,a]),qt(()=>{let s=rr();if(!s||!r)return;let l=!1;return Xae(n).list().then(i=>{l||s.learn(i)}).catch(()=>{}),()=>{l=!0}},[r,n])}function U4(){let e=Mf();return _s(o=>{b0(o,e)},[e])}function one(e,o,t,r){let{kind:a,open:n}=e,{selected:s,zoneOf:l}=o;qt(()=>{s4(s?.type==="BookingBox"&&s.props.region==="confirm"?l4(l(String(s.props.id))):null)},[s?.props.id]);let i=m5(e,o),{capabilities:{hasSiteSettings:d}}=Sm();ene();let{chat:f,setChat:x,setSelected:u,setSelectHandler:h}=Uu(),I=_s(()=>n(H2),[n]),S=a==="chat";qt(()=>{u(S)},[S,u]),qt(()=>{h(I)},[h,I]);let{setOpenHandler:v}=Ai(),O=_s(()=>n(W2),[n]);qt(()=>{v(O)},[v,O]);let R=z4(W4(e),$4(e)),T=Jae(o),g=Qae(e,r);QM(r);let w=t.device,_=U4();return{...R,...T,...g,hasOwnRows:E=>E.type===hm,ownRows:i.renderLocationTree,sectionPressed:i.sectionPressed,onCopyItem:_,wrap:E=>lo(Gx.Provider,{value:!0,children:Qi(Yae.Provider,{value:w,children:[E,lo(e4,{})]})}),addPanelRow:E=>d?Qi("div",{className:"sf-addside-sitewide",children:[lo("span",{className:"sf-addside-sitewide-glyph","aria-hidden":"true",children:lo(Ua,{type:"chat",size:16})}),Qi("button",{type:"button",className:"sf-addside-sitewide-name",onClick:()=>{E(),I()},children:[c("Live chat"),lo("span",{className:"sf-addside-sitewide-desc",children:c("A chat bubble on every page")})]}),lo(Uae,{checked:f.enabled,onChange:D=>x({enabled:D}),ariaLabel:c("Show the chat bubble on the whole site")})]}):void 0}}var B4=null,JS=new WeakMap;function tne(e){let o=nC();if(!e||!o)return e;B4!==o&&(B4=o,JS=new WeakMap);let t=JS.get(e);return t||(t={...e,choices:e.choices?e.choices.map(r=>({...r,label:c(r.label)})):null,spec:e.spec?{...e.spec,addLabel:c(e.spec.addLabel),...e.spec.childLabel?{childLabel:c(e.spec.childLabel)}:{}}:null},JS.set(e,t)),t}var rne={isLockedBlock:(e,o)=>yu(e,o)||!!(o&&rr()?.heldElsewhere(o.props.id)),duplicateBlocked:dm,nestDepth:(e,o,t)=>o===Hd?Wd(e,t):0,newSectionNode:E4,canAddTo:(e,o,t,r)=>tne(a4(e,o,r,t)),blockIsOffered:PR,slotsOf:n4,resolveOnInsert:!0},ane=new Proxy(I4,{get:(e,o)=>{let t=Reflect.get(e,o);return typeof t=="string"?c(t):t}}),nne={labelAtLevel:(e,o,t)=>c(km(e,o,t)),descriptions:ane,categoryLabel:e=>{let o=o4(e);return o===void 0?void 0:c(o)},firstSection:t4,blockRowName:i4,rowName:Su,plainText:nn,Icon:Ua,Thumbnail:V2,useProducts:_4,presets:T4()},sne={desktop:2e3,tablet:800,mobile:390},L4="desktop",lne={options:uH,initial:L4,fluid:L4,fluidMin:Yb,widths:sne,hidesPerView:!0},ine={read:f4,write:e=>c4(e),forSelection:(e,o)=>u4(e,o)},dne={first:Go,last:Le,firstGroup:Ho,lastGroup:Je,isSectionGroup:aP,sectionGroupZone:nP,panelOf:e=>e===Go?N2:null,get sharedReach(){return pa()?cne:void 0},get shared(){return rr()?x4:void 0},get groupTab(){return pa()?P2:void 0},get groupBadge(){return pa()?CS({type:Je})??void 0:void 0},get changeNotice(){return pa()?T2():void 0},get band(){return pa()?fne:void 0},get groupAccepts(){return pa()?iP:void 0}},fne={foldable:!0},cne=e=>CS(e)??m4(e);function pne(e){return{...z4(W4(e),$4(e)),onCopyItem:U4(),openSettings:()=>e.show(OS)}}function une(e,o){k5(e,o),D5()}var T$e={useOwnerName:Ln,useDocumentLabel:P0,useBridges:one,useStandaloneBridges:pne,useDocumentPass:une,blockRules:rne,blockLook:nne,devices:lne,leftView:ine,pinned:dne,Canvas:HM,canvasDrag:{media:h4},Inspector:z2};export{_g as a,Ut as b,jt as c,Qe as d,Zme as e,lI as f,ZIe as g,di as h,fi as i,UA as j,jA as k,Ap as l,JIe as m,dG as n,GA as o,QIe as p,uR as q,MPe as r,mR as s,$Pe as t,Il as u,xa as v,fI as w,axe as x,lp as y,RO as z,DO as A,A1 as B,Y0 as C,vt as D,Jf as E,X0 as F,dh as G,ple as H,ule as I,mle as J,Z0 as K,xle as L,Qf as M,oO as N,yle as O,Sle as P,tO as Q,ble as R,Ble as S,Lle as T,iO as U,Yo as V,Hn as W,ao as X,Aa as Y,Y as Z,Zn as _,J as $,X as aa,ae as ba,ne as ca,fe as da,Mxe as ea,ce as fa,Qn as ga,es as ha,ei as ia,oi as ja,D1 as ka,zxe as la,jU as ma,N1 as na,Gxe as oa,Kxe as pa,M1 as qa,kh as ra,OO as sa,e3 as ta,Pl as ua,EO as va,Wie as wa,pI as xa,Xxe as ya,Zxe as za,Jxe as Aa,Qxe as Ba,ehe as Ca,ohe as Da,lie as Ea,wc as Fa,kl as Ga,iie as Ha,die as Ia,yO as Ja,yh as Ka,LW as La,RW as Ma,fie as Na,DW as Oa,cie as Pa,yE as Qa,ice as Ra,OE as Sa,dce as Ta,fce as Ua,cce as Va,hp as Wa,hI as Xa,z1 as Ya,Ip as Za,phe as _a,rj as $a,aj as ab,nj as bb,uhe as cb,Uo as db,Ra as eb,ns as fb,Qhe as gb,eIe as hb,oIe as ib,DE as jb,$c as kb,c$ as lb,yce as mb,CA as nb,kA as ob,vA as pb,SIe as qb,OA as rb,rge as sb,age as tb,Bp as ub,qA as vb,El as wb,FO as xb,BO as yb,Th as zb,ya as Ab,qO as Bb,kde as Cb,vde as Db,Pde as Eb,Bl as Fb,st as Gb,Bde as Hb,mie as Ib,Tie as Jb,bh as Kb,Oie as Lb,Ia as Mb,Cc as Nb,Ve as Ob,jde as Pb,QO as Qb,oE as Rb,tE as Sb,Lp as Tb,oF as Ub,Sge as Vb,Rp as Wb,tF as Xb,vge as Yb,uF as Zb,NG as _b,Wp as $b,Cye as ac,jc as bc,C$ as cc,Kh as dc,VG as ec,Mye as fc,HF as gc,WF as hc,Hye as ic,Wye as jc,Vx as kc,m6 as lc,Yx as mc,n0 as nc,oSe as oc,eB as pc,oB as qc,tB as rc,TSe as sc,HSe as tc,WSe as uc,$Se as vc,ig as wc,dB as xc,g8 as yc,y8 as zc,Up as Ac,jSe as Bc,GSe as Cc,gbe as Dc,AB as Ec,ybe as Fc,FB as Gc,bbe as Hc,HB as Ic,WB as Jc,Q8 as Kc,UB as Lc,Hbe as Mc,qp as Nc,Ybe as Oc,pi as Pc,Jbe as Qc,qB as Rc,ewe as Sc,VB as Tc,YB as Uc,rwe as Vc,vl as Wc,QW as Xc,cr as Yc,iwe as Zc,Vp as _c,pwe as $c,Xp as ad,Fie as bd,Bie as cd,ga as dd,Lie as ed,lh as fd,Zf as gd,B0 as hd,Ar as id,$l as jd,W$ as kd,Yh as ld,npe as md,zl as nd,z$ as od,spe as pd,fpe as qd,Ul as rd,Npe as sd,Mpe as td,Hpe as ud,Wpe as vd,X$ as wd,$pe as xd,Vc as yd,Gl as zd,Gpe as Ad,Qh as Bd,S_ as Cd,b_ as Dd,Xh as Ed,rz as Fd,Kpe as Gd,Yc as Hd,Kl as Id,Zc as Jd,qpe as Kd,Vpe as Ld,Xc as Md,Ype as Nd,Xpe as Od,v_ as Pd,ql as Qd,Vl as Rd,Qc as Sd,T_ as Td,Yn as Ud,O_ as Vd,ep as Wd,op as Xd,tp as Yd,E_ as Zd,__ as _d,A_ as $d,F_ as ae,B_ as be,W_ as ce,$_ as de,Tue as ee,Oue as fe,Eue as ge,_ue as he,Aue as ie,Pz as je,Tz as ke,Fue as le,Bue as me,Lue as ne,U_ as oe,Rue as pe,Due as qe,Nue as re,Mue as se,_z as te,Az as ue,Dz as ve,Mz as we,Hz as xe,Y_ as ye,Gz as ze,Z_ as Ae,J_ as Be,Lc as Ce,eU as De,pme as Ee,a1 as Fe,yme as Ge,Ame as He,Fme as Ie,Sfe as Je,Ll as Ke,vfe as Le,Pfe as Me,xE as Ne,xi as Oe,Kt as Pe,KR as Qe,du as Re,i0e as Se,d0e as Te,S0e as Ue,b0e as Ve,Fq as We,qg as Xe,oD as Ye,w0e as Ze,rD as _e,aD as $e,dD as af,Hq as bf,zq as cf,G0e as df,aOe as ef,nOe as ff,Si as gf,sOe as hf,lOe as if,Xg as jf,iOe as kf,Ske as lf,Dl as mf,Wh as nf,Hc as of,NOe as pf,Kn as qf,Mce as rf,Hce as sf,XE as tf,C9 as uf,rN as vf,Ci as wf,o_e as xf,r_e as yf,sy as zf,IN as Af,Qp as Bf,vke as Cf,Oke as Df,RL as Ef,Ig as Ff,DL as Gf,NL as Hf,Ake as If,ML as Jf,ou as Kf,Hke as Lf,WL as Mf,UL as Nf,$L as Of,tAe as Pf,rAe as Qf,aAe as Rf,Su as Sf,zN as Tf,hy as Uf,kAe as Vf,vAe as Wf,CX as Xf,kX as Yf,dFe as Zf,fFe as _f,cFe as $f,pFe as ag,Pu as bg,Tu as cg,DFe as dg,uM as eg,hM as fg,IM as gg,gM as hg,ELe as ig,ECe as jg,_u as kg,$u as lg,iH as mg,dH as ng,cH as og,zu as pg,lRe as qg,iRe as rg,Uu as sg,zJ as tg,gRe as ug,Ai as vg,wRe as wg,IH as xg,Rn as yg,c6 as zg,Bne as Ag,Lne as Bg,zHe as Cg,UHe as Dg,jHe as Eg,c1 as Fg,vRe as Gg,ju as Hg,Cne as Ig,x6 as Jg,h6 as Kg,I6 as Lg,i0 as Mg,Qne as Ng,qf as Og,M6 as Pg,H6 as Qg,Ose as Rg,hne as Sg,nW as Tg,IO as Ug,eie as Vg,oie as Wg,FW as Xg,tie as Yg,rie as Zg,bc as _g,aie as $g,jn as ah,nE as bh,sE as ch,IE as dh,rce as eh,RE as fh,xce as gh,NE as hh,qh as ih,P$ as jh,_$ as kh,Xce as lh,ICe as mh,LCe as nh,MCe as oh,IL as ph,UCe as qh,jCe as rh,tke as sh,rke as th,hke as uh,ui as vh,v7 as wh,gve as xh,Pve as yh,jve as zh,Gve as Ah,yPe as Bh,sR as Ch,Sne as Dh,iNe as Eh,PH as Fh,Le as Gh,im as Hh,Bt as Ih,Q2 as Jh,Gi as Kh,e5 as Lh,o5 as Mh,Y5e as Nh,X5e as Oh,N5 as Ph,KS as Qh,M5 as Rh,a4 as Sh,hWe as Th,T$e as Uh};
|