efficient-storefront-blocks 0.117.2 → 0.118.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +20 -0
- package/dist/chunks/{EditorPreviewCheckout-75F6QF5U.js → EditorPreviewCheckout-EAXEJX6G.js} +1 -1
- package/dist/chunks/{SiteEditorProvider-ZVNXSXBQ.js → SiteEditorProvider-QXV6Z27K.js} +1 -1
- package/dist/chunks/{chunk-3XS3LIPN.js → chunk-2ULOP225.js} +1 -1
- package/dist/chunks/chunk-6IGIBTC3.js +342 -0
- package/dist/chunks/{chunk-XZPK5PGX.js → chunk-H5F6BWNC.js} +1 -1
- package/dist/chunks/{fitment-data-3N56LEBE.js → fitment-data-GGY5ZYBZ.js} +1 -1
- package/dist/editor/lib/efficient-backend.js +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.js +26 -26
- package/dist/render/built-with.json +1 -1
- package/dist/render/lib/api/index.d.ts +27 -0
- package/dist/render/lib/api/index.js +1 -1
- package/package.json +2 -2
- package/dist/chunks/chunk-XVPVTQYY.js +0 -342
- /package/dist/chunks/{chunk-NMYHWA3M.js → chunk-53R44PTG.js} +0 -0
- /package/dist/chunks/{chunk-XVPVTQYY.js.LEGAL.txt → chunk-6IGIBTC3.js.LEGAL.txt} +0 -0
- /package/dist/chunks/{chunk-JVAY6GGN.js → chunk-CL5JFHNP.js} +0 -0
|
@@ -1,342 +0,0 @@
|
|
|
1
|
-
import{$ as wp,$a as uE,$c as G,$e as Ey,$h as xO,A as ni,Ab as TE,Ac as BE,Ad as bc,Ae as vy,Af as v_,Ag as Nn,Ah as _c,Ai as TO,Ba as q,Bb as pi,Bc as uy,Bd as Sc,Be as ky,Bf as Vp,C as mc,Ca as kp,Cb as na,Cc as NE,Ce as a_,Cf as k_,Cg as X_,D as yp,Db as _p,Dd as Ct,De as n_,Df as T_,Dg as Z_,E as Lr,Ec as DE,Ed as dt,Ee as zp,Ef as P_,Ei as PO,F as si,Fa as Nt,Fd as io,Fe as s_,Ff as Yp,G as so,Ga as lr,Gc as my,Gd as Nr,Ge as Ty,Gf as E_,Gi as EO,H as go,Ha as di,Hd as Dr,Hf as qp,I as ii,Ia as ZI,Ib as PE,Id as dr,Ie as i_,If as Ay,J as bp,Ja as rE,Jd as hi,Je as Gp,Jf as __,K as U,Ka as JI,Kd as KE,Ke as l_,Kf as Ry,Ki as ce,L as He,La as QI,Lb as Op,Ld as Bp,Le as Py,Lf as O_,Lh as sO,M as D0,Md as VE,Me as c_,Mf as Xp,Mh as iO,N as M0,Nb as Ap,Nc as ME,Ne as d_,Nf as tt,Nh as au,Oc as HE,Oe as jp,Of as Ma,Oh as lO,Oi as Oc,P as H0,Pa as ey,Pc as hy,Pe as gi,Pf as A_,Pg as J_,Ph as cO,Pi as AO,Q as Sp,Qa as aE,Qb as Io,Qd as Rn,Qe as Me,Qf as Zp,Qg as Ny,Qh as dO,R as W0,Ra as nE,Rb as EE,Rd as YE,Re as _e,Rf as Dt,Rg as Qp,Rh as fO,Ri as gu,S as Pn,Sa as uo,Sb as _E,Sd as Np,Se as f_,Sf as wi,Sg as Q_,Si as RO,T as $0,Ta as sE,Td as xi,Te as Ii,Tg as Dy,Th as pO,Ti as LO,U as U0,Ua as Tp,Ub as OE,Uc as j,Ud as wc,Ue as p_,Uf as R_,Ug as eO,Uh as uO,V as hc,Va as iE,Vc as ne,Vd as Cc,Ve as Kp,Vf as L_,Vg as oO,Vh as Ti,W as qI,Wa as lE,Wb as iy,Wc as xy,Wd as Sy,We as Fn,Wf as Ly,Wg as eu,Wh as mO,X as De,Xa as cE,Xc as N,Xe as u_,Xg as tO,Xh as nu,Y,Ya as dE,Yc as Xo,Yd as qE,Yg as la,Yh as hO,Z as z0,Za as fE,Zc as sa,Zd as XE,Zf as F_,_a as pE,_c as WE,_d as ZE,_e as Da,_f as Fy,_g as rO,a as ai,aa as Ba,ab as mE,ad as Fp,ae as wy,ai as Ha,b as be,ba as li,bb as Pp,bd as ct,be as JE,bh as My,bi as gO,c as _o,ca as G0,cb as Ep,cd as $E,ch as ca,ci as IO,d as ta,da as ra,db as hE,dc as ly,dd as cr,de as Cy,dg as B_,dh as Ci,di as yO,ea as XI,eb as xE,ed as Br,eg as N_,eh as ut,f as wt,fa as ci,fc as AE,fd as gy,ff as m_,fg as D_,fh as ke,fi as su,g as uc,ga as j0,gb as gE,gd as Na,gf as h_,gg as M_,gh as ou,gi as Wa,h as O0,ha as K0,hb as IE,hd as ia,he as Dp,hf as _y,hh as aO,hi as iu,i as gp,ib as oy,id as UE,ie as Mp,if as ko,ig as Bn,ih as Tc,j as A0,ja as xc,jb as yE,je as QE,jf as x_,jg as H_,jh as vt,k as R0,ka as V0,kb as bE,kd as Je,ke as Hp,kf as g_,kg as W_,kh as Pc,la as Y0,lb as ty,ld as An,le as Wp,lf as yi,lh as tu,li as bO,ma as q0,mb as fi,mc as On,md as yc,me as e_,mf as pt,mg as Jp,mh as vi,mi as lu,n as L0,na as En,nb as _n,nd as ui,ne as o_,nf as I_,ng as $_,nh as Ec,ni as Pi,oa as X0,ob as ry,oc as cy,od as zE,oe as $p,of as bi,og as U_,oh as nO,oi as SO,pb as ay,pc as dy,pd as Iy,pe as Up,pf as Si,pg as z_,ph as ki,pi as cu,qa as Z0,qb as ny,qd as mi,qe as Ln,qg as G_,qh as ru,qi as wO,r as F0,ra as Cp,rb as SE,rc as Rp,rd as yy,re as t_,rg as j_,ri as $a,sa as J0,sb as wE,sc as fy,sf as y_,sg as K_,si as CO,t as oo,ta as vp,tb as CE,tc as RE,tf as b_,ti as vO,u as B0,ua as Q0,ub as sy,uf as S_,ug as Mr,ui as kO,v as Ip,va as eE,vb as vE,vd as GE,ve as r_,vf as kc,vg as V_,vi as Mt,w as N0,wa as oE,wb as Fr,wc as py,wd as jE,wf as w_,wg as Y_,wi as du,xa as gc,xb as kE,xc as Lp,xf as C_,xg as By,xi as Zo,y as ze,ya as aa,yc as LE,yd as by,ye as ft,yf as Oy,yg as q_,yi as ue,z as Oo,za as tE,zb as Ic,zc as FE,ze as vc,zg as Hr}from"./chunk-NMYHWA3M.js";import{c as _O,d as fu,e as pu,f as OO,i as uu,j as Ht,k as mu,l as hu,m as xu,q as Hy}from"./chunk-JVAY6GGN.js";var BO="en",Iu=null,NO=BO,DO=null;function hPe(e,o,t){Iu=e??null,NO=o||BO,DO=t??null}function le(){return DO}function Wy(){return NO}function MO(){return Iu}function FO(e,o){return o?e.replace(/\{([A-Za-z][A-Za-z0-9_]*)\}/g,(t,r)=>He(o,r)?String(U(o,r)):t):e}function c(e,o){let t=Iu?U(Iu,e):void 0;if(typeof t=="function"){try{let r=be(t(o??{}));if(r)return r}catch{}return FO(e,o)}return FO(be(t)??e,o)}function rt(e,o,t,r){return c(t===1?e:o,{...r,n:t})}import{jsx as $y,Fragment as KV,jsxs as VV}from"react/jsx-runtime";import{createContext as YV,useContext as qV}from"react";var XV={mirrorHostStyles:!0,css:null,fontHrefs:[]},HO=YV(XV);function yPe({value:e,children:o}){return $y(HO.Provider,{value:e,children:o})}function Ac(){return qV(HO)}function WO(){let{css:e,fontHrefs:o}=Ac();return VV(KV,{children:[o.map(t=>$y("link",{rel:"stylesheet",href:t},t)),e?$y("style",{"data-sf-canvas-css":"",children:e}):null]})}import{jsx as ZV}from"react/jsx-runtime";import{createContext as JV,useContext as QV}from"react";var $O=JV(void 0);function CPe({metadata:e,children:o}){return ZV($O.Provider,{value:e,children:o})}var UO=()=>QV($O);import{jsx as Bo,Fragment as PV,jsxs as mp}from"react/jsx-runtime";import{useCallback as cc,useEffect as ea,useRef as $Te,useState as CV}from"react";import{SettingsSwitch as UTe}from"efficient-easel/panel";import{PagesIcon as zTe,StylesIcon as GTe}from"efficient-easel/rail";import{PaletteIcon as jTe}from"efficient-shell/icons/efficient";import{Subtree as KTe,TreeRow as EV}from"efficient-easel/tree";import{useEasel as _V}from"efficient-easel/easel";import{toItemSelector as VTe}from"efficient-easel/node-ops";import{useEaselStrings as OV}from"efficient-easel/strings";import{createContext as e7,useContext as o7}from"react";var Uy=e7(!1),TPe=()=>o7(Uy);import{useMemo as t7,useRef as r7}from"react";import{useEaselApi as a7}from"efficient-easel/easel";import{useSectionOps as n7}from"efficient-easel/screen/lib/document/use-section-ops";function yu(){let e=a7(),o=n7(),t=r7(o);return t.current=o,t7(()=>({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 Uoe}from"efficient-easel/draw";import{insertAt as zoe,moveTo as Goe,removeAt as joe}from"efficient-easel/fields";import{useSyncExternalStore as Boe}from"react";import{isNodeList as zO}from"efficient-easel/data";var GO="Flex";function Ei(e,o){return ft(e)?typeof e?.[wt]=="string"?zy(o?.[wt]):"":zy(e?.[wt])}var zy=e=>typeof e=="string"?e.trim():"",s7=e=>e.type===Oo&&Array.isArray(e.props?.[Cy])&&e.props[Cy].some(o=>zy(o?.[wt])!==""),i7=new Intl.NumberFormat("en-US");function l7(e){return/^\d+$/.test(e)?i7.format(Number(e)):e}function NPe(e,o){let t=o?o.find(r=>r.key===e)?.value:F0(uc).find(r=>r.key===e)?.value;return t===void 0?null:l7(t)}var c7={[wt]:"any"};function Gy(e,o=!1){let t=e.props;if(!t)return{node:e,names:!1};let r=e.type==="Text"&&(Ei(t)!==""||o&&Ei(t,c7)!==""),a=o||s7(e),n=go(e,i=>so(i,l=>{let d=Gy(l,a);return d.names&&(r=!0),d.node})).props;if(e.type!==GO)return{node:n===t?e:{...e,props:n},names:r};let s=oo(n);if(r&&!s&&(n={...n,[_o]:uc}),!r&&s===uc){let{[_o]:i,...l}=n;n=l}return{node:n===t?e:{...e,props:n},names:!1}}function jO(e,o,t){for(let r of e){if(r?.props?.id===o)return t;for(let a of si(r??{})){let n=jO(a,o,r.type===GO?r:t);if(n!==void 0)return n}}}function DPe(e,o){if(!zO(e))return!0;let t=jO(e,o,null);if(t===void 0)return!0;if(t===null)return!1;let r=oo(t.props);return!r||r===uc}function KO(e){let o=e?.content;if(!zO(o))return e;let t=o.map(r=>Gy(r));return t.every((r,a)=>r.node===o[a])?e:{...e,content:t.map(r=>r.node)}}function VO(e){return Gy(e).node}import{jsx as O,jsxs as Ia,Fragment as ba}from"react/jsx-runtime";var Dn=["image","video"],Mn={image:"imageFocal",image2:"imageFocal2"},Rc={HeroSingle:"image",HeroSlide:"video"};function qO(e,o){return Dn.includes(o)?o:Rc[e]}var XO=["one","side","stacked"],d7="one",HPe={one:"One",side:"Side by side",stacked:"Stacked"};function bu(e){return XO.includes(e)?e:d7}function YO(e){return e==="one"?1:2}function jy(e,o){if(XO.includes(e))return e;let t=bu(o);return t==="side"?"stacked":t}function Lc(e){let o=bu(e.mediaLayout);return Math.max(YO(o),YO(jy(e.mediaLayoutPhone,o)))}import{cloneElement as iw,createContext as VJ,useContext as NF,useEffect as YJ,useId as DF,useRef as dd,useState as fd}from"react";import{useEasel as Km,useSelectedHost as ns}from"efficient-easel/easel";import{PIN_LENGTH as zm,toDateKey as DFe,fromDateKey as MFe}from"efficient-shell/format";function Vy(e){return!!e&&typeof e=="object"&&!Array.isArray(e)&&typeof e.src=="string"}function at(e){return typeof e=="string"?e:Vy(e)?e.src:""}function ZO(e,o,t){return Ky(e,o.split("."),t)}function Ky(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=Ky(p,a,t);return m!==p&&(f=!0),m});return f?{...i,[s]:u}:e}let d=Ky(l,a,t);return d===l?e:{...i,[s]:d}}var f7=["upload","youtube"],p7="upload",zPe={upload:"Upload",youtube:"YouTube"},u7=["background","click"],m7="background",GPe={background:"Background",click:"Click to play"};function QO(e){return f7.includes(e)?e:p7}function e1(e){return u7.includes(e)?e:m7}var JO=/^[A-Za-z0-9_-]{11}$/,h7=/^(?:www\.|m\.|music\.)?(?:youtube\.com|youtube-nocookie\.com|youtu\.be)$/;function o1(e){let o=typeof e=="string"?e.trim():"";if(!o)return null;if(JO.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:"||!h7.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&&JO.test(a)?a:null}function Yy(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 t1(e){return`https://i.ytimg.com/vi/${e}/maxresdefault.jpg`}function r1(e){return`https://i.ytimg.com/vi/${e}/hqdefault.jpg`}var qy="Play video";var Xy={frame:"Video frame",image:"Image"},jPe={any:[{field:"loadingShows",is:"image"},{all:[{not:{field:"loadingShows",set:!0}},{field:"poster",set:!0}]}]};function Fc(e){let o=e.loadingShows;return o==="image"?"image":o!=null&&o!==""?"frame":at(e.poster)?"image":"frame"}function KPe(e,o="desktop"){let[t,r]=o==="phone"?[e.posterPhone,e.videoFramePhone]:[e.poster,e.videoFrame],[a,n]=Fc(e)==="image"?[t,r]:[r,t];return at(a)||at(n)||void 0}function a1(e){if(at(e.mediaVideo)){if(Fc(e)==="frame")return at(e.videoFrame)?void 0:at(e.poster)?"frame-missing-image":"frame-missing-surface";if(!at(e.poster))return at(e.videoFrame)?"image-missing-frame":"image-missing-surface"}}var Su="videoFrames",Zy="videoFramesNotOwn";function n1(e,o,t){let r=at(e.mediaVideo);if(!r||!o||Fc(e)!=="frame"||at(e.videoFrame))return;let a=o[r],n=!!at(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 x7(e,o){let t=at(e),r=t&&o?o[t]:void 0;return r?.state==="ready"&&r.frame?r.frame:void 0}function VPe(e,o,t){let r=t?.[Zy];if(!(Array.isArray(r)&&r.includes(e)))return x7(o,t?.[Su])}import{useSyncExternalStore as g7}from"react";function wu(){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 g7(t,a,a)}}}var Qe="SiteHeader",Ge="SiteFooter",Jy="sections",Cu=[Qe,Ge],_i=e=>e===Qe||e===Ge,s1=e=>`${e}:${Jy}`;function i1(e,o,t=[]){return{type:e,props:{id:o,[Jy]:t}}}var I7=new Set(["Footer",Qe,Ge]);function Oi(e){let o=new Set,t=!1,r=e.filter(a=>{let n=a?.type??"";return n==="Header"?(t=!0,!1):I7.has(n)?o.has(n)?(t=!0,!1):(o.add(n),!0):!0});return t?r:e}function vu(e,o){return e.some(t=>t?.type===o.type)?e:o.type===Qe?[o,...e]:[...e,o]}var l1={[Qe]:{max:3,takes:["Flex","Ticker"]},[Ge]:{max:6,takes:["Flex","Prose","Logos","Divider"]}};function c1(e,o,t){if(!_i(e))return!0;let r=l1[e];return t<r.max&&r.takes.includes(o)}function d1(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(!_i(n?.type))continue;let s=n.props?.[Jy];if(!Array.isArray(s)||!s.some(l=>l?.props?.id===r))continue;let i=l1[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 y7}from"efficient-easel/draw";function Bc(e){if(!e)return null;let o=e.lastIndexOf(":");return o>0?{ownerId:e.slice(0,o),slot:e.slice(o+1)}:null}function ku(e,o,t){let r=Bc(t?.zone),a=r?y7(e,o,r.ownerId):null;return a&&r?{...a,slot:r.slot}:null}import{isNode as b7}from"efficient-easel/data";var f1="Footer",p1=[Qe,f1,Ge],Hn=e=>{let o=e?.content;return Array.isArray(o)?o:[]},Ua=e=>{let o=e?.zones;return o&&typeof o=="object"&&!Array.isArray(o)?o:null},Ai=e=>{let o=e?.props?.id;return typeof o=="string"?o:void 0},u1=e=>Bc(e)?.ownerId??"";function m1(e){let o=Oi(Hn(e)),t=o.some(r=>r?.type===Ge);return o.filter(r=>r?.type===Qe||r?.type===Ge||r?.type===f1&&!t)}function Tu(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(b7(a)){let n=Ai(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(u1(s))||(n.add(s),r(i),a=!0)}}return t}function h1(e,o){let t=Hn(e).filter(r=>{let a=Ai(r);return typeof r?.type=="string"&&p1.includes(r.type)||a!==void 0&&o(a)});return t.length?Tu(t,Ua(e)):new Set}function Qy(e,o){let t={},r={};for(let[a,n]of Object.entries(e??{}))(o.has(u1(a))?t:r)[a]=n;return{owned:t,rest:r}}function x1(e,o){if(!o)return e;let t=m1(o);if(!t.length)return e;let r=t.filter(i=>i.type===Qe),a=t.filter(i=>i.type!==Qe),n={...e,content:[...r,...Hn(e),...a]},{owned:s}=Qy(Ua(o),Tu(t,Ua(o)));return Object.keys(s).length&&(n.zones={...Ua(e)??{},...s}),n}function eb(e,o){if(!o)return{page:e,chrome:null};let t=m1(o),r=new Set(t.map(Ai).filter(v=>!!v)),a=[],n=[];for(let v of Hn(e)){let b=Ai(v);b&&r.has(b)||_i(v?.type)?n.push(v):a.push(v)}let s=new Map(n.map(v=>[Ai(v),v])),i=new Set,l=Oi(Hn(o)).flatMap(v=>{let b=Ai(v);if(!b||!r.has(b))return[v];let y=s.get(b);return y?(i.add(y),[y]):[]});for(let v of n)i.has(v)||l.some(b=>b?.type===v.type)||(l=v.type===Qe?[v,...l]:[...l,v]);l=Oi(l);let d=l.length===Hn(o).length&&l.every((v,b)=>v===Hn(o)[b]),f=Ua(e),u=Tu(l,f),{owned:p,rest:m}=Qy(f,u),h=Qy(Ua(o),Tu(t,Ua(o))).owned,I={...o,content:d?o.content:[...l]},w=Ua(o);if(w||Object.keys(p).length){let v={};for(let[b,y]of Object.entries(w??{}))b in h?b in p&&(v[b]=p[b]):v[b]=y;for(let[b,y]of Object.entries(p))b in v||(v[b]=y);I.zones=v,w&&S7(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 S7(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 g1(e,o){return t=>e(t)||t!==void 0&&p1.includes(t)&&o()}var I1=null;function ob(e){I1=e}function fr(){return I1}var y1=null;function tb(e){y1=e}function Pu(){return y1}var rb=wu();function b1(e,o,t){if(!o)return;let r={...rb.get(e)};for(let[a,n]of Object.entries(o))r[a]={...n,noted:t};rb.set(e,r)}function S1(e,o){b1(e,o,"load")}function w1(e,o){b1(e,o,"save")}function Eu(e){return rb.use(e)}var ab=e=>!!fr()?.sectionOf(e);function C1(e,o=ab){return h1(e,o)}function v1(e,o,t,r=ab){if(t)return e&&C1(o,r).has(e)?void 0:t}function k1(e,o,t=ab){if(!e)return{};let r=[...C1(o,t)];return r.length?{[Su]:e,[Zy]:r}:{[Su]:e}}import{ScreenDocumentContext as qJ}from"efficient-easel/screen/components/ScreenDocumentContext";import{readHidable as on,hidableText as XJ}from"efficient-easel/draw";import{FOLD_FIELD_MARKER as MF,LINK_FIELD_MARKER as ZJ,MEDIA_FIELD_MARKER as JJ,SCAFFOLD_FIELD_MARKER as QJ,TEXT_FIELD_MARKER as ya,foldMetaOf as br,textFieldIdentifier as KFe}from"efficient-easel/draw";import{jsx as F1}from"react/jsx-runtime";import{useCallback as T7}from"react";import{useEasel as P7}from"efficient-easel/easel";import{SettingsAction as E7}from"efficient-easel/panel";import{isLengthUnit as v7}from"efficient-easel/screen/lib/content/length-units";import{CORNER_SIDES as _u,hasCornerSubset as Nc,normalizeCornerSides as Wr}from"efficient-easel/screen/lib/content/style-keys";import{isLengthUnit as w7}from"efficient-easel/screen/lib/content/length-units";var Dc={kind:"radius",unitKey:"sectionCornersUnit"};function nb(e){return typeof e=="number"&&Number.isFinite(e)}function T1(e,o,t){if(!nb(e))return;let r=w7(t)&&t!=="px"?wi(e,t):wi(Dt(e));if(Object.keys(r).length===0)return;let a=r[sb];if(typeof a!="string")return r;let n=Nc(o)?Wn(a,Wr(o)??[]):a;return{...r,[C7]:n}}var C7="--sf-section-radius",sb="--sf-card-radius";function Wn(e,o){return _u.map(t=>o.includes(t)?e:"0").join(" ")}var P1=[{value:"tl",label:"Top left"},{value:"tr",label:"Top right"},{value:"bl",label:"Bottom left"},{value:"br",label:"Bottom right"}];var Mc={kind:"radius",unitKey:"cardCornersUnit"},k7="--sf-card-box-radius";function ib(e){return typeof e=="number"&&Number.isFinite(e)}function E1(e,o,t){if(!ib(e))return;let r=(v7(t)&&t!=="px"?wi(e,t):wi(Dt(e)))[sb];if(typeof r!="string")return;let a=Nc(o)?Wn(r,Wr(o)??[]):r;return{[k7]:a}}function _1(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?.[Mc.unitKey];return e.map(s=>s?.props?.id===o?s:{...s,props:{...s.props,cardCorners:r,cardCornerSides:a,[Mc.unitKey]:n}})}function O1(e,o,t){let r=ku(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}:ib(i?.props?.cardCorners)?{can:!0,others:d,zone:r.zone,index:r.index,data:{...r.item,props:{...r.item.props,[a]:_1(n,l)}}}:{can:!1,reason:"unset",others:d}}function A1(e){return e.can?rt("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 R1(e){return rt("Applied to {n} card","Applied to {n} cards",e)}function L1(e,o){e.can&&o(e.zone,e.index,e.data)}import{useSectionOps as _7}from"efficient-easel/screen/lib/document/use-section-ops";var O7="apply-corners-to-siblings",A7="Apply to all cards";function R7({plan:e,onPress:o}){return F1(E7,{id:O7,label:c(A7),note:A1(e),disabled:!e.can,doneLabel:R1(e.others),onPress:o})}function B1(){let{appState:e,config:o}=P7(n=>n),t=_7(),r=O1(o,e.data.content??[],e.ui.itemSelector),a=T7(()=>{L1(r,t.replaceComponent)},[r,t]);return F1(R7,{plan:r,onPress:a})}import{isShown as G1,lazyShowWhenContext as G7}from"efficient-shell/format";var Wt="product",Ou="recordType",N1={key:Wt,label:"Product",fields:[]},L7=/^[a-z][a-z0-9]*(-[a-z0-9]+)*$/,F7=/^[a-z][A-Za-z0-9]*$/,B7=["text","date","images"],lb=new Map,D1=0;function N7(e){if(typeof e.key!="string"||!L7.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===Wt)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"||!F7.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(!B7.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 O0e(e){let o=e.map(N7);for(let t of o)lb.set(t.key,t);o.length&&(D1+=1)}function cb(){return[N1,...lb.values()]}function db(e){return e===Wt?N1:lb.get(e)??null}function fb(){return D1}function Hc(e){let o=e?.[Ou];return typeof o!="string"?Wt:o.trim()||Wt}function pb(e){return Hc(e)===Wt}function ub(e,o){let t=db(e)?.fields??[];return o?t.filter(r=>o.includes(r.kind)):t}var Au="product",M1="tyre",D7=[Au,M1];function L0e(e){return D7.includes(e)}var M7="productType",H7={[Au]:"alloy-wheel",[M1]:"tyre"},W7=["alloy-wheel","tyre"];function H1(e,o){return pb(o)?W1(o)??H7[e]??null:null}function W1(e){if(!pb(e))return null;let o=e?.[M7];return typeof o=="string"&&W7.includes(o)?o:null}function F0e(e){let o=e?.root;return W1(o?.props)}var mb="Main Pages",$7="Dynamic Pages",hb="dynamic",U7="dynamic";function $n(e){return e.kind===U7}var xb="lightbox";function $1(e){return e.kind===xb}function U1(e){let o=[],t=[];for(let r of e){if($n(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??mb,rows:[r]})}if(t.length){let r=o.findIndex(a=>a.key.startsWith("system:"));o.splice(r===-1?o.length:r,0,{key:hb,label:$7,rows:t})}return o}var Ru=null,z1=null;function z7(e,o){Ru=e,z1=o}function W0e(e){z7(e,null)}function $0e(){return Ru}function Wc(){return $n({kind:z1})||Ru===Au}function U0e(e){return H1(Ru??"",e)??"alloy-wheel"}function z0e(e){return Wc()?Hc(e):null}function gb(e,o,t){let r=!1,a={};for(let[n,s]of Object.entries(e)){if(!G1(bc(s),o??{},t)){r=!0;continue}let i=j7(s,o?.[n],o??{},t);i!==s&&(r=!0),a[n]=i}return r?a:e}function j7(e,o,t,r){let a=e?.options;if(!Array.isArray(a))return e;let n=a.filter(s=>s?.value===o||!s?.showWhen||G1(s.showWhen,t,r));return n.length===a.length?e:{...e,options:n}}function j1(e,o,t,r){let a=ku(o,t,r);return{device:e,parentType:a?.item.type,parent:a?.item.props}}function Lu(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 Lu(t.not,o);for(let r of[t.all,t.any])if(Array.isArray(r)&&r.some(a=>Lu(a,o)))return!0;return!1}function K1(e,o={}){return G7({parentType:()=>e.parent?.type??void 0,parent:()=>e.parent?.props??void 0,dynamicPage:()=>Wc(),root:()=>e.appState?.data?.root?.props,...o})}import{isLengthUnit as K7}from"efficient-easel/screen/lib/content/length-units";var V1=1,V7="cardImageUnit",Ib={kind:"radius",unitKey:V7},Y1={kind:"radius"};function Y7(e){return Dt(e)}function q1(e,o){if(K7(o)&&o!=="px"){let r=q(e);return r!==void 0&&r>=0?{"--sf-card-image-radius":Me(r,o)}:{}}let t=Y7(e);return t===null?{}:{"--sf-card-image-radius":`${t}px`}}import{isLengthUnit as q7}from"efficient-easel/screen/lib/content/length-units";var X1={kind:"radius",unitKey:"cornersUnit"},Z1=1,J1="Corners";function X7(e){return Dt(e)}function lEe(e,o,t){let r=q7(t)&&t!=="px"?q(e):void 0,a=r===void 0?X7(e):null;if(r===void 0&&a===null)return null;let n=r!==void 0?Me(Math.max(0,r),t):`${a}px`;return{borderRadius:Nc(o)?Wn(n,Wr(o)??[]):n}}var eA=12,Ri=6,Z7=800,Fu={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"}},oA=["phone","acrossPhone","leadPhone"];var J7=new Set(oA),$c=Object.fromEntries(Object.entries(Fu).map(([e,o])=>[e,Object.fromEntries(Object.entries(o).filter(([t])=>!J7.has(t)))])),yb=Object.keys(Fu),tA=[2,3,4,6];function bb(e,o){return yb.filter(t=>t===o||e===null||$c[t].across===e)}function rA(e){let o=e.layout;return typeof o=="string"&&He(Fu,o)?o:null}function Sb(e){let o=rA(e);return o?Q7(o,e.layoutPhone):null}var Bu={oneAcross:{label:"One across",phone:[[Ri,2]],acrossPhone:1}};function aA(e){return typeof e=="string"&&He(Bu,e)?e:null}function Q1(e,o){return o?Ri/e.acrossPhone:eA/e.across}function wb(e){return e.ratio?rO.find(o=>o.shape===e.ratio)?.ratio??null:null}function nA(e){return[...e.lead??[],...e.desktop]}function Q7(e,o){let t=Fu[e],r=aA(o);if(!r)return t;let{phone:a,acrossPhone:n}=Bu[r],s=Object.fromEntries(oA.map(i=>[i,void 0]));return{...t,...s,phone:a,acrossPhone:n}}var eY="sf-wall--";function oY(e){let o=rA(e);if(!o)return"";let t=aA(e.layoutPhone);return`${eY}${o}${t?`--${t}`:""}`}function pEe(e){let o=Sb(e);if(!o)return"";let t=`.${oY(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(${eA},minmax(0,1fr))}`);let s=wb(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,Q1(o,!1),o.lead)),r.push(`@media (max-width:${Z7}px){`),r.push(`${t}{grid-template-columns:repeat(${Ri},minmax(0,1fr))}`),r.push(...n(o.phone,Q1(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 Nu=12,sA=1,tY=3;var rY=3;function Du(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 aY(e){return Du(e,1,Nu)??rY}function hEe(e,o){return Du(e,sA,tY)??(aY(o)===4?2:sA)}function iA(e){return e==null||e===""?null:Du(e,1,Nu)}var lA="data-sf-span",Cb=4;function cA(e){return e==null||e===""?null:Du(e,1,Cb)}var dA="data-sf-row-span",za=["gridSpan","gridRowSpan"];function fA(e){if(!e)return!1;if(e.type==="Grid")return!0;if(e.type==="GalleryB"){if(Sb(e.props??{}))return!1;let o=e.props?.columns;return o!=null&&o!==""}return!1}import{jsx as nY}from"react/jsx-runtime";import*as sY from"efficient-easel/icons";function Mu(e){let o=e.replace(/(^|-)([a-z])/g,(r,a,n)=>n.toUpperCase()),t=sY[`${o}Icon`];return t?nY(t,{size:16}):null}import{jsx as Ga,Fragment as cY,jsxs as yA}from"react/jsx-runtime";import{useContext as dY,useEffect as fY,useId as pY,useState as bA}from"react";import{SettingsField as uY,SettingsSwitch as mY}from"efficient-easel/panel";import{AnchorIcon as hY}from"efficient-easel/icons";import{ScreenDocumentContext as xY}from"efficient-easel/screen/components/ScreenDocumentContext";import{Snippet as gY}from"efficient-shell/ui";import{slugify as IY}from"efficient-shell/format";import{slugify as iY}from"efficient-shell/format";function Uc(e){return typeof e=="string"?e.trim():e&&typeof e=="object"&&typeof e.text=="string"?e.text.trim():""}var Un=e=>iY(Uc(e));var Hu="homepage";import{slugify as lY}from"efficient-shell/format";var pA=[{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 uA(e){return e.offersCommerce&&e.offersService?pA:pA.filter(o=>!o.needs||(o.needs==="commerce"?e.offersCommerce:e.offersService))}var vb="#popup:";function mA(e){return`${vb}${e}`}function hA(e){return e.startsWith(vb)&&e.slice(vb.length).trim()||null}function zc(e){return e===Hu?"/":`/${e}`}function xA(e){return`/journal/${e}`}function kEe(e){return`/wheels/${e}`}function Wu(e,o){return`${zc(e)}#${o}`}function gA(...e){let o=new Set,t=[];for(let r of e)for(let a of r?.content??[]){let n=Uc(a?.props?.anchor);if(!n)continue;let s=lY(n);!s||o.has(s)||(o.add(s),t.push({slug:s,name:n}))}return t}function TEe(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 IA(e){return/^\/wheels\/[^/?#]+(?:[?#].*)?$/.test(e)}import{readHidable as yY}from"efficient-easel/draw";function SA({value:e,onChange:o,nameBox:t}){let r=yY(e).text,[a,n]=bA(!1),s=a||r.trim()!=="",i=pY();return yA(cY,{children:[Ga(uY,{label:c("Add an anchor"),labelId:i,icon:Ga(hY,{}),action:Ga(mY,{checked:s,ariaLabelledBy:i,onChange:l=>{n(l),!l&&r!==""&&o("")}})}),s&&t(e,o),s&&Ga(bY,{name:r})]})}function bY({name:e}){let o=dY(xY),t=o?.templateId?"":o?.currentSlug??"",[r,a]=bA("");fY(()=>a(fu()),[]);let n=IY(e);if(!n||!t)return null;let s=`${r}${Wu(t,n)}`,i=s.replace(/^https?:\/\//,""),l=i.lastIndexOf("#");return Ga("div",{className:"sf-anchor-link",children:Ga(gY,{value:s,label:c("link"),size:"sm",children:yA("span",{className:"sf-anchor-link-text",children:[Ga("span",{className:"sf-anchor-link-path",children:i.slice(0,l)}),Ga("span",{className:"sf-anchor-link-hash",children:i.slice(l)})]})})})}import{jsx as $r,jsxs as SY}from"react/jsx-runtime";import{Fragment as wY}from"react";import{Button as $u,Tooltip as CY}from"efficient-shell/ui";function wA({status:e,statusText:o,onRefresh:t,busy:r=!1,edit:a,hint:n,spaced:s=!0,compact:i=!1,oneLine:l=!1}){return i?$r("div",{className:`sf-blogsource sf-blogsource--compact${l?" sf-blogsource--line":""}`,style:s?{marginTop:8}:void 0,children:$r(CY,{content:n,className:l?"sf-name-tip":void 0,children:$r("p",{className:"sf-blogsource-status","data-state":e,children:[o?$r(wY,{children:o},"status"):null,t?$r($u,{variant:"link",size:"sm",className:"sf-blogsource-link",onClick:t,disabled:r,children:c("Refresh now")},"refresh"):null,a?$r($u,{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])})})}):SY("div",{className:"sf-blogsource",style:s?{marginTop:9}:void 0,children:[$r("p",{className:"sf-blogsource-status","data-state":e,children:o}),t?$r($u,{variant:"secondary",className:"sf-blogsource-action",onClick:t,disabled:r,children:c("Refresh now")}):null,a?$r($u,{variant:"secondary",className:"sf-blogsource-action",onClick:a.onClick,children:a.label}):null,$r("p",{className:"es-field-hint",children:n})]})}import{AdjustIcon as eQ,EyeIcon as oQ,AnimationIcon as tQ,BackgroundIcon as vF,BorderAllIcon as rQ,BlockSectionIcon as aQ,ColumnWidthsIcon as lw,ColumnsIcon as HF,CornerIcon as WF,DirectionDownIcon as nQ,DirectionLeftIcon as sQ,DirectionRightIcon as iQ,DirectionUpIcon as lQ,EditIcon as cQ,GapIcon as dQ,GridIcon as $F,GroundIcon as aw,HashIcon as fQ,HeightIcon as cw,ImageIcon as pQ,ListIcon as uQ,LocationIcon as kF,PaddingBottomIcon as UF,PaddingLeftIcon as zF,PaddingRightIcon as GF,PaddingTopIcon as dw,PageIcon as mQ,StickyIcon as jF,SearchIcon as hQ,SquareIcon as xQ,TypeIcon as gQ,WidthIcon as IQ}from"efficient-easel/icons";import{jsx as to,Fragment as zn,jsxs as Gn}from"react/jsx-runtime";import{CaptionIcon as vY,DateIcon as kY,FlagIcon as TY,TitleIcon as PY,ButtonIcon as EY,DollarIcon as _Y,HashIcon as OY,LinkIcon as AY,NoteIcon as RY,TagIcon as LY,TextLinesIcon as FY}from"efficient-easel/icons";var CA={body:FY,button:EY,link:AY,label:LY,number:OY,price:_Y,note:RY,name:TY,date:kY,caption:vY,title:PY},vA={eyebrow:Gn(zn,{children:[to("path",{d:"M5 6.5h5"}),to("path",{d:"M5 12.5h14"}),to("path",{d:"M5 18h11"})]}),heading:Gn(zn,{children:[to("path",{d:"M6.5 5v14"}),to("path",{d:"M17.5 5v14"}),to("path",{d:"M6.5 12h11"})]}),intro:Gn(zn,{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:Gn(zn,{children:[to("rect",{x:"2.5",y:"7",width:"19",height:"10",rx:"2"}),to("path",{d:"M6.5 12h7"})]}),quote:Gn(zn,{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:Gn(zn,{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:Gn(zn,{children:[to("path",{d:"M4 7h16"}),to("path",{d:"M4 14h3.5"}),to("path",{d:"M10.5 14h3"}),to("path",{d:"M17 14h3"})]})};function kb({noun:e,size:o=14,strokeWidth:t=1.8,className:r,style:a}){let n=CA[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:vA[e]})}var VEe=Object.keys(CA);var YEe=Object.keys(vA);import{parseHexColor as UY}from"efficient-shell/format";import{parseHexColor as _A}from"efficient-shell/format";import{COLOR_SLOTS as OA,FILL_COLOR_SLOTS as HY,colorRole as WY,fillColorRole as AA}from"efficient-shell/markup";import{parseHexColor as kA}from"efficient-shell/format";import{FILL_COLOR_SLOTS as BY}from"efficient-shell/markup";var Uu=e=>{let o=G_.find(t=>t.role===e);return o?`var(${o.token})`:""},NY=e=>Uu(e)?`var(--theme-${e})`:"",DY={main:{ink:En.accent,page:En.accent,key:"accent",label:()=>c("Main"),words:e=>c("Theme {n} main color",{n:e})},text:{ink:En.text,page:En.text,key:"text",label:()=>c("Text"),words:e=>c("Theme {n} text color",{n:e})},background:{ink:Uu("bg"),page:NY("bg"),key:"background",label:()=>c("Background"),words:e=>c("Theme {n} background",{n:e})},muted:{ink:En.labels,page:En.labels,key:"muted",label:()=>c("Muted"),words:e=>c("Theme {n} muted color",{n:e})},surface:{ink:Uu("surface"),page:Uu("surface"),key:"surface",label:()=>c("Surface"),words:e=>c("Theme {n} surface color",{n:e})}};function ja(e){return U(DY,e)}var Tb="#9ca3af";function Li(e,o,t){let r=ja(e);return r?{hex:kA(o[r.key]??"")??"",words:r.words(t)}:null}function TA(e,o){return BY.flatMap(t=>{let r=Li(t,e,o);return r&&ja(t)?.ink?[{name:t,label:r.words,value:r.hex||Tb}]:[]})}var MY=["main","text","background"];function PA(e){let o=new Set,t=[];return ko(e).themes.forEach((r,a)=>{for(let n of MY){let s=ja(n),i=s?r[s.key]:void 0,l=typeof i=="string"&&i?kA(i):null;!s||!l||o.has(l)||(o.add(l),t.push({value:l,label:s.words(a+1)}))}}),t}function da(e){return ja(e)?.ink??""}function Ur(e){if(typeof e!="string")return null;let o=AA(e.trim());return o?.kind==="slot"&&da(o.slot)?o.slot:null}var $Y={accent:"main",labels:"muted"};function kt(e){return U($Y,e)??e}function Fi(e){if(!e)return"";if(e.startsWith("#"))return _A(e)===e.toLowerCase()?e:"";let o=WY(kt(e));return o?.kind==="slot"?da(o.slot):""}function Bi(e,o=OA){return o.flatMap(t=>{let r=ja(t);return r?.ink?[{name:t,label:r.label(),value:e?.[t]||Tb}]:[]})}function RA(e){let o=AA(kt(e));return o?.kind==="slot"?da(o.slot):""}function Pb(e){let o=e?.trim();return o?HY.find(t=>da(t)===o)??null:null}function zu(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 OA){let i=da(s);if(!i)continue;let l=i.replace(/^var\((--[\w-]+)\)$/,"$1"),d=a.getPropertyValue(l).trim();if(!d)continue;let f=EA(d);!f&&n&&(n.fillStyle="#000000",n.fillStyle=d,f=EA(String(n.fillStyle))),f&&(o[s]=f)}return o}function EA(e){let o=e.trim().toLowerCase();if(o.startsWith("#"))return _A(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 zY="#ffffff";function Eb(e){return LA(e)||(GY(e)?e:zY)}function LA(e){let o=Ur(e);return o?ja(o)?.page??"":""}function GY(e){return typeof e=="string"&&UY(e)===e.toLowerCase()||LA(e)!==""}function Gu(e){return{"--bg":Eb(e)}}import{parseHexColor as jY}from"efficient-shell/format";import{fillColorRole as KY}from"efficient-shell/markup";function jn(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 _b=[{label:"Even",value:"even"},{label:"From the bottom",value:"bottom"}];var v_e="sf-card",k_e="[--sf-card-lift:none] [--sf-card-shadow-hover:var(--sf-card-shadow,none)]",Ka={min:0,max:100,step:5,fallback:0,unit:"%"},VY="68%",P_e={desktop:20,phone:20,side:40,sidePhone:24},E_e="sf-box-sides";function Ab(e){return typeof e=="string"&&e.trim()!==""}function BA(e){return Ab(typeof e?.bgImage=="string"?e.bgImage:null)||ju(e)}function ju(e){return ft(e,Op)!==""}function jc(e,o){return o||!ju(e)?e:{...e,[Op]:""}}function __e(e,o){return Ty(o,ft(e,Op))?.trim()||null}function FA(e,o){let t=typeof e=="number"?e:Number.parseFloat(String(e??""));if(!Number.isFinite(t)||t<=0)return null;let r=(Math.min(Ka.max,Math.max(Ka.min,t))/100).toFixed(2);return o!=="bottom"?{background:la(Number(r))}:{background:`linear-gradient(0deg, ${la(Number(r))} 0%, ${la(0)} ${VY})`}}var Ku=[{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"}],NA="fillFade",Ob=Ku[1].value,Vu=e=>e===Ob?Ob:Ku[0].value,YY=[{mix:"12%",at:"50%"},{mix:"19%",at:"70%"},{mix:"50%",at:"95%"}];function O_e(e){return Vu(e)!==Ob?null:{backgroundImage:`linear-gradient(to bottom, transparent, ${YY.map(o=>`color-mix(in srgb, var(--bg) ${o.mix}, transparent) ${o.at}`).join(", ")})`}}var Yu=e=>typeof e=="string"?jY(e.trim()):null,Gc=e=>{let o=Yu(e);if(o!==null||typeof e!="string")return o;let t=e.trim();return t&&!t.startsWith("#")&&RA(t)||null},qu=e=>{if(typeof e!="string")return null;let o=KY(kt(e.trim()));return o?.kind==="slot"?o.slot:null},Rb="swatch";function A_e(e,o){if(!o)return null;let t=Ty(o,ft(e,Rb)),r=Ur(t);return Yu(t)??(r&&da(r)||null)}var qY={tabletClass:"sf-fill-tablet",tabletVar:"--sf-fill-tablet",phoneClass:"sf-fill-phone",phoneVar:"--sf-fill-phone"};function R_e(e,o,t){return jn(qY,Gc(e),Gc(o),Gc(t))}var XY={tabletClass:"sf-wash-tablet",tabletVar:"--sf-wash-tablet",phoneClass:"sf-wash-phone",phoneVar:"--sf-wash-phone"};function L_e(e){let o=FA(e.darken,e.darkenStyle);if(!o)return{className:"",style:{}};let t=(u,p)=>String(FA(u,p)?.background??"none"),r=u=>(typeof u=="number"||typeof u=="string"&&u.trim()!=="")&&Number.isFinite(Number(u))?u:void 0,a=u=>_b.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 jn(XY,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 F_e(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 AE(n,s)}function DA(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(Lb(r,o,0))return{type:typeof a=="string"?a:"",props:n??{}}}return null}function Lb(e,o,t){if(t>12||!e||typeof e!="object")return!1;if(Array.isArray(e))return e.some(a=>Lb(a,o,t+1));let r=e.props;return r&&typeof r=="object"&&r.id===o?!0:Object.values(e).some(a=>Lb(a,o,t+1))}function MA(e,o){let t=e?.content;return Array.isArray(t)?Xu(t,o,0)??[]:[]}function Xu(e,o,t){if(t>12||!e||typeof e!="object")return null;if(Array.isArray(e)){for(let a of e){let n=Xu(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=Xu(a,o,t+1);if(n)return[r,...n]}return null}for(let a of Object.values(e)){let n=Xu(a,o,t+1);if(n)return n}return null}import{SettingsDefaultReset as Qo,SettingsDrill as yQ,SettingsField as wo,SettingsGroup as bQ,SettingsSegmented as SQ,SettingsBorder as wQ,SettingsSidesEach as CQ,SettingsSwitch as fw,borderSides as vQ,borderStartEach as kQ}from"efficient-easel/panel";import{ListField as TQ}from"efficient-easel/fields";import{DisplayChips as PQ}from"efficient-shell/ui";import{HIDDEN_KEY as ZY,hiddenInEveryView as JY,hiddenInView as Fb,hiddenKeyOf as HA}from"efficient-easel/screen/lib/content/view-hide";var QY={"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"},e9={"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"},WA=e=>(e.desktop?"1":"0")+(e.tablet?"1":"0")+(e.mobile?"1":"0");function Zu(e,{atSectionLine:o=!1}={}){return(o?e9:QY)[WA(e)]}var Ni=[ZY,HA("tablet"),HA("mobile")];function $A(e){return{desktop:Fb(e,"desktop"),tablet:Fb(e,"tablet"),mobile:Fb(e,"mobile")}}function fa(e){return JY(e)}function UA(e){let o=$A(e);return["desktop","tablet","mobile"].filter(t=>o[t]).join(" ")}var o9={"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!"},t9={"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 Kc(e,{atSectionLine:o=!1}={}){return(o?t9:o9)[WA($A(e))]}function Di(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 Ju(e,o){return Di(e)[o]!==!1}function Bb(e,o,t){let r=Di(o)[t];return typeof r=="boolean"?r:Ju(e,t)}function zA(e){return Object.values(Di(e)).some(o=>o===!1)}function GA(e){return Object.keys(Di(e)).length>0}function jA(e,o,t){let r={...Di(e)};return t?delete r[o]:r[o]=!1,Object.keys(r).length?r:void 0}function KA(e,o,t){return{...Di(e),[o]:t}}function W_e(e,o,t,{atSectionLine:r=!0}={}){let a=!Ju(e,t);return Zu({desktop:a,tablet:a,mobile:!Bb(e,o,t)},{atSectionLine:r})}import{ColorSwatch as EQ,CornersInput as _Q,DatePicker as hBe,DateTimePicker as OQ,FOCAL_DEFAULT as xBe,IconPicker as KF,COLUMN_COUNT_MAX as TF,COLUMN_SHARE_MIN as AQ,COLUMN_SHARES_EQUAL as RQ,resolveColumnShares as VF,WidthsBar as LQ,useShellStrings as FQ,IconButton as YF,InputNumber as PF,Slider as BQ,Tooltip as pw}from"efficient-shell/ui";import{backendOf as r9}from"efficient-easel/screen/lib/session";var je=r9,Mi=e=>e.blocks;async function VA(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 Nb="Lookup busy \u2014 try again in a moment.",Qu=e=>typeof e=="number"&&Number.isFinite(e);function V_e(e){return e.some(o=>{let t=o?.geocode;return t?t.pending||t.manual&&t.lat===void 0&&t.lng===void 0?!0:Qu(t.lat)&&t.lat!==o.lat||Qu(t.lng)&&t.lng!==o.lng:!1})}async function Y_e(e,o,{geocode:t=VA,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:Nb}})}}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=Qu(i.lat)&&i.lat!==s.lat?i.lat:s.lat,d=Qu(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 nt,jsxs as Mb}from"react/jsx-runtime";import{useRef as a9}from"react";import{ColorPicker as n9,ColorPickerPanel as s9,ColorSwatch as i9,HexInput as l9,Popover as c9,Tooltip as d9,colorFill as f9,colorSwatchClasses as p9,useShellStrings as u9}from"efficient-shell/ui";import{SettingsDefaultReset as m9,SettingsField as h9}from"efficient-easel/panel";import{typedHex as Db}from"efficient-easel/pick";var YA="Not set";function qA({value:e,onChange:o,label:t,id:r,caption:a,inherited:n,ariaLabel:s,choices:i}){return nt(g9,{value:e,onChange:o,label:c(s??t),id:r,caption:a,inherited:n,choices:i})}function x9(){let{theme:e}=ce();return PA(e)}function g9({value:e,onChange:o,label:t,id:r,caption:a,inherited:n,choices:s}){let i=x9(),l=e?null:Db(n??""),d=a!==void 0&&(!e||Db(a)!==Db(e))?a:null,f=u=>{u!==e&&o(u)};return Mb("div",{className:"sf-colour",children:[s?nt(I9,{id:r,value:e,onChange:o,label:t,presets:i,follows:l,choices:s}):nt(n9,{id:r,value:e,onChange:f,label:t,presets:i,fallback:l??void 0,size:"md",align:"start"}),d!==null?nt("span",{className:"sf-colour-caption",children:d}):nt("span",{className:"sf-colour-hexwrap",children:nt(l9,{value:e||l||"",onChange:f,label:c("{label} hex code",{label:t}),placeholder:e||l?void 0:c(YA),className:l?"sf-colour-hex is-inherited":"sf-colour-hex",size:"md"})})]})}function I9({value:e,onChange:o,label:t,id:r,presets:a,follows:n,choices:s}){let i=u9().color,l=e||n||"",d=s.findIndex(p=>p.selected),f=d>=0,u=a9(d);return f&&(u.current=d),nt(c9,{id:r,trigger:nt("span",{"aria-hidden":"true",className:"absolute inset-0",style:f9(l)}),triggerLabel:i.swatch(t,l.toUpperCase()||i.none),triggerClassName:p9({size:"md"}),"aria-label":i.panel(t),align:"start",children:Mb("div",{className:"sf-colour-window",children:[nt("div",{role:"group","aria-label":t,className:"sf-colour-choices",children:s.map(p=>nt(d9,{content:p.label,children:nt(i9,{color:p.color,"aria-label":p.label,selected:p.selected,onClick:()=>{p.selected||p.onPick()}})},p.label))}),nt(s9,{value:f?"":e,onChange:o,label:t,presets:a,fallback:(f?l:n)??void 0},u.current)]})})}function mt({label:e,icon:o,changed:t,hint:r,onReset:a,resetTo:n,children:s,...i}){return nt(h9,{label:e,icon:o,htmlFor:i.id,changed:t,hint:r,action:a?nt(m9,{words:le()?.panel,label:e,changed:!!t,detail:n,onReset:a}):void 0,children:s?Mb("div",{className:"es-width-stack",children:[qA({...i,label:e}),s]}):qA({...i,label:e})})}function Vc({label:e,icon:o,value:t,inherited:r,resetTo:a,onChange:n,onReset:s,hint:i,choices:l,children:d}){let f=!!t;return nt(mt,{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 nw}from"efficient-easel/screen/lib/document/style-fields";import{jsx as y9}from"react/jsx-runtime";import{useEffect as b9,useState as S9}from"react";import{clearRangeOf as w9,markSelection as C9,useCaretEdit as v9}from"efficient-easel/copy";import{TextToolbar as k9}from"efficient-shell/ui";function T9(e,o,t){return C9(e,o,t,eE)}function XA(e,o){let t=w9(o,e.length),r=tE(e,t.start,t.end);return r.text===e?null:r}function P9(e){let[o,t]=S9(null);return b9(()=>{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 E9({target:e,value:o,onChange:t,disabled:r=!1,label:a="Formatting"}){let n=v9({target:e,onChange:t}),[s,i]=P9(e),l=p=>n(m=>{let h=T9(o,p,m);return i({start:h.selectionStart,end:h.selectionEnd}),h}),d=Q0(),f={};if(s)for(let p of d)f[p.style]=oE(o,s.start,s.end,p.style);let u=r?null:XA(o,s);return y9(k9,{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=XA(o,m)??{text:o,selectionStart:m?.start??0,selectionEnd:m?.end??0};return i({start:h.selectionStart,end:h.selectionEnd}),h})}:void 0})}var Hb=E9;import{deviceField as Ot}from"efficient-easel/screen/lib/document/device-fields";import{NO_CONTROL_FIELD as NQ,NoControlMark as DQ,noControlField as qF}from"efficient-easel/screen/lib/document/panel-no-control-mark";var Wb="__ownBox";function ZA(e){return!!e&&typeof e=="object"&&e[Wb]===!0}var $b="sfPanelOnly";function Hi(e){return!!e&&typeof e=="object"&&e[$b]===!0}function em(e,o,t){return typeof e=="number"?e:typeof o=="number"?o:t}var om=void 0;import{phoneKey as Zi,tabletKey as uw,viewKeyAt as mw}from"efficient-easel/draw";import{jsx as tm,Fragment as _9,jsxs as O9}from"react/jsx-runtime";import{useRef as A9}from"react";import{SettingsDefaultReset as R9}from"efficient-easel/panel";import{effectTiles as L9}from"efficient-easel/screen/lib/document/effect-tiles";import{VIEW_KEY_ACCESS as JA,describedAs as F9,onDesktopWords as B9,phoneTwinFields as QA}from"efficient-easel/screen/lib/document/box-fields";function N9({row:e,read:o,...t}){let r=o(So(),t.followsView??"desktop");return e({...t,follows:r})}function pa(e,o){return Object.fromEntries(ut.map(t=>{let r=ke(e,t);return[r,QA(e,o(t),JA)[r]]}))}function rm(e,o,t){let r=o.render,a={...o,render:n=>tm(N9,{...n,row:r,read:t})};return pa(e,n=>n==="desktop"?o:a)}function D9({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=A9(null),{preview:i}=e,l=L9({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 O9(_9,{children:[i?tm("div",{ref:s,style:{display:"contents"},children:d}):d,r&&t&&tm(R9,{words:le()?.panel,label:c(e.tileWord),changed:!0,detail:B9(f=>c(f),c(e.word(a)),o.followsView),onReset:()=>o.onChange(void 0)})]})}function am(e,o){let t=F9({type:"custom",render:r=>tm(D9,{...r,spec:o})},{type:"select",label:o.label,options:o.values.map(r=>({value:r,label:o.word(r)}))});return QA(e,t,JA)}import{jsx as zb,Fragment as W9}from"react/jsx-runtime";import{createContext as $9,useContext as U9}from"react";var nm={ProductGrid:{source:{keep:["slug"]}},GalleryItem:{product:{keep:["code","finish"]}},FeaturedCover:{source:{keep:["slug"]}},LongRead:{source:{keep:["slug"]}}},sm={Events:["posts"],SubscribeBlogs:["posts"]};var M9=["anchor"],H9=/^href$|Href$|^url$|Url$|^link$|^mailto$|^tel$/;function Kn(e){return M9.includes(e)||H9.test(e)}var Ub={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"}}};Ub.ContactLocations={"locations[].lat":{verb:"pii"},"locations[].lng":{verb:"pii"},"locations[].mapsUrl":{verb:"pii"},"locations[].geocode":{verb:"pii"}};var EOe=Object.fromEntries(Object.entries(nm).map(([e,o])=>[e,Object.keys(o)])),_Oe=Object.fromEntries(Object.entries(sm).map(([e,o])=>[e,[...o]]));import{NoControlMark as z9}from"efficient-easel/screen/lib/document/panel-no-control-mark";var eR=$9(!1);function oR({children:e}){return zb(eR.Provider,{value:!0,children:e})}function G9(){return U9(eR)}function tR({name:e,children:o}){return!G9()||!e||!j9(e)||Kn(e)?zb(W9,{children:o}):zb(z9,{})}function j9(e){return/^[A-Za-z0-9_$]+$/u.test(e)}var Gb="off",aR="none",jb=[{label:"None",value:"off"},{label:"1, 2, 3",value:"plain"},{label:"01, 02, 03",value:"padded"},{label:"N\xB001, N\xB002",value:"numero"}],nR=[{label:"None",value:"none"},{label:"Hairline",value:"hairline"}];function DOe(e){return Io(jb,Gb,e)}var rR="sf-card-index",Yc="sf-card-index",MOe="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",K9={plain:`counter(${Yc})`,padded:`counter(${Yc}, decimal-leading-zero)`,numero:`"N\xB0" counter(${Yc}, decimal-leading-zero)`};function HOe(e,o){return o==="off"?"":`.${e}{counter-reset:${Yc}}.${e} .${rR}{counter-increment:${Yc}}.${e} .${rR}::before{content:${K9[o]}}`}function WOe(e){return e==="hairline"?"border border-line hover:border-accent":""}var sR=[{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 MQ}from"efficient-easel/draw";import{jsx as ht}from"react/jsx-runtime";import{SettingsDefaultReset as eq,SettingsField as Kb}from"efficient-easel/panel";import{useSelectedHost as oq}from"efficient-easel/easel";import{FOCAL_DEFAULT as tq}from"efficient-shell/format";import{ImageIcon as Vb,PlayIcon as lR}from"efficient-easel/icons";import{ImageFocusPoint as rq,MediaUploadField as aq}from"efficient-shell/ui";import{useContext as nq}from"react";import{ScreenDocumentContext as sq}from"efficient-easel/screen/components/ScreenDocumentContext";import{tabletKey as iq,viewKeyAt as lq}from"efficient-easel/draw";import{usePreviewDevice as cq}from"efficient-easel/draw/client";import{formatFocal as V9,parseFocal as Y9}from"efficient-shell/format";var q9="sf-focus-phone",X9="--sf-focus-phone",Z9="sf-focus-tablet",J9="--sf-focus-tablet",qc=e=>{if(typeof e!="string"||!/^\s*-?\d+(\.\d+)?%\s+-?\d+(\.\d+)?%\s*$/.test(e))return null;let{x:o,y:t}=Y9(e);return V9(o,t)};function iR(e,o){return jn(Q9,null,qc(o),qc(e))}var Q9={tabletClass:Z9,tabletVar:J9,phoneClass:q9,phoneVar:X9};import{shownTier as Yb}from"efficient-easel/screen/lib/document/device-fields";import{onDesktopWords as dq}from"efficient-easel/screen/lib/document/box-fields";import{requestMediaPick as fq}from"efficient-easel/screen/lib/media-picker";import{useEaselHost as pq}from"efficient-easel/screen/lib/host";import{useEaselSession as uq}from"efficient-easel/screen/lib/session-context";function mq(e,o,t,r=!0){let a=Yb(t),n=typeof e[o]=="string"&&e[o]?String(e[o]):tq;if(a==="desktop")return{ownView:!1,followed:n,followsView:"desktop",own:void 0,focus:n,key:o};let s=lq(o,a),i=qc(e[s])??void 0,l=a==="mobile"&&r?qc(e[iq(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 hq(e,o,t){let r=oq();if(!o||!r)return null;let a=r.values??{};if(t&&!t(a,Yb(e)))return null;let n=mq(a,o,e,t?t(a,"tablet"):!0),s=r.onChange;return{...n,set:i=>s(n.key,i),clear:()=>s(n.key,om)}}function cR({value:e,onChange:o,label:t,accept:r,placeholder:a,focusKey:n,focusWhen:s,frameKey:i,fieldKey:l}){let d=pq(),f=uq(),u=c(t),p=cq(),m=r.startsWith("video"),h=hq(p,m?void 0:n,s),I=!!n&&Yb(p)!=="desktop",w=nq(sq),S=pr(),v=i&&l?{video:l,frame:i}:null,b=T=>fq(d,{accept:r,title:u,...T?{file:T}:{}}).then(D=>!D||!v?D?.url??null:(S({[v.video]:D.url,[v.frame]:D.posterUrl??""}),null)),y=v?T=>T?o(T):S({[v.video]:"",[v.frame]:""}):o,k=at(e);if(I&&(!h||!k))return null;if(w&&!w.capabilities.mediaEditing)return ht(Kb,{label:u,icon:m?ht(lR,{}):ht(Vb,{}),children:ht("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 F=h?.ownView&&k?ht(eq,{words:le()?.panel,label:c("Image focus"),changed:!!h.own,detail:dq(T=>c(T),h.followed,h.followsView),onReset:h.clear}):void 0;return I&&h?ht(Kb,{label:u,icon:ht(Vb,{}),action:F,children:ht("div",{style:{flex:"1 1 auto",minWidth:0},children:ht(rq,{value:h.focus,onChange:h.set,label:c("Image focus"),image:k,hint:null})})}):ht(Kb,{label:u,icon:m?ht(lR,{}):ht(Vb,{}),children:ht("div",{style:{flex:"1 1 auto",minWidth:0},children:ht(aq,{value:k,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 dR}from"react/jsx-runtime";import{useId as xq}from"react";import{FieldSelect as gq}from"efficient-easel/fields";import{SettingsField as Iq}from"efficient-easel/panel";function yq(e){return e.map(({value:o,label:t,note:r})=>({value:o,label:t,...r?{meta:r}:{}}))}function fR({label:e,options:o,value:t,onChange:r,emptyLabel:a,icon:n,hint:s}){let i=xq(),l=`${i}-label`,d=`${i}-button`,f=Array.isArray(t)?t:[];return dR(Iq,{label:c(e),labelId:l,icon:n,hint:s,children:dR(gq,{id:d,multiple:!0,value:f,options:yq(o),onChange:r,placeholder:a===void 0?c("None"):c(a),ariaLabelledBy:`${l} ${d}`,inline:!0})})}import{jsx as To,jsxs as Yn,Fragment as Yq}from"react/jsx-runtime";import{useCallback as vR,useContext as qq,useId as PR,useRef as kR,useState as TR}from"react";import{ThemeIcon as Xq}from"efficient-easel/icons";import{Button as Zq,useClickOutside as Jq}from"efficient-shell/ui";import{SettingsField as Qq}from"efficient-easel/panel";import{ScreenDocumentContext as eX}from"efficient-easel/screen/components/ScreenDocumentContext";import{jsx as me,jsxs as Ya,Fragment as Eq}from"react/jsx-runtime";import{parseHexColor as _q}from"efficient-shell/format";import{Button as Xb,IconButton as Oq,Tooltip as Aq}from"efficient-shell/ui";import{jsx as Va,jsxs as bq}from"react/jsx-runtime";import{AccentIcon as Sq}from"efficient-easel/icons";import{Button as wq,Tooltip as Cq}from"efficient-shell/ui";function qb(e){return pt(e).background}function vq(e){let o=Da(e.accent,qb(e));return o===null?null:{ratio:o,grade:Si(o)}}function kq(e){let o=qb(e),t=Da(e.accent,o);return t===null?[]:y_(e.accent).filter(r=>{let a=Da(r,o);return a!==null&&a>t&&Si(a)==="good"})}var Tq={good:"Easy to read","large-only":bi["large-only"],hard:bi.hard};function pR({value:e,onChange:o}){let t=vq(e),r=t?.grade,a=t&&t.grade!=="good"?kq(e):[];return Va(mt,{label:c("Main color"),icon:Va(Sq,{}),hint:t?c(Tq[t.grade]):void 0,value:e.accent,onChange:n=>o({...e,accent:n}),children:a.length>0?Va("div",{className:"w-full min-w-0",children:bq("div",{className:"sf-readability",children:[Va("p",{className:"sf-readability-advice",children:Pq(r,!0)}),Va("div",{className:"sf-readability-suggestions",children:a.map(n=>{let s=Da(n,qb(e));return Va(Cq,{content:c("Use {colour}",{colour:n.toUpperCase()}),children:Va(wq,{variant:"secondary",className:"sf-readability-suggestion",leftIcon:Va("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 Pq(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 Rq,ChevronDownIcon as mR,ChevronUpIcon as Lq,GroundIcon as Fq,LayoutIcon as Bq,SquareIcon as Nq,TextSmallIcon as Dq,TypeIcon as uR}from"efficient-easel/icons";var Xc=e=>c("Theme {n}",{n:e+1});function hR({colors:e}){let o=pt(e),t=kc(e)??o.accent;return Ya("span",{className:"sf-theme-page",style:{background:o.background,color:o.text},"aria-hidden":!0,children:[me("span",{className:"sf-theme-eyebrow",style:{color:o.muted},children:c("label")}),Ya("span",{className:"sf-theme-headline",children:[c("Heading")," ",me("span",{style:{color:o.accent},children:c("main")})]}),me("span",{className:"sf-theme-body",children:c("body text")}),Ya("span",{className:"sf-theme-row",children:[me("span",{className:"sf-theme-btn",style:{background:t,color:Oy(e,o.accent)},children:c("button")}),me("span",{className:"sf-theme-mini",style:{background:o.surface,borderColor:o.line},children:c("card")})]})]})}var Zb={"Text color":me(uR,{}),"Label color":me(Dq,{}),Background:me(Fq,{}),"Panels & cards":me(Bq,{}),Borders:me(Nq,{}),"Button color":me(Rq,{}),"Button text color":me(uR,{})};function Mq({label:e,colorKey:o,value:t,onChange:r,idPrefix:a="sf-theme-ink"}){let n=`${a}-${o}`;return me(mt,{label:c(e),icon:Zb[e],id:n,value:t,onChange:s=>r(o,s)})}function Hq({value:e,accent:o,onChange:t,idPrefix:r="sf-theme-ink"}){let a=`${r}-button`,n=e!==void 0&&_q(e)===e.toLowerCase(),s=n?e:o;return me(mt,{label:c("Button color"),icon:Zb["Button color"],id:a,value:s,caption:n?s:c("Main"),onChange:t})}function Wq({colors:e,accent:o,onChange:t,idPrefix:r="sf-theme-ink"}){let a=`${r}-button-ink`,n=C_(e),s=Oy(e,o),i=kc(e)??o,l=Si(Da(s,i)??0);return me(mt,{label:c("Button text color"),icon:Zb["Button text color"],hint:n&&l!=="good"?c("{grade} on the button",{grade:c(bi[l])}):void 0,id:a,value:s,caption:n?s:c("Auto"),onChange:t})}var $q=[{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 Jb({colors:e,onChange:o,idPrefix:t}){let r=pt(e);return me(Eq,{children:$q.map(a=>"colour"in a?me(pR,{value:e,onChange:o},"colour"):"moduleBreak"in a?me("div",{className:"sf-theme-module-break","aria-hidden":"true"},"module-break"):"button"in a?me(Hq,{value:e.button,accent:r.accent,onChange:n=>o({...e,button:n}),idPrefix:t},"button"):"buttonInk"in a?me(Wq,{colors:e,accent:r.accent,onChange:n=>o({...e,buttonInk:n}),idPrefix:t},"buttonInk"):me(Mq,{label:a.label,colorKey:a.key,value:r[a.key],onChange:(n,s)=>o({...e,[n]:s}),idPrefix:t},a.key))})}function im({index:e,colors:o,selected:t,role:r="radio",open:a,editable:n=!0,onPick:s,onEdit:i,onChangeColors:l}){let d=pt(o),f=Xc(e),u=e<_y.length&&!o.brandInk?_y[e]:null,p=Si(Da(d.text,d.background)??0),m=u?JSON.stringify(o)!==JSON.stringify(u):!1,h=a!==void 0;return Ya("div",{className:`sf-theme-card${t?" is-selected":""}`,children:[me("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:me(hR,{colors:o})}),Ya("div",{className:"sf-theme-foot",children:[me("span",{className:"sf-theme-name",children:f}),p!=="good"&&me("span",{className:"sf-theme-warn",children:c(bi[p])}),n&&i&&h&&me("span",{className:"sf-theme-edit",children:me(Aq,{content:a?c("Collapse"):c("Edit colors"),children:me(Oq,{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?me(Lq,{size:14}):me(mR,{size:14})})})}),n&&i&&!h&&me(Xb,{variant:"secondary",size:"sm",className:"sf-theme-edit","aria-label":c("Edit {name}",{name:f}),onClick:i,children:c("Edit")})]}),a&&Ya("div",{id:`sf-theme-colours-${e}`,className:"sf-theme-colours",children:[me(Jb,{colors:o,onChange:I=>l?.(I)}),u&&me(Xb,{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 xR({colors:e,name:o,nameId:t,open:r,menuId:a,labelId:n,buttonRef:s,onClick:i,onKeyDown:l,onEdit:d}){return Ya("div",{className:"sf-secttheme-btn",children:[me("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?me(hR,{colors:e}):me("span",{className:"sf-secttheme-nopreview","aria-hidden":"true"})}),Ya("div",{className:"sf-theme-foot",children:[me("span",{id:t,className:"sf-theme-name",children:o}),d&&me(Xb,{variant:"secondary",size:"sm",className:"sf-theme-edit","aria-label":c("Edit {name}",{name:o}),onClick:d,children:c("Edit")}),me("button",{type:"button",className:"sf-secttheme-caret","aria-hidden":"true",tabIndex:-1,onClick:i,children:me(mR,{size:12,className:"sf-multi-caret","aria-hidden":"true"})})]})]})}import{useCallback as aS,useEffect as SR,useRef as fm}from"react";import{currentEaselSession as Gq}from"efficient-easel/screen/lib/session";import{useEaselSession as jq}from"efficient-easel/screen/lib/session-context";import{useSyncExternalStore as Uq}from"react";var IR,Qb=null,Vn=null,lm=0,eS=new Set;function oS(e){IR=e;for(let o of eS)o()}function tS(e){Qb=e,lm+=1,Vn&&clearTimeout(Vn),Vn=null,oS(void 0)}function cm(e){lm+=1,oS(e)}function ua(e=250){Qb&&(Vn&&clearTimeout(Vn),Vn=setTimeout(()=>{Vn=null;let o=Qb;if(!o)return;let t=++lm;o().then(r=>{t===lm&&oS(r)}).catch(()=>{})},e))}function gR(){return IR}function zq(e){return eS.add(e),()=>{eS.delete(e)}}function dm(){return Uq(zq,gR,gR)}var rS=new Set;function yR(e){return rS.add(e),()=>{rS.delete(e)}}async function bR(){let e=(await Promise.allSettled([...rS].map(async o=>o()))).find(o=>o.status==="rejected");if(e)throw e.reason}import{WebsiteBackendError as Kq}from"efficient-easel/screen/lib/backend-error";function wR(e=Gq()){return(o,t,r)=>{let a=je(e).theme;return a?a.update(o,r?{siteId:r}:void 0):Promise.reject(new Kq("invalid","This backend stores no site theme."))}}function CR(e){return e.themeFromDocument?{status:"skipped",reason:"template"}:e.token?null:{status:"skipped",reason:"no-token"}}async function Vq(e,o=wR()){let{themeFromDocument:t,token:r,siteId:a,patch:n}=e,s=CR({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 Wi({themeFromDocument:e,tokenRef:o,siteId:t,onResult:r}){let a=fm(null),n=fm({}),s=jq(),i=fm(r);i.current=r;let l=fm(null),d=aS(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=aS(async()=>{a.current&&(clearTimeout(a.current),a.current=null);let p=n.current;n.current={};let m=await Vq({themeFromDocument:e,token:o?.current,siteId:t,patch:p},wR(s));return d(m),m.status==="saved"&&ua(),m.status==="failed"&&(n.current={...p,...n.current}),m},[e,o,t,d,s]),u=aS((p,m=!1)=>{let h=CR({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 SR(()=>()=>{f()},[f]),SR(()=>yR(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 nS="Follow the page",ER="Follow the slideshow",oX=e=>c("Editing {name} changes it everywhere.",{name:e});function tX({colors:e}){if(!e)return To("span",{className:"sf-secttheme-chip sf-secttheme-chip--none","aria-hidden":"true"});let o=pt(e);return Yn("span",{className:"sf-secttheme-chip","aria-hidden":"true",children:[To("i",{style:{background:o.background}}),To("i",{className:"sf-secttheme-chip-accent",style:{background:o.accent}})]})}function rX({themes:e,value:o,onPick:t,onEdit:r,menuId:a,followLabel:n}){return Yn("div",{className:"sf-multi-menu sf-secttheme-menu",id:a,role:"listbox",children:[n!==void 0&&Yn(Yq,{children:[Yn("button",{type:"button",role:"option","aria-selected":o===null,className:`sf-secttheme-item${o===null?" is-active":""}`,onClick:()=>t(Mr),children:[To(tX,{}),To("span",{className:"sf-secttheme-name",children:c(n)})]}),To("div",{className:"sf-secttheme-sep",role:"presentation"})]}),o!==null&&e[o]&&To("p",{className:"sf-secttheme-oncard",role:"presentation",children:c("{name} is on this section",{name:Xc(o)})}),e.map((s,i)=>i===o?null:To(im,{role:"option",index:i,colors:s,selected:!1,onPick:()=>t(i),onEdit:()=>r(i)},i))]})}function aX({index:e,colors:o,onChange:t,onDone:r}){let a=Xc(e),n=PR();return Yn("div",{className:"sf-secttheme-sheet",children:[Yn("div",{className:"sf-secttheme-sheet-head",children:[To("span",{children:a}),To(Zq,{variant:"secondary",className:"sf-secttheme-done",onClick:r,children:c("Done")})]}),To("div",{className:"sf-secttheme-rows",children:To(Jb,{colors:o,onChange:t,idPrefix:n})}),To("p",{className:"sf-secttheme-warn",children:oX(a)})]})}function _R({value:e,onChange:o,followLabel:t,hint:r}){let{theme:a,setTheme:n}=ce(),s=ko(a),i=qq(eX),l=i?.tokenRef,d=i?.siteId??null,f=!i?.capabilities?.hasSiteTheme,{persist:u,flush:p}=Wi({themeFromDocument:f,tokenRef:l,siteId:d}),m=ko(s),h=m.themes,I=Hr(e),w=I!==null?h[I]:void 0,S=w??(h.length?yi(m):void 0),[v,b]=TR(!1),[y,k]=TR(null),F=kR(null),T=kR(null),D=PR(),P=vR(()=>{b(!1),k(null)},[]),L=vR(()=>{!v&&y===null||(p(),P())},[v,y,P,p]);Jq(F,L);let C=E=>{o(E),P()},A=E=>{if(y===null)return;let R=h.map((z,Z)=>Z===y?E:z),W={...m,themes:R};n(W),u({selected_preset:W.selected,theme_presets:W.themes})};return Yn("div",{className:"sf-secttheme",ref:F,children:[To(Qq,{label:c("Theme"),icon:To(Xq,{}),labelId:`${D}-label`,hint:r,children:To(xR,{colors:S,onEdit:I!==null?()=>{k(I),b(!1)}:void 0,name:w?Xc(I):c(t??nS),nameId:`${D}-value`,labelId:`${D}-label`,open:v,menuId:D,buttonRef:T,onClick:()=>{k(null),b(E=>!E)},onKeyDown:E=>{E.key==="Escape"&&(v||y!==null)&&(E.preventDefault(),P())}})}),v&&y===null&&To("div",{onKeyDown:E=>{E.key==="Escape"&&(E.preventDefault(),P(),T.current?.focus())},children:To(rX,{themes:h,value:I,onPick:C,onEdit:E=>{k(E),b(!1)},menuId:D,followLabel:t})}),y!==null&&h[y]&&To(aX,{index:y,colors:h[y],onChange:A,onDone:()=>{p(),P(),T.current?.focus()}})]})}import{jsx as OR}from"react/jsx-runtime";import{useId as nX}from"react";import{FieldSelect as sX}from"efficient-easel/fields";import{SettingsField as iX}from"efficient-easel/panel";function lX(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 fAe({label:e,options:o,fallback:t,value:r,onChange:a,placeholder:n,bare:s=!1,icon:i}){let l=nX(),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=OR(sX,{id:f,value:p,options:lX(o),onChange:a,placeholder:h,searchPlaceholder:h,...s?{ariaLabel:m}:{ariaLabelledBy:`${d} ${f}`},searchable:!0,groupCount:!0,inline:!0});return s?I:OR(iX,{label:m,labelId:d,icon:i,children:I})}import{jsx as Xn,jsxs as $X}from"react/jsx-runtime";import{SettingsField as QR}from"efficient-easel/panel";import{LinkIcon as UX}from"efficient-easel/icons";import{LinkPicker as zX,TextLinkField as GX}from"efficient-shell/ui";import{useEffect as JR,useMemo as xm,useRef as jX,useState as hm}from"react";import{currentEaselSession as cX}from"efficient-easel/screen/lib/session";function AR(){return cX().auth.token}import{currentEaselSession as KX}from"efficient-easel/screen/lib/session";import{useScreenDocument as VX}from"efficient-easel/screen/components/ScreenDocumentContext";var dX=()=>({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 RR(e,o,t){if(!e)return"page";if(hA(e))return"popup";if(e.startsWith("/journal/"))return"blog";if(IA(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 sS(e,o){let t=dX(),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:gA(...f.docs).map(u=>({value:Wu(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:xA(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:mA(u.slug),label:u.title||u.slug})),placeholder:t.choosePopup};case"custom":return{type:"text"}}},l=uA(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=>RR(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=>RR(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 YX}from"efficient-easel/screen/lib/session-context";function Do(e,o){if(typeof e=="string")return e||o;if(e&&typeof e=="object"&&"text"in e){let t=e.text;return be(t)??o}return o}function LR(e,o){return q(e)??o}function ma(e,o){return typeof e=="boolean"?e:o}function pm(e,o){if(!Array.isArray(e))return o;let t=e.map(r=>typeof r=="string"?r:Do(r?.text,"")).map(r=>r.trim()).filter(Boolean);return t.length?t:o}var BR=["delay","scroll","exit"],NR=["all","chosen","except"],DR=["visit","days","never","once"],fX=["all","desktop","phone"],pX=["stop","continue"],MR={min:0,max:60},HR={min:10,max:90},WR={min:1,max:90},ur={autoOpen:!1,trigger:"delay",autoOpenDelaySec:15,scrollPercent:50,showOn:"all",showOnPages:[],devices:"all",hideAfter:"days",hideDays:7,afterSubmit:"stop",startDate:null,endDate:null};function Tt(e,o,t){return typeof o=="string"&&e.includes(o)?o:t}function $i(e,o,t){let r=LR(e,t);return Math.min(o.max,Math.max(o.min,Math.round(r)))}function uX(e){return typeof e.hideAfter=="string"?Tt(DR,e.hideAfter,ur.hideAfter):e.oncePerSession===!0?"visit":e.oncePerSession===!1?"never":ur.hideAfter}function mX(e){return Array.isArray(e)?e.map(o=>typeof o=="string"?o.trim():"").filter(Boolean).map(o=>o.startsWith("/")?o:`/${o}`):[]}function FR(e){if(typeof e!="string")return null;let o=e.trim();return/^\d{4}-\d{2}-\d{2}$/.test(o)?o:null}function $R(e){let o=e??{},t=ur;return{autoOpen:ma(o.autoOpen,t.autoOpen),trigger:Tt(BR,o.trigger,t.trigger),autoOpenDelaySec:$i(o.autoOpenDelaySec,MR,t.autoOpenDelaySec),scrollPercent:$i(o.scrollPercent,HR,t.scrollPercent),showOn:Tt(NR,o.showOn,t.showOn),showOnPages:mX(o.showOnPages),devices:Tt(fX,o.devices,t.devices),hideAfter:uX(o),hideDays:$i(o.hideDays,WR,t.hideDays),afterSubmit:Tt(pX,o.afterSubmit,t.afterSubmit),startDate:FR(o.startDate),endDate:FR(o.endDate)}}import{parseHexColor as hX}from"efficient-shell/format";var mr="#000000";var iS="popup",xX=Z_,gX=["auto","full"],IX=["inside","outside","none"],yX={min:240,max:1440},bX={min:0,max:100},Zc={placement:"center",fullWidth:!1,width:720,height:"auto",tintColor:mr,tintOpacity:60,outsideClick:!0,closeButton:"inside"};function SX(e,o){let t=typeof e=="string"?e.trim():"";return t&&hX(t)===t.toLowerCase()?t:o}function lS(e,o=Zc){let t=e??{},r=o;return{placement:Tt(xX,t.placement,r.placement),fullWidth:ma(t.fullWidth,r.fullWidth),width:$i(t.width,yX,r.width),height:Tt(gX,t.height,r.height),tintColor:SX(t.tintColor,r.tintColor),tintOpacity:$i(t.tintOpacity,bX,r.tintOpacity),outsideClick:ma(t.outsideClick,r.outsideClick),closeButton:Tt(IX,t.closeButton,r.closeButton)}}var UR="cart-drawer",LAe="cart-drawer",wX={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 FAe(e,o){return o===0?e.subtitleEmpty:o===1?e.subtitleOne:e.subtitleMany.replace("{count}",String(o))}function BAe(e){let o=e??{},t=wX;return{kickerBadge:Do(o.kickerBadge,t.kickerBadge),kickerText:Do(o.kickerText,t.kickerText),titleLead:Do(o.titleLead,t.titleLead),titleAccent:Do(o.titleAccent,t.titleAccent),subtitleEmpty:Do(o.subtitleEmpty,t.subtitleEmpty),subtitleOne:Do(o.subtitleOne,t.subtitleOne),subtitleMany:Do(o.subtitleMany,t.subtitleMany),leadTimeValue:Do(o.leadTimeValue,t.leadTimeValue),shipsToFallback:Do(o.shipsToFallback,t.shipsToFallback),promises:pm(o.promises,t.promises),emptyKicker:Do(o.emptyKicker,t.emptyKicker),emptyBody:Do(o.emptyBody,t.emptyBody)}}var CX=["right","left"],vX={...Zc,width:520,tintOpacity:68};function NAe(e){let o=e??{};return{...lS(o,vX),placement:Tt(CX,o.placement,"right"),height:"full",fullWidth:!1,autoOpen:ma(o.autoOpen,!0)}}var GR="consent-banner",WAe="consent-banner";var kX=[{value:"bar",label:"Bar"},{value:"card",label:"Card"}],$Ae="Layout",zR={layout:"bar"},TX=e=>kX.some(o=>o.value===e);function UAe(e){let o=Do((e??{}).layout,zR.layout);return{layout:TX(o)?o:zR.layout}}var zAe={...Zc,placement:"bottom-center",fullWidth:!0,width:440,tintOpacity:0,outsideClick:!1,closeButton:"none"};var PX="consentWords",EX=["eyebrow","notice","accept","reject","choose"];function cS(e){let o=(e??{})[PX];return typeof o=="string"&&EX.includes(o)?o:null}function dS(e){let o=e?.props;return o?cS(o)!==null?!0:Object.values(o).some(t=>Array.isArray(t)&&t.some(r=>r&&typeof r=="object"&&"props"in r&&dS(r))):!1}var _X=["meta","eyebrow","heading","body","statName","statValue","formEyebrow","formHeading","formIntro","fieldLabel","option","finePrint","dismiss","doneHeading","doneBody"],KAe={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"},OX={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"},VAe={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 jR(e){let o={};for(let t of _X){let r=ra(e[OX[t]]);r&&(o[t]=r)}return o}var KR={heading:"Join our email list",placeholder:"Email address",buttonLabel:"Subscribe"},AX={lead:"We accept"},mm={...AX,methods:[],size:"sm",align:"start",dataSource:gp},hr="site-footer";var XAe=hr,ZAe={desktop:!0,tablet:!0,mobile:!0},JAe={desktop:!1,tablet:!1,mobile:!1},fS=1,VR=6,QAe=Array.from({length:VR-fS+1},(e,o)=>fS+o),um={desktop:6,tablet:3,mobile:2},RX={2:{desktop:2,tablet:2,mobile:1},3:{desktop:3,tablet:3,mobile:1},4:{desktop:4,tablet:2,mobile:2},5:{desktop:5,tablet:3,mobile:2},6:{desktop:6,tablet:3,mobile:2}},qn=e=>Math.min(Math.max(Math.round(e),fS),VR);function eRe(e){if(typeof e=="number")return RX[qn(e)]??{desktop:qn(e),tablet:qn(e),mobile:qn(e)};if(e&&typeof e=="object"){let o=e;return{desktop:qn(o.desktop??um.desktop),tablet:qn(o.tablet??um.tablet),mobile:qn(o.mobile??um.mobile)}}return{...um}}var pS="subscribe-popup",lRe="subscribe-popup",LX=[pS,hr,UR,GR];function qR(e){return LX.includes(e)}var FX=["right","left"],BX={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:ur.autoOpen,autoOpenDelaySec:ur.autoOpenDelaySec,formSlug:"",trigger:ur.trigger,scrollPercent:ur.scrollPercent,showOn:ur.showOn,showOnPages:[],hideAfter:ur.hideAfter,hideDays:ur.hideDays,formSide:"right",valuePanelOnPhone:!1,sectionAccent:void 0,sectionCorners:void 0,sectionCornerSides:void 0,textStyles:{}},lo=Do,NX=ma,XR=pm;function YR(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 DX(e,o){return Array.isArray(e)?XR(e,[]):o}function MX(e,o){return Array.isArray(e)?e.map(t=>{let r=t??{};return{label:lo(r.label,""),value:lo(r.value,"")}}).filter(t=>t.label||t.value):o}function dRe(e){let o=e??{},t=BX,r=$R(o);return{metaLabel:lo(o.metaLabel,t.metaLabel),issueLabel:YR(o.issueLabel,t.issueLabel),issueNumber:YR(o.issueNumber,t.issueNumber),kicker:lo(o.kicker,t.kicker),heading:lo(o.heading,t.heading),deck:lo(o.deck,t.deck),stats:MX(o.stats,t.stats),formLabel:lo(o.formLabel,t.formLabel),formHeading:lo(o.formHeading,t.formHeading),formIntro:lo(o.formIntro,t.formIntro),firstNameLabel:lo(o.firstNameLabel,t.firstNameLabel),firstNamePlaceholder:lo(o.firstNamePlaceholder,t.firstNamePlaceholder),emailLabel:lo(o.emailLabel,t.emailLabel),emailPlaceholder:lo(o.emailPlaceholder,t.emailPlaceholder),interestsLabel:lo(o.interestsLabel,t.interestsLabel),interests:XR(o.interests,t.interests),frequencyLabel:lo(o.frequencyLabel,t.frequencyLabel),frequencies:DX(o.frequencies,t.frequencies),submitText:lo(o.submitText,t.submitText),finePrint:lo(o.finePrint,t.finePrint),dismissText:lo(o.dismissText,t.dismissText),emailInvalidText:lo(o.emailInvalidText,t.emailInvalidText),submitErrorText:lo(o.submitErrorText,t.submitErrorText),successHeading:lo(o.successHeading,t.successHeading),successBody:lo(o.successBody,t.successBody),keepBrowsingText:lo(o.keepBrowsingText,t.keepBrowsingText),formSlug:typeof o.formSlug=="string"?o.formSlug.trim():t.formSlug,autoOpen:r.autoOpen,autoOpenDelaySec:r.autoOpenDelaySec,trigger:r.trigger,scrollPercent:r.scrollPercent,showOn:r.showOn,showOnPages:r.showOnPages,hideAfter:r.hideAfter,hideDays:r.hideDays,formSide:Tt(FX,o.formSide,t.formSide),valuePanelOnPhone:NX(o.valuePanelOnPhone,t.valuePanelOnPhone),sectionAccent:o.sectionAccent,sectionCorners:o.sectionCorners,sectionCornerSides:o.sectionCornerSides,textStyles:jR(o)}}function HX(e,o=Math.random){for(;;){let t=`popup-${Math.floor(o()*2176782336).toString(36).padStart(6,"0")}`;if(!e.has(t))return t}}function WX(e){return{root:{props:{title:e,kind:iS}},content:[],zones:{}}}function ZR(e,o,t){return{slug:HX(o,t),title:e,kind:xb,layout:WX(e)}}function Jc(e){return e?.root?.props?.kind===iS}function eL(e){let o=new Map;return(t="")=>{let r=AR(),a=o.get(t);if(!a||a.token===null&&r!==null){let n=r||!KX().usesBridgedToken?e(r??"",t).catch(()=>[]):Promise.resolve([]);return o.set(t,{promise:n,token:r}),n}return a.promise}}var qX=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}))}),XX=eL(async(e,o)=>await je().blog?.posts(o?{siteId:o}:void 0)??[]);function ZX({value:e,onChange:o,label:t="Link",data:r,filters:a}){let n=xm(()=>sS(r,a),[r,a]),s=c(t);return Xn(QR,{label:s,icon:Xn(UX,{}),children:Xn(zX,{value:e,onChange:i=>o(i),kinds:n.kinds,rules:n.rules,filtersFor:n.filtersFor,label:s})})}function oL(){let{siteId:e,capabilities:o}=VX(),{offersCommerce:t,hasBlog:r}=o,[a,n]=hm([]),[s,i]=hm([]),[l,d]=hm([]),[f,u]=hm(null),p=YX().chrome,m=p?.products?.list,h=p?.linkFilters,I=h?void 0:p?.linkRow,w=jX(!0);JR(()=>(w.current=!0,()=>{w.current=!1}),[]),JR(()=>{let b=!0;return qX(e??void 0).then(y=>b&&w.current&&n(y)),r&&XX(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=xm(()=>({pages:a.filter(b=>!qR(b.slug)&&!Jc(b.layout)).map(b=>({slug:b.slug,title:b.label,docs:[b.layout]})),popups:a.filter(b=>b.slug===pS||Jc(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]),v=xm(()=>f?f(S.pages):null,[f,S]);return{data:S,filters:v,pages:a,offersCommerce:t,HostLinkRow:I}}function ORe({label:e,icon:o,text:t,onTextChange:r,link:a,onLinkChange:n}){let{data:s,filters:i}=oL(),l=xm(()=>sS(s,i),[s,i]),d=c(e);return Xn(QR,{label:d,icon:o,children:Xn(GX,{label:d,text:t,onTextChange:r,link:a,onLinkChange:f=>n(f),kinds:l.kinds,rules:l.rules,filtersFor:l.filtersFor})})}function tL({value:e,onChange:o,label:t="Link"}){let r=typeof e=="string"?e:"",{data:a,filters:n,pages:s,offersCommerce:i,HostLinkRow:l}=oL(),d=a.pages.map(u=>zc(u.slug)),f=i&&l&&(r==="/"||d.includes(r))?l:void 0;return $X("div",{children:[Xn(ZX,{value:r,onChange:o,label:t,data:a,filters:n}),f&&Xn(f,{value:r,onChange:o,pages:s})]})}import{UiIcon as EF}from"efficient-easel/draw/client";import{phoneKey as IL,resolveViewValue as lZ,tabletKey as yL,viewKeyAt as Zn}from"efficient-easel/draw";import{SECTION_PAD_UNIT_KEY as SL,SITE_SIDE as cZ,convertLength as dZ,isLengthUnit as fZ,isSiteSide as wL,sideLengthAt as pZ,sideValueAt as uZ,withLength as IS}from"efficient-easel/screen/lib/content/length-units";import{convertLength as JX}from"efficient-easel/screen/lib/content/length-units";var Ke={min:1e3,max:2e3,step:50,default:1600};function Ui(e){return{maxWidth:e,marginInline:"auto",width:"100%"}}var uS="--sf-site-width",Mo=`var(${uS},${Ke.default}px)`,Qc="100vw",FRe=`max-w-[${Mo}]`,BRe=`max-w-[${Ke.default}px]`;function sL(e){return typeof e!="number"||!Number.isFinite(e)?Ke.default:Math.round(Math.min(Math.max(e,Ke.min),Ke.max))}function iL(e,o){let t=Fn(e,o,"size",Ke);if(t!==null)return{[uS]:t};let r=sL(e);return r===Ke.default?{}:{[uS]:`${r}px`}}var st={min:0,max:80,step:4,default:40},mS="--sf-site-gutter",xr={min:0,max:24,step:4},rL="--sf-site-gutter-phone",QX="max-view-tablet:[--sf-site-gutter:var(--sf-site-gutter-phone)]!",eZ="max-view-wide:[&_[data-sf-line~=edge]:not([data-sf-line~=edge]_*)]:[--sf-site-gutter:var(--sf-site-gutter-phone)]",Pt=`var(${mS},${st.default}px)`,oZ=`px-[${Pt}]`;var zr={md:`min(24px,${Pt})`,sm:`min(20px,${Pt})`,frame:`min(24px,${Pt})`,tabs:`min(16px,${Pt})`},NRe=[[`max-view-desktop:px-[${zr.md}]`,"max-view-desktop:px-6"],[`max-view-desktop:px-[${zr.tabs}]`,"max-view-desktop:px-4"],[`max-[960px]:px-[${zr.frame}]`,"max-[960px]:px-6"],[`max-[900px]:px-[${zr.md}]`,"max-[900px]:px-6"],[`max-view-wide:px-[${zr.md}]`,"max-view-wide:px-6"],[`max-view-tablet:px-[${zr.sm}]`,"max-view-tablet:px-5"],[`max-view-wide:px-[${zr.sm}]`,"max-view-wide:px-5"],[`max-[640px]:px-[${zr.sm}]`,"max-[640px]:px-5"],[`view-wide:px-[${Pt}]`,"view-wide:px-10"],[`max-view-tablet:px-[min(24px,${Pt})]`,"max-view-tablet:px-6"],[`max-view-wide:-mx-[min(20px,${Pt})]`,"max-view-wide:-mx-5"],[`max-view-tablet:-mx-[min(20px,${Pt})]`,"max-view-tablet:-mx-5"],[`-mx-[${Pt}]`,"-mx-10"],[oZ,"px-10"]];var lL="max-view-wide:px-[min(20px,var(--sf-site-gutter,40px))]";function qa(e){return tZ[e??"box"]}var aL="var(--sf-pad-site,var(--sf-box-g,var(--sf-site-gutter,40px)))",nL="[--sf-edge-g:var(--sf-pad-site)]",tZ={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:aL,edge:nL,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:aL,edge:nL,frame:lL}},DRe=`mx-auto max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)] ${lL}`,cL="[--sf-box-g:var(--sf-site-gutter,40px)] [&>*]:[--sf-site-gutter:0px]";var dL="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 gm(e){return typeof e!="number"||!Number.isFinite(e)?st.default:Math.round(Math.min(Math.max(e,st.min),st.max))}function fL(e,o){let t=Fn(e,o,"spacing",st);if(t!==null)return{[mS]:t};let r=gm(e);return r===st.default?{}:{[mS]:`${r}px`}}function Im(e){return typeof e!="number"||!Number.isFinite(e)?null:Math.round(Math.min(Math.max(e,xr.min),xr.max))}function pL(e){return typeof e=="number"&&Number.isFinite(e)?sL(e):null}function uL(e,o){let t=Fn(e,o,"spacing",xr);if(t!==null)return{[rL]:t};let r=Im(e);return r===null?{}:{[rL]:`${r}px`}}function mL(e){return Im(e)===null?"":`${QX} ${eZ}`}function ym(e,o){let t=Kp(e,o,"spacing",st),r=t===null?gm(e):JX(t,_e(o),"px","mobile",xr);return Math.min(xr.max,r)}var hL=Mo,MRe=`max-w-[${hL}]`,HRe=`max-w-[min(var(--sf-page-cap,${Ke.default}px),${Ke.default}px)]`,bm="--sf-hero-cap",rZ=`var(${bm},none)`,WRe=`max-w-[${rZ}]`,aZ="--sf-hero-bleed-m",nZ="--sf-hero-bleed-w",hS="--sf-hero-chrome-x",xS="--sf-hero-chrome-cap";function Sm(e){return e===!0?{[bm]:hL,[aZ]:"auto",[nZ]:"100%",[hS]:"24px",[xS]:"none"}:{}}var gS=`calc(${Mo} - ${Pt}*2)`,$Re=`max-w-[${gS.replace(/ /g,"_")}]`;var sZ="--sf-chrome-cap",iZ=`var(${sZ},${gS})`,xL="data-page-width";function gL(e){return e==="full"?"full":null}function URe(e){return e==="full"?null:Ui(e==="content"?gS:iZ)}function zRe(e){if(e==="full")return"full";if(e==="content")return"content"}var $t={min:10,max:200,step:10};function mZ(e,o,t,r=0){let a=q(e),n=q(o);if(a===void 0&&n===void 0)return;let s=wm(t),i=l=>l===void 0?void 0:s==="px"?l:IS(l,s,r);return{paddingTop:i(a),paddingBottom:i(n)}}var wm=e=>_e(e),hZ="sf-pad-top-phone",xZ="sf-pad-bottom-phone",gZ="--sf-pad-t-phone",IZ="--sf-pad-b-phone",yZ="sf-pad-left-phone",bZ="sf-pad-right-phone",SZ="--sf-pad-l-phone",wZ="--sf-pad-r-phone",CZ="sf-pad-top-tablet",vZ="sf-pad-bottom-tablet",kZ="sf-pad-left-tablet",TZ="sf-pad-right-tablet",PZ="--sf-pad-t-tablet",EZ="--sf-pad-b-tablet",_Z="--sf-pad-l-tablet",OZ="--sf-pad-r-tablet",CL="sf-section-pad";function ed(e){let o={desktop:e.unit,tablet:e.unitTablet,phone:e.unitPhone},t=mZ(e.top,e.bottom,e.unit,e.frame),r=od({left:e.left,right:e.right},{top:e.topPhone,bottom:e.bottomPhone,left:e.leftPhone,right:e.rightPhone},{top:e.topTablet,bottom:e.bottomTablet,left:e.leftTablet,right:e.rightTablet},{top:e.top,bottom:e.bottom,left:e.left,right:e.right},o,e.frame,e.sideSpace);return t===void 0&&!r.classes.length&&!Object.keys(r.style).length?null:{className:[CL,...r.classes].join(" "),style:{...t,...r.style}}}var AZ=e=>wL(e)?e:q(e),RZ=[["top","paddingTop",[CZ,PZ],[hZ,gZ]],["bottom","paddingBottom",[vZ,EZ],[xZ,IZ]],["left","paddingLeft",[kZ,_Z],[yZ,SZ]],["right","paddingRight",[TZ,OZ],[bZ,wZ]]];function bL(e,o,t){return!fZ(o)||o==="px"?e:dZ(e,"px",o,t,{min:0,max:$t.max,step:1})}function LZ(e,o,t,r={},a=0){let n=(m,h)=>{if(h==="px")return`${m}px`;let I=IS(m,h,a);return typeof I=="number"?`${I}px`:I},s={n:e,[yL("n")]:o,[IL("n")]:t,u:r.desktop,[yL("u")]:r.tablet,[IL("u")]:r.phone},i=lZ("spacing",q(e),q(o),q(t),pi()),l=(m,h,I)=>{if(uZ(s,{side:"n"},m,"side",["side"])?.value===cZ)return qa().value;let w=pZ(s,{side:"n"},"u",m,"side");if(!w)return;let S=h!==null&&!I&&w.unit==="px"&&typeof i[h]=="number";return n(S?i[h]:w.value,w.unit)},d=l("desktop",null,!0),f={},u=l("tablet","tablet",o!==void 0);u!==void 0&&(o!==void 0||u!==d)&&(f.tablet=u);let p=l("mobile","phone",t!==void 0);return p!==void 0&&(t!==void 0||p!==d)&&(f.phone=p),f}function od(e,o,t={},r=e,a={},n=0,s="box"){let i={},l={},d=[],f=qa(s),u=!1;for(let[p,m,...h]of RZ){let I=p==="left"||p==="right"?AZ:q,w=I(e[p]),S=p==="top"||p==="bottom"?n:0;wL(w)?(i[m]=f.value,u=!0):w!==void 0&&(i[m]=wm(a.desktop)==="px"?w:IS(w,wm(a.desktop),S));let v=LZ(I(r[p]),I(t[p]),I(o[p]),a,S);for(let[b,[y,k]]of[["tablet",h[0]],["phone",h[1]]]){let F=v[b];F!==void 0&&(d.push(y),l[k]=F,F===f.value&&(u=!0))}}return u&&d.push(...f.className.split(" ")),{classes:d,style:{...i,...l}}}var Gr={top:"padTop",bottom:"padBottom",left:"padLeft",right:"padRight"},Jn="padUnit";function td(e,o){let t=e[Jn],r=(a,n,s)=>{let i=q(a)??(s===void 0?void 0:bL(s,t,"desktop")),l=q(n);return l===void 0?i:(i??0)+bL(l,t,"desktop")};return{top:r(e.padTop,e.sectionPaddingTop,o.top),bottom:r(e.padBottom,e.sectionPaddingBottom,o.bottom)}}function vL(e,o,t={}){let r=td(e,o),a={...bS(e,Gr,!0,Jn),top:r.top,bottom:r.bottom};t.noTop&&Object.assign(a,{top:0,topTablet:void 0,topPhone:void 0});let n=ed(a),s=n?n.className.split(" ").filter(i=>i!==CL):[];return{...s.length?{className:s.join(" ")}:{},style:n?.style??{}}}var ha={top:"sectionPaddingTop",bottom:"sectionPaddingBottom",left:"sectionPaddingLeft",right:"sectionPaddingRight"},yS=[...["top","bottom","left","right"].map(e=>[Gr[e],ha[e]]),[Jn,SL]].flatMap(([e,o])=>[[e,o],...["tablet","mobile"].map(t=>[Zn(e,t),Zn(o,t)])]);function bS(e,o=ha,t=!0,r=o===ha?SL:void 0){let a={};if(r){e[r]!==void 0&&(a.unit=e[r]);for(let n of["tablet","mobile"])e[Zn(r,n)]!==void 0&&(a[Zn("unit",n)]=e[Zn(r,n)])}for(let n of t?["top","bottom","left","right"]:["top","bottom"]){a[n]=e[o[n]];for(let s of["tablet","mobile"])a[Zn(n,s)]=e[Zn(o[n],s)]}return a}function kL(e){return ed(e)}function TL(e,o){let t=(r,a)=>typeof r!="number"?void 0:wm(a)==="px"?r+o:r;return ed({...e,frame:o,top:t(e.top,e.unit),bottom:t(e.bottom,e.unit),topTablet:t(e.topTablet,e.unitTablet),bottomTablet:t(e.bottomTablet,e.unitTablet),topPhone:t(e.topPhone,e.unitPhone),bottomPhone:t(e.bottomPhone,e.unitPhone)})}import{BUTTON_PAD_KEYS as Cm,buttonBorderOf as FZ,buttonFillOpacityOf as BZ,buttonPadSidesOf as NZ,viewKeyAt as DZ}from"efficient-easel/draw";import{BUTTON_PAD_UNIT_KEY as SS,lengthOf as MZ}from"efficient-easel/screen/lib/content/length-units";var HZ="px-6 py-4",WZ=4,vm=e=>{let o=new RegExp(`\\bp${e}-(?:\\[(\\d+)px\\]|(\\d+))`).exec(HZ);if(!o)throw new Error(`BUTTON_PAD_CLASSES has no p${e}`);return o[1]!==void 0?Number(o[1]):Number(o[2])*WZ},nLe={top:vm("y"),right:vm("x"),bottom:vm("y"),left:vm("x")},EL="var(--btn)";function $Z(e){let o=e.variant==="ghost",t=BZ(e.buttonFillOpacity),r=FZ(e.buttonBorder),a=be(e.buttonColor);return{fillOpacity:t??(o?0:100),border:{width:r?.width??1,color:r?.color??a??(o?"currentColor":EL)},changed:t!==void 0||r!==void 0}}function sLe(e){let o=$Z(e);if(!o.changed)return null;let t=be(e.buttonColor)??EL;return{background:o.fillOpacity===0?"transparent":o.fillOpacity===100?t:`color-mix(in srgb, ${t} ${o.fillOpacity}%, transparent)`,borderWidth:MZ(o.border.width,_e(e.buttonBorderUnit)),borderStyle:"solid",borderColor:o.border.color}}var UZ="var(--sf-button-radius, 0)";function iLe(e){let o=q(e.buttonCorners),t=Wr(e.buttonCornerSides);if(o===void 0&&t===null)return null;let r=o===void 0?UZ:Me(Math.max(0,o),e.buttonCornersUnit);return{borderRadius:t===null?r:Wn(r,t)}}function lLe(e){let o=(s,i)=>e[DZ(s,i)],t=s=>NZ({top:o(Cm.top,s),right:o(Cm.right,s),bottom:o(Cm.bottom,s),left:o(Cm.left,s)})??{},r={desktop:o(SS,"desktop"),tablet:o(SS,"tablet"),phone:o(SS,"mobile")},{classes:a,style:n}=od(t("desktop"),t("mobile"),t("tablet"),void 0,r);return Object.keys(n).length?{className:a.join(" "),style:n}:null}var PL="upper";function _L(e,o,t){let r=e&&typeof e=="object"?e:{},a=be(r.textStyle),n=a?be(o?.find(f=>f?.id===a)?.name):void 0,s=a?/^(heading|body)-(\d+)$/.exec(a):null,i=a?n||(s?t.styleName({kind:s[1],n:Number(s[2])}):a):t.noStyle,{cases:l}=t,d=be(r.case)??PL;return`${i} \xB7 ${l[d]??l[PL]}`}import{usePreviewParts as HQ}from"efficient-easel/draw/client";import{encodePartId as WQ}from"efficient-easel/draw";import{DEFAULT_EASEL_STRINGS as $Q,useEaselStrings as UQ}from"efficient-easel/strings";import{PIN_STICK_VAR as zZ,PIN_TRACK_POSITION_VAR as GZ,pinAttrs as OL,pinStickVars as jZ,readPin as vS}from"efficient-shell/format";var mLe="Stick to top",Ut={min:0,max:200,step:4,fallback:0},rd={kind:"position",unitKey:"stickTopDistanceUnit"},AL=Ii(rd),[KZ,VZ,YZ]=AL,kS="Pin while scrolling",RL="Scroll",gr={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"},Ir="stickTopScreens",TS=[Ir,"stickTopScreensTablet","stickTopScreensPhone"],PS="Screens",Qn="stickTopStop",Xa="screen",LL="Pin stops at",FL=[{value:"header",label:"Under the header"},{value:Xa,label:"Screen top"}],BL="header",NL="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 ES(e){return e===Xa?Xa:"header"}function DL(e){return e===Xa?Xa:void 0}var Za="stickAbove",ML="Stays above",HL="On: the pinned box stays on top, and the sections after it scroll under it.";function qZ(e){return e.stickAbove===!0}var WL=["stickTop","stickTopDistance","stickTopTablet","stickTopDistanceTablet","stickTopPhone","stickTopDistancePhone",...AL,...TS,Qn,Za],_S=new Set(["IntroBleed"]),$L=new Set(["CategoryBar","DocTabs","Contents"]);function XZ(e){return typeof e.stickTop=="boolean"?e.stickTop:e.sticky!==!1}var wS=e=>vS(!0,e).length,zi={any:["stickTop","stickTopTablet","stickTopPhone"].map(e=>({field:e,is:!0}))},km={all:[{not:{field:"stickTop",in:[!0,!1]}},{not:{field:"sticky",is:!1}}]};function CS(e,o="px"){let t=q(e)??Ut.fallback;return o!=="px"?Math.max(Ut.min,t):Math.min(Ut.max,Math.max(Ut.min,Math.round(t)))}function OS(e){return typeof e.stickTopTablet=="boolean"}function AS(e){return typeof e.stickTopPhone=="boolean"}function Gi(e,o={}){let t=o.intro?XZ(e):e.stickTop===!0,r=e,a=_e(r[KZ]),n=CS(e.stickTopDistance,a),s=wS(e.stickTopScreens),i=OS(e),l=i?e.stickTopTablet===!0:t,d=i?_e(r[VZ]):a,f=i?CS(e.stickTopDistanceTablet,d):n,u=i?wS(e.stickTopScreensTablet):s,p=AS(e),m=p?e.stickTopPhone===!0:l,h=p?_e(r[YZ]):d,I=p?CS(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 RS(e,o={}){let t=Gi(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&&qZ(e),s=o.track===!0&&!r&&a&&!n,i=(u,p,m,h)=>jn({tabletClass:"",tabletVar:`${u}-tablet`,phoneClass:"",phoneVar:`${u}-phone`},p,m,h).style,l={...o.atScreenTop||ES(e.stickTopStop)===Xa?{[gr.header]:"0px"}:{},[gr.distance]:Me(t.desktopDistance,t.desktopUnit),...i(gr.distance,Me(t.desktopDistance,t.desktopUnit),Me(t.tabletDistance,t.tabletUnit),Me(t.phoneDistance,t.phoneUnit))};if(s){let u=m=>m?"1":"0",p={...l,...t.desktop?{}:{[gr.on]:"0"},...i(gr.on,u(t.desktop),u(t.tablet),u(t.phone)),[gr.length]:String(t.desktopScreens),...i(gr.length,String(t.desktopScreens),String(t.tabletScreens),String(t.phoneScreens)),...ZZ(t.desktop&&t.desktopScreens===0,t.tablet&&t.tabletScreens===0,t.phone&&t.phoneScreens===0,i)};return{attrs:OL(vS(!0),"track").attrs,style:p}}let d=u=>u?"sticky":"static",f={...l,...t.desktop?{}:{[gr.position]:"static"},...i(gr.position,d(t.desktop),d(t.tablet),d(t.phone))};return{attrs:OL(vS(!0),"stick",n?{above:n}:{}).attrs,style:f}}function ZZ(e,o,t,r){let a=[[gr.stick,zZ],[gr.trackPosition,GZ]],[n,s,i]=[e,o,t].map(jZ);return Object.fromEntries(a.flatMap(([l,d])=>[...e?[[l,n[d]]]:[],...Object.entries(r(l,n[d],s[d],i[d]))]))}var JZ=["column","row","tabs","accordion"];var QZ={column:"Stacked",row:"One row",tabs:"Tabs",accordion:"Accordion"},UL={Flex:JZ,HeroGroup:["column","row"]},eJ={Flex:"row",HeroGroup:"column"},oJ={column:"flex-col",row:"flex-row",tabs:"flex-col",accordion:"flex-col"};function jr(e,o){return UL[e].includes(o)?o:eJ[e]}function xLe(e,o){return oJ[jr(e,o)]}function zL(e){return UL[e].map(o=>({label:QZ[o],value:o}))}import{viewKeyAt as LS}from"efficient-easel/screen/lib/content/view-tiers";var Pm=20,tJ=["solid","dashed","dotted"],Em=["top","right","bottom","left"],_m="sf-section-border",jL="sf-section-border-self",rJ=/^#(?:[0-9a-f]{3}|[0-9a-f]{4}|[0-9a-f]{6}|[0-9a-f]{8})$/i,aJ=e=>typeof e=="number"&&Number.isFinite(e)?`${Math.min(Pm,Math.max(0,Math.round(e)))}px`:void 0,ad={kind:"border",unitKey:"sectionBorderUnit"},KL=Ii(ad);function VL(e){let o=ad.unitKey;return{desktop:e[LS(o,"desktop")],tablet:e[LS(o,"tablet")],phone:e[LS(o,"mobile")]}}var GL=(e,o)=>o==="px"?aJ(e):typeof e=="number"&&Number.isFinite(e)?Me(Math.max(0,e),o):void 0;function Tm(e,{phone:o=!1,tablet:t=!1,unit:r}={}){if(!e||typeof e!="object")return;let a=o?"-phone":t?"-tablet":"",n={},s=_e(r);for(let i of Em){let l=GL(e[i],s)??GL(e.width,s);l!==void 0&&(n[`--sf-border-${i}-width${a}`]=l)}return typeof e.style=="string"&&tJ.includes(e.style)&&(n[`--sf-border-style${a}`]=e.style),typeof e.color=="string"&&rJ.test(e.color)&&(n[`--sf-border-color${a}`]=e.color.toLowerCase()),Object.keys(n).length?n:void 0}function FS(e){let{width:o,...t}=e;return typeof o!="number"?e:{...t,...Object.fromEntries(Em.map(r=>[r,t[r]??o]))}}function YL(e,o,t,r={}){let a=Tm(e,{unit:r.desktop}),n=Tm(t,{tablet:!0,unit:r.tablet}),s=Tm(t,{phone:!0,unit:r.tablet}),i=Tm(o,{phone:!0,unit:r.phone}),l=s||i?{...s,...i}:void 0;return a||n||l?{...a,...n,...l}:void 0}var Om="sf.gapContainer",xa={min:-32,max:64,step:2},oF={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},ji={Grid:24,Flex:24,FooterGroup:16,HeroGroup:0,Events:24,GalleryB:8,ProductGrid:2},nJ=new Set(["Events","GalleryB"]);function es(e,o,t){if(typeof o=="number"&&Number.isFinite(o)&&o>=xa.min)return o;if(typeof o=="string"){let r=oF[e]?.[o];if(typeof r=="number")return r}return typeof t=="number"&&Number.isFinite(t)?t:ji[e]}var sJ="sf-gap-overlap",iJ="--sf-gap-overlap",BS="--sf-block-gap",qL="--sf-block-gap-rem",zt={min:0,max:xa.max,step:xa.step};function nd(e){if(typeof e!="number"||!Number.isFinite(e))return null;let o=Math.min(Math.max(Math.round(e),zt.min),zt.max);return o-o%zt.step}function tF(e,o){let t=Fn(e,o,"gap",zt);if(t!==null)return{[BS]:t,[qL]:t};let r=nd(e);return r===null?{}:{[BS]:`${r}px`,[qL]:`${r/16}rem`}}var XL="--sf-block-gap-phone",ZL="--sf-block-gap-phone-rem",lJ="--sf-block-gap-on-phone",cJ="max-view-tablet:[--sf-block-gap-on-phone:var(--sf-block-gap-phone)]",dJ="max-view-wide:[&_[data-sf-line~=edge]:not([data-sf-line~=edge]_*)]:[--sf-block-gap-on-phone:var(--sf-block-gap-phone)]";function rF(e,o){let t=Fn(e,o,"gap",zt);if(t!==null)return{[XL]:t,[ZL]:t};let r=nd(e);return r===null?{}:{[XL]:`${r}px`,[ZL]:`${r/16}rem`}}function aF(e){return nd(e)===null?"":`${cJ} ${dJ}`}var JL="sf-gap-zone",QL="--sf-gap-len";function Am(e,o){return typeof o=="number"&&Number.isFinite(o)&&o>=xa.min?!0:typeof o=="string"&&typeof oF[e]?.[o]=="number"}var eF="--sf-gap-len-phone",fJ="--sf-gap-len-tablet",sd={min:0,max:xa.max,step:xa.step};function Ja(e){return typeof e=="number"&&Number.isFinite(e)&&e>=sd.min}function NS(e){return e/2}function DS(e,o,t){return Ja(t)&&!Am(e,o)}function MS(e,o,t,r,a){return Ja(o)?o:DS(e,t,a)?a:NS(es(e,t,r))}var pJ={block:"sf-gap-overlap-block",inline:"sf-gap-overlap-inline",both:"sf-gap-overlap-both"};function wLe(e,o,t,r,a){let n={...Ja(r)?{[eF]:`${r}px`}:null,...Ja(a)?{[fJ]:`${a}px`}:null};if(!Am(e,o)){let i=`${ji[e]}px`,l=nJ.has(e)?`var(--sf-card-gap, ${i})`:i;return{className:` ${JL}`,style:{[QL]:`var(${BS}, ${l})`,[eF]:`var(${lJ})`,...n}}}let s=es(e,o);return s>=0?{className:` ${JL}`,style:{[QL]:`${s}px`,...n}}:{className:` ${sJ} ${pJ[t]}`,style:{gap:"0px",[iJ]:`${-s/2}px`}}}import{parseHexColor as uJ}from"efficient-shell/format";var Jo="var(--section-bg)",id="inherit";function Kr(e,o){return e===id?Jo:e===void 0?o:Rm(e)}var mJ=/var\(\s*--(surface-2|surface|line)\s*(?=[,)])/g;function Rm(e){let o=Ur(e);return o?da(o):e.replace(mJ,"var(--site-$1")}var hJ={"var(--section-bg)":"band","var(--site-surface)":"surface","var(--site-surface-2)":"surface2"};function HS(e,o,t){let r=Kr(e,o);if(!r||r==="transparent")return t.background.toLowerCase();let a=r.trim(),n=a.startsWith("#")?uJ(a):null;if(n)return n.toLowerCase();let s=hJ[a.replace(/\s+/g,"")];return(s?t[s]:t.background).toLowerCase()}var WS="transparent";function nF(e,o){let t=Kr(e,o);return!t||t===WS?"none":t===Jo?"band":null}function sF(e,o,t=o){let r=n=>!n||n==="transparent",a=Kr(e,o);return a===t||r(a)&&r(t)}var iF=["transparent","var(--wheel-stage)","var(--surface)","var(--surface-2)"],lF={transparent:"No fill","var(--wheel-stage)":"Image stage","var(--surface)":"Panels and cards","var(--surface-2)":"Second surface"},Ki="var(--wheel-stage)",Lm="transparent",ld="inherit";function ELe(e,o){return Rm($S(e,o))}function $S(e,o){return e===ld?Ki:e==null?o:e===!0?Ki:e===!1?Lm:e}function _Le(e){return typeof e=="string"&&e!==ld?Rm(e):Ki}function OLe(e){return e!==Lm&&e!=="none"&&e!==""}function cF(e,o){return e===ld||e===!0?!0:e==null?o===Ki:!1}var os="inherit",Fm="fixed",dF=e=>typeof e!="number"&&e!==Fm,xJ="var(--sf-heading-max, 9999px)";function LLe(e,o,t,r,a){if(typeof e=="number")return Me(e,a);if(e===Fm)return o;let n=r?`var(--size-${r}, ${o})`:o;return t==="heading"?`min(${n}, ${xJ})`:n}var US={kind:"fontSize",unitKey:"titleSizeUnit"},zS={kind:"fontSize",unitKey:"bodySizeUnit"},gJ=["desktop","mobile"],fF=[US,zS].flatMap(e=>Ii(e,gJ));function GS(e){let o=(t,r)=>f_(e,t,r);return{titleDesktop:o(US,"desktop"),titleMobile:o(US,"mobile"),bodyDesktop:o(zS,"desktop"),bodyMobile:o(zS,"mobile")}}var IJ=["page","full"],pF=["full","page"],ts={full:"Full",page:"Content"},jS="inherit",yJ=e=>typeof e=="string"&&IJ.includes(e),bJ=e=>e===jS;function Bm(e,o){return bJ(e.widthMode)?{mode:"full",inherited:!0}:yJ(e.widthMode)?{mode:e.widthMode,inherited:!1}:{mode:o,inherited:o==="full"}}function MLe(e){return Bm(e,"page").mode==="full"}var Yi={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 Nm(e){return He(Yi,e)}var Be={background:"sectionBackgroundWidth",content:"sectionContentWidth",contentMax:"sectionContentMax",contentMaxUnit:"sectionContentMaxUnit"},KS={kind:"size",unitKey:Be.contentMaxUnit};function rs(e){let o=e[Be.contentMaxUnit],t=_e(o),r=e[Be.contentMax],a=t==="px"?pL(r):typeof r=="number"&&Number.isFinite(r)&&r>0?r:null,n=Vi(e[Be.content])??(a===null?null:"content");return{background:Vi(e[Be.background]),content:n,contentMax:n==="content"?a:null,contentMaxUnit:t}}function uF(e){let o=rs(e);return o.content===null&&e.fullWidth===!0?{...o,content:"full"}:o}function mF(e){return e.background!==null||e.content!==null}var hF=e=>({[Be.background]:e}),xF=e=>e==="full"?{[Be.content]:e,[Be.contentMax]:void 0,[Be.contentMaxUnit]:void 0}:{[Be.content]:e},gF=e=>({[Be.content]:"content",[Be.contentMax]:e}),VS=e=>e==="background"?{[Be.background]:void 0}:{[Be.content]:void 0,[Be.contentMax]:void 0,[Be.contentMaxUnit]:void 0},IF="siteWidths",SJ=e=>e==="full"||e==="content";function Vi(e){return SJ(e)?e:null}function yF(e,o){return{[IF]:{background:Vi(e),content:Vi(o)}}}function Dm(e){let o=e.editor?.metadata?.[IF];return{background:Vi(o?.background),content:Vi(o?.content)}}import{useEaselSession as zQ}from"efficient-easel/screen/lib/session-context";import{BOX_GAP as GQ,describedAs as en,group as Sr,iconOf as Ji,sharedStyleKinds as md}from"efficient-easel/screen/lib/document/box-fields";import{VIEW_KEY_ACCESS as XF,onDesktopWords as ss,phoneTwinFields as sw,saidAlignmentGrid as jQ,useLengthUnit as KQ}from"efficient-easel/screen/lib/document/box-fields";import{createElement as Gt}from"react";import{SettingsDefaultReset as wJ,SettingsField as CJ}from"efficient-easel/panel";import{boxFieldBuilders as vJ,describedAs as kJ,iconOf as TJ,onDesktopWords as PJ}from"efficient-easel/screen/lib/document/box-fields";import{LENGTH_KIND_UNITS as EJ}from"efficient-easel/screen/lib/content/length-units";import{IconPicker as _J,Tooltip as OJ,useShellStrings as AJ}from"efficient-shell/ui";import{RotateIcon as RJ}from"efficient-easel/icons";var Mm=e=>c(e),ga=EJ,Ao=vJ(Mm,{lengthUnits:ga}),Ho=Ao.slider,Et=Ao.select,cd=Ao.Segmented,qi=Ao.segmented,YLe=Ao.alignmentField,qLe=Ao.alignmentFields,XLe=Ao.blockAlignmentField,ZLe=Ao.blockAlignmentFields,JLe=Ao.boxJustifyField,QLe=Ao.boxAlignField,eFe=Ao.boxWrapField,bF=Ao.directionField,Hm=Ao.gapField,oFe=Ao.placementField,tFe=Ao.PlacementGridView,rFe=Ao.positionFields,Xi=Ao.sidesPaddingFields,as=Ao.lengthUnitFields;function SF(e,o){return Ho("Angle",Gt(RJ),kp.min,kp.max,kp.step,e,"\xB0",o)}var YS=Symbol("efficient-web-builder.picture-picker-row"),LJ={width:"3.5rem",height:"2.75rem",words:!0};function qS({value:e}){return AJ().iconNames[e]??e}function XS(e,o,t){return Gt(OJ,{content:t,className:"sf-pick-tip",children:Gt("span",{className:"sf-pick"},Gt("span",{className:"sf-pick-pic"},e),Gt("span",{className:"sf-pick-cap"},o))})}function FJ(e){let o=t=>t.label===void 0?Gt(qS,{value:t.value}):c(t.label);return e.map(t=>({value:t.value,...t.label===void 0?{}:{label:c(t.hint??t.label)},icon:XS(t.picture,o(t),t.hint===void 0?o(t):c(t.hint))}))}function wF(e,o){return Gt("span",{className:"sf-pick"},Gt("span",{className:"sf-pick-pic"},e),Gt("span",{className:"sf-pick-cap sf-pick-cap-closed"},o))}function ZS(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",[YS]:!0,...kJ({},{type:"radio",label:e,options:i}),options:i,render:l=>{let{value:d,onChange:f,field:u}=l,p=u?.options,m=FJ(t.filter(y=>!p||p.some(k=>k.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,v=d!=null&&d!=="",b=I===void 0?void 0:t.find(y=>y.value===I);return Gt(CJ,{label:c(e),icon:TJ(o),action:h?Gt(wJ,{words:le()?.panel,label:c(e),changed:v,detail:b?.label!==void 0?PJ(Mm,c(b.label),l.followsView):void 0,disabled:l.readOnly===!0,onReset:()=>f(void 0)}):void 0},Gt(_J,{label:c(e),value:S,options:m,onChange:f,columns:a.columns,cell:a.cell??LJ,tooltips:!1,disabled:l.readOnly===!0}))}}}import{VIEW_ABOVE as ew}from"efficient-easel/screen/lib/content/length-units";import{jsx as _,jsxs as Se}from"react/jsx-runtime";import{NoSymbolIcon as zJ}from"efficient-easel/icons";import{useId as GJ}from"react";var BJ="line",NJ=[{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"}],JS={"stripes-fine":{ink:4,period:12},"stripes-medium":{ink:8,period:18},"stripes-bold":{ink:14,period:28}},sFe=28,DJ="-45deg",MJ="color-mix(in oklab, var(--accent) 50%, var(--bg))";function HJ(e){return e!=="line"&&e!=="none"}var WJ={sm:24,md:48,lg:80},$J="md",UJ=Object.keys(WJ);function iFe(e){return Io(UJ,$J,e)}function lFe(e){return Io(NJ,BJ,e)}function cFe(e){if(!HJ(e))return null;let{ink:o,period:t}=JS[e];return`repeating-linear-gradient(${DJ}, ${MJ} 0 ${o}px, transparent ${o}px ${t}px)`}var dFe={kind:"border",unitKey:"thicknessUnit"},fFe={kind:"size",base:"%",unitKey:"lengthPctUnit"};var Wm=44,$m=28;function he({children:e}){return _("svg",{width:Wm,height:$m,viewBox:`0 0 ${Wm} ${$m}`,"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})=>_("rect",{x:e,y:o,width:t,height:r,rx:r/2,stroke:"none",opacity:a?.45:1}),Te=({x:e,y:o,w:t,h:r})=>_("rect",{x:e,y:o,width:t,height:r,rx:2,fill:"none"}),_t=({x:e,y:o})=>_("circle",{cx:e,cy:o,r:1.75,stroke:"none"}),Wo=({x1:e,y1:o,x2:t,y2:r})=>_("line",{x1:e,y1:o,x2:t,y2:r});function QS(e){let o=20/Ri,t=5,r=1,a=[],n=0,s=0,i=0;for(let[f,u]of e)n+f>Ri&&(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=($m-l)/2;return _(he,{children:a.map((f,u)=>_("rect",{x:f.x,y:d+f.y,width:f.w,height:f.h,rx:1,stroke:"none",opacity:.6},u))})}var IFe={bars:Se(he,{children:[_(M,{x:8,y:14,w:5,t:10}),_(M,{x:16,y:8,w:5,t:16}),_(M,{x:24,y:18,w:5,t:6}),_(M,{x:32,y:11,w:5,t:13})]}),line:Se(he,{children:[_("polyline",{points:"6,22 14,15 22,18 30,8 38,11",fill:"none",strokeWidth:1.75,strokeLinejoin:"round"}),_(Wo,{x1:6,y1:25,x2:38,y2:25})]}),donut:Se(he,{children:[_("circle",{cx:22,cy:14,r:9,fill:"none",strokeWidth:5,opacity:.45}),_("circle",{cx:22,cy:14,r:9,fill:"none",strokeWidth:5,strokeDasharray:"34 57",transform:"rotate(-90 22 14)"})]})};function yFe(e){if(e==="none")return _("span",{style:{display:"flex",width:Wm,height:$m,alignItems:"center",justifyContent:"center"},children:_(zJ,{size:20})});if(e==="line")return _(he,{children:_(Wo,{x1:4,y1:14,x2:40,y2:14})});let{ink:o,period:t}=JS[e],r=.4,a=[];for(let n=-12;n<Wm;n+=t*r)a.push(_("polygon",{points:`${n},22 ${n+o*r},22 ${n+o*r+10},6 ${n+10},6`,stroke:"none"},n));return _(jJ,{children:a})}function jJ({children:e}){let o=`sf-div-${GJ().replace(/[^\w-]/g,"")}`;return Se(he,{children:[_("clipPath",{id:o,children:_("rect",{x:4,y:6,width:36,height:16,rx:2})}),_("g",{clipPath:`url(#${o})`,children:e})]})}var Um=({x:e,y:o,w:t,h:r})=>_("rect",{x:e,y:o,width:t,height:r,rx:2,stroke:"none",opacity:.3}),bFe={tabs:Se(he,{children:[_(M,{x:5,y:10,w:9}),_(M,{x:18,y:10,w:9,faint:!0}),_(M,{x:31,y:10,w:9,faint:!0}),_(Wo,{x1:4,y1:17,x2:40,y2:17}),_(M,{x:4,y:16,w:11,t:2})]}),largeTabs:Se(he,{children:[_(Wo,{x1:4,y1:5,x2:40,y2:5}),_(_t,{x:7,y:10}),_(M,{x:11,y:9,w:16}),_(M,{x:31,y:9,w:9,faint:!0}),_(Wo,{x1:4,y1:14,x2:40,y2:14}),_(_t,{x:7,y:19}),_(M,{x:11,y:18,w:13,faint:!0}),_(M,{x:31,y:18,w:9,faint:!0}),_(Wo,{x1:4,y1:23,x2:40,y2:23})]})},SFe={card:Se(he,{children:[_(Te,{x:10,y:3,w:24,h:22}),_(Um,{x:12,y:5,w:20,h:10}),_(M,{x:13,y:18,w:16}),_(M,{x:13,y:21,w:11,t:1.5,faint:!0})]}),cover:Se(he,{children:[_(Um,{x:10,y:3,w:24,h:22}),_(Te,{x:10,y:3,w:24,h:22}),_(M,{x:13,y:17,w:16}),_(M,{x:13,y:21,w:11,t:1.5})]})},wFe={cards:Se(he,{children:[_(Te,{x:3,y:5,w:11,h:18}),_(Te,{x:17,y:5,w:11,h:18}),_(Te,{x:31,y:5,w:11,h:18}),_(M,{x:5,y:9,w:7}),_(M,{x:19,y:9,w:7}),_(M,{x:33,y:9,w:7}),_(M,{x:5,y:13,w:5,t:1.5,faint:!0}),_(M,{x:19,y:13,w:5,t:1.5,faint:!0}),_(M,{x:33,y:13,w:5,t:1.5,faint:!0})]}),"label-only":Se(he,{children:[_("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"}),_(M,{x:5,y:18,w:7}),_(M,{x:19,y:18,w:7}),_(M,{x:33,y:18,w:7})]})},CFe={table:Se(he,{children:[_(Te,{x:3,y:5,w:38,h:18}),_(Wo,{x1:15.7,y1:5,x2:15.7,y2:23}),_(Wo,{x1:28.3,y1:5,x2:28.3,y2:23}),_("path",{d:"M15.7 5v18M28.3 5v18",fill:"none",strokeWidth:2.5}),_(M,{x:6,y:9,w:6,t:3}),_(M,{x:19,y:9,w:6,t:3}),_(M,{x:31,y:9,w:6,t:3}),_(M,{x:6,y:18,w:7,t:1.5,faint:!0}),_(M,{x:19,y:18,w:7,t:1.5,faint:!0}),_(M,{x:31,y:18,w:7,t:1.5,faint:!0})]}),list:Se(he,{children:[_(Wo,{x1:3,y1:7,x2:13,y2:7}),_(Wo,{x1:17,y1:7,x2:27,y2:7}),_(Wo,{x1:31,y1:7,x2:41,y2:7}),_(M,{x:3,y:11,w:6,t:3}),_(M,{x:17,y:11,w:6,t:3}),_(M,{x:31,y:11,w:6,t:3}),_(M,{x:3,y:17,w:8,t:1.5,faint:!0}),_(M,{x:17,y:17,w:8,t:1.5,faint:!0}),_(M,{x:31,y:17,w:8,t:1.5,faint:!0})]})},vFe={plain:Se(he,{children:[_(M,{x:5,y:12,w:9,t:4}),_(M,{x:18,y:12,w:9,t:4}),_(M,{x:31,y:12,w:9,t:4})]}),cards:Se(he,{children:[_(Te,{x:3,y:7,w:11,h:14}),_(Te,{x:17,y:7,w:11,h:14}),_(Te,{x:31,y:7,w:11,h:14}),_(M,{x:5,y:13,w:7}),_(M,{x:19,y:13,w:7}),_(M,{x:33,y:13,w:7})]}),marks:Se(he,{children:[_(M,{x:8,y:12,w:6,t:4}),_(M,{x:17,y:12,w:6,t:4}),_(M,{x:26,y:12,w:6,t:4}),_(M,{x:35,y:12,w:3,t:4})]}),chips:Se(he,{children:[_(Te,{x:3,y:9,w:18,h:10}),_(Te,{x:23,y:9,w:18,h:10}),_(_t,{x:7,y:14}),_(M,{x:10,y:13,w:8}),_(_t,{x:27,y:14}),_(M,{x:30,y:13,w:8})]})},kFe={overlay:Se(he,{children:[_(Um,{x:4,y:3,w:36,h:22}),_(Te,{x:4,y:3,w:36,h:22}),_(M,{x:8,y:15,w:18,t:3}),_(M,{x:8,y:20,w:12})]}),stacked:Se(he,{children:[_(M,{x:4,y:3,w:18,t:3}),_(M,{x:4,y:8,w:12}),_(Um,{x:4,y:13,w:36,h:12}),_(Te,{x:4,y:13,w:36,h:12})]})},TFe={split:Se(he,{children:[_(M,{x:4,y:6,w:12,t:3}),_(M,{x:4,y:11,w:9,faint:!0}),_(Wo,{x1:20,y1:4,x2:20,y2:24}),_(M,{x:24,y:6,w:16}),_(M,{x:24,y:10,w:11,faint:!0}),_(M,{x:24,y:17,w:16}),_(M,{x:24,y:21,w:11,faint:!0})]}),spine:Se(he,{children:[_(Wo,{x1:9,y1:4,x2:9,y2:24}),_(_t,{x:9,y:8}),_(M,{x:14,y:7,w:24}),_(_t,{x:9,y:14}),_(M,{x:14,y:13,w:20}),_(_t,{x:9,y:20}),_(M,{x:14,y:19,w:24})]}),alternating:Se(he,{children:[_(Wo,{x1:22,y1:4,x2:22,y2:24}),_(_t,{x:22,y:8}),_(M,{x:4,y:7,w:14}),_(_t,{x:22,y:14}),_(M,{x:26,y:13,w:14}),_(_t,{x:22,y:20}),_(M,{x:4,y:19,w:14})]}),track:Se(he,{children:[_(Wo,{x1:4,y1:12,x2:40,y2:12}),_(_t,{x:8,y:12}),_(_t,{x:22,y:12}),_(_t,{x:36,y:12}),_(M,{x:4,y:17,w:8}),_(M,{x:18,y:17,w:8}),_(M,{x:32,y:17,w:8}),_(M,{x:4,y:21,w:6,faint:!0}),_(M,{x:18,y:21,w:6,faint:!0}),_(M,{x:32,y:21,w:6,faint:!0})]})},PFe={standard:Se(he,{children:[_(M,{x:4,y:5,w:10,t:1.5,faint:!0}),_(M,{x:4,y:10,w:28,t:4}),_(M,{x:4,y:18,w:34,faint:!0}),_(M,{x:4,y:22,w:24,faint:!0})]}),editorial:Se(he,{children:[_(M,{x:4,y:5,w:5,t:1.5,faint:!0}),_(M,{x:4,y:10,w:20,t:5}),_(M,{x:28,y:11,w:12,faint:!0}),_(M,{x:28,y:15,w:9,faint:!0}),_(Wo,{x1:4,y1:22,x2:40,y2:22})]}),simple:Se(he,{children:[_(M,{x:4,y:8,w:10,t:1.5,faint:!0}),_(M,{x:4,y:13,w:26,t:4})]}),statement:Se(he,{children:[_(M,{x:4,y:6,w:36,t:7}),_(M,{x:4,y:16,w:24,t:7})]}),natural:Se(he,{children:[_(M,{x:4,y:8,w:22,t:3}),_(M,{x:4,y:15,w:34,faint:!0}),_(M,{x:4,y:19,w:28,faint:!0})]}),essay:Se(he,{children:[_(M,{x:4,y:5,w:24,t:4}),_(M,{x:4,y:13,w:36,faint:!0}),_(M,{x:4,y:17,w:36,faint:!0}),_(M,{x:4,y:21,w:30,faint:!0})]})},EFe={"spec-card":Se(he,{children:[_(Te,{x:4,y:3,w:36,h:22}),_(M,{x:8,y:7,w:14}),_(Te,{x:8,y:12,w:8,h:9}),_(Te,{x:18,y:12,w:8,h:9}),_(Te,{x:28,y:12,w:8,h:9})]}),fitment:Se(he,{children:[_(Te,{x:4,y:4,w:10,h:5}),_(Te,{x:16,y:4,w:10,h:5}),_(Te,{x:28,y:4,w:10,h:5}),_(M,{x:4,y:14,w:34,faint:!0}),_(M,{x:4,y:18,w:34,faint:!0}),_(M,{x:4,y:22,w:34,faint:!0})]}),portal:Se(he,{children:[_(Te,{x:4,y:3,w:36,h:22}),_(M,{x:8,y:7,w:10,t:4}),_(M,{x:8,y:14,w:16,faint:!0}),_(M,{x:26,y:18,w:10,t:4})]}),kanban:Se(he,{children:[_(Te,{x:4,y:3,w:10,h:22}),_(Te,{x:17,y:3,w:10,h:22}),_(Te,{x:30,y:3,w:10,h:22}),_(M,{x:6,y:6,w:6,t:4}),_(M,{x:6,y:12,w:6,t:4}),_(M,{x:19,y:6,w:6,t:4}),_(M,{x:32,y:6,w:6,t:4}),_(M,{x:32,y:12,w:6,t:4})]}),claims:Se(he,{children:[_(M,{x:4,y:5,w:12,faint:!0}),_(M,{x:20,y:4,w:18,t:4}),_(M,{x:4,y:12,w:12,faint:!0}),_(M,{x:20,y:11,w:10,t:4}),_(M,{x:4,y:19,w:12,faint:!0}),_(M,{x:20,y:18,w:14,t:4})]}),browser:Se(he,{children:[_(Te,{x:4,y:3,w:36,h:22}),_(Wo,{x1:4,y1:8,x2:40,y2:8}),_(M,{x:8,y:11,w:28,t:5,faint:!0}),_(Te,{x:8,y:18,w:8,h:4}),_(Te,{x:18,y:18,w:8,h:4}),_(Te,{x:28,y:18,w:8,h:4})]}),terminal:Se(he,{children:[_(Te,{x:4,y:3,w:36,h:22}),_("polyline",{points:"8,9 11,11 8,13",fill:"none"}),_(M,{x:13,y:10,w:14}),_(M,{x:8,y:16,w:22,faint:!0}),_(M,{x:8,y:20,w:16,faint:!0})]})},CF={width:"5.75rem",height:"3.75rem",words:!0},_Fe={width:"8.5rem",height:"3.75rem",words:!0},OFe={columns:Se(he,{children:[_(Te,{x:3,y:4,w:11,h:8}),_(Te,{x:17,y:4,w:11,h:8}),_(Te,{x:31,y:4,w:11,h:8}),_(M,{x:3,y:16,w:9}),_(M,{x:17,y:16,w:9}),_(M,{x:31,y:16,w:9}),_(M,{x:3,y:20,w:7,t:1.5,faint:!0}),_(M,{x:17,y:20,w:7,t:1.5,faint:!0}),_(M,{x:31,y:20,w:7,t:1.5,faint:!0})]}),"rows-left":Se(he,{children:[_(Te,{x:6,y:3,w:14,h:9}),_(M,{x:24,y:5,w:14}),_(M,{x:24,y:9,w:10,t:1.5,faint:!0}),_(Te,{x:24,y:16,w:14,h:9}),_(M,{x:6,y:18,w:14}),_(M,{x:6,y:22,w:10,t:1.5,faint:!0})]}),"rows-right":Se(he,{children:[_(Te,{x:24,y:3,w:14,h:9}),_(M,{x:6,y:5,w:14}),_(M,{x:6,y:9,w:10,t:1.5,faint:!0}),_(Te,{x:6,y:16,w:14,h:9}),_(M,{x:24,y:18,w:14}),_(M,{x:24,y:22,w:10,t:1.5,faint:!0})]})};import{TEXT_CONTROL_KINDS as CNe,SCALAR_TEXT_CONTROLS as vNe}from"efficient-easel/draw";function is(e,o){return c("{value} from {from}",{value:e,from:o})}function VQ(){let{blockGap:e}=ce();return e===null?c("this container's own spacing"):is(`${e}px`,c("Styles"))}function YQ({inherited:e,onReset:o,label:t}){return O(Qo,{words:le()?.panel,label:c(t),changed:!e,detail:VQ(),onReset:o})}function qQ(e){return Hm({...GQ,builtIn:ji[e],resolve:(o,t)=>es(e,o,t?.siteGap),action:(o,t)=>O(YQ,{inherited:!Am(e,o),onReset:()=>t(void 0),label:"Gap"}),mark:{[Om]:e}})}function XQ(e){return io(Ot("mobile",{[Om]:e,type:"custom",render:o=>O(QQ,{container:e,...o})}),ZF)}function ZQ(e){return io(Ot("tablet",{[Om]:e,type:"custom",render:o=>O(JQ,{container:e,...o})}),ZF)}var ZF={not:{field:"gap",in:Array.from({length:-xa.min},(e,o)=>xa.min+o)}};function hNe(e){return{gap:Ot("desktop",qQ(e)),[uw("gap")]:ZQ(e),[Zi("gap")]:XQ(e)}}function JQ({container:e,...o}){let[t]=yr("gap"),{siteGap:r}=o.field??{},a=Math.max(sd.min,es(e,t,r));return Hm({...sd,builtIn:a,resolve:n=>Ja(n)?n:a,action:(n,s)=>O(Qo,{words:le()?.panel,label:c("Gap"),changed:Ja(n),detail:ss(i=>c(i),`${a}px`),onReset:()=>s(void 0)})}).render(o)}function QQ({container:e,...o}){let[t]=yr("gap"),{siteGap:r,siteGapPhone:a}=o.field??{},n=MS(e,void 0,t,r,a);return Hm({...sd,builtIn:n,resolve:s=>MS(e,s,t,r,a),action:(s,i)=>O(Qo,{words:le()?.panel,label:c("Gap"),changed:Ja(s),detail:is(`${n}px`,DS(e,t,a)?c("Styles"):c("Desktop")),onReset:()=>i(void 0)})}).render(o)}function xNe(e){return bF({offered:zL(e),fallback:jr(e,void 0),resolve:o=>jr(e,o)})}function gNe(e,o){return J_(o?oO(e,o):[],o)}function eee({inherited:e,onReset:o,label:t}){return O(Qo,{words:le()?.panel,label:c(t),changed:!e,detail:is(c("Full"),c("the page")),onReset:o})}function ls({value:e,onChange:o,label:t,placeholder:r,hint:a,multiline:n,hideable:s=!0,markup:i=!0}){let{text:l,hidden:d}=on(e),f=dd(null),u=dd(null),p=v=>o(s?{text:v,hidden:d}:v),m=()=>o({text:l,hidden:!d}),h=s&&d,I=DF(),w=a?nee(a)?O("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 O(wo,{label:c(t),icon:O(gQ,{}),htmlFor:I,className:h?"is-hidden":void 0,hint:w,action:s?O(pw,{content:S,children:O(YF,{"aria-pressed":d,"aria-label":S,onClick:m,children:d?O(EF,{name:"eye-off",size:14}):O(EF,{name:"eye",size:14})})}):void 0,children:Ia("div",{className:"sf-copybox",children:[i&&O(Hb,{target:n?u:f,value:l,onChange:p}),n?O("textarea",{id:I,ref:u,value:l,placeholder:r===void 0?void 0:c(r),onChange:v=>p(v.target.value)}):O("input",{id:I,ref:f,type:"text",value:l,placeholder:r===void 0?void 0:c(r),onChange:v=>p(v.target.value)})]})})}function INe(e,o){return{...e,[QJ]:o}}function yNe(e){let o=e[ya];if(!o)throw new Error("withOffPage: the field holds no authored text");return{...e,[ya]:{...o,offPage:!0}}}function Vm(e){return!e||typeof e!="object"?!1:e[ya]?.offPage===!0}function bNe(e){if(!e[ya])throw new Error("withPanelOnly: the field holds no authored text");return{...e,[$b]:!0}}function JF(e){return Hi(e)}function SNe(e){let o=e[ya];if(!o)throw new Error("withIdentifier: the field holds no authored text");return{...e,[ya]:{...o,identifier:!0}}}function kNe(e,o){if(!e[ya])throw new Error("inOwnBox: the field holds no authored text");let{[NQ]:t,...r}=e;return{...r,[Wb]:!0,render:o}}var oee=new Set(MQ),jm={type:"radio",options:[{value:!0},{value:!1}]},QF={text:{type:"object",objectFields:{text:{type:"text"},hidden:jm}},textarea:{type:"object",objectFields:{text:{type:"textarea"},hidden:jm}},plainText:{type:"text"},copyText:{type:"text"},plainTextarea:{type:"textarea"},textList:{type:"array",arrayFields:{text:{type:"text"}}}},cs=(e,o)=>{let t=en({...o,[ya]:e},{...QF[e.control],label:e.label});if(!oee.has(e.control))return t;let r=o.render;return{...qF(t,"authored-copy"),render:a=>O(tR,{name:a.name,children:r(a)})}},TNe="Everything else on this block comes from the linked post. Unlink it to edit by hand.",tee={field:"source.slug",set:!0},PNe={not:tee},ree="Select a word, then press the highlighter.",aee=new Set([ree]),nee=e=>aee.has(e);function ENe(e,o,t){return cs({control:"text",label:e,placeholder:o,hint:t},{type:"custom",render:({value:r,onChange:a})=>O(ls,{value:r,onChange:a,label:e,placeholder:o,hint:t})})}function _Ne(e,o,t){return cs({control:"textarea",label:e,placeholder:o,hint:t},{type:"custom",render:({value:r,onChange:a})=>O(ls,{value:r,onChange:a,label:e,placeholder:o,hint:t,multiline:!0})})}function ONe(e,o,t){return cs({control:"plainText",label:e,placeholder:o,hint:t},{type:"custom",render:({value:r,onChange:a})=>O(ls,{value:r,onChange:a,label:e,placeholder:o,hint:t,hideable:!1,markup:!1})})}function ANe(e,o,t){return cs({control:"copyText",label:e,placeholder:o,hint:t},{type:"custom",render:({value:r,onChange:a})=>O(ls,{value:r,onChange:a,label:e,placeholder:o,hint:t,hideable:!1})})}function RNe(e){return{type:"custom",[ZJ]:{label:e},...en({},{type:"text",label:e}),render:({value:o,onChange:t})=>O(tL,{value:XJ(o),onChange:t,label:e})}}function LNe(e,o,t){return cs({control:"plainTextarea",label:e,placeholder:o,hint:t},{type:"custom",render:({value:r,onChange:a})=>O(ls,{value:r,onChange:a,label:e,placeholder:o,hint:t,multiline:!0,hideable:!1})})}var eB={Design:eQ,Animation:tQ};function FNe(e,o){return{type:"custom",render:()=>O(see,{text:e,values:o})}}function see({text:e,values:o}){return O("p",{className:"sf-note",children:c(e,o)})}function oB(e){return br(e)!==null&&e?.tabs!==void 0}var _F=new Map;function Ym(e,o){let t=`${e}\0${o?o.join(""):""}`,r=_F.get(t)??{type:"custom",tabs:o,[MF]:{label:e,level:1},bucket:e,marker:!0,render:()=>O(ba,{})};return _F.set(t,r),r}var OF=new Map;function hw(e){let o=OF.get(e)??{type:"custom",[MF]:{label:e,level:1},designGroup:e,marker:!0,...e==="Content"?{}:{fold:e},render:()=>O(ba,{})};return OF.set(e,o),o}function iee(e){let o=e;return o?.marker===!0&&typeof o.fold=="string"?o.fold:null}function tB(e,o){return iee(e)===o?e:{...e,marker:!0,fold:o,render:()=>O(ba,{})}}function rB(e){let o=e;if(o.marker===!0&&o.fold===void 0)return e;let{fold:t,...r}=e;return{...r,marker:!0,render:()=>O(ba,{})}}function xw({title:e,children:o}){let[t,r]=fd(()=>!ow.has(e));return O(bQ,{title:e,open:t,onToggle:a=>{r(a),a?ow.delete(e):ow.add(e)},children:o})}var ow=new Set;function lee({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 Ia("div",{className:"sf-swatches",children:[e.map(i=>{let l=r?.[i]?c(r[i]):i;return O(pw,{content:l,children:O(EQ,{color:i,selected:o.toLowerCase()===i.toLowerCase(),onClick:()=>t(i),"aria-label":l})},i)}),O("span",{className:"sf-swatch-hex",children:s})]})}function BNe(e,o,t=!1){return{type:"custom",render:({value:r,onChange:a})=>O(cee,{label:e,builtIn:o,followsBand:t,value:r,onChange:a})}}function cee({label:e,builtIn:o,followsBand:t,value:r,onChange:a}){let n=typeof r=="string"?r:void 0,{colors:s,n:i}=Sw(),l={background:s.background,surface:s.surface,surface2:Vp(s),band:k_(s)},d=t?Jo:o,f=sF(n,o,d),u=HS(void 0,d,l),p=t?id:void 0,m=d===Jo?c("the theme's section background"):c("Theme {n} background",{n:i}),h=dee(n,o,s,i,l,a),I=is(u.toUpperCase(),m),w=Ur(n),S=w?Li(w,s,i):null;return S?O(mt,{label:c(e),icon:O(vF,{}),value:S.hex,caption:S.words,onChange:a,changed:!0,onReset:()=>a(p),resetTo:I,choices:h}):O(Vc,{label:c(e),icon:O(vF,{}),value:f?"":HS(n,o,l),inherited:u,resetTo:I,onChange:a,onReset:()=>a(p),choices:h})}function dee(e,o,t,r,a,n){let s=nF(e,o);return[{label:c("No fill"),color:"",selected:s==="none",onPick:()=>n(WS)},{label:`${c("Section band")} \xB7 ${a.band.toUpperCase()}`,color:a.band,selected:s==="band",onPick:()=>n(Jo)},...bw(Ur(e)??"",t,r,n)]}function fee(e,o){return{type:"custom",render:({value:t,onChange:r})=>{let a=t,n=cF(a,o);return O(wo,{label:c(e),icon:O(aw,{}),changed:!n,action:O(Qo,{words:le()?.panel,label:c(e),changed:!n,detail:c("the theme's image stage"),onReset:()=>r(ld)}),children:lee({swatches:iF,current:n?Ki:$S(a,o),onPick:r,names:lF})})}}}function Qi(e=t=>t,o){return md({_gSectionTheme:Sr(V_),sectionAccent:{type:"custom",render:({value:t,onChange:r})=>O(_R,{value:e(t),onChange:r,followLabel:o})}})}function el(e){let o=So(),t=ca(e?.view),r=s=>mw(e.valueKey,s),a=e.numbersIn??(s=>q(o[r(s)])!==void 0),n=e.followsView??Tee(t,a);return KQ({props:{value:void 0,onChange:()=>{},field:{}},row:e.valueKey?e.row:void 0,table:ga,label:c(e.label),grid:e.grid,hasOwn:a(t),view:{tier:t,numbersIn:a,followsView:n},convertTo:e.convertTo??(s=>{let i=q(o[r(t)]);return i===void 0?{}:{[r(t)]:s(i)}})})}function xt({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}){let h=i!==void 0&&Number.isFinite(i)&&i>=e&&i<=o;return O("div",{className:h?"sf-slider has-notch":"sf-slider",style:h?{"--sf-notch":(i-e)/(o-e)}:void 0,children:O(BQ,{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}:{},showInput:s,label:l===void 0?void 0:c(l),disabled:d,size:"sm",boxSize:"md",className:"sf-slider-track",onChange:I=>{I===null?p?.():I!==r&&a(I)}})})}function pee(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 O(wo,{label:c(e),icon:d?Ji(d):void 0,value:h?l||n===void 0?void 0:c(n):`${m}${f}`,changed:!h,action:l?iw(l,{changed:!h,onReset:()=>p(null)}):O(Qo,{words:le()?.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}):xt({min:t,max:r,step:a,value:m??t,readout:!1,ariaLabel:e,onChange:p})})}}}var pd="Corners",uee={kind:"radius"};function gw(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 O(wo,{label:c(pd),icon:O(WF,{}),changed:n,action:iw(e.mark,{changed:n,onReset:()=>r(null)}),hint:e.hint,children:O(mee,{tier:e,px:a,name:o.name,onRadius:r})})}}}function yr(e){let o=ns();return[o?.values?.[e],t=>o?.onChange(e,t)]}function hd(){return qF({type:"custom",render:()=>O(DQ,{})},"always")}function pr(){let e=ns();return o=>e?.onChangeMany(o)}function mee({tier:e,px:o,name:t,onRadius:r}){let a=e.useFollowed(),[n,s]=yr(e.sidesKey),i=pr(),l=el({row:e.row??uee,label:pd,grid:{min:tt,max:Ma,step:e.step??1},valueKey:t??"",view:"desktop"}),d=Wr(n)??[..._u];return O(_Q,{label:c(pd),value:d,corners:P1,onChange:f=>{let u=Wr(f)??[];s(u.length===_u.length?null:u)},radius:o,onRadiusChange:l&&t?f=>i({[t]:f,...l.unitPatch(f===null)}):r,radiusMin:l?.grid.min??tt,radiusMax:l?.grid.max??Ma,radiusStep:l?.grid.step??e.step??1,radiusPlaceholder:l&&l.unit!=="px"?"\u2013":String(a),...l?{radiusUnit:l.unit,units:l.units}:{}})}function aB(e,o){return as(e,o)}function nB(){return hd()}function hee({label:e,changed:o=!1,onReset:t=()=>{}}){let{cornerRadiusPx:r}=ce(),a=typeof r=="number"?`${r}px`:c("not set");return O(Qo,{words:le()?.panel,label:c(e),changed:o,detail:r==null?c("the built-in corners"):is(a,c("Styles")),onReset:t})}function xee(){let{cornerRadiusPx:e}=ce();return typeof e=="number"?e:tt}function gee(){return gw({sidesKey:"sectionCornerSides",row:Dc,useFollowed:xee,mark:O(hee,{label:pd}),hint:Iee})}var Iee="Follows Styles \u25B8 Basics \u25B8 Corners until you set a number here.";function ol(){return md({_gShape:Sr("Shape"),sectionCorners:gee(),...aB(Dc,"sectionCorners"),sectionCornerSides:nB(),...pa("sectionBorder",kee),...as(ad,"sectionBorder",{tablet:!0,phone:!0})})}var yee=()=>({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 bee(e){let o=Object.fromEntries(Object.entries(e).filter(([,t])=>t!=null&&t!==""));return Object.keys(o).length?o:void 0}function See(){let e;try{let o=ko(ce().theme);e=o.themes[o.selected]?.line}catch{e=void 0}return e||h_.line}function wee({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]=fd(()=>a?kQ(l,s):!1),u=yee(),p=m=>bee(a&&n?m:{width:m.width,color:m.color,...n?{style:m.style}:{}});return O(wo,{label:c("Border"),icon:O(rQ,{}),action:a?O(CQ,{each:d,label:c("Each side"),onChange:f}):void 0,children:O(wQ,{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??Pm,...i?{step:i.grid.step,units:i.units}:{}})})}function Cee({value:e,onChange:o,view:t}){let[r]=yr("sectionBorder"),[a]=yr(uw("sectionBorder")),n=See(),s=p=>p&&typeof p=="object"?p:{},i=t==="phone"?{...FS(s(r)),...FS(s(a))}:t==="tablet"?s(r):{},l=So(),d=pr(),f=ke("sectionBorder",t),u=el({row:ad,label:"Border",grid:{min:0,max:Pm,step:1},valueKey:"sectionBorder",view:t,numbersIn:p=>tw(l[mw("sectionBorder",p)]),convertTo:p=>{let m=s(l[f]);return tw(m)?{[f]:vee(m,p)}:{}}});return O(wee,{value:e,length:u,onChange:u?p=>d({[f]:p,...u.unitPatch(!tw(p))}):o,placeholder:{sides:vQ(i),style:i.style??"solid",color:i.color||n},presets:[n],above:i})}var sB=["width",...Em];function tw(e){if(!e||typeof e!="object")return!1;let o=e;return sB.some(t=>q(o[t])!==void 0)}function vee(e,o){let t={...e};for(let r of sB){let a=q(t[r]);a!==void 0&&(t[r]=o(a))}return t}function kee(e){return{type:"custom",render:({value:o,onChange:t})=>O(Cee,{value:o,onChange:t,view:e})}}function Tee(e,o){let t=ew[e];for(;t&&ew[t]!==null&&!o(t);)t=ew[t];return t??e}function NNe(e){return{type:"custom",render:()=>O(Pee,{partKey:e})}}function Pee({partKey:e}){let[o]=yr("id"),[t]=yr("_partStyles"),{textStyles:r}=ce(),a=UQ(),n=null;try{n=HQ().select}catch{n=null}let s=t&&typeof t=="object"?t[e]:void 0,i=Array.isArray(r)?r:null;return O(yQ,{name:c("Text"),preview:_L(s,i,{noStyle:c("No style"),styleName:a.textStyles.styleName,cases:(a.copy.panel??$Q.copy.panel).cases}),onOpen:()=>{n&&typeof o=="string"&&n(WQ(o,e))}})}function iB(e){let{cornerRadiusPx:o}=ce(),t=typeof o=="number"?o:e,r=null;try{let{appState:n,selectedItem:s}=Km(l=>l),i=s?.props?.id?String(s.props.id):void 0;r=i?DA(n?.data,i)?.props??null:null}catch{r=null}if(!r)return t;let a=r.sectionCorners;return nb(a)?a:t}function Eee({label:e,changed:o=!1,onReset:t=()=>{}}){let r=iB(tt);return O(Qo,{words:le()?.panel,label:c(e),changed:o,detail:is(`${r}px`,c("the section")),onReset:t})}function _ee(){return O(ba,{children:c("Follows the section's Corners until you set a number here.")})}function Oee(){return gw({sidesKey:"cardCornerSides",row:Mc,useFollowed:()=>iB(tt),mark:O(Eee,{label:pd}),hint:O(_ee,{})})}function Aee(){return{type:"custom",render:()=>O(B1,{})}}function lB(){return{_gShape:Sr("Shape"),cardCorners:Oee(),...aB(Mc,"cardCorners"),cardCornerSides:nB(),cardCornersApplyAll:Aee()}}function Ree(){return en({type:"custom",[YS]:!0,render:e=>O(Fee,{...e})},{type:"select",label:On,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 Lee(e,o){let t=dy(e);if(t!=="custom")return c(cy.find(a=>a.value===t)?.label??"");let r=VF(Rp(e,o),o);return r?[...r,100-r.reduce((a,n)=>a+n,0)].join(" / "):c("Custom")}function Fee(e){let{value:o,onChange:t}=e,[r]=yr("content"),a=Array.isArray(r)?r.length:0,n="follows"in e,s=o!=null,i=s?o:n?e.follows:void 0,l=dy(i),d=a>=2&&a<=TF,f=()=>[...RQ[a]??[]],u=dd(null),p=S=>{let v=u.current;v&&JSON.stringify(S)===JSON.stringify(v.shares)?t(v.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:TF}),I=s&&(n||o!=="content"),w=FQ().widths.hint(a,AQ);return O(wo,{label:c(On),icon:O(lw,{}),changed:I,hint:l!=="custom"?void 0:d?w:h,action:O(Qo,{words:le()?.panel,label:c(On),changed:I,disabled:e.readOnly===!0,detail:n?ss(S=>c(S),Lee(e.follows,a),e.followsView):c("Fit content"),onReset:()=>t(void 0)}),children:Ia("div",{className:"sf-share-row",children:[O("div",{className:"sf-share-pick",children:O(KF,{label:c(On),value:l,options:cy.map(S=>({value:S.value,label:S.value==="custom"&&!d?h:c(S.label),icon:XS(O("span",{className:"sf-gallery-pic sf-share-pic",children:cB(S.weights).map((v,b)=>O("i",{style:{gridColumn:`span ${v}`}},b))}),c(S.label),S.value==="custom"&&!d?h:c(S.label))})),onChange:m,columns:3,cell:dB,tooltips:!1,disabled:e.readOnly===!0})}),l==="custom"&&d?O("div",{onFocus:()=>{u.current={value:o,shares:VF(Rp(i,a),a)}},onBlur:()=>{u.current=null},children:O(LQ,{label:c(On),count:a,value:Rp(i,a),onChange:p,readOnly:e.readOnly===!0})}):null]})})}function cB(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 DNe(){return Et(HE,O(dQ,{}),hy,hy[0].value)}function MNe(){return Ot("mobile",ZS(On,O(lw,{}),FE.map(e=>({label:e.label,value:e.value,picture:O("span",{className:"sf-gallery-pic sf-share-pic",children:cB(e.weights).map((o,t)=>O("i",{style:{gridColumn:`span ${o}`}},t))})})),BE,{columns:2,cell:dB}))}var dB={width:"5.75rem",height:"3.25rem",words:!0};function HNe(){return sw("share",Ree(),XF)[uw("share")]}function Bee(){return Ot("mobile",Ho(py,O(HF,{}),Lp,LE,1,Lp,"",{clear:{phoneFollows:!1,hint:Lp}}))}var AF={read:e=>e.phoneRow,write:(e,o,t)=>({phoneRow:t}),fieldKey:()=>"phoneRow",ownField:!0};function WNe(){let e=Ho(py,O(HF,{}),uy,NE,1,uy,"",{clear:{emptyLabel:"Auto"}}),o=sw("columns",e,{...AF,tablet:XF.tablet}),t=sw("columns",e,AF,{phoneRow:Bee()});return{...o,phoneRow:t.phoneRow}}function $Ne(e,o,t,r,a,n,s){return{type:"custom",render:({value:i,onChange:l,name:d})=>O(Nee,{label:e,min:o,max:t,step:r,fallback:a,role:n,value:i,onChange:l,name:d??"",length:s})}}function Nee({label:e,min:o,max:t,step:r,fallback:a,role:n,value:s,onChange:i,name:l,length:d}){let f=So(),u=pr(),p=ca(d?.view),m=el({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 O(wo,{label:c(e),icon:O(kb,{noun:n}),action:O(Qo,{words:le()?.panel,label:c(e),changed:!dF(s),detail:c("the Text style in Styles"),onReset:()=>h(os),defaultAction:{onPress:()=>h(Fm),title:c("Keep this section's own built-in size"),icon:O(aQ,{})}}),children:xt({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 RF(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 fB(){return{_gCellWidth:Sr("Cell size"),gridSpan:Et("Positions",O(lw,{}),RF(Nu,"position","positions"),""),gridRowSpan:Et("Rows tall",O(cw,{}),RF(Cb,"row","rows"),"")}}function So(){let e=null,o=null;try{e=NF(Iw),o=Km(t=>t).selectedItem}catch{o=null}return e??o?.props??{}}var Iw=VJ(null);function Dee({min:e,max:o,step:t,px:r,label:a,onChange:n,desktopKey:s,fallback:i}){let l=So()[s],d=em(void 0,l,i);return O(ba,{children:xt({min:e,max:o,step:t,value:em(r,l,i),readout:!1,ariaLabel:a,notch:d,onChange:n})})}function Mee({label:e,desktopKey:o,fallback:t,unit:r="px",changed:a=!1,onReset:n=()=>{}}){let s=So()[o],i=em(void 0,s,t);return O(Qo,{words:le()?.panel,label:c(e),changed:a,detail:ss(l=>c(l),`${i}${r}`),onReset:n})}function Hee(e){return pee(e.label,{icon:e.icon,min:e.min,max:e.max,step:e.step,unit:e.unit,unsetLabel:"Follows Desktop",unsetMark:O(Mee,{label:e.label,desktopKey:e.desktopKey,fallback:e.fallback,unit:e.unit}),restTrack:o=>O(Dee,{...o,desktopKey:e.desktopKey,fallback:e.fallback})})}var Wee={Top:"Padding top",Bottom:"Padding bottom",Left:"Padding left",Right:"Padding right"},$ee={Top:dw,Bottom:UF,Left:zF,Right:GF},Uee=e=>{let o=$ee[e];return O(o,{})};function pB(e={}){let o=e.keys?.top??"sectionPaddingTop",t=e.keys?.bottom??"sectionPaddingBottom",r=e.group!==!1,a=w=>Wee[w],n=w=>Ho(a("Top"),O(dw,{}),$t.min,$t.max,$t.step,w,"px"),s=(w,S,v,b=$t)=>Ot("mobile",Hee({label:a(w),icon:Uee(w),desktopKey:S,min:b.min,max:b.max,step:b.step,fallback:v})),i=e.top??$t.min,l=e.bottom??$t.min,d="sectionPaddingLeft",f="sectionPaddingRight",u=e.sideBounds??$t,p=e.side??u.min,m=e.sidePhone??p,h=e.phone===!0,I=w=>h?Ot("desktop",w):w;return md({...r?{_gSpacing:Sr("Padding")}:{},[o]:I(n(i)),...h?{[Zi(o)]:s("Top",o,i)}:{},...e.only==="top"?{}:{[t]:I(Ho(a("Bottom"),O(UF,{}),$t.min,$t.max,$t.step,l,"px")),...h?{[Zi(t)]:s("Bottom",t,l)}:{}},...e.sides?{[d]:I(Ho(a("Left"),O(zF,{}),u.min,u.max,u.step,p,"px")),...h?{[Zi(d)]:s("Left",d,m,u)}:{},[f]:I(Ho(a("Right"),O(GF,{}),u.min,u.max,u.step,p,"px")),...h?{[Zi(f)]:s("Right",f,m,u)}:{}}:{}})}function UNe(e,o){let t=Object.fromEntries(Object.entries(o).map(([n,s])=>[n,n in e&&br(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 Qa="Width";function tl(e,o=pF,t=!0){let r=o.map(a=>({label:ts[a],value:a}));return md({...t?{_gWidth:Sr(Qa)}:{},widthMode:{type:"custom",render:({onChange:a,field:n})=>O(wo,{label:c(Qa),icon:O(IQ,{}),action:t?O(eee,{inherited:n?.inherited??!1,onReset:()=>a(jS),label:Qa}):void 0,children:cd({options:r,value:n?.currentValue||e,onChange:a,ariaLabel:Qa})})}})}function rl({fill:e=!1}={}){let o=(a,n)=>({type:"custom",render:({value:s,onChange:i})=>O(zee,{value:s,onChange:i,view:a,badge:n,fill:e})}),t=()=>nw("sectionHeightMode"),r=()=>nw("sectionHeightMode");return md({_gHeight:Sr(Ti),...pa("sectionHeightMode",a=>a==="desktop"?o(a):o(a,n=>O(Vee,{view:a,onClear:()=>n(void 0)}))),...pa("sectionHeightValue",t),...pa("sectionHeightUnit",r)})}function zee({value:e,onChange:o,view:t,badge:r,fill:a=!1}){let n=So(),{mode:s,number:i,unit:l}=Gee(t,n,e);return O(wo,{label:Ti,icon:Ji(O(cw,{})),action:r?r(o):void 0,children:Ia("div",{className:"es-width-stack",children:[cd({options:[{label:"Auto",value:"auto"},{label:"Fixed",value:"fixed"},{label:"Screen",value:"screen"},...a?[{label:"Fill",value:"fill"}]:[]],value:s,onChange:o,ariaLabel:Ti}),i?O(Kee,{view:t,mode:s,menu:l}):null]})})}function uB(e,o){return e==="phone"&&nu(o)?hO(o):pO(o)}function qm(e,o){return e==="desktop"||(e==="tablet"?nu(o):mO(o))?null:uB(e,o)}function Gee(e,o,t){let r=(a=>cO.includes(a))(t)?t:qm(e,o)?.mode??"auto";return{mode:r,number:r!=="auto"&&r!=="fill",unit:r==="fixed"}}function jee(e,o,t,r){let a=qm(e,o);return!a||e==="desktop"?null:r===void 0?{}:{[ke("sectionHeightMode",e)]:a.mode,...a.mode==="fixed"?{[ke("sectionHeightUnit",e)]:a.unit}:{},...t==="sectionHeightUnit"?{[ke("sectionHeightValue",e)]:a.value}:{},[ke(t,e)]:r}}function LF(e,o,t){let r=ns(),a=qm(e,So());return!r||!a?{followed:null,write:t}:{followed:a,write:n=>r.onChangeMany(s=>{let i=jee(e,s,o,n);return i===null?{[ke(o,e)]:n}:Object.keys(i).length?i:null})}}function Kee({view:e,mode:o,menu:t}){let r=ns(),a=So(),n=ke("sectionHeightValue",e),s=ke("sectionHeightUnit",e),i=w=>S=>r?.onChangeMany(()=>({[w]:S})),{followed:l,write:d}=LF(e,"sectionHeightValue",i(n)),{write:f}=LF(e,"sectionHeightUnit",i(s)),u=o==="screen"?"%":a[s],p=(l?l.unit:u)==="%"?"%":"px",m=p==="%"?fO:dO,h=a[n],I=t?{options:["px","%"],label:c("Unit"),onChange:w=>f(w)}:void 0;return xt({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:Ti,onChange:d})}function Vee({view:e,onClear:o}){let t=So(),r=qm(e,t)===null,a=e==="phone"&&nu(t),n=uB(e,t),s=ss(i=>c(i),n.mode==="auto"?c("Auto"):`${n.value}${n.unit}`,a?"tablet":"desktop");return O(Qo,{words:le()?.panel,label:c(Ti),changed:r,detail:s,onReset:o})}function xd(e={}){let o=e.intro===!0,t=n=>({type:"custom",render:({value:s,onChange:i,id:l,name:d})=>O(eoe,{value:s,onChange:i,labelId:`${l??d??"stickTop"}-label`,view:n,intro:o})}),r=n=>({type:"custom",render:({value:s,onChange:i})=>O(Zee,{value:s,onChange:i,view:n,intro:o})}),a=n=>({type:"custom",render:({value:s,onChange:i})=>O(Jee,{value:s,onChange:i,view:n,intro:o})});return{_gStick:Sr(RL,{dot:o?Xee:zi}),...pa("stickTop",t),...pa("stickTopDistance",r),...as(rd,"stickTopDistance",{tablet:!0,phone:!0}),...e.screens?pa(Ir,a):{},...o?{}:{[Qn]:Yee()},...o||e.above===!1?{}:{[Za]:qee()}}}function Yee(){let e=Et(LL,O(dw,{}),FL,BL);return Ot("desktop",{...e,render:o=>{let t=e.render({...o,value:ES(o.value),onChange:r=>o.onChange(DL(r))});return iw(t,{hint:c(NL)})}})}function qee(){let e=hB(ML,!1,O(jF,{}),HL);return Ot("desktop",{...e,render:o=>e.render({...o,onChange:t=>o.onChange(t===!0?!0:void 0)})})}var Xee={any:[zi,km]};function mB(e,o,t,r,a){let n=ns(),s=So(),i=e==="desktop"||ud(e,s)?null:yw(e,Gi(s,{intro:r}));return{followed:i,write:(i||a)&&n?l=>n.onChangeMany(d=>{let f=Qee(e,d,l,o,r),u=f===null?{[ke(o,e)]:l}:f;return Object.keys(u).length?{...u,...a?.(l)??{}}:null}):t}}function Zee({value:e,onChange:o,view:t,intro:r}){let a=So(),n=Gi(a,{intro:r}),s=f=>{let u=Ci(f);return u==="desktop"||ud(u,a)},i=el({row:rd,label:"Distance from top",grid:{min:Ut.min,max:Ut.max,step:Ut.step},valueKey:"stickTopDistance",view:t,numbersIn:f=>s(f)&&q(a[mw("stickTopDistance",f)])!==void 0,followsView:t==="phone"&&n.ownTablet?"tablet":"desktop"}),{followed:l,write:d}=mB(t,"stickTopDistance",o,r,i?f=>i.unitPatch(f===void 0):void 0);return O("div",{className:"sf-field",children:xt({min:i?.grid.min??Ut.min,max:i?.grid.max??Ut.max,step:i?.grid.step??Ut.step,value:l?null:typeof e=="number"?e:Ut.fallback,...l?{placeholder:l.distance}:{},...i?{suffix:i.unit,units:i.units}:{suffix:"px"},ariaLabel:c("Distance from top"),onChange:d})})}function Jee({value:e,onChange:o,view:t,intro:r}){let{followed:a,write:n}=mB(t,Ir,o,r);return O(wo,{label:c(PS),icon:Ji(O(cw,{})),children:xt({min:zm.min,max:zm.max,step:zm.step,value:a?null:q(e)??zm.default,...a?{placeholder:a.screens}:{},ariaLabel:c(PS),onChange:n})})}function ud(e,o){return e==="tablet"?OS(o):AS(o)}function yw(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 Qee(e,o,t,r="stickTopDistance",a=!1){if(e==="desktop"||ud(e,o))return null;if(t===void 0)return{};let n=yw(e,Gi(o,{intro:a})),s=e==="phone"&&ud("tablet",o)?f=>ke(f,"tablet"):f=>f,i=(f,u)=>o[s(f)]==null?{}:{[ke(f,e)]:u},l=rd.unitKey,d=o[s(l)]==null?{}:{[ke(l,e)]:n.unit};return{[ke("stickTop",e)]:!0,...i("stickTopDistance",n.distance),...d,...i(Ir,n.screens),[ke(r,e)]:t}}function eoe({value:e,onChange:o,labelId:t,view:r,intro:a}){let n=So(),s=Gi(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:yw(r,s),f=d?.on?Me(d.distance,d.unit):c("Off");return O(wo,{label:c(kS),labelId:t,icon:Ji(O(jF,{})),action:Ia(ba,{children:[r!=="desktop"?O(Qo,{words:le()?.panel,label:c(kS),changed:ud(r,n),detail:ss(u=>c(u),f,l?"tablet":"desktop"),onReset:()=>o(void 0)}):null,O(fw,{checked:i,onChange:o,ariaLabelledBy:t})]})})}var FF="e.g. about";function al(){return{_gAnchor:Sr("Anchor"),anchor:cs({control:"plainText",label:"Name",placeholder:FF},{type:"custom",render:({value:e,onChange:o})=>O(SA,{value:e,onChange:o,nameBox:(t,r)=>O(ls,{value:t,onChange:r,label:"Name",placeholder:FF,hideable:!1,markup:!1})})})}}function zNe(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 O(wo,{label:c(e),icon:o,htmlFor:i,hint:t===void 0?void 0:c(t),children:O(OQ,{id:i,value:Number.isFinite(l)?new Date(l):null,onChange:d=>a(d?d.toISOString():"")})})}}}function hB(e,o,t,r){return{type:"custom",...en({},{...jm,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=O(fw,{checked:m,onChange:s,disabled:I,ariaLabelledBy:h});return O(wo,{label:c(e),labelId:h,icon:t,hint:r===void 0?void 0:c(r),action:d?Ia(ba,{children:[O(Qo,{words:le()?.panel,label:c(e),changed:u,detail:f.followsNoView?c(p?"On":"Off"):ss(S=>c(S),c(p?"On":"Off"),f.followsView),disabled:I,onReset:()=>s(void 0)}),w]}):w})}}}function xB(){return{type:"custom",render:({value:e,onChange:o,id:t,name:r})=>{let a=`${String(t??r??"pageBackground")}-colour`;return O(ooe,{label:"Background",icon:O(mQ,{}),id:a,value:e,shown:Eb(e),onChange:o})}}}function GNe(e,o,t){return{type:"custom",render:({value:r,onChange:a})=>O(mt,{label:c(e),icon:t,value:r||o,onChange:a})}}function ooe({label:e,icon:o,id:t,value:r,shown:a,onChange:n}){let{colors:s,n:i}=Sw(),l=Ur(r),d=l?Li(l,s,i):null;return O(mt,{label:c(e),icon:o,id:t,value:d?d.hex:a,caption:d?.words,onChange:n,choices:bw(l??"",s,i,n)})}function jNe(){return{type:"custom",render:e=>{let{value:o,onChange:t}=e,r=e;return O(toe,{value:typeof o=="string"?o:"",onChange:t,twin:"follows"in e?{follows:r.follows,view:r.followsView}:void 0})}}}function bw(e,o,t,r){let a=qu(e);return TA(o,t).map(n=>({label:n.label,color:n.value,selected:a===n.name,onPick:()=>r(n.name)}))}function toe({value:e,onChange:o,twin:t}){let{colors:r,n:a}=Sw(),n=r.background,s=is(n.toUpperCase(),c("Theme {n} background",{n:a})),[i,l]=yr(NA),[d]=yr(Rb),f=typeof d=="string"&&d.trim()!=="",u=Vu(i),p=y=>l(Vu(y)||void 0),m=qu(e),h=m?Li(m,r,a):null,I=bw(e,r,a,o),w=t?()=>o(void 0):()=>o(""),S=n,v=s;if(t){let y=qu(t.follows),k=Yu(t.follows),F=y?Li(y,r,a):k?{hex:k,words:k.toUpperCase()}:null;S=F?.hex??n,v=ss(T=>c(T),F?F.words:s,t.view)}let b=!t&&(Gc(e)||f)?O(roe,{value:u,onChange:p}):null;return h?O(mt,{label:c("Fill"),icon:O(aw,{}),value:h.hex,caption:h.words,onChange:o,changed:!0,onReset:w,resetTo:v,choices:I,children:b}):O(Vc,{label:c("Fill"),icon:O(aw,{}),value:e,inherited:S,resetTo:v,onChange:o,onReset:w,choices:I,children:b})}function roe({value:e,onChange:o}){return cd({options:Ku.map(t=>({label:t.label,value:t.value,hint:t.hint})),value:e,onChange:o,ariaLabel:c("Fill")})}function aoe(e,o,t){if((e?.content??[]).some(n=>n?.props?.id===o))return Hr(t);let r=MA(e,o);if(r.length===0)return null;let a=Hr(Nn(t));if(a!==null)return a;for(let n=r.length-1;n>0;n-=1){let s=Hr(Nn(r[n].sectionAccent));if(s!==null)return s}return Hr(r[0].sectionAccent)}function Sw(){let e=ko(ce().theme),[o]=yr("sectionAccent"),t=null;try{let{appState:a,selectedItem:n}=Km(i=>i),s=n?.props?.id?String(n.props.id):void 0;t=s?aoe(a?.data,s,o):null}catch{t=null}let r=t!==null&&e.themes[t]?t:e.selected;return{colors:pt(e.themes[r]),n:r+1}}function KNe(){return hd()}var gB={top:O(lQ,{}),right:O(iQ,{}),bottom:O(nQ,{}),left:O(sQ,{})};function IB(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 O(wo,{label:c(e),icon:a,value:i(m)?.label?c(i(m).label):s?c(s):"",children:jQ(c,{label:e,value:m,onChange:p,points:f})})}}}function VNe(e,o,t){return{type:"custom",options:o,render:({value:r,onChange:a,field:n})=>O(fR,{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 YNe(e,o={}){return{type:"custom",render:({value:t,onChange:r})=>{let a={value:t,onChange:r,...o};return O(e,{...a})}}}var noe={image:"Image",video:"Video"},qNe=Dn.map(e=>({label:noe[e],value:e}));function XNe(e,o,t){let r=Object.keys(Xy).map(a=>({label:Xy[a],value:a,picture:t[a]}));return{type:"custom",...en({},{type:"radio",label:e,options:r.map(a=>({value:a.value,label:a.label}))}),render:({onChange:a})=>O(ioe,{label:e,icon:o,options:r,onChange:a})}}function soe(e,o,t){let r=n1(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=a1(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 ioe({label:e,icon:o,options:t,onChange:r}){let a=ns(),n=a?.values??{},s=Fc(n),i=NF(qJ),l=Eu(i?.docId??null),d=null;try{d=Km(u=>u.appState.data)}catch{d=null}let f=v1(a?.id,d,l);return O(wo,{label:c(e),icon:Ji(o),hint:soe(n,f,i?.hasUnsavedEdits??!1),children:cd({options:t,value:s,onChange:r,ariaLabel:e})})}function ZNe(e,o,t,r={}){let a={type:"custom",[JJ]:!0,render:({value:n,onChange:s,name:i})=>O(cR,{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?Ot("each",a):a}var JNe={HeroSingle:[Mn.image],HeroSlide:["videoFrame","videoFramePhone"],ContactLocations:["locations[].photo"],ProcessSteps:["steps[].image"]};function loe(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 QNe({value:e,onChange:o,label:t}){let r=e||{},a=ns(),n=a?a.values!==a.node.props:!0,s=!!r.pending&&n,i=!!r.pending&&!n,l=!!je(zQ()).geocode,d=DF(),f=(u,p)=>o({...r,[u]:p??void 0});return Ia(ba,{children:[O(wo,{label:c(t),icon:O(kF,{}),action:l?O(pw,{content:c("Find from the address (OpenStreetMap)"),children:O(YF,{"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:O(hQ,{})})}):void 0,children:l&&r.status?O(wA,{compact:!0,oneLine:!0,spaced:!1,status:s?"busy":r.ok&&!i?"found":"notfound",statusText:s?c("Finding\u2026"):i?c(Nb):c(r.status),hint:loe(r)}):null}),O(wo,{label:c("Enter by hand"),labelId:d,icon:O(cQ,{}),action:O(fw,{checked:!!r.manual,onChange:u=>o({...r,manual:u}),ariaLabelledBy:d})}),r.manual&&O(wo,{label:c("Latitude, longitude"),icon:O(kF,{}),children:Ia("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:8,width:"100%",minWidth:0},children:[O(PF,{value:typeof r.lat=="number"?r.lat:null,onChange:u=>f("lat",u),min:-90,max:90,step:1e-4,placeholder:c("Latitude")}),O(PF,{value:typeof r.lng=="number"?r.lng:null,onChange:u=>f("lng",u),min:-180,max:180,step:1e-4,placeholder:c("Longitude")})]})})]})}function coe(e,o){return o===null||o<0||o>=e.length?"":e[o]?.text??""}function doe(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 foe(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 ww={label:"Ticker items",icon:O(uQ,{})};function eDe(e,o,t,r){return{type:"custom",[ya]:{control:"textList",label:e,placeholder:t,itemKey:"text",rendering:r},...en({},{...QF.textList,label:e}),render:({value:a,onChange:n})=>O(Cw,{label:e,icon:Ji(o),items:Array.isArray(a)?a:[],placeholder:t,onChange:n,markup:r==="markup"})}}function Cw({label:e,icon:o,items:t,placeholder:r,onChange:a,markup:n=!1}){let s=dd(null),[i,l]=fd(null),d=u=>u.map(p=>({text:p?.text??""})),f=u=>{let p=foe(t,u,i);p===null&&(s.current=null),l(p),a(d(u))};return O(TQ,{label:c(e),icon:o,noun:c("item"),items:t,onChange:f,newItem:()=>({text:""}),open:null,onOpen:()=>{},renderItem:()=>null,above:n?O(Hb,{target:s,value:coe(t,i),onChange:u=>a(doe(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)=>O("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 yB(e,o){let t=`${e.label} \u2014 row ${o+1}`;return cs({control:"plainText",label:t,placeholder:e.placeholder,offPage:e.offPage},{type:"custom",render:({value:r,onChange:a})=>O(ls,{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 bB(e){return{_gCards:Sr("Cards"),coverIndex:Et("Cover image",O(pQ,{}),sR,String(1),e?.coverHint??"A card's opening picture \u2014 a card pinned to a finish keeps its own."),imageBackground:fee("Image background",Lm),cardImage:wB()}}function oDe(){return{outline:Et("Card outline",O(xQ,{}),nR,aR),indexBadge:Et("Card number",O(fQ,{}),jb,Gb),showBadge:hB("Product badge",!0,O(kb,{noun:"tag"}))}}function SB(e){let o=e?.defaults??{showCardSizes:!0,showCardBuy:!0,showCardPage:!0},t=a=>({...jm,label:Gm.find(n=>n.id===a).label}),r=a=>en(nw(rw),t(a));return{_gShowOnCard:Sr("Show on a card"),[rw]:en({type:"custom",render:()=>O(poe,{rest:{showCardPrice:!0,showCardFinishes:!0,...o}})},t(rw)),showCardFinishes:r("showCardFinishes"),showCardSizes:r("showCardSizes"),showCardBuy:r("showCardBuy"),showCardPage:r("showCardPage")}}var rw="showCardPrice",Gm=[{id:"showCardPrice",label:"Price"},{id:"showCardFinishes",label:"Finish swatches"},{id:"showCardSizes",label:"Sizes"},{id:"showCardBuy",label:"Buy button"},{id:"showCardPage",label:"Page button"}];function poe({rest:e}){let o=So(),t=pr(),r=s=>typeof o[s]=="boolean"?o[s]:void 0,a=s=>r(s)??e[s],n=Gm.some(({id:s})=>r(s)!==void 0&&r(s)!==e[s]);return O(nl,{parts:Gm,changed:n,shown:a,onPress:(s,i)=>t({[s]:i}),onReset:()=>t(Object.fromEntries(Gm.map(({id:s})=>[s,void 0])))})}function tDe(e,o="display"){let t=Zi(o);return{[o]:Ot("desktop",{type:"custom",render:({value:r,onChange:a})=>O(nl,{parts:e,changed:zA(r),shown:n=>Ju(r,n),onPress:(n,s)=>a(jA(r,n,s)),onReset:()=>a(void 0)})}),[t]:Ot("mobile",{type:"custom",render:({value:r,onChange:a})=>O(uoe,{parts:e,desktopKey:o,value:r,onChange:a})})}}function nl({parts:e,changed:o,shown:t,onPress:r,onReset:a,detail:n,disabledReason:s}){let i=c("Display");return O(wo,{label:i,icon:O(oQ,{}),changed:o,action:O(Qo,{words:le()?.panel,label:i,changed:o,detail:n,onReset:a}),children:O(PQ,{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 uoe({parts:e,desktopKey:o,value:t,onChange:r}){let a=So()[o];return O(nl,{parts:e,changed:GA(t),shown:n=>Bb(a,t,n),onPress:(n,s)=>r(KA(t,n,s)),onReset:()=>r(om),detail:c("the same as Desktop")})}function wB(e=Y1){return Ho("Card image",O(WF,{}),tt,Ma,V1,tt,e,{clear:{hint:tt},hint:"Rounds the picture. The card's own corner is in Styles."})}function moe(){return as(Ib,"cardImage")}function rDe(){return{cardImage:wB(Ib),...moe()}}function aDe(){return gw({sidesKey:"cornerSides",row:X1,step:Z1,useFollowed:()=>tt,mark:O(hoe,{label:J1}),hint:c("Rounds the picture. Left alone it stays square.")})}function hoe({label:e,changed:o=!1,onReset:t=()=>{}}){return O(Qo,{words:le()?.panel,label:c(e),changed:o,onReset:t})}function nDe(){return{type:"custom",render:({value:e,onChange:o})=>O(yoe,{value:typeof e=="string"?e:"",onChange:o})}}var BF="own";function sDe(){let e=[{value:BF,label:"Layout's own",picture:QS(Array.from({length:8},()=>[3,1]))},...Object.entries(Bu).map(([o,t])=>({value:o,label:t.label,picture:QS([...t.phone,...t.phone])}))];return Ot("mobile",ZS("Layout",O($F,{}),e,BF,{columns:2,cell:CF}))}function xoe({layout:e,width:o}){let t=wb(e),r=t?`${t[0]}/${t[1]}`:void 0;return O("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:nA(e).map(([a,n],s)=>O("i",{className:"block rounded-xs bg-current opacity-60",style:{gridColumn:`span ${a}`,gridRow:`span ${n}`,aspectRatio:r}},s))})}var goe={width:"3.5rem",height:"2.5rem",words:!1},Ioe=200;function yoe({value:e,onChange:o}){let[t,r]=fd(null),[a,n]=fd(4),s=dd(null);YJ(()=>{let m=s.current;if(!m||typeof ResizeObserver!="function")return;let h=()=>n(m.getBoundingClientRect().width>=Ioe?4:3);h();let I=new ResizeObserver(h);return I.observe(m),()=>I.disconnect()},[]);let i=e?U($c,e):void 0,l=i?e:"",d=bb(t,l),f=bb(t,"").length,u=Mu("no-symbol"),p=[{value:"",label:c("Not chosen"),icon:wF(u,c("Not chosen"))},...d.map(m=>({value:m,label:c($c[m].label),icon:O(xoe,{layout:$c[m],width:40})}))];return O(wo,{label:c("Layout"),icon:O($F,{}),value:i?c(i.label):void 0,children:O("div",{ref:s,style:{flex:"1 1 auto",minWidth:0},children:O(KF,{label:c("Layout"),value:l,options:p,onChange:o,columns:a,cell:goe,header:Ia("div",{className:"mb-2 flex flex-col gap-1",style:{minWidth:"11rem"},children:[O("span",{className:"text-2xs text-ink-faint",children:c("Photos in a row")}),O(SQ,{options:[{id:"all",label:c("All")},...tA.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))}),O("span",{className:"text-2xs text-ink-faint",children:c("{n} of {total} layouts",{n:f,total:yb.length})})]})})})})}import{decodePartId as Noe}from"efficient-easel/draw";import{decodePartId as Id,encodePartId as Yr}from"efficient-easel/draw";import{LINK_FIELD_MARKER as RB,SCAFFOLD_FIELD_MARKER as OB,TEXT_FIELD_MARKER as eh}from"efficient-easel/draw";import{readHidable as LB}from"efficient-easel/draw";import{SCALAR_TEXT_CONTROLS as Toe}from"efficient-easel/draw";import{TEXT_FIELD_MARKER as koe}from"efficient-easel/draw";import{TEXT_FIELD_MARKER as CB}from"efficient-easel/draw";import{readHidable as vB}from"efficient-easel/draw";import{SCALAR_TEXT_CONTROLS as boe}from"efficient-easel/draw";var Soe=boe,woe=["text","textarea"],Coe=["textarea","plainTextarea"];function voe(e){return!e||typeof e!="object"?null:e[CB]?.control??null}function sl(e){let o=voe(e);return o&&Soe.includes(o)?o:null}function Xm(e){return Coe.includes(e)}function kB(e){return!e||typeof e!="object"?void 0:e[CB]?.placeholder}function Zm(e){return vB(e).text}function vw(e,o,t){return woe.includes(e)?{text:t,hidden:vB(o).hidden}:t}function TB(e,o,t,r){return Zm(e[o])===r?null:{...e,[o]:vw(t,e[o],r)}}function Vr(e,o){return o?`${e}[${o.index}].${o.rowKey}`:e}function wr(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 Jm(e){if(!(!e||typeof e!="object"))return e[koe]}function kw(e){if(!e||typeof e!="object")return null;let o=e.arrayFields;return o&&typeof o=="object"?o:null}function PB(e,o){if(!Array.isArray(o))return[];let t=Jm(e),r=[];if(t?.control==="textList"){let n=t.itemKey??"text";return o.forEach((s,i)=>{let l=be(s?.[n]);l&&r.push({row:{index:i,rowKey:n},text:l})}),r}let a=kw(e);return a?(o.forEach((n,s)=>{for(let[i,l]of Object.entries(a)){if(!sl(l))continue;let d=Zm(n?.[i])||Jm(l)?.placeholder||"";d&&r.push({row:{index:s,rowKey:i},text:d})}}),r):[]}function gd(e,o){if(Array.isArray(e))return e[o.index]?.[o.rowKey]}function Tw(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 EB(e,o,t,r,a){let n=gd(e[o],t);return Zm(n)===a?null:Tw(e,o,t,vw(r,n,a))}function _B(e,o){return o?`${e} \xB7 row ${o.index+1}`:e}var co="data-sf-part",rn="data-sf-region-part",Pw="data-sf-part-row";function FB(e,o){return`${e}[${o}]`}var BB="data-sf-part-kind",Ew="data-sf-part-style-owner",yd="data-sf-part-style-kind";function bd(e){for(let o=e;o;o=o.parentElement){let t=o.getAttribute(Ew),r=o.getAttribute(yd);if(t&&r)return{owner:t,kind:r};if(o.getAttribute("data-easel-block"))return null}return null}var AB=2;function tn(e){return aa(e).replace(/\s+/gu,"")}function Qm(e,o,t){let r=e[eh];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}=LB(o);a?t.push(a):r.placeholder&&t.push(r.placeholder);return}if(!e[RB]){if(e.type==="text"||e.type==="textarea"){let a=be(o);a&&t.push(a);return}if(e.arrayFields&&Array.isArray(o)){for(let a of o)for(let[n,s]of Object.entries(e.arrayFields))Qm(s,a?.[n],t);return}if(e.objectFields&&o&&typeof o=="object")for(let[a,n]of Object.entries(e.objectFields))Qm(n,o[a],t)}}function _w(e){if(!e||typeof e!="object")return!1;let o=e;return o[RB]?!1:!!o[eh]||o.type==="text"||o.type==="textarea"}function oh(e,o){let t=e[eh];return t?.label?t.label:typeof e.label=="string"?e.label:o}function Sd(e){let o=e.indexOf(" (");return(o>0?e.slice(0,o):e).trim()}function NB(e,o,t){if(!e)return[];let r=[];for(let[a,n]of Object.entries(e)){if(!n||typeof n!="object"||Kn(a))continue;let s=n,i=[];Qm(s,o?.[a],i),!i.length&&s[OB]!==void 0&&Qm(s,s[OB],i);let l=oh(s,a);if(t?.(a)&&_w(s)){i.length&&r.push({key:a,label:l,texts:[],keyed:!0});continue}let d=new Set;for(let{row:p,text:m}of PB(s,o?.[a])){let h=tn(m);h.length<AB||(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=tn(p);m.length<AB||f.has(m)||(f.add(m),u.push(m))}u.length&&r.push({key:a,label:l,texts:u})}return r}function Ow(e){return!e.offPage&&!e.hidden&&e.panelOnly!==!0}var Poe=Toe;function DB(e,o){if(!o||typeof o!="object"||Kn(e)||ZA(o))return null;let t=o[eh];return!t||!Poe.includes(t.control)?null:t}function Aw(e,o){let t=DB(e,o);return t!==null&&t.identifier!==!0}function MB(e,o){if(!e)return[];let t=[];for(let[r,a]of Object.entries(e)){let n=DB(r,a);if(!n)continue;let{text:s,hidden:i}=LB(o?.[r]);if(Ow({offPage:n.offPage===!0,hidden:!!i,panelOnly:Hi(a)}))continue;let l=s||n.placeholder||"",d=aa(l).replace(/\s+/gu," ").trim();t.push({key:r,label:Sd(oh(a,r)),preview:d,offPage:n.offPage===!0,identifier:n.identifier===!0,hidden:!!i})}return t}function il(e,o){let t=Jm(e);return t?.control==="textList"?o.rowKey===(t.itemKey??"text")?yB(t,o.index):null:kw(e)?.[o.rowKey]??null}function th(e,o,t){let r=e.node.props,{key:a,row:n}=wr(e.propKey),s=n?EB(r,a,n,e.kind,o):TB(r,a,e.kind,o);return s?(t(e.zone,e.index,{...e.node,props:s}),!0):!1}import{readHidable as $B}from"efficient-easel/draw";var Rw=e=>String(e+1).padStart(2,"0"),BDe=[{label:"01 \xB7",value:"two-digit"},{label:"1.",value:"plain"}],Lw="two-digit",HB=e=>e==="plain"?"plain":Lw,rh=(e,o)=>e==="plain"?`${o+1}.`:Rw(o);var Nw="Contents",Fw="Flex",WB="Text",Eoe="numberForm",_oe="_contentsEntries",Ooe="_kickerNumber",UB="data-sf-kicker-number",Aoe=e=>$B(e).text.trim(),zB=e=>Un(e?.anchor),Bw=e=>String(e.props?.id??""),Roe=e=>!$B(e.props?.text).hidden&&!Ei(e.props)&&!ft(e.props),wd=e=>si(e);function GB(e){for(let o of wd(e))for(let t of o){if(fa(t.props??{}))continue;if(t.type===WB&&Roe(t))return t;if(t.type===WB)continue;let r=GB(t);if(r)return r}}function jB(e){return wd(e).some(o=>o.some(t=>t&&!fa(t.props??{})&&(t.type===Nw||jB(t))))}var KB=e=>e.type===Fw&&jr(Fw,e.props?.direction)==="row";function VB(e){return wd(e).some(o=>o.some(t=>t&&!fa(t.props??{})&&(t.type===Nw||!KB(t)&&VB(t))))}function Loe(e){let o=[],t=(r,a)=>{for(let n of r){if(!n||fa(n.props??{}))continue;if(n.type===Nw){a.open={contents:n,sections:a.waiting??[]},a.waiting=null,o.push(a.open);continue}if(KB(n)&&VB(n)){let i={inRow:!0,open:null,waiting:[]};for(let l of wd(n))t(l,i);a.inRow||(a.open=null);continue}let s=a.open?.sections??a.waiting;if(n.type===Fw&&zB(n.props)&&s&&!jB(n)){s.push({box:n,kicker:GB(n)});continue}for(let i of wd(n))t(i,a)}};return t(e,{inRow:!1,open:null,waiting:null}),o}function Foe(e){return e.map(o=>({label:o.kicker?aa(Aoe(o.kicker.props?.text)):"",anchor:zB(o.box.props)}))}function Dw(e){let o=e?.length?Loe(e):[];if(!o.length)return null;let t=new Map,r=new Map;for(let a of o){let n=Bw(a.contents);n&&t.set(n,Foe(a.sections));let s=HB(a.contents.props?.[Eoe]);a.sections.forEach((i,l)=>{let d=i.kicker?Bw(i.kicker):"";d&&r.set(d,rh(s,l))})}return{entries:t,numbers:r}}var KDe=e=>e.endsWith(".")?`${e} `:`${e} \xB7 `;function YB(e){let o=e;if(!o?.content?.length)return e;let t=Dw(o.content);if(!t)return e;let{entries:r,numbers:a}=t,n=s=>{let i=go(s,m=>so(m,n)),l=i.props??{},d=i!==s,f=Bw(s),u=f?r.get(f):void 0;u&&(l={...l,[_oe]:u},d=!0);let p=f?a.get(f):void 0;return p&&(l={...l,[Ooe]:p},d=!0),d?{...s,props:l}:s};return{...o,content:o.content.map(n)}}var Doe=`[${UB}]`,Moe=["bold","italic","underline","strike","link","sup","sub"],Hoe=["bullet","number"];function Ww(e,o){return e?[...Moe,...o?Hoe:[]]:[]}function qB(e,o){let t=Noe(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}=wr(a),d=o.components[n.type]?.fields?.[i],f=l?il(d,l):d,u=sl(f);if(!u)return null;let p=n.props??{};if(cS(p)!==null||!l&&zp(n.type,p,i)||n.type==="Text"&&i==="text"&&Ei(p)||l&&!(Array.isArray(p[i])&&l.index<p[i].length))return null;let m=l?gd(p[i],l):p[i];return{node:n,selector:s,propKey:a,kind:u,stored:m,offPage:Vm(f),panelOnly:Hi(f)}}function ah(e,o){let t=qB(e,o);if(!t)return null;let{text:r,hidden:a}=on(t.stored);if(!Ow({offPage:t.offPage,hidden:!!a,panelOnly:t.panelOnly}))return null;let n=Xm(t.kind);return{partId:e,value:r,rules:Cp,multiline:n,skip:Doe,offered:Ww(t.kind!=="plainText",n),write:s=>{let i=qB(e,o);i&&th({node:i.node,propKey:i.propKey,kind:i.kind,zone:i.selector.zone,index:i.selector.index},s,o.replace)}}}function $w(e,o,t){return e?.isConnected&&e.getAttribute(co)===t?e:o?.querySelector(`[${co}="${nh(t)}"]`)??null}function nh(e){return e.replace(/["\\]/g,"\\$&")}function XB(e){let o=e.activeElement;return o?o.tagName==="IFRAME"||!!o.closest(".es-canvas"):!1}var Mw=null,Hw=new Set;function Woe(){return Mw}function Uw(e){if(e!==Mw){Mw=e;for(let o of Hw)o()}}function $oe(e){return Hw.add(e),()=>{Hw.delete(e)}}function ZB(){return Boe($oe,Woe,()=>null)}function JB(e,o){if(e.outer)return null;let t=o.getItemById(e.ownerId);if(!t)return null;let r=e_(t.type);return!r||oo(t.props)?null:{node:t,rows:r}}function Koe(e,o){let t=JB(e,o),r=o.getItemById(e.nodeId);if(!t||!r)return null;let a=s_(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:Uoe(e.ownerId,Vr(t.rows,{index:e.index,rowKey:a}))}function sh(e,o){let t=Koe(e,o);return t?ah(t,o):null}function QB(e,o){return sh(e,o)?.value}function eN(e,o){let t=sh(e,o);return t?(t.write(e.text),!0):!1}function oN(e,o){let t=JB(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=zoe(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=Goe(n,s,l);break}case"delete":i=joe(n,s);break;default:return!1}return o.replace(r.zone,r.index,{...t.node,props:{...a,[t.rows]:i}}),!0}import{jsx as $e,Fragment as ibe,jsxs as cI}from"react/jsx-runtime";import{Fragment as lbe,useEffect as cbe,useMemo as KG,useRef as dbe,useState as js}from"react";import{useScreenDocument as ZG}from"efficient-easel/screen/components/ScreenDocumentContext";import{UiIcon as mP}from"efficient-easel/draw/client";import fbe from"efficient-easel/screen/components/SidePanelHead";import{jsx as Pe,Fragment as ml,jsxs as xs}from"react/jsx-runtime";import{useEasel as zD,useRootFields as Eae}from"efficient-easel/easel";import{Inspector as _ae}from"efficient-easel/fields";import{SettingsGroup as Oae}from"efficient-easel/panel";import{useEffect as Aae,useRef as Rae,useState as HC}from"react";import{jsx as ds,Fragment as Xoe,jsxs as Zoe}from"react/jsx-runtime";import{useState as nN}from"react";import{SettingsDefaultReset as Joe,SettingsField as Qoe}from"efficient-easel/panel";import{useEaselStrings as ete}from"efficient-easel/strings";import{AddIcon as ote}from"efficient-easel/icons";import{Button as tte}from"efficient-shell/ui";import{iconOf as rte,noGlyph as ate}from"efficient-easel/screen/lib/document/box-fields";import{jsx as ih,Fragment as Voe,jsxs as tN}from"react/jsx-runtime";import{Button as rN,Dialog as Yoe}from"efficient-shell/ui";function qoe(e){return rt("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 aN({count:e,onCancel:o,onConfirm:t}){return tN(Yoe,{open:!0,onClose:o,role:"alertdialog",size:"sm",title:c("Clear this site\u2019s colors?"),footer:tN(Voe,{children:[ih(rN,{variant:"secondary",onClick:o,children:c("Cancel")}),ih(rN,{variant:"danger",onClick:t,children:c("Clear colors")})]}),children:[ih("p",{children:qoe(e)}),ih("p",{className:"mt-2 font-medium",children:c("This cannot be undone.")})]})}var nte=ate("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"),ste="Reset color",ite={selected:0,themes:[]};function lte(e){e(ite)}function sN({value:e,onChange:o}){let t=e?.themes??[],r=t.length===0,a=ko(e),[n,s]=nN(!1),i=ete(),[l,d]=nN(null),f=(S,v)=>{o({...a,themes:a.themes.map((b,y)=>y===S?v:b)})},u=yi(a).accent,p=new Set(a.themes.map(S=>S.brandInk).filter(Boolean)),m=x_.filter(S=>!p.has(S)).map(S=>g_(u,S)),h=[...a.themes,...m],I=S=>{if(S<a.themes.length)return o({...a,selected:S});let v=[...a.themes,h[S]];o({...a,themes:v,selected:v.length-1})},w=()=>{let S=[...a.themes,{...pt(a.themes[a.selected])}];o({...a,themes:S,selected:S.length-1}),d(S.length-1)};return Zoe(Xoe,{children:[r?null:ds(Qoe,{label:c(ste),icon:rte(nte),labelId:"sf-theme-reset",action:ds(Joe,{label:c("all theme colors"),words:i.panel,changed:!0,onReset:()=>s(!0)})}),n&&ds(aN,{count:t.length,onCancel:()=>s(!1),onConfirm:()=>{s(!1),lte(o)}}),ds("div",{className:"sf-theme-list",role:"radiogroup","aria-label":c("Theme"),children:h.map((S,v)=>ds(im,{index:v,colors:S,selected:v===a.selected,open:l===v&&v<a.themes.length,editable:v<a.themes.length,onPick:()=>I(v),onEdit:()=>d(b=>b===v?null:v),onChangeColors:b=>f(v,b)},v))}),ds(tte,{variant:"secondary",leftIcon:ds(ote,{}),onClick:w,className:"sf-theme-add",children:c("Add new theme")})]})}import{jsx as lh}from"react/jsx-runtime";import{SettingsDefaultReset as cte,SettingsField as dte}from"efficient-easel/panel";import{SquareIcon as fte}from"efficient-easel/icons";var pte="Applies to panels, cards, inputs and buttons. Round things \u2014 color swatches, switches, status dots \u2014 stay round.",zw="Corners";function iN({value:e,onChange:o,length:t}){let r=e===null;return lh(dte,{label:c(zw),icon:lh(fte,{}),changed:!r,action:lh(cte,{words:le()?.panel,label:c(zw),changed:!r,detail:c("the built-in corners"),onReset:()=>o(null)}),hint:c(pte),children:lh(xt,{min:t?.grid.min??tt,max:t?.grid.max??Ma,step:t?.grid.step??1,value:e,...e===null?{}:{suffix:t?.unit??"px",...t?{units:t.units}:{}},placeholder:tt,placeholderWord:"Auto",onClear:()=>o(null),ariaLabel:c(zw),onChange:o})})}import{jsx as Cd}from"react/jsx-runtime";import{SettingsDefaultReset as ute,SettingsField as mte}from"efficient-easel/panel";import{IconPicker as hte}from"efficient-shell/ui";import{ShadowIcon as xte}from"efficient-easel/icons";import{SHADOW_PREVIEW as gte}from"efficient-easel/screen/lib/document/shadow-values";var Gw={none:"None",soft:"Soft",lifted:"Lifted"},Ite="Applies to cards \u2014 products, brands, journal entries and filter cells. Round things like swatches and status dots are never shadowed.";function lN({value:e,onChange:o}){let t=e===null,r=e??Ly;return Cd(mte,{label:c("Card shadow"),icon:Cd(xte,{}),value:c(Gw[r]),changed:!t,action:Cd(ute,{words:le()?.panel,label:c("Card shadow"),changed:!t,detail:c(Gw[Ly]),onReset:()=>o(null)}),hint:c(Ite),children:Cd(hte,{label:c("Card shadow"),value:r,options:L_.map(a=>({value:a,label:c(Gw[a]),icon:Cd("span",{className:"sf-shadow-chip border border-line bg-surface",style:{boxShadow:gte[a]}})})),onChange:o})})}import{jsx as cN}from"react/jsx-runtime";import{ShadowIcon as yte}from"efficient-easel/icons";import{DEFAULT_SHADOW_COLOR as dN}from"efficient-easel/screen/lib/document/shadow-values";var bte="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 fN({value:e,onChange:o}){let t=e===null;return cN(Vc,{label:c("Shadow color"),icon:cN(yte,{}),value:e??"",inherited:dN,resetTo:dN,onChange:o,onReset:()=>o(null),hint:c(bte)})}import{jsx as dh}from"react/jsx-runtime";import{SettingsDefaultReset as Ste,SettingsField as wte}from"efficient-easel/panel";import{AlignSeparateIcon as Cte}from"efficient-easel/icons";function ch(e,o){return e==="tablet"?null:e==="mobile"?o.phone:o.desktop}var vte="The space between the blocks inside a row, a grid or a box. Auto means each one keeps the spacing it already has.",kte="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.",jw="Block gap",pN=ji.Grid;function uN(e,o){return ch(e,{desktop:{key:"block_gap",value:o.gap,followsPx:null},phone:{key:"block_gap_phone",value:o.phone,followsPx:o.gap===null?null:NS(o.gap)}})}function mN({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?pN:i?nd(t)??pN:t;return dh(wte,{label:c(jw),labelId:"sf-block-gap",icon:dh(Cte,{}),changed:!n,action:dh(Ste,{words:le()?.panel,label:c(jw),changed:!n,detail:s??c("each block's own spacing"),onReset:()=>o(null)}),hint:c(s===null?vte:kte),children:dh(xt,{min:(r?.grid??zt).min,max:(r?.grid??zt).max,step:(r?.grid??zt).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(jw),onChange:o})})}import{jsx as fh}from"react/jsx-runtime";import{SettingsDefaultReset as Tte,SettingsField as Pte,SettingsSegmented as Ete}from"efficient-easel/panel";import{HoverIcon as _te}from"efficient-easel/icons";var Kw={none:di.none,lift:di.lift,highlight:rE},Ote="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 hN({value:e,onChange:o}){let t=e===null,r=e??Fy;return fh(Pte,{label:c("Hover effect"),icon:fh(_te,{}),value:c(Kw[r]),changed:!t,action:fh(Tte,{words:le()?.panel,label:c("Hover effect"),changed:!t,detail:c(Kw[Fy]),onReset:()=>o(null)}),hint:c(Ote),children:fh(Ete,{options:F_.map(a=>({id:a,label:c(Kw[a])})),value:r,ariaLabel:c("Hover effect"),onChange:o})})}import{jsx as ph}from"react/jsx-runtime";import{SettingsDefaultReset as Ate,SettingsField as Rte,SettingsSegmented as Lte}from"efficient-easel/panel";import{DropIcon as Fte}from"efficient-easel/icons";var Vw="Photography",xN={shot:"As shot",mono:"Black and white"},Yw=[{grayscale:!1,label:xN.shot},{grayscale:!0,label:xN.mono}],Bte="Black and white photographs return to color on hover. Wheels and tyres keep their real finish either way.";function gN({value:e,onChange:o}){let t=e===null,r=e??!1;return ph(Rte,{label:c(Vw),icon:ph(Fte,{}),value:c(Yw.find(a=>a.grayscale===r).label),changed:!t,action:ph(Ate,{words:le()?.panel,label:c(Vw),changed:!t,detail:c(Yw.find(a=>!a.grayscale).label),onReset:()=>o(null)}),hint:c(Bte),children:ph(Lte,{options:Yw.map(a=>({id:a.grayscale,label:c(a.label)})),value:r,ariaLabel:c(Vw),onChange:o})})}import{jsx as qw}from"react/jsx-runtime";import{useId as Nte}from"react";import{SettingsField as Dte,SettingsSwitch as Mte}from"efficient-easel/panel";import{ShareIcon as Hte}from"efficient-easel/icons";var Wte="Share button",$te="On every blog post.";function IN({value:e,onChange:o}){let t=Nte();return qw(Dte,{label:c(Wte),labelId:t,icon:qw(Hte,{}),action:qw(Mte,{checked:e===!0,onChange:o,ariaLabelledBy:t}),hint:c($te)})}import{usePreviewDevice as WC}from"efficient-easel/draw/client";import{jsx as uh}from"react/jsx-runtime";import{SettingsDefaultReset as Ute,SettingsField as zte}from"efficient-easel/panel";import{PaddingXIcon as Gte}from"efficient-easel/icons";var Xw="Side space",yN=st.default,jte="The room left at the left and right edge of every page.";function bN(e,o){return ch(e,{desktop:{key:"site_gutter",value:o.gutter,unsetPx:yN,bounds:st},phone:{key:"site_gutter_phone",value:o.phone,unsetPx:ym(o.gutter,o.gutterUnit),bounds:xr}})}function SN({value:e,onChange:o,unsetPx:t=yN,bounds:r=st,length:a,restsOn:n=t}){let s=e===null;return uh(zte,{label:c(Xw),labelId:"sf-side-space",icon:uh(Gte,{}),changed:!s,action:uh(Ute,{words:le()?.panel,label:c(Xw),changed:!s,detail:`${t}px`,onReset:()=>o(null)}),hint:c(jte),children:uh(xt,{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}:{},placeholder:n,onClear:()=>o(null),ariaLabel:c(Xw),onChange:o})})}import{jsx as Zw}from"react/jsx-runtime";import{BACKGROUND_WIDTHS as N2e,SettingsBackgroundWidth as Kte,SettingsContentWidth as Vte}from"efficient-easel/panel";var Yte="Background width",Jw="Content width";var mh=e=>c(ts[e==="content"?"page":"full"]),wN="The width of every section's background.",CN="The width of every section's content.";function hh({value:e,changed:o,detail:t,onChange:r,onReset:a,hint:n,labelId:s}){return Zw(Kte,{value:e,changed:o,detail:t,onChange:r,onReset:a,hint:n?c(n):void 0,labelId:s,words:{label:c(Yte),full:mh("full"),content:mh("content")},resetWords:le()?.panel})}function xh({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(Jw),h=p?.grid.min??r,I=p?.grid.max??t,w=e!=="full"?Zw(xt,{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 Zw(Vte,{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:mh("full"),content:mh("content")},resetWords:le()?.panel})}import{jsx as ID}from"react/jsx-runtime";import{TextStyleItem as Qre,TextStylesGroup as eae}from"efficient-easel/text-styles";import{jsx as Vre}from"react/jsx-runtime";import{useState as Yre}from"react";import{TextStylesList as qre}from"efficient-easel/text-styles";import{usePreviewDevice as Xre}from"efficient-easel/draw/client";import{defaultTextStyles as oD,textStyleCaseCss as $re}from"efficient-easel/text-styles/model";import{resolveViewValue as tD}from"efficient-easel/draw";import{VIEW_DESKTOP_MIN as vN,VIEW_TABLET_MIN as kN}from"efficient-easel/draw";var gh=.02,TN=`(min-width: ${Fr}px) and (max-width: ${vN-gh}px)`,vd=`(max-width: ${Fr-gh}px)`,Ih=`(min-width: ${kN}px) and (max-width: ${vN-gh}px)`,yh=`(max-width: ${kN-gh}px)`;import{textStyleCaseCss as qte,textStyleCaseOfCss as Xte,viewKeyAt as LN}from"efficient-easel/draw";function ll(e){return!e||typeof e!="object"||Array.isArray(e)?null:e}function cl(e,o){return ll(e?.[o])??{}}function bh(e,o,t){let r=cl(e,o);return ll(U(r,t))??{}}function Sh(e,o,t,r){let{[t]:a,...n}=cl(e,o),s=r?{...n,[t]:r}:n,{[o]:i,...l}=e;return Object.keys(s).length?{...l,[o]:s}:l}import{isLengthUnit as aC}from"efficient-easel/screen/lib/content/length-units";var Pd="_partStyles",nC="data-sf-part-styled",Cr="data-sf-text-style",Zte=/^(heading|body)-[1-7]$/;function Sa(e){return typeof e=="string"&&Zte.test(e)}var wh={heading:"heading-1",heading2:"heading-2",heading3:"heading-3",body:"body-1",label:"body-5"};function Jte(e){if(!e)return null;for(let[o,t]of Object.entries(wh))if(t===e)return o;return null}function sC(e){if(Sa(e.textStyle))return e.textStyle;let o=ra(e.role);return o?wh[o]:void 0}var Qte=[400,500,600,700],Td=["left","center","right","justify"],Qw=5,eC=1e3,ere=-5,ore=10,iC=0,lC=64,cC=2,PN={size:{min:Qw,max:eC,step:1},sizeTablet:{min:Qw,max:eC,step:1},sizePhone:{min:Qw,max:eC,step:1},padding:{min:iC,max:lC,step:cC}},tre=.05,rre=.01,are=["line","letter"],nre=.5,sre=2.5,ire=-1,lre=1,cre=0,dre=400,fre=[...new Set(Object.values(ci))];function FN(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 BN(e){return cl(e,Pd)}function us(e,o){return bh(e,Pd,o)}function NN(e,o,t){return Sh(e,Pd,o,pre(t).length?t:null)}function pre(e){return Object.entries(e).filter(([,o])=>o!==void 0)}function ure(e){return are.includes(e)}var kd=(e,o,t)=>Math.min(t,Math.max(o,e)),mre=["sizeUnit","sizeUnitTablet","sizeUnitPhone"];function oC(e){let o=LN("sizeUnit",e),t=mre.find(r=>r===o);if(!t)throw new Error(`a part stores no unit key ${o}`);return t}var jt={size:oC("desktop"),sizeTablet:oC("tablet"),sizePhone:oC("mobile"),paragraphSpacing:"paragraphSpacingUnit",padding:"paddingUnit"},DN=Object.values(jt);function qr(e,o){return _e(e[jt[o]])}function hre(e,o,t={}){if(DN.includes(e))return aC(o)&&o!=="px"?o:null;if(He(jt,e)&&qr(t,e)!=="px"){let r=ps(Number(o),2);return!Number.isFinite(r)||r<0||r===0&&e!=="padding"?null:r}if(ure(e)){let r=Math.round(Number(o));return!Number.isFinite(r)||r===0?null:kd(r,ere,ore)}if(e==="lineHeight"){let r=Number(o);return Number.isFinite(r)?ps(kd(r,nre,sre),3):null}if(e==="letterSpacing"){let r=Number(o);return Number.isFinite(r)?ps(kd(r,ire,lre),4):null}if(e==="paragraphSpacing"){let r=Math.round(Number(o));return!Number.isFinite(r)||r<=0?null:kd(r,cre,dre)}if(He(PN,e)){let{min:r,max:a}=PN[e],n=Math.round(Number(o));return Number.isFinite(n)?kd(n,r,a):null}return e==="italic"?typeof o=="boolean"?o:null:e==="role"||e==="fontRole"?ra(o)?o:null:e==="sizeToken"?dC(o)?o:null:e==="textStyle"?Sa(o)?o:null:e==="alignPhone"||e==="alignTablet"?Td.includes(o)?o:null:o}var xre=["weight","size","sizeTablet","sizePhone","line","letter","lineHeight","letterSpacing","paragraphSpacing","padding"];function dl(e){let o=null,t=r=>{o??={...e},delete o[r]};for(let r of xre){let a=e[r];a!==void 0&&!(typeof a=="number"&&Number.isFinite(a))&&t(r)}e.align!==void 0&&!Td.includes(e.align)&&t("align"),e.alignTablet!==void 0&&!Td.includes(e.alignTablet)&&t("alignTablet"),e.alignPhone!==void 0&&!Td.includes(e.alignPhone)&&t("alignPhone"),e.textStyle!==void 0&&!Sa(e.textStyle)&&t("textStyle"),e.sizeToken!==void 0&&!dC(e.sizeToken)&&t("sizeToken"),e.fontRole!==void 0&&!ra(e.fontRole)&&t("fontRole");for(let r of DN)e[r]!==void 0&&!aC(e[r])&&t(r);return o??e}function dC(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"&&fre.includes(l);return i(o)&&s(t)&&(r===void 0||i(r))&&(a===void 0||s(a))&&(n===void 0||gre(n,t))}function gre(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 fC(e){return e?.pxPhone&&dC(e)?{step:e.stepPhone??e.step,px:e.pxPhone}:null}function MN({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 Ire=[["font","role"],["font","fontRole"],["role","textStyle"],["line","lineHeight"],["letter","letterSpacing"]];function yre(e){let o=[];for(let[t,r]of Ire)t===e?o.push(r):r===e&&o.push(t);return o}function ms(e,o,t,r){let a={...us(e,o)},n=r==null?null:hre(t,r,a);if(n===null)delete a[t];else{a[t]=n;for(let s of yre(t))delete a[s]}return NN(e,o,a)}function HN(e,o){return NN(e,o,{})}function bre(e){return Xte(e)??"none"}function Sre(e){return qte(e)??""}var EN={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 wre(e,o){return ra(e.role)||(o?.blockDrawsStyle?null:Jte(e.textStyle))}function Ed(e,o){return e==="Text"&&o==="text"}var Cre={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 vre(e){let o=ci[e],t=U(Cre,o);return t?`var(--size-${o}, ${t})`:`var(--size-${o})`}function _d(e){let o={};return typeof e.lineHeight=="number"?o.lineHeight=e.lineHeight:e.line&&(o.lineHeight=ps(kre+e.line*tre,3)),typeof e.letterSpacing=="number"?o.letterSpacingEm=e.letterSpacing:e.letter&&(o.letterSpacingEm=ps(e.letter*rre,4)),o}var kre=1,fs="--sf-part-para";function Tre(e){e=dl(e);let o={};if(typeof e.sizePhone=="number"&&e.sizePhone>0)o.fontSize=Me(e.sizePhone,qr(e,"sizePhone"));else{let r=fC(e.sizeToken);if(r)o.fontSize=MN(r);else{let a=vh(e);a!==void 0&&(o.fontSize=Me(a,qr(e,"sizeTablet")))}}let t=e.alignPhone??Ch(e);return t&&(o.textAlign=t),o}function Ch(e){return e.alignTablet&&e.alignTablet!==e.align?e.alignTablet:void 0}function vh(e){let o=e.sizeTablet!==void 0&&qr(e,"sizeTablet")!==qr(e,"size")?e.sizeTablet:na("textSize",e.size,e.sizeTablet,void 0).tablet;return o&&o>0?o:void 0}function Pre(e){let o=dl(e),t={},r=vh(o);r!==void 0&&(t.fontSize=Me(r,qr(o,"sizeTablet")));let a=Ch(o);return a&&(t.textAlign=a),t}function WN(e,o){if(o==="desktop")return;let t=dl(e);return(o==="mobile"?Ch(t):void 0)??t.align}function Ere(e,o){if(o==="desktop")return e;let t=dl(e),r=vh(t),a=Ch(t);if(o==="tablet"){let i=e;return r!==void 0&&(i={...i,size:r,sizeUnit:t[jt.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[jt.sizePhone]};else{let i=fC(t.sizeToken);i?n={...n,size:void 0,sizeToken:i}:r!==void 0&&(n={...n,size:r,sizeUnit:t[jt.sizeTablet]})}let s=t.alignPhone??a;return s&&(n={...n,align:s}),n}function pC(e,o,t){return mC(Ere(e,o),kh,t)}function uC(e){return LN("size",e)}function $N(e,o){if(o==="desktop")return null;let t=dl(e);if(o==="mobile"){if(fC(t.sizeToken))return null;let r=vh(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 UN(e,o){let t=uC(o);if(!He(e,t))return e;let r={...e};return delete r[t],r}function zN(e,o,t){let r=pC(UN(e,o),o,t);return{fontFamily:r.fontFamily,fontSize:r.fontSize}}function mC(e,o,t){e=dl(e);let r=wre(e,t),a=_d(e),n=e.size?Me(e.size,qr(e,"size")):e.sizeToken?MN(e.sizeToken):r?vre(r):"";return{fontFamily:e.font?Rre(e.font):e.fontRole?`var(${EN[e.fontRole]})`:r?`var(${EN[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`:"",[fs]:e.paragraphSpacing?Me(e.paragraphSpacing,qr(e,"paragraphSpacing")):"",textTransform:Sre(e.case),textAlign:e.align??"",paddingTop:_N(e.padding,qr(e,"padding")),paddingBottom:_N(e.padding,qr(e,"padding")),color:_re(e.color),fontStyle:e.italic===!0?"italic":e.italic===!1?"normal":""}}var _re=e=>Fi(e),_N=(e,o)=>e===void 0?"":Me(e,o),ps=(e,o)=>Number(e.toFixed(o));function GN(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:Ore(Number.parseInt(e.fontWeight,10)),lineRatio:Number.isFinite(r)?ps(r/t,3):1.2,letterEm:Number.isFinite(a)?ps(a/t,4):0,align:Are(e.textAlign),case:bre(e.textTransform),paddingPx:Number.isFinite(n)?Math.round(n):0}}function Ore(e){return Number.isFinite(e)?Qte.reduce((o,t)=>Math.abs(t-e)<Math.abs(o-e)?t:o):400}function Are(e){for(let o of Td)if(o===e)return o;return e==="end"?"right":"left"}function jN(e,o){let t=ON(e);if(!t)return"";for(let r of Ba)if(ON(o(r.cssVar))===t)return r.key;return""}var ON=e=>(e.split(",")[0]??"").replace(/["']/g,"").replace(/\s+/g," ").trim().toLowerCase();function Rre(e){let o=li(e);return o?`var(${o.cssVar})`:""}function KN(e,o,t,r){return!o||Id(o)?.nodeId!==e?null:t.find(a=>r(a.getAttribute("class")))??t[0]??null}function hC(e,o){return ll(U(e,o))??{}}function xC(e,o,t=()=>kh,r=i=>i,a=Bre,n="desktop",s=()=>!1){let i=0;for(let{element:l,partId:d}of e){let f=Id(d)?.propKey;if(!f)continue;let u=hC(o,r(f)),p=pC(u,n,{blockDrawsStyle:s(f)});Sa(u.textStyle)?l.setAttribute?.(Cr,u.textStyle):l.removeAttribute?.(Cr);let m=tC.some(I=>l.style[I]),h=!1;for(let[I,w]of Object.entries(p))Nre(l,I,w),w&&(h=!0);if(m||tC.some(I=>p[I]))for(let I of Lre(l,a))for(let w of tC)I.style[w]=p[w]??"";h&&(i+=1)}return i}function Lre(e,o){let t=tn(e.textContent??""),r=[],a=e;for(let n=0;n<Fre&&o(a);n+=1){let s=a.parentElement;if(!s||tn(s.textContent??"")!==t)break;r.push(s),a=s}return r}var Fre=8;function Bre(e){let o=e;return typeof window>"u"||!o?.ownerDocument?!1:window.getComputedStyle(o).display==="inline"}var kh={fontKey:"",sizePx:16,weight:400,lineRatio:1,letterEm:0,align:"left",case:"none",paddingPx:0};function gC(e){if(!e||typeof e!="object")return null;let o={};Sa(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=jt[t];o[t]!==void 0&&aC(e[r])&&(o[r]=e[r])}return Object.keys(o).length?o:null}function IC(e,o){let t=gC(e);if(!t)return{};let r=pC(t,o);return{...r.fontFamily?{fontFamily:r.fontFamily}:{},...r.fontSize?{fontSize:r.fontSize}:{}}}function VN(e){return Sa(e?.textStyle)||!!e?.role||typeof e?.size=="number"&&e.size>0}function YN(e,o,t){if(!e||typeof e!="object")return{};let r=Np(e.role,o,ci)??{},a=o.sized?IC(UN(e,t),t):{};return{...r,...a}}function qN(e,o,t){t.fontFamily&&e.fontFamily===t.fontFamily&&(e.fontFamily=o.fontFamily),t.fontSize&&e.fontSize===t.fontSize&&(e.fontSize=o.fontSize)}function Nre(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===fs&&(t?a.setAttribute?.(AN,""):a.removeAttribute?.(AN))}var AN="data-sf-part-para",Th=Object.keys(mC({},kh)),rC=new Set(["color","overflowWrap",fs,"fontStyle"]),tC=Th.filter(e=>!rC.has(e));function XN(e,o,t,r=i=>i,a=()=>!1,n=()=>null,s=[]){let i=new Map;for(let u of e){let p=Vr(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(!Dre(u))continue;let p=RN(t,u,ll(o[u])??{},!1,n(u));p&&l.set(u,p)}let d=u=>{let p=r(u),m=n(p);if(!He(o,p)&&!m)return null;let h=ll(o[p])??{};return RN(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(Vr(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 RN(e,o,t,r,a){let n=mC(t,kh,{blockDrawsStyle:r}),s=Pre(t),i=Tre(t),l=Sa(t.textStyle)?t.textStyle:void 0;return!Object.values(n).some(Boolean)&&!Object.keys(s).length&&!Object.keys(i).length&&!l&&!a?null:{stamp:Mre(e,o),declarations:n,...Object.keys(s).length?{tablet:s}:{},...Object.keys(i).length?{phone:i}:{},...l?{textStyle:l}:{},...a?{motion:a}:{}}}function Dre(e){return e.startsWith("@")}function yC(e,o){return e?.kindRules.get(o)??null}function Mre(e,o){let t=r=>r.replace(/[^A-Za-z0-9_-]+/g,"-");return`${t(e)}~${t(o)}`}function bC(e){return e?{tablet:TN,phone:vd}:{tablet:Ih,phone:yh}}function ZN(e,{inBox:o=!1}={}){let{tablet:t,phone:r}=bC(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(([v,b])=>`${Hre(v)}: ${b}`).join("; "),p=`[${nC}="${l}"]`,m=f.filter(([S])=>!rC.has(S)),h=f.filter(([S])=>rC.has(S));m.length&&a.push(`${p}, *:has(> ${p}) { ${u(m)} }`),h.length&&a.push(`${p} { ${u(h)} }`),d[fs]&&(a.push(`*:has(> ${p}) { ${fs}: ${d[fs]} }`),a.push(...Ph(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 Ph(e,o){let t=`var(${fs})`,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 Hre=e=>e.replace(/[A-Z]/g,o=>`-${o.toLowerCase()}`);function JN(e,o){if(!e)return null;let t=tn(o),r=e.rules.get(t);if(r)return r;if(t.length<Wre||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 Wre=8;function QN(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 SC=e=>e==="sentence"?"none":void 0,rD=["font","color","size","sizeTablet","sizePhone","weight","italic","lineHeight","lineHeightTablet","lineHeightPhone","letterSpacing","letterSpacingTablet","letterSpacingPhone","paragraphSpacing","paragraphSpacingTablet","paragraphSpacingPhone","letterCase","largestSize","largestSizeTablet","largestSizePhone"],fl=["desktop","tablet","phone"],hs=(e,o)=>ke(e,o);function vC(e,o,t,r=pi()){return tD("textSize",o,e.sizeTablet,e.sizePhone,r)[t]}var Ure=[["lineSpacing","lineHeight","line"],["letterSpacing","letterSpacing","letter"]];function wC(e){for(let[o,t,r]of Ure)for(let a of fl)if(e===hs(o,a))return{key:ke(t,a),view:a,spacing:r};return{key:e,view:"desktop",spacing:null}}function Xr(e){let o={};for(let t of rD)e[t]!==void 0&&(o[t]=e[t]);return o}function kC(e,o){let{auto:t,...r}=e,a=new Set(o??[]),n=rD.filter(s=>a.has(s)&&e.values[s]===void 0);return n.length?{...r,auto:n}:r}function aD(e){let o=e.fonts,t=e.sizes,r=e.typography,a=W_(e.compression),n={"heading-1":{font:be(o.heading),size:q(t.headingLarge),weight:q(r.weight),lineHeight:a.lineHeight,letterSpacing:a.letterSpacing,letterCase:SC(r.case),largestSize:q(r.maxPx)},"heading-2":{font:be(o.heading2),size:q(t.headingMedium),weight:q(r.weight2),lineHeight:a.lineHeight,letterSpacing:a.letterSpacing,letterCase:SC(r.case2)},"heading-3":{font:be(o.heading3),size:q(t.headingSmall),weight:q(r.weight3),lineHeight:a.lineHeight,letterSpacing:a.letterSpacing,letterCase:SC(r.case3)},"body-1":{font:be(o.body),size:q(t.body)},"body-5":{font:be(o.label),size:q(t.label)}};return oD().map(({id:s,kind:i,name:l})=>({id:s,kind:i,name:l,values:Xr(n[s]??{})}))}function TC(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=>kC({...o,values:Xr(o.values??{})},Array.isArray(o.auto)?o.auto:void 0)):null}function nD(e){return TC(e)??[]}function sD(e){return TC(e)??oD().map(({id:o,kind:t,name:r})=>({id:o,kind:t,name:r,values:{}}))}function wa(e,o){let t=aD(o),r=TC(e);return r?r.map(a=>{let n={...CC(t,a.id)};for(let s of a.auto??[])delete n[s];return{...a,values:Xr({...n,...a.values})}}):t}var CC=(e,o)=>e.find(t=>t.id===o)?.values??{},eD=["heading-1","heading-2","heading-3"];function iD({saved:e,old:o,cur:t,next:r,sizeOf:a,panelView:n="desktop"}){let s=aD(o),i=sD(e),l=wa(i,o),d=[],f=r.map(p=>{let m=t.find(k=>k.id===p.id),h=i.find(k=>k.id===p.id);if(!m||!h){let k=zre([p],a,n)[0],F=k.values.color;return F===void 0?k:{...k,values:{...k.values,color:kt(F)}}}let I={...h.values},w=new Set(h.auto??[]),S=p.values,v=m.values,b=[...new Set([...Object.keys(S),...Object.keys(v)])].filter(k=>JSON.stringify(S[k])!==JSON.stringify(v[k])),y=k=>wC(k).spacing==="letter";b.sort((k,F)=>Number(y(k))-Number(y(F)));for(let k of b){let{key:F,view:T,spacing:D}=wC(k),P=F,L=S[k];if(L===void 0){delete I[P],CC(s,p.id)[P]!==void 0&&(d.push([p.id,P]),w.add(P));continue}if(w.delete(P),D==="line")I[P]=pl(L/100,3);else if(D==="letter"){let C={...l.find(R=>R.id===p.id)?.values??{}};for(let R of b)S[R]===void 0&&delete C[wC(R).key];let A=Xr({...C,...I}),E=vC(A,a({...p,values:A}),T);I[P]=E?pl(L/E,4):0}else I[P]=L}return kC({id:p.id,kind:p.kind,name:p.name,values:Xr(I)},w)}),u=o.compression;if(d.some(([p,m])=>(m==="lineHeight"||m==="letterSpacing")&&eD.includes(p))&&Bn(u)!=="normal"){for(let p of eD){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]=CC(s,p)[I]);m.values=Xr(h)}u="normal"}return{saved:f,old:{...o,compression:u}}}function lD(e,o){let t={text_styles:e.saved};return e.old.compression!==o.compression&&(t.heading_compression=Bn(e.old.compression)),t}var pl=(e,o)=>Number(e.toFixed(o)),cD=(e,o)=>fl.indexOf(e)<fl.indexOf(o)?o:e;function dD(e,o,t="desktop"){return e.map(r=>{let a={...r.values},n=o(r);for(let s of fl){let i=ke("lineHeight",s),l=r.values[i],d=r.values[ke("letterSpacing",s)];delete a[i],l!==void 0&&(a[hs("lineSpacing",s)]=pl(l*100,1));let f=cD(s,t);d!==void 0&&(a[hs("letterSpacing",s)]=pl(d*vC(r.values,n,f),f===s?2:4))}return{id:r.id,kind:r.kind,name:r.name,values:a}})}function zre(e,o,t="desktop"){return e.map(r=>{let a=r.values,n={...a};for(let d of fl)delete n[hs("lineSpacing",d)],delete n[hs("letterSpacing",d)];let s={id:r.id,kind:r.kind,name:r.name,values:Xr(n)},i={...s.values},l=o({...s,values:{...s.values}});for(let d of fl){let f=a[hs("lineSpacing",d)],u=a[hs("letterSpacing",d)];if(typeof f=="number"&&(i[ke("lineHeight",d)]=pl(f/100,3)),typeof u=="number"){let p=vC(s.values,l,cD(d,t));i[ke("letterSpacing",d)]=p?pl(u/p,4):0}}return{...s,values:Xr(i)}})}function yHe(e){let o={fonts:xc({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:Ry({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:Bn(e.heading_compression),typography:U_(e)},t=e.text_styles??null,r=Array.isArray(t)?PC(wa(t,o),o):o;return{fonts:xc(r.fonts),sizes:Ry(r.sizes),compression:Bn(r.compression),typography:r.typography,textStyles:t}}function PC(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 fD(e){let o=[];for(let t of e){let r=t.values,a=`.${QN(t)}`,n=`[${Cr}="${t.id}"]`,s=`${a}, ${n}`,i=[],l=r.font!==void 0?Ba.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=Fi(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=$re(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(...Ph(`:is(${s})`,`*:has(> ${n})`))),o.push(...Gre(t,s,a,n))}return o.join(`
|
|
4
|
-
`)}function Gre(e,o,t,r){let a=e.values,n=na("textSize",a.size,a.sizeTablet,a.sizePhone),s=na("textSize",a.largestSize,a.largestSizeTablet,a.largestSizePhone),i=na("same",a.lineHeight,a.lineHeightTablet,a.lineHeightPhone),l=na("same",a.letterSpacing,a.letterSpacingTablet,a.letterSpacingPhone),d=na("spacing",a.paragraphSpacing,a.paragraphSpacingTablet,a.paragraphSpacingPhone),f=tD("textSize",a.size,a.sizeTablet,a.sizePhone,pi()),u=jre[e.id],p=[];for(let[m,h]of[["tablet",Ih],["phone",yh]]){let I=[],w=[],S=f[m],v=s[m],b=n[m]===void 0&&v===void 0||S===void 0?void 0:v===void 0?S:Math.min(S,v);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(...Ph(`: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 jre={"heading-1":"headingLarge","heading-2":"headingMedium","heading-3":"headingSmall","body-1":"body","body-5":"label"};function pD(e){return e!==!0&&e!==!1?"":`em.text-accent { font-style: ${e?"italic":"normal"} }`}function uD(e){return e?wh[e]:void 0}function EC(e){let o=_d(e);return Xr({font:e.font,color:e.color===void 0?void 0:kt(e.color),size:e.size,weight:e.weight,italic:e.italic,lineHeight:o.lineHeight,letterSpacing:o.letterSpacingEm,paragraphSpacing:e.paragraphSpacing,letterCase:e.case})}function mD(e){return Object.keys(EC(e)).length>0}function hD({saved:e,old:o,styleId:t,values:r}){let a=sD(e);return{saved:Kre(a,t,r),old:o}}function Kre(e,o,t){return e.map(r=>r.id===o?kC({...r,values:Xr({...r.values,...t})},r.auto):r)}var xD=["font","color","size","weight","emphasis","lineSpacing","letterSpacing","paragraphSpacing","letterCase","largestSize"],Zre=["size","lineSpacing","letterSpacing","letterCase"],Jre=500,_C=Ba.map(e=>({value:e.key,label:e.label,family:`var(${e.cssVar})`,italic:e.italicLoaded}));function gD({saved:e,old:o,colours:t,colourNameOf:r,sizeOf:a,onChange:n,openId:s,onOpenChange:i,readOnly:l=!1,withoutSize:d=!1}){let f=Xre(),[u,p]=Yre(null),m=wa(e,o),h=Ci(f),I=dD(m,a,h);return Vre(qre,{styles:I,onChange:w=>n(iD({saved:e,old:o,cur:I,next:w,sizeOf:a,panelView:h})),fonts:_C,colours:t,colourNameOf:r,settings:d?xD.filter(w=>w!=="size"):xD,auto:Zre,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")),v={};return S?.values.font&&w.id!==S.id&&(v.font=S.values.font),w.kind==="heading"&&(v.weight=Jre),v}})}var yD=["font","size","weight","emphasis"],oae=500;function tae({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 rae(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 bD(e){let{headingWeight:o,open:t,onOpenChange:r,onChange:a,withoutSize:n=!1}=e,s=tae(e);return ID(eae,{label:c("Emphasis"),children:ID(Qre,{style:s,fonts:_C,settings:n?yD.filter(i=>i!=="size"):yD,auto:["size"],fallback:()=>({weight:o??oae}),open:t,onOpenChange:r,onChange:i=>rae(s,i).forEach(a)})})}import{viewKeyAt as kD}from"efficient-easel/draw";import{shownUnitAt as cae,unitKeyOnWrite as dae}from"efficient-easel/screen/lib/content/length-units";import{convertRowLength as aae,rowUnits as nae,unitPickPatch as sae}from"efficient-easel/screen/lib/content/length-units";import{viewKeyAt as iae}from"efficient-easel/draw";var lae=["cornerRadius","siteWidth","siteGutter","siteGutterPhone","blockGap","blockGapPhone"],Eh={cornerRadius:{number:"corner_radius_px",kind:"radius",grid:A_,tier:"desktop"},siteWidth:{number:"site_width",kind:"size",grid:Ke,tier:"desktop"},siteGutter:{number:"site_gutter",kind:"spacing",grid:st,tier:"desktop"},siteGutterPhone:{number:"site_gutter_phone",kind:"spacing",grid:xr,tier:"mobile"},blockGap:{number:"block_gap",kind:"gap",grid:zt,tier:"desktop"},blockGapPhone:{number:"block_gap_phone",kind:"gap",grid:zt,tier:"mobile"}};function _h(e){return{number:Eh[e].number,unit:u_[`${e}Unit`]}}function SD(e,o,t){let r=_e(t),{number:a,unit:n}=_h(e);return{[a]:o,[n]:o===null||r==="px"?null:r}}function Oh(e,o,t,r){let{kind:a,grid:n,tier:s}=Eh[e],i=_e(t),l=_e(r);return i===l?o:aae(o,i,l,s,{kind:a},n)}function wD(e,o,t,r){let{number:a,unit:n}=_h(e),s=sae({[a]:o},i=>Oh(e,i,t,r),n,_e(r),"px");return{[a]:s[a],[n]:s[n]??null}}function CD(e,o){let{kind:t,grid:r}=Eh[e];return p_(t,_e(o),r)}function vD(e){return nae({kind:Eh[e].kind},ga)}function OC(e,o){let t=iae(e,o);if(!lae.includes(t))throw new Error(`no site length row ${t}`);return t}function Od(e,o,t,r,a){let{siteLengthUnits:n,setSiteLengthUnits:s}=ce(),i=`${e}Unit`,l=n[i],d=cae({n:a?.figure??null,u:a?.unit??null,[kD("n","mobile")]:o,[kD("u","mobile")]:l??null},{n:"n"},"u","mobile"),f=h=>s({[i]:h==="px"?null:h}),u=h=>{t(h);let I=dae(i,l,d,"px",h===null);i in I&&f(I[i]==null?null:_e(I[i])),r(SD(e,h,d),h===null)},p=h=>{let I=_e(h);if(I===d||(f(I),o===null))return;let w=wD(e,o,d,I);t(w[_h(e).number]),r(w,!0)},m=a?a.unit===d?a.figure:Oh(e,a.figure,a.unit,d):null;return{length:{unit:d,grid:CD(e,d),units:{options:vD(e),onChange:p,label:c("Unit")}},write:u,rest:m,shown:h=>Oh(e,h,"px",d)}}import{EmptyState as Lae,SliderGroup as Fae,Tabs as Bae,Tooltip as J4e,tabButtonId as Nae,tabPanelId as Dae}from"efficient-shell/ui";import{ContrastIcon as Mae,SettingsIcon as Hae,TypeIcon as Wae}from"efficient-easel/icons";function TD(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 NC}from"react/jsx-runtime";import{ListIcon as Sae,PaddingTopIcon as wae}from"efficient-easel/icons";import{jsx as Ah}from"react/jsx-runtime";import{SettingsDefaultReset as fae,SettingsField as pae,SettingsSegmented as uae}from"efficient-easel/panel";import{WidthIcon as mae}from"efficient-easel/icons";function PD({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 Ah(pae,{label:d,labelId:a,icon:Ah(mae,{}),value:i?n:void 0,changed:!i,action:Ah(fae,{words:le()?.panel,label:d,changed:!i,onReset:()=>t(void 0)}),hint:s,children:Ah(uae,{options:[{label:c(ts.full),id:"full"},{label:c(ts.page),id:"content"}],value:l,ariaLabel:d,onChange:t})})}import{HEADER_TYPE as AC,FOOTER_TYPE as hae}from"efficient-easel/draw";var xae=new Set(["Hero","HeroSingle","IntroBleed"]),ED={min:56,max:140,default:88},a4e={min:0,max:120,step:2,default:32},n4e=`var(--sf-header-h, ${ED.default}px)`,gae="--sf-header-set-h",s4e="--sf-header-h",i4e=`var(${gae}, ${ED.default}px)`,_D="sf-header-clearance",OD="sf-sticky-underheader";function Ad(e){return e?.find(o=>o?.type&&o.type!==AC)??null}function AD(e){let o=Ad(e)?.type;return!o||!xae.has(o)}function RD(e){return!AD(e)}function RC(e){return!!e?.some(o=>o?.type===AC)}function LD(e){return!e||e.length===0?!1:!e.some(o=>o?.type===AC||o?.type===hae)}var Iae=["auto","shared","own"],LC="auto",yae="topSpace",FD="data-top-space";function bae(e){return Iae.includes(e)?e:LC}function FC(e,o){let t=bae(e?.props?.[yae]);return t==="own"?!0:t==="shared"?!1:AD(o)}function BD(e,o){return FC(e,o)?"own":null}function Cae(){return{type:"custom",render:({value:e,onChange:o})=>NC(PD,{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 vae=[{label:"Auto",value:"auto"},{label:"Shared",value:"shared"},{label:"Its own",value:"own"}],I4e={pageBackground:xB(),topSpace:Et("Top space",NC(wae,{}),vae,LC),widthChoice:Cae()},Rd=["pageBackground","topSpace","widthChoice"],kae="Record type",BC=new Map,ND=-1;function Tae(e){ND!==fb()&&(BC.clear(),ND=fb());let o=cb(),t=o.some(a=>a.key===e)?"":e,r=BC.get(t);return r||(r=Et(kae,NC(Sae,{}),[...o.map(a=>({label:a.label,value:a.key})),...t?[{label:t,value:t}]:[]],Wt),BC.set(t,r)),r}var DD=new WeakMap;function y4e(e,o){if(!Wc()||cb().length<2||Ou in e)return e;let t=Tae(Hc(o)),r=DD.get(e);if(r&&r.row===t)return r.fields;let a={[Ou]:t,...e};return DD.set(e,{row:t,fields:a}),a}import{previewFrame as $ae}from"efficient-easel/screen/lib/document/preview-dom";var MD="background";function HD(e){let o=pt(yi(e));return Bi({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 WD(e){return HD(e).filter(o=>o.key!==MD)}function $D(e){let o=HD(e).filter(t=>t.key===MD);return t=>{let r=kt(t);return o.find(a=>a.key===r)?.value??r}}import{useEasel as Pae}from"efficient-easel/easel";function Rh({themeFromDocument:e,persist:o}){let{appState:t,dispatch:r}=Pae(T=>T),{fonts:a,setFonts:n,sizes:s,setSizes:i,headingCompression:l,setHeadingCompression:d,headingTypography:f,setHeadingTypography:u,textStyles:p,setTextStyles:m}=ce(),h=t.data,I=h.root?.props??{},w=e?xc(I.fonts):a,S=e?__:s,v=e?Bn(I.headingCompression):l,b=e?Jp(I.headingTypography):f,y={fonts:w,sizes:S,compression:v,typography:b},k=e?I.textStyles:p,F=T=>r({type:"replaceRoot",root:{...h.root,props:{...I,...T}},recordHistory:!0});return{fonts:w,sizes:S,compression:v,typography:b,old:y,saved:k,write:(T,D)=>{let P=PC(wa(T.saved,T.old),T.old);e?F({textStyles:T.saved,fonts:P.fonts,headingCompression:P.compression,headingTypography:P.typography}):(m(T.saved),n(P.fonts),i(P.sizes),d(P.compression),u(P.typography)),o(lD(T,y),D)},writeRoot:F}}import{pictureShadowColor as Uae}from"efficient-easel/screen/lib/document/shadow-values";var MC="sf-site-styles",zae="sf-site-styles-tabpanel",GD="text",hl="basics",UD="this-page-group",ul=[{id:hl,label:"Basics",icon:Pe(Hae,{})},{id:"theme",label:"Theme",icon:Pe(Mae,{})},{id:"text",label:"Text",icon:Pe(Wae,{})}];function Gae({themeFromDocument:e,persist:o}){let{appState:t,dispatch:r}=zD(d=>d),{theme:a,setTheme:n}=ce(),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 Pe(sN,{value:e?i.theme:a,onChange:l})}function jae({themeFromDocument:e,persist:o}){let[t,r]=HC(null),{theme:a,setFonts:n,setSizes:s,setHeadingTypography:i}=ce(),l=Rh({themeFromDocument:e,persist:o}),{old:d,saved:f,writeRoot:u}=l,p=l.fonts,m=l.sizes,h=l.typography,I=T=>T.values.size??qae(Kae[T.id]??"body")??Vae[T.kind],w=T=>l.write(T),S=WD(a),v=$D(a),b=T=>{let D={...p,accent:T};e?u({fonts:D}):n(D),o({accent_font:T})},y=T=>{s({...m,accent:T}),o({accent_size_px:T})},k=T=>{let D={...h,weightStrong:T};e?u({headingTypography:D}):i(D),o({heading_weight_strong:T})},F=T=>{let D={...h,italicStrong:T};e?u({headingTypography:D}):i(D),o({accent_italic:T})};return xs(ml,{children:[Pe(gD,{saved:f,old:d,colours:S,colourNameOf:v,sizeOf:I,onChange:w,openId:t===DC?null:t,onOpenChange:r,withoutSize:e}),Pe(bD,{font:p.accent,size:m.accent,weight:h.weightStrong,italic:h.italicStrong,headingWeight:h.weight,open:t===DC,onOpenChange:T=>r(T?DC:null),onChange:T=>{T.key==="font"?b(T.value):T.key==="size"?y(T.value):T.key==="weight"?k(T.value):F(T.value)},withoutSize:e})]})}var DC="accent",Kae={"heading-1":"heading","heading-2":"heading2","heading-3":"heading3","body-1":"body","body-5":"label"},Vae={heading:32,body:14},Yae={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 qae(e){if(typeof document>"u")return null;let o=($ae()?.contentDocument??document).querySelector(Yae[e]);if(!o)return null;let t=parseFloat(getComputedStyle(o).fontSize);return Number.isFinite(t)?t:null}function Xae({themeFromDocument:e,persist:o}){let{appState:t,dispatch:r}=zD(p=>p),{cornerRadiusPx:a,setCornerRadiusPx:n}=ce(),s=t.data,i=s.root?.props??{},l=i.cornerRadiusPx===void 0?Zp[Xp(i.cornerStyle)]:Dt(i.cornerRadiusPx),d=e?l:a,f=Od("cornerRadius",a,n,o),u=p=>r({type:"replaceRoot",root:{...s.root,props:{...i,...p}},recordHistory:!0});return Pe(iN,{value:d,onChange:p=>{e?(u({cornerRadiusPx:p}),o({corner_radius_px:p})):f.write(p)},...e?{}:{length:f.length}})}function Zae({persist:e}){let{siteWidth:o,setSiteWidth:t,sectionBackgroundWidth:r,setSectionBackgroundWidth:a,sectionContentWidth:n,setSectionContentWidth:s}=ce(),i=WC(),l=Od("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 xs(ml,{children:[Pe(hh,{value:r??"full",changed:r!==null,detail:c("Full width"),onChange:u,onReset:()=>u(null),hint:wN}),Pe(xh,{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:CN,length:l.length})]})}function Jae({persist:e}){let{siteGutter:o,siteGutterPhone:t,setSiteGutter:r,setSiteGutterPhone:a,siteLengthUnits:n}=ce(),s=bN(WC(),{gutter:o,phone:t,gutterUnit:n.siteGutterUnit}),i=s?.key==="site_gutter_phone",l=Od(OC("siteGutter",i?"mobile":"desktop"),s?.value??null,i?a:r,e);return s?Pe(SN,{value:s.value,onChange:l.write,unsetPx:s.unsetPx,restsOn:l.shown(s.unsetPx),bounds:s.bounds,length:l.length}):null}function Qae({persist:e}){let{blockGap:o,blockGapPhone:t,setBlockGap:r,setBlockGapPhone:a,siteLengthUnits:n}=ce(),s=uN(WC(),{gap:o,phone:t}),i=s?.key==="block_gap_phone",l=s?.followsPx==null?null:{figure:s.followsPx,unit:_e(n.blockGapUnit)},d=Od(OC("blockGap",i?"mobile":"desktop"),s?.value??null,i?a:r,e,l);return s?Pe(mN,{value:s.value,onChange:d.write,followsPx:d.rest,followsUnit:d.length.unit,length:d.length}):null}function ene({persist:e}){return xs(ml,{children:[Pe(Zae,{persist:e}),Pe(Jae,{persist:e}),Pe(Qae,{persist:e})]})}function one(e){return{card_shadow:e}}function tne(e){return e===null?{shadow_color:null}:{shadow_color:Uae(e)}}function rne(e){return{hover_effect:e}}function ane({persist:e}){let{cardShadow:o,setCardShadow:t,shadowColor:r,setShadowColor:a,hoverEffect:n,setHoverEffect:s}=ce();return xs(ml,{children:[Pe(lN,{value:o,onChange:i=>{t(i),e(one(i),!0)}}),Pe(fN,{value:r,onChange:i=>{a(i),e(tne(i),i===null)}}),Pe(hN,{value:n,onChange:i=>{s(i),e(rne(i),!0)}})]})}function nne(e){return{photography_grayscale:e}}function sne({persist:e}){let{photographyGrayscale:o,setPhotographyGrayscale:t}=ce();return Pe(gN,{value:o,onChange:r=>{t(r),e(nne(r),!0)}})}function ine({persist:e}){return Pe(ml,{children:Pe(sne,{persist:e})})}function lne(e){return{share_button_on_posts:e}}function cne({persist:e}){let{shareButtonOnPosts:o,setShareButtonOnPosts:t}=ce();return Pe(IN,{value:o,onChange:r=>{t(r),e(lne(r),!0)}})}function xl(){let{websiteName:e}=ce();return e?.trim()||AO}function Lh({themeFromDocument:e=!1,tokenRef:o,siteId:t,onNotify:r,tab:a,onTabChange:n,initialTab:s,revealPageGroup:i=!1,onPageGroupRevealed:l}){let{persist:d}=Wi({themeFromDocument:e,tokenRef:o,siteId:t,onResult:w=>{let S=TD(w);S&&r?.(S.msg,S.tone)}}),[f,u]=HC(s??ul[0].id),p=a!==void 0,m=p?a:f,h=p?n??(()=>{}):u,I=ul.find(w=>w.id===m)??ul[0];return xs(Fae,{children:[Pe(pne,{activeId:I.id,onSelect:h}),xs("div",{id:Dae(MC,I.id),className:zae,role:"tabpanel","aria-labelledby":Nae(MC,I.id),children:[m===hl&&xs(ml,{children:[Pe(Xae,{themeFromDocument:e,persist:d}),!e&&Pe(ane,{persist:d}),!e&&Pe(ene,{persist:d}),!e&&Pe(ine,{persist:d}),!e&&Pe(cne,{persist:d}),Pe(dne,{reveal:i,onRevealed:l})]}),m==="theme"&&Pe(Gae,{themeFromDocument:e,persist:d}),m==="text"&&Pe(jae,{themeFromDocument:e,persist:d})]})]})}function dne({reveal:e,onRevealed:o}){let[t,r]=HC(!0),a=Rae(o);return a.current=o,Aae(()=>{if(!e)return;r(!0);let n=requestAnimationFrame(()=>{document.getElementById(UD)?.scrollIntoView({block:"start"}),a.current?.()});return()=>cancelAnimationFrame(n)},[e]),Pe(Oae,{title:c("This page"),open:t,onToggle:r,id:UD,children:Pe(fne,{})})}function fne(){let{fields:e,values:o,readOnly:t,onChange:r}=Eae(),a=Object.fromEntries(Rd.filter(n=>n in e).map(n=>[n,e[n]]));return Object.keys(a).length===0?Pe(Lae,{variant:"none",icon:!1,message:c("This page has no look of its own to set.")}):Pe(_ae,{fields:a,values:o,onChange:r,readOnly:t,tabs:!1,idPrefix:"this-page",ariaLabel:c("This page")})}function pne({activeId:e,onSelect:o}){return Pe("div",{className:"es-insp-tabs",children:Pe(Bae,{variant:"underline",block:!0,labelsFit:!0,"aria-label":c("Styles"),idPrefix:MC,value:e,onChange:o,items:ul.map(t=>{let r=c(t.label);return{id:t.id,icon:t.icon,label:r}})})})}import{InspectorIconButton as pbe}from"efficient-easel/chrome";import{Input as ube,PopupMenu as mbe,PopupMenuItem as VG,toast as YG}from"efficient-shell/ui";import{LayersTree as hbe,TreeGroupLabel as xbe,TreeRow as qG,TreeRowAction as dI}from"efficient-easel/tree";import{AddIcon as gbe,DuplicateIcon as Ibe,PageIcon as ybe,SettingsIcon as bbe}from"efficient-easel/icons";import{PagesIcon as Sbe}from"efficient-easel/rail";import{useEaselHost as wbe}from"efficient-easel/screen/lib/host";import{useEaselSession as hP}from"efficient-easel/screen/lib/session-context";import{useCallback as Fh,useEffect as une,useSyncExternalStore as mne}from"react";import{useScreenDocument as YD}from"efficient-easel/screen/components/ScreenDocumentContext";var jD=new WeakMap;function Ld(e){let o=jD.get(e);return o||(o={rows:null,loading:null,listeners:new Set},jD.set(e,o)),o}function $C(e,o){e.rows=o;for(let t of e.listeners)t()}var Bh=new Set;function Nh(e,o){o?Bh.add(e):Bh.delete(e)}function KD(e){let o=Ld(e),t=e.listPages().then(r=>$C(o,Bh.size?r.filter(a=>!Bh.has(a.id)):r),()=>$C(o,[])).finally(()=>{o.loading===t&&(o.loading=null)});return o.loading=t,t}var VD=()=>null,hne=()=>()=>{};function Fd(){let{adapter:e,ready:o}=YD(),t=Fh(i=>{let{listeners:l}=Ld(e);return l.add(i),()=>l.delete(i)},[e]),r=Fh(()=>Ld(e).rows,[e]),a=mne(o?t:hne,o?r:VD,VD);une(()=>{if(!o)return;let i=Ld(e);i.rows===null&&!i.loading&&KD(e)},[e,o]);let n=Fh(()=>o?KD(e):Promise.resolve(),[e,o]),s=Fh(i=>$C(Ld(e),i),[e]);return{rows:a,reload:n,setRows:s,getRows:r}}function xne(e,o){return e?.find(t=>t.slug===o)?.label?.trim()||`/${o}`}function qD(){let{currentSlug:e}=YD(),{rows:o}=Fd();return xne(o,e)}import{canDuplicatePage as Cbe,DuplicatePageDialog as vbe}from"efficient-easel/page-copy";import{jsx as Lt,jsxs as fP}from"react/jsx-runtime";import{useEffect as Xye,useMemo as Zye,useRef as Jye,useState as pP}from"react";import{useScreenDocument as Qye}from"efficient-easel/screen/components/ScreenDocumentContext";import{useEaselSession as ebe}from"efficient-easel/screen/lib/session-context";import{uniqueSlug as zG}from"efficient-easel/page-copy";import{AddIcon as obe}from"efficient-easel/icons";import{Dialog as tbe,EmptyState as rbe,Grid as abe,SidebarActionButton as nbe,SidebarLayout as sbe,SidebarNavItem as uP,toast as GG}from"efficient-shell/ui";import{jsx as Tr,jsxs as I6}from"react/jsx-runtime";import{useMemo as fme,useState as pme}from"react";import{CanvasFrame as ume}from"efficient-easel/easel";import{Button as mme,FitFrame as hme}from"efficient-shell/ui";import{jsx as eM,Fragment as Ene,jsxs as _ne}from"react/jsx-runtime";import{useEffect as oM,useLayoutEffect as One}from"react";var Dh="data-theme",XD="light";function gne(e){return e.getAttribute(Dh)===XD?"light":"dark"}function Ine(e,o){return gne(e)===o?!1:(o==="light"?e.setAttribute(Dh,XD):e.removeAttribute(Dh),!0)}function yne(e){return Hy(e).getItem(Ey)}function I5e(e,o){Hy(e).setItem(Ey,o)}function bne(e,o,t=new Date().getHours()){return m_({mode:o.mode,override:yne(e),switchShown:o.switchShown,hour:t})}function ZD(e,o){let t=e.documentElement;if(!t)return()=>{};let r=()=>Ine(t,bne(e,o));r();let a=e.defaultView?.MutationObserver;if(!a)return()=>{};let n=new a(r);return n.observe(t,{attributes:!0,attributeFilter:[Dh]}),()=>n.disconnect()}var Sne="style";function wne(e,o){let t=qp(o),r=!1;for(let a of E_){let n=t[a]??"";e.style.getPropertyValue(a)!==n&&(n?e.style.setProperty(a,n):e.style.removeProperty(a),r=!0)}return r}function JD(e,o){let t=e.body;if(!t)return()=>{};let r=()=>wne(t,o);r();let a=e.defaultView?.MutationObserver;if(!a)return()=>{};let n=new a(r);return n.observe(t,{attributes:!0,attributeFilter:[Sne]}),()=>n.disconnect()}import{VIEW_DESKTOP_MIN as Cne,VIEW_TABLET_MIN as vne}from"efficient-easel/screen/lib/content/view-tiers";var Ca={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"},At=Ca,kne=e=>e.flatMap(o=>[`[${o}] p`,`[${o}] li`]).join(","),Tne=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(kne([At.fit,At.fitTablet,At.fitPhone]))};
|
|
11
|
-
var CANDIDATES = SELECTOR + "," + SHRINK_BODY;
|
|
12
|
-
var MIN_SCALE = 0.3, MIN_PX = 16, SLACK = 1, PHONE_BELOW = ${Fr};
|
|
13
|
-
var TABLET_MIN = ${vne}, DESKTOP_MIN = ${Cne};
|
|
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(At.fitTablet)}, ${JSON.stringify(At.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(At.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(At.fit)}, ${JSON.stringify(At.fitTablet)}, ${JSON.stringify(At.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(At.min)}, ${JSON.stringify(At.minTablet)}, ${JSON.stringify(At.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(At))},
|
|
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);`,Pne="storefront-fit-words";function QD(e){let o=e.createElement("script");return o.id=Pne,o.textContent=Tne,(e.head??e.documentElement).appendChild(o),()=>{e.__sfFitWords?.(),o.remove()}}var Ane=`
|
|
306
|
-
[${co}][${co}] { cursor: text; }
|
|
307
|
-
`;function Mh({children:e,document:o}){let{theme:t,themeMode:r,themeSwitchShown:a}=ce(),n=ko(t);return oM(()=>{if(o)return ZD(o,{mode:r,switchShown:a})},[o,r,a]),oM(()=>{if(o)return JD(o,n)},[o,n]),One(()=>{if(o)return QD(o)},[o]),_ne(Ene,{children:[eM(WO,{}),eM("style",{children:Ane}),e]})}import{jsx as S$}from"react/jsx-runtime";import{Render as rue}from"efficient-easel/render";import{jsx as gl}from"react/jsx-runtime";import{createContext as Rne,useContext as Lne,useMemo as Fne}from"react";var UC=Rne(null);function Bne({children:e}){return gl(UC.Provider,{value:"first",children:e})}function Wh({children:e}){return gl(UC.Provider,{value:"below",children:e})}function Bd(){return Lne(UC)}function zC(){return Bd()==="below"?{loading:"lazy"}:{}}function $h(e){let o=zC();return gl("img",{...e,...o})}var tM="laterSlideIds",Nne=new Set(["Breadcrumb","CategoryBar","Divider","Spacer","Ticker"]);function rM(e){return Ad(e?.filter(o=>!o?.type||!Nne.has(o.type)))}function Hh(e,o=[]){if(Array.isArray(e))for(let t of e)Hh(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))Hh(r,o)}return o}function aM(e,o){let t=o?.type,r=o?.props?.id;return Fne(()=>{let a=t?e.components[t]:void 0;if(!t||!a)return e;let n=a.render,s=i=>i.id===r?gl(Bne,{children:gl(n,{...i})}):gl(n,{...i});return{...e,components:{...e.components,[t]:{...a,render:s}}}},[e,t,r])}function nM(e){return e.props?go(e,o=>{let t=so(o,nM),r=e.type===tO&&t.every(a=>a.type===Qp)?Q_(t):t;return r.length!==o.length||r.some((a,n)=>a!==o[n])?r:o}):e}function sM(e){return bp(e,o=>so(o,nM))}var Dne="Flex",iM="ListSearch",lM=["FAQ"],Mne="listKey";function cM(e,o){let t={search:e.type===iM,list:lM.includes(String(e.type))};return go(e,r=>{for(let a of r){let n=cM(a,o);t.search||=n.search,t.list||=n.list}return r}),e.type===Dne&&t.search&&t.list&&String(e.props?.id??"")?(o.add(e),{search:!1,list:!1}):t}function dM(e,o,t){let r=o.has(e)?String(e.props?.id):t,a=go(e,n=>so(n,s=>dM(s,o,r)));return r&&(e.type===iM||lM.includes(String(e.type)))?{...a,props:{...a.props,[Mne]:r}}:a}function fM(e){return ii(e,o=>{let t=new Set;for(let r of o)cM(r,t);return t.size?so(o,r=>dM(r,t,"")):o})}import{isNode as Pie,isNodeList as U2}from"efficient-easel/data";import{jsx as Ye,Fragment as hie,jsxs as Pa}from"react/jsx-runtime";import{jsx as mM}from"react/jsx-runtime";import{SITE_SIDE as Hne}from"efficient-easel/screen/lib/content/length-units";var pM="sideSpace",gs=Hne,U5e=[{value:"box",label:"Box"},{value:gs,label:"Site"}],z5e="box",G5e="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 uM(e){return e===gs?gs:"box"}function j5e(e){return e===gs?gs:void 0}import{isNodeList as Wne}from"efficient-easel/data";var GC=new Set(["FAQ"]);function Rt(e,o){if(!GC.has(e))return!1;let t=o.template;return typeof t=="function"?(t.blockCount??0)>0:Wne(t)}var xM={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}},gM=new Set(Object.keys(xM));function jC(e,o){return o?.innerPadding??U(xM,e)}var Il=e=>jC(e)??{};var Uh=new Set(["Flex","Text","Heading","ImageBlock"]),$ne=new Set(["Divider"]),Une=new Set(["Hero","HeroSingle","IntroBleed","CategoryBar","DocTabs"]),hM=new Set(["ProductGrid"]);function KC(e,o,t=!1){let r=e.render;e.render=a=>{if(o?.(a))return r(a);let n=ed({...bS(a,ha,t),sideSpace:uM(a.sideSpace)}),s=r(a);if(!n)return s;let i=f=>mM(ue,{className:f?`${n.className} ${f}`:n.className,style:n.style,children:s}),l=Ha(a,{atSectionLine:!0}),d=Ha(a);return l===d?i(l):mM(su,{line:"by-box",draw:f=>i(f?d:l)})}}var IM={name:"sectionPadding",applies:(e,o,t)=>o.isSection(e)&&!Une.has(e)&&!!t&&typeof t.render=="function",panel(e,o,t){let r=jC(o,e);if(r){e.fields={...e.fields,...t.sidesPaddingFields({keys:Gr,unitKey:Jn,fallback:r,tablet:!0,siteSide:!0})};return}if(hM.has(o))return;let a=[Gr.top,Gr.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(!jC(o,e)){if(hM.has(o)){KC(e);return}Uh.has(o)||$ne.has(o)||KC(e,o==="Flex"?t=>Ab(t.bgImage):GC.has(o)?t=>Rt(o,t):void 0,!0)}}},zne=["Heading","Text","ImageBlock"],Gne=["LogoBlock"],yM={name:"blockPadding",applies:(e,o,t)=>(zne.includes(e)||Gne.includes(e))&&!!t&&typeof t.render=="function",panel(e,o,t){e.fields={...e.fields,...t.sidesPaddingFields({tablet:!0,siteSide:!0})}},draw(e,o){Uh.has(o)||KC(e,void 0,!0)}};import{createContext as VC,useContext as zh}from"react";var bM=VC(null);function s3e(){return zh(bM)===!0}function i3e(){return zh(bM)!==null}var jne=VC(!1);function l3e(){return zh(jne)}function c3e(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 Gh=VC(null);function d3e(){return zh(Gh)}import{jsx as Is}from"react/jsx-runtime";import{Component as Qne,createContext as ese,lazy as T3e,Suspense as P3e,useContext as ose,useSyncExternalStore as tse}from"react";function Kne(e,o){let t=e.trim();if(!jh(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 u3e(e){return e.startsWith("/")||jh(e)}function jh(e){return/^(?:https?:)?\/\//i.test(e.trim())}var Nd=Object.freeze({target:"_blank",rel:"noopener noreferrer"});function SM(e,o){return Kne(e,o)?{...Nd}:{}}function m3e(e){return typeof e=="string"?e.trim():""}var h3e="data-sf-box-link",wM="absolute inset-0 -z-[1] outline-none focus-visible:z-[2] focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-accent",YC="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",Vne="data-sf-box-jump";function Yne(e){return`sf-box-jump-${e}`}function x3e(e,o){return e===!0?Un(o):""}function qne({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 g3e(e){let o=`[${Vne}="${e}"]`,t=`.${Yne(e)}`,r=`[id="${e}"]:target`;return qne({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 Xne="hrefRewrite";function Zne(){return ai("efficient.link-href-rewrites",()=>({rewrites:new Map,count:0,missed:new Set}))}function Jne(){return typeof process<"u"&&!0}function b3e(e){let o=e?.[Xne];return typeof o=="string"?o.trim():""}function CM(e){if(!e)return null;let o=Zne(),t=o.rewrites.get(e);return!t&&!Jne()&&o.missed.add(e),t??null}var rse={Link:EO,Image:PO},vM=ese(rse);function L3e({runtime:e,children:o}){return Is(vM.Provider,{value:e,children:o})}function XC(){return ose(vM)}function F3e(){return XC().pagePath??null}var ase=()=>()=>{},nse=()=>pu()||null,sse=()=>null;function ise(){return tse(ase,nse,sse)}function ys({hrefRewrite:e,newTab:o,...t}){let{Link:r}=XC(),a=ise(),n=o===!0?{...t,...Nd}:o==="auto"?{...t,...SM(t.href,a)}:t,s=CM(e);return s?Is(qC,{name:s.name,href:n.href,fallback:Is(r,{...n}),children:Is(lse,{Link:r,rewrite:s.rewrite,...n})},s.key):Is(r,{...n})}function lse({Link:e,rewrite:o,...t}){let r=be(o(t.href)),a=r&&Z0(r)?r:t.href;return Is(e,{...t,href:a})}var qC=class extends Qne{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 Kh(e){let{Image:o}=XC();return Is(o,{...e})}import{jsx as aie}from"react/jsx-runtime";import{jsx as Le,jsxs as et,Fragment as eie}from"react/jsx-runtime";import{imageCopyUrl as PM,imageSrcSet as cse}from"efficient-shell/image-copies";var kM;function ZC(){return kM===void 0?{}:{host:kM}}var D3e="(max-width: 800px) 100vw, min(100vw, 1600px)",M3e="(max-width: 960px) 100vw, 50vw";function bs(e,{fallbackWidth:o=1280,maxWidth:t}={}){let r=cse(e,{...ZC(),...t===void 0?{}:{maxWidth:t}});return r?{src:PM(e,o,ZC()),srcSet:r}:{src:e}}var dse=/[\s"'()\\;]/,fse={"\\":"\\\\",'"':'\\"',"\n":"\\a ","\r":"\\d ","\f":"\\c "};function TM(e){return e.replace(/[\\"\n\r\f]/g,o=>fse[o]??o)}function H3e(e){let o=PM(e,1920,ZC());return o===e?dse.test(e)?`url("${TM(e)}")`:`url(${e})`:`url("${TM(o)}")`}var Dd="solid",pse=[{label:"Solid",value:"solid"},{label:"Outlined",value:"outlined"}];function EM(e){return Io(pse,Dd,e)}var JC="sf-secnum-outline",_M="font-display text-[length:var(--size-headingMedium,clamp(48px,6vw,96px))] font-medium leading-[0.8] tracking-[-0.02em]",OM=`@supports (-webkit-text-stroke: 1px currentColor){.${JC}{color:var(--site-surface-2);-webkit-text-stroke:1px var(--site-line)}}`;var QC="plain",AM=[{label:"Plain",value:"plain"},{label:"Filled",value:"filled"},{label:"Line",value:"line"}],use="line",mse={KeyFeatures:"filled"};function Md(e){return U(mse,e)??QC}function RM(e,o){return Io(AM,Md(o),e)}function j3e(e){return Io(AM,use,e)}import{jsxs as Cs,jsx as ro}from"react/jsx-runtime";import{Fragment as dv}from"react";import{Fragment as Wse,jsx as iv}from"react/jsx-runtime";import{Fragment as jM,jsx as zd,jsxs as Rse}from"react/jsx-runtime";import{createContext as sv,useContext as Gd,useEffect as Lse,useId as Fse,useMemo as Bse,useRef as Nse}from"react";import{armEntrance as Dse}from"efficient-shell/format";import{jsx as hse}from"react/jsx-runtime";import{useEffect as FM,useRef as LM,useState as xse}from"react";import{armEntrance as gse,entranceAttrs as Ise,playEntrance as yse}from"efficient-shell/format";function Vh({views:e,editing:o,boxClass:t,boxAttrs:r,boxStyle:a,takesViewHide:n=!1,atEdge:s=!1,children:i}){let l=LM(null),d=lu(),f=Mt(),u=n?f:$a,p=Hd(l,!0,s),{attrs:m,style:h}=Ise(e[p]),I=LM(yl.seed(e)),w=JSON.stringify(e);return FM(()=>{let S=l.current;if(S){if(o){let v=yl.next(I.current,e,p);I.current=v.seen,v.play&&yse(S);return}return gse(S)}},[w,p,o]),u.scope(hse("div",{ref:l,className:Zo(`${vi}${d.fill}${t?` ${t}`:""}`,u.className),...r,...u.attrs,...m,...Object.keys(h).length||a?{style:{...a,...h}}:{},children:d.inner(i)}))}var yl={seed(e){return{desktop:JSON.stringify(e.desktop),tablet:JSON.stringify(e.tablet),phone:JSON.stringify(e.phone)}},next(e,o,t){let r=yl.seed(o);return{play:r[t]!==e[t],seen:r}}};function Hd(e,o=!0,t=!1){return Wd(e,o,t)??"desktop"}function Wd(e,o=!0,t=!1){let[r,a]=xse(void 0),n=Wa(t?"edge":"by-box"),{phone:s,tablet:i}=bC(n);return FM(()=>{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 $d="@name",BM="@body",NM="@value",DM={[$d]:"Name",[BM]:"Body",[NM]:"Value"},bse={TimelineTrack:{"entries.date":$d,"entries.title":$d,"entries.blurb":BM},Footprint:{"offices.city":$d},Stats:{"items.label":$d,"items.value":NM}};function Sse(e){let{key:o,row:t}=wr(e);return t?`${o}.${t.rowKey}`:null}function va(e,o){if(!e)return o;let t=Sse(o);return t?U(bse,e)?.[t]??o:o}import{ENTRANCE_STATE_ATTR as Pse,entranceAttrs as Ese,scrollAttrs as _se}from"efficient-shell/format";import{parseFocal as vse,formatFocal as kse,readScroll as Tse}from"efficient-shell/format";import{phoneKey as wse,tabletKey as Cse}from"efficient-easel/screen/lib/content/view-tiers";var ev=[{block:"HeroSlide",upload:"mediaImage",focus:Mn.image},{block:"HeroSlide",upload:"mediaImage2",focus:Mn.image2},{block:"HeroSingle",upload:"mediaImage",focus:Mn.image},{block:"HeroSingle",upload:"mediaImage2",focus:Mn.image2},{block:"ImageBlock",upload:"src",focus:"focal"}],MM=e=>[e,Cse(e),wse(e)],sWe=[...new Set(ev.flatMap(e=>MM(e.focus)))].sort();function HM(e,o){let[t,r,a]=MM(o).map(n=>typeof e[n]=="string"&&e[n]?e[n]:void 0);return{desktop:t,tablet:r,phone:a}}var $o={effect:"scroll",zoom:"scrollZoom",start:"scrollStart",end:"scrollEnd"},bl="_gScroll",Yh="_cScroll",qh=ou(Object.values($o));function ka(e,o){return Tse(Tc(e,$o.effect,o),Tc(e,$o.zoom,o),Tc(e,$o.start,o),Tc(e,$o.end,o))}function Sl(e){let o={desktop:ka(e,"desktop"),tablet:ka(e,"tablet"),phone:ka(e,"phone")};return ut.every(t=>o[t].effect==="none")?null:o}function ov(e){let o=aO(e.desktop,e.tablet,e.phone),t=r=>{let a=o[r];if(typeof a!="string")return;let{x:n,y:s}=vse(a);return kse(n,s)};return{desktop:t("desktop"),tablet:t("tablet"),phone:t("phone")}}function WM(e,o){return ov(HM(e,o))}var Xh={},tv="_partMotion",rv=[...tu,Nt,uo.duration,uo.delay,...qh];function UM(e){return cl(e,tv)}function Ss(e,o){return bh(e,tv,o)}var Ose=new Set([vt.kind,Nt,$o.effect]);function zM(e,o,t,r){let{[t]:a,...n}=Ss(e,o),s=r==null||r===""||r==="none"&&Ose.has(t)?n:{...n,[t]:r};return Sh(e,tv,o,Object.keys(s).length?s:null)}function Ud(e){return{entrance:ki(e),hover:aE(e),scroll:Sl(e)}}function GM(e){let o=Ud(e);return o.entrance!==null||o.hover!=="none"||o.scroll!==null}function Zh(e,o){let{attrs:t,style:r}=Ese(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(Pse)}}function Jh(e,o){let{attrs:t,style:r}=_se(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 Ase=4;function wl(e){let o;for(let t of e)(!o||t.element.compareDocumentPosition(o.element)&Ase)&&(o=t);return o}var av="data-sf-part-host";function Qh(e){let o=e?.ownerDocument.defaultView,t=e;for(;t&&!t.hasAttribute(av)&&!t.classList.contains(vi);){let r=o?.getComputedStyle(t).display??"";if(r==="contents")return null;if(r!=="inline")return t;t=t.parentElement}return null}var ws="data-sf-part-lift",$M="sf-part-lift";function ex(e){if(e.getElementById($M))return;let o=e.createElement("style");o.id=$M,o.textContent=FN(`[${ws}]`).join(`
|
|
320
|
-
`),e.head.appendChild(o)}var ox=sv(null),VM=sv(null),YM=sv(null);function qM({needles:e,styles:o,motions:t=Xh,type:r,atEdge:a=!1,children:n}){let s=Fse(),i=Wa(a?"edge":"by-box"),l=JSON.stringify([s,e,o,t,r]),d=Bse(()=>{let u=Object.keys(t).filter(p=>GM(t[p]));return XN(e,o,s,p=>va(r,p),p=>Ed(r,p),p=>u.includes(p)?Ud(t[p]):null,u)},[l]);if(!d)return zd(jM,{children:n});let f=ZN(d,{inBox:i});return Rse(jM,{children:[f&&zd("style",{href:`${Mse}${s}-${Hse(f)}`,precedence:ZM,dangerouslySetInnerHTML:{__html:f.replace(/</g,"\\3c ")}}),zd(ox.Provider,{value:d,children:n})]})}var nv=new WeakMap;function KM(e,o){let t=wl(o.filter(a=>a.arm)),r=o.some(a=>a.entering)?void 0:wl(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)?(ex(e.ownerDocument),e.setAttribute(ws,"")):e.removeAttribute(ws)}function XM(e){let o=Nse(null),t=e?.motion?.entrance??null,r=e?.motion?.scroll??null,a=e?.motion?.hover==="lift",n=Hd(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 Lse(()=>{let d=o.current,f=Qh(d?.parentElement??null);if(!t&&!r&&!a||!d||!f)return;let u=s?()=>{let h=Zh(f,s),I=Dse(f);return()=>{I?.(),h()}}:null,p=nv.get(f)??[];nv.set(f,p);let m={element:d,arm:u,entering:s!==null&&s.kind!=="none",scroll:i?()=>Jh(f,i):null,lift:a};return p.push(m),KM(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,KM(f,p),p.length||nv.delete(f))}},[l,a]),o}var ZM="sf-part-styles",Mse=`${ZM}-`;function Hse(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 JM(e){let o=Gd(ox),t=Gd(VM),r=JN(o,e);return r&&r.stamp!==t?r:null}function PWe(e){return yC(Gd(ox),e)}function QM({stamp:e,children:o}){return zd(VM.Provider,{value:e,children:o})}function EWe({children:e}){let o=Gd(ox);return zd(YM.Provider,{value:o,children:e})}function _We(e){return yC(Gd(YM),e)}function jd({value:e,children:o}){let t=JM(e),r=XM(t);return t?iv(QM,{stamp:t.stamp,children:iv("span",{ref:r,[nC]:t.stamp,...t.textStyle?{[Cr]:t.textStyle}:{},children:o})}):iv(Wse,{children:o})}import{jsx as lv,Fragment as $se}from"react/jsx-runtime";function e2({className:e=""}){return lv("sup",{className:`text-accent tracking-normal text-[length:min(1em,max(0.75em,11px))] ${e}`,children:"\xAE"})}function Kt(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(lv(e2,{},`r${a}`))}),lv($se,{children:t})}var NWe=e2;function yo(e,o=!1,t){let r=Yse(o),a=vp(e);if(a.length===1){let[s]=a,i=J0(s),l=i?Kse(i,s.children):s.children;return Cs(jd,{value:e,children:[t,tx(l,r)]})}let n=[];return a.forEach((s,i)=>{if(s.bullet){n.push(ro("span",{"data-sf-bullet":"",className:Use,children:tx(s.children,r)},i));return}if(s.number!=null){n.push(Cs("span",{"data-sf-number":s.number,className:zse,children:[Cs("span",{className:Gse,children:[s.number,"."]}),tx(s.children,r)]},i));return}i>0&&!jse(a[i-1])&&n.push(ro("br",{},`br${i}`)),n.push(ro(dv,{children:tx(s.children,r)},i))}),Cs(jd,{value:e,children:[t,n]})}var Use="relative block pl-6 before:absolute before:left-1.5 before:font-bold before:text-accent before:content-['\xB7']",zse="relative block pl-[2em]",Gse="absolute left-0 w-[1.6em] text-right tabular-nums";function jse(e){return e.bullet||e.number!=null}var o2="text-accent underline underline-offset-[0.18em]";function Kse(e,o){let[t,...r]=o;return t?.kind==="text"?[{kind:"text",text:`${e}${t.text}`},...r]:[{kind:"text",text:e},...o]}function Vse(e){return Fi(e)||void 0}function tx(e,o){let t=[],r=!1;return e.forEach((a,n)=>{if(a.kind==="text"){t.push(ro("span",{children:Kt(a.text)},n)),r=!0;return}r||t.push(ro("span",{},`e${n}`)),t.push(r2(a,n,o)),r=!1}),r||t.push(ro("span",{},"end")),t}function cv(e,o){return e.length===1&&e[0].kind==="text"?Kt(e[0].text):e.map((t,r)=>t.kind==="text"?ro(dv,{children:Kt(t.text)},r):r2(t,r,o))}function Yse(e){return e?"font-normal italic text-accent":"not-italic text-accent"}function VWe(e){return t2(e)}function t2(e,o){let t=e.split(`
|
|
321
|
-
`);return Cs(jd,{value:e,children:[o,t.map((r,a)=>Cs(dv,{children:[a>0?ro("br",{}):null,ro("span",{children:r})]},a))]})}function r2(e,o,t){if(e.kind==="link")return jh(e.href)?ro(ys,{newTab:"auto",href:e.href,className:o2,children:cv(e.children,t)},o):ro("a",{href:e.href,className:o2,children:cv(e.children,t)},o);let r=cv(e.children,t),a=Y0[e.kind];if(a)return ro("span",{[q0]: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=Vse(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 a2(e,o=!0,t=!1){let r=e.split(`
|
|
322
|
-
`);return ro(jd,{value:e,children:r.map((a,n)=>Cs("span",{children:[t?t2(a):yo(a,o),n<r.length-1?ro("br",{}):null]},n))})}function n2(e){return e.split(/\n\s*\n/).map(o=>o.trim()).filter(Boolean)}import{jsx as fv,jsxs as Xse}from"react/jsx-runtime";import{jsx as qse}from"react/jsx-runtime";function s2(){return qse("span",{className:"block h-px w-[30px] bg-current"})}var pv={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 Zse(e,o){return`font-mono text-[length:var(--size-label,${e}px)] uppercase tracking-[0.3em] text-accent`}var Jse=`inline-block w-fit bg-accent px-3.5 py-1.5 font-mono ${pv.labelSmall} font-semibold uppercase tracking-[0.16em] text-bg`,Qse=`flex items-center gap-3.5 font-mono ${pv.labelLarge} uppercase tracking-[0.3em] opacity-80 ${pv.labelUpTo800} max-view-wide:tracking-[0.25em]`;function Cl({text:e,look:o="plain",size:t=13,scaled:r=!0,className:a="",classNameAfter:n="",takesViewHide:s=!1}){let i=Mt(),l=s?i:$a;if(o==="line")return l.scope(Xse("div",{className:Zo([a,Qse,n].filter(Boolean).join(" "),l.className),...l.attrs,children:[fv(s2,{}),fv("span",{children:yo(e)})]}));let d=o==="filled"?Jse:Zse(t,r);return l.scope(fv("span",{className:Zo([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)]"},i2=[{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}`}],oie="lg";function tie(e){return(i2.find(o=>o.value===e)??i2.find(o=>o.value===oie)).cls}var vl=(e,o=!1)=>typeof e=="string"?a2(e,o):e,Ta=(e,o=!1)=>typeof e=="string"?yo(e,o):e;function l2({num:e,title:o,link:t,logo:r,description:a,accent:n,accentNum:s,numStyle:i=Dd,look:l="standard",titleAccent:d,accentTracking:f="-0.02em",spaceBelow:u,rowGap:p,descriptionSize:m,className:h="",eyebrowLook:I=QC,titleSize:w,count:S,capped:v=!1}){let b=u??(l==="editorial"?"mb-[60px]":"");if(l==="shelf")return e||o||a||t?et("div",{className:`${OD} 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 ${v?"":"-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:[et("div",{className:"flex min-w-0 items-end gap-6 max-view-wide:flex-col max-view-wide:items-stretch max-view-wide:gap-3",children:[e&&Le("span",{className:`font-mono ${Ve.shelfLabel} leading-none uppercase tracking-[0.22em] text-fg-dim`,children:Ta(e)}),o&&Le("h2",{className:`${tie(w)} leading-none text-fg max-view-wide:leading-[1] [&>span]:block`,children:vl(o)})]}),(a||t||S)&&et("div",{className:"flex items-center gap-5 max-view-wide:gap-3 view-wide:grow view-wide:justify-end",children:[a&&Le("span",{className:`max-w-[340px] truncate font-display ${Ve.shelfBody} leading-[1.4] text-fg-dim max-view-wide:hidden view-wide:w-0 view-wide:grow view-wide:text-right`,children:Ta(a)}),t&&et(ys,{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:[Ta(t.text),Le("span",{"aria-hidden":!0,children:"\u2192"})]}),S&&Le("span",{className:`whitespace-nowrap font-mono ${Ve.shelfLabelSmall} uppercase tracking-[0.2em] text-fg-dim`,children:S})]})]}):null;if(l==="editorial"){let P=!!o||!!d;return et("header",{className:`${b} grid grid-cols-[auto_1fr_auto] items-end gap-10 border-b border-line pb-8 max-view-desktop:grid-cols-1 max-view-desktop:gap-3.5 ${h}`.trim(),children:[e&&(typeof e=="string"?Le(Cl,{text:e,className:"pb-2"}):Le("span",{className:"pb-2",children:e})),P&&et("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&&et(eie,{children:[" ",Le("em",{className:"font-serif font-normal italic text-accent",style:{letterSpacing:f},children:d})]})]}),a&&Le("p",{className:`max-w-[360px] pb-1 text-right font-display ${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 P=`${b} ${h}`.trim();return et("div",{className:P||void 0,children:[e&&(typeof e=="string"?Le(Cl,{text:e,look:I,className:"mb-4 block"}):Le("span",{className:"mb-4 block",children:e})),o&&Le("h2",{className:`font-heading2 ${Ve.headingMedium2} font-medium uppercase leading-none tracking-[-0.02em] text-fg ${Ve.headingMediumUpTo800Small}`,children:vl(o)})]})}if(l==="statement"){let P=`${b} ${h}`.trim();return et("div",{className:P||void 0,children:[e&&(typeof e=="string"?Le(Cl,{text:e,look:I,className:"mb-4 block"}):Le("span",{className:"mb-4 block",children:e})),o&&Le("h2",{className:"font-heading2 text-[length:min(var(--size-headingMedium,clamp(40px,5vw,72px)),var(--sf-heading-max,9999px))] font-medium uppercase leading-none tracking-[-0.03em] text-fg",children:vl(o,!0)})]})}if(l==="natural"){let P=`flex max-w-[680px] flex-col ${p??"gap-5"} ${b} ${h}`.replace(/\s+/g," ").trim();return et("div",{className:P,children:[e&&(typeof e=="string"?Le(Cl,{text:e,look:I}):Le("span",{children:e})),o&&Le("h2",{className:`font-heading2 ${Ve.headingMedium2} font-medium leading-[1.05] tracking-[-0.03em] ${Ve.headingMediumUpTo800Small}`,children:vl(o)}),a&&Le("p",{className:`${m??`${Ve.bodyLarge}`} leading-[1.6] opacity-85`,children:a})]})}if(l==="essay"){let P=`${b} ${h}`.trim();return et("div",{className:P||void 0,children:[e&&(typeof e=="string"?Le(Cl,{text:e,look:I,className:"mb-4 block"}):Le("span",{className:"mb-4 block",children:e})),o&&Le("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:vl(o)})]})}let y=!!a||!!t,k=!!o,F=EM(i)==="outlined",T=`font-mono ${Ve.label} uppercase tracking-[0.3em]`,D=null;if(e)if(F)D=Le("span",{className:`${_M} text-fg-dim ${JC}`,children:Ta(e)});else if(s&&!n&&typeof e=="string"){let P=e.indexOf("/"),L=P===-1?e:e.slice(0,P),C=P===-1?"":e.slice(P);D=et("span",{className:T,children:[Le("span",{className:"text-accent",children:Ta(L)}),C&&Le("span",{className:"text-fg-dim",children:Ta(C)})]})}else D=Le("span",{className:`${T} ${n?"text-accent":"text-fg-dim"}`,children:Ta(e)});return et("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:[F&&e&&Le("style",{children:OM}),et("div",{className:"flex flex-col items-start gap-3",children:[r?.src&&Le(lO,{children:Le($h,{...rie(OO(r.src)),alt:r.alt,className:"h-8 w-auto object-contain"})}),D]}),k&&Le("h2",{className:n?"font-heading2 text-[length:min(var(--size-headingMedium,clamp(36px,5vw,64px)),var(--sf-heading-max,9999px))] [font-weight:var(--sf-heading-weight,500)] [text-transform:var(--sf-heading-case,uppercase)] [&_em]:[font-weight:var(--sf-heading-weight-strong,inherit)] leading-[0.95] tracking-[-0.025em]":`font-heading2 ${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:vl(o)}),y&&et("div",{className:"flex flex-col items-end gap-3 max-view-wide:items-start",children:[a&&Le("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:Ta(a)}),t&&et(ys,{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:[Ta(t.text),Le("span",{"aria-hidden":!0,children:"\u2192"})]})]})]})}function rie(e){let o=bs(e,{fallbackWidth:640,maxWidth:960});return o.srcSet?{src:o.src,srcSet:o.srcSet,sizes:"240px"}:{src:e}}function c2({num:e,title:o,titleAccent:t,desc:r,accentTracking:a="-0.02em",spaceBelow:n="mb-[60px]",className:s=""}){return aie(l2,{look:"editorial",num:e,title:o,titleAccent:t,description:r,accentTracking:a,spaceBelow:n,className:s})}import{jsx as Vd,jsxs as fie}from"react/jsx-runtime";import{useEffect as pie,useState as y2}from"react";import{jsx as nie}from"react/jsx-runtime";var d2="sf-photo-hover";function rx({sheet:e,name:o=d2}){return e?nie("style",{href:o,precedence:d2,dangerouslySetInnerHTML:{__html:e}}):null}import{jsx as x2,Fragment as lie}from"react/jsx-runtime";import{createContext as cie,useContext as nx}from"react";var sie=kE["view-desktop"];function iie(e,o){return[...[...e].sort((t,r)=>t.below-r.below).map(t=>`(max-width: ${t.below-.02}px) ${t.slot}`),o].join(", ")}var uv=e=>`${Math.ceil(e*1e4-1e-6)/100}vw`,ax=e=>{let o=/^([\d.]+)vw$/.exec(e??"");return o?Math.min(1,Number(o[1])/100):1};function S$e(e,o){return{phone:uv(e.phone*ax(o?.phone)),tablet:uv(e.tablet*ax(o?.tablet)),desktop:uv(e.desktop*ax(o?.desktop))}}function mv(e){if([e.phone,e.tablet,e.desktop].every(r=>ax(r)>=1))return;let o=[{below:Fr,slot:e.phone},{below:sie,slot:e.tablet}],t=o.filter((r,a)=>r.slot!==(o[a+1]?.slot??e.desktop));return iie(t,e.desktop)}function f2(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 p2=(e,o)=>e.steps.find(t=>o<=t.edge)?.slot??e.last,u2=e=>{let o=/^min\((.+)\)$/.exec(e);return o?o[1].split(/,\s*(?![^()]*\))/).map(t=>t.trim()):[e]};function m2(e,o){if(e===o)return e;let t=[...u2(e),...u2(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 h2(e,o){if(!o)return e;let t=f2(e),r=f2(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:m2(p2(t,s),p2(r,s))})),n=m2(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 die={hasWidth:!1},Kd=cie(die);function T$e(){return nx(Kd).hasWidth}function P$e(e){let{bound:o}=nx(Kd);return o&&mv(o)||e}function g2(e){let{bound:o}=nx(Kd);return h2(e,o&&mv(o))}function I2({children:e}){let o=nx(Kd);return o.bound?x2(Kd.Provider,{value:{hasWidth:o.hasWidth},children:e}):x2(lie,{children:e})}function b2({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=zC(),m=g2(s),h=i?m:s,[I,w]=y2(!1),[S,v]=y2(!1),b=t||"";pie(()=>{w(!1),v(!1)},[b]);let y=uu(b),k=y&&!S?bs(b):{src:b},F=!b||I;return fie("div",{className:`relative h-full w-full overflow-hidden ${o??""}`,children:[Vd("div",{className:"absolute inset-0 flex items-center justify-center",style:f?{background:"var(--site-surface)"}:void 0,children:F?e:null}),Vd(au,{fill:_c,children:b&&(y?Vd("img",{src:k.src,alt:r,...k.srcSet?{srcSet:k.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:()=>k.srcSet?v(!0):w(!0)}):Vd(Kh,{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)}))}),Vd(rx,{sheet:u?.sheet})]})}import{jsx as uie}from"react/jsx-runtime";var Yd="sf-empty-hides",hv="sf-empty-else",sx="sf-head-core",ix="sf-head-box",qd="holdsHeadCore",Xd="isHeadCore",mie=`.${Yd}:empty{display:none}.${Yd}:not(:empty)~.${hv}{display:none}.${ix},.${sx}{display:contents}.${ix}:not(:has(.${sx}:not(:empty))){display:none}`;function lx(){return uie("style",{children:mie})}var gt={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)]"},S2={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"},xv="sf-itc-boxes",xie="sf-itc-steps";function gv(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 r6e({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,v=I&&(S||(r?.blockCount??0)>0)?I:null,b=d??vL({padTop:i,padBottom:l},Il("ProcessSteps")),y=S?[]:gv(a),k=y.length>0?y:f&&!r&&!S?[1,2,3].map(L=>({tag:c("Column {n}",{n:L})})):[],F=S2[n]??S2[3],T=v?"grid-cols-1":F,D=v?"":" [&>*]:min-h-[560px]",P=h==="on-image";return Ye(ue,{as:"section",className:["relative z-[2] border-b border-line bg-bg",b.className].filter(Boolean).join(" "),style:{...b.style,...q1(p,m)},children:Pa("div",{className:dL,children:[u?null:Ye(c2,{num:e,title:o?.trim()?yo(o,!0):void 0,desc:t?.trim()?yo(t,!1):void 0}),r&&!S?Pa(hie,{children:[Ye(lx,{}),v?Ye(Gh.Provider,{value:{hand:v,ids:r.blockIds??[],boxes:[]},children:Ye(r,{className:`${xv} ${Yd} sf-card grid ${T} gap-[2px] border border-line bg-line${D} [&>*]:bg-bg`,minEmptyHeight:260})}):Ye(r,{className:`${xv} ${Yd} sf-card grid ${T} gap-[2px] border border-line bg-line [&>*]:min-h-[560px] [&>*]:bg-bg`,minEmptyHeight:260})]}):null,S&&w?Ye("div",{className:`${xv} sf-card grid ${T} gap-[2px] border border-line bg-line${D} [&>*]:bg-bg`,children:v?Ye(Gh.Provider,{value:{hand:v,copies:!0},children:w}):w}):null,k.length>0&&Ye("div",{className:`${xie} ${hv} sf-card grid ${F} gap-[2px] border border-line bg-line`,children:k.map((L,C)=>{let A=(L.specs??[]).filter(E=>(E?.label??"").trim()||(E?.value??"").trim());return Pa("article",{className:P?"flex flex-col bg-bg":"flex min-h-[560px] flex-col bg-bg",children:[Pa("div",{className:P?"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(b2,{label:L.tag?.trim()||L.title?.trim()||`column-${C+1}`,src:L.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, ${la(.55)} 0%, transparent 30%, transparent 70%, ${la(.65)} 100%)`}}),P&&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%, ${la(.73)} 55%, ${la(.92)} 100%)`}}),L.tag?.trim()&&Ye("span",{className:`absolute left-5 top-[18px] z-[2] font-mono ${gt.label} uppercase tracking-[0.3em] text-accent`,children:Kt(L.tag)}),L.meta?.trim()&&Ye("span",{className:P?`absolute right-5 top-[18px] z-[2] font-mono ${gt.label} uppercase tracking-[0.24em] text-overlay-fg/80`:`absolute right-5 bottom-[18px] z-[2] font-mono ${gt.label} uppercase tracking-[0.24em] text-overlay-fg/80`,children:Kt(L.meta)}),P&&(L.title?.trim()||L.copy?.trim())&&Pa("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:[L.title?.trim()&&Ye("h3",{className:`flex min-h-[2em] flex-col justify-end font-heading3 ${gt.headingSmall1} font-medium uppercase leading-none tracking-[-0.02em] text-overlay-fg ${gt.headingSmallUpTo700Small}`,children:yo(L.title,!0)}),L.copy?.trim()&&Ye("p",{className:`min-h-[3em] font-display ${gt.bodySmall} leading-[1.5] text-overlay-fg/85`,children:yo(L.copy,!1)})]})]}),P?A.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:A.map((E,R)=>Pa("div",{className:"flex flex-col gap-1",children:[E.label?.trim()&&Ye("span",{className:`font-mono ${gt.labelSmall} uppercase tracking-[0.24em] text-fg-dim`,children:Kt(E.label)}),E.value?.trim()&&Ye("span",{className:`font-display ${gt.bodyLarge} font-medium tracking-[-0.01em] text-fg`,children:Kt(E.value)})]},R))}):Pa("div",{className:"flex flex-1 flex-col gap-4 px-8 py-9 max-[700px]:px-6 max-[700px]:py-7",children:[L.title?.trim()&&Ye("h3",{className:`font-heading3 ${gt.headingSmall2} font-medium uppercase leading-none tracking-[-0.02em] ${gt.headingSmallUpTo700Large}`,children:yo(L.title,!0)}),L.copy?.trim()&&Ye("p",{className:`font-display ${gt.bodySmall} leading-[1.55] text-fg-dim`,children:yo(L.copy,!1)}),A.length>0&&Ye("div",{className:"mt-auto grid grid-cols-2 gap-2 border-t border-line pt-4",children:A.map((E,R)=>Pa("div",{className:"flex flex-col gap-1",children:[E.label?.trim()&&Ye("span",{className:`font-mono ${gt.labelSmall} uppercase tracking-[0.24em] text-fg-dim`,children:Kt(E.label)}),E.value?.trim()&&Ye("span",{className:`font-display ${gt.bodyLarge} font-medium tracking-[-0.01em] text-fg`,children:Kt(E.value)})]},R))})]})]},C)})}),s?.text&&Ye("div",{className:"mt-12 flex justify-end border-t border-line pt-8",children:Pa(ys,{newTab:"auto",href:s.href,className:`group inline-flex items-center gap-3.5 border border-line px-6 py-4 font-mono ${gt.labelLarge} uppercase tracking-[0.3em] text-fg transition-colors hover:border-accent hover:text-accent`,children:[Kt(s.text),Ye("span",{"aria-hidden":!0,className:"text-accent transition-transform group-hover:translate-x-[3px]",children:"\u2192"})]})})]})})}var gie=["selected","highlighted"],w2="data-sf-card-state",v2="pointer-events-none absolute inset-0 border border-accent",k2="pointer-events-none absolute inset-x-0 bottom-0 border-b-2 border-accent",T2="pointer-events-none absolute inset-0 border-2 border-accent outline outline-1 -outline-offset-1 outline-accent",P2="absolute inset-y-0 left-0 w-[3px] bg-accent",E2="absolute -inset-[2px] -z-[1] bg-[color-mix(in_oklab,var(--accent)_14%,transparent)]",_2="after:pointer-events-none after:absolute after:inset-0 hover:after:border-2 hover:after:border-accent",C2=e=>{let o=j_.find(t=>t.role===e)?.token;if(!o)throw new Error(`card-state: the palette has no ink token for "${e}"`);return o},Iie={[C2("muted")]:`var(${C2("fg")})`};function Iv(e){return e?.selected===!0}function yv(e){return e?gie.filter(o=>e[o]===!0).join(" "):""}function O2(e,o="frame"){let t=yv(e);return t?o==="frame"&&Iv(e)?{[w2]:t,className:"relative isolate",style:{...Iie}}:{[w2]:t,className:"relative"}:{}}var yie={highlighted:!0},bie={},cx="badge";function l6e(e,o=[]){return e.map((t,r)=>({...t,key:t.key||o[r]?.key||vc(t,r)}))}function A2(e){return!e||typeof e!="object"?!1:Object.entries(e).some(([o,t])=>o==="key"||o===cx||o==="state"?!1:typeof t=="string"?t.trim()!=="":Array.isArray(t)?t.length>0:t!=null&&typeof t!="function")}function c6e(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,[cx]:s===a?t:""})),states:e.map((n,s)=>s===a?yie:bie)}}function d6e(e){return{chosen:typeof e.highlightedCard=="string"?e.highlightedCard.trim():"",badge:typeof e.highlightBadge=="string"?e.highlightBadge:""}}function f6e(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 R2="data-sf-card-press",L2=`${wM} appearance-none bg-transparent border-0 p-0 m-0`,F2=`${L2} cursor-pointer`,B2=L2;import{paymentMarkItems as Sie,paymentMarks as wie}from"efficient-shell/icons/payment";var Cie=[O0,gp],N2=e=>Cie.includes(e),D2=e=>Sie({name:e.label,kind:e.kind}),vie=(e,o)=>e.kind===o.kind&&e.label===o.label&&(e.kind==="brand"?e.mark===o.mark:e.glyph===o.glyph);function M2(e){return wie(e.map(o=>({name:o.label,kind:o.kind}))).map(o=>({label:o.label,kind:e.find(t=>D2(t).some(r=>vie(r,o)))?.kind??""}))}function h6e(e){return D2(e)[0]??null}var H2={heading:"Trusted by *teams worldwide*"},dx=()=>[{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")}],kie=yp.Logos,y6e={label:"Logos",drawsPictures:!0,fields:kie,defaultProps:{items:[],contained:!0}};var Tie=()=>dx().map(e=>({label:e.alt}));function W2(e,o){let t=Ip(e,o,Tie()).rows.filter(r=>r.label);return N2(oo(e))?M2(t):t}var Zd="Flex",Eie="Text",Jd=e=>Object.values(e??{}).filter(U2),_ie=e=>e.type===Oo&&oo(e.props)!=="",z2=e=>{if(e.type!==Zd)return!1;let o=Jd(e.props).flat();return o.length>0&&o.every(_ie)},fx=e=>Bp(e.props?.headPlacement)==="own-box"||z2(e),bv=e=>e===void 0||Array.isArray(e)&&e.length===0;function G2(e){return e.type===Eie?!0:e.type===Zd&&Jd(e.props).every(o=>o.every(G2))}var j2={ProcessSteps:e=>bv(e.boxes)&&gv(e.steps).length===0,Logos:e=>oo(e)?Oie(e):bv(e.logos)&&bv(e.items)};function Oie(e){return B0(e)!==null&&W2(e,!1).length===0}function Aie(e){return Jd(e.props).flat().every(o=>!Ip(o.props,!1).rows.some(A2))}function px(e){let o=Jd(e.props).flat();return o.some(fx)&&o.every(t=>fx(t)||G2(t))}function Rie(e){if(!Pie(e)||!fx(e))return e;let o=z2(e)?Aie(e):U(j2,String(e.type))?.(e.props??{})===!0;return{...e,props:{...e.props,[Xd]:o?"empty":!0}}}function $2(e){return go(e,o=>so(o,Rie))}function K2(e){let o=Object.entries(e.props??{}).filter(([,r])=>U2(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===Zd&&t.props?{key:o[0][0],inner:t}:null}function V2(e){if(e?.type!==Zd||!e.props)return e;if(px(e)){let t=$2(e);return{...t,props:{...t.props,[qd]:!0}}}let o=K2(e);return!o||!px(o.inner)?e:{...e,props:{...e.props,[o.key]:[$2(o.inner)],[qd]:!0}}}function Y2(e){let o=e;if(!o||!Array.isArray(o.content))return e;let t=!1,r=o.content.map(a=>{let n=V2(a);return n!==a&&(t=!0),n});return t?{...o,content:r}:e}var Lie=e=>U(j2,String(e.type))?.(e.props??{})===!0;function Fie(e){if(e.type!==Zd||!e.props)return!1;let o=px(e)?null:K2(e),t=o?o.inner:e;if(!px(t))return!1;let r=Jd(t.props).flat().filter(fx);return r.some(a=>oo(a.props)!=="")&&r.every(Lie)}function q2(e){return go(e,o=>Bie(o))}function Bie(e){let o=!1,t=[];for(let r of e){if(Fie(r)){o=!0;continue}let a=q2(r);a!==r&&(o=!0),t.push(a)}return o?t:e}function X2(e){let o=e;if(!o||!Array.isArray(o.content))return e;let t=!1,r=o.content.map(a=>{if(V2(a)!==a)return a;let n=q2(a);return n!==a&&(t=!0),n});return t?{...o,content:r}:e}var Nie=["DocMasthead","AlloyWheelsListing"],ux="titleLevel",Die=e=>e===2?"h2":"h1",Sv=e=>Die(e?.[ux])==="h2";function Z2(e){let o=e;if(!o?.content?.length)return e;let t=!1,r=!1,a=o.content.map(n=>Nie.includes(n?.type??"")?t?(r=!0,{...n,props:{...n.props??{},[ux]:2}}):(t=!0,n):n);return r?{...o,content:a}:e}import{readHidable as zie}from"efficient-easel/draw";var kl="showFor";function J2(){return ai("efficient.box-show-for-choices",()=>({choices:[],revision:0}))}var Mie=e=>!!e&&typeof e=="object"&&typeof e.slug=="string"&&e.slug.trim()!==""&&typeof e.name=="string"&&e.name.trim()!=="";function M6e(){return J2().choices}function H6e(){return J2().revision}function Q2(e){return Mie(e)?{slug:e.slug,name:e.name}:void 0}import{readHidable as Hie}from"efficient-easel/draw";var wv="_wallLabelId",Wie="_wallLabelledBy",Cv=e=>e.props?.id==null?"":String(e.props.id);function $ie(e){if(!e||e.type!=="Text"||!Cv(e))return!1;let o=Hie(e.props?.text);return!o.hidden&&o.text.trim()!==""}var Uie=e=>!!e&&e.type==="Logos"&&e.props?.look==="marks"&&Cv(e)!=="",eH=(e,o,t)=>({...e,props:{...e.props,[o]:t}});function oH(e){let o=so(e,r=>go(r,oH)),t=null;for(let r=1;r<o.length;r++){if(!Uie(o[r])||!$ie(o[r-1]))continue;let a=`sf-wall-label-${Cv(o[r-1])}`;t??=o.slice(),t[r-1]=eH(t[r-1],wv,a),t[r]=eH(t[r],Wie,a)}return t??o}function tH(e){return ii(e,oH)}var rH="_cardPressTitles",Gie="_cardPressTitle";function X6e(e,o){let t=e?.[rH],r=t&&typeof t=="object"?t[o]:void 0;return Array.isArray(r)&&r.length?r:void 0}var aH=(e,o)=>({...e,props:{...e.props,...o}});function jie(e){let o=e.props??{};return e.type!=="Text"||zie(o.text).hidden||typeof o[wt]=="string"||typeof o[wv]=="string"?"":ft(o)}function nH(e,o,t,r){return so(e,a=>{let n=jie(a);if(n&&!r.has(n))return r.add(n),t.push({field:n,gates:o}),aH(a,{[Gie]:!0});if(a.type==="Text"||Array.isArray(a.props?.[kl]))return a;let s=a.props?.[ni],i=Array.isArray(s)&&s.length?[...o,s.filter(l=>typeof l=="string")]:o;return go(a,(l,d)=>Ln(a.type,d)?l:nH(l,i,t,r))})}function sH(e){let o,t=go(e,(r,a)=>{let n=so(r,sH);if(!Ln(e.type,a))return n;let s=[],i=nH(n,[],s,new Set);return s.length&&((o??={})[a]=s),i});return o?aH(t,{[rH]:o}):t}function iH(e){return ii(e,o=>so(o,sH))}import{pinnedDuplicateIndices as Vle}from"efficient-easel/draw";import{jsx as Vt,jsxs as YH}from"react/jsx-runtime";import{createContext as Mle,useContext as Hle,useEffect as Wle,useRef as $le,useState as qH}from"react";import{jsx as an,jsxs as fH}from"react/jsx-runtime";import{useEffect as Tl,useRef as pH,useState as vs}from"react";import{jsx as lH,Fragment as Kie,jsxs as Vie}from"react/jsx-runtime";import{useEffect as Yie,useRef as cH,useState as qie}from"react";var Xie="#t=0.001",Zie=2;function Jie(e,o){if(e.readyState<Zie||!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 dH({src:e,objectPosition:o="50% 50%",onError:t}){let r=cH(null),a=cH(null),[n,s]=qie(!1);return Yie(()=>{let i=r.current,l=a.current;if(n||!i||!l)return;let d=()=>{Jie(i,l)&&s(!0)};return d(),i.addEventListener("loadeddata",d),i.addEventListener("seeked",d),()=>{i.removeEventListener("loadeddata",d),i.removeEventListener("seeked",d)}},[n]),Vie(Kie,{children:[lH("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&&lH("video",{ref:r,src:`${e}${Xie}`,muted:!0,playsInline:!0,preload:"auto",className:"hidden",onError:t})]})}var Qie=.5;function Qd({videoSrc:e,videoAv1Src:o,videoSrcPhone:t,videoAv1SrcPhone:r,posterSrc:a,posterSrcPhone:n,showVideo:s=!0,playbackRate:i=Qie,objectPosition:l="50% 50%",objectPositionPhone:d,objectPositionTablet:f,quiet:u=!1,slideShown:p,laterSlide:m=!1,laterOfLead:h=!1}){let I=iR(d,f),w=Bd(),[S,v]=vs(!1),b=w==="below"&&!S,y=w==="first",k=a||"",F=n||"",T=pH(null),D=Wd(T,!0,!0),P=D===void 0?void 0:D==="phone",L=hu({video:e,av1:o,videoPhone:t,av1Phone:r},P===!0),C=L.video||"",A=mu(C,L.av1),[E,R]=vs(!1),[W,z]=vs(!1),[Z,V]=vs(!1),[fe,Ie]=vs(!1),ae=p??!0,[Oe,ve]=vs(!1),Ae=w!=="first"&&!h,[Ue,No]=vs(!1),Vo=pH(null);Tl(()=>{if(!Ae)return;if(document.readyState==="complete"){No(!0);return}let pe=()=>No(!0);return window.addEventListener("load",pe,{once:!0}),()=>window.removeEventListener("load",pe)},[Ae]),Tl(()=>{R(!1),z(!1),V(!1),Ie(!1)},[C,k,F]),Tl(()=>{ae&&ve(!0)},[ae]),Tl(()=>{let pe=Vo.current;pe&&(ae?pe.play()?.catch(()=>{}):pe.pause())},[ae,Oe,Ue]),Tl(()=>{if(!m||Ae&&!Ue)return;let pe=()=>v(!0);if(typeof window.requestIdleCallback=="function"){let Ze=window.requestIdleCallback(pe,{timeout:2e3});return()=>window.cancelIdleCallback(Ze)}let $=setTimeout(pe,800);return()=>clearTimeout($)},[m,Ae,Ue]),Tl(()=>{let pe=Vo.current;if(!pe)return;let $=()=>{pe.playbackRate=i};return $(),pe.addEventListener("loadedmetadata",$),()=>pe.removeEventListener("loadedmetadata",$)},[C,i]);let Yo=uu(k),mo=k&&(Yo||F)&&!W?bs(k):{src:k},qo=F&&!W?bs(F):{src:F},vo=F&&!b&&!S?[{sized:qo,media:vd},...k?[{sized:mo,media:Ic}]:[]]:[];return fH("div",{ref:T,className:"absolute inset-0 z-[1]",children:[an("div",{className:"absolute inset-0",style:{background:"var(--site-surface)"}}),vo.map(({sized:pe,media:$})=>an("link",{rel:"preload",as:"image",href:pe.src,media:$,fetchPriority:"high",...pe.srcSet?{imageSrcSet:pe.srcSet,imageSizes:"100vw"}:{}},$)),(k||F)&&(Yo||F?(()=>{let pe=an("img",{...k?{src:mo.src}:{},...mo.srcSet?{srcSet:mo.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:E?"none":"block",objectPosition:l,...I.style},onError:$=>{$.currentTarget.currentSrc&&(mo.srcSet||qo.srcSet?z(!0):R(!0))}},F?void 0:k);return F?fH("picture",{children:[an("source",{media:vd,srcSet:qo.srcSet||qo.src,sizes:"100vw"}),pe]},`${k} ${F}`):pe})():an(Kh,{src:k,alt:"",fill:!0,...b?{}:S?{loading:"eager"}:{priority:!0},sizes:"100vw",className:`z-[2] object-cover ${I.className}`.trim(),style:{display:E?"none":"block",objectPosition:l,...I.style},onError:()=>R(!0)},k)),s&&!u&&C&&P!==void 0&&Oe&&(!Ae||Ue)&&!Z&&an("video",{ref:Vo,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:()=>V(!0),children:A.map(pe=>an("source",{src:pe.src,type:pe.type},pe.src))},C),s&&u&&C&&P!==void 0&&Oe&&(!Ae||Ue)&&!fe&&(!k||E)&&an(dH,{src:C,objectPosition:l,onError:()=>Ie(!0)},C)]})}import{jsx as Uo,Fragment as kH,jsxs as Ev}from"react/jsx-runtime";import{jsx as Pl}from"react/jsx-runtime";import{useRef as ele}from"react";import{SCROLL_EFFECTS_WITH_ZOOM as ole,scrollAttrs as tle}from"efficient-shell/format";function mx({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=ele(null),u=lu(),p=Mt(),m=n?p:$a,h=Hd(f,!0,s),{attrs:I,style:w}=tle(e[h],o[h]),S=ole.includes(e[h].effect),v=Zo(`${vi}${u.fill}${t?` ${t}`:""}`,m.className);if(S&&i==="picture")return m.scope(Pl("div",{ref:f,className:v,...r,...m.attrs,...a?{style:a}:{},children:Pl(sO,{attrs:I,style:w,children:u.inner(d)})}));let b=Pl(iO,{children:u.inner(d)});if(S){let k=l??(u.fill?"h-full":void 0);return m.scope(Pl("div",{ref:f,className:v,...r,...m.attrs,style:{...a,overflow:"clip"},children:Pl("div",{...k?{className:k}:{},...I,style:w,children:b})}))}let y=Object.keys(w).length||a?{style:{...a,...w}}:{};return m.scope(Pl("div",{ref:f,className:v,...r,...m.attrs,...I,...y,children:b}))}var ks=["media","image","image2"],Ea={media:"Media",image:"Image",image2:"Image 2"},ef={media:"heroMedia",image:"heroImage",image2:"heroImage2"};function hx(e,o){return e==="image"&&Lc(o)>1?"Image 1":Ea[e]}var vUe="Video file",kUe="Upload a video file",TUe="AV1 file",PUe="Upload an AV1 file";function rle(e,o){return Sc("mediaType",Dn,o,[e])}var ale=new Set(Object.keys(Rc)),uH="heroPart";function nle(e,o){return{...o,[uH]:e}}function EUe(e,{parts:o={},onlyFor:t,fallback:r,rules:a}){let n={...e},s=[...Object.values(o).flat(),...Dn.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 Dn)for(let l of t[i])n[l]=io(n[l],rle(i,r));for(let[i,l]of Object.entries(a??{}))l&&(n[i]=io(n[i],l));for(let i of ks)for(let l of o[i]??[])n[l]=nle(i,n[l]);return n}function sle(e){let o=e?.[uH];return ks.includes(o)?o:null}function mH(e,o){let t={};for(let[r,a]of Object.entries(e))sle(a)===o&&(t[r]=a);return t}function hH(e){if(!ale.has(e.type))return[];let o=[{part:"media",label:Ea.media,depth:0}];return qO(e.type,e.props.mediaType)!=="video"&&(o.push({part:"image",label:hx("image",e.props),depth:1}),Lc(e.props)>1&&o.push({part:"image2",label:hx("image2",e.props),depth:1})),o}function Ts(e,o){return`${e}::${o}`}function xx(e){if(!e)return null;let o=e.lastIndexOf("::");if(o<=0)return null;let t=e.slice(o+2);return ks.includes(t)?{nodeId:e.slice(0,o),part:t}:null}var of="data-sf-hero-part";import{MOTION_TIMING as ile}from"efficient-shell/format";var yH="grayscale(1) contrast(1.03)",RUe="Black and white";function lle(e){return e===!0?{filter:yH}:{}}function cle(e){let{filter:o}=lle(e);return o?{style:{filter:o}}:{}}var Ps="sf-photo-grayscale",Pv="data-sf-photo-host",xH={duration:"--sf-photo-hover-duration",delay:"--sf-photo-hover-delay"},bx=`@media (hover:hover){.${Ps}{filter:${yH};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))}.${Ps}:hover,[data-sf-photo-host]:hover .${Ps}{filter:none}}@media (hover:hover) and (prefers-reduced-motion:reduce){.${Ps}{transition:none}}`;function bH(e){let o=ile.hover,t={...e.duration!==o.duration.default?{[xH.duration]:`${e.duration}s`}:{},...e.delay!==o.delay.default?{[xH.delay]:`${e.delay}s`}:{}};return Object.keys(t).length?t:void 0}function SH(e,o,t){if(e===!0)return cle(!0);if(t?.kind==="mono"){let r=bH(t);return{className:Ps,sheet:bx,...r?{style:r}:{}}}return e===!1?{}:o===!0?{className:Ps}:{}}var wH="data-sf-repeat",vv="sf-photo-zoom",dle="--sf-photo-zoom",LUe="sf-photo-wash",gx="sf-photo-wash-rest",tf="sf-photo-wash-hover",yx="sf-photo-frame",CH=(e,o)=>`:not([${wH}]:not(${o}) .${e})`,Tv=(e,o)=>`[${wH}]${o} .${e}${CH(e,o)}`,kv=(e,o)=>`${o},${Tv(e,":hover")},[${Pv}]:hover .${e}${CH(e,":hover")}`,gH=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))`,fle=`.${tf}{opacity:0}@media (hover:hover){.${gx},.${tf}{transition:${gH("opacity")}}${kv(tf,`.${yx}:hover .${tf}`)}{opacity:1}${kv(gx,`.${yx}:hover .${gx}`)}{opacity:0}}@media (hover:hover) and (prefers-reduced-motion:no-preference){.${vv}{transition:${gH("transform")}}${kv(vv,`.${yx}:hover .${vv}`)}{transform:scale(var(${dle}))}}@media (hover:hover) and (prefers-reduced-motion:reduce){.${gx},.${tf}{transition:none}}`,FUe="sf-photo-move";function BUe(e){if(!e||!e.zoom&&!e.darken)return null;let o=bH(e);return{className:yx,sheet:fle,...o?{style:o}:{}}}function vH(e){return e===!0?{[Ps]:bx}:{}}var Ix="sf-box-reveal",NUe="sf-box-reveal",ple=8,IH=.3,DUe=`@media ${Ic}{.${Ix}{opacity:0;transform:translateY(${ple}px);transition:opacity ${IH}s ease-out,transform ${IH}s ease-out}${Tv(Ix,":hover")},${Tv(Ix,":focus-within")}{opacity:1;transform:none}}@media ${Ic} and (prefers-reduced-motion:reduce){.${Ix}{transition:none;transform:none}}`;import{hidableText as ule}from"efficient-easel/draw";var mle={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"},hle={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 TH(e){let o=e.isVideo&&QO(e.videoSource)==="youtube",t=e.isVideo&&e1(e.videoPlayback)==="click",r=o?o1(ule(e.youtubeUrl)):null,a=bu(e.mediaLayout);return{fromYouTube:o,onClick:t,youTubeId:r,backgroundFile:e.isVideo&&!o&&!t,desktopLayout:a,phoneLayout:jy(e.mediaLayoutPhone,a),twoPictures:!e.isVideo&&Lc(e)>1}}function rf(e,o){return ki(Ss({_partMotion:e},o))}function af(e,o){return Sl(Ss({_partMotion:e},o))}var Sx=e=>ov({desktop:e.objectPosition,tablet:e.objectPositionTablet,phone:e.objectPositionPhone}),PH=_c.img;function EH({entrance:e,scroll:o,origins:t,editing:r,className:a,attrs:n,style:s,zoomLayerClass:i,children:l}){return e?Uo(Vh,{views:e,editing:r,boxClass:a,boxAttrs:n,...s?{boxStyle:s}:{},children:l}):o?Uo(mx,{views:o,...t?{origins:t}:{},boxClass:a,boxAttrs:n,...s?{boxStyle:s}:{},...i?{zoomLayerClass:i}:{},children:l}):Uo("div",{className:a,...n,...s?{style:s}:{},children:l})}function El(e,o){return SH(void 0,void 0,wE(Ss({_partMotion:e},o)))}function _H(e){return ks.some(o=>El(e,o).className)?{hostAttrs:{[Pv]:""},sheet:bx}:{}}function wx({treatment:e,children:o}){return e.className?Uo("div",{className:`absolute inset-0 ${e.className}`,...e.style?{style:e.style}:{},children:o}):Uo(kH,{children:o})}function Cx({color:e,opacity:o,passClicks:t=!0}){return o>0?Uo("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}}):null}function vx({part:e,editing:o,marked:t=!0,entrance:r,scroll:a=null,origins:n,className:s,children:i}){let l=o&&t?{[of]:e}:void 0;return Uo(EH,{entrance:r,scroll:a,origins:n,editing:o,className:s,attrs:l,zoomLayerClass:PH,children:i})}function OH({partMotion:e,editing:o,children:t}){let r=rf(e,"media"),a=af(e,"media"),n=El(e,"media"),s=Uo(au,{fill:_c,children:t}),i=n.className?Uo("div",{className:`absolute inset-0 z-[1] ${n.className}`,...n.style?{style:n.style}:{},children:s}):s;return r||a?Uo(EH,{entrance:r,scroll:a,editing:o,className:"absolute inset-0 z-[1]",zoomLayerClass:PH,children:i}):Uo(kH,{children:i})}function AH({desktopLayout:e,phoneLayout:o,editing:t,marked:r=!0,partMotion:a,first:n,second:s,laterSlide:i=!1}){return Ev("div",{className:`absolute inset-0 z-[1] grid ${mle[o]} ${hle[e]}`,"data-hero-layout":e,"data-hero-layout-phone":o,children:[Uo(vx,{part:"image",editing:t,marked:r,entrance:rf(a,"image"),scroll:af(a,"image"),origins:Sx(n),className:"relative overflow-hidden",children:Ev(wx,{treatment:El(a,"image"),children:[Uo(Qd,{posterSrc:Ht(n.src),showVideo:!1,laterSlide:i,objectPosition:n.objectPosition,objectPositionPhone:n.objectPositionPhone,objectPositionTablet:n.objectPositionTablet}),Uo(Cx,{color:n.tintColor,opacity:n.tintOpacity})]})}),Uo(vx,{part:"image2",editing:t,marked:r,entrance:rf(a,"image2"),scroll:af(a,"image2"),origins:Sx(s),className:`relative overflow-hidden ${Zu({desktop:e==="one",tablet:e==="one",mobile:o==="one"},{atSectionLine:!0})}`.trimEnd(),children:Ev(wx,{treatment:El(a,"image2"),children:[Uo(Qd,{posterSrc:Ht(s.src),showVideo:!1,laterSlide:i,objectPosition:s.objectPosition,objectPositionPhone:s.objectPositionPhone,objectPositionTablet:s.objectPositionTablet}),Uo(Cx,{color:s.tintColor,opacity:s.tintOpacity})]})})]})}import{jsx as nn,Fragment as xle,jsxs as gle}from"react/jsx-runtime";import{useEffect as Ile,useRef as yle,useState as ble}from"react";import{PlaySolidIcon as Sle}from"efficient-shell/icons/efficient-looks";function RH({youTubeId:e,ownPoster:o,background:t,editing:r}){let[a,n]=ble("large");return Ile(()=>n("large"),[e]),e?gle(xle,{children:[!o&&a!=="none"&&nn($h,{src:a==="large"?t1(e):r1(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&&nn("div",{className:"pointer-events-none absolute inset-0 z-[3] overflow-hidden [container-type:size]","aria-hidden":"true",children:nn("iframe",{src:Yy(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 LH({youTubeId:e,fileSrc:o,fileAv1Src:t,fileSrcPhone:r,fileAv1SrcPhone:a,playing:n,onPlay:s,editing:i}){let l=yle(null),d=Wd(l,!0,!0)==="phone";if(!e&&!o)return null;let f=hu({video:o,av1:t,videoPhone:r,av1Phone:a},d),u=mu(f.video,f.av1);return n&&!i?e?nn("iframe",{src:Yy(e,"click"),title:qy,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"}):nn("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=>nn("source",{src:p.src,type:p.type},p.src))},f.video):nn("button",{ref:p=>{l.current=p},type:"button","aria-label":qy,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:nn(Sle,{size:28})})}function FH(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 BH=["top","middle","bottom"],NH=["left","center","right"],DH="bottom",MH="left",wle={top:"Top",middle:"Middle",bottom:"Bottom"},Cle={left:"Left",center:"Center",right:"Right"},pze="Up and down",uze="Sideways",vle={top:"flex-start",middle:"center",bottom:"flex-end"},kle={left:"flex-start",center:"center",right:"flex-end"},Tle="--sf-hero-phone-y",Ple="--sf-hero-phone-x";function Ele(e){return BH.includes(e)?e:DH}function _le(e){return NH.includes(e)?e:MH}function HH(e,o){let t=Ele(e),r=_le(o),a={};return t!==DH&&(a[Tle]=vle[t]),r!==MH&&(a[Ple]=kle[r]),a}function mze(){return BH.map(e=>({label:wle[e],value:e}))}function hze(){return NH.map(e=>({label:Cle[e],value:e}))}import{hexToRgb as Ole}from"efficient-shell/format";var Ale=!0;var Rle=[[0,".5"],[30,".1"],[60,".1"],[100,".85"]];function WH(e){let o=Ole(e);return o?`${o.r},${o.g},${o.b}`:null}function $H(e){return e==null?Ale:e!==!1}function UH(e){let o=(e?WH(e):null)??WH(mr);return`linear-gradient(180deg, ${Rle.map(([t,r])=>`rgba(${o},${r}) ${t}%`).join(", ")})`}import{hexToRgb as zH}from"efficient-shell/format";var GH="bottom";var Lle=[{label:"Bottom",value:"bottom",cell:"bottom"},{label:"Top",value:"top",cell:"top"},{label:"Left",value:"left",cell:"left"},{label:"Right",value:"right",cell:"right"}],Fle={bottom:180,top:0,left:270,right:90},Ble=[[.55,0],[.15,18],[null,35],[null,55],[.85,100]],Nle=[[null,33],[.6,67],[.94,100]];function Dle(e,o){let{r:t,g:r,b:a}=zH(e)??zH(mr);return`rgba(${t},${r},${a},${o})`}function jH(e){return Io(Lle,GH,e)}function KH(e=mr,o=GH){let t=jH(o),r=(t==="top"||t==="bottom"?Ble:Nle).map(([a,n])=>`${a===null?"transparent":Dle(e,a)} ${n}%`);return`linear-gradient(${Fle[t]}deg, ${r.join(", ")})`}function VH(e,o){let t=be(e.overlayColor),r=be(e.overlayPosition),a=be(o)??mr;return!t&&!r?{own:!1,color:a,position:null}:{own:!0,color:t??a,position:jH(r)}}var Ule=Mle({});function $ze({name:e,process:o,mediaType:t=Rc.HeroSlide,mediaSrc:r,videoSpeed:a,poster:n,mediaAv1:s,mediaSrcPhone:i,mediaAv1Phone:l,posterPhone:d,objectPosition:f,objectPositionPhone:u,objectPositionTablet:p,tintColor:m=mr,tintOpacity:h=0,groups:I,editing:w=!1,themeClassName:S,themeStyle:v,overlayColor:b,overlayPosition:y,mediaLayout:k,mediaLayoutPhone:F,mediaImage2:T,objectPosition2:D,objectPosition2Phone:P,objectPosition2Tablet:L,tintColor2:C=mr,tintOpacity2:A=0,videoSource:E,youtubeUrl:R,videoPlayback:W,partMotion:z,laterSlide:Z=!1}){let V=Mt(),{alignment:fe="left",textureOpacity:Ie,textureOn:ae,textureColor:Oe,quietVideo:ve,phoneUpDown:Ae,phoneSideways:Ue,holdReel:No,reelHeld:Vo,shownSlide:Yo,ratioMin:mo}=Hle(Ule),qo=Bd(),vo=Z&&qo==="first",pe=$le(null),[$,Ze]=qH(Yo===void 0?void 0:!1);Wle(()=>{let Cn=pe.current;Ze(Yo===void 0||!Cn?void 0:FH(Cn.closest(".hero-track"),"data-slide-name")[Yo]===Cn)});let Ce=t==="video",Ee=Ce?Ht(r):void 0,ho=Ce?Ht(n):Ht(r)??Ht(n),xo=Ce?{av1:Ht(s),phone:Ht(i),av1Phone:Ht(l),poster:Ht(d)}:{},lt=typeof a=="number"?a/100:1,{fromYouTube:Re,onClick:sr,youTubeId:oi,backgroundFile:Bt,desktopLayout:VI,phoneLayout:dc,twoPictures:ti}=TH({isVideo:Ce,videoSource:E,videoPlayback:W,youtubeUrl:R,mediaLayout:k,mediaLayoutPhone:F}),[ri,oa]=qH(!1);ri&&Vo===!1&&oa(!1);let La=!ri,Sn=VH({overlayColor:b,overlayPosition:y},Oe),fc=Ce?null:rf(z,"image"),wn=Ce?null:af(z,"image"),hp=_H(z),pc=Vt(wx,{treatment:Ce?{}:El(z,"image"),children:Vt(Qd,{videoSrc:Bt?Ee:void 0,videoAv1Src:Bt?xo.av1:void 0,videoSrcPhone:Bt?xo.phone:void 0,videoAv1SrcPhone:Bt?xo.av1Phone:void 0,posterSrc:ho,posterSrcPhone:xo.poster,showVideo:Bt,playbackRate:lt,objectPosition:f,objectPositionPhone:Ce?void 0:u,objectPositionTablet:Ce?void 0:p,quiet:ve,slideShown:$,laterSlide:Z,laterOfLead:vo})}),xp=YH("section",{ref:pe,className:Zo(`${mo?"relative min-h-full w-full overflow-clip":"relative h-full w-full overflow-hidden"}${S?` ${S}`:""}`,V.className),...V.attrs,style:v,"data-slide-name":e??"","data-slide-process":o??"","data-slide-media":Bt&&Ee?"video":"still",...hp.hostAttrs,children:[Vt(rx,{sheet:hp.sheet}),Vt(OH,{partMotion:z,editing:w,children:ti?Vt(AH,{laterSlide:Z,desktopLayout:VI,phoneLayout:dc,editing:w,partMotion:z,first:{src:r,objectPosition:f,objectPositionPhone:u,objectPositionTablet:p,tintColor:m,tintOpacity:h},second:{src:T,objectPosition:D,objectPositionPhone:P,objectPositionTablet:L,tintColor:C,tintOpacity:A}}):Re||fc||wn?YH(vx,{part:Ce?"media":"image",editing:w,entrance:fc,scroll:wn,origins:Sx({objectPosition:f,objectPositionTablet:p,objectPositionPhone:u}),className:"absolute inset-0 z-[1]",children:[pc,Re&&Vt(RH,{youTubeId:oi,ownPoster:!!ho,background:!sr,editing:w})]}):pc}),sr&&Vt(LH,{youTubeId:oi,fileSrc:Re?void 0:Ee,fileAv1Src:Re?void 0:xo.av1,fileSrcPhone:Re?void 0:xo.phone,fileAv1SrcPhone:Re?void 0:xo.av1Phone,playing:ri,onPlay:()=>{oa(!0),No?.()},editing:w}),La&&!ti&&Vt(Cx,{color:m,opacity:h,passClicks:!1}),La&&$H(ae)&&Vt("div",{className:"absolute inset-0 z-[2]",style:{background:Sn.own?KH(Sn.color,Sn.position??void 0):UH(Sn.color),...Ie!==void 0?{opacity:Ie/100}:null}}),La&&Vt("div",{className:[mo?"sf-hero-group-layer relative min-h-full z-[3] mx-auto max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)] pt-[140px] pb-14":"sf-hero-group-layer absolute inset-0 z-[3] mx-auto max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)] pt-[140px] pb-14",w?"sf-hero-group-layer-edit":""].filter(Boolean).join(" "),style:{...K_,...HH(Ae,Ue)},children:I&&Vt(I,{className:"sf-hero-group-zone",minEmptyHeight:160})})]});return V.scope(vo?Vt(Wh,{children:xp}):xp)}var XH=Array.from({length:3},(e,o)=>({name:`Slide ${o+1}`,process:"Category",mediaType:"image",mediaVideo:"",poster:""}));import{newNodeId as o4}from"efficient-easel/draw";import{isNodeList as Gle}from"efficient-easel/data";var _v=3,Ov=()=>({type:Y,props:{direction:"column"},slots:{[De]:[{type:"ImageBlock"},{type:Y,props:{direction:"column"},slots:{[De]:[{type:"Text",props:Na()},{type:"Text"}]}}]}}),ZH=()=>Array.from({length:_v},Ov);var JH=["","","","","",""],QH="#ticker",nf="strip",Av={sectionAccent:Mr,line:!1};function zle(e){return(Array.isArray(e.tickerItems)?e.tickerItems:[]).map(o=>typeof o?.text=="string"?o.text:"").filter(o=>o.trim()!=="")}function Rv(e){return zle(e).length>0}function Yze(e){return e.showTicker!==!1&&Rv(e)}var t4=(e,o)=>({type:e.type,props:{...o?.(e.type)??{},...Object.fromEntries(Object.entries(e.props).map(([t,r])=>[t,Gle(r)?r.map(a=>t4(a,o)):r]))}}),jle=e=>{let[o]=Br([Ov()],a=>o4(a)),{id:t,...r}=t4(o,e).props;return r},Yt={Hero:{slot:"slides",childType:"HeroSlide",addLabel:"Add slide",slider:!0,seeds:()=>XH.map(e=>({...e}))},HeroSlide:{slot:"groups",childType:"HeroGroup",addLabel:`Add ${hc.toLowerCase()}`,seeds:()=>[],addBlocked:Ny,notice:Dy},HeroSingle:{slot:"boxes",childType:"HeroGroup",addLabel:`Add ${hc.toLowerCase()}`,seeds:()=>[],addBlocked:Ny,notice:Dy},ProcessSteps:{slot:mc,childType:Y,addLabel:`Add ${hc.toLowerCase()}`,seeds:e=>Array.from({length:_v},()=>jle(e)),skipSeed:e=>Array.isArray(e.steps)&&e.steps.length>0}},e4=1,Kle={slot:nf,childType:Y,addLabel:`Add ${hc.toLowerCase()}`,seeds:()=>[],addBlocked:e=>e.length>=e4?"This Hero has its Scrolling Bar already. Delete it to add another.":null,notice:e=>e.length>e4?`This Hero holds ${e.length} Scrolling Bars. Keep one and delete the others.`:null},r4={Hero:{[nf]:Kle}};function sGe(e){for(let[o,t]of Object.entries(e)){if(He(Yt,o)&&U(Yt,o)!==t)throw new Error(`lib/document/slot-specs: "${o}" already has a slot spec`);Yt[o]=t}}function iGe(e,o){let t=U(Yt,e);return t?{slot:t.slot,children:t.seeds(o).map(r=>({type:t.childType,props:{id:o4(t.childType),...r}}))}:null}var Yle=["GalleryB"];function a4(e){let o=e.content;if(!Array.isArray(o))return e;let t=!1,r=o.map(s=>{let i=s?.type;if(!i||!Yle.includes(i))return s;let l=U(Yt,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(Vle(r)),n=a.size?r.filter((s,i)=>!a.has(i)):r;return a.size&&(t=!0),t?{...e,content:n}:e}var qle={"Logos.logosPerRow":"columns","HeroSlide.tintOpacity":"overlay","Split.textBgTint":"overlay"},Xle={"Footprint.source":"typed"};function n4(e){let o=e.props,t=!1;if(e.type&&o)for(let[r,a]of Object.entries(qle)){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(Xle)){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],L0(i)&&i!==a&&!oo(l)&&(l[_o]=i),o=l,t=!0}if(e.type&&o){let r=Dp(e.type,o);r!==o&&(o=r,t=!0)}if(o){let r=go({props:o},a=>so(a,n4));r.props!==o&&(o=r.props,t=!0)}return t?{...e,props:o}:e}function s4(e){return bp(e,o=>so(o,n4))}import{readHidable as Jle}from"efficient-easel/draw";function kx(e,o,t){let r=[];return e.forEach((a,n)=>{let s=o(a),i=r.find(l=>l.key===s);i||(i={key:s,name:t(a),items:[]},r.push(i)),i.items.push({item:a,index:n})}),r}function gGe(e){return Zle[sf(e)]}var Zle={1:"grid-cols-1",2:"grid-cols-2",3:"grid-cols-3",4:"grid-cols-4"};function sf(e){if(e<=1)return 1;if(e<=4)return e;let o=t=>e%t||t;return o(4)>=o(3)?4:3}var Zr=Y,Jr=De;function Es(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 Qle(e,o){return o===0?`${e}~box`:`${e}~box-${o+1}`}var l4=new Set(["id"]),sn={},lf=[],ece={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:[]},oce=Object.keys(ece),_s=["Breadcrumb","DocBody","Form","SubmitBuild","Footprint","FAQ","ContactLocations","ProcessSteps",...oce,"Stats","Logos","PaymentBadges","PaymentLogosBlock","FitmentFinder","DocMasthead","DocTabs","Timeline","TimelineTrack","OrderSummary","Chart","Mockup","Integrations","Countdown","FeaturedCover","IntroBleed","SectionHeader","TitleWithButtons","Prose","ParagraphsA","Banner","Cards"];function Po(e){for(let[o,t]of Object.entries(e)){if(He(sn,o)&&U(sn,o)!==t)throw new Error(`lib/sections/section-to-box: "${o}" already has a row`);sn[o]=t}}function ln(e){return U(sn,e)}function tce(e){return He(sn,e)&&lf.includes(e)}function c4(e,o=_s){return He(sn,e)&&(o.includes(e)||tce(e))}function EGe(e){let o=U(dr,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 Lv=e=>Jle(e),ao=e=>Lv(e).text.trim()!=="";function rce(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 ace=e=>e==="heading"?Na():e==="eyebrow"?ia():{};function nce(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 sce(e,o){if(e===void 0)return{};if(typeof e=="string")return{variant:e};let t=o[e.key];return{variant:(typeof t=="string"?U(e.map,t):void 0)??e.fallback}}function i4(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 ice(e){let o=new Set([...l4,"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 Fv=e=>Bp(e.headPlacement)==="own-box";function lce(e){return Fv(e)?"its head sits in a Box of its own above it (own-box): the row draws the head inline":void 0}function cce(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 dce(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 fce(e,o,t){if(!t.press)for(let r of dce(e)){let a=cce(o,r);if(a!==void 0)return a}}function Os(e,o,t={}){let r=e.props,a=(o.ownBoxConverts?void 0:lce(r))??fce(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,k)=>{s.push({key:y,home:k}),l.add(y)},f=r._partStyles??{},u=ice(o),p=0,m=(y,k)=>({type:y,props:{...k,id:`${n}~${y}-${++p}`}}),h=(y,k,F,T,D,P,L)=>{if(D){for(let A of y??[]){let E=typeof A=="string"?A:A[0];F[E]!==void 0&&L(E,`nothing \u2014 the ${T} has no parts, so it is not drawn`)}return}let C=typeof k=="function"?k(r,t):k??{};return i4(y??[],C,F,(A,E,R)=>L(A,R?`nothing \u2014 the old value draws nothing (${T}: no ${E})`:`${P}${T}: ${E}`),t)},I=y=>Br(y,k=>`${n}~${k}-${++p}`),w=(y,k,F)=>{let T=y.of?y.of(k):Array.isArray(k[y.key])?k[y.key]:[],D=typeof y.props=="function"?y.props(r,t):y.props??{},P=T.map((R,W)=>{let z=R??{},Z=y.item?.(z,W,r)??{},V=S(Z.reverse?[...y.parts].reverse():y.parts,z,!1,`item ${W+1}: `);return y.flat?Z.props?V.map(fe=>({...fe,props:{...fe.props,...Z.props,id:fe.props.id}})):V:[m(Zr,{name:`${y.name} ${W+1}`,...D,...Z.props??{},[Jr]:V})]});if(y.groups){let R=y.groups;return F(y.key,T.length?`one Box per item (${T.length}), in a Box per group`:"nothing \u2014 the list is empty"),kx(T.map(W=>W??{}),R.of,R.of).map((W,z)=>{let Z=W.items.map(ve=>ve.item),V=R.parts?S(R.parts,R.head?.(Z,r)??{},!1,`group ${z+1}: `):[],fe=W.items.map(ve=>P[ve.index]),Ie=R.perRow?.(Z.length,r),ae=Number.isInteger(Ie)&&Ie>=1?Ie:1,Oe=[];if(R.perRow&&ae<fe.length)for(let ve=0;ve*ae<fe.length;ve++)Oe.push(fe.slice(ve*ae,(ve+1)*ae).flat());return m(Zr,{name:`${R.name} ${z+1}`,...R.props??{},[Jr]:[...V,m(Zr,{name:`${R.itemsName} ${z+1}`,...R.itemsProps?.(Z.length,r)??{},[Jr]:Oe.length?Oe.map((ve,Ae)=>m(Zr,{name:`${R.rowName??`${R.itemsName} row`} ${Ae+1}`,...R.rowProps??{},[Jr]:ve})):fe.flat()})]})})}let L=y.perRow?.(r),C=y.perRow?Number.isInteger(L)&&L>=1?L:1:0;if(F(y.key,(T.length?y.flat?`each item's parts (${T.length} items), in order`:`one Box per item (${T.length}), its parts inside`:"nothing \u2014 the list is empty")+(C&&T.length?`, in rows of ${C}`:"")),!C)return P.flat();let A=typeof y.rowProps=="function"?y.rowProps(r,t):y.rowProps??{},E=[];for(let R=0;R*C<P.length;R++){let W=P.slice(R*C,(R+1)*C).flat(),z=y.rowFiller?C-P.slice(R*C,(R+1)*C).length:0;E.push(m(Zr,{name:`${y.rowName??`${y.name} row`} ${R+1}`,...A,[Jr]:[...W,...Array.from({length:z},(Z,V)=>m(Zr,{name:`Empty ${V+1}`,...y.rowFiller,[Jr]:[]}))]}))}return E},S=(y,k,F,T)=>{let D=[],P=(C,A)=>F?d(C,A):void 0,L=C=>F?f[C]:void 0;for(let C of y)if(!(C.when&&!C.when(r,F?void 0:k)))switch(C.kind){case"text":{let A=Lv(k[C.key]);if(!A.text.trim()&&!(F&&t.press&&o.pressKeepsEmpty?.includes(C.key))){P(C.key,"nothing \u2014 empty words draw nothing, so no block");break}let E=ace(C.role??"body"),{_partStyles:R,...W}=E,z=nce(E,C.styleFrom?{...C.style,...C.styleFrom(r,t)}:C.style,L(C.key),C.props?.align);D.push(m("Text",{text:C.mark==="accentLead"?rce(A.text):C.mark==="accentItalic"?gc(A.text):A.text,...W,...C.props??{},...z,...A.hidden?{_hidden:!0}:{}})),P(C.key,`${T}Text block: its words${A.hidden?", hidden":""}`);break}case"button":{let A=Lv(k[C.key]);if(!A.text.trim()){P(C.key,"nothing \u2014 no words, no button"),P(C.href,"nothing \u2014 no button to link"),typeof C.variant=="object"&&P(C.variant.key,"nothing \u2014 no button to style");break}let E=typeof k[C.href]=="string"&&k[C.href]?k[C.href]:"#",R={...C.style??{},...L(C.key)??{}};D.push(m("ButtonBlock",{label:A.text,href:E,...typeof C.props=="function"?C.props(k,t):C.props??{},...sce(C.variant,k),...Object.keys(R).length?{_partStyles:{label:R}}:{},...A.hidden?{_hidden:!0}:{}})),P(C.key,`${T}Button block: its words`),P(C.href,`${T}Button block: its link`),typeof C.variant=="object"&&P(C.variant.key,`${T}Button block: its Style`);break}case"image":{let A=k[C.key];if(typeof A!="string"||!A){P(C.key,"nothing \u2014 no picture, no block"),C.alt&&P(C.alt,"nothing \u2014 no picture to describe");break}let E=C.alt&&typeof k[C.alt]=="string"?k[C.alt]:"";D.push(m("ImageBlock",{src:A,alt:E,...C.props??{}})),P(C.key,`${T}Image block: its picture`),C.alt&&P(C.alt,`${T}Image block: its alt text`);break}case"list":{D.push(...w(C,k,P));break}case"group":{let A=S(C.parts,k,F,T),E=h(C.box,C.props,k,`${C.name} Box`,!A.length&&!C.keepEmpty,T,P);E&&D.push(m(Zr,{name:C.name,...E,[Jr]:A}));break}case"block":{let A=C.parts?S(C.parts,k,F,T):[],E=h(C.box,C.props,k,`${C.type} block`,!!C.parts&&!A.length&&!C.keepEmpty,T,P);E&&D.push(m(C.type,{...E,...C.slot?{[C.slot]:A}:{}}));break}case"core":{let A=C.as??e.type,E={...C.headless?{}:{headPlacement:"own-box"},...C.props??{}},R=C.keep==="rest"?Object.keys(k).filter(z=>!u.has(z)&&!(z in E)):C.keep;for(let z of R)k[z]!==void 0&&(E[z]=k[z],P(z,`the ${A} block inside the Box`));if(C.keep==="rest"){for(let Z of Object.keys(C.props??{}))k[Z]!==void 0&&!u.has(Z)&&P(Z,`nothing \u2014 the ${A} block inside the Box has the row's own value`);k.headPlacement!==void 0&&P("headPlacement",`the ${A} block inside the Box: own-box`);let z=Object.fromEntries(Object.entries(f).filter(([Z])=>!u.has(Z)));Object.keys(z).length&&(E._partStyles=z)}for(let[z,Z]of Object.entries(C.rename??{}))k[z]!==void 0&&(E[Z]=k[z],P(z,`the ${A} block inside the Box: ${Z}`));if(C.derive){Object.assign(E,C.derive.props(k,t));for(let z of C.derive.reads)k[z]!==void 0&&P(z,`the ${A} block inside the Box`)}let W=typeof C.slots=="function"?C.slots(k,t):C.slots??{};for(let[z,Z]of Object.entries(W))E[z]=Z.flatMap(V=>"kind"in V?w(V,k,P):I([V]));D.push(m(A,E));break}}return D},v=(y,k)=>{let F=k===0?"Box":`${y.name} Box`,T=S(y.parts,r,!0,k===0?"":`${F}: `),D=typeof y.boxProps=="function"?y.boxProps(r,t):y.boxProps??{},P=i4(y.box??[],D,r,(L,C,A)=>d(L,A?`nothing \u2014 the old value draws nothing (${F}: no ${C})`:`${F}: ${C}`),t);return{type:Zr,props:{name:y.name,...P,[Jr]:T,id:Qle(n,k)}}},b=[o,...o.also??[]].map(v);r._partStyles!==void 0&&d("_partStyles","each old part's style moved to its new part");for(let[y,k]of Object.entries(o.reads??{}))r[y]!==void 0&&d(y,k);for(let[y,k]of Object.entries(o.drop??{}))y in r&&(i.push({key:y,why:k}),l.add(y));for(let y of Object.keys(r))l4.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 d4(e,o=lf,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)?U(sn,s.type):void 0;if(!i)return[s];let l=Os(s,i,t);return l.skipped!==void 0?[s]:(a=!0,l.nodes)});return a?{...e,content:n}:e}function f4(e,o=lf,t={}){if(!Array.isArray(e))return[];let r=[];return e.forEach((a,n)=>{let s=a&&typeof a.type=="string"&&o.includes(a.type)?U(sn,a.type):void 0;if(!s)return;let i=Os(a,s,t);i.skipped===void 0&&r.push({index:n,node:i.node,nodes:i.nodes})}),r}import{BLOCK_FIXED_WIDTH as pce,BLOCK_SIZE_KEYS as uce,parseBlockWidthFit as Px,phoneKey as p4,parseTextFit as Tx,tabletKey as u4,viewKeyAt as m4}from"efficient-easel/draw";import{sideLengthAt as mce}from"efficient-easel/screen/lib/content/length-units";var hce="sf-block-size",cf=["width","minWidth","maxWidth"],Ex=e=>`${e}Unit`,cn=e=>typeof e=="number"&&Number.isFinite(e)&&e>=0?e:void 0,xce={desktop:{fill:"view-wide:w-full view-wide:[.flex-row>&]:grow",fixed:"view-wide:w-[min(var(--sf-bw),100%)] view-wide:basis-auto! view-wide:grow-0! view-wide:shrink-0"},phone:{fill:"max-view-wide:w-full",fixed:"max-view-wide:w-[min(var(--sf-bw-p),100%)] max-view-wide:basis-auto! max-view-wide:grow-0! max-view-wide:shrink-0"}},I4={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"}},gce={desktop:I4.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"}},Ice={two:{desktop:"view-wide:[.flex-row>*>&]:grow"},three:{desktop:"view-desktop:[.flex-row>*>&]:grow",tablet:"view-wide:max-view-desktop:[.flex-row>*>&]:grow"}},y4="max-view-wide:grow!";function b4(e){return _x(e).mode.phone==="fill"}var yce={desktop:"--sf-bw",tablet:"--sf-bw-t",phone:"--sf-bw-p"},bce={fill:"data-sf-width-fill",fixed:"data-sf-width-fixed"},Sce="data-sf-min-width",h4={two:{desktop:"wide",phone:My.phone},three:My},wce={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)]"]}},Bv={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)]"]}},Cce={minWidth:{desktop:Bv.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:Bv.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)]"]}},vce=["widthFit",...cf],x4={desktop:"view-wide:whitespace-nowrap view-wide:[&_*]:whitespace-nowrap!",phone:"max-view-wide:whitespace-nowrap max-view-wide:[&_*]:whitespace-nowrap!"},Nv={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!"},kce={desktop:Nv.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!"},S4={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"},Tce={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:S4.phone},w4={desktop:"view-wide:max-w-full",phone:"max-view-wide:max-w-full"},g4={desktop:"view-desktop:max-w-full",tablet:"view-wide:max-view-desktop:max-w-full",phone:w4.phone};function C4(e){let o=_x(e);return o.sides.filter(t=>o.mode[t]==="fill").map(t=>Ice[o.three?"three":"two"][t]).filter(Boolean).join(" ")}function v4(e){let{three:o,sides:t,mode:r,lengthPerSide:a}=_x(e),n=d=>o?h4.three[d]:h4.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[bce[d]]=s[d].join(" "));return s.min.length&&(l[Sce]=s.min.join(" ")),l}function _x(e){let o=vce.some(a=>{let n=e[a]?.tablet;return a==="widthFit"?Px(n)!==void 0:cn(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=Ex(a),s={};for(let l of t)s[m4(a,ca(l))]=cn(e[a]?.[l]),s[m4(n,ca(l))]=e.units?.[a]?.[l];let i=l=>mce(s,{length:a},n,ca(l),"length")??void 0;return{desktop:i("desktop"),tablet:i("tablet"),phone:i("phone")}},mode:r(Px,e.widthFit)}}function Dv(e,{atSectionLine:o=!1}={}){let t=["desktop","tablet","phone"].some(A=>Tx(e.textFit?.[A])==="ellipsis"),r=o&&!t,a=r?gce:I4,n=r?Cce:Bv,s=r?kce:Nv,i=[],l={},d={},{three:f,sides:u,lengthPerSide:p,mode:m}=_x(e),h=p("width");for(let A of u){let E=m[A];!E||E==="fit"||(i.push(f?a[A][E]:xce[A][E]),E==="fixed"&&(l[yce[A]]=Me(h[A]?.value??pce.fallback,h[A]?.unit)))}for(let A of cf.filter(E=>E!=="width")){let E=p(A);for(let R of u){let W=E[R];if(W===void 0)continue;let[z,Z]=f?n[A][R]:wce[A][R];l[z]=Me(W.value,W.unit),i.push(Z)}}let I=Tx(e.textFit?.desktop),w=Tx(e.textFit?.phone),S=A=>{let E=cn(e.minFont?.[A]);return E===void 0?void 0:e.units?.minFont?.[A]==="vw"?`${E}vw`:String(E)},v=S("desktop"),b=S("phone"),y=Tx(e.textFit?.tablet),k=y!==I||w!==void 0?y:void 0,F=S("tablet"),T=F!==v||b!==void 0?F:void 0,D=cn(e.maxWidth?.desktop),P=cn(e.maxWidth?.tablet)??D,L={desktop:D!==void 0,tablet:P!==void 0,phone:(cn(e.maxWidth?.phone)??P)!==void 0},C=(A,E,R)=>{if(E!=="line"&&E!=="ellipsis")return;let W=A==="tablet"?void 0:A,z=(Z,V)=>R||!W?Z[A]:V[W];if(E==="line"){i.push(z(s,x4));return}if(i.push(z(Nv,x4)),i.push(z(Tce,S4)),f&&!R&&A==="desktop")for(let Z of["desktop","tablet"])L[Z]||i.push(g4[Z]);else L[A]||i.push(z(g4,w4))};return k?(C("desktop",I,!0),C("tablet",k,!0),C("phone",w??k,!0)):(C("desktop",I,!1),C("phone",w??I,!1)),I&&(d[Ca.fit]=I),k&&(d[Ca.fitTablet]=k),w&&(d[Ca.fitPhone]=w),v!==void 0&&(d[Ca.min]=v),T!==void 0&&(d[Ca.minTablet]=T),b!==void 0&&(d[Ca.minPhone]=b),!r&&(k||T!==void 0)&&(d[Ca.edge]=""),i.length===0&&Object.keys(d).length===0?null:{className:[hce,...i].join(" "),style:l,attrs:d}}function BGe(e){if(cn(e.maxWidth?.desktop)!==void 0)return!0;let o=Px(e.widthFit?.desktop);return o==="fill"||o==="fixed"}function k4(e){return["desktop","tablet","phone"].some(o=>{let t=Px(e.widthFit?.[o]);return t==="fixed"||t==="fill"||cn(e.minWidth?.[o])!==void 0})}function Ox(e){let o={};for(let t of uce){let r=e[t],a=e[u4(t)],n=e[p4(t)];(r!==void 0||a!==void 0||n!==void 0)&&(o[t]={desktop:r,tablet:a,phone:n});let s=Ex(t),i={desktop:e[s],tablet:e[u4(s)],phone:e[p4(s)]};(i.desktop!==void 0||i.tablet!==void 0||i.phone!==void 0)&&((o.units??={})[t]=i)}return o}var T4={label:"Button",defaultProps:{label:"",href:"#",variant:"primary",align:"left",contained:!0}};import{parseHexColor as Pce}from"efficient-shell/format";import{convertLength as Ece}from"efficient-easel/screen/lib/content/length-units";var Qr=(e,o,t,r)=>o===t?e:Ece(e,o,t,r,{min:0,max:200,step:4}),As={textFit:"line",textFitPhone:"wrap"},Rs={...j,[wt]:""},{label:fje,href:pje,..._ce}=T4.defaultProps,Ro=_ce,Ls={buttonFillOpacity:0,buttonBorder:{width:0},buttonPaddingTop:0,buttonPaddingRight:0,buttonPaddingBottom:0,buttonPaddingLeft:0},Q={...xy,sectionAccent:0},Ol={sectionAccent:-1},te=[...za,"sectionHeightMode","sectionHeightValue","sectionHeightUnit","sectionHeightModeTablet","sectionHeightValueTablet","sectionHeightUnitTablet","sectionHeightModePhone","sectionHeightValuePhone","sectionHeightUnitPhone","sectionCorners","sectionCornerSides","sectionBorder","sectionBorderTablet","sectionBorderPhone","sectionAccent",Dc.unitKey,...KL,...WL,"anchor",Pc,...Ni,...tu,...qh,...ou(["widthFit",...cf,...cf.map(Ex)]),...Object.values(Be)],_l="a section width key, ignored since efficient-web-builder 45 (an old key; a section's own width has new keys, lib/content/section-width), so dropping it changes nothing",ee={sectionSurface:"read by nothing in src/ (searched 2026-10-24): a retired theme key that draws nothing today, so dropping it changes nothing",widthMode:_l,fullWidth:_l,pageWidth:_l,backgroundWidth:_l,contentWidth:_l,contentMax:_l},se=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 ie(e,o){let t=q(e.sectionPaddingTop)??0,r=q(e.sectionPaddingBottom)??0,a=q(e.sectionPaddingTopTablet),n=q(e.sectionPaddingBottomTablet),s=_e(e.sectionPaddingUnit),i=_e(e.sectionPaddingUnitTablet),l=_e(e.sectionPaddingUnitPhone),d=(u,p,m,h)=>{let I=q(u);if(I!==void 0)return I+Qr(h,"px",l,"mobile");let w=p===void 0?{n:m,unit:s}:{n:p,unit:i};return Qr(w.n,w.unit,l,"mobile")+Qr(h,"px",l,"mobile")},f=(u,p,m,h,I)=>p!==void 0?{[u]:p+Qr(I??h,"px",i,"tablet")}:I===void 0?{}:{[u]:Qr(m,s,i,"tablet")+Qr(I,"px",i,"tablet")};return{sectionPaddingTop:t+Qr(o.top,"px",s,"desktop"),sectionPaddingBottom:r+Qr(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 xe=e=>[...["sectionPaddingTop","sectionPaddingBottom","sectionPaddingTopTablet","sectionPaddingBottomTablet","sectionPaddingTopPhone","sectionPaddingBottomPhone"].map(o=>[o,o,(t,r)=>ie(r,typeof e=="function"?e(r):e)[o]]),["sectionPaddingUnit","sectionPaddingUnit"],["sectionPaddingUnitTablet","sectionPaddingUnitTablet"],["sectionPaddingUnitPhone","sectionPaddingUnitPhone"]];function qt(e,o){let t={};for(let[a,n]of yS)e[a]!==void 0&&(t[n]=e[a]);let r=td(e,Il(o));return{...t,sectionPaddingTop:r.top,sectionPaddingBottom:r.bottom}}var dn=e=>[...yS.map(([o,t])=>[o,t,(r,a)=>qt(a,e)[t]]),["sectionPaddingTop","sectionPaddingTop",(o,t)=>qt(t,e).sectionPaddingTop],["sectionPaddingBottom","sectionPaddingBottom",(o,t)=>qt(t,e).sectionPaddingBottom]],Oce={kind:"heading-case-upper",styles:["heading-1","heading-2","heading-3"]},uje=e=>o=>ao(o.props[e])?[Oce]:[],ge=(e,o)=>({kind:"text",key:e,role:"eyebrow",props:j,...o?{style:o}:{}}),Al=e=>({kind:"group",name:"Chip",props:{...N,...sa("main"),...Xo(6,14)},parts:[ge(e,{color:"background",...G("label",12),weight:600,letterSpacing:.16})]}),P4=e=>e.background!=="transparent",Ace=(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},df={align:"right",alignPhone:"left"},Rce=(e,o,t)=>{let r=a=>Ace(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}},ff=(e,o,t,r={})=>Rce(e,o,{...Rs,...df,...r,_partStyles:{text:{...ct,color:"labels",...t,case:ct.case,...df}}}),Rl=(e,o)=>typeof e=="number"&&Number.isInteger(e)&&e>=0?e:Es(o)?.selected??0,E4="var(--site-surface-2)",Ax=(e,o)=>Es(o)?.themes[Rl(e.sectionAccent??0,o)],It=(e,o)=>(t,r)=>{if(!o?.(t,r))return sa(e);let a=Ax(t,r)?.[e];return a?{fillColor:a}:{}},Rx=(e,o)=>fn(e,o)>=0,_4=e=>e.startsWith("#")&&Pce(e)!==null,Lx=(e,o,t)=>{let r=e?.trim();if(r&&_4(r))return{fillColor:r};let a=Pb(r);if(a)return sa(a);let n=r===E4?Ax(o,t):void 0;return n?{fillColor:Vp(n)}:{}},Fx=e=>{let o=e?.trim();return!o||o==="transparent"||o===Jo||Pb(o)||o===E4||_4(o)?void 0:"it paints a colour that no Box Fill can hold"},fn=(e,o)=>{let t=Es(o)?.themes;return t&&P4(e)?T_(t,Rl(e.sectionAccent,o)):-1},pn=(e,o,t)=>{let r=fn(o,t);return r>=0?r:e},Ll=(e,o)=>{let t=Es(o)?.themes,r=t?P_(t,Rl(e,o)):-1;return r>=0?r:e},Fs=(e,o)=>{let t=fn(e,o);return t>=0?{sectionAccent:t}:{}},un=(e,o)=>P4(e.props)&&fn(e.props,o)<0?[{kind:"band-preset",page:Rl(e.props.sectionAccent,o)}]:[],Fl=(e,{view:o="desktop",to:t="px",maxPx:r=1/0}={})=>{let{siteGutter:a,siteGutterUnit:n,siteGutterPhone:s,siteGutterPhoneUnit:i}=e.site??{},l=ca(o),d=(u,p,m)=>{let h=_e(p),I=Kp(u,h,"spacing",m);return I===null?null:Qr(I,h,"px",l)},f=o==="desktop"?d(a,n,st)??gm(a):d(s,i,xr)??Im(s)??ym(a,n);return Qr(Math.min(r,f),"px",t,l)},pf=Object.fromEntries(["Top","Right","Bottom","Left","TopPhone","RightPhone","BottomPhone","LeftPhone"].map(e=>[`sectionPadding${e}`,0])),uf=e=>({top:0,right:0,bottom:0,left:0,...e}),Mv=(e,o,t,r=[])=>({kind:"group",name:e,keepEmpty:!0,props:(a,n)=>({...N,...pf,...It("surface")(a,n),...typeof t=="function"?t(a,n):t}),box:[[o,"bgImage"],uo.kind,uo.duration,uo.delay],parts:r});import{phoneKey as Jv,readHidable as Qv}from"efficient-easel/draw";import{isNodeList as ede,newId as ode}from"efficient-easel/data";function O4(e){return Math.min(4,Math.max(2,e??3))}var gje={eyebrow:"Label",title:"Section *heading.*"},Lce=yp.Cards,A4={label:"Cards",fields:Lce,defaultProps:{eyebrow:"",title:"",items:[],columns:3}};var bje={eyebrow:"Highlight",title:"Key *features.*"},Sje=()=>[{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")}],R4={label:"Key Features",defaultProps:{eyebrow:"",title:"",items:[],columns:3}};var Hv="cardPlace";function vje(e){return e[Hv]==="top-line"?"top-line":""}var kje="absolute left-5 top-0 z-10 -translate-y-1/2 bg-bg px-2",Tje="data-sf-top-line",Fce=new Set(["Cards",Oo]);function Pje(e){return typeof e=="string"&&Fce.has(e)}var Bce=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 Eje(e,o,t){return!t||!o?.linesBetween||o.index!==0?e:Bce(e)?{...e,top:0}:e}var _je="outsideFramedCard";var Bx={sectionBorder:{top:0,right:1,bottom:1,left:0},...sa("background")},Nce={gap:0,gapPhone:0,sectionBorder:{top:1,right:0,bottom:0,left:1},shadow:!0},Bs=e=>({direction:"row",columns:e,columnsTablet:e,...Nce}),L4=(e={})=>Je(cx,{...j,tag:"p",[Hv]:"top-line"},e,!0),Bl=(e=An)=>{let o=ui(e);return{...o,props:{...Bx,...o.props},slots:{[De]:[...o.slots?.[De]??[],L4()]}}},Wv=(e=!1)=>{let o=mi(e);return{...o,props:{...Bx,...o.props}}},Dce={name:"name",time:"time",note:"note",price:"price"},Mce={textStyle:"body-1",...G("body",16),weight:500,lineHeight:1.5},Hce={...ct,...G("label",12),letterSpacing:.18,lineHeight:1.5},Wce={textStyle:"body-1",...G("body",14),lineHeight:1.6},$ce={textStyle:"body-1",fontRole:"heading",...G("headingSmall",20),weight:500,color:"accent",lineHeight:1.5},Uce={...G("label",11),letterSpacing:.25},zce={gap:16,gapPhone:16,sectionBorder:{top:0,right:0,bottom:0,left:0},shadow:!1},Nx=e=>({direction:"row",columns:e,...zce}),$v=[...new Set([...Object.keys(Bs(1)),...Object.keys(Nx(1))])],Uv=()=>{let e=Dce,o={tag:"p",widthFit:"fill"};return{type:Y,props:{...N,name:"Card",justify:"between",gap:16,gapPhone:16,...Xo(24),sectionBorder:{top:1,right:1,bottom:1,left:1},...sa("surface"),shadow:!0},slots:{[De]:[L4(Uce),{type:Y,props:{...N,name:"Words",gap:8,gapPhone:8},slots:{[De]:[Je(e.name,{...j,...o},Mce),Je(e.time,{...ne,...o},Hce),Je(e.note,{...ne,...o},Wce)]}},Je(e.price,{...j,...o},$ce)]}}};import{tabletKey as D4}from"efficient-easel/draw";import{VIEW_DESKTOP_MIN as Dx}from"efficient-easel/draw";var Mx=Fr,zv=Dx,F4=960,B4=Fr,N4={min:Mx,max:1600,step:10},Hx="stackBelow";function Wje(e){if(!(typeof e!="number"||!Number.isFinite(e))&&!(e<N4.min||e>N4.max))return Math.round(e)}var Gce=e=>`sf-stack-${e}`,jce=e=>`sf-stack-${e}-gutter`,Kce=e=>`sf-stack-${e}-outer`,Nl=e=>`${e-.02}px`;function $je(e,o={}){let t=o.gutter!==!1,r=`.${Gce(e)}`,a=`.${jce(e)}`,n=`.${Kce(e)}`,s=[];if(e>Mx){let i=`${r}>.sf-block-size,${r}>[data-easel-block]>[data-sf-part-host]>.sf-block-size`,l=Math.min(e,Dx);s.push(`@media (min-width:${Mx}px) and (max-width:${Nl(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:${Mx}px) and (max-width:${Nl(l)}){.sf-gap-zone${r}{gap:var(--sf-gap-len-tablet,var(--sf-gap-len-phone,calc(var(--sf-gap-len) / 2)))}}`),e>Dx&&s.push(`@media (min-width:${Dx}px) and (max-width:${Nl(e)}){.sf-gap-zone${r}{gap:var(--sf-gap-len-phone,calc(var(--sf-gap-len) / 2))}}`)}return t&&s.push(`@media (max-width:${Nl(e)}){${a}${a}{padding-inline:${zr.frame}}}`),t&&e<F4&&s.push(`@media (min-width:${e}px) and (max-width:${Nl(F4)}){${a}${a}{padding-inline:${Pt}}}`),e>B4&&s.push(`@media (min-width:${B4}px) and (max-width:${Nl(e)}){`+["top","bottom","left","right"].map(i=>`.sf-pad-${i}-phone:has(>${n}),.sf-pad-${i}-phone${n}{padding-${i}:var(--sf-pad-${i[0]}-phone)!important}`).join("")+"}"),s.join("")}function Ns(e){if(e==="ProductGrid")return"shelf";let o=U(dr,e)?.headStyle;return o==="editorial"||o==="simple"||o==="essay"?o:"standard"}var mf={standard:64,editorial:60,simple:36,essay:28,shelf:20},Vce={SectionHeader:"accent",FAQ:"accent",FitmentFinder:"accent",FitmentTable:"accent",SpecTable:"accent",RelatedProducts:"accent",Collections:"accentNum"};function Yce(e){if(e==="SectionHeader")return{num:"num",title:"title",description:"description",link:!0};let o=U(dr,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 $x(e,o,t){let r=`editorial:${e}|${o}|${t}`,a=Wx.get(r);if(a)return a;let n=$4({num:e,title:o,description:t,link:!1});return Wx.set(r,n),n}var yt={[Hx]:zv},jv={top:0,right:0,bottom:1,left:0},bt=(e,o,t,r)=>({sizeToken:{step:e,px:r,fluid:{minPx:o,vw:t}}}),Ux=(e,o,t={})=>ge(e,{...G("label",o),...t}),zx=(e,o)=>({kind:"text",key:e,role:"heading",props:j,style:{textStyle:"heading-2",...o}}),Kv=800,qce=zv,Vv=(e,o,t,r,a={})=>({kind:"text",key:e,props:{...ne,align:"right",alignPhone:"left",...t?{maxWidth:t,maxWidthPhone:Kv}:{},...a},style:{textStyle:"body-5",fontRole:"heading",alignPhone:"left",...G("body",o),...r,...a}}),W4={...Ro,align:"right",alignPhone:"left",...Ls},Gv=e=>({kind:"button",key:"linkText",href:"linkHref",variant:"ghost",props:W4,style:{...cr(e),color:"labels"}}),M4=(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"?Xce(ia()):{},...t.style}}}}},Xce=e=>e._partStyles.text??{},Dl={widthFitPhone:"fill"};function Yv(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),...Dl}):{...o,...Dl}}}return{...e,parts:e.parts.map(Yv)}}function Zce(e,o){let t=U(Vce,e),r=t==="accent",a=Ux(o.num,14,{color:r?"accent":"labels"}),n=t==="accentNum"&&a.kind==="text"?{...a,mark:"accentLead"}:a,s=zx(o.title,r?{...bt("headingMedium",36,5,64),case:"upper",lineHeight:.95,letterSpacing:-.025}:{...G("headingMedium",56,36),case:"none",lineHeight:1,letterSpacing:-.03}),i=e==="Collections";return{kind:"group",name:"Header",props:{...N,direction:"row",align:"end",justify:"between",gap:40,gapPhone:12,share:"content",sectionBorder:jv,sectionPaddingBottom:24,sectionPaddingBottomPhone:20},parts:[{kind:"group",name:"Title",props:{...N,...Dl,direction:"row",align:"end",gap:40,gapPhone:12,share:"content"},parts:[{kind:"group",name:"Number",props:{...N,...Dl,align:"start",gap:12},parts:[{kind:"image",key:"logoSrc",alt:"logoAlt",props:{aspect:"auto",contained:!1}},n,...i?[M4(o.num,"==01== / Collections",n)]:[]]},{kind:"group",name:"Heading",props:{...N,...Dl},parts:[s,...i?[M4(o.title,`Three ranges,
|
|
323
|
-
one standard.`,s)]:[]]}]},{kind:"group",name:"Words",props:{...N,...Dl,gap:12,maxWidth:340,maxWidthPhone:Kv},parts:[...o.description?[Vv(o.description,14,void 0,{lineHeight:1.5})]:[],...o.link?[Gv(14)]:[],...i?[{kind:"block",type:"ButtonBlock",props:{...W4,variant:"ghost",label:"View all",href:"/wheels",_partStyles:{label:Gv(14).style}}}]:[]]}]}}function Gx(e,o){return e.kind==="text"?o.includes(e.key)?{...e,mark:"accentItalic"}:e:e.kind==="group"?{...e,parts:e.parts.map(t=>Gx(t,o))}:e}function $4(e){let o=zx(e.title,{...bt("headingMedium",40,5.5,80),case:"upper",weight:500,lineHeight:1,letterSpacing:-.03});return{kind:"group",name:"Header",props:{...N,direction:"row",align:"end",justify:"between",gap:40,gapPhone:14,share:"content",sectionBorder:jv,sectionPaddingBottom:32,...yt},parts:[{kind:"group",name:"Title",props:{...N,direction:"row",align:"end",gap:40,gapPhone:14,share:"content",...yt},parts:[{kind:"group",name:"Number",props:{...N,sectionPaddingBottom:8},parts:[{...Ux(e.num,13),props:{...j,...As}}]},Gx(o,[e.title])]},{kind:"group",name:"Words",props:{...N,sectionPaddingBottom:4,maxWidth:360,[D4("maxWidth")]:qce,maxWidthPhone:Kv},parts:e.description?[Vv(e.description,14,void 0,{lineHeight:1.5},{[D4("align")]:"left"})]:[]}]}}function H4(e,o){return{kind:"group",name:"Header",props:{...N,gap:16,gapPhone:16},parts:[Ux(e.num,13),zx(e.title,o)]}}var U4=[["para",{...cr(13),weight:400,lineHeight:1,letterSpacing:.22}],["sm",{...G("headingMedium",40,28),case:"none",weight:500,lineHeight:1,letterSpacing:-.03}],["md",{...G("headingMedium",48,32),case:"none",weight:500,lineHeight:1,letterSpacing:-.03}],["lg",{...G("headingMedium",56,36),case:"none",weight:500,lineHeight:1,letterSpacing:-.03}],["xl",{...G("headingMedium",64,40),case:"none",weight:500,lineHeight:1,letterSpacing:-.03}]],Jce=e=>U4.some(([o])=>o===e.titleSize)?e.titleSize:"lg";function Qce(e){return{kind:"group",name:"Header",props:{...N,direction:"row",align:"center",justify:"between",gap:16,share:"content",stickTop:!0,sectionBorder:jv,sectionPaddingTop:12,sectionPaddingBottom:12},parts:[{kind:"group",name:"Title",props:{...N,direction:"row",align:"end",gap:24,share:"content"},parts:[Ux(e.num,13,{color:"labels",letterSpacing:.22,lineHeight:1}),...U4.map(([o,t])=>({...zx(e.title,t),when:r=>Jce(r)===o}))]},{kind:"group",name:"Words",props:{...N,direction:"row",align:"center",justify:"end",gap:20,share:"content"},parts:[...e.description?[Vv(e.description,13,340,{lineHeight:1.4})]:[],...e.link?[Gv(13)]:[]]}]}}function jx(e){return Ns(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 Wx=new Map,qv={...G("headingMedium",44,32),case:"upper",weight:500,lineHeight:1,letterSpacing:-.02};function Xt(e){let o=Wx.get(e);if(o)return o;let t=Yce(e),r=Ns(e),a=r==="editorial"?$4(t):r==="simple"?H4(t,qv):r==="essay"?H4(t,{...G("headingMedium",38,28,"headingSmall"),case:"upper",lineHeight:1,letterSpacing:-.02}):r==="shelf"?Qce(t):Zce(e,t);return Wx.set(e,a),a}var Ds={Series:"transparent",StatsParagraph:"transparent",TimelineTrack:Jo,Stats:void 0};var hf=(e,o,t,r)=>({sectionBorder:{top:e,right:o,bottom:t,left:r}}),o5=e=>o=>O4(q(o.columns)??q(e.columns)),tde="inline is the head the row draws; an own-box node is skipped (`skip`)",rde={kind:"text",key:"title",role:"heading",props:j,style:{textStyle:"heading-3",...qv}},z4={top:120,bottom:120,topPhone:80,bottomPhone:80,topTablet:80,bottomTablet:80},Vx=e=>{let o=Kr(typeof e.background=="string"?e.background:void 0,Ds.Series);return o&&o!=="transparent"?o:void 0},Kx=e=>Vx(e)===Jo,ade={...N,justify:"between",gap:16,gapPhone:16,sectionHeightMode:"fixed",sectionHeightValue:340,sectionHeightUnit:"px",sectionPaddingTop:36,sectionPaddingRight:28,sectionPaddingBottom:32,sectionPaddingLeft:28,sectionPaddingTopPhone:36,sectionPaddingRightPhone:28,sectionPaddingBottomPhone:32,sectionPaddingLeftPhone:28},G4={...N,direction:"row",justify:"between",gap:12,share:"content",phoneRow:2,[Jv("share")]:"content"},nde=e=>{let o=Vx(e)?1:2;return{...N,direction:"row",columns:4,columnsTablet:2,gap:o,gapPhone:o}},Xv={...cr(12),letterSpacing:.22,lineHeight:1.5},j4=e=>ao(e.viewLabel)&&!Qv(e.viewLabel).hidden,Zt=e=>Qv(e).text?.trim?.()??"",Yx=e=>Object.fromEntries(Object.entries(e).filter(([,o])=>be(o)!==void 0)),ek=e=>e.map(([o,t,r])=>({key:o,label:t,...r?{multiline:!0}:{}})),sde=ek([["num","Number"],["since","Corner note"],["title","Card title"],["body","Card body",!0],["count","Count"],["countLabel","Count word"]]),ide=ek([["label","Label"],["value","Value"],["body","Card body",!0]]),xf=(e,o,t,r,a,{reads:n=["cards"],keep:s=[]}={})=>({kind:"group",name:e,props:o,parts:[{kind:"core",as:Oo,headless:!0,keep:s,derive:{reads:n,props:i=>jp(r(i),t)},slots:(i,l)=>({[ze]:[a(i,l)]})}]}),t5=e=>Array.isArray(e.cards)?e.cards:[],K4={top:76,bottom:76,topPhone:76,bottomPhone:76},r5=e=>(Array.isArray(e.items)?e.items:[]).map(o=>Yx({title:Zt(o?.label),href:typeof o?.href=="string"?o.href.trim():""})).filter(o=>o.title!==void 0).map((o,t)=>({key:vc(vy(o),t),...o})),lde=e=>r5(e).some(o=>be(o.href)!==void 0),a5=[{key:Iy.label,label:"Feature label"},{key:Iy.href,label:"Link",kind:"link"}],V4=e=>RM(e.eyebrowLook,"KeyFeatures")==="filled",cde={name:"Key Features",boxProps:(e,o)=>({...Q,direction:"column",gap:44,gapPhone:32,...It("surface")(e,o),...hf(1,0,1,0),...ie(e,K4)}),box:[...te,...xe(K4)],parts:[{kind:"group",name:"Heading",props:{...N,direction:"row",align:"end",gap:20,wrap:!0,share:"content",phoneRow:2,[Jv("share")]:"content"},parts:[{...Al("eyebrow"),when:V4},{...ge("eyebrow"),when:e=>!V4(e)},rde]},xf("Cards",e=>({...N,...Bs(o5(R4.defaultProps)(e))}),a5,r5,e=>Wv(lde(e)),{reads:["items"]})],drop:{...ee,...se,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"}},Y4={top:72,bottom:72,topPhone:72,bottomPhone:72},q4=(e,o)=>({...Bx,...It("background")(e,o)}),X4=e=>{let o=o5(A4.defaultProps)(e);return{...N,...Bs(o)}},dde=ek([["title","Card title"],["body","Card body",!0]]),n5=e=>(Array.isArray(e.items)?e.items:[]).map((o,t)=>({key:typeof o?.key=="string"&&o.key?o.key:vc(vy(o),t),title:Zt(o?.title),body:Zt(o?.body)})),s5=e=>{let o={},t={};for(let[r,a]of Object.entries(e.props??{}))r!=="id"&&(ede(a)?t[r]=a.map(s5):o[r]=a);return{type:String(e.type),props:o,...Object.keys(t).length?{slots:t}:{}}},Z4=(e,o)=>{let t=Zv(e)?Wv(fde(e)):Bl(),r=Array.isArray(e.template)?e.template.map(s5):[t],[a]=r;return r.length===1&&a.type===Y?{...a,props:{...q4(e,o),...a.props}}:{type:Y,props:{...N,...q4(e,o),name:"Card"},slots:{[De]:r}}},Zv=e=>e.cardStyle==="label-only",i5=e=>n5(e).map((o,t)=>{let r=e.items[t]?.href;return Yx({key:o.key,title:o.title,href:typeof r=="string"?r.trim():""})}),fde=e=>i5(e).some(o=>be(o.href)!==void 0),J4=e=>Array.isArray(e.template)&&e.template.length===0,Q4=["dataSource","dataSourceOptions","highlightedCard","highlightBadge"];function l5(){let e=t=>({key:ode("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 pde={name:"Cards",ownBoxConverts:!0,boxProps:(e,o)=>({...Q,direction:"column",gap:36,gapPhone:28,...It("surface")(e,o),...ie(e,Y4)}),box:[...te,...xe(Y4)],parts:[{...Xt("Cards"),when:e=>!Fv(e)},{...xf("Cards",X4,dde,n5,Z4,{reads:["items"],keep:Q4}),when:e=>!J4(e)&&!Zv(e)},{...xf("Cards",X4,a5,i5,Z4,{reads:["items"],keep:Q4}),when:e=>!J4(e)&&Zv(e)}],drop:{...ee,...se,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)"}},ude={name:"Recurring Columns",boxProps:(e,o)=>({...Q,direction:"column",gap:60,gapPhone:60,...hf(0,0,1,0),...yt,...Kx(e)?Fs(e,o):{},...Lx(Vx(e),e,o),...ie(e,z4)}),box:[...te.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,t)=>Kx(o)?pn(e,o,t):e],...xe(z4)],skip:e=>Fx(Vx(e)),site:(e,o)=>Kx(e.props)?un(e,o):[],parts:[Xt("Series"),xf("Cards",nde,sde,e=>t5(e).map(o=>Yx({num:Zt(o.num),since:Zt(o.since),title:Zt(o.title),body:Zt(o.desc),count:Zt(o.entries),countLabel:Zt(o.entriesLabel)})),(e,o)=>({type:Y,props:{...ade,...It("background",(t,r)=>Kx(t)&&Rx(t,r))(e,o),name:"Card"},slots:{[De]:[{type:Y,props:{...N,name:"Words",gap:16,gapPhone:16},slots:{[De]:[{type:Y,props:{...G4,name:"Top"},slots:{[De]:[Je("num",j,G("label",13),!0),Je("since",j,G("label",13),!0)]}},Je("title",{...j,tag:"h3"},{textStyle:"heading-3",...G("headingSmall",28),weight:500,case:"upper",lineHeight:1.04,letterSpacing:-.02}),Je("body",ne,{textStyle:"body-5",fontRole:"heading",...G("body",14),lineHeight:1.6})]}},{type:Y,props:{...G4,name:"Footer",align:"center",gap:0,gapPhone:0,sectionPaddingTop:16,sectionPaddingTopPhone:16,...hf(1,0,0,0),...j4(e)?{}:{[ni]:["count","countLabel"]}},slots:{[De]:[{type:Y,props:{...N,name:"Count",direction:"row",align:"center",gap:12,gapPhone:12,share:"content",phoneRow:2,[Jv("share")]:"content"},slots:{[De]:[Je("count",j,Xv),Je("countLabel",ne,Xv)]}},...j4(e)?[{type:Y,props:{...N,name:"View",maxWidthPhone:266},slots:{[De]:[{type:"Text",props:{...j,text:Qv(e.viewLabel).text,_partStyles:{text:{...ia()._partStyles.text,...Xv}}}}]}}]:[]]}}]}}))],reads:{viewLabel:"a Text typed once in the card template: the far end of every card's footer",background:"the Box's theme (the band preset) or its Fill"},drop:{...ee,...se,headPlacement:tde}},e5={top:60,bottom:60,topPhone:40,bottomPhone:40},mde={...N,direction:"row",columns:3,gap:40,gapPhone:16},hde={...N,gap:8,gapPhone:8,...Xo(24),...hf(1,1,1,1)},xde={name:"Document Detail Cards",boxProps:e=>({...Q,direction:"column",gap:40,gapPhone:16,...hf(0,0,1,0),...ie(e,e5)}),box:[...te,...xe(e5)],parts:[xf("Cards",mde,ide,e=>t5(e).map(o=>Yx({label:Zt(o.label),value:Zt(o.value),body:Zt(o.desc)})),(e,o)=>({type:Y,props:{...hde,...It("surface")(e,o),name:"Card"},slots:{[De]:[Je("label",j,{...G("label",12),lineHeight:1.5},!0),{type:Y,props:{...N,name:"Words",gap:14,gapPhone:14},slots:{[De]:[Je("value",j,{textStyle:"heading-3",...G("headingSmall",20),weight:500,letterSpacing:-.015,lineHeight:1.5}),Je("body",ne,{textStyle:"body-5",fontRole:"accent",...G("body",14),italic:!0,lineHeight:1.5})]}}]}}))],drop:{...ee,...se}},c5={Cards:pde,KeyFeatures:cde,Series:ude,DocMetaCards:xde};import{phoneKey as bde}from"efficient-easel/draw";import{newId as Sde}from"efficient-easel/data";import{phoneKey as gde}from"efficient-easel/draw";import{isNode as gf}from"efficient-easel/data";var Ml="cardStyle";function d5(e){let{widthPhone:o,...t}=e;return e.widthFitPhone==="fixed"?{...t,widthFitPhone:"fill"}:{...e}}var qx={table:{items:{gap:0,gapPhone:0,columnsTablet:2},grid:{gap:0},row:{gap:0,[gde("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}}}},Jt={table:{...qx.table,listCard:d5(qx.table.card)},list:{...qx.list,listCard:d5(qx.list.card)}},vKe=[{label:"Table",value:"table"},{label:"List",value:"list"}],kKe=e=>e==="table"||e==="list",Ide=e=>[...new Set([...Object.keys(Jt.table[e]),...Object.keys(Jt.list[e])])];function If(e,o,t){let r={...e};for(let a of Ide(o))delete r[a];return{...r,...structuredClone(Jt[t][o])}}function yde(e,o,t){let r=e.props??{},a=Array.isArray(r[ze])?r[ze]:[],n=a.findIndex(l=>gf(l)&&l.type===t);if(n<0)return e;let s=a[n],i=a.map((l,d)=>d===n?{...s,props:If(s.props??{},"listCard",o)}:l);return{...e,props:{...r,[ze]:i}}}function TKe(e,o,t,r){let a=Array.isArray(e[r])?e[r]:[];if(a.some(s=>gf(s)&&s.type===Oo)){let s=a.map(i=>gf(i)&&i.type===Oo?yde(i,o,t):i);return{...If(e,"items",o),[Ml]:o,[r]:s}}let n=a.map(s=>{if(!gf(s)||s.type!==t)return s;let i=s.props??{},l=(Array.isArray(i[r])?i[r]:[]).map(d=>gf(d)&&d.type===t?{...d,props:If(d.props??{},"card",o)}:d);return{...s,props:{...If(i,"row",o),[r]:l}}});return{...If(e,"grid",o),[Ml]:o,[r]:n}}var ok=e=>typeof e=="string"?e.trim():"";function f5(e){let o=`${ok(e.prefix)}${ok(e.value)}`,t=ok(e.suffix);return e.emphasizeAll===!0?o?`==_${o}_==`:"":`${o}${t?`==_${t}_==`:""}`}var m5={textStyle:"heading-2",...bt("headingMedium",56,7,96),weight:500,case:"none",lineHeight:.9,letterSpacing:-.04},tk={kind:"block",type:"Text",props:{...Rs,_partStyles:{text:m5}},box:[["value","text",(e,o)=>f5(o)]],when:(e,o)=>o!==void 0&&typeof o.value=="string"&&f5(o)!==""},p5=e=>ao(e?.supSuffix),h5={textStyle:"body-1",fontRole:"heading",...G("body",16),lineHeight:1.5,letterSpacing:-.01},x5={color:"labels",...G("label",12),lineHeight:1.5,letterSpacing:.24},g5={...N,direction:"row",align:"start",gap:32,gapPhone:32,share:"content",phoneRow:2,[bde("share")]:"content"},I5={textStyle:"body-5",...G("label",13),weight:500,color:"accent",letterSpacing:.18,lineHeight:1,padding:12},rk=e=>Kr(e.background,Ds.StatsParagraph),yf=e=>rk(e)===Jo,Xx=e=>({...e,sectionAccent:e.sectionAccent??0}),wde=(e,o)=>yf(e)?It("background",(t,r)=>Rx(Xx(t),r))(e,o):{},Cde={name:"Stats with Text",skip:e=>rk(e)&&rk(e)!=="transparent"&&!yf(e)?"it paints a colour of its own, not the section band":void 0,boxProps:(e,o)=>({...Q,direction:"column",gap:60,gapPhone:60,sectionBorder:{bottom:1},...yt,...qt(e,"StatsParagraph"),...yf(e)?Fs(Xx(e),o):{}}),box:[...te.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,t)=>yf(o)?pn(e,Xx(o),t):e],...dn("StatsParagraph")],site:(e,o)=>yf(e.props)?un({props:Xx(e.props)},o):[],parts:[Xt("StatsParagraph"),{kind:"group",name:"Stats",props:{...N,...Jt.table.grid,[Ml]:"table"},parts:[{kind:"list",key:"stats",name:"Stat",perRow:()=>4,rowName:"Stats row",rowProps:{...N,direction:"row",share:"equal",phoneRow:2,...Jt.table.row},props:(e,o)=>({...N,...Jt.table.card,...wde(e,o)}),parts:[{...tk,when:(e,o)=>!p5(o)&&tk.when(e,o)},{kind:"group",name:"Figure",props:g5,when:(e,o)=>p5(o),parts:[tk,{kind:"text",key:"supSuffix",props:j,style:I5}]},{kind:"group",name:"Words",props:{...N,gap:4,gapPhone:4},parts:[{kind:"text",key:"label",props:j,style:h5},ge("sub",x5)]}]}]}],drop:{...ee,...se,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"}},vde=new Set(["value","label",wt]),u5={top:48,bottom:48,topPhone:48,bottomPhone:48},kde=e=>{let o=Kr(typeof e.background=="string"?e.background:void 0,Ds.Stats);return!!o&&o!=="transparent"},Tde={name:"Stats",skip:e=>kde(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?.[wt]))?"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=>!vde.has(t)))?"a figure has a key no part here reads":Object.keys(e._partStyles??{}).some(o=>o!=="heading")?"a figure or a name has a style of its own, kept by kind, which no part here reads":void 0,boxProps:e=>({...Q,direction:"column",gap:24,gapPhone:24,...ie(e,u5)}),box:[...te,...xe(u5)],parts:[ge("heading",{color:"labels",...G("label",12),letterSpacing:.2}),{kind:"group",name:"Stats",props:{...N,...Jt.list.grid,[Ml]:"list"},parts:[{kind:"list",key:"items",name:"Stat",perRow:e=>q(e.columns)??4,rowName:"Stats row",rowProps:{...N,direction:"row",share:"equal",phoneRow:2,...Jt.list.row},props:{...N,...Jt.list.card},parts:[{kind:"text",key:"value",props:Rs,style:{textStyle:"heading-2",...G("headingMedium",48,36),weight:500,case:"none",lineHeight:1,letterSpacing:-.03}},ge("label",{color:"labels",...G("label",12),letterSpacing:.2})]}]}],drop:{...ee,...se,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"}},y5={StatsParagraph:Cde,Stats:Tde};function b5(){return{eyebrow:c("By the numbers"),title:c("What we count."),desc:c("A few numbers that matter to us."),stats:[],background:"transparent"}}var Pde=[{key:"figure",label:"Figure"},{key:"superscript",label:"Superscript"},{key:"label",label:"Label"},{key:"body",label:"Text",multiline:!0}];function S5(){let e=(o,t,r,a="")=>({key:Sde("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 Ede(e){return{type:Y,props:{...N,name:"Card",...structuredClone(Jt[e].listCard)},slots:{[De]:[{type:Y,props:{...g5,name:"Figure"},slots:{[De]:[Je("figure",Rs,m5),Je("superscript",j,I5)]}},{type:Y,props:{...N,name:"Words",gap:4,gapPhone:4},slots:{[De]:[Je("label",{...j,widthFit:"fill"},h5),Je("body",{...j,widthFit:"fill"},x5,!0)]}}]}}}function ak(e,o,t=4){return{type:Y,props:{...N,name:"Stats",direction:"row",columns:t,...structuredClone(Jt[o].items),[Ml]:o},slots:{[De]:[{type:Oo,props:jp(e,Pde),slots:{[ze]:[Ede(o)]}}]}}}var w5={heading:"Ways to pay"},C5=()=>[{label:"Visa"},{label:"Mastercard"},{label:"Amex"},{label:"PayPal"}],v5=()=>[{text:c("Secure encrypted checkout")},{text:c("30-day returns")}],GKe={label:"Payment Methods",drawsPictures:!0,defaultProps:{heading:"",badges:[],assurances:[],contained:!0}};import{hiddenKeyOf as _de}from"efficient-easel/screen/lib/content/view-hide";var Zx="Flex",Ode={FooterMenu:"MenuBlock",FooterEmailSignup:"EmailFormBlock",FooterSocial:"SocialLogosBlock"},Ade={FooterPayment:"PaymentLogosBlock"},Rde=e=>{let{id:o,...t}=e;return t},k5=e=>typeof e=="string"?e:"",Hl={sm:12,md:13,lg:15},T5={sm:{mark:16,words:Hl.sm},md:{mark:20,words:Hl.md}},Lde="md",P5=1.5,Fde={size:13,lineHeight:P5,width:280},Bde=14,Nde=40,Dde=e=>e==="center"||e==="right"?e:"left";function Mde(e){let o={},t=[["padTop","sectionPaddingTop"],["padRight","sectionPaddingRight"],["padBottom","sectionPaddingBottom"],["padLeft","sectionPaddingLeft"]];for(let[r,a]of t){let n=q(e[r]);n&&(o[a]=n)}return o}function Hde(e,o,t){let r=t(e,Rde(o));if(Array.isArray(o.template))return{...r,props:{...r.props,template:E5(o.template,String(r.props.id))}};if(o.template!==void 0)return r;let a=Mp(e,r.props);return a===r.props?r:{...r,props:a}}function E5(e,o,t={at:0}){return e.map(r=>{let a={...r.props,id:`${o}~t${t.at++}`};for(let n of Lr(r))a[n]=E5(a[n],o,t);return{...r,props:a}})}function _5(e,o,t){let r=e.props??{},a=t?.(e,o);if(a)return a;let n=U(Ode,e.type)??U(Ade,e.type);if(n)return[Hde(n,r,o)];switch(e.type){case"FooterLogo":{let s=Dde(r.align),i=o("LogoBlock",{...r.reverse?{reverse:r.reverse}:{},...typeof r.customColor=="string"&&r.customColor?{customColor:r.customColor}:{},heightPx:Math.round(TO*((q(r.widthPct)??100)/100)),href:"/",align:s,...Mde(r)}),l=k5(r.tagline).trim();return l?[i,o("Text",{text:l,tone:"dim",align:s,_partStyles:{text:{...Fde}}})]:[i]}case"FooterText":{let s=typeof r.size=="string"&&He(Hl,r.size)?r.size:Lde;return[o("Text",{text:k5(r.text),tone:typeof r.tone=="string"?r.tone:"default",_partStyles:{text:{size:Hl[s],lineHeight:P5}}})]}case"FooterDivider":{let s=q(r.thickness),i=q(r.lengthPct);return[o("Divider",{...s!==void 0?{thickness:s}:{},...i!==void 0?{lengthPct:i}:{},...r.hideOnMobile===!0?{[_de("mobile")]:!0}:{}})]}case"FooterGroup":{let s=Array.isArray(r.blocks)?r.blocks:[];return[o(Zx,{direction:r.direction==="horizontal"?"row":"column",gap:es("FooterGroup",r.gap),align:r.align==="center"||r.align==="end"||r.align==="stretch"?r.align:"start",...ly,content:s.flatMap(i=>_5(i,o,t))})]}default:return[]}}function bf(e,o,t,r){let a=e&&Array.isArray(e.props?.blocks)?e.props.blocks:[],n=f=>o(Zx,{direction:"row",wrap:!0,share:"equal",gap:Nde,content:f}),s=[],i=[];for(let f of a){let u=_5(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(Zx,{direction:"column",gap:Bde,align:"stretch",...ly,content:u}))}(i.length||!s.length)&&s.push(n(i));let l=o(Zx,{direction:"column",content:[o("LegalLineBlock")]}),d=i1(Ge,t,[...s,l]);return{...d,props:{...d.props,...e?.props?.width==="full"?{fullWidth:!0}:{}}}}import{phoneKey as sk,readHidable as Wde}from"efficient-easel/draw";var ik={contained:!1},lk=(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])}]}]}),nk=e=>{let o=q(e.bandPadding)??40;return{top:o,bottom:o,topPhone:o,bottomPhone:o}},$de={...ge("heading",{color:"labels",letterSpacing:.2}),props:{...j,align:"center"}},Ude={name:"Logos",boxProps:e=>({...Q,direction:"column",gap:32,...ie(e,nk(e))}),box:[...te,...xe(nk),["bandPadding","sectionPaddingTop",(e,o)=>ie(o,nk(o)).sectionPaddingTop]],parts:[$de,{kind:"core",keep:["columns","logoHeight","grayscale"],rename:{logosPerRow:"columns"},props:ik,slots:lk("items","alt")}],drop:{...ee,...se,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"}},zde={kind:"group",name:"Mark",keepEmpty:!0,parts:[],props:WE(4,"main",{sectionCorners:2})},O5={top:24,bottom:24,topPhone:24,bottomPhone:24},Gde={name:"Payment Methods",boxProps:e=>({...Q,direction:"column",...ie(e,O5)}),box:[...te,...xe(O5)],parts:[{kind:"group",name:"Methods",props:{...N,align:"center",gap:20,gapPhone:20,sectionBorder:{top:1,bottom:1},sectionPaddingTop:32,sectionPaddingBottom:32},parts:[{...ge("heading",{color:"labels"}),props:{...j,align:"center"}},{kind:"core",keep:[],as:"Logos",derive:{reads:[_o,ta],props:e=>ao(e[_o])?{[_o]:e[_o],...e[ta]!==void 0?{[ta]:e[ta]}:{}}:{}},props:{...ik,look:"cards",grayscale:!1},slots:e=>({...lk("badges","label"),...ao(e[_o])?{[ze]:[by()]}:{}})},{kind:"group",name:"Reassurance",props:{...N,direction:"row",wrap:!0,justify:"center",gap:24,gapPhone:24,phoneRow:2,[sk("share")]:"content"},parts:[{kind:"list",key:"assurances",name:"Line",of:e=>(Array.isArray(e.assurances)?e.assurances:[]).filter(o=>ao(o?.text)),props:{...N,direction:"row",align:"center",gap:8,gapPhone:8,phoneRow:2,[sk("share")]:"content"},item:e=>Wde(e.text).hidden?{props:{_hidden:!0}}:{},parts:[zde,{kind:"text",key:"text",props:{...j,align:"center"},style:{...G("label",13),color:"labels",lineHeight:1.5}}]}]}]}],drop:{...ee,...se,contained:"the Box draws the site frame now; the Logos block inside it fills the Box's column (`contained: false`)"}},A5=e=>PE(e.align)??"left",R5=e=>e.size==="md"?"md":"sm",L5=12,F5={name:"Payment logos",boxProps:e=>({...N,direction:"row",wrap:!0,align:"center",justify:_p[A5(e)],gap:L5,gapPhone:L5,phoneRow:2,[sk("share")]:"content"}),box:[...za],parts:[{kind:"text",key:"lead",props:ne,styleFrom:e=>({size:Hl[R5(e)],lineHeight:1.5})},{kind:"core",keep:[],as:"Logos",derive:{reads:[_o,ta],props:e=>({logoHeight:T5[R5(e)].mark,align:A5(e),...ao(e[_o])?{[_o]:e[_o],...e[ta]!==void 0?{[ta]:e[ta]}:{}}:{}})},props:{...ik,look:"marks",grayscale:!1,sectionAccent:Mr},slots:e=>({...lk("methods","label"),...ao(e[_o])?{[ze]:[by()]}:{}})}],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"}},B5={Logos:Ude,PaymentBadges:Gde,FooterPayment:F5,PaymentLogosBlock:F5},N5=()=>({heading:H2.heading,items:dx()}),D5=()=>({heading:w5.heading,badges:C5(),assurances:v5()}),M5=()=>({...mm,methods:[]});import{mixHex as qde}from"efficient-shell/format";import{MOTION_EASING as jde,MOTION_TIMING as H5,motionSeconds as W5}from"efficient-shell/format";var ck="none",Jx=[{label:"None",value:"none"},{label:"Marquee",value:"scroll"}];function b8e(e){return Io(Jx,ck,e)}var Wl="_gLoop",Sf={field:"loop",is:"scroll"},wf="left",dk=[{label:"Left",value:"left",cell:"left"},{label:"Right",value:"right",cell:"right"},{label:"Up",value:"up",cell:"top"},{label:"Down",value:"down",cell:"bottom"}],Kde={left:"storefront-ticker",right:"storefront-ticker-right",up:"storefront-ticker-up",down:"storefront-ticker-down"};function $5(e){return Io(dk,wf,e)}function U5(e){return e==="up"||e==="down"}function Qx(e){return W5("loop","duration",e.loopDuration!=null?e.loopDuration:e.speed)}var S8e=H5.loop.duration.default,Vde=H5.loop.delay.default;function z5(e){return W5("loop","delay",e.loopDelay)}function w8e(e,o,t=Vde){return`${Kde[e]} ${o}s ${jde.loop}${t?` ${t}s`:""} infinite`}var eg="_gEntrance";var T8e="none",P8e=[{label:"Nothing",value:"none"},{label:"Section above",value:"above"},{label:"Section below",value:"below"}];function og(e){return e==="above"||e==="below"?e:null}var G5="sf-ticker-join";function Yde(e){return e==="above"?"sf-ticker-join-above":"sf-ticker-join-below"}function j5(e){return`absolute inset-x-0 ${Yde(e)}`}var Ms={direction:"row",share:"content",align:"center"},Cf={top:14,bottom:14,topPhone:12,bottomPhone:12},tg={wrap:"nowrap",loop:"scroll",sectionAccent:q_,gap:60,gapPhone:32,separator:"dot",sectionBorder:{top:1,bottom:1}},K5={gap:120,gapPhone:64},rg={...ct,sizeToken:{step:"label",px:14,pxPhone:12},letterSpacing:.25,lineHeight:1.5},V5={textStyle:"heading-3",letterSpacing:.005,case:"upper",lineHeight:1},vf={top:16,bottom:16,topPhone:12,bottomPhone:12},kf={justify:"between",wrap:"wrap",gap:32,separator:"none"},Tf={...ct,letterSpacing:.1,lineHeight:1.5};var Y5=e=>e.size==="display",Xde=(e,o)=>{let t=Ax(e,o),r=e.tone!=="plain"&&t?.text&&t.background?qde(t.text,t.background,.3):null;return r?{color:r}:{}},Zde=(e,o)=>e.tone!=="plain"&&Hr(e.sectionAccent)===null?It("background")(e,o):{},q5=(e,o)=>({kind:"list",key:"items",name:"Item",flat:!0,when:o,parts:[{kind:"text",key:"text",props:ne,style:e,styleFrom:Xde}]}),Jde={name:"Scrolling Bar",boxProps:(e,o)=>({...Q,...Ms,...tg,...OE[iy(e.separator)]===""?K5:{},...ie(e,Cf),...Zde(e,o)}),box:[["scrollDirection","scrollDirection",e=>$5(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=>iy(e)],["join","join",e=>og(e)??void 0],["borders","sectionBorder",e=>e===!1?void 0:{top:1,bottom:1}],...te,["tone","sectionAccent",(e,o)=>Hr(o.sectionAccent)??Mr],...xe(Cf)],parts:[q5(rg,e=>!Y5(e)),q5(V5,Y5)],drop:{...ee,...se,size:"each item's Text style: Small \u2192 Body 5, Display \u2192 Heading 3"}},X5=e=>e?.tone==="muted",Z5=e=>Yp(Es(e)),Qde={name:"Spec Strip",boxProps:(e,o)=>({...Q,...Ms,...kf,...e.fill==="none"?{sectionBorder:{top:1}}:{sectionAccent:Z5(o)},...ie(e,vf)}),box:[...te.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,t)=>o.fill==="none"?e:Z5(t)],...xe(vf)],parts:[{kind:"list",key:"cells",name:"Cell",flat:!0,parts:[{kind:"text",key:"text",props:j,style:Tf,when:(e,o)=>!X5(o)},{kind:"text",key:"text",props:ne,style:Tf,when:(e,o)=>X5(o)}]}],drop:{...ee,...se,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"}},J5={Ticker:Jde,SpecStrip:Qde};import{tabletKey as Q5}from"efficient-easel/screen/lib/content/view-tiers";var e3={direction:"column",justify:"between",gap:14,gapPhone:14,sectionPaddingLeft:14,sectionPaddingRight:14,[Q5("sectionPaddingLeft")]:0,sectionPaddingLeftPhone:0,sectionHeightMode:"fixed",sectionHeightValue:280,sectionHeightUnit:"px",[Q5("sectionHeightMode")]:"auto",sectionHeightModePhone:"auto"},fk={name:"Year and title",direction:"column",gap:14,gapPhone:14};import{tabletKey as efe}from"efficient-easel/draw";var fo={text:"Button label",href:"#"},vr=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 ag={eyebrow:qe.eyebrow,title:`Section heading
|
|
324
|
-
*Highlight line*`,intro:qe.body,imageCaption:qe.imageCaption,imageMeta:qe.imageMeta,cta:fo.text},o3=()=>[{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.")}],V8e={label:"Story Timeline",drawsPictures:!0,defaultProps:{layout:"split",eyebrow:"",title:"",intro:"",imageSrc:"",imageCaption:"",imageMeta:"",ctaText:"",ctaHref:"",entries:[],padTop:120,padBottom:120}};var ng={eyebrow:qe.eyebrow,title:qe.headingAccent,intro:qe.body,cta:fo.text},t3=()=>[{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}],J8e={label:"Milestone Timeline",defaultProps:{eyebrow:"",title:"",intro:"",entries:[],ctaText:"",ctaHref:"",background:id,padTop:120,padBottom:120}};var l3={buttonBorder:{width:0}},lg=(e,o,t={})=>({textStyle:"body-5",...G("label",e),letterSpacing:o,lineHeight:1.5,weight:400,...t}),$l=(e,o,t={})=>({...lg(e,o),...ct,...t}),cg=(e,o,t)=>({...e,case:"upper",weight:500,letterSpacing:o,lineHeight:t}),Pf=(e,o,t={})=>({textStyle:"body-1",fontRole:"heading",...e,weight:400,case:"none",lineHeight:o,...t}),Qt=(e,o,t={})=>({kind:"text",key:e,props:j,style:o,...t}),r3=(e,o)=>o?.future===!0,sg=e=>n2(typeof e?.body=="string"?e.body:""),xk=e=>Kr(typeof e.background=="string"?e.background:void 0,Ds.TimelineTrack),pk=e=>xk(e)===Jo?e:{...e,background:"transparent"},ofe={name:"Milestone Timeline",skip:e=>Fx(xk(e)),boxProps:(e,o)=>{let t=fn(pk(e),o);return{...Q,direction:"column",gap:60,[efe("gap")]:36,gapPhone:36,sectionBorder:{bottom:1},...yt,...qt(e,"TimelineTrack"),...Lx(xk(e),e,o),...t>=0?{sectionAccent:t}:{}}},box:[...te.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,t)=>pn(e,pk(o),t)],...dn("TimelineTrack")],parts:[Yv(Gx($x("eyebrow","title","intro"),["intro"])),{kind:"group",name:"Track",props:{...N,gap:48,gapPhone:48},parts:[{kind:"group",name:"Years",props:{...N,direction:"row",share:"equal",gap:0,line:!0,...yt},parts:[{kind:"list",key:"entries",name:"Year",props:{...N,...e3},item:e=>({props:e.future===!0?{upcoming:!0}:{}}),parts:[{kind:"group",name:fk.name,props:{...N,...fk},parts:[Qt("date",lg(13,.22,{color:"accent"}),{when:(e,o)=>!r3(e,o)}),Qt("date",lg(13,.22,{color:"labels"}),{when:r3}),Qt("title",{textStyle:"heading-3",...cg(G("headingSmall",20),-.02,1.1)},{role:"heading"})]},Qt("blurb",Pf(G("body",13),1.55),{props:ne,mark:"accentItalic"})]}]},{kind:"group",name:"Button row",props:{...N,sectionBorder:{top:1,right:0,bottom:0,left:0},sectionPaddingTop:32},parts:[{kind:"button",key:"ctaText",href:"ctaHref",variant:"ghost",props:{...Ro,align:"right",...l3},style:$l(13,.3)}]}]}],site:(e,o)=>un({props:pk(e.props)},o),drop:{...ee,...se,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"}},Ik=e=>typeof e.layout=="string"?e.layout:"split",ig=e=>Ik(e)==="split",gk=e=>!ig(e),c3=e=>Ik(e)==="spine",tfe=e=>gk(e)&&!c3(e),a3=(e,o,t,r)=>({kind:"group",name:"Picture",keepEmpty:!0,box:[["imageSrc","bgImage"]],props:{...N,sectionBorder:{top:1,right:1,bottom:1,left:1},darken:75,darkenStyle:"bottom",placement:"bottom-center",sectionHeightMode:"fixed",sectionHeightValue:e,sectionHeightUnit:"px",sectionHeightModePhone:"fixed",sectionHeightValuePhone:o,sectionHeightUnitPhone:"px",...Xo(12,16),...t},when:a=>r(a)&&typeof a.imageSrc=="string"&&a.imageSrc.trim()!=="",parts:[{kind:"group",name:"Caption",props:{...N,direction:"row",justify:"between",align:"center",gap:12,gapPhone:12,share:"content",phoneRow:2},parts:[Qt("imageCaption",$l(11,.24,{color:"text"})),Qt("imageMeta",$l(11,.24,{color:"accent"}),{props:{...j,align:"right"}})]}]}),n3=(e={})=>({kind:"button",key:"ctaText",href:"ctaHref",variant:"ghost",props:{...Ro,...e,...l3},style:$l(13,.3)}),uk=()=>[Qt("title",{textStyle:"heading-3",...cg(G("headingSmall",24,20),-.02,1.5)},{role:"heading",mark:"accentItalic"}),{kind:"block",type:"Text",props:{...j,_partStyles:{text:Pf(G("body",17,16),1.6)}},box:[["body","text",(e,o)=>gc(sg(o)[0]??"")]],when:(e,o)=>sg(o).length>0},{kind:"block",type:"Text",props:{...ne,_partStyles:{text:Pf(G("body",17,16),1.6,{paragraphSpacing:14})}},box:[["body","text",(e,o)=>gc(sg(o).slice(1).join(`
|
|
325
|
-
|
|
326
|
-
`))]],when:(e,o)=>sg(o).length>1}],mk=()=>Qt("date",lg(13,.24,{color:"accent"})),hk=(e,o,t={})=>Qt(e,o,{...t,props:{...j,...t.props??{},align:"center"}}),s3=bt("headingMedium",40,5,76),i3={sectionBorder:{bottom:1}},rfe={name:"Story Timeline",skip:e=>Ik(e)==="track"?'display "track": not converted (it draws the Milestone rail; a Track story is not stored anywhere)':void 0,boxProps:e=>ig(e)?{...Q,direction:"row",share:[40],gap:80,gapPhone:48,align:"start",...i3,...qt(e,"Timeline")}:{...Q,direction:"column",gap:48,gapPhone:48,align:"center",...i3,...qt(e,"Timeline")},box:[...te,...dn("Timeline")],parts:[{kind:"group",name:"Heading",props:{...N,gap:24,gapPhone:24},when:ig,parts:[Qt("eyebrow",$l(12,.3,{color:"accent"}),{role:"eyebrow"}),Qt("title",{textStyle:"heading-2",...cg(s3,-.03,.94)},{role:"heading",mark:"accentItalic"}),Qt("intro",Pf(G("body",14),1.6),{props:{...ne,maxWidth:360},mark:"accentItalic"}),a3(667,419,{},()=>!0),n3()]},{kind:"group",name:"Chapters",props:{...N,gap:48,gapPhone:48,line:!1},when:ig,parts:[{kind:"list",key:"entries",name:"Chapter",props:{...N,direction:"row",gap:24,gapPhone:8,share:[12],align:"start"},parts:[mk(),{kind:"group",name:"Words",props:{...N,gap:14,gapPhone:14},parts:uk()}]}]},{kind:"group",name:"Heading",props:{...N,gap:24,gapPhone:24,align:"center",maxWidth:760,widthFit:"fill"},when:gk,parts:[hk("eyebrow",$l(12,.3,{color:"accent"}),{role:"eyebrow"}),hk("title",{textStyle:"heading-2",...cg(s3,-.03,.94)},{role:"heading",mark:"accentItalic"}),hk("intro",Pf(G("body",14),1.6),{props:{...ne,maxWidth:520},mark:"accentItalic"}),n3({align:"center"})]},a3(506,192,{maxWidth:900,widthFit:"fill"},gk),{kind:"group",name:"Chapters",props:{...N,gap:48,gapPhone:48,line:!0,maxWidth:760,widthFit:"fill",sectionPaddingTop:16},when:c3,parts:[{kind:"list",key:"entries",name:"Chapter",props:{...N,gap:8,gapPhone:8},parts:[mk(),{kind:"group",name:"Words",props:{...N,gap:14,gapPhone:14},parts:uk()}]}]},{kind:"group",name:"Chapters",props:{...N,gap:56,gapPhone:56,maxWidth:1e3,widthFit:"fill",sectionPaddingTop:16,mirrorCards:"even"},when:tfe,parts:[{kind:"list",key:"entries",name:"Chapter",props:{...N,direction:"row",gap:64,gapPhone:0,share:[50],align:"start"},parts:[{kind:"group",name:"Entry",props:{...N,gap:8,gapPhone:8},parts:[mk(),{kind:"group",name:"Words",props:{...N,gap:14,gapPhone:14},parts:uk()}]},{kind:"group",name:"Spacer",props:{...N},keepEmpty:!0,parts:[]}]}]}],drop:{...ee,...se,layout:"the Box's own arrangement replaces it: Split a row of two Boxes; Spine and Alternating a centred column (Track is skipped)"}},d3=()=>({eyebrow:ag.eyebrow,title:vr(ag.title),intro:ag.intro,ctaText:fo.text,ctaHref:fo.href,entries:o3()}),f3=()=>({eyebrow:ng.eyebrow,title:vr(ng.title),intro:ng.intro,ctaText:fo.text,ctaHref:fo.href,entries:t3()}),p3={TimelineTrack:ofe,Timeline:rfe};import{tabletKey as lfe}from"efficient-easel/draw";import{rootIsDark as afe}from"efficient-shell/format";function mVe(e="auto"){return e==="light"?!0:e==="dark"?!1:!afe({whenUnset:!0})}function u3(e,o){return Number.isFinite(e)&&Number.isFinite(o)&&!(e===0&&o===0)}function yk(e){let o=Number.parseFloat(e??"");return Number.isFinite(o)?o:0}var nfe=["tall","square","wide"],sfe="tall";function m3(e){return nfe.includes(String(e??""))?String(e):sfe}var gVe={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"},IVe=[{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:""}],ife=/^https?:\/\//i;function yVe(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:yk(e.lat),lng:yk(e.lng),mapsUrl:ife.test(o)?o:""}}function bk(e){let o=String(e??"").split(" \xB7 ");return{state:(o[0]??"").trim(),country:(o[1]??"").trim()}}var bVe="other",SVe={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 h3(e){let o=String(e??"").replace(/[^+\d]/g,"");return o?`tel:${o}`:void 0}var er=e=>typeof e=="string"?e:e==null?"":String(e),wk=e=>Array.isArray(e.locations)?e.locations.map(o=>o??{}):[],Ul=e=>er(e.group),v3=e=>`loc-${e}`,k3=e=>er(e.state).trim()||bk(er(e.region)).state,T3=e=>er(e.country).trim()||bk(er(e.region)).country,x3=e=>[k3(e),T3(e)].filter(Boolean).join(" \xB7 "),cfe=e=>wk(e).some(o=>er(o.photo).trim()!==""),dfe=e=>wk(e).some(o=>u3(Number(o.lat),Number(o.lng))),ffe=(e,o)=>wk(e).filter(t=>Ul(t)===Ul(o)).length,pfe=(e,o)=>ffe(e,o)===1?"wide":m3(e.imageShape),Sk={top:100,bottom:100,topPhone:60,bottomPhone:60},g3=48,kr=(e,o={})=>({...cr(e),...o}),Ck={top:1,right:1,bottom:1,left:1},vk={...N,direction:"row",share:"equal",gap:0},ufe=e=>o=>o>sf(o)?{...N,gap:0}:{...vk,...o>1?{phoneRow:e}:{}},kk=!0,mfe={kind:"group",name:"Gallery",props:{...N,gap:20,...kk?{_hidden:!0}:{}},when:cfe,parts:[{kind:"group",name:"Gallery head",props:{...N,direction:"row",justify:"between",align:"end",gap:24,share:"content",sectionBorder:{bottom:1},sectionPaddingBottom:16},parts:[ge("galleryKicker",kr(12,{color:"accent",letterSpacing:.3})),{kind:"text",key:"galleryHint",props:{...ne,align:"right",alignPhone:"left"},style:kr(11,{letterSpacing:.22,alignPhone:"left"})}]},{kind:"group",name:"Groups",props:{...N,gap:24},parts:[{kind:"list",key:"locations",name:"City picture",props:{...N,darken:85,darkenStyle:"bottom",placement:"bottom-left",sectionBorder:Ck,...Xo(12,12)},item:(e,o,t)=>({props:{...er(e.photo).trim()?{bgImage:er(e.photo),hover:"mono"}:{},link:`#${v3(o)}`,boxShape:pfe(t,e)}}),parts:[{kind:"text",key:"name",props:j,style:kr(11,{letterSpacing:.22,color:"text"})}],groups:{of:Ul,name:"Group",props:{...N,gap:10},head:e=>({label:Ul(e[0]??{})}),parts:[ge("label",kr(11,{color:"accent",letterSpacing:.3}))],itemsName:"Cities",itemsProps:ufe(2),perRow:sf,rowName:"Row",rowProps:{...vk,phoneRow:2}}}]}]},hfe={kind:"group",name:"Words",props:{...N,gap:12,gapPhone:12,...Xo(28,28),sectionHeightMode:"fixed",sectionHeightValue:280,sectionHeightUnit:"px",sectionHeightModePhone:"auto"},parts:[{kind:"group",name:"Name row",props:{...N,direction:"row",justify:"between",align:"start",gap:14,share:"content",phoneRow:2,sharePhone:"content",wrapPhone:"wrap",sectionPaddingBottom:6,sectionPaddingBottomPhone:6},parts:[{kind:"group",name:"Name",props:{...N,gap:6,gapPhone:6},parts:[{kind:"text",key:"name",role:"heading",props:j,style:{textStyle:"heading-3",...G("headingSmall",30),case:"upper",weight:500,lineHeight:1,letterSpacing:-.02}},{kind:"block",type:"Text",props:{...j,_partStyles:{text:kr(12,{color:"accent",letterSpacing:.24,lineHeight:1.5})}},box:["region","state","country"].map(e=>[e,"text",(o,t)=>x3(t)]),when:(e,o)=>x3(o??{})!==""}]},{kind:"group",name:"Time zone",props:{...N,sectionBorder:Ck,...Xo(6,10)},parts:[{kind:"text",key:"timezone",props:{...ne,textFit:"line"},style:kr(12,{letterSpacing:.22,lineHeight:1.5})}]}]},{kind:"text",key:"address",props:ne,style:{textStyle:"body-5",fontRole:"heading",...G("body",14),lineHeight:1.5}},{kind:"block",type:"ButtonBlock",props:{...Ro,...Ls,variant:"ghost",arrow:!1,_partStyles:{label:kr(13,{letterSpacing:.18,color:"text",lineHeight:24/13})}},box:[["phone","label"],["phone","href",e=>h3(er(e))??"#"]],when:(e,o)=>er(o?.phone).trim()!==""},{kind:"text",key:"hours",props:ne,style:kr(12,{letterSpacing:.18,lineHeight:1.7})}]},xfe={kind:"block",type:"LocationMap",props:e=>({mapTheme:typeof e.mapTheme=="string"?e.mapTheme:"auto"}),box:["name","lat","lng","mapsUrl","geocode",...["region","state"].map(e=>[e,"state",(o,t)=>k3(t)]),...["region","country"].map(e=>[e,"country",(o,t)=>T3(t)])]},gfe={kind:"group",name:"Map",props:{...N,sectionBorder:{top:1,right:0,bottom:0,left:0}},parts:[xfe]},Ife={kind:"list",key:"locations",name:"City",props:(e,o)=>({...N,gap:0,justify:"between",sectionBorder:Ck,jumpHighlight:!0,sectionAccent:fn(e,o)>=0?Rl(e.sectionAccent,o):-1}),item:(e,o)=>({props:{anchor:v3(o)}}),parts:[hfe,gfe],groups:{of:Ul,name:"Group",props:{...N,gap:20},head:e=>{let o=e[0]??{};return{key:Ul(o),groupName:er(o.groupName),count:`${e.length} location${e.length===1?"":"s"}`}},parts:[{kind:"group",name:"Group head",props:{...N,direction:"row",justify:"between",align:"end",gap:16,share:"content",sectionBorder:{bottom:1},sectionPaddingBottom:16},when:(e,o)=>er(o?.key).trim()!=="",parts:[ge("key",kr(13,{color:"accent",letterSpacing:.3})),{kind:"text",key:"groupName",role:"heading",props:j,style:{textStyle:"heading-3",...G("headingSmall",24),case:"upper",weight:500,letterSpacing:-.01}},{kind:"text",key:"count",props:ne,style:kr(12,{letterSpacing:.22})}]}],itemsName:"Cities",itemsProps:e=>({...vk,columns:sf(e),[lfe("columns")]:1})}},I3=kr(10,{letterSpacing:.25}),yfe={kind:"block",type:Zr,props:{...N,name:"Credit",direction:"row",justify:"end",align:"center",gap:6,share:"content",wrap:!0},when:dfe,slot:Jr,keepEmpty:!0,parts:[{kind:"block",type:"Text",props:{...ne,text:"Location coordinates \xA9",_partStyles:{text:I3}}},{kind:"block",type:"ButtonBlock",props:{...Ro,...Ls,variant:"ghost",arrow:!1,label:"OpenStreetMap contributors",href:"https://www.openstreetmap.org/copyright",_partStyles:{label:{...I3,color:"labels"}}}}]},y3=(e,o)=>Object.fromEntries(o.filter(t=>e[t]!==void 0).map(t=>[t,e[t]])),b3=["sectionPaddingTop","sectionPaddingTopTablet","sectionPaddingTopPhone"],S3=["sectionPaddingBottom","sectionPaddingBottomTablet","sectionPaddingBottomPhone"],w3=e=>e.map(o=>[o,o,(t,r)=>ie(r,Sk)[o]]),C3=["sectionAccent","sectionAccent",pn],bfe=[...za,...Ni,...Object.values(Be)],Sfe={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)=>({...Q,direction:"column",gap:40,anchor:"studios",...yt,...y3(ie(e,Sk),b3),sectionPaddingBottom:g3,sectionPaddingBottomPhone:g3,...Fs(e,o)}),box:[...te.filter(e=>e!=="sectionAccent"&&e!=="anchor"),C3,["anchor","anchor",e=>Uc(e).trim()?e:"studios"],...w3(b3)],parts:[$x("sectionNumber","heading","tagline"),mfe],also:[{name:"City maps",boxProps:(e,o)=>({...Q,direction:"column",gap:40,sectionBorder:{bottom:1},...yt,sectionPaddingTop:0,sectionPaddingTopPhone:0,...y3(ie(e,Sk),S3),...Fs(e,o)}),box:[...bfe,C3,...w3(S3)],parts:[Ife,yfe]}],reads:{mapTheme:"City maps Box: each Map block's Map theme",imageShape:"City pictures Box: each picture Box's Box shape"},site:un,drop:{...ee,...se,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)"}},P3={ContactLocations:Sfe};import{SITE_SIDE as E3,sideLengthAt as wfe}from"efficient-easel/screen/lib/content/length-units";import{viewKeyAt as Tk}from"efficient-easel/draw";var Cfe=["FAQ","Footprint","LongRead","ProcessSteps","RelatedProducts"];var mn=(e,o)=>()=>({top:e,topPhone:o}),_3=e=>o=>{let t=Il(e),r={...o,[Gr.top]:td(o,t).top},a=l=>{let d=wfe(r,Gr,Jn,l,"top");return d?.unit==="px"?d.value:void 0},n=l=>q(o[Tk(Gr.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}:{}}},vfe={Collections:mn(120,70),Events:mn(120,70),FAQ:mn(120,70),GalleryB:mn(120,70),FitmentTable:mn(120,80),SpecTable:mn(120,80),LongRead:mn(120,80),RelatedProducts:mn(0,0),Footprint:_3("Footprint"),ProcessSteps:_3("ProcessSteps"),ProductGrid:e=>({top:q(e.padTop)??120,topPhone:0})};function kfe(e,o={}){let t=U(dr,e),r=U(vfe,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=Xt(e),s=jx(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:U(Pn,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=Ns(e)==="editorial"?yt:{};return{...Q,direction:"column",gap:mf[Ns(e)],sectionPaddingTop:u.top,...u.topTablet!==void 0?{sectionPaddingTopTablet:u.topTablet}:{},...u.topPhone!==void 0?{sectionPaddingTopPhone:u.topPhone}:{},...h,...p,...m}},box:[...te,...a?[[a,"sectionPaddingTop",(d,f)=>r(f).top]]:[]],parts:[n,...(()=>{let d=a&&gM.has(e)?{[Tk(a,"tablet")]:0,[Tk(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 Tfe={...N,direction:"accordion",rowStyle:"numbered"},Pfe={sectionPaddingLeft:E3,sectionPaddingRight:E3},Efe={Footprint:{slots:{[ze]:[JE()]},pressHeading:!0},ProcessSteps:{slots:(e,o)=>o.press?{[mc]:ZH().map(t=>({...t,props:{...t.props,...Pfe}}))}:{},boxProps:{gapPhone:mf.editorial}},FAQ:{slots:{[ze]:[ZE()]},pressHeading:!0,coreBox:{name:"Questions",props:Tfe},coreProps:{sectionAccent:Mr},roomBelow:{bottom:120,bottomPhone:70},boxProps:(e,o)=>o.press?{}:{[pM]:gs},skip:e=>{let o=e._partStyles??{},t=XE().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}}},O3=Object.fromEntries(Cfe.map(e=>[e,kfe(e,U(Efe,e))]));import{BLOCK_WIDTH_LIMIT as _fe}from"efficient-easel/draw";var dg={eyebrow:qe.eyebrow,title:qe.headingAccent,deck:"Add a sentence or two introducing this document."},a7e={label:"Document masthead",defaultProps:{eyebrow:"",title:"",deck:"",meta:[]}};var M3={minWidth:_fe.min},A3=(e,o,t)=>({...ge(e,{...o,...df}),props:{...j,align:"right",...As,...t}}),H3={top:1,bottom:0},Ek=(e,o,t,r)=>({kind:"group",name:e,props:{...N,sectionPaddingBottom:o,sectionPaddingBottomPhone:t},parts:[r]}),R3={widthFit:"fill",...M3},L3={top:100,bottom:60,topPhone:60,bottomPhone:40},Ofe={...G("label",13),letterSpacing:.22,lineHeight:1.8},F3={textStyle:"heading-1",...bt("headingLarge",56,8,128),case:"upper",weight:500,lineHeight:.88,letterSpacing:-.04},Afe=()=>({name:"Page Header",boxProps:e=>({...Q,direction:"column",gap:0,sectionBorder:{bottom:1},...ie(e,L3)}),box:[...te,...xe(L3)],parts:[{kind:"group",name:"Header",props:{...N,direction:"row",align:"end",justify:"between",gap:40,gapPhone:16,share:"content",sectionPaddingBottom:32},parts:[Ek("Eyebrow",12,0,{...ge("eyebrow",G("label",13)),props:{...j,...As}}),{kind:"text",key:"title",role:"heading",props:{...j,tag:"h1",...R3},style:F3,mark:"accentItalic",when:e=>!Sv(e)},{kind:"text",key:"title",role:"heading",props:{...j,tag:"h2",...R3},style:F3,mark:"accentItalic",when:Sv},{kind:"group",name:"Details",props:{...N,align:"stretch",gap:0,gapPhone:0,sectionPaddingBottom:12,sectionPaddingBottomPhone:0},parts:[{kind:"list",key:"meta",name:"Detail",flat:!0,parts:[ff("label","value",Ofe,As)]}]}]},{kind:"group",name:"Deck",props:{...N,maxWidth:760,sectionBorder:H3,sectionPaddingTop:28},parts:[{kind:"text",key:"deck",props:ne,style:{textStyle:"body-1",fontRole:"accent",...G("body",22,19),italic:!0,lineHeight:1.5}}]}],drop:{...ee,...se,[ux]:"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"}}),W3=()=>({eyebrow:dg.eyebrow,title:vr(dg.title),deck:dg.deck,meta:[{label:qe.label,value:qe.value},{label:qe.label,value:qe.value}]}),B3={top:80,bottom:40,topPhone:60,bottomPhone:32},Rfe={...G("label",13),letterSpacing:.18,lineHeight:1.8},N3={...G("label",13),letterSpacing:.22,lineHeight:1.9},Lfe=()=>({name:"Issue Header",boxProps:e=>({...Q,direction:"column",gap:0,sectionBorder:{bottom:1},...ie(e,B3)}),box:[...te,...xe(B3)],parts:[{kind:"group",name:"Top",props:{...N,direction:"row",align:"end",justify:"between",gap:60,gapPhone:16,share:"content",sectionPaddingBottom:32},parts:[Ek("Eyebrow",14,14,ge("eyebrow",G("label",14))),{kind:"group",name:"Issue",props:{...N,align:"end",gap:0,gapPhone:0,sectionPaddingBottom:14},parts:[{kind:"list",key:"issueMeta",name:"Issue line",flat:!0,parts:[ff("lead","rest",Rfe)]}]}]},{kind:"group",name:"Bottom",props:{...N,direction:"row",align:"start",justify:"between",gap:60,gapPhone:16,share:"content",sectionBorder:H3,sectionPaddingTop:32},parts:[{kind:"text",key:"lead",props:{...j,maxWidth:720,...M3},style:{textStyle:"body-1",fontRole:"heading3",...G("headingSmall",20),lineHeight:1.5,letterSpacing:-.005,paragraphSpacing:16}},{kind:"group",name:"In this issue",props:{...N,align:"stretch",gap:0},parts:[Ek("Heading",6,6,{kind:"text",key:"issueHeading",props:{...j,align:"right",...As},style:{textStyle:"body-1",fontRole:"heading",...G("body",18),weight:400,letterSpacing:-.01,lineHeight:1.9,...df}}),{kind:"group",name:"Lines",props:{...N,align:"stretch",gap:0},parts:[{kind:"list",key:"issueList",name:"Line",flat:!0,parts:[A3("text",{color:"labels",...N3})]}]},A3("issueTotal",N3)]}]}],drop:{...ee,...se}}),D3={top:24,bottom:24,topPhone:16,bottomPhone:16},Pk={color:"labels",...G("label",13),letterSpacing:.2},$3=e=>(Array.isArray(e.items)?e.items:[]).filter(o=>o&&typeof o.label=="string"&&o.label.trim()!==""),_k=(e,o)=>o!==void 0&&$3(e).at(-1)===o,U3=(e,o)=>o!==void 0&&$3(e).includes(o),Ffe=(e,o)=>U3(e,o)&&!_k(e,o)&&ao(o?.href),Bfe=()=>({name:"Breadcrumb",skip:e=>ao(e.meta)?'a trailing note after "\xB7" needs a second mark; none live':void 0,boxProps:e=>({...Q,...Ms,wrap:"wrap",gap:16,gapPhone:16,separator:"slash",sectionBorder:{bottom:1},...ie(e,D3)}),box:[...te,...xe(D3)],parts:[{kind:"list",key:"items",name:"Crumb",flat:!0,parts:[{kind:"button",key:"label",href:"href",variant:"ghost",when:Ffe,props:{...Ro,...Ls,icon:"none"},style:Pk},{...ge("label",Pk),when:(e,o)=>U3(e,o)&&!_k(e,o)&&!ao(o?.href)},{...ge("label",{...Pk,color:"text"}),when:_k}]}],drop:{...ee,...se,meta:"a node that stores a note is skipped (`skip`); an empty one draws nothing"}}),z3={DocMasthead:Afe(),Masthead:Lfe(),Breadcrumb:Bfe()};import{BLOCK_WIDTH_LIMIT as Dfe,hiddenKeyOf as Mfe}from"efficient-easel/draw";import{readHidable as Ok}from"efficient-easel/draw";function Nfe(e,o,t){return e||(t?.isEditing?c(o):void 0)}function I7e(e,o,t){let r=Array.isArray(e)?e:[];return r.length?r:t?.isEditing?o:[]}function G3(e,o,t){let r=Ok(e);if(!r.hidden)return Nfe(r.text,o,t)}function j3(e){if(e==null)return;let o=Ok(e);return o.hidden?"":o.text}function y7e(e,o,t){return Ok(e).hidden?"":G3(e,o,t)}function b7e(e,o,t){return{text:G3(e,fo.text,t),href:o||fo.href}}var q3="MenuBlock",Ak=e=>(Array.isArray(e)?e:[]).filter(o=>o&&ao(o.label)),K3=e=>{let[o,t]=[e.metaLabel,e.metaValue].map(a=>(j3(a)??"").trim());if(!t)return o;let r=t.includes("==")?t:`==${t}==`;return o?`${o} ${r}`:r},V3={top:0,bottom:0,topPhone:0,bottomPhone:0},Hfe={...ct,color:"labels",...G("label",12),letterSpacing:.24},Wfe={kind:"group",name:"Note",props:{...N,justify:"center",sectionBorder:{top:0,right:0,bottom:0,left:1},sectionPaddingLeft:28,[Mfe("mobile")]:!0},parts:[{kind:"block",type:"Text",when:e=>K3(e)!=="",props:e=>({...j,textFit:"line",text:K3(e),[Pd]:{text:Hfe}})}]},X3=()=>({tabs:[],metaLabel:qe.label,metaValue:qe.value}),Y3="the note Text inside the Box (the label, then the value in the accent); no words, no Text",Z3={direction:"row",menuStyle:"tabs",currentPage:!0,minWidth:Dfe.min},J3=e=>({...e,boxProps:o=>({...Q,direction:"row",align:"stretch",justify:"between",gap:0,stickTop:!0,[Ir]:0,[Za]:!0,sectionBorder:{bottom:1},...ie(o,V3)}),box:[...te,...xe(V3)]}),$fe=()=>J3({name:"Tab Bar",skip:e=>Ak(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:Y3,metaValue:Y3},parts:[{kind:"block",type:q3,props:Z3},Wfe],drop:{...ee,...se,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"}}),Ufe=()=>J3({name:"Category Bar",skip:e=>{if(Ak(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(Ak(e.links).length)return"its right-hand links are typed words: the bar holds the Menu only"},parts:[{kind:"block",type:q3,props:{...Z3,[_o]:R0}}],drop:{...ee,...se,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"}}),Q3={DocTabs:$fe(),CategoryBar:Ufe()};import{jsx as Hs,jsxs as Lk}from"react/jsx-runtime";import{slugify as zfe}from"efficient-shell/format";import{jsx as Rk,jsxs as eW}from"react/jsx-runtime";var R7e="sticky top-[120px]";var fg={entry:{label:"Entry",follows:"Labels",builtIn:"13px",writable:!0},number:{label:"Entry number",follows:"Labels",builtIn:"13px",writable:!0}};var oW=(e,o)=>e?{[Rn]:o}:{},tW=(e,o)=>Np(e?.[wc(o)]?.role,fg[o],ci),rW=120;function aW({title:e,entries:o,stickyTop:t,sticky:r=!0,editing:a=!1,partStyles:n,numberForm:s=Lw,takesViewHide:i=!1}){let l=s==="plain",d=Mt(),f=i?d:$a;return f.scope(eW("aside",{className:Zo(`${r?"sticky ":""}flex flex-col self-start max-[900px]:static`,f.className),style:r?{top:t}:void 0,...f.attrs,children:[e&&Rk("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=Rk("span",{...oW(a,"number"),style:tW(n,"number"),className:"text-accent",children:rh(s,p)});return eW("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,Rk("span",{...oW(a,"entry"),style:tW(n,"entry"),children:yo(u.label||"Section")}),!l&&m]},`${p}-${u.anchor}`)})]}))}function Gfe(e,o){return zfe(e)||`section-${o+1}`}var Fk=e=>typeof e=="string"&&e.trim()!=="";function Bk(e){return(e??[]).filter(o=>Fk(o.heading)||Fk(o.label)||Fk(o.body))}function Nk(e){let o=new Set;return e.map((t,r)=>{let a=Gfe(t.label||t.heading||"",r),n=a,s=2;for(;o.has(n);)n=`${a}-${s++}`;return o.add(n),n})}function Dk(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=vp(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 jfe=()=>[{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.")}],Kfe=rW;function J7e({tocTitle:e,sections:o,editing:t=!1,stickyTop:r=Kfe}){let a=Bk(o);if(a.length===0&&!t)return null;let n=a.length===0&&t?jfe():a,s=Nk(n);return Hs(ue,{as:"section",className:"relative z-[2] bg-bg",children:Lk("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:[Hs(aW,{title:e,entries:n.map((i,l)=>({label:i.label||"Section",anchor:s[l]})),stickyTop:r}),Hs("div",{className:"flex flex-col gap-16",children:n.map((i,l)=>Lk("article",{id:s[l],className:"flex flex-col gap-[18px]",style:{scrollMarginTop:r},children:[Lk("span",{className:"font-mono text-[length:var(--size-label,12px)] uppercase tracking-[0.3em] text-accent",children:[Rw(l)," \xB7 ",yo(i.label||"Section")]}),i.heading&&Hs("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)}),Dk(i.body??"").map((d,f)=>d.type==="ul"?Hs("ul",{className:"flex max-w-[680px] list-none flex-col gap-2.5 pl-0",children:d.items.map((u,p)=>Hs("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):Hs("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 nW={top:80,bottom:80,topPhone:60,bottomPhone:60},sW=18,iW=18,lW=8,Vfe=10,Mk=e=>typeof e=="string"&&e.trim()!=="",cW=e=>Bk(e.sections),Yfe=e=>Dk(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}),Hk={...cr(12),letterSpacing:.3,color:"accent",lineHeight:1.5},dW={textStyle:"body-1",fontRole:"accent",...G("body",17)},qfe=[ge("label",Hk),{...ge("title",Hk),when:(e,o)=>!Mk(o?.label)},{kind:"block",type:"Text",when:(e,o)=>!Mk(o?.label)&&!Mk(o?.title),props:{...j,text:"Section",_partStyles:{text:Hk}}},{kind:"group",name:"Heading",props:{...N,sectionPaddingBottom:lW,sectionPaddingBottomPhone:lW},parts:[{kind:"group",name:"Heading line",props:{...N,sectionBorder:{bottom:1},sectionPaddingBottom:iW,sectionPaddingBottomPhone:iW},parts:[{kind:"text",key:"heading",role:"heading",props:j,style:{textStyle:"heading-2",...bt("headingMedium",28,3.5,44),case:"upper",weight:500,lineHeight:1.04,letterSpacing:-.025}}]}]},{kind:"list",key:"body",name:"Body",flat:!0,of:Yfe,parts:[{kind:"text",key:"text",props:ne,style:{...dW,lineHeight:1.7},when:(e,o)=>o?.kind==="p"},{kind:"text",key:"text",props:ne,style:{...dW,lineHeight:1.65,paragraphSpacing:Vfe},when:(e,o)=>o?.kind==="ul"}]}],Xfe=900,Zfe={name:"Document Text",boxProps:e=>({...Q,direction:"row",gap:80,gapPhone:40,[Hx]:Xfe,sectionBorder:{bottom:1},...ie(e,nW)}),box:["anchor","sectionAccent",...za,...Ni,...Object.values(Be),...xe(nW)],parts:[{kind:"block",type:"Contents",props:e=>({title:e.tocTitle??"",sticky:!0,widthFit:"fixed",width:240,widthFitPhone:"fill"})},{kind:"group",name:"Sections",props:{...N,gap:64,gapPhone:64,widthFit:"fill"},parts:[{kind:"list",key:"sections",name:"Section",of:e=>cW(e),props:{...N,gap:sW,gapPhone:sW},item:(e,o,t)=>({props:{anchor:Nk(cW(t))[o]??`section-${o+1}`}}),parts:qfe}]}],reads:{tocTitle:"the Contents block's Heading"},drop:{...ee,stickyTop:"the Contents block draws DocBody's default (120px); 0 live nodes store it"}},fW={DocBody:Zfe};import{phoneKey as epe}from"efficient-easel/draw";import{SITE_SIDE as ope}from"efficient-easel/screen/lib/content/length-units";var cYe={eyebrow:"\u2014 Label",title:`Section headline *here.*
|
|
336
|
-
*Highlight line*`,body:"Describe this section in a sentence or two."},dYe={text:"Learn more"},fYe={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 Wk(e){return typeof e=="number"&&Number.isFinite(e)?Math.min(Math.max(e,0),100):40}var pW="[--intro-edge:60px] max-[960px]:[--intro-edge:24px]",Jfe="overlay",Qfe=[{label:"Copy over image",value:"overlay"},{label:"Copy above image",value:"stacked"}];function pg(e){return Io(Qfe,Jfe,e)}var mYe={desktop:40,mobile:45,min:20,max:80,step:5};function hYe(e,o){return`${typeof e=="number"?e:o}%`}var uW=(e,o,t)=>{let r=q(e),a=q(o),n=(s,i)=>i&&i!=="px"?{[s]:i}:{};return{...r===void 0?{}:{size:r,...n(jt.size,t?.desktop)},...a===void 0?{}:{sizePhone:a,...n(jt.sizePhone,t?.phone)}}},tpe=e=>pg(e.layout)==="stacked",mW=e=>Math.min(Math.max(q(e.overlay)??60,0),100),ug=e=>q(e)??100,rpe={textStyle:"heading-1",sizeToken:{...bt("headingLarge",48,7,96).sizeToken,pxPhone:36},weight:500,lineHeight:.95,letterSpacing:-.03},ape=[ge("eyebrow",G("label",14)),...[!0,!1].map(e=>({kind:"text",key:"title",role:"heading",props:j,style:{...rpe,case:e?"upper":"none"},styleFrom:o=>{let t=GS(o);return uW(o.titleSizeDesktop,o.titleSizeMobile,{desktop:t.titleDesktop,phone:t.titleMobile})},when:o=>o.uppercase===!0===e})),{kind:"text",key:"body",props:{...ne,maxWidth:560},style:{textStyle:"body-1",...G("body",17,16),lineHeight:1.6,paragraphSpacing:24},styleFrom:e=>{let o=GS(e);return uW(e.bodySizeDesktop,e.bodySizeMobile,{desktop:o.bodyDesktop,phone:o.bodyMobile})}},{kind:"group",name:"Button",props:{...N,align:"start",sectionPaddingTop:8,sectionPaddingTopPhone:8},parts:[{kind:"button",key:"ctaText",href:"ctaHref",variant:"primary",props:Ro}]}],hW=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)`,npe=()=>({name:"Scroll-Over Text",skip:e=>tpe(e)?"the stacked layout: its words row's height floor (`copyShare*`) and the header subtraction have no Box setting; 0 live US nodes":void 0,boxProps:e=>({...Q,direction:"column",justify:"center",align:"start",gap:24,gapPhone:24,share:"content",...pf,placement:"left",darken:mW(e),darkenStyle:"even",sectionHeightMode:"fixed",sectionHeightUnit:"%",sectionHeightValue:ug(e.heightDesktop),sectionHeightModePhone:"fixed",sectionHeightUnitPhone:"%",sectionHeightValuePhone:ug(e.heightMobile),[Qn]:Xa}),box:[...te.filter(e=>!String(typeof e=="string"?e:e[0]).startsWith("sectionHeight")),["imageSrc","bgImage"],["imageSrcMobile","bgImagePhone"],["overlay","darken",(e,o)=>mW(o)],["heightDesktop","sectionHeightValue",e=>ug(e)],["heightMobile","sectionHeightValuePhone",e=>ug(e)]],parts:ape,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(fF.map(e=>[e,"read by its part's `styleFrom`: the unit of that view's Size"])),buttonColor:hW("Button color"),buttonTextColor:hW("Button text color"),...ee}}),IW={textStyle:"heading-2",...G("headingMedium",56,36),weight:400,lineHeight:1.05,letterSpacing:-.03},spe={textStyle:"body-1",...G("body",16),lineHeight:1.7},yW=e=>({kind:"text",key:"body",props:{...ne,maxWidth:520},style:{...spe,paragraphSpacing:e}}),hg={top:0,bottom:0,topPhone:0,bottomPhone:0},$k=(e,o)=>typeof e.sectionHeightMode=="string"&&e.sectionHeightMode!=="auto"?{}:{sectionHeightMode:"fixed",sectionHeightUnit:"%",sectionHeightValue:o,sectionHeightModePhone:"auto"},ipe=(e,o)=>{let t=$k(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"}},bW={boxShapePhone:"landscape"},SW="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)",lpe=(e,o)=>({[e]:o,[epe(e)]:o}),cpe={textStyle:"heading-2",...G("headingMedium",40),weight:500,case:"none",lineHeight:1,letterSpacing:-.02},xW=e=>(Array.isArray(e.stats)?e.stats:[]).filter(o=>o&&(String(o.value??"").trim()!==""||String(o.label??"").trim()!=="")),dpe=()=>({name:"Brand Text",boxProps:(e,o)=>({...Q,...It("background")(e,o),direction:"row",share:"equal",gap:0,gapPhone:0,sectionBorder:{top:1,bottom:1},...ie(e,hg),...$k(e,100)}),box:[...te,...xe(hg)],parts:[{kind:"group",name:"Words",props:()=>({...N,justify:"center",gap:28,gapPhone:28,sectionBorder:uf({right:1}),sectionBorderPhone:uf({}),...pf,sectionPaddingTop:100,sectionPaddingBottom:100,sectionPaddingTopPhone:60,sectionPaddingBottomPhone:60,sectionPaddingRight:ope}),parts:[ge("eyebrow",G("label",14)),{kind:"text",key:"heading",role:"heading",props:j,style:{...IW,case:"none"},mark:"accentItalic"},yW(28),{kind:"group",name:"Stats",props:{...N,sectionPaddingTop:16,sectionPaddingTopPhone:16},parts:[{kind:"group",name:"Figures",props:e=>({...N,direction:"row",share:"equal",gap:24,gapPhone:24,maxWidth:520,phoneRow:Math.min(Math.max(xW(e).length,1),3),...lpe("sectionBorder",uf({top:1})),sectionPaddingTop:28,sectionPaddingTopPhone:28}),parts:[{kind:"list",key:"stats",name:"Stat",of:xW,props:{...N,gap:4,gapPhone:4},parts:[{kind:"text",key:"value",props:Rs,style:cpe},ge("label",{...G("label",13),color:"labels",letterSpacing:.2})]}]}]}]},Mv("Picture","imageSrc",bW)],drop:{...ee,grayscale:SW,...se}}),mg=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}},fpe=e=>e.textAlign==="center"||e.textAlign==="right"?_p[e.textAlign]:"stretch",ppe=e=>Math.min(Math.max(q(e.overlay)??60,0),100),wW=e=>typeof e=="string"&&e.trim()!=="",upe={...Ro,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},gW=e=>({...Mv("Picture","imageSrc",(o,t)=>({...wW(o.imageSrc)&&Wk(o.imageOverlay)>0?{darken:Wk(o.imageOverlay),darkenStyle:"even"}:{},placement:"center",...bW,sectionBorder:uf(e?{left:1}:{right:1}),...CW(e?"left":"right",Fl(t))}),[{kind:"button",key:"imageBtnText",href:"imageBtnHref",variant:"ghost",props:upe,style:{...cr(13,12),letterSpacing:.18}}]),when:o=>o.reverse===!0===e}),CW=(e,o)=>{let t=Math.max(60-o,0);return{sectionPaddingLeft:e==="left"?60:t,sectionPaddingRight:e==="right"?60:t}},mpe={kind:"group",name:"Words",props:(e,o)=>{let t=e.reverse===!0;return{...N,justify:"center",align:fpe(e),placement:e.textAlign==="center"?"center":e.textAlign==="right"?"right":"left",...ipe(e,72),gap:24,gapPhone:24,...wW(e.textBgSrc)?{darken:ppe(e),darkenStyle:"even"}:{},...pf,sectionPaddingTop:100,sectionPaddingBottom:100,...CW(t?"right":"left",Fl(o)),sectionPaddingTopPhone:60,sectionPaddingBottomPhone:60}},box:[["textBgSrc","bgImage"]],parts:[{...ge("eyebrow",G("label",14)),styleFrom:mg},{kind:"text",key:"title",role:"heading",props:j,style:IW,styleFrom:e=>({case:e.uppercase===!0?"upper":"none",...mg(e)})},{...yW(24),styleFrom:mg},{kind:"group",name:"Button",props:{...N,sectionPaddingTop:8,sectionPaddingTopPhone:8},parts:[{kind:"button",key:"ctaText",href:"ctaHref",variant:"primary",props:e=>{let o=mg(e);return{...Ro,...o.align?{align:o.align}:{},...o.alignPhone?{alignPhone:o.alignPhone}:{}}}}]}]},hpe=()=>({name:"Image & Text Split",boxProps:(e,o)=>({...Q,...It("background")(e,o),direction:"row",share:"equal",gap:0,gapPhone:0,sectionBorder:{top:1,bottom:1},...ie(e,hg),...$k(e,72)}),box:[...te,...xe(hg)],parts:[gW(!1),mpe,gW(!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:SW,...ee,...se}}),vW={IntroBleed:npe(),Manifesto:dpe(),Split:hpe()};var PW={headPlacement:void 0},kW={top:0,bottom:0,topPhone:0,bottomPhone:0},xpe=()=>({name:"Form",ownBoxConverts:!0,boxProps:e=>({...Q,direction:"column",...ie(e,kW)}),box:[...te,...xe(kW)],parts:[{kind:"core",keep:"rest",props:PW}],drop:{...ee,...se}}),TW={top:120,bottom:120,topPhone:60,bottomPhone:60},gpe=()=>({name:"Photo Submission Form",boxProps:e=>({...Q,direction:"column",gap:24,...ie(e,TW)}),box:[...te,...xe(TW)],parts:[ge("eyebrow"),{kind:"text",key:"title",role:"heading",props:j,style:{textStyle:"heading-2"},mark:"accentItalic"},{kind:"text",key:"body",role:"body",props:ne},{kind:"core",as:"Form",keep:["formSlug"],rename:{buttonText:"submitText",consent:"finePrint"},props:PW}],skip:e=>e.layout==="boxes"?`its words are in its two SubmitBox regions (layout "boxes"); this row reads only the section's own words`:void 0,drop:{...ee,...se,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'}}),EW={Form:xpe(),SubmitBuild:gpe()};import{phoneKey as _W}from"efficient-easel/draw";var AW=1.5,OW={textStyle:"body-1",...G("body",15),lineHeight:AW},Ipe={...ct,...G("label",12),letterSpacing:.12,lineHeight:AW},RW=()=>({type:Y,props:{...N,direction:"row",justify:"between",align:"start",gap:16,gapPhone:16,share:"content",phoneRow:2,[_W("share")]:"content",[_W("wrap")]:"nowrap",...Xo(12,0),sectionBorder:{top:1},name:"Item"},slots:{[De]:[{type:Y,props:{...N,gap:0,gapPhone:0,name:"Item words"},slots:{[De]:[Je("label",{...j,tag:"p"},OW),Je("meta",{...ne,tag:"p"},Ipe)]}},Je("amount",{...j,tag:"p"},OW)]}});var ype=()=>({name:"Order Table",boxProps:()=>({...Q,direction:"column"}),box:[...te],parts:[{kind:"core",keep:"rest",headless:!0,slots:{[ze]:[RW()]}}],drop:{...ee}}),LW={OrderSummary:ype()};import{phoneKey as bpe}from"efficient-easel/draw";var $Ye={eyebrow:"By the numbers",title:`A picture worth
|
|
337
|
-
*a thousand rows.*`},FW=["eyebrow","title","body","caption"],UYe={label:"Chart",defaultProps:{eyebrow:"",title:"",body:"",items:[],caption:"",chartStyle:"bars",valueSuffix:""}};var BW=["eyebrow","title","body"],GYe={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 MW={top:76,bottom:76,topPhone:76,bottomPhone:76},HW=()=>({kind:"group",name:"Words",props:{...N,gap:20,gapPhone:20},parts:[{kind:"group",name:"Chip row",props:{...N,direction:"row",phoneRow:2,[bpe("share")]:"content"},parts:[Al("eyebrow")]},{kind:"text",key:"title",role:"heading",props:j,style:{textStyle:"heading-2",...G("headingMedium",44,32),weight:500,case:"upper",lineHeight:1.04,letterSpacing:-.02}},{kind:"text",key:"body",props:{...ne,maxWidth:435},style:Fp(16)}]}),WW=e=>(o,t)=>({...Q,sectionAccent:Ll(o.sectionAccent??0,t),direction:"row",align:"center",gap:56,gapPhone:56,share:e,sectionBorder:{top:1,bottom:1},...ie(o,MW)}),$W=[...te.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,t)=>Ll(e,t)],...xe(MW)],Spe=()=>({name:"Chart",boxProps:WW([42]),box:$W,parts:[HW(),{kind:"group",name:"Chart",props:{...N,gap:16,gapPhone:16},keepEmpty:!0,parts:[{kind:"core",keep:"rest",props:Ol},ge("caption",{color:"muted",...G("label",10),letterSpacing:.14})]}],pressKeepsEmpty:[...FW],drop:{...ee,...se}}),NW=e=>e.align==="left",DW={kind:"group",name:"Card",keepEmpty:!0,props:N,parts:[{kind:"core",keep:"rest",props:Ol}]},wpe=()=>({name:"Mockup Card",boxProps:WW("equal"),box:$W,parts:[{...DW,when:NW},HW(),{...DW,when:e=>!NW(e)}],pressKeepsEmpty:[...BW],drop:{...ee,...se}}),UW={Chart:Spe(),Mockup:wpe()};import{phoneKey as vpe}from"efficient-easel/draw";function zW(e,o=3){let t=Array.from({length:o},()=>[]);return e.forEach((r,a)=>t[a%o].push(r)),t}function GW(e){return Math.max(e*6,30)}var jW={top:76,bottom:76,topPhone:76,bottomPhone:76},kpe=e=>(Array.isArray(e.apps)?e.apps:[]).map(o=>o&&typeof o=="object"&&typeof o.text=="string"?o.text.trim():"").filter(Boolean),Uk=e=>zW(kpe(e)),Tpe=e=>Qx({loopDuration:GW(e)}),Ppe={kind:"group",name:"Header",props:{...N,align:"center",gap:20,gapPhone:20},parts:[{kind:"group",name:"Chip row",props:{...N,direction:"row",justify:"center",phoneRow:2,[vpe("share")]:"content"},parts:[Al("eyebrow")]},{kind:"text",key:"title",role:"heading",props:{...j,align:"center"},style:{textStyle:"heading-2",...G("headingMedium",40,30),weight:500,case:"upper",lineHeight:1.04,letterSpacing:-.02}},{kind:"text",key:"body",props:{...ne,align:"center",maxWidth:568},style:Fp(16)}]},Epe=e=>({kind:"group",name:`Row ${e+1}`,when:o=>Uk(o)[e].length>0,props:o=>({...N,direction:"row",gap:12,gapPhone:12,loop:"scroll",...e%2===1?{scrollDirection:"right"}:{},loopDuration:Tpe(Uk(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=>Uk(o)[e].map(t=>({alt:t})),parts:[{kind:"block",type:"LogoBlock",box:["alt"]}]}]}]}),_pe={kind:"group",name:"Stat",props:{...N,align:"center",gap:16,gapPhone:16},parts:[{kind:"group",name:"Figure",props:{...N,align:"center",gap:8,gapPhone:8},parts:[{kind:"text",key:"statValue",props:{...j,align:"center"},style:{textStyle:"heading-1",...G("headingLarge",64,46),weight:500,case:"upper",lineHeight:1,color:"accent"}},{kind:"text",key:"statLabel",props:{...j,align:"center"},style:{textStyle:"heading-3",...G("headingSmall",18),weight:500,case:"upper",letterSpacing:.06}}]},{kind:"text",key:"note",props:{...j,align:"center",maxWidth:428},style:{textStyle:"body-1",...G("label",14),lineHeight:1.625,color:"muted"}}]},Ope=[...te.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,t)=>Ll(e,t)],...xe(jW)],Ape={name:"Integrations",boxProps:(e,o)=>({...Q,sectionAccent:Ll(e.sectionAccent??0,o),direction:"column",gap:48,gapPhone:48,sectionBorder:{top:1,bottom:1},...ie(e,jW)}),box:Ope,parts:[Ppe,{kind:"group",name:"Rows",props:{...N,gap:12,gapPhone:12},parts:Array.from({length:3},(e,o)=>Epe(o))},_pe],pressKeepsEmpty:["body","statValue","statLabel","note"],reads:{apps:"a Logo block per app, dealt into the three Rows"},drop:{...ee,...se}},KW={Integrations:Ape},VW=()=>({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 Rpe={title:"Back online in",zeroText:"Almost done. Back very soon."},YW=["title"],s9e={label:"Countdown",defaultProps:{...Rpe,endsAt:"",showUnits:!0}};var qW={top:48,bottom:48,topPhone:48,bottomPhone:48},Lpe={...ge("title",{...$E(12),color:"muted"}),props:{...j,align:"center"}},Fpe=()=>({name:"Countdown",boxProps:e=>({...Q,direction:"column",align:"center",gap:16,gapPhone:16,...ie(e,qW)}),box:[...te,...xe(qW)],parts:[Lpe,{kind:"core",keep:"rest",props:Ol}],pressKeepsEmpty:[...YW],drop:{...ee,...se}}),XW={top:80,bottom:80,topTablet:60,bottomTablet:60,topPhone:60,bottomPhone:60},Bpe=()=>({name:"Feature Banner",boxProps:e=>({...Q,direction:"column",sectionBorder:{bottom:1},...ie(e,XW)}),box:[...te,...xe(XW)],parts:[{kind:"core",keep:"rest",props:Ol}],drop:{...ee,...se}}),ZW={Countdown:Fpe(),FeaturedCover:Bpe()};var JW={top:80,bottom:80,topPhone:60,bottomPhone:60},Npe=()=>{let e=jx("FitmentFinder");return{name:"Fitment Form",boxProps:o=>({...Q,direction:"column",gap:mf[Ns("FitmentFinder")],...ie(o,JW)}),box:[...te,...xe(JW)],parts:[Xt("FitmentFinder"),{kind:"block",type:"FitmentPicker"},{kind:"block",type:"StockFitment"},{kind:"button",key:"ctaText",href:"ctaHref"}],skip:o=>o.layout==="bar"?"the one-row shape goes to the shop on the fourth pick and draws no head; the Fitment picker block never leaves the page":void 0,...Object.keys(e).length?{reads:e}:{},drop:{...ee,...se,layout:'the section shape; "bar" is skipped (above), so here it is the stacked shape this Box draws'}}},QW={FitmentFinder:Npe()};var xg={eyebrow:"Label",title:"Section *heading.*",body:"Add this section's copy here. A blank line starts a new paragraph."},h9e={label:"Editorial Text",defaultProps:{eyebrow:"",title:"",body:"",topBorder:!0}};var Ef={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"},I9e={label:"Lead Text",defaultProps:{eyebrow:"",lead:"",stats:[],foundersHeading:"",foundersBody:"",attribution:"",padTop:60,padBottom:80}};var e$={eyebrow:"Limited release",title:"Banner headline",body:"A line or two of supporting copy."},b9e={label:"Banner",drawsPictures:!0,defaultProps:{eyebrow:"",title:"",body:"",imageSrc:"",ctaText:"",ctaHref:"",contained:!0,overlay:60}};var o$={title:`Section heading
|
|
339
|
-
*Highlight line*`},t$=[{label:fo.text,href:fo.href,variant:"primary"},{label:fo.text,href:fo.href,variant:"outline"}],C9e={label:"Call-to-Action Heading",defaultProps:{title:"",buttons:[],padTop:140,padBottom:140}};var gg="standard",s$=[{label:"Standard",value:"standard"},{label:"Editorial",value:"editorial"},{label:"Simple",value:"simple"},{label:"Statement",value:"statement"},{label:"Natural",value:"natural"},{label:"Essay",value:"essay"}],Gk=["numStyle","logoSrc","logoAlt","linkText","linkHref","_gLogo"],zk=[...Gk,"description"],r$={standard:["eyebrowLook"],editorial:[...Gk,"eyebrowLook"],simple:zk,statement:zk,natural:Gk,essay:zk},a$=["gap-5","gap-3"],n$=["text-[length:var(--size-body,16px)]","text-[15px]"];function P9e(e){return Io(a$,a$[0],e)}function E9e(e){return Io(n$,n$[0],e)}function _9e(e){return Io(s$,gg,e)}function O9e(e){let o=s$.map(r=>r.value),t=[...new Set(Object.values(r$).flat())];return Ct(e,t.map(r=>[[r],Sc("headStyle",o,gg,o.filter(a=>!r$[a].includes(r)))]))}var _a={num:"01 / Section",title:"Section *title*",description:"Short supporting line",linkText:qe.viewAll},B9e={label:"Section Header",drawsPictures:!0,defaultProps:{headStyle:gg,num:_a.num,numStyle:Dd,title:_a.title,description:"",logoSrc:"",logoAlt:"",linkText:"",linkHref:""}};var Ig={eyebrow:"\u2014 Label",title:`Section headline
|
|
340
|
-
*Highlight line*`,body:"A sentence or two of supporting copy."},H9e={label:"Scroll-Over Text",drawsPictures:!0,defaultProps:{eyebrow:"",title:"",body:"",imageSrc:"",imageSrcMobile:"",heightDesktop:100,heightMobile:100,overlay:60,titleSizeDesktop:os,bodySizeDesktop:os,titleSizeMobile:os,bodySizeMobile:os,ctaText:"",ctaHref:"",buttonColor:"",buttonTextColor:"",stickTop:!0,[Ir]:0,uppercase:!1}};var i$={top:72,bottom:72,topPhone:72,bottomPhone:72},Dpe={name:"Editorial Text",boxProps:e=>({...Q,direction:"column",gap:28,gapPhone:28,sectionBorder:{top:1},...ie(e,i$)}),box:[["topBorder","sectionBorder",e=>e===!1?void 0:{top:1}],...te,...xe(i$)],parts:[Xt("Prose"),{kind:"text",key:"body",props:ne,style:{textStyle:"body-1",...G("body",16),lineHeight:1.7,paragraphSpacing:18}}],drop:{...ee,...se,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)"}},l$={buttonPaddingTop:20,buttonPaddingBottom:20,buttonPaddingLeft:28,buttonPaddingRight:28},c$=(e,o)=>o?.variant==="primary",d$=(e,o)=>({kind:"list",key:"buttons",name:"Button",flat:!0,when:e,parts:[{kind:"button",key:"label",href:"href",when:c$,variant:"primary",style:{letterSpacing:.3},props:{...Ro,...l$,...o}},{kind:"button",key:"label",href:"href",when:(t,r)=>!c$(t,r),variant:"ghost",style:{letterSpacing:.3},props:{...Ro,...l$,...o}}]}),yg=e=>ao(e.title),Mpe={name:"Call-to-Action Heading",boxProps:e=>({...Q,direction:"row",align:"center",justify:yg(e)?"between":"end",gap:60,gapPhone:60,share:"content",sectionBorder:{bottom:1},...qt(e,"TitleWithButtons")}),box:[...te,...dn("TitleWithButtons")],parts:[{kind:"group",name:"Title",props:{...N,maxWidth:1e3,widthFitPhone:"fill"},parts:[{kind:"text",key:"title",role:"heading",props:j,style:{textStyle:"heading-1",...bt("headingLarge",48,7,108),case:"upper",lineHeight:.94,letterSpacing:-.035},mark:"accentItalic"}]},{kind:"group",name:"Buttons",props:e=>({...N,gap:14,gapPhone:14,widthFitPhone:"fill",...yg(e)?{minWidth:280,minWidthPhone:0}:{}}),parts:[d$(yg,{widthFit:"fill",iconPosition:"end"}),d$(e=>!yg(e),{})]}],drop:{...ee,buttonsAlign:"moves the buttons only when there is no heading (4 of 128 live nodes), where the Box puts them at the end. 0 of 128 live nodes store it (the live export, 2026-10-24)",buttonsAlignPhone:"the phone's own side of `buttonsAlign`, read only with no heading; no old node stores it (it is new with the Phone view's Block alignment row), so nothing moves",buttonsAlignTablet:"the tablet's own side of `buttonsAlign`, read only with no heading; no old node stores it (it is new with the Tablet view's Block alignment row, 0 stored on the US sites 2026-11-05), so nothing moves"}};function Hpe(e,o){let t=Fl(o,{to:_e(e.sectionPaddingUnit)}),r=Fl(o,{view:"phone",to:_e(e.sectionPaddingUnitPhone),maxPx:20});return{sectionPaddingLeft:t,sectionPaddingRight:t,sectionPaddingLeftPhone:r,sectionPaddingRightPhone:r}}var f$={top:40,bottom:64,topPhone:24,bottomPhone:36},Wpe={name:"Section Header",boxProps:(e,o)=>({...Q,direction:"column",gap:0,...ie(e,f$),...Hpe(e,o)}),box:[...te,...xe(f$)],parts:[Xt("SectionHeader")],drop:{...ee,...se,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"}},p$={...N,direction:"row",share:[67],gap:32},u$={...N,sectionPaddingLeft:24,sectionPaddingLeftPhone:0},m$=(e,o,t)=>({kind:"group",name:e,props:o,parts:[t]}),$pe={name:"Lead Text",boxProps:e=>({...Q,direction:"column",gap:40,gapPhone:40,sectionBorder:{bottom:1},...qt(e,"ParagraphsA")}),box:[...te,...dn("ParagraphsA")],parts:[{kind:"group",name:"Numbers",props:{...p$,gapPhone:24,sectionBorder:{bottom:1},sectionPaddingBottom:40,sectionPaddingBottomPhone:40},parts:[{kind:"group",name:"Eyebrow",props:{...N,sectionPaddingTop:5,sectionPaddingBottom:1,sectionPaddingTopPhone:5,sectionPaddingBottomPhone:1},parts:[ge("eyebrow",{color:"labels",...G("label",12),letterSpacing:.24})]},m$("Stats column",N,{kind:"group",name:"Stats",props:{...u$,gap:0,gapPhone:0},parts:[{kind:"list",key:"stats",name:"Stat",flat:!0,parts:[ff("value","label",{...G("label",13),letterSpacing:.18,lineHeight:1.8})]}]})]},{kind:"group",name:"Words",props:{...p$,gapPhone:28},parts:[{kind:"group",name:"Lead",props:N,parts:[{kind:"group",name:"Measure",props:{...N,maxWidth:780},parts:[{kind:"text",key:"lead",props:j,style:{textStyle:"heading-3",...G("headingSmall",22,20),weight:400,case:"none",lineHeight:1.45,letterSpacing:-.005}}]}]},m$("Note column",{...N,justify:"end"},{kind:"group",name:"Founders",props:{...u$,gap:8,gapPhone:8},parts:[{kind:"group",name:"Note",props:{...N,gap:6,gapPhone:6},parts:[{kind:"text",key:"foundersHeading",props:j,style:{textStyle:"body-1",fontRole:"heading",...G("body",18,16),weight:500,letterSpacing:-.01,lineHeight:1.7}},{kind:"text",key:"foundersBody",props:ne,style:{textStyle:"body-5",fontRole:"heading",...G("body",14,12),lineHeight:1.7}}]},ge("attribution",{...G("label",12,10),letterSpacing:.24,lineHeight:1.7})]})]}],drop:{...ee}},h$={top:24,bottom:24,topPhone:24,bottomPhone:24},Upe={name:"Banner",boxProps:e=>({...Q,direction:"column",gap:0,...ie(e,h$)}),box:[...te,"contained",...xe(h$)],parts:[{kind:"group",name:"Card",keepEmpty:!0,props:{...N,gap:28,gapPhone:28,placement:"top-left",darken:60,darkenStyle:"even",sectionBorder:{width:1},...sa("surface"),...Xo(64,40,40,24)},box:[["imageSrc","bgImage"],["overlay","darken",e=>Math.min(Math.max(q(e)??60,0),100)]],parts:[{kind:"group",name:"Words",props:{...N,gap:20,gapPhone:20},parts:[ge("eyebrow"),{kind:"text",key:"title",role:"heading",props:{...j,maxWidth:680},style:{weight:500,lineHeight:1.05,letterSpacing:-.03,case:"none",...G("headingMedium",44,32)}},{kind:"text",key:"body",props:{...j,maxWidth:680},style:{textStyle:"body-1",lineHeight:1.6,...G("body",16)}}]},{kind:"button",key:"ctaText",href:"ctaHref",variant:"primary",props:Ro}]}],drop:{...ee,...se}},jk={Prose:Dpe,TitleWithButtons:Mpe,SectionHeader:Wpe,ParagraphsA:$pe,Banner:Upe},x$={Prose:()=>({eyebrow:xg.eyebrow,title:vr(xg.title),body:xg.body}),TitleWithButtons:()=>({title:vr(o$.title),buttons:t$.map(e=>({...e}))}),SectionHeader:()=>({num:_a.num,title:vr(_a.title),description:_a.description,linkText:_a.linkText,linkHref:fo.href}),ParagraphsA:()=>({eyebrow:Ef.eyebrow,lead:qe.body,foundersHeading:Ef.foundersHeading,foundersBody:Ef.foundersBody,attribution:Ef.attribution}),Banner:()=>({...e$,ctaText:fo.text,ctaHref:fo.href}),ProcessSteps:()=>({num:_a.num,title:vr(_a.title)}),IntroBleed:()=>({eyebrow:Ig.eyebrow,title:vr(Ig.title),body:Ig.body,ctaText:fo.text,ctaHref:fo.href})};function bg(){Po(jk),Po(y5),Po(B5),Po(c5),Po(J5),Po(p3),Po(P3),Po(O3),Po(z3),Po(Q3),Po(fW),Po(vW),Po(EW),Po(LW),Po(QW),Po(UW),Po(KW),Po(ZW)}var zpe=[{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=>a4(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=>s4(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})=>(bg(),d4(e,lf,{theme:z_(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=>sM(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=>Z2(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=>X2(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=>Y2(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=>fM(e)},{name:"withPageContents",chrome:!1,why:"page-only: a Contents block lists the PAGE's anchored sections and numbers their kickers",run:e=>YB(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=>tH(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=>iH(e)}];function Gpe(e,o,t){let r=e;for(let a of zpe)(!t||a.chrome)&&(r=a.run(r,o));return r}function g$(e,o){return Gpe(e,{metadata:o},!1)}import{isNode as jpe,isNodeList as Kpe}from"efficient-easel/data";import{hidableText as Vpe,readHidable as Ype}from"efficient-easel/draw";var y$="slotCounts",Kk=e=>!Ype(e).hidden&&Vpe(e).trim()!=="",qpe=e=>typeof e=="string"&&e.trim()!=="",Xpe={Flex:()=>!0,PostCard:()=>!0,ImageBlock:e=>qpe(e.src),Text:e=>Kk(e.text),Heading:e=>Kk(e.text),Eyebrow:e=>Kk(e.eyebrow)},Zpe=["widthFit","width","minWidth"],I$=e=>Kpe(e);function Jpe(e){if(Array.isArray(e.content))return I$(e.content)?e.content:null;let o=Object.values(e).filter(I$);return o.length===1?o[0]:null}function Qpe(e,o){return[...new Set([N0,...Object.values(U(a_,e)??{})])].some(t=>ft(o,t)!=="")}function eue(e){let o=e.props??{},t=U(Xpe,e.type);if(!t||!t(o)||Qpe(e.type,o)||Kc(o))return!1;let r=o[kl];if(r!=null&&r!=="")return!1;let a=Ox(o);return!Zpe.some(n=>a[n]!==void 0)}function oue(e){let o=0;for(let t of e)if(!fa(t.props??{})){if(!eue(t))return;o+=1}return o>0?o:void 0}function tue(e){let o={},t=new Set,r=new Set,a=(n,s)=>{if(Array.isArray(n))for(let i of n){if(!jpe(i))continue;let l=i.props.id;typeof l=="string"&&(t.has(l)?r:t).add(l);let d=s?null:Jpe(i.props);if(typeof l=="string"&&d){let f=oue(d);f!==void 0&&(o[l]=f)}for(let f of Lr(i))a(i.props[f],s||Ln(i.type,f))}};a(e,!1);for(let n of r)delete o[n];return o}function b$(e,o){return{...e??{},[y$]:tue(o)}}function Hqe(e){let o=e.editor?.metadata?.[y$],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 w$({config:e,data:o,metadata:t}){let r=g$(o,t),a=aM(e,rM(r.content)),n=Hh(r.content),s=n.length>0?{...t,[tM]:n}:t;return S$(Wh,{children:S$(rue,{config:a,metadata:b$(s,r.content),data:r})})}import{jsx as or,Fragment as nme,jsxs as f6}from"react/jsx-runtime";import{jsx as aue,jsxs as nue}from"react/jsx-runtime";import{createContext as sue,useContext as iue}from"react";var C$=sue(!1);function Xqe(){return iue(C$)}function v$({grayscale:e,children:o}){let t=e===!0;return nue(C$.Provider,{value:t,children:[Object.entries(vH(e)).map(([r,a])=>aue("style",{children:a},r)),o]})}import{jsx as lue}from"react/jsx-runtime";import{createContext as cue,useContext as due}from"react";var k$=cue(null);function eXe(){return due(k$)}function T$({ink:e,children:o}){return lue(k$.Provider,{value:e??null,children:o})}var P$="data-lead-ink",aXe="data-header-ink";var fue="auto";function pue(e){return e.type==="IntroBleed"?pg(e.props?.layout)!=="stacked":!0}function E$(e){let o=Ad(e);return o&&RD(e)&&pue(o)?"light":null}function nXe(e){return e==="light"||e==="dark"?e:fue}import{useEasel as sme}from"efficient-easel/easel";import{useEffect as vue}from"react";import{useEaselApi as kue}from"efficient-easel/easel";import{find as uue,walk as _$}from"efficient-easel/data";var mue=()=>"",hue=e=>wy(Br([e],mue));function R$(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(hue))])),a=wy(e);return Object.keys(r).find(n=>r[n].has(a))??null}var xue=()=>({press:[Bl(An),Bl(yc)],delivery:[Uv()]}),gue={},Vk=e=>R$(e,xue,gue),Iue=e=>oo(e)===A0?"delivery":"press";function gXe(e,o){if(!o||oo(e)===oo(o))return e;let t=Vk(e[ze]),r=Iue(e);if(!t||t===r)return e;let a=gy(e,Oo),n=r==="delivery"?Uv():Bl(oo(e)?yc:An),s=Br([n],yy(a));return{...e,[ze]:s}}var yue=()=>({cards:[ui(An),ui(yc)],label:[mi(!1),mi(!0)]}),bue={},Sue=e=>R$(e,yue,bue);function IXe(e,o){if(!o||e.cardStyle==="label-only"==(o.cardStyle==="label-only"))return e;let t=Sue(e[ze]),r=e.cardStyle==="label-only"?"label":"cards";if(!t||t===r)return e;let a=gy(e,UE),n=Array.isArray(e.items)&&e.items.some(l=>be(l?.href)!==void 0),s=r==="label"?mi(n):ui(oo(e)?yc:An),i=Br([s],yy(a));return{...e,[ze]:i}}var O$=(e,o)=>$v.every(t=>JSON.stringify(e[t])===JSON.stringify(o[t]));function A$(e,o){let t={...e};for(let r of $v)delete t[r];return{...t,...structuredClone(o)}}function Yk(e){let o=e?.[De];if(!Array.isArray(o)||o.length!==1)return null;let t=o[0];return t?.type===Oo&&t.props?t:null}function wue(e,o){let t=Yk(e),r=Yk(o);if(!t?.props||!r?.props||r.props.id!==t.props.id||oo(t.props)===oo(r.props))return e;let a=Vk(t.props[ze]);if(!a||a===Vk(r.props[ze]))return e;let n=q(e.columns);return n===void 0?e:a==="delivery"&&O$(e,Bs(n))?A$(e,Nx(n)):a==="press"&&O$(e,Nx(n))?A$(e,Bs(n)):e}function L$(e){let o=Sg.get(e);o?o.count+=1:Sg.set(e,{count:1,stop:Cue(e)});let t=!1;return()=>{let r=Sg.get(e);t||!r||(t=!0,r.count-=1,!(r.count>0)&&(r.stop(),Sg.delete(e)))}}var Sg=new WeakMap;function Cue(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;_$(t,e.config,n=>{if(n.type!==Y||!Yk(n.props))return;let s=uue(r,e.config,n.props.id);if(!s||s.node===n)return;let i=wue(n.props,s.node.props);i!==n.props&&a.set(n.props.id,i)}),a.size&&e.dispatch({type:"setData",recordHistory:!1,data:n=>_$(n,e.config,s=>{let i=a.get(s.props.id);return i?{...s,props:{...i,id:s.props.id}}:void 0})})})}function F$(){let e=Tue();vue(()=>e?L$(e):void 0,[e])}function Tue(){try{return kue()}catch{return null}}import{jsx as wg}from"react/jsx-runtime";import{useEffect as Pue}from"react";import{armScrollProgress as Eue}from"efficient-shell/format";function B$({armed:e,children:o}){return Pue(()=>e?Eue():void 0,[e]),o}function qk(){return{style:{"--sf-page-width":Mo}}}function _ue({children:e}){return wg("div",{style:qk().style,children:e})}function AXe({pageBackground:e,inheritBackground:o=!1,chrome:t=!1,children:r}){return wg("div",{style:{...o?{}:Gu(e),background:"var(--bg)",minHeight:"100%",overflowX:"clip"},children:wg(B$,{armed:!t,children:wg(_ue,{children:r})})})}import{jsx as N$,Fragment as Oue}from"react/jsx-runtime";import{createContext as Aue,useContext as Rue}from"react";var D$=Aue({}),M$=D$.Provider;function BXe(e){let{SectionTextParts:o}=Rue(D$);return o?N$(o,{...e}):N$(Oue,{children:e.children})}import{jsx as Zue}from"react/jsx-runtime";import{useEffect as Jue,useRef as Que}from"react";var H$="data-easel-overlay-portal";function Cg(e){return e.setAttribute(H$,"true"),()=>{e.removeAttribute(H$)}}import{jsx as zue}from"react/jsx-runtime";import{useEffect as Gue,useRef as e6}from"react";import{usePreviewParts as jue}from"efficient-easel/draw/client";import{jsx as Lue}from"react/jsx-runtime";import{createContext as Fue,useContext as Bue,useMemo as Nue,useState as Due}from"react";var Mue={partStyle:null,setPartStyle:()=>{}},W$=Fue(Mue);function WXe({children:e}){let[o,t]=Due(null),r=Nue(()=>({partStyle:o,setPartStyle:t}),[o]);return Lue(W$.Provider,{value:r,children:e})}function zl(){return Bue(W$)}import{usePreviewDevice as Kue}from"efficient-easel/draw/client";import{shownTier as Vue}from"efficient-easel/screen/lib/document/device-fields";import{decodePartId as o6,encodePartId as Yue}from"efficient-easel/draw";import{BLOCK_ATTRIBUTE as que}from"efficient-easel/canvas";import{createPreviewSelectionContext as Hue}from"efficient-easel/draw/client";var Ws="Scrolling Bar",{Provider:zXe,useSelection:$$}=Hue("selectedHeroId"),Xk="data-sf-hero-ticker";function U$(e){return`${e}::ticker`}function z$(e){return!e||!e.endsWith("::ticker")?null:e.slice(0,-8)||null}import{BLOCK_ATTRIBUTE as hn}from"efficient-easel/canvas";import{createPreviewSelectionContext as Wue}from"efficient-easel/draw/client";var{Provider:KXe,useSelection:G$}=Wue("selectedLocationPartId");function vg(e,o,t){return`${e}::${o}::${t}`}function kg(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 Jk="data-sf-part-label";function Qk(e,o){return e.closest(`[${hn}]`)?.getAttribute(hn)===o}function j$(e,o,t){let r=e.querySelectorAll("*"),a=new Map(t.map(y=>[y.key,Sd(y.label)])),n=[],s=new Set;for(let y=0;y<r.length;y+=1){let k=r[y];if(!Qk(k,o))continue;let F=k.getAttribute(BB);if(!F)continue;let T=a.get(F);n.push({element:k,partId:Yr(o,F),...T?{label:T}:{}}),s.add(k)}let i=[],l=new Set;for(let y=0;y<r.length;y+=1){let k=r[y];if(!Qk(k,o)||s.has(k))continue;let F=tn(k.textContent??"");if(!F)continue;let T=k.closest(`[${Pw}]`)?.getAttribute(Pw)||null;T&&l.add(T.replace(/\[\d+\]$/u,"")),i.push({element:k,text:F,row:T})}let d=y=>i.filter(k=>k.row===FB(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 k=h(y);if(!k||l.has(y.key))continue;let F=I.get(k);F?F.push(y):I.set(k,[y])}let w=new Set;for(let[y,k]of I){if(k.length<2)continue;let F=k.flatMap(P=>P.texts);if(new Set(F).size===F.length)continue;let T=u(k[0]).filter(P=>F.includes(P.text));if(T.length!==k.length)continue;let D=[...k].sort((P,L)=>(P.row?.index??0)-(L.row?.index??0));for(let P=0;P<D.length;P+=1){let L=D[P],C=T[P].element,A={key:L.key,partKey:Vr(L.key,L.row),exact:!0},E=p.get(C);E?E.push(A):(p.set(C,[A]),m.push(C))}w.add(y)}let S=new Map;for(let y of t){if(w.has(h(y)??""))continue;let k=Vr(y.key,y.row);for(let F of y.texts)for(let T of u(y)){if(T.text!==F)continue;let D=S.get(T.element);D?D.add(k):S.set(T.element,new Set([k]))}}let v=(y,k)=>[...S].some(([F,T])=>F!==y&&!T.has(k)&&F.contains(y));for(let y of t){if(w.has(h(y)??""))continue;let k=Vr(y.key,y.row);for(let F of y.texts){let T=[],D=null;for(let C of u(y))C.text===F?v(C.element,k)||T.push(C.element):!T.length&&C.text.includes(F)&&(!D||C.text.length<=D.length)&&(D={element:C.element,length:C.text.length});let P=T.length?T:D?[D.element]:[],L=P.filter(C=>!P.some(A=>A!==C&&C.contains(A)));for(let C of L){let A={key:y.key,partKey:k,exact:T.length>0},E=p.get(C);E?E.push(A):(p.set(C,[A]),m.push(C))}}}let b=[...n];for(let y of m){let k=p.get(y)??[],F=k.some(T=>T.exact)?k.filter(T=>T.exact):k;if(new Set(F.map(T=>T.partKey)).size===1){let T=a.get(F[0].key);b.push({element:y,partId:Yr(o,F[0].partKey),...T?{label:T}:{}});continue}new Set(F.map(T=>T.key)).size===1&&b.push({element:y,partId:Yr(o,F[0].key)})}return b}function Zk(e,o,t){let r=e.querySelectorAll(`[${co}]`);for(let n=0;n<r.length;n+=1){let s=r[n];Qk(s,o)&&(s.removeAttribute(co),s.removeAttribute(Jk))}let a=[];for(let{element:n,partId:s,label:i}of t)n.setAttribute(co,s),i&&n.setAttribute(Jk,i),a.push(n);return a}function Y$(e,o,t,r,a,n=()=>null){let s=null,i=null,l=null,d=()=>{let f=t(),u=f?.getAttribute(hn)??null;if(!f||!u)return!1;s=u;let p=j$(e,u,o);return a(f,u,Zk(e,u,p)),l=n(()=>{let m=j$(e,u,o);$ue(p,m)||(p=m,a(f,u,Zk(e,u,m)))}),!0};return d()||(i=r(()=>{(s||d())&&(i?.(),i=null)})),()=>{i?.(),i=null,l?.(),l=null,s&&Zk(e,s,[])}}function $ue(e,o){return e.length===o.length&&e.every((t,r)=>t.element===o[r].element&&t.partId===o[r].partId)}function eZe(e,o){let t=e?.closest?.(`[${co}],[${rn}]`),r=t?.getAttribute(co)??t?.getAttribute(rn),a=r?Id(r):null;if(t&&r&&a?.nodeId===o&&a.propKey)return{id:r,element:t,whole:V$(t,r),label:K$(t,r)};let n=e?.closest?.(X$.slice(2).map(i=>`[${i}]`).join(","));if(!n)return null;let s=n.closest?.(`[${hn}]`)?.getAttribute(hn)===o?Z$(n,o):null;return s?{id:s,element:n,whole:V$(n,s),label:K$(n,s)}:null}function K$(e,o){let t=kg(o);if(t)return t.part==="map"?"Map":t.part==="city"?"City":"Image";let r=xx(o);return r?Ea[r.part]:z$(o)?Ws:e.getAttribute(Jk)??void 0}var q$="data-loc-pick",X$=[co,rn,of,Xk,q$];function Z$(e,o){let t=e.getAttribute(co)??e.getAttribute(rn);if(t)return t;let r=e.getAttribute(of);if(r)return Ts(o,r);if(e.getAttribute(Xk)!==null)return U$(o);let a=e.getAttribute(q$)?.split(":");return a&&(a[1]==="image"||a[1]==="map"||a[1]==="city")&&/^\d+$/.test(a[0])?vg(o,Number(a[0]),a[1]):null}function V$(e,o){let t=e.closest?.(`[${hn}]`),r=t?.getAttribute(hn);if(!t||!r)return!1;let a=new Set;for(let n of t.querySelectorAll(X$.map(s=>`[${s}]`).join(","))){if(n.closest?.(`[${hn}]`)!==t)continue;let s=Z$(n,r);s&&a.add(s)}return a.size===1&&a.has(o)}import{ENTRANCE_ATTR as J$,playEntrance as Uue}from"efficient-shell/format";var eT=new WeakMap;function Q$(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=nO(f),p=r.get(d),m=p?yl.next(p,u,a):null;r.set(d,m?m.seen:yl.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=Qh(d.element);f&&i.set(f,[...i.get(f)??[],d])}for(let[d,f]of i){let u=h=>Ud(o(h.partKey)??{}),p=wl(f.filter(h=>u(h).entrance));if(p){let h=o(p.partKey)??{};n.push(Zh(d,Ec(h,a)));let I=eT.get(d);eT.set(d,p.partKey),(s.get(p.partKey)||I!==void 0&&I!==p.partKey)&&d.hasAttribute(J$)&&Uue(d)}else eT.delete(d);let m=d.hasAttribute(J$)?void 0:wl(f.filter(h=>ka(o(h.partKey)??{},a).effect!=="none"));m&&n.push(Jh(d,ka(o(m.partKey)??{},a))),f.some(h=>u(h).hover==="lift")&&(ex(d.ownerDocument),d.setAttribute(ws,""),n.push(()=>d.removeAttribute(ws)))}return()=>n.forEach(d=>d())}function oT(e){let o=null,t=null;for(let r=e;r&&(o===null||t===null);r=r.parentElement){let a=r.getAttribute("class");o??=j0(a),t??=Ay(a)}return{faceRole:o??"body",sizeGroup:t}}function Tg(e,o={}){let t=e.style,r={};for(let i of Th)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=GN({fontSize:a.fontSize,fontWeight:a.fontWeight,lineHeight:a.lineHeight,letterSpacing:a.letterSpacing,textAlign:a.textAlign,textTransform:a.textTransform,paddingTop:a.paddingTop},jN(a.fontFamily,i=>n.getPropertyValue(i)));for(let i of Th)t[i]=r[i];return s}function t6({needles:e,styles:o,motions:t=Xh,type:r,children:a}){let n=e6(null),{selectedPartId:s}=jue(),{setPartStyle:i}=zl(),l=Vue(Kue()),d=JSON.stringify(e),f=JSON.stringify(o),u=JSON.stringify(t),p=e6(new Map);return Gue(()=>{let m=n.current;if(!m)return;let h=[],I=()=>m.parentElement,w=T=>{let D=I();if(!D)return null;let P=new MutationObserver(T);return P.observe(D,{attributes:!0,attributeFilter:[que]}),()=>P.disconnect()},S=T=>{let D=new MutationObserver(T);return D.observe(m,{childList:!0,subtree:!0,characterData:!0}),()=>D.disconnect()},v=[];h.push(()=>{for(let T of v)T();v=[]});let b=JSON.parse(d),y=JSON.parse(f),k=JSON.parse(u),F=Y$(m,b,I,w,(T,D,P)=>{for(let E of v)E();v=[];let L=[];for(let E of P){let R=E,W=Cg(R);W&&v.push(W),R.getAttribute(co)===s&&L.push(R)}let C=KN(D,s,L,E=>K0(E)!==null||Ay(E)!==null);if(C&&s){let E=C,R=o6(s)?.propKey??"",W=bd(E)?{}:zN(hC(y,va(r,R)),l,{blockDrawsStyle:Ed(r,R)});i({partId:s,...oT(E),base:Tg(E,W),inks:zu(E),...(()=>{let z=bd(E);return z?{styleOwner:z}:{}})()})}xC(P.filter(E=>!bd(E)).map(E=>({element:E,partId:E.getAttribute(co)??""})),y,E=>Tg(E),E=>va(r,E),void 0,l,E=>Ed(r,E));let A=[...m.querySelectorAll(`[${Ew}="${CSS.escape(D)}"][${yd}]`)];A.length&&xC(A.map(E=>({element:E,partId:Yue(D,E.getAttribute(yd)??"")})),y,void 0,E=>E,void 0,l),v.push(Q$([...P.filter(E=>!bd(E)).map(E=>{let R=E,W=o6(R.getAttribute(co)??"")?.propKey??"";return{element:R,partKey:va(r,W)}}),...A.map(E=>({element:E,partKey:E.getAttribute(yd)??""}))],E=>k[E],Ci(l),p.current))},S);return()=>{F();for(let T of h)T()}},[d,f,u,s,i,l,r]),zue("div",{ref:n,[av]:"",style:{display:"contents"},children:a})}import{shownTier as eme}from"efficient-easel/screen/lib/document/device-fields";import{usePreviewDevice as ome,usePreviewParts as tme}from"efficient-easel/draw/client";var _f={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)]"},Xue={tag:{label:"Tag",follows:"Labels",builtIn:xi(_f.tag),writable:!0},name:{label:"Name",follows:"Heading 2",builtIn:xi(_f.name),writable:!0},body:{label:"Body",follows:"Body",builtIn:xi(_f.body),writable:!0},price:{label:"Price",follows:"Labels",builtIn:xi(_f.price),writable:!0},link:{label:"Link",follows:"Labels",builtIn:xi(_f.link),writable:!0}},r6=Xue;var RZe=Rn,a6={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 n6={SpecTable:a6,FAQ:qE,Collections:r6,Contents:fg};function s6(){return ai("efficient.section-text-regions",()=>new Map)}function WZe(e){let o=s6();for(let[t,r]of Object.entries(e)){if(He(n6,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 Gl(e){return e?U(n6,e)??s6().get(e)??null:null}function i6({nodeId:e,sectionType:o,partStyles:t,children:r}){let a=Que(null),{selectedPartId:n}=tme(),{setPartStyle:s}=zl(),i=eme(ome()),l=JSON.stringify(t??null);return Jue(()=>{let d=a.current,f=Gl(o);if(!d||!e||!f)return;let u=[],p=Array.from(d.querySelectorAll(`[${Rn}]`));for(let m of p){let h=Sy(f,m.getAttribute(Rn));if(!h)continue;let I=Cg(m);I&&u.push(I);let w=wc(h),S=Yr(e,w);m.setAttribute(rn,S);let v=t?.[w];if(f[h].sized&&gC(v)){let b=IC(v,i),y={fontFamily:m.style.fontFamily,fontSize:m.style.fontSize},k=m.getAttribute(Cr);b.fontFamily&&(m.style.fontFamily=b.fontFamily),b.fontSize&&(m.style.fontSize=b.fontSize);let F={fontFamily:b.fontFamily?m.style.fontFamily:void 0,fontSize:b.fontSize?m.style.fontSize:void 0},T=v?.textStyle;Sa(T)&&m.setAttribute(Cr,T),u.push(()=>{qN(m.style,y,F),k===null?m.removeAttribute(Cr):m.setAttribute(Cr,k)})}if(S===n){let b=Tg(m,YN(v,f[h],i));s({partId:S,...oT(m),base:b})}}return()=>{for(let m of u)m();for(let m of p)m.removeAttribute(rn)}},[e,o,n,s,i,l]),Zue("div",{ref:a,style:{display:"contents"},children:r})}import{jsx as tT,Fragment as l6}from"react/jsx-runtime";import{createContext as rme,useContext as c6,useMemo as ame}from"react";var rT=rme(null),d6=e=>e==null||e===""?void 0:String(e);function aT({content:e,children:o}){let t=ame(()=>Dw(e),[e]);return tT(rT.Provider,{value:t,children:o})}function rJe({id:e,children:o}){let t=c6(rT),r=d6(e);return tT(l6,{children:o(r?t?.entries.get(r):void 0)})}function aJe({id:e,children:o}){let t=c6(rT),r=d6(e);return tT(l6,{children:o(r?t?.numbers.get(r):void 0)})}var ime={SectionTextParts:i6},lme="color-mix(in oklab, var(--bg) 40%, #ffffff)",cme="12vh";function dme({style:e,children:o}){let{appState:t}=sme(p=>p),r=t.data.content,a=t.data.root;if(LD(r))return or("div",{className:"sf-themed-content",style:{...e,background:lme,minHeight:"100vh",paddingBottom:cme},children:or("div",{style:{background:"var(--bg)"},children:or(aT,{content:r,children:o})})});let n=RC(r)&&FC(a,r),s=RC(r)?BD(a,r):null,i=s?{[FD]:s}:null,l=gL(a?.widthChoice),d=l?{[xL]:l}:null,f=n?null:E$(r),u=f?{[P$]:f}:null;return or("div",{className:`sf-themed-content${n?` ${_D}`:""}`,style:e,...u,...i,...d,children:or("div",{style:{background:"var(--bg)",minHeight:"100%"},children:or(aT,{content:r,children:o})})})}function kJe({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 F$(),or(nT,{propsTheme:e,propsFonts:o,propsCornerStyle:t,propsCornerRadiusPx:r,propsHeadingCompression:a,propsHeadingTypography:n,pageBackground:s,chromeInheritsSiteBackground:i,onClickCapture:l,body:p=>f6(nme,{children:[or(dme,{style:p,children:u}),d,f]})})}function nT({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:v,siteWidth:b,siteGutter:y,siteGutterPhone:k,blockGap:F,blockGapPhone:T,siteLengthUnits:D,headingTypography:P,heroBackgroundFollowsWidth:L,photographyGrayscale:C,textStyles:A,wordStyles:E,themeFromDocument:R}=ce(),W=R?e:f,z=R?o:u,Z=R?void 0:p,V=R?r===void 0?Zp[Xp(t)]:Dt(r):m,fe=R?{}:D,Ie=R?a:v,ae=R?n:P,Oe=[fD(nD(R?void 0:A)),pD(Jp(ae).italicStrong)].filter(Boolean).join(`
|
|
341
|
-
`),ve=qk(),Ae={...b_(W),...O_(Z),...$_(ae),...ve.style,...i?{}:Gu(s)};return f6("div",{className:`sf-theme-surfaces sf-theme-accent ${[mL(R?void 0:k),aF(R?void 0:T)].filter(Boolean).join(" ")}`.trim(),style:{...V0(z),...X0(R?null:E),...S_(W),...w_(W),...v_(W),...qp(W),...R_(V,fe.cornerRadiusUnit),...M_(R?void 0:h,R?void 0:I,R?void 0:S),...iL(R?void 0:b,fe.siteWidthUnit),...fL(R?void 0:y,fe.siteGutterUnit),...uL(R?void 0:k,fe.siteGutterPhoneUnit),...tF(R?void 0:F,fe.blockGapUnit),...rF(R?void 0:T,fe.blockGapPhoneUnit),...Sm(R?void 0:L)},"data-sf-headings":H_(Ie),"data-sf-card-shadow":R?void 0:B_(h),"data-sf-card-gap":R?void 0:N_(w),"data-sf-card-hover":R?void 0:D_(S),onClickCapture:l,children:[Oe?or("style",{"data-sf-text-styles":"",dangerouslySetInnerHTML:{__html:Oe}}):null,or(v$,{grayscale:R?void 0:C,children:or(M$,{value:ime,children:or(T$,{ink:I_(W),children:d(Ae)})})})]})}var p6=e=>{e.target?.closest?.("a")&&e.preventDefault()};var Pg=[{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",Eg="template";function u6(e){for(let o=0;o<Pg.length;o++){let t=Pg[o].slugs.indexOf(e);if(t>=0)return o*100+t}return Number.MAX_SAFE_INTEGER}function m6(e){return e.map((o,t)=>({s:o,i:t})).filter(({s:o})=>o.source==="library").sort((o,t)=>u6(o.s.slug)-u6(t.s.slug)||o.i-t.i).map(({s:o})=>o)}function sT(e){return e.filter(o=>o.source==="template")}function h6(e){let o=new Set(m6(e).map(t=>t.slug));return Pg.filter(t=>t.slugs.some(r=>o.has(r)))}function x6(e,o){if(e===Eg)return sT(o);let t=m6(o);if(e===jl)return t;let r=Pg.find(a=>a.key===e);return r?t.filter(a=>r.slugs.includes(a.slug)):[]}function g6(e){let o=e.content;return Array.isArray(o)&&o.length>0?o[0]:null}var xme=1440,gme=1080;function y6({starter:e,config:o,metadata:t,busy:r,onAdd:a}){let{mirrorHostStyles:n}=Ac(),[s,i]=pme(null),l=fme(()=>{let d=g6(e.layout),f=e.layout.zones;return{root:{props:{}},content:d?[d]:[],zones:f??{}}},[e.layout]);return I6("div",{className:"sf-starter",children:[I6("div",{className:"sf-starter-picture",children:[Tr("div",{inert:!0,className:"sf-starter-frame",children:Tr(hme,{width:xme,height:gme,children:Tr(ume,{id:`page-starter-${e.id}`,title:e.title,mirrorStyles:n,onDocument:i,height:"fill",children:Tr(Mh,{document:s??void 0,children:Tr(nT,{onClickCapture:p6,body:d=>Tr("div",{className:"sf-themed-content",style:d,children:Tr("div",{style:{background:"var(--bg)"},children:Tr(w$,{config:o,data:l,metadata:t})})})})})})})}),Tr("div",{className:"sf-starter-add",children:Tr(mme,{onClick:()=>a(e),loading:r,"aria-label":c("Add \u201C{name}\u201D",{name:e.title}),children:c("Add page")})})]}),Tr("span",{className:"sf-starter-name",children:e.title})]})}import{useMemo as gye}from"react";import{sessionRegistry as Iye}from"efficient-easel/screen/lib/session";import{useEaselSession as yye}from"efficient-easel/screen/lib/session-context";import{currentEaselSession as Ime}from"efficient-easel/screen/lib/session";var yme={general:!0,commerce:!0,service:!0};function iT(e){let o=e?.sets;return o?Object.fromEntries(D0.map(t=>[t,o.includes(t)])):yme}function lT(e=Ime()){return iT(e.blocks)}import{currentEaselSession as R6}from"efficient-easel/screen/lib/session";import{SITE_SIDE as w6}from"efficient-easel/screen/lib/content/length-units";var b6=[{text:"Ticker item"},{text:"Ticker item"},{text:"Ticker item"},{text:"Ticker item"}],GJe={label:"Scrolling Bar",defaultProps:{items:[],tone:"scrim",borders:!0,size:EE,separator:_E,scrollDirection:wf}};var S6=()=>[{text:c("Spec label"),tone:"normal"},{text:c("Spec value"),tone:"muted"},{text:c("Spec label"),tone:"normal"},{text:c("Spec value"),tone:"muted"}],VJe={label:"Spec Strip",defaultProps:{cells:[{text:"",tone:"normal"},{text:"",tone:"normal"}],fill:"dark"}};function zo(e,o,t,r={}){return{type:e,props:{...o(e),id:t(e),...r}}}function C6(e,o,t){return zo(Y,e,o,{...t,sectionPaddingTop:void 0,sectionPaddingBottom:void 0})}var _g={Manifesto:(e,o)=>({type:Y,props:{...e(Y),id:o(Y),direction:"row",share:"equal",sectionHeightMode:"screen",name:"Brand Text",content:[zo(Y,e,o,{direction:"column",justify:"center",blockSpacing:"gap",name:"Text",sectionPaddingTop:100,sectionPaddingBottom:100,sectionPaddingLeft:w6,sectionPaddingRight:w6,content:[zo("Text",e,o,ia()),zo("Text",e,o,Na()),zo("Text",e,o),zo("Stats",e,o)]}),C6(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:[zo(Y,e,o,{direction:"column",justify:"center",blockSpacing:"gap",name:"Text",sectionPaddingTop:100,sectionPaddingBottom:100,sectionPaddingLeft:60,sectionPaddingRight:60,content:[zo("Text",e,o,ia()),zo("Text",e,o,Na()),zo("Text",e,o),zo("ButtonBlock",e,o)]}),C6(e,o,{direction:"column",name:"Image",content:[zo("ImageBlock",e,o)]})]}}),Subscribe:(e,o)=>({type:Y,props:{...e(Y),id:o(Y),direction:"column",name:"Subscribe",content:[zo("Text",e,o,Na()),zo("Text",e,o),zo("Form",e,o)]}}),Ticker:(e,o)=>v6("Scrolling Bar",tg,Cf,b6.map(t=>({text:t.text,style:rg,muted:!0})),e,o),SpecStrip:(e,o,t)=>v6("Spec Strip",t?.theme?{...kf,sectionAccent:Yp(ko(t.theme))}:{...kf,sectionBorder:{top:1}},vf,S6().map(r=>({text:r.text??"",style:Tf,muted:r.tone==="muted"})),e,o)};function v6(e,o,t,r,a,n){return zo(Y,a,n,{...Ms,...o,blockSpacing:"gap",padV2:!0,name:e,sectionPaddingTop:t.top,sectionPaddingBottom:t.bottom,sectionPaddingTopPhone:t.topPhone,sectionPaddingBottomPhone:t.bottomPhone,content:r.map(s=>zo("Text",a,n,{text:s.text,...s.muted?{tone:"dim"}:{},_partStyles:{text:s.style}}))})}function k6(e){return U(_g,e)??null}import{isNodeList as cT}from"efficient-easel/data";var IQe=Object.keys(jk),bme={Logos:N5,DocMasthead:W3,DocTabs:X3,Timeline:d3,TimelineTrack:f3},Sme={PaymentBadges:D5,PaymentLogosBlock:M5,Integrations:VW};function Og(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]=cT(n)?n.map(s=>Og(s,o,t)):n;return r.id=t(e.type),{type:e.type,props:r}}var T6=e=>({...e?.theme?{theme:e.theme}:{},...e?.site?{site:e.site}:{},press:!0});function Of(e,o,t=0,r=()=>({})){return(a,n,s)=>{let{nodes:i}=Os({type:e,props:{...a(e),...r(),id:n(e)}},o,T6(s));return Og(i[t],a,n)}}var wme={Stats:vme,Cards:Cme};function Cme(){let e=ln("Cards");if(!e)return null;let o=Of("Cards",e,0,l5);return(t,r,a)=>{let n=o(t,r,a);return{...n,props:{...n.props,name:"Cards section"}}}}function vme(){let e=ln("StatsParagraph");return e?(o,t,r)=>{let{nodes:a}=Os({type:"StatsParagraph",props:{...o("StatsParagraph"),...b5(),id:t("StatsParagraph")}},e,T6(r)),n=a[0],s=cT(n.props.content)?n.props.content.filter(f=>f.props?.cardStyle===void 0):[],i=E6(ak(S5(),"table")),l=s.map(P6),d=Og({...n,props:{...n.props,content:[...l,i]}},o,t);return{...d,props:{...d.props,name:"Stats section"}}}:null}function P6(e){return e.props?.name==="Words"?{...e,props:{...e.props,widthFitPhone:"fill"}}:cT(e.props?.content)?{...e,props:{...e.props,content:e.props.content.map(P6)}}:e}var E6=e=>Br([e],(o,t)=>`${o}-seed-${t}`)[0];function kme(e,o){if(!c4(e,o))return null;let t=U(wme,e);if(t)return t();let r=ln(e);return r?Of(e,r,0,U(bme,e)??U(x$,e)??U(Sme,e)):null}function Tme(e){return(o,t,r)=>{let a=n=>{if(n.type==="Stats"){let i=Og(E6(ak([],"list")),o,t);return{...i,props:{...i.props,name:"Numbers"}}}let s=go(n,i=>so(i,a));return s===n?n:{type:n.type,props:s.props}};return a(e(o,t,r))}}function Kl(e,o=_s){let t=k6(e);return t?Tme(t):kme(e,o)}import{blockTypesIn as _6}from"efficient-easel/screen/lib/document/block-types-in";var O6=()=>({}),A6=new Map;function Pme(e){let o=A6.get(e);if(o)return o;let t=new Set,r=U(Yt,e);if(r)for(let s of r.seeds(O6))for(let i of _6({type:r.childType,props:s}))t.add(i);let a=Kl(e);if(a){let s=0;for(let i of _6(a(O6,l=>`${l}-${s+=1}`)))t.add(i)}t.delete(e);let n=[...t].sort();return A6.set(e,n),n}function dT(e){if(!e||!e.sets&&!e.allow&&!e.deny?.length)return null;let o=iT(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=$0(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)&&Pme(l).every(i);return s.set(l,f),f};return{sets:o,offers:i}}var Eme="block-offer";function fT(e=R6()){return e.cache(Eme,()=>dT(Mi(e)))}function L6(e,o=R6()){let t=fT(o);return t?t.offers(e):!0}var F6={name:"catalogueLabel",applies:e=>He(Pn,e),draw(e,o){e.label=U(Pn,o)}};import{jsx as xT}from"react/jsx-runtime";import{parseBlockWidthFit as Rme,phoneKey as Pr,tabletKey as tr}from"efficient-easel/draw";import{jsx as _me}from"react/jsx-runtime";var B6={name:"sectionGroupAllow",applies:e=>Cu.includes(e),panel(e,o,t,r){let a=e.fields?.sections;a&&(a.allow=[...r.sectionGroupAllow])}},pT=new Set(Object.keys(dr)),N6={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=>!pT.has(l)):a;s.disallow=Array.from(new Set([...s.disallow??[],...i]))}}};var D6=Array.from(new Set([...z0.map(e=>e.type),...pT]));function uT(e,o){return D6.includes(e)||o?.sitsInBox===!0}var Ome=Array.from(new Set([...D6,...Sp,"GalleryItem"])),Ame={not:{context:"parentOffersPositions",is:!1}},M6={name:"cellWidth",applies:(e,o,t)=>(Ome.includes(e)||uT(e,t))&&!!t&&typeof t.render=="function",panel(e,o,t){let r=t.cellWidthFields;e.fields={...e.fields,...r()},e.fields=dt(e.fields??{},Object.keys(r()),Ame)},draw(e){let o=e.render;e.render=t=>{let r=iA(t.gridSpan),a=cA(t.gridRowSpan),n=o(t);if(r==null&&a==null)return n;let s={};return r!=null&&(s[lA]=String(r)),a!=null&&(s[dA]=String(a)),_me(ue,{className:"sf-grid-cell",...s,children:n})}}};function H6(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 Af={not:{context:"heldByANode",is:!0}};function Ag(e,o){return"parent"in o?o.parent!=null:!!Oa(o.appState,e.props?.id)}function Oa(e,o){let t=e?.data?.content;if(!Array.isArray(t)||typeof o!="string")return;let r=(a,n)=>{for(let s of a){if(s?.props?.id===o)return n;for(let i of si(s??{})){let l=r(i,s);if(l!==void 0)return l}}};return r(t,null)}var Lme=new Set(["Text","Heading"]),Fme=new Set(["h1","h2","h3","h4","h5","h6"]);function W6(e,o){return e==="Heading"?!0:e!=="Text"?!1:typeof o.tag=="string"&&Fme.has(o.tag)?!0:us(o,"text").textStyle?.startsWith("heading-")===!0}var xn={not:{context:"blockOutsideBox",is:!0}},$6={all:[xn,{not:{context:"boxSharesWidth",is:!0}}]},U6={all:[xn,{not:{context:"boxSharesWidthPhone",is:!0}}]},z6={all:[xn,{not:{context:"boxSharesWidthTablet",is:!0}}]};function V6(e,o,t){return{any:[{field:tr(e),is:o},{all:[{field:tr(e),set:!1},t??{field:e,is:o}]}]}}function Y6(e,o,t){return{any:[{field:Pr(e),is:o},{all:[{field:Pr(e),set:!1},t??{field:e,is:o}]}]}}var q6={any:[{field:"textFit",is:"shrink"},{all:[{field:"textFit",set:!1},{not:{context:"textWrapsByDefault",is:!0}}]}]},Bme=[[["_gBlockSize","minWidth",tr("minWidth"),Pr("minWidth"),"maxWidth",tr("maxWidth"),Pr("maxWidth")],xn],[["widthFit"],$6],[[tr("widthFit")],z6],[[Pr("widthFit")],U6],[["width"],{all:[$6,{field:"widthFit",is:"fixed"}]}],[[tr("width")],{all:[z6,V6("widthFit","fixed")]}],[[Pr("width")],{all:[U6,Y6("widthFit","fixed")]}]],G6=V6("textFit","shrink",q6),j6=[[["_gText","textFit",tr("textFit"),Pr("textFit")],xn],[["minFont"],{all:[xn,q6]}],[[tr("minFont")],{all:[xn,G6]}],[[Pr("minFont")],{all:[xn,Y6("textFit","shrink",G6)]}]],Rg=(e,o)=>Oa(o.appState,e.props?.id),Lg=e=>!!e&&typeof e.type=="string"&&wp(e.type)!==null,mT=e=>(e.type==="Flex"||e.type==="HeroGroup")&&jr(e.type,e.props?.direction)==="row",hT=e=>{let o=Rme(e);return o!==void 0&&o!=="fit"},Nme={blockOutsideBox:(e,o)=>!Lg(Rg(e,o)),boxSharesWidth:(e,o)=>{let t=Rg(e,o);return!Lg(t)||!mT(t)?!1:my({...t.props,direction:"row"})!==""?!0:fy(t.props?.share)!==""&&!hT(e.props?.widthFit)},boxSharesWidthTablet:(e,o)=>{let t=Rg(e,o);if(!Lg(t)||!mT(t))return!1;if(DE(t.props?.[tr("columns")])!==""||my({...t.props,direction:"row"})!=="")return!0;let r=RE(t.props?.[tr("share")])??t.props?.share;return fy(r)!==""&&!hT(e.props?.[tr("widthFit")]??e.props?.widthFit)},boxSharesWidthPhone:(e,o)=>{let t=Rg(e,o);if(!Lg(t)||!mT(t))return!1;let r=t.props?.phoneRow;return(Number(r)===2||Number(r)===3)&&!ME(r,t.props?.[Pr("share")])&&!hT(e.props?.[Pr("widthFit")]??e.props?.widthFit)}},Dme=e=>/^_[gds][A-Z]/.test(e);function Mme(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&&!Dme(r[n][0]);)n++;return Object.fromEntries([...r.slice(0,n),...Object.entries(t),...r.slice(n)])}function K6(e,o,t){let r=Object.entries(e);return Object.fromEntries([...r.slice(0,o),...Object.entries(t),...r.slice(o)])}function Hme(e,o,t){let r=Object.keys(o);if(r.includes("_dSize")){let{_gBlockSize:a,...n}=t;return K6(o,r.indexOf("_dSize")+1,n)}return Wme.has(e)&&r.includes("_gSpacing")?K6(o,r.indexOf("_gSpacing"),t):{...o,...t}}var Wme=new Set(["Text","Heading"]);function $me(e,o){let{_gText:t,...r}=o;return Mme(e,"_gText",r)??{...e,...o}}function Ume(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",tr("textFit"),Pr("textFit")])a in r&&(r[a]=e[a]);o.set(t,r)}return r}}var X6={name:"blockSize",applies:(e,o,t)=>uT(e,t)&&!!t&&typeof t.render=="function",panel(e,o,t){let r=Lme.has(o),{text:a}=t.blockSizeFields(r?{tablet:!0,textFit:o==="Heading"?"shrink":"wrap"}:{}),{size:n}=t.blockSizeFields({tablet:!0}),s=Hme(o,e.fields??{},Ct(n,Bme));if(r){let i=Ct(a,j6);if(s=$me(s,i),o==="Text"){let l=Ct(t.blockSizeFields({tablet:!0,textFit:"shrink"}).text,j6),d=Ume(l),f=e.resolveFields,u=(p,m)=>{let h=f?f(p,m):m.fields,I=w=>W6(o,p?.props??{})?d(w??m.fields):w;return h instanceof Promise?h.then(I):I(h)};e.resolveFields=u}}e.fields=s,Nr(e,{...Nme,textWrapsByDefault:i=>!W6(o,i.props??{})})},draw(e,o){zme(e,o)}};function zme(e,o){let t=e.render;e.render=r=>{let a=Ox(r),n=Dv(a),s=t(r),i=n&&Dv(a,{atSectionLine:!0});return n===null?s:xT(Gme,{size:n,sectionSize:i??n,atEdge:o===Y,canvasAttrs:r.editor?.isEditing?v4(a):Z6,inCell:C4(a),fillsPhone:b4(a),widens:k4(a),children:s})}}var Z6={};function Gme({size:e,sectionSize:o,atEdge:t,canvasAttrs:r,inCell:a,fillsPhone:n,widens:s,children:i}){let l=iu(),d=Wa(t?"edge":"by-box"),f=d?e:o,u=f.className,p=l?.phoneCells===!0,m=n&&l?.phoneRowFits===!0,h=s?xT(I2,{children:i}):i;return xT(Pi,{className:[u,p?a:"",m?y4:""].filter(Boolean).join(" "),...Object.keys(f.style).length?{style:f.style}:{},attrs:d&&r!==Z6?{...f.attrs,...r}:f.attrs,children:h})}import{Fragment as the,jsx as Dg}from"react/jsx-runtime";import{jsx as ot,Fragment as bT}from"react/jsx-runtime";import{createContext as Vl,useContext as Er}from"react";var jme=new Set(["Flex","Grid"]);function gn(e){return typeof e=="string"&&jme.has(e)}var $s="contentWidth",gT="full",IT="content";function Lf(e){let o=e?.[$s];return o===gT?!1:o===IT?!0:void 0}function J6(e,o){return e&&!o}function Fg(e){return e.loop==="scroll"&&e.direction!=="tabs"&&e.direction!=="accordion"&&!BA(e)&&!U5(e.scrollDirection)}function Rf(e,o){return gn(e)&&Fg(jc(o,!1))?rs({}):rs(o)}function Bg(e,o){return typeof e!="string"||!Nm(e)||Yi[e]==="rawMarkup"?Rf(e,o).background??"full":Rf(e,o).background??Dm(o).background}function Ng(e){return e!=="full"}function Q6(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=gn(d?.type),p=(i?Rf(d?.type,f).content:null)==="content"?!0:s,m=u&&(n.inBox?Lf(f)??p:p),h={insideGutter:n.insideGutter||m||u&&Fg(jc(f,l)),inBox:n.inBox||u};for(let I of Lr({type:d?.type,props:f})){let w=f[I],S=r(w,h,p,!1,l||Ln(d?.type,I));if(S!==void 0)return S}}};return r(e,{insideGutter:!1,inBox:!1},t,!0,!1)}var Kme=" [--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))))]",Vme="[--sf-edge-g:0px] [--sf-edge-al:var(--sf-edge-l)] [--sf-edge-ar:var(--sf-edge-r)]",Yme="[--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)))]",eU="max-w-[100vw]",qme=`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))] ${eU}`;function oU(e){let o={},t=e.pad??{},r=od({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=qa(e.site?"site":"box"),s=r.classes.includes(n.className.split(" ")[0]);return{className:`${e.gutter?`${n.className} ${n.edge}${Kme}`:`${Vme}${s?` ${n.className}`:""}`} ${Yme}`,style:o}}function ueo(e){let{className:o,style:t}=oU(e);return{className:`${o} ${qme}`,...Object.keys(t).length?{style:t}:{}}}var Xme="[--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 Zme="--sf-edge-beyond";function tU(e){return`max(0px,calc((${e===null?Qc:`min(${Qc},${e})`} - ${Mo}) / 2))`}var Jme=`${Xme} 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))] ${eU}`;function meo(e){let{className:o,style:t}=oU(e);return{className:`${o} ${Jme}`,style:{...t,[Zme]:e.beyond??"0px"}}}var Ff=Vl(!1);function veo(){return Er(Ff)}function keo({children:e}){return ot(Ff.Provider,{value:!0,children:e})}var yT=Vl(!1);function ST({children:e}){return ot(yT.Provider,{value:!0,children:e})}var rU=Vl(null);function wT({ground:e,children:o}){return ot(rU.Provider,{value:e,children:o})}var CT=Vl(!1);function Qme(){return Er(CT)}function aU({atTop:e,nested:o}){return ot(bT,{children:Qme()?o:e})}var Bf=Vl(void 0);function nU({children:e}){return ot(Bf.Provider,{value:null,children:e})}function vT(){return Er(Bf)===void 0&&!Er(CT)&&!Er(Ff)}function Yl({own:e,followed:o}){return ot(bT,{children:vT()?e():o()})}var sU=Vl(null);function iU({value:e,children:o}){return ot(sU.Provider,{value:e,children:o})}function lU({draw:e}){return ot(bT,{children:e(Er(sU))})}function Teo(){return Er(Bf)??null}function cU({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,children:I}){let w=Er(Ff),S=Er(yT),v=J6(e,w),b=v&&!S,y=Mt(),k=!!(i&&b),F=k?p:Zo(p??"",y.className)||void 0,T=k||!y.className?l:{...l,...y.attrs},D=s&&!b?TL(s.values,s.frame):null,P=i&&!b?i:null,L=d&&!m?cL:null,C=[b?o:t,b?L:null,D?.className,P?jL:null].filter(Boolean).join(" "),A=ehe(m&&b,D||P?{...a,...D?.style,...P}:a),E=Er(Bf),R=Er(rU),W=d&&f&&E===void 0?{gutter:v,...s?{pad:s.values}:{},beyond:v&&S?tU(R):"0px",...h&&v?{site:!0}:{}}:null,z=d?ot(CT.Provider,{value:!0,children:ot(Bf.Provider,{value:W,children:I})}):I,Z=v?ot(Ff.Provider,{value:!0,children:z}):z,V=s&&b?kL(s.values):null,fe=T&&Object.keys(T).length>0?T:null,Ie=ot("div",{...V?null:fe,className:!V&&F?C?`${C} ${F}`:F:C,style:V||!u?A:{...A,...u},"data-tab-label":n,children:S?ot(yT.Provider,{value:!1,children:v&&!m?ot("div",{className:L?`${r} ${L}`:r,children:Z}):Z}):Z}),ae=V?ot("div",{...fe,className:F?`${V.className} ${F}`:V.className,style:u?{...V.style,...u}:V.style,children:Ie}):Ie;return y.scope(i&&b?ot("div",{className:Zo(_m,y.className),style:{display:"contents",...i},...y.attrs,children:ae}):ae)}function ehe(e,o){return e?{...o,paddingLeft:0,paddingRight:0}:o}import{jsx as ohe}from"react/jsx-runtime";function dU({children:e}){return ohe(ue,{className:G5,children:e})}function rhe({side:e,children:o}){return vT()?Dg(dU,{children:Dg(ue,{className:j5(e),children:o})}):Dg(the,{children:o})}var fU={name:"boxJoin",applies:(e,o,t)=>e===Y&&!!t&&typeof t.render=="function",draw(e){let o=e.render;e.render=t=>{let r=og(t.join);return r?Dg(rhe,{side:r,children:o(t)}):o(t)}}};var pU=(e,o)=>e.fields?.[o]?.type==="slot",ahe=(e,o)=>pU(o,ze)||Up(e).some(t=>pU(o,t)),uU={name:"cardTemplateOnInsert",applies:(e,o,t)=>ahe(e,t),panel(e,o){let t=e.resolveData;e.resolveData=(r,a)=>{let n=r.props??{},s=a?.trigger,i=s==="insert"?Mp(o,n):s==="copy"?Dp(o,n):n,l=i===n?r:{...r,props:i};return t?t(l,a):l}}};import{jsx as Wg}from"react/jsx-runtime";import{Fragment as Us,jsx as no,jsxs as kT}from"react/jsx-runtime";import{createContext as TT,useContext as In,useId as dhe}from"react";import{REPEAT_ATTRIBUTE as fhe,REPEAT_INDEX_ATTRIBUTE as phe}from"efficient-easel/draw";import{jsx as jeo}from"react/jsx-runtime";import{createContext as ihe,useContext as gU,useMemo as lhe}from"react";var mU="title";function hU(e){return`${e}Alt`}function nhe(e){let o=e.find(t=>typeof t?.url=="string");return{url:o?.url??"",alt:typeof o?.alt=="string"?o.alt:""}}function xU(e,o){let t={[mU]:typeof e.title=="string"?e.title:""};for(let{key:r,kind:a}of e.schema??[]){let n=e.fields?.[r];if(a==="text"&&typeof n=="string")t[r]=n;else if(a==="date"&&typeof n=="string")t[r]=n&&o?o(n):n;else if(a==="images"&&Array.isArray(n)){let{url:s,alt:i}=nhe(n);t[r]=s,t[hU(r)]=i}}return t}function she(e,o){return typeof o!="string"?o.flatMap(t=>she(e,t)):e===Wt||!db(e)?[]:o==="image"?ub(e,["images"]).map(t=>({key:t.key,label:t.label,kind:"image",alt:hU(t.key)})):o!=="text"?[]:[{key:mU,label:c("Title")},...ub(e,["text","date"]).map(t=>({key:t.key,label:t.label}))]}var IU=ihe(null);function che(){return gU(IU)?.record??null}function qeo(e){let o=che();return o!==null&&o.type===e?o:null}function yU(){let e=gU(IU);return lhe(()=>e&&e.record.type!==Wt?xU(e.record,e.dateWords):null,[e])}function loo({props:e,editing:o,children:t}){let r=In(Nf);return!o&&ky(e,r?.row)?null:no(Us,{children:t})}var Hg=TT(null);function coo({field:e,children:o}){let t=In(Hg);return no(Us,{children:o(t&&t.field===e?t.id:void 0)})}function uhe(e,o){return e?.find(t=>!!o[t.field]?.trim()&&!t.gates.some(r=>ky({[ni]:r},o)))?.field??""}var Nf=TT(null),Mg=TT(null),mhe={label:"text-[length:var(--size-label,12px)]"},hhe=`flex min-h-6 items-center border border-dashed border-line px-2 py-1 ${mhe.label} text-fg-dim`;function doo({name:e,label:o,editing:t}){let r=In(Mg)?.(e),a=du()!=="";return r!=null&&r!==!1?a?no(ue,{className:"contents",children:r}):no(Us,{children:r}):t?no(ue,{className:hhe,children:c("Shown by the section: {name}",{name:o?.trim()||e})}):null}function foo(){return In(Nf)}function PT({type:e,props:o,children:t}){let r=In(Nf),a=yU(),n=r?.row??a;return no(Us,{children:t(i_(e,o,n,r?.ownerType,r?.fields,r?.slot),r,n)})}function xhe({attrs:e,selected:o,hover:t,action:r,titleField:a,children:n}){let s=dhe(),{press:i,disabled:l}=r,d=r.label?.trim(),f=!d&&a?{id:`${s}-title`,field:a}:null;return kT("div",{...e,id:s,className:t&&!l?`${YC} ${_2}`:YC,children:[no("button",{type:"button",[R2]:"",className:l?B2:F2,"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(Hg.Provider,{value:f,children:n})]})}function poo({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 v=In(Nf),b=In(Hg),y=In(Mg);if(!r||(r.blockCount??0)<=0)return no(Us,{children:p});let k=v!==null,F=o_(o),T=u??v?.previewHover,D=r.blockCount===1?no(SO,{children:no(r,{className:xO})}):no(r,{}),P=new Set,L=(A,E)=>{if(!I)return E;let R=I(A,E);for(;P.has(R);)R=`${R}#${E}`;return P.add(R),R},C=a.map((A,E)=>{let R=i?.[E],W={row:A,index:E,ownerType:o,slot:t,item:n?.[E],nested:k,...s?{fields:s}:null,...R?{state:R}:null,...F?{linesBetween:F}:null,...T?{previewHover:T}:null},z=yv(R)?kT(Us,{children:[D,l==="under"?no("span",{"aria-hidden":"true",className:k2}):Iv(R)?kT("span",{"aria-hidden":"true",className:T2,children:[no("span",{className:P2}),no("span",{className:E2})]}):no("span",{"aria-hidden":"true",className:v2})]}):D,Z={[fhe]:`${e}:${t}`,[phe]:E,...typeof m=="function"?m(W):m},V=d?.[E],fe=O2(R,l),Ie=V?no(xhe,{attrs:{...Z,...fe},selected:R?.selected===!0,hover:l!=="under",action:V,titleField:uhe(f,A),children:z}):b?no("div",{...Z,...fe,children:no(Hg.Provider,{value:null,children:z})}):no("div",{...Z,...fe,children:z}),ae=h?h(Ie,W):Ie;return no(Nf.Provider,{value:W,children:w?no(Mg.Provider,{value:Oe=>w(W,Oe),children:ae}):y?no(Mg.Provider,{value:null,children:ae}):ae},L(W,E))});return no(Us,{children:S(C)})}var bU={name:"clickableParts",applies:(e,o,t)=>typeof t?.render=="function"&&e!==Oo&&e!==gi,draw(e,o,t){let r=e,a=()=>r.textParts??r.fields,n=r.render,s=t.inspector?.PartAnchors,i=(l,d)=>NB(a(),d,f=>n_(o,l,f));r.render=l=>{let d=BN(l),f=UM(l);return l.editor?.isEditing&&s?Wg(PT,{type:o,props:l,children:u=>Wg(s,{needles:i(l,u),styles:d,motions:f,type:o,children:n(l)})}):!Object.keys(d).length&&!Object.keys(f).length?n(l):Wg(PT,{type:o,props:l,children:u=>Wg(qM,{needles:i(l,u),styles:d,motions:f,type:o,atEdge:o===Y,children:n(l)})})}}};import{jsx as SU}from"react/jsx-runtime";var wU={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=T1(t.sectionCorners,t.sectionCornerSides,t.sectionCornersUnit),a=o(t);return r?SU(ue,{className:"sf-section-corners",style:{display:"contents",...r},children:a}):a}}},ET=["CollectionCard"],CU={name:"cardCorners",applies:(e,o,t)=>ET.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=E1(t.cardCorners,t.cardCornerSides,t.cardCornersUnit),a=o(t);return r?SU(ue,{className:"sf-card-corners",style:{display:"contents",...r},children:a}):a}}};var vU={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 kU={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 TU,jsxs as ghe}from"react/jsx-runtime";var Ihe="Flex",PU=(e,o)=>e[o]!==void 0&&e[o]!==!1&&!e.editor?.isEditing,EU={name:"headCore",applies:(e,o,t)=>typeof t?.render=="function",draw(e){let o=e.render;e.render=t=>PU(t,Xd)?TU(ue,{className:sx,children:t[Xd]==="empty"?null:o(t)}):o(t)}},_U={name:"headBox",applies:(e,o,t)=>e===Ihe&&typeof t?.render=="function",draw(e){let o=e.render;e.render=t=>PU(t,qd)?ghe(ue,{className:ix,children:[TU(lx,{}),o(t)]}):o(t)}};import{createElement as yhe}from"react";var OU={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(fa(n))return null;let s=Kc(n),i=kO(s,UA(n),{sectionClassName:Kc(n,{atSectionLine:!0}),line:r});return yhe(wO.Provider,{value:i},a(n))}}};import{jsx as Che}from"react/jsx-runtime";import{createContext as RU,createElement as AU,useContext as bhe}from"react";var LU=RU(null),She=RU(!1),Woo=LU.Provider;function whe(e,o,t){return e===void 0||e===""||o===null||o.length===0||!t.includes(e)?!0:o.includes(e)}function FU({name:e,editing:o,children:t}){let r=bhe(LU);return o||whe(e,r?.selected??null,r?.known??[])?t:AU("div",{hidden:!0,style:{display:"none"}},AU(She.Provider,{value:!0},t))}var vhe="Flex",BU={name:"showFor",applies:(e,o,t)=>e===vhe&&typeof t?.render=="function",draw(e){let o=e.render;e.render=t=>{let r=Q2(t[kl])?.name;if(r===void 0)return o(t);let a=!!t.editor?.isEditing;return Che(FU,{name:r,editing:a,children:o(t)})}}};var NU=xu.mediaFields,khe=e=>Vy(e)?e.src:e;function The(e,o){let t=o;for(let r of U(NU,e)??[])t=ZO(t,r,khe);return t}var DU={name:"mediaValues",applies:(e,o,t)=>typeof t?.render=="function"&&(U(NU,e)?.length??0)>0,draw(e,o){let t=e.render;e.render=r=>t(The(o,r))}};import{jsx as Df,Fragment as MU,jsxs as HU}from"react/jsx-runtime";var Phe="!grow-0 !shrink-0 !basis-0",Ehe=["[.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(" "),_he="flex flex-col w-full min-w-0 [&>*]:grow";function WU({anchor:e}){let o=Un(e),t=Wa(),r=du();return o?Df("span",{id:o,className:Zo(t?`sf-section-anchor ${Phe} ${Ehe}`:"sf-section-anchor",r),"aria-hidden":"true"}):null}function Ohe({anchor:e,copiesInBox:o,children:t}){let r=iu()?.columnsRow===!0,a=bO(),n=Un(e)!=="";return o?Df(MU,{children:t}):r&&!a&&n?HU(ue,{className:_he,children:[Df(WU,{anchor:e}),t]}):HU(MU,{children:[Df(WU,{anchor:e}),t]})}var $U={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=>Df(Ohe,{anchor:r.anchor,copiesInBox:Rt(o,r),children:t(r)})}};import{jsx as Ahe}from"react/jsx-runtime";var UU=Object.fromEntries(yE.map(e=>[e,"picture"])),Rhe={[Y]:"box",Ticker:"marquee",...Object.fromEntries(Tp.map(e=>[e,"cards"])),...UU},zU=(e,o)=>!ru.has(e)&&!!o&&typeof o.render=="function";function GU(e,o,t,r){e.fields={...e.fields,...t.animationTabFields(o,r)}}function jU(e,o){let t=e,r=t.render;t.render=a=>{let n=ki(a);return!n||Rt(o,a)?r(a):Ahe(Vh,{views:n,editing:!!a.editor?.isEditing,takesViewHide:!0,atEdge:o===Y,children:r(a)})}}var KU={name:"sectionAnimation",applies:(e,o,t)=>o.isSection(e)&&zU(e,t),panel:(e,o,t)=>GU(e,U(Rhe,o)??"section",t,o),draw:(e,o)=>jU(e,o)},VU={name:"blockEntrance",applies:(e,o,t)=>!o.isSection(e)&&zU(e,t),panel:(e,o,t)=>GU(e,U(UU,o)??"block",t,o),draw:(e,o)=>jU(e,o)};import{jsx as Lhe}from"react/jsx-runtime";var YU=(e,o)=>!ru.has(e)&&!!o&&typeof o.render=="function";function Fhe(e){let o=ev.filter(t=>t.block===e);return o.length===1?o[0].focus:void 0}function qU(e,o){let t=e,r=t.render,a=Fhe(o),n=e.drawsPictures===!0;t.render=s=>{let i=Sl(s);return!i||Rt(o,s)?r(s):Lhe(mx,{views:i,...a?{origins:WM(s,a)}:{},takesViewHide:!0,atEdge:o===Y,zoomInside:n?"picture":"layer",children:r(s)})}}var XU={name:"sectionScroll",applies:(e,o,t)=>o.isSection(e)&&YU(e,t),draw:(e,o)=>qU(e,o)},ZU={name:"blockScroll",applies:(e,o,t)=>!o.isSection(e)&&YU(e,t),draw:(e,o)=>qU(e,o)};import{jsx as Bhe}from"react/jsx-runtime";import{createElement as Nhe}from"react";var _T=["sectionHeightMode","sectionHeightModeTablet","sectionHeightModePhone"];function Dhe(e,o){let t=e.props??{};return _T.some(r=>t[r]==="fill")?!0:("parent"in o?o.parent:Oa(o.appState,t.id))?.type===Y}var OT={name:"sectionHeight",applies:(e,o,t)=>o.isSection(e)&&!uO.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||!_T.some(f=>f in l))return l;let d=n.get(l);if(!d){d={...l};for(let f of _T)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=>Dhe(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(Rt(o,r))return t(r);let a=yO(r);return a?Bhe(Pi,{className:a.className,style:a.style,...o===Y?{attrs:TE}:null,children:t(r)}):t(r)}}},JU={name:"sectionHeightFillRoot",applies:OT.applies,draw(e,o){let t=e.render;e.render=r=>{let a=Rt(o,r)?null:vO(IO(r),gO(r).join(" "));return Nhe(CO.Provider,{value:a},t(r))}}};import{jsx as $g}from"react/jsx-runtime";import{PIN_ATTR as QU,PIN_FRAME_ATTR as Mhe}from"efficient-shell/format";var oz=rz("sectionSticky",(e,o,t)=>o.isSection(e)&&!$L.has(e)&&!!t&&typeof t.render=="function",!0),tz=rz("cardSticky",(e,o,t)=>ET.includes(e)&&!!t&&typeof t.render=="function",!1);function rz(e,o,t){return{name:e,applies:o,panel(r,a,n){let s=_S.has(a);r.fields=Whe(r.fields??{},Ct(n.stickFields({intro:s,screens:t,above:t}),$he(s))),t&&Nr(r,{heldByANode:Ag})},draw(r,a){let n=r.render,s=_S.has(a);r.render=i=>{let l=RS(i,{atScreenTop:s,above:t});if(!l)return n(i);let d=u=>{let p=$g(cu,{children:n(i)});return $g(ue,{...u.attrs,style:u.style,children:u.attrs[QU]===""?$g("div",{[Mhe]:"",children:p}):p})},f=t?RS(i,{atScreenTop:s,track:t,above:!0}):l;return!f||f.attrs[QU]!==""?d(l):$g(Yl,{own:()=>d(f),followed:()=>d(l)})}}}}var ez=[lr,Wl],Hhe="_gStick";function Whe(e,o){let t=Object.keys(e),r=e[bl];if(!r){let S=t.findIndex(v=>ez.includes(v));return S<0?{...e,...o}:Object.fromEntries([...t.slice(0,S).map(v=>[v,e[v]]),...Object.entries(o),...t.slice(S).map(v=>[v,e[v]])])}let{[Hhe]:a,...n}=o,s=S=>S.startsWith(Ir),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(bl),u=t.findIndex((S,v)=>v>f&&ez.includes(S)),p=u<0?t.length:u,m=t.indexOf(Yh),h=m>f&&m<p?m:p,I=S=>[S,S===bl?{...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 $he(e){let o=l=>({field:l,in:[!0,!1]}),t=l=>e&&l==="stickTop"?{any:[{field:l,is:!0},km]}:{field:l,is:!0},r=l=>({field:l,is:!0}),a=l=>({all:[l,Af,{not:{field:Za,is:!0}}]}),[n,s,i]=TS;return[[["stickTopDistance"],t("stickTop")],[["stickTopDistanceTablet"],Dr(["stickTopTablet","stickTop"],o,t)],[["stickTopDistancePhone"],Dr(["stickTopPhone","stickTopTablet","stickTop"],o,t)],[[n],a(r("stickTop"))],[[s],a(Dr(["stickTopTablet","stickTop"],o,r))],[[i],a(Dr(["stickTopPhone","stickTopTablet","stickTop"],o,r))],[[Qn],zi],[[Za],zi]]}import{jsx as Uhe}from"react/jsx-runtime";var az={name:"sectionBorder",applies:(e,o,t)=>o.isSection(e)&&!!t&&typeof t.render=="function",draw(e,o){if(Uh.has(o))return;let t=e.render;e.render=r=>{let a=YL(r.sectionBorder,r.sectionBorderPhone,r.sectionBorderTablet,VL(r)),n=t(r);return a?Uhe(ue,{className:_m,style:{display:"contents",...a},children:n}):n}}};import{jsx as AT}from"react/jsx-runtime";var nz={name:"sectionTheme",applies:(e,o,t)=>o.isSection(e)&&!Y_.has(e)&&!!t&&typeof t.render=="function",panel(e,o,t){let{sectionThemeFields:r,SECTION_THEME_FOLLOW_LABEL:a}=t,n=By.has(o);e.fields={...e.fields,...n?r(Nn,a):r()}},draw(e,o){let t=By.has(o),r=e.render;e.render=a=>{let n=X_(t?{...a,sectionAccent:Nn(a.sectionAccent)}:a),s=r(a);if(!n)return s;let i=d=>AT(Pi,{className:n.className,style:d,children:s}),l=n.style;return Rt(o,a)?AT("div",{className:n.className,style:{...l,display:"contents"},children:s}):Bg(o,a)!=="content"?i(l):AT(Yl,{own:()=>i({...l,...Ui(Mo)}),followed:()=>i(l)})}}},sz={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(Nn,a)})}};import{jsx as bo}from"react/jsx-runtime";var iz=null;function RT(e){iz=e}function lz(){return iz}import{jsx as zhe}from"react/jsx-runtime";var Ghe="mx-auto w-full max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)]",cz=qa("box").frame,Mf=`${Ghe} ${cz}`,jhe=qa("site").frame;function aro(e){return e?jhe:cz}var Khe="mx-auto w-full max-w-[1280px] px-[60px]",Vhe="max-[960px]:px-6",nro=`${Khe} ${Vhe}`;function sro({contained:e,className:o="",style:t,pad:r,fillWidth:a="w-full",children:n}){return zhe(cU,{contained:e,framedClass:`${Mf} ${o}`,fillClass:`${a} ${o}`,columnClass:Mf,style:t,pad:r,children:n})}var ql="--sf-sw-site",Yhe="--sf-sw-content",qhe="--sf-bg-cap",Xhe="contents [--sf-site-width:var(--sf-sw-content)] max-view-wide:[--sf-site-width:var(--sf-sw-site)]",LT=({own:e,content:o,siteContent:t})=>e===!0&&o==="full"&&t!=="full",fz="contents view-wide:[--sf-site-width:100vw]",FT=({held:e},o,t)=>e?t:bo(ue,{className:o,children:t}),Zhe=`contents view-wide:[--sf-site-width:100vw] ${pW} view-wide:[--sf-site-gutter:var(--intro-edge)]`,BT=(e,o,t)=>o==="content"?`min(${Me(e,t)},var(${ql}))`:Me(e,t);function Hf({content:e,contentMax:o,contentMaxUnit:t},r){return e==="full"?r!=="content"?Qc:null:o===null?null:BT(o,r,t)}function Wf(e,o){return o===null?e:bo(ue,{className:"contents",style:{[ql]:Mo},children:bo(ue,{className:Xhe,style:{[Yhe]:o},children:e})})}var Jhe="--sf-content-cap",Qhe="contents max-view-wide:[--sf-content-cap:none]";function exe({content:e,contentMax:o,contentMaxUnit:t},r){return e==="full"?null:o!==null?BT(o,r,t):r==="content"?null:`var(${ql})`}function oxe(e,o){return o===null?e:bo(ue,{className:"contents",style:{[ql]:Mo},children:bo(ue,{className:Qhe,style:{[Jhe]:o},children:e})})}var pz=`var(${ql},${Mo})`,yn=(e,o,t="")=>e==="content"?bo(ue,{className:t||void 0,style:Ui(Mo),children:bo(wT,{ground:pz,children:o})}):o;function uz(e,o,t,r,a){if(LT(t))return yn(r,FT(t,fz,bo(ST,{children:e({...o,contained:!0})})),a);if(t.content==="full")return yn(r,e({...o,contained:!1}),a);let n=Hf(t,r);return r==="content"&&n===null&&!t.own?e({...o,contained:!0}):yn(r,Wf(bo(ST,{children:e({...o,contained:!0})}),n),a)}function txe(e,o,t,r,a){if(t==="hero"){let i=Wf(e(o),Hf(r,r.band));return r.band==="full"?bo(ue,{style:{[bm]:"none",[hS]:"initial",[xS]:"initial"},children:i}):r.band==="content"?bo(ue,{style:Sm(!0),children:i}):i}let n=r.band??"full",s=Ha(o,{atSectionLine:!a});if(t==="rawMarkup"){if(r.content==="full")return yn(n,e(o),s);let i=r.contentMax===null?Mo:BT(r.contentMax,n,r.contentMaxUnit);return bo(ue,{className:"contents",style:{[ql]:Mo},children:yn(n,bo(ue,{className:s||void 0,style:Ui(i),children:e(o)}),s)})}if(t==="scrollOver"){let i=r.content==="full",l=LT(r)?FT(r,Zhe,e({...o,fullWidth:!1})):Wf(e({...o,fullWidth:i}),i?null:Hf(r,n));return n==="content"?bo(ue,{className:"contents",style:{[qhe]:Mo},children:l}):l}switch(t){case"both":return yn(n,oxe(e(o),exe(r,n)),s);case"contained":return uz(e,o,r,n,s);case"contentColumn":case"contentFull":case"productGrid":{let i=LT(r),l=r.content==="full"&&!i?"full":"page",d=i?FT(r,fz,e({...o,widthMode:l})):Wf(e({...o,widthMode:l}),r.content==="full"?null:Hf(r,n));return t==="productGrid"&&!r.own?n==="content"?bo(ue,{className:s?`${Mf} ${s}`:Mf,children:d}):d:yn(n,d,s)}default:return yn(n,Wf(e(o),Hf(r,n)),s)}}function dz(e,o,t,r,a){let n=a===Y?"edge":"by-box",s=i=>txe(e,o,t,r,i);return n==="edge"?s(!0):Ha(o)===Ha(o,{atSectionLine:!0})?s(!1):bo(su,{line:n,draw:s})}function rxe(e,o){let t=U(Yi,o);if(!t)return;let r=e.render;e.render=a=>{let n=Dm(a),s={band:n.background,content:n.content??"content",contentMax:null},i=()=>t==="rawMarkup"?r(a):bo(lU,{draw:h=>h?.background==="content"?bo(wT,{ground:pz,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=dz(r,a,t,I,o);if(!gn(o))return w;let S=Lf(a),v=S===void 0?I.content:S?"content":"full";return v===I.content?w:bo(aU,{atTop:w,nested:uz(r,a,{...I,content:v,own:!1},I.band??"full",Ha(a))})},d=Rf(o,a);if(!mF(d))return i();let f=t==="rawMarkup",u=Bg(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(Yl,{own:()=>bo(iU,{value:{background:m.band,content:m.content},children:dz(r,a,t,m,o)}),followed:i})}}var axe={all:[Af,{not:{context:"runsEdgeToEdge",is:!0}}]},mz={name:"sectionWidth",applies:(e,o,t)=>Nm(e)&&!!t&&typeof t.render=="function",panel(e,o,t){let r=t.sectionOwnWidthFields({drawsFullOnItsOwn:U(Yi,o)==="rawMarkup"}),a=gn(o)?t.boxGutterFields():{},n={...e.fields,...a,...r},s=gn(o)?gz(o,e,n,[$s]):n;Nr(e,{heldByANode:Ag}),gn(o)&&Nr(e,{runsEdgeToEdge:(i,l)=>Fg(jc(i.props??{},c_(l.appState,i.props?.id)?.inCopy!==!1))}),e.fields=dt(s,[Be.background,Be.content],gn(o)?axe:Af)},draw(e,o){rxe(e,o)}};function nxe(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 sxe=new Set(["Heading","Text","ImageBlock","ButtonBlock"]),hz={name:"containedWidth",applies:(e,o,t)=>sxe.has(e)&&!!t&&typeof t.render=="function",panel(e,o,t){let r=t.widthField;e.fields=gz(o,e,{...e.fields,...r("page")});let a=e.resolveFields;e.resolveFields=(n,s)=>{let i=a?a(n,s):s.fields,l=Bm(n?.props??{},"page"),d=f=>nxe(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}=Bm(t,"page");return o({...t,contained:r!=="full"})}}},ixe={not:{context:"inHeroGroupRow",is:!0}},xz={name:"buttonAlignInRow",applies:e=>e==="ButtonBlock",panel(e){let o=e;o.fields=dt(o.fields??{},["align"],ixe),Nr(o,{inHeroGroupRow:(t,r)=>{let a=Oa(r.appState,t.props?.id);return!!a&&a.type==="HeroGroup"&&jr("HeroGroup",a.props?.direction)==="row"}})}};function lxe(e){return Object.values(e).some(o=>!!o&&typeof o=="object"&&o.type==="slot")}var cxe={any:[]},dxe={all:[{not:{context:"outsideBox",is:!0}},{not:{context:"insideSiteGutter",is:!0}}]},fxe={not:{context:"widthCappedByParent",is:!0}};function gz(e,o,t,r=["widthMode"]){if(e==="ButtonBlock")return dt(t,["_gWidth",...r],cxe);if(lxe(t)){let a=(n,s)=>Q6(s.appState?.data?.content,n.props?.id,Ng(lz()));return Nr(o,{outsideBox:(n,s)=>a(n,s)?.inBox!==!0,insideSiteGutter:(n,s)=>a(n,s)?.insideGutter}),dt(t,r,dxe)}return Nr(o,{widthCappedByParent:(a,n)=>"parent"in n?VE(n.parent):H6({props:a.props??{}},n)}),dt(t,r,fxe)}var pxe=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"]),Iz={name:"sectionGroups",applies:(e,o)=>o.isSection(e)&&(pxe.has(e)||o.isHostBlock(e)),panel(e,o,t){let r=t.assignSectionGroups;e?.fields&&(e.fields=r(e.fields,o))}},uxe=new Set(["HeroSlide","HeroGroup"]),yz={name:"blockGroups",applies:(e,o,t)=>uxe.has(e)||!o.isSection(e)&&eg in(t?.fields??{}),panel(e,o,t){let r=t.assignSectionGroups;e?.fields&&(e.fields=r(e.fields,o))}};import{jsx as NT}from"react/jsx-runtime";var mxe=new Set(["Flex","Grid"]),bz=e=>Object.entries(e.fields??{}).filter(([,o])=>o?.type==="slot").map(([o])=>o),hxe=(e,o)=>e.fields?.[o]?.ownPictures===!0,xxe=["blockCount","blockIds"],gxe=new WeakMap,Ixe=new WeakMap;function yxe(e,o){let t=o?Ixe:gxe,r=t.get(e);if(r)return r;let a=e,n=s=>NT(nU,{children:NT(cu,{ownPictures:o,children:NT(a,{...s})})});Object.assign(n,e);for(let s of xxe)Object.defineProperty(n,s,{get:()=>e[s],configurable:!0,enumerable:!0});return t.set(e,n),n}var Sz={name:"slotsStartAfresh",applies:(e,o,t)=>!mxe.has(e)&&typeof t?.render=="function"&&bz(t).length>0,draw(e){let o=bz(e),t=e.render;e.render=r=>{let a={...r};for(let n of o){let s=r[n];typeof s=="function"&&(a[n]=yxe(s,hxe(e,n)))}return t(a)}}};var bxe=new Set(["Form","Stats","Logos"]);function wz(){return[...bxe]}function DT(e,o,t=[]){let r=new Set(e),a=W0.filter(d=>r.has(d)),n=a.filter(d=>d!=="Header"&&d!=="Footer"&&!Cu.includes(d)),s=new Set([...o,...Sp,...wz()]),i=a.filter(d=>!s.has(d)),l=new Set([...a,...t]);return{isSection:d=>l.has(d)&&!Wp(d),isHostBlock:()=>!1,sectionGroupAllow:n,contentSectionKeys:i}}var Sxe=[Sz,DU,EU,B6,N6,IM,wU,az,CU,yM,VU,ZU,M6,mz,hz,xz,OT,$U,nz,KU,XU,oz,tz,fU,sz,X6,Iz,yz,kU,vU,bU,_U,BU,JU,OU,F6,uU];function Cz(e,o,t){let r=o;for(let a of Sxe)a.applies(e,t,r)&&(t.inspector&&a.panel?.(r,e,t.inspector,t),a.draw?.(r,e,t));return o}import{jsx as MT}from"react/jsx-runtime";import{ClockIcon as wxe,DurationIcon as Cxe}from"efficient-easel/icons";import{MOTION_TIMING as vz}from"efficient-shell/format";import{useSelectedHost as vxe}from"efficient-easel/easel";function Xl(e){let{min:o,max:t,step:r,default:a}=vz[e].duration;return Ho("Duration",MT(Cxe,{}),o,t,r,a,"s")}function Zl(e){let{min:o,max:t,step:r,default:a}=vz[e].delay;return Ho("Delay",MT(wxe,{}),o,t,r,a,"s")}function Jl(e,o){let t=e.render,r=a=>{let n=vxe();return t({...a,value:o(a.value,n?.values)})};return{...e,render:a=>MT(r,{...a})}}function Ug({readsSpeed:e}){return Jl(Xl("loop"),(o,t)=>Qx({loopDuration:o,speed:e?t?.speed:void 0}))}function zg(){return Jl(Zl("loop"),e=>z5({loopDelay:e}))}import{jsx as Lo}from"react/jsx-runtime";import{DirectionDownIcon as kxe,DirectionIcon as Txe,DirectionLeftIcon as Pxe,DirectionRightIcon as Exe,DirectionUpIcon as _xe,EntranceBounceIcon as Oxe,EntranceFadeIcon as Axe,EntranceFlipIcon as Rxe,EntranceGlideIcon as Lxe,EntranceRevealIcon as Fxe,EntranceRiseIcon as Bxe,EntranceScaleIcon as Nxe,EntranceSpinIcon as Dxe,NoSymbolIcon as Mxe}from"efficient-easel/icons";import{NoControlMark as Hxe,noControlField as Wxe}from"efficient-easel/screen/lib/document/panel-no-control-mark";import{customize as $xe,group as Uxe}from"efficient-easel/screen/lib/document/box-fields";import{ENTRANCE_FROM as zxe,ENTRANCE_FROM_DEFAULT as Tz,ENTRANCE_KINDS as Pz,ENTRANCE_KINDS_WITH_FROM as Gxe,entranceAttrs as jxe,playEntrance as Kxe,readEntrance as Vxe}from"efficient-shell/format";var Yxe={none:"None",fade:"Fade",rise:"Rise",scale:"Scale",glide:"Glide",bounce:"Bounce",flip:"Flip",reveal:"Reveal",spin:"Spin"},qxe={top:"Top",bottom:"Bottom",left:"Left",right:"Right"},Xxe={top:()=>Lo(kxe,{}),bottom:()=>Lo(_xe,{}),left:()=>Lo(Exe,{}),right:()=>Lo(Pxe,{})},Ez="Entrance",WT=Pz.filter(e=>e!=="none"),_z=e=>({any:[{field:vt.kind,in:e},{all:[{field:vt.kind,set:!1},{field:Pc,in:e}]}]}),kz=(e,o)=>Dr(ut.slice(0,ut.indexOf(e)+1).reverse().map(t=>ke(vt.kind,t)),t=>({field:t,set:!0}),t=>t===vt.kind?_z(o):{field:t,in:o}),Zxe={any:[_z(WT),...ut.slice(1).map(e=>({field:ke(vt.kind,e),in:WT}))]},Jxe=ut.flatMap(e=>[[[ke(vt.from,e)],kz(e,Gxe)],[[ke(vt.duration,e),ke(vt.delay,e)],kz(e,WT)]]),Qxe={none:()=>Lo(Mxe,{}),fade:()=>Lo(Axe,{}),rise:()=>Lo(Bxe,{}),scale:()=>Lo(Nxe,{}),glide:()=>Lo(Lxe,{}),bounce:()=>Lo(Oxe,{}),flip:()=>Lo(Rxe,{}),reveal:()=>Lo(Fxe,{}),spin:()=>Lo(Dxe,{})},Oz="data-entrance-tile";function ege({kind:e}){let{attrs:o}=jxe(Vxe(e,Tz));return Lo("span",{className:"sf-entrance-stage",[Oz]:e,children:Lo("i",{...o,children:Qxe[e]()})})}var oge=(e,o)=>{let t=e.querySelector(`[${Oz}="${o}"] > i`);t&&Kxe(t)},tge="Effect",rge=()=>am(vt.kind,{label:Ez,tileWord:tge,values:Pz,fallback:"none",word:e=>Yxe[e],picture:e=>Lo(ege,{kind:e}),read:(e,o)=>Ec(e,o).kind,preview:oge}),HT=(e,o)=>rm(vt[e],o,(t,r)=>Ec(t,r)[e]),age=zxe.map(e=>({label:qxe[e],value:e,picture:Xxe[e]()}));function _r(){let e={[eg]:Uxe(Ez,{dot:Zxe}),...rge(),[Pc]:Wxe({type:"custom",render:()=>Lo(Hxe,{})},"always"),_cEntrance:$xe(),...HT("from",qi("From",Lo(Txe,{}),age,Tz)),...HT("duration",Xl("entrance")),...HT("delay",Zl("entrance"))};return Ct(e,Jxe)}import{jsx as rr}from"react/jsx-runtime";import{EntranceRevealIcon as nge,NoSymbolIcon as sge,PercentIcon as Az,ScrollFadeInIcon as ige,ScrollFadeOutIcon as lge,ScrollMoveDownIcon as cge,ScrollMoveUpIcon as dge,ScrollParallaxIcon as fge,ScrollZoomInIcon as pge,ScrollZoomOutIcon as uge,ZoomInIcon as mge}from"efficient-easel/icons";import{customize as hge,group as xge}from"efficient-easel/screen/lib/document/box-fields";import{SCROLL_EFFECTS as Lz,SCROLL_EFFECTS_WITH_ZOOM as gge,SCROLL_END as Ige,SCROLL_START as yge,SCROLL_ZOOM as bge}from"efficient-shell/format";var Fz="Scroll",Sge={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"},wge={none:()=>rr(sge,{}),"zoom-in":()=>rr(pge,{}),"zoom-out":()=>rr(uge,{}),"fade-in":()=>rr(ige,{}),"fade-out":()=>rr(lge,{}),"move-up":()=>rr(dge,{}),"move-down":()=>rr(cge,{}),reveal:()=>rr(nge,{}),parallax:()=>rr(fge,{})},Cge="Effect",Bz=Lz.filter(e=>e!=="none"),Rz=(e,o)=>Dr(ut.slice(0,ut.indexOf(e)+1).reverse().map(t=>ke($o.effect,t)),t=>({field:t,set:!0}),t=>({field:t,in:o})),vge={any:ut.map(e=>({field:ke($o.effect,e),in:Bz}))},kge=ut.flatMap(e=>[[[ke($o.zoom,e)],Rz(e,gge)],[[ke($o.start,e),ke($o.end,e)],Rz(e,Bz)]]),Tge=()=>am($o.effect,{label:Fz,tileWord:Cge,values:Lz,fallback:"none",word:e=>Sge[e],picture:e=>wge[e](),read:(e,o)=>ka(e,o).effect}),$T=(e,o,t,r,a)=>rm(e,Ho(t,r,a.min,a.max,a.step,a.default,"%"),(n,s)=>ka(n,s)[o]);function zs(){let e={[bl]:xge(Fz,{dot:vge}),...Tge(),[Yh]:hge(),...$T($o.zoom,"zoom","Zoom",rr(mge,{}),bge),...$T($o.start,"start","Start",rr(Az,{}),yge),...$T($o.end,"end","End",rr(Az,{}),Ige)};return Ct(e,kge)}import{jsx as it}from"react/jsx-runtime";import{AccentIcon as Pge,ContrastIcon as Ege,EyeIcon as _ge,ExpandIcon as Oge,FinishIcon as Age,ImagesIcon as Rge,NoSymbolIcon as Dz,HoverLiftIcon as Lge,HoverNextImageIcon as Fge,HoverRotateIcon as Bge,HoverZoomIcon as Mz,OpacityIcon as Nge}from"efficient-easel/icons";import{customize as Dge,describedAs as Hz,group as Mge}from"efficient-easel/screen/lib/document/box-fields";import{effectTiles as Wz}from"efficient-easel/screen/lib/document/effect-tiles";import{deviceField as Go}from"efficient-easel/screen/lib/document/device-fields";import{NoControlMark as Hge,noControlField as Wge}from"efficient-easel/screen/lib/document/panel-no-control-mark";var Gg=e=>Go("desktop",Mge("Hover",{dot:e})),$z=()=>Go("desktop",Dge()),$ge="What this does when a shopper points at it, or taps it on a phone.",Uge="What this picture does when a shopper points at it. Black and white shows it in grey until then. A phone shows its colour.",zge="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.",Gge="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.",jge="When this shows. On card hover shows it while a shopper points at the card. A phone always shows it.",Kge="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.",Vge="Which of the product's pictures the card shows.",Yge="Same finish shows the photos of the finish the card shows, else the first group.",qge="Whole card hides the words under the photo. Picture keeps the words and swatches in view.",Xge={none:()=>it(Dz,{}),nextImage:()=>it(Fge,{}),rotate:()=>it(Bge,{}),zoom:()=>it(Mz,{}),lift:()=>it(Lge,{}),mono:()=>it(Ege,{})};function UT(e,o){let t=Wz({label:c("Hover effect"),options:e.map(r=>({value:r,label:c(di[r]),picture:Xge[r]()})),fallback:o});return Hz(t,{type:"select",label:"Hover effect",options:e.map(r=>({value:r,label:di[r]}))})}function Uz(){return{[lr]:Gg({field:Nt,in:ey.filter(e=>e!=="none")}),[Nt]:Go("desktop",{...UT(ey,"none"),description:$ge})}}function zz(e){let o=gE(e),t=Ep(),r=SF(lE);return{[lr]:Gg({any:[o,t]}),[uo.kind]:Go("desktop",{...Jl(UT(nE,e),(a,n)=>hE(n??{},e)),description:Kge}),...zT(t),[sE]:Wge({type:"custom",render:()=>it(Hge,{})},"always"),_cHover:$z(),[uo.angle]:Go("desktop",io(Jl(r,a=>xE(a)),o)),[uo.duration]:Go("desktop",io(Xl("hover"),o)),[uo.delay]:Go("desktop",io(Zl("hover"),o))}}function zT(e){let o=Et("Type",it(Rge,{}),cE.map(a=>({value:a,label:dE[a]})),Pp.kind),t=qi("Group",it(Age,{}),fE.map(a=>({value:a,label:pE[a]})),Pp.group),r=qi("Covers",it(Oge,{}),uE.map(a=>({value:a,label:mE[a]})),Pp.cover);return{[uo.mediaKind]:Go("desktop",io({...o,description:Vge},e)),[uo.mediaGroup]:Go("desktop",io({...t,description:Yge},e)),[uo.cover]:Go("desktop",io({...r,description:qge},e))}}function GT(e,o="",t=ny.includes(o)){let r=sy(e),a=vE(e);return{[lr]:Gg(r),[uo.kind]:jT(IE,e,Uge),...ny.includes(o)?zT(Ep()):{},_cHover:$z(),...t?Gz():{},[uo.duration]:Go("desktop",io(Xl("hover"),a)),[uo.delay]:Go("desktop",io(Zl("hover"),a))}}function Gz(e=!1){let o=a=>e?a:io(a,CE()),t=Ho("Zoom",it(Mz,{}),fi.min,fi.max,fi.step,fi.min,fi.unit),r=Ho("Darken on hover",it(Nge,{}),Ka.min,Ka.max,Ka.step,Ka.fallback,Ka.unit);return{[ty.zoom]:Go("desktop",o(t)),[ty.darken]:Go("desktop",o(r))}}function jT(e,o,t){let r=Go("desktop",{...Jl(UT(e,o),a=>SE({[Nt]:a},o,e)),description:t});return Object.assign(r,{[jz]:o})}var jz="sfPictureResting",Nz=new WeakMap;function rno(e,o,t){let r=e[uo.kind],a=r?.[jz];if(!r||!a)return e;let n=o.props?.[Nt]==="nextImage",s=n?null:Gp(t.appState,o.props?.id);if(!n&&!Tp.includes(String(s?.type??"")))return e;let i=Nz.get(e);return i||(i={...e,[uo.kind]:jT(oy,a,zge)},Nz.set(e,i)),i}var Zge="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.",Jge={none:()=>it(Dz,{}),[ZI]:()=>it(Pge,{})},ano=Go("desktop",{...Hz(Wz({label:c("Hover effect"),options:JI.map(e=>({value:e,label:c(QI[e]),picture:Jge[e]()})),fallback:"none"}),{type:"select",label:"Hover effect",options:JI.map(e=>({value:e,label:QI[e]}))}),description:Zge}),Qge=Go("desktop",{...qi("Show",it(_ge,{}),[{value:ay,label:"Always"},{value:ry,label:"On card hover"}],ay),description:jge});function Kz(){let e={any:[sy("none"),{field:Nt,is:ZI},{field:_n,is:ry}]},{[lr]:o,[uo.kind]:t,...r}=GT("none","",!0);return{[lr]:Gg(e),[uo.kind]:t,[_n]:Qge,...zT(Ep()),...r,...Gz(!0)}}var nno=jT(oy,"none",Gge);import{jsx as $f}from"react/jsx-runtime";import{isNodeList as rIe}from"efficient-easel/data";import{useEasel as aIe}from"efficient-easel/easel";import{hiddenInView as nIe,hiddenKeyOf as VT,hidePatch as sIe,slotChildName as iIe,slotChildRowName as lIe}from"efficient-easel/draw";var jg=null;function KT(e){jg=e}function Vz(){return!!(jg&&jg.state().lockHolder)}function Gs(){return jg!==null}var eIe=new Set(["BookingBox","SubmitBox"]);function oIe(e){return typeof e=="string"&&eIe.has(e)}var tIe=g1(oIe,Vz);function Kg(e,o){return tIe(e)||dS(o)}var Vg=(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 cIe}from"efficient-easel/screen/lib/document/device-fields";import{NoControlMark as dIe}from"efficient-easel/screen/lib/document/panel-no-control-mark";var Yz="notCardOfTemplate",qz={not:{context:Yz,is:!0}},YT={any:[Ap,qz]},Tno={[Yz]:(e,o)=>{let t=Py(o.appState,e.props?.id);return t===void 0?void 0:t===null}};function Yg(e){let o=e.props?.content;return rIe(o)?o:[]}var Xg=(e,o)=>nIe(e.props??{},o),fIe=(e,o)=>e.props?.[VT(o)]!==void 0;function Xz(e,o=()=>!1,t="desktop"){return Yg(e).flatMap(r=>typeof r?.props?.id!="string"?[]:Yg(r).length&&!Xg(r,t)?Xz(r,o,t):o(r)?[]:[r])}function pIe(e,o,t,r="desktop"){let a=Xz(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:!Xg(i,r)}})}function qg(e,o,t){let r=a=>t==="desktop"?Xg(a,t):fIe(a,t);return Yg(e).flatMap(a=>r(a)?o(a)?[]:[a,...qg(a,o,t)]:qg(a,o,t))}function uIe(e,o){let t={...e};for(let[r,a]of Object.entries(o))a===void 0||r===VT("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 qT(e,o,t){let r=Yg(e),a=!1,n=r.map(s=>{if(a)return s;let i=s;if(s?.props?.id===o){let l=uIe(s.props,t(s.props));l!==s.props&&(i={...s,props:l})}else i=qT(s,o,t);return a=i!==s,i});return a?{...e,props:{...e.props,content:n}}:e}function Zz(e,o,t,r="desktop"){return qT(e,o,a=>r==="desktop"&&Xg({props:a},r)===!t?{}:sIe(a,r,!t))}function mIe(e,o,t){return t==="desktop"?Zz(e,o,!0,t):qT(e,o,()=>({[VT(t)]:void 0}))}function hIe(e,o,t,r,a,n){return iIe(e).trim()?t(e):r_({ownerType:o,owner:r,fields:a,slot:n},ft(e.props))?.label??t(e)}var xIe="This page is read-only.";function gIe({card:e,ownerType:o,owner:t,fields:r,slot:a,labelOf:n,write:s,readOnly:i,view:l="desktop"}){let d=p=>lIe(p,n,aa,void 0,Vg),f=p=>Kg(p.type,p),u=pIe(e,p=>hIe(p,o,d,t,r,a),f,l);return u.length?$f(nl,{parts:u,changed:qg(e,f,l).length>0,shown:p=>u.find(m=>m.id===p)?.shown??!0,disabledReason:i?xIe:void 0,onPress:(p,m)=>s(h=>Zz(h,p,m,l)),onReset:()=>s(p=>qg(p,f,l).reduce((m,h)=>mIe(m,String(h.props.id),l),p))}):$f(dIe,{})}function IIe(){try{let e=aIe(a=>a),o=e.config.components??{},t=e.selectedItem;if(!t)return null;let r=Py(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:d_(e.appState,r),slot:l_(e.appState,t.props?.id)??void 0}}catch{return null}}function yIe({readOnly:e,view:o}){let t=IIe(),r=pr();return t?$f(gIe,{...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}})}}):$f(nl,{parts:[],changed:!1,shown:()=>!0,onPress:()=>{},onReset:()=>{}})}function Pno(e){return io(cIe(e,{type:"custom",render:({readOnly:o})=>$f(yIe,{readOnly:o,view:e})}),qz)}import{customize as _Ie}from"efficient-easel/screen/lib/document/box-fields";import{jsx as XT}from"react/jsx-runtime";import{DirectionIcon as bIe,LoopMarqueeIcon as SIe,NoSymbolIcon as wIe}from"efficient-easel/icons";import{customize as CIe,describedAs as vIe,group as kIe}from"efficient-easel/screen/lib/document/box-fields";import{effectTiles as TIe}from"efficient-easel/screen/lib/document/effect-tiles";function ZT(){return IB("Direction",dk,wf,"A marquee cannot run diagonally, so the corners are not answers.",XT(bIe,{}),gB)}var JT=e=>kIe("Loop",e?{dot:e}:void 0),PIe={none:()=>XT(wIe,{}),scroll:()=>XT(SIe,{})};function EIe(){let e=TIe({label:c("Loop"),options:Jx.map(({value:o,label:t})=>({value:o,label:c(t),picture:PIe[o]()})),fallback:ck});return vIe(e,{type:"select",label:"Loop",options:Jx.map(({value:o,label:t})=>({value:o,label:t}))})}function Jz(){return{[Wl]:JT(Sf),loop:EIe(),_cLoop:CIe(),scrollDirection:io(ZT(),Sf),loopDuration:io(Ug({readsSpeed:!1}),Sf),loopDelay:io(zg(),Sf)}}var Qz={field:_n,set:!0};function OIe(){let e=Kz(),o=[lr,Nt],t=dt(e,Object.keys(e).filter(n=>!o.includes(n)&&n!==_n),Ap),r=dt(t,[_n],Qz),a=dt(r,[Nt],YT);return dt(a,[lr],{any:[YT,Qz]})}function Zg(e,o=""){switch(e){case"section":case"block":return{..._r(),...zs()};case"box":return{..._r(),...zs(),...Jz(),...OIe()};case"picture":return{..._r(),...zs(),...GT(bE(o),o)};case"textPart":return{..._r(),...zs(),...Uz()};case"cards":return{..._r(),...zs(),...zz(iE(o))};case"marquee":return{..._r(),...zs(),[Wl]:JT(),_cLoop:_Ie(),scrollDirection:ZT(),loopDuration:Ug({readsSpeed:!0}),loopDelay:zg()}}}import{blockSizeFieldSet as pye}from"efficient-easel/screen/lib/document/block-size-fields";import{VIEW_KEY_ACCESS as uye}from"efficient-easel/screen/lib/document/box-fields";import{group as AIe}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as RIe,deviceMetaOf as tG}from"efficient-easel/screen/lib/document/device-fields";import{DESIGN_GROUPS as eP,SETTINGS_BUCKETS as LIe}from"efficient-easel/panel";import{BUCKET_KEY as jo,DESIGN_GROUP_KEY as Ql}from"efficient-easel/screen/lib/document/field-buckets";var Uf=LIe;var FIe="Editor only \u2014 not shown live",oP={"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",Anchor:"Anchor",Arrangement:"Layout","Auto-slide":"Layout",Bar:"Layout","Cell size":"Size",Behavior:"Layout",Schedule:"Layout",Controls:"Layout",Diagram:"Layout",[FIe]:"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"},rG={"AlloyWheelsListing._gCards":"Design","Flex._gLink":"Link","LongRead._gLink":"Link"},aG={"Text._gSpacing":"Size","Heading._gSpacing":"Size"};function eG(e,o,t){let r=`${e}.${o}`;return U(aG,r)??U(rG,r)??U(oP,t)}function BIe(e){return e==="Animation"?[jo.Animation]:[jo.Design,Ql[e]]}function Jg(...e){let o=[];for(let t of e)for(let r of Object.values(t)){let a=tG(r),n=br(a?a.inner:r),s=n?U(oP,n.label):void 0;if(s)for(let i of BIe(s))o.includes(i)||o.push(i)}return o}var nso=[...Jg(Xi({tablet:!0,siteSide:!0}),tl("full"),rl(),al(),xd()),...Object.keys(Xi({tablet:!0,siteSide:!0})),...Object.keys(tl("full")),...Object.keys(rl()),...Object.keys(al()),...Object.keys(xd())],sso=[...Jg(Qi()),...Object.keys(Qi())],iso=[...Jg(ol()),...Object.keys(ol())],lso=[...Jg(_r()),...Object.keys(_r())],cso=Object.keys(bB()),dso=Object.keys(SB()),NIe={"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)"},nG={Content:["Content"],Size:["Size"],Design:["Design","Style"],Layout:["Layout"],Position:["Position"],Link:["Link"],Anchor:["Anchor"],Animation:["Animation"]},QT={_gAnchor:"repeated the Anchor group heading above it (two tabs, 11.0.0)"};{let e={...Xi({tablet:!0,siteSide:!0}),...tl("full"),...rl(),...al(),...Qi(),...ol(),..._r()};for(let o of Object.keys(QT)){let t=br(e[o]),r=t?U(oP,t.label):void 0;if(!t||t.level!==2||!r||!nG[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 DIe=new Set(["_sContent","_sStyle","_sLayout","_sMedia"]),MIe=new Map([[jo.Design,"Content"],[jo.Animation,"Animation"],...eP.map(e=>[Ql[e],e])]);function HIe(e){let o=`${e}.`;return Object.keys(NIe).filter(t=>t.startsWith(o)).map(t=>t.slice(o.length))}function WIe(e,o){let t=tG(e),r=AIe(o);return t?RIe(t.tier,r):r}function $Ie(e,o){let t=br(o);return t?e==="Content"||e==="Animation"?tB(o,t.label):rB(o):o}function oG(e){return e==="Design"?eP:["Animation"]}function Qg(e,o){let t=[],r=new Set(HIe(o)),a=new Set,n=!1,s=null;for(let[p,m]of Object.entries(e)){let h=br(m);if(DIe.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=MIe.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===jo.Design||p===jo.Animation)&&(n=!0),t.push(s={place:I,entries:[],adopted:!0});continue}if(!h){s||t.push(s={place:"Content",entries:[]}),s.entries.push([p,m]);continue}if(r.has(p)||He(QT,p)){let S=eG(o,p,h.label);if(h.level!==2||!S||!nG[S].includes(h.label))throw new Error(`${o}.${p}: ${r.has(p)?"RETIRED":"INJECTED_RETIRED"} (lib/document/field-groups.ts) lists this sub-heading as one whose name repeats the place it sits in, but it is a level-${h.level} "${h.label}" header in the ${S??"(unclassified)"} place. Only a level-2 header whose label is one of its place's words (PLACE_WORDS) may be retired \u2014 anything else is a heading a merchant reads for its own sake. Fix the row or drop it.`);r.has(p)&&a.add(p),t.push(s={place:S,entries:[],uniform:He(QT,p)});continue}let w=eG(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 ${[...eP,"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:WIe(m,h.label)]]})}let i=new Set(Object.entries(e).filter(([,p])=>br(p)).map(([p])=>p));for(let[p,m]of[["BLOCK_KEY_GROUP",aG],["KEY_GROUP",rG]]){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=Uf.filter(p=>oG(p).some(m=>d.has(m))),u={};for(let p of f){u[jo[p]]=Ym(p,p===f[0]?f:null);for(let m of oG(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),v=h[0]?.adopted?1:0;h.splice(0,h.length,...S.slice(0,v),...w,...S.slice(v))}p==="Design"&&(u[Ql[m]]=hw(m));for(let S of h)for(let[v,b]of S.entries)u[v]=$Ie(m,b)}}return u}function sG(e){return jo.Design in e?e:{[jo.Design]:Ym("Design",null),[Ql.Content]:hw("Content"),...e}}function iG(e){return Uf.some(o=>jo[o]in e)}function eI(e){let o=Uf.filter(r=>jo[r]in e);if(o.length===0)return e;let t={...e};for(let r of o)t[jo[r]]=Ym(r,r===o[0]?o:null);return t}import{jsx as oI}from"react/jsx-runtime";import{WidthIcon as UIe}from"efficient-easel/icons";import{SettingsField as zIe,SettingsSwitch as GIe}from"efficient-easel/panel";import{group as jIe,iconOf as KIe,sharedStyleKinds as VIe}from"efficient-easel/screen/lib/document/box-fields";var YIe="Gutter";function qIe({value:e,onChange:o,labelId:t}){let r=Ng(Oc()),a=Lf({[$s]:e})??r,n=s=>o(s?r?void 0:IT:gT);return oI(zIe,{label:c(YIe),labelId:t,icon:KIe(oI(UIe,{})),action:oI(GIe,{checked:a,onChange:n,ariaLabelledBy:t})})}function lG(){return VIe({_gWidth:jIe(Qa),[$s]:{type:"custom",render:({value:e,onChange:o,id:t,name:r})=>oI(qIe,{value:e,onChange:o,labelId:`${t??r??$s}-label`})}})}import{jsx as rP}from"react/jsx-runtime";import{group as XIe,sharedStyleKinds as dG}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as ZIe}from"efficient-easel/screen/lib/document/device-fields";var JIe="Content cannot be wider than the background.",tP=e=>c(e==="content"?"Content width":"Full width");function fG(e){let{siteWidth:o,sectionBackgroundWidth:t,sectionContentWidth:r,themeFromDocument:a}=ce(),n=q(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 QIe={read:rs},eye={read:rs,drawsFullOnItsOwn:!0},oye={read:uF,clearOnContent:{fullWidth:void 0}};function tye({source:e}){let o=e.read(So()),t=pr(),r=fG(e);return rP(hh,{value:o.background??r.background,changed:o.background!==null,detail:tP(r.background),onChange:a=>t(hF(a)),onReset:()=>t(VS("background"))})}function rye({source:e}){let o=e.read(So()),t=pr(),r=l=>t({...l,...e.clearOnContent}),a=fG(e),n=(o.background??a.background)==="content",s=el({row:KS,label:Jw,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 rP(xh,{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"?tP("full"):`${tP("content")} ${a.px}px`,fullClosed:n,hint:n?JIe:void 0,onMode:l=>r(xF(l)),onPx:l=>r({...gF(l),...s?.unitPatch(!1)}),...s?{length:s}:{},onReset:()=>r(VS("content"))})}var cG=(e,o)=>ZIe("desktop",{type:"custom",render:()=>rP(e,{source:o})}),pG=e=>({[Be.background]:cG(tye,e),[Be.content]:cG(rye,e),[Be.contentMax]:hd(),...as(KS,Be.content)});function uG(e){let o=e?.drawsFullOnItsOwn?eye:QIe;return dG({_gWidth:XIe(Qa),...pG(o)})}function Rso(){return dG({...pG(oye),fullWidth:hd()})}import{deviceMetaOf as hG}from"efficient-easel/screen/lib/document/device-fields";import{noControlMetaOf as aye}from"efficient-easel/screen/lib/document/panel-no-control-mark";function nye(e,o){let t=hG(o),r=t?t.inner:o;if(br(r)||r?.customize===!0)return!1;if(r?.type==="slot")return!0;let a=aye(r);return a==="always"?!1:a==="authored-copy"?Kn(e):!0}function mG(e){let o=hG(e),t=o?o.inner:e,r=br(t);return r?oB(t)?0:r.level:null}function sye(e,o,t){return t?o===0&&e===jo.Design||o===1&&e===Ql.Content:!1}var iye=new WeakMap,lye=new WeakMap;function xG(e,o="section"){let t=o==="page"?lye:iye,r=t.get(e);if(r)return r;let a=Object.entries(e).map(([u,p])=>({key:u,field:p,level:mG(p),draws:nye(u,p)||o==="page"&&mG(p)===null&&Aw(u,p)})),n=o==="section"&&a.some(u=>Aw(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&&!sye(a[u].key,p,n)&&s.add(a[u].key)}let i=n&&iG(e),l=i&&!(jo.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=eI(i?sG(d):d);return t.set(e,f),f}import{isShown as cye,showWhenFactReaders as dye}from"efficient-shell/format";var gG=new WeakMap,fye=new Set(Object.values(jo));function IG(e,o,t,r={}){if(!e)return e;let a=o?.props??{},n=a.id,s=dye(r,o,t),i=K1(t,{...s,parentOffersPositions:()=>{let h=Oa(t.appState,n);return h===void 0?void 0:fA(h)},heroGroupDepth:()=>eu(t.appState?.data,typeof n=="string"?n:"")}),l=[];for(let[h,I]of Object.entries(e)){let w=bc(I);!w||Lu(w,"device")||cye(w,a,i)||l.push(h)}if(l.length===0)return e;let d=gG.get(e);d||gG.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=>fye.has(h))&&(m=eI(m)),d.set(f,m),m}var yG={spacingFields:pB,sidesPaddingFields:Xi,sectionShapeFields:ol,cardShapeFields:lB,cellWidthFields:fB,widthField:tl,boxGutterFields:lG,sectionOwnWidthFields:uG,heightFields:rl,anchorFields:al,stickFields:xd,sectionThemeFields:Qi,animationTabFields:Zg,blockSizeFields:({tablet:e,...o}={})=>pye({...o,shorten:!0,say:Mm,lengthUnits:ga,...e?{phone:uye}:{}}),assignSectionGroups:Qg,dropEmptyHeadings:xG,rowsShownForNode:IG,SECTION_THEME_FOLLOW_LABEL:nS,BLOCK_THEME_FOLLOW_LABEL:ER,PartAnchors:t6};function tI(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=tI(s.arrayFields,o,t),d=tI(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 mye(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=Cz(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 hye(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];xye(e,o,a);for(let n of a){let s=n.components.filter(Wp);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(!$p(n))continue;let s=Hp(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 aP(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(...aP(e,o,s.arrayFields,`${i}.`),...aP(e,o,s.objectFields,`${i}.`))}return a}function xye(e,o,t){let r=n=>{throw new Error(`efficient-web-builder: ${n} names "${gi}". 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(gi)&&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=aP(gi,n,s?.fields);i.length>0&&r(`the slot ${i.map(l=>`"${l}"`).join(", ")}, whose allow list`)}}function bG(e,o){let t=Object.entries(o?.host??{}),r=o?.categories??[],a=dT(o);if(hye(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?tI(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={...DT(Object.keys(n),p,u),isHostBlock:h=>u.has(h),inspector:yG};for(let[h,I]of t){let w=mye(h,I,m),S=tI(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(v=>!S.has(v))]};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 SG(){let e=yye();return gye(()=>bG(Iye(e),Mi(e)),[e])}import{jsx as iP,Fragment as Hye,jsxs as Wye}from"react/jsx-runtime";import{useContext as $ye,useEffect as Uye,useMemo as lI,useRef as $G}from"react";import{EaselCanvas as zye,repeatCopyAt as Gye,useEasel as jye}from"efficient-easel/easel";import{jsx as nP}from"react/jsx-runtime";import{useEffect as Cye,useState as vye}from"react";import{Banner as kye}from"efficient-shell/ui";import{useSyncExternalStore as bye}from"react";import{useScreenDocument as Sye}from"efficient-easel/screen/components/ScreenDocumentContext";var wye=()=>()=>{},wG=()=>null;function rI(e){return bye(e?e.subscribe:wye,e?e.state:wG,e?e.state:wG)}function aI(){let{adapter:e}=Sye();return e?.pinnedChrome}var nI={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."},Tye={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."},Pye=nI.load,Eye=nI.lock,_ye=nI.conflict,Oye=nI.save;function Aye(e){if(!e)return null;if(e.loadFailed)return c(Pye);if(e.lockHolder)return c(Eye,{name:e.lockHolder.name||c("Somebody else")});if(e.conflict)return c(_ye);if(e.saveFailed)return c(Oye);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(Tye[o.problem],{section:t,name:r})}function Rye({report:e}){let o=Aye(rI(e)),[t,r]=vye(null);return Cye(()=>{o||r(null)},[o]),!o||t===o?null:nP("aside",{className:"sf-canvas-notice",children:nP(kye,{tone:"warning",onDismiss:()=>r(o),children:o})})}function CG(){return nP(Rye,{report:aI()})}import{jsx as iI}from"react/jsx-runtime";import{useState as HG}from"react";import{Banner as Fye,Button as Bye}from"efficient-shell/ui";import{UndoIcon as Nye}from"efficient-shell/icons/efficient";import{useScreenDocument as Dye}from"efficient-easel/screen/components/ScreenDocumentContext";import{useSyncExternalStore as TG}from"react";var zf=!1,ec=null,sP=new Set;function jf(){for(let e of sP)e()}function PG(e){return sP.add(e),()=>{sP.delete(e)}}function EG(){zf||(zf=!0,jf())}function _G(){zf&&(zf=!1,jf())}function vG(){return zf}function OG(){return TG(PG,vG,vG)}function kG(){return ec}function sI(){ec&&(ec=null,jf())}function AG(){return TG(PG,kG,kG)}var Gf=class extends Error{constructor(){super("The editor's last changes could not be saved, so nothing was restored."),this.name="HeldEditsNotSaved"}};async function RG(e,o,t,{flushSave:r,reload:a}){if(!await r())throw new Gf;let n=await e.restore(o,t);return cm(n.liveState),a(),n}async function LG({access:e,version:o,page:t,...r}){let a=await RG(e,o.id,t?{page:t.id}:{},r);ec={title:Lye(o,t??null),undo:a.undo},jf()}async function FG({access:e,...o}){let t=ec?.undo;t&&(await RG(e,t,{},o),ec=null,jf())}function BG(e){return e.name?e.name:e.kind==="draft_before_restore"?c("Draft before restore"):c("Version {n}",{n:e.number})}function Lye(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 NG(e){let o=e.changes.filter(r=>r.kind==="page").length,t=[...o?[rt("{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(Wy(),{type:"conjunction"}).format(t)}catch{return t.join(", ")}}function DG(e){return e.change==="take_down"?c("{name} (taken down)",{name:e.name}):e.name}function MG(e,o=new Date){let t=new Date(e);if(Number.isNaN(t.getTime()))return"";let r=Wy(),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 Mye}from"efficient-easel/easel";function WG(){let e=AG(),{adapter:o,flushSave:t,reloadFromServer:r}=Dye(),a=o.siteVersions,[n,s]=HG(!1),[i,l]=HG(!1),d=async()=>{if(!(!a||n)){s(!0),l(!1);try{await FG({access:a,flushSave:t,reload:r})}catch{l(!0)}finally{s(!1)}}},f=Mye({onPress:()=>{d()},busy:n});return e?iI("aside",{className:"sf-canvas-notice",children:iI(Fye,{tone:i?"danger":"info",title:e.title,onDismiss:sI,action:a&&e.undo?iI(Bye,{variant:"secondary",size:"sm",leftIcon:iI(Nye,{}),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 Kye,REPEAT_ATTRIBUTE as lP,REPEAT_INDEX_ATTRIBUTE as cP}from"efficient-easel/draw";import{usePreviewParts as Vye}from"efficient-easel/draw/client";import{ScreenDocumentContext as Yye}from"efficient-easel/screen/components/ScreenDocumentContext";function UG(e){let{mirrorHostStyles:o}=Ac(),t=UO(),r=dP(),a=Oc(),n=$ye(Yye),s=Eu(n?.docId??null),i=jye(w=>w.appState.data),l=k1(s,i),d=JSON.stringify(l),f=lI(()=>l,[d]),u=lI(()=>({...e.metadata??t??{},...r,...f}),[e.metadata,t,r,f]);Uye(()=>(RT(a),()=>RT(null)),[a]);let p=$G(null),m=qye(p),{onDocument:h}=e,I=w=>{p.current=w,h?.(w)};return Wye(Hye,{children:[iP(WG,{}),iP(CG,{}),iP(zye,{...e,onDocument:I,typing:m,metadata:u,height:"fill",mirrorStyles:o,frameWrapper:Mh})]})}function dP(){let{sectionBackgroundWidth:e,themeFromDocument:o}=ce(),t=Oc();return lI(()=>yF(o?null:e,t),[e,t,o])}function qye(e){let o=yu(),t=Vye(),r=$G({parts:t});return r.current={parts:t},lI(()=>{let a=(n,s)=>{let i=ah(n,o),l,d=null,f=s??(i?null:$w(null,e.current,n)),u=!i&&f?Gye(f):null,p=u?Kye(n):null;if(u&&f&&p?.propKey){i=sh({...u,nodeId:p.nodeId,key:p.propKey},o),l=p.propKey;let w=f.closest(`[${lP}][${cP}]`),S=`[${lP}="${nh(w?.getAttribute(lP)??"")}"][${cP}="${nh(w?.getAttribute(cP)??"")}"]`;d=()=>(f.ownerDocument??e.current)?.querySelector(S)??null}if(!i)return null;let m=f,h=()=>(m=$w(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?Bi(zu(I)):void 0,colorNameOf:kt}}:null};return{at:n=>{let s=n.closest(`[${co}]`),i=s?.getAttribute(co);return s&&i?a(i,s):null},atSelection:()=>{let n=r.current.parts.selectedPartId;return n?a(n,null):null},onCopyText:n=>eN(n,o),copyValue:n=>QB(n,o),onChange:n=>{if(!n.typing){Uw(null);return}let s=n.element.closest(`[${co}]`)?.getAttribute(co)??null;Uw(s),s&&r.current.parts.selectedPartId!==s&&r.current.parts.select(s)}}},[o,e])}function jG({open:e,onClose:o,takenSlugs:t,onCreated:r}){let a=ebe(),{adapter:n,siteId:s,templateId:i}=Qye(),l=je(a).pages,d=!i&&!!(l.starters&&l.createFromStarter),f=Zye(()=>s?{siteId:s}:{},[s]),u=SG(),p=dP(),[m,h]=pP(null),[I,w]=pP(jl),[S,v]=pP(null),b=Jye(null);Xye(()=>{if(!e)return;if(w(jl),!d){h([]);return}let C=!0;return h(null),l.starters(f).then(A=>C&&h(A),()=>{C&&(h([]),GG.error(c("Couldn\u2019t load the pages \u2014 please retry.")))}),()=>{C=!1}},[e,d,l,f]);let y=async(C,A)=>{if(!S){v(C);try{r(await A())}catch{GG.error(c("Couldn\u2019t add the page \u2014 please retry."))}finally{v(null)}}},k=()=>{if(!n.createPage)return;let C=c("New page");y("blank",()=>n.createPage({slug:zG(C,t),title:C,layout:{}}))},F=C=>{y(C.id,()=>l.createFromStarter(C.id,{title:C.title,slug:zG(C.slug,t),...f}))},T=m??[],D=h6(T),P=x6(I,T),L=fP("nav",{"aria-label":c("Pages"),className:"sf-add-page-nav",children:[Lt(uP,{label:c("All pages"),active:I===jl,onClick:()=>w(jl)}),D.map(C=>Lt(uP,{label:c(C.label),active:I===C.key,onClick:()=>w(C.key)},C.key)),sT(T).length>0?Lt("div",{className:"sf-add-page-group",children:Lt(uP,{label:c("From your template"),active:I===Eg,onClick:()=>w(Eg)})}):null]});return Lt(tbe,{open:e,onClose:o,size:"full",title:c("Add page"),initialFocus:b,children:Lt(sbe,{sidebarTop:fP(nbe,{onClick:k,disabled:!n.createPage||S!==null,children:[Lt(obe,{"aria-hidden":!0}),c("Blank page")]}),sidebar:L,children:fP("div",{className:"sf-add-page",children:[Lt("h3",{ref:b,tabIndex:-1,className:"sf-add-page-title",children:c("Pages for your site")}),Lt("p",{className:"sf-add-page-sub",children:c("Choose a page and change the text, images and more.")}),m===null?Lt("p",{className:"sf-add-page-sub",children:c("Loading\u2026")}):P.length===0?Lt(rbe,{title:c("No pages to start from"),description:c("Start with a blank page, then add sections.")}):Lt(abe,{cols:1,smCols:2,lgCols:3,gap:8,children:P.map(C=>Lt(y6,{starter:C,config:u,metadata:p,busy:S===C.id,onAdd:F},C.id))})]})})})}var XG="sf-editor-pages-collapsed-groups";function kbe(){let e=hP(),{siteId:o,templateId:t}=ZG(),r=je(e).pages;if(!(!r.duplicate||t))return(a,n)=>r.duplicate(a.id,{...n,...o?{siteId:o}:{}})}function JG({onNavigate:e,onClose:o,activeSurface:t,onPreviewSurface:r}){let a=hP().chrome?.pageRows,n=wbe(),{adapter:s,capabilities:i,ready:l,currentSlug:d}=ZG(),f=xl(),{rows:u,reload:p,setRows:m,getRows:h}=Fd(),[I,w]=js(""),[S,v]=js(!1),[b,y]=js(null),[k,F]=js(!1),T=!!je(hP()).pages.createFromStarter,D=kbe(),[P,L]=js(null),[C,A]=js(()=>{if(typeof window>"u")return new Set;try{let $=window.localStorage.getItem(XG);return new Set($?JSON.parse($):[])}catch{return new Set}});cbe(()=>{try{window.localStorage.setItem(XG,JSON.stringify([...C]))}catch{}},[C]);let E=$=>A(Ze=>{let Ce=new Set(Ze);return Ce.has($)?Ce.delete($):Ce.add($),Ce}),R=KG(()=>U1(u??[]),[u]),W=I.trim().toLowerCase(),z=$=>!W||$.toLowerCase().includes(W),Z=$=>W?!0:!C.has($),V=KG(()=>new Set((u??[]).map($=>$.slug)),[u]),fe=()=>{if(i.pageCreationInAdminForm&&!T){n.send("storefront-editor:new-page");return}y(null),F(!0)},Ie=i.hasSiteSettings&&!!s.createPage,ae=async()=>{if(!(!l||S||!s.createPage)){v(!0),y(null);try{let $=await s.createPage(ZR(c("New popup"),V));await p(),e($.slug)}catch{y(c("Couldn\u2019t add the popup \u2014 please retry."))}finally{v(!1)}}},Oe=dbe(null),[ve,Ae]=js(null),Ue=()=>{if(!Ie)return fe();if(ve)return Ae(null);let $=Oe.current?.getBoundingClientRect();$&&Ae({top:$.bottom+6,right:Math.max(8,window.innerWidth-$.right)})},No=$=>{let Ze=u??[],Ce=s.deletePage;if(!l||S||!Ce||Ze.length<=1)return;let Ee=Ze.findIndex(Re=>Re.id===$.id),ho=Ze.filter(Re=>Re.id!==$.id),xo=$.slug===d;Nh($.id,!0),m(ho),y(null),xo&&ho[0]&&e(ho[0].slug);let lt=()=>{Nh($.id,!1);let Re=h()??[];if(Re.some(oi=>oi.id===$.id))return;let sr=[...Re];sr.splice(Math.max(0,Math.min(Ee,sr.length)),0,$),m(sr)};YG.undoable(c("Deleted \u201C{name}\u201D",{name:$.label}),{actionLabel:c("Undo"),commit:async Re=>{await Ce($.id,Re),Nh($.id,!1)},undo:()=>{lt(),xo&&e($.slug)},onFail:()=>{lt(),YG.error(c("Couldn\u2019t delete the page \u2014 please retry."))}})},Vo=$=>n.send("storefront-editor:open-page",{slug:$}),Yo=$=>{if(!z($.label))return null;let Ze=!t&&$.slug===d,Ce=i.canDeletePagesInline&&(u??[]).length>1,Ee=$n($),ho=$1($),xo=[...Ee?[{label:c("Dynamic"),tone:"info"}]:[],...ho?[{label:c("Lightbox"),tone:"success"}]:[],...$.draft?[{label:c("draft"),tone:"draft"}]:[]],lt=xo.length>0?xo:void 0,Re=!!D&&Cbe($),sr=Re||i.pageCreationInAdminForm||Ce?cI(ibe,{children:[Re&&$e(dI,{kind:"plain",label:c("Duplicate \u201C{name}\u201D",{name:$.label}),disabled:S,onClick:()=>L($),children:$e(Ibe,{size:13})}),i.pageCreationInAdminForm&&$e(dI,{kind:"plain",label:c("Page settings for \u201C{name}\u201D",{name:$.label}),onClick:()=>Vo($.slug),children:$e(bbe,{size:13})}),Ce&&$e(dI,{kind:"delete",label:c("Delete \u201C{name}\u201D",{name:$.label}),disabled:S,onClick:()=>No($),children:$e(mP,{name:"trash",size:13,strokeWidth:1.7,rounded:!0})})]}):void 0;return $e(qG,{icon:$e(ybe,{size:14}),name:$.label,selected:Ze,onSelect:()=>e($.slug),badge:lt,actions:sr,rowProps:{"data-page-slug":$.slug}},$.id)},mo=($,Ze,Ce)=>{let Ee=Ce.filter(Boolean);if(Ee.length===0)return null;let ho=Z($);return cI(lbe,{children:[$e(xbe,{count:Ee.length,countLabel:rt("{n} page","{n} pages",Ee.length),expanded:ho,onToggle:()=>E($),children:Ze}),ho&&Ee]},$)},qo=(a?.rows??[]).filter($=>z($.label)).map($=>{let Ze=t===$.key;return $e(qG,{icon:$.icon,name:$.label,selected:Ze,onSelect:()=>r($.key),badge:{label:c("Preview"),tone:"warning"},actions:$e(dI,{kind:"plain",label:c("Open the {name} in a new tab",{name:$.label}),onClick:()=>window.open($.href,"_blank","noopener,noreferrer"),children:$e(mP,{name:"external-link",size:13,strokeWidth:1.7,rounded:!0})}),rowProps:{"data-shop-surface":$.key}},$.key)}),vo=i.hasSiteSettings&&!!a,pe=(()=>{if(u===null)return null;let $=[],Ze=!1;for(let Ce of R){vo&&!Ze&&Ce.key.startsWith("system:")&&($.push(mo("shop",a.title,qo)),Ze=!0);let Ee=Ce.key===hb||Ce.label===mb?c(Ce.label):Ce.label;$.push(mo(Ce.key,Ee,Ce.rows.map(Yo)))}return vo&&!Ze&&$.push(mo("shop",a.title,qo)),$})();return cI("div",{className:"sf-pages",children:[$e(fbe,{icon:$e(Sbe,{}),title:c("Pages"),context:f,actions:$e(pbe,{buttonRef:Oe,label:Ie?c("Add"):c("New page"),hasPopup:Ie?"menu":void 0,expanded:Ie?ve!==null:void 0,onClick:Ue,children:$e(gbe,{size:15})})}),ve&&$e(mbe,{portal:!0,style:{top:ve.top,right:ve.right},onClose:()=>Ae(null),children:cI("div",{role:"menu","aria-label":c("Add"),children:[$e(VG,{role:"menuitem",onClick:()=>{Ae(null),fe()},children:c("Page")}),$e(VG,{role:"menuitem",disabled:S,onClick:()=>{Ae(null),ae()},children:c("Popup")})]})}),$e("div",{className:"sf-pages-find",children:$e(ube,{type:"search",leftIcon:$e(mP,{name:"search",size:14,rounded:!0}),placeholder:c("Search all pages\u2026"),value:I,onChange:$=>w($.target.value),"aria-label":c("Search all pages")})}),b&&!k&&$e("div",{className:"sf-note sf-note--error",role:"alert",children:b}),pe===null?$e("div",{className:"sf-note",children:c("Loading\u2026")}):pe.some(Boolean)?$e(hbe,{ariaLabel:c("Pages"),className:"sf-scroll",children:pe}):$e("div",{className:"sf-note",children:I.trim()?c("No pages match your search"):c("No pages yet. Add one with + above.")}),D&&P&&$e(vbe,{source:{title:P.label,slug:P.slug},taken:V,host:pu(),duplicate:$=>D(P,$),onClose:()=>L(null),onDuplicated:$=>{L(null),p(),e($.slug)}},P.id),k?$e(jG,{open:!0,onClose:()=>F(!1),takenSlugs:V,onCreated:$=>{F(!1),p(),e($.slug)}}):null]})}import{jsx as oj}from"react/jsx-runtime";import{createContext as Pbe,useCallback as Ebe,useContext as _be,useMemo as Obe,useState as Abe}from"react";import{CanvasChromeContext as Rbe}from"efficient-easel/easel";import{useSelectHandler as Lbe}from"efficient-easel/draw/client";import{parseHexColor as Tbe}from"efficient-shell/format";var fI=["chat-bubble-left-right","chat-bubble-oval-left-ellipsis","chat","megaphone","phone","sparkles"],oc=fI[0];var Ks="right";function pI(e){return fI.includes(e??"")?e:oc}function QG(e){return e==="left"?"left":Ks}function ej(e){return e&&Tbe(e)===e.toLowerCase()?e.toLowerCase():""}var tj="chat",uI={enabled:!0,title:"",subtitle:"",greeting:"",launcherColor:"",launcherIcon:"",launcherPosition:Ks,launcherLabel:"",showOnPhones:!0};function Xlo(e){return{enabled:e.enabled,title:e.title,subtitle:e.subtitle,greeting:e.greeting,launcherColor:ej(e.launcherColor),launcherIcon:e.launcherIcon?pI(e.launcherIcon):"",launcherPosition:QG(e.launcherPosition),launcherLabel:e.launcherLabel??"",showOnPhones:e.showOnPhones!==!1}}var rj=Pbe({chat:uI,setChat:()=>{},setSelected:()=>{},setSelectHandler:()=>{}});function Zlo({children:e,chat:o=uI,onChatChange:t}){let[r,a]=Abe(!1),n=Ebe(d=>t?.(d),[t]),{select:s,setSelectHandler:i}=Lbe(),l=Obe(()=>({selected:()=>r?tj:null,select:d=>d===tj&&s()}),[r,s]);return oj(rj.Provider,{value:{chat:o,setChat:n,setSelected:a,setSelectHandler:i},children:oj(Rbe.Provider,{value:l,children:e})})}var mI=()=>_be(rj);import{jsx as xP}from"react/jsx-runtime";import{DesktopIcon as Fbe,PhoneIcon as Bbe,TabletIcon as Nbe}from"efficient-easel/icons";import{VIEW_TIERS as Dbe,VIEW_TIER_LABEL as Mbe}from"efficient-easel/draw";var Hbe={desktop:xP(Fbe,{}),tablet:xP(Nbe,{}),mobile:xP(Bbe,{})},aj=Dbe.map(e=>({id:e,get label(){return c(Mbe[e])},icon:Hbe[e]}));import{PreviewDeviceContext as YTe}from"efficient-easel/draw/client";import{jsx as Wbe}from"react/jsx-runtime";import{createContext as $be,useCallback as nj,useContext as Ube,useMemo as zbe,useRef as Gbe}from"react";var jbe=Object.fromEntries(gu.map(e=>[e,{value:"",error:null}])),sj=$be({links:LO,rows:jbe,canSave:!1,saveLink:async()=>({ok:!1,error:"There is no website to save to."}),openPanel:()=>{},setOpenHandler:()=>{}});function ico({children:e,value:o}){let t=Gbe(()=>{}),r=nj(()=>t.current(),[]),a=nj(s=>{t.current=s},[]),n=zbe(()=>({...o,openPanel:r,setOpenHandler:a}),[o,r,a]);return Wbe(sj.Provider,{value:n,children:e})}var Kf=()=>Ube(sj);import{jsx as Kbe}from"react/jsx-runtime";import{createContext as Vbe,useContext as Ybe,useMemo as qbe,useState as Xbe}from"react";var ij=Vbe(null);function fco({children:e}){let[o,t]=Xbe(null),r=qbe(()=>({surface:o,setSurface:t}),[o]);return Kbe(ij.Provider,{value:r,children:e})}function lj(){return Ybe(ij)??{surface:null,setSurface:()=>{}}}import{createPreviewSelectionContext as Zbe}from"efficient-easel/draw/client";var{Provider:mco,useSelection:hI}=Zbe("selectedHeroPart");import{jsx as Fe,jsxs as bn,Fragment as CK}from"react/jsx-runtime";import{useEasel as wve,useRootFields as Cve}from"efficient-easel/easel";import{Button as vve,EmptyState as kve}from"efficient-shell/ui";function cj({kind:e,pageName:o}){return{name:o?.trim()||c("This page"),kindLabel:$n({kind:e})?c("Template"):c("Page")}}import{headWords as PK,InspectorHead as Tve,InspectorIconButton as vK}from"efficient-easel/chrome";import{DuplicateIcon as Pve,TrashIcon as Eve}from"efficient-easel/icons";import{panelFieldsOf as _ve}from"efficient-easel/screen/lib/document/panel-fields";import{jsx as H,Fragment as ye,jsxs as we}from"react/jsx-runtime";import{BlockBannerIcon as eSe,BlockBoxIcon as oSe,BlockButtonIcon as tSe,BlockDividerIcon as fj,BlockFooterIcon as pj,BlockHeadingIcon as rSe,BlockProductIcon as aSe,BlockSocialIcon as nSe,BlockTextIcon as sSe,CardPaymentIcon as iSe,ChatIcon as lSe,AccountIcon as cSe,GlobeIcon as dSe,GridIcon as fSe,ImageIcon as IP,MapIcon as pSe,MediaIcon as uSe,PageIcon as mSe}from"efficient-easel/icons";import{jsx as gP,Fragment as Jbe,jsxs as Qbe}from"react/jsx-runtime";var dj=Qbe(Jbe,{children:[gP("circle",{cx:"9",cy:"20",r:"1.3"}),gP("circle",{cx:"18",cy:"20",r:"1.3"}),gP("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 hSe={header:we(ye,{children:[H("rect",{x:"3",y:"5",width:"18",height:"14",rx:"2"}),H("path",{d:"M3 9.5h18"})]}),social:we(ye,{children:[H("circle",{cx:"6",cy:"12",r:"2.5"}),H("circle",{cx:"18",cy:"6",r:"2.5"}),H("circle",{cx:"18",cy:"18",r:"2.5"}),H("path",{d:"M8.2 10.8l7.6-3.6M8.2 13.2l7.6 3.6"})]}),ticker:we(ye,{children:[H("rect",{x:"3",y:"8.5",width:"18",height:"7",rx:"2"}),H("path",{d:"M6 12h3.5M11.5 12h2M15.5 12h2.5"})]}),FooterLogo:we(ye,{children:[H("path",{d:"M4 15.5h6M4 18h4"}),H("path",{d:"M14 8.5l3 7 3-7"})]}),FooterMenu:H("path",{d:"M6 7h12M6 11h12M6 15h8M6 19h8"}),FooterGroup:we(ye,{children:[H("rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",strokeDasharray:"3 2.5"}),H("path",{d:"M8 9h8M8 13h8M8 16h5"})]}),FooterText:H("path",{d:"M5 7h14M5 12h14M5 17h9"}),FooterEmailSignup:we(ye,{children:[H("rect",{x:"3",y:"6",width:"18",height:"12",rx:"2"}),H("path",{d:"M3.5 7l8.5 6 8.5-6"})]}),SearchBlock:we(ye,{children:[H("circle",{cx:"11",cy:"11",r:"6"}),H("path",{d:"M20 20l-4.2-4.2"})]}),CartBlock:dj,CountrySwitchBlock:we(ye,{children:[H("circle",{cx:"12",cy:"12",r:"8.5"}),H("path",{d:"M3.5 12h17M12 3.5c2.6 2.4 3.6 5.2 3.6 8.5s-1 6.1-3.6 8.5M12 3.5c-2.6 2.4-3.6 5.2-3.6 8.5s1 6.1 3.6 8.5"})]}),ThemeSwitchBlock:we(ye,{children:[H("circle",{cx:"12",cy:"12",r:"8.5"}),H("path",{d:"M12 3.5v17M12 5.5l6 6M12 10.5l5.2 5.2M12 15.5l2.8 2.8"})]}),LegalLineBlock:we(ye,{children:[H("path",{d:"M3 9h18"}),H("path",{d:"M3 14h8M14 14h2M18 14h3"})]}),Hero:we(ye,{children:[H("rect",{x:"3",y:"4",width:"18",height:"16",rx:"2"}),H("path",{d:"M7 13.5h7M7 16.5h10"})]}),HeroSlide:we(ye,{children:[H("rect",{x:"3",y:"5",width:"18",height:"14",rx:"2"}),H("path",{d:"M7 15h6M16 9.5h.01M9.5 12l-2.5 3"})]}),HeroSingle:we(ye,{children:[H("rect",{x:"3",y:"4",width:"18",height:"16",rx:"2"}),H("path",{d:"M10.5 8.5l4 2.5-4 2.5z"}),H("path",{d:"M7 17h7"})]}),Collections:we(ye,{children:[H("rect",{x:"3",y:"5",width:"4.6",height:"14",rx:"1.3"}),H("rect",{x:"9.7",y:"5",width:"4.6",height:"14",rx:"1.3"}),H("rect",{x:"16.4",y:"5",width:"4.6",height:"14",rx:"1.3"})]}),CollectionCard:we(ye,{children:[H("rect",{x:"6",y:"4",width:"12",height:"16",rx:"2"}),H("path",{d:"M9 15h6M9 17.5h4"})]}),AlloyWheelsListing:we(ye,{children:[H("path",{d:"M3 5h5M3 9h5M3 13h5M3 17h5"}),H("rect",{x:"11.5",y:"5",width:"4.2",height:"5",rx:"1"}),H("rect",{x:"17.3",y:"5",width:"4.2",height:"5",rx:"1"}),H("rect",{x:"11.5",y:"12",width:"4.2",height:"5",rx:"1"}),H("rect",{x:"17.3",y:"12",width:"4.2",height:"5",rx:"1"})]}),CatalogFilterBar:we(ye,{children:[H("path",{d:"M3 7h9M15.5 7H21"}),H("circle",{cx:"13.5",cy:"7",r:"1.7"}),H("path",{d:"M3 12h4M10.5 12H21"}),H("circle",{cx:"8.5",cy:"12",r:"1.7"}),H("path",{d:"M3 17h9M15.5 17H21"}),H("circle",{cx:"13.5",cy:"17",r:"1.7"})]}),ProductGrid:we(ye,{children:[H("rect",{x:"3",y:"5",width:"4.8",height:"6",rx:"1"}),H("rect",{x:"9.6",y:"5",width:"4.8",height:"6",rx:"1"}),H("rect",{x:"16.2",y:"5",width:"4.8",height:"6",rx:"1"}),H("rect",{x:"3",y:"13",width:"4.8",height:"6",rx:"1"}),H("rect",{x:"9.6",y:"13",width:"4.8",height:"6",rx:"1"}),H("rect",{x:"16.2",y:"13",width:"4.8",height:"6",rx:"1"})]}),RelatedProducts:we(ye,{children:[H("path",{d:"M3 5h10"}),H("rect",{x:"3",y:"9.5",width:"5",height:"9",rx:"1"}),H("rect",{x:"9.5",y:"9.5",width:"5",height:"9",rx:"1"}),H("rect",{x:"16",y:"9.5",width:"5",height:"9",rx:"1"})]}),Gallery:we(ye,{children:[H("rect",{x:"3",y:"4",width:"11",height:"16",rx:"2"}),H("rect",{x:"15.5",y:"4",width:"5.5",height:"7.5",rx:"1.5"}),H("rect",{x:"15.5",y:"12.5",width:"5.5",height:"7.5",rx:"1.5"})]}),GalleryB:we(ye,{children:[H("rect",{x:"3.5",y:"4",width:"7.5",height:"7.5",rx:"1.5"}),H("rect",{x:"13",y:"4",width:"7.5",height:"7.5",rx:"1.5"}),H("rect",{x:"3.5",y:"12.5",width:"7.5",height:"7.5",rx:"1.5"}),H("rect",{x:"13",y:"12.5",width:"7.5",height:"7.5",rx:"1.5"})]}),GalleryItem:we(ye,{children:[H("rect",{x:"4",y:"5",width:"16",height:"14",rx:"2"}),H("circle",{cx:"9",cy:"10",r:"1.6"}),H("path",{d:"M20 15.5l-4.5-4L7 19"})]}),Events:we(ye,{children:[H("rect",{x:"4",y:"5",width:"16",height:"15",rx:"2"}),H("path",{d:"M4 9.5h16M8.5 3v4M15.5 3v4M8 14h2M14 14h2"})]}),PostCard:we(ye,{children:[H("rect",{x:"4",y:"3.5",width:"16",height:"17",rx:"2"}),H("rect",{x:"6.5",y:"6",width:"11",height:"6",rx:"1"}),H("path",{d:"M6.5 14.5h11M6.5 17.5h7"})]}),Manifesto:we(ye,{children:[H("path",{d:"M7 8h3.2v4c0 1.6-1 2.6-3 3.2"}),H("path",{d:"M14 8h3.2v4c0 1.6-1 2.6-3 3.2"})]}),Stats:we(ye,{children:[H("path",{d:"M3.5 20h17"}),H("path",{d:"M6 20v-7M11 20V7M16 20v-5M20.5 20v-9"})]}),Logos:we(ye,{children:[H("circle",{cx:"6",cy:"12",r:"2.6"}),H("rect",{x:"10",y:"9.4",width:"5.2",height:"5.2",rx:"1.2"}),H("path",{d:"M19 9.2l2.4 5h-4.8z"})]}),Ticker:we(ye,{children:[H("rect",{x:"3",y:"8.5",width:"18",height:"7",rx:"2"}),H("path",{d:"M6 12h3.5M11.5 12h2M15.5 12h2.5"})]}),SectionHeader:we(ye,{children:[H("rect",{x:"3.5",y:"6",width:"5",height:"5",rx:"1.2"}),H("path",{d:"M11 8.5h9M3.5 15.5h17"})]}),IntroBleed:we(ye,{children:[H("rect",{x:"3",y:"4",width:"18",height:"16",rx:"2"}),H("path",{d:"M3 13.5h18M7 16.8h6"})]}),Split:we(ye,{children:[H("rect",{x:"3",y:"5",width:"8",height:"14",rx:"1.5"}),H("path",{d:"M14 8.5h6M14 12h6M14 15.5h4"})]}),Eyebrow:we(ye,{children:[H("path",{d:"M4 8.5h4.5M11 8.5h9"}),H("path",{d:"M4 14.5h16"})]}),HeroGroup:we(ye,{children:[H("rect",{x:"3.5",y:"4.5",width:"17",height:"15",rx:"2"}),H("path",{d:"M7 9h8M7 12.5h10M7 16h6"})]}),Form:we(ye,{children:[H("rect",{x:"3",y:"4",width:"18",height:"16",rx:"2"}),H("path",{d:"M6.5 9h11M6.5 12.5h11"}),H("rect",{x:"6.5",y:"15",width:"6.5",height:"2.6",rx:"1.3"})]}),LogoBlock:H(ye,{children:H("path",{d:"M12 3.5l7.5 3.2v5.1c0 4.2-3.2 7.1-7.5 8.7-4.3-1.6-7.5-4.5-7.5-8.7V6.7z"})}),Spacer:we(ye,{children:[H("path",{d:"M12 4v6M9.5 6.5L12 4l2.5 2.5M12 20v-6M9.5 17.5L12 20l2.5-2.5"}),H("path",{d:"M5 13h14",strokeDasharray:"2 2.5"})]}),ContactRouting:we(ye,{children:[H("rect",{x:"3",y:"4",width:"5",height:"5",rx:"1"}),H("rect",{x:"9.5",y:"4",width:"5",height:"5",rx:"1"}),H("rect",{x:"16",y:"4",width:"5",height:"5",rx:"1"}),H("path",{d:"M4 13.5h11M4 17.5h7"}),H("path",{d:"M17 15l3 2-3 2"})]}),Contents:we(ye,{children:[H("path",{d:"M4 7h2M4 12h2M4 17h2"}),H("path",{d:"M9 7h11M9 12h9M9 17h10"})]}),ListSearch:we(ye,{children:[H("path",{d:"M4 6h9M4 11h5M4 16h5"}),H("circle",{cx:"15",cy:"15",r:"4"}),H("path",{d:"M20.5 20.5l-2.7-2.7"})]}),CustomHTML:H("path",{d:"M9 8l-4 4 4 4M15 8l4 4-4 4"})},xSe=H("rect",{x:"4",y:"4",width:"16",height:"16",rx:"2.5"}),gSe={footer:pj,Footer:pj,Divider:fj,FooterDivider:fj,Banner:eSe,Flex:oSe,FooterSocial:nSe,FooterPayment:iSe,page:mSe,website:dSe,AccountBlock:cSe,chat:lSe,Heading:rSe,Text:sSe,ImageBlock:IP,ButtonBlock:tSe,LocationMap:pSe,Grid:fSe,ProductRef:aSe,heroMedia:uSe,heroImage:IP,heroImage2:IP},ISe={MenuBlock:"FooterMenu",EmailFormBlock:"FooterEmailSignup",SocialLogosBlock:"FooterSocial",PaymentLogosBlock:"FooterPayment",SiteHeader:"header",SiteFooter:"footer"};function Vs({type:e,size:o=16,className:t}){let r=ISe[e]??e,a=gSe[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:hSe[r]??xSe})}import{PanelHideButton as kK}from"efficient-easel/screen/components/SidePanelHead";import{useEaselSession as Ove}from"efficient-easel/screen/lib/session-context";import{jsx as Ne,jsxs as Vf,Fragment as ySe}from"react/jsx-runtime";import{useEffect as bSe,useId as uj,useState as SSe}from"react";import{IconPicker as wSe}from"efficient-shell/ui";import{SettingsDefaultReset as CSe,SettingsField as Yf,SettingsSegmented as vSe,SettingsSwitch as mj}from"efficient-easel/panel";import{ButtonIcon as kSe,ButtonIconIcon as TSe,EyeIcon as PSe,PhoneIcon as ESe,PlacementIcon as _Se,TypeIcon as OSe}from"efficient-easel/icons";var ASe="Chat with us",RSe="We usually reply within a few minutes",LSe="Hi! Ask us anything \u2014 about a wheel, an order, or fitment. Leave your details and we\u2019ll reply.";function xI({label:e,value:o,placeholder:t,onCommit:r,multiline:a=!1,hint:n}){let[s,i]=SSe(o);bSe(()=>i(o),[o]);let l=()=>{s!==o&&r(s)};return Ne(Yf,{label:e,icon:Ne(OSe,{}),changed:o!=="",action:Ne(qf,{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 qf({label:e,changed:o,onReset:t}){return Ne(CSe,{words:le()?.panel,label:e,changed:o,onReset:t})}function FSe({label:e,icon:o,checked:t,fallback:r,onChange:a,hint:n}){let s=uj();return Ne(Yf,{label:e,labelId:s,icon:o,changed:t!==r,action:Vf("span",{className:"inline-flex items-center gap-2",children:[Ne(mj,{checked:t,onChange:a,ariaLabelledBy:s}),Ne(qf,{label:e,changed:t!==r,onReset:()=>a(r)})]}),hint:n})}var BSe=fI.map(e=>({value:e,icon:Mu(e)}));function NSe(){let{theme:e}=ce(),o=ko(e).themes[0];return kc(o)??o?.accent??""}function hj(){let{chat:e,setChat:o}=mI(),t=uj(),r=NSe(),a=e.launcherIcon?pI(e.launcherIcon):oc;return Vf(ySe,{children:[Ne(Yf,{label:c("Show the chat bubble"),labelId:t,icon:Ne(PSe,{}),changed:!e.enabled,action:Vf("span",{className:"inline-flex items-center gap-2",children:[Ne(mj,{checked:e.enabled,onChange:n=>o({enabled:n}),ariaLabelledBy:t}),Ne(qf,{label:c("Show the chat bubble"),changed:!e.enabled,onReset:()=>o({enabled:!0})})]}),hint:e.enabled?c("The floating chat bubble shows in the corner of every page."):c("The chat bubble is hidden across the whole site.")}),Vf(xw,{title:c("Look"),children:[Ne(mt,{label:c("Button color"),icon:Ne(kSe,{}),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(Yf,{label:c("Icon"),icon:Ne(TSe,{}),value:Ne(qS,{value:a}),changed:a!==oc,action:Ne(qf,{label:c("Icon"),changed:a!==oc,onReset:()=>o({launcherIcon:""})}),children:Ne(wSe,{label:c("Icon"),value:a,options:BSe,onChange:n=>o({launcherIcon:n===oc?"":n})})}),Ne(Yf,{label:c("Position"),icon:Ne(_Se,{}),changed:e.launcherPosition!==Ks,action:Ne(qf,{label:c("Position"),changed:e.launcherPosition!==Ks,onReset:()=>o({launcherPosition:Ks})}),children:Ne(vSe,{options:[{label:c("Right"),id:"right"},{label:c("Left"),id:"left"}],value:e.launcherPosition,ariaLabel:c("Position"),onChange:n=>o({launcherPosition:n})})}),Ne(xI,{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(FSe,{label:c("Show on phones"),icon:Ne(ESe,{}),checked:e.showOnPhones,fallback:uI.showOnPhones,onChange:n=>o({showOnPhones:n})})]}),Vf(xw,{title:c("Wording"),children:[Ne(xI,{label:c("Title"),value:e.title,placeholder:ASe,onCommit:n=>o({title:n})}),Ne(xI,{label:c("Subtitle"),value:e.subtitle,placeholder:RSe,onCommit:n=>o({subtitle:n})}),Ne(xI,{label:c("Greeting message"),value:e.greeting,placeholder:LSe,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 Ys,Fragment as WP,jsxs as bj}from"react/jsx-runtime";import{useEffect as pwe,useId as Ij,useState as yj}from"react";import{SettingsField as uwe}from"efficient-easel/panel";import{jsx as rwe}from"react/jsx-runtime";import{forwardRef as DSe,createElement as yP}from"react";var xj={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 de=(e,o,t,r)=>{let a=DSe(({color:n="currentColor",size:s=24,stroke:i=2,title:l,className:d,children:f,...u},p)=>yP("svg",{ref:p,...xj[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&&yP("title",{key:"svg-title"},l),...r.map(([m,h])=>yP(m,h)),...Array.isArray(f)?f:[f]]));return a.displayName=`${t}`,a};var MSe=[["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"}]],bP=de("outline","brand-facebook","BrandFacebook",MSe);var HSe=[["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"}]],SP=de("outline","brand-instagram","BrandInstagram",HSe);var WSe=[["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"}]],wP=de("outline","brand-line","BrandLine",WSe);var $Se=[["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"}]],CP=de("outline","brand-linkedin","BrandLinkedin",$Se);var USe=[["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"}]],vP=de("outline","brand-pinterest","BrandPinterest",USe);var zSe=[["path",{d:"M15 10l-4 4l6 6l4 -16l-18 7l4 2l2 6l3 -4",key:"svg-0"}]],kP=de("outline","brand-telegram","BrandTelegram",zSe);var GSe=[["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"}]],TP=de("outline","brand-tiktok","BrandTiktok",GSe);var jSe=[["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"}]],PP=de("outline","brand-wechat","BrandWechat",jSe);var KSe=[["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"}]],EP=de("outline","brand-whatsapp","BrandWhatsapp",KSe);var VSe=[["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"}]],_P=de("outline","brand-x","BrandX",VSe);var YSe=[["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"}]],OP=de("outline","brand-youtube","BrandYoutube",YSe);var qSe=[["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"}]],AP=de("filled","brand-facebook-filled","BrandFacebookFilled",qSe);var XSe=[["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"}]],RP=de("filled","brand-instagram-filled","BrandInstagramFilled",XSe);var ZSe=[["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"}]],LP=de("filled","brand-linkedin-filled","BrandLinkedinFilled",ZSe);var JSe=[["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"}]],FP=de("filled","brand-pinterest-filled","BrandPinterestFilled",JSe);var QSe=[["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"}]],BP=de("filled","brand-tiktok-filled","BrandTiktokFilled",QSe);var ewe=[["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"}]],NP=de("filled","brand-whatsapp-filled","BrandWhatsappFilled",ewe);var owe=[["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"}]],DP=de("filled","brand-x-filled","BrandXFilled",owe);var twe=[["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"}]],MP=de("filled","brand-youtube-filled","BrandYoutubeFilled",twe);var Zdo="outline",gI={fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},awe={},HP={fillRule:"evenodd"},nwe=[["path",{...gI,d:"M21 4L3 11L7 13L9 19L12 15L17 20z"}],["path",{...HP,d:"M21 4L3 11L7 13L9 19L12 15L17 20zM15.212 8.939 10.576 13.576 11.424 14.424 16.061 9.788z"}]],swe=[["path",{...gI,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",{...awe,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("")}]],iwe=[["path",{...gI,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",{...gI,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",{...HP,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",{...HP,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("")}]],lwe=de("filled","brand-telegram-filled","BrandTelegramFilled",nwe),cwe=de("filled","brand-line-filled","BrandLineFilled",swe),dwe=de("filled","brand-wechat-filled","BrandWechatFilled",iwe),fwe={instagram:{outline:SP,solid:RP},facebook:{outline:bP,solid:AP},tiktok:{outline:TP,solid:BP},youtube:{outline:OP,solid:MP},x:{outline:_P,solid:DP},linkedin:{outline:CP,solid:LP},pinterest:{outline:vP,solid:FP},whatsapp:{outline:EP,solid:NP},telegram:{outline:kP,solid:lwe},line:{outline:wP,solid:cwe},wechat:{outline:PP,solid:dwe}};function gj({platform:e,iconStyle:o,size:t}){let r=fwe[e][o];return rwe(r,{size:t,stroke:1.75,"aria-hidden":"true",focusable:"false"})}var mwe={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 hwe({platform:e}){let{rows:o,saveLink:t}=Kf(),{value:r,error:a}=o[e],[n,s]=yj(r),[i,l]=yj(!1),d=Ij(),f=Ij();pwe(()=>s(r),[r]);let u=async()=>{if(n.trim()===r){n!==r&&s(r);return}l(!0),await t(e,n),l(!1)},p=RO[e];return bj(WP,{children:[Ys(uwe,{label:c(p),htmlFor:d,icon:Ys(gj,{platform:e,iconStyle:"outline",size:18}),children:Ys("input",{id:d,type:"text",inputMode:"url",value:n,placeholder:mwe[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&&Ys("p",{id:f,className:"sf-note sf-note--error",role:"alert",children:a})]})}function Sj({unavailable:e}){let{canSave:o}=Kf();return!o&&e?Ys(WP,{children:e}):bj(WP,{children:[Ys("p",{className:"es-field-hint",children:c("Paste a link to each profile. A platform left empty shows nothing on the site.")}),gu.map(t=>Ys(hwe,{platform:t},t))]})}import{jsx as Zs,Fragment as $we,jsxs as Uwe}from"react/jsx-runtime";import{useId as zwe,useMemo as Gwe}from"react";import{useEasel as jwe}from"efficient-easel/easel";import{SettingsField as Kwe,SettingsSwitch as Vwe}from"efficient-easel/panel";import{EyeIcon as Ywe}from"efficient-easel/icons";import{fieldShownInView as qwe}from"efficient-easel/fields";import{usePreviewDevice as Xwe}from"efficient-easel/draw/client";import{jsx as Xs,Fragment as Iwe}from"react/jsx-runtime";import{createContext as ywe,useContext as bwe,useLayoutEffect as Swe,useMemo as Cj,useRef as wwe,useState as vj}from"react";import{useEasel as kj,useSelectedFields as Cwe}from"efficient-easel/easel";import{fieldShownInView as vwe,Inspector as kwe,LEAD_BAND_KEY as Twe,planFields as Tj}from"efficient-easel/fields";function wj({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 xwe}from"react/jsx-runtime";import{EmptyState as gwe}from"efficient-shell/ui";function qs(){return xwe(gwe,{variant:"none",icon:!1,message:c("These settings apply to every view.")})}import{usePreviewDevice as Pwe}from"efficient-easel/draw/client";import{deviceField as Ewe}from"efficient-easel/screen/lib/document/device-fields";var _we="Text",$P=new Map,II=new Set,Owe=Object.fromEntries(Uf.map(e=>{let o=eB[e];return[e,Xs(o,{},e)]})),Pj=ywe(null),Awe={_partBody:Ewe("each",{type:"custom",render:()=>Xs(Rwe,{})})};function Rwe(){return Xs(Iwe,{children:bwe(Pj)})}function Or({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}=Cwe(),p=Cj(()=>a?{...d,...a.values}:d,[d,a?.values]),m=(ae,Oe)=>a?.keys.has(ae)?a.onChange(ae,Oe):u(ae,Oe),h=Pwe(),{appState:I,config:w}=kj(ae=>ae),S=j1(h,w,I.data.content??[],I.ui.itemSelector),v=n===void 0?mH(l,t):Awe,b=Cj(()=>{let ae=r?.length?Object.fromEntries(Object.entries(v).filter(([Oe])=>!r.includes(Oe))):v;return a?{...ae,...a.fields}:ae},[v,r,a?.fields]),y=gb(b,p,S),[k,F]=vj(()=>new Set(II)),T=vwe({},h),D={key:Twe,title:_we},P=kj(ae=>ae.selectedItem)!==null,L=a?.part??t??"",C=`${i}:${L}:${String(h)}`,[A,E]=vj(()=>({tab:$P.get(C)})),R=`${i}:${L}`,W=wwe(null),z={...S,node:p},Z=Tj(y,{values:p,context:z}).buckets,V=wj({allTabs:P,remembered:$P.get(C),inherited:W.current?.panel===R?W.current.tab:A.tab,buckets:Z,hasText:T&&o>0}),fe=!T&&!Z.includes(V)&&(Tj(gb(b,p,{...S,device:"desktop"}),{values:p,context:{...z,device:"desktop"}}).buckets.includes(V)||V==="Design"&&o>0);Swe(()=>{W.current={panel:R,tab:V}});let Ie=V==="Design";return Xs(Pj.Provider,{value:n??null,children:Xs(Iw.Provider,{value:a?p:null,children:Xs(kwe,{fields:y,values:p,onChange:m,readOnly:f,allTabs:P,showWhenContext:z,context:{itemWord:s},tab:V,onTab:ae=>{$P.set(C,ae),E({tab:ae})},tabIcons:Owe,idPrefix:i,ariaLabel:c("Section settings"),lead:Ie?e:null,leadFold:D,closedFolds:k,onFold:(ae,Oe)=>{Oe?II.delete(ae):II.add(ae),F(new Set(II))},children:fe&&Xs(qs,{})})})})}import{useMemo as Lwe}from"react";import{useEasel as Fwe}from"efficient-easel/easel";import{useSectionOps as Bwe}from"efficient-easel/screen/lib/document/use-section-ops";var Ej=new Map,Nwe=e=>{let o=Ej.get(e);return o||Ej.set(e,o=Qg(Zg(e),`part:${e}`)),o},Dwe=new Set(rv);function tc(e,o,t){let{getItemById:r,getSelectorForId:a}=Fwe(f=>f),n=Bwe(),s=r(e)?.props??{},i=Ss(s,o),l=JSON.stringify(i),d=Lwe(()=>Object.fromEntries(rv.map(f=>[f,i[f]])),[l]);return{part:o,fields:Nwe(t),values:d,keys:Dwe,onChange:(f,u)=>{let p=a(e),m=r(e);if(!p||!m)return;let h=zM(m.props??{},o,f,u);n.replaceComponent(p.zone,p.index,{...m,props:h})}}}import{Fragment as Mwe,createElement as Hwe}from"react";import{deviceField as UP}from"efficient-easel/screen/lib/document/device-fields";var Ko=()=>({type:"custom",render:()=>Hwe(Mwe)});var zP={words:Ko(),sourceNote:Ko(),style:Ko(),font:Ko(),italic:Ko(),fontSize:UP("each",Ko()),lineHeight:Ko(),letterSpacing:Ko(),paragraphSpacing:Ko(),padding:Ko(),align:UP("each",Ko()),letterCase:Ko(),fixedSizeHint:UP("each",Ko()),regionNote:Ko(),regionStyle:Ko()},Wwe=["fontSize","align"];function _j(e){return Wwe.includes(e)}var Oj={showTicker:Ko(),items:Ko()};var Zwe="root:default-zone";function Aj({heroId:e}){let{appState:o,dispatch:t}=jwe(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=Gwe(()=>{let m=n?.props.tickerItems;return Array.isArray(m)?m:JH.map(h=>({text:h}))},[n]),l=zwe(),d=Xwe(),f=m=>qwe(Oj[m],d),u=tc(e,QH,"block");if(!n)return Zs("p",{className:"sf-note",children:c("This ticker\u2019s hero is no longer on the page.")});let p=m=>t({type:"replace",destinationZone:Zwe,destinationIndex:a,data:{...n,props:{...n.props,...m}}});return Zs(Or,{motion:u,body:Uwe($we,{children:[!f("showTicker")&&!f("items")&&Zs(qs,{}),f("showTicker")&&Zs(Kwe,{label:c("Show ticker"),labelId:l,icon:Zs(Ywe,{}),action:Zs(Vwe,{checked:s,onChange:m=>p({showTicker:m}),ariaLabelledBy:l})}),f("items")&&Zs(Cw,{label:ww.label,icon:ww.icon,items:i,placeholder:"item",onChange:m=>p({tickerItems:m}),markup:!0})]})})}import{jsx as oe,Fragment as Jf,jsxs as ar}from"react/jsx-runtime";import{useContext as fCe,useEffect as GP,useRef as pCe,useState as Uj}from"react";import{FieldSelect as uCe,InspectorField as mCe,fieldShownInView as hCe}from"efficient-easel/fields";import{InertHint as Zj,SettingsField as xCe}from"efficient-easel/panel";import{InspectorUpLevel as vI}from"efficient-easel/chrome";import{StylesIcon as gCe,TypeIcon as ICe}from"efficient-easel/icons";import{useEasel as yCe}from"efficient-easel/easel";import{TextPartPanel as zj}from"efficient-easel/copy";import{Button as bCe,IconButton as SCe,Tooltip as wCe}from"efficient-shell/ui";import{jsx as Fj,jsxs as Jwe}from"react/jsx-runtime";import{DEFAULT_EASEL_STRINGS as Qwe}from"efficient-easel/strings";import{COPY_CELLS as rc,COPY_CELL_LENGTHS as Rj,CopyBox as eCe,lengthCellUnits as oCe}from"efficient-easel/copy";import{PaddingYIcon as tCe}from"efficient-easel/icons";import{onDesktopWords as rCe}from"efficient-easel/screen/lib/document/box-fields";var Lj=Qwe.copy.cells,aCe={kind:"spacing"},nCe=["left","center","right","justify"];function yI(e,o,t,r="desktop"){let a=_d(e),n=uC(r),s=e[n]??e.size??o.sizePx,i=$N(e,r),l=(f,u,p,m,h)=>{let I=jt[p];return oCe({preset:f,row:u,table:ga,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:Fj(tCe,{}),unit:"px",step:cC,shiftStep:10,min:iC,max:lC};return[{...rc.fontSize,key:"fontSize",value:e[n],styleValue:Math.round(o.sizePx),onChange:f=>t({[n]:f??null}),...l(rc.fontSize,Rj.fontSize,n,Math.round(o.sizePx),Lj.fontSize),...n==="size"?{}:{reset:{detail:i?rCe(f=>c(f),`${i.px}px`,i.view):void 0}}},{...rc.lineHeight,key:"lineHeight",value:a.lineHeight,styleValue:o.lineRatio,onChange:f=>t(f===void 0?{lineHeight:null,line:null}:{lineHeight:f})},{...rc.letterSpacing,key:"letterSpacing",scale:s,value:a.letterSpacingEm,styleValue:o.letterEm,onChange:f=>t(f===void 0?{letterSpacing:null,letter:null}:{letterSpacing:f})},{...rc.paragraphSpacing,key:"paragraphSpacing",value:e.paragraphSpacing,styleValue:0,onChange:f=>t({paragraphSpacing:f??null}),...l(rc.paragraphSpacing,Rj.paragraphSpacing,"paragraphSpacing",0,Lj.paragraphSpacing)},{...d,value:e.padding,styleValue:o.paddingPx,onChange:f=>t({padding:f??null}),...l(d,aCe,"padding",o.paddingPx,"Padding")}]}function Bj({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=yI(n,s,i),h=Ww(r,t);return Jwe("div",{className:"sf-part-textbox",children:[u,Fj(eCe,{value:e,onChange:o,multiline:t,placeholder:d,ariaLabel:f,rules:Cp,tools:h,barShows:p?"focus":"always",colors:r?l:[],colorNameOf:kt,align:a?{value:n.align??s.align,allow:nCe,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 Gj}from"efficient-easel/draw/client";import{jsx as bI,Fragment as sCe,jsxs as iCe}from"react/jsx-runtime";import{Button as Nj,Dialog as lCe}from"efficient-shell/ui";function Dj({styleName:e,onCancel:o,onConfirm:t}){return bI(lCe,{open:!0,onClose:o,role:"alertdialog",size:"sm",title:c("Update {style}?",{style:e}),footer:iCe(sCe,{children:[bI(Nj,{variant:"secondary",onClick:o,children:c("Cancel")}),bI(Nj,{variant:"primary",onClick:t,children:c("Update style")})]}),children:bI("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 CCe}from"efficient-easel/screen/components/ScreenDocumentContext";import{usePreviewDevice as vCe}from"efficient-easel/draw/client";import{shownTier as wI}from"efficient-easel/screen/lib/document/device-fields";import{TEXT_FIELD_MARKER as kCe,viewKeyAt as TCe}from"efficient-easel/draw";import{useSectionOps as PCe}from"efficient-easel/screen/lib/document/use-section-ops";import{useEaselHost as ECe}from"efficient-easel/screen/lib/host";function cCe(e){let o=new Set([...Object.keys(U(nm,e)??{}),...U(sm,e)??[]]);for(let[t,r]of Object.entries(U(Ub,e)??{}))r.verb==="snapshot"&&o.add(t);return[...o].sort()}var dCe={CollectionCard:"product",FooterMenu:"menu",Gallery:"product",GalleryItem:"product",ProductGrid:"product",ProductHero:"product",SpecTable:"product",Events:"blog",FeaturedCover:"blog",LongRead:"blog",SubscribeBlogs:"blog"},Mj={product:"Synced from the product.",blog:"Synced from the blog post.",menu:"Synced from the site menu."},Hj="Open",Wj={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 ac(e){let o=e?.source?.slug;return be(o)}function Xf(e){return U(dCe,e)??null}function $j(e,o){let t=Xf(e);return t&&cCe(e).includes(o)?t:null}function SI(e){let o=e?.menu?.id;return be(o)}function jP(e){return e?c(e):null}function jj(e){return e.kind==="role"?XI[e.role]:e.kind==="custom"?"Custom":null}function _Ce(e){let o=ra(e.role);return o?{kind:"role",role:o}:null}function OCe(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 CI(e,o,t,r){return _Ce(us(e,o))??OCe(t,r)}function ACe(e,o){if(!e.length)return null;let t=o(e[0]);return e.every(r=>o(r)===t)?t:null}function Kj(e){return[{value:Zf,label:c("No style"),description:c("Section\u2019s own")},...e.map(o=>({value:o.id,label:o.name,description:o.values.font?li(o.values.font)?.label:void 0}))]}var Zf="";function RCe({face:e,base:o,onPick:t}){let r=e.kind==="role"?e.role:Zf,a=[{label:c("No style"),value:Zf},...G0.map(n=>({label:c(XI[n]),value:n}))];return oe(uCe,{ariaLabel:c("Style"),value:r,options:a,inline:!0,onChange:n=>t(n===Zf?null:n),renderOption:n=>n.value===Zf?ar(Jf,{children:[oe("span",{className:"es-fsel-label sf-part-style-keep",children:n.label}),oe("span",{className:"sf-part-style-aside","aria-hidden":"true",children:c("Section\u2019s own")})]}):oe("span",{className:"es-fsel-label",style:{fontFamily:`var(--font-role-${n.value})`},children:n.label}),renderValue:()=>oe("span",{style:{fontFamily:o?.fontKey?`var(${li(o.fontKey)?.cssVar})`:void 0,fontWeight:o?.weight},children:jP(jj(e))}),valueText:n=>jP(jj(e))??n?.label??""})}var Jj=["regionNote","regionStyle"],LCe=Object.keys(zP).filter(e=>!Jj.includes(e));function Qj(e,o){return!e.some(o)}function FCe({sectionName:e,onBack:o,textEditor:t,styleRow:r,children:a,tabs:n}){let s=ar(Jf,{children:[t,r,a]});return ar("div",{className:"sf-part-panel",children:[oe(vI,{inline:!0,name:c(e),onSelect:o}),n?n(s):s]})}function kI({source:e,slug:o,menuId:t}){let r=ECe(),a=Wj[e],n=!a.needsSlug||!!o;return oe("div",{className:"sf-note sf-note--source",children:ar(Zj,{children:[c(Mj[e]),n?ar(Jf,{children:[" ",oe(bCe,{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(Hj)})]}):null]})})}var Vj=4,BCe=120;function Yj(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 qj({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 ar("div",{className:"sf-note",children:[oe("p",{children:oe("strong",{children:c(e.label)})}),l("regionNote")&&!f&&oe("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?ar(Jf,{children:[d,l("regionStyle")&&oe("p",{className:"es-field-hint",children:Yj(e)})]}):a?l("regionStyle")?oe(Jf,{children:oe(xCe,{label:c("Style"),icon:oe(gCe,{}),hint:Yj(e),children:oe(RCe,{face:t,base:r,onPick:a})})}):null:l("regionNote")&&oe("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")?oe(kI,{source:n,slug:s}):null,Qj([...Jj,"sourceNote",...d?["fontSize"]:[]],p=>l(p)&&(p!=="sourceNote"||!!n))&&oe(qs,{}),oe(vI,{inline:!0,name:c("Page"),onSelect:i})]})}function NCe({onBack:e}){return ar("div",{className:"sf-note",children:[oe("p",{children:oe("strong",{children:c("This part is no longer here.")})}),oe("p",{children:c("The section it belonged to has been changed or removed.")}),oe(vI,{inline:!0,name:c("Page"),onSelect:e})]})}function DCe({onBack:e,partId:o,why:t}){return ar("div",{className:"sf-note",children:[oe("p",{children:oe("strong",{children:c("This part's settings did not open.")})}),oe("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.")}),oe("p",{className:"sf-note-detail",children:ar("code",{children:[o," \u2014 ",t]})}),oe(vI,{inline:!0,name:c("Page"),onSelect:e})]})}function eK({nodeId:e,propKey:o,onBack:t,onEditStyle:r}){let{getItemById:a,getSelectorForId:n,config:s}=yCe(X=>X),i=PCe(),l=ZB(),{partStyle:d}=zl(),{fonts:f,textStyles:u}=ce(),p=fCe(CCe),m=!p?.capabilities?.hasSiteTheme,{persist:h}=Wi({themeFromDocument:m,tokenRef:p?.tokenRef,siteId:p?.siteId??null}),I=Rh({themeFromDocument:m,persist:h}),[w,S]=Uj(!1),v=vCe(),b=X=>(wI(v)!=="tablet"||_j(X))&&hCe(zP[X],v),y=pCe(null),k=a(e),F=n(e),T=k?s.components[k.type]:void 0,{key:D,row:P}=wr(o),L=T?.fields?.[D],C=P?il(L,P):L,A=Yr(e,o),E=k?.props??{},R=sl(C),W=Vm(C),z=_w(C),Z=k?Xf(k.type):null,V=k?$j(k.type,D):null,fe=P?gd(E[D],P):E[D],Ie=!!P&&!(Array.isArray(E[D])&&P.index<E[D].length);GP(()=>{XB(document)||y.current?.querySelector(".es-copy [contenteditable='true'], .es-copy textarea, .sf-copybox textarea, .sf-copybox input")?.focus()},[A]);let[ae,Oe]=Uj(0);GP(()=>Oe(0),[A]);let ve=!!k&&!Ie&&(!F||!C);GP(()=>{if(!ve||ae>=Vj)return;let X=setTimeout(()=>Oe(po=>po+1),BCe);return()=>clearTimeout(X)},[ve,ae]);let Ae=ve&&ae<Vj,Ue=tc(e,va(k?.type,o),"textPart");if(!k||Ie)return oe(NCe,{onBack:t});let No=Gl(k.type),Vo=No?Cc(No,o):null;if(No&&Vo){let X=d?.partId===A?d:null,po=No[Vo],ir=po.writable===!0&&!!F,Fa=kn=>{F&&i.replaceComponent(F.zone,F.index,{...k,props:ms(E,o,"role",kn)})};if(ir&&YE(po)){let kn=us(E,o),_0=Tn=>{if(!F)return;let YI=E;for(let[GV,jV]of Object.entries(Tn))YI=ms(YI,o,GV,jV??null);i.replaceComponent(F.zone,F.index,{...k,props:YI})},$V=wa(I.saved,I.old),UV=sC(kn)??"",zV=yI(kn,X?.base??Xj,_0,wI(v)).filter(Tn=>Tn.key==="fontSize"&&b(Tn.key));return oe(Or,{motion:Ue,body:oe(qj,{region:po,sizePx:X?.base.sizePx??null,face:CI(E,o,X,f),base:X?.base??null,source:Z,slug:ac(E),onBack:t,shows:b,ownLook:VN(kn),sizedStyle:oe(zj,{style:b("style")?{value:UV,options:Kj($V),onChange:Tn=>_0(Tn?{textStyle:Tn}:{textStyle:null,role:null}),onEditStyles:r}:void 0,cells:zV})})})}return oe(Or,{motion:Ue,body:oe(qj,{region:po,sizePx:X?.base.sizePx??null,face:CI(E,o,X,f),base:X?.base??null,onFollowStyle:ir?Fa:void 0,source:Z,slug:ac(E),onBack:t,shows:b})})}if(!F||!C)return Ae?oe("div",{className:"sf-note","aria-busy":"true"}):oe(DCe,{onBack:t,partId:A,why:F?"no field":"no selector"});let Yo=X=>{i.replaceComponent(F.zone,F.index,{...k,props:X})},mo=X=>{if(on(X).hidden!==on(fe).hidden||!R){let po=P?Tw(E,D,P,X):{...E,[D]:X};po&&Yo(po);return}th({node:k,propKey:o,kind:R,zone:F.zone,index:F.index},on(X).text,i.replaceComponent)},qo=fe,vo=d?.partId===A?d:null,pe=vo?.styleOwner,$=pe?a(pe.owner):null,Ze=pe&&$?n(pe.owner):null,Ce=!!(pe&&$&&Ze),Ee=Ce?$.props??{}:E,ho=Ce?X=>i.replaceComponent(Ze.zone,Ze.index,{...$,props:X}):Yo,xo=Ce?pe.kind:va(k?.type,o),lt=us(Ee,xo),Re=[{partKey:xo,face:CI(Ee,xo,vo,f),sizeGroup:vo?.sizeGroup??null,base:vo?.base??Xj,style:lt}],sr=ACe(Re,X=>X.sizeGroup),oi=Bi(vo?.inks),Bt=(X,po)=>{let ir=Ee;for(let Fa of Re)ir=ms(ir,Fa.partKey,X,po);ho(ir)},VI=X=>X?Bt("textStyle",X):dc({textStyle:null,role:null}),dc=X=>{let po=Ee;for(let ir of Re)for(let[Fa,kn]of Object.entries(X))po=ms(po,ir.partKey,Fa,kn??null);ho(po)},ti=R==="text"||R==="textarea",{text:ri,hidden:oa}=on(fe),La=C?.[kCe]?.label??o,Sn=oa?c("Show {label} on the slide",{label:c(La)}):c("Hide {label} on the slide",{label:c(La)}),fc=ar("div",{className:"sf-field-head",children:[oe(ICe,{}),oe("span",{className:"sf-field-label sf-field-label--inline",children:c(La)}),ti&&oe(wCe,{content:Sn,children:oe(SCe,{"aria-pressed":oa,"aria-label":Sn,onClick:()=>mo({text:ri,hidden:!oa}),children:oa?oe(Gj,{name:"eye-off",size:14}):oe(Gj,{name:"eye",size:14})})})]}),wn=!W&&z,hp=!!R&&(JF(C)||W||oa||!z),pc=CI(Ee,xo,vo,f),xp=pc.kind==="role"?pc.role:null,Cn=sC(lt)??uD(xp),E0=wa(I.saved,I.old),NV=Object.entries(lt).filter(([X,po])=>X!=="role"&&X!=="textStyle"&&po!==void 0).length,DV=()=>{let X=Ee;for(let po of Re){let{role:ir,textStyle:Fa}=po.style;X=HN(X,po.partKey),ir&&(X=ms(X,po.partKey,"role",ir)),Fa&&(X=ms(X,po.partKey,"textStyle",Fa))}ho(X)},vn=Cn,MV=mD(Re[0].style),HV=vn?E0.find(X=>X.id===vn)?.name??vn:"",WV=()=>{S(!1),vn&&(I.write(hD({saved:I.saved,old:I.old,styleId:vn,values:EC(Re[0].style)}),!0),DV())};return ar(FCe,{sectionName:T?.label??k.type,onBack:t,tabs:X=>oe(Or,{motion:Ue,body:X}),textEditor:b("words")?oe("div",{ref:y,className:"sf-part-text",children:hp?oe(Bj,{text:ri,onTextChange:X=>mo(ti?{text:X,hidden:oa}:X),multiline:Xm(R),markup:R!=="plainText",styled:!1,style:Re[0].style,base:Re[0].base,setValue:dc,colors:oi,placeholder:jP(kB(C))??void 0,ariaLabel:c(La),head:fc,typedOnCanvas:l===A}):R?ti?fc:null:oe(mCe,{field:C,name:o,value:qo,onChange:mo,id:`sf-part-${e}-${o}`})}):void 0,children:[V&&b("sourceNote")&&oe(kI,{source:V,slug:ac(E),menuId:SI(E)}),wn&&oe(zj,{style:b("style")?{value:Cn??"",options:Kj(E0),onChange:X=>VI(X||null),changed:NV>0,onEditStyles:r,onUpdateStyle:vn&&MV?()=>S(!0):void 0}:void 0,font:b("font")?{value:lt.font??"",styleValue:li(Re[0].base.fontKey)?.label,options:Ba.map(X=>({label:X.label,value:X.key})),onChange:X=>Bt("font",X||null)}:void 0,italic:b("italic")?{value:lt.italic,styleValue:HCe(u,Cn),onChange:X=>Bt("italic",X??null)}:void 0,cells:yI(Re[0].style,Re[0].base,dc,wI(v)).filter(X=>b(X.key)),align:b("align")?MCe(lt,Re[0].base.align,wI(v),Bt):void 0,letterCase:b("letterCase")?{value:lt.case??"",styleValue:Re[0].base.case,onChange:X=>Bt("case",X||null)}:void 0}),w&&vn&&oe(Dj,{styleName:HV,onCancel:()=>S(!1),onConfirm:WV}),wn&&sr===null&&b("fixedSizeHint")&&oe(Zj,{children:c("Fixed size \u2014 the site\u2019s Text setting doesn\u2019t resize this.")}),Qj(LCe,X=>b(X)&&(X==="words"||(X==="sourceNote"?!!V:X==="fixedSizeHint"?wn&&sr===null:wn)))&&oe(qs,{})]})}function MCe(e,o,t,r){let a=TCe("align",t),n=WN(e,t);return{value:e[a]??"",styleValue:n??o,onChange:s=>r(a,s||null)}}function HCe(e,o){return!o||!Array.isArray(e)?!1:e.find(t=>t?.id===o)?.values?.italic===!0}var Xj={fontKey:"",sizePx:16,weight:400,lineRatio:1.4,letterEm:0,align:"left",case:"none",paddingPx:0};import{jsx as Ar,jsxs as ZP,Fragment as jCe}from"react/jsx-runtime";import{useCallback as KCe,useRef as VCe,useState as op}from"react";import{InspectorIconButton as YCe}from"efficient-easel/chrome";import{useEasel as qCe}from"efficient-easel/easel";import{PopupMenu as XCe,PopupMenuItem as ZCe,PopupMenuLabel as RI}from"efficient-shell/ui";import{CopyToPageIcon as JCe}from"efficient-easel/icons";import{useEaselSession as QCe}from"efficient-easel/screen/lib/session-context";import{cloneNodeWithFreshIds as eve}from"efficient-easel/screen/lib/document/section-doc";import{FOOTER_TYPE as ove}from"efficient-easel/draw";import{isBackendError as nc}from"efficient-easel/screen/lib/backend-error";import{isEfficientBackend as dK}from"efficient-easel/screen/lib/session";var TI=wu(),KP=TI.set;function PI(e,o){KP(e,o)}function EI(e,o){let t=TI.get(e);KP(e,o??(t==="live"?"changed":t))}function _I(e,o){KP(e,o??"live")}function oK(e){return TI.get(e)}function tK(e){return TI.use(e)}function rK(e,o){return e==="live"&&o?"changed":e}function VP({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 aK(e){return e.map(o=>o.change==="take_down"?c("{name} (taken down)",{name:o.name}):o.name)}var nK="SharedSection",WCe=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i,Qf=e=>{let o=e?.content;return Array.isArray(o)?o:[]},ep=e=>{let o=e?.props?.id;return typeof o=="string"?o:void 0};function sK(e){if(e?.type!==nK)return null;let o=e.props?.section;return typeof o=="string"&&WCe.test(o)?o.toLowerCase():null}function iK(e){let o=[];for(let t of Qf(e)){let r=sK(t),a=ep(t);r&&a&&o.push({refId:a,section:r})}return o}function OI(e){let o=Qf(e)[0];return o&&typeof o=="object"&&ep(o)?o:null}function $Ce(e,o){return{type:nK,props:{id:e,section:o}}}function lK(e,o){let t=new Map,r=new Set,a=!1,n=Qf(e).map(s=>{let i=sK(s),l=ep(s);if(!i||!l||r.has(i))return s;let d=OI(o.get(i)),f=ep(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 cK(e,o,t){let r=new Map,a=!1,n=Qf(e).map(s=>{let i=ep(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=Qf(d).slice(1),u=OI(d);return r.set(l.section,u===s?d:{...d,content:[s,...f]}),a=!0,l.reference??$Ce(l.refId,l.section)});return{page:a?{...e,content:n}:e,docs:r}}function XP(e){return!!(e?.publish&&e.liveState)}function UCe(e,o){if(!XP(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 zCe(e,o){return async(t,r)=>{try{await bR()}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:[]}):ua(0),{version:r??null}}}function qP(e,o,t){let r=o?{siteId:o}:void 0;return{resolve:a=>e.load({slug:a,...r}).then(n=>(n&&(PI(n.id,n.live),S1(n.id,n.videoFrames)),n)),saveLayout:(a,n,s,i)=>e.save(a,{layout:n},{version:s,clientId:i??""}).then(l=>(EI(a,l.live),w1(a,l.videoFrames),ua(),l)),rereadVersion:e.version?a=>e.version(a):void 0,publish:XP(t)?zCe(t,r):e.publish?(a,n)=>e.publish(a,n?{version:n}:void 0).then(s=>(_I(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 GCe(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 P=oK(n.id);return P==="changed"||P==="never"||P===void 0&&i},I=P=>{p={...p,...P,docId:n?.id??null,unpublished:h(),sections:[...f.values()]};for(let L of m)L()},w=(P,L,C)=>{L?f.set(P,{section:P,title:l.get(P)?.title??"",problem:L,holder:C}):f.delete(P)},S=P=>P&&typeof P=="object"&&!Array.isArray(P)?P:{},v=P=>s.has(P),b=()=>new Map([...l].map(([P,L])=>[P,L.layout])),y=()=>`SharedSection-${typeof crypto<"u"&&crypto.randomUUID?crypto.randomUUID():Math.random().toString(36).slice(2)}`,k=(P,L,C,A)=>{let E=S(L);l.set(P,{layout:E,version:C,savedJson:JSON.stringify(E),title:A})},F={state:()=>p,subscribe:P=>(m.add(P),()=>{m.delete(P)})},T={sectionOf:P=>d.get(P)?.section??null,heldElsewhere:P=>{let L=d.get(P)?.section;return!!(L&&f.get(L)?.problem==="lock")},adopt:(P,L)=>{k(L.id,L.layout,L.layout_updated_at,L.title),d.set(P,{section:L.id,refId:y()}),u.set(L.id,L.used_on),I({})},place:P=>{if([...d.values()].some(A=>A.section===P.id))return null;let L=OI(S(P.layout)),C=typeof L?.props?.id=="string"?L.props.id:null;return!L||!C||!L.type?null:(k(P.id,P.layout,P.layout_updated_at,P.title),d.set(C,{section:P.id,refId:y()}),u.set(P.id,P.used_on),L)},usedOn:P=>u.get(P)??null,learn:P=>{for(let L of P){u.set(L.id,L.used_on);let C=l.get(L.id);C&&(C.title=L.title);let A=f.get(L.id);A&&f.set(L.id,{...A,title:L.title})}I({})}},D=async(P,L)=>{for(let[C,A]of P){let E=l.get(C),R=JSON.stringify(A);if(!(!E||R===E.savedJson||f.get(C)?.problem==="lock"))try{let W=await e.save(C,{layout:A},{version:E.version,clientId:L??""});EI(C,W.live),E.layout=A,E.version=W.version,E.savedJson=R,w(C,null)}catch(W){nc(W,"changed-elsewhere")?w(C,"conflict"):nc(W,"lock-taken")?w(C,"lock",W.holder??void 0):w(C,"save")}}P.size&&ua(),I({})};return{resolve:async P=>{if(KT(P===hr?null:F),ob(P===hr?null:T),l=new Map,d=new Map,f=new Map,u=new Map,P===hr)return t.resolve(P);let L=!1,[C,A]=await Promise.all([t.resolve(P),e.load({slug:hr,...o}).catch(()=>(L=!0,null))]);if(A&&!Jc(C?.layout)){PI(A.id,A.live);let V=S(A.layout);n={id:A.id,layout:V,version:A.version,savedJson:""}}else n=null;if(i=!1,!C)return I({conflict:null,saveFailed:!1,loadFailed:L}),C;let E=S(C.layout),R=iK(E),W=await Promise.all(R.map(V=>e.load({id:V.section,...o}).catch(()=>null)));R.forEach((V,fe)=>{let Ie=W[fe];Ie?(PI(Ie.id,Ie.live),k(V.section,Ie.layout,Ie.version,"")):(l.delete(V.section),f.set(V.section,{section:V.section,title:"",problem:"load"}))});let z=lK(E,b());if(d=z.held,!n)return d.size&&s.add(C.id),I({conflict:null,saveFailed:!1,loadFailed:L}),d.size?{...C,layout:z.working}:C;let Z=x1(z.working,n.layout);return n.savedJson=JSON.stringify(eb(Z,n.layout).chrome),s.add(C.id),I({conflict:null,saveFailed:!1,loadFailed:!1}),{...C,layout:Z}},saveLayout:async(P,L,C,A)=>{if(!v(P))return t.saveLayout(P,L,C,A);let E=n,R=E?eb(L,E.layout):{page:L,chrome:null},W=cK(R.page,d,b()),z=await t.saveLayout(P,W.page,C,A);if(await D(W.docs,A),!E)return z;let Z=JSON.stringify(R.chrome);if(!R.chrome||Z===E.savedJson||p.lockHolder)return z;try{let V=await e.save(E.id,{layout:R.chrome},{version:E.version,clientId:A??""});EI(E.id,V.live),ua(),E.layout=R.chrome,E.version=V.version,E.savedJson=Z,i=!0,I({conflict:null,saveFailed:!1})}catch(V){nc(V,"changed-elsewhere")?I({conflict:V.conflict??{savedBy:"",savedByYou:!1,secondsAgo:0}}):nc(V,"lock-taken")?I({lockHolder:V.holder??{name:"",secondsSinceSeen:0,secondsSinceHeld:0}}):I({saveFailed:!0})}return z},publish:t.publish?async(P,L)=>{let C=await t.publish(P,L),A=n;if(A&&v(P)&&!a&&e.publish&&h()&&!p.lockHolder){let E=await e.publish(A.id,A.version?{version:A.version}:void 0);_I(A.id,E.live),E.version!==null&&(A.version=E.version),i=!1,I({})}if(v(P)&&!a&&e.publish)for(let[E,R]of l){if(f.get(E)?.problem==="lock")continue;let W=await e.publish(E,R.version?{version:R.version}:void 0);_I(E,W.live),W.version!==null&&(R.version=W.version)}return C}:void 0,lock:r?{claim:async(P,L,C)=>{let A=await r.claim(P,L,C);if(!v(P))return A;let E=n;if(E)try{await r.claim(E.id,L,!1),p.lockHolder&&I({lockHolder:null})}catch(R){nc(R,"lock-taken")&&I({lockHolder:R.holder??{name:"",secondsSinceSeen:0,secondsSinceHeld:0}})}for(let R of l.keys())try{await r.claim(R,L,!1),f.get(R)?.problem==="lock"&&w(R,null)}catch(W){nc(W,"lock-taken")&&w(R,"lock",W.holder??void 0)}return l.size&&I({}),A},release:async(P,L)=>{if(await r.release(P,L),!v(P))return;let C=n;C&&!p.lockHolder&&await r.release(C.id,L).catch(()=>{});for(let A of l.keys())f.get(A)?.problem!=="lock"&&await r.release(A,L).catch(()=>{})}}:void 0,pinnedChrome:F}}function AI(e){let o=(t,r,a)=>e.save(t,r.layout?{...r,layout:KO(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 Euo(e,o,t){return e.update(o,VO(t))}function _uo(e,o=je(),t=lT(),r={}){let a=dK(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=XP(o.site)?o.site:void 0,u=AI(o.pages),p=qP(u,e,f),m=d?GCe(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,...fK(p.resolve),lock:o.lock,...m,site:s?()=>o.site.get(n):void 0,siteLiveState:f?()=>f.liveState(n):void 0,siteVersions:UCe(f,n),updateSite:s&&i?h=>i(h,n):void 0,previewHref:o.preview?h=>o.preview.href(h):void 0}}function Ouo(e,o=je(),t=lT()){let r=dK(o),a=o.templates,n=a?AI(a.pages(e)):{list:()=>Promise.reject(new Error(YP)),load:()=>Promise.reject(new Error(YP)),save:()=>Promise.reject(new Error(YP))};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},...qP(n,void 0),...fK(qP(n,void 0).resolve),publish:void 0,templateName:a?()=>a.get(e).then(s=>s.name):void 0}}function fK(e){return{resolve:o=>(KT(null),ob(null),e(o))}}var YP="This editor's backend has no website templates.";function tve(e,o,t){let r=eve(e,void 0,o);return t?.(r)??r}function pK({node:e,currentSlug:o,siteId:t,tokenRef:r,runAuthed:a,onNotify:n}){let[s,i]=op(!1),[l,d]=op(null),f=QCe(),u=qCe(T=>T.config.components),[p,m]=op(!1),[h,I]=op(null),w=VCe(null),[S,v]=op(null),b=KCe(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 T=w.current?.getBoundingClientRect();T&&v({top:T.bottom+6,right:Math.max(8,window.innerWidth-T.right)}),d(null),m(!1),b(),i(!0)},k=(l??[]).filter(T=>T.slug!==o),F=async T=>{if(h)return;I(T.slug);let D=tve(e,u,f.documentHooks?.storedNode),P=await a(()=>rve(je(f).pages,T,D));I(null),i(!1),n?.(P?c("Duplicated to \u201C{name}\u201D",{name:T.label}):c("Couldn\u2019t duplicate the section \u2014 please retry"),P?"success":"error")};return ZP(jCe,{children:[Ar("span",{"data-menu-toggle":!0,style:{display:"contents"},children:Ar(YCe,{buttonRef:w,label:c("Duplicate to another page"),hasPopup:"menu",expanded:s,onClick:y,children:Ar(JCe,{size:15})})}),s&&S&&Ar(XCe,{portal:!0,style:{top:S.top,right:S.right},onClose:()=>i(!1),children:ZP("div",{role:"menu","aria-label":c("Duplicate to page"),children:[Ar(RI,{children:c("Duplicate to page")}),p?Ar(RI,{children:c("Couldn\u2019t load pages")}):l===null?Ar(RI,{children:c("Loading\u2026")}):k.length===0?Ar(RI,{children:c("No other pages")}):k.map(T=>ZP(ZCe,{role:"menuitem",disabled:h!==null,onClick:()=>{F(T)},children:[Ar("span",{className:"min-w-0 flex-1 truncate",children:T.label}),h===T.slug?Ar("span",{className:"shrink-0 text-xs",children:c("Copying\u2026")}):T.draft&&Ar("span",{className:"shrink-0 text-xs",children:c("draft")})]},T.id))]})})]})}async function rve(e,o,t){let r=AI(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===ove);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 Ave}from"efficient-easel/screen/components/ScreenDocumentContext";import{useSectionOps as Rve}from"efficient-easel/screen/lib/document/use-section-ops";import{SELECTION_MODE as oho,isSelectionMode as t0}from"efficient-easel/screen/lib/screen-parts";import{usePreviewParts as Lve}from"efficient-easel/draw/client";import{jsx as tp,jsxs as ave}from"react/jsx-runtime";import{SettingsDrill as nve}from"efficient-easel/panel";import{UiIcon as sve}from"efficient-easel/draw/client";var ive="Not shown on the page";function lve({part:e,onOpen:o}){return tp(nve,{name:c(e.label),preview:e.offPage?c(ive):e.preview||c("Empty"),offPage:e.offPage,status:e.hidden?tp("span",{className:"sf-entry-eye",role:"img","aria-label":c("Hidden on the page"),children:tp(sve,{name:"eye-off",size:14})}):void 0,onOpen:()=>o(e.key)})}function JP(e){return e.filter(o=>!o.identifier)}function uK({parts:e,onOpen:o,heading:t=!0}){let r=JP(e);return r.length?ave("div",{className:"sf-entries",children:[t?tp("h3",{className:"sf-entries-head",children:c("Text")}):null,r.map(a=>tp(lve,{part:a,onOpen:o},a.key))]}):null}import{HEADER_TYPE as Fve,ROOT_ZONE as TK}from"efficient-easel/draw";import{HEADER_TYPE as St,FOOTER_TYPE as eo,newNodeId as cve}from"efficient-easel/draw";function LI(){return{type:St,props:{id:cve(St)}}}var mK=[{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"}],dve=mK.filter(e=>e.type!=="FooterLogo"&&e.type!=="FooterGroup"),fve="FooterGroup",hK="blocks";function xK(e){return e===eo?mK:e===fve?dve:null}function FI(){let e=(o,t)=>({type:o,props:{id:`${o}-${crypto.randomUUID()}`,...t}});return[e("FooterLogo",{widthPct:100,align:"left",tagline:""}),e("FooterEmailSignup",{...KR}),e("FooterPayment",{...mm})]}function QP(e){switch(e?.type){case Qe:case Ge:return c("On every page");case St:case eo:return c("On every page \xB7 old style");default:return null}}var gK=()=>null,IK=()=>c("Changed on every page");function BI(e,o){let t=eO(e,o);if(t)return t;let r=d1(e,o);if(!r)return null;let a=r.group===Qe;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 NI,Fragment as uve,jsxs as mve}from"react/jsx-runtime";import{useState as hve}from"react";import{createNode as xve,newId as gve}from"efficient-easel/data";import{useEasel as Ive}from"efficient-easel/easel";import{Banner as yve,Button as e0}from"efficient-shell/ui";import{useScreenDocument as bve}from"efficient-easel/screen/components/ScreenDocumentContext";var pve=["FooterPayment"];function yK(e,o){let{id:t,...r}=e.props;for(let a of Lr(e))r[a]=r[a].map(n=>yK(n,o));return o(e.type,r)}var rp=(e,o)=>{if(!pve.includes(e.type))return null;bg();let t=ln(e.type);return t?Os({type:e.type,props:{...e.props}},t).nodes.map(r=>yK(r,o)):null};function bK(){let{appState:e,dispatch:o,config:t}=Ive(f=>f),{readOnly:r}=bve(),[a,n]=hve(!1),s=e.data.content;if(r||s.some(f=>f.type===Ge))return null;let i=s.find(f=>f.type===eo)??null,l=(f,u)=>xve(t,f,u),d=()=>{let f=bf(i,l,gve(Ge),rp);o({type:"setData",data:u=>({...u,content:[...vu(u.content,f)]}),recordHistory:!0}),n(!1)};return NI(yve,{tone:"info",title:c("This footer uses the old layout"),action:a?mve(uve,{children:[NI(e0,{variant:"primary",size:"sm",onClick:d,children:c("Switch now")}),NI(e0,{variant:"secondary",size:"sm",onClick:()=>n(!1),children:c("Cancel")})]}):NI(e0,{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 o0,jsxs as Sve}from"react/jsx-runtime";import{InspectorUpLevel as SK}from"efficient-easel/chrome";function wK({nodeId:e,part:o,sectionName:t,onUpToSection:r}){let{select:a}=hI(),n=tc(e,o,"picture");return Sve("div",{children:[o!=="media"?o0(SK,{inline:!0,name:c(Ea.media),onSelect:()=>a(Ts(e,"media"))}):o0(SK,{inline:!0,name:c(t),onSelect:r}),o0(Or,{part:o,motion:n,itemWord:c(Ea[o])})]})}import{HintsToggle as Bve,SettingsSwitch as Nve,hintsFoldClass as Dve}from"efficient-easel/panel";import{useHints as Mve}from"efficient-easel/screen/lib/hints";var EK={kind:"header"},a0={kind:"website"},_K={kind:"website",tab:hl,revealPageGroup:!0},OK={kind:"chat"},AK={kind:"social"},ap="Part";function Hve(e){return c("Part of {name}",{name:c(e)})}function Wve(e,o,t){let r=e.describeNode(o);return{name:t,kindLabel:r?Hve(r.label):c(ap)}}function $ve(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 RK({what:e}){let o=$ve(e);return bn("div",{className:"sf-note",children:[Fe("p",{children:Fe("strong",{children:o.title})}),bn("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 r0(e){let o=ef[e];return{name:Ea[e],kindLabel:ap,icon:o,head:(t,r)=>{if(t.kind!==o)return null;let a=r.describeNode(t.nodeId);if(!a)return null;let n=PK({name:c(hx(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?Fe(wK,{nodeId:t.nodeId,part:e,sectionName:r.describeNode(t.nodeId)?.label??"Hero",onUpToSection:()=>r.onSelectNode(t.nodeId)}):null}}var Uve={header:{name:"Header",kindLabel:"Site settings",icon:"header",render:(e,o)=>{let t=o.hostPanels?.header;return t?Fe(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)=>Fe(Lh,{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:()=>Fe(hj,{})},social:{name:"Social links",kindLabel:"Site settings",icon:"social",render:()=>Fe(Sj,{unavailable:Fe(RK,{what:"Social link"})})},ticker:{name:Ws,kindLabel:ap,icon:"ticker",head:(e,o)=>e.kind==="ticker"?Wve(o,e.heroId,c(Ws)):null,render:e=>Fe(Aj,{heroId:e.kind==="ticker"?e.heroId:""})},heroMedia:r0("media"),heroImage:r0("image"),heroImage2:r0("image2"),part:{name:ap,kindLabel:ap,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}=wr(e.propKey),n=a?il(t.fields[r],a):t.fields[r],s=Gl(t.type),i=s?Cc(s,e.propKey):null,l=s&&i?s[i].label:DM[e.propKey],d=l?c(l):_B(c(Sd(oh(n??{},r))),a),f=PK({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"?Fe(eK,{nodeId:e.nodeId,propKey:e.propKey,onBack:()=>o.onSelectNode(e.nodeId),onEditStyle:o.onOpenSiteStyles}):null}},zve=new Set(["header","website","chat"]);function Gve(e,o){if(e==="selection")return null;let t=Uve[e];return zve.has(e)&&!o.hasSiteSettings?{...t,kindLabel:"Not part of a template",render:()=>Fe(RK,{what:t.name})}:t}function LK({mode:e,onOpenWebsiteSettings:o,onOpenSiteStyles:t,onOpenPageStyles:r,onSelectNode:a,hideNodeActions:n=!1,onNotify:s,onHidePanel:i}){let{capabilities:l,tokenRef:d,notifyParent:f,currentSlug:u,siteId:p,runAuthed:m,readOnly:h,navigate:I}=Ave(),{rows:w}=Fd(),S=w?.find(Ee=>Ee.slug===u)??null,v=Cve(),b=Object.keys(v.fields).some(Ee=>!Ee.startsWith("_")&&!Rd.includes(Ee)),{websiteName:y}=ce(),k=Rve({readOnly:h}),{select:F}=Lve(),{selectedItem:T,getItemById:D,getSelectorForId:P,config:L,appState:C}=wve(Ee=>Ee),A=_ve(L,T?{type:T.type,props:T.props}:null),E=T?MB(A??L.components[T.type]?.fields,T.props):[],R=Ee=>L.components[Ee]?.label??Ee,W=T?P(T.props.id):void 0,z=Gve(e.kind,l),Z=Ove(),V={capabilities:l,tokenRef:d,hostPanels:Z.chrome?.panels,describeNode:Ee=>{let ho=D(Ee);if(!ho)return null;let xo=L.components[ho.type];return{type:ho.type,label:xo?.label??ho.type,fields:xo?.fields??{},props:ho.props??{}}},siteId:p,websiteName:y??null,notifyParent:f,onNotify:s,onOpenWebsiteSettings:o,onOpenSiteStyles:t,onSelectNode:a},fe=z?.head?.(e,V)??null,Ie=cj({kind:S?.kind,pageName:S?.label}),ae=fe?.name??(z?c(z.name):T?c(R(T.type)):Ie.name),Oe=fe?.kindLabel??(z?c(z.kindLabel):T?W&&W.zone!==TK?c("Block"):c("Section"):Ie.kindLabel),ve=z?z.icon:T?T.type:"page",Ae=t0(e)&&T?Xf(T.type):null,Ue=!!T&&!!W&&W.zone===TK&&T.type!==eo&&T.type!==Fve,No=BI(C?.data,T),Vo=()=>{No||W&&k.duplicateComponent(W.zone,W.index)},Yo=()=>{W&&(k.removeComponent(W.zone,W.index),k.select(null))},mo=T?L.components[T.type]?.defaultProps?.previewHover:void 0,qo=t0(e)&&!!T&&!!W&&mo!==void 0,vo=qo&&T.props.previewHover===!0,pe=()=>{!T||!W||k.replaceComponent(W.zone,W.index,{...T,props:{...T.props,previewHover:!vo}})},{shown:$,setShown:Ze}=Mve(),Ce=!!(z||T||b);return bn("div",{className:`es-sidepanel es-sidepanel--right sf-panel sf-panel--right ${Dve($)}`.trim(),children:[Fe(Tve,{icon:Fe(Vs,{type:ve,size:15}),name:ae,kind:Oe,actions:!n&&t0(e)&&T&&T.type!==eo?bn(CK,{children:[Fe(vK,{label:c("Duplicate section"),title:No??void 0,disabled:No!==null,onClick:Vo,children:Fe(Pve,{size:15})}),Ue&&l.hasSiteSettings&&Fe(pK,{node:T,currentSlug:u,siteId:p??void 0,tokenRef:d,runAuthed:m,onNotify:s}),Fe(vK,{label:c("Remove section"),danger:!0,onClick:Yo,children:Fe(Eve,{size:15})}),i?Fe(kK,{side:"right",onHide:i,divider:!0}):null]}):i?Fe(kK,{side:"right",onHide:i}):void 0}),qo&&bn("div",{className:"sf-preview-pin",children:[bn("div",{className:"sf-preview-pin-text",children:[Fe("span",{className:"sf-preview-pin-label",children:c("Preview hover state")}),Fe("span",{className:"sf-preview-pin-hint",children:c("not shown live")})]}),Fe(Nve,{checked:vo,onChange:pe,ariaLabel:c("Preview hover state")})]}),bn("div",{className:"sf-insp-body es-insp-body sf-scroll",children:[z?z.render(e,V):T?bn(CK,{children:[T.type===eo&&l.hasSiteSettings&&Fe(bK,{}),Fe(oR,{children:Fe(Or,{entries:Fe(uK,{parts:E,heading:!1,onOpen:Ee=>F(Yr(T.props.id,Ee))}),entryCount:JP(E).length,itemWord:ae})}),Ae&&Fe(kI,{source:Ae,slug:ac(T?.props),menuId:SI(T?.props)})]}):b?Fe(Or,{omit:Rd}):Fe(kve,{variant:"none",icon:!1,message:c("Select a section or block to edit it."),children:r&&Fe(vve,{variant:"secondary",onClick:r,children:c("This page")})}),Ce&&Fe(Bve,{shown:$,onChange:Ze,label:c("Show hints")})]})]})}import{jsx as x,jsxs as B,Fragment as MK}from"react/jsx-runtime";var Eo={dark:"var(--sf-thumb-bar-dark)",soft:"var(--sf-thumb-bar-light)",accent:"var(--sf-thumb-accent)",tint:"var(--sf-thumb-accent-tint)",block:"var(--sf-thumb-block)",line:"var(--sf-thumb-border)",card:"var(--sf-thumb-card)"},n0="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:Eo[t],flex:"none",...a}})}var jve={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 Ra({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 MI({children:e}){return x("span",{style:{fontSize:"4.64cqw",fontWeight:700,letterSpacing:"0.06em",textTransform:"uppercase",color:g.muted},children:e})}function FK({over:e,overTone:o,head:t,headSize:r=11.5,cta:a,ctaBg:n,ctaFg:s,tone:i}){return B(MK,{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 s0({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(Ra,{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 Aa({k:e,v:o,ok:t}){return B("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",gap:6,padding:"3.5px 2px",borderBottom:`1px solid ${g.rule}`,fontSize:"3.98cqw",color:g.muted},children:[x("span",{children:e}),B("span",{style:{display:"flex",gap:6,alignItems:"center"},children:[x("b",{style:{color:g.text,fontWeight:700},children:o}),t&&x("span",{style:{color:g.rust,fontWeight:700},children:"\u2713"})]})]})}function We({title:e,children:o}){return B("div",{style:{...J,background:g.card,padding:"9px 10px",display:"flex",flexDirection:"column",gap:6},children:[x(MI,{children:e}),o]})}function BK({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 i0({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 np({n:e,label:o,tone:t=g.text}){return B("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:1,minWidth:0},children:[x("b",{style:{fontSize:"8.16cqw",lineHeight:1,color:t},children:e}),x("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.08em",textTransform:"uppercase",opacity:.62,color:t},children:o})]})}function Co({children:e,w:o}){return x("span",{style:{fontSize:"3.98cqw",lineHeight:1.45,color:g.muted,width:o,display:"block"},children:e})}function DI({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 NK({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 Kve={wheelslisting:x(We,{title:"All wheels",children:x("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[["Ridge 19","20\xD79 +12","$365"],["Ridge 29","18\xD79 +20","$410"],["Ridge 39","17\xD78 \u221210","$455"]].map(([e,o,t])=>B("div",{style:{display:"flex",alignItems:"center",gap:6},children:[x("span",{style:{width:20,height:15,borderRadius:3,flex:"none",position:"relative",overflow:"hidden",...Xe(g.paper,g.paper2,150)},children:x(Ra,{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(We,{title:"Tyres that suit",children:x("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(3,1fr)",gap:5,minHeight:0},children:[["Ridge Grappler","$489"],["Trail Grappler","$525"],["Terra Grappler","$438"]].map(([e,o])=>B("div",{style:{display:"flex",flexDirection:"column",gap:2,minWidth:0},children:[x("div",{style:{flex:1,minHeight:0,borderRadius:3,position:"relative",overflow:"hidden",background:g.ink},children:x("span",{style:{position:"absolute",left:"50%",top:"50%",transform:"translate(-50%,-50%)",width:26,height:26,borderRadius:"50%",border:`5px solid ${g.mark2}`,boxSizing:"border-box"}})}),x("span",{style:{fontSize:"3.32cqw",fontWeight:600,color:g.text,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},children:e}),x("span",{style:{fontSize:"3.32cqw",color:g.muted},children:o})]},e))})}),tyresizes:x(We,{title:"Available sizes",children:x("div",{style:{flex:1,display:"flex",flexWrap:"wrap",gap:4,alignContent:"center"},children:["265/65R17","285/70R17","265/60R18","275/55R20"].map((e,o)=>x("span",{style:{fontSize:"3.65cqw",fontWeight:600,padding:"5px 7px",borderRadius:3,border:`1px solid ${o===0?g.rust:g.rule}`,color:o===0?g.rust:g.text,background:o===0?g.paper:g.card},children:e},e))})}),tyrefitment:B(We,{title:"Will it fit your car?",children:[x("div",{style:{display:"flex",gap:3},children:["Make","Model","Year","Trim"].map(e=>B("span",{style:{flex:1,minWidth:0,fontSize:"3.32cqw",color:g.muted,background:g.paper,border:`1px solid ${g.rule}`,borderRadius:3,padding:"4px 5px",display:"flex",justifyContent:"space-between",gap:2,overflow:"hidden",whiteSpace:"nowrap"},children:[e," ",x("span",{style:{color:g.muted},children:"\u25BE"})]},e))}),x("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:2,justifyContent:"center",minHeight:0},children:[["265/65R17","Fits",!0],["285/70R17","Not your size",!1]].map(([e,o,t])=>B("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"baseline",gap:6,borderTop:`1px solid ${g.rule}`,paddingTop:3},children:[x("span",{style:{fontSize:"3.32cqw",fontWeight:600,color:g.text},children:e}),x("span",{style:{fontSize:"3.32cqw",fontWeight:t?700:400,letterSpacing:"0.06em",color:t?g.warm:g.muted},children:o})]},e))})]}),eutyrelabel:B("div",{style:{...J,background:g.card,padding:"9px 11px",display:"flex",gap:8,alignItems:"center"},children:[x("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:1.5},children:[["A","42%"],["B","56%"],["C","70%"],["D","84%"]].map(([e,o],t)=>B("div",{style:{display:"flex",alignItems:"center",gap:3},children:[x("span",{style:{width:o,height:6,borderRadius:"0 2px 2px 0",background:t===1?g.rust:g.mark1}}),x("span",{style:{fontSize:"3.32cqw",fontWeight:700,color:t===1?g.rust:g.muted},children:e})]},e))}),B("div",{style:{flex:"none",display:"flex",flexDirection:"column",gap:3,alignItems:"center"},children:[x("b",{style:{fontSize:"6.63cqw",lineHeight:1,color:g.text},children:"72"}),x("span",{style:{fontSize:"3.32cqw",letterSpacing:"0.08em",color:g.muted},children:"dB"})]})]}),bundleoffer:B("div",{style:{...J,background:g.paper,padding:"9px 11px",display:"flex",flexDirection:"column",gap:5,justifyContent:"center"},children:[x(MI,{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(Ra,{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(We,{title:"Who do you need?",children:x("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[["Fitment help","the workshop"],["Order status","the front desk"],["Trade accounts","sales"]].map(([e,o])=>B("div",{style:{display:"flex",alignItems:"center",gap:5},children:[x("b",{style:{flex:1,fontSize:"4.31cqw",color:g.text},children:e}),x("span",{style:{fontSize:"3.65cqw",color:g.muted},children:o}),x("span",{style:{fontSize:"4.64cqw",color:g.rust,lineHeight:1},children:"\u203A"})]},e))})}),contactlocations:x(We,{title:"Find us",children:x("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(2,1fr)",gap:5,minHeight:0},children:[["Brisbane","7 Kerry Rd","Mon\u2013Sat"],["Townsville","12 Enterprise","Mon\u2013Fri"]].map(([e,o,t])=>B("div",{style:{border:`1px solid ${g.rule}`,borderRadius:4,padding:"5px 6px",display:"flex",flexDirection:"column",gap:1},children:[x("b",{style:{fontSize:"4.31cqw",color:g.text},children:e}),x("span",{style:{fontSize:"3.32cqw",color:g.muted},children:o}),x("span",{style:{fontSize:"3.32cqw",color:g.rust,fontWeight:700},children:t})]},e))})}),citypictures:x(We,{title:"Our studios",children:B("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:3,minHeight:0},children:[x("span",{style:{fontSize:"3.32cqw",letterSpacing:"0.12em",fontWeight:700,color:g.muted},children:"A \xB7 AMERICAS"}),x("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(3,1fr)",gap:4,minHeight:0},children:["Los Angeles","Miami","Toronto"].map(e=>B("div",{style:{position:"relative",minHeight:0},children:[x(K,{r:3,style:{...J,background:`linear-gradient(transparent 45%,${g.scrim} 45%),${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(We,{title:"Find us",children:x("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(2,1fr)",gap:5,minHeight:0},children:[["Brisbane","7 Kerry Rd"],["Townsville","12 Enterprise"]].map(([e,o])=>B("div",{style:{position:"relative",padding:"4px 5px",display:"flex",flexDirection:"column",gap:2,minHeight:0},children:[x(K,{r:4,style:{...J,background:"none",border:`1px solid ${g.rule}`}}),x("b",{style:{position:"relative",fontSize:"4.31cqw",color:g.text},children:e}),x("span",{style:{position:"relative",fontSize:"3.32cqw",color:g.muted},children:o}),B("div",{style:{flex:1,minHeight:0,position:"relative"},children:[x(K,{r:3,style:{...J,...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(We,{title:"Send us a message",children:B("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[B("div",{style:{display:"flex",gap:5},children:[x(DI,{label:"Name"}),x(DI,{label:"Email"})]}),x(DI,{label:"Message",filled:!0}),x(NK,{children:"SEND"})]})}),appointmentbooking:x(We,{title:"Book a fitting",children:B("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[x("div",{style:{display:"flex",gap:3},children:["Mon","Tue","Wed","Thu"].map((e,o)=>x("span",{style:{flex:1,textAlign:"center",fontSize:"3.32cqw",fontWeight:o===2?700:500,padding:"4px 0",borderRadius:3,background:o===2?g.text:g.paper,color:o===2?g.onInk:g.muted},children:e},e))}),x("div",{style:{display:"flex",gap:3},children:["8:00","10:30","13:00","15:30"].map((e,o)=>x("span",{style:{flex:1,textAlign:"center",fontSize:"3.32cqw",padding:"4px 0",borderRadius:3,border:`1px solid ${o===1?g.rust:g.rule}`,color:o===1?g.rust:g.muted,background:o===3?g.paper:g.card,textDecoration:o===3?"line-through":"none"},children:e},e))})]})}),reviewform:x(We,{title:"Leave a review",children:B("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:5,justifyContent:"center"},children:[x(i0,{filled:4,size:14}),x(DI,{label:"Your review",filled:!0}),x(NK,{children:"POST"})]})}),submitbuild:x(We,{title:"Show us your build",children:B("div",{style:{flex:1,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:3,border:`1px dashed ${g.mark1}`,borderRadius:5,background:g.paper},children:[x("span",{style:{fontSize:"6.63cqw",lineHeight:1,color:g.rust,fontWeight:300},children:"+"}),x("span",{style:{fontSize:"3.65cqw",color:g.muted},children:"Drop a photo of your rig"})]})}),masthead:B("div",{style:{...J,background:g.paper,display:"flex",flexDirection:"column",justifyContent:"center",padding:"0 13px",gap:5},children:[x("span",{style:{height:1.5,background:g.text}}),x("span",{style:{fontSize:"7.65cqw",fontWeight:800,letterSpacing:"0.02em",color:g.text,lineHeight:1},children:"THE TRACK"}),B("div",{style:{display:"flex",justifyContent:"space-between",fontSize:"3.65cqw",letterSpacing:"0.1em",textTransform:"uppercase",color:g.muted},children:[x("span",{children:"Issue 14"}),x("span",{children:"Spring 2026"})]}),x("span",{style:{height:1,background:g.rule}})]}),featuredcover:B("div",{style:{...J,overflow:"hidden",...Xe(g.ink,g.inkSoft2)},children:[x(Ra,{size:92,style:{right:-18,top:-14}}),x("div",{style:{position:"absolute",inset:0,background:`linear-gradient(0deg,${g.scrim},transparent 62%)`}}),B("div",{style:{position:"absolute",left:12,right:12,bottom:11,display:"flex",flexDirection:"column",gap:3},children:[x("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.16em",fontWeight:700,color:g.warm},children:"FEATURE"}),x("span",{style:{fontSize:"6.16cqw",lineHeight:1.15,fontWeight:700,color:g.onInk},children:"Four days on the Madigan Line"})]})]}),longread:B("div",{style:{...J,background:g.card,padding:"10px 14px",display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[x("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.14em",fontWeight:700,color:g.rust},children:"12 MIN READ"}),x("span",{style:{fontSize:"6.02cqw",lineHeight:1.15,fontWeight:700,color:g.text},children:"What breaks first, and why"}),x(Co,{children:"Every failure starts in the same place:"}),x(Co,{w:"80%",children:"the bolt nobody re-torqued."})]}),articlebody:B("div",{style:{...J,background:g.card,padding:"10px 22px",display:"flex",flexDirection:"column",gap:4,justifyContent:"center",alignItems:"center",textAlign:"center"},children:[x("span",{style:{fontSize:"4.97cqw",lineHeight:1.2,fontWeight:700,color:g.text},children:"Why offset beats width"}),x(Co,{w:"100%",children:"A wider wheel adds grip only if the offset still"}),x(Co,{w:"88%",children:"clears the arch, so the offset is chosen first."}),x(Co,{w:"80%",children:"Width follows from the space left."})]}),series:x(We,{title:"Recurring columns",children:x("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:5,justifyContent:"center"},children:[["Shed Notes","Monthly"],["Track Tested","Fortnightly"],["Reader Rigs","Weekly"]].map(([e,o])=>B("div",{style:{display:"flex",alignItems:"center",gap:6},children:[x("span",{style:{width:3,height:12,borderRadius:2,background:g.rust,flex:"none"}}),x("b",{style:{flex:1,fontSize:"4.64cqw",color:g.text},children:e}),x("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.08em",textTransform:"uppercase",color:g.muted},children:o})]},e))})}),events:x(We,{title:"Latest posts",children:x("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:5,justifyContent:"center"},children:[[g.inkSoft,g.inkSoft2,"Madigan Line, four days"],[g.rust,g.warm,"Why offset beats width"]].map(([e,o,t])=>B("div",{style:{display:"flex",gap:6,alignItems:"center"},children:[x("span",{style:{width:24,height:18,borderRadius:3,flex:"none",...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(Co,{children:o})]},e))}),docmetacards:x(We,{title:"At a glance",children:x("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(2,1fr)",gap:5,minHeight:0},children:[["30 days","To return"],["5 years","Structural"],["Free","Fitting"],["48 hrs","Dispatch"]].map(([e,o])=>B("div",{style:{border:`1px solid ${g.rule}`,borderRadius:4,padding:"5px 6px",display:"flex",flexDirection:"column",gap:1},children:[x("b",{style:{fontSize:"5.31cqw",color:g.text,lineHeight:1},children:e}),x("span",{style:{fontSize:"3.32cqw",letterSpacing:"0.08em",textTransform:"uppercase",color:g.muted},children:o})]},o))})}),doctabs:B("div",{style:{...J,background:g.card,display:"flex",flexDirection:"column",justifyContent:"center",gap:0,padding:"0 11px"},children:[x("div",{style:{display:"flex",gap:0},children:["Returns","Warranty","Shipping"].map((e,o)=>x("span",{style:{fontSize:"3.98cqw",fontWeight:o===0?700:500,padding:"5px 8px",color:o===0?g.text:g.muted,background:o===0?g.paper:"transparent",borderRadius:"4px 4px 0 0",border:`1px solid ${o===0?g.rule:"transparent"}`,borderBottom:"none"},children:e},e))}),x("span",{style:{height:1,background:g.rule}}),B("div",{style:{paddingTop:6,display:"flex",flexDirection:"column",gap:2},children:[x(Co,{children:"Unfitted wheels come back within 30 days, no questions."}),x(Co,{w:"58%",children:"Freight on a change of mind is yours."})]})]}),paragraphs:B("div",{style:{...J,background:g.card,padding:"11px 14px",display:"flex",gap:10,alignItems:"center"},children:[x("span",{style:{flex:1,fontSize:"5.86cqw",lineHeight:1.2,fontWeight:700,color:g.text},children:"The right wheel is the boring one."}),B("div",{style:{flex:1,display:"flex",flexDirection:"column"},children:[x(Co,{children:"Forged, correctly offset, rated for what you actually"}),x(Co,{children:"carry. Everything else is a photograph."})]})]}),keyfeatures:x(We,{title:"Key features",children:x("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:["Flow-formed barrel","1250 kg per corner","Hub-centric fit"].map(e=>B("div",{style:{display:"flex",gap:6,alignItems:"center"},children:[x("span",{style:{fontSize:"4.64cqw",color:g.rust,fontWeight:700,lineHeight:1},children:"\u2713"}),x("span",{style:{fontSize:"4.31cqw",color:g.text},children:e})]},e))})}),statsparagraph:B("div",{style:{...J,background:g.paper,padding:"10px 12px",display:"flex",gap:10,alignItems:"center"},children:[B("div",{style:{flex:"none",display:"flex",flexDirection:"column",gap:5},children:[x(np,{n:"27k",label:"Rigs"}),x(np,{n:"4.9",label:"Rating"})]}),B("div",{style:{flex:1,display:"flex",flexDirection:"column"},children:[x(Co,{children:"Twelve years of fitting the same three questions, and the"}),x(Co,{children:"answer has not moved: load rating, offset, then looks."})]})]}),chart:B(We,{title:"Load vs weight",children:[x("div",{style:{flex:1,display:"flex",alignItems:"flex-end",gap:5,paddingBottom:2},children:[38,62,84,71,96].map((e,o)=>x("span",{style:{flex:1,height:`${e}%`,borderRadius:"2px 2px 0 0",background:o===4?g.rust:g.mark1}},o))}),x("span",{style:{height:1,background:g.rule,marginTop:-4}})]}),mockup:x("div",{style:{...J,overflow:"hidden",display:"flex",alignItems:"center",justifyContent:"center",...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(We,{title:"Our story",children:x("div",{style:{flex:1,display:"flex",flexDirection:"column",justifyContent:"center",gap:6,paddingLeft:4},children:[["1998","One shed, one lathe."],["2009","First forged rim."],["2024","27,000 rigs on."]].map(([e,o],t)=>B("div",{style:{display:"flex",gap:7,alignItems:"flex-start",position:"relative"},children:[t<2&&x("span",{style:{position:"absolute",left:3,top:8,bottom:-8,width:1,background:g.rule}}),x("span",{style:{width:7,height:7,borderRadius:"50%",flex:"none",marginTop:1,background:g.rust,zIndex:1}}),B("div",{style:{display:"flex",flexDirection:"column",gap:0,minWidth:0},children:[x("b",{style:{fontSize:"4.64cqw",color:g.text},children:e}),x(Co,{children:o})]})]},e))})}),timelinetrack:B("div",{style:{...J,padding:"0 12px",display:"flex",flexDirection:"column",gap:10,justifyContent:"center",...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(Ra,{size:64,style:{right:8,top:6}}),B("div",{style:{position:"absolute",left:16,right:16,bottom:8,top:"46%",background:g.paper,borderRadius:6,padding:"8px 11px",display:"flex",flexDirection:"column",gap:2,boxShadow:`0 -4px 10px ${g.scrim}`},children:[x("span",{style:{fontSize:"5.69cqw",fontWeight:700,color:g.text},children:"Since 1998"}),x(Co,{children:"One shed, one lathe, one idea."}),x(Co,{w:"66%",children:"It turned out to be right."})]})]}),gallerygrid:x(We,{title:"Photo gallery",children:x("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(3,1fr)",gridTemplateRows:"repeat(2,1fr)",gap:4,minHeight:0},children:[[g.rust,g.warm],[g.inkSoft,g.ink],[g.paper2,g.mark2],[g.ink,g.inkSoft2],[g.warm,g.paper2],[g.mark2,g.inkSoft]].map(([e,o],t)=>x("div",{style:{borderRadius:3,...Xe(e,o,140+t*22)}},t))})}),gallery:B(We,{title:"Gallery",children:[x("div",{style:{display:"flex",gap:8,alignItems:"center",marginTop:-2},children:["On the truck","Studio","Close-ups"].map((e,o)=>x("span",{style:{fontSize:"3.98cqw",fontWeight:o===0?700:500,color:o===0?g.text:g.muted,borderBottom:`1.5px solid ${o===0?g.rust:"transparent"}`,paddingBottom:2},children:e},e))}),x("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(3,1fr)",gap:4,minHeight:0},children:[[g.rust,g.warm],[g.ink,g.inkSoft],[g.paper2,g.mark2]].map(([e,o],t)=>x("div",{style:{borderRadius:3,...Xe(e,o,150+t*20)}},t))})]}),ordersummary:B(We,{title:"Order summary",children:[B("div",{style:{display:"flex",gap:6,alignItems:"center",paddingBottom:4},children:[x("span",{style:{width:26,height:26,borderRadius:4,position:"relative",overflow:"hidden",flex:"none",...Xe(g.paper,g.paper2,150)},children:x(Ra,{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(Aa,{k:"Subtotal",v:"$1,956"}),x(Aa,{k:"Fitting",v:"Free"}),B("div",{style:{display:"flex",justifyContent:"space-between",paddingTop:5,fontSize:"4.64cqw"},children:[x("b",{style:{color:g.text},children:"Total"}),x("b",{style:{color:g.text,fontSize:"6.02cqw"},children:"$1,956"})]})]})]}),deliveryoptions:x(We,{title:"Delivery",children:x("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[["Standard","3\u20135 days","Free",!0],["Express","Next day","$19",!1]].map(([e,o,t,r])=>B("div",{style:{display:"flex",alignItems:"center",gap:6,padding:"5px 6px",borderRadius:4,border:`1px solid ${r?g.rust:g.rule}`,background:r?g.paper:g.card},children:[x("span",{style:{width:7,height:7,borderRadius:"50%",flex:"none",border:`1.5px solid ${r?g.rust:g.mark1}`,background:r?g.rust:"transparent"}}),x("span",{style:{flex:1,fontSize:"4.31cqw",fontWeight:600,color:g.text},children:e}),x("span",{style:{fontSize:"3.98cqw",color:g.muted},children:o}),x("b",{style:{fontSize:"4.31cqw",color:g.text},children:t})]},e))})}),paymentbadges:B("div",{style:{...J,background:g.paper,display:"flex",flexDirection:"column",gap:8,justifyContent:"center",padding:"0 12px"},children:[x(MI,{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(np,{n:"27k",label:"Rigs fitted",tone:g.onInk}),x(np,{n:"12",label:"Years",tone:g.onInk}),x(np,{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(i0,{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(BK,{}),x("span",{style:{fontSize:"3.98cqw",color:g.muted},children:"Dave M. \xB7 Hilux N80"})]})]}),reviews:B(We,{title:"Reviews",children:[x("div",{style:{display:"flex",gap:4,height:22},children:[[g.inkSoft,g.inkSoft2],[g.rust,g.warm],[g.ink,g.inkSoft],[g.mark2,g.mark1]].map(([e,o],t)=>x("div",{style:{flex:1,borderRadius:3,...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(BK,{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(i0,{filled:o})]}),x(Co,{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(Co,{children:"he number on the back of your wheel decides whether the"}),x(Co,{w:"76%",children:"tyre sits under the guard or an inch outside it."})]})]})]}),cards:x(We,{title:"What you get",children:x("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(3,1fr)",gap:5,minHeight:0},children:[["Fitted free","In store, same day."],["5 yr cover","Structural, no fine print."],["Swap it","30 days, any reason."]].map(([e,o])=>B("div",{style:{border:`1px solid ${g.rule}`,borderRadius:4,padding:6,display:"flex",flexDirection:"column",gap:2},children:[x("span",{style:{width:11,height:11,borderRadius:3,background:g.rust,opacity:.9}}),x("b",{style:{fontSize:"3.98cqw",color:g.text},children:e}),x(Co,{children:o})]},e))})}),faq:x(We,{title:"Questions",children:x("div",{style:{flex:1,display:"flex",flexDirection:"column",justifyContent:"center"},children:[["Will these fit my Hilux?",!0],["Do you fit them for me?",!1],["What if I pick wrong?",!1]].map(([e,o])=>B("div",{style:{borderBottom:`1px solid ${g.rule}`,padding:"4px 2px"},children:[B("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",gap:6},children:[x("b",{style:{fontSize:"4.31cqw",color:g.text},children:e}),x("span",{style:{fontSize:"4.64cqw",color:g.muted,lineHeight:1},children:o?"\u2212":"+"})]}),o&&x(Co,{w:"90%",children:"Use the fitment finder \u2014 it reads your build, not just the model."})]},e))})}),hero:B("div",{style:{...J,overflow:"hidden",...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(FK,{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(Ra,{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(FK,{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(Ra,{size:74,style:{right:-14,top:16}})})]}),productgrid:x(We,{title:"Best sellers",children:B("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(3,1fr)",gap:5,minHeight:0},children:[x(s0,{name:"Ridge 19",price:"$365"}),x(s0,{name:"Ridge 29",price:"$410"}),x(s0,{name:"Ridge 39",price:"$455"})]})}),collections:x(We,{title:"Shop by category",children:x("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(3,1fr)",gap:5,minHeight:0},children:[["Wheels",g.inkSoft,g.inkSoft2],["Tyres",g.rust,g.warm],["Lift kits",g.ink,g.inkSoft]].map(([e,o,t])=>x("div",{style:{borderRadius:4,display:"flex",alignItems:"flex-end",padding:5,color:g.onInk,...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(Ra,{size:78,style:{left:"50%",top:"50%",transform:"translate(-50%,-50%)"}})}),B("div",{style:{flex:1,padding:"10px 10px 10px 8px",display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[x("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.16em",fontWeight:700,color:g.rust},children:"NITTO"}),x("b",{style:{fontSize:"6.29cqw",color:g.text},children:"Ridge Grappler"}),x("span",{style:{fontSize:"6.63cqw",fontWeight:700,color:g.text},children:"$489"}),x("span",{style:{alignSelf:"flex-start",fontSize:"3.65cqw",letterSpacing:"0.12em",fontWeight:700,padding:"4px 8px",borderRadius:2,background:g.text,color:g.onInk},children:"ADD TO CART"})]})]}),spectable:x(We,{title:"Specifications",children:B("div",{style:{flex:1,display:"flex",flexDirection:"column",justifyContent:"center"},children:[x(Aa,{k:"Diameter",v:'20"'}),x(Aa,{k:"Width",v:"9.0J"}),x(Aa,{k:"Offset",v:"+12"}),x(Aa,{k:"Load",v:"1250 kg"})]})}),fitmenttable:x(We,{title:"Will it fit?",children:B("div",{style:{flex:1,display:"flex",flexDirection:"column",justifyContent:"center"},children:[x(Aa,{k:"Hilux N80",v:"20\xD79 +12",ok:!0}),x(Aa,{k:"Ranger PX3",v:"20\xD79 +12",ok:!0}),x(Aa,{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(MI,{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))})},DK={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:Eo.line,marginBottom:10}}),B("div",{style:{flex:1,display:"flex",gap:10,border:`1px solid ${Eo.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 ${Eo.line}`,background:Eo.block}}),x(K,{w:34,h:13,r:5,tone:"accent"})]})]}),B("div",{style:{flex:1,background:Eo.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 ${Eo.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:n0}}),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(MK,{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:Eo.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:Eo.block}},o))}),blanksection:x("div",{style:{...J,padding:14,display:"flex"},children:B("div",{style:{flex:1,border:`1px dashed ${Eo.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:n0},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:n0}}),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 ${Eo.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 ${Eo.line}`,display:"flex",alignItems:"center",gap:7,padding:"0 9px"},children:[x("div",{style:{width:9,height:9,borderRadius:5,border:`2px solid ${Eo.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 ${Eo.dark}`}}),x("div",{style:{padding:"2px 6px",borderRadius:6,border:`1.5px solid ${Eo.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 ${Eo.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 ${Eo.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:Eo.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:Eo.block}})};function HK({type:e}){let o=jve[e]??"",t=Kve[o]??DK[o]??DK.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 KI}from"efficient-easel/screen/components/ScreenDocumentContext";import{jsx as sc,jsxs as WK}from"react/jsx-runtime";import Vve from"efficient-easel/screen/components/SidePanelHead";import{StylesIcon as Yve}from"efficient-easel/rail";import{Tooltip as qve}from"efficient-shell/ui";import{HintsToggle as Xve,hintsFoldClass as Zve}from"efficient-easel/panel";import{useHints as Jve}from"efficient-easel/screen/lib/hints";function $K({tokenRef:e,siteId:o,onClose:t,onNotify:r,tab:a,onTabChange:n,revealPageGroup:s,onPageGroupRevealed:i}){let l=xl(),{shown:d,setShown:f}=Jve();return WK("div",{className:`sf-styles ${Zve(d)}`.trim(),children:[sc(Vve,{icon:sc(Yve,{}),title:c("Styles"),context:sc(qve,{content:c("{name} \u2014 renamed in the Console: {place}.",{name:l,place:c("Storefront \u25B8 Sites \u25B8 Settings")}),className:"sf-name-tip",children:sc("span",{className:"sf-name-text",children:l})})}),WK("div",{className:"sf-insp-body es-insp-body sf-scroll",children:[sc(Lh,{tokenRef:e,siteId:o,onNotify:r,tab:a,onTabChange:n,revealPageGroup:s,onPageGroupRevealed:i}),sc(Xve,{shown:d,onChange:f,label:c("Show hints")})]})]})}import{jsx as Fo,jsxs as Qs,Fragment as rke}from"react/jsx-runtime";import{Fragment as JK,useEffect as QK,useRef as u0}from"react";import{useTreeDrag as e8}from"efficient-easel/drag";import{GlobeIcon as ake,ImageIcon as nke,LocationIcon as ske,MapIcon as ike,TextLinesIcon as lke,TrashIcon as o8}from"efficient-easel/icons";import{Subtree as t8,TreeRow as ip,TreeRowAction as r8,TreeSeam as a8}from"efficient-easel/tree";import{useEaselStrings as cke}from"efficient-easel/strings";import{isSelectionMode as dke}from"efficient-easel/screen/lib/screen-parts";import{useSyncExternalStore as Qve}from"react";var eke={level:"groups"},zK=eke,l0=new Set;function Rr(e){zK=e;for(let o of l0)o()}function oke(e){return l0.add(e),()=>{l0.delete(e)}}var UK=()=>zK;function GK(){return Qve(oke,UK,UK)}var sp=e=>String(e?.group??""),c0=new WeakMap,tke=0;function HI(e){let o=c0.get(e);return o||(o=`loc${++tke}`,c0.set(e,o)),o}var jK=(e,o)=>o||e||"Ungrouped",KK={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 Js(e){return kx(e,sp,o=>String(o?.groupName??"")).map(o=>({key:o.key,name:o.name,cards:o.items.map(t=>t.item)}))}var d0=e=>e.flatMap(o=>o.cards),VK=(e,o,t)=>Math.min(Math.max(e,o),t);function WI(e,o,t){let r=0;for(let a=0;a<e.length;a++)if(sp(e[a])===o){if(r===t)return a;r++}return-1}function f0(e,o,t){let r=Js(e);if(o<0||o>=r.length)return e;let[a]=r.splice(o,1),n=VK(o<t?t-1:t,0,r.length);return r.splice(n,0,a),d0(r)}function p0(e,o,t,r,a){let n=Js(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&&c0.set(d,HI(l));let f=VK(s===i&&t<a?a-1:a,0,i.cards.length);return i.cards.splice(f,0,d),d0(n)}function YK(e,o){let t=Js(e),r=t.find(n=>n.key===o),a={...KK,group:o,groupName:r?.name??""};return r?(r.cards.push(a),d0(t)):[...e,a]}function qK(e){let o=new Set(Js(e).map(a=>a.key)),t=o.size+1,r=`Group ${t}`;for(;o.has(r);)r=`Group ${++t}`;return{cards:[...e,{...KK,group:r,groupName:""}],key:r}}function XK(e,o){return e.filter(t=>sp(t)!==o)}function ZK(e,o,t){let r=WI(e,o,t);return r<0?e:e.filter((a,n)=>n!==r)}function Lho(e,o,t){let r=e.flatMap((s,i)=>sp(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 Fho(e,o,t){return o.flatMap(r=>{let a=e.filter(n=>sp(n)===r);return a.length?a:t(r)})}var UI="ContactLocations",$I=e=>({parentId:`locations-${e}`,slot:"groups"}),m0=(e,o)=>({parentId:`locations-${e}`,slot:`cities:${o}`});function n8(e,o){let{readOnly:t,selected:r}=o,a=cke().tree,n=o.data?.content??[],s=dke(e),i=u0(null);QK(()=>{let b=r?.type===UI?String(r.props.id):null;b&&b!==i.current&&Rr({level:"groups"}),i.current=b},[r?.props.id]);let{selectedLocationPartId:l,setSelectedLocationPartId:d,setSelectHandler:f}=G$(),u=GK(),p=(b,y)=>{let k=n[b];k&&o.replace(b,{type:k.type,props:{...k.props,locations:y}})},m=b=>{let y=n[b]?.props?.locations;return Array.isArray(y)?y:[]},h=e8({keyOf:b=>`group:${b.si}:${b.index}`,readOnly:!!t,canDrop:(b,y)=>y.parentId===$I(b.si).parentId&&y.slot==="groups",onDrop:(b,y)=>{p(b.si,f0(m(b.si),b.index,y.index)),u.level==="city"&&Rr({level:"groups"})},onStep:(b,y)=>{p(b.si,f0(m(b.si),b.index,y<0?b.index-1:b.index+2)),u.level==="city"&&Rr({level:"groups"})}}),I=e8({keyOf:b=>`city:${b.si}:${b.group}:${b.index}`,readOnly:!!t,canDrop:(b,y)=>y.parentId===$I(b.si).parentId&&y.slot.startsWith("cities:"),onDrop:(b,y)=>{let k=y.slot.slice(7);p(b.si,p0(m(b.si),b.group,b.index,k,y.index)),Rr({level:"group",key:k})},onStep:(b,y)=>{p(b.si,p0(m(b.si),b.group,b.index,b.group,y<0?b.index-1:b.index+2)),u.level==="city"&&Rr({level:"group",key:b.group})}}),w=u0(n);w.current=n;let S=u0(()=>{});QK(()=>{f(b=>{let y=kg(b);if(!y)return;let k=w.current.findIndex(F=>F.props?.id===y.nodeId);k<0||S.current(k,{level:y.part,index:y.index})})},[f]);let v=(b,y)=>{i.current=n[b]?.props?.id??null,o.select(b),Rr(y),e.reveal();let k=n[b]?.props?.id;typeof k=="string"&&(y.level==="city"||y.level==="image"||y.level==="map")?d(vg(k,y.index,y.level)):d(null),typeof k=="string"&&o.scrollTo(k)};return S.current=v,{renderLocationTree:(b,y,{rowClick:k,isCollapsed:F,toggleCollapse:T})=>{let D=m(y),P=Js(D),L=String(b.props.id),C=s&&r?.props.id===L,A=R=>Fo(a8,{...t?{}:h.seam({place:{...$I(y),index:R}})},`seam:${L}:groups:${R}`),E=(R,W)=>Fo(a8,{...t?{}:I.seam({place:{...m0(y,R),index:W}})},`seam:${L}:cities:${R}:${W}`);return Qs(rke,{children:[Fo(ip,{icon:Fo(lke,{size:13}),name:c("Texts"),words:a,onSelect:()=>v(y,{level:"texts"}),selected:C&&u.level==="texts",rowProps:{onClick:k(()=>v(y,{level:"texts"}))}}),P.map((R,W)=>{let z=`${L}::grp::${R.key}`,Z=F(z),V=C&&u.level==="group"&&u.key===R.key,fe=R.name||R.key?jK(R.key,R.name):c("Ungrouped"),Ie={...m0(y,R.key),index:R.cards.length},ae=I.row({item:{si:y,group:R.key,index:-1},place:Ie,into:Ie,canDrag:!1},{onClick:k(()=>v(y,{level:"group",key:R.key}))}),Oe=h.row({item:{si:y,index:W},place:{...$I(y),index:W}},ae.rowProps);return Qs(JK,{children:[W===0&&A(0),Fo(ip,{icon:Fo(ake,{size:13}),name:fe,words:a,onSelect:()=>v(y,{level:"group",key:R.key}),selected:V,draggable:Oe.draggable,dragging:Oe.dragging,drop:Oe.drop??ae.drop,fold:{open:!Z,label:c("group"),onToggle:()=>T(z)},actions:Fo(r8,{kind:"delete",label:rt("Delete {label} group ({n} city)","Delete {label} group ({n} cities)",R.cards.length,{label:fe}),onClick:()=>{p(y,XK(D,R.key)),Rr({level:"groups"})},children:Fo(o8,{size:15})}),rowProps:Oe.rowProps,count:R.cards.length,countLabel:rt("{n} city","{n} cities",R.cards.length)}),!Z&&Qs(t8,{children:[R.cards.map((ve,Ae)=>{let Ue=WI(D,R.key,Ae),No=C&&u.level==="city"&&u.index===Ue,Vo=String(ve?.name??"")||c("City"),Yo=`${L}::city::${HI(ve)}`,mo=F(Yo),{rowProps:qo,...vo}=I.row({item:{si:y,group:R.key,index:Ae},place:{...m0(y,R.key),index:Ae}},{onClick:k(()=>v(y,{level:"city",index:Ue}))});return Qs(JK,{children:[Ae===0&&E(R.key,0),Fo(ip,{icon:Fo(ske,{size:13}),name:Vo,words:a,onSelect:()=>v(y,{level:"city",index:Ue}),selected:No,...vo,fold:{open:!mo,label:Vo,onToggle:()=>T(Yo)},actions:Fo(r8,{kind:"delete",label:c("Delete {name}",{name:Vo}),onClick:()=>{p(y,ZK(D,R.key,Ae)),Rr({level:"group",key:R.key})},children:Fo(o8,{size:15})}),rowProps:qo}),!mo&&Qs(t8,{children:[Fo(ip,{icon:Fo(nke,{size:13}),name:c("Image"),words:a,onSelect:()=>v(y,{level:"image",index:Ue}),selected:C&&u.level==="image"&&u.index===Ue,rowProps:{onClick:k(()=>v(y,{level:"image",index:Ue}))}}),Fo(ip,{icon:Fo(ike,{size:13}),name:c("Map"),words:a,onSelect:()=>v(y,{level:"map",index:Ue}),selected:C&&u.level==="map"&&u.index===Ue,rowProps:{onClick:k(()=>v(y,{level:"map",index:Ue}))}})]}),E(R.key,Ae+1)]},HI(ve))}),Qs("button",{type:"button",className:"sf-add-card",onClick:()=>{let ve=YK(D,R.key);p(y,ve);let Ae=Js(ve).find(Ue=>Ue.key===R.key);Rr(Ae&&Ae.cards.length?{level:"city",index:WI(ve,R.key,Ae.cards.length-1)}:{level:"group",key:R.key})},children:[Fo("span",{className:"sf-plus sf-plus--sm",children:"+"}),c("Add city")]})]}),A(W+1)]},z)}),Qs("button",{type:"button",className:"sf-add-card",onClick:()=>{let{cards:R,key:W}=qK(D);p(y,R),v(y,{level:"group",key:W})},children:[Fo("span",{className:"sf-plus sf-plus--sm",children:"+"}),c("Add group")]})]})},sectionPressed:b=>{b?.type===UI&&Rr({level:"groups"})}}}import{useEffect as mke,useRef as hke}from"react";import{createNode as x0,newId as g0}from"efficient-easel/data";import{useEaselApi as xke}from"efficient-easel/easel";import{useScreenDocument as gke}from"efficient-easel/screen/components/ScreenDocumentContext";import{useEaselSession as Ike}from"efficient-easel/screen/lib/session-context";import{useEffect as c8,useRef as fke}from"react";import{useEasel as pke}from"efficient-easel/easel";import{ROOT_ZONE as h0}from"efficient-easel/draw";var lp={};function s8(e){return lp={...e?.theme?{theme:e.theme}:{},...e?.site?{site:e.site}:{}},lp}function i8(e){lp===e&&(lp={})}function ic(){return lp}function l8(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 f8(e){let o=pke(d=>d.appState.data.content),{theme:t,themeRow:r,themeFromDocument:a,siteGutter:n,siteGutterPhone:s,siteLengthUnits:i}=ce(),l=fke(new Set);c8(()=>{let d=d8({theme:t,themeRow:r,themeFromDocument:a,siteGutter:n,siteGutterPhone:s,siteLengthUnits:i});d&&uke(f4(o,void 0,d),e,l.current)},[o,e,t,r,a,n,s,i]),c8(()=>{let d=s8(d8({theme:t,themeRow:r,themeFromDocument:a,siteGutter:n,siteGutterPhone:s,siteLengthUnits:i}));return()=>i8(d)},[t,r,a,n,s,i])}function d8(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=l8({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 uke(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(h0,r,a[0]),a.slice(1).forEach((s,i)=>{o.insertNode(h0,r+1+i,s),o.replaceComponent(h0,r+1+i,s)}))}}import{ROOT_ZONE as lc,missingPinnedTypes as yke,pinnedDuplicateIds as I0}from"efficient-easel/draw";function p8(e){return!e.docId||e.saveStatus==="saving"?!1:e.seededDocId!==e.docId}function u8(e,o){let t=e.some(i=>i?.type===Ge),r=e[e.length-1],a=!t&&r?.type===eo?r:null,n=e.filter(i=>i?.type===eo&&i!==a).map(i=>String(i.props?.id??"")).filter(Boolean),s=o.hasChromeDoc&&!t&&!a;return{remove:n,seedHeader:!e.some(i=>i?.type===St),seedFooter:s,seedSiteHeader:s&&!e.some(i=>i?.type===Qe)}}async function m8(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!==Qe||!e.stillOpen())return!1;let r=e.latest();return r.some(a=>a?.type===Qe)?!1:(e.write(vu(r,t)),!0)}function h8(e,o){let{adapter:t,capabilities:r,currentSlug:a,docId:n,data:s,saveStatus:i,siteId:l,tokenRef:d}=gke(),f=Ike(),{hasSiteSettings:u,hasPinnedChrome:p}=r;f8(e);let m=!!r.editsPinnedInPlace&&a!==hr,h=a===hr,I=xke().getState,w=hke(null);mke(()=>{if(!p8({docId:n,saveStatus:i,seededDocId:w.current})||(w.current=n,!p))return;let S=I().appState.data,v=S.content,b=s?.content??[],y=(D,P)=>D.some(L=>L?.type===P);if(!u){let D=new Set(I0(v)),P=D.size?v.filter(C=>!D.has(C.props.id)):v;if(D.size&&e.setDocument({...S,content:P}),h)return;let L=yke(P,b);if(L.includes(eo)){let C=P.length,A=e.insertSection(eo,C);e.replaceComponent(lc,C,{type:eo,props:{id:A,blocks:FI()}})}L.includes(St)&&e.insertNode(lc,0,LI());return}if(h){let D=Oi(v);if(D!==v&&e.setDocument({...S,content:[...D]}),!D.find(P=>P.type===eo)&&!y(b,eo)&&!y(D,Ge)&&!y(b,Ge)){let P=(C,A)=>x0(o,C,A),L={type:eo,props:{blocks:FI()}};e.insertNode(lc,D.length,bf(L,P,g0(Ge),rp))}return}if(m){let D=!!t?.pinnedChrome?.state().docId,P=u8(v,{hasChromeDoc:D}),L=new Set([...P.remove,...I0(v.filter(A=>!P.remove.includes(String(A.props.id))))]),C=L.size?v.filter(A=>!L.has(String(A.props.id))):v;if(C.length!==v.length&&e.setDocument({...S,content:C}),P.seedFooter&&!y(b,eo)&&!y(b,Ge)){let A=(R,W)=>x0(o,R,W),E={type:eo,props:{blocks:FI()}};e.insertNode(lc,C.length,bf(E,A,g0(Ge),rp))}if(P.seedHeader&&!y(b,St)){let A=C[0]?.type===Qe?1:0;e.insertNode(lc,A,LI())}if(P.seedSiteHeader&&!y(b,Qe)&&!y(b,eo)&&!y(b,Ge)){let A=n;m8({blocks:Mi(f),make:(E,R)=>x0(o,E,R),id:g0(Qe),siteId:l??null,token:d.current,latest:()=>I().appState.data.content,stillOpen:()=>w.current===A,write:E=>{let R=I().appState.data;e.setDocument({...R,content:[...E]})}})}return}let k=v.filter(D=>D.type!==eo),F=new Set(I0(k)),T=F.size?k.filter(D=>!F.has(D.props.id)):k;T.length!==v.length&&e.setDocument({...S,content:T}),!y(T,St)&&!y(b,St)&&e.insertNode(lc,0,LI())},[n,i,s,I,e,u,p,h,m,t,f,l,d])}import{useEffect as k8,useMemo as Tke,useRef as T8}from"react";import{useEasel as Pke}from"efficient-easel/easel";import{useEaselHost as Eke}from"efficient-easel/screen/lib/host";import{FIELD_DESCRIPTION_MARKER as bke}from"efficient-easel/screen/lib/host";import{isNode as I8}from"efficient-easel/data";function cp(e,o){let t=e.components[o]?.label;return typeof t=="string"&&t.trim()?t.trim():o}function Ske(e){return e.length>3&&e.endsWith("s")?e.slice(0,-1):e}function y0(e,o,t,r){e.forEach((a,n)=>{if(I8(a)){r.push({node:a,list:e,index:n,parent:o,slot:t});for(let s of Lr(a))y0(a.props[s],a,s,r)}})}function wke(e){let o=[];y0(Array.isArray(e.content)?e.content:[],null,"",o);for(let t of Object.values(e.zones??{}))Array.isArray(t)&&y0(t,null,"",o);return o}function y8(e,o){return wke(e).find(t=>String(t.node.props.id)===o)}function b8(e,o,t){if(!t)return null;let r=y8(o,t);if(!r)return null;let a=cp(e,r.node.type),n=r.parent?`${cp(e,r.parent.type)} \xB7 ${Ske(r.slot)} ${r.index+1}`:a;return{blockId:t,type:r.node.type,label:n,path:""}}var Cke=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 vke(e){if(!e||typeof e!="object")return null;let o=e;if(typeof o.type!="string")return null;let t=o.type==="custom"?o[bke]: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=Cke(n));for(let s of["arrayFields","objectFields"]){let i=t?.[s]??o[s];i&&typeof i=="object"&&(r[s]=S8(i))}return r}function S8(e){let o={};for(let[t,r]of Object.entries(e??{})){let a=vke(r);a&&(o[t]=a)}return o}function w8(e){let o={};for(let[t,r]of Object.entries(e.components))r&&(o[t]={label:cp(e,t),fields:S8(r.fields),...C8(t)?{retired:!0}:{}});return o}function C8(e){return He(H0,e)}function x8(e,o){let t=e.components[o]?.defaultProps;return t&&typeof t=="object"?structuredClone(t):{}}function kke(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 b0(e,o){return e.findIndex(t=>I8(t)&&String(t.props.id)===o)}function g8(e,o,t){let r=o||t;if(!r)return e.length;let a=b0(e,r);if(a<0)throw new Error(`there is no top-level block ${r}`);return o?a+1:a}function v8(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=y8(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=kke(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}`),C8(i.type)&&d(`${cp(e,i.type)} is retired: it is no longer added (a page that holds one keeps it)`);let f=Kl(i.type),u=Object.keys(i.props??{}).filter(m=>m!=="id");f&&u.length&&d(`${cp(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=>x8(e,m),r,a):{type:i.type,props:{...x8(e,i.type),...structuredClone(i.props),id:r(i.type)}};s.splice(g8(s,i.after,i.before),0,p);break}case"remove_block":{let f=b0(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=b0(s,i.block_id);f<0&&d(`there is no top-level block ${i.block_id}`);let[u]=s.splice(f,1);s.splice(g8(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 S0=e=>be(e.requestId)??null;function P8(){let e=Eke(),{appState:o,selectedItem:t,dispatch:r,history:a,config:n}=Pke(p=>p),s=n,i=T8({appState:o,dispatch:r,history:a,blockConfig:s});i.current={appState:o,dispatch:r,history:a,blockConfig:s};let l=T8(new Map),d=t?.props?.id,f=Tke(()=>b8(s,o.data,d),[s,o.data,d]),u=f?JSON.stringify(f):"";k8(()=>{e.connected&&e.send("storefront-editor:selection",{selection:f})},[e,u]),k8(()=>e.subscribe(p=>{let{appState:m,dispatch:h,history:I,blockConfig:w}=i.current;switch(p.type){case"storefront-editor:request-document":{let S=S0(p);if(!S)return;e.send("storefront-editor:document",{requestId:S,document:m.data,blocks:w8(w)});return}case"storefront-editor:apply-page-edits":{let S=S0(p);if(!S)return;let v=Array.isArray(p.ops)?p.ops:[],b=v.length?v8(w,m.data,v,y=>`${y}-${crypto.randomUUID()}`,ic()):{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=S0(p);if(!S)return;let v=l.current.get(S),b=v!==void 0&&v===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 O8,useState as A8}from"react";var zI=new Map;async function _ke(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 E8(e,o){let t=zI.get(o);return t||(t=_ke(e,o),zI.set(o,t),t.catch(()=>{zI.get(o)===t&&zI.delete(o)})),t}var Oke=/^(localhost|(?:[a-z0-9-]+\.)+localhost|127(?:\.\d{1,3}){3}|0\.0\.0\.0|\[::1\]|::1)$/i;function w0(e){return!!e&&Oke.test(e)}function _8(e){let{pageSlug:o,siteSlug:t,hostname:r}=e,a=o===Hu?"/":`/${encodeURIComponent(o)}`;if(!w0(r))return a;let n=t?.trim();return n?`${a}?site=${encodeURIComponent(n)}`:a}function R8(e){let{pageSlug:o,siteId:t,token:r}=e,[a,n]=A8(null),[s,i]=A8(null),l=_O();O8(()=>{try{i(new URL(fu()).hostname)}catch{i(null)}},[l]),O8(()=>{if(!w0(s)||!t||!r){n(null);return}let f=!1;return E8(r,t).then(u=>{f||n(u)}),()=>{f=!0}},[s,t,r]);let d=_8({pageSlug:o,siteSlug:a,hostname:s});return l?`${l}${d}`:d}import{jsx as dp}from"react/jsx-runtime";import{useEffect as Ake,useRef as L8,useState as Rke}from"react";import{ExternalIcon as F8}from"efficient-easel/icons";import{EaselIconButton as Lke}from"efficient-easel/chrome";import{Tooltip as Fke,iconButtonClasses as Bke}from"efficient-shell/ui";import{useSettledPress as Nke}from"efficient-easel/easel";import{useScreenDocument as Dke}from"efficient-easel/screen/components/ScreenDocumentContext";async function Mke({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 B8({liveHref:e,pageId:o,draftLink:t}){let{flushSave:r}=Dke(),a=L8(r);a.current=r;let n=Nke(),[s,i]=Rke(!1),l=L8(null);if(Ake(()=>()=>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),Mke({pageId:o,liveHref:e,draftLink:t,ready:d}).finally(()=>i(!1)))};return dp(Lke,{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:dp(F8,{})})}return dp(Fke,{content:c("Preview the live site (opens in a new tab)"),side:"bottom",children:dp("a",{className:Bke({className:"es-iconbtn"}),href:e,...Nd,"aria-label":c("Preview the live site in a new tab"),children:dp(F8,{})})})}import{createElement as Hke,useCallback as Wke,useEffect as N8,useRef as D8,useState as $ke}from"react";import{ClockIcon as Uke}from"efficient-shell/icons/efficient";import{useScreenDocument as zke}from"efficient-easel/screen/components/ScreenDocumentContext";function M8(e){let{docId:o,capabilities:t,hasUnsavedEdits:r,onPublish:a,adapter:n}=zke(),s=rK(tK(o??null),r),i=rI(aI()),l=n.siteLiveState;N8(()=>{if(l)return tS(l),ua(0),()=>tS(null)},[l]);let d=dm(),[f,u]=$ke(!1),p=D8(e);p.current=e;let m=D8(!0);N8(()=>(m.current=!0,()=>{m.current=!1}),[]);let h=Wke(()=>{u(!0),a(p.current).then(()=>{sI()}).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=VP({live:I,onPress:h,busy:f,goingLive:aK(d?.changes??[])});return n.siteVersions?{...w,menuItems:Gke()}:w}return VP({live:s,onPress:h,busy:f,pinnedUnpublished:i?.unpublished??!1})}}function Gke(){return[{key:"version-history",label:c("Version history"),icon:Hke(Uke),onSelect:EG}]}import{jsx as re,jsxs as Ft,Fragment as up}from"react/jsx-runtime";import{useCallback as jke,useEffect as Kke,useId as $8,useRef as Vke,useState as nr}from"react";import{useSettledAction as Yke}from"efficient-easel/easel";import{Avatar as qke,Banner as fp,Button as ei,ColoredBadge as C0,Dialog as U8,Drawer as Xke,DropdownMenu as Zke,FormField as z8,iconButtonClasses as Jke,Inline as v0,Input as Qke,ListRow as eTe,Select as oTe,SortableList as tTe,Stack as pp}from"efficient-shell/ui";import{EditIcon as rTe,EyeIcon as H8,MenuIcon as aTe,MoreIcon as nTe,PageIcon as G8,RevertIcon as W8,StylesIcon as sTe}from"efficient-shell/icons/efficient";import{useScreenDocument as j8}from"efficient-easel/screen/components/ScreenDocumentContext";var iTe={page:G8,menu:aTe};function lTe(e,o){return e.pages.find(t=>t.id===o)??e.pages[0]??null}function cTe(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 dTe({version:e,page:o,waiting:t,busy:r,error:a,onCancel:n,onConfirm:s,onPage:i}){let l=$8();if(!e)return null;let d=e.kind==="draft_before_restore",f=e.number,u=NG(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 re(U8,{open:!0,onClose:()=>{r||n()},size:"sm",title:p,footer:Ft(up,{children:[re(ei,{variant:"secondary",onClick:n,disabled:r,children:c("Cancel")}),re(ei,{onClick:s,loading:r,disabled:r,children:c("Restore as draft")})]}),children:Ft(pp,{gap:4,children:[o&&e.pages.length>1?re(z8,{label:c("Page"),htmlFor:l,children:re(oTe,{id:l,value:o.id,options:e.pages.map(I=>({value:I.id,label:I.name})),onChange:i,disabled:r})}):null,re("p",{children:m}),re("p",{children:c("Your live website does not change until you press Publish.")}),h>0?re(fp,{tone:"warning",children:rt("{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?re(fp,{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?re(fp,{tone:"danger",children:a}):null]})})}function fTe({version:e,onCancel:o,onSave:t}){let r=$8(),[a,n]=nr(null),[s,i]=nr(""),[l,d]=nr(!1),[f,u]=nr(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 re(U8,{open:!0,onClose:()=>{l||o()},size:"sm",title:c("Name this version"),footer:Ft(up,{children:[re(ei,{variant:"secondary",onClick:o,disabled:l,children:c("Cancel")}),re(ei,{onClick:()=>{m()},loading:l,disabled:l||p,children:c("Save")})]}),children:re(z8,{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:re(Qke,{id:r,value:s,invalid:!!f,onChange:h=>i(h.target.value),onKeyDown:h=>{h.key==="Enter"&&m()}})})})}function pTe({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:re(H8,{}),onSelect:r}],...l?[{key:"restore",label:i?c("Put these drafts back"):c("Restore whole website"),icon:re(W8,{}),onSelect:a}]:[],...l&&!i&&e.pages.length?[{key:"restore-page",label:c("Restore one page only"),icon:re(G8,{}),onSelect:n}]:[],...i?[]:[{type:"divider",key:"divider"},{key:"name",label:c("Name this version"),icon:re(rTe,{}),onSelect:s}]];return re(eTe,{title:Ft("span",{className:"sf-version-title",children:[re("span",{children:BG(e)}),e.live?re(C0,{tone:"success",size:"xs",children:c("Live")}):null,e.name?re(C0,{tone:"neutral",size:"xs",children:c("Version {n}",{n:e.number})}):null,i?re(C0,{tone:"warning",size:"xs",children:c("Not published")}):null]}),expanded:o,onToggle:t,actions:re(Zke,{align:"end","aria-label":c("More"),items:f,triggerClassName:Jke({variant:"ghost",size:"sm"}),trigger:re(nTe,{})}),below:Ft(pp,{gap:3,children:[Ft(v0,{gap:2,align:"center",wrap:!0,className:"sf-version-meta",children:[re(qke,{name:e.createdBy,size:"xs"}),re("span",{children:e.createdBy}),re("span",{"aria-hidden":"true",children:"\xB7"}),re("span",{children:MG(e.createdAt)}),d?Ft(up,{children:[re("span",{"aria-hidden":"true",children:"\xB7"}),re("span",{children:rt("{n} change","{n} changes",d)})]}):null]}),o?Ft(pp,{gap:3,children:[d?re(pp,{gap:2,children:e.changes.map(u=>{let p=iTe[u.kind]??sTe;return Ft(v0,{gap:2,align:"center",children:[re(p,{size:16}),re("span",{children:DG(u)})]},`${u.kind}:${u.id}`)})}):null,Ft(v0,{gap:2,children:[i?null:re(ei,{variant:"secondary",size:"sm",leftIcon:re(H8,{}),onClick:r,children:c("Preview")}),l?re(ei,{variant:"secondary",size:"sm",leftIcon:re(W8,{}),onClick:a,children:c("Restore")}):null]})]}):null]})})}function uTe({open:e,onClose:o,access:t,waiting:r}){let{flushSave:a,reloadFromServer:n,docId:s}=j8(),[i,l]=nr(null),[d,f]=nr(!1),[u,p]=nr(null),[m,h]=nr(null),[I,w]=nr(!1),[S,v]=nr(null),[b,y]=nr(null),[k,F]=nr(!1),T=Vke(0),D=jke(()=>{let A=++T.current;f(!1),t.list().then(E=>{A===T.current&&l(E)},()=>{A===T.current&&f(!0)})},[t]);Kke(()=>{e&&D()},[e,D]);let P=A=>{F(!1),cTe(t,A.id).catch(()=>F(!0))},L=async()=>{if(!(!m||I)){w(!0),v(null);try{await LG({access:t,version:m.version,page:m.page,flushSave:a,reload:n}),h(null),o()}catch(A){v(A instanceof Gf?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)}}},C=Yke({onPress:()=>{L()},busy:I});return Ft(up,{children:[re(Xke,{open:e,onClose:o,side:"right",size:"md",title:c("Version history"),description:Ft(up,{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:re("span",{className:"sf-version-foot",children:c("The newest 30 are kept. Named versions are always kept.")}),children:Ft(pp,{gap:3,children:[k?re(fp,{tone:"danger",onDismiss:()=>F(!1),children:c("The preview did not open. Try again.")}):null,d?re(fp,{tone:"danger",action:re(ei,{variant:"secondary",size:"sm",onClick:D,children:c("Try again")}),children:c("Version history did not load.")}):i===null?re("p",{className:"sf-version-foot",children:c("Loading versions")}):i.length===0?re("p",{className:"sf-version-foot",children:c("No versions yet. Every Publish from now on keeps one.")}):re(tTe,{"aria-label":c("Versions"),spacing:"comfortable",children:i.map(A=>re(pTe,{version:A,expanded:u===A.id,onToggle:()=>p(E=>E===A.id?null:A.id),onPreview:()=>P(A),onRestore:()=>{v(null),h({version:A,page:null})},onRestorePage:()=>{v(null),h({version:A,page:lTe(A,s)})},onName:()=>y(A)},A.id))})]})}),re(dTe,{version:m?.version??null,page:m?.page??null,waiting:r,busy:C.busy===!0,error:S,onCancel:()=>h(null),onConfirm:C.onPress,onPage:A=>h(E=>E&&{...E,page:E.version.pages.find(R=>R.id===A)??E.page})}),re(fTe,{version:b,onCancel:()=>y(null),onSave:async A=>{await t.name(b.id,A),y(null),D()}})]})}function K8(){let{adapter:e,hasUnsavedEdits:o}=j8(),t=e.siteVersions,r=OG(),a=dm();return t?re(uTe,{open:r,onClose:_G,access:t,waiting:o||a?.state==="changed"}):null}import{useEaselSession as AV}from"efficient-easel/screen/lib/session-context";import{buildPaletteSections as Pgo,categoryLabel as Ego,paletteWithoutPinned as _go,pinnedSection as Ogo}from"efficient-easel/screen/lib/document/palette-sections";var mTe={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 V8(e){return U(mTe,e)?.label}var Y8=U0;function hTe(e){let o=_g.Ticker(e.nodeDefaults,e.newNodeId),{sectionBorder:t,...r}=o.props,a=Av.line?{sectionBorder:t}:{};return{...o,props:{...r,...a,sectionAccent:Av.sectionAccent}}}var xTe={Hero:{[nf]:{newChild:hTe,childLabel:Pn.Ticker}}},q8=Object.fromEntries(Object.entries(r4).map(([e,o])=>[e,Object.fromEntries(Object.entries(o).map(([t,r])=>[t,{...r,...U(xTe,e)?.[t]}]))]));function X8(e,o=0,t,r){let a=ITe(yTe(e,o,r),t),n=a?fT():null;return a&&n?gTe(a,n):a}function gTe(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 ITe(e,o){if(!e||e.source!=="container"||!o||!QE())return e;let t=Gp({data:o.data},o.id),r=typeof t?.type=="string"?Hp(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 yTe(e,o,t){let r=t?U(q8,e)?.[t]:void 0;if(r)return{source:"section",slot:r.slot,choices:null,spec:r};let a=U(Yt,e);if(a)return{source:"section",slot:a.slot,choices:null,spec:a};let n=wp(e,o);if(n)return{source:"container",slot:n.slot,choices:n.choices,spec:null};let s=xK(e);return s?{source:"footer",slot:hK,choices:s,spec:null}:null}function Z8(e,o=Up(e.type)){return $p(e.type)?o.map(t=>{let r=t_(e.type,t);return r===null?{slot:t,label:t,rung:!1}:{slot:t,label:c(r),rung:!0}}):null}import{useSyncExternalStore as bTe}from"react";var k0=null,T0=new Set;function J8(e){if(k0!==e){k0=e;for(let o of T0)o()}}function STe(e){return T0.add(e),()=>{T0.delete(e)}}function Qgo(){return bTe(STe,()=>k0,()=>null)}function Q8(e){return Bc(e)?.ownerId??null}function eV(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 oV="sf-editor-left-view";function tV(){if(typeof window>"u")return"pages";try{let e=window.localStorage.getItem(oV);return e==="sections"||e==="styles"?e:"pages"}catch{return"pages"}}function rV(e){if(!(typeof window>"u"))try{window.localStorage.setItem(oV,e)}catch{}}function aV(e,o){return e==="styles"&&!o?"sections":e}function nV(e,o){return e?"sections":o}import{copyNode as wTe}from"efficient-easel/data";function sV(e){let o=typeof e?.props?.id=="string"?e.props.id:null,t=fr(),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 iV={usedOn:e=>{let o=fr(),t=o?.sectionOf(e.props.id)??null;return!o||!t?null:o.usedOn(t)??[]},openPage:e=>Pu()?.openPage(e),adopt:(e,o)=>fr()?.adopt(e.props.id,o),nodeOf:e=>fr()?.place(e)??null,detach:e=>{let o=Pu()?.config;return o?wTe(e,o):e},removed:()=>Pu()?.reload()};import{sharedSectionsOf as qTe}from"efficient-easel/screen/lib/shared-sections";import{scrollPreviewToSection as XTe,scrollPreviewToTop as vV}from"efficient-easel/screen/lib/document/preview-dom";var CTe=xu.mediaFields,vTe=/video|poster|focal|phone/i;function kTe(e){return(U(CTe,e)??[]).find(o=>!o.includes("[]")&&!vTe.test(o))??null}function TTe(e){let o=kTe(e.type);return e.type!==Y?o&&zp(e.type,e.props,o)?{fromData:!0}:o:ju(e.props)?{fromData:!0}:o}var lV={adds:{kind:"block",type:"ImageBlock"},kinds:["image"],pictureOf:TTe,create:(e,o)=>({type:"ImageBlock",props:{...o.nodeDefaults("ImageBlock"),id:o.newNodeId("ImageBlock"),src:e.url}})};var cV={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 GI}from"react/jsx-runtime";import{useState as PTe}from"react";import{Button as ETe,Tooltip as _Te,toast as dV}from"efficient-shell/ui";import{TemplateIcon as OTe}from"efficient-easel/icons";import{useSettledAction as ATe}from"efficient-easel/easel";import{useScreenDocument as RTe}from"efficient-easel/screen/components/ScreenDocumentContext";function pV({enabled:e,reason:o,onSaved:t}){let{flushSave:r}=RTe(),[a,n]=PTe(!1),s=async()=>{if(!a){n(!0);try{await r()?t():dV.error(c(fV))}catch{dV.error(c(fV))}finally{n(!1)}}},i=ATe({onPress:()=>{s()},busy:a});return GI(_Te,{side:"bottom",content:e?c("Save this website as a platform template"):c(o),children:GI("span",{className:"sf-tip-disabled",tabIndex:e?void 0:0,children:GI(ETe,{variant:"secondary",disabled:!e||i.busy,loading:i.busy,onClick:i.onPress,rightIcon:GI(OTe,{size:15}),children:c("Save as Template")})})})}var fV="Your last changes did not save, so the template was not made. Try again.";var LTe="Save your page changes first";function uV(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:LTe}:{visible:!0,enabled:!0}:{visible:!1,hiddenReason:"no-site"}:{visible:!1,hiddenReason:"not-operator"}:{visible:!1,hiddenReason:"no-console"}}var mV="storefront-editor:save-as-template";import{phoneKey as FTe,tabletKey as BTe}from"efficient-easel/draw";var NTe=[ha.top,BTe(ha.top),FTe(ha.top)],jI="ContactLocations",hV="ContactRouting",xV="CityPictures",gV="CityMaps",DTe=[{key:xV,label:"City pictures",piece:0,desc:"A wall of city photos, grouped by region. Each photo links to its city's card."},{key:gV,label:"City maps",piece:1,desc:"A card per city, grouped by region: address, phone, hours and a map."}];function IV(e=_s,o=kk){let t=M0.find(r=>r.sections.some(a=>a.type===hV))?.key;return!e.includes(jI)||!t?[]:DTe.filter(r=>!(o&&r.key===xV)).map(({key:r,label:a,desc:n,piece:s})=>({key:r,label:a,cat:t,after:hV,desc:n,alias:"locations offices stores branches",insert:i=>{let l=ln(jI);if(!l)return null;let d=ic(),f=Of(jI,l,s)(i.nodeDefaults,i.newNodeId,d);if(!f||!(o&&r===gV))return f;let u=Of(jI,l,0)(i.nodeDefaults,m=>`${m}-above`,d),p=Object.fromEntries(NTe.filter(m=>u?.props[m]!==void 0).map(m=>[m,u.props[m]]));return{...f,props:{...f.props,...p}}}}))}function yV(e=_s,o){return[...IV(e,o)]}function SV(e,{nodeDefaults:o,newNodeId:t,sectionLabel:r,blockIsOffered:a}){let n=Kl(e);if(n)return n(o,t,ic());if(KE(e)&&a(Y)&&a(hi)){let i=U(dr,e);return{type:Y,props:{...o(Y),id:t(Y),direction:"column",name:`${r(e)} section`,content:[{type:hi,props:{...o(hi),id:t(hi),...i?.headStyle?{headStyle:i.headStyle}:{},...i?.headRowGap?{rowGap:i.headRowGap}:{},...i?.headDescriptionSize?{descriptionSize:i.headDescriptionSize}:{},...Md(e)!==Md(hi)?{eyebrowLook:Md(e)}:{}}},{type:e,props:{...o(e),id:t(e),headPlacement:"own-box",...bV(e,t)}}]}}}if(U(Yt,e)?.fixed===!0)return{type:e,props:{...o(e),id:t(e),layout:"boxes"}};let s=bV(e,t);return Object.keys(s).length?{type:e,props:{...o(e),id:t(e),...s}}:null}function bV(e,o){return e==="Cards"?{template:zE(t=>o(t))}:e===GE?{template:jE(t=>o(t))}:{}}import{useEffect as MTe,useState as HTe}from"react";import{useEaselSession as WTe}from"efficient-easel/screen/lib/session-context";function wV(){let e=WTe().chrome?.products?.list,[o,t]=HTe(null);return MTe(()=>{if(!e)return;let r=!1;return e().then(a=>{r||t(a)}),()=>{r=!0}},[e]),o}function RV({mode:e,open:o}){let{setSelectedHeroId:t,setSelectHandler:r}=$$(),a=OV().tree,n=e,s=n.kind==="ticker"?n.heroId:null,i=cc(l=>{l&&(o({kind:"ticker",heroId:l}),XTe(l))},[o]);return ea(()=>{t(s)},[s,t]),ea(()=>{r(i)},[r,i]),{partRows:(l,{rowClick:d})=>{let f=String(l.props.id);return l.type==="Hero"&&Rv(l.props)&&Bo(EV,{icon:Bo(Vs,{type:"ticker",size:13}),name:c(Ws),onSelect:()=>i(f),selected:s===f,rowProps:{onClick:d(()=>i(f))},words:a})}}}function LV({mode:e,select:o}){let{setSelectedHeroPart:t,setSelectHandler:r}=hI(),a=OV().tree,{appState:n,config:s}=_V(p=>p),i=$Te({data:n.data,config:s});i.current={data:n.data,config:s};let l=e,d=ks.find(p=>ef[p]===l.kind),f=d&&"nodeId"in l?Ts(String(l.nodeId),d):null,u=cc(p=>{let m=xx(p);if(!m)return;let{data:h,config:I}=i.current,w=VTe(h,I,{kind:"node",id:m.nodeId});if(!w)return;let S={kind:ef[m.part],nodeId:m.nodeId};o({index:w.index,zone:w.zone},S)},[o]);return ea(()=>{t(f)},[f,t]),ea(()=>{r(u)},[r,u]),{partRows:(p,{rowClick:m})=>{let h=String(p.props.id),I=hH(p);if(I.length===0)return null;let w=b=>{let y=Ts(h,b.part);return Bo(EV,{icon:Bo(Vs,{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,...v]=I;return mp(PV,{children:[w(S),v.length>0&&Bo(KTe,{children:v.map(w)})]})}}}function FV(e,o){return{partRows:(t,r)=>mp(PV,{children:[e.partRows?.(t,r),o.partRows?.(t,r)]})}}function ZTe(e){let{adapter:o,capabilities:t,currentSlug:r,siteId:a,docId:n,hasUnsavedEdits:s,bridgeCapabilities:i,notifyParent:l,token:d}=KI(),{hasPreviewLink:f}=t,u=je(AV()).preview?.draftLink,p=M8(e.data),m=uV({hasTrustedConsole:!!d,canCreatePlatformTemplate:i.canCreatePlatformTemplate,capabilities:t,siteId:a,hasUnsavedEdits:s}),h=cc(()=>{!a||!r||l(mV,{siteId:a,slug:r})},[l,a,r]),I=R8({pageSlug:r,siteId:a,token:d}),w=o.previewHref?.(r)??I;return{barLead:()=>m.visible&&Bo(pV,{enabled:m.enabled,reason:m.enabled?"":m.disabledReason,onSaved:h}),barView:()=>f&&r&&Bo(B8,{liveHref:w,pageId:n??null,draftLink:u}),mainAction:p}}function JTe(e,o){let{capabilities:t,templateId:r,siteId:a,tokenRef:n,navigate:s}=KI(),{hasSiteTheme:i,explainsSiteSettings:l}=t,d=b=>o.setView(b),[f,u]=CV(ul[0].id),[p,m]=CV(!1),{surface:h,setSurface:I}=lj(),w=()=>{if(i){d("styles"),o.reveal(),vV();return}e.show(a0),e.reveal(),vV()},S={id:"pages",label:c("Pages"),icon:Bo(zTe,{}),panel:({onHide:b})=>Bo(JG,{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})},v=[];return!i&&l&&v.push({id:"appearance",label:c("Appearance"),icon:Bo(jTe,{}),active:e.kind==="website",onSelect:w}),i&&v.push({id:"styles",label:c("Styles"),icon:Bo(GTe,{}),panel:({onHide:b,notify:y})=>Bo($K,{tokenRef:n,siteId:a??void 0,onClose:b,onNotify:y,tab:f,onTabChange:u,revealPageGroup:p,onPageGroupRevealed:()=>m(!1)})}),{railLead:[S],railTrail:v,resolveLeftView:b=>aV(b,i),openSettings:w,openStyles:()=>{u(GD),d("styles")},openPageStyles:i?()=>{u(hl),m(!0),d("styles"),o.reveal()}:l?()=>{e.show(_K),e.reveal()}:void 0}}function QTe(){let{navigate:e,siteId:o,reloadFromServer:t,docId:r}=KI(),a=_V(s=>s.config),n=AV();ea(()=>(tb({openPage:s=>e({kind:"page",slug:s.slug,siteId:o??void 0}),reload:()=>{t()},config:a}),()=>tb(null)),[e,o,t,a]),ea(()=>{let s=fr();if(!s||!r)return;let i=!1;return qTe(n).list().then(l=>{i||s.learn(l)}).catch(()=>{}),()=>{i=!0}},[r,n])}function BV(){let e=yu();return cc(o=>{oN(o,e)},[e])}function ePe(e,o,t,r){let{kind:a,open:n}=e,{selected:s,zoneOf:i}=o;ea(()=>{J8(s?.type==="BookingBox"&&s.props.region==="confirm"?Q8(i(String(s.props.id))):null)},[s?.props.id]);let l=n8(e,o),{capabilities:{hasSiteSettings:d}}=KI();QTe();let{chat:f,setChat:u,setSelected:p,setSelectHandler:m}=mI(),h=cc(()=>n(OK),[n]),I=a==="chat";ea(()=>{p(I)},[I,p]),ea(()=>{m(h)},[m,h]);let{setOpenHandler:w}=Kf(),S=cc(()=>n(AK),[n]);ea(()=>{w(S)},[w,S]);let v=FV(RV(e),LV(e)),b=ZTe(o),y=JTe(e,r),k=t.device,F=BV();return{...v,...b,...y,hasOwnRows:T=>T.type===UI,ownRows:l.renderLocationTree,sectionPressed:l.sectionPressed,onCopyItem:F,wrap:T=>Bo(Uy.Provider,{value:!0,children:mp(YTe.Provider,{value:k,children:[T,Bo(K8,{})]})}),addPanelRow:T=>d?mp("div",{className:"sf-addside-sitewide",children:[Bo("span",{className:"sf-addside-sitewide-glyph","aria-hidden":"true",children:Bo(Vs,{type:"chat",size:16})}),mp("button",{type:"button",className:"sf-addside-sitewide-name",onClick:()=>{T(),h()},children:[c("Live chat"),Bo("span",{className:"sf-addside-sitewide-desc",children:c("A chat bubble on every page")})]}),Bo(UTe,{checked:f.enabled,onChange:D=>u({enabled:D}),ariaLabel:c("Show the chat bubble on the whole site")})]}):void 0}}var kV=null,P0=new WeakMap;function oPe(e){let o=MO();if(!e||!o)return e;kV!==o&&(kV=o,P0=new WeakMap);let t=P0.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},P0.set(e,t)),t}var tPe={isLockedBlock:(e,o)=>Kg(e,o)||!!(o&&fr()?.heldElsewhere(o.props.id)),duplicateBlocked:BI,nestDepth:(e,o,t)=>o===Qp?eu(e,t):0,newSectionNode:SV,canAddTo:(e,o,t,r)=>oPe(X8(e,o,r,t)),blockIsOffered:L6,slotsOf:Z8,resolveOnInsert:!0},rPe=new Proxy(cV,{get:(e,o)=>{let t=Reflect.get(e,o);return typeof t=="string"?c(t):t}}),aPe={labelAtLevel:(e,o,t)=>c(qI(e,o,t)),descriptions:rPe,categoryLabel:e=>{let o=V8(e);return o===void 0?void 0:c(o)},firstSection:Y8,blockRowName:eV,rowName:Vg,plainText:aa,Icon:Vs,Thumbnail:HK,useProducts:wV,presets:yV()},nPe={desktop:2e3,tablet:800,mobile:390},TV="desktop",sPe={options:aj,initial:TV,fluid:TV,widths:nPe,hidesPerView:!0},iPe={read:tV,write:e=>rV(e),forSelection:(e,o)=>nV(e,o)},lPe={first:St,last:eo,firstGroup:Qe,lastGroup:Ge,isSectionGroup:_i,sectionGroupZone:s1,panelOf:e=>e===St?EK:null,get sharedReach(){return Gs()?dPe:void 0},get shared(){return fr()?iV:void 0},get groupTab(){return Gs()?gK:void 0},get groupBadge(){return Gs()?QP({type:Ge})??void 0:void 0},get changeNotice(){return Gs()?IK():void 0},get band(){return Gs()?cPe:void 0},get groupAccepts(){return Gs()?c1:void 0}},cPe={foldable:!0},dPe=e=>QP(e)??sV(e);function fPe(e){return{...FV(RV(e),LV(e)),onCopyItem:BV(),openSettings:()=>e.show(a0)}}function pPe(e,o){h8(e,o),P8()}var ibo={useOwnerName:xl,useDocumentLabel:qD,useBridges:ePe,useStandaloneBridges:fPe,useDocumentPass:pPe,blockRules:tPe,blockLook:aPe,devices:sPe,leftView:iPe,pinned:lPe,Canvas:UG,canvasDrag:{media:lV},Inspector:LK};export{iT as a,je as b,Mi as c,kx as d,gGe as e,Zr as f,Jr as g,Po as h,EGe as i,Fv as j,b8e as k,Sf as l,wf as m,$5 as n,U5 as o,Qx as p,S8e as q,Vde as r,z5 as s,w8e as t,b6 as u,GJe as v,hPe as w,le as x,c as y,rt as z,S6 as A,VJe as B,Ui as C,Mo as D,sL as E,Pt as F,DRe as G,cL as H,dL as I,gm as J,Im as K,hL as L,hS as M,xS as N,URe as O,zRe as P,pF as Q,ts as R,Bm as S,MLe as T,Be as U,uF as V,Vi as W,yb as X,Sb as Y,Q1 as Z,wb as _,oY as $,pEe as aa,Nu as ba,sA as ca,tY as da,rY as ea,aY as fa,hEe as ga,Dv as ha,BGe as ia,Ox as ja,Mn as ka,Rc as la,qO as ma,XO as na,d7 as oa,HPe as pa,jy as qa,MM as ra,HM as sa,mLe as ta,Wr as ua,T1 as va,Wn as wa,VL as xa,YL as ya,ed as za,AZ as Aa,bL as Ba,Gr as Ca,vL as Da,ha as Ea,yS as Fa,bS as Ga,T4 as Ha,_b as Ia,v_e as Ja,k_e as Ka,Ka as La,P_e as Ma,E_e as Na,Ab as Oa,BA as Pa,jc as Qa,__e as Ra,FA as Sa,NA as Ta,O_e as Ua,Gc as Va,Rb as Wa,A_e as Xa,R_e as Ya,L_e as Za,F_e as _a,pM as $a,gs as ab,U5e as bb,z5e as cb,G5e as db,uM as eb,j5e as fb,Rt as gb,Il as hb,id as ib,Kr as jb,Zu as kb,$A as lb,fa as mb,UA as nb,Ro as ob,Ls as pb,Q as qb,Ol as rb,te as sb,ee as tb,se as ub,ie as vb,xe as wb,uje as xb,ge as yb,Rl as zb,Ll as Ab,pf as Bb,uf as Cb,O4 as Db,gje as Eb,Lce as Fb,A4 as Gb,bje as Hb,Sje as Ib,R4 as Jb,QC as Kb,AM as Lb,use as Mb,Md as Nb,RM as Ob,j3e as Pb,Hv as Qb,vje as Rb,kje as Sb,Tje as Tb,Pje as Ub,Eje as Vb,_je as Wb,u3e as Xb,jh as Yb,Nd as Zb,m3e as _b,h3e as $b,wM as ac,YC as bc,Vne as cc,Yne as dc,x3e as ec,qne as fc,g3e as gc,w2 as hc,l6e as ic,A2 as jc,c6e as kc,d6e as lc,f6e as mc,Mx as nc,zv as oc,N4 as pc,Hx as qc,Wje as rc,Gce as sc,jce as tc,Kce as uc,$je as vc,bt as wc,Ds as xc,Ml as yc,vKe as zc,kKe as Ac,TKe as Bc,H2 as Cc,dx as Dc,kie as Ec,y6e as Fc,w5 as Gc,C5 as Hc,v5 as Ic,GKe as Jc,AX as Kc,hr as Lc,XAe as Mc,ZAe as Nc,JAe as Oc,QAe as Pc,um as Qc,eRe as Rc,Om as Sc,nd as Tc,JL as Uc,QL as Vc,eF as Wc,wLe as Xc,Qe as Yc,Ge as Zc,Jy as _c,_i as $c,i1 as ad,vu as bd,T5 as cd,T8e as dd,P8e as ed,og as fd,j5 as gd,vw as hd,Id as id,Yr as jd,co as kd,Pw as ld,FB as md,BB as nd,Ew as od,yd as pd,yh as qd,Pd as rd,nC as sd,Cr as td,Sa as ud,BN as vd,us as wd,mC as xd,gC as yd,$d as zd,BM as Ad,NM as Bd,tv as Cd,Ss as Dd,XM as Ed,PWe as Fd,EWe as Gd,_We as Hd,jd as Id,Kt as Jd,NWe as Kd,b3e as Ld,L3e as Md,XC as Nd,F3e as Od,ys as Pd,Kh as Qd,yo as Rd,VWe as Sd,t2 as Td,a2 as Ud,n2 as Vd,fo as Wd,qe as Xd,ag as Yd,o3 as Zd,V8e as _d,ng as $d,t3 as ae,J8e as be,mVe as ce,u3 as de,yk as ee,m3 as fe,gVe as ge,IVe as he,yVe as ie,bk as je,bVe as ke,SVe as le,h3 as me,kfe as ne,dg as oe,a7e as pe,ux as qe,Die as re,Sv as se,Nfe as te,I7e as ue,G3 as ve,j3 as we,y7e as xe,b7e as ye,Rw as ze,BDe as Ae,Lw as Be,HB as Ce,R7e as De,rW as Ee,aW as Fe,J7e as Ge,cYe as He,dYe as Ie,fYe as Je,Wk as Ke,LLe as Le,US as Me,zS as Ne,GS as Oe,pW as Pe,Jfe as Qe,Qfe as Re,pg as Se,mYe as Te,hYe as Ue,$Ye as Ve,FW as We,UYe as Xe,BW as Ye,GYe as Ze,zW as _e,GW as $e,Rpe as af,YW as bf,s9e as cf,xg as df,h9e as ef,Ef as ff,I9e as gf,e$ as hf,b9e as if,o$ as jf,t$ as kf,C9e as lf,Dd as mf,pse as nf,gg as of,s$ as pf,P9e as qf,E9e as rf,_9e as sf,O9e as tf,_a as uf,B9e as vf,Ig as wf,H9e as xf,bg as yf,D3e as zf,M3e as Af,bs as Bf,H3e as Cf,iR as Df,ED as Ef,a4e as Ff,n4e as Gf,gae as Hf,s4e as If,i4e as Jf,OD as Kf,zC as Lf,$h as Mf,tM as Nf,Qd as Of,Wt as Pf,O0e as Qf,fb as Rf,Hc as Sf,L0e as Tf,M7 as Uf,H1 as Vf,F0e as Wf,$n as Xf,z7 as Yf,W0e as Zf,$0e as _f,Wc as $f,U0e as ag,z0e as bg,gb as cg,vUe as dg,kUe as eg,TUe as fg,PUe as gg,rle as hg,EUe as ig,xx as jg,of as kg,RUe as lg,Pv as mg,SH as ng,wH as og,vv as pg,dle as qg,LUe as rg,gx as sg,tf as tg,yx as ug,FUe as vg,BUe as wg,Ix as xg,NUe as yg,DUe as zg,Vy as Ag,at as Bg,ZO as Cg,f7 as Dg,p7 as Eg,zPe as Fg,u7 as Gg,m7 as Hg,GPe as Ig,jPe as Jg,KPe as Kg,VPe as Lg,TH as Mg,rf as Ng,af as Og,Sx as Pg,EH as Qg,El as Rg,_H as Sg,wx as Tg,Cx as Ug,vx as Vg,OH as Wg,AH as Xg,RH as Yg,LH as Zg,FH as _g,DH as $g,MH as ah,pze as bh,uze as ch,mze as dh,hze as eh,mr as fh,Ale as gh,GH as hh,Lle as ih,KH as jh,VH as kh,rx as lh,Ule as mh,$ze as nh,QH as oh,Yze as ph,sGe as qh,iGe as rh,S$e as sh,Kd as th,T$e as uh,P$e as vh,I2 as wh,QZ as xh,jr as yh,xLe as zh,Af as Ah,Oa as Bh,J6 as Ch,Fg as Dh,ueo as Eh,meo as Fh,veo as Gh,keo as Hh,Qme as Ih,vT as Jh,iU as Kh,Teo as Lh,cU as Mh,dU as Nh,hU as Oh,she as Ph,che as Qh,qeo as Rh,loo as Sh,coo as Th,Nf as Uh,doo as Vh,foo as Wh,PT as Xh,poo as Yh,Yd as Zh,hv as _h,lx as $h,Woo as ai,kl as bi,M6e as ci,H6e as di,Q2 as ei,Ghe as fi,cz as gi,Mf as hi,aro as ii,sro as ji,DT as ki,Cz as li,Cg as mi,WXe as ni,zXe as oi,$$ as pi,Xk as qi,U$ as ri,z$ as si,KXe as ti,G$ as ui,kg as vi,eZe as wi,K$ as xi,q$ as yi,V$ as zi,Mm as Ai,ga as Bi,Ho as Ci,Et as Di,cd as Ei,qi as Fi,YLe as Gi,qLe as Hi,ZLe as Ii,JLe as Ji,QLe as Ki,eFe as Li,oFe as Mi,rFe as Ni,Xi as Oi,as as Pi,SF as Qi,qS as Ri,FJ as Si,wF as Ti,ZS as Ui,q1 as Vi,X1 as Wi,lEe as Xi,Mu as Yi,Hu as Zi,zc as _i,xA as $i,kEe as aj,TEe as bj,wA as cj,kb as dj,GY as ej,W_e as fj,V_e as gj,Y_e as hj,x9 as ij,mt as jj,Vc as kj,Gb as lj,jb as mj,DOe as nj,rR as oj,MOe as pj,HOe as qj,WOe as rj,cR as sj,fR as tj,ua as uj,yR as vj,nS as wj,_R as xj,fAe as yj,AR as zj,BR as Aj,NR as Bj,DR as Cj,MR as Dj,HR as Ej,WR as Fj,iS as Gj,yX as Hj,bX as Ij,Zc as Jj,lS as Kj,UR as Lj,LAe as Mj,wX as Nj,FAe as Oj,BAe as Pj,NAe as Qj,GR as Rj,WAe as Sj,kX as Tj,$Ae as Uj,UAe as Vj,PX as Wj,cS as Xj,_X as Yj,KAe as Zj,OX as _j,VAe as $j,pS as ak,lRe as bk,qR as ck,BX as dk,dRe as ek,Jc as fk,qX as gk,ORe as hk,HZ as ik,nLe as jk,$Z as kk,sLe as lk,iLe as mk,lLe as nk,Ki as ok,Lm as pk,ELe as qk,_Le as rk,OLe as sk,BJ as tk,NJ as uk,sFe as vk,WJ as wk,$J as xk,iFe as yk,lFe as zk,cFe as Ak,dFe as Bk,fFe as Ck,IFe as Dk,yFe as Ek,bFe as Fk,SFe as Gk,wFe as Hk,CFe as Ik,vFe as Jk,kFe as Kk,TFe as Lk,PFe as Mk,EFe as Nk,CF as Ok,_Fe as Pk,OFe as Qk,on as Rk,XJ as Sk,is as Tk,hNe as Uk,xNe as Vk,gNe as Wk,INe as Xk,yNe as Yk,bNe as Zk,SNe as _k,kNe as $k,TNe as al,tee as bl,PNe as cl,ENe as dl,_Ne as el,ONe as fl,ANe as gl,RNe as hl,LNe as il,FNe as jl,see as kl,xw as ll,BNe as ml,Qi as nl,xt as ol,yr as pl,aB as ql,nB as rl,ol as sl,NNe as tl,Ree as ul,DNe as vl,MNe as wl,HNe as xl,WNe as yl,$Ne as zl,UNe as Al,zNe as Bl,hB as Cl,GNe as Dl,ooe as El,jNe as Fl,KNe as Gl,IB as Hl,VNe as Il,YNe as Jl,qNe as Kl,XNe as Ll,ZNe as Ml,QNe as Nl,ww as Ol,eDe as Pl,bB as Ql,oDe as Rl,tDe as Sl,nl as Tl,wB as Ul,rDe as Vl,aDe as Wl,nDe as Xl,sDe as Yl,rno as Zl,ano as _l,nno as $l,Vg as am,qz as bm,YT as cm,Tno as dm,Pno as em,FIe as fm,BIe as gm,nso as hm,sso as im,iso as jm,lso as km,Qg as lm,eI as mm,Rso as nm,xG as om,yG as pm,bG as qm,SG as rm,pI as sm,QG as tm,ej as um,tj as vm,uI as wm,Xlo as xm,Zlo as ym,mI as zm,jbe as Am,ico as Bm,Kf as Cm,fco as Dm,lj as Em,Ei as Fm,l7 as Gm,NPe as Hm,DPe as Im,Euo as Jm,_uo as Km,Ouo as Lm,s4 as Mm,mco as Nm,hI as Om,TPe as Pm,Eoe as Qm,_oe as Rm,Ooe as Sm,UB as Tm,KDe as Um,Xw as Vm,QN as Wm,yHe as Xm,PD as Ym,I4e as Zm,y4e as _m,Dh as $m,gne as an,Ine as bn,I5e as cn,yPe as dn,Mne as en,bM as fn,s3e as gn,i3e as hn,jne as in,l3e as jn,c3e as kn,Gh as ln,d3e as mn,Cl as nn,l2 as on,c2 as pn,b2 as qn,r6e as rn,M2 as sn,h6e as tn,W2 as un,wv as vn,Wie as wn,Gie as xn,X6e as yn,Hqe as zn,Xqe as An,eXe as Bn,P$ as Cn,aXe as Dn,nXe as En,gXe as Fn,IXe as Gn,AXe as Hn,BXe as In,_f as Jn,Xue as Kn,RZe as Ln,WZe as Mn,rJe as Nn,aJe as On,kJe as Pn,p6 as Qn,CPe as Rn,dj as Sn,Zdo as Tn,gj as Un,eo as Vn,FI as Wn,Rr as Xn,GK as Yn,sp as Zn,jK as _n,KK as $n,Lho as ao,Fho as bo,E8 as co,w0 as do,_8 as eo,X8 as fo,Qgo as go,ibo as ho};
|