efficient-storefront-blocks 0.123.2 → 0.123.3
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 +12 -0
- package/dist/chunks/{EditorPreviewCheckout-GKVO7FIF.js → EditorPreviewCheckout-NQFCOASP.js} +1 -1
- package/dist/chunks/SiteEditorProvider-D2OPKHNG.js +1 -0
- package/dist/chunks/chunk-2CQGGANM.js +342 -0
- package/dist/chunks/chunk-BVHE65VQ.js +96 -0
- package/dist/chunks/{chunk-JRGIFGZA.js → chunk-EMEK5XSJ.js} +1 -1
- package/dist/chunks/{chunk-A4GCH4L7.js → chunk-GUMG6SIC.js} +1 -1
- package/dist/chunks/{chunk-HG7XPHVS.js → chunk-K5OPN6GZ.js} +20 -20
- package/dist/chunks/{fitment-data-6YOZL3W4.js → fitment-data-32VKLJVO.js} +1 -1
- package/dist/chunks/{section-css-style-TIXCQNGX.js → section-css-style-J4DULHLY.js} +1 -1
- package/dist/index.js +27 -27
- package/dist/render/built-with.json +1 -1
- package/dist/routine-index.json +1 -0
- package/dist/value-index.json +1 -0
- package/dist/words.d.ts +11 -0
- package/dist/words.js +4 -4
- package/package.json +4 -2
- package/dist/chunks/SiteEditorProvider-INLF7RK2.js +0 -1
- package/dist/chunks/chunk-ABH43N7O.js +0 -96
- package/dist/chunks/chunk-MFXGST7A.js +0 -342
- /package/dist/chunks/{chunk-MFXGST7A.js.LEGAL.txt → chunk-2CQGGANM.js.LEGAL.txt} +0 -0
- /package/dist/chunks/{chunk-HG7XPHVS.js.LEGAL.txt → chunk-K5OPN6GZ.js.LEGAL.txt} +0 -0
- /package/dist/chunks/{chunk-3UESM7IL.js → chunk-QL4PL74K.js} +0 -0
- /package/dist/chunks/{chunk-PGKDGGEE.js → chunk-ZROLUHOX.js} +0 -0
|
@@ -1,342 +0,0 @@
|
|
|
1
|
-
import{a as iO,b as Pi,c as lO,d as HO}from"./chunk-3UESM7IL.js";import{$ as Tp,$a as CE,$c as Mp,$d as Ay,$h as Ai,A as ci,Ab as NE,Ac as wy,Ad as kc,Ae as Fy,Af as F_,Ag as Wn,Ai as DO,Ba as Y,Bb as xi,Bc as KE,Be as m_,Bf as Zp,Bi as Wt,C as Ic,Ca as _p,Cb as ia,Cd as Et,Ce as h_,Cf as B_,Cg as sO,Ci as mu,D as Cp,Db as Lp,Dc as VE,Dd as it,De as Vp,Df as N_,Dg as cO,Di as et,E as Br,Ed as io,Ee as x_,Ef as D_,Ei as me,F as di,Fa as Mt,Fc as Cy,Fd as Dr,Fe as By,Ff as Jp,Fh as Lc,G as so,Ga as fr,Gd as Mr,Gf as M_,Gi as MO,H as ho,Ha as mi,Hd as ur,He as g_,Hf as Qp,I as fi,Ia as sy,Ib as DE,Id as yi,Ie as Yp,If as Wy,J as vp,Ja as uE,Jd as t_,Je as I_,Jf as H_,K as $,Ka as iy,Kd as Hp,Ke as Ny,Kf as $y,Ki as WO,L as He,La as ly,Lb as Fp,Ld as r_,Le as y_,Lf as W_,M as V0,Mc as YE,Me as b_,Mf as eu,Mi as $O,N as Y0,Nb as Bp,Nc as qE,Ne as qp,Nf as lt,Oc as vy,Oe as Si,Of as Ha,P as q0,Pa as cy,Pd as Nn,Pe as Me,Pf as $_,Pg as dO,Q as kp,Qa as mE,Qb as ME,Qd as a_,Qe as _e,Qf as ou,Qg as jy,Qi as fe,R as X0,Ra as hE,Rb as HE,Rd as Wp,Re as S_,Rf as Ht,Rg as ru,Rh as IO,S as An,Sa as uo,Sd as bi,Se as wi,Sf as Ti,Sg as fO,Sh as yO,T as Z0,Ta as xE,Tb as WE,Tc as j,Td as Tc,Te as w_,Tg as Ky,Th as lu,U as J0,Ua as Op,Uc as se,Ud as Pc,Ue as Xp,Uf as U_,Ug as pO,Uh as bO,Ui as Fc,V as yc,Va as gE,Vb as xy,Vc as ky,Vd as Oy,Ve as Mn,Vf as z_,Vg as uO,Vh as SO,Vi as GO,W as ay,Wa as IE,Wc as N,We as C_,Wf as Uy,Wg as au,Wh as wO,X as De,Xa as yE,Xc as Qo,Xd as n_,Xg as mO,Xh as CO,Xi as Su,Y as V,Ya as bE,Yc as la,Yd as s_,Yg as da,Yi as jO,Z as Q0,Za as SE,Zc as XE,Zd as i_,Ze as Ma,Zf as G_,Zh as vO,Zi as KO,_a as wE,_c as U,_e as Dy,_f as zy,_g as hO,_h as kO,a as li,aa as Na,ab as vE,ad as ht,ae as l_,ai as TO,b as be,ba as pi,bb as Ap,bd as ZE,bi as cu,c as _o,ca as eE,cb as Rp,cc as gy,cd as pr,ce as Ry,ci as PO,d as aa,da as na,db as kE,dd as Nr,dg as j_,ea as ny,eb as TE,ec as $E,ed as Ty,ef as v_,eg as K_,f as Pt,fa as ui,fd as Da,ff as k_,fg as V_,fi as EO,g as gc,ga as oE,gb as PE,gd as ca,ge as $p,gf as My,gg as Y_,gh as Vy,gi as Wa,h as W0,ha as tE,hb as EE,hd as JE,he as Up,hf as vo,hh as fa,hi as _O,i as Sp,ib as dy,ie as c_,if as T_,ig as Hn,ih as Ei,ii as OO,j as $0,ja as bc,jb as _E,jd as Ze,je as zp,jf as P_,jg as q_,jh as It,ji as AO,k as U0,ka as rE,kb as OE,kd as Bn,ke as Gp,kf as Ci,kg as X_,kh as Te,la as aE,lb as fy,lc as Fn,ld as Cc,le as d_,lf as gt,lh as nu,li as du,ma as nE,mb as hi,md as gi,me as f_,mg as tu,mh as xO,mi as $a,n as z0,na as Rn,nb as Ln,nc as Iy,nd as QE,ne as jp,nf as E_,ng as Z_,nh as Oc,ni as fu,oa as sE,ob as py,oc as yy,od as Py,oe as Kp,of as vi,og as J_,oh as _t,pb as uy,pd as Ii,pe as Dn,pf as ki,pg as Q_,ph as Ac,qa as iE,qb as my,qc as Np,qd as Ey,qe as p_,qg as eO,qh as su,r as G0,ra as Pp,rb as AE,rc as by,rg as oO,rh as _i,ri as RO,sa as lE,sb as RE,sc as UE,sf as __,sg as tO,sh as Rc,si as pu,t as eo,ta as Ep,tb as LE,tf as O_,th as gO,ti as Ua,u as j0,ua as cE,ub as hy,ud as e_,ue as u_,uf as A_,ug as Hr,uh as Oi,ui as LO,v as wp,va as dE,vb as FE,vc as Sy,vd as o_,vf as _c,vg as rO,vh as iu,vi as uu,w as K0,wa as fE,wb as Jo,wc as Dp,wf as R_,wg as aO,wi as FO,xa as Sc,xb as BE,xc as zE,xd as _y,xe as xt,xf as L_,xg as Gy,xi as za,y as Ue,ya as sa,yc as GE,ye as Ec,yf as Hy,yg as nO,yi as BO,z as Oo,za as pE,zb as wc,zc as jE,zd as vc,ze as Ly,zg as Wr,zi as NO}from"./chunk-ABH43N7O.js";import{a as xo,d as UO,e as hu,f as xu,g as zO,j as gu,k as $t,l as Iu,m as yu,n as bu,r as Yy}from"./chunk-PGKDGGEE.js";var YO="en",wu=null,qO=YO,XO=null;function f0e(e,o,t){wu=e??null,qO=o||YO,XO=t??null}function de(){return XO}function qy(){return qO}function ZO(){return wu}function VO(e,o){return o?e.replace(/\{([A-Za-z][A-Za-z0-9_]*)\}/g,(t,r)=>He(o,r)?String($(o,r)):t):e}function c(e,o){let t=wu?$(wu,e):void 0;if(typeof t=="function"){try{let r=be(t(o??{}));if(r)return r}catch{}return VO(e,o)}return VO(be(t)??e,o)}function ct(e,o,t,r){return c(t===1?e:o,{...r,n:t})}import{jsx as Xy,Fragment as w7,jsxs as C7}from"react/jsx-runtime";import{createContext as v7,useContext as k7}from"react";var T7={mirrorHostStyles:!0,css:null,fontHrefs:[]},JO=v7(T7);function h0e({value:e,children:o}){return Xy(JO.Provider,{value:e,children:o})}function Bc(){return k7(JO)}function QO(){let{css:e,fontHrefs:o}=Bc();return C7(w7,{children:[o.map(t=>Xy("link",{rel:"stylesheet",href:t},t)),e?Xy("style",{"data-sf-canvas-css":"",children:e}):null]})}import{jsx as P7}from"react/jsx-runtime";import{createContext as E7,useContext as _7}from"react";var e1=E7(void 0);function y0e({metadata:e,children:o}){return P7(e1.Provider,{value:e,children:o})}var o1=()=>_7(e1);import{jsx as No,Fragment as r7,jsxs as Ip}from"react/jsx-runtime";import{useCallback as uc,useEffect as ta,useRef as DPe,useState as QV}from"react";import{SettingsSwitch as MPe}from"efficient-easel/panel";import{PagesIcon as HPe,StylesIcon as WPe}from"efficient-easel/rail";import{PaletteIcon as $Pe}from"efficient-shell/icons/efficient";import{Subtree as UPe,TreeRow as a7}from"efficient-easel/tree";import{useEasel as n7}from"efficient-easel/easel";import{toItemSelector as zPe}from"efficient-easel/node-ops";import{useEaselStrings as s7}from"efficient-easel/strings";import{createContext as O7,useContext as A7}from"react";var Zy=O7(!1),w0e=()=>A7(Zy);import{useMemo as R7,useRef as L7}from"react";import{useEaselApi as F7}from"efficient-easel/easel";import{useSectionOps as B7}from"efficient-easel/screen/lib/document/use-section-ops";function Cu(){let e=F7(),o=B7(),t=L7(o);return t.current=o,R7(()=>({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 Ste}from"efficient-easel/draw";import{insertAt as wte,moveTo as Cte,removeAt as vte}from"efficient-easel/fields";import{useSyncExternalStore as mte}from"react";import{isNodeList as t1}from"efficient-easel/data";var r1="Flex";function Ri(e,o){return xt(e)?typeof e?.[Pt]=="string"?Jy(o?.[Pt]):"":Jy(e?.[Pt])}var Jy=e=>typeof e=="string"?e.trim():"",N7=e=>e.type===Oo&&Array.isArray(e.props?.[Ry])&&e.props[Ry].some(o=>Jy(o?.[Pt])!==""),D7=new Intl.NumberFormat("en-US");function M7(e){return/^\d+$/.test(e)?D7.format(Number(e)):e}function R0e(e,o){let t=o?o.find(r=>r.key===e)?.value:G0(gc).find(r=>r.key===e)?.value;return t===void 0?null:M7(t)}var H7={[Pt]:"any"};function Qy(e,o=!1){let t=e.props;if(!t)return{node:e,names:!1};let r=e.type==="Text"&&(Ri(t)!==""||o&&Ri(t,H7)!==""),a=o||N7(e),n=ho(e,i=>so(i,l=>{let d=Qy(l,a);return d.names&&(r=!0),d.node})).props;if(e.type!==r1)return{node:n===t?e:{...e,props:n},names:r};let s=eo(n);if(r&&!s&&(n={...n,[_o]:gc}),!r&&s===gc){let{[_o]:i,...l}=n;n=l}return{node:n===t?e:{...e,props:n},names:!1}}function a1(e,o,t){for(let r of e){if(r?.props?.id===o)return t;for(let a of di(r??{})){let n=a1(a,o,r.type===r1?r:t);if(n!==void 0)return n}}}function L0e(e,o){if(!t1(e))return!0;let t=a1(e,o,null);if(t===void 0)return!0;if(t===null)return!1;let r=eo(t.props);return!r||r===gc}function n1(e){let o=e?.content;if(!t1(o))return e;let t=o.map(r=>Qy(r));return t.every((r,a)=>r.node===o[a])?e:{...e,content:t.map(r=>r.node)}}function s1(e){return Qy(e).node}import{jsx as R,jsxs as ba,Fragment as wa}from"react/jsx-runtime";var $n=["image","video"],Un={image:"imageFocal",image2:"imageFocal2"},Nc={HeroSingle:"image",HeroSlide:"video"};function l1(e,o){return $n.includes(o)?o:Nc[e]}var c1=["one","side","stacked"],W7="one",B0e={one:"One",side:"Side by side",stacked:"Stacked"};function vu(e){return c1.includes(e)?e:W7}function i1(e){return e==="one"?1:2}function eb(e,o){if(c1.includes(e))return e;let t=vu(o);return t==="side"?"stacked":t}function Dc(e){let o=vu(e.mediaLayout);return Math.max(i1(o),i1(eb(e.mediaLayoutPhone,o)))}import{cloneElement as Iw,createContext as kQ,useContext as tB,useEffect as TQ,useId as rB,useRef as md,useState as hd}from"react";import{useEasel as eh,useSelectedHost as cs}from"efficient-easel/easel";import{PIN_LENGTH as Ym,toDateKey as DBe,fromDateKey as MBe}from"efficient-shell/format";function tb(e){return!!e&&typeof e=="object"&&!Array.isArray(e)&&typeof e.src=="string"}function dt(e){return typeof e=="string"?e:tb(e)?e.src:""}function d1(e,o,t){return ob(e,o.split("."),t)}function ob(e,o,t){if(o.length===0)return t(e);let[r,...a]=o,n=r.endsWith("[]"),s=n?r.slice(0,-2):r;if(!e||typeof e!="object"||Array.isArray(e))return e;let i=e;if(!(s in i))return e;let l=i[s];if(n){if(!Array.isArray(l))return e;let f=!1,u=l.map(p=>{let m=ob(p,a,t);return m!==p&&(f=!0),m});return f?{...i,[s]:u}:e}let d=ob(l,a,t);return d===l?e:{...i,[s]:d}}var $7=["upload","youtube"],U7="upload",H0e={upload:"Upload",youtube:"YouTube"},z7=["background","click"],G7="background",W0e={background:"Background",click:"Click to play"};function p1(e){return $7.includes(e)?e:U7}function u1(e){return z7.includes(e)?e:G7}var f1=/^[A-Za-z0-9_-]{11}$/,j7=/^(?:www\.|m\.|music\.)?(?:youtube\.com|youtube-nocookie\.com|youtu\.be)$/;function m1(e){let o=typeof e=="string"?e.trim():"";if(!o)return null;if(f1.test(o))return o;let t;try{t=new URL(/^[a-z]+:\/\//i.test(o)?o:`https://${o}`)}catch{return null}if(t.protocol!=="https:"&&t.protocol!=="http:"||!j7.test(t.hostname))return null;let r=t.pathname.split("/").filter(Boolean),a=t.hostname.endsWith("youtu.be")?r[0]:r[0]==="watch"?t.searchParams.get("v"):r[0]==="embed"||r[0]==="shorts"||r[0]==="live"||r[0]==="v"?r[1]:null;return a&&f1.test(a)?a:null}function rb(e,o){let t=o==="click"?"autoplay=1&playsinline=1&rel=0":`autoplay=1&mute=1&loop=1&playlist=${e}&controls=0&playsinline=1&rel=0&disablekb=1`;return`https://www.youtube-nocookie.com/embed/${e}?${t}`}function h1(e){return`https://i.ytimg.com/vi/${e}/maxresdefault.jpg`}function x1(e){return`https://i.ytimg.com/vi/${e}/hqdefault.jpg`}var ab="Play video";var nb={frame:"Video frame",image:"Image"},$0e={any:[{field:"loadingShows",is:"image"},{all:[{not:{field:"loadingShows",set:!0}},{field:"poster",set:!0}]}]};function Mc(e){let o=e.loadingShows;return o==="image"?"image":o!=null&&o!==""?"frame":dt(e.poster)?"image":"frame"}function U0e(e,o="desktop"){let[t,r]=o==="phone"?[e.posterPhone,e.videoFramePhone]:[e.poster,e.videoFrame],[a,n]=Mc(e)==="image"?[t,r]:[r,t];return dt(a)||dt(n)||void 0}function g1(e){if(dt(e.mediaVideo)){if(Mc(e)==="frame")return dt(e.videoFrame)?void 0:dt(e.poster)?"frame-missing-image":"frame-missing-surface";if(!dt(e.poster))return dt(e.videoFrame)?"image-missing-frame":"image-missing-surface"}}var ku="videoFrames",sb="videoFramesNotOwn";function I1(e,o,t){let r=dt(e.mediaVideo);if(!r||!o||Mc(e)!=="frame"||dt(e.videoFrame))return;let a=o[r],n=!!dt(e.poster);if(a?.state==="ready")return null;if(n)return!a||a.state==="pending"?void 0:"image-no-frame";if(!a)return t?"save-makes-frame":void 0;switch(a.state){case"pending":return a.noted!=="save"&&t?"save-makes-frame":null;case"dark":return"starts-dark";case"outside":return"outside";case"unsupported":return"unsupported";case"failed":return"failed";default:return null}}function K7(e,o){let t=dt(e),r=t&&o?o[t]:void 0;return r?.state==="ready"&&r.frame?r.frame:void 0}function z0e(e,o,t){let r=t?.[sb];if(!(Array.isArray(r)&&r.includes(e)))return K7(o,t?.[ku])}import{useSyncExternalStore as V7}from"react";function Tu(){let e=new Map,o=new Set,t=r=>(o.add(r),()=>{o.delete(r)});return{get:r=>e.get(r),has:r=>e.has(r),set(r,a){if(!(e.has(r)&&e.get(r)===a)){e.set(r,a);for(let n of o)n()}},use(r){let a=()=>r?e.get(r):void 0;return V7(t,a,a)}}}var Je="SiteHeader",ze="SiteFooter",ib="sections",Pu=[Je,ze],Li=e=>e===Je||e===ze,y1=e=>`${e}:${ib}`;function b1(e,o,t=[]){return{type:e,props:{id:o,[ib]:t}}}var Y7=new Set(["Footer",Je,ze]);function Fi(e){let o=new Set,t=!1,r=e.filter(a=>{let n=a?.type??"";return n==="Header"?(t=!0,!1):Y7.has(n)?o.has(n)?(t=!0,!1):(o.add(n),!0):!0});return t?r:e}function Eu(e,o){return e.some(t=>t?.type===o.type)?e:o.type===Je?[o,...e]:[...e,o]}var S1={[Je]:{max:3,takes:["Flex","Ticker"]},[ze]:{max:6,takes:["Flex","Prose","Logos","Divider"]}};function w1(e,o,t){if(!Li(e))return!0;let r=S1[e];return t<r.max&&r.takes.includes(o)}function C1(e,o){let t=o,r=t?.props?.id;if(r==null)return null;let a=e?.content;if(!Array.isArray(a))return null;for(let n of a){if(!Li(n?.type))continue;let s=n.props?.[ib];if(!Array.isArray(s)||!s.some(l=>l?.props?.id===r))continue;let i=S1[n.type];return i.takes.includes(t?.type??"")?s.length>=i.max?{group:n.type,why:"full"}:null:{group:n.type,why:"type"}}return null}import{locateNode as q7}from"efficient-easel/draw";function Hc(e){if(!e)return null;let o=e.lastIndexOf(":");return o>0?{ownerId:e.slice(0,o),slot:e.slice(o+1)}:null}function _u(e,o,t){let r=Hc(t?.zone),a=r?q7(e,o,r.ownerId):null;return a&&r?{...a,slot:r.slot}:null}import{isNode as X7}from"efficient-easel/data";var v1="Footer",k1=[Je,v1,ze],zn=e=>{let o=e?.content;return Array.isArray(o)?o:[]},Ga=e=>{let o=e?.zones;return o&&typeof o=="object"&&!Array.isArray(o)?o:null},Bi=e=>{let o=e?.props?.id;return typeof o=="string"?o:void 0},T1=e=>Hc(e)?.ownerId??"";function P1(e){let o=Fi(zn(e)),t=o.some(r=>r?.type===ze);return o.filter(r=>r?.type===Je||r?.type===ze||r?.type===v1&&!t)}function Ou(e,o){let t=new Set,r=a=>{if(Array.isArray(a)){for(let n of a)r(n);return}if(!(!a||typeof a!="object")){if(X7(a)){let n=Bi(a);n&&t.add(n)}for(let n of Object.values(a))r(n)}};if(r(e),o){let a=!0,n=new Set;for(;a;){a=!1;for(let[s,i]of Object.entries(o))n.has(s)||!t.has(T1(s))||(n.add(s),r(i),a=!0)}}return t}function E1(e,o){let t=zn(e).filter(r=>{let a=Bi(r);return typeof r?.type=="string"&&k1.includes(r.type)||a!==void 0&&o(a)});return t.length?Ou(t,Ga(e)):new Set}function lb(e,o){let t={},r={};for(let[a,n]of Object.entries(e??{}))(o.has(T1(a))?t:r)[a]=n;return{owned:t,rest:r}}function _1(e,o){if(!o)return e;let t=P1(o);if(!t.length)return e;let r=t.filter(i=>i.type===Je),a=t.filter(i=>i.type!==Je),n={...e,content:[...r,...zn(e),...a]},{owned:s}=lb(Ga(o),Ou(t,Ga(o)));return Object.keys(s).length&&(n.zones={...Ga(e)??{},...s}),n}function cb(e,o){if(!o)return{page:e,chrome:null};let t=P1(o),r=new Set(t.map(Bi).filter(C=>!!C)),a=[],n=[];for(let C of zn(e)){let b=Bi(C);b&&r.has(b)||Li(C?.type)?n.push(C):a.push(C)}let s=new Map(n.map(C=>[Bi(C),C])),i=new Set,l=Fi(zn(o)).flatMap(C=>{let b=Bi(C);if(!b||!r.has(b))return[C];let y=s.get(b);return y?(i.add(y),[y]):[]});for(let C of n)i.has(C)||l.some(b=>b?.type===C.type)||(l=C.type===Je?[C,...l]:[...l,C]);l=Fi(l);let d=l.length===zn(o).length&&l.every((C,b)=>C===zn(o)[b]),f=Ga(e),u=Ou(l,f),{owned:p,rest:m}=lb(f,u),h=lb(Ga(o),Ou(t,Ga(o))).owned,I={...o,content:d?o.content:[...l]},w=Ga(o);if(w||Object.keys(p).length){let C={};for(let[b,y]of Object.entries(w??{}))b in h?b in p&&(C[b]=p[b]):C[b]=y;for(let[b,y]of Object.entries(p))b in C||(C[b]=y);I.zones=C,w&&Z7(I.zones,w)&&(I.zones=w)}let S={...e,content:a};return f&&(Object.keys(m).length||!Object.keys(h).length?S.zones=m:delete S.zones),{page:S,chrome:I}}function Z7(e,o){let t=Object.keys(e),r=Object.keys(o);return t.length===r.length&&t.every((a,n)=>a===r[n]&&e[a]===o[a])}function O1(e,o){return t=>e(t)||t!==void 0&&k1.includes(t)&&o()}var A1=null;function db(e){A1=e}function mr(){return A1}var R1=null;function fb(e){R1=e}function Au(){return R1}var pb=Tu();function L1(e,o,t){if(!o)return;let r={...pb.get(e)};for(let[a,n]of Object.entries(o))r[a]={...n,noted:t};pb.set(e,r)}function F1(e,o){L1(e,o,"load")}function B1(e,o){L1(e,o,"save")}function Ru(e){return pb.use(e)}var ub=e=>!!mr()?.sectionOf(e);function N1(e,o=ub){return E1(e,o)}function D1(e,o,t,r=ub){if(t)return e&&N1(o,r).has(e)?void 0:t}function M1(e,o,t=ub){if(!e)return{};let r=[...N1(o,t)];return r.length?{[ku]:e,[sb]:r}:{[ku]:e}}import{ScreenDocumentContext as PQ}from"efficient-easel/screen/components/ScreenDocumentContext";import{readHidable as an,hidableText as EQ}from"efficient-easel/draw";import{FOLD_FIELD_MARKER as aB,LINK_FIELD_MARKER as _Q,MEDIA_FIELD_MARKER as OQ,SCAFFOLD_FIELD_MARKER as AQ,TEXT_FIELD_MARKER as Sa,foldMetaOf as wr,textFieldIdentifier as KBe}from"efficient-easel/draw";import{jsx as V1}from"react/jsx-runtime";import{useCallback as tY}from"react";import{useEasel as rY}from"efficient-easel/easel";import{SettingsAction as aY}from"efficient-easel/panel";import{isLengthUnit as eY}from"efficient-easel/screen/lib/content/length-units";import{CORNER_SIDES as Lu,hasCornerSubset as Wc,normalizeCornerSides as $r}from"efficient-easel/screen/lib/content/style-keys";import{isLengthUnit as J7}from"efficient-easel/screen/lib/content/length-units";var $c={kind:"radius",unitKey:"sectionCornersUnit"};function mb(e){return typeof e=="number"&&Number.isFinite(e)}function H1(e,o,t){if(!mb(e))return;let r=J7(t)&&t!=="px"?Ti(e,t):Ti(Ht(e));if(Object.keys(r).length===0)return;let a=r[hb];if(typeof a!="string")return r;let n=Wc(o)?Gn(a,$r(o)??[]):a;return{...r,[Q7]:n}}var Q7="--sf-section-radius",hb="--sf-card-radius";function Gn(e,o){return Lu.map(t=>o.includes(t)?e:"0").join(" ")}var W1=[{value:"tl",label:"Top left"},{value:"tr",label:"Top right"},{value:"bl",label:"Bottom left"},{value:"br",label:"Bottom right"}];var Uc={kind:"radius",unitKey:"cardCornersUnit"},oY="--sf-card-box-radius";function xb(e){return typeof e=="number"&&Number.isFinite(e)}function $1(e,o,t){if(!xb(e))return;let r=(eY(t)&&t!=="px"?Ti(e,t):Ti(Ht(e)))[hb];if(typeof r!="string")return;let a=Wc(o)?Gn(r,$r(o)??[]):r;return{[oY]:a}}function U1(e,o){let t=e.find(s=>s?.props?.id===o);if(!t)return[...e];let r=t.props?.cardCorners,a=t.props?.cardCornerSides,n=t.props?.[Uc.unitKey];return e.map(s=>s?.props?.id===o?s:{...s,props:{...s.props,cardCorners:r,cardCornerSides:a,[Uc.unitKey]:n}})}function z1(e,o,t){let r=_u(e,o,t),a=r?.slot??"",n=r&&Array.isArray(r.item.props[a])?r.item.props[a]:[],s=t?.index??-1,i=s>=0?n[s]:void 0,l=i?.props?.id?String(i.props.id):"",d=Math.max(n.length-1,0);return!r||!l?{can:!1,reason:"unreachable",others:0}:n.length<=1?{can:!1,reason:"alone",others:d}:xb(i?.props?.cardCorners)?{can:!0,others:d,zone:r.zone,index:r.index,data:{...r.item,props:{...r.item.props,[a]:U1(n,l)}}}:{can:!1,reason:"unset",others:d}}function G1(e){return e.can?ct("Gives the other card this card's Corners.","Gives the other {n} cards this card's Corners.",e.others):e.reason==="alone"?c("This is the only card in the section."):e.reason==="unset"?c("Set this card's corners first."):c("This card is not in a section that can share corners.")}function j1(e){return ct("Applied to {n} card","Applied to {n} cards",e)}function K1(e,o){e.can&&o(e.zone,e.index,e.data)}import{useSectionOps as nY}from"efficient-easel/screen/lib/document/use-section-ops";var sY="apply-corners-to-siblings",iY="Apply to all cards";function lY({plan:e,onPress:o}){return V1(aY,{id:sY,label:c(iY),note:G1(e),disabled:!e.can,doneLabel:j1(e.others),onPress:o})}function Y1(){let{appState:e,config:o}=rY(n=>n),t=nY(),r=z1(o,e.data.content??[],e.ui.itemSelector),a=tY(()=>{K1(r,t.replaceComponent)},[r,t]);return V1(lY,{plan:r,onPress:a})}import{isShown as rA,lazyShowWhenContext as bY}from"efficient-shell/format";var Ut="product",Fu="recordType",q1={key:Ut,label:"Product",fields:[]},cY=/^[a-z][a-z0-9]*(-[a-z0-9]+)*$/,dY=/^[a-z][A-Za-z0-9]*$/,fY=["text","date","images"],gb=new Map,X1=0;function pY(e){if(typeof e.key!="string"||!cY.test(e.key))throw new Error(`A record type key is lower-case words joined by hyphens, not ${JSON.stringify(e.key)}.`);if(e.key===Ut)throw new Error("The product record type is the builder's own and is not declared by a host.");if(typeof e.label!="string"||!e.label.trim())throw new Error(`The record type ${e.key} has no label.`);let o=new Set;for(let t of e.fields){if(typeof t.key!="string"||!dY.test(t.key)||o.has(t.key))throw new Error(`The record type ${e.key} has a field key it cannot use: ${JSON.stringify(t.key)}.`);if(!fY.includes(t.kind))throw new Error(`The field ${t.key} of ${e.key} has no kind ${JSON.stringify(t.kind)}.`);o.add(t.key)}return{key:e.key,label:e.label.trim(),fields:e.fields.map(t=>({...t}))}}function TEe(e){let o=e.map(pY);for(let t of o)gb.set(t.key,t);o.length&&(X1+=1)}function Ib(){return[q1,...gb.values()]}function yb(e){return e===Ut?q1:gb.get(e)??null}function bb(){return X1}function zc(e){let o=e?.[Fu];return typeof o!="string"?Ut:o.trim()||Ut}function Sb(e){return zc(e)===Ut}function wb(e,o){let t=yb(e)?.fields??[];return o?t.filter(r=>o.includes(r.kind)):t}var Bu="product",Z1="tyre",uY=[Bu,Z1];function _Ee(e){return uY.includes(e)}var mY="productType",hY={[Bu]:"alloy-wheel",[Z1]:"tyre"},xY=["alloy-wheel","tyre"];function J1(e,o){return Sb(o)?Q1(o)??hY[e]??null:null}function Q1(e){if(!Sb(e))return null;let o=e?.[mY];return typeof o=="string"&&xY.includes(o)?o:null}function OEe(e){let o=e?.root;return Q1(o?.props)}var Cb="Main Pages",gY="Dynamic Pages",vb="dynamic",IY="dynamic";function jn(e){return e.kind===IY}var kb="lightbox";function eA(e){return e.kind===kb}function oA(e){let o=[],t=[];for(let r of e){if(jn(r)){t.push(r);continue}let a=r.groupKey??(r.group?`folder:${r.group}`:"top"),n=o[o.length-1];n&&n.key===a?n.rows.push(r):o.push({key:a,label:r.group??Cb,rows:[r]})}if(t.length){let r=o.findIndex(a=>a.key.startsWith("system:"));o.splice(r===-1?o.length:r,0,{key:vb,label:gY,rows:t})}return o}var Nu=null,tA=null;function yY(e,o){Nu=e,tA=o}function NEe(e){yY(e,null)}function DEe(){return Nu}function Gc(){return jn({kind:tA})||Nu===Bu}function MEe(e){return J1(Nu??"",e)??"alloy-wheel"}function HEe(e){return Gc()?zc(e):null}function Tb(e,o,t){let r=!1,a={};for(let[n,s]of Object.entries(e)){if(!rA(vc(s),o??{},t)){r=!0;continue}let i=SY(s,o?.[n],o??{},t);i!==s&&(r=!0),a[n]=i}return r?a:e}function SY(e,o,t,r){let a=e?.options;if(!Array.isArray(a))return e;let n=a.filter(s=>s?.value===o||!s?.showWhen||rA(s.showWhen,t,r));return n.length===a.length?e:{...e,options:n}}function aA(e,o,t,r){let a=_u(o,t,r);return{device:e,parentType:a?.item.type,parent:a?.item.props}}function Du(e,o){if(!e||typeof e!="object")return!1;let t=e;if(typeof t.context=="string"&&(t.context===o||t.context.startsWith(`${o}.`)))return!0;if("not"in t)return Du(t.not,o);for(let r of[t.all,t.any])if(Array.isArray(r)&&r.some(a=>Du(a,o)))return!0;return!1}function nA(e,o={}){return bY({parentType:()=>e.parent?.type??void 0,parent:()=>e.parent?.props??void 0,dynamicPage:()=>Gc(),root:()=>e.appState?.data?.root?.props,...o})}import{isLengthUnit as wY}from"efficient-easel/screen/lib/content/length-units";var sA=1,CY="cardImageUnit",Pb={kind:"radius",unitKey:CY},iA={kind:"radius"};function vY(e){return Ht(e)}function lA(e,o){if(wY(o)&&o!=="px"){let r=Y(e);return r!==void 0&&r>=0?{"--sf-card-image-radius":Me(r,o)}:{}}let t=vY(e);return t===null?{}:{"--sf-card-image-radius":`${t}px`}}import{isLengthUnit as kY}from"efficient-easel/screen/lib/content/length-units";var cA={kind:"radius",unitKey:"cornersUnit"},dA=1,fA="Corners";function TY(e){return Ht(e)}function a_e(e,o,t){let r=kY(t)&&t!=="px"?Y(e):void 0,a=r===void 0?TY(e):null;if(r===void 0&&a===null)return null;let n=r!==void 0?Me(Math.max(0,r),t):`${a}px`;return{borderRadius:Wc(o)?Gn(n,$r(o)??[]):n}}import{phoneKey as yA}from"efficient-easel/screen/lib/content/view-tiers";var uA=12,Ni=6,PY=Jo,Mu={twoAcross:{label:"Two across",across:2,acrossPhone:2,desktop:[[6,1],[6,1]],phone:[[3,1],[3,1]]},zigzag:{label:"Zigzag",across:2,acrossPhone:2,desktop:[[8,1],[4,1],[4,1],[8,1]],phone:[[4,1],[2,1],[2,1],[4,1]]},brick:{label:"Brick",across:2,acrossPhone:2,desktop:[[5,1],[7,1],[7,1],[5,1]],phone:[[2,1],[4,1],[4,1],[2,1]]},twoTall:{label:"Two tall",across:2,acrossPhone:2,desktop:[[6,2],[6,2]],phone:[[3,2],[3,2]]},offsetTall:{label:"Offset tall",across:2,acrossPhone:2,desktop:[[5,2],[7,1],[3,1],[4,1]],phone:[[3,2],[3,1],[3,1]]},ladder:{label:"Ladder",across:2,acrossPhone:2,desktop:[[3,2],[9,1],[5,1],[4,1]],phone:[[2,2],[4,1],[2,1],[2,1]]},threeAcross:{label:"Three across",across:3,acrossPhone:3,desktop:[[4,1],[4,1],[4,1]],phone:[[2,1],[2,1],[2,1]]},bigLeft:{label:"Big left",across:3,acrossPhone:3,desktop:[[6,1],[3,1],[3,1]],phone:[[4,1],[1,1],[1,1]]},bigRight:{label:"Big right",across:3,acrossPhone:3,desktop:[[3,1],[3,1],[6,1]],phone:[[1,1],[1,1],[4,1]]},threeStagger:{label:"Three stagger",across:3,acrossPhone:3,desktop:[[5,1],[4,1],[3,1],[3,1],[4,1],[5,1]],phone:[[3,1],[2,1],[1,1],[1,1],[2,1],[3,1]]},threeLadder:{label:"Three ladder",across:3,acrossPhone:3,desktop:[[3,1],[4,1],[5,1],[5,1],[4,1],[3,1]],phone:[[1,1],[2,1],[3,1],[3,1],[2,1],[1,1]]},tallMiddle:{label:"Tall middle",across:3,acrossPhone:3,desktop:[[4,1],[4,2],[4,1],[4,1],[4,1]],phone:[[2,1],[2,2],[2,1],[2,1],[2,1]]},fourAcross:{label:"Four across",across:4,acrossPhone:2,desktop:[[3,1],[3,1],[3,1],[3,1]],phone:[[3,1],[3,1]]},bigFirst:{label:"Big first",across:4,acrossPhone:2,desktop:[[6,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1]],phone:[[6,1],[3,1],[3,1]]},fourStagger:{label:"Four stagger",across:4,acrossPhone:2,desktop:[[4,1],[3,1],[2,1],[3,1],[2,1],[3,1],[4,1],[3,1]],phone:[[4,1],[2,1],[2,1],[4,1]]},tallFirst:{label:"Tall first",across:4,acrossPhone:2,desktop:[[3,2],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1]],phone:[[3,2],[3,1],[3,1]]},oneThenFour:{label:"One then four",across:4,acrossPhone:2,desktop:[[12,1],[3,1],[3,1],[3,1],[3,1]],phone:[[6,1],[3,1],[3,1]]},sixAcross:{label:"Six across",across:6,acrossPhone:3,desktop:[[2,1],[2,1],[2,1],[2,1],[2,1],[2,1]],phone:[[2,1],[2,1],[2,1]]},sixStagger:{label:"Six stagger",across:6,acrossPhone:6,desktop:[[3,1],[2,1],[1,1],[2,1],[1,1],[3,1],[1,1],[3,1],[2,1],[2,1],[1,1],[3,1]],phone:[[1,1],[1,1],[1,1],[1,1],[1,1],[1,1]]},twoThenThrees:{label:"Two, then threes",across:3,acrossPhone:3,lead:[[6,1],[6,1]],desktop:[[4,1],[4,1],[4,1]],leadPhone:[[3,1],[3,1]],phone:[[2,1],[2,1],[2,1]]},twoThenThreesPhoto:{label:"Two, then threes \xB7 photo",across:3,acrossPhone:1,lead:[[6,1],[6,1]],desktop:[[4,1],[4,1],[4,1]],phone:[[6,1]],ratio:"landscape"}},mA=["phone","acrossPhone","leadPhone"];var EY=new Set(mA),jc=Object.fromEntries(Object.entries(Mu).map(([e,o])=>[e,Object.fromEntries(Object.entries(o).filter(([t])=>!EY.has(t)))])),Eb=Object.keys(Mu),hA=[2,3,4,6];function _b(e,o){return Eb.filter(t=>t===o||e===null||jc[t].across===e)}function xA(e){let o=e.layout;return typeof o=="string"&&He(Mu,o)?o:null}function Ob(e){let o=xA(e);return o?_Y(o,e.layoutPhone):null}var Hu={oneAcross:{label:"One across",phone:[[Ni,2]],acrossPhone:1}};function gA(e){return typeof e=="string"&&He(Hu,e)?e:null}function pA(e,o){return o?Ni/e.acrossPhone:uA/e.across}function Ab(e){return e.ratio?hO.find(o=>o.shape===e.ratio)?.ratio??null:null}function IA(e){return[...e.lead??[],...e.desktop]}function _Y(e,o){let t=Mu[e],r=gA(o);if(!r)return t;let{phone:a,acrossPhone:n}=Hu[r],s=Object.fromEntries(mA.map(i=>[i,void 0]));return{...t,...s,phone:a,acrossPhone:n}}var OY="sf-wall--";function AY(e){let o=xA(e);if(!o)return"";let t=gA(e.layoutPhone);return`${OY}${o}${t?`--${t}`:""}`}function c_e(e){let o=Ob(e);if(!o)return"";let t=`.${AY(e)}`,r=[],a=(i,l,d)=>`${t}:has(> :nth-child(${i}n+${l+d}):last-child) > :nth-last-child(-n+${d})`,n=(i,l,d=[])=>{let f=[],u=i.length,p=d.length;d.forEach(([m,h],I)=>{f.push(`${t} > :nth-child(${I+1}){grid-column:span ${m};grid-row:span ${h}}`)}),i.forEach(([m,h],I)=>{f.push(`${t} > :nth-child(${u}n+${p+I+1}){grid-column:span ${m};grid-row:span ${h}}`)});for(let m=1;m<u;m+=1)f.push(`${a(u,p,m)}{grid-column:span ${l};grid-row:span 1}`);return f};r.push(`${t}{grid-template-columns:repeat(${uA},minmax(0,1fr))}`);let s=Ab(o);if(s&&(r.push(`${t}${t}{grid-auto-rows:auto}`),r.push(`${t}${t} > *{aspect-ratio:${s[0]}/${s[1]};height:auto}`)),r.push(...n(o.desktop,pA(o,!1),o.lead)),r.push(`@media (max-width:${PY}px){`),r.push(`${t}{grid-template-columns:repeat(${Ni},minmax(0,1fr))}`),r.push(...n(o.phone,pA(o,!0),o.leadPhone)),o.phone.length===1&&!o.leadPhone?.length){let[i,l]=o.phone[0],d=o.lead?.length??0;for(let f=1;f<o.desktop.length;f+=1)r.push(`${a(o.desktop.length,d,f)}{grid-column:span ${i};grid-row:span ${l}}`)}return r.push("}"),r.join("")}var Wu=12,bA=1,$u=3;var RY=3;function Di(e,o,t){let r=typeof e=="number"?e:Number.parseInt(String(e??""),10);return Number.isFinite(r)?Math.min(t,Math.max(o,Math.trunc(r))):null}function LY(e){return Di(e,1,Wu)??RY}function u_e(e,o){return Di(e,bA,$u)??(LY(o)===4?2:bA)}function SA(e){return e==null||e===""?null:Di(e,1,Wu)}var wA="data-sf-span",Uu=4;function Rb(e){return e==null||e===""?null:Di(e,1,Uu)}var CA="data-sf-row-span",Mi="gridTileAt",Lb=48;function vA(e){return e==null||e===""?null:Di(e,1,Lb)}var kA="--sf-tile-at";function TA(e){return e==null||e===""?null:Di(e,1,$u)}function PA(e){return Rb(e)}var EA="data-sf-span-phone",_A="data-sf-row-span-phone",ja=["gridSpan","gridRowSpan",Mi,yA("gridSpan"),yA("gridRowSpan")];function OA(e,o){if(!e)return!1;if(Fb(e,o)||e.type==="Grid")return!0;if(e.type==="GalleryB"){if(Ob(e.props??{}))return!1;let t=e.props?.columns;return t!=null&&t!==""}return!1}var AA=new Map;function m_e(e,o){AA.set(e,[...o])}function Fb(e,o){if(!e||typeof e.type!="string"||typeof o!="string")return!1;let t=AA.get(e.type);return t?t.some(r=>{let a=e.props?.[r];return Array.isArray(a)&&a.some(n=>n?.props?.id===o)}):!1}import{jsx as FY}from"react/jsx-runtime";import*as BY from"efficient-easel/icons";function zu(e){let o=e.replace(/(^|-)([a-z])/g,(r,a,n)=>n.toUpperCase()),t=BY[`${o}Icon`];return t?FY(t,{size:16}):null}import{jsx as Ka,Fragment as MY,jsxs as HA}from"react/jsx-runtime";import{useContext as HY,useEffect as WY,useId as $Y,useState as WA}from"react";import{SettingsField as UY,SettingsSwitch as zY}from"efficient-easel/panel";import{AnchorIcon as GY}from"efficient-easel/icons";import{ScreenDocumentContext as jY}from"efficient-easel/screen/components/ScreenDocumentContext";import{Snippet as KY}from"efficient-shell/ui";import{slugify as VY}from"efficient-shell/format";import{slugify as NY}from"efficient-shell/format";function Kc(e){return typeof e=="string"?e.trim():e&&typeof e=="object"&&typeof e.text=="string"?e.text.trim():""}var Kn=e=>NY(Kc(e));var Gu="homepage";import{slugify as DY}from"efficient-shell/format";var RA=[{value:"page",label:"Page"},{value:"anchor",label:"Anchor"},{value:"blog",label:"Blog post",needs:"service"},{value:"product",label:"Product",needs:"commerce"},{value:"popup",label:"Popup"},{value:"custom",label:"Custom URL"}];function LA(e){return e.offersCommerce&&e.offersService?RA:RA.filter(o=>!o.needs||(o.needs==="commerce"?e.offersCommerce:e.offersService))}var Bb="#popup:";function FA(e){return`${Bb}${e}`}function BA(e){return e.startsWith(Bb)&&e.slice(Bb.length).trim()||null}function Vc(e){return e===Gu?"/":`/${e}`}function NA(e){return`/journal/${e}`}function v_e(e){return`/wheels/${e}`}function ju(e,o){return`${Vc(e)}#${o}`}function DA(...e){let o=new Set,t=[];for(let r of e)for(let a of r?.content??[]){let n=Kc(a?.props?.anchor);if(!n)continue;let s=DY(n);!s||o.has(s)||(o.add(s),t.push({slug:s,name:n}))}return t}function k_e(e){let o=e.indexOf("#"),t=o===-1?e:e.slice(0,o),r=t.indexOf("?");return r===-1?t:t.slice(0,r)}function MA(e){return/^\/wheels\/[^/?#]+(?:[?#].*)?$/.test(e)}import{readHidable as YY}from"efficient-easel/draw";function $A({value:e,onChange:o,nameBox:t}){let r=YY(e).text,[a,n]=WA(!1),s=a||r.trim()!=="",i=$Y();return HA(MY,{children:[Ka(UY,{label:c("Add an anchor"),labelId:i,icon:Ka(GY,{}),action:Ka(zY,{checked:s,ariaLabelledBy:i,onChange:l=>{n(l),!l&&r!==""&&o("")}})}),s&&t(e,o),s&&Ka(qY,{name:r})]})}function qY({name:e}){let o=HY(jY),t=o?.templateId?"":o?.currentSlug??"",[r,a]=WA("");WY(()=>a(hu()),[]);let n=VY(e);if(!n||!t)return null;let s=`${r}${ju(t,n)}`,i=s.replace(/^https?:\/\//,""),l=i.lastIndexOf("#");return Ka("div",{className:"sf-anchor-link",children:Ka(KY,{value:s,label:c("link"),size:"sm",children:HA("span",{className:"sf-anchor-link-text",children:[Ka("span",{className:"sf-anchor-link-path",children:i.slice(0,l)}),Ka("span",{className:"sf-anchor-link-hash",children:i.slice(l)})]})})})}import{jsx as Ur,jsxs as XY}from"react/jsx-runtime";import{Fragment as ZY}from"react";import{Button as Ku,Tooltip as JY}from"efficient-shell/ui";function UA({status:e,statusText:o,onRefresh:t,busy:r=!1,edit:a,hint:n,spaced:s=!0,compact:i=!1,oneLine:l=!1}){return i?Ur("div",{className:`sf-blogsource sf-blogsource--compact${l?" sf-blogsource--line":""}`,style:s?{marginTop:8}:void 0,children:Ur(JY,{content:n,className:l?"sf-name-tip":void 0,children:Ur("p",{className:"sf-blogsource-status","data-state":e,children:[o?Ur(ZY,{children:o},"status"):null,t?Ur(Ku,{variant:"link",size:"sm",className:"sf-blogsource-link",onClick:t,disabled:r,children:c("Refresh now")},"refresh"):null,a?Ur(Ku,{variant:"link",size:"sm",className:"sf-blogsource-link",onClick:a.onClick,children:a.label},"edit"):null].filter(Boolean).flatMap((d,f)=>f?[" \xB7 ",d]:[d])})})}):XY("div",{className:"sf-blogsource",style:s?{marginTop:9}:void 0,children:[Ur("p",{className:"sf-blogsource-status","data-state":e,children:o}),t?Ur(Ku,{variant:"secondary",className:"sf-blogsource-action",onClick:t,disabled:r,children:c("Refresh now")}):null,a?Ur(Ku,{variant:"secondary",className:"sf-blogsource-action",onClick:a.onClick,children:a.label}):null,Ur("p",{className:"es-field-hint",children:n})]})}import{AdjustIcon as RQ,EyeIcon as LQ,AnimationIcon as FQ,BackgroundIcon as jF,BorderAllIcon as BQ,BlockSectionIcon as NQ,ColumnWidthsIcon as Zm,ColumnsIcon as nB,CornerIcon as sB,DirectionDownIcon as DQ,DirectionLeftIcon as MQ,DirectionRightIcon as HQ,DirectionUpIcon as WQ,EditIcon as $Q,GapIcon as UQ,GridIcon as iB,GroundIcon as hw,HashIcon as lB,HeightIcon as Jm,ImageIcon as zQ,ListIcon as GQ,LocationIcon as KF,PaddingBottomIcon as cB,PaddingLeftIcon as dB,PaddingRightIcon as fB,PaddingTopIcon as yw,PageIcon as jQ,StickyIcon as pB,SearchIcon as KQ,SquareIcon as VQ,TypeIcon as YQ,WidthIcon as qQ}from"efficient-easel/icons";import{jsx as oo,Fragment as Vn,jsxs as Yn}from"react/jsx-runtime";import{CaptionIcon as QY,DateIcon as e9,FlagIcon as o9,TitleIcon as t9,ButtonIcon as r9,DollarIcon as a9,HashIcon as n9,LinkIcon as s9,NoteIcon as i9,TagIcon as l9,TextLinesIcon as c9}from"efficient-easel/icons";var zA={body:c9,button:r9,link:s9,label:l9,number:n9,price:a9,note:i9,name:o9,date:e9,caption:QY,title:t9},GA={eyebrow:Yn(Vn,{children:[oo("path",{d:"M5 6.5h5"}),oo("path",{d:"M5 12.5h14"}),oo("path",{d:"M5 18h11"})]}),heading:Yn(Vn,{children:[oo("path",{d:"M6.5 5v14"}),oo("path",{d:"M17.5 5v14"}),oo("path",{d:"M6.5 12h11"})]}),intro:Yn(Vn,{children:[oo("path",{d:"M4 5.5v13"}),oo("path",{d:"M8 7.5h12"}),oo("path",{d:"M8 12h12"}),oo("path",{d:"M8 16.5h8"})]}),value:Yn(Vn,{children:[oo("rect",{x:"2.5",y:"7",width:"19",height:"10",rx:"2"}),oo("path",{d:"M6.5 12h7"})]}),quote:Yn(Vn,{children:[oo("path",{d:"M9.5 5.5C7 7.2 5.5 9.7 5.5 12.8h4v5.7h-5v-5.7"}),oo("path",{d:"M19.5 5.5c-2.5 1.7-4 4.2-4 7.3h4v5.7h-5v-5.7"})]}),tag:Yn(Vn,{children:[oo("rect",{x:"3",y:"5.5",width:"18",height:"13",rx:"2.5"}),oo("path",{d:"M8 9.5h8"}),oo("path",{d:"M12 9.5v5"})]}),meta:Yn(Vn,{children:[oo("path",{d:"M4 7h16"}),oo("path",{d:"M4 14h3.5"}),oo("path",{d:"M10.5 14h3"}),oo("path",{d:"M17 14h3"})]})};function Nb({noun:e,size:o=14,strokeWidth:t=1.8,className:r,style:a}){let n=zA[e];return n?oo("span",{className:r,style:{display:"inline-flex",...a},"aria-hidden":"true",children:oo(n,{size:o})}):oo("svg",{className:r,style:a,width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:t,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:GA[e]})}var K_e=Object.keys(zA);var V_e=Object.keys(GA);import{parseHexColor as g9}from"efficient-shell/format";import{parseHexColor as qA}from"efficient-shell/format";import{COLOR_SLOTS as XA,FILL_COLOR_SLOTS as m9,colorRole as h9,fillColorRole as ZA}from"efficient-shell/markup";import{parseHexColor as jA}from"efficient-shell/format";import{FILL_COLOR_SLOTS as d9}from"efficient-shell/markup";var Vu=e=>{let o=eO.find(t=>t.role===e);return o?`var(${o.token})`:""},f9=e=>Vu(e)?`var(--theme-${e})`:"",p9={main:{ink:Rn.accent,page:Rn.accent,key:"accent",label:()=>c("Main"),words:e=>c("Theme {n} main color",{n:e})},text:{ink:Rn.text,page:Rn.text,key:"text",label:()=>c("Text"),words:e=>c("Theme {n} text color",{n:e})},background:{ink:Vu("bg"),page:f9("bg"),key:"background",label:()=>c("Background"),words:e=>c("Theme {n} background",{n:e})},muted:{ink:Rn.labels,page:Rn.labels,key:"muted",label:()=>c("Muted"),words:e=>c("Theme {n} muted color",{n:e})},surface:{ink:Vu("surface"),page:Vu("surface"),key:"surface",label:()=>c("Surface"),words:e=>c("Theme {n} surface color",{n:e})}};function Va(e){return $(p9,e)}var Db="#9ca3af";function Hi(e,o,t){let r=Va(e);return r?{hex:jA(o[r.key]??"")??"",words:r.words(t)}:null}function KA(e,o){return d9.flatMap(t=>{let r=Hi(t,e,o);return r&&Va(t)?.ink?[{name:t,label:r.words,value:r.hex||Db}]:[]})}var u9=["main","text","background"];function VA(e){let o=new Set,t=[];return vo(e).themes.forEach((r,a)=>{for(let n of u9){let s=Va(n),i=s?r[s.key]:void 0,l=typeof i=="string"&&i?jA(i):null;!s||!l||o.has(l)||(o.add(l),t.push({value:l,label:s.words(a+1)}))}}),t}function pa(e){return Va(e)?.ink??""}function zr(e){if(typeof e!="string")return null;let o=ZA(e.trim());return o?.kind==="slot"&&pa(o.slot)?o.slot:null}var x9={accent:"main",labels:"muted"};function Ot(e){return $(x9,e)??e}function Wi(e){if(!e)return"";if(e.startsWith("#"))return qA(e)===e.toLowerCase()?e:"";let o=h9(Ot(e));return o?.kind==="slot"?pa(o.slot):""}function $i(e,o=XA){return o.flatMap(t=>{let r=Va(t);return r?.ink?[{name:t,label:r.label(),value:e?.[t]||Db}]:[]})}function JA(e){let o=ZA(Ot(e));return o?.kind==="slot"?pa(o.slot):""}function Mb(e){let o=e?.trim();return o?m9.find(t=>pa(t)===o)??null:null}function Yu(e){let o={},t=e.ownerDocument,r=t?.defaultView;if(!t||!r)return o;let a=r.getComputedStyle(e),n=t.createElement("canvas").getContext("2d");for(let s of XA){let i=pa(s);if(!i)continue;let l=i.replace(/^var\((--[\w-]+)\)$/,"$1"),d=a.getPropertyValue(l).trim();if(!d)continue;let f=YA(d);!f&&n&&(n.fillStyle="#000000",n.fillStyle=d,f=YA(String(n.fillStyle))),f&&(o[s]=f)}return o}function YA(e){let o=e.trim().toLowerCase();if(o.startsWith("#"))return qA(o);let t=o.match(/^rgba?\(\s*(\d+)[\s,]+(\d+)[\s,]+(\d+)/);return t?`#${t.slice(1,4).map(r=>Math.min(255,Number(r)).toString(16).padStart(2,"0")).join("")}`:null}var I9="#ffffff";function Hb(e){return QA(e)||(y9(e)?e:I9)}function QA(e){let o=zr(e);return o?Va(o)?.page??"":""}function y9(e){return typeof e=="string"&&g9(e)===e.toLowerCase()||QA(e)!==""}function qu(e){return{"--bg":Hb(e)}}import{parseHexColor as b9}from"efficient-shell/format";import{fillColorRole as S9}from"efficient-shell/markup";function qn(e,o,t,r){let a=r??t??o,n=t!==null&&t!==o,s=a!==null&&a!==o;return{className:[n?e.tabletClass:"",s?e.phoneClass:""].filter(Boolean).join(" "),style:{...n?{[e.tabletVar]:t}:{},...s?{[e.phoneVar]:a}:{}}}}var Wb=[{label:"Even",value:"even"},{label:"From the bottom",value:"bottom"}];var COe="sf-card",vOe="[--sf-card-lift:none] [--sf-card-shadow-hover:var(--sf-card-shadow,none)]",Ya={min:0,max:100,step:5,fallback:0,unit:"%"},w9="68%",TOe={desktop:20,phone:20,side:40,sidePhone:24},POe="sf-box-sides";function Ub(e){return typeof e=="string"&&e.trim()!==""}function oR(e){return Ub(typeof e?.bgImage=="string"?e.bgImage:null)||Xu(e)}function Xu(e){return xt(e,Fp)!==""}function qc(e,o){return o||!Xu(e)?e:{...e,[Fp]:""}}function EOe(e,o){return By(o,xt(e,Fp))?.trim()||null}function eR(e,o){let t=typeof e=="number"?e:Number.parseFloat(String(e??""));if(!Number.isFinite(t)||t<=0)return null;let r=(Math.min(Ya.max,Math.max(Ya.min,t))/100).toFixed(2);return o!=="bottom"?{background:da(Number(r))}:{background:`linear-gradient(0deg, ${da(Number(r))} 0%, ${da(0)} ${w9})`}}var Zu=[{label:"Flat",value:"",hint:"One colour from top to bottom"},{label:"Fade",value:"down",hint:"The colour fades into the page colour at the bottom"}],tR="fillFade",$b=Zu[1].value,Ju=e=>e===$b?$b:Zu[0].value,C9=[{mix:"12%",at:"50%"},{mix:"19%",at:"70%"},{mix:"50%",at:"95%"}];function _Oe(e){return Ju(e)!==$b?null:{backgroundImage:`linear-gradient(to bottom, transparent, ${C9.map(o=>`color-mix(in srgb, var(--bg) ${o.mix}, transparent) ${o.at}`).join(", ")})`}}var Qu=e=>typeof e=="string"?b9(e.trim()):null,Yc=e=>{let o=Qu(e);if(o!==null||typeof e!="string")return o;let t=e.trim();return t&&!t.startsWith("#")&&JA(t)||null},em=e=>{if(typeof e!="string")return null;let o=S9(Ot(e.trim()));return o?.kind==="slot"?o.slot:null},zb="swatch";function OOe(e,o){if(!o)return null;let t=By(o,xt(e,zb)),r=zr(t);return Qu(t)??(r&&pa(r)||null)}var v9={tabletClass:"sf-fill-tablet",tabletVar:"--sf-fill-tablet",phoneClass:"sf-fill-phone",phoneVar:"--sf-fill-phone"};function AOe(e,o,t){return qn(v9,Yc(e),Yc(o),Yc(t))}var k9={tabletClass:"sf-wash-tablet",tabletVar:"--sf-wash-tablet",phoneClass:"sf-wash-phone",phoneVar:"--sf-wash-phone"};function ROe(e){let o=eR(e.darken,e.darkenStyle);if(!o)return{className:"",style:{}};let t=(u,p)=>String(eR(u,p)?.background??"none"),r=u=>(typeof u=="number"||typeof u=="string"&&u.trim()!=="")&&Number.isFinite(Number(u))?u:void 0,a=u=>Wb.some(p=>p.value===u)?u:void 0,[n,s,i,l]=[r(e.darkenTablet),a(e.darkenStyleTablet),r(e.darkenPhone),a(e.darkenStylePhone)],d=n??e.darken,f=s??e.darkenStyle;return qn(k9,String(o.background),n!==void 0||s!==void 0?t(d,f):null,i!==void 0||l!==void 0?t(i??d,l??f):null)}function LOe(e,o){let t={"top-left":["start","start"],"top-center":["center","start"],"top-right":["end","start"],left:["start","center"],center:["center","center"],right:["end","center"],"bottom-left":["start","end"],"bottom-center":["center","end"],"bottom-right":["end","end"]},[r,a]=t[e]??t.center,[n,s]=o==="column"?[a,r]:[r,a];return $E(n,s)}function rR(e,o){let t=e?.content;if(!Array.isArray(t))return null;for(let r of t){if(!r||typeof r!="object")continue;let{type:a,props:n}=r;if(n?.id===o)return null;if(Gb(r,o,0))return{type:typeof a=="string"?a:"",props:n??{}}}return null}function Gb(e,o,t){if(t>12||!e||typeof e!="object")return!1;if(Array.isArray(e))return e.some(a=>Gb(a,o,t+1));let r=e.props;return r&&typeof r=="object"&&r.id===o?!0:Object.values(e).some(a=>Gb(a,o,t+1))}function aR(e,o){let t=e?.content;return Array.isArray(t)?om(t,o,0)??[]:[]}function om(e,o,t){if(t>12||!e||typeof e!="object")return null;if(Array.isArray(e)){for(let a of e){let n=om(a,o,t+1);if(n)return n}return null}let r=e.props;if(r&&typeof r=="object"){if(r.id===o)return[];for(let a of Object.values(r)){let n=om(a,o,t+1);if(n)return[r,...n]}return null}for(let a of Object.values(e)){let n=om(a,o,t+1);if(n)return n}return null}import{SettingsDefaultReset as tt,SettingsDrill as XQ,SettingsField as go,SettingsGroup as ZQ,SettingsSegmented as JQ,SettingsBorder as QQ,SettingsSidesEach as eee,SettingsSwitch as bw,borderSides as oee,borderStartEach as tee}from"efficient-easel/panel";import{ListField as ree}from"efficient-easel/fields";import{CodeIcon as aee}from"efficient-shell/icons/efficient";import{DisplayChips as nee}from"efficient-shell/ui";import{HIDDEN_KEY as T9,hiddenInEveryView as P9,hiddenInView as jb,hiddenKeyOf as nR}from"efficient-easel/screen/lib/content/view-hide";import{VIEW_TIERS as E9}from"efficient-easel/screen/lib/content/view-tiers";var _9={"000":"",100:"view-desktop:hidden","010":"view-wide:max-view-desktop:hidden","001":"max-view-wide:hidden",110:"view-wide:hidden","011":"max-view-desktop:hidden",101:"view-desktop:hidden max-view-wide:hidden",111:"hidden"},O9={"000":"",100:"view-desktop:hidden","010":"view-tablet:max-view-desktop:hidden","001":"max-view-tablet:hidden",110:"view-tablet:hidden","011":"max-view-desktop:hidden",101:"view-desktop:hidden max-view-tablet:hidden",111:"hidden"},sR=e=>(e.desktop?"1":"0")+(e.tablet?"1":"0")+(e.mobile?"1":"0");function tm(e,{atSectionLine:o=!1}={}){return(o?O9:_9)[sR(e)]}var Ui=[T9,nR("tablet"),nR("mobile")];function iR(e){return{desktop:jb(e,"desktop"),tablet:jb(e,"tablet"),mobile:jb(e,"mobile")}}function ua(e){return P9(e)}function lR(e){let o=iR(e);return E9.filter(t=>o[t]).join(" ")}var A9={"000":"",100:"view-desktop:hidden!","010":"view-wide:max-view-desktop:hidden!","001":"max-view-wide:hidden!",110:"view-wide:hidden!","011":"max-view-desktop:hidden!",101:"view-desktop:hidden! max-view-wide:hidden!",111:"hidden!"},R9={"000":"",100:"view-desktop:hidden!","010":"view-tablet:max-view-desktop:hidden!","001":"max-view-tablet:hidden!",110:"view-tablet:hidden!","011":"max-view-desktop:hidden!",101:"view-desktop:hidden! max-view-tablet:hidden!",111:"hidden!"};function Xc(e,{atSectionLine:o=!1}={}){return(o?R9:A9)[sR(iR(e))]}function zi(e){if(!e||typeof e!="object"||Array.isArray(e))return{};let o={};for(let[t,r]of Object.entries(e))typeof r=="boolean"&&(o[t]=r);return o}function rm(e,o){return zi(e)[o]!==!1}function Kb(e,o,t){let r=zi(o)[t];return typeof r=="boolean"?r:rm(e,t)}function cR(e){return Object.values(zi(e)).some(o=>o===!1)}function dR(e){return Object.keys(zi(e)).length>0}function fR(e,o,t){let r={...zi(e)};return t?delete r[o]:r[o]=!1,Object.keys(r).length?r:void 0}function pR(e,o,t){return{...zi(e),[o]:t}}function WOe(e,o,t,{atSectionLine:r=!0}={}){let a=!rm(e,t);return tm({desktop:a,tablet:a,mobile:!Kb(e,o,t)},{atSectionLine:r})}import{ColorSwatch as see,CornersInput as iee,DatePicker as gNe,DateTimePicker as lee,FOCAL_DEFAULT as INe,IconPicker as uB,COLUMN_COUNT_MAX as VF,COLUMN_SHARE_MIN as cee,COLUMN_SHARES_EQUAL as dee,resolveColumnShares as mB,WidthsBar as fee,useShellStrings as pee,IconButton as hB,InputNumber as YF,Slider as uee,Textarea as mee,Tooltip as Sw}from"efficient-shell/ui";import{backendOf as L9}from"efficient-easel/screen/lib/session";var Ge=L9,Gi=e=>e.blocks;async function uR(e){let o=e.trim();if(!o)return null;let t=Ge().geocode;if(!t)throw new Error("geocode_unavailable");return t.locate(o)}var Vb="Lookup busy \u2014 try again in a moment.",am=e=>typeof e=="number"&&Number.isFinite(e);function VOe(e){return e.some(o=>{let t=o?.geocode;return t?t.pending||t.manual&&t.lat===void 0&&t.lng===void 0?!0:am(t.lat)&&t.lat!==o.lat||am(t.lng)&&t.lng!==o.lng:!1})}async function YOe(e,o,{geocode:t=uR,courtesyGapMs:r=1100}={}){let a=s=>new Promise(i=>setTimeout(i,s)),n=e.slice();if(e.some(s=>s?.geocode?.pending)){let s=[],i=!1;for(let l of e){if(!l?.geocode?.pending){s.push(l);continue}i&&r>0&&await a(r),i=!0;try{let d=await t(o(l));s.push(d?{...l,lat:d.lat,lng:d.lng,geocode:{...l.geocode,pending:!1,ok:!0,status:`Found \u2014 ${d.label.split(",").slice(0,3).join(",").trim()}`,lat:d.lat,lng:d.lng}}:{...l,geocode:{...l.geocode,pending:!1,ok:!1,status:"No match \u2014 check the address and try again."}})}catch{s.push({...l,geocode:{...l.geocode,pending:!1,ok:!1,status:Vb}})}}n=s}return n.map(s=>{let i=s?.geocode;if(!i)return s;if(i.manual&&i.lat===void 0&&i.lng===void 0)return{...s,geocode:{...i,lat:s.lat,lng:s.lng}};let l=am(i.lat)&&i.lat!==s.lat?i.lat:s.lat,d=am(i.lng)&&i.lng!==s.lng?i.lng:s.lng;return l!==s.lat||d!==s.lng?{...s,lat:l,lng:d}:s})}import{jsx as ft,jsxs as qb}from"react/jsx-runtime";import{useRef as F9}from"react";import{ColorPicker as B9,ColorPickerPanel as N9,ColorSwatch as D9,HexInput as M9,Popover as H9,Tooltip as W9,colorFill as $9,colorSwatchClasses as U9,useShellStrings as z9}from"efficient-shell/ui";import{SettingsDefaultReset as G9,SettingsField as j9}from"efficient-easel/panel";import{typedHex as Yb}from"efficient-easel/pick";var mR="Not set";function hR({value:e,onChange:o,label:t,id:r,caption:a,inherited:n,ariaLabel:s,choices:i}){return ft(V9,{value:e,onChange:o,label:c(s??t),id:r,caption:a,inherited:n,choices:i})}function K9(){let{theme:e}=fe();return VA(e)}function V9({value:e,onChange:o,label:t,id:r,caption:a,inherited:n,choices:s}){let i=K9(),l=e?null:Yb(n??""),d=a!==void 0&&(!e||Yb(a)!==Yb(e))?a:null,f=u=>{u!==e&&o(u)};return qb("div",{className:"sf-colour",children:[s?ft(Y9,{id:r,value:e,onChange:o,label:t,presets:i,follows:l,choices:s}):ft(B9,{id:r,value:e,onChange:f,label:t,presets:i,fallback:l??void 0,size:"md",align:"start"}),d!==null?ft("span",{className:"sf-colour-caption",children:d}):ft("span",{className:"sf-colour-hexwrap",children:ft(M9,{value:e||l||"",onChange:f,label:c("{label} hex code",{label:t}),placeholder:e||l?void 0:c(mR),className:l?"sf-colour-hex is-inherited":"sf-colour-hex",size:"md"})})]})}function Y9({value:e,onChange:o,label:t,id:r,presets:a,follows:n,choices:s}){let i=z9().color,l=e||n||"",d=s.findIndex(p=>p.selected),f=d>=0,u=F9(d);return f&&(u.current=d),ft(H9,{id:r,trigger:ft("span",{"aria-hidden":"true",className:"absolute inset-0",style:$9(l)}),triggerLabel:i.swatch(t,l.toUpperCase()||i.none),triggerClassName:U9({size:"md"}),"aria-label":i.panel(t),align:"start",children:qb("div",{className:"sf-colour-window",children:[ft("div",{role:"group","aria-label":t,className:"sf-colour-choices",children:s.map(p=>ft(W9,{content:p.label,children:ft(D9,{color:p.color,"aria-label":p.label,selected:p.selected,onClick:()=>{p.selected||p.onPick()}})},p.label))}),ft(N9,{value:f?"":e,onChange:o,label:t,presets:a,fallback:(f?l:n)??void 0},u.current)]})})}function yt({label:e,icon:o,changed:t,hint:r,onReset:a,resetTo:n,children:s,...i}){return ft(j9,{label:e,icon:o,htmlFor:i.id,changed:t,hint:r,action:a?ft(G9,{words:de()?.panel,label:e,changed:!!t,detail:n,onReset:a}):void 0,children:s?qb("div",{className:"es-width-stack",children:[hR({...i,label:e}),s]}):hR({...i,label:e})})}function Zc({label:e,icon:o,value:t,inherited:r,resetTo:a,onChange:n,onReset:s,hint:i,choices:l,children:d}){let f=!!t;return ft(yt,{label:e,icon:o,value:t,inherited:f?void 0:r,onChange:n,changed:f,onReset:s,resetTo:a,hint:i,choices:l,children:d})}import{keptByRow as xw}from"efficient-easel/screen/lib/document/style-fields";import{jsx as q9}from"react/jsx-runtime";import{useEffect as X9,useState as Z9}from"react";import{clearRangeOf as J9,markSelection as Q9,useCaretEdit as eq}from"efficient-easel/copy";import{TextToolbar as oq}from"efficient-shell/ui";function tq(e,o,t){return Q9(e,o,t,dE)}function xR(e,o){let t=J9(o,e.length),r=pE(e,t.start,t.end);return r.text===e?null:r}function rq(e){let[o,t]=Z9(null);return X9(()=>{let r=e.current?.ownerDocument??(typeof document>"u"?null:document);if(!r)return;let a=()=>{let n=e.current;if(!n||r.activeElement!==n)return;let s=n.selectionStart??n.value.length,i=n.selectionEnd??s;t(l=>l&&l.start===s&&l.end===i?l:{start:s,end:i})};return r.addEventListener("selectionchange",a),()=>r.removeEventListener("selectionchange",a)},[e]),[o,t]}function aq({target:e,value:o,onChange:t,disabled:r=!1,label:a="Formatting"}){let n=eq({target:e,onChange:t}),[s,i]=rq(e),l=p=>n(m=>{let h=tq(o,p,m);return i({start:h.selectionStart,end:h.selectionEnd}),h}),d=cE(),f={};if(s)for(let p of d)f[p.style]=fE(o,s.start,s.end,p.style);let u=r?null:xR(o,s);return q9(oq,{offered:new Set(d.map(p=>p.style)),onMark:p=>l(p),pressed:f,disabled:r,"aria-label":c(a),className:"sf-markup-bar",clear:u?{onClear:()=>n(()=>{let p=e.current,m=p&&p.ownerDocument.activeElement===p?{start:p.selectionStart??0,end:p.selectionEnd??0}:null,h=xR(o,m)??{text:o,selectionStart:m?.start??0,selectionEnd:m?.end??0};return i({start:h.selectionStart,end:h.selectionEnd}),h})}:void 0})}var Xb=aq;import{deviceField as zo}from"efficient-easel/screen/lib/document/device-fields";import{NO_CONTROL_FIELD as hee,NoControlMark as xee,noControlField as xB}from"efficient-easel/screen/lib/document/panel-no-control-mark";var Zb="__ownBox";function gR(e){return!!e&&typeof e=="object"&&e[Zb]===!0}var Jb="sfPanelOnly";function ji(e){return!!e&&typeof e=="object"&&e[Jb]===!0}function nm(e,o,t){return typeof e=="number"?e:typeof o=="number"?o:t}var sm=void 0;import{phoneKey as on,tabletKey as ww,viewKeyAt as Cw}from"efficient-easel/draw";import{jsx as im,Fragment as nq,jsxs as sq}from"react/jsx-runtime";import{useRef as iq}from"react";import{SettingsDefaultReset as lq}from"efficient-easel/panel";import{effectTiles as cq}from"efficient-easel/screen/lib/document/effect-tiles";import{VIEW_KEY_ACCESS as IR,describedAs as dq,onDesktopWords as fq,phoneTwinFields as yR}from"efficient-easel/screen/lib/document/box-fields";function pq({row:e,read:o,...t}){let r=o(wo(),t.followsView??"desktop");return e({...t,follows:r})}function ma(e,o){return Object.fromEntries(It.map(t=>{let r=Te(e,t);return[r,yR(e,o(t),IR)[r]]}))}function lm(e,o,t){let r=o.render,a={...o,render:n=>im(pq,{...n,row:r,read:t})};return ma(e,n=>n==="desktop"?o:a)}function uq({spec:e,...o}){let t=e.values.includes(o.value),r="follows"in o,a=e.read(wo(),o.followsView??"desktop"),n=t?o.value:a,s=iq(null),{preview:i}=e,l=cq({label:c(e.label),options:e.values.map(f=>({value:f,label:c(e.word(f)),picture:e.picture(f)})),fallback:e.fallback,onPreview:i?f=>s.current&&i(s.current,f):void 0}).render,d=l({value:n,onChange:f=>o.onChange(f??e.fallback)});return sq(nq,{children:[i?im("div",{ref:s,style:{display:"contents"},children:d}):d,r&&t&&im(lq,{words:de()?.panel,label:c(e.tileWord),changed:!0,detail:fq(f=>c(f),c(e.word(a)),o.followsView),onReset:()=>o.onChange(void 0)})]})}function cm(e,o){let t=dq({type:"custom",render:r=>im(uq,{...r,spec:o})},{type:"select",label:o.label,options:o.values.map(r=>({value:r,label:o.word(r)}))});return yR(e,t,IR)}import{jsx as eS,Fragment as xq}from"react/jsx-runtime";import{createContext as gq,useContext as Iq}from"react";var dm={ProductGrid:{source:{keep:["slug"]}},GalleryItem:{product:{keep:["code","finish"]}},FeaturedCover:{source:{keep:["slug"]}},LongRead:{source:{keep:["slug"]}}},fm={Events:["posts"],SubscribeBlogs:["posts"]};var mq=["anchor"],hq=/^href$|Href$|^url$|Url$|^link$|^mailto$|^tel$/;function Xn(e){return mq.includes(e)||hq.test(e)}var Qb={Gallery:{source:{verb:"snapshot",keep:[]}},ProductHero:{source:{verb:"snapshot",keep:[]}},SpecTable:{source:{verb:"snapshot",keep:[]},wheel:{verb:"reference"},finish:{verb:"reference"},size:{verb:"reference"}},CollectionCard:{collection:{verb:"snapshot",keep:[]}},FooterMenu:{menu:{verb:"snapshot",keep:[]}},MenuBlock:{menu:{verb:"snapshot",keep:[]}},ProductGrid:{design_codes:{verb:"reference"}},ProductRef:{code:{verb:"reference"},finish:{verb:"reference"}},FitmentTable:{wheel:{verb:"reference"}},GalleryItem:{fromProduct:{verb:"reference"}},Footprint:{"offices[].group":{verb:"groupKey"},"offices[].lat":{verb:"pii"},"offices[].lng":{verb:"pii"},"offices[].geocode":{verb:"pii"}}};Qb.ContactLocations={"locations[].lat":{verb:"pii"},"locations[].lng":{verb:"pii"},"locations[].mapsUrl":{verb:"pii"},"locations[].geocode":{verb:"pii"}};var E1e=Object.fromEntries(Object.entries(dm).map(([e,o])=>[e,Object.keys(o)])),_1e=Object.fromEntries(Object.entries(fm).map(([e,o])=>[e,[...o]]));import{NoControlMark as yq}from"efficient-easel/screen/lib/document/panel-no-control-mark";var bR=gq(!1);function SR({children:e}){return eS(bR.Provider,{value:!0,children:e})}function bq(){return Iq(bR)}function wR({name:e,children:o}){return!bq()||!e||!Sq(e)||Xn(e)?eS(xq,{children:o}):eS(yq,{})}function Sq(e){return/^[A-Za-z0-9_$]+$/u.test(e)}var oS="off",vR="none",tS=[{label:"None",value:"off"},{label:"1, 2, 3",value:"plain"},{label:"01, 02, 03",value:"padded"},{label:"N\xB001, N\xB002",value:"numero"}],kR=[{label:"None",value:"none"},{label:"Hairline",value:"hairline"}];function D1e(e){return xo(tS,oS,e)}var CR="sf-card-index",Jc="sf-card-index",M1e="pointer-events-none absolute left-[18px] top-[18px] z-10 border border-line bg-bg/70 px-2 py-1 font-mono text-[length:var(--size-label,10px)] uppercase tracking-[0.16em] text-fg-dim",wq={plain:`counter(${Jc})`,padded:`counter(${Jc}, decimal-leading-zero)`,numero:`"N\xB0" counter(${Jc}, decimal-leading-zero)`};function H1e(e,o){return o==="off"?"":`.${e}{counter-reset:${Jc}}.${e} .${CR}{counter-increment:${Jc}}.${e} .${CR}::before{content:${wq[o]}}`}function W1e(e){return e==="hairline"?"border border-line hover:border-accent":""}var TR=[{value:"1",label:"1st rendering"},{value:"2",label:"2nd rendering"},{value:"3",label:"3rd rendering"},{value:"4",label:"4th rendering"},{value:"5",label:"5th rendering"}];import{SCALAR_TEXT_CONTROLS as gee}from"efficient-easel/draw";import{jsx as bt}from"react/jsx-runtime";import{SettingsDefaultReset as Oq,SettingsField as rS}from"efficient-easel/panel";import{useSelectedHost as Aq}from"efficient-easel/easel";import{FOCAL_DEFAULT as Rq}from"efficient-shell/format";import{ImageIcon as aS,PlayIcon as ER}from"efficient-easel/icons";import{ImageFocusPoint as Lq,MediaUploadField as Fq}from"efficient-shell/ui";import{useContext as Bq}from"react";import{ScreenDocumentContext as Nq}from"efficient-easel/screen/components/ScreenDocumentContext";import{tabletKey as Dq,viewKeyAt as Mq}from"efficient-easel/draw";import{usePreviewDevice as Hq}from"efficient-easel/draw/client";import{formatFocal as Cq,parseFocal as vq}from"efficient-shell/format";var kq="sf-focus-phone",Tq="--sf-focus-phone",Pq="sf-focus-tablet",Eq="--sf-focus-tablet",Qc=e=>{if(typeof e!="string"||!/^\s*-?\d+(\.\d+)?%\s+-?\d+(\.\d+)?%\s*$/.test(e))return null;let{x:o,y:t}=vq(e);return Cq(o,t)};function PR(e,o){return qn(_q,null,Qc(o),Qc(e))}var _q={tabletClass:Pq,tabletVar:Eq,phoneClass:kq,phoneVar:Tq};import{shownTier as nS}from"efficient-easel/screen/lib/document/device-fields";import{onDesktopWords as Wq}from"efficient-easel/screen/lib/document/box-fields";import{requestMediaPick as $q}from"efficient-easel/screen/lib/media-picker";import{useEaselHost as Uq}from"efficient-easel/screen/lib/host";import{useEaselSession as zq}from"efficient-easel/screen/lib/session-context";function Gq(e,o,t,r=!0){let a=nS(t),n=typeof e[o]=="string"&&e[o]?String(e[o]):Rq;if(a==="desktop")return{ownView:!1,followed:n,followsView:"desktop",own:void 0,focus:n,key:o};let s=Mq(o,a),i=Qc(e[s])??void 0,l=a==="mobile"&&r?Qc(e[Dq(o)])??void 0:void 0,d=l??n;return{ownView:!0,followed:d,followsView:l?"tablet":"desktop",own:i,focus:i??d,key:s}}function jq(e,o,t){let r=Aq();if(!o||!r)return null;let a=r.values??{};if(t&&!t(a,nS(e)))return null;let n=Gq(a,o,e,t?t(a,"tablet"):!0),s=r.onChange;return{...n,set:i=>s(n.key,i),clear:()=>s(n.key,sm)}}function _R({value:e,onChange:o,label:t,accept:r,placeholder:a,focusKey:n,focusWhen:s,frameKey:i,fieldKey:l}){let d=Uq(),f=zq(),u=c(t),p=Hq(),m=r.startsWith("video"),h=jq(p,m?void 0:n,s),I=!!n&&nS(p)!=="desktop",w=Bq(Nq),S=hr(),C=i&&l?{video:l,frame:i}:null,b=A=>$q(d,{accept:r,title:u,...A?{file:A}:{}}).then(D=>!D||!C?D?.url??null:(S({[C.video]:D.url,[C.frame]:D.posterUrl??""}),null)),y=C?A=>A?o(A):S({[C.video]:"",[C.frame]:""}):o,v=dt(e);if(I&&(!h||!v))return null;if(w&&!w.capabilities.mediaEditing)return bt(rS,{label:u,icon:m?bt(ER,{}):bt(aS,{}),children:bt("div",{className:"sf-image-slot-inert",children:m?c("Templates don\u2019t store videos \u2014 this slot stays a placeholder. Each website picks its own after it\u2019s created."):c("Templates don\u2019t store images \u2014 this slot stays a placeholder. Each website picks its own after it\u2019s created.")})});let L=h?.ownView&&v?bt(Oq,{words:de()?.panel,label:c("Image focus"),changed:!!h.own,detail:Wq(A=>c(A),h.followed,h.followsView),onReset:h.clear}):void 0;return I&&h?bt(rS,{label:u,icon:bt(aS,{}),action:L,children:bt("div",{style:{flex:"1 1 auto",minWidth:0},children:bt(Lq,{value:h.focus,onChange:h.set,label:c("Image focus"),image:v,hint:null})})}):bt(rS,{label:u,icon:m?bt(ER,{}):bt(aS,{}),children:bt("div",{style:{flex:"1 1 auto",minWidth:0},children:bt(Fq,{value:v,onChange:y,onPick:b,accept:m?"video/*":"image/*",kind:m?"video":"image",placeholder:a===void 0?void 0:c(a),maxSizeBytes:Ge(f).media.maxUploadBytes,...h?{focus:h.focus,onFocusChange:h.set}:{}})})})}import{jsx as OR}from"react/jsx-runtime";import{useId as Kq}from"react";import{FieldSelect as Vq}from"efficient-easel/fields";import{SettingsField as Yq}from"efficient-easel/panel";function qq(e){return e.map(({value:o,label:t,note:r})=>({value:o,label:t,...r?{meta:r}:{}}))}function AR({label:e,options:o,value:t,onChange:r,emptyLabel:a,icon:n,hint:s}){let i=Kq(),l=`${i}-label`,d=`${i}-button`,f=Array.isArray(t)?t:[];return OR(Yq,{label:c(e),labelId:l,icon:n,hint:s,children:OR(Vq,{id:d,multiple:!0,value:f,options:qq(o),onChange:r,placeholder:a===void 0?c("None"):c(a),ariaLabelledBy:`${l} ${d}`,inline:!0})})}import{jsx as ko,jsxs as Jn,Fragment as vX}from"react/jsx-runtime";import{useCallback as GR,useContext as kX,useId as VR,useRef as jR,useState as KR}from"react";import{ThemeIcon as TX}from"efficient-easel/icons";import{Button as PX,useClickOutside as EX}from"efficient-shell/ui";import{SettingsField as _X}from"efficient-easel/panel";import{ScreenDocumentContext as OX}from"efficient-easel/screen/components/ScreenDocumentContext";import{jsx as he,jsxs as Xa,Fragment as aX}from"react/jsx-runtime";import{parseHexColor as nX}from"efficient-shell/format";import{Button as iS,IconButton as sX,Tooltip as iX}from"efficient-shell/ui";import{jsx as qa,jsxs as Xq}from"react/jsx-runtime";import{AccentIcon as Zq}from"efficient-easel/icons";import{Button as Jq,Tooltip as Qq}from"efficient-shell/ui";function sS(e){return gt(e).background}function eX(e){let o=Ma(e.accent,sS(e));return o===null?null:{ratio:o,grade:ki(o)}}function oX(e){let o=sS(e),t=Ma(e.accent,o);return t===null?[]:__(e.accent).filter(r=>{let a=Ma(r,o);return a!==null&&a>t&&ki(a)==="good"})}var tX={good:"Easy to read","large-only":vi["large-only"],hard:vi.hard};function RR({value:e,onChange:o}){let t=eX(e),r=t?.grade,a=t&&t.grade!=="good"?oX(e):[];return qa(yt,{label:c("Main color"),icon:qa(Zq,{}),hint:t?c(tX[t.grade]):void 0,value:e.accent,onChange:n=>o({...e,accent:n}),children:a.length>0?qa("div",{className:"w-full min-w-0",children:Xq("div",{className:"sf-readability",children:[qa("p",{className:"sf-readability-advice",children:rX(r,!0)}),qa("div",{className:"sf-readability-suggestions",children:a.map(n=>{let s=Ma(n,sS(e));return qa(Qq,{content:c("Use {colour}",{colour:n.toUpperCase()}),children:qa(Jq,{variant:"secondary",className:"sf-readability-suggestion",leftIcon:qa("span",{className:"sf-readability-chip",style:{background:n},"aria-hidden":!0}),onClick:()=>o({...e,accent:n}),children:s?`${s.toFixed(1)}:1`:n.toUpperCase()})},n)})})]})}):null})}function rX(e,o){return e?e==="good"?c("This color reads clearly on your pages."):o?c("This color is hard to read on this theme's page. The buttons below are the same hue, darkened."):c("This color is hard to read on your page background. Pick one further from it \u2014 lighter if your pages are dark, deeper if they are light."):c("Pick a color to see how it reads.")}import{ButtonIcon as lX,ChevronDownIcon as FR,ChevronUpIcon as cX,GroundIcon as dX,LayoutIcon as fX,SquareIcon as pX,TextSmallIcon as uX,TypeIcon as LR}from"efficient-easel/icons";var ed=e=>c("Theme {n}",{n:e+1});function BR({colors:e}){let o=gt(e),t=_c(e)??o.accent;return Xa("span",{className:"sf-theme-page",style:{background:o.background,color:o.text},"aria-hidden":!0,children:[he("span",{className:"sf-theme-eyebrow",style:{color:o.muted},children:c("label")}),Xa("span",{className:"sf-theme-headline",children:[c("Heading")," ",he("span",{style:{color:o.accent},children:c("main")})]}),he("span",{className:"sf-theme-body",children:c("body text")}),Xa("span",{className:"sf-theme-row",children:[he("span",{className:"sf-theme-btn",style:{background:t,color:Hy(e,o.accent)},children:c("button")}),he("span",{className:"sf-theme-mini",style:{background:o.surface,borderColor:o.line},children:c("card")})]})]})}var lS={"Text color":he(LR,{}),"Label color":he(uX,{}),Background:he(dX,{}),"Panels & cards":he(fX,{}),Borders:he(pX,{}),"Button color":he(lX,{}),"Button text color":he(LR,{})};function mX({label:e,colorKey:o,value:t,onChange:r,idPrefix:a="sf-theme-ink"}){let n=`${a}-${o}`;return he(yt,{label:c(e),icon:lS[e],id:n,value:t,onChange:s=>r(o,s)})}function hX({value:e,accent:o,onChange:t,idPrefix:r="sf-theme-ink"}){let a=`${r}-button`,n=e!==void 0&&nX(e)===e.toLowerCase(),s=n?e:o;return he(yt,{label:c("Button color"),icon:lS["Button color"],id:a,value:s,caption:n?s:c("Main"),onChange:t})}function xX({colors:e,accent:o,onChange:t,idPrefix:r="sf-theme-ink"}){let a=`${r}-button-ink`,n=L_(e),s=Hy(e,o),i=_c(e)??o,l=ki(Ma(s,i)??0);return he(yt,{label:c("Button text color"),icon:lS["Button text color"],hint:n&&l!=="good"?c("{grade} on the button",{grade:c(vi[l])}):void 0,id:a,value:s,caption:n?s:c("Auto"),onChange:t})}var gX=[{colour:!0},{label:"Text color",key:"text"},{label:"Label color",key:"muted"},{button:!0},{buttonInk:!0},{moduleBreak:!0},{label:"Background",key:"background"},{label:"Panels & cards",key:"surface"},{label:"Borders",key:"line"}];function cS({colors:e,onChange:o,idPrefix:t}){let r=gt(e);return he(aX,{children:gX.map(a=>"colour"in a?he(RR,{value:e,onChange:o},"colour"):"moduleBreak"in a?he("div",{className:"sf-theme-module-break","aria-hidden":"true"},"module-break"):"button"in a?he(hX,{value:e.button,accent:r.accent,onChange:n=>o({...e,button:n}),idPrefix:t},"button"):"buttonInk"in a?he(xX,{colors:e,accent:r.accent,onChange:n=>o({...e,buttonInk:n}),idPrefix:t},"buttonInk"):he(mX,{label:a.label,colorKey:a.key,value:r[a.key],onChange:(n,s)=>o({...e,[n]:s}),idPrefix:t},a.key))})}function pm({index:e,colors:o,selected:t,role:r="radio",open:a,editable:n=!0,onPick:s,onEdit:i,onChangeColors:l}){let d=gt(o),f=ed(e),u=e<My.length&&!o.brandInk?My[e]:null,p=ki(Ma(d.text,d.background)??0),m=u?JSON.stringify(o)!==JSON.stringify(u):!1,h=a!==void 0;return Xa("div",{className:`sf-theme-card${t?" is-selected":""}`,children:[he("button",{type:"button",role:r,"aria-checked":r==="radio"?t:void 0,"aria-selected":r==="option"?t:void 0,"aria-label":f,className:"sf-theme-pick",onClick:s,children:he(BR,{colors:o})}),Xa("div",{className:"sf-theme-foot",children:[he("span",{className:"sf-theme-name",children:f}),p!=="good"&&he("span",{className:"sf-theme-warn",children:c(vi[p])}),n&&i&&h&&he("span",{className:"sf-theme-edit",children:he(iX,{content:a?c("Collapse"):c("Edit colors"),children:he(sX,{size:"sm","aria-expanded":a,"aria-controls":`sf-theme-colours-${e}`,"aria-label":a?c("Collapse {name}",{name:f}):c("Edit colors for {name}",{name:f}),onClick:i,children:a?he(cX,{size:14}):he(FR,{size:14})})})}),n&&i&&!h&&he(iS,{variant:"secondary",size:"sm",className:"sf-theme-edit","aria-label":c("Edit {name}",{name:f}),onClick:i,children:c("Edit")})]}),a&&Xa("div",{id:`sf-theme-colours-${e}`,className:"sf-theme-colours",children:[he(cS,{colors:o,onChange:I=>l?.(I)}),u&&he(iS,{variant:"link",size:"sm",className:"sf-theme-reset",disabled:!m,onClick:()=>l?.({...u}),children:m?c("Reset {name} to the preset",{name:f}):c("Not changed")})]})]})}function NR({colors:e,name:o,nameId:t,open:r,menuId:a,labelId:n,buttonRef:s,onClick:i,onKeyDown:l,onEdit:d}){return Xa("div",{className:"sf-secttheme-btn",children:[he("button",{ref:s,type:"button",className:"sf-theme-pick","aria-expanded":r,"aria-controls":a,"aria-labelledby":`${n} ${t}`,onClick:i,onKeyDown:l,children:e?he(BR,{colors:e}):he("span",{className:"sf-secttheme-nopreview","aria-hidden":"true"})}),Xa("div",{className:"sf-theme-foot",children:[he("span",{id:t,className:"sf-theme-name",children:o}),d&&he(iS,{variant:"secondary",size:"sm",className:"sf-theme-edit","aria-label":c("Edit {name}",{name:o}),onClick:d,children:c("Edit")}),he("button",{type:"button",className:"sf-secttheme-caret","aria-hidden":"true",tabIndex:-1,onClick:i,children:he(FR,{size:12,className:"sf-multi-caret","aria-hidden":"true"})})]})]})}import{useCallback as hS,useEffect as $R,useRef as xm}from"react";import{currentEaselSession as bX}from"efficient-easel/screen/lib/session";import{useEaselSession as SX}from"efficient-easel/screen/lib/session-context";import{useSyncExternalStore as IX}from"react";var MR,dS=null,Zn=null,um=0,fS=new Set;function pS(e){MR=e;for(let o of fS)o()}function uS(e){dS=e,um+=1,Zn&&clearTimeout(Zn),Zn=null,pS(void 0)}function mm(e){um+=1,pS(e)}function ha(e=250){dS&&(Zn&&clearTimeout(Zn),Zn=setTimeout(()=>{Zn=null;let o=dS;if(!o)return;let t=++um;o().then(r=>{t===um&&pS(r)}).catch(()=>{})},e))}function DR(){return MR}function yX(e){return fS.add(e),()=>{fS.delete(e)}}function hm(){return IX(yX,DR,DR)}var mS=new Set;function HR(e){return mS.add(e),()=>{mS.delete(e)}}async function WR(){let e=(await Promise.allSettled([...mS].map(async o=>o()))).find(o=>o.status==="rejected");if(e)throw e.reason}import{WebsiteBackendError as wX}from"efficient-easel/screen/lib/backend-error";function UR(e=bX()){return(o,t,r)=>{let a=Ge(e).theme;return a?a.update(o,r?{siteId:r}:void 0):Promise.reject(new wX("invalid","This backend stores no site theme."))}}function zR(e){return e.themeFromDocument?{status:"skipped",reason:"template"}:e.token?null:{status:"skipped",reason:"no-token"}}async function CX(e,o=UR()){let{themeFromDocument:t,token:r,siteId:a,patch:n}=e,s=zR({themeFromDocument:t,token:r});if(s)return s;if(Object.keys(n).length===0)return{status:"skipped",reason:"empty"};try{return await o(n,r,a??void 0),{status:"saved"}}catch(i){return{status:"failed",error:i}}}function Ki({themeFromDocument:e,tokenRef:o,siteId:t,onResult:r}){let a=xm(null),n=xm({}),s=SX(),i=xm(r);i.current=r;let l=xm(null),d=hS(p=>{if(p.status==="skipped"){let m=`skipped:${p.reason}`;if(l.current===m)return;l.current=m}else l.current=null;i.current?.(p)},[]),f=hS(async()=>{a.current&&(clearTimeout(a.current),a.current=null);let p=n.current;n.current={};let m=await CX({themeFromDocument:e,token:o?.current,siteId:t,patch:p},UR(s));return d(m),m.status==="saved"&&ha(),m.status==="failed"&&(n.current={...p,...n.current}),m},[e,o,t,d,s]),u=hS((p,m=!1)=>{let h=zR({themeFromDocument:e,token:o?.current});if(h){d(h);return}n.current={...n.current,...p},a.current&&clearTimeout(a.current),m?f():a.current=setTimeout(()=>{f()},500)},[e,o,f,d]);return $R(()=>()=>{f()},[f]),$R(()=>HR(async()=>{if(!a.current&&Object.keys(n.current).length===0)return;let p=await f();if(p.status==="failed")throw p.error}),[f]),{persist:u,flush:f}}var xS="Follow the page",YR="Follow the slideshow",AX=e=>c("Editing {name} changes it everywhere.",{name:e});function RX({colors:e}){if(!e)return ko("span",{className:"sf-secttheme-chip sf-secttheme-chip--none","aria-hidden":"true"});let o=gt(e);return Jn("span",{className:"sf-secttheme-chip","aria-hidden":"true",children:[ko("i",{style:{background:o.background}}),ko("i",{className:"sf-secttheme-chip-accent",style:{background:o.accent}})]})}function LX({themes:e,value:o,onPick:t,onEdit:r,menuId:a,followLabel:n}){return Jn("div",{className:"sf-multi-menu sf-secttheme-menu",id:a,role:"listbox",children:[n!==void 0&&Jn(vX,{children:[Jn("button",{type:"button",role:"option","aria-selected":o===null,className:`sf-secttheme-item${o===null?" is-active":""}`,onClick:()=>t(Hr),children:[ko(RX,{}),ko("span",{className:"sf-secttheme-name",children:c(n)})]}),ko("div",{className:"sf-secttheme-sep",role:"presentation"})]}),o!==null&&e[o]&&ko("p",{className:"sf-secttheme-oncard",role:"presentation",children:c("{name} is on this section",{name:ed(o)})}),e.map((s,i)=>i===o?null:ko(pm,{role:"option",index:i,colors:s,selected:!1,onPick:()=>t(i),onEdit:()=>r(i)},i))]})}function FX({index:e,colors:o,onChange:t,onDone:r}){let a=ed(e),n=VR();return Jn("div",{className:"sf-secttheme-sheet",children:[Jn("div",{className:"sf-secttheme-sheet-head",children:[ko("span",{children:a}),ko(PX,{variant:"secondary",className:"sf-secttheme-done",onClick:r,children:c("Done")})]}),ko("div",{className:"sf-secttheme-rows",children:ko(cS,{colors:o,onChange:t,idPrefix:n})}),ko("p",{className:"sf-secttheme-warn",children:AX(a)})]})}function qR({value:e,onChange:o,followLabel:t,hint:r}){let{theme:a,setTheme:n}=fe(),s=vo(a),i=kX(OX),l=i?.tokenRef,d=i?.siteId??null,f=!i?.capabilities?.hasSiteTheme,{persist:u,flush:p}=Ki({themeFromDocument:f,tokenRef:l,siteId:d}),m=vo(s),h=m.themes,I=Wr(e),w=I!==null?h[I]:void 0,S=w??(h.length?Ci(m):void 0),[C,b]=KR(!1),[y,v]=KR(null),L=jR(null),A=jR(null),D=VR(),T=GR(()=>{b(!1),v(null)},[]),F=GR(()=>{!C&&y===null||(p(),T())},[C,y,T,p]);EX(L,F);let k=P=>{o(P),T()},_=P=>{if(y===null)return;let O=h.map((G,Z)=>Z===y?P:G),W={...m,themes:O};n(W),u({selected_preset:W.selected,theme_presets:W.themes})};return Jn("div",{className:"sf-secttheme",ref:L,children:[ko(_X,{label:c("Theme"),icon:ko(TX,{}),labelId:`${D}-label`,hint:r,children:ko(NR,{colors:S,onEdit:I!==null?()=>{v(I),b(!1)}:void 0,name:w?ed(I):c(t??xS),nameId:`${D}-value`,labelId:`${D}-label`,open:C,menuId:D,buttonRef:A,onClick:()=>{v(null),b(P=>!P)},onKeyDown:P=>{P.key==="Escape"&&(C||y!==null)&&(P.preventDefault(),T())}})}),C&&y===null&&ko("div",{onKeyDown:P=>{P.key==="Escape"&&(P.preventDefault(),T(),A.current?.focus())},children:ko(LX,{themes:h,value:I,onPick:k,onEdit:P=>{v(P),b(!1)},menuId:D,followLabel:t})}),y!==null&&h[y]&&ko(FX,{index:y,colors:h[y],onChange:_,onDone:()=>{p(),T(),A.current?.focus()}})]})}import{jsx as XR}from"react/jsx-runtime";import{useId as BX}from"react";import{FieldSelect as NX}from"efficient-easel/fields";import{SettingsField as DX}from"efficient-easel/panel";function MX(e){return e.map(({value:o,label:t,group:r,thumb:a,meta:n})=>({value:o,label:t,...r!==void 0?{group:r}:{},...a!==void 0?{thumb:a}:{},...n!==void 0?{meta:n}:{}}))}function fRe({label:e,options:o,fallback:t,value:r,onChange:a,placeholder:n,bare:s=!1,icon:i}){let l=BX(),d=`${l}-label`,f=`${l}-button`,u=r??"",p=o.some(w=>w.value===u)?u:t,m=c(e),h=n===void 0?void 0:c(n),I=XR(NX,{id:f,value:p,options:MX(o),onChange:a,placeholder:h,searchPlaceholder:h,...s?{ariaLabel:m}:{ariaLabelledBy:`${d} ${f}`},searchable:!0,groupCount:!0,inline:!0});return s?I:XR(DX,{label:m,labelId:d,icon:i,children:I})}import{jsx as es,jsxs as gZ}from"react/jsx-runtime";import{SettingsField as yL}from"efficient-easel/panel";import{LinkIcon as IZ}from"efficient-easel/icons";import{LinkPicker as yZ,TextLinkField as bZ}from"efficient-shell/ui";import{useEffect as IL,useMemo as Sm,useRef as SZ,useState as bm}from"react";import{currentEaselSession as HX}from"efficient-easel/screen/lib/session";function ZR(){return HX().auth.token}import{currentEaselSession as wZ}from"efficient-easel/screen/lib/session";import{useScreenDocument as CZ}from"efficient-easel/screen/components/ScreenDocumentContext";var WX=()=>({choosePage:c("Choose a page"),chooseSection:c("Choose a section"),noSections:c("No section anchors yet"),sectionHint:c("Jumps to a section on that page."),choosePost:c("Choose a post"),chooseProduct:c("Choose a product"),choosePopup:c("Choose a popup")});function JR(e,o,t){if(!e)return"page";if(BA(e))return"popup";if(e.startsWith("/journal/"))return"blog";if(MA(e))return"product";if(e.includes("#")){let r=e.slice(0,e.indexOf("#"));if(r===""||r==="/"||o.includes(r))return"anchor"}return e==="/"||o.includes(e)||t&&t.listingPaths.includes(t.targetOf(e))?"page":"custom"}function gS(e,o){let t=WX(),r=e.pages.map(f=>({value:Vc(f.slug),label:f.title})),a=o?.pageOptions?o.pageOptions(r):r,n=a.map(f=>f.value),s=e.pages.map(f=>({label:f.title,options:DA(...f.docs).map(u=>({value:ju(f.slug,u.slug),label:u.name}))})).filter(f=>f.options.length>0),i=f=>{switch(f){case"page":return{type:"select",options:a,placeholder:t.choosePage};case"anchor":return{type:"groups",groups:s,placeholder:s.length?t.chooseSection:t.noSections};case"blog":return{type:"select",options:e.posts.map(u=>({value:NA(u.slug),label:u.title||u.slug})),placeholder:t.choosePost};case"product":return{type:"select",options:e.products.map(u=>({value:u.href,label:u.name||u.href})),placeholder:t.chooseProduct};case"popup":return{type:"select",options:(e.popups??[]).map(u=>({value:FA(u.slug),label:u.title||u.slug})),placeholder:t.choosePopup};case"custom":return{type:"text"}}},l=LA(e.offers).map(f=>({value:f.value,label:c(f.label),target:i(f.value),...f.value==="anchor"?{hint:t.sectionHint}:{},...f.value==="blog"||f.value==="product"||f.value==="popup"?{hideWhenEmpty:!0}:{}}));if(!o)return{kinds:l,rules:{kindOf:f=>JR(f,n),targetOf:f=>f,readFilter:()=>null,withFilter:f=>f}};let d=f=>{let u=o.withFilter(f,null);return o.listingPaths.includes(u)?u:f};return{kinds:l,rules:{kindOf:f=>JR(f,n,{listingPaths:o.listingPaths,targetOf:d}),targetOf:d,readFilter:o.readFilter,withFilter:o.withFilter},filtersFor:f=>o.listingPaths.includes(f)?o.filtersFor(f):null}}import{useEaselSession as vZ}from"efficient-easel/screen/lib/session-context";function Ho(e,o){if(typeof e=="string")return e||o;if(e&&typeof e=="object"&&"text"in e){let t=e.text;return be(t)??o}return o}function QR(e,o){return Y(e)??o}function xa(e,o){return typeof e=="boolean"?e:o}function gm(e,o){if(!Array.isArray(e))return o;let t=e.map(r=>typeof r=="string"?r:Ho(r?.text,"")).map(r=>r.trim()).filter(Boolean);return t.length?t:o}var oL=["delay","scroll","exit"],tL=["all","chosen","except"],rL=["visit","days","never","once"],$X=["all","desktop","phone"],UX=["stop","continue"],aL={min:0,max:60},nL={min:10,max:90},sL={min:1,max:90},xr={autoOpen:!1,trigger:"delay",autoOpenDelaySec:15,scrollPercent:50,showOn:"all",showOnPages:[],devices:"all",hideAfter:"days",hideDays:7,afterSubmit:"stop",startDate:null,endDate:null};function At(e,o,t){return typeof o=="string"&&e.includes(o)?o:t}function Vi(e,o,t){let r=QR(e,t);return Math.min(o.max,Math.max(o.min,Math.round(r)))}function zX(e){return typeof e.hideAfter=="string"?At(rL,e.hideAfter,xr.hideAfter):e.oncePerSession===!0?"visit":e.oncePerSession===!1?"never":xr.hideAfter}function GX(e){return Array.isArray(e)?e.map(o=>typeof o=="string"?o.trim():"").filter(Boolean).map(o=>o.startsWith("/")?o:`/${o}`):[]}function eL(e){if(typeof e!="string")return null;let o=e.trim();return/^\d{4}-\d{2}-\d{2}$/.test(o)?o:null}function iL(e){let o=e??{},t=xr;return{autoOpen:xa(o.autoOpen,t.autoOpen),trigger:At(oL,o.trigger,t.trigger),autoOpenDelaySec:Vi(o.autoOpenDelaySec,aL,t.autoOpenDelaySec),scrollPercent:Vi(o.scrollPercent,nL,t.scrollPercent),showOn:At(tL,o.showOn,t.showOn),showOnPages:GX(o.showOnPages),devices:At($X,o.devices,t.devices),hideAfter:zX(o),hideDays:Vi(o.hideDays,sL,t.hideDays),afterSubmit:At(UX,o.afterSubmit,t.afterSubmit),startDate:eL(o.startDate),endDate:eL(o.endDate)}}import{parseHexColor as jX}from"efficient-shell/format";var gr="#000000";var IS="popup",KX=cO,VX=["auto","full"],YX=["inside","outside","none"],qX={min:240,max:1440},XX={min:0,max:100},od={placement:"center",fullWidth:!1,width:720,height:"auto",tintColor:gr,tintOpacity:60,outsideClick:!0,closeButton:"inside"};function ZX(e,o){let t=typeof e=="string"?e.trim():"";return t&&jX(t)===t.toLowerCase()?t:o}function yS(e,o=od){let t=e??{},r=o;return{placement:At(KX,t.placement,r.placement),fullWidth:xa(t.fullWidth,r.fullWidth),width:Vi(t.width,qX,r.width),height:At(VX,t.height,r.height),tintColor:ZX(t.tintColor,r.tintColor),tintOpacity:Vi(t.tintOpacity,XX,r.tintOpacity),outsideClick:xa(t.outsideClick,r.outsideClick),closeButton:At(YX,t.closeButton,r.closeButton)}}var lL="cart-drawer",LRe="cart-drawer",JX={kickerBadge:"",kickerText:"Your order",titleLead:"Your",titleAccent:"cart.",subtitleEmpty:"Empty for now.",subtitleOne:"One set in your cart.",subtitleMany:"{count} sets in your cart.",leadTimeValue:"",shipsToFallback:"",promises:[],emptyKicker:"No wheels yet",emptyBody:"Your cart is empty. Pick a wheel to get started."};function FRe(e,o){return o===0?e.subtitleEmpty:o===1?e.subtitleOne:e.subtitleMany.replace("{count}",String(o))}function BRe(e){let o=e??{},t=JX;return{kickerBadge:Ho(o.kickerBadge,t.kickerBadge),kickerText:Ho(o.kickerText,t.kickerText),titleLead:Ho(o.titleLead,t.titleLead),titleAccent:Ho(o.titleAccent,t.titleAccent),subtitleEmpty:Ho(o.subtitleEmpty,t.subtitleEmpty),subtitleOne:Ho(o.subtitleOne,t.subtitleOne),subtitleMany:Ho(o.subtitleMany,t.subtitleMany),leadTimeValue:Ho(o.leadTimeValue,t.leadTimeValue),shipsToFallback:Ho(o.shipsToFallback,t.shipsToFallback),promises:gm(o.promises,t.promises),emptyKicker:Ho(o.emptyKicker,t.emptyKicker),emptyBody:Ho(o.emptyBody,t.emptyBody)}}var QX=["right","left"],eZ={...od,width:520,tintOpacity:68};function NRe(e){let o=e??{};return{...yS(o,eZ),placement:At(QX,o.placement,"right"),height:"full",fullWidth:!1,autoOpen:xa(o.autoOpen,!0)}}var dL="consent-banner",WRe="consent-banner";var oZ=[{value:"bar",label:"Bar"},{value:"card",label:"Card"}],$Re="Layout",cL={layout:"bar"},tZ=e=>oZ.some(o=>o.value===e);function URe(e){let o=Ho((e??{}).layout,cL.layout);return{layout:tZ(o)?o:cL.layout}}var zRe={...od,placement:"bottom-center",fullWidth:!0,width:440,tintOpacity:0,outsideClick:!1,closeButton:"none"};var rZ="consentWords",aZ=["eyebrow","notice","accept","reject","choose"];function bS(e){let o=(e??{})[rZ];return typeof o=="string"&&aZ.includes(o)?o:null}function SS(e){let o=e?.props;return o?bS(o)!==null?!0:Object.values(o).some(t=>Array.isArray(t)&&t.some(r=>r&&typeof r=="object"&&"props"in r&&SS(r))):!1}var nZ=["meta","eyebrow","heading","body","statName","statValue","formEyebrow","formHeading","formIntro","fieldLabel","option","finePrint","dismiss","doneHeading","doneBody"],KRe={meta:"Meta line",eyebrow:"Eyebrow",heading:"Heading",body:"Body",statName:"Stat name",statValue:"Stat value",formEyebrow:"Form eyebrow",formHeading:"Form heading",formIntro:"Form intro",fieldLabel:"Field label",option:"Option",finePrint:"Fine print",dismiss:"Dismiss link",doneHeading:"Success heading",doneBody:"Success message"},sZ={meta:"styleMeta",eyebrow:"styleEyebrow",heading:"styleHeading",body:"styleBody",statName:"styleStatName",statValue:"styleStatValue",formEyebrow:"styleFormEyebrow",formHeading:"styleFormHeading",formIntro:"styleFormIntro",fieldLabel:"styleFieldLabel",option:"styleOption",finePrint:"styleFinePrint",dismiss:"styleDismiss",doneHeading:"styleDoneHeading",doneBody:"styleDoneBody"},VRe={meta:{font:"--pp-meta-font",size:"--pp-meta-size"},eyebrow:{font:"--pp-eyebrow-font",size:"--pp-eyebrow-size"},heading:{font:"--pp-heading-font",size:"--pp-heading-size"},body:{font:"--pp-body-font",size:"--pp-body-size"},statName:{font:"--pp-statname-font",size:"--pp-statname-size"},statValue:{font:"--pp-statvalue-font",size:"--pp-statvalue-size"},formEyebrow:{font:"--pp-formeyebrow-font",size:"--pp-formeyebrow-size"},formHeading:{font:"--pp-formheading-font",size:"--pp-formheading-size"},formIntro:{font:"--pp-formintro-font",size:"--pp-formintro-size"},fieldLabel:{font:"--pp-fieldlabel-font",size:"--pp-fieldlabel-size"},option:{font:"--pp-option-font",size:"--pp-option-size"},finePrint:{font:"--pp-fineprint-font",size:"--pp-fineprint-size"},dismiss:{font:"--pp-dismiss-font",size:"--pp-dismiss-size"},doneHeading:{font:"--pp-doneheading-font",size:"--pp-doneheading-size"},doneBody:{font:"--pp-donebody-font",size:"--pp-donebody-size"}};function fL(e){let o={};for(let t of nZ){let r=na(e[sZ[t]]);r&&(o[t]=r)}return o}var pL={heading:"Join our email list",placeholder:"Email address",buttonLabel:"Subscribe"},iZ={lead:"We accept"},ym={...iZ,methods:[],size:"sm",align:"start",dataSource:Sp},Ir="site-footer";var XRe=Ir,ZRe={desktop:!0,tablet:!0,mobile:!0},JRe={desktop:!1,tablet:!1,mobile:!1},wS=1,uL=6,QRe=Array.from({length:uL-wS+1},(e,o)=>wS+o),Im={desktop:6,tablet:3,mobile:2},lZ={2:{desktop:2,tablet:2,mobile:1},3:{desktop:3,tablet:3,mobile:1},4:{desktop:4,tablet:2,mobile:2},5:{desktop:5,tablet:3,mobile:2},6:{desktop:6,tablet:3,mobile:2}},Qn=e=>Math.min(Math.max(Math.round(e),wS),uL);function eLe(e){if(typeof e=="number")return lZ[Qn(e)]??{desktop:Qn(e),tablet:Qn(e),mobile:Qn(e)};if(e&&typeof e=="object"){let o=e;return{desktop:Qn(o.desktop??Im.desktop),tablet:Qn(o.tablet??Im.tablet),mobile:Qn(o.mobile??Im.mobile)}}return{...Im}}var CS="subscribe-popup",lLe="subscribe-popup",cZ=[CS,Ir,lL,dL];function hL(e){return cZ.includes(e)}var dZ=["right","left"],fZ={metaLabel:"Meta label",issueLabel:"Label",issueNumber:"00",kicker:"Kicker",heading:`Main heading
|
|
2
|
-
*Highlight line*`,deck:"Add a sentence or two of supporting copy.",stats:[{label:"Label",value:"Value"},{label:"Label",value:"Value"},{label:"Label",value:"Value"},{label:"Label",value:"Value"}],formLabel:"Section label",formHeading:"Main heading *highlight*",formIntro:"Add a sentence or two of supporting copy.",firstNameLabel:"Field label",firstNamePlaceholder:"Placeholder",emailLabel:"Field label",emailPlaceholder:"Placeholder",interestsLabel:"Field label",interests:["Option one","Option two","Option three"],frequencyLabel:"Field label",frequencies:["Option one","Option two","Option three"],submitText:"Button label",finePrint:"Fine print",dismissText:"Dismiss link",emailInvalidText:"Enter a valid email address.",submitErrorText:"Could not subscribe right now. Please try again.",successHeading:"Main heading *highlight*",successBody:"Add a sentence or two of supporting copy \u2014 the {email} and {issue} tokens are substituted here.",keepBrowsingText:"Button label",autoOpen:xr.autoOpen,autoOpenDelaySec:xr.autoOpenDelaySec,formSlug:"",trigger:xr.trigger,scrollPercent:xr.scrollPercent,showOn:xr.showOn,showOnPages:[],hideAfter:xr.hideAfter,hideDays:xr.hideDays,formSide:"right",valuePanelOnPhone:!1,sectionAccent:void 0,sectionCorners:void 0,sectionCornerSides:void 0,textStyles:{}},lo=Ho,pZ=xa,xL=gm;function mL(e,o){if(e==null)return o;let t=r=>r.trim()?r:"";if(typeof e=="string")return t(e);if(typeof e=="object"&&"text"in e){let r=e.text;return typeof r=="string"?t(r):""}return o}function uZ(e,o){return Array.isArray(e)?xL(e,[]):o}function mZ(e,o){return Array.isArray(e)?e.map(t=>{let r=t??{};return{label:lo(r.label,""),value:lo(r.value,"")}}).filter(t=>t.label||t.value):o}function dLe(e){let o=e??{},t=fZ,r=iL(o);return{metaLabel:lo(o.metaLabel,t.metaLabel),issueLabel:mL(o.issueLabel,t.issueLabel),issueNumber:mL(o.issueNumber,t.issueNumber),kicker:lo(o.kicker,t.kicker),heading:lo(o.heading,t.heading),deck:lo(o.deck,t.deck),stats:mZ(o.stats,t.stats),formLabel:lo(o.formLabel,t.formLabel),formHeading:lo(o.formHeading,t.formHeading),formIntro:lo(o.formIntro,t.formIntro),firstNameLabel:lo(o.firstNameLabel,t.firstNameLabel),firstNamePlaceholder:lo(o.firstNamePlaceholder,t.firstNamePlaceholder),emailLabel:lo(o.emailLabel,t.emailLabel),emailPlaceholder:lo(o.emailPlaceholder,t.emailPlaceholder),interestsLabel:lo(o.interestsLabel,t.interestsLabel),interests:xL(o.interests,t.interests),frequencyLabel:lo(o.frequencyLabel,t.frequencyLabel),frequencies:uZ(o.frequencies,t.frequencies),submitText:lo(o.submitText,t.submitText),finePrint:lo(o.finePrint,t.finePrint),dismissText:lo(o.dismissText,t.dismissText),emailInvalidText:lo(o.emailInvalidText,t.emailInvalidText),submitErrorText:lo(o.submitErrorText,t.submitErrorText),successHeading:lo(o.successHeading,t.successHeading),successBody:lo(o.successBody,t.successBody),keepBrowsingText:lo(o.keepBrowsingText,t.keepBrowsingText),formSlug:typeof o.formSlug=="string"?o.formSlug.trim():t.formSlug,autoOpen:r.autoOpen,autoOpenDelaySec:r.autoOpenDelaySec,trigger:r.trigger,scrollPercent:r.scrollPercent,showOn:r.showOn,showOnPages:r.showOnPages,hideAfter:r.hideAfter,hideDays:r.hideDays,formSide:At(dZ,o.formSide,t.formSide),valuePanelOnPhone:pZ(o.valuePanelOnPhone,t.valuePanelOnPhone),sectionAccent:o.sectionAccent,sectionCorners:o.sectionCorners,sectionCornerSides:o.sectionCornerSides,textStyles:fL(o)}}function hZ(e,o=Math.random){for(;;){let t=`popup-${Math.floor(o()*2176782336).toString(36).padStart(6,"0")}`;if(!e.has(t))return t}}function xZ(e){return{root:{props:{title:e,kind:IS}},content:[],zones:{}}}function gL(e,o,t){return{slug:hZ(o,t),title:e,kind:kb,layout:xZ(e)}}function td(e){return e?.root?.props?.kind===IS}function bL(e){let o=new Map;return(t="")=>{let r=ZR(),a=o.get(t);if(!a||a.token===null&&r!==null){let n=r||!wZ().usesBridgedToken?e(r??"",t).catch(()=>[]):Promise.resolve([]);return o.set(t,{promise:n,token:r}),n}return a.promise}}var kZ=bL(async(e,o)=>{let t=o?{siteId:o}:void 0,{pages:r}=Ge();return r.linkTargets?r.linkTargets(t):(await r.list(t)).map(a=>({id:a.id,slug:a.slug,label:a.label,layout:null}))}),TZ=bL(async(e,o)=>await Ge().blog?.posts(o?{siteId:o}:void 0)??[]);function PZ({value:e,onChange:o,label:t="Link",data:r,filters:a}){let n=Sm(()=>gS(r,a),[r,a]),s=c(t);return es(yL,{label:s,icon:es(IZ,{}),children:es(yZ,{value:e,onChange:i=>o(i),kinds:n.kinds,rules:n.rules,filtersFor:n.filtersFor,label:s})})}function SL(){let{siteId:e,capabilities:o}=CZ(),{offersCommerce:t,hasBlog:r}=o,[a,n]=bm([]),[s,i]=bm([]),[l,d]=bm([]),[f,u]=bm(null),p=vZ().chrome,m=p?.products?.list,h=p?.linkFilters,I=h?void 0:p?.linkRow,w=SZ(!0);IL(()=>(w.current=!0,()=>{w.current=!1}),[]),IL(()=>{let b=!0;return kZ(e??void 0).then(y=>b&&w.current&&n(y)),r&&TZ(e??void 0).then(y=>b&&w.current&&i(y)),t&&m?.().then(y=>b&&w.current&&d(y)),t&&h?h.load(e).catch(()=>null).then(y=>b&&w.current&&u(()=>y)):u(null),()=>{b=!1}},[e,t,r,m,h]);let S=Sm(()=>({pages:a.filter(b=>!hL(b.slug)&&!td(b.layout)).map(b=>({slug:b.slug,title:b.label,docs:[b.layout]})),popups:a.filter(b=>b.slug===CS||td(b.layout)).map(b=>({slug:b.slug,title:b.label})),posts:r?s.map(b=>({slug:b.slug,title:b.title})):[],products:t?l.map(b=>({href:b.href,name:b.name})):[],offers:{offersCommerce:t,offersService:r}}),[a,s,l,t,r]),C=Sm(()=>f?f(S.pages):null,[f,S]);return{data:S,filters:C,pages:a,offersCommerce:t,HostLinkRow:I}}function OLe({label:e,icon:o,text:t,onTextChange:r,link:a,onLinkChange:n}){let{data:s,filters:i}=SL(),l=Sm(()=>gS(s,i),[s,i]),d=c(e);return es(yL,{label:d,icon:o,children:es(bZ,{label:d,text:t,onTextChange:r,link:a,onLinkChange:f=>n(f),kinds:l.kinds,rules:l.rules,filtersFor:l.filtersFor})})}function wL({value:e,onChange:o,label:t="Link"}){let r=typeof e=="string"?e:"",{data:a,filters:n,pages:s,offersCommerce:i,HostLinkRow:l}=SL(),d=a.pages.map(u=>Vc(u.slug)),f=i&&l&&(r==="/"||d.includes(r))?l:void 0;return gZ("div",{children:[es(PZ,{value:r,onChange:o,label:t,data:a,filters:n}),f&&es(f,{value:r,onChange:o,pages:s})]})}import{UiIcon as qF}from"efficient-easel/draw/client";import{phoneKey as HL,resolveViewValue as WZ,tabletKey as WL,viewKeyAt as os}from"efficient-easel/draw";import{SECTION_PAD_UNIT_KEY as UL,SITE_SIDE as $Z,convertLength as UZ,isLengthUnit as zZ,isSiteSide as zL,sideLengthAt as GZ,sideValueAt as jZ,withLength as _S}from"efficient-easel/screen/lib/content/length-units";import{convertLength as EZ,rowGrid as _Z}from"efficient-easel/screen/lib/content/length-units";var je={min:1e3,max:2e3,step:50,default:1600};function Yi(e){return{maxWidth:e,marginInline:"auto",width:"100%"}}var vS="--sf-site-width",$o=`var(${vS},${je.default}px)`,rd="100vw",FLe=`max-w-[${$o}]`,BLe=`max-w-[${je.default}px]`;function TL(e){return typeof e!="number"||!Number.isFinite(e)?je.default:Math.round(Math.min(Math.max(e,je.min),je.max))}function PL(e,o){let t=Mn(e,o,"size",je);if(t!==null)return{[vS]:t};let r=TL(e);return r===je.default?{}:{[vS]:`${r}px`}}var Wo={min:0,max:80,step:4,default:40,typedMax:Number.POSITIVE_INFINITY},kS="--sf-site-gutter",zt={min:0,max:24,step:4,typedMax:Number.POSITIVE_INFINITY},OZ=_Z({kind:"spacing"},"vw",Wo).max;function EL(e,o){return e<=o?`${e}px`:`min(${e}px, ${OZ}vw)`}var CL="--sf-site-gutter-phone",AZ="max-view-tablet:[--sf-site-gutter:var(--sf-site-gutter-phone)]!",RZ="max-view-wide:[&_[data-sf-line~=edge]:not([data-sf-line~=edge]_*)]:[--sf-site-gutter:var(--sf-site-gutter-phone)]",Rt=`var(${kS},${Wo.default}px)`,LZ=`px-[${Rt}]`;var Gr={md:`min(24px,${Rt})`,sm:`min(20px,${Rt})`,frame:`min(24px,${Rt})`,tabs:`min(16px,${Rt})`},NLe=[[`max-view-desktop:px-[${Gr.md}]`,"max-view-desktop:px-6"],[`max-view-desktop:px-[${Gr.tabs}]`,"max-view-desktop:px-4"],[`max-[960px]:px-[${Gr.frame}]`,"max-[960px]:px-6"],[`max-[900px]:px-[${Gr.md}]`,"max-[900px]:px-6"],[`max-view-wide:px-[${Gr.md}]`,"max-view-wide:px-6"],[`max-view-tablet:px-[${Gr.sm}]`,"max-view-tablet:px-5"],[`max-view-wide:px-[${Gr.sm}]`,"max-view-wide:px-5"],[`max-[640px]:px-[${Gr.sm}]`,"max-[640px]:px-5"],[`view-wide:px-[${Rt}]`,"view-wide:px-10"],[`max-view-tablet:px-[min(24px,${Rt})]`,"max-view-tablet:px-6"],[`max-view-wide:-mx-[min(20px,${Rt})]`,"max-view-wide:-mx-5"],[`max-view-tablet:-mx-[min(20px,${Rt})]`,"max-view-tablet:-mx-5"],[`-mx-[${Rt}]`,"-mx-10"],[LZ,"px-10"]];var _L="max-view-wide:px-[min(20px,var(--sf-site-gutter,40px))]";function Za(e){return FZ[e??"box"]}var vL="var(--sf-pad-site,var(--sf-box-g,var(--sf-site-gutter,40px)))",kL="[--sf-edge-g:var(--sf-pad-site)]",FZ={box:{className:"[--sf-pad-site:var(--sf-box-g,var(--sf-site-gutter,40px))] max-[960px]:[--sf-pad-site:min(24px,var(--sf-box-g,var(--sf-site-gutter,40px)))]",value:vL,edge:kL,frame:"max-[960px]:px-[min(24px,var(--sf-site-gutter,40px))]"},site:{className:"[--sf-pad-site:var(--sf-box-g,var(--sf-site-gutter,40px))] max-view-wide:[--sf-pad-site:min(20px,var(--sf-box-g,var(--sf-site-gutter,40px)))]",value:vL,edge:kL,frame:_L}},DLe=`mx-auto max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)] ${_L}`,OL="[--sf-box-g:var(--sf-site-gutter,40px)] [&>*]:[--sf-site-gutter:0px]";var AL="mx-auto max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)] max-view-desktop:px-[min(24px,var(--sf-site-gutter,40px))]";function wm(e){return typeof e!="number"||!Number.isFinite(e)?Wo.default:Math.round(Math.min(Math.max(e,Wo.min),Wo.typedMax))}function RL(e,o){let t=Mn(e,o,"spacing",Wo);if(t!==null)return{[kS]:t};let r=wm(e);return r===Wo.default?{}:{[kS]:EL(r,Wo.max)}}function Cm(e){return typeof e!="number"||!Number.isFinite(e)?null:Math.round(Math.min(Math.max(e,zt.min),zt.typedMax))}function LL(e){return typeof e=="number"&&Number.isFinite(e)?TL(e):null}function FL(e,o){let t=Mn(e,o,"spacing",zt);if(t!==null)return{[CL]:t};let r=Cm(e);return r===null?{}:{[CL]:EL(r,zt.max)}}function BL(e){return Cm(e)===null?"":`${AZ} ${RZ}`}function vm(e,o){let t=Xp(e,o,"spacing",Wo),r=t===null?wm(e):EZ(t,_e(o),"px","mobile",zt);return Math.min(zt.max,r)}var NL=$o,MLe=`max-w-[${NL}]`,HLe=`max-w-[min(var(--sf-page-cap,${je.default}px),${je.default}px)]`,km="--sf-hero-cap",BZ=`var(${km},none)`,WLe=`max-w-[${BZ}]`,NZ="--sf-hero-bleed-m",DZ="--sf-hero-bleed-w",TS="--sf-hero-chrome-x",PS="--sf-hero-chrome-cap";function Tm(e){return e===!0?{[km]:NL,[NZ]:"auto",[DZ]:"100%",[TS]:"24px",[PS]:"none"}:{}}var ES=`calc(${$o} - ${Rt}*2)`,$Le=`max-w-[${ES.replace(/ /g,"_")}]`;var MZ="--sf-chrome-cap",HZ=`var(${MZ},${ES})`,DL="data-page-width";function ML(e){return e==="full"?"full":null}function ULe(e){return e==="full"?null:Yi(e==="content"?ES:HZ)}function zLe(e){if(e==="full")return"full";if(e==="content")return"content"}var Gt={min:10,max:200,step:10};function KZ(e,o,t,r=0){let a=Y(e),n=Y(o);if(a===void 0&&n===void 0)return;let s=Pm(t),i=l=>l===void 0?void 0:s==="px"?l:_S(l,s,r);return{paddingTop:i(a),paddingBottom:i(n)}}var Pm=e=>_e(e),VZ="sf-pad-top-phone",YZ="sf-pad-bottom-phone",qZ="--sf-pad-t-phone",XZ="--sf-pad-b-phone",ZZ="sf-pad-left-phone",JZ="sf-pad-right-phone",QZ="--sf-pad-l-phone",eJ="--sf-pad-r-phone",oJ="sf-pad-top-tablet",tJ="sf-pad-bottom-tablet",rJ="sf-pad-left-tablet",aJ="sf-pad-right-tablet",nJ="--sf-pad-t-tablet",sJ="--sf-pad-b-tablet",iJ="--sf-pad-l-tablet",lJ="--sf-pad-r-tablet",GL="sf-section-pad";function ad(e){let o={desktop:e.unit,tablet:e.unitTablet,phone:e.unitPhone},t=KZ(e.top,e.bottom,e.unit,e.frame),r=nd({left:e.left,right:e.right},{top:e.topPhone,bottom:e.bottomPhone,left:e.leftPhone,right:e.rightPhone},{top:e.topTablet,bottom:e.bottomTablet,left:e.leftTablet,right:e.rightTablet},{top:e.top,bottom:e.bottom,left:e.left,right:e.right},o,e.frame,e.sideSpace);return t===void 0&&!r.classes.length&&!Object.keys(r.style).length?null:{className:[GL,...r.classes].join(" "),style:{...t,...r.style}}}var cJ=e=>zL(e)?e:Y(e),dJ=[["top","paddingTop",[oJ,nJ],[VZ,qZ]],["bottom","paddingBottom",[tJ,sJ],[YZ,XZ]],["left","paddingLeft",[rJ,iJ],[ZZ,QZ]],["right","paddingRight",[aJ,lJ],[JZ,eJ]]];function $L(e,o,t){return!zZ(o)||o==="px"?e:UZ(e,"px",o,t,{min:0,max:Gt.max,step:1})}function fJ(e,o,t,r={},a=0){let n=(m,h)=>{if(h==="px")return`${m}px`;let I=_S(m,h,a);return typeof I=="number"?`${I}px`:I},s={n:e,[WL("n")]:o,[HL("n")]:t,u:r.desktop,[WL("u")]:r.tablet,[HL("u")]:r.phone},i=WZ("spacing",Y(e),Y(o),Y(t),xi()),l=(m,h,I)=>{if(jZ(s,{side:"n"},m,"side",["side"])?.value===$Z)return Za().value;let w=GZ(s,{side:"n"},"u",m,"side");if(!w)return;let S=h!==null&&!I&&w.unit==="px"&&typeof i[h]=="number";return n(S?i[h]:w.value,w.unit)},d=l("desktop",null,!0),f={},u=l("tablet","tablet",o!==void 0);u!==void 0&&(o!==void 0||u!==d)&&(f.tablet=u);let p=l("mobile","phone",t!==void 0);return p!==void 0&&(t!==void 0||p!==d)&&(f.phone=p),f}function nd(e,o,t={},r=e,a={},n=0,s="box"){let i={},l={},d=[],f=Za(s),u=!1;for(let[p,m,...h]of dJ){let I=p==="left"||p==="right"?cJ:Y,w=I(e[p]),S=p==="top"||p==="bottom"?n:0;zL(w)?(i[m]=f.value,u=!0):w!==void 0&&(i[m]=Pm(a.desktop)==="px"?w:_S(w,Pm(a.desktop),S));let C=fJ(I(r[p]),I(t[p]),I(o[p]),a,S);for(let[b,[y,v]]of[["tablet",h[0]],["phone",h[1]]]){let L=C[b];L!==void 0&&(d.push(y),l[v]=L,L===f.value&&(u=!0))}}return u&&d.push(...f.className.split(" ")),{classes:d,style:{...i,...l}}}var jr={top:"padTop",bottom:"padBottom",left:"padLeft",right:"padRight"},ts="padUnit";function sd(e,o){let t=e[ts],r=(a,n,s)=>{let i=Y(a)??(s===void 0?void 0:$L(s,t,"desktop")),l=Y(n);return l===void 0?i:(i??0)+$L(l,t,"desktop")};return{top:r(e.padTop,e.sectionPaddingTop,o.top),bottom:r(e.padBottom,e.sectionPaddingBottom,o.bottom)}}function jL(e,o,t={}){let r=sd(e,o),a={...AS(e,jr,!0,ts),top:r.top,bottom:r.bottom};t.noTop&&Object.assign(a,{top:0,topTablet:void 0,topPhone:void 0});let n=ad(a),s=n?n.className.split(" ").filter(i=>i!==GL):[];return{...s.length?{className:s.join(" ")}:{},style:n?.style??{}}}var ga={top:"sectionPaddingTop",bottom:"sectionPaddingBottom",left:"sectionPaddingLeft",right:"sectionPaddingRight"},OS=[...["top","bottom","left","right"].map(e=>[jr[e],ga[e]]),[ts,UL]].flatMap(([e,o])=>[[e,o],...["tablet","mobile"].map(t=>[os(e,t),os(o,t)])]);function AS(e,o=ga,t=!0,r=o===ga?UL:void 0){let a={};if(r){e[r]!==void 0&&(a.unit=e[r]);for(let n of["tablet","mobile"])e[os(r,n)]!==void 0&&(a[os("unit",n)]=e[os(r,n)])}for(let n of t?["top","bottom","left","right"]:["top","bottom"]){a[n]=e[o[n]];for(let s of["tablet","mobile"])a[os(n,s)]=e[os(o[n],s)]}return a}function KL(e){return ad(e)}function VL(e,o){let t=(r,a)=>typeof r!="number"?void 0:Pm(a)==="px"?r+o:r;return ad({...e,frame:o,top:t(e.top,e.unit),bottom:t(e.bottom,e.unit),topTablet:t(e.topTablet,e.unitTablet),bottomTablet:t(e.bottomTablet,e.unitTablet),topPhone:t(e.topPhone,e.unitPhone),bottomPhone:t(e.bottomPhone,e.unitPhone)})}import{BUTTON_PAD_KEYS as Em,buttonBorderOf as pJ,buttonFillOpacityOf as uJ,buttonPadSidesOf as mJ,viewKeyAt as hJ}from"efficient-easel/draw";import{BUTTON_PAD_UNIT_KEY as RS,lengthOf as xJ}from"efficient-easel/screen/lib/content/length-units";var gJ="px-6 py-4",IJ=4,_m=e=>{let o=new RegExp(`\\bp${e}-(?:\\[(\\d+)px\\]|(\\d+))`).exec(gJ);if(!o)throw new Error(`BUTTON_PAD_CLASSES has no p${e}`);return o[1]!==void 0?Number(o[1]):Number(o[2])*IJ},nFe={top:_m("y"),right:_m("x"),bottom:_m("y"),left:_m("x")},qL="var(--btn)";function yJ(e){let o=e.variant==="ghost",t=uJ(e.buttonFillOpacity),r=pJ(e.buttonBorder),a=be(e.buttonColor);return{fillOpacity:t??(o?0:100),border:{width:r?.width??1,color:r?.color??a??(o?"currentColor":qL)},changed:t!==void 0||r!==void 0}}function sFe(e){let o=yJ(e);if(!o.changed)return null;let t=be(e.buttonColor)??qL;return{background:o.fillOpacity===0?"transparent":o.fillOpacity===100?t:`color-mix(in srgb, ${t} ${o.fillOpacity}%, transparent)`,borderWidth:xJ(o.border.width,_e(e.buttonBorderUnit)),borderStyle:"solid",borderColor:o.border.color}}var bJ="var(--sf-button-radius, 0)";function iFe(e){let o=Y(e.buttonCorners),t=$r(e.buttonCornerSides);if(o===void 0&&t===null)return null;let r=o===void 0?bJ:Me(Math.max(0,o),e.buttonCornersUnit);return{borderRadius:t===null?r:Gn(r,t)}}function lFe(e){let o=(s,i)=>e[hJ(s,i)],t=s=>mJ({top:o(Em.top,s),right:o(Em.right,s),bottom:o(Em.bottom,s),left:o(Em.left,s)})??{},r={desktop:o(RS,"desktop"),tablet:o(RS,"tablet"),phone:o(RS,"mobile")},{classes:a,style:n}=nd(t("desktop"),t("mobile"),t("tablet"),void 0,r);return Object.keys(n).length?{className:a.join(" "),style:n}:null}var YL="upper";function XL(e,o,t){let r=e&&typeof e=="object"?e:{},a=be(r.textStyle),n=a?be(o?.find(f=>f?.id===a)?.name):void 0,s=a?/^(heading|body)-(\d+)$/.exec(a):null,i=a?n||(s?t.styleName({kind:s[1],n:Number(s[2])}):a):t.noStyle,{cases:l}=t,d=be(r.case)??YL;return`${i} \xB7 ${l[d]??l[YL]}`}import{usePreviewParts as Iee}from"efficient-easel/draw/client";import{encodePartId as yee}from"efficient-easel/draw";import{DEFAULT_EASEL_STRINGS as bee,useEaselStrings as See}from"efficient-easel/strings";import{PIN_STICK_VAR as SJ,PIN_TRACK_POSITION_VAR as wJ,pinAttrs as ZL,pinStickVars as CJ,readPin as BS}from"efficient-shell/format";var mFe="Stick to top",jt={min:0,max:200,step:4,fallback:0},id={kind:"position",unitKey:"stickTopDistanceUnit"},JL=wi(id),[vJ,kJ,TJ]=JL,NS="Pin while scrolling",QL="Scroll",yr={distance:"--sf-pin-distance",position:"--sf-pin-position",on:"--sf-pin-on",length:"--sf-pin-length",stick:"--sf-pin-stick",trackPosition:"--sf-pin-track-position",header:"--sf-pin-header"},br="stickTopScreens",DS=[br,"stickTopScreensTablet","stickTopScreensPhone"],MS="Screens",rs="stickTopStop",Ja="screen",eF="Pin stops at",oF=[{value:"header",label:"Under the header"},{value:Ja,label:"Screen top"}],tF="header",rF="Under the header: the section stops below the site header. Screen top: it stops at the top edge of the screen, under a see-through header.";function HS(e){return e===Ja?Ja:"header"}function aF(e){return e===Ja?Ja:void 0}var Qa="stickAbove",nF="Stays above",sF="On: the pinned box stays on top, and the sections after it scroll under it.";function PJ(e){return e.stickAbove===!0}var iF=["stickTop","stickTopDistance","stickTopTablet","stickTopDistanceTablet","stickTopPhone","stickTopDistancePhone",...JL,...DS,rs,Qa],WS=new Set(["IntroBleed"]),lF=new Set(["CategoryBar","DocTabs","Contents"]);function EJ(e){return typeof e.stickTop=="boolean"?e.stickTop:e.sticky!==!1}var LS=e=>BS(!0,e).length,qi={any:["stickTop","stickTopTablet","stickTopPhone"].map(e=>({field:e,is:!0}))},Om={all:[{not:{field:"stickTop",in:[!0,!1]}},{not:{field:"sticky",is:!1}}]};function FS(e,o="px"){let t=Y(e)??jt.fallback;return o!=="px"?Math.max(jt.min,t):Math.min(jt.max,Math.max(jt.min,Math.round(t)))}function $S(e){return typeof e.stickTopTablet=="boolean"}function US(e){return typeof e.stickTopPhone=="boolean"}function Xi(e,o={}){let t=o.intro?EJ(e):e.stickTop===!0,r=e,a=_e(r[vJ]),n=FS(e.stickTopDistance,a),s=LS(e.stickTopScreens),i=$S(e),l=i?e.stickTopTablet===!0:t,d=i?_e(r[kJ]):a,f=i?FS(e.stickTopDistanceTablet,d):n,u=i?LS(e.stickTopScreensTablet):s,p=US(e),m=p?e.stickTopPhone===!0:l,h=p?_e(r[TJ]):d,I=p?FS(e.stickTopDistancePhone,h):f,w=p?LS(e.stickTopScreensPhone):u;return{desktop:t,desktopDistance:n,desktopUnit:a,desktopScreens:s,tablet:l,tabletDistance:f,tabletUnit:d,tabletScreens:u,ownTablet:i,phone:m,phoneDistance:I,phoneUnit:h,phoneScreens:w,ownPhone:p}}function zS(e,o={}){let t=Xi(e,{intro:o.atScreenTop});if(!t.desktop&&!t.tablet&&!t.phone)return null;let r=o.atScreenTop===!0&&typeof e.stickTop!="boolean",a=t.desktop&&t.desktopScreens>0||t.tablet&&t.tabletScreens>0||t.phone&&t.phoneScreens>0,n=o.above===!0&&PJ(e),s=o.track===!0&&!r&&a&&!n,i=(u,p,m,h)=>qn({tabletClass:"",tabletVar:`${u}-tablet`,phoneClass:"",phoneVar:`${u}-phone`},p,m,h).style,l={...o.atScreenTop||HS(e.stickTopStop)===Ja?{[yr.header]:"0px"}:{},[yr.distance]:Me(t.desktopDistance,t.desktopUnit),...i(yr.distance,Me(t.desktopDistance,t.desktopUnit),Me(t.tabletDistance,t.tabletUnit),Me(t.phoneDistance,t.phoneUnit))};if(s){let u=m=>m?"1":"0",p={...l,...t.desktop?{}:{[yr.on]:"0"},...i(yr.on,u(t.desktop),u(t.tablet),u(t.phone)),[yr.length]:String(t.desktopScreens),...i(yr.length,String(t.desktopScreens),String(t.tabletScreens),String(t.phoneScreens)),..._J(t.desktop&&t.desktopScreens===0,t.tablet&&t.tabletScreens===0,t.phone&&t.phoneScreens===0,i)};return{attrs:ZL(BS(!0),"track").attrs,style:p}}let d=u=>u?"sticky":"static",f={...l,...t.desktop?{}:{[yr.position]:"static"},...i(yr.position,d(t.desktop),d(t.tablet),d(t.phone))};return{attrs:ZL(BS(!0),"stick",n?{above:n}:{}).attrs,style:f}}function _J(e,o,t,r){let a=[[yr.stick,SJ],[yr.trackPosition,wJ]],[n,s,i]=[e,o,t].map(CJ);return Object.fromEntries(a.flatMap(([l,d])=>[...e?[[l,n[d]]]:[],...Object.entries(r(l,n[d],s[d],i[d]))]))}var OJ=["column","row","tabs","accordion"];var AJ={column:"Stacked",row:"One row",tabs:"Tabs",accordion:"Accordion"},cF={Flex:OJ,HeroGroup:["column","row"]},RJ={Flex:"row",HeroGroup:"column"},LJ={column:"flex-col",row:"flex-row",tabs:"flex-col",accordion:"flex-col"};function Kr(e,o){return cF[e].includes(o)?o:RJ[e]}function xFe(e,o){return LJ[Kr(e,o)]}function dF(e){return cF[e].map(o=>({label:AJ[o],value:o}))}import{viewKeyAt as GS}from"efficient-easel/screen/lib/content/view-tiers";var Rm=20,FJ=["solid","dashed","dotted"],Lm=["top","right","bottom","left"],Fm="sf-section-border",pF="sf-section-border-self",BJ=/^#(?:[0-9a-f]{3}|[0-9a-f]{4}|[0-9a-f]{6}|[0-9a-f]{8})$/i,NJ=e=>typeof e=="number"&&Number.isFinite(e)?`${Math.min(Rm,Math.max(0,Math.round(e)))}px`:void 0,ld={kind:"border",unitKey:"sectionBorderUnit"},uF=wi(ld);function mF(e){let o=ld.unitKey;return{desktop:e[GS(o,"desktop")],tablet:e[GS(o,"tablet")],phone:e[GS(o,"mobile")]}}var fF=(e,o)=>o==="px"?NJ(e):typeof e=="number"&&Number.isFinite(e)?Me(Math.max(0,e),o):void 0;function Am(e,{phone:o=!1,tablet:t=!1,unit:r}={}){if(!e||typeof e!="object")return;let a=o?"-phone":t?"-tablet":"",n={},s=_e(r);for(let i of Lm){let l=fF(e[i],s)??fF(e.width,s);l!==void 0&&(n[`--sf-border-${i}-width${a}`]=l)}return typeof e.style=="string"&&FJ.includes(e.style)&&(n[`--sf-border-style${a}`]=e.style),typeof e.color=="string"&&BJ.test(e.color)&&(n[`--sf-border-color${a}`]=e.color.toLowerCase()),Object.keys(n).length?n:void 0}function jS(e){let{width:o,...t}=e;return typeof o!="number"?e:{...t,...Object.fromEntries(Lm.map(r=>[r,t[r]??o]))}}function hF(e,o,t,r={}){let a=Am(e,{unit:r.desktop}),n=Am(t,{tablet:!0,unit:r.tablet}),s=Am(t,{phone:!0,unit:r.tablet}),i=Am(o,{phone:!0,unit:r.phone}),l=s||i?{...s,...i}:void 0;return a||n||l?{...a,...n,...l}:void 0}var Bm="sf.gapContainer",Ia={min:-32,max:64,step:2},wF={Grid:{sm:12,md:24,lg:40},Flex:{sm:12,md:24,lg:40},FooterGroup:{sm:8,md:16,lg:32},HeroGroup:null,Events:null,GalleryB:null,ProductGrid:null},Zi={Grid:24,Flex:24,FooterGroup:16,HeroGroup:0,Events:24,GalleryB:8,ProductGrid:2},DJ=new Set(["Events","GalleryB"]);function as(e,o,t){if(typeof o=="number"&&Number.isFinite(o)&&o>=Ia.min)return o;if(typeof o=="string"){let r=wF[e]?.[o];if(typeof r=="number")return r}return typeof t=="number"&&Number.isFinite(t)?t:Zi[e]}var MJ="sf-gap-overlap",HJ="--sf-gap-overlap",KS="--sf-block-gap",xF="--sf-block-gap-rem",Kt={min:0,max:Ia.max,step:Ia.step};function cd(e){if(typeof e!="number"||!Number.isFinite(e))return null;let o=Math.min(Math.max(Math.round(e),Kt.min),Kt.max);return o-o%Kt.step}function CF(e,o){let t=Mn(e,o,"gap",Kt);if(t!==null)return{[KS]:t,[xF]:t};let r=cd(e);return r===null?{}:{[KS]:`${r}px`,[xF]:`${r/16}rem`}}var gF="--sf-block-gap-phone",IF="--sf-block-gap-phone-rem",WJ="--sf-block-gap-on-phone",$J="max-view-tablet:[--sf-block-gap-on-phone:var(--sf-block-gap-phone)]",UJ="max-view-wide:[&_[data-sf-line~=edge]:not([data-sf-line~=edge]_*)]:[--sf-block-gap-on-phone:var(--sf-block-gap-phone)]";function vF(e,o){let t=Mn(e,o,"gap",Kt);if(t!==null)return{[gF]:t,[IF]:t};let r=cd(e);return r===null?{}:{[gF]:`${r}px`,[IF]:`${r/16}rem`}}function kF(e){return cd(e)===null?"":`${$J} ${UJ}`}var yF="sf-gap-zone",bF="--sf-gap-len";function Nm(e,o){return typeof o=="number"&&Number.isFinite(o)&&o>=Ia.min?!0:typeof o=="string"&&typeof wF[e]?.[o]=="number"}var SF="--sf-gap-len-phone",zJ="--sf-gap-len-tablet",dd={min:0,max:Ia.max,step:Ia.step};function en(e){return typeof e=="number"&&Number.isFinite(e)&&e>=dd.min}function VS(e){return e/2}function YS(e,o,t){return en(t)&&!Nm(e,o)}function qS(e,o,t,r,a){return en(o)?o:YS(e,t,a)?a:VS(as(e,t,r))}var GJ={block:"sf-gap-overlap-block",inline:"sf-gap-overlap-inline",both:"sf-gap-overlap-both"};function wFe(e,o,t,r,a){let n={...en(r)?{[SF]:`${r}px`}:null,...en(a)?{[zJ]:`${a}px`}:null};if(!Nm(e,o)){let i=`${Zi[e]}px`,l=DJ.has(e)?`var(--sf-card-gap, ${i})`:i;return{className:` ${yF}`,style:{[bF]:`var(${KS}, ${l})`,[SF]:`var(${WJ})`,...n}}}let s=as(e,o);return s>=0?{className:` ${yF}`,style:{[bF]:`${s}px`,...n}}:{className:` ${MJ} ${GJ[t]}`,style:{gap:"0px",[HJ]:`${-s/2}px`}}}import{parseHexColor as jJ}from"efficient-shell/format";var ot="var(--section-bg)",fd="inherit";function Vr(e,o){return e===fd?ot:e===void 0?o:Dm(e)}var KJ=/var\(\s*--(surface-2|surface|line)\s*(?=[,)])/g;function Dm(e){let o=zr(e);return o?pa(o):e.replace(KJ,"var(--site-$1")}var VJ={"var(--section-bg)":"band","var(--site-surface)":"surface","var(--site-surface-2)":"surface2"};function XS(e,o,t){let r=Vr(e,o);if(!r||r==="transparent")return t.background.toLowerCase();let a=r.trim(),n=a.startsWith("#")?jJ(a):null;if(n)return n.toLowerCase();let s=VJ[a.replace(/\s+/g,"")];return(s?t[s]:t.background).toLowerCase()}var ZS="transparent";function TF(e,o){let t=Vr(e,o);return!t||t===ZS?"none":t===ot?"band":null}function PF(e,o,t=o){let r=n=>!n||n==="transparent",a=Vr(e,o);return a===t||r(a)&&r(t)}var EF=["transparent","var(--wheel-stage)","var(--surface)","var(--surface-2)"],_F={transparent:"No fill","var(--wheel-stage)":"Image stage","var(--surface)":"Panels and cards","var(--surface-2)":"Second surface"},Ji="var(--wheel-stage)",Mm="transparent",pd="inherit";function EFe(e,o){return Dm(JS(e,o))}function JS(e,o){return e===pd?Ji:e==null?o:e===!0?Ji:e===!1?Mm:e}function _Fe(e){return typeof e=="string"&&e!==pd?Dm(e):Ji}function OFe(e){return e!==Mm&&e!=="none"&&e!==""}function OF(e,o){return e===pd||e===!0?!0:e==null?o===Ji:!1}var ns="inherit",Hm="fixed",AF=e=>typeof e!="number"&&e!==Hm,YJ="var(--sf-heading-max, 9999px)";function LFe(e,o,t,r,a){if(typeof e=="number")return Me(e,a);if(e===Hm)return o;let n=r?`var(--size-${r}, ${o})`:o;return t==="heading"?`min(${n}, ${YJ})`:n}var QS={kind:"fontSize",unitKey:"titleSizeUnit"},ew={kind:"fontSize",unitKey:"bodySizeUnit"},qJ=["desktop","mobile"],RF=[QS,ew].flatMap(e=>wi(e,qJ));function ow(e){let o=(t,r)=>S_(e,t,r);return{titleDesktop:o(QS,"desktop"),titleMobile:o(QS,"mobile"),bodyDesktop:o(ew,"desktop"),bodyMobile:o(ew,"mobile")}}var XJ=["page","full"],LF=["full","page"],ss={full:"Full",page:"Content"},tw="inherit",ZJ=e=>typeof e=="string"&&XJ.includes(e),JJ=e=>e===tw;function Wm(e,o){return JJ(e.widthMode)?{mode:"full",inherited:!0}:ZJ(e.widthMode)?{mode:e.widthMode,inherited:!1}:{mode:o,inherited:o==="full"}}function MFe(e){return Wm(e,"page").mode==="full"}var el={CustomHTML:"rawMarkup",Hero:"hero",HeroSingle:"hero",IntroBleed:"scrollOver",SpecStrip:"background",Timeline:"background",Footprint:"background",Prose:"background",ParagraphsA:"background",Cards:"background",KeyFeatures:"background",Chart:"background",Mockup:"background",Testimonials:"background",TitleWithButtons:"background",Countdown:"background",DocMasthead:"background",DocBody:"background",DocMetaCards:"background",Gallery:"background",GalleryB:"background",Reviews:"background",ReviewForm:"background",Form:"background",AppointmentBooking:"background",FAQ:"background",Events:"background",Split:"both",Breadcrumb:"both",Collections:"both",CatalogFilterBar:"both",AlloyWheelsListing:"both",Banner:"contained",Stats:"contained",Logos:"contained",Divider:"contained",OrderSummary:"contained",DeliveryOptions:"contained",PaymentBadges:"contained",CheckoutCTA:"contained",Flex:"contained",Grid:"contained",ContactCards:"contained",MessagingCards:"contained",OpeningHours:"contained",RateTable:"contained",Manifesto:"contentColumn",SectionHeader:"contentFull",ProductHero:"contentFull",ProductGrid:"productGrid",TimelineTrack:"capped",DetailRows:"capped",FitmentTable:"capped",TyreSizes:"capped",TyreFitment:"capped",EuTyreLabel:"capped",BundleOffer:"capped",CompatibleTyres:"capped",RelatedProducts:"capped",ProcessSteps:"capped",StatsParagraph:"capped",Masthead:"capped",FeaturedCover:"capped",LongRead:"capped",Series:"capped",ContactLocations:"capped",FitmentFinder:"capped",SpecTable:"capped",Subscribe:"capped",SubscribeBlogs:"capped",ContactRouting:"capped",SubmitBuild:"capped"};function $m(e){return He(el,e)}var Fe={background:"sectionBackgroundWidth",content:"sectionContentWidth",contentMax:"sectionContentMax",contentMaxUnit:"sectionContentMaxUnit"},rw={kind:"size",unitKey:Fe.contentMaxUnit};function is(e){let o=e[Fe.contentMaxUnit],t=_e(o),r=e[Fe.contentMax],a=t==="px"?LL(r):typeof r=="number"&&Number.isFinite(r)&&r>0?r:null,n=Qi(e[Fe.content])??(a===null?null:"content");return{background:Qi(e[Fe.background]),content:n,contentMax:n==="content"?a:null,contentMaxUnit:t}}function FF(e){let o=is(e);return o.content===null&&e.fullWidth===!0?{...o,content:"full"}:o}function BF(e){return e.background!==null||e.content!==null}var NF=e=>({[Fe.background]:e}),DF=e=>e==="full"?{[Fe.content]:e,[Fe.contentMax]:void 0,[Fe.contentMaxUnit]:void 0}:{[Fe.content]:e},MF=e=>({[Fe.content]:"content",[Fe.contentMax]:e}),aw=e=>e==="background"?{[Fe.background]:void 0}:{[Fe.content]:void 0,[Fe.contentMax]:void 0,[Fe.contentMaxUnit]:void 0},HF="siteWidths",QJ=e=>e==="full"||e==="content";function Qi(e){return QJ(e)?e:null}function WF(e,o){return{[HF]:{background:Qi(e),content:Qi(o)}}}function Um(e){let o=e.editor?.metadata?.[HF];return{background:Qi(o?.background),content:Qi(o?.content)}}import{useEaselSession as wee}from"efficient-easel/screen/lib/session-context";import{BOX_GAP as Cee,describedAs as rn,group as Yt,iconOf as ds,sharedStyleKinds as Id}from"efficient-easel/screen/lib/document/box-fields";import{VIEW_KEY_ACCESS as gB,onDesktopWords as fs,phoneTwinFields as gw,saidAlignmentGrid as vee,useLengthUnit as kee}from"efficient-easel/screen/lib/document/box-fields";import{createElement as Vt}from"react";import{SettingsDefaultReset as eQ,SettingsField as oQ}from"efficient-easel/panel";import{boxFieldBuilders as tQ,describedAs as rQ,iconOf as aQ,onDesktopWords as nQ}from"efficient-easel/screen/lib/document/box-fields";import{LENGTH_KIND_UNITS as sQ}from"efficient-easel/screen/lib/content/length-units";import{IconPicker as iQ,Tooltip as lQ,useShellStrings as cQ}from"efficient-shell/ui";import{RotateIcon as dQ}from"efficient-easel/icons";var zm=e=>c(e),ya=sQ,Ao=tQ(zm,{lengthUnits:ya}),Ro=Ao.slider,pt=Ao.select,ud=Ao.Segmented,ol=Ao.segmented,YFe=Ao.alignmentField,qFe=Ao.alignmentFields,XFe=Ao.blockAlignmentField,ZFe=Ao.blockAlignmentFields,JFe=Ao.boxJustifyField,QFe=Ao.boxAlignField,eBe=Ao.boxWrapField,$F=Ao.directionField,Gm=Ao.gapField,oBe=Ao.placementField,tBe=Ao.PlacementGridView,rBe=Ao.positionFields,tl=Ao.sidesPaddingFields,ls=Ao.lengthUnitFields;function UF(e,o){return Ro("Angle",Vt(dQ),_p.min,_p.max,_p.step,e,"\xB0",o)}var nw=Symbol("efficient-web-builder.picture-picker-row"),fQ={width:"3.5rem",height:"2.75rem",words:!0};function sw({value:e}){return cQ().iconNames[e]??e}function iw(e,o,t){return Vt(lQ,{content:t,className:"sf-pick-tip",children:Vt("span",{className:"sf-pick"},Vt("span",{className:"sf-pick-pic"},e),Vt("span",{className:"sf-pick-cap"},o))})}function pQ(e){let o=t=>t.label===void 0?Vt(sw,{value:t.value}):c(t.label);return e.map(t=>({value:t.value,...t.label===void 0?{}:{label:c(t.hint??t.label)},icon:iw(t.picture,o(t),t.hint===void 0?o(t):c(t.hint))}))}function zF(e,o){return Vt("span",{className:"sf-pick"},Vt("span",{className:"sf-pick-pic"},e),Vt("span",{className:"sf-pick-cap sf-pick-cap-closed"},o))}function lw(e,o,t,r,a={}){let n=l=>t.some(d=>d.value===l),s=l=>a.resolve?a.resolve(l):n(l)?l:void 0,i=t.map(l=>({value:l.value,...l.label===void 0?{}:{label:l.label},...l.showWhen?{showWhen:l.showWhen}:{}}));return{type:"custom",[nw]:!0,...rQ({},{type:"radio",label:e,options:i}),options:i,render:l=>{let{value:d,onChange:f,field:u}=l,p=u?.options,m=pQ(t.filter(y=>!p||p.some(v=>v.value===y.value))),h="follows"in l,I=h?s(a.phoneRest?a.phoneRest(l.follows):l.follows)??r:void 0,w=u?.currentValue,S=s(d)??I??s(w)??r,C=d!=null&&d!=="",b=I===void 0?void 0:t.find(y=>y.value===I);return Vt(oQ,{label:c(e),icon:aQ(o),action:h?Vt(eQ,{words:de()?.panel,label:c(e),changed:C,detail:b?.label!==void 0?nQ(zm,c(b.label),l.followsView):void 0,disabled:l.readOnly===!0,onReset:()=>f(void 0)}):void 0},Vt(iQ,{label:c(e),value:S,options:m,onChange:f,columns:a.columns,cell:a.cell??fQ,tooltips:!1,disabled:l.readOnly===!0}))}}}import{VIEW_ABOVE as fw}from"efficient-easel/screen/lib/content/length-units";import{jsx as E,jsxs as Se}from"react/jsx-runtime";import{NoSymbolIcon as SQ}from"efficient-easel/icons";import{useId as wQ}from"react";var uQ="line",mQ=[{label:"None",value:"none"},{label:"Line",value:"line"},{label:"Stripes \xB7 fine",value:"stripes-fine"},{label:"Stripes \xB7 medium",value:"stripes-medium"},{label:"Stripes \xB7 bold",value:"stripes-bold"}],cw={"stripes-fine":{ink:4,period:12},"stripes-medium":{ink:8,period:18},"stripes-bold":{ink:14,period:28}},sBe=28,hQ="-45deg",xQ="color-mix(in oklab, var(--accent) 50%, var(--bg))";function gQ(e){return e!=="line"&&e!=="none"}var IQ={sm:24,md:48,lg:80},yQ="md",bQ=Object.keys(IQ);function iBe(e){return xo(bQ,yQ,e)}function lBe(e){return xo(mQ,uQ,e)}function cBe(e){if(!gQ(e))return null;let{ink:o,period:t}=cw[e];return`repeating-linear-gradient(${hQ}, ${xQ} 0 ${o}px, transparent ${o}px ${t}px)`}var dBe={kind:"border",unitKey:"thicknessUnit"},fBe={kind:"size",base:"%",unitKey:"lengthPctUnit"};var jm=44,Km=28;function xe({children:e}){return E("svg",{width:jm,height:Km,viewBox:`0 0 ${jm} ${Km}`,"aria-hidden":"true",fill:"currentColor",stroke:"currentColor",strokeWidth:1.25,children:e})}var M=({x:e,y:o,w:t,t:r=2,faint:a=!1})=>E("rect",{x:e,y:o,width:t,height:r,rx:r/2,stroke:"none",opacity:a?.45:1}),Pe=({x:e,y:o,w:t,h:r})=>E("rect",{x:e,y:o,width:t,height:r,rx:2,fill:"none"}),Lt=({x:e,y:o})=>E("circle",{cx:e,cy:o,r:1.75,stroke:"none"}),Uo=({x1:e,y1:o,x2:t,y2:r})=>E("line",{x1:e,y1:o,x2:t,y2:r});function dw(e){let o=20/Ni,t=5,r=1,a=[],n=0,s=0,i=0;for(let[f,u]of e)n+f>Ni&&(s+=i*(t+r),n=0,i=0),a.push({x:12+n*o,y:s,w:f*o-r,h:u*t+(u-1)*r}),n+=f,i=Math.max(i,u);let l=s+i*(t+r)-r,d=(Km-l)/2;return E(xe,{children:a.map((f,u)=>E("rect",{x:f.x,y:d+f.y,width:f.w,height:f.h,rx:1,stroke:"none",opacity:.6},u))})}var IBe={bars:Se(xe,{children:[E(M,{x:8,y:14,w:5,t:10}),E(M,{x:16,y:8,w:5,t:16}),E(M,{x:24,y:18,w:5,t:6}),E(M,{x:32,y:11,w:5,t:13})]}),line:Se(xe,{children:[E("polyline",{points:"6,22 14,15 22,18 30,8 38,11",fill:"none",strokeWidth:1.75,strokeLinejoin:"round"}),E(Uo,{x1:6,y1:25,x2:38,y2:25})]}),donut:Se(xe,{children:[E("circle",{cx:22,cy:14,r:9,fill:"none",strokeWidth:5,opacity:.45}),E("circle",{cx:22,cy:14,r:9,fill:"none",strokeWidth:5,strokeDasharray:"34 57",transform:"rotate(-90 22 14)"})]})};function yBe(e){if(e==="none")return E("span",{style:{display:"flex",width:jm,height:Km,alignItems:"center",justifyContent:"center"},children:E(SQ,{size:20})});if(e==="line")return E(xe,{children:E(Uo,{x1:4,y1:14,x2:40,y2:14})});let{ink:o,period:t}=cw[e],r=.4,a=[];for(let n=-12;n<jm;n+=t*r)a.push(E("polygon",{points:`${n},22 ${n+o*r},22 ${n+o*r+10},6 ${n+10},6`,stroke:"none"},n));return E(CQ,{children:a})}function CQ({children:e}){let o=`sf-div-${wQ().replace(/[^\w-]/g,"")}`;return Se(xe,{children:[E("clipPath",{id:o,children:E("rect",{x:4,y:6,width:36,height:16,rx:2})}),E("g",{clipPath:`url(#${o})`,children:e})]})}var Vm=({x:e,y:o,w:t,h:r})=>E("rect",{x:e,y:o,width:t,height:r,rx:2,stroke:"none",opacity:.3}),bBe={tabs:Se(xe,{children:[E(M,{x:5,y:10,w:9}),E(M,{x:18,y:10,w:9,faint:!0}),E(M,{x:31,y:10,w:9,faint:!0}),E(Uo,{x1:4,y1:17,x2:40,y2:17}),E(M,{x:4,y:16,w:11,t:2})]}),largeTabs:Se(xe,{children:[E(Uo,{x1:4,y1:5,x2:40,y2:5}),E(Lt,{x:7,y:10}),E(M,{x:11,y:9,w:16}),E(M,{x:31,y:9,w:9,faint:!0}),E(Uo,{x1:4,y1:14,x2:40,y2:14}),E(Lt,{x:7,y:19}),E(M,{x:11,y:18,w:13,faint:!0}),E(M,{x:31,y:18,w:9,faint:!0}),E(Uo,{x1:4,y1:23,x2:40,y2:23})]})},SBe={card:Se(xe,{children:[E(Pe,{x:10,y:3,w:24,h:22}),E(Vm,{x:12,y:5,w:20,h:10}),E(M,{x:13,y:18,w:16}),E(M,{x:13,y:21,w:11,t:1.5,faint:!0})]}),cover:Se(xe,{children:[E(Vm,{x:10,y:3,w:24,h:22}),E(Pe,{x:10,y:3,w:24,h:22}),E(M,{x:13,y:17,w:16}),E(M,{x:13,y:21,w:11,t:1.5})]})},wBe={cards:Se(xe,{children:[E(Pe,{x:3,y:5,w:11,h:18}),E(Pe,{x:17,y:5,w:11,h:18}),E(Pe,{x:31,y:5,w:11,h:18}),E(M,{x:5,y:9,w:7}),E(M,{x:19,y:9,w:7}),E(M,{x:33,y:9,w:7}),E(M,{x:5,y:13,w:5,t:1.5,faint:!0}),E(M,{x:19,y:13,w:5,t:1.5,faint:!0}),E(M,{x:33,y:13,w:5,t:1.5,faint:!0})]}),"label-only":Se(xe,{children:[E("path",{d:"M8.5 7l3 3-3 3-3-3zM22.5 7l3 3-3 3-3-3zM36.5 7l3 3-3 3-3-3z",stroke:"none"}),E(M,{x:5,y:18,w:7}),E(M,{x:19,y:18,w:7}),E(M,{x:33,y:18,w:7})]})},CBe={table:Se(xe,{children:[E(Pe,{x:3,y:5,w:38,h:18}),E(Uo,{x1:15.7,y1:5,x2:15.7,y2:23}),E(Uo,{x1:28.3,y1:5,x2:28.3,y2:23}),E("path",{d:"M15.7 5v18M28.3 5v18",fill:"none",strokeWidth:2.5}),E(M,{x:6,y:9,w:6,t:3}),E(M,{x:19,y:9,w:6,t:3}),E(M,{x:31,y:9,w:6,t:3}),E(M,{x:6,y:18,w:7,t:1.5,faint:!0}),E(M,{x:19,y:18,w:7,t:1.5,faint:!0}),E(M,{x:31,y:18,w:7,t:1.5,faint:!0})]}),list:Se(xe,{children:[E(Uo,{x1:3,y1:7,x2:13,y2:7}),E(Uo,{x1:17,y1:7,x2:27,y2:7}),E(Uo,{x1:31,y1:7,x2:41,y2:7}),E(M,{x:3,y:11,w:6,t:3}),E(M,{x:17,y:11,w:6,t:3}),E(M,{x:31,y:11,w:6,t:3}),E(M,{x:3,y:17,w:8,t:1.5,faint:!0}),E(M,{x:17,y:17,w:8,t:1.5,faint:!0}),E(M,{x:31,y:17,w:8,t:1.5,faint:!0})]})},vBe={plain:Se(xe,{children:[E(M,{x:5,y:12,w:9,t:4}),E(M,{x:18,y:12,w:9,t:4}),E(M,{x:31,y:12,w:9,t:4})]}),cards:Se(xe,{children:[E(Pe,{x:3,y:7,w:11,h:14}),E(Pe,{x:17,y:7,w:11,h:14}),E(Pe,{x:31,y:7,w:11,h:14}),E(M,{x:5,y:13,w:7}),E(M,{x:19,y:13,w:7}),E(M,{x:33,y:13,w:7})]}),marks:Se(xe,{children:[E(M,{x:8,y:12,w:6,t:4}),E(M,{x:17,y:12,w:6,t:4}),E(M,{x:26,y:12,w:6,t:4}),E(M,{x:35,y:12,w:3,t:4})]}),chips:Se(xe,{children:[E(Pe,{x:3,y:9,w:18,h:10}),E(Pe,{x:23,y:9,w:18,h:10}),E(Lt,{x:7,y:14}),E(M,{x:10,y:13,w:8}),E(Lt,{x:27,y:14}),E(M,{x:30,y:13,w:8})]})},kBe={overlay:Se(xe,{children:[E(Vm,{x:4,y:3,w:36,h:22}),E(Pe,{x:4,y:3,w:36,h:22}),E(M,{x:8,y:15,w:18,t:3}),E(M,{x:8,y:20,w:12})]}),stacked:Se(xe,{children:[E(M,{x:4,y:3,w:18,t:3}),E(M,{x:4,y:8,w:12}),E(Vm,{x:4,y:13,w:36,h:12}),E(Pe,{x:4,y:13,w:36,h:12})]})},TBe={split:Se(xe,{children:[E(M,{x:4,y:6,w:12,t:3}),E(M,{x:4,y:11,w:9,faint:!0}),E(Uo,{x1:20,y1:4,x2:20,y2:24}),E(M,{x:24,y:6,w:16}),E(M,{x:24,y:10,w:11,faint:!0}),E(M,{x:24,y:17,w:16}),E(M,{x:24,y:21,w:11,faint:!0})]}),spine:Se(xe,{children:[E(Uo,{x1:9,y1:4,x2:9,y2:24}),E(Lt,{x:9,y:8}),E(M,{x:14,y:7,w:24}),E(Lt,{x:9,y:14}),E(M,{x:14,y:13,w:20}),E(Lt,{x:9,y:20}),E(M,{x:14,y:19,w:24})]}),alternating:Se(xe,{children:[E(Uo,{x1:22,y1:4,x2:22,y2:24}),E(Lt,{x:22,y:8}),E(M,{x:4,y:7,w:14}),E(Lt,{x:22,y:14}),E(M,{x:26,y:13,w:14}),E(Lt,{x:22,y:20}),E(M,{x:4,y:19,w:14})]}),track:Se(xe,{children:[E(Uo,{x1:4,y1:12,x2:40,y2:12}),E(Lt,{x:8,y:12}),E(Lt,{x:22,y:12}),E(Lt,{x:36,y:12}),E(M,{x:4,y:17,w:8}),E(M,{x:18,y:17,w:8}),E(M,{x:32,y:17,w:8}),E(M,{x:4,y:21,w:6,faint:!0}),E(M,{x:18,y:21,w:6,faint:!0}),E(M,{x:32,y:21,w:6,faint:!0})]})},PBe={standard:Se(xe,{children:[E(M,{x:4,y:5,w:10,t:1.5,faint:!0}),E(M,{x:4,y:10,w:28,t:4}),E(M,{x:4,y:18,w:34,faint:!0}),E(M,{x:4,y:22,w:24,faint:!0})]}),editorial:Se(xe,{children:[E(M,{x:4,y:5,w:5,t:1.5,faint:!0}),E(M,{x:4,y:10,w:20,t:5}),E(M,{x:28,y:11,w:12,faint:!0}),E(M,{x:28,y:15,w:9,faint:!0}),E(Uo,{x1:4,y1:22,x2:40,y2:22})]}),simple:Se(xe,{children:[E(M,{x:4,y:8,w:10,t:1.5,faint:!0}),E(M,{x:4,y:13,w:26,t:4})]}),statement:Se(xe,{children:[E(M,{x:4,y:6,w:36,t:7}),E(M,{x:4,y:16,w:24,t:7})]}),natural:Se(xe,{children:[E(M,{x:4,y:8,w:22,t:3}),E(M,{x:4,y:15,w:34,faint:!0}),E(M,{x:4,y:19,w:28,faint:!0})]}),essay:Se(xe,{children:[E(M,{x:4,y:5,w:24,t:4}),E(M,{x:4,y:13,w:36,faint:!0}),E(M,{x:4,y:17,w:36,faint:!0}),E(M,{x:4,y:21,w:30,faint:!0})]})},EBe={"spec-card":Se(xe,{children:[E(Pe,{x:4,y:3,w:36,h:22}),E(M,{x:8,y:7,w:14}),E(Pe,{x:8,y:12,w:8,h:9}),E(Pe,{x:18,y:12,w:8,h:9}),E(Pe,{x:28,y:12,w:8,h:9})]}),fitment:Se(xe,{children:[E(Pe,{x:4,y:4,w:10,h:5}),E(Pe,{x:16,y:4,w:10,h:5}),E(Pe,{x:28,y:4,w:10,h:5}),E(M,{x:4,y:14,w:34,faint:!0}),E(M,{x:4,y:18,w:34,faint:!0}),E(M,{x:4,y:22,w:34,faint:!0})]}),portal:Se(xe,{children:[E(Pe,{x:4,y:3,w:36,h:22}),E(M,{x:8,y:7,w:10,t:4}),E(M,{x:8,y:14,w:16,faint:!0}),E(M,{x:26,y:18,w:10,t:4})]}),kanban:Se(xe,{children:[E(Pe,{x:4,y:3,w:10,h:22}),E(Pe,{x:17,y:3,w:10,h:22}),E(Pe,{x:30,y:3,w:10,h:22}),E(M,{x:6,y:6,w:6,t:4}),E(M,{x:6,y:12,w:6,t:4}),E(M,{x:19,y:6,w:6,t:4}),E(M,{x:32,y:6,w:6,t:4}),E(M,{x:32,y:12,w:6,t:4})]}),claims:Se(xe,{children:[E(M,{x:4,y:5,w:12,faint:!0}),E(M,{x:20,y:4,w:18,t:4}),E(M,{x:4,y:12,w:12,faint:!0}),E(M,{x:20,y:11,w:10,t:4}),E(M,{x:4,y:19,w:12,faint:!0}),E(M,{x:20,y:18,w:14,t:4})]}),browser:Se(xe,{children:[E(Pe,{x:4,y:3,w:36,h:22}),E(Uo,{x1:4,y1:8,x2:40,y2:8}),E(M,{x:8,y:11,w:28,t:5,faint:!0}),E(Pe,{x:8,y:18,w:8,h:4}),E(Pe,{x:18,y:18,w:8,h:4}),E(Pe,{x:28,y:18,w:8,h:4})]}),terminal:Se(xe,{children:[E(Pe,{x:4,y:3,w:36,h:22}),E("polyline",{points:"8,9 11,11 8,13",fill:"none"}),E(M,{x:13,y:10,w:14}),E(M,{x:8,y:16,w:22,faint:!0}),E(M,{x:8,y:20,w:16,faint:!0})]})},GF={width:"5.75rem",height:"3.75rem",words:!0},_Be={width:"8.5rem",height:"3.75rem",words:!0},OBe={columns:Se(xe,{children:[E(Pe,{x:3,y:4,w:11,h:8}),E(Pe,{x:17,y:4,w:11,h:8}),E(Pe,{x:31,y:4,w:11,h:8}),E(M,{x:3,y:16,w:9}),E(M,{x:17,y:16,w:9}),E(M,{x:31,y:16,w:9}),E(M,{x:3,y:20,w:7,t:1.5,faint:!0}),E(M,{x:17,y:20,w:7,t:1.5,faint:!0}),E(M,{x:31,y:20,w:7,t:1.5,faint:!0})]}),"rows-left":Se(xe,{children:[E(Pe,{x:6,y:3,w:14,h:9}),E(M,{x:24,y:5,w:14}),E(M,{x:24,y:9,w:10,t:1.5,faint:!0}),E(Pe,{x:24,y:16,w:14,h:9}),E(M,{x:6,y:18,w:14}),E(M,{x:6,y:22,w:10,t:1.5,faint:!0})]}),"rows-right":Se(xe,{children:[E(Pe,{x:24,y:3,w:14,h:9}),E(M,{x:6,y:5,w:14}),E(M,{x:6,y:9,w:10,t:1.5,faint:!0}),E(Pe,{x:6,y:16,w:14,h:9}),E(M,{x:24,y:18,w:14}),E(M,{x:24,y:22,w:10,t:1.5,faint:!0})]})};import{TEXT_CONTROL_KINDS as kDe,SCALAR_TEXT_CONTROLS as TDe}from"efficient-easel/draw";function ps(e,o){return c("{value} from {from}",{value:e,from:o})}function Tee(){let{blockGap:e}=fe();return e===null?c("this container's own spacing"):ps(`${e}px`,c("Styles"))}function Pee({inherited:e,onReset:o,label:t}){return R(tt,{words:de()?.panel,label:c(t),changed:!e,detail:Tee(),onReset:o})}function Eee(e){return Gm({...Cee,builtIn:Zi[e],resolve:(o,t)=>as(e,o,t?.siteGap),action:(o,t)=>R(Pee,{inherited:!Nm(e,o),onReset:()=>t(void 0),label:"Gap"}),mark:{[Bm]:e}})}function _ee(e){return io(zo("mobile",{[Bm]:e,type:"custom",render:o=>R(Ree,{container:e,...o})}),IB)}function Oee(e){return io(zo("tablet",{[Bm]:e,type:"custom",render:o=>R(Aee,{container:e,...o})}),IB)}var IB={not:{field:"gap",in:Array.from({length:-Ia.min},(e,o)=>Ia.min+o)}};function gDe(e){return{gap:zo("desktop",Eee(e)),[ww("gap")]:Oee(e),[on("gap")]:_ee(e)}}function Aee({container:e,...o}){let[t]=Sr("gap"),{siteGap:r}=o.field??{},a=Math.max(dd.min,as(e,t,r));return Gm({...dd,builtIn:a,resolve:n=>en(n)?n:a,action:(n,s)=>R(tt,{words:de()?.panel,label:c("Gap"),changed:en(n),detail:fs(i=>c(i),`${a}px`),onReset:()=>s(void 0)})}).render(o)}function Ree({container:e,...o}){let[t]=Sr("gap"),{siteGap:r,siteGapPhone:a}=o.field??{},n=qS(e,void 0,t,r,a);return Gm({...dd,builtIn:n,resolve:s=>qS(e,s,t,r,a),action:(s,i)=>R(tt,{words:de()?.panel,label:c("Gap"),changed:en(s),detail:ps(`${n}px`,YS(e,t,a)?c("Styles"):c("Desktop")),onReset:()=>i(void 0)})}).render(o)}function IDe(e){return $F({offered:dF(e),fallback:Kr(e,void 0),resolve:o=>Kr(e,o)})}function yDe(e,o){return dO(o?uO(e,o):[],o)}function Lee({inherited:e,onReset:o,label:t}){return R(tt,{words:de()?.panel,label:c(t),changed:!e,detail:ps(c("Full"),c("the page")),onReset:o})}function us({value:e,onChange:o,label:t,placeholder:r,hint:a,multiline:n,hideable:s=!0,markup:i=!0}){let{text:l,hidden:d}=an(e),f=md(null),u=md(null),p=C=>o(s?{text:C,hidden:d}:C),m=()=>o({text:l,hidden:!d}),h=s&&d,I=rB(),w=a?Mee(a)?R("span",{className:"sf-hint-while-typing",children:c(a)}):c(a):void 0,S=d?c("Show {label} on the slide",{label:c(t)}):c("Hide {label} on the slide",{label:c(t)});return R(go,{label:c(t),icon:R(YQ,{}),htmlFor:I,className:h?"is-hidden":void 0,hint:w,action:s?R(Sw,{content:S,children:R(hB,{"aria-pressed":d,"aria-label":S,onClick:m,children:d?R(qF,{name:"eye-off",size:14}):R(qF,{name:"eye",size:14})})}):void 0,children:ba("div",{className:"sf-copybox",children:[i&&R(Xb,{target:n?u:f,value:l,onChange:p}),n?R("textarea",{id:I,ref:u,value:l,placeholder:r===void 0?void 0:c(r),onChange:C=>p(C.target.value)}):R("input",{id:I,ref:f,type:"text",value:l,placeholder:r===void 0?void 0:c(r),onChange:C=>p(C.target.value)})]})})}function bDe(e,o){return{...e,[AQ]:o}}function SDe(e){let o=e[Sa];if(!o)throw new Error("withOffPage: the field holds no authored text");return{...e,[Sa]:{...o,offPage:!0}}}function oh(e){return!e||typeof e!="object"?!1:e[Sa]?.offPage===!0}function wDe(e){if(!e[Sa])throw new Error("withPanelOnly: the field holds no authored text");return{...e,[Jb]:!0}}function yB(e){return ji(e)}function CDe(e){let o=e[Sa];if(!o)throw new Error("withIdentifier: the field holds no authored text");return{...e,[Sa]:{...o,identifier:!0}}}function PDe(e,o){if(!e[Sa])throw new Error("inOwnBox: the field holds no authored text");let{[hee]:t,...r}=e;return{...r,[Zb]:!0,render:o}}var Fee=new Set(gee),Qm={type:"radio",options:[{value:!0},{value:!1}]},bB={text:{type:"object",objectFields:{text:{type:"text"},hidden:Qm}},textarea:{type:"object",objectFields:{text:{type:"textarea"},hidden:Qm}},plainText:{type:"text"},copyText:{type:"text"},plainTextarea:{type:"textarea"},textList:{type:"array",arrayFields:{text:{type:"text"}}}},ms=(e,o)=>{let t=rn({...o,[Sa]:e},{...bB[e.control],label:e.label});if(!Fee.has(e.control))return t;let r=o.render;return{...xB(t,"authored-copy"),render:a=>R(wR,{name:a.name,children:r(a)})}},EDe="Everything else on this block comes from the linked post. Unlink it to edit by hand.",Bee={field:"source.slug",set:!0},_De={not:Bee},Nee="Select a word, then press the highlighter.",Dee=new Set([Nee]),Mee=e=>Dee.has(e);function ODe(e,o,t){return ms({control:"text",label:e,placeholder:o,hint:t},{type:"custom",render:({value:r,onChange:a})=>R(us,{value:r,onChange:a,label:e,placeholder:o,hint:t})})}function ADe(e,o,t){return ms({control:"textarea",label:e,placeholder:o,hint:t},{type:"custom",render:({value:r,onChange:a})=>R(us,{value:r,onChange:a,label:e,placeholder:o,hint:t,multiline:!0})})}function RDe(e,o,t){return ms({control:"plainText",label:e,placeholder:o,hint:t},{type:"custom",render:({value:r,onChange:a})=>R(us,{value:r,onChange:a,label:e,placeholder:o,hint:t,hideable:!1,markup:!1})})}function LDe(e,o,t){return ms({control:"copyText",label:e,placeholder:o,hint:t},{type:"custom",render:({value:r,onChange:a})=>R(us,{value:r,onChange:a,label:e,placeholder:o,hint:t,hideable:!1})})}function FDe(e){return{type:"custom",[_Q]:{label:e},...rn({},{type:"text",label:e}),render:({value:o,onChange:t})=>R(wL,{value:EQ(o),onChange:t,label:e})}}function BDe(e,o,t){return ms({control:"plainTextarea",label:e,placeholder:o,hint:t},{type:"custom",render:({value:r,onChange:a})=>R(us,{value:r,onChange:a,label:e,placeholder:o,hint:t,multiline:!0,hideable:!1})})}var SB={Design:RQ,Animation:FQ};function NDe(e,o){return{type:"custom",render:()=>R(Hee,{text:e,values:o})}}function Hee({text:e,values:o}){return R("p",{className:"sf-note",children:c(e,o)})}function wB(e){return wr(e)!==null&&e?.tabs!==void 0}var XF=new Map;function th(e,o){let t=`${e}\0${o?o.join(""):""}`,r=XF.get(t)??{type:"custom",tabs:o,[aB]:{label:e,level:1},bucket:e,marker:!0,render:()=>R(wa,{})};return XF.set(t,r),r}var ZF=new Map;function vw(e){let o=ZF.get(e)??{type:"custom",[aB]:{label:e,level:1},designGroup:e,marker:!0,...e==="Content"?{}:{fold:e},render:()=>R(wa,{})};return ZF.set(e,o),o}function Wee(e){let o=e;return o?.marker===!0&&typeof o.fold=="string"?o.fold:null}function CB(e,o){return Wee(e)===o?e:{...e,marker:!0,fold:o,render:()=>R(wa,{})}}function vB(e){let o=e;if(o.marker===!0&&o.fold===void 0)return e;let{fold:t,...r}=e;return{...r,marker:!0,render:()=>R(wa,{})}}function kw({title:e,children:o}){let[t,r]=hd(()=>!pw.has(e));return R(ZQ,{title:e,open:t,onToggle:a=>{r(a),a?pw.delete(e):pw.add(e)},children:o})}var pw=new Set;function $ee({swatches:e,current:o,onPick:t,names:r}){let a=e.find(i=>i.toLowerCase()===o.toLowerCase()),n=a?r?.[a]:void 0,s=n?c(n):o;return ba("div",{className:"sf-swatches",children:[e.map(i=>{let l=r?.[i]?c(r[i]):i;return R(Sw,{content:l,children:R(see,{color:i,selected:o.toLowerCase()===i.toLowerCase(),onClick:()=>t(i),"aria-label":l})},i)}),R("span",{className:"sf-swatch-hex",children:s})]})}function DDe(e,o,t=!1){return{type:"custom",render:({value:r,onChange:a})=>R(Uee,{label:e,builtIn:o,followsBand:t,value:r,onChange:a})}}function Uee({label:e,builtIn:o,followsBand:t,value:r,onChange:a}){let n=typeof r=="string"?r:void 0,{colors:s,n:i}=Ow(),l={background:s.background,surface:s.surface,surface2:Zp(s),band:B_(s)},d=t?ot:o,f=PF(n,o,d),u=XS(void 0,d,l),p=t?fd:void 0,m=d===ot?c("the theme's section background"):c("Theme {n} background",{n:i}),h=zee(n,o,s,i,l,a),I=ps(u.toUpperCase(),m),w=zr(n),S=w?Hi(w,s,i):null;return S?R(yt,{label:c(e),icon:R(jF,{}),value:S.hex,caption:S.words,onChange:a,changed:!0,onReset:()=>a(p),resetTo:I,choices:h}):R(Zc,{label:c(e),icon:R(jF,{}),value:f?"":XS(n,o,l),inherited:u,resetTo:I,onChange:a,onReset:()=>a(p),choices:h})}function zee(e,o,t,r,a,n){let s=TF(e,o);return[{label:c("No fill"),color:"",selected:s==="none",onPick:()=>n(ZS)},{label:`${c("Section band")} \xB7 ${a.band.toUpperCase()}`,color:a.band,selected:s==="band",onPick:()=>n(ot)},..._w(zr(e)??"",t,r,n)]}function Gee(e,o){return{type:"custom",render:({value:t,onChange:r})=>{let a=t,n=OF(a,o);return R(go,{label:c(e),icon:R(hw,{}),changed:!n,action:R(tt,{words:de()?.panel,label:c(e),changed:!n,detail:c("the theme's image stage"),onReset:()=>r(pd)}),children:$ee({swatches:EF,current:n?Ji:JS(a,o),onPick:r,names:_F})})}}}function rl(e=t=>t,o){return Id({_gSectionTheme:Yt(rO),sectionAccent:{type:"custom",render:({value:t,onChange:r})=>R(qR,{value:e(t),onChange:r,followLabel:o})}})}function al(e){let o=wo(),t=fa(e?.view),r=s=>Cw(e.valueKey,s),a=e.numbersIn??(s=>Y(o[r(s)])!==void 0),n=e.followsView??noe(t,a);return kee({props:{value:void 0,onChange:()=>{},field:{}},row:e.valueKey?e.row:void 0,table:ya,label:c(e.label),grid:e.grid,hasOwn:a(t),view:{tier:t,numbersIn:a,followsView:n},convertTo:e.convertTo??(s=>{let i=Y(o[r(t)]);return i===void 0?{}:{[r(t)]:s(i)}})})}function St({min:e,max:o,step:t,value:r,onChange:a,suffix:n="",readout:s=!0,notch:i,ariaLabel:l,disabled:d=!1,placeholder:f,placeholderWord:u,onClear:p,units:m,inputMax:h}){let I=i!==void 0&&Number.isFinite(i)&&i>=e&&i<=o;return R("div",{className:I?"sf-slider has-notch":"sf-slider",style:I?{"--sf-notch":(i-e)/(o-e)}:void 0,children:R(uee,{min:e,max:o,step:t,value:r,...r===null&&f!==void 0?{placeholderValue:f}:{},...u?{emptyLabel:c(u)}:{},suffix:n||void 0,...m?{units:m}:{},...h!==void 0?{inputMax:h}:{},showInput:s,label:l===void 0?void 0:c(l),disabled:d,size:"sm",boxSize:"md",className:"sf-slider-track",onChange:w=>{w===null?p?.():w!==r&&a(w)}})})}function jee(e,o){let{min:t,max:r,step:a=1,unsetLabel:n,hint:s,restTrack:i,unsetMark:l,icon:d,unit:f="px"}=o;return{type:"custom",render:({value:u,onChange:p})=>{let m=typeof u=="number"?u:null,h=m===null;return R(go,{label:c(e),icon:d?ds(d):void 0,value:h?l||n===void 0?void 0:c(n):`${m}${f}`,changed:!h,action:l?Iw(l,{changed:!h,onReset:()=>p(null)}):R(tt,{words:de()?.panel,label:c(e),changed:!h,onReset:()=>p(null)}),hint:typeof s=="string"?c(s):s,children:i?i({min:t,max:r,step:a,px:m,label:e,onChange:p}):St({min:t,max:r,step:a,value:m??t,readout:!1,ariaLabel:e,onChange:p})})}}}var xd="Corners",Kee={kind:"radius"};function Tw(e){return{type:"custom",render:o=>{let{value:t,onChange:r}=o,a=typeof t=="number"&&Number.isFinite(t)?t:null,n=a!==null;return R(go,{label:c(xd),icon:R(sB,{}),changed:n,action:Iw(e.mark,{changed:n,onReset:()=>r(null)}),hint:e.hint,children:R(Vee,{tier:e,px:a,name:o.name,onRadius:r})})}}}function Sr(e){let o=cs();return[o?.values?.[e],t=>o?.onChange(e,t)]}function yd(){return xB({type:"custom",render:()=>R(xee,{})},"always")}function hr(){let e=cs();return o=>e?.onChangeMany(o)}function Vee({tier:e,px:o,name:t,onRadius:r}){let a=e.useFollowed(),[n,s]=Sr(e.sidesKey),i=hr(),l=al({row:e.row??Kee,label:xd,grid:{min:lt,max:Ha,step:e.step??1},valueKey:t??"",view:"desktop"}),d=$r(n)??[...Lu];return R(iee,{label:c(xd),value:d,corners:W1,onChange:f=>{let u=$r(f)??[];s(u.length===Lu.length?null:u)},radius:o,onRadiusChange:l&&t?f=>i({[t]:f,...l.unitPatch(f===null)}):r,radiusMin:l?.grid.min??lt,radiusMax:l?.grid.max??Ha,radiusStep:l?.grid.step??e.step??1,radiusPlaceholder:l&&l.unit!=="px"?"\u2013":String(a),...l?{radiusUnit:l.unit,units:l.units}:{}})}function kB(e,o){return ls(e,o)}function TB(){return yd()}function Yee({label:e,changed:o=!1,onReset:t=()=>{}}){let{cornerRadiusPx:r}=fe(),a=typeof r=="number"?`${r}px`:c("not set");return R(tt,{words:de()?.panel,label:c(e),changed:o,detail:r==null?c("the built-in corners"):ps(a,c("Styles")),onReset:t})}function qee(){let{cornerRadiusPx:e}=fe();return typeof e=="number"?e:lt}function Xee(){return Tw({sidesKey:"sectionCornerSides",row:$c,useFollowed:qee,mark:R(Yee,{label:xd}),hint:Zee})}var Zee="Follows Styles \u25B8 Basics \u25B8 Corners until you set a number here.";function nl(){return Id({_gShape:Yt("Shape"),sectionCorners:Xee(),...kB($c,"sectionCorners"),sectionCornerSides:TB(),...ma("sectionBorder",aoe),...ls(ld,"sectionBorder",{tablet:!0,phone:!0})})}var Jee=()=>({width:c("Border width"),sides:{top:c("Border top"),right:c("Border right"),bottom:c("Border bottom"),left:c("Border left")},style:c("Border style"),styles:{solid:c("Solid"),dashed:c("Dashed"),dotted:c("Dotted")},color:c("Border color"),unit:"px"});function Qee(e){let o=Object.fromEntries(Object.entries(e).filter(([,t])=>t!=null&&t!==""));return Object.keys(o).length?o:void 0}function eoe(){let e;try{let o=vo(fe().theme);e=o.themes[o.selected]?.line}catch{e=void 0}return e||k_.line}function ooe({value:e,onChange:o,placeholder:t,presets:r,sides:a=!0,styles:n=!0,above:s={},length:i}){let l=e&&typeof e=="object"?e:{},[d,f]=hd(()=>a?tee(l,s):!1),u=Jee(),p=m=>Qee(a&&n?m:{width:m.width,color:m.color,...n?{style:m.style}:{}});return R(go,{label:c("Border"),icon:R(BQ,{}),action:a?R(eee,{each:d,label:c("Each side"),onChange:f}):void 0,children:R(QQ,{label:c("Border"),value:l,each:d,onChange:m=>o(p(m)),placeholder:t,presets:r,words:i?{...u,unit:i.unit}:u,styles:n,max:i?.grid.max??Rm,...i?{step:i.grid.step,units:i.units}:{}})})}function toe({value:e,onChange:o,view:t}){let[r]=Sr("sectionBorder"),[a]=Sr(ww("sectionBorder")),n=eoe(),s=p=>p&&typeof p=="object"?p:{},i=t==="phone"?{...jS(s(r)),...jS(s(a))}:t==="tablet"?s(r):{},l=wo(),d=hr(),f=Te("sectionBorder",t),u=al({row:ld,label:"Border",grid:{min:0,max:Rm,step:1},valueKey:"sectionBorder",view:t,numbersIn:p=>uw(l[Cw("sectionBorder",p)]),convertTo:p=>{let m=s(l[f]);return uw(m)?{[f]:roe(m,p)}:{}}});return R(ooe,{value:e,length:u,onChange:u?p=>d({[f]:p,...u.unitPatch(!uw(p))}):o,placeholder:{sides:oee(i),style:i.style??"solid",color:i.color||n},presets:[n],above:i})}var PB=["width",...Lm];function uw(e){if(!e||typeof e!="object")return!1;let o=e;return PB.some(t=>Y(o[t])!==void 0)}function roe(e,o){let t={...e};for(let r of PB){let a=Y(t[r]);a!==void 0&&(t[r]=o(a))}return t}function aoe(e){return{type:"custom",render:({value:o,onChange:t})=>R(toe,{value:o,onChange:t,view:e})}}function noe(e,o){let t=fw[e];for(;t&&fw[t]!==null&&!o(t);)t=fw[t];return t??e}function MDe(e){return{type:"custom",render:()=>R(soe,{partKey:e})}}function soe({partKey:e}){let[o]=Sr("id"),[t]=Sr("_partStyles"),{textStyles:r}=fe(),a=See(),n=null;try{n=Iee().select}catch{n=null}let s=t&&typeof t=="object"?t[e]:void 0,i=Array.isArray(r)?r:null;return R(XQ,{name:c("Text"),preview:XL(s,i,{noStyle:c("No style"),styleName:a.textStyles.styleName,cases:(a.copy.panel??bee.copy.panel).cases}),onOpen:()=>{n&&typeof o=="string"&&n(yee(o,e))}})}function EB(e){let{cornerRadiusPx:o}=fe(),t=typeof o=="number"?o:e,r=null;try{let{appState:n,selectedItem:s}=eh(l=>l),i=s?.props?.id?String(s.props.id):void 0;r=i?rR(n?.data,i)?.props??null:null}catch{r=null}if(!r)return t;let a=r.sectionCorners;return mb(a)?a:t}function ioe({label:e,changed:o=!1,onReset:t=()=>{}}){let r=EB(lt);return R(tt,{words:de()?.panel,label:c(e),changed:o,detail:ps(`${r}px`,c("the section")),onReset:t})}function loe(){return R(wa,{children:c("Follows the section's Corners until you set a number here.")})}function coe(){return Tw({sidesKey:"cardCornerSides",row:Uc,useFollowed:()=>EB(lt),mark:R(ioe,{label:xd}),hint:R(loe,{})})}function doe(){return{type:"custom",render:()=>R(Y1,{})}}function _B(){return{_gShape:Yt("Shape"),cardCorners:coe(),...kB(Uc,"cardCorners"),cardCornerSides:TB(),cardCornersApplyAll:doe()}}function foe(){return rn({type:"custom",[nw]:!0,render:e=>R(uoe,{...e})},{type:"select",label:Fn,options:[{value:"content",label:"Fit content"},{value:"equal",label:"Equal"},{value:[50],label:"Custom: the width of each block in %, the last block left out"}]})}function poe(e,o){let t=yy(e);if(t!=="custom")return c(Iy.find(a=>a.value===t)?.label??"");let r=mB(Np(e,o),o);return r?[...r,100-r.reduce((a,n)=>a+n,0)].join(" / "):c("Custom")}function uoe(e){let{value:o,onChange:t}=e,[r]=Sr("content"),a=Array.isArray(r)?r.length:0,n="follows"in e,s=o!=null,i=s?o:n?e.follows:void 0,l=yy(i),d=a>=2&&a<=VF,f=()=>[...dee[a]??[]],u=md(null),p=S=>{let C=u.current;C&&JSON.stringify(S)===JSON.stringify(C.shares)?t(C.value):S&&t(S)},m=S=>{S===l||S==="custom"&&!d||t(S==="custom"?f():S)},h=c("The width bar works for 2 to {count} blocks.",{count:VF}),I=s&&(n||o!=="content"),w=pee().widths.hint(a,cee);return R(go,{label:c(Fn),icon:R(Zm,{}),changed:I,hint:l!=="custom"?void 0:d?w:h,action:R(tt,{words:de()?.panel,label:c(Fn),changed:I,disabled:e.readOnly===!0,detail:n?fs(S=>c(S),poe(e.follows,a),e.followsView):c("Fit content"),onReset:()=>t(void 0)}),children:ba("div",{className:"sf-share-row",children:[R("div",{className:"sf-share-pick",children:R(uB,{label:c(Fn),value:l,options:Iy.map(S=>({value:S.value,label:S.value==="custom"&&!d?h:c(S.label),icon:iw(R("span",{className:"sf-gallery-pic sf-share-pic",children:OB(S.weights).map((C,b)=>R("i",{style:{gridColumn:`span ${C}`}},b))}),c(S.label),S.value==="custom"&&!d?h:c(S.label))})),onChange:m,columns:3,cell:AB,tooltips:!1,disabled:e.readOnly===!0})}),l==="custom"&&d?R("div",{onFocus:()=>{u.current={value:o,shares:mB(Np(i,a),a)}},onBlur:()=>{u.current=null},children:R(fee,{label:c(Fn),count:a,value:Np(i,a),onChange:p,readOnly:e.readOnly===!0})}):null]})})}function OB(e){if(!e)return[3,4];let o=e.reduce((t,r)=>t+r,0);return e.map(t=>Math.round(t/o*12))}function HDe(){return pt(qE,R(UQ,{}),vy,vy[0].value)}function WDe(){return zo("mobile",lw(Fn,R(Zm,{}),GE.map(e=>({label:e.label,value:e.value,picture:R("span",{className:"sf-gallery-pic sf-share-pic",children:OB(e.weights).map((o,t)=>R("i",{style:{gridColumn:`span ${o}`}},t))})})),jE,{columns:2,cell:AB}))}var AB={width:"5.75rem",height:"3.25rem",words:!0};function $De(){return gw("share",foe(),gB)[ww("share")]}function moe(){return zo("mobile",Ro(Sy,R(nB,{}),Dp,zE,1,Dp,"",{clear:{phoneFollows:!1,hint:Dp}}))}var JF={read:e=>e.phoneRow,write:(e,o,t)=>({phoneRow:t}),fieldKey:()=>"phoneRow",ownField:!0};function UDe(){let e=Ro(Sy,R(nB,{}),wy,KE,1,wy,"",{clear:{emptyLabel:"Auto"}}),o=gw("columns",e,{...JF,tablet:gB.tablet}),t=gw("columns",e,JF,{phoneRow:moe()});return{...o,phoneRow:t.phoneRow}}function zDe(e,o,t,r,a,n,s){return{type:"custom",render:({value:i,onChange:l,name:d})=>R(hoe,{label:e,min:o,max:t,step:r,fallback:a,role:n,value:i,onChange:l,name:d??"",length:s})}}function hoe({label:e,min:o,max:t,step:r,fallback:a,role:n,value:s,onChange:i,name:l,length:d}){let f=wo(),u=hr(),p=fa(d?.view),m=al({row:d?.row??{kind:"fontSize"},label:e,grid:{min:o,max:t,step:r},valueKey:d?l:"",view:d?.view??"desktop",numbersIn:I=>I===p&&typeof f[l]=="number",followsView:p,convertTo:I=>typeof f[l]=="number"?{[l]:I(f[l])}:{}}),h=I=>m?u({[l]:I,...m.unitPatch(typeof I!="number")}):i(I);return R(go,{label:c(e),icon:R(Nb,{noun:n}),action:R(tt,{words:de()?.panel,label:c(e),changed:!AF(s),detail:c("the Text style in Styles"),onReset:()=>h(ns),defaultAction:{onPress:()=>h(Hm),title:c("Keep this section's own built-in size"),icon:R(NQ,{})}}),children:St({min:m?.grid.min??o,max:m?.grid.max??t,step:m?.grid.step??r,value:typeof s=="number"?s:a,...m?{suffix:m.unit,units:m.units}:{suffix:"px"},ariaLabel:e,onChange:h})})}function qm(e,o,t){return[{label:"Auto",value:""},...Array.from({length:e},(r,a)=>({label:a===0?`1 ${o}`:`${a+1} ${t}`,value:String(a+1)}))]}function RB(){return{_gCellWidth:Yt("Cell size"),gridSpan:zo("desktop",pt("Positions",R(Zm,{}),qm(Wu,"position","positions"),"")),gridRowSpan:zo("desktop",pt("Rows tall",R(Jm,{}),qm(Uu,"row","rows"),"")),[Mi]:Ro("At card",R(lB,{}),1,Lb,1,1,""),[on("gridSpan")]:zo("mobile",pt("Positions",R(Zm,{}),[{label:"Full row",value:""},...qm($u,"position","positions").slice(1)],"")),[on("gridRowSpan")]:zo("mobile",pt("Rows tall",R(Jm,{}),qm(Uu,"row","rows"),""))}}function wo(){let e=null,o=null;try{e=tB(Pw),o=eh(t=>t).selectedItem}catch{o=null}return e??o?.props??{}}var Pw=kQ(null);function xoe({min:e,max:o,step:t,px:r,label:a,onChange:n,desktopKey:s,fallback:i}){let l=wo()[s],d=nm(void 0,l,i);return R(wa,{children:St({min:e,max:o,step:t,value:nm(r,l,i),readout:!1,ariaLabel:a,notch:d,onChange:n})})}function goe({label:e,desktopKey:o,fallback:t,unit:r="px",changed:a=!1,onReset:n=()=>{}}){let s=wo()[o],i=nm(void 0,s,t);return R(tt,{words:de()?.panel,label:c(e),changed:a,detail:fs(l=>c(l),`${i}${r}`),onReset:n})}function Ioe(e){return jee(e.label,{icon:e.icon,min:e.min,max:e.max,step:e.step,unit:e.unit,unsetLabel:"Follows Desktop",unsetMark:R(goe,{label:e.label,desktopKey:e.desktopKey,fallback:e.fallback,unit:e.unit}),restTrack:o=>R(xoe,{...o,desktopKey:e.desktopKey,fallback:e.fallback})})}var yoe={Top:"Padding top",Bottom:"Padding bottom",Left:"Padding left",Right:"Padding right"},boe={Top:yw,Bottom:cB,Left:dB,Right:fB},Soe=e=>{let o=boe[e];return R(o,{})};function LB(e={}){let o=e.keys?.top??"sectionPaddingTop",t=e.keys?.bottom??"sectionPaddingBottom",r=e.group!==!1,a=w=>yoe[w],n=w=>Ro(a("Top"),R(yw,{}),Gt.min,Gt.max,Gt.step,w,"px"),s=(w,S,C,b=Gt)=>zo("mobile",Ioe({label:a(w),icon:Soe(w),desktopKey:S,min:b.min,max:b.max,step:b.step,fallback:C})),i=e.top??Gt.min,l=e.bottom??Gt.min,d="sectionPaddingLeft",f="sectionPaddingRight",u=e.sideBounds??Gt,p=e.side??u.min,m=e.sidePhone??p,h=e.phone===!0,I=w=>h?zo("desktop",w):w;return Id({...r?{_gSpacing:Yt("Padding")}:{},[o]:I(n(i)),...h?{[on(o)]:s("Top",o,i)}:{},...e.only==="top"?{}:{[t]:I(Ro(a("Bottom"),R(cB,{}),Gt.min,Gt.max,Gt.step,l,"px")),...h?{[on(t)]:s("Bottom",t,l)}:{}},...e.sides?{[d]:I(Ro(a("Left"),R(dB,{}),u.min,u.max,u.step,p,"px")),...h?{[on(d)]:s("Left",d,m,u)}:{},[f]:I(Ro(a("Right"),R(fB,{}),u.min,u.max,u.step,p,"px")),...h?{[on(f)]:s("Right",f,m,u)}:{}}:{}})}function GDe(e,o){let t=Object.fromEntries(Object.entries(o).map(([n,s])=>[n,n in e&&wr(s)?e[n]:s])),r={},a=!1;for(let[n,s]of Object.entries(e)){if(n in o){a||Object.assign(r,t),a=!0;continue}r[n]=s}return a||Object.assign(r,t),r}var tn="Width";function sl(e,o=LF,t=!0){let r=o.map(a=>({label:ss[a],value:a}));return Id({...t?{_gWidth:Yt(tn)}:{},widthMode:{type:"custom",render:({onChange:a,field:n})=>R(go,{label:c(tn),icon:R(qQ,{}),action:t?R(Lee,{inherited:n?.inherited??!1,onReset:()=>a(tw),label:tn}):void 0,children:ud({options:r,value:n?.currentValue||e,onChange:a,ariaLabel:tn})})}})}function il({fill:e=!1}={}){let o=(a,n)=>({type:"custom",render:({value:s,onChange:i})=>R(woe,{value:s,onChange:i,view:a,badge:n,fill:e})}),t=()=>xw("sectionHeightMode"),r=()=>xw("sectionHeightMode");return Id({_gHeight:Yt(Ai),...ma("sectionHeightMode",a=>a==="desktop"?o(a):o(a,n=>R(Toe,{view:a,onClear:()=>n(void 0)}))),...ma("sectionHeightValue",t),...ma("sectionHeightUnit",r)})}function woe({value:e,onChange:o,view:t,badge:r,fill:a=!1}){let n=wo(),{mode:s,number:i,unit:l}=Coe(t,n,e);return R(go,{label:Ai,icon:ds(R(Jm,{})),action:r?r(o):void 0,children:ba("div",{className:"es-width-stack",children:[ud({options:[{label:"Auto",value:"auto"},{label:"Fixed",value:"fixed"},{label:"Screen",value:"screen"},...a?[{label:"Fill",value:"fill"}]:[]],value:s,onChange:o,ariaLabel:Ai}),i?R(koe,{view:t,mode:s,menu:l}):null]})})}function FB(e,o){return e==="phone"&&cu(o)?PO(o):vO(o)}function rh(e,o){return e==="desktop"||(e==="tablet"?cu(o):TO(o))?null:FB(e,o)}function Coe(e,o,t){let r=(a=>SO.includes(a))(t)?t:rh(e,o)?.mode??"auto";return{mode:r,number:r!=="auto"&&r!=="fill",unit:r==="fixed"}}function voe(e,o,t,r){let a=rh(e,o);return!a||e==="desktop"?null:r===void 0?{}:{[Te("sectionHeightMode",e)]:a.mode,...a.mode==="fixed"?{[Te("sectionHeightUnit",e)]:a.unit}:{},...t==="sectionHeightUnit"?{[Te("sectionHeightValue",e)]:a.value}:{},[Te(t,e)]:r}}function QF(e,o,t){let r=cs(),a=rh(e,wo());return!r||!a?{followed:null,write:t}:{followed:a,write:n=>r.onChangeMany(s=>{let i=voe(e,s,o,n);return i===null?{[Te(o,e)]:n}:Object.keys(i).length?i:null})}}function koe({view:e,mode:o,menu:t}){let r=cs(),a=wo(),n=Te("sectionHeightValue",e),s=Te("sectionHeightUnit",e),i=w=>S=>r?.onChangeMany(()=>({[w]:S})),{followed:l,write:d}=QF(e,"sectionHeightValue",i(n)),{write:f}=QF(e,"sectionHeightUnit",i(s)),u=o==="screen"?"%":a[s],p=(l?l.unit:u)==="%"?"%":"px",m=p==="%"?CO:wO,h=a[n],I=t?{options:["px","%"],label:c("Unit"),onChange:w=>f(w)}:void 0;return St({min:m.min,max:m.max,step:m.step,value:l?null:typeof h=="number"?h:m.fallback,...l?{placeholder:l.value}:{},suffix:p,...I?{units:I}:{},ariaLabel:Ai,onChange:d})}function Toe({view:e,onClear:o}){let t=wo(),r=rh(e,t)===null,a=e==="phone"&&cu(t),n=FB(e,t),s=fs(i=>c(i),n.mode==="auto"?c("Auto"):`${n.value}${n.unit}`,a?"tablet":"desktop");return R(tt,{words:de()?.panel,label:c(Ai),changed:r,detail:s,onReset:o})}function bd(e={}){let o=e.intro===!0,t=n=>({type:"custom",render:({value:s,onChange:i,id:l,name:d})=>R(Loe,{value:s,onChange:i,labelId:`${l??d??"stickTop"}-label`,view:n,intro:o})}),r=n=>({type:"custom",render:({value:s,onChange:i})=>R(Ooe,{value:s,onChange:i,view:n,intro:o})}),a=n=>({type:"custom",render:({value:s,onChange:i})=>R(Aoe,{value:s,onChange:i,view:n,intro:o})});return{_gStick:Yt(QL,{dot:o?_oe:qi}),...ma("stickTop",t),...ma("stickTopDistance",r),...ls(id,"stickTopDistance",{tablet:!0,phone:!0}),...e.screens?ma(br,a):{},...o?{}:{[rs]:Poe()},...o||e.above===!1?{}:{[Qa]:Eoe()}}}function Poe(){let e=pt(eF,R(yw,{}),oF,tF);return zo("desktop",{...e,render:o=>{let t=e.render({...o,value:HS(o.value),onChange:r=>o.onChange(aF(r))});return Iw(t,{hint:c(rF)})}})}function Eoe(){let e=DB(nF,!1,R(pB,{}),sF);return zo("desktop",{...e,render:o=>e.render({...o,onChange:t=>o.onChange(t===!0?!0:void 0)})})}var _oe={any:[qi,Om]};function BB(e,o,t,r,a){let n=cs(),s=wo(),i=e==="desktop"||gd(e,s)?null:Ew(e,Xi(s,{intro:r}));return{followed:i,write:(i||a)&&n?l=>n.onChangeMany(d=>{let f=Roe(e,d,l,o,r),u=f===null?{[Te(o,e)]:l}:f;return Object.keys(u).length?{...u,...a?.(l)??{}}:null}):t}}function Ooe({value:e,onChange:o,view:t,intro:r}){let a=wo(),n=Xi(a,{intro:r}),s=f=>{let u=Ei(f);return u==="desktop"||gd(u,a)},i=al({row:id,label:"Distance from top",grid:{min:jt.min,max:jt.max,step:jt.step},valueKey:"stickTopDistance",view:t,numbersIn:f=>s(f)&&Y(a[Cw("stickTopDistance",f)])!==void 0,followsView:t==="phone"&&n.ownTablet?"tablet":"desktop"}),{followed:l,write:d}=BB(t,"stickTopDistance",o,r,i?f=>i.unitPatch(f===void 0):void 0);return R("div",{className:"sf-field",children:St({min:i?.grid.min??jt.min,max:i?.grid.max??jt.max,step:i?.grid.step??jt.step,value:l?null:typeof e=="number"?e:jt.fallback,...l?{placeholder:l.distance}:{},...i?{suffix:i.unit,units:i.units}:{suffix:"px"},ariaLabel:c("Distance from top"),onChange:d})})}function Aoe({value:e,onChange:o,view:t,intro:r}){let{followed:a,write:n}=BB(t,br,o,r);return R(go,{label:c(MS),icon:ds(R(Jm,{})),children:St({min:Ym.min,max:Ym.max,step:Ym.step,value:a?null:Y(e)??Ym.default,...a?{placeholder:a.screens}:{},ariaLabel:c(MS),onChange:n})})}function gd(e,o){return e==="tablet"?$S(o):US(o)}function Ew(e,o){return e==="phone"?{on:o.tablet,distance:o.tabletDistance,unit:o.tabletUnit,screens:o.tabletScreens}:{on:o.desktop,distance:o.desktopDistance,unit:o.desktopUnit,screens:o.desktopScreens}}function Roe(e,o,t,r="stickTopDistance",a=!1){if(e==="desktop"||gd(e,o))return null;if(t===void 0)return{};let n=Ew(e,Xi(o,{intro:a})),s=e==="phone"&&gd("tablet",o)?f=>Te(f,"tablet"):f=>f,i=(f,u)=>o[s(f)]==null?{}:{[Te(f,e)]:u},l=id.unitKey,d=o[s(l)]==null?{}:{[Te(l,e)]:n.unit};return{[Te("stickTop",e)]:!0,...i("stickTopDistance",n.distance),...d,...i(br,n.screens),[Te(r,e)]:t}}function Loe({value:e,onChange:o,labelId:t,view:r,intro:a}){let n=wo(),s=Xi(n,{intro:a}),i=r==="phone"?s.phone:r==="tablet"?s.tablet:a?s.desktop:e===!0,l=r==="phone"&&s.ownTablet,d=r==="desktop"?null:Ew(r,s),f=d?.on?Me(d.distance,d.unit):c("Off");return R(go,{label:c(NS),labelId:t,icon:ds(R(pB,{})),action:ba(wa,{children:[r!=="desktop"?R(tt,{words:de()?.panel,label:c(NS),changed:gd(r,n),detail:fs(u=>c(u),f,l?"tablet":"desktop"),onReset:()=>o(void 0)}):null,R(bw,{checked:i,onChange:o,ariaLabelledBy:t})]})})}var eB="e.g. about";function ll(){return{_gAnchor:Yt("Anchor"),anchor:ms({control:"plainText",label:"Name",placeholder:eB},{type:"custom",render:({value:e,onChange:o})=>R($A,{value:e,onChange:o,nameBox:(t,r)=>R(us,{value:t,onChange:r,label:"Name",placeholder:eB,hideable:!1,markup:!1})})})}}function NB(){return{_gAdvanced:Yt("Advanced"),[Pi]:{type:"custom",render:({value:e,onChange:o})=>R(go,{label:c("Custom CSS"),icon:ds(R(aee,{})),children:R(mee,{"aria-label":c("Custom CSS"),spellCheck:!1,autoGrow:!0,className:"font-mono",value:typeof e=="string"?e:"",onChange:t=>o(t.target.value)})})}}}function jDe(e,o,t){return{type:"custom",render:({value:r,onChange:a,id:n,name:s})=>{let i=`${n??s??e}-datetime`,l=Date.parse(typeof r=="string"?r:"");return R(go,{label:c(e),icon:o,htmlFor:i,hint:t===void 0?void 0:c(t),children:R(lee,{id:i,value:Number.isFinite(l)?new Date(l):null,onChange:d=>a(d?d.toISOString():"")})})}}}function DB(e,o,t,r){return{type:"custom",...rn({},{...Qm,label:e}),render:a=>{let{value:n,onChange:s,id:i,name:l}=a,d="follows"in a,f=a,u=typeof n=="boolean",p=typeof f.follows=="boolean"?f.follows:o,m=u?n:d?p:o,h=`${i??l??e}-label`,I=f.readOnly===!0,w=R(bw,{checked:m,onChange:s,disabled:I,ariaLabelledBy:h});return R(go,{label:c(e),labelId:h,icon:t,hint:r===void 0?void 0:c(r),action:d?ba(wa,{children:[R(tt,{words:de()?.panel,label:c(e),changed:u,detail:f.followsNoView?c(p?"On":"Off"):fs(S=>c(S),c(p?"On":"Off"),f.followsView),disabled:I,onReset:()=>s(void 0)}),w]}):w})}}}function MB(){return{type:"custom",render:({value:e,onChange:o,id:t,name:r})=>{let a=`${String(t??r??"pageBackground")}-colour`;return R(Foe,{label:"Background",icon:R(jQ,{}),id:a,value:e,shown:Hb(e),onChange:o})}}}function KDe(e,o,t){return{type:"custom",render:({value:r,onChange:a})=>R(yt,{label:c(e),icon:t,value:r||o,onChange:a})}}function Foe({label:e,icon:o,id:t,value:r,shown:a,onChange:n}){let{colors:s,n:i}=Ow(),l=zr(r),d=l?Hi(l,s,i):null;return R(yt,{label:c(e),icon:o,id:t,value:d?d.hex:a,caption:d?.words,onChange:n,choices:_w(l??"",s,i,n)})}function VDe(){return{type:"custom",render:e=>{let{value:o,onChange:t}=e,r=e;return R(Boe,{value:typeof o=="string"?o:"",onChange:t,twin:"follows"in e?{follows:r.follows,view:r.followsView}:void 0})}}}function _w(e,o,t,r){let a=em(e);return KA(o,t).map(n=>({label:n.label,color:n.value,selected:a===n.name,onPick:()=>r(n.name)}))}function Boe({value:e,onChange:o,twin:t}){let{colors:r,n:a}=Ow(),n=r.background,s=ps(n.toUpperCase(),c("Theme {n} background",{n:a})),[i,l]=Sr(tR),[d]=Sr(zb),f=typeof d=="string"&&d.trim()!=="",u=Ju(i),p=y=>l(Ju(y)||void 0),m=em(e),h=m?Hi(m,r,a):null,I=_w(e,r,a,o),w=t?()=>o(void 0):()=>o(""),S=n,C=s;if(t){let y=em(t.follows),v=Qu(t.follows),L=y?Hi(y,r,a):v?{hex:v,words:v.toUpperCase()}:null;S=L?.hex??n,C=fs(A=>c(A),L?L.words:s,t.view)}let b=!t&&(Yc(e)||f)?R(Noe,{value:u,onChange:p}):null;return h?R(yt,{label:c("Fill"),icon:R(hw,{}),value:h.hex,caption:h.words,onChange:o,changed:!0,onReset:w,resetTo:C,choices:I,children:b}):R(Zc,{label:c("Fill"),icon:R(hw,{}),value:e,inherited:S,resetTo:C,onChange:o,onReset:w,choices:I,children:b})}function Noe({value:e,onChange:o}){return ud({options:Zu.map(t=>({label:t.label,value:t.value,hint:t.hint})),value:e,onChange:o,ariaLabel:c("Fill")})}function Doe(e,o,t){if((e?.content??[]).some(n=>n?.props?.id===o))return Wr(t);let r=aR(e,o);if(r.length===0)return null;let a=Wr(Wn(t));if(a!==null)return a;for(let n=r.length-1;n>0;n-=1){let s=Wr(Wn(r[n].sectionAccent));if(s!==null)return s}return Wr(r[0].sectionAccent)}function Ow(){let e=vo(fe().theme),[o]=Sr("sectionAccent"),t=null;try{let{appState:a,selectedItem:n}=eh(i=>i),s=n?.props?.id?String(n.props.id):void 0;t=s?Doe(a?.data,s,o):null}catch{t=null}let r=t!==null&&e.themes[t]?t:e.selected;return{colors:gt(e.themes[r]),n:r+1}}function YDe(){return yd()}var HB={top:R(WQ,{}),right:R(HQ,{}),bottom:R(DQ,{}),left:R(MQ,{})};function WB(e,o,t,r,a,n,s){let i=u=>o.find(p=>p.value===u),l=u=>({value:u,label:"",disabled:!0,title:r}),d=u=>{let p=o.find(h=>h.cell===u);if(!p)return l(`missing-${u}`);let m=n?.[u];return m?{value:p.value,label:p.label,icon:m}:{value:p.value,label:p.label}},f=[l("corner-top-left"),d("top"),l("corner-top-right"),d("left"),l("centre"),d("right"),l("corner-bottom-left"),d("bottom"),l("corner-bottom-right")];return{type:"custom",render:({value:u,onChange:p})=>{let m=o.some(h=>h.value===u)?u:t;return R(go,{label:c(e),icon:a,value:i(m)?.label?c(i(m).label):s?c(s):"",children:vee(c,{label:e,value:m,onChange:p,points:f})})}}}function qDe(e,o,t){return{type:"custom",options:o,render:({value:r,onChange:a,field:n})=>R(AR,{label:e,options:(n.options??o).map(s=>({...s,label:c(s.label)})),value:Array.isArray(r)?r:[],onChange:a,...t?{emptyLabel:c(t)}:{}})}}function XDe(e,o={}){return{type:"custom",render:({value:t,onChange:r})=>{let a={value:t,onChange:r,...o};return R(e,{...a})}}}var Moe={image:"Image",video:"Video"},ZDe=$n.map(e=>({label:Moe[e],value:e}));function JDe(e,o,t){let r=Object.keys(nb).map(a=>({label:nb[a],value:a,picture:t[a]}));return{type:"custom",...rn({},{type:"radio",label:e,options:r.map(a=>({value:a.value,label:a.label}))}),render:({onChange:a})=>R(Woe,{label:e,icon:o,options:r,onChange:a})}}function Hoe(e,o,t){let r=I1(e,o,t);if(r!==void 0)return r==="save-makes-frame"?c("A frame is made from this video when you save the page."):r==="starts-dark"?c("This video starts dark, so no frame was made. The slide shows its background colour while the video loads. Choose Image to show a picture."):r==="outside"?c("This video is on another website, so no frame can be made. The slide shows its background colour while the video loads. Choose Image to show a picture."):r==="unsupported"?c("This video's file type gives no frame. The slide shows its background colour while the video loads. Choose Image to show a picture."):r==="failed"?c("No frame could be made from this video. It is tried again the next time you save the page. The slide shows its background colour while the video loads."):r==="image-no-frame"?c("The slide shows your Image while the video loads, because this video has no frame."):void 0;let a=g1(e);return a==="frame-missing-image"?c("This video has no frame yet. The slide shows its image until one is made."):a==="frame-missing-surface"?c("This video has no frame yet. The slide shows its background colour until one is made."):a==="image-missing-frame"?c("No image yet. The slide shows the video's frame until you choose one."):a==="image-missing-surface"?c("No image yet. The slide shows its background colour until you choose one."):void 0}function Woe({label:e,icon:o,options:t,onChange:r}){let a=cs(),n=a?.values??{},s=Mc(n),i=tB(PQ),l=Ru(i?.docId??null),d=null;try{d=eh(u=>u.appState.data)}catch{d=null}let f=D1(a?.id,d,l);return R(go,{label:c(e),icon:ds(o),hint:Hoe(n,f,i?.hasUnsavedEdits??!1),children:ud({options:t,value:s,onChange:r,ariaLabel:e})})}function QDe(e,o,t,r={}){let a={type:"custom",[OQ]:!0,render:({value:n,onChange:s,name:i})=>R(_R,{value:n||"",onChange:s,fieldKey:i,label:e,accept:o,placeholder:t,focusKey:r.focus,focusWhen:r.focusWhen,frameKey:r.frame}),...r.focus?{focusKey:r.focus}:{},...r.focusWhen?{focusWhen:r.focusWhen}:{}};return r.focus?zo("each",a):a}var eMe={HeroSingle:[Un.image],HeroSlide:["videoFrame","videoFramePhone"],ContactLocations:["locations[].photo"],ProcessSteps:["steps[].image"]};function $oe(e){let o=c(e.status??"");return e.ok&&typeof e.lat=="number"&&typeof e.lng=="number"?`${o} \xB7 ${e.lat.toFixed(4)}, ${e.lng.toFixed(4)}`:o}function oMe({value:e,onChange:o,label:t}){let r=e||{},a=cs(),n=a?a.values!==a.node.props:!0,s=!!r.pending&&n,i=!!r.pending&&!n,l=!!Ge(wee()).geocode,d=rB(),f=(u,p)=>o({...r,[u]:p??void 0});return ba(wa,{children:[R(go,{label:c(t),icon:R(KF,{}),action:l?R(Sw,{content:c("Find from the address (OpenStreetMap)"),children:R(hB,{"aria-label":c("Find from the address"),"aria-busy":s||void 0,disabled:s,onClick:()=>o({...r,pending:!0,ok:!1,status:"Finding\u2026"}),children:R(KQ,{})})}):void 0,children:l&&r.status?R(UA,{compact:!0,oneLine:!0,spaced:!1,status:s?"busy":r.ok&&!i?"found":"notfound",statusText:s?c("Finding\u2026"):i?c(Vb):c(r.status),hint:$oe(r)}):null}),R(go,{label:c("Enter by hand"),labelId:d,icon:R($Q,{}),action:R(bw,{checked:!!r.manual,onChange:u=>o({...r,manual:u}),ariaLabelledBy:d})}),r.manual&&R(go,{label:c("Latitude, longitude"),icon:R(KF,{}),children:ba("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:8,width:"100%",minWidth:0},children:[R(YF,{value:typeof r.lat=="number"?r.lat:null,onChange:u=>f("lat",u),min:-90,max:90,step:1e-4,placeholder:c("Latitude")}),R(YF,{value:typeof r.lng=="number"?r.lng:null,onChange:u=>f("lng",u),min:-180,max:180,step:1e-4,placeholder:c("Longitude")})]})})]})}function Uoe(e,o){return o===null||o<0||o>=e.length?"":e[o]?.text??""}function zoe(e,o,t){let r=e.map(a=>({text:a?.text??""}));return o===null||o<0||o>=e.length?r:r.map((a,n)=>n===o?{text:t}:a)}function Goe(e,o,t){if(t===null||t>=o.length)return null;for(let r=0;r<t;r+=1)if(e[r]!==o[r])return null;return e[t]!==o[t]&&o.includes(e[t])||e[t]!==o[t]&&o.length!==e.length?null:t}var Aw={label:"Ticker items",icon:R(GQ,{})};function tMe(e,o,t,r){return{type:"custom",[Sa]:{control:"textList",label:e,placeholder:t,itemKey:"text",rendering:r},...rn({},{...bB.textList,label:e}),render:({value:a,onChange:n})=>R(Rw,{label:e,icon:ds(o),items:Array.isArray(a)?a:[],placeholder:t,onChange:n,markup:r==="markup"})}}function Rw({label:e,icon:o,items:t,placeholder:r,onChange:a,markup:n=!1}){let s=md(null),[i,l]=hd(null),d=u=>u.map(p=>({text:p?.text??""})),f=u=>{let p=Goe(t,u,i);p===null&&(s.current=null),l(p),a(d(u))};return R(ree,{label:c(e),icon:o,noun:c("item"),items:t,onChange:f,newItem:()=>({text:""}),open:null,onOpen:()=>{},renderItem:()=>null,above:n?R(Xb,{target:s,value:Uoe(t,i),onChange:u=>a(zoe(t,i??-1,u)),disabled:i===null,label:i===null?c("Formatting \u2014 click a row first"):c("Formatting \u2014 row {n}",{n:i+1})}):void 0,renderRow:(u,p,m)=>R("input",{type:"text",className:n&&i===p?"sf-list-marking":void 0,value:u?.text??"",placeholder:c(r),"aria-label":c("{label} {n}",{label:c(e),n:p+1}),onChange:h=>m({text:h.target.value}),onFocus:h=>{s.current=h.currentTarget,l(p)}})})}function $B(e,o){let t=`${e.label} \u2014 row ${o+1}`;return ms({control:"plainText",label:t,placeholder:e.placeholder,offPage:e.offPage},{type:"custom",render:({value:r,onChange:a})=>R(us,{value:r,onChange:a,label:c("{label} \u2014 row {n}",{label:c(e.label),n:o+1}),placeholder:e.placeholder,hideable:!1,markup:e.rendering==="markup"})})}function UB(e){return{_gCards:Yt("Cards"),coverIndex:pt("Cover image",R(zQ,{}),TR,String(1),e?.coverHint??"A card's opening picture \u2014 a card pinned to a finish keeps its own."),imageBackground:Gee("Image background",Mm),cardImage:GB()}}function rMe(){return{outline:pt("Card outline",R(VQ,{}),kR,vR),indexBadge:pt("Card number",R(lB,{}),tS,oS),showBadge:DB("Product badge",!0,R(Nb,{noun:"tag"}))}}function zB(e){let o=e?.defaults??{showCardSizes:!0,showCardBuy:!0,showCardPage:!0},t=a=>({...Qm,label:Xm.find(n=>n.id===a).label}),r=a=>rn(xw(mw),t(a));return{_gShowOnCard:Yt("Show on a card"),[mw]:rn({type:"custom",render:()=>R(joe,{rest:{showCardPrice:!0,showCardFinishes:!0,...o}})},t(mw)),showCardFinishes:r("showCardFinishes"),showCardSizes:r("showCardSizes"),showCardBuy:r("showCardBuy"),showCardPage:r("showCardPage")}}var mw="showCardPrice",Xm=[{id:"showCardPrice",label:"Price"},{id:"showCardFinishes",label:"Finish swatches"},{id:"showCardSizes",label:"Sizes"},{id:"showCardBuy",label:"Buy button"},{id:"showCardPage",label:"Page button"}];function joe({rest:e}){let o=wo(),t=hr(),r=s=>typeof o[s]=="boolean"?o[s]:void 0,a=s=>r(s)??e[s],n=Xm.some(({id:s})=>r(s)!==void 0&&r(s)!==e[s]);return R(cl,{parts:Xm,changed:n,shown:a,onPress:(s,i)=>t({[s]:i}),onReset:()=>t(Object.fromEntries(Xm.map(({id:s})=>[s,void 0])))})}function aMe(e,o="display"){let t=on(o);return{[o]:zo("desktop",{type:"custom",render:({value:r,onChange:a})=>R(cl,{parts:e,changed:cR(r),shown:n=>rm(r,n),onPress:(n,s)=>a(fR(r,n,s)),onReset:()=>a(void 0)})}),[t]:zo("mobile",{type:"custom",render:({value:r,onChange:a})=>R(Koe,{parts:e,desktopKey:o,value:r,onChange:a})})}}function cl({parts:e,changed:o,shown:t,onPress:r,onReset:a,detail:n,disabledReason:s}){let i=c("Display");return R(go,{label:i,icon:R(LQ,{}),changed:o,action:R(tt,{words:de()?.panel,label:i,changed:o,detail:n,onReset:a}),children:R(nee,{label:i,items:e.map(l=>({id:l.id,label:c(l.label),shown:t(l.id),...s?{disabled:!0,disabledReason:c(s)}:{}})),onChange:r})})}function Koe({parts:e,desktopKey:o,value:t,onChange:r}){let a=wo()[o];return R(cl,{parts:e,changed:dR(t),shown:n=>Kb(a,t,n),onPress:(n,s)=>r(pR(t,n,s)),onReset:()=>r(sm),detail:c("the same as Desktop")})}function GB(e=iA){return Ro("Card image",R(sB,{}),lt,Ha,sA,lt,e,{clear:{hint:lt},hint:"Rounds the picture. The card's own corner is in Styles."})}function Voe(){return ls(Pb,"cardImage")}function nMe(){return{cardImage:GB(Pb),...Voe()}}function sMe(){return Tw({sidesKey:"cornerSides",row:cA,step:dA,useFollowed:()=>lt,mark:R(Yoe,{label:fA}),hint:c("Rounds the picture. Left alone it stays square.")})}function Yoe({label:e,changed:o=!1,onReset:t=()=>{}}){return R(tt,{words:de()?.panel,label:c(e),changed:o,onReset:t})}function iMe(){return{type:"custom",render:({value:e,onChange:o})=>R(Joe,{value:typeof e=="string"?e:"",onChange:o})}}var oB="own";function lMe(){let e=[{value:oB,label:"Layout's own",picture:dw(Array.from({length:8},()=>[3,1]))},...Object.entries(Hu).map(([o,t])=>({value:o,label:t.label,picture:dw([...t.phone,...t.phone])}))];return zo("mobile",lw("Layout",R(iB,{}),e,oB,{columns:2,cell:GF}))}function qoe({layout:e,width:o}){let t=Ab(e),r=t?`${t[0]}/${t[1]}`:void 0;return R("span",{"aria-hidden":"true",style:{display:"grid",width:o,gridTemplateColumns:"repeat(12, minmax(0, 1fr))",gridAutoRows:r?"auto":6,gridAutoFlow:"row dense",gap:2},children:IA(e).map(([a,n],s)=>R("i",{className:"block rounded-xs bg-current opacity-60",style:{gridColumn:`span ${a}`,gridRow:`span ${n}`,aspectRatio:r}},s))})}var Xoe={width:"3.5rem",height:"2.5rem",words:!1},Zoe=200;function Joe({value:e,onChange:o}){let[t,r]=hd(null),[a,n]=hd(4),s=md(null);TQ(()=>{let m=s.current;if(!m||typeof ResizeObserver!="function")return;let h=()=>n(m.getBoundingClientRect().width>=Zoe?4:3);h();let I=new ResizeObserver(h);return I.observe(m),()=>I.disconnect()},[]);let i=e?$(jc,e):void 0,l=i?e:"",d=_b(t,l),f=_b(t,"").length,u=zu("no-symbol"),p=[{value:"",label:c("Not chosen"),icon:zF(u,c("Not chosen"))},...d.map(m=>({value:m,label:c(jc[m].label),icon:R(qoe,{layout:jc[m],width:40})}))];return R(go,{label:c("Layout"),icon:R(iB,{}),value:i?c(i.label):void 0,children:R("div",{ref:s,style:{flex:"1 1 auto",minWidth:0},children:R(uB,{label:c("Layout"),value:l,options:p,onChange:o,columns:a,cell:Xoe,header:ba("div",{className:"mb-2 flex flex-col gap-1",style:{minWidth:"11rem"},children:[R("span",{className:"text-2xs text-ink-faint",children:c("Photos in a row")}),R(JQ,{options:[{id:"all",label:c("All")},...hA.map(m=>({id:String(m),label:String(m)}))],value:t===null?"all":String(t),ariaLabel:c("Photos in a row"),onChange:m=>r(m==="all"?null:Number(m))}),R("span",{className:"text-2xs text-ink-faint",children:c("{n} of {total} layouts",{n:f,total:Eb.length})})]})})})})}import{decodePartId as hte}from"efficient-easel/draw";import{decodePartId as wd,encodePartId as qr}from"efficient-easel/draw";import{LINK_FIELD_MARKER as eN,SCAFFOLD_FIELD_MARKER as JB,TEXT_FIELD_MARKER as lh}from"efficient-easel/draw";import{readHidable as oN}from"efficient-easel/draw";import{SCALAR_TEXT_CONTROLS as nte}from"efficient-easel/draw";import{TEXT_FIELD_MARKER as ate}from"efficient-easel/draw";import{TEXT_FIELD_MARKER as jB}from"efficient-easel/draw";import{readHidable as KB}from"efficient-easel/draw";import{SCALAR_TEXT_CONTROLS as Qoe}from"efficient-easel/draw";var ete=Qoe,ote=["text","textarea"],tte=["textarea","plainTextarea"];function rte(e){return!e||typeof e!="object"?null:e[jB]?.control??null}function dl(e){let o=rte(e);return o&&ete.includes(o)?o:null}function ah(e){return tte.includes(e)}function VB(e){return!e||typeof e!="object"?void 0:e[jB]?.placeholder}function nh(e){return KB(e).text}function Lw(e,o,t){return ote.includes(e)?{text:t,hidden:KB(o).hidden}:t}function YB(e,o,t,r){return nh(e[o])===r?null:{...e,[o]:Lw(t,e[o],r)}}function Yr(e,o){return o?`${e}[${o.index}].${o.rowKey}`:e}function Cr(e){let o=/^([A-Za-z0-9_$]+)\[(\d+)\]\.([A-Za-z0-9_$]+)$/u.exec(e);return o?{key:o[1],row:{index:Number(o[2]),rowKey:o[3]}}:{key:e,row:null}}function sh(e){if(!(!e||typeof e!="object"))return e[ate]}function Fw(e){if(!e||typeof e!="object")return null;let o=e.arrayFields;return o&&typeof o=="object"?o:null}function qB(e,o){if(!Array.isArray(o))return[];let t=sh(e),r=[];if(t?.control==="textList"){let n=t.itemKey??"text";return o.forEach((s,i)=>{let l=be(s?.[n]);l&&r.push({row:{index:i,rowKey:n},text:l})}),r}let a=Fw(e);return a?(o.forEach((n,s)=>{for(let[i,l]of Object.entries(a)){if(!dl(l))continue;let d=nh(n?.[i])||sh(l)?.placeholder||"";d&&r.push({row:{index:s,rowKey:i},text:d})}}),r):[]}function Sd(e,o){if(Array.isArray(e))return e[o.index]?.[o.rowKey]}function Bw(e,o,t,r){let a=e[o];return!Array.isArray(a)||t.index<0||t.index>=a.length?null:{...e,[o]:a.map((n,s)=>s===t.index?{...n,[t.rowKey]:r}:n)}}function XB(e,o,t,r,a){let n=Sd(e[o],t);return nh(n)===a?null:Bw(e,o,t,Lw(r,n,a))}function ZB(e,o){return o?`${e} \xB7 row ${o.index+1}`:e}var co="data-sf-part",sn="data-sf-region-part",Nw="data-sf-part-row";function tN(e,o){return`${e}[${o}]`}var rN="data-sf-part-kind",Dw="data-sf-part-style-owner",Cd="data-sf-part-style-kind";function vd(e){for(let o=e;o;o=o.parentElement){let t=o.getAttribute(Dw),r=o.getAttribute(Cd);if(t&&r)return{owner:t,kind:r};if(o.getAttribute("data-easel-block"))return null}return null}var QB=2;function nn(e){return sa(e).replace(/\s+/gu,"")}function ih(e,o,t){let r=e[lh];if(r){if(r.control==="textList"){let n=r.itemKey??"text";if(!Array.isArray(o))return;for(let s of o){let i=s?.[n];typeof i=="string"&&t.push(i)}return}let{text:a}=oN(o);a?t.push(a):r.placeholder&&t.push(r.placeholder);return}if(!e[eN]){if(e.type==="text"||e.type==="textarea"){let a=be(o);a&&t.push(a);return}if(e.arrayFields&&Array.isArray(o)){for(let a of o)for(let[n,s]of Object.entries(e.arrayFields))ih(s,a?.[n],t);return}if(e.objectFields&&o&&typeof o=="object")for(let[a,n]of Object.entries(e.objectFields))ih(n,o[a],t)}}function Mw(e){if(!e||typeof e!="object")return!1;let o=e;return o[eN]?!1:!!o[lh]||o.type==="text"||o.type==="textarea"}function ch(e,o){let t=e[lh];return t?.label?t.label:typeof e.label=="string"?e.label:o}function kd(e){let o=e.indexOf(" (");return(o>0?e.slice(0,o):e).trim()}function aN(e,o,t){if(!e)return[];let r=[];for(let[a,n]of Object.entries(e)){if(!n||typeof n!="object"||Xn(a))continue;let s=n,i=[];ih(s,o?.[a],i),!i.length&&s[JB]!==void 0&&ih(s,s[JB],i);let l=ch(s,a);if(t?.(a)&&Mw(s)){i.length&&r.push({key:a,label:l,texts:[],keyed:!0});continue}let d=new Set;for(let{row:p,text:m}of qB(s,o?.[a])){let h=nn(m);h.length<QB||(d.add(h),r.push({key:a,label:l,texts:[h],row:p}))}let f=new Set(d),u=[];for(let p of i){let m=nn(p);m.length<QB||f.has(m)||(f.add(m),u.push(m))}u.length&&r.push({key:a,label:l,texts:u})}return r}function Hw(e){return!e.offPage&&!e.hidden&&e.panelOnly!==!0}var ste=nte;function nN(e,o){if(!o||typeof o!="object"||Xn(e)||gR(o))return null;let t=o[lh];return!t||!ste.includes(t.control)?null:t}function Ww(e,o){let t=nN(e,o);return t!==null&&t.identifier!==!0}function sN(e,o){if(!e)return[];let t=[];for(let[r,a]of Object.entries(e)){let n=nN(r,a);if(!n)continue;let{text:s,hidden:i}=oN(o?.[r]);if(Hw({offPage:n.offPage===!0,hidden:!!i,panelOnly:ji(a)}))continue;let l=s||n.placeholder||"",d=sa(l).replace(/\s+/gu," ").trim();t.push({key:r,label:kd(ch(a,r)),preview:d,offPage:n.offPage===!0,identifier:n.identifier===!0,hidden:!!i})}return t}function fl(e,o){let t=sh(e);return t?.control==="textList"?o.rowKey===(t.itemKey??"text")?$B(t,o.index):null:Fw(e)?.[o.rowKey]??null}function dh(e,o,t){let r=e.node.props,{key:a,row:n}=Cr(e.propKey),s=n?XB(r,a,n,e.kind,o):YB(r,a,e.kind,o);return s?(t(e.zone,e.index,{...e.node,props:s}),!0):!1}import{readHidable as cN}from"efficient-easel/draw";var $w=e=>String(e+1).padStart(2,"0"),DMe=[{label:"01 \xB7",value:"two-digit"},{label:"1.",value:"plain"}],Uw="two-digit",iN=e=>e==="plain"?"plain":Uw,fh=(e,o)=>e==="plain"?`${o+1}.`:$w(o);var jw="Contents",zw="Flex",lN="Text",ite="numberForm",lte="_contentsEntries",cte="_kickerNumber",dN="data-sf-kicker-number",dte=e=>cN(e).text.trim(),fN=e=>Kn(e?.anchor),Gw=e=>String(e.props?.id??""),fte=e=>!cN(e.props?.text).hidden&&!Ri(e.props)&&!xt(e.props),Td=e=>di(e);function pN(e){for(let o of Td(e))for(let t of o){if(ua(t.props??{}))continue;if(t.type===lN&&fte(t))return t;if(t.type===lN)continue;let r=pN(t);if(r)return r}}function uN(e){return Td(e).some(o=>o.some(t=>t&&!ua(t.props??{})&&(t.type===jw||uN(t))))}var mN=e=>e.type===zw&&Kr(zw,e.props?.direction)==="row";function hN(e){return Td(e).some(o=>o.some(t=>t&&!ua(t.props??{})&&(t.type===jw||!mN(t)&&hN(t))))}function pte(e){let o=[],t=(r,a)=>{for(let n of r){if(!n||ua(n.props??{}))continue;if(n.type===jw){a.open={contents:n,sections:a.waiting??[]},a.waiting=null,o.push(a.open);continue}if(mN(n)&&hN(n)){let i={inRow:!0,open:null,waiting:[]};for(let l of Td(n))t(l,i);a.inRow||(a.open=null);continue}let s=a.open?.sections??a.waiting;if(n.type===zw&&fN(n.props)&&s&&!uN(n)){s.push({box:n,kicker:pN(n)});continue}for(let i of Td(n))t(i,a)}};return t(e,{inRow:!1,open:null,waiting:null}),o}function ute(e){return e.map(o=>({label:o.kicker?sa(dte(o.kicker.props?.text)):"",anchor:fN(o.box.props)}))}function Kw(e){let o=e?.length?pte(e):[];if(!o.length)return null;let t=new Map,r=new Map;for(let a of o){let n=Gw(a.contents);n&&t.set(n,ute(a.sections));let s=iN(a.contents.props?.[ite]);a.sections.forEach((i,l)=>{let d=i.kicker?Gw(i.kicker):"";d&&r.set(d,fh(s,l))})}return{entries:t,numbers:r}}var YMe=e=>e.endsWith(".")?`${e} `:`${e} \xB7 `;function xN(e){let o=e;if(!o?.content?.length)return e;let t=Kw(o.content);if(!t)return e;let{entries:r,numbers:a}=t,n=s=>{let i=ho(s,m=>so(m,n)),l=i.props??{},d=i!==s,f=Gw(s),u=f?r.get(f):void 0;u&&(l={...l,[lte]:u},d=!0);let p=f?a.get(f):void 0;return p&&(l={...l,[cte]:p},d=!0),d?{...s,props:l}:s};return{...o,content:o.content.map(n)}}var xte=`[${dN}]`,gte=["bold","italic","underline","strike","link","sup","sub"],Ite=["bullet","number"];function qw(e,o){return e?[...gte,...o?Ite:[]]:[]}function gN(e,o){let t=hte(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:i,row:l}=Cr(a),d=o.components[n.type]?.fields?.[i],f=l?fl(d,l):d,u=dl(f);if(!u)return null;let p=n.props??{};if(bS(p)!==null||!l&&Vp(n.type,p,i)||n.type==="Text"&&i==="text"&&Ri(p)||l&&!(Array.isArray(p[i])&&l.index<p[i].length))return null;let m=l?Sd(p[i],l):p[i];return{node:n,selector:s,propKey:a,kind:u,stored:m,offPage:oh(f),panelOnly:ji(f)}}function ph(e,o){let t=gN(e,o);if(!t)return null;let{text:r,hidden:a}=an(t.stored);if(!Hw({offPage:t.offPage,hidden:!!a,panelOnly:t.panelOnly}))return null;let n=ah(t.kind);return{partId:e,value:r,rules:Pp,multiline:n,skip:xte,offered:qw(t.kind!=="plainText",n),write:s=>{let i=gN(e,o);i&&dh({node:i.node,propKey:i.propKey,kind:i.kind,zone:i.selector.zone,index:i.selector.index},s,o.replace)}}}function Xw(e,o,t){return e?.isConnected&&e.getAttribute(co)===t?e:o?.querySelector(`[${co}="${uh(t)}"]`)??null}function uh(e){return e.replace(/["\\]/g,"\\$&")}function IN(e){let o=e.activeElement;return o?o.tagName==="IFRAME"||!!o.closest(".es-canvas"):!1}var Vw=null,Yw=new Set;function yte(){return Vw}function Zw(e){if(e!==Vw){Vw=e;for(let o of Yw)o()}}function bte(e){return Yw.add(e),()=>{Yw.delete(e)}}function yN(){return mte(bte,yte,()=>null)}function bN(e,o){if(e.outer)return null;let t=o.getItemById(e.ownerId);if(!t)return null;let r=d_(t.type);return!r||eo(t.props)?null:{node:t,rows:r}}function kte(e,o){let t=bN(e,o),r=o.getItemById(e.nodeId);if(!t||!r)return null;let a=x_(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:Ste(e.ownerId,Yr(t.rows,{index:e.index,rowKey:a}))}function mh(e,o){let t=kte(e,o);return t?ph(t,o):null}function SN(e,o){return mh(e,o)?.value}function wN(e,o){let t=mh(e,o);return t?(t.write(e.text),!0):!1}function CN(e,o){let t=bN(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 i;switch(e.action){case"addAfter":{let l=o.components[t.node.type]?.fields?.[t.rows];i=wte(n,s+1,{...l?.defaultItemProps??{}});break}case"moveEarlier":case"moveLater":{let l=e.action==="moveEarlier"?s-1:s+1;if(l<0||l>=n.length)return!1;i=Cte(n,s,l);break}case"delete":i=vte(n,s);break;default:return!1}return o.replace(r.zone,r.index,{...t.node,props:{...a,[t.rows]:i}}),!0}import{jsx as $e,Fragment as nSe,jsxs as II}from"react/jsx-runtime";import{Fragment as sSe,useEffect as Sj,useMemo as wj,useRef as iSe,useState as Xs}from"react";import{useScreenDocument as Pj}from"efficient-easel/screen/components/ScreenDocumentContext";import{UiIcon as vP}from"efficient-easel/draw/client";import lSe from"efficient-easel/screen/components/SidePanelHead";import{jsx as Ee,Fragment as Il,jsxs as Ss}from"react/jsx-runtime";import{useEasel as fM,useRootFields as ine}from"efficient-easel/easel";import{Inspector as lne}from"efficient-easel/fields";import{SettingsGroup as cne}from"efficient-easel/panel";import{useEffect as dne,useRef as fne,useState as YC}from"react";import{jsx as hs,Fragment as _te,jsxs as Ote}from"react/jsx-runtime";import{useState as PN}from"react";import{SettingsDefaultReset as Ate,SettingsField as Rte}from"efficient-easel/panel";import{useEaselStrings as Lte}from"efficient-easel/strings";import{AddIcon as Fte}from"efficient-easel/icons";import{Button as Bte}from"efficient-shell/ui";import{iconOf as Nte,noGlyph as Dte}from"efficient-easel/screen/lib/document/box-fields";import{jsx as hh,Fragment as Tte,jsxs as vN}from"react/jsx-runtime";import{Button as kN,Dialog as Pte}from"efficient-shell/ui";function Ete(e){return ct("This site has {n} color theme of its own. Clearing takes them away and puts back the four the shop supplies.","This site has {n} color themes of its own. Clearing takes them away and puts back the four the shop supplies.",e)}function TN({count:e,onCancel:o,onConfirm:t}){return vN(Pte,{open:!0,onClose:o,role:"alertdialog",size:"sm",title:c("Clear this site\u2019s colors?"),footer:vN(Tte,{children:[hh(kN,{variant:"secondary",onClick:o,children:c("Cancel")}),hh(kN,{variant:"danger",onClick:t,children:c("Clear colors")})]}),children:[hh("p",{children:Ete(e)}),hh("p",{className:"mt-2 font-medium",children:c("This cannot be undone.")})]})}var Mte=Dte("the row's whole content is an action; the gutter names a subject and this row has none \u2014 the button's label is the name GG, 2026-09-23"),Hte="Reset color",Wte={selected:0,themes:[]};function $te(e){e(Wte)}function EN({value:e,onChange:o}){let t=e?.themes??[],r=t.length===0,a=vo(e),[n,s]=PN(!1),i=Lte(),[l,d]=PN(null),f=(S,C)=>{o({...a,themes:a.themes.map((b,y)=>y===S?C:b)})},u=Ci(a).accent,p=new Set(a.themes.map(S=>S.brandInk).filter(Boolean)),m=T_.filter(S=>!p.has(S)).map(S=>P_(u,S)),h=[...a.themes,...m],I=S=>{if(S<a.themes.length)return o({...a,selected:S});let C=[...a.themes,h[S]];o({...a,themes:C,selected:C.length-1})},w=()=>{let S=[...a.themes,{...gt(a.themes[a.selected])}];o({...a,themes:S,selected:S.length-1}),d(S.length-1)};return Ote(_te,{children:[r?null:hs(Rte,{label:c(Hte),icon:Nte(Mte),labelId:"sf-theme-reset",action:hs(Ate,{label:c("all theme colors"),words:i.panel,changed:!0,onReset:()=>s(!0)})}),n&&hs(TN,{count:t.length,onCancel:()=>s(!1),onConfirm:()=>{s(!1),$te(o)}}),hs("div",{className:"sf-theme-list",role:"radiogroup","aria-label":c("Theme"),children:h.map((S,C)=>hs(pm,{index:C,colors:S,selected:C===a.selected,open:l===C&&C<a.themes.length,editable:C<a.themes.length,onPick:()=>I(C),onEdit:()=>d(b=>b===C?null:C),onChangeColors:b=>f(C,b)},C))}),hs(Bte,{variant:"secondary",leftIcon:hs(Fte,{}),onClick:w,className:"sf-theme-add",children:c("Add new theme")})]})}import{jsx as xh}from"react/jsx-runtime";import{SettingsDefaultReset as Ute,SettingsField as zte}from"efficient-easel/panel";import{SquareIcon as Gte}from"efficient-easel/icons";var jte="Applies to panels, cards, inputs and buttons. Round things \u2014 color swatches, switches, status dots \u2014 stay round.",Jw="Corners";function _N({value:e,onChange:o,length:t}){let r=e===null;return xh(zte,{label:c(Jw),icon:xh(Gte,{}),changed:!r,action:xh(Ute,{words:de()?.panel,label:c(Jw),changed:!r,detail:c("the built-in corners"),onReset:()=>o(null)}),hint:c(jte),children:xh(St,{min:t?.grid.min??lt,max:t?.grid.max??Ha,step:t?.grid.step??1,value:e,...e===null?{}:{suffix:t?.unit??"px",...t?{units:t.units}:{}},placeholder:lt,placeholderWord:"Auto",onClear:()=>o(null),ariaLabel:c(Jw),onChange:o})})}import{jsx as Pd}from"react/jsx-runtime";import{SettingsDefaultReset as Kte,SettingsField as Vte}from"efficient-easel/panel";import{IconPicker as Yte}from"efficient-shell/ui";import{ShadowIcon as qte}from"efficient-easel/icons";import{SHADOW_PREVIEW as Xte}from"efficient-easel/screen/lib/document/shadow-values";var Qw={none:"None",soft:"Soft",lifted:"Lifted"},Zte="Applies to cards \u2014 products, brands, journal entries and filter cells. Round things like swatches and status dots are never shadowed.";function ON({value:e,onChange:o}){let t=e===null,r=e??Uy;return Pd(Vte,{label:c("Card shadow"),icon:Pd(qte,{}),value:c(Qw[r]),changed:!t,action:Pd(Kte,{words:de()?.panel,label:c("Card shadow"),changed:!t,detail:c(Qw[Uy]),onReset:()=>o(null)}),hint:c(Zte),children:Pd(Yte,{label:c("Card shadow"),value:r,options:z_.map(a=>({value:a,label:c(Qw[a]),icon:Pd("span",{className:"sf-shadow-chip border border-line bg-surface",style:{boxShadow:Xte[a]}})})),onChange:o})})}import{jsx as AN}from"react/jsx-runtime";import{ShadowIcon as Jte}from"efficient-easel/icons";import{DEFAULT_SHADOW_COLOR as RN}from"efficient-easel/screen/lib/document/shadow-values";var Qte="Most useful on a dark theme, where a black shadow cannot be seen. Also used by the Lift hover, even with the card shadow off.";function LN({value:e,onChange:o}){let t=e===null;return AN(Zc,{label:c("Shadow color"),icon:AN(Jte,{}),value:e??"",inherited:RN,resetTo:RN,onChange:o,onReset:()=>o(null),hint:c(Qte)})}import{jsx as Ih}from"react/jsx-runtime";import{SettingsDefaultReset as ere,SettingsField as ore}from"efficient-easel/panel";import{AlignSeparateIcon as tre}from"efficient-easel/icons";function gh(e,o){return e==="tablet"?null:e==="mobile"?o.phone:o.desktop}var rre="The space between the blocks inside a row, a grid or a box. Auto means each one keeps the spacing it already has.",are="The space between the blocks inside a row, a grid or a box, on a phone. Until you set it, a phone uses half the desktop gap.",eC="Block gap",FN=Zi.Grid;function BN(e,o){return gh(e,{desktop:{key:"block_gap",value:o.gap,followsPx:null},phone:{key:"block_gap_phone",value:o.phone,followsPx:o.gap===null?null:VS(o.gap)}})}function NN({value:e,onChange:o,followsPx:t=null,length:r,followsUnit:a="px"}){let n=e===null,s=t===null?null:`${t}${a}`,i=a==="px"&&(r?.unit??"px")==="px",l=t===null?FN:i?cd(t)??FN:t;return Ih(ore,{label:c(eC),labelId:"sf-block-gap",icon:Ih(tre,{}),changed:!n,action:Ih(ere,{words:de()?.panel,label:c(eC),changed:!n,detail:s??c("each block's own spacing"),onReset:()=>o(null)}),hint:c(s===null?rre:are),children:Ih(St,{min:(r?.grid??Kt).min,max:(r?.grid??Kt).max,step:(r?.grid??Kt).step,value:e,...e===null&&t===null?{}:{suffix:r?.unit??"px",...r?{units:r.units}:{}},placeholder:l,...t===null?{placeholderWord:"Auto"}:i&&t===l?{}:{placeholderWord:String(t)},onClear:()=>o(null),ariaLabel:c(eC),onChange:o})})}import{jsx as yh}from"react/jsx-runtime";import{SettingsDefaultReset as nre,SettingsField as sre,SettingsSegmented as ire}from"efficient-easel/panel";import{HoverIcon as lre}from"efficient-easel/icons";var oC={none:mi.none,lift:mi.lift,highlight:uE},cre="What a card does when a shopper points at it \u2014 or taps it, on a phone. Highlight is the effect your cards already use.";function DN({value:e,onChange:o}){let t=e===null,r=e??zy;return yh(sre,{label:c("Hover effect"),icon:yh(lre,{}),value:c(oC[r]),changed:!t,action:yh(nre,{words:de()?.panel,label:c("Hover effect"),changed:!t,detail:c(oC[zy]),onReset:()=>o(null)}),hint:c(cre),children:yh(ire,{options:G_.map(a=>({id:a,label:c(oC[a])})),value:r,ariaLabel:c("Hover effect"),onChange:o})})}import{jsx as bh}from"react/jsx-runtime";import{SettingsDefaultReset as dre,SettingsField as fre,SettingsSegmented as pre}from"efficient-easel/panel";import{DropIcon as ure}from"efficient-easel/icons";var tC="Photography",MN={shot:"As shot",mono:"Black and white"},rC=[{grayscale:!1,label:MN.shot},{grayscale:!0,label:MN.mono}],mre="Black and white photographs return to color on hover. Wheels and tyres keep their real finish either way.";function HN({value:e,onChange:o}){let t=e===null,r=e??!1;return bh(fre,{label:c(tC),icon:bh(ure,{}),value:c(rC.find(a=>a.grayscale===r).label),changed:!t,action:bh(dre,{words:de()?.panel,label:c(tC),changed:!t,detail:c(rC.find(a=>!a.grayscale).label),onReset:()=>o(null)}),hint:c(mre),children:bh(pre,{options:rC.map(a=>({id:a.grayscale,label:c(a.label)})),value:r,ariaLabel:c(tC),onChange:o})})}import{jsx as aC}from"react/jsx-runtime";import{useId as hre}from"react";import{SettingsField as xre,SettingsSwitch as gre}from"efficient-easel/panel";import{ShareIcon as Ire}from"efficient-easel/icons";var yre="Share button",bre="On every blog post.";function WN({value:e,onChange:o}){let t=hre();return aC(xre,{label:c(yre),labelId:t,icon:aC(Ire,{}),action:aC(gre,{checked:e===!0,onChange:o,ariaLabelledBy:t}),hint:c(bre)})}import{usePreviewDevice as qC}from"efficient-easel/draw/client";import{jsx as Sh}from"react/jsx-runtime";import{SettingsDefaultReset as Sre,SettingsField as wre}from"efficient-easel/panel";import{PaddingXIcon as Cre}from"efficient-easel/icons";var nC="Side space",$N=Wo.default,vre="The room left at the left and right edge of every page.";function UN(e,o){return gh(e,{desktop:{key:"site_gutter",value:o.gutter,unsetPx:$N,bounds:Wo},phone:{key:"site_gutter_phone",value:o.phone,unsetPx:vm(o.gutter,o.gutterUnit),bounds:zt}})}function zN({value:e,onChange:o,unsetPx:t=$N,bounds:r=Wo,length:a,restsOn:n=t}){let s=e===null;return Sh(wre,{label:c(nC),labelId:"sf-side-space",icon:Sh(Cre,{}),changed:!s,action:Sh(Sre,{words:de()?.panel,label:c(nC),changed:!s,detail:`${t}px`,onReset:()=>o(null)}),hint:c(vre),children:Sh(St,{min:(a?.grid??r).min,max:(a?.grid??r).max,step:(a?.grid??r).step,value:e,suffix:a?.unit??"px",...a?{units:a.units}:{},...r.typedMax!==void 0&&(a?.unit??"px")==="px"?{inputMax:r.typedMax}:{},placeholder:n,onClear:()=>o(null),ariaLabel:c(nC),onChange:o})})}import{jsx as sC}from"react/jsx-runtime";import{BACKGROUND_WIDTHS as MHe,SettingsBackgroundWidth as kre,SettingsContentWidth as Tre}from"efficient-easel/panel";var Pre="Background width",iC="Content width";var wh=e=>c(ss[e==="content"?"page":"full"]),GN="The width of every section's background.",jN="The width of every section's content.";function Ch({value:e,changed:o,detail:t,onChange:r,onReset:a,hint:n,labelId:s}){return sC(kre,{value:e,changed:o,detail:t,onChange:r,onReset:a,hint:n?c(n):void 0,labelId:s,words:{label:c(Pre),full:wh("full"),content:wh("content")},resetWords:de()?.panel})}function vh({mode:e,px:o,max:t=je.max,min:r=je.min,changed:a,detail:n,fullClosed:s,onMode:i,onPx:l,onReset:d,hint:f,labelId:u,length:p}){let m=c(iC),h=p?.grid.min??r,I=p?.grid.max??t,w=e!=="full"?sC(St,{min:h,max:I,step:p?.grid.step??je.step,value:Math.min(Math.max(o,h),I),onChange:l,...p?{suffix:p.unit,units:p.units}:{suffix:"px"},ariaLabel:m}):null;return sC(Tre,{mode:e,onMode:i,number:w,changed:a,detail:n,fullClosed:s,onReset:d,hint:f?c(f):void 0,labelId:u,words:{label:m,full:wh("full"),content:wh("content")},resetWords:de()?.panel})}import{jsx as WD}from"react/jsx-runtime";import{TextStyleItem as Rae,TextStylesGroup as Lae}from"efficient-easel/text-styles";import{jsx as Tae}from"react/jsx-runtime";import{useState as Pae}from"react";import{TextStylesList as Eae}from"efficient-easel/text-styles";import{usePreviewDevice as _ae}from"efficient-easel/draw/client";import{defaultTextStyles as CD,textStyleCaseCss as bae}from"efficient-easel/text-styles/model";import{resolveViewValue as vD}from"efficient-easel/draw";import{VIEW_DESKTOP_MIN as KN,VIEW_TABLET_MIN as VN}from"efficient-easel/draw";var kh=.02,YN=`(min-width: ${Jo}px) and (max-width: ${KN-kh}px)`,Ed=`(max-width: ${Jo-kh}px)`,Th=`(min-width: ${VN}px) and (max-width: ${KN-kh}px)`,Ph=`(max-width: ${VN-kh}px)`;import{textStyleCaseCss as Ere,textStyleCaseOfCss as _re,viewKeyAt as oD}from"efficient-easel/draw";function pl(e){return!e||typeof e!="object"||Array.isArray(e)?null:e}function ul(e,o){return pl(e?.[o])??{}}function Eh(e,o,t){let r=ul(e,o);return pl($(r,t))??{}}function _h(e,o,t,r){let{[t]:a,...n}=ul(e,o),s=r?{...n,[t]:r}:n,{[o]:i,...l}=e;return Object.keys(s).length?{...l,[o]:s}:l}import{isLengthUnit as uC}from"efficient-easel/screen/lib/content/length-units";var Ad="_partStyles",mC="data-sf-part-styled",vr="data-sf-text-style",Ore=/^(heading|body)-[1-7]$/;function Ca(e){return typeof e=="string"&&Ore.test(e)}var Oh={heading:"heading-1",heading2:"heading-2",heading3:"heading-3",body:"body-1",label:"body-5"};function Are(e){if(!e)return null;for(let[o,t]of Object.entries(Oh))if(t===e)return o;return null}function hC(e){if(Ca(e.textStyle))return e.textStyle;let o=na(e.role);return o?Oh[o]:void 0}var Rre=[400,500,600,700],Od=["left","center","right","justify"],lC=5,cC=1e3,Lre=-5,Fre=10,xC=0,gC=64,IC=2,qN={size:{min:lC,max:cC,step:1},sizeTablet:{min:lC,max:cC,step:1},sizePhone:{min:lC,max:cC,step:1},padding:{min:xC,max:gC,step:IC}},Bre=.05,Nre=.01,Dre=["line","letter"],Mre=.5,Hre=2.5,Wre=-1,$re=1,Ure=0,zre=400,Gre=[...new Set(Object.values(ui))];function tD(e){return[`${e} { transition: translate var(--page-motion-hover-duration) var(--page-ease-media) var(--page-motion-hover-delay) }`,`${e}:hover, ${e}:active { translate: 0 calc(-1 * var(--page-hover-lift)) }`]}function rD(e){return ul(e,Ad)}function Is(e,o){return Eh(e,Ad,o)}function aD(e,o,t){return _h(e,Ad,o,jre(t).length?t:null)}function jre(e){return Object.entries(e).filter(([,o])=>o!==void 0)}function Kre(e){return Dre.includes(e)}var _d=(e,o,t)=>Math.min(t,Math.max(o,e)),Vre=["sizeUnit","sizeUnitTablet","sizeUnitPhone"];function dC(e){let o=oD("sizeUnit",e),t=Vre.find(r=>r===o);if(!t)throw new Error(`a part stores no unit key ${o}`);return t}var qt={size:dC("desktop"),sizeTablet:dC("tablet"),sizePhone:dC("mobile"),paragraphSpacing:"paragraphSpacingUnit",padding:"paddingUnit"},nD=Object.values(qt);function Xr(e,o){return _e(e[qt[o]])}function Yre(e,o,t={}){if(nD.includes(e))return uC(o)&&o!=="px"?o:null;if(He(qt,e)&&Xr(t,e)!=="px"){let r=gs(Number(o),2);return!Number.isFinite(r)||r<0||r===0&&e!=="padding"?null:r}if(Kre(e)){let r=Math.round(Number(o));return!Number.isFinite(r)||r===0?null:_d(r,Lre,Fre)}if(e==="lineHeight"){let r=Number(o);return Number.isFinite(r)?gs(_d(r,Mre,Hre),3):null}if(e==="letterSpacing"){let r=Number(o);return Number.isFinite(r)?gs(_d(r,Wre,$re),4):null}if(e==="paragraphSpacing"){let r=Math.round(Number(o));return!Number.isFinite(r)||r<=0?null:_d(r,Ure,zre)}if(He(qN,e)){let{min:r,max:a}=qN[e],n=Math.round(Number(o));return Number.isFinite(n)?_d(n,r,a):null}return e==="italic"?typeof o=="boolean"?o:null:e==="role"||e==="fontRole"?na(o)?o:null:e==="sizeToken"?yC(o)?o:null:e==="textStyle"?Ca(o)?o:null:e==="alignPhone"||e==="alignTablet"?Od.includes(o)?o:null:o}var qre=["weight","size","sizeTablet","sizePhone","line","letter","lineHeight","letterSpacing","paragraphSpacing","padding"];function ml(e){let o=null,t=r=>{o??={...e},delete o[r]};for(let r of qre){let a=e[r];a!==void 0&&!(typeof a=="number"&&Number.isFinite(a))&&t(r)}e.align!==void 0&&!Od.includes(e.align)&&t("align"),e.alignTablet!==void 0&&!Od.includes(e.alignTablet)&&t("alignTablet"),e.alignPhone!==void 0&&!Od.includes(e.alignPhone)&&t("alignPhone"),e.textStyle!==void 0&&!Ca(e.textStyle)&&t("textStyle"),e.sizeToken!==void 0&&!yC(e.sizeToken)&&t("sizeToken"),e.fontRole!==void 0&&!na(e.fontRole)&&t("fontRole");for(let r of nD)e[r]!==void 0&&!uC(e[r])&&t(r);return o??e}function yC(e){if(!e||typeof e!="object")return!1;let{step:o,px:t,stepPhone:r,pxPhone:a,fluid:n}=e,s=l=>typeof l=="number"&&Number.isFinite(l)&&l>0,i=l=>typeof l=="string"&&Gre.includes(l);return i(o)&&s(t)&&(r===void 0||i(r))&&(a===void 0||s(a))&&(n===void 0||Xre(n,t))}function Xre(e,o){if(!e||typeof e!="object"||Array.isArray(e))return!1;let{minPx:t,vw:r,...a}=e;return Object.keys(a).length===0&&typeof t=="number"&&Number.isFinite(t)&&t>0&&t<o&&typeof r=="number"&&Number.isFinite(r)&&r>0&&r<=100}function bC(e){return e?.pxPhone&&yC(e)?{step:e.stepPhone??e.step,px:e.pxPhone}:null}function sD({step:e,px:o,fluid:t}){let r=t?`clamp(${t.minPx}px, ${t.vw}vw, ${o}px)`:`${o}px`,a=`var(--size-${e}, ${r})`;return e.startsWith("heading")?`min(${a}, var(--sf-heading-max,9999px))`:a}var Zre=[["font","role"],["font","fontRole"],["role","textStyle"],["line","lineHeight"],["letter","letterSpacing"]];function Jre(e){let o=[];for(let[t,r]of Zre)t===e?o.push(r):r===e&&o.push(t);return o}function ys(e,o,t,r){let a={...Is(e,o)},n=r==null?null:Yre(t,r,a);if(n===null)delete a[t];else{a[t]=n;for(let s of Jre(t))delete a[s]}return aD(e,o,a)}function iD(e,o){return aD(e,o,{})}function Qre(e){return _re(e)??"none"}function eae(e){return Ere(e)??""}var XN={heading:"--font-role-heading",heading2:"--font-role-heading2",heading3:"--font-role-heading3",body:"--font-role-body",accent:"--font-role-accent",label:"--font-role-label"};function oae(e,o){return na(e.role)||(o?.blockDrawsStyle?null:Are(e.textStyle))}function Rd(e,o){return e==="Text"&&o==="text"}var tae={headingLarge:"min(clamp(64px,9vw,144px), var(--sf-heading-max,9999px))",headingMedium:"min(32px, var(--sf-heading-max,9999px))",headingSmall:"min(24px, var(--sf-heading-max,9999px))",accent:"32px",body:"14px",label:"12px"};function rae(e){let o=ui[e],t=$(tae,o);return t?`var(--size-${o}, ${t})`:`var(--size-${o})`}function Ld(e){let o={};return typeof e.lineHeight=="number"?o.lineHeight=e.lineHeight:e.line&&(o.lineHeight=gs(aae+e.line*Bre,3)),typeof e.letterSpacing=="number"?o.letterSpacingEm=e.letterSpacing:e.letter&&(o.letterSpacingEm=gs(e.letter*Nre,4)),o}var aae=1,xs="--sf-part-para";function nae(e){e=ml(e);let o={};if(typeof e.sizePhone=="number"&&e.sizePhone>0)o.fontSize=Me(e.sizePhone,Xr(e,"sizePhone"));else{let r=bC(e.sizeToken);if(r)o.fontSize=sD(r);else{let a=Rh(e);a!==void 0&&(o.fontSize=Me(a,Xr(e,"sizeTablet")))}}let t=e.alignPhone??Ah(e);return t&&(o.textAlign=t),o}function Ah(e){return e.alignTablet&&e.alignTablet!==e.align?e.alignTablet:void 0}function Rh(e){let o=e.sizeTablet!==void 0&&Xr(e,"sizeTablet")!==Xr(e,"size")?e.sizeTablet:ia("textSize",e.size,e.sizeTablet,void 0).tablet;return o&&o>0?o:void 0}function sae(e){let o=ml(e),t={},r=Rh(o);r!==void 0&&(t.fontSize=Me(r,Xr(o,"sizeTablet")));let a=Ah(o);return a&&(t.textAlign=a),t}function lD(e,o){if(o==="desktop")return;let t=ml(e);return(o==="mobile"?Ah(t):void 0)??t.align}function iae(e,o){if(o==="desktop")return e;let t=ml(e),r=Rh(t),a=Ah(t);if(o==="tablet"){let i=e;return r!==void 0&&(i={...i,size:r,sizeUnit:t[qt.sizeTablet]}),a&&(i={...i,align:a}),i}let n=e;if(typeof t.sizePhone=="number"&&t.sizePhone>0)n={...n,size:t.sizePhone,sizeUnit:t[qt.sizePhone]};else{let i=bC(t.sizeToken);i?n={...n,size:void 0,sizeToken:i}:r!==void 0&&(n={...n,size:r,sizeUnit:t[qt.sizeTablet]})}let s=t.alignPhone??a;return s&&(n={...n,align:s}),n}function SC(e,o,t){return CC(iae(e,o),Lh,t)}function wC(e){return oD("size",e)}function cD(e,o){if(o==="desktop")return null;let t=ml(e);if(o==="mobile"){if(bC(t.sizeToken))return null;let r=Rh(t);if(r!==void 0)return{px:r,view:"tablet"}}return typeof t.size=="number"&&t.size>0?{px:t.size,view:"desktop"}:null}function dD(e,o){let t=wC(o);if(!He(e,t))return e;let r={...e};return delete r[t],r}function fD(e,o,t){let r=SC(dD(e,o),o,t);return{fontFamily:r.fontFamily,fontSize:r.fontSize}}function CC(e,o,t){e=ml(e);let r=oae(e,t),a=Ld(e),n=e.size?Me(e.size,Xr(e,"size")):e.sizeToken?sD(e.sizeToken):r?rae(r):"";return{fontFamily:e.font?fae(e.font):e.fontRole?`var(${XN[e.fontRole]})`:r?`var(${XN[r]})`:"",fontWeight:e.weight?String(e.weight):"",fontSize:n,minWidth:n?"0":"",overflowWrap:n?"break-word":"",lineHeight:a.lineHeight!==void 0?String(a.lineHeight):"",letterSpacing:a.letterSpacingEm!==void 0?`${a.letterSpacingEm}em`:"",[xs]:e.paragraphSpacing?Me(e.paragraphSpacing,Xr(e,"paragraphSpacing")):"",textTransform:eae(e.case),textAlign:e.align??"",paddingTop:ZN(e.padding,Xr(e,"padding")),paddingBottom:ZN(e.padding,Xr(e,"padding")),color:lae(e.color),fontStyle:e.italic===!0?"italic":e.italic===!1?"normal":""}}var lae=e=>Wi(e),ZN=(e,o)=>e===void 0?"":Me(e,o),gs=(e,o)=>Number(e.toFixed(o));function pD(e,o){let t=Number.parseFloat(e.fontSize)||16,r=Number.parseFloat(e.lineHeight),a=Number.parseFloat(e.letterSpacing),n=Number.parseFloat(e.paddingTop);return{fontKey:o,sizePx:t,weight:cae(Number.parseInt(e.fontWeight,10)),lineRatio:Number.isFinite(r)?gs(r/t,3):1.2,letterEm:Number.isFinite(a)?gs(a/t,4):0,align:dae(e.textAlign),case:Qre(e.textTransform),paddingPx:Number.isFinite(n)?Math.round(n):0}}function cae(e){return Number.isFinite(e)?Rre.reduce((o,t)=>Math.abs(t-e)<Math.abs(o-e)?t:o):400}function dae(e){for(let o of Od)if(o===e)return o;return e==="end"?"right":"left"}function uD(e,o){let t=JN(e);if(!t)return"";for(let r of Na)if(JN(o(r.cssVar))===t)return r.key;return""}var JN=e=>(e.split(",")[0]??"").replace(/["']/g,"").replace(/\s+/g," ").trim().toLowerCase();function fae(e){let o=pi(e);return o?`var(${o.cssVar})`:""}function mD(e,o,t,r){return!o||wd(o)?.nodeId!==e?null:t.find(a=>r(a.getAttribute("class")))??t[0]??null}function vC(e,o){return pl($(e,o))??{}}function kC(e,o,t=()=>Lh,r=i=>i,a=mae,n="desktop",s=()=>!1){let i=0;for(let{element:l,partId:d}of e){let f=wd(d)?.propKey;if(!f)continue;let u=vC(o,r(f)),p=SC(u,n,{blockDrawsStyle:s(f)});Ca(u.textStyle)?l.setAttribute?.(vr,u.textStyle):l.removeAttribute?.(vr);let m=fC.some(I=>l.style[I]),h=!1;for(let[I,w]of Object.entries(p))hae(l,I,w),w&&(h=!0);if(m||fC.some(I=>p[I]))for(let I of pae(l,a))for(let w of fC)I.style[w]=p[w]??"";h&&(i+=1)}return i}function pae(e,o){let t=nn(e.textContent??""),r=[],a=e;for(let n=0;n<uae&&o(a);n+=1){let s=a.parentElement;if(!s||nn(s.textContent??"")!==t)break;r.push(s),a=s}return r}var uae=8;function mae(e){let o=e;return typeof window>"u"||!o?.ownerDocument?!1:window.getComputedStyle(o).display==="inline"}var Lh={fontKey:"",sizePx:16,weight:400,lineRatio:1,letterEm:0,align:"left",case:"none",paddingPx:0};function TC(e){if(!e||typeof e!="object")return null;let o={};Ca(e.textStyle)&&(o.textStyle=e.textStyle),typeof e.size=="number"&&e.size>0&&(o.size=e.size),typeof e.sizeTablet=="number"&&e.sizeTablet>0&&(o.sizeTablet=e.sizeTablet),typeof e.sizePhone=="number"&&e.sizePhone>0&&(o.sizePhone=e.sizePhone);for(let t of["size","sizeTablet","sizePhone"]){let r=qt[t];o[t]!==void 0&&uC(e[r])&&(o[r]=e[r])}return Object.keys(o).length?o:null}function PC(e,o){let t=TC(e);if(!t)return{};let r=SC(t,o);return{...r.fontFamily?{fontFamily:r.fontFamily}:{},...r.fontSize?{fontSize:r.fontSize}:{}}}function hD(e){return Ca(e?.textStyle)||!!e?.role||typeof e?.size=="number"&&e.size>0}function xD(e,o,t){if(!e||typeof e!="object")return{};let r=Wp(e.role,o,ui)??{},a=o.sized?PC(dD(e,t),t):{};return{...r,...a}}function gD(e,o,t){t.fontFamily&&e.fontFamily===t.fontFamily&&(e.fontFamily=o.fontFamily),t.fontSize&&e.fontSize===t.fontSize&&(e.fontSize=o.fontSize)}function hae(e,o,t){if(!o.startsWith("--")){e.style[o]=t;return}let r=e.style;typeof r.setProperty=="function"?t?r.setProperty(o,t):r.removeProperty?.(o):r[o]=t;let a=e;o===xs&&(t?a.setAttribute?.(QN,""):a.removeAttribute?.(QN))}var QN="data-sf-part-para",Fh=Object.keys(CC({},Lh)),pC=new Set(["color","overflowWrap",xs,"fontStyle"]),fC=Fh.filter(e=>!pC.has(e));function ID(e,o,t,r=i=>i,a=()=>!1,n=()=>null,s=[]){let i=new Map;for(let u of e){let p=Yr(u.key,u.row);for(let m of u.texts){let h=i.get(m);h?(h.keys.add(u.key),h.partKeys.add(p)):i.set(m,{keys:new Set([u.key]),partKeys:new Set([p])})}}let l=new Map;for(let u of new Set([...Object.keys(o),...s])){if(!xae(u))continue;let p=eD(t,u,pl(o[u])??{},!1,n(u));p&&l.set(u,p)}let d=u=>{let p=r(u),m=n(p);if(!He(o,p)&&!m)return null;let h=pl(o[p])??{};return eD(t,u,h,a(u),m)},f=new Map;for(let[u,{keys:p,partKeys:m}]of i){let h=m.size===1?[...m][0]:p.size===1?[...p][0]:null;if(!h)continue;let I=d(h);I&&f.set(u,I)}for(let u of e){if(!u.keyed)continue;let p=d(Yr(u.key,u.row));p&&l.set(u.key,p)}return f.size||l.size?{rules:f,kindRules:l,drawn:new Set(i.keys())}:null}function eD(e,o,t,r,a){let n=CC(t,Lh,{blockDrawsStyle:r}),s=sae(t),i=nae(t),l=Ca(t.textStyle)?t.textStyle:void 0;return!Object.values(n).some(Boolean)&&!Object.keys(s).length&&!Object.keys(i).length&&!l&&!a?null:{stamp:gae(e,o),declarations:n,...Object.keys(s).length?{tablet:s}:{},...Object.keys(i).length?{phone:i}:{},...l?{textStyle:l}:{},...a?{motion:a}:{}}}function xae(e){return e.startsWith("@")}function EC(e,o){return e?.kindRules.get(o)??null}function gae(e,o){let t=r=>r.replace(/[^A-Za-z0-9_-]+/g,"-");return`${t(e)}~${t(o)}`}function _C(e){return e?{tablet:YN,phone:Ed}:{tablet:Th,phone:Ph}}function yD(e,{inBox:o=!1}={}){let{tablet:t,phone:r}=_C(o),a=[],n=new Set,s=i=>{let{stamp:l,declarations:d}=i;if(n.has(l))return;n.add(l);let f=Object.entries(d).filter(([,S])=>S!==""),u=S=>S.map(([C,b])=>`${Iae(C)}: ${b}`).join("; "),p=`[${mC}="${l}"]`,m=f.filter(([S])=>!pC.has(S)),h=f.filter(([S])=>pC.has(S));m.length&&a.push(`${p}, *:has(> ${p}) { ${u(m)} }`),h.length&&a.push(`${p} { ${u(h)} }`),d[xs]&&(a.push(`*:has(> ${p}) { ${xs}: ${d[xs]} }`),a.push(...Bh(p,`*:has(> ${p})`)));let I=Object.entries(i.tablet??{}).filter(([,S])=>S!=="");I.length&&a.push(`@media ${t} { ${p}, *:has(> ${p}) { ${u(I)} } }`);let w=Object.entries(i.phone??{}).filter(([,S])=>S!=="");w.length&&a.push(`@media ${r} { ${p}, *:has(> ${p}) { ${u(w)} } }`)};for(let i of e.rules.values())s(i);for(let i of e.kindRules.values())s(i);return a.join(`
|
|
3
|
-
`)}function Bh(e,o){let t=`var(${xs})`,r=":is([data-sf-bullet], [data-sf-number])";return[`${e} br:not(br + br) { display: block; content: ""; margin-top: ${t} }`,`${e} ${r}:not(:first-child) { margin-top: ${t} }`,`${e} ${r}:not(:last-child) { margin-bottom: ${t} }`,`:is(${o}) + :is(${o}) { margin-top: ${t} }`]}var Iae=e=>e.replace(/[A-Z]/g,o=>`-${o.toLowerCase()}`);function bD(e,o){if(!e)return null;let t=nn(o),r=e.rules.get(t);if(r)return r;if(t.length<yae||e.drawn.has(t))return null;let a=null;for(let[n,s]of e.rules)if(n.includes(t)){if(a&&a.stamp!==s.stamp)return null;a=s}return a}var yae=8;function SD(e){switch(e.id){case"heading-1":return"font-display";case"heading-2":return"font-heading2";case"heading-3":return"font-heading3";case"body-1":return"font-body";case"body-5":return"font-mono";default:return`font-${e.id}`}}var OC=e=>e==="sentence"?"none":void 0,kD=["font","color","size","sizeTablet","sizePhone","weight","italic","lineHeight","lineHeightTablet","lineHeightPhone","letterSpacing","letterSpacingTablet","letterSpacingPhone","paragraphSpacing","paragraphSpacingTablet","paragraphSpacingPhone","letterCase","largestSize","largestSizeTablet","largestSizePhone"],hl=["desktop","tablet","phone"],bs=(e,o)=>Te(e,o);function LC(e,o,t,r=xi()){return vD("textSize",o,e.sizeTablet,e.sizePhone,r)[t]}var Sae=[["lineSpacing","lineHeight","line"],["letterSpacing","letterSpacing","letter"]];function AC(e){for(let[o,t,r]of Sae)for(let a of hl)if(e===bs(o,a))return{key:Te(t,a),view:a,spacing:r};return{key:e,view:"desktop",spacing:null}}function Zr(e){let o={};for(let t of kD)e[t]!==void 0&&(o[t]=e[t]);return o}function FC(e,o){let{auto:t,...r}=e,a=new Set(o??[]),n=kD.filter(s=>a.has(s)&&e.values[s]===void 0);return n.length?{...r,auto:n}:r}function TD(e){let o=e.fonts,t=e.sizes,r=e.typography,a=X_(e.compression),n={"heading-1":{font:be(o.heading),size:Y(t.headingLarge),weight:Y(r.weight),lineHeight:a.lineHeight,letterSpacing:a.letterSpacing,letterCase:OC(r.case),largestSize:Y(r.maxPx)},"heading-2":{font:be(o.heading2),size:Y(t.headingMedium),weight:Y(r.weight2),lineHeight:a.lineHeight,letterSpacing:a.letterSpacing,letterCase:OC(r.case2)},"heading-3":{font:be(o.heading3),size:Y(t.headingSmall),weight:Y(r.weight3),lineHeight:a.lineHeight,letterSpacing:a.letterSpacing,letterCase:OC(r.case3)},"body-1":{font:be(o.body),size:Y(t.body)},"body-5":{font:be(o.label),size:Y(t.label)}};return CD().map(({id:s,kind:i,name:l})=>({id:s,kind:i,name:l,values:Zr(n[s]??{})}))}function BC(e){return Array.isArray(e)&&e.every(o=>o&&typeof o=="object"&&typeof o.id=="string"&&(o.kind==="heading"||o.kind==="body")&&typeof o.name=="string")?e.map(o=>FC({...o,values:Zr(o.values??{})},Array.isArray(o.auto)?o.auto:void 0)):null}function PD(e){return BC(e)??[]}function ED(e){return BC(e)??CD().map(({id:o,kind:t,name:r})=>({id:o,kind:t,name:r,values:{}}))}function va(e,o){let t=TD(o),r=BC(e);return r?r.map(a=>{let n={...RC(t,a.id)};for(let s of a.auto??[])delete n[s];return{...a,values:Zr({...n,...a.values})}}):t}var RC=(e,o)=>e.find(t=>t.id===o)?.values??{},wD=["heading-1","heading-2","heading-3"];function _D({saved:e,old:o,cur:t,next:r,sizeOf:a,panelView:n="desktop"}){let s=TD(o),i=ED(e),l=va(i,o),d=[],f=r.map(p=>{let m=t.find(v=>v.id===p.id),h=i.find(v=>v.id===p.id);if(!m||!h){let v=wae([p],a,n)[0],L=v.values.color;return L===void 0?v:{...v,values:{...v.values,color:Ot(L)}}}let I={...h.values},w=new Set(h.auto??[]),S=p.values,C=m.values,b=[...new Set([...Object.keys(S),...Object.keys(C)])].filter(v=>JSON.stringify(S[v])!==JSON.stringify(C[v])),y=v=>AC(v).spacing==="letter";b.sort((v,L)=>Number(y(v))-Number(y(L)));for(let v of b){let{key:L,view:A,spacing:D}=AC(v),T=L,F=S[v];if(F===void 0){delete I[T],RC(s,p.id)[T]!==void 0&&(d.push([p.id,T]),w.add(T));continue}if(w.delete(T),D==="line")I[T]=xl(F/100,3);else if(D==="letter"){let k={...l.find(O=>O.id===p.id)?.values??{}};for(let O of b)S[O]===void 0&&delete k[AC(O).key];let _=Zr({...k,...I}),P=LC(_,a({...p,values:_}),A);I[T]=P?xl(F/P,4):0}else I[T]=F}return FC({id:p.id,kind:p.kind,name:p.name,values:Zr(I)},w)}),u=o.compression;if(d.some(([p,m])=>(m==="lineHeight"||m==="letterSpacing")&&wD.includes(p))&&Hn(u)!=="normal"){for(let p of wD){let m=f.find(I=>I.id===p);if(!m)continue;let h={...m.values};for(let I of["lineHeight","letterSpacing"])d.some(([w,S])=>w===p&&S===I)||h[I]===void 0&&!(m.auto??[]).includes(I)&&(h[I]=RC(s,p)[I]);m.values=Zr(h)}u="normal"}return{saved:f,old:{...o,compression:u}}}function OD(e,o){let t={text_styles:e.saved};return e.old.compression!==o.compression&&(t.heading_compression=Hn(e.old.compression)),t}var xl=(e,o)=>Number(e.toFixed(o)),AD=(e,o)=>hl.indexOf(e)<hl.indexOf(o)?o:e;function RD(e,o,t="desktop"){return e.map(r=>{let a={...r.values},n=o(r);for(let s of hl){let i=Te("lineHeight",s),l=r.values[i],d=r.values[Te("letterSpacing",s)];delete a[i],l!==void 0&&(a[bs("lineSpacing",s)]=xl(l*100,1));let f=AD(s,t);d!==void 0&&(a[bs("letterSpacing",s)]=xl(d*LC(r.values,n,f),f===s?2:4))}return{id:r.id,kind:r.kind,name:r.name,values:a}})}function wae(e,o,t="desktop"){return e.map(r=>{let a=r.values,n={...a};for(let d of hl)delete n[bs("lineSpacing",d)],delete n[bs("letterSpacing",d)];let s={id:r.id,kind:r.kind,name:r.name,values:Zr(n)},i={...s.values},l=o({...s,values:{...s.values}});for(let d of hl){let f=a[bs("lineSpacing",d)],u=a[bs("letterSpacing",d)];if(typeof f=="number"&&(i[Te("lineHeight",d)]=xl(f/100,3)),typeof u=="number"){let p=LC(s.values,l,AD(d,t));i[Te("letterSpacing",d)]=p?xl(u/p,4):0}}return{...s,values:Zr(i)}})}function S4e(e){let o={fonts:bc({heading:e.heading_font??void 0,heading2:e.heading_2_font??void 0,heading3:e.heading_3_font??void 0,body:e.body_font??void 0,accent:e.accent_font??void 0,label:e.label_font??void 0}),sizes:$y({headingLarge:e.heading_size_large_px,headingMedium:e.heading_size_medium_px,headingSmall:e.heading_size_small_px,accent:e.accent_size_px,body:e.body_size_px,label:e.label_size_px}),compression:Hn(e.heading_compression),typography:J_(e)},t=e.text_styles??null,r=Array.isArray(t)?NC(va(t,o),o):o;return{fonts:bc(r.fonts),sizes:$y(r.sizes),compression:Hn(r.compression),typography:r.typography,textStyles:t}}function NC(e,o){let t=p=>e.find(m=>m.id===p)?.values??{},r=t("heading-1"),a=t("heading-2"),n=t("heading-3"),s=t("body-1"),i=t("body-5"),l=o.fonts,d=o.sizes,f=o.typography,u=p=>p==="none"?"sentence":"authored";return{fonts:{...l,heading:r.font??l.heading,heading2:a.font??r.font??l.heading2,heading3:n.font??r.font??l.heading3,body:s.font??l.body,label:i.font??l.label},sizes:{...d,headingLarge:r.size??null,headingMedium:a.size??null,headingSmall:n.size??null,body:s.size??null,label:i.size??null},compression:o.compression,typography:{...f,case:u(r.letterCase),weight:r.weight??null,maxPx:r.largestSize??null,weight2:a.weight??null,weight3:n.weight??null,case2:u(a.letterCase),case3:u(n.letterCase)}}}function LD(e){let o=[];for(let t of e){let r=t.values,a=`.${SD(t)}`,n=`[${vr}="${t.id}"]`,s=`${a}, ${n}`,i=[],l=r.font!==void 0?Na.find(p=>p.key===r.font)?.cssVar:void 0;if(l&&i.push(`font-family: var(${l})`),r.size!==void 0){let p=r.largestSize!==void 0?Math.min(r.size,r.largestSize):r.size;i.push(`font-size: ${p}px`)}let d=Wi(r.color);d&&i.push(`color: ${d}`),r.italic===!0&&i.push("font-style: italic"),r.weight!==void 0&&i.push(`font-weight: ${r.weight}`);let f=[];r.lineHeight!==void 0&&f.push(`line-height: ${r.lineHeight}`),r.letterSpacing!==void 0&&f.push(`letter-spacing: ${r.letterSpacing}em`),t.kind==="body"&&i.push(...f);let u=bae(r.letterCase);u&&t.kind==="body"&&i.push(`text-transform: ${u}`),r.paragraphSpacing&&i.push(`--sf-part-para: ${r.paragraphSpacing}px`),i.length&&o.push(`${s} { ${i.join("; ")} }`),t.kind==="heading"&&f.length&&o.push(`${s}, ${a}:is(h1, h2, h3, h4), ${n}:is(h1, h2, h3, h4) { ${f.join("; ")} }`),t.kind==="heading"&&u&&o.push(`${n}, ${a}:is(h1, h2, h3, h4) { text-transform: ${u} }`),r.paragraphSpacing&&(o.push(`*:has(> ${n}) { --sf-part-para: ${r.paragraphSpacing}px }`),o.push(...Bh(`:is(${s})`,`*:has(> ${n})`))),o.push(...Cae(t,s,a,n))}return o.join(`
|
|
4
|
-
`)}function Cae(e,o,t,r){let a=e.values,n=ia("textSize",a.size,a.sizeTablet,a.sizePhone),s=ia("textSize",a.largestSize,a.largestSizeTablet,a.largestSizePhone),i=ia("same",a.lineHeight,a.lineHeightTablet,a.lineHeightPhone),l=ia("same",a.letterSpacing,a.letterSpacingTablet,a.letterSpacingPhone),d=ia("spacing",a.paragraphSpacing,a.paragraphSpacingTablet,a.paragraphSpacingPhone),f=vD("textSize",a.size,a.sizeTablet,a.sizePhone,xi()),u=vae[e.id],p=[];for(let[m,h]of[["tablet",Th],["phone",Ph]]){let I=[],w=[],S=f[m],C=s[m],b=n[m]===void 0&&C===void 0||S===void 0?void 0:C===void 0?S:Math.min(S,C);b!==void 0&&w.push(`font-size: ${b}px`);let y=[];i[m]!==void 0&&y.push(`line-height: ${i[m]}`),l[m]!==void 0&&y.push(`letter-spacing: ${l[m]}em`),e.kind==="body"&&w.push(...y),d[m]!==void 0&&w.push(`--sf-part-para: ${d[m]}px`),w.length&&I.push(`${o} { ${w.join("; ")} }`),e.kind==="heading"&&y.length&&I.push(`${o}, ${t}:is(h1, h2, h3, h4), ${r}:is(h1, h2, h3, h4) { ${y.join("; ")} }`),d[m]!==void 0&&I.push(`*:has(> ${r}) { --sf-part-para: ${d[m]}px }`),d[m]!==void 0&&!a.paragraphSpacing&&I.push(...Bh(`:is(${o})`,`*:has(> ${r})`)),b!==void 0&&u&&I.push(`.sf-themed-content { --size-${u}: ${b}px !important }`),I.length&&p.push(`@media ${h} { ${I.join(" ")} }`)}return p}var vae={"heading-1":"headingLarge","heading-2":"headingMedium","heading-3":"headingSmall","body-1":"body","body-5":"label"};function FD(e){return e!==!0&&e!==!1?"":`em.text-accent { font-style: ${e?"italic":"normal"} }`}function BD(e){return e?Oh[e]:void 0}function DC(e){let o=Ld(e);return Zr({font:e.font,color:e.color===void 0?void 0:Ot(e.color),size:e.size,weight:e.weight,italic:e.italic,lineHeight:o.lineHeight,letterSpacing:o.letterSpacingEm,paragraphSpacing:e.paragraphSpacing,letterCase:e.case})}function ND(e){return Object.keys(DC(e)).length>0}function DD({saved:e,old:o,styleId:t,values:r}){let a=ED(e);return{saved:kae(a,t,r),old:o}}function kae(e,o,t){return e.map(r=>r.id===o?FC({...r,values:Zr({...r.values,...t})},r.auto):r)}var MD=["font","color","size","weight","emphasis","lineSpacing","letterSpacing","paragraphSpacing","letterCase","largestSize"],Oae=["size","lineSpacing","letterSpacing","letterCase"],Aae=500,MC=Na.map(e=>({value:e.key,label:e.label,family:`var(${e.cssVar})`,italic:e.italicLoaded}));function HD({saved:e,old:o,colours:t,colourNameOf:r,sizeOf:a,onChange:n,openId:s,onOpenChange:i,readOnly:l=!1,withoutSize:d=!1}){let f=_ae(),[u,p]=Pae(null),m=va(e,o),h=Ei(f),I=RD(m,a,h);return Tae(Eae,{styles:I,onChange:w=>n(_D({saved:e,old:o,cur:I,next:w,sizeOf:a,panelView:h})),fonts:MC,colours:t,colourNameOf:r,settings:d?MD.filter(w=>w!=="size"):MD,auto:Oae,openId:s===void 0?u:s,onOpenChange:i??p,readOnly:l,device:h,fallback:w=>{let S=m.find(b=>b.id===(w.kind==="heading"?"heading-1":"body-1")),C={};return S?.values.font&&w.id!==S.id&&(C.font=S.values.font),w.kind==="heading"&&(C.weight=Aae),C}})}var $D=["font","size","weight","emphasis"],Fae=500;function Bae({font:e,size:o,weight:t,italic:r}){let a={font:e};return o!==null&&(a.size=o),t!==null&&(a.weight=t),r!==null&&(a.italic=r),{id:"accent",kind:"heading",name:c("Emphasis"),values:a}}function Nae(e,o){let t=[],r=e.values,a=o.values;return a.font!==r.font&&a.font!==void 0&&t.push({key:"font",value:a.font}),a.size!==r.size&&t.push({key:"size",value:a.size??null}),a.weight!==r.weight&&t.push({key:"weight",value:a.weight??null}),a.italic!==r.italic&&t.push({key:"italic",value:a.italic??null}),t}function UD(e){let{headingWeight:o,open:t,onOpenChange:r,onChange:a,withoutSize:n=!1}=e,s=Bae(e);return WD(Lae,{label:c("Emphasis"),children:WD(Rae,{style:s,fonts:MC,settings:n?$D.filter(i=>i!=="size"):$D,auto:["size"],fallback:()=>({weight:o??Fae}),open:t,onOpenChange:r,onChange:i=>Nae(s,i).forEach(a)})})}import{viewKeyAt as VD}from"efficient-easel/draw";import{shownUnitAt as Uae,unitKeyOnWrite as zae}from"efficient-easel/screen/lib/content/length-units";import{convertRowLength as Dae,rowUnits as Mae,unitPickPatch as Hae}from"efficient-easel/screen/lib/content/length-units";import{viewKeyAt as Wae}from"efficient-easel/draw";var $ae=["cornerRadius","siteWidth","siteGutter","siteGutterPhone","blockGap","blockGapPhone"],Nh={cornerRadius:{number:"corner_radius_px",kind:"radius",grid:$_,tier:"desktop"},siteWidth:{number:"site_width",kind:"size",grid:je,tier:"desktop"},siteGutter:{number:"site_gutter",kind:"spacing",grid:Wo,tier:"desktop"},siteGutterPhone:{number:"site_gutter_phone",kind:"spacing",grid:zt,tier:"mobile"},blockGap:{number:"block_gap",kind:"gap",grid:Kt,tier:"desktop"},blockGapPhone:{number:"block_gap_phone",kind:"gap",grid:Kt,tier:"mobile"}};function Dh(e){return{number:Nh[e].number,unit:C_[`${e}Unit`]}}function zD(e,o,t){let r=_e(t),{number:a,unit:n}=Dh(e);return{[a]:o,[n]:o===null||r==="px"?null:r}}function Mh(e,o,t,r){let{kind:a,grid:n,tier:s}=Nh[e],i=_e(t),l=_e(r),d=n.typedMax,f=d!==void 0&&l==="px"?{...n,max:d}:n;return i===l?o:Dae(o,i,l,s,{kind:a},f)}function GD(e,o,t,r){let{number:a,unit:n}=Dh(e),s=Hae({[a]:o},i=>Mh(e,i,t,r),n,_e(r),"px");return{[a]:s[a],[n]:s[n]??null}}function jD(e,o){let{kind:t,grid:r}=Nh[e];return w_(t,_e(o),r)}function KD(e){return Mae({kind:Nh[e].kind},ya)}function HC(e,o){let t=Wae(e,o);if(!$ae.includes(t))throw new Error(`no site length row ${t}`);return t}function Fd(e,o,t,r,a){let{siteLengthUnits:n,setSiteLengthUnits:s}=fe(),i=`${e}Unit`,l=n[i],d=Uae({n:a?.figure??null,u:a?.unit??null,[VD("n","mobile")]:o,[VD("u","mobile")]:l??null},{n:"n"},"u","mobile"),f=h=>s({[i]:h==="px"?null:h}),u=h=>{t(h);let I=zae(i,l,d,"px",h===null);i in I&&f(I[i]==null?null:_e(I[i])),r(zD(e,h,d),h===null)},p=h=>{let I=_e(h);if(I===d||(f(I),o===null))return;let w=GD(e,o,d,I);t(w[Dh(e).number]),r(w,!0)},m=a?a.unit===d?a.figure:Mh(e,a.figure,a.unit,d):null;return{length:{unit:d,grid:jD(e,d),units:{options:KD(e),onChange:p,label:c("Unit")}},write:u,rest:m,shown:h=>Mh(e,h,"px",d)}}import{EmptyState as pne,SliderGroup as une,Tabs as mne,Tooltip as e3e,tabButtonId as hne,tabPanelId as xne}from"efficient-shell/ui";import{ContrastIcon as gne,SettingsIcon as Ine,TypeIcon as yne}from"efficient-easel/icons";function YD(e){switch(e.status){case"saved":return null;case"failed":return{msg:c("Not saved. Try again."),tone:"error"};case"skipped":switch(e.reason){case"empty":return null;case"no-token":return{msg:c("Not saved. Reload the page."),tone:"error"};case"template":return{msg:c("Templates keep their look. Press Done."),tone:"success"}}}}import{jsx as jC}from"react/jsx-runtime";import{ListIcon as ene,PaddingTopIcon as one}from"efficient-easel/icons";import{jsx as Hh}from"react/jsx-runtime";import{SettingsDefaultReset as Gae,SettingsField as jae,SettingsSegmented as Kae}from"efficient-easel/panel";import{WidthIcon as Vae}from"efficient-easel/icons";function qD({value:e,resolved:o,onChange:t,label:r="Width",labelId:a,followsLabel:n,hint:s}){let i=e===void 0,l=i?o:e,d=c(r);return Hh(jae,{label:d,labelId:a,icon:Hh(Vae,{}),value:i?n:void 0,changed:!i,action:Hh(Gae,{words:de()?.panel,label:d,changed:!i,onReset:()=>t(void 0)}),hint:s,children:Hh(Kae,{options:[{label:c(ss.full),id:"full"},{label:c(ss.page),id:"content"}],value:l,ariaLabel:d,onChange:t})})}import{HEADER_TYPE as WC,FOOTER_TYPE as Yae}from"efficient-easel/draw";var qae=new Set(["Hero","HeroSingle","IntroBleed"]),XD={min:56,max:140,default:88},s5e={min:0,max:120,step:2,default:32},i5e=`var(--sf-header-h, ${XD.default}px)`,Xae="--sf-header-set-h",l5e="--sf-header-h",c5e=`var(${Xae}, ${XD.default}px)`,ZD="sf-header-clearance",JD="sf-sticky-underheader";function Bd(e){return e?.find(o=>o?.type&&o.type!==WC)??null}function QD(e){let o=Bd(e)?.type;return!o||!qae.has(o)}function eM(e){return!QD(e)}function $C(e){return!!e?.some(o=>o?.type===WC)}function oM(e){return!e||e.length===0?!1:!e.some(o=>o?.type===WC||o?.type===Yae)}var Zae=["auto","shared","own"],UC="auto",Jae="topSpace",tM="data-top-space";function Qae(e){return Zae.includes(e)?e:UC}function zC(e,o){let t=Qae(e?.props?.[Jae]);return t==="own"?!0:t==="shared"?!1:QD(o)}function rM(e,o){return zC(e,o)?"own":null}function tne(){return{type:"custom",render:({value:e,onChange:o})=>jC(qD,{value:e==="full"?"full":e==="content"?"content":void 0,resolved:"content",label:"Page width",followsLabel:c("Follows the site"),hint:c("Whether this page sits on the site's content column, or runs edge to edge."),onChange:t=>o(t)})}}var rne=[{label:"Auto",value:"auto"},{label:"Shared",value:"shared"},{label:"Its own",value:"own"}],b5e={pageBackground:MB(),topSpace:pt("Top space",jC(one,{}),rne,UC),widthChoice:tne()},Nd=["pageBackground","topSpace","widthChoice"],ane="Record type",GC=new Map,aM=-1;function nne(e){aM!==bb()&&(GC.clear(),aM=bb());let o=Ib(),t=o.some(a=>a.key===e)?"":e,r=GC.get(t);return r||(r=pt(ane,jC(ene,{}),[...o.map(a=>({label:a.label,value:a.key})),...t?[{label:t,value:t}]:[]],Ut),GC.set(t,r)),r}var nM=new WeakMap;function S5e(e,o){if(!Gc()||Ib().length<2||Fu in e)return e;let t=nne(zc(o)),r=nM.get(e);if(r&&r.row===t)return r.fields;let a={[Fu]:t,...e};return nM.set(e,{row:t,fields:a}),a}import{previewFrame as bne}from"efficient-easel/screen/lib/document/preview-dom";var sM="background";function iM(e){let o=gt(Ci(e));return $i({main:o.accent,text:o.text,background:o.background,muted:o.muted}).map(t=>({key:t.name,name:t.label??t.name,value:t.value}))}function lM(e){return iM(e).filter(o=>o.key!==sM)}function cM(e){let o=iM(e).filter(t=>t.key===sM);return t=>{let r=Ot(t);return o.find(a=>a.key===r)?.value??r}}import{useEasel as sne}from"efficient-easel/easel";function Wh({themeFromDocument:e,persist:o}){let{appState:t,dispatch:r}=sne(A=>A),{fonts:a,setFonts:n,sizes:s,setSizes:i,headingCompression:l,setHeadingCompression:d,headingTypography:f,setHeadingTypography:u,textStyles:p,setTextStyles:m}=fe(),h=t.data,I=h.root?.props??{},w=e?bc(I.fonts):a,S=e?H_:s,C=e?Hn(I.headingCompression):l,b=e?tu(I.headingTypography):f,y={fonts:w,sizes:S,compression:C,typography:b},v=e?I.textStyles:p,L=A=>r({type:"replaceRoot",root:{...h.root,props:{...I,...A}},recordHistory:!0});return{fonts:w,sizes:S,compression:C,typography:b,old:y,saved:v,write:(A,D)=>{let T=NC(va(A.saved,A.old),A.old);e?L({textStyles:A.saved,fonts:T.fonts,headingCompression:T.compression,headingTypography:T.typography}):(m(A.saved),n(T.fonts),i(T.sizes),d(T.compression),u(T.typography)),o(OD(A,y),D)},writeRoot:L}}import{pictureShadowColor as Sne}from"efficient-easel/screen/lib/document/shadow-values";var VC="sf-site-styles",wne="sf-site-styles-tabpanel",pM="text",yl="basics",dM="this-page-group",gl=[{id:yl,label:"Basics",icon:Ee(Ine,{})},{id:"theme",label:"Theme",icon:Ee(gne,{})},{id:"text",label:"Text",icon:Ee(yne,{})}];function Cne({themeFromDocument:e,persist:o}){let{appState:t,dispatch:r}=fM(d=>d),{theme:a,setTheme:n}=fe(),s=t.data,i=s.root?.props??{},l=d=>{if(e){let f={...i,theme:d};r({type:"replaceRoot",root:{...s.root,props:f},recordHistory:!0})}else n(d);o({selected_preset:d.selected,theme_presets:d.themes})};return Ee(EN,{value:e?i.theme:a,onChange:l})}function vne({themeFromDocument:e,persist:o}){let[t,r]=YC(null),{theme:a,setFonts:n,setSizes:s,setHeadingTypography:i}=fe(),l=Wh({themeFromDocument:e,persist:o}),{old:d,saved:f,writeRoot:u}=l,p=l.fonts,m=l.sizes,h=l.typography,I=A=>A.values.size??Ene(kne[A.id]??"body")??Tne[A.kind],w=A=>l.write(A),S=lM(a),C=cM(a),b=A=>{let D={...p,accent:A};e?u({fonts:D}):n(D),o({accent_font:A})},y=A=>{s({...m,accent:A}),o({accent_size_px:A})},v=A=>{let D={...h,weightStrong:A};e?u({headingTypography:D}):i(D),o({heading_weight_strong:A})},L=A=>{let D={...h,italicStrong:A};e?u({headingTypography:D}):i(D),o({accent_italic:A})};return Ss(Il,{children:[Ee(HD,{saved:f,old:d,colours:S,colourNameOf:C,sizeOf:I,onChange:w,openId:t===KC?null:t,onOpenChange:r,withoutSize:e}),Ee(UD,{font:p.accent,size:m.accent,weight:h.weightStrong,italic:h.italicStrong,headingWeight:h.weight,open:t===KC,onOpenChange:A=>r(A?KC:null),onChange:A=>{A.key==="font"?b(A.value):A.key==="size"?y(A.value):A.key==="weight"?v(A.value):L(A.value)},withoutSize:e})]})}var KC="accent",kne={"heading-1":"heading","heading-2":"heading2","heading-3":"heading3","body-1":"body","body-5":"label"},Tne={heading:32,body:14},Pne={heading:"main h1, main h2",heading2:"main h1, main h2",heading3:"main h1, main h2",accent:"main h1 em, main h2 em",body:"main p",label:"main .mono-eyebrow"};function Ene(e){if(typeof document>"u")return null;let o=(bne()?.contentDocument??document).querySelector(Pne[e]);if(!o)return null;let t=parseFloat(getComputedStyle(o).fontSize);return Number.isFinite(t)?t:null}function _ne({themeFromDocument:e,persist:o}){let{appState:t,dispatch:r}=fM(p=>p),{cornerRadiusPx:a,setCornerRadiusPx:n}=fe(),s=t.data,i=s.root?.props??{},l=i.cornerRadiusPx===void 0?ou[eu(i.cornerStyle)]:Ht(i.cornerRadiusPx),d=e?l:a,f=Fd("cornerRadius",a,n,o),u=p=>r({type:"replaceRoot",root:{...s.root,props:{...i,...p}},recordHistory:!0});return Ee(_N,{value:d,onChange:p=>{e?(u({cornerRadiusPx:p}),o({corner_radius_px:p})):f.write(p)},...e?{}:{length:f.length}})}function One({persist:e}){let{siteWidth:o,setSiteWidth:t,sectionBackgroundWidth:r,setSectionBackgroundWidth:a,sectionContentWidth:n,setSectionContentWidth:s}=fe(),i=qC(),l=Fd("siteWidth",o??null,t,e);if(i!=="desktop")return null;let d=typeof o=="number"?o:l.shown(je.default),f=l.write,u=m=>{a(m),e({section_background_width:m},!0)},p=m=>{s(m),e({section_content_width:m},!0)};return Ss(Il,{children:[Ee(Ch,{value:r??"full",changed:r!==null,detail:c("Full width"),onChange:u,onReset:()=>u(null),hint:GN}),Ee(vh,{mode:n??"content",px:d,min:je.min,max:je.max,changed:typeof o=="number"||n!==null,detail:`${c("Content width")} ${je.default}px`,onMode:p,onPx:m=>f(m),onReset:()=>{p(null),f(null)},hint:jN,length:l.length})]})}function Ane({persist:e}){let{siteGutter:o,siteGutterPhone:t,setSiteGutter:r,setSiteGutterPhone:a,siteLengthUnits:n}=fe(),s=UN(qC(),{gutter:o,phone:t,gutterUnit:n.siteGutterUnit}),i=s?.key==="site_gutter_phone",l=Fd(HC("siteGutter",i?"mobile":"desktop"),s?.value??null,i?a:r,e);return s?Ee(zN,{value:s.value,onChange:l.write,unsetPx:s.unsetPx,restsOn:l.shown(s.unsetPx),bounds:s.bounds,length:l.length}):null}function Rne({persist:e}){let{blockGap:o,blockGapPhone:t,setBlockGap:r,setBlockGapPhone:a,siteLengthUnits:n}=fe(),s=BN(qC(),{gap:o,phone:t}),i=s?.key==="block_gap_phone",l=s?.followsPx==null?null:{figure:s.followsPx,unit:_e(n.blockGapUnit)},d=Fd(HC("blockGap",i?"mobile":"desktop"),s?.value??null,i?a:r,e,l);return s?Ee(NN,{value:s.value,onChange:d.write,followsPx:d.rest,followsUnit:d.length.unit,length:d.length}):null}function Lne({persist:e}){return Ss(Il,{children:[Ee(One,{persist:e}),Ee(Ane,{persist:e}),Ee(Rne,{persist:e})]})}function Fne(e){return{card_shadow:e}}function Bne(e){return e===null?{shadow_color:null}:{shadow_color:Sne(e)}}function Nne(e){return{hover_effect:e}}function Dne({persist:e}){let{cardShadow:o,setCardShadow:t,shadowColor:r,setShadowColor:a,hoverEffect:n,setHoverEffect:s}=fe();return Ss(Il,{children:[Ee(ON,{value:o,onChange:i=>{t(i),e(Fne(i),!0)}}),Ee(LN,{value:r,onChange:i=>{a(i),e(Bne(i),i===null)}}),Ee(DN,{value:n,onChange:i=>{s(i),e(Nne(i),!0)}})]})}function Mne(e){return{photography_grayscale:e}}function Hne({persist:e}){let{photographyGrayscale:o,setPhotographyGrayscale:t}=fe();return Ee(HN,{value:o,onChange:r=>{t(r),e(Mne(r),!0)}})}function Wne({persist:e}){return Ee(Il,{children:Ee(Hne,{persist:e})})}function $ne(e){return{share_button_on_posts:e}}function Une({persist:e}){let{shareButtonOnPosts:o,setShareButtonOnPosts:t}=fe();return Ee(WN,{value:o,onChange:r=>{t(r),e($ne(r),!0)}})}function bl(){let{websiteName:e}=fe();return e?.trim()||GO}function $h({themeFromDocument:e=!1,tokenRef:o,siteId:t,onNotify:r,tab:a,onTabChange:n,initialTab:s,revealPageGroup:i=!1,onPageGroupRevealed:l}){let{persist:d}=Ki({themeFromDocument:e,tokenRef:o,siteId:t,onResult:w=>{let S=YD(w);S&&r?.(S.msg,S.tone)}}),[f,u]=YC(s??gl[0].id),p=a!==void 0,m=p?a:f,h=p?n??(()=>{}):u,I=gl.find(w=>w.id===m)??gl[0];return Ss(une,{children:[Ee(jne,{activeId:I.id,onSelect:h}),Ss("div",{id:xne(VC,I.id),className:wne,role:"tabpanel","aria-labelledby":hne(VC,I.id),children:[m===yl&&Ss(Il,{children:[Ee(_ne,{themeFromDocument:e,persist:d}),!e&&Ee(Dne,{persist:d}),!e&&Ee(Lne,{persist:d}),!e&&Ee(Wne,{persist:d}),!e&&Ee(Une,{persist:d}),Ee(zne,{reveal:i,onRevealed:l})]}),m==="theme"&&Ee(Cne,{themeFromDocument:e,persist:d}),m==="text"&&Ee(vne,{themeFromDocument:e,persist:d})]})]})}function zne({reveal:e,onRevealed:o}){let[t,r]=YC(!0),a=fne(o);return a.current=o,dne(()=>{if(!e)return;r(!0);let n=requestAnimationFrame(()=>{document.getElementById(dM)?.scrollIntoView({block:"start"}),a.current?.()});return()=>cancelAnimationFrame(n)},[e]),Ee(cne,{title:c("This page"),open:t,onToggle:r,id:dM,children:Ee(Gne,{})})}function Gne(){let{fields:e,values:o,readOnly:t,onChange:r}=ine(),a=Object.fromEntries(Nd.filter(n=>n in e).map(n=>[n,e[n]]));return Object.keys(a).length===0?Ee(pne,{variant:"none",icon:!1,message:c("This page has no look of its own to set.")}):Ee(lne,{fields:a,values:o,onChange:r,readOnly:t,tabs:!1,idPrefix:"this-page",ariaLabel:c("This page")})}function jne({activeId:e,onSelect:o}){return Ee("div",{className:"es-insp-tabs",children:Ee(mne,{variant:"underline",block:!0,labelsFit:!0,"aria-label":c("Styles"),idPrefix:VC,value:e,onChange:o,items:gl.map(t=>{let r=c(t.label);return{id:t.id,icon:t.icon,label:r}})})})}import{InspectorIconButton as cSe}from"efficient-easel/chrome";import{Input as dSe,PopupMenu as fSe,PopupMenuItem as Cj,toast as vj}from"efficient-shell/ui";import{LayersTree as pSe,TreeGroupLabel as uSe,TreeRow as kj,TreeRowAction as yI}from"efficient-easel/tree";import{AddIcon as mSe,DuplicateIcon as hSe,PageIcon as xSe,SettingsIcon as gSe}from"efficient-easel/icons";import{PagesIcon as ISe}from"efficient-easel/rail";import{useEaselHost as ySe}from"efficient-easel/screen/lib/host";import{useEaselSession as kP}from"efficient-easel/screen/lib/session-context";import{useCallback as Uh,useEffect as Kne,useSyncExternalStore as Vne}from"react";import{useScreenDocument as xM}from"efficient-easel/screen/components/ScreenDocumentContext";var uM=new WeakMap;function Dd(e){let o=uM.get(e);return o||(o={rows:null,loading:null,listeners:new Set},uM.set(e,o)),o}function XC(e,o){e.rows=o;for(let t of e.listeners)t()}var zh=new Set;function Gh(e,o){o?zh.add(e):zh.delete(e)}function mM(e){let o=Dd(e),t=e.listPages().then(r=>XC(o,zh.size?r.filter(a=>!zh.has(a.id)):r),()=>XC(o,[])).finally(()=>{o.loading===t&&(o.loading=null)});return o.loading=t,t}var hM=()=>null,Yne=()=>()=>{};function Md(){let{adapter:e,ready:o}=xM(),t=Uh(i=>{let{listeners:l}=Dd(e);return l.add(i),()=>l.delete(i)},[e]),r=Uh(()=>Dd(e).rows,[e]),a=Vne(o?t:Yne,o?r:hM,hM);Kne(()=>{if(!o)return;let i=Dd(e);i.rows===null&&!i.loading&&mM(e)},[e,o]);let n=Uh(()=>o?mM(e):Promise.resolve(),[e,o]),s=Uh(i=>XC(Dd(e),i),[e]);return{rows:a,reload:n,setRows:s,getRows:r}}function qne(e,o){return e?.find(t=>t.slug===o)?.label?.trim()||`/${o}`}function gM(){let{currentSlug:e}=xM(),{rows:o}=Md();return qne(o,e)}import{canDuplicatePage as bSe,DuplicatePageDialog as SSe}from"efficient-easel/page-copy";import{jsx as Nt,jsxs as bP}from"react/jsx-runtime";import{useEffect as $be,useId as Ube,useMemo as zbe,useRef as Gbe,useState as SP}from"react";import{useScreenDocument as jbe}from"efficient-easel/screen/components/ScreenDocumentContext";import{useEaselSession as Kbe}from"efficient-easel/screen/lib/session-context";import{uniqueSlug as mj}from"efficient-easel/page-copy";import{AddIcon as Vbe}from"efficient-easel/icons";import{Dialog as Ybe,EmptyState as qbe,Grid as Xbe,LoadingSpinner as Zbe,Paragraph as Jbe,SidebarActionButton as Qbe,SidebarLayout as eSe,SidebarNavItem as wP,Title as oSe,toast as hj}from"efficient-shell/ui";import{jsx as Pr,jsxs as $6}from"react/jsx-runtime";import{useMemo as qme,useState as Xme}from"react";import{CanvasFrame as Zme}from"efficient-easel/easel";import{Button as Jme,Card as Qme,FitFrame as ehe,Text as ohe}from"efficient-shell/ui";import{jsx as wM,Fragment as ise,jsxs as lse}from"react/jsx-runtime";import{useEffect as CM,useLayoutEffect as cse}from"react";var jh="data-theme",IM="light";function Xne(e){return e.getAttribute(jh)===IM?"light":"dark"}function Zne(e,o){return Xne(e)===o?!1:(o==="light"?e.setAttribute(jh,IM):e.removeAttribute(jh),!0)}function Jne(e){return Yy(e).getItem(Dy)}function b3e(e,o){Yy(e).setItem(Dy,o)}function Qne(e,o,t=new Date().getHours()){return v_({mode:o.mode,override:Jne(e),switchShown:o.switchShown,hour:t})}function yM(e,o){let t=e.documentElement;if(!t)return()=>{};let r=()=>Zne(t,Qne(e,o));r();let a=e.defaultView?.MutationObserver;if(!a)return()=>{};let n=new a(r);return n.observe(t,{attributes:!0,attributeFilter:[jh]}),()=>n.disconnect()}var ese="style";function ose(e,o){let t=Qp(o),r=!1;for(let a of M_){let n=t[a]??"";e.style.getPropertyValue(a)!==n&&(n?e.style.setProperty(a,n):e.style.removeProperty(a),r=!0)}return r}function bM(e,o){let t=e.body;if(!t)return()=>{};let r=()=>ose(t,o);r();let a=e.defaultView?.MutationObserver;if(!a)return()=>{};let n=new a(r);return n.observe(t,{attributes:!0,attributeFilter:[ese]}),()=>n.disconnect()}import{VIEW_DESKTOP_MIN as tse,VIEW_TABLET_MIN as rse}from"efficient-easel/screen/lib/content/view-tiers";var ka={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"},Ft=ka,ase=e=>e.flatMap(o=>[`[${o}] p`,`[${o}] li`]).join(","),nse=String.raw`(function (doc) {
|
|
5
|
-
if (doc.__sfFitWords) return;
|
|
6
|
-
var win = doc.defaultView;
|
|
7
|
-
var SELECTOR = "h1,h2,h3,h4,h5,h6,[class*='font-heading'],[class*='font-display']";
|
|
8
|
-
// Body text a block asked to shrink (its Text group's Shrink), beside
|
|
9
|
-
// the headings: what this script may fit at all. modeOf() decides each one.
|
|
10
|
-
var SHRINK_BODY = ${JSON.stringify(ase([Ft.fit,Ft.fitTablet,Ft.fitPhone]))};
|
|
11
|
-
var CANDIDATES = SELECTOR + "," + SHRINK_BODY;
|
|
12
|
-
var MIN_SCALE = 0.3, MIN_PX = 16, SLACK = 1, PHONE_BELOW = ${Jo};
|
|
13
|
-
var TABLET_MIN = ${rse}, DESKTOP_MIN = ${tse};
|
|
14
|
-
|
|
15
|
-
// A block's own answer (lib/content/block-size, the wrapper's attributes):
|
|
16
|
-
// the fit "wrap" | "shrink" | "line" | "ellipsis" and the floor, each with a tablet and a
|
|
17
|
-
// phone twin. From 1100 the desktop's; from the tablet line (800 for a holder
|
|
18
|
-
// in a Box, marked edge; 720 outside one) the tablet's where it has one;
|
|
19
|
-
// under it the phone's, else the tablet's, else the desktop's. With no
|
|
20
|
-
// tablet answer the phone's is read under 800, as before (the edge moves with
|
|
21
|
-
// F1). With none, a heading shrinks and body text wraps, as always.
|
|
22
|
-
// A holder with any tablet attribute takes the three views (its line and 1100)
|
|
23
|
-
// for its fit AND its floor together; one with none keeps the 800 edge.
|
|
24
|
-
var TABLET_ATTRS = [${JSON.stringify(Ft.fitTablet)}, ${JSON.stringify(Ft.minTablet)}];
|
|
25
|
-
function own(el, attr, tabletAttr, phoneAttr) {
|
|
26
|
-
var holder = el.closest("[" + attr + "],[" + tabletAttr + "],[" + phoneAttr + "]");
|
|
27
|
-
if (!holder) return null;
|
|
28
|
-
var w = win.innerWidth, d = holder.getAttribute(attr);
|
|
29
|
-
if (w >= DESKTOP_MIN) return d;
|
|
30
|
-
var t = holder.getAttribute(tabletAttr), p = holder.getAttribute(phoneAttr);
|
|
31
|
-
if (w < (holder.hasAttribute(${JSON.stringify(Ft.edge)}) ? PHONE_BELOW : TABLET_MIN)) return p || t || d;
|
|
32
|
-
if (holder.hasAttribute(TABLET_ATTRS[0]) || holder.hasAttribute(TABLET_ATTRS[1])) return t || d;
|
|
33
|
-
return (w < PHONE_BELOW && p) || d;
|
|
34
|
-
}
|
|
35
|
-
function modeOf(el) {
|
|
36
|
-
var mode = own(el, ${JSON.stringify(Ft.fit)}, ${JSON.stringify(Ft.fitTablet)}, ${JSON.stringify(Ft.fitPhone)});
|
|
37
|
-
if (mode === "wrap" || mode === "shrink") return mode;
|
|
38
|
-
// One line and Shorten (stored "ellipsis", which cuts its words with "..."):
|
|
39
|
-
// the block keeps its words at their set size, nothing shrinks.
|
|
40
|
-
if (mode === "line" || mode === "ellipsis") return "wrap";
|
|
41
|
-
return el.matches(SELECTOR) ? "shrink" : "wrap";
|
|
42
|
-
}
|
|
43
|
-
function floorOf(el, set) {
|
|
44
|
-
var raw = own(el, ${JSON.stringify(Ft.min)}, ${JSON.stringify(Ft.minTablet)}, ${JSON.stringify(Ft.minPhone)});
|
|
45
|
-
var min = parseFloat(raw);
|
|
46
|
-
// A Min font size in vw (block-size.ts): a share of the window's width.
|
|
47
|
-
if (/vw$/.test(String(raw))) min = min * win.innerWidth / 100;
|
|
48
|
-
return min >= 0 ? min : Math.max(set * MIN_SCALE, MIN_PX);
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
function measure(el) {
|
|
52
|
-
var widest = 0, current = 0, last = null, split = false, lastBlock = null;
|
|
53
|
-
function blockOf(n) {
|
|
54
|
-
for (var p = n.parentElement; p && p !== el; p = p.parentElement) {
|
|
55
|
-
var d = win.getComputedStyle(p).display;
|
|
56
|
-
if (d.indexOf("inline") !== 0 && d !== "contents") return p;
|
|
57
|
-
}
|
|
58
|
-
return el;
|
|
59
|
-
}
|
|
60
|
-
function close() { if (current > widest) widest = current; current = 0; last = null; }
|
|
61
|
-
var walker = doc.createTreeWalker(el, 5), range = doc.createRange(), node;
|
|
62
|
-
while ((node = walker.nextNode())) {
|
|
63
|
-
if (node.nodeType === 1) {
|
|
64
|
-
if (node.tagName === "BR" || node.tagName === "WBR") close();
|
|
65
|
-
continue;
|
|
66
|
-
}
|
|
67
|
-
var block = blockOf(node);
|
|
68
|
-
if (block !== lastBlock) close();
|
|
69
|
-
lastBlock = block;
|
|
70
|
-
var re = /(\S+)|(\s+)/g, m;
|
|
71
|
-
while ((m = re.exec(node.data))) {
|
|
72
|
-
if (m[2]) { close(); continue; }
|
|
73
|
-
range.setStart(node, m.index);
|
|
74
|
-
range.setEnd(node, m.index + m[0].length);
|
|
75
|
-
var rects = range.getClientRects();
|
|
76
|
-
for (var i = 0; i < rects.length; i++) {
|
|
77
|
-
var r = rects[i];
|
|
78
|
-
if (r.width <= 0) continue;
|
|
79
|
-
current += r.width;
|
|
80
|
-
if (last && r.top > last.top + last.height / 2) split = true;
|
|
81
|
-
last = r;
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
close();
|
|
86
|
-
return { widest: widest, split: split };
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
function lineWidth(el) {
|
|
90
|
-
var cs = win.getComputedStyle(el);
|
|
91
|
-
return el.getBoundingClientRect().width - parseFloat(cs.paddingLeft) - parseFloat(cs.paddingRight)
|
|
92
|
-
- parseFloat(cs.borderLeftWidth) - parseFloat(cs.borderRightWidth);
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
// ⚠️ THE HEADING ELEMENT IS NEVER TOUCHED — no style="", no data-*. This
|
|
96
|
-
// runs before React hydrates, and React 19 in development reports ANY
|
|
97
|
-
// attribute that differs from what it rendered ("a tree hydrated but some
|
|
98
|
-
// attributes didn't match"): first our inline font-size on the hero (which
|
|
99
|
-
// React owns via --heading-size), then, when that moved to a data-sf-fit
|
|
100
|
-
// attribute, the attribute itself. So the fitted size lives only in this
|
|
101
|
-
// script's own stylesheet, in <head>, addressed to each heading by its
|
|
102
|
-
// POSITION (":root>*:nth-child(2)>…"). A position goes stale when the page's
|
|
103
|
-
// structure changes, so the rules are rewritten in the MutationObserver
|
|
104
|
-
// callback, which runs before the next paint. !important so the size also
|
|
105
|
-
// beats a part's own inline size.
|
|
106
|
-
var head = doc.head || doc.documentElement;
|
|
107
|
-
var fitEl = doc.createElement("style");
|
|
108
|
-
fitEl.id = "storefront-fit-words-sizes";
|
|
109
|
-
head.appendChild(fitEl);
|
|
110
|
-
// heading -> [[element, fitted size]]: the heading and each Text part inside
|
|
111
|
-
// it that holds its own size (a span [data-sf-part-styled]), e.g.
|
|
112
|
-
// [[h2, "43.8px"], [span, "43.8px"]]. Sizing the heading alone leaves such
|
|
113
|
-
// a part at its own size, and the word still breaks (card C25, Spec Table).
|
|
114
|
-
var fitted = new Map();
|
|
115
|
-
|
|
116
|
-
function pathOf(el) {
|
|
117
|
-
var parts = [];
|
|
118
|
-
for (var e = el; e && e.parentElement; e = e.parentElement) {
|
|
119
|
-
var i = 1, s = e;
|
|
120
|
-
while ((s = s.previousElementSibling)) i++;
|
|
121
|
-
parts.unshift("*:nth-child(" + i + ")");
|
|
122
|
-
}
|
|
123
|
-
return ":root>" + parts.join(">");
|
|
124
|
-
}
|
|
125
|
-
function writeRules() {
|
|
126
|
-
var css = "";
|
|
127
|
-
fitted.forEach(function (sizes, el) {
|
|
128
|
-
if (!el.isConnected) { fitted.delete(el); return; }
|
|
129
|
-
for (var i = 0; i < sizes.length; i++) css += pathOf(sizes[i][0]) + "{font-size:" + sizes[i][1] + " !important}";
|
|
130
|
-
});
|
|
131
|
-
if (fitEl.textContent !== css) fitEl.textContent = css;
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
function unfit(el) {
|
|
135
|
-
if (fitted.delete(el)) writeRules();
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
function fits(el) {
|
|
139
|
-
var m = measure(el);
|
|
140
|
-
return !m.split && m.widest <= lineWidth(el) + SLACK;
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
function fit(el) {
|
|
144
|
-
unfit(el);
|
|
145
|
-
if (modeOf(el) !== "shrink") return; // the block's own Wrap
|
|
146
|
-
if (lineWidth(el) <= 0) return; // hidden, or not laid out yet
|
|
147
|
-
if (fits(el)) return;
|
|
148
|
-
var set = parseFloat(win.getComputedStyle(el).fontSize);
|
|
149
|
-
if (!set) return;
|
|
150
|
-
var floor = floorOf(el, set);
|
|
151
|
-
if (floor >= set) return;
|
|
152
|
-
function size(px) { return Math.floor(px * 10) / 10 + "px"; }
|
|
153
|
-
// The SEARCH tries sizes on the element's own style and then puts that
|
|
154
|
-
// attribute back byte for byte (or removes it, if it had none), so nothing
|
|
155
|
-
// is left for React to see. A trial in a stylesheet instead restyles the
|
|
156
|
-
// whole page per step: a full pass on the Hartes home took 75–160ms at 4x
|
|
157
|
-
// CPU that way.
|
|
158
|
-
// Every trial scales the heading AND each part inside it that holds its
|
|
159
|
-
// own size, by the same ratio, so a part keeps its proportion to the
|
|
160
|
-
// heading.
|
|
161
|
-
var carriers = [el].concat(Array.prototype.slice.call(el.querySelectorAll("[data-sf-part-styled]")));
|
|
162
|
-
var base = carriers.map(function (c) { return parseFloat(win.getComputedStyle(c).fontSize) || set; });
|
|
163
|
-
var saved = carriers.map(function (c) { return c.hasAttribute("style") ? c.getAttribute("style") : null; });
|
|
164
|
-
function attempt(px) {
|
|
165
|
-
for (var i = 0; i < carriers.length; i++) carriers[i].style.setProperty("font-size", size(base[i] * px / set), "important");
|
|
166
|
-
}
|
|
167
|
-
function done() {
|
|
168
|
-
for (var i = 0; i < carriers.length; i++) {
|
|
169
|
-
if (saved[i] !== null) carriers[i].setAttribute("style", saved[i]); else carriers[i].removeAttribute("style");
|
|
170
|
-
}
|
|
171
|
-
}
|
|
172
|
-
attempt(floor);
|
|
173
|
-
if (!fits(el)) { done(); return; } // even the floor does not fit: leave it as set
|
|
174
|
-
var lo = floor, hi = set;
|
|
175
|
-
for (var i = 0; i < 8; i++) {
|
|
176
|
-
var mid = (lo + hi) / 2;
|
|
177
|
-
attempt(mid);
|
|
178
|
-
if (fits(el)) lo = mid; else hi = mid;
|
|
179
|
-
}
|
|
180
|
-
done();
|
|
181
|
-
fitted.set(el, carriers.map(function (c, i) { return [c, size(base[i] * lo / set)]; }));
|
|
182
|
-
writeRules();
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
// What each heading measured right after we last fitted it, so the
|
|
186
|
-
// ResizeObserver below can tell a real change (a font swap, a rotate, a
|
|
187
|
-
// container that moved) from the size change our own write just caused.
|
|
188
|
-
var seen = new WeakMap();
|
|
189
|
-
function remember(el) {
|
|
190
|
-
var b = el.getBoundingClientRect();
|
|
191
|
-
seen.set(el, b.width + "x" + b.height);
|
|
192
|
-
}
|
|
193
|
-
function fitAndRemember(el) { fit(el); remember(el); }
|
|
194
|
-
|
|
195
|
-
// ⚠️ A ResizeObserver, NOT fonts.ready or a resize event, and the reason is
|
|
196
|
-
// WHEN it runs: after layout, BEFORE paint. The web font arriving re-wraps a
|
|
197
|
-
// fitted heading, and fonts.ready resolves only after that frame is painted —
|
|
198
|
-
// measured on the Hartes hero: a 42px jump in 2 of 3 loads. A size change
|
|
199
|
-
// reported here is fitted in the same frame, so the broken state is never
|
|
200
|
-
// drawn. It also covers a container that resizes.
|
|
201
|
-
var ro = new win.ResizeObserver(function (entries) {
|
|
202
|
-
for (var i = 0; i < entries.length; i++) {
|
|
203
|
-
var el = entries[i].target;
|
|
204
|
-
var b = el.getBoundingClientRect();
|
|
205
|
-
if (seen.get(el) === b.width + "x" + b.height) continue; // our own write
|
|
206
|
-
fitAndRemember(el);
|
|
207
|
-
}
|
|
208
|
-
});
|
|
209
|
-
// Its own set, not seen: fitAndRemember has written seen by the
|
|
210
|
-
// time watch runs, so a seen test observed no heading at all, and a
|
|
211
|
-
// heading fitted in the fallback face was never fitted again when the web
|
|
212
|
-
// font arrived (hartesmetal.com.au, "FusionForge." with its "." alone).
|
|
213
|
-
var watched = new WeakSet();
|
|
214
|
-
function watch(el) { if (!watched.has(el)) { watched.add(el); ro.observe(el); } }
|
|
215
|
-
|
|
216
|
-
function fitAll() {
|
|
217
|
-
var els = doc.querySelectorAll(CANDIDATES);
|
|
218
|
-
for (var i = 0; i < els.length; i++) {
|
|
219
|
-
if (modeOf(els[i]) === "shrink") { fitAndRemember(els[i]); watch(els[i]); }
|
|
220
|
-
else unfit(els[i]); // Wrap here (a phone value may differ from the desktop's)
|
|
221
|
-
}
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
var queued = 0, all = false, touched = new Set();
|
|
225
|
-
function run() {
|
|
226
|
-
queued = 0;
|
|
227
|
-
if (all) { all = false; touched.clear(); fitAll(); return; }
|
|
228
|
-
var els = Array.from(touched);
|
|
229
|
-
touched.clear();
|
|
230
|
-
for (var i = 0; i < els.length; i++) {
|
|
231
|
-
if (!els[i].isConnected) continue;
|
|
232
|
-
if (modeOf(els[i]) === "shrink") { fitAndRemember(els[i]); watch(els[i]); }
|
|
233
|
-
else unfit(els[i]);
|
|
234
|
-
}
|
|
235
|
-
}
|
|
236
|
-
function schedule() { if (!queued) queued = win.requestAnimationFrame(run); }
|
|
237
|
-
function scheduleAll() { all = true; schedule(); }
|
|
238
|
-
|
|
239
|
-
fitAll();
|
|
240
|
-
// A backstop only: a font that changes widths without changing any
|
|
241
|
-
// heading's box is not seen by the ResizeObserver.
|
|
242
|
-
if (doc.fonts && doc.fonts.ready) doc.fonts.ready.then(scheduleAll, function () {});
|
|
243
|
-
|
|
244
|
-
// …and the viewport WIDTH, which the ResizeObserver cannot stand in for: a
|
|
245
|
-
// heading sized to its own text (fit-content, a flex item) keeps the SAME box
|
|
246
|
-
// when the phone turns to 844, so nothing reports a change and it would stay
|
|
247
|
-
// shrunk. The probe's rotate check caught exactly that.
|
|
248
|
-
var lastWidth = win.innerWidth;
|
|
249
|
-
function onResize() {
|
|
250
|
-
if (win.innerWidth === lastWidth) return; // a phone's toolbar changing HEIGHT is not our business
|
|
251
|
-
lastWidth = win.innerWidth;
|
|
252
|
-
scheduleAll();
|
|
253
|
-
}
|
|
254
|
-
win.addEventListener("resize", onResize);
|
|
255
|
-
|
|
256
|
-
var mo = new win.MutationObserver(function (records) {
|
|
257
|
-
// Positions first: a node added or removed anywhere can shift the
|
|
258
|
-
// nth-child path of a fitted heading, and this callback runs before paint.
|
|
259
|
-
if (fitted.size) {
|
|
260
|
-
for (var q = 0; q < records.length; q++) if (records[q].type === "childList") { writeRules(); break; }
|
|
261
|
-
}
|
|
262
|
-
for (var i = 0; i < records.length; i++) {
|
|
263
|
-
var r = records[i];
|
|
264
|
-
// A block's text fit (Wrap / Shrink / One line) or Min font size changed in the editor:
|
|
265
|
-
// only a data-fit attribute moved, so every heading is measured again.
|
|
266
|
-
if (r.type === "attributes") { scheduleAll(); continue; }
|
|
267
|
-
var target = r.target.nodeType === 1 ? r.target : r.target.parentElement;
|
|
268
|
-
var owner = target && target.closest(CANDIDATES);
|
|
269
|
-
if (owner) touched.add(owner);
|
|
270
|
-
for (var j = 0; j < r.addedNodes.length; j++) {
|
|
271
|
-
var n = r.addedNodes[j];
|
|
272
|
-
if (n.nodeType !== 1) continue;
|
|
273
|
-
if (n.matches(CANDIDATES)) touched.add(n);
|
|
274
|
-
var inner = n.querySelectorAll(CANDIDATES);
|
|
275
|
-
for (var k = 0; k < inner.length; k++) touched.add(inner[k]);
|
|
276
|
-
}
|
|
277
|
-
}
|
|
278
|
-
if (touched.size) schedule();
|
|
279
|
-
});
|
|
280
|
-
mo.observe(doc.body, {
|
|
281
|
-
childList: true,
|
|
282
|
-
subtree: true,
|
|
283
|
-
characterData: true,
|
|
284
|
-
attributes: true,
|
|
285
|
-
attributeFilter: ${JSON.stringify(Object.values(Ft))},
|
|
286
|
-
});
|
|
287
|
-
|
|
288
|
-
doc.__sfFitWords = function stop() {
|
|
289
|
-
win.removeEventListener("resize", onResize);
|
|
290
|
-
ro.disconnect();
|
|
291
|
-
mo.disconnect();
|
|
292
|
-
if (queued) win.cancelAnimationFrame(queued);
|
|
293
|
-
fitted.clear();
|
|
294
|
-
fitEl.remove();
|
|
295
|
-
delete doc.__sfFitWords;
|
|
296
|
-
};
|
|
297
|
-
// For the probe and for debugging: which headings are fitted, at what size,
|
|
298
|
-
// and the sheet that holds it (disable it to read a heading's set size).
|
|
299
|
-
doc.__sfFitWords.fitted = fitted;
|
|
300
|
-
doc.__sfFitWords.sheet = fitEl;
|
|
301
|
-
// …and the two questions a block's own answer changes, for the guard
|
|
302
|
-
// (scripts/test-block-size.tsx §5): which mode an element is in, and its floor.
|
|
303
|
-
doc.__sfFitWords.modeOf = modeOf;
|
|
304
|
-
doc.__sfFitWords.floorOf = floorOf;
|
|
305
|
-
})(document);`,sse="storefront-fit-words";function SM(e){let o=e.createElement("script");return o.id=sse,o.textContent=nse,(e.head??e.documentElement).appendChild(o),()=>{e.__sfFitWords?.(),o.remove()}}var dse=`
|
|
306
|
-
[${co}][${co}] { cursor: text; }
|
|
307
|
-
`;function Kh({children:e,document:o}){let{theme:t,themeMode:r,themeSwitchShown:a}=fe(),n=vo(t);return CM(()=>{if(o)return yM(o,{mode:r,switchShown:a})},[o,r,a]),CM(()=>{if(o)return bM(o,n)},[o,n]),cse(()=>{if(o)return SM(o)},[o]),lse(ise,{children:[wM(QO,{}),wM("style",{children:dse}),e]})}import{jsx as G$}from"react/jsx-runtime";import{memo as Hue}from"react";import{Render as Wue}from"efficient-easel/render";import{jsx as Sl}from"react/jsx-runtime";import{createContext as fse,useContext as pse,useMemo as use}from"react";var ZC=fse(null);function mse({children:e}){return Sl(ZC.Provider,{value:"first",children:e})}function Yh({children:e}){return Sl(ZC.Provider,{value:"below",children:e})}function Hd(){return pse(ZC)}function JC(){return Hd()==="below"?{loading:"lazy"}:{}}function qh(e){let o=JC();return Sl("img",{...e,...o})}var vM="laterSlideIds",hse=new Set(["Breadcrumb","CategoryBar","Divider","Spacer","Ticker"]);function kM(e){return Bd(e?.filter(o=>!o?.type||!hse.has(o.type)))}function Vh(e,o=[]){if(Array.isArray(e))for(let t of e)Vh(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))Vh(r,o)}return o}function TM(e,o){let t=o?.type,r=o?.props?.id;return use(()=>{let a=t?e.components[t]:void 0;if(!t||!a)return e;let n=a.render,s=i=>i.id===r?Sl(mse,{children:Sl(n,{...i})}):Sl(n,{...i});return{...e,components:{...e.components,[t]:{...a,render:s}}}},[e,t,r])}function PM(e){return e.props?ho(e,o=>{let t=so(o,PM),r=e.type===mO&&t.every(a=>a.type===ru)?fO(t):t;return r.length!==o.length||r.some((a,n)=>a!==o[n])?r:o}):e}function EM(e){return vp(e,o=>so(o,PM))}var xse="Flex",_M="ListSearch",OM=["FAQ"],gse="listKey";function AM(e,o){let t={search:e.type===_M,list:OM.includes(String(e.type))};return ho(e,r=>{for(let a of r){let n=AM(a,o);t.search||=n.search,t.list||=n.list}return r}),e.type===xse&&t.search&&t.list&&String(e.props?.id??"")?(o.add(e),{search:!1,list:!1}):t}function RM(e,o,t){let r=o.has(e)?String(e.props?.id):t,a=ho(e,n=>so(n,s=>RM(s,o,r)));return r&&(e.type===_M||OM.includes(String(e.type)))?{...a,props:{...a.props,[gse]:r}}:a}function LM(e){return fi(e,o=>{let t=new Set;for(let r of o)AM(r,t);return t.size?so(o,r=>RM(r,t,"")):o})}import{isNode as sle,isNodeList as dH}from"efficient-easel/data";import{jsx as Ve,Fragment as Yie,jsxs as _a}from"react/jsx-runtime";import{jsx as NM}from"react/jsx-runtime";import{SITE_SIDE as Ise}from"efficient-easel/screen/lib/content/length-units";var FM="sideSpace",ws=Ise,G3e=[{value:"box",label:"Box"},{value:ws,label:"Site"}],j3e="box",K3e="Box: on small screens the Box keeps its own side space, up to 24 px. Site: it uses the site's Side space, as the site's own sections do. It has no effect when Content is Full width.";function BM(e){return e===ws?ws:"box"}function V3e(e){return e===ws?ws:void 0}import{isNodeList as yse}from"efficient-easel/data";var QC=new Set(["FAQ"]);function Bt(e,o){if(!QC.has(e))return!1;let t=o.template;return typeof t=="function"?(t.blockCount??0)>0:yse(t)}var MM={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}},HM=new Set(Object.keys(MM));function ev(e,o){return o?.innerPadding??$(MM,e)}var wl=e=>ev(e)??{};var Xh=new Set(["Flex","Text","Heading","ImageBlock"]),bse=new Set(["Divider"]),Sse=new Set(["Hero","HeroSingle","IntroBleed","CategoryBar","DocTabs"]),DM=new Set(["ProductGrid"]);function ov(e,o,t=!1){let r=e.render;e.render=a=>{if(o?.(a))return r(a);let n=ad({...AS(a,ga,t),sideSpace:BM(a.sideSpace)}),s=r(a);if(!n)return s;let i=f=>NM(me,{className:f?`${n.className} ${f}`:n.className,style:n.style,children:s}),l=Wa(a,{atSectionLine:!0}),d=Wa(a);return l===d?i(l):NM(du,{line:"by-box",draw:f=>i(f?d:l)})}}var WM={name:"sectionPadding",applies:(e,o,t)=>o.isSection(e)&&!Sse.has(e)&&!!t&&typeof t.render=="function",panel(e,o,t){let r=ev(o,e);if(r){e.fields={...e.fields,...t.sidesPaddingFields({keys:jr,unitKey:ts,fallback:r,tablet:!0,siteSide:!0})};return}if(DM.has(o))return;let a=[jr.top,jr.bottom].filter(n=>e.fields!=null&&n 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`);e.fields={...e.fields,...t.sidesPaddingFields({tablet:!0,siteSide:!0})}},draw(e,o){if(!ev(o,e)){if(DM.has(o)){ov(e);return}Xh.has(o)||bse.has(o)||ov(e,o==="Flex"?t=>Ub(t.bgImage):QC.has(o)?t=>Bt(o,t):void 0,!0)}}},wse=["Heading","Text","ImageBlock"],Cse=["LogoBlock"],$M={name:"blockPadding",applies:(e,o,t)=>(wse.includes(e)||Cse.includes(e))&&!!t&&typeof t.render=="function",panel(e,o,t){e.fields={...e.fields,...t.sidesPaddingFields({tablet:!0,siteSide:!0})}},draw(e,o){Xh.has(o)||ov(e,void 0,!0)}};import{createContext as tv,useContext as Zh}from"react";var UM=tv(null);function lWe(){return Zh(UM)===!0}function cWe(){return Zh(UM)!==null}var vse=tv(!1);function dWe(){return Zh(vse)}function fWe(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 Jh=tv(null);function pWe(){return Zh(Jh)}import{jsx as Cs}from"react/jsx-runtime";import{Component as Rse,createContext as Lse,lazy as EWe,Suspense as _We,useContext as Fse,useSyncExternalStore as Bse}from"react";function kse(e,o){let t=e.trim();if(!Qh(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 hWe(e){return e.startsWith("/")||Qh(e)}function Qh(e){return/^(?:https?:)?\/\//i.test(e.trim())}var Wd=Object.freeze({target:"_blank",rel:"noopener noreferrer"});function zM(e,o){return kse(e,o)?{...Wd}:{}}function xWe(e){return typeof e=="string"?e.trim():""}var gWe="data-sf-box-link",GM="absolute inset-0 -z-[1] outline-none focus-visible:z-[2] focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-accent",rv="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",Tse="data-sf-box-jump";function Pse(e){return`sf-box-jump-${e}`}function IWe(e,o){return e===!0?Kn(o):""}function Ese({box:e,lit:o,first:t}){let r=s=>s.join(`,
|
|
308
|
-
`),a=t(e),n=o.flatMap(t);return`
|
|
309
|
-
${e} {
|
|
310
|
-
outline: 2px solid transparent;
|
|
311
|
-
outline-offset: -2px;
|
|
312
|
-
transition: outline-color 600ms ease-out;
|
|
313
|
-
}
|
|
314
|
-
${r(a)} { transition: background-color 600ms ease-out; }
|
|
315
|
-
${r(a.map(s=>`${s} *`))} { transition: color 600ms ease-out; }
|
|
316
|
-
${r(o)} { outline-color: var(--accent); }
|
|
317
|
-
${r(n)} { background-color: var(--accent); }
|
|
318
|
-
${r([...n,...n.map(s=>`${s} *`)])} { color: var(--bg) !important; }
|
|
319
|
-
`}function yWe(e){let o=`[${Tse}="${e}"]`,t=`.${Pse(e)}`,r=`[id="${e}"]:target`;return Ese({box:o,lit:[`${r}~${o}`,`${r}~* ${o}`],first:a=>[`${a} ${t}>:first-child:not(.sf-section-anchor)`,`${a} ${t}>.sf-section-anchor:first-child+*`]})}var _se="hrefRewrite";function Ose(){return li("efficient.link-href-rewrites",()=>({rewrites:new Map,count:0,missed:new Set}))}function Ase(){return typeof process<"u"&&!0}function wWe(e){let o=e?.[_se];return typeof o=="string"?o.trim():""}function jM(e){if(!e)return null;let o=Ose(),t=o.rewrites.get(e);return!t&&!Ase()&&o.missed.add(e),t??null}var Nse={Link:$O,Image:WO},KM=Lse(Nse);function BWe({runtime:e,children:o}){return Cs(KM.Provider,{value:e,children:o})}function nv(){return Fse(KM)}function NWe(){return nv().pagePath??null}var Dse=()=>()=>{},Mse=()=>xu()||null,Hse=()=>null;function Wse(){return Bse(Dse,Mse,Hse)}function vs({hrefRewrite:e,newTab:o,...t}){let{Link:r}=nv(),a=Wse(),n=o===!0?{...t,...Wd}:o==="auto"?{...t,...zM(t.href,a)}:t,s=jM(e);return s?Cs(av,{name:s.name,href:n.href,fallback:Cs(r,{...n}),children:Cs($se,{Link:r,rewrite:s.rewrite,...n})},s.key):Cs(r,{...n})}function $se({Link:e,rewrite:o,...t}){let r=be(o(t.href)),a=r&&iE(r)?r:t.href;return Cs(e,{...t,href:a})}var av=class extends Rse{state={failed:!1,href:this.props.href};static getDerivedStateFromProps(o,t){return o.href===t.href?null:{failed:!1,href:o.href}}static getDerivedStateFromError(){return{failed:!0}}componentDidCatch(o){console.error(`The link href rewrite ${this.props.name} failed; the link goes where it was typed.`,o)}render(){return this.state.failed?this.props.fallback:this.props.children}};function ex(e){let{Image:o}=nv();return Cs(o,{...e})}import{jsx as Die}from"react/jsx-runtime";import{jsx as Le,jsxs as rt,Fragment as Lie}from"react/jsx-runtime";import{imageCopyUrl as qM,imageSrcSet as Use}from"efficient-shell/image-copies";var VM;function sv(){return VM===void 0?{}:{host:VM}}var HWe="(max-width: 800px) 100vw, min(100vw, 1600px)",WWe="(max-width: 960px) 100vw, 50vw";function ks(e,{fallbackWidth:o=1280,maxWidth:t}={}){let r=Use(e,{...sv(),...t===void 0?{}:{maxWidth:t}});return r?{src:qM(e,o,sv()),srcSet:r}:{src:e}}var zse=/[\s"'()\\;]/,Gse={"\\":"\\\\",'"':'\\"',"\n":"\\a ","\r":"\\d ","\f":"\\c "};function YM(e){return e.replace(/[\\"\n\r\f]/g,o=>Gse[o]??o)}function $We(e){let o=qM(e,1920,sv());return o===e?zse.test(e)?`url("${YM(e)}")`:`url(${e})`:`url("${YM(o)}")`}var $d="solid",jse=[{label:"Solid",value:"solid"},{label:"Outlined",value:"outlined"}];function XM(e){return xo(jse,$d,e)}var iv="sf-secnum-outline",ZM="font-display text-[length:var(--size-headingMedium,clamp(48px,6vw,96px))] font-medium leading-[0.8] tracking-[-0.02em]",JM=`@supports (-webkit-text-stroke: 1px currentColor){.${iv}{color:var(--site-surface-2);-webkit-text-stroke:1px var(--site-line)}}`;var lv="plain",QM=[{label:"Plain",value:"plain"},{label:"Filled",value:"filled"},{label:"Line",value:"line"}],Kse="line",Vse={KeyFeatures:"filled"};function Ud(e){return $(Vse,e)??lv}function e2(e,o){return xo(QM,Ud(o),e)}function VWe(e){return xo(QM,Kse,e)}import{jsxs as Es,jsx as to}from"react/jsx-runtime";import{Fragment as yv}from"react";import{Fragment as yie,jsx as xv}from"react/jsx-runtime";import{Fragment as u2,jsx as Vd,jsxs as fie}from"react/jsx-runtime";import{createContext as hv,useContext as Yd,useEffect as pie,useId as uie,useMemo as mie,useRef as hie}from"react";import{armEntrance as xie}from"efficient-shell/format";import{jsx as Yse}from"react/jsx-runtime";import{useEffect as t2,useRef as o2,useState as qse}from"react";import{armEntrance as Xse,entranceAttrs as Zse,playEntrance as Jse}from"efficient-shell/format";function ox({views:e,editing:o,boxClass:t,boxAttrs:r,boxStyle:a,takesViewHide:n=!1,atEdge:s=!1,children:i}){let l=o2(null),d=pu(),f=Wt(),u=n?f:za,p=zd(l,!0,s),{attrs:m,style:h}=Zse(e[p]),I=o2(Cl.seed(e)),w=JSON.stringify(e);return t2(()=>{let S=l.current;if(S){if(o){let C=Cl.next(I.current,e,p);I.current=C.seen,C.play&&Jse(S);return}return Xse(S)}},[w,p,o]),u.scope(Yse("div",{ref:l,className:et(`${_i}${d.fill}${t?` ${t}`:""}`,u.className),...r,...u.attrs,...m,...Object.keys(h).length||a?{style:{...a,...h}}:{},children:d.inner(i)}))}var Cl={seed(e){return{desktop:JSON.stringify(e.desktop),tablet:JSON.stringify(e.tablet),phone:JSON.stringify(e.phone)}},next(e,o,t){let r=Cl.seed(o);return{play:r[t]!==e[t],seen:r}}};function zd(e,o=!0,t=!1){return Gd(e,o,t)??"desktop"}function Gd(e,o=!0,t=!1){let[r,a]=qse(void 0),n=$a(t?"edge":"by-box"),{phone:s,tablet:i}=_C(n);return t2(()=>{if(!o)return;let l=e.current?.ownerDocument?.defaultView??(typeof window>"u"?null:window);if(!l?.matchMedia){a("desktop");return}let d=l.matchMedia(s),f=l.matchMedia(i),u=()=>a(d.matches?"phone":f.matches?"tablet":"desktop");return u(),d.addEventListener("change",u),f.addEventListener("change",u),()=>{d.removeEventListener("change",u),f.removeEventListener("change",u)}},[e,o,s,i]),r}var jd="@name",r2="@body",a2="@value",n2={[jd]:"Name",[r2]:"Body",[a2]:"Value"},Qse={TimelineTrack:{"entries.date":jd,"entries.title":jd,"entries.blurb":r2},Footprint:{"offices.city":jd},Stats:{"items.label":jd,"items.value":a2}};function eie(e){let{key:o,row:t}=Cr(e);return t?`${o}.${t.rowKey}`:null}function Ta(e,o){if(!e)return o;let t=eie(o);return t?$(Qse,e)?.[t]??o:o}import{ENTRANCE_STATE_ATTR as sie,entranceAttrs as iie,scrollAttrs as lie}from"efficient-shell/format";import{parseFocal as rie,formatFocal as aie,readScroll as nie}from"efficient-shell/format";import{phoneKey as oie,tabletKey as tie}from"efficient-easel/screen/lib/content/view-tiers";var cv=[{block:"HeroSlide",upload:"mediaImage",focus:Un.image},{block:"HeroSlide",upload:"mediaImage2",focus:Un.image2},{block:"HeroSingle",upload:"mediaImage",focus:Un.image},{block:"HeroSingle",upload:"mediaImage2",focus:Un.image2},{block:"ImageBlock",upload:"src",focus:"focal"}],s2=e=>[e,tie(e),oie(e)],l$e=[...new Set(cv.flatMap(e=>s2(e.focus)))].sort();function i2(e,o){let[t,r,a]=s2(o).map(n=>typeof e[n]=="string"&&e[n]?e[n]:void 0);return{desktop:t,tablet:r,phone:a}}var Go={effect:"scroll",zoom:"scrollZoom",start:"scrollStart",end:"scrollEnd"},vl="_gScroll",tx="_cScroll",rx=nu(Object.values(Go));function Pa(e,o){return nie(Oc(e,Go.effect,o),Oc(e,Go.zoom,o),Oc(e,Go.start,o),Oc(e,Go.end,o))}function kl(e){let o={desktop:Pa(e,"desktop"),tablet:Pa(e,"tablet"),phone:Pa(e,"phone")};return It.every(t=>o[t].effect==="none")?null:o}function dv(e){let o=xO(e.desktop,e.tablet,e.phone),t=r=>{let a=o[r];if(typeof a!="string")return;let{x:n,y:s}=rie(a);return aie(n,s)};return{desktop:t("desktop"),tablet:t("tablet"),phone:t("phone")}}function l2(e,o){return dv(i2(e,o))}var ax={},fv="_partMotion",pv=[...su,Mt,uo.duration,uo.delay,...rx];function d2(e){return ul(e,fv)}function Ts(e,o){return Eh(e,fv,o)}var cie=new Set([_t.kind,Mt,Go.effect]);function f2(e,o,t,r){let{[t]:a,...n}=Ts(e,o),s=r==null||r===""||r==="none"&&cie.has(t)?n:{...n,[t]:r};return _h(e,fv,o,Object.keys(s).length?s:null)}function Kd(e){return{entrance:Oi(e),hover:mE(e),scroll:kl(e)}}function p2(e){let o=Kd(e);return o.entrance!==null||o.hover!=="none"||o.scroll!==null}function nx(e,o){let{attrs:t,style:r}=iie(o),a=Object.keys(t).filter(n=>t[n]!==void 0);for(let n of a)e.setAttribute(n,String(t[n]));for(let[n,s]of Object.entries(r))e.style.setProperty(n,String(s));return()=>{for(let n of a)e.removeAttribute(n);for(let n of Object.keys(r))e.style.removeProperty(n);e.removeAttribute(sie)}}function sx(e,o){let{attrs:t,style:r}=lie(o);for(let[a,n]of Object.entries(t))e.setAttribute(a,n);for(let[a,n]of Object.entries(r))e.style.setProperty(a,n);return()=>{for(let a of Object.keys(t))e.removeAttribute(a);for(let a of Object.keys(r))e.style.removeProperty(a)}}var die=4;function Tl(e){let o;for(let t of e)(!o||t.element.compareDocumentPosition(o.element)&die)&&(o=t);return o}var uv="data-sf-part-host";function ix(e){let o=e?.ownerDocument.defaultView,t=e;for(;t&&!t.hasAttribute(uv)&&!t.classList.contains(_i);){let r=o?.getComputedStyle(t).display??"";if(r==="contents")return null;if(r!=="inline")return t;t=t.parentElement}return null}var Ps="data-sf-part-lift",c2="sf-part-lift";function lx(e){if(e.getElementById(c2))return;let o=e.createElement("style");o.id=c2,o.textContent=tD(`[${Ps}]`).join(`
|
|
320
|
-
`),e.head.appendChild(o)}var cx=hv(null),h2=hv(null),x2=hv(null);function g2({needles:e,styles:o,motions:t=ax,type:r,atEdge:a=!1,children:n}){let s=uie(),i=$a(a?"edge":"by-box"),l=JSON.stringify([s,e,o,t,r]),d=mie(()=>{let u=Object.keys(t).filter(p=>p2(t[p]));return ID(e,o,s,p=>Ta(r,p),p=>Rd(r,p),p=>u.includes(p)?Kd(t[p]):null,u)},[l]);if(!d)return Vd(u2,{children:n});let f=yD(d,{inBox:i});return fie(u2,{children:[f&&Vd("style",{href:`${gie}${s}-${Iie(f)}`,precedence:y2,dangerouslySetInnerHTML:{__html:HO(f)}}),Vd(cx.Provider,{value:d,children:n})]})}var mv=new WeakMap;function m2(e,o){let t=Tl(o.filter(a=>a.arm)),r=o.some(a=>a.entering)?void 0:Tl(o.filter(a=>a.scroll));for(let a of o)a!==t&&a.undo&&(a.undo(),a.undo=void 0),a!==r&&a.undoScroll&&(a.undoScroll(),a.undoScroll=void 0);t?.arm&&!t.undo&&(t.undo=t.arm()),r?.scroll&&!r.undoScroll&&(r.undoScroll=r.scroll()),o.some(a=>a.lift)?(lx(e.ownerDocument),e.setAttribute(Ps,"")):e.removeAttribute(Ps)}function I2(e){let o=hie(null),t=e?.motion?.entrance??null,r=e?.motion?.scroll??null,a=e?.motion?.hover==="lift",n=zd(o,t!==null||r!==null),s=t?t[n]:null,i=r&&r[n].effect!=="none"?r[n]:null,l=JSON.stringify([s,i]);return pie(()=>{let d=o.current,f=ix(d?.parentElement??null);if(!t&&!r&&!a||!d||!f)return;let u=s?()=>{let h=nx(f,s),I=xie(f);return()=>{I?.(),h()}}:null,p=mv.get(f)??[];mv.set(f,p);let m={element:d,arm:u,entering:s!==null&&s.kind!=="none",scroll:i?()=>sx(f,i):null,lift:a};return p.push(m),m2(f,p),()=>{let h=p.indexOf(m);h<0||(p.splice(h,1),m.undo?.(),m.undo=void 0,m.undoScroll?.(),m.undoScroll=void 0,m2(f,p),p.length||mv.delete(f))}},[l,a]),o}var y2="sf-part-styles",gie=`${y2}-`;function Iie(e){let o=2166136261;for(let t=0;t<e.length;t+=1)o^=e.charCodeAt(t),o=Math.imul(o,16777619);return(o>>>0).toString(36)}function b2(e){let o=Yd(cx),t=Yd(h2),r=bD(o,e);return r&&r.stamp!==t?r:null}function O$e(e){return EC(Yd(cx),e)}function S2({stamp:e,children:o}){return Vd(h2.Provider,{value:e,children:o})}function A$e({children:e}){let o=Yd(cx);return Vd(x2.Provider,{value:o,children:e})}function R$e(e){return EC(Yd(x2),e)}function qd({value:e,children:o}){let t=b2(e),r=I2(t);return t?xv(S2,{stamp:t.stamp,children:xv("span",{ref:r,[mC]:t.stamp,...t.textStyle?{[vr]:t.textStyle}:{},children:o})}):xv(yie,{children:o})}import{jsx as gv,Fragment as bie}from"react/jsx-runtime";function w2({className:e=""}){return gv("sup",{className:`text-accent tracking-normal text-[length:min(1em,max(0.75em,11px))] ${e}`,children:"\xAE"})}function Xt(e){if(!e.includes("\xAE"))return e;let o=e.split("\xAE"),t=[];return o.forEach((r,a)=>{r&&t.push(r),a<o.length-1&&t.push(gv(w2,{},`r${a}`))}),gv(bie,{children:t})}var H$e=w2;function Io(e,o=!1,t){let r=Pie(o),a=Ep(e);if(a.length===1){let[s]=a,i=lE(s),l=i?kie(i,s.children):s.children;return Es(qd,{value:e,children:[t,dx(l,r)]})}let n=[];return a.forEach((s,i)=>{if(s.bullet){n.push(to("span",{"data-sf-bullet":"",className:Sie,children:dx(s.children,r)},i));return}if(s.number!=null){n.push(Es("span",{"data-sf-number":s.number,className:wie,children:[Es("span",{className:Cie,children:[s.number,"."]}),dx(s.children,r)]},i));return}i>0&&!vie(a[i-1])&&n.push(to("br",{},`br${i}`)),n.push(to(yv,{children:dx(s.children,r)},i))}),Es(qd,{value:e,children:[t,n]})}var Sie="relative block pl-6 before:absolute before:left-1.5 before:font-bold before:text-accent before:content-['\xB7']",wie="relative block pl-[2em]",Cie="absolute left-0 w-[1.6em] text-right tabular-nums";function vie(e){return e.bullet||e.number!=null}var C2="text-accent underline underline-offset-[0.18em]";function kie(e,o){let[t,...r]=o;return t?.kind==="text"?[{kind:"text",text:`${e}${t.text}`},...r]:[{kind:"text",text:e},...o]}function Tie(e){return Wi(e)||void 0}function dx(e,o){let t=[],r=!1;return e.forEach((a,n)=>{if(a.kind==="text"){t.push(to("span",{children:Xt(a.text)},n)),r=!0;return}r||t.push(to("span",{},`e${n}`)),t.push(k2(a,n,o)),r=!1}),r||t.push(to("span",{},"end")),t}function Iv(e,o){return e.length===1&&e[0].kind==="text"?Xt(e[0].text):e.map((t,r)=>t.kind==="text"?to(yv,{children:Xt(t.text)},r):k2(t,r,o))}function Pie(e){return e?"font-normal italic text-accent":"not-italic text-accent"}function X$e(e){return v2(e)}function v2(e,o){let t=e.split(`
|
|
321
|
-
`);return Es(qd,{value:e,children:[o,t.map((r,a)=>Es(yv,{children:[a>0?to("br",{}):null,to("span",{children:r})]},a))]})}function k2(e,o,t){if(e.kind==="link")return Qh(e.href)?to(vs,{newTab:"auto",href:e.href,className:C2,children:Iv(e.children,t)},o):to("a",{href:e.href,className:C2,children:Iv(e.children,t)},o);let r=Iv(e.children,t),a=aE[e.kind];if(a)return to("span",{[nE]:a,children:r},o);switch(e.kind){case"underline":return to("u",{children:r},o);case"sup":return to("sup",{children:r},o);case"sub":return to("sub",{children:r},o);case"color":{let n=Tie(e.color);return n?to("span",{style:{color:n},children:r},o):to("span",{children:r},o)}case"accent":case"highlight":return to("em",{className:t,children:r},o);case"bold":return to("strong",{className:"font-semibold",children:r},o);case"italic":return to("em",{className:"italic",children:r},o);case"strike":return to("s",{className:"line-through",children:r},o);default:return to("span",{children:r},o)}}function T2(e,o=!0,t=!1){let r=e.split(`
|
|
322
|
-
`);return to(qd,{value:e,children:r.map((a,n)=>Es("span",{children:[t?v2(a):Io(a,o),n<r.length-1?to("br",{}):null]},n))})}function P2(e){return e.split(/\n\s*\n/).map(o=>o.trim()).filter(Boolean)}import{jsx as bv,jsxs as _ie}from"react/jsx-runtime";import{jsx as Eie}from"react/jsx-runtime";function E2(){return Eie("span",{className:"block h-px w-[30px] bg-current"})}var Sv={labelUpTo800:"max-view-wide:text-[length:var(--size-label,12px)]",labelSmall:"text-[length:var(--size-label,12px)]",labelLarge:"text-[length:var(--size-label,14px)]"};function Oie(e,o){return`font-mono text-[length:var(--size-label,${e}px)] uppercase tracking-[0.3em] text-accent`}var Aie=`inline-block w-fit bg-accent px-3.5 py-1.5 font-mono ${Sv.labelSmall} font-semibold uppercase tracking-[0.16em] text-bg`,Rie=`flex items-center gap-3.5 font-mono ${Sv.labelLarge} uppercase tracking-[0.3em] opacity-80 ${Sv.labelUpTo800} max-view-wide:tracking-[0.25em]`;function Pl({text:e,look:o="plain",size:t=13,scaled:r=!0,className:a="",classNameAfter:n="",takesViewHide:s=!1}){let i=Wt(),l=s?i:za;if(o==="line")return l.scope(_ie("div",{className:et([a,Rie,n].filter(Boolean).join(" "),l.className),...l.attrs,children:[bv(E2,{}),bv("span",{children:Io(e)})]}));let d=o==="filled"?Aie:Oie(t,r);return l.scope(bv("span",{className:et([a,d,n].filter(Boolean).join(" "),l.className),...l.attrs,children:Io(e)}))}var Ke={headingMediumUpTo800Small:"max-view-wide:text-[length:min(var(--size-headingMedium,32px),var(--sf-heading-max,9999px))]",headingMediumUpTo800Large:"max-view-wide:text-[length:min(var(--size-headingMedium,36px),var(--sf-heading-max,9999px))]",headingSmallUpTo800:"max-view-wide:text-[length:var(--size-headingSmall,28px)]",headingMedium2:"text-[length:min(var(--size-headingMedium,44px),var(--sf-heading-max,9999px))]",headingMedium3:"text-[length:min(var(--size-headingMedium,56px),var(--sf-heading-max,9999px))]",headingMedium1:"text-[length:var(--sf-heading-max,var(--size-headingMedium,38px))]",bodySmall:"text-[length:var(--size-body,14px)]",bodyLarge:"text-[length:var(--size-body,16px)]",label:"text-[length:var(--size-label,14px)]",shelfLabel:"text-[length:var(--size-label,13px)]",shelfLabelSmall:"text-[length:var(--size-label,12px)]",shelfBody:"text-[length:var(--size-body,13px)]",shelfHeadingUpTo800Xs:"max-view-wide:text-[length:var(--size-headingMedium,28px)]",shelfHeadingUpTo800Small:"max-view-wide:text-[length:var(--size-headingMedium,32px)]",shelfHeadingUpTo800Large:"max-view-wide:text-[length:var(--size-headingMedium,36px)]",shelfHeadingUpTo800Xl:"max-view-wide:text-[length:var(--size-headingMedium,40px)]",shelfHeading1:"text-[length:var(--size-headingMedium,40px)]",shelfHeading2:"text-[length:var(--size-headingMedium,48px)]",shelfHeading3:"text-[length:var(--size-headingMedium,56px)]",shelfHeading4:"text-[length:var(--size-headingMedium,64px)]"},_2=[{value:"para",label:"Paragraph size \u2014 13px",cls:`font-mono font-normal uppercase tracking-[0.22em] ${Ke.shelfLabel}`},{value:"sm",label:"Small \u2014 40px",cls:`font-heading2 font-medium tracking-[-0.03em] ${Ke.shelfHeading1} ${Ke.shelfHeadingUpTo800Xs}`},{value:"md",label:"Medium \u2014 48px",cls:`font-heading2 font-medium tracking-[-0.03em] ${Ke.shelfHeading2} ${Ke.shelfHeadingUpTo800Small}`},{value:"lg",label:"Large \u2014 56px",cls:`font-heading2 font-medium tracking-[-0.03em] ${Ke.shelfHeading3} ${Ke.shelfHeadingUpTo800Large}`},{value:"xl",label:"Extra large \u2014 64px",cls:`font-heading2 font-medium tracking-[-0.03em] ${Ke.shelfHeading4} ${Ke.shelfHeadingUpTo800Xl}`}],Fie="lg";function Bie(e){return(_2.find(o=>o.value===e)??_2.find(o=>o.value===Fie)).cls}var El=(e,o=!1)=>typeof e=="string"?T2(e,o):e,Ea=(e,o=!1)=>typeof e=="string"?Io(e,o):e;function O2({num:e,title:o,link:t,logo:r,description:a,accent:n,accentNum:s,numStyle:i=$d,look:l="standard",titleAccent:d,accentTracking:f="-0.02em",spaceBelow:u,rowGap:p,descriptionSize:m,className:h="",eyebrowLook:I=lv,titleSize:w,count:S,capped:C=!1}){let b=u??(l==="editorial"?"mb-[60px]":"");if(l==="shelf")return e||o||a||t?rt("div",{className:`${JD} sticky top-[var(--sf-header-h,88px)] z-30 mb-5 flex items-center justify-between gap-4 max-view-wide:flex-wrap max-view-wide:gap-y-2 border-b border-line bg-bg/95 py-3 backdrop-blur-md ${C?"":"-mx-[var(--sf-site-gutter,40px)] px-[var(--sf-site-gutter,40px)] max-view-wide:-mx-[min(20px,var(--sf-site-gutter,40px))] max-view-wide:px-[min(20px,var(--sf-site-gutter,40px))]"}`,children:[rt("div",{className:"flex min-w-0 items-end gap-6 max-view-wide:flex-col max-view-wide:items-stretch max-view-wide:gap-3",children:[e&&Le("span",{className:`font-mono ${Ke.shelfLabel} leading-none uppercase tracking-[0.22em] text-fg-dim`,children:Ea(e)}),o&&Le("h2",{className:`${Bie(w)} leading-none text-fg max-view-wide:leading-[1] [&>span]:block`,children:El(o)})]}),(a||t||S)&&rt("div",{className:"flex items-center gap-5 max-view-wide:gap-3 view-wide:grow view-wide:justify-end",children:[a&&Le("span",{className:`max-w-[340px] truncate font-display ${Ke.shelfBody} leading-[1.4] text-fg-dim max-view-wide:hidden view-wide:w-0 view-wide:grow view-wide:text-right`,children:Ea(a)}),t&&rt(vs,{newTab:"auto",href:t.href,className:`inline-flex items-center gap-2 whitespace-nowrap font-mono ${Ke.shelfLabel} uppercase tracking-[0.2em] text-fg-dim transition-colors hover:text-fg`,children:[Ea(t.text),Le("span",{"aria-hidden":!0,children:"\u2192"})]}),S&&Le("span",{className:`whitespace-nowrap font-mono ${Ke.shelfLabelSmall} uppercase tracking-[0.2em] text-fg-dim`,children:S})]})]}):null;if(l==="editorial"){let T=!!o||!!d;return rt("header",{className:`${b} grid grid-cols-[auto_1fr_auto] items-end gap-10 border-b border-line pb-8 max-view-desktop:grid-cols-1 max-view-desktop:gap-3.5 ${h}`.trim(),children:[e&&(typeof e=="string"?Le(Pl,{text:e,className:"pb-2"}):Le("span",{className:"pb-2",children:e})),T&&rt("h2",{className:"font-heading2 text-[length:min(var(--size-headingMedium,clamp(40px,5.5vw,80px)),var(--sf-heading-max,9999px))] font-medium uppercase leading-none tracking-[-0.03em]",children:[o,d&&rt(Lie,{children:[" ",Le("em",{className:"font-serif font-normal italic text-accent",style:{letterSpacing:f},children:d})]})]}),a&&Le("p",{className:`max-w-[360px] pb-1 text-right font-display ${Ke.bodySmall} leading-[1.5] text-fg-dim max-view-desktop:max-w-full max-view-desktop:text-left`,children:a})]})}if(l==="simple"){let T=`${b} ${h}`.trim();return rt("div",{className:T||void 0,children:[e&&(typeof e=="string"?Le(Pl,{text:e,look:I,className:"mb-4 block"}):Le("span",{className:"mb-4 block",children:e})),o&&Le("h2",{className:`font-heading2 ${Ke.headingMedium2} font-medium uppercase leading-none tracking-[-0.02em] text-fg ${Ke.headingMediumUpTo800Small}`,children:El(o)})]})}if(l==="statement"){let T=`${b} ${h}`.trim();return rt("div",{className:T||void 0,children:[e&&(typeof e=="string"?Le(Pl,{text:e,look:I,className:"mb-4 block"}):Le("span",{className:"mb-4 block",children:e})),o&&Le("h2",{className:"font-heading2 text-[length:min(var(--size-headingMedium,clamp(40px,5vw,72px)),var(--sf-heading-max,9999px))] font-medium uppercase leading-none tracking-[-0.03em] text-fg",children:El(o,!0)})]})}if(l==="natural"){let T=`flex max-w-[680px] flex-col ${p??"gap-5"} ${b} ${h}`.replace(/\s+/g," ").trim();return rt("div",{className:T,children:[e&&(typeof e=="string"?Le(Pl,{text:e,look:I}):Le("span",{children:e})),o&&Le("h2",{className:`font-heading2 ${Ke.headingMedium2} font-medium leading-[1.05] tracking-[-0.03em] ${Ke.headingMediumUpTo800Small}`,children:El(o)}),a&&Le("p",{className:`${m??`${Ke.bodyLarge}`} leading-[1.6] opacity-85`,children:a})]})}if(l==="essay"){let T=`${b} ${h}`.trim();return rt("div",{className:T||void 0,children:[e&&(typeof e=="string"?Le(Pl,{text:e,look:I,className:"mb-4 block"}):Le("span",{className:"mb-4 block",children:e})),o&&Le("h2",{className:`font-heading2 ${Ke.headingMedium1} [font-weight:var(--sf-heading-weight,500)] [text-transform:var(--sf-heading-case,uppercase)] [&_em]:[font-weight:var(--sf-heading-weight-strong,inherit)] leading-none tracking-[-0.02em] text-fg ${Ke.headingSmallUpTo800}`,children:El(o)})]})}let y=!!a||!!t,v=!!o,L=XM(i)==="outlined",A=`font-mono ${Ke.label} uppercase tracking-[0.3em]`,D=null;if(e)if(L)D=Le("span",{className:`${ZM} text-fg-dim ${iv}`,children:Ea(e)});else if(s&&!n&&typeof e=="string"){let T=e.indexOf("/"),F=T===-1?e:e.slice(0,T),k=T===-1?"":e.slice(T);D=rt("span",{className:A,children:[Le("span",{className:"text-accent",children:Ea(F)}),k&&Le("span",{className:"text-fg-dim",children:Ea(k)})]})}else D=Le("span",{className:`${A} ${n?"text-accent":"text-fg-dim"}`,children:Ea(e)});return rt("div",{className:"mb-16 grid grid-cols-[auto_1fr_auto] items-end gap-10 border-b border-line pb-6 max-view-wide:mb-9 max-view-wide:grid-cols-1 max-view-wide:gap-3 max-view-wide:pb-5",children:[L&&e&&Le("style",{children:JM}),rt("div",{className:"flex flex-col items-start gap-3",children:[r?.src&&Le(bO,{children:Le(qh,{...Nie(zO(r.src)),alt:r.alt,className:"h-8 w-auto object-contain"})}),D]}),v&&Le("h2",{className:n?"font-heading2 text-[length:min(var(--size-headingMedium,clamp(36px,5vw,64px)),var(--sf-heading-max,9999px))] [font-weight:var(--sf-heading-weight,500)] [text-transform:var(--sf-heading-case,uppercase)] [&_em]:[font-weight:var(--sf-heading-weight-strong,inherit)] leading-[0.95] tracking-[-0.025em]":`font-heading2 ${Ke.headingMedium3} [font-weight:var(--sf-heading-weight,500)] [&_em]:[font-weight:var(--sf-heading-weight-strong,inherit)] leading-none tracking-[-0.03em] whitespace-pre-line ${Ke.headingMediumUpTo800Large} max-view-wide:leading-[1]`,children:El(o)}),y&&rt("div",{className:"flex flex-col items-end gap-3 max-view-wide:items-start",children:[a&&Le("p",{className:`max-w-[340px] font-display ${Ke.bodySmall} leading-[1.5] text-fg-dim text-right max-view-wide:max-w-full max-view-wide:text-left`,children:Ea(a)}),t&&rt(vs,{newTab:"auto",href:t.href,className:`inline-flex items-center gap-2 whitespace-nowrap font-mono ${Ke.label} uppercase tracking-[0.2em] text-fg-dim transition-colors hover:text-fg`,children:[Ea(t.text),Le("span",{"aria-hidden":!0,children:"\u2192"})]})]})]})}function Nie(e){let o=ks(e,{fallbackWidth:640,maxWidth:960});return o.srcSet?{src:o.src,srcSet:o.srcSet,sizes:"240px"}:{src:e}}function A2({num:e,title:o,titleAccent:t,desc:r,accentTracking:a="-0.02em",spaceBelow:n="mb-[60px]",className:s=""}){return Die(O2,{look:"editorial",num:e,title:o,titleAccent:t,description:r,accentTracking:a,spaceBelow:n,className:s})}import{jsx as Zd,jsxs as Gie}from"react/jsx-runtime";import{useEffect as jie,useState as $2}from"react";import{jsx as Mie}from"react/jsx-runtime";var R2="sf-photo-hover";function fx({sheet:e,name:o=R2}){return e?Mie("style",{href:o,precedence:R2,dangerouslySetInnerHTML:{__html:e}}):null}import{jsx as M2,Fragment as $ie}from"react/jsx-runtime";import{createContext as Uie,useContext as ux}from"react";var Hie=BE["view-desktop"];function Wie(e,o){return[...[...e].sort((t,r)=>t.below-r.below).map(t=>`(max-width: ${t.below-.02}px) ${t.slot}`),o].join(", ")}var wv=e=>`${Math.ceil(e*1e4-1e-6)/100}vw`,px=e=>{let o=/^([\d.]+)vw$/.exec(e??"");return o?Math.min(1,Number(o[1])/100):1};function v6e(e,o){return{phone:wv(e.phone*px(o?.phone)),tablet:wv(e.tablet*px(o?.tablet)),desktop:wv(e.desktop*px(o?.desktop))}}function Cv(e){if([e.phone,e.tablet,e.desktop].every(r=>px(r)>=1))return;let o=[{below:Jo,slot:e.phone},{below:Hie,slot:e.tablet}],t=o.filter((r,a)=>r.slot!==(o[a+1]?.slot??e.desktop));return Wie(t,e.desktop)}function L2(e){let o=e.split(/,\s*(?![^()]*\))/).map(a=>a.trim()),t=[];for(let a of o.slice(0,-1)){let n=/^\(max-width:\s*([\d.]+)px\)\s+(.+)$/.exec(a);if(!n)return null;let s=Number(n[1]);if(t.length&&s<=t[t.length-1].edge)return null;t.push({edge:s,slot:n[2]})}let r=o[o.length-1];return!r||r.startsWith("(")?null:{steps:t,last:r}}var F2=(e,o)=>e.steps.find(t=>o<=t.edge)?.slot??e.last,B2=e=>{let o=/^min\((.+)\)$/.exec(e);return o?o[1].split(/,\s*(?![^()]*\))/).map(t=>t.trim()):[e]};function N2(e,o){if(e===o)return e;let t=[...B2(e),...B2(o)],r=s=>{let i=t.map(l=>new RegExp(`^([\\d.]+)${s}$`).exec(l)).filter(Boolean).map(l=>Number(l[1]));return i.length?[`${Math.min(...i)}${s}`]:[]},a=[...new Set(t.filter(s=>!/^[\d.]+(vw|px)$/.test(s)))],n=[...r("vw"),...r("px"),...a];return n.length===1?n[0]:`min(${n.join(", ")})`}function D2(e,o){if(!o)return e;let t=L2(e),r=L2(o);if(!t||!r)return e;let a=[...new Set([...t.steps,...r.steps].map(s=>s.edge))].sort((s,i)=>s-i).map(s=>({edge:s,slot:N2(F2(t,s),F2(r,s))})),n=N2(t.last,r.last);return[...a.filter((s,i)=>s.slot!==(a[i+1]?.slot??n)).map(s=>`(max-width: ${s.edge}px) ${s.slot}`),n].join(", ")}var zie={hasWidth:!1},Xd=Uie(zie);function _6e(){return ux(Xd).hasWidth}function O6e(e){let{bound:o}=ux(Xd);return o&&Cv(o)||e}function H2(e){let{bound:o}=ux(Xd);return D2(e,o&&Cv(o))}function W2({children:e}){let o=ux(Xd);return o.bound?M2(Xd.Provider,{value:{hasWidth:o.hasWidth},children:e}):M2($ie,{children:e})}function U2({fallback:e,className:o,src:t,alt:r="",objectPosition:a,objectFit:n="cover",sizes:s="100vw",sizesFromCell:i=!1,priority:l=!1,deferFetch:d=!1,showBackground:f=!0,treatment:u}){let p=JC(),m=H2(s),h=i?m:s,[I,w]=$2(!1),[S,C]=$2(!1),b=t||"";jie(()=>{w(!1),C(!1)},[b]);let y=gu(b),v=y&&!S?ks(b):{src:b},L=!b||I;return Gie("div",{className:`relative h-full w-full overflow-hidden ${o??""}`,children:[Zd("div",{className:"absolute inset-0 flex items-center justify-center",style:f?{background:"var(--site-surface)"}:void 0,children:L?e:null}),Zd(lu,{fill:Lc,children:b&&(y?Zd("img",{src:v.src,alt:r,...v.srcSet?{srcSet:v.srcSet,sizes:h}:{},decoding:"async",...d?{loading:"lazy"}:p,className:`absolute inset-0 h-full w-full${u?.className?` ${u.className}`:""}`,style:{display:I?"none":"block",objectFit:n,...a?{objectPosition:a}:{},...u?.style??{}},onError:()=>v.srcSet?C(!0):w(!0)}):Zd(ex,{src:b,alt:r,fill:!0,sizes:h,priority:l,...u?.className?{className:u.className}:{},style:{display:I?"none":"block",objectFit:n,...a?{objectPosition:a}:{},...u?.style??{}},onError:()=>w(!0)}))}),Zd(fx,{sheet:u?.sheet})]})}import{jsx as Kie}from"react/jsx-runtime";var Jd="sf-empty-hides",vv="sf-empty-else",mx="sf-head-core",hx="sf-head-box",Qd="holdsHeadCore",ef="isHeadCore",Vie=`.${Jd}:empty{display:none}.${Jd}:not(:empty)~.${vv}{display:none}.${hx},.${mx}{display:contents}.${hx}:not(:has(.${mx}:not(:empty))){display:none}`;function xx(){return Kie("style",{children:Vie})}var wt={headingSmallUpTo700Small:"max-[700px]:text-[length:var(--size-headingSmall,26px)]",headingSmallUpTo700Large:"max-[700px]:text-[length:var(--size-headingSmall,28px)]",bodySmall:"text-[length:var(--size-body,15px)]",bodyLarge:"text-[length:var(--size-body,18px)]",headingSmall1:"text-[length:var(--size-headingSmall,28px)]",headingSmall2:"text-[length:var(--size-headingSmall,34px)]",labelSmall:"text-[length:var(--size-label,11px)]",label:"text-[length:var(--size-label,12px)]",labelLarge:"text-[length:var(--size-label,13px)]"},z2={2:"grid-cols-2 max-[900px]:grid-cols-1",3:"grid-cols-3 max-view-desktop:grid-cols-1",4:"grid-cols-4 max-view-desktop:grid-cols-2 max-[700px]:grid-cols-1"},kv="sf-itc-boxes",qie="sf-itc-steps";function Tv(e){return(e??[]).filter(o=>(o?.tag??"").trim()||(o?.meta??"").trim()||(o?.title??"").trim()||(o?.copy??"").trim()||(o?.image??"").trim()||(o?.specs??[]).some(t=>(t?.label??"").trim()||(t?.value??"").trim()))}function sUe({num:e,title:o,description:t,boxes:r,steps:a,columns:n=3,cta:s,padTop:i,padBottom:l,bandPad:d,editing:f=!1,omitHead:u=!1,cardImage:p,cardImageUnit:m,cardText:h,rows:I,copies:w}){let S=w!==void 0,C=I&&(S||(r?.blockCount??0)>0)?I:null,b=d??jL({padTop:i,padBottom:l},wl("ProcessSteps")),y=S?[]:Tv(a),v=y.length>0?y:f&&!r&&!S?[1,2,3].map(F=>({tag:c("Column {n}",{n:F})})):[],L=z2[n]??z2[3],A=C?"grid-cols-1":L,D=C?"":" [&>*]:min-h-[560px]",T=h==="on-image";return Ve(me,{as:"section",className:["relative z-[2] border-b border-line bg-bg",b.className].filter(Boolean).join(" "),style:{...b.style,...lA(p,m)},children:_a("div",{className:AL,children:[u?null:Ve(A2,{num:e,title:o?.trim()?Io(o,!0):void 0,desc:t?.trim()?Io(t,!1):void 0}),r&&!S?_a(Yie,{children:[Ve(xx,{}),C?Ve(Jh.Provider,{value:{hand:C,ids:r.blockIds??[],boxes:[]},children:Ve(r,{className:`${kv} ${Jd} sf-card grid ${A} gap-[2px] border border-line bg-line${D} [&>*]:bg-bg`,minEmptyHeight:260})}):Ve(r,{className:`${kv} ${Jd} sf-card grid ${A} gap-[2px] border border-line bg-line [&>*]:min-h-[560px] [&>*]:bg-bg`,minEmptyHeight:260})]}):null,S&&w?Ve("div",{className:`${kv} sf-card grid ${A} gap-[2px] border border-line bg-line${D} [&>*]:bg-bg`,children:C?Ve(Jh.Provider,{value:{hand:C,copies:!0},children:w}):w}):null,v.length>0&&Ve("div",{className:`${qie} ${vv} sf-card grid ${L} gap-[2px] border border-line bg-line`,children:v.map((F,k)=>{let _=(F.specs??[]).filter(P=>(P?.label??"").trim()||(P?.value??"").trim());return _a("article",{className:T?"flex flex-col bg-bg":"flex min-h-[560px] flex-col bg-bg",children:[_a("div",{className:T?"sf-card-image relative aspect-[5/3] overflow-hidden bg-surface max-[700px]:aspect-[4/3]":"sf-card-image relative aspect-[5/3] overflow-hidden border-b border-line bg-surface",children:[Ve(U2,{label:F.tag?.trim()||F.title?.trim()||`column-${k+1}`,src:F.image||void 0,sizes:"(max-width: 1100px) 100vw, 33vw",...r?{deferFetch:!0}:{}}),Ve("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-0 z-[1]",style:{background:`linear-gradient(180deg, ${da(.55)} 0%, transparent 30%, transparent 70%, ${da(.65)} 100%)`}}),T&&Ve("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-x-0 bottom-0 z-[1] h-[78%]",style:{background:`linear-gradient(180deg, transparent 0%, ${da(.73)} 55%, ${da(.92)} 100%)`}}),F.tag?.trim()&&Ve("span",{className:`absolute left-5 top-[18px] z-[2] font-mono ${wt.label} uppercase tracking-[0.3em] text-accent`,children:Xt(F.tag)}),F.meta?.trim()&&Ve("span",{className:T?`absolute right-5 top-[18px] z-[2] font-mono ${wt.label} uppercase tracking-[0.24em] text-overlay-fg/80`:`absolute right-5 bottom-[18px] z-[2] font-mono ${wt.label} uppercase tracking-[0.24em] text-overlay-fg/80`,children:Xt(F.meta)}),T&&(F.title?.trim()||F.copy?.trim())&&_a("div",{className:"absolute inset-x-0 bottom-0 z-[2] flex flex-col gap-2.5 px-8 pb-7 pt-14 max-[700px]:px-6 max-[700px]:pb-6",children:[F.title?.trim()&&Ve("h3",{className:`flex min-h-[2em] flex-col justify-end font-heading3 ${wt.headingSmall1} font-medium uppercase leading-none tracking-[-0.02em] text-overlay-fg ${wt.headingSmallUpTo700Small}`,children:Io(F.title,!0)}),F.copy?.trim()&&Ve("p",{className:`min-h-[3em] font-display ${wt.bodySmall} leading-[1.5] text-overlay-fg/85`,children:Io(F.copy,!1)})]})]}),T?_.length>0&&Ve("div",{className:"grid grid-cols-2 gap-2 border-t border-line px-8 py-7 max-[700px]:px-6 max-[700px]:py-6",children:_.map((P,O)=>_a("div",{className:"flex flex-col gap-1",children:[P.label?.trim()&&Ve("span",{className:`font-mono ${wt.labelSmall} uppercase tracking-[0.24em] text-fg-dim`,children:Xt(P.label)}),P.value?.trim()&&Ve("span",{className:`font-display ${wt.bodyLarge} font-medium tracking-[-0.01em] text-fg`,children:Xt(P.value)})]},O))}):_a("div",{className:"flex flex-1 flex-col gap-4 px-8 py-9 max-[700px]:px-6 max-[700px]:py-7",children:[F.title?.trim()&&Ve("h3",{className:`font-heading3 ${wt.headingSmall2} font-medium uppercase leading-none tracking-[-0.02em] ${wt.headingSmallUpTo700Large}`,children:Io(F.title,!0)}),F.copy?.trim()&&Ve("p",{className:`font-display ${wt.bodySmall} leading-[1.55] text-fg-dim`,children:Io(F.copy,!1)}),_.length>0&&Ve("div",{className:"mt-auto grid grid-cols-2 gap-2 border-t border-line pt-4",children:_.map((P,O)=>_a("div",{className:"flex flex-col gap-1",children:[P.label?.trim()&&Ve("span",{className:`font-mono ${wt.labelSmall} uppercase tracking-[0.24em] text-fg-dim`,children:Xt(P.label)}),P.value?.trim()&&Ve("span",{className:`font-display ${wt.bodyLarge} font-medium tracking-[-0.01em] text-fg`,children:Xt(P.value)})]},O))})]})]},k)})}),s?.text&&Ve("div",{className:"mt-12 flex justify-end border-t border-line pt-8",children:_a(vs,{newTab:"auto",href:s.href,className:`group inline-flex items-center gap-3.5 border border-line px-6 py-4 font-mono ${wt.labelLarge} uppercase tracking-[0.3em] text-fg transition-colors hover:border-accent hover:text-accent`,children:[Xt(s.text),Ve("span",{"aria-hidden":!0,className:"text-accent transition-transform group-hover:translate-x-[3px]",children:"\u2192"})]})})]})})}var Xie=["selected","highlighted"],G2="data-sf-card-state",K2="pointer-events-none absolute inset-0 border border-accent",V2="pointer-events-none absolute inset-x-0 bottom-0 border-b-2 border-accent",Y2="pointer-events-none absolute inset-0 border-2 border-accent outline outline-1 -outline-offset-1 outline-accent",q2="absolute inset-y-0 left-0 w-[3px] bg-accent",X2="absolute -inset-[2px] -z-[1] bg-[color-mix(in_oklab,var(--accent)_14%,transparent)]",Z2="after:pointer-events-none after:absolute after:inset-0 hover:after:border-2 hover:after:border-accent",j2=e=>{let o=oO.find(t=>t.role===e)?.token;if(!o)throw new Error(`card-state: the palette has no ink token for "${e}"`);return o},Zie={[j2("muted")]:`var(${j2("fg")})`};function Pv(e){return e?.selected===!0}function Ev(e){return e?Xie.filter(o=>e[o]===!0).join(" "):""}function J2(e,o="frame"){let t=Ev(e);return t?o==="frame"&&Pv(e)?{[G2]:t,className:"relative isolate",style:{...Zie}}:{[G2]:t,className:"relative"}:{}}var Jie={highlighted:!0},Qie={},gx="badge";function fUe(e,o=[]){return e.map((t,r)=>({...t,key:t.key||o[r]?.key||Ec(t,r)}))}function Q2(e){return!e||typeof e!="object"?!1:Object.entries(e).some(([o,t])=>o==="key"||o===gx||o==="state"?!1:typeof t=="string"?t.trim()!=="":Array.isArray(t)?t.length>0:t!=null&&typeof t!="function")}function pUe(e,{chosen:o,badge:t}){let r=o.trim(),a=r?e.findIndex(n=>n.key===r):-1;return{rows:e.map((n,s)=>({...n,[gx]:s===a?t:""})),states:e.map((n,s)=>s===a?Jie:Qie)}}function uUe(e){return{chosen:typeof e.highlightedCard=="string"?e.highlightedCard.trim():"",badge:typeof e.highlightBadge=="string"?e.highlightBadge:""}}function mUe(e){if(!e||typeof e!="object")return;let{press:o,pressLabel:t,pressDisabled:r}=e;if(typeof o=="function")return{press:o,...typeof t=="string"&&t.trim()!==""?{label:t}:null,...r===!0?{disabled:!0}:null}}var eH="data-sf-card-press",oH=`${GM} appearance-none bg-transparent border-0 p-0 m-0`,tH=`${oH} cursor-pointer`,rH=oH;import{paymentMarkItems as ele,paymentMarks as ole}from"efficient-shell/icons/payment";var tle=[W0,Sp],aH=e=>tle.includes(e),nH=e=>ele({name:e.label,kind:e.kind}),rle=(e,o)=>e.kind===o.kind&&e.label===o.label&&(e.kind==="brand"?e.mark===o.mark:e.glyph===o.glyph);function sH(e){return ole(e.map(o=>({name:o.label,kind:o.kind}))).map(o=>({label:o.label,kind:e.find(t=>nH(t).some(r=>rle(r,o)))?.kind??""}))}function IUe(e){return nH(e)[0]??null}var iH={heading:"Trusted by *teams worldwide*"},Ix=()=>[{src:"",alt:c("Logo one")},{src:"",alt:c("Logo two")},{src:"",alt:c("Logo three")},{src:"",alt:c("Logo four")},{src:"",alt:c("Logo five")}],ale=Cp.Logos,wUe={label:"Logos",drawsPictures:!0,fields:ale,defaultProps:{items:[],contained:!0}};var nle=()=>Ix().map(e=>({label:e.alt}));function lH(e,o){let t=wp(e,o,nle()).rows.filter(r=>r.label);return aH(eo(e))?sH(t):t}var of="Flex",ile="Text",tf=e=>Object.values(e??{}).filter(dH),lle=e=>e.type===Oo&&eo(e.props)!=="",fH=e=>{if(e.type!==of)return!1;let o=tf(e.props).flat();return o.length>0&&o.every(lle)},yx=e=>Hp(e.props?.headPlacement)==="own-box"||fH(e),_v=e=>e===void 0||Array.isArray(e)&&e.length===0;function pH(e){return e.type===ile?!0:e.type===of&&tf(e.props).every(o=>o.every(pH))}var uH={ProcessSteps:e=>_v(e.boxes)&&Tv(e.steps).length===0,Logos:e=>eo(e)?cle(e):_v(e.logos)&&_v(e.items)};function cle(e){return j0(e)!==null&&lH(e,!1).length===0}function dle(e){return tf(e.props).flat().every(o=>!wp(o.props,!1).rows.some(Q2))}function bx(e){let o=tf(e.props).flat();return o.some(yx)&&o.every(t=>yx(t)||pH(t))}function fle(e){if(!sle(e)||!yx(e))return e;let o=fH(e)?dle(e):$(uH,String(e.type))?.(e.props??{})===!0;return{...e,props:{...e.props,[ef]:o?"empty":!0}}}function cH(e){return ho(e,o=>so(o,fle))}function mH(e){let o=Object.entries(e.props??{}).filter(([,r])=>dH(r)).filter(([,r])=>r.length>0);if(o.length!==1||o[0][1].length!==1)return null;let t=o[0][1][0];return t?.type===of&&t.props?{key:o[0][0],inner:t}:null}function hH(e){if(e?.type!==of||!e.props)return e;if(bx(e)){let t=cH(e);return{...t,props:{...t.props,[Qd]:!0}}}let o=mH(e);return!o||!bx(o.inner)?e:{...e,props:{...e.props,[o.key]:[cH(o.inner)],[Qd]:!0}}}function xH(e){let o=e;if(!o||!Array.isArray(o.content))return e;let t=!1,r=o.content.map(a=>{let n=hH(a);return n!==a&&(t=!0),n});return t?{...o,content:r}:e}var ple=e=>$(uH,String(e.type))?.(e.props??{})===!0;function ule(e){if(e.type!==of||!e.props)return!1;let o=bx(e)?null:mH(e),t=o?o.inner:e;if(!bx(t))return!1;let r=tf(t.props).flat().filter(yx);return r.some(a=>eo(a.props)!=="")&&r.every(ple)}function gH(e){return ho(e,o=>mle(o))}function mle(e){let o=!1,t=[];for(let r of e){if(ule(r)){o=!0;continue}let a=gH(r);a!==r&&(o=!0),t.push(a)}return o?t:e}function IH(e){let o=e;if(!o||!Array.isArray(o.content))return e;let t=!1,r=o.content.map(a=>{if(hH(a)!==a)return a;let n=gH(a);return n!==a&&(t=!0),n});return t?{...o,content:r}:e}var hle=["DocMasthead","AlloyWheelsListing"],Sx="titleLevel",xle=e=>e===2?"h2":"h1",Ov=e=>xle(e?.[Sx])==="h2";function yH(e){let o=e;if(!o?.content?.length)return e;let t=!1,r=!1,a=o.content.map(n=>hle.includes(n?.type??"")?t?(r=!0,{...n,props:{...n.props??{},[Sx]:2}}):(t=!0,n):n);return r?{...o,content:a}:e}import{readHidable as wle}from"efficient-easel/draw";var _l="showFor";function bH(){return li("efficient.box-show-for-choices",()=>({choices:[],revision:0}))}var gle=e=>!!e&&typeof e=="object"&&typeof e.slug=="string"&&e.slug.trim()!==""&&typeof e.name=="string"&&e.name.trim()!=="";function $Ue(){return bH().choices}function UUe(){return bH().revision}function SH(e){return gle(e)?{slug:e.slug,name:e.name}:void 0}import{readHidable as Ile}from"efficient-easel/draw";var Av="_wallLabelId",yle="_wallLabelledBy",Rv=e=>e.props?.id==null?"":String(e.props.id);function ble(e){if(!e||e.type!=="Text"||!Rv(e))return!1;let o=Ile(e.props?.text);return!o.hidden&&o.text.trim()!==""}var Sle=e=>!!e&&e.type==="Logos"&&e.props?.look==="marks"&&Rv(e)!=="",wH=(e,o,t)=>({...e,props:{...e.props,[o]:t}});function CH(e){let o=so(e,r=>ho(r,CH)),t=null;for(let r=1;r<o.length;r++){if(!Sle(o[r])||!ble(o[r-1]))continue;let a=`sf-wall-label-${Rv(o[r-1])}`;t??=o.slice(),t[r-1]=wH(t[r-1],Av,a),t[r]=wH(t[r],yle,a)}return t??o}function vH(e){return fi(e,CH)}var kH="_cardPressTitles",Cle="_cardPressTitle";function QUe(e,o){let t=e?.[kH],r=t&&typeof t=="object"?t[o]:void 0;return Array.isArray(r)&&r.length?r:void 0}var TH=(e,o)=>({...e,props:{...e.props,...o}});function vle(e){let o=e.props??{};return e.type!=="Text"||wle(o.text).hidden||typeof o[Pt]=="string"||typeof o[Av]=="string"?"":xt(o)}function PH(e,o,t,r){return so(e,a=>{let n=vle(a);if(n&&!r.has(n))return r.add(n),t.push({field:n,gates:o}),TH(a,{[Cle]:!0});if(a.type==="Text"||Array.isArray(a.props?.[_l]))return a;let s=a.props?.[ci],i=Array.isArray(s)&&s.length?[...o,s.filter(l=>typeof l=="string")]:o;return ho(a,(l,d)=>Dn(a.type,d)?l:PH(l,i,t,r))})}function EH(e){let o,t=ho(e,(r,a)=>{let n=so(r,EH);if(!Dn(e.type,a))return n;let s=[],i=PH(n,[],s,new Set);return s.length&&((o??={})[a]=s),i});return o?TH(t,{[kH]:o}):t}function _H(e){return fi(e,o=>so(o,EH))}import{pinnedDuplicateIndices as Pce}from"efficient-easel/draw";import{jsx as Zt,jsxs as x4}from"react/jsx-runtime";import{createContext as Ice,useContext as yce,useEffect as bce,useRef as Sce,useState as g4}from"react";import{jsx as cn,jsxs as LH}from"react/jsx-runtime";import{useEffect as Ol,useRef as FH,useState as _s}from"react";import{jsx as OH,Fragment as kle,jsxs as Tle}from"react/jsx-runtime";import{useEffect as Ple,useRef as AH,useState as Ele}from"react";var _le="#t=0.001",Ole=2;function Ale(e,o){if(e.readyState<Ole||!e.videoWidth||!e.videoHeight)return!1;let t=o.getContext("2d");return t?(o.width=e.videoWidth,o.height=e.videoHeight,t.drawImage(e,0,0,o.width,o.height),!0):!1}function RH({src:e,objectPosition:o="50% 50%",onError:t}){let r=AH(null),a=AH(null),[n,s]=Ele(!1);return Ple(()=>{let i=r.current,l=a.current;if(n||!i||!l)return;let d=()=>{Ale(i,l)&&s(!0)};return d(),i.addEventListener("loadeddata",d),i.addEventListener("seeked",d),()=>{i.removeEventListener("loadeddata",d),i.removeEventListener("seeked",d)}},[n]),Tle(kle,{children:[OH("canvas",{ref:a,"aria-hidden":!0,className:"absolute inset-0 z-[3] h-full w-full object-cover",style:{objectPosition:o,visibility:n?"visible":"hidden"}}),!n&&OH("video",{ref:r,src:`${e}${_le}`,muted:!0,playsInline:!0,preload:"auto",className:"hidden",onError:t})]})}var Rle="data-part",aze=Object.freeze({Flex:Object.freeze(["box","card","card-content"]),Grid:Object.freeze(["grid"]),Hero:Object.freeze(["hero","arrows","arrow","dots","dot","strip"]),HeroSlide:Object.freeze(["slide","hero-media","tint","overlay","hero-content"]),HeroSingle:Object.freeze(["hero","hero-media","tint","overlay","hero-content"]),ImageBlock:Object.freeze(["image-block","image-frame","image"]),ButtonBlock:Object.freeze(["button-block","button","button-icon"]),Text:Object.freeze(["text-block","text"]),Heading:Object.freeze(["heading-block","heading"]),LogoBlock:Object.freeze(["logo"]),MenuBlock:Object.freeze(["menu-block","heading","menu","menu-item","menu-link","menu-button"]),SiteHeader:Object.freeze(["header","header-content"]),SiteFooter:Object.freeze(["footer"]),FooterSection:Object.freeze(["footer-block","grid","legal-line","copyright"]),FooterLogo:Object.freeze(["logo-block","logo-link","tagline"]),FooterSocial:Object.freeze(["social-block","social-item","social-link"]),ProductGrid:Object.freeze(["product-grid-block","grid-head","grid-number","heading","description","view-all","count","grid","grid-empty"]),ProductCard:Object.freeze(["card","card-link","card-content","image-block","image-frame","image-plate","image","card-number","badges","badge","eyebrow","product-name","pattern","specs","price","price-note","swatches","swatch","sizes","size","buy","button","page-label"])});function ln(e){return{[Rle]:e}}var Lle=.5;function rf({videoSrc:e,videoAv1Src:o,videoSrcPhone:t,videoAv1SrcPhone:r,posterSrc:a,posterSrcPhone:n,showVideo:s=!0,playbackRate:i=Lle,objectPosition:l="50% 50%",objectPositionPhone:d,objectPositionTablet:f,quiet:u=!1,slideShown:p,laterSlide:m=!1,laterOfLead:h=!1}){let I=PR(d,f),w=Hd(),[S,C]=_s(!1),b=w==="below"&&!S,y=w==="first",v=a||"",L=n||"",A=FH(null),D=Gd(A,!0,!0),T=D===void 0?void 0:D==="phone",F=yu({video:e,av1:o,videoPhone:t,av1Phone:r},T===!0),k=F.video||"",_=Iu(k,F.av1),[P,O]=_s(!1),[W,G]=_s(!1),[Z,X]=_s(!1),[ne,ve]=_s(!1),oe=p??!0,[ke,Oe]=_s(!1),Ae=w!=="first"&&!h,[Re,nt]=_s(!1),Xo=FH(null);Ol(()=>{if(!Ae)return;if(document.readyState==="complete"){nt(!0);return}let ue=()=>nt(!0);return window.addEventListener("load",ue,{once:!0}),()=>window.removeEventListener("load",ue)},[Ae]),Ol(()=>{O(!1),G(!1),X(!1),ve(!1)},[k,v,L]),Ol(()=>{oe&&Oe(!0)},[oe]),Ol(()=>{let ue=Xo.current;ue&&(oe?ue.play()?.catch(()=>{}):ue.pause())},[oe,ke,Re]),Ol(()=>{if(!m||Ae&&!Re)return;let ue=()=>C(!0);if(typeof window.requestIdleCallback=="function"){let z=window.requestIdleCallback(ue,{timeout:2e3});return()=>window.cancelIdleCallback(z)}let no=setTimeout(ue,800);return()=>clearTimeout(no)},[m,Ae,Re]),Ol(()=>{let ue=Xo.current;if(!ue)return;let no=()=>{ue.playbackRate=i};return no(),ue.addEventListener("loadedmetadata",no),()=>ue.removeEventListener("loadedmetadata",no)},[k,i]);let Zo=gu(v),bo=v&&(Zo||L)&&!W?ks(v):{src:v},Do=L&&!W?ks(L):{src:L},Eo=L&&!b&&!S?[{sized:Do,media:Ed},...v?[{sized:bo,media:wc}]:[]]:[];return LH("div",{ref:A,className:"absolute inset-0 z-[1]",...ln("hero-media"),children:[cn("div",{className:"absolute inset-0",style:{background:"var(--site-surface)"}}),Eo.map(({sized:ue,media:no})=>cn("link",{rel:"preload",as:"image",href:ue.src,media:no,fetchPriority:"high",...ue.srcSet?{imageSrcSet:ue.srcSet,imageSizes:"100vw"}:{}},no)),(v||L)&&(Zo||L?(()=>{let ue=cn("img",{...v?{src:bo.src}:{},...bo.srcSet?{srcSet:bo.srcSet,sizes:"100vw"}:{},alt:"",...b?{loading:"lazy"}:{},...y?{fetchPriority:"high"}:{},className:`absolute inset-0 z-[2] h-full w-full object-cover ${I.className}`.trim(),style:{display:P?"none":"block",objectPosition:l,...I.style},onError:no=>{no.currentTarget.currentSrc&&(bo.srcSet||Do.srcSet?G(!0):O(!0))}},L?void 0:v);return L?LH("picture",{children:[cn("source",{media:Ed,srcSet:Do.srcSet||Do.src,sizes:"100vw"}),ue]},`${v} ${L}`):ue})():cn(ex,{src:v,alt:"",fill:!0,...b?{}:S?{loading:"eager"}:{priority:!0},sizes:"100vw",className:`z-[2] object-cover ${I.className}`.trim(),style:{display:P?"none":"block",objectPosition:l,...I.style},onError:()=>O(!0)},v)),s&&!u&&k&&T!==void 0&&ke&&(!Ae||Re)&&!Z&&cn("video",{ref:Xo,autoPlay:!0,loop:!0,muted:!0,playsInline:!0,preload:"metadata",className:"absolute inset-0 z-[3] h-full w-full object-cover",style:{objectPosition:l},onError:()=>X(!0),children:_.map(ue=>cn("source",{src:ue.src,type:ue.type},ue.src))},k),s&&u&&k&&T!==void 0&&ke&&(!Ae||Re)&&!ne&&(!v||P)&&cn(RH,{src:k,objectPosition:l,onError:()=>ve(!0)},k)]})}import{jsx as jo,Fragment as VH,jsxs as Dv}from"react/jsx-runtime";import{jsx as Al}from"react/jsx-runtime";import{useRef as Fle}from"react";import{SCROLL_EFFECTS_WITH_ZOOM as Ble,scrollAttrs as Nle}from"efficient-shell/format";function wx({views:e,origins:o={},boxClass:t,boxAttrs:r,boxStyle:a,takesViewHide:n=!1,atEdge:s=!1,zoomInside:i="layer",zoomLayerClass:l,children:d}){let f=Fle(null),u=pu(),p=Wt(),m=n?p:za,h=zd(f,!0,s),{attrs:I,style:w}=Nle(e[h],o[h]),S=Ble.includes(e[h].effect),C=et(`${_i}${u.fill}${t?` ${t}`:""}`,m.className);if(S&&i==="picture")return m.scope(Al("div",{ref:f,className:C,...r,...m.attrs,...a?{style:a}:{},children:Al(IO,{attrs:I,style:w,children:u.inner(d)})}));let b=Al(yO,{children:u.inner(d)});if(S){let v=l??(u.fill?"h-full":void 0);return m.scope(Al("div",{ref:f,className:C,...r,...m.attrs,style:{...a,overflow:"clip"},children:Al("div",{...v?{className:v}:{},...I,style:w,children:b})}))}let y=Object.keys(w).length||a?{style:{...a,...w}}:{};return m.scope(Al("div",{ref:f,className:C,...r,...m.attrs,...I,...y,children:b}))}var Os=["media","image","image2"],Oa={media:"Media",image:"Image",image2:"Image 2"},af={media:"heroMedia",image:"heroImage",image2:"heroImage2"};function Cx(e,o){return e==="image"&&Dc(o)>1?"Image 1":Oa[e]}var Oze="Video file",Aze="Upload a video file",Rze="AV1 file",Lze="Upload an AV1 file";function Dle(e,o){return kc("mediaType",$n,o,[e])}var Mle=new Set(Object.keys(Nc)),BH="heroPart";function Hle(e,o){return{...o,[BH]:e}}function Fze(e,{parts:o={},onlyFor:t,fallback:r,rules:a}){let n={...e},s=[...Object.values(o).flat(),...$n.flatMap(i=>t[i])].filter(i=>!(i in e));if(s.length)throw new Error(`heroMediaFields: ${s.join(", ")} is not a row of this block`);for(let i of $n)for(let l of t[i])n[l]=io(n[l],Dle(i,r));for(let[i,l]of Object.entries(a??{}))l&&(n[i]=io(n[i],l));for(let i of Os)for(let l of o[i]??[])n[l]=Hle(i,n[l]);return n}function Wle(e){let o=e?.[BH];return Os.includes(o)?o:null}function NH(e,o){let t={};for(let[r,a]of Object.entries(e))Wle(a)===o&&(t[r]=a);return t}function DH(e){if(!Mle.has(e.type))return[];let o=[{part:"media",label:Oa.media,depth:0}];return l1(e.type,e.props.mediaType)!=="video"&&(o.push({part:"image",label:Cx("image",e.props),depth:1}),Dc(e.props)>1&&o.push({part:"image2",label:Cx("image2",e.props),depth:1})),o}function As(e,o){return`${e}::${o}`}function vx(e){if(!e)return null;let o=e.lastIndexOf("::");if(o<=0)return null;let t=e.slice(o+2);return Os.includes(t)?{nodeId:e.slice(0,o),part:t}:null}var nf="data-sf-hero-part";import{MOTION_TIMING as $le}from"efficient-shell/format";var $H="grayscale(1) contrast(1.03)",Mze="Black and white";function Ule(e){return e===!0?{filter:$H}:{}}function zle(e){let{filter:o}=Ule(e);return o?{style:{filter:o}}:{}}var Rs="sf-photo-grayscale",Nv="data-sf-photo-host",MH={duration:"--sf-photo-hover-duration",delay:"--sf-photo-hover-delay"},Ex=`@media (hover:hover){.${Rs}{filter:${$H};transition:filter var(--sf-photo-hover-duration,var(--page-motion-hover-duration)) var(--page-ease-media) var(--sf-photo-hover-delay,var(--page-motion-hover-delay))}.${Rs}:hover,[data-sf-photo-host]:hover .${Rs}{filter:none}}@media (hover:hover) and (prefers-reduced-motion:reduce){.${Rs}{transition:none}}`;function UH(e){let o=$le.hover,t={...e.duration!==o.duration.default?{[MH.duration]:`${e.duration}s`}:{},...e.delay!==o.delay.default?{[MH.delay]:`${e.delay}s`}:{}};return Object.keys(t).length?t:void 0}function zH(e,o,t){if(e===!0)return zle(!0);if(t?.kind==="mono"){let r=UH(t);return{className:Rs,sheet:Ex,...r?{style:r}:{}}}return e===!1?{}:o===!0?{className:Rs}:{}}var GH="data-sf-repeat",Lv="sf-photo-zoom",Gle="--sf-photo-zoom",Hze="sf-photo-wash",kx="sf-photo-wash-rest",sf="sf-photo-wash-hover",Px="sf-photo-frame",jH=(e,o)=>`:not([${GH}]:not(${o}) .${e})`,Bv=(e,o)=>`[${GH}]${o} .${e}${jH(e,o)}`,Fv=(e,o)=>`${o},${Bv(e,":hover")},[${Nv}]:hover .${e}${jH(e,":hover")}`,HH=e=>`${e} var(--sf-photo-hover-duration,var(--page-motion-hover-duration)) var(--page-ease-media) var(--sf-photo-hover-delay,var(--page-motion-hover-delay))`,jle=`.${sf}{opacity:0}@media (hover:hover){.${kx},.${sf}{transition:${HH("opacity")}}${Fv(sf,`.${Px}:hover .${sf}`)}{opacity:1}${Fv(kx,`.${Px}:hover .${kx}`)}{opacity:0}}@media (hover:hover) and (prefers-reduced-motion:no-preference){.${Lv}{transition:${HH("transform")}}${Fv(Lv,`.${Px}:hover .${Lv}`)}{transform:scale(var(${Gle}))}}@media (hover:hover) and (prefers-reduced-motion:reduce){.${kx},.${sf}{transition:none}}`,Wze="sf-photo-move";function $ze(e){if(!e||!e.zoom&&!e.darken)return null;let o=UH(e);return{className:Px,sheet:jle,...o?{style:o}:{}}}function KH(e){return e===!0?{[Rs]:Ex}:{}}var Tx="sf-box-reveal",Uze="sf-box-reveal",Kle=8,WH=.3,zze=`@media ${wc}{.${Tx}{opacity:0;transform:translateY(${Kle}px);transition:opacity ${WH}s ease-out,transform ${WH}s ease-out}${Bv(Tx,":hover")},${Bv(Tx,":focus-within")}{opacity:1;transform:none}}@media ${wc} and (prefers-reduced-motion:reduce){.${Tx}{transition:none;transform:none}}`;import{hidableText as Vle}from"efficient-easel/draw";var Yle={one:"max-view-tablet:grid-cols-1 max-view-tablet:grid-rows-1",side:"max-view-tablet:grid-cols-2 max-view-tablet:grid-rows-1",stacked:"max-view-tablet:grid-cols-1 max-view-tablet:grid-rows-2"},qle={one:"view-tablet:grid-cols-1 view-tablet:grid-rows-1",side:"view-tablet:grid-cols-2 view-tablet:grid-rows-1",stacked:"view-tablet:grid-cols-1 view-tablet:grid-rows-2"};function YH(e){let o=e.isVideo&&p1(e.videoSource)==="youtube",t=e.isVideo&&u1(e.videoPlayback)==="click",r=o?m1(Vle(e.youtubeUrl)):null,a=vu(e.mediaLayout);return{fromYouTube:o,onClick:t,youTubeId:r,backgroundFile:e.isVideo&&!o&&!t,desktopLayout:a,phoneLayout:eb(e.mediaLayoutPhone,a),twoPictures:!e.isVideo&&Dc(e)>1}}function lf(e,o){return Oi(Ts({_partMotion:e},o))}function cf(e,o){return kl(Ts({_partMotion:e},o))}var _x=e=>dv({desktop:e.objectPosition,tablet:e.objectPositionTablet,phone:e.objectPositionPhone}),qH=Lc.img;function XH({entrance:e,scroll:o,origins:t,editing:r,className:a,attrs:n,style:s,zoomLayerClass:i,children:l}){return e?jo(ox,{views:e,editing:r,boxClass:a,boxAttrs:n,...s?{boxStyle:s}:{},children:l}):o?jo(wx,{views:o,...t?{origins:t}:{},boxClass:a,boxAttrs:n,...s?{boxStyle:s}:{},...i?{zoomLayerClass:i}:{},children:l}):jo("div",{className:a,...n,...s?{style:s}:{},children:l})}function Rl(e,o){return zH(void 0,void 0,RE(Ts({_partMotion:e},o)))}function ZH(e){return Os.some(o=>Rl(e,o).className)?{hostAttrs:{[Nv]:""},sheet:Ex}:{}}function Ox({treatment:e,children:o}){return e.className?jo("div",{className:`absolute inset-0 ${e.className}`,...e.style?{style:e.style}:{},children:o}):jo(VH,{children:o})}function Ax({color:e,opacity:o,passClicks:t=!0}){return o>0?jo("div",{className:t?"pointer-events-none absolute inset-0 z-[2]":"absolute inset-0 z-[2]",style:{background:e,opacity:Math.min(Math.max(o,0),100)/100},...ln("tint")}):null}function Rx({part:e,editing:o,marked:t=!0,entrance:r,scroll:a=null,origins:n,className:s,children:i}){let l=o&&t?{[nf]:e}:void 0;return jo(XH,{entrance:r,scroll:a,origins:n,editing:o,className:s,attrs:l,zoomLayerClass:qH,children:i})}function JH({partMotion:e,editing:o,children:t}){let r=lf(e,"media"),a=cf(e,"media"),n=Rl(e,"media"),s=jo(lu,{fill:Lc,children:t}),i=n.className?jo("div",{className:`absolute inset-0 z-[1] ${n.className}`,...n.style?{style:n.style}:{},children:s}):s;return r||a?jo(XH,{entrance:r,scroll:a,editing:o,className:"absolute inset-0 z-[1]",zoomLayerClass:qH,children:i}):jo(VH,{children:i})}function QH({desktopLayout:e,phoneLayout:o,editing:t,marked:r=!0,partMotion:a,first:n,second:s,laterSlide:i=!1}){return Dv("div",{className:`absolute inset-0 z-[1] grid ${Yle[o]} ${qle[e]}`,"data-hero-layout":e,"data-hero-layout-phone":o,children:[jo(Rx,{part:"image",editing:t,marked:r,entrance:lf(a,"image"),scroll:cf(a,"image"),origins:_x(n),className:"relative overflow-hidden",children:Dv(Ox,{treatment:Rl(a,"image"),children:[jo(rf,{posterSrc:$t(n.src),showVideo:!1,laterSlide:i,objectPosition:n.objectPosition,objectPositionPhone:n.objectPositionPhone,objectPositionTablet:n.objectPositionTablet}),jo(Ax,{color:n.tintColor,opacity:n.tintOpacity})]})}),jo(Rx,{part:"image2",editing:t,marked:r,entrance:lf(a,"image2"),scroll:cf(a,"image2"),origins:_x(s),className:`relative overflow-hidden ${tm({desktop:e==="one",tablet:e==="one",mobile:o==="one"},{atSectionLine:!0})}`.trimEnd(),children:Dv(Ox,{treatment:Rl(a,"image2"),children:[jo(rf,{posterSrc:$t(s.src),showVideo:!1,laterSlide:i,objectPosition:s.objectPosition,objectPositionPhone:s.objectPositionPhone,objectPositionTablet:s.objectPositionTablet}),jo(Ax,{color:s.tintColor,opacity:s.tintOpacity})]})})]})}import{jsx as dn,Fragment as Xle,jsxs as Zle}from"react/jsx-runtime";import{useEffect as Jle,useRef as Qle,useState as ece}from"react";import{PlaySolidIcon as oce}from"efficient-shell/icons/efficient-looks";function e4({youTubeId:e,ownPoster:o,background:t,editing:r}){let[a,n]=ece("large");return Jle(()=>n("large"),[e]),e?Zle(Xle,{children:[!o&&a!=="none"&&dn(qh,{src:a==="large"?h1(e):x1(e),alt:"",className:"absolute inset-0 z-[2] h-full w-full object-cover",onLoad:s=>{a==="large"&&s.currentTarget.naturalWidth<=120&&n("small")},onError:()=>n(a==="large"?"small":"none")},`${e}-${a}`),t&&!r&&dn("div",{className:"pointer-events-none absolute inset-0 z-[3] overflow-hidden [container-type:size]","aria-hidden":"true",children:dn("iframe",{src:rb(e,"background"),title:"",tabIndex:-1,allow:"autoplay; encrypted-media; picture-in-picture",className:"absolute left-1/2 top-1/2 h-[max(100%,56.25cqw)] w-[max(100%,177.78cqh)] -translate-x-1/2 -translate-y-1/2 border-0"})})]}):null}function o4({youTubeId:e,fileSrc:o,fileAv1Src:t,fileSrcPhone:r,fileAv1SrcPhone:a,playing:n,onPlay:s,editing:i}){let l=Qle(null),d=Gd(l,!0,!0)==="phone";if(!e&&!o)return null;let f=yu({video:o,av1:t,videoPhone:r,av1Phone:a},d),u=Iu(f.video,f.av1);return n&&!i?e?dn("iframe",{src:rb(e,"click"),title:ab,allow:"autoplay; encrypted-media; picture-in-picture; fullscreen",allowFullScreen:!0,className:"absolute inset-0 z-[6] h-full w-full border-0 bg-overlay-scrim"}):dn("video",{ref:p=>{l.current=p},...u.length===1?{src:u[0].src}:{},controls:!0,autoPlay:!0,playsInline:!0,className:"absolute inset-0 z-[6] h-full w-full bg-overlay-scrim object-contain",children:u.length>1&&u.map(p=>dn("source",{src:p.src,type:p.type},p.src))},f.video):dn("button",{ref:p=>{l.current=p},type:"button","aria-label":ab,onClick:i?void 0:s,className:`absolute left-1/2 top-1/2 z-[4] grid h-16 w-16 -translate-x-1/2 -translate-y-1/2 place-items-center rounded-full bg-btn text-btn-ink shadow-lg transition-transform motion-reduce:transition-none ${i?"pointer-events-none":"cursor-pointer hover:scale-105"}`,children:dn(oce,{size:28})})}function t4(e,o){if(!e)return[];let t=`[${o}]`;return Array.from(e.querySelectorAll(t)).filter(r=>{let a=r.parentElement?.closest(t);return!a||a===e||!e.contains(a)})}var r4=["top","middle","bottom"],a4=["left","center","right"],n4="bottom",s4="left",tce={top:"Top",middle:"Middle",bottom:"Bottom"},rce={left:"Left",center:"Center",right:"Right"},yGe="Up and down",bGe="Sideways",ace={top:"flex-start",middle:"center",bottom:"flex-end"},nce={left:"flex-start",center:"center",right:"flex-end"},sce="--sf-hero-phone-y",ice="--sf-hero-phone-x";function lce(e){return r4.includes(e)?e:n4}function cce(e){return a4.includes(e)?e:s4}function i4(e,o){let t=lce(e),r=cce(o),a={};return t!==n4&&(a[sce]=ace[t]),r!==s4&&(a[ice]=nce[r]),a}function SGe(){return r4.map(e=>({label:tce[e],value:e}))}function wGe(){return a4.map(e=>({label:rce[e],value:e}))}import{hexToRgb as dce}from"efficient-shell/format";var fce=!0;var pce=[[0,".5"],[30,".1"],[60,".1"],[100,".85"]];function l4(e){let o=dce(e);return o?`${o.r},${o.g},${o.b}`:null}function c4(e){return e==null?fce:e!==!1}function d4(e){let o=(e?l4(e):null)??l4(gr);return`linear-gradient(180deg, ${pce.map(([t,r])=>`rgba(${o},${r}) ${t}%`).join(", ")})`}import{hexToRgb as f4}from"efficient-shell/format";var p4="bottom";var uce=[{label:"Bottom",value:"bottom",cell:"bottom"},{label:"Top",value:"top",cell:"top"},{label:"Left",value:"left",cell:"left"},{label:"Right",value:"right",cell:"right"}],mce={bottom:180,top:0,left:270,right:90},hce=[[.55,0],[.15,18],[null,35],[null,55],[.85,100]],xce=[[null,33],[.6,67],[.94,100]];function gce(e,o){let{r:t,g:r,b:a}=f4(e)??f4(gr);return`rgba(${t},${r},${a},${o})`}function u4(e){return xo(uce,p4,e)}function m4(e=gr,o=p4){let t=u4(o),r=(t==="top"||t==="bottom"?hce:xce).map(([a,n])=>`${a===null?"transparent":gce(e,a)} ${n}%`);return`linear-gradient(${mce[t]}deg, ${r.join(", ")})`}function h4(e,o){let t=be(e.overlayColor),r=be(e.overlayPosition),a=be(o)??gr;return!t&&!r?{own:!1,color:a,position:null}:{own:!0,color:t??a,position:u4(r)}}var wce=Ice({});function qGe({name:e,process:o,mediaType:t=Nc.HeroSlide,mediaSrc:r,videoSpeed:a,poster:n,mediaAv1:s,mediaSrcPhone:i,mediaAv1Phone:l,posterPhone:d,objectPosition:f,objectPositionPhone:u,objectPositionTablet:p,tintColor:m=gr,tintOpacity:h=0,groups:I,editing:w=!1,themeClassName:S,themeStyle:C,overlayColor:b,overlayPosition:y,mediaLayout:v,mediaLayoutPhone:L,mediaImage2:A,objectPosition2:D,objectPosition2Phone:T,objectPosition2Tablet:F,tintColor2:k=gr,tintOpacity2:_=0,videoSource:P,youtubeUrl:O,videoPlayback:W,partMotion:G,laterSlide:Z=!1}){let X=Wt(),{alignment:ne="left",textureOpacity:ve,textureOn:oe,textureColor:ke,quietVideo:Oe,phoneUpDown:Ae,phoneSideways:Re,holdReel:nt,reelHeld:Xo,shownSlide:Zo,ratioMin:bo}=yce(wce),Do=Hd(),Eo=Z&&Do==="first",ue=Sce(null),[no,z]=g4(Zo===void 0?void 0:!1);bce(()=>{let Pn=ue.current;z(Zo===void 0||!Pn?void 0:t4(Pn.closest(".hero-track"),"data-slide-name")[Zo]===Pn)});let ce=t==="video",Ce=ce?$t(r):void 0,So=ce?$t(n):$t(r)??$t(n),mo=ce?{av1:$t(s),phone:$t(i),av1Phone:$t(l),poster:$t(d)}:{},st=typeof a=="number"?a/100:1,{fromYouTube:Xe,onClick:Mo,youTubeId:Fr,backgroundFile:mt,desktopLayout:ty,phoneLayout:mc,twoPictures:si}=YH({isVideo:ce,videoSource:P,videoPlayback:W,youtubeUrl:O,mediaLayout:v,mediaLayoutPhone:L}),[ii,ra]=g4(!1);ii&&Xo===!1&&ra(!1);let Fa=!ii,kn=h4({overlayColor:b,overlayPosition:y},ke),hc=ce?null:lf(G,"image"),Tn=ce?null:cf(G,"image"),yp=ZH(G),xc=Zt(Ox,{treatment:ce?{}:Rl(G,"image"),children:Zt(rf,{videoSrc:mt?Ce:void 0,videoAv1Src:mt?mo.av1:void 0,videoSrcPhone:mt?mo.phone:void 0,videoAv1SrcPhone:mt?mo.av1Phone:void 0,posterSrc:So,posterSrcPhone:mo.poster,showVideo:mt,playbackRate:st,objectPosition:f,objectPositionPhone:ce?void 0:u,objectPositionTablet:ce?void 0:p,quiet:Oe,slideShown:no,laterSlide:Z,laterOfLead:Eo})}),bp=x4("section",{ref:ue,className:et(`${bo?"relative min-h-full w-full overflow-clip":"relative h-full w-full overflow-hidden"}${S?` ${S}`:""}`,X.className),...X.attrs,style:C,"data-slide-name":e??"","data-slide-process":o??"","data-slide-media":mt&&Ce?"video":"still",...yp.hostAttrs,...ln("slide"),children:[Zt(fx,{sheet:yp.sheet}),Zt(JH,{partMotion:G,editing:w,children:si?Zt(QH,{laterSlide:Z,desktopLayout:ty,phoneLayout:mc,editing:w,partMotion:G,first:{src:r,objectPosition:f,objectPositionPhone:u,objectPositionTablet:p,tintColor:m,tintOpacity:h},second:{src:A,objectPosition:D,objectPositionPhone:T,objectPositionTablet:F,tintColor:k,tintOpacity:_}}):Xe||hc||Tn?x4(Rx,{part:ce?"media":"image",editing:w,entrance:hc,scroll:Tn,origins:_x({objectPosition:f,objectPositionTablet:p,objectPositionPhone:u}),className:"absolute inset-0 z-[1]",children:[xc,Xe&&Zt(e4,{youTubeId:Fr,ownPoster:!!So,background:!Mo,editing:w})]}):xc}),Mo&&Zt(o4,{youTubeId:Fr,fileSrc:Xe?void 0:Ce,fileAv1Src:Xe?void 0:mo.av1,fileSrcPhone:Xe?void 0:mo.phone,fileAv1SrcPhone:Xe?void 0:mo.av1Phone,playing:ii,onPlay:()=>{ra(!0),nt?.()},editing:w}),Fa&&!si&&Zt(Ax,{color:m,opacity:h,passClicks:!1}),Fa&&c4(oe)&&Zt("div",{className:"absolute inset-0 z-[2]",style:{background:kn.own?m4(kn.color,kn.position??void 0):d4(kn.color),...ve!==void 0?{opacity:ve/100}:null},...ln("overlay")}),Fa&&Zt("div",{className:[bo?"sf-hero-group-layer relative min-h-full z-[3] mx-auto max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)] pt-[140px] pb-14":"sf-hero-group-layer absolute inset-0 z-[3] mx-auto max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)] pt-[140px] pb-14",w?"sf-hero-group-layer-edit":""].filter(Boolean).join(" "),style:{...tO,...i4(Ae,Re)},...ln("hero-content"),children:I&&Zt(I,{className:"sf-hero-group-zone",minEmptyHeight:160})})]});return X.scope(Eo?Zt(Yh,{children:bp}):bp)}var I4=Array.from({length:3},(e,o)=>({name:`Slide ${o+1}`,process:"Category",mediaType:"image",mediaVideo:"",poster:""}));import{newNodeId as C4}from"efficient-easel/draw";import{isNodeList as vce}from"efficient-easel/data";var Mv=3,Hv=()=>({type:V,props:{direction:"column"},slots:{[De]:[{type:"ImageBlock"},{type:V,props:{direction:"column"},slots:{[De]:[{type:"Text",props:Da()},{type:"Text"}]}}]}}),y4=()=>Array.from({length:Mv},Hv);var b4=["","","","","",""],S4="#ticker",df="strip",Wv={sectionAccent:Hr,line:!1};function Cce(e){return(Array.isArray(e.tickerItems)?e.tickerItems:[]).map(o=>typeof o?.text=="string"?o.text:"").filter(o=>o.trim()!=="")}function $v(e){return Cce(e).length>0}function tje(e){return e.showTicker!==!1&&$v(e)}var v4=(e,o)=>({type:e.type,props:{...o?.(e.type)??{},...Object.fromEntries(Object.entries(e.props).map(([t,r])=>[t,vce(r)?r.map(a=>v4(a,o)):r]))}}),kce=e=>{let[o]=Nr([Hv()],a=>C4(a)),{id:t,...r}=v4(o,e).props;return r},Jt={Hero:{slot:"slides",childType:"HeroSlide",addLabel:"Add slide",slider:!0,seeds:()=>I4.map(e=>({...e}))},HeroSlide:{slot:"groups",childType:"HeroGroup",addLabel:`Add ${yc.toLowerCase()}`,seeds:()=>[],addBlocked:jy,notice:Ky},HeroSingle:{slot:"boxes",childType:"HeroGroup",addLabel:`Add ${yc.toLowerCase()}`,seeds:()=>[],addBlocked:jy,notice:Ky},ProcessSteps:{slot:Ic,childType:V,addLabel:`Add ${yc.toLowerCase()}`,seeds:e=>Array.from({length:Mv},()=>kce(e)),skipSeed:e=>Array.isArray(e.steps)&&e.steps.length>0}},w4=1,Tce={slot:df,childType:V,addLabel:`Add ${yc.toLowerCase()}`,seeds:()=>[],addBlocked:e=>e.length>=w4?"This Hero has its Scrolling Bar already. Delete it to add another.":null,notice:e=>e.length>w4?`This Hero holds ${e.length} Scrolling Bars. Keep one and delete the others.`:null},k4={Hero:{[df]:Tce}};function mje(e){for(let[o,t]of Object.entries(e)){if(He(Jt,o)&&$(Jt,o)!==t)throw new Error(`lib/document/slot-specs: "${o}" already has a slot spec`);Jt[o]=t}}function hje(e,o){let t=$(Jt,e);return t?{slot:t.slot,children:t.seeds(o).map(r=>({type:t.childType,props:{id:C4(t.childType),...r}}))}:null}var Ece=["GalleryB"];function T4(e){let o=e.content;if(!Array.isArray(o))return e;let t=!1,r=o.map(s=>{let i=s?.type;if(!i||!Ece.includes(i))return s;let l=$(Jt,i);if(!l?.legacy)return s;let d=s.props??{},f=d[l.slot];if(Array.isArray(f)&&f.length>0)return s;let u=l.legacy(d);if(!u.length)return s;t=!0;let p=String(d.id??i),m=u.map((h,I)=>({type:l.childType,props:{id:`${l.childType}-${p}-${I}`,...h}}));return{...s,props:{...d,[l.slot]:m}}}),a=new Set(Pce(r)),n=a.size?r.filter((s,i)=>!a.has(i)):r;return a.size&&(t=!0),t?{...e,content:n}:e}var _ce={"Logos.logosPerRow":"columns","HeroSlide.tintOpacity":"overlay","Split.textBgTint":"overlay"},Oce={"Footprint.source":"typed"};function P4(e){let o=e.props,t=!1;if(e.type&&o)for(let[r,a]of Object.entries(_ce)){let n=r.indexOf("."),s=r.slice(0,n),i=r.slice(n+1);if(s!==e.type||!(i in o))continue;let l=o[i],d={...o};delete d[i],(!(a in d)||d[a]===void 0)&&(d[a]=l),o=d,t=!0}if(e.type&&o)for(let[r,a]of Object.entries(Oce)){let n=r.indexOf("."),s=r.slice(n+1);if(r.slice(0,n)!==e.type||!(s in o))continue;let i=typeof o[s]=="string"?o[s].trim():"",l={...o};delete l[s],z0(i)&&i!==a&&!eo(l)&&(l[_o]=i),o=l,t=!0}if(e.type&&o){let r=$p(e.type,o);r!==o&&(o=r,t=!0)}if(o){let r=ho({props:o},a=>so(a,P4));r.props!==o&&(o=r.props,t=!0)}return t?{...e,props:o}:e}function E4(e){return vp(e,o=>so(o,P4))}import{readHidable as Rce}from"efficient-easel/draw";function Lx(e,o,t){let r=[];return e.forEach((a,n)=>{let s=o(a),i=r.find(l=>l.key===s);i||(i={key:s,name:t(a),items:[]},r.push(i)),i.items.push({item:a,index:n})}),r}function kje(e){return Ace[ff(e)]}var Ace={1:"grid-cols-1",2:"grid-cols-2",3:"grid-cols-3",4:"grid-cols-4"};function ff(e){if(e<=1)return 1;if(e<=4)return e;let o=t=>e%t||t;return o(4)>=o(3)?4:3}var Jr=V,Qr=De;function Ls(e){if(e.theme)return vo(e.theme);let o=e.site?.themePresets;return o?vo({selected:e.site?.selectedPreset??0,themes:[...o]}):void 0}function Lce(e,o){return o===0?`${e}~box`:`${e}~box-${o+1}`}var O4=new Set(["id"]),fn={},pf=[],Fce={ProductGrid:["ProductColour","ProductEyebrow","ProductName","ProductPicture","ProductPrice","ProductRef","ProductSpecs"],Events:[],Collections:["CollectionCard"],GalleryB:["GalleryItem"],ContactRouting:[],ReviewForm:[],AppointmentBooking:["BookingBox"],Reviews:["RatingBlock"],CheckoutCTA:[],AlloyWheelsListing:["ProductBuy","ProductColour","ProductEyebrow","ProductName","ProductPicture","ProductPrice","ProductSpecs"],SpecTable:["EuTyreLabelBlock","WheelDiagram"],FitmentTable:[],ProductHero:["ProductGallery","ProductEyebrow","ProductName","ProductPrice","ProductBuyButton"]},Bce=Object.keys(Fce),Fs=["Breadcrumb","DocBody","Form","SubmitBuild","Footprint","FAQ","ContactLocations","ProcessSteps",...Bce,"Stats","Logos","PaymentBadges","PaymentLogosBlock","FitmentFinder","DocMasthead","DocTabs","Timeline","TimelineTrack","OrderSummary","Chart","Mockup","Integrations","Countdown","FeaturedCover","IntroBleed","SectionHeader","TitleWithButtons","Prose","ParagraphsA","Banner","Cards"];function To(e){for(let[o,t]of Object.entries(e)){if(He(fn,o)&&$(fn,o)!==t)throw new Error(`lib/sections/section-to-box: "${o}" already has a row`);fn[o]=t}}function pn(e){return $(fn,e)}function Nce(e){return He(fn,e)&&pf.includes(e)}function A4(e,o=Fs){return He(fn,e)&&(o.includes(e)||Nce(e))}function Nje(e){let o=$(ur,e);if(!o)throw new Error(`lib/sections/section-to-box: "${e}" has no head row in SPLITTABLE_SECTIONS`);let t=[{kind:"text",key:o.num,role:"eyebrow"},{kind:"text",key:o.title,role:"heading"}];return o.description&&t.push({kind:"text",key:o.description,role:"body"}),o.headRows.includes("linkText")&&o.headRows.includes("linkHref")&&t.push({kind:"button",key:"linkText",href:"linkHref"}),t}var Uv=e=>Rce(e),ro=e=>Uv(e).text.trim()!=="";function Dce(e){if(e.includes("=="))return e;let o=e.indexOf("/"),t=o===-1?e:e.slice(0,o),r=t.trim();if(!r)return e;let a=t.indexOf(r);return`${t.slice(0,a)}==${r}==${t.slice(a+r.length)}${o===-1?"":e.slice(o)}`}var Mce=e=>e==="heading"?Da():e==="eyebrow"?ca():{};function Hce(e,o,t,r){let a={...e._partStyles?.text??{},...o??{},...t??{}};return(r==="center"||r==="right")&&a.align===void 0&&(a.align=r),Object.keys(a).length?{_partStyles:{text:a}}:{}}function Wce(e,o){if(e===void 0)return{};if(typeof e=="string")return{variant:e};let t=o[e.key];return{variant:(typeof t=="string"?$(e.map,t):void 0)??e.fallback}}function _4(e,o,t,r,a={}){let n={...o};for(let s of e){let[i,l,d]=typeof s=="string"?[s,s,void 0]:s;if(t[i]===void 0)continue;let f=d?d(t[i],t,a):t[i];f===void 0?delete n[l]:n[l]=f,r(i,l,f===void 0)}return n}function $ce(e){let o=new Set([...O4,"headPlacement","_partStyles",...Object.keys(e.drop??{}),...Object.keys(e.reads??{})]),t=a=>{for(let n of a??[])o.add(typeof n=="string"?n:n[0])},r=a=>{for(let n of a)switch(n.kind){case"text":case"image":o.add(n.key),n.kind==="image"&&n.alt&&o.add(n.alt);break;case"button":o.add(n.key),o.add(n.href),typeof n.variant=="object"&&o.add(n.variant.key);break;case"list":o.add(n.key);break;case"group":case"block":t(n.box),r(n.parts??[]);break;case"core":if(n.keep!=="rest"&&n.keep.forEach(s=>o.add(s)),Object.keys(n.rename??{}).forEach(s=>o.add(s)),n.derive?.reads.forEach(s=>o.add(s)),typeof n.slots!="function")for(let s of Object.values(n.slots??{}))for(let i of s)"kind"in i&&o.add(i.key);break}};for(let a of[e,...e.also??[]])t(a.box),r(a.parts);return o}var zv=e=>Hp(e.headPlacement)==="own-box";function Uce(e){return zv(e)?"its head sits in a Box of its own above it (own-box): the row draws the head inline":void 0}function zce(e,o){let t=e[o];return Array.isArray(t)&&t.some(r=>!!r&&typeof r=="object"&&typeof r.type=="string")?"already on the Box path: its items draw from a filled card template":void 0}function Gce(e){let o=new Set,t=r=>{for(let a of r)if(a.kind==="group"||a.kind==="block")t(a.parts??[]);else if(a.kind==="core"&&a.slots&&typeof a.slots!="function")for(let[n,s]of Object.entries(a.slots))s.length>0&&s.every(i=>!("kind"in i))&&o.add(n)};for(let r of[e,...e.also??[]])t(r.parts);return[...o]}function jce(e,o,t){if(!t.press)for(let r of Gce(e)){let a=zce(o,r);if(a!==void 0)return a}}function Bs(e,o,t={}){let r=e.props,a=(o.ownBoxConverts?void 0:Uce(r))??jce(o,r,t)??o.skip?.(r);if(a!==void 0)return{node:e,nodes:[e],carried:[],dropped:[],siteWrites:[],skipped:a};let n=String(r.id??e.type),s=[],i=[],l=new Set,d=(y,v)=>{s.push({key:y,home:v}),l.add(y)},f=r._partStyles??{},u=$ce(o),p=0,m=(y,v)=>({type:y,props:{...v,id:`${n}~${y}-${++p}`}}),h=(y,v,L,A,D,T,F)=>{if(D){for(let _ of y??[]){let P=typeof _=="string"?_:_[0];L[P]!==void 0&&F(P,`nothing \u2014 the ${A} has no parts, so it is not drawn`)}return}let k=typeof v=="function"?v(r,t):v??{};return _4(y??[],k,L,(_,P,O)=>F(_,O?`nothing \u2014 the old value draws nothing (${A}: no ${P})`:`${T}${A}: ${P}`),t)},I=y=>Nr(y,v=>`${n}~${v}-${++p}`),w=(y,v,L)=>{let A=y.of?y.of(v):Array.isArray(v[y.key])?v[y.key]:[],D=typeof y.props=="function"?y.props(r,t):y.props??{},T=A.map((O,W)=>{let G=O??{},Z=y.item?.(G,W,r)??{},X=S(Z.reverse?[...y.parts].reverse():y.parts,G,!1,`item ${W+1}: `);return y.flat?Z.props?X.map(ne=>({...ne,props:{...ne.props,...Z.props,id:ne.props.id}})):X:[m(Jr,{name:`${y.name} ${W+1}`,...D,...Z.props??{},[Qr]:X})]});if(y.groups){let O=y.groups;return L(y.key,A.length?`one Box per item (${A.length}), in a Box per group`:"nothing \u2014 the list is empty"),Lx(A.map(W=>W??{}),O.of,O.of).map((W,G)=>{let Z=W.items.map(Oe=>Oe.item),X=O.parts?S(O.parts,O.head?.(Z,r)??{},!1,`group ${G+1}: `):[],ne=W.items.map(Oe=>T[Oe.index]),ve=O.perRow?.(Z.length,r),oe=Number.isInteger(ve)&&ve>=1?ve:1,ke=[];if(O.perRow&&oe<ne.length)for(let Oe=0;Oe*oe<ne.length;Oe++)ke.push(ne.slice(Oe*oe,(Oe+1)*oe).flat());return m(Jr,{name:`${O.name} ${G+1}`,...O.props??{},[Qr]:[...X,m(Jr,{name:`${O.itemsName} ${G+1}`,...O.itemsProps?.(Z.length,r)??{},[Qr]:ke.length?ke.map((Oe,Ae)=>m(Jr,{name:`${O.rowName??`${O.itemsName} row`} ${Ae+1}`,...O.rowProps??{},[Qr]:Oe})):ne.flat()})]})})}let F=y.perRow?.(r),k=y.perRow?Number.isInteger(F)&&F>=1?F:1:0;if(L(y.key,(A.length?y.flat?`each item's parts (${A.length} items), in order`:`one Box per item (${A.length}), its parts inside`:"nothing \u2014 the list is empty")+(k&&A.length?`, in rows of ${k}`:"")),!k)return T.flat();let _=typeof y.rowProps=="function"?y.rowProps(r,t):y.rowProps??{},P=[];for(let O=0;O*k<T.length;O++){let W=T.slice(O*k,(O+1)*k).flat(),G=y.rowFiller?k-T.slice(O*k,(O+1)*k).length:0;P.push(m(Jr,{name:`${y.rowName??`${y.name} row`} ${O+1}`,..._,[Qr]:[...W,...Array.from({length:G},(Z,X)=>m(Jr,{name:`Empty ${X+1}`,...y.rowFiller,[Qr]:[]}))]}))}return P},S=(y,v,L,A)=>{let D=[],T=(k,_)=>L?d(k,_):void 0,F=k=>L?f[k]:void 0;for(let k of y)if(!(k.when&&!k.when(r,L?void 0:v)))switch(k.kind){case"text":{let _=Uv(v[k.key]);if(!_.text.trim()&&!(L&&t.press&&o.pressKeepsEmpty?.includes(k.key))){T(k.key,"nothing \u2014 empty words draw nothing, so no block");break}let P=Mce(k.role??"body"),{_partStyles:O,...W}=P,G=Hce(P,k.styleFrom?{...k.style,...k.styleFrom(r,t)}:k.style,F(k.key),k.props?.align);D.push(m("Text",{text:k.mark==="accentLead"?Dce(_.text):k.mark==="accentItalic"?Sc(_.text):_.text,...W,...k.props??{},...G,..._.hidden?{_hidden:!0}:{}})),T(k.key,`${A}Text block: its words${_.hidden?", hidden":""}`);break}case"button":{let _=Uv(v[k.key]);if(!_.text.trim()){T(k.key,"nothing \u2014 no words, no button"),T(k.href,"nothing \u2014 no button to link"),typeof k.variant=="object"&&T(k.variant.key,"nothing \u2014 no button to style");break}let P=typeof v[k.href]=="string"&&v[k.href]?v[k.href]:"#",O={...k.style??{},...F(k.key)??{}};D.push(m("ButtonBlock",{label:_.text,href:P,...typeof k.props=="function"?k.props(v,t):k.props??{},...Wce(k.variant,v),...Object.keys(O).length?{_partStyles:{label:O}}:{},..._.hidden?{_hidden:!0}:{}})),T(k.key,`${A}Button block: its words`),T(k.href,`${A}Button block: its link`),typeof k.variant=="object"&&T(k.variant.key,`${A}Button block: its Style`);break}case"image":{let _=v[k.key];if(typeof _!="string"||!_){T(k.key,"nothing \u2014 no picture, no block"),k.alt&&T(k.alt,"nothing \u2014 no picture to describe");break}let P=k.alt&&typeof v[k.alt]=="string"?v[k.alt]:"";D.push(m("ImageBlock",{src:_,alt:P,...k.props??{}})),T(k.key,`${A}Image block: its picture`),k.alt&&T(k.alt,`${A}Image block: its alt text`);break}case"list":{D.push(...w(k,v,T));break}case"group":{let _=S(k.parts,v,L,A),P=h(k.box,k.props,v,`${k.name} Box`,!_.length&&!k.keepEmpty,A,T);P&&D.push(m(Jr,{name:k.name,...P,[Qr]:_}));break}case"block":{let _=k.parts?S(k.parts,v,L,A):[],P=h(k.box,k.props,v,`${k.type} block`,!!k.parts&&!_.length&&!k.keepEmpty,A,T);P&&D.push(m(k.type,{...P,...k.slot?{[k.slot]:_}:{}}));break}case"core":{let _=k.as??e.type,P={...k.headless?{}:{headPlacement:"own-box"},...k.props??{}},O=k.keep==="rest"?Object.keys(v).filter(G=>!u.has(G)&&!(G in P)):k.keep;for(let G of O)v[G]!==void 0&&(P[G]=v[G],T(G,`the ${_} block inside the Box`));if(k.keep==="rest"){for(let Z of Object.keys(k.props??{}))v[Z]!==void 0&&!u.has(Z)&&T(Z,`nothing \u2014 the ${_} block inside the Box has the row's own value`);v.headPlacement!==void 0&&T("headPlacement",`the ${_} block inside the Box: own-box`);let G=Object.fromEntries(Object.entries(f).filter(([Z])=>!u.has(Z)));Object.keys(G).length&&(P._partStyles=G)}for(let[G,Z]of Object.entries(k.rename??{}))v[G]!==void 0&&(P[Z]=v[G],T(G,`the ${_} block inside the Box: ${Z}`));if(k.derive){Object.assign(P,k.derive.props(v,t));for(let G of k.derive.reads)v[G]!==void 0&&T(G,`the ${_} block inside the Box`)}let W=typeof k.slots=="function"?k.slots(v,t):k.slots??{};for(let[G,Z]of Object.entries(W))P[G]=Z.flatMap(X=>"kind"in X?w(X,v,T):I([X]));D.push(m(_,P));break}}return D},C=(y,v)=>{let L=v===0?"Box":`${y.name} Box`,A=S(y.parts,r,!0,v===0?"":`${L}: `),D=typeof y.boxProps=="function"?y.boxProps(r,t):y.boxProps??{},T=_4(y.box??[],D,r,(F,k,_)=>d(F,_?`nothing \u2014 the old value draws nothing (${L}: no ${k})`:`${L}: ${k}`),t);return{type:Jr,props:{name:y.name,...T,[Qr]:A,id:Lce(n,v)}}},b=[o,...o.also??[]].map(C);r._partStyles!==void 0&&d("_partStyles","each old part's style moved to its new part");for(let[y,v]of Object.entries(o.reads??{}))r[y]!==void 0&&d(y,v);for(let[y,v]of Object.entries(o.drop??{}))y in r&&(i.push({key:y,why:v}),l.add(y));for(let y of Object.keys(r))O4.has(y)||l.has(y)||i.push({key:y,why:"not in the row \u2014 not carried"});return{node:b[0],nodes:b,carried:s,dropped:i,siteWrites:[...o.site?.(e,t)??[]]}}function R4(e,o=pf,t={}){let r=e.content;if(!Array.isArray(r))return e;let a=!1,n=r.flatMap(s=>{let i=s&&typeof s.type=="string"&&o.includes(s.type)?$(fn,s.type):void 0;if(!i)return[s];let l=Bs(s,i,t);return l.skipped!==void 0?[s]:(a=!0,l.nodes)});return a?{...e,content:n}:e}function L4(e,o=pf,t={}){if(!Array.isArray(e))return[];let r=[];return e.forEach((a,n)=>{let s=a&&typeof a.type=="string"&&o.includes(a.type)?$(fn,a.type):void 0;if(!s)return;let i=Bs(a,s,t);i.skipped===void 0&&r.push({index:n,node:i.node,nodes:i.nodes})}),r}import{BLOCK_FIXED_WIDTH as Kce,BLOCK_SIZE_KEYS as Vce,parseBlockWidthFit as Bx,phoneKey as F4,parseTextFit as Fx,tabletKey as B4,viewKeyAt as N4}from"efficient-easel/draw";import{sideLengthAt as Yce}from"efficient-easel/screen/lib/content/length-units";var qce="sf-block-size",uf=["width","minWidth","maxWidth"],Nx=e=>`${e}Unit`,un=e=>typeof e=="number"&&Number.isFinite(e)&&e>=0?e:void 0,Xce={desktop:{fill:"view-wide:w-full view-wide:[.flex-row>&]:grow",fixed:"view-wide:w-[min(var(--sf-bw),100%)] view-wide:basis-auto! view-wide:grow-0! view-wide:shrink-0"},phone:{fill:"max-view-wide:w-full",fixed:"max-view-wide:w-[min(var(--sf-bw-p),100%)] max-view-wide:basis-auto! max-view-wide:grow-0! max-view-wide:shrink-0"}},W4={desktop:{fill:"view-desktop:w-full view-desktop:[.flex-row>&]:grow",fixed:"view-desktop:w-[min(var(--sf-bw),100%)] view-desktop:basis-auto! view-desktop:grow-0! view-desktop:shrink-0"},tablet:{fill:"view-wide:max-view-desktop:w-full view-wide:max-view-desktop:[.flex-row>&]:grow",fixed:"view-wide:max-view-desktop:w-[min(var(--sf-bw-t),100%)] view-wide:max-view-desktop:basis-auto! view-wide:max-view-desktop:grow-0! view-wide:max-view-desktop:shrink-0"},phone:{fill:"max-view-wide:w-full",fixed:"max-view-wide:w-[min(var(--sf-bw-p),100%)] max-view-wide:basis-auto! max-view-wide:grow-0! max-view-wide:shrink-0"}},Zce={desktop:W4.desktop,tablet:{fill:"view-tablet:max-view-desktop:w-full view-wide:max-view-desktop:[.flex-row>&]:grow",fixed:"view-tablet:max-view-desktop:w-[min(var(--sf-bw-t),100%)] view-tablet:max-view-desktop:basis-auto! view-tablet:max-view-desktop:grow-0! view-tablet:max-view-desktop:shrink-0"},phone:{fill:"max-view-tablet:w-full",fixed:"max-view-tablet:w-[min(var(--sf-bw-p),100%)] max-view-tablet:basis-auto! max-view-tablet:grow-0! max-view-tablet:shrink-0"}},Jce={two:{desktop:"view-wide:[.flex-row>*>&]:grow"},three:{desktop:"view-desktop:[.flex-row>*>&]:grow",tablet:"view-wide:max-view-desktop:[.flex-row>*>&]:grow"}},$4="max-view-wide:grow!";function U4(e){return Dx(e).mode.phone==="fill"}var Qce={desktop:"--sf-bw",tablet:"--sf-bw-t",phone:"--sf-bw-p"},ede={fill:"data-sf-width-fill",fixed:"data-sf-width-fixed"},ode="data-sf-min-width",D4={two:{desktop:"wide",phone:Vy.phone},three:Vy},tde={minWidth:{desktop:["--sf-bmin","view-wide:min-w-[var(--sf-bmin)]!"],phone:["--sf-bmin-p","max-view-wide:min-w-[var(--sf-bmin-p)]!"]},maxWidth:{desktop:["--sf-bmax","view-wide:max-w-[var(--sf-bmax)]"],phone:["--sf-bmax-p","max-view-wide:max-w-[var(--sf-bmax-p)]"]}},Gv={minWidth:{desktop:["--sf-bmin","view-desktop:min-w-[var(--sf-bmin)]!"],tablet:["--sf-bmin-t","view-wide:max-view-desktop:min-w-[var(--sf-bmin-t)]!"],phone:["--sf-bmin-p","max-view-wide:min-w-[var(--sf-bmin-p)]!"]},maxWidth:{desktop:["--sf-bmax","view-desktop:max-w-[var(--sf-bmax)]"],tablet:["--sf-bmax-t","view-wide:max-view-desktop:max-w-[var(--sf-bmax-t)]"],phone:["--sf-bmax-p","max-view-wide:max-w-[var(--sf-bmax-p)]"]}},rde={minWidth:{desktop:Gv.minWidth.desktop,tablet:["--sf-bmin-t","view-tablet:max-view-desktop:min-w-[var(--sf-bmin-t)]!"],phone:["--sf-bmin-p","max-view-tablet:min-w-[var(--sf-bmin-p)]!"]},maxWidth:{desktop:Gv.maxWidth.desktop,tablet:["--sf-bmax-t","view-tablet:max-view-desktop:max-w-[var(--sf-bmax-t)]"],phone:["--sf-bmax-p","max-view-tablet:max-w-[var(--sf-bmax-p)]"]}},ade=["widthFit",...uf],M4={desktop:"view-wide:whitespace-nowrap view-wide:[&_*]:whitespace-nowrap!",phone:"max-view-wide:whitespace-nowrap max-view-wide:[&_*]:whitespace-nowrap!"},jv={desktop:"view-desktop:whitespace-nowrap view-desktop:[&_*]:whitespace-nowrap!",tablet:"view-wide:max-view-desktop:whitespace-nowrap view-wide:max-view-desktop:[&_*]:whitespace-nowrap!",phone:"max-view-wide:whitespace-nowrap max-view-wide:[&_*]:whitespace-nowrap!"},nde={desktop:jv.desktop,tablet:"view-tablet:max-view-desktop:whitespace-nowrap view-tablet:max-view-desktop:[&_*]:whitespace-nowrap!",phone:"max-view-tablet:whitespace-nowrap max-view-tablet:[&_*]:whitespace-nowrap!"},z4={desktop:"view-wide:min-w-0 view-wide:[&_*]:overflow-hidden view-wide:[&_*]:text-ellipsis",phone:"max-view-wide:min-w-0 max-view-wide:[&_*]:overflow-hidden max-view-wide:[&_*]:text-ellipsis"},sde={desktop:"view-desktop:min-w-0 view-desktop:[&_*]:overflow-hidden view-desktop:[&_*]:text-ellipsis",tablet:"view-wide:max-view-desktop:min-w-0 view-wide:max-view-desktop:[&_*]:overflow-hidden view-wide:max-view-desktop:[&_*]:text-ellipsis",phone:z4.phone},G4={desktop:"view-wide:max-w-full",phone:"max-view-wide:max-w-full"},H4={desktop:"view-desktop:max-w-full",tablet:"view-wide:max-view-desktop:max-w-full",phone:G4.phone};function j4(e){let o=Dx(e);return o.sides.filter(t=>o.mode[t]==="fill").map(t=>Jce[o.three?"three":"two"][t]).filter(Boolean).join(" ")}function K4(e){let{three:o,sides:t,mode:r,lengthPerSide:a}=Dx(e),n=d=>o?D4.three[d]:D4.two[d],s={fill:[],fixed:[],min:[]},i=a("minWidth");for(let d of t){let f=r[d];(f==="fill"||f==="fixed")&&s[f].push(n(d)),i[d]!==void 0&&s.min.push(n(d))}let l={};for(let d of["fill","fixed"])s[d].length&&(l[ede[d]]=s[d].join(" "));return s.min.length&&(l[ode]=s.min.join(" ")),l}function Dx(e){let o=ade.some(a=>{let n=e[a]?.tablet;return a==="widthFit"?Bx(n)!==void 0:un(n)!==void 0}),t=o?["desktop","tablet","phone"]:["desktop","phone"],r=(a,n)=>{let s=a(n?.desktop),i=o?a(n?.tablet)??s:s;return{desktop:s,tablet:i,phone:a(n?.phone)??i}};return{three:o,sides:t,perSide:r,lengthPerSide:a=>{let n=Nx(a),s={};for(let l of t)s[N4(a,fa(l))]=un(e[a]?.[l]),s[N4(n,fa(l))]=e.units?.[a]?.[l];let i=l=>Yce(s,{length:a},n,fa(l),"length")??void 0;return{desktop:i("desktop"),tablet:i("tablet"),phone:i("phone")}},mode:r(Bx,e.widthFit)}}function Kv(e,{atSectionLine:o=!1}={}){let t=["desktop","tablet","phone"].some(_=>Fx(e.textFit?.[_])==="ellipsis"),r=o&&!t,a=r?Zce:W4,n=r?rde:Gv,s=r?nde:jv,i=[],l={},d={},{three:f,sides:u,lengthPerSide:p,mode:m}=Dx(e),h=p("width");for(let _ of u){let P=m[_];!P||P==="fit"||(i.push(f?a[_][P]:Xce[_][P]),P==="fixed"&&(l[Qce[_]]=Me(h[_]?.value??Kce.fallback,h[_]?.unit)))}for(let _ of uf.filter(P=>P!=="width")){let P=p(_);for(let O of u){let W=P[O];if(W===void 0)continue;let[G,Z]=f?n[_][O]:tde[_][O];l[G]=Me(W.value,W.unit),i.push(Z)}}let I=Fx(e.textFit?.desktop),w=Fx(e.textFit?.phone),S=_=>{let P=un(e.minFont?.[_]);return P===void 0?void 0:e.units?.minFont?.[_]==="vw"?`${P}vw`:String(P)},C=S("desktop"),b=S("phone"),y=Fx(e.textFit?.tablet),v=y!==I||w!==void 0?y:void 0,L=S("tablet"),A=L!==C||b!==void 0?L:void 0,D=un(e.maxWidth?.desktop),T=un(e.maxWidth?.tablet)??D,F={desktop:D!==void 0,tablet:T!==void 0,phone:(un(e.maxWidth?.phone)??T)!==void 0},k=(_,P,O)=>{if(P!=="line"&&P!=="ellipsis")return;let W=_==="tablet"?void 0:_,G=(Z,X)=>O||!W?Z[_]:X[W];if(P==="line"){i.push(G(s,M4));return}if(i.push(G(jv,M4)),i.push(G(sde,z4)),f&&!O&&_==="desktop")for(let Z of["desktop","tablet"])F[Z]||i.push(H4[Z]);else F[_]||i.push(G(H4,G4))};return v?(k("desktop",I,!0),k("tablet",v,!0),k("phone",w??v,!0)):(k("desktop",I,!1),k("phone",w??I,!1)),I&&(d[ka.fit]=I),v&&(d[ka.fitTablet]=v),w&&(d[ka.fitPhone]=w),C!==void 0&&(d[ka.min]=C),A!==void 0&&(d[ka.minTablet]=A),b!==void 0&&(d[ka.minPhone]=b),!r&&(v||A!==void 0)&&(d[ka.edge]=""),i.length===0&&Object.keys(d).length===0?null:{className:[qce,...i].join(" "),style:l,attrs:d}}function zje(e){if(un(e.maxWidth?.desktop)!==void 0)return!0;let o=Bx(e.widthFit?.desktop);return o==="fill"||o==="fixed"}function V4(e){return["desktop","tablet","phone"].some(o=>{let t=Bx(e.widthFit?.[o]);return t==="fixed"||t==="fill"||un(e.minWidth?.[o])!==void 0})}function Mx(e){let o={};for(let t of Vce){let r=e[t],a=e[B4(t)],n=e[F4(t)];(r!==void 0||a!==void 0||n!==void 0)&&(o[t]={desktop:r,tablet:a,phone:n});let s=Nx(t),i={desktop:e[s],tablet:e[B4(s)],phone:e[F4(s)]};(i.desktop!==void 0||i.tablet!==void 0||i.phone!==void 0)&&((o.units??={})[t]=i)}return o}var Y4={label:"Button",defaultProps:{label:"",href:"#",variant:"primary",align:"left",contained:!0}};import{parseHexColor as ide}from"efficient-shell/format";import{convertLength as lde}from"efficient-easel/screen/lib/content/length-units";var ea=(e,o,t,r)=>o===t?e:lde(e,o,t,r,{min:0,max:200,step:4}),Ns={textFit:"line",textFitPhone:"wrap"},Ds={...j,[Pt]:""},{label:bKe,href:SKe,...cde}=Y4.defaultProps,Lo=cde,Ms={buttonFillOpacity:0,buttonBorder:{width:0},buttonPaddingTop:0,buttonPaddingRight:0,buttonPaddingBottom:0,buttonPaddingLeft:0},Q={...ky,sectionAccent:0},Fl={sectionAccent:-1},re=[...ja,"sectionHeightMode","sectionHeightValue","sectionHeightUnit","sectionHeightModeTablet","sectionHeightValueTablet","sectionHeightUnitTablet","sectionHeightModePhone","sectionHeightValuePhone","sectionHeightUnitPhone","sectionCorners","sectionCornerSides","sectionBorder","sectionBorderTablet","sectionBorderPhone","sectionAccent",$c.unitKey,...uF,...iF,"anchor",Ac,...Ui,Pi,...su,...rx,...nu(["widthFit",...uf,...uf.map(Nx)]),...Object.values(Fe)],Ll="a section width key, ignored since efficient-web-builder 45 (an old key; a section's own width has new keys, lib/content/section-width), so dropping it changes nothing",ee={sectionSurface:"read by nothing in src/ (searched 2026-10-24): a retired theme key that draws nothing today, so dropping it changes nothing",widthMode:Ll,fullWidth:Ll,pageWidth:Ll,backgroundWidth:Ll,contentWidth:Ll,contentMax:Ll},ie=Object.fromEntries(["sectionPaddingLeft","sectionPaddingRight","sectionPaddingLeftTablet","sectionPaddingRightTablet","sectionPaddingLeftPhone","sectionPaddingRightPhone"].map(e=>[e,"needs Box side padding outside its gutter: the old section added it outside its frame, a Box's side padding replaces the gutter. 0 live nodes store it (JJ's read-only export, 2026-10-24)"]));function le(e,o){let t=Y(e.sectionPaddingTop)??0,r=Y(e.sectionPaddingBottom)??0,a=Y(e.sectionPaddingTopTablet),n=Y(e.sectionPaddingBottomTablet),s=_e(e.sectionPaddingUnit),i=_e(e.sectionPaddingUnitTablet),l=_e(e.sectionPaddingUnitPhone),d=(u,p,m,h)=>{let I=Y(u);if(I!==void 0)return I+ea(h,"px",l,"mobile");let w=p===void 0?{n:m,unit:s}:{n:p,unit:i};return ea(w.n,w.unit,l,"mobile")+ea(h,"px",l,"mobile")},f=(u,p,m,h,I)=>p!==void 0?{[u]:p+ea(I??h,"px",i,"tablet")}:I===void 0?{}:{[u]:ea(m,s,i,"tablet")+ea(I,"px",i,"tablet")};return{sectionPaddingTop:t+ea(o.top,"px",s,"desktop"),sectionPaddingBottom:r+ea(o.bottom,"px",s,"desktop"),...f("sectionPaddingTopTablet",a,t,o.top,o.topTablet),...f("sectionPaddingBottomTablet",n,r,o.bottom,o.bottomTablet),sectionPaddingTopPhone:d(e.sectionPaddingTopPhone,a,t,o.topPhone),sectionPaddingBottomPhone:d(e.sectionPaddingBottomPhone,n,r,o.bottomPhone)}}var ge=e=>[...["sectionPaddingTop","sectionPaddingBottom","sectionPaddingTopTablet","sectionPaddingBottomTablet","sectionPaddingTopPhone","sectionPaddingBottomPhone"].map(o=>[o,o,(t,r)=>le(r,typeof e=="function"?e(r):e)[o]]),["sectionPaddingUnit","sectionPaddingUnit"],["sectionPaddingUnitTablet","sectionPaddingUnitTablet"],["sectionPaddingUnitPhone","sectionPaddingUnitPhone"]];function Qt(e,o){let t={};for(let[a,n]of OS)e[a]!==void 0&&(t[n]=e[a]);let r=sd(e,wl(o));return{...t,sectionPaddingTop:r.top,sectionPaddingBottom:r.bottom}}var mn=e=>[...OS.map(([o,t])=>[o,t,(r,a)=>Qt(a,e)[t]]),["sectionPaddingTop","sectionPaddingTop",(o,t)=>Qt(t,e).sectionPaddingTop],["sectionPaddingBottom","sectionPaddingBottom",(o,t)=>Qt(t,e).sectionPaddingBottom]],dde={kind:"heading-case-upper",styles:["heading-1","heading-2","heading-3"]},wKe=e=>o=>ro(o.props[e])?[dde]:[],Ie=(e,o)=>({kind:"text",key:e,role:"eyebrow",props:j,...o?{style:o}:{}}),Bl=e=>({kind:"group",name:"Chip",props:{...N,...la("main"),...Qo(6,14)},parts:[Ie(e,{color:"background",...U("label",12),weight:600,letterSpacing:.16})]}),q4=e=>e.background!=="transparent",fde=(e,o)=>{let[t,r]=[e,o].map(a=>typeof a=="string"?a.trim():"");return t?r?`[${t} ]{color=text}${r}`:`[${t}]{color=text}`:r},mf={align:"right",alignPhone:"left"},pde=(e,o,t)=>{let r=a=>fde(a[e],a[o]);return{kind:"block",type:"Text",when:(a,n)=>n!==void 0&&r(n)!=="",box:[[e,"text",(a,n)=>r(n)],[o,"text",(a,n)=>r(n)]],props:t}},hf=(e,o,t,r={})=>pde(e,o,{...Ds,...mf,...r,_partStyles:{text:{...ht,color:"labels",...t,case:ht.case,...mf}}}),Nl=(e,o)=>typeof e=="number"&&Number.isInteger(e)&&e>=0?e:Ls(o)?.selected??0,X4="var(--site-surface-2)",Hx=(e,o)=>Ls(o)?.themes[Nl(e.sectionAccent??0,o)],Ct=(e,o)=>(t,r)=>{if(!o?.(t,r))return la(e);let a=Hx(t,r)?.[e];return a?{fillColor:a}:{}},Wx=(e,o)=>hn(e,o)>=0,Z4=e=>e.startsWith("#")&&ide(e)!==null,$x=(e,o,t)=>{let r=e?.trim();if(r&&Z4(r))return{fillColor:r};let a=Mb(r);if(a)return la(a);let n=r===X4?Hx(o,t):void 0;return n?{fillColor:Zp(n)}:{}},Ux=e=>{let o=e?.trim();return!o||o==="transparent"||o===ot||Mb(o)||o===X4||Z4(o)?void 0:"it paints a colour that no Box Fill can hold"},hn=(e,o)=>{let t=Ls(o)?.themes;return t&&q4(e)?N_(t,Nl(e.sectionAccent,o)):-1},xn=(e,o,t)=>{let r=hn(o,t);return r>=0?r:e},Dl=(e,o)=>{let t=Ls(o)?.themes,r=t?D_(t,Nl(e,o)):-1;return r>=0?r:e},Hs=(e,o)=>{let t=hn(e,o);return t>=0?{sectionAccent:t}:{}},gn=(e,o)=>q4(e.props)&&hn(e.props,o)<0?[{kind:"band-preset",page:Nl(e.props.sectionAccent,o)}]:[],Ml=(e,{view:o="desktop",to:t="px",maxPx:r=1/0}={})=>{let{siteGutter:a,siteGutterUnit:n,siteGutterPhone:s,siteGutterPhoneUnit:i}=e.site??{},l=fa(o),d=(u,p,m)=>{let h=_e(p),I=Xp(u,h,"spacing",m);return I===null?null:ea(I,h,"px",l)},f=o==="desktop"?d(a,n,Wo)??wm(a):d(s,i,zt)??Cm(s)??vm(a,n);return ea(Math.min(r,f),"px",t,l)},xf=Object.fromEntries(["Top","Right","Bottom","Left","TopPhone","RightPhone","BottomPhone","LeftPhone"].map(e=>[`sectionPadding${e}`,0])),gf=e=>({top:0,right:0,bottom:0,left:0,...e}),Vv=(e,o,t,r=[])=>({kind:"group",name:e,keepEmpty:!0,props:(a,n)=>({...N,...xf,...Ct("surface")(a,n),...typeof t=="function"?t(a,n):t}),box:[[o,"bgImage"],uo.kind,uo.duration,uo.delay],parts:r});import{phoneKey as ik,readHidable as lk}from"efficient-easel/draw";import{isNodeList as Fde,newId as Bde}from"efficient-easel/data";function J4(e){return Math.min(4,Math.max(2,e??3))}var TKe={eyebrow:"Label",title:"Section *heading.*"},ude=Cp.Cards,Q4={label:"Cards",fields:ude,defaultProps:{eyebrow:"",title:"",items:[],columns:3}};var _Ke={eyebrow:"Highlight",title:"Key *features.*"},OKe=()=>[{label:c("Feature label one")},{label:c("Feature label two")},{label:c("Feature label three")},{label:c("Feature label four")},{label:c("Feature label five")},{label:c("Feature label six")}],e5={label:"Key Features",defaultProps:{eyebrow:"",title:"",items:[],columns:3}};var Yv="cardPlace";function LKe(e){return e[Yv]==="top-line"?"top-line":""}var FKe="absolute left-5 top-0 z-10 -translate-y-1/2 bg-bg px-2",BKe="data-sf-top-line",mde=new Set(["Cards",Oo]);function NKe(e){return typeof e=="string"&&mde.has(e)}var hde=e=>{if(!e||typeof e!="object")return!1;let o=e,t=n=>typeof n=="number"&&n>0,r=o.width,a=n=>typeof o[n]=="number"?t(o[n]):t(r);return a("top")&&!a("right")&&!a("bottom")&&!a("left")};function DKe(e,o,t){return!t||!o?.linesBetween||o.index!==0?e:hde(e)?{...e,top:0}:e}var MKe="outsideFramedCard";var zx={sectionBorder:{top:0,right:1,bottom:1,left:0},...la("background")},xde={gap:0,gapPhone:0,sectionBorder:{top:1,right:0,bottom:0,left:1},shadow:!0},Ws=e=>({direction:"row",columns:e,columnsTablet:e,...xde}),o5=(e={})=>Ze(gx,{...j,tag:"p",[Yv]:"top-line"},e,!0),Hl=(e=Bn)=>{let o=gi(e);return{...o,props:{...zx,...o.props},slots:{[De]:[...o.slots?.[De]??[],o5()]}}},qv=(e=!1)=>{let o=Ii(e);return{...o,props:{...zx,...o.props}}},gde={name:"name",time:"time",note:"note",price:"price"},Ide={textStyle:"body-1",...U("body",16),weight:500,lineHeight:1.5},yde={...ht,...U("label",12),letterSpacing:.18,lineHeight:1.5},bde={textStyle:"body-1",...U("body",14),lineHeight:1.6},Sde={textStyle:"body-1",fontRole:"heading",...U("headingSmall",20),weight:500,color:"accent",lineHeight:1.5},wde={...U("label",11),letterSpacing:.25},Cde={gap:16,gapPhone:16,sectionBorder:{top:0,right:0,bottom:0,left:0},shadow:!1},Gx=e=>({direction:"row",columns:e,...Cde}),Xv=[...new Set([...Object.keys(Ws(1)),...Object.keys(Gx(1))])],Zv=()=>{let e=gde,o={tag:"p",widthFit:"fill"};return{type:V,props:{...N,name:"Card",justify:"between",gap:16,gapPhone:16,...Qo(24),sectionBorder:{top:1,right:1,bottom:1,left:1},...la("surface"),shadow:!0},slots:{[De]:[o5(wde),{type:V,props:{...N,name:"Words",gap:8,gapPhone:8},slots:{[De]:[Ze(e.name,{...j,...o},Ide),Ze(e.time,{...se,...o},yde),Ze(e.note,{...se,...o},bde)]}},Ze(e.price,{...j,...o},Sde)]}}};import{tabletKey as n5}from"efficient-easel/draw";import{VIEW_DESKTOP_MIN as jx}from"efficient-easel/draw";var Kx=Jo,Jv=jx,t5=960,r5=Jo,a5={min:Kx,max:1600,step:10},Vx="stackBelow";function qKe(e){if(!(typeof e!="number"||!Number.isFinite(e))&&!(e<a5.min||e>a5.max))return Math.round(e)}var vde=e=>`sf-stack-${e}`,kde=e=>`sf-stack-${e}-gutter`,Tde=e=>`sf-stack-${e}-outer`,Wl=e=>`${e-.02}px`;function XKe(e,o={}){let t=o.gutter!==!1,r=`.${vde(e)}`,a=`.${kde(e)}`,n=`.${Tde(e)}`,s=[];if(e>Kx){let i=`${r}>.sf-block-size,${r}>[data-easel-block]>[data-sf-part-host]>.sf-block-size`,l=Math.min(e,jx);s.push(`@media (min-width:${Kx}px) and (max-width:${Wl(e)}){${r}${r}{flex-direction:column}.sf-gap-overlap${r}{--sf-gap-overlap-eff:calc(var(--sf-gap-overlap) / 2)}${i}{width:min(var(--sf-bw-p,100%),100%);flex-grow:0}}`,`@media (min-width:${Kx}px) and (max-width:${Wl(l)}){.sf-gap-zone${r}{gap:var(--sf-gap-len-tablet,var(--sf-gap-len-phone,calc(var(--sf-gap-len) / 2)))}}`),e>jx&&s.push(`@media (min-width:${jx}px) and (max-width:${Wl(e)}){.sf-gap-zone${r}{gap:var(--sf-gap-len-phone,calc(var(--sf-gap-len) / 2))}}`)}return t&&s.push(`@media (max-width:${Wl(e)}){${a}${a}{padding-inline:${Gr.frame}}}`),t&&e<t5&&s.push(`@media (min-width:${e}px) and (max-width:${Wl(t5)}){${a}${a}{padding-inline:${Rt}}}`),e>r5&&s.push(`@media (min-width:${r5}px) and (max-width:${Wl(e)}){`+["top","bottom","left","right"].map(i=>`.sf-pad-${i}-phone:has(>${n}),.sf-pad-${i}-phone${n}{padding-${i}:var(--sf-pad-${i[0]}-phone)!important}`).join("")+"}"),s.join("")}function $s(e){if(e==="ProductGrid")return"shelf";let o=$(ur,e)?.headStyle;return o==="editorial"||o==="simple"||o==="essay"?o:"standard"}var If={standard:64,editorial:60,simple:36,essay:28,shelf:20},Pde={SectionHeader:"accent",FAQ:"accent",FitmentFinder:"accent",FitmentTable:"accent",SpecTable:"accent",RelatedProducts:"accent",Collections:"accentNum"};function Ede(e){if(e==="SectionHeader")return{num:"num",title:"title",description:"description",link:!0};let o=$(ur,e);if(!o)throw new Error(`section-head-looks: "${e}" has no head row in SPLITTABLE_SECTIONS`);return{num:o.num,title:o.title,description:o.description,link:o.headRows.includes("linkText")&&o.headRows.includes("linkHref")}}function qx(e,o,t){let r=`editorial:${e}|${o}|${t}`,a=Yx.get(r);if(a)return a;let n=c5({num:e,title:o,description:t,link:!1});return Yx.set(r,n),n}var vt={[Vx]:Jv},ek={top:0,right:0,bottom:1,left:0},kt=(e,o,t,r)=>({sizeToken:{step:e,px:r,fluid:{minPx:o,vw:t}}}),Xx=(e,o,t={})=>Ie(e,{...U("label",o),...t}),Zx=(e,o)=>({kind:"text",key:e,role:"heading",props:j,style:{textStyle:"heading-2",...o}}),ok=Jo,_de=Jv,tk=(e,o,t,r,a={})=>({kind:"text",key:e,props:{...se,align:"right",alignPhone:"left",...t?{maxWidth:t,maxWidthPhone:ok}:{},...a},style:{textStyle:"body-5",fontRole:"heading",alignPhone:"left",...U("body",o),...r,...a}}),l5={...Lo,align:"right",alignPhone:"left",...Ms},Qv=e=>({kind:"button",key:"linkText",href:"linkHref",variant:"ghost",props:l5,style:{...pr(e),color:"labels"}}),s5=(e,o,t)=>{let r=t.role==="heading"?{tag:"h2"}:{};return{kind:"block",type:"Text",when:a=>a[e]===void 0,props:{...j,...r,...t.props,text:o,_partStyles:{text:{...t.role==="eyebrow"?Ode(ca()):{},...t.style}}}}},Ode=e=>e._partStyles.text??{},$l={widthFitPhone:"fill"};function rk(e){if(e.kind!=="group")return e;if(e.name==="Words"){let o=e.props;return{...e,props:typeof o=="function"?(t,r)=>({...o(t,r),...$l}):{...o,...$l}}}return{...e,parts:e.parts.map(rk)}}function Ade(e,o){let t=$(Pde,e),r=t==="accent",a=Xx(o.num,14,{color:r?"accent":"labels"}),n=t==="accentNum"&&a.kind==="text"?{...a,mark:"accentLead"}:a,s=Zx(o.title,r?{...kt("headingMedium",36,5,64),case:"upper",lineHeight:.95,letterSpacing:-.025}:{...U("headingMedium",56,36),case:"none",lineHeight:1,letterSpacing:-.03}),i=e==="Collections";return{kind:"group",name:"Header",props:{...N,direction:"row",align:"end",justify:"between",gap:40,gapPhone:12,share:"content",sectionBorder:ek,sectionPaddingBottom:24,sectionPaddingBottomPhone:20},parts:[{kind:"group",name:"Title",props:{...N,...$l,direction:"row",align:"end",gap:40,gapPhone:12,share:"content"},parts:[{kind:"group",name:"Number",props:{...N,...$l,align:"start",gap:12},parts:[{kind:"image",key:"logoSrc",alt:"logoAlt",props:{aspect:"auto",contained:!1}},n,...i?[s5(o.num,"==01== / Collections",n)]:[]]},{kind:"group",name:"Heading",props:{...N,...$l},parts:[s,...i?[s5(o.title,`Three ranges,
|
|
323
|
-
one standard.`,s)]:[]]}]},{kind:"group",name:"Words",props:{...N,...$l,gap:12,maxWidth:340,maxWidthPhone:ok},parts:[...o.description?[tk(o.description,14,void 0,{lineHeight:1.5})]:[],...o.link?[Qv(14)]:[],...i?[{kind:"block",type:"ButtonBlock",props:{...l5,variant:"ghost",label:"View all",href:"/wheels",_partStyles:{label:Qv(14).style}}}]:[]]}]}}function Jx(e,o){return e.kind==="text"?o.includes(e.key)?{...e,mark:"accentItalic"}:e:e.kind==="group"?{...e,parts:e.parts.map(t=>Jx(t,o))}:e}function c5(e){let o=Zx(e.title,{...kt("headingMedium",40,5.5,80),case:"upper",weight:500,lineHeight:1,letterSpacing:-.03});return{kind:"group",name:"Header",props:{...N,direction:"row",align:"end",justify:"between",gap:40,gapPhone:14,share:"content",sectionBorder:ek,sectionPaddingBottom:32,...vt},parts:[{kind:"group",name:"Title",props:{...N,direction:"row",align:"end",gap:40,gapPhone:14,share:"content",...vt},parts:[{kind:"group",name:"Number",props:{...N,sectionPaddingBottom:8},parts:[{...Xx(e.num,13),props:{...j,...Ns}}]},Jx(o,[e.title])]},{kind:"group",name:"Words",props:{...N,sectionPaddingBottom:4,maxWidth:360,[n5("maxWidth")]:_de,maxWidthPhone:ok},parts:e.description?[tk(e.description,14,void 0,{lineHeight:1.5},{[n5("align")]:"left"})]:[]}]}}function i5(e,o){return{kind:"group",name:"Header",props:{...N,gap:16,gapPhone:16},parts:[Xx(e.num,13),Zx(e.title,o)]}}var d5=[["para",{...pr(13),weight:400,lineHeight:1,letterSpacing:.22}],["sm",{...U("headingMedium",40,28),case:"none",weight:500,lineHeight:1,letterSpacing:-.03}],["md",{...U("headingMedium",48,32),case:"none",weight:500,lineHeight:1,letterSpacing:-.03}],["lg",{...U("headingMedium",56,36),case:"none",weight:500,lineHeight:1,letterSpacing:-.03}],["xl",{...U("headingMedium",64,40),case:"none",weight:500,lineHeight:1,letterSpacing:-.03}]],Rde=e=>d5.some(([o])=>o===e.titleSize)?e.titleSize:"lg";function Lde(e){return{kind:"group",name:"Header",props:{...N,direction:"row",align:"center",justify:"between",gap:16,share:"content",stickTop:!0,sectionBorder:ek,sectionPaddingTop:12,sectionPaddingBottom:12},parts:[{kind:"group",name:"Title",props:{...N,direction:"row",align:"end",gap:24,share:"content"},parts:[Xx(e.num,13,{color:"labels",letterSpacing:.22,lineHeight:1}),...d5.map(([o,t])=>({...Zx(e.title,t),when:r=>Rde(r)===o}))]},{kind:"group",name:"Words",props:{...N,direction:"row",align:"center",justify:"end",gap:20,share:"content"},parts:[...e.description?[tk(e.description,13,340,{lineHeight:1.4})]:[],...e.link?[Qv(13)]:[]]}]}}function Qx(e){return $s(e)==="shelf"?{titleSize:"the Header Box's title Text part: its size, as the old shelf title drew it (lib/document/blocks/general/section-head-looks)"}:{}}var Yx=new Map,ak={...U("headingMedium",44,32),case:"upper",weight:500,lineHeight:1,letterSpacing:-.02};function er(e){let o=Yx.get(e);if(o)return o;let t=Ede(e),r=$s(e),a=r==="editorial"?c5(t):r==="simple"?i5(t,ak):r==="essay"?i5(t,{...U("headingMedium",38,28,"headingSmall"),case:"upper",lineHeight:1,letterSpacing:-.02}):r==="shelf"?Lde(t):Ade(e,t);return Yx.set(e,a),a}var Us={Series:"transparent",StatsParagraph:"transparent",TimelineTrack:ot,Stats:void 0};var yf=(e,o,t,r)=>({sectionBorder:{top:e,right:o,bottom:t,left:r}}),C5=e=>o=>J4(Y(o.columns)??Y(e.columns)),Nde="inline is the head the row draws; an own-box node is skipped (`skip`)",Dde={kind:"text",key:"title",role:"heading",props:j,style:{textStyle:"heading-3",...ak}},f5={top:120,bottom:120,topPhone:80,bottomPhone:80,topTablet:80,bottomTablet:80},og=e=>{let o=Vr(typeof e.background=="string"?e.background:void 0,Us.Series);return o&&o!=="transparent"?o:void 0},eg=e=>og(e)===ot,Mde={...N,justify:"between",gap:16,gapPhone:16,sectionHeightMode:"fixed",sectionHeightValue:340,sectionHeightUnit:"px",sectionPaddingTop:36,sectionPaddingRight:28,sectionPaddingBottom:32,sectionPaddingLeft:28,sectionPaddingTopPhone:36,sectionPaddingRightPhone:28,sectionPaddingBottomPhone:32,sectionPaddingLeftPhone:28},p5={...N,direction:"row",justify:"between",gap:12,share:"content",phoneRow:2,[ik("share")]:"content"},Hde=e=>{let o=og(e)?1:2;return{...N,direction:"row",columns:4,columnsTablet:2,gap:o,gapPhone:o}},nk={...pr(12),letterSpacing:.22,lineHeight:1.5},u5=e=>ro(e.viewLabel)&&!lk(e.viewLabel).hidden,or=e=>lk(e).text?.trim?.()??"",tg=e=>Object.fromEntries(Object.entries(e).filter(([,o])=>be(o)!==void 0)),ck=e=>e.map(([o,t,r])=>({key:o,label:t,...r?{multiline:!0}:{}})),Wde=ck([["num","Number"],["since","Corner note"],["title","Card title"],["body","Card body",!0],["count","Count"],["countLabel","Count word"]]),$de=ck([["label","Label"],["value","Value"],["body","Card body",!0]]),bf=(e,o,t,r,a,{reads:n=["cards"],keep:s=[]}={})=>({kind:"group",name:e,props:o,parts:[{kind:"core",as:Oo,headless:!0,keep:s,derive:{reads:n,props:i=>qp(r(i),t)},slots:(i,l)=>({[Ue]:[a(i,l)]})}]}),v5=e=>Array.isArray(e.cards)?e.cards:[],m5={top:76,bottom:76,topPhone:76,bottomPhone:76},k5=e=>(Array.isArray(e.items)?e.items:[]).map(o=>tg({title:or(o?.label),href:typeof o?.href=="string"?o.href.trim():""})).filter(o=>o.title!==void 0).map((o,t)=>({key:Ec(Ly(o),t),...o})),Ude=e=>k5(e).some(o=>be(o.href)!==void 0),T5=[{key:Py.label,label:"Feature label"},{key:Py.href,label:"Link",kind:"link"}],h5=e=>e2(e.eyebrowLook,"KeyFeatures")==="filled",zde={name:"Key Features",boxProps:(e,o)=>({...Q,direction:"column",gap:44,gapPhone:32,...Ct("surface")(e,o),...yf(1,0,1,0),...le(e,m5)}),box:[...re,...ge(m5)],parts:[{kind:"group",name:"Heading",props:{...N,direction:"row",align:"end",gap:20,wrap:!0,share:"content",phoneRow:2,[ik("share")]:"content"},parts:[{...Bl("eyebrow"),when:h5},{...Ie("eyebrow"),when:e=>!h5(e)},Dde]},bf("Cards",e=>({...N,...Ws(C5(e5.defaultProps)(e))}),T5,k5,e=>qv(Ude(e)),{reads:["items"]})],drop:{...ee,...ie,columns:'Box "Cards": its Columns and tablet Columns',eyebrowLook:"the Filled look is a Box in the main colour round the eyebrow Text; the plain look is the eyebrow Text"}},x5={top:72,bottom:72,topPhone:72,bottomPhone:72},g5=(e,o)=>({...zx,...Ct("background")(e,o)}),I5=e=>{let o=C5(Q4.defaultProps)(e);return{...N,...Ws(o)}},Gde=ck([["title","Card title"],["body","Card body",!0]]),P5=e=>(Array.isArray(e.items)?e.items:[]).map((o,t)=>({key:typeof o?.key=="string"&&o.key?o.key:Ec(Ly(o),t),title:or(o?.title),body:or(o?.body)})),E5=e=>{let o={},t={};for(let[r,a]of Object.entries(e.props??{}))r!=="id"&&(Fde(a)?t[r]=a.map(E5):o[r]=a);return{type:String(e.type),props:o,...Object.keys(t).length?{slots:t}:{}}},y5=(e,o)=>{let t=sk(e)?qv(jde(e)):Hl(),r=Array.isArray(e.template)?e.template.map(E5):[t],[a]=r;return r.length===1&&a.type===V?{...a,props:{...g5(e,o),...a.props}}:{type:V,props:{...N,...g5(e,o),name:"Card"},slots:{[De]:r}}},sk=e=>e.cardStyle==="label-only",_5=e=>P5(e).map((o,t)=>{let r=e.items[t]?.href;return tg({key:o.key,title:o.title,href:typeof r=="string"?r.trim():""})}),jde=e=>_5(e).some(o=>be(o.href)!==void 0),b5=e=>Array.isArray(e.template)&&e.template.length===0,S5=["dataSource","dataSourceOptions","highlightedCard","highlightBadge"];function O5(){let e=t=>({key:Bde("card"),title:c(t),body:c("A short line about this card.")}),o=[e("Card title one"),e("Card title two"),e("Card title three")];return{eyebrow:c("Label"),title:c("Section *heading.*"),items:o}}var Kde={name:"Cards",ownBoxConverts:!0,boxProps:(e,o)=>({...Q,direction:"column",gap:36,gapPhone:28,...Ct("surface")(e,o),...le(e,x5)}),box:[...re,...ge(x5)],parts:[{...er("Cards"),when:e=>!zv(e)},{...bf("Cards",I5,Gde,P5,y5,{reads:["items"],keep:S5}),when:e=>!b5(e)&&!sk(e)},{...bf("Cards",I5,T5,_5,y5,{reads:["items"],keep:S5}),when:e=>!b5(e)&&sk(e)}],drop:{...ee,...ie,columns:'Box "Cards": its Columns and tablet Columns',cardStyle:"the Card list's template: the Cards card, or under Label only the Label only card (a cell Box, a Mark Box, the label Text)",template:"the Card list's template (the card Box takes the old cell's ground and lines)",headPlacement:"an own-box node lands without its head; inline is the head the row draws",eyebrowLook:"needs the eyebrow's Filled look on a Text block: Plain is the eyebrow start look the row draws; 2 of 62 live nodes store it (the stored-node export, 2026-10-24)"}},Vde={name:"Recurring Columns",boxProps:(e,o)=>({...Q,direction:"column",gap:60,gapPhone:60,...yf(0,0,1,0),...vt,...eg(e)?Hs(e,o):{},...$x(og(e),e,o),...le(e,f5)}),box:[...re.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,t)=>eg(o)?xn(e,o,t):e],...ge(f5)],skip:e=>Ux(og(e)),site:(e,o)=>eg(e.props)?gn(e,o):[],parts:[er("Series"),bf("Cards",Hde,Wde,e=>v5(e).map(o=>tg({num:or(o.num),since:or(o.since),title:or(o.title),body:or(o.desc),count:or(o.entries),countLabel:or(o.entriesLabel)})),(e,o)=>({type:V,props:{...Mde,...Ct("background",(t,r)=>eg(t)&&Wx(t,r))(e,o),name:"Card"},slots:{[De]:[{type:V,props:{...N,name:"Words",gap:16,gapPhone:16},slots:{[De]:[{type:V,props:{...p5,name:"Top"},slots:{[De]:[Ze("num",j,U("label",13),!0),Ze("since",j,U("label",13),!0)]}},Ze("title",{...j,tag:"h3"},{textStyle:"heading-3",...U("headingSmall",28),weight:500,case:"upper",lineHeight:1.04,letterSpacing:-.02}),Ze("body",se,{textStyle:"body-5",fontRole:"heading",...U("body",14),lineHeight:1.6})]}},{type:V,props:{...p5,name:"Footer",align:"center",gap:0,gapPhone:0,sectionPaddingTop:16,sectionPaddingTopPhone:16,...yf(1,0,0,0),...u5(e)?{}:{[ci]:["count","countLabel"]}},slots:{[De]:[{type:V,props:{...N,name:"Count",direction:"row",align:"center",gap:12,gapPhone:12,share:"content",phoneRow:2,[ik("share")]:"content"},slots:{[De]:[Ze("count",j,nk),Ze("countLabel",se,nk)]}},...u5(e)?[{type:V,props:{...N,name:"View",maxWidthPhone:266},slots:{[De]:[{type:"Text",props:{...j,text:lk(e.viewLabel).text,_partStyles:{text:{...ca()._partStyles.text,...nk}}}}]}}]:[]]}}]}}))],reads:{viewLabel:"a Text typed once in the card template: the far end of every card's footer",background:"the Box's theme (the band preset) or its Fill"},drop:{...ee,...ie,headPlacement:Nde}},w5={top:60,bottom:60,topPhone:40,bottomPhone:40},Yde={...N,direction:"row",columns:3,gap:40,gapPhone:16},qde={...N,gap:8,gapPhone:8,...Qo(24),...yf(1,1,1,1)},Xde={name:"Document Detail Cards",boxProps:e=>({...Q,direction:"column",gap:40,gapPhone:16,...yf(0,0,1,0),...le(e,w5)}),box:[...re,...ge(w5)],parts:[bf("Cards",Yde,$de,e=>v5(e).map(o=>tg({label:or(o.label),value:or(o.value),body:or(o.desc)})),(e,o)=>({type:V,props:{...qde,...Ct("surface")(e,o),name:"Card"},slots:{[De]:[Ze("label",j,{...U("label",12),lineHeight:1.5},!0),{type:V,props:{...N,name:"Words",gap:14,gapPhone:14},slots:{[De]:[Ze("value",j,{textStyle:"heading-3",...U("headingSmall",20),weight:500,letterSpacing:-.015,lineHeight:1.5}),Ze("body",se,{textStyle:"body-5",fontRole:"accent",...U("body",14),italic:!0,lineHeight:1.5})]}}]}}))],drop:{...ee,...ie}},A5={Cards:Kde,KeyFeatures:zde,Series:Vde,DocMetaCards:Xde};import{phoneKey as efe}from"efficient-easel/draw";import{newId as ofe}from"efficient-easel/data";import{phoneKey as Zde}from"efficient-easel/draw";import{isNode as Sf}from"efficient-easel/data";var Ul="cardStyle";function R5(e){let{widthPhone:o,...t}=e;return e.widthFitPhone==="fixed"?{...t,widthFitPhone:"fill"}:{...e}}var rg={table:{items:{gap:0,gapPhone:0,columnsTablet:2},grid:{gap:0},row:{gap:0,[Zde("share")]:"content"},card:{justify:"between",gap:12,gapPhone:12,sectionHeightMode:"fixed",sectionHeightValue:242,sectionHeightUnit:"px",widthFitPhone:"fixed",widthPhone:800,sectionPaddingTop:48,sectionPaddingBottom:48,sectionPaddingLeft:32,sectionPaddingRight:32,sectionBorder:{top:1,right:1,bottom:1,left:1}}},list:{items:{gap:32,gapPhone:32,phoneRow:2},grid:{gap:32,gapPhone:32},row:{gap:32,gapPhone:32},card:{justify:"start",gap:8,gapPhone:8,sectionPaddingTop:20,sectionPaddingBottom:0,sectionBorder:{top:1,right:0,bottom:0,left:0}}}},tr={table:{...rg.table,listCard:R5(rg.table.card)},list:{...rg.list,listCard:R5(rg.list.card)}},F8e=[{label:"Table",value:"table"},{label:"List",value:"list"}],B8e=e=>e==="table"||e==="list",Jde=e=>[...new Set([...Object.keys(tr.table[e]),...Object.keys(tr.list[e])])];function wf(e,o,t){let r={...e};for(let a of Jde(o))delete r[a];return{...r,...structuredClone(tr[t][o])}}function Qde(e,o,t){let r=e.props??{},a=Array.isArray(r[Ue])?r[Ue]:[],n=a.findIndex(l=>Sf(l)&&l.type===t);if(n<0)return e;let s=a[n],i=a.map((l,d)=>d===n?{...s,props:wf(s.props??{},"listCard",o)}:l);return{...e,props:{...r,[Ue]:i}}}function N8e(e,o,t,r){let a=Array.isArray(e[r])?e[r]:[];if(a.some(s=>Sf(s)&&s.type===Oo)){let s=a.map(i=>Sf(i)&&i.type===Oo?Qde(i,o,t):i);return{...wf(e,"items",o),[Ul]:o,[r]:s}}let n=a.map(s=>{if(!Sf(s)||s.type!==t)return s;let i=s.props??{},l=(Array.isArray(i[r])?i[r]:[]).map(d=>Sf(d)&&d.type===t?{...d,props:wf(d.props??{},"card",o)}:d);return{...s,props:{...wf(i,"row",o),[r]:l}}});return{...wf(e,"grid",o),[Ul]:o,[r]:n}}var dk=e=>typeof e=="string"?e.trim():"";function L5(e){let o=`${dk(e.prefix)}${dk(e.value)}`,t=dk(e.suffix);return e.emphasizeAll===!0?o?`==_${o}_==`:"":`${o}${t?`==_${t}_==`:""}`}var N5={textStyle:"heading-2",...kt("headingMedium",56,7,96),weight:500,case:"none",lineHeight:.9,letterSpacing:-.04},fk={kind:"block",type:"Text",props:{...Ds,_partStyles:{text:N5}},box:[["value","text",(e,o)=>L5(o)]],when:(e,o)=>o!==void 0&&typeof o.value=="string"&&L5(o)!==""},F5=e=>ro(e?.supSuffix),D5={textStyle:"body-1",fontRole:"heading",...U("body",16),lineHeight:1.5,letterSpacing:-.01},M5={color:"labels",...U("label",12),lineHeight:1.5,letterSpacing:.24},H5={...N,direction:"row",align:"start",gap:32,gapPhone:32,share:"content",phoneRow:2,[efe("share")]:"content"},W5={textStyle:"body-5",...U("label",13),weight:500,color:"accent",letterSpacing:.18,lineHeight:1,padding:12},pk=e=>Vr(e.background,Us.StatsParagraph),Cf=e=>pk(e)===ot,ag=e=>({...e,sectionAccent:e.sectionAccent??0}),tfe=(e,o)=>Cf(e)?Ct("background",(t,r)=>Wx(ag(t),r))(e,o):{},rfe={name:"Stats with Text",skip:e=>pk(e)&&pk(e)!=="transparent"&&!Cf(e)?"it paints a colour of its own, not the section band":void 0,boxProps:(e,o)=>({...Q,direction:"column",gap:60,gapPhone:60,sectionBorder:{bottom:1},...vt,...Qt(e,"StatsParagraph"),...Cf(e)?Hs(ag(e),o):{}}),box:[...re.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,t)=>Cf(o)?xn(e,ag(o),t):e],...mn("StatsParagraph")],site:(e,o)=>Cf(e.props)?gn({props:ag(e.props)},o):[],parts:[er("StatsParagraph"),{kind:"group",name:"Stats",props:{...N,...tr.table.grid,[Ul]:"table"},parts:[{kind:"list",key:"stats",name:"Stat",perRow:()=>4,rowName:"Stats row",rowProps:{...N,direction:"row",share:"equal",phoneRow:2,...tr.table.row},props:(e,o)=>({...N,...tr.table.card,...tfe(e,o)}),parts:[{...fk,when:(e,o)=>!F5(o)&&fk.when(e,o)},{kind:"group",name:"Figure",props:H5,when:(e,o)=>F5(o),parts:[fk,{kind:"text",key:"supSuffix",props:j,style:W5}]},{kind:"group",name:"Words",props:{...N,gap:4,gapPhone:4},parts:[{kind:"text",key:"label",props:j,style:D5},Ie("sub",M5)]}]}]}],drop:{...ee,...ie,background:"the band is the Box's theme: the site's band preset (`sectionAccent`), or a declared band-preset write; none paints nothing, and any other colour is skipped",headPlacement:"needs a row per head placement: an own-box Stats with Text draws no head (its words sit in a Section Header above it), the row always draws the head"}},afe=new Set(["value","label",Pt]),B5={top:48,bottom:48,topPhone:48,bottomPhone:48},nfe=e=>{let o=Vr(typeof e.background=="string"?e.background:void 0,Us.Stats);return!!o&&o!=="transparent"},sfe={name:"Stats",skip:e=>nfe(e)?"it paints a colour inside its padding, and a Box paints its Fill over the padding too":ro(e.dataSource)?"its figures come from a source":Array.isArray(e.items)&&e.items.some(o=>ro(o?.[Pt]))?"a figure names a count, and each figure Text here is typed by hand until it is linked":Array.isArray(e.items)&&e.items.some(o=>Object.keys(o??{}).some(t=>!afe.has(t)))?"a figure has a key no part here reads":Object.keys(e._partStyles??{}).some(o=>o!=="heading")?"a figure or a name has a style of its own, kept by kind, which no part here reads":void 0,boxProps:e=>({...Q,direction:"column",gap:24,gapPhone:24,...le(e,B5)}),box:[...re,...ge(B5)],parts:[Ie("heading",{color:"labels",...U("label",12),letterSpacing:.2}),{kind:"group",name:"Stats",props:{...N,...tr.list.grid,[Ul]:"list"},parts:[{kind:"list",key:"items",name:"Stat",perRow:e=>Y(e.columns)??4,rowName:"Stats row",rowProps:{...N,direction:"row",share:"equal",phoneRow:2,...tr.list.row},props:{...N,...tr.list.card},parts:[{kind:"text",key:"value",props:Ds,style:{textStyle:"heading-2",...U("headingMedium",48,36),weight:500,case:"none",lineHeight:1,letterSpacing:-.03}},Ie("label",{color:"labels",...U("label",12),letterSpacing:.2})]}]}],drop:{...ee,...ie,columns:"the rows of N: one row Box per `columns` figures, which the Box draws",dataSource:"an empty source is typed figures, what the row draws; a sourced node is skipped (0 Hartes nodes)",dataSourceOptions:"read only with a source; a sourced node is skipped (0 Hartes nodes)",contained:"the Box draws the site frame now; each figure fills the Box's column",background:"only no fill reaches here: a node that paints a colour is skipped"}},$5={StatsParagraph:rfe,Stats:sfe};function U5(){return{eyebrow:c("By the numbers"),title:c("What we count."),desc:c("A few numbers that matter to us."),stats:[],background:"transparent"}}var ife=[{key:"figure",label:"Figure"},{key:"superscript",label:"Superscript"},{key:"label",label:"Label"},{key:"body",label:"Text",multiline:!0}];function z5(){let e=(o,t,r,a="")=>({key:ofe("stat"),figure:o,superscript:a,label:t,body:r});return[e("28==_yr_==",c("Years in business"),c("Privately held since day one. Same two founders.")),e("==_8_==",c("Operating footprint"),c("Los Angeles \xB7 Fort Lauderdale \xB7 Bewdley \xB7 Drachten \xB7 Mumbai \xB7 Selangor \xB7 Ho Chi Minh \xB7 Sydney. Three continents covered from one California design studio."),c("cities")),e("\u221221==_%_==",c("Avg. weight saving"),c("Versus OEM equivalents, across our forged catalog.")),e("14==_\xD7_==",c("Finish steps"),c("Specified in California to a 14-step protocol. No two sets are identical."))]}function lfe(e){return{type:V,props:{...N,name:"Card",...structuredClone(tr[e].listCard)},slots:{[De]:[{type:V,props:{...H5,name:"Figure"},slots:{[De]:[Ze("figure",Ds,N5),Ze("superscript",j,W5)]}},{type:V,props:{...N,name:"Words",gap:4,gapPhone:4},slots:{[De]:[Ze("label",{...j,widthFit:"fill"},D5),Ze("body",{...j,widthFit:"fill"},M5,!0)]}}]}}}function uk(e,o,t=4){return{type:V,props:{...N,name:"Stats",direction:"row",columns:t,...structuredClone(tr[o].items),[Ul]:o},slots:{[De]:[{type:Oo,props:qp(e,ife),slots:{[Ue]:[lfe(o)]}}]}}}var G5={heading:"Ways to pay"},j5=()=>[{label:"Visa"},{label:"Mastercard"},{label:"Amex"},{label:"PayPal"}],K5=()=>[{text:c("Secure encrypted checkout")},{text:c("30-day returns")}],eVe={label:"Payment Methods",drawsPictures:!0,defaultProps:{heading:"",badges:[],assurances:[],contained:!0}};import{hiddenKeyOf as cfe}from"efficient-easel/screen/lib/content/view-hide";var ng="Flex",dfe={FooterMenu:"MenuBlock",FooterEmailSignup:"EmailFormBlock",FooterSocial:"SocialLogosBlock"},ffe={FooterPayment:"PaymentLogosBlock"},pfe=e=>{let{id:o,...t}=e;return t},V5=e=>typeof e=="string"?e:"",zl={sm:12,md:13,lg:15},Y5={sm:{mark:16,words:zl.sm},md:{mark:20,words:zl.md}},ufe="md",q5=1.5,mfe={size:13,lineHeight:q5,width:280},hfe=14,xfe=40,gfe=e=>e==="center"||e==="right"?e:"left";function Ife(e){let o={},t=[["padTop","sectionPaddingTop"],["padRight","sectionPaddingRight"],["padBottom","sectionPaddingBottom"],["padLeft","sectionPaddingLeft"]];for(let[r,a]of t){let n=Y(e[r]);n&&(o[a]=n)}return o}function yfe(e,o,t){let r=t(e,pfe(o));if(Array.isArray(o.template))return{...r,props:{...r.props,template:X5(o.template,String(r.props.id))}};if(o.template!==void 0)return r;let a=Up(e,r.props);return a===r.props?r:{...r,props:a}}function X5(e,o,t={at:0}){return e.map(r=>{let a={...r.props,id:`${o}~t${t.at++}`};for(let n of Br(r))a[n]=X5(a[n],o,t);return{...r,props:a}})}function Z5(e,o,t){let r=e.props??{},a=t?.(e,o);if(a)return a;let n=$(dfe,e.type)??$(ffe,e.type);if(n)return[yfe(n,r,o)];switch(e.type){case"FooterLogo":{let s=gfe(r.align),i=o("LogoBlock",{...r.reverse?{reverse:r.reverse}:{},...typeof r.customColor=="string"&&r.customColor?{customColor:r.customColor}:{},heightPx:Math.round(MO*((Y(r.widthPct)??100)/100)),href:"/",align:s,...Ife(r)}),l=V5(r.tagline).trim();return l?[i,o("Text",{text:l,tone:"dim",align:s,_partStyles:{text:{...mfe}}})]:[i]}case"FooterText":{let s=typeof r.size=="string"&&He(zl,r.size)?r.size:ufe;return[o("Text",{text:V5(r.text),tone:typeof r.tone=="string"?r.tone:"default",_partStyles:{text:{size:zl[s],lineHeight:q5}}})]}case"FooterDivider":{let s=Y(r.thickness),i=Y(r.lengthPct);return[o("Divider",{...s!==void 0?{thickness:s}:{},...i!==void 0?{lengthPct:i}:{},...r.hideOnMobile===!0?{[cfe("mobile")]:!0}:{}})]}case"FooterGroup":{let s=Array.isArray(r.blocks)?r.blocks:[];return[o(ng,{direction:r.direction==="horizontal"?"row":"column",gap:as("FooterGroup",r.gap),align:r.align==="center"||r.align==="end"||r.align==="stretch"?r.align:"start",...gy,content:s.flatMap(i=>Z5(i,o,t))})]}default:return[]}}function vf(e,o,t,r){let a=e&&Array.isArray(e.props?.blocks)?e.props.blocks:[],n=f=>o(ng,{direction:"row",wrap:!0,share:"equal",gap:xfe,content:f}),s=[],i=[];for(let f of a){let u=Z5(f,o,r);if(f.type==="FooterDivider"){i.length&&s.push(n(i)),i=[],s.push(...u);continue}u.length<=1?i.push(...u):i.push(o(ng,{direction:"column",gap:hfe,align:"stretch",...gy,content:u}))}(i.length||!s.length)&&s.push(n(i));let l=o(ng,{direction:"column",content:[o("LegalLineBlock")]}),d=b1(ze,t,[...s,l]);return{...d,props:{...d.props,...e?.props?.width==="full"?{fullWidth:!0}:{}}}}import{phoneKey as hk,readHidable as bfe}from"efficient-easel/draw";var xk={contained:!1},gk=(e,o)=>({logos:[{kind:"list",key:e,name:"Logo",flat:!0,parts:[{kind:"block",type:"LogoBlock",box:["src",[o,"alt"]],when:(t,r)=>ro(r?.src)||ro(r?.[o])}]}]}),mk=e=>{let o=Y(e.bandPadding)??40;return{top:o,bottom:o,topPhone:o,bottomPhone:o}},Sfe={...Ie("heading",{color:"labels",letterSpacing:.2}),props:{...j,align:"center"}},wfe={name:"Logos",boxProps:e=>({...Q,direction:"column",gap:32,...le(e,mk(e))}),box:[...re,...ge(mk),["bandPadding","sectionPaddingTop",(e,o)=>le(o,mk(o)).sectionPaddingTop]],parts:[Sfe,{kind:"core",keep:["columns","logoHeight","grayscale"],rename:{logosPerRow:"columns"},props:xk,slots:gk("items","alt")}],drop:{...ee,...ie,contained:"the Box draws the site frame now; the Logos block inside it fills the Box's column (`contained: false`)",headPlacement:"a Logos band has no split head (not in SPLITTABLE_SECTIONS): no stored node can hold one, and the converted block stores own-box"}},Cfe={kind:"group",name:"Mark",keepEmpty:!0,parts:[],props:XE(4,"main",{sectionCorners:2})},J5={top:24,bottom:24,topPhone:24,bottomPhone:24},vfe={name:"Payment Methods",boxProps:e=>({...Q,direction:"column",...le(e,J5)}),box:[...re,...ge(J5)],parts:[{kind:"group",name:"Methods",props:{...N,align:"center",gap:20,gapPhone:20,sectionBorder:{top:1,bottom:1},sectionPaddingTop:32,sectionPaddingBottom:32},parts:[{...Ie("heading",{color:"labels"}),props:{...j,align:"center"}},{kind:"core",keep:[],as:"Logos",derive:{reads:[_o,aa],props:e=>ro(e[_o])?{[_o]:e[_o],...e[aa]!==void 0?{[aa]:e[aa]}:{}}:{}},props:{...xk,look:"cards",grayscale:!1},slots:e=>({...gk("badges","label"),...ro(e[_o])?{[Ue]:[_y()]}:{}})},{kind:"group",name:"Reassurance",props:{...N,direction:"row",wrap:!0,justify:"center",gap:24,gapPhone:24,phoneRow:2,[hk("share")]:"content"},parts:[{kind:"list",key:"assurances",name:"Line",of:e=>(Array.isArray(e.assurances)?e.assurances:[]).filter(o=>ro(o?.text)),props:{...N,direction:"row",align:"center",gap:8,gapPhone:8,phoneRow:2,[hk("share")]:"content"},item:e=>bfe(e.text).hidden?{props:{_hidden:!0}}:{},parts:[Cfe,{kind:"text",key:"text",props:{...j,align:"center"},style:{...U("label",13),color:"labels",lineHeight:1.5}}]}]}]}],drop:{...ee,...ie,contained:"the Box draws the site frame now; the Logos block inside it fills the Box's column (`contained: false`)"}},Q5=e=>DE(e.align)??"left",e3=e=>e.size==="md"?"md":"sm",o3=12,t3={name:"Payment logos",boxProps:e=>({...N,direction:"row",wrap:!0,align:"center",justify:Lp[Q5(e)],gap:o3,gapPhone:o3,phoneRow:2,[hk("share")]:"content"}),box:[...ja],parts:[{kind:"text",key:"lead",props:se,styleFrom:e=>({size:zl[e3(e)],lineHeight:1.5})},{kind:"core",keep:[],as:"Logos",derive:{reads:[_o,aa],props:e=>({logoHeight:Y5[e3(e)].mark,align:Q5(e),...ro(e[_o])?{[_o]:e[_o],...e[aa]!==void 0?{[aa]:e[aa]}:{}}:{}})},props:{...xk,look:"marks",grayscale:!1,sectionAccent:Hr},slots:e=>({...gk("methods","label"),...ro(e[_o])?{[Ue]:[_y()]}:{}})}],drop:{size:"read as the wall's Logo height (S 16, M 20) and the lead's size (the footer size table, 12 / 13)",align:"read as the Box's justify and the wall's own Alignment (start is left, end is right)",editing:"the editor's preview flag, never a stored setting: the editor tells every block it is editing"}},r3={Logos:wfe,PaymentBadges:vfe,FooterPayment:t3,PaymentLogosBlock:t3},a3=()=>({heading:iH.heading,items:Ix()}),n3=()=>({heading:G5.heading,badges:j5(),assurances:K5()}),s3=()=>({...ym,methods:[]});import{mixHex as _fe}from"efficient-shell/format";import{MOTION_EASING as kfe,MOTION_TIMING as i3,motionSeconds as l3}from"efficient-shell/format";var Ik="none",sg=[{label:"None",value:"none"},{label:"Marquee",value:"scroll"}];function OVe(e){return xo(sg,Ik,e)}var Gl="_gLoop",kf={field:"loop",is:"scroll"},Tf="left",yk=[{label:"Left",value:"left",cell:"left"},{label:"Right",value:"right",cell:"right"},{label:"Up",value:"up",cell:"top"},{label:"Down",value:"down",cell:"bottom"}],Tfe={left:"storefront-ticker",right:"storefront-ticker-right",up:"storefront-ticker-up",down:"storefront-ticker-down"};function c3(e){return xo(yk,Tf,e)}function d3(e){return e==="up"||e==="down"}function ig(e){return l3("loop","duration",e.loopDuration!=null?e.loopDuration:e.speed)}var AVe=i3.loop.duration.default,Pfe=i3.loop.delay.default;function f3(e){return l3("loop","delay",e.loopDelay)}function RVe(e,o,t=Pfe){return`${Tfe[e]} ${o}s ${kfe.loop}${t?` ${t}s`:""} infinite`}var lg="_gEntrance";var NVe="none",DVe=[{label:"Nothing",value:"none"},{label:"Section above",value:"above"},{label:"Section below",value:"below"}];function cg(e){return e==="above"||e==="below"?e:null}var p3="sf-ticker-join";function Efe(e){return e==="above"?"sf-ticker-join-above":"sf-ticker-join-below"}function u3(e){return`absolute inset-x-0 ${Efe(e)}`}var zs={direction:"row",share:"content",align:"center"},Pf={top:14,bottom:14,topPhone:12,bottomPhone:12},dg={wrap:"nowrap",loop:"scroll",sectionAccent:nO,gap:60,gapPhone:32,separator:"dot",sectionBorder:{top:1,bottom:1}},m3={gap:120,gapPhone:64},fg={...ht,sizeToken:{step:"label",px:14,pxPhone:12},letterSpacing:.25,lineHeight:1.5},h3={textStyle:"heading-3",letterSpacing:.005,case:"upper",lineHeight:1},Ef={top:16,bottom:16,topPhone:12,bottomPhone:12},_f={justify:"between",wrap:"wrap",gap:32,separator:"none"},Of={...ht,letterSpacing:.1,lineHeight:1.5};var x3=e=>e.size==="display",Ofe=(e,o)=>{let t=Hx(e,o),r=e.tone!=="plain"&&t?.text&&t.background?_fe(t.text,t.background,.3):null;return r?{color:r}:{}},Afe=(e,o)=>e.tone!=="plain"&&Wr(e.sectionAccent)===null?Ct("background")(e,o):{},g3=(e,o)=>({kind:"list",key:"items",name:"Item",flat:!0,when:o,parts:[{kind:"text",key:"text",props:se,style:e,styleFrom:Ofe}]}),Rfe={name:"Scrolling Bar",boxProps:(e,o)=>({...Q,...zs,...dg,...WE[xy(e.separator)]===""?m3:{},...le(e,Pf),...Afe(e,o)}),box:[["scrollDirection","scrollDirection",e=>c3(e)],["speed","loopDuration",(e,o)=>o.loopDuration!=null?o.loopDuration:e],["loopDuration","loopDuration",(e,o)=>e??o.speed],["loopDelay","loopDelay",e=>e],["separator","separator",e=>xy(e)],["join","join",e=>cg(e)??void 0],["borders","sectionBorder",e=>e===!1?void 0:{top:1,bottom:1}],...re,["tone","sectionAccent",(e,o)=>Wr(o.sectionAccent)??Hr],...ge(Pf)],parts:[g3(fg,e=>!x3(e)),g3(h3,x3)],drop:{...ee,...ie,size:"each item's Text style: Small \u2192 Body 5, Display \u2192 Heading 3"}},I3=e=>e?.tone==="muted",y3=e=>Jp(Ls(e)),Lfe={name:"Spec Strip",boxProps:(e,o)=>({...Q,...zs,..._f,...e.fill==="none"?{sectionBorder:{top:1}}:{sectionAccent:y3(o)},...le(e,Ef)}),box:[...re.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,t)=>o.fill==="none"?e:y3(t)],...ge(Ef)],parts:[{kind:"list",key:"cells",name:"Cell",flat:!0,parts:[{kind:"text",key:"text",props:j,style:Of,when:(e,o)=>!I3(o)},{kind:"text",key:"text",props:se,style:Of,when:(e,o)=>I3(o)}]}],drop:{...ee,...ie,fill:"None \u2192 no fill and a line on top. Dark band (the default) \u2192 the Box's theme is the site's first dark preset that is not its page (lib/theme `darkBandIndex`; Theme 2 with no site theme): the old fixed `plate-band` colour, as a theme"}},b3={Ticker:Rfe,SpecStrip:Lfe};import{tabletKey as S3}from"efficient-easel/screen/lib/content/view-tiers";var w3={direction:"column",justify:"between",gap:14,gapPhone:14,sectionPaddingLeft:14,sectionPaddingRight:14,[S3("sectionPaddingLeft")]:0,sectionPaddingLeftPhone:0,sectionHeightMode:"fixed",sectionHeightValue:280,sectionHeightUnit:"px",[S3("sectionHeightMode")]:"auto",sectionHeightModePhone:"auto"},bk={name:"Year and title",direction:"column",gap:14,gapPhone:14};import{tabletKey as Ffe}from"efficient-easel/draw";var fo={text:"Button label",href:"#"},kr=e=>e.replace(/\*([^*]+)\*/g,"==$1=="),Ye={eyebrow:"Eyebrow",heading:"Main heading",accent:"Highlight line",body:"Add a sentence or two of supporting copy.",button:"Button label",link:"#",sectionHeading:"Section heading",slideName:"Slide name",boxName:"Box name",headingAccent:"Section heading *here.*",sectionNumber:"Section number",imageCaption:"Image caption",bookingConfirmation:"Thanks \u2014 we'll email you to confirm.",imageMeta:"Image meta",label:"Label",value:"Value",viewAll:"View all",date:"Month DD, YYYY",category:"Category"};var pg={eyebrow:Ye.eyebrow,title:`Section heading
|
|
324
|
-
*Highlight line*`,intro:Ye.body,imageCaption:Ye.imageCaption,imageMeta:Ye.imageMeta,cta:fo.text},C3=()=>[{date:c("Year"),title:c("Milestone title."),body:c("Describe what happened, in a sentence or two.")},{date:c("Year"),title:c("Milestone title."),body:c("Describe what happened, in a sentence or two.")},{date:c("Year"),title:c("Milestone title."),body:c("Describe what happened, in a sentence or two.")}],r7e={label:"Story Timeline",drawsPictures:!0,defaultProps:{layout:"split",eyebrow:"",title:"",intro:"",imageSrc:"",imageCaption:"",imageMeta:"",ctaText:"",ctaHref:"",entries:[],padTop:120,padBottom:120}};var ug={eyebrow:Ye.eyebrow,title:Ye.headingAccent,intro:Ye.body,cta:fo.text},v3=()=>[{date:c("Year"),title:c("Milestone"),blurb:c("A short line about this milestone."),future:!1},{date:c("Year"),title:c("Milestone"),blurb:c("A short line about this milestone."),future:!1},{date:c("Year"),title:c("Milestone"),blurb:c("A short line about this milestone."),future:!1},{date:c("Year \u2192"),title:c("Upcoming"),blurb:c("A milestone still to come."),future:!0}],l7e={label:"Milestone Timeline",defaultProps:{eyebrow:"",title:"",intro:"",entries:[],ctaText:"",ctaHref:"",background:fd,padTop:120,padBottom:120}};var O3={buttonBorder:{width:0}},xg=(e,o,t={})=>({textStyle:"body-5",...U("label",e),letterSpacing:o,lineHeight:1.5,weight:400,...t}),jl=(e,o,t={})=>({...xg(e,o),...ht,...t}),gg=(e,o,t)=>({...e,case:"upper",weight:500,letterSpacing:o,lineHeight:t}),Af=(e,o,t={})=>({textStyle:"body-1",fontRole:"heading",...e,weight:400,case:"none",lineHeight:o,...t}),rr=(e,o,t={})=>({kind:"text",key:e,props:j,style:o,...t}),k3=(e,o)=>o?.future===!0,mg=e=>P2(typeof e?.body=="string"?e.body:""),kk=e=>Vr(typeof e.background=="string"?e.background:void 0,Us.TimelineTrack),Sk=e=>kk(e)===ot?e:{...e,background:"transparent"},Bfe={name:"Milestone Timeline",skip:e=>Ux(kk(e)),boxProps:(e,o)=>{let t=hn(Sk(e),o);return{...Q,direction:"column",gap:60,[Ffe("gap")]:36,gapPhone:36,sectionBorder:{bottom:1},...vt,...Qt(e,"TimelineTrack"),...$x(kk(e),e,o),...t>=0?{sectionAccent:t}:{}}},box:[...re.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,t)=>xn(e,Sk(o),t)],...mn("TimelineTrack")],parts:[rk(Jx(qx("eyebrow","title","intro"),["intro"])),{kind:"group",name:"Track",props:{...N,gap:48,gapPhone:48},parts:[{kind:"group",name:"Years",props:{...N,direction:"row",share:"equal",gap:0,line:!0,...vt},parts:[{kind:"list",key:"entries",name:"Year",props:{...N,...w3},item:e=>({props:e.future===!0?{upcoming:!0}:{}}),parts:[{kind:"group",name:bk.name,props:{...N,...bk},parts:[rr("date",xg(13,.22,{color:"accent"}),{when:(e,o)=>!k3(e,o)}),rr("date",xg(13,.22,{color:"labels"}),{when:k3}),rr("title",{textStyle:"heading-3",...gg(U("headingSmall",20),-.02,1.1)},{role:"heading"})]},rr("blurb",Af(U("body",13),1.55),{props:se,mark:"accentItalic"})]}]},{kind:"group",name:"Button row",props:{...N,sectionBorder:{top:1,right:0,bottom:0,left:0},sectionPaddingTop:32},parts:[{kind:"button",key:"ctaText",href:"ctaHref",variant:"ghost",props:{...Lo,align:"right",...O3},style:jl(13,.3)}]}]}],site:(e,o)=>gn({props:Sk(e.props)},o),drop:{...ee,...ie,background:"another colour is the Box's Fill, or a skip if no Fill holds it; the band is the Box's theme: the site's band preset (`sectionAccent`), or a declared band-preset write (`lib/theme` `bandPresetIndex`)",headPlacement:"needs a row per head placement: an own-box Milestone Timeline draws no head (its words sit in a Section Header above it), the row always draws the head"}},Pk=e=>typeof e.layout=="string"?e.layout:"split",hg=e=>Pk(e)==="split",Tk=e=>!hg(e),A3=e=>Pk(e)==="spine",Nfe=e=>Tk(e)&&!A3(e),T3=(e,o,t,r)=>({kind:"group",name:"Picture",keepEmpty:!0,box:[["imageSrc","bgImage"]],props:{...N,sectionBorder:{top:1,right:1,bottom:1,left:1},darken:75,darkenStyle:"bottom",placement:"bottom-center",sectionHeightMode:"fixed",sectionHeightValue:e,sectionHeightUnit:"px",sectionHeightModePhone:"fixed",sectionHeightValuePhone:o,sectionHeightUnitPhone:"px",...Qo(12,16),...t},when:a=>r(a)&&typeof a.imageSrc=="string"&&a.imageSrc.trim()!=="",parts:[{kind:"group",name:"Caption",props:{...N,direction:"row",justify:"between",align:"center",gap:12,gapPhone:12,share:"content",phoneRow:2},parts:[rr("imageCaption",jl(11,.24,{color:"text"})),rr("imageMeta",jl(11,.24,{color:"accent"}),{props:{...j,align:"right"}})]}]}),P3=(e={})=>({kind:"button",key:"ctaText",href:"ctaHref",variant:"ghost",props:{...Lo,...e,...O3},style:jl(13,.3)}),wk=()=>[rr("title",{textStyle:"heading-3",...gg(U("headingSmall",24,20),-.02,1.5)},{role:"heading",mark:"accentItalic"}),{kind:"block",type:"Text",props:{...j,_partStyles:{text:Af(U("body",17,16),1.6)}},box:[["body","text",(e,o)=>Sc(mg(o)[0]??"")]],when:(e,o)=>mg(o).length>0},{kind:"block",type:"Text",props:{...se,_partStyles:{text:Af(U("body",17,16),1.6,{paragraphSpacing:14})}},box:[["body","text",(e,o)=>Sc(mg(o).slice(1).join(`
|
|
325
|
-
|
|
326
|
-
`))]],when:(e,o)=>mg(o).length>1}],Ck=()=>rr("date",xg(13,.24,{color:"accent"})),vk=(e,o,t={})=>rr(e,o,{...t,props:{...j,...t.props??{},align:"center"}}),E3=kt("headingMedium",40,5,76),_3={sectionBorder:{bottom:1}},Dfe={name:"Story Timeline",skip:e=>Pk(e)==="track"?'display "track": not converted (it draws the Milestone rail; a Track story is not stored anywhere)':void 0,boxProps:e=>hg(e)?{...Q,direction:"row",share:[40],gap:80,gapPhone:48,align:"start",..._3,...Qt(e,"Timeline")}:{...Q,direction:"column",gap:48,gapPhone:48,align:"center",..._3,...Qt(e,"Timeline")},box:[...re,...mn("Timeline")],parts:[{kind:"group",name:"Heading",props:{...N,gap:24,gapPhone:24},when:hg,parts:[rr("eyebrow",jl(12,.3,{color:"accent"}),{role:"eyebrow"}),rr("title",{textStyle:"heading-2",...gg(E3,-.03,.94)},{role:"heading",mark:"accentItalic"}),rr("intro",Af(U("body",14),1.6),{props:{...se,maxWidth:360},mark:"accentItalic"}),T3(667,419,{},()=>!0),P3()]},{kind:"group",name:"Chapters",props:{...N,gap:48,gapPhone:48,line:!1},when:hg,parts:[{kind:"list",key:"entries",name:"Chapter",props:{...N,direction:"row",gap:24,gapPhone:8,share:[12],align:"start"},parts:[Ck(),{kind:"group",name:"Words",props:{...N,gap:14,gapPhone:14},parts:wk()}]}]},{kind:"group",name:"Heading",props:{...N,gap:24,gapPhone:24,align:"center",maxWidth:760,widthFit:"fill"},when:Tk,parts:[vk("eyebrow",jl(12,.3,{color:"accent"}),{role:"eyebrow"}),vk("title",{textStyle:"heading-2",...gg(E3,-.03,.94)},{role:"heading",mark:"accentItalic"}),vk("intro",Af(U("body",14),1.6),{props:{...se,maxWidth:520},mark:"accentItalic"}),P3({align:"center"})]},T3(506,192,{maxWidth:900,widthFit:"fill"},Tk),{kind:"group",name:"Chapters",props:{...N,gap:48,gapPhone:48,line:!0,maxWidth:760,widthFit:"fill",sectionPaddingTop:16},when:A3,parts:[{kind:"list",key:"entries",name:"Chapter",props:{...N,gap:8,gapPhone:8},parts:[Ck(),{kind:"group",name:"Words",props:{...N,gap:14,gapPhone:14},parts:wk()}]}]},{kind:"group",name:"Chapters",props:{...N,gap:56,gapPhone:56,maxWidth:1e3,widthFit:"fill",sectionPaddingTop:16,mirrorCards:"even"},when:Nfe,parts:[{kind:"list",key:"entries",name:"Chapter",props:{...N,direction:"row",gap:64,gapPhone:0,share:[50],align:"start"},parts:[{kind:"group",name:"Entry",props:{...N,gap:8,gapPhone:8},parts:[Ck(),{kind:"group",name:"Words",props:{...N,gap:14,gapPhone:14},parts:wk()}]},{kind:"group",name:"Spacer",props:{...N},keepEmpty:!0,parts:[]}]}]}],drop:{...ee,...ie,layout:"the Box's own arrangement replaces it: Split a row of two Boxes; Spine and Alternating a centred column (Track is skipped)"}},R3=()=>({eyebrow:pg.eyebrow,title:kr(pg.title),intro:pg.intro,ctaText:fo.text,ctaHref:fo.href,entries:C3()}),L3=()=>({eyebrow:ug.eyebrow,title:kr(ug.title),intro:ug.intro,ctaText:fo.text,ctaHref:fo.href,entries:v3()}),F3={TimelineTrack:Bfe,Timeline:Dfe};import{tabletKey as Ufe}from"efficient-easel/draw";import{rootIsDark as Mfe}from"efficient-shell/format";function v7e(e="auto"){return e==="light"?!0:e==="dark"?!1:!Mfe({whenUnset:!0})}function B3(e,o){return Number.isFinite(e)&&Number.isFinite(o)&&!(e===0&&o===0)}function Ek(e){let o=Number.parseFloat(e??"");return Number.isFinite(o)?o:0}var Hfe=["tall","square","wide"],Wfe="tall";function N3(e){return Hfe.includes(String(e??""))?String(e):Wfe}var P7e={sectionNumber:"\xB7 Locations",heading:"Our *locations.*",tagline:"Visit us in person \u2014 find your nearest studio below.",galleryKicker:"Gallery",galleryHint:"Hover to see in colour \xB7 click to jump",mapTheme:"auto"},E7e=[{photo:"",group:"",groupName:"",name:"City name",state:"State",country:"Country",timezone:"GMT \xB7 UTC +0",address:`Address line one
|
|
327
|
-
Address line two`,phone:"+00 000 0000",hours:"Mon\u2013Fri 9:00\u201318:00",lat:0,lng:0,mapsUrl:""},{photo:"",group:"",groupName:"",name:"City name",state:"State",country:"Country",timezone:"GMT \xB7 UTC +0",address:`Address line one
|
|
328
|
-
Address line two`,phone:"+00 000 0000",hours:"Mon\u2013Fri 9:00\u201318:00",lat:0,lng:0,mapsUrl:""}],$fe=/^https?:\/\//i;function _7e(e){let o=(e.mapsUrl??"").trim();return{photo:"",group:"",groupName:"",name:e.name??"",state:e.state??"",country:e.country??"",timezone:"",address:e.address??"",phone:e.phone??"",hours:e.hours??"",lat:Ek(e.lat),lng:Ek(e.lng),mapsUrl:$fe.test(o)?o:""}}function _k(e){let o=String(e??"").split(" \xB7 ");return{state:(o[0]??"").trim(),country:(o[1]??"").trim()}}var O7e="other",A7e={routingNumber:"02 \xB7 Routing",routingTagline:"What can we help you with?",groups:[{id:"fitment",eyebrow:"A \xB7 Label",title:"Group one",copy:"Short description of this routing group.",response:"< 48h"},{id:"trade",eyebrow:"B \xB7 Label",title:"Group two",copy:"Short description of this routing group.",response:"< 24h"},{id:"press",eyebrow:"C \xB7 Label",title:"Group three",copy:"Short description of this routing group.",response:"< 48h"},{id:"order",eyebrow:"D \xB7 Label",title:"Group four",copy:"Short description of this routing group.",response:"< 24h"}],formNumber:"03 \xB7 Message",formHeading:"Send *a note.*",metaLines:["Encrypted in transit","Stored 12 months"],showOther:!0,otherLabel:"Other",otherNoteTitle:"No matching team",otherNoteBody:"Tell us what you need in the message field below \u2014 we'll route it to whoever can help.",buttonText:"Send Message \u2192",consent:"By submitting, you agree to our privacy policy. We never share contact details with third parties.",channels:[{label:"Team one",value:"team-one@email.com",href:"mailto:team-one@email.com",sub:"Detail \xB7 Detail",groupId:"fitment"},{label:"Team two",value:"team-two@email.com",href:"mailto:team-two@email.com",sub:"Detail \xB7 Detail",groupId:"trade"},{label:"Team three",value:"team-three@email.com",href:"mailto:team-three@email.com",sub:"Detail \xB7 Detail",groupId:"press"},{label:"Team four",value:"team-four@email.com",href:"mailto:team-four@email.com",sub:"Detail \xB7 Detail",groupId:"order"},{label:"Phone",value:"+1 (000) 000-0000",href:"tel:+10000000000",sub:"Mon\u2013Fri \xB7 9:00\u201318:00"}]};function D3(e){let o=String(e??"").replace(/[^+\d]/g,"");return o?`tel:${o}`:void 0}var ar=e=>typeof e=="string"?e:e==null?"":String(e),Ak=e=>Array.isArray(e.locations)?e.locations.map(o=>o??{}):[],Kl=e=>ar(e.group),K3=e=>`loc-${e}`,V3=e=>ar(e.state).trim()||_k(ar(e.region)).state,Y3=e=>ar(e.country).trim()||_k(ar(e.region)).country,M3=e=>[V3(e),Y3(e)].filter(Boolean).join(" \xB7 "),zfe=e=>Ak(e).some(o=>ar(o.photo).trim()!==""),Gfe=e=>Ak(e).some(o=>B3(Number(o.lat),Number(o.lng))),jfe=(e,o)=>Ak(e).filter(t=>Kl(t)===Kl(o)).length,Kfe=(e,o)=>jfe(e,o)===1?"wide":N3(e.imageShape),Ok={top:100,bottom:100,topPhone:60,bottomPhone:60},H3=48,Tr=(e,o={})=>({...pr(e),...o}),Rk={top:1,right:1,bottom:1,left:1},Lk={...N,direction:"row",share:"equal",gap:0},Vfe=e=>o=>o>ff(o)?{...N,gap:0}:{...Lk,...o>1?{phoneRow:e}:{}},Fk=!0,Yfe={kind:"group",name:"Gallery",props:{...N,gap:20,...Fk?{_hidden:!0}:{}},when:zfe,parts:[{kind:"group",name:"Gallery head",props:{...N,direction:"row",justify:"between",align:"end",gap:24,share:"content",sectionBorder:{bottom:1},sectionPaddingBottom:16},parts:[Ie("galleryKicker",Tr(12,{color:"accent",letterSpacing:.3})),{kind:"text",key:"galleryHint",props:{...se,align:"right",alignPhone:"left"},style:Tr(11,{letterSpacing:.22,alignPhone:"left"})}]},{kind:"group",name:"Groups",props:{...N,gap:24},parts:[{kind:"list",key:"locations",name:"City picture",props:{...N,darken:85,darkenStyle:"bottom",placement:"bottom-left",sectionBorder:Rk,...Qo(12,12)},item:(e,o,t)=>({props:{...ar(e.photo).trim()?{bgImage:ar(e.photo),hover:"mono"}:{},link:`#${K3(o)}`,boxShape:Kfe(t,e)}}),parts:[{kind:"text",key:"name",props:j,style:Tr(11,{letterSpacing:.22,color:"text"})}],groups:{of:Kl,name:"Group",props:{...N,gap:10},head:e=>({label:Kl(e[0]??{})}),parts:[Ie("label",Tr(11,{color:"accent",letterSpacing:.3}))],itemsName:"Cities",itemsProps:Vfe(2),perRow:ff,rowName:"Row",rowProps:{...Lk,phoneRow:2}}}]}]},qfe={kind:"group",name:"Words",props:{...N,gap:12,gapPhone:12,...Qo(28,28),sectionHeightMode:"fixed",sectionHeightValue:280,sectionHeightUnit:"px",sectionHeightModePhone:"auto"},parts:[{kind:"group",name:"Name row",props:{...N,direction:"row",justify:"between",align:"start",gap:14,share:"content",phoneRow:2,sharePhone:"content",wrapPhone:"wrap",sectionPaddingBottom:6,sectionPaddingBottomPhone:6},parts:[{kind:"group",name:"Name",props:{...N,gap:6,gapPhone:6},parts:[{kind:"text",key:"name",role:"heading",props:j,style:{textStyle:"heading-3",...U("headingSmall",30),case:"upper",weight:500,lineHeight:1,letterSpacing:-.02}},{kind:"block",type:"Text",props:{...j,_partStyles:{text:Tr(12,{color:"accent",letterSpacing:.24,lineHeight:1.5})}},box:["region","state","country"].map(e=>[e,"text",(o,t)=>M3(t)]),when:(e,o)=>M3(o??{})!==""}]},{kind:"group",name:"Time zone",props:{...N,sectionBorder:Rk,...Qo(6,10)},parts:[{kind:"text",key:"timezone",props:{...se,textFit:"line"},style:Tr(12,{letterSpacing:.22,lineHeight:1.5})}]}]},{kind:"text",key:"address",props:se,style:{textStyle:"body-5",fontRole:"heading",...U("body",14),lineHeight:1.5}},{kind:"block",type:"ButtonBlock",props:{...Lo,...Ms,variant:"ghost",arrow:!1,_partStyles:{label:Tr(13,{letterSpacing:.18,color:"text",lineHeight:24/13})}},box:[["phone","label"],["phone","href",e=>D3(ar(e))??"#"]],when:(e,o)=>ar(o?.phone).trim()!==""},{kind:"text",key:"hours",props:se,style:Tr(12,{letterSpacing:.18,lineHeight:1.7})}]},Xfe={kind:"block",type:"LocationMap",props:e=>({mapTheme:typeof e.mapTheme=="string"?e.mapTheme:"auto"}),box:["name","lat","lng","mapsUrl","geocode",...["region","state"].map(e=>[e,"state",(o,t)=>V3(t)]),...["region","country"].map(e=>[e,"country",(o,t)=>Y3(t)])]},Zfe={kind:"group",name:"Map",props:{...N,sectionBorder:{top:1,right:0,bottom:0,left:0}},parts:[Xfe]},Jfe={kind:"list",key:"locations",name:"City",props:(e,o)=>({...N,gap:0,justify:"between",sectionBorder:Rk,jumpHighlight:!0,sectionAccent:hn(e,o)>=0?Nl(e.sectionAccent,o):-1}),item:(e,o)=>({props:{anchor:K3(o)}}),parts:[qfe,Zfe],groups:{of:Kl,name:"Group",props:{...N,gap:20},head:e=>{let o=e[0]??{};return{key:Kl(o),groupName:ar(o.groupName),count:`${e.length} location${e.length===1?"":"s"}`}},parts:[{kind:"group",name:"Group head",props:{...N,direction:"row",justify:"between",align:"end",gap:16,share:"content",sectionBorder:{bottom:1},sectionPaddingBottom:16},when:(e,o)=>ar(o?.key).trim()!=="",parts:[Ie("key",Tr(13,{color:"accent",letterSpacing:.3})),{kind:"text",key:"groupName",role:"heading",props:j,style:{textStyle:"heading-3",...U("headingSmall",24),case:"upper",weight:500,letterSpacing:-.01}},{kind:"text",key:"count",props:se,style:Tr(12,{letterSpacing:.22})}]}],itemsName:"Cities",itemsProps:e=>({...Lk,columns:ff(e),[Ufe("columns")]:1})}},W3=Tr(10,{letterSpacing:.25}),Qfe={kind:"block",type:Jr,props:{...N,name:"Credit",direction:"row",justify:"end",align:"center",gap:6,share:"content",wrap:!0},when:Gfe,slot:Qr,keepEmpty:!0,parts:[{kind:"block",type:"Text",props:{...se,text:"Location coordinates \xA9",_partStyles:{text:W3}}},{kind:"block",type:"ButtonBlock",props:{...Lo,...Ms,variant:"ghost",arrow:!1,label:"OpenStreetMap contributors",href:"https://www.openstreetmap.org/copyright",_partStyles:{label:{...W3,color:"labels"}}}}]},$3=(e,o)=>Object.fromEntries(o.filter(t=>e[t]!==void 0).map(t=>[t,e[t]])),U3=["sectionPaddingTop","sectionPaddingTopTablet","sectionPaddingTopPhone"],z3=["sectionPaddingBottom","sectionPaddingBottomTablet","sectionPaddingBottomPhone"],G3=e=>e.map(o=>[o,o,(t,r)=>le(r,Ok)[o]]),j3=["sectionAccent","sectionAccent",xn],epe=[...ja,...Ui,...Object.values(Fe)],ope={name:"City pictures",skip:e=>eo(e)?`fed by the data source "${eo(e)}": its cities are read as the page is served, not stored on the node`:void 0,boxProps:(e,o)=>({...Q,direction:"column",gap:40,anchor:"studios",...vt,...$3(le(e,Ok),U3),sectionPaddingBottom:H3,sectionPaddingBottomPhone:H3,...Hs(e,o)}),box:[...re.filter(e=>e!=="sectionAccent"&&e!=="anchor"),j3,["anchor","anchor",e=>Kc(e).trim()?e:"studios"],...G3(U3)],parts:[qx("sectionNumber","heading","tagline"),Yfe],also:[{name:"City maps",boxProps:(e,o)=>({...Q,direction:"column",gap:40,sectionBorder:{bottom:1},...vt,sectionPaddingTop:0,sectionPaddingTopPhone:0,...$3(le(e,Ok),z3),...Hs(e,o)}),box:[...epe,j3,...G3(z3)],parts:[Jfe,Qfe]}],reads:{mapTheme:"City maps Box: each Map block's Map theme",imageShape:"City pictures Box: each picture Box's Box shape"},site:gn,drop:{...ee,...ie,apiKey:"a stored Google Maps key from before the map needed none: the website's one map (components/SiteMap) takes no key, and a key is a credential, never page content",mapId:"a Google Maps style id from the same retired map: nothing in src/ reads it",gallery:"the retired separate tile list: the wall is derived from the cities (`components/ContactLocations`), nothing in src/ reads it",dataSource:"always empty here: a node fed by a source is skipped (see skip)"}},q3={ContactLocations:ope};import{SITE_SIDE as X3,sideLengthAt as tpe}from"efficient-easel/screen/lib/content/length-units";import{viewKeyAt as Bk}from"efficient-easel/draw";var rpe=["FAQ","Footprint","LongRead","ProcessSteps","RelatedProducts"];var In=(e,o)=>()=>({top:e,topPhone:o}),Z3=e=>o=>{let t=wl(e),r={...o,[jr.top]:sd(o,t).top},a=l=>{let d=tpe(r,jr,ts,l,"top");return d?.unit==="px"?d.value:void 0},n=l=>Y(o[Bk(jr.top,l)])===void 0?void 0:a(l),s=n("tablet"),i=n("mobile");return{top:a("desktop")??t.top??0,...s!==void 0?{topTablet:s}:{},...i!==void 0?{topPhone:i}:{}}},ape={Collections:In(120,70),Events:In(120,70),FAQ:In(120,70),GalleryB:In(120,70),FitmentTable:In(120,80),SpecTable:In(120,80),LongRead:In(120,80),RelatedProducts:In(0,0),Footprint:Z3("Footprint"),ProcessSteps:Z3("ProcessSteps"),ProductGrid:e=>({top:Y(e.padTop)??120,topPhone:0})};function npe(e,o={}){let t=$(ur,e),r=$(ape,e);if(!t||!r)throw new Error(`section-to-box-rows-head: "${e}" has no head row or no head room`);let a=t.padKey,n=er(e),s=Qx(e),i=t.headRows.filter(d=>![t.num,t.title,t.description,"linkText","linkHref"].includes(d)),l={...Object.fromEntries(i.filter(d=>!(d in s)).map(d=>[d,"a head setting no Header Box part reads (lib/document/blocks/general/section-head-looks `headReads`)"])),...o.drop};return{name:$(An,e)??e,boxProps:(d,f)=>{let u=r(d),p=o.roomBelow?{sectionPaddingBottom:o.roomBelow.bottom,sectionPaddingBottomPhone:o.roomBelow.bottomPhone}:{},m=typeof o.boxProps=="function"?o.boxProps(d,f):o.boxProps??{},h=$s(e)==="editorial"?vt:{};return{...Q,direction:"column",gap:If[$s(e)],sectionPaddingTop:u.top,...u.topTablet!==void 0?{sectionPaddingTopTablet:u.topTablet}:{},...u.topPhone!==void 0?{sectionPaddingTopPhone:u.topPhone}:{},...h,...p,...m}},box:[...re,...a?[[a,"sectionPaddingTop",(d,f)=>r(f).top]]:[]],parts:[n,...(()=>{let d=a&&HM.has(e)?{[Bk(a,"tablet")]:0,[Bk(a,"mobile")]:0}:{},f={...a?{[a]:0}:{},...d,...o.coreProps},u={kind:"core",keep:"rest",...Object.keys(f).length?{props:f}:{},...o.slots?{slots:o.slots}:{}};return[o.coreBox?{kind:"group",name:o.coreBox.name,props:o.coreBox.props,parts:[u]}:u]})(),...o.partsAfter??[]],...Object.keys(s).length?{reads:s}:{},...Object.keys(l).length?{drop:l}:{},...o.pressHeading?{pressKeepsEmpty:[t.title]}:{},...o.skip?{skip:o.skip}:{}}}var spe={...N,direction:"accordion",rowStyle:"numbered"},ipe={sectionPaddingLeft:X3,sectionPaddingRight:X3},lpe={Footprint:{slots:{[Ue]:[l_()]},pressHeading:!0},ProcessSteps:{slots:(e,o)=>o.press?{[Ic]:y4().map(t=>({...t,props:{...t.props,...ipe}}))}:{},boxProps:{gapPhone:If.editorial}},FAQ:{slots:{[Ue]:[i_()]},pressHeading:!0,coreBox:{name:"Questions",props:spe},coreProps:{sectionAccent:Hr},roomBelow:{bottom:120,bottomPhone:70},boxProps:(e,o)=>o.press?{}:{[FM]:ws},skip:e=>{let o=e._partStyles??{},t=s_().filter(r=>o[r]!==void 0);return t.length?`held: its rows carry their own run style (_partStyles ${t.map(r=>`"${r}"`).join(", ")}), which the Box path does not draw the same`:void 0}}},J3=Object.fromEntries(rpe.map(e=>[e,npe(e,$(lpe,e))]));import{BLOCK_WIDTH_LIMIT as cpe}from"efficient-easel/draw";var Ig={eyebrow:Ye.eyebrow,title:Ye.headingAccent,deck:"Add a sentence or two introducing this document."},mYe={label:"Document masthead",defaultProps:{eyebrow:"",title:"",deck:"",meta:[]}};var sW={minWidth:cpe.min},Q3=(e,o,t)=>({...Ie(e,{...o,...mf}),props:{...j,align:"right",...Ns,...t}}),iW={top:1,bottom:0},Dk=(e,o,t,r)=>({kind:"group",name:e,props:{...N,sectionPaddingBottom:o,sectionPaddingBottomPhone:t},parts:[r]}),eW={widthFit:"fill",...sW},oW={top:100,bottom:60,topPhone:60,bottomPhone:40},dpe={...U("label",13),letterSpacing:.22,lineHeight:1.8},tW={textStyle:"heading-1",...kt("headingLarge",56,8,128),case:"upper",weight:500,lineHeight:.88,letterSpacing:-.04},fpe=()=>({name:"Page Header",boxProps:e=>({...Q,direction:"column",gap:0,sectionBorder:{bottom:1},...le(e,oW)}),box:[...re,...ge(oW)],parts:[{kind:"group",name:"Header",props:{...N,direction:"row",align:"end",justify:"between",gap:40,gapPhone:16,share:"content",sectionPaddingBottom:32},parts:[Dk("Eyebrow",12,0,{...Ie("eyebrow",U("label",13)),props:{...j,...Ns}}),{kind:"text",key:"title",role:"heading",props:{...j,tag:"h1",...eW},style:tW,mark:"accentItalic",when:e=>!Ov(e)},{kind:"text",key:"title",role:"heading",props:{...j,tag:"h2",...eW},style:tW,mark:"accentItalic",when:Ov},{kind:"group",name:"Details",props:{...N,align:"stretch",gap:0,gapPhone:0,sectionPaddingBottom:12,sectionPaddingBottomPhone:0},parts:[{kind:"list",key:"meta",name:"Detail",flat:!0,parts:[hf("label","value",dpe,Ns)]}]}]},{kind:"group",name:"Deck",props:{...N,maxWidth:760,sectionBorder:iW,sectionPaddingTop:28},parts:[{kind:"text",key:"deck",props:se,style:{textStyle:"body-1",fontRole:"accent",...U("body",22,19),italic:!0,lineHeight:1.5}}]}],drop:{...ee,...ie,[Sx]:"read by the title part's `when`: 2 (set by lib/document/one-h1 on a later opener) makes the Text an h2, anything else an h1"}}),lW=()=>({eyebrow:Ig.eyebrow,title:kr(Ig.title),deck:Ig.deck,meta:[{label:Ye.label,value:Ye.value},{label:Ye.label,value:Ye.value}]}),rW={top:80,bottom:40,topPhone:60,bottomPhone:32},ppe={...U("label",13),letterSpacing:.18,lineHeight:1.8},aW={...U("label",13),letterSpacing:.22,lineHeight:1.9},upe=()=>({name:"Issue Header",boxProps:e=>({...Q,direction:"column",gap:0,sectionBorder:{bottom:1},...le(e,rW)}),box:[...re,...ge(rW)],parts:[{kind:"group",name:"Top",props:{...N,direction:"row",align:"end",justify:"between",gap:60,gapPhone:16,share:"content",sectionPaddingBottom:32},parts:[Dk("Eyebrow",14,14,Ie("eyebrow",U("label",14))),{kind:"group",name:"Issue",props:{...N,align:"end",gap:0,gapPhone:0,sectionPaddingBottom:14},parts:[{kind:"list",key:"issueMeta",name:"Issue line",flat:!0,parts:[hf("lead","rest",ppe)]}]}]},{kind:"group",name:"Bottom",props:{...N,direction:"row",align:"start",justify:"between",gap:60,gapPhone:16,share:"content",sectionBorder:iW,sectionPaddingTop:32},parts:[{kind:"text",key:"lead",props:{...j,maxWidth:720,...sW},style:{textStyle:"body-1",fontRole:"heading3",...U("headingSmall",20),lineHeight:1.5,letterSpacing:-.005,paragraphSpacing:16}},{kind:"group",name:"In this issue",props:{...N,align:"stretch",gap:0},parts:[Dk("Heading",6,6,{kind:"text",key:"issueHeading",props:{...j,align:"right",...Ns},style:{textStyle:"body-1",fontRole:"heading",...U("body",18),weight:400,letterSpacing:-.01,lineHeight:1.9,...mf}}),{kind:"group",name:"Lines",props:{...N,align:"stretch",gap:0},parts:[{kind:"list",key:"issueList",name:"Line",flat:!0,parts:[Q3("text",{color:"labels",...aW})]}]},Q3("issueTotal",aW)]}]}],drop:{...ee,...ie}}),nW={top:24,bottom:24,topPhone:16,bottomPhone:16},Nk={color:"labels",...U("label",13),letterSpacing:.2},cW=e=>(Array.isArray(e.items)?e.items:[]).filter(o=>o&&typeof o.label=="string"&&o.label.trim()!==""),Mk=(e,o)=>o!==void 0&&cW(e).at(-1)===o,dW=(e,o)=>o!==void 0&&cW(e).includes(o),mpe=(e,o)=>dW(e,o)&&!Mk(e,o)&&ro(o?.href),hpe=()=>({name:"Breadcrumb",skip:e=>ro(e.meta)?'a trailing note after "\xB7" needs a second mark; none live':void 0,boxProps:e=>({...Q,...zs,wrap:"wrap",gap:16,gapPhone:16,separator:"slash",sectionBorder:{bottom:1},...le(e,nW)}),box:[...re,...ge(nW)],parts:[{kind:"list",key:"items",name:"Crumb",flat:!0,parts:[{kind:"button",key:"label",href:"href",variant:"ghost",when:mpe,props:{...Lo,...Ms,icon:"none"},style:Nk},{...Ie("label",Nk),when:(e,o)=>dW(e,o)&&!Mk(e,o)&&!ro(o?.href)},{...Ie("label",{...Nk,color:"text"}),when:Mk}]}],drop:{...ee,...ie,meta:"a node that stores a note is skipped (`skip`); an empty one draws nothing"}}),fW={DocMasthead:fpe(),Masthead:upe(),Breadcrumb:hpe()};import{BLOCK_WIDTH_LIMIT as gpe,hiddenKeyOf as Ipe}from"efficient-easel/draw";import{readHidable as Hk}from"efficient-easel/draw";function xpe(e,o,t){return e||(t?.isEditing?c(o):void 0)}function EYe(e,o,t){let r=Array.isArray(e)?e:[];return r.length?r:t?.isEditing?o:[]}function pW(e,o,t){let r=Hk(e);if(!r.hidden)return xpe(r.text,o,t)}function uW(e){if(e==null)return;let o=Hk(e);return o.hidden?"":o.text}function _Ye(e,o,t){return Hk(e).hidden?"":pW(e,o,t)}function OYe(e,o,t){return{text:pW(e,fo.text,t),href:o||fo.href}}var gW="MenuBlock",Wk=e=>(Array.isArray(e)?e:[]).filter(o=>o&&ro(o.label)),mW=e=>{let[o,t]=[e.metaLabel,e.metaValue].map(a=>(uW(a)??"").trim());if(!t)return o;let r=t.includes("==")?t:`==${t}==`;return o?`${o} ${r}`:r},hW={top:0,bottom:0,topPhone:0,bottomPhone:0},ype={...ht,color:"labels",...U("label",12),letterSpacing:.24},bpe={kind:"group",name:"Note",props:{...N,justify:"center",sectionBorder:{top:0,right:0,bottom:0,left:1},sectionPaddingLeft:28,[Ipe("mobile")]:!0},parts:[{kind:"block",type:"Text",when:e=>mW(e)!=="",props:e=>({...j,textFit:"line",text:mW(e),[Ad]:{text:ype}})}]},IW=()=>({tabs:[],metaLabel:Ye.label,metaValue:Ye.value}),xW="the note Text inside the Box (the label, then the value in the accent); no words, no Text",yW={direction:"row",menuStyle:"tabs",currentPage:!0,minWidth:gpe.min},bW=e=>({...e,boxProps:o=>({...Q,direction:"row",align:"stretch",justify:"between",gap:0,stickTop:!0,[br]:0,[Qa]:!0,sectionBorder:{bottom:1},...le(o,hW)}),box:[...re,...ge(hW)]}),Spe=()=>bW({name:"Tab Bar",skip:e=>Wk(e.tabs).length?"its tabs need a Console menu first: they are typed labels and links, and the Menu block draws only a Console menu":void 0,reads:{metaLabel:xW,metaValue:xW},parts:[{kind:"block",type:gW,props:yW},bpe],drop:{...ee,...ie,tabs:"a node whose tabs hold words is skipped (`skip`): typed tabs are not a Console menu; a list of blank tabs draws nothing, so nothing is lost"}}),wpe=()=>bW({name:"Category Bar",skip:e=>{if(Wk(e.tabs).length)return"its tabs are typed words with typed counts, not the blog's categories: a Blog categories Menu would replace them";if(Wk(e.links).length)return"its right-hand links are typed words: the bar holds the Menu only"},parts:[{kind:"block",type:gW,props:{...yW,[_o]:U0}}],drop:{...ee,...ie,tabs:"a node whose tabs hold words is skipped (`skip`); blank tabs draw nothing on a page, so nothing is lost. The Menu draws the blog's own categories",activeTab:"the Menu marks the page's own entry (Current page), not a typed active tab",links:"a node whose links hold words is skipped (`skip`); blank links draw nothing",sticky:"the bar is always pinned (the Box's own pin, Stays above): the merchant turns the Box's pin off",editing:"the editor's preview flag, never a stored setting: the editor tells every block it is editing"}}),SW={DocTabs:Spe(),CategoryBar:wpe()};import{jsx as Gs,jsxs as Uk}from"react/jsx-runtime";import{slugify as Cpe}from"efficient-shell/format";import{jsx as $k,jsxs as wW}from"react/jsx-runtime";var UYe="sticky top-[120px]";var yg={entry:{label:"Entry",follows:"Labels",builtIn:"13px",writable:!0},number:{label:"Entry number",follows:"Labels",builtIn:"13px",writable:!0}};var CW=(e,o)=>e?{[Nn]:o}:{},vW=(e,o)=>Wp(e?.[Tc(o)]?.role,yg[o],ui),kW=120;function TW({title:e,entries:o,stickyTop:t,sticky:r=!0,editing:a=!1,partStyles:n,numberForm:s=Uw,takesViewHide:i=!1}){let l=s==="plain",d=Wt(),f=i?d:za;return f.scope(wW("aside",{className:et(`${r?"sticky ":""}flex flex-col self-start max-[900px]:static`,f.className),style:r?{top:t}:void 0,...f.attrs,children:[e&&$k("h4",{className:"mb-[18px] font-mono text-[length:var(--size-label,12px)] uppercase tracking-[0.3em] text-accent",children:Io(e)}),o.map((u,p)=>{let m=$k("span",{...CW(a,"number"),style:vW(n,"number"),className:"text-accent",children:fh(s,p)});return wW("a",{href:`#${u.anchor}`,className:`flex items-center ${l?"justify-start gap-1":"justify-between gap-3"} border-b border-line py-2.5 font-mono text-[length:var(--size-label,13px)] uppercase tracking-[0.18em] text-fg-dim transition-colors hover:text-fg${p===0?" border-t":""}`,children:[l&&m,$k("span",{...CW(a,"entry"),style:vW(n,"entry"),children:Io(u.label||"Section")}),!l&&m]},`${p}-${u.anchor}`)})]}))}function vpe(e,o){return Cpe(e)||`section-${o+1}`}var zk=e=>typeof e=="string"&&e.trim()!=="";function Gk(e){return(e??[]).filter(o=>zk(o.heading)||zk(o.label)||zk(o.body))}function jk(e){let o=new Set;return e.map((t,r)=>{let a=vpe(t.label||t.heading||"",r),n=a,s=2;for(;o.has(n);)n=`${a}-${s++}`;return o.add(n),n})}function Kk(e){let o=[];for(let t of e.replace(/\r\n?/g,`
|
|
329
|
-
`).split(/\n[ \t]*\n/))t.split(`
|
|
330
|
-
`).map(r=>r.replace(/\s+$/,"")).filter(r=>r.trim()!=="").forEach((r,a)=>{let n=Ep(r)[0].bullet,s=o.at(-1),i=a===0||!s||s.type==="ul"!==n;if(n){let l=r.slice(2);!i&&s?.type==="ul"?s.items.push(l):o.push({type:"ul",items:[l]})}else!i&&s?.type==="p"?s.text+=`
|
|
331
|
-
${r}`:o.push({type:"p",text:r})});return o}var kpe=()=>[{label:c("First section"),heading:c("Your *first* section."),body:c(`Write the opening paragraph here.
|
|
332
|
-
|
|
333
|
-
- Start a line with a dash for a bullet.
|
|
334
|
-
- Add as many as you like.`)},{label:c("Second section"),heading:c("Your *second* section."),body:c("Leave a blank line between paragraphs to start a new one.")}],Tpe=kW;function l9e({tocTitle:e,sections:o,editing:t=!1,stickyTop:r=Tpe}){let a=Gk(o);if(a.length===0&&!t)return null;let n=a.length===0&&t?kpe():a,s=jk(n);return Gs(me,{as:"section",className:"relative z-[2] bg-bg",children:Uk("div",{className:"mx-auto grid max-w-[var(--sf-site-width,1600px)] grid-cols-[240px_1fr] items-start gap-20 border-b border-line px-[var(--sf-site-gutter,40px)] py-20 max-[900px]:grid-cols-1 max-[900px]:gap-10 max-[900px]:px-[min(24px,var(--sf-site-gutter,40px))] max-[900px]:py-[60px]",children:[Gs(TW,{title:e,entries:n.map((i,l)=>({label:i.label||"Section",anchor:s[l]})),stickyTop:r}),Gs("div",{className:"flex flex-col gap-16",children:n.map((i,l)=>Uk("article",{id:s[l],className:"flex flex-col gap-[18px]",style:{scrollMarginTop:r},children:[Uk("span",{className:"font-mono text-[length:var(--size-label,12px)] uppercase tracking-[0.3em] text-accent",children:[$w(l)," \xB7 ",Io(i.label||"Section")]}),i.heading&&Gs("h2",{className:"mb-2 border-b border-line pb-[18px] font-heading2 text-[length:min(var(--size-headingMedium,clamp(28px,3.5vw,44px)),var(--sf-heading-max,9999px))] font-medium uppercase leading-[1.04] tracking-[-0.025em]",children:Io(i.heading)}),Kk(i.body??"").map((d,f)=>d.type==="ul"?Gs("ul",{className:"flex max-w-[680px] list-none flex-col gap-2.5 pl-0",children:d.items.map((u,p)=>Gs("li",{className:"relative pl-6 font-serif text-[length:var(--size-body,17px)] leading-[1.65] text-fg-dim before:absolute before:-top-0.5 before:left-1.5 before:text-[length:var(--size-body,24px)] before:leading-none before:text-accent before:content-['\xB7']",children:Io(u)},p))},f):Gs("p",{className:"max-w-[680px] font-serif text-[length:var(--size-body,17px)] leading-[1.7] text-fg-dim",children:Io(d.text)},f))]},s[l]))})]})})}var PW={top:80,bottom:80,topPhone:60,bottomPhone:60},EW=18,_W=18,OW=8,Ppe=10,Vk=e=>typeof e=="string"&&e.trim()!=="",AW=e=>Gk(e.sections),Epe=e=>Kk(typeof e.body=="string"?e.body:"").map(o=>o.type==="ul"?{kind:"ul",text:o.items.map(t=>`- ${t}`).join(`
|
|
335
|
-
`)}:{kind:"p",text:o.text}),Yk={...pr(12),letterSpacing:.3,color:"accent",lineHeight:1.5},RW={textStyle:"body-1",fontRole:"accent",...U("body",17)},_pe=[Ie("label",Yk),{...Ie("title",Yk),when:(e,o)=>!Vk(o?.label)},{kind:"block",type:"Text",when:(e,o)=>!Vk(o?.label)&&!Vk(o?.title),props:{...j,text:"Section",_partStyles:{text:Yk}}},{kind:"group",name:"Heading",props:{...N,sectionPaddingBottom:OW,sectionPaddingBottomPhone:OW},parts:[{kind:"group",name:"Heading line",props:{...N,sectionBorder:{bottom:1},sectionPaddingBottom:_W,sectionPaddingBottomPhone:_W},parts:[{kind:"text",key:"heading",role:"heading",props:j,style:{textStyle:"heading-2",...kt("headingMedium",28,3.5,44),case:"upper",weight:500,lineHeight:1.04,letterSpacing:-.025}}]}]},{kind:"list",key:"body",name:"Body",flat:!0,of:Epe,parts:[{kind:"text",key:"text",props:se,style:{...RW,lineHeight:1.7},when:(e,o)=>o?.kind==="p"},{kind:"text",key:"text",props:se,style:{...RW,lineHeight:1.65,paragraphSpacing:Ppe},when:(e,o)=>o?.kind==="ul"}]}],Ope=900,Ape={name:"Document Text",boxProps:e=>({...Q,direction:"row",gap:80,gapPhone:40,[Vx]:Ope,sectionBorder:{bottom:1},...le(e,PW)}),box:["anchor","sectionAccent",...ja,...Ui,...Object.values(Fe),...ge(PW)],parts:[{kind:"block",type:"Contents",props:e=>({title:e.tocTitle??"",sticky:!0,widthFit:"fixed",width:240,widthFitPhone:"fill"})},{kind:"group",name:"Sections",props:{...N,gap:64,gapPhone:64,widthFit:"fill"},parts:[{kind:"list",key:"sections",name:"Section",of:e=>AW(e),props:{...N,gap:EW,gapPhone:EW},item:(e,o,t)=>({props:{anchor:jk(AW(t))[o]??`section-${o+1}`}}),parts:_pe}]}],reads:{tocTitle:"the Contents block's Heading"},drop:{...ee,stickyTop:"the Contents block draws DocBody's default (120px); 0 live nodes store it"}},LW={DocBody:Ape};import{phoneKey as Fpe}from"efficient-easel/draw";import{SITE_SIDE as Bpe}from"efficient-easel/screen/lib/content/length-units";var y9e={eyebrow:"\u2014 Label",title:`Section headline *here.*
|
|
336
|
-
*Highlight line*`,body:"Describe this section in a sentence or two."},b9e={text:"Learn more"},S9e={label:"Image & Text Split",drawsPictures:!0,defaultProps:{eyebrow:"",title:"",body:"",imageSrc:"",reverse:!1,uppercase:!1,textAlign:"left",ctaText:"",ctaHref:"",imageBtnText:"",imageBtnHref:"",textBgSrc:"",overlay:60,imageOverlay:40}};function qk(e){return typeof e=="number"&&Number.isFinite(e)?Math.min(Math.max(e,0),100):40}var FW="[--intro-edge:60px] max-[960px]:[--intro-edge:24px]",Rpe="overlay",Lpe=[{label:"Copy over image",value:"overlay"},{label:"Copy above image",value:"stacked"}];function bg(e){return xo(Lpe,Rpe,e)}var v9e={desktop:40,mobile:45,min:20,max:80,step:5};function k9e(e,o){return`${typeof e=="number"?e:o}%`}var BW=(e,o,t)=>{let r=Y(e),a=Y(o),n=(s,i)=>i&&i!=="px"?{[s]:i}:{};return{...r===void 0?{}:{size:r,...n(qt.size,t?.desktop)},...a===void 0?{}:{sizePhone:a,...n(qt.sizePhone,t?.phone)}}},Npe=e=>bg(e.layout)==="stacked",NW=e=>Math.min(Math.max(Y(e.overlay)??60,0),100),Sg=e=>Y(e)??100,Dpe={textStyle:"heading-1",sizeToken:{...kt("headingLarge",48,7,96).sizeToken,pxPhone:36},weight:500,lineHeight:.95,letterSpacing:-.03},Mpe=[Ie("eyebrow",U("label",14)),...[!0,!1].map(e=>({kind:"text",key:"title",role:"heading",props:j,style:{...Dpe,case:e?"upper":"none"},styleFrom:o=>{let t=ow(o);return BW(o.titleSizeDesktop,o.titleSizeMobile,{desktop:t.titleDesktop,phone:t.titleMobile})},when:o=>o.uppercase===!0===e})),{kind:"text",key:"body",props:{...se,maxWidth:560},style:{textStyle:"body-1",...U("body",17,16),lineHeight:1.6,paragraphSpacing:24},styleFrom:e=>{let o=ow(e);return BW(e.bodySizeDesktop,e.bodySizeMobile,{desktop:o.bodyDesktop,phone:o.bodyMobile})}},{kind:"group",name:"Button",props:{...N,align:"start",sectionPaddingTop:8,sectionPaddingTopPhone:8},parts:[{kind:"button",key:"ctaText",href:"ctaHref",variant:"primary",props:Lo}]}],DW=e=>`${e}: a Button block has no colour of its own (it follows the site Button colour, as the old fallback did); 0 of 3 live US nodes store one (CLI read, 2026-11-03)`,Hpe=()=>({name:"Scroll-Over Text",skip:e=>Npe(e)?"the stacked layout: its words row's height floor (`copyShare*`) and the header subtraction have no Box setting; 0 live US nodes":void 0,boxProps:e=>({...Q,direction:"column",justify:"center",align:"start",gap:24,gapPhone:24,share:"content",...xf,placement:"left",darken:NW(e),darkenStyle:"even",sectionHeightMode:"fixed",sectionHeightUnit:"%",sectionHeightValue:Sg(e.heightDesktop),sectionHeightModePhone:"fixed",sectionHeightUnitPhone:"%",sectionHeightValuePhone:Sg(e.heightMobile),[rs]:Ja}),box:[...re.filter(e=>!String(typeof e=="string"?e:e[0]).startsWith("sectionHeight")),["imageSrc","bgImage"],["imageSrcMobile","bgImagePhone"],["overlay","darken",(e,o)=>NW(o)],["heightDesktop","sectionHeightValue",e=>Sg(e)],["heightMobile","sectionHeightValuePhone",e=>Sg(e)]],parts:Mpe,drop:{uppercase:"not a value of its own: it picks the heading part \u2014 Case Upper when on, None (as typed) when off",layout:"not a value of its own: the overlay layout is this tree; a stacked node is skipped (`skip`)",copyShareDesktop:"the stacked layout's words-row floor, read only there; a stacked node is skipped",copyShareMobile:"the stacked layout's words-row floor, read only there; a stacked node is skipped",sticky:"the old pin key, read as `stickTop` by the section pin's one reader (lib/content/section-sticky); the Box keeps a stored `stickTop` (SAME_KEYS), and this row is switched off until the stored pages hold `stickTop`",titleSizeDesktop:"read by the heading part's `styleFrom`: a number is its Size, `inherit` and unset follow the token",titleSizeMobile:"read by the heading part's `styleFrom`: a number is its phone Size, `inherit` and unset follow the token",bodySizeDesktop:"read by the words part's `styleFrom`: a number is its Size, `inherit` and unset follow the token",bodySizeMobile:"read by the words part's `styleFrom`: a number is its phone Size, `inherit` and unset follow the token",...Object.fromEntries(RF.map(e=>[e,"read by its part's `styleFrom`: the unit of that view's Size"])),buttonColor:DW("Button color"),buttonTextColor:DW("Button text color"),...ee}}),WW={textStyle:"heading-2",...U("headingMedium",56,36),weight:400,lineHeight:1.05,letterSpacing:-.03},Wpe={textStyle:"body-1",...U("body",16),lineHeight:1.7},$W=e=>({kind:"text",key:"body",props:{...se,maxWidth:520},style:{...Wpe,paragraphSpacing:e}}),Cg={top:0,bottom:0,topPhone:0,bottomPhone:0},Xk=(e,o)=>typeof e.sectionHeightMode=="string"&&e.sectionHeightMode!=="auto"?{}:{sectionHeightMode:"fixed",sectionHeightUnit:"%",sectionHeightValue:o,sectionHeightModePhone:"auto"},$pe=(e,o)=>{let t=Xk(e,o);return Object.keys(t).length?t:{sectionHeightMode:e.sectionHeightMode,...e.sectionHeightValue===void 0?{}:{sectionHeightValue:e.sectionHeightValue},...e.sectionHeightUnit===void 0?{}:{sectionHeightUnit:e.sectionHeightUnit},sectionHeightModePhone:"auto"}},UW={boxShapePhone:"landscape"},zW="needs a black-and-white setting on a Box picture (the old photograph followed it, else the site's Photography); 0 live US nodes store it (CLI read, 2026-11-03)",Upe=(e,o)=>({[e]:o,[Fpe(e)]:o}),zpe={textStyle:"heading-2",...U("headingMedium",40),weight:500,case:"none",lineHeight:1,letterSpacing:-.02},MW=e=>(Array.isArray(e.stats)?e.stats:[]).filter(o=>o&&(String(o.value??"").trim()!==""||String(o.label??"").trim()!=="")),Gpe=()=>({name:"Brand Text",boxProps:(e,o)=>({...Q,...Ct("background")(e,o),direction:"row",share:"equal",gap:0,gapPhone:0,sectionBorder:{top:1,bottom:1},...le(e,Cg),...Xk(e,100)}),box:[...re,...ge(Cg)],parts:[{kind:"group",name:"Words",props:()=>({...N,justify:"center",gap:28,gapPhone:28,sectionBorder:gf({right:1}),sectionBorderPhone:gf({}),...xf,sectionPaddingTop:100,sectionPaddingBottom:100,sectionPaddingTopPhone:60,sectionPaddingBottomPhone:60,sectionPaddingRight:Bpe}),parts:[Ie("eyebrow",U("label",14)),{kind:"text",key:"heading",role:"heading",props:j,style:{...WW,case:"none"},mark:"accentItalic"},$W(28),{kind:"group",name:"Stats",props:{...N,sectionPaddingTop:16,sectionPaddingTopPhone:16},parts:[{kind:"group",name:"Figures",props:e=>({...N,direction:"row",share:"equal",gap:24,gapPhone:24,maxWidth:520,phoneRow:Math.min(Math.max(MW(e).length,1),3),...Upe("sectionBorder",gf({top:1})),sectionPaddingTop:28,sectionPaddingTopPhone:28}),parts:[{kind:"list",key:"stats",name:"Stat",of:MW,props:{...N,gap:4,gapPhone:4},parts:[{kind:"text",key:"value",props:Ds,style:zpe},Ie("label",{...U("label",13),color:"labels",letterSpacing:.2})]}]}]}]},Vv("Picture","imageSrc",UW)],drop:{...ee,grayscale:zW,...ie}}),wg=e=>{let o=e.textAlign==="center"||e.textAlign==="right"?{align:e.textAlign}:{},t=e.textAlignPhone==="left"||e.textAlignPhone==="center"||e.textAlignPhone==="right"?{alignPhone:e.textAlignPhone}:{};return{...o,...t}},jpe=e=>e.textAlign==="center"||e.textAlign==="right"?Lp[e.textAlign]:"stretch",Kpe=e=>Math.min(Math.max(Y(e.overlay)??60,0),100),GW=e=>typeof e=="string"&&e.trim()!=="",Vpe={...Lo,align:"center",alignPhone:"center",buttonFillOpacity:0,buttonBorder:{width:1},buttonPaddingTop:16,buttonPaddingRight:28,buttonPaddingBottom:16,buttonPaddingLeft:28,buttonPaddingTopPhone:12,buttonPaddingRightPhone:20,buttonPaddingBottomPhone:12,buttonPaddingLeftPhone:20},HW=e=>({...Vv("Picture","imageSrc",(o,t)=>({...GW(o.imageSrc)&&qk(o.imageOverlay)>0?{darken:qk(o.imageOverlay),darkenStyle:"even"}:{},placement:"center",...UW,sectionBorder:gf(e?{left:1}:{right:1}),...jW(e?"left":"right",Ml(t))}),[{kind:"button",key:"imageBtnText",href:"imageBtnHref",variant:"ghost",props:Vpe,style:{...pr(13,12),letterSpacing:.18}}]),when:o=>o.reverse===!0===e}),jW=(e,o)=>{let t=Math.max(60-o,0);return{sectionPaddingLeft:e==="left"?60:t,sectionPaddingRight:e==="right"?60:t}},Ype={kind:"group",name:"Words",props:(e,o)=>{let t=e.reverse===!0;return{...N,justify:"center",align:jpe(e),placement:e.textAlign==="center"?"center":e.textAlign==="right"?"right":"left",...$pe(e,72),gap:24,gapPhone:24,...GW(e.textBgSrc)?{darken:Kpe(e),darkenStyle:"even"}:{},...xf,sectionPaddingTop:100,sectionPaddingBottom:100,...jW(t?"right":"left",Ml(o)),sectionPaddingTopPhone:60,sectionPaddingBottomPhone:60}},box:[["textBgSrc","bgImage"]],parts:[{...Ie("eyebrow",U("label",14)),styleFrom:wg},{kind:"text",key:"title",role:"heading",props:j,style:WW,styleFrom:e=>({case:e.uppercase===!0?"upper":"none",...wg(e)})},{...$W(24),styleFrom:wg},{kind:"group",name:"Button",props:{...N,sectionPaddingTop:8,sectionPaddingTopPhone:8},parts:[{kind:"button",key:"ctaText",href:"ctaHref",variant:"primary",props:e=>{let o=wg(e);return{...Lo,...o.align?{align:o.align}:{},...o.alignPhone?{alignPhone:o.alignPhone}:{}}}}]}]},qpe=()=>({name:"Image & Text Split",boxProps:(e,o)=>({...Q,...Ct("background")(e,o),direction:"row",share:"equal",gap:0,gapPhone:0,sectionBorder:{top:1,bottom:1},...le(e,Cg),...Xk(e,72)}),box:[...re,...ge(Cg)],parts:[HW(!1),Ype,HW(!0)],drop:{reverse:"not a value of its own: it picks the order \u2014 the Picture Box first, or after the Words",uppercase:"not a value of its own: the heading part's Case \u2014 Upper when on, None (as typed) when off",textAlign:"read by each words part (its Align) and the Words Box (its Align); left writes nothing, as the old emitted no class",textAlignPhone:"read by each words part as its phone Align",textAlignTablet:"not carried to the words part's own tablet Align (`alignTablet`) yet: no old node stores it (new with the Tablet view's Text alignment row, 0 stored on the US sites 2026-11-06), so nothing moves",overlay:"read by the Words Box: its Darken over the words picture (60 when unset); no picture, no wash",imageOverlay:"read by the Picture Box: its Darken over the image column's picture (40 when unset, none at 0); no picture, no wash",grayscale:zW,...ee,...ie}}),KW={IntroBleed:Hpe(),Manifesto:Gpe(),Split:qpe()};var qW={headPlacement:void 0},VW={top:0,bottom:0,topPhone:0,bottomPhone:0},Xpe=()=>({name:"Form",ownBoxConverts:!0,boxProps:e=>({...Q,direction:"column",...le(e,VW)}),box:[...re,...ge(VW)],parts:[{kind:"core",keep:"rest",props:qW}],drop:{...ee,...ie}}),YW={top:120,bottom:120,topPhone:60,bottomPhone:60},Zpe=()=>({name:"Photo Submission Form",boxProps:e=>({...Q,direction:"column",gap:24,...le(e,YW)}),box:[...re,...ge(YW)],parts:[Ie("eyebrow"),{kind:"text",key:"title",role:"heading",props:j,style:{textStyle:"heading-2"},mark:"accentItalic"},{kind:"text",key:"body",role:"body",props:se},{kind:"core",as:"Form",keep:["formSlug"],rename:{buttonText:"submitText",consent:"finePrint"},props:qW}],skip:e=>e.layout==="boxes"?`its words are in its two SubmitBox regions (layout "boxes"); this row reads only the section's own words`:void 0,drop:{...ee,...ie,layout:'the marker of the two-region drawing; a node that has it is skipped (above), so here it is never "boxes"',boxes:'the SubmitBox regions, drawn only under layout "boxes", which this row skips (above); without that marker they draw nothing'}}),XW={Form:Xpe(),SubmitBuild:Zpe()};import{phoneKey as ZW}from"efficient-easel/draw";var QW=1.5,JW={textStyle:"body-1",...U("body",15),lineHeight:QW},Jpe={...ht,...U("label",12),letterSpacing:.12,lineHeight:QW},e$=()=>({type:V,props:{...N,direction:"row",justify:"between",align:"start",gap:16,gapPhone:16,share:"content",phoneRow:2,[ZW("share")]:"content",[ZW("wrap")]:"nowrap",...Qo(12,0),sectionBorder:{top:1},name:"Item"},slots:{[De]:[{type:V,props:{...N,gap:0,gapPhone:0,name:"Item words"},slots:{[De]:[Ze("label",{...j,tag:"p"},JW),Ze("meta",{...se,tag:"p"},Jpe)]}},Ze("amount",{...j,tag:"p"},JW)]}});var Qpe=()=>({name:"Order Table",boxProps:()=>({...Q,direction:"column"}),box:[...re],parts:[{kind:"core",keep:"rest",headless:!0,slots:{[Ue]:[e$()]}}],drop:{...ee}}),o$={OrderSummary:Qpe()};import{phoneKey as eue}from"efficient-easel/draw";var Z9e={eyebrow:"By the numbers",title:`A picture worth
|
|
337
|
-
*a thousand rows.*`},t$=["eyebrow","title","body","caption"],J9e={label:"Chart",defaultProps:{eyebrow:"",title:"",body:"",items:[],caption:"",chartStyle:"bars",valueSuffix:""}};var r$=["eyebrow","title","body"],eqe={label:"Mockup Card",defaultProps:{eyebrow:"",title:"",body:"",variant:"spec-card",cardHeader:"",badge:"",cardTitle:"",cardSubtitle:"",pills:[],tiles:[],rows:[],button:"",footnote:"",col1Title:"",col1Cards:[],col2Title:"",col2Cards:[],col3Title:"",col3Cards:[],col4Title:"",col4Cards:[],barsHeading:"",bars:[],termLines:[],urlText:"",heroTitle:"",heroButton:"",products:[],align:"right"}};var s$={top:76,bottom:76,topPhone:76,bottomPhone:76},i$=()=>({kind:"group",name:"Words",props:{...N,gap:20,gapPhone:20},parts:[{kind:"group",name:"Chip row",props:{...N,direction:"row",phoneRow:2,[eue("share")]:"content"},parts:[Bl("eyebrow")]},{kind:"text",key:"title",role:"heading",props:j,style:{textStyle:"heading-2",...U("headingMedium",44,32),weight:500,case:"upper",lineHeight:1.04,letterSpacing:-.02}},{kind:"text",key:"body",props:{...se,maxWidth:435},style:Mp(16)}]}),l$=e=>(o,t)=>({...Q,sectionAccent:Dl(o.sectionAccent??0,t),direction:"row",align:"center",gap:56,gapPhone:56,share:e,sectionBorder:{top:1,bottom:1},...le(o,s$)}),c$=[...re.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,t)=>Dl(e,t)],...ge(s$)],oue=()=>({name:"Chart",boxProps:l$([42]),box:c$,parts:[i$(),{kind:"group",name:"Chart",props:{...N,gap:16,gapPhone:16},keepEmpty:!0,parts:[{kind:"core",keep:"rest",props:Fl},Ie("caption",{color:"muted",...U("label",10),letterSpacing:.14})]}],pressKeepsEmpty:[...t$],drop:{...ee,...ie}}),a$=e=>e.align==="left",n$={kind:"group",name:"Card",keepEmpty:!0,props:N,parts:[{kind:"core",keep:"rest",props:Fl}]},tue=()=>({name:"Mockup Card",boxProps:l$("equal"),box:c$,parts:[{...n$,when:a$},i$(),{...n$,when:e=>!a$(e)}],pressKeepsEmpty:[...r$],drop:{...ee,...ie}}),d$={Chart:oue(),Mockup:tue()};import{phoneKey as aue}from"efficient-easel/draw";function f$(e,o=3){let t=Array.from({length:o},()=>[]);return e.forEach((r,a)=>t[a%o].push(r)),t}function p$(e){return Math.max(e*6,30)}var u$={top:76,bottom:76,topPhone:76,bottomPhone:76},nue=e=>(Array.isArray(e.apps)?e.apps:[]).map(o=>o&&typeof o=="object"&&typeof o.text=="string"?o.text.trim():"").filter(Boolean),Zk=e=>f$(nue(e)),sue=e=>ig({loopDuration:p$(e)}),iue={kind:"group",name:"Header",props:{...N,align:"center",gap:20,gapPhone:20},parts:[{kind:"group",name:"Chip row",props:{...N,direction:"row",justify:"center",phoneRow:2,[aue("share")]:"content"},parts:[Bl("eyebrow")]},{kind:"text",key:"title",role:"heading",props:{...j,align:"center"},style:{textStyle:"heading-2",...U("headingMedium",40,30),weight:500,case:"upper",lineHeight:1.04,letterSpacing:-.02}},{kind:"text",key:"body",props:{...se,align:"center",maxWidth:568},style:Mp(16)}]},lue=e=>({kind:"group",name:`Row ${e+1}`,when:o=>Zk(o)[e].length>0,props:o=>({...N,direction:"row",gap:12,gapPhone:12,loop:"scroll",...e%2===1?{scrollDirection:"right"}:{},loopDuration:sue(Zk(o)[e].length)}),parts:[{kind:"block",type:"Logos",props:{contained:!1,headPlacement:"own-box",look:"chips",grayscale:!1},slot:"logos",parts:[{kind:"list",key:"apps",name:"Logo",flat:!0,of:o=>Zk(o)[e].map(t=>({alt:t})),parts:[{kind:"block",type:"LogoBlock",box:["alt"]}]}]}]}),cue={kind:"group",name:"Stat",props:{...N,align:"center",gap:16,gapPhone:16},parts:[{kind:"group",name:"Figure",props:{...N,align:"center",gap:8,gapPhone:8},parts:[{kind:"text",key:"statValue",props:{...j,align:"center"},style:{textStyle:"heading-1",...U("headingLarge",64,46),weight:500,case:"upper",lineHeight:1,color:"accent"}},{kind:"text",key:"statLabel",props:{...j,align:"center"},style:{textStyle:"heading-3",...U("headingSmall",18),weight:500,case:"upper",letterSpacing:.06}}]},{kind:"text",key:"note",props:{...j,align:"center",maxWidth:428},style:{textStyle:"body-1",...U("label",14),lineHeight:1.625,color:"muted"}}]},due=[...re.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,t)=>Dl(e,t)],...ge(u$)],fue={name:"Integrations",boxProps:(e,o)=>({...Q,sectionAccent:Dl(e.sectionAccent??0,o),direction:"column",gap:48,gapPhone:48,sectionBorder:{top:1,bottom:1},...le(e,u$)}),box:due,parts:[iue,{kind:"group",name:"Rows",props:{...N,gap:12,gapPhone:12},parts:Array.from({length:3},(e,o)=>lue(o))},cue],pressKeepsEmpty:["body","statValue","statLabel","note"],reads:{apps:"a Logo block per app, dealt into the three Rows"},drop:{...ee,...ie}},m$={Integrations:fue},h$=()=>({eyebrow:c("Integrations"),title:c(`Plays well with
|
|
338
|
-
*your favourite apps.*`),apps:["Shopify","Xero","Stripe","Mailchimp","Zapier","HubSpot","QuickBooks","PayPal","Google Analytics"].map(e=>({text:e}))});var pue={title:"Back online in",zeroText:"Almost done. Back very soon."},x$=["title"],xqe={label:"Countdown",defaultProps:{...pue,endsAt:"",showUnits:!0}};var g$={top:48,bottom:48,topPhone:48,bottomPhone:48},uue={...Ie("title",{...ZE(12),color:"muted"}),props:{...j,align:"center"}},mue=()=>({name:"Countdown",boxProps:e=>({...Q,direction:"column",align:"center",gap:16,gapPhone:16,...le(e,g$)}),box:[...re,...ge(g$)],parts:[uue,{kind:"core",keep:"rest",props:Fl}],pressKeepsEmpty:[...x$],drop:{...ee,...ie}}),I$={top:80,bottom:80,topTablet:60,bottomTablet:60,topPhone:60,bottomPhone:60},hue=()=>({name:"Feature Banner",boxProps:e=>({...Q,direction:"column",sectionBorder:{bottom:1},...le(e,I$)}),box:[...re,...ge(I$)],parts:[{kind:"core",keep:"rest",props:Fl}],drop:{...ee,...ie}}),y$={Countdown:mue(),FeaturedCover:hue()};var b$={top:80,bottom:80,topPhone:60,bottomPhone:60},xue=()=>{let e=Qx("FitmentFinder");return{name:"Fitment Form",boxProps:o=>({...Q,direction:"column",gap:If[$s("FitmentFinder")],...le(o,b$)}),box:[...re,...ge(b$)],parts:[er("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:{...ee,...ie,layout:'the section shape; "bar" is skipped (above), so here it is the stacked shape this Box draws'}}},S$={FitmentFinder:xue()};var vg={eyebrow:"Label",title:"Section *heading.*",body:"Add this section's copy here. A blank line starts a new paragraph."},kqe={label:"Editorial Text",defaultProps:{eyebrow:"",title:"",body:"",topBorder:!0}};var Rf={eyebrow:Ye.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"},Eqe={label:"Lead Text",defaultProps:{eyebrow:"",lead:"",stats:[],foundersHeading:"",foundersBody:"",attribution:"",padTop:60,padBottom:80}};var w$={eyebrow:"Limited release",title:"Banner headline",body:"A line or two of supporting copy."},Oqe={label:"Banner",drawsPictures:!0,defaultProps:{eyebrow:"",title:"",body:"",imageSrc:"",ctaText:"",ctaHref:"",contained:!0,overlay:60}};var C$={title:`Section heading
|
|
339
|
-
*Highlight line*`},v$=[{label:fo.text,href:fo.href,variant:"primary"},{label:fo.text,href:fo.href,variant:"outline"}],Lqe={label:"Call-to-Action Heading",defaultProps:{title:"",buttons:[],padTop:140,padBottom:140}};var kg="standard",E$=[{label:"Standard",value:"standard"},{label:"Editorial",value:"editorial"},{label:"Simple",value:"simple"},{label:"Statement",value:"statement"},{label:"Natural",value:"natural"},{label:"Essay",value:"essay"}],Qk=["numStyle","logoSrc","logoAlt","linkText","linkHref","_gLogo"],Jk=[...Qk,"description"],k$={standard:["eyebrowLook"],editorial:[...Qk,"eyebrowLook"],simple:Jk,statement:Jk,natural:Qk,essay:Jk},T$=["gap-5","gap-3"],P$=["text-[length:var(--size-body,16px)]","text-[15px]"];function Dqe(e){return xo(T$,T$[0],e)}function Mqe(e){return xo(P$,P$[0],e)}function Hqe(e){return xo(E$,kg,e)}function Wqe(e){let o=E$.map(r=>r.value),t=[...new Set(Object.values(k$).flat())];return Et(e,t.map(r=>[[r],kc("headStyle",o,kg,o.filter(a=>!k$[a].includes(r)))]))}var Aa={num:"01 / Section",title:"Section *title*",description:"Short supporting line",linkText:Ye.viewAll},jqe={label:"Section Header",drawsPictures:!0,defaultProps:{headStyle:kg,num:Aa.num,numStyle:$d,title:Aa.title,description:"",logoSrc:"",logoAlt:"",linkText:"",linkHref:""}};var Tg={eyebrow:"\u2014 Label",title:`Section headline
|
|
340
|
-
*Highlight line*`,body:"A sentence or two of supporting copy."},qqe={label:"Scroll-Over Text",drawsPictures:!0,defaultProps:{eyebrow:"",title:"",body:"",imageSrc:"",imageSrcMobile:"",heightDesktop:100,heightMobile:100,overlay:60,titleSizeDesktop:ns,bodySizeDesktop:ns,titleSizeMobile:ns,bodySizeMobile:ns,ctaText:"",ctaHref:"",buttonColor:"",buttonTextColor:"",stickTop:!0,[br]:0,uppercase:!1}};var _$={top:72,bottom:72,topPhone:72,bottomPhone:72},gue={name:"Editorial Text",boxProps:e=>({...Q,direction:"column",gap:28,gapPhone:28,sectionBorder:{top:1},...le(e,_$)}),box:[["topBorder","sectionBorder",e=>e===!1?void 0:{top:1}],...re,...ge(_$)],parts:[er("Prose"),{kind:"text",key:"body",props:se,style:{textStyle:"body-1",...U("body",16),lineHeight:1.7,paragraphSpacing:18}}],drop:{...ee,...ie,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)"}},O$={buttonPaddingTop:20,buttonPaddingBottom:20,buttonPaddingLeft:28,buttonPaddingRight:28},A$=(e,o)=>o?.variant==="primary",R$=(e,o)=>({kind:"list",key:"buttons",name:"Button",flat:!0,when:e,parts:[{kind:"button",key:"label",href:"href",when:A$,variant:"primary",style:{letterSpacing:.3},props:{...Lo,...O$,...o}},{kind:"button",key:"label",href:"href",when:(t,r)=>!A$(t,r),variant:"ghost",style:{letterSpacing:.3},props:{...Lo,...O$,...o}}]}),Pg=e=>ro(e.title),Iue={name:"Call-to-Action Heading",boxProps:e=>({...Q,direction:"row",align:"center",justify:Pg(e)?"between":"end",gap:60,gapPhone:60,share:"content",sectionBorder:{bottom:1},...Qt(e,"TitleWithButtons")}),box:[...re,...mn("TitleWithButtons")],parts:[{kind:"group",name:"Title",props:{...N,maxWidth:1e3,widthFitPhone:"fill"},parts:[{kind:"text",key:"title",role:"heading",props:j,style:{textStyle:"heading-1",...kt("headingLarge",48,7,108),case:"upper",lineHeight:.94,letterSpacing:-.035},mark:"accentItalic"}]},{kind:"group",name:"Buttons",props:e=>({...N,gap:14,gapPhone:14,widthFitPhone:"fill",...Pg(e)?{minWidth:280,minWidthPhone:0}:{}}),parts:[R$(Pg,{widthFit:"fill",iconPosition:"end"}),R$(e=>!Pg(e),{})]}],drop:{...ee,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 yue(e,o){let t=Ml(o,{to:_e(e.sectionPaddingUnit)}),r=Ml(o,{view:"phone",to:_e(e.sectionPaddingUnitPhone),maxPx:20});return{sectionPaddingLeft:t,sectionPaddingRight:t,sectionPaddingLeftPhone:r,sectionPaddingRightPhone:r}}var L$={top:40,bottom:64,topPhone:24,bottomPhone:36},bue={name:"Section Header",boxProps:(e,o)=>({...Q,direction:"column",gap:0,...le(e,L$),...yue(e,o)}),box:[...re,...ge(L$)],parts:[er("SectionHeader")],drop:{...ee,...ie,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"}},F$={...N,direction:"row",share:[67],gap:32},B$={...N,sectionPaddingLeft:24,sectionPaddingLeftPhone:0},N$=(e,o,t)=>({kind:"group",name:e,props:o,parts:[t]}),Sue={name:"Lead Text",boxProps:e=>({...Q,direction:"column",gap:40,gapPhone:40,sectionBorder:{bottom:1},...Qt(e,"ParagraphsA")}),box:[...re,...mn("ParagraphsA")],parts:[{kind:"group",name:"Numbers",props:{...F$,gapPhone:24,sectionBorder:{bottom:1},sectionPaddingBottom:40,sectionPaddingBottomPhone:40},parts:[{kind:"group",name:"Eyebrow",props:{...N,sectionPaddingTop:5,sectionPaddingBottom:1,sectionPaddingTopPhone:5,sectionPaddingBottomPhone:1},parts:[Ie("eyebrow",{color:"labels",...U("label",12),letterSpacing:.24})]},N$("Stats column",N,{kind:"group",name:"Stats",props:{...B$,gap:0,gapPhone:0},parts:[{kind:"list",key:"stats",name:"Stat",flat:!0,parts:[hf("value","label",{...U("label",13),letterSpacing:.18,lineHeight:1.8})]}]})]},{kind:"group",name:"Words",props:{...F$,gapPhone:28},parts:[{kind:"group",name:"Lead",props:N,parts:[{kind:"group",name:"Measure",props:{...N,maxWidth:780},parts:[{kind:"text",key:"lead",props:j,style:{textStyle:"heading-3",...U("headingSmall",22,20),weight:400,case:"none",lineHeight:1.45,letterSpacing:-.005}}]}]},N$("Note column",{...N,justify:"end"},{kind:"group",name:"Founders",props:{...B$,gap:8,gapPhone:8},parts:[{kind:"group",name:"Note",props:{...N,gap:6,gapPhone:6},parts:[{kind:"text",key:"foundersHeading",props:j,style:{textStyle:"body-1",fontRole:"heading",...U("body",18,16),weight:500,letterSpacing:-.01,lineHeight:1.7}},{kind:"text",key:"foundersBody",props:se,style:{textStyle:"body-5",fontRole:"heading",...U("body",14,12),lineHeight:1.7}}]},Ie("attribution",{...U("label",12,10),letterSpacing:.24,lineHeight:1.7})]})]}],drop:{...ee}},D$={top:24,bottom:24,topPhone:24,bottomPhone:24},wue={name:"Banner",boxProps:e=>({...Q,direction:"column",gap:0,...le(e,D$)}),box:[...re,"contained",...ge(D$)],parts:[{kind:"group",name:"Card",keepEmpty:!0,props:{...N,gap:28,gapPhone:28,placement:"top-left",darken:60,darkenStyle:"even",sectionBorder:{width:1},...la("surface"),...Qo(64,40,40,24)},box:[["imageSrc","bgImage"],["overlay","darken",e=>Math.min(Math.max(Y(e)??60,0),100)]],parts:[{kind:"group",name:"Words",props:{...N,gap:20,gapPhone:20},parts:[Ie("eyebrow"),{kind:"text",key:"title",role:"heading",props:{...j,maxWidth:680},style:{weight:500,lineHeight:1.05,letterSpacing:-.03,case:"none",...U("headingMedium",44,32)}},{kind:"text",key:"body",props:{...j,maxWidth:680},style:{textStyle:"body-1",lineHeight:1.6,...U("body",16)}}]},{kind:"button",key:"ctaText",href:"ctaHref",variant:"primary",props:Lo}]}],drop:{...ee,...ie}},eT={Prose:gue,TitleWithButtons:Iue,SectionHeader:bue,ParagraphsA:Sue,Banner:wue},M$={Prose:()=>({eyebrow:vg.eyebrow,title:kr(vg.title),body:vg.body}),TitleWithButtons:()=>({title:kr(C$.title),buttons:v$.map(e=>({...e}))}),SectionHeader:()=>({num:Aa.num,title:kr(Aa.title),description:Aa.description,linkText:Aa.linkText,linkHref:fo.href}),ParagraphsA:()=>({eyebrow:Rf.eyebrow,lead:Ye.body,foundersHeading:Rf.foundersHeading,foundersBody:Rf.foundersBody,attribution:Rf.attribution}),Banner:()=>({...w$,ctaText:fo.text,ctaHref:fo.href}),ProcessSteps:()=>({num:Aa.num,title:kr(Aa.title)}),IntroBleed:()=>({eyebrow:Tg.eyebrow,title:kr(Tg.title),body:Tg.body,ctaText:fo.text,ctaHref:fo.href})};function Eg(){To(eT),To($5),To(r3),To(A5),To(b3),To(F3),To(q3),To(J3),To(fW),To(SW),To(LW),To(KW),To(XW),To(o$),To(S$),To(d$),To(m$),To(y$)}var Cue=[{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=>T4(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=>E4(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})=>(Eg(),R4(e,pf,{theme:Q_(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=>EM(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=>yH(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=>IH(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=>xH(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=>LM(e)},{name:"withPageContents",chrome:!1,why:"page-only: a Contents block lists the PAGE's anchored sections and numbers their kickers",run:e=>xN(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=>vH(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=>_H(e)}];function vue(e,o,t){let r=e;for(let a of Cue)(!t||a.chrome)&&(r=a.run(r,o));return r}function H$(e,o){return vue(e,{metadata:o},!1)}import{useRef as kue}from"react";import{createRenderKeep as Tue}from"efficient-easel/render";function W$(){let e=kue(null);return e.current??=Tue(),e.current}import{isNode as Pue,isNodeList as Eue}from"efficient-easel/data";import{hidableText as _ue,readHidable as Oue}from"efficient-easel/draw";var U$="slotCounts",oT=e=>!Oue(e).hidden&&_ue(e).trim()!=="",Aue=e=>typeof e=="string"&&e.trim()!=="",Rue={Flex:()=>!0,PostCard:()=>!0,ImageBlock:e=>Aue(e.src),Text:e=>oT(e.text),Heading:e=>oT(e.text),Eyebrow:e=>oT(e.eyebrow)},Lue=["widthFit","width","minWidth"],$$=e=>Eue(e);function Fue(e){if(Array.isArray(e.content))return $$(e.content)?e.content:null;let o=Object.values(e).filter($$);return o.length===1?o[0]:null}function Bue(e,o){return[...new Set([K0,...Object.values($(m_,e)??{})])].some(t=>xt(o,t)!=="")}function Nue(e){let o=e.props??{},t=$(Rue,e.type);if(!t||!t(o)||Bue(e.type,o)||Xc(o))return!1;let r=o[_l];if(r!=null&&r!=="")return!1;let a=Mx(o);return!Lue.some(n=>a[n]!==void 0)}function Due(e){let o=0;for(let t of e)if(!ua(t.props??{})){if(!Nue(t))return;o+=1}return o>0?o:void 0}function Mue(e){let o={},t=new Set,r=new Set,a=(n,s)=>{if(Array.isArray(n))for(let i of n){if(!Pue(i))continue;let l=i.props.id;typeof l=="string"&&(t.has(l)?r:t).add(l);let d=s?null:Fue(i.props);if(typeof l=="string"&&d){let f=Due(d);f!==void 0&&(o[l]=f)}for(let f of Br(i))a(i.props[f],s||Dn(i.type,f))}};a(e,!1);for(let n of r)delete o[n];return o}function z$(e,o){return{...e??{},[U$]:Mue(o)}}function JXe(e){let o=e.editor?.metadata?.[U$],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 $ue({config:e,data:o,metadata:t}){let r=H$(o,t),a=W$(),n=TM(e,kM(r.content)),s=Vh(r.content),i=s.length>0?{...t,[vM]:s}:t;return G$(Yh,{children:G$(Wue,{config:n,metadata:z$(i,r.content),keep:a,data:r})})}var j$=Hue($ue);import{jsx as nr,Fragment as zme,jsxs as F6}from"react/jsx-runtime";import{jsx as Uue,jsxs as zue}from"react/jsx-runtime";import{createContext as Gue,useContext as jue}from"react";var K$=Gue(!1);function fZe(){return jue(K$)}function V$({grayscale:e,children:o}){let t=e===!0;return zue(K$.Provider,{value:t,children:[Object.entries(KH(e)).map(([r,a])=>Uue("style",{children:a},r)),o]})}import{jsx as Kue}from"react/jsx-runtime";import{createContext as Vue,useContext as Yue}from"react";var Y$=Vue(null);function hZe(){return Yue(Y$)}function q$({ink:e,children:o}){return Kue(Y$.Provider,{value:e??null,children:o})}var X$="data-lead-ink",yZe="data-header-ink";var que="auto";function Xue(e){return e.type==="IntroBleed"?bg(e.props?.layout)!=="stacked":!0}function Z$(e){let o=Bd(e);return o&&eM(e)&&Xue(o)?"light":null}function bZe(e){return e==="light"||e==="dark"?e:que}import{useEasel as Gme}from"efficient-easel/easel";import{useEffect as lme}from"react";import{useEaselApi as cme}from"efficient-easel/easel";import{find as Zue,walk as J$}from"efficient-easel/data";var Jue=()=>"",Que=e=>Ay(Nr([e],Jue));function o6(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(Que))])),a=Ay(e);return Object.keys(r).find(n=>r[n].has(a))??null}var eme=()=>({press:[Hl(Bn),Hl(Cc)],delivery:[Zv()]}),ome={},tT=e=>o6(e,eme,ome),tme=e=>eo(e)===$0?"delivery":"press";function RZe(e,o){if(!o||eo(e)===eo(o))return e;let t=tT(e[Ue]),r=tme(e);if(!t||t===r)return e;let a=Ty(e,Oo),n=r==="delivery"?Zv():Hl(eo(e)?Cc:Bn),s=Nr([n],Ey(a));return{...e,[Ue]:s}}var rme=()=>({cards:[gi(Bn),gi(Cc)],label:[Ii(!1),Ii(!0)]}),ame={},nme=e=>o6(e,rme,ame);function LZe(e,o){if(!o||e.cardStyle==="label-only"==(o.cardStyle==="label-only"))return e;let t=nme(e[Ue]),r=e.cardStyle==="label-only"?"label":"cards";if(!t||t===r)return e;let a=Ty(e,JE),n=Array.isArray(e.items)&&e.items.some(l=>be(l?.href)!==void 0),s=r==="label"?Ii(n):gi(eo(e)?Cc:Bn),i=Nr([s],Ey(a));return{...e,[Ue]:i}}var Q$=(e,o)=>Xv.every(t=>JSON.stringify(e[t])===JSON.stringify(o[t]));function e6(e,o){let t={...e};for(let r of Xv)delete t[r];return{...t,...structuredClone(o)}}function rT(e){let o=e?.[De];if(!Array.isArray(o)||o.length!==1)return null;let t=o[0];return t?.type===Oo&&t.props?t:null}function sme(e,o){let t=rT(e),r=rT(o);if(!t?.props||!r?.props||r.props.id!==t.props.id||eo(t.props)===eo(r.props))return e;let a=tT(t.props[Ue]);if(!a||a===tT(r.props[Ue]))return e;let n=Y(e.columns);return n===void 0?e:a==="delivery"&&Q$(e,Ws(n))?e6(e,Gx(n)):a==="press"&&Q$(e,Gx(n))?e6(e,Ws(n)):e}function t6(e){let o=_g.get(e);o?o.count+=1:_g.set(e,{count:1,stop:ime(e)});let t=!1;return()=>{let r=_g.get(e);t||!r||(t=!0,r.count-=1,!(r.count>0)&&(r.stop(),_g.delete(e)))}}var _g=new WeakMap;function ime(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;J$(t,e.config,n=>{if(n.type!==V||!rT(n.props))return;let s=Zue(r,e.config,n.props.id);if(!s||s.node===n)return;let i=sme(n.props,s.node.props);i!==n.props&&a.set(n.props.id,i)}),a.size&&e.dispatch({type:"setData",recordHistory:!1,data:n=>J$(n,e.config,s=>{let i=a.get(s.props.id);return i?{...s,props:{...i,id:s.props.id}}:void 0})})})}function r6(){let e=dme();lme(()=>e?t6(e):void 0,[e])}function dme(){try{return cme()}catch{return null}}import{jsx as Og}from"react/jsx-runtime";import{useEffect as fme}from"react";import{armScrollProgress as pme}from"efficient-shell/format";function a6({armed:e,children:o}){return fme(()=>e?pme():void 0,[e]),o}function aT(){return{style:{"--sf-page-width":$o}}}function ume({children:e}){return Og("div",{style:aT().style,children:e})}function KZe({pageBackground:e,inheritBackground:o=!1,chrome:t=!1,children:r}){return Og("div",{style:{...o?{}:qu(e),background:"var(--bg)",minHeight:"100%",overflowX:"clip"},children:Og(a6,{armed:!t,children:Og(ume,{children:r})})})}import{jsx as n6,Fragment as mme}from"react/jsx-runtime";import{createContext as hme,useContext as xme}from"react";var s6=hme({}),i6=s6.Provider;function XZe(e){let{SectionTextParts:o}=xme(s6);return o?n6(o,{...e}):n6(mme,{children:e.children})}import{jsx as Bme}from"react/jsx-runtime";import{useEffect as Nme,useRef as Dme}from"react";var l6="data-easel-overlay-portal";function Ag(e){return e.setAttribute(l6,"true"),()=>{e.removeAttribute(l6)}}import{jsx as Pme}from"react/jsx-runtime";import{useEffect as Eme,useRef as C6}from"react";import{usePreviewParts as _me}from"efficient-easel/draw/client";import{jsx as gme}from"react/jsx-runtime";import{createContext as Ime,useContext as yme,useMemo as bme,useState as Sme}from"react";var wme={partStyle:null,setPartStyle:()=>{}},c6=Ime(wme);function oJe({children:e}){let[o,t]=Sme(null),r=bme(()=>({partStyle:o,setPartStyle:t}),[o]);return gme(c6.Provider,{value:r,children:e})}function Vl(){return yme(c6)}import{usePreviewDevice as Ome}from"efficient-easel/draw/client";import{shownTier as Ame}from"efficient-easel/screen/lib/document/device-fields";import{decodePartId as v6,encodePartId as Rme}from"efficient-easel/draw";import{BLOCK_ATTRIBUTE as Lme}from"efficient-easel/canvas";import{createPreviewSelectionContext as Cme}from"efficient-easel/draw/client";var js="Scrolling Bar",{Provider:aJe,useSelection:d6}=Cme("selectedHeroId"),nT="data-sf-hero-ticker";function f6(e){return`${e}::ticker`}function p6(e){return!e||!e.endsWith("::ticker")?null:e.slice(0,-8)||null}import{BLOCK_ATTRIBUTE as yn}from"efficient-easel/canvas";import{createPreviewSelectionContext as vme}from"efficient-easel/draw/client";var{Provider:iJe,useSelection:u6}=vme("selectedLocationPartId");function Rg(e,o,t){return`${e}::${o}::${t}`}function Lg(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 iT="data-sf-part-label";function lT(e,o){return e.closest(`[${yn}]`)?.getAttribute(yn)===o}function m6(e,o,t){let r=e.querySelectorAll("*"),a=new Map(t.map(y=>[y.key,kd(y.label)])),n=[],s=new Set;for(let y=0;y<r.length;y+=1){let v=r[y];if(!lT(v,o))continue;let L=v.getAttribute(rN);if(!L)continue;let A=a.get(L);n.push({element:v,partId:qr(o,L),...A?{label:A}:{}}),s.add(v)}let i=[],l=new Set;for(let y=0;y<r.length;y+=1){let v=r[y];if(!lT(v,o)||s.has(v))continue;let L=nn(v.textContent??"");if(!L)continue;let A=v.closest(`[${Nw}]`)?.getAttribute(Nw)||null;A&&l.add(A.replace(/\[\d+\]$/u,"")),i.push({element:v,text:L,row:A})}let d=y=>i.filter(v=>v.row===tN(y.key,y.row.index)),f=i.filter(y=>y.row===null),u=y=>y.row&&l.has(y.key)?d(y):l.size?f:i,p=new Map,m=[],h=y=>y.row?`${y.key}.${y.row.rowKey}`:null,I=new Map;for(let y of t){let v=h(y);if(!v||l.has(y.key))continue;let L=I.get(v);L?L.push(y):I.set(v,[y])}let w=new Set;for(let[y,v]of I){if(v.length<2)continue;let L=v.flatMap(T=>T.texts);if(new Set(L).size===L.length)continue;let A=u(v[0]).filter(T=>L.includes(T.text));if(A.length!==v.length)continue;let D=[...v].sort((T,F)=>(T.row?.index??0)-(F.row?.index??0));for(let T=0;T<D.length;T+=1){let F=D[T],k=A[T].element,_={key:F.key,partKey:Yr(F.key,F.row),exact:!0},P=p.get(k);P?P.push(_):(p.set(k,[_]),m.push(k))}w.add(y)}let S=new Map;for(let y of t){if(w.has(h(y)??""))continue;let v=Yr(y.key,y.row);for(let L of y.texts)for(let A of u(y)){if(A.text!==L)continue;let D=S.get(A.element);D?D.add(v):S.set(A.element,new Set([v]))}}let C=(y,v)=>[...S].some(([L,A])=>L!==y&&!A.has(v)&&L.contains(y));for(let y of t){if(w.has(h(y)??""))continue;let v=Yr(y.key,y.row);for(let L of y.texts){let A=[],D=null;for(let k of u(y))k.text===L?C(k.element,v)||A.push(k.element):!A.length&&k.text.includes(L)&&(!D||k.text.length<=D.length)&&(D={element:k.element,length:k.text.length});let T=A.length?A:D?[D.element]:[],F=T.filter(k=>!T.some(_=>_!==k&&k.contains(_)));for(let k of F){let _={key:y.key,partKey:v,exact:A.length>0},P=p.get(k);P?P.push(_):(p.set(k,[_]),m.push(k))}}}let b=[...n];for(let y of m){let v=p.get(y)??[],L=v.some(A=>A.exact)?v.filter(A=>A.exact):v;if(new Set(L.map(A=>A.partKey)).size===1){let A=a.get(L[0].key);b.push({element:y,partId:qr(o,L[0].partKey),...A?{label:A}:{}});continue}new Set(L.map(A=>A.key)).size===1&&b.push({element:y,partId:qr(o,L[0].key)})}return b}function sT(e,o,t){let r=e.querySelectorAll(`[${co}]`);for(let n=0;n<r.length;n+=1){let s=r[n];lT(s,o)&&(s.removeAttribute(co),s.removeAttribute(iT))}let a=[];for(let{element:n,partId:s,label:i}of t)n.setAttribute(co,s),i&&n.setAttribute(iT,i),a.push(n);return a}function g6(e,o,t,r,a,n=()=>null){let s=null,i=null,l=null,d=()=>{let f=t(),u=f?.getAttribute(yn)??null;if(!f||!u)return!1;s=u;let p=m6(e,u,o);return a(f,u,sT(e,u,p)),l=n(()=>{let m=m6(e,u,o);kme(p,m)||(p=m,a(f,u,sT(e,u,m)))}),!0};return d()||(i=r(()=>{(s||d())&&(i?.(),i=null)})),()=>{i?.(),i=null,l?.(),l=null,s&&sT(e,s,[])}}function kme(e,o){return e.length===o.length&&e.every((t,r)=>t.element===o[r].element&&t.partId===o[r].partId)}function hJe(e,o){let t=e?.closest?.(`[${co}],[${sn}]`),r=t?.getAttribute(co)??t?.getAttribute(sn),a=r?wd(r):null;if(t&&r&&a?.nodeId===o&&a.propKey)return{id:r,element:t,whole:x6(t,r),label:h6(t,r)};let n=e?.closest?.(y6.slice(2).map(i=>`[${i}]`).join(","));if(!n)return null;let s=n.closest?.(`[${yn}]`)?.getAttribute(yn)===o?b6(n,o):null;return s?{id:s,element:n,whole:x6(n,s),label:h6(n,s)}:null}function h6(e,o){let t=Lg(o);if(t)return t.part==="map"?"Map":t.part==="city"?"City":"Image";let r=vx(o);return r?Oa[r.part]:p6(o)?js:e.getAttribute(iT)??void 0}var I6="data-loc-pick",y6=[co,sn,nf,nT,I6];function b6(e,o){let t=e.getAttribute(co)??e.getAttribute(sn);if(t)return t;let r=e.getAttribute(nf);if(r)return As(o,r);if(e.getAttribute(nT)!==null)return f6(o);let a=e.getAttribute(I6)?.split(":");return a&&(a[1]==="image"||a[1]==="map"||a[1]==="city")&&/^\d+$/.test(a[0])?Rg(o,Number(a[0]),a[1]):null}function x6(e,o){let t=e.closest?.(`[${yn}]`),r=t?.getAttribute(yn);if(!t||!r)return!1;let a=new Set;for(let n of t.querySelectorAll(y6.map(s=>`[${s}]`).join(","))){if(n.closest?.(`[${yn}]`)!==t)continue;let s=b6(n,r);s&&a.add(s)}return a.size===1&&a.has(o)}import{ENTRANCE_ATTR as S6,playEntrance as Tme}from"efficient-shell/format";var cT=new WeakMap;function w6(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)??{},u=gO(f),p=r.get(d),m=p?Cl.next(p,u,a):null;r.set(d,m?m.seen:Cl.seed(u)),s.set(d,m?.play??!1)}let i=new Map,l=e.filter(d=>!e.some(f=>f!==d&&f.partKey===d.partKey&&f.element.contains(d.element)));for(let d of l){let f=ix(d.element);f&&i.set(f,[...i.get(f)??[],d])}for(let[d,f]of i){let u=h=>Kd(o(h.partKey)??{}),p=Tl(f.filter(h=>u(h).entrance));if(p){let h=o(p.partKey)??{};n.push(nx(d,Rc(h,a)));let I=cT.get(d);cT.set(d,p.partKey),(s.get(p.partKey)||I!==void 0&&I!==p.partKey)&&d.hasAttribute(S6)&&Tme(d)}else cT.delete(d);let m=d.hasAttribute(S6)?void 0:Tl(f.filter(h=>Pa(o(h.partKey)??{},a).effect!=="none"));m&&n.push(sx(d,Pa(o(m.partKey)??{},a))),f.some(h=>u(h).hover==="lift")&&(lx(d.ownerDocument),d.setAttribute(Ps,""),n.push(()=>d.removeAttribute(Ps)))}return()=>n.forEach(d=>d())}function dT(e){let o=null,t=null;for(let r=e;r&&(o===null||t===null);r=r.parentElement){let a=r.getAttribute("class");o??=oE(a),t??=Wy(a)}return{faceRole:o??"body",sizeGroup:t}}function Fg(e,o={}){let t=e.style,r={};for(let i of Fh)r[i]=t[i]??"",t[i]="";o.fontFamily&&(t.fontFamily=o.fontFamily),o.fontSize&&(t.fontSize=o.fontSize);let a=getComputedStyle(e),n=getComputedStyle(e.ownerDocument.documentElement),s=pD({fontSize:a.fontSize,fontWeight:a.fontWeight,lineHeight:a.lineHeight,letterSpacing:a.letterSpacing,textAlign:a.textAlign,textTransform:a.textTransform,paddingTop:a.paddingTop},uD(a.fontFamily,i=>n.getPropertyValue(i)));for(let i of Fh)t[i]=r[i];return s}function k6({needles:e,styles:o,motions:t=ax,type:r,children:a}){let n=C6(null),{selectedPartId:s}=_me(),{setPartStyle:i}=Vl(),l=Ame(Ome()),d=JSON.stringify(e),f=JSON.stringify(o),u=JSON.stringify(t),p=C6(new Map);return Eme(()=>{let m=n.current;if(!m)return;let h=[],I=()=>m.parentElement,w=A=>{let D=I();if(!D)return null;let T=new MutationObserver(A);return T.observe(D,{attributes:!0,attributeFilter:[Lme]}),()=>T.disconnect()},S=A=>{let D=new MutationObserver(A);return D.observe(m,{childList:!0,subtree:!0,characterData:!0}),()=>D.disconnect()},C=[];h.push(()=>{for(let A of C)A();C=[]});let b=JSON.parse(d),y=JSON.parse(f),v=JSON.parse(u),L=g6(m,b,I,w,(A,D,T)=>{for(let P of C)P();C=[];let F=[];for(let P of T){let O=P,W=Ag(O);W&&C.push(W),O.getAttribute(co)===s&&F.push(O)}let k=mD(D,s,F,P=>tE(P)!==null||Wy(P)!==null);if(k&&s){let P=k,O=v6(s)?.propKey??"",W=vd(P)?{}:fD(vC(y,Ta(r,O)),l,{blockDrawsStyle:Rd(r,O)});i({partId:s,...dT(P),base:Fg(P,W),inks:Yu(P),...(()=>{let G=vd(P);return G?{styleOwner:G}:{}})()})}kC(T.filter(P=>!vd(P)).map(P=>({element:P,partId:P.getAttribute(co)??""})),y,P=>Fg(P),P=>Ta(r,P),void 0,l,P=>Rd(r,P));let _=[...m.querySelectorAll(`[${Dw}="${CSS.escape(D)}"][${Cd}]`)];_.length&&kC(_.map(P=>({element:P,partId:Rme(D,P.getAttribute(Cd)??"")})),y,void 0,P=>P,void 0,l),C.push(w6([...T.filter(P=>!vd(P)).map(P=>{let O=P,W=v6(O.getAttribute(co)??"")?.propKey??"";return{element:O,partKey:Ta(r,W)}}),..._.map(P=>({element:P,partKey:P.getAttribute(Cd)??""}))],P=>v[P],Ei(l),p.current))},S);return()=>{L();for(let A of h)A()}},[d,f,u,s,i,l,r]),Pme("div",{ref:n,[uv]:"",style:{display:"contents"},children:a})}import{shownTier as Mme}from"efficient-easel/screen/lib/document/device-fields";import{usePreviewDevice as Hme,usePreviewParts as Wme}from"efficient-easel/draw/client";var Lf={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)]"},Fme={tag:{label:"Tag",follows:"Labels",builtIn:bi(Lf.tag),writable:!0},name:{label:"Name",follows:"Heading 2",builtIn:bi(Lf.name),writable:!0},body:{label:"Body",follows:"Body",builtIn:bi(Lf.body),writable:!0},price:{label:"Price",follows:"Labels",builtIn:bi(Lf.price),writable:!0},link:{label:"Link",follows:"Labels",builtIn:bi(Lf.link),writable:!0}},T6=Fme;var VJe=Nn,P6={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 E6={SpecTable:P6,FAQ:n_,Collections:T6,Contents:yg};function _6(){return li("efficient.section-text-regions",()=>new Map)}function oQe(e){let o=_6();for(let[t,r]of Object.entries(e)){if(He(E6,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 Yl(e){return e?$(E6,e)??_6().get(e)??null:null}function O6({nodeId:e,sectionType:o,partStyles:t,children:r}){let a=Dme(null),{selectedPartId:n}=Wme(),{setPartStyle:s}=Vl(),i=Mme(Hme()),l=JSON.stringify(t??null);return Nme(()=>{let d=a.current,f=Yl(o);if(!d||!e||!f)return;let u=[],p=Array.from(d.querySelectorAll(`[${Nn}]`));for(let m of p){let h=Oy(f,m.getAttribute(Nn));if(!h)continue;let I=Ag(m);I&&u.push(I);let w=Tc(h),S=qr(e,w);m.setAttribute(sn,S);let C=t?.[w];if(f[h].sized&&TC(C)){let b=PC(C,i),y={fontFamily:m.style.fontFamily,fontSize:m.style.fontSize},v=m.getAttribute(vr);b.fontFamily&&(m.style.fontFamily=b.fontFamily),b.fontSize&&(m.style.fontSize=b.fontSize);let L={fontFamily:b.fontFamily?m.style.fontFamily:void 0,fontSize:b.fontSize?m.style.fontSize:void 0},A=C?.textStyle;Ca(A)&&m.setAttribute(vr,A),u.push(()=>{gD(m.style,y,L),v===null?m.removeAttribute(vr):m.setAttribute(vr,v)})}if(S===n){let b=Fg(m,xD(C,f[h],i));s({partId:S,...dT(m),base:b})}}return()=>{for(let m of u)m();for(let m of p)m.removeAttribute(sn)}},[e,o,n,s,i,l]),Bme("div",{ref:a,style:{display:"contents"},children:r})}import{jsx as fT,Fragment as A6}from"react/jsx-runtime";import{createContext as $me,useContext as R6,useMemo as Ume}from"react";var pT=$me(null),L6=e=>e==null||e===""?void 0:String(e);function uT({content:e,children:o}){let t=Ume(()=>Kw(e),[e]);return fT(pT.Provider,{value:t,children:o})}function IQe({id:e,children:o}){let t=R6(pT),r=L6(e);return fT(A6,{children:o(r?t?.entries.get(r):void 0)})}function yQe({id:e,children:o}){let t=R6(pT),r=L6(e);return fT(A6,{children:o(r?t?.numbers.get(r):void 0)})}var jme={SectionTextParts:O6},Kme="color-mix(in oklab, var(--bg) 40%, #ffffff)",Vme="12vh";function Yme({style:e,children:o}){let{appState:t}=Gme(p=>p),r=t.data.content,a=t.data.root;if(oM(r))return nr("div",{className:"sf-themed-content",style:{...e,background:Kme,minHeight:"100vh",paddingBottom:Vme},children:nr("div",{style:{background:"var(--bg)"},children:nr(uT,{content:r,children:o})})});let n=$C(r)&&zC(a,r),s=$C(r)?rM(a,r):null,i=s?{[tM]:s}:null,l=ML(a?.widthChoice),d=l?{[DL]:l}:null,f=n?null:Z$(r),u=f?{[X$]:f}:null;return nr("div",{className:`sf-themed-content${n?` ${ZD}`:""}`,style:e,...u,...i,...d,children:nr("div",{style:{background:"var(--bg)",minHeight:"100%"},children:nr(uT,{content:r,children:o})})})}function WQe({propsTheme:e,propsFonts:o,propsCornerStyle:t,propsCornerRadiusPx:r,propsHeadingCompression:a,propsHeadingTypography:n,pageBackground:s,chromeInheritsSiteBackground:i,suppressPreviewNav:l,footer:d,overlay:f,children:u}){return r6(),nr(mT,{propsTheme:e,propsFonts:o,propsCornerStyle:t,propsCornerRadiusPx:r,propsHeadingCompression:a,propsHeadingTypography:n,pageBackground:s,chromeInheritsSiteBackground:i,onClickCapture:l,body:p=>F6(zme,{children:[nr(Yme,{style:p,children:u}),d,f]})})}function mT({propsTheme:e,propsFonts:o,propsCornerStyle:t,propsCornerRadiusPx:r,propsHeadingCompression:a,propsHeadingTypography:n,pageBackground:s,chromeInheritsSiteBackground:i,onClickCapture:l,body:d}){let{theme:f,fonts:u,sizes:p,cornerRadiusPx:m,cardShadow:h,shadowColor:I,cardGap:w,hoverEffect:S,headingCompression:C,siteWidth:b,siteGutter:y,siteGutterPhone:v,blockGap:L,blockGapPhone:A,siteLengthUnits:D,headingTypography:T,heroBackgroundFollowsWidth:F,photographyGrayscale:k,textStyles:_,wordStyles:P,themeFromDocument:O}=fe(),W=O?e:f,G=O?o:u,Z=O?void 0:p,X=O?r===void 0?ou[eu(t)]:Ht(r):m,ne=O?{}:D,ve=O?a:C,oe=O?n:T,ke=[LD(PD(O?void 0:_)),FD(tu(oe).italicStrong)].filter(Boolean).join(`
|
|
341
|
-
`),Oe=aT(),Ae={...O_(W),...W_(Z),...Z_(oe),...Oe.style,...i?{}:qu(s)};return F6("div",{className:`sf-theme-surfaces sf-theme-accent ${[BL(O?void 0:v),kF(O?void 0:A)].filter(Boolean).join(" ")}`.trim(),style:{...rE(G),...sE(O?null:P),...A_(W),...R_(W),...F_(W),...Qp(W),...U_(X,ne.cornerRadiusUnit),...Y_(O?void 0:h,O?void 0:I,O?void 0:S),...PL(O?void 0:b,ne.siteWidthUnit),...RL(O?void 0:y,ne.siteGutterUnit),...FL(O?void 0:v,ne.siteGutterPhoneUnit),...CF(O?void 0:L,ne.blockGapUnit),...vF(O?void 0:A,ne.blockGapPhoneUnit),...Tm(O?void 0:F)},"data-sf-headings":q_(ve),"data-sf-card-shadow":O?void 0:j_(h),"data-sf-card-gap":O?void 0:K_(w),"data-sf-card-hover":O?void 0:V_(S),onClickCapture:l,children:[ke?nr("style",{"data-sf-text-styles":"",dangerouslySetInnerHTML:{__html:ke}}):null,nr(V$,{grayscale:O?void 0:k,children:nr(i6,{value:jme,children:nr(q$,{ink:E_(W),children:d(Ae)})})})]})}var B6=e=>{e.target?.closest?.("a")&&e.preventDefault()};var Bg=[{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"]}],ql="all",Ng="template";function N6(e){for(let o=0;o<Bg.length;o++){let t=Bg[o].slugs.indexOf(e);if(t>=0)return o*100+t}return Number.MAX_SAFE_INTEGER}function D6(e){return e.map((o,t)=>({s:o,i:t})).filter(({s:o})=>o.source==="library").sort((o,t)=>N6(o.s.slug)-N6(t.s.slug)||o.i-t.i).map(({s:o})=>o)}function hT(e){return e.filter(o=>o.source==="template")}function M6(e){let o=new Set(D6(e).map(t=>t.slug));return Bg.filter(t=>t.slugs.some(r=>o.has(r)))}function H6(e,o){if(e===Ng)return hT(o);let t=D6(o);if(e===ql)return t;let r=Bg.find(a=>a.key===e);return r?t.filter(a=>r.slugs.includes(a.slug)):[]}function W6(e){let o=e.content;return Array.isArray(o)&&o.length>0?o[0]:null}var the=1440,rhe=1080;function U6({starter:e,config:o,metadata:t,busy:r,onAdd:a}){let{mirrorHostStyles:n}=Bc(),[s,i]=Xme(null),l=qme(()=>{let d=W6(e.layout),f=e.layout.zones;return{root:{props:{}},content:d?[d]:[],zones:f??{}}},[e.layout]);return $6("div",{className:"sf-starter",children:[$6(Qme,{padding:"none",className:"sf-starter-picture",children:[Pr("div",{inert:!0,className:"sf-starter-frame",children:Pr(ehe,{width:the,height:rhe,children:Pr(Zme,{id:`page-starter-${e.id}`,title:e.title,mirrorStyles:n,onDocument:i,height:"fill",children:Pr(Kh,{document:s??void 0,children:Pr(mT,{onClickCapture:B6,body:d=>Pr("div",{className:"sf-themed-content",style:d,children:Pr("div",{style:{background:"var(--bg)"},children:Pr(j$,{config:o,data:l,metadata:t})})})})})})})}),Pr("div",{className:"sf-starter-add",children:Pr(Jme,{onClick:()=>a(e),loading:r,"aria-label":c("Add \u201C{name}\u201D",{name:e.title}),children:c("Add page")})})]}),Pr(ohe,{size:"sm",children:e.title})]})}import{useMemo as lbe}from"react";import{sessionRegistry as cbe}from"efficient-easel/screen/lib/session";import{useEaselSession as dbe}from"efficient-easel/screen/lib/session-context";import{currentEaselSession as ahe}from"efficient-easel/screen/lib/session";var nhe={general:!0,commerce:!0,service:!0};function xT(e){let o=e?.sets;return o?Object.fromEntries(V0.map(t=>[t,o.includes(t)])):nhe}function gT(e=ahe()){return xT(e.blocks)}import{currentEaselSession as oU}from"efficient-easel/screen/lib/session";import{SITE_SIDE as j6}from"efficient-easel/screen/lib/content/length-units";var z6=[{text:"Ticker item"},{text:"Ticker item"},{text:"Ticker item"},{text:"Ticker item"}],neo={label:"Scrolling Bar",defaultProps:{items:[],tone:"scrim",borders:!0,size:ME,separator:HE,scrollDirection:Tf}};var G6=()=>[{text:c("Spec label"),tone:"normal"},{text:c("Spec value"),tone:"muted"},{text:c("Spec label"),tone:"normal"},{text:c("Spec value"),tone:"muted"}],leo={label:"Spec Strip",defaultProps:{cells:[{text:"",tone:"normal"},{text:"",tone:"normal"}],fill:"dark"}};function Ko(e,o,t,r={}){return{type:e,props:{...o(e),id:t(e),...r}}}function K6(e,o,t){return Ko(V,e,o,{...t,sectionPaddingTop:void 0,sectionPaddingBottom:void 0})}var Dg={Manifesto:(e,o)=>({type:V,props:{...e(V),id:o(V),direction:"row",share:"equal",sectionHeightMode:"screen",name:"Brand Text",content:[Ko(V,e,o,{direction:"column",justify:"center",blockSpacing:"gap",name:"Text",sectionPaddingTop:100,sectionPaddingBottom:100,sectionPaddingLeft:j6,sectionPaddingRight:j6,content:[Ko("Text",e,o,ca()),Ko("Text",e,o,Da()),Ko("Text",e,o),Ko("Stats",e,o)]}),K6(e,o,{direction:"column",name:"Picture",content:[]})]}}),Split:(e,o)=>({type:V,props:{...e(V),id:o(V),direction:"row",share:"equal",sectionHeightMode:"screen",sectionHeightValue:70,name:"Image & Text Split",content:[Ko(V,e,o,{direction:"column",justify:"center",blockSpacing:"gap",name:"Text",sectionPaddingTop:100,sectionPaddingBottom:100,sectionPaddingLeft:60,sectionPaddingRight:60,content:[Ko("Text",e,o,ca()),Ko("Text",e,o,Da()),Ko("Text",e,o),Ko("ButtonBlock",e,o)]}),K6(e,o,{direction:"column",name:"Image",content:[Ko("ImageBlock",e,o)]})]}}),Subscribe:(e,o)=>({type:V,props:{...e(V),id:o(V),direction:"column",name:"Subscribe",content:[Ko("Text",e,o,Da()),Ko("Text",e,o),Ko("Form",e,o)]}}),Ticker:(e,o)=>V6("Scrolling Bar",dg,Pf,z6.map(t=>({text:t.text,style:fg,muted:!0})),e,o),SpecStrip:(e,o,t)=>V6("Spec Strip",t?.theme?{..._f,sectionAccent:Jp(vo(t.theme))}:{..._f,sectionBorder:{top:1}},Ef,G6().map(r=>({text:r.text??"",style:Of,muted:r.tone==="muted"})),e,o)};function V6(e,o,t,r,a,n){return Ko(V,a,n,{...zs,...o,blockSpacing:"gap",padV2:!0,name:e,sectionPaddingTop:t.top,sectionPaddingBottom:t.bottom,sectionPaddingTopPhone:t.topPhone,sectionPaddingBottomPhone:t.bottomPhone,content:r.map(s=>Ko("Text",a,n,{text:s.text,...s.muted?{tone:"dim"}:{},_partStyles:{text:s.style}}))})}function Y6(e){return $(Dg,e)??null}import{isNodeList as IT}from"efficient-easel/data";var Leo=Object.keys(eT),she={Logos:a3,DocMasthead:lW,DocTabs:IW,Timeline:R3,TimelineTrack:L3},ihe={PaymentBadges:n3,PaymentLogosBlock:s3,Integrations:h$};function Mg(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]=IT(n)?n.map(s=>Mg(s,o,t)):n;return r.id=t(e.type),{type:e.type,props:r}}var q6=e=>({...e?.theme?{theme:e.theme}:{},...e?.site?{site:e.site}:{},press:!0});function Ff(e,o,t=0,r=()=>({})){return(a,n,s)=>{let{nodes:i}=Bs({type:e,props:{...a(e),...r(),id:n(e)}},o,q6(s));return Mg(i[t],a,n)}}var lhe={Stats:dhe,Cards:che};function che(){let e=pn("Cards");if(!e)return null;let o=Ff("Cards",e,0,O5);return(t,r,a)=>{let n=o(t,r,a);return{...n,props:{...n.props,name:"Cards section"}}}}function dhe(){let e=pn("StatsParagraph");return e?(o,t,r)=>{let{nodes:a}=Bs({type:"StatsParagraph",props:{...o("StatsParagraph"),...U5(),id:t("StatsParagraph")}},e,q6(r)),n=a[0],s=IT(n.props.content)?n.props.content.filter(f=>f.props?.cardStyle===void 0):[],i=Z6(uk(z5(),"table")),l=s.map(X6),d=Mg({...n,props:{...n.props,content:[...l,i]}},o,t);return{...d,props:{...d.props,name:"Stats section"}}}:null}function X6(e){return e.props?.name==="Words"?{...e,props:{...e.props,widthFitPhone:"fill"}}:IT(e.props?.content)?{...e,props:{...e.props,content:e.props.content.map(X6)}}:e}var Z6=e=>Nr([e],(o,t)=>`${o}-seed-${t}`)[0];function fhe(e,o){if(!A4(e,o))return null;let t=$(lhe,e);if(t)return t();let r=pn(e);return r?Ff(e,r,0,$(she,e)??$(M$,e)??$(ihe,e)):null}function phe(e){return(o,t,r)=>{let a=n=>{if(n.type==="Stats"){let i=Mg(Z6(uk([],"list")),o,t);return{...i,props:{...i.props,name:"Numbers"}}}let s=ho(n,i=>so(i,a));return s===n?n:{type:n.type,props:s.props}};return a(e(o,t,r))}}function Xl(e,o=Fs){let t=Y6(e);return t?phe(t):fhe(e,o)}import{blockTypesIn as J6}from"efficient-easel/screen/lib/document/block-types-in";var Q6=()=>({}),eU=new Map;function uhe(e){let o=eU.get(e);if(o)return o;let t=new Set,r=$(Jt,e);if(r)for(let s of r.seeds(Q6))for(let i of J6({type:r.childType,props:s}))t.add(i);let a=Xl(e);if(a){let s=0;for(let i of J6(a(Q6,l=>`${l}-${s+=1}`)))t.add(i)}t.delete(e);let n=[...t].sort();return eU.set(e,n),n}function yT(e){if(!e||!e.sets&&!e.allow&&!e.deny?.length)return null;let o=xT(e),t=e.allow?new Set(e.allow):null,r=new Set(e.deny??[]),a=new Set(Object.keys(e.host??{})),n=l=>{if(r.has(l))return!1;if(a.has(l))return!0;let d=Z0(l);return!d||!o[d]?!1:t?t.has(l):!0},s=new Map,i=l=>{let d=s.get(l);if(d!==void 0)return d;s.set(l,!1);let f=n(l)&&uhe(l).every(i);return s.set(l,f),f};return{sets:o,offers:i}}var mhe="block-offer";function bT(e=oU()){return e.cache(mhe,()=>yT(Gi(e)))}function tU(e,o=oU()){let t=bT(o);return t?t.offers(e):!0}var rU={name:"catalogueLabel",applies:e=>He(An,e),draw(e,o){e.label=$(An,o)}};import{jsx as kT}from"react/jsx-runtime";import{parseBlockWidthFit as yhe,phoneKey as Er,tabletKey as sr}from"efficient-easel/draw";import{jsx as hhe}from"react/jsx-runtime";import{phoneKey as Hg}from"efficient-easel/draw";var aU={name:"sectionGroupAllow",applies:e=>Pu.includes(e),panel(e,o,t,r){let a=e.fields?.sections;a&&(a.allow=[...r.sectionGroupAllow])}},ST=new Set(Object.keys(ur)),nU={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 i=o==="Flex"?a.filter(l=>!ST.has(l)):a;s.disallow=Array.from(new Set([...s.disallow??[],...i]))}}};var iU=Array.from(new Set([...Q0.map(e=>e.type),...ST]));function wT(e,o){return iU.includes(e)||o?.sitsInBox===!0}var xhe=Array.from(new Set([...iU,...kp,"GalleryItem"])),ghe={not:{context:"parentOffersPositions",is:!1}},Ihe={not:{context:"parentTileSlot",is:!1}},sU=[Mi,Hg("gridSpan"),Hg("gridRowSpan")],lU={name:"cellWidth",applies:(e,o,t)=>(xhe.includes(e)||wT(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=it(e.fields??{},a.filter(n=>!sU.includes(n)),ghe),e.fields=it(e.fields??{},sU,Ihe)},draw(e){let o=e.render;e.render=t=>{let r=SA(t.gridSpan),a=Rb(t.gridRowSpan),n=vA(t[Mi]),s=TA(t[Hg("gridSpan")]),i=PA(t[Hg("gridRowSpan")]),l=o(t);if(r==null&&a==null&&n==null&&s==null&&i==null)return l;let d={};r!=null&&(d[wA]=String(r)),a!=null&&(d[CA]=String(a)),s!=null&&(d[EA]=String(s)),i!=null&&(d[_A]=String(i));let f=n!=null?{[kA]:n}:void 0;return hhe(me,{className:"sf-grid-cell",style:f,...d,children:l})}}};function cU(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 Bf={not:{context:"heldByANode",is:!0}};function Wg(e,o){return"parent"in o?o.parent!=null:!!oa(o.appState,e.props?.id)}function oa(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 i of di(s??{})){let l=r(i,s);if(l!==void 0)return l}}};return r(t,null)}var bhe=new Set(["Text","Heading"]),She=new Set(["h1","h2","h3","h4","h5","h6"]);function dU(e,o){return e==="Heading"?!0:e!=="Text"?!1:typeof o.tag=="string"&&She.has(o.tag)?!0:Is(o,"text").textStyle?.startsWith("heading-")===!0}var bn={not:{context:"blockOutsideBox",is:!0}},fU={all:[bn,{not:{context:"boxSharesWidth",is:!0}}]},pU={all:[bn,{not:{context:"boxSharesWidthPhone",is:!0}}]},uU={all:[bn,{not:{context:"boxSharesWidthTablet",is:!0}}]};function gU(e,o,t){return{any:[{field:sr(e),is:o},{all:[{field:sr(e),set:!1},t??{field:e,is:o}]}]}}function IU(e,o,t){return{any:[{field:Er(e),is:o},{all:[{field:Er(e),set:!1},t??{field:e,is:o}]}]}}var yU={any:[{field:"textFit",is:"shrink"},{all:[{field:"textFit",set:!1},{not:{context:"textWrapsByDefault",is:!0}}]}]},whe=[[["_gBlockSize","minWidth",sr("minWidth"),Er("minWidth"),"maxWidth",sr("maxWidth"),Er("maxWidth")],bn],[["widthFit"],fU],[[sr("widthFit")],uU],[[Er("widthFit")],pU],[["width"],{all:[fU,{field:"widthFit",is:"fixed"}]}],[[sr("width")],{all:[uU,gU("widthFit","fixed")]}],[[Er("width")],{all:[pU,IU("widthFit","fixed")]}]],mU=gU("textFit","shrink",yU),hU=[[["_gText","textFit",sr("textFit"),Er("textFit")],bn],[["minFont"],{all:[bn,yU]}],[[sr("minFont")],{all:[bn,mU]}],[[Er("minFont")],{all:[bn,IU("textFit","shrink",mU)]}]],$g=(e,o)=>oa(o.appState,e.props?.id),Ug=e=>!!e&&typeof e.type=="string"&&Tp(e.type)!==null,CT=e=>(e.type==="Flex"||e.type==="HeroGroup")&&Kr(e.type,e.props?.direction)==="row",vT=e=>{let o=yhe(e);return o!==void 0&&o!=="fit"},Che={blockOutsideBox:(e,o)=>!Ug($g(e,o)),boxSharesWidth:(e,o)=>{let t=$g(e,o);return!Ug(t)||!CT(t)?!1:Cy({...t.props,direction:"row"})!==""?!0:by(t.props?.share)!==""&&!vT(e.props?.widthFit)},boxSharesWidthTablet:(e,o)=>{let t=$g(e,o);if(!Ug(t)||!CT(t))return!1;if(VE(t.props?.[sr("columns")])!==""||Cy({...t.props,direction:"row"})!=="")return!0;let r=UE(t.props?.[sr("share")])??t.props?.share;return by(r)!==""&&!vT(e.props?.[sr("widthFit")]??e.props?.widthFit)},boxSharesWidthPhone:(e,o)=>{let t=$g(e,o);if(!Ug(t)||!CT(t))return!1;let r=t.props?.phoneRow;return(Number(r)===2||Number(r)===3)&&!YE(r,t.props?.[Er("share")])&&!vT(e.props?.[Er("widthFit")]??e.props?.widthFit)}},vhe=e=>/^_[gds][A-Z]/.test(e);function khe(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&&!vhe(r[n][0]);)n++;return Object.fromEntries([...r.slice(0,n),...Object.entries(t),...r.slice(n)])}function xU(e,o,t){let r=Object.entries(e);return Object.fromEntries([...r.slice(0,o),...Object.entries(t),...r.slice(o)])}function The(e,o,t){let r=Object.keys(o);if(r.includes("_dSize")){let{_gBlockSize:a,...n}=t;return xU(o,r.indexOf("_dSize")+1,n)}return Phe.has(e)&&r.includes("_gSpacing")?xU(o,r.indexOf("_gSpacing"),t):{...o,...t}}var Phe=new Set(["Text","Heading"]);function Ehe(e,o){let{_gText:t,...r}=o;return khe(e,"_gText",r)??{...e,...o}}function _he(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",sr("textFit"),Er("textFit")])a in r&&(r[a]=e[a]);o.set(t,r)}return r}}var bU={name:"blockSize",applies:(e,o,t)=>wT(e,t)&&!!t&&typeof t.render=="function",panel(e,o,t){let r=bhe.has(o),{text:a}=t.blockSizeFields(r?{tablet:!0,textFit:o==="Heading"?"shrink":"wrap"}:{}),{size:n}=t.blockSizeFields({tablet:!0}),s=The(o,e.fields??{},Et(n,whe));if(r){let i=Et(a,hU);if(s=Ehe(s,i),o==="Text"){let l=Et(t.blockSizeFields({tablet:!0,textFit:"shrink"}).text,hU),d=_he(l),f=e.resolveFields,u=(p,m)=>{let h=f?f(p,m):m.fields,I=w=>dU(o,p?.props??{})?d(w??m.fields):w;return h instanceof Promise?h.then(I):I(h)};e.resolveFields=u}}e.fields=s,Dr(e,{...Che,textWrapsByDefault:i=>!dU(o,i.props??{})})},draw(e,o){Ohe(e,o)}};function Ohe(e,o){let t=e.render;e.render=r=>{let a=Mx(r),n=Kv(a),s=t(r),i=n&&Kv(a,{atSectionLine:!0});return n===null?s:kT(Ahe,{size:n,sectionSize:i??n,atEdge:o===V,canvasAttrs:r.editor?.isEditing?K4(a):SU,inCell:j4(a),fillsPhone:U4(a),widens:V4(a),children:s})}}var SU={};function Ahe({size:e,sectionSize:o,atEdge:t,canvasAttrs:r,inCell:a,fillsPhone:n,widens:s,children:i}){let l=fu(),d=$a(t?"edge":"by-box"),f=d?e:o,u=f.className,p=l?.phoneCells===!0,m=n&&l?.phoneRowFits===!0,h=s?kT(W2,{children:i}):i;return kT(Ua,{className:[u,p?a:"",m?$4:""].filter(Boolean).join(" "),...Object.keys(f.style).length?{style:f.style}:{},attrs:d&&r!==SU?{...f.attrs,...r}:f.attrs,children:h})}import{Fragment as zhe,jsx as Kg}from"react/jsx-runtime";import{jsx as at,Fragment as _T}from"react/jsx-runtime";import{createContext as Zl,useContext as _r}from"react";var Rhe=new Set(["Flex","Grid"]);function Sn(e){return typeof e=="string"&&Rhe.has(e)}var Ks="contentWidth",TT="full",PT="content";function Df(e){let o=e?.[Ks];return o===TT?!1:o===PT?!0:void 0}function wU(e,o){return e&&!o}function zg(e){return e.loop==="scroll"&&e.direction!=="tabs"&&e.direction!=="accordion"&&!oR(e)&&!d3(e.scrollDirection)}function Nf(e,o){return Sn(e)&&zg(qc(o,!1))?is({}):is(o)}function Gg(e,o){return typeof e!="string"||!$m(e)||el[e]==="rawMarkup"?Nf(e,o).background??"full":Nf(e,o).background??Um(o).background}function jg(e){return e!=="full"}function CU(e,o,t){if(!Array.isArray(e)||typeof o!="string")return;let r=(a,n,s,i,l)=>{for(let d of a){let f=d?.props??{};if(f.id===o)return n;let u=Sn(d?.type),p=(i?Nf(d?.type,f).content:null)==="content"?!0:s,m=u&&(n.inBox?Df(f)??p:p),h={insideGutter:n.insideGutter||m||u&&zg(qc(f,l)),inBox:n.inBox||u};for(let I of Br({type:d?.type,props:f})){let w=f[I],S=r(w,h,p,!1,l||Dn(d?.type,I));if(S!==void 0)return S}}};return r(e,{insideGutter:!1,inBox:!1},t,!0,!1)}var Lhe=" [--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))))]",Fhe="[--sf-edge-g:0px] [--sf-edge-al:var(--sf-edge-l)] [--sf-edge-ar:var(--sf-edge-r)]",Bhe="[--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)))]",vU="max-w-[100vw]",Nhe=`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))] ${vU}`;function kU(e){let o={},t=e.pad??{},r=nd({left:t.left,right:t.right},{left:t.leftPhone,right:t.rightPhone},{left:t.leftTablet,right:t.rightTablet},{left:t.left,right:t.right},{desktop:t.unit,tablet:t.unitTablet,phone:t.unitPhone},0,e.site?"site":"box"),a=r.style;for(let[i,l]of[["l","paddingLeft"],["r","paddingRight"]]){let d=a[l];d!==void 0&&(o[`--sf-edge-${i}d`]=typeof d=="number"?`${d}px`:String(d));let f=a[`--sf-pad-${i}-tablet`],u=a[`--sf-pad-${i}-phone`];f!==void 0&&(o[`--sf-edge-${i}t`]=String(f)),u!==void 0&&(o[`--sf-edge-${i}p`]=String(u))}let n=Za(e.site?"site":"box"),s=r.classes.includes(n.className.split(" ")[0]);return{className:`${e.gutter?`${n.className} ${n.edge}${Lhe}`:`${Fhe}${s?` ${n.className}`:""}`} ${Bhe}`,style:o}}function _oo(e){let{className:o,style:t}=kU(e);return{className:`${o} ${Nhe}`,...Object.keys(t).length?{style:t}:{}}}var Dhe="[--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 Mhe="--sf-edge-beyond";function TU(e){return`max(0px,calc((${e===null?rd:`min(${rd},${e})`} - ${$o}) / 2))`}var Hhe=`${Dhe} 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))] ${vU}`;function Ooo(e){let{className:o,style:t}=kU(e);return{className:`${o} ${Hhe}`,style:{...t,[Mhe]:e.beyond??"0px"}}}var Mf=Zl(!1);function Woo(){return _r(Mf)}function $oo({children:e}){return at(Mf.Provider,{value:!0,children:e})}var ET=Zl(!1);function OT({children:e}){return at(ET.Provider,{value:!0,children:e})}var PU=Zl(null);function AT({ground:e,children:o}){return at(PU.Provider,{value:e,children:o})}var RT=Zl(!1);function Whe(){return _r(RT)}function EU({atTop:e,nested:o}){return at(_T,{children:Whe()?o:e})}var Hf=Zl(void 0);function _U({children:e}){return at(Hf.Provider,{value:null,children:e})}function LT(){return _r(Hf)===void 0&&!_r(RT)&&!_r(Mf)}function Jl({own:e,followed:o}){return at(_T,{children:LT()?e():o()})}var OU=Zl(null);function AU({value:e,children:o}){return at(OU.Provider,{value:e,children:o})}function RU({draw:e}){return at(_T,{children:e(_r(OU))})}function Uoo(){return _r(Hf)??null}function LU({contained:e,framedClass:o,fillClass:t,columnClass:r,style:a,tabLabel:n,pad:s,border:i,outerAttrs:l,box:d=!1,edge:f=!1,outerStyle:u,outerClass:p,bleed:m=!1,siteSide:h=!1,part:I,children:w}){let S=_r(Mf),C=_r(ET),b=wU(e,S),y=b&&!C,v=Wt(),L=!!(i&&y),A=L?p:et(p??"",v.className)||void 0,D=L||!v.className?l:{...l,...v.attrs},T=s&&!y?VL(s.values,s.frame):null,F=i&&!y?i:null,k=d&&!m?OL:null,_=[y?o:t,y?k:null,T?.className,F?pF:null].filter(Boolean).join(" "),P=$he(m&&y,T||F?{...a,...T?.style,...F}:a),O=_r(Hf),W=_r(PU),G=d&&f&&O===void 0?{gutter:b,...s?{pad:s.values}:{},beyond:b&&C?TU(W):"0px",...h&&b?{site:!0}:{}}:null,Z=d?at(RT.Provider,{value:!0,children:at(Hf.Provider,{value:G,children:w})}):w,X=b?at(Mf.Provider,{value:!0,children:Z}):Z,ne=s&&y?KL(s.values):null,ve=D&&Object.keys(D).length>0?D:null,oe=at("div",{...ne?null:ve,className:!ne&&A?_?`${_} ${A}`:A:_,style:ne||!u?P:{...P,...u},"data-tab-label":n,...ne?null:I,children:C?at(ET.Provider,{value:!1,children:b&&!m?at("div",{className:k?`${r} ${k}`:r,children:X}):X}):X}),ke=ne?at("div",{...ve,className:A?`${ne.className} ${A}`:ne.className,style:u?{...ne.style,...u}:ne.style,...I,children:oe}):oe;return v.scope(i&&y?at("div",{className:et(Fm,v.className),style:{display:"contents",...i},...v.attrs,children:ke}):ke)}function $he(e,o){return e?{...o,paddingLeft:0,paddingRight:0}:o}import{jsx as Uhe}from"react/jsx-runtime";function FU({children:e}){return Uhe(me,{className:p3,children:e})}function Ghe({side:e,children:o}){return LT()?Kg(FU,{children:Kg(me,{className:u3(e),children:o})}):Kg(zhe,{children:o})}var BU={name:"boxJoin",applies:(e,o,t)=>e===V&&!!t&&typeof t.render=="function",draw(e){let o=e.render;e.render=t=>{let r=cg(t.join);return r?Kg(Ghe,{side:r,children:o(t)}):o(t)}}};var NU=(e,o)=>e.fields?.[o]?.type==="slot",jhe=(e,o)=>NU(o,Ue)||Kp(e).some(t=>NU(o,t)),DU={name:"cardTemplateOnInsert",applies:(e,o,t)=>jhe(e,t),panel(e,o){let t=e.resolveData;e.resolveData=(r,a)=>{let n=r.props??{},s=a?.trigger,i=s==="insert"?Up(o,n):s==="copy"?$p(o,n):n,l=i===n?r:{...r,props:i};return t?t(l,a):l}}};import{jsx as qg}from"react/jsx-runtime";import{Fragment as Vs,jsx as ao,jsxs as FT}from"react/jsx-runtime";import{createContext as BT,useContext as wn,useId as Zhe}from"react";import{REPEAT_ATTRIBUTE as Jhe,REPEAT_INDEX_ATTRIBUTE as Qhe}from"efficient-easel/draw";import{jsx as ito}from"react/jsx-runtime";import{createContext as Yhe,useContext as $U,useMemo as qhe}from"react";var MU="title";function HU(e){return`${e}Alt`}function Khe(e){let o=e.find(t=>typeof t?.url=="string");return{url:o?.url??"",alt:typeof o?.alt=="string"?o.alt:""}}function WU(e,o){let t={[MU]: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:i}=Khe(n);t[r]=s,t[HU(r)]=i}}return t}function Vhe(e,o){return typeof o!="string"?o.flatMap(t=>Vhe(e,t)):e===Ut||!yb(e)?[]:o==="image"?wb(e,["images"]).map(t=>({key:t.key,label:t.label,kind:"image",alt:HU(t.key)})):o!=="text"?[]:[{key:MU,label:c("Title")},...wb(e,["text","date"]).map(t=>({key:t.key,label:t.label}))]}var UU=Yhe(null);function Xhe(){return $U(UU)?.record??null}function fto(e){let o=Xhe();return o!==null&&o.type===e?o:null}function zU(){let e=$U(UU);return qhe(()=>e&&e.record.type!==Ut?WU(e.record,e.dateWords):null,[e])}function vto({props:e,editing:o,children:t}){let r=wn(Wf);return!o&&Fy(e,r?.row)?null:ao(Vs,{children:t})}var Yg=BT(null);function kto({field:e,children:o}){let t=wn(Yg);return ao(Vs,{children:o(t&&t.field===e?t.id:void 0)})}function exe(e,o){return e?.find(t=>!!o[t.field]?.trim()&&!t.gates.some(r=>Fy({[ci]:r},o)))?.field??""}var Wf=BT(null),Vg=BT(null),oxe={label:"text-[length:var(--size-label,12px)]"},txe=`flex min-h-6 items-center border border-dashed border-line px-2 py-1 ${oxe.label} text-fg-dim`;function Tto({name:e,label:o,editing:t}){let r=wn(Vg)?.(e),a=mu()!=="";return r!=null&&r!==!1?a?ao(me,{className:"contents",children:r}):ao(Vs,{children:r}):t?ao(me,{className:txe,children:c("Shown by the section: {name}",{name:o?.trim()||e})}):null}function Pto(){return wn(Wf)}function NT({type:e,props:o,children:t}){let r=wn(Wf),a=zU(),n=r?.row??a;return ao(Vs,{children:t(g_(e,o,n,r?.ownerType,r?.fields,r?.slot),r,n)})}function rxe({attrs:e,selected:o,hover:t,action:r,titleField:a,children:n}){let s=Zhe(),{press:i,disabled:l}=r,d=r.label?.trim(),f=!d&&a?{id:`${s}-title`,field:a}:null;return FT("div",{...e,id:s,className:t&&!l?`${rv} ${Z2}`:rv,children:[ao("button",{type:"button",[eH]:"",className:l?rH:tH,"aria-pressed":o,...d?{"aria-label":d}:{"aria-labelledby":f?.id??s},...l?{"aria-disabled":!0,tabIndex:-1}:null,onClick:l?void 0:i}),ao(Yg.Provider,{value:f,children:n})]})}function Eto({ownerId:e,ownerType:o,slot:t=Ue,Template:r,rows:a,items:n,fields:s,states:i,stateLine:l,actions:d,pressTitles:f,previewHover:u,fallback:p,copyAttrs:m,wrapCopy:h,rowKey:I,hostParts:w,children:S}){let C=wn(Wf),b=wn(Yg),y=wn(Vg);if(!r||(r.blockCount??0)<=0)return ao(Vs,{children:p});let v=C!==null,L=f_(o),A=u??C?.previewHover,D=r.blockCount===1?ao(LO,{children:ao(r,{className:EO})}):ao(r,{}),T=new Set,F=(_,P)=>{if(!I)return P;let O=I(_,P);for(;T.has(O);)O=`${O}#${P}`;return T.add(O),O},k=a.map((_,P)=>{let O=i?.[P],W={row:_,index:P,ownerType:o,slot:t,item:n?.[P],nested:v,...s?{fields:s}:null,...O?{state:O}:null,...L?{linesBetween:L}:null,...A?{previewHover:A}:null},G=Ev(O)?FT(Vs,{children:[D,l==="under"?ao("span",{"aria-hidden":"true",className:V2}):Pv(O)?FT("span",{"aria-hidden":"true",className:Y2,children:[ao("span",{className:q2}),ao("span",{className:X2})]}):ao("span",{"aria-hidden":"true",className:K2})]}):D,Z={[Jhe]:`${e}:${t}`,[Qhe]:P,...typeof m=="function"?m(W):m},X=d?.[P],ne=J2(O,l),ve=X?ao(rxe,{attrs:{...Z,...ne},selected:O?.selected===!0,hover:l!=="under",action:X,titleField:exe(f,_),children:G}):b?ao("div",{...Z,...ne,children:ao(Yg.Provider,{value:null,children:G})}):ao("div",{...Z,...ne,children:G}),oe=h?h(ve,W):ve;return ao(Wf.Provider,{value:W,children:w?ao(Vg.Provider,{value:ke=>w(W,ke),children:oe}):y?ao(Vg.Provider,{value:null,children:oe}):oe},F(W,P))});return ao(Vs,{children:S(k)})}var GU={name:"clickableParts",applies:(e,o,t)=>typeof t?.render=="function"&&e!==Oo&&e!==Si,draw(e,o,t){let r=e,a=()=>r.textParts??r.fields,n=r.render,s=t.inspector?.PartAnchors,i=(l,d)=>aN(a(),d,f=>h_(o,l,f));r.render=l=>{let d=rD(l),f=d2(l);return l.editor?.isEditing&&s?qg(NT,{type:o,props:l,children:u=>qg(s,{needles:i(l,u),styles:d,motions:f,type:o,children:n(l)})}):!Object.keys(d).length&&!Object.keys(f).length?n(l):qg(NT,{type:o,props:l,children:u=>qg(g2,{needles:i(l,u),styles:d,motions:f,type:o,atEdge:o===V,children:n(l)})})}}};import{jsx as jU}from"react/jsx-runtime";var KU={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=H1(t.sectionCorners,t.sectionCornerSides,t.sectionCornersUnit),a=o(t);return r?jU(me,{className:"sf-section-corners",style:{display:"contents",...r},children:a}):a}}},DT=["CollectionCard"],VU={name:"cardCorners",applies:(e,o,t)=>DT.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=$1(t.cardCorners,t.cardCornerSides,t.cardCornersUnit),a=o(t);return r?jU(me,{className:"sf-card-corners",style:{display:"contents",...r},children:a}):a}}};var YU={name:"emptyHeadings",applies:()=>!0,panel(e,o,t){let r=t.dropEmptyHeadings,a=e.resolveFields;e.resolveFields=a?(n,s)=>{let i=a(n,s);return i instanceof Promise?i.then(l=>r(l??s.fields)):r(i??s.fields)}:(n,s)=>r(s.fields)}};var qU={name:"showWhenRows",applies:()=>!0,panel(e,o,t){let r=t.rowsShownForNode,a=e.showWhenFacts??{},n=e.resolveFields;e.resolveFields=n?(s,i)=>{let l=n(s,i);return l instanceof Promise?l.then(d=>r(d??i.fields,s,i,a)):r(l??i.fields,s,i,a)}:(s,i)=>r(i.fields,s,i,a)}};import{jsx as XU,jsxs as axe}from"react/jsx-runtime";var nxe="Flex",ZU=(e,o)=>e[o]!==void 0&&e[o]!==!1&&!e.editor?.isEditing,JU={name:"headCore",applies:(e,o,t)=>typeof t?.render=="function",draw(e){let o=e.render;e.render=t=>ZU(t,ef)?XU(me,{className:mx,children:t[ef]==="empty"?null:o(t)}):o(t)}},QU={name:"headBox",applies:(e,o,t)=>e===nxe&&typeof t?.render=="function",draw(e){let o=e.render;e.render=t=>ZU(t,Qd)?axe(me,{className:hx,children:[XU(xx,{}),o(t)]}):o(t)}};import{createElement as sxe}from"react";var ez={name:"hiddenNodes",applies:(e,o,t)=>typeof t?.render=="function",draw(e,o,t){let r=o===V?"edge":t.isSection(o)?"section":"by-box",a=e.render;e.render=n=>{if(ua(n))return null;let s=Xc(n),i=DO(s,lR(n),{sectionClassName:Xc(n,{atSectionLine:!0}),line:r});return sxe(FO.Provider,{value:i},a(n))}}};import{jsx as dxe}from"react/jsx-runtime";import{createContext as tz,createElement as oz,useContext as ixe}from"react";var rz=tz(null),lxe=tz(!1),tro=rz.Provider;function cxe(e,o,t){return e===void 0||e===""||o===null||o.length===0||!t.includes(e)?!0:o.includes(e)}function az({name:e,editing:o,children:t}){let r=ixe(rz);return o||cxe(e,r?.selected??null,r?.known??[])?t:oz("div",{hidden:!0,style:{display:"none"}},oz(lxe.Provider,{value:!0},t))}var fxe="Flex",nz={name:"showFor",applies:(e,o,t)=>e===fxe&&typeof t?.render=="function",draw(e){let o=e.render;e.render=t=>{let r=SH(t[_l])?.name;if(r===void 0)return o(t);let a=!!t.editor?.isEditing;return dxe(az,{name:r,editing:a,children:o(t)})}}};var sz=bu.mediaFields,pxe=e=>tb(e)?e.src:e;function uxe(e,o){let t=o;for(let r of $(sz,e)??[])t=d1(t,r,pxe);return t}var iz={name:"mediaValues",applies:(e,o,t)=>typeof t?.render=="function"&&($(sz,e)?.length??0)>0,draw(e,o){let t=e.render;e.render=r=>t(uxe(o,r))}};import{jsx as $f,Fragment as lz,jsxs as cz}from"react/jsx-runtime";var mxe="!grow-0 !shrink-0 !basis-0",hxe=["[.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(" "),xxe="flex flex-col w-full min-w-0 [&>*]:grow";function dz({anchor:e}){let o=Kn(e),t=$a(),r=mu();return o?$f("span",{id:o,className:et(t?`sf-section-anchor ${mxe} ${hxe}`:"sf-section-anchor",r),"aria-hidden":"true"}):null}function gxe({anchor:e,copiesInBox:o,children:t}){let r=fu()?.columnsRow===!0,a=RO(),n=Kn(e)!=="";return o?$f(lz,{children:t}):r&&!a&&n?cz(me,{className:xxe,children:[$f(dz,{anchor:e}),t]}):cz(lz,{children:[$f(dz,{anchor:e}),t]})}var fz={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=>$f(gxe,{anchor:r.anchor,copiesInBox:Bt(o,r),children:t(r)})}};import{jsx as Ixe,jsxs as yxe}from"react/jsx-runtime";import{lazy as bxe}from"react";var Sxe=bxe(()=>import("./section-css-style-TIXCQNGX.js")),pz={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,[Pi]:""};let o=e.render;e.render=t=>{let r=lO(t),a=typeof t.id=="string"?t.id:"";return!r||!a?o(t):yxe(Ua,{className:"sf-section-css",attrs:{[iO]:a},children:[Ixe(Sxe,{css:r,id:a}),o(t)]})}}};import{jsx as wxe}from"react/jsx-runtime";var uz=Object.fromEntries(_E.map(e=>[e,"picture"])),Cxe={[V]:"box",Ticker:"marquee",...Object.fromEntries(Op.map(e=>[e,"cards"])),...uz},mz=(e,o)=>!iu.has(e)&&!!o&&typeof o.render=="function";function hz(e,o,t,r){e.fields={...e.fields,...t.animationTabFields(o,r)}}function xz(e,o){let t=e,r=t.render;t.render=a=>{let n=Oi(a);return!n||Bt(o,a)?r(a):wxe(ox,{views:n,editing:!!a.editor?.isEditing,takesViewHide:!0,atEdge:o===V,children:r(a)})}}var gz={name:"sectionAnimation",applies:(e,o,t)=>o.isSection(e)&&mz(e,t),panel:(e,o,t)=>hz(e,$(Cxe,o)??"section",t,o),draw:(e,o)=>xz(e,o)},Iz={name:"blockEntrance",applies:(e,o,t)=>!o.isSection(e)&&mz(e,t),panel:(e,o,t)=>hz(e,$(uz,o)??"block",t,o),draw:(e,o)=>xz(e,o)};import{jsx as vxe}from"react/jsx-runtime";var yz=(e,o)=>!iu.has(e)&&!!o&&typeof o.render=="function";function kxe(e){let o=cv.filter(t=>t.block===e);return o.length===1?o[0].focus:void 0}function bz(e,o){let t=e,r=t.render,a=kxe(o),n=e.drawsPictures===!0;t.render=s=>{let i=kl(s);return!i||Bt(o,s)?r(s):vxe(wx,{views:i,...a?{origins:l2(s,a)}:{},takesViewHide:!0,atEdge:o===V,zoomInside:n?"picture":"layer",children:r(s)})}}var Sz={name:"sectionScroll",applies:(e,o,t)=>o.isSection(e)&&yz(e,t),draw:(e,o)=>bz(e,o)},wz={name:"blockScroll",applies:(e,o,t)=>!o.isSection(e)&&yz(e,t),draw:(e,o)=>bz(e,o)};import{jsx as Txe}from"react/jsx-runtime";import{createElement as Pxe}from"react";var MT=["sectionHeightMode","sectionHeightModeTablet","sectionHeightModePhone"];function Exe(e,o){let t=e.props??{};return MT.some(r=>t[r]==="fill")?!0:("parent"in o?o.parent:oa(o.appState,t.id))?.type===V}var HT={name:"sectionHeight",applies:(e,o,t)=>o.isSection(e)&&!kO.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=l=>{if(!l||!MT.some(f=>f in l))return l;let d=n.get(l);if(!d){d={...l};for(let f of MT)f in d&&(d[f]=a[f]);n.set(l,d)}return d},i=e.resolveFields;e.resolveFields=(l,d)=>{let f=i?i(l,d):d.fields,u=p=>Exe(l??{},d)?s(p??d.fields):p;return f instanceof Promise?f.then(u):u(f)}},draw(e,o){let t=e.render;e.render=r=>{if(Bt(o,r))return t(r);let a=AO(r);return a?Txe(Ua,{className:a.className,style:a.style,...o===V?{attrs:NE}:null,children:t(r)}):t(r)}}},Cz={name:"sectionHeightFillRoot",applies:HT.applies,draw(e,o){let t=e.render;e.render=r=>{let a=Bt(o,r)?null:NO(OO(r),_O(r).join(" "));return Pxe(BO.Provider,{value:a},t(r))}}};import{jsx as Xg}from"react/jsx-runtime";import{PIN_ATTR as vz,PIN_FRAME_ATTR as _xe}from"efficient-shell/format";var Tz=Ez("sectionSticky",(e,o,t)=>o.isSection(e)&&!lF.has(e)&&!!t&&typeof t.render=="function",!0),Pz=Ez("cardSticky",(e,o,t)=>DT.includes(e)&&!!t&&typeof t.render=="function",!1);function Ez(e,o,t){return{name:e,applies:o,panel(r,a,n){let s=WS.has(a);r.fields=Axe(r.fields??{},Et(n.stickFields({intro:s,screens:t,above:t}),Rxe(s))),t&&Dr(r,{heldByANode:Wg})},draw(r,a){let n=r.render,s=WS.has(a);r.render=i=>{let l=zS(i,{atScreenTop:s,above:t});if(!l)return n(i);let d=u=>{let p=Xg(uu,{children:n(i)});return Xg(me,{...u.attrs,style:u.style,children:u.attrs[vz]===""?Xg("div",{[_xe]:"",children:p}):p})},f=t?zS(i,{atScreenTop:s,track:t,above:!0}):l;return!f||f.attrs[vz]!==""?d(l):Xg(Jl,{own:()=>d(f),followed:()=>d(l)})}}}}var kz=[fr,Gl],Oxe="_gStick";function Axe(e,o){let t=Object.keys(e),r=e[vl];if(!r){let S=t.findIndex(C=>kz.includes(C));return S<0?{...e,...o}:Object.fromEntries([...t.slice(0,S).map(C=>[C,e[C]]),...Object.entries(o),...t.slice(S).map(C=>[C,e[C]])])}let{[Oxe]:a,...n}=o,s=S=>S.startsWith(br),i=Object.entries(n).filter(([S])=>!s(S)),l=Object.entries(n).filter(([S])=>s(S)),d=[r.dot,a?.dot].filter(S=>!!S),f=t.indexOf(vl),u=t.findIndex((S,C)=>C>f&&kz.includes(S)),p=u<0?t.length:u,m=t.indexOf(tx),h=m>f&&m<p?m:p,I=S=>[S,S===vl?{...r,dot:{any:d}}:e[S]],w=[...t.slice(0,h).map(I),...i,...t.slice(h,p).map(I),...l,...t.slice(p).map(I)];return Object.fromEntries(w)}function Rxe(e){let o=l=>({field:l,in:[!0,!1]}),t=l=>e&&l==="stickTop"?{any:[{field:l,is:!0},Om]}:{field:l,is:!0},r=l=>({field:l,is:!0}),a=l=>({all:[l,Bf,{not:{field:Qa,is:!0}}]}),[n,s,i]=DS;return[[["stickTopDistance"],t("stickTop")],[["stickTopDistanceTablet"],Mr(["stickTopTablet","stickTop"],o,t)],[["stickTopDistancePhone"],Mr(["stickTopPhone","stickTopTablet","stickTop"],o,t)],[[n],a(r("stickTop"))],[[s],a(Mr(["stickTopTablet","stickTop"],o,r))],[[i],a(Mr(["stickTopPhone","stickTopTablet","stickTop"],o,r))],[[rs],qi],[[Qa],qi]]}import{jsx as Lxe}from"react/jsx-runtime";var _z={name:"sectionBorder",applies:(e,o,t)=>o.isSection(e)&&!!t&&typeof t.render=="function",draw(e,o){if(Xh.has(o))return;let t=e.render;e.render=r=>{let a=hF(r.sectionBorder,r.sectionBorderPhone,r.sectionBorderTablet,mF(r)),n=t(r);return a?Lxe(me,{className:Fm,style:{display:"contents",...a},children:n}):n}}};import{jsx as WT}from"react/jsx-runtime";var Oz={name:"sectionTheme",applies:(e,o,t)=>o.isSection(e)&&!aO.has(e)&&!!t&&typeof t.render=="function",panel(e,o,t){let{sectionThemeFields:r,SECTION_THEME_FOLLOW_LABEL:a}=t,n=Gy.has(o);e.fields={...e.fields,...n?r(Wn,a):r()}},draw(e,o){let t=Gy.has(o),r=e.render;e.render=a=>{let n=sO(t?{...a,sectionAccent:Wn(a.sectionAccent)}:a),s=r(a);if(!n)return s;let i=d=>WT(Ua,{className:n.className,style:d,children:s}),l=n.style;return Bt(o,a)?WT("div",{className:n.className,style:{...l,display:"contents"},children:s}):Gg(o,a)!=="content"?i(l):WT(Jl,{own:()=>i({...l,...Yi($o)}),followed:()=>i(l)})}}},Az={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(Wn,a)})}};import{jsx as yo}from"react/jsx-runtime";var Rz=null;function $T(e){Rz=e}function Lz(){return Rz}import{jsx as Fxe}from"react/jsx-runtime";var Bxe="mx-auto w-full max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)]",Fz=Za("box").frame,Uf=`${Bxe} ${Fz}`,Nxe=Za("site").frame;function kao(e){return e?Nxe:Fz}var Dxe="mx-auto w-full max-w-[1280px] px-[60px]",Mxe="max-[960px]:px-6",Tao=`${Dxe} ${Mxe}`;function Pao({contained:e,className:o="",style:t,pad:r,fillWidth:a="w-full",part:n,children:s}){return Fxe(LU,{contained:e,framedClass:`${Uf} ${o}`,fillClass:`${a} ${o}`,columnClass:Uf,style:t,pad:r,part:n,children:s})}var Ql="--sf-sw-site",Hxe="--sf-sw-content",Wxe="--sf-bg-cap",$xe="contents [--sf-site-width:var(--sf-sw-content)] max-view-wide:[--sf-site-width:var(--sf-sw-site)]",UT=({own:e,content:o,siteContent:t})=>e===!0&&o==="full"&&t!=="full",Nz="contents view-wide:[--sf-site-width:100vw]",zT=({held:e},o,t)=>e?t:yo(me,{className:o,children:t}),Uxe=`contents view-wide:[--sf-site-width:100vw] ${FW} view-wide:[--sf-site-gutter:var(--intro-edge)]`,GT=(e,o,t)=>o==="content"?`min(${Me(e,t)},var(${Ql}))`:Me(e,t);function zf({content:e,contentMax:o,contentMaxUnit:t},r){return e==="full"?r!=="content"?rd:null:o===null?null:GT(o,r,t)}function Gf(e,o){return o===null?e:yo(me,{className:"contents",style:{[Ql]:$o},children:yo(me,{className:$xe,style:{[Hxe]:o},children:e})})}var zxe="--sf-content-cap",Gxe="contents max-view-wide:[--sf-content-cap:none]";function jxe({content:e,contentMax:o,contentMaxUnit:t},r){return e==="full"?null:o!==null?GT(o,r,t):r==="content"?null:`var(${Ql})`}function Kxe(e,o){return o===null?e:yo(me,{className:"contents",style:{[Ql]:$o},children:yo(me,{className:Gxe,style:{[zxe]:o},children:e})})}var Dz=`var(${Ql},${$o})`,Cn=(e,o,t="")=>e==="content"?yo(me,{className:t||void 0,style:Yi($o),children:yo(AT,{ground:Dz,children:o})}):o;function Mz(e,o,t,r,a){if(UT(t))return Cn(r,zT(t,Nz,yo(OT,{children:e({...o,contained:!0})})),a);if(t.content==="full")return Cn(r,e({...o,contained:!1}),a);let n=zf(t,r);return r==="content"&&n===null&&!t.own?e({...o,contained:!0}):Cn(r,Gf(yo(OT,{children:e({...o,contained:!0})}),n),a)}function Vxe(e,o,t,r,a){if(t==="hero"){let i=Gf(e(o),zf(r,r.band));return r.band==="full"?yo(me,{style:{[km]:"none",[TS]:"initial",[PS]:"initial"},children:i}):r.band==="content"?yo(me,{style:Tm(!0),children:i}):i}let n=r.band??"full",s=Wa(o,{atSectionLine:!a});if(t==="rawMarkup"){if(r.content==="full")return Cn(n,e(o),s);let i=r.contentMax===null?$o:GT(r.contentMax,n,r.contentMaxUnit);return yo(me,{className:"contents",style:{[Ql]:$o},children:Cn(n,yo(me,{className:s||void 0,style:Yi(i),children:e(o)}),s)})}if(t==="scrollOver"){let i=r.content==="full",l=UT(r)?zT(r,Uxe,e({...o,fullWidth:!1})):Gf(e({...o,fullWidth:i}),i?null:zf(r,n));return n==="content"?yo(me,{className:"contents",style:{[Wxe]:$o},children:l}):l}switch(t){case"both":return Cn(n,Kxe(e(o),jxe(r,n)),s);case"contained":return Mz(e,o,r,n,s);case"contentColumn":case"contentFull":case"productGrid":{let i=UT(r),l=r.content==="full"&&!i?"full":"page",d=i?zT(r,Nz,e({...o,widthMode:l})):Gf(e({...o,widthMode:l}),r.content==="full"?null:zf(r,n));return t==="productGrid"&&!r.own?n==="content"?yo(me,{className:s?`${Uf} ${s}`:Uf,children:d}):d:Cn(n,d,s)}default:return Cn(n,Gf(e(o),zf(r,n)),s)}}function Bz(e,o,t,r,a){let n=a===V?"edge":"by-box",s=i=>Vxe(e,o,t,r,i);return n==="edge"?s(!0):Wa(o)===Wa(o,{atSectionLine:!0})?s(!1):yo(du,{line:n,draw:s})}function Yxe(e,o){let t=$(el,o);if(!t)return;let r=e.render;e.render=a=>{let n=Um(a),s={band:n.background,content:n.content??"content",contentMax:null},i=()=>t==="rawMarkup"?r(a):yo(RU,{draw:h=>h?.background==="content"?yo(AT,{ground:Dz,children:l(h)}):l(h)}),l=h=>{let I=h?{...s,band:h.background==="content"?s.band:h.background??s.band,content:h.content??s.content,own:h.background==="full"||h.content!==null,held:!0,siteContent:s.content}:s,w=Bz(r,a,t,I,o);if(!Sn(o))return w;let S=Df(a),C=S===void 0?I.content:S?"content":"full";return C===I.content?w:yo(EU,{atTop:w,nested:Mz(r,a,{...I,content:C,own:!1},I.band??"full",Wa(a))})},d=Nf(o,a);if(!BF(d))return i();let f=t==="rawMarkup",u=Gg(o,a),p=d.content??(f?"full":s.content),m={band:u,content:u==="content"?"content":p,contentMax:d.contentMax,contentMaxUnit:d.contentMaxUnit,own:!f,siteContent:s.content};return yo(Jl,{own:()=>yo(AU,{value:{background:m.band,content:m.content},children:Bz(r,a,t,m,o)}),followed:i})}}var qxe={all:[Bf,{not:{context:"runsEdgeToEdge",is:!0}}]},Hz={name:"sectionWidth",applies:(e,o,t)=>$m(e)&&!!t&&typeof t.render=="function",panel(e,o,t){let r=t.sectionOwnWidthFields({drawsFullOnItsOwn:$(el,o)==="rawMarkup"}),a=Sn(o)?t.boxGutterFields():{},n={...e.fields,...a,...r},s=Sn(o)?Uz(o,e,n,[Ks]):n;Dr(e,{heldByANode:Wg}),Sn(o)&&Dr(e,{runsEdgeToEdge:(i,l)=>zg(qc(i.props??{},y_(l.appState,i.props?.id)?.inCopy!==!1))}),e.fields=it(s,[Fe.background,Fe.content],Sn(o)?qxe:Bf)},draw(e,o){Yxe(e,o)}};function Xxe(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 Zxe=new Set(["Heading","Text","ImageBlock","ButtonBlock"]),Wz={name:"containedWidth",applies:(e,o,t)=>Zxe.has(e)&&!!t&&typeof t.render=="function",panel(e,o,t){let r=t.widthField;e.fields=Uz(o,e,{...e.fields,...r("page")});let a=e.resolveFields;e.resolveFields=(n,s)=>{let i=a?a(n,s):s.fields,l=Wm(n?.props??{},"page"),d=f=>Xxe(f,l);return i&&typeof i.then=="function"?i.then(d):d(i)}},draw(e){let o=e.render;e.render=t=>{let{mode:r}=Wm(t,"page");return o({...t,contained:r!=="full"})}}},Jxe={not:{context:"inHeroGroupRow",is:!0}},$z={name:"buttonAlignInRow",applies:e=>e==="ButtonBlock",panel(e){let o=e;o.fields=it(o.fields??{},["align"],Jxe),Dr(o,{inHeroGroupRow:(t,r)=>{let a=oa(r.appState,t.props?.id);return!!a&&a.type==="HeroGroup"&&Kr("HeroGroup",a.props?.direction)==="row"}})}};function Qxe(e){return Object.values(e).some(o=>!!o&&typeof o=="object"&&o.type==="slot")}var ege={any:[]},oge={all:[{not:{context:"outsideBox",is:!0}},{not:{context:"insideSiteGutter",is:!0}}]},tge={not:{context:"widthCappedByParent",is:!0}};function Uz(e,o,t,r=["widthMode"]){if(e==="ButtonBlock")return it(t,["_gWidth",...r],ege);if(Qxe(t)){let a=(n,s)=>CU(s.appState?.data?.content,n.props?.id,jg(Lz()));return Dr(o,{outsideBox:(n,s)=>a(n,s)?.inBox!==!0,insideSiteGutter:(n,s)=>a(n,s)?.insideGutter}),it(t,r,oge)}return Dr(o,{widthCappedByParent:(a,n)=>"parent"in n?r_(n.parent):cU({props:a.props??{}},n)}),it(t,r,tge)}var rge=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"]),zz={name:"sectionGroups",applies:(e,o)=>o.isSection(e)&&(rge.has(e)||o.isHostBlock(e)),panel(e,o,t){let r=t.assignSectionGroups;e?.fields&&(e.fields=r(e.fields,o))}},age=new Set(["HeroSlide","HeroGroup"]),Gz={name:"blockGroups",applies:(e,o,t)=>age.has(e)||!o.isSection(e)&&lg in(t?.fields??{}),panel(e,o,t){let r=t.assignSectionGroups;e?.fields&&(e.fields=r(e.fields,o))}};import{jsx as jT}from"react/jsx-runtime";var nge=new Set(["Flex","Grid"]),jz=e=>Object.entries(e.fields??{}).filter(([,o])=>o?.type==="slot").map(([o])=>o),sge=(e,o)=>e.fields?.[o]?.ownPictures===!0,ige=["blockCount","blockIds"],lge=new WeakMap,cge=new WeakMap;function dge(e,o){let t=o?cge:lge,r=t.get(e);if(r)return r;let a=e,n=s=>jT(_U,{children:jT(uu,{ownPictures:o,children:jT(a,{...s})})});Object.assign(n,e);for(let s of ige)Object.defineProperty(n,s,{get:()=>e[s],configurable:!0,enumerable:!0});return t.set(e,n),n}var Kz={name:"slotsStartAfresh",applies:(e,o,t)=>!nge.has(e)&&typeof t?.render=="function"&&jz(t).length>0,draw(e){let o=jz(e),t=e.render;e.render=r=>{let a={...r};for(let n of o){let s=r[n];typeof s=="function"&&(a[n]=dge(s,sge(e,n)))}return t(a)}}};var fge=new Set(["Form","Stats","Logos"]);function Vz(){return[...fge]}function KT(e,o,t=[]){let r=new Set(e),a=X0.filter(d=>r.has(d)),n=a.filter(d=>d!=="Header"&&d!=="Footer"&&!Pu.includes(d)),s=new Set([...o,...kp,...Vz()]),i=a.filter(d=>!s.has(d)),l=new Set([...a,...t]);return{isSection:d=>l.has(d)&&!Gp(d),isHostBlock:()=>!1,sectionGroupAllow:n,contentSectionKeys:i}}var pge=[Kz,iz,JU,aU,nU,WM,KU,_z,VU,$M,Iz,wz,lU,Hz,Wz,$z,HT,pz,fz,Oz,gz,Sz,Tz,Pz,BU,Az,bU,zz,Gz,qU,YU,GU,QU,nz,Cz,ez,rU,DU];function Yz(e,o,t){let r=o;for(let a of pge)a.applies(e,t,r)&&(t.inspector&&a.panel?.(r,e,t.inspector,t),a.draw?.(r,e,t));return o}import{jsx as VT}from"react/jsx-runtime";import{ClockIcon as uge,DurationIcon as mge}from"efficient-easel/icons";import{MOTION_TIMING as qz}from"efficient-shell/format";import{useSelectedHost as hge}from"efficient-easel/easel";function ec(e){let{min:o,max:t,step:r,default:a}=qz[e].duration;return Ro("Duration",VT(mge,{}),o,t,r,a,"s")}function oc(e){let{min:o,max:t,step:r,default:a}=qz[e].delay;return Ro("Delay",VT(uge,{}),o,t,r,a,"s")}function tc(e,o){let t=e.render,r=a=>{let n=hge();return t({...a,value:o(a.value,n?.values)})};return{...e,render:a=>VT(r,{...a})}}function Zg({readsSpeed:e}){return tc(ec("loop"),(o,t)=>ig({loopDuration:o,speed:e?t?.speed:void 0}))}function Jg(){return tc(oc("loop"),e=>f3({loopDelay:e}))}import{jsx as Fo}from"react/jsx-runtime";import{DirectionDownIcon as xge,DirectionIcon as gge,DirectionLeftIcon as Ige,DirectionRightIcon as yge,DirectionUpIcon as bge,EntranceBounceIcon as Sge,EntranceFadeIcon as wge,EntranceFlipIcon as Cge,EntranceGlideIcon as vge,EntranceRevealIcon as kge,EntranceRiseIcon as Tge,EntranceScaleIcon as Pge,EntranceSpinIcon as Ege,NoSymbolIcon as _ge}from"efficient-easel/icons";import{NoControlMark as Oge,noControlField as Age}from"efficient-easel/screen/lib/document/panel-no-control-mark";import{customize as Rge,group as Lge}from"efficient-easel/screen/lib/document/box-fields";import{ENTRANCE_FROM as Fge,ENTRANCE_FROM_DEFAULT as Zz,ENTRANCE_KINDS as Jz,ENTRANCE_KINDS_WITH_FROM as Bge,entranceAttrs as Nge,playEntrance as Dge,readEntrance as Mge}from"efficient-shell/format";var Hge={none:"None",fade:"Fade",rise:"Rise",scale:"Scale",glide:"Glide",bounce:"Bounce",flip:"Flip",reveal:"Reveal",spin:"Spin"},Wge={top:"Top",bottom:"Bottom",left:"Left",right:"Right"},$ge={top:()=>Fo(xge,{}),bottom:()=>Fo(bge,{}),left:()=>Fo(yge,{}),right:()=>Fo(Ige,{})},Qz="Entrance",qT=Jz.filter(e=>e!=="none"),eG=e=>({any:[{field:_t.kind,in:e},{all:[{field:_t.kind,set:!1},{field:Ac,in:e}]}]}),Xz=(e,o)=>Mr(It.slice(0,It.indexOf(e)+1).reverse().map(t=>Te(_t.kind,t)),t=>({field:t,set:!0}),t=>t===_t.kind?eG(o):{field:t,in:o}),Uge={any:[eG(qT),...It.slice(1).map(e=>({field:Te(_t.kind,e),in:qT}))]},zge=It.flatMap(e=>[[[Te(_t.from,e)],Xz(e,Bge)],[[Te(_t.duration,e),Te(_t.delay,e)],Xz(e,qT)]]),Gge={none:()=>Fo(_ge,{}),fade:()=>Fo(wge,{}),rise:()=>Fo(Tge,{}),scale:()=>Fo(Pge,{}),glide:()=>Fo(vge,{}),bounce:()=>Fo(Sge,{}),flip:()=>Fo(Cge,{}),reveal:()=>Fo(kge,{}),spin:()=>Fo(Ege,{})},oG="data-entrance-tile";function jge({kind:e}){let{attrs:o}=Nge(Mge(e,Zz));return Fo("span",{className:"sf-entrance-stage",[oG]:e,children:Fo("i",{...o,children:Gge[e]()})})}var Kge=(e,o)=>{let t=e.querySelector(`[${oG}="${o}"] > i`);t&&Dge(t)},Vge="Effect",Yge=()=>cm(_t.kind,{label:Qz,tileWord:Vge,values:Jz,fallback:"none",word:e=>Hge[e],picture:e=>Fo(jge,{kind:e}),read:(e,o)=>Rc(e,o).kind,preview:Kge}),YT=(e,o)=>lm(_t[e],o,(t,r)=>Rc(t,r)[e]),qge=Fge.map(e=>({label:Wge[e],value:e,picture:$ge[e]()}));function Or(){let e={[lg]:Lge(Qz,{dot:Uge}),...Yge(),[Ac]:Age({type:"custom",render:()=>Fo(Oge,{})},"always"),_cEntrance:Rge(),...YT("from",ol("From",Fo(gge,{}),qge,Zz)),...YT("duration",ec("entrance")),...YT("delay",oc("entrance"))};return Et(e,zge)}import{jsx as ir}from"react/jsx-runtime";import{EntranceRevealIcon as Xge,NoSymbolIcon as Zge,PercentIcon as tG,ScrollFadeInIcon as Jge,ScrollFadeOutIcon as Qge,ScrollMoveDownIcon as eIe,ScrollMoveUpIcon as oIe,ScrollParallaxIcon as tIe,ScrollZoomInIcon as rIe,ScrollZoomOutIcon as aIe,ZoomInIcon as nIe}from"efficient-easel/icons";import{customize as sIe,group as iIe}from"efficient-easel/screen/lib/document/box-fields";import{SCROLL_EFFECTS as aG,SCROLL_EFFECTS_WITH_ZOOM as lIe,SCROLL_END as cIe,SCROLL_START as dIe,SCROLL_ZOOM as fIe}from"efficient-shell/format";var nG="Scroll",pIe={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"},uIe={none:()=>ir(Zge,{}),"zoom-in":()=>ir(rIe,{}),"zoom-out":()=>ir(aIe,{}),"fade-in":()=>ir(Jge,{}),"fade-out":()=>ir(Qge,{}),"move-up":()=>ir(oIe,{}),"move-down":()=>ir(eIe,{}),reveal:()=>ir(Xge,{}),parallax:()=>ir(tIe,{})},mIe="Effect",sG=aG.filter(e=>e!=="none"),rG=(e,o)=>Mr(It.slice(0,It.indexOf(e)+1).reverse().map(t=>Te(Go.effect,t)),t=>({field:t,set:!0}),t=>({field:t,in:o})),hIe={any:It.map(e=>({field:Te(Go.effect,e),in:sG}))},xIe=It.flatMap(e=>[[[Te(Go.zoom,e)],rG(e,lIe)],[[Te(Go.start,e),Te(Go.end,e)],rG(e,sG)]]),gIe=()=>cm(Go.effect,{label:nG,tileWord:mIe,values:aG,fallback:"none",word:e=>pIe[e],picture:e=>uIe[e](),read:(e,o)=>Pa(e,o).effect}),XT=(e,o,t,r,a)=>lm(e,Ro(t,r,a.min,a.max,a.step,a.default,"%"),(n,s)=>Pa(n,s)[o]);function Ys(){let e={[vl]:iIe(nG,{dot:hIe}),...gIe(),[tx]:sIe(),...XT(Go.zoom,"zoom","Zoom",ir(nIe,{}),fIe),...XT(Go.start,"start","Start",ir(tG,{}),dIe),...XT(Go.end,"end","End",ir(tG,{}),cIe)};return Et(e,xIe)}import{jsx as ut}from"react/jsx-runtime";import{AccentIcon as IIe,ContrastIcon as yIe,EyeIcon as bIe,ExpandIcon as SIe,FinishIcon as wIe,ImagesIcon as CIe,NoSymbolIcon as lG,HoverLiftIcon as vIe,HoverNextImageIcon as kIe,HoverRotateIcon as TIe,HoverZoomIcon as cG,OpacityIcon as PIe}from"efficient-easel/icons";import{customize as EIe,describedAs as dG,group as _Ie}from"efficient-easel/screen/lib/document/box-fields";import{effectTiles as fG}from"efficient-easel/screen/lib/document/effect-tiles";import{deviceField as Vo}from"efficient-easel/screen/lib/document/device-fields";import{NoControlMark as OIe,noControlField as AIe}from"efficient-easel/screen/lib/document/panel-no-control-mark";var Qg=e=>Vo("desktop",_Ie("Hover",{dot:e})),pG=()=>Vo("desktop",EIe()),RIe="What this does when a shopper points at it, or taps it on a phone.",LIe="What this picture does when a shopper points at it. Black and white shows it in grey until then. A phone shows its colour.",FIe="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.",BIe="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.",NIe="When this shows. On card hover shows it while a shopper points at the card. A phone always shows it.",DIe="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.",MIe="Which of the product's pictures the card shows.",HIe="Same finish shows the photos of the finish the card shows, else the first group.",WIe="Whole card hides the words under the photo. Picture keeps the words and swatches in view.",$Ie={none:()=>ut(lG,{}),nextImage:()=>ut(kIe,{}),rotate:()=>ut(TIe,{}),zoom:()=>ut(cG,{}),lift:()=>ut(vIe,{}),mono:()=>ut(yIe,{})};function ZT(e,o){let t=fG({label:c("Hover effect"),options:e.map(r=>({value:r,label:c(mi[r]),picture:$Ie[r]()})),fallback:o});return dG(t,{type:"select",label:"Hover effect",options:e.map(r=>({value:r,label:mi[r]}))})}function uG(){return{[fr]:Qg({field:Mt,in:cy.filter(e=>e!=="none")}),[Mt]:Vo("desktop",{...ZT(cy,"none"),description:RIe})}}function mG(e){let o=PE(e),t=Rp(),r=UF(IE);return{[fr]:Qg({any:[o,t]}),[uo.kind]:Vo("desktop",{...tc(ZT(hE,e),(a,n)=>kE(n??{},e)),description:DIe}),...JT(t),[xE]:AIe({type:"custom",render:()=>ut(OIe,{})},"always"),_cHover:pG(),[uo.angle]:Vo("desktop",io(tc(r,a=>TE(a)),o)),[uo.duration]:Vo("desktop",io(ec("hover"),o)),[uo.delay]:Vo("desktop",io(oc("hover"),o))}}function JT(e){let o=pt("Type",ut(CIe,{}),yE.map(a=>({value:a,label:bE[a]})),Ap.kind),t=ol("Group",ut(wIe,{}),SE.map(a=>({value:a,label:wE[a]})),Ap.group),r=ol("Covers",ut(SIe,{}),CE.map(a=>({value:a,label:vE[a]})),Ap.cover);return{[uo.mediaKind]:Vo("desktop",io({...o,description:MIe},e)),[uo.mediaGroup]:Vo("desktop",io({...t,description:HIe},e)),[uo.cover]:Vo("desktop",io({...r,description:WIe},e))}}function QT(e,o="",t=my.includes(o)){let r=hy(e),a=FE(e);return{[fr]:Qg(r),[uo.kind]:eP(EE,e,LIe),...my.includes(o)?JT(Rp()):{},_cHover:pG(),...t?hG():{},[uo.duration]:Vo("desktop",io(ec("hover"),a)),[uo.delay]:Vo("desktop",io(oc("hover"),a))}}function hG(e=!1){let o=a=>e?a:io(a,LE()),t=Ro("Zoom",ut(cG,{}),hi.min,hi.max,hi.step,hi.min,hi.unit),r=Ro("Darken on hover",ut(PIe,{}),Ya.min,Ya.max,Ya.step,Ya.fallback,Ya.unit);return{[fy.zoom]:Vo("desktop",o(t)),[fy.darken]:Vo("desktop",o(r))}}function eP(e,o,t){let r=Vo("desktop",{...tc(ZT(e,o),a=>AE({[Mt]:a},o,e)),description:t});return Object.assign(r,{[xG]:o})}var xG="sfPictureResting",iG=new WeakMap;function kso(e,o,t){let r=e[uo.kind],a=r?.[xG];if(!r||!a)return e;let n=o.props?.[Mt]==="nextImage",s=n?null:Yp(t.appState,o.props?.id);if(!n&&!Op.includes(String(s?.type??"")))return e;let i=iG.get(e);return i||(i={...e,[uo.kind]:eP(dy,a,FIe)},iG.set(e,i)),i}var UIe="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.",zIe={none:()=>ut(lG,{}),[sy]:()=>ut(IIe,{})},Tso=Vo("desktop",{...dG(fG({label:c("Hover effect"),options:iy.map(e=>({value:e,label:c(ly[e]),picture:zIe[e]()})),fallback:"none"}),{type:"select",label:"Hover effect",options:iy.map(e=>({value:e,label:ly[e]}))}),description:UIe}),GIe=Vo("desktop",{...ol("Show",ut(bIe,{}),[{value:uy,label:"Always"},{value:py,label:"On card hover"}],uy),description:NIe});function gG(){let e={any:[hy("none"),{field:Mt,is:sy},{field:Ln,is:py}]},{[fr]:o,[uo.kind]:t,...r}=QT("none","",!0);return{[fr]:Qg(e),[uo.kind]:t,[Ln]:GIe,...JT(Rp()),...r,...hG(!0)}}var Pso=eP(dy,"none",BIe);import{jsx as jf}from"react/jsx-runtime";import{isNodeList as YIe}from"efficient-easel/data";import{useEasel as qIe}from"efficient-easel/easel";import{hiddenInView as XIe,hiddenKeyOf as tP,hidePatch as ZIe,slotChildName as JIe,slotChildRowName as QIe}from"efficient-easel/draw";var eI=null;function oP(e){eI=e}function IG(){return!!(eI&&eI.state().lockHolder)}function qs(){return eI!==null}var jIe=new Set(["BookingBox","SubmitBox"]);function KIe(e){return typeof e=="string"&&jIe.has(e)}var VIe=O1(KIe,IG);function oI(e,o){return VIe(e)||SS(o)}var tI=(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 eye}from"efficient-easel/screen/lib/document/device-fields";import{NoControlMark as oye}from"efficient-easel/screen/lib/document/panel-no-control-mark";var yG="notCardOfTemplate",bG={not:{context:yG,is:!0}},rP={any:[Bp,bG]},Yso={[yG]:(e,o)=>{let t=Ny(o.appState,e.props?.id);return t===void 0?void 0:t===null}};function rI(e){let o=e.props?.content;return YIe(o)?o:[]}var nI=(e,o)=>XIe(e.props??{},o),tye=(e,o)=>e.props?.[tP(o)]!==void 0;function SG(e,o=()=>!1,t="desktop"){return rI(e).flatMap(r=>typeof r?.props?.id!="string"?[]:rI(r).length&&!nI(r,t)?SG(r,o,t):o(r)?[]:[r])}function rye(e,o,t,r="desktop"){let a=SG(e,t,r).map(i=>({child:i,name:o(i)})),n=new Set(a.map(i=>i.name)),s=new Set;return a.map(({child:i,name:l})=>{let d=l;if(s.has(l)){let f=2;for(;n.has(`${l} ${f}`);)f+=1;d=`${l} ${f}`,n.add(d)}return s.add(l),{id:i.props.id,label:d,shown:!nI(i,r)}})}function aI(e,o,t){let r=a=>t==="desktop"?nI(a,t):tye(a,t);return rI(e).flatMap(a=>r(a)?o(a)?[]:[a,...aI(a,o,t)]:aI(a,o,t))}function aye(e,o){let t={...e};for(let[r,a]of Object.entries(o))a===void 0||r===tP("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 aP(e,o,t){let r=rI(e),a=!1,n=r.map(s=>{if(a)return s;let i=s;if(s?.props?.id===o){let l=aye(s.props,t(s.props));l!==s.props&&(i={...s,props:l})}else i=aP(s,o,t);return a=i!==s,i});return a?{...e,props:{...e.props,content:n}}:e}function wG(e,o,t,r="desktop"){return aP(e,o,a=>r==="desktop"&&nI({props:a},r)===!t?{}:ZIe(a,r,!t))}function nye(e,o,t){return t==="desktop"?wG(e,o,!0,t):aP(e,o,()=>({[tP(t)]:void 0}))}function sye(e,o,t,r,a,n){return JIe(e).trim()?t(e):u_({ownerType:o,owner:r,fields:a,slot:n},xt(e.props))?.label??t(e)}var iye="This page is read-only.";function lye({card:e,ownerType:o,owner:t,fields:r,slot:a,labelOf:n,write:s,readOnly:i,view:l="desktop"}){let d=p=>QIe(p,n,sa,void 0,tI),f=p=>oI(p.type,p),u=rye(e,p=>sye(p,o,d,t,r,a),f,l);return u.length?jf(cl,{parts:u,changed:aI(e,f,l).length>0,shown:p=>u.find(m=>m.id===p)?.shown??!0,disabledReason:i?iye:void 0,onPress:(p,m)=>s(h=>wG(h,p,m,l)),onReset:()=>s(p=>aI(p,f,l).reduce((m,h)=>nye(m,String(h.props.id),l),p))}):jf(oye,{})}function cye(){try{let e=qIe(a=>a),o=e.config.components??{},t=e.selectedItem;if(!t)return null;let r=Ny(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:b_(e.appState,r),slot:I_(e.appState,t.props?.id)??void 0}}catch{return null}}function dye({readOnly:e,view:o}){let t=cye(),r=hr();return t?jf(lye,{...t,view:o,readOnly:e,write:a=>{e||r(n=>{let s={...t.card,props:n},i=a(s);return i===s?null:{content:i.props.content}})}}):jf(cl,{parts:[],changed:!1,shown:()=>!0,onPress:()=>{},onReset:()=>{}})}function qso(e){return io(eye(e,{type:"custom",render:({readOnly:o})=>jf(dye,{readOnly:o,view:e})}),bG)}import{customize as bye}from"efficient-easel/screen/lib/document/box-fields";import{jsx as nP}from"react/jsx-runtime";import{DirectionIcon as fye,LoopMarqueeIcon as pye,NoSymbolIcon as uye}from"efficient-easel/icons";import{customize as mye,describedAs as hye,group as xye}from"efficient-easel/screen/lib/document/box-fields";import{effectTiles as gye}from"efficient-easel/screen/lib/document/effect-tiles";function sP(){return WB("Direction",yk,Tf,"A marquee cannot run diagonally, so the corners are not answers.",nP(fye,{}),HB)}var iP=e=>xye("Loop",e?{dot:e}:void 0),Iye={none:()=>nP(uye,{}),scroll:()=>nP(pye,{})};function yye(){let e=gye({label:c("Loop"),options:sg.map(({value:o,label:t})=>({value:o,label:c(t),picture:Iye[o]()})),fallback:Ik});return hye(e,{type:"select",label:"Loop",options:sg.map(({value:o,label:t})=>({value:o,label:t}))})}function CG(){return{[Gl]:iP(kf),loop:yye(),_cLoop:mye(),scrollDirection:io(sP(),kf),loopDuration:io(Zg({readsSpeed:!1}),kf),loopDelay:io(Jg(),kf)}}var vG={field:Ln,set:!0};function Sye(){let e=gG(),o=[fr,Mt],t=it(e,Object.keys(e).filter(n=>!o.includes(n)&&n!==Ln),Bp),r=it(t,[Ln],vG),a=it(r,[Mt],rP);return it(a,[fr],{any:[rP,vG]})}function sI(e,o=""){switch(e){case"section":case"block":return{...Or(),...Ys()};case"box":return{...Or(),...Ys(),...CG(),...Sye()};case"picture":return{...Or(),...Ys(),...QT(OE(o),o)};case"textPart":return{...Or(),...Ys(),...uG()};case"cards":return{...Or(),...Ys(),...mG(gE(o))};case"marquee":return{...Or(),...Ys(),[Gl]:iP(),_cLoop:bye(),scrollDirection:sP(),loopDuration:Zg({readsSpeed:!0}),loopDelay:Jg()}}}import{blockSizeFieldSet as rbe}from"efficient-easel/screen/lib/document/block-size-fields";import{VIEW_KEY_ACCESS as abe}from"efficient-easel/screen/lib/document/box-fields";import{group as wye}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as Cye,deviceMetaOf as PG}from"efficient-easel/screen/lib/document/device-fields";import{DESIGN_GROUPS as cP,SETTINGS_BUCKETS as vye}from"efficient-easel/panel";import{BUCKET_KEY as Yo,DESIGN_GROUP_KEY as rc}from"efficient-easel/screen/lib/document/field-buckets";var Kf=vye;var kye="Editor only \u2014 not shown live",dP={"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",[kye]:"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"},EG={"AlloyWheelsListing._gCards":"Design","Flex._gLink":"Link","LongRead._gLink":"Link"},_G={"Text._gSpacing":"Size","Heading._gSpacing":"Size"};function kG(e,o,t){let r=`${e}.${o}`;return $(_G,r)??$(EG,r)??$(dP,t)}function Tye(e){return e==="Animation"?[Yo.Animation]:[Yo.Design,rc[e]]}function iI(...e){let o=[];for(let t of e)for(let r of Object.values(t)){let a=PG(r),n=wr(a?a.inner:r),s=n?$(dP,n.label):void 0;if(s)for(let i of Tye(s))o.includes(i)||o.push(i)}return o}var Pio=[...iI(tl({tablet:!0,siteSide:!0}),sl("full"),il(),ll(),bd()),...Object.keys(tl({tablet:!0,siteSide:!0})),...Object.keys(sl("full")),...Object.keys(il()),...Object.keys(ll()),...Object.keys(bd())],Eio=[...iI(rl()),...Object.keys(rl())],_io=[...iI(nl()),...Object.keys(nl())],Oio=[...iI(Or()),...Object.keys(Or())],Aio=Object.keys(UB()),Rio=Object.keys(zB()),Pye={"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)"},OG={Content:["Content"],Size:["Size"],Design:["Design","Style"],Layout:["Layout"],Position:["Position"],Advanced:["Advanced"],Link:["Link"],Anchor:["Anchor"],Animation:["Animation"]},lP={_gAnchor:"repeated the Anchor group heading above it (two tabs, 11.0.0)"};{let e={...tl({tablet:!0,siteSide:!0}),...sl("full"),...il(),...ll(),...rl(),...nl(),...Or()};for(let o of Object.keys(lP)){let t=wr(e[o]),r=t?$(dP,t.label):void 0;if(!t||t.level!==2||!r||!OG[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 Eye=new Set(["_sContent","_sStyle","_sLayout","_sMedia"]),_ye=new Map([[Yo.Design,"Content"],[Yo.Animation,"Animation"],...cP.map(e=>[rc[e],e])]);function Oye(e){let o=`${e}.`;return Object.keys(Pye).filter(t=>t.startsWith(o)).map(t=>t.slice(o.length))}function Aye(e,o){let t=PG(e),r=wye(o);return t?Cye(t.tier,r):r}function Rye(e,o){let t=wr(o);return t?e==="Content"||e==="Animation"?CB(o,t.label):vB(o):o}function TG(e){return e==="Design"?cP:["Animation"]}function lI(e,o){let t=[],r=new Set(Oye(o)),a=new Set,n=!1,s=null;for(let[p,m]of Object.entries(e)){let h=wr(m);if(Eye.has(p))throw new Error(`${o}.${p}: 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 I=_ye.get(p);if(I!==void 0){if(h?.level!==1)throw new Error(`${o}.${p}: that key is reserved for the ${I} heading of the settings panel, but this field is ${h?`a level-${h.level} "${h.label}" header`:"not a header"}, so it cannot serve as one. Rename the section's own field.`);(p===Yo.Design||p===Yo.Animation)&&(n=!0),t.push(s={place:I,entries:[],adopted:!0});continue}if(!h){s||t.push(s={place:"Content",entries:[]}),s.entries.push([p,m]);continue}if(r.has(p)||He(lP,p)){let S=kG(o,p,h.label);if(h.level!==2||!S||!OG[S].includes(h.label))throw new Error(`${o}.${p}: ${r.has(p)?"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-${h.level} "${h.label}" header in the ${S??"(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(p)&&a.add(p),t.push(s={place:S,entries:[],uniform:He(lP,p)});continue}let w=kG(o,p,h.label);if(!w)throw new Error(`${o}.${p}: the inspector group "${h.label}" is not classified in LABEL_GROUP (lib/document/field-groups.ts), so there is no way to say which of ${[...cP,"Animation"].join(" / ")} its controls belong under. Classify it \u2014 an unclassified group silently lands wherever it was declared, which is the whole bug.`);t.push(s={place:w,entries:[[p,h.level===2?m:Aye(m,h.label)]]})}let i=new Set(Object.entries(e).filter(([,p])=>wr(p)).map(([p])=>p));for(let[p,m]of[["BLOCK_KEY_GROUP",_G],["KEY_GROUP",EG]]){let h=Object.keys(m).filter(I=>I.startsWith(`${o}.`)).filter(I=>!i.has(I.slice(o.length+1))&&!r.has(I.slice(o.length+1)));if(h.length)throw new Error(`${o}: ${p} (lib/document/field-groups.ts) lists ${JSON.stringify(h)}, 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 l=n?[]:[...r].filter(p=>!a.has(p));if(l.length)throw new Error(`${o}: RETIRED (lib/document/field-groups.ts) lists ${JSON.stringify(l)}, but this section has no such fold header${l.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(p=>p.entries.length>0).map(p=>p.place)),f=Kf.filter(p=>TG(p).some(m=>d.has(m))),u={};for(let p of f){u[Yo[p]]=th(p,p===f[0]?f:null);for(let m of TG(p)){if(!d.has(m))continue;let h=t.filter(S=>S.place===m),I=h.findIndex(S=>S.adopted);I>0&&h.unshift(...h.splice(I,1));let w=h.filter(S=>S.uniform);if(w.length>0){let S=h.filter(b=>!b.uniform),C=h[0]?.adopted?1:0;h.splice(0,h.length,...S.slice(0,C),...w,...S.slice(C))}p==="Design"&&(u[rc[m]]=vw(m));for(let S of h)for(let[C,b]of S.entries)u[C]=Rye(m,b)}}return u}function AG(e){return Yo.Design in e?e:{[Yo.Design]:th("Design",null),[rc.Content]:vw("Content"),...e}}function RG(e){return Kf.some(o=>Yo[o]in e)}function cI(e){let o=Kf.filter(r=>Yo[r]in e);if(o.length===0)return e;let t={...e};for(let r of o)t[Yo[r]]=th(r,r===o[0]?o:null);return t}import{jsx as dI}from"react/jsx-runtime";import{WidthIcon as Lye}from"efficient-easel/icons";import{SettingsField as Fye,SettingsSwitch as Bye}from"efficient-easel/panel";import{group as Nye,iconOf as Dye,sharedStyleKinds as Mye}from"efficient-easel/screen/lib/document/box-fields";var Hye="Gutter";function Wye({value:e,onChange:o,labelId:t}){let r=jg(Fc()),a=Df({[Ks]:e})??r,n=s=>o(s?r?void 0:PT:TT);return dI(Fye,{label:c(Hye),labelId:t,icon:Dye(dI(Lye,{})),action:dI(Bye,{checked:a,onChange:n,ariaLabelledBy:t})})}function LG(){return Mye({_gWidth:Nye(tn),[Ks]:{type:"custom",render:({value:e,onChange:o,id:t,name:r})=>dI(Wye,{value:e,onChange:o,labelId:`${t??r??Ks}-label`})}})}import{jsx as pP}from"react/jsx-runtime";import{group as $ye,sharedStyleKinds as BG}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as Uye}from"efficient-easel/screen/lib/document/device-fields";var zye="Content cannot be wider than the background.",fP=e=>c(e==="content"?"Content width":"Full width");function NG(e){let{siteWidth:o,sectionBackgroundWidth:t,sectionContentWidth:r,themeFromDocument:a}=fe(),n=Y(o)??je.default;return e.drawsFullOnItsOwn?{px:n,background:"full",content:"full"}:{px:n,background:(a?null:t)??"full",content:(a?null:r)??"content"}}var Gye={read:is},jye={read:is,drawsFullOnItsOwn:!0},Kye={read:FF,clearOnContent:{fullWidth:void 0}};function Vye({source:e}){let o=e.read(wo()),t=hr(),r=NG(e);return pP(Ch,{value:o.background??r.background,changed:o.background!==null,detail:fP(r.background),onChange:a=>t(NF(a)),onReset:()=>t(aw("background"))})}function Yye({source:e}){let o=e.read(wo()),t=hr(),r=l=>t({...l,...e.clearOnContent}),a=NG(e),n=(o.background??a.background)==="content",s=al({row:rw,label:iC,grid:{min:je.min,max:n?a.px:je.max,step:je.step},valueKey:Fe.contentMax,view:"desktop",numbersIn:()=>o.contentMax!==null}),i=o.content??a.content;return pP(vh,{mode:n&&i==="full"?"content":i,px:o.contentMax??a.px,max:n?a.px:je.max,changed:o.content!==null,detail:a.content==="full"?fP("full"):`${fP("content")} ${a.px}px`,fullClosed:n,hint:n?zye:void 0,onMode:l=>r(DF(l)),onPx:l=>r({...MF(l),...s?.unitPatch(!1)}),...s?{length:s}:{},onReset:()=>r(aw("content"))})}var FG=(e,o)=>Uye("desktop",{type:"custom",render:()=>pP(e,{source:o})}),DG=e=>({[Fe.background]:FG(Vye,e),[Fe.content]:FG(Yye,e),[Fe.contentMax]:yd(),...ls(rw,Fe.content)});function MG(e){let o=e?.drawsFullOnItsOwn?jye:Gye;return BG({_gWidth:$ye(tn),...DG(o)})}function elo(){return BG({...DG(Kye),fullWidth:yd()})}import{deviceMetaOf as WG}from"efficient-easel/screen/lib/document/device-fields";import{noControlMetaOf as qye}from"efficient-easel/screen/lib/document/panel-no-control-mark";function Xye(e,o){let t=WG(o),r=t?t.inner:o;if(wr(r)||r?.customize===!0)return!1;if(r?.type==="slot")return!0;let a=qye(r);return a==="always"?!1:a==="authored-copy"?Xn(e):!0}function HG(e){let o=WG(e),t=o?o.inner:e,r=wr(t);return r?wB(t)?0:r.level:null}function Zye(e,o,t){return t?o===0&&e===Yo.Design||o===1&&e===rc.Content:!1}var Jye=new WeakMap,Qye=new WeakMap;function $G(e,o="section"){let t=o==="page"?Qye:Jye,r=t.get(e);if(r)return r;let a=Object.entries(e).map(([u,p])=>({key:u,field:p,level:HG(p),draws:Xye(u,p)||o==="page"&&HG(p)===null&&Ww(u,p)})),n=o==="section"&&a.some(u=>Ww(u.key,u.field)),s=new Set;for(let u=0;u<a.length;u++){let p=a[u].level;if(p===null)continue;let m=0;for(let h=u+1;h<a.length;h++){let I=a[h].level;if(I!==null&&I<=p)break;a[h].draws&&(m+=1)}m===0&&!Zye(a[u].key,p,n)&&s.add(a[u].key)}let i=n&&RG(e),l=i&&!(Yo.Design in e);if(!s.size&&!l)return t.set(e,e),e;let d={};for(let u of a)s.has(u.key)||(d[u.key]=u.field);let f=cI(i?AG(d):d);return t.set(e,f),f}import{isShown as ebe,showWhenFactReaders as obe}from"efficient-shell/format";var UG=new WeakMap,tbe=new Set(Object.values(Yo));function zG(e,o,t,r={}){if(!e)return e;let a=o?.props??{},n=a.id,s=obe(r,o,t),i=nA(t,{...s,parentOffersPositions:()=>{let h=oa(t.appState,n);return h===void 0?void 0:OA(h,n)},parentTileSlot:()=>{let h=oa(t.appState,n);return h===void 0?void 0:Fb(h,n)},heroGroupDepth:()=>au(t.appState?.data,typeof n=="string"?n:"")}),l=[];for(let[h,I]of Object.entries(e)){let w=vc(I);!w||Du(w,"device")||ebe(w,a,i)||l.push(h)}if(l.length===0)return e;let d=UG.get(e);d||UG.set(e,d=new Map);let f=l.join("\0"),u=d.get(f);if(u)return u;let p=new Set(l),m={};for(let[h,I]of Object.entries(e))p.has(h)||(m[h]=I);return l.some(h=>tbe.has(h))&&(m=cI(m)),d.set(f,m),m}var GG={spacingFields:LB,sidesPaddingFields:tl,sectionShapeFields:nl,cardShapeFields:_B,cellWidthFields:RB,widthField:sl,boxGutterFields:LG,sectionOwnWidthFields:MG,heightFields:il,anchorFields:ll,customCssFields:NB,stickFields:bd,sectionThemeFields:rl,animationTabFields:sI,blockSizeFields:({tablet:e,...o}={})=>rbe({...o,shorten:!0,say:zm,lengthUnits:ya,...e?{phone:abe}:{}}),assignSectionGroups:lI,dropEmptyHeadings:$G,rowsShownForNode:zG,SECTION_THEME_FOLLOW_LABEL:xS,BLOCK_THEME_FOLLOW_LABEL:YR,PartAnchors:k6};function fI(e,o,t){if(!e)return e;let r=!1,a={};for(let[n,s]of Object.entries(e)){let i=s;if(s&&typeof s=="object")if(s.type==="slot")if(s.allow){let l=s.allow.filter(o);l.length!==s.allow.length&&(i={...s,allow:l})}else{let l=new Set(s.disallow??[]),d=t.filter(f=>!l.has(f));d.length>0&&(i={...s,disallow:[...s.disallow??[],...d]})}else{let l=fI(s.arrayFields,o,t),d=fI(s.objectFields,o,t);(l!==s.arrayFields||d!==s.objectFields)&&(i={...s,...l?{arrayFields:l}:null,...d?{objectFields:d}:null})}i!==s&&(r=!0),a[n]=i}return r?a:e}function nbe(e,o,t){let r={};for(let[i,l]of Object.entries(o.fields??{}))r[i]=l&&typeof l=="object"&&l.type==="slot"?{...l}:l;let a={...o,...o.fields?{fields:r}:null},n=Yz(e,a,t),s=Object.keys(r).filter(i=>n.fields?.[i]!==r[i]);if(s.length>0)throw new Error(`efficient-web-builder: blocks.host["${e}"] declares ${s.map(i=>`"${i}"`).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 sbe(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];ibe(e,o,a);for(let n of a){let s=n.components.filter(Gp);if(s.length>0)throw new Error(`efficient-web-builder: the category "${n.key}" lists ${s.map(i=>`"${i}"`).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(!jp(n))continue;let s=zp(n).filter(i=>!r.has(i.type)).map(i=>`"${i.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 uP(e,o,t,r=""){let a=[];for(let[n,s]of Object.entries(t??{})){if(!s||typeof s!="object")continue;let i=`${r}${n}`;s.type==="slot"&&s.allow?.includes(e)&&a.push(`${o}.${i}`),a.push(...uP(e,o,s.arrayFields,`${i}.`),...uP(e,o,s.objectFields,`${i}.`))}return a}function ibe(e,o,t){let r=n=>{throw new Error(`efficient-web-builder: ${n} names "${Si}". 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(Si)&&r(`the category "${n.key}"`);let a=[...Object.entries(e.components??{}),...o.map(([n,s])=>[n,s])];for(let[n,s]of a){let i=uP(Si,n,s?.fields);i.length>0&&r(`the slot ${i.map(l=>`"${l}"`).join(", ")}, whose allow list`)}}function jG(e,o){let t=Object.entries(o?.host??{}),r=o?.categories??[],a=yT(o);if(sbe(e,t,r),!a&&t.length===0&&r.length===0)return e;let n=e.components,s=t.map(([u])=>u).filter(u=>u in n);if(s.length>0)throw new Error(`efficient-web-builder: blocks.host registers ${s.map(u=>`"${u}"`).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 i=u=>a?a.offers(u):!0,l=Object.keys(n).filter(u=>!i(u)),d={};for(let[u,p]of Object.entries(n)){let m=a?fI(p?.fields,i,l):p?.fields;d[u]=m===p?.fields?p:{...p,fields:m}}if(t.length>0){let u=new Set(t.map(([h])=>h)),p=e.categories?.structure?.components??[],m={...KT(Object.keys(n),p,u),isHostBlock:h=>u.has(h),inspector:GG};for(let[h,I]of t){let w=nbe(h,I,m),S=fI(w.fields,i,l);d[h]=S===w.fields?w:{...w,fields:S}}}let f=[];for(let[u,p]of Object.entries(e.categories??{})){let m=p?.components??[],h=m.filter(i);h.length===m.length?f.push([u,p]):h.length>0&&f.push([u,{...p,components:h}])}for(let u of r){let p=u.components.filter(w=>w in d&&i(w));if(p.length===0)continue;let m=f.find(([w])=>w===u.key);if(m){let[,w]=m,S=new Set(w.components??[]);m[1]={...w,components:[...w.components??[],...p.filter(C=>!S.has(C))]};continue}let h=[u.key,{title:u.title,components:p}],I=u.before?f.findIndex(([w])=>w===u.before):-1;I===-1?f.push(h):f.splice(I,0,h)}return{...e,components:d,categories:Object.fromEntries(f)}}function KG(){let e=dbe();return lbe(()=>jG(cbe(e),Gi(e)),[e])}import{jsx as xP,Fragment as Obe,jsxs as Abe}from"react/jsx-runtime";import{useContext as Rbe,useEffect as Lbe,useMemo as gI,useRef as pj}from"react";import{EaselCanvas as Fbe,repeatCopyAt as Bbe,useEasel as Nbe}from"efficient-easel/easel";import{jsx as mP}from"react/jsx-runtime";import{useEffect as mbe,useState as hbe}from"react";import{Banner as xbe}from"efficient-shell/ui";import{useSyncExternalStore as fbe}from"react";import{useScreenDocument as pbe}from"efficient-easel/screen/components/ScreenDocumentContext";var ube=()=>()=>{},VG=()=>null;function pI(e){return fbe(e?e.subscribe:ube,e?e.state:VG,e?e.state:VG)}function uI(){let{adapter:e}=pbe();return e?.pinnedChrome}var mI={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."},gbe={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."},Ibe=mI.load,ybe=mI.lock,bbe=mI.conflict,Sbe=mI.save;function wbe(e){if(!e)return null;if(e.loadFailed)return c(Ibe);if(e.lockHolder)return c(ybe,{name:e.lockHolder.name||c("Somebody else")});if(e.conflict)return c(bbe);if(e.saveFailed)return c(Sbe);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(gbe[o.problem],{section:t,name:r})}function Cbe({report:e}){let o=wbe(pI(e)),[t,r]=hbe(null);return mbe(()=>{o||r(null)},[o]),!o||t===o?null:mP("aside",{className:"sf-canvas-notice",children:mP(xbe,{tone:"warning",onDismiss:()=>r(o),children:o})})}function YG(){return mP(Cbe,{report:uI()})}import{jsx as xI}from"react/jsx-runtime";import{useState as dj}from"react";import{Banner as kbe,Button as Tbe}from"efficient-shell/ui";import{UndoIcon as Pbe}from"efficient-shell/icons/efficient";import{useScreenDocument as Ebe}from"efficient-easel/screen/components/ScreenDocumentContext";import{useSyncExternalStore as ZG}from"react";var Vf=!1,ac=null,hP=new Set;function qf(){for(let e of hP)e()}function JG(e){return hP.add(e),()=>{hP.delete(e)}}function QG(){Vf||(Vf=!0,qf())}function ej(){Vf&&(Vf=!1,qf())}function qG(){return Vf}function oj(){return ZG(JG,qG,qG)}function XG(){return ac}function hI(){ac&&(ac=null,qf())}function tj(){return ZG(JG,XG,XG)}var Yf=class extends Error{constructor(){super("The editor's last changes could not be saved, so nothing was restored."),this.name="HeldEditsNotSaved"}};async function rj(e,o,t,{flushSave:r,reload:a}){if(!await r())throw new Yf;let n=await e.restore(o,t);return mm(n.liveState),a(),n}async function aj({access:e,version:o,page:t,...r}){let a=await rj(e,o.id,t?{page:t.id}:{},r);ac={title:vbe(o,t??null),undo:a.undo},qf()}async function nj({access:e,...o}){let t=ac?.undo;t&&(await rj(e,t,{},o),ac=null,qf())}function sj(e){return e.name?e.name:e.kind==="draft_before_restore"?c("Draft before restore"):c("Version {n}",{n:e.number})}function vbe(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 ij(e){let o=e.changes.filter(r=>r.kind==="page").length,t=[...o?[ct("{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(qy(),{type:"conjunction"}).format(t)}catch{return t.join(", ")}}function lj(e){return e.change==="take_down"?c("{name} (taken down)",{name:e.name}):e.name}function cj(e,o=new Date){let t=new Date(e);if(Number.isNaN(t.getTime()))return"";let r=qy(),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 _be}from"efficient-easel/easel";function fj(){let e=tj(),{adapter:o,flushSave:t,reloadFromServer:r}=Ebe(),a=o.siteVersions,[n,s]=dj(!1),[i,l]=dj(!1),d=async()=>{if(!(!a||n)){s(!0),l(!1);try{await nj({access:a,flushSave:t,reload:r})}catch{l(!0)}finally{s(!1)}}},f=_be({onPress:()=>{d()},busy:n});return e?xI("aside",{className:"sf-canvas-notice",children:xI(kbe,{tone:i?"danger":"info",title:e.title,onDismiss:hI,action:a&&e.undo?xI(Tbe,{variant:"secondary",size:"sm",leftIcon:xI(Pbe,{}),loading:f.busy,disabled:f.busy,onClick:f.onPress,children:c("Undo")}):void 0,children:i?c("Undo did not work. Nothing changed. Try again."):c("Check it with Preview. Press Publish to put it live.")})}):null}import{decodePartId as Dbe,REPEAT_ATTRIBUTE as gP,REPEAT_INDEX_ATTRIBUTE as IP}from"efficient-easel/draw";import{usePreviewParts as Mbe}from"efficient-easel/draw/client";import{ScreenDocumentContext as Hbe}from"efficient-easel/screen/components/ScreenDocumentContext";function uj(e){let{mirrorHostStyles:o}=Bc(),t=o1(),r=yP(),a=Fc(),n=Rbe(Hbe),s=Ru(n?.docId??null),i=Nbe(w=>w.appState.data),l=M1(s,i),d=JSON.stringify(l),f=gI(()=>l,[d]),u=gI(()=>({...e.metadata??t??{},...r,...f}),[e.metadata,t,r,f]);Lbe(()=>($T(a),()=>$T(null)),[a]);let p=pj(null),m=Wbe(p),{onDocument:h}=e,I=w=>{p.current=w,h?.(w)};return Abe(Obe,{children:[xP(fj,{}),xP(YG,{}),xP(Fbe,{...e,onDocument:I,typing:m,metadata:u,height:"fill",mirrorStyles:o,frameWrapper:Kh})]})}function yP(){let{sectionBackgroundWidth:e,themeFromDocument:o}=fe(),t=Fc();return gI(()=>WF(o?null:e,t),[e,t,o])}function Wbe(e){let o=Cu(),t=Mbe(),r=pj({parts:t});return r.current={parts:t},gI(()=>{let a=(n,s)=>{let i=ph(n,o),l,d=null,f=s??(i?null:Xw(null,e.current,n)),u=!i&&f?Bbe(f):null,p=u?Dbe(n):null;if(u&&f&&p?.propKey){i=mh({...u,nodeId:p.nodeId,key:p.propKey},o),l=p.propKey;let w=f.closest(`[${gP}][${IP}]`),S=`[${gP}="${uh(w?.getAttribute(gP)??"")}"][${IP}="${uh(w?.getAttribute(IP)??"")}"]`;d=()=>(f.ownerDocument??e.current)?.querySelector(S)??null}if(!i)return null;let m=f,h=()=>(m=Xw(m,d?d():m?.ownerDocument??e.current,n),m),I=h();return I?{element:h,value:i.value,rules:i.rules,multiline:i.multiline,skip:i.skip,write:i.write,key:l,toolbar:{offered:i.offered,colors:i.offered.length>0?$i(Yu(I)):void 0,colorNameOf:Ot}}:null};return{at:n=>{let s=n.closest(`[${co}]`),i=s?.getAttribute(co);return s&&i?a(i,s):null},atSelection:()=>{let n=r.current.parts.selectedPartId;return n?a(n,null):null},onCopyText:n=>wN(n,o),copyValue:n=>SN(n,o),onChange:n=>{if(!n.typing){Zw(null);return}let s=n.element.closest(`[${co}]`)?.getAttribute(co)??null;Zw(s),s&&r.current.parts.selectedPartId!==s&&r.current.parts.select(s)}}},[o,e])}function xj({open:e,onClose:o,takenSlugs:t,onCreated:r}){let a=Kbe(),{adapter:n,siteId:s,templateId:i}=jbe(),l=Ge(a).pages,d=!i&&!!(l.starters&&l.createFromStarter),f=zbe(()=>s?{siteId:s}:{},[s]),u=KG(),p=yP(),[m,h]=SP(null),[I,w]=SP(ql),[S,C]=SP(null),b=Gbe(null),y=Ube();$be(()=>{if(!e)return;if(w(ql),!d){h([]);return}let _=!0;return h(null),l.starters(f).then(P=>_&&h(P),()=>{_&&(h([]),hj.error(c("Couldn\u2019t load the pages \u2014 please retry.")))}),()=>{_=!1}},[e,d,l,f]);let v=async(_,P)=>{if(!S){C(_);try{r(await P())}catch{hj.error(c("Couldn\u2019t add the page \u2014 please retry."))}finally{C(null)}}},L=()=>{if(!n.createPage)return;let _=c("New page");v("blank",()=>n.createPage({slug:mj(_,t),title:_,layout:{}}))},A=_=>{v(_.id,()=>l.createFromStarter(_.id,{title:_.title,slug:mj(_.slug,t),...f}))},D=m??[],T=M6(D),F=H6(I,D),k=bP("nav",{"aria-label":c("Pages"),className:"sf-add-page-nav",children:[Nt(wP,{label:c("All pages"),active:I===ql,onClick:()=>w(ql)}),T.map(_=>Nt(wP,{label:c(_.label),active:I===_.key,onClick:()=>w(_.key)},_.key)),hT(D).length>0?Nt("div",{className:"sf-add-page-group",children:Nt(wP,{label:c("From your template"),active:I===Ng,onClick:()=>w(Ng)})}):null]});return Nt(Ybe,{open:e,onClose:o,size:"full",title:c("Add page"),initialFocus:b,children:Nt(eSe,{sidebarTop:bP(Qbe,{onClick:L,disabled:!n.createPage||S!==null,children:[Nt(Vbe,{"aria-hidden":!0}),c("Blank page")]}),sidebar:k,children:bP("div",{ref:b,tabIndex:-1,role:"region","aria-labelledby":y,className:"sf-add-page",children:[Nt(oSe,{id:y,level:2,as:"h3",children:c("Pages for your site")}),Nt(Jbe,{tone:"default",className:"sf-add-page-sub",children:c("Choose a page and change the text, images and more.")}),m===null?Nt(Zbe,{label:c("Loading\u2026")}):F.length===0?Nt(qbe,{title:c("No pages to start from"),description:c("Start with a blank page, then add sections.")}):Nt(Xbe,{cols:1,smCols:2,lgCols:3,gap:8,children:F.map(_=>Nt(U6,{starter:_,config:u,metadata:p,busy:S===_.id,onAdd:A},_.id))})]})})})}import{jsx as tSe}from"react/jsx-runtime";import{createContext as rSe,useContext as gj,useEffect as aSe,useRef as Ij}from"react";var CP=rSe(null);function jco({open:e,children:o}){let t=Ij(!!e);return tSe(CP.Provider,{value:t,children:o})}function yj(){let e=gj(CP);return()=>e?.current?(e.current=!1,!0):!1}function bj(e){let o=gj(CP),t=Ij(e);t.current=e,aSe(()=>{o?.current&&(t.current.setView("pages"),t.current.reveal())},[o])}var Tj="sf-editor-pages-collapsed-groups";function wSe(){let e=kP(),{siteId:o,templateId:t}=Pj(),r=Ge(e).pages;if(!(!r.duplicate||t))return(a,n)=>r.duplicate(a.id,{...n,...o?{siteId:o}:{}})}function Ej({onNavigate:e,onClose:o,activeSurface:t,onPreviewSurface:r}){let a=kP().chrome?.pageRows,n=ySe(),{adapter:s,capabilities:i,ready:l,currentSlug:d}=Pj(),f=bl(),{rows:u,reload:p,setRows:m,getRows:h}=Md(),[I,w]=Xs(""),[S,C]=Xs(!1),[b,y]=Xs(null),[v,L]=Xs(!1),A=!!Ge(kP()).pages.createFromStarter,D=wSe(),[T,F]=Xs(null),[k,_]=Xs(()=>{if(typeof window>"u")return new Set;try{let z=window.localStorage.getItem(Tj);return new Set(z?JSON.parse(z):[])}catch{return new Set}});Sj(()=>{try{window.localStorage.setItem(Tj,JSON.stringify([...k]))}catch{}},[k]);let P=z=>_(ce=>{let Ce=new Set(ce);return Ce.has(z)?Ce.delete(z):Ce.add(z),Ce}),O=wj(()=>oA(u??[]),[u]),W=I.trim().toLowerCase(),G=z=>!W||z.toLowerCase().includes(W),Z=z=>W?!0:!k.has(z),X=wj(()=>new Set((u??[]).map(z=>z.slug)),[u]),ne=()=>{if(i.pageCreationInAdminForm&&!A){n.send("storefront-editor:new-page");return}y(null),L(!0)},ve=yj();Sj(()=>{ve()&&ne()},[]);let oe=i.hasSiteSettings&&!!s.createPage,ke=async()=>{if(!(!l||S||!s.createPage)){C(!0),y(null);try{let z=await s.createPage(gL(c("New popup"),X));await p(),e(z.slug)}catch{y(c("Couldn\u2019t add the popup \u2014 please retry."))}finally{C(!1)}}},Oe=iSe(null),[Ae,Re]=Xs(null),nt=()=>{if(!oe)return ne();if(Ae)return Re(null);let z=Oe.current?.getBoundingClientRect();z&&Re({top:z.bottom+6,right:Math.max(8,window.innerWidth-z.right)})},Xo=z=>{let ce=u??[],Ce=s.deletePage;if(!l||S||!Ce||ce.length<=1)return;let So=ce.findIndex(Mo=>Mo.id===z.id),mo=ce.filter(Mo=>Mo.id!==z.id),st=z.slug===d;Gh(z.id,!0),m(mo),y(null),st&&mo[0]&&e(mo[0].slug);let Xe=()=>{Gh(z.id,!1);let Mo=h()??[];if(Mo.some(mt=>mt.id===z.id))return;let Fr=[...Mo];Fr.splice(Math.max(0,Math.min(So,Fr.length)),0,z),m(Fr)};vj.undoable(c("Deleted \u201C{name}\u201D",{name:z.label}),{actionLabel:c("Undo"),commit:async Mo=>{await Ce(z.id,Mo),Gh(z.id,!1)},undo:()=>{Xe(),st&&e(z.slug)},onFail:()=>{Xe(),vj.error(c("Couldn\u2019t delete the page \u2014 please retry."))}})},Zo=z=>n.send("storefront-editor:open-page",{slug:z}),bo=z=>{if(!G(z.label))return null;let ce=!t&&z.slug===d,Ce=i.canDeletePagesInline&&(u??[]).length>1,So=jn(z),mo=eA(z),st=[...So?[{label:c("Dynamic"),tone:"info"}]:[],...mo?[{label:c("Lightbox"),tone:"success"}]:[],...z.draft?[{label:c("draft"),tone:"draft"}]:[]],Xe=st.length>0?st:void 0,Mo=!!D&&bSe(z),Fr=Mo||i.pageCreationInAdminForm||Ce?II(nSe,{children:[Mo&&$e(yI,{kind:"plain",label:c("Duplicate \u201C{name}\u201D",{name:z.label}),disabled:S,onClick:()=>F(z),children:$e(hSe,{size:13})}),i.pageCreationInAdminForm&&$e(yI,{kind:"plain",label:c("Page settings for \u201C{name}\u201D",{name:z.label}),onClick:()=>Zo(z.slug),children:$e(gSe,{size:13})}),Ce&&$e(yI,{kind:"delete",label:c("Delete \u201C{name}\u201D",{name:z.label}),disabled:S,onClick:()=>Xo(z),children:$e(vP,{name:"trash",size:13,strokeWidth:1.7,rounded:!0})})]}):void 0;return $e(kj,{icon:$e(xSe,{size:14}),name:z.label,selected:ce,onSelect:()=>e(z.slug),badge:Xe,actions:Fr,rowProps:{"data-page-slug":z.slug}},z.id)},Do=(z,ce,Ce)=>{let So=Ce.filter(Boolean);if(So.length===0)return null;let mo=Z(z);return II(sSe,{children:[$e(uSe,{count:So.length,countLabel:ct("{n} page","{n} pages",So.length),expanded:mo,onToggle:()=>P(z),children:ce}),mo&&So]},z)},Eo=(a?.rows??[]).filter(z=>G(z.label)).map(z=>{let ce=t===z.key;return $e(kj,{icon:z.icon,name:z.label,selected:ce,onSelect:()=>r(z.key),badge:{label:c("Preview"),tone:"warning"},actions:$e(yI,{kind:"plain",label:c("Open the {name} in a new tab",{name:z.label}),onClick:()=>window.open(z.href,"_blank","noopener,noreferrer"),children:$e(vP,{name:"external-link",size:13,strokeWidth:1.7,rounded:!0})}),rowProps:{"data-shop-surface":z.key}},z.key)}),ue=i.hasSiteSettings&&!!a,no=(()=>{if(u===null)return null;let z=[],ce=!1;for(let Ce of O){ue&&!ce&&Ce.key.startsWith("system:")&&(z.push(Do("shop",a.title,Eo)),ce=!0);let So=Ce.key===vb||Ce.label===Cb?c(Ce.label):Ce.label;z.push(Do(Ce.key,So,Ce.rows.map(bo)))}return ue&&!ce&&z.push(Do("shop",a.title,Eo)),z})();return II("div",{className:"sf-pages",children:[$e(lSe,{icon:$e(ISe,{}),title:c("Pages"),context:f,actions:$e(cSe,{buttonRef:Oe,label:oe?c("Add"):c("New page"),hasPopup:oe?"menu":void 0,expanded:oe?Ae!==null:void 0,onClick:nt,children:$e(mSe,{size:15})})}),Ae&&$e(fSe,{portal:!0,style:{top:Ae.top,right:Ae.right},onClose:()=>Re(null),children:II("div",{role:"menu","aria-label":c("Add"),children:[$e(Cj,{role:"menuitem",onClick:()=>{Re(null),ne()},children:c("Page")}),$e(Cj,{role:"menuitem",disabled:S,onClick:()=>{Re(null),ke()},children:c("Popup")})]})}),$e("div",{className:"sf-pages-find",children:$e(dSe,{type:"search",leftIcon:$e(vP,{name:"search",size:14,rounded:!0}),placeholder:c("Search all pages\u2026"),value:I,onChange:z=>w(z.target.value),"aria-label":c("Search all pages")})}),b&&!v&&$e("div",{className:"sf-note sf-note--error",role:"alert",children:b}),no===null?$e("div",{className:"sf-note",children:c("Loading\u2026")}):no.some(Boolean)?$e(pSe,{ariaLabel:c("Pages"),className:"sf-scroll",children:no}):$e("div",{className:"sf-note",children:I.trim()?c("No pages match your search"):c("No pages yet. Add one with + above.")}),D&&T&&$e(SSe,{source:{title:T.label,slug:T.slug},taken:X,host:xu(),duplicate:z=>D(T,z),onClose:()=>F(null),onDuplicated:z=>{F(null),p(),e(z.slug)}},T.id),v?$e(xj,{open:!0,onClose:()=>L(!1),takenSlugs:X,onCreated:z=>{L(!1),p(),e(z.slug)}}):null]})}import{jsx as Aj}from"react/jsx-runtime";import{createContext as vSe,useCallback as kSe,useContext as TSe,useMemo as PSe,useState as ESe}from"react";import{CanvasChromeContext as _Se}from"efficient-easel/easel";import{useSelectHandler as OSe}from"efficient-easel/draw/client";import{parseHexColor as CSe}from"efficient-shell/format";var bI=["chat-bubble-left-right","chat-bubble-oval-left-ellipsis","chat","megaphone","phone","sparkles"],nc=bI[0];var Zs="right";function SI(e){return bI.includes(e??"")?e:nc}function _j(e){return e==="left"?"left":Zs}function Oj(e){return e&&CSe(e)===e.toLowerCase()?e.toLowerCase():""}var Rj="chat",wI={enabled:!0,title:"",subtitle:"",greeting:"",launcherColor:"",launcherIcon:"",launcherPosition:Zs,launcherLabel:"",showOnPhones:!0};function Cdo(e){return{enabled:e.enabled,title:e.title,subtitle:e.subtitle,greeting:e.greeting,launcherColor:Oj(e.launcherColor),launcherIcon:e.launcherIcon?SI(e.launcherIcon):"",launcherPosition:_j(e.launcherPosition),launcherLabel:e.launcherLabel??"",showOnPhones:e.showOnPhones!==!1}}var Lj=vSe({chat:wI,setChat:()=>{},setSelected:()=>{},setSelectHandler:()=>{}});function vdo({children:e,chat:o=wI,onChatChange:t}){let[r,a]=ESe(!1),n=kSe(d=>t?.(d),[t]),{select:s,setSelectHandler:i}=OSe(),l=PSe(()=>({selected:()=>r?Rj:null,select:d=>d===Rj&&s()}),[r,s]);return Aj(Lj.Provider,{value:{chat:o,setChat:n,setSelected:a,setSelectHandler:i},children:Aj(_Se.Provider,{value:l,children:e})})}var CI=()=>TSe(Lj);import{jsx as TP}from"react/jsx-runtime";import{DesktopIcon as ASe,PhoneIcon as RSe,TabletIcon as LSe}from"efficient-easel/icons";import{VIEW_TIERS as FSe,VIEW_TIER_LABEL as BSe}from"efficient-easel/draw";var NSe={desktop:TP(ASe,{}),tablet:TP(LSe,{}),mobile:TP(RSe,{})},Fj=FSe.map(e=>({id:e,get label(){return c(BSe[e])},icon:NSe[e]}));import{PreviewDeviceContext as GPe}from"efficient-easel/draw/client";import{jsx as DSe}from"react/jsx-runtime";import{createContext as MSe,useCallback as Bj,useContext as HSe,useMemo as WSe,useRef as $Se}from"react";var USe=Object.fromEntries(Su.map(e=>[e,{value:"",error:null}])),Nj=MSe({links:KO,rows:USe,canSave:!1,saveLink:async()=>({ok:!1,error:"There is no website to save to."}),openPanel:()=>{},setOpenHandler:()=>{}});function Fdo({children:e,value:o}){let t=$Se(()=>{}),r=Bj(()=>t.current(),[]),a=Bj(s=>{t.current=s},[]),n=WSe(()=>({...o,openPanel:r,setOpenHandler:a}),[o,r,a]);return DSe(Nj.Provider,{value:n,children:e})}var Xf=()=>HSe(Nj);import{jsx as zSe}from"react/jsx-runtime";import{createContext as GSe,useContext as jSe,useMemo as KSe,useState as VSe}from"react";var Dj=GSe(null);function Mdo({children:e}){let[o,t]=VSe(null),r=KSe(()=>({surface:o,setSurface:t}),[o]);return zSe(Dj.Provider,{value:r,children:e})}function Mj(){return jSe(Dj)??{surface:null,setSurface:()=>{}}}import{createPreviewSelectionContext as YSe}from"efficient-easel/draw/client";var{Provider:$do,useSelection:vI}=YSe("selectedHeroPart");import{jsx as Ne,jsxs as vn,Fragment as QK}from"react/jsx-runtime";import{useEasel as yke,useRootFields as bke}from"efficient-easel/easel";import{EmptyState as Ske}from"efficient-shell/ui";function Hj({kind:e,pageName:o}){return{name:o?.trim()||c("This page"),kindLabel:jn({kind:e})?c("Template"):c("Page")}}import{headWords as r8,InspectorHead as wke,InspectorIconButton as e8}from"efficient-easel/chrome";import{DuplicateIcon as Cke,TrashIcon as vke}from"efficient-easel/icons";import{panelFieldsOf as kke}from"efficient-easel/screen/lib/document/panel-fields";import{jsx as H,Fragment as ye,jsxs as we}from"react/jsx-runtime";import{BlockBannerIcon as ZSe,BlockBoxIcon as JSe,BlockButtonIcon as QSe,BlockDividerIcon as $j,BlockFooterIcon as Uj,BlockHeadingIcon as ewe,BlockProductIcon as owe,BlockSocialIcon as twe,BlockTextIcon as rwe,CardPaymentIcon as awe,ChatIcon as nwe,AccountIcon as swe,GlobeIcon as iwe,GridIcon as lwe,ImageIcon as EP,MapIcon as cwe,MediaIcon as dwe,PageIcon as fwe}from"efficient-easel/icons";import{jsx as PP,Fragment as qSe,jsxs as XSe}from"react/jsx-runtime";var Wj=XSe(qSe,{children:[PP("circle",{cx:"9",cy:"20",r:"1.3"}),PP("circle",{cx:"18",cy:"20",r:"1.3"}),PP("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 pwe={header:we(ye,{children:[H("rect",{x:"3",y:"5",width:"18",height:"14",rx:"2"}),H("path",{d:"M3 9.5h18"})]}),social:we(ye,{children:[H("circle",{cx:"6",cy:"12",r:"2.5"}),H("circle",{cx:"18",cy:"6",r:"2.5"}),H("circle",{cx:"18",cy:"18",r:"2.5"}),H("path",{d:"M8.2 10.8l7.6-3.6M8.2 13.2l7.6 3.6"})]}),ticker:we(ye,{children:[H("rect",{x:"3",y:"8.5",width:"18",height:"7",rx:"2"}),H("path",{d:"M6 12h3.5M11.5 12h2M15.5 12h2.5"})]}),FooterLogo:we(ye,{children:[H("path",{d:"M4 15.5h6M4 18h4"}),H("path",{d:"M14 8.5l3 7 3-7"})]}),FooterMenu:H("path",{d:"M6 7h12M6 11h12M6 15h8M6 19h8"}),FooterGroup:we(ye,{children:[H("rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",strokeDasharray:"3 2.5"}),H("path",{d:"M8 9h8M8 13h8M8 16h5"})]}),FooterText:H("path",{d:"M5 7h14M5 12h14M5 17h9"}),FooterEmailSignup:we(ye,{children:[H("rect",{x:"3",y:"6",width:"18",height:"12",rx:"2"}),H("path",{d:"M3.5 7l8.5 6 8.5-6"})]}),SearchBlock:we(ye,{children:[H("circle",{cx:"11",cy:"11",r:"6"}),H("path",{d:"M20 20l-4.2-4.2"})]}),CartBlock:Wj,CountrySwitchBlock:we(ye,{children:[H("circle",{cx:"12",cy:"12",r:"8.5"}),H("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:we(ye,{children:[H("circle",{cx:"12",cy:"12",r:"8.5"}),H("path",{d:"M12 3.5v17M12 5.5l6 6M12 10.5l5.2 5.2M12 15.5l2.8 2.8"})]}),LegalLineBlock:we(ye,{children:[H("path",{d:"M3 9h18"}),H("path",{d:"M3 14h8M14 14h2M18 14h3"})]}),Hero:we(ye,{children:[H("rect",{x:"3",y:"4",width:"18",height:"16",rx:"2"}),H("path",{d:"M7 13.5h7M7 16.5h10"})]}),HeroSlide:we(ye,{children:[H("rect",{x:"3",y:"5",width:"18",height:"14",rx:"2"}),H("path",{d:"M7 15h6M16 9.5h.01M9.5 12l-2.5 3"})]}),HeroSingle:we(ye,{children:[H("rect",{x:"3",y:"4",width:"18",height:"16",rx:"2"}),H("path",{d:"M10.5 8.5l4 2.5-4 2.5z"}),H("path",{d:"M7 17h7"})]}),Collections:we(ye,{children:[H("rect",{x:"3",y:"5",width:"4.6",height:"14",rx:"1.3"}),H("rect",{x:"9.7",y:"5",width:"4.6",height:"14",rx:"1.3"}),H("rect",{x:"16.4",y:"5",width:"4.6",height:"14",rx:"1.3"})]}),CollectionCard:we(ye,{children:[H("rect",{x:"6",y:"4",width:"12",height:"16",rx:"2"}),H("path",{d:"M9 15h6M9 17.5h4"})]}),AlloyWheelsListing:we(ye,{children:[H("path",{d:"M3 5h5M3 9h5M3 13h5M3 17h5"}),H("rect",{x:"11.5",y:"5",width:"4.2",height:"5",rx:"1"}),H("rect",{x:"17.3",y:"5",width:"4.2",height:"5",rx:"1"}),H("rect",{x:"11.5",y:"12",width:"4.2",height:"5",rx:"1"}),H("rect",{x:"17.3",y:"12",width:"4.2",height:"5",rx:"1"})]}),CatalogFilterBar:we(ye,{children:[H("path",{d:"M3 7h9M15.5 7H21"}),H("circle",{cx:"13.5",cy:"7",r:"1.7"}),H("path",{d:"M3 12h4M10.5 12H21"}),H("circle",{cx:"8.5",cy:"12",r:"1.7"}),H("path",{d:"M3 17h9M15.5 17H21"}),H("circle",{cx:"13.5",cy:"17",r:"1.7"})]}),ProductGrid:we(ye,{children:[H("rect",{x:"3",y:"5",width:"4.8",height:"6",rx:"1"}),H("rect",{x:"9.6",y:"5",width:"4.8",height:"6",rx:"1"}),H("rect",{x:"16.2",y:"5",width:"4.8",height:"6",rx:"1"}),H("rect",{x:"3",y:"13",width:"4.8",height:"6",rx:"1"}),H("rect",{x:"9.6",y:"13",width:"4.8",height:"6",rx:"1"}),H("rect",{x:"16.2",y:"13",width:"4.8",height:"6",rx:"1"})]}),RelatedProducts:we(ye,{children:[H("path",{d:"M3 5h10"}),H("rect",{x:"3",y:"9.5",width:"5",height:"9",rx:"1"}),H("rect",{x:"9.5",y:"9.5",width:"5",height:"9",rx:"1"}),H("rect",{x:"16",y:"9.5",width:"5",height:"9",rx:"1"})]}),Gallery:we(ye,{children:[H("rect",{x:"3",y:"4",width:"11",height:"16",rx:"2"}),H("rect",{x:"15.5",y:"4",width:"5.5",height:"7.5",rx:"1.5"}),H("rect",{x:"15.5",y:"12.5",width:"5.5",height:"7.5",rx:"1.5"})]}),GalleryB:we(ye,{children:[H("rect",{x:"3.5",y:"4",width:"7.5",height:"7.5",rx:"1.5"}),H("rect",{x:"13",y:"4",width:"7.5",height:"7.5",rx:"1.5"}),H("rect",{x:"3.5",y:"12.5",width:"7.5",height:"7.5",rx:"1.5"}),H("rect",{x:"13",y:"12.5",width:"7.5",height:"7.5",rx:"1.5"})]}),GalleryItem:we(ye,{children:[H("rect",{x:"4",y:"5",width:"16",height:"14",rx:"2"}),H("circle",{cx:"9",cy:"10",r:"1.6"}),H("path",{d:"M20 15.5l-4.5-4L7 19"})]}),Events:we(ye,{children:[H("rect",{x:"4",y:"5",width:"16",height:"15",rx:"2"}),H("path",{d:"M4 9.5h16M8.5 3v4M15.5 3v4M8 14h2M14 14h2"})]}),PostCard:we(ye,{children:[H("rect",{x:"4",y:"3.5",width:"16",height:"17",rx:"2"}),H("rect",{x:"6.5",y:"6",width:"11",height:"6",rx:"1"}),H("path",{d:"M6.5 14.5h11M6.5 17.5h7"})]}),Manifesto:we(ye,{children:[H("path",{d:"M7 8h3.2v4c0 1.6-1 2.6-3 3.2"}),H("path",{d:"M14 8h3.2v4c0 1.6-1 2.6-3 3.2"})]}),Stats:we(ye,{children:[H("path",{d:"M3.5 20h17"}),H("path",{d:"M6 20v-7M11 20V7M16 20v-5M20.5 20v-9"})]}),Logos:we(ye,{children:[H("circle",{cx:"6",cy:"12",r:"2.6"}),H("rect",{x:"10",y:"9.4",width:"5.2",height:"5.2",rx:"1.2"}),H("path",{d:"M19 9.2l2.4 5h-4.8z"})]}),Ticker:we(ye,{children:[H("rect",{x:"3",y:"8.5",width:"18",height:"7",rx:"2"}),H("path",{d:"M6 12h3.5M11.5 12h2M15.5 12h2.5"})]}),SectionHeader:we(ye,{children:[H("rect",{x:"3.5",y:"6",width:"5",height:"5",rx:"1.2"}),H("path",{d:"M11 8.5h9M3.5 15.5h17"})]}),IntroBleed:we(ye,{children:[H("rect",{x:"3",y:"4",width:"18",height:"16",rx:"2"}),H("path",{d:"M3 13.5h18M7 16.8h6"})]}),Split:we(ye,{children:[H("rect",{x:"3",y:"5",width:"8",height:"14",rx:"1.5"}),H("path",{d:"M14 8.5h6M14 12h6M14 15.5h4"})]}),Eyebrow:we(ye,{children:[H("path",{d:"M4 8.5h4.5M11 8.5h9"}),H("path",{d:"M4 14.5h16"})]}),HeroGroup:we(ye,{children:[H("rect",{x:"3.5",y:"4.5",width:"17",height:"15",rx:"2"}),H("path",{d:"M7 9h8M7 12.5h10M7 16h6"})]}),Form:we(ye,{children:[H("rect",{x:"3",y:"4",width:"18",height:"16",rx:"2"}),H("path",{d:"M6.5 9h11M6.5 12.5h11"}),H("rect",{x:"6.5",y:"15",width:"6.5",height:"2.6",rx:"1.3"})]}),LogoBlock:H(ye,{children:H("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:we(ye,{children:[H("path",{d:"M12 4v6M9.5 6.5L12 4l2.5 2.5M12 20v-6M9.5 17.5L12 20l2.5-2.5"}),H("path",{d:"M5 13h14",strokeDasharray:"2 2.5"})]}),ContactRouting:we(ye,{children:[H("rect",{x:"3",y:"4",width:"5",height:"5",rx:"1"}),H("rect",{x:"9.5",y:"4",width:"5",height:"5",rx:"1"}),H("rect",{x:"16",y:"4",width:"5",height:"5",rx:"1"}),H("path",{d:"M4 13.5h11M4 17.5h7"}),H("path",{d:"M17 15l3 2-3 2"})]}),Contents:we(ye,{children:[H("path",{d:"M4 7h2M4 12h2M4 17h2"}),H("path",{d:"M9 7h11M9 12h9M9 17h10"})]}),ListSearch:we(ye,{children:[H("path",{d:"M4 6h9M4 11h5M4 16h5"}),H("circle",{cx:"15",cy:"15",r:"4"}),H("path",{d:"M20.5 20.5l-2.7-2.7"})]}),CustomHTML:H("path",{d:"M9 8l-4 4 4 4M15 8l4 4-4 4"})},uwe=H("rect",{x:"4",y:"4",width:"16",height:"16",rx:"2.5"}),mwe={footer:Uj,Footer:Uj,Divider:$j,FooterDivider:$j,Banner:ZSe,Flex:JSe,FooterSocial:twe,FooterPayment:awe,page:fwe,website:iwe,AccountBlock:swe,chat:nwe,Heading:ewe,Text:rwe,ImageBlock:EP,ButtonBlock:QSe,LocationMap:cwe,Grid:lwe,ProductRef:owe,heroMedia:dwe,heroImage:EP,heroImage2:EP},hwe={MenuBlock:"FooterMenu",EmailFormBlock:"FooterEmailSignup",SocialLogosBlock:"FooterSocial",PaymentLogosBlock:"FooterPayment",SiteHeader:"header",SiteFooter:"footer"};function Js({type:e,size:o=16,className:t}){let r=hwe[e]??e,a=mwe[r];return a?H(a,{size:o,className:t}):H("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:pwe[r]??uwe})}import{PanelHideButton as o8}from"efficient-easel/screen/components/SidePanelHead";import{useEaselSession as Tke}from"efficient-easel/screen/lib/session-context";import{jsx as Be,jsxs as Zf,Fragment as xwe}from"react/jsx-runtime";import{useEffect as gwe,useId as zj,useState as Iwe}from"react";import{IconPicker as ywe}from"efficient-shell/ui";import{SettingsDefaultReset as bwe,SettingsField as Jf,SettingsSegmented as Swe,SettingsSwitch as Gj}from"efficient-easel/panel";import{ButtonIcon as wwe,ButtonIconIcon as Cwe,EyeIcon as vwe,PhoneIcon as kwe,PlacementIcon as Twe,TypeIcon as Pwe}from"efficient-easel/icons";var Ewe="Chat with us",_we="We usually reply within a few minutes",Owe="Hi! Ask us anything \u2014 about a wheel, an order, or fitment. Leave your details and we\u2019ll reply.";function kI({label:e,value:o,placeholder:t,onCommit:r,multiline:a=!1,hint:n}){let[s,i]=Iwe(o);gwe(()=>i(o),[o]);let l=()=>{s!==o&&r(s)};return Be(Jf,{label:e,icon:Be(Pwe,{}),changed:o!=="",action:Be(Qf,{label:e,changed:o!=="",onReset:()=>r("")}),hint:n,children:a?Be("textarea",{value:s,placeholder:t,rows:3,onChange:d=>i(d.target.value),onBlur:l,"aria-label":e}):Be("input",{type:"text",value:s,placeholder:t,onChange:d=>i(d.target.value),onBlur:l,onKeyDown:d=>{d.key==="Enter"&&d.currentTarget.blur()},"aria-label":e,autoComplete:"off"})})}function Qf({label:e,changed:o,onReset:t}){return Be(bwe,{words:de()?.panel,label:e,changed:o,onReset:t})}function Awe({label:e,icon:o,checked:t,fallback:r,onChange:a,hint:n}){let s=zj();return Be(Jf,{label:e,labelId:s,icon:o,changed:t!==r,action:Zf("span",{className:"inline-flex items-center gap-2",children:[Be(Gj,{checked:t,onChange:a,ariaLabelledBy:s}),Be(Qf,{label:e,changed:t!==r,onReset:()=>a(r)})]}),hint:n})}var Rwe=bI.map(e=>({value:e,icon:zu(e)}));function Lwe(){let{theme:e}=fe(),o=vo(e).themes[0];return _c(o)??o?.accent??""}function jj(){let{chat:e,setChat:o}=CI(),t=zj(),r=Lwe(),a=e.launcherIcon?SI(e.launcherIcon):nc;return Zf(xwe,{children:[Be(Jf,{label:c("Show the chat bubble"),labelId:t,icon:Be(vwe,{}),changed:!e.enabled,action:Zf("span",{className:"inline-flex items-center gap-2",children:[Be(Gj,{checked:e.enabled,onChange:n=>o({enabled:n}),ariaLabelledBy:t}),Be(Qf,{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.")}),Zf(kw,{title:c("Look"),children:[Be(yt,{label:c("Button color"),icon:Be(wwe,{}),changed:e.launcherColor!=="",value:e.launcherColor,inherited:r,caption:e.launcherColor?void 0:c("Site button color"),onChange:n=>o({launcherColor:n}),onReset:()=>o({launcherColor:""})}),Be(Jf,{label:c("Icon"),icon:Be(Cwe,{}),value:Be(sw,{value:a}),changed:a!==nc,action:Be(Qf,{label:c("Icon"),changed:a!==nc,onReset:()=>o({launcherIcon:""})}),children:Be(ywe,{label:c("Icon"),value:a,options:Rwe,onChange:n=>o({launcherIcon:n===nc?"":n})})}),Be(Jf,{label:c("Position"),icon:Be(Twe,{}),changed:e.launcherPosition!==Zs,action:Be(Qf,{label:c("Position"),changed:e.launcherPosition!==Zs,onReset:()=>o({launcherPosition:Zs})}),children:Be(Swe,{options:[{label:c("Right"),id:"right"},{label:c("Left"),id:"left"}],value:e.launcherPosition,ariaLabel:c("Position"),onChange:n=>o({launcherPosition:n})})}),Be(kI,{label:c("Label"),value:e.launcherLabel,placeholder:c("Icon only"),onCommit:n=>o({launcherLabel:n}),hint:c("Shows when a visitor points at the button")}),Be(Awe,{label:c("Show on phones"),icon:Be(kwe,{}),checked:e.showOnPhones,fallback:wI.showOnPhones,onChange:n=>o({showOnPhones:n})})]}),Zf(kw,{title:c("Wording"),children:[Be(kI,{label:c("Title"),value:e.title,placeholder:Ewe,onCommit:n=>o({title:n})}),Be(kI,{label:c("Subtitle"),value:e.subtitle,placeholder:_we,onCommit:n=>o({subtitle:n})}),Be(kI,{label:c("Greeting message"),value:e.greeting,placeholder:Owe,onCommit:n=>o({greeting:n}),multiline:!0}),Be("p",{className:"es-field-hint",children:c("Leave a field blank to use the built-in wording.")})]})]})}import{jsx as Qs,Fragment as XP,jsxs as Xj}from"react/jsx-runtime";import{useEffect as cCe,useId as Yj,useState as qj}from"react";import{SettingsField as dCe}from"efficient-easel/panel";import{jsx as eCe}from"react/jsx-runtime";import{forwardRef as Fwe,createElement as _P}from"react";var Kj={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 pe=(e,o,t,r)=>{let a=Fwe(({color:n="currentColor",size:s=24,stroke:i=2,title:l,className:d,children:f,...u},p)=>_P("svg",{ref:p,...Kj[e],width:s,height:s,className:["tabler-icon",`tabler-icon-${o}`,d].filter(Boolean).join(" "),...e==="filled"?{fill:n}:{strokeWidth:i,stroke:n},...u},[l&&_P("title",{key:"svg-title"},l),...r.map(([m,h])=>_P(m,h)),...Array.isArray(f)?f:[f]]));return a.displayName=`${t}`,a};var Bwe=[["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"}]],OP=pe("outline","brand-facebook","BrandFacebook",Bwe);var Nwe=[["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"}]],AP=pe("outline","brand-instagram","BrandInstagram",Nwe);var Dwe=[["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"}]],RP=pe("outline","brand-line","BrandLine",Dwe);var Mwe=[["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"}]],LP=pe("outline","brand-linkedin","BrandLinkedin",Mwe);var Hwe=[["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"}]],FP=pe("outline","brand-pinterest","BrandPinterest",Hwe);var Wwe=[["path",{d:"M15 10l-4 4l6 6l4 -16l-18 7l4 2l2 6l3 -4",key:"svg-0"}]],BP=pe("outline","brand-telegram","BrandTelegram",Wwe);var $we=[["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"}]],NP=pe("outline","brand-tiktok","BrandTiktok",$we);var Uwe=[["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"}]],DP=pe("outline","brand-wechat","BrandWechat",Uwe);var zwe=[["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"}]],MP=pe("outline","brand-whatsapp","BrandWhatsapp",zwe);var Gwe=[["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"}]],HP=pe("outline","brand-x","BrandX",Gwe);var jwe=[["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"}]],WP=pe("outline","brand-youtube","BrandYoutube",jwe);var Kwe=[["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"}]],$P=pe("filled","brand-facebook-filled","BrandFacebookFilled",Kwe);var Vwe=[["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"}]],UP=pe("filled","brand-instagram-filled","BrandInstagramFilled",Vwe);var Ywe=[["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"}]],zP=pe("filled","brand-linkedin-filled","BrandLinkedinFilled",Ywe);var qwe=[["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"}]],GP=pe("filled","brand-pinterest-filled","BrandPinterestFilled",qwe);var Xwe=[["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"}]],jP=pe("filled","brand-tiktok-filled","BrandTiktokFilled",Xwe);var Zwe=[["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"}]],KP=pe("filled","brand-whatsapp-filled","BrandWhatsappFilled",Zwe);var Jwe=[["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"}]],VP=pe("filled","brand-x-filled","BrandXFilled",Jwe);var Qwe=[["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"}]],YP=pe("filled","brand-youtube-filled","BrandYoutubeFilled",Qwe);var vpo="outline",TI={fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},oCe={},qP={fillRule:"evenodd"},tCe=[["path",{...TI,d:"M21 4L3 11L7 13L9 19L12 15L17 20z"}],["path",{...qP,d:"M21 4L3 11L7 13L9 19L12 15L17 20zM15.212 8.939 10.576 13.576 11.424 14.424 16.061 9.788z"}]],rCe=[["path",{...TI,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",{...oCe,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("")}]],aCe=[["path",{...TI,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",{...TI,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",{...qP,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",{...qP,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("")}]],nCe=pe("filled","brand-telegram-filled","BrandTelegramFilled",tCe),sCe=pe("filled","brand-line-filled","BrandLineFilled",rCe),iCe=pe("filled","brand-wechat-filled","BrandWechatFilled",aCe),lCe={instagram:{outline:AP,solid:UP},facebook:{outline:OP,solid:$P},tiktok:{outline:NP,solid:jP},youtube:{outline:WP,solid:YP},x:{outline:HP,solid:VP},linkedin:{outline:LP,solid:zP},pinterest:{outline:FP,solid:GP},whatsapp:{outline:MP,solid:KP},telegram:{outline:BP,solid:nCe},line:{outline:RP,solid:sCe},wechat:{outline:DP,solid:iCe}};function Vj({platform:e,iconStyle:o,size:t}){let r=lCe[e][o];return eCe(r,{size:t,stroke:1.75,"aria-hidden":"true",focusable:"false"})}var fCe={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 pCe({platform:e}){let{rows:o,saveLink:t}=Xf(),{value:r,error:a}=o[e],[n,s]=qj(r),[i,l]=qj(!1),d=Yj(),f=Yj();cCe(()=>s(r),[r]);let u=async()=>{if(n.trim()===r){n!==r&&s(r);return}l(!0),await t(e,n),l(!1)},p=jO[e];return Xj(XP,{children:[Qs(dCe,{label:c(p),htmlFor:d,icon:Qs(Vj,{platform:e,iconStyle:"outline",size:18}),children:Qs("input",{id:d,type:"text",inputMode:"url",value:n,placeholder:fCe[e],onChange:m=>s(m.target.value),onBlur:()=>{u()},onKeyDown:m=>{m.key==="Enter"&&m.currentTarget.blur(),m.key==="Escape"&&(s(r),m.currentTarget.blur())},"aria-invalid":a?!0:void 0,"aria-describedby":a?f:void 0,"aria-busy":i||void 0,autoComplete:"off",spellCheck:!1})}),a&&Qs("p",{id:f,className:"sf-note sf-note--error",role:"alert",children:a})]})}function Zj({unavailable:e}){let{canSave:o}=Xf();return!o&&e?Qs(XP,{children:e}):Xj(XP,{children:[Qs("p",{className:"es-field-hint",children:c("Paste a link to each profile. A platform left empty shows nothing on the site.")}),Su.map(t=>Qs(pCe,{platform:t},t))]})}import{jsx as ti,Fragment as MCe,jsxs as HCe}from"react/jsx-runtime";import{useId as WCe,useMemo as $Ce}from"react";import{useEasel as UCe}from"efficient-easel/easel";import{SettingsField as zCe,SettingsSwitch as GCe}from"efficient-easel/panel";import{EyeIcon as jCe}from"efficient-easel/icons";import{fieldShownInView as KCe}from"efficient-easel/fields";import{usePreviewDevice as VCe}from"efficient-easel/draw/client";import{jsx as oi,Fragment as hCe}from"react/jsx-runtime";import{createContext as xCe,useContext as gCe,useLayoutEffect as ICe,useMemo as Qj,useRef as yCe,useState as eK}from"react";import{useEasel as oK,useSelectedFields as bCe}from"efficient-easel/easel";import{fieldShownInView as SCe,Inspector as wCe,LEAD_BAND_KEY as CCe,planFields as tK}from"efficient-easel/fields";function Jj({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 uCe}from"react/jsx-runtime";import{EmptyState as mCe}from"efficient-shell/ui";function ei(){return uCe(mCe,{variant:"none",icon:!1,message:c("These settings apply to every view.")})}import{usePreviewDevice as vCe}from"efficient-easel/draw/client";import{deviceField as kCe}from"efficient-easel/screen/lib/document/device-fields";var TCe="Text",ZP=new Map,PI=new Set,PCe=Object.fromEntries(Kf.map(e=>{let o=SB[e];return[e,oi(o,{},e)]})),rK=xCe(null),ECe={_partBody:kCe("each",{type:"custom",render:()=>oi(_Ce,{})})};function _Ce(){return oi(hCe,{children:gCe(rK)})}function Ar({entries:e,entryCount:o=0,part:t=null,omit:r,motion:a,body:n,itemWord:s}){let{id:i,fields:l,values:d,readOnly:f,onChange:u}=bCe(),p=Qj(()=>a?{...d,...a.values}:d,[d,a?.values]),m=(oe,ke)=>a?.keys.has(oe)?a.onChange(oe,ke):u(oe,ke),h=vCe(),{appState:I,config:w}=oK(oe=>oe),S=aA(h,w,I.data.content??[],I.ui.itemSelector),C=n===void 0?NH(l,t):ECe,b=Qj(()=>{let oe=r?.length?Object.fromEntries(Object.entries(C).filter(([ke])=>!r.includes(ke))):C;return a?{...oe,...a.fields}:oe},[C,r,a?.fields]),y=Tb(b,p,S),[v,L]=eK(()=>new Set(PI)),A=SCe({},h),D={key:CCe,title:TCe},T=oK(oe=>oe.selectedItem)!==null,F=a?.part??t??"",k=`${i}:${F}:${String(h)}`,[_,P]=eK(()=>({tab:ZP.get(k)})),O=`${i}:${F}`,W=yCe(null),G={...S,node:p},Z=tK(y,{values:p,context:G}).buckets,X=Jj({allTabs:T,remembered:ZP.get(k),inherited:W.current?.panel===O?W.current.tab:_.tab,buckets:Z,hasText:A&&o>0}),ne=!A&&!Z.includes(X)&&(tK(Tb(b,p,{...S,device:"desktop"}),{values:p,context:{...G,device:"desktop"}}).buckets.includes(X)||X==="Design"&&o>0);ICe(()=>{W.current={panel:O,tab:X}});let ve=X==="Design";return oi(rK.Provider,{value:n??null,children:oi(Pw.Provider,{value:a?p:null,children:oi(wCe,{fields:y,values:p,onChange:m,readOnly:f,allTabs:T,showWhenContext:G,context:{itemWord:s},tab:X,onTab:oe=>{ZP.set(k,oe),P({tab:oe})},tabIcons:PCe,idPrefix:i,ariaLabel:c("Section settings"),lead:ve?e:null,leadFold:D,closedFolds:v,onFold:(oe,ke)=>{ke?PI.delete(oe):PI.add(oe),L(new Set(PI))},children:ne&&oi(ei,{})})})})}import{useMemo as OCe}from"react";import{useEasel as ACe}from"efficient-easel/easel";import{useSectionOps as RCe}from"efficient-easel/screen/lib/document/use-section-ops";var aK=new Map,LCe=e=>{let o=aK.get(e);return o||aK.set(e,o=lI(sI(e),`part:${e}`)),o},FCe=new Set(pv);function sc(e,o,t){let{getItemById:r,getSelectorForId:a}=ACe(f=>f),n=RCe(),s=r(e)?.props??{},i=Ts(s,o),l=JSON.stringify(i),d=OCe(()=>Object.fromEntries(pv.map(f=>[f,i[f]])),[l]);return{part:o,fields:LCe(t),values:d,keys:FCe,onChange:(f,u)=>{let p=a(e),m=r(e);if(!p||!m)return;let h=f2(m.props??{},o,f,u);n.replaceComponent(p.zone,p.index,{...m,props:h})}}}import{Fragment as BCe,createElement as NCe}from"react";import{deviceField as JP}from"efficient-easel/screen/lib/document/device-fields";var qo=()=>({type:"custom",render:()=>NCe(BCe)});var QP={words:qo(),sourceNote:qo(),style:qo(),font:qo(),italic:qo(),fontSize:JP("each",qo()),lineHeight:qo(),letterSpacing:qo(),paragraphSpacing:qo(),padding:qo(),align:JP("each",qo()),letterCase:qo(),fixedSizeHint:JP("each",qo()),regionNote:qo(),regionStyle:qo()},DCe=["fontSize","align"];function nK(e){return DCe.includes(e)}var sK={showTicker:qo(),items:qo()};var YCe="root:default-zone";function iK({heroId:e}){let{appState:o,dispatch:t}=UCe(m=>m),r=o.data.content??[],a=r.findIndex(m=>m.props.id===e),n=a>=0?r[a]:null,s=n?n.props.showTicker??!0:!0,i=$Ce(()=>{let m=n?.props.tickerItems;return Array.isArray(m)?m:b4.map(h=>({text:h}))},[n]),l=WCe(),d=VCe(),f=m=>KCe(sK[m],d),u=sc(e,S4,"block");if(!n)return ti("p",{className:"sf-note",children:c("This ticker\u2019s hero is no longer on the page.")});let p=m=>t({type:"replace",destinationZone:YCe,destinationIndex:a,data:{...n,props:{...n.props,...m}}});return ti(Ar,{motion:u,body:HCe(MCe,{children:[!f("showTicker")&&!f("items")&&ti(ei,{}),f("showTicker")&&ti(zCe,{label:c("Show ticker"),labelId:l,icon:ti(jCe,{}),action:ti(GCe,{checked:s,onChange:m=>p({showTicker:m}),ariaLabelledBy:l})}),f("items")&&ti(Rw,{label:Aw.label,icon:Aw.icon,items:i,placeholder:"item",onChange:m=>p({tickerItems:m}),markup:!0})]})})}import{jsx as te,Fragment as tp,jsxs as lr}from"react/jsx-runtime";import{useContext as lve,useEffect as e0,useRef as cve,useState as IK}from"react";import{FieldSelect as dve,InspectorField as fve,fieldShownInView as pve}from"efficient-easel/fields";import{InertHint as PK,SettingsField as uve}from"efficient-easel/panel";import{InspectorUpLevel as LI}from"efficient-easel/chrome";import{StylesIcon as mve,TypeIcon as hve}from"efficient-easel/icons";import{useEasel as xve}from"efficient-easel/easel";import{TextPartPanel as yK}from"efficient-easel/copy";import{Button as gve,IconButton as Ive,Tooltip as yve}from"efficient-shell/ui";import{jsx as dK,jsxs as qCe}from"react/jsx-runtime";import{DEFAULT_EASEL_STRINGS as XCe}from"efficient-easel/strings";import{COPY_CELLS as ic,COPY_CELL_LENGTHS as lK,CopyBox as ZCe,lengthCellUnits as JCe}from"efficient-easel/copy";import{PaddingYIcon as QCe}from"efficient-easel/icons";import{onDesktopWords as eve}from"efficient-easel/screen/lib/document/box-fields";var cK=XCe.copy.cells,ove={kind:"spacing"},tve=["left","center","right","justify"];function EI(e,o,t,r="desktop"){let a=Ld(e),n=wC(r),s=e[n]??e.size??o.sizePx,i=cD(e,r),l=(f,u,p,m,h)=>{let I=qt[p];return JCe({preset:f,row:u,table:ya,unit:e[I],value:e[p],tier:r,styleValue:m,label:c(h),onPick:(w,S)=>t({[I]:w??null,[p]:S??null}),onChange:(w,S)=>t({...S?{[I]:S.unit??null}:{},[p]:w??null})})},d={key:"padding",name:c("Padding"),icon:dK(QCe,{}),unit:"px",step:IC,shiftStep:10,min:xC,max:gC};return[{...ic.fontSize,key:"fontSize",value:e[n],styleValue:Math.round(o.sizePx),onChange:f=>t({[n]:f??null}),...l(ic.fontSize,lK.fontSize,n,Math.round(o.sizePx),cK.fontSize),...n==="size"?{}:{reset:{detail:i?eve(f=>c(f),`${i.px}px`,i.view):void 0}}},{...ic.lineHeight,key:"lineHeight",value:a.lineHeight,styleValue:o.lineRatio,onChange:f=>t(f===void 0?{lineHeight:null,line:null}:{lineHeight:f})},{...ic.letterSpacing,key:"letterSpacing",scale:s,value:a.letterSpacingEm,styleValue:o.letterEm,onChange:f=>t(f===void 0?{letterSpacing:null,letter:null}:{letterSpacing:f})},{...ic.paragraphSpacing,key:"paragraphSpacing",value:e.paragraphSpacing,styleValue:0,onChange:f=>t({paragraphSpacing:f??null}),...l(ic.paragraphSpacing,lK.paragraphSpacing,"paragraphSpacing",0,cK.paragraphSpacing)},{...d,value:e.padding,styleValue:o.paddingPx,onChange:f=>t({padding:f??null}),...l(d,ove,"padding",o.paddingPx,"Padding")}]}function fK({text:e,onTextChange:o,multiline:t,markup:r=!0,styled:a=!0,style:n,base:s,setValue:i,colors:l,placeholder:d,ariaLabel:f,head:u,typedOnCanvas:p=!1}){let m=EI(n,s,i),h=qw(r,t);return qCe("div",{className:"sf-part-textbox",children:[u,dK(ZCe,{value:e,onChange:o,multiline:t,placeholder:d,ariaLabel:f,rules:Pp,tools:h,barShows:p?"focus":"always",colors:r?l:[],colorNameOf:Ot,align:a?{value:n.align??s.align,allow:tve,onChange:I=>i({align:I})}:void 0,letterCase:a?{value:n.case==="capitalize"?"":n.case??"",onChange:I=>i({case:I||null})}:void 0,cells:a?m:void 0})]})}import{UiIcon as bK}from"efficient-easel/draw/client";import{jsx as _I,Fragment as rve,jsxs as ave}from"react/jsx-runtime";import{Button as pK,Dialog as nve}from"efficient-shell/ui";function uK({styleName:e,onCancel:o,onConfirm:t}){return _I(nve,{open:!0,onClose:o,role:"alertdialog",size:"sm",title:c("Update {style}?",{style:e}),footer:ave(rve,{children:[_I(pK,{variant:"secondary",onClick:o,children:c("Cancel")}),_I(pK,{variant:"primary",onClick:t,children:c("Update style")})]}),children:_I("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 bve}from"efficient-easel/screen/components/ScreenDocumentContext";import{usePreviewDevice as Sve}from"efficient-easel/draw/client";import{shownTier as AI}from"efficient-easel/screen/lib/document/device-fields";import{TEXT_FIELD_MARKER as wve,viewKeyAt as Cve}from"efficient-easel/draw";import{useSectionOps as vve}from"efficient-easel/screen/lib/document/use-section-ops";import{useEaselHost as kve}from"efficient-easel/screen/lib/host";function sve(e){let o=new Set([...Object.keys($(dm,e)??{}),...$(fm,e)??[]]);for(let[t,r]of Object.entries($(Qb,e)??{}))r.verb==="snapshot"&&o.add(t);return[...o].sort()}var ive={CollectionCard:"product",FooterMenu:"menu",Gallery:"product",GalleryItem:"product",ProductGrid:"product",ProductHero:"product",SpecTable:"product",Events:"blog",FeaturedCover:"blog",LongRead:"blog",SubscribeBlogs:"blog"},mK={product:"Synced from the product.",blog:"Synced from the blog post.",menu:"Synced from the site menu."},hK="Open",xK={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 lc(e){let o=e?.source?.slug;return be(o)}function ep(e){return $(ive,e)??null}function gK(e,o){let t=ep(e);return t&&sve(e).includes(o)?t:null}function OI(e){let o=e?.menu?.id;return be(o)}function o0(e){return e?c(e):null}function SK(e){return e.kind==="role"?ny[e.role]:e.kind==="custom"?"Custom":null}function Tve(e){let o=na(e.role);return o?{kind:"role",role:o}:null}function Pve(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 RI(e,o,t,r){return Tve(Is(e,o))??Pve(t,r)}function Eve(e,o){if(!e.length)return null;let t=o(e[0]);return e.every(r=>o(r)===t)?t:null}function wK(e){return[{value:op,label:c("No style"),description:c("Section\u2019s own")},...e.map(o=>({value:o.id,label:o.name,description:o.values.font?pi(o.values.font)?.label:void 0}))]}var op="";function _ve({face:e,base:o,onPick:t}){let r=e.kind==="role"?e.role:op,a=[{label:c("No style"),value:op},...eE.map(n=>({label:c(ny[n]),value:n}))];return te(dve,{ariaLabel:c("Style"),value:r,options:a,inline:!0,onChange:n=>t(n===op?null:n),renderOption:n=>n.value===op?lr(tp,{children:[te("span",{className:"es-fsel-label sf-part-style-keep",children:n.label}),te("span",{className:"sf-part-style-aside","aria-hidden":"true",children:c("Section\u2019s own")})]}):te("span",{className:"es-fsel-label",style:{fontFamily:`var(--font-role-${n.value})`},children:n.label}),renderValue:()=>te("span",{style:{fontFamily:o?.fontKey?`var(${pi(o.fontKey)?.cssVar})`:void 0,fontWeight:o?.weight},children:o0(SK(e))}),valueText:n=>o0(SK(e))??n?.label??""})}var EK=["regionNote","regionStyle"],Ove=Object.keys(QP).filter(e=>!EK.includes(e));function _K(e,o){return!e.some(o)}function Ave({sectionName:e,onBack:o,textEditor:t,styleRow:r,children:a,tabs:n}){let s=lr(tp,{children:[t,r,a]});return lr("div",{className:"sf-part-panel",children:[te(LI,{inline:!0,name:c(e),onSelect:o}),n?n(s):s]})}function FI({source:e,slug:o,menuId:t}){let r=kve(),a=xK[e],n=!a.needsSlug||!!o;return te("div",{className:"sf-note sf-note--source",children:lr(PK,{children:[c(mK[e]),n?lr(tp,{children:[" ",te(gve,{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(hK)})]}):null]})})}var CK=4,Rve=120;function vK(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 kK({region:e,sizePx:o,face:t,base:r,onFollowStyle:a,source:n,slug:s,onBack:i,shows:l,sizedStyle:d,ownLook:f}){let u=e.follows;return lr("div",{className:"sf-note",children:[te("p",{children:te("strong",{children:c(e.label)})}),l("regionNote")&&!f&&te("p",{children:o?c("Its size follows Styles \u25B8 {follows} \u2014 {px}px right now.",{follows:c(u),px:Math.round(o)}):c("Its size follows Styles \u25B8 {follows}.",{follows:c(u)})}),d?lr(tp,{children:[d,l("regionStyle")&&te("p",{className:"es-field-hint",children:vK(e)})]}):a?l("regionStyle")?te(tp,{children:te(uve,{label:c("Style"),icon:te(mve,{}),hint:vK(e),children:te(_ve,{face:t,base:r,onPick:a})})}):null:l("regionNote")&&te("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&&l("sourceNote")?te(FI,{source:n,slug:s}):null,_K([...EK,"sourceNote",...d?["fontSize"]:[]],p=>l(p)&&(p!=="sourceNote"||!!n))&&te(ei,{}),te(LI,{inline:!0,name:c("Page"),onSelect:i})]})}function Lve({onBack:e}){return lr("div",{className:"sf-note",children:[te("p",{children:te("strong",{children:c("This part is no longer here.")})}),te("p",{children:c("The section it belonged to has been changed or removed.")}),te(LI,{inline:!0,name:c("Page"),onSelect:e})]})}function Fve({onBack:e,partId:o,why:t}){return lr("div",{className:"sf-note",children:[te("p",{children:te("strong",{children:c("This part's settings did not open.")})}),te("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.")}),te("p",{className:"sf-note-detail",children:lr("code",{children:[o," \u2014 ",t]})}),te(LI,{inline:!0,name:c("Page"),onSelect:e})]})}function OK({nodeId:e,propKey:o,onBack:t,onEditStyle:r}){let{getItemById:a,getSelectorForId:n,config:s}=xve(q=>q),i=vve(),l=yN(),{partStyle:d}=Vl(),{fonts:f,textStyles:u}=fe(),p=lve(bve),m=!p?.capabilities?.hasSiteTheme,{persist:h}=Ki({themeFromDocument:m,tokenRef:p?.tokenRef,siteId:p?.siteId??null}),I=Wh({themeFromDocument:m,persist:h}),[w,S]=IK(!1),C=Sve(),b=q=>(AI(C)!=="tablet"||nK(q))&&pve(QP[q],C),y=cve(null),v=a(e),L=n(e),A=v?s.components[v.type]:void 0,{key:D,row:T}=Cr(o),F=A?.fields?.[D],k=T?fl(F,T):F,_=qr(e,o),P=v?.props??{},O=dl(k),W=oh(k),G=Mw(k),Z=v?ep(v.type):null,X=v?gK(v.type,D):null,ne=T?Sd(P[D],T):P[D],ve=!!T&&!(Array.isArray(P[D])&&T.index<P[D].length);e0(()=>{IN(document)||y.current?.querySelector(".es-copy [contenteditable='true'], .es-copy textarea, .sf-copybox textarea, .sf-copybox input")?.focus()},[_]);let[oe,ke]=IK(0);e0(()=>ke(0),[_]);let Oe=!!v&&!ve&&(!L||!k);e0(()=>{if(!Oe||oe>=CK)return;let q=setTimeout(()=>ke(po=>po+1),Rve);return()=>clearTimeout(q)},[Oe,oe]);let Ae=Oe&&oe<CK,Re=sc(e,Ta(v?.type,o),"textPart");if(!v||ve)return te(Lve,{onBack:t});let nt=Yl(v.type),Xo=nt?Pc(nt,o):null;if(nt&&Xo){let q=d?.partId===_?d:null,po=nt[Xo],dr=po.writable===!0&&!!L,Ba=_n=>{L&&i.replaceComponent(L.zone,L.index,{...v,props:ys(P,o,"role",_n)})};if(dr&&a_(po)){let _n=Is(P,o),H0=On=>{if(!L)return;let ry=P;for(let[b7,S7]of Object.entries(On))ry=ys(ry,o,b7,S7??null);i.replaceComponent(L.zone,L.index,{...v,props:ry})},g7=va(I.saved,I.old),I7=hC(_n)??"",y7=EI(_n,q?.base??TK,H0,AI(C)).filter(On=>On.key==="fontSize"&&b(On.key));return te(Ar,{motion:Re,body:te(kK,{region:po,sizePx:q?.base.sizePx??null,face:RI(P,o,q,f),base:q?.base??null,source:Z,slug:lc(P),onBack:t,shows:b,ownLook:hD(_n),sizedStyle:te(yK,{style:b("style")?{value:I7,options:wK(g7),onChange:On=>H0(On?{textStyle:On}:{textStyle:null,role:null}),onEditStyles:r}:void 0,cells:y7})})})}return te(Ar,{motion:Re,body:te(kK,{region:po,sizePx:q?.base.sizePx??null,face:RI(P,o,q,f),base:q?.base??null,onFollowStyle:dr?Ba:void 0,source:Z,slug:lc(P),onBack:t,shows:b})})}if(!L||!k)return Ae?te("div",{className:"sf-note","aria-busy":"true"}):te(Fve,{onBack:t,partId:_,why:L?"no field":"no selector"});let Zo=q=>{i.replaceComponent(L.zone,L.index,{...v,props:q})},bo=q=>{if(an(q).hidden!==an(ne).hidden||!O){let po=T?Bw(P,D,T,q):{...P,[D]:q};po&&Zo(po);return}dh({node:v,propKey:o,kind:O,zone:L.zone,index:L.index},an(q).text,i.replaceComponent)},Do=ne,Eo=d?.partId===_?d:null,ue=Eo?.styleOwner,no=ue?a(ue.owner):null,z=ue&&no?n(ue.owner):null,ce=!!(ue&&no&&z),Ce=ce?no.props??{}:P,So=ce?q=>i.replaceComponent(z.zone,z.index,{...no,props:q}):Zo,mo=ce?ue.kind:Ta(v?.type,o),st=Is(Ce,mo),Xe=[{partKey:mo,face:RI(Ce,mo,Eo,f),sizeGroup:Eo?.sizeGroup??null,base:Eo?.base??TK,style:st}],Mo=Eve(Xe,q=>q.sizeGroup),Fr=$i(Eo?.inks),mt=(q,po)=>{let dr=Ce;for(let Ba of Xe)dr=ys(dr,Ba.partKey,q,po);So(dr)},ty=q=>q?mt("textStyle",q):mc({textStyle:null,role:null}),mc=q=>{let po=Ce;for(let dr of Xe)for(let[Ba,_n]of Object.entries(q))po=ys(po,dr.partKey,Ba,_n??null);So(po)},si=O==="text"||O==="textarea",{text:ii,hidden:ra}=an(ne),Fa=k?.[wve]?.label??o,kn=ra?c("Show {label} on the slide",{label:c(Fa)}):c("Hide {label} on the slide",{label:c(Fa)}),hc=lr("div",{className:"sf-field-head",children:[te(hve,{}),te("span",{className:"sf-field-label sf-field-label--inline",children:c(Fa)}),si&&te(yve,{content:kn,children:te(Ive,{"aria-pressed":ra,"aria-label":kn,onClick:()=>bo({text:ii,hidden:!ra}),children:ra?te(bK,{name:"eye-off",size:14}):te(bK,{name:"eye",size:14})})})]}),Tn=!W&&G,yp=!!O&&(yB(k)||W||ra||!G),xc=RI(Ce,mo,Eo,f),bp=xc.kind==="role"?xc.role:null,Pn=hC(st)??BD(bp),M0=va(I.saved,I.old),p7=Object.entries(st).filter(([q,po])=>q!=="role"&&q!=="textStyle"&&po!==void 0).length,u7=()=>{let q=Ce;for(let po of Xe){let{role:dr,textStyle:Ba}=po.style;q=iD(q,po.partKey),dr&&(q=ys(q,po.partKey,"role",dr)),Ba&&(q=ys(q,po.partKey,"textStyle",Ba))}So(q)},En=Pn,m7=ND(Xe[0].style),h7=En?M0.find(q=>q.id===En)?.name??En:"",x7=()=>{S(!1),En&&(I.write(DD({saved:I.saved,old:I.old,styleId:En,values:DC(Xe[0].style)}),!0),u7())};return lr(Ave,{sectionName:A?.label??v.type,onBack:t,tabs:q=>te(Ar,{motion:Re,body:q}),textEditor:b("words")?te("div",{ref:y,className:"sf-part-text",children:yp?te(fK,{text:ii,onTextChange:q=>bo(si?{text:q,hidden:ra}:q),multiline:ah(O),markup:O!=="plainText",styled:!1,style:Xe[0].style,base:Xe[0].base,setValue:mc,colors:Fr,placeholder:o0(VB(k))??void 0,ariaLabel:c(Fa),head:hc,typedOnCanvas:l===_}):O?si?hc:null:te(fve,{field:k,name:o,value:Do,onChange:bo,id:`sf-part-${e}-${o}`})}):void 0,children:[X&&b("sourceNote")&&te(FI,{source:X,slug:lc(P),menuId:OI(P)}),Tn&&te(yK,{style:b("style")?{value:Pn??"",options:wK(M0),onChange:q=>ty(q||null),changed:p7>0,onEditStyles:r,onUpdateStyle:En&&m7?()=>S(!0):void 0}:void 0,font:b("font")?{value:st.font??"",styleValue:pi(Xe[0].base.fontKey)?.label,options:Na.map(q=>({label:q.label,value:q.key})),onChange:q=>mt("font",q||null)}:void 0,italic:b("italic")?{value:st.italic,styleValue:Nve(u,Pn),onChange:q=>mt("italic",q??null)}:void 0,cells:EI(Xe[0].style,Xe[0].base,mc,AI(C)).filter(q=>b(q.key)),align:b("align")?Bve(st,Xe[0].base.align,AI(C),mt):void 0,letterCase:b("letterCase")?{value:st.case??"",styleValue:Xe[0].base.case,onChange:q=>mt("case",q||null)}:void 0}),w&&En&&te(uK,{styleName:h7,onCancel:()=>S(!1),onConfirm:x7}),Tn&&Mo===null&&b("fixedSizeHint")&&te(PK,{children:c("Fixed size \u2014 the site\u2019s Text setting doesn\u2019t resize this.")}),_K(Ove,q=>b(q)&&(q==="words"||(q==="sourceNote"?!!X:q==="fixedSizeHint"?Tn&&Mo===null:Tn)))&&te(ei,{})]})}function Bve(e,o,t,r){let a=Cve("align",t),n=lD(e,t);return{value:e[a]??"",styleValue:n??o,onChange:s=>r(a,s||null)}}function Nve(e,o){return!o||!Array.isArray(e)?!1:e.find(t=>t?.id===o)?.values?.italic===!0}var TK={fontKey:"",sizePx:16,weight:400,lineRatio:1.4,letterEm:0,align:"left",case:"none",paddingPx:0};import{jsx as Rr,jsxs as i0,Fragment as Uve}from"react/jsx-runtime";import{useCallback as zve,useRef as Gve,useState as np}from"react";import{InspectorIconButton as jve}from"efficient-easel/chrome";import{useEasel as Kve}from"efficient-easel/easel";import{PopupMenu as Vve,PopupMenuItem as Yve,PopupMenuLabel as $I}from"efficient-shell/ui";import{CopyToPageIcon as qve}from"efficient-easel/icons";import{useEaselSession as Xve}from"efficient-easel/screen/lib/session-context";import{cloneNodeWithFreshIds as Zve}from"efficient-easel/screen/lib/document/section-doc";import{FOOTER_TYPE as Jve}from"efficient-easel/draw";import{isBackendError as cc}from"efficient-easel/screen/lib/backend-error";import{isEfficientBackend as WK}from"efficient-easel/screen/lib/session";var BI=Tu(),t0=BI.set;function NI(e,o){t0(e,o)}function DI(e,o){let t=BI.get(e);t0(e,o??(t==="live"?"changed":t))}function MI(e,o){t0(e,o??"live")}function AK(e){return BI.get(e)}function RK(e){return BI.use(e)}function LK(e,o){return e==="live"&&o?"changed":e}function r0({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 FK(e){return e.map(o=>o.change==="take_down"?c("{name} (taken down)",{name:o.name}):o.name)}var BK="SharedSection",Dve=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i,rp=e=>{let o=e?.content;return Array.isArray(o)?o:[]},ap=e=>{let o=e?.props?.id;return typeof o=="string"?o:void 0};function NK(e){if(e?.type!==BK)return null;let o=e.props?.section;return typeof o=="string"&&Dve.test(o)?o.toLowerCase():null}function DK(e){let o=[];for(let t of rp(e)){let r=NK(t),a=ap(t);r&&a&&o.push({refId:a,section:r})}return o}function HI(e){let o=rp(e)[0];return o&&typeof o=="object"&&ap(o)?o:null}function Mve(e,o){return{type:BK,props:{id:e,section:o}}}function MK(e,o){let t=new Map,r=new Set,a=!1,n=rp(e).map(s=>{let i=NK(s),l=ap(s);if(!i||!l||r.has(i))return s;let d=HI(o.get(i)),f=ap(d??void 0);return!d||!f||t.has(f)?s:(r.add(i),t.set(f,{section:i,refId:l,reference:s}),a=!0,d)});return{working:a?{...e,content:n}:e,held:t}}function HK(e,o,t){let r=new Map,a=!1,n=rp(e).map(s=>{let i=ap(s),l=i?o.get(i):void 0,d=l?t.get(l.section):void 0;if(!l||!d||r.has(l.section))return s;let f=rp(d).slice(1),u=HI(d);return r.set(l.section,u===s?d:{...d,content:[s,...f]}),a=!0,l.reference??Mve(l.refId,l.section)});return{page:a?{...e,content:n}:e,docs:r}}function s0(e){return!!(e?.publish&&e.liveState)}function Hve(e,o){if(!s0(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,i)=>r.call(e,s,i,o),restore:(s,i)=>a.call(e,s,i??{},o),preview:s=>n.call(e,s,o)}}function Wve(e,o){return async(t,r)=>{try{await WR()}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"?mm({state:"live",changes:[]}):ha(0),{version:r??null}}}function n0(e,o,t){let r=o?{siteId:o}:void 0;return{resolve:a=>e.load({slug:a,...r}).then(n=>(n&&(NI(n.id,n.live),F1(n.id,n.videoFrames)),n)),saveLayout:(a,n,s,i)=>e.save(a,{layout:n},{version:s,clientId:i??""}).then(l=>(DI(a,l.live),B1(a,l.videoFrames),ha(),l)),rereadVersion:e.version?a=>e.version(a):void 0,publish:s0(t)?Wve(t,r):e.publish?(a,n)=>e.publish(a,n?{version:n}:void 0).then(s=>(MI(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 $ve(e,o,t,r,a=!1){let n=null,s=new Set,i=!1,l=new Map,d=new Map,f=new Map,u=new Map,p={docId:null,lockHolder:null,conflict:null,saveFailed:!1,unpublished:!1,loadFailed:!1,sections:[]},m=new Set,h=()=>{if(!n)return!1;let T=AK(n.id);return T==="changed"||T==="never"||T===void 0&&i},I=T=>{p={...p,...T,docId:n?.id??null,unpublished:h(),sections:[...f.values()]};for(let F of m)F()},w=(T,F,k)=>{F?f.set(T,{section:T,title:l.get(T)?.title??"",problem:F,holder:k}):f.delete(T)},S=T=>T&&typeof T=="object"&&!Array.isArray(T)?T:{},C=T=>s.has(T),b=()=>new Map([...l].map(([T,F])=>[T,F.layout])),y=()=>`SharedSection-${typeof crypto<"u"&&crypto.randomUUID?crypto.randomUUID():Math.random().toString(36).slice(2)}`,v=(T,F,k,_)=>{let P=S(F);l.set(T,{layout:P,version:k,savedJson:JSON.stringify(P),title:_})},L={state:()=>p,subscribe:T=>(m.add(T),()=>{m.delete(T)})},A={sectionOf:T=>d.get(T)?.section??null,heldElsewhere:T=>{let F=d.get(T)?.section;return!!(F&&f.get(F)?.problem==="lock")},adopt:(T,F)=>{v(F.id,F.layout,F.layout_updated_at,F.title),d.set(T,{section:F.id,refId:y()}),u.set(F.id,F.used_on),I({})},place:T=>{if([...d.values()].some(_=>_.section===T.id))return null;let F=HI(S(T.layout)),k=typeof F?.props?.id=="string"?F.props.id:null;return!F||!k||!F.type?null:(v(T.id,T.layout,T.layout_updated_at,T.title),d.set(k,{section:T.id,refId:y()}),u.set(T.id,T.used_on),F)},usedOn:T=>u.get(T)??null,learn:T=>{for(let F of T){u.set(F.id,F.used_on);let k=l.get(F.id);k&&(k.title=F.title);let _=f.get(F.id);_&&f.set(F.id,{..._,title:F.title})}I({})}},D=async(T,F)=>{for(let[k,_]of T){let P=l.get(k),O=JSON.stringify(_);if(!(!P||O===P.savedJson||f.get(k)?.problem==="lock"))try{let W=await e.save(k,{layout:_},{version:P.version,clientId:F??""});DI(k,W.live),P.layout=_,P.version=W.version,P.savedJson=O,w(k,null)}catch(W){cc(W,"changed-elsewhere")?w(k,"conflict"):cc(W,"lock-taken")?w(k,"lock",W.holder??void 0):w(k,"save")}}T.size&&ha(),I({})};return{resolve:async T=>{if(oP(T===Ir?null:L),db(T===Ir?null:A),l=new Map,d=new Map,f=new Map,u=new Map,T===Ir)return t.resolve(T);let F=!1,[k,_]=await Promise.all([t.resolve(T),e.load({slug:Ir,...o}).catch(()=>(F=!0,null))]);if(_&&!td(k?.layout)){NI(_.id,_.live);let X=S(_.layout);n={id:_.id,layout:X,version:_.version,savedJson:""}}else n=null;if(i=!1,!k)return I({conflict:null,saveFailed:!1,loadFailed:F}),k;let P=S(k.layout),O=DK(P),W=await Promise.all(O.map(X=>e.load({id:X.section,...o}).catch(()=>null)));O.forEach((X,ne)=>{let ve=W[ne];ve?(NI(ve.id,ve.live),v(X.section,ve.layout,ve.version,"")):(l.delete(X.section),f.set(X.section,{section:X.section,title:"",problem:"load"}))});let G=MK(P,b());if(d=G.held,!n)return d.size&&s.add(k.id),I({conflict:null,saveFailed:!1,loadFailed:F}),d.size?{...k,layout:G.working}:k;let Z=_1(G.working,n.layout);return n.savedJson=JSON.stringify(cb(Z,n.layout).chrome),s.add(k.id),I({conflict:null,saveFailed:!1,loadFailed:!1}),{...k,layout:Z}},saveLayout:async(T,F,k,_)=>{if(!C(T))return t.saveLayout(T,F,k,_);let P=n,O=P?cb(F,P.layout):{page:F,chrome:null},W=HK(O.page,d,b()),G=await t.saveLayout(T,W.page,k,_);if(await D(W.docs,_),!P)return G;let Z=JSON.stringify(O.chrome);if(!O.chrome||Z===P.savedJson||p.lockHolder)return G;try{let X=await e.save(P.id,{layout:O.chrome},{version:P.version,clientId:_??""});DI(P.id,X.live),ha(),P.layout=O.chrome,P.version=X.version,P.savedJson=Z,i=!0,I({conflict:null,saveFailed:!1})}catch(X){cc(X,"changed-elsewhere")?I({conflict:X.conflict??{savedBy:"",savedByYou:!1,secondsAgo:0}}):cc(X,"lock-taken")?I({lockHolder:X.holder??{name:"",secondsSinceSeen:0,secondsSinceHeld:0}}):I({saveFailed:!0})}return G},publish:t.publish?async(T,F)=>{let k=await t.publish(T,F),_=n;if(_&&C(T)&&!a&&e.publish&&h()&&!p.lockHolder){let P=await e.publish(_.id,_.version?{version:_.version}:void 0);MI(_.id,P.live),P.version!==null&&(_.version=P.version),i=!1,I({})}if(C(T)&&!a&&e.publish)for(let[P,O]of l){if(f.get(P)?.problem==="lock")continue;let W=await e.publish(P,O.version?{version:O.version}:void 0);MI(P,W.live),W.version!==null&&(O.version=W.version)}return k}:void 0,lock:r?{claim:async(T,F,k)=>{let _=await r.claim(T,F,k);if(!C(T))return _;let P=n;if(P)try{await r.claim(P.id,F,!1),p.lockHolder&&I({lockHolder:null})}catch(O){cc(O,"lock-taken")&&I({lockHolder:O.holder??{name:"",secondsSinceSeen:0,secondsSinceHeld:0}})}for(let O of l.keys())try{await r.claim(O,F,!1),f.get(O)?.problem==="lock"&&w(O,null)}catch(W){cc(W,"lock-taken")&&w(O,"lock",W.holder??void 0)}return l.size&&I({}),_},release:async(T,F)=>{if(await r.release(T,F),!C(T))return;let k=n;k&&!p.lockHolder&&await r.release(k.id,F).catch(()=>{});for(let _ of l.keys())f.get(_)?.problem!=="lock"&&await r.release(_,F).catch(()=>{})}}:void 0,pinnedChrome:L}}function WI(e){let o=(t,r,a)=>e.save(t,r.layout?{...r,layout:n1(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 oho(e,o,t){return e.update(o,s1(t))}function tho(e,o=Ge(),t=gT(),r={}){let a=WK(o),n=e?{siteId:e}:void 0,s=a?!!e:!0,i=o.site.update,l=a&&t.commerce&&t.service,d=!!r.editsPinnedInPlace&&l,f=s0(o.site)?o.site:void 0,u=WI(o.pages),p=n0(u,e,f),m=d?$ve(u,n,p,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:l,editsPinnedInPlace:d,explainsSiteSettings:!1,hasSiteRecord:s,canEditSiteRecord:s&&!!i,hasPreviewLink:a||!!o.preview,hasCatalog:a&&t.commerce,hasForms:a&&t.service,hasBlog:!!o.blog&&t.service,offersCommerce:t.commerce,offersService:t.service},...p,...$K(p.resolve),lock:o.lock,...m,site:s?()=>o.site.get(n):void 0,siteLiveState:f?()=>f.liveState(n):void 0,siteVersions:Hve(f,n),updateSite:s&&i?h=>i(h,n):void 0,previewHref:o.preview?h=>o.preview.href(h):void 0}}function rho(e,o=Ge(),t=gT()){let r=WK(o),a=o.templates,n=a?WI(a.pages(e)):{list:()=>Promise.reject(new Error(a0)),load:()=>Promise.reject(new Error(a0)),save:()=>Promise.reject(new Error(a0))};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},...n0(n,void 0),...$K(n0(n,void 0).resolve),publish:void 0,templateName:a?()=>a.get(e).then(s=>s.name):void 0}}function $K(e){return{resolve:o=>(oP(null),db(null),e(o))}}var a0="This editor's backend has no website templates.";function Qve(e,o,t){let r=Zve(e,void 0,o);return t?.(r)??r}function UK({node:e,currentSlug:o,siteId:t,tokenRef:r,runAuthed:a,onNotify:n}){let[s,i]=np(!1),[l,d]=np(null),f=Xve(),u=Kve(A=>A.config.components),[p,m]=np(!1),[h,I]=np(null),w=Gve(null),[S,C]=np(null),b=zve(async()=>{if(f.usesBridgedToken&&!r.current){m(!0);return}try{d(await Ge(f).pages.list(t?{siteId:t}:void 0))}catch{m(!0)}},[r,t,f]),y=()=>{if(s){i(!1);return}let A=w.current?.getBoundingClientRect();A&&C({top:A.bottom+6,right:Math.max(8,window.innerWidth-A.right)}),d(null),m(!1),b(),i(!0)},v=(l??[]).filter(A=>A.slug!==o),L=async A=>{if(h)return;I(A.slug);let D=Qve(e,u,f.documentHooks?.storedNode),T=await a(()=>eke(Ge(f).pages,A,D));I(null),i(!1),n?.(T?c("Duplicated to \u201C{name}\u201D",{name:A.label}):c("Couldn\u2019t duplicate the section \u2014 please retry"),T?"success":"error")};return i0(Uve,{children:[Rr("span",{"data-menu-toggle":!0,style:{display:"contents"},children:Rr(jve,{buttonRef:w,label:c("Duplicate to another page"),hasPopup:"menu",expanded:s,onClick:y,children:Rr(qve,{size:15})})}),s&&S&&Rr(Vve,{portal:!0,style:{top:S.top,right:S.right},onClose:()=>i(!1),children:i0("div",{role:"menu","aria-label":c("Duplicate to page"),children:[Rr($I,{children:c("Duplicate to page")}),p?Rr($I,{children:c("Couldn\u2019t load pages")}):l===null?Rr($I,{children:c("Loading\u2026")}):v.length===0?Rr($I,{children:c("No other pages")}):v.map(A=>i0(Yve,{role:"menuitem",disabled:h!==null,onClick:()=>{L(A)},children:[Rr("span",{className:"min-w-0 flex-1 truncate",children:A.label}),h===A.slug?Rr("span",{className:"shrink-0 text-xs",children:c("Copying\u2026")}):A.draft&&Rr("span",{className:"shrink-0 text-xs",children:c("draft")})]},A.id))]})})]})}async function eke(e,o,t){let r=WI(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]:[],i=s.findIndex(l=>l?.type===Jve);s.splice(i===-1?s.length:i,0,t),await r.save(o.id,{layout:{root:{},zones:{},...n,content:s}},{version:a.version,clientId:""})}import{useScreenDocument as Pke}from"efficient-easel/screen/components/ScreenDocumentContext";import{useSectionOps as Eke}from"efficient-easel/screen/lib/document/use-section-ops";import{SELECTION_MODE as Exo,isSelectionMode as p0}from"efficient-easel/screen/lib/screen-parts";import{usePreviewParts as _ke}from"efficient-easel/draw/client";import{jsx as sp,jsxs as oke}from"react/jsx-runtime";import{SettingsDrill as tke}from"efficient-easel/panel";import{UiIcon as rke}from"efficient-easel/draw/client";var ake="Not shown on the page";function nke({part:e,onOpen:o}){return sp(tke,{name:c(e.label),preview:e.offPage?c(ake):e.preview||c("Empty"),offPage:e.offPage,status:e.hidden?sp("span",{className:"sf-entry-eye",role:"img","aria-label":c("Hidden on the page"),children:sp(rke,{name:"eye-off",size:14})}):void 0,onOpen:()=>o(e.key)})}function l0(e){return e.filter(o=>!o.identifier)}function zK({parts:e,onOpen:o,heading:t=!0}){let r=l0(e);return r.length?oke("div",{className:"sf-entries",children:[t?sp("h3",{className:"sf-entries-head",children:c("Text")}):null,r.map(a=>sp(nke,{part:a,onOpen:o},a.key))]}):null}import{HEADER_TYPE as Oke,ROOT_ZONE as t8}from"efficient-easel/draw";import{HEADER_TYPE as Tt,FOOTER_TYPE as Qe,newNodeId as ske}from"efficient-easel/draw";function UI(){return{type:Tt,props:{id:ske(Tt)}}}var GK=[{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"}],ike=GK.filter(e=>e.type!=="FooterLogo"&&e.type!=="FooterGroup"),lke="FooterGroup",jK="blocks";function KK(e){return e===Qe?GK:e===lke?ike:null}function zI(){let e=(o,t)=>({type:o,props:{id:`${o}-${crypto.randomUUID()}`,...t}});return[e("FooterLogo",{widthPct:100,align:"left",tagline:""}),e("FooterEmailSignup",{...pL}),e("FooterPayment",{...ym})]}function c0(e){switch(e?.type){case Je:case ze:return c("On every page");case Tt:case Qe:return c("On every page \xB7 old style");default:return null}}var VK=()=>null,YK=()=>c("Changed on every page");function GI(e,o){let t=pO(e,o);if(t)return t;let r=C1(e,o);if(!r)return null;let a=r.group===Je;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 jI,Fragment as dke,jsxs as fke}from"react/jsx-runtime";import{useState as pke}from"react";import{createNode as uke,newId as mke}from"efficient-easel/data";import{useEasel as hke}from"efficient-easel/easel";import{Banner as xke,Button as d0}from"efficient-shell/ui";import{useScreenDocument as gke}from"efficient-easel/screen/components/ScreenDocumentContext";var cke=["FooterPayment"];function qK(e,o){let{id:t,...r}=e.props;for(let a of Br(e))r[a]=r[a].map(n=>qK(n,o));return o(e.type,r)}var ip=(e,o)=>{if(!cke.includes(e.type))return null;Eg();let t=pn(e.type);return t?Bs({type:e.type,props:{...e.props}},t).nodes.map(r=>qK(r,o)):null};function XK(){let{appState:e,dispatch:o,config:t}=hke(f=>f),{readOnly:r}=gke(),[a,n]=pke(!1),s=e.data.content;if(r||s.some(f=>f.type===ze))return null;let i=s.find(f=>f.type===Qe)??null,l=(f,u)=>uke(t,f,u),d=()=>{let f=vf(i,l,mke(ze),ip);o({type:"setData",data:u=>({...u,content:[...Eu(u.content,f)]}),recordHistory:!0}),n(!1)};return jI(xke,{tone:"info",title:c("This footer uses the old layout"),action:a?fke(dke,{children:[jI(d0,{variant:"primary",size:"sm",onClick:d,children:c("Switch now")}),jI(d0,{variant:"secondary",size:"sm",onClick:()=>n(!1),children:c("Cancel")})]}):jI(d0,{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 f0,jsxs as Ike}from"react/jsx-runtime";import{InspectorUpLevel as ZK}from"efficient-easel/chrome";function JK({nodeId:e,part:o,sectionName:t,onUpToSection:r}){let{select:a}=vI(),n=sc(e,o,"picture");return Ike("div",{children:[o!=="media"?f0(ZK,{inline:!0,name:c(Oa.media),onSelect:()=>a(As(e,"media"))}):f0(ZK,{inline:!0,name:c(t),onSelect:r}),f0(Ar,{part:o,motion:n,itemWord:c(Oa[o])})]})}import{HintsToggle as Ake,SettingsSwitch as Rke,hintsFoldClass as Lke}from"efficient-easel/panel";import{useHints as Fke}from"efficient-easel/screen/lib/hints";var a8={kind:"header"},m0={kind:"website"},n8={kind:"website",tab:yl,revealPageGroup:!0},s8={kind:"chat"},i8={kind:"social"},lp="Part";function Bke(e){return c("Part of {name}",{name:c(e)})}function Nke(e,o,t){let r=e.describeNode(o);return{name:t,kindLabel:r?Bke(r.label):c(lp)}}function Dke(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 l8({what:e}){let o=Dke(e);return vn("div",{className:"sf-note",children:[Ne("p",{children:Ne("strong",{children:o.title})}),vn("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 u0(e){let o=af[e];return{name:Oa[e],kindLabel:lp,icon:o,head:(t,r)=>{if(t.kind!==o)return null;let a=r.describeNode(t.nodeId);if(!a)return null;let n=r8({name:c(Cx(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?Ne(JK,{nodeId:t.nodeId,part:e,sectionName:r.describeNode(t.nodeId)?.label??"Hero",onUpToSection:()=>r.onSelectNode(t.nodeId)}):null}}var Mke={header:{name:"Header",kindLabel:"Site settings",icon:"header",render:(e,o)=>{let t=o.hostPanels?.header;return t?Ne(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)=>Ne($h,{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:()=>Ne(jj,{})},social:{name:"Social links",kindLabel:"Site settings",icon:"social",render:()=>Ne(Zj,{unavailable:Ne(l8,{what:"Social link"})})},ticker:{name:js,kindLabel:lp,icon:"ticker",head:(e,o)=>e.kind==="ticker"?Nke(o,e.heroId,c(js)):null,render:e=>Ne(iK,{heroId:e.kind==="ticker"?e.heroId:""})},heroMedia:u0("media"),heroImage:u0("image"),heroImage2:u0("image2"),part:{name:lp,kindLabel:lp,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}=Cr(e.propKey),n=a?fl(t.fields[r],a):t.fields[r],s=Yl(t.type),i=s?Pc(s,e.propKey):null,l=s&&i?s[i].label:n2[e.propKey],d=l?c(l):ZB(c(kd(ch(n??{},r))),a),f=r8({name:d,tier:"part",of:c(t.label)},{partOf:({name:u})=>c("Part of {name}",{name:u})});return{name:f.name,kindLabel:f.kind}},render:(e,o)=>e.kind==="part"?Ne(OK,{nodeId:e.nodeId,propKey:e.propKey,onBack:()=>o.onSelectNode(e.nodeId),onEditStyle:o.onOpenSiteStyles}):null}},Hke=new Set(["header","website","chat"]);function Wke(e,o){if(e==="selection")return null;let t=Mke[e];return Hke.has(e)&&!o.hasSiteSettings?{...t,kindLabel:"Not part of a template",render:()=>Ne(l8,{what:t.name})}:t}function c8({mode:e,onOpenWebsiteSettings:o,onOpenSiteStyles:t,onSelectNode:r,hideNodeActions:a=!1,onNotify:n,onHidePanel:s}){let{capabilities:i,tokenRef:l,notifyParent:d,currentSlug:f,siteId:u,runAuthed:p,readOnly:m,navigate:h}=Pke(),{rows:I}=Md(),w=I?.find(ce=>ce.slug===f)??null,S=bke(),C=Object.keys(S.fields).some(ce=>!ce.startsWith("_")&&!Nd.includes(ce)),{websiteName:b}=fe(),y=Eke({readOnly:m}),{select:v}=_ke(),{selectedItem:L,getItemById:A,getSelectorForId:D,config:T,appState:F}=yke(ce=>ce),k=kke(T,L?{type:L.type,props:L.props}:null),_=L?sN(k??T.components[L.type]?.fields,L.props):[],P=ce=>T.components[ce]?.label??ce,O=L?D(L.props.id):void 0,W=Wke(e.kind,i),G=Tke(),Z={capabilities:i,tokenRef:l,hostPanels:G.chrome?.panels,describeNode:ce=>{let Ce=A(ce);if(!Ce)return null;let So=T.components[Ce.type];return{type:Ce.type,label:So?.label??Ce.type,fields:So?.fields??{},props:Ce.props??{}}},siteId:u,websiteName:b??null,notifyParent:d,onNotify:n,onOpenWebsiteSettings:o,onOpenSiteStyles:t,onSelectNode:r},X=W?.head?.(e,Z)??null,ne=Hj({kind:w?.kind,pageName:w?.label}),ve=X?.name??(W?c(W.name):L?c(P(L.type)):ne.name),oe=X?.kindLabel??(W?c(W.kindLabel):L?O&&O.zone!==t8?c("Block"):c("Section"):ne.kindLabel),ke=W?W.icon:L?L.type:"page",Oe=p0(e)&&L?ep(L.type):null,Ae=!!L&&!!O&&O.zone===t8&&L.type!==Qe&&L.type!==Oke,Re=GI(F?.data,L),nt=()=>{Re||O&&y.duplicateComponent(O.zone,O.index)},Xo=()=>{O&&(y.removeComponent(O.zone,O.index),y.select(null))},Zo=L?T.components[L.type]?.defaultProps?.previewHover:void 0,bo=p0(e)&&!!L&&!!O&&Zo!==void 0,Do=bo&&L.props.previewHover===!0,Eo=()=>{!L||!O||y.replaceComponent(O.zone,O.index,{...L,props:{...L.props,previewHover:!Do}})},{shown:ue,setShown:no}=Fke(),z=!!(W||L||C);return vn("div",{className:`es-sidepanel es-sidepanel--right sf-panel sf-panel--right ${Lke(ue)}`.trim(),children:[Ne(wke,{icon:Ne(Js,{type:ke,size:15}),name:ve,kind:oe,actions:!a&&p0(e)&&L&&L.type!==Qe?vn(QK,{children:[Ne(e8,{label:c("Duplicate section"),title:Re??void 0,disabled:Re!==null,onClick:nt,children:Ne(Cke,{size:15})}),Ae&&i.hasSiteSettings&&Ne(UK,{node:L,currentSlug:f,siteId:u??void 0,tokenRef:l,runAuthed:p,onNotify:n}),Ne(e8,{label:c("Remove section"),danger:!0,onClick:Xo,children:Ne(vke,{size:15})}),s?Ne(o8,{side:"right",onHide:s,divider:!0}):null]}):s?Ne(o8,{side:"right",onHide:s}):void 0}),bo&&vn("div",{className:"sf-preview-pin",children:[vn("div",{className:"sf-preview-pin-text",children:[Ne("span",{className:"sf-preview-pin-label",children:c("Preview hover state")}),Ne("span",{className:"sf-preview-pin-hint",children:c("not shown live")})]}),Ne(Rke,{checked:Do,onChange:Eo,ariaLabel:c("Preview hover state")})]}),vn("div",{className:"sf-insp-body es-insp-body sf-scroll",children:[W?W.render(e,Z):L?vn(QK,{children:[L.type===Qe&&i.hasSiteSettings&&Ne(XK,{}),Ne(SR,{children:Ne(Ar,{entries:Ne(zK,{parts:_,heading:!1,onOpen:ce=>v(qr(L.props.id,ce))}),entryCount:l0(_).length,itemWord:ve})}),Oe&&Ne(FI,{source:Oe,slug:lc(L?.props),menuId:OI(L?.props)})]}):C?Ne(Ar,{omit:Nd}):Ne(Ske,{variant:"none",icon:!1,message:c("Select a section or block to edit it.")}),z&&Ne(Ake,{shown:ue,onChange:no,label:c("Show hints")})]})]})}import{jsx as x,jsxs as B,Fragment as m8}from"react/jsx-runtime";var Po={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)"},h0="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 K({w:e,h:o,tone:t="dark",r=2,style:a}){return x("div",{style:{width:e,height:o,borderRadius:r,background:Po[t],flex:"none",...a}})}var $ke={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"},J={position:"absolute",inset:0},g={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)"},qe=(e,o,t=160)=>({background:`linear-gradient(${t}deg,${e},${o})`});function La({size:e,style:o}){let t=Math.max(2,Math.round(e*.13)),r=(a,n,s)=>({position:"absolute",inset:a,background:n,borderRadius:t,...s?{mixBlendMode:s}:null});return B("span",{style:{position:"absolute",display:"block",width:e,height:e,...o},children:[x("span",{style:r("8% 26% 30% 6%",g.mark1)}),x("span",{style:r("26% 6% 8% 30%",g.mark2,"multiply")})]})}function VI({children:e}){return x("span",{style:{fontSize:"4.64cqw",fontWeight:700,letterSpacing:"0.06em",textTransform:"uppercase",color:g.muted},children:e})}function d8({over:e,overTone:o,head:t,headSize:r=11.5,cta:a,ctaBg:n,ctaFg:s,tone:i}){return B(m8,{children:[e&&x("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.16em",fontWeight:700,color:o},children:e}),x("span",{style:{fontSize:r,lineHeight:1.15,fontWeight:700,maxWidth:"78%",color:i},children:t}),a&&x("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 x0({name:e,price:o}){return B("div",{style:{display:"flex",flexDirection:"column",gap:2,minWidth:0},children:[x("div",{style:{flex:1,minHeight:0,borderRadius:3,position:"relative",overflow:"hidden",...qe(g.paper,g.paper2,150)},children:x(La,{size:34,style:{left:"50%",top:"50%",transform:"translate(-50%,-50%)"}})}),x("span",{style:{fontSize:"3.65cqw",fontWeight:600,color:g.text},children:e}),x("span",{style:{fontSize:"3.65cqw",color:g.muted},children:o})]})}function Ra({k:e,v:o,ok:t}){return B("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",gap:6,padding:"3.5px 2px",borderBottom:`1px solid ${g.rule}`,fontSize:"3.98cqw",color:g.muted},children:[x("span",{children:e}),B("span",{style:{display:"flex",gap:6,alignItems:"center"},children:[x("b",{style:{color:g.text,fontWeight:700},children:o}),t&&x("span",{style:{color:g.rust,fontWeight:700},children:"\u2713"})]})]})}function We({title:e,children:o}){return B("div",{style:{...J,background:g.card,padding:"9px 10px",display:"flex",flexDirection:"column",gap:6},children:[x(VI,{children:e}),o]})}function f8({size:e=14}){return x("span",{style:{width:e,height:e,borderRadius:"50%",flex:"none",display:"block",background:`linear-gradient(150deg,${g.mark1},${g.mark2})`}})}function g0({filled:e=5,size:o=6}){return B("span",{style:{fontSize:o,letterSpacing:"0.06em",color:g.rust,lineHeight:1},children:["\u2605".repeat(e),x("span",{style:{color:g.mark1},children:"\u2605".repeat(5-e)})]})}function cp({n:e,label:o,tone:t=g.text}){return B("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:1,minWidth:0},children:[x("b",{style:{fontSize:"8.16cqw",lineHeight:1,color:t},children:e}),x("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.08em",textTransform:"uppercase",opacity:.62,color:t},children:o})]})}function Co({children:e,w:o}){return x("span",{style:{fontSize:"3.98cqw",lineHeight:1.45,color:g.muted,width:o,display:"block"},children:e})}function KI({label:e,w:o="100%",filled:t}){return B("div",{style:{width:o,display:"flex",flexDirection:"column",gap:2},children:[x("span",{style:{fontSize:"3.32cqw",letterSpacing:"0.08em",textTransform:"uppercase",color:g.muted},children:e}),x("span",{style:{height:9,borderRadius:3,border:`1px solid ${g.rule}`,background:t?g.paper:g.card}})]})}function p8({children:e}){return x("span",{style:{alignSelf:"flex-start",fontSize:"3.65cqw",letterSpacing:"0.12em",fontWeight:700,padding:"5px 9px",borderRadius:2,background:g.text,color:g.onInk},children:e})}var Uke={wheelslisting:x(We,{title:"All wheels",children:x("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[["Ridge 19","20\xD79 +12","$365"],["Ridge 29","18\xD79 +20","$410"],["Ridge 39","17\xD78 \u221210","$455"]].map(([e,o,t])=>B("div",{style:{display:"flex",alignItems:"center",gap:6},children:[x("span",{style:{width:20,height:15,borderRadius:3,flex:"none",position:"relative",overflow:"hidden",...qe(g.paper,g.paper2,150)},children:x(La,{size:12,style:{left:"50%",top:"50%",transform:"translate(-50%,-50%)"}})}),x("b",{style:{flex:1,fontSize:"4.31cqw",color:g.text},children:e}),x("span",{style:{fontSize:"3.65cqw",color:g.muted},children:o}),x("b",{style:{fontSize:"4.31cqw",color:g.text,width:26,textAlign:"right"},children:t})]},e))})}),catalogfilterbar:B("div",{style:{...J,background:g.card,display:"flex",flexDirection:"column",justifyContent:"center",gap:7,padding:"0 11px"},children:[B("div",{style:{display:"flex",gap:4,alignItems:"center"},children:[["20 inch","6\xD7139.7","Black"].map(e=>B("span",{style:{fontSize:"3.65cqw",fontWeight:600,padding:"4px 7px",borderRadius:99,background:g.text,color:g.onInk,display:"flex",gap:4,alignItems:"center"},children:[e,x("span",{style:{opacity:.6},children:"\u2715"})]},e)),x("span",{style:{fontSize:"3.65cqw",color:g.rust,fontWeight:700},children:"Clear"})]}),B("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[x("span",{style:{fontSize:"3.65cqw",color:g.muted},children:"128 results"}),x("span",{style:{fontSize:"3.65cqw",color:g.muted,border:`1px solid ${g.rule}`,borderRadius:3,padding:"3px 6px"},children:"Sort: Price \u25BE"})]})]}),fitmentfinder:B("div",{style:{...J,padding:"10px 12px",display:"flex",flexDirection:"column",gap:6,justifyContent:"center",...qe(g.ink,g.inkSoft)},children:[x("span",{style:{fontSize:"5.31cqw",fontWeight:700,color:g.onInk},children:"Will it fit your rig?"}),B("div",{style:{display:"flex",gap:4},children:[["2021","Toyota","Hilux"].map(e=>B("span",{style:{flex:1,fontSize:"3.65cqw",color:g.text,background:g.card,borderRadius:3,padding:"5px 6px",display:"flex",justifyContent:"space-between"},children:[e," ",x("span",{style:{color:g.muted},children:"\u25BE"})]},e)),x("span",{style:{fontSize:"3.65cqw",fontWeight:700,letterSpacing:"0.08em",background:g.warm,color:g.ink,borderRadius:3,padding:"5px 7px"},children:"GO"})]})]}),compatibletyres:x(We,{title:"Tyres that suit",children:x("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(3,1fr)",gap:5,minHeight:0},children:[["Ridge Grappler","$489"],["Trail Grappler","$525"],["Terra Grappler","$438"]].map(([e,o])=>B("div",{style:{display:"flex",flexDirection:"column",gap:2,minWidth:0},children:[x("div",{style:{flex:1,minHeight:0,borderRadius:3,position:"relative",overflow:"hidden",background:g.ink},children:x("span",{style:{position:"absolute",left:"50%",top:"50%",transform:"translate(-50%,-50%)",width:26,height:26,borderRadius:"50%",border:`5px solid ${g.mark2}`,boxSizing:"border-box"}})}),x("span",{style:{fontSize:"3.32cqw",fontWeight:600,color:g.text,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},children:e}),x("span",{style:{fontSize:"3.32cqw",color:g.muted},children:o})]},e))})}),tyresizes:x(We,{title:"Available sizes",children:x("div",{style:{flex:1,display:"flex",flexWrap:"wrap",gap:4,alignContent:"center"},children:["265/65R17","285/70R17","265/60R18","275/55R20"].map((e,o)=>x("span",{style:{fontSize:"3.65cqw",fontWeight:600,padding:"5px 7px",borderRadius:3,border:`1px solid ${o===0?g.rust:g.rule}`,color:o===0?g.rust:g.text,background:o===0?g.paper:g.card},children:e},e))})}),tyrefitment:B(We,{title:"Will it fit your car?",children:[x("div",{style:{display:"flex",gap:3},children:["Make","Model","Year","Trim"].map(e=>B("span",{style:{flex:1,minWidth:0,fontSize:"3.32cqw",color:g.muted,background:g.paper,border:`1px solid ${g.rule}`,borderRadius:3,padding:"4px 5px",display:"flex",justifyContent:"space-between",gap:2,overflow:"hidden",whiteSpace:"nowrap"},children:[e," ",x("span",{style:{color:g.muted},children:"\u25BE"})]},e))}),x("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:2,justifyContent:"center",minHeight:0},children:[["265/65R17","Fits",!0],["285/70R17","Not your size",!1]].map(([e,o,t])=>B("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"baseline",gap:6,borderTop:`1px solid ${g.rule}`,paddingTop:3},children:[x("span",{style:{fontSize:"3.32cqw",fontWeight:600,color:g.text},children:e}),x("span",{style:{fontSize:"3.32cqw",fontWeight:t?700:400,letterSpacing:"0.06em",color:t?g.warm:g.muted},children:o})]},e))})]}),eutyrelabel:B("div",{style:{...J,background:g.card,padding:"9px 11px",display:"flex",gap:8,alignItems:"center"},children:[x("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:1.5},children:[["A","42%"],["B","56%"],["C","70%"],["D","84%"]].map(([e,o],t)=>B("div",{style:{display:"flex",alignItems:"center",gap:3},children:[x("span",{style:{width:o,height:6,borderRadius:"0 2px 2px 0",background:t===1?g.rust:g.mark1}}),x("span",{style:{fontSize:"3.32cqw",fontWeight:700,color:t===1?g.rust:g.muted},children:e})]},e))}),B("div",{style:{flex:"none",display:"flex",flexDirection:"column",gap:3,alignItems:"center"},children:[x("b",{style:{fontSize:"6.63cqw",lineHeight:1,color:g.text},children:"72"}),x("span",{style:{fontSize:"3.32cqw",letterSpacing:"0.08em",color:g.muted},children:"dB"})]})]}),bundleoffer:B("div",{style:{...J,background:g.paper,padding:"9px 11px",display:"flex",flexDirection:"column",gap:5,justifyContent:"center"},children:[x(VI,{children:"Buy it with"}),B("div",{style:{display:"flex",alignItems:"center",gap:5},children:[[0,1].map(e=>x("span",{style:{width:26,height:22,borderRadius:3,flex:"none",position:"relative",overflow:"hidden",background:g.card},children:x(La,{size:17,style:{left:"50%",top:"50%",transform:"translate(-50%,-50%)"}})},e)),x("span",{style:{fontSize:"5.69cqw",fontWeight:700,color:g.muted},children:"+"}),B("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:1},children:[x("span",{style:{fontSize:"3.65cqw",color:g.muted,textDecoration:"line-through"},children:"$1,024"}),x("b",{style:{fontSize:"6.02cqw",color:g.rust,lineHeight:1},children:"$899"})]})]})]}),checkoutcta:B("div",{style:{...J,display:"flex",alignItems:"center",justifyContent:"space-between",padding:"0 13px",gap:8,...qe(g.ink,g.ink2)},children:[B("div",{style:{display:"flex",flexDirection:"column",gap:2},children:[x("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.12em",color:g.warm,fontWeight:700},children:"READY TO ORDER"}),x("b",{style:{fontSize:"6.63cqw",color:g.onInk,lineHeight:1},children:"$1,956"}),x("span",{style:{fontSize:"3.65cqw",color:g.onInk,opacity:.65},children:"4 items \xB7 fitted free"})]}),x("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.12em",fontWeight:700,padding:"6px 10px",borderRadius:2,background:g.warm,color:g.ink,flex:"none"},children:"CHECKOUT"})]}),contact:x(We,{title:"Who do you need?",children:x("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[["Fitment help","the workshop"],["Order status","the front desk"],["Trade accounts","sales"]].map(([e,o])=>B("div",{style:{display:"flex",alignItems:"center",gap:5},children:[x("b",{style:{flex:1,fontSize:"4.31cqw",color:g.text},children:e}),x("span",{style:{fontSize:"3.65cqw",color:g.muted},children:o}),x("span",{style:{fontSize:"4.64cqw",color:g.rust,lineHeight:1},children:"\u203A"})]},e))})}),contactlocations:x(We,{title:"Find us",children:x("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(2,1fr)",gap:5,minHeight:0},children:[["Brisbane","7 Kerry Rd","Mon\u2013Sat"],["Townsville","12 Enterprise","Mon\u2013Fri"]].map(([e,o,t])=>B("div",{style:{border:`1px solid ${g.rule}`,borderRadius:4,padding:"5px 6px",display:"flex",flexDirection:"column",gap:1},children:[x("b",{style:{fontSize:"4.31cqw",color:g.text},children:e}),x("span",{style:{fontSize:"3.32cqw",color:g.muted},children:o}),x("span",{style:{fontSize:"3.32cqw",color:g.rust,fontWeight:700},children:t})]},e))})}),citypictures:x(We,{title:"Our studios",children:B("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:3,minHeight:0},children:[x("span",{style:{fontSize:"3.32cqw",letterSpacing:"0.12em",fontWeight:700,color:g.muted},children:"A \xB7 AMERICAS"}),x("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(3,1fr)",gap:4,minHeight:0},children:["Los Angeles","Miami","Toronto"].map(e=>B("div",{style:{position:"relative",minHeight:0},children:[x(K,{r:3,style:{...J,background:`linear-gradient(transparent 45%,${g.scrim} 45%),${qe(g.ink,g.inkSoft2).background}`}}),x("b",{style:{position:"absolute",left:5,bottom:4,fontSize:"3.65cqw",color:g.onInk},children:e})]},e))})]})}),citymaps:x(We,{title:"Find us",children:x("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(2,1fr)",gap:5,minHeight:0},children:[["Brisbane","7 Kerry Rd"],["Townsville","12 Enterprise"]].map(([e,o])=>B("div",{style:{position:"relative",padding:"4px 5px",display:"flex",flexDirection:"column",gap:2,minHeight:0},children:[x(K,{r:4,style:{...J,background:"none",border:`1px solid ${g.rule}`}}),x("b",{style:{position:"relative",fontSize:"4.31cqw",color:g.text},children:e}),x("span",{style:{position:"relative",fontSize:"3.32cqw",color:g.muted},children:o}),B("div",{style:{flex:1,minHeight:0,position:"relative"},children:[x(K,{r:3,style:{...J,...qe(g.paper,g.paper2,150)}}),x(K,{w:"60%",h:"60%",r:8,style:{position:"absolute",left:"12%",top:"20%",background:g.mark1,opacity:.75}}),x(K,{w:6,h:6,r:3,style:{position:"absolute",left:"44%",top:"34%",background:g.rust}})]})]},e))})}),form:x(We,{title:"Send us a message",children:B("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[B("div",{style:{display:"flex",gap:5},children:[x(KI,{label:"Name"}),x(KI,{label:"Email"})]}),x(KI,{label:"Message",filled:!0}),x(p8,{children:"SEND"})]})}),appointmentbooking:x(We,{title:"Book a fitting",children:B("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[x("div",{style:{display:"flex",gap:3},children:["Mon","Tue","Wed","Thu"].map((e,o)=>x("span",{style:{flex:1,textAlign:"center",fontSize:"3.32cqw",fontWeight:o===2?700:500,padding:"4px 0",borderRadius:3,background:o===2?g.text:g.paper,color:o===2?g.onInk:g.muted},children:e},e))}),x("div",{style:{display:"flex",gap:3},children:["8:00","10:30","13:00","15:30"].map((e,o)=>x("span",{style:{flex:1,textAlign:"center",fontSize:"3.32cqw",padding:"4px 0",borderRadius:3,border:`1px solid ${o===1?g.rust:g.rule}`,color:o===1?g.rust:g.muted,background:o===3?g.paper:g.card,textDecoration:o===3?"line-through":"none"},children:e},e))})]})}),reviewform:x(We,{title:"Leave a review",children:B("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:5,justifyContent:"center"},children:[x(g0,{filled:4,size:14}),x(KI,{label:"Your review",filled:!0}),x(p8,{children:"POST"})]})}),submitbuild:x(We,{title:"Show us your build",children:B("div",{style:{flex:1,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:3,border:`1px dashed ${g.mark1}`,borderRadius:5,background:g.paper},children:[x("span",{style:{fontSize:"6.63cqw",lineHeight:1,color:g.rust,fontWeight:300},children:"+"}),x("span",{style:{fontSize:"3.65cqw",color:g.muted},children:"Drop a photo of your rig"})]})}),masthead:B("div",{style:{...J,background:g.paper,display:"flex",flexDirection:"column",justifyContent:"center",padding:"0 13px",gap:5},children:[x("span",{style:{height:1.5,background:g.text}}),x("span",{style:{fontSize:"7.65cqw",fontWeight:800,letterSpacing:"0.02em",color:g.text,lineHeight:1},children:"THE TRACK"}),B("div",{style:{display:"flex",justifyContent:"space-between",fontSize:"3.65cqw",letterSpacing:"0.1em",textTransform:"uppercase",color:g.muted},children:[x("span",{children:"Issue 14"}),x("span",{children:"Spring 2026"})]}),x("span",{style:{height:1,background:g.rule}})]}),featuredcover:B("div",{style:{...J,overflow:"hidden",...qe(g.ink,g.inkSoft2)},children:[x(La,{size:92,style:{right:-18,top:-14}}),x("div",{style:{position:"absolute",inset:0,background:`linear-gradient(0deg,${g.scrim},transparent 62%)`}}),B("div",{style:{position:"absolute",left:12,right:12,bottom:11,display:"flex",flexDirection:"column",gap:3},children:[x("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.16em",fontWeight:700,color:g.warm},children:"FEATURE"}),x("span",{style:{fontSize:"6.16cqw",lineHeight:1.15,fontWeight:700,color:g.onInk},children:"Four days on the Madigan Line"})]})]}),longread:B("div",{style:{...J,background:g.card,padding:"10px 14px",display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[x("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.14em",fontWeight:700,color:g.rust},children:"12 MIN READ"}),x("span",{style:{fontSize:"6.02cqw",lineHeight:1.15,fontWeight:700,color:g.text},children:"What breaks first, and why"}),x(Co,{children:"Every failure starts in the same place:"}),x(Co,{w:"80%",children:"the bolt nobody re-torqued."})]}),articlebody:B("div",{style:{...J,background:g.card,padding:"10px 22px",display:"flex",flexDirection:"column",gap:4,justifyContent:"center",alignItems:"center",textAlign:"center"},children:[x("span",{style:{fontSize:"4.97cqw",lineHeight:1.2,fontWeight:700,color:g.text},children:"Why offset beats width"}),x(Co,{w:"100%",children:"A wider wheel adds grip only if the offset still"}),x(Co,{w:"88%",children:"clears the arch, so the offset is chosen first."}),x(Co,{w:"80%",children:"Width follows from the space left."})]}),series:x(We,{title:"Recurring columns",children:x("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:5,justifyContent:"center"},children:[["Shed Notes","Monthly"],["Track Tested","Fortnightly"],["Reader Rigs","Weekly"]].map(([e,o])=>B("div",{style:{display:"flex",alignItems:"center",gap:6},children:[x("span",{style:{width:3,height:12,borderRadius:2,background:g.rust,flex:"none"}}),x("b",{style:{flex:1,fontSize:"4.64cqw",color:g.text},children:e}),x("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.08em",textTransform:"uppercase",color:g.muted},children:o})]},e))})}),events:x(We,{title:"Latest posts",children:x("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:5,justifyContent:"center"},children:[[g.inkSoft,g.inkSoft2,"Madigan Line, four days"],[g.rust,g.warm,"Why offset beats width"]].map(([e,o,t])=>B("div",{style:{display:"flex",gap:6,alignItems:"center"},children:[x("span",{style:{width:24,height:18,borderRadius:3,flex:"none",...qe(e,o,150)}}),B("div",{style:{display:"flex",flexDirection:"column",gap:1,minWidth:0},children:[x("b",{style:{fontSize:"4.31cqw",color:g.text},children:t}),x("span",{style:{fontSize:"3.65cqw",color:g.muted},children:"4 Sep \xB7 Shed Notes"})]})]},t))})}),docmasthead:B("div",{style:{...J,background:g.card,padding:"12px 14px",display:"flex",flexDirection:"column",gap:5,justifyContent:"center"},children:[x("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.16em",fontWeight:700,color:g.muted},children:"POLICY"}),x("span",{style:{fontSize:"6.49cqw",fontWeight:700,color:g.text,lineHeight:1.1},children:"Returns & refunds"}),x("span",{style:{fontSize:"3.65cqw",color:g.muted},children:"Version 3 \xB7 Updated 4 Sep 2026"}),x("span",{style:{height:2,width:26,background:g.rust,borderRadius:1}})]}),docbody:x("div",{style:{...J,background:g.card,padding:"9px 13px",display:"flex",flexDirection:"column",gap:3,justifyContent:"center"},children:[["1.","You may return an unfitted wheel within 30 days."],["2.","Fitted wheels are covered by the structural warranty."],["3.","Freight on a change of mind is yours."]].map(([e,o])=>B("div",{style:{display:"flex",gap:5},children:[x("b",{style:{fontSize:"3.98cqw",color:g.rust,flex:"none"},children:e}),x(Co,{children:o})]},e))}),docmetacards:x(We,{title:"At a glance",children:x("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(2,1fr)",gap:5,minHeight:0},children:[["30 days","To return"],["5 years","Structural"],["Free","Fitting"],["48 hrs","Dispatch"]].map(([e,o])=>B("div",{style:{border:`1px solid ${g.rule}`,borderRadius:4,padding:"5px 6px",display:"flex",flexDirection:"column",gap:1},children:[x("b",{style:{fontSize:"5.31cqw",color:g.text,lineHeight:1},children:e}),x("span",{style:{fontSize:"3.32cqw",letterSpacing:"0.08em",textTransform:"uppercase",color:g.muted},children:o})]},o))})}),doctabs:B("div",{style:{...J,background:g.card,display:"flex",flexDirection:"column",justifyContent:"center",gap:0,padding:"0 11px"},children:[x("div",{style:{display:"flex",gap:0},children:["Returns","Warranty","Shipping"].map((e,o)=>x("span",{style:{fontSize:"3.98cqw",fontWeight:o===0?700:500,padding:"5px 8px",color:o===0?g.text:g.muted,background:o===0?g.paper:"transparent",borderRadius:"4px 4px 0 0",border:`1px solid ${o===0?g.rule:"transparent"}`,borderBottom:"none"},children:e},e))}),x("span",{style:{height:1,background:g.rule}}),B("div",{style:{paddingTop:6,display:"flex",flexDirection:"column",gap:2},children:[x(Co,{children:"Unfitted wheels come back within 30 days, no questions."}),x(Co,{w:"58%",children:"Freight on a change of mind is yours."})]})]}),paragraphs:B("div",{style:{...J,background:g.card,padding:"11px 14px",display:"flex",gap:10,alignItems:"center"},children:[x("span",{style:{flex:1,fontSize:"5.86cqw",lineHeight:1.2,fontWeight:700,color:g.text},children:"The right wheel is the boring one."}),B("div",{style:{flex:1,display:"flex",flexDirection:"column"},children:[x(Co,{children:"Forged, correctly offset, rated for what you actually"}),x(Co,{children:"carry. Everything else is a photograph."})]})]}),keyfeatures:x(We,{title:"Key features",children:x("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:["Flow-formed barrel","1250 kg per corner","Hub-centric fit"].map(e=>B("div",{style:{display:"flex",gap:6,alignItems:"center"},children:[x("span",{style:{fontSize:"4.64cqw",color:g.rust,fontWeight:700,lineHeight:1},children:"\u2713"}),x("span",{style:{fontSize:"4.31cqw",color:g.text},children:e})]},e))})}),statsparagraph:B("div",{style:{...J,background:g.paper,padding:"10px 12px",display:"flex",gap:10,alignItems:"center"},children:[B("div",{style:{flex:"none",display:"flex",flexDirection:"column",gap:5},children:[x(cp,{n:"27k",label:"Rigs"}),x(cp,{n:"4.9",label:"Rating"})]}),B("div",{style:{flex:1,display:"flex",flexDirection:"column"},children:[x(Co,{children:"Twelve years of fitting the same three questions, and the"}),x(Co,{children:"answer has not moved: load rating, offset, then looks."})]})]}),chart:B(We,{title:"Load vs weight",children:[x("div",{style:{flex:1,display:"flex",alignItems:"flex-end",gap:5,paddingBottom:2},children:[38,62,84,71,96].map((e,o)=>x("span",{style:{flex:1,height:`${e}%`,borderRadius:"2px 2px 0 0",background:o===4?g.rust:g.mark1}},o))}),x("span",{style:{height:1,background:g.rule,marginTop:-4}})]}),mockup:x("div",{style:{...J,overflow:"hidden",display:"flex",alignItems:"center",justifyContent:"center",...qe(g.inkSoft,g.ink)},children:B("div",{style:{width:"72%",height:"74%",borderRadius:4,overflow:"hidden",background:g.card,boxShadow:`0 6px 14px ${g.scrim}`},children:[x("div",{style:{height:9,background:g.paper,display:"flex",alignItems:"center",gap:2,padding:"0 4px"},children:[0,1,2].map(e=>x("span",{style:{width:2.5,height:2.5,borderRadius:"50%",background:g.mark1}},e))}),B("div",{style:{padding:5,display:"flex",flexDirection:"column",gap:3},children:[x("span",{style:{height:4,width:"56%",borderRadius:1,background:g.mark2}}),x("span",{style:{height:14,borderRadius:2,...qe(g.paper,g.paper2,150)}}),x("span",{style:{height:3,width:"38%",borderRadius:1,background:g.rust}})]})]})}),manifesto:x("div",{style:{...J,overflow:"hidden",display:"flex",alignItems:"center",padding:"0 16px",...qe(g.ink,g.ink2)},children:B("span",{style:{fontSize:"6.63cqw",lineHeight:1.2,fontWeight:700,color:g.onInk},children:["We build for the ",x("span",{style:{color:g.warm},children:"last"})," ten percent of the track."]})}),timeline:x(We,{title:"Our story",children:x("div",{style:{flex:1,display:"flex",flexDirection:"column",justifyContent:"center",gap:6,paddingLeft:4},children:[["1998","One shed, one lathe."],["2009","First forged rim."],["2024","27,000 rigs on."]].map(([e,o],t)=>B("div",{style:{display:"flex",gap:7,alignItems:"flex-start",position:"relative"},children:[t<2&&x("span",{style:{position:"absolute",left:3,top:8,bottom:-8,width:1,background:g.rule}}),x("span",{style:{width:7,height:7,borderRadius:"50%",flex:"none",marginTop:1,background:g.rust,zIndex:1}}),B("div",{style:{display:"flex",flexDirection:"column",gap:0,minWidth:0},children:[x("b",{style:{fontSize:"4.64cqw",color:g.text},children:e}),x(Co,{children:o})]})]},e))})}),timelinetrack:B("div",{style:{...J,padding:"0 12px",display:"flex",flexDirection:"column",gap:10,justifyContent:"center",...qe(g.ink,g.inkSoft)},children:[x("span",{style:{fontSize:"3.98cqw",fontWeight:700,letterSpacing:"0.14em",textTransform:"uppercase",color:g.warm},children:"Milestones"}),B("div",{style:{position:"relative",display:"flex",justifyContent:"space-between",paddingTop:7},children:[x("span",{style:{position:"absolute",left:0,right:0,top:3,height:1,background:g.mark2,opacity:.55}}),["1998","2009","2016","2024"].map((e,o)=>B("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:3,position:"relative"},children:[x("span",{style:{position:"absolute",top:-7,width:6,height:6,borderRadius:"50%",background:o===3?g.warm:g.mark1}}),x("span",{style:{fontSize:"4.31cqw",fontWeight:700,color:o===3?g.warm:g.onInk,opacity:o===3?1:.75},children:e})]},e))]})]}),footprint:B("div",{style:{...J,overflow:"hidden",...qe(g.paper,g.paper2,150)},children:[x("span",{style:{position:"absolute",left:"8%",top:"18%",width:"62%",height:"64%",borderRadius:"48% 52% 40% 60% / 55% 45% 55% 45%",background:g.mark1,opacity:.75}}),x("span",{style:{position:"absolute",left:"52%",top:"52%",width:"34%",height:"34%",borderRadius:"58% 42% 55% 45% / 45% 58% 42% 55%",background:g.mark2,opacity:.55}}),[["26%","38%"],["44%","58%"],["62%","34%"]].map(([e,o])=>x("span",{style:{position:"absolute",left:e,top:o,width:7,height:7,borderRadius:"50% 50% 50% 0",transform:"rotate(-45deg)",background:g.rust}},e)),x("span",{style:{position:"absolute",left:11,bottom:9,fontSize:"4.64cqw",fontWeight:700,color:g.text},children:"3 fitting bays"})]}),banner:B("div",{style:{...J,display:"flex",alignItems:"center",justifyContent:"space-between",padding:"0 13px",gap:8,background:g.rust},children:[B("div",{style:{display:"flex",flexDirection:"column",gap:2},children:[x("b",{style:{fontSize:"6.02cqw",color:g.onInk},children:"End of season \xB7 20% off"}),x("span",{style:{fontSize:"3.98cqw",color:g.onInk,opacity:.8},children:"Fitted free, this month only."})]}),x("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.12em",fontWeight:700,padding:"5px 9px",borderRadius:2,background:g.onInk,color:g.text,flex:"none"},children:"SHOP"})]}),titlewithbuttons:B("div",{style:{...J,background:g.paper,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:7,padding:"0 14px",textAlign:"center"},children:[x("span",{style:{fontSize:"6.49cqw",lineHeight:1.15,fontWeight:700,color:g.text},children:"Not sure what fits?"}),B("div",{style:{display:"flex",gap:5},children:[x("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.12em",fontWeight:700,padding:"5px 9px",borderRadius:2,background:g.text,color:g.onInk},children:"FIND MY FIT"}),x("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.12em",fontWeight:700,padding:"5px 9px",borderRadius:2,border:`1px solid ${g.text}`,color:g.text},children:"CALL US"})]})]}),ticker:x("div",{style:{...J,overflow:"hidden",background:g.ink,display:"flex",alignItems:"center"},children:x("span",{style:{whiteSpace:"nowrap",fontSize:"6.29cqw",fontWeight:800,letterSpacing:"0.06em",color:g.warm,marginLeft:-14},children:"FREE FITTING \xB7 48HR DISPATCH \xB7 FREE FITTING \xB7 48HR DISPATCH"})}),countdown:B("div",{style:{...J,padding:"10px 12px",display:"flex",flexDirection:"column",alignItems:"center",gap:6,justifyContent:"center",...qe(g.ink,g.ink2)},children:[x("span",{style:{fontSize:"3.65cqw",fontWeight:700,letterSpacing:"0.16em",textTransform:"uppercase",color:g.muted},children:"Back online in"}),x("div",{style:{display:"flex",alignItems:"flex-start",gap:5},children:[["23","Hours"],["59","Minutes"],["48","Seconds"]].map(([e,o],t)=>B("div",{style:{display:"flex",alignItems:"flex-start",gap:5},children:[t>0&&x("b",{style:{fontSize:"9.5cqw",lineHeight:1,color:g.warm},children:":"}),B("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:2},children:[x("b",{style:{fontSize:"11.5cqw",lineHeight:1,color:g.onInk,fontVariantNumeric:"tabular-nums"},children:e}),x("span",{style:{fontSize:"3.2cqw",letterSpacing:"0.1em",textTransform:"uppercase",opacity:.62,color:g.onInk},children:o})]})]},o))})]}),breadcrumb:x("div",{style:{...J,background:g.card,display:"flex",alignItems:"center",padding:"0 13px"},children:B("span",{style:{fontSize:"4.64cqw",color:g.muted},children:["Home ",x("span",{style:{opacity:.5},children:"/"})," Wheels ",x("span",{style:{opacity:.5},children:"/"})," ",x("span",{style:{color:g.text,fontWeight:700},children:"20 inch"})]})}),categorybar:B("div",{style:{...J,background:g.card,display:"flex",flexDirection:"column",justifyContent:"center",gap:7,padding:"0 11px"},children:[x("div",{style:{display:"flex",gap:5},children:["All","Wheels","Tyres","Lift"].map((e,o)=>x("span",{style:{fontSize:"3.98cqw",fontWeight:o===0?700:500,padding:"4px 7px",borderRadius:99,background:o===0?g.text:g.paper,color:o===0?g.onInk:g.muted},children:e},e))}),x("span",{style:{height:1,background:g.rule}})]}),intro:B("div",{style:{...J,overflow:"hidden",background:g.card},children:[x("div",{style:{position:"absolute",inset:0,...qe(g.ink,g.inkSoft2)}}),x(La,{size:64,style:{right:8,top:6}}),B("div",{style:{position:"absolute",left:16,right:16,bottom:8,top:"46%",background:g.paper,borderRadius:6,padding:"8px 11px",display:"flex",flexDirection:"column",gap:2,boxShadow:`0 -4px 10px ${g.scrim}`},children:[x("span",{style:{fontSize:"5.69cqw",fontWeight:700,color:g.text},children:"Since 1998"}),x(Co,{children:"One shed, one lathe, one idea."}),x(Co,{w:"66%",children:"It turned out to be right."})]})]}),gallerygrid:x(We,{title:"Photo gallery",children:x("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(3,1fr)",gridTemplateRows:"repeat(2,1fr)",gap:4,minHeight:0},children:[[g.rust,g.warm],[g.inkSoft,g.ink],[g.paper2,g.mark2],[g.ink,g.inkSoft2],[g.warm,g.paper2],[g.mark2,g.inkSoft]].map(([e,o],t)=>x("div",{style:{borderRadius:3,...qe(e,o,140+t*22)}},t))})}),gallery:B(We,{title:"Gallery",children:[x("div",{style:{display:"flex",gap:8,alignItems:"center",marginTop:-2},children:["On the truck","Studio","Close-ups"].map((e,o)=>x("span",{style:{fontSize:"3.98cqw",fontWeight:o===0?700:500,color:o===0?g.text:g.muted,borderBottom:`1.5px solid ${o===0?g.rust:"transparent"}`,paddingBottom:2},children:e},e))}),x("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(3,1fr)",gap:4,minHeight:0},children:[[g.rust,g.warm],[g.ink,g.inkSoft],[g.paper2,g.mark2]].map(([e,o],t)=>x("div",{style:{borderRadius:3,...qe(e,o,150+t*20)}},t))})]}),ordersummary:B(We,{title:"Order summary",children:[B("div",{style:{display:"flex",gap:6,alignItems:"center",paddingBottom:4},children:[x("span",{style:{width:26,height:26,borderRadius:4,position:"relative",overflow:"hidden",flex:"none",...qe(g.paper,g.paper2,150)},children:x(La,{size:18,style:{left:"50%",top:"50%",transform:"translate(-50%,-50%)"}})}),B("div",{style:{display:"flex",flexDirection:"column",gap:1,minWidth:0},children:[x("b",{style:{fontSize:"4.31cqw",color:g.text},children:"Ridge Grappler"}),x("span",{style:{fontSize:"3.65cqw",color:g.muted},children:"20\xD79 +12 \xB7 qty 4"})]})]}),B("div",{style:{flex:1,minHeight:0,display:"flex",flexDirection:"column",justifyContent:"center"},children:[x(Ra,{k:"Subtotal",v:"$1,956"}),x(Ra,{k:"Fitting",v:"Free"}),B("div",{style:{display:"flex",justifyContent:"space-between",paddingTop:5,fontSize:"4.64cqw"},children:[x("b",{style:{color:g.text},children:"Total"}),x("b",{style:{color:g.text,fontSize:"6.02cqw"},children:"$1,956"})]})]})]}),deliveryoptions:x(We,{title:"Delivery",children:x("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[["Standard","3\u20135 days","Free",!0],["Express","Next day","$19",!1]].map(([e,o,t,r])=>B("div",{style:{display:"flex",alignItems:"center",gap:6,padding:"5px 6px",borderRadius:4,border:`1px solid ${r?g.rust:g.rule}`,background:r?g.paper:g.card},children:[x("span",{style:{width:7,height:7,borderRadius:"50%",flex:"none",border:`1.5px solid ${r?g.rust:g.mark1}`,background:r?g.rust:"transparent"}}),x("span",{style:{flex:1,fontSize:"4.31cqw",fontWeight:600,color:g.text},children:e}),x("span",{style:{fontSize:"3.98cqw",color:g.muted},children:o}),x("b",{style:{fontSize:"4.31cqw",color:g.text},children:t})]},e))})}),paymentbadges:B("div",{style:{...J,background:g.paper,display:"flex",flexDirection:"column",gap:8,justifyContent:"center",padding:"0 12px"},children:[x(VI,{children:"Ways to pay"}),x("div",{style:{display:"flex",gap:5},children:[["VISA",g.ink],["MC",g.rust],["AMEX",g.inkSoft],["PayPal",g.ink2]].map(([e,o])=>x("span",{style:{flex:1,textAlign:"center",fontSize:"3.65cqw",fontWeight:800,letterSpacing:"0.06em",color:g.onInk,borderRadius:3,padding:"6px 0",background:o},children:e},e))})]}),stats:B("div",{style:{...J,padding:"10px 12px",display:"flex",flexDirection:"column",gap:9,justifyContent:"center",...qe(g.ink,g.ink2)},children:[x("span",{style:{fontSize:"3.98cqw",fontWeight:700,letterSpacing:"0.14em",textTransform:"uppercase",color:g.warm},children:"By the numbers"}),B("div",{style:{display:"flex",gap:8},children:[x(cp,{n:"27k",label:"Rigs fitted",tone:g.onInk}),x(cp,{n:"12",label:"Years",tone:g.onInk}),x(cp,{n:"4.9",label:"Avg rating",tone:g.warm})]})]}),testimonials:B("div",{style:{...J,overflow:"hidden",background:g.paper,padding:"10px 11px",display:"flex",flexDirection:"column",gap:6,justifyContent:"center"},children:[x("span",{style:{position:"absolute",right:10,top:2,fontSize:"22.4cqw",lineHeight:1,fontWeight:800,color:g.rust,opacity:.16},children:"\u201D"}),x(g0,{filled:5,size:7}),x("span",{style:{position:"relative",fontSize:"5.31cqw",lineHeight:1.35,color:g.text,fontWeight:600},children:"\u201CTook them out to the Simpson and back. Not one chip.\u201D"}),B("div",{style:{display:"flex",alignItems:"center",gap:5},children:[x(f8,{}),x("span",{style:{fontSize:"3.98cqw",color:g.muted},children:"Dave M. \xB7 Hilux N80"})]})]}),reviews:B(We,{title:"Reviews",children:[x("div",{style:{display:"flex",gap:4,height:22},children:[[g.inkSoft,g.inkSoft2],[g.rust,g.warm],[g.ink,g.inkSoft],[g.mark2,g.mark1]].map(([e,o],t)=>x("div",{style:{flex:1,borderRadius:3,...qe(e,o,140+t*15)}},t))}),x("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:5,justifyContent:"center"},children:[["Dave M.",5,"Not one chip after the Simpson."],["Sara K.",4,"Fitted in an hour, no fuss."]].map(([e,o,t])=>B("div",{style:{display:"flex",gap:5,alignItems:"flex-start"},children:[x(f8,{size:12}),B("div",{style:{display:"flex",flexDirection:"column",gap:1,minWidth:0},children:[B("div",{style:{display:"flex",gap:4,alignItems:"center"},children:[x("b",{style:{fontSize:"3.98cqw",color:g.text},children:e}),x(g0,{filled:o})]}),x(Co,{children:t})]})]},e))})]}),logos:B("div",{style:{...J,display:"flex",flexDirection:"column",gap:9,justifyContent:"center",padding:"0 12px",...qe(g.ink,g.inkSoft)},children:[x("span",{style:{fontSize:"3.98cqw",fontWeight:700,letterSpacing:"0.14em",textTransform:"uppercase",color:g.warm},children:"As fitted by"}),x("div",{style:{display:"grid",gridTemplateColumns:"repeat(4,1fr)",gap:8},children:["ARB","TJM","IRONMAN","OPPOSITE"].map(e=>x("span",{style:{textAlign:"center",fontSize:"4.31cqw",fontWeight:800,letterSpacing:"0.08em",color:g.onInk,opacity:.82},children:e},e))})]}),prose:B("div",{style:{...J,background:g.paper,padding:"11px 14px",display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[x("span",{style:{fontSize:"5.86cqw",fontWeight:700,color:g.text},children:"Why offset matters"}),B("div",{style:{display:"flex",gap:6},children:[x("span",{style:{fontSize:"15.3cqw",lineHeight:.78,fontWeight:800,color:g.rust,marginTop:1},children:"T"}),B("div",{style:{display:"flex",flexDirection:"column"},children:[x(Co,{children:"he number on the back of your wheel decides whether the"}),x(Co,{w:"76%",children:"tyre sits under the guard or an inch outside it."})]})]})]}),cards:x(We,{title:"What you get",children:x("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(3,1fr)",gap:5,minHeight:0},children:[["Fitted free","In store, same day."],["5 yr cover","Structural, no fine print."],["Swap it","30 days, any reason."]].map(([e,o])=>B("div",{style:{border:`1px solid ${g.rule}`,borderRadius:4,padding:6,display:"flex",flexDirection:"column",gap:2},children:[x("span",{style:{width:11,height:11,borderRadius:3,background:g.rust,opacity:.9}}),x("b",{style:{fontSize:"3.98cqw",color:g.text},children:e}),x(Co,{children:o})]},e))})}),faq:x(We,{title:"Questions",children:x("div",{style:{flex:1,display:"flex",flexDirection:"column",justifyContent:"center"},children:[["Will these fit my Hilux?",!0],["Do you fit them for me?",!1],["What if I pick wrong?",!1]].map(([e,o])=>B("div",{style:{borderBottom:`1px solid ${g.rule}`,padding:"4px 2px"},children:[B("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",gap:6},children:[x("b",{style:{fontSize:"4.31cqw",color:g.text},children:e}),x("span",{style:{fontSize:"4.64cqw",color:g.muted,lineHeight:1},children:o?"\u2212":"+"})]}),o&&x(Co,{w:"90%",children:"Use the fitment finder \u2014 it reads your build, not just the model."})]},e))})}),hero:B("div",{style:{...J,overflow:"hidden",...qe(g.ink,g.ink2)},children:[x("div",{style:{...J,background:`linear-gradient(90deg,${g.scrim},transparent 70%)`}}),x("div",{style:{position:"relative",height:"100%",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"flex-start",padding:"12px 14px",gap:5},children:x(d8,{over:"NEW \xB7 SUMMER",overTone:g.warm,head:"Built for the worst road you own",cta:"SHOP ALL",ctaBg:g.warm,ctaFg:g.ink,tone:g.onInk})}),x(La,{size:104,style:{right:-24,bottom:-30}})]}),herosingle:B("div",{style:{...J,display:"flex",background:g.paper,overflow:"hidden"},children:[x("div",{style:{flex:1,padding:12,display:"flex",flexDirection:"column",gap:5,justifyContent:"center"},children:x(d8,{over:"ALL-TERRAIN",overTone:g.rust,head:"Grip that does not ask",headSize:12,cta:"EXPLORE",ctaBg:g.text,ctaFg:g.onInk,tone:g.text})}),x("div",{style:{flex:1,position:"relative",...qe(g.inkSoft,g.inkSoft2)},children:x(La,{size:74,style:{right:-14,top:16}})})]}),productgrid:x(We,{title:"Best sellers",children:B("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(3,1fr)",gap:5,minHeight:0},children:[x(x0,{name:"Ridge 19",price:"$365"}),x(x0,{name:"Ridge 29",price:"$410"}),x(x0,{name:"Ridge 39",price:"$455"})]})}),collections:x(We,{title:"Shop by category",children:x("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(3,1fr)",gap:5,minHeight:0},children:[["Wheels",g.inkSoft,g.inkSoft2],["Tyres",g.rust,g.warm],["Lift kits",g.ink,g.inkSoft]].map(([e,o,t])=>x("div",{style:{borderRadius:4,display:"flex",alignItems:"flex-end",padding:5,color:g.onInk,...qe(o,t)},children:x("span",{style:{fontSize:"3.98cqw",fontWeight:700,letterSpacing:"0.04em"},children:e})},e))})}),producthero:B("div",{style:{...J,display:"flex",background:g.card,overflow:"hidden"},children:[x("div",{style:{flex:1.1,position:"relative",...qe(g.paper,g.paper2,150)},children:x(La,{size:78,style:{left:"50%",top:"50%",transform:"translate(-50%,-50%)"}})}),B("div",{style:{flex:1,padding:"10px 10px 10px 8px",display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[x("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.16em",fontWeight:700,color:g.rust},children:"NITTO"}),x("b",{style:{fontSize:"6.29cqw",color:g.text},children:"Ridge Grappler"}),x("span",{style:{fontSize:"6.63cqw",fontWeight:700,color:g.text},children:"$489"}),x("span",{style:{alignSelf:"flex-start",fontSize:"3.65cqw",letterSpacing:"0.12em",fontWeight:700,padding:"4px 8px",borderRadius:2,background:g.text,color:g.onInk},children:"ADD TO CART"})]})]}),spectable:x(We,{title:"Specifications",children:B("div",{style:{flex:1,display:"flex",flexDirection:"column",justifyContent:"center"},children:[x(Ra,{k:"Diameter",v:'20"'}),x(Ra,{k:"Width",v:"9.0J"}),x(Ra,{k:"Offset",v:"+12"}),x(Ra,{k:"Load",v:"1250 kg"})]})}),fitmenttable:x(We,{title:"Will it fit?",children:B("div",{style:{flex:1,display:"flex",flexDirection:"column",justifyContent:"center"},children:[x(Ra,{k:"Hilux N80",v:"20\xD79 +12",ok:!0}),x(Ra,{k:"Ranger PX3",v:"20\xD79 +12",ok:!0}),x(Ra,{k:"LC79",v:"17\xD78 \u221210",ok:!0})]})}),processsteps:B("div",{style:{...J,background:g.paper,padding:10,display:"flex",flexDirection:"column",gap:7,justifyContent:"center"},children:[x(VI,{children:"How it works"}),x("div",{style:{display:"flex",gap:6},children:["Pick your rig","Match the fit","We fit it"].map((e,o)=>B("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:2},children:[x("span",{style:{width:11,height:11,borderRadius:"50%",background:g.text,color:g.onInk,fontSize:"3.98cqw",display:"flex",alignItems:"center",justifyContent:"center",fontWeight:700},children:o+1}),x("span",{style:{fontSize:"3.98cqw",color:g.text,fontWeight:600},children:e})]},e))})]}),detailrows:x("div",{style:{...J,background:g.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=x("div",{style:{flex:1,...qe(t?g.rust:g.inkSoft,t?g.warm:g.inkSoft2)}},"art"),a=B("div",{style:{flex:1.1,padding:8,display:"flex",flexDirection:"column",gap:2,justifyContent:"center"},children:[x("b",{style:{fontSize:"4.64cqw",color:g.text},children:e}),x("span",{style:{fontSize:"3.98cqw",color:g.muted,lineHeight:1.3},children:o})]},"tx");return x("div",{style:{flex:1,display:"flex",minHeight:0},children:t?[a,r]:[r,a]},e)})}),specstrip:x("div",{style:{...J,background:g.ink,color:g.onInk,display:"flex",alignItems:"center",justifyContent:"space-around",padding:"0 8px"},children:[["5 yr","Warranty"],["Free","Fitting"],["48 hr","Dispatch"]].map(([e,o])=>B("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:1},children:[x("b",{style:{fontSize:"5.69cqw",letterSpacing:"0.02em"},children:e}),x("span",{style:{fontSize:"3.65cqw",color:g.mark2,letterSpacing:"0.1em",textTransform:"uppercase"},children:o})]},o))})},u8={subscribe:B("div",{style:{...J,padding:13,display:"flex",flexDirection:"column"},children:[B("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:8},children:[B("div",{style:{display:"flex",alignItems:"center",gap:6},children:[x(K,{w:8,h:8,r:2,tone:"accent"}),x(K,{w:38,h:7,r:3,tone:"dark"}),x(K,{w:16,h:7,r:3,tone:"accent"})]}),x(K,{w:38,h:4,r:2,tone:"soft"})]}),x("div",{style:{height:1,background:Po.line,marginBottom:10}}),B("div",{style:{flex:1,display:"flex",gap:10,border:`1px solid ${Po.line}`,borderRadius:7,padding:10},children:[B("div",{style:{flex:1.1,display:"flex",flexDirection:"column",justifyContent:"center",gap:5},children:[x(K,{w:"46%",h:3,r:2,tone:"accent"}),x(K,{w:"84%",h:8,r:4,tone:"dark"}),x(K,{w:"56%",h:8,r:4,tone:"accent"}),x(K,{w:"96%",h:3,r:2,tone:"soft",style:{marginTop:2}}),B("div",{style:{display:"flex",gap:5,marginTop:4},children:[x("div",{style:{flex:1,height:13,borderRadius:5,border:`1px solid ${Po.line}`,background:Po.block}}),x(K,{w:34,h:13,r:5,tone:"accent"})]})]}),B("div",{style:{flex:1,background:Po.block,borderRadius:6,padding:8,display:"flex",flexDirection:"column",gap:6},children:[x(K,{w:"52%",h:4,r:2,tone:"accent"}),Array.from({length:3}).map((e,o)=>B("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",gap:6,borderTop:o?`1px solid ${Po.line}`:"none",paddingTop:o?4:0},children:[x(K,{w:34,h:4,r:2,tone:"dark"}),x(K,{w:16,h:3,r:2,tone:"soft"})]},o))]})]})]}),split:B("div",{style:{...J,display:"flex"},children:[x("div",{style:{width:"44%",background:h0}}),B("div",{style:{flex:1,padding:15,display:"flex",flexDirection:"column",justifyContent:"center",gap:7},children:[x(K,{w:"44%",h:5,r:3,tone:"accent"}),x(K,{w:"88%",h:8,r:4,tone:"dark"}),x(K,{w:"70%",h:8,r:4,tone:"dark"}),x(K,{w:"94%",h:5,r:2,tone:"soft",style:{marginTop:2}}),x(K,{w:"80%",h:5,r:2,tone:"soft"}),x(K,{w:"40%",h:13,r:6,tone:"accent",style:{marginTop:5}})]})]}),sectionheader:B(m8,{children:[x(K,{w:"18%",h:6,r:3,tone:"accent",style:{position:"absolute",top:15,right:16}}),B("div",{style:{...J,padding:16,display:"flex",flexDirection:"column",justifyContent:"center",gap:10},children:[B("div",{style:{display:"flex",alignItems:"center",gap:9},children:[x(K,{w:16,h:16,r:4,tone:"accent"}),x(K,{w:"20%",h:9,r:4,tone:"dark"})]}),x(K,{w:"62%",h:10,r:5,tone:"dark"}),x(K,{w:"42%",h:6,r:3,tone:"soft"})]})]}),header:x("div",{style:{...J,padding:14,display:"flex",flexDirection:"column",justifyContent:"center"},children:B("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[x(K,{w:"22%",h:12,r:4,tone:"dark"}),B("div",{style:{display:"flex",gap:9,alignItems:"center"},children:[x(K,{w:26,h:6,r:3,tone:"soft"}),x(K,{w:26,h:6,r:3,tone:"soft"}),x(K,{w:26,h:6,r:3,tone:"soft"}),x(K,{w:18,h:14,r:5,tone:"accent"})]})]})}),footer:B("div",{style:{...J,padding:15,display:"flex",flexDirection:"column",justifyContent:"center",gap:12},children:[B("div",{style:{display:"flex",gap:14},children:[B("div",{style:{flex:1.4,display:"flex",flexDirection:"column",gap:6},children:[x(K,{w:"60%",h:9,r:4,tone:"dark"}),x(K,{w:"90%",h:5,r:2,tone:"soft"}),x(K,{w:"70%",h:5,r:2,tone:"soft"})]}),[0,1].map(e=>B("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:6},children:[x(K,{w:"50%",h:6,r:3,tone:"dark"}),x(K,{w:"80%",h:5,r:2,tone:"soft"}),x(K,{w:"66%",h:5,r:2,tone:"soft"})]},e))]}),x("div",{style:{height:1,background:Po.line}}),B("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[x(K,{w:"30%",h:5,r:2,tone:"soft"}),x(K,{w:"16%",h:5,r:2,tone:"soft"})]})]}),grid:x("div",{style:{...J,padding:14,display:"grid",gridTemplateColumns:"1fr 1fr",gridTemplateRows:"1fr 1fr",gap:9},children:Array.from({length:4}).map((e,o)=>x("div",{style:{borderRadius:6,background:Po.block}},o))}),blanksection:x("div",{style:{...J,padding:14,display:"flex"},children:B("div",{style:{flex:1,border:`1px dashed ${Po.line}`,borderRadius:7,display:"flex",alignItems:"center",justifyContent:"center",position:"relative"},children:[x(K,{w:14,h:2,r:1,tone:"tint"}),x(K,{w:2,h:14,r:1,tone:"tint",style:{position:"absolute"}})]})}),spacer:B("div",{style:{...J,padding:14,display:"flex",flexDirection:"column",justifyContent:"space-between"},children:[x(K,{w:"100%",h:6,r:3,tone:"soft"}),x(K,{w:16,h:22,r:3,tone:"block",style:{alignSelf:"center"}}),x(K,{w:"100%",h:6,r:3,tone:"soft"})]}),divider:x("div",{style:{...J,padding:14,display:"flex",alignItems:"center"},children:x(K,{w:"100%",h:3,r:2,tone:"dark"})}),customhtml:B("div",{style:{...J,display:"flex",alignItems:"center",justifyContent:"center",gap:8,background:h0},children:[x(K,{w:5,h:16,r:2,tone:"dark",style:{transform:"skewX(-14deg)"}}),x(K,{w:16,h:10,r:3,tone:"accent"}),x(K,{w:5,h:16,r:2,tone:"dark",style:{transform:"skewX(14deg)"}})]}),heading:x("div",{style:{...J,padding:14,display:"flex",alignItems:"center"},children:x(K,{w:"64%",h:13,r:4,tone:"dark"})}),text:B("div",{style:{...J,padding:16,display:"flex",flexDirection:"column",justifyContent:"center",gap:7},children:[x(K,{w:"100%",h:6,r:3,tone:"soft"}),x(K,{w:"96%",h:6,r:3,tone:"soft"}),x(K,{w:"100%",h:6,r:3,tone:"soft"}),x(K,{w:"58%",h:6,r:3,tone:"soft"})]}),image:x("div",{style:{position:"absolute",inset:14,borderRadius:7,background:h0}}),button:x("div",{style:{...J,display:"flex",alignItems:"center",justifyContent:"center"},children:x(K,{w:"34%",h:16,r:8,tone:"accent"})}),menu:B("div",{style:{...J,padding:"14px 22%",display:"flex",flexDirection:"column",justifyContent:"center",gap:7},children:[x(K,{w:"48%",h:7,r:3,tone:"dark"}),x(K,{w:"82%",h:5,r:2,tone:"soft"}),x(K,{w:"66%",h:5,r:2,tone:"soft"}),x(K,{w:"74%",h:5,r:2,tone:"soft"}),x(K,{w:"58%",h:5,r:2,tone:"soft"})]}),emailform:B("div",{style:{...J,padding:16,display:"flex",flexDirection:"column",justifyContent:"center",gap:9},children:[x(K,{w:"56%",h:8,r:3,tone:"dark"}),B("div",{style:{display:"flex",gap:6},children:[x("div",{style:{flex:1,height:16,borderRadius:5,border:`1px solid ${Po.line}`}}),x(K,{w:"30%",h:16,r:5,tone:"accent"})]})]}),sociallogos:x("div",{style:{...J,display:"flex",alignItems:"center",justifyContent:"center",gap:9},children:[0,1,2,3].map(e=>x(K,{w:16,h:16,r:8,tone:"dark"},e))}),paymentlogos:B("div",{style:{...J,display:"flex",alignItems:"center",justifyContent:"center",gap:7},children:[x(K,{w:22,h:6,r:2,tone:"soft"}),[0,1,2,3].map(e=>x(K,{w:20,h:13,r:3,tone:"dark"},e))]}),search:x("div",{style:{...J,padding:"0 18%",display:"flex",alignItems:"center"},children:B("div",{style:{flex:1,height:22,borderRadius:11,border:`1px solid ${Po.line}`,display:"flex",alignItems:"center",gap:7,padding:"0 9px"},children:[x("div",{style:{width:9,height:9,borderRadius:5,border:`2px solid ${Po.dark}`}}),x(K,{w:"46%",h:5,r:2,tone:"soft"})]})}),cart:B("div",{style:{...J,display:"flex",alignItems:"center",justifyContent:"center",gap:7},children:[x("div",{style:{width:22,height:18,borderRadius:"3px 3px 6px 6px",border:`2px solid ${Po.dark}`}}),x("div",{style:{padding:"2px 6px",borderRadius:6,border:`1.5px solid ${Po.dark}`},children:x(K,{w:7,h:7,r:2,tone:"dark"})})]}),countryswitch:B("div",{style:{...J,padding:14,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:5},children:[B("div",{style:{display:"flex",alignItems:"center",gap:6,padding:"4px 8px",border:`1px solid ${Po.line}`},children:[x(K,{w:22,h:6,r:2,tone:"dark"}),x(K,{w:6,h:4,r:1,tone:"soft"})]}),B("div",{style:{width:"46%",display:"flex",flexDirection:"column",gap:4,padding:6,border:`1px solid ${Po.line}`},children:[x(K,{w:"80%",h:4,r:2,tone:"accent"}),x(K,{w:"64%",h:4,r:2,tone:"soft"}),x(K,{w:"72%",h:4,r:2,tone:"soft"})]})]}),legalline:B("div",{style:{...J,padding:16,display:"flex",flexDirection:"column",justifyContent:"center",gap:9},children:[x("div",{style:{height:1,background:Po.line}}),B("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[x(K,{w:"38%",h:5,r:2,tone:"soft"}),B("div",{style:{display:"flex",gap:5},children:[x(K,{w:14,h:5,r:2,tone:"soft"}),x(K,{w:14,h:5,r:2,tone:"soft"}),x(K,{w:14,h:5,r:2,tone:"soft"})]})]})]}),fallback:x("div",{style:{position:"absolute",inset:14,borderRadius:8,background:Po.block}})};function h8({type:e}){let o=$ke[e]??"",t=Uke[o]??u8[o]??u8.fallback;return x("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 oy}from"efficient-easel/screen/components/ScreenDocumentContext";import{jsx as dc,jsxs as x8}from"react/jsx-runtime";import zke from"efficient-easel/screen/components/SidePanelHead";import{StylesIcon as Gke}from"efficient-easel/rail";import{Tooltip as jke}from"efficient-shell/ui";import{HintsToggle as Kke,hintsFoldClass as Vke}from"efficient-easel/panel";import{useHints as Yke}from"efficient-easel/screen/lib/hints";function g8({tokenRef:e,siteId:o,onClose:t,onNotify:r,tab:a,onTabChange:n,revealPageGroup:s,onPageGroupRevealed:i}){let l=bl(),{shown:d,setShown:f}=Yke();return x8("div",{className:`sf-styles ${Vke(d)}`.trim(),children:[dc(zke,{icon:dc(Gke,{}),title:c("Styles"),context:dc(jke,{content:c("{name} \u2014 renamed in the Console: {place}.",{name:l,place:c("Storefront \u25B8 Sites \u25B8 Settings")}),className:"sf-name-tip",children:dc("span",{className:"sf-name-text",children:l})})}),x8("div",{className:"sf-insp-body es-insp-body sf-scroll",children:[dc($h,{tokenRef:e,siteId:o,onNotify:r,tab:a,onTabChange:n,revealPageGroup:s,onPageGroupRevealed:i}),dc(Kke,{shown:d,onChange:f,label:c("Show hints")})]})]})}import{jsx as Bo,jsxs as ai,Fragment as Qke}from"react/jsx-runtime";import{Fragment as E8,useEffect as _8,useRef as C0}from"react";import{useTreeDrag as O8}from"efficient-easel/drag";import{GlobeIcon as eTe,ImageIcon as oTe,LocationIcon as tTe,MapIcon as rTe,TextLinesIcon as aTe,TrashIcon as A8}from"efficient-easel/icons";import{Subtree as R8,TreeRow as fp,TreeRowAction as L8,TreeSeam as F8}from"efficient-easel/tree";import{useEaselStrings as nTe}from"efficient-easel/strings";import{isSelectionMode as sTe}from"efficient-easel/screen/lib/screen-parts";import{useSyncExternalStore as qke}from"react";var Xke={level:"groups"},y8=Xke,I0=new Set;function Lr(e){y8=e;for(let o of I0)o()}function Zke(e){return I0.add(e),()=>{I0.delete(e)}}var I8=()=>y8;function b8(){return qke(Zke,I8,I8)}var dp=e=>String(e?.group??""),y0=new WeakMap,Jke=0;function YI(e){let o=y0.get(e);return o||(o=`loc${++Jke}`,y0.set(e,o)),o}var S8=(e,o)=>o||e||"Ungrouped",w8={photo:"",group:"",groupName:"",name:"City name",state:"State",country:"Country",timezone:"GMT \xB7 UTC +0",address:`Address line one
|
|
342
|
-
Address line two`,phone:"+00 000 0000",hours:"Mon\u2013Fri 9:00\u201318:00",lat:0,lng:0,mapsUrl:""};function ri(e){return Lx(e,dp,o=>String(o?.groupName??"")).map(o=>({key:o.key,name:o.name,cards:o.items.map(t=>t.item)}))}var b0=e=>e.flatMap(o=>o.cards),C8=(e,o,t)=>Math.min(Math.max(e,o),t);function qI(e,o,t){let r=0;for(let a=0;a<e.length;a++)if(dp(e[a])===o){if(r===t)return a;r++}return-1}function S0(e,o,t){let r=ri(e);if(o<0||o>=r.length)return e;let[a]=r.splice(o,1),n=C8(o<t?t-1:t,0,r.length);return r.splice(n,0,a),b0(r)}function w0(e,o,t,r,a){let n=ri(e),s=n.find(u=>u.key===o),i=n.find(u=>u.key===r);if(!s||!i||t<0||t>=s.cards.length)return e;let[l]=s.cards.splice(t,1),d=o===r?l:{...l,group:i.key,groupName:i.name};d!==l&&y0.set(d,YI(l));let f=C8(s===i&&t<a?a-1:a,0,i.cards.length);return i.cards.splice(f,0,d),b0(n)}function v8(e,o){let t=ri(e),r=t.find(n=>n.key===o),a={...w8,group:o,groupName:r?.name??""};return r?(r.cards.push(a),b0(t)):[...e,a]}function k8(e){let o=new Set(ri(e).map(a=>a.key)),t=o.size+1,r=`Group ${t}`;for(;o.has(r);)r=`Group ${++t}`;return{cards:[...e,{...w8,group:r,groupName:""}],key:r}}function T8(e,o){return e.filter(t=>dp(t)!==o)}function P8(e,o,t){let r=qI(e,o,t);return r<0?e:e.filter((a,n)=>n!==r)}function sgo(e,o,t){let r=e.flatMap((s,i)=>dp(s)===o?[i]:[]),a=e.slice();r.forEach((s,i)=>{a[s]=t[i]});let n=t.slice(r.length);return[...a.filter(s=>s!==void 0),...n]}function igo(e,o,t){return o.flatMap(r=>{let a=e.filter(n=>dp(n)===r);return a.length?a:t(r)})}var ZI="ContactLocations",XI=e=>({parentId:`locations-${e}`,slot:"groups"}),v0=(e,o)=>({parentId:`locations-${e}`,slot:`cities:${o}`});function B8(e,o){let{readOnly:t,selected:r}=o,a=nTe().tree,n=o.data?.content??[],s=sTe(e),i=C0(null);_8(()=>{let b=r?.type===ZI?String(r.props.id):null;b&&b!==i.current&&Lr({level:"groups"}),i.current=b},[r?.props.id]);let{selectedLocationPartId:l,setSelectedLocationPartId:d,setSelectHandler:f}=u6(),u=b8(),p=(b,y)=>{let v=n[b];v&&o.replace(b,{type:v.type,props:{...v.props,locations:y}})},m=b=>{let y=n[b]?.props?.locations;return Array.isArray(y)?y:[]},h=O8({keyOf:b=>`group:${b.si}:${b.index}`,readOnly:!!t,canDrop:(b,y)=>y.parentId===XI(b.si).parentId&&y.slot==="groups",onDrop:(b,y)=>{p(b.si,S0(m(b.si),b.index,y.index)),u.level==="city"&&Lr({level:"groups"})},onStep:(b,y)=>{p(b.si,S0(m(b.si),b.index,y<0?b.index-1:b.index+2)),u.level==="city"&&Lr({level:"groups"})}}),I=O8({keyOf:b=>`city:${b.si}:${b.group}:${b.index}`,readOnly:!!t,canDrop:(b,y)=>y.parentId===XI(b.si).parentId&&y.slot.startsWith("cities:"),onDrop:(b,y)=>{let v=y.slot.slice(7);p(b.si,w0(m(b.si),b.group,b.index,v,y.index)),Lr({level:"group",key:v})},onStep:(b,y)=>{p(b.si,w0(m(b.si),b.group,b.index,b.group,y<0?b.index-1:b.index+2)),u.level==="city"&&Lr({level:"group",key:b.group})}}),w=C0(n);w.current=n;let S=C0(()=>{});_8(()=>{f(b=>{let y=Lg(b);if(!y)return;let v=w.current.findIndex(L=>L.props?.id===y.nodeId);v<0||S.current(v,{level:y.part,index:y.index})})},[f]);let C=(b,y)=>{i.current=n[b]?.props?.id??null,o.select(b),Lr(y),e.reveal();let v=n[b]?.props?.id;typeof v=="string"&&(y.level==="city"||y.level==="image"||y.level==="map")?d(Rg(v,y.index,y.level)):d(null),typeof v=="string"&&o.scrollTo(v)};return S.current=C,{renderLocationTree:(b,y,{rowClick:v,isCollapsed:L,toggleCollapse:A})=>{let D=m(y),T=ri(D),F=String(b.props.id),k=s&&r?.props.id===F,_=O=>Bo(F8,{...t?{}:h.seam({place:{...XI(y),index:O}})},`seam:${F}:groups:${O}`),P=(O,W)=>Bo(F8,{...t?{}:I.seam({place:{...v0(y,O),index:W}})},`seam:${F}:cities:${O}:${W}`);return ai(Qke,{children:[Bo(fp,{icon:Bo(aTe,{size:13}),name:c("Texts"),words:a,onSelect:()=>C(y,{level:"texts"}),selected:k&&u.level==="texts",rowProps:{onClick:v(()=>C(y,{level:"texts"}))}}),T.map((O,W)=>{let G=`${F}::grp::${O.key}`,Z=L(G),X=k&&u.level==="group"&&u.key===O.key,ne=O.name||O.key?S8(O.key,O.name):c("Ungrouped"),ve={...v0(y,O.key),index:O.cards.length},oe=I.row({item:{si:y,group:O.key,index:-1},place:ve,into:ve,canDrag:!1},{onClick:v(()=>C(y,{level:"group",key:O.key}))}),ke=h.row({item:{si:y,index:W},place:{...XI(y),index:W}},oe.rowProps);return ai(E8,{children:[W===0&&_(0),Bo(fp,{icon:Bo(eTe,{size:13}),name:ne,words:a,onSelect:()=>C(y,{level:"group",key:O.key}),selected:X,draggable:ke.draggable,dragging:ke.dragging,drop:ke.drop??oe.drop,fold:{open:!Z,label:c("group"),onToggle:()=>A(G)},actions:Bo(L8,{kind:"delete",label:ct("Delete {label} group ({n} city)","Delete {label} group ({n} cities)",O.cards.length,{label:ne}),onClick:()=>{p(y,T8(D,O.key)),Lr({level:"groups"})},children:Bo(A8,{size:15})}),rowProps:ke.rowProps,count:O.cards.length,countLabel:ct("{n} city","{n} cities",O.cards.length)}),!Z&&ai(R8,{children:[O.cards.map((Oe,Ae)=>{let Re=qI(D,O.key,Ae),nt=k&&u.level==="city"&&u.index===Re,Xo=String(Oe?.name??"")||c("City"),Zo=`${F}::city::${YI(Oe)}`,bo=L(Zo),{rowProps:Do,...Eo}=I.row({item:{si:y,group:O.key,index:Ae},place:{...v0(y,O.key),index:Ae}},{onClick:v(()=>C(y,{level:"city",index:Re}))});return ai(E8,{children:[Ae===0&&P(O.key,0),Bo(fp,{icon:Bo(tTe,{size:13}),name:Xo,words:a,onSelect:()=>C(y,{level:"city",index:Re}),selected:nt,...Eo,fold:{open:!bo,label:Xo,onToggle:()=>A(Zo)},actions:Bo(L8,{kind:"delete",label:c("Delete {name}",{name:Xo}),onClick:()=>{p(y,P8(D,O.key,Ae)),Lr({level:"group",key:O.key})},children:Bo(A8,{size:15})}),rowProps:Do}),!bo&&ai(R8,{children:[Bo(fp,{icon:Bo(oTe,{size:13}),name:c("Image"),words:a,onSelect:()=>C(y,{level:"image",index:Re}),selected:k&&u.level==="image"&&u.index===Re,rowProps:{onClick:v(()=>C(y,{level:"image",index:Re}))}}),Bo(fp,{icon:Bo(rTe,{size:13}),name:c("Map"),words:a,onSelect:()=>C(y,{level:"map",index:Re}),selected:k&&u.level==="map"&&u.index===Re,rowProps:{onClick:v(()=>C(y,{level:"map",index:Re}))}})]}),P(O.key,Ae+1)]},YI(Oe))}),ai("button",{type:"button",className:"sf-add-card",onClick:()=>{let Oe=v8(D,O.key);p(y,Oe);let Ae=ri(Oe).find(Re=>Re.key===O.key);Lr(Ae&&Ae.cards.length?{level:"city",index:qI(Oe,O.key,Ae.cards.length-1)}:{level:"group",key:O.key})},children:[Bo("span",{className:"sf-plus sf-plus--sm",children:"+"}),c("Add city")]})]}),_(W+1)]},G)}),ai("button",{type:"button",className:"sf-add-card",onClick:()=>{let{cards:O,key:W}=k8(D);p(y,O),C(y,{level:"group",key:W})},children:[Bo("span",{className:"sf-plus sf-plus--sm",children:"+"}),c("Add group")]})]})},sectionPressed:b=>{b?.type===ZI&&Lr({level:"groups"})}}}import{useEffect as dTe,useRef as fTe}from"react";import{createNode as T0,newId as P0}from"efficient-easel/data";import{useEaselApi as pTe}from"efficient-easel/easel";import{useScreenDocument as uTe}from"efficient-easel/screen/components/ScreenDocumentContext";import{useEaselSession as mTe}from"efficient-easel/screen/lib/session-context";import{useEffect as H8,useRef as iTe}from"react";import{useEasel as lTe}from"efficient-easel/easel";import{ROOT_ZONE as k0}from"efficient-easel/draw";var pp={};function N8(e){return pp={...e?.theme?{theme:e.theme}:{},...e?.site?{site:e.site}:{}},pp}function D8(e){pp===e&&(pp={})}function fc(){return pp}function M8(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 $8(e){let o=lTe(d=>d.appState.data.content),{theme:t,themeRow:r,themeFromDocument:a,siteGutter:n,siteGutterPhone:s,siteLengthUnits:i}=fe(),l=iTe(new Set);H8(()=>{let d=W8({theme:t,themeRow:r,themeFromDocument:a,siteGutter:n,siteGutterPhone:s,siteLengthUnits:i});d&&cTe(L4(o,void 0,d),e,l.current)},[o,e,t,r,a,n,s,i]),H8(()=>{let d=N8(W8({theme:t,themeRow:r,themeFromDocument:a,siteGutter:n,siteGutterPhone:s,siteLengthUnits:i}));return()=>D8(d)},[t,r,a,n,s,i])}function W8(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=M8({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 cTe(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(k0,r,a[0]),a.slice(1).forEach((s,i)=>{o.insertNode(k0,r+1+i,s),o.replaceComponent(k0,r+1+i,s)}))}}import{ROOT_ZONE as pc,missingPinnedTypes as hTe,pinnedDuplicateIds as E0}from"efficient-easel/draw";function U8(e){return!e.docId||e.saveStatus==="saving"?!1:e.seededDocId!==e.docId}function z8(e,o){let t=e.some(i=>i?.type===ze),r=e[e.length-1],a=!t&&r?.type===Qe?r:null,n=e.filter(i=>i?.type===Qe&&i!==a).map(i=>String(i.props?.id??"")).filter(Boolean),s=o.hasChromeDoc&&!t&&!a;return{remove:n,seedHeader:!e.some(i=>i?.type===Tt),seedFooter:s,seedSiteHeader:s&&!e.some(i=>i?.type===Je)}}async function G8(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!==Je||!e.stillOpen())return!1;let r=e.latest();return r.some(a=>a?.type===Je)?!1:(e.write(Eu(r,t)),!0)}function j8(e,o){let{adapter:t,capabilities:r,currentSlug:a,docId:n,data:s,saveStatus:i,siteId:l,tokenRef:d}=uTe(),f=mTe(),{hasSiteSettings:u,hasPinnedChrome:p}=r;$8(e);let m=!!r.editsPinnedInPlace&&a!==Ir,h=a===Ir,I=pTe().getState,w=fTe(null);dTe(()=>{if(!U8({docId:n,saveStatus:i,seededDocId:w.current})||(w.current=n,!p))return;let S=I().appState.data,C=S.content,b=s?.content??[],y=(D,T)=>D.some(F=>F?.type===T);if(!u){let D=new Set(E0(C)),T=D.size?C.filter(k=>!D.has(k.props.id)):C;if(D.size&&e.setDocument({...S,content:T}),h)return;let F=hTe(T,b);if(F.includes(Qe)){let k=T.length,_=e.insertSection(Qe,k);e.replaceComponent(pc,k,{type:Qe,props:{id:_,blocks:zI()}})}F.includes(Tt)&&e.insertNode(pc,0,UI());return}if(h){let D=Fi(C);if(D!==C&&e.setDocument({...S,content:[...D]}),!D.find(T=>T.type===Qe)&&!y(b,Qe)&&!y(D,ze)&&!y(b,ze)){let T=(k,_)=>T0(o,k,_),F={type:Qe,props:{blocks:zI()}};e.insertNode(pc,D.length,vf(F,T,P0(ze),ip))}return}if(m){let D=!!t?.pinnedChrome?.state().docId,T=z8(C,{hasChromeDoc:D}),F=new Set([...T.remove,...E0(C.filter(_=>!T.remove.includes(String(_.props.id))))]),k=F.size?C.filter(_=>!F.has(String(_.props.id))):C;if(k.length!==C.length&&e.setDocument({...S,content:k}),T.seedFooter&&!y(b,Qe)&&!y(b,ze)){let _=(O,W)=>T0(o,O,W),P={type:Qe,props:{blocks:zI()}};e.insertNode(pc,k.length,vf(P,_,P0(ze),ip))}if(T.seedHeader&&!y(b,Tt)){let _=k[0]?.type===Je?1:0;e.insertNode(pc,_,UI())}if(T.seedSiteHeader&&!y(b,Je)&&!y(b,Qe)&&!y(b,ze)){let _=n;G8({blocks:Gi(f),make:(P,O)=>T0(o,P,O),id:P0(Je),siteId:l??null,token:d.current,latest:()=>I().appState.data.content,stillOpen:()=>w.current===_,write:P=>{let O=I().appState.data;e.setDocument({...O,content:[...P]})}})}return}let v=C.filter(D=>D.type!==Qe),L=new Set(E0(v)),A=L.size?v.filter(D=>!L.has(D.props.id)):v;A.length!==C.length&&e.setDocument({...S,content:A}),!y(A,Tt)&&!y(b,Tt)&&e.insertNode(pc,0,UI())},[n,i,s,I,e,u,p,h,m,t,f,l,d])}import{useEffect as oV,useMemo as wTe,useRef as tV}from"react";import{useEasel as CTe}from"efficient-easel/easel";import{useEaselHost as vTe}from"efficient-easel/screen/lib/host";import{FIELD_DESCRIPTION_MARKER as xTe}from"efficient-easel/screen/lib/host";import{isNode as Y8}from"efficient-easel/data";function up(e,o){let t=e.components[o]?.label;return typeof t=="string"&&t.trim()?t.trim():o}function gTe(e){return e.length>3&&e.endsWith("s")?e.slice(0,-1):e}function _0(e,o,t,r){e.forEach((a,n)=>{if(Y8(a)){r.push({node:a,list:e,index:n,parent:o,slot:t});for(let s of Br(a))_0(a.props[s],a,s,r)}})}function ITe(e){let o=[];_0(Array.isArray(e.content)?e.content:[],null,"",o);for(let t of Object.values(e.zones??{}))Array.isArray(t)&&_0(t,null,"",o);return o}function q8(e,o){return ITe(e).find(t=>String(t.node.props.id)===o)}function X8(e,o,t){if(!t)return null;let r=q8(o,t);if(!r)return null;let a=up(e,r.node.type),n=r.parent?`${up(e,r.parent.type)} \xB7 ${gTe(r.slot)} ${r.index+1}`:a;return{blockId:t,type:r.node.type,label:n,path:""}}var yTe=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 bTe(e){if(!e||typeof e!="object")return null;let o=e;if(typeof o.type!="string")return null;let t=o.type==="custom"?o[xTe]: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=yTe(n));for(let s of["arrayFields","objectFields"]){let i=t?.[s]??o[s];i&&typeof i=="object"&&(r[s]=Z8(i))}return r}function Z8(e){let o={};for(let[t,r]of Object.entries(e??{})){let a=bTe(r);a&&(o[t]=a)}return o}function J8(e){let o={};for(let[t,r]of Object.entries(e.components))r&&(o[t]={label:up(e,t),fields:Z8(r.fields),...Q8(t)?{retired:!0}:{}});return o}function Q8(e){return He(q0,e)}function K8(e,o){let t=e.components[o]?.defaultProps;return t&&typeof t=="object"?structuredClone(t):{}}function STe(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 O0(e,o){return e.findIndex(t=>Y8(t)&&String(t.props.id)===o)}function V8(e,o,t){let r=o||t;if(!r)return e.length;let a=O0(e,r);if(a<0)throw new Error(`there is no top-level block ${r}`);return o?a+1:a}function eV(e,o,t,r,a={}){let n=structuredClone(o),s=Array.isArray(n.content)?n.content:n.content=[];try{t.forEach((i,l)=>{let d=f=>{throw new Error(`change ${l+1}: ${f}`)};switch(i.op){case"set_props":{let f=q8(n,i.block_id)??d(`there is no block ${i.block_id}`);"id"in i.props&&d("a block's id is never changed");let u=STe(f.node.props,i.path)??d(`there is no ${i.path} in that block`);Object.assign(u,structuredClone(i.props));break}case"insert_block":{e.components[i.type]??d(`there is no block type ${i.type}`),Q8(i.type)&&d(`${up(e,i.type)} is retired: it is no longer added (a page that holds one keeps it)`);let f=Xl(i.type),u=Object.keys(i.props??{}).filter(m=>m!=="id");f&&u.length&&d(`${up(e,i.type)} is laid down as a Box of blocks: insert it with no props, then change its blocks`);let p=f?f(m=>K8(e,m),r,a):{type:i.type,props:{...K8(e,i.type),...structuredClone(i.props),id:r(i.type)}};s.splice(V8(s,i.after,i.before),0,p);break}case"remove_block":{let f=O0(s,i.block_id);f<0&&d(`there is no top-level block ${i.block_id}`),s.splice(f,1);break}case"move_block":{let f=O0(s,i.block_id);f<0&&d(`there is no top-level block ${i.block_id}`);let[u]=s.splice(f,1);s.splice(V8(s,i.after,i.before),0,u);break}default:d(`"${i.op}" is not a change this editor makes`)}})}catch(i){return{ok:!1,reason:i instanceof Error?i.message:String(i)}}return{ok:!0,document:n}}var A0=e=>be(e.requestId)??null;function rV(){let e=vTe(),{appState:o,selectedItem:t,dispatch:r,history:a,config:n}=CTe(p=>p),s=n,i=tV({appState:o,dispatch:r,history:a,blockConfig:s});i.current={appState:o,dispatch:r,history:a,blockConfig:s};let l=tV(new Map),d=t?.props?.id,f=wTe(()=>X8(s,o.data,d),[s,o.data,d]),u=f?JSON.stringify(f):"";oV(()=>{e.connected&&e.send("storefront-editor:selection",{selection:f})},[e,u]),oV(()=>e.subscribe(p=>{let{appState:m,dispatch:h,history:I,blockConfig:w}=i.current;switch(p.type){case"storefront-editor:request-document":{let S=A0(p);if(!S)return;e.send("storefront-editor:document",{requestId:S,document:m.data,blocks:J8(w)});return}case"storefront-editor:apply-page-edits":{let S=A0(p);if(!S)return;let C=Array.isArray(p.ops)?p.ops:[],b=C.length?eV(w,m.data,C,y=>`${y}-${crypto.randomUUID()}`,fc()):{ok:!1,reason:"no changes"};b.ok&&(h({type:"setData",data:b.document,recordHistory:!0}),l.current.set(S,JSON.stringify(b.document.content??[]))),e.send("storefront-editor:page-edits-result",{requestId:S,applied:b.ok,reason:b.ok?null:b.reason});return}case"storefront-editor:undo-page-edits":{let S=A0(p);if(!S)return;let C=l.current.get(S),b=C!==void 0&&C===JSON.stringify(m.data.content??[]);b&&I.hasPast&&(I.back(),l.current.delete(S)),e.send("storefront-editor:page-edits-result",{requestId:S,applied:b&&I.hasPast,reason:b?null:"the page has changed since"});return}case"storefront-editor:set-right-panel":typeof p.shown=="boolean"&&h({type:"setUi",ui:{rightSideBarVisible:p.shown}});return;default:return}}),[e])}import{useEffect as sV,useState as iV}from"react";var JI=new Map;async function kTe(e,o){try{return(await Ge().site.get({siteId:o})).slug?.trim()||null}catch(t){return console.warn("[editor-site-slug] could not resolve the site slug",t),null}}function aV(e,o){let t=JI.get(o);return t||(t=kTe(e,o),JI.set(o,t),t.catch(()=>{JI.get(o)===t&&JI.delete(o)})),t}var TTe=/^(localhost|(?:[a-z0-9-]+\.)+localhost|127(?:\.\d{1,3}){3}|0\.0\.0\.0|\[::1\]|::1)$/i;function R0(e){return!!e&&TTe.test(e)}function nV(e){let{pageSlug:o,siteSlug:t,hostname:r}=e,a=o===Gu?"/":`/${encodeURIComponent(o)}`;if(!R0(r))return a;let n=t?.trim();return n?`${a}?site=${encodeURIComponent(n)}`:a}function lV(e){let{pageSlug:o,siteId:t,token:r}=e,[a,n]=iV(null),[s,i]=iV(null),l=UO();sV(()=>{try{i(new URL(hu()).hostname)}catch{i(null)}},[l]),sV(()=>{if(!R0(s)||!t||!r){n(null);return}let f=!1;return aV(r,t).then(u=>{f||n(u)}),()=>{f=!0}},[s,t,r]);let d=nV({pageSlug:o,siteSlug:a,hostname:s});return l?`${l}${d}`:d}import{jsx as mp}from"react/jsx-runtime";import{useEffect as PTe,useRef as cV,useState as ETe}from"react";import{ExternalIcon as dV}from"efficient-easel/icons";import{EaselIconButton as _Te}from"efficient-easel/chrome";import{Tooltip as OTe,iconButtonClasses as ATe}from"efficient-shell/ui";import{useSettledPress as RTe}from"efficient-easel/easel";import{useScreenDocument as LTe}from"efficient-easel/screen/components/ScreenDocumentContext";async function FTe({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=i=>{n&&!n.closed?n.location.href=i:a.open(i,"_blank","noopener,noreferrer")};try{await r()}catch{}return t(e).then(i=>s(i.url??o),()=>s(o))}function fV({liveHref:e,pageId:o,draftLink:t}){let{flushSave:r}=LTe(),a=cV(r);a.current=r;let n=RTe(),[s,i]=ETe(!1),l=cV(null);if(PTe(()=>()=>l.current?.(),[]),t&&o){let d=()=>new Promise((u,p)=>{l.current=()=>u(!1),n.run(()=>{l.current=null,a.current().then(u,p)})}),f=()=>{s||n.waiting||(i(!0),FTe({pageId:o,liveHref:e,draftLink:t,ready:d}).finally(()=>i(!1)))};return mp(_Te,{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:mp(dV,{})})}return mp(OTe,{content:c("Preview the live site (opens in a new tab)"),side:"bottom",children:mp("a",{className:ATe({className:"es-iconbtn"}),href:e,...Wd,"aria-label":c("Preview the live site in a new tab"),children:mp(dV,{})})})}import{createElement as BTe,useCallback as NTe,useEffect as pV,useRef as uV,useState as DTe}from"react";import{ClockIcon as MTe}from"efficient-shell/icons/efficient";import{useScreenDocument as HTe}from"efficient-easel/screen/components/ScreenDocumentContext";function mV(e){let{docId:o,capabilities:t,hasUnsavedEdits:r,onPublish:a,adapter:n}=HTe(),s=LK(RK(o??null),r),i=pI(uI()),l=n.siteLiveState;pV(()=>{if(l)return uS(l),ha(0),()=>uS(null)},[l]);let d=hm(),[f,u]=DTe(!1),p=uV(e);p.current=e;let m=uV(!0);pV(()=>(m.current=!0,()=>{m.current=!1}),[]);let h=NTe(()=>{u(!0),a(p.current).then(()=>{hI()}).finally(()=>{m.current&&u(!1)})},[a]);if(t.canPublish){if(l){let I=d===void 0?void 0:r||d.state==="changed"?"changed":"live",w=r0({live:I,onPress:h,busy:f,goingLive:FK(d?.changes??[])});return n.siteVersions?{...w,menuItems:WTe()}:w}return r0({live:s,onPress:h,busy:f,pinnedUnpublished:i?.unpublished??!1})}}function WTe(){return[{key:"version-history",label:c("Version history"),icon:BTe(MTe),onSelect:QG}]}import{jsx as ae,jsxs as Dt,Fragment as gp}from"react/jsx-runtime";import{useCallback as $Te,useEffect as UTe,useId as gV,useRef as zTe,useState as cr}from"react";import{useSettledAction as GTe}from"efficient-easel/easel";import{Avatar as jTe,Banner as hp,Button as ni,ColoredBadge as L0,Dialog as IV,Drawer as KTe,DropdownMenu as VTe,FormField as yV,iconButtonClasses as YTe,Inline as F0,Input as qTe,ListRow as XTe,Select as ZTe,SortableList as JTe,Stack as xp}from"efficient-shell/ui";import{EditIcon as QTe,EyeIcon as hV,MenuIcon as ePe,MoreIcon as oPe,PageIcon as bV,RevertIcon as xV,StylesIcon as tPe}from"efficient-shell/icons/efficient";import{useScreenDocument as SV}from"efficient-easel/screen/components/ScreenDocumentContext";var rPe={page:bV,menu:ePe};function aPe(e,o){return e.pages.find(t=>t.id===o)??e.pages[0]??null}function nPe(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 sPe({version:e,page:o,waiting:t,busy:r,error:a,onCancel:n,onConfirm:s,onPage:i}){let l=gV();if(!e)return null;let d=e.kind==="draft_before_restore",f=e.number,u=ij(e),p=d?c("Put your drafts back?"):o?c("Restore {page} from version {n}?",{page:o.name,n:f}):c("Restore version {n}?",{n:f}),m=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}):u?c("The whole website goes back to version {n} as a draft: {what}.",{n:f,what:u}):c("The whole website goes back to version {n} as a draft.",{n:f}),h=e.deletedPictures??0;return ae(IV,{open:!0,onClose:()=>{r||n()},size:"sm",title:p,footer:Dt(gp,{children:[ae(ni,{variant:"secondary",onClick:n,disabled:r,children:c("Cancel")}),ae(ni,{onClick:s,loading:r,disabled:r,children:c("Restore as draft")})]}),children:Dt(xp,{gap:4,children:[o&&e.pages.length>1?ae(yV,{label:c("Page"),htmlFor:l,children:ae(ZTe,{id:l,value:o.id,options:e.pages.map(I=>({value:I.id,label:I.name})),onChange:i,disabled:r})}):null,ae("p",{children:m}),ae("p",{children:c("Your live website does not change until you press Publish.")}),h>0?ae(hp,{tone:"warning",children:ct("{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.",h)}):null,t?ae(hp,{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?ae(hp,{tone:"danger",children:a}):null]})})}function iPe({version:e,onCancel:o,onSave:t}){let r=gV(),[a,n]=cr(null),[s,i]=cr(""),[l,d]=cr(!1),[f,u]=cr(null);if(e!==a&&(n(e),i(e?.name??""),u(null)),!e)return null;let p=s.trim()===e.name,m=async()=>{if(!(l||p)){d(!0),u(null);try{await t(s.trim())}catch{u(c("The name was not saved. Try again."))}finally{d(!1)}}};return ae(IV,{open:!0,onClose:()=>{l||o()},size:"sm",title:c("Name this version"),footer:Dt(gp,{children:[ae(ni,{variant:"secondary",onClick:o,disabled:l,children:c("Cancel")}),ae(ni,{onClick:()=>{m()},loading:l,disabled:l||p,children:c("Save")})]}),children:ae(yV,{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:ae(qTe,{id:r,value:s,invalid:!!f,onChange:h=>i(h.target.value),onKeyDown:h=>{h.key==="Enter"&&m()}})})})}function lPe({version:e,expanded:o,onToggle:t,onPreview:r,onRestore:a,onRestorePage:n,onName:s}){let i=e.kind==="draft_before_restore",l=!e.live,d=e.changes.length,f=[...i?[]:[{key:"preview",label:c("Preview"),icon:ae(hV,{}),onSelect:r}],...l?[{key:"restore",label:i?c("Put these drafts back"):c("Restore whole website"),icon:ae(xV,{}),onSelect:a}]:[],...l&&!i&&e.pages.length?[{key:"restore-page",label:c("Restore one page only"),icon:ae(bV,{}),onSelect:n}]:[],...i?[]:[{type:"divider",key:"divider"},{key:"name",label:c("Name this version"),icon:ae(QTe,{}),onSelect:s}]];return ae(XTe,{title:Dt("span",{className:"sf-version-title",children:[ae("span",{children:sj(e)}),e.live?ae(L0,{tone:"success",size:"xs",children:c("Live")}):null,e.name?ae(L0,{tone:"neutral",size:"xs",children:c("Version {n}",{n:e.number})}):null,i?ae(L0,{tone:"warning",size:"xs",children:c("Not published")}):null]}),expanded:o,onToggle:t,actions:ae(VTe,{align:"end","aria-label":c("More"),items:f,triggerClassName:YTe({variant:"ghost",size:"sm"}),trigger:ae(oPe,{})}),below:Dt(xp,{gap:3,children:[Dt(F0,{gap:2,align:"center",wrap:!0,className:"sf-version-meta",children:[ae(jTe,{name:e.createdBy,size:"xs"}),ae("span",{children:e.createdBy}),ae("span",{"aria-hidden":"true",children:"\xB7"}),ae("span",{children:cj(e.createdAt)}),d?Dt(gp,{children:[ae("span",{"aria-hidden":"true",children:"\xB7"}),ae("span",{children:ct("{n} change","{n} changes",d)})]}):null]}),o?Dt(xp,{gap:3,children:[d?ae(xp,{gap:2,children:e.changes.map(u=>{let p=rPe[u.kind]??tPe;return Dt(F0,{gap:2,align:"center",children:[ae(p,{size:16}),ae("span",{children:lj(u)})]},`${u.kind}:${u.id}`)})}):null,Dt(F0,{gap:2,children:[i?null:ae(ni,{variant:"secondary",size:"sm",leftIcon:ae(hV,{}),onClick:r,children:c("Preview")}),l?ae(ni,{variant:"secondary",size:"sm",leftIcon:ae(xV,{}),onClick:a,children:c("Restore")}):null]})]}):null]})})}function cPe({open:e,onClose:o,access:t,waiting:r}){let{flushSave:a,reloadFromServer:n,docId:s}=SV(),[i,l]=cr(null),[d,f]=cr(!1),[u,p]=cr(null),[m,h]=cr(null),[I,w]=cr(!1),[S,C]=cr(null),[b,y]=cr(null),[v,L]=cr(!1),A=zTe(0),D=$Te(()=>{let _=++A.current;f(!1),t.list().then(P=>{_===A.current&&l(P)},()=>{_===A.current&&f(!0)})},[t]);UTe(()=>{e&&D()},[e,D]);let T=_=>{L(!1),nPe(t,_.id).catch(()=>L(!0))},F=async()=>{if(!(!m||I)){w(!0),C(null);try{await aj({access:t,version:m.version,page:m.page,flushSave:a,reload:n}),h(null),o()}catch(_){C(_ instanceof Yf?c("Your last changes did not save, so nothing was restored. Try again."):c("The version was not restored. Nothing changed. Try again."))}finally{w(!1)}}},k=GTe({onPress:()=>{F()},busy:I});return Dt(gp,{children:[ae(KTe,{open:e,onClose:o,side:"right",size:"md",title:c("Version history"),description:Dt(gp,{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:ae("span",{className:"sf-version-foot",children:c("The newest 30 are kept. Named versions are always kept.")}),children:Dt(xp,{gap:3,children:[v?ae(hp,{tone:"danger",onDismiss:()=>L(!1),children:c("The preview did not open. Try again.")}):null,d?ae(hp,{tone:"danger",action:ae(ni,{variant:"secondary",size:"sm",onClick:D,children:c("Try again")}),children:c("Version history did not load.")}):i===null?ae("p",{className:"sf-version-foot",children:c("Loading versions")}):i.length===0?ae("p",{className:"sf-version-foot",children:c("No versions yet. Every Publish from now on keeps one.")}):ae(JTe,{"aria-label":c("Versions"),spacing:"comfortable",children:i.map(_=>ae(lPe,{version:_,expanded:u===_.id,onToggle:()=>p(P=>P===_.id?null:_.id),onPreview:()=>T(_),onRestore:()=>{C(null),h({version:_,page:null})},onRestorePage:()=>{C(null),h({version:_,page:aPe(_,s)})},onName:()=>y(_)},_.id))})]})}),ae(sPe,{version:m?.version??null,page:m?.page??null,waiting:r,busy:k.busy===!0,error:S,onCancel:()=>h(null),onConfirm:k.onPress,onPage:_=>h(P=>P&&{...P,page:P.version.pages.find(O=>O.id===_)??P.page})}),ae(iPe,{version:b,onCancel:()=>y(null),onSave:async _=>{await t.name(b.id,_),y(null),D()}})]})}function wV(){let{adapter:e,hasUnsavedEdits:o}=SV(),t=e.siteVersions,r=oj(),a=hm();return t?ae(cPe,{open:r,onClose:ej,access:t,waiting:o||a?.state==="changed"}):null}import{useEaselSession as i7}from"efficient-easel/screen/lib/session-context";import{buildPaletteSections as eyo,categoryLabel as oyo,paletteWithoutPinned as tyo,pinnedSection as ryo}from"efficient-easel/screen/lib/document/palette-sections";var dPe={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 CV(e){return $(dPe,e)?.label}var vV=J0;function fPe(e){let o=Dg.Ticker(e.nodeDefaults,e.newNodeId),{sectionBorder:t,...r}=o.props,a=Wv.line?{sectionBorder:t}:{};return{...o,props:{...r,...a,sectionAccent:Wv.sectionAccent}}}var pPe={Hero:{[df]:{newChild:fPe,childLabel:An.Ticker}}},kV=Object.fromEntries(Object.entries(k4).map(([e,o])=>[e,Object.fromEntries(Object.entries(o).map(([t,r])=>[t,{...r,...$(pPe,e)?.[t]}]))]));function TV(e,o=0,t,r){let a=mPe(hPe(e,o,r),t),n=a?bT():null;return a&&n?uPe(a,n):a}function uPe(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 mPe(e,o){if(!e||e.source!=="container"||!o||!c_())return e;let t=Yp({data:o.data},o.id),r=typeof t?.type=="string"?zp(t.type):[],a=e.choices??[],n=r.filter(s=>!a.some(i=>i.type===s.type));return n.length?{...e,choices:[...a,...n.map(s=>({type:s.type,label:s.label}))]}:e}function hPe(e,o,t){let r=t?$(kV,e)?.[t]:void 0;if(r)return{source:"section",slot:r.slot,choices:null,spec:r};let a=$(Jt,e);if(a)return{source:"section",slot:a.slot,choices:null,spec:a};let n=Tp(e,o);if(n)return{source:"container",slot:n.slot,choices:n.choices,spec:null};let s=KK(e);return s?{source:"footer",slot:jK,choices:s,spec:null}:null}function PV(e,o=Kp(e.type)){return jp(e.type)?o.map(t=>{let r=p_(e.type,t);return r===null?{slot:t,label:t,rung:!1}:{slot:t,label:c(r),rung:!0}}):null}import{useSyncExternalStore as xPe}from"react";var B0=null,N0=new Set;function EV(e){if(B0!==e){B0=e;for(let o of N0)o()}}function gPe(e){return N0.add(e),()=>{N0.delete(e)}}function Tyo(){return xPe(gPe,()=>B0,()=>null)}function _V(e){return Hc(e)?.ownerId??null}function OV(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)}var AV="sf-editor-left-view";function RV(){if(typeof window>"u")return"pages";try{let e=window.localStorage.getItem(AV);return e==="sections"||e==="styles"?e:"pages"}catch{return"pages"}}function LV(e){if(!(typeof window>"u"))try{window.localStorage.setItem(AV,e)}catch{}}function FV(e,o){return e==="styles"&&!o?"sections":e}function BV(e,o){return e?"sections":o}import{copyNode as IPe}from"efficient-easel/data";function NV(e){let o=typeof e?.props?.id=="string"?e.props.id:null,t=mr(),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 DV={usedOn:e=>{let o=mr(),t=o?.sectionOf(e.props.id)??null;return!o||!t?null:o.usedOn(t)??[]},openPage:e=>Au()?.openPage(e),adopt:(e,o)=>mr()?.adopt(e.props.id,o),nodeOf:e=>mr()?.place(e)??null,detach:e=>{let o=Au()?.config;return o?IPe(e,o):e},removed:()=>Au()?.reload()};import{sharedSectionsOf as jPe}from"efficient-easel/screen/lib/shared-sections";import{scrollPreviewToSection as KPe,scrollPreviewToTop as e7}from"efficient-easel/screen/lib/document/preview-dom";var yPe=bu.mediaFields,bPe=/video|poster|focal|phone/i;function SPe(e){return($(yPe,e)??[]).find(o=>!o.includes("[]")&&!bPe.test(o))??null}function wPe(e){let o=SPe(e.type);return e.type!==V?o&&Vp(e.type,e.props,o)?{fromData:!0}:o:Xu(e.props)?{fromData:!0}:o}var MV={adds:{kind:"block",type:"ImageBlock"},kinds:["image"],pictureOf:wPe,create:(e,o)=>({type:"ImageBlock",props:{...o.nodeDefaults("ImageBlock"),id:o.newNodeId("ImageBlock"),src:e.url}})};var HV={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 QI}from"react/jsx-runtime";import{useState as CPe}from"react";import{Button as vPe,Tooltip as kPe,toast as WV}from"efficient-shell/ui";import{TemplateIcon as TPe}from"efficient-easel/icons";import{useSettledAction as PPe}from"efficient-easel/easel";import{useScreenDocument as EPe}from"efficient-easel/screen/components/ScreenDocumentContext";function UV({enabled:e,reason:o,onSaved:t}){let{flushSave:r}=EPe(),[a,n]=CPe(!1),s=async()=>{if(!a){n(!0);try{await r()?t():WV.error(c($V))}catch{WV.error(c($V))}finally{n(!1)}}},i=PPe({onPress:()=>{s()},busy:a});return QI(kPe,{side:"bottom",content:e?c("Save this website as a platform template"):c(o),children:QI("span",{className:"sf-tip-disabled",tabIndex:e?void 0:0,children:QI(vPe,{variant:"secondary",disabled:!e||i.busy,loading:i.busy,onClick:i.onPress,rightIcon:QI(TPe,{size:15}),children:c("Save as Template")})})})}var $V="Your last changes did not save, so the template was not made. Try again.";var _Pe="Save your page changes first";function zV(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:_Pe}:{visible:!0,enabled:!0}:{visible:!1,hiddenReason:"no-site"}:{visible:!1,hiddenReason:"not-operator"}:{visible:!1,hiddenReason:"no-console"}}var GV="storefront-editor:save-as-template";import{phoneKey as OPe,tabletKey as APe}from"efficient-easel/draw";var RPe=[ga.top,APe(ga.top),OPe(ga.top)],ey="ContactLocations",jV="ContactRouting",KV="CityPictures",VV="CityMaps",LPe=[{key:KV,label:"City pictures",piece:0,desc:"A wall of city photos, grouped by region. Each photo links to its city's card."},{key:VV,label:"City maps",piece:1,desc:"A card per city, grouped by region: address, phone, hours and a map."}];function YV(e=Fs,o=Fk){let t=Y0.find(r=>r.sections.some(a=>a.type===jV))?.key;return!e.includes(ey)||!t?[]:LPe.filter(r=>!(o&&r.key===KV)).map(({key:r,label:a,desc:n,piece:s})=>({key:r,label:a,cat:t,after:jV,desc:n,alias:"locations offices stores branches",insert:i=>{let l=pn(ey);if(!l)return null;let d=fc(),f=Ff(ey,l,s)(i.nodeDefaults,i.newNodeId,d);if(!f||!(o&&r===VV))return f;let u=Ff(ey,l,0)(i.nodeDefaults,m=>`${m}-above`,d),p=Object.fromEntries(RPe.filter(m=>u?.props[m]!==void 0).map(m=>[m,u.props[m]]));return{...f,props:{...f.props,...p}}}}))}function qV(e=Fs,o){return[...YV(e,o)]}function ZV(e,{nodeDefaults:o,newNodeId:t,sectionLabel:r,blockIsOffered:a}){let n=Xl(e);if(n)return n(o,t,fc());if(t_(e)&&a(V)&&a(yi)){let i=$(ur,e);return{type:V,props:{...o(V),id:t(V),direction:"column",name:`${r(e)} section`,content:[{type:yi,props:{...o(yi),id:t(yi),...i?.headStyle?{headStyle:i.headStyle}:{},...i?.headRowGap?{rowGap:i.headRowGap}:{},...i?.headDescriptionSize?{descriptionSize:i.headDescriptionSize}:{},...Ud(e)!==Ud(yi)?{eyebrowLook:Ud(e)}:{}}},{type:e,props:{...o(e),id:t(e),headPlacement:"own-box",...XV(e,t)}}]}}}if($(Jt,e)?.fixed===!0)return{type:e,props:{...o(e),id:t(e),layout:"boxes"}};let s=XV(e,t);return Object.keys(s).length?{type:e,props:{...o(e),id:t(e),...s}}:null}function XV(e,o){return e==="Cards"?{template:QE(t=>o(t))}:e===e_?{template:o_(t=>o(t))}:{}}import{useEffect as FPe,useState as BPe}from"react";import{useEaselSession as NPe}from"efficient-easel/screen/lib/session-context";function JV(){let e=NPe().chrome?.products?.list,[o,t]=BPe(null);return FPe(()=>{if(!e)return;let r=!1;return e().then(a=>{r||t(a)}),()=>{r=!0}},[e]),o}function l7({mode:e,open:o}){let{setSelectedHeroId:t,setSelectHandler:r}=d6(),a=s7().tree,n=e,s=n.kind==="ticker"?n.heroId:null,i=uc(l=>{l&&(o({kind:"ticker",heroId:l}),KPe(l))},[o]);return ta(()=>{t(s)},[s,t]),ta(()=>{r(i)},[r,i]),{partRows:(l,{rowClick:d})=>{let f=String(l.props.id);return l.type==="Hero"&&$v(l.props)&&No(a7,{icon:No(Js,{type:"ticker",size:13}),name:c(js),onSelect:()=>i(f),selected:s===f,rowProps:{onClick:d(()=>i(f))},words:a})}}}function c7({mode:e,select:o}){let{setSelectedHeroPart:t,setSelectHandler:r}=vI(),a=s7().tree,{appState:n,config:s}=n7(p=>p),i=DPe({data:n.data,config:s});i.current={data:n.data,config:s};let l=e,d=Os.find(p=>af[p]===l.kind),f=d&&"nodeId"in l?As(String(l.nodeId),d):null,u=uc(p=>{let m=vx(p);if(!m)return;let{data:h,config:I}=i.current,w=zPe(h,I,{kind:"node",id:m.nodeId});if(!w)return;let S={kind:af[m.part],nodeId:m.nodeId};o({index:w.index,zone:w.zone},S)},[o]);return ta(()=>{t(f)},[f,t]),ta(()=>{r(u)},[r,u]),{partRows:(p,{rowClick:m})=>{let h=String(p.props.id),I=DH(p);if(I.length===0)return null;let w=b=>{let y=As(h,b.part);return No(a7,{icon:No(Js,{type:b.part==="media"?"heroMedia":"heroImage",size:13}),name:c(b.label),onSelect:()=>u(y),selected:f===y,rowProps:{onClick:m(()=>u(y))},words:a},y)},[S,...C]=I;return Ip(r7,{children:[w(S),C.length>0&&No(UPe,{children:C.map(w)})]})}}}function d7(e,o){return{partRows:(t,r)=>Ip(r7,{children:[e.partRows?.(t,r),o.partRows?.(t,r)]})}}function VPe(e){let{adapter:o,capabilities:t,currentSlug:r,siteId:a,docId:n,hasUnsavedEdits:s,bridgeCapabilities:i,notifyParent:l,token:d}=oy(),{hasPreviewLink:f}=t,u=Ge(i7()).preview?.draftLink,p=mV(e.data),m=zV({hasTrustedConsole:!!d,canCreatePlatformTemplate:i.canCreatePlatformTemplate,capabilities:t,siteId:a,hasUnsavedEdits:s}),h=uc(()=>{!a||!r||l(GV,{siteId:a,slug:r})},[l,a,r]),I=lV({pageSlug:r,siteId:a,token:d}),w=o.previewHref?.(r)??I;return{barLead:()=>m.visible&&No(UV,{enabled:m.enabled,reason:m.enabled?"":m.disabledReason,onSaved:h}),barView:()=>f&&r&&No(fV,{liveHref:w,pageId:n??null,draftLink:u}),mainAction:p}}function YPe(e,o){let{capabilities:t,templateId:r,siteId:a,tokenRef:n,navigate:s}=oy(),{hasSiteTheme:i,explainsSiteSettings:l}=t,d=b=>o.setView(b),[f,u]=QV(gl[0].id),[p,m]=QV(!1),{surface:h,setSurface:I}=Mj(),w=()=>{if(i){d("styles"),o.reveal(),e7();return}e.show(m0),e.reveal(),e7()},S={id:"pages",label:c("Pages"),icon:No(HPe,{}),panel:({onHide:b})=>No(Ej,{activeSurface:h,onPreviewSurface:I,onNavigate:y=>{I(null),s(r?{kind:"template",id:r,pageSlug:y}:{kind:"page",slug:y,siteId:a??void 0})},onClose:b})},C=[];return!i&&l&&C.push({id:"appearance",label:c("Appearance"),icon:No($Pe,{}),active:e.kind==="website",onSelect:w}),i&&C.push({id:"styles",label:c("Styles"),icon:No(WPe,{}),panel:({onHide:b,notify:y})=>No(g8,{tokenRef:n,siteId:a??void 0,onClose:b,onNotify:y,tab:f,onTabChange:u,revealPageGroup:p,onPageGroupRevealed:()=>m(!1)})}),{railLead:[S],railTrail:C,resolveLeftView:b=>FV(b,i),openSettings:w,openStyles:()=>{u(pM),d("styles")},openPageStyles:i?()=>{u(yl),m(!0),d("styles"),o.reveal()}:l?()=>{e.show(n8),e.reveal()}:void 0}}function qPe(){let{navigate:e,siteId:o,reloadFromServer:t,docId:r}=oy(),a=n7(s=>s.config),n=i7();ta(()=>(fb({openPage:s=>e({kind:"page",slug:s.slug,siteId:o??void 0}),reload:()=>{t()},config:a}),()=>fb(null)),[e,o,t,a]),ta(()=>{let s=mr();if(!s||!r)return;let i=!1;return jPe(n).list().then(l=>{i||s.learn(l)}).catch(()=>{}),()=>{i=!0}},[r,n])}function f7(){let e=Cu();return uc(o=>{CN(o,e)},[e])}function XPe(e,o,t,r){let{kind:a,open:n}=e,{selected:s,zoneOf:i}=o;ta(()=>{EV(s?.type==="BookingBox"&&s.props.region==="confirm"?_V(i(String(s.props.id))):null)},[s?.props.id]);let l=B8(e,o),{capabilities:{hasSiteSettings:d}}=oy();qPe();let{chat:f,setChat:u,setSelected:p,setSelectHandler:m}=CI(),h=uc(()=>n(s8),[n]),I=a==="chat";ta(()=>{p(I)},[I,p]),ta(()=>{m(h)},[m,h]);let{setOpenHandler:w}=Xf(),S=uc(()=>n(i8),[n]);ta(()=>{w(S)},[w,S]);let C=d7(l7(e),c7(e)),b=VPe(o),y=YPe(e,r);bj(r);let v=t.device,L=f7();return{...C,...b,...y,hasOwnRows:A=>A.type===ZI,ownRows:l.renderLocationTree,sectionPressed:l.sectionPressed,onCopyItem:L,wrap:A=>No(Zy.Provider,{value:!0,children:Ip(GPe.Provider,{value:v,children:[A,No(wV,{})]})}),addPanelRow:A=>d?Ip("div",{className:"sf-addside-sitewide",children:[No("span",{className:"sf-addside-sitewide-glyph","aria-hidden":"true",children:No(Js,{type:"chat",size:16})}),Ip("button",{type:"button",className:"sf-addside-sitewide-name",onClick:()=>{A(),h()},children:[c("Live chat"),No("span",{className:"sf-addside-sitewide-desc",children:c("A chat bubble on every page")})]}),No(MPe,{checked:f.enabled,onChange:D=>u({enabled:D}),ariaLabel:c("Show the chat bubble on the whole site")})]}):void 0}}var o7=null,D0=new WeakMap;function ZPe(e){let o=ZO();if(!e||!o)return e;o7!==o&&(o7=o,D0=new WeakMap);let t=D0.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},D0.set(e,t)),t}var JPe={isLockedBlock:(e,o)=>oI(e,o)||!!(o&&mr()?.heldElsewhere(o.props.id)),duplicateBlocked:GI,nestDepth:(e,o,t)=>o===ru?au(e,t):0,newSectionNode:ZV,canAddTo:(e,o,t,r)=>ZPe(TV(e,o,r,t)),blockIsOffered:tU,slotsOf:PV,resolveOnInsert:!0},QPe=new Proxy(HV,{get:(e,o)=>{let t=Reflect.get(e,o);return typeof t=="string"?c(t):t}}),e0e={labelAtLevel:(e,o,t)=>c(ay(e,o,t)),descriptions:QPe,categoryLabel:e=>{let o=CV(e);return o===void 0?void 0:c(o)},firstSection:vV,blockRowName:OV,rowName:tI,plainText:sa,Icon:Js,Thumbnail:h8,useProducts:JV,presets:qV()},o0e={desktop:2e3,tablet:800,mobile:390},t7="desktop",t0e={options:Fj,initial:t7,fluid:t7,fluidMin:Jo,widths:o0e,hidesPerView:!0},r0e={read:RV,write:e=>LV(e),forSelection:(e,o)=>BV(e,o)},a0e={first:Tt,last:Qe,firstGroup:Je,lastGroup:ze,isSectionGroup:Li,sectionGroupZone:y1,panelOf:e=>e===Tt?a8:null,get sharedReach(){return qs()?s0e:void 0},get shared(){return mr()?DV:void 0},get groupTab(){return qs()?VK:void 0},get groupBadge(){return qs()?c0({type:ze})??void 0:void 0},get changeNotice(){return qs()?YK():void 0},get band(){return qs()?n0e:void 0},get groupAccepts(){return qs()?w1:void 0}},n0e={foldable:!0},s0e=e=>c0(e)??NV(e);function i0e(e){return{...d7(l7(e),c7(e)),onCopyItem:f7(),openSettings:()=>e.show(m0)}}function l0e(e,o){j8(e,o),rV()}var NSo={useOwnerName:bl,useDocumentLabel:gM,useBridges:XPe,useStandaloneBridges:i0e,useDocumentPass:l0e,blockRules:JPe,blockLook:e0e,devices:t0e,leftView:r0e,pinned:a0e,Canvas:uj,canvasDrag:{media:MV},Inspector:c8};export{xT as a,Ge as b,Gi as c,Lx as d,kje as e,Jr as f,Qr as g,To as h,Nje as i,zv as j,OVe as k,kf as l,Tf as m,c3 as n,d3 as o,ig as p,AVe as q,Pfe as r,f3 as s,RVe as t,z6 as u,neo as v,f0e as w,de as x,c as y,ct as z,G6 as A,leo as B,Yi as C,$o as D,TL as E,Rt as F,DLe as G,OL as H,AL as I,wm as J,Cm as K,NL as L,TS as M,PS as N,ULe as O,zLe as P,LF as Q,ss as R,Wm as S,MFe as T,Fe as U,FF as V,Qi as W,Eb as X,Ob as Y,pA as Z,Ab as _,AY as $,c_e as aa,Wu as ba,bA as ca,$u as da,RY as ea,LY as fa,u_e as ga,ja as ha,m_e as ia,Kv as ja,zje as ka,Mx as la,Un as ma,Nc as na,l1 as oa,c1 as pa,W7 as qa,B0e as ra,eb as sa,s2 as ta,i2 as ua,mFe as va,$r as wa,H1 as xa,Gn as ya,mF as za,hF as Aa,ad as Ba,cJ as Ca,$L as Da,jr as Ea,jL as Fa,ga as Ga,OS as Ha,AS as Ia,Y4 as Ja,Wb as Ka,COe as La,vOe as Ma,Ya as Na,TOe as Oa,POe as Pa,Ub as Qa,oR as Ra,qc as Sa,EOe as Ta,eR as Ua,tR as Va,_Oe as Wa,Yc as Xa,zb as Ya,OOe as Za,AOe as _a,ROe as $a,LOe as ab,FM as bb,ws as cb,G3e as db,j3e as eb,K3e as fb,BM as gb,V3e as hb,Bt as ib,wl as jb,fd as kb,Vr as lb,tm as mb,iR as nb,ua as ob,lR as pb,Lo as qb,Ms as rb,Q as sb,Fl as tb,re as ub,ee as vb,ie as wb,le as xb,ge as yb,wKe as zb,Ie as Ab,Nl as Bb,Dl as Cb,xf as Db,gf as Eb,J4 as Fb,TKe as Gb,ude as Hb,Q4 as Ib,_Ke as Jb,OKe as Kb,e5 as Lb,lv as Mb,QM as Nb,Kse as Ob,Ud as Pb,e2 as Qb,VWe as Rb,Yv as Sb,LKe as Tb,FKe as Ub,BKe as Vb,NKe as Wb,DKe as Xb,MKe as Yb,hWe as Zb,Qh as _b,Wd as $b,xWe as ac,gWe as bc,GM as cc,rv as dc,Tse as ec,Pse as fc,IWe as gc,Ese as hc,yWe as ic,G2 as jc,fUe as kc,Q2 as lc,pUe as mc,uUe as nc,mUe as oc,Kx as pc,Jv as qc,a5 as rc,Vx as sc,qKe as tc,vde as uc,kde as vc,Tde as wc,XKe as xc,kt as yc,Us as zc,Ul as Ac,F8e as Bc,B8e as Cc,N8e as Dc,iH as Ec,Ix as Fc,ale as Gc,wUe as Hc,G5 as Ic,j5 as Jc,K5 as Kc,eVe as Lc,iZ as Mc,Ir as Nc,XRe as Oc,ZRe as Pc,JRe as Qc,QRe as Rc,Im as Sc,eLe as Tc,Bm as Uc,cd as Vc,yF as Wc,bF as Xc,SF as Yc,wFe as Zc,Je as _c,ze as $c,ib as ad,Li as bd,b1 as cd,Eu as dd,Y5 as ed,NVe as fd,DVe as gd,cg as hd,u3 as id,Lw as jd,wd as kd,qr as ld,co as md,Nw as nd,tN as od,rN as pd,Dw as qd,Cd as rd,Ph as sd,Ad as td,mC as ud,vr as vd,Ca as wd,rD as xd,Is as yd,CC as zd,TC as Ad,jd as Bd,r2 as Cd,a2 as Dd,fv as Ed,Ts as Fd,I2 as Gd,O$e as Hd,A$e as Id,R$e as Jd,qd as Kd,Xt as Ld,H$e as Md,wWe as Nd,BWe as Od,nv as Pd,NWe as Qd,vs as Rd,ex as Sd,Io as Td,X$e as Ud,v2 as Vd,T2 as Wd,P2 as Xd,fo as Yd,Ye as Zd,pg as _d,C3 as $d,r7e as ae,ug as be,v3 as ce,l7e as de,v7e as ee,B3 as fe,Ek as ge,N3 as he,P7e as ie,E7e as je,_7e as ke,_k as le,O7e as me,A7e as ne,D3 as oe,npe as pe,Ig as qe,mYe as re,Sx as se,xle as te,Ov as ue,xpe as ve,EYe as we,pW as xe,uW as ye,_Ye as ze,OYe as Ae,$w as Be,DMe as Ce,Uw as De,iN as Ee,UYe as Fe,kW as Ge,TW as He,l9e as Ie,y9e as Je,b9e as Ke,S9e as Le,qk as Me,LFe as Ne,QS as Oe,ew as Pe,ow as Qe,FW as Re,Rpe as Se,Lpe as Te,bg as Ue,v9e as Ve,k9e as We,Z9e as Xe,t$ as Ye,J9e as Ze,r$ as _e,eqe as $e,f$ as af,p$ as bf,pue as cf,x$ as df,xqe as ef,vg as ff,kqe as gf,Rf as hf,Eqe as if,w$ as jf,Oqe as kf,C$ as lf,v$ as mf,Lqe as nf,$d as of,jse as pf,kg as qf,E$ as rf,Dqe as sf,Mqe as tf,Hqe as uf,Wqe as vf,Aa as wf,jqe as xf,Tg as yf,qqe as zf,Eg as Af,HWe as Bf,WWe as Cf,ks as Df,$We as Ef,PR as Ff,XD as Gf,s5e as Hf,i5e as If,Xae as Jf,l5e as Kf,c5e as Lf,JD as Mf,JC as Nf,qh as Of,vM as Pf,ln as Qf,rf as Rf,Ut as Sf,TEe as Tf,bb as Uf,zc as Vf,_Ee as Wf,mY as Xf,J1 as Yf,OEe as Zf,jn as _f,yY as $f,NEe as ag,DEe as bg,Gc as cg,MEe as dg,HEe as eg,Tb as fg,Oze as gg,Aze as hg,Rze as ig,Lze as jg,Dle as kg,Fze as lg,vx as mg,nf as ng,Mze as og,Nv as pg,zH as qg,GH as rg,Lv as sg,Gle as tg,Hze as ug,kx as vg,sf as wg,Px as xg,Wze as yg,$ze as zg,Tx as Ag,Uze as Bg,zze as Cg,tb as Dg,dt as Eg,d1 as Fg,$7 as Gg,U7 as Hg,H0e as Ig,z7 as Jg,G7 as Kg,W0e as Lg,$0e as Mg,U0e as Ng,z0e as Og,YH as Pg,lf as Qg,cf as Rg,_x as Sg,XH as Tg,Rl as Ug,ZH as Vg,Ox as Wg,Ax as Xg,Rx as Yg,JH as Zg,QH as _g,e4 as $g,o4 as ah,t4 as bh,n4 as ch,s4 as dh,yGe as eh,bGe as fh,SGe as gh,wGe as hh,gr as ih,fce as jh,p4 as kh,uce as lh,m4 as mh,h4 as nh,fx as oh,wce as ph,qGe as qh,S4 as rh,tje as sh,mje as th,hje as uh,v6e as vh,Xd as wh,_6e as xh,O6e as yh,W2 as zh,AJ as Ah,Kr as Bh,xFe as Ch,Bf as Dh,oa as Eh,wU as Fh,zg as Gh,_oo as Hh,Ooo as Ih,Woo as Jh,$oo as Kh,Whe as Lh,LT as Mh,AU as Nh,Uoo as Oh,LU as Ph,FU as Qh,HU as Rh,Vhe as Sh,Xhe as Th,fto as Uh,vto as Vh,kto as Wh,Wf as Xh,Tto as Yh,Pto as Zh,NT as _h,Eto as $h,Jd as ai,vv as bi,xx as ci,tro as di,_l as ei,$Ue as fi,UUe as gi,SH as hi,Bxe as ii,Fz as ji,Uf as ki,kao as li,Pao as mi,KT as ni,Yz as oi,Ag as pi,oJe as qi,aJe as ri,d6 as si,nT as ti,f6 as ui,p6 as vi,iJe as wi,u6 as xi,Lg as yi,hJe as zi,h6 as Ai,I6 as Bi,x6 as Ci,zm as Di,ya as Ei,Ro as Fi,pt as Gi,ud as Hi,ol as Ii,YFe as Ji,qFe as Ki,ZFe as Li,JFe as Mi,QFe as Ni,eBe as Oi,oBe as Pi,rBe as Qi,tl as Ri,ls as Si,UF as Ti,sw as Ui,pQ as Vi,zF as Wi,lw as Xi,lA as Yi,cA as Zi,a_e as _i,zu as $i,Gu as aj,Vc as bj,NA as cj,v_e as dj,k_e as ej,UA as fj,Nb as gj,y9 as hj,aR as ij,WOe as jj,VOe as kj,YOe as lj,K9 as mj,yt as nj,Zc as oj,oS as pj,tS as qj,D1e as rj,CR as sj,M1e as tj,H1e as uj,W1e as vj,_R as wj,AR as xj,ha as yj,HR as zj,xS as Aj,qR as Bj,fRe as Cj,ZR as Dj,oL as Ej,tL as Fj,rL as Gj,aL as Hj,nL as Ij,sL as Jj,IS as Kj,qX as Lj,XX as Mj,od as Nj,yS as Oj,lL as Pj,LRe as Qj,JX as Rj,FRe as Sj,BRe as Tj,NRe as Uj,dL as Vj,WRe as Wj,oZ as Xj,$Re as Yj,URe as Zj,rZ as _j,bS as $j,nZ as ak,KRe as bk,sZ as ck,VRe as dk,CS as ek,lLe as fk,hL as gk,fZ as hk,dLe as ik,td as jk,kZ as kk,OLe as lk,gJ as mk,nFe as nk,yJ as ok,sFe as pk,iFe as qk,lFe as rk,Ji as sk,Mm as tk,EFe as uk,_Fe as vk,OFe as wk,uQ as xk,mQ as yk,sBe as zk,IQ as Ak,yQ as Bk,iBe as Ck,lBe as Dk,cBe as Ek,dBe as Fk,fBe as Gk,IBe as Hk,yBe as Ik,bBe as Jk,SBe as Kk,wBe as Lk,CBe as Mk,vBe as Nk,kBe as Ok,TBe as Pk,PBe as Qk,EBe as Rk,GF as Sk,_Be as Tk,OBe as Uk,an as Vk,EQ as Wk,ps as Xk,gDe as Yk,IDe as Zk,yDe as _k,bDe as $k,SDe as al,wDe as bl,CDe as cl,PDe as dl,EDe as el,Bee as fl,_De as gl,ODe as hl,ADe as il,RDe as jl,LDe as kl,FDe as ll,BDe as ml,NDe as nl,Hee as ol,kw as pl,DDe as ql,rl,St as sl,Sr as tl,kB as ul,TB as vl,nl as wl,MDe as xl,foe as yl,HDe as zl,WDe as Al,$De as Bl,UDe as Cl,zDe as Dl,GDe as El,jDe as Fl,DB as Gl,KDe as Hl,Foe as Il,VDe as Jl,YDe as Kl,WB as Ll,qDe as Ml,XDe as Nl,ZDe as Ol,JDe as Pl,QDe as Ql,oMe as Rl,Aw as Sl,tMe as Tl,UB as Ul,rMe as Vl,aMe as Wl,cl as Xl,GB as Yl,nMe as Zl,sMe as _l,iMe as $l,lMe as am,kso as bm,Tso as cm,Pso as dm,tI as em,bG as fm,rP as gm,Yso as hm,qso as im,kye as jm,Tye as km,Pio as lm,Eio as mm,_io as nm,Oio as om,lI as pm,cI as qm,elo as rm,$G as sm,GG as tm,jG as um,KG as vm,jco as wm,SI as xm,_j as ym,Oj as zm,Rj as Am,wI as Bm,Cdo as Cm,vdo as Dm,CI as Em,USe as Fm,Fdo as Gm,Xf as Hm,Mdo as Im,Mj as Jm,Ri as Km,M7 as Lm,R0e as Mm,L0e as Nm,oho as Om,tho as Pm,rho as Qm,E4 as Rm,$do as Sm,vI as Tm,w0e as Um,ite as Vm,lte as Wm,cte as Xm,dN as Ym,YMe as Zm,nC as _m,SD as $m,S4e as an,qD as bn,b5e as cn,S5e as dn,jh as en,Xne as fn,Zne as gn,b3e as hn,h0e as in,gse as jn,UM as kn,lWe as ln,cWe as mn,vse as nn,dWe as on,fWe as pn,Jh as qn,pWe as rn,Pl as sn,O2 as tn,A2 as un,U2 as vn,sUe as wn,sH as xn,IUe as yn,lH as zn,Av as An,yle as Bn,Cle as Cn,QUe as Dn,JXe as En,fZe as Fn,hZe as Gn,X$ as Hn,yZe as In,bZe as Jn,RZe as Kn,LZe as Ln,KZe as Mn,XZe as Nn,Lf as On,Fme as Pn,VJe as Qn,oQe as Rn,IQe as Sn,yQe as Tn,WQe as Un,B6 as Vn,y0e as Wn,vpo as Xn,Vj as Yn,Qe as Zn,zI as _n,Lr as $n,b8 as ao,dp as bo,S8 as co,w8 as do,sgo as eo,igo as fo,aV as go,R0 as ho,nV as io,TV as jo,Tyo as ko,NSo as lo};
|