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.
@@ -0,0 +1,342 @@
1
+ import{a as mO,b as Oi,c as hO,d as VO}from"./chunk-QL4PL74K.js";import{$ as Lp,$a as __,$c as jp,$d as m0,$e as C0,$f as z0,$g as xO,$i as Cu,A as pi,Ab as U_,Ac as _y,Ad as _c,Ai as Iu,Ba as V,Bb as yi,Bc as J_,Bg as J0,Bi as BO,C as wc,Ca as Np,Cb as ca,Cd as Et,Cf as A0,Cg as Q0,D as Op,Db as Wp,Dc as Q_,Dd as st,De as Xp,Df as R0,Dg as eO,E as Dr,Ed as lo,Ee as Zp,Ef as Ky,Eg as oO,Eh as ob,Ei as NO,F as ui,Fa as Mt,Fc as Oy,Fd as Hr,Fe as x0,Ff as ko,Fh as ua,Fi as za,G as io,Ga as pr,Gd as Wr,Ge as Jp,Gf as L0,Gg as $n,Gh as Ai,Gi as DO,H as go,Ha as gi,Hd as mr,He as Qp,Hf as F0,Hg as tO,Hh as It,Hi as MO,I as mi,Ia as uy,Ib as z_,Id as wi,Ie as g0,If as ki,Ig as rO,Ih as Pe,Ii as HO,J as Ap,Ja as y_,Jd as l0,Je as I0,Jf as gt,Jh as mu,K as $,Ka as my,Kd as Kp,Ke as eu,Kg as fu,Kh as CO,Ki as yu,L as We,La as hy,Lb as $p,Ld as c0,Le as ou,Lf as B0,Lg as aO,Lh as Fc,Li as Ga,M as QE,Mc as e0,Me as Hn,Mf as Pi,Mg as nO,Mh as _t,Mi as bu,N as e_,Nb as Up,Nc as o0,Ne as y0,Nf as Ei,Ng as sO,Nh as Bc,Oc as Ay,Og as iO,Oh as hu,P as o_,Pa as xy,Pd as Mn,Pg as lO,Ph as Ri,Q as Rp,Qa as b_,Qb as G_,Qd as d0,Qf as N0,Qg as cO,Qh as Nc,Qi as WO,R as t_,Ra as S_,Rb as j_,Rd as Vp,Re as b0,Rf as D0,Rh as vO,Ri as Su,S as Ln,Sa as ho,Sd as Ci,Sf as M0,Sg as $r,Sh as Li,Si as ja,T as r_,Ta as w_,Tb as K_,Tc as j,Td as Oc,Tf as Lc,Tg as dO,Th as xu,Ti as $O,U as a_,Ua as Dp,Uc as se,Ud as Ac,Ue as xt,Uf as H0,Ug as fO,Ui as wu,V as Cc,Va as C_,Vb as Cy,Vc as Ry,Vd as Dy,Ve as Rc,Vf as W0,Vg as Jy,Vi as UO,W as fy,Wa as v_,Wc as D,We as $y,Wf as Vy,Wg as pO,Wi as Ka,X as Me,Xa as T_,Xc as Qo,Xd as f0,Xe as Uy,Xg as Ur,Xi as zO,Y,Ya as k_,Yc as da,Yd as p0,Ye as S0,Yf as $0,Yg as Un,Yi as GO,Z as n_,Za as P_,Zc as t0,Zd as u0,Ze as w0,Zf as su,Zi as jO,_a as E_,_c as U,_e as tu,_f as U0,_g as uO,_i as Wt,a as fi,aa as Ha,ab as O_,ad as ht,ae as My,af as zy,ag as G0,aj as et,b as Se,ba as hi,bb as Mp,bd as r0,be as Yp,bg as iu,bi as Dc,bj as he,c as Oo,ca as s_,cb as Hp,cc as vy,cd as ur,cf as v0,cg as j0,d as sa,da as ia,db as A_,dd as Mr,de as qp,df as ru,dg as lu,dj as KO,ea as py,eb as R_,ec as V_,ed as Ly,ef as T0,eg as Yy,f as Pt,fa as xi,fd as Wa,ff as Gy,fg as K0,g as Sc,ga as i_,gb as L_,gd as fa,gf as k0,gg as qy,h as KE,ha as l_,hb as F_,hd as a0,hf as P0,hg as V0,hj as YO,i as Ep,ib as gy,if as au,ig as cu,j as VE,ja as vc,jb as B_,jd as Ze,jf as vi,jg as it,jj as qO,k as YE,ka as c_,kb as N_,kd as Dn,kf as He,kg as Ua,la as d_,lb as Iy,lc as Nn,ld as Pc,lf as Ae,lg as Y0,lh as gO,ma as f_,mb as Ii,md as bi,mf as E0,mg as du,mh as Qy,n as qE,na as Fn,nb as Bn,nc as Ty,nd as n0,nf as Ti,ng as Ht,nh as pu,ni as TO,nj as pe,oa as p_,ob as yy,oc as ky,od as Fy,of as _0,og as _i,oh as IO,oi as kO,pb as by,pd as Si,pf as nu,ph as eb,pi as gu,qa as u_,qb as Sy,qc as zp,qd as By,qf as Wn,qg as q0,qh as yO,qi as PO,r as XE,ra as Fp,rb as D_,rc as Py,rf as O0,rg as X0,rh as bO,ri as EO,rj as Mc,sa as m_,sb as M_,sc as Y_,sg as Xy,sh as uu,si as _O,sj as JO,t as oo,ta as Bp,tb as H_,th as SO,ti as OO,u as ZE,ua as h_,ub as wy,ud as s0,uf as $a,uh as pa,ui as AO,uj as Ou,v as _p,va as x_,vb as W_,vc as Ey,vd as i0,vf as jy,vg as Z0,vj as QO,w as JE,wa as g_,wb as Jo,wc as Gp,we as Hy,wg as Zy,wh as wO,wi as RO,wj as e1,xa as Tc,xb as $_,xc as q_,xd as Ny,xe as h0,xi as LO,y as ze,ya as la,yc as X_,yi as Fi,z as Ao,za as I_,zb as kc,zc as Z_,zd as Ec,ze as Wy,zi as FO}from"./chunk-BVHE65VQ.js";import{a as Q,d as XO,e as vu,f as Tu,g as ZO,j as ku,k as $t,l as Pu,m as Eu,n as _u,r as tb}from"./chunk-ZROLUHOX.js";var t1="en",Au=null,r1=t1,a1=null;function qEe(e,o,t){Au=e??null,r1=o||t1,a1=t??null}function de(){return a1}function rb(){return r1}function n1(){return Au}function o1(e,o){return o?e.replace(/\{([A-Za-z][A-Za-z0-9_]*)\}/g,(t,r)=>We(o,r)?String($(o,r)):t):e}function c(e,o){let t=Au?$(Au,e):void 0;if(typeof t=="function"){try{let r=Se(t(o??{}));if(r)return r}catch{}return o1(e,o)}return o1(Se(t)??e,o)}function lt(e,o,t,r){return c(t===1?e:o,{...r,n:t})}import{jsx as ab,Fragment as N7,jsxs as D7}from"react/jsx-runtime";import{createContext as M7,useContext as H7}from"react";var W7={mirrorHostStyles:!0,css:null,fontHrefs:[]},s1=M7(W7);function QEe({value:e,children:o}){return ab(s1.Provider,{value:e,children:o})}function Hc(){return H7(s1)}function i1(){let{css:e,fontHrefs:o}=Hc();return D7(N7,{children:[o.map(t=>ab("link",{rel:"stylesheet",href:t},t)),e?ab("style",{"data-sf-canvas-css":"",children:e}):null]})}import{jsx as $7}from"react/jsx-runtime";import{createContext as U7,useContext as z7}from"react";var l1=U7(void 0);function r_e({metadata:e,children:o}){return $7(l1.Provider,{value:e,children:o})}var c1=()=>z7(l1);import{jsx as Do,Fragment as y7,jsxs as Cp}from"react/jsx-runtime";import{useCallback as xc,useEffect as aa,useRef as SEe,useState as h7}from"react";import{SettingsSwitch as wEe}from"efficient-easel/panel";import{PagesIcon as CEe,StylesIcon as vEe}from"efficient-easel/rail";import{PaletteIcon as TEe}from"efficient-shell/icons/efficient";import{Subtree as kEe,TreeRow as b7}from"efficient-easel/tree";import{useEasel as S7}from"efficient-easel/easel";import{toItemSelector as PEe}from"efficient-easel/node-ops";import{useEaselStrings as w7}from"efficient-easel/strings";import{createContext as G7,useContext as j7}from"react";var nb=G7(!1),s_e=()=>j7(nb);import{useMemo as K7,useRef as V7}from"react";import{useEaselApi as Y7}from"efficient-easel/easel";import{useSectionOps as q7}from"efficient-easel/screen/lib/document/use-section-ops";function Ru(){let e=Y7(),o=q7(),t=V7(o);return t.current=o,K7(()=>({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 Wte}from"efficient-easel/draw";import{insertAt as $te,moveTo as Ute,removeAt as zte}from"efficient-easel/fields";import{useSyncExternalStore as Lte}from"react";import{isNodeList as d1}from"efficient-easel/data";var f1="Flex";function Bi(e,o){return xt(e)?typeof e?.[Pt]=="string"?sb(o?.[Pt]):"":sb(e?.[Pt])}var sb=e=>typeof e=="string"?e.trim():"",X7=e=>e.type===Ao&&Array.isArray(e.props?.[Wy])&&e.props[Wy].some(o=>sb(o?.[Pt])!==""),Z7=new Intl.NumberFormat("en-US");function J7(e){return/^\d+$/.test(e)?Z7.format(Number(e)):e}function x_e(e,o){let t=o?o.find(r=>r.key===e)?.value:XE(Sc).find(r=>r.key===e)?.value;return t===void 0?null:J7(t)}var Q7={[Pt]:"any"};function ib(e,o=!1){let t=e.props;if(!t)return{node:e,names:!1};let r=e.type==="Text"&&(Bi(t)!==""||o&&Bi(t,Q7)!==""),a=o||X7(e),n=go(e,i=>io(i,l=>{let d=ib(l,a);return d.names&&(r=!0),d.node})).props;if(e.type!==f1)return{node:n===t?e:{...e,props:n},names:r};let s=oo(n);if(r&&!s&&(n={...n,[Oo]:Sc}),!r&&s===Sc){let{[Oo]:i,...l}=n;n=l}return{node:n===t?e:{...e,props:n},names:!1}}function p1(e,o,t){for(let r of e){if(r?.props?.id===o)return t;for(let a of ui(r??{})){let n=p1(a,o,r.type===f1?r:t);if(n!==void 0)return n}}}function g_e(e,o){if(!d1(e))return!0;let t=p1(e,o,null);if(t===void 0)return!0;if(t===null)return!1;let r=oo(t.props);return!r||r===Sc}function u1(e){let o=e?.content;if(!d1(o))return e;let t=o.map(r=>ib(r));return t.every((r,a)=>r.node===o[a])?e:{...e,content:t.map(r=>r.node)}}function m1(e){return ib(e).node}import{jsx as R,jsxs as Sa,Fragment as Ca}from"react/jsx-runtime";var zn=["image","video"],Gn={image:"imageFocal",image2:"imageFocal2"},Wc={HeroSingle:"image",HeroSlide:"video"};function x1(e,o){return Q(zn,Wc[e],o)}var g1=["one","side","stacked"],eY="one",b_e={one:"One",side:"Side by side",stacked:"Stacked"};function Lu(e){return Q(g1,eY,e)}function h1(e){return e==="one"?1:2}function lb(e,o){if(g1.includes(e))return e;let t=Lu(o);return t==="side"?"stacked":t}function $c(e){let o=Lu(e.mediaLayout);return Math.max(h1(o),h1(lb(e.mediaLayoutPhone,o)))}import{cloneElement as Tw,createContext as zQ,useContext as hB,useEffect as GQ,useId as xB,useRef as bd,useState as Sd}from"react";import{useEasel as ch,useSelectedHost as fs}from"efficient-easel/easel";import{PIN_LENGTH as rh,toDateKey as PNe,fromDateKey as ENe}from"efficient-shell/format";function db(e){return!!e&&typeof e=="object"&&!Array.isArray(e)&&typeof e.src=="string"}function ct(e){return typeof e=="string"?e:db(e)?e.src:""}function I1(e,o,t){return cb(e,o.split("."),t)}function cb(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=cb(p,a,t);return m!==p&&(f=!0),m});return f?{...i,[s]:u}:e}let d=cb(l,a,t);return d===l?e:{...i,[s]:d}}var oY=["upload","youtube"],tY="upload",T_e={upload:"Upload",youtube:"YouTube"},rY=["background","click"],aY="background",k_e={background:"Background",click:"Click to play"};function b1(e){return Q(oY,tY,e)}function S1(e){return Q(rY,aY,e)}var y1=/^[A-Za-z0-9_-]{11}$/,nY=/^(?:www\.|m\.|music\.)?(?:youtube\.com|youtube-nocookie\.com|youtu\.be)$/;function w1(e){let o=typeof e=="string"?e.trim():"";if(!o)return null;if(y1.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:"||!nY.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&&y1.test(a)?a:null}function fb(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 C1(e){return`https://i.ytimg.com/vi/${e}/maxresdefault.jpg`}function v1(e){return`https://i.ytimg.com/vi/${e}/hqdefault.jpg`}var pb="Play video";var ub={frame:"Video frame",image:"Image"},P_e={any:[{field:"loadingShows",is:"image"},{all:[{not:{field:"loadingShows",set:!0}},{field:"poster",set:!0}]}]};function Uc(e){let o=e.loadingShows;return o==="image"?"image":o!=null&&o!==""?"frame":ct(e.poster)?"image":"frame"}function E_e(e,o="desktop"){let[t,r]=o==="phone"?[e.posterPhone,e.videoFramePhone]:[e.poster,e.videoFrame],[a,n]=Uc(e)==="image"?[t,r]:[r,t];return ct(a)||ct(n)||void 0}function T1(e){if(ct(e.mediaVideo)){if(Uc(e)==="frame")return ct(e.videoFrame)?void 0:ct(e.poster)?"frame-missing-image":"frame-missing-surface";if(!ct(e.poster))return ct(e.videoFrame)?"image-missing-frame":"image-missing-surface"}}var Fu="videoFrames",mb="videoFramesNotOwn";function k1(e,o,t){let r=ct(e.mediaVideo);if(!r||!o||Uc(e)!=="frame"||ct(e.videoFrame))return;let a=o[r],n=!!ct(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 sY(e,o){let t=ct(e),r=t&&o?o[t]:void 0;return r?.state==="ready"&&r.frame?r.frame:void 0}function __e(e,o,t){let r=t?.[mb];if(!(Array.isArray(r)&&r.includes(e)))return sY(o,t?.[Fu])}import{useSyncExternalStore as iY}from"react";function Bu(){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 iY(t,a,a)}}}import{zoneKey as lY}from"efficient-easel/data";var Je="SiteHeader",Ge="SiteFooter",hb="sections",Nu=[Je,Ge],Ni=e=>e===Je||e===Ge,P1=e=>lY({parentId:e,slot:hb});function E1(e,o,t=[]){return{type:e,props:{id:o,[hb]:t}}}var cY=new Set(["Footer",Je,Ge]);function Di(e){let o=new Set,t=!1,r=e.filter(a=>{let n=a?.type??"";return n==="Header"?(t=!0,!1):cY.has(n)?o.has(n)?(t=!0,!1):(o.add(n),!0):!0});return t?r:e}function Du(e,o){return e.some(t=>t?.type===o.type)?e:o.type===Je?[o,...e]:[...e,o]}var _1={[Je]:{max:3,takes:["Flex","Ticker"]},[Ge]:{max:6,takes:["Flex","Prose","Logos","Divider"]}};function O1(e,o,t){if(!Ni(e))return!0;let r=_1[e];return t<r.max&&r.takes.includes(o)}function A1(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(!Ni(n?.type))continue;let s=n.props?.[hb];if(!Array.isArray(s)||!s.some(l=>l?.props?.id===r))continue;let i=_1[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 dY}from"efficient-easel/draw";function zc(e){if(!e)return null;let o=e.lastIndexOf(":");return o>0?{ownerId:e.slice(0,o),slot:e.slice(o+1)}:null}function Mu(e,o,t){let r=zc(t?.zone),a=r?dY(e,o,r.ownerId):null;return a&&r?{...a,slot:r.slot}:null}import{isNode as fY}from"efficient-easel/data";var R1="Footer",L1=[Je,R1,Ge],jn=e=>{let o=e?.content;return Array.isArray(o)?o:[]},Va=e=>{let o=e?.zones;return o&&typeof o=="object"&&!Array.isArray(o)?o:null},Mi=e=>{let o=e?.props?.id;return typeof o=="string"?o:void 0},F1=e=>zc(e)?.ownerId??"";function B1(e){let o=Di(jn(e)),t=o.some(r=>r?.type===Ge);return o.filter(r=>r?.type===Je||r?.type===Ge||r?.type===R1&&!t)}function Hu(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(fY(a)){let n=Mi(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(F1(s))||(n.add(s),r(i),a=!0)}}return t}function N1(e,o){let t=jn(e).filter(r=>{let a=Mi(r);return typeof r?.type=="string"&&L1.includes(r.type)||a!==void 0&&o(a)});return t.length?Hu(t,Va(e)):new Set}function xb(e,o){let t={},r={};for(let[a,n]of Object.entries(e??{}))(o.has(F1(a))?t:r)[a]=n;return{owned:t,rest:r}}function D1(e,o){if(!o)return e;let t=B1(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,...jn(e),...a]},{owned:s}=xb(Va(o),Hu(t,Va(o)));return Object.keys(s).length&&(n.zones={...Va(e)??{},...s}),n}function gb(e,o){if(!o)return{page:e,chrome:null};let t=B1(o),r=new Set(t.map(Mi).filter(C=>!!C)),a=[],n=[];for(let C of jn(e)){let b=Mi(C);b&&r.has(b)||Ni(C?.type)?n.push(C):a.push(C)}let s=new Map(n.map(C=>[Mi(C),C])),i=new Set,l=Di(jn(o)).flatMap(C=>{let b=Mi(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=Di(l);let d=l.length===jn(o).length&&l.every((C,b)=>C===jn(o)[b]),f=Va(e),u=Hu(l,f),{owned:p,rest:m}=xb(f,u),h=xb(Va(o),Hu(t,Va(o))).owned,I={...o,content:d?o.content:[...l]},w=Va(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&&pY(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 pY(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 M1(e,o){return t=>e(t)||t!==void 0&&L1.includes(t)&&o()}var H1=null;function Ib(e){H1=e}function hr(){return H1}var W1=null;function yb(e){W1=e}function Wu(){return W1}var bb=Bu();function $1(e,o,t){if(!o)return;let r={...bb.get(e)};for(let[a,n]of Object.entries(o))r[a]={...n,noted:t};bb.set(e,r)}function U1(e,o){$1(e,o,"load")}function z1(e,o){$1(e,o,"save")}function $u(e){return bb.use(e)}var Sb=e=>!!hr()?.sectionOf(e);function G1(e,o=Sb){return N1(e,o)}function j1(e,o,t,r=Sb){if(t)return e&&G1(o,r).has(e)?void 0:t}function K1(e,o,t=Sb){if(!e)return{};let r=[...G1(o,t)];return r.length?{[Fu]:e,[mb]:r}:{[Fu]:e}}import{ScreenDocumentContext as jQ}from"efficient-easel/screen/components/ScreenDocumentContext";import{readHidable as cn,hidableText as KQ}from"efficient-easel/draw";import{FOLD_FIELD_MARKER as gB,LINK_FIELD_MARKER as VQ,MEDIA_FIELD_MARKER as YQ,SCAFFOLD_FIELD_MARKER as qQ,TEXT_FIELD_MARKER as wa,foldMetaOf as vr,textFieldIdentifier as NNe}from"efficient-easel/draw";import{jsx as oA}from"react/jsx-runtime";import{useCallback as gY}from"react";import{useEasel as IY}from"efficient-easel/easel";import{SettingsAction as yY}from"efficient-easel/panel";import{isLengthUnit as hY}from"efficient-easel/screen/lib/content/length-units";import{CORNER_SIDES as Uu,hasCornerSubset as Gc,normalizeCornerSides as zr}from"efficient-easel/screen/lib/content/style-keys";import{isLengthUnit as uY}from"efficient-easel/screen/lib/content/length-units";var jc={kind:"radius",unitKey:"sectionCornersUnit"};function wb(e){return typeof e=="number"&&Number.isFinite(e)}function V1(e,o,t){if(!wb(e))return;let r=uY(t)&&t!=="px"?_i(e,t):_i(Ht(e));if(Object.keys(r).length===0)return;let a=r[Cb];if(typeof a!="string")return r;let n=Gc(o)?Kn(a,zr(o)??[]):a;return{...r,[mY]:n}}var mY="--sf-section-radius",Cb="--sf-card-radius";function Kn(e,o){return Uu.map(t=>o.includes(t)?e:"0").join(" ")}var Y1=[{value:"tl",label:"Top left"},{value:"tr",label:"Top right"},{value:"bl",label:"Bottom left"},{value:"br",label:"Bottom right"}];var Kc={kind:"radius",unitKey:"cardCornersUnit"},xY="--sf-card-box-radius";function vb(e){return typeof e=="number"&&Number.isFinite(e)}function q1(e,o,t){if(!vb(e))return;let r=(hY(t)&&t!=="px"?_i(e,t):_i(Ht(e)))[Cb];if(typeof r!="string")return;let a=Gc(o)?Kn(r,zr(o)??[]):r;return{[xY]:a}}function X1(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?.[Kc.unitKey];return e.map(s=>s?.props?.id===o?s:{...s,props:{...s.props,cardCorners:r,cardCornerSides:a,[Kc.unitKey]:n}})}function Z1(e,o,t){let r=Mu(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}:vb(i?.props?.cardCorners)?{can:!0,others:d,zone:r.zone,index:r.index,data:{...r.item,props:{...r.item.props,[a]:X1(n,l)}}}:{can:!1,reason:"unset",others:d}}function J1(e){return e.can?lt("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 Q1(e){return lt("Applied to {n} card","Applied to {n} cards",e)}function eA(e,o){e.can&&o(e.zone,e.index,e.data)}import{useSectionOps as bY}from"efficient-easel/screen/lib/document/use-section-ops";var SY="apply-corners-to-siblings",wY="Apply to all cards";function CY({plan:e,onPress:o}){return oA(yY,{id:SY,label:c(wY),note:J1(e),disabled:!e.can,doneLabel:Q1(e.others),onPress:o})}function tA(){let{appState:e,config:o}=IY(n=>n),t=bY(),r=Z1(o,e.data.content??[],e.ui.itemSelector),a=gY(()=>{eA(r,t.replaceComponent)},[r,t]);return oA(CY,{plan:r,onPress:a})}import{isShown as fA,lazyShowWhenContext as BY}from"efficient-shell/format";var Ut="product",zu="recordType",rA={key:Ut,label:"Product",fields:[]},vY=/^[a-z][a-z0-9]*(-[a-z0-9]+)*$/,TY=/^[a-z][A-Za-z0-9]*$/,kY=["text","date","images"],Tb=new Map,aA=0;function PY(e){if(typeof e.key!="string"||!vY.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"||!TY.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(!kY.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 u0e(e){let o=e.map(PY);for(let t of o)Tb.set(t.key,t);o.length&&(aA+=1)}function kb(){return[rA,...Tb.values()]}function Pb(e){return e===Ut?rA:Tb.get(e)??null}function Eb(){return aA}function Vc(e){let o=e?.[zu];return typeof o!="string"?Ut:o.trim()||Ut}function _b(e){return Vc(e)===Ut}function Ob(e,o){let t=Pb(e)?.fields??[];return o?t.filter(r=>o.includes(r.kind)):t}var Gu="product",nA="tyre",EY=[Gu,nA];function x0e(e){return EY.includes(e)}var _Y="productType",OY={[Gu]:"alloy-wheel",[nA]:"tyre"},AY=["alloy-wheel","tyre"];function sA(e,o){return _b(o)?iA(o)??OY[e]??null:null}function iA(e){if(!_b(e))return null;let o=e?.[_Y];return typeof o=="string"&&AY.includes(o)?o:null}function g0e(e){let o=e?.root;return iA(o?.props)}var Ab="Main Pages",RY="Dynamic Pages",Rb="dynamic",LY="dynamic";function Vn(e){return e.kind===LY}var Lb="lightbox";function lA(e){return e.kind===Lb}function cA(e){let o=[],t=[];for(let r of e){if(Vn(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??Ab,rows:[r]})}if(t.length){let r=o.findIndex(a=>a.key.startsWith("system:"));o.splice(r===-1?o.length:r,0,{key:Rb,label:RY,rows:t})}return o}var ju=null,dA=null;function FY(e,o){ju=e,dA=o}function C0e(e){FY(e,null)}function v0e(){return ju}function Yc(){return Vn({kind:dA})||ju===Gu}function T0e(e){return sA(ju??"",e)??"alloy-wheel"}function k0e(e){return Yc()?Vc(e):null}function Fb(e,o,t){let r=!1,a={};for(let[n,s]of Object.entries(e)){if(!fA(Ec(s),o??{},t)){r=!0;continue}let i=NY(s,o?.[n],o??{},t);i!==s&&(r=!0),a[n]=i}return r?a:e}function NY(e,o,t,r){let a=e?.options;if(!Array.isArray(a))return e;let n=a.filter(s=>s?.value===o||!s?.showWhen||fA(s.showWhen,t,r));return n.length===a.length?e:{...e,options:n}}function pA(e,o,t,r){let a=Mu(o,t,r);return{device:e,parentType:a?.item.type,parent:a?.item.props}}function Ku(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 Ku(t.not,o);for(let r of[t.all,t.any])if(Array.isArray(r)&&r.some(a=>Ku(a,o)))return!0;return!1}function uA(e,o={}){return BY({parentType:()=>e.parent?.type??void 0,parent:()=>e.parent?.props??void 0,dynamicPage:()=>Yc(),root:()=>e.appState?.data?.root?.props,...o})}import{isLengthUnit as DY}from"efficient-easel/screen/lib/content/length-units";var mA=1,MY="cardImageUnit",Bb={kind:"radius",unitKey:MY},hA={kind:"radius"};function HY(e){return Ht(e)}function xA(e,o){if(DY(o)&&o!=="px"){let r=V(e);return r!==void 0&&r>=0?{"--sf-card-image-radius":He(r,o)}:{}}let t=HY(e);return t===null?{}:{"--sf-card-image-radius":`${t}px`}}import{isLengthUnit as WY}from"efficient-easel/screen/lib/content/length-units";var gA={kind:"radius",unitKey:"cornersUnit"},IA=1,yA="Corners";function $Y(e){return Ht(e)}function j0e(e,o,t){let r=WY(t)&&t!=="px"?V(e):void 0,a=r===void 0?$Y(e):null;if(r===void 0&&a===null)return null;let n=r!==void 0?He(Math.max(0,r),t):`${a}px`;return{borderRadius:Gc(o)?Kn(n,zr(o)??[]):n}}import{phoneKey as PA}from"efficient-easel/screen/lib/content/view-tiers";var SA=12,Hi=6,UY=Jo,Vu={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"}},wA=["phone","acrossPhone","leadPhone"];var zY=new Set(wA),qc=Object.fromEntries(Object.entries(Vu).map(([e,o])=>[e,Object.fromEntries(Object.entries(o).filter(([t])=>!zY.has(t)))])),Nb=Object.keys(Vu),CA=[2,3,4,6];function Db(e,o){return Nb.filter(t=>t===o||e===null||qc[t].across===e)}function vA(e){let o=e.layout;return typeof o=="string"&&We(Vu,o)?o:null}function Mb(e){let o=vA(e);return o?GY(o,e.layoutPhone):null}var Yu={oneAcross:{label:"One across",phone:[[Hi,2]],acrossPhone:1}};function TA(e){return typeof e=="string"&&We(Yu,e)?e:null}function bA(e,o){return o?Hi/e.acrossPhone:SA/e.across}function Hb(e){return e.ratio?wO.find(o=>o.shape===e.ratio)?.ratio??null:null}function kA(e){return[...e.lead??[],...e.desktop]}function GY(e,o){let t=Vu[e],r=TA(o);if(!r)return t;let{phone:a,acrossPhone:n}=Yu[r],s=Object.fromEntries(wA.map(i=>[i,void 0]));return{...t,...s,phone:a,acrossPhone:n}}var jY="sf-wall--";function KY(e){let o=vA(e);if(!o)return"";let t=TA(e.layoutPhone);return`${jY}${o}${t?`--${t}`:""}`}function X0e(e){let o=Mb(e);if(!o)return"";let t=`.${KY(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(${SA},minmax(0,1fr))}`);let s=Hb(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,bA(o,!1),o.lead)),r.push(`@media (max-width:${UY}px){`),r.push(`${t}{grid-template-columns:repeat(${Hi},minmax(0,1fr))}`),r.push(...n(o.phone,bA(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 qu=12,EA=1,Xu=3;var VY=3;function Wi(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 YY(e){return Wi(e,1,qu)??VY}function eOe(e,o){return Wi(e,EA,Xu)??(YY(o)===4?2:EA)}function _A(e){return e==null||e===""?null:Wi(e,1,qu)}var OA="data-sf-span",Zu=4;function Wb(e){return e==null||e===""?null:Wi(e,1,Zu)}var AA="data-sf-row-span",$i="gridTileAt",$b=48;function RA(e){return e==null||e===""?null:Wi(e,1,$b)}var LA="--sf-tile-at";function FA(e){return e==null||e===""?null:Wi(e,1,Xu)}function BA(e){return Wb(e)}var NA="data-sf-span-phone",DA="data-sf-row-span-phone",Ya=["gridSpan","gridRowSpan",$i,PA("gridSpan"),PA("gridRowSpan")];function MA(e,o){if(!e)return!1;if(Ub(e,o)||e.type==="Grid")return!0;if(e.type==="GalleryB"){if(Mb(e.props??{}))return!1;let t=e.props?.columns;return t!=null&&t!==""}return!1}var HA=new Map;function oOe(e,o){HA.set(e,[...o])}function Ub(e,o){if(!e||typeof e.type!="string"||typeof o!="string")return!1;let t=HA.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 qY}from"react/jsx-runtime";import*as XY from"efficient-easel/icons";function Ju(e){let o=e.replace(/(^|-)([a-z])/g,(r,a,n)=>n.toUpperCase()),t=XY[`${o}Icon`];return t?qY(t,{size:16}):null}import{jsx as qa,Fragment as QY,jsxs as VA}from"react/jsx-runtime";import{useContext as e9,useEffect as o9,useId as t9,useState as YA}from"react";import{SettingsField as r9,SettingsSwitch as a9}from"efficient-easel/panel";import{AnchorIcon as n9}from"efficient-easel/icons";import{ScreenDocumentContext as s9}from"efficient-easel/screen/components/ScreenDocumentContext";import{Snippet as i9}from"efficient-shell/ui";import{slugify as l9}from"efficient-shell/format";import{slugify as ZY}from"efficient-shell/format";function Xc(e){return typeof e=="string"?e.trim():e&&typeof e=="object"&&typeof e.text=="string"?e.text.trim():""}var Yn=e=>ZY(Xc(e));var Qu="homepage";import{slugify as JY}from"efficient-shell/format";var WA=[{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 $A(e){return e.offersCommerce&&e.offersService?WA:WA.filter(o=>!o.needs||(o.needs==="commerce"?e.offersCommerce:e.offersService))}var zb="#popup:";function UA(e){return`${zb}${e}`}function zA(e){return e.startsWith(zb)&&e.slice(zb.length).trim()||null}function Zc(e){return e===Qu?"/":`/${e}`}function GA(e){return`/journal/${e}`}function fOe(e){return`/wheels/${e}`}function em(e,o){return`${Zc(e)}#${o}`}function jA(...e){let o=new Set,t=[];for(let r of e)for(let a of r?.content??[]){let n=Xc(a?.props?.anchor);if(!n)continue;let s=JY(n);!s||o.has(s)||(o.add(s),t.push({slug:s,name:n}))}return t}function pOe(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 KA(e){return/^\/wheels\/[^/?#]+(?:[?#].*)?$/.test(e)}import{readHidable as c9}from"efficient-easel/draw";function qA({value:e,onChange:o,nameBox:t}){let r=c9(e).text,[a,n]=YA(!1),s=a||r.trim()!=="",i=t9();return VA(QY,{children:[qa(r9,{label:c("Add an anchor"),labelId:i,icon:qa(n9,{}),action:qa(a9,{checked:s,ariaLabelledBy:i,onChange:l=>{n(l),!l&&r!==""&&o("")}})}),s&&t(e,o),s&&qa(d9,{name:r})]})}function d9({name:e}){let o=e9(s9),t=o?.templateId?"":o?.currentSlug??"",[r,a]=YA("");o9(()=>a(vu()),[]);let n=l9(e);if(!n||!t)return null;let s=`${r}${em(t,n)}`,i=s.replace(/^https?:\/\//,""),l=i.lastIndexOf("#");return qa("div",{className:"sf-anchor-link",children:qa(i9,{value:s,label:c("link"),size:"sm",children:VA("span",{className:"sf-anchor-link-text",children:[qa("span",{className:"sf-anchor-link-path",children:i.slice(0,l)}),qa("span",{className:"sf-anchor-link-hash",children:i.slice(l)})]})})})}import{jsx as Gr,jsxs as f9}from"react/jsx-runtime";import{Fragment as p9}from"react";import{Button as om,Tooltip as u9}from"efficient-shell/ui";function XA({status:e,statusText:o,onRefresh:t,busy:r=!1,edit:a,hint:n,spaced:s=!0,compact:i=!1,oneLine:l=!1}){return i?Gr("div",{className:`sf-blogsource sf-blogsource--compact${l?" sf-blogsource--line":""}`,style:s?{marginTop:8}:void 0,children:Gr(u9,{content:n,className:l?"sf-name-tip":void 0,children:Gr("p",{className:"sf-blogsource-status","data-state":e,children:[o?Gr(p9,{children:o},"status"):null,t?Gr(om,{variant:"link",size:"sm",className:"sf-blogsource-link",onClick:t,disabled:r,children:c("Refresh now")},"refresh"):null,a?Gr(om,{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])})})}):f9("div",{className:"sf-blogsource",style:s?{marginTop:9}:void 0,children:[Gr("p",{className:"sf-blogsource-status","data-state":e,children:o}),t?Gr(om,{variant:"secondary",className:"sf-blogsource-action",onClick:t,disabled:r,children:c("Refresh now")}):null,a?Gr(om,{variant:"secondary",className:"sf-blogsource-action",onClick:a.onClick,children:a.label}):null,Gr("p",{className:"es-field-hint",children:n})]})}import{AdjustIcon as XQ,EyeIcon as ZQ,AnimationIcon as JQ,BackgroundIcon as aB,BorderAllIcon as QQ,BlockSectionIcon as eee,ColumnWidthsIcon as sh,ColumnsIcon as IB,CornerIcon as yB,DirectionDownIcon as oee,DirectionLeftIcon as tee,DirectionRightIcon as ree,DirectionUpIcon as aee,EditIcon as nee,GapIcon as see,GridIcon as bB,GroundIcon as ww,HashIcon as SB,HeightIcon as ih,ImageIcon as iee,ListIcon as lee,LocationIcon as nB,PaddingBottomIcon as wB,PaddingLeftIcon as CB,PaddingRightIcon as vB,PaddingTopIcon as kw,PageIcon as cee,StickyIcon as TB,SearchIcon as dee,SquareIcon as fee,TypeIcon as pee,WidthIcon as uee}from"efficient-easel/icons";import{jsx as to,Fragment as qn,jsxs as Xn}from"react/jsx-runtime";import{CaptionIcon as m9,DateIcon as h9,FlagIcon as x9,TitleIcon as g9,ButtonIcon as I9,DollarIcon as y9,HashIcon as b9,LinkIcon as S9,NoteIcon as w9,TagIcon as C9,TextLinesIcon as v9}from"efficient-easel/icons";var ZA={body:v9,button:I9,link:S9,label:C9,number:b9,price:y9,note:w9,name:x9,date:h9,caption:m9,title:g9},JA={eyebrow:Xn(qn,{children:[to("path",{d:"M5 6.5h5"}),to("path",{d:"M5 12.5h14"}),to("path",{d:"M5 18h11"})]}),heading:Xn(qn,{children:[to("path",{d:"M6.5 5v14"}),to("path",{d:"M17.5 5v14"}),to("path",{d:"M6.5 12h11"})]}),intro:Xn(qn,{children:[to("path",{d:"M4 5.5v13"}),to("path",{d:"M8 7.5h12"}),to("path",{d:"M8 12h12"}),to("path",{d:"M8 16.5h8"})]}),value:Xn(qn,{children:[to("rect",{x:"2.5",y:"7",width:"19",height:"10",rx:"2"}),to("path",{d:"M6.5 12h7"})]}),quote:Xn(qn,{children:[to("path",{d:"M9.5 5.5C7 7.2 5.5 9.7 5.5 12.8h4v5.7h-5v-5.7"}),to("path",{d:"M19.5 5.5c-2.5 1.7-4 4.2-4 7.3h4v5.7h-5v-5.7"})]}),tag:Xn(qn,{children:[to("rect",{x:"3",y:"5.5",width:"18",height:"13",rx:"2.5"}),to("path",{d:"M8 9.5h8"}),to("path",{d:"M12 9.5v5"})]}),meta:Xn(qn,{children:[to("path",{d:"M4 7h16"}),to("path",{d:"M4 14h3.5"}),to("path",{d:"M10.5 14h3"}),to("path",{d:"M17 14h3"})]})};function Gb({noun:e,size:o=14,strokeWidth:t=1.8,className:r,style:a}){let n=ZA[e];return n?to("span",{className:r,style:{display:"inline-flex",...a},"aria-hidden":"true",children:to(n,{size:o})}):to("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:JA[e]})}var LOe=Object.keys(ZA);var FOe=Object.keys(JA);import{parseHexColor as R9}from"efficient-shell/format";import{parseHexColor as rR}from"efficient-shell/format";import{COLOR_SLOTS as aR,FILL_COLOR_SLOTS as _9,colorRole as O9,fillColorRole as nR}from"efficient-shell/markup";import{parseHexColor as QA}from"efficient-shell/format";import{FILL_COLOR_SLOTS as T9}from"efficient-shell/markup";var tm=e=>{let o=iO.find(t=>t.role===e);return o?`var(${o.token})`:""},k9=e=>tm(e)?`var(--theme-${e})`:"",P9={main:{ink:Fn.accent,page:Fn.accent,key:"accent",label:()=>c("Main"),words:e=>c("Theme {n} main color",{n:e})},text:{ink:Fn.text,page:Fn.text,key:"text",label:()=>c("Text"),words:e=>c("Theme {n} text color",{n:e})},background:{ink:tm("bg"),page:k9("bg"),key:"background",label:()=>c("Background"),words:e=>c("Theme {n} background",{n:e})},muted:{ink:Fn.labels,page:Fn.labels,key:"muted",label:()=>c("Muted"),words:e=>c("Theme {n} muted color",{n:e})},surface:{ink:tm("surface"),page:tm("surface"),key:"surface",label:()=>c("Surface"),words:e=>c("Theme {n} surface color",{n:e})}};function Xa(e){return $(P9,e)}var jb="#9ca3af";function Ui(e,o,t){let r=Xa(e);return r?{hex:QA(o[r.key]??"")??"",words:r.words(t)}:null}function eR(e,o){return T9.flatMap(t=>{let r=Ui(t,e,o);return r&&Xa(t)?.ink?[{name:t,label:r.words,value:r.hex||jb}]:[]})}var E9=["main","text","background"];function oR(e){let o=new Set,t=[];return ko(e).themes.forEach((r,a)=>{for(let n of E9){let s=Xa(n),i=s?r[s.key]:void 0,l=typeof i=="string"&&i?QA(i):null;!s||!l||o.has(l)||(o.add(l),t.push({value:l,label:s.words(a+1)}))}}),t}function ma(e){return Xa(e)?.ink??""}function jr(e){if(typeof e!="string")return null;let o=nR(e.trim());return o?.kind==="slot"&&ma(o.slot)?o.slot:null}var A9={accent:"main",labels:"muted"};function Ot(e){return $(A9,e)??e}function zi(e){if(!e)return"";if(e.startsWith("#"))return rR(e)===e.toLowerCase()?e:"";let o=O9(Ot(e));return o?.kind==="slot"?ma(o.slot):""}function Gi(e,o=aR){return o.flatMap(t=>{let r=Xa(t);return r?.ink?[{name:t,label:r.label(),value:e?.[t]||jb}]:[]})}function sR(e){let o=nR(Ot(e));return o?.kind==="slot"?ma(o.slot):""}function Kb(e){let o=e?.trim();return o?_9.find(t=>ma(t)===o)??null:null}function rm(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 aR){let i=ma(s);if(!i)continue;let l=i.replace(/^var\((--[\w-]+)\)$/,"$1"),d=a.getPropertyValue(l).trim();if(!d)continue;let f=tR(d);!f&&n&&(n.fillStyle="#000000",n.fillStyle=d,f=tR(String(n.fillStyle))),f&&(o[s]=f)}return o}function tR(e){let o=e.trim().toLowerCase();if(o.startsWith("#"))return rR(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 L9="#ffffff";function Vb(e){return iR(e)||(F9(e)?e:L9)}function iR(e){let o=jr(e);return o?Xa(o)?.page??"":""}function F9(e){return typeof e=="string"&&R9(e)===e.toLowerCase()||iR(e)!==""}function am(e){return{"--bg":Vb(e)}}import{parseHexColor as B9}from"efficient-shell/format";import{fillColorRole as N9}from"efficient-shell/markup";function Zn(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 Yb=[{label:"Even",value:"even"},{label:"From the bottom",value:"bottom"}];var d1e="sf-card",f1e="[--sf-card-lift:none] [--sf-card-shadow-hover:var(--sf-card-shadow,none)]",Za={min:0,max:100,step:5,fallback:0,unit:"%"},D9="68%",u1e={desktop:20,phone:20,side:40,sidePhone:24},m1e="sf-box-sides";function Xb(e){return typeof e=="string"&&e.trim()!==""}function cR(e){return Xb(typeof e?.bgImage=="string"?e.bgImage:null)||nm(e)}function nm(e){return xt(e,$p)!==""}function Qc(e,o){return o||!nm(e)?e:{...e,[$p]:""}}function h1e(e,o){return zy(o,xt(e,$p))?.trim()||null}function lR(e,o){let t=typeof e=="number"?e:Number.parseFloat(String(e??""));if(!Number.isFinite(t)||t<=0)return null;let r=(Math.min(Za.max,Math.max(Za.min,t))/100).toFixed(2);return o!=="bottom"?{background:pa(Number(r))}:{background:`linear-gradient(0deg, ${pa(Number(r))} 0%, ${pa(0)} ${D9})`}}var sm=[{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"}],dR="fillFade",qb=sm[1].value,im=e=>e===qb?qb:sm[0].value,M9=[{mix:"12%",at:"50%"},{mix:"19%",at:"70%"},{mix:"50%",at:"95%"}];function x1e(e){return im(e)!==qb?null:{backgroundImage:`linear-gradient(to bottom, transparent, ${M9.map(o=>`color-mix(in srgb, var(--bg) ${o.mix}, transparent) ${o.at}`).join(", ")})`}}var lm=e=>typeof e=="string"?B9(e.trim()):null,Jc=e=>{let o=lm(e);if(o!==null||typeof e!="string")return o;let t=e.trim();return t&&!t.startsWith("#")&&sR(t)||null},cm=e=>{if(typeof e!="string")return null;let o=N9(Ot(e.trim()));return o?.kind==="slot"?o.slot:null},Zb="swatch";function g1e(e,o){if(!o)return null;let t=zy(o,xt(e,Zb)),r=jr(t);return lm(t)??(r&&ma(r)||null)}var H9={tabletClass:"sf-fill-tablet",tabletVar:"--sf-fill-tablet",phoneClass:"sf-fill-phone",phoneVar:"--sf-fill-phone"};function I1e(e,o,t){return Zn(H9,Jc(e),Jc(o),Jc(t))}var W9={tabletClass:"sf-wash-tablet",tabletVar:"--sf-wash-tablet",phoneClass:"sf-wash-phone",phoneVar:"--sf-wash-phone"};function y1e(e){let o=lR(e.darken,e.darkenStyle);if(!o)return{className:"",style:{}};let t=(u,p)=>String(lR(u,p)?.background??"none"),r=u=>(typeof u=="number"||typeof u=="string"&&u.trim()!=="")&&Number.isFinite(Number(u))?u:void 0,a=u=>Yb.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 Zn(W9,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 b1e(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 V_(n,s)}function fR(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(Jb(r,o,0))return{type:typeof a=="string"?a:"",props:n??{}}}return null}function Jb(e,o,t){if(t>12||!e||typeof e!="object")return!1;if(Array.isArray(e))return e.some(a=>Jb(a,o,t+1));let r=e.props;return r&&typeof r=="object"&&r.id===o?!0:Object.values(e).some(a=>Jb(a,o,t+1))}function pR(e,o){let t=e?.content;return Array.isArray(t)?dm(t,o,0)??[]:[]}function dm(e,o,t){if(t>12||!e||typeof e!="object")return null;if(Array.isArray(e)){for(let a of e){let n=dm(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=dm(a,o,t+1);if(n)return[r,...n]}return null}for(let a of Object.values(e)){let n=dm(a,o,t+1);if(n)return n}return null}import{SettingsDefaultReset as tt,SettingsDrill as mee,SettingsField as Io,SettingsGroup as hee,SettingsSegmented as xee,SettingsBorder as gee,SettingsSidesEach as Iee,SettingsSwitch as Pw,borderSides as yee,borderStartEach as bee}from"efficient-easel/panel";import{ListField as See}from"efficient-easel/fields";import{CodeIcon as wee}from"efficient-shell/icons/efficient";import{DisplayChips as Cee}from"efficient-shell/ui";import{HIDDEN_KEY as $9,hiddenInEveryView as U9,hiddenInView as Qb,hiddenKeyOf as uR}from"efficient-easel/screen/lib/content/view-hide";import{VIEW_TIERS as z9}from"efficient-easel/screen/lib/content/view-tiers";var G9={"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"},j9={"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"},mR=e=>(e.desktop?"1":"0")+(e.tablet?"1":"0")+(e.mobile?"1":"0");function fm(e,{atSectionLine:o=!1}={}){return(o?j9:G9)[mR(e)]}var ji=[$9,uR("tablet"),uR("mobile")];function hR(e){return{desktop:Qb(e,"desktop"),tablet:Qb(e,"tablet"),mobile:Qb(e,"mobile")}}function ha(e){return U9(e)}function xR(e){let o=hR(e);return z9.filter(t=>o[t]).join(" ")}var K9={"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!"},V9={"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 ed(e,{atSectionLine:o=!1}={}){return(o?V9:K9)[mR(hR(e))]}function Ki(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 pm(e,o){return Ki(e)[o]!==!1}function eS(e,o,t){let r=Ki(o)[t];return typeof r=="boolean"?r:pm(e,t)}function gR(e){return Object.values(Ki(e)).some(o=>o===!1)}function IR(e){return Object.keys(Ki(e)).length>0}function yR(e,o,t){let r={...Ki(e)};return t?delete r[o]:r[o]=!1,Object.keys(r).length?r:void 0}function bR(e,o,t){return{...Ki(e),[o]:t}}function P1e(e,o,t,{atSectionLine:r=!0}={}){let a=!pm(e,t);return fm({desktop:a,tablet:a,mobile:!eS(e,o,t)},{atSectionLine:r})}import{ColorSwatch as vee,CornersInput as Tee,DatePicker as iDe,DateTimePicker as kee,FOCAL_DEFAULT as lDe,IconPicker as kB,COLUMN_COUNT_MAX as sB,COLUMN_SHARE_MIN as Pee,COLUMN_SHARES_EQUAL as Eee,resolveColumnShares as PB,WidthsBar as _ee,useShellStrings as Oee,IconButton as EB,InputNumber as iB,Slider as Aee,Textarea as Ree,Tooltip as Ew}from"efficient-shell/ui";import{backendOf as Y9}from"efficient-easel/screen/lib/session";var je=Y9,Vi=e=>e.blocks;async function SR(e){let o=e.trim();if(!o)return null;let t=je().geocode;if(!t)throw new Error("geocode_unavailable");return t.locate(o)}var oS="Lookup busy \u2014 try again in a moment.",um=e=>typeof e=="number"&&Number.isFinite(e);function F1e(e){return e.some(o=>{let t=o?.geocode;return t?t.pending||t.manual&&t.lat===void 0&&t.lng===void 0?!0:um(t.lat)&&t.lat!==o.lat||um(t.lng)&&t.lng!==o.lng:!1})}async function B1e(e,o,{geocode:t=SR,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:oS}})}}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=um(i.lat)&&i.lat!==s.lat?i.lat:s.lat,d=um(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 dt,jsxs as rS}from"react/jsx-runtime";import{useRef as q9}from"react";import{ColorPicker as X9,ColorPickerPanel as Z9,ColorSwatch as J9,HexInput as Q9,Popover as eq,Tooltip as oq,colorFill as tq,colorSwatchClasses as rq,useShellStrings as aq}from"efficient-shell/ui";import{SettingsDefaultReset as nq,SettingsField as sq}from"efficient-easel/panel";import{typedHex as tS}from"efficient-easel/pick";var wR="Not set";function CR({value:e,onChange:o,label:t,id:r,caption:a,inherited:n,ariaLabel:s,choices:i}){return dt(lq,{value:e,onChange:o,label:c(s??t),id:r,caption:a,inherited:n,choices:i})}function iq(){let{theme:e}=pe();return oR(e)}function lq({value:e,onChange:o,label:t,id:r,caption:a,inherited:n,choices:s}){let i=iq(),l=e?null:tS(n??""),d=a!==void 0&&(!e||tS(a)!==tS(e))?a:null,f=u=>{u!==e&&o(u)};return rS("div",{className:"sf-colour",children:[s?dt(cq,{id:r,value:e,onChange:o,label:t,presets:i,follows:l,choices:s}):dt(X9,{id:r,value:e,onChange:f,label:t,presets:i,fallback:l??void 0,size:"md",align:"start"}),d!==null?dt("span",{className:"sf-colour-caption",children:d}):dt("span",{className:"sf-colour-hexwrap",children:dt(Q9,{value:e||l||"",onChange:f,label:c("{label} hex code",{label:t}),placeholder:e||l?void 0:c(wR),className:l?"sf-colour-hex is-inherited":"sf-colour-hex",size:"md"})})]})}function cq({value:e,onChange:o,label:t,id:r,presets:a,follows:n,choices:s}){let i=aq().color,l=e||n||"",d=s.findIndex(p=>p.selected),f=d>=0,u=q9(d);return f&&(u.current=d),dt(eq,{id:r,trigger:dt("span",{"aria-hidden":"true",className:"absolute inset-0",style:tq(l)}),triggerLabel:i.swatch(t,l.toUpperCase()||i.none),triggerClassName:rq({size:"md"}),"aria-label":i.panel(t),align:"start",children:rS("div",{className:"sf-colour-window",children:[dt("div",{role:"group","aria-label":t,className:"sf-colour-choices",children:s.map(p=>dt(oq,{content:p.label,children:dt(J9,{color:p.color,"aria-label":p.label,selected:p.selected,onClick:()=>{p.selected||p.onPick()}})},p.label))}),dt(Z9,{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 dt(sq,{label:e,icon:o,htmlFor:i.id,changed:t,hint:r,action:a?dt(nq,{words:de()?.panel,label:e,changed:!!t,detail:n,onReset:a}):void 0,children:s?rS("div",{className:"es-width-stack",children:[CR({...i,label:e}),s]}):CR({...i,label:e})})}function od({label:e,icon:o,value:t,inherited:r,resetTo:a,onChange:n,onReset:s,hint:i,choices:l,children:d}){let f=!!t;return dt(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 Cw}from"efficient-easel/screen/lib/document/style-fields";import{jsx as dq}from"react/jsx-runtime";import{useEffect as fq,useState as pq}from"react";import{clearRangeOf as uq,markSelection as mq,useCaretEdit as hq}from"efficient-easel/copy";import{TextToolbar as xq}from"efficient-shell/ui";function gq(e,o,t){return mq(e,o,t,x_)}function vR(e,o){let t=uq(o,e.length),r=I_(e,t.start,t.end);return r.text===e?null:r}function Iq(e){let[o,t]=pq(null);return fq(()=>{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 yq({target:e,value:o,onChange:t,disabled:r=!1,label:a="Formatting"}){let n=hq({target:e,onChange:t}),[s,i]=Iq(e),l=p=>n(m=>{let h=gq(o,p,m);return i({start:h.selectionStart,end:h.selectionEnd}),h}),d=h_(),f={};if(s)for(let p of d)f[p.style]=g_(o,s.start,s.end,p.style);let u=r?null:vR(o,s);return dq(xq,{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=vR(o,m)??{text:o,selectionStart:m?.start??0,selectionEnd:m?.end??0};return i({start:h.selectionStart,end:h.selectionEnd}),h})}:void 0})}var aS=yq;import{deviceField as Go}from"efficient-easel/screen/lib/document/device-fields";import{NO_CONTROL_FIELD as Lee,NoControlMark as Fee,noControlField as _B}from"efficient-easel/screen/lib/document/panel-no-control-mark";var nS="__ownBox";function TR(e){return!!e&&typeof e=="object"&&e[nS]===!0}var sS="sfPanelOnly";function Yi(e){return!!e&&typeof e=="object"&&e[sS]===!0}function mm(e,o,t){return typeof e=="number"?e:typeof o=="number"?o:t}var hm=void 0;import{phoneKey as nn,tabletKey as _w,viewKeyAt as Ow}from"efficient-easel/draw";import{jsx as xm,Fragment as bq,jsxs as Sq}from"react/jsx-runtime";import{useRef as wq}from"react";import{SettingsDefaultReset as Cq}from"efficient-easel/panel";import{effectTiles as vq}from"efficient-easel/screen/lib/document/effect-tiles";import{VIEW_KEY_ACCESS as kR,describedAs as Tq,onDesktopWords as kq,phoneTwinFields as PR}from"efficient-easel/screen/lib/document/box-fields";function Pq({row:e,read:o,...t}){let r=o(So(),t.followsView??"desktop");return e({...t,follows:r})}function xa(e,o){return Object.fromEntries(It.map(t=>{let r=Pe(e,t);return[r,PR(e,o(t),kR)[r]]}))}function gm(e,o,t){let r=o.render,a={...o,render:n=>xm(Pq,{...n,row:r,read:t})};return xa(e,n=>n==="desktop"?o:a)}function Eq({spec:e,...o}){let t=e.values.includes(o.value),r="follows"in o,a=e.read(So(),o.followsView??"desktop"),n=t?o.value:a,s=wq(null),{preview:i}=e,l=vq({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(bq,{children:[i?xm("div",{ref:s,style:{display:"contents"},children:d}):d,r&&t&&xm(Cq,{words:de()?.panel,label:c(e.tileWord),changed:!0,detail:kq(f=>c(f),c(e.word(a)),o.followsView),onReset:()=>o.onChange(void 0)})]})}function Im(e,o){let t=Tq({type:"custom",render:r=>xm(Eq,{...r,spec:o})},{type:"select",label:o.label,options:o.values.map(r=>({value:r,label:o.word(r)}))});return PR(e,t,kR)}import{jsx as lS,Fragment as Aq}from"react/jsx-runtime";import{createContext as Rq,useContext as Lq}from"react";var ym={ProductGrid:{source:{keep:["slug"]}},GalleryItem:{product:{keep:["code","finish"]}},FeaturedCover:{source:{keep:["slug"]}},LongRead:{source:{keep:["slug"]}}},bm={Events:["posts"],SubscribeBlogs:["posts"]};var _q=["anchor"],Oq=/^href$|Href$|^url$|Url$|^link$|^mailto$|^tel$/;function Jn(e){return _q.includes(e)||Oq.test(e)}var iS={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"}}};iS.ContactLocations={"locations[].lat":{verb:"pii"},"locations[].lng":{verb:"pii"},"locations[].mapsUrl":{verb:"pii"},"locations[].geocode":{verb:"pii"}};var hAe=Object.fromEntries(Object.entries(ym).map(([e,o])=>[e,Object.keys(o)])),xAe=Object.fromEntries(Object.entries(bm).map(([e,o])=>[e,[...o]]));import{NoControlMark as Fq}from"efficient-easel/screen/lib/document/panel-no-control-mark";var ER=Rq(!1);function _R({children:e}){return lS(ER.Provider,{value:!0,children:e})}function Bq(){return Lq(ER)}function OR({name:e,children:o}){return!Bq()||!e||!Nq(e)||Jn(e)?lS(Aq,{children:o}):lS(Fq,{})}function Nq(e){return/^[A-Za-z0-9_$]+$/u.test(e)}var cS="off",RR="none",dS=[{label:"None",value:"off"},{label:"1, 2, 3",value:"plain"},{label:"01, 02, 03",value:"padded"},{label:"N\xB001, N\xB002",value:"numero"}],LR=[{label:"None",value:"none"},{label:"Hairline",value:"hairline"}];function vAe(e){return Q(dS,cS,e)}var AR="sf-card-index",td="sf-card-index",TAe="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",Dq={plain:`counter(${td})`,padded:`counter(${td}, decimal-leading-zero)`,numero:`"N\xB0" counter(${td}, decimal-leading-zero)`};function kAe(e,o){return o==="off"?"":`.${e}{counter-reset:${td}}.${e} .${AR}{counter-increment:${td}}.${e} .${AR}::before{content:${Dq[o]}}`}function PAe(e){return e==="hairline"?"border border-line hover:border-accent":""}var FR=[{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 Bee}from"efficient-easel/draw";import{jsx as bt}from"react/jsx-runtime";import{SettingsDefaultReset as jq,SettingsField as fS}from"efficient-easel/panel";import{useSelectedHost as Kq}from"efficient-easel/easel";import{FOCAL_DEFAULT as Vq}from"efficient-shell/format";import{ImageIcon as pS,PlayIcon as NR}from"efficient-easel/icons";import{ImageFocusPoint as Yq,MediaUploadField as qq}from"efficient-shell/ui";import{useContext as Xq}from"react";import{ScreenDocumentContext as Zq}from"efficient-easel/screen/components/ScreenDocumentContext";import{tabletKey as Jq,viewKeyAt as Qq}from"efficient-easel/draw";import{usePreviewDevice as eX}from"efficient-easel/draw/client";import{formatFocal as Mq,parseFocal as Hq}from"efficient-shell/format";var Wq="sf-focus-phone",$q="--sf-focus-phone",Uq="sf-focus-tablet",zq="--sf-focus-tablet",rd=e=>{if(typeof e!="string"||!/^\s*-?\d+(\.\d+)?%\s+-?\d+(\.\d+)?%\s*$/.test(e))return null;let{x:o,y:t}=Hq(e);return Mq(o,t)};function BR(e,o){return Zn(Gq,null,rd(o),rd(e))}var Gq={tabletClass:Uq,tabletVar:zq,phoneClass:Wq,phoneVar:$q};import{shownTier as uS}from"efficient-easel/screen/lib/document/device-fields";import{onDesktopWords as oX}from"efficient-easel/screen/lib/document/box-fields";import{requestMediaPick as tX}from"efficient-easel/screen/lib/media-picker";import{useEaselHost as rX}from"efficient-easel/screen/lib/host";import{useEaselSession as aX}from"efficient-easel/screen/lib/session-context";function nX(e,o,t,r=!0){let a=uS(t),n=typeof e[o]=="string"&&e[o]?String(e[o]):Vq;if(a==="desktop")return{ownView:!1,followed:n,followsView:"desktop",own:void 0,focus:n,key:o};let s=Qq(o,a),i=rd(e[s])??void 0,l=a==="mobile"&&r?rd(e[Jq(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 sX(e,o,t){let r=Kq();if(!o||!r)return null;let a=r.values??{};if(t&&!t(a,uS(e)))return null;let n=nX(a,o,e,t?t(a,"tablet"):!0),s=r.onChange;return{...n,set:i=>s(n.key,i),clear:()=>s(n.key,hm)}}function DR({value:e,onChange:o,label:t,accept:r,placeholder:a,focusKey:n,focusWhen:s,frameKey:i,fieldKey:l}){let d=rX(),f=aX(),u=c(t),p=eX(),m=r.startsWith("video"),h=sX(p,m?void 0:n,s),I=!!n&&uS(p)!=="desktop",w=Xq(Zq),S=xr(),C=i&&l?{video:l,frame:i}:null,b=O=>tX(d,{accept:r,title:u,...O?{file:O}:{}}).then(N=>!N||!C?N?.url??null:(S({[C.video]:N.url,[C.frame]:N.posterUrl??""}),null)),y=C?O=>O?o(O):S({[C.video]:"",[C.frame]:""}):o,v=ct(e);if(I&&(!h||!v))return null;if(w&&!w.capabilities.mediaEditing)return bt(fS,{label:u,icon:m?bt(NR,{}):bt(pS,{}),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(jq,{words:de()?.panel,label:c("Image focus"),changed:!!h.own,detail:oX(O=>c(O),h.followed,h.followsView),onReset:h.clear}):void 0;return I&&h?bt(fS,{label:u,icon:bt(pS,{}),action:L,children:bt("div",{style:{flex:"1 1 auto",minWidth:0},children:bt(Yq,{value:h.focus,onChange:h.set,label:c("Image focus"),image:v,hint:null})})}):bt(fS,{label:u,icon:m?bt(NR,{}):bt(pS,{}),children:bt("div",{style:{flex:"1 1 auto",minWidth:0},children:bt(qq,{value:v,onChange:y,onPick:b,accept:m?"video/*":"image/*",kind:m?"video":"image",placeholder:a===void 0?void 0:c(a),maxSizeBytes:je(f).media.maxUploadBytes,...h?{focus:h.focus,onFocusChange:h.set}:{}})})})}import{jsx as MR}from"react/jsx-runtime";import{useId as iX}from"react";import{FieldSelect as lX}from"efficient-easel/fields";import{SettingsField as cX}from"efficient-easel/panel";function dX(e){return e.map(({value:o,label:t,note:r})=>({value:o,label:t,...r?{meta:r}:{}}))}function HR({label:e,options:o,value:t,onChange:r,emptyLabel:a,icon:n,hint:s}){let i=iX(),l=`${i}-label`,d=`${i}-button`,f=Array.isArray(t)?t:[];return MR(cX,{label:c(e),labelId:l,icon:n,hint:s,children:MR(lX,{id:d,multiple:!0,value:f,options:dX(o),onChange:r,placeholder:a===void 0?c("None"):c(a),ariaLabelledBy:`${l} ${d}`,inline:!0})})}import{jsx as Po,jsxs as es,Fragment as HX}from"react/jsx-runtime";import{useCallback as JR,useContext as WX,useId as oL,useRef as QR,useState as eL}from"react";import{ThemeIcon as $X}from"efficient-easel/icons";import{Button as UX,useClickOutside as zX}from"efficient-shell/ui";import{SettingsField as GX}from"efficient-easel/panel";import{ScreenDocumentContext as jX}from"efficient-easel/screen/components/ScreenDocumentContext";import{jsx as xe,jsxs as Qa,Fragment as yX}from"react/jsx-runtime";import{parseHexColor as bX}from"efficient-shell/format";import{Button as hS,IconButton as SX,Tooltip as wX}from"efficient-shell/ui";import{jsx as Ja,jsxs as fX}from"react/jsx-runtime";import{AccentIcon as pX}from"efficient-easel/icons";import{Button as uX,Tooltip as mX}from"efficient-shell/ui";function mS(e){return gt(e).background}function hX(e){let o=$a(e.accent,mS(e));return o===null?null:{ratio:o,grade:Ei(o)}}function xX(e){let o=mS(e),t=$a(e.accent,o);return t===null?[]:N0(e.accent).filter(r=>{let a=$a(r,o);return a!==null&&a>t&&Ei(a)==="good"})}var gX={good:"Easy to read","large-only":Pi["large-only"],hard:Pi.hard};function WR({value:e,onChange:o}){let t=hX(e),r=t?.grade,a=t&&t.grade!=="good"?xX(e):[];return Ja(yt,{label:c("Main color"),icon:Ja(pX,{}),hint:t?c(gX[t.grade]):void 0,value:e.accent,onChange:n=>o({...e,accent:n}),children:a.length>0?Ja("div",{className:"w-full min-w-0",children:fX("div",{className:"sf-readability",children:[Ja("p",{className:"sf-readability-advice",children:IX(r,!0)}),Ja("div",{className:"sf-readability-suggestions",children:a.map(n=>{let s=$a(n,mS(e));return Ja(mX,{content:c("Use {colour}",{colour:n.toUpperCase()}),children:Ja(uX,{variant:"secondary",className:"sf-readability-suggestion",leftIcon:Ja("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 IX(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 CX,ChevronDownIcon as UR,ChevronUpIcon as vX,GroundIcon as TX,LayoutIcon as kX,SquareIcon as PX,TextSmallIcon as EX,TypeIcon as $R}from"efficient-easel/icons";var ad=e=>c("Theme {n}",{n:e+1});function zR({colors:e}){let o=gt(e),t=Lc(e)??o.accent;return Qa("span",{className:"sf-theme-page",style:{background:o.background,color:o.text},"aria-hidden":!0,children:[xe("span",{className:"sf-theme-eyebrow",style:{color:o.muted},children:c("label")}),Qa("span",{className:"sf-theme-headline",children:[c("Heading")," ",xe("span",{style:{color:o.accent},children:c("main")})]}),xe("span",{className:"sf-theme-body",children:c("body text")}),Qa("span",{className:"sf-theme-row",children:[xe("span",{className:"sf-theme-btn",style:{background:t,color:Vy(e,o.accent)},children:c("button")}),xe("span",{className:"sf-theme-mini",style:{background:o.surface,borderColor:o.line},children:c("card")})]})]})}var xS={"Text color":xe($R,{}),"Label color":xe(EX,{}),Background:xe(TX,{}),"Panels & cards":xe(kX,{}),Borders:xe(PX,{}),"Button color":xe(CX,{}),"Button text color":xe($R,{})};function _X({label:e,colorKey:o,value:t,onChange:r,idPrefix:a="sf-theme-ink"}){let n=`${a}-${o}`;return xe(yt,{label:c(e),icon:xS[e],id:n,value:t,onChange:s=>r(o,s)})}function OX({value:e,accent:o,onChange:t,idPrefix:r="sf-theme-ink"}){let a=`${r}-button`,n=e!==void 0&&bX(e)===e.toLowerCase(),s=n?e:o;return xe(yt,{label:c("Button color"),icon:xS["Button color"],id:a,value:s,caption:n?s:c("Main"),onChange:t})}function AX({colors:e,accent:o,onChange:t,idPrefix:r="sf-theme-ink"}){let a=`${r}-button-ink`,n=W0(e),s=Vy(e,o),i=Lc(e)??o,l=Ei($a(s,i)??0);return xe(yt,{label:c("Button text color"),icon:xS["Button text color"],hint:n&&l!=="good"?c("{grade} on the button",{grade:c(Pi[l])}):void 0,id:a,value:s,caption:n?s:c("Auto"),onChange:t})}var RX=[{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 gS({colors:e,onChange:o,idPrefix:t}){let r=gt(e);return xe(yX,{children:RX.map(a=>"colour"in a?xe(WR,{value:e,onChange:o},"colour"):"moduleBreak"in a?xe("div",{className:"sf-theme-module-break","aria-hidden":"true"},"module-break"):"button"in a?xe(OX,{value:e.button,accent:r.accent,onChange:n=>o({...e,button:n}),idPrefix:t},"button"):"buttonInk"in a?xe(AX,{colors:e,accent:r.accent,onChange:n=>o({...e,buttonInk:n}),idPrefix:t},"buttonInk"):xe(_X,{label:a.label,colorKey:a.key,value:r[a.key],onChange:(n,s)=>o({...e,[n]:s}),idPrefix:t},a.key))})}function Sm({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=ad(e),u=e<Ky.length&&!o.brandInk?Ky[e]:null,p=Ei($a(d.text,d.background)??0),m=u?JSON.stringify(o)!==JSON.stringify(u):!1,h=a!==void 0;return Qa("div",{className:`sf-theme-card${t?" is-selected":""}`,children:[xe("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:xe(zR,{colors:o})}),Qa("div",{className:"sf-theme-foot",children:[xe("span",{className:"sf-theme-name",children:f}),p!=="good"&&xe("span",{className:"sf-theme-warn",children:c(Pi[p])}),n&&i&&h&&xe("span",{className:"sf-theme-edit",children:xe(wX,{content:a?c("Collapse"):c("Edit colors"),children:xe(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?xe(vX,{size:14}):xe(UR,{size:14})})})}),n&&i&&!h&&xe(hS,{variant:"secondary",size:"sm",className:"sf-theme-edit","aria-label":c("Edit {name}",{name:f}),onClick:i,children:c("Edit")})]}),a&&Qa("div",{id:`sf-theme-colours-${e}`,className:"sf-theme-colours",children:[xe(gS,{colors:o,onChange:I=>l?.(I)}),u&&xe(hS,{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 GR({colors:e,name:o,nameId:t,open:r,menuId:a,labelId:n,buttonRef:s,onClick:i,onKeyDown:l,onEdit:d}){return Qa("div",{className:"sf-secttheme-btn",children:[xe("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?xe(zR,{colors:e}):xe("span",{className:"sf-secttheme-nopreview","aria-hidden":"true"})}),Qa("div",{className:"sf-theme-foot",children:[xe("span",{id:t,className:"sf-theme-name",children:o}),d&&xe(hS,{variant:"secondary",size:"sm",className:"sf-theme-edit","aria-label":c("Edit {name}",{name:o}),onClick:d,children:c("Edit")}),xe("button",{type:"button",className:"sf-secttheme-caret","aria-hidden":"true",tabIndex:-1,onClick:i,children:xe(UR,{size:12,className:"sf-multi-caret","aria-hidden":"true"})})]})]})}import{useCallback as CS,useEffect as qR,useRef as Tm}from"react";import{currentEaselSession as BX}from"efficient-easel/screen/lib/session";import{useEaselSession as NX}from"efficient-easel/screen/lib/session-context";import{useSyncExternalStore as LX}from"react";var KR,IS=null,Qn=null,wm=0,yS=new Set;function bS(e){KR=e;for(let o of yS)o()}function SS(e){IS=e,wm+=1,Qn&&clearTimeout(Qn),Qn=null,bS(void 0)}function Cm(e){wm+=1,bS(e)}function ga(e=250){IS&&(Qn&&clearTimeout(Qn),Qn=setTimeout(()=>{Qn=null;let o=IS;if(!o)return;let t=++wm;o().then(r=>{t===wm&&bS(r)}).catch(()=>{})},e))}function jR(){return KR}function FX(e){return yS.add(e),()=>{yS.delete(e)}}function vm(){return LX(FX,jR,jR)}var wS=new Set;function VR(e){return wS.add(e),()=>{wS.delete(e)}}async function YR(){let e=(await Promise.allSettled([...wS].map(async o=>o()))).find(o=>o.status==="rejected");if(e)throw e.reason}import{WebsiteBackendError as DX}from"efficient-easel/screen/lib/backend-error";function XR(e=BX()){return(o,t,r)=>{let a=je(e).theme;return a?a.update(o,r?{siteId:r}:void 0):Promise.reject(new DX("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 MX(e,o=XR()){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 qi({themeFromDocument:e,tokenRef:o,siteId:t,onResult:r}){let a=Tm(null),n=Tm({}),s=NX(),i=Tm(r);i.current=r;let l=Tm(null),d=CS(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=CS(async()=>{a.current&&(clearTimeout(a.current),a.current=null);let p=n.current;n.current={};let m=await MX({themeFromDocument:e,token:o?.current,siteId:t,patch:p},XR(s));return d(m),m.status==="saved"&&ga(),m.status==="failed"&&(n.current={...p,...n.current}),m},[e,o,t,d,s]),u=CS((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 qR(()=>()=>{f()},[f]),qR(()=>VR(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 vS="Follow the page",tL="Follow the slideshow",KX=e=>c("Editing {name} changes it everywhere.",{name:e});function VX({colors:e}){if(!e)return Po("span",{className:"sf-secttheme-chip sf-secttheme-chip--none","aria-hidden":"true"});let o=gt(e);return es("span",{className:"sf-secttheme-chip","aria-hidden":"true",children:[Po("i",{style:{background:o.background}}),Po("i",{className:"sf-secttheme-chip-accent",style:{background:o.accent}})]})}function YX({themes:e,value:o,onPick:t,onEdit:r,menuId:a,followLabel:n}){return es("div",{className:"sf-multi-menu sf-secttheme-menu",id:a,role:"listbox",children:[n!==void 0&&es(HX,{children:[es("button",{type:"button",role:"option","aria-selected":o===null,className:`sf-secttheme-item${o===null?" is-active":""}`,onClick:()=>t($r),children:[Po(VX,{}),Po("span",{className:"sf-secttheme-name",children:c(n)})]}),Po("div",{className:"sf-secttheme-sep",role:"presentation"})]}),o!==null&&e[o]&&Po("p",{className:"sf-secttheme-oncard",role:"presentation",children:c("{name} is on this section",{name:ad(o)})}),e.map((s,i)=>i===o?null:Po(Sm,{role:"option",index:i,colors:s,selected:!1,onPick:()=>t(i),onEdit:()=>r(i)},i))]})}function qX({index:e,colors:o,onChange:t,onDone:r}){let a=ad(e),n=oL();return es("div",{className:"sf-secttheme-sheet",children:[es("div",{className:"sf-secttheme-sheet-head",children:[Po("span",{children:a}),Po(UX,{variant:"secondary",className:"sf-secttheme-done",onClick:r,children:c("Done")})]}),Po("div",{className:"sf-secttheme-rows",children:Po(gS,{colors:o,onChange:t,idPrefix:n})}),Po("p",{className:"sf-secttheme-warn",children:KX(a)})]})}function rL({value:e,onChange:o,followLabel:t,hint:r}){let{theme:a,setTheme:n}=pe(),s=ko(a),i=WX(jX),l=i?.tokenRef,d=i?.siteId??null,f=!i?.capabilities?.hasSiteTheme,{persist:u,flush:p}=qi({themeFromDocument:f,tokenRef:l,siteId:d}),m=ko(s),h=m.themes,I=Ur(e),w=I!==null?h[I]:void 0,S=w??(h.length?ki(m):void 0),[C,b]=eL(!1),[y,v]=eL(null),L=QR(null),O=QR(null),N=oL(),k=JR(()=>{b(!1),v(null)},[]),F=JR(()=>{!C&&y===null||(p(),k())},[C,y,k,p]);zX(L,F);let T=P=>{o(P),k()},_=P=>{if(y===null)return;let A=h.map((G,Z)=>Z===y?P:G),W={...m,themes:A};n(W),u({selected_preset:W.selected,theme_presets:W.themes})};return es("div",{className:"sf-secttheme",ref:L,children:[Po(GX,{label:c("Theme"),icon:Po($X,{}),labelId:`${N}-label`,hint:r,children:Po(GR,{colors:S,onEdit:I!==null?()=>{v(I),b(!1)}:void 0,name:w?ad(I):c(t??vS),nameId:`${N}-value`,labelId:`${N}-label`,open:C,menuId:N,buttonRef:O,onClick:()=>{v(null),b(P=>!P)},onKeyDown:P=>{P.key==="Escape"&&(C||y!==null)&&(P.preventDefault(),k())}})}),C&&y===null&&Po("div",{onKeyDown:P=>{P.key==="Escape"&&(P.preventDefault(),k(),O.current?.focus())},children:Po(YX,{themes:h,value:I,onPick:T,onEdit:P=>{v(P),b(!1)},menuId:N,followLabel:t})}),y!==null&&h[y]&&Po(qX,{index:y,colors:h[y],onChange:_,onDone:()=>{p(),k(),O.current?.focus()}})]})}import{jsx as aL}from"react/jsx-runtime";import{useId as XX}from"react";import{FieldSelect as ZX}from"efficient-easel/fields";import{SettingsField as JX}from"efficient-easel/panel";function QX(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 JRe({label:e,options:o,fallback:t,value:r,onChange:a,placeholder:n,bare:s=!1,icon:i}){let l=XX(),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=aL(ZX,{id:f,value:p,options:QX(o),onChange:a,placeholder:h,searchPlaceholder:h,...s?{ariaLabel:m}:{ariaLabelledBy:`${d} ${f}`},searchable:!0,groupCount:!0,inline:!0});return s?I:aL(JX,{label:m,labelId:d,icon:i,children:I})}import{jsx as ts,jsxs as RZ}from"react/jsx-runtime";import{SettingsField as PL}from"efficient-easel/panel";import{LinkIcon as LZ}from"efficient-easel/icons";import{LinkPicker as FZ,TextLinkField as BZ}from"efficient-shell/ui";import{useEffect as kL,useMemo as Om,useRef as NZ,useState as _m}from"react";import{currentEaselSession as eZ}from"efficient-easel/screen/lib/session";function nL(){return eZ().auth.token}import{currentEaselSession as DZ}from"efficient-easel/screen/lib/session";import{useScreenDocument as MZ}from"efficient-easel/screen/components/ScreenDocumentContext";var oZ=()=>({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 sL(e,o,t){if(!e)return"page";if(zA(e))return"popup";if(e.startsWith("/journal/"))return"blog";if(KA(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 TS(e,o){let t=oZ(),r=e.pages.map(f=>({value:Zc(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:jA(...f.docs).map(u=>({value:em(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:GA(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:UA(u.slug),label:u.title||u.slug})),placeholder:t.choosePopup};case"custom":return{type:"text"}}},l=$A(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=>sL(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=>sL(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 HZ}from"efficient-easel/screen/lib/session-context";function Wo(e,o){if(typeof e=="string")return e||o;if(e&&typeof e=="object"&&"text"in e){let t=e.text;return Se(t)??o}return o}function iL(e,o){return V(e)??o}function Ia(e,o){return typeof e=="boolean"?e:o}function km(e,o){if(!Array.isArray(e))return o;let t=e.map(r=>typeof r=="string"?r:Wo(r?.text,"")).map(r=>r.trim()).filter(Boolean);return t.length?t:o}var cL=["delay","scroll","exit"],dL=["all","chosen","except"],fL=["visit","days","never","once"],tZ=["all","desktop","phone"],rZ=["stop","continue"],pL={min:0,max:60},uL={min:10,max:90},mL={min:1,max:90},gr={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 Xi(e,o,t){let r=iL(e,t);return Math.min(o.max,Math.max(o.min,Math.round(r)))}function aZ(e){return typeof e.hideAfter=="string"?At(fL,e.hideAfter,gr.hideAfter):e.oncePerSession===!0?"visit":e.oncePerSession===!1?"never":gr.hideAfter}function nZ(e){return Array.isArray(e)?e.map(o=>typeof o=="string"?o.trim():"").filter(Boolean).map(o=>o.startsWith("/")?o:`/${o}`):[]}function lL(e){if(typeof e!="string")return null;let o=e.trim();return/^\d{4}-\d{2}-\d{2}$/.test(o)?o:null}function hL(e){let o=e??{},t=gr;return{autoOpen:Ia(o.autoOpen,t.autoOpen),trigger:At(cL,o.trigger,t.trigger),autoOpenDelaySec:Xi(o.autoOpenDelaySec,pL,t.autoOpenDelaySec),scrollPercent:Xi(o.scrollPercent,uL,t.scrollPercent),showOn:At(dL,o.showOn,t.showOn),showOnPages:nZ(o.showOnPages),devices:At(tZ,o.devices,t.devices),hideAfter:aZ(o),hideDays:Xi(o.hideDays,mL,t.hideDays),afterSubmit:At(rZ,o.afterSubmit,t.afterSubmit),startDate:lL(o.startDate),endDate:lL(o.endDate)}}import{parseHexColor as sZ}from"efficient-shell/format";var Ir="#000000";var kS="popup",iZ=xO,lZ=["auto","full"],cZ=["inside","outside","none"],dZ={min:240,max:1440},fZ={min:0,max:100},nd={placement:"center",fullWidth:!1,width:720,height:"auto",tintColor:Ir,tintOpacity:60,outsideClick:!0,closeButton:"inside"};function pZ(e,o){let t=typeof e=="string"?e.trim():"";return t&&sZ(t)===t.toLowerCase()?t:o}function PS(e,o=nd){let t=e??{},r=o;return{placement:At(iZ,t.placement,r.placement),fullWidth:Ia(t.fullWidth,r.fullWidth),width:Xi(t.width,dZ,r.width),height:At(lZ,t.height,r.height),tintColor:pZ(t.tintColor,r.tintColor),tintOpacity:Xi(t.tintOpacity,fZ,r.tintOpacity),outsideClick:Ia(t.outsideClick,r.outsideClick),closeButton:At(cZ,t.closeButton,r.closeButton)}}var xL="cart-drawer",bLe="cart-drawer",uZ={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 SLe(e,o){return o===0?e.subtitleEmpty:o===1?e.subtitleOne:e.subtitleMany.replace("{count}",String(o))}function wLe(e){let o=e??{},t=uZ;return{kickerBadge:Wo(o.kickerBadge,t.kickerBadge),kickerText:Wo(o.kickerText,t.kickerText),titleLead:Wo(o.titleLead,t.titleLead),titleAccent:Wo(o.titleAccent,t.titleAccent),subtitleEmpty:Wo(o.subtitleEmpty,t.subtitleEmpty),subtitleOne:Wo(o.subtitleOne,t.subtitleOne),subtitleMany:Wo(o.subtitleMany,t.subtitleMany),leadTimeValue:Wo(o.leadTimeValue,t.leadTimeValue),shipsToFallback:Wo(o.shipsToFallback,t.shipsToFallback),promises:km(o.promises,t.promises),emptyKicker:Wo(o.emptyKicker,t.emptyKicker),emptyBody:Wo(o.emptyBody,t.emptyBody)}}var mZ=["right","left"],hZ={...nd,width:520,tintOpacity:68};function CLe(e){let o=e??{};return{...PS(o,hZ),placement:At(mZ,o.placement,"right"),height:"full",fullWidth:!1,autoOpen:Ia(o.autoOpen,!0)}}var IL="consent-banner",PLe="consent-banner";var xZ=[{value:"bar",label:"Bar"},{value:"card",label:"Card"}],ELe="Layout",gL={layout:"bar"},gZ=e=>xZ.some(o=>o.value===e);function _Le(e){let o=Wo((e??{}).layout,gL.layout);return{layout:gZ(o)?o:gL.layout}}var OLe={...nd,placement:"bottom-center",fullWidth:!0,width:440,tintOpacity:0,outsideClick:!1,closeButton:"none"};var IZ="consentWords",yZ=["eyebrow","notice","accept","reject","choose"];function ES(e){let o=(e??{})[IZ];return typeof o=="string"&&yZ.includes(o)?o:null}function _S(e){let o=e?.props;return o?ES(o)!==null?!0:Object.values(o).some(t=>Array.isArray(t)&&t.some(r=>r&&typeof r=="object"&&"props"in r&&_S(r))):!1}var bZ=["meta","eyebrow","heading","body","statName","statValue","formEyebrow","formHeading","formIntro","fieldLabel","option","finePrint","dismiss","doneHeading","doneBody"],LLe={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"},FLe={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 yL(e){let o={};for(let t of bZ){let r=ia(e[SZ[t]]);r&&(o[t]=r)}return o}var bL={heading:"Join our email list",placeholder:"Email address",buttonLabel:"Subscribe"},wZ={lead:"We accept"},Em={...wZ,methods:[],size:"sm",align:"start",dataSource:Ep},yr="site-footer";var DLe=yr,MLe={desktop:!0,tablet:!0,mobile:!0},HLe={desktop:!1,tablet:!1,mobile:!1},OS=1,SL=6,WLe=Array.from({length:SL-OS+1},(e,o)=>OS+o),Pm={desktop:6,tablet:3,mobile:2},CZ={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}},os=e=>Math.min(Math.max(Math.round(e),OS),SL);function $Le(e){if(typeof e=="number")return CZ[os(e)]??{desktop:os(e),tablet:os(e),mobile:os(e)};if(e&&typeof e=="object"){let o=e;return{desktop:os(o.desktop??Pm.desktop),tablet:os(o.tablet??Pm.tablet),mobile:os(o.mobile??Pm.mobile)}}return{...Pm}}var AS="subscribe-popup",qLe="subscribe-popup",vZ=[AS,yr,xL,IL];function CL(e){return vZ.includes(e)}var TZ=["right","left"],kZ={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:gr.autoOpen,autoOpenDelaySec:gr.autoOpenDelaySec,formSlug:"",trigger:gr.trigger,scrollPercent:gr.scrollPercent,showOn:gr.showOn,showOnPages:[],hideAfter:gr.hideAfter,hideDays:gr.hideDays,formSide:"right",valuePanelOnPhone:!1,sectionAccent:void 0,sectionCorners:void 0,sectionCornerSides:void 0,textStyles:{}},co=Wo,PZ=Ia,vL=km;function wL(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 EZ(e,o){return Array.isArray(e)?vL(e,[]):o}function _Z(e,o){return Array.isArray(e)?e.map(t=>{let r=t??{};return{label:co(r.label,""),value:co(r.value,"")}}).filter(t=>t.label||t.value):o}function ZLe(e){let o=e??{},t=kZ,r=hL(o);return{metaLabel:co(o.metaLabel,t.metaLabel),issueLabel:wL(o.issueLabel,t.issueLabel),issueNumber:wL(o.issueNumber,t.issueNumber),kicker:co(o.kicker,t.kicker),heading:co(o.heading,t.heading),deck:co(o.deck,t.deck),stats:_Z(o.stats,t.stats),formLabel:co(o.formLabel,t.formLabel),formHeading:co(o.formHeading,t.formHeading),formIntro:co(o.formIntro,t.formIntro),firstNameLabel:co(o.firstNameLabel,t.firstNameLabel),firstNamePlaceholder:co(o.firstNamePlaceholder,t.firstNamePlaceholder),emailLabel:co(o.emailLabel,t.emailLabel),emailPlaceholder:co(o.emailPlaceholder,t.emailPlaceholder),interestsLabel:co(o.interestsLabel,t.interestsLabel),interests:vL(o.interests,t.interests),frequencyLabel:co(o.frequencyLabel,t.frequencyLabel),frequencies:EZ(o.frequencies,t.frequencies),submitText:co(o.submitText,t.submitText),finePrint:co(o.finePrint,t.finePrint),dismissText:co(o.dismissText,t.dismissText),emailInvalidText:co(o.emailInvalidText,t.emailInvalidText),submitErrorText:co(o.submitErrorText,t.submitErrorText),successHeading:co(o.successHeading,t.successHeading),successBody:co(o.successBody,t.successBody),keepBrowsingText:co(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(TZ,o.formSide,t.formSide),valuePanelOnPhone:PZ(o.valuePanelOnPhone,t.valuePanelOnPhone),sectionAccent:o.sectionAccent,sectionCorners:o.sectionCorners,sectionCornerSides:o.sectionCornerSides,textStyles:yL(o)}}function OZ(e,o=Math.random){for(;;){let t=`popup-${Math.floor(o()*2176782336).toString(36).padStart(6,"0")}`;if(!e.has(t))return t}}function AZ(e){return{root:{props:{title:e,kind:kS}},content:[],zones:{}}}function TL(e,o,t){return{slug:OZ(o,t),title:e,kind:Lb,layout:AZ(e)}}function sd(e){return e?.root?.props?.kind===kS}function EL(e){let o=new Map;return(t="")=>{let r=nL(),a=o.get(t);if(!a||a.token===null&&r!==null){let n=r||!DZ().usesBridgedToken?e(r??"",t).catch(()=>[]):Promise.resolve([]);return o.set(t,{promise:n,token:r}),n}return a.promise}}var WZ=EL(async(e,o)=>{let t=o?{siteId:o}:void 0,{pages:r}=je();return r.linkTargets?r.linkTargets(t):(await r.list(t)).map(a=>({id:a.id,slug:a.slug,label:a.label,layout:null}))}),$Z=EL(async(e,o)=>await je().blog?.posts(o?{siteId:o}:void 0)??[]);function UZ({value:e,onChange:o,label:t="Link",data:r,filters:a}){let n=Om(()=>TS(r,a),[r,a]),s=c(t);return ts(PL,{label:s,icon:ts(LZ,{}),children:ts(FZ,{value:e,onChange:i=>o(i),kinds:n.kinds,rules:n.rules,filtersFor:n.filtersFor,label:s})})}function _L(){let{siteId:e,capabilities:o}=MZ(),{offersCommerce:t,hasBlog:r}=o,[a,n]=_m([]),[s,i]=_m([]),[l,d]=_m([]),[f,u]=_m(null),p=HZ().chrome,m=p?.products?.list,h=p?.linkFilters,I=h?void 0:p?.linkRow,w=NZ(!0);kL(()=>(w.current=!0,()=>{w.current=!1}),[]),kL(()=>{let b=!0;return WZ(e??void 0).then(y=>b&&w.current&&n(y)),r&&$Z(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=Om(()=>({pages:a.filter(b=>!CL(b.slug)&&!sd(b.layout)).map(b=>({slug:b.slug,title:b.label,docs:[b.layout]})),popups:a.filter(b=>b.slug===AS||sd(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=Om(()=>f?f(S.pages):null,[f,S]);return{data:S,filters:C,pages:a,offersCommerce:t,HostLinkRow:I}}function gFe({label:e,icon:o,text:t,onTextChange:r,link:a,onLinkChange:n}){let{data:s,filters:i}=_L(),l=Om(()=>TS(s,i),[s,i]),d=c(e);return ts(PL,{label:d,icon:o,children:ts(BZ,{label:d,text:t,onTextChange:r,link:a,onLinkChange:f=>n(f),kinds:l.kinds,rules:l.rules,filtersFor:l.filtersFor})})}function OL({value:e,onChange:o,label:t="Link"}){let r=typeof e=="string"?e:"",{data:a,filters:n,pages:s,offersCommerce:i,HostLinkRow:l}=_L(),d=a.pages.map(u=>Zc(u.slug)),f=i&&l&&(r==="/"||d.includes(r))?l:void 0;return RZ("div",{children:[ts(UZ,{value:r,onChange:o,label:t,data:a,filters:n}),f&&ts(f,{value:r,onChange:o,pages:s})]})}import{UiIcon as lB}from"efficient-easel/draw/client";import{VIEW_TIERS as JL,phoneKey as VL,resolveViewValue as oJ,tabletKey as YL,viewKeyAt as br}from"efficient-easel/draw";import{SECTION_PAD_UNIT_KEY as QL,SITE_SIDE as tJ,convertLength as rJ,isLengthUnit as aJ,isSiteSide as eF,sideLengthAt as nJ,sideValueAt as sJ,withLength as Nm}from"efficient-easel/screen/lib/content/length-units";import{convertLength as zZ,rowGrid as GZ}from"efficient-easel/screen/lib/content/length-units";var Ke={min:1e3,max:2e3,step:50,default:1600};function Zi(e){return{maxWidth:e,marginInline:"auto",width:"100%"}}var RS="--sf-site-width",Uo=`var(${RS},${Ke.default}px)`,id="100vw",SFe=`max-w-[${Uo}]`,wFe=`max-w-[${Ke.default}px]`;function FL(e){return typeof e!="number"||!Number.isFinite(e)?Ke.default:Math.round(Math.min(Math.max(e,Ke.min),Ke.max))}function BL(e,o){let t=Wn(e,o,"size",Ke);if(t!==null)return{[RS]:t};let r=FL(e);return r===Ke.default?{}:{[RS]:`${r}px`}}var $o={min:0,max:80,step:4,default:40,typedMax:Number.POSITIVE_INFINITY},LS="--sf-site-gutter",zt={min:0,max:24,step:4,typedMax:Number.POSITIVE_INFINITY},jZ=GZ({kind:"spacing"},"vw",$o).max;function NL(e,o){return e<=o?`${e}px`:`min(${e}px, ${jZ}vw)`}var AL="--sf-site-gutter-phone",KZ="max-view-tablet:[--sf-site-gutter:var(--sf-site-gutter-phone)]!",VZ="max-view-wide:[&_[data-sf-line~=edge]:not([data-sf-line~=edge]_*)]:[--sf-site-gutter:var(--sf-site-gutter-phone)]",Rt=`var(${LS},${$o.default}px)`,YZ=`px-[${Rt}]`;var Kr={md:`min(24px,${Rt})`,sm:`min(20px,${Rt})`,frame:`min(24px,${Rt})`,tabs:`min(16px,${Rt})`},CFe=[[`max-view-desktop:px-[${Kr.md}]`,"max-view-desktop:px-6"],[`max-view-desktop:px-[${Kr.tabs}]`,"max-view-desktop:px-4"],[`max-[960px]:px-[${Kr.frame}]`,"max-[960px]:px-6"],[`max-[900px]:px-[${Kr.md}]`,"max-[900px]:px-6"],[`max-view-wide:px-[${Kr.md}]`,"max-view-wide:px-6"],[`max-view-tablet:px-[${Kr.sm}]`,"max-view-tablet:px-5"],[`max-view-wide:px-[${Kr.sm}]`,"max-view-wide:px-5"],[`max-[640px]:px-[${Kr.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"],[YZ,"px-10"]];var DL="max-view-wide:px-[min(20px,var(--sf-site-gutter,40px))]";function en(e){return qZ[e??"box"]}var RL="var(--sf-pad-site,var(--sf-box-g,var(--sf-site-gutter,40px)))",LL="[--sf-edge-g:var(--sf-pad-site)]",qZ={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:RL,edge:LL,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:RL,edge:LL,frame:DL}},vFe=`mx-auto max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)] ${DL}`,ML="[--sf-box-g:var(--sf-site-gutter,40px)] [&>*]:[--sf-site-gutter:0px]";var HL="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 Am(e){return typeof e!="number"||!Number.isFinite(e)?$o.default:Math.round(Math.min(Math.max(e,$o.min),$o.typedMax))}function WL(e,o){let t=Wn(e,o,"spacing",$o);if(t!==null)return{[LS]:t};let r=Am(e);return r===$o.default?{}:{[LS]:NL(r,$o.max)}}function Rm(e){return typeof e!="number"||!Number.isFinite(e)?null:Math.round(Math.min(Math.max(e,zt.min),zt.typedMax))}function $L(e){return typeof e=="number"&&Number.isFinite(e)?FL(e):null}function UL(e,o){let t=Wn(e,o,"spacing",zt);if(t!==null)return{[AL]:t};let r=Rm(e);return r===null?{}:{[AL]:NL(r,zt.max)}}function zL(e){return Rm(e)===null?"":`${KZ} ${VZ}`}function Lm(e,o){let t=nu(e,o,"spacing",$o),r=t===null?Am(e):zZ(t,Ae(o),"px","mobile",zt);return Math.min(zt.max,r)}var GL=Uo,TFe=`max-w-[${GL}]`,kFe=`max-w-[min(var(--sf-page-cap,${Ke.default}px),${Ke.default}px)]`,Fm="--sf-hero-cap",XZ=`var(${Fm},none)`,PFe=`max-w-[${XZ}]`,ZZ="--sf-hero-bleed-m",JZ="--sf-hero-bleed-w",FS="--sf-hero-chrome-x",BS="--sf-hero-chrome-cap";function Bm(e){return e===!0?{[Fm]:GL,[ZZ]:"auto",[JZ]:"100%",[FS]:"24px",[BS]:"none"}:{}}var NS=`calc(${Uo} - ${Rt}*2)`,EFe=`max-w-[${NS.replace(/ /g,"_")}]`;var QZ="--sf-chrome-cap",eJ=`var(${QZ},${NS})`,jL="data-page-width";function KL(e){return e==="full"?"full":null}function _Fe(e){return e==="full"?null:Zi(e==="content"?NS:eJ)}function OFe(e){if(e==="full")return"full";if(e==="content")return"content"}var jt={min:10,max:200,step:10};function iJ(e,o,t,r=0){let a=V(e),n=V(o);if(a===void 0&&n===void 0)return;let s=ld(t),i=l=>l===void 0?void 0:s==="px"?l:Nm(l,s,r);return{paddingTop:i(a),paddingBottom:i(n)}}var ld=e=>Ae(e),lJ={top:"top",bottom:"bottom"};function cJ(e,o,t,r){let a=V(e),n=V(o);if(a===void 0&&n===void 0)return;let s=ld(t),i=(l,d)=>l===void 0?void 0:s==="px"?l:Nm(l,s,d);return{paddingTop:i(a,r("top","desktop")),paddingBottom:i(n,r("bottom","desktop"))}}var dJ="sf-pad-top-phone",fJ="sf-pad-bottom-phone",pJ="--sf-pad-t-phone",uJ="--sf-pad-b-phone",mJ="sf-pad-left-phone",hJ="sf-pad-right-phone",xJ="--sf-pad-l-phone",gJ="--sf-pad-r-phone",IJ="sf-pad-top-tablet",yJ="sf-pad-bottom-tablet",bJ="sf-pad-left-tablet",SJ="sf-pad-right-tablet",wJ="--sf-pad-t-tablet",CJ="--sf-pad-b-tablet",vJ="--sf-pad-l-tablet",TJ="--sf-pad-r-tablet",oF="sf-section-pad";function cd(e){let o={desktop:e.unit,tablet:e.unitTablet,phone:e.unitPhone},t=e.totals?.length?(n,s)=>e.totals.includes(br(n,s))?0:e.frame??0:e.frame,r=typeof t=="function"?cJ(e.top,e.bottom,e.unit,t):iJ(e.top,e.bottom,e.unit,e.frame),a=dd({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,t,e.sideSpace);return r===void 0&&!a.classes.length&&!Object.keys(a.style).length?null:{className:[oF,...a.classes].join(" "),style:{...r,...a.style}}}var kJ=e=>eF(e)?e:V(e),PJ=[["top","paddingTop",[IJ,wJ],[dJ,pJ]],["bottom","paddingBottom",[yJ,CJ],[fJ,uJ]],["left","paddingLeft",[bJ,vJ],[mJ,xJ]],["right","paddingRight",[SJ,TJ],[hJ,gJ]]];function qL(e,o,t){return!aJ(o)||o==="px"?e:rJ(e,"px",o,t,{min:0,max:jt.max,step:1})}function EJ(e,o,t,r={},a=0){let n={desktop:!0,tablet:o!==void 0,mobile:t!==void 0},s={desktop:["desktop"],tablet:["tablet","desktop"],mobile:["mobile","tablet","desktop"]},i=w=>typeof a=="object"?a[w]:a,l=(w,S,C)=>{if(S==="px")return`${w}px`;let b=s[C].find(v=>n[v])??"desktop",y=Nm(w,S,i(b));return typeof y=="number"?`${y}px`:y},d={n:e,[YL("n")]:o,[VL("n")]:t,u:r.desktop,[YL("u")]:r.tablet,[VL("u")]:r.phone},f=oJ("spacing",V(e),V(o),V(t),yi()),u=(w,S,C)=>{if(sJ(d,{side:"n"},w,"side",["side"])?.value===tJ)return en().value;let b=nJ(d,{side:"n"},"u",w,"side");if(!b)return;let y=S!==null&&!C&&b.unit==="px"&&typeof f[S]=="number";return l(y?f[S]:b.value,b.unit,w)},p=u("desktop",null,!0),m={},h=u("tablet","tablet",o!==void 0);h!==void 0&&(o!==void 0||h!==p)&&(m.tablet=h);let I=u("mobile","phone",t!==void 0);return I!==void 0&&(t!==void 0||I!==p)&&(m.phone=I),m}function dd(e,o,t={},r=e,a={},n=0,s="box"){let i={},l={},d=[],f=en(s),u=!1;for(let[p,m,...h]of PJ){let I=p==="left"||p==="right"?kJ:V,w=I(e[p]),S=$(lJ,p),C=S?typeof n=="function"?{desktop:n(S,"desktop"),tablet:n(S,"tablet"),mobile:n(S,"mobile")}:n:0,b=typeof C=="object"?C.desktop:C;eF(w)?(i[m]=f.value,u=!0):w!==void 0&&(i[m]=ld(a.desktop)==="px"?w:Nm(w,ld(a.desktop),b));let y=EJ(I(r[p]),I(t[p]),I(o[p]),a,C);for(let[v,[L,O]]of[["tablet",h[0]],["phone",h[1]]]){let N=y[v];N!==void 0&&(d.push(L),l[O]=N,N===f.value&&(u=!0))}}return u&&d.push(...f.className.split(" ")),{classes:d,style:{...i,...l}}}var Vr={top:"padTop",bottom:"padBottom",left:"padLeft",right:"padRight"},rs="padUnit";function fd(e,o){let t=e[rs],r=(a,n,s)=>{let i=V(a)??(s===void 0?void 0:qL(s,t,"desktop")),l=V(n);return l===void 0?i:(i??0)+qL(l,t,"desktop")};return{top:r(e.padTop,e.sectionPaddingTop,o.top),bottom:r(e.padBottom,e.sectionPaddingBottom,o.bottom)}}function tF(e,o,t={}){let r=fd(e,o),a={...MS(e,Vr,!0,rs),top:r.top,bottom:r.bottom};t.noTop&&Object.assign(a,{top:0,topTablet:void 0,topPhone:void 0});let n=cd(a),s=n?n.className.split(" ").filter(i=>i!==oF):[];return{...s.length?{className:s.join(" ")}:{},style:n?.style??{}}}var Gt={top:"sectionPaddingTop",bottom:"sectionPaddingBottom",left:"sectionPaddingLeft",right:"sectionPaddingRight"},DS=[...["top","bottom","left","right"].map(e=>[Vr[e],Gt[e]]),[rs,QL]].flatMap(([e,o])=>[[e,o],...["tablet","mobile"].map(t=>[br(e,t),br(o,t)])]);function MS(e,o=Gt,t=!0,r=o===Gt?QL:void 0){let a={};if(r){e[r]!==void 0&&(a.unit=e[r]);for(let s of["tablet","mobile"])e[br(r,s)]!==void 0&&(a[br("unit",s)]=e[br(r,s)])}for(let s of t?["top","bottom","left","right"]:["top","bottom"]){a[s]=e[o[s]];for(let i of["tablet","mobile"])a[br(s,i)]=e[br(o[s],i)]}let n=e[as];if(Array.isArray(n)){let s=rF.flatMap(i=>JL.filter(l=>n.includes(br(o[i],l))).map(l=>br(i,l)));s.length&&(a.totals=s)}return a}var as="padTotal",rF=["top","bottom"];function pd(e=Gt){return rF.flatMap(o=>JL.map(t=>br(e[o],t)))}var aF=16,nF=24,Ji={text:aF,heading:nF,line:0},_J={[aF]:"py-4",[nF]:"py-6",[Ji.line]:""};function HFe(e,o){return{className:_J[o]??"",...e?{pad:{values:e,frame:o}}:{}}}function sF(e,o){if(!o)return{root:ZL(e.values,e.frame),outer:null};if(!e.values.totals?.length)return{root:null,outer:XL(e.values)};let t=e.values,{top:r,bottom:a,topTablet:n,bottomTablet:s,topPhone:i,bottomPhone:l,left:d,right:f,leftTablet:u,rightTablet:p,leftPhone:m,rightPhone:h,...I}=t;return{root:ZL({...I,top:r,bottom:a,topTablet:n,bottomTablet:s,topPhone:i,bottomPhone:l},e.frame),outer:XL({...I,totals:void 0,left:d,right:f,leftTablet:u,rightTablet:p,leftPhone:m,rightPhone:h})}}function XL(e){return cd(e)}function ZL(e,o){let t=(r,a,n)=>typeof r!="number"?void 0:ld(a)==="px"&&!e.totals?.includes(n)?r+o:r;return cd({...e,frame:o,top:t(e.top,e.unit,"top"),bottom:t(e.bottom,e.unit,"bottom"),topTablet:t(e.topTablet,e.unitTablet,"topTablet"),bottomTablet:t(e.bottomTablet,e.unitTablet,"bottomTablet"),topPhone:t(e.topPhone,e.unitPhone,"topPhone"),bottomPhone:t(e.bottomPhone,e.unitPhone,"bottomPhone")})}import{BUTTON_PAD_KEYS as Dm,buttonBorderOf as OJ,buttonFillOpacityOf as AJ,buttonPadSidesOf as RJ,viewKeyAt as LJ}from"efficient-easel/draw";import{BUTTON_PAD_UNIT_KEY as HS,lengthOf as FJ}from"efficient-easel/screen/lib/content/length-units";var BJ="px-6 py-4",NJ=4,Mm=e=>{let o=new RegExp(`\\bp${e}-(?:\\[(\\d+)px\\]|(\\d+))`).exec(BJ);if(!o)throw new Error(`BUTTON_PAD_CLASSES has no p${e}`);return o[1]!==void 0?Number(o[1]):Number(o[2])*NJ},YFe={top:Mm("y"),right:Mm("x"),bottom:Mm("y"),left:Mm("x")},lF="var(--btn)";function DJ(e){let o=e.variant==="ghost",t=AJ(e.buttonFillOpacity),r=OJ(e.buttonBorder),a=Se(e.buttonColor);return{fillOpacity:t??(o?0:100),border:{width:r?.width??1,color:r?.color??a??(o?"currentColor":lF)},changed:t!==void 0||r!==void 0}}function qFe(e){let o=DJ(e);if(!o.changed)return null;let t=Se(e.buttonColor)??lF;return{background:o.fillOpacity===0?"transparent":o.fillOpacity===100?t:`color-mix(in srgb, ${t} ${o.fillOpacity}%, transparent)`,borderWidth:FJ(o.border.width,Ae(e.buttonBorderUnit)),borderStyle:"solid",borderColor:o.border.color}}var MJ="var(--sf-button-radius, 0)";function XFe(e){let o=V(e.buttonCorners),t=zr(e.buttonCornerSides);if(o===void 0&&t===null)return null;let r=o===void 0?MJ:He(Math.max(0,o),e.buttonCornersUnit);return{borderRadius:t===null?r:Kn(r,t)}}function ZFe(e){let o=(s,i)=>e[LJ(s,i)],t=s=>RJ({top:o(Dm.top,s),right:o(Dm.right,s),bottom:o(Dm.bottom,s),left:o(Dm.left,s)})??{},r={desktop:o(HS,"desktop"),tablet:o(HS,"tablet"),phone:o(HS,"mobile")},{classes:a,style:n}=dd(t("desktop"),t("mobile"),t("tablet"),void 0,r);return Object.keys(n).length?{className:a.join(" "),style:n}:null}var iF="upper";function cF(e,o,t){let r=e&&typeof e=="object"?e:{},a=Se(r.textStyle),n=a?Se(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=Se(r.case)??iF;return`${i} \xB7 ${l[d]??l[iF]}`}import{usePreviewParts as Nee}from"efficient-easel/draw/client";import{encodePartId as Dee}from"efficient-easel/draw";import{DEFAULT_EASEL_STRINGS as Mee,useEaselStrings as Hee}from"efficient-easel/strings";import{PIN_STICK_VAR as HJ,PIN_TRACK_POSITION_VAR as WJ,pinAttrs as dF,pinStickVars as $J,readPin as US}from"efficient-shell/format";var rBe="Stick to top",Kt={min:0,max:200,step:4,fallback:0},ud={kind:"position",unitKey:"stickTopDistanceUnit"},fF=Ti(ud),[UJ,zJ,GJ]=fF,zS="Pin while scrolling",pF="Scroll",Sr={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"},wr="stickTopScreens",GS=[wr,"stickTopScreensTablet","stickTopScreensPhone"],jS="Screens",ns="stickTopStop",on="screen",uF="Pin stops at",mF=[{value:"header",label:"Under the header"},{value:on,label:"Screen top"}],hF="header",xF="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 KS(e){return e===on?on:"header"}function gF(e){return e===on?on:void 0}var tn="stickAbove",IF="Stays above",yF="On: the pinned box stays on top, and the sections after it scroll under it.";function jJ(e){return e.stickAbove===!0}var bF=["stickTop","stickTopDistance","stickTopTablet","stickTopDistanceTablet","stickTopPhone","stickTopDistancePhone",...fF,...GS,ns,tn],VS=new Set(["IntroBleed"]),SF=new Set(["CategoryBar","DocTabs","Contents"]);function KJ(e){return typeof e.stickTop=="boolean"?e.stickTop:e.sticky!==!1}var WS=e=>US(!0,e).length,Qi={any:["stickTop","stickTopTablet","stickTopPhone"].map(e=>({field:e,is:!0}))},Hm={all:[{not:{field:"stickTop",in:[!0,!1]}},{not:{field:"sticky",is:!1}}]};function $S(e,o="px"){let t=V(e)??Kt.fallback;return o!=="px"?Math.max(Kt.min,t):Math.min(Kt.max,Math.max(Kt.min,Math.round(t)))}function YS(e){return typeof e.stickTopTablet=="boolean"}function qS(e){return typeof e.stickTopPhone=="boolean"}function el(e,o={}){let t=o.intro?KJ(e):e.stickTop===!0,r=e,a=Ae(r[UJ]),n=$S(e.stickTopDistance,a),s=WS(e.stickTopScreens),i=YS(e),l=i?e.stickTopTablet===!0:t,d=i?Ae(r[zJ]):a,f=i?$S(e.stickTopDistanceTablet,d):n,u=i?WS(e.stickTopScreensTablet):s,p=qS(e),m=p?e.stickTopPhone===!0:l,h=p?Ae(r[GJ]):d,I=p?$S(e.stickTopDistancePhone,h):f,w=p?WS(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 XS(e,o={}){let t=el(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&&jJ(e),s=o.track===!0&&!r&&a&&!n,i=(u,p,m,h)=>Zn({tabletClass:"",tabletVar:`${u}-tablet`,phoneClass:"",phoneVar:`${u}-phone`},p,m,h).style,l={...o.atScreenTop||KS(e.stickTopStop)===on?{[Sr.header]:"0px"}:{},[Sr.distance]:He(t.desktopDistance,t.desktopUnit),...i(Sr.distance,He(t.desktopDistance,t.desktopUnit),He(t.tabletDistance,t.tabletUnit),He(t.phoneDistance,t.phoneUnit))};if(s){let u=m=>m?"1":"0",p={...l,...t.desktop?{}:{[Sr.on]:"0"},...i(Sr.on,u(t.desktop),u(t.tablet),u(t.phone)),[Sr.length]:String(t.desktopScreens),...i(Sr.length,String(t.desktopScreens),String(t.tabletScreens),String(t.phoneScreens)),...VJ(t.desktop&&t.desktopScreens===0,t.tablet&&t.tabletScreens===0,t.phone&&t.phoneScreens===0,i)};return{attrs:dF(US(!0),"track").attrs,style:p}}let d=u=>u?"sticky":"static",f={...l,...t.desktop?{}:{[Sr.position]:"static"},...i(Sr.position,d(t.desktop),d(t.tablet),d(t.phone))};return{attrs:dF(US(!0),"stick",n?{above:n}:{}).attrs,style:f}}function VJ(e,o,t,r){let a=[[Sr.stick,HJ],[Sr.trackPosition,WJ]],[n,s,i]=[e,o,t].map($J);return Object.fromEntries(a.flatMap(([l,d])=>[...e?[[l,n[d]]]:[],...Object.entries(r(l,n[d],s[d],i[d]))]))}var YJ=["column","row","tabs","accordion"];var qJ={column:"Stacked",row:"One row",tabs:"Tabs",accordion:"Accordion"},wF={Flex:YJ,HeroGroup:["column","row"]},XJ={Flex:"row",HeroGroup:"column"},ZJ={column:"flex-col",row:"flex-row",tabs:"flex-col",accordion:"flex-col"};function Yr(e,o){return Q(wF[e],XJ[e],o)}function sBe(e,o){return ZJ[Yr(e,o)]}function CF(e){return wF[e].map(o=>({label:qJ[o],value:o}))}import{viewKeyAt as ZS}from"efficient-easel/screen/lib/content/view-tiers";var $m=20,JJ=["solid","dashed","dotted"],Um=["top","right","bottom","left"],zm="sf-section-border",TF="sf-section-border-self",QJ=/^#(?:[0-9a-f]{3}|[0-9a-f]{4}|[0-9a-f]{6}|[0-9a-f]{8})$/i,eQ=e=>typeof e=="number"&&Number.isFinite(e)?`${Math.min($m,Math.max(0,Math.round(e)))}px`:void 0,md={kind:"border",unitKey:"sectionBorderUnit"},kF=Ti(md);function PF(e){let o=md.unitKey;return{desktop:e[ZS(o,"desktop")],tablet:e[ZS(o,"tablet")],phone:e[ZS(o,"mobile")]}}var vF=(e,o)=>o==="px"?eQ(e):typeof e=="number"&&Number.isFinite(e)?He(Math.max(0,e),o):void 0;function Wm(e,{phone:o=!1,tablet:t=!1,unit:r}={}){if(!e||typeof e!="object")return;let a=o?"-phone":t?"-tablet":"",n={},s=Ae(r);for(let i of Um){let l=vF(e[i],s)??vF(e.width,s);l!==void 0&&(n[`--sf-border-${i}-width${a}`]=l)}return typeof e.style=="string"&&JJ.includes(e.style)&&(n[`--sf-border-style${a}`]=e.style),typeof e.color=="string"&&QJ.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(Um.map(r=>[r,t[r]??o]))}}function EF(e,o,t,r={}){let a=Wm(e,{unit:r.desktop}),n=Wm(t,{tablet:!0,unit:r.tablet}),s=Wm(t,{phone:!0,unit:r.tablet}),i=Wm(o,{phone:!0,unit:r.phone}),l=s||i?{...s,...i}:void 0;return a||n||l?{...a,...n,...l}:void 0}var Gm="sf.gapContainer",ya={min:-32,max:64,step:2},BF={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},ol={Grid:24,Flex:24,FooterGroup:16,HeroGroup:0,Events:24,GalleryB:8,ProductGrid:2},oQ=new Set(["Events","GalleryB"]);function ss(e,o,t){if(typeof o=="number"&&Number.isFinite(o)&&o>=ya.min)return o;if(typeof o=="string"){let r=BF[e]?.[o];if(typeof r=="number")return r}return typeof t=="number"&&Number.isFinite(t)?t:ol[e]}var tQ="sf-gap-overlap",rQ="--sf-gap-overlap",QS="--sf-block-gap",_F="--sf-block-gap-rem",Vt={min:0,max:ya.max,step:ya.step};function hd(e){if(typeof e!="number"||!Number.isFinite(e))return null;let o=Math.min(Math.max(Math.round(e),Vt.min),Vt.max);return o-o%Vt.step}function NF(e,o){let t=Wn(e,o,"gap",Vt);if(t!==null)return{[QS]:t,[_F]:t};let r=hd(e);return r===null?{}:{[QS]:`${r}px`,[_F]:`${r/16}rem`}}var OF="--sf-block-gap-phone",AF="--sf-block-gap-phone-rem",aQ="--sf-block-gap-on-phone",nQ="max-view-tablet:[--sf-block-gap-on-phone:var(--sf-block-gap-phone)]",sQ="max-view-wide:[&_[data-sf-line~=edge]:not([data-sf-line~=edge]_*)]:[--sf-block-gap-on-phone:var(--sf-block-gap-phone)]";function DF(e,o){let t=Wn(e,o,"gap",Vt);if(t!==null)return{[OF]:t,[AF]:t};let r=hd(e);return r===null?{}:{[OF]:`${r}px`,[AF]:`${r/16}rem`}}function MF(e){return hd(e)===null?"":`${nQ} ${sQ}`}var RF="sf-gap-zone",LF="--sf-gap-len";function jm(e,o){return typeof o=="number"&&Number.isFinite(o)&&o>=ya.min?!0:typeof o=="string"&&typeof BF[e]?.[o]=="number"}var FF="--sf-gap-len-phone",iQ="--sf-gap-len-tablet",xd={min:0,max:ya.max,step:ya.step};function rn(e){return typeof e=="number"&&Number.isFinite(e)&&e>=xd.min}function ew(e){return e/2}function ow(e,o,t){return rn(t)&&!jm(e,o)}function tw(e,o,t,r,a){return rn(o)?o:ow(e,t,a)?a:ew(ss(e,t,r))}var lQ={block:"sf-gap-overlap-block",inline:"sf-gap-overlap-inline",both:"sf-gap-overlap-both"};function pBe(e,o,t,r,a){let n={...rn(r)?{[FF]:`${r}px`}:null,...rn(a)?{[iQ]:`${a}px`}:null};if(!jm(e,o)){let i=`${ol[e]}px`,l=oQ.has(e)?`var(--sf-card-gap, ${i})`:i;return{className:` ${RF}`,style:{[LF]:`var(${QS}, ${l})`,[FF]:`var(${aQ})`,...n}}}let s=ss(e,o);return s>=0?{className:` ${RF}`,style:{[LF]:`${s}px`,...n}}:{className:` ${tQ} ${lQ[t]}`,style:{gap:"0px",[rQ]:`${-s/2}px`}}}import{parseHexColor as cQ}from"efficient-shell/format";var ot="var(--section-bg)",gd="inherit";function qr(e,o){return e===gd?ot:e===void 0?o:Km(e)}var dQ=/var\(\s*--(surface-2|surface|line)\s*(?=[,)])/g;function Km(e){let o=jr(e);return o?ma(o):e.replace(dQ,"var(--site-$1")}var fQ={"var(--section-bg)":"band","var(--site-surface)":"surface","var(--site-surface-2)":"surface2"};function rw(e,o,t){let r=qr(e,o);if(!r||r==="transparent")return t.background.toLowerCase();let a=r.trim(),n=a.startsWith("#")?cQ(a):null;if(n)return n.toLowerCase();let s=fQ[a.replace(/\s+/g,"")];return(s?t[s]:t.background).toLowerCase()}var aw="transparent";function HF(e,o){let t=qr(e,o);return!t||t===aw?"none":t===ot?"band":null}function WF(e,o,t=o){let r=n=>!n||n==="transparent",a=qr(e,o);return a===t||r(a)&&r(t)}var $F=["transparent","var(--wheel-stage)","var(--surface)","var(--surface-2)"],UF={transparent:"No fill","var(--wheel-stage)":"Image stage","var(--surface)":"Panels and cards","var(--surface-2)":"Second surface"},tl="var(--wheel-stage)",Vm="transparent",Id="inherit";function IBe(e,o){return Km(nw(e,o))}function nw(e,o){return e===Id?tl:e==null?o:e===!0?tl:e===!1?Vm:e}function yBe(e){return typeof e=="string"&&e!==Id?Km(e):tl}function bBe(e){return e!==Vm&&e!=="none"&&e!==""}function zF(e,o){return e===Id||e===!0?!0:e==null?o===tl:!1}var is="inherit",Ym="fixed",GF=e=>typeof e!="number"&&e!==Ym,pQ="var(--sf-heading-max, 9999px)";function CBe(e,o,t,r,a){if(typeof e=="number")return He(e,a);if(e===Ym)return o;let n=r?`var(--size-${r}, ${o})`:o;return t==="heading"?`min(${n}, ${pQ})`:n}var sw={kind:"fontSize",unitKey:"titleSizeUnit"},iw={kind:"fontSize",unitKey:"bodySizeUnit"},uQ=["desktop","mobile"],jF=[sw,iw].flatMap(e=>Ti(e,uQ));function lw(e){let o=(t,r)=>E0(e,t,r);return{titleDesktop:o(sw,"desktop"),titleMobile:o(sw,"mobile"),bodyDesktop:o(iw,"desktop"),bodyMobile:o(iw,"mobile")}}var mQ=["page","full"],KF=["full","page"],ls={full:"Full",page:"Content"},cw="inherit",hQ=e=>typeof e=="string"&&mQ.includes(e),xQ=e=>e===cw;function qm(e,o){return xQ(e.widthMode)?{mode:"full",inherited:!0}:hQ(e.widthMode)?{mode:e.widthMode,inherited:!1}:{mode:o,inherited:o==="full"}}function EBe(e){return qm(e,"page").mode==="full"}var al={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 Xm(e){return We(al,e)}var Be={background:"sectionBackgroundWidth",content:"sectionContentWidth",contentMax:"sectionContentMax",contentMaxUnit:"sectionContentMaxUnit"},dw={kind:"size",unitKey:Be.contentMaxUnit};function cs(e){let o=e[Be.contentMaxUnit],t=Ae(o),r=e[Be.contentMax],a=t==="px"?$L(r):typeof r=="number"&&Number.isFinite(r)&&r>0?r:null,n=rl(e[Be.content])??(a===null?null:"content");return{background:rl(e[Be.background]),content:n,contentMax:n==="content"?a:null,contentMaxUnit:t}}function VF(e){let o=cs(e);return o.content===null&&e.fullWidth===!0?{...o,content:"full"}:o}function YF(e){return e.background!==null||e.content!==null}var qF=e=>({[Be.background]:e}),XF=e=>e==="full"?{[Be.content]:e,[Be.contentMax]:void 0,[Be.contentMaxUnit]:void 0}:{[Be.content]:e},ZF=e=>({[Be.content]:"content",[Be.contentMax]:e}),fw=e=>e==="background"?{[Be.background]:void 0}:{[Be.content]:void 0,[Be.contentMax]:void 0,[Be.contentMaxUnit]:void 0},JF="siteWidths",gQ=e=>e==="full"||e==="content";function rl(e){return gQ(e)?e:null}function QF(e,o){return{[JF]:{background:rl(e),content:rl(o)}}}function Zm(e){let o=e.editor?.metadata?.[JF];return{background:rl(o?.background),content:rl(o?.content)}}import{useEaselSession as Wee}from"efficient-easel/screen/lib/session-context";import{BOX_GAP as $ee,describedAs as ln,group as qt,iconOf as ps,sharedStyleKinds as vd}from"efficient-easel/screen/lib/document/box-fields";import{VIEW_KEY_ACCESS as OB,onDesktopWords as us,phoneTwinFields as vw,saidAlignmentGrid as Uee,useLengthUnit as zee}from"efficient-easel/screen/lib/document/box-fields";import{createElement as Yt}from"react";import{SettingsDefaultReset as IQ,SettingsField as yQ}from"efficient-easel/panel";import{boxFieldBuilders as bQ,describedAs as SQ,iconOf as wQ,onDesktopWords as CQ}from"efficient-easel/screen/lib/document/box-fields";import{LENGTH_KIND_UNITS as vQ}from"efficient-easel/screen/lib/content/length-units";import{IconPicker as TQ,Tooltip as kQ,useShellStrings as PQ}from"efficient-shell/ui";import{RotateIcon as EQ}from"efficient-easel/icons";var Jm=e=>c(e),ba=vQ,Ro=bQ(Jm,{lengthUnits:ba}),Lo=Ro.slider,ft=Ro.select,yd=Ro.Segmented,nl=Ro.segmented,MBe=Ro.alignmentField,HBe=Ro.alignmentFields,WBe=Ro.blockAlignmentField,$Be=Ro.blockAlignmentFields,UBe=Ro.boxJustifyField,zBe=Ro.boxAlignField,GBe=Ro.boxWrapField,eB=Ro.directionField,Qm=Ro.gapField,jBe=Ro.placementField,KBe=Ro.PlacementGridView,VBe=Ro.positionFields,an=Ro.sidesPaddingFields,ds=Ro.lengthUnitFields;function oB(e,o){return Lo("Angle",Yt(EQ),Np.min,Np.max,Np.step,e,"\xB0",o)}var pw=Symbol("efficient-web-builder.picture-picker-row"),_Q={width:"3.5rem",height:"2.75rem",words:!0};function uw({value:e}){return PQ().iconNames[e]??e}function mw(e,o,t){return Yt(kQ,{content:t,className:"sf-pick-tip",children:Yt("span",{className:"sf-pick"},Yt("span",{className:"sf-pick-pic"},e),Yt("span",{className:"sf-pick-cap"},o))})}function OQ(e){let o=t=>t.label===void 0?Yt(uw,{value:t.value}):c(t.label);return e.map(t=>({value:t.value,...t.label===void 0?{}:{label:c(t.hint??t.label)},icon:mw(t.picture,o(t),t.hint===void 0?o(t):c(t.hint))}))}function tB(e,o){return Yt("span",{className:"sf-pick"},Yt("span",{className:"sf-pick-pic"},e),Yt("span",{className:"sf-pick-cap sf-pick-cap-closed"},o))}function hw(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",[pw]:!0,...SQ({},{type:"radio",label:e,options:i}),options:i,render:l=>{let{value:d,onChange:f,field:u}=l,p=u?.options,m=OQ(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 Yt(yQ,{label:c(e),icon:wQ(o),action:h?Yt(IQ,{words:de()?.panel,label:c(e),changed:C,detail:b?.label!==void 0?CQ(Jm,c(b.label),l.followsView):void 0,disabled:l.readOnly===!0,onReset:()=>f(void 0)}):void 0},Yt(TQ,{label:c(e),value:S,options:m,onChange:f,columns:a.columns,cell:a.cell??_Q,tooltips:!1,disabled:l.readOnly===!0}))}}}import{VIEW_ABOVE as Iw}from"efficient-easel/screen/lib/content/length-units";import{jsx as E,jsxs as we}from"react/jsx-runtime";import{NoSymbolIcon as HQ}from"efficient-easel/icons";import{useId as WQ}from"react";var AQ="line",RQ=[{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"}],xw={"stripes-fine":{ink:4,period:12},"stripes-medium":{ink:8,period:18},"stripes-bold":{ink:14,period:28}},XBe=28,LQ="-45deg",FQ="color-mix(in oklab, var(--accent) 50%, var(--bg))";function BQ(e){return e!=="line"&&e!=="none"}var NQ={sm:24,md:48,lg:80},DQ="md",MQ=Object.keys(NQ);function ZBe(e){return Q(MQ,DQ,e)}function JBe(e){return Q(RQ,AQ,e)}function QBe(e){if(!BQ(e))return null;let{ink:o,period:t}=xw[e];return`repeating-linear-gradient(${LQ}, ${FQ} 0 ${o}px, transparent ${o}px ${t}px)`}var eNe={kind:"border",unitKey:"thicknessUnit"},oNe={kind:"size",base:"%",unitKey:"lengthPctUnit"};var eh=44,oh=28;function ge({children:e}){return E("svg",{width:eh,height:oh,viewBox:`0 0 ${eh} ${oh}`,"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}),Ee=({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"}),zo=({x1:e,y1:o,x2:t,y2:r})=>E("line",{x1:e,y1:o,x2:t,y2:r});function gw(e){let o=20/Hi,t=5,r=1,a=[],n=0,s=0,i=0;for(let[f,u]of e)n+f>Hi&&(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=(oh-l)/2;return E(ge,{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 lNe={bars:we(ge,{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:we(ge,{children:[E("polyline",{points:"6,22 14,15 22,18 30,8 38,11",fill:"none",strokeWidth:1.75,strokeLinejoin:"round"}),E(zo,{x1:6,y1:25,x2:38,y2:25})]}),donut:we(ge,{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 cNe(e){if(e==="none")return E("span",{style:{display:"flex",width:eh,height:oh,alignItems:"center",justifyContent:"center"},children:E(HQ,{size:20})});if(e==="line")return E(ge,{children:E(zo,{x1:4,y1:14,x2:40,y2:14})});let{ink:o,period:t}=xw[e],r=.4,a=[];for(let n=-12;n<eh;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($Q,{children:a})}function $Q({children:e}){let o=`sf-div-${WQ().replace(/[^\w-]/g,"")}`;return we(ge,{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 th=({x:e,y:o,w:t,h:r})=>E("rect",{x:e,y:o,width:t,height:r,rx:2,stroke:"none",opacity:.3}),dNe={tabs:we(ge,{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(zo,{x1:4,y1:17,x2:40,y2:17}),E(M,{x:4,y:16,w:11,t:2})]}),largeTabs:we(ge,{children:[E(zo,{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(zo,{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(zo,{x1:4,y1:23,x2:40,y2:23})]})},fNe={card:we(ge,{children:[E(Ee,{x:10,y:3,w:24,h:22}),E(th,{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:we(ge,{children:[E(th,{x:10,y:3,w:24,h:22}),E(Ee,{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})]})},pNe={cards:we(ge,{children:[E(Ee,{x:3,y:5,w:11,h:18}),E(Ee,{x:17,y:5,w:11,h:18}),E(Ee,{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":we(ge,{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})]})},uNe={table:we(ge,{children:[E(Ee,{x:3,y:5,w:38,h:18}),E(zo,{x1:15.7,y1:5,x2:15.7,y2:23}),E(zo,{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:we(ge,{children:[E(zo,{x1:3,y1:7,x2:13,y2:7}),E(zo,{x1:17,y1:7,x2:27,y2:7}),E(zo,{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})]})},mNe={plain:we(ge,{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:we(ge,{children:[E(Ee,{x:3,y:7,w:11,h:14}),E(Ee,{x:17,y:7,w:11,h:14}),E(Ee,{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:we(ge,{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:we(ge,{children:[E(Ee,{x:3,y:9,w:18,h:10}),E(Ee,{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})]})},hNe={overlay:we(ge,{children:[E(th,{x:4,y:3,w:36,h:22}),E(Ee,{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:we(ge,{children:[E(M,{x:4,y:3,w:18,t:3}),E(M,{x:4,y:8,w:12}),E(th,{x:4,y:13,w:36,h:12}),E(Ee,{x:4,y:13,w:36,h:12})]})},xNe={split:we(ge,{children:[E(M,{x:4,y:6,w:12,t:3}),E(M,{x:4,y:11,w:9,faint:!0}),E(zo,{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:we(ge,{children:[E(zo,{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:we(ge,{children:[E(zo,{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:we(ge,{children:[E(zo,{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})]})},gNe={standard:we(ge,{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:we(ge,{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(zo,{x1:4,y1:22,x2:40,y2:22})]}),simple:we(ge,{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:we(ge,{children:[E(M,{x:4,y:6,w:36,t:7}),E(M,{x:4,y:16,w:24,t:7})]}),natural:we(ge,{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:we(ge,{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})]})},INe={"spec-card":we(ge,{children:[E(Ee,{x:4,y:3,w:36,h:22}),E(M,{x:8,y:7,w:14}),E(Ee,{x:8,y:12,w:8,h:9}),E(Ee,{x:18,y:12,w:8,h:9}),E(Ee,{x:28,y:12,w:8,h:9})]}),fitment:we(ge,{children:[E(Ee,{x:4,y:4,w:10,h:5}),E(Ee,{x:16,y:4,w:10,h:5}),E(Ee,{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:we(ge,{children:[E(Ee,{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:we(ge,{children:[E(Ee,{x:4,y:3,w:10,h:22}),E(Ee,{x:17,y:3,w:10,h:22}),E(Ee,{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:we(ge,{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:we(ge,{children:[E(Ee,{x:4,y:3,w:36,h:22}),E(zo,{x1:4,y1:8,x2:40,y2:8}),E(M,{x:8,y:11,w:28,t:5,faint:!0}),E(Ee,{x:8,y:18,w:8,h:4}),E(Ee,{x:18,y:18,w:8,h:4}),E(Ee,{x:28,y:18,w:8,h:4})]}),terminal:we(ge,{children:[E(Ee,{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})]})},rB={width:"5.75rem",height:"3.75rem",words:!0},yNe={width:"8.5rem",height:"3.75rem",words:!0},bNe={columns:we(ge,{children:[E(Ee,{x:3,y:4,w:11,h:8}),E(Ee,{x:17,y:4,w:11,h:8}),E(Ee,{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":we(ge,{children:[E(Ee,{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(Ee,{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":we(ge,{children:[E(Ee,{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(Ee,{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 xMe,SCALAR_TEXT_CONTROLS as gMe}from"efficient-easel/draw";function ms(e,o){return c("{value} from {from}",{value:e,from:o})}function Gee(){let{blockGap:e}=pe();return e===null?c("this container's own spacing"):ms(`${e}px`,c("Styles"))}function jee({inherited:e,onReset:o,label:t}){return R(tt,{words:de()?.panel,label:c(t),changed:!e,detail:Gee(),onReset:o})}function Kee(e){return Qm({...$ee,builtIn:ol[e],resolve:(o,t)=>ss(e,o,t?.siteGap),action:(o,t)=>R(jee,{inherited:!jm(e,o),onReset:()=>t(void 0),label:"Gap"}),mark:{[Gm]:e}})}function Vee(e){return lo(Go("mobile",{[Gm]:e,type:"custom",render:o=>R(Xee,{container:e,...o})}),AB)}function Yee(e){return lo(Go("tablet",{[Gm]:e,type:"custom",render:o=>R(qee,{container:e,...o})}),AB)}var AB={not:{field:"gap",in:Array.from({length:-ya.min},(e,o)=>ya.min+o)}};function lMe(e){return{gap:Go("desktop",Kee(e)),[_w("gap")]:Yee(e),[nn("gap")]:Vee(e)}}function qee({container:e,...o}){let[t]=Cr("gap"),{siteGap:r}=o.field??{},a=Math.max(xd.min,ss(e,t,r));return Qm({...xd,builtIn:a,resolve:n=>rn(n)?n:a,action:(n,s)=>R(tt,{words:de()?.panel,label:c("Gap"),changed:rn(n),detail:us(i=>c(i),`${a}px`),onReset:()=>s(void 0)})}).render(o)}function Xee({container:e,...o}){let[t]=Cr("gap"),{siteGap:r,siteGapPhone:a}=o.field??{},n=tw(e,void 0,t,r,a);return Qm({...xd,builtIn:n,resolve:s=>tw(e,s,t,r,a),action:(s,i)=>R(tt,{words:de()?.panel,label:c("Gap"),changed:rn(s),detail:ms(`${n}px`,ow(e,t,a)?c("Styles"):c("Desktop")),onReset:()=>i(void 0)})}).render(o)}function cMe(e){return eB({offered:CF(e),fallback:Yr(e,void 0),resolve:o=>Yr(e,o)})}function dMe(e,o){return gO(o?bO(e,o):[],o)}function Zee({inherited:e,onReset:o,label:t}){return R(tt,{words:de()?.panel,label:c(t),changed:!e,detail:ms(c("Full"),c("the page")),onReset:o})}function hs({value:e,onChange:o,label:t,placeholder:r,hint:a,multiline:n,hideable:s=!0,markup:i=!0}){let{text:l,hidden:d}=cn(e),f=bd(null),u=bd(null),p=C=>o(s?{text:C,hidden:d}:C),m=()=>o({text:l,hidden:!d}),h=s&&d,I=xB(),w=a?toe(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(Io,{label:c(t),icon:R(pee,{}),htmlFor:I,className:h?"is-hidden":void 0,hint:w,action:s?R(Ew,{content:S,children:R(EB,{"aria-pressed":d,"aria-label":S,onClick:m,children:d?R(lB,{name:"eye-off",size:14}):R(lB,{name:"eye",size:14})})}):void 0,children:Sa("div",{className:"sf-copybox",children:[i&&R(aS,{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 fMe(e,o){return{...e,[qQ]:o}}function pMe(e){let o=e[wa];if(!o)throw new Error("withOffPage: the field holds no authored text");return{...e,[wa]:{...o,offPage:!0}}}function dh(e){return!e||typeof e!="object"?!1:e[wa]?.offPage===!0}function uMe(e){if(!e[wa])throw new Error("withPanelOnly: the field holds no authored text");return{...e,[sS]:!0}}function RB(e){return Yi(e)}function mMe(e){let o=e[wa];if(!o)throw new Error("withIdentifier: the field holds no authored text");return{...e,[wa]:{...o,identifier:!0}}}function IMe(e,o){if(!e[wa])throw new Error("inOwnBox: the field holds no authored text");let{[Lee]:t,...r}=e;return{...r,[nS]:!0,render:o}}var Jee=new Set(Bee),lh={type:"radio",options:[{value:!0},{value:!1}]},LB={text:{type:"object",objectFields:{text:{type:"text"},hidden:lh}},textarea:{type:"object",objectFields:{text:{type:"textarea"},hidden:lh}},plainText:{type:"text"},copyText:{type:"text"},plainTextarea:{type:"textarea"},textList:{type:"array",arrayFields:{text:{type:"text"}}}},xs=(e,o)=>{let t=ln({...o,[wa]:e},{...LB[e.control],label:e.label});if(!Jee.has(e.control))return t;let r=o.render;return{..._B(t,"authored-copy"),render:a=>R(OR,{name:a.name,children:r(a)})}},yMe="Everything else on this block comes from the linked post. Unlink it to edit by hand.",Qee={field:"source.slug",set:!0},bMe={not:Qee},eoe="Select a word, then press the highlighter.",ooe=new Set([eoe]),toe=e=>ooe.has(e);function SMe(e,o,t){return xs({control:"text",label:e,placeholder:o,hint:t},{type:"custom",render:({value:r,onChange:a})=>R(hs,{value:r,onChange:a,label:e,placeholder:o,hint:t})})}function wMe(e,o,t){return xs({control:"textarea",label:e,placeholder:o,hint:t},{type:"custom",render:({value:r,onChange:a})=>R(hs,{value:r,onChange:a,label:e,placeholder:o,hint:t,multiline:!0})})}function CMe(e,o,t){return xs({control:"plainText",label:e,placeholder:o,hint:t},{type:"custom",render:({value:r,onChange:a})=>R(hs,{value:r,onChange:a,label:e,placeholder:o,hint:t,hideable:!1,markup:!1})})}function vMe(e,o,t){return xs({control:"copyText",label:e,placeholder:o,hint:t},{type:"custom",render:({value:r,onChange:a})=>R(hs,{value:r,onChange:a,label:e,placeholder:o,hint:t,hideable:!1})})}function TMe(e){return{type:"custom",[VQ]:{label:e},...ln({},{type:"text",label:e}),render:({value:o,onChange:t})=>R(OL,{value:KQ(o),onChange:t,label:e})}}function kMe(e,o,t){return xs({control:"plainTextarea",label:e,placeholder:o,hint:t},{type:"custom",render:({value:r,onChange:a})=>R(hs,{value:r,onChange:a,label:e,placeholder:o,hint:t,multiline:!0,hideable:!1})})}var FB={Design:XQ,Animation:JQ};function PMe(e,o){return{type:"custom",render:()=>R(roe,{text:e,values:o})}}function roe({text:e,values:o}){return R("p",{className:"sf-note",children:c(e,o)})}function BB(e){return vr(e)!==null&&e?.tabs!==void 0}var cB=new Map;function fh(e,o){let t=`${e}\0${o?o.join(""):""}`,r=cB.get(t)??{type:"custom",tabs:o,[gB]:{label:e,level:1},bucket:e,marker:!0,render:()=>R(Ca,{})};return cB.set(t,r),r}var dB=new Map;function Aw(e){let o=dB.get(e)??{type:"custom",[gB]:{label:e,level:1},designGroup:e,marker:!0,...e==="Content"?{}:{fold:e},render:()=>R(Ca,{})};return dB.set(e,o),o}function aoe(e){let o=e;return o?.marker===!0&&typeof o.fold=="string"?o.fold:null}function NB(e,o){return aoe(e)===o?e:{...e,marker:!0,fold:o,render:()=>R(Ca,{})}}function DB(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(Ca,{})}}function Rw({title:e,children:o}){let[t,r]=Sd(()=>!yw.has(e));return R(hee,{title:e,open:t,onToggle:a=>{r(a),a?yw.delete(e):yw.add(e)},children:o})}var yw=new Set;function noe({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 Sa("div",{className:"sf-swatches",children:[e.map(i=>{let l=r?.[i]?c(r[i]):i;return R(Ew,{content:l,children:R(vee,{color:i,selected:o.toLowerCase()===i.toLowerCase(),onClick:()=>t(i),"aria-label":l})},i)}),R("span",{className:"sf-swatch-hex",children:s})]})}function EMe(e,o,t=!1){return{type:"custom",render:({value:r,onChange:a})=>R(soe,{label:e,builtIn:o,followsBand:t,value:r,onChange:a})}}function soe({label:e,builtIn:o,followsBand:t,value:r,onChange:a}){let n=typeof r=="string"?r:void 0,{colors:s,n:i}=Dw(),l={background:s.background,surface:s.surface,surface2:su(s),band:U0(s)},d=t?ot:o,f=WF(n,o,d),u=rw(void 0,d,l),p=t?gd:void 0,m=d===ot?c("the theme's section background"):c("Theme {n} background",{n:i}),h=ioe(n,o,s,i,l,a),I=ms(u.toUpperCase(),m),w=jr(n),S=w?Ui(w,s,i):null;return S?R(yt,{label:c(e),icon:R(aB,{}),value:S.hex,caption:S.words,onChange:a,changed:!0,onReset:()=>a(p),resetTo:I,choices:h}):R(od,{label:c(e),icon:R(aB,{}),value:f?"":rw(n,o,l),inherited:u,resetTo:I,onChange:a,onReset:()=>a(p),choices:h})}function ioe(e,o,t,r,a,n){let s=HF(e,o);return[{label:c("No fill"),color:"",selected:s==="none",onPick:()=>n(aw)},{label:`${c("Section band")} \xB7 ${a.band.toUpperCase()}`,color:a.band,selected:s==="band",onPick:()=>n(ot)},...Nw(jr(e)??"",t,r,n)]}function loe(e,o){return{type:"custom",render:({value:t,onChange:r})=>{let a=t,n=zF(a,o);return R(Io,{label:c(e),icon:R(ww,{}),changed:!n,action:R(tt,{words:de()?.panel,label:c(e),changed:!n,detail:c("the theme's image stage"),onReset:()=>r(Id)}),children:noe({swatches:$F,current:n?tl:nw(a,o),onPick:r,names:UF})})}}}function sl(e=t=>t,o){return vd({_gSectionTheme:qt(dO),sectionAccent:{type:"custom",render:({value:t,onChange:r})=>R(rL,{value:e(t),onChange:r,followLabel:o})}})}function il(e){let o=So(),t=ua(e?.view),r=s=>Ow(e.valueKey,s),a=e.numbersIn??(s=>V(o[r(s)])!==void 0),n=e.followsView??Coe(t,a);return zee({props:{value:void 0,onChange:()=>{},field:{}},row:e.valueKey?e.row:void 0,table:ba,label:c(e.label),grid:e.grid,hasOwn:a(t),view:{tier:t,numbersIn:a,followsView:n},convertTo:e.convertTo??(s=>{let i=V(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(Aee,{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 coe(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(Io,{label:c(e),icon:d?ps(d):void 0,value:h?l||n===void 0?void 0:c(n):`${m}${f}`,changed:!h,action:l?Tw(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 wd="Corners",doe={kind:"radius"};function Lw(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(Io,{label:c(wd),icon:R(yB,{}),changed:n,action:Tw(e.mark,{changed:n,onReset:()=>r(null)}),hint:e.hint,children:R(foe,{tier:e,px:a,name:o.name,onRadius:r})})}}}function Cr(e){let o=fs();return[o?.values?.[e],t=>o?.onChange(e,t)]}function Td(){return _B({type:"custom",render:()=>R(Fee,{})},"always")}function xr(){let e=fs();return o=>e?.onChangeMany(o)}function foe({tier:e,px:o,name:t,onRadius:r}){let a=e.useFollowed(),[n,s]=Cr(e.sidesKey),i=xr(),l=il({row:e.row??doe,label:wd,grid:{min:it,max:Ua,step:e.step??1},valueKey:t??"",view:"desktop"}),d=zr(n)??[...Uu];return R(Tee,{label:c(wd),value:d,corners:Y1,onChange:f=>{let u=zr(f)??[];s(u.length===Uu.length?null:u)},radius:o,onRadiusChange:l&&t?f=>i({[t]:f,...l.unitPatch(f===null)}):r,radiusMin:l?.grid.min??it,radiusMax:l?.grid.max??Ua,radiusStep:l?.grid.step??e.step??1,radiusPlaceholder:l&&l.unit!=="px"?"\u2013":String(a),...l?{radiusUnit:l.unit,units:l.units}:{}})}function MB(e,o){return ds(e,o)}function HB(){return Td()}function poe({label:e,changed:o=!1,onReset:t=()=>{}}){let{cornerRadiusPx:r}=pe(),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"):ms(a,c("Styles")),onReset:t})}function uoe(){let{cornerRadiusPx:e}=pe();return typeof e=="number"?e:it}function moe(){return Lw({sidesKey:"sectionCornerSides",row:jc,useFollowed:uoe,mark:R(poe,{label:wd}),hint:hoe})}var hoe="Follows Styles \u25B8 Basics \u25B8 Corners until you set a number here.";function ll(){return vd({_gShape:qt("Shape"),sectionCorners:moe(),...MB(jc,"sectionCorners"),sectionCornerSides:HB(),...xa("sectionBorder",woe),...ds(md,"sectionBorder",{tablet:!0,phone:!0})})}var xoe=()=>({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 goe(e){let o=Object.fromEntries(Object.entries(e).filter(([,t])=>t!=null&&t!==""));return Object.keys(o).length?o:void 0}function Ioe(){let e;try{let o=ko(pe().theme);e=o.themes[o.selected]?.line}catch{e=void 0}return e||R0.line}function yoe({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]=Sd(()=>a?bee(l,s):!1),u=xoe(),p=m=>goe(a&&n?m:{width:m.width,color:m.color,...n?{style:m.style}:{}});return R(Io,{label:c("Border"),icon:R(QQ,{}),action:a?R(Iee,{each:d,label:c("Each side"),onChange:f}):void 0,children:R(gee,{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??$m,...i?{step:i.grid.step,units:i.units}:{}})})}function boe({value:e,onChange:o,view:t}){let[r]=Cr("sectionBorder"),[a]=Cr(_w("sectionBorder")),n=Ioe(),s=p=>p&&typeof p=="object"?p:{},i=t==="phone"?{...JS(s(r)),...JS(s(a))}:t==="tablet"?s(r):{},l=So(),d=xr(),f=Pe("sectionBorder",t),u=il({row:md,label:"Border",grid:{min:0,max:$m,step:1},valueKey:"sectionBorder",view:t,numbersIn:p=>bw(l[Ow("sectionBorder",p)]),convertTo:p=>{let m=s(l[f]);return bw(m)?{[f]:Soe(m,p)}:{}}});return R(yoe,{value:e,length:u,onChange:u?p=>d({[f]:p,...u.unitPatch(!bw(p))}):o,placeholder:{sides:yee(i),style:i.style??"solid",color:i.color||n},presets:[n],above:i})}var WB=["width",...Um];function bw(e){if(!e||typeof e!="object")return!1;let o=e;return WB.some(t=>V(o[t])!==void 0)}function Soe(e,o){let t={...e};for(let r of WB){let a=V(t[r]);a!==void 0&&(t[r]=o(a))}return t}function woe(e){return{type:"custom",render:({value:o,onChange:t})=>R(boe,{value:o,onChange:t,view:e})}}function Coe(e,o){let t=Iw[e];for(;t&&Iw[t]!==null&&!o(t);)t=Iw[t];return t??e}function _Me(e){return{type:"custom",render:()=>R(voe,{partKey:e})}}function voe({partKey:e}){let[o]=Cr("id"),[t]=Cr("_partStyles"),{textStyles:r}=pe(),a=Hee(),n=null;try{n=Nee().select}catch{n=null}let s=t&&typeof t=="object"?t[e]:void 0,i=Array.isArray(r)?r:null;return R(mee,{name:c("Text"),preview:cF(s,i,{noStyle:c("No style"),styleName:a.textStyles.styleName,cases:(a.copy.panel??Mee.copy.panel).cases}),onOpen:()=>{n&&typeof o=="string"&&n(Dee(o,e))}})}function $B(e){let{cornerRadiusPx:o}=pe(),t=typeof o=="number"?o:e,r=null;try{let{appState:n,selectedItem:s}=ch(l=>l),i=s?.props?.id?String(s.props.id):void 0;r=i?fR(n?.data,i)?.props??null:null}catch{r=null}if(!r)return t;let a=r.sectionCorners;return wb(a)?a:t}function Toe({label:e,changed:o=!1,onReset:t=()=>{}}){let r=$B(it);return R(tt,{words:de()?.panel,label:c(e),changed:o,detail:ms(`${r}px`,c("the section")),onReset:t})}function koe(){return R(Ca,{children:c("Follows the section's Corners until you set a number here.")})}function Poe(){return Lw({sidesKey:"cardCornerSides",row:Kc,useFollowed:()=>$B(it),mark:R(Toe,{label:wd}),hint:R(koe,{})})}function Eoe(){return{type:"custom",render:()=>R(tA,{})}}function UB(){return{_gShape:qt("Shape"),cardCorners:Poe(),...MB(Kc,"cardCorners"),cardCornerSides:HB(),cardCornersApplyAll:Eoe()}}function _oe(){return ln({type:"custom",[pw]:!0,render:e=>R(Aoe,{...e})},{type:"select",label:Nn,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 Ooe(e,o){let t=ky(e);if(t!=="custom")return c(Ty.find(a=>a.value===t)?.label??"");let r=PB(zp(e,o),o);return r?[...r,100-r.reduce((a,n)=>a+n,0)].join(" / "):c("Custom")}function Aoe(e){let{value:o,onChange:t}=e,[r]=Cr("content"),a=Array.isArray(r)?r.length:0,n="follows"in e,s=o!=null,i=s?o:n?e.follows:void 0,l=ky(i),d=a>=2&&a<=sB,f=()=>[...Eee[a]??[]],u=bd(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:sB}),I=s&&(n||o!=="content"),w=Oee().widths.hint(a,Pee);return R(Io,{label:c(Nn),icon:R(sh,{}),changed:I,hint:l!=="custom"?void 0:d?w:h,action:R(tt,{words:de()?.panel,label:c(Nn),changed:I,disabled:e.readOnly===!0,detail:n?us(S=>c(S),Ooe(e.follows,a),e.followsView):c("Fit content"),onReset:()=>t(void 0)}),children:Sa("div",{className:"sf-share-row",children:[R("div",{className:"sf-share-pick",children:R(kB,{label:c(Nn),value:l,options:Ty.map(S=>({value:S.value,label:S.value==="custom"&&!d?h:c(S.label),icon:mw(R("span",{className:"sf-gallery-pic sf-share-pic",children:zB(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:GB,tooltips:!1,disabled:e.readOnly===!0})}),l==="custom"&&d?R("div",{onFocus:()=>{u.current={value:o,shares:PB(zp(i,a),a)}},onBlur:()=>{u.current=null},children:R(_ee,{label:c(Nn),count:a,value:zp(i,a),onChange:p,readOnly:e.readOnly===!0})}):null]})})}function zB(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 OMe(){return ft(o0,R(see,{}),Ay,Ay[0].value)}function AMe(){return Go("mobile",hw(Nn,R(sh,{}),X_.map(e=>({label:e.label,value:e.value,picture:R("span",{className:"sf-gallery-pic sf-share-pic",children:zB(e.weights).map((o,t)=>R("i",{style:{gridColumn:`span ${o}`}},t))})})),Z_,{columns:2,cell:GB}))}var GB={width:"5.75rem",height:"3.25rem",words:!0};function RMe(){return vw("share",_oe(),OB)[_w("share")]}function Roe(){return Go("mobile",Lo(Ey,R(IB,{}),Gp,q_,1,Gp,"",{clear:{phoneFollows:!1,hint:Gp}}))}var fB={read:e=>e.phoneRow,write:(e,o,t)=>({phoneRow:t}),fieldKey:()=>"phoneRow",ownField:!0};function LMe(){let e=Lo(Ey,R(IB,{}),_y,J_,1,_y,"",{clear:{emptyLabel:"Auto"}}),o=vw("columns",e,{...fB,tablet:OB.tablet}),t=vw("columns",e,fB,{phoneRow:Roe()});return{...o,phoneRow:t.phoneRow}}function FMe(e,o,t,r,a,n,s){return{type:"custom",render:({value:i,onChange:l,name:d})=>R(Loe,{label:e,min:o,max:t,step:r,fallback:a,role:n,value:i,onChange:l,name:d??"",length:s})}}function Loe({label:e,min:o,max:t,step:r,fallback:a,role:n,value:s,onChange:i,name:l,length:d}){let f=So(),u=xr(),p=ua(d?.view),m=il({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(Io,{label:c(e),icon:R(Gb,{noun:n}),action:R(tt,{words:de()?.panel,label:c(e),changed:!GF(s),detail:c("the Text style in Styles"),onReset:()=>h(is),defaultAction:{onPress:()=>h(Ym),title:c("Keep this section's own built-in size"),icon:R(eee,{})}}),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 ah(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 jB(){return{_gCellWidth:qt("Cell size"),gridSpan:Go("desktop",ft("Positions",R(sh,{}),ah(qu,"position","positions"),"")),gridRowSpan:Go("desktop",ft("Rows tall",R(ih,{}),ah(Zu,"row","rows"),"")),[$i]:Lo("At card",R(SB,{}),1,$b,1,1,""),[nn("gridSpan")]:Go("mobile",ft("Positions",R(sh,{}),[{label:"Full row",value:""},...ah(Xu,"position","positions").slice(1)],"")),[nn("gridRowSpan")]:Go("mobile",ft("Rows tall",R(ih,{}),ah(Zu,"row","rows"),""))}}function So(){let e=null,o=null;try{e=hB(Fw),o=ch(t=>t).selectedItem}catch{o=null}return e??o?.props??{}}var Fw=zQ(null);function Foe({min:e,max:o,step:t,px:r,label:a,onChange:n,desktopKey:s,fallback:i}){let l=So()[s],d=mm(void 0,l,i);return R(Ca,{children:St({min:e,max:o,step:t,value:mm(r,l,i),readout:!1,ariaLabel:a,notch:d,onChange:n})})}function Boe({label:e,desktopKey:o,fallback:t,unit:r="px",changed:a=!1,onReset:n=()=>{}}){let s=So()[o],i=mm(void 0,s,t);return R(tt,{words:de()?.panel,label:c(e),changed:a,detail:us(l=>c(l),`${i}${r}`),onReset:n})}function Noe(e){return coe(e.label,{icon:e.icon,min:e.min,max:e.max,step:e.step,unit:e.unit,unsetLabel:"Follows Desktop",unsetMark:R(Boe,{label:e.label,desktopKey:e.desktopKey,fallback:e.fallback,unit:e.unit}),restTrack:o=>R(Foe,{...o,desktopKey:e.desktopKey,fallback:e.fallback})})}var Doe={Top:"Padding top",Bottom:"Padding bottom",Left:"Padding left",Right:"Padding right"},Moe={Top:kw,Bottom:wB,Left:CB,Right:vB},Hoe=e=>{let o=Moe[e];return R(o,{})};function KB(e={}){let o=e.keys?.top??"sectionPaddingTop",t=e.keys?.bottom??"sectionPaddingBottom",r=e.group!==!1,a=w=>Doe[w],n=w=>Lo(a("Top"),R(kw,{}),jt.min,jt.max,jt.step,w,"px"),s=(w,S,C,b=jt)=>Go("mobile",Noe({label:a(w),icon:Hoe(w),desktopKey:S,min:b.min,max:b.max,step:b.step,fallback:C})),i=e.top??jt.min,l=e.bottom??jt.min,d="sectionPaddingLeft",f="sectionPaddingRight",u=e.sideBounds??jt,p=e.side??u.min,m=e.sidePhone??p,h=e.phone===!0,I=w=>h?Go("desktop",w):w;return vd({...r?{_gSpacing:qt("Padding")}:{},[o]:I(n(i)),...h?{[nn(o)]:s("Top",o,i)}:{},...e.only==="top"?{}:{[t]:I(Lo(a("Bottom"),R(wB,{}),jt.min,jt.max,jt.step,l,"px")),...h?{[nn(t)]:s("Bottom",t,l)}:{}},...e.sides?{[d]:I(Lo(a("Left"),R(CB,{}),u.min,u.max,u.step,p,"px")),...h?{[nn(d)]:s("Left",d,m,u)}:{},[f]:I(Lo(a("Right"),R(vB,{}),u.min,u.max,u.step,p,"px")),...h?{[nn(f)]:s("Right",f,m,u)}:{}}:{}})}function BMe(e,o){let t=Object.fromEntries(Object.entries(o).map(([n,s])=>[n,n in e&&vr(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 sn="Width";function cl(e,o=KF,t=!0){let r=o.map(a=>({label:ls[a],value:a}));return vd({...t?{_gWidth:qt(sn)}:{},widthMode:{type:"custom",render:({onChange:a,field:n})=>R(Io,{label:c(sn),icon:R(uee,{}),action:t?R(Zee,{inherited:n?.inherited??!1,onReset:()=>a(cw),label:sn}):void 0,children:yd({options:r,value:n?.currentValue||e,onChange:a,ariaLabel:sn})})}})}function dl({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=()=>Cw("sectionHeightMode"),r=()=>Cw("sectionHeightMode");return vd({_gHeight:qt(Fi),...xa("sectionHeightMode",a=>a==="desktop"?o(a):o(a,n=>R(Goe,{view:a,onClear:()=>n(void 0)}))),...xa("sectionHeightValue",t),...xa("sectionHeightUnit",r)})}function Woe({value:e,onChange:o,view:t,badge:r,fill:a=!1}){let n=So(),{mode:s,number:i,unit:l}=$oe(t,n,e);return R(Io,{label:Fi,icon:ps(R(ih,{})),action:r?r(o):void 0,children:Sa("div",{className:"es-width-stack",children:[yd({options:[{label:"Auto",value:"auto"},{label:"Fixed",value:"fixed"},{label:"Screen",value:"screen"},...a?[{label:"Fill",value:"fill"}]:[]],value:s,onChange:o,ariaLabel:Fi}),i?R(zoe,{view:t,mode:s,menu:l}):null]})})}function VB(e,o){return e==="phone"&&Iu(o)?BO(o):RO(o)}function ph(e,o){return e==="desktop"||(e==="tablet"?Iu(o):FO(o))?null:VB(e,o)}function $oe(e,o,t){let r=(a=>EO.includes(a))(t)?t:ph(e,o)?.mode??"auto";return{mode:r,number:r!=="auto"&&r!=="fill",unit:r==="fixed"}}function Uoe(e,o,t,r){let a=ph(e,o);return!a||e==="desktop"?null:r===void 0?{}:{[Pe("sectionHeightMode",e)]:a.mode,...a.mode==="fixed"?{[Pe("sectionHeightUnit",e)]:a.unit}:{},...t==="sectionHeightUnit"?{[Pe("sectionHeightValue",e)]:a.value}:{},[Pe(t,e)]:r}}function pB(e,o,t){let r=fs(),a=ph(e,So());return!r||!a?{followed:null,write:t}:{followed:a,write:n=>r.onChangeMany(s=>{let i=Uoe(e,s,o,n);return i===null?{[Pe(o,e)]:n}:Object.keys(i).length?i:null})}}function zoe({view:e,mode:o,menu:t}){let r=fs(),a=So(),n=Pe("sectionHeightValue",e),s=Pe("sectionHeightUnit",e),i=w=>S=>r?.onChangeMany(()=>({[w]:S})),{followed:l,write:d}=pB(e,"sectionHeightValue",i(n)),{write:f}=pB(e,"sectionHeightUnit",i(s)),u=o==="screen"?"%":a[s],p=Q(_O,"px",l?l.unit:u),m=p==="%"?AO:OO,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:Fi,onChange:d})}function Goe({view:e,onClear:o}){let t=So(),r=ph(e,t)===null,a=e==="phone"&&Iu(t),n=VB(e,t),s=us(i=>c(i),n.mode==="auto"?c("Auto"):`${n.value}${n.unit}`,a?"tablet":"desktop");return R(tt,{words:de()?.panel,label:c(Fi),changed:r,detail:s,onReset:o})}function kd(e={}){let o=e.intro===!0,t=n=>({type:"custom",render:({value:s,onChange:i,id:l,name:d})=>R(Zoe,{value:s,onChange:i,labelId:`${l??d??"stickTop"}-label`,view:n,intro:o})}),r=n=>({type:"custom",render:({value:s,onChange:i})=>R(Yoe,{value:s,onChange:i,view:n,intro:o})}),a=n=>({type:"custom",render:({value:s,onChange:i})=>R(qoe,{value:s,onChange:i,view:n,intro:o})});return{_gStick:qt(pF,{dot:o?Voe:Qi}),...xa("stickTop",t),...xa("stickTopDistance",r),...ds(ud,"stickTopDistance",{tablet:!0,phone:!0}),...e.screens?xa(wr,a):{},...o?{}:{[ns]:joe()},...o||e.above===!1?{}:{[tn]:Koe()}}}function joe(){let e=ft(uF,R(kw,{}),mF,hF);return Go("desktop",{...e,render:o=>{let t=e.render({...o,value:KS(o.value),onChange:r=>o.onChange(gF(r))});return Tw(t,{hint:c(xF)})}})}function Koe(){let e=XB(IF,!1,R(TB,{}),yF);return Go("desktop",{...e,render:o=>e.render({...o,onChange:t=>o.onChange(t===!0?!0:void 0)})})}var Voe={any:[Qi,Hm]};function YB(e,o,t,r,a){let n=fs(),s=So(),i=e==="desktop"||Cd(e,s)?null:Bw(e,el(s,{intro:r}));return{followed:i,write:(i||a)&&n?l=>n.onChangeMany(d=>{let f=Xoe(e,d,l,o,r),u=f===null?{[Pe(o,e)]:l}:f;return Object.keys(u).length?{...u,...a?.(l)??{}}:null}):t}}function Yoe({value:e,onChange:o,view:t,intro:r}){let a=So(),n=el(a,{intro:r}),s=f=>{let u=Ai(f);return u==="desktop"||Cd(u,a)},i=il({row:ud,label:"Distance from top",grid:{min:Kt.min,max:Kt.max,step:Kt.step},valueKey:"stickTopDistance",view:t,numbersIn:f=>s(f)&&V(a[Ow("stickTopDistance",f)])!==void 0,followsView:t==="phone"&&n.ownTablet?"tablet":"desktop"}),{followed:l,write:d}=YB(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??Kt.min,max:i?.grid.max??Kt.max,step:i?.grid.step??Kt.step,value:l?null:typeof e=="number"?e:Kt.fallback,...l?{placeholder:l.distance}:{},...i?{suffix:i.unit,units:i.units}:{suffix:"px"},ariaLabel:c("Distance from top"),onChange:d})})}function qoe({value:e,onChange:o,view:t,intro:r}){let{followed:a,write:n}=YB(t,wr,o,r);return R(Io,{label:c(jS),icon:ps(R(ih,{})),children:St({min:rh.min,max:rh.max,step:rh.step,value:a?null:V(e)??rh.default,...a?{placeholder:a.screens}:{},ariaLabel:c(jS),onChange:n})})}function Cd(e,o){return e==="tablet"?YS(o):qS(o)}function Bw(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 Xoe(e,o,t,r="stickTopDistance",a=!1){if(e==="desktop"||Cd(e,o))return null;if(t===void 0)return{};let n=Bw(e,el(o,{intro:a})),s=e==="phone"&&Cd("tablet",o)?f=>Pe(f,"tablet"):f=>f,i=(f,u)=>o[s(f)]==null?{}:{[Pe(f,e)]:u},l=ud.unitKey,d=o[s(l)]==null?{}:{[Pe(l,e)]:n.unit};return{[Pe("stickTop",e)]:!0,...i("stickTopDistance",n.distance),...d,...i(wr,n.screens),[Pe(r,e)]:t}}function Zoe({value:e,onChange:o,labelId:t,view:r,intro:a}){let n=So(),s=el(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:Bw(r,s),f=d?.on?He(d.distance,d.unit):c("Off");return R(Io,{label:c(zS),labelId:t,icon:ps(R(TB,{})),action:Sa(Ca,{children:[r!=="desktop"?R(tt,{words:de()?.panel,label:c(zS),changed:Cd(r,n),detail:us(u=>c(u),f,l?"tablet":"desktop"),onReset:()=>o(void 0)}):null,R(Pw,{checked:i,onChange:o,ariaLabelledBy:t})]})})}var uB="e.g. about";function fl(){return{_gAnchor:qt("Anchor"),anchor:xs({control:"plainText",label:"Name",placeholder:uB},{type:"custom",render:({value:e,onChange:o})=>R(qA,{value:e,onChange:o,nameBox:(t,r)=>R(hs,{value:t,onChange:r,label:"Name",placeholder:uB,hideable:!1,markup:!1})})})}}function qB(){return{_gAdvanced:qt("Advanced"),[Oi]:{type:"custom",render:({value:e,onChange:o})=>R(Io,{label:c("Custom CSS"),icon:ps(R(wee,{})),children:R(Ree,{"aria-label":c("Custom CSS"),spellCheck:!1,autoGrow:!0,className:"font-mono",value:typeof e=="string"?e:"",onChange:t=>o(t.target.value)})})}}}function NMe(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(Io,{label:c(e),icon:o,htmlFor:i,hint:t===void 0?void 0:c(t),children:R(kee,{id:i,value:Number.isFinite(l)?new Date(l):null,onChange:d=>a(d?d.toISOString():"")})})}}}function XB(e,o,t,r){return{type:"custom",...ln({},{...lh,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(Pw,{checked:m,onChange:s,disabled:I,ariaLabelledBy:h});return R(Io,{label:c(e),labelId:h,icon:t,hint:r===void 0?void 0:c(r),action:d?Sa(Ca,{children:[R(tt,{words:de()?.panel,label:c(e),changed:u,detail:f.followsNoView?c(p?"On":"Off"):us(S=>c(S),c(p?"On":"Off"),f.followsView),disabled:I,onReset:()=>s(void 0)}),w]}):w})}}}function ZB(){return{type:"custom",render:({value:e,onChange:o,id:t,name:r})=>{let a=`${String(t??r??"pageBackground")}-colour`;return R(Joe,{label:"Background",icon:R(cee,{}),id:a,value:e,shown:Vb(e),onChange:o})}}}function DMe(e,o,t){return{type:"custom",render:({value:r,onChange:a})=>R(yt,{label:c(e),icon:t,value:r||o,onChange:a})}}function Joe({label:e,icon:o,id:t,value:r,shown:a,onChange:n}){let{colors:s,n:i}=Dw(),l=jr(r),d=l?Ui(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:Nw(l??"",s,i,n)})}function MMe(){return{type:"custom",render:e=>{let{value:o,onChange:t}=e,r=e;return R(Qoe,{value:typeof o=="string"?o:"",onChange:t,twin:"follows"in e?{follows:r.follows,view:r.followsView}:void 0})}}}function Nw(e,o,t,r){let a=cm(e);return eR(o,t).map(n=>({label:n.label,color:n.value,selected:a===n.name,onPick:()=>r(n.name)}))}function Qoe({value:e,onChange:o,twin:t}){let{colors:r,n:a}=Dw(),n=r.background,s=ms(n.toUpperCase(),c("Theme {n} background",{n:a})),[i,l]=Cr(dR),[d]=Cr(Zb),f=typeof d=="string"&&d.trim()!=="",u=im(i),p=y=>l(im(y)||void 0),m=cm(e),h=m?Ui(m,r,a):null,I=Nw(e,r,a,o),w=t?()=>o(void 0):()=>o(""),S=n,C=s;if(t){let y=cm(t.follows),v=lm(t.follows),L=y?Ui(y,r,a):v?{hex:v,words:v.toUpperCase()}:null;S=L?.hex??n,C=us(O=>c(O),L?L.words:s,t.view)}let b=!t&&(Jc(e)||f)?R(ete,{value:u,onChange:p}):null;return h?R(yt,{label:c("Fill"),icon:R(ww,{}),value:h.hex,caption:h.words,onChange:o,changed:!0,onReset:w,resetTo:C,choices:I,children:b}):R(od,{label:c("Fill"),icon:R(ww,{}),value:e,inherited:S,resetTo:C,onChange:o,onReset:w,choices:I,children:b})}function ete({value:e,onChange:o}){return yd({options:sm.map(t=>({label:t.label,value:t.value,hint:t.hint})),value:e,onChange:o,ariaLabel:c("Fill")})}function ote(e,o,t){if((e?.content??[]).some(n=>n?.props?.id===o))return Ur(t);let r=pR(e,o);if(r.length===0)return null;let a=Ur(Un(t));if(a!==null)return a;for(let n=r.length-1;n>0;n-=1){let s=Ur(Un(r[n].sectionAccent));if(s!==null)return s}return Ur(r[0].sectionAccent)}function Dw(){let e=ko(pe().theme),[o]=Cr("sectionAccent"),t=null;try{let{appState:a,selectedItem:n}=ch(i=>i),s=n?.props?.id?String(n.props.id):void 0;t=s?ote(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 HMe(){return Td()}var JB={top:R(aee,{}),right:R(ree,{}),bottom:R(oee,{}),left:R(tee,{})};function QB(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(Io,{label:c(e),icon:a,value:i(m)?.label?c(i(m).label):s?c(s):"",children:Uee(c,{label:e,value:m,onChange:p,points:f})})}}}function WMe(e,o,t){return{type:"custom",options:o,render:({value:r,onChange:a,field:n})=>R(HR,{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 $Me(e,o={}){return{type:"custom",render:({value:t,onChange:r})=>{let a={value:t,onChange:r,...o};return R(e,{...a})}}}var tte={image:"Image",video:"Video"},UMe=zn.map(e=>({label:tte[e],value:e}));function zMe(e,o,t){let r=Object.keys(ub).map(a=>({label:ub[a],value:a,picture:t[a]}));return{type:"custom",...ln({},{type:"radio",label:e,options:r.map(a=>({value:a.value,label:a.label}))}),render:({onChange:a})=>R(ate,{label:e,icon:o,options:r,onChange:a})}}function rte(e,o,t){let r=k1(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=T1(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 ate({label:e,icon:o,options:t,onChange:r}){let a=fs(),n=a?.values??{},s=Uc(n),i=hB(jQ),l=$u(i?.docId??null),d=null;try{d=ch(u=>u.appState.data)}catch{d=null}let f=j1(a?.id,d,l);return R(Io,{label:c(e),icon:ps(o),hint:rte(n,f,i?.hasUnsavedEdits??!1),children:yd({options:t,value:s,onChange:r,ariaLabel:e})})}function GMe(e,o,t,r={}){let a={type:"custom",[YQ]:!0,render:({value:n,onChange:s,name:i})=>R(DR,{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?Go("each",a):a}var jMe={HeroSingle:[Gn.image],HeroSlide:["videoFrame","videoFramePhone"],ContactLocations:["locations[].photo"],ProcessSteps:["steps[].image"]};function nte(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 KMe({value:e,onChange:o,label:t}){let r=e||{},a=fs(),n=a?a.values!==a.node.props:!0,s=!!r.pending&&n,i=!!r.pending&&!n,l=!!je(Wee()).geocode,d=xB(),f=(u,p)=>o({...r,[u]:p??void 0});return Sa(Ca,{children:[R(Io,{label:c(t),icon:R(nB,{}),action:l?R(Ew,{content:c("Find from the address (OpenStreetMap)"),children:R(EB,{"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(dee,{})})}):void 0,children:l&&r.status?R(XA,{compact:!0,oneLine:!0,spaced:!1,status:s?"busy":r.ok&&!i?"found":"notfound",statusText:s?c("Finding\u2026"):i?c(oS):c(r.status),hint:nte(r)}):null}),R(Io,{label:c("Enter by hand"),labelId:d,icon:R(nee,{}),action:R(Pw,{checked:!!r.manual,onChange:u=>o({...r,manual:u}),ariaLabelledBy:d})}),r.manual&&R(Io,{label:c("Latitude, longitude"),icon:R(nB,{}),children:Sa("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:8,width:"100%",minWidth:0},children:[R(iB,{value:typeof r.lat=="number"?r.lat:null,onChange:u=>f("lat",u),min:-90,max:90,step:1e-4,placeholder:c("Latitude")}),R(iB,{value:typeof r.lng=="number"?r.lng:null,onChange:u=>f("lng",u),min:-180,max:180,step:1e-4,placeholder:c("Longitude")})]})})]})}function ste(e,o){return o===null||o<0||o>=e.length?"":e[o]?.text??""}function ite(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 lte(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 Mw={label:"Ticker items",icon:R(lee,{})};function VMe(e,o,t,r){return{type:"custom",[wa]:{control:"textList",label:e,placeholder:t,itemKey:"text",rendering:r},...ln({},{...LB.textList,label:e}),render:({value:a,onChange:n})=>R(Hw,{label:e,icon:ps(o),items:Array.isArray(a)?a:[],placeholder:t,onChange:n,markup:r==="markup"})}}function Hw({label:e,icon:o,items:t,placeholder:r,onChange:a,markup:n=!1}){let s=bd(null),[i,l]=Sd(null),d=u=>u.map(p=>({text:p?.text??""})),f=u=>{let p=lte(t,u,i);p===null&&(s.current=null),l(p),a(d(u))};return R(See,{label:c(e),icon:o,noun:c("item"),items:t,onChange:f,newItem:()=>({text:""}),open:null,onOpen:()=>{},renderItem:()=>null,above:n?R(aS,{target:s,value:ste(t,i),onChange:u=>a(ite(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 eN(e,o){let t=`${e.label} \u2014 row ${o+1}`;return xs({control:"plainText",label:t,placeholder:e.placeholder,offPage:e.offPage},{type:"custom",render:({value:r,onChange:a})=>R(hs,{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 oN(e){return{_gCards:qt("Cards"),coverIndex:ft("Cover image",R(iee,{}),FR,String(1),e?.coverHint??"A card's opening picture \u2014 a card pinned to a finish keeps its own."),imageBackground:loe("Image background",Vm),cardImage:rN()}}function YMe(){return{outline:ft("Card outline",R(fee,{}),LR,RR),indexBadge:ft("Card number",R(SB,{}),dS,cS),showBadge:XB("Product badge",!0,R(Gb,{noun:"tag"}))}}function tN(e){let o=e?.defaults??{showCardSizes:!0,showCardBuy:!0,showCardPage:!0},t=a=>({...lh,label:nh.find(n=>n.id===a).label}),r=a=>ln(Cw(Sw),t(a));return{_gShowOnCard:qt("Show on a card"),[Sw]:ln({type:"custom",render:()=>R(cte,{rest:{showCardPrice:!0,showCardFinishes:!0,...o}})},t(Sw)),showCardFinishes:r("showCardFinishes"),showCardSizes:r("showCardSizes"),showCardBuy:r("showCardBuy"),showCardPage:r("showCardPage")}}var Sw="showCardPrice",nh=[{id:"showCardPrice",label:"Price"},{id:"showCardFinishes",label:"Finish swatches"},{id:"showCardSizes",label:"Sizes"},{id:"showCardBuy",label:"Buy button"},{id:"showCardPage",label:"Page button"}];function cte({rest:e}){let o=So(),t=xr(),r=s=>typeof o[s]=="boolean"?o[s]:void 0,a=s=>r(s)??e[s],n=nh.some(({id:s})=>r(s)!==void 0&&r(s)!==e[s]);return R(pl,{parts:nh,changed:n,shown:a,onPress:(s,i)=>t({[s]:i}),onReset:()=>t(Object.fromEntries(nh.map(({id:s})=>[s,void 0])))})}function qMe(e,o="display"){let t=nn(o);return{[o]:Go("desktop",{type:"custom",render:({value:r,onChange:a})=>R(pl,{parts:e,changed:gR(r),shown:n=>pm(r,n),onPress:(n,s)=>a(yR(r,n,s)),onReset:()=>a(void 0)})}),[t]:Go("mobile",{type:"custom",render:({value:r,onChange:a})=>R(dte,{parts:e,desktopKey:o,value:r,onChange:a})})}}function pl({parts:e,changed:o,shown:t,onPress:r,onReset:a,detail:n,disabledReason:s}){let i=c("Display");return R(Io,{label:i,icon:R(ZQ,{}),changed:o,action:R(tt,{words:de()?.panel,label:i,changed:o,detail:n,onReset:a}),children:R(Cee,{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 dte({parts:e,desktopKey:o,value:t,onChange:r}){let a=So()[o];return R(pl,{parts:e,changed:IR(t),shown:n=>eS(a,t,n),onPress:(n,s)=>r(bR(t,n,s)),onReset:()=>r(hm),detail:c("the same as Desktop")})}function rN(e=hA){return Lo("Card image",R(yB,{}),it,Ua,mA,it,e,{clear:{hint:it},hint:"Rounds the picture. The card's own corner is in Styles."})}function fte(){return ds(Bb,"cardImage")}function XMe(){return{cardImage:rN(Bb),...fte()}}function ZMe(){return Lw({sidesKey:"cornerSides",row:gA,step:IA,useFollowed:()=>it,mark:R(pte,{label:yA}),hint:c("Rounds the picture. Left alone it stays square.")})}function pte({label:e,changed:o=!1,onReset:t=()=>{}}){return R(tt,{words:de()?.panel,label:c(e),changed:o,onReset:t})}function JMe(){return{type:"custom",render:({value:e,onChange:o})=>R(xte,{value:typeof e=="string"?e:"",onChange:o})}}var mB="own";function QMe(){let e=[{value:mB,label:"Layout's own",picture:gw(Array.from({length:8},()=>[3,1]))},...Object.entries(Yu).map(([o,t])=>({value:o,label:t.label,picture:gw([...t.phone,...t.phone])}))];return Go("mobile",hw("Layout",R(bB,{}),e,mB,{columns:2,cell:rB}))}function ute({layout:e,width:o}){let t=Hb(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:kA(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 mte={width:"3.5rem",height:"2.5rem",words:!1},hte=200;function xte({value:e,onChange:o}){let[t,r]=Sd(null),[a,n]=Sd(4),s=bd(null);GQ(()=>{let m=s.current;if(!m||typeof ResizeObserver!="function")return;let h=()=>n(m.getBoundingClientRect().width>=hte?4:3);h();let I=new ResizeObserver(h);return I.observe(m),()=>I.disconnect()},[]);let i=e?$(qc,e):void 0,l=i?e:"",d=Db(t,l),f=Db(t,"").length,u=Ju("no-symbol"),p=[{value:"",label:c("Not chosen"),icon:tB(u,c("Not chosen"))},...d.map(m=>({value:m,label:c(qc[m].label),icon:R(ute,{layout:qc[m],width:40})}))];return R(Io,{label:c("Layout"),icon:R(bB,{}),value:i?c(i.label):void 0,children:R("div",{ref:s,style:{flex:"1 1 auto",minWidth:0},children:R(kB,{label:c("Layout"),value:l,options:p,onChange:o,columns:a,cell:mte,header:Sa("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(xee,{options:[{id:"all",label:c("All")},...CA.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:Nb.length})})]})})})})}import{decodePartId as Fte}from"efficient-easel/draw";import{decodePartId as Ed,encodePartId as Zr}from"efficient-easel/draw";import{LINK_FIELD_MARKER as uN,SCAFFOLD_FIELD_MARKER as fN,TEXT_FIELD_MARKER as gh}from"efficient-easel/draw";import{readHidable as mN}from"efficient-easel/draw";import{SCALAR_TEXT_CONTROLS as Cte}from"efficient-easel/draw";import{TEXT_FIELD_MARKER as wte}from"efficient-easel/draw";import{TEXT_FIELD_MARKER as aN}from"efficient-easel/draw";import{readHidable as nN}from"efficient-easel/draw";import{SCALAR_TEXT_CONTROLS as gte}from"efficient-easel/draw";var Ite=gte,yte=["text","textarea"],bte=["textarea","plainTextarea"];function Ste(e){return!e||typeof e!="object"?null:e[aN]?.control??null}function ul(e){let o=Ste(e);return o&&Ite.includes(o)?o:null}function uh(e){return bte.includes(e)}function sN(e){return!e||typeof e!="object"?void 0:e[aN]?.placeholder}function mh(e){return nN(e).text}function Ww(e,o,t){return yte.includes(e)?{text:t,hidden:nN(o).hidden}:t}function iN(e,o,t,r){return mh(e[o])===r?null:{...e,[o]:Ww(t,e[o],r)}}function Xr(e,o){return o?`${e}[${o.index}].${o.rowKey}`:e}function Tr(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 hh(e){if(!(!e||typeof e!="object"))return e[wte]}function $w(e){if(!e||typeof e!="object")return null;let o=e.arrayFields;return o&&typeof o=="object"?o:null}function lN(e,o){if(!Array.isArray(o))return[];let t=hh(e),r=[];if(t?.control==="textList"){let n=t.itemKey??"text";return o.forEach((s,i)=>{let l=Se(s?.[n]);l&&r.push({row:{index:i,rowKey:n},text:l})}),r}let a=$w(e);return a?(o.forEach((n,s)=>{for(let[i,l]of Object.entries(a)){if(!ul(l))continue;let d=mh(n?.[i])||hh(l)?.placeholder||"";d&&r.push({row:{index:s,rowKey:i},text:d})}}),r):[]}function Pd(e,o){if(Array.isArray(e))return e[o.index]?.[o.rowKey]}function Uw(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 cN(e,o,t,r,a){let n=Pd(e[o],t);return mh(n)===a?null:Uw(e,o,t,Ww(r,n,a))}function dN(e,o){return o?`${e} \xB7 row ${o.index+1}`:e}var fo="data-sf-part",fn="data-sf-region-part",zw="data-sf-part-row";function hN(e,o){return`${e}[${o}]`}var xN="data-sf-part-kind",Gw="data-sf-part-style-owner",_d="data-sf-part-style-kind";function Od(e){for(let o=e;o;o=o.parentElement){let t=o.getAttribute(Gw),r=o.getAttribute(_d);if(t&&r)return{owner:t,kind:r};if(o.getAttribute("data-easel-block"))return null}return null}var pN=2;function dn(e){return la(e).replace(/\s+/gu,"")}function xh(e,o,t){let r=e[gh];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}=mN(o);a?t.push(a):r.placeholder&&t.push(r.placeholder);return}if(!e[uN]){if(e.type==="text"||e.type==="textarea"){let a=Se(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))xh(s,a?.[n],t);return}if(e.objectFields&&o&&typeof o=="object")for(let[a,n]of Object.entries(e.objectFields))xh(n,o[a],t)}}function jw(e){if(!e||typeof e!="object")return!1;let o=e;return o[uN]?!1:!!o[gh]||o.type==="text"||o.type==="textarea"}function Ih(e,o){let t=e[gh];return t?.label?t.label:typeof e.label=="string"?e.label:o}function Ad(e){let o=e.indexOf(" (");return(o>0?e.slice(0,o):e).trim()}function gN(e,o,t){if(!e)return[];let r=[];for(let[a,n]of Object.entries(e)){if(!n||typeof n!="object"||Jn(a))continue;let s=n,i=[];xh(s,o?.[a],i),!i.length&&s[fN]!==void 0&&xh(s,s[fN],i);let l=Ih(s,a);if(t?.(a)&&jw(s)){i.length&&r.push({key:a,label:l,texts:[],keyed:!0});continue}let d=new Set;for(let{row:p,text:m}of lN(s,o?.[a])){let h=dn(m);h.length<pN||(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=dn(p);m.length<pN||f.has(m)||(f.add(m),u.push(m))}u.length&&r.push({key:a,label:l,texts:u})}return r}function Kw(e){return!e.offPage&&!e.hidden&&e.panelOnly!==!0}var vte=Cte;function IN(e,o){if(!o||typeof o!="object"||Jn(e)||TR(o))return null;let t=o[gh];return!t||!vte.includes(t.control)?null:t}function Vw(e,o){let t=IN(e,o);return t!==null&&t.identifier!==!0}function yN(e,o){if(!e)return[];let t=[];for(let[r,a]of Object.entries(e)){let n=IN(r,a);if(!n)continue;let{text:s,hidden:i}=mN(o?.[r]);if(Kw({offPage:n.offPage===!0,hidden:!!i,panelOnly:Yi(a)}))continue;let l=s||n.placeholder||"",d=la(l).replace(/\s+/gu," ").trim();t.push({key:r,label:Ad(Ih(a,r)),preview:d,offPage:n.offPage===!0,identifier:n.identifier===!0,hidden:!!i})}return t}function ml(e,o){let t=hh(e);return t?.control==="textList"?o.rowKey===(t.itemKey??"text")?eN(t,o.index):null:$w(e)?.[o.rowKey]??null}function yh(e,o,t){let r=e.node.props,{key:a,row:n}=Tr(e.propKey),s=n?cN(r,a,n,e.kind,o):iN(r,a,e.kind,o);return s?(t(e.zone,e.index,{...e.node,props:s}),!0):!1}import{readHidable as wN}from"efficient-easel/draw";var Yw=e=>String(e+1).padStart(2,"0"),Tte=[{label:"01 \xB7",value:"two-digit"},{label:"1.",value:"plain"}],qw="two-digit",bN=e=>Q(Tte,qw,e),bh=(e,o)=>e==="plain"?`${o+1}.`:Yw(o);var Jw="Contents",Xw="Flex",SN="Text",kte="numberForm",Pte="_contentsEntries",Ete="_kickerNumber",CN="data-sf-kicker-number",_te=e=>wN(e).text.trim(),vN=e=>Yn(e?.anchor),Zw=e=>String(e.props?.id??""),Ote=e=>!wN(e.props?.text).hidden&&!Bi(e.props)&&!xt(e.props),Rd=e=>ui(e);function TN(e){for(let o of Rd(e))for(let t of o){if(ha(t.props??{}))continue;if(t.type===SN&&Ote(t))return t;if(t.type===SN)continue;let r=TN(t);if(r)return r}}function kN(e){return Rd(e).some(o=>o.some(t=>t&&!ha(t.props??{})&&(t.type===Jw||kN(t))))}var PN=e=>e.type===Xw&&Yr(Xw,e.props?.direction)==="row";function EN(e){return Rd(e).some(o=>o.some(t=>t&&!ha(t.props??{})&&(t.type===Jw||!PN(t)&&EN(t))))}function Ate(e){let o=[],t=(r,a)=>{for(let n of r){if(!n||ha(n.props??{}))continue;if(n.type===Jw){a.open={contents:n,sections:a.waiting??[]},a.waiting=null,o.push(a.open);continue}if(PN(n)&&EN(n)){let i={inRow:!0,open:null,waiting:[]};for(let l of Rd(n))t(l,i);a.inRow||(a.open=null);continue}let s=a.open?.sections??a.waiting;if(n.type===Xw&&vN(n.props)&&s&&!kN(n)){s.push({box:n,kicker:TN(n)});continue}for(let i of Rd(n))t(i,a)}};return t(e,{inRow:!1,open:null,waiting:null}),o}function Rte(e){return e.map(o=>({label:o.kicker?la(_te(o.kicker.props?.text)):"",anchor:vN(o.box.props)}))}function Qw(e){let o=e?.length?Ate(e):[];if(!o.length)return null;let t=new Map,r=new Map;for(let a of o){let n=Zw(a.contents);n&&t.set(n,Rte(a.sections));let s=bN(a.contents.props?.[kte]);a.sections.forEach((i,l)=>{let d=i.kicker?Zw(i.kicker):"";d&&r.set(d,bh(s,l))})}return{entries:t,numbers:r}}var HHe=e=>e.endsWith(".")?`${e} `:`${e} \xB7 `;function _N(e){let o=e;if(!o?.content?.length)return e;let t=Qw(o.content);if(!t)return e;let{entries:r,numbers:a}=t,n=s=>{let i=go(s,m=>io(m,n)),l=i.props??{},d=i!==s,f=Zw(s),u=f?r.get(f):void 0;u&&(l={...l,[Pte]:u},d=!0);let p=f?a.get(f):void 0;return p&&(l={...l,[Ete]:p},d=!0),d?{...s,props:l}:s};return{...o,content:o.content.map(n)}}var Bte=`[${CN}]`,Nte=["bold","italic","underline","strike","link","sup","sub"],Dte=["bullet","number"];function tC(e,o){return e?[...Nte,...o?Dte:[]]:[]}function ON(e,o){let t=Fte(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}=Tr(a),d=o.components[n.type]?.fields?.[i],f=l?ml(d,l):d,u=ul(f);if(!u)return null;let p=n.props??{};if(ES(p)!==null||!l&&tu(n.type,p,i)||n.type==="Text"&&i==="text"&&Bi(p)||l&&!(Array.isArray(p[i])&&l.index<p[i].length))return null;let m=l?Pd(p[i],l):p[i];return{node:n,selector:s,propKey:a,kind:u,stored:m,offPage:dh(f),panelOnly:Yi(f)}}function Sh(e,o){let t=ON(e,o);if(!t)return null;let{text:r,hidden:a}=cn(t.stored);if(!Kw({offPage:t.offPage,hidden:!!a,panelOnly:t.panelOnly}))return null;let n=uh(t.kind);return{partId:e,value:r,rules:Fp,multiline:n,skip:Bte,offered:tC(t.kind!=="plainText",n),write:s=>{let i=ON(e,o);i&&yh({node:i.node,propKey:i.propKey,kind:i.kind,zone:i.selector.zone,index:i.selector.index},s,o.replace)}}}function rC(e,o,t){return e?.isConnected&&e.getAttribute(fo)===t?e:o?.querySelector(`[${fo}="${wh(t)}"]`)??null}function wh(e){return e.replace(/["\\]/g,"\\$&")}function AN(e){let o=e.activeElement;return o?o.tagName==="IFRAME"||!!o.closest(".es-canvas"):!1}var eC=null,oC=new Set;function Mte(){return eC}function aC(e){if(e!==eC){eC=e;for(let o of oC)o()}}function Hte(e){return oC.add(e),()=>{oC.delete(e)}}function RN(){return Lte(Hte,Mte,()=>null)}function LN(e,o){if(e.outer)return null;let t=o.getItemById(e.ownerId);if(!t)return null;let r=g0(t.type);return!r||oo(t.props)?null:{node:t,rows:r}}function Gte(e,o){let t=LN(e,o),r=o.getItemById(e.nodeId);if(!t||!r)return null;let a=C0(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:Wte(e.ownerId,Xr(t.rows,{index:e.index,rowKey:a}))}function Ch(e,o){let t=Gte(e,o);return t?Sh(t,o):null}function FN(e,o){return Ch(e,o)?.value}function BN(e,o){let t=Ch(e,o);return t?(t.write(e.text),!0):!1}function NN(e,o){let t=LN(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=$te(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=Ute(n,s,l);break}case"delete":i=zte(n,s);break;default:return!1}return o.replace(r.zone,r.index,{...t.node,props:{...a,[t.rows]:i}}),!0}import{jsx as Ue,Fragment as MSe,jsxs as kI}from"react/jsx-runtime";import{Fragment as HSe,useEffect as Dj,useMemo as Mj,useRef as WSe,useState as Zs}from"react";import{useScreenDocument as zj}from"efficient-easel/screen/components/ScreenDocumentContext";import{UiIcon as AP}from"efficient-easel/draw/client";import $Se from"efficient-easel/screen/components/SidePanelHead";import{jsx as _e,Fragment as Sl,jsxs as ws}from"react/jsx-runtime";import{useEasel as vM,useRootFields as kne}from"efficient-easel/easel";import{Inspector as Pne}from"efficient-easel/fields";import{SettingsGroup as Ene}from"efficient-easel/panel";import{useEffect as _ne,useRef as One,useState as ov}from"react";import{jsx as gs,Fragment as Yte,jsxs as qte}from"react/jsx-runtime";import{useState as WN}from"react";import{SettingsDefaultReset as Xte,SettingsField as Zte}from"efficient-easel/panel";import{useEaselStrings as Jte}from"efficient-easel/strings";import{AddIcon as Qte}from"efficient-easel/icons";import{Button as ere}from"efficient-shell/ui";import{iconOf as ore,noGlyph as tre}from"efficient-easel/screen/lib/document/box-fields";import{jsx as vh,Fragment as jte,jsxs as DN}from"react/jsx-runtime";import{Button as MN,Dialog as Kte}from"efficient-shell/ui";function Vte(e){return lt("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 HN({count:e,onCancel:o,onConfirm:t}){return DN(Kte,{open:!0,onClose:o,role:"alertdialog",size:"sm",title:c("Clear this site\u2019s colors?"),footer:DN(jte,{children:[vh(MN,{variant:"secondary",onClick:o,children:c("Cancel")}),vh(MN,{variant:"danger",onClick:t,children:c("Clear colors")})]}),children:[vh("p",{children:Vte(e)}),vh("p",{className:"mt-2 font-medium",children:c("This cannot be undone.")})]})}var rre=tre("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"),are="Reset color",nre={selected:0,themes:[]};function sre(e){e(nre)}function $N({value:e,onChange:o}){let t=e?.themes??[],r=t.length===0,a=ko(e),[n,s]=WN(!1),i=Jte(),[l,d]=WN(null),f=(S,C)=>{o({...a,themes:a.themes.map((b,y)=>y===S?C:b)})},u=ki(a).accent,p=new Set(a.themes.map(S=>S.brandInk).filter(Boolean)),m=L0.filter(S=>!p.has(S)).map(S=>F0(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 qte(Yte,{children:[r?null:gs(Zte,{label:c(are),icon:ore(rre),labelId:"sf-theme-reset",action:gs(Xte,{label:c("all theme colors"),words:i.panel,changed:!0,onReset:()=>s(!0)})}),n&&gs(HN,{count:t.length,onCancel:()=>s(!1),onConfirm:()=>{s(!1),sre(o)}}),gs("div",{className:"sf-theme-list",role:"radiogroup","aria-label":c("Theme"),children:h.map((S,C)=>gs(Sm,{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))}),gs(ere,{variant:"secondary",leftIcon:gs(Qte,{}),onClick:w,className:"sf-theme-add",children:c("Add new theme")})]})}import{jsx as Th}from"react/jsx-runtime";import{SettingsDefaultReset as ire,SettingsField as lre}from"efficient-easel/panel";import{SquareIcon as cre}from"efficient-easel/icons";var dre="Applies to panels, cards, inputs and buttons. Round things \u2014 color swatches, switches, status dots \u2014 stay round.",nC="Corners";function UN({value:e,onChange:o,length:t}){let r=e===null;return Th(lre,{label:c(nC),icon:Th(cre,{}),changed:!r,action:Th(ire,{words:de()?.panel,label:c(nC),changed:!r,detail:c("the built-in corners"),onReset:()=>o(null)}),hint:c(dre),children:Th(St,{min:t?.grid.min??it,max:t?.grid.max??Ua,step:t?.grid.step??1,value:e,...e===null?{}:{suffix:t?.unit??"px",...t?{units:t.units}:{}},placeholder:it,placeholderWord:"Auto",onClear:()=>o(null),ariaLabel:c(nC),onChange:o})})}import{jsx as Ld}from"react/jsx-runtime";import{SettingsDefaultReset as fre,SettingsField as pre}from"efficient-easel/panel";import{IconPicker as ure}from"efficient-shell/ui";import{ShadowIcon as mre}from"efficient-easel/icons";import{SHADOW_PREVIEW as hre}from"efficient-easel/screen/lib/document/shadow-values";var sC={none:"None",soft:"Soft",lifted:"Lifted"},xre="Applies to cards \u2014 products, brands, journal entries and filter cells. Round things like swatches and status dots are never shadowed.";function zN({value:e,onChange:o}){let t=e===null,r=e??Xy;return Ld(pre,{label:c("Card shadow"),icon:Ld(mre,{}),value:c(sC[r]),changed:!t,action:Ld(fre,{words:de()?.panel,label:c("Card shadow"),changed:!t,detail:c(sC[Xy]),onReset:()=>o(null)}),hint:c(xre),children:Ld(ure,{label:c("Card shadow"),value:r,options:X0.map(a=>({value:a,label:c(sC[a]),icon:Ld("span",{className:"sf-shadow-chip border border-line bg-surface",style:{boxShadow:hre[a]}})})),onChange:o})})}import{jsx as GN}from"react/jsx-runtime";import{ShadowIcon as gre}from"efficient-easel/icons";import{DEFAULT_SHADOW_COLOR as jN}from"efficient-easel/screen/lib/document/shadow-values";var Ire="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 KN({value:e,onChange:o}){let t=e===null;return GN(od,{label:c("Shadow color"),icon:GN(gre,{}),value:e??"",inherited:jN,resetTo:jN,onChange:o,onReset:()=>o(null),hint:c(Ire)})}import{jsx as Ph}from"react/jsx-runtime";import{SettingsDefaultReset as yre,SettingsField as bre}from"efficient-easel/panel";import{AlignSeparateIcon as Sre}from"efficient-easel/icons";function kh(e,o){return e==="tablet"?null:e==="mobile"?o.phone:o.desktop}var wre="The space between the blocks inside a row, a grid or a box. Auto means each one keeps the spacing it already has.",Cre="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.",iC="Block gap",VN=ol.Grid;function YN(e,o){return kh(e,{desktop:{key:"block_gap",value:o.gap,followsPx:null},phone:{key:"block_gap_phone",value:o.phone,followsPx:o.gap===null?null:ew(o.gap)}})}function qN({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?VN:i?hd(t)??VN:t;return Ph(bre,{label:c(iC),labelId:"sf-block-gap",icon:Ph(Sre,{}),changed:!n,action:Ph(yre,{words:de()?.panel,label:c(iC),changed:!n,detail:s??c("each block's own spacing"),onReset:()=>o(null)}),hint:c(s===null?wre:Cre),children:Ph(St,{min:(r?.grid??Vt).min,max:(r?.grid??Vt).max,step:(r?.grid??Vt).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(iC),onChange:o})})}import{jsx as Eh}from"react/jsx-runtime";import{SettingsDefaultReset as vre,SettingsField as Tre,SettingsSegmented as kre}from"efficient-easel/panel";import{HoverIcon as Pre}from"efficient-easel/icons";var lC={none:gi.none,lift:gi.lift,highlight:y_},Ere="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 XN({value:e,onChange:o}){let t=e===null,r=e??Zy;return Eh(Tre,{label:c("Hover effect"),icon:Eh(Pre,{}),value:c(lC[r]),changed:!t,action:Eh(vre,{words:de()?.panel,label:c("Hover effect"),changed:!t,detail:c(lC[Zy]),onReset:()=>o(null)}),hint:c(Ere),children:Eh(kre,{options:Z0.map(a=>({id:a,label:c(lC[a])})),value:r,ariaLabel:c("Hover effect"),onChange:o})})}import{jsx as _h}from"react/jsx-runtime";import{SettingsDefaultReset as _re,SettingsField as Ore,SettingsSegmented as Are}from"efficient-easel/panel";import{DropIcon as Rre}from"efficient-easel/icons";var cC="Photography",ZN={shot:"As shot",mono:"Black and white"},dC=[{grayscale:!1,label:ZN.shot},{grayscale:!0,label:ZN.mono}],Lre="Black and white photographs return to color on hover. Wheels and tyres keep their real finish either way.";function JN({value:e,onChange:o}){let t=e===null,r=e??!1;return _h(Ore,{label:c(cC),icon:_h(Rre,{}),value:c(dC.find(a=>a.grayscale===r).label),changed:!t,action:_h(_re,{words:de()?.panel,label:c(cC),changed:!t,detail:c(dC.find(a=>!a.grayscale).label),onReset:()=>o(null)}),hint:c(Lre),children:_h(Are,{options:dC.map(a=>({id:a.grayscale,label:c(a.label)})),value:r,ariaLabel:c(cC),onChange:o})})}import{jsx as fC}from"react/jsx-runtime";import{useId as Fre}from"react";import{SettingsField as Bre,SettingsSwitch as Nre}from"efficient-easel/panel";import{ShareIcon as Dre}from"efficient-easel/icons";var Mre="Share button",Hre="On every blog post.";function QN({value:e,onChange:o}){let t=Fre();return fC(Bre,{label:c(Mre),labelId:t,icon:fC(Dre,{}),action:fC(Nre,{checked:e===!0,onChange:o,ariaLabelledBy:t}),hint:c(Hre)})}import{usePreviewDevice as tv}from"efficient-easel/draw/client";import{jsx as Oh}from"react/jsx-runtime";import{SettingsDefaultReset as Wre,SettingsField as $re}from"efficient-easel/panel";import{PaddingXIcon as Ure}from"efficient-easel/icons";var pC="Side space",eD=$o.default,zre="The room left at the left and right edge of every page.";function oD(e,o){return kh(e,{desktop:{key:"site_gutter",value:o.gutter,unsetPx:eD,bounds:$o},phone:{key:"site_gutter_phone",value:o.phone,unsetPx:Lm(o.gutter,o.gutterUnit),bounds:zt}})}function tD({value:e,onChange:o,unsetPx:t=eD,bounds:r=$o,length:a,restsOn:n=t}){let s=e===null;return Oh($re,{label:c(pC),labelId:"sf-side-space",icon:Oh(Ure,{}),changed:!s,action:Oh(Wre,{words:de()?.panel,label:c(pC),changed:!s,detail:`${t}px`,onReset:()=>o(null)}),hint:c(zre),children:Oh(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(pC),onChange:o})})}import{jsx as uC}from"react/jsx-runtime";import{BACKGROUND_WIDTHS as _4e,SettingsBackgroundWidth as Gre,SettingsContentWidth as jre}from"efficient-easel/panel";var Kre="Background width",mC="Content width";var Ah=e=>c(ls[e==="content"?"page":"full"]),rD="The width of every section's background.",aD="The width of every section's content.";function Rh({value:e,changed:o,detail:t,onChange:r,onReset:a,hint:n,labelId:s}){return uC(Gre,{value:e,changed:o,detail:t,onChange:r,onReset:a,hint:n?c(n):void 0,labelId:s,words:{label:c(Kre),full:Ah("full"),content:Ah("content")},resetWords:de()?.panel})}function Lh({mode:e,px:o,max:t=Ke.max,min:r=Ke.min,changed:a,detail:n,fullClosed:s,onMode:i,onPx:l,onReset:d,hint:f,labelId:u,length:p}){let m=c(mC),h=p?.grid.min??r,I=p?.grid.max??t,w=e!=="full"?uC(St,{min:h,max:I,step:p?.grid.step??Ke.step,value:Math.min(Math.max(o,h),I),onChange:l,...p?{suffix:p.unit,units:p.units}:{suffix:"px"},ariaLabel:m}):null;return uC(jre,{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:Ah("full"),content:Ah("content")},resetWords:de()?.panel})}import{jsx as QD}from"react/jsx-runtime";import{TextStyleItem as Zae,TextStylesGroup as Jae}from"efficient-easel/text-styles";import{jsx as jae}from"react/jsx-runtime";import{useState as Kae}from"react";import{TextStylesList as Vae}from"efficient-easel/text-styles";import{usePreviewDevice as Yae}from"efficient-easel/draw/client";import{defaultTextStyles as ND,textStyleCaseCss as Hae}from"efficient-easel/text-styles/model";import{resolveViewValue as DD}from"efficient-easel/draw";import{VIEW_DESKTOP_MIN as nD,VIEW_TABLET_MIN as sD}from"efficient-easel/draw";var Fh=.02,iD=`(min-width: ${Jo}px) and (max-width: ${nD-Fh}px)`,Fd=`(max-width: ${Jo-Fh}px)`,Bh=`(min-width: ${sD}px) and (max-width: ${nD-Fh}px)`,Nh=`(max-width: ${sD-Fh}px)`;import{textStyleCaseCss as Vre,textStyleCaseOfCss as Yre,viewKeyAt as mD}from"efficient-easel/draw";function hl(e){return!e||typeof e!="object"||Array.isArray(e)?null:e}function xl(e,o){return hl(e?.[o])??{}}function Dh(e,o,t){let r=xl(e,o);return hl($(r,t))??{}}function Mh(e,o,t,r){let{[t]:a,...n}=xl(e,o),s=r?{...n,[t]:r}:n,{[o]:i,...l}=e;return Object.keys(s).length?{...l,[o]:s}:l}import{isLengthUnit as bC}from"efficient-easel/screen/lib/content/length-units";var Dd="_partStyles",SC="data-sf-part-styled",kr="data-sf-text-style",qre=/^(heading|body)-[1-7]$/;function va(e){return typeof e=="string"&&qre.test(e)}var Hh={heading:"heading-1",heading2:"heading-2",heading3:"heading-3",body:"body-1",label:"body-5"};function Xre(e){if(!e)return null;for(let[o,t]of Object.entries(Hh))if(t===e)return o;return null}function wC(e){if(va(e.textStyle))return e.textStyle;let o=ia(e.role);return o?Hh[o]:void 0}var Zre=[400,500,600,700],Nd=["left","center","right","justify"],hC=5,xC=1e3,Jre=-5,Qre=10,CC=0,vC=64,TC=2,lD={size:{min:hC,max:xC,step:1},sizeTablet:{min:hC,max:xC,step:1},sizePhone:{min:hC,max:xC,step:1},padding:{min:CC,max:vC,step:TC}},eae=.05,oae=.01,tae=["line","letter"],rae=.5,aae=2.5,nae=-1,sae=1,iae=0,lae=400,cae=[...new Set(Object.values(xi))];function hD(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 xD(e){return xl(e,Dd)}function Ta(e,o){return Dh(e,Dd,o)}function gD(e,o,t){return Mh(e,Dd,o,dae(t).length?t:null)}function dae(e){return Object.entries(e).filter(([,o])=>o!==void 0)}function fae(e){return tae.includes(e)}var Bd=(e,o,t)=>Math.min(t,Math.max(o,e)),pae=["sizeUnit","sizeUnitTablet","sizeUnitPhone"];function gC(e){let o=mD("sizeUnit",e),t=pae.find(r=>r===o);if(!t)throw new Error(`a part stores no unit key ${o}`);return t}var Xt={size:gC("desktop"),sizeTablet:gC("tablet"),sizePhone:gC("mobile"),paragraphSpacing:"paragraphSpacingUnit",padding:"paddingUnit"},ID=Object.values(Xt);function Jr(e,o){return Ae(e[Xt[o]])}function uae(e,o,t={}){if(ID.includes(e))return bC(o)&&o!=="px"?o:null;if(We(Xt,e)&&Jr(t,e)!=="px"){let r=ys(Number(o),2);return!Number.isFinite(r)||r<0||r===0&&e!=="padding"?null:r}if(fae(e)){let r=Math.round(Number(o));return!Number.isFinite(r)||r===0?null:Bd(r,Jre,Qre)}if(e==="lineHeight"){let r=Number(o);return Number.isFinite(r)?ys(Bd(r,rae,aae),3):null}if(e==="letterSpacing"){let r=Number(o);return Number.isFinite(r)?ys(Bd(r,nae,sae),4):null}if(e==="paragraphSpacing"){let r=Math.round(Number(o));return!Number.isFinite(r)||r<=0?null:Bd(r,iae,lae)}if(We(lD,e)){let{min:r,max:a}=lD[e],n=Math.round(Number(o));return Number.isFinite(n)?Bd(n,r,a):null}return e==="italic"?typeof o=="boolean"?o:null:e==="role"||e==="fontRole"?ia(o)?o:null:e==="sizeToken"?kC(o)?o:null:e==="textStyle"?va(o)?o:null:e==="alignPhone"||e==="alignTablet"?Nd.includes(o)?o:null:o}var mae=["weight","size","sizeTablet","sizePhone","line","letter","lineHeight","letterSpacing","paragraphSpacing","padding"];function gl(e){let o=null,t=r=>{o??={...e},delete o[r]};for(let r of mae){let a=e[r];a!==void 0&&!(typeof a=="number"&&Number.isFinite(a))&&t(r)}e.align!==void 0&&!Nd.includes(e.align)&&t("align"),e.alignTablet!==void 0&&!Nd.includes(e.alignTablet)&&t("alignTablet"),e.alignPhone!==void 0&&!Nd.includes(e.alignPhone)&&t("alignPhone"),e.textStyle!==void 0&&!va(e.textStyle)&&t("textStyle"),e.sizeToken!==void 0&&!kC(e.sizeToken)&&t("sizeToken"),e.fontRole!==void 0&&!ia(e.fontRole)&&t("fontRole");for(let r of ID)e[r]!==void 0&&!bC(e[r])&&t(r);return o??e}function kC(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"&&cae.includes(l);return i(o)&&s(t)&&(r===void 0||i(r))&&(a===void 0||s(a))&&(n===void 0||hae(n,t))}function hae(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 PC(e){return e?.pxPhone&&kC(e)?{step:e.stepPhone??e.step,px:e.pxPhone}:null}function yD({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 xae=[["font","role"],["font","fontRole"],["role","textStyle"],["line","lineHeight"],["letter","letterSpacing"]];function gae(e){let o=[];for(let[t,r]of xae)t===e?o.push(r):r===e&&o.push(t);return o}function bs(e,o,t,r){let a={...Ta(e,o)},n=r==null?null:uae(t,r,a);if(n===null)delete a[t];else{a[t]=n;for(let s of gae(t))delete a[s]}return gD(e,o,a)}function bD(e,o){return gD(e,o,{})}function Iae(e){return Yre(e)??"none"}function yae(e){return Vre(e)??""}var cD={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 bae(e,o){return ia(e.role)||(o?.blockDrawsStyle?null:Xre(e.textStyle))}function Md(e,o){return e==="Text"&&o==="text"}var Sae={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 wae(e){let o=xi[e],t=$(Sae,o);return t?`var(--size-${o}, ${t})`:`var(--size-${o})`}function Hd(e){let o={};return typeof e.lineHeight=="number"?o.lineHeight=e.lineHeight:e.line&&(o.lineHeight=ys(Cae+e.line*eae,3)),typeof e.letterSpacing=="number"?o.letterSpacingEm=e.letterSpacing:e.letter&&(o.letterSpacingEm=ys(e.letter*oae,4)),o}var Cae=1,Is="--sf-part-para";function vae(e){e=gl(e);let o={};if(typeof e.sizePhone=="number"&&e.sizePhone>0)o.fontSize=He(e.sizePhone,Jr(e,"sizePhone"));else{let r=PC(e.sizeToken);if(r)o.fontSize=yD(r);else{let a=$h(e);a!==void 0&&(o.fontSize=He(a,Jr(e,"sizeTablet")))}}let t=e.alignPhone??Wh(e);return t&&(o.textAlign=t),o}function Wh(e){return e.alignTablet&&e.alignTablet!==e.align?e.alignTablet:void 0}function $h(e){let o=e.sizeTablet!==void 0&&Jr(e,"sizeTablet")!==Jr(e,"size")?e.sizeTablet:ca("textSize",e.size,e.sizeTablet,void 0).tablet;return o&&o>0?o:void 0}function Tae(e){let o=gl(e),t={},r=$h(o);r!==void 0&&(t.fontSize=He(r,Jr(o,"sizeTablet")));let a=Wh(o);return a&&(t.textAlign=a),t}function SD(e,o){if(o==="desktop")return;let t=gl(e);return(o==="mobile"?Wh(t):void 0)??t.align}function kae(e,o){if(o==="desktop")return e;let t=gl(e),r=$h(t),a=Wh(t);if(o==="tablet"){let i=e;return r!==void 0&&(i={...i,size:r,sizeUnit:t[Xt.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[Xt.sizePhone]};else{let i=PC(t.sizeToken);i?n={...n,size:void 0,sizeToken:i}:r!==void 0&&(n={...n,size:r,sizeUnit:t[Xt.sizeTablet]})}let s=t.alignPhone??a;return s&&(n={...n,align:s}),n}function EC(e,o,t){return OC(kae(e,o),Uh,t)}function _C(e){return mD("size",e)}function wD(e,o){if(o==="desktop")return null;let t=gl(e);if(o==="mobile"){if(PC(t.sizeToken))return null;let r=$h(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 CD(e,o){let t=_C(o);if(!We(e,t))return e;let r={...e};return delete r[t],r}function vD(e,o,t){let r=EC(CD(e,o),o,t);return{fontFamily:r.fontFamily,fontSize:r.fontSize}}function OC(e,o,t){e=gl(e);let r=bae(e,t),a=Hd(e),n=e.size?He(e.size,Jr(e,"size")):e.sizeToken?yD(e.sizeToken):r?wae(r):"";return{fontFamily:e.font?Oae(e.font):e.fontRole?`var(${cD[e.fontRole]})`:r?`var(${cD[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`:"",[Is]:e.paragraphSpacing?He(e.paragraphSpacing,Jr(e,"paragraphSpacing")):"",textTransform:yae(e.case),textAlign:e.align??"",paddingTop:dD(e.padding,Jr(e,"padding")),paddingBottom:dD(e.padding,Jr(e,"padding")),color:Pae(e.color),fontStyle:e.italic===!0?"italic":e.italic===!1?"normal":""}}var Pae=e=>zi(e),dD=(e,o)=>e===void 0?"":He(e,o),ys=(e,o)=>Number(e.toFixed(o));function TD(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:Eae(Number.parseInt(e.fontWeight,10)),lineRatio:Number.isFinite(r)?ys(r/t,3):1.2,letterEm:Number.isFinite(a)?ys(a/t,4):0,align:_ae(e.textAlign),case:Iae(e.textTransform),paddingPx:Number.isFinite(n)?Math.round(n):0}}function Eae(e){return Number.isFinite(e)?Zre.reduce((o,t)=>Math.abs(t-e)<Math.abs(o-e)?t:o):400}function _ae(e){for(let o of Nd)if(o===e)return o;return e==="end"?"right":"left"}function kD(e,o){let t=fD(e);if(!t)return"";for(let r of Ha)if(fD(o(r.cssVar))===t)return r.key;return""}var fD=e=>(e.split(",")[0]??"").replace(/["']/g,"").replace(/\s+/g," ").trim().toLowerCase();function Oae(e){let o=hi(e);return o?`var(${o.cssVar})`:""}function PD(e,o,t,r){return!o||Ed(o)?.nodeId!==e?null:t.find(a=>r(a.getAttribute("class")))??t[0]??null}function AC(e,o){return hl($(e,o))??{}}function RC(e,o,t=()=>Uh,r=i=>i,a=Lae,n="desktop",s=()=>!1){let i=0;for(let{element:l,partId:d}of e){let f=Ed(d)?.propKey;if(!f)continue;let u=AC(o,r(f)),p=EC(u,n,{blockDrawsStyle:s(f)});va(u.textStyle)?l.setAttribute?.(kr,u.textStyle):l.removeAttribute?.(kr);let m=IC.some(I=>l.style[I]),h=!1;for(let[I,w]of Object.entries(p))Fae(l,I,w),w&&(h=!0);if(m||IC.some(I=>p[I]))for(let I of Aae(l,a))for(let w of IC)I.style[w]=p[w]??"";h&&(i+=1)}return i}function Aae(e,o){let t=dn(e.textContent??""),r=[],a=e;for(let n=0;n<Rae&&o(a);n+=1){let s=a.parentElement;if(!s||dn(s.textContent??"")!==t)break;r.push(s),a=s}return r}var Rae=8;function Lae(e){let o=e;return typeof window>"u"||!o?.ownerDocument?!1:window.getComputedStyle(o).display==="inline"}var Uh={fontKey:"",sizePx:16,weight:400,lineRatio:1,letterEm:0,align:"left",case:"none",paddingPx:0};function LC(e){if(!e||typeof e!="object")return null;let o={};va(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=Xt[t];o[t]!==void 0&&bC(e[r])&&(o[r]=e[r])}return Object.keys(o).length?o:null}function FC(e,o){let t=LC(e);if(!t)return{};let r=EC(t,o);return{...r.fontFamily?{fontFamily:r.fontFamily}:{},...r.fontSize?{fontSize:r.fontSize}:{}}}function ED(e){return va(e?.textStyle)||!!e?.role||typeof e?.size=="number"&&e.size>0}function _D(e,o,t){if(!e||typeof e!="object")return{};let r=Vp(e.role,o,xi)??{},a=o.sized?FC(CD(e,t),t):{};return{...r,...a}}function OD(e,o,t){t.fontFamily&&e.fontFamily===t.fontFamily&&(e.fontFamily=o.fontFamily),t.fontSize&&e.fontSize===t.fontSize&&(e.fontSize=o.fontSize)}function Fae(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===Is&&(t?a.setAttribute?.(pD,""):a.removeAttribute?.(pD))}var pD="data-sf-part-para",zh=Object.keys(OC({},Uh)),yC=new Set(["color","overflowWrap",Is,"fontStyle"]),IC=zh.filter(e=>!yC.has(e));function AD(e,o,t,r=i=>i,a=()=>!1,n=()=>null,s=[]){let i=new Map;for(let u of e){let p=Xr(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(!Bae(u))continue;let p=uD(t,u,hl(o[u])??{},!1,n(u));p&&l.set(u,p)}let d=u=>{let p=r(u),m=n(p);if(!We(o,p)&&!m)return null;let h=hl(o[p])??{};return uD(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(Xr(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 uD(e,o,t,r,a){let n=OC(t,Uh,{blockDrawsStyle:r}),s=Tae(t),i=vae(t),l=va(t.textStyle)?t.textStyle:void 0;return!Object.values(n).some(Boolean)&&!Object.keys(s).length&&!Object.keys(i).length&&!l&&!a?null:{stamp:Nae(e,o),declarations:n,...Object.keys(s).length?{tablet:s}:{},...Object.keys(i).length?{phone:i}:{},...l?{textStyle:l}:{},...a?{motion:a}:{}}}function Bae(e){return e.startsWith("@")}function BC(e,o){return e?.kindRules.get(o)??null}function Nae(e,o){let t=r=>r.replace(/[^A-Za-z0-9_-]+/g,"-");return`${t(e)}~${t(o)}`}function NC(e){return e?{tablet:iD,phone:Fd}:{tablet:Bh,phone:Nh}}function RD(e,{inBox:o=!1}={}){let{tablet:t,phone:r}=NC(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])=>`${Dae(C)}: ${b}`).join("; "),p=`[${SC}="${l}"]`,m=f.filter(([S])=>!yC.has(S)),h=f.filter(([S])=>yC.has(S));m.length&&a.push(`${p}, *:has(> ${p}) { ${u(m)} }`),h.length&&a.push(`${p} { ${u(h)} }`),d[Is]&&(a.push(`*:has(> ${p}) { ${Is}: ${d[Is]} }`),a.push(...Gh(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 Gh(e,o){let t=`var(${Is})`,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 Dae=e=>e.replace(/[A-Z]/g,o=>`-${o.toLowerCase()}`);function LD(e,o){if(!e)return null;let t=dn(o),r=e.rules.get(t);if(r)return r;if(t.length<Mae||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 Mae=8;function FD(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 DC=e=>e==="sentence"?"none":void 0,MD=["font","color","size","sizeTablet","sizePhone","weight","italic","lineHeight","lineHeightTablet","lineHeightPhone","letterSpacing","letterSpacingTablet","letterSpacingPhone","paragraphSpacing","paragraphSpacingTablet","paragraphSpacingPhone","letterCase","largestSize","largestSizeTablet","largestSizePhone"],Il=["desktop","tablet","phone"],Ss=(e,o)=>Pe(e,o);function WC(e,o,t,r=yi()){return DD("textSize",o,e.sizeTablet,e.sizePhone,r)[t]}var Wae=[["lineSpacing","lineHeight","line"],["letterSpacing","letterSpacing","letter"]];function MC(e){for(let[o,t,r]of Wae)for(let a of Il)if(e===Ss(o,a))return{key:Pe(t,a),view:a,spacing:r};return{key:e,view:"desktop",spacing:null}}function Qr(e){let o={};for(let t of MD)e[t]!==void 0&&(o[t]=e[t]);return o}function $C(e,o){let{auto:t,...r}=e,a=new Set(o??[]),n=MD.filter(s=>a.has(s)&&e.values[s]===void 0);return n.length?{...r,auto:n}:r}function HD(e){let o=e.fonts,t=e.sizes,r=e.typography,a=rO(e.compression),n={"heading-1":{font:Se(o.heading),size:V(t.headingLarge),weight:V(r.weight),lineHeight:a.lineHeight,letterSpacing:a.letterSpacing,letterCase:DC(r.case),largestSize:V(r.maxPx)},"heading-2":{font:Se(o.heading2),size:V(t.headingMedium),weight:V(r.weight2),lineHeight:a.lineHeight,letterSpacing:a.letterSpacing,letterCase:DC(r.case2)},"heading-3":{font:Se(o.heading3),size:V(t.headingSmall),weight:V(r.weight3),lineHeight:a.lineHeight,letterSpacing:a.letterSpacing,letterCase:DC(r.case3)},"body-1":{font:Se(o.body),size:V(t.body)},"body-5":{font:Se(o.label),size:V(t.label)}};return ND().map(({id:s,kind:i,name:l})=>({id:s,kind:i,name:l,values:Qr(n[s]??{})}))}function UC(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=>$C({...o,values:Qr(o.values??{})},Array.isArray(o.auto)?o.auto:void 0)):null}function WD(e){return UC(e)??[]}function $D(e){return UC(e)??ND().map(({id:o,kind:t,name:r})=>({id:o,kind:t,name:r,values:{}}))}function ka(e,o){let t=HD(o),r=UC(e);return r?r.map(a=>{let n={...HC(t,a.id)};for(let s of a.auto??[])delete n[s];return{...a,values:Qr({...n,...a.values})}}):t}var HC=(e,o)=>e.find(t=>t.id===o)?.values??{},BD=["heading-1","heading-2","heading-3"];function UD({saved:e,old:o,cur:t,next:r,sizeOf:a,panelView:n="desktop"}){let s=HD(o),i=$D(e),l=ka(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=$ae([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=>MC(v).spacing==="letter";b.sort((v,L)=>Number(y(v))-Number(y(L)));for(let v of b){let{key:L,view:O,spacing:N}=MC(v),k=L,F=S[v];if(F===void 0){delete I[k],HC(s,p.id)[k]!==void 0&&(d.push([p.id,k]),w.add(k));continue}if(w.delete(k),N==="line")I[k]=yl(F/100,3);else if(N==="letter"){let T={...l.find(A=>A.id===p.id)?.values??{}};for(let A of b)S[A]===void 0&&delete T[MC(A).key];let _=Qr({...T,...I}),P=WC(_,a({...p,values:_}),O);I[k]=P?yl(F/P,4):0}else I[k]=F}return $C({id:p.id,kind:p.kind,name:p.name,values:Qr(I)},w)}),u=o.compression;if(d.some(([p,m])=>(m==="lineHeight"||m==="letterSpacing")&&BD.includes(p))&&$n(u)!=="normal"){for(let p of BD){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]=HC(s,p)[I]);m.values=Qr(h)}u="normal"}return{saved:f,old:{...o,compression:u}}}function zD(e,o){let t={text_styles:e.saved};return e.old.compression!==o.compression&&(t.heading_compression=$n(e.old.compression)),t}var yl=(e,o)=>Number(e.toFixed(o)),GD=(e,o)=>Il.indexOf(e)<Il.indexOf(o)?o:e;function jD(e,o,t="desktop"){return e.map(r=>{let a={...r.values},n=o(r);for(let s of Il){let i=Pe("lineHeight",s),l=r.values[i],d=r.values[Pe("letterSpacing",s)];delete a[i],l!==void 0&&(a[Ss("lineSpacing",s)]=yl(l*100,1));let f=GD(s,t);d!==void 0&&(a[Ss("letterSpacing",s)]=yl(d*WC(r.values,n,f),f===s?2:4))}return{id:r.id,kind:r.kind,name:r.name,values:a}})}function $ae(e,o,t="desktop"){return e.map(r=>{let a=r.values,n={...a};for(let d of Il)delete n[Ss("lineSpacing",d)],delete n[Ss("letterSpacing",d)];let s={id:r.id,kind:r.kind,name:r.name,values:Qr(n)},i={...s.values},l=o({...s,values:{...s.values}});for(let d of Il){let f=a[Ss("lineSpacing",d)],u=a[Ss("letterSpacing",d)];if(typeof f=="number"&&(i[Pe("lineHeight",d)]=yl(f/100,3)),typeof u=="number"){let p=WC(s.values,l,GD(d,t));i[Pe("letterSpacing",d)]=p?yl(u/p,4):0}}return{...s,values:Qr(i)}})}function p5e(e){let o={fonts:vc({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:qy({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:$n(e.heading_compression),typography:nO(e)},t=e.text_styles??null,r=Array.isArray(t)?zC(ka(t,o),o):o;return{fonts:vc(r.fonts),sizes:qy(r.sizes),compression:$n(r.compression),typography:r.typography,textStyles:t}}function zC(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 KD(e){let o=[];for(let t of e){let r=t.values,a=`.${FD(t)}`,n=`[${kr}="${t.id}"]`,s=`${a}, ${n}`,i=[],l=r.font!==void 0?Ha.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=zi(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=Hae(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(...Gh(`:is(${s})`,`*:has(> ${n})`))),o.push(...Uae(t,s,a,n))}return o.join(`
4
+ `)}function Uae(e,o,t,r){let a=e.values,n=ca("textSize",a.size,a.sizeTablet,a.sizePhone),s=ca("textSize",a.largestSize,a.largestSizeTablet,a.largestSizePhone),i=ca("same",a.lineHeight,a.lineHeightTablet,a.lineHeightPhone),l=ca("same",a.letterSpacing,a.letterSpacingTablet,a.letterSpacingPhone),d=ca("spacing",a.paragraphSpacing,a.paragraphSpacingTablet,a.paragraphSpacingPhone),f=DD("textSize",a.size,a.sizeTablet,a.sizePhone,yi()),u=zae[e.id],p=[];for(let[m,h]of[["tablet",Bh],["phone",Nh]]){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(...Gh(`: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 zae={"heading-1":"headingLarge","heading-2":"headingMedium","heading-3":"headingSmall","body-1":"body","body-5":"label"};function VD(e){return e!==!0&&e!==!1?"":`em.text-accent { font-style: ${e?"italic":"normal"} }`}function YD(e){return e?Hh[e]:void 0}function GC(e){let o=Hd(e);return Qr({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 qD(e){return Object.keys(GC(e)).length>0}function XD({saved:e,old:o,styleId:t,values:r}){let a=$D(e);return{saved:Gae(a,t,r),old:o}}function Gae(e,o,t){return e.map(r=>r.id===o?$C({...r,values:Qr({...r.values,...t})},r.auto):r)}var ZD=["font","color","size","weight","emphasis","lineSpacing","letterSpacing","paragraphSpacing","letterCase","largestSize"],qae=["size","lineSpacing","letterSpacing","letterCase"],Xae=500,jC=Ha.map(e=>({value:e.key,label:e.label,family:`var(${e.cssVar})`,italic:e.italicLoaded}));function JD({saved:e,old:o,colours:t,colourNameOf:r,sizeOf:a,onChange:n,openId:s,onOpenChange:i,readOnly:l=!1,withoutSize:d=!1}){let f=Yae(),[u,p]=Kae(null),m=ka(e,o),h=Ai(f),I=jD(m,a,h);return jae(Vae,{styles:I,onChange:w=>n(UD({saved:e,old:o,cur:I,next:w,sizeOf:a,panelView:h})),fonts:jC,colours:t,colourNameOf:r,settings:d?ZD.filter(w=>w!=="size"):ZD,auto:qae,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=Xae),C}})}var eM=["font","size","weight","emphasis"],Qae=500;function ene({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 one(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 oM(e){let{headingWeight:o,open:t,onOpenChange:r,onChange:a,withoutSize:n=!1}=e,s=ene(e);return QD(Jae,{label:c("Emphasis"),children:QD(Zae,{style:s,fonts:jC,settings:n?eM.filter(i=>i!=="size"):eM,auto:["size"],fallback:()=>({weight:o??Qae}),open:t,onOpenChange:r,onChange:i=>one(s,i).forEach(a)})})}import{viewKeyAt as sM}from"efficient-easel/draw";import{shownUnitAt as ine,unitKeyOnWrite as lne}from"efficient-easel/screen/lib/content/length-units";import{convertRowLength as tne,rowUnits as rne,unitPickPatch as ane}from"efficient-easel/screen/lib/content/length-units";import{viewKeyAt as nne}from"efficient-easel/draw";var sne=["cornerRadius","siteWidth","siteGutter","siteGutterPhone","blockGap","blockGapPhone"],jh={cornerRadius:{number:"corner_radius_px",kind:"radius",grid:Y0,tier:"desktop"},siteWidth:{number:"site_width",kind:"size",grid:Ke,tier:"desktop"},siteGutter:{number:"site_gutter",kind:"spacing",grid:$o,tier:"desktop"},siteGutterPhone:{number:"site_gutter_phone",kind:"spacing",grid:zt,tier:"mobile"},blockGap:{number:"block_gap",kind:"gap",grid:Vt,tier:"desktop"},blockGapPhone:{number:"block_gap_phone",kind:"gap",grid:Vt,tier:"mobile"}};function Kh(e){return{number:jh[e].number,unit:O0[`${e}Unit`]}}function tM(e,o,t){let r=Ae(t),{number:a,unit:n}=Kh(e);return{[a]:o,[n]:o===null||r==="px"?null:r}}function Vh(e,o,t,r){let{kind:a,grid:n,tier:s}=jh[e],i=Ae(t),l=Ae(r),d=n.typedMax,f=d!==void 0&&l==="px"?{...n,max:d}:n;return i===l?o:tne(o,i,l,s,{kind:a},f)}function rM(e,o,t,r){let{number:a,unit:n}=Kh(e),s=ane({[a]:o},i=>Vh(e,i,t,r),n,Ae(r),"px");return{[a]:s[a],[n]:s[n]??null}}function aM(e,o){let{kind:t,grid:r}=jh[e];return _0(t,Ae(o),r)}function nM(e){return rne({kind:jh[e].kind},ba)}function KC(e,o){let t=nne(e,o);if(!sne.includes(t))throw new Error(`no site length row ${t}`);return t}function Wd(e,o,t,r,a){let{siteLengthUnits:n,setSiteLengthUnits:s}=pe(),i=`${e}Unit`,l=n[i],d=ine({n:a?.figure??null,u:a?.unit??null,[sM("n","mobile")]:o,[sM("u","mobile")]:l??null},{n:"n"},"u","mobile"),f=h=>s({[i]:h==="px"?null:h}),u=h=>{t(h);let I=lne(i,l,d,"px",h===null);i in I&&f(I[i]==null?null:Ae(I[i])),r(tM(e,h,d),h===null)},p=h=>{let I=Ae(h);if(I===d||(f(I),o===null))return;let w=rM(e,o,d,I);t(w[Kh(e).number]),r(w,!0)},m=a?a.unit===d?a.figure:Vh(e,a.figure,a.unit,d):null;return{length:{unit:d,grid:aM(e,d),units:{options:nM(e),onChange:p,label:c("Unit")}},write:u,rest:m,shown:h=>Vh(e,h,"px",d)}}import{EmptyState as Ane,SliderGroup as Rne,Tabs as Lne,Tooltip as KWe,tabButtonId as Fne,tabPanelId as Bne}from"efficient-shell/ui";import{ContrastIcon as Nne,SettingsIcon as Dne,TypeIcon as Mne}from"efficient-easel/icons";function iM(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 yne,PaddingTopIcon as bne}from"efficient-easel/icons";import{jsx as Yh}from"react/jsx-runtime";import{SettingsDefaultReset as cne,SettingsField as dne,SettingsSegmented as fne}from"efficient-easel/panel";import{WidthIcon as pne}from"efficient-easel/icons";function lM({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 Yh(dne,{label:d,labelId:a,icon:Yh(pne,{}),value:i?n:void 0,changed:!i,action:Yh(cne,{words:de()?.panel,label:d,changed:!i,onReset:()=>t(void 0)}),hint:s,children:Yh(fne,{options:[{label:c(ls.full),id:"full"},{label:c(ls.page),id:"content"}],value:l,ariaLabel:d,onChange:t})})}import{HEADER_TYPE as VC,FOOTER_TYPE as une}from"efficient-easel/draw";var mne=new Set(["Hero","HeroSingle","IntroBleed"]),cM={min:56,max:140,default:88},J5e={min:0,max:120,step:2,default:32},Q5e=`var(--sf-header-h, ${cM.default}px)`,hne="--sf-header-set-h",eWe="--sf-header-h",oWe=`var(${hne}, ${cM.default}px)`,dM="sf-header-clearance",fM="sf-sticky-underheader";function $d(e){return e?.find(o=>o?.type&&o.type!==VC)??null}function pM(e){let o=$d(e)?.type;return!o||!mne.has(o)}function uM(e){return!pM(e)}function YC(e){return!!e?.some(o=>o?.type===VC)}function mM(e){return!e||e.length===0?!1:!e.some(o=>o?.type===VC||o?.type===une)}var xne=["auto","shared","own"],qC="auto",gne="topSpace",hM="data-top-space";function Ine(e){return Q(xne,qC,e)}function XC(e,o){let t=Ine(e?.props?.[gne]);return t==="own"?!0:t==="shared"?!1:pM(o)}function xM(e,o){return XC(e,o)?"own":null}function Sne(){return{type:"custom",render:({value:e,onChange:o})=>JC(lM,{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 wne=[{label:"Auto",value:"auto"},{label:"Shared",value:"shared"},{label:"Its own",value:"own"}],pWe={pageBackground:ZB(),topSpace:ft("Top space",JC(bne,{}),wne,qC),widthChoice:Sne()},Ud=["pageBackground","topSpace","widthChoice"],Cne="Record type",ZC=new Map,gM=-1;function vne(e){gM!==Eb()&&(ZC.clear(),gM=Eb());let o=kb(),t=o.some(a=>a.key===e)?"":e,r=ZC.get(t);return r||(r=ft(Cne,JC(yne,{}),[...o.map(a=>({label:a.label,value:a.key})),...t?[{label:t,value:t}]:[]],Ut),ZC.set(t,r)),r}var IM=new WeakMap;function uWe(e,o){if(!Yc()||kb().length<2||zu in e)return e;let t=vne(Vc(o)),r=IM.get(e);if(r&&r.row===t)return r.fields;let a={[zu]:t,...e};return IM.set(e,{row:t,fields:a}),a}import{previewFrame as Hne}from"efficient-easel/screen/lib/document/preview-dom";var yM="background";function bM(e){let o=gt(ki(e));return Gi({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 SM(e){return bM(e).filter(o=>o.key!==yM)}function wM(e){let o=bM(e).filter(t=>t.key===yM);return t=>{let r=Ot(t);return o.find(a=>a.key===r)?.value??r}}import{useEasel as Tne}from"efficient-easel/easel";function qh({themeFromDocument:e,persist:o}){let{appState:t,dispatch:r}=Tne(O=>O),{fonts:a,setFonts:n,sizes:s,setSizes:i,headingCompression:l,setHeadingCompression:d,headingTypography:f,setHeadingTypography:u,textStyles:p,setTextStyles:m}=pe(),h=t.data,I=h.root?.props??{},w=e?vc(I.fonts):a,S=e?K0:s,C=e?$n(I.headingCompression):l,b=e?fu(I.headingTypography):f,y={fonts:w,sizes:S,compression:C,typography:b},v=e?I.textStyles:p,L=O=>r({type:"replaceRoot",root:{...h.root,props:{...I,...O}},recordHistory:!0});return{fonts:w,sizes:S,compression:C,typography:b,old:y,saved:v,write:(O,N)=>{let k=zC(ka(O.saved,O.old),O.old);e?L({textStyles:O.saved,fonts:k.fonts,headingCompression:k.compression,headingTypography:k.typography}):(m(O.saved),n(k.fonts),i(k.sizes),d(k.compression),u(k.typography)),o(zD(O,y),N)},writeRoot:L}}import{pictureShadowColor as Wne}from"efficient-easel/screen/lib/document/shadow-values";var ev="sf-site-styles",$ne="sf-site-styles-tabpanel",TM="text",wl="basics",CM="this-page-group",bl=[{id:wl,label:"Basics",icon:_e(Dne,{})},{id:"theme",label:"Theme",icon:_e(Nne,{})},{id:"text",label:"Text",icon:_e(Mne,{})}];function Une({themeFromDocument:e,persist:o}){let{appState:t,dispatch:r}=vM(d=>d),{theme:a,setTheme:n}=pe(),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 _e($N,{value:e?i.theme:a,onChange:l})}function zne({themeFromDocument:e,persist:o}){let[t,r]=ov(null),{theme:a,setFonts:n,setSizes:s,setHeadingTypography:i}=pe(),l=qh({themeFromDocument:e,persist:o}),{old:d,saved:f,writeRoot:u}=l,p=l.fonts,m=l.sizes,h=l.typography,I=O=>O.values.size??Vne(Gne[O.id]??"body")??jne[O.kind],w=O=>l.write(O),S=SM(a),C=wM(a),b=O=>{let N={...p,accent:O};e?u({fonts:N}):n(N),o({accent_font:O})},y=O=>{s({...m,accent:O}),o({accent_size_px:O})},v=O=>{let N={...h,weightStrong:O};e?u({headingTypography:N}):i(N),o({heading_weight_strong:O})},L=O=>{let N={...h,italicStrong:O};e?u({headingTypography:N}):i(N),o({accent_italic:O})};return ws(Sl,{children:[_e(JD,{saved:f,old:d,colours:S,colourNameOf:C,sizeOf:I,onChange:w,openId:t===QC?null:t,onOpenChange:r,withoutSize:e}),_e(oM,{font:p.accent,size:m.accent,weight:h.weightStrong,italic:h.italicStrong,headingWeight:h.weight,open:t===QC,onOpenChange:O=>r(O?QC:null),onChange:O=>{O.key==="font"?b(O.value):O.key==="size"?y(O.value):O.key==="weight"?v(O.value):L(O.value)},withoutSize:e})]})}var QC="accent",Gne={"heading-1":"heading","heading-2":"heading2","heading-3":"heading3","body-1":"body","body-5":"label"},jne={heading:32,body:14},Kne={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 Vne(e){if(typeof document>"u")return null;let o=(Hne()?.contentDocument??document).querySelector(Kne[e]);if(!o)return null;let t=parseFloat(getComputedStyle(o).fontSize);return Number.isFinite(t)?t:null}function Yne({themeFromDocument:e,persist:o}){let{appState:t,dispatch:r}=vM(p=>p),{cornerRadiusPx:a,setCornerRadiusPx:n}=pe(),s=t.data,i=s.root?.props??{},l=i.cornerRadiusPx===void 0?du[cu(i.cornerStyle)]:Ht(i.cornerRadiusPx),d=e?l:a,f=Wd("cornerRadius",a,n,o),u=p=>r({type:"replaceRoot",root:{...s.root,props:{...i,...p}},recordHistory:!0});return _e(UN,{value:d,onChange:p=>{e?(u({cornerRadiusPx:p}),o({corner_radius_px:p})):f.write(p)},...e?{}:{length:f.length}})}function qne({persist:e}){let{siteWidth:o,setSiteWidth:t,sectionBackgroundWidth:r,setSectionBackgroundWidth:a,sectionContentWidth:n,setSectionContentWidth:s}=pe(),i=tv(),l=Wd("siteWidth",o??null,t,e);if(i!=="desktop")return null;let d=typeof o=="number"?o:l.shown(Ke.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 ws(Sl,{children:[_e(Rh,{value:r??"full",changed:r!==null,detail:c("Full width"),onChange:u,onReset:()=>u(null),hint:rD}),_e(Lh,{mode:n??"content",px:d,min:Ke.min,max:Ke.max,changed:typeof o=="number"||n!==null,detail:`${c("Content width")} ${Ke.default}px`,onMode:p,onPx:m=>f(m),onReset:()=>{p(null),f(null)},hint:aD,length:l.length})]})}function Xne({persist:e}){let{siteGutter:o,siteGutterPhone:t,setSiteGutter:r,setSiteGutterPhone:a,siteLengthUnits:n}=pe(),s=oD(tv(),{gutter:o,phone:t,gutterUnit:n.siteGutterUnit}),i=s?.key==="site_gutter_phone",l=Wd(KC("siteGutter",i?"mobile":"desktop"),s?.value??null,i?a:r,e);return s?_e(tD,{value:s.value,onChange:l.write,unsetPx:s.unsetPx,restsOn:l.shown(s.unsetPx),bounds:s.bounds,length:l.length}):null}function Zne({persist:e}){let{blockGap:o,blockGapPhone:t,setBlockGap:r,setBlockGapPhone:a,siteLengthUnits:n}=pe(),s=YN(tv(),{gap:o,phone:t}),i=s?.key==="block_gap_phone",l=s?.followsPx==null?null:{figure:s.followsPx,unit:Ae(n.blockGapUnit)},d=Wd(KC("blockGap",i?"mobile":"desktop"),s?.value??null,i?a:r,e,l);return s?_e(qN,{value:s.value,onChange:d.write,followsPx:d.rest,followsUnit:d.length.unit,length:d.length}):null}function Jne({persist:e}){return ws(Sl,{children:[_e(qne,{persist:e}),_e(Xne,{persist:e}),_e(Zne,{persist:e})]})}function Qne(e){return{card_shadow:e}}function ese(e){return e===null?{shadow_color:null}:{shadow_color:Wne(e)}}function ose(e){return{hover_effect:e}}function tse({persist:e}){let{cardShadow:o,setCardShadow:t,shadowColor:r,setShadowColor:a,hoverEffect:n,setHoverEffect:s}=pe();return ws(Sl,{children:[_e(zN,{value:o,onChange:i=>{t(i),e(Qne(i),!0)}}),_e(KN,{value:r,onChange:i=>{a(i),e(ese(i),i===null)}}),_e(XN,{value:n,onChange:i=>{s(i),e(ose(i),!0)}})]})}function rse(e){return{photography_grayscale:e}}function ase({persist:e}){let{photographyGrayscale:o,setPhotographyGrayscale:t}=pe();return _e(JN,{value:o,onChange:r=>{t(r),e(rse(r),!0)}})}function nse({persist:e}){return _e(Sl,{children:_e(ase,{persist:e})})}function sse(e){return{share_button_on_posts:e}}function ise({persist:e}){let{shareButtonOnPosts:o,setShareButtonOnPosts:t}=pe();return _e(QN,{value:o,onChange:r=>{t(r),e(sse(r),!0)}})}function Cl(){let{websiteName:e}=pe();return e?.trim()||JO}function Xh({themeFromDocument:e=!1,tokenRef:o,siteId:t,onNotify:r,tab:a,onTabChange:n,initialTab:s,revealPageGroup:i=!1,onPageGroupRevealed:l}){let{persist:d}=qi({themeFromDocument:e,tokenRef:o,siteId:t,onResult:w=>{let S=iM(w);S&&r?.(S.msg,S.tone)}}),[f,u]=ov(s??bl[0].id),p=a!==void 0,m=p?a:f,h=p?n??(()=>{}):u,I=bl.find(w=>w.id===m)??bl[0];return ws(Rne,{children:[_e(dse,{activeId:I.id,onSelect:h}),ws("div",{id:Bne(ev,I.id),className:$ne,role:"tabpanel","aria-labelledby":Fne(ev,I.id),children:[m===wl&&ws(Sl,{children:[_e(Yne,{themeFromDocument:e,persist:d}),!e&&_e(tse,{persist:d}),!e&&_e(Jne,{persist:d}),!e&&_e(nse,{persist:d}),!e&&_e(ise,{persist:d}),_e(lse,{reveal:i,onRevealed:l})]}),m==="theme"&&_e(Une,{themeFromDocument:e,persist:d}),m==="text"&&_e(zne,{themeFromDocument:e,persist:d})]})]})}function lse({reveal:e,onRevealed:o}){let[t,r]=ov(!0),a=One(o);return a.current=o,_ne(()=>{if(!e)return;r(!0);let n=requestAnimationFrame(()=>{document.getElementById(CM)?.scrollIntoView({block:"start"}),a.current?.()});return()=>cancelAnimationFrame(n)},[e]),_e(Ene,{title:c("This page"),open:t,onToggle:r,id:CM,children:_e(cse,{})})}function cse(){let{fields:e,values:o,readOnly:t,onChange:r}=kne(),a=Object.fromEntries(Ud.filter(n=>n in e).map(n=>[n,e[n]]));return Object.keys(a).length===0?_e(Ane,{variant:"none",icon:!1,message:c("This page has no look of its own to set.")}):_e(Pne,{fields:a,values:o,onChange:r,readOnly:t,tabs:!1,idPrefix:"this-page",ariaLabel:c("This page")})}function dse({activeId:e,onSelect:o}){return _e("div",{className:"es-insp-tabs",children:_e(Lne,{variant:"underline",block:!0,labelsFit:!0,"aria-label":c("Styles"),idPrefix:ev,value:e,onChange:o,items:bl.map(t=>{let r=c(t.label);return{id:t.id,icon:t.icon,label:r}})})})}import{InspectorIconButton as USe}from"efficient-easel/chrome";import{Input as zSe,PopupMenu as GSe,PopupMenuItem as Hj,toast as Wj}from"efficient-shell/ui";import{LayersTree as jSe,TreeGroupLabel as KSe,TreeRow as $j,TreeRowAction as PI}from"efficient-easel/tree";import{AddIcon as VSe,DuplicateIcon as YSe,PageIcon as qSe,SettingsIcon as XSe}from"efficient-easel/icons";import{PagesIcon as ZSe}from"efficient-easel/rail";import{useEaselHost as JSe}from"efficient-easel/screen/lib/host";import{useEaselSession as RP}from"efficient-easel/screen/lib/session-context";import{useCallback as Zh,useEffect as fse,useSyncExternalStore as pse}from"react";import{useScreenDocument as _M}from"efficient-easel/screen/components/ScreenDocumentContext";var kM=new WeakMap;function zd(e){let o=kM.get(e);return o||(o={rows:null,loading:null,listeners:new Set},kM.set(e,o)),o}function rv(e,o){e.rows=o;for(let t of e.listeners)t()}var Jh=new Set;function Qh(e,o){o?Jh.add(e):Jh.delete(e)}function PM(e){let o=zd(e),t=e.listPages().then(r=>rv(o,Jh.size?r.filter(a=>!Jh.has(a.id)):r),()=>rv(o,[])).finally(()=>{o.loading===t&&(o.loading=null)});return o.loading=t,t}var EM=()=>null,use=()=>()=>{};function Gd(){let{adapter:e,ready:o}=_M(),t=Zh(i=>{let{listeners:l}=zd(e);return l.add(i),()=>l.delete(i)},[e]),r=Zh(()=>zd(e).rows,[e]),a=pse(o?t:use,o?r:EM,EM);fse(()=>{if(!o)return;let i=zd(e);i.rows===null&&!i.loading&&PM(e)},[e,o]);let n=Zh(()=>o?PM(e):Promise.resolve(),[e,o]),s=Zh(i=>rv(zd(e),i),[e]);return{rows:a,reload:n,setRows:s,getRows:r}}function mse(e,o){return e?.find(t=>t.slug===o)?.label?.trim()||`/${o}`}function OM(){let{currentSlug:e}=_M(),{rows:o}=Gd();return mse(o,e)}import{canDuplicatePage as QSe,DuplicatePageDialog as ewe}from"efficient-easel/page-copy";import{jsx as Nt,jsxs as PP}from"react/jsx-runtime";import{useEffect as bSe,useId as SSe,useMemo as wSe,useRef as CSe,useState as EP}from"react";import{useScreenDocument as vSe}from"efficient-easel/screen/components/ScreenDocumentContext";import{useEaselSession as TSe}from"efficient-easel/screen/lib/session-context";import{uniqueSlug as Oj}from"efficient-easel/page-copy";import{AddIcon as kSe}from"efficient-easel/icons";import{Dialog as PSe,EmptyState as ESe,Grid as _Se,LoadingSpinner as OSe,Paragraph as ASe,SidebarActionButton as RSe,SidebarLayout as LSe,SidebarNavItem as _P,Title as FSe,toast as Aj}from"efficient-shell/ui";import{jsx as _r,jsxs as eU}from"react/jsx-runtime";import{useMemo as vhe,useState as The}from"react";import{CanvasFrame as khe}from"efficient-easel/easel";import{Button as Phe,Card as Ehe,FitFrame as _he,Text as Ohe}from"efficient-shell/ui";import{jsx as BM,Fragment as kse,jsxs as Pse}from"react/jsx-runtime";import{useEffect as NM,useLayoutEffect as Ese}from"react";var ex="data-theme",AM="light";function hse(e){return e.getAttribute(ex)===AM?"light":"dark"}function xse(e,o){return hse(e)===o?!1:(o==="light"?e.setAttribute(ex,AM):e.removeAttribute(ex),!0)}function gse(e){return tb(e).getItem(jy)}function p3e(e,o){tb(e).setItem(jy,o)}function Ise(e,o,t=new Date().getHours()){return A0({mode:o.mode,override:gse(e),switchShown:o.switchShown,hour:t})}function RM(e,o){let t=e.documentElement;if(!t)return()=>{};let r=()=>xse(t,Ise(e,o));r();let a=e.defaultView?.MutationObserver;if(!a)return()=>{};let n=new a(r);return n.observe(t,{attributes:!0,attributeFilter:[ex]}),()=>n.disconnect()}var yse="style";function bse(e,o){let t=lu(o),r=!1;for(let a of j0){let n=t[a]??"";e.style.getPropertyValue(a)!==n&&(n?e.style.setProperty(a,n):e.style.removeProperty(a),r=!0)}return r}function LM(e,o){let t=e.body;if(!t)return()=>{};let r=()=>bse(t,o);r();let a=e.defaultView?.MutationObserver;if(!a)return()=>{};let n=new a(r);return n.observe(t,{attributes:!0,attributeFilter:[yse]}),()=>n.disconnect()}import{VIEW_DESKTOP_MIN as Sse,VIEW_TABLET_MIN as wse}from"efficient-easel/screen/lib/content/view-tiers";var Pa={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=Pa,Cse=e=>e.flatMap(o=>[`[${o}] p`,`[${o}] li`]).join(","),vse=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(Cse([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 = ${wse}, DESKTOP_MIN = ${Sse};
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);`,Tse="storefront-fit-words";function FM(e){let o=e.createElement("script");return o.id=Tse,o.textContent=vse,(e.head??e.documentElement).appendChild(o),()=>{e.__sfFitWords?.(),o.remove()}}var _se=`
306
+ [${fo}][${fo}] { cursor: text; }
307
+ `;function ox({children:e,document:o}){let{theme:t,themeMode:r,themeSwitchShown:a}=pe(),n=ko(t);return NM(()=>{if(o)return RM(o,{mode:r,switchShown:a})},[o,r,a]),NM(()=>{if(o)return LM(o,n)},[o,n]),Ese(()=>{if(o)return FM(o)},[o]),Pse(kse,{children:[BM(i1,{}),BM("style",{children:_se}),e]})}import{jsx as r6}from"react/jsx-runtime";import{memo as ume}from"react";import{Render as mme}from"efficient-easel/render";import{jsx as vl}from"react/jsx-runtime";import{createContext as Ose,useContext as Ase,useMemo as Rse}from"react";var av=Ose(null);function Lse({children:e}){return vl(av.Provider,{value:"first",children:e})}function rx({children:e}){return vl(av.Provider,{value:"below",children:e})}function jd(){return Ase(av)}function nv(){return jd()==="below"?{loading:"lazy"}:{}}function ax(e){let o=nv();return vl("img",{...e,...o})}var DM="laterSlideIds",Fse=new Set(["Breadcrumb","CategoryBar","Divider","Spacer","Ticker"]);function MM(e){return $d(e?.filter(o=>!o?.type||!Fse.has(o.type)))}function tx(e,o=[]){if(Array.isArray(e))for(let t of e)tx(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))tx(r,o)}return o}function HM(e,o){let t=o?.type,r=o?.props?.id;return Rse(()=>{let a=t?e.components[t]:void 0;if(!t||!a)return e;let n=a.render,s=i=>i.id===r?vl(Lse,{children:vl(n,{...i})}):vl(n,{...i});return{...e,components:{...e.components,[t]:{...a,render:s}}}},[e,t,r])}function WM(e){return e.props?go(e,o=>{let t=io(o,WM),r=e.type===SO&&t.every(a=>a.type===pu)?IO(t):t;return r.length!==o.length||r.some((a,n)=>a!==o[n])?r:o}):e}function $M(e){return Ap(e,o=>io(o,WM))}var Bse="Flex",UM="ListSearch",zM=["FAQ"],Nse="listKey";function GM(e,o){let t={search:e.type===UM,list:zM.includes(String(e.type))};return go(e,r=>{for(let a of r){let n=GM(a,o);t.search||=n.search,t.list||=n.list}return r}),e.type===Bse&&t.search&&t.list&&String(e.props?.id??"")?(o.add(e),{search:!1,list:!1}):t}function jM(e,o,t){let r=o.has(e)?String(e.props?.id):t,a=go(e,n=>io(n,s=>jM(s,o,r)));return r&&(e.type===UM||zM.includes(String(e.type)))?{...a,props:{...a.props,[Nse]:r}}:a}function KM(e){return mi(e,o=>{let t=new Set;for(let r of o)GM(r,t);return t.size?io(o,r=>jM(r,t,"")):o})}import{isNode as _le,isNodeList as C2}from"efficient-easel/data";import{jsx as Ye,Fragment as gle,jsxs as Aa}from"react/jsx-runtime";import{jsx as qM}from"react/jsx-runtime";import{SITE_SIDE as Dse}from"efficient-easel/screen/lib/content/length-units";var VM="sideSpace",Cs=Dse,N3e=[{value:"box",label:"Box"},{value:Cs,label:"Site"}],D3e="box",M3e="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 YM(e){return e===Cs?Cs:"box"}function H3e(e){return e===Cs?Cs:void 0}import{isNodeList as Mse}from"efficient-easel/data";var sv=new Set(["FAQ"]);function Bt(e,o){if(!sv.has(e))return!1;let t=o.template;return typeof t=="function"?(t.blockCount??0)>0:Mse(t)}var ZM={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}},JM=new Set(Object.keys(ZM));function iv(e,o){return o?.innerPadding??$(ZM,e)}var Tl=e=>iv(e)??{};var nx=new Set(["Flex","Text","Heading","ImageBlock","ButtonBlock"]),Hse=new Set(["Divider"]),Wse=new Set(["Hero","HeroSingle","IntroBleed","CategoryBar","DocTabs"]),XM=new Set(["ProductGrid"]);function lv(e,o,t=!1){let r=e.render;e.render=a=>{if(o?.(a))return r(a);let n=cd({...MS(a,Gt,t),sideSpace:YM(a.sideSpace)}),s=r(a);if(!n)return s;let i=f=>qM(he,{className:f?`${n.className} ${f}`:n.className,style:n.style,children:s}),l=za(a,{atSectionLine:!0}),d=za(a);return l===d?i(l):qM(yu,{line:"by-box",draw:f=>i(f?d:l)})}}var QM={name:"sectionPadding",applies:(e,o,t)=>o.isSection(e)&&!Wse.has(e)&&!!t&&typeof t.render=="function",panel(e,o,t){let r=iv(o,e);if(r){e.fields={...e.fields,...t.sidesPaddingFields({keys:Vr,unitKey:rs,fallback:r,tablet:!0,siteSide:!0})};return}if(XM.has(o))return;let a=[Vr.top,Vr.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(!iv(o,e)){if(XM.has(o)){lv(e);return}nx.has(o)||Hse.has(o)||lv(e,o==="Flex"?t=>Xb(t.bgImage):sv.has(o)?t=>Bt(o,t):void 0,!0)}}},$se=["Heading","Text","ImageBlock","ButtonBlock"],Use=["LogoBlock"],zse={Text:e=>Ta(e,"text").textStyle?.startsWith("heading-")?Ji.heading:Ji.text,Heading:()=>Ji.heading,ButtonBlock:()=>Ji.text},Gse={ButtonBlock:"Outer padding"};function jse(e,o){let t=e[as],r=Array.isArray(t)?t.filter(l=>typeof l=="string"):[],a=pd().filter(l=>o?.[l]);if(!a.length)return e;let n=[...r.filter(l=>!a.includes(l)),...a.filter(l=>typeof e[l]=="number")];if(n.length===r.length&&n.every((l,d)=>l===r[d]))return e;let{[as]:s,...i}=e;return n.length?{...i,[as]:n}:i}function Kse(e,o){if(o<=0)return null;let t=Array.isArray(e[as])?e[as]:[];return pd().some(r=>typeof e[r]=="number"&&!t.includes(r))?c("plus {n} px (older setting)",{n:o}):null}var eH={name:"blockPadding",applies:(e,o,t)=>($se.includes(e)||Use.includes(e))&&!!t&&typeof t.render=="function",panel(e,o,t){let r=$(zse,o);if(!r){e.fields={...e.fields,...t.sidesPaddingFields({tablet:!0,siteSide:!0})};return}e.fields={...e.fields,...t.ownPaddingFields?.(r,Kse,$(Gse,o))??t.sidesPaddingFields({tablet:!0,siteSide:!0})};let a=e.resolveData;e.resolveData=(n,s)=>{let i=n.props??{},l=s?.trigger==="replace"?jse(i,s.changed):i,d=l===i?n:{...n,props:l};return a?a(d,s):d}},draw(e,o){nx.has(o)||lv(e,void 0,!0)}};import{createContext as cv,useContext as sx}from"react";var oH=cv(null);function t$e(){return sx(oH)===!0}function r$e(){return sx(oH)!==null}var Vse=cv(!1);function a$e(){return sx(Vse)}function n$e(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 ix=cv(null);function s$e(){return sx(ix)}import{jsx as vs}from"react/jsx-runtime";import{Component as oie,createContext as tie,lazy as w$e,Suspense as C$e,useContext as rie,useSyncExternalStore as aie}from"react";function Yse(e,o){let t=e.trim();if(!lx(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 c$e(e){return e.startsWith("/")||lx(e)}function lx(e){return/^(?:https?:)?\/\//i.test(e.trim())}var Kd=Object.freeze({target:"_blank",rel:"noopener noreferrer"});function tH(e,o){return Yse(e,o)?{...Kd}:{}}function d$e(e){return typeof e=="string"?e.trim():""}var f$e="data-sf-box-link",rH="absolute inset-0 -z-[1] outline-none focus-visible:z-[2] focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-accent",dv="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",qse="data-sf-box-jump";function Xse(e){return`sf-box-jump-${e}`}function p$e(e,o){return e===!0?Yn(o):""}function Zse({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 u$e(e){let o=`[${qse}="${e}"]`,t=`.${Xse(e)}`,r=`[id="${e}"]:target`;return Zse({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 Jse="hrefRewrite";function Qse(){return fi("efficient.link-href-rewrites",()=>({rewrites:new Map,count:0,missed:new Set}))}function eie(){return typeof process<"u"&&!0}function x$e(e){let o=e?.[Jse];return typeof o=="string"?o.trim():""}function aH(e){if(!e)return null;let o=Qse(),t=o.rewrites.get(e);return!t&&!eie()&&o.missed.add(e),t??null}var nie={Link:qO,Image:YO},nH=tie(nie);function _$e({runtime:e,children:o}){return vs(nH.Provider,{value:e,children:o})}function pv(){return rie(nH)}function O$e(){return pv().pagePath??null}var sie=()=>()=>{},iie=()=>Tu()||null,lie=()=>null;function cie(){return aie(sie,iie,lie)}function Ts({hrefRewrite:e,newTab:o,...t}){let{Link:r}=pv(),a=cie(),n=o===!0?{...t,...Kd}:o==="auto"?{...t,...tH(t.href,a)}:t,s=aH(e);return s?vs(fv,{name:s.name,href:n.href,fallback:vs(r,{...n}),children:vs(die,{Link:r,rewrite:s.rewrite,...n})},s.key):vs(r,{...n})}function die({Link:e,rewrite:o,...t}){let r=Se(o(t.href)),a=r&&u_(r)?r:t.href;return vs(e,{...t,href:a})}var fv=class extends oie{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 cx(e){let{Image:o}=pv();return vs(o,{...e})}import{jsx as sle}from"react/jsx-runtime";import{jsx as Fe,jsxs as rt,Fragment as tle}from"react/jsx-runtime";import{imageCopyUrl as lH,imageSrcSet as fie}from"efficient-shell/image-copies";var sH;function uv(){return sH===void 0?{}:{host:sH}}var L$e="(max-width: 800px) 100vw, min(100vw, 1600px)",F$e="(max-width: 960px) 100vw, 50vw";function ks(e,{fallbackWidth:o=1280,maxWidth:t}={}){let r=fie(e,{...uv(),...t===void 0?{}:{maxWidth:t}});return r?{src:lH(e,o,uv()),srcSet:r}:{src:e}}var pie=/[\s"'()\\;]/,uie={"\\":"\\\\",'"':'\\"',"\n":"\\a ","\r":"\\d ","\f":"\\c "};function iH(e){return e.replace(/[\\"\n\r\f]/g,o=>uie[o]??o)}function B$e(e){let o=lH(e,1920,uv());return o===e?pie.test(e)?`url("${iH(e)}")`:`url(${e})`:`url("${iH(o)}")`}var Vd="solid",mie=[{label:"Solid",value:"solid"},{label:"Outlined",value:"outlined"}];function cH(e){return Q(mie,Vd,e)}var mv="sf-secnum-outline",dH="font-display text-[length:var(--size-headingMedium,clamp(48px,6vw,96px))] font-medium leading-[0.8] tracking-[-0.02em]",fH=`@supports (-webkit-text-stroke: 1px currentColor){.${mv}{color:var(--site-surface-2);-webkit-text-stroke:1px var(--site-line)}}`;var hv="plain",pH=[{label:"Plain",value:"plain"},{label:"Filled",value:"filled"},{label:"Line",value:"line"}],hie="line",xie={KeyFeatures:"filled"};function Yd(e){return $(xie,e)??hv}function uH(e,o){return Q(pH,Yd(o),e)}function $$e(e){return Q(pH,hie,e)}import{jsxs as _s,jsx as ro}from"react/jsx-runtime";import{Fragment as kv}from"react";import{Fragment as Uie,jsx as Cv}from"react/jsx-runtime";import{Fragment as kH,jsx as Qd,jsxs as Fie}from"react/jsx-runtime";import{createContext as wv,useContext as ef,useEffect as Bie,useId as Nie,useMemo as Die,useRef as Mie}from"react";import{armEntrance as Hie}from"efficient-shell/format";import{jsx as gie}from"react/jsx-runtime";import{useEffect as hH,useRef as mH,useState as Iie}from"react";import{armEntrance as yie,entranceAttrs as bie,playEntrance as Sie}from"efficient-shell/format";function dx({views:e,editing:o,boxClass:t,boxAttrs:r,boxStyle:a,takesViewHide:n=!1,atEdge:s=!1,children:i}){let l=mH(null),d=Su(),f=Wt(),u=n?f:Ka,p=qd(l,!0,s),{attrs:m,style:h}=bie(e[p]),I=mH(kl.seed(e)),w=JSON.stringify(e);return hH(()=>{let S=l.current;if(S){if(o){let C=kl.next(I.current,e,p);I.current=C.seen,C.play&&Sie(S);return}return yie(S)}},[w,p,o]),u.scope(gie("div",{ref:l,className:et(`${Ri}${d.fill}${t?` ${t}`:""}`,u.className),...r,...u.attrs,...m,...Object.keys(h).length||a?{style:{...a,...h}}:{},children:d.inner(i)}))}var kl={seed(e){return{desktop:JSON.stringify(e.desktop),tablet:JSON.stringify(e.tablet),phone:JSON.stringify(e.phone)}},next(e,o,t){let r=kl.seed(o);return{play:r[t]!==e[t],seen:r}}};function qd(e,o=!0,t=!1){return Xd(e,o,t)??"desktop"}function Xd(e,o=!0,t=!1){let[r,a]=Iie(void 0),n=Ga(t?"edge":"by-box"),{phone:s,tablet:i}=NC(n);return hH(()=>{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 Zd="@name",xH="@body",gH="@value",IH={[Zd]:"Name",[xH]:"Body",[gH]:"Value"},wie={TimelineTrack:{"entries.date":Zd,"entries.title":Zd,"entries.blurb":xH},Footprint:{"offices.city":Zd},Stats:{"items.label":Zd,"items.value":gH}};function Cie(e){let{key:o,row:t}=Tr(e);return t?`${o}.${t.rowKey}`:null}function Ea(e,o){if(!e)return o;let t=Cie(o);return t?$(wie,e)?.[t]??o:o}import{ENTRANCE_STATE_ATTR as _ie,entranceAttrs as Oie,scrollAttrs as Aie}from"efficient-shell/format";import{parseFocal as kie,formatFocal as Pie,readScroll as Eie}from"efficient-shell/format";import{phoneKey as vie,tabletKey as Tie}from"efficient-easel/screen/lib/content/view-tiers";var xv=[{block:"HeroSlide",upload:"mediaImage",focus:Gn.image},{block:"HeroSlide",upload:"mediaImage2",focus:Gn.image2},{block:"HeroSingle",upload:"mediaImage",focus:Gn.image},{block:"HeroSingle",upload:"mediaImage2",focus:Gn.image2},{block:"ImageBlock",upload:"src",focus:"focal"}],yH=e=>[e,Tie(e),vie(e)],t6e=[...new Set(xv.flatMap(e=>yH(e.focus)))].sort();function bH(e,o){let[t,r,a]=yH(o).map(n=>typeof e[n]=="string"&&e[n]?e[n]:void 0);return{desktop:t,tablet:r,phone:a}}var jo={effect:"scroll",zoom:"scrollZoom",start:"scrollStart",end:"scrollEnd"},Pl="_gScroll",fx="_cScroll",px=mu(Object.values(jo));function _a(e,o){return Eie(Fc(e,jo.effect,o),Fc(e,jo.zoom,o),Fc(e,jo.start,o),Fc(e,jo.end,o))}function El(e){let o={desktop:_a(e,"desktop"),tablet:_a(e,"tablet"),phone:_a(e,"phone")};return It.every(t=>o[t].effect==="none")?null:o}function gv(e){let o=CO(e.desktop,e.tablet,e.phone),t=r=>{let a=o[r];if(typeof a!="string")return;let{x:n,y:s}=kie(a);return Pie(n,s)};return{desktop:t("desktop"),tablet:t("tablet"),phone:t("phone")}}function SH(e,o){return gv(bH(e,o))}var ux={},Iv="_partMotion",yv=[...hu,Mt,ho.duration,ho.delay,...px];function CH(e){return xl(e,Iv)}function Ps(e,o){return Dh(e,Iv,o)}var Rie=new Set([_t.kind,Mt,jo.effect]);function vH(e,o,t,r){let{[t]:a,...n}=Ps(e,o),s=r==null||r===""||r==="none"&&Rie.has(t)?n:{...n,[t]:r};return Mh(e,Iv,o,Object.keys(s).length?s:null)}function Jd(e){return{entrance:Li(e),hover:b_(e),scroll:El(e)}}function TH(e){let o=Jd(e);return o.entrance!==null||o.hover!=="none"||o.scroll!==null}function mx(e,o){let{attrs:t,style:r}=Oie(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(_ie)}}function hx(e,o){let{attrs:t,style:r}=Aie(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 Lie=4;function _l(e){let o;for(let t of e)(!o||t.element.compareDocumentPosition(o.element)&Lie)&&(o=t);return o}var bv="data-sf-part-host";function xx(e){let o=e?.ownerDocument.defaultView,t=e;for(;t&&!t.hasAttribute(bv)&&!t.classList.contains(Ri);){let r=o?.getComputedStyle(t).display??"";if(r==="contents")return null;if(r!=="inline")return t;t=t.parentElement}return null}var Es="data-sf-part-lift",wH="sf-part-lift";function gx(e){if(e.getElementById(wH))return;let o=e.createElement("style");o.id=wH,o.textContent=hD(`[${Es}]`).join(`
320
+ `),e.head.appendChild(o)}var Ix=wv(null),EH=wv(null),_H=wv(null);function OH({needles:e,styles:o,motions:t=ux,type:r,atEdge:a=!1,children:n}){let s=Nie(),i=Ga(a?"edge":"by-box"),l=JSON.stringify([s,e,o,t,r]),d=Die(()=>{let u=Object.keys(t).filter(p=>TH(t[p]));return AD(e,o,s,p=>Ea(r,p),p=>Md(r,p),p=>u.includes(p)?Jd(t[p]):null,u)},[l]);if(!d)return Qd(kH,{children:n});let f=RD(d,{inBox:i});return Fie(kH,{children:[f&&Qd("style",{href:`${Wie}${s}-${$ie(f)}`,precedence:RH,dangerouslySetInnerHTML:{__html:VO(f)}}),Qd(Ix.Provider,{value:d,children:n})]})}var Sv=new WeakMap;function PH(e,o){let t=_l(o.filter(a=>a.arm)),r=o.some(a=>a.entering)?void 0:_l(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)?(gx(e.ownerDocument),e.setAttribute(Es,"")):e.removeAttribute(Es)}function AH(e){let o=Mie(null),t=e?.motion?.entrance??null,r=e?.motion?.scroll??null,a=e?.motion?.hover==="lift",n=qd(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 Bie(()=>{let d=o.current,f=xx(d?.parentElement??null);if(!t&&!r&&!a||!d||!f)return;let u=s?()=>{let h=mx(f,s),I=Hie(f);return()=>{I?.(),h()}}:null,p=Sv.get(f)??[];Sv.set(f,p);let m={element:d,arm:u,entering:s!==null&&s.kind!=="none",scroll:i?()=>hx(f,i):null,lift:a};return p.push(m),PH(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,PH(f,p),p.length||Sv.delete(f))}},[l,a]),o}var RH="sf-part-styles",Wie=`${RH}-`;function $ie(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 LH(e){let o=ef(Ix),t=ef(EH),r=LD(o,e);return r&&r.stamp!==t?r:null}function v6e(e){return BC(ef(Ix),e)}function FH({stamp:e,children:o}){return Qd(EH.Provider,{value:e,children:o})}function T6e({children:e}){let o=ef(Ix);return Qd(_H.Provider,{value:o,children:e})}function k6e(e){return BC(ef(_H),e)}function of({value:e,children:o}){let t=LH(e),r=AH(t);return t?Cv(FH,{stamp:t.stamp,children:Cv("span",{ref:r,[SC]:t.stamp,...t.textStyle?{[kr]:t.textStyle}:{},children:o})}):Cv(Uie,{children:o})}import{jsx as vv,Fragment as zie}from"react/jsx-runtime";function BH({className:e=""}){return vv("sup",{className:`text-accent tracking-normal text-[length:min(1em,max(0.75em,11px))] ${e}`,children:"\xAE"})}function Zt(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(vv(BH,{},`r${a}`))}),vv(zie,{children:t})}var L6e=BH;function yo(e,o=!1,t){let r=Xie(o),a=Bp(e);if(a.length===1){let[s]=a,i=m_(s),l=i?Yie(i,s.children):s.children;return _s(of,{value:e,children:[t,yx(l,r)]})}let n=[];return a.forEach((s,i)=>{if(s.bullet){n.push(ro("span",{"data-sf-bullet":"",className:Gie,children:yx(s.children,r)},i));return}if(s.number!=null){n.push(_s("span",{"data-sf-number":s.number,className:jie,children:[_s("span",{className:Kie,children:[s.number,"."]}),yx(s.children,r)]},i));return}i>0&&!Vie(a[i-1])&&n.push(ro("br",{},`br${i}`)),n.push(ro(kv,{children:yx(s.children,r)},i))}),_s(of,{value:e,children:[t,n]})}var Gie="relative block pl-6 before:absolute before:left-1.5 before:font-bold before:text-accent before:content-['\xB7']",jie="relative block pl-[2em]",Kie="absolute left-0 w-[1.6em] text-right tabular-nums";function Vie(e){return e.bullet||e.number!=null}var NH="text-accent underline underline-offset-[0.18em]";function Yie(e,o){let[t,...r]=o;return t?.kind==="text"?[{kind:"text",text:`${e}${t.text}`},...r]:[{kind:"text",text:e},...o]}function qie(e){return zi(e)||void 0}function yx(e,o){let t=[],r=!1;return e.forEach((a,n)=>{if(a.kind==="text"){t.push(ro("span",{children:Zt(a.text)},n)),r=!0;return}r||t.push(ro("span",{},`e${n}`)),t.push(MH(a,n,o)),r=!1}),r||t.push(ro("span",{},"end")),t}function Tv(e,o){return e.length===1&&e[0].kind==="text"?Zt(e[0].text):e.map((t,r)=>t.kind==="text"?ro(kv,{children:Zt(t.text)},r):MH(t,r,o))}function Xie(e){return e?"font-normal italic text-accent":"not-italic text-accent"}function G6e(e){return DH(e)}function DH(e,o){let t=e.split(`
321
+ `);return _s(of,{value:e,children:[o,t.map((r,a)=>_s(kv,{children:[a>0?ro("br",{}):null,ro("span",{children:r})]},a))]})}function MH(e,o,t){if(e.kind==="link")return lx(e.href)?ro(Ts,{newTab:"auto",href:e.href,className:NH,children:Tv(e.children,t)},o):ro("a",{href:e.href,className:NH,children:Tv(e.children,t)},o);let r=Tv(e.children,t),a=d_[e.kind];if(a)return ro("span",{[f_]:a,children:r},o);switch(e.kind){case"underline":return ro("u",{children:r},o);case"sup":return ro("sup",{children:r},o);case"sub":return ro("sub",{children:r},o);case"color":{let n=qie(e.color);return n?ro("span",{style:{color:n},children:r},o):ro("span",{children:r},o)}case"accent":case"highlight":return ro("em",{className:t,children:r},o);case"bold":return ro("strong",{className:"font-semibold",children:r},o);case"italic":return ro("em",{className:"italic",children:r},o);case"strike":return ro("s",{className:"line-through",children:r},o);default:return ro("span",{children:r},o)}}function HH(e,o=!0,t=!1){let r=e.split(`
322
+ `);return ro(of,{value:e,children:r.map((a,n)=>_s("span",{children:[t?DH(a):yo(a,o),n<r.length-1?ro("br",{}):null]},n))})}function WH(e){return e.split(/\n\s*\n/).map(o=>o.trim()).filter(Boolean)}import{jsx as Pv,jsxs as Jie}from"react/jsx-runtime";import{jsx as Zie}from"react/jsx-runtime";function $H(){return Zie("span",{className:"block h-px w-[30px] bg-current"})}var Ev={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 Qie(e,o){return`font-mono text-[length:var(--size-label,${e}px)] uppercase tracking-[0.3em] text-accent`}var ele=`inline-block w-fit bg-accent px-3.5 py-1.5 font-mono ${Ev.labelSmall} font-semibold uppercase tracking-[0.16em] text-bg`,ole=`flex items-center gap-3.5 font-mono ${Ev.labelLarge} uppercase tracking-[0.3em] opacity-80 ${Ev.labelUpTo800} max-view-wide:tracking-[0.25em]`;function Ol({text:e,look:o="plain",size:t=13,scaled:r=!0,className:a="",classNameAfter:n="",takesViewHide:s=!1}){let i=Wt(),l=s?i:Ka;if(o==="line")return l.scope(Jie("div",{className:et([a,ole,n].filter(Boolean).join(" "),l.className),...l.attrs,children:[Pv($H,{}),Pv("span",{children:yo(e)})]}));let d=o==="filled"?ele:Qie(t,r);return l.scope(Pv("span",{className:et([a,d,n].filter(Boolean).join(" "),l.className),...l.attrs,children:yo(e)}))}var Ve={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)]"},UH=[{value:"para",label:"Paragraph size \u2014 13px",cls:`font-mono font-normal uppercase tracking-[0.22em] ${Ve.shelfLabel}`},{value:"sm",label:"Small \u2014 40px",cls:`font-heading2 font-medium tracking-[-0.03em] ${Ve.shelfHeading1} ${Ve.shelfHeadingUpTo800Xs}`},{value:"md",label:"Medium \u2014 48px",cls:`font-heading2 font-medium tracking-[-0.03em] ${Ve.shelfHeading2} ${Ve.shelfHeadingUpTo800Small}`},{value:"lg",label:"Large \u2014 56px",cls:`font-heading2 font-medium tracking-[-0.03em] ${Ve.shelfHeading3} ${Ve.shelfHeadingUpTo800Large}`},{value:"xl",label:"Extra large \u2014 64px",cls:`font-heading2 font-medium tracking-[-0.03em] ${Ve.shelfHeading4} ${Ve.shelfHeadingUpTo800Xl}`}],rle="lg";function ale(e){return(UH.find(o=>o.value===e)??UH.find(o=>o.value===rle)).cls}var Al=(e,o=!1)=>typeof e=="string"?HH(e,o):e,Oa=(e,o=!1)=>typeof e=="string"?yo(e,o):e;function zH({num:e,title:o,link:t,logo:r,description:a,accent:n,accentNum:s,numStyle:i=Vd,look:l="standard",titleAccent:d,accentTracking:f="-0.02em",spaceBelow:u,rowGap:p,descriptionSize:m,className:h="",eyebrowLook:I=hv,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:`${fM} 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&&Fe("span",{className:`font-mono ${Ve.shelfLabel} leading-none uppercase tracking-[0.22em] text-fg-dim`,children:Oa(e)}),o&&Fe("h2",{className:`${ale(w)} leading-none text-fg max-view-wide:leading-[1] [&>span]:block`,children:Al(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&&Fe("span",{className:`max-w-[340px] truncate font-display ${Ve.shelfBody} leading-[1.4] text-fg-dim max-view-wide:hidden view-wide:w-0 view-wide:grow view-wide:text-right`,children:Oa(a)}),t&&rt(Ts,{newTab:"auto",href:t.href,className:`inline-flex items-center gap-2 whitespace-nowrap font-mono ${Ve.shelfLabel} uppercase tracking-[0.2em] text-fg-dim transition-colors hover:text-fg`,children:[Oa(t.text),Fe("span",{"aria-hidden":!0,children:"\u2192"})]}),S&&Fe("span",{className:`whitespace-nowrap font-mono ${Ve.shelfLabelSmall} uppercase tracking-[0.2em] text-fg-dim`,children:S})]})]}):null;if(l==="editorial"){let k=!!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"?Fe(Ol,{text:e,className:"pb-2"}):Fe("span",{className:"pb-2",children:e})),k&&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(tle,{children:[" ",Fe("em",{className:"font-serif font-normal italic text-accent",style:{letterSpacing:f},children:d})]})]}),a&&Fe("p",{className:`max-w-[360px] pb-1 text-right font-display ${Ve.bodySmall} leading-[1.5] text-fg-dim max-view-desktop:max-w-full max-view-desktop:text-left`,children:a})]})}if(l==="simple"){let k=`${b} ${h}`.trim();return rt("div",{className:k||void 0,children:[e&&(typeof e=="string"?Fe(Ol,{text:e,look:I,className:"mb-4 block"}):Fe("span",{className:"mb-4 block",children:e})),o&&Fe("h2",{className:`font-heading2 ${Ve.headingMedium2} font-medium uppercase leading-none tracking-[-0.02em] text-fg ${Ve.headingMediumUpTo800Small}`,children:Al(o)})]})}if(l==="statement"){let k=`${b} ${h}`.trim();return rt("div",{className:k||void 0,children:[e&&(typeof e=="string"?Fe(Ol,{text:e,look:I,className:"mb-4 block"}):Fe("span",{className:"mb-4 block",children:e})),o&&Fe("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:Al(o,!0)})]})}if(l==="natural"){let k=`flex max-w-[680px] flex-col ${p??"gap-5"} ${b} ${h}`.replace(/\s+/g," ").trim();return rt("div",{className:k,children:[e&&(typeof e=="string"?Fe(Ol,{text:e,look:I}):Fe("span",{children:e})),o&&Fe("h2",{className:`font-heading2 ${Ve.headingMedium2} font-medium leading-[1.05] tracking-[-0.03em] ${Ve.headingMediumUpTo800Small}`,children:Al(o)}),a&&Fe("p",{className:`${m??`${Ve.bodyLarge}`} leading-[1.6] opacity-85`,children:a})]})}if(l==="essay"){let k=`${b} ${h}`.trim();return rt("div",{className:k||void 0,children:[e&&(typeof e=="string"?Fe(Ol,{text:e,look:I,className:"mb-4 block"}):Fe("span",{className:"mb-4 block",children:e})),o&&Fe("h2",{className:`font-heading2 ${Ve.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 ${Ve.headingSmallUpTo800}`,children:Al(o)})]})}let y=!!a||!!t,v=!!o,L=cH(i)==="outlined",O=`font-mono ${Ve.label} uppercase tracking-[0.3em]`,N=null;if(e)if(L)N=Fe("span",{className:`${dH} text-fg-dim ${mv}`,children:Oa(e)});else if(s&&!n&&typeof e=="string"){let k=e.indexOf("/"),F=k===-1?e:e.slice(0,k),T=k===-1?"":e.slice(k);N=rt("span",{className:O,children:[Fe("span",{className:"text-accent",children:Oa(F)}),T&&Fe("span",{className:"text-fg-dim",children:Oa(T)})]})}else N=Fe("span",{className:`${O} ${n?"text-accent":"text-fg-dim"}`,children:Oa(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&&Fe("style",{children:fH}),rt("div",{className:"flex flex-col items-start gap-3",children:[r?.src&&Fe(PO,{children:Fe(ax,{...nle(ZO(r.src)),alt:r.alt,className:"h-8 w-auto object-contain"})}),N]}),v&&Fe("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 ${Ve.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 ${Ve.headingMediumUpTo800Large} max-view-wide:leading-[1]`,children:Al(o)}),y&&rt("div",{className:"flex flex-col items-end gap-3 max-view-wide:items-start",children:[a&&Fe("p",{className:`max-w-[340px] font-display ${Ve.bodySmall} leading-[1.5] text-fg-dim text-right max-view-wide:max-w-full max-view-wide:text-left`,children:Oa(a)}),t&&rt(Ts,{newTab:"auto",href:t.href,className:`inline-flex items-center gap-2 whitespace-nowrap font-mono ${Ve.label} uppercase tracking-[0.2em] text-fg-dim transition-colors hover:text-fg`,children:[Oa(t.text),Fe("span",{"aria-hidden":!0,children:"\u2192"})]})]})]})}function nle(e){let o=ks(e,{fallbackWidth:640,maxWidth:960});return o.srcSet?{src:o.src,srcSet:o.srcSet,sizes:"240px"}:{src:e}}function GH({num:e,title:o,titleAccent:t,desc:r,accentTracking:a="-0.02em",spaceBelow:n="mb-[60px]",className:s=""}){return sle(zH,{look:"editorial",num:e,title:o,titleAccent:t,description:r,accentTracking:a,spaceBelow:n,className:s})}import{jsx as rf,jsxs as ule}from"react/jsx-runtime";import{useEffect as mle,useState as e2}from"react";import{jsx as ile}from"react/jsx-runtime";var jH="sf-photo-hover";function bx({sheet:e,name:o=jH}){return e?ile("style",{href:o,precedence:jH,dangerouslySetInnerHTML:{__html:e}}):null}import{jsx as ZH,Fragment as dle}from"react/jsx-runtime";import{createContext as fle,useContext as wx}from"react";var lle=$_["view-desktop"];function cle(e,o){return[...[...e].sort((t,r)=>t.below-r.below).map(t=>`(max-width: ${t.below-.02}px) ${t.slot}`),o].join(", ")}var _v=e=>`${Math.ceil(e*1e4-1e-6)/100}vw`,Sx=e=>{let o=/^([\d.]+)vw$/.exec(e??"");return o?Math.min(1,Number(o[1])/100):1};function IUe(e,o){return{phone:_v(e.phone*Sx(o?.phone)),tablet:_v(e.tablet*Sx(o?.tablet)),desktop:_v(e.desktop*Sx(o?.desktop))}}function Ov(e){if([e.phone,e.tablet,e.desktop].every(r=>Sx(r)>=1))return;let o=[{below:Jo,slot:e.phone},{below:lle,slot:e.tablet}],t=o.filter((r,a)=>r.slot!==(o[a+1]?.slot??e.desktop));return cle(t,e.desktop)}function KH(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 VH=(e,o)=>e.steps.find(t=>o<=t.edge)?.slot??e.last,YH=e=>{let o=/^min\((.+)\)$/.exec(e);return o?o[1].split(/,\s*(?![^()]*\))/).map(t=>t.trim()):[e]};function qH(e,o){if(e===o)return e;let t=[...YH(e),...YH(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 XH(e,o){if(!o)return e;let t=KH(e),r=KH(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:qH(VH(t,s),VH(r,s))})),n=qH(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 ple={hasWidth:!1},tf=fle(ple);function CUe(){return wx(tf).hasWidth}function vUe(e){let{bound:o}=wx(tf);return o&&Ov(o)||e}function JH(e){let{bound:o}=wx(tf);return XH(e,o&&Ov(o))}function QH({children:e}){let o=wx(tf);return o.bound?ZH(tf.Provider,{value:{hasWidth:o.hasWidth},children:e}):ZH(dle,{children:e})}function o2({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=nv(),m=JH(s),h=i?m:s,[I,w]=e2(!1),[S,C]=e2(!1),b=t||"";mle(()=>{w(!1),C(!1)},[b]);let y=ku(b),v=y&&!S?ks(b):{src:b},L=!b||I;return ule("div",{className:`relative h-full w-full overflow-hidden ${o??""}`,children:[rf("div",{className:"absolute inset-0 flex items-center justify-center",style:f?{background:"var(--site-surface)"}:void 0,children:L?e:null}),rf(gu,{fill:Dc,children:b&&(y?rf("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)}):rf(cx,{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)}))}),rf(bx,{sheet:u?.sheet})]})}import{jsx as hle}from"react/jsx-runtime";var af="sf-empty-hides",Av="sf-empty-else",Cx="sf-head-core",vx="sf-head-box",nf="holdsHeadCore",sf="isHeadCore",xle=`.${af}:empty{display:none}.${af}:not(:empty)~.${Av}{display:none}.${vx},.${Cx}{display:contents}.${vx}:not(:has(.${Cx}:not(:empty))){display:none}`;function Tx(){return hle("style",{children:xle})}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)]"},t2={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"},Rv="sf-itc-boxes",Ile="sf-itc-steps";function Lv(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 eze({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??tF({padTop:i,padBottom:l},Tl("ProcessSteps")),y=S?[]:Lv(a),v=y.length>0?y:f&&!r&&!S?[1,2,3].map(F=>({tag:c("Column {n}",{n:F})})):[],L=t2[n]??t2[3],O=C?"grid-cols-1":L,N=C?"":" [&>*]:min-h-[560px]",k=h==="on-image";return Ye(he,{as:"section",className:["relative z-[2] border-b border-line bg-bg",b.className].filter(Boolean).join(" "),style:{...b.style,...xA(p,m)},children:Aa("div",{className:HL,children:[u?null:Ye(GH,{num:e,title:o?.trim()?yo(o,!0):void 0,desc:t?.trim()?yo(t,!1):void 0}),r&&!S?Aa(gle,{children:[Ye(Tx,{}),C?Ye(ix.Provider,{value:{hand:C,ids:r.blockIds??[],boxes:[]},children:Ye(r,{className:`${Rv} ${af} sf-card grid ${O} gap-[2px] border border-line bg-line${N} [&>*]:bg-bg`,minEmptyHeight:260})}):Ye(r,{className:`${Rv} ${af} sf-card grid ${O} gap-[2px] border border-line bg-line [&>*]:min-h-[560px] [&>*]:bg-bg`,minEmptyHeight:260})]}):null,S&&w?Ye("div",{className:`${Rv} sf-card grid ${O} gap-[2px] border border-line bg-line${N} [&>*]:bg-bg`,children:C?Ye(ix.Provider,{value:{hand:C,copies:!0},children:w}):w}):null,v.length>0&&Ye("div",{className:`${Ile} ${Av} sf-card grid ${L} gap-[2px] border border-line bg-line`,children:v.map((F,T)=>{let _=(F.specs??[]).filter(P=>(P?.label??"").trim()||(P?.value??"").trim());return Aa("article",{className:k?"flex flex-col bg-bg":"flex min-h-[560px] flex-col bg-bg",children:[Aa("div",{className:k?"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:[Ye(o2,{label:F.tag?.trim()||F.title?.trim()||`column-${T+1}`,src:F.image||void 0,sizes:"(max-width: 1100px) 100vw, 33vw",...r?{deferFetch:!0}:{}}),Ye("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-0 z-[1]",style:{background:`linear-gradient(180deg, ${pa(.55)} 0%, transparent 30%, transparent 70%, ${pa(.65)} 100%)`}}),k&&Ye("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%, ${pa(.73)} 55%, ${pa(.92)} 100%)`}}),F.tag?.trim()&&Ye("span",{className:`absolute left-5 top-[18px] z-[2] font-mono ${wt.label} uppercase tracking-[0.3em] text-accent`,children:Zt(F.tag)}),F.meta?.trim()&&Ye("span",{className:k?`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:Zt(F.meta)}),k&&(F.title?.trim()||F.copy?.trim())&&Aa("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()&&Ye("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:yo(F.title,!0)}),F.copy?.trim()&&Ye("p",{className:`min-h-[3em] font-display ${wt.bodySmall} leading-[1.5] text-overlay-fg/85`,children:yo(F.copy,!1)})]})]}),k?_.length>0&&Ye("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,A)=>Aa("div",{className:"flex flex-col gap-1",children:[P.label?.trim()&&Ye("span",{className:`font-mono ${wt.labelSmall} uppercase tracking-[0.24em] text-fg-dim`,children:Zt(P.label)}),P.value?.trim()&&Ye("span",{className:`font-display ${wt.bodyLarge} font-medium tracking-[-0.01em] text-fg`,children:Zt(P.value)})]},A))}):Aa("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()&&Ye("h3",{className:`font-heading3 ${wt.headingSmall2} font-medium uppercase leading-none tracking-[-0.02em] ${wt.headingSmallUpTo700Large}`,children:yo(F.title,!0)}),F.copy?.trim()&&Ye("p",{className:`font-display ${wt.bodySmall} leading-[1.55] text-fg-dim`,children:yo(F.copy,!1)}),_.length>0&&Ye("div",{className:"mt-auto grid grid-cols-2 gap-2 border-t border-line pt-4",children:_.map((P,A)=>Aa("div",{className:"flex flex-col gap-1",children:[P.label?.trim()&&Ye("span",{className:`font-mono ${wt.labelSmall} uppercase tracking-[0.24em] text-fg-dim`,children:Zt(P.label)}),P.value?.trim()&&Ye("span",{className:`font-display ${wt.bodyLarge} font-medium tracking-[-0.01em] text-fg`,children:Zt(P.value)})]},A))})]})]},T)})}),s?.text&&Ye("div",{className:"mt-12 flex justify-end border-t border-line pt-8",children:Aa(Ts,{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:[Zt(s.text),Ye("span",{"aria-hidden":!0,className:"text-accent transition-transform group-hover:translate-x-[3px]",children:"\u2192"})]})})]})})}var yle=["selected","highlighted"],r2="data-sf-card-state",n2="pointer-events-none absolute inset-0 border border-accent",s2="pointer-events-none absolute inset-x-0 bottom-0 border-b-2 border-accent",i2="pointer-events-none absolute inset-0 border-2 border-accent outline outline-1 -outline-offset-1 outline-accent",l2="absolute inset-y-0 left-0 w-[3px] bg-accent",c2="absolute -inset-[2px] -z-[1] bg-[color-mix(in_oklab,var(--accent)_14%,transparent)]",d2="after:pointer-events-none after:absolute after:inset-0 hover:after:border-2 hover:after:border-accent",a2=e=>{let o=lO.find(t=>t.role===e)?.token;if(!o)throw new Error(`card-state: the palette has no ink token for "${e}"`);return o},ble={[a2("muted")]:`var(${a2("fg")})`};function Fv(e){return e?.selected===!0}function Bv(e){return e?yle.filter(o=>e[o]===!0).join(" "):""}function f2(e,o="frame"){let t=Bv(e);return t?o==="frame"&&Fv(e)?{[r2]:t,className:"relative isolate",style:{...ble}}:{[r2]:t,className:"relative"}:{}}var Sle={highlighted:!0},wle={},kx="badge";function nze(e,o=[]){return e.map((t,r)=>({...t,key:t.key||o[r]?.key||Rc(t,r)}))}function p2(e){return!e||typeof e!="object"?!1:Object.entries(e).some(([o,t])=>o==="key"||o===kx||o==="state"?!1:typeof t=="string"?t.trim()!=="":Array.isArray(t)?t.length>0:t!=null&&typeof t!="function")}function sze(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,[kx]:s===a?t:""})),states:e.map((n,s)=>s===a?Sle:wle)}}function ize(e){return{chosen:typeof e.highlightedCard=="string"?e.highlightedCard.trim():"",badge:typeof e.highlightBadge=="string"?e.highlightBadge:""}}function lze(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 u2="data-sf-card-press",m2=`${rH} appearance-none bg-transparent border-0 p-0 m-0`,h2=`${m2} cursor-pointer`,x2=m2;import{paymentMarkItems as Cle,paymentMarks as vle}from"efficient-shell/icons/payment";var Tle=[KE,Ep],g2=e=>Tle.includes(e),I2=e=>Cle({name:e.label,kind:e.kind}),kle=(e,o)=>e.kind===o.kind&&e.label===o.label&&(e.kind==="brand"?e.mark===o.mark:e.glyph===o.glyph);function y2(e){return vle(e.map(o=>({name:o.label,kind:o.kind}))).map(o=>({label:o.label,kind:e.find(t=>I2(t).some(r=>kle(r,o)))?.kind??""}))}function pze(e){return I2(e)[0]??null}var b2={heading:"Trusted by *teams worldwide*"},Px=()=>[{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")}],Ple=Op.Logos,xze={label:"Logos",drawsPictures:!0,fields:Ple,defaultProps:{items:[],contained:!0}};var Ele=()=>Px().map(e=>({label:e.alt}));function S2(e,o){let t=_p(e,o,Ele()).rows.filter(r=>r.label);return g2(oo(e))?y2(t):t}var lf="Flex",Ole="Text",cf=e=>Object.values(e??{}).filter(C2),Ale=e=>e.type===Ao&&oo(e.props)!=="",v2=e=>{if(e.type!==lf)return!1;let o=cf(e.props).flat();return o.length>0&&o.every(Ale)},Ex=e=>Kp(e.props?.headPlacement)==="own-box"||v2(e),Nv=e=>e===void 0||Array.isArray(e)&&e.length===0;function T2(e){return e.type===Ole?!0:e.type===lf&&cf(e.props).every(o=>o.every(T2))}var k2={ProcessSteps:e=>Nv(e.boxes)&&Lv(e.steps).length===0,Logos:e=>oo(e)?Rle(e):Nv(e.logos)&&Nv(e.items)};function Rle(e){return ZE(e)!==null&&S2(e,!1).length===0}function Lle(e){return cf(e.props).flat().every(o=>!_p(o.props,!1).rows.some(p2))}function _x(e){let o=cf(e.props).flat();return o.some(Ex)&&o.every(t=>Ex(t)||T2(t))}function Fle(e){if(!_le(e)||!Ex(e))return e;let o=v2(e)?Lle(e):$(k2,String(e.type))?.(e.props??{})===!0;return{...e,props:{...e.props,[sf]:o?"empty":!0}}}function w2(e){return go(e,o=>io(o,Fle))}function P2(e){let o=Object.entries(e.props??{}).filter(([,r])=>C2(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===lf&&t.props?{key:o[0][0],inner:t}:null}function E2(e){if(e?.type!==lf||!e.props)return e;if(_x(e)){let t=w2(e);return{...t,props:{...t.props,[nf]:!0}}}let o=P2(e);return!o||!_x(o.inner)?e:{...e,props:{...e.props,[o.key]:[w2(o.inner)],[nf]:!0}}}function _2(e){let o=e;if(!o||!Array.isArray(o.content))return e;let t=!1,r=o.content.map(a=>{let n=E2(a);return n!==a&&(t=!0),n});return t?{...o,content:r}:e}var Ble=e=>$(k2,String(e.type))?.(e.props??{})===!0;function Nle(e){if(e.type!==lf||!e.props)return!1;let o=_x(e)?null:P2(e),t=o?o.inner:e;if(!_x(t))return!1;let r=cf(t.props).flat().filter(Ex);return r.some(a=>oo(a.props)!=="")&&r.every(Ble)}function O2(e){return go(e,o=>Dle(o))}function Dle(e){let o=!1,t=[];for(let r of e){if(Nle(r)){o=!0;continue}let a=O2(r);a!==r&&(o=!0),t.push(a)}return o?t:e}function A2(e){let o=e;if(!o||!Array.isArray(o.content))return e;let t=!1,r=o.content.map(a=>{if(E2(a)!==a)return a;let n=O2(a);return n!==a&&(t=!0),n});return t?{...o,content:r}:e}var Mle=["DocMasthead","AlloyWheelsListing"],Ox="titleLevel",Hle=e=>e===2?"h2":"h1",Dv=e=>Hle(e?.[Ox])==="h2";function R2(e){let o=e;if(!o?.content?.length)return e;let t=!1,r=!1,a=o.content.map(n=>Mle.includes(n?.type??"")?t?(r=!0,{...n,props:{...n.props??{},[Ox]:2}}):(t=!0,n):n);return r?{...o,content:a}:e}import{readHidable as jle}from"efficient-easel/draw";var Rl="showFor";function L2(){return fi("efficient.box-show-for-choices",()=>({choices:[],revision:0}))}var Wle=e=>!!e&&typeof e=="object"&&typeof e.slug=="string"&&e.slug.trim()!==""&&typeof e.name=="string"&&e.name.trim()!=="";function Bze(){return L2().choices}function Nze(){return L2().revision}function F2(e){return Wle(e)?{slug:e.slug,name:e.name}:void 0}import{readHidable as $le}from"efficient-easel/draw";var Mv="_wallLabelId",Ule="_wallLabelledBy",Hv=e=>e.props?.id==null?"":String(e.props.id);function zle(e){if(!e||e.type!=="Text"||!Hv(e))return!1;let o=$le(e.props?.text);return!o.hidden&&o.text.trim()!==""}var Gle=e=>!!e&&e.type==="Logos"&&e.props?.look==="marks"&&Hv(e)!=="",B2=(e,o,t)=>({...e,props:{...e.props,[o]:t}});function N2(e){let o=io(e,r=>go(r,N2)),t=null;for(let r=1;r<o.length;r++){if(!Gle(o[r])||!zle(o[r-1]))continue;let a=`sf-wall-label-${Hv(o[r-1])}`;t??=o.slice(),t[r-1]=B2(t[r-1],Mv,a),t[r]=B2(t[r],Ule,a)}return t??o}function D2(e){return mi(e,N2)}var M2="_cardPressTitles",Kle="_cardPressTitle";function Vze(e,o){let t=e?.[M2],r=t&&typeof t=="object"?t[o]:void 0;return Array.isArray(r)&&r.length?r:void 0}var H2=(e,o)=>({...e,props:{...e.props,...o}});function Vle(e){let o=e.props??{};return e.type!=="Text"||jle(o.text).hidden||typeof o[Pt]=="string"||typeof o[Mv]=="string"?"":xt(o)}function W2(e,o,t,r){return io(e,a=>{let n=Vle(a);if(n&&!r.has(n))return r.add(n),t.push({field:n,gates:o}),H2(a,{[Kle]:!0});if(a.type==="Text"||Array.isArray(a.props?.[Rl]))return a;let s=a.props?.[pi],i=Array.isArray(s)&&s.length?[...o,s.filter(l=>typeof l=="string")]:o;return go(a,(l,d)=>Hn(a.type,d)?l:W2(l,i,t,r))})}function $2(e){let o,t=go(e,(r,a)=>{let n=io(r,$2);if(!Hn(e.type,a))return n;let s=[],i=W2(n,[],s,new Set);return s.length&&((o??={})[a]=s),i});return o?H2(t,{[M2]:o}):t}function U2(e){return mi(e,o=>io(o,$2))}import{pinnedDuplicateIndices as ode}from"efficient-easel/draw";import{jsx as Jt,jsxs as O4}from"react/jsx-runtime";import{createContext as Kce,useContext as Vce,useEffect as Yce,useRef as qce,useState as A4}from"react";import{jsx as un,jsxs as K2}from"react/jsx-runtime";import{useEffect as Ll,useRef as V2,useState as Os}from"react";import{jsx as z2,Fragment as Yle,jsxs as qle}from"react/jsx-runtime";import{useEffect as Xle,useRef as G2,useState as Zle}from"react";var Jle="#t=0.001",Qle=2;function ece(e,o){if(e.readyState<Qle||!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 j2({src:e,objectPosition:o="50% 50%",onError:t}){let r=G2(null),a=G2(null),[n,s]=Zle(!1);return Xle(()=>{let i=r.current,l=a.current;if(n||!i||!l)return;let d=()=>{ece(i,l)&&s(!0)};return d(),i.addEventListener("loadeddata",d),i.addEventListener("seeked",d),()=>{i.removeEventListener("loadeddata",d),i.removeEventListener("seeked",d)}},[n]),qle(Yle,{children:[z2("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&&z2("video",{ref:r,src:`${e}${Jle}`,muted:!0,playsInline:!0,preload:"auto",className:"hidden",onError:t})]})}var oce="data-part",Jze=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 pn(e){return{[oce]:e}}var tce=.5;function df({videoSrc:e,videoAv1Src:o,videoSrcPhone:t,videoAv1SrcPhone:r,posterSrc:a,posterSrcPhone:n,showVideo:s=!0,playbackRate:i=tce,objectPosition:l="50% 50%",objectPositionPhone:d,objectPositionTablet:f,quiet:u=!1,slideShown:p,laterSlide:m=!1,laterOfLead:h=!1}){let I=BR(d,f),w=jd(),[S,C]=Os(!1),b=w==="below"&&!S,y=w==="first",v=a||"",L=n||"",O=V2(null),N=Xd(O,!0,!0),k=N===void 0?void 0:N==="phone",F=Eu({video:e,av1:o,videoPhone:t,av1Phone:r},k===!0),T=F.video||"",_=Pu(T,F.av1),[P,A]=Os(!1),[W,G]=Os(!1),[Z,X]=Os(!1),[ce,fe]=Os(!1),te=p??!0,[Te,ve]=Os(!1),Re=w!=="first"&&!h,[Le,nt]=Os(!1),Zo=V2(null);Ll(()=>{if(!Re)return;if(document.readyState==="complete"){nt(!0);return}let me=()=>nt(!0);return window.addEventListener("load",me,{once:!0}),()=>window.removeEventListener("load",me)},[Re]),Ll(()=>{A(!1),G(!1),X(!1),fe(!1)},[T,v,L]),Ll(()=>{te&&ve(!0)},[te]),Ll(()=>{let me=Zo.current;me&&(te?me.play()?.catch(()=>{}):me.pause())},[te,Te,Le]),Ll(()=>{if(!m||Re&&!Le)return;let me=()=>C(!0);if(typeof window.requestIdleCallback=="function"){let z=window.requestIdleCallback(me,{timeout:2e3});return()=>window.cancelIdleCallback(z)}let so=setTimeout(me,800);return()=>clearTimeout(so)},[m,Re,Le]),Ll(()=>{let me=Zo.current;if(!me)return;let so=()=>{me.playbackRate=i};return so(),me.addEventListener("loadedmetadata",so),()=>me.removeEventListener("loadedmetadata",so)},[T,i]);let ut=ku(v),Co=v&&(ut||L)&&!W?ks(v):{src:v},Mo=L&&!W?ks(L):{src:L},vo=L&&!b&&!S?[{sized:Mo,media:Fd},...v?[{sized:Co,media:kc}]:[]]:[];return K2("div",{ref:O,className:"absolute inset-0 z-[1]",...pn("hero-media"),children:[un("div",{className:"absolute inset-0",style:{background:"var(--site-surface)"}}),vo.map(({sized:me,media:so})=>un("link",{rel:"preload",as:"image",href:me.src,media:so,fetchPriority:"high",...me.srcSet?{imageSrcSet:me.srcSet,imageSizes:"100vw"}:{}},so)),(v||L)&&(ut||L?(()=>{let me=un("img",{...v?{src:Co.src}:{},...Co.srcSet?{srcSet:Co.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:so=>{so.currentTarget.currentSrc&&(Co.srcSet||Mo.srcSet?G(!0):A(!0))}},L?void 0:v);return L?K2("picture",{children:[un("source",{media:Fd,srcSet:Mo.srcSet||Mo.src,sizes:"100vw"}),me]},`${v} ${L}`):me})():un(cx,{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:()=>A(!0)},v)),s&&!u&&T&&k!==void 0&&Te&&(!Re||Le)&&!Z&&un("video",{ref:Zo,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(me=>un("source",{src:me.src,type:me.type},me.src))},T),s&&u&&T&&k!==void 0&&Te&&(!Re||Le)&&!ce&&(!v||P)&&un(j2,{src:T,objectPosition:l,onError:()=>fe(!0)},T)]})}import{jsx as Ko,Fragment as s4,jsxs as Gv}from"react/jsx-runtime";import{jsx as Fl}from"react/jsx-runtime";import{useRef as rce}from"react";import{SCROLL_EFFECTS_WITH_ZOOM as ace,scrollAttrs as nce}from"efficient-shell/format";function Ax({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=rce(null),u=Su(),p=Wt(),m=n?p:Ka,h=qd(f,!0,s),{attrs:I,style:w}=nce(e[h],o[h]),S=ace.includes(e[h].effect),C=et(`${Ri}${u.fill}${t?` ${t}`:""}`,m.className);if(S&&i==="picture")return m.scope(Fl("div",{ref:f,className:C,...r,...m.attrs,...a?{style:a}:{},children:Fl(TO,{attrs:I,style:w,children:u.inner(d)})}));let b=Fl(kO,{children:u.inner(d)});if(S){let v=l??(u.fill?"h-full":void 0);return m.scope(Fl("div",{ref:f,className:C,...r,...m.attrs,style:{...a,overflow:"clip"},children:Fl("div",{...v?{className:v}:{},...I,style:w,children:b})}))}let y=Object.keys(w).length||a?{style:{...a,...w}}:{};return m.scope(Fl("div",{ref:f,className:C,...r,...m.attrs,...I,...y,children:b}))}var As=["media","image","image2"],Ra={media:"Media",image:"Image",image2:"Image 2"},ff={media:"heroMedia",image:"heroImage",image2:"heroImage2"};function Rx(e,o){return e==="image"&&$c(o)>1?"Image 1":Ra[e]}var vGe="Video file",TGe="Upload a video file",kGe="AV1 file",PGe="Upload an AV1 file";function sce(e,o){return _c("mediaType",zn,o,[e])}var ice=new Set(Object.keys(Wc)),Y2="heroPart";function lce(e,o){return{...o,[Y2]:e}}function EGe(e,{parts:o={},onlyFor:t,fallback:r,rules:a}){let n={...e},s=[...Object.values(o).flat(),...zn.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 zn)for(let l of t[i])n[l]=lo(n[l],sce(i,r));for(let[i,l]of Object.entries(a??{}))l&&(n[i]=lo(n[i],l));for(let i of As)for(let l of o[i]??[])n[l]=lce(i,n[l]);return n}function cce(e){let o=e?.[Y2];return As.includes(o)?o:null}function q2(e,o){let t={};for(let[r,a]of Object.entries(e))cce(a)===o&&(t[r]=a);return t}function X2(e){if(!ice.has(e.type))return[];let o=[{part:"media",label:Ra.media,depth:0}];return x1(e.type,e.props.mediaType)!=="video"&&(o.push({part:"image",label:Rx("image",e.props),depth:1}),$c(e.props)>1&&o.push({part:"image2",label:Rx("image2",e.props),depth:1})),o}function Rs(e,o){return`${e}::${o}`}function Lx(e){if(!e)return null;let o=e.lastIndexOf("::");if(o<=0)return null;let t=e.slice(o+2);return As.includes(t)?{nodeId:e.slice(0,o),part:t}:null}var pf="data-sf-hero-part";import{MOTION_TIMING as dce}from"efficient-shell/format";var e4="grayscale(1) contrast(1.03)",RGe="Black and white";function fce(e){return e===!0?{filter:e4}:{}}function pce(e){let{filter:o}=fce(e);return o?{style:{filter:o}}:{}}var Ls="sf-photo-grayscale",zv="data-sf-photo-host",Z2={duration:"--sf-photo-hover-duration",delay:"--sf-photo-hover-delay"},Dx=`@media (hover:hover){.${Ls}{filter:${e4};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))}.${Ls}:hover,[data-sf-photo-host]:hover .${Ls}{filter:none}}@media (hover:hover) and (prefers-reduced-motion:reduce){.${Ls}{transition:none}}`;function o4(e){let o=dce.hover,t={...e.duration!==o.duration.default?{[Z2.duration]:`${e.duration}s`}:{},...e.delay!==o.delay.default?{[Z2.delay]:`${e.delay}s`}:{}};return Object.keys(t).length?t:void 0}function t4(e,o,t){if(e===!0)return pce(!0);if(t?.kind==="mono"){let r=o4(t);return{className:Ls,sheet:Dx,...r?{style:r}:{}}}return e===!1?{}:o===!0?{className:Ls}:{}}var r4="data-sf-repeat",Wv="sf-photo-zoom",uce="--sf-photo-zoom",LGe="sf-photo-wash",Fx="sf-photo-wash-rest",uf="sf-photo-wash-hover",Nx="sf-photo-frame",a4=(e,o)=>`:not([${r4}]:not(${o}) .${e})`,Uv=(e,o)=>`[${r4}]${o} .${e}${a4(e,o)}`,$v=(e,o)=>`${o},${Uv(e,":hover")},[${zv}]:hover .${e}${a4(e,":hover")}`,J2=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))`,mce=`.${uf}{opacity:0}@media (hover:hover){.${Fx},.${uf}{transition:${J2("opacity")}}${$v(uf,`.${Nx}:hover .${uf}`)}{opacity:1}${$v(Fx,`.${Nx}:hover .${Fx}`)}{opacity:0}}@media (hover:hover) and (prefers-reduced-motion:no-preference){.${Wv}{transition:${J2("transform")}}${$v(Wv,`.${Nx}:hover .${Wv}`)}{transform:scale(var(${uce}))}}@media (hover:hover) and (prefers-reduced-motion:reduce){.${Fx},.${uf}{transition:none}}`,FGe="sf-photo-move";function BGe(e){if(!e||!e.zoom&&!e.darken)return null;let o=o4(e);return{className:Nx,sheet:mce,...o?{style:o}:{}}}function n4(e){return e===!0?{[Ls]:Dx}:{}}var Bx="sf-box-reveal",NGe="sf-box-reveal",hce=8,Q2=.3,DGe=`@media ${kc}{.${Bx}{opacity:0;transform:translateY(${hce}px);transition:opacity ${Q2}s ease-out,transform ${Q2}s ease-out}${Uv(Bx,":hover")},${Uv(Bx,":focus-within")}{opacity:1;transform:none}}@media ${kc} and (prefers-reduced-motion:reduce){.${Bx}{transition:none;transform:none}}`;import{hidableText as xce}from"efficient-easel/draw";var gce={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"},Ice={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 i4(e){let o=e.isVideo&&b1(e.videoSource)==="youtube",t=e.isVideo&&S1(e.videoPlayback)==="click",r=o?w1(xce(e.youtubeUrl)):null,a=Lu(e.mediaLayout);return{fromYouTube:o,onClick:t,youTubeId:r,backgroundFile:e.isVideo&&!o&&!t,desktopLayout:a,phoneLayout:lb(e.mediaLayoutPhone,a),twoPictures:!e.isVideo&&$c(e)>1}}function mf(e,o){return Li(Ps({_partMotion:e},o))}function hf(e,o){return El(Ps({_partMotion:e},o))}var Mx=e=>gv({desktop:e.objectPosition,tablet:e.objectPositionTablet,phone:e.objectPositionPhone}),l4=Dc.img;function c4({entrance:e,scroll:o,origins:t,editing:r,className:a,attrs:n,style:s,zoomLayerClass:i,children:l}){return e?Ko(dx,{views:e,editing:r,boxClass:a,boxAttrs:n,...s?{boxStyle:s}:{},children:l}):o?Ko(Ax,{views:o,...t?{origins:t}:{},boxClass:a,boxAttrs:n,...s?{boxStyle:s}:{},...i?{zoomLayerClass:i}:{},children:l}):Ko("div",{className:a,...n,...s?{style:s}:{},children:l})}function Bl(e,o){return t4(void 0,void 0,M_(Ps({_partMotion:e},o)))}function d4(e){return As.some(o=>Bl(e,o).className)?{hostAttrs:{[zv]:""},sheet:Dx}:{}}function Hx({treatment:e,children:o}){return e.className?Ko("div",{className:`absolute inset-0 ${e.className}`,...e.style?{style:e.style}:{},children:o}):Ko(s4,{children:o})}function Wx({color:e,opacity:o,passClicks:t=!0}){return o>0?Ko("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},...pn("tint")}):null}function $x({part:e,editing:o,marked:t=!0,entrance:r,scroll:a=null,origins:n,className:s,children:i}){let l=o&&t?{[pf]:e}:void 0;return Ko(c4,{entrance:r,scroll:a,origins:n,editing:o,className:s,attrs:l,zoomLayerClass:l4,children:i})}function f4({partMotion:e,editing:o,children:t}){let r=mf(e,"media"),a=hf(e,"media"),n=Bl(e,"media"),s=Ko(gu,{fill:Dc,children:t}),i=n.className?Ko("div",{className:`absolute inset-0 z-[1] ${n.className}`,...n.style?{style:n.style}:{},children:s}):s;return r||a?Ko(c4,{entrance:r,scroll:a,editing:o,className:"absolute inset-0 z-[1]",zoomLayerClass:l4,children:i}):Ko(s4,{children:i})}function p4({desktopLayout:e,phoneLayout:o,editing:t,marked:r=!0,partMotion:a,first:n,second:s,laterSlide:i=!1}){return Gv("div",{className:`absolute inset-0 z-[1] grid ${gce[o]} ${Ice[e]}`,"data-hero-layout":e,"data-hero-layout-phone":o,children:[Ko($x,{part:"image",editing:t,marked:r,entrance:mf(a,"image"),scroll:hf(a,"image"),origins:Mx(n),className:"relative overflow-hidden",children:Gv(Hx,{treatment:Bl(a,"image"),children:[Ko(df,{posterSrc:$t(n.src),showVideo:!1,laterSlide:i,objectPosition:n.objectPosition,objectPositionPhone:n.objectPositionPhone,objectPositionTablet:n.objectPositionTablet}),Ko(Wx,{color:n.tintColor,opacity:n.tintOpacity})]})}),Ko($x,{part:"image2",editing:t,marked:r,entrance:mf(a,"image2"),scroll:hf(a,"image2"),origins:Mx(s),className:`relative overflow-hidden ${fm({desktop:e==="one",tablet:e==="one",mobile:o==="one"},{atSectionLine:!0})}`.trimEnd(),children:Gv(Hx,{treatment:Bl(a,"image2"),children:[Ko(df,{posterSrc:$t(s.src),showVideo:!1,laterSlide:i,objectPosition:s.objectPosition,objectPositionPhone:s.objectPositionPhone,objectPositionTablet:s.objectPositionTablet}),Ko(Wx,{color:s.tintColor,opacity:s.tintOpacity})]})})]})}import{jsx as mn,Fragment as yce,jsxs as bce}from"react/jsx-runtime";import{useEffect as Sce,useRef as wce,useState as Cce}from"react";import{PlaySolidIcon as vce}from"efficient-shell/icons/efficient-looks";function u4({youTubeId:e,ownPoster:o,background:t,editing:r}){let[a,n]=Cce("large");return Sce(()=>n("large"),[e]),e?bce(yce,{children:[!o&&a!=="none"&&mn(ax,{src:a==="large"?C1(e):v1(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&&mn("div",{className:"pointer-events-none absolute inset-0 z-[3] overflow-hidden [container-type:size]","aria-hidden":"true",children:mn("iframe",{src:fb(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 m4({youTubeId:e,fileSrc:o,fileAv1Src:t,fileSrcPhone:r,fileAv1SrcPhone:a,playing:n,onPlay:s,editing:i}){let l=wce(null),d=Xd(l,!0,!0)==="phone";if(!e&&!o)return null;let f=Eu({video:o,av1:t,videoPhone:r,av1Phone:a},d),u=Pu(f.video,f.av1);return n&&!i?e?mn("iframe",{src:fb(e,"click"),title:pb,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"}):mn("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=>mn("source",{src:p.src,type:p.type},p.src))},f.video):mn("button",{ref:p=>{l.current=p},type:"button","aria-label":pb,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:mn(vce,{size:28})})}function h4(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 x4=["top","middle","bottom"],g4=["left","center","right"],I4="bottom",y4="left",Tce={top:"Top",middle:"Middle",bottom:"Bottom"},kce={left:"Left",center:"Center",right:"Right"},mje="Up and down",hje="Sideways",Pce={top:"flex-start",middle:"center",bottom:"flex-end"},Ece={left:"flex-start",center:"center",right:"flex-end"},_ce="--sf-hero-phone-y",Oce="--sf-hero-phone-x";function Ace(e){return Q(x4,I4,e)}function Rce(e){return Q(g4,y4,e)}function b4(e,o){let t=Ace(e),r=Rce(o),a={};return t!==I4&&(a[_ce]=Pce[t]),r!==y4&&(a[Oce]=Ece[r]),a}var Lce="--sf-hero-phone-words-top",Fce="--sf-hero-phone-words-bottom",Bce="--sf-hero-phone-box-gap",xje=100,gje=90,Ije=28,Nce=0,Dce=200,yje="Words space top",bje="Words space bottom",Sje="Space between boxes";function jv(e){if(!(typeof e!="number"||!Number.isFinite(e)))return Math.min(Dce,Math.max(Nce,Math.round(e)))}function S4(e,o,t){let r={},a=jv(e),n=jv(o),s=jv(t);return a!==void 0&&(r[Lce]=`${a}px`),n!==void 0&&(r[Fce]=`${n}px`),s!==void 0&&(r[Bce]=`${s}px`),r}function wje(){return x4.map(e=>({label:Tce[e],value:e}))}function Cje(){return g4.map(e=>({label:kce[e],value:e}))}import{hexToRgb as Mce}from"efficient-shell/format";var Hce=!0;var Wce=[[0,".5"],[30,".1"],[60,".1"],[100,".85"]];function w4(e){let o=Mce(e);return o?`${o.r},${o.g},${o.b}`:null}function C4(e){return e==null?Hce:e!==!1}function v4(e){let o=(e?w4(e):null)??w4(Ir);return`linear-gradient(180deg, ${Wce.map(([t,r])=>`rgba(${o},${r}) ${t}%`).join(", ")})`}import{hexToRgb as T4}from"efficient-shell/format";var k4="bottom";var $ce=[{label:"Bottom",value:"bottom",cell:"bottom"},{label:"Top",value:"top",cell:"top"},{label:"Left",value:"left",cell:"left"},{label:"Right",value:"right",cell:"right"}],Uce={bottom:180,top:0,left:270,right:90},zce=[[.55,0],[.15,18],[null,35],[null,55],[.85,100]],Gce=[[null,33],[.6,67],[.94,100]];function jce(e,o){let{r:t,g:r,b:a}=T4(e)??T4(Ir);return`rgba(${t},${r},${a},${o})`}function P4(e){return Q($ce,k4,e)}function E4(e=Ir,o=k4){let t=P4(o),r=(t==="top"||t==="bottom"?zce:Gce).map(([a,n])=>`${a===null?"transparent":jce(e,a)} ${n}%`);return`linear-gradient(${Uce[t]}deg, ${r.join(", ")})`}function _4(e,o){let t=Se(e.overlayColor),r=Se(e.overlayPosition),a=Se(o)??Ir;return!t&&!r?{own:!1,color:a,position:null}:{own:!0,color:t??a,position:P4(r)}}var Xce=Kce({});function Xje({name:e,process:o,mediaType:t=Wc.HeroSlide,mediaSrc:r,videoSpeed:a,poster:n,mediaAv1:s,mediaSrcPhone:i,mediaAv1Phone:l,posterPhone:d,objectPosition:f,objectPositionPhone:u,objectPositionTablet:p,tintColor:m=Ir,tintOpacity:h=0,groups:I,editing:w=!1,themeClassName:S,themeStyle:C,overlayColor:b,overlayPosition:y,mediaLayout:v,mediaLayoutPhone:L,mediaImage2:O,objectPosition2:N,objectPosition2Phone:k,objectPosition2Tablet:F,tintColor2:T=Ir,tintOpacity2:_=0,videoSource:P,youtubeUrl:A,videoPlayback:W,partMotion:G,laterSlide:Z=!1}){let X=Wt(),{alignment:ce="left",textureOpacity:fe,textureOn:te,textureColor:Te,quietVideo:ve,phoneUpDown:Re,phoneSideways:Le,phoneWordsTop:nt,phoneWordsBottom:Zo,phoneBoxGap:ut,holdReel:Co,reelHeld:Mo,shownSlide:vo,ratioMin:me}=Vce(Xce),so=jd(),z=Z&&so==="first",ke=qce(null),[Oe,To]=A4(vo===void 0?void 0:!1);Yce(()=>{let bc=ke.current;To(vo===void 0||!bc?void 0:h4(bc.closest(".hero-track"),"data-slide-name")[vo]===bc)});let eo=t==="video",Ho=eo?$t(r):void 0,xo=eo?$t(n):$t(r)??$t(n),uo=eo?{av1:$t(s),phone:$t(i),av1Phone:$t(l),poster:$t(d)}:{},na=typeof a=="number"?a/100:1,{fromYouTube:mt,onClick:vp,youTubeId:ii,backgroundFile:Nr,desktopLayout:Tp,phoneLayout:Na,twoPictures:_n}=i4({isVideo:eo,videoSource:P,videoPlayback:W,youtubeUrl:A,mediaLayout:v,mediaLayoutPhone:L}),[li,gc]=A4(!1);li&&Mo===!1&&gc(!1);let Da=!li,ci=_4({overlayColor:b,overlayPosition:y},Te),Ic=eo?null:mf(G,"image"),kp=eo?null:hf(G,"image"),di=d4(G),yc=Jt(Hx,{treatment:eo?{}:Bl(G,"image"),children:Jt(df,{videoSrc:Nr?Ho:void 0,videoAv1Src:Nr?uo.av1:void 0,videoSrcPhone:Nr?uo.phone:void 0,videoAv1SrcPhone:Nr?uo.av1Phone:void 0,posterSrc:xo,posterSrcPhone:uo.poster,showVideo:Nr,playbackRate:na,objectPosition:f,objectPositionPhone:eo?void 0:u,objectPositionTablet:eo?void 0:p,quiet:ve,slideShown:Oe,laterSlide:Z,laterOfLead:z})}),Pp=O4("section",{ref:ke,className:et(`${me?"relative flex min-h-full w-full flex-col 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":Nr&&Ho?"video":"still",...di.hostAttrs,...pn("slide"),children:[Jt(bx,{sheet:di.sheet}),Jt(f4,{partMotion:G,editing:w,children:_n?Jt(p4,{laterSlide:Z,desktopLayout:Tp,phoneLayout:Na,editing:w,partMotion:G,first:{src:r,objectPosition:f,objectPositionPhone:u,objectPositionTablet:p,tintColor:m,tintOpacity:h},second:{src:O,objectPosition:N,objectPositionPhone:k,objectPositionTablet:F,tintColor:T,tintOpacity:_}}):mt||Ic||kp?O4($x,{part:eo?"media":"image",editing:w,entrance:Ic,scroll:kp,origins:Mx({objectPosition:f,objectPositionTablet:p,objectPositionPhone:u}),className:"absolute inset-0 z-[1]",children:[yc,mt&&Jt(u4,{youTubeId:ii,ownPoster:!!xo,background:!vp,editing:w})]}):yc}),vp&&Jt(m4,{youTubeId:ii,fileSrc:mt?void 0:Ho,fileAv1Src:mt?void 0:uo.av1,fileSrcPhone:mt?void 0:uo.phone,fileAv1SrcPhone:mt?void 0:uo.av1Phone,playing:li,onPlay:()=>{gc(!0),Co?.()},editing:w}),Da&&!_n&&Jt(Wx,{color:m,opacity:h,passClicks:!1}),Da&&C4(te)&&Jt("div",{className:"absolute inset-0 z-[2]",style:{background:ci.own?E4(ci.color,ci.position??void 0):v4(ci.color),...fe!==void 0?{opacity:fe/100}:null},...pn("overlay")}),Da&&Jt("div",{className:[me?"sf-hero-group-layer relative z-[3] mx-auto w-full flex-1 max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)] 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:{...cO,...b4(Re,Le),...S4(nt,Zo,ut)},...pn("hero-content"),children:I&&Jt(I,{className:"sf-hero-group-zone",minEmptyHeight:160})})]});return X.scope(z?Jt(rx,{children:Pp}):Pp)}var R4=Array.from({length:3},(e,o)=>({name:`Slide ${o+1}`,process:"Category",mediaType:"image",mediaVideo:"",poster:""}));import{newNodeId as D4}from"efficient-easel/draw";import{isNodeList as Jce}from"efficient-easel/data";var Kv=3,Vv=()=>({type:Y,props:{direction:"column"},slots:{[Me]:[{type:"ImageBlock"},{type:Y,props:{direction:"column"},slots:{[Me]:[{type:"Text",props:Wa()},{type:"Text"}]}}]}}),L4=()=>Array.from({length:Kv},Vv);var F4=["","","","","",""],B4="#ticker",xf="strip",Yv={sectionAccent:$r,line:!1};function Zce(e){return(Array.isArray(e.tickerItems)?e.tickerItems:[]).map(o=>typeof o?.text=="string"?o.text:"").filter(o=>o.trim()!=="")}function qv(e){return Zce(e).length>0}function rKe(e){return e.showTicker!==!1&&qv(e)}var M4=(e,o)=>({type:e.type,props:{...o?.(e.type)??{},...Object.fromEntries(Object.entries(e.props).map(([t,r])=>[t,Jce(r)?r.map(a=>M4(a,o)):r]))}}),Qce=e=>{let[o]=Mr([Vv()],a=>D4(a)),{id:t,...r}=M4(o,e).props;return r},Qt={Hero:{slot:"slides",childType:"HeroSlide",addLabel:"Add slide",slider:!0,seeds:()=>R4.map(e=>({...e}))},HeroSlide:{slot:"groups",childType:"HeroGroup",addLabel:`Add ${Cc.toLowerCase()}`,seeds:()=>[],addBlocked:Qy,notice:eb},HeroSingle:{slot:"boxes",childType:"HeroGroup",addLabel:`Add ${Cc.toLowerCase()}`,seeds:()=>[],addBlocked:Qy,notice:eb},ProcessSteps:{slot:wc,childType:Y,addLabel:`Add ${Cc.toLowerCase()}`,seeds:e=>Array.from({length:Kv},()=>Qce(e)),skipSeed:e=>Array.isArray(e.steps)&&e.steps.length>0}},N4=1,ede={slot:xf,childType:Y,addLabel:`Add ${Cc.toLowerCase()}`,seeds:()=>[],addBlocked:e=>e.length>=N4?"This Hero has its Scrolling Bar already. Delete it to add another.":null,notice:e=>e.length>N4?`This Hero holds ${e.length} Scrolling Bars. Keep one and delete the others.`:null},H4={Hero:{[xf]:ede}};function hKe(e){for(let[o,t]of Object.entries(e)){if(We(Qt,o)&&$(Qt,o)!==t)throw new Error(`lib/document/slot-specs: "${o}" already has a slot spec`);Qt[o]=t}}function xKe(e,o){let t=$(Qt,e);return t?{slot:t.slot,children:t.seeds(o).map(r=>({type:t.childType,props:{id:D4(t.childType),...r}}))}:null}var tde=["GalleryB"];function W4(e){let o=e.content;if(!Array.isArray(o))return e;let t=!1,r=o.map(s=>{let i=s?.type;if(!i||!tde.includes(i))return s;let l=$(Qt,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(ode(r)),n=a.size?r.filter((s,i)=>!a.has(i)):r;return a.size&&(t=!0),t?{...e,content:n}:e}var rde={"Logos.logosPerRow":"columns","HeroSlide.tintOpacity":"overlay","Split.textBgTint":"overlay"},ade={"Footprint.source":"typed"};function $4(e){let o=e.props,t=!1;if(e.type&&o)for(let[r,a]of Object.entries(rde)){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(ade)){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],qE(i)&&i!==a&&!oo(l)&&(l[Oo]=i),o=l,t=!0}if(e.type&&o){let r=Xp(e.type,o);r!==o&&(o=r,t=!0)}if(o){let r=go({props:o},a=>io(a,$4));r.props!==o&&(o=r.props,t=!0)}return t?{...e,props:o}:e}function U4(e){return Ap(e,o=>io(o,$4))}import{readHidable as nde}from"efficient-easel/draw";var ea=Y,oa=Me;function Fs(e){if(e.theme)return ko(e.theme);let o=e.site?.themePresets;return o?ko({selected:e.site?.selectedPreset??0,themes:[...o]}):void 0}function sde(e,o){return o===0?`${e}~box`:`${e}~box-${o+1}`}var G4=new Set(["id"]),hn={},gf=[],ide={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"]},lde=Object.keys(ide),Bs=["Breadcrumb","DocBody","Form","SubmitBuild","Footprint","FAQ","ContactLocations","ProcessSteps",...lde,"Stats","Logos","PaymentBadges","PaymentLogosBlock","FitmentFinder","DocMasthead","DocTabs","Timeline","TimelineTrack","OrderSummary","Chart","Mockup","Integrations","Countdown","FeaturedCover","IntroBleed","SectionHeader","TitleWithButtons","Prose","ParagraphsA","Banner","Cards"];function Eo(e){for(let[o,t]of Object.entries(e)){if(We(hn,o)&&$(hn,o)!==t)throw new Error(`lib/sections/section-to-box: "${o}" already has a row`);hn[o]=t}}function xn(e){return $(hn,e)}function cde(e){return We(hn,e)&&gf.includes(e)}function j4(e,o=Bs){return We(hn,e)&&(o.includes(e)||cde(e))}function BKe(e){let o=$(mr,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 Xv=e=>nde(e),ao=e=>Xv(e).text.trim()!=="";function dde(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 fde=e=>e==="heading"?Wa():e==="eyebrow"?fa():{};function pde(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 ude(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 z4(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 mde(e){let o=new Set([...G4,"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=>Kp(e.headPlacement)==="own-box";function hde(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 xde(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 gde(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 Ide(e,o,t){if(!t.press)for(let r of gde(e)){let a=xde(o,r);if(a!==void 0)return a}}function Ns(e,o,t={}){let r=e.props,a=(o.ownBoxConverts?void 0:hde(r))??Ide(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=mde(o),p=0,m=(y,v)=>({type:y,props:{...v,id:`${n}~${y}-${++p}`}}),h=(y,v,L,O,N,k,F)=>{if(N){for(let _ of y??[]){let P=typeof _=="string"?_:_[0];L[P]!==void 0&&F(P,`nothing \u2014 the ${O} has no parts, so it is not drawn`)}return}let T=typeof v=="function"?v(r,t):v??{};return z4(y??[],T,L,(_,P,A)=>F(_,A?`nothing \u2014 the old value draws nothing (${O}: no ${P})`:`${k}${O}: ${P}`),t)},I=y=>Mr(y,v=>`${n}~${v}-${++p}`),w=(y,v,L)=>{let O=y.of?y.of(v):Array.isArray(v[y.key])?v[y.key]:[],N=typeof y.props=="function"?y.props(r,t):y.props??{},k=O.map((A,W)=>{let G=A??{},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(ce=>({...ce,props:{...ce.props,...Z.props,id:ce.props.id}})):X:[m(ea,{name:`${y.name} ${W+1}`,...N,...Z.props??{},[oa]:X})]});if(y.groups){let A=y.groups;return L(y.key,O.length?`one Box per item (${O.length}), in a Box per group`:"nothing \u2014 the list is empty"),Yp(O.map(W=>W??{}),A.of,A.of).map((W,G)=>{let Z=W.items.map(ve=>ve.item),X=A.parts?S(A.parts,A.head?.(Z,r)??{},!1,`group ${G+1}: `):[],ce=W.items.map(ve=>k[ve.index]),fe=A.perRow?.(Z.length,r),te=Number.isInteger(fe)&&fe>=1?fe:1,Te=[];if(A.perRow&&te<ce.length)for(let ve=0;ve*te<ce.length;ve++)Te.push(ce.slice(ve*te,(ve+1)*te).flat());return m(ea,{name:`${A.name} ${G+1}`,...A.props??{},[oa]:[...X,m(ea,{name:`${A.itemsName} ${G+1}`,...A.itemsProps?.(Z.length,r)??{},[oa]:Te.length?Te.map((ve,Re)=>m(ea,{name:`${A.rowName??`${A.itemsName} row`} ${Re+1}`,...A.rowProps??{},[oa]:ve})):ce.flat()})]})})}let F=y.perRow?.(r),T=y.perRow?Number.isInteger(F)&&F>=1?F:1:0;if(L(y.key,(O.length?y.flat?`each item's parts (${O.length} items), in order`:`one Box per item (${O.length}), its parts inside`:"nothing \u2014 the list is empty")+(T&&O.length?`, in rows of ${T}`:"")),!T)return k.flat();let _=typeof y.rowProps=="function"?y.rowProps(r,t):y.rowProps??{},P=[];for(let A=0;A*T<k.length;A++){let W=k.slice(A*T,(A+1)*T).flat(),G=y.rowFiller?T-k.slice(A*T,(A+1)*T).length:0;P.push(m(ea,{name:`${y.rowName??`${y.name} row`} ${A+1}`,..._,[oa]:[...W,...Array.from({length:G},(Z,X)=>m(ea,{name:`Empty ${X+1}`,...y.rowFiller,[oa]:[]}))]}))}return P},S=(y,v,L,O)=>{let N=[],k=(T,_)=>L?d(T,_):void 0,F=T=>L?f[T]:void 0;for(let T of y)if(!(T.when&&!T.when(r,L?void 0:v)))switch(T.kind){case"text":{let _=Xv(v[T.key]);if(!_.text.trim()&&!(L&&t.press&&o.pressKeepsEmpty?.includes(T.key))){k(T.key,"nothing \u2014 empty words draw nothing, so no block");break}let P=fde(T.role??"body"),{_partStyles:A,...W}=P,G=pde(P,T.styleFrom?{...T.style,...T.styleFrom(r,t)}:T.style,F(T.key),T.props?.align);N.push(m("Text",{text:T.mark==="accentLead"?dde(_.text):T.mark==="accentItalic"?Tc(_.text):_.text,...W,...T.props??{},...G,..._.hidden?{_hidden:!0}:{}})),k(T.key,`${O}Text block: its words${_.hidden?", hidden":""}`);break}case"button":{let _=Xv(v[T.key]);if(!_.text.trim()){k(T.key,"nothing \u2014 no words, no button"),k(T.href,"nothing \u2014 no button to link"),typeof T.variant=="object"&&k(T.variant.key,"nothing \u2014 no button to style");break}let P=typeof v[T.href]=="string"&&v[T.href]?v[T.href]:"#",A={...T.style??{},...F(T.key)??{}};N.push(m("ButtonBlock",{label:_.text,href:P,...typeof T.props=="function"?T.props(v,t):T.props??{},...ude(T.variant,v),...Object.keys(A).length?{_partStyles:{label:A}}:{},..._.hidden?{_hidden:!0}:{}})),k(T.key,`${O}Button block: its words`),k(T.href,`${O}Button block: its link`),typeof T.variant=="object"&&k(T.variant.key,`${O}Button block: its Style`);break}case"image":{let _=v[T.key];if(typeof _!="string"||!_){k(T.key,"nothing \u2014 no picture, no block"),T.alt&&k(T.alt,"nothing \u2014 no picture to describe");break}let P=T.alt&&typeof v[T.alt]=="string"?v[T.alt]:"";N.push(m("ImageBlock",{src:_,alt:P,...T.props??{}})),k(T.key,`${O}Image block: its picture`),T.alt&&k(T.alt,`${O}Image block: its alt text`);break}case"list":{N.push(...w(T,v,k));break}case"group":{let _=S(T.parts,v,L,O),P=h(T.box,T.props,v,`${T.name} Box`,!_.length&&!T.keepEmpty,O,k);P&&N.push(m(ea,{name:T.name,...P,[oa]:_}));break}case"block":{let _=T.parts?S(T.parts,v,L,O):[],P=h(T.box,T.props,v,`${T.type} block`,!!T.parts&&!_.length&&!T.keepEmpty,O,k);P&&N.push(m(T.type,{...P,...T.slot?{[T.slot]:_}:{}}));break}case"core":{let _=T.as??e.type,P={...T.headless?{}:{headPlacement:"own-box"},...T.props??{}},A=T.keep==="rest"?Object.keys(v).filter(G=>!u.has(G)&&!(G in P)):T.keep;for(let G of A)v[G]!==void 0&&(P[G]=v[G],k(G,`the ${_} block inside the Box`));if(T.keep==="rest"){for(let Z of Object.keys(T.props??{}))v[Z]!==void 0&&!u.has(Z)&&k(Z,`nothing \u2014 the ${_} block inside the Box has the row's own value`);v.headPlacement!==void 0&&k("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(T.rename??{}))v[G]!==void 0&&(P[Z]=v[G],k(G,`the ${_} block inside the Box: ${Z}`));if(T.derive){Object.assign(P,T.derive.props(v,t));for(let G of T.derive.reads)v[G]!==void 0&&k(G,`the ${_} block inside the Box`)}let W=typeof T.slots=="function"?T.slots(v,t):T.slots??{};for(let[G,Z]of Object.entries(W))P[G]=Z.flatMap(X=>"kind"in X?w(X,v,k):I([X]));N.push(m(_,P));break}}return N},C=(y,v)=>{let L=v===0?"Box":`${y.name} Box`,O=S(y.parts,r,!0,v===0?"":`${L}: `),N=typeof y.boxProps=="function"?y.boxProps(r,t):y.boxProps??{},k=z4(y.box??[],N,r,(F,T,_)=>d(F,_?`nothing \u2014 the old value draws nothing (${L}: no ${T})`:`${L}: ${T}`),t);return{type:ea,props:{name:y.name,...k,[oa]:O,id:sde(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))G4.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 K4(e,o=gf,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)?$(hn,s.type):void 0;if(!i)return[s];let l=Ns(s,i,t);return l.skipped!==void 0?[s]:(a=!0,l.nodes)});return a?{...e,content:n}:e}function V4(e,o=gf,t={}){if(!Array.isArray(e))return[];let r=[];return e.forEach((a,n)=>{let s=a&&typeof a.type=="string"&&o.includes(a.type)?$(hn,a.type):void 0;if(!s)return;let i=Ns(a,s,t);i.skipped===void 0&&r.push({index:n,node:i.node,nodes:i.nodes})}),r}import{BLOCK_FIXED_WIDTH as yde,BLOCK_SIZE_KEYS as bde,parseBlockWidthFit as zx,phoneKey as Y4,parseTextFit as Ux,tabletKey as q4,viewKeyAt as X4}from"efficient-easel/draw";import{sideLengthAt as Sde}from"efficient-easel/screen/lib/content/length-units";var wde="sf-block-size",If=["width","minWidth","maxWidth"],Gx=e=>`${e}Unit`,gn=e=>typeof e=="number"&&Number.isFinite(e)&&e>=0?e:void 0,Cde={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"}},e5={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"}},vde={desktop:e5.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"}},Tde={two:{desktop:"view-wide:[.flex-row>*>&]:grow"},three:{desktop:"view-desktop:[.flex-row>*>&]:grow",tablet:"view-wide:max-view-desktop:[.flex-row>*>&]:grow"}},o5="max-view-wide:grow!";function t5(e){return jx(e).mode.phone==="fill"}var kde={desktop:"--sf-bw",tablet:"--sf-bw-t",phone:"--sf-bw-p"},Pde={fill:"data-sf-width-fill",fixed:"data-sf-width-fixed"},Ede="data-sf-min-width",Z4={two:{desktop:"wide",phone:ob.phone},three:ob},_de={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)]"]}},Jv={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)]"]}},Ode={minWidth:{desktop:Jv.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:Jv.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",...If],J4={desktop:"view-wide:whitespace-nowrap view-wide:[&_*]:whitespace-nowrap!",phone:"max-view-wide:whitespace-nowrap max-view-wide:[&_*]:whitespace-nowrap!"},Qv={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!"},Rde={desktop:Qv.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!"},r5={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"},Lde={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:r5.phone},a5={desktop:"view-wide:max-w-full",phone:"max-view-wide:max-w-full"},Q4={desktop:"view-desktop:max-w-full",tablet:"view-wide:max-view-desktop:max-w-full",phone:a5.phone};function n5(e){let o=jx(e);return o.sides.filter(t=>o.mode[t]==="fill").map(t=>Tde[o.three?"three":"two"][t]).filter(Boolean).join(" ")}function s5(e){let{three:o,sides:t,mode:r,lengthPerSide:a}=jx(e),n=d=>o?Z4.three[d]:Z4.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[Pde[d]]=s[d].join(" "));return s.min.length&&(l[Ede]=s.min.join(" ")),l}function jx(e){let o=Ade.some(a=>{let n=e[a]?.tablet;return a==="widthFit"?zx(n)!==void 0:gn(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=Gx(a),s={};for(let l of t)s[X4(a,ua(l))]=gn(e[a]?.[l]),s[X4(n,ua(l))]=e.units?.[a]?.[l];let i=l=>Sde(s,{length:a},n,ua(l),"length")??void 0;return{desktop:i("desktop"),tablet:i("tablet"),phone:i("phone")}},mode:r(zx,e.widthFit)}}function eT(e,{atSectionLine:o=!1}={}){let t=["desktop","tablet","phone"].some(_=>Ux(e.textFit?.[_])==="ellipsis"),r=o&&!t,a=r?vde:e5,n=r?Ode:Jv,s=r?Rde:Qv,i=[],l={},d={},{three:f,sides:u,lengthPerSide:p,mode:m}=jx(e),h=p("width");for(let _ of u){let P=m[_];!P||P==="fit"||(i.push(f?a[_][P]:Cde[_][P]),P==="fixed"&&(l[kde[_]]=He(h[_]?.value??yde.fallback,h[_]?.unit)))}for(let _ of If.filter(P=>P!=="width")){let P=p(_);for(let A of u){let W=P[A];if(W===void 0)continue;let[G,Z]=f?n[_][A]:_de[_][A];l[G]=He(W.value,W.unit),i.push(Z)}}let I=Ux(e.textFit?.desktop),w=Ux(e.textFit?.phone),S=_=>{let P=gn(e.minFont?.[_]);return P===void 0?void 0:e.units?.minFont?.[_]==="vw"?`${P}vw`:String(P)},C=S("desktop"),b=S("phone"),y=Ux(e.textFit?.tablet),v=y!==I||w!==void 0?y:void 0,L=S("tablet"),O=L!==C||b!==void 0?L:void 0,N=gn(e.maxWidth?.desktop),k=gn(e.maxWidth?.tablet)??N,F={desktop:N!==void 0,tablet:k!==void 0,phone:(gn(e.maxWidth?.phone)??k)!==void 0},T=(_,P,A)=>{if(P!=="line"&&P!=="ellipsis")return;let W=_==="tablet"?void 0:_,G=(Z,X)=>A||!W?Z[_]:X[W];if(P==="line"){i.push(G(s,J4));return}if(i.push(G(Qv,J4)),i.push(G(Lde,r5)),f&&!A&&_==="desktop")for(let Z of["desktop","tablet"])F[Z]||i.push(Q4[Z]);else F[_]||i.push(G(Q4,a5))};return v?(T("desktop",I,!0),T("tablet",v,!0),T("phone",w??v,!0)):(T("desktop",I,!1),T("phone",w??I,!1)),I&&(d[Pa.fit]=I),v&&(d[Pa.fitTablet]=v),w&&(d[Pa.fitPhone]=w),C!==void 0&&(d[Pa.min]=C),O!==void 0&&(d[Pa.minTablet]=O),b!==void 0&&(d[Pa.minPhone]=b),!r&&(v||O!==void 0)&&(d[Pa.edge]=""),i.length===0&&Object.keys(d).length===0?null:{className:[wde,...i].join(" "),style:l,attrs:d}}function UKe(e){if(gn(e.maxWidth?.desktop)!==void 0)return!0;let o=zx(e.widthFit?.desktop);return o==="fill"||o==="fixed"}function i5(e){return["desktop","tablet","phone"].some(o=>{let t=zx(e.widthFit?.[o]);return t==="fixed"||t==="fill"||gn(e.minWidth?.[o])!==void 0})}function Kx(e){let o={};for(let t of bde){let r=e[t],a=e[q4(t)],n=e[Y4(t)];(r!==void 0||a!==void 0||n!==void 0)&&(o[t]={desktop:r,tablet:a,phone:n});let s=Gx(t),i={desktop:e[s],tablet:e[q4(s)],phone:e[Y4(s)]};(i.desktop!==void 0||i.tablet!==void 0||i.phone!==void 0)&&((o.units??={})[t]=i)}return o}var l5={label:"Button",defaultProps:{label:"",href:"#",variant:"primary",align:"left",contained:!0}};import{parseHexColor as Fde}from"efficient-shell/format";import{convertLength as Bde}from"efficient-easel/screen/lib/content/length-units";var ta=(e,o,t,r)=>o===t?e:Bde(e,o,t,r,{min:0,max:200,step:4}),Ds={textFit:"line",textFitPhone:"wrap"},Ms={...j,[Pt]:""},{label:y8e,href:b8e,...Nde}=l5.defaultProps,Fo=Nde,Hs={buttonFillOpacity:0,buttonBorder:{width:0},buttonPaddingTop:0,buttonPaddingRight:0,buttonPaddingBottom:0,buttonPaddingLeft:0},ee={...Ry,sectionAccent:0},Dl={sectionAccent:-1},ae=[...Ya,"sectionHeightMode","sectionHeightValue","sectionHeightUnit","sectionHeightModeTablet","sectionHeightValueTablet","sectionHeightUnitTablet","sectionHeightModePhone","sectionHeightValuePhone","sectionHeightUnitPhone","sectionCorners","sectionCornerSides","sectionBorder","sectionBorderTablet","sectionBorderPhone","sectionAccent",jc.unitKey,...kF,...bF,"anchor",Bc,...ji,Oi,...hu,...px,...mu(["widthFit",...If,...If.map(Gx)]),...Object.values(Be)],Nl="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",oe={sectionSurface:"read by nothing in src/ (searched 2026-10-24): a retired theme key that draws nothing today, so dropping it changes nothing",widthMode:Nl,fullWidth:Nl,pageWidth:Nl,backgroundWidth:Nl,contentWidth:Nl,contentMax:Nl},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=V(e.sectionPaddingTop)??0,r=V(e.sectionPaddingBottom)??0,a=V(e.sectionPaddingTopTablet),n=V(e.sectionPaddingBottomTablet),s=Ae(e.sectionPaddingUnit),i=Ae(e.sectionPaddingUnitTablet),l=Ae(e.sectionPaddingUnitPhone),d=(u,p,m,h)=>{let I=V(u);if(I!==void 0)return I+ta(h,"px",l,"mobile");let w=p===void 0?{n:m,unit:s}:{n:p,unit:i};return ta(w.n,w.unit,l,"mobile")+ta(h,"px",l,"mobile")},f=(u,p,m,h,I)=>p!==void 0?{[u]:p+ta(I??h,"px",i,"tablet")}:I===void 0?{}:{[u]:ta(m,s,i,"tablet")+ta(I,"px",i,"tablet")};return{sectionPaddingTop:t+ta(o.top,"px",s,"desktop"),sectionPaddingBottom:r+ta(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 Ie=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 er(e,o){let t={};for(let[a,n]of DS)e[a]!==void 0&&(t[n]=e[a]);let r=fd(e,Tl(o));return{...t,sectionPaddingTop:r.top,sectionPaddingBottom:r.bottom}}var In=e=>[...DS.map(([o,t])=>[o,t,(r,a)=>er(a,e)[t]]),["sectionPaddingTop","sectionPaddingTop",(o,t)=>er(t,e).sectionPaddingTop],["sectionPaddingBottom","sectionPaddingBottom",(o,t)=>er(t,e).sectionPaddingBottom]],Dde={kind:"heading-case-upper",styles:["heading-1","heading-2","heading-3"]},S8e=e=>o=>ao(o.props[e])?[Dde]:[],ye=(e,o)=>({kind:"text",key:e,role:"eyebrow",props:j,...o?{style:o}:{}}),Ml=e=>({kind:"group",name:"Chip",props:{...D,...da("main"),...Qo(6,14)},parts:[ye(e,{color:"background",...U("label",12),weight:600,letterSpacing:.16})]}),c5=e=>e.background!=="transparent",Mde=(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},yf={align:"right",alignPhone:"left"},Hde=(e,o,t)=>{let r=a=>Mde(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}},bf=(e,o,t,r={})=>Hde(e,o,{...Ms,...yf,...r,_partStyles:{text:{...ht,color:"labels",...t,case:ht.case,...yf}}}),Hl=(e,o)=>typeof e=="number"&&Number.isInteger(e)&&e>=0?e:Fs(o)?.selected??0,d5="var(--site-surface-2)",Vx=(e,o)=>Fs(o)?.themes[Hl(e.sectionAccent??0,o)],Ct=(e,o)=>(t,r)=>{if(!o?.(t,r))return da(e);let a=Vx(t,r)?.[e];return a?{fillColor:a}:{}},Yx=(e,o)=>yn(e,o)>=0,f5=e=>e.startsWith("#")&&Fde(e)!==null,qx=(e,o,t)=>{let r=e?.trim();if(r&&f5(r))return{fillColor:r};let a=Kb(r);if(a)return da(a);let n=r===d5?Vx(o,t):void 0;return n?{fillColor:su(n)}:{}},Xx=e=>{let o=e?.trim();return!o||o==="transparent"||o===ot||Kb(o)||o===d5||f5(o)?void 0:"it paints a colour that no Box Fill can hold"},yn=(e,o)=>{let t=Fs(o)?.themes;return t&&c5(e)?z0(t,Hl(e.sectionAccent,o)):-1},bn=(e,o,t)=>{let r=yn(o,t);return r>=0?r:e},Wl=(e,o)=>{let t=Fs(o)?.themes,r=t?G0(t,Hl(e,o)):-1;return r>=0?r:e},Ws=(e,o)=>{let t=yn(e,o);return t>=0?{sectionAccent:t}:{}},Sn=(e,o)=>c5(e.props)&&yn(e.props,o)<0?[{kind:"band-preset",page:Hl(e.props.sectionAccent,o)}]:[],$l=(e,{view:o="desktop",to:t="px",maxPx:r=1/0}={})=>{let{siteGutter:a,siteGutterUnit:n,siteGutterPhone:s,siteGutterPhoneUnit:i}=e.site??{},l=ua(o),d=(u,p,m)=>{let h=Ae(p),I=nu(u,h,"spacing",m);return I===null?null:ta(I,h,"px",l)},f=o==="desktop"?d(a,n,$o)??Am(a):d(s,i,zt)??Rm(s)??Lm(a,n);return ta(Math.min(r,f),"px",t,l)},Sf=Object.fromEntries(["Top","Right","Bottom","Left","TopPhone","RightPhone","BottomPhone","LeftPhone"].map(e=>[`sectionPadding${e}`,0])),wf=e=>({top:0,right:0,bottom:0,left:0,...e}),oT=(e,o,t,r=[])=>({kind:"group",name:e,keepEmpty:!0,props:(a,n)=>({...D,...Sf,...Ct("surface")(a,n),...typeof t=="function"?t(a,n):t}),box:[[o,"bgImage"],ho.kind,ho.duration,ho.delay],parts:r});import{phoneKey as hT,readHidable as xT}from"efficient-easel/draw";import{isNodeList as cfe,newId as dfe}from"efficient-easel/data";function p5(e){return Math.min(4,Math.max(2,e??3))}var T8e={eyebrow:"Label",title:"Section *heading.*"},Wde=Op.Cards,u5={label:"Cards",fields:Wde,defaultProps:{eyebrow:"",title:"",items:[],columns:3}};var E8e={eyebrow:"Highlight",title:"Key *features.*"},_8e=()=>[{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")}],m5={label:"Key Features",defaultProps:{eyebrow:"",title:"",items:[],columns:3}};var tT="cardPlace",$de=["","top-line"];function L8e(e){return Q($de,"",e[tT])}var F8e="absolute left-5 top-0 z-10 -translate-y-1/2 bg-bg px-2",B8e="data-sf-top-line",Ude=new Set(["Cards",Ao]);function N8e(e){return typeof e=="string"&&Ude.has(e)}var zde=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 D8e(e,o,t){return!t||!o?.linesBetween||o.index!==0?e:zde(e)?{...e,top:0}:e}var M8e="outsideFramedCard";var Zx={sectionBorder:{top:0,right:1,bottom:1,left:0},...da("background")},Gde={gap:0,gapPhone:0,sectionBorder:{top:1,right:0,bottom:0,left:1},shadow:!0},$s=e=>({direction:"row",columns:e,columnsTablet:e,...Gde}),h5=(e={})=>Ze(kx,{...j,tag:"p",[tT]:"top-line"},e,!0),Ul=(e=Dn)=>{let o=bi(e);return{...o,props:{...Zx,...o.props},slots:{[Me]:[...o.slots?.[Me]??[],h5()]}}},rT=(e=!1)=>{let o=Si(e);return{...o,props:{...Zx,...o.props}}},jde={name:"name",time:"time",note:"note",price:"price"},Kde={textStyle:"body-1",...U("body",16),weight:500,lineHeight:1.5},Vde={...ht,...U("label",12),letterSpacing:.18,lineHeight:1.5},Yde={textStyle:"body-1",...U("body",14),lineHeight:1.6},qde={textStyle:"body-1",fontRole:"heading",...U("headingSmall",20),weight:500,color:"accent",lineHeight:1.5},Xde={...U("label",11),letterSpacing:.25},Zde={gap:16,gapPhone:16,sectionBorder:{top:0,right:0,bottom:0,left:0},shadow:!1},Jx=e=>({direction:"row",columns:e,...Zde}),aT=[...new Set([...Object.keys($s(1)),...Object.keys(Jx(1))])],nT=()=>{let e=jde,o={tag:"p",widthFit:"fill"};return{type:Y,props:{...D,name:"Card",justify:"between",gap:16,gapPhone:16,...Qo(24),sectionBorder:{top:1,right:1,bottom:1,left:1},...da("surface"),shadow:!0},slots:{[Me]:[h5(Xde),{type:Y,props:{...D,name:"Words",gap:8,gapPhone:8},slots:{[Me]:[Ze(e.name,{...j,...o},Kde),Ze(e.time,{...se,...o},Vde),Ze(e.note,{...se,...o},Yde)]}},Ze(e.price,{...j,...o},qde)]}}};import{tabletKey as y5}from"efficient-easel/draw";import{VIEW_DESKTOP_MIN as Qx}from"efficient-easel/draw";var eg=Jo,sT=Qx,x5=960,g5=Jo,I5={min:eg,max:1600,step:10},og="stackBelow";function q8e(e){if(!(typeof e!="number"||!Number.isFinite(e))&&!(e<I5.min||e>I5.max))return Math.round(e)}var Jde=e=>`sf-stack-${e}`,Qde=e=>`sf-stack-${e}-gutter`,efe=e=>`sf-stack-${e}-outer`,zl=e=>`${e-.02}px`;function X8e(e,o={}){let t=o.gutter!==!1,r=`.${Jde(e)}`,a=`.${Qde(e)}`,n=`.${efe(e)}`,s=[];if(e>eg){let i=`${r}>.sf-block-size,${r}>[data-easel-block]>[data-sf-part-host]>.sf-block-size`,l=Math.min(e,Qx);s.push(`@media (min-width:${eg}px) and (max-width:${zl(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:${eg}px) and (max-width:${zl(l)}){.sf-gap-zone${r}{gap:var(--sf-gap-len-tablet,var(--sf-gap-len-phone,calc(var(--sf-gap-len) / 2)))}}`),e>Qx&&s.push(`@media (min-width:${Qx}px) and (max-width:${zl(e)}){.sf-gap-zone${r}{gap:var(--sf-gap-len-phone,calc(var(--sf-gap-len) / 2))}}`)}return t&&s.push(`@media (max-width:${zl(e)}){${a}${a}{padding-inline:${Kr.frame}}}`),t&&e<x5&&s.push(`@media (min-width:${e}px) and (max-width:${zl(x5)}){${a}${a}{padding-inline:${Rt}}}`),e>g5&&s.push(`@media (min-width:${g5}px) and (max-width:${zl(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("")}var ofe=["standard","editorial","simple","essay"];function Us(e){if(e==="ProductGrid")return"shelf";let o=$(mr,e)?.headStyle;return Q(ofe,"standard",o)}var Cf={standard:64,editorial:60,simple:36,essay:28,shelf:20},tfe={SectionHeader:"accent",FAQ:"accent",FitmentFinder:"accent",FitmentTable:"accent",SpecTable:"accent",RelatedProducts:"accent",Collections:"accentNum"};function rfe(e){if(e==="SectionHeader")return{num:"num",title:"title",description:"description",link:!0};let o=$(mr,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 rg(e,o,t){let r=`editorial:${e}|${o}|${t}`,a=tg.get(r);if(a)return a;let n=C5({num:e,title:o,description:t,link:!1});return tg.set(r,n),n}var vt={[og]:sT},lT={top:0,right:0,bottom:1,left:0},Tt=(e,o,t,r)=>({sizeToken:{step:e,px:r,fluid:{minPx:o,vw:t}}}),ag=(e,o,t={})=>ye(e,{...U("label",o),...t}),ng=(e,o)=>({kind:"text",key:e,role:"heading",props:j,style:{textStyle:"heading-2",...o}}),cT=Jo,afe=sT,dT=(e,o,t,r,a={})=>({kind:"text",key:e,props:{...se,align:"right",alignPhone:"left",...t?{maxWidth:t,maxWidthPhone:cT}:{},...a},style:{textStyle:"body-5",fontRole:"heading",alignPhone:"left",...U("body",o),...r,...a}}),w5={...Fo,align:"right",alignPhone:"left",...Hs},iT=e=>({kind:"button",key:"linkText",href:"linkHref",variant:"ghost",props:w5,style:{...ur(e),color:"labels"}}),b5=(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"?nfe(fa()):{},...t.style}}}}},nfe=e=>e._partStyles.text??{},Gl={widthFitPhone:"fill"};function fT(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),...Gl}):{...o,...Gl}}}return{...e,parts:e.parts.map(fT)}}function sfe(e,o){let t=$(tfe,e),r=t==="accent",a=ag(o.num,14,{color:r?"accent":"labels"}),n=t==="accentNum"&&a.kind==="text"?{...a,mark:"accentLead"}:a,s=ng(o.title,r?{...Tt("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:{...D,direction:"row",align:"end",justify:"between",gap:40,gapPhone:12,share:"content",sectionBorder:lT,sectionPaddingBottom:24,sectionPaddingBottomPhone:20},parts:[{kind:"group",name:"Title",props:{...D,...Gl,direction:"row",align:"end",gap:40,gapPhone:12,share:"content"},parts:[{kind:"group",name:"Number",props:{...D,...Gl,align:"start",gap:12},parts:[{kind:"image",key:"logoSrc",alt:"logoAlt",props:{aspect:"auto",contained:!1}},n,...i?[b5(o.num,"==01== / Collections",n)]:[]]},{kind:"group",name:"Heading",props:{...D,...Gl},parts:[s,...i?[b5(o.title,`Three ranges,
323
+ one standard.`,s)]:[]]}]},{kind:"group",name:"Words",props:{...D,...Gl,gap:12,maxWidth:340,maxWidthPhone:cT},parts:[...o.description?[dT(o.description,14,void 0,{lineHeight:1.5})]:[],...o.link?[iT(14)]:[],...i?[{kind:"block",type:"ButtonBlock",props:{...w5,variant:"ghost",label:"View all",href:"/wheels",_partStyles:{label:iT(14).style}}}]:[]]}]}}function sg(e,o){return e.kind==="text"?o.includes(e.key)?{...e,mark:"accentItalic"}:e:e.kind==="group"?{...e,parts:e.parts.map(t=>sg(t,o))}:e}function C5(e){let o=ng(e.title,{...Tt("headingMedium",40,5.5,80),case:"upper",weight:500,lineHeight:1,letterSpacing:-.03});return{kind:"group",name:"Header",props:{...D,direction:"row",align:"end",justify:"between",gap:40,gapPhone:14,share:"content",sectionBorder:lT,sectionPaddingBottom:32,...vt},parts:[{kind:"group",name:"Title",props:{...D,direction:"row",align:"end",gap:40,gapPhone:14,share:"content",...vt},parts:[{kind:"group",name:"Number",props:{...D,sectionPaddingBottom:8},parts:[{...ag(e.num,13),props:{...j,...Ds}}]},sg(o,[e.title])]},{kind:"group",name:"Words",props:{...D,sectionPaddingBottom:4,maxWidth:360,[y5("maxWidth")]:afe,maxWidthPhone:cT},parts:e.description?[dT(e.description,14,void 0,{lineHeight:1.5},{[y5("align")]:"left"})]:[]}]}}function S5(e,o){return{kind:"group",name:"Header",props:{...D,gap:16,gapPhone:16},parts:[ag(e.num,13),ng(e.title,o)]}}var v5=[["para",{...ur(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}]],ife=e=>v5.some(([o])=>o===e.titleSize)?e.titleSize:"lg";function lfe(e){return{kind:"group",name:"Header",props:{...D,direction:"row",align:"center",justify:"between",gap:16,share:"content",stickTop:!0,sectionBorder:lT,sectionPaddingTop:12,sectionPaddingBottom:12},parts:[{kind:"group",name:"Title",props:{...D,direction:"row",align:"end",gap:24,share:"content"},parts:[ag(e.num,13,{color:"labels",letterSpacing:.22,lineHeight:1}),...v5.map(([o,t])=>({...ng(e.title,t),when:r=>ife(r)===o}))]},{kind:"group",name:"Words",props:{...D,direction:"row",align:"center",justify:"end",gap:20,share:"content"},parts:[...e.description?[dT(e.description,13,340,{lineHeight:1.4})]:[],...e.link?[iT(13)]:[]]}]}}function ig(e){return Us(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 tg=new Map,pT={...U("headingMedium",44,32),case:"upper",weight:500,lineHeight:1,letterSpacing:-.02};function or(e){let o=tg.get(e);if(o)return o;let t=rfe(e),r=Us(e),a=r==="editorial"?C5(t):r==="simple"?S5(t,pT):r==="essay"?S5(t,{...U("headingMedium",38,28,"headingSmall"),case:"upper",lineHeight:1,letterSpacing:-.02}):r==="shelf"?lfe(t):sfe(e,t);return tg.set(e,a),a}var zs={Series:"transparent",StatsParagraph:"transparent",TimelineTrack:ot,Stats:void 0};var vf=(e,o,t,r)=>({sectionBorder:{top:e,right:o,bottom:t,left:r}}),D5=e=>o=>p5(V(o.columns)??V(e.columns)),ffe="inline is the head the row draws; an own-box node is skipped (`skip`)",pfe={kind:"text",key:"title",role:"heading",props:j,style:{textStyle:"heading-3",...pT}},T5={top:120,bottom:120,topPhone:80,bottomPhone:80,topTablet:80,bottomTablet:80},cg=e=>{let o=qr(typeof e.background=="string"?e.background:void 0,zs.Series);return o&&o!=="transparent"?o:void 0},lg=e=>cg(e)===ot,ufe={...D,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},k5={...D,direction:"row",justify:"between",gap:12,share:"content",phoneRow:2,[hT("share")]:"content"},mfe=e=>{let o=cg(e)?1:2;return{...D,direction:"row",columns:4,columnsTablet:2,gap:o,gapPhone:o}},uT={...ur(12),letterSpacing:.22,lineHeight:1.5},P5=e=>ao(e.viewLabel)&&!xT(e.viewLabel).hidden,tr=e=>xT(e).text?.trim?.()??"",dg=e=>Object.fromEntries(Object.entries(e).filter(([,o])=>Se(o)!==void 0)),gT=e=>e.map(([o,t,r])=>({key:o,label:t,...r?{multiline:!0}:{}})),hfe=gT([["num","Number"],["since","Corner note"],["title","Card title"],["body","Card body",!0],["count","Count"],["countLabel","Count word"]]),xfe=gT([["label","Label"],["value","Value"],["body","Card body",!0]]),Tf=(e,o,t,r,a,{reads:n=["cards"],keep:s=[]}={})=>({kind:"group",name:e,props:o,parts:[{kind:"core",as:Ao,headless:!0,keep:s,derive:{reads:n,props:i=>au(r(i),t)},slots:(i,l)=>({[ze]:[a(i,l)]})}]}),M5=e=>Array.isArray(e.cards)?e.cards:[],E5={top:76,bottom:76,topPhone:76,bottomPhone:76},H5=e=>(Array.isArray(e.items)?e.items:[]).map(o=>dg({title:tr(o?.label),href:typeof o?.href=="string"?o.href.trim():""})).filter(o=>o.title!==void 0).map((o,t)=>({key:Rc($y(o),t),...o})),gfe=e=>H5(e).some(o=>Se(o.href)!==void 0),W5=[{key:Fy.label,label:"Feature label"},{key:Fy.href,label:"Link",kind:"link"}],_5=e=>uH(e.eyebrowLook,"KeyFeatures")==="filled",Ife={name:"Key Features",boxProps:(e,o)=>({...ee,direction:"column",gap:44,gapPhone:32,...Ct("surface")(e,o),...vf(1,0,1,0),...le(e,E5)}),box:[...ae,...Ie(E5)],parts:[{kind:"group",name:"Heading",props:{...D,direction:"row",align:"end",gap:20,wrap:!0,share:"content",phoneRow:2,[hT("share")]:"content"},parts:[{...Ml("eyebrow"),when:_5},{...ye("eyebrow"),when:e=>!_5(e)},pfe]},Tf("Cards",e=>({...D,...$s(D5(m5.defaultProps)(e))}),W5,H5,e=>rT(gfe(e)),{reads:["items"]})],drop:{...oe,...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"}},O5={top:72,bottom:72,topPhone:72,bottomPhone:72},A5=(e,o)=>({...Zx,...Ct("background")(e,o)}),R5=e=>{let o=D5(u5.defaultProps)(e);return{...D,...$s(o)}},yfe=gT([["title","Card title"],["body","Card body",!0]]),$5=e=>(Array.isArray(e.items)?e.items:[]).map((o,t)=>({key:typeof o?.key=="string"&&o.key?o.key:Rc($y(o),t),title:tr(o?.title),body:tr(o?.body)})),U5=e=>{let o={},t={};for(let[r,a]of Object.entries(e.props??{}))r!=="id"&&(cfe(a)?t[r]=a.map(U5):o[r]=a);return{type:String(e.type),props:o,...Object.keys(t).length?{slots:t}:{}}},L5=(e,o)=>{let t=mT(e)?rT(bfe(e)):Ul(),r=Array.isArray(e.template)?e.template.map(U5):[t],[a]=r;return r.length===1&&a.type===Y?{...a,props:{...A5(e,o),...a.props}}:{type:Y,props:{...D,...A5(e,o),name:"Card"},slots:{[Me]:r}}},mT=e=>e.cardStyle==="label-only",z5=e=>$5(e).map((o,t)=>{let r=e.items[t]?.href;return dg({key:o.key,title:o.title,href:typeof r=="string"?r.trim():""})}),bfe=e=>z5(e).some(o=>Se(o.href)!==void 0),F5=e=>Array.isArray(e.template)&&e.template.length===0,B5=["dataSource","dataSourceOptions","highlightedCard","highlightBadge"];function G5(){let e=t=>({key:dfe("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 Sfe={name:"Cards",ownBoxConverts:!0,boxProps:(e,o)=>({...ee,direction:"column",gap:36,gapPhone:28,...Ct("surface")(e,o),...le(e,O5)}),box:[...ae,...Ie(O5)],parts:[{...or("Cards"),when:e=>!Zv(e)},{...Tf("Cards",R5,yfe,$5,L5,{reads:["items"],keep:B5}),when:e=>!F5(e)&&!mT(e)},{...Tf("Cards",R5,W5,z5,L5,{reads:["items"],keep:B5}),when:e=>!F5(e)&&mT(e)}],drop:{...oe,...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)"}},wfe={name:"Recurring Columns",boxProps:(e,o)=>({...ee,direction:"column",gap:60,gapPhone:60,...vf(0,0,1,0),...vt,...lg(e)?Ws(e,o):{},...qx(cg(e),e,o),...le(e,T5)}),box:[...ae.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,t)=>lg(o)?bn(e,o,t):e],...Ie(T5)],skip:e=>Xx(cg(e)),site:(e,o)=>lg(e.props)?Sn(e,o):[],parts:[or("Series"),Tf("Cards",mfe,hfe,e=>M5(e).map(o=>dg({num:tr(o.num),since:tr(o.since),title:tr(o.title),body:tr(o.desc),count:tr(o.entries),countLabel:tr(o.entriesLabel)})),(e,o)=>({type:Y,props:{...ufe,...Ct("background",(t,r)=>lg(t)&&Yx(t,r))(e,o),name:"Card"},slots:{[Me]:[{type:Y,props:{...D,name:"Words",gap:16,gapPhone:16},slots:{[Me]:[{type:Y,props:{...k5,name:"Top"},slots:{[Me]:[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:Y,props:{...k5,name:"Footer",align:"center",gap:0,gapPhone:0,sectionPaddingTop:16,sectionPaddingTopPhone:16,...vf(1,0,0,0),...P5(e)?{}:{[pi]:["count","countLabel"]}},slots:{[Me]:[{type:Y,props:{...D,name:"Count",direction:"row",align:"center",gap:12,gapPhone:12,share:"content",phoneRow:2,[hT("share")]:"content"},slots:{[Me]:[Ze("count",j,uT),Ze("countLabel",se,uT)]}},...P5(e)?[{type:Y,props:{...D,name:"View",maxWidthPhone:266},slots:{[Me]:[{type:"Text",props:{...j,text:xT(e.viewLabel).text,_partStyles:{text:{...fa()._partStyles.text,...uT}}}}]}}]:[]]}}]}}))],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:{...oe,...ie,headPlacement:ffe}},N5={top:60,bottom:60,topPhone:40,bottomPhone:40},Cfe={...D,direction:"row",columns:3,gap:40,gapPhone:16},vfe={...D,gap:8,gapPhone:8,...Qo(24),...vf(1,1,1,1)},Tfe={name:"Document Detail Cards",boxProps:e=>({...ee,direction:"column",gap:40,gapPhone:16,...vf(0,0,1,0),...le(e,N5)}),box:[...ae,...Ie(N5)],parts:[Tf("Cards",Cfe,xfe,e=>M5(e).map(o=>dg({label:tr(o.label),value:tr(o.value),body:tr(o.desc)})),(e,o)=>({type:Y,props:{...vfe,...Ct("surface")(e,o),name:"Card"},slots:{[Me]:[Ze("label",j,{...U("label",12),lineHeight:1.5},!0),{type:Y,props:{...D,name:"Words",gap:14,gapPhone:14},slots:{[Me]:[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:{...oe,...ie}},j5={Cards:Sfe,KeyFeatures:Ife,Series:wfe,DocMetaCards:Tfe};import{phoneKey as _fe}from"efficient-easel/draw";import{newId as Ofe}from"efficient-easel/data";import{phoneKey as kfe}from"efficient-easel/draw";import{isNode as kf}from"efficient-easel/data";var jl="cardStyle";function K5(e){let{widthPhone:o,...t}=e;return e.widthFitPhone==="fixed"?{...t,widthFitPhone:"fill"}:{...e}}var fg={table:{items:{gap:0,gapPhone:0,columnsTablet:2},grid:{gap:0},row:{gap:0,[kfe("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}}}},rr={table:{...fg.table,listCard:K5(fg.table.card)},list:{...fg.list,listCard:K5(fg.list.card)}},BVe=[{label:"Table",value:"table"},{label:"List",value:"list"}],NVe=e=>e==="table"||e==="list",Pfe=e=>[...new Set([...Object.keys(rr.table[e]),...Object.keys(rr.list[e])])];function Pf(e,o,t){let r={...e};for(let a of Pfe(o))delete r[a];return{...r,...structuredClone(rr[t][o])}}function Efe(e,o,t){let r=e.props??{},a=Array.isArray(r[ze])?r[ze]:[],n=a.findIndex(l=>kf(l)&&l.type===t);if(n<0)return e;let s=a[n],i=a.map((l,d)=>d===n?{...s,props:Pf(s.props??{},"listCard",o)}:l);return{...e,props:{...r,[ze]:i}}}function DVe(e,o,t,r){let a=Array.isArray(e[r])?e[r]:[];if(a.some(s=>kf(s)&&s.type===Ao)){let s=a.map(i=>kf(i)&&i.type===Ao?Efe(i,o,t):i);return{...Pf(e,"items",o),[jl]:o,[r]:s}}let n=a.map(s=>{if(!kf(s)||s.type!==t)return s;let i=s.props??{},l=(Array.isArray(i[r])?i[r]:[]).map(d=>kf(d)&&d.type===t?{...d,props:Pf(d.props??{},"card",o)}:d);return{...s,props:{...Pf(i,"row",o),[r]:l}}});return{...Pf(e,"grid",o),[jl]:o,[r]:n}}var IT=e=>typeof e=="string"?e.trim():"";function V5(e){let o=`${IT(e.prefix)}${IT(e.value)}`,t=IT(e.suffix);return e.emphasizeAll===!0?o?`==_${o}_==`:"":`${o}${t?`==_${t}_==`:""}`}var X5={textStyle:"heading-2",...Tt("headingMedium",56,7,96),weight:500,case:"none",lineHeight:.9,letterSpacing:-.04},yT={kind:"block",type:"Text",props:{...Ms,_partStyles:{text:X5}},box:[["value","text",(e,o)=>V5(o)]],when:(e,o)=>o!==void 0&&typeof o.value=="string"&&V5(o)!==""},Y5=e=>ao(e?.supSuffix),Z5={textStyle:"body-1",fontRole:"heading",...U("body",16),lineHeight:1.5,letterSpacing:-.01},J5={color:"labels",...U("label",12),lineHeight:1.5,letterSpacing:.24},Q5={...D,direction:"row",align:"start",gap:32,gapPhone:32,share:"content",phoneRow:2,[_fe("share")]:"content"},eW={textStyle:"body-5",...U("label",13),weight:500,color:"accent",letterSpacing:.18,lineHeight:1,padding:12},bT=e=>qr(e.background,zs.StatsParagraph),Ef=e=>bT(e)===ot,pg=e=>({...e,sectionAccent:e.sectionAccent??0}),Afe=(e,o)=>Ef(e)?Ct("background",(t,r)=>Yx(pg(t),r))(e,o):{},Rfe={name:"Stats with Text",skip:e=>bT(e)&&bT(e)!=="transparent"&&!Ef(e)?"it paints a colour of its own, not the section band":void 0,boxProps:(e,o)=>({...ee,direction:"column",gap:60,gapPhone:60,sectionBorder:{bottom:1},...vt,...er(e,"StatsParagraph"),...Ef(e)?Ws(pg(e),o):{}}),box:[...ae.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,t)=>Ef(o)?bn(e,pg(o),t):e],...In("StatsParagraph")],site:(e,o)=>Ef(e.props)?Sn({props:pg(e.props)},o):[],parts:[or("StatsParagraph"),{kind:"group",name:"Stats",props:{...D,...rr.table.grid,[jl]:"table"},parts:[{kind:"list",key:"stats",name:"Stat",perRow:()=>4,rowName:"Stats row",rowProps:{...D,direction:"row",share:"equal",phoneRow:2,...rr.table.row},props:(e,o)=>({...D,...rr.table.card,...Afe(e,o)}),parts:[{...yT,when:(e,o)=>!Y5(o)&&yT.when(e,o)},{kind:"group",name:"Figure",props:Q5,when:(e,o)=>Y5(o),parts:[yT,{kind:"text",key:"supSuffix",props:j,style:eW}]},{kind:"group",name:"Words",props:{...D,gap:4,gapPhone:4},parts:[{kind:"text",key:"label",props:j,style:Z5},ye("sub",J5)]}]}]}],drop:{...oe,...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"}},Lfe=new Set(["value","label",Pt]),q5={top:48,bottom:48,topPhone:48,bottomPhone:48},Ffe=e=>{let o=qr(typeof e.background=="string"?e.background:void 0,zs.Stats);return!!o&&o!=="transparent"},Bfe={name:"Stats",skip:e=>Ffe(e)?"it paints a colour inside its padding, and a Box paints its Fill over the padding too":ao(e.dataSource)?"its figures come from a source":Array.isArray(e.items)&&e.items.some(o=>ao(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=>!Lfe.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=>({...ee,direction:"column",gap:24,gapPhone:24,...le(e,q5)}),box:[...ae,...Ie(q5)],parts:[ye("heading",{color:"labels",...U("label",12),letterSpacing:.2}),{kind:"group",name:"Stats",props:{...D,...rr.list.grid,[jl]:"list"},parts:[{kind:"list",key:"items",name:"Stat",perRow:e=>V(e.columns)??4,rowName:"Stats row",rowProps:{...D,direction:"row",share:"equal",phoneRow:2,...rr.list.row},props:{...D,...rr.list.card},parts:[{kind:"text",key:"value",props:Ms,style:{textStyle:"heading-2",...U("headingMedium",48,36),weight:500,case:"none",lineHeight:1,letterSpacing:-.03}},ye("label",{color:"labels",...U("label",12),letterSpacing:.2})]}]}],drop:{...oe,...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"}},oW={StatsParagraph:Rfe,Stats:Bfe};function tW(){return{eyebrow:c("By the numbers"),title:c("What we count."),desc:c("A few numbers that matter to us."),stats:[],background:"transparent"}}var Nfe=[{key:"figure",label:"Figure"},{key:"superscript",label:"Superscript"},{key:"label",label:"Label"},{key:"body",label:"Text",multiline:!0}];function rW(){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 Dfe(e){return{type:Y,props:{...D,name:"Card",...structuredClone(rr[e].listCard)},slots:{[Me]:[{type:Y,props:{...Q5,name:"Figure"},slots:{[Me]:[Ze("figure",Ms,X5),Ze("superscript",j,eW)]}},{type:Y,props:{...D,name:"Words",gap:4,gapPhone:4},slots:{[Me]:[Ze("label",{...j,widthFit:"fill"},Z5),Ze("body",{...j,widthFit:"fill"},J5,!0)]}}]}}}function ST(e,o,t=4){return{type:Y,props:{...D,name:"Stats",direction:"row",columns:t,...structuredClone(rr[o].items),[jl]:o},slots:{[Me]:[{type:Ao,props:au(e,Nfe),slots:{[ze]:[Dfe(o)]}}]}}}var aW={heading:"Ways to pay"},nW=()=>[{label:"Visa"},{label:"Mastercard"},{label:"Amex"},{label:"PayPal"}],sW=()=>[{text:c("Secure encrypted checkout")},{text:c("30-day returns")}],o7e={label:"Payment Methods",drawsPictures:!0,defaultProps:{heading:"",badges:[],assurances:[],contained:!0}};import{hiddenKeyOf as Mfe}from"efficient-easel/screen/lib/content/view-hide";var ug="Flex",Hfe={FooterMenu:"MenuBlock",FooterEmailSignup:"EmailFormBlock",FooterSocial:"SocialLogosBlock"},Wfe={FooterPayment:"PaymentLogosBlock"},$fe=e=>{let{id:o,...t}=e;return t},iW=e=>typeof e=="string"?e:"",Kl={sm:12,md:13,lg:15},lW={sm:{mark:16,words:Kl.sm},md:{mark:20,words:Kl.md}},Ufe="md",cW=1.5,zfe={size:13,lineHeight:cW,width:280},Gfe=14,jfe=40,Kfe=e=>Q(["left","center","right"],"left",e);function Vfe(e){let o={},t=[["padTop","sectionPaddingTop"],["padRight","sectionPaddingRight"],["padBottom","sectionPaddingBottom"],["padLeft","sectionPaddingLeft"]];for(let[r,a]of t){let n=V(e[r]);n&&(o[a]=n)}return o}function Yfe(e,o,t){let r=t(e,$fe(o));if(Array.isArray(o.template))return{...r,props:{...r.props,template:dW(o.template,String(r.props.id))}};if(o.template!==void 0)return r;let a=Zp(e,r.props);return a===r.props?r:{...r,props:a}}function dW(e,o,t={at:0}){return e.map(r=>{let a={...r.props,id:`${o}~t${t.at++}`};for(let n of Dr(r))a[n]=dW(a[n],o,t);return{...r,props:a}})}function fW(e,o,t){let r=e.props??{},a=t?.(e,o);if(a)return a;let n=$(Hfe,e.type)??$(Wfe,e.type);if(n)return[Yfe(n,r,o)];switch(e.type){case"FooterLogo":{let s=Kfe(r.align),i=o("LogoBlock",{...r.reverse?{reverse:r.reverse}:{},...typeof r.customColor=="string"&&r.customColor?{customColor:r.customColor}:{},heightPx:Math.round(KO*((V(r.widthPct)??100)/100)),href:"/",align:s,...Vfe(r)}),l=iW(r.tagline).trim();return l?[i,o("Text",{text:l,tone:"dim",align:s,_partStyles:{text:{...zfe}}})]:[i]}case"FooterText":{let s=typeof r.size=="string"&&We(Kl,r.size)?r.size:Ufe;return[o("Text",{text:iW(r.text),tone:typeof r.tone=="string"?r.tone:"default",_partStyles:{text:{size:Kl[s],lineHeight:cW}}})]}case"FooterDivider":{let s=V(r.thickness),i=V(r.lengthPct);return[o("Divider",{...s!==void 0?{thickness:s}:{},...i!==void 0?{lengthPct:i}:{},...r.hideOnMobile===!0?{[Mfe("mobile")]:!0}:{}})]}case"FooterGroup":{let s=Array.isArray(r.blocks)?r.blocks:[];return[o(ug,{direction:r.direction==="horizontal"?"row":"column",gap:ss("FooterGroup",r.gap),align:Q(["start","center","end","stretch"],"start",r.align),...vy,content:s.flatMap(i=>fW(i,o,t))})]}default:return[]}}function _f(e,o,t,r){let a=e&&Array.isArray(e.props?.blocks)?e.props.blocks:[],n=f=>o(ug,{direction:"row",wrap:!0,share:"equal",gap:jfe,content:f}),s=[],i=[];for(let f of a){let u=fW(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(ug,{direction:"column",gap:Gfe,align:"stretch",...vy,content:u}))}(i.length||!s.length)&&s.push(n(i));let l=o(ug,{direction:"column",content:[o("LegalLineBlock")]}),d=E1(Ge,t,[...s,l]);return{...d,props:{...d.props,...e?.props?.width==="full"?{fullWidth:!0}:{}}}}import{phoneKey as CT,readHidable as qfe}from"efficient-easel/draw";var vT={contained:!1},TT=(e,o)=>({logos:[{kind:"list",key:e,name:"Logo",flat:!0,parts:[{kind:"block",type:"LogoBlock",box:["src",[o,"alt"]],when:(t,r)=>ao(r?.src)||ao(r?.[o])}]}]}),wT=e=>{let o=V(e.bandPadding)??40;return{top:o,bottom:o,topPhone:o,bottomPhone:o}},Xfe={...ye("heading",{color:"labels",letterSpacing:.2}),props:{...j,align:"center"}},Zfe={name:"Logos",boxProps:e=>({...ee,direction:"column",gap:32,...le(e,wT(e))}),box:[...ae,...Ie(wT),["bandPadding","sectionPaddingTop",(e,o)=>le(o,wT(o)).sectionPaddingTop]],parts:[Xfe,{kind:"core",keep:["columns","logoHeight","grayscale"],rename:{logosPerRow:"columns"},props:vT,slots:TT("items","alt")}],drop:{...oe,...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"}},Jfe={kind:"group",name:"Mark",keepEmpty:!0,parts:[],props:t0(4,"main",{sectionCorners:2})},pW={top:24,bottom:24,topPhone:24,bottomPhone:24},Qfe={name:"Payment Methods",boxProps:e=>({...ee,direction:"column",...le(e,pW)}),box:[...ae,...Ie(pW)],parts:[{kind:"group",name:"Methods",props:{...D,align:"center",gap:20,gapPhone:20,sectionBorder:{top:1,bottom:1},sectionPaddingTop:32,sectionPaddingBottom:32},parts:[{...ye("heading",{color:"labels"}),props:{...j,align:"center"}},{kind:"core",keep:[],as:"Logos",derive:{reads:[Oo,sa],props:e=>ao(e[Oo])?{[Oo]:e[Oo],...e[sa]!==void 0?{[sa]:e[sa]}:{}}:{}},props:{...vT,look:"cards",grayscale:!1},slots:e=>({...TT("badges","label"),...ao(e[Oo])?{[ze]:[Ny()]}:{}})},{kind:"group",name:"Reassurance",props:{...D,direction:"row",wrap:!0,justify:"center",gap:24,gapPhone:24,phoneRow:2,[CT("share")]:"content"},parts:[{kind:"list",key:"assurances",name:"Line",of:e=>(Array.isArray(e.assurances)?e.assurances:[]).filter(o=>ao(o?.text)),props:{...D,direction:"row",align:"center",gap:8,gapPhone:8,phoneRow:2,[CT("share")]:"content"},item:e=>qfe(e.text).hidden?{props:{_hidden:!0}}:{},parts:[Jfe,{kind:"text",key:"text",props:{...j,align:"center"},style:{...U("label",13),color:"labels",lineHeight:1.5}}]}]}]}],drop:{...oe,...ie,contained:"the Box draws the site frame now; the Logos block inside it fills the Box's column (`contained: false`)"}},uW=e=>z_(e.align)??"left",mW=e=>Q(["sm","md"],"sm",e.size),hW=12,xW={name:"Payment logos",boxProps:e=>({...D,direction:"row",wrap:!0,align:"center",justify:Wp[uW(e)],gap:hW,gapPhone:hW,phoneRow:2,[CT("share")]:"content"}),box:[...Ya],parts:[{kind:"text",key:"lead",props:se,styleFrom:e=>({size:Kl[mW(e)],lineHeight:1.5})},{kind:"core",keep:[],as:"Logos",derive:{reads:[Oo,sa],props:e=>({logoHeight:lW[mW(e)].mark,align:uW(e),...ao(e[Oo])?{[Oo]:e[Oo],...e[sa]!==void 0?{[sa]:e[sa]}:{}}:{}})},props:{...vT,look:"marks",grayscale:!1,sectionAccent:$r},slots:e=>({...TT("methods","label"),...ao(e[Oo])?{[ze]:[Ny()]}:{}})}],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"}},gW={Logos:Zfe,PaymentBadges:Qfe,FooterPayment:xW,PaymentLogosBlock:xW},IW=()=>({heading:b2.heading,items:Px()}),yW=()=>({heading:aW.heading,badges:nW(),assurances:sW()}),bW=()=>({...Em,methods:[]});import{mixHex as ape}from"efficient-shell/format";import{MOTION_EASING as epe,MOTION_TIMING as SW,motionSeconds as wW}from"efficient-shell/format";var kT="none",mg=[{label:"None",value:"none"},{label:"Marquee",value:"scroll"}];function L7e(e){return Q(mg,kT,e)}var Vl="_gLoop",Of={field:"loop",is:"scroll"},Af="left",PT=[{label:"Left",value:"left",cell:"left"},{label:"Right",value:"right",cell:"right"},{label:"Up",value:"up",cell:"top"},{label:"Down",value:"down",cell:"bottom"}],ope={left:"storefront-ticker",right:"storefront-ticker-right",up:"storefront-ticker-up",down:"storefront-ticker-down"};function CW(e){return Q(PT,Af,e)}function vW(e){return e==="up"||e==="down"}function hg(e){return wW("loop","duration",e.loopDuration!=null?e.loopDuration:e.speed)}var F7e=SW.loop.duration.default,tpe=SW.loop.delay.default;function TW(e){return wW("loop","delay",e.loopDelay)}function B7e(e,o,t=tpe){return`${ope[e]} ${o}s ${epe.loop}${t?` ${t}s`:""} infinite`}var xg="_gEntrance";var H7e="none",W7e=[{label:"Nothing",value:"none"},{label:"Section above",value:"above"},{label:"Section below",value:"below"}];function gg(e){return e==="above"||e==="below"?e:null}var kW="sf-ticker-join";function rpe(e){return e==="above"?"sf-ticker-join-above":"sf-ticker-join-below"}function PW(e){return`absolute inset-x-0 ${rpe(e)}`}var Gs={direction:"row",share:"content",align:"center"},Rf={top:14,bottom:14,topPhone:12,bottomPhone:12},Ig={wrap:"nowrap",loop:"scroll",sectionAccent:pO,gap:60,gapPhone:32,separator:"dot",sectionBorder:{top:1,bottom:1}},EW={gap:120,gapPhone:64},yg={...ht,sizeToken:{step:"label",px:14,pxPhone:12},letterSpacing:.25,lineHeight:1.5},_W={textStyle:"heading-3",letterSpacing:.005,case:"upper",lineHeight:1},Lf={top:16,bottom:16,topPhone:12,bottomPhone:12},Ff={justify:"between",wrap:"wrap",gap:32,separator:"none"},Bf={...ht,letterSpacing:.1,lineHeight:1.5};var OW=e=>e.size==="display",npe=(e,o)=>{let t=Vx(e,o),r=e.tone!=="plain"&&t?.text&&t.background?ape(t.text,t.background,.3):null;return r?{color:r}:{}},spe=(e,o)=>e.tone!=="plain"&&Ur(e.sectionAccent)===null?Ct("background")(e,o):{},AW=(e,o)=>({kind:"list",key:"items",name:"Item",flat:!0,when:o,parts:[{kind:"text",key:"text",props:se,style:e,styleFrom:npe}]}),ipe={name:"Scrolling Bar",boxProps:(e,o)=>({...ee,...Gs,...Ig,...K_[Cy(e.separator)]===""?EW:{},...le(e,Rf),...spe(e,o)}),box:[["scrollDirection","scrollDirection",e=>CW(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=>Cy(e)],["join","join",e=>gg(e)??void 0],["borders","sectionBorder",e=>e===!1?void 0:{top:1,bottom:1}],...ae,["tone","sectionAccent",(e,o)=>Ur(o.sectionAccent)??$r],...Ie(Rf)],parts:[AW(yg,e=>!OW(e)),AW(_W,OW)],drop:{...oe,...ie,size:"each item's Text style: Small \u2192 Body 5, Display \u2192 Heading 3"}},RW=e=>e?.tone==="muted",LW=e=>iu(Fs(e)),lpe={name:"Spec Strip",boxProps:(e,o)=>({...ee,...Gs,...Ff,...e.fill==="none"?{sectionBorder:{top:1}}:{sectionAccent:LW(o)},...le(e,Lf)}),box:[...ae.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,t)=>o.fill==="none"?e:LW(t)],...Ie(Lf)],parts:[{kind:"list",key:"cells",name:"Cell",flat:!0,parts:[{kind:"text",key:"text",props:j,style:Bf,when:(e,o)=>!RW(o)},{kind:"text",key:"text",props:se,style:Bf,when:(e,o)=>RW(o)}]}],drop:{...oe,...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"}},FW={Ticker:ipe,SpecStrip:lpe};import{tabletKey as BW}from"efficient-easel/screen/lib/content/view-tiers";var NW={direction:"column",justify:"between",gap:14,gapPhone:14,sectionPaddingLeft:14,sectionPaddingRight:14,[BW("sectionPaddingLeft")]:0,sectionPaddingLeftPhone:0,sectionHeightMode:"fixed",sectionHeightValue:280,sectionHeightUnit:"px",[BW("sectionHeightMode")]:"auto",sectionHeightModePhone:"auto"},ET={name:"Year and title",direction:"column",gap:14,gapPhone:14};import{tabletKey as cpe}from"efficient-easel/draw";var po={text:"Button label",href:"#"},Pr=e=>e.replace(/\*([^*]+)\*/g,"==$1=="),qe={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 bg={eyebrow:qe.eyebrow,title:`Section heading
324
+ *Highlight line*`,intro:qe.body,imageCaption:qe.imageCaption,imageMeta:qe.imageMeta,cta:po.text},DW=()=>[{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.")}],sYe={label:"Story Timeline",drawsPictures:!0,defaultProps:{layout:"split",eyebrow:"",title:"",intro:"",imageSrc:"",imageCaption:"",imageMeta:"",ctaText:"",ctaHref:"",entries:[],padTop:120,padBottom:120}};var Sg={eyebrow:qe.eyebrow,title:qe.headingAccent,intro:qe.body,cta:po.text},MW=()=>[{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}],fYe={label:"Milestone Timeline",defaultProps:{eyebrow:"",title:"",intro:"",entries:[],ctaText:"",ctaHref:"",background:gd,padTop:120,padBottom:120}};var GW={buttonBorder:{width:0}},vg=(e,o,t={})=>({textStyle:"body-5",...U("label",e),letterSpacing:o,lineHeight:1.5,weight:400,...t}),Yl=(e,o,t={})=>({...vg(e,o),...ht,...t}),Tg=(e,o,t)=>({...e,case:"upper",weight:500,letterSpacing:o,lineHeight:t}),Nf=(e,o,t={})=>({textStyle:"body-1",fontRole:"heading",...e,weight:400,case:"none",lineHeight:o,...t}),ar=(e,o,t={})=>({kind:"text",key:e,props:j,style:o,...t}),HW=(e,o)=>o?.future===!0,wg=e=>WH(typeof e?.body=="string"?e.body:""),LT=e=>qr(typeof e.background=="string"?e.background:void 0,zs.TimelineTrack),_T=e=>LT(e)===ot?e:{...e,background:"transparent"},dpe={name:"Milestone Timeline",skip:e=>Xx(LT(e)),boxProps:(e,o)=>{let t=yn(_T(e),o);return{...ee,direction:"column",gap:60,[cpe("gap")]:36,gapPhone:36,sectionBorder:{bottom:1},...vt,...er(e,"TimelineTrack"),...qx(LT(e),e,o),...t>=0?{sectionAccent:t}:{}}},box:[...ae.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,t)=>bn(e,_T(o),t)],...In("TimelineTrack")],parts:[fT(sg(rg("eyebrow","title","intro"),["intro"])),{kind:"group",name:"Track",props:{...D,gap:48,gapPhone:48},parts:[{kind:"group",name:"Years",props:{...D,direction:"row",share:"equal",gap:0,line:!0,...vt},parts:[{kind:"list",key:"entries",name:"Year",props:{...D,...NW},item:e=>({props:e.future===!0?{upcoming:!0}:{}}),parts:[{kind:"group",name:ET.name,props:{...D,...ET},parts:[ar("date",vg(13,.22,{color:"accent"}),{when:(e,o)=>!HW(e,o)}),ar("date",vg(13,.22,{color:"labels"}),{when:HW}),ar("title",{textStyle:"heading-3",...Tg(U("headingSmall",20),-.02,1.1)},{role:"heading"})]},ar("blurb",Nf(U("body",13),1.55),{props:se,mark:"accentItalic"})]}]},{kind:"group",name:"Button row",props:{...D,sectionBorder:{top:1,right:0,bottom:0,left:0},sectionPaddingTop:32},parts:[{kind:"button",key:"ctaText",href:"ctaHref",variant:"ghost",props:{...Fo,align:"right",...GW},style:Yl(13,.3)}]}]}],site:(e,o)=>Sn({props:_T(e.props)},o),drop:{...oe,...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"}},BT=e=>typeof e.layout=="string"?e.layout:"split",Cg=e=>BT(e)==="split",FT=e=>!Cg(e),jW=e=>BT(e)==="spine",fpe=e=>FT(e)&&!jW(e),WW=(e,o,t,r)=>({kind:"group",name:"Picture",keepEmpty:!0,box:[["imageSrc","bgImage"]],props:{...D,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:{...D,direction:"row",justify:"between",align:"center",gap:12,gapPhone:12,share:"content",phoneRow:2},parts:[ar("imageCaption",Yl(11,.24,{color:"text"})),ar("imageMeta",Yl(11,.24,{color:"accent"}),{props:{...j,align:"right"}})]}]}),$W=(e={})=>({kind:"button",key:"ctaText",href:"ctaHref",variant:"ghost",props:{...Fo,...e,...GW},style:Yl(13,.3)}),OT=()=>[ar("title",{textStyle:"heading-3",...Tg(U("headingSmall",24,20),-.02,1.5)},{role:"heading",mark:"accentItalic"}),{kind:"block",type:"Text",props:{...j,_partStyles:{text:Nf(U("body",17,16),1.6)}},box:[["body","text",(e,o)=>Tc(wg(o)[0]??"")]],when:(e,o)=>wg(o).length>0},{kind:"block",type:"Text",props:{...se,_partStyles:{text:Nf(U("body",17,16),1.6,{paragraphSpacing:14})}},box:[["body","text",(e,o)=>Tc(wg(o).slice(1).join(`
325
+
326
+ `))]],when:(e,o)=>wg(o).length>1}],AT=()=>ar("date",vg(13,.24,{color:"accent"})),RT=(e,o,t={})=>ar(e,o,{...t,props:{...j,...t.props??{},align:"center"}}),UW=Tt("headingMedium",40,5,76),zW={sectionBorder:{bottom:1}},ppe={name:"Story Timeline",skip:e=>BT(e)==="track"?'display "track": not converted (it draws the Milestone rail; a Track story is not stored anywhere)':void 0,boxProps:e=>Cg(e)?{...ee,direction:"row",share:[40],gap:80,gapPhone:48,align:"start",...zW,...er(e,"Timeline")}:{...ee,direction:"column",gap:48,gapPhone:48,align:"center",...zW,...er(e,"Timeline")},box:[...ae,...In("Timeline")],parts:[{kind:"group",name:"Heading",props:{...D,gap:24,gapPhone:24},when:Cg,parts:[ar("eyebrow",Yl(12,.3,{color:"accent"}),{role:"eyebrow"}),ar("title",{textStyle:"heading-2",...Tg(UW,-.03,.94)},{role:"heading",mark:"accentItalic"}),ar("intro",Nf(U("body",14),1.6),{props:{...se,maxWidth:360},mark:"accentItalic"}),WW(667,419,{},()=>!0),$W()]},{kind:"group",name:"Chapters",props:{...D,gap:48,gapPhone:48,line:!1},when:Cg,parts:[{kind:"list",key:"entries",name:"Chapter",props:{...D,direction:"row",gap:24,gapPhone:8,share:[12],align:"start"},parts:[AT(),{kind:"group",name:"Words",props:{...D,gap:14,gapPhone:14},parts:OT()}]}]},{kind:"group",name:"Heading",props:{...D,gap:24,gapPhone:24,align:"center",maxWidth:760,widthFit:"fill"},when:FT,parts:[RT("eyebrow",Yl(12,.3,{color:"accent"}),{role:"eyebrow"}),RT("title",{textStyle:"heading-2",...Tg(UW,-.03,.94)},{role:"heading",mark:"accentItalic"}),RT("intro",Nf(U("body",14),1.6),{props:{...se,maxWidth:520},mark:"accentItalic"}),$W({align:"center"})]},WW(506,192,{maxWidth:900,widthFit:"fill"},FT),{kind:"group",name:"Chapters",props:{...D,gap:48,gapPhone:48,line:!0,maxWidth:760,widthFit:"fill",sectionPaddingTop:16},when:jW,parts:[{kind:"list",key:"entries",name:"Chapter",props:{...D,gap:8,gapPhone:8},parts:[AT(),{kind:"group",name:"Words",props:{...D,gap:14,gapPhone:14},parts:OT()}]}]},{kind:"group",name:"Chapters",props:{...D,gap:56,gapPhone:56,maxWidth:1e3,widthFit:"fill",sectionPaddingTop:16,mirrorCards:"even"},when:fpe,parts:[{kind:"list",key:"entries",name:"Chapter",props:{...D,direction:"row",gap:64,gapPhone:0,share:[50],align:"start"},parts:[{kind:"group",name:"Entry",props:{...D,gap:8,gapPhone:8},parts:[AT(),{kind:"group",name:"Words",props:{...D,gap:14,gapPhone:14},parts:OT()}]},{kind:"group",name:"Spacer",props:{...D},keepEmpty:!0,parts:[]}]}]}],drop:{...oe,...ie,layout:"the Box's own arrangement replaces it: Split a row of two Boxes; Spine and Alternating a centred column (Track is skipped)"}},KW=()=>({eyebrow:bg.eyebrow,title:Pr(bg.title),intro:bg.intro,ctaText:po.text,ctaHref:po.href,entries:DW()}),VW=()=>({eyebrow:Sg.eyebrow,title:Pr(Sg.title),intro:Sg.intro,ctaText:po.text,ctaHref:po.href,entries:MW()}),YW={TimelineTrack:dpe,Timeline:ppe};import{tabletKey as xpe}from"efficient-easel/draw";var upe=["tall","square","wide"],mpe="tall";function qW(e){return upe.includes(String(e??""))?String(e):mpe}var PYe={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"},EYe=[{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:""}],hpe=/^https?:\/\//i;function _Ye(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:My(e.lat),lng:My(e.lng),mapsUrl:hpe.test(o)?o:""}}function NT(e){let o=String(e??"").split(" \xB7 ");return{state:(o[0]??"").trim(),country:(o[1]??"").trim()}}var OYe="other",AYe={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 XW(e){let o=String(e??"").replace(/[^+\d]/g,"");return o?`tel:${o}`:void 0}var nr=e=>typeof e=="string"?e:e==null?"":String(e),MT=e=>Array.isArray(e.locations)?e.locations.map(o=>o??{}):[],ql=e=>nr(e.group),n3=e=>`loc-${e}`,s3=e=>nr(e.state).trim()||NT(nr(e.region)).state,i3=e=>nr(e.country).trim()||NT(nr(e.region)).country,ZW=e=>[s3(e),i3(e)].filter(Boolean).join(" \xB7 "),gpe=e=>MT(e).some(o=>nr(o.photo).trim()!==""),Ipe=e=>MT(e).some(o=>m0(Number(o.lat),Number(o.lng))),ype=(e,o)=>MT(e).filter(t=>ql(t)===ql(o)).length,bpe=(e,o)=>ype(e,o)===1?"wide":qW(e.imageShape),DT={top:100,bottom:100,topPhone:60,bottomPhone:60},JW=48,Er=(e,o={})=>({...ur(e),...o}),HT={top:1,right:1,bottom:1,left:1},WT={...D,direction:"row",share:"equal",gap:0},Spe=e=>o=>o>qp(o)?{...D,gap:0}:{...WT,...o>1?{phoneRow:e}:{}},$T=!0,wpe={kind:"group",name:"Gallery",props:{...D,gap:20,...$T?{_hidden:!0}:{}},when:gpe,parts:[{kind:"group",name:"Gallery head",props:{...D,direction:"row",justify:"between",align:"end",gap:24,share:"content",sectionBorder:{bottom:1},sectionPaddingBottom:16},parts:[ye("galleryKicker",Er(12,{color:"accent",letterSpacing:.3})),{kind:"text",key:"galleryHint",props:{...se,align:"right",alignPhone:"left"},style:Er(11,{letterSpacing:.22,alignPhone:"left"})}]},{kind:"group",name:"Groups",props:{...D,gap:24},parts:[{kind:"list",key:"locations",name:"City picture",props:{...D,darken:85,darkenStyle:"bottom",placement:"bottom-left",sectionBorder:HT,...Qo(12,12)},item:(e,o,t)=>({props:{...nr(e.photo).trim()?{bgImage:nr(e.photo),hover:"mono"}:{},link:`#${n3(o)}`,boxShape:bpe(t,e)}}),parts:[{kind:"text",key:"name",props:j,style:Er(11,{letterSpacing:.22,color:"text"})}],groups:{of:ql,name:"Group",props:{...D,gap:10},head:e=>({label:ql(e[0]??{})}),parts:[ye("label",Er(11,{color:"accent",letterSpacing:.3}))],itemsName:"Cities",itemsProps:Spe(2),perRow:qp,rowName:"Row",rowProps:{...WT,phoneRow:2}}}]}]},Cpe={kind:"group",name:"Words",props:{...D,gap:12,gapPhone:12,...Qo(28,28),sectionHeightMode:"fixed",sectionHeightValue:280,sectionHeightUnit:"px",sectionHeightModePhone:"auto"},parts:[{kind:"group",name:"Name row",props:{...D,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:{...D,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:Er(12,{color:"accent",letterSpacing:.24,lineHeight:1.5})}},box:["region","state","country"].map(e=>[e,"text",(o,t)=>ZW(t)]),when:(e,o)=>ZW(o??{})!==""}]},{kind:"group",name:"Time zone",props:{...D,sectionBorder:HT,...Qo(6,10)},parts:[{kind:"text",key:"timezone",props:{...se,textFit:"line"},style:Er(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:{...Fo,...Hs,variant:"ghost",arrow:!1,_partStyles:{label:Er(13,{letterSpacing:.18,color:"text",lineHeight:24/13})}},box:[["phone","label"],["phone","href",e=>XW(nr(e))??"#"]],when:(e,o)=>nr(o?.phone).trim()!==""},{kind:"text",key:"hours",props:se,style:Er(12,{letterSpacing:.18,lineHeight:1.7})}]},vpe={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)=>s3(t)]),...["region","country"].map(e=>[e,"country",(o,t)=>i3(t)])]},Tpe={kind:"group",name:"Map",props:{...D,sectionBorder:{top:1,right:0,bottom:0,left:0}},parts:[vpe]},kpe={kind:"list",key:"locations",name:"City",props:(e,o)=>({...D,gap:0,justify:"between",sectionBorder:HT,jumpHighlight:!0,sectionAccent:yn(e,o)>=0?Hl(e.sectionAccent,o):-1}),item:(e,o)=>({props:{anchor:n3(o)}}),parts:[Cpe,Tpe],groups:{of:ql,name:"Group",props:{...D,gap:20},head:e=>{let o=e[0]??{};return{key:ql(o),groupName:nr(o.groupName),count:`${e.length} location${e.length===1?"":"s"}`}},parts:[{kind:"group",name:"Group head",props:{...D,direction:"row",justify:"between",align:"end",gap:16,share:"content",sectionBorder:{bottom:1},sectionPaddingBottom:16},when:(e,o)=>nr(o?.key).trim()!=="",parts:[ye("key",Er(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:Er(12,{letterSpacing:.22})}]}],itemsName:"Cities",itemsProps:e=>({...WT,columns:qp(e),[xpe("columns")]:1})}},QW=Er(10,{letterSpacing:.25}),Ppe={kind:"block",type:ea,props:{...D,name:"Credit",direction:"row",justify:"end",align:"center",gap:6,share:"content",wrap:!0},when:Ipe,slot:oa,keepEmpty:!0,parts:[{kind:"block",type:"Text",props:{...se,text:"Location coordinates \xA9",_partStyles:{text:QW}}},{kind:"block",type:"ButtonBlock",props:{...Fo,...Hs,variant:"ghost",arrow:!1,label:"OpenStreetMap contributors",href:"https://www.openstreetmap.org/copyright",_partStyles:{label:{...QW,color:"labels"}}}}]},e3=(e,o)=>Object.fromEntries(o.filter(t=>e[t]!==void 0).map(t=>[t,e[t]])),o3=["sectionPaddingTop","sectionPaddingTopTablet","sectionPaddingTopPhone"],t3=["sectionPaddingBottom","sectionPaddingBottomTablet","sectionPaddingBottomPhone"],r3=e=>e.map(o=>[o,o,(t,r)=>le(r,DT)[o]]),a3=["sectionAccent","sectionAccent",bn],Epe=[...Ya,...ji,...Object.values(Be)],_pe={name:"City pictures",skip:e=>oo(e)?`fed by the data source "${oo(e)}": its cities are read as the page is served, not stored on the node`:void 0,boxProps:(e,o)=>({...ee,direction:"column",gap:40,anchor:"studios",...vt,...e3(le(e,DT),o3),sectionPaddingBottom:JW,sectionPaddingBottomPhone:JW,...Ws(e,o)}),box:[...ae.filter(e=>e!=="sectionAccent"&&e!=="anchor"),a3,["anchor","anchor",e=>Xc(e).trim()?e:"studios"],...r3(o3)],parts:[rg("sectionNumber","heading","tagline"),wpe],also:[{name:"City maps",boxProps:(e,o)=>({...ee,direction:"column",gap:40,sectionBorder:{bottom:1},...vt,sectionPaddingTop:0,sectionPaddingTopPhone:0,...e3(le(e,DT),t3),...Ws(e,o)}),box:[...Epe,a3,...r3(t3)],parts:[kpe,Ppe]}],reads:{mapTheme:"City maps Box: each Map block's Map theme",imageShape:"City pictures Box: each picture Box's Box shape"},site:Sn,drop:{...oe,...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)"}},l3={ContactLocations:_pe};import{SITE_SIDE as c3,sideLengthAt as Ope}from"efficient-easel/screen/lib/content/length-units";import{viewKeyAt as UT}from"efficient-easel/draw";var Ape=["FAQ","Footprint","LongRead","ProcessSteps","RelatedProducts"];var wn=(e,o)=>()=>({top:e,topPhone:o}),d3=e=>o=>{let t=Tl(e),r={...o,[Vr.top]:fd(o,t).top},a=l=>{let d=Ope(r,Vr,rs,l,"top");return d?.unit==="px"?d.value:void 0},n=l=>V(o[UT(Vr.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}:{}}},Rpe={Collections:wn(120,70),Events:wn(120,70),FAQ:wn(120,70),GalleryB:wn(120,70),FitmentTable:wn(120,80),SpecTable:wn(120,80),LongRead:wn(120,80),RelatedProducts:wn(0,0),Footprint:d3("Footprint"),ProcessSteps:d3("ProcessSteps"),ProductGrid:e=>({top:V(e.padTop)??120,topPhone:0})};function Lpe(e,o={}){let t=$(mr,e),r=$(Rpe,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=or(e),s=ig(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:$(Ln,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=Us(e)==="editorial"?vt:{};return{...ee,direction:"column",gap:Cf[Us(e)],sectionPaddingTop:u.top,...u.topTablet!==void 0?{sectionPaddingTopTablet:u.topTablet}:{},...u.topPhone!==void 0?{sectionPaddingTopPhone:u.topPhone}:{},...h,...p,...m}},box:[...ae,...a?[[a,"sectionPaddingTop",(d,f)=>r(f).top]]:[]],parts:[n,...(()=>{let d=a&&JM.has(e)?{[UT(a,"tablet")]:0,[UT(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 Fpe={...D,direction:"accordion",rowStyle:"numbered"},Bpe={sectionPaddingLeft:c3,sectionPaddingRight:c3},Npe={Footprint:{slots:{[ze]:[h0()]},pressHeading:!0},ProcessSteps:{slots:(e,o)=>o.press?{[wc]:L4().map(t=>({...t,props:{...t.props,...Bpe}}))}:{},boxProps:{gapPhone:Cf.editorial}},FAQ:{slots:{[ze]:[u0()]},pressHeading:!0,coreBox:{name:"Questions",props:Fpe},coreProps:{sectionAccent:$r},roomBelow:{bottom:120,bottomPhone:70},boxProps:(e,o)=>o.press?{}:{[VM]:Cs},skip:e=>{let o=e._partStyles??{},t=p0().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}}},f3=Object.fromEntries(Ape.map(e=>[e,Lpe(e,$(Npe,e))]));import{BLOCK_WIDTH_LIMIT as Dpe}from"efficient-easel/draw";var kg={eyebrow:qe.eyebrow,title:qe.headingAccent,deck:"Add a sentence or two introducing this document."},m9e={label:"Document masthead",defaultProps:{eyebrow:"",title:"",deck:"",meta:[]}};var y3={minWidth:Dpe.min},p3=(e,o,t)=>({...ye(e,{...o,...yf}),props:{...j,align:"right",...Ds,...t}}),b3={top:1,bottom:0},GT=(e,o,t,r)=>({kind:"group",name:e,props:{...D,sectionPaddingBottom:o,sectionPaddingBottomPhone:t},parts:[r]}),u3={widthFit:"fill",...y3},m3={top:100,bottom:60,topPhone:60,bottomPhone:40},Mpe={...U("label",13),letterSpacing:.22,lineHeight:1.8},h3={textStyle:"heading-1",...Tt("headingLarge",56,8,128),case:"upper",weight:500,lineHeight:.88,letterSpacing:-.04},Hpe=()=>({name:"Page Header",boxProps:e=>({...ee,direction:"column",gap:0,sectionBorder:{bottom:1},...le(e,m3)}),box:[...ae,...Ie(m3)],parts:[{kind:"group",name:"Header",props:{...D,direction:"row",align:"end",justify:"between",gap:40,gapPhone:16,share:"content",sectionPaddingBottom:32},parts:[GT("Eyebrow",12,0,{...ye("eyebrow",U("label",13)),props:{...j,...Ds}}),{kind:"text",key:"title",role:"heading",props:{...j,tag:"h1",...u3},style:h3,mark:"accentItalic",when:e=>!Dv(e)},{kind:"text",key:"title",role:"heading",props:{...j,tag:"h2",...u3},style:h3,mark:"accentItalic",when:Dv},{kind:"group",name:"Details",props:{...D,align:"stretch",gap:0,gapPhone:0,sectionPaddingBottom:12,sectionPaddingBottomPhone:0},parts:[{kind:"list",key:"meta",name:"Detail",flat:!0,parts:[bf("label","value",Mpe,Ds)]}]}]},{kind:"group",name:"Deck",props:{...D,maxWidth:760,sectionBorder:b3,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:{...oe,...ie,[Ox]:"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"}}),S3=()=>({eyebrow:kg.eyebrow,title:Pr(kg.title),deck:kg.deck,meta:[{label:qe.label,value:qe.value},{label:qe.label,value:qe.value}]}),x3={top:80,bottom:40,topPhone:60,bottomPhone:32},Wpe={...U("label",13),letterSpacing:.18,lineHeight:1.8},g3={...U("label",13),letterSpacing:.22,lineHeight:1.9},$pe=()=>({name:"Issue Header",boxProps:e=>({...ee,direction:"column",gap:0,sectionBorder:{bottom:1},...le(e,x3)}),box:[...ae,...Ie(x3)],parts:[{kind:"group",name:"Top",props:{...D,direction:"row",align:"end",justify:"between",gap:60,gapPhone:16,share:"content",sectionPaddingBottom:32},parts:[GT("Eyebrow",14,14,ye("eyebrow",U("label",14))),{kind:"group",name:"Issue",props:{...D,align:"end",gap:0,gapPhone:0,sectionPaddingBottom:14},parts:[{kind:"list",key:"issueMeta",name:"Issue line",flat:!0,parts:[bf("lead","rest",Wpe)]}]}]},{kind:"group",name:"Bottom",props:{...D,direction:"row",align:"start",justify:"between",gap:60,gapPhone:16,share:"content",sectionBorder:b3,sectionPaddingTop:32},parts:[{kind:"text",key:"lead",props:{...j,maxWidth:720,...y3},style:{textStyle:"body-1",fontRole:"heading3",...U("headingSmall",20),lineHeight:1.5,letterSpacing:-.005,paragraphSpacing:16}},{kind:"group",name:"In this issue",props:{...D,align:"stretch",gap:0},parts:[GT("Heading",6,6,{kind:"text",key:"issueHeading",props:{...j,align:"right",...Ds},style:{textStyle:"body-1",fontRole:"heading",...U("body",18),weight:400,letterSpacing:-.01,lineHeight:1.9,...yf}}),{kind:"group",name:"Lines",props:{...D,align:"stretch",gap:0},parts:[{kind:"list",key:"issueList",name:"Line",flat:!0,parts:[p3("text",{color:"labels",...g3})]}]},p3("issueTotal",g3)]}]}],drop:{...oe,...ie}}),I3={top:24,bottom:24,topPhone:16,bottomPhone:16},zT={color:"labels",...U("label",13),letterSpacing:.2},w3=e=>(Array.isArray(e.items)?e.items:[]).filter(o=>o&&typeof o.label=="string"&&o.label.trim()!==""),jT=(e,o)=>o!==void 0&&w3(e).at(-1)===o,C3=(e,o)=>o!==void 0&&w3(e).includes(o),Upe=(e,o)=>C3(e,o)&&!jT(e,o)&&ao(o?.href),zpe=()=>({name:"Breadcrumb",skip:e=>ao(e.meta)?'a trailing note after "\xB7" needs a second mark; none live':void 0,boxProps:e=>({...ee,...Gs,wrap:"wrap",gap:16,gapPhone:16,separator:"slash",sectionBorder:{bottom:1},...le(e,I3)}),box:[...ae,...Ie(I3)],parts:[{kind:"list",key:"items",name:"Crumb",flat:!0,parts:[{kind:"button",key:"label",href:"href",variant:"ghost",when:Upe,props:{...Fo,...Hs,icon:"none"},style:zT},{...ye("label",zT),when:(e,o)=>C3(e,o)&&!jT(e,o)&&!ao(o?.href)},{...ye("label",{...zT,color:"text"}),when:jT}]}],drop:{...oe,...ie,meta:"a node that stores a note is skipped (`skip`); an empty one draws nothing"}}),v3={DocMasthead:Hpe(),Masthead:$pe(),Breadcrumb:zpe()};import{BLOCK_WIDTH_LIMIT as jpe,hiddenKeyOf as Kpe}from"efficient-easel/draw";import{readHidable as KT}from"efficient-easel/draw";function Gpe(e,o,t){return e||(t?.isEditing?c(o):void 0)}function E9e(e,o,t){let r=Array.isArray(e)?e:[];return r.length?r:t?.isEditing?o:[]}function T3(e,o,t){let r=KT(e);if(!r.hidden)return Gpe(r.text,o,t)}function k3(e){if(e==null)return;let o=KT(e);return o.hidden?"":o.text}function _9e(e,o,t){return KT(e).hidden?"":T3(e,o,t)}function O9e(e,o,t){return{text:T3(e,po.text,t),href:o||po.href}}var O3="MenuBlock",VT=e=>(Array.isArray(e)?e:[]).filter(o=>o&&ao(o.label)),P3=e=>{let[o,t]=[e.metaLabel,e.metaValue].map(a=>(k3(a)??"").trim());if(!t)return o;let r=t.includes("==")?t:`==${t}==`;return o?`${o} ${r}`:r},E3={top:0,bottom:0,topPhone:0,bottomPhone:0},Vpe={...ht,color:"labels",...U("label",12),letterSpacing:.24},Ype={kind:"group",name:"Note",props:{...D,justify:"center",sectionBorder:{top:0,right:0,bottom:0,left:1},sectionPaddingLeft:28,[Kpe("mobile")]:!0},parts:[{kind:"block",type:"Text",when:e=>P3(e)!=="",props:e=>({...j,textFit:"line",text:P3(e),[Dd]:{text:Vpe}})}]},A3=()=>({tabs:[],metaLabel:qe.label,metaValue:qe.value}),_3="the note Text inside the Box (the label, then the value in the accent); no words, no Text",R3={direction:"row",menuStyle:"tabs",currentPage:!0,minWidth:jpe.min},L3=e=>({...e,boxProps:o=>({...ee,direction:"row",align:"stretch",justify:"between",gap:0,stickTop:!0,[wr]:0,[tn]:!0,sectionBorder:{bottom:1},...le(o,E3)}),box:[...ae,...Ie(E3)]}),qpe=()=>L3({name:"Tab Bar",skip:e=>VT(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:_3,metaValue:_3},parts:[{kind:"block",type:O3,props:R3},Ype],drop:{...oe,...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"}}),Xpe=()=>L3({name:"Category Bar",skip:e=>{if(VT(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(VT(e.links).length)return"its right-hand links are typed words: the bar holds the Menu only"},parts:[{kind:"block",type:O3,props:{...R3,[Oo]:YE}}],drop:{...oe,...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"}}),F3={DocTabs:qpe(),CategoryBar:Xpe()};import{jsx as js,jsxs as qT}from"react/jsx-runtime";import{slugify as Zpe}from"efficient-shell/format";import{jsx as YT,jsxs as B3}from"react/jsx-runtime";var U9e="sticky top-[120px]";var Pg={entry:{label:"Entry",follows:"Labels",builtIn:"13px",writable:!0},number:{label:"Entry number",follows:"Labels",builtIn:"13px",writable:!0}};var N3=(e,o)=>e?{[Mn]:o}:{},D3=(e,o)=>Vp(e?.[Oc(o)]?.role,Pg[o],xi),M3=120;function H3({title:e,entries:o,stickyTop:t,sticky:r=!0,editing:a=!1,partStyles:n,numberForm:s=qw,takesViewHide:i=!1}){let l=s==="plain",d=Wt(),f=i?d:Ka;return f.scope(B3("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&&YT("h4",{className:"mb-[18px] font-mono text-[length:var(--size-label,12px)] uppercase tracking-[0.3em] text-accent",children:yo(e)}),o.map((u,p)=>{let m=YT("span",{...N3(a,"number"),style:D3(n,"number"),className:"text-accent",children:bh(s,p)});return B3("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,YT("span",{...N3(a,"entry"),style:D3(n,"entry"),children:yo(u.label||"Section")}),!l&&m]},`${p}-${u.anchor}`)})]}))}function Jpe(e,o){return Zpe(e)||`section-${o+1}`}var XT=e=>typeof e=="string"&&e.trim()!=="";function ZT(e){return(e??[]).filter(o=>XT(o.heading)||XT(o.label)||XT(o.body))}function JT(e){let o=new Set;return e.map((t,r)=>{let a=Jpe(t.label||t.heading||"",r),n=a,s=2;for(;o.has(n);)n=`${a}-${s++}`;return o.add(n),n})}function QT(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=Bp(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 Qpe=()=>[{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.")}],eue=M3;function lqe({tocTitle:e,sections:o,editing:t=!1,stickyTop:r=eue}){let a=ZT(o);if(a.length===0&&!t)return null;let n=a.length===0&&t?Qpe():a,s=JT(n);return js(he,{as:"section",className:"relative z-[2] bg-bg",children:qT("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:[js(H3,{title:e,entries:n.map((i,l)=>({label:i.label||"Section",anchor:s[l]})),stickyTop:r}),js("div",{className:"flex flex-col gap-16",children:n.map((i,l)=>qT("article",{id:s[l],className:"flex flex-col gap-[18px]",style:{scrollMarginTop:r},children:[qT("span",{className:"font-mono text-[length:var(--size-label,12px)] uppercase tracking-[0.3em] text-accent",children:[Yw(l)," \xB7 ",yo(i.label||"Section")]}),i.heading&&js("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:yo(i.heading)}),QT(i.body??"").map((d,f)=>d.type==="ul"?js("ul",{className:"flex max-w-[680px] list-none flex-col gap-2.5 pl-0",children:d.items.map((u,p)=>js("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:yo(u)},p))},f):js("p",{className:"max-w-[680px] font-serif text-[length:var(--size-body,17px)] leading-[1.7] text-fg-dim",children:yo(d.text)},f))]},s[l]))})]})})}var W3={top:80,bottom:80,topPhone:60,bottomPhone:60},$3=18,U3=18,z3=8,oue=10,ek=e=>typeof e=="string"&&e.trim()!=="",G3=e=>ZT(e.sections),tue=e=>QT(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}),ok={...ur(12),letterSpacing:.3,color:"accent",lineHeight:1.5},j3={textStyle:"body-1",fontRole:"accent",...U("body",17)},rue=[ye("label",ok),{...ye("title",ok),when:(e,o)=>!ek(o?.label)},{kind:"block",type:"Text",when:(e,o)=>!ek(o?.label)&&!ek(o?.title),props:{...j,text:"Section",_partStyles:{text:ok}}},{kind:"group",name:"Heading",props:{...D,sectionPaddingBottom:z3,sectionPaddingBottomPhone:z3},parts:[{kind:"group",name:"Heading line",props:{...D,sectionBorder:{bottom:1},sectionPaddingBottom:U3,sectionPaddingBottomPhone:U3},parts:[{kind:"text",key:"heading",role:"heading",props:j,style:{textStyle:"heading-2",...Tt("headingMedium",28,3.5,44),case:"upper",weight:500,lineHeight:1.04,letterSpacing:-.025}}]}]},{kind:"list",key:"body",name:"Body",flat:!0,of:tue,parts:[{kind:"text",key:"text",props:se,style:{...j3,lineHeight:1.7},when:(e,o)=>o?.kind==="p"},{kind:"text",key:"text",props:se,style:{...j3,lineHeight:1.65,paragraphSpacing:oue},when:(e,o)=>o?.kind==="ul"}]}],aue=900,nue={name:"Document Text",boxProps:e=>({...ee,direction:"row",gap:80,gapPhone:40,[og]:aue,sectionBorder:{bottom:1},...le(e,W3)}),box:["anchor","sectionAccent",...Ya,...ji,...Object.values(Be),...Ie(W3)],parts:[{kind:"block",type:"Contents",props:e=>({title:e.tocTitle??"",sticky:!0,widthFit:"fixed",width:240,widthFitPhone:"fill"})},{kind:"group",name:"Sections",props:{...D,gap:64,gapPhone:64,widthFit:"fill"},parts:[{kind:"list",key:"sections",name:"Section",of:e=>G3(e),props:{...D,gap:$3,gapPhone:$3},item:(e,o,t)=>({props:{anchor:JT(G3(t))[o]??`section-${o+1}`}}),parts:rue}]}],reads:{tocTitle:"the Contents block's Heading"},drop:{...oe,stickyTop:"the Contents block draws DocBody's default (120px); 0 live nodes store it"}},K3={DocBody:nue};import{phoneKey as lue}from"efficient-easel/draw";import{SITE_SIDE as cue}from"efficient-easel/screen/lib/content/length-units";var yqe={eyebrow:"\u2014 Label",title:`Section headline *here.*
336
+ *Highlight line*`,body:"Describe this section in a sentence or two."},bqe={text:"Learn more"},Sqe={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 tk(e){return typeof e=="number"&&Number.isFinite(e)?Math.min(Math.max(e,0),100):40}var V3="[--intro-edge:60px] max-[960px]:[--intro-edge:24px]",sue="overlay",iue=[{label:"Copy over image",value:"overlay"},{label:"Copy above image",value:"stacked"}];function Eg(e){return Q(iue,sue,e)}var vqe={desktop:40,mobile:45,min:20,max:80,step:5};function Tqe(e,o){return`${typeof e=="number"?e:o}%`}var Y3=(e,o,t)=>{let r=V(e),a=V(o),n=(s,i)=>i&&i!=="px"?{[s]:i}:{};return{...r===void 0?{}:{size:r,...n(Xt.size,t?.desktop)},...a===void 0?{}:{sizePhone:a,...n(Xt.sizePhone,t?.phone)}}},due=e=>Eg(e.layout)==="stacked",q3=e=>Math.min(Math.max(V(e.overlay)??60,0),100),_g=e=>V(e)??100,fue={textStyle:"heading-1",sizeToken:{...Tt("headingLarge",48,7,96).sizeToken,pxPhone:36},weight:500,lineHeight:.95,letterSpacing:-.03},pue=[ye("eyebrow",U("label",14)),...[!0,!1].map(e=>({kind:"text",key:"title",role:"heading",props:j,style:{...fue,case:e?"upper":"none"},styleFrom:o=>{let t=lw(o);return Y3(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=lw(e);return Y3(e.bodySizeDesktop,e.bodySizeMobile,{desktop:o.bodyDesktop,phone:o.bodyMobile})}},{kind:"group",name:"Button",props:{...D,align:"start",sectionPaddingTop:8,sectionPaddingTopPhone:8},parts:[{kind:"button",key:"ctaText",href:"ctaHref",variant:"primary",props:Fo}]}],X3=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)`,uue=()=>({name:"Scroll-Over Text",skip:e=>due(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=>({...ee,direction:"column",justify:"center",align:"start",gap:24,gapPhone:24,share:"content",...Sf,placement:"left",darken:q3(e),darkenStyle:"even",sectionHeightMode:"fixed",sectionHeightUnit:"%",sectionHeightValue:_g(e.heightDesktop),sectionHeightModePhone:"fixed",sectionHeightUnitPhone:"%",sectionHeightValuePhone:_g(e.heightMobile),[ns]:on}),box:[...ae.filter(e=>!String(typeof e=="string"?e:e[0]).startsWith("sectionHeight")),["imageSrc","bgImage"],["imageSrcMobile","bgImagePhone"],["overlay","darken",(e,o)=>q3(o)],["heightDesktop","sectionHeightValue",e=>_g(e)],["heightMobile","sectionHeightValuePhone",e=>_g(e)]],parts:pue,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(jF.map(e=>[e,"read by its part's `styleFrom`: the unit of that view's Size"])),buttonColor:X3("Button color"),buttonTextColor:X3("Button text color"),...oe}}),Q3={textStyle:"heading-2",...U("headingMedium",56,36),weight:400,lineHeight:1.05,letterSpacing:-.03},mue={textStyle:"body-1",...U("body",16),lineHeight:1.7},e$=e=>({kind:"text",key:"body",props:{...se,maxWidth:520},style:{...mue,paragraphSpacing:e}}),Ag={top:0,bottom:0,topPhone:0,bottomPhone:0},rk=(e,o)=>typeof e.sectionHeightMode=="string"&&e.sectionHeightMode!=="auto"?{}:{sectionHeightMode:"fixed",sectionHeightUnit:"%",sectionHeightValue:o,sectionHeightModePhone:"auto"},hue=(e,o)=>{let t=rk(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"}},o$={boxShapePhone:"landscape"},t$="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)",xue=(e,o)=>({[e]:o,[lue(e)]:o}),gue={textStyle:"heading-2",...U("headingMedium",40),weight:500,case:"none",lineHeight:1,letterSpacing:-.02},Z3=e=>(Array.isArray(e.stats)?e.stats:[]).filter(o=>o&&(String(o.value??"").trim()!==""||String(o.label??"").trim()!=="")),Iue=()=>({name:"Brand Text",boxProps:(e,o)=>({...ee,...Ct("background")(e,o),direction:"row",share:"equal",gap:0,gapPhone:0,sectionBorder:{top:1,bottom:1},...le(e,Ag),...rk(e,100)}),box:[...ae,...Ie(Ag)],parts:[{kind:"group",name:"Words",props:()=>({...D,justify:"center",gap:28,gapPhone:28,sectionBorder:wf({right:1}),sectionBorderPhone:wf({}),...Sf,sectionPaddingTop:100,sectionPaddingBottom:100,sectionPaddingTopPhone:60,sectionPaddingBottomPhone:60,sectionPaddingRight:cue}),parts:[ye("eyebrow",U("label",14)),{kind:"text",key:"heading",role:"heading",props:j,style:{...Q3,case:"none"},mark:"accentItalic"},e$(28),{kind:"group",name:"Stats",props:{...D,sectionPaddingTop:16,sectionPaddingTopPhone:16},parts:[{kind:"group",name:"Figures",props:e=>({...D,direction:"row",share:"equal",gap:24,gapPhone:24,maxWidth:520,phoneRow:Math.min(Math.max(Z3(e).length,1),3),...xue("sectionBorder",wf({top:1})),sectionPaddingTop:28,sectionPaddingTopPhone:28}),parts:[{kind:"list",key:"stats",name:"Stat",of:Z3,props:{...D,gap:4,gapPhone:4},parts:[{kind:"text",key:"value",props:Ms,style:gue},ye("label",{...U("label",13),color:"labels",letterSpacing:.2})]}]}]}]},oT("Picture","imageSrc",o$)],drop:{...oe,grayscale:t$,...ie}}),Og=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}},yue=e=>e.textAlign==="center"||e.textAlign==="right"?Wp[e.textAlign]:"stretch",bue=e=>Math.min(Math.max(V(e.overlay)??60,0),100),r$=e=>typeof e=="string"&&e.trim()!=="",Sue={...Fo,align:"center",alignPhone:"center",buttonFillOpacity:0,buttonBorder:{width:1},buttonPaddingTop:16,buttonPaddingRight:28,buttonPaddingBottom:16,buttonPaddingLeft:28,buttonPaddingTopPhone:12,buttonPaddingRightPhone:20,buttonPaddingBottomPhone:12,buttonPaddingLeftPhone:20},J3=e=>({...oT("Picture","imageSrc",(o,t)=>({...r$(o.imageSrc)&&tk(o.imageOverlay)>0?{darken:tk(o.imageOverlay),darkenStyle:"even"}:{},placement:"center",...o$,sectionBorder:wf(e?{left:1}:{right:1}),...a$(e?"left":"right",$l(t))}),[{kind:"button",key:"imageBtnText",href:"imageBtnHref",variant:"ghost",props:Sue,style:{...ur(13,12),letterSpacing:.18}}]),when:o=>o.reverse===!0===e}),a$=(e,o)=>{let t=Math.max(60-o,0);return{sectionPaddingLeft:e==="left"?60:t,sectionPaddingRight:e==="right"?60:t}},wue={kind:"group",name:"Words",props:(e,o)=>{let t=e.reverse===!0;return{...D,justify:"center",align:yue(e),placement:Q(["left","center","right"],"left",e.textAlign),...hue(e,72),gap:24,gapPhone:24,...r$(e.textBgSrc)?{darken:bue(e),darkenStyle:"even"}:{},...Sf,sectionPaddingTop:100,sectionPaddingBottom:100,...a$(t?"right":"left",$l(o)),sectionPaddingTopPhone:60,sectionPaddingBottomPhone:60}},box:[["textBgSrc","bgImage"]],parts:[{...ye("eyebrow",U("label",14)),styleFrom:Og},{kind:"text",key:"title",role:"heading",props:j,style:Q3,styleFrom:e=>({case:e.uppercase===!0?"upper":"none",...Og(e)})},{...e$(24),styleFrom:Og},{kind:"group",name:"Button",props:{...D,sectionPaddingTop:8,sectionPaddingTopPhone:8},parts:[{kind:"button",key:"ctaText",href:"ctaHref",variant:"primary",props:e=>{let o=Og(e);return{...Fo,...o.align?{align:o.align}:{},...o.alignPhone?{alignPhone:o.alignPhone}:{}}}}]}]},Cue=()=>({name:"Image & Text Split",boxProps:(e,o)=>({...ee,...Ct("background")(e,o),direction:"row",share:"equal",gap:0,gapPhone:0,sectionBorder:{top:1,bottom:1},...le(e,Ag),...rk(e,72)}),box:[...ae,...Ie(Ag)],parts:[J3(!1),wue,J3(!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:t$,...oe,...ie}}),n$={IntroBleed:uue(),Manifesto:Iue(),Split:Cue()};var l$={headPlacement:void 0},s$={top:0,bottom:0,topPhone:0,bottomPhone:0},vue=()=>({name:"Form",ownBoxConverts:!0,boxProps:e=>({...ee,direction:"column",...le(e,s$)}),box:[...ae,...Ie(s$)],parts:[{kind:"core",keep:"rest",props:l$}],drop:{...oe,...ie}}),i$={top:120,bottom:120,topPhone:60,bottomPhone:60},Tue=()=>({name:"Photo Submission Form",boxProps:e=>({...ee,direction:"column",gap:24,...le(e,i$)}),box:[...ae,...Ie(i$)],parts:[ye("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:l$}],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:{...oe,...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'}}),c$={Form:vue(),SubmitBuild:Tue()};import{phoneKey as d$}from"efficient-easel/draw";var p$=1.5,f$={textStyle:"body-1",...U("body",15),lineHeight:p$},kue={...ht,...U("label",12),letterSpacing:.12,lineHeight:p$},u$=()=>({type:Y,props:{...D,direction:"row",justify:"between",align:"start",gap:16,gapPhone:16,share:"content",phoneRow:2,[d$("share")]:"content",[d$("wrap")]:"nowrap",...Qo(12,0),sectionBorder:{top:1},name:"Item"},slots:{[Me]:[{type:Y,props:{...D,gap:0,gapPhone:0,name:"Item words"},slots:{[Me]:[Ze("label",{...j,tag:"p"},f$),Ze("meta",{...se,tag:"p"},kue)]}},Ze("amount",{...j,tag:"p"},f$)]}});var Pue=()=>({name:"Order Table",boxProps:()=>({...ee,direction:"column"}),box:[...ae],parts:[{kind:"core",keep:"rest",headless:!0,slots:{[ze]:[u$()]}}],drop:{...oe}}),m$={OrderSummary:Pue()};import{phoneKey as Eue}from"efficient-easel/draw";var Jqe={eyebrow:"By the numbers",title:`A picture worth
337
+ *a thousand rows.*`},h$=["eyebrow","title","body","caption"],Qqe={label:"Chart",defaultProps:{eyebrow:"",title:"",body:"",items:[],caption:"",chartStyle:"bars",valueSuffix:""}};var x$=["eyebrow","title","body"],oXe={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 y$={top:76,bottom:76,topPhone:76,bottomPhone:76},b$=()=>({kind:"group",name:"Words",props:{...D,gap:20,gapPhone:20},parts:[{kind:"group",name:"Chip row",props:{...D,direction:"row",phoneRow:2,[Eue("share")]:"content"},parts:[Ml("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:jp(16)}]}),S$=e=>(o,t)=>({...ee,sectionAccent:Wl(o.sectionAccent??0,t),direction:"row",align:"center",gap:56,gapPhone:56,share:e,sectionBorder:{top:1,bottom:1},...le(o,y$)}),w$=[...ae.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,t)=>Wl(e,t)],...Ie(y$)],_ue=()=>({name:"Chart",boxProps:S$([42]),box:w$,parts:[b$(),{kind:"group",name:"Chart",props:{...D,gap:16,gapPhone:16},keepEmpty:!0,parts:[{kind:"core",keep:"rest",props:Dl},ye("caption",{color:"muted",...U("label",10),letterSpacing:.14})]}],pressKeepsEmpty:[...h$],drop:{...oe,...ie}}),g$=e=>e.align==="left",I$={kind:"group",name:"Card",keepEmpty:!0,props:D,parts:[{kind:"core",keep:"rest",props:Dl}]},Oue=()=>({name:"Mockup Card",boxProps:S$("equal"),box:w$,parts:[{...I$,when:g$},b$(),{...I$,when:e=>!g$(e)}],pressKeepsEmpty:[...x$],drop:{...oe,...ie}}),C$={Chart:_ue(),Mockup:Oue()};import{phoneKey as Rue}from"efficient-easel/draw";function v$(e,o=3){let t=Array.from({length:o},()=>[]);return e.forEach((r,a)=>t[a%o].push(r)),t}function T$(e){return Math.max(e*6,30)}var k$={top:76,bottom:76,topPhone:76,bottomPhone:76},Lue=e=>(Array.isArray(e.apps)?e.apps:[]).map(o=>o&&typeof o=="object"&&typeof o.text=="string"?o.text.trim():"").filter(Boolean),ak=e=>v$(Lue(e)),Fue=e=>hg({loopDuration:T$(e)}),Bue={kind:"group",name:"Header",props:{...D,align:"center",gap:20,gapPhone:20},parts:[{kind:"group",name:"Chip row",props:{...D,direction:"row",justify:"center",phoneRow:2,[Rue("share")]:"content"},parts:[Ml("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:jp(16)}]},Nue=e=>({kind:"group",name:`Row ${e+1}`,when:o=>ak(o)[e].length>0,props:o=>({...D,direction:"row",gap:12,gapPhone:12,loop:"scroll",...e%2===1?{scrollDirection:"right"}:{},loopDuration:Fue(ak(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=>ak(o)[e].map(t=>({alt:t})),parts:[{kind:"block",type:"LogoBlock",box:["alt"]}]}]}]}),Due={kind:"group",name:"Stat",props:{...D,align:"center",gap:16,gapPhone:16},parts:[{kind:"group",name:"Figure",props:{...D,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"}}]},Mue=[...ae.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,t)=>Wl(e,t)],...Ie(k$)],Hue={name:"Integrations",boxProps:(e,o)=>({...ee,sectionAccent:Wl(e.sectionAccent??0,o),direction:"column",gap:48,gapPhone:48,sectionBorder:{top:1,bottom:1},...le(e,k$)}),box:Mue,parts:[Bue,{kind:"group",name:"Rows",props:{...D,gap:12,gapPhone:12},parts:Array.from({length:3},(e,o)=>Nue(o))},Due],pressKeepsEmpty:["body","statValue","statLabel","note"],reads:{apps:"a Logo block per app, dealt into the three Rows"},drop:{...oe,...ie}},P$={Integrations:Hue},E$=()=>({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 Wue={title:"Back online in",zeroText:"Almost done. Back very soon."},_$=["title"],gXe={label:"Countdown",defaultProps:{...Wue,endsAt:"",showUnits:!0}};var O$={top:48,bottom:48,topPhone:48,bottomPhone:48},$ue={...ye("title",{...r0(12),color:"muted"}),props:{...j,align:"center"}},Uue=()=>({name:"Countdown",boxProps:e=>({...ee,direction:"column",align:"center",gap:16,gapPhone:16,...le(e,O$)}),box:[...ae,...Ie(O$)],parts:[$ue,{kind:"core",keep:"rest",props:Dl}],pressKeepsEmpty:[..._$],drop:{...oe,...ie}}),A$={top:80,bottom:80,topTablet:60,bottomTablet:60,topPhone:60,bottomPhone:60},zue=()=>({name:"Feature Banner",boxProps:e=>({...ee,direction:"column",sectionBorder:{bottom:1},...le(e,A$)}),box:[...ae,...Ie(A$)],parts:[{kind:"core",keep:"rest",props:Dl}],drop:{...oe,...ie}}),R$={Countdown:Uue(),FeaturedCover:zue()};var L$={top:80,bottom:80,topPhone:60,bottomPhone:60},Gue=()=>{let e=ig("FitmentFinder");return{name:"Fitment Form",boxProps:o=>({...ee,direction:"column",gap:Cf[Us("FitmentFinder")],...le(o,L$)}),box:[...ae,...Ie(L$)],parts:[or("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:{...oe,...ie,layout:'the section shape; "bar" is skipped (above), so here it is the stacked shape this Box draws'}}},F$={FitmentFinder:Gue()};var Rg={eyebrow:"Label",title:"Section *heading.*",body:"Add this section's copy here. A blank line starts a new paragraph."},kXe={label:"Editorial Text",defaultProps:{eyebrow:"",title:"",body:"",topBorder:!0}};var Df={eyebrow:qe.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"},_Xe={label:"Lead Text",defaultProps:{eyebrow:"",lead:"",stats:[],foundersHeading:"",foundersBody:"",attribution:"",padTop:60,padBottom:80}};var B$={eyebrow:"Limited release",title:"Banner headline",body:"A line or two of supporting copy."},AXe={label:"Banner",drawsPictures:!0,defaultProps:{eyebrow:"",title:"",body:"",imageSrc:"",ctaText:"",ctaHref:"",contained:!0,overlay:60}};var N$={title:`Section heading
339
+ *Highlight line*`},D$=[{label:po.text,href:po.href,variant:"primary"},{label:po.text,href:po.href,variant:"outline"}],FXe={label:"Call-to-Action Heading",defaultProps:{title:"",buttons:[],padTop:140,padBottom:140}};var Lg="standard",$$=[{label:"Standard",value:"standard"},{label:"Editorial",value:"editorial"},{label:"Simple",value:"simple"},{label:"Statement",value:"statement"},{label:"Natural",value:"natural"},{label:"Essay",value:"essay"}],sk=["numStyle","logoSrc","logoAlt","linkText","linkHref","_gLogo"],nk=[...sk,"description"],M$={standard:["eyebrowLook"],editorial:[...sk,"eyebrowLook"],simple:nk,statement:nk,natural:sk,essay:nk},H$=["gap-5","gap-3"],W$=["text-[length:var(--size-body,16px)]","text-[15px]"];function MXe(e){return Q(H$,H$[0],e)}function HXe(e){return Q(W$,W$[0],e)}function WXe(e){return Q($$,Lg,e)}function $Xe(e){let o=$$.map(r=>r.value),t=[...new Set(Object.values(M$).flat())];return Et(e,t.map(r=>[[r],_c("headStyle",o,Lg,o.filter(a=>!M$[a].includes(r)))]))}var La={num:"01 / Section",title:"Section *title*",description:"Short supporting line",linkText:qe.viewAll},KXe={label:"Section Header",drawsPictures:!0,defaultProps:{headStyle:Lg,num:La.num,numStyle:Vd,title:La.title,description:"",logoSrc:"",logoAlt:"",linkText:"",linkHref:""}};var Fg={eyebrow:"\u2014 Label",title:`Section headline
340
+ *Highlight line*`,body:"A sentence or two of supporting copy."},XXe={label:"Scroll-Over Text",drawsPictures:!0,defaultProps:{eyebrow:"",title:"",body:"",imageSrc:"",imageSrcMobile:"",heightDesktop:100,heightMobile:100,overlay:60,titleSizeDesktop:is,bodySizeDesktop:is,titleSizeMobile:is,bodySizeMobile:is,ctaText:"",ctaHref:"",buttonColor:"",buttonTextColor:"",stickTop:!0,[wr]:0,uppercase:!1}};var U$={top:72,bottom:72,topPhone:72,bottomPhone:72},jue={name:"Editorial Text",boxProps:e=>({...ee,direction:"column",gap:28,gapPhone:28,sectionBorder:{top:1},...le(e,U$)}),box:[["topBorder","sectionBorder",e=>e===!1?void 0:{top:1}],...ae,...Ie(U$)],parts:[or("Prose"),{kind:"text",key:"body",props:se,style:{textStyle:"body-1",...U("body",16),lineHeight:1.7,paragraphSpacing:18}}],drop:{...oe,...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)"}},z$={buttonPaddingTop:20,buttonPaddingBottom:20,buttonPaddingLeft:28,buttonPaddingRight:28},G$=(e,o)=>o?.variant==="primary",j$=(e,o)=>({kind:"list",key:"buttons",name:"Button",flat:!0,when:e,parts:[{kind:"button",key:"label",href:"href",when:G$,variant:"primary",style:{letterSpacing:.3},props:{...Fo,...z$,...o}},{kind:"button",key:"label",href:"href",when:(t,r)=>!G$(t,r),variant:"ghost",style:{letterSpacing:.3},props:{...Fo,...z$,...o}}]}),Bg=e=>ao(e.title),Kue={name:"Call-to-Action Heading",boxProps:e=>({...ee,direction:"row",align:"center",justify:Bg(e)?"between":"end",gap:60,gapPhone:60,share:"content",sectionBorder:{bottom:1},...er(e,"TitleWithButtons")}),box:[...ae,...In("TitleWithButtons")],parts:[{kind:"group",name:"Title",props:{...D,maxWidth:1e3,widthFitPhone:"fill"},parts:[{kind:"text",key:"title",role:"heading",props:j,style:{textStyle:"heading-1",...Tt("headingLarge",48,7,108),case:"upper",lineHeight:.94,letterSpacing:-.035},mark:"accentItalic"}]},{kind:"group",name:"Buttons",props:e=>({...D,gap:14,gapPhone:14,widthFitPhone:"fill",...Bg(e)?{minWidth:280,minWidthPhone:0}:{}}),parts:[j$(Bg,{widthFit:"fill",iconPosition:"end"}),j$(e=>!Bg(e),{})]}],drop:{...oe,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 Vue(e,o){let t=$l(o,{to:Ae(e.sectionPaddingUnit)}),r=$l(o,{view:"phone",to:Ae(e.sectionPaddingUnitPhone),maxPx:20});return{sectionPaddingLeft:t,sectionPaddingRight:t,sectionPaddingLeftPhone:r,sectionPaddingRightPhone:r}}var K$={top:40,bottom:64,topPhone:24,bottomPhone:36},Yue={name:"Section Header",boxProps:(e,o)=>({...ee,direction:"column",gap:0,...le(e,K$),...Vue(e,o)}),box:[...ae,...Ie(K$)],parts:[or("SectionHeader")],drop:{...oe,...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"}},V$={...D,direction:"row",share:[67],gap:32},Y$={...D,sectionPaddingLeft:24,sectionPaddingLeftPhone:0},q$=(e,o,t)=>({kind:"group",name:e,props:o,parts:[t]}),que={name:"Lead Text",boxProps:e=>({...ee,direction:"column",gap:40,gapPhone:40,sectionBorder:{bottom:1},...er(e,"ParagraphsA")}),box:[...ae,...In("ParagraphsA")],parts:[{kind:"group",name:"Numbers",props:{...V$,gapPhone:24,sectionBorder:{bottom:1},sectionPaddingBottom:40,sectionPaddingBottomPhone:40},parts:[{kind:"group",name:"Eyebrow",props:{...D,sectionPaddingTop:5,sectionPaddingBottom:1,sectionPaddingTopPhone:5,sectionPaddingBottomPhone:1},parts:[ye("eyebrow",{color:"labels",...U("label",12),letterSpacing:.24})]},q$("Stats column",D,{kind:"group",name:"Stats",props:{...Y$,gap:0,gapPhone:0},parts:[{kind:"list",key:"stats",name:"Stat",flat:!0,parts:[bf("value","label",{...U("label",13),letterSpacing:.18,lineHeight:1.8})]}]})]},{kind:"group",name:"Words",props:{...V$,gapPhone:28},parts:[{kind:"group",name:"Lead",props:D,parts:[{kind:"group",name:"Measure",props:{...D,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}}]}]},q$("Note column",{...D,justify:"end"},{kind:"group",name:"Founders",props:{...Y$,gap:8,gapPhone:8},parts:[{kind:"group",name:"Note",props:{...D,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}}]},ye("attribution",{...U("label",12,10),letterSpacing:.24,lineHeight:1.7})]})]}],drop:{...oe}},X$={top:24,bottom:24,topPhone:24,bottomPhone:24},Xue={name:"Banner",boxProps:e=>({...ee,direction:"column",gap:0,...le(e,X$)}),box:[...ae,"contained",...Ie(X$)],parts:[{kind:"group",name:"Card",keepEmpty:!0,props:{...D,gap:28,gapPhone:28,placement:"top-left",darken:60,darkenStyle:"even",sectionBorder:{width:1},...da("surface"),...Qo(64,40,40,24)},box:[["imageSrc","bgImage"],["overlay","darken",e=>Math.min(Math.max(V(e)??60,0),100)]],parts:[{kind:"group",name:"Words",props:{...D,gap:20,gapPhone:20},parts:[ye("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:Fo}]}],drop:{...oe,...ie}},ik={Prose:jue,TitleWithButtons:Kue,SectionHeader:Yue,ParagraphsA:que,Banner:Xue},Z$={Prose:()=>({eyebrow:Rg.eyebrow,title:Pr(Rg.title),body:Rg.body}),TitleWithButtons:()=>({title:Pr(N$.title),buttons:D$.map(e=>({...e}))}),SectionHeader:()=>({num:La.num,title:Pr(La.title),description:La.description,linkText:La.linkText,linkHref:po.href}),ParagraphsA:()=>({eyebrow:Df.eyebrow,lead:qe.body,foundersHeading:Df.foundersHeading,foundersBody:Df.foundersBody,attribution:Df.attribution}),Banner:()=>({...B$,ctaText:po.text,ctaHref:po.href}),ProcessSteps:()=>({num:La.num,title:Pr(La.title)}),IntroBleed:()=>({eyebrow:Fg.eyebrow,title:Pr(Fg.title),body:Fg.body,ctaText:po.text,ctaHref:po.href})};function Ng(){Eo(ik),Eo(oW),Eo(gW),Eo(j5),Eo(FW),Eo(YW),Eo(l3),Eo(f3),Eo(v3),Eo(F3),Eo(K3),Eo(n$),Eo(c$),Eo(m$),Eo(F$),Eo(C$),Eo(P$),Eo(R$)}var Zue=[{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=>W4(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=>U4(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})=>(Ng(),K4(e,gf,{theme:sO(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=>$M(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=>R2(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=>A2(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=>_2(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=>KM(e)},{name:"withPageContents",chrome:!1,why:"page-only: a Contents block lists the PAGE's anchored sections and numbers their kickers",run:e=>_N(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=>D2(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=>U2(e)}];function Jue(e,o,t){let r=e;for(let a of Zue)(!t||a.chrome)&&(r=a.run(r,o));return r}function J$(e,o){return Jue(e,{metadata:o},!1)}import{useRef as Que}from"react";import{createRenderKeep as eme}from"efficient-easel/render";function Q$(){let e=Que(null);return e.current??=eme(),e.current}import{isNode as ome,isNodeList as tme}from"efficient-easel/data";import{hidableText as rme,readHidable as ame}from"efficient-easel/draw";var o6="slotCounts",lk=e=>!ame(e).hidden&&rme(e).trim()!=="",nme=e=>typeof e=="string"&&e.trim()!=="",sme={Flex:()=>!0,PostCard:()=>!0,ImageBlock:e=>nme(e.src),Text:e=>lk(e.text),Heading:e=>lk(e.text),Eyebrow:e=>lk(e.eyebrow)},ime=["widthFit","width","minWidth"],e6=e=>tme(e);function lme(e){if(Array.isArray(e.content))return e6(e.content)?e.content:null;let o=Object.values(e).filter(e6);return o.length===1?o[0]:null}function cme(e,o){return[...new Set([JE,...Object.values($(S0,e)??{})])].some(t=>xt(o,t)!=="")}function dme(e){let o=e.props??{},t=$(sme,e.type);if(!t||!t(o)||cme(e.type,o)||ed(o))return!1;let r=o[Rl];if(r!=null&&r!=="")return!1;let a=Kx(o);return!ime.some(n=>a[n]!==void 0)}function fme(e){let o=0;for(let t of e)if(!ha(t.props??{})){if(!dme(t))return;o+=1}return o>0?o:void 0}function pme(e){let o={},t=new Set,r=new Set,a=(n,s)=>{if(Array.isArray(n))for(let i of n){if(!ome(i))continue;let l=i.props.id;typeof l=="string"&&(t.has(l)?r:t).add(l);let d=s?null:lme(i.props);if(typeof l=="string"&&d){let f=fme(d);f!==void 0&&(o[l]=f)}for(let f of Dr(i))a(i.props[f],s||Hn(i.type,f))}};a(e,!1);for(let n of r)delete o[n];return o}function t6(e,o){return{...e??{},[o6]:pme(o)}}function QZe(e){let o=e.editor?.metadata?.[o6],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 hme({config:e,data:o,metadata:t}){let r=J$(o,t),a=Q$(),n=HM(e,MM(r.content)),s=tx(r.content),i=s.length>0?{...t,[DM]:s}:t;return r6(rx,{children:r6(mme,{config:n,metadata:t6(i,r.content),keep:a,data:r})})}var a6=ume(hme);import{jsx as sr,Fragment as Ihe,jsxs as V6}from"react/jsx-runtime";import{jsx as xme,jsxs as gme}from"react/jsx-runtime";import{createContext as Ime,useContext as yme}from"react";var n6=Ime(!1);function pJe(){return yme(n6)}function s6({grayscale:e,children:o}){let t=e===!0;return gme(n6.Provider,{value:t,children:[Object.entries(n4(e)).map(([r,a])=>xme("style",{children:a},r)),o]})}import{jsx as bme}from"react/jsx-runtime";import{createContext as Sme,useContext as wme}from"react";var i6=Sme(null);function xJe(){return wme(i6)}function l6({ink:e,children:o}){return bme(i6.Provider,{value:e??null,children:o})}var c6="data-lead-ink",SJe="data-header-ink",Cme=["auto","light","dark"],vme="auto";function Tme(e){return e.type==="IntroBleed"?Eg(e.props?.layout)!=="stacked":!0}function d6(e){let o=$d(e);return o&&uM(e)&&Tme(o)?"light":null}function wJe(e){return Q(Cme,vme,e)}import{useEasel as yhe}from"efficient-easel/easel";import{useEffect as Dme}from"react";import{useEaselApi as Mme}from"efficient-easel/easel";import{find as kme,walk as f6}from"efficient-easel/data";var Pme=()=>"",Eme=e=>Hy(Mr([e],Pme));function m6(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(Eme))])),a=Hy(e);return Object.keys(r).find(n=>r[n].has(a))??null}var _me=()=>({press:[Ul(Dn),Ul(Pc)],delivery:[nT()]}),Ome={},ck=e=>m6(e,_me,Ome),Ame=e=>oo(e)===VE?"delivery":"press";function FJe(e,o){if(!o||oo(e)===oo(o))return e;let t=ck(e[ze]),r=Ame(e);if(!t||t===r)return e;let a=Ly(e,Ao),n=r==="delivery"?nT():Ul(oo(e)?Pc:Dn),s=Mr([n],By(a));return{...e,[ze]:s}}var Rme=()=>({cards:[bi(Dn),bi(Pc)],label:[Si(!1),Si(!0)]}),Lme={},Fme=e=>m6(e,Rme,Lme);function BJe(e,o){if(!o||e.cardStyle==="label-only"==(o.cardStyle==="label-only"))return e;let t=Fme(e[ze]),r=e.cardStyle==="label-only"?"label":"cards";if(!t||t===r)return e;let a=Ly(e,a0),n=Array.isArray(e.items)&&e.items.some(l=>Se(l?.href)!==void 0),s=r==="label"?Si(n):bi(oo(e)?Pc:Dn),i=Mr([s],By(a));return{...e,[ze]:i}}var p6=(e,o)=>aT.every(t=>JSON.stringify(e[t])===JSON.stringify(o[t]));function u6(e,o){let t={...e};for(let r of aT)delete t[r];return{...t,...structuredClone(o)}}function dk(e){let o=e?.[Me];if(!Array.isArray(o)||o.length!==1)return null;let t=o[0];return t?.type===Ao&&t.props?t:null}function Bme(e,o){let t=dk(e),r=dk(o);if(!t?.props||!r?.props||r.props.id!==t.props.id||oo(t.props)===oo(r.props))return e;let a=ck(t.props[ze]);if(!a||a===ck(r.props[ze]))return e;let n=V(e.columns);return n===void 0?e:a==="delivery"&&p6(e,$s(n))?u6(e,Jx(n)):a==="press"&&p6(e,Jx(n))?u6(e,$s(n)):e}function h6(e){let o=Dg.get(e);o?o.count+=1:Dg.set(e,{count:1,stop:Nme(e)});let t=!1;return()=>{let r=Dg.get(e);t||!r||(t=!0,r.count-=1,!(r.count>0)&&(r.stop(),Dg.delete(e)))}}var Dg=new WeakMap;function Nme(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;f6(t,e.config,n=>{if(n.type!==Y||!dk(n.props))return;let s=kme(r,e.config,n.props.id);if(!s||s.node===n)return;let i=Bme(n.props,s.node.props);i!==n.props&&a.set(n.props.id,i)}),a.size&&e.dispatch({type:"setData",recordHistory:!1,data:n=>f6(n,e.config,s=>{let i=a.get(s.props.id);return i?{...s,props:{...i,id:s.props.id}}:void 0})})})}function x6(){let e=Hme();Dme(()=>e?h6(e):void 0,[e])}function Hme(){try{return Mme()}catch{return null}}import{jsx as Mg}from"react/jsx-runtime";import{useEffect as Wme}from"react";import{armScrollProgress as $me}from"efficient-shell/format";function g6({armed:e,children:o}){return Wme(()=>e?$me():void 0,[e]),o}function fk(){return{style:{"--sf-page-width":Uo}}}function Ume({children:e}){return Mg("div",{style:fk().style,children:e})}function YJe({pageBackground:e,inheritBackground:o=!1,chrome:t=!1,children:r}){return Mg("div",{style:{...o?{}:am(e),background:"var(--bg)",minHeight:"100%",overflowX:"clip"},children:Mg(g6,{armed:!t,children:Mg(Ume,{children:r})})})}import{jsx as I6,Fragment as zme}from"react/jsx-runtime";import{createContext as Gme,useContext as jme}from"react";var y6=Gme({}),b6=y6.Provider;function JJe(e){let{SectionTextParts:o}=jme(y6);return o?I6(o,{...e}):I6(zme,{children:e.children})}import{jsx as dhe}from"react/jsx-runtime";import{useEffect as fhe,useRef as phe}from"react";var S6="data-easel-overlay-portal";function Hg(e){return e.setAttribute(S6,"true"),()=>{e.removeAttribute(S6)}}import{jsx as the}from"react/jsx-runtime";import{useEffect as rhe,useRef as N6}from"react";import{usePreviewParts as ahe}from"efficient-easel/draw/client";import{jsx as Kme}from"react/jsx-runtime";import{createContext as Vme,useContext as Yme,useMemo as qme,useState as Xme}from"react";var Zme={partStyle:null,setPartStyle:()=>{}},w6=Vme(Zme);function rQe({children:e}){let[o,t]=Xme(null),r=qme(()=>({partStyle:o,setPartStyle:t}),[o]);return Kme(w6.Provider,{value:r,children:e})}function Xl(){return Yme(w6)}import{usePreviewDevice as nhe}from"efficient-easel/draw/client";import{shownTier as she}from"efficient-easel/screen/lib/document/device-fields";import{decodePartId as D6,encodePartId as ihe}from"efficient-easel/draw";import{BLOCK_ATTRIBUTE as lhe}from"efficient-easel/canvas";import{createPreviewSelectionContext as Jme}from"efficient-easel/draw/client";var Ks="Scrolling Bar",{Provider:sQe,useSelection:C6}=Jme("selectedHeroId"),pk="data-sf-hero-ticker";function v6(e){return`${e}::ticker`}function T6(e){return!e||!e.endsWith("::ticker")?null:e.slice(0,-8)||null}import{BLOCK_ATTRIBUTE as Cn}from"efficient-easel/canvas";import{createPreviewSelectionContext as Qme}from"efficient-easel/draw/client";var{Provider:cQe,useSelection:k6}=Qme("selectedLocationPartId");function Wg(e,o,t){return`${e}::${o}::${t}`}function $g(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 mk="data-sf-part-label";function hk(e,o){return e.closest(`[${Cn}]`)?.getAttribute(Cn)===o}function P6(e,o,t){let r=e.querySelectorAll("*"),a=new Map(t.map(y=>[y.key,Ad(y.label)])),n=[],s=new Set;for(let y=0;y<r.length;y+=1){let v=r[y];if(!hk(v,o))continue;let L=v.getAttribute(xN);if(!L)continue;let O=a.get(L);n.push({element:v,partId:Zr(o,L),...O?{label:O}:{}}),s.add(v)}let i=[],l=new Set;for(let y=0;y<r.length;y+=1){let v=r[y];if(!hk(v,o)||s.has(v))continue;let L=dn(v.textContent??"");if(!L)continue;let O=v.closest(`[${zw}]`)?.getAttribute(zw)||null;O&&l.add(O.replace(/\[\d+\]$/u,"")),i.push({element:v,text:L,row:O})}let d=y=>i.filter(v=>v.row===hN(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(k=>k.texts);if(new Set(L).size===L.length)continue;let O=u(v[0]).filter(k=>L.includes(k.text));if(O.length!==v.length)continue;let N=[...v].sort((k,F)=>(k.row?.index??0)-(F.row?.index??0));for(let k=0;k<N.length;k+=1){let F=N[k],T=O[k].element,_={key:F.key,partKey:Xr(F.key,F.row),exact:!0},P=p.get(T);P?P.push(_):(p.set(T,[_]),m.push(T))}w.add(y)}let S=new Map;for(let y of t){if(w.has(h(y)??""))continue;let v=Xr(y.key,y.row);for(let L of y.texts)for(let O of u(y)){if(O.text!==L)continue;let N=S.get(O.element);N?N.add(v):S.set(O.element,new Set([v]))}}let C=(y,v)=>[...S].some(([L,O])=>L!==y&&!O.has(v)&&L.contains(y));for(let y of t){if(w.has(h(y)??""))continue;let v=Xr(y.key,y.row);for(let L of y.texts){let O=[],N=null;for(let T of u(y))T.text===L?C(T.element,v)||O.push(T.element):!O.length&&T.text.includes(L)&&(!N||T.text.length<=N.length)&&(N={element:T.element,length:T.text.length});let k=O.length?O:N?[N.element]:[],F=k.filter(T=>!k.some(_=>_!==T&&T.contains(_)));for(let T of F){let _={key:y.key,partKey:v,exact:O.length>0},P=p.get(T);P?P.push(_):(p.set(T,[_]),m.push(T))}}}let b=[...n];for(let y of m){let v=p.get(y)??[],L=v.some(O=>O.exact)?v.filter(O=>O.exact):v;if(new Set(L.map(O=>O.partKey)).size===1){let O=a.get(L[0].key);b.push({element:y,partId:Zr(o,L[0].partKey),...O?{label:O}:{}});continue}new Set(L.map(O=>O.key)).size===1&&b.push({element:y,partId:Zr(o,L[0].key)})}return b}function uk(e,o,t){let r=e.querySelectorAll(`[${fo}]`);for(let n=0;n<r.length;n+=1){let s=r[n];hk(s,o)&&(s.removeAttribute(fo),s.removeAttribute(mk))}let a=[];for(let{element:n,partId:s,label:i}of t)n.setAttribute(fo,s),i&&n.setAttribute(mk,i),a.push(n);return a}function O6(e,o,t,r,a,n=()=>null){let s=null,i=null,l=null,d=()=>{let f=t(),u=f?.getAttribute(Cn)??null;if(!f||!u)return!1;s=u;let p=P6(e,u,o);return a(f,u,uk(e,u,p)),l=n(()=>{let m=P6(e,u,o);ehe(p,m)||(p=m,a(f,u,uk(e,u,m)))}),!0};return d()||(i=r(()=>{(s||d())&&(i?.(),i=null)})),()=>{i?.(),i=null,l?.(),l=null,s&&uk(e,s,[])}}function ehe(e,o){return e.length===o.length&&e.every((t,r)=>t.element===o[r].element&&t.partId===o[r].partId)}function gQe(e,o){let t=e?.closest?.(`[${fo}],[${fn}]`),r=t?.getAttribute(fo)??t?.getAttribute(fn),a=r?Ed(r):null;if(t&&r&&a?.nodeId===o&&a.propKey)return{id:r,element:t,whole:_6(t,r),label:E6(t,r)};let n=e?.closest?.(R6.slice(2).map(i=>`[${i}]`).join(","));if(!n)return null;let s=n.closest?.(`[${Cn}]`)?.getAttribute(Cn)===o?L6(n,o):null;return s?{id:s,element:n,whole:_6(n,s),label:E6(n,s)}:null}function E6(e,o){let t=$g(o);if(t)return t.part==="map"?"Map":t.part==="city"?"City":"Image";let r=Lx(o);return r?Ra[r.part]:T6(o)?Ks:e.getAttribute(mk)??void 0}var A6="data-loc-pick",R6=[fo,fn,pf,pk,A6];function L6(e,o){let t=e.getAttribute(fo)??e.getAttribute(fn);if(t)return t;let r=e.getAttribute(pf);if(r)return Rs(o,r);if(e.getAttribute(pk)!==null)return v6(o);let a=e.getAttribute(A6)?.split(":");return a&&(a[1]==="image"||a[1]==="map"||a[1]==="city")&&/^\d+$/.test(a[0])?Wg(o,Number(a[0]),a[1]):null}function _6(e,o){let t=e.closest?.(`[${Cn}]`),r=t?.getAttribute(Cn);if(!t||!r)return!1;let a=new Set;for(let n of t.querySelectorAll(R6.map(s=>`[${s}]`).join(","))){if(n.closest?.(`[${Cn}]`)!==t)continue;let s=L6(n,r);s&&a.add(s)}return a.size===1&&a.has(o)}import{ENTRANCE_ATTR as F6,playEntrance as ohe}from"efficient-shell/format";var xk=new WeakMap;function B6(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=vO(f),p=r.get(d),m=p?kl.next(p,u,a):null;r.set(d,m?m.seen:kl.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=xx(d.element);f&&i.set(f,[...i.get(f)??[],d])}for(let[d,f]of i){let u=h=>Jd(o(h.partKey)??{}),p=_l(f.filter(h=>u(h).entrance));if(p){let h=o(p.partKey)??{};n.push(mx(d,Nc(h,a)));let I=xk.get(d);xk.set(d,p.partKey),(s.get(p.partKey)||I!==void 0&&I!==p.partKey)&&d.hasAttribute(F6)&&ohe(d)}else xk.delete(d);let m=d.hasAttribute(F6)?void 0:_l(f.filter(h=>_a(o(h.partKey)??{},a).effect!=="none"));m&&n.push(hx(d,_a(o(m.partKey)??{},a))),f.some(h=>u(h).hover==="lift")&&(gx(d.ownerDocument),d.setAttribute(Es,""),n.push(()=>d.removeAttribute(Es)))}return()=>n.forEach(d=>d())}function gk(e){let o=null,t=null;for(let r=e;r&&(o===null||t===null);r=r.parentElement){let a=r.getAttribute("class");o??=i_(a),t??=Yy(a)}return{faceRole:o??"body",sizeGroup:t}}function Ug(e,o={}){let t=e.style,r={};for(let i of zh)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=TD({fontSize:a.fontSize,fontWeight:a.fontWeight,lineHeight:a.lineHeight,letterSpacing:a.letterSpacing,textAlign:a.textAlign,textTransform:a.textTransform,paddingTop:a.paddingTop},kD(a.fontFamily,i=>n.getPropertyValue(i)));for(let i of zh)t[i]=r[i];return s}function M6({needles:e,styles:o,motions:t=ux,type:r,children:a}){let n=N6(null),{selectedPartId:s}=ahe(),{setPartStyle:i}=Xl(),l=she(nhe()),d=JSON.stringify(e),f=JSON.stringify(o),u=JSON.stringify(t),p=N6(new Map);return rhe(()=>{let m=n.current;if(!m)return;let h=[],I=()=>m.parentElement,w=O=>{let N=I();if(!N)return null;let k=new MutationObserver(O);return k.observe(N,{attributes:!0,attributeFilter:[lhe]}),()=>k.disconnect()},S=O=>{let N=new MutationObserver(O);return N.observe(m,{childList:!0,subtree:!0,characterData:!0}),()=>N.disconnect()},C=[];h.push(()=>{for(let O of C)O();C=[]});let b=JSON.parse(d),y=JSON.parse(f),v=JSON.parse(u),L=O6(m,b,I,w,(O,N,k)=>{for(let P of C)P();C=[];let F=[];for(let P of k){let A=P,W=Hg(A);W&&C.push(W),A.getAttribute(fo)===s&&F.push(A)}let T=PD(N,s,F,P=>l_(P)!==null||Yy(P)!==null);if(T&&s){let P=T,A=D6(s)?.propKey??"",W=Od(P)?{}:vD(AC(y,Ea(r,A)),l,{blockDrawsStyle:Md(r,A)});i({partId:s,...gk(P),base:Ug(P,W),inks:rm(P),...(()=>{let G=Od(P);return G?{styleOwner:G}:{}})()})}RC(k.filter(P=>!Od(P)).map(P=>({element:P,partId:P.getAttribute(fo)??""})),y,P=>Ug(P),P=>Ea(r,P),void 0,l,P=>Md(r,P));let _=[...m.querySelectorAll(`[${Gw}="${CSS.escape(N)}"][${_d}]`)];_.length&&RC(_.map(P=>({element:P,partId:ihe(N,P.getAttribute(_d)??"")})),y,void 0,P=>P,void 0,l),C.push(B6([...k.filter(P=>!Od(P)).map(P=>{let A=P,W=D6(A.getAttribute(fo)??"")?.propKey??"";return{element:A,partKey:Ea(r,W)}}),..._.map(P=>({element:P,partKey:P.getAttribute(_d)??""}))],P=>v[P],Ai(l),p.current))},S);return()=>{L();for(let O of h)O()}},[d,f,u,s,i,l,r]),the("div",{ref:n,[bv]:"",style:{display:"contents"},children:a})}import{shownTier as uhe}from"efficient-easel/screen/lib/document/device-fields";import{usePreviewDevice as mhe,usePreviewParts as hhe}from"efficient-easel/draw/client";var Mf={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)]"},che={tag:{label:"Tag",follows:"Labels",builtIn:Ci(Mf.tag),writable:!0},name:{label:"Name",follows:"Heading 2",builtIn:Ci(Mf.name),writable:!0},body:{label:"Body",follows:"Body",builtIn:Ci(Mf.body),writable:!0},price:{label:"Price",follows:"Labels",builtIn:Ci(Mf.price),writable:!0},link:{label:"Link",follows:"Labels",builtIn:Ci(Mf.link),writable:!0}},H6=che;var qQe=Mn,W6={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 $6={SpecTable:W6,FAQ:f0,Collections:H6,Contents:Pg};function U6(){return fi("efficient.section-text-regions",()=>new Map)}function reo(e){let o=U6();for(let[t,r]of Object.entries(e)){if(We($6,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 Zl(e){return e?$($6,e)??U6().get(e)??null:null}function z6({nodeId:e,sectionType:o,partStyles:t,children:r}){let a=phe(null),{selectedPartId:n}=hhe(),{setPartStyle:s}=Xl(),i=uhe(mhe()),l=JSON.stringify(t??null);return fhe(()=>{let d=a.current,f=Zl(o);if(!d||!e||!f)return;let u=[],p=Array.from(d.querySelectorAll(`[${Mn}]`));for(let m of p){let h=Dy(f,m.getAttribute(Mn));if(!h)continue;let I=Hg(m);I&&u.push(I);let w=Oc(h),S=Zr(e,w);m.setAttribute(fn,S);let C=t?.[w];if(f[h].sized&&LC(C)){let b=FC(C,i),y={fontFamily:m.style.fontFamily,fontSize:m.style.fontSize},v=m.getAttribute(kr);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},O=C?.textStyle;va(O)&&m.setAttribute(kr,O),u.push(()=>{OD(m.style,y,L),v===null?m.removeAttribute(kr):m.setAttribute(kr,v)})}if(S===n){let b=Ug(m,_D(C,f[h],i));s({partId:S,...gk(m),base:b})}}return()=>{for(let m of u)m();for(let m of p)m.removeAttribute(fn)}},[e,o,n,s,i,l]),dhe("div",{ref:a,style:{display:"contents"},children:r})}import{jsx as Ik,Fragment as G6}from"react/jsx-runtime";import{createContext as xhe,useContext as j6,useMemo as ghe}from"react";var yk=xhe(null),K6=e=>e==null||e===""?void 0:String(e);function bk({content:e,children:o}){let t=ghe(()=>Qw(e),[e]);return Ik(yk.Provider,{value:t,children:o})}function beo({id:e,children:o}){let t=j6(yk),r=K6(e);return Ik(G6,{children:o(r?t?.entries.get(r):void 0)})}function Seo({id:e,children:o}){let t=j6(yk),r=K6(e);return Ik(G6,{children:o(r?t?.numbers.get(r):void 0)})}var bhe={SectionTextParts:z6},She="color-mix(in oklab, var(--bg) 40%, #ffffff)",whe="12vh";function Che({style:e,children:o}){let{appState:t}=yhe(p=>p),r=t.data.content,a=t.data.root;if(mM(r))return sr("div",{className:"sf-themed-content",style:{...e,background:She,minHeight:"100vh",paddingBottom:whe},children:sr("div",{style:{background:"var(--bg)"},children:sr(bk,{content:r,children:o})})});let n=YC(r)&&XC(a,r),s=YC(r)?xM(a,r):null,i=s?{[hM]:s}:null,l=KL(a?.widthChoice),d=l?{[jL]:l}:null,f=n?null:d6(r),u=f?{[c6]:f}:null;return sr("div",{className:`sf-themed-content${n?` ${dM}`:""}`,style:e,...u,...i,...d,children:sr("div",{style:{background:"var(--bg)",minHeight:"100%"},children:sr(bk,{content:r,children:o})})})}function Ueo({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 x6(),sr(Sk,{propsTheme:e,propsFonts:o,propsCornerStyle:t,propsCornerRadiusPx:r,propsHeadingCompression:a,propsHeadingTypography:n,pageBackground:s,chromeInheritsSiteBackground:i,onClickCapture:l,body:p=>V6(Ihe,{children:[sr(Che,{style:p,children:u}),d,f]})})}function Sk({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:O,siteLengthUnits:N,headingTypography:k,heroBackgroundFollowsWidth:F,photographyGrayscale:T,textStyles:_,wordStyles:P,themeFromDocument:A}=pe(),W=A?e:f,G=A?o:u,Z=A?void 0:p,X=A?r===void 0?du[cu(t)]:Ht(r):m,ce=A?{}:N,fe=A?a:C,te=A?n:k,Te=[KD(WD(A?void 0:_)),VD(fu(te).italicStrong)].filter(Boolean).join(`
341
+ `),ve=fk(),Re={...D0(W),...V0(Z),...aO(te),...ve.style,...i?{}:am(s)};return V6("div",{className:`sf-theme-surfaces sf-theme-accent ${[zL(A?void 0:v),MF(A?void 0:O)].filter(Boolean).join(" ")}`.trim(),style:{...c_(G),...p_(A?null:P),...M0(W),...H0(W),...$0(W),...lu(W),...q0(X,ce.cornerRadiusUnit),...oO(A?void 0:h,A?void 0:I,A?void 0:S),...BL(A?void 0:b,ce.siteWidthUnit),...WL(A?void 0:y,ce.siteGutterUnit),...UL(A?void 0:v,ce.siteGutterPhoneUnit),...NF(A?void 0:L,ce.blockGapUnit),...DF(A?void 0:O,ce.blockGapPhoneUnit),...Bm(A?void 0:F)},"data-sf-headings":tO(fe),"data-sf-card-shadow":A?void 0:J0(h),"data-sf-card-gap":A?void 0:Q0(w),"data-sf-card-hover":A?void 0:eO(S),onClickCapture:l,children:[Te?sr("style",{"data-sf-text-styles":"",dangerouslySetInnerHTML:{__html:Te}}):null,sr(s6,{grayscale:A?void 0:T,children:sr(b6,{value:bhe,children:sr(l6,{ink:B0(W),children:d(Re)})})})]})}var Y6=e=>{e.target?.closest?.("a")&&e.preventDefault()};var zg=[{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"]}],Jl="all",Gg="template";function q6(e){for(let o=0;o<zg.length;o++){let t=zg[o].slugs.indexOf(e);if(t>=0)return o*100+t}return Number.MAX_SAFE_INTEGER}function X6(e){return e.map((o,t)=>({s:o,i:t})).filter(({s:o})=>o.source==="library").sort((o,t)=>q6(o.s.slug)-q6(t.s.slug)||o.i-t.i).map(({s:o})=>o)}function wk(e){return e.filter(o=>o.source==="template")}function Z6(e){let o=new Set(X6(e).map(t=>t.slug));return zg.filter(t=>t.slugs.some(r=>o.has(r)))}function J6(e,o){if(e===Gg)return wk(o);let t=X6(o);if(e===Jl)return t;let r=zg.find(a=>a.key===e);return r?t.filter(a=>r.slugs.includes(a.slug)):[]}function Q6(e){let o=e.content;return Array.isArray(o)&&o.length>0?o[0]:null}var Ahe=1440,Rhe=1080;function oU({starter:e,config:o,metadata:t,busy:r,onAdd:a}){let{mirrorHostStyles:n}=Hc(),[s,i]=The(null),l=vhe(()=>{let d=Q6(e.layout),f=e.layout.zones;return{root:{props:{}},content:d?[d]:[],zones:f??{}}},[e.layout]);return eU("div",{className:"sf-starter",children:[eU(Ehe,{padding:"none",className:"sf-starter-picture",children:[_r("div",{inert:!0,className:"sf-starter-frame",children:_r(_he,{width:Ahe,height:Rhe,children:_r(khe,{id:`page-starter-${e.id}`,title:e.title,mirrorStyles:n,onDocument:i,height:"fill",children:_r(ox,{document:s??void 0,children:_r(Sk,{onClickCapture:Y6,body:d=>_r("div",{className:"sf-themed-content",style:d,children:_r("div",{style:{background:"var(--bg)"},children:_r(a6,{config:o,data:l,metadata:t})})})})})})})}),_r("div",{className:"sf-starter-add",children:_r(Phe,{onClick:()=>a(e),loading:r,"aria-label":c("Add \u201C{name}\u201D",{name:e.title}),children:c("Add page")})})]}),_r(Ohe,{size:"sm",children:e.title})]})}import{useMemo as $be}from"react";import{sessionRegistry as Ube}from"efficient-easel/screen/lib/session";import{useEaselSession as zbe}from"efficient-easel/screen/lib/session-context";import{currentEaselSession as Lhe}from"efficient-easel/screen/lib/session";var Fhe={general:!0,commerce:!0,service:!0};function Ck(e){let o=e?.sets;return o?Object.fromEntries(QE.map(t=>[t,o.includes(t)])):Fhe}function vk(e=Lhe()){return Ck(e.blocks)}import{currentEaselSession as mU}from"efficient-easel/screen/lib/session";import{SITE_SIDE as aU}from"efficient-easel/screen/lib/content/length-units";var tU=[{text:"Ticker item"},{text:"Ticker item"},{text:"Ticker item"},{text:"Ticker item"}],ioo={label:"Scrolling Bar",defaultProps:{items:[],tone:"scrim",borders:!0,size:G_,separator:j_,scrollDirection:Af}};var rU=()=>[{text:c("Spec label"),tone:"normal"},{text:c("Spec value"),tone:"muted"},{text:c("Spec label"),tone:"normal"},{text:c("Spec value"),tone:"muted"}],doo={label:"Spec Strip",defaultProps:{cells:[{text:"",tone:"normal"},{text:"",tone:"normal"}],fill:"dark"}};function Vo(e,o,t,r={}){return{type:e,props:{...o(e),id:t(e),...r}}}function nU(e,o,t){return Vo(Y,e,o,{...t,sectionPaddingTop:void 0,sectionPaddingBottom:void 0})}var jg={Manifesto:(e,o)=>({type:Y,props:{...e(Y),id:o(Y),direction:"row",share:"equal",sectionHeightMode:"screen",name:"Brand Text",content:[Vo(Y,e,o,{direction:"column",justify:"center",blockSpacing:"gap",name:"Text",sectionPaddingTop:100,sectionPaddingBottom:100,sectionPaddingLeft:aU,sectionPaddingRight:aU,content:[Vo("Text",e,o,fa()),Vo("Text",e,o,Wa()),Vo("Text",e,o),Vo("Stats",e,o)]}),nU(e,o,{direction:"column",name:"Picture",content:[]})]}}),Split:(e,o)=>({type:Y,props:{...e(Y),id:o(Y),direction:"row",share:"equal",sectionHeightMode:"screen",sectionHeightValue:70,name:"Image & Text Split",content:[Vo(Y,e,o,{direction:"column",justify:"center",blockSpacing:"gap",name:"Text",sectionPaddingTop:100,sectionPaddingBottom:100,sectionPaddingLeft:60,sectionPaddingRight:60,content:[Vo("Text",e,o,fa()),Vo("Text",e,o,Wa()),Vo("Text",e,o),Vo("ButtonBlock",e,o)]}),nU(e,o,{direction:"column",name:"Image",content:[Vo("ImageBlock",e,o)]})]}}),Subscribe:(e,o)=>({type:Y,props:{...e(Y),id:o(Y),direction:"column",name:"Subscribe",content:[Vo("Text",e,o,Wa()),Vo("Text",e,o),Vo("Form",e,o)]}}),Ticker:(e,o)=>sU("Scrolling Bar",Ig,Rf,tU.map(t=>({text:t.text,style:yg,muted:!0})),e,o),SpecStrip:(e,o,t)=>sU("Spec Strip",t?.theme?{...Ff,sectionAccent:iu(ko(t.theme))}:{...Ff,sectionBorder:{top:1}},Lf,rU().map(r=>({text:r.text??"",style:Bf,muted:r.tone==="muted"})),e,o)};function sU(e,o,t,r,a,n){return Vo(Y,a,n,{...Gs,...o,blockSpacing:"gap",padV2:!0,name:e,sectionPaddingTop:t.top,sectionPaddingBottom:t.bottom,sectionPaddingTopPhone:t.topPhone,sectionPaddingBottomPhone:t.bottomPhone,content:r.map(s=>Vo("Text",a,n,{text:s.text,...s.muted?{tone:"dim"}:{},_partStyles:{text:s.style}}))})}function iU(e){return $(jg,e)??null}import{isNodeList as Tk}from"efficient-easel/data";var Boo=Object.keys(ik),Bhe={Logos:IW,DocMasthead:S3,DocTabs:A3,Timeline:KW,TimelineTrack:VW},Nhe={PaymentBadges:yW,PaymentLogosBlock:bW,Integrations:E$};function Kg(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]=Tk(n)?n.map(s=>Kg(s,o,t)):n;return r.id=t(e.type),{type:e.type,props:r}}var lU=e=>({...e?.theme?{theme:e.theme}:{},...e?.site?{site:e.site}:{},press:!0});function Hf(e,o,t=0,r=()=>({})){return(a,n,s)=>{let{nodes:i}=Ns({type:e,props:{...a(e),...r(),id:n(e)}},o,lU(s));return Kg(i[t],a,n)}}var Dhe={Stats:Hhe,Cards:Mhe};function Mhe(){let e=xn("Cards");if(!e)return null;let o=Hf("Cards",e,0,G5);return(t,r,a)=>{let n=o(t,r,a);return{...n,props:{...n.props,name:"Cards section"}}}}function Hhe(){let e=xn("StatsParagraph");return e?(o,t,r)=>{let{nodes:a}=Ns({type:"StatsParagraph",props:{...o("StatsParagraph"),...tW(),id:t("StatsParagraph")}},e,lU(r)),n=a[0],s=Tk(n.props.content)?n.props.content.filter(f=>f.props?.cardStyle===void 0):[],i=dU(ST(rW(),"table")),l=s.map(cU),d=Kg({...n,props:{...n.props,content:[...l,i]}},o,t);return{...d,props:{...d.props,name:"Stats section"}}}:null}function cU(e){return e.props?.name==="Words"?{...e,props:{...e.props,widthFitPhone:"fill"}}:Tk(e.props?.content)?{...e,props:{...e.props,content:e.props.content.map(cU)}}:e}var dU=e=>Mr([e],(o,t)=>`${o}-seed-${t}`)[0];function Whe(e,o){if(!j4(e,o))return null;let t=$(Dhe,e);if(t)return t();let r=xn(e);return r?Hf(e,r,0,$(Bhe,e)??$(Z$,e)??$(Nhe,e)):null}function $he(e){return(o,t,r)=>{let a=n=>{if(n.type==="Stats"){let i=Kg(dU(ST([],"list")),o,t);return{...i,props:{...i.props,name:"Numbers"}}}let s=go(n,i=>io(i,a));return s===n?n:{type:n.type,props:s.props}};return a(e(o,t,r))}}function Ql(e,o=Bs){let t=iU(e);return t?$he(t):Whe(e,o)}import{blockTypesIn as fU}from"efficient-easel/screen/lib/document/block-types-in";var pU=()=>({}),uU=new Map;function Uhe(e){let o=uU.get(e);if(o)return o;let t=new Set,r=$(Qt,e);if(r)for(let s of r.seeds(pU))for(let i of fU({type:r.childType,props:s}))t.add(i);let a=Ql(e);if(a){let s=0;for(let i of fU(a(pU,l=>`${l}-${s+=1}`)))t.add(i)}t.delete(e);let n=[...t].sort();return uU.set(e,n),n}function kk(e){if(!e||!e.sets&&!e.allow&&!e.deny?.length)return null;let o=Ck(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=r_(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 zhe="block-offer";function Pk(e=mU()){return e.cache(zhe,()=>kk(Vi(e)))}function hU(e,o=mU()){let t=Pk(o);return t?t.offers(e):!0}var xU={name:"catalogueLabel",applies:e=>We(Ln,e),draw(e,o){e.label=$(Ln,o)}};import{jsx as Rk}from"react/jsx-runtime";import{parseBlockWidthFit as Yhe,phoneKey as Or,tabletKey as ir}from"efficient-easel/draw";import{jsx as Ghe}from"react/jsx-runtime";import{phoneKey as Vg}from"efficient-easel/draw";var gU={name:"sectionGroupAllow",applies:e=>Nu.includes(e),panel(e,o,t,r){let a=e.fields?.sections;a&&(a.allow=[...r.sectionGroupAllow])}},Ek=new Set(Object.keys(mr)),IU={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=>!Ek.has(l)):a;s.disallow=Array.from(new Set([...s.disallow??[],...i]))}}};var bU=Array.from(new Set([...n_.map(e=>e.type),...Ek]));function _k(e,o){return bU.includes(e)||o?.sitsInBox===!0}var jhe=Array.from(new Set([...bU,...Rp,"GalleryItem"])),Khe={not:{context:"parentOffersPositions",is:!1}},Vhe={not:{context:"parentTileSlot",is:!1}},yU=[$i,Vg("gridSpan"),Vg("gridRowSpan")],SU={name:"cellWidth",applies:(e,o,t)=>(jhe.includes(e)||_k(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=st(e.fields??{},a.filter(n=>!yU.includes(n)),Khe),e.fields=st(e.fields??{},yU,Vhe)},draw(e){let o=e.render;e.render=t=>{let r=_A(t.gridSpan),a=Wb(t.gridRowSpan),n=RA(t[$i]),s=FA(t[Vg("gridSpan")]),i=BA(t[Vg("gridRowSpan")]),l=o(t);if(r==null&&a==null&&n==null&&s==null&&i==null)return l;let d={};r!=null&&(d[OA]=String(r)),a!=null&&(d[AA]=String(a)),s!=null&&(d[NA]=String(s)),i!=null&&(d[DA]=String(i));let f=n!=null?{[LA]:n}:void 0;return Ghe(he,{className:"sf-grid-cell",style:f,...d,children:l})}}};function wU(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 Wf={not:{context:"heldByANode",is:!0}};function Yg(e,o){return"parent"in o?o.parent!=null:!!ra(o.appState,e.props?.id)}function ra(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 ui(s??{})){let l=r(i,s);if(l!==void 0)return l}}};return r(t,null)}var qhe=new Set(["Text","Heading"]),Xhe=new Set(["h1","h2","h3","h4","h5","h6"]);function CU(e,o){return e==="Heading"?!0:e!=="Text"?!1:typeof o.tag=="string"&&Xhe.has(o.tag)?!0:Ta(o,"text").textStyle?.startsWith("heading-")===!0}var vn={not:{context:"blockOutsideBox",is:!0}},vU={all:[vn,{not:{context:"boxSharesWidth",is:!0}}]},TU={all:[vn,{not:{context:"boxSharesWidthPhone",is:!0}}]},kU={all:[vn,{not:{context:"boxSharesWidthTablet",is:!0}}]};function OU(e,o,t){return{any:[{field:ir(e),is:o},{all:[{field:ir(e),set:!1},t??{field:e,is:o}]}]}}function AU(e,o,t){return{any:[{field:Or(e),is:o},{all:[{field:Or(e),set:!1},t??{field:e,is:o}]}]}}var RU={any:[{field:"textFit",is:"shrink"},{all:[{field:"textFit",set:!1},{not:{context:"textWrapsByDefault",is:!0}}]}]},Zhe=[[["_gBlockSize","minWidth",ir("minWidth"),Or("minWidth"),"maxWidth",ir("maxWidth"),Or("maxWidth")],vn],[["widthFit"],vU],[[ir("widthFit")],kU],[[Or("widthFit")],TU],[["width"],{all:[vU,{field:"widthFit",is:"fixed"}]}],[[ir("width")],{all:[kU,OU("widthFit","fixed")]}],[[Or("width")],{all:[TU,AU("widthFit","fixed")]}]],PU=OU("textFit","shrink",RU),EU=[[["_gText","textFit",ir("textFit"),Or("textFit")],vn],[["minFont"],{all:[vn,RU]}],[[ir("minFont")],{all:[vn,PU]}],[[Or("minFont")],{all:[vn,AU("textFit","shrink",PU)]}]],qg=(e,o)=>ra(o.appState,e.props?.id),Xg=e=>!!e&&typeof e.type=="string"&&Lp(e.type)!==null,Ok=e=>(e.type==="Flex"||e.type==="HeroGroup")&&Yr(e.type,e.props?.direction)==="row",Ak=e=>{let o=Yhe(e);return o!==void 0&&o!=="fit"},Jhe={blockOutsideBox:(e,o)=>!Xg(qg(e,o)),boxSharesWidth:(e,o)=>{let t=qg(e,o);return!Xg(t)||!Ok(t)?!1:Oy({...t.props,direction:"row"})!==""?!0:Py(t.props?.share)!==""&&!Ak(e.props?.widthFit)},boxSharesWidthTablet:(e,o)=>{let t=qg(e,o);if(!Xg(t)||!Ok(t))return!1;if(Q_(t.props?.[ir("columns")])!==""||Oy({...t.props,direction:"row"})!=="")return!0;let r=Y_(t.props?.[ir("share")])??t.props?.share;return Py(r)!==""&&!Ak(e.props?.[ir("widthFit")]??e.props?.widthFit)},boxSharesWidthPhone:(e,o)=>{let t=qg(e,o);if(!Xg(t)||!Ok(t))return!1;let r=t.props?.phoneRow;return(Number(r)===2||Number(r)===3)&&!e0(r,t.props?.[Or("share")])&&!Ak(e.props?.[Or("widthFit")]??e.props?.widthFit)}},Qhe=e=>/^_[gds][A-Z]/.test(e);function exe(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&&!Qhe(r[n][0]);)n++;return Object.fromEntries([...r.slice(0,n),...Object.entries(t),...r.slice(n)])}function _U(e,o,t){let r=Object.entries(e);return Object.fromEntries([...r.slice(0,o),...Object.entries(t),...r.slice(o)])}function oxe(e,o,t){let r=Object.keys(o);if(r.includes("_dSize")){let{_gBlockSize:a,...n}=t;return _U(o,r.indexOf("_dSize")+1,n)}return txe.has(e)&&r.includes("_gSpacing")?_U(o,r.indexOf("_gSpacing"),t):{...o,...t}}var txe=new Set(["Text","Heading"]);function rxe(e,o){let{_gText:t,...r}=o;return exe(e,"_gText",r)??{...e,...o}}function axe(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",ir("textFit"),Or("textFit")])a in r&&(r[a]=e[a]);o.set(t,r)}return r}}var LU={name:"blockSize",applies:(e,o,t)=>_k(e,t)&&!!t&&typeof t.render=="function",panel(e,o,t){let r=qhe.has(o),{text:a}=t.blockSizeFields(r?{tablet:!0,textFit:o==="Heading"?"shrink":"wrap"}:{}),{size:n}=t.blockSizeFields({tablet:!0}),s=oxe(o,e.fields??{},Et(n,Zhe));if(r){let i=Et(a,EU);if(s=rxe(s,i),o==="Text"){let l=Et(t.blockSizeFields({tablet:!0,textFit:"shrink"}).text,EU),d=axe(l),f=e.resolveFields,u=(p,m)=>{let h=f?f(p,m):m.fields,I=w=>CU(o,p?.props??{})?d(w??m.fields):w;return h instanceof Promise?h.then(I):I(h)};e.resolveFields=u}}e.fields=s,Hr(e,{...Jhe,textWrapsByDefault:i=>!CU(o,i.props??{})})},draw(e,o){nxe(e,o)}};function nxe(e,o){let t=e.render;e.render=r=>{let a=Kx(r),n=eT(a),s=t(r),i=n&&eT(a,{atSectionLine:!0});return n===null?s:Rk(sxe,{size:n,sectionSize:i??n,atEdge:o===Y,canvasAttrs:r.editor?.isEditing?s5(a):FU,inCell:n5(a),fillsPhone:t5(a),widens:i5(a),children:s})}}var FU={};function sxe({size:e,sectionSize:o,atEdge:t,canvasAttrs:r,inCell:a,fillsPhone:n,widens:s,children:i}){let l=bu(),d=Ga(t?"edge":"by-box"),f=d?e:o,u=f.className,p=l?.phoneCells===!0,m=n&&l?.phoneRowFits===!0,h=s?Rk(QH,{children:i}):i;return Rk(ja,{className:[u,p?a:"",m?o5:""].filter(Boolean).join(" "),...Object.keys(f.style).length?{style:f.style}:{},attrs:d&&r!==FU?{...f.attrs,...r}:f.attrs,children:h})}import{Fragment as Ixe,jsx as eI}from"react/jsx-runtime";import{jsx as at,Fragment as Nk}from"react/jsx-runtime";import{createContext as ec,useContext as Ar}from"react";var ixe=new Set(["Flex","Grid"]);function Tn(e){return typeof e=="string"&&ixe.has(e)}var Vs="contentWidth",Lk="full",Fk="content";function Uf(e){let o=e?.[Vs];return o===Lk?!1:o===Fk?!0:void 0}function BU(e,o){return e&&!o}function Zg(e){return e.loop==="scroll"&&e.direction!=="tabs"&&e.direction!=="accordion"&&!cR(e)&&!vW(e.scrollDirection)}function $f(e,o){return Tn(e)&&Zg(Qc(o,!1))?cs({}):cs(o)}function Jg(e,o){return typeof e!="string"||!Xm(e)||al[e]==="rawMarkup"?$f(e,o).background??"full":$f(e,o).background??Zm(o).background}function Qg(e){return e!=="full"}function NU(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=Tn(d?.type),p=(i?$f(d?.type,f).content:null)==="content"?!0:s,m=u&&(n.inBox?Uf(f)??p:p),h={insideGutter:n.insideGutter||m||u&&Zg(Qc(f,l)),inBox:n.inBox||u};for(let I of Dr({type:d?.type,props:f})){let w=f[I],S=r(w,h,p,!1,l||Hn(d?.type,I));if(S!==void 0)return S}}};return r(e,{insideGutter:!1,inBox:!1},t,!0,!1)}var lxe=" [--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))))]",cxe="[--sf-edge-g:0px] [--sf-edge-al:var(--sf-edge-l)] [--sf-edge-ar:var(--sf-edge-r)]",dxe="[--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)))]",DU="max-w-[100vw]",fxe=`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))] ${DU}`;function MU(e){let o={},t=e.pad??{},r=dd({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=en(e.site?"site":"box"),s=r.classes.includes(n.className.split(" ")[0]);return{className:`${e.gutter?`${n.className} ${n.edge}${lxe}`:`${cxe}${s?` ${n.className}`:""}`} ${dxe}`,style:o}}function Ato(e){let{className:o,style:t}=MU(e);return{className:`${o} ${fxe}`,...Object.keys(t).length?{style:t}:{}}}var pxe="[--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 uxe="--sf-edge-beyond";function HU(e){return`max(0px,calc((${e===null?id:`min(${id},${e})`} - ${Uo}) / 2))`}var mxe=`${pxe} 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))] ${DU}`;function Rto(e){let{className:o,style:t}=MU(e);return{className:`${o} ${mxe}`,style:{...t,[uxe]:e.beyond??"0px"}}}var zf=ec(!1);function Uto(){return Ar(zf)}function zto({children:e}){return at(zf.Provider,{value:!0,children:e})}var Bk=ec(!1);function Dk({children:e}){return at(Bk.Provider,{value:!0,children:e})}var WU=ec(null);function Mk({ground:e,children:o}){return at(WU.Provider,{value:e,children:o})}var Hk=ec(!1);function hxe(){return Ar(Hk)}function $U({atTop:e,nested:o}){return at(Nk,{children:hxe()?o:e})}var Gf=ec(void 0);function UU({children:e}){return at(Gf.Provider,{value:null,children:e})}function Wk(){return Ar(Gf)===void 0&&!Ar(Hk)&&!Ar(zf)}function oc({own:e,followed:o}){return at(Nk,{children:Wk()?e():o()})}var zU=ec(null);function GU({value:e,children:o}){return at(zU.Provider,{value:e,children:o})}function jU({draw:e}){return at(Nk,{children:e(Ar(zU))})}function Gto(){return Ar(Gf)??null}function KU({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=Ar(zf),C=Ar(Bk),b=BU(e,S),y=b&&!C,v=Wt(),L=!!(i&&y),O=L?p:et(p??"",v.className)||void 0,N=L||!v.className?l:{...l,...v.attrs},k=s?sF(s,y):null,F=k?.root??null,T=i&&!y?i:null,_=d&&!m?ML:null,P=[y?o:t,y?_:null,F?.className,T?TF:null].filter(Boolean).join(" "),A=xxe(m&&y,F||T?{...a,...F?.style,...T}:a),W=Ar(Gf),G=Ar(WU),Z=d&&f&&W===void 0?{gutter:b,...s?{pad:s.values}:{},beyond:b&&C?HU(G):"0px",...h&&b?{site:!0}:{}}:null,X=d?at(Hk.Provider,{value:!0,children:at(Gf.Provider,{value:Z,children:w})}):w,ce=b?at(zf.Provider,{value:!0,children:X}):X,fe=k?.outer??null,te=N&&Object.keys(N).length>0?N:null,Te=at("div",{...fe?null:te,className:!fe&&O?P?`${P} ${O}`:O:P,style:fe||!u?A:{...A,...u},"data-tab-label":n,...fe?null:I,children:C?at(Bk.Provider,{value:!1,children:b&&!m?at("div",{className:_?`${r} ${_}`:r,children:ce}):ce}):ce}),ve=fe?at("div",{...te,className:O?`${fe.className} ${O}`:fe.className,style:u?{...fe.style,...u}:fe.style,...I,children:Te}):Te;return v.scope(i&&y?at("div",{className:et(zm,v.className),style:{display:"contents",...i},...v.attrs,children:ve}):ve)}function xxe(e,o){return e?{...o,paddingLeft:0,paddingRight:0}:o}import{jsx as gxe}from"react/jsx-runtime";function VU({children:e}){return gxe(he,{className:kW,children:e})}function yxe({side:e,children:o}){return Wk()?eI(VU,{children:eI(he,{className:PW(e),children:o})}):eI(Ixe,{children:o})}var YU={name:"boxJoin",applies:(e,o,t)=>e===Y&&!!t&&typeof t.render=="function",draw(e){let o=e.render;e.render=t=>{let r=gg(t.join);return r?eI(yxe,{side:r,children:o(t)}):o(t)}}};var qU=(e,o)=>e.fields?.[o]?.type==="slot",bxe=(e,o)=>qU(o,ze)||ou(e).some(t=>qU(o,t)),XU={name:"cardTemplateOnInsert",applies:(e,o,t)=>bxe(e,t),panel(e,o){let t=e.resolveData;e.resolveData=(r,a)=>{let n=r.props??{},s=a?.trigger,i=s==="insert"?Zp(o,n):s==="copy"?Xp(o,n):n,l=i===n?r:{...r,props:i};return t?t(l,a):l}}};import{jsx as rI}from"react/jsx-runtime";import{Fragment as Ys,jsx as no,jsxs as $k}from"react/jsx-runtime";import{createContext as Uk,useContext as kn,useId as kxe}from"react";import{REPEAT_ATTRIBUTE as Pxe,REPEAT_INDEX_ATTRIBUTE as Exe}from"efficient-easel/draw";import{jsx as cro}from"react/jsx-runtime";import{createContext as Cxe,useContext as ez,useMemo as vxe}from"react";var ZU="title";function JU(e){return`${e}Alt`}function Sxe(e){let o=e.find(t=>typeof t?.url=="string");return{url:o?.url??"",alt:typeof o?.alt=="string"?o.alt:""}}function QU(e,o){let t={[ZU]: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}=Sxe(n);t[r]=s,t[JU(r)]=i}}return t}function wxe(e,o){return typeof o!="string"?o.flatMap(t=>wxe(e,t)):e===Ut||!Pb(e)?[]:o==="image"?Ob(e,["images"]).map(t=>({key:t.key,label:t.label,kind:"image",alt:JU(t.key)})):o!=="text"?[]:[{key:ZU,label:c("Title")},...Ob(e,["text","date"]).map(t=>({key:t.key,label:t.label}))]}var oz=Cxe(null);function Txe(){return ez(oz)?.record??null}function uro(e){let o=Txe();return o!==null&&o.type===e?o:null}function tz(){let e=ez(oz);return vxe(()=>e&&e.record.type!==Ut?QU(e.record,e.dateWords):null,[e])}function kro({props:e,editing:o,children:t}){let r=kn(jf);return!o&&Uy(e,r?.row)?null:no(Ys,{children:t})}var tI=Uk(null);function Pro({field:e,children:o}){let t=kn(tI);return no(Ys,{children:o(t&&t.field===e?t.id:void 0)})}function _xe(e,o){return e?.find(t=>!!o[t.field]?.trim()&&!t.gates.some(r=>Uy({[pi]:r},o)))?.field??""}var jf=Uk(null),oI=Uk(null),Oxe={label:"text-[length:var(--size-label,12px)]"},Axe=`flex min-h-6 items-center border border-dashed border-line px-2 py-1 ${Oxe.label} text-fg-dim`;function Ero({name:e,label:o,editing:t}){let r=kn(oI)?.(e),a=Cu()!=="";return r!=null&&r!==!1?a?no(he,{className:"contents",children:r}):no(Ys,{children:r}):t?no(he,{className:Axe,children:c("Shown by the section: {name}",{name:o?.trim()||e})}):null}function _ro(){return kn(jf)}function zk({type:e,props:o,children:t}){let r=kn(jf),a=tz(),n=r?.row??a;return no(Ys,{children:t(v0(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=kxe(),{press:i,disabled:l}=r,d=r.label?.trim(),f=!d&&a?{id:`${s}-title`,field:a}:null;return $k("div",{...e,id:s,className:t&&!l?`${dv} ${d2}`:dv,children:[no("button",{type:"button",[u2]:"",className:l?x2:h2,"aria-pressed":o,...d?{"aria-label":d}:{"aria-labelledby":f?.id??s},...l?{"aria-disabled":!0,tabIndex:-1}:null,onClick:l?void 0:i}),no(tI.Provider,{value:f,children:n})]})}function Oro({ownerId:e,ownerType:o,slot:t=ze,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=kn(jf),b=kn(tI),y=kn(oI);if(!r||(r.blockCount??0)<=0)return no(Ys,{children:p});let v=C!==null,L=I0(o),O=u??C?.previewHover,N=r.blockCount===1?no($O,{children:no(r,{className:NO})}):no(r,{}),k=new Set,F=(_,P)=>{if(!I)return P;let A=I(_,P);for(;k.has(A);)A=`${A}#${P}`;return k.add(A),A},T=a.map((_,P)=>{let A=i?.[P],W={row:_,index:P,ownerType:o,slot:t,item:n?.[P],nested:v,...s?{fields:s}:null,...A?{state:A}:null,...L?{linesBetween:L}:null,...O?{previewHover:O}:null},G=Bv(A)?$k(Ys,{children:[N,l==="under"?no("span",{"aria-hidden":"true",className:s2}):Fv(A)?$k("span",{"aria-hidden":"true",className:i2,children:[no("span",{className:l2}),no("span",{className:c2})]}):no("span",{"aria-hidden":"true",className:n2})]}):N,Z={[Pxe]:`${e}:${t}`,[Exe]:P,...typeof m=="function"?m(W):m},X=d?.[P],ce=f2(A,l),fe=X?no(Rxe,{attrs:{...Z,...ce},selected:A?.selected===!0,hover:l!=="under",action:X,titleField:_xe(f,_),children:G}):b?no("div",{...Z,...ce,children:no(tI.Provider,{value:null,children:G})}):no("div",{...Z,...ce,children:G}),te=h?h(fe,W):fe;return no(jf.Provider,{value:W,children:w?no(oI.Provider,{value:Te=>w(W,Te),children:te}):y?no(oI.Provider,{value:null,children:te}):te},F(W,P))});return no(Ys,{children:S(T)})}var rz={name:"clickableParts",applies:(e,o,t)=>typeof t?.render=="function"&&e!==Ao&&e!==vi,draw(e,o,t){let r=e,a=()=>r.textParts??r.fields,n=r.render,s=t.inspector?.PartAnchors,i=(l,d)=>gN(a(),d,f=>w0(o,l,f));r.render=l=>{let d=xD(l),f=CH(l);return l.editor?.isEditing&&s?rI(zk,{type:o,props:l,children:u=>rI(s,{needles:i(l,u),styles:d,motions:f,type:o,children:n(l)})}):!Object.keys(d).length&&!Object.keys(f).length?n(l):rI(zk,{type:o,props:l,children:u=>rI(OH,{needles:i(l,u),styles:d,motions:f,type:o,atEdge:o===Y,children:n(l)})})}}};import{jsx as az}from"react/jsx-runtime";var nz={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=V1(t.sectionCorners,t.sectionCornerSides,t.sectionCornersUnit),a=o(t);return r?az(he,{className:"sf-section-corners",style:{display:"contents",...r},children:a}):a}}},Gk=["CollectionCard"],sz={name:"cardCorners",applies:(e,o,t)=>Gk.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=q1(t.cardCorners,t.cardCornerSides,t.cardCornersUnit),a=o(t);return r?az(he,{className:"sf-card-corners",style:{display:"contents",...r},children:a}):a}}};var iz={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 lz={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 cz,jsxs as Lxe}from"react/jsx-runtime";var Fxe="Flex",dz=(e,o)=>e[o]!==void 0&&e[o]!==!1&&!e.editor?.isEditing,fz={name:"headCore",applies:(e,o,t)=>typeof t?.render=="function",draw(e){let o=e.render;e.render=t=>dz(t,sf)?cz(he,{className:Cx,children:t[sf]==="empty"?null:o(t)}):o(t)}},pz={name:"headBox",applies:(e,o,t)=>e===Fxe&&typeof t?.render=="function",draw(e){let o=e.render;e.render=t=>dz(t,nf)?Lxe(he,{className:vx,children:[cz(Tx,{}),o(t)]}):o(t)}};import{createElement as Bxe}from"react";var uz={name:"hiddenNodes",applies:(e,o,t)=>typeof t?.render=="function",draw(e,o,t){let r=o===Y?"edge":t.isSection(o)?"section":"by-box",a=e.render;e.render=n=>{if(ha(n))return null;let s=ed(n),i=jO(s,xR(n),{sectionClassName:ed(n,{atSectionLine:!0}),line:r});return Bxe(UO.Provider,{value:i},a(n))}}};import{jsx as Hxe}from"react/jsx-runtime";import{createContext as hz,createElement as mz,useContext as Nxe}from"react";var xz=hz(null),Dxe=hz(!1),aao=xz.Provider;function Mxe(e,o,t){return e===void 0||e===""||o===null||o.length===0||!t.includes(e)?!0:o.includes(e)}function gz({name:e,editing:o,children:t}){let r=Nxe(xz);return o||Mxe(e,r?.selected??null,r?.known??[])?t:mz("div",{hidden:!0,style:{display:"none"}},mz(Dxe.Provider,{value:!0},t))}var Wxe="Flex",Iz={name:"showFor",applies:(e,o,t)=>e===Wxe&&typeof t?.render=="function",draw(e){let o=e.render;e.render=t=>{let r=F2(t[Rl])?.name;if(r===void 0)return o(t);let a=!!t.editor?.isEditing;return Hxe(gz,{name:r,editing:a,children:o(t)})}}};var yz=_u.mediaFields,$xe=e=>db(e)?e.src:e;function Uxe(e,o){let t=o;for(let r of $(yz,e)??[])t=I1(t,r,$xe);return t}var bz={name:"mediaValues",applies:(e,o,t)=>typeof t?.render=="function"&&($(yz,e)?.length??0)>0,draw(e,o){let t=e.render;e.render=r=>t(Uxe(o,r))}};import{jsx as Kf,Fragment as Sz,jsxs as wz}from"react/jsx-runtime";var zxe="!grow-0 !shrink-0 !basis-0",Gxe=["[.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(" "),jxe="flex flex-col w-full min-w-0 [&>*]:grow";function Cz({anchor:e}){let o=Yn(e),t=Ga(),r=Cu();return o?Kf("span",{id:o,className:et(t?`sf-section-anchor ${zxe} ${Gxe}`:"sf-section-anchor",r),"aria-hidden":"true"}):null}function Kxe({anchor:e,copiesInBox:o,children:t}){let r=bu()?.columnsRow===!0,a=WO(),n=Yn(e)!=="";return o?Kf(Sz,{children:t}):r&&!a&&n?wz(he,{className:jxe,children:[Kf(Cz,{anchor:e}),t]}):wz(Sz,{children:[Kf(Cz,{anchor:e}),t]})}var vz={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=>Kf(Kxe,{anchor:r.anchor,copiesInBox:Bt(o,r),children:t(r)})}};import{jsx as Vxe,jsxs as Yxe}from"react/jsx-runtime";import{lazy as qxe}from"react";var Xxe=qxe(()=>import("./section-css-style-J4DULHLY.js")),Tz={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,[Oi]:""};let o=e.render;e.render=t=>{let r=hO(t),a=typeof t.id=="string"?t.id:"";return!r||!a?o(t):Yxe(ja,{className:"sf-section-css",attrs:{[mO]:a},children:[Vxe(Xxe,{css:r,id:a}),o(t)]})}}};import{jsx as Zxe}from"react/jsx-runtime";var kz=Object.fromEntries(B_.map(e=>[e,"picture"])),Jxe={[Y]:"box",Ticker:"marquee",...Object.fromEntries(Dp.map(e=>[e,"cards"])),...kz},Pz=(e,o)=>!xu.has(e)&&!!o&&typeof o.render=="function";function Ez(e,o,t,r){e.fields={...e.fields,...t.animationTabFields(o,r)}}function _z(e,o){let t=e,r=t.render;t.render=a=>{let n=Li(a);return!n||Bt(o,a)?r(a):Zxe(dx,{views:n,editing:!!a.editor?.isEditing,takesViewHide:!0,atEdge:o===Y,children:r(a)})}}var Oz={name:"sectionAnimation",applies:(e,o,t)=>o.isSection(e)&&Pz(e,t),panel:(e,o,t)=>Ez(e,$(Jxe,o)??"section",t,o),draw:(e,o)=>_z(e,o)},Az={name:"blockEntrance",applies:(e,o,t)=>!o.isSection(e)&&Pz(e,t),panel:(e,o,t)=>Ez(e,$(kz,o)??"block",t,o),draw:(e,o)=>_z(e,o)};import{jsx as Qxe}from"react/jsx-runtime";var Rz=(e,o)=>!xu.has(e)&&!!o&&typeof o.render=="function";function ege(e){let o=xv.filter(t=>t.block===e);return o.length===1?o[0].focus:void 0}function Lz(e,o){let t=e,r=t.render,a=ege(o),n=e.drawsPictures===!0;t.render=s=>{let i=El(s);return!i||Bt(o,s)?r(s):Qxe(Ax,{views:i,...a?{origins:SH(s,a)}:{},takesViewHide:!0,atEdge:o===Y,zoomInside:n?"picture":"layer",children:r(s)})}}var Fz={name:"sectionScroll",applies:(e,o,t)=>o.isSection(e)&&Rz(e,t),draw:(e,o)=>Lz(e,o)},Bz={name:"blockScroll",applies:(e,o,t)=>!o.isSection(e)&&Rz(e,t),draw:(e,o)=>Lz(e,o)};import{jsx as oge}from"react/jsx-runtime";import{createElement as tge}from"react";var jk=["sectionHeightMode","sectionHeightModeTablet","sectionHeightModePhone"];function rge(e,o){let t=e.props??{};return jk.some(r=>t[r]==="fill")?!0:("parent"in o?o.parent:ra(o.appState,t.id))?.type===Y}var Kk={name:"sectionHeight",applies:(e,o,t)=>o.isSection(e)&&!LO.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||!jk.some(f=>f in l))return l;let d=n.get(l);if(!d){d={...l};for(let f of jk)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=>rge(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=HO(r);return a?oge(ja,{className:a.className,style:a.style,...o===Y?{attrs:U_}:null,children:t(r)}):t(r)}}},Nz={name:"sectionHeightFillRoot",applies:Kk.applies,draw(e,o){let t=e.render;e.render=r=>{let a=Bt(o,r)?null:GO(MO(r),DO(r).join(" "));return tge(zO.Provider,{value:a},t(r))}}};import{jsx as aI}from"react/jsx-runtime";import{PIN_ATTR as Dz,PIN_FRAME_ATTR as age}from"efficient-shell/format";var Hz=$z("sectionSticky",(e,o,t)=>o.isSection(e)&&!SF.has(e)&&!!t&&typeof t.render=="function",!0),Wz=$z("cardSticky",(e,o,t)=>Gk.includes(e)&&!!t&&typeof t.render=="function",!1);function $z(e,o,t){return{name:e,applies:o,panel(r,a,n){let s=VS.has(a);r.fields=sge(r.fields??{},Et(n.stickFields({intro:s,screens:t,above:t}),ige(s))),t&&Hr(r,{heldByANode:Yg})},draw(r,a){let n=r.render,s=VS.has(a);r.render=i=>{let l=XS(i,{atScreenTop:s,above:t});if(!l)return n(i);let d=u=>{let p=aI(wu,{children:n(i)});return aI(he,{...u.attrs,style:u.style,children:u.attrs[Dz]===""?aI("div",{[age]:"",children:p}):p})},f=t?XS(i,{atScreenTop:s,track:t,above:!0}):l;return!f||f.attrs[Dz]!==""?d(l):aI(oc,{own:()=>d(f),followed:()=>d(l)})}}}}var Mz=[pr,Vl],nge="_gStick";function sge(e,o){let t=Object.keys(e),r=e[Pl];if(!r){let S=t.findIndex(C=>Mz.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{[nge]:a,...n}=o,s=S=>S.startsWith(wr),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(Pl),u=t.findIndex((S,C)=>C>f&&Mz.includes(S)),p=u<0?t.length:u,m=t.indexOf(fx),h=m>f&&m<p?m:p,I=S=>[S,S===Pl?{...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 ige(e){let o=l=>({field:l,in:[!0,!1]}),t=l=>e&&l==="stickTop"?{any:[{field:l,is:!0},Hm]}:{field:l,is:!0},r=l=>({field:l,is:!0}),a=l=>({all:[l,Wf,{not:{field:tn,is:!0}}]}),[n,s,i]=GS;return[[["stickTopDistance"],t("stickTop")],[["stickTopDistanceTablet"],Wr(["stickTopTablet","stickTop"],o,t)],[["stickTopDistancePhone"],Wr(["stickTopPhone","stickTopTablet","stickTop"],o,t)],[[n],a(r("stickTop"))],[[s],a(Wr(["stickTopTablet","stickTop"],o,r))],[[i],a(Wr(["stickTopPhone","stickTopTablet","stickTop"],o,r))],[[ns],Qi],[[tn],Qi]]}import{jsx as lge}from"react/jsx-runtime";var Uz={name:"sectionBorder",applies:(e,o,t)=>o.isSection(e)&&!!t&&typeof t.render=="function",draw(e,o){if(nx.has(o))return;let t=e.render;e.render=r=>{let a=EF(r.sectionBorder,r.sectionBorderPhone,r.sectionBorderTablet,PF(r)),n=t(r);return a?lge(he,{className:zm,style:{display:"contents",...a},children:n}):n}}};import{jsx as Vk}from"react/jsx-runtime";var zz={name:"sectionTheme",applies:(e,o,t)=>o.isSection(e)&&!fO.has(e)&&!!t&&typeof t.render=="function",panel(e,o,t){let{sectionThemeFields:r,SECTION_THEME_FOLLOW_LABEL:a}=t,n=Jy.has(o);e.fields={...e.fields,...n?r(Un,a):r()}},draw(e,o){let t=Jy.has(o),r=e.render;e.render=a=>{let n=uO(t?{...a,sectionAccent:Un(a.sectionAccent)}:a),s=r(a);if(!n)return s;let i=d=>Vk(ja,{className:n.className,style:d,children:s}),l=n.style;return Bt(o,a)?Vk("div",{className:n.className,style:{...l,display:"contents"},children:s}):Jg(o,a)!=="content"?i(l):Vk(oc,{own:()=>i({...l,...Zi(Uo)}),followed:()=>i(l)})}}},Gz={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(Un,a)})}};import{jsx as bo}from"react/jsx-runtime";var jz=null;function Yk(e){jz=e}function Kz(){return jz}import{jsx as cge}from"react/jsx-runtime";var dge="mx-auto w-full max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)]",Vz=en("box").frame,Vf=`${dge} ${Vz}`,fge=en("site").frame;function Pno(e){return e?fge:Vz}var pge="mx-auto w-full max-w-[1280px] px-[60px]",uge="max-[960px]:px-6",Eno=`${pge} ${uge}`;function _no({contained:e,className:o="",style:t,pad:r,fillWidth:a="w-full",part:n,children:s}){return cge(KU,{contained:e,framedClass:`${Vf} ${o}`,fillClass:`${a} ${o}`,columnClass:Vf,style:t,pad:r,part:n,children:s})}var tc="--sf-sw-site",mge="--sf-sw-content",hge="--sf-bg-cap",xge="contents [--sf-site-width:var(--sf-sw-content)] max-view-wide:[--sf-site-width:var(--sf-sw-site)]",qk=({own:e,content:o,siteContent:t})=>e===!0&&o==="full"&&t!=="full",qz="contents view-wide:[--sf-site-width:100vw]",Xk=({held:e},o,t)=>e?t:bo(he,{className:o,children:t}),gge=`contents view-wide:[--sf-site-width:100vw] ${V3} view-wide:[--sf-site-gutter:var(--intro-edge)]`,Zk=(e,o,t)=>o==="content"?`min(${He(e,t)},var(${tc}))`:He(e,t);function Yf({content:e,contentMax:o,contentMaxUnit:t},r){return e==="full"?r!=="content"?id:null:o===null?null:Zk(o,r,t)}function qf(e,o){return o===null?e:bo(he,{className:"contents",style:{[tc]:Uo},children:bo(he,{className:xge,style:{[mge]:o},children:e})})}var Ige="--sf-content-cap",yge="contents max-view-wide:[--sf-content-cap:none]";function bge({content:e,contentMax:o,contentMaxUnit:t},r){return e==="full"?null:o!==null?Zk(o,r,t):r==="content"?null:`var(${tc})`}function Sge(e,o){return o===null?e:bo(he,{className:"contents",style:{[tc]:Uo},children:bo(he,{className:yge,style:{[Ige]:o},children:e})})}var Xz=`var(${tc},${Uo})`,Pn=(e,o,t="")=>e==="content"?bo(he,{className:t||void 0,style:Zi(Uo),children:bo(Mk,{ground:Xz,children:o})}):o;function Zz(e,o,t,r,a){if(qk(t))return Pn(r,Xk(t,qz,bo(Dk,{children:e({...o,contained:!0})})),a);if(t.content==="full")return Pn(r,e({...o,contained:!1}),a);let n=Yf(t,r);return r==="content"&&n===null&&!t.own?e({...o,contained:!0}):Pn(r,qf(bo(Dk,{children:e({...o,contained:!0})}),n),a)}function wge(e,o,t,r,a){if(t==="hero"){let i=qf(e(o),Yf(r,r.band));return r.band==="full"?bo(he,{style:{[Fm]:"none",[FS]:"initial",[BS]:"initial"},children:i}):r.band==="content"?bo(he,{style:Bm(!0),children:i}):i}let n=r.band??"full",s=za(o,{atSectionLine:!a});if(t==="rawMarkup"){if(r.content==="full")return Pn(n,e(o),s);let i=r.contentMax===null?Uo:Zk(r.contentMax,n,r.contentMaxUnit);return bo(he,{className:"contents",style:{[tc]:Uo},children:Pn(n,bo(he,{className:s||void 0,style:Zi(i),children:e(o)}),s)})}if(t==="scrollOver"){let i=r.content==="full",l=qk(r)?Xk(r,gge,e({...o,fullWidth:!1})):qf(e({...o,fullWidth:i}),i?null:Yf(r,n));return n==="content"?bo(he,{className:"contents",style:{[hge]:Uo},children:l}):l}switch(t){case"both":return Pn(n,Sge(e(o),bge(r,n)),s);case"contained":return Zz(e,o,r,n,s);case"contentColumn":case"contentFull":case"productGrid":{let i=qk(r),l=r.content==="full"&&!i?"full":"page",d=i?Xk(r,qz,e({...o,widthMode:l})):qf(e({...o,widthMode:l}),r.content==="full"?null:Yf(r,n));return t==="productGrid"&&!r.own?n==="content"?bo(he,{className:s?`${Vf} ${s}`:Vf,children:d}):d:Pn(n,d,s)}default:return Pn(n,qf(e(o),Yf(r,n)),s)}}function Yz(e,o,t,r,a){let n=a===Y?"edge":"by-box",s=i=>wge(e,o,t,r,i);return n==="edge"?s(!0):za(o)===za(o,{atSectionLine:!0})?s(!1):bo(yu,{line:n,draw:s})}function Cge(e,o){let t=$(al,o);if(!t)return;let r=e.render;e.render=a=>{let n=Zm(a),s={band:n.background,content:n.content??"content",contentMax:null},i=()=>t==="rawMarkup"?r(a):bo(jU,{draw:h=>h?.background==="content"?bo(Mk,{ground:Xz,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=Yz(r,a,t,I,o);if(!Tn(o))return w;let S=Uf(a),C=S===void 0?I.content:S?"content":"full";return C===I.content?w:bo($U,{atTop:w,nested:Zz(r,a,{...I,content:C,own:!1},I.band??"full",za(a))})},d=$f(o,a);if(!YF(d))return i();let f=t==="rawMarkup",u=Jg(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 bo(oc,{own:()=>bo(GU,{value:{background:m.band,content:m.content},children:Yz(r,a,t,m,o)}),followed:i})}}var vge={all:[Wf,{not:{context:"runsEdgeToEdge",is:!0}}]},Jz={name:"sectionWidth",applies:(e,o,t)=>Xm(e)&&!!t&&typeof t.render=="function",panel(e,o,t){let r=t.sectionOwnWidthFields({drawsFullOnItsOwn:$(al,o)==="rawMarkup"}),a=Tn(o)?t.boxGutterFields():{},n={...e.fields,...a,...r},s=Tn(o)?oG(o,e,n,[Vs]):n;Hr(e,{heldByANode:Yg}),Tn(o)&&Hr(e,{runsEdgeToEdge:(i,l)=>Zg(Qc(i.props??{},k0(l.appState,i.props?.id)?.inCopy!==!1))}),e.fields=st(s,[Be.background,Be.content],Tn(o)?vge:Wf)},draw(e,o){Cge(e,o)}};function Tge(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 kge=new Set(["Heading","Text","ImageBlock","ButtonBlock"]),Qz={name:"containedWidth",applies:(e,o,t)=>kge.has(e)&&!!t&&typeof t.render=="function",panel(e,o,t){let r=t.widthField;e.fields=oG(o,e,{...e.fields,...r("page")});let a=e.resolveFields;e.resolveFields=(n,s)=>{let i=a?a(n,s):s.fields,l=qm(n?.props??{},"page"),d=f=>Tge(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}=qm(t,"page");return o({...t,contained:r!=="full"})}}},Pge={not:{context:"inHeroGroupRow",is:!0}},eG={name:"buttonAlignInRow",applies:e=>e==="ButtonBlock",panel(e){let o=e;o.fields=st(o.fields??{},["align"],Pge),Hr(o,{inHeroGroupRow:(t,r)=>{let a=ra(r.appState,t.props?.id);return!!a&&a.type==="HeroGroup"&&Yr("HeroGroup",a.props?.direction)==="row"}})}};function Ege(e){return Object.values(e).some(o=>!!o&&typeof o=="object"&&o.type==="slot")}var _ge={any:[]},Oge={all:[{not:{context:"outsideBox",is:!0}},{not:{context:"insideSiteGutter",is:!0}}]},Age={not:{context:"widthCappedByParent",is:!0}};function oG(e,o,t,r=["widthMode"]){if(e==="ButtonBlock")return st(t,["_gWidth",...r],_ge);if(Ege(t)){let a=(n,s)=>NU(s.appState?.data?.content,n.props?.id,Qg(Kz()));return Hr(o,{outsideBox:(n,s)=>a(n,s)?.inBox!==!0,insideSiteGutter:(n,s)=>a(n,s)?.insideGutter}),st(t,r,Oge)}return Hr(o,{widthCappedByParent:(a,n)=>"parent"in n?c0(n.parent):wU({props:a.props??{}},n)}),st(t,r,Age)}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"]),tG={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))}},Lge=new Set(["HeroSlide","HeroGroup"]),rG={name:"blockGroups",applies:(e,o,t)=>Lge.has(e)||!o.isSection(e)&&xg in(t?.fields??{}),panel(e,o,t){let r=t.assignSectionGroups;e?.fields&&(e.fields=r(e.fields,o))}};import{jsx as Jk}from"react/jsx-runtime";var Fge=new Set(["Flex","Grid"]),aG=e=>Object.entries(e.fields??{}).filter(([,o])=>o?.type==="slot").map(([o])=>o),Bge=(e,o)=>e.fields?.[o]?.ownPictures===!0,Nge=["blockCount","blockIds"],Dge=new WeakMap,Mge=new WeakMap;function Hge(e,o){let t=o?Mge:Dge,r=t.get(e);if(r)return r;let a=e,n=s=>Jk(UU,{children:Jk(wu,{ownPictures:o,children:Jk(a,{...s})})});Object.assign(n,e);for(let s of Nge)Object.defineProperty(n,s,{get:()=>e[s],configurable:!0,enumerable:!0});return t.set(e,n),n}var nG={name:"slotsStartAfresh",applies:(e,o,t)=>!Fge.has(e)&&typeof t?.render=="function"&&aG(t).length>0,draw(e){let o=aG(e),t=e.render;e.render=r=>{let a={...r};for(let n of o){let s=r[n];typeof s=="function"&&(a[n]=Hge(s,Bge(e,n)))}return t(a)}}};var Wge=new Set(["Form","Stats","Logos"]);function sG(){return[...Wge]}function Qk(e,o,t=[]){let r=new Set(e),a=t_.filter(d=>r.has(d)),n=a.filter(d=>d!=="Header"&&d!=="Footer"&&!Nu.includes(d)),s=new Set([...o,...Rp,...sG()]),i=a.filter(d=>!s.has(d)),l=new Set([...a,...t]);return{isSection:d=>l.has(d)&&!Qp(d),isHostBlock:()=>!1,sectionGroupAllow:n,contentSectionKeys:i}}var $ge=[nG,bz,fz,gU,IU,QM,nz,Uz,sz,eH,Az,Bz,SU,Jz,Qz,eG,Kk,Tz,vz,zz,Oz,Fz,Hz,Wz,YU,Gz,LU,tG,rG,lz,iz,rz,pz,Iz,Nz,uz,xU,XU];function iG(e,o,t){let r=o;for(let a of $ge)a.applies(e,t,r)&&(t.inspector&&a.panel?.(r,e,t.inspector,t),a.draw?.(r,e,t));return o}import{jsx as eP}from"react/jsx-runtime";import{ClockIcon as Uge,DurationIcon as zge}from"efficient-easel/icons";import{MOTION_TIMING as lG}from"efficient-shell/format";import{useSelectedHost as Gge}from"efficient-easel/easel";function rc(e){let{min:o,max:t,step:r,default:a}=lG[e].duration;return Lo("Duration",eP(zge,{}),o,t,r,a,"s")}function ac(e){let{min:o,max:t,step:r,default:a}=lG[e].delay;return Lo("Delay",eP(Uge,{}),o,t,r,a,"s")}function nc(e,o){let t=e.render,r=a=>{let n=Gge();return t({...a,value:o(a.value,n?.values)})};return{...e,render:a=>eP(r,{...a})}}function nI({readsSpeed:e}){return nc(rc("loop"),(o,t)=>hg({loopDuration:o,speed:e?t?.speed:void 0}))}function sI(){return nc(ac("loop"),e=>TW({loopDelay:e}))}import{jsx as Bo}from"react/jsx-runtime";import{DirectionDownIcon as jge,DirectionIcon as Kge,DirectionLeftIcon as Vge,DirectionRightIcon as Yge,DirectionUpIcon as qge,EntranceBounceIcon as Xge,EntranceFadeIcon as Zge,EntranceFlipIcon as Jge,EntranceGlideIcon as Qge,EntranceRevealIcon as eIe,EntranceRiseIcon as oIe,EntranceScaleIcon as tIe,EntranceSpinIcon as rIe,NoSymbolIcon as aIe}from"efficient-easel/icons";import{NoControlMark as nIe,noControlField as sIe}from"efficient-easel/screen/lib/document/panel-no-control-mark";import{customize as iIe,group as lIe}from"efficient-easel/screen/lib/document/box-fields";import{ENTRANCE_FROM as cIe,ENTRANCE_FROM_DEFAULT as dG,ENTRANCE_KINDS as fG,ENTRANCE_KINDS_WITH_FROM as dIe,entranceAttrs as fIe,playEntrance as pIe,readEntrance as uIe}from"efficient-shell/format";var mIe={none:"None",fade:"Fade",rise:"Rise",scale:"Scale",glide:"Glide",bounce:"Bounce",flip:"Flip",reveal:"Reveal",spin:"Spin"},hIe={top:"Top",bottom:"Bottom",left:"Left",right:"Right"},xIe={top:()=>Bo(jge,{}),bottom:()=>Bo(qge,{}),left:()=>Bo(Yge,{}),right:()=>Bo(Vge,{})},pG="Entrance",tP=fG.filter(e=>e!=="none"),uG=e=>({any:[{field:_t.kind,in:e},{all:[{field:_t.kind,set:!1},{field:Bc,in:e}]}]}),cG=(e,o)=>Wr(It.slice(0,It.indexOf(e)+1).reverse().map(t=>Pe(_t.kind,t)),t=>({field:t,set:!0}),t=>t===_t.kind?uG(o):{field:t,in:o}),gIe={any:[uG(tP),...It.slice(1).map(e=>({field:Pe(_t.kind,e),in:tP}))]},IIe=It.flatMap(e=>[[[Pe(_t.from,e)],cG(e,dIe)],[[Pe(_t.duration,e),Pe(_t.delay,e)],cG(e,tP)]]),yIe={none:()=>Bo(aIe,{}),fade:()=>Bo(Zge,{}),rise:()=>Bo(oIe,{}),scale:()=>Bo(tIe,{}),glide:()=>Bo(Qge,{}),bounce:()=>Bo(Xge,{}),flip:()=>Bo(Jge,{}),reveal:()=>Bo(eIe,{}),spin:()=>Bo(rIe,{})},mG="data-entrance-tile";function bIe({kind:e}){let{attrs:o}=fIe(uIe(e,dG));return Bo("span",{className:"sf-entrance-stage",[mG]:e,children:Bo("i",{...o,children:yIe[e]()})})}var SIe=(e,o)=>{let t=e.querySelector(`[${mG}="${o}"] > i`);t&&pIe(t)},wIe="Effect",CIe=()=>Im(_t.kind,{label:pG,tileWord:wIe,values:fG,fallback:"none",word:e=>mIe[e],picture:e=>Bo(bIe,{kind:e}),read:(e,o)=>Nc(e,o).kind,preview:SIe}),oP=(e,o)=>gm(_t[e],o,(t,r)=>Nc(t,r)[e]),vIe=cIe.map(e=>({label:hIe[e],value:e,picture:xIe[e]()}));function Rr(){let e={[xg]:lIe(pG,{dot:gIe}),...CIe(),[Bc]:sIe({type:"custom",render:()=>Bo(nIe,{})},"always"),_cEntrance:iIe(),...oP("from",nl("From",Bo(Kge,{}),vIe,dG)),...oP("duration",rc("entrance")),...oP("delay",ac("entrance"))};return Et(e,IIe)}import{jsx as lr}from"react/jsx-runtime";import{EntranceRevealIcon as TIe,NoSymbolIcon as kIe,PercentIcon as hG,ScrollFadeInIcon as PIe,ScrollFadeOutIcon as EIe,ScrollMoveDownIcon as _Ie,ScrollMoveUpIcon as OIe,ScrollParallaxIcon as AIe,ScrollZoomInIcon as RIe,ScrollZoomOutIcon as LIe,ZoomInIcon as FIe}from"efficient-easel/icons";import{customize as BIe,group as NIe}from"efficient-easel/screen/lib/document/box-fields";import{SCROLL_EFFECTS as gG,SCROLL_EFFECTS_WITH_ZOOM as DIe,SCROLL_END as MIe,SCROLL_START as HIe,SCROLL_ZOOM as WIe}from"efficient-shell/format";var IG="Scroll",$Ie={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:()=>lr(kIe,{}),"zoom-in":()=>lr(RIe,{}),"zoom-out":()=>lr(LIe,{}),"fade-in":()=>lr(PIe,{}),"fade-out":()=>lr(EIe,{}),"move-up":()=>lr(OIe,{}),"move-down":()=>lr(_Ie,{}),reveal:()=>lr(TIe,{}),parallax:()=>lr(AIe,{})},zIe="Effect",yG=gG.filter(e=>e!=="none"),xG=(e,o)=>Wr(It.slice(0,It.indexOf(e)+1).reverse().map(t=>Pe(jo.effect,t)),t=>({field:t,set:!0}),t=>({field:t,in:o})),GIe={any:It.map(e=>({field:Pe(jo.effect,e),in:yG}))},jIe=It.flatMap(e=>[[[Pe(jo.zoom,e)],xG(e,DIe)],[[Pe(jo.start,e),Pe(jo.end,e)],xG(e,yG)]]),KIe=()=>Im(jo.effect,{label:IG,tileWord:zIe,values:gG,fallback:"none",word:e=>$Ie[e],picture:e=>UIe[e](),read:(e,o)=>_a(e,o).effect}),rP=(e,o,t,r,a)=>gm(e,Lo(t,r,a.min,a.max,a.step,a.default,"%"),(n,s)=>_a(n,s)[o]);function qs(){let e={[Pl]:NIe(IG,{dot:GIe}),...KIe(),[fx]:BIe(),...rP(jo.zoom,"zoom","Zoom",lr(FIe,{}),WIe),...rP(jo.start,"start","Start",lr(hG,{}),HIe),...rP(jo.end,"end","End",lr(hG,{}),MIe)};return Et(e,jIe)}import{jsx as pt}from"react/jsx-runtime";import{AccentIcon as VIe,ContrastIcon as YIe,EyeIcon as qIe,ExpandIcon as XIe,FinishIcon as ZIe,ImagesIcon as JIe,NoSymbolIcon as SG,HoverLiftIcon as QIe,HoverNextImageIcon as eye,HoverRotateIcon as oye,HoverZoomIcon as wG,OpacityIcon as tye}from"efficient-easel/icons";import{customize as rye,describedAs as CG,group as aye}from"efficient-easel/screen/lib/document/box-fields";import{effectTiles as vG}from"efficient-easel/screen/lib/document/effect-tiles";import{deviceField as Yo}from"efficient-easel/screen/lib/document/device-fields";import{NoControlMark as nye,noControlField as sye}from"efficient-easel/screen/lib/document/panel-no-control-mark";var iI=e=>Yo("desktop",aye("Hover",{dot:e})),TG=()=>Yo("desktop",rye()),iye="What this does when a shopper points at it, or taps it on a phone.",lye="What this picture does when a shopper points at it. Black and white shows it in grey until then. A phone shows its colour.",cye="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.",dye="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.",fye="When this shows. On card hover shows it while a shopper points at the card. A phone always shows it.",pye="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.",uye="Which of the product's pictures the card shows.",mye="Same finish shows the photos of the finish the card shows, else the first group.",hye="Whole card hides the words under the photo. Picture keeps the words and swatches in view.",xye={none:()=>pt(SG,{}),nextImage:()=>pt(eye,{}),rotate:()=>pt(oye,{}),zoom:()=>pt(wG,{}),lift:()=>pt(QIe,{}),mono:()=>pt(YIe,{})};function aP(e,o){let t=vG({label:c("Hover effect"),options:e.map(r=>({value:r,label:c(gi[r]),picture:xye[r]()})),fallback:o});return CG(t,{type:"select",label:"Hover effect",options:e.map(r=>({value:r,label:gi[r]}))})}function kG(){return{[pr]:iI({field:Mt,in:xy.filter(e=>e!=="none")}),[Mt]:Yo("desktop",{...aP(xy,"none"),description:iye})}}function PG(e){let o=L_(e),t=Hp(),r=oB(v_);return{[pr]:iI({any:[o,t]}),[ho.kind]:Yo("desktop",{...nc(aP(S_,e),(a,n)=>A_(n??{},e)),description:pye}),...nP(t),[w_]:sye({type:"custom",render:()=>pt(nye,{})},"always"),_cHover:TG(),[ho.angle]:Yo("desktop",lo(nc(r,a=>R_(a)),o)),[ho.duration]:Yo("desktop",lo(rc("hover"),o)),[ho.delay]:Yo("desktop",lo(ac("hover"),o))}}function nP(e){let o=ft("Type",pt(JIe,{}),T_.map(a=>({value:a,label:k_[a]})),Mp.kind),t=nl("Group",pt(ZIe,{}),P_.map(a=>({value:a,label:E_[a]})),Mp.group),r=nl("Covers",pt(XIe,{}),__.map(a=>({value:a,label:O_[a]})),Mp.cover);return{[ho.mediaKind]:Yo("desktop",lo({...o,description:uye},e)),[ho.mediaGroup]:Yo("desktop",lo({...t,description:mye},e)),[ho.cover]:Yo("desktop",lo({...r,description:hye},e))}}function sP(e,o="",t=Sy.includes(o)){let r=wy(e),a=W_(e);return{[pr]:iI(r),[ho.kind]:iP(F_,e,lye),...Sy.includes(o)?nP(Hp()):{},_cHover:TG(),...t?EG():{},[ho.duration]:Yo("desktop",lo(rc("hover"),a)),[ho.delay]:Yo("desktop",lo(ac("hover"),a))}}function EG(e=!1){let o=a=>e?a:lo(a,H_()),t=Lo("Zoom",pt(wG,{}),Ii.min,Ii.max,Ii.step,Ii.min,Ii.unit),r=Lo("Darken on hover",pt(tye,{}),Za.min,Za.max,Za.step,Za.fallback,Za.unit);return{[Iy.zoom]:Yo("desktop",o(t)),[Iy.darken]:Yo("desktop",o(r))}}function iP(e,o,t){let r=Yo("desktop",{...nc(aP(e,o),a=>D_({[Mt]:a},o,e)),description:t});return Object.assign(r,{[_G]:o})}var _G="sfPictureResting",bG=new WeakMap;function Pio(e,o,t){let r=e[ho.kind],a=r?.[_G];if(!r||!a)return e;let n=o.props?.[Mt]==="nextImage",s=n?null:ru(t.appState,o.props?.id);if(!n&&!Dp.includes(String(s?.type??"")))return e;let i=bG.get(e);return i||(i={...e,[ho.kind]:iP(gy,a,cye)},bG.set(e,i)),i}var gye="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.",Iye={none:()=>pt(SG,{}),[uy]:()=>pt(VIe,{})},Eio=Yo("desktop",{...CG(vG({label:c("Hover effect"),options:my.map(e=>({value:e,label:c(hy[e]),picture:Iye[e]()})),fallback:"none"}),{type:"select",label:"Hover effect",options:my.map(e=>({value:e,label:hy[e]}))}),description:gye}),yye=Yo("desktop",{...nl("Show",pt(qIe,{}),[{value:by,label:"Always"},{value:yy,label:"On card hover"}],by),description:fye});function OG(){let e={any:[wy("none"),{field:Mt,is:uy},{field:Bn,is:yy}]},{[pr]:o,[ho.kind]:t,...r}=sP("none","",!0);return{[pr]:iI(e),[ho.kind]:t,[Bn]:yye,...nP(Hp()),...r,...EG(!0)}}var _io=iP(gy,"none",dye);import{jsx as Xf}from"react/jsx-runtime";import{isNodeList as Cye}from"efficient-easel/data";import{useEasel as vye}from"efficient-easel/easel";import{hiddenInView as Tye,hiddenKeyOf as cP,hidePatch as kye,slotChildName as Pye,slotChildRowName as Eye}from"efficient-easel/draw";var lI=null;function lP(e){lI=e}function AG(){return!!(lI&&lI.state().lockHolder)}function Xs(){return lI!==null}var bye=new Set(["BookingBox","SubmitBox"]);function Sye(e){return typeof e=="string"&&bye.has(e)}var wye=M1(Sye,AG);function cI(e,o){return wye(e)||_S(o)}var dI=(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 _ye}from"efficient-easel/screen/lib/document/device-fields";import{NoControlMark as Oye}from"efficient-easel/screen/lib/document/panel-no-control-mark";var RG="notCardOfTemplate",LG={not:{context:RG,is:!0}},dP={any:[Up,LG]},Xio={[RG]:(e,o)=>{let t=Gy(o.appState,e.props?.id);return t===void 0?void 0:t===null}};function fI(e){let o=e.props?.content;return Cye(o)?o:[]}var uI=(e,o)=>Tye(e.props??{},o),Aye=(e,o)=>e.props?.[cP(o)]!==void 0;function FG(e,o=()=>!1,t="desktop"){return fI(e).flatMap(r=>typeof r?.props?.id!="string"?[]:fI(r).length&&!uI(r,t)?FG(r,o,t):o(r)?[]:[r])}function Rye(e,o,t,r="desktop"){let a=FG(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:!uI(i,r)}})}function pI(e,o,t){let r=a=>t==="desktop"?uI(a,t):Aye(a,t);return fI(e).flatMap(a=>r(a)?o(a)?[]:[a,...pI(a,o,t)]:pI(a,o,t))}function Lye(e,o){let t={...e};for(let[r,a]of Object.entries(o))a===void 0||r===cP("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 fP(e,o,t){let r=fI(e),a=!1,n=r.map(s=>{if(a)return s;let i=s;if(s?.props?.id===o){let l=Lye(s.props,t(s.props));l!==s.props&&(i={...s,props:l})}else i=fP(s,o,t);return a=i!==s,i});return a?{...e,props:{...e.props,content:n}}:e}function BG(e,o,t,r="desktop"){return fP(e,o,a=>r==="desktop"&&uI({props:a},r)===!t?{}:kye(a,r,!t))}function Fye(e,o,t){return t==="desktop"?BG(e,o,!0,t):fP(e,o,()=>({[cP(t)]:void 0}))}function Bye(e,o,t,r,a,n){return Pye(e).trim()?t(e):b0({ownerType:o,owner:r,fields:a,slot:n},xt(e.props))?.label??t(e)}var Nye="This page is read-only.";function Dye({card:e,ownerType:o,owner:t,fields:r,slot:a,labelOf:n,write:s,readOnly:i,view:l="desktop"}){let d=p=>Eye(p,n,la,void 0,dI),f=p=>cI(p.type,p),u=Rye(e,p=>Bye(p,o,d,t,r,a),f,l);return u.length?Xf(pl,{parts:u,changed:pI(e,f,l).length>0,shown:p=>u.find(m=>m.id===p)?.shown??!0,disabledReason:i?Nye:void 0,onPress:(p,m)=>s(h=>BG(h,p,m,l)),onReset:()=>s(p=>pI(p,f,l).reduce((m,h)=>Fye(m,String(h.props.id),l),p))}):Xf(Oye,{})}function Mye(){try{let e=vye(a=>a),o=e.config.components??{},t=e.selectedItem;if(!t)return null;let r=Gy(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:P0(e.appState,r),slot:T0(e.appState,t.props?.id)??void 0}}catch{return null}}function Hye({readOnly:e,view:o}){let t=Mye(),r=xr();return t?Xf(Dye,{...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}})}}):Xf(pl,{parts:[],changed:!1,shown:()=>!0,onPress:()=>{},onReset:()=>{}})}function Zio(e){return lo(_ye(e,{type:"custom",render:({readOnly:o})=>Xf(Hye,{readOnly:o,view:e})}),LG)}import{customize as qye}from"efficient-easel/screen/lib/document/box-fields";import{jsx as pP}from"react/jsx-runtime";import{DirectionIcon as Wye,LoopMarqueeIcon as $ye,NoSymbolIcon as Uye}from"efficient-easel/icons";import{customize as zye,describedAs as Gye,group as jye}from"efficient-easel/screen/lib/document/box-fields";import{effectTiles as Kye}from"efficient-easel/screen/lib/document/effect-tiles";function uP(){return QB("Direction",PT,Af,"A marquee cannot run diagonally, so the corners are not answers.",pP(Wye,{}),JB)}var mP=e=>jye("Loop",e?{dot:e}:void 0),Vye={none:()=>pP(Uye,{}),scroll:()=>pP($ye,{})};function Yye(){let e=Kye({label:c("Loop"),options:mg.map(({value:o,label:t})=>({value:o,label:c(t),picture:Vye[o]()})),fallback:kT});return Gye(e,{type:"select",label:"Loop",options:mg.map(({value:o,label:t})=>({value:o,label:t}))})}function NG(){return{[Vl]:mP(Of),loop:Yye(),_cLoop:zye(),scrollDirection:lo(uP(),Of),loopDuration:lo(nI({readsSpeed:!1}),Of),loopDelay:lo(sI(),Of)}}var DG={field:Bn,set:!0};function Xye(){let e=OG(),o=[pr,Mt],t=st(e,Object.keys(e).filter(n=>!o.includes(n)&&n!==Bn),Up),r=st(t,[Bn],DG),a=st(r,[Mt],dP);return st(a,[pr],{any:[dP,DG]})}function mI(e,o=""){switch(e){case"section":case"block":return{...Rr(),...qs()};case"box":return{...Rr(),...qs(),...NG(),...Xye()};case"picture":return{...Rr(),...qs(),...sP(N_(o),o)};case"textPart":return{...Rr(),...qs(),...kG()};case"cards":return{...Rr(),...qs(),...PG(C_(o))};case"marquee":return{...Rr(),...qs(),[Vl]:mP(),_cLoop:qye(),scrollDirection:uP(),loopDuration:nI({readsSpeed:!0}),loopDelay:sI()}}}import{blockSizeFieldSet as Nbe}from"efficient-easel/screen/lib/document/block-size-fields";import{VIEW_KEY_ACCESS as Dbe}from"efficient-easel/screen/lib/document/box-fields";import{jsx as MG,Fragment as Zye,jsxs as Jye}from"react/jsx-runtime";import{useSelectedHost as HG}from"efficient-easel/easel";function Qye({frameOf:e,note:o}){let t=HG()?.values,r=t?o(t,e(t)):null;return r?MG("p",{className:"es-field-hint",children:r}):null}var ebe=new Set(pd().filter(e=>e.startsWith(Gt.top)));function WG(e,o,t){let r=an({tablet:!0,siteSide:!0,...t?{label:t}:{},useFallback:()=>{let a=HG()?.values,n=a?e(a):0;return{top:n,bottom:n}}});return Object.fromEntries(Object.entries(r).map(([a,n])=>{let s=n.render;return!ebe.has(a)||typeof s!="function"?[a,n]:[a,{...n,render:i=>Jye(Zye,{children:[s(i),MG(Qye,{frameOf:e,note:o})]})}]}))}import{group as obe}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as tbe,deviceMetaOf as zG}from"efficient-easel/screen/lib/document/device-fields";import{DESIGN_GROUPS as xP,SETTINGS_BUCKETS as rbe}from"efficient-easel/panel";import{BUCKET_KEY as qo,DESIGN_GROUP_KEY as sc}from"efficient-easel/screen/lib/document/field-buckets";var Zf=rbe;var abe="Editor only \u2014 not shown live",gP={"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",[abe]:"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"},GG={"AlloyWheelsListing._gCards":"Design","Flex._gLink":"Link","LongRead._gLink":"Link"},jG={"Text._gSpacing":"Size","Heading._gSpacing":"Size"};function $G(e,o,t){let r=`${e}.${o}`;return $(jG,r)??$(GG,r)??$(gP,t)}function nbe(e){return e==="Animation"?[qo.Animation]:[qo.Design,sc[e]]}function hI(...e){let o=[];for(let t of e)for(let r of Object.values(t)){let a=zG(r),n=vr(a?a.inner:r),s=n?$(gP,n.label):void 0;if(s)for(let i of nbe(s))o.includes(i)||o.push(i)}return o}var Flo=[...hI(an({tablet:!0,siteSide:!0}),cl("full"),dl(),fl(),kd()),...Object.keys(an({tablet:!0,siteSide:!0})),...Object.keys(cl("full")),...Object.keys(dl()),...Object.keys(fl()),...Object.keys(kd())],Blo=[...hI(sl()),...Object.keys(sl())],Nlo=[...hI(ll()),...Object.keys(ll())],Dlo=[...hI(Rr()),...Object.keys(Rr())],Mlo=Object.keys(oN()),Hlo=Object.keys(tN()),sbe={"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)"},KG={Content:["Content"],Size:["Size"],Design:["Design","Style"],Layout:["Layout"],Position:["Position"],Advanced:["Advanced"],Link:["Link"],Anchor:["Anchor"],Animation:["Animation"]},hP={_gAnchor:"repeated the Anchor group heading above it (two tabs, 11.0.0)"};{let e={...an({tablet:!0,siteSide:!0}),...cl("full"),...dl(),...fl(),...sl(),...ll(),...Rr()};for(let o of Object.keys(hP)){let t=vr(e[o]),r=t?$(gP,t.label):void 0;if(!t||t.level!==2||!r||!KG[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 ibe=new Set(["_sContent","_sStyle","_sLayout","_sMedia"]),lbe=new Map([[qo.Design,"Content"],[qo.Animation,"Animation"],...xP.map(e=>[sc[e],e])]);function cbe(e){let o=`${e}.`;return Object.keys(sbe).filter(t=>t.startsWith(o)).map(t=>t.slice(o.length))}function dbe(e,o){let t=zG(e),r=obe(o);return t?tbe(t.tier,r):r}function fbe(e,o){let t=vr(o);return t?e==="Content"||e==="Animation"?NB(o,t.label):DB(o):o}function UG(e){return e==="Design"?xP:["Animation"]}function xI(e,o){let t=[],r=new Set(cbe(o)),a=new Set,n=!1,s=null;for(let[p,m]of Object.entries(e)){let h=vr(m);if(ibe.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=lbe.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===qo.Design||p===qo.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)||We(hP,p)){let S=$G(o,p,h.label);if(h.level!==2||!S||!KG[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:We(hP,p)});continue}let w=$G(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 ${[...xP,"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:dbe(m,h.label)]]})}let i=new Set(Object.entries(e).filter(([,p])=>vr(p)).map(([p])=>p));for(let[p,m]of[["BLOCK_KEY_GROUP",jG],["KEY_GROUP",GG]]){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=Zf.filter(p=>UG(p).some(m=>d.has(m))),u={};for(let p of f){u[qo[p]]=fh(p,p===f[0]?f:null);for(let m of UG(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[sc[m]]=Aw(m));for(let S of h)for(let[C,b]of S.entries)u[C]=fbe(m,b)}}return u}function VG(e){return qo.Design in e?e:{[qo.Design]:fh("Design",null),[sc.Content]:Aw("Content"),...e}}function YG(e){return Zf.some(o=>qo[o]in e)}function gI(e){let o=Zf.filter(r=>qo[r]in e);if(o.length===0)return e;let t={...e};for(let r of o)t[qo[r]]=fh(r,r===o[0]?o:null);return t}import{jsx as II}from"react/jsx-runtime";import{WidthIcon as pbe}from"efficient-easel/icons";import{SettingsField as ube,SettingsSwitch as mbe}from"efficient-easel/panel";import{group as hbe,iconOf as xbe,sharedStyleKinds as gbe}from"efficient-easel/screen/lib/document/box-fields";var Ibe="Gutter";function ybe({value:e,onChange:o,labelId:t}){let r=Qg(Mc()),a=Uf({[Vs]:e})??r,n=s=>o(s?r?void 0:Fk:Lk);return II(ube,{label:c(Ibe),labelId:t,icon:xbe(II(pbe,{})),action:II(mbe,{checked:a,onChange:n,ariaLabelledBy:t})})}function qG(){return gbe({_gWidth:hbe(sn),[Vs]:{type:"custom",render:({value:e,onChange:o,id:t,name:r})=>II(ybe,{value:e,onChange:o,labelId:`${t??r??Vs}-label`})}})}import{jsx as yP}from"react/jsx-runtime";import{group as bbe,sharedStyleKinds as ZG}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as Sbe}from"efficient-easel/screen/lib/document/device-fields";var wbe="Content cannot be wider than the background.",IP=e=>c(e==="content"?"Content width":"Full width");function JG(e){let{siteWidth:o,sectionBackgroundWidth:t,sectionContentWidth:r,themeFromDocument:a}=pe(),n=V(o)??Ke.default;return e.drawsFullOnItsOwn?{px:n,background:"full",content:"full"}:{px:n,background:(a?null:t)??"full",content:(a?null:r)??"content"}}var Cbe={read:cs},vbe={read:cs,drawsFullOnItsOwn:!0},Tbe={read:VF,clearOnContent:{fullWidth:void 0}};function kbe({source:e}){let o=e.read(So()),t=xr(),r=JG(e);return yP(Rh,{value:o.background??r.background,changed:o.background!==null,detail:IP(r.background),onChange:a=>t(qF(a)),onReset:()=>t(fw("background"))})}function Pbe({source:e}){let o=e.read(So()),t=xr(),r=l=>t({...l,...e.clearOnContent}),a=JG(e),n=(o.background??a.background)==="content",s=il({row:dw,label:mC,grid:{min:Ke.min,max:n?a.px:Ke.max,step:Ke.step},valueKey:Be.contentMax,view:"desktop",numbersIn:()=>o.contentMax!==null}),i=o.content??a.content;return yP(Lh,{mode:n&&i==="full"?"content":i,px:o.contentMax??a.px,max:n?a.px:Ke.max,changed:o.content!==null,detail:a.content==="full"?IP("full"):`${IP("content")} ${a.px}px`,fullClosed:n,hint:n?wbe:void 0,onMode:l=>r(XF(l)),onPx:l=>r({...ZF(l),...s?.unitPatch(!1)}),...s?{length:s}:{},onReset:()=>r(fw("content"))})}var XG=(e,o)=>Sbe("desktop",{type:"custom",render:()=>yP(e,{source:o})}),QG=e=>({[Be.background]:XG(kbe,e),[Be.content]:XG(Pbe,e),[Be.contentMax]:Td(),...ds(dw,Be.content)});function ej(e){let o=e?.drawsFullOnItsOwn?vbe:Cbe;return ZG({_gWidth:bbe(sn),...QG(o)})}function ico(){return ZG({...QG(Tbe),fullWidth:Td()})}import{deviceMetaOf as tj}from"efficient-easel/screen/lib/document/device-fields";import{noControlMetaOf as Ebe}from"efficient-easel/screen/lib/document/panel-no-control-mark";function _be(e,o){let t=tj(o),r=t?t.inner:o;if(vr(r)||r?.customize===!0)return!1;if(r?.type==="slot")return!0;let a=Ebe(r);return a==="always"?!1:a==="authored-copy"?Jn(e):!0}function oj(e){let o=tj(e),t=o?o.inner:e,r=vr(t);return r?BB(t)?0:r.level:null}function Obe(e,o,t){return t?o===0&&e===qo.Design||o===1&&e===sc.Content:!1}var Abe=new WeakMap,Rbe=new WeakMap;function rj(e,o="section"){let t=o==="page"?Rbe:Abe,r=t.get(e);if(r)return r;let a=Object.entries(e).map(([u,p])=>({key:u,field:p,level:oj(p),draws:_be(u,p)||o==="page"&&oj(p)===null&&Vw(u,p)})),n=o==="section"&&a.some(u=>Vw(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&&!Obe(a[u].key,p,n)&&s.add(a[u].key)}let i=n&&YG(e),l=i&&!(qo.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=gI(i?VG(d):d);return t.set(e,f),f}import{isShown as Lbe,showWhenFactReaders as Fbe}from"efficient-shell/format";var aj=new WeakMap,Bbe=new Set(Object.values(qo));function nj(e,o,t,r={}){if(!e)return e;let a=o?.props??{},n=a.id,s=Fbe(r,o,t),i=uA(t,{...s,parentOffersPositions:()=>{let h=ra(t.appState,n);return h===void 0?void 0:MA(h,n)},parentTileSlot:()=>{let h=ra(t.appState,n);return h===void 0?void 0:Ub(h,n)},heroGroupDepth:()=>uu(t.appState?.data,typeof n=="string"?n:"")}),l=[];for(let[h,I]of Object.entries(e)){let w=Ec(I);!w||Ku(w,"device")||Lbe(w,a,i)||l.push(h)}if(l.length===0)return e;let d=aj.get(e);d||aj.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=>Bbe.has(h))&&(m=gI(m)),d.set(f,m),m}var sj={spacingFields:KB,sidesPaddingFields:an,ownPaddingFields:WG,sectionShapeFields:ll,cardShapeFields:UB,cellWidthFields:jB,widthField:cl,boxGutterFields:qG,sectionOwnWidthFields:ej,heightFields:dl,anchorFields:fl,customCssFields:qB,stickFields:kd,sectionThemeFields:sl,animationTabFields:mI,blockSizeFields:({tablet:e,...o}={})=>Nbe({...o,shorten:!0,say:Jm,lengthUnits:ba,...e?{phone:Dbe}:{}}),assignSectionGroups:xI,dropEmptyHeadings:rj,rowsShownForNode:nj,SECTION_THEME_FOLLOW_LABEL:vS,BLOCK_THEME_FOLLOW_LABEL:tL,PartAnchors:M6};function yI(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=yI(s.arrayFields,o,t),d=yI(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 Mbe(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=iG(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 Hbe(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];Wbe(e,o,a);for(let n of a){let s=n.components.filter(Qp);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(!eu(n))continue;let s=Jp(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 bP(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(...bP(e,o,s.arrayFields,`${i}.`),...bP(e,o,s.objectFields,`${i}.`))}return a}function Wbe(e,o,t){let r=n=>{throw new Error(`efficient-web-builder: ${n} names "${vi}". 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(vi)&&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=bP(vi,n,s?.fields);i.length>0&&r(`the slot ${i.map(l=>`"${l}"`).join(", ")}, whose allow list`)}}function ij(e,o){let t=Object.entries(o?.host??{}),r=o?.categories??[],a=kk(o);if(Hbe(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?yI(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={...Qk(Object.keys(n),p,u),isHostBlock:h=>u.has(h),inspector:sj};for(let[h,I]of t){let w=Mbe(h,I,m),S=yI(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 lj(){let e=zbe();return $be(()=>ij(Ube(e),Vi(e)),[e])}import{jsx as CP,Fragment as cSe,jsxs as dSe}from"react/jsx-runtime";import{useContext as fSe,useEffect as pSe,useMemo as TI,useRef as Ej}from"react";import{EaselCanvas as uSe,repeatCopyAt as mSe,useEasel as hSe}from"efficient-easel/easel";import{jsx as SP}from"react/jsx-runtime";import{useEffect as Vbe,useState as Ybe}from"react";import{Banner as qbe}from"efficient-shell/ui";import{useSyncExternalStore as Gbe}from"react";import{useScreenDocument as jbe}from"efficient-easel/screen/components/ScreenDocumentContext";var Kbe=()=>()=>{},cj=()=>null;function bI(e){return Gbe(e?e.subscribe:Kbe,e?e.state:cj,e?e.state:cj)}function SI(){let{adapter:e}=jbe();return e?.pinnedChrome}var wI={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."},Xbe={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."},Zbe=wI.load,Jbe=wI.lock,Qbe=wI.conflict,eSe=wI.save;function oSe(e){if(!e)return null;if(e.loadFailed)return c(Zbe);if(e.lockHolder)return c(Jbe,{name:e.lockHolder.name||c("Somebody else")});if(e.conflict)return c(Qbe);if(e.saveFailed)return c(eSe);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(Xbe[o.problem],{section:t,name:r})}function tSe({report:e}){let o=oSe(bI(e)),[t,r]=Ybe(null);return Vbe(()=>{o||r(null)},[o]),!o||t===o?null:SP("aside",{className:"sf-canvas-notice",children:SP(qbe,{tone:"warning",onDismiss:()=>r(o),children:o})})}function dj(){return SP(tSe,{report:SI()})}import{jsx as vI}from"react/jsx-runtime";import{useState as kj}from"react";import{Banner as aSe,Button as nSe}from"efficient-shell/ui";import{UndoIcon as sSe}from"efficient-shell/icons/efficient";import{useScreenDocument as iSe}from"efficient-easel/screen/components/ScreenDocumentContext";import{useSyncExternalStore as uj}from"react";var Jf=!1,ic=null,wP=new Set;function ep(){for(let e of wP)e()}function mj(e){return wP.add(e),()=>{wP.delete(e)}}function hj(){Jf||(Jf=!0,ep())}function xj(){Jf&&(Jf=!1,ep())}function fj(){return Jf}function gj(){return uj(mj,fj,fj)}function pj(){return ic}function CI(){ic&&(ic=null,ep())}function Ij(){return uj(mj,pj,pj)}var Qf=class extends Error{constructor(){super("The editor's last changes could not be saved, so nothing was restored."),this.name="HeldEditsNotSaved"}};async function yj(e,o,t,{flushSave:r,reload:a}){if(!await r())throw new Qf;let n=await e.restore(o,t);return Cm(n.liveState),a(),n}async function bj({access:e,version:o,page:t,...r}){let a=await yj(e,o.id,t?{page:t.id}:{},r);ic={title:rSe(o,t??null),undo:a.undo},ep()}async function Sj({access:e,...o}){let t=ic?.undo;t&&(await yj(e,t,{},o),ic=null,ep())}function wj(e){return e.name?e.name:e.kind==="draft_before_restore"?c("Draft before restore"):c("Version {n}",{n:e.number})}function rSe(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 Cj(e){let o=e.changes.filter(r=>r.kind==="page").length,t=[...o?[lt("{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(rb(),{type:"conjunction"}).format(t)}catch{return t.join(", ")}}function vj(e){return e.change==="take_down"?c("{name} (taken down)",{name:e.name}):e.name}function Tj(e,o=new Date){let t=new Date(e);if(Number.isNaN(t.getTime()))return"";let r=rb(),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 lSe}from"efficient-easel/easel";function Pj(){let e=Ij(),{adapter:o,flushSave:t,reloadFromServer:r}=iSe(),a=o.siteVersions,[n,s]=kj(!1),[i,l]=kj(!1),d=async()=>{if(!(!a||n)){s(!0),l(!1);try{await Sj({access:a,flushSave:t,reload:r})}catch{l(!0)}finally{s(!1)}}},f=lSe({onPress:()=>{d()},busy:n});return e?vI("aside",{className:"sf-canvas-notice",children:vI(aSe,{tone:i?"danger":"info",title:e.title,onDismiss:CI,action:a&&e.undo?vI(nSe,{variant:"secondary",size:"sm",leftIcon:vI(sSe,{}),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 xSe,REPEAT_ATTRIBUTE as vP,REPEAT_INDEX_ATTRIBUTE as TP}from"efficient-easel/draw";import{usePreviewParts as gSe}from"efficient-easel/draw/client";import{ScreenDocumentContext as ISe}from"efficient-easel/screen/components/ScreenDocumentContext";function _j(e){let{mirrorHostStyles:o}=Hc(),t=c1(),r=kP(),a=Mc(),n=fSe(ISe),s=$u(n?.docId??null),i=hSe(w=>w.appState.data),l=K1(s,i),d=JSON.stringify(l),f=TI(()=>l,[d]),u=TI(()=>({...e.metadata??t??{},...r,...f}),[e.metadata,t,r,f]);pSe(()=>(Yk(a),()=>Yk(null)),[a]);let p=Ej(null),m=ySe(p),{onDocument:h}=e,I=w=>{p.current=w,h?.(w)};return dSe(cSe,{children:[CP(Pj,{}),CP(dj,{}),CP(uSe,{...e,onDocument:I,typing:m,metadata:u,height:"fill",mirrorStyles:o,frameWrapper:ox})]})}function kP(){let{sectionBackgroundWidth:e,themeFromDocument:o}=pe(),t=Mc();return TI(()=>QF(o?null:e,t),[e,t,o])}function ySe(e){let o=Ru(),t=gSe(),r=Ej({parts:t});return r.current={parts:t},TI(()=>{let a=(n,s)=>{let i=Sh(n,o),l,d=null,f=s??(i?null:rC(null,e.current,n)),u=!i&&f?mSe(f):null,p=u?xSe(n):null;if(u&&f&&p?.propKey){i=Ch({...u,nodeId:p.nodeId,key:p.propKey},o),l=p.propKey;let w=f.closest(`[${vP}][${TP}]`),S=`[${vP}="${wh(w?.getAttribute(vP)??"")}"][${TP}="${wh(w?.getAttribute(TP)??"")}"]`;d=()=>(f.ownerDocument??e.current)?.querySelector(S)??null}if(!i)return null;let m=f,h=()=>(m=rC(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?Gi(rm(I)):void 0,colorNameOf:Ot}}:null};return{at:n=>{let s=n.closest(`[${fo}]`),i=s?.getAttribute(fo);return s&&i?a(i,s):null},atSelection:()=>{let n=r.current.parts.selectedPartId;return n?a(n,null):null},onCopyText:n=>BN(n,o),copyValue:n=>FN(n,o),onChange:n=>{if(!n.typing){aC(null);return}let s=n.element.closest(`[${fo}]`)?.getAttribute(fo)??null;aC(s),s&&r.current.parts.selectedPartId!==s&&r.current.parts.select(s)}}},[o,e])}function Rj({open:e,onClose:o,takenSlugs:t,onCreated:r}){let a=TSe(),{adapter:n,siteId:s,templateId:i}=vSe(),l=je(a).pages,d=!i&&!!(l.starters&&l.createFromStarter),f=wSe(()=>s?{siteId:s}:{},[s]),u=lj(),p=kP(),[m,h]=EP(null),[I,w]=EP(Jl),[S,C]=EP(null),b=CSe(null),y=SSe();bSe(()=>{if(!e)return;if(w(Jl),!d){h([]);return}let _=!0;return h(null),l.starters(f).then(P=>_&&h(P),()=>{_&&(h([]),Aj.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{Aj.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:Oj(_,t),title:_,layout:{}}))},O=_=>{v(_.id,()=>l.createFromStarter(_.id,{title:_.title,slug:Oj(_.slug,t),...f}))},N=m??[],k=Z6(N),F=J6(I,N),T=PP("nav",{"aria-label":c("Pages"),className:"sf-add-page-nav",children:[Nt(_P,{label:c("All pages"),active:I===Jl,onClick:()=>w(Jl)}),k.map(_=>Nt(_P,{label:c(_.label),active:I===_.key,onClick:()=>w(_.key)},_.key)),wk(N).length>0?Nt("div",{className:"sf-add-page-group",children:Nt(_P,{label:c("From your template"),active:I===Gg,onClick:()=>w(Gg)})}):null]});return Nt(PSe,{open:e,onClose:o,size:"full",title:c("Add page"),initialFocus:b,children:Nt(LSe,{sidebarTop:PP(RSe,{onClick:L,disabled:!n.createPage||S!==null,children:[Nt(kSe,{"aria-hidden":!0}),c("Blank page")]}),sidebar:T,children:PP("div",{ref:b,tabIndex:-1,role:"region","aria-labelledby":y,className:"sf-add-page",children:[Nt(FSe,{id:y,level:2,as:"h3",children:c("Pages for your site")}),Nt(ASe,{tone:"default",className:"sf-add-page-sub",children:c("Choose a page and change the text, images and more.")}),m===null?Nt(OSe,{label:c("Loading\u2026")}):F.length===0?Nt(ESe,{title:c("No pages to start from"),description:c("Start with a blank page, then add sections.")}):Nt(_Se,{cols:1,smCols:2,lgCols:3,gap:8,children:F.map(_=>Nt(oU,{starter:_,config:u,metadata:p,busy:S===_.id,onAdd:O},_.id))})]})})})}import{jsx as BSe}from"react/jsx-runtime";import{createContext as NSe,useContext as Lj,useEffect as DSe,useRef as Fj}from"react";var OP=NSe(null);function Qdo({open:e,children:o}){let t=Fj(!!e);return BSe(OP.Provider,{value:t,children:o})}function Bj(){let e=Lj(OP);return()=>e?.current?(e.current=!1,!0):!1}function Nj(e){let o=Lj(OP),t=Fj(e);t.current=e,DSe(()=>{o?.current&&(t.current.setView("pages"),t.current.reveal())},[o])}var Uj="sf-editor-pages-collapsed-groups";function owe(){let e=RP(),{siteId:o,templateId:t}=zj(),r=je(e).pages;if(!(!r.duplicate||t))return(a,n)=>r.duplicate(a.id,{...n,...o?{siteId:o}:{}})}function Gj({onNavigate:e,onClose:o,activeSurface:t,onPreviewSurface:r}){let a=RP().chrome?.pageRows,n=JSe(),{adapter:s,capabilities:i,ready:l,currentSlug:d}=zj(),f=Cl(),{rows:u,reload:p,setRows:m,getRows:h}=Gd(),[I,w]=Zs(""),[S,C]=Zs(!1),[b,y]=Zs(null),[v,L]=Zs(!1),O=!!je(RP()).pages.createFromStarter,N=owe(),[k,F]=Zs(null),[T,_]=Zs(()=>{if(typeof window>"u")return new Set;try{let z=window.localStorage.getItem(Uj);return new Set(z?JSON.parse(z):[])}catch{return new Set}});Dj(()=>{try{window.localStorage.setItem(Uj,JSON.stringify([...T]))}catch{}},[T]);let P=z=>_(ke=>{let Oe=new Set(ke);return Oe.has(z)?Oe.delete(z):Oe.add(z),Oe}),A=Mj(()=>cA(u??[]),[u]),W=I.trim().toLowerCase(),G=z=>!W||z.toLowerCase().includes(W),Z=z=>W?!0:!T.has(z),X=Mj(()=>new Set((u??[]).map(z=>z.slug)),[u]),ce=()=>{if(i.pageCreationInAdminForm&&!O){n.send("storefront-editor:new-page");return}y(null),L(!0)},fe=Bj();Dj(()=>{fe()&&ce()},[]);let te=i.hasSiteSettings&&!!s.createPage,Te=async()=>{if(!(!l||S||!s.createPage)){C(!0),y(null);try{let z=await s.createPage(TL(c("New popup"),X));await p(),e(z.slug)}catch{y(c("Couldn\u2019t add the popup \u2014 please retry."))}finally{C(!1)}}},ve=WSe(null),[Re,Le]=Zs(null),nt=()=>{if(!te)return ce();if(Re)return Le(null);let z=ve.current?.getBoundingClientRect();z&&Le({top:z.bottom+6,right:Math.max(8,window.innerWidth-z.right)})},Zo=z=>{let ke=u??[],Oe=s.deletePage;if(!l||S||!Oe||ke.length<=1)return;let To=ke.findIndex(uo=>uo.id===z.id),eo=ke.filter(uo=>uo.id!==z.id),Ho=z.slug===d;Qh(z.id,!0),m(eo),y(null),Ho&&eo[0]&&e(eo[0].slug);let xo=()=>{Qh(z.id,!1);let uo=h()??[];if(uo.some(mt=>mt.id===z.id))return;let na=[...uo];na.splice(Math.max(0,Math.min(To,na.length)),0,z),m(na)};Wj.undoable(c("Deleted \u201C{name}\u201D",{name:z.label}),{actionLabel:c("Undo"),commit:async uo=>{await Oe(z.id,uo),Qh(z.id,!1)},undo:()=>{xo(),Ho&&e(z.slug)},onFail:()=>{xo(),Wj.error(c("Couldn\u2019t delete the page \u2014 please retry."))}})},ut=z=>n.send("storefront-editor:open-page",{slug:z}),Co=z=>{if(!G(z.label))return null;let ke=!t&&z.slug===d,Oe=i.canDeletePagesInline&&(u??[]).length>1,To=Vn(z),eo=lA(z),Ho=[...To?[{label:c("Dynamic"),tone:"info"}]:[],...eo?[{label:c("Lightbox"),tone:"success"}]:[],...z.draft?[{label:c("draft"),tone:"draft"}]:[]],xo=Ho.length>0?Ho:void 0,uo=!!N&&QSe(z),na=uo||i.pageCreationInAdminForm||Oe?kI(MSe,{children:[uo&&Ue(PI,{kind:"plain",label:c("Duplicate \u201C{name}\u201D",{name:z.label}),disabled:S,onClick:()=>F(z),children:Ue(YSe,{size:13})}),i.pageCreationInAdminForm&&Ue(PI,{kind:"plain",label:c("Page settings for \u201C{name}\u201D",{name:z.label}),onClick:()=>ut(z.slug),children:Ue(XSe,{size:13})}),Oe&&Ue(PI,{kind:"delete",label:c("Delete \u201C{name}\u201D",{name:z.label}),disabled:S,onClick:()=>Zo(z),children:Ue(AP,{name:"trash",size:13,strokeWidth:1.7,rounded:!0})})]}):void 0;return Ue($j,{icon:Ue(qSe,{size:14}),name:z.label,selected:ke,onSelect:()=>e(z.slug),badge:xo,actions:na,rowProps:{"data-page-slug":z.slug}},z.id)},Mo=(z,ke,Oe)=>{let To=Oe.filter(Boolean);if(To.length===0)return null;let eo=Z(z);return kI(HSe,{children:[Ue(KSe,{count:To.length,countLabel:lt("{n} page","{n} pages",To.length),expanded:eo,onToggle:()=>P(z),children:ke}),eo&&To]},z)},vo=(a?.rows??[]).filter(z=>G(z.label)).map(z=>{let ke=t===z.key;return Ue($j,{icon:z.icon,name:z.label,selected:ke,onSelect:()=>r(z.key),badge:{label:c("Preview"),tone:"warning"},actions:Ue(PI,{kind:"plain",label:c("Open the {name} in a new tab",{name:z.label}),onClick:()=>window.open(z.href,"_blank","noopener,noreferrer"),children:Ue(AP,{name:"external-link",size:13,strokeWidth:1.7,rounded:!0})}),rowProps:{"data-shop-surface":z.key}},z.key)}),me=i.hasSiteSettings&&!!a,so=(()=>{if(u===null)return null;let z=[],ke=!1;for(let Oe of A){me&&!ke&&Oe.key.startsWith("system:")&&(z.push(Mo("shop",a.title,vo)),ke=!0);let To=Oe.key===Rb||Oe.label===Ab?c(Oe.label):Oe.label;z.push(Mo(Oe.key,To,Oe.rows.map(Co)))}return me&&!ke&&z.push(Mo("shop",a.title,vo)),z})();return kI("div",{className:"sf-pages",children:[Ue($Se,{icon:Ue(ZSe,{}),title:c("Pages"),context:f,actions:Ue(USe,{buttonRef:ve,label:te?c("Add"):c("New page"),hasPopup:te?"menu":void 0,expanded:te?Re!==null:void 0,onClick:nt,children:Ue(VSe,{size:15})})}),Re&&Ue(GSe,{portal:!0,style:{top:Re.top,right:Re.right},onClose:()=>Le(null),children:kI("div",{role:"menu","aria-label":c("Add"),children:[Ue(Hj,{role:"menuitem",onClick:()=>{Le(null),ce()},children:c("Page")}),Ue(Hj,{role:"menuitem",disabled:S,onClick:()=>{Le(null),Te()},children:c("Popup")})]})}),Ue("div",{className:"sf-pages-find",children:Ue(zSe,{type:"search",leftIcon:Ue(AP,{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&&Ue("div",{className:"sf-note sf-note--error",role:"alert",children:b}),so===null?Ue("div",{className:"sf-note",children:c("Loading\u2026")}):so.some(Boolean)?Ue(jSe,{ariaLabel:c("Pages"),className:"sf-scroll",children:so}):Ue("div",{className:"sf-note",children:I.trim()?c("No pages match your search"):c("No pages yet. Add one with + above.")}),N&&k&&Ue(ewe,{source:{title:k.label,slug:k.slug},taken:X,host:Tu(),duplicate:z=>N(k,z),onClose:()=>F(null),onDuplicated:z=>{F(null),p(),e(z.slug)}},k.id),v?Ue(Rj,{open:!0,onClose:()=>L(!1),takenSlugs:X,onCreated:z=>{L(!1),p(),e(z.slug)}}):null]})}import{jsx as Vj}from"react/jsx-runtime";import{createContext as awe,useCallback as nwe,useContext as swe,useMemo as iwe,useState as lwe}from"react";import{CanvasChromeContext as cwe}from"efficient-easel/easel";import{useSelectHandler as dwe}from"efficient-easel/draw/client";import{parseHexColor as twe}from"efficient-shell/format";var EI=["chat-bubble-left-right","chat-bubble-oval-left-ellipsis","chat","megaphone","phone","sparkles"],lc=EI[0],rwe=["right","left"],Js="right";function _I(e){return EI.includes(e??"")?e:lc}function jj(e){return Q(rwe,Js,e)}function Kj(e){return e&&twe(e)===e.toLowerCase()?e.toLowerCase():""}var Yj="chat",OI={enabled:!0,title:"",subtitle:"",greeting:"",launcherColor:"",launcherIcon:"",launcherPosition:Js,launcherLabel:"",showOnPhones:!0};function Rfo(e){return{enabled:e.enabled,title:e.title,subtitle:e.subtitle,greeting:e.greeting,launcherColor:Kj(e.launcherColor),launcherIcon:e.launcherIcon?_I(e.launcherIcon):"",launcherPosition:jj(e.launcherPosition),launcherLabel:e.launcherLabel??"",showOnPhones:e.showOnPhones!==!1}}var qj=awe({chat:OI,setChat:()=>{},setSelected:()=>{},setSelectHandler:()=>{}});function Lfo({children:e,chat:o=OI,onChatChange:t}){let[r,a]=lwe(!1),n=nwe(d=>t?.(d),[t]),{select:s,setSelectHandler:i}=dwe(),l=iwe(()=>({selected:()=>r?Yj:null,select:d=>d===Yj&&s()}),[r,s]);return Vj(qj.Provider,{value:{chat:o,setChat:n,setSelected:a,setSelectHandler:i},children:Vj(cwe.Provider,{value:l,children:e})})}var AI=()=>swe(qj);import{jsx as LP}from"react/jsx-runtime";import{DesktopIcon as fwe,PhoneIcon as pwe,TabletIcon as uwe}from"efficient-easel/icons";import{VIEW_TIERS as mwe,VIEW_TIER_LABEL as hwe}from"efficient-easel/draw";var xwe={desktop:LP(fwe,{}),tablet:LP(uwe,{}),mobile:LP(pwe,{})},Xj=mwe.map(e=>({id:e,get label(){return c(hwe[e])},icon:xwe[e]}));import{PreviewDeviceContext as EEe}from"efficient-easel/draw/client";import{jsx as gwe}from"react/jsx-runtime";import{createContext as Iwe,useCallback as Zj,useContext as ywe,useMemo as bwe,useRef as Swe}from"react";var wwe=Object.fromEntries(Ou.map(e=>[e,{value:"",error:null}])),Jj=Iwe({links:e1,rows:wwe,canSave:!1,saveLink:async()=>({ok:!1,error:"There is no website to save to."}),openPanel:()=>{},setOpenHandler:()=>{}});function zfo({children:e,value:o}){let t=Swe(()=>{}),r=Zj(()=>t.current(),[]),a=Zj(s=>{t.current=s},[]),n=bwe(()=>({...o,openPanel:r,setOpenHandler:a}),[o,r,a]);return gwe(Jj.Provider,{value:n,children:e})}var op=()=>ywe(Jj);import{jsx as Cwe}from"react/jsx-runtime";import{createContext as vwe,useContext as Twe,useMemo as kwe,useState as Pwe}from"react";var Qj=vwe(null);function Vfo({children:e}){let[o,t]=Pwe(null),r=kwe(()=>({surface:o,setSurface:t}),[o]);return Cwe(Qj.Provider,{value:r,children:e})}function eK(){return Twe(Qj)??{surface:null,setSurface:()=>{}}}import{createPreviewSelectionContext as Ewe}from"efficient-easel/draw/client";var{Provider:Xfo,useSelection:RI}=Ewe("selectedHeroPart");import{jsx as De,jsxs as En,Fragment as h8}from"react/jsx-runtime";import{useEasel as oke,useRootFields as tke}from"efficient-easel/easel";import{EmptyState as rke}from"efficient-shell/ui";function oK({kind:e,pageName:o}){return{name:o?.trim()||c("This page"),kindLabel:Vn({kind:e})?c("Template"):c("Page")}}import{headWords as y8,InspectorHead as ake,InspectorIconButton as x8}from"efficient-easel/chrome";import{DuplicateIcon as nke,TrashIcon as ske}from"efficient-easel/icons";import{panelFieldsOf as ike}from"efficient-easel/screen/lib/document/panel-fields";import{jsx as H,Fragment as be,jsxs as Ce}from"react/jsx-runtime";import{BlockBannerIcon as Awe,BlockBoxIcon as Rwe,BlockButtonIcon as Lwe,BlockDividerIcon as rK,BlockFooterIcon as aK,BlockHeadingIcon as Fwe,BlockProductIcon as Bwe,BlockSocialIcon as Nwe,BlockTextIcon as Dwe,CardPaymentIcon as Mwe,ChatIcon as Hwe,AccountIcon as Wwe,GlobeIcon as $we,GridIcon as Uwe,ImageIcon as BP,MapIcon as zwe,MediaIcon as Gwe,PageIcon as jwe}from"efficient-easel/icons";import{jsx as FP,Fragment as _we,jsxs as Owe}from"react/jsx-runtime";var tK=Owe(_we,{children:[FP("circle",{cx:"9",cy:"20",r:"1.3"}),FP("circle",{cx:"18",cy:"20",r:"1.3"}),FP("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 Kwe={header:Ce(be,{children:[H("rect",{x:"3",y:"5",width:"18",height:"14",rx:"2"}),H("path",{d:"M3 9.5h18"})]}),social:Ce(be,{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:Ce(be,{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:Ce(be,{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:Ce(be,{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:Ce(be,{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:Ce(be,{children:[H("circle",{cx:"11",cy:"11",r:"6"}),H("path",{d:"M20 20l-4.2-4.2"})]}),CartBlock:tK,CountrySwitchBlock:Ce(be,{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:Ce(be,{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:Ce(be,{children:[H("path",{d:"M3 9h18"}),H("path",{d:"M3 14h8M14 14h2M18 14h3"})]}),Hero:Ce(be,{children:[H("rect",{x:"3",y:"4",width:"18",height:"16",rx:"2"}),H("path",{d:"M7 13.5h7M7 16.5h10"})]}),HeroSlide:Ce(be,{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:Ce(be,{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:Ce(be,{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:Ce(be,{children:[H("rect",{x:"6",y:"4",width:"12",height:"16",rx:"2"}),H("path",{d:"M9 15h6M9 17.5h4"})]}),AlloyWheelsListing:Ce(be,{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:Ce(be,{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:Ce(be,{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:Ce(be,{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:Ce(be,{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:Ce(be,{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:Ce(be,{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:Ce(be,{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:Ce(be,{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:Ce(be,{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:Ce(be,{children:[H("path",{d:"M3.5 20h17"}),H("path",{d:"M6 20v-7M11 20V7M16 20v-5M20.5 20v-9"})]}),Logos:Ce(be,{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:Ce(be,{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:Ce(be,{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:Ce(be,{children:[H("rect",{x:"3",y:"4",width:"18",height:"16",rx:"2"}),H("path",{d:"M3 13.5h18M7 16.8h6"})]}),Split:Ce(be,{children:[H("rect",{x:"3",y:"5",width:"8",height:"14",rx:"1.5"}),H("path",{d:"M14 8.5h6M14 12h6M14 15.5h4"})]}),Eyebrow:Ce(be,{children:[H("path",{d:"M4 8.5h4.5M11 8.5h9"}),H("path",{d:"M4 14.5h16"})]}),HeroGroup:Ce(be,{children:[H("rect",{x:"3.5",y:"4.5",width:"17",height:"15",rx:"2"}),H("path",{d:"M7 9h8M7 12.5h10M7 16h6"})]}),Form:Ce(be,{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(be,{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:Ce(be,{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:Ce(be,{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:Ce(be,{children:[H("path",{d:"M4 7h2M4 12h2M4 17h2"}),H("path",{d:"M9 7h11M9 12h9M9 17h10"})]}),ListSearch:Ce(be,{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"})},Vwe=H("rect",{x:"4",y:"4",width:"16",height:"16",rx:"2.5"}),Ywe={footer:aK,Footer:aK,Divider:rK,FooterDivider:rK,Banner:Awe,Flex:Rwe,FooterSocial:Nwe,FooterPayment:Mwe,page:jwe,website:$we,AccountBlock:Wwe,chat:Hwe,Heading:Fwe,Text:Dwe,ImageBlock:BP,ButtonBlock:Lwe,LocationMap:zwe,Grid:Uwe,ProductRef:Bwe,heroMedia:Gwe,heroImage:BP,heroImage2:BP},qwe={MenuBlock:"FooterMenu",EmailFormBlock:"FooterEmailSignup",SocialLogosBlock:"FooterSocial",PaymentLogosBlock:"FooterPayment",SiteHeader:"header",SiteFooter:"footer"};function Qs({type:e,size:o=16,className:t}){let r=qwe[e]??e,a=Ywe[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:Kwe[r]??Vwe})}import{PanelHideButton as g8}from"efficient-easel/screen/components/SidePanelHead";import{useEaselSession as lke}from"efficient-easel/screen/lib/session-context";import{jsx as Ne,jsxs as tp,Fragment as Xwe}from"react/jsx-runtime";import{useEffect as Zwe,useId as nK,useState as Jwe}from"react";import{IconPicker as Qwe}from"efficient-shell/ui";import{SettingsDefaultReset as eCe,SettingsField as rp,SettingsSegmented as oCe,SettingsSwitch as sK}from"efficient-easel/panel";import{ButtonIcon as tCe,ButtonIconIcon as rCe,EyeIcon as aCe,PhoneIcon as nCe,PlacementIcon as sCe,TypeIcon as iCe}from"efficient-easel/icons";var lCe="Chat with us",cCe="We usually reply within a few minutes",dCe="Hi! Ask us anything \u2014 about a wheel, an order, or fitment. Leave your details and we\u2019ll reply.";function LI({label:e,value:o,placeholder:t,onCommit:r,multiline:a=!1,hint:n}){let[s,i]=Jwe(o);Zwe(()=>i(o),[o]);let l=()=>{s!==o&&r(s)};return Ne(rp,{label:e,icon:Ne(iCe,{}),changed:o!=="",action:Ne(ap,{label:e,changed:o!=="",onReset:()=>r("")}),hint:n,children:a?Ne("textarea",{value:s,placeholder:t,rows:3,onChange:d=>i(d.target.value),onBlur:l,"aria-label":e}):Ne("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 ap({label:e,changed:o,onReset:t}){return Ne(eCe,{words:de()?.panel,label:e,changed:o,onReset:t})}function fCe({label:e,icon:o,checked:t,fallback:r,onChange:a,hint:n}){let s=nK();return Ne(rp,{label:e,labelId:s,icon:o,changed:t!==r,action:tp("span",{className:"inline-flex items-center gap-2",children:[Ne(sK,{checked:t,onChange:a,ariaLabelledBy:s}),Ne(ap,{label:e,changed:t!==r,onReset:()=>a(r)})]}),hint:n})}var pCe=EI.map(e=>({value:e,icon:Ju(e)}));function uCe(){let{theme:e}=pe(),o=ko(e).themes[0];return Lc(o)??o?.accent??""}function iK(){let{chat:e,setChat:o}=AI(),t=nK(),r=uCe(),a=e.launcherIcon?_I(e.launcherIcon):lc;return tp(Xwe,{children:[Ne(rp,{label:c("Show the chat bubble"),labelId:t,icon:Ne(aCe,{}),changed:!e.enabled,action:tp("span",{className:"inline-flex items-center gap-2",children:[Ne(sK,{checked:e.enabled,onChange:n=>o({enabled:n}),ariaLabelledBy:t}),Ne(ap,{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.")}),tp(Rw,{title:c("Look"),children:[Ne(yt,{label:c("Button color"),icon:Ne(tCe,{}),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:""})}),Ne(rp,{label:c("Icon"),icon:Ne(rCe,{}),value:Ne(uw,{value:a}),changed:a!==lc,action:Ne(ap,{label:c("Icon"),changed:a!==lc,onReset:()=>o({launcherIcon:""})}),children:Ne(Qwe,{label:c("Icon"),value:a,options:pCe,onChange:n=>o({launcherIcon:n===lc?"":n})})}),Ne(rp,{label:c("Position"),icon:Ne(sCe,{}),changed:e.launcherPosition!==Js,action:Ne(ap,{label:c("Position"),changed:e.launcherPosition!==Js,onReset:()=>o({launcherPosition:Js})}),children:Ne(oCe,{options:[{label:c("Right"),id:"right"},{label:c("Left"),id:"left"}],value:e.launcherPosition,ariaLabel:c("Position"),onChange:n=>o({launcherPosition:n})})}),Ne(LI,{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")}),Ne(fCe,{label:c("Show on phones"),icon:Ne(nCe,{}),checked:e.showOnPhones,fallback:OI.showOnPhones,onChange:n=>o({showOnPhones:n})})]}),tp(Rw,{title:c("Wording"),children:[Ne(LI,{label:c("Title"),value:e.title,placeholder:lCe,onCommit:n=>o({title:n})}),Ne(LI,{label:c("Subtitle"),value:e.subtitle,placeholder:cCe,onCommit:n=>o({subtitle:n})}),Ne(LI,{label:c("Greeting message"),value:e.greeting,placeholder:dCe,onCommit:n=>o({greeting:n}),multiline:!0}),Ne("p",{className:"es-field-hint",children:c("Leave a field blank to use the built-in wording.")})]})]})}import{jsx as ei,Fragment as rE,jsxs as pK}from"react/jsx-runtime";import{useEffect as zCe,useId as dK,useState as fK}from"react";import{SettingsField as GCe}from"efficient-easel/panel";import{jsx as FCe}from"react/jsx-runtime";import{forwardRef as mCe,createElement as NP}from"react";var lK={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 ue=(e,o,t,r)=>{let a=mCe(({color:n="currentColor",size:s=24,stroke:i=2,title:l,className:d,children:f,...u},p)=>NP("svg",{ref:p,...lK[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&&NP("title",{key:"svg-title"},l),...r.map(([m,h])=>NP(m,h)),...Array.isArray(f)?f:[f]]));return a.displayName=`${t}`,a};var hCe=[["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"}]],DP=ue("outline","brand-facebook","BrandFacebook",hCe);var xCe=[["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"}]],MP=ue("outline","brand-instagram","BrandInstagram",xCe);var gCe=[["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"}]],HP=ue("outline","brand-line","BrandLine",gCe);var ICe=[["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"}]],WP=ue("outline","brand-linkedin","BrandLinkedin",ICe);var yCe=[["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"}]],$P=ue("outline","brand-pinterest","BrandPinterest",yCe);var bCe=[["path",{d:"M15 10l-4 4l6 6l4 -16l-18 7l4 2l2 6l3 -4",key:"svg-0"}]],UP=ue("outline","brand-telegram","BrandTelegram",bCe);var SCe=[["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"}]],zP=ue("outline","brand-tiktok","BrandTiktok",SCe);var wCe=[["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"}]],GP=ue("outline","brand-wechat","BrandWechat",wCe);var CCe=[["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"}]],jP=ue("outline","brand-whatsapp","BrandWhatsapp",CCe);var vCe=[["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"}]],KP=ue("outline","brand-x","BrandX",vCe);var TCe=[["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"}]],VP=ue("outline","brand-youtube","BrandYoutube",TCe);var kCe=[["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"}]],YP=ue("filled","brand-facebook-filled","BrandFacebookFilled",kCe);var PCe=[["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"}]],qP=ue("filled","brand-instagram-filled","BrandInstagramFilled",PCe);var ECe=[["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"}]],XP=ue("filled","brand-linkedin-filled","BrandLinkedinFilled",ECe);var _Ce=[["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"}]],ZP=ue("filled","brand-pinterest-filled","BrandPinterestFilled",_Ce);var OCe=[["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=ue("filled","brand-tiktok-filled","BrandTiktokFilled",OCe);var ACe=[["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"}]],QP=ue("filled","brand-whatsapp-filled","BrandWhatsappFilled",ACe);var RCe=[["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"}]],eE=ue("filled","brand-x-filled","BrandXFilled",RCe);var LCe=[["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"}]],oE=ue("filled","brand-youtube-filled","BrandYoutubeFilled",LCe);var Luo="outline",FI={fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},BCe={},tE={fillRule:"evenodd"},NCe=[["path",{...FI,d:"M21 4L3 11L7 13L9 19L12 15L17 20z"}],["path",{...tE,d:"M21 4L3 11L7 13L9 19L12 15L17 20zM15.212 8.939 10.576 13.576 11.424 14.424 16.061 9.788z"}]],DCe=[["path",{...FI,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",{...BCe,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("")}]],MCe=[["path",{...FI,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",{...FI,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",{...tE,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",{...tE,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("")}]],HCe=ue("filled","brand-telegram-filled","BrandTelegramFilled",NCe),WCe=ue("filled","brand-line-filled","BrandLineFilled",DCe),$Ce=ue("filled","brand-wechat-filled","BrandWechatFilled",MCe),UCe={instagram:{outline:MP,solid:qP},facebook:{outline:DP,solid:YP},tiktok:{outline:zP,solid:JP},youtube:{outline:VP,solid:oE},x:{outline:KP,solid:eE},linkedin:{outline:WP,solid:XP},pinterest:{outline:$P,solid:ZP},whatsapp:{outline:jP,solid:QP},telegram:{outline:UP,solid:HCe},line:{outline:HP,solid:WCe},wechat:{outline:GP,solid:$Ce}};function cK({platform:e,iconStyle:o,size:t}){let r=UCe[e][o];return FCe(r,{size:t,stroke:1.75,"aria-hidden":"true",focusable:"false"})}var jCe={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 KCe({platform:e}){let{rows:o,saveLink:t}=op(),{value:r,error:a}=o[e],[n,s]=fK(r),[i,l]=fK(!1),d=dK(),f=dK();zCe(()=>s(r),[r]);let u=async()=>{if(n.trim()===r){n!==r&&s(r);return}l(!0),await t(e,n),l(!1)},p=QO[e];return pK(rE,{children:[ei(GCe,{label:c(p),htmlFor:d,icon:ei(cK,{platform:e,iconStyle:"outline",size:18}),children:ei("input",{id:d,type:"text",inputMode:"url",value:n,placeholder:jCe[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&&ei("p",{id:f,className:"sf-note sf-note--error",role:"alert",children:a})]})}function uK({unavailable:e}){let{canSave:o}=op();return!o&&e?ei(rE,{children:e}):pK(rE,{children:[ei("p",{className:"es-field-hint",children:c("Paste a link to each profile. A platform left empty shows nothing on the site.")}),Ou.map(t=>ei(KCe,{platform:t},t))]})}import{jsx as ri,Fragment as Ive,jsxs as yve}from"react/jsx-runtime";import{useId as bve,useMemo as Sve}from"react";import{useEasel as wve}from"efficient-easel/easel";import{SettingsField as Cve,SettingsSwitch as vve}from"efficient-easel/panel";import{EyeIcon as Tve}from"efficient-easel/icons";import{fieldShownInView as kve}from"efficient-easel/fields";import{usePreviewDevice as Pve}from"efficient-easel/draw/client";import{ROOT_ZONE as Eve}from"efficient-easel/draw";import{jsx as ti,Fragment as qCe}from"react/jsx-runtime";import{createContext as XCe,useContext as ZCe,useLayoutEffect as JCe,useMemo as hK,useRef as QCe,useState as xK}from"react";import{useEasel as gK,useSelectedFields as eve}from"efficient-easel/easel";import{fieldShownInView as ove,Inspector as tve,LEAD_BAND_KEY as rve,planFields as IK}from"efficient-easel/fields";function mK({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 VCe}from"react/jsx-runtime";import{EmptyState as YCe}from"efficient-shell/ui";function oi(){return VCe(YCe,{variant:"none",icon:!1,message:c("These settings apply to every view.")})}import{usePreviewDevice as ave}from"efficient-easel/draw/client";import{deviceField as nve}from"efficient-easel/screen/lib/document/device-fields";var sve="Text",aE=new Map,BI=new Set,ive=Object.fromEntries(Zf.map(e=>{let o=FB[e];return[e,ti(o,{},e)]})),yK=XCe(null),lve={_partBody:nve("each",{type:"custom",render:()=>ti(cve,{})})};function cve(){return ti(qCe,{children:ZCe(yK)})}function Lr({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}=eve(),p=hK(()=>a?{...d,...a.values}:d,[d,a?.values]),m=(te,Te)=>a?.keys.has(te)?a.onChange(te,Te):u(te,Te),h=ave(),{appState:I,config:w}=gK(te=>te),S=pA(h,w,I.data.content??[],I.ui.itemSelector),C=n===void 0?q2(l,t):lve,b=hK(()=>{let te=r?.length?Object.fromEntries(Object.entries(C).filter(([Te])=>!r.includes(Te))):C;return a?{...te,...a.fields}:te},[C,r,a?.fields]),y=Fb(b,p,S),[v,L]=xK(()=>new Set(BI)),O=ove({},h),N={key:rve,title:sve},k=gK(te=>te.selectedItem)!==null,F=a?.part??t??"",T=`${i}:${F}:${String(h)}`,[_,P]=xK(()=>({tab:aE.get(T)})),A=`${i}:${F}`,W=QCe(null),G={...S,node:p},Z=IK(y,{values:p,context:G}).buckets,X=mK({allTabs:k,remembered:aE.get(T),inherited:W.current?.panel===A?W.current.tab:_.tab,buckets:Z,hasText:O&&o>0}),ce=!O&&!Z.includes(X)&&(IK(Fb(b,p,{...S,device:"desktop"}),{values:p,context:{...G,device:"desktop"}}).buckets.includes(X)||X==="Design"&&o>0);JCe(()=>{W.current={panel:A,tab:X}});let fe=X==="Design";return ti(yK.Provider,{value:n??null,children:ti(Fw.Provider,{value:a?p:null,children:ti(tve,{fields:y,values:p,onChange:m,readOnly:f,allTabs:k,showWhenContext:G,context:{itemWord:s},tab:X,onTab:te=>{aE.set(T,te),P({tab:te})},tabIcons:ive,idPrefix:i,ariaLabel:c("Section settings"),lead:fe?e:null,leadFold:N,closedFolds:v,onFold:(te,Te)=>{Te?BI.delete(te):BI.add(te),L(new Set(BI))},children:ce&&ti(oi,{})})})})}import{useMemo as dve}from"react";import{useEasel as fve}from"efficient-easel/easel";import{useSectionOps as pve}from"efficient-easel/screen/lib/document/use-section-ops";var bK=new Map,uve=e=>{let o=bK.get(e);return o||bK.set(e,o=xI(mI(e),`part:${e}`)),o},mve=new Set(yv);function cc(e,o,t){let{getItemById:r,getSelectorForId:a}=fve(f=>f),n=pve(),s=r(e)?.props??{},i=Ps(s,o),l=JSON.stringify(i),d=dve(()=>Object.fromEntries(yv.map(f=>[f,i[f]])),[l]);return{part:o,fields:uve(t),values:d,keys:mve,onChange:(f,u)=>{let p=a(e),m=r(e);if(!p||!m)return;let h=vH(m.props??{},o,f,u);n.replaceComponent(p.zone,p.index,{...m,props:h})}}}import{Fragment as hve,createElement as xve}from"react";import{deviceField as nE}from"efficient-easel/screen/lib/document/device-fields";var Xo=()=>({type:"custom",render:()=>xve(hve)});var sE={words:Xo(),sourceNote:Xo(),style:Xo(),font:Xo(),italic:Xo(),fontSize:nE("each",Xo()),lineHeight:Xo(),letterSpacing:Xo(),paragraphSpacing:Xo(),padding:Xo(),align:nE("each",Xo()),letterCase:Xo(),fixedSizeHint:nE("each",Xo()),regionNote:Xo(),regionStyle:Xo()},gve=["fontSize","align"];function SK(e){return gve.includes(e)}var wK={showTicker:Xo(),items:Xo()};function CK({heroId:e}){let{appState:o,dispatch:t}=wve(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=Sve(()=>{let m=n?.props.tickerItems;return Array.isArray(m)?m:F4.map(h=>({text:h}))},[n]),l=bve(),d=Pve(),f=m=>kve(wK[m],d),u=cc(e,B4,"block");if(!n)return ri("p",{className:"sf-note",children:c("This ticker\u2019s hero is no longer on the page.")});let p=m=>t({type:"replace",destinationZone:Eve,destinationIndex:a,data:{...n,props:{...n.props,...m}}});return ri(Lr,{motion:u,body:yve(Ive,{children:[!f("showTicker")&&!f("items")&&ri(oi,{}),f("showTicker")&&ri(Cve,{label:c("Show ticker"),labelId:l,icon:ri(Tve,{}),action:ri(vve,{checked:s,onChange:m=>p({showTicker:m}),ariaLabelledBy:l})}),f("items")&&ri(Hw,{label:Mw.label,icon:Mw.icon,items:i,placeholder:"item",onChange:m=>p({tickerItems:m}),markup:!0})]})})}import{jsx as re,Fragment as ip,jsxs as cr}from"react/jsx-runtime";import{useContext as Uve,useEffect as iE,useRef as zve,useState as FK}from"react";import{FieldSelect as Gve,InspectorField as jve,fieldShownInView as Kve}from"efficient-easel/fields";import{InertHint as zK,SettingsField as Vve}from"efficient-easel/panel";import{InspectorUpLevel as $I}from"efficient-easel/chrome";import{StylesIcon as Yve,TypeIcon as qve}from"efficient-easel/icons";import{useEasel as Xve}from"efficient-easel/easel";import{TextPartPanel as BK}from"efficient-easel/copy";import{Button as Zve,IconButton as Jve,Tooltip as Qve}from"efficient-shell/ui";import{jsx as kK,jsxs as _ve}from"react/jsx-runtime";import{DEFAULT_EASEL_STRINGS as Ove}from"efficient-easel/strings";import{COPY_CELLS as dc,COPY_CELL_LENGTHS as vK,CopyBox as Ave,lengthCellUnits as Rve}from"efficient-easel/copy";import{PaddingYIcon as Lve}from"efficient-easel/icons";import{onDesktopWords as Fve}from"efficient-easel/screen/lib/document/box-fields";var TK=Ove.copy.cells,Bve={kind:"spacing"},Nve=["left","center","right","justify"];function NI(e,o,t,r="desktop"){let a=Hd(e),n=_C(r),s=e[n]??e.size??o.sizePx,i=wD(e,r),l=(f,u,p,m,h)=>{let I=Xt[p];return Rve({preset:f,row:u,table:ba,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:kK(Lve,{}),unit:"px",step:TC,shiftStep:10,min:CC,max:vC};return[{...dc.fontSize,key:"fontSize",value:e[n],styleValue:Math.round(o.sizePx),onChange:f=>t({[n]:f??null}),...l(dc.fontSize,vK.fontSize,n,Math.round(o.sizePx),TK.fontSize),...n==="size"?{}:{reset:{detail:i?Fve(f=>c(f),`${i.px}px`,i.view):void 0}}},{...dc.lineHeight,key:"lineHeight",value:a.lineHeight,styleValue:o.lineRatio,onChange:f=>t(f===void 0?{lineHeight:null,line:null}:{lineHeight:f})},{...dc.letterSpacing,key:"letterSpacing",scale:s,value:a.letterSpacingEm,styleValue:o.letterEm,onChange:f=>t(f===void 0?{letterSpacing:null,letter:null}:{letterSpacing:f})},{...dc.paragraphSpacing,key:"paragraphSpacing",value:e.paragraphSpacing,styleValue:0,onChange:f=>t({paragraphSpacing:f??null}),...l(dc.paragraphSpacing,vK.paragraphSpacing,"paragraphSpacing",0,TK.paragraphSpacing)},{...d,value:e.padding,styleValue:o.paddingPx,onChange:f=>t({padding:f??null}),...l(d,Bve,"padding",o.paddingPx,"Padding")}]}function PK({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=NI(n,s,i),h=tC(r,t);return _ve("div",{className:"sf-part-textbox",children:[u,kK(Ave,{value:e,onChange:o,multiline:t,placeholder:d,ariaLabel:f,rules:Fp,tools:h,barShows:p?"focus":"always",colors:r?l:[],colorNameOf:Ot,align:a?{value:n.align??s.align,allow:Nve,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 NK}from"efficient-easel/draw/client";import{jsx as DI,Fragment as Dve,jsxs as Mve}from"react/jsx-runtime";import{Button as EK,Dialog as Hve}from"efficient-shell/ui";function _K({styleName:e,onCancel:o,onConfirm:t}){return DI(Hve,{open:!0,onClose:o,role:"alertdialog",size:"sm",title:c("Update {style}?",{style:e}),footer:Mve(Dve,{children:[DI(EK,{variant:"secondary",onClick:o,children:c("Cancel")}),DI(EK,{variant:"primary",onClick:t,children:c("Update style")})]}),children:DI("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 eTe}from"efficient-easel/screen/components/ScreenDocumentContext";import{usePreviewDevice as oTe}from"efficient-easel/draw/client";import{shownTier as HI}from"efficient-easel/screen/lib/document/device-fields";import{TEXT_FIELD_MARKER as tTe,viewKeyAt as rTe}from"efficient-easel/draw";import{useSectionOps as aTe}from"efficient-easel/screen/lib/document/use-section-ops";import{useEaselHost as nTe}from"efficient-easel/screen/lib/host";function Wve(e){let o=new Set([...Object.keys($(ym,e)??{}),...$(bm,e)??[]]);for(let[t,r]of Object.entries($(iS,e)??{}))r.verb==="snapshot"&&o.add(t);return[...o].sort()}var $ve={CollectionCard:"product",FooterMenu:"menu",Gallery:"product",GalleryItem:"product",ProductGrid:"product",ProductHero:"product",SpecTable:"product",Events:"blog",FeaturedCover:"blog",LongRead:"blog",SubscribeBlogs:"blog"},OK={product:"Synced from the product.",blog:"Synced from the blog post.",menu:"Synced from the site menu."},AK="Open",RK={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 fc(e){let o=e?.source?.slug;return Se(o)}function np(e){return $($ve,e)??null}function LK(e,o){let t=np(e);return t&&Wve(e).includes(o)?t:null}function MI(e){let o=e?.menu?.id;return Se(o)}function lE(e){return e?c(e):null}function DK(e){return e.kind==="role"?py[e.role]:e.kind==="custom"?"Custom":null}function sTe(e){let o=ia(e.role);return o?{kind:"role",role:o}:null}function iTe(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 WI(e,o,t,r){return sTe(Ta(e,o))??iTe(t,r)}function lTe(e,o){if(!e.length)return null;let t=o(e[0]);return e.every(r=>o(r)===t)?t:null}function MK(e){return[{value:sp,label:c("No style"),description:c("Section\u2019s own")},...e.map(o=>({value:o.id,label:o.name,description:o.values.font?hi(o.values.font)?.label:void 0}))]}var sp="";function cTe({face:e,base:o,onPick:t}){let r=e.kind==="role"?e.role:sp,a=[{label:c("No style"),value:sp},...s_.map(n=>({label:c(py[n]),value:n}))];return re(Gve,{ariaLabel:c("Style"),value:r,options:a,inline:!0,onChange:n=>t(n===sp?null:n),renderOption:n=>n.value===sp?cr(ip,{children:[re("span",{className:"es-fsel-label sf-part-style-keep",children:n.label}),re("span",{className:"sf-part-style-aside","aria-hidden":"true",children:c("Section\u2019s own")})]}):re("span",{className:"es-fsel-label",style:{fontFamily:`var(--font-role-${n.value})`},children:n.label}),renderValue:()=>re("span",{style:{fontFamily:o?.fontKey?`var(${hi(o.fontKey)?.cssVar})`:void 0,fontWeight:o?.weight},children:lE(DK(e))}),valueText:n=>lE(DK(e))??n?.label??""})}var GK=["regionNote","regionStyle"],dTe=Object.keys(sE).filter(e=>!GK.includes(e));function jK(e,o){return!e.some(o)}function fTe({sectionName:e,onBack:o,textEditor:t,styleRow:r,children:a,tabs:n}){let s=cr(ip,{children:[t,r,a]});return cr("div",{className:"sf-part-panel",children:[re($I,{inline:!0,name:c(e),onSelect:o}),n?n(s):s]})}function UI({source:e,slug:o,menuId:t}){let r=nTe(),a=RK[e],n=!a.needsSlug||!!o;return re("div",{className:"sf-note sf-note--source",children:cr(zK,{children:[c(OK[e]),n?cr(ip,{children:[" ",re(Zve,{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(AK)})]}):null]})})}var HK=4,pTe=120;function WK(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 $K({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 cr("div",{className:"sf-note",children:[re("p",{children:re("strong",{children:c(e.label)})}),l("regionNote")&&!f&&re("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?cr(ip,{children:[d,l("regionStyle")&&re("p",{className:"es-field-hint",children:WK(e)})]}):a?l("regionStyle")?re(ip,{children:re(Vve,{label:c("Style"),icon:re(Yve,{}),hint:WK(e),children:re(cTe,{face:t,base:r,onPick:a})})}):null:l("regionNote")&&re("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")?re(UI,{source:n,slug:s}):null,jK([...GK,"sourceNote",...d?["fontSize"]:[]],p=>l(p)&&(p!=="sourceNote"||!!n))&&re(oi,{}),re($I,{inline:!0,name:c("Page"),onSelect:i})]})}function uTe({onBack:e}){return cr("div",{className:"sf-note",children:[re("p",{children:re("strong",{children:c("This part is no longer here.")})}),re("p",{children:c("The section it belonged to has been changed or removed.")}),re($I,{inline:!0,name:c("Page"),onSelect:e})]})}function mTe({onBack:e,partId:o,why:t}){return cr("div",{className:"sf-note",children:[re("p",{children:re("strong",{children:c("This part's settings did not open.")})}),re("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.")}),re("p",{className:"sf-note-detail",children:cr("code",{children:[o," \u2014 ",t]})}),re($I,{inline:!0,name:c("Page"),onSelect:e})]})}function KK({nodeId:e,propKey:o,onBack:t,onEditStyle:r}){let{getItemById:a,getSelectorForId:n,config:s}=Xve(q=>q),i=aTe(),l=RN(),{partStyle:d}=Xl(),{fonts:f,textStyles:u}=pe(),p=Uve(eTe),m=!p?.capabilities?.hasSiteTheme,{persist:h}=qi({themeFromDocument:m,tokenRef:p?.tokenRef,siteId:p?.siteId??null}),I=qh({themeFromDocument:m,persist:h}),[w,S]=FK(!1),C=oTe(),b=q=>(HI(C)!=="tablet"||SK(q))&&Kve(sE[q],C),y=zve(null),v=a(e),L=n(e),O=v?s.components[v.type]:void 0,{key:N,row:k}=Tr(o),F=O?.fields?.[N],T=k?ml(F,k):F,_=Zr(e,o),P=v?.props??{},A=ul(T),W=dh(T),G=jw(T),Z=v?np(v.type):null,X=v?LK(v.type,N):null,ce=k?Pd(P[N],k):P[N],fe=!!k&&!(Array.isArray(P[N])&&k.index<P[N].length);iE(()=>{AN(document)||y.current?.querySelector(".es-copy [contenteditable='true'], .es-copy textarea, .sf-copybox textarea, .sf-copybox input")?.focus()},[_]);let[te,Te]=FK(0);iE(()=>Te(0),[_]);let ve=!!v&&!fe&&(!L||!T);iE(()=>{if(!ve||te>=HK)return;let q=setTimeout(()=>Te(mo=>mo+1),pTe);return()=>clearTimeout(q)},[ve,te]);let Re=ve&&te<HK,Le=cc(e,Ea(v?.type,o),"textPart");if(!v||fe)return re(uTe,{onBack:t});let nt=Zl(v.type),Zo=nt?Ac(nt,o):null;if(nt&&Zo){let q=d?.partId===_?d:null,mo=nt[Zo],fr=mo.writable===!0&&!!L,Ma=An=>{L&&i.replaceComponent(L.zone,L.index,{...v,props:bs(P,o,"role",An)})};if(fr&&d0(mo)){let An=Ta(P,o),jE=Rn=>{if(!L)return;let dy=P;for(let[F7,B7]of Object.entries(Rn))dy=bs(dy,o,F7,B7??null);i.replaceComponent(L.zone,L.index,{...v,props:dy})},A7=ka(I.saved,I.old),R7=wC(An)??"",L7=NI(An,q?.base??UK,jE,HI(C)).filter(Rn=>Rn.key==="fontSize"&&b(Rn.key));return re(Lr,{motion:Le,body:re($K,{region:mo,sizePx:q?.base.sizePx??null,face:WI(P,o,q,f),base:q?.base??null,source:Z,slug:fc(P),onBack:t,shows:b,ownLook:ED(An),sizedStyle:re(BK,{style:b("style")?{value:R7,options:MK(A7),onChange:Rn=>jE(Rn?{textStyle:Rn}:{textStyle:null,role:null}),onEditStyles:r}:void 0,cells:L7})})})}return re(Lr,{motion:Le,body:re($K,{region:mo,sizePx:q?.base.sizePx??null,face:WI(P,o,q,f),base:q?.base??null,onFollowStyle:fr?Ma:void 0,source:Z,slug:fc(P),onBack:t,shows:b})})}if(!L||!T)return Re?re("div",{className:"sf-note","aria-busy":"true"}):re(mTe,{onBack:t,partId:_,why:L?"no field":"no selector"});let ut=q=>{i.replaceComponent(L.zone,L.index,{...v,props:q})},Co=q=>{if(cn(q).hidden!==cn(ce).hidden||!A){let mo=k?Uw(P,N,k,q):{...P,[N]:q};mo&&ut(mo);return}yh({node:v,propKey:o,kind:A,zone:L.zone,index:L.index},cn(q).text,i.replaceComponent)},Mo=ce,vo=d?.partId===_?d:null,me=vo?.styleOwner,so=me?a(me.owner):null,z=me&&so?n(me.owner):null,ke=!!(me&&so&&z),Oe=ke?so.props??{}:P,To=ke?q=>i.replaceComponent(z.zone,z.index,{...so,props:q}):ut,eo=ke?me.kind:Ea(v?.type,o),Ho=Ta(Oe,eo),xo=[{partKey:eo,face:WI(Oe,eo,vo,f),sizeGroup:vo?.sizeGroup??null,base:vo?.base??UK,style:Ho}],uo=lTe(xo,q=>q.sizeGroup),na=Gi(vo?.inks),mt=(q,mo)=>{let fr=Oe;for(let Ma of xo)fr=bs(fr,Ma.partKey,q,mo);To(fr)},vp=q=>q?mt("textStyle",q):ii({textStyle:null,role:null}),ii=q=>{let mo=Oe;for(let fr of xo)for(let[Ma,An]of Object.entries(q))mo=bs(mo,fr.partKey,Ma,An??null);To(mo)},Nr=A==="text"||A==="textarea",{text:Tp,hidden:Na}=cn(ce),_n=T?.[tTe]?.label??o,li=Na?c("Show {label} on the slide",{label:c(_n)}):c("Hide {label} on the slide",{label:c(_n)}),gc=cr("div",{className:"sf-field-head",children:[re(qve,{}),re("span",{className:"sf-field-label sf-field-label--inline",children:c(_n)}),Nr&&re(Qve,{content:li,children:re(Jve,{"aria-pressed":Na,"aria-label":li,onClick:()=>Co({text:Tp,hidden:!Na}),children:Na?re(NK,{name:"eye-off",size:14}):re(NK,{name:"eye",size:14})})})]}),Da=!W&&G,ci=!!A&&(RB(T)||W||Na||!G),Ic=WI(Oe,eo,vo,f),kp=Ic.kind==="role"?Ic.role:null,di=wC(Ho)??YD(kp),yc=ka(I.saved,I.old),Pp=Object.entries(Ho).filter(([q,mo])=>q!=="role"&&q!=="textStyle"&&mo!==void 0).length,bc=()=>{let q=Oe;for(let mo of xo){let{role:fr,textStyle:Ma}=mo.style;q=bD(q,mo.partKey),fr&&(q=bs(q,mo.partKey,"role",fr)),Ma&&(q=bs(q,mo.partKey,"textStyle",Ma))}To(q)},On=di,E7=qD(xo[0].style),_7=On?yc.find(q=>q.id===On)?.name??On:"",O7=()=>{S(!1),On&&(I.write(XD({saved:I.saved,old:I.old,styleId:On,values:GC(xo[0].style)}),!0),bc())};return cr(fTe,{sectionName:O?.label??v.type,onBack:t,tabs:q=>re(Lr,{motion:Le,body:q}),textEditor:b("words")?re("div",{ref:y,className:"sf-part-text",children:ci?re(PK,{text:Tp,onTextChange:q=>Co(Nr?{text:q,hidden:Na}:q),multiline:uh(A),markup:A!=="plainText",styled:!1,style:xo[0].style,base:xo[0].base,setValue:ii,colors:na,placeholder:lE(sN(T))??void 0,ariaLabel:c(_n),head:gc,typedOnCanvas:l===_}):A?Nr?gc:null:re(jve,{field:T,name:o,value:Mo,onChange:Co,id:`sf-part-${e}-${o}`})}):void 0,children:[X&&b("sourceNote")&&re(UI,{source:X,slug:fc(P),menuId:MI(P)}),Da&&re(BK,{style:b("style")?{value:di??"",options:MK(yc),onChange:q=>vp(q||null),changed:Pp>0,onEditStyles:r,onUpdateStyle:On&&E7?()=>S(!0):void 0}:void 0,font:b("font")?{value:Ho.font??"",styleValue:hi(xo[0].base.fontKey)?.label,options:Ha.map(q=>({label:q.label,value:q.key})),onChange:q=>mt("font",q||null)}:void 0,italic:b("italic")?{value:Ho.italic,styleValue:xTe(u,di),onChange:q=>mt("italic",q??null)}:void 0,cells:NI(xo[0].style,xo[0].base,ii,HI(C)).filter(q=>b(q.key)),align:b("align")?hTe(Ho,xo[0].base.align,HI(C),mt):void 0,letterCase:b("letterCase")?{value:Ho.case??"",styleValue:xo[0].base.case,onChange:q=>mt("case",q||null)}:void 0}),w&&On&&re(_K,{styleName:_7,onCancel:()=>S(!1),onConfirm:O7}),Da&&uo===null&&b("fixedSizeHint")&&re(zK,{children:c("Fixed size \u2014 the site\u2019s Text setting doesn\u2019t resize this.")}),jK(dTe,q=>b(q)&&(q==="words"||(q==="sourceNote"?!!X:q==="fixedSizeHint"?Da&&uo===null:Da)))&&re(oi,{})]})}function hTe(e,o,t,r){let a=rTe("align",t),n=SD(e,t);return{value:e[a]??"",styleValue:n??o,onChange:s=>r(a,s||null)}}function xTe(e,o){return!o||!Array.isArray(e)?!1:e.find(t=>t?.id===o)?.values?.italic===!0}var UK={fontKey:"",sizePx:16,weight:400,lineRatio:1.4,letterEm:0,align:"left",case:"none",paddingPx:0};import{jsx as Fr,jsxs as mE,Fragment as CTe}from"react/jsx-runtime";import{useCallback as vTe,useRef as TTe,useState as dp}from"react";import{InspectorIconButton as kTe}from"efficient-easel/chrome";import{useEasel as PTe}from"efficient-easel/easel";import{PopupMenu as ETe,PopupMenuItem as _Te,PopupMenuLabel as qI}from"efficient-shell/ui";import{CopyToPageIcon as OTe}from"efficient-easel/icons";import{useEaselSession as ATe}from"efficient-easel/screen/lib/session-context";import{cloneNodeWithFreshIds as RTe}from"efficient-easel/screen/lib/document/section-doc";import{FOOTER_TYPE as LTe}from"efficient-easel/draw";import{newId as yTe}from"efficient-easel/data";import{isBackendError as pc}from"efficient-easel/screen/lib/backend-error";import{isEfficientBackend as t8}from"efficient-easel/screen/lib/session";var zI=Bu(),cE=zI.set;function GI(e,o){cE(e,o)}function jI(e,o){let t=zI.get(e);cE(e,o??(t==="live"?"changed":t))}function KI(e,o){cE(e,o??"live")}function VK(e){return zI.get(e)}function YK(e){return zI.use(e)}function qK(e,o){return e==="live"&&o?"changed":e}function dE({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 XK(e){return e.map(o=>o.change==="take_down"?c("{name} (taken down)",{name:o.name}):o.name)}var ZK="SharedSection",gTe=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i,lp=e=>{let o=e?.content;return Array.isArray(o)?o:[]},cp=e=>{let o=e?.props?.id;return typeof o=="string"?o:void 0};function JK(e){if(e?.type!==ZK)return null;let o=e.props?.section;return typeof o=="string"&&gTe.test(o)?o.toLowerCase():null}function QK(e){let o=[];for(let t of lp(e)){let r=JK(t),a=cp(t);r&&a&&o.push({refId:a,section:r})}return o}function VI(e){let o=lp(e)[0];return o&&typeof o=="object"&&cp(o)?o:null}function ITe(e,o){return{type:ZK,props:{id:e,section:o}}}function e8(e,o){let t=new Map,r=new Set,a=!1,n=lp(e).map(s=>{let i=JK(s),l=cp(s);if(!i||!l||r.has(i))return s;let d=VI(o.get(i)),f=cp(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 o8(e,o,t){let r=new Map,a=!1,n=lp(e).map(s=>{let i=cp(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=lp(d).slice(1),u=VI(d);return r.set(l.section,u===s?d:{...d,content:[s,...f]}),a=!0,l.reference??ITe(l.refId,l.section)});return{page:a?{...e,content:n}:e,docs:r}}function uE(e){return!!(e?.publish&&e.liveState)}function bTe(e,o){if(!uE(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 STe(e,o){return async(t,r)=>{try{await YR()}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"?Cm({state:"live",changes:[]}):ga(0),{version:r??null}}}function pE(e,o,t){let r=o?{siteId:o}:void 0;return{resolve:a=>e.load({slug:a,...r}).then(n=>(n&&(GI(n.id,n.live),U1(n.id,n.videoFrames)),n)),saveLayout:(a,n,s,i)=>e.save(a,{layout:n},{version:s,clientId:i??""}).then(l=>(jI(a,l.live),z1(a,l.videoFrames),ga(),l)),rereadVersion:e.version?a=>e.version(a):void 0,publish:uE(t)?STe(t,r):e.publish?(a,n)=>e.publish(a,n?{version:n}:void 0).then(s=>(KI(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 wTe(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 k=VK(n.id);return k==="changed"||k==="never"||k===void 0&&i},I=k=>{p={...p,...k,docId:n?.id??null,unpublished:h(),sections:[...f.values()]};for(let F of m)F()},w=(k,F,T)=>{F?f.set(k,{section:k,title:l.get(k)?.title??"",problem:F,holder:T}):f.delete(k)},S=k=>k&&typeof k=="object"&&!Array.isArray(k)?k:{},C=k=>s.has(k),b=()=>new Map([...l].map(([k,F])=>[k,F.layout])),y=()=>yTe("SharedSection"),v=(k,F,T,_)=>{let P=S(F);l.set(k,{layout:P,version:T,savedJson:JSON.stringify(P),title:_})},L={state:()=>p,subscribe:k=>(m.add(k),()=>{m.delete(k)})},O={sectionOf:k=>d.get(k)?.section??null,heldElsewhere:k=>{let F=d.get(k)?.section;return!!(F&&f.get(F)?.problem==="lock")},adopt:(k,F)=>{v(F.id,F.layout,F.layout_updated_at,F.title),d.set(k,{section:F.id,refId:y()}),u.set(F.id,F.used_on),I({})},place:k=>{if([...d.values()].some(_=>_.section===k.id))return null;let F=VI(S(k.layout)),T=typeof F?.props?.id=="string"?F.props.id:null;return!F||!T||!F.type?null:(v(k.id,k.layout,k.layout_updated_at,k.title),d.set(T,{section:k.id,refId:y()}),u.set(k.id,k.used_on),F)},usedOn:k=>u.get(k)??null,learn:k=>{for(let F of k){u.set(F.id,F.used_on);let T=l.get(F.id);T&&(T.title=F.title);let _=f.get(F.id);_&&f.set(F.id,{..._,title:F.title})}I({})}},N=async(k,F)=>{for(let[T,_]of k){let P=l.get(T),A=JSON.stringify(_);if(!(!P||A===P.savedJson||f.get(T)?.problem==="lock"))try{let W=await e.save(T,{layout:_},{version:P.version,clientId:F??""});jI(T,W.live),P.layout=_,P.version=W.version,P.savedJson=A,w(T,null)}catch(W){pc(W,"changed-elsewhere")?w(T,"conflict"):pc(W,"lock-taken")?w(T,"lock",W.holder??void 0):w(T,"save")}}k.size&&ga(),I({})};return{resolve:async k=>{if(lP(k===yr?null:L),Ib(k===yr?null:O),l=new Map,d=new Map,f=new Map,u=new Map,k===yr)return t.resolve(k);let F=!1,[T,_]=await Promise.all([t.resolve(k),e.load({slug:yr,...o}).catch(()=>(F=!0,null))]);if(_&&!sd(T?.layout)){GI(_.id,_.live);let X=S(_.layout);n={id:_.id,layout:X,version:_.version,savedJson:""}}else n=null;if(i=!1,!T)return I({conflict:null,saveFailed:!1,loadFailed:F}),T;let P=S(T.layout),A=QK(P),W=await Promise.all(A.map(X=>e.load({id:X.section,...o}).catch(()=>null)));A.forEach((X,ce)=>{let fe=W[ce];fe?(GI(fe.id,fe.live),v(X.section,fe.layout,fe.version,"")):(l.delete(X.section),f.set(X.section,{section:X.section,title:"",problem:"load"}))});let G=e8(P,b());if(d=G.held,!n)return d.size&&s.add(T.id),I({conflict:null,saveFailed:!1,loadFailed:F}),d.size?{...T,layout:G.working}:T;let Z=D1(G.working,n.layout);return n.savedJson=JSON.stringify(gb(Z,n.layout).chrome),s.add(T.id),I({conflict:null,saveFailed:!1,loadFailed:!1}),{...T,layout:Z}},saveLayout:async(k,F,T,_)=>{if(!C(k))return t.saveLayout(k,F,T,_);let P=n,A=P?gb(F,P.layout):{page:F,chrome:null},W=o8(A.page,d,b()),G=await t.saveLayout(k,W.page,T,_);if(await N(W.docs,_),!P)return G;let Z=JSON.stringify(A.chrome);if(!A.chrome||Z===P.savedJson||p.lockHolder)return G;try{let X=await e.save(P.id,{layout:A.chrome},{version:P.version,clientId:_??""});jI(P.id,X.live),ga(),P.layout=A.chrome,P.version=X.version,P.savedJson=Z,i=!0,I({conflict:null,saveFailed:!1})}catch(X){pc(X,"changed-elsewhere")?I({conflict:X.conflict??{savedBy:"",savedByYou:!1,secondsAgo:0}}):pc(X,"lock-taken")?I({lockHolder:X.holder??{name:"",secondsSinceSeen:0,secondsSinceHeld:0}}):I({saveFailed:!0})}return G},publish:t.publish?async(k,F)=>{let T=await t.publish(k,F),_=n;if(_&&C(k)&&!a&&e.publish&&h()&&!p.lockHolder){let P=await e.publish(_.id,_.version?{version:_.version}:void 0);KI(_.id,P.live),P.version!==null&&(_.version=P.version),i=!1,I({})}if(C(k)&&!a&&e.publish)for(let[P,A]of l){if(f.get(P)?.problem==="lock")continue;let W=await e.publish(P,A.version?{version:A.version}:void 0);KI(P,W.live),W.version!==null&&(A.version=W.version)}return T}:void 0,lock:r?{claim:async(k,F,T)=>{let _=await r.claim(k,F,T);if(!C(k))return _;let P=n;if(P)try{await r.claim(P.id,F,!1),p.lockHolder&&I({lockHolder:null})}catch(A){pc(A,"lock-taken")&&I({lockHolder:A.holder??{name:"",secondsSinceSeen:0,secondsSinceHeld:0}})}for(let A of l.keys())try{await r.claim(A,F,!1),f.get(A)?.problem==="lock"&&w(A,null)}catch(W){pc(W,"lock-taken")&&w(A,"lock",W.holder??void 0)}return l.size&&I({}),_},release:async(k,F)=>{if(await r.release(k,F),!C(k))return;let T=n;T&&!p.lockHolder&&await r.release(T.id,F).catch(()=>{});for(let _ of l.keys())f.get(_)?.problem!=="lock"&&await r.release(_,F).catch(()=>{})}}:void 0,pinnedChrome:L}}function YI(e){let o=(t,r,a)=>e.save(t,r.layout?{...r,layout:u1(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 pxo(e,o,t){return e.update(o,m1(t))}function uxo(e,o=je(),t=vk(),r={}){let a=t8(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=uE(o.site)?o.site:void 0,u=YI(o.pages),p=pE(u,e,f),m=d?wTe(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,...r8(p.resolve),lock:o.lock,...m,site:s?()=>o.site.get(n):void 0,siteLiveState:f?()=>f.liveState(n):void 0,siteVersions:bTe(f,n),updateSite:s&&i?h=>i(h,n):void 0,previewHref:o.preview?h=>o.preview.href(h):void 0}}function mxo(e,o=je(),t=vk()){let r=t8(o),a=o.templates,n=a?YI(a.pages(e)):{list:()=>Promise.reject(new Error(fE)),load:()=>Promise.reject(new Error(fE)),save:()=>Promise.reject(new Error(fE))};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},...pE(n,void 0),...r8(pE(n,void 0).resolve),publish:void 0,templateName:a?()=>a.get(e).then(s=>s.name):void 0}}function r8(e){return{resolve:o=>(lP(null),Ib(null),e(o))}}var fE="This editor's backend has no website templates.";function FTe(e,o,t){let r=RTe(e,void 0,o);return t?.(r)??r}function a8({node:e,currentSlug:o,siteId:t,tokenRef:r,runAuthed:a,onNotify:n}){let[s,i]=dp(!1),[l,d]=dp(null),f=ATe(),u=PTe(O=>O.config.components),[p,m]=dp(!1),[h,I]=dp(null),w=TTe(null),[S,C]=dp(null),b=vTe(async()=>{if(f.usesBridgedToken&&!r.current){m(!0);return}try{d(await je(f).pages.list(t?{siteId:t}:void 0))}catch{m(!0)}},[r,t,f]),y=()=>{if(s){i(!1);return}let O=w.current?.getBoundingClientRect();O&&C({top:O.bottom+6,right:Math.max(8,window.innerWidth-O.right)}),d(null),m(!1),b(),i(!0)},v=(l??[]).filter(O=>O.slug!==o),L=async O=>{if(h)return;I(O.slug);let N=FTe(e,u,f.documentHooks?.storedNode),k=await a(()=>BTe(je(f).pages,O,N));I(null),i(!1),n?.(k?c("Duplicated to \u201C{name}\u201D",{name:O.label}):c("Couldn\u2019t duplicate the section \u2014 please retry"),k?"success":"error")};return mE(CTe,{children:[Fr("span",{"data-menu-toggle":!0,style:{display:"contents"},children:Fr(kTe,{buttonRef:w,label:c("Duplicate to another page"),hasPopup:"menu",expanded:s,onClick:y,children:Fr(OTe,{size:15})})}),s&&S&&Fr(ETe,{portal:!0,style:{top:S.top,right:S.right},onClose:()=>i(!1),children:mE("div",{role:"menu","aria-label":c("Duplicate to page"),children:[Fr(qI,{children:c("Duplicate to page")}),p?Fr(qI,{children:c("Couldn\u2019t load pages")}):l===null?Fr(qI,{children:c("Loading\u2026")}):v.length===0?Fr(qI,{children:c("No other pages")}):v.map(O=>mE(_Te,{role:"menuitem",disabled:h!==null,onClick:()=>{L(O)},children:[Fr("span",{className:"min-w-0 flex-1 truncate",children:O.label}),h===O.slug?Fr("span",{className:"shrink-0 text-xs",children:c("Copying\u2026")}):O.draft&&Fr("span",{className:"shrink-0 text-xs",children:c("draft")})]},O.id))]})})]})}async function BTe(e,o,t){let r=YI(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===LTe);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 cke}from"efficient-easel/screen/components/ScreenDocumentContext";import{useSectionOps as dke}from"efficient-easel/screen/lib/document/use-section-ops";import{SELECTION_MODE as Wgo,isSelectionMode as yE}from"efficient-easel/screen/lib/screen-parts";import{usePreviewParts as fke}from"efficient-easel/draw/client";import{jsx as fp,jsxs as NTe}from"react/jsx-runtime";import{SettingsDrill as DTe}from"efficient-easel/panel";import{UiIcon as MTe}from"efficient-easel/draw/client";var HTe="Not shown on the page";function WTe({part:e,onOpen:o}){return fp(DTe,{name:c(e.label),preview:e.offPage?c(HTe):e.preview||c("Empty"),offPage:e.offPage,status:e.hidden?fp("span",{className:"sf-entry-eye",role:"img","aria-label":c("Hidden on the page"),children:fp(MTe,{name:"eye-off",size:14})}):void 0,onOpen:()=>o(e.key)})}function hE(e){return e.filter(o=>!o.identifier)}function n8({parts:e,onOpen:o,heading:t=!0}){let r=hE(e);return r.length?NTe("div",{className:"sf-entries",children:[t?fp("h3",{className:"sf-entries-head",children:c("Text")}):null,r.map(a=>fp(WTe,{part:a,onOpen:o},a.key))]}):null}import{HEADER_TYPE as pke,ROOT_ZONE as I8}from"efficient-easel/draw";import{newId as $Te}from"efficient-easel/data";import{HEADER_TYPE as kt,FOOTER_TYPE as Qe,newNodeId as UTe}from"efficient-easel/draw";function XI(){return{type:kt,props:{id:UTe(kt)}}}var s8=[{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"}],zTe=s8.filter(e=>e.type!=="FooterLogo"&&e.type!=="FooterGroup"),GTe="FooterGroup",i8="blocks";function l8(e){return e===Qe?s8:e===GTe?zTe:null}function ZI(){let e=(o,t)=>({type:o,props:{id:$Te(o),...t}});return[e("FooterLogo",{widthPct:100,align:"left",tagline:""}),e("FooterEmailSignup",{...bL}),e("FooterPayment",{...Em})]}function xE(e){switch(e?.type){case Je:case Ge:return c("On every page");case kt:case Qe:return c("On every page \xB7 old style");default:return null}}var c8=()=>null,d8=()=>c("Changed on every page");function JI(e,o){let t=yO(e,o);if(t)return t;let r=A1(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 QI,Fragment as KTe,jsxs as VTe}from"react/jsx-runtime";import{useState as YTe}from"react";import{createNode as qTe,newId as XTe}from"efficient-easel/data";import{useEasel as ZTe}from"efficient-easel/easel";import{Banner as JTe,Button as gE}from"efficient-shell/ui";import{useScreenDocument as QTe}from"efficient-easel/screen/components/ScreenDocumentContext";var jTe=["FooterPayment"];function f8(e,o){let{id:t,...r}=e.props;for(let a of Dr(e))r[a]=r[a].map(n=>f8(n,o));return o(e.type,r)}var pp=(e,o)=>{if(!jTe.includes(e.type))return null;Ng();let t=xn(e.type);return t?Ns({type:e.type,props:{...e.props}},t).nodes.map(r=>f8(r,o)):null};function p8(){let{appState:e,dispatch:o,config:t}=ZTe(f=>f),{readOnly:r}=QTe(),[a,n]=YTe(!1),s=e.data.content;if(r||s.some(f=>f.type===Ge))return null;let i=s.find(f=>f.type===Qe)??null,l=(f,u)=>qTe(t,f,u),d=()=>{let f=_f(i,l,XTe(Ge),pp);o({type:"setData",data:u=>({...u,content:[...Du(u.content,f)]}),recordHistory:!0}),n(!1)};return QI(JTe,{tone:"info",title:c("This footer uses the old layout"),action:a?VTe(KTe,{children:[QI(gE,{variant:"primary",size:"sm",onClick:d,children:c("Switch now")}),QI(gE,{variant:"secondary",size:"sm",onClick:()=>n(!1),children:c("Cancel")})]}):QI(gE,{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 IE,jsxs as eke}from"react/jsx-runtime";import{InspectorUpLevel as u8}from"efficient-easel/chrome";function m8({nodeId:e,part:o,sectionName:t,onUpToSection:r}){let{select:a}=RI(),n=cc(e,o,"picture");return eke("div",{children:[o!=="media"?IE(u8,{inline:!0,name:c(Ra.media),onSelect:()=>a(Rs(e,"media"))}):IE(u8,{inline:!0,name:c(t),onSelect:r}),IE(Lr,{part:o,motion:n,itemWord:c(Ra[o])})]})}import{HintsToggle as uke,SettingsSwitch as mke,hintsFoldClass as hke}from"efficient-easel/panel";import{useHints as xke}from"efficient-easel/screen/lib/hints";var b8={kind:"header"},SE={kind:"website"},S8={kind:"website",tab:wl,revealPageGroup:!0},w8={kind:"chat"},C8={kind:"social"},up="Part";function gke(e){return c("Part of {name}",{name:c(e)})}function Ike(e,o,t){let r=e.describeNode(o);return{name:t,kindLabel:r?gke(r.label):c(up)}}function yke(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 v8({what:e}){let o=yke(e);return En("div",{className:"sf-note",children:[De("p",{children:De("strong",{children:o.title})}),En("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 bE(e){let o=ff[e];return{name:Ra[e],kindLabel:up,icon:o,head:(t,r)=>{if(t.kind!==o)return null;let a=r.describeNode(t.nodeId);if(!a)return null;let n=y8({name:c(Rx(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?De(m8,{nodeId:t.nodeId,part:e,sectionName:r.describeNode(t.nodeId)?.label??"Hero",onUpToSection:()=>r.onSelectNode(t.nodeId)}):null}}var bke={header:{name:"Header",kindLabel:"Site settings",icon:"header",render:(e,o)=>{let t=o.hostPanels?.header;return t?De(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)=>De(Xh,{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:()=>De(iK,{})},social:{name:"Social links",kindLabel:"Site settings",icon:"social",render:()=>De(uK,{unavailable:De(v8,{what:"Social link"})})},ticker:{name:Ks,kindLabel:up,icon:"ticker",head:(e,o)=>e.kind==="ticker"?Ike(o,e.heroId,c(Ks)):null,render:e=>De(CK,{heroId:e.kind==="ticker"?e.heroId:""})},heroMedia:bE("media"),heroImage:bE("image"),heroImage2:bE("image2"),part:{name:up,kindLabel:up,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}=Tr(e.propKey),n=a?ml(t.fields[r],a):t.fields[r],s=Zl(t.type),i=s?Ac(s,e.propKey):null,l=s&&i?s[i].label:IH[e.propKey],d=l?c(l):dN(c(Ad(Ih(n??{},r))),a),f=y8({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"?De(KK,{nodeId:e.nodeId,propKey:e.propKey,onBack:()=>o.onSelectNode(e.nodeId),onEditStyle:o.onOpenSiteStyles}):null}},Ske=new Set(["header","website","chat"]);function wke(e,o){if(e==="selection")return null;let t=bke[e];return Ske.has(e)&&!o.hasSiteSettings?{...t,kindLabel:"Not part of a template",render:()=>De(v8,{what:t.name})}:t}function T8({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}=cke(),{rows:I}=Gd(),w=I?.find(ke=>ke.slug===f)??null,S=tke(),C=Object.keys(S.fields).some(ke=>!ke.startsWith("_")&&!Ud.includes(ke)),{websiteName:b}=pe(),y=dke({readOnly:m}),{select:v}=fke(),{selectedItem:L,getItemById:O,getSelectorForId:N,config:k,appState:F}=oke(ke=>ke),T=ike(k,L?{type:L.type,props:L.props}:null),_=L?yN(T??k.components[L.type]?.fields,L.props):[],P=ke=>k.components[ke]?.label??ke,A=L?N(L.props.id):void 0,W=wke(e.kind,i),G=lke(),Z={capabilities:i,tokenRef:l,hostPanels:G.chrome?.panels,describeNode:ke=>{let Oe=O(ke);if(!Oe)return null;let To=k.components[Oe.type];return{type:Oe.type,label:To?.label??Oe.type,fields:To?.fields??{},props:Oe.props??{}}},siteId:u,websiteName:b??null,notifyParent:d,onNotify:n,onOpenWebsiteSettings:o,onOpenSiteStyles:t,onSelectNode:r},X=W?.head?.(e,Z)??null,ce=oK({kind:w?.kind,pageName:w?.label}),fe=X?.name??(W?c(W.name):L?c(P(L.type)):ce.name),te=X?.kindLabel??(W?c(W.kindLabel):L?A&&A.zone!==I8?c("Block"):c("Section"):ce.kindLabel),Te=W?W.icon:L?L.type:"page",ve=yE(e)&&L?np(L.type):null,Re=!!L&&!!A&&A.zone===I8&&L.type!==Qe&&L.type!==pke,Le=JI(F?.data,L),nt=()=>{Le||A&&y.duplicateComponent(A.zone,A.index)},Zo=()=>{A&&(y.removeComponent(A.zone,A.index),y.select(null))},ut=L?k.components[L.type]?.defaultProps?.previewHover:void 0,Co=yE(e)&&!!L&&!!A&&ut!==void 0,Mo=Co&&L.props.previewHover===!0,vo=()=>{!L||!A||y.replaceComponent(A.zone,A.index,{...L,props:{...L.props,previewHover:!Mo}})},{shown:me,setShown:so}=xke(),z=!!(W||L||C);return En("div",{className:`es-sidepanel es-sidepanel--right sf-panel sf-panel--right ${hke(me)}`.trim(),children:[De(ake,{icon:De(Qs,{type:Te,size:15}),name:fe,kind:te,actions:!a&&yE(e)&&L&&L.type!==Qe?En(h8,{children:[De(x8,{label:c("Duplicate section"),title:Le??void 0,disabled:Le!==null,onClick:nt,children:De(nke,{size:15})}),Re&&i.hasSiteSettings&&De(a8,{node:L,currentSlug:f,siteId:u??void 0,tokenRef:l,runAuthed:p,onNotify:n}),De(x8,{label:c("Remove section"),danger:!0,onClick:Zo,children:De(ske,{size:15})}),s?De(g8,{side:"right",onHide:s,divider:!0}):null]}):s?De(g8,{side:"right",onHide:s}):void 0}),Co&&En("div",{className:"sf-preview-pin",children:[En("div",{className:"sf-preview-pin-text",children:[De("span",{className:"sf-preview-pin-label",children:c("Preview hover state")}),De("span",{className:"sf-preview-pin-hint",children:c("not shown live")})]}),De(mke,{checked:Mo,onChange:vo,ariaLabel:c("Preview hover state")})]}),En("div",{className:"sf-insp-body es-insp-body sf-scroll",children:[W?W.render(e,Z):L?En(h8,{children:[L.type===Qe&&i.hasSiteSettings&&De(p8,{}),De(_R,{children:De(Lr,{entries:De(n8,{parts:_,heading:!1,onOpen:ke=>v(Zr(L.props.id,ke))}),entryCount:hE(_).length,itemWord:fe})}),ve&&De(UI,{source:ve,slug:fc(L?.props),menuId:MI(L?.props)})]}):C?De(Lr,{omit:Ud}):De(rke,{variant:"none",icon:!1,message:c("Select a section or block to edit it.")}),z&&De(uke,{shown:me,onChange:so,label:c("Show hints")})]})]})}import{jsx as x,jsxs as B,Fragment as O8}from"react/jsx-runtime";var _o={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)"},wE="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:_o[t],flex:"none",...a}})}var Cke={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)"},Xe=(e,o,t=160)=>({background:`linear-gradient(${t}deg,${e},${o})`});function Ba({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 oy({children:e}){return x("span",{style:{fontSize:"4.64cqw",fontWeight:700,letterSpacing:"0.06em",textTransform:"uppercase",color:g.muted},children:e})}function k8({over:e,overTone:o,head:t,headSize:r=11.5,cta:a,ctaBg:n,ctaFg:s,tone:i}){return B(O8,{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 CE({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",...Xe(g.paper,g.paper2,150)},children:x(Ba,{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 Fa({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 $e({title:e,children:o}){return B("div",{style:{...J,background:g.card,padding:"9px 10px",display:"flex",flexDirection:"column",gap:6},children:[x(oy,{children:e}),o]})}function P8({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 vE({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 mp({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 wo({children:e,w:o}){return x("span",{style:{fontSize:"3.98cqw",lineHeight:1.45,color:g.muted,width:o,display:"block"},children:e})}function ey({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 E8({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 vke={wheelslisting:x($e,{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",...Xe(g.paper,g.paper2,150)},children:x(Ba,{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",...Xe(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($e,{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($e,{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($e,{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(oy,{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(Ba,{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,...Xe(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($e,{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($e,{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($e,{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%),${Xe(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($e,{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,...Xe(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($e,{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(ey,{label:"Name"}),x(ey,{label:"Email"})]}),x(ey,{label:"Message",filled:!0}),x(E8,{children:"SEND"})]})}),appointmentbooking:x($e,{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($e,{title:"Leave a review",children:B("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:5,justifyContent:"center"},children:[x(vE,{filled:4,size:14}),x(ey,{label:"Your review",filled:!0}),x(E8,{children:"POST"})]})}),submitbuild:x($e,{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",...Xe(g.ink,g.inkSoft2)},children:[x(Ba,{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(wo,{children:"Every failure starts in the same place:"}),x(wo,{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(wo,{w:"100%",children:"A wider wheel adds grip only if the offset still"}),x(wo,{w:"88%",children:"clears the arch, so the offset is chosen first."}),x(wo,{w:"80%",children:"Width follows from the space left."})]}),series:x($e,{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($e,{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",...Xe(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(wo,{children:o})]},e))}),docmetacards:x($e,{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(wo,{children:"Unfitted wheels come back within 30 days, no questions."}),x(wo,{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(wo,{children:"Forged, correctly offset, rated for what you actually"}),x(wo,{children:"carry. Everything else is a photograph."})]})]}),keyfeatures:x($e,{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(mp,{n:"27k",label:"Rigs"}),x(mp,{n:"4.9",label:"Rating"})]}),B("div",{style:{flex:1,display:"flex",flexDirection:"column"},children:[x(wo,{children:"Twelve years of fitting the same three questions, and the"}),x(wo,{children:"answer has not moved: load rating, offset, then looks."})]})]}),chart:B($e,{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",...Xe(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,...Xe(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",...Xe(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($e,{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(wo,{children:o})]})]},e))})}),timelinetrack:B("div",{style:{...J,padding:"0 12px",display:"flex",flexDirection:"column",gap:10,justifyContent:"center",...Xe(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",...Xe(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",...Xe(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,...Xe(g.ink,g.inkSoft2)}}),x(Ba,{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(wo,{children:"One shed, one lathe, one idea."}),x(wo,{w:"66%",children:"It turned out to be right."})]})]}),gallerygrid:x($e,{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,...Xe(e,o,140+t*22)}},t))})}),gallery:B($e,{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,...Xe(e,o,150+t*20)}},t))})]}),ordersummary:B($e,{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",...Xe(g.paper,g.paper2,150)},children:x(Ba,{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(Fa,{k:"Subtotal",v:"$1,956"}),x(Fa,{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($e,{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(oy,{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",...Xe(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(mp,{n:"27k",label:"Rigs fitted",tone:g.onInk}),x(mp,{n:"12",label:"Years",tone:g.onInk}),x(mp,{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(vE,{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(P8,{}),x("span",{style:{fontSize:"3.98cqw",color:g.muted},children:"Dave M. \xB7 Hilux N80"})]})]}),reviews:B($e,{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,...Xe(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(P8,{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(vE,{filled:o})]}),x(wo,{children:t})]})]},e))})]}),logos:B("div",{style:{...J,display:"flex",flexDirection:"column",gap:9,justifyContent:"center",padding:"0 12px",...Xe(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(wo,{children:"he number on the back of your wheel decides whether the"}),x(wo,{w:"76%",children:"tyre sits under the guard or an inch outside it."})]})]})]}),cards:x($e,{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(wo,{children:o})]},e))})}),faq:x($e,{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(wo,{w:"90%",children:"Use the fitment finder \u2014 it reads your build, not just the model."})]},e))})}),hero:B("div",{style:{...J,overflow:"hidden",...Xe(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(k8,{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(Ba,{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(k8,{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",...Xe(g.inkSoft,g.inkSoft2)},children:x(Ba,{size:74,style:{right:-14,top:16}})})]}),productgrid:x($e,{title:"Best sellers",children:B("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(3,1fr)",gap:5,minHeight:0},children:[x(CE,{name:"Ridge 19",price:"$365"}),x(CE,{name:"Ridge 29",price:"$410"}),x(CE,{name:"Ridge 39",price:"$455"})]})}),collections:x($e,{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,...Xe(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",...Xe(g.paper,g.paper2,150)},children:x(Ba,{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($e,{title:"Specifications",children:B("div",{style:{flex:1,display:"flex",flexDirection:"column",justifyContent:"center"},children:[x(Fa,{k:"Diameter",v:'20"'}),x(Fa,{k:"Width",v:"9.0J"}),x(Fa,{k:"Offset",v:"+12"}),x(Fa,{k:"Load",v:"1250 kg"})]})}),fitmenttable:x($e,{title:"Will it fit?",children:B("div",{style:{flex:1,display:"flex",flexDirection:"column",justifyContent:"center"},children:[x(Fa,{k:"Hilux N80",v:"20\xD79 +12",ok:!0}),x(Fa,{k:"Ranger PX3",v:"20\xD79 +12",ok:!0}),x(Fa,{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(oy,{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,...Xe(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))})},_8={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:_o.line,marginBottom:10}}),B("div",{style:{flex:1,display:"flex",gap:10,border:`1px solid ${_o.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 ${_o.line}`,background:_o.block}}),x(K,{w:34,h:13,r:5,tone:"accent"})]})]}),B("div",{style:{flex:1,background:_o.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 ${_o.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:wE}}),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(O8,{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:_o.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:_o.block}},o))}),blanksection:x("div",{style:{...J,padding:14,display:"flex"},children:B("div",{style:{flex:1,border:`1px dashed ${_o.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:wE},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:wE}}),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 ${_o.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 ${_o.line}`,display:"flex",alignItems:"center",gap:7,padding:"0 9px"},children:[x("div",{style:{width:9,height:9,borderRadius:5,border:`2px solid ${_o.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 ${_o.dark}`}}),x("div",{style:{padding:"2px 6px",borderRadius:6,border:`1.5px solid ${_o.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 ${_o.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 ${_o.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:_o.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:_o.block}})};function A8({type:e}){let o=Cke[e]??"",t=vke[o]??_8[o]??_8.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 cy}from"efficient-easel/screen/components/ScreenDocumentContext";import{jsx as uc,jsxs as R8}from"react/jsx-runtime";import Tke from"efficient-easel/screen/components/SidePanelHead";import{StylesIcon as kke}from"efficient-easel/rail";import{Tooltip as Pke}from"efficient-shell/ui";import{HintsToggle as Eke,hintsFoldClass as _ke}from"efficient-easel/panel";import{useHints as Oke}from"efficient-easel/screen/lib/hints";function L8({tokenRef:e,siteId:o,onClose:t,onNotify:r,tab:a,onTabChange:n,revealPageGroup:s,onPageGroupRevealed:i}){let l=Cl(),{shown:d,setShown:f}=Oke();return R8("div",{className:`sf-styles ${_ke(d)}`.trim(),children:[uc(Tke,{icon:uc(kke,{}),title:c("Styles"),context:uc(Pke,{content:c("{name} \u2014 renamed in the Console: {place}.",{name:l,place:c("Storefront \u25B8 Sites \u25B8 Settings")}),className:"sf-name-tip",children:uc("span",{className:"sf-name-text",children:l})})}),R8("div",{className:"sf-insp-body es-insp-body sf-scroll",children:[uc(Xh,{tokenRef:e,siteId:o,onNotify:r,tab:a,onTabChange:n,revealPageGroup:s,onPageGroupRevealed:i}),uc(Eke,{shown:d,onChange:f,label:c("Show hints")})]})]})}import{jsx as No,jsxs as ni,Fragment as Bke}from"react/jsx-runtime";import{Fragment as G8,useEffect as j8,useRef as OE}from"react";import{useTreeDrag as K8}from"efficient-easel/drag";import{GlobeIcon as Nke,ImageIcon as Dke,LocationIcon as Mke,MapIcon as Hke,TextLinesIcon as Wke,TrashIcon as V8}from"efficient-easel/icons";import{Subtree as Y8,TreeRow as xp,TreeRowAction as q8,TreeSeam as X8}from"efficient-easel/tree";import{useEaselStrings as $ke}from"efficient-easel/strings";import{isSelectionMode as Uke}from"efficient-easel/screen/lib/screen-parts";import{useSyncExternalStore as Ake}from"react";var Rke={level:"groups"},B8=Rke,TE=new Set;function Br(e){B8=e;for(let o of TE)o()}function Lke(e){return TE.add(e),()=>{TE.delete(e)}}var F8=()=>B8;function N8(){return Ake(Lke,F8,F8)}var hp=e=>String(e?.group??""),kE=new WeakMap,Fke=0;function ty(e){let o=kE.get(e);return o||(o=`loc${++Fke}`,kE.set(e,o)),o}var D8=(e,o)=>o||e||"Ungrouped",M8={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 ai(e){return Yp(e,hp,o=>String(o?.groupName??"")).map(o=>({key:o.key,name:o.name,cards:o.items.map(t=>t.item)}))}var PE=e=>e.flatMap(o=>o.cards),H8=(e,o,t)=>Math.min(Math.max(e,o),t);function ry(e,o,t){let r=0;for(let a=0;a<e.length;a++)if(hp(e[a])===o){if(r===t)return a;r++}return-1}function EE(e,o,t){let r=ai(e);if(o<0||o>=r.length)return e;let[a]=r.splice(o,1),n=H8(o<t?t-1:t,0,r.length);return r.splice(n,0,a),PE(r)}function _E(e,o,t,r,a){let n=ai(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&&kE.set(d,ty(l));let f=H8(s===i&&t<a?a-1:a,0,i.cards.length);return i.cards.splice(f,0,d),PE(n)}function W8(e,o){let t=ai(e),r=t.find(n=>n.key===o),a={...M8,group:o,groupName:r?.name??""};return r?(r.cards.push(a),PE(t)):[...e,a]}function $8(e){let o=new Set(ai(e).map(a=>a.key)),t=o.size+1,r=`Group ${t}`;for(;o.has(r);)r=`Group ${++t}`;return{cards:[...e,{...M8,group:r,groupName:""}],key:r}}function U8(e,o){return e.filter(t=>hp(t)!==o)}function z8(e,o,t){let r=ry(e,o,t);return r<0?e:e.filter((a,n)=>n!==r)}function IIo(e,o,t){let r=e.flatMap((s,i)=>hp(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 yIo(e,o,t){return o.flatMap(r=>{let a=e.filter(n=>hp(n)===r);return a.length?a:t(r)})}var ny="ContactLocations",ay=e=>({parentId:`locations-${e}`,slot:"groups"}),AE=(e,o)=>({parentId:`locations-${e}`,slot:`cities:${o}`});function Z8(e,o){let{readOnly:t,selected:r}=o,a=$ke().tree,n=o.data?.content??[],s=Uke(e),i=OE(null);j8(()=>{let b=r?.type===ny?String(r.props.id):null;b&&b!==i.current&&Br({level:"groups"}),i.current=b},[r?.props.id]);let{selectedLocationPartId:l,setSelectedLocationPartId:d,setSelectHandler:f}=k6(),u=N8(),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=K8({keyOf:b=>`group:${b.si}:${b.index}`,readOnly:!!t,canDrop:(b,y)=>y.parentId===ay(b.si).parentId&&y.slot==="groups",onDrop:(b,y)=>{p(b.si,EE(m(b.si),b.index,y.index)),u.level==="city"&&Br({level:"groups"})},onStep:(b,y)=>{p(b.si,EE(m(b.si),b.index,y<0?b.index-1:b.index+2)),u.level==="city"&&Br({level:"groups"})}}),I=K8({keyOf:b=>`city:${b.si}:${b.group}:${b.index}`,readOnly:!!t,canDrop:(b,y)=>y.parentId===ay(b.si).parentId&&y.slot.startsWith("cities:"),onDrop:(b,y)=>{let v=y.slot.slice(7);p(b.si,_E(m(b.si),b.group,b.index,v,y.index)),Br({level:"group",key:v})},onStep:(b,y)=>{p(b.si,_E(m(b.si),b.group,b.index,b.group,y<0?b.index-1:b.index+2)),u.level==="city"&&Br({level:"group",key:b.group})}}),w=OE(n);w.current=n;let S=OE(()=>{});j8(()=>{f(b=>{let y=$g(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),Br(y),e.reveal();let v=n[b]?.props?.id;typeof v=="string"&&(y.level==="city"||y.level==="image"||y.level==="map")?d(Wg(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:O})=>{let N=m(y),k=ai(N),F=String(b.props.id),T=s&&r?.props.id===F,_=A=>No(X8,{...t?{}:h.seam({place:{...ay(y),index:A}})},`seam:${F}:groups:${A}`),P=(A,W)=>No(X8,{...t?{}:I.seam({place:{...AE(y,A),index:W}})},`seam:${F}:cities:${A}:${W}`);return ni(Bke,{children:[No(xp,{icon:No(Wke,{size:13}),name:c("Texts"),words:a,onSelect:()=>C(y,{level:"texts"}),selected:T&&u.level==="texts",rowProps:{onClick:v(()=>C(y,{level:"texts"}))}}),k.map((A,W)=>{let G=`${F}::grp::${A.key}`,Z=L(G),X=T&&u.level==="group"&&u.key===A.key,ce=A.name||A.key?D8(A.key,A.name):c("Ungrouped"),fe={...AE(y,A.key),index:A.cards.length},te=I.row({item:{si:y,group:A.key,index:-1},place:fe,into:fe,canDrag:!1},{onClick:v(()=>C(y,{level:"group",key:A.key}))}),Te=h.row({item:{si:y,index:W},place:{...ay(y),index:W}},te.rowProps);return ni(G8,{children:[W===0&&_(0),No(xp,{icon:No(Nke,{size:13}),name:ce,words:a,onSelect:()=>C(y,{level:"group",key:A.key}),selected:X,draggable:Te.draggable,dragging:Te.dragging,drop:Te.drop??te.drop,fold:{open:!Z,label:c("group"),onToggle:()=>O(G)},actions:No(q8,{kind:"delete",label:lt("Delete {label} group ({n} city)","Delete {label} group ({n} cities)",A.cards.length,{label:ce}),onClick:()=>{p(y,U8(N,A.key)),Br({level:"groups"})},children:No(V8,{size:15})}),rowProps:Te.rowProps,count:A.cards.length,countLabel:lt("{n} city","{n} cities",A.cards.length)}),!Z&&ni(Y8,{children:[A.cards.map((ve,Re)=>{let Le=ry(N,A.key,Re),nt=T&&u.level==="city"&&u.index===Le,Zo=String(ve?.name??"")||c("City"),ut=`${F}::city::${ty(ve)}`,Co=L(ut),{rowProps:Mo,...vo}=I.row({item:{si:y,group:A.key,index:Re},place:{...AE(y,A.key),index:Re}},{onClick:v(()=>C(y,{level:"city",index:Le}))});return ni(G8,{children:[Re===0&&P(A.key,0),No(xp,{icon:No(Mke,{size:13}),name:Zo,words:a,onSelect:()=>C(y,{level:"city",index:Le}),selected:nt,...vo,fold:{open:!Co,label:Zo,onToggle:()=>O(ut)},actions:No(q8,{kind:"delete",label:c("Delete {name}",{name:Zo}),onClick:()=>{p(y,z8(N,A.key,Re)),Br({level:"group",key:A.key})},children:No(V8,{size:15})}),rowProps:Mo}),!Co&&ni(Y8,{children:[No(xp,{icon:No(Dke,{size:13}),name:c("Image"),words:a,onSelect:()=>C(y,{level:"image",index:Le}),selected:T&&u.level==="image"&&u.index===Le,rowProps:{onClick:v(()=>C(y,{level:"image",index:Le}))}}),No(xp,{icon:No(Hke,{size:13}),name:c("Map"),words:a,onSelect:()=>C(y,{level:"map",index:Le}),selected:T&&u.level==="map"&&u.index===Le,rowProps:{onClick:v(()=>C(y,{level:"map",index:Le}))}})]}),P(A.key,Re+1)]},ty(ve))}),ni("button",{type:"button",className:"sf-add-card",onClick:()=>{let ve=W8(N,A.key);p(y,ve);let Re=ai(ve).find(Le=>Le.key===A.key);Br(Re&&Re.cards.length?{level:"city",index:ry(ve,A.key,Re.cards.length-1)}:{level:"group",key:A.key})},children:[No("span",{className:"sf-plus sf-plus--sm",children:"+"}),c("Add city")]})]}),_(W+1)]},G)}),ni("button",{type:"button",className:"sf-add-card",onClick:()=>{let{cards:A,key:W}=$8(N);p(y,A),C(y,{level:"group",key:W})},children:[No("span",{className:"sf-plus sf-plus--sm",children:"+"}),c("Add group")]})]})},sectionPressed:b=>{b?.type===ny&&Br({level:"groups"})}}}import{useEffect as Kke,useRef as Vke}from"react";import{createNode as LE,newId as FE}from"efficient-easel/data";import{useEaselApi as Yke}from"efficient-easel/easel";import{useScreenDocument as qke}from"efficient-easel/screen/components/ScreenDocumentContext";import{useEaselSession as Xke}from"efficient-easel/screen/lib/session-context";import{useEffect as oV,useRef as zke}from"react";import{useEasel as Gke}from"efficient-easel/easel";import{ROOT_ZONE as RE}from"efficient-easel/draw";var gp={};function J8(e){return gp={...e?.theme?{theme:e.theme}:{},...e?.site?{site:e.site}:{}},gp}function Q8(e){gp===e&&(gp={})}function mc(){return gp}function eV(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 rV(e){let o=Gke(d=>d.appState.data.content),{theme:t,themeRow:r,themeFromDocument:a,siteGutter:n,siteGutterPhone:s,siteLengthUnits:i}=pe(),l=zke(new Set);oV(()=>{let d=tV({theme:t,themeRow:r,themeFromDocument:a,siteGutter:n,siteGutterPhone:s,siteLengthUnits:i});d&&jke(V4(o,void 0,d),e,l.current)},[o,e,t,r,a,n,s,i]),oV(()=>{let d=J8(tV({theme:t,themeRow:r,themeFromDocument:a,siteGutter:n,siteGutterPhone:s,siteLengthUnits:i}));return()=>Q8(d)},[t,r,a,n,s,i])}function tV(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=eV({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 jke(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(RE,r,a[0]),a.slice(1).forEach((s,i)=>{o.insertNode(RE,r+1+i,s),o.replaceComponent(RE,r+1+i,s)}))}}import{ROOT_ZONE as hc,missingPinnedTypes as Zke,pinnedDuplicateIds as BE}from"efficient-easel/draw";function aV(e){return!e.docId||e.saveStatus==="saving"?!1:e.seededDocId!==e.docId}function nV(e,o){let t=e.some(i=>i?.type===Ge),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===kt),seedFooter:s,seedSiteHeader:s&&!e.some(i=>i?.type===Je)}}async function sV(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(Du(r,t)),!0)}function iV(e,o){let{adapter:t,capabilities:r,currentSlug:a,docId:n,data:s,saveStatus:i,siteId:l,tokenRef:d}=qke(),f=Xke(),{hasSiteSettings:u,hasPinnedChrome:p}=r;rV(e);let m=!!r.editsPinnedInPlace&&a!==yr,h=a===yr,I=Yke().getState,w=Vke(null);Kke(()=>{if(!aV({docId:n,saveStatus:i,seededDocId:w.current})||(w.current=n,!p))return;let S=I().appState.data,C=S.content,b=s?.content??[],y=(N,k)=>N.some(F=>F?.type===k);if(!u){let N=new Set(BE(C)),k=N.size?C.filter(T=>!N.has(T.props.id)):C;if(N.size&&e.setDocument({...S,content:k}),h)return;let F=Zke(k,b);if(F.includes(Qe)){let T=k.length,_=e.insertSection(Qe,T);e.replaceComponent(hc,T,{type:Qe,props:{id:_,blocks:ZI()}})}F.includes(kt)&&e.insertNode(hc,0,XI());return}if(h){let N=Di(C);if(N!==C&&e.setDocument({...S,content:[...N]}),!N.find(k=>k.type===Qe)&&!y(b,Qe)&&!y(N,Ge)&&!y(b,Ge)){let k=(T,_)=>LE(o,T,_),F={type:Qe,props:{blocks:ZI()}};e.insertNode(hc,N.length,_f(F,k,FE(Ge),pp))}return}if(m){let N=!!t?.pinnedChrome?.state().docId,k=nV(C,{hasChromeDoc:N}),F=new Set([...k.remove,...BE(C.filter(_=>!k.remove.includes(String(_.props.id))))]),T=F.size?C.filter(_=>!F.has(String(_.props.id))):C;if(T.length!==C.length&&e.setDocument({...S,content:T}),k.seedFooter&&!y(b,Qe)&&!y(b,Ge)){let _=(A,W)=>LE(o,A,W),P={type:Qe,props:{blocks:ZI()}};e.insertNode(hc,T.length,_f(P,_,FE(Ge),pp))}if(k.seedHeader&&!y(b,kt)){let _=T[0]?.type===Je?1:0;e.insertNode(hc,_,XI())}if(k.seedSiteHeader&&!y(b,Je)&&!y(b,Qe)&&!y(b,Ge)){let _=n;sV({blocks:Vi(f),make:(P,A)=>LE(o,P,A),id:FE(Je),siteId:l??null,token:d.current,latest:()=>I().appState.data.content,stillOpen:()=>w.current===_,write:P=>{let A=I().appState.data;e.setDocument({...A,content:[...P]})}})}return}let v=C.filter(N=>N.type!==Qe),L=new Set(BE(v)),O=L.size?v.filter(N=>!L.has(N.props.id)):v;O.length!==C.length&&e.setDocument({...S,content:O}),!y(O,kt)&&!y(b,kt)&&e.insertNode(hc,0,XI())},[n,i,s,I,e,u,p,h,m,t,f,l,d])}import{useEffect as gV,useMemo as aPe,useRef as IV}from"react";import{useEasel as nPe}from"efficient-easel/easel";import{newId as sPe}from"efficient-easel/data";import{useEaselHost as iPe}from"efficient-easel/screen/lib/host";import{FIELD_DESCRIPTION_MARKER as Jke}from"efficient-easel/screen/lib/host";import{isNode as dV}from"efficient-easel/data";function Ip(e,o){let t=e.components[o]?.label;return typeof t=="string"&&t.trim()?t.trim():o}function Qke(e){return e.length>3&&e.endsWith("s")?e.slice(0,-1):e}function NE(e,o,t,r){e.forEach((a,n)=>{if(dV(a)){r.push({node:a,list:e,index:n,parent:o,slot:t});for(let s of Dr(a))NE(a.props[s],a,s,r)}})}function ePe(e){let o=[];NE(Array.isArray(e.content)?e.content:[],null,"",o);for(let t of Object.values(e.zones??{}))Array.isArray(t)&&NE(t,null,"",o);return o}function fV(e,o){return ePe(e).find(t=>String(t.node.props.id)===o)}function pV(e,o,t){if(!t)return null;let r=fV(o,t);if(!r)return null;let a=Ip(e,r.node.type),n=r.parent?`${Ip(e,r.parent.type)} \xB7 ${Qke(r.slot)} ${r.index+1}`:a;return{blockId:t,type:r.node.type,label:n,path:""}}var oPe=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 tPe(e){if(!e||typeof e!="object")return null;let o=e;if(typeof o.type!="string")return null;let t=o.type==="custom"?o[Jke]: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=oPe(n));for(let s of["arrayFields","objectFields"]){let i=t?.[s]??o[s];i&&typeof i=="object"&&(r[s]=uV(i))}return r}function uV(e){let o={};for(let[t,r]of Object.entries(e??{})){let a=tPe(r);a&&(o[t]=a)}return o}function mV(e){let o={};for(let[t,r]of Object.entries(e.components))r&&(o[t]={label:Ip(e,t),fields:uV(r.fields),...hV(t)?{retired:!0}:{}});return o}function hV(e){return We(o_,e)}function lV(e,o){let t=e.components[o]?.defaultProps;return t&&typeof t=="object"?structuredClone(t):{}}function rPe(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 DE(e,o){return e.findIndex(t=>dV(t)&&String(t.props.id)===o)}function cV(e,o,t){let r=o||t;if(!r)return e.length;let a=DE(e,r);if(a<0)throw new Error(`there is no top-level block ${r}`);return o?a+1:a}function xV(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=fV(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=rPe(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}`),hV(i.type)&&d(`${Ip(e,i.type)} is retired: it is no longer added (a page that holds one keeps it)`);let f=Ql(i.type),u=Object.keys(i.props??{}).filter(m=>m!=="id");f&&u.length&&d(`${Ip(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=>lV(e,m),r,a):{type:i.type,props:{...lV(e,i.type),...structuredClone(i.props),id:r(i.type)}};s.splice(cV(s,i.after,i.before),0,p);break}case"remove_block":{let f=DE(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=DE(s,i.block_id);f<0&&d(`there is no top-level block ${i.block_id}`);let[u]=s.splice(f,1);s.splice(cV(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 ME=e=>Se(e.requestId)??null;function yV(){let e=iPe(),{appState:o,selectedItem:t,dispatch:r,history:a,config:n}=nPe(p=>p),s=n,i=IV({appState:o,dispatch:r,history:a,blockConfig:s});i.current={appState:o,dispatch:r,history:a,blockConfig:s};let l=IV(new Map),d=t?.props?.id,f=aPe(()=>pV(s,o.data,d),[s,o.data,d]),u=f?JSON.stringify(f):"";gV(()=>{e.connected&&e.send("storefront-editor:selection",{selection:f})},[e,u]),gV(()=>e.subscribe(p=>{let{appState:m,dispatch:h,history:I,blockConfig:w}=i.current;switch(p.type){case"storefront-editor:request-document":{let S=ME(p);if(!S)return;e.send("storefront-editor:document",{requestId:S,document:m.data,blocks:mV(w)});return}case"storefront-editor:apply-page-edits":{let S=ME(p);if(!S)return;let C=Array.isArray(p.ops)?p.ops:[],b=C.length?xV(w,m.data,C,sPe,mc()):{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=ME(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 wV,useState as CV}from"react";var sy=new Map;async function lPe(e,o){try{return(await je().site.get({siteId:o})).slug?.trim()||null}catch(t){return console.warn("[editor-site-slug] could not resolve the site slug",t),null}}function bV(e,o){let t=sy.get(o);return t||(t=lPe(e,o),sy.set(o,t),t.catch(()=>{sy.get(o)===t&&sy.delete(o)})),t}var cPe=/^(localhost|(?:[a-z0-9-]+\.)+localhost|127(?:\.\d{1,3}){3}|0\.0\.0\.0|\[::1\]|::1)$/i;function HE(e){return!!e&&cPe.test(e)}function SV(e){let{pageSlug:o,siteSlug:t,hostname:r}=e,a=o===Qu?"/":`/${encodeURIComponent(o)}`;if(!HE(r))return a;let n=t?.trim();return n?`${a}?site=${encodeURIComponent(n)}`:a}function vV(e){let{pageSlug:o,siteId:t,token:r}=e,[a,n]=CV(null),[s,i]=CV(null),l=XO();wV(()=>{try{i(new URL(vu()).hostname)}catch{i(null)}},[l]),wV(()=>{if(!HE(s)||!t||!r){n(null);return}let f=!1;return bV(r,t).then(u=>{f||n(u)}),()=>{f=!0}},[s,t,r]);let d=SV({pageSlug:o,siteSlug:a,hostname:s});return l?`${l}${d}`:d}import{jsx as yp}from"react/jsx-runtime";import{useEffect as dPe,useRef as TV,useState as fPe}from"react";import{ExternalIcon as kV}from"efficient-easel/icons";import{EaselIconButton as pPe}from"efficient-easel/chrome";import{Tooltip as uPe,iconButtonClasses as mPe}from"efficient-shell/ui";import{useSettledPress as hPe}from"efficient-easel/easel";import{useScreenDocument as xPe}from"efficient-easel/screen/components/ScreenDocumentContext";async function gPe({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 PV({liveHref:e,pageId:o,draftLink:t}){let{flushSave:r}=xPe(),a=TV(r);a.current=r;let n=hPe(),[s,i]=fPe(!1),l=TV(null);if(dPe(()=>()=>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),gPe({pageId:o,liveHref:e,draftLink:t,ready:d}).finally(()=>i(!1)))};return yp(pPe,{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:yp(kV,{})})}return yp(uPe,{content:c("Preview the live site (opens in a new tab)"),side:"bottom",children:yp("a",{className:mPe({className:"es-iconbtn"}),href:e,...Kd,"aria-label":c("Preview the live site in a new tab"),children:yp(kV,{})})})}import{createElement as IPe,useCallback as yPe,useEffect as EV,useRef as _V,useState as bPe}from"react";import{ClockIcon as SPe}from"efficient-shell/icons/efficient";import{useScreenDocument as wPe}from"efficient-easel/screen/components/ScreenDocumentContext";function OV(e){let{docId:o,capabilities:t,hasUnsavedEdits:r,onPublish:a,adapter:n}=wPe(),s=qK(YK(o??null),r),i=bI(SI()),l=n.siteLiveState;EV(()=>{if(l)return SS(l),ga(0),()=>SS(null)},[l]);let d=vm(),[f,u]=bPe(!1),p=_V(e);p.current=e;let m=_V(!0);EV(()=>(m.current=!0,()=>{m.current=!1}),[]);let h=yPe(()=>{u(!0),a(p.current).then(()=>{CI()}).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=dE({live:I,onPress:h,busy:f,goingLive:XK(d?.changes??[])});return n.siteVersions?{...w,menuItems:CPe()}:w}return dE({live:s,onPress:h,busy:f,pinnedUnpublished:i?.unpublished??!1})}}function CPe(){return[{key:"version-history",label:c("Version history"),icon:IPe(SPe),onSelect:hj}]}import{jsx as ne,jsxs as Dt,Fragment as wp}from"react/jsx-runtime";import{useCallback as vPe,useEffect as TPe,useId as LV,useRef as kPe,useState as dr}from"react";import{useSettledAction as PPe}from"efficient-easel/easel";import{Avatar as EPe,Banner as bp,Button as si,ColoredBadge as WE,Dialog as FV,Drawer as _Pe,DropdownMenu as OPe,FormField as BV,iconButtonClasses as APe,Inline as $E,Input as RPe,ListRow as LPe,Select as FPe,SortableList as BPe,Stack as Sp}from"efficient-shell/ui";import{EditIcon as NPe,EyeIcon as AV,MenuIcon as DPe,MoreIcon as MPe,PageIcon as NV,RevertIcon as RV,StylesIcon as HPe}from"efficient-shell/icons/efficient";import{useScreenDocument as DV}from"efficient-easel/screen/components/ScreenDocumentContext";var WPe={page:NV,menu:DPe};function $Pe(e,o){return e.pages.find(t=>t.id===o)??e.pages[0]??null}function UPe(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 zPe({version:e,page:o,waiting:t,busy:r,error:a,onCancel:n,onConfirm:s,onPage:i}){let l=LV();if(!e)return null;let d=e.kind==="draft_before_restore",f=e.number,u=Cj(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 ne(FV,{open:!0,onClose:()=>{r||n()},size:"sm",title:p,footer:Dt(wp,{children:[ne(si,{variant:"secondary",onClick:n,disabled:r,children:c("Cancel")}),ne(si,{onClick:s,loading:r,disabled:r,children:c("Restore as draft")})]}),children:Dt(Sp,{gap:4,children:[o&&e.pages.length>1?ne(BV,{label:c("Page"),htmlFor:l,children:ne(FPe,{id:l,value:o.id,options:e.pages.map(I=>({value:I.id,label:I.name})),onChange:i,disabled:r})}):null,ne("p",{children:m}),ne("p",{children:c("Your live website does not change until you press Publish.")}),h>0?ne(bp,{tone:"warning",children:lt("{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?ne(bp,{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?ne(bp,{tone:"danger",children:a}):null]})})}function GPe({version:e,onCancel:o,onSave:t}){let r=LV(),[a,n]=dr(null),[s,i]=dr(""),[l,d]=dr(!1),[f,u]=dr(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 ne(FV,{open:!0,onClose:()=>{l||o()},size:"sm",title:c("Name this version"),footer:Dt(wp,{children:[ne(si,{variant:"secondary",onClick:o,disabled:l,children:c("Cancel")}),ne(si,{onClick:()=>{m()},loading:l,disabled:l||p,children:c("Save")})]}),children:ne(BV,{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:ne(RPe,{id:r,value:s,invalid:!!f,onChange:h=>i(h.target.value),onKeyDown:h=>{h.key==="Enter"&&m()}})})})}function jPe({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:ne(AV,{}),onSelect:r}],...l?[{key:"restore",label:i?c("Put these drafts back"):c("Restore whole website"),icon:ne(RV,{}),onSelect:a}]:[],...l&&!i&&e.pages.length?[{key:"restore-page",label:c("Restore one page only"),icon:ne(NV,{}),onSelect:n}]:[],...i?[]:[{type:"divider",key:"divider"},{key:"name",label:c("Name this version"),icon:ne(NPe,{}),onSelect:s}]];return ne(LPe,{title:Dt("span",{className:"sf-version-title",children:[ne("span",{children:wj(e)}),e.live?ne(WE,{tone:"success",size:"xs",children:c("Live")}):null,e.name?ne(WE,{tone:"neutral",size:"xs",children:c("Version {n}",{n:e.number})}):null,i?ne(WE,{tone:"warning",size:"xs",children:c("Not published")}):null]}),expanded:o,onToggle:t,actions:ne(OPe,{align:"end","aria-label":c("More"),items:f,triggerClassName:APe({variant:"ghost",size:"sm"}),trigger:ne(MPe,{})}),below:Dt(Sp,{gap:3,children:[Dt($E,{gap:2,align:"center",wrap:!0,className:"sf-version-meta",children:[ne(EPe,{name:e.createdBy,size:"xs"}),ne("span",{children:e.createdBy}),ne("span",{"aria-hidden":"true",children:"\xB7"}),ne("span",{children:Tj(e.createdAt)}),d?Dt(wp,{children:[ne("span",{"aria-hidden":"true",children:"\xB7"}),ne("span",{children:lt("{n} change","{n} changes",d)})]}):null]}),o?Dt(Sp,{gap:3,children:[d?ne(Sp,{gap:2,children:e.changes.map(u=>{let p=WPe[u.kind]??HPe;return Dt($E,{gap:2,align:"center",children:[ne(p,{size:16}),ne("span",{children:vj(u)})]},`${u.kind}:${u.id}`)})}):null,Dt($E,{gap:2,children:[i?null:ne(si,{variant:"secondary",size:"sm",leftIcon:ne(AV,{}),onClick:r,children:c("Preview")}),l?ne(si,{variant:"secondary",size:"sm",leftIcon:ne(RV,{}),onClick:a,children:c("Restore")}):null]})]}):null]})})}function KPe({open:e,onClose:o,access:t,waiting:r}){let{flushSave:a,reloadFromServer:n,docId:s}=DV(),[i,l]=dr(null),[d,f]=dr(!1),[u,p]=dr(null),[m,h]=dr(null),[I,w]=dr(!1),[S,C]=dr(null),[b,y]=dr(null),[v,L]=dr(!1),O=kPe(0),N=vPe(()=>{let _=++O.current;f(!1),t.list().then(P=>{_===O.current&&l(P)},()=>{_===O.current&&f(!0)})},[t]);TPe(()=>{e&&N()},[e,N]);let k=_=>{L(!1),UPe(t,_.id).catch(()=>L(!0))},F=async()=>{if(!(!m||I)){w(!0),C(null);try{await bj({access:t,version:m.version,page:m.page,flushSave:a,reload:n}),h(null),o()}catch(_){C(_ instanceof Qf?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)}}},T=PPe({onPress:()=>{F()},busy:I});return Dt(wp,{children:[ne(_Pe,{open:e,onClose:o,side:"right",size:"md",title:c("Version history"),description:Dt(wp,{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:ne("span",{className:"sf-version-foot",children:c("The newest 30 are kept. Named versions are always kept.")}),children:Dt(Sp,{gap:3,children:[v?ne(bp,{tone:"danger",onDismiss:()=>L(!1),children:c("The preview did not open. Try again.")}):null,d?ne(bp,{tone:"danger",action:ne(si,{variant:"secondary",size:"sm",onClick:N,children:c("Try again")}),children:c("Version history did not load.")}):i===null?ne("p",{className:"sf-version-foot",children:c("Loading versions")}):i.length===0?ne("p",{className:"sf-version-foot",children:c("No versions yet. Every Publish from now on keeps one.")}):ne(BPe,{"aria-label":c("Versions"),spacing:"comfortable",children:i.map(_=>ne(jPe,{version:_,expanded:u===_.id,onToggle:()=>p(P=>P===_.id?null:_.id),onPreview:()=>k(_),onRestore:()=>{C(null),h({version:_,page:null})},onRestorePage:()=>{C(null),h({version:_,page:$Pe(_,s)})},onName:()=>y(_)},_.id))})]})}),ne(zPe,{version:m?.version??null,page:m?.page??null,waiting:r,busy:T.busy===!0,error:S,onCancel:()=>h(null),onConfirm:T.onPress,onPage:_=>h(P=>P&&{...P,page:P.version.pages.find(A=>A.id===_)??P.page})}),ne(GPe,{version:b,onCancel:()=>y(null),onSave:async _=>{await t.name(b.id,_),y(null),N()}})]})}function MV(){let{adapter:e,hasUnsavedEdits:o}=DV(),t=e.siteVersions,r=gj(),a=vm();return t?ne(KPe,{open:r,onClose:xj,access:t,waiting:o||a?.state==="changed"}):null}import{useEaselSession as C7}from"efficient-easel/screen/lib/session-context";import{buildPaletteSections as ubo,categoryLabel as mbo,paletteWithoutPinned as hbo,pinnedSection as xbo}from"efficient-easel/screen/lib/document/palette-sections";var VPe={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 HV(e){return $(VPe,e)?.label}var WV=a_;function YPe(e){let o=jg.Ticker(e.nodeDefaults,e.newNodeId),{sectionBorder:t,...r}=o.props,a=Yv.line?{sectionBorder:t}:{};return{...o,props:{...r,...a,sectionAccent:Yv.sectionAccent}}}var qPe={Hero:{[xf]:{newChild:YPe,childLabel:Ln.Ticker}}},$V=Object.fromEntries(Object.entries(H4).map(([e,o])=>[e,Object.fromEntries(Object.entries(o).map(([t,r])=>[t,{...r,...$(qPe,e)?.[t]}]))]));function UV(e,o=0,t,r){let a=ZPe(JPe(e,o,r),t),n=a?Pk():null;return a&&n?XPe(a,n):a}function XPe(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 ZPe(e,o){if(!e||e.source!=="container"||!o||!x0())return e;let t=ru({data:o.data},o.id),r=typeof t?.type=="string"?Jp(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 JPe(e,o,t){let r=t?$($V,e)?.[t]:void 0;if(r)return{source:"section",slot:r.slot,choices:null,spec:r};let a=$(Qt,e);if(a)return{source:"section",slot:a.slot,choices:null,spec:a};let n=Lp(e,o);if(n)return{source:"container",slot:n.slot,choices:n.choices,spec:null};let s=l8(e);return s?{source:"footer",slot:i8,choices:s,spec:null}:null}function zV(e,o=ou(e.type)){return eu(e.type)?o.map(t=>{let r=y0(e.type,t);return r===null?{slot:t,label:t,rung:!1}:{slot:t,label:c(r),rung:!0}}):null}import{useSyncExternalStore as QPe}from"react";var UE=null,zE=new Set;function GV(e){if(UE!==e){UE=e;for(let o of zE)o()}}function eEe(e){return zE.add(e),()=>{zE.delete(e)}}function Hbo(){return QPe(eEe,()=>UE,()=>null)}function jV(e){return zc(e)?.ownerId??null}function KV(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 oEe=["pages","sections","styles"],VV="sf-editor-left-view";function YV(){if(typeof window>"u")return"pages";try{let e=window.localStorage.getItem(VV);return Q(oEe,"pages",e)}catch{return"pages"}}function qV(e){if(!(typeof window>"u"))try{window.localStorage.setItem(VV,e)}catch{}}function XV(e,o){return e==="styles"&&!o?"sections":e}function ZV(e,o){return e?"sections":o}import{copyNode as tEe}from"efficient-easel/data";function JV(e){let o=typeof e?.props?.id=="string"?e.props.id:null,t=hr(),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 QV={usedOn:e=>{let o=hr(),t=o?.sectionOf(e.props.id)??null;return!o||!t?null:o.usedOn(t)??[]},openPage:e=>Wu()?.openPage(e),adopt:(e,o)=>hr()?.adopt(e.props.id,o),nodeOf:e=>hr()?.place(e)??null,detach:e=>{let o=Wu()?.config;return o?tEe(e,o):e},removed:()=>Wu()?.reload()};import{sharedSectionsOf as _Ee}from"efficient-easel/screen/lib/shared-sections";import{scrollPreviewToSection as OEe,scrollPreviewToTop as x7}from"efficient-easel/screen/lib/document/preview-dom";var rEe=_u.mediaFields,aEe=/video|poster|focal|phone/i;function nEe(e){return($(rEe,e)??[]).find(o=>!o.includes("[]")&&!aEe.test(o))??null}function sEe(e){let o=nEe(e.type);return e.type!==Y?o&&tu(e.type,e.props,o)?{fromData:!0}:o:nm(e.props)?{fromData:!0}:o}var e7={adds:{kind:"block",type:"ImageBlock"},kinds:["image"],pictureOf:sEe,create:(e,o)=>({type:"ImageBlock",props:{...o.nodeDefaults("ImageBlock"),id:o.newNodeId("ImageBlock"),src:e.url}})};var o7={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 iy}from"react/jsx-runtime";import{useState as iEe}from"react";import{Button as lEe,Tooltip as cEe,toast as t7}from"efficient-shell/ui";import{TemplateIcon as dEe}from"efficient-easel/icons";import{useSettledAction as fEe}from"efficient-easel/easel";import{useScreenDocument as pEe}from"efficient-easel/screen/components/ScreenDocumentContext";function a7({enabled:e,reason:o,onSaved:t}){let{flushSave:r}=pEe(),[a,n]=iEe(!1),s=async()=>{if(!a){n(!0);try{await r()?t():t7.error(c(r7))}catch{t7.error(c(r7))}finally{n(!1)}}},i=fEe({onPress:()=>{s()},busy:a});return iy(cEe,{side:"bottom",content:e?c("Save this website as a platform template"):c(o),children:iy("span",{className:"sf-tip-disabled",tabIndex:e?void 0:0,children:iy(lEe,{variant:"secondary",disabled:!e||i.busy,loading:i.busy,onClick:i.onPress,rightIcon:iy(dEe,{size:15}),children:c("Save as Template")})})})}var r7="Your last changes did not save, so the template was not made. Try again.";var uEe="Save your page changes first";function n7(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:uEe}:{visible:!0,enabled:!0}:{visible:!1,hiddenReason:"no-site"}:{visible:!1,hiddenReason:"not-operator"}:{visible:!1,hiddenReason:"no-console"}}var s7="storefront-editor:save-as-template";import{phoneKey as mEe,tabletKey as hEe}from"efficient-easel/draw";var xEe=[Gt.top,hEe(Gt.top),mEe(Gt.top)],ly="ContactLocations",i7="ContactRouting",l7="CityPictures",c7="CityMaps",gEe=[{key:l7,label:"City pictures",piece:0,desc:"A wall of city photos, grouped by region. Each photo links to its city's card."},{key:c7,label:"City maps",piece:1,desc:"A card per city, grouped by region: address, phone, hours and a map."}];function d7(e=Bs,o=$T){let t=e_.find(r=>r.sections.some(a=>a.type===i7))?.key;return!e.includes(ly)||!t?[]:gEe.filter(r=>!(o&&r.key===l7)).map(({key:r,label:a,desc:n,piece:s})=>({key:r,label:a,cat:t,after:i7,desc:n,alias:"locations offices stores branches",insert:i=>{let l=xn(ly);if(!l)return null;let d=mc(),f=Hf(ly,l,s)(i.nodeDefaults,i.newNodeId,d);if(!f||!(o&&r===c7))return f;let u=Hf(ly,l,0)(i.nodeDefaults,m=>`${m}-above`,d),p=Object.fromEntries(xEe.filter(m=>u?.props[m]!==void 0).map(m=>[m,u.props[m]]));return{...f,props:{...f.props,...p}}}}))}function f7(e=Bs,o){return[...d7(e,o)]}function u7(e,{nodeDefaults:o,newNodeId:t,sectionLabel:r,blockIsOffered:a}){let n=Ql(e);if(n)return n(o,t,mc());if(l0(e)&&a(Y)&&a(wi)){let i=$(mr,e);return{type:Y,props:{...o(Y),id:t(Y),direction:"column",name:`${r(e)} section`,content:[{type:wi,props:{...o(wi),id:t(wi),...i?.headStyle?{headStyle:i.headStyle}:{},...i?.headRowGap?{rowGap:i.headRowGap}:{},...i?.headDescriptionSize?{descriptionSize:i.headDescriptionSize}:{},...Yd(e)!==Yd(wi)?{eyebrowLook:Yd(e)}:{}}},{type:e,props:{...o(e),id:t(e),headPlacement:"own-box",...p7(e,t)}}]}}}if($(Qt,e)?.fixed===!0)return{type:e,props:{...o(e),id:t(e),layout:"boxes"}};let s=p7(e,t);return Object.keys(s).length?{type:e,props:{...o(e),id:t(e),...s}}:null}function p7(e,o){return e==="Cards"?{template:n0(t=>o(t))}:e===s0?{template:i0(t=>o(t))}:{}}import{useEffect as IEe,useState as yEe}from"react";import{useEaselSession as bEe}from"efficient-easel/screen/lib/session-context";function m7(){let e=bEe().chrome?.products?.list,[o,t]=yEe(null);return IEe(()=>{if(!e)return;let r=!1;return e().then(a=>{r||t(a)}),()=>{r=!0}},[e]),o}function v7({mode:e,open:o}){let{setSelectedHeroId:t,setSelectHandler:r}=C6(),a=w7().tree,n=e,s=n.kind==="ticker"?n.heroId:null,i=xc(l=>{l&&(o({kind:"ticker",heroId:l}),OEe(l))},[o]);return aa(()=>{t(s)},[s,t]),aa(()=>{r(i)},[r,i]),{partRows:(l,{rowClick:d})=>{let f=String(l.props.id);return l.type==="Hero"&&qv(l.props)&&Do(b7,{icon:Do(Qs,{type:"ticker",size:13}),name:c(Ks),onSelect:()=>i(f),selected:s===f,rowProps:{onClick:d(()=>i(f))},words:a})}}}function T7({mode:e,select:o}){let{setSelectedHeroPart:t,setSelectHandler:r}=RI(),a=w7().tree,{appState:n,config:s}=S7(p=>p),i=SEe({data:n.data,config:s});i.current={data:n.data,config:s};let l=e,d=As.find(p=>ff[p]===l.kind),f=d&&"nodeId"in l?Rs(String(l.nodeId),d):null,u=xc(p=>{let m=Lx(p);if(!m)return;let{data:h,config:I}=i.current,w=PEe(h,I,{kind:"node",id:m.nodeId});if(!w)return;let S={kind:ff[m.part],nodeId:m.nodeId};o({index:w.index,zone:w.zone},S)},[o]);return aa(()=>{t(f)},[f,t]),aa(()=>{r(u)},[r,u]),{partRows:(p,{rowClick:m})=>{let h=String(p.props.id),I=X2(p);if(I.length===0)return null;let w=b=>{let y=Rs(h,b.part);return Do(b7,{icon:Do(Qs,{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 Cp(y7,{children:[w(S),C.length>0&&Do(kEe,{children:C.map(w)})]})}}}function k7(e,o){return{partRows:(t,r)=>Cp(y7,{children:[e.partRows?.(t,r),o.partRows?.(t,r)]})}}function AEe(e){let{adapter:o,capabilities:t,currentSlug:r,siteId:a,docId:n,hasUnsavedEdits:s,bridgeCapabilities:i,notifyParent:l,token:d}=cy(),{hasPreviewLink:f}=t,u=je(C7()).preview?.draftLink,p=OV(e.data),m=n7({hasTrustedConsole:!!d,canCreatePlatformTemplate:i.canCreatePlatformTemplate,capabilities:t,siteId:a,hasUnsavedEdits:s}),h=xc(()=>{!a||!r||l(s7,{siteId:a,slug:r})},[l,a,r]),I=vV({pageSlug:r,siteId:a,token:d}),w=o.previewHref?.(r)??I;return{barLead:()=>m.visible&&Do(a7,{enabled:m.enabled,reason:m.enabled?"":m.disabledReason,onSaved:h}),barView:()=>f&&r&&Do(PV,{liveHref:w,pageId:n??null,draftLink:u}),mainAction:p}}function REe(e,o){let{capabilities:t,templateId:r,siteId:a,tokenRef:n,navigate:s}=cy(),{hasSiteTheme:i,explainsSiteSettings:l}=t,d=b=>o.setView(b),[f,u]=h7(bl[0].id),[p,m]=h7(!1),{surface:h,setSurface:I}=eK(),w=()=>{if(i){d("styles"),o.reveal(),x7();return}e.show(SE),e.reveal(),x7()},S={id:"pages",label:c("Pages"),icon:Do(CEe,{}),panel:({onHide:b})=>Do(Gj,{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:Do(TEe,{}),active:e.kind==="website",onSelect:w}),i&&C.push({id:"styles",label:c("Styles"),icon:Do(vEe,{}),panel:({onHide:b,notify:y})=>Do(L8,{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=>XV(b,i),openSettings:w,openStyles:()=>{u(TM),d("styles")},openPageStyles:i?()=>{u(wl),m(!0),d("styles"),o.reveal()}:l?()=>{e.show(S8),e.reveal()}:void 0}}function LEe(){let{navigate:e,siteId:o,reloadFromServer:t,docId:r}=cy(),a=S7(s=>s.config),n=C7();aa(()=>(yb({openPage:s=>e({kind:"page",slug:s.slug,siteId:o??void 0}),reload:()=>{t()},config:a}),()=>yb(null)),[e,o,t,a]),aa(()=>{let s=hr();if(!s||!r)return;let i=!1;return _Ee(n).list().then(l=>{i||s.learn(l)}).catch(()=>{}),()=>{i=!0}},[r,n])}function P7(){let e=Ru();return xc(o=>{NN(o,e)},[e])}function FEe(e,o,t,r){let{kind:a,open:n}=e,{selected:s,zoneOf:i}=o;aa(()=>{GV(s?.type==="BookingBox"&&s.props.region==="confirm"?jV(i(String(s.props.id))):null)},[s?.props.id]);let l=Z8(e,o),{capabilities:{hasSiteSettings:d}}=cy();LEe();let{chat:f,setChat:u,setSelected:p,setSelectHandler:m}=AI(),h=xc(()=>n(w8),[n]),I=a==="chat";aa(()=>{p(I)},[I,p]),aa(()=>{m(h)},[m,h]);let{setOpenHandler:w}=op(),S=xc(()=>n(C8),[n]);aa(()=>{w(S)},[w,S]);let C=k7(v7(e),T7(e)),b=AEe(o),y=REe(e,r);Nj(r);let v=t.device,L=P7();return{...C,...b,...y,hasOwnRows:O=>O.type===ny,ownRows:l.renderLocationTree,sectionPressed:l.sectionPressed,onCopyItem:L,wrap:O=>Do(nb.Provider,{value:!0,children:Cp(EEe.Provider,{value:v,children:[O,Do(MV,{})]})}),addPanelRow:O=>d?Cp("div",{className:"sf-addside-sitewide",children:[Do("span",{className:"sf-addside-sitewide-glyph","aria-hidden":"true",children:Do(Qs,{type:"chat",size:16})}),Cp("button",{type:"button",className:"sf-addside-sitewide-name",onClick:()=>{O(),h()},children:[c("Live chat"),Do("span",{className:"sf-addside-sitewide-desc",children:c("A chat bubble on every page")})]}),Do(wEe,{checked:f.enabled,onChange:N=>u({enabled:N}),ariaLabel:c("Show the chat bubble on the whole site")})]}):void 0}}var g7=null,GE=new WeakMap;function BEe(e){let o=n1();if(!e||!o)return e;g7!==o&&(g7=o,GE=new WeakMap);let t=GE.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},GE.set(e,t)),t}var NEe={isLockedBlock:(e,o)=>cI(e,o)||!!(o&&hr()?.heldElsewhere(o.props.id)),duplicateBlocked:JI,nestDepth:(e,o,t)=>o===pu?uu(e,t):0,newSectionNode:u7,canAddTo:(e,o,t,r)=>BEe(UV(e,o,r,t)),blockIsOffered:hU,slotsOf:zV,resolveOnInsert:!0},DEe=new Proxy(o7,{get:(e,o)=>{let t=Reflect.get(e,o);return typeof t=="string"?c(t):t}}),MEe={labelAtLevel:(e,o,t)=>c(fy(e,o,t)),descriptions:DEe,categoryLabel:e=>{let o=HV(e);return o===void 0?void 0:c(o)},firstSection:WV,blockRowName:KV,rowName:dI,plainText:la,Icon:Qs,Thumbnail:A8,useProducts:m7,presets:f7()},HEe={desktop:2e3,tablet:800,mobile:390},I7="desktop",WEe={options:Xj,initial:I7,fluid:I7,fluidMin:Jo,widths:HEe,hidesPerView:!0},$Ee={read:YV,write:e=>qV(e),forSelection:(e,o)=>ZV(e,o)},UEe={first:kt,last:Qe,firstGroup:Je,lastGroup:Ge,isSectionGroup:Ni,sectionGroupZone:P1,panelOf:e=>e===kt?b8:null,get sharedReach(){return Xs()?GEe:void 0},get shared(){return hr()?QV:void 0},get groupTab(){return Xs()?c8:void 0},get groupBadge(){return Xs()?xE({type:Ge})??void 0:void 0},get changeNotice(){return Xs()?d8():void 0},get band(){return Xs()?zEe:void 0},get groupAccepts(){return Xs()?O1:void 0}},zEe={foldable:!0},GEe=e=>xE(e)??JV(e);function jEe(e){return{...k7(v7(e),T7(e)),onCopyItem:P7(),openSettings:()=>e.show(SE)}}function KEe(e,o){iV(e,o),yV()}var Xwo={useOwnerName:Cl,useDocumentLabel:OM,useBridges:FEe,useStandaloneBridges:jEe,useDocumentPass:KEe,blockRules:NEe,blockLook:MEe,devices:WEe,leftView:$Ee,pinned:UEe,Canvas:_j,canvasDrag:{media:e7},Inspector:T8};export{Ck as a,je as b,Vi as c,ea as d,oa as e,Eo as f,BKe as g,Zv as h,L7e as i,Of as j,Af as k,CW as l,vW as m,hg as n,F7e as o,tpe as p,TW as q,B7e as r,tU as s,ioo as t,qEe as u,de as v,c as w,lt as x,rU as y,doo as z,Zi as A,Uo as B,FL as C,Rt as D,vFe as E,ML as F,HL as G,Am as H,Rm as I,GL as J,FS as K,BS as L,_Fe as M,OFe as N,KF as O,ls as P,qm as Q,EBe as R,Be as S,VF as T,rl as U,Nb as V,Mb as W,bA as X,Hb as Y,KY as Z,X0e as _,qu as $,EA as aa,Xu as ba,VY as ca,YY as da,eOe as ea,Ya as fa,oOe as ga,eT as ha,UKe as ia,Kx as ja,Gn as ka,Wc as la,x1 as ma,g1 as na,eY as oa,b_e as pa,lb as qa,yH as ra,bH as sa,rBe as ta,zr as ua,V1 as va,Kn as wa,PF as xa,EF as ya,cd as za,kJ as Aa,qL as Ba,Vr as Ca,tF as Da,Gt as Ea,DS as Fa,MS as Ga,Ji as Ha,HFe as Ia,l5 as Ja,Yb as Ka,d1e as La,f1e as Ma,Za as Na,u1e as Oa,m1e as Pa,Xb as Qa,cR as Ra,Qc as Sa,h1e as Ta,lR as Ua,dR as Va,x1e as Wa,Jc as Xa,Zb as Ya,g1e as Za,I1e as _a,y1e as $a,b1e as ab,VM as bb,Cs as cb,N3e as db,D3e as eb,M3e as fb,YM as gb,H3e as hb,Ww as ib,Ed as jb,Zr as kb,fo as lb,zw as mb,hN as nb,xN as ob,Gw as pb,_d as qb,Nh as rb,Dd as sb,SC as tb,kr as ub,va as vb,xD as wb,Ta as xb,OC as yb,LC as zb,Bt as Ab,Tl as Bb,gd as Cb,qr as Db,fm as Eb,hR as Fb,ha as Gb,xR as Hb,Fo as Ib,Hs as Jb,ee as Kb,Dl as Lb,ae as Mb,oe as Nb,ie as Ob,le as Pb,Ie as Qb,S8e as Rb,ye as Sb,Hl as Tb,Wl as Ub,Sf as Vb,wf as Wb,p5 as Xb,T8e as Yb,Wde as Zb,u5 as _b,E8e as $b,_8e as ac,m5 as bc,hv as cc,pH as dc,hie as ec,Yd as fc,uH as gc,$$e as hc,tT as ic,L8e as jc,F8e as kc,B8e as lc,N8e as mc,D8e as nc,M8e as oc,c$e as pc,lx as qc,Kd as rc,d$e as sc,f$e as tc,rH as uc,dv as vc,qse as wc,Xse as xc,p$e as yc,Zse as zc,u$e as Ac,r2 as Bc,nze as Cc,p2 as Dc,sze as Ec,ize as Fc,lze as Gc,eg as Hc,sT as Ic,I5 as Jc,og as Kc,q8e as Lc,Jde as Mc,Qde as Nc,efe as Oc,X8e as Pc,Tt as Qc,zs as Rc,jl as Sc,BVe as Tc,NVe as Uc,DVe as Vc,b2 as Wc,Px as Xc,Ple as Yc,xze as Zc,aW as _c,nW as $c,sW as ad,o7e as bd,wZ as cd,yr as dd,DLe as ed,MLe as fd,HLe as gd,WLe as hd,Pm as id,$Le as jd,Gm as kd,hd as ld,RF as md,LF as nd,FF as od,pBe as pd,Je as qd,Ge as rd,hb as sd,Ni as td,E1 as ud,Du as vd,lW as wd,H7e as xd,W7e as yd,gg as zd,PW as Ad,Zd as Bd,xH as Cd,gH as Dd,Iv as Ed,Ps as Fd,AH as Gd,v6e as Hd,T6e as Id,k6e as Jd,of as Kd,Zt as Ld,L6e as Md,x$e as Nd,_$e as Od,pv as Pd,O$e as Qd,Ts as Rd,cx as Sd,yo as Td,G6e as Ud,DH as Vd,HH as Wd,WH as Xd,po as Yd,qe as Zd,bg as _d,DW as $d,sYe as ae,Sg as be,MW as ce,fYe as de,qW as ee,PYe as fe,EYe as ge,_Ye as he,NT as ie,OYe as je,AYe as ke,XW as le,Lpe as me,kg as ne,m9e as oe,Ox as pe,Hle as qe,Dv as re,Gpe as se,E9e as te,T3 as ue,k3 as ve,_9e as we,O9e as xe,Yw as ye,Tte as ze,qw as Ae,bN as Be,U9e as Ce,M3 as De,H3 as Ee,lqe as Fe,yqe as Ge,bqe as He,Sqe as Ie,tk as Je,CBe as Ke,sw as Le,iw as Me,lw as Ne,V3 as Oe,sue as Pe,iue as Qe,Eg as Re,vqe as Se,Tqe as Te,Jqe as Ue,h$ as Ve,Qqe as We,x$ as Xe,oXe as Ye,v$ as Ze,T$ as _e,Wue as $e,_$ as af,gXe as bf,Rg as cf,kXe as df,Df as ef,_Xe as ff,B$ as gf,AXe as hf,N$ as if,D$ as jf,FXe as kf,Vd as lf,mie as mf,Lg as nf,$$ as of,MXe as pf,HXe as qf,WXe as rf,$Xe as sf,La as tf,KXe as uf,Fg as vf,XXe as wf,Ng as xf,L$e as yf,F$e as zf,ks as Af,B$e as Bf,BR as Cf,cM as Df,J5e as Ef,Q5e as Ff,hne as Gf,eWe as Hf,oWe as If,fM as Jf,nv as Kf,ax as Lf,DM as Mf,pn as Nf,df as Of,Ut as Pf,u0e as Qf,Eb as Rf,Vc as Sf,x0e as Tf,_Y as Uf,sA as Vf,g0e as Wf,Vn as Xf,FY as Yf,C0e as Zf,v0e as _f,Yc as $f,T0e as ag,k0e as bg,Fb as cg,vGe as dg,TGe as eg,kGe as fg,PGe as gg,sce as hg,EGe as ig,Lx as jg,pf as kg,RGe as lg,zv as mg,t4 as ng,r4 as og,Wv as pg,uce as qg,LGe as rg,Fx as sg,uf as tg,Nx as ug,FGe as vg,BGe as wg,Bx as xg,NGe as yg,DGe as zg,db as Ag,ct as Bg,I1 as Cg,oY as Dg,tY as Eg,T_e as Fg,rY as Gg,aY as Hg,k_e as Ig,P_e as Jg,E_e as Kg,__e as Lg,i4 as Mg,mf as Ng,hf as Og,Mx as Pg,c4 as Qg,Bl as Rg,d4 as Sg,Hx as Tg,Wx as Ug,$x as Vg,f4 as Wg,p4 as Xg,u4 as Yg,m4 as Zg,h4 as _g,I4 as $g,y4 as ah,mje as bh,hje as ch,xje as dh,gje as eh,Ije as fh,Nce as gh,Dce as hh,yje as ih,bje as jh,Sje as kh,S4 as lh,wje as mh,Cje as nh,Ir as oh,Hce as ph,k4 as qh,$ce as rh,E4 as sh,_4 as th,bx as uh,Xce as vh,Xje as wh,B4 as xh,rKe as yh,hKe as zh,xKe as Ah,IUe as Bh,tf as Ch,CUe as Dh,vUe as Eh,QH as Fh,qJ as Gh,Yr as Hh,sBe as Ih,Wf as Jh,ra as Kh,BU as Lh,Zg as Mh,Ato as Nh,Rto as Oh,Uto as Ph,zto as Qh,hxe as Rh,Wk as Sh,GU as Th,Gto as Uh,KU as Vh,VU as Wh,JU as Xh,wxe as Yh,Txe as Zh,uro as _h,kro as $h,Pro as ai,jf as bi,Ero as ci,_ro as di,zk as ei,Oro as fi,af as gi,Av as hi,Tx as ii,aao as ji,Rl as ki,Bze as li,Nze as mi,F2 as ni,dge as oi,Vz as pi,Vf as qi,Pno as ri,_no as si,Qk as ti,iG as ui,Hg as vi,rQe as wi,sQe as xi,C6 as yi,pk as zi,v6 as Ai,T6 as Bi,cQe as Ci,k6 as Di,$g as Ei,gQe as Fi,E6 as Gi,A6 as Hi,_6 as Ii,Jm as Ji,ba as Ki,Lo as Li,ft as Mi,yd as Ni,nl as Oi,MBe as Pi,HBe as Qi,$Be as Ri,UBe as Si,zBe as Ti,GBe as Ui,jBe as Vi,VBe as Wi,an as Xi,ds as Yi,oB as Zi,uw as _i,OQ as $i,tB as aj,hw as bj,xA as cj,gA as dj,j0e as ej,Ju as fj,Qu as gj,Zc as hj,GA as ij,fOe as jj,pOe as kj,XA as lj,Gb as mj,F9 as nj,pR as oj,P1e as pj,F1e as qj,B1e as rj,iq as sj,yt as tj,od as uj,cS as vj,dS as wj,vAe as xj,AR as yj,TAe as zj,kAe as Aj,PAe as Bj,DR as Cj,HR as Dj,ga as Ej,VR as Fj,vS as Gj,rL as Hj,JRe as Ij,nL as Jj,cL as Kj,dL as Lj,fL as Mj,pL as Nj,uL as Oj,mL as Pj,kS as Qj,dZ as Rj,fZ as Sj,nd as Tj,PS as Uj,xL as Vj,bLe as Wj,uZ as Xj,SLe as Yj,wLe as Zj,CLe as _j,IL as $j,PLe as ak,xZ as bk,ELe as ck,_Le as dk,IZ as ek,ES as fk,bZ as gk,LLe as hk,SZ as ik,FLe as jk,AS as kk,qLe as lk,CL as mk,kZ as nk,ZLe as ok,sd as pk,WZ as qk,gFe as rk,BJ as sk,YFe as tk,DJ as uk,qFe as vk,XFe as wk,ZFe as xk,tl as yk,Vm as zk,IBe as Ak,yBe as Bk,bBe as Ck,AQ as Dk,RQ as Ek,XBe as Fk,NQ as Gk,DQ as Hk,ZBe as Ik,JBe as Jk,QBe as Kk,eNe as Lk,oNe as Mk,lNe as Nk,cNe as Ok,dNe as Pk,fNe as Qk,pNe as Rk,uNe as Sk,mNe as Tk,hNe as Uk,xNe as Vk,gNe as Wk,INe as Xk,rB as Yk,yNe as Zk,bNe as _k,cn as $k,KQ as al,ms as bl,lMe as cl,cMe as dl,dMe as el,fMe as fl,pMe as gl,uMe as hl,mMe as il,IMe as jl,yMe as kl,Qee as ll,bMe as ml,SMe as nl,wMe as ol,CMe as pl,vMe as ql,TMe as rl,kMe as sl,PMe as tl,roe as ul,Rw as vl,EMe as wl,sl as xl,St as yl,Cr as zl,MB as Al,HB as Bl,ll as Cl,_Me as Dl,_oe as El,OMe as Fl,AMe as Gl,RMe as Hl,LMe as Il,FMe as Jl,BMe as Kl,NMe as Ll,XB as Ml,DMe as Nl,Joe as Ol,MMe as Pl,HMe as Ql,QB as Rl,WMe as Sl,$Me as Tl,UMe as Ul,zMe as Vl,GMe as Wl,KMe as Xl,Mw as Yl,VMe as Zl,oN as _l,YMe as $l,qMe as am,pl as bm,rN as cm,XMe as dm,ZMe as em,JMe as fm,QMe as gm,Pio as hm,Eio as im,_io as jm,dI as km,LG as lm,dP as mm,Xio as nm,Zio as om,abe as pm,nbe as qm,Flo as rm,Blo as sm,Nlo as tm,Dlo as um,xI as vm,gI as wm,ico as xm,rj as ym,sj as zm,ij as Am,lj as Bm,Qdo as Cm,_I as Dm,jj as Em,Kj as Fm,Yj as Gm,OI as Hm,Rfo as Im,Lfo as Jm,AI as Km,wwe as Lm,zfo as Mm,op as Nm,Vfo as Om,eK as Pm,Bi as Qm,J7 as Rm,x_e as Sm,g_e as Tm,pxo as Um,uxo as Vm,mxo as Wm,U4 as Xm,Xfo as Ym,RI as Zm,s_e as _m,kte as $m,Pte as an,Ete as bn,CN as cn,HHe as dn,pC as en,FD as fn,p5e as gn,lM as hn,pWe as in,uWe as jn,ex as kn,hse as ln,xse as mn,p3e as nn,QEe as on,Nse as pn,oH as qn,t$e as rn,r$e as sn,Vse as tn,a$e as un,n$e as vn,ix as wn,s$e as xn,Ol as yn,zH as zn,GH as An,o2 as Bn,eze as Cn,y2 as Dn,pze as En,S2 as Fn,Mv as Gn,Ule as Hn,Kle as In,Vze as Jn,QZe as Kn,pJe as Ln,xJe as Mn,c6 as Nn,SJe as On,wJe as Pn,FJe as Qn,BJe as Rn,YJe as Sn,JJe as Tn,Mf as Un,che as Vn,qQe as Wn,reo as Xn,beo as Yn,Seo as Zn,Ueo as _n,Y6 as $n,r_e as ao,Luo as bo,cK as co,Qe as do,ZI as eo,Br as fo,N8 as go,hp as ho,D8 as io,M8 as jo,IIo as ko,yIo as lo,bV as mo,HE as no,SV as oo,UV as po,Hbo as qo,Xwo as ro};