efficient-storefront-blocks 0.117.1 → 0.118.0

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.
Files changed (40) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/dist/chunks/{EditorPreviewCheckout-75F6QF5U.js → EditorPreviewCheckout-EAXEJX6G.js} +1 -1
  3. package/dist/chunks/{SiteEditorProvider-ZVNXSXBQ.js → SiteEditorProvider-QXV6Z27K.js} +1 -1
  4. package/dist/chunks/{chunk-3XS3LIPN.js → chunk-2ULOP225.js} +1 -1
  5. package/dist/chunks/chunk-6IGIBTC3.js +342 -0
  6. package/dist/chunks/{chunk-XZPK5PGX.js → chunk-H5F6BWNC.js} +1 -1
  7. package/dist/chunks/{fitment-data-3N56LEBE.js → fitment-data-GGY5ZYBZ.js} +1 -1
  8. package/dist/editor/lib/document/blocks/commerce/FitmentTable/fields.js +1 -1
  9. package/dist/editor/lib/document/blocks/commerce/index.d.ts +1 -1
  10. package/dist/editor/lib/document/config.d.ts +1 -0
  11. package/dist/editor/lib/document/config.js +1 -1
  12. package/dist/editor/lib/efficient-backend.js +1 -1
  13. package/dist/editor/lib/storefront-editor-words.d.ts +2 -0
  14. package/dist/editor/lib/storefront-editor-words.js +1 -1
  15. package/dist/index.d.ts +3 -0
  16. package/dist/index.js +30 -30
  17. package/dist/render/built-with.json +1 -1
  18. package/dist/render/components/FitmentTable.d.ts +5 -1
  19. package/dist/render/components/FitmentTable.js +1 -1
  20. package/dist/render/components/pdp-dynamic/DynamicFitmentTable.d.ts +4 -0
  21. package/dist/render/components/pdp-dynamic/DynamicFitmentTable.js +1 -1
  22. package/dist/render/lib/api/index.d.ts +27 -0
  23. package/dist/render/lib/api/index.js +1 -1
  24. package/dist/render/lib/content/fitment-row-seed.d.ts +15 -0
  25. package/dist/render/lib/content/fitment-row-seed.js +1 -0
  26. package/dist/render/lib/document/blocks/commerce/FitmentTable/meta.d.ts +10 -0
  27. package/dist/render/lib/document/blocks/commerce/FitmentTable/meta.js +1 -1
  28. package/dist/render/lib/document/blocks/commerce/FitmentTable/render.js +1 -1
  29. package/dist/render/lib/document/card-templates.js +1 -1
  30. package/dist/render/lib/document/render-config.d.ts +1 -0
  31. package/dist/render/lib/document/render-config.js +1 -1
  32. package/dist/render/lib/document/section-to-box-rows-fitment.d.ts +1 -0
  33. package/dist/render/lib/document/section-to-box-rows-fitment.js +1 -0
  34. package/dist/words.d.ts +2 -0
  35. package/dist/words.js +1 -1
  36. package/package.json +3 -2
  37. package/dist/chunks/chunk-XVPVTQYY.js +0 -342
  38. /package/dist/chunks/{chunk-NMYHWA3M.js → chunk-53R44PTG.js} +0 -0
  39. /package/dist/chunks/{chunk-XVPVTQYY.js.LEGAL.txt → chunk-6IGIBTC3.js.LEGAL.txt} +0 -0
  40. /package/dist/chunks/{chunk-JVAY6GGN.js → chunk-CL5JFHNP.js} +0 -0
@@ -0,0 +1,342 @@
1
+ import{$ as wp,$a as uE,$c as z,$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 Dn,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 sa,Cc as NE,Ce as a_,Cf as k_,Cg as X_,D as yp,Db as _p,Dd as kt,De as n_,Df as T_,Dg as Z_,E as Fr,Ec as DE,Ed as pt,Ee as zp,Ef as P_,Ei as PO,F as si,Fa as Dt,Fd as co,Fe as s_,Ff as Yp,G as lo,Ga as lr,Gc as my,Gd as Dr,Ge as Ty,Gf as E_,Gi as EO,H as xo,Ha as di,Hd as Mr,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 $,Ka as JI,Kd as KE,Ke as l_,Kf as Ry,Ki as fe,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 at,Nh as au,Oc as HE,Oe as jp,Of as Ha,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 go,Qd as Ln,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 Pe,Rf as Mt,Rg as Qp,Rh as fO,Ri as gu,S as En,Sa as ho,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 Bn,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 Zo,Yd as qE,Yg as ca,Yh as hO,Z as z0,Za as fE,Zc as ia,Zd as XE,Zf as F_,_a as pE,_c as WE,_d as ZE,_e as Ma,_f as Fy,_g as rO,a as ai,aa as Na,ab as mE,ad as Fp,ae as wy,ai as Wa,b as be,ba as li,bb as Pp,bd as ft,be as JE,bh as My,bi as gO,c as _o,ca as G0,cb as Ep,cd as $E,ch as da,ci as IO,d as ra,da as aa,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 Nr,eg as N_,eh as ht,f as vt,fa as ci,fc as AE,fd as gy,ff as m_,fg as D_,fh as ve,fi as su,g as uc,ga as j0,gb as gE,gd as Da,gf as h_,gg as M_,gh as ou,gi as $a,h as O0,ha as K0,hb as IE,hd as la,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 Nn,ih as Tc,j as A0,ja as xc,jb as yE,je as QE,jf as x_,jg as H_,jh as Tt,k as R0,ka as V0,kb as bE,kd as Ze,ke as Hp,kf as g_,kg as W_,kh as Pc,la as Y0,lb as ty,ld as Rn,le as Wp,lf as yi,lh as tu,li as bO,ma as q0,mb as fi,mc as An,md as yc,me as e_,mf as mt,mg as Jp,mh as vi,mi as lu,n as L0,na as _n,nb as On,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 Fn,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 Ua,sa as J0,sb as wE,sc as fy,sf as y_,sg as K_,si as CO,t as to,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 Hr,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 Ht,w as N0,wa as oE,wb as Br,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 Jo,y as Ue,ya as na,yc as LE,yd as by,ye as ut,yf as Oy,yg as q_,yi as me,z as Oo,za as tE,zb as Ic,zc as FE,ze as vc,zg as Wr}from"./chunk-53R44PTG.js";import{c as _O,d as fu,e as pu,f as OO,i as uu,j as Wt,k as mu,l as hu,m as xu,q as Hy}from"./chunk-CL5JFHNP.js";var BO="en",Iu=null,NO=BO,DO=null;function SPe(e,o,t){Iu=e??null,NO=o||BO,DO=t??null}function ce(){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($(o,r)):t):e}function c(e,o){let t=Iu?$(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 nt(e,o,t,r){return c(t===1?e:o,{...r,n:t})}import{jsx as $y,Fragment as qV,jsxs as XV}from"react/jsx-runtime";import{createContext as ZV,useContext as JV}from"react";var QV={mirrorHostStyles:!0,css:null,fontHrefs:[]},HO=ZV(QV);function kPe({value:e,children:o}){return $y(HO.Provider,{value:e,children:o})}function Ac(){return JV(HO)}function WO(){let{css:e,fontHrefs:o}=Ac();return XV(qV,{children:[o.map(t=>$y("link",{rel:"stylesheet",href:t},t)),e?$y("style",{"data-sf-canvas-css":"",children:e}):null]})}import{jsx as e7}from"react/jsx-runtime";import{createContext as o7,useContext as t7}from"react";var $O=o7(void 0);function _Pe({metadata:e,children:o}){return e7($O.Provider,{value:e,children:o})}var UO=()=>t7($O);import{jsx as Bo,Fragment as OV,jsxs as mp}from"react/jsx-runtime";import{useCallback as cc,useEffect as oa,useRef as VTe,useState as TV}from"react";import{SettingsSwitch as YTe}from"efficient-easel/panel";import{PagesIcon as qTe,StylesIcon as XTe}from"efficient-easel/rail";import{PaletteIcon as ZTe}from"efficient-shell/icons/efficient";import{Subtree as JTe,TreeRow as AV}from"efficient-easel/tree";import{useEasel as RV}from"efficient-easel/easel";import{toItemSelector as QTe}from"efficient-easel/node-ops";import{useEaselStrings as LV}from"efficient-easel/strings";import{createContext as r7,useContext as a7}from"react";var Uy=r7(!1),RPe=()=>a7(Uy);import{useMemo as n7,useRef as s7}from"react";import{useEaselApi as i7}from"efficient-easel/easel";import{useSectionOps as l7}from"efficient-easel/screen/lib/document/use-section-ops";function yu(){let e=i7(),o=l7(),t=s7(o);return t.current=o,n7(()=>({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 joe}from"efficient-easel/draw";import{insertAt as Koe,moveTo as Voe,removeAt as Yoe}from"efficient-easel/fields";import{useSyncExternalStore as Moe}from"react";import{isNodeList as zO}from"efficient-easel/data";var GO="Flex";function Ei(e,o){return ut(e)?typeof e?.[vt]=="string"?zy(o?.[vt]):"":zy(e?.[vt])}var zy=e=>typeof e=="string"?e.trim():"",c7=e=>e.type===Oo&&Array.isArray(e.props?.[Cy])&&e.props[Cy].some(o=>zy(o?.[vt])!==""),d7=new Intl.NumberFormat("en-US");function f7(e){return/^\d+$/.test(e)?d7.format(Number(e)):e}function UPe(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:f7(t)}var p7={[vt]:"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,p7)!==""),a=o||c7(e),n=xo(e,i=>lo(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=to(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 zPe(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=to(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 ya,Fragment as Sa}from"react/jsx-runtime";var Mn=["image","video"],Hn={image:"imageFocal",image2:"imageFocal2"},Rc={HeroSingle:"image",HeroSlide:"video"};function qO(e,o){return Mn.includes(o)?o:Rc[e]}var XO=["one","side","stacked"],u7="one",jPe={one:"One",side:"Side by side",stacked:"Stacked"};function bu(e){return XO.includes(e)?e:u7}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 XJ,useContext as NF,useEffect as ZJ,useId as DF,useRef as dd,useState as fd}from"react";import{useEasel as Km,useSelectedHost as ss}from"efficient-easel/easel";import{PIN_LENGTH as zm,toDateKey as zFe,fromDateKey as GFe}from"efficient-shell/format";function Vy(e){return!!e&&typeof e=="object"&&!Array.isArray(e)&&typeof e.src=="string"}function st(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 m7=["upload","youtube"],h7="upload",qPe={upload:"Upload",youtube:"YouTube"},x7=["background","click"],g7="background",XPe={background:"Background",click:"Click to play"};function QO(e){return m7.includes(e)?e:h7}function e1(e){return x7.includes(e)?e:g7}var JO=/^[A-Za-z0-9_-]{11}$/,I7=/^(?: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:"||!I7.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"},ZPe={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":st(e.poster)?"image":"frame"}function JPe(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 st(a)||st(n)||void 0}function a1(e){if(st(e.mediaVideo)){if(Fc(e)==="frame")return st(e.videoFrame)?void 0:st(e.poster)?"frame-missing-image":"frame-missing-surface";if(!st(e.poster))return st(e.videoFrame)?"image-missing-frame":"image-missing-surface"}}var Su="videoFrames",Zy="videoFramesNotOwn";function n1(e,o,t){let r=st(e.mediaVideo);if(!r||!o||Fc(e)!=="frame"||st(e.videoFrame))return;let a=o[r],n=!!st(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 y7(e,o){let t=st(e),r=t&&o?o[t]:void 0;return r?.state==="ready"&&r.frame?r.frame:void 0}function QPe(e,o,t){let r=t?.[Zy];if(!(Array.isArray(r)&&r.includes(e)))return y7(o,t?.[Su])}import{useSyncExternalStore as b7}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 b7(t,a,a)}}}var Je="SiteHeader",ze="SiteFooter",Jy="sections",Cu=[Je,ze],_i=e=>e===Je||e===ze,s1=e=>`${e}:${Jy}`;function i1(e,o,t=[]){return{type:e,props:{id:o,[Jy]:t}}}var S7=new Set(["Footer",Je,ze]);function Oi(e){let o=new Set,t=!1,r=e.filter(a=>{let n=a?.type??"";return n==="Header"?(t=!0,!1):S7.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===Je?[o,...e]:[...e,o]}var l1={[Je]:{max:3,takes:["Flex","Ticker"]},[ze]:{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 w7}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?w7(e,o,r.ownerId):null;return a&&r?{...a,slot:r.slot}:null}import{isNode as C7}from"efficient-easel/data";var f1="Footer",p1=[Je,f1,ze],Wn=e=>{let o=e?.content;return Array.isArray(o)?o:[]},za=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(Wn(e)),t=o.some(r=>r?.type===ze);return o.filter(r=>r?.type===Je||r?.type===ze||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(C7(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=Wn(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,za(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===Je),a=t.filter(i=>i.type!==Je),n={...e,content:[...r,...Wn(e),...a]},{owned:s}=Qy(za(o),Tu(t,za(o)));return Object.keys(s).length&&(n.zones={...za(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 Wn(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(Wn(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===Je?[v,...l]:[...l,v]);l=Oi(l);let d=l.length===Wn(o).length&&l.every((v,b)=>v===Wn(o)[b]),f=za(e),u=Tu(l,f),{owned:p,rest:m}=Qy(f,u),h=Qy(za(o),Tu(t,za(o))).owned,I={...o,content:d?o.content:[...l]},w=za(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&&v7(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 v7(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 JJ}from"efficient-easel/screen/components/ScreenDocumentContext";import{readHidable as tn,hidableText as QJ}from"efficient-easel/draw";import{FOLD_FIELD_MARKER as MF,LINK_FIELD_MARKER as eQ,MEDIA_FIELD_MARKER as oQ,SCAFFOLD_FIELD_MARKER as tQ,TEXT_FIELD_MARKER as ba,foldMetaOf as br,textFieldIdentifier as JFe}from"efficient-easel/draw";import{jsx as F1}from"react/jsx-runtime";import{useCallback as _7}from"react";import{useEasel as O7}from"efficient-easel/easel";import{SettingsAction as A7}from"efficient-easel/panel";import{isLengthUnit as P7}from"efficient-easel/screen/lib/content/length-units";import{CORNER_SIDES as _u,hasCornerSubset as Nc,normalizeCornerSides as $r}from"efficient-easel/screen/lib/content/style-keys";import{isLengthUnit as k7}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=k7(t)&&t!=="px"?wi(e,t):wi(Mt(e));if(Object.keys(r).length===0)return;let a=r[sb];if(typeof a!="string")return r;let n=Nc(o)?$n(a,$r(o)??[]):a;return{...r,[T7]:n}}var T7="--sf-section-radius",sb="--sf-card-radius";function $n(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"},E7="--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=(P7(t)&&t!=="px"?wi(e,t):wi(Mt(e)))[sb];if(typeof r!="string")return;let a=Nc(o)?$n(r,$r(o)??[]):r;return{[E7]: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?nt("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 nt("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 R7}from"efficient-easel/screen/lib/document/use-section-ops";var L7="apply-corners-to-siblings",F7="Apply to all cards";function B7({plan:e,onPress:o}){return F1(A7,{id:L7,label:c(F7),note:A1(e),disabled:!e.can,doneLabel:R1(e.others),onPress:o})}function B1(){let{appState:e,config:o}=O7(n=>n),t=R7(),r=O1(o,e.data.content??[],e.ui.itemSelector),a=_7(()=>{L1(r,t.replaceComponent)},[r,t]);return F1(B7,{plan:r,onPress:a})}import{isShown as G1,lazyShowWhenContext as V7}from"efficient-shell/format";var $t="product",Ou="recordType",N1={key:$t,label:"Product",fields:[]},N7=/^[a-z][a-z0-9]*(-[a-z0-9]+)*$/,D7=/^[a-z][A-Za-z0-9]*$/,M7=["text","date","images"],lb=new Map,D1=0;function H7(e){if(typeof e.key!="string"||!N7.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===$t)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"||!D7.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(!M7.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 N0e(e){let o=e.map(H7);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===$t?N1:lb.get(e)??null}function fb(){return D1}function Hc(e){let o=e?.[Ou];return typeof o!="string"?$t:o.trim()||$t}function pb(e){return Hc(e)===$t}function ub(e,o){let t=db(e)?.fields??[];return o?t.filter(r=>o.includes(r.kind)):t}var Au="product",M1="tyre",W7=[Au,M1];function H0e(e){return W7.includes(e)}var $7="productType",U7={[Au]:"alloy-wheel",[M1]:"tyre"},z7=["alloy-wheel","tyre"];function H1(e,o){return pb(o)?W1(o)??U7[e]??null:null}function W1(e){if(!pb(e))return null;let o=e?.[$7];return typeof o=="string"&&z7.includes(o)?o:null}function W0e(e){let o=e?.root;return W1(o?.props)}var mb="Main Pages",G7="Dynamic Pages",hb="dynamic",j7="dynamic";function Un(e){return e.kind===j7}var xb="lightbox";function $1(e){return e.kind===xb}function U1(e){let o=[],t=[];for(let r of e){if(Un(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:G7,rows:t})}return o}var Ru=null,z1=null;function K7(e,o){Ru=e,z1=o}function K0e(e){K7(e,null)}function V0e(){return Ru}function Wc(){return Un({kind:z1})||Ru===Au}function Y0e(e){return H1(Ru??"",e)??"alloy-wheel"}function q0e(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=Y7(s,o?.[n],o??{},t);i!==s&&(r=!0),a[n]=i}return r?a:e}function Y7(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 V7({parentType:()=>e.parent?.type??void 0,parent:()=>e.parent?.props??void 0,dynamicPage:()=>Wc(),root:()=>e.appState?.data?.root?.props,...o})}import{isLengthUnit as q7}from"efficient-easel/screen/lib/content/length-units";var V1=1,X7="cardImageUnit",Ib={kind:"radius",unitKey:X7},Y1={kind:"radius"};function Z7(e){return Mt(e)}function q1(e,o){if(q7(o)&&o!=="px"){let r=q(e);return r!==void 0&&r>=0?{"--sf-card-image-radius":Me(r,o)}:{}}let t=Z7(e);return t===null?{}:{"--sf-card-image-radius":`${t}px`}}import{isLengthUnit as J7}from"efficient-easel/screen/lib/content/length-units";var X1={kind:"radius",unitKey:"cornersUnit"},Z1=1,J1="Corners";function Q7(e){return Mt(e)}function mEe(e,o,t){let r=J7(t)&&t!=="px"?q(e):void 0,a=r===void 0?Q7(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)?$n(n,$r(o)??[]):n}}var eA=12,Ri=6,eY=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 oY=new Set(oA),$c=Object.fromEntries(Object.entries(Fu).map(([e,o])=>[e,Object.fromEntries(Object.entries(o).filter(([t])=>!oY.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?tY(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 tY(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 rY="sf-wall--";function aY(e){let o=rA(e);if(!o)return"";let t=aA(e.layoutPhone);return`${rY}${o}${t?`--${t}`:""}`}function IEe(e){let o=Sb(e);if(!o)return"";let t=`.${aY(e)}`,r=[],a=(i,l,d)=>`${t}:has(> :nth-child(${i}n+${l+d}):last-child) > :nth-last-child(-n+${d})`,n=(i,l,d=[])=>{let f=[],u=i.length,p=d.length;d.forEach(([m,h],I)=>{f.push(`${t} > :nth-child(${I+1}){grid-column:span ${m};grid-row:span ${h}}`)}),i.forEach(([m,h],I)=>{f.push(`${t} > :nth-child(${u}n+${p+I+1}){grid-column:span ${m};grid-row:span ${h}}`)});for(let m=1;m<u;m+=1)f.push(`${a(u,p,m)}{grid-column:span ${l};grid-row:span 1}`);return f};r.push(`${t}{grid-template-columns:repeat(${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:${eY}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,nY=3;var sY=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 iY(e){return Du(e,1,Nu)??sY}function SEe(e,o){return Du(e,sA,nY)??(iY(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",Ga=["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 lY}from"react/jsx-runtime";import*as cY from"efficient-easel/icons";function Mu(e){let o=e.replace(/(^|-)([a-z])/g,(r,a,n)=>n.toUpperCase()),t=cY[`${o}Icon`];return t?lY(t,{size:16}):null}import{jsx as ja,Fragment as pY,jsxs as yA}from"react/jsx-runtime";import{useContext as uY,useEffect as mY,useId as hY,useState as bA}from"react";import{SettingsField as xY,SettingsSwitch as gY}from"efficient-easel/panel";import{AnchorIcon as IY}from"efficient-easel/icons";import{ScreenDocumentContext as yY}from"efficient-easel/screen/components/ScreenDocumentContext";import{Snippet as bY}from"efficient-shell/ui";import{slugify as SY}from"efficient-shell/format";import{slugify as dY}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 zn=e=>dY(Uc(e));var Hu="homepage";import{slugify as fY}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 AEe(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=fY(n);!s||o.has(s)||(o.add(s),t.push({slug:s,name:n}))}return t}function REe(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 wY}from"efficient-easel/draw";function SA({value:e,onChange:o,nameBox:t}){let r=wY(e).text,[a,n]=bA(!1),s=a||r.trim()!=="",i=hY();return yA(pY,{children:[ja(xY,{label:c("Add an anchor"),labelId:i,icon:ja(IY,{}),action:ja(gY,{checked:s,ariaLabelledBy:i,onChange:l=>{n(l),!l&&r!==""&&o("")}})}),s&&t(e,o),s&&ja(CY,{name:r})]})}function CY({name:e}){let o=uY(yY),t=o?.templateId?"":o?.currentSlug??"",[r,a]=bA("");mY(()=>a(fu()),[]);let n=SY(e);if(!n||!t)return null;let s=`${r}${Wu(t,n)}`,i=s.replace(/^https?:\/\//,""),l=i.lastIndexOf("#");return ja("div",{className:"sf-anchor-link",children:ja(bY,{value:s,label:c("link"),size:"sm",children:yA("span",{className:"sf-anchor-link-text",children:[ja("span",{className:"sf-anchor-link-path",children:i.slice(0,l)}),ja("span",{className:"sf-anchor-link-hash",children:i.slice(l)})]})})})}import{jsx as Ur,jsxs as vY}from"react/jsx-runtime";import{Fragment as kY}from"react";import{Button as $u,Tooltip as TY}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?Ur("div",{className:`sf-blogsource sf-blogsource--compact${l?" sf-blogsource--line":""}`,style:s?{marginTop:8}:void 0,children:Ur(TY,{content:n,className:l?"sf-name-tip":void 0,children:Ur("p",{className:"sf-blogsource-status","data-state":e,children:[o?Ur(kY,{children:o},"status"):null,t?Ur($u,{variant:"link",size:"sm",className:"sf-blogsource-link",onClick:t,disabled:r,children:c("Refresh now")},"refresh"):null,a?Ur($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])})})}):vY("div",{className:"sf-blogsource",style:s?{marginTop:9}:void 0,children:[Ur("p",{className:"sf-blogsource-status","data-state":e,children:o}),t?Ur($u,{variant:"secondary",className:"sf-blogsource-action",onClick:t,disabled:r,children:c("Refresh now")}):null,a?Ur($u,{variant:"secondary",className:"sf-blogsource-action",onClick:a.onClick,children:a.label}):null,Ur("p",{className:"es-field-hint",children:n})]})}import{AdjustIcon as rQ,EyeIcon as aQ,AnimationIcon as nQ,BackgroundIcon as vF,BorderAllIcon as sQ,BlockSectionIcon as iQ,ColumnWidthsIcon as lw,ColumnsIcon as HF,CornerIcon as WF,DirectionDownIcon as lQ,DirectionLeftIcon as cQ,DirectionRightIcon as dQ,DirectionUpIcon as fQ,EditIcon as pQ,GapIcon as uQ,GridIcon as $F,GroundIcon as aw,HashIcon as mQ,HeightIcon as cw,ImageIcon as hQ,ListIcon as xQ,LocationIcon as kF,PaddingBottomIcon as UF,PaddingLeftIcon as zF,PaddingRightIcon as GF,PaddingTopIcon as dw,PageIcon as gQ,StickyIcon as jF,SearchIcon as IQ,SquareIcon as yQ,TypeIcon as bQ,WidthIcon as SQ}from"efficient-easel/icons";import{jsx as ro,Fragment as Gn,jsxs as jn}from"react/jsx-runtime";import{CaptionIcon as PY,DateIcon as EY,FlagIcon as _Y,TitleIcon as OY,ButtonIcon as AY,DollarIcon as RY,HashIcon as LY,LinkIcon as FY,NoteIcon as BY,TagIcon as NY,TextLinesIcon as DY}from"efficient-easel/icons";var CA={body:DY,button:AY,link:FY,label:NY,number:LY,price:RY,note:BY,name:_Y,date:EY,caption:PY,title:OY},vA={eyebrow:jn(Gn,{children:[ro("path",{d:"M5 6.5h5"}),ro("path",{d:"M5 12.5h14"}),ro("path",{d:"M5 18h11"})]}),heading:jn(Gn,{children:[ro("path",{d:"M6.5 5v14"}),ro("path",{d:"M17.5 5v14"}),ro("path",{d:"M6.5 12h11"})]}),intro:jn(Gn,{children:[ro("path",{d:"M4 5.5v13"}),ro("path",{d:"M8 7.5h12"}),ro("path",{d:"M8 12h12"}),ro("path",{d:"M8 16.5h8"})]}),value:jn(Gn,{children:[ro("rect",{x:"2.5",y:"7",width:"19",height:"10",rx:"2"}),ro("path",{d:"M6.5 12h7"})]}),quote:jn(Gn,{children:[ro("path",{d:"M9.5 5.5C7 7.2 5.5 9.7 5.5 12.8h4v5.7h-5v-5.7"}),ro("path",{d:"M19.5 5.5c-2.5 1.7-4 4.2-4 7.3h4v5.7h-5v-5.7"})]}),tag:jn(Gn,{children:[ro("rect",{x:"3",y:"5.5",width:"18",height:"13",rx:"2.5"}),ro("path",{d:"M8 9.5h8"}),ro("path",{d:"M12 9.5v5"})]}),meta:jn(Gn,{children:[ro("path",{d:"M4 7h16"}),ro("path",{d:"M4 14h3.5"}),ro("path",{d:"M10.5 14h3"}),ro("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?ro("span",{className:r,style:{display:"inline-flex",...a},"aria-hidden":"true",children:ro(n,{size:o})}):ro("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 QEe=Object.keys(CA);var e_e=Object.keys(vA);import{parseHexColor as jY}from"efficient-shell/format";import{parseHexColor as _A}from"efficient-shell/format";import{COLOR_SLOTS as OA,FILL_COLOR_SLOTS as UY,colorRole as zY,fillColorRole as AA}from"efficient-shell/markup";import{parseHexColor as kA}from"efficient-shell/format";import{FILL_COLOR_SLOTS as MY}from"efficient-shell/markup";var Uu=e=>{let o=G_.find(t=>t.role===e);return o?`var(${o.token})`:""},HY=e=>Uu(e)?`var(--theme-${e})`:"",WY={main:{ink:_n.accent,page:_n.accent,key:"accent",label:()=>c("Main"),words:e=>c("Theme {n} main color",{n:e})},text:{ink:_n.text,page:_n.text,key:"text",label:()=>c("Text"),words:e=>c("Theme {n} text color",{n:e})},background:{ink:Uu("bg"),page:HY("bg"),key:"background",label:()=>c("Background"),words:e=>c("Theme {n} background",{n:e})},muted:{ink:_n.labels,page:_n.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 Ka(e){return $(WY,e)}var Tb="#9ca3af";function Li(e,o,t){let r=Ka(e);return r?{hex:kA(o[r.key]??"")??"",words:r.words(t)}:null}function TA(e,o){return MY.flatMap(t=>{let r=Li(t,e,o);return r&&Ka(t)?.ink?[{name:t,label:r.words,value:r.hex||Tb}]:[]})}var $Y=["main","text","background"];function PA(e){let o=new Set,t=[];return ko(e).themes.forEach((r,a)=>{for(let n of $Y){let s=Ka(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 fa(e){return Ka(e)?.ink??""}function zr(e){if(typeof e!="string")return null;let o=AA(e.trim());return o?.kind==="slot"&&fa(o.slot)?o.slot:null}var GY={accent:"main",labels:"muted"};function Pt(e){return $(GY,e)??e}function Fi(e){if(!e)return"";if(e.startsWith("#"))return _A(e)===e.toLowerCase()?e:"";let o=zY(Pt(e));return o?.kind==="slot"?fa(o.slot):""}function Bi(e,o=OA){return o.flatMap(t=>{let r=Ka(t);return r?.ink?[{name:t,label:r.label(),value:e?.[t]||Tb}]:[]})}function RA(e){let o=AA(Pt(e));return o?.kind==="slot"?fa(o.slot):""}function Pb(e){let o=e?.trim();return o?UY.find(t=>fa(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=fa(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 KY="#ffffff";function Eb(e){return LA(e)||(VY(e)?e:KY)}function LA(e){let o=zr(e);return o?Ka(o)?.page??"":""}function VY(e){return typeof e=="string"&&jY(e)===e.toLowerCase()||LA(e)!==""}function Gu(e){return{"--bg":Eb(e)}}import{parseHexColor as YY}from"efficient-shell/format";import{fillColorRole as qY}from"efficient-shell/markup";function Kn(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 O_e="sf-card",A_e="[--sf-card-lift:none] [--sf-card-shadow-hover:var(--sf-card-shadow,none)]",Va={min:0,max:100,step:5,fallback:0,unit:"%"},XY="68%",L_e={desktop:20,phone:20,side:40,sidePhone:24},F_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 ut(e,Op)!==""}function jc(e,o){return o||!ju(e)?e:{...e,[Op]:""}}function B_e(e,o){return Ty(o,ut(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(Va.max,Math.max(Va.min,t))/100).toFixed(2);return o!=="bottom"?{background:ca(Number(r))}:{background:`linear-gradient(0deg, ${ca(Number(r))} 0%, ${ca(0)} ${XY})`}}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,ZY=[{mix:"12%",at:"50%"},{mix:"19%",at:"70%"},{mix:"50%",at:"95%"}];function N_e(e){return Vu(e)!==Ob?null:{backgroundImage:`linear-gradient(to bottom, transparent, ${ZY.map(o=>`color-mix(in srgb, var(--bg) ${o.mix}, transparent) ${o.at}`).join(", ")})`}}var Yu=e=>typeof e=="string"?YY(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=qY(Pt(e.trim()));return o?.kind==="slot"?o.slot:null},Rb="swatch";function D_e(e,o){if(!o)return null;let t=Ty(o,ut(e,Rb)),r=zr(t);return Yu(t)??(r&&fa(r)||null)}var JY={tabletClass:"sf-fill-tablet",tabletVar:"--sf-fill-tablet",phoneClass:"sf-fill-phone",phoneVar:"--sf-fill-phone"};function M_e(e,o,t){return Kn(JY,Gc(e),Gc(o),Gc(t))}var QY={tabletClass:"sf-wash-tablet",tabletVar:"--sf-wash-tablet",phoneClass:"sf-wash-phone",phoneVar:"--sf-wash-phone"};function H_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 Kn(QY,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 W_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 et,SettingsDrill as wQ,SettingsField as So,SettingsGroup as CQ,SettingsSegmented as vQ,SettingsBorder as kQ,SettingsSidesEach as TQ,SettingsSwitch as fw,borderSides as PQ,borderStartEach as EQ}from"efficient-easel/panel";import{ListField as _Q}from"efficient-easel/fields";import{DisplayChips as OQ}from"efficient-shell/ui";import{HIDDEN_KEY as e9,hiddenInEveryView as o9,hiddenInView as Fb,hiddenKeyOf as HA}from"efficient-easel/screen/lib/content/view-hide";var t9={"000":"",100:"view-desktop:hidden","010":"view-wide:max-view-desktop:hidden","001":"max-view-wide:hidden",110:"view-wide:hidden","011":"max-view-desktop:hidden",101:"view-desktop:hidden max-view-wide:hidden",111:"hidden"},r9={"000":"",100:"view-desktop:hidden","010":"view-tablet:max-view-desktop:hidden","001":"max-view-tablet:hidden",110:"view-tablet:hidden","011":"max-view-desktop:hidden",101:"view-desktop:hidden max-view-tablet:hidden",111:"hidden"},WA=e=>(e.desktop?"1":"0")+(e.tablet?"1":"0")+(e.mobile?"1":"0");function Zu(e,{atSectionLine:o=!1}={}){return(o?r9:t9)[WA(e)]}var Ni=[e9,HA("tablet"),HA("mobile")];function $A(e){return{desktop:Fb(e,"desktop"),tablet:Fb(e,"tablet"),mobile:Fb(e,"mobile")}}function pa(e){return o9(e)}function UA(e){let o=$A(e);return["desktop","tablet","mobile"].filter(t=>o[t]).join(" ")}var a9={"000":"",100:"view-desktop:hidden!","010":"view-wide:max-view-desktop:hidden!","001":"max-view-wide:hidden!",110:"view-wide:hidden!","011":"max-view-desktop:hidden!",101:"view-desktop:hidden! max-view-wide:hidden!",111:"hidden!"},n9={"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?n9:a9)[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 K_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 AQ,CornersInput as RQ,DatePicker as SBe,DateTimePicker as LQ,FOCAL_DEFAULT as wBe,IconPicker as KF,COLUMN_COUNT_MAX as TF,COLUMN_SHARE_MIN as FQ,COLUMN_SHARES_EQUAL as BQ,resolveColumnShares as VF,WidthsBar as NQ,useShellStrings as DQ,IconButton as YF,InputNumber as PF,Slider as MQ,Tooltip as pw}from"efficient-shell/ui";import{backendOf as s9}from"efficient-easel/screen/lib/session";var Ge=s9,Mi=e=>e.blocks;async function VA(e){let o=e.trim();if(!o)return null;let t=Ge().geocode;if(!t)throw new Error("geocode_unavailable");return t.locate(o)}var Nb="Lookup busy \u2014 try again in a moment.",Qu=e=>typeof e=="number"&&Number.isFinite(e);function Q_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 eOe(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 it,jsxs as Mb}from"react/jsx-runtime";import{useRef as i9}from"react";import{ColorPicker as l9,ColorPickerPanel as c9,ColorSwatch as d9,HexInput as f9,Popover as p9,Tooltip as u9,colorFill as m9,colorSwatchClasses as h9,useShellStrings as x9}from"efficient-shell/ui";import{SettingsDefaultReset as g9,SettingsField as I9}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 it(b9,{value:e,onChange:o,label:c(s??t),id:r,caption:a,inherited:n,choices:i})}function y9(){let{theme:e}=fe();return PA(e)}function b9({value:e,onChange:o,label:t,id:r,caption:a,inherited:n,choices:s}){let i=y9(),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?it(S9,{id:r,value:e,onChange:o,label:t,presets:i,follows:l,choices:s}):it(l9,{id:r,value:e,onChange:f,label:t,presets:i,fallback:l??void 0,size:"md",align:"start"}),d!==null?it("span",{className:"sf-colour-caption",children:d}):it("span",{className:"sf-colour-hexwrap",children:it(f9,{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 S9({value:e,onChange:o,label:t,id:r,presets:a,follows:n,choices:s}){let i=x9().color,l=e||n||"",d=s.findIndex(p=>p.selected),f=d>=0,u=i9(d);return f&&(u.current=d),it(p9,{id:r,trigger:it("span",{"aria-hidden":"true",className:"absolute inset-0",style:m9(l)}),triggerLabel:i.swatch(t,l.toUpperCase()||i.none),triggerClassName:h9({size:"md"}),"aria-label":i.panel(t),align:"start",children:Mb("div",{className:"sf-colour-window",children:[it("div",{role:"group","aria-label":t,className:"sf-colour-choices",children:s.map(p=>it(u9,{content:p.label,children:it(d9,{color:p.color,"aria-label":p.label,selected:p.selected,onClick:()=>{p.selected||p.onPick()}})},p.label))}),it(c9,{value:f?"":e,onChange:o,label:t,presets:a,fallback:(f?l:n)??void 0},u.current)]})})}function xt({label:e,icon:o,changed:t,hint:r,onReset:a,resetTo:n,children:s,...i}){return it(I9,{label:e,icon:o,htmlFor:i.id,changed:t,hint:r,action:a?it(g9,{words:ce()?.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 it(xt,{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 w9}from"react/jsx-runtime";import{useEffect as C9,useState as v9}from"react";import{clearRangeOf as k9,markSelection as T9,useCaretEdit as P9}from"efficient-easel/copy";import{TextToolbar as E9}from"efficient-shell/ui";function _9(e,o,t){return T9(e,o,t,eE)}function XA(e,o){let t=k9(o,e.length),r=tE(e,t.start,t.end);return r.text===e?null:r}function O9(e){let[o,t]=v9(null);return C9(()=>{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 A9({target:e,value:o,onChange:t,disabled:r=!1,label:a="Formatting"}){let n=P9({target:e,onChange:t}),[s,i]=O9(e),l=p=>n(m=>{let h=_9(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 w9(E9,{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=A9;import{deviceField as Rt}from"efficient-easel/screen/lib/document/device-fields";import{NO_CONTROL_FIELD as HQ,NoControlMark as WQ,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 R9,jsxs as L9}from"react/jsx-runtime";import{useRef as F9}from"react";import{SettingsDefaultReset as B9}from"efficient-easel/panel";import{effectTiles as N9}from"efficient-easel/screen/lib/document/effect-tiles";import{VIEW_KEY_ACCESS as JA,describedAs as D9,onDesktopWords as M9,phoneTwinFields as QA}from"efficient-easel/screen/lib/document/box-fields";function H9({row:e,read:o,...t}){let r=o(bo(),t.followsView??"desktop");return e({...t,follows:r})}function ua(e,o){return Object.fromEntries(ht.map(t=>{let r=ve(e,t);return[r,QA(e,o(t),JA)[r]]}))}function rm(e,o,t){let r=o.render,a={...o,render:n=>tm(H9,{...n,row:r,read:t})};return ua(e,n=>n==="desktop"?o:a)}function W9({spec:e,...o}){let t=e.values.includes(o.value),r="follows"in o,a=e.read(bo(),o.followsView??"desktop"),n=t?o.value:a,s=F9(null),{preview:i}=e,l=N9({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 L9(R9,{children:[i?tm("div",{ref:s,style:{display:"contents"},children:d}):d,r&&t&&tm(B9,{words:ce()?.panel,label:c(e.tileWord),changed:!0,detail:M9(f=>c(f),c(e.word(a)),o.followsView),onReset:()=>o.onChange(void 0)})]})}function am(e,o){let t=D9({type:"custom",render:r=>tm(W9,{...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 z9}from"react/jsx-runtime";import{createContext as G9,useContext as j9}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 $9=["anchor"],U9=/^href$|Href$|^url$|Url$|^link$|^mailto$|^tel$/;function Vn(e){return $9.includes(e)||U9.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 FOe=Object.fromEntries(Object.entries(nm).map(([e,o])=>[e,Object.keys(o)])),BOe=Object.fromEntries(Object.entries(sm).map(([e,o])=>[e,[...o]]));import{NoControlMark as K9}from"efficient-easel/screen/lib/document/panel-no-control-mark";var eR=G9(!1);function oR({children:e}){return zb(eR.Provider,{value:!0,children:e})}function V9(){return j9(eR)}function tR({name:e,children:o}){return!V9()||!e||!Y9(e)||Vn(e)?zb(z9,{children:o}):zb(K9,{})}function Y9(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 zOe(e){return go(jb,Gb,e)}var rR="sf-card-index",Yc="sf-card-index",GOe="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",q9={plain:`counter(${Yc})`,padded:`counter(${Yc}, decimal-leading-zero)`,numero:`"N\xB0" counter(${Yc}, decimal-leading-zero)`};function jOe(e,o){return o==="off"?"":`.${e}{counter-reset:${Yc}}.${e} .${rR}{counter-increment:${Yc}}.${e} .${rR}::before{content:${q9[o]}}`}function KOe(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 $Q}from"efficient-easel/draw";import{jsx as gt}from"react/jsx-runtime";import{SettingsDefaultReset as rq,SettingsField as Kb}from"efficient-easel/panel";import{useSelectedHost as aq}from"efficient-easel/easel";import{FOCAL_DEFAULT as nq}from"efficient-shell/format";import{ImageIcon as Vb,PlayIcon as lR}from"efficient-easel/icons";import{ImageFocusPoint as sq,MediaUploadField as iq}from"efficient-shell/ui";import{useContext as lq}from"react";import{ScreenDocumentContext as cq}from"efficient-easel/screen/components/ScreenDocumentContext";import{tabletKey as dq,viewKeyAt as fq}from"efficient-easel/draw";import{usePreviewDevice as pq}from"efficient-easel/draw/client";import{formatFocal as X9,parseFocal as Z9}from"efficient-shell/format";var J9="sf-focus-phone",Q9="--sf-focus-phone",eq="sf-focus-tablet",oq="--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}=Z9(e);return X9(o,t)};function iR(e,o){return Kn(tq,null,qc(o),qc(e))}var tq={tabletClass:eq,tabletVar:oq,phoneClass:J9,phoneVar:Q9};import{shownTier as Yb}from"efficient-easel/screen/lib/document/device-fields";import{onDesktopWords as uq}from"efficient-easel/screen/lib/document/box-fields";import{requestMediaPick as mq}from"efficient-easel/screen/lib/media-picker";import{useEaselHost as hq}from"efficient-easel/screen/lib/host";import{useEaselSession as xq}from"efficient-easel/screen/lib/session-context";function gq(e,o,t,r=!0){let a=Yb(t),n=typeof e[o]=="string"&&e[o]?String(e[o]):nq;if(a==="desktop")return{ownView:!1,followed:n,followsView:"desktop",own:void 0,focus:n,key:o};let s=fq(o,a),i=qc(e[s])??void 0,l=a==="mobile"&&r?qc(e[dq(o)])??void 0:void 0,d=l??n;return{ownView:!0,followed:d,followsView:l?"tablet":"desktop",own:i,focus:i??d,key:s}}function Iq(e,o,t){let r=aq();if(!o||!r)return null;let a=r.values??{};if(t&&!t(a,Yb(e)))return null;let n=gq(a,o,e,t?t(a,"tablet"):!0),s=r.onChange;return{...n,set:i=>s(n.key,i),clear:()=>s(n.key,om)}}function cR({value:e,onChange:o,label:t,accept:r,placeholder:a,focusKey:n,focusWhen:s,frameKey:i,fieldKey:l}){let d=hq(),f=xq(),u=c(t),p=pq(),m=r.startsWith("video"),h=Iq(p,m?void 0:n,s),I=!!n&&Yb(p)!=="desktop",w=lq(cq),S=pr(),v=i&&l?{video:l,frame:i}:null,b=T=>mq(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=st(e);if(I&&(!h||!k))return null;if(w&&!w.capabilities.mediaEditing)return gt(Kb,{label:u,icon:m?gt(lR,{}):gt(Vb,{}),children:gt("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?gt(rq,{words:ce()?.panel,label:c("Image focus"),changed:!!h.own,detail:uq(T=>c(T),h.followed,h.followsView),onReset:h.clear}):void 0;return I&&h?gt(Kb,{label:u,icon:gt(Vb,{}),action:F,children:gt("div",{style:{flex:"1 1 auto",minWidth:0},children:gt(sq,{value:h.focus,onChange:h.set,label:c("Image focus"),image:k,hint:null})})}):gt(Kb,{label:u,icon:m?gt(lR,{}):gt(Vb,{}),children:gt("div",{style:{flex:"1 1 auto",minWidth:0},children:gt(iq,{value:k,onChange:y,onPick:b,accept:m?"video/*":"image/*",kind:m?"video":"image",placeholder:a===void 0?void 0:c(a),maxSizeBytes:Ge(f).media.maxUploadBytes,...h?{focus:h.focus,onFocusChange:h.set}:{}})})})}import{jsx as dR}from"react/jsx-runtime";import{useId as yq}from"react";import{FieldSelect as bq}from"efficient-easel/fields";import{SettingsField as Sq}from"efficient-easel/panel";function wq(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=yq(),l=`${i}-label`,d=`${i}-button`,f=Array.isArray(t)?t:[];return dR(Sq,{label:c(e),labelId:l,icon:n,hint:s,children:dR(bq,{id:d,multiple:!0,value:f,options:wq(o),onChange:r,placeholder:a===void 0?c("None"):c(a),ariaLabelledBy:`${l} ${d}`,inline:!0})})}import{jsx as To,jsxs as qn,Fragment as Zq}from"react/jsx-runtime";import{useCallback as vR,useContext as Jq,useId as PR,useRef as kR,useState as TR}from"react";import{ThemeIcon as Qq}from"efficient-easel/icons";import{Button as eX,useClickOutside as oX}from"efficient-shell/ui";import{SettingsField as tX}from"efficient-easel/panel";import{ScreenDocumentContext as rX}from"efficient-easel/screen/components/ScreenDocumentContext";import{jsx as he,jsxs as qa,Fragment as Aq}from"react/jsx-runtime";import{parseHexColor as Rq}from"efficient-shell/format";import{Button as Xb,IconButton as Lq,Tooltip as Fq}from"efficient-shell/ui";import{jsx as Ya,jsxs as Cq}from"react/jsx-runtime";import{AccentIcon as vq}from"efficient-easel/icons";import{Button as kq,Tooltip as Tq}from"efficient-shell/ui";function qb(e){return mt(e).background}function Pq(e){let o=Ma(e.accent,qb(e));return o===null?null:{ratio:o,grade:Si(o)}}function Eq(e){let o=qb(e),t=Ma(e.accent,o);return t===null?[]:y_(e.accent).filter(r=>{let a=Ma(r,o);return a!==null&&a>t&&Si(a)==="good"})}var _q={good:"Easy to read","large-only":bi["large-only"],hard:bi.hard};function pR({value:e,onChange:o}){let t=Pq(e),r=t?.grade,a=t&&t.grade!=="good"?Eq(e):[];return Ya(xt,{label:c("Main color"),icon:Ya(vq,{}),hint:t?c(_q[t.grade]):void 0,value:e.accent,onChange:n=>o({...e,accent:n}),children:a.length>0?Ya("div",{className:"w-full min-w-0",children:Cq("div",{className:"sf-readability",children:[Ya("p",{className:"sf-readability-advice",children:Oq(r,!0)}),Ya("div",{className:"sf-readability-suggestions",children:a.map(n=>{let s=Ma(n,qb(e));return Ya(Tq,{content:c("Use {colour}",{colour:n.toUpperCase()}),children:Ya(kq,{variant:"secondary",className:"sf-readability-suggestion",leftIcon:Ya("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 Oq(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 Bq,ChevronDownIcon as mR,ChevronUpIcon as Nq,GroundIcon as Dq,LayoutIcon as Mq,SquareIcon as Hq,TextSmallIcon as Wq,TypeIcon as uR}from"efficient-easel/icons";var Xc=e=>c("Theme {n}",{n:e+1});function hR({colors:e}){let o=mt(e),t=kc(e)??o.accent;return qa("span",{className:"sf-theme-page",style:{background:o.background,color:o.text},"aria-hidden":!0,children:[he("span",{className:"sf-theme-eyebrow",style:{color:o.muted},children:c("label")}),qa("span",{className:"sf-theme-headline",children:[c("Heading")," ",he("span",{style:{color:o.accent},children:c("main")})]}),he("span",{className:"sf-theme-body",children:c("body text")}),qa("span",{className:"sf-theme-row",children:[he("span",{className:"sf-theme-btn",style:{background:t,color:Oy(e,o.accent)},children:c("button")}),he("span",{className:"sf-theme-mini",style:{background:o.surface,borderColor:o.line},children:c("card")})]})]})}var Zb={"Text color":he(uR,{}),"Label color":he(Wq,{}),Background:he(Dq,{}),"Panels & cards":he(Mq,{}),Borders:he(Hq,{}),"Button color":he(Bq,{}),"Button text color":he(uR,{})};function $q({label:e,colorKey:o,value:t,onChange:r,idPrefix:a="sf-theme-ink"}){let n=`${a}-${o}`;return he(xt,{label:c(e),icon:Zb[e],id:n,value:t,onChange:s=>r(o,s)})}function Uq({value:e,accent:o,onChange:t,idPrefix:r="sf-theme-ink"}){let a=`${r}-button`,n=e!==void 0&&Rq(e)===e.toLowerCase(),s=n?e:o;return he(xt,{label:c("Button color"),icon:Zb["Button color"],id:a,value:s,caption:n?s:c("Main"),onChange:t})}function zq({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(Ma(s,i)??0);return he(xt,{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 Gq=[{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=mt(e);return he(Aq,{children:Gq.map(a=>"colour"in a?he(pR,{value:e,onChange:o},"colour"):"moduleBreak"in a?he("div",{className:"sf-theme-module-break","aria-hidden":"true"},"module-break"):"button"in a?he(Uq,{value:e.button,accent:r.accent,onChange:n=>o({...e,button:n}),idPrefix:t},"button"):"buttonInk"in a?he(zq,{colors:e,accent:r.accent,onChange:n=>o({...e,buttonInk:n}),idPrefix:t},"buttonInk"):he($q,{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=mt(o),f=Xc(e),u=e<_y.length&&!o.brandInk?_y[e]:null,p=Si(Ma(d.text,d.background)??0),m=u?JSON.stringify(o)!==JSON.stringify(u):!1,h=a!==void 0;return qa("div",{className:`sf-theme-card${t?" is-selected":""}`,children:[he("button",{type:"button",role:r,"aria-checked":r==="radio"?t:void 0,"aria-selected":r==="option"?t:void 0,"aria-label":f,className:"sf-theme-pick",onClick:s,children:he(hR,{colors:o})}),qa("div",{className:"sf-theme-foot",children:[he("span",{className:"sf-theme-name",children:f}),p!=="good"&&he("span",{className:"sf-theme-warn",children:c(bi[p])}),n&&i&&h&&he("span",{className:"sf-theme-edit",children:he(Fq,{content:a?c("Collapse"):c("Edit colors"),children:he(Lq,{size:"sm","aria-expanded":a,"aria-controls":`sf-theme-colours-${e}`,"aria-label":a?c("Collapse {name}",{name:f}):c("Edit colors for {name}",{name:f}),onClick:i,children:a?he(Nq,{size:14}):he(mR,{size:14})})})}),n&&i&&!h&&he(Xb,{variant:"secondary",size:"sm",className:"sf-theme-edit","aria-label":c("Edit {name}",{name:f}),onClick:i,children:c("Edit")})]}),a&&qa("div",{id:`sf-theme-colours-${e}`,className:"sf-theme-colours",children:[he(Jb,{colors:o,onChange:I=>l?.(I)}),u&&he(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 qa("div",{className:"sf-secttheme-btn",children:[he("button",{ref:s,type:"button",className:"sf-theme-pick","aria-expanded":r,"aria-controls":a,"aria-labelledby":`${n} ${t}`,onClick:i,onKeyDown:l,children:e?he(hR,{colors:e}):he("span",{className:"sf-secttheme-nopreview","aria-hidden":"true"})}),qa("div",{className:"sf-theme-foot",children:[he("span",{id:t,className:"sf-theme-name",children:o}),d&&he(Xb,{variant:"secondary",size:"sm",className:"sf-theme-edit","aria-label":c("Edit {name}",{name:o}),onClick:d,children:c("Edit")}),he("button",{type:"button",className:"sf-secttheme-caret","aria-hidden":"true",tabIndex:-1,onClick:i,children:he(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 Vq}from"efficient-easel/screen/lib/session";import{useEaselSession as Yq}from"efficient-easel/screen/lib/session-context";import{useSyncExternalStore as jq}from"react";var IR,Qb=null,Yn=null,lm=0,eS=new Set;function oS(e){IR=e;for(let o of eS)o()}function tS(e){Qb=e,lm+=1,Yn&&clearTimeout(Yn),Yn=null,oS(void 0)}function cm(e){lm+=1,oS(e)}function ma(e=250){Qb&&(Yn&&clearTimeout(Yn),Yn=setTimeout(()=>{Yn=null;let o=Qb;if(!o)return;let t=++lm;o().then(r=>{t===lm&&oS(r)}).catch(()=>{})},e))}function gR(){return IR}function Kq(e){return eS.add(e),()=>{eS.delete(e)}}function dm(){return jq(Kq,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 qq}from"efficient-easel/screen/lib/backend-error";function wR(e=Vq()){return(o,t,r)=>{let a=Ge(e).theme;return a?a.update(o,r?{siteId:r}:void 0):Promise.reject(new qq("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 Xq(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=Yq(),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 Xq({themeFromDocument:e,token:o?.current,siteId:t,patch:p},wR(s));return d(m),m.status==="saved"&&ma(),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",aX=e=>c("Editing {name} changes it everywhere.",{name:e});function nX({colors:e}){if(!e)return To("span",{className:"sf-secttheme-chip sf-secttheme-chip--none","aria-hidden":"true"});let o=mt(e);return qn("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 sX({themes:e,value:o,onPick:t,onEdit:r,menuId:a,followLabel:n}){return qn("div",{className:"sf-multi-menu sf-secttheme-menu",id:a,role:"listbox",children:[n!==void 0&&qn(Zq,{children:[qn("button",{type:"button",role:"option","aria-selected":o===null,className:`sf-secttheme-item${o===null?" is-active":""}`,onClick:()=>t(Hr),children:[To(nX,{}),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 iX({index:e,colors:o,onChange:t,onDone:r}){let a=Xc(e),n=PR();return qn("div",{className:"sf-secttheme-sheet",children:[qn("div",{className:"sf-secttheme-sheet-head",children:[To("span",{children:a}),To(eX,{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:aX(a)})]})}function _R({value:e,onChange:o,followLabel:t,hint:r}){let{theme:a,setTheme:n}=fe(),s=ko(a),i=Jq(rX),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=Wr(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]);oX(F,L);let C=E=>{o(E),P()},A=E=>{if(y===null)return;let R=h.map((U,Z)=>Z===y?E:U),W={...m,themes:R};n(W),u({selected_preset:W.selected,theme_presets:W.themes})};return qn("div",{className:"sf-secttheme",ref:F,children:[To(tX,{label:c("Theme"),icon:To(Qq,{}),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(sX,{themes:h,value:I,onPick:C,onEdit:E=>{k(E),b(!1)},menuId:D,followLabel:t})}),y!==null&&h[y]&&To(iX,{index:y,colors:h[y],onChange:A,onDone:()=>{p(),P(),T.current?.focus()}})]})}import{jsx as OR}from"react/jsx-runtime";import{useId as lX}from"react";import{FieldSelect as cX}from"efficient-easel/fields";import{SettingsField as dX}from"efficient-easel/panel";function fX(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 gAe({label:e,options:o,fallback:t,value:r,onChange:a,placeholder:n,bare:s=!1,icon:i}){let l=lX(),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(cX,{id:f,value:p,options:fX(o),onChange:a,placeholder:h,searchPlaceholder:h,...s?{ariaLabel:m}:{ariaLabelledBy:`${d} ${f}`},searchable:!0,groupCount:!0,inline:!0});return s?I:OR(dX,{label:m,labelId:d,icon:i,children:I})}import{jsx as Zn,jsxs as GX}from"react/jsx-runtime";import{SettingsField as QR}from"efficient-easel/panel";import{LinkIcon as jX}from"efficient-easel/icons";import{LinkPicker as KX,TextLinkField as VX}from"efficient-shell/ui";import{useEffect as JR,useMemo as xm,useRef as YX,useState as hm}from"react";import{currentEaselSession as pX}from"efficient-easel/screen/lib/session";function AR(){return pX().auth.token}import{currentEaselSession as qX}from"efficient-easel/screen/lib/session";import{useScreenDocument as XX}from"efficient-easel/screen/components/ScreenDocumentContext";var uX=()=>({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=uX(),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 ZX}from"efficient-easel/screen/lib/session-context";function Ho(e,o){if(typeof e=="string")return e||o;if(e&&typeof e=="object"&&"text"in e){let t=e.text;return be(t)??o}return o}function LR(e,o){return q(e)??o}function ha(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:Ho(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"],mX=["all","desktop","phone"],hX=["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 Et(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 xX(e){return typeof e.hideAfter=="string"?Et(DR,e.hideAfter,ur.hideAfter):e.oncePerSession===!0?"visit":e.oncePerSession===!1?"never":ur.hideAfter}function gX(e){return Array.isArray(e)?e.map(o=>typeof o=="string"?o.trim():"").filter(Boolean).map(o=>o.startsWith("/")?o:`/${o}`):[]}function 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:ha(o.autoOpen,t.autoOpen),trigger:Et(BR,o.trigger,t.trigger),autoOpenDelaySec:$i(o.autoOpenDelaySec,MR,t.autoOpenDelaySec),scrollPercent:$i(o.scrollPercent,HR,t.scrollPercent),showOn:Et(NR,o.showOn,t.showOn),showOnPages:gX(o.showOnPages),devices:Et(mX,o.devices,t.devices),hideAfter:xX(o),hideDays:$i(o.hideDays,WR,t.hideDays),afterSubmit:Et(hX,o.afterSubmit,t.afterSubmit),startDate:FR(o.startDate),endDate:FR(o.endDate)}}import{parseHexColor as IX}from"efficient-shell/format";var mr="#000000";var iS="popup",yX=Z_,bX=["auto","full"],SX=["inside","outside","none"],wX={min:240,max:1440},CX={min:0,max:100},Zc={placement:"center",fullWidth:!1,width:720,height:"auto",tintColor:mr,tintOpacity:60,outsideClick:!0,closeButton:"inside"};function vX(e,o){let t=typeof e=="string"?e.trim():"";return t&&IX(t)===t.toLowerCase()?t:o}function lS(e,o=Zc){let t=e??{},r=o;return{placement:Et(yX,t.placement,r.placement),fullWidth:ha(t.fullWidth,r.fullWidth),width:$i(t.width,wX,r.width),height:Et(bX,t.height,r.height),tintColor:vX(t.tintColor,r.tintColor),tintOpacity:$i(t.tintOpacity,CX,r.tintOpacity),outsideClick:ha(t.outsideClick,r.outsideClick),closeButton:Et(SX,t.closeButton,r.closeButton)}}var UR="cart-drawer",HAe="cart-drawer",kX={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 WAe(e,o){return o===0?e.subtitleEmpty:o===1?e.subtitleOne:e.subtitleMany.replace("{count}",String(o))}function $Ae(e){let o=e??{},t=kX;return{kickerBadge:Ho(o.kickerBadge,t.kickerBadge),kickerText:Ho(o.kickerText,t.kickerText),titleLead:Ho(o.titleLead,t.titleLead),titleAccent:Ho(o.titleAccent,t.titleAccent),subtitleEmpty:Ho(o.subtitleEmpty,t.subtitleEmpty),subtitleOne:Ho(o.subtitleOne,t.subtitleOne),subtitleMany:Ho(o.subtitleMany,t.subtitleMany),leadTimeValue:Ho(o.leadTimeValue,t.leadTimeValue),shipsToFallback:Ho(o.shipsToFallback,t.shipsToFallback),promises:pm(o.promises,t.promises),emptyKicker:Ho(o.emptyKicker,t.emptyKicker),emptyBody:Ho(o.emptyBody,t.emptyBody)}}var TX=["right","left"],PX={...Zc,width:520,tintOpacity:68};function UAe(e){let o=e??{};return{...lS(o,PX),placement:Et(TX,o.placement,"right"),height:"full",fullWidth:!1,autoOpen:ha(o.autoOpen,!0)}}var GR="consent-banner",KAe="consent-banner";var EX=[{value:"bar",label:"Bar"},{value:"card",label:"Card"}],VAe="Layout",zR={layout:"bar"},_X=e=>EX.some(o=>o.value===e);function YAe(e){let o=Ho((e??{}).layout,zR.layout);return{layout:_X(o)?o:zR.layout}}var qAe={...Zc,placement:"bottom-center",fullWidth:!0,width:440,tintOpacity:0,outsideClick:!1,closeButton:"none"};var OX="consentWords",AX=["eyebrow","notice","accept","reject","choose"];function cS(e){let o=(e??{})[OX];return typeof o=="string"&&AX.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 RX=["meta","eyebrow","heading","body","statName","statValue","formEyebrow","formHeading","formIntro","fieldLabel","option","finePrint","dismiss","doneHeading","doneBody"],JAe={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"},LX={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"},QAe={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 RX){let r=aa(e[LX[t]]);r&&(o[t]=r)}return o}var KR={heading:"Join our email list",placeholder:"Email address",buttonLabel:"Subscribe"},FX={lead:"We accept"},mm={...FX,methods:[],size:"sm",align:"start",dataSource:gp},hr="site-footer";var tRe=hr,rRe={desktop:!0,tablet:!0,mobile:!0},aRe={desktop:!1,tablet:!1,mobile:!1},fS=1,VR=6,nRe=Array.from({length:VR-fS+1},(e,o)=>fS+o),um={desktop:6,tablet:3,mobile:2},BX={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}},Xn=e=>Math.min(Math.max(Math.round(e),fS),VR);function sRe(e){if(typeof e=="number")return BX[Xn(e)]??{desktop:Xn(e),tablet:Xn(e),mobile:Xn(e)};if(e&&typeof e=="object"){let o=e;return{desktop:Xn(o.desktop??um.desktop),tablet:Xn(o.tablet??um.tablet),mobile:Xn(o.mobile??um.mobile)}}return{...um}}var pS="subscribe-popup",mRe="subscribe-popup",NX=[pS,hr,UR,GR];function qR(e){return NX.includes(e)}var DX=["right","left"],MX={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:{}},fo=Ho,HX=ha,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 WX(e,o){return Array.isArray(e)?XR(e,[]):o}function $X(e,o){return Array.isArray(e)?e.map(t=>{let r=t??{};return{label:fo(r.label,""),value:fo(r.value,"")}}).filter(t=>t.label||t.value):o}function xRe(e){let o=e??{},t=MX,r=$R(o);return{metaLabel:fo(o.metaLabel,t.metaLabel),issueLabel:YR(o.issueLabel,t.issueLabel),issueNumber:YR(o.issueNumber,t.issueNumber),kicker:fo(o.kicker,t.kicker),heading:fo(o.heading,t.heading),deck:fo(o.deck,t.deck),stats:$X(o.stats,t.stats),formLabel:fo(o.formLabel,t.formLabel),formHeading:fo(o.formHeading,t.formHeading),formIntro:fo(o.formIntro,t.formIntro),firstNameLabel:fo(o.firstNameLabel,t.firstNameLabel),firstNamePlaceholder:fo(o.firstNamePlaceholder,t.firstNamePlaceholder),emailLabel:fo(o.emailLabel,t.emailLabel),emailPlaceholder:fo(o.emailPlaceholder,t.emailPlaceholder),interestsLabel:fo(o.interestsLabel,t.interestsLabel),interests:XR(o.interests,t.interests),frequencyLabel:fo(o.frequencyLabel,t.frequencyLabel),frequencies:WX(o.frequencies,t.frequencies),submitText:fo(o.submitText,t.submitText),finePrint:fo(o.finePrint,t.finePrint),dismissText:fo(o.dismissText,t.dismissText),emailInvalidText:fo(o.emailInvalidText,t.emailInvalidText),submitErrorText:fo(o.submitErrorText,t.submitErrorText),successHeading:fo(o.successHeading,t.successHeading),successBody:fo(o.successBody,t.successBody),keepBrowsingText:fo(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:Et(DX,o.formSide,t.formSide),valuePanelOnPhone:HX(o.valuePanelOnPhone,t.valuePanelOnPhone),sectionAccent:o.sectionAccent,sectionCorners:o.sectionCorners,sectionCornerSides:o.sectionCornerSides,textStyles:jR(o)}}function UX(e,o=Math.random){for(;;){let t=`popup-${Math.floor(o()*2176782336).toString(36).padStart(6,"0")}`;if(!e.has(t))return t}}function zX(e){return{root:{props:{title:e,kind:iS}},content:[],zones:{}}}function ZR(e,o,t){return{slug:UX(o,t),title:e,kind:xb,layout:zX(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||!qX().usesBridgedToken?e(r??"",t).catch(()=>[]):Promise.resolve([]);return o.set(t,{promise:n,token:r}),n}return a.promise}}var JX=eL(async(e,o)=>{let t=o?{siteId:o}:void 0,{pages:r}=Ge();return r.linkTargets?r.linkTargets(t):(await r.list(t)).map(a=>({id:a.id,slug:a.slug,label:a.label,layout:null}))}),QX=eL(async(e,o)=>await Ge().blog?.posts(o?{siteId:o}:void 0)??[]);function eZ({value:e,onChange:o,label:t="Link",data:r,filters:a}){let n=xm(()=>sS(r,a),[r,a]),s=c(t);return Zn(QR,{label:s,icon:Zn(jX,{}),children:Zn(KX,{value:e,onChange:i=>o(i),kinds:n.kinds,rules:n.rules,filtersFor:n.filtersFor,label:s})})}function oL(){let{siteId:e,capabilities:o}=XX(),{offersCommerce:t,hasBlog:r}=o,[a,n]=hm([]),[s,i]=hm([]),[l,d]=hm([]),[f,u]=hm(null),p=ZX().chrome,m=p?.products?.list,h=p?.linkFilters,I=h?void 0:p?.linkRow,w=YX(!0);JR(()=>(w.current=!0,()=>{w.current=!1}),[]),JR(()=>{let b=!0;return JX(e??void 0).then(y=>b&&w.current&&n(y)),r&&QX(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 NRe({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 Zn(QR,{label:d,icon:o,children:Zn(VX,{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 GX("div",{children:[Zn(eZ,{value:r,onChange:o,label:t,data:a,filters:n}),f&&Zn(f,{value:r,onChange:o,pages:s})]})}import{UiIcon as EF}from"efficient-easel/draw/client";import{phoneKey as IL,resolveViewValue as fZ,tabletKey as yL,viewKeyAt as Jn}from"efficient-easel/draw";import{SECTION_PAD_UNIT_KEY as SL,SITE_SIDE as pZ,convertLength as uZ,isLengthUnit as mZ,isSiteSide as wL,sideLengthAt as hZ,sideValueAt as xZ,withLength as IS}from"efficient-easel/screen/lib/content/length-units";import{convertLength as oZ}from"efficient-easel/screen/lib/content/length-units";var je={min:1e3,max:2e3,step:50,default:1600};function Ui(e){return{maxWidth:e,marginInline:"auto",width:"100%"}}var uS="--sf-site-width",Wo=`var(${uS},${je.default}px)`,Qc="100vw",WRe=`max-w-[${Wo}]`,$Re=`max-w-[${je.default}px]`;function sL(e){return typeof e!="number"||!Number.isFinite(e)?je.default:Math.round(Math.min(Math.max(e,je.min),je.max))}function iL(e,o){let t=Bn(e,o,"size",je);if(t!==null)return{[uS]:t};let r=sL(e);return r===je.default?{}:{[uS]:`${r}px`}}var lt={min:0,max:80,step:4,default:40},mS="--sf-site-gutter",xr={min:0,max:24,step:4},rL="--sf-site-gutter-phone",tZ="max-view-tablet:[--sf-site-gutter:var(--sf-site-gutter-phone)]!",rZ="max-view-wide:[&_[data-sf-line~=edge]:not([data-sf-line~=edge]_*)]:[--sf-site-gutter:var(--sf-site-gutter-phone)]",_t=`var(${mS},${lt.default}px)`,aZ=`px-[${_t}]`;var Gr={md:`min(24px,${_t})`,sm:`min(20px,${_t})`,frame:`min(24px,${_t})`,tabs:`min(16px,${_t})`},URe=[[`max-view-desktop:px-[${Gr.md}]`,"max-view-desktop:px-6"],[`max-view-desktop:px-[${Gr.tabs}]`,"max-view-desktop:px-4"],[`max-[960px]:px-[${Gr.frame}]`,"max-[960px]:px-6"],[`max-[900px]:px-[${Gr.md}]`,"max-[900px]:px-6"],[`max-view-wide:px-[${Gr.md}]`,"max-view-wide:px-6"],[`max-view-tablet:px-[${Gr.sm}]`,"max-view-tablet:px-5"],[`max-view-wide:px-[${Gr.sm}]`,"max-view-wide:px-5"],[`max-[640px]:px-[${Gr.sm}]`,"max-[640px]:px-5"],[`view-wide:px-[${_t}]`,"view-wide:px-10"],[`max-view-tablet:px-[min(24px,${_t})]`,"max-view-tablet:px-6"],[`max-view-wide:-mx-[min(20px,${_t})]`,"max-view-wide:-mx-5"],[`max-view-tablet:-mx-[min(20px,${_t})]`,"max-view-tablet:-mx-5"],[`-mx-[${_t}]`,"-mx-10"],[aZ,"px-10"]];var lL="max-view-wide:px-[min(20px,var(--sf-site-gutter,40px))]";function Xa(e){return nZ[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)]",nZ={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}},zRe=`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)?lt.default:Math.round(Math.min(Math.max(e,lt.min),lt.max))}function fL(e,o){let t=Bn(e,o,"spacing",lt);if(t!==null)return{[mS]:t};let r=gm(e);return r===lt.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=Bn(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?"":`${tZ} ${rZ}`}function ym(e,o){let t=Kp(e,o,"spacing",lt),r=t===null?gm(e):oZ(t,Pe(o),"px","mobile",xr);return Math.min(xr.max,r)}var hL=Wo,GRe=`max-w-[${hL}]`,jRe=`max-w-[min(var(--sf-page-cap,${je.default}px),${je.default}px)]`,bm="--sf-hero-cap",sZ=`var(${bm},none)`,KRe=`max-w-[${sZ}]`,iZ="--sf-hero-bleed-m",lZ="--sf-hero-bleed-w",hS="--sf-hero-chrome-x",xS="--sf-hero-chrome-cap";function Sm(e){return e===!0?{[bm]:hL,[iZ]:"auto",[lZ]:"100%",[hS]:"24px",[xS]:"none"}:{}}var gS=`calc(${Wo} - ${_t}*2)`,VRe=`max-w-[${gS.replace(/ /g,"_")}]`;var cZ="--sf-chrome-cap",dZ=`var(${cZ},${gS})`,xL="data-page-width";function gL(e){return e==="full"?"full":null}function YRe(e){return e==="full"?null:Ui(e==="content"?gS:dZ)}function qRe(e){if(e==="full")return"full";if(e==="content")return"content"}var Ut={min:10,max:200,step:10};function gZ(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=>Pe(e),IZ="sf-pad-top-phone",yZ="sf-pad-bottom-phone",bZ="--sf-pad-t-phone",SZ="--sf-pad-b-phone",wZ="sf-pad-left-phone",CZ="sf-pad-right-phone",vZ="--sf-pad-l-phone",kZ="--sf-pad-r-phone",TZ="sf-pad-top-tablet",PZ="sf-pad-bottom-tablet",EZ="sf-pad-left-tablet",_Z="sf-pad-right-tablet",OZ="--sf-pad-t-tablet",AZ="--sf-pad-b-tablet",RZ="--sf-pad-l-tablet",LZ="--sf-pad-r-tablet",CL="sf-section-pad";function ed(e){let o={desktop:e.unit,tablet:e.unitTablet,phone:e.unitPhone},t=gZ(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 FZ=e=>wL(e)?e:q(e),BZ=[["top","paddingTop",[TZ,OZ],[IZ,bZ]],["bottom","paddingBottom",[PZ,AZ],[yZ,SZ]],["left","paddingLeft",[EZ,RZ],[wZ,vZ]],["right","paddingRight",[_Z,LZ],[CZ,kZ]]];function bL(e,o,t){return!mZ(o)||o==="px"?e:uZ(e,"px",o,t,{min:0,max:Ut.max,step:1})}function NZ(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=fZ("spacing",q(e),q(o),q(t),pi()),l=(m,h,I)=>{if(xZ(s,{side:"n"},m,"side",["side"])?.value===pZ)return Xa().value;let w=hZ(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=Xa(s),u=!1;for(let[p,m,...h]of BZ){let I=p==="left"||p==="right"?FZ: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=NZ(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 jr={top:"padTop",bottom:"padBottom",left:"padLeft",right:"padRight"},Qn="padUnit";function td(e,o){let t=e[Qn],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,jr,!0,Qn),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 xa={top:"sectionPaddingTop",bottom:"sectionPaddingBottom",left:"sectionPaddingLeft",right:"sectionPaddingRight"},yS=[...["top","bottom","left","right"].map(e=>[jr[e],xa[e]]),[Qn,SL]].flatMap(([e,o])=>[[e,o],...["tablet","mobile"].map(t=>[Jn(e,t),Jn(o,t)])]);function bS(e,o=xa,t=!0,r=o===xa?SL:void 0){let a={};if(r){e[r]!==void 0&&(a.unit=e[r]);for(let n of["tablet","mobile"])e[Jn(r,n)]!==void 0&&(a[Jn("unit",n)]=e[Jn(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[Jn(n,s)]=e[Jn(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 DZ,buttonFillOpacityOf as MZ,buttonPadSidesOf as HZ,viewKeyAt as WZ}from"efficient-easel/draw";import{BUTTON_PAD_UNIT_KEY as SS,lengthOf as $Z}from"efficient-easel/screen/lib/content/length-units";var UZ="px-6 py-4",zZ=4,vm=e=>{let o=new RegExp(`\\bp${e}-(?:\\[(\\d+)px\\]|(\\d+))`).exec(UZ);if(!o)throw new Error(`BUTTON_PAD_CLASSES has no p${e}`);return o[1]!==void 0?Number(o[1]):Number(o[2])*zZ},fLe={top:vm("y"),right:vm("x"),bottom:vm("y"),left:vm("x")},EL="var(--btn)";function GZ(e){let o=e.variant==="ghost",t=MZ(e.buttonFillOpacity),r=DZ(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 pLe(e){let o=GZ(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:$Z(o.border.width,Pe(e.buttonBorderUnit)),borderStyle:"solid",borderColor:o.border.color}}var jZ="var(--sf-button-radius, 0)";function uLe(e){let o=q(e.buttonCorners),t=$r(e.buttonCornerSides);if(o===void 0&&t===null)return null;let r=o===void 0?jZ:Me(Math.max(0,o),e.buttonCornersUnit);return{borderRadius:t===null?r:$n(r,t)}}function mLe(e){let o=(s,i)=>e[WZ(s,i)],t=s=>HZ({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 UQ}from"efficient-easel/draw/client";import{encodePartId as zQ}from"efficient-easel/draw";import{DEFAULT_EASEL_STRINGS as GQ,useEaselStrings as jQ}from"efficient-easel/strings";import{PIN_STICK_VAR as KZ,PIN_TRACK_POSITION_VAR as VZ,pinAttrs as OL,pinStickVars as YZ,readPin as vS}from"efficient-shell/format";var bLe="Stick to top",zt={min:0,max:200,step:4,fallback:0},rd={kind:"position",unitKey:"stickTopDistanceUnit"},AL=Ii(rd),[qZ,XZ,ZZ]=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",es="stickTopStop",Za="screen",LL="Pin stops at",FL=[{value:"header",label:"Under the header"},{value:Za,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===Za?Za:"header"}function DL(e){return e===Za?Za:void 0}var Ja="stickAbove",ML="Stays above",HL="On: the pinned box stays on top, and the sections after it scroll under it.";function JZ(e){return e.stickAbove===!0}var WL=["stickTop","stickTopDistance","stickTopTablet","stickTopDistanceTablet","stickTopPhone","stickTopDistancePhone",...AL,...TS,es,Ja],_S=new Set(["IntroBleed"]),$L=new Set(["CategoryBar","DocTabs","Contents"]);function QZ(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)??zt.fallback;return o!=="px"?Math.max(zt.min,t):Math.min(zt.max,Math.max(zt.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?QZ(e):e.stickTop===!0,r=e,a=Pe(r[qZ]),n=CS(e.stickTopDistance,a),s=wS(e.stickTopScreens),i=OS(e),l=i?e.stickTopTablet===!0:t,d=i?Pe(r[XZ]):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?Pe(r[ZZ]):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&&JZ(e),s=o.track===!0&&!r&&a&&!n,i=(u,p,m,h)=>Kn({tabletClass:"",tabletVar:`${u}-tablet`,phoneClass:"",phoneVar:`${u}-phone`},p,m,h).style,l={...o.atScreenTop||ES(e.stickTopStop)===Za?{[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)),...eJ(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 eJ(e,o,t,r){let a=[[gr.stick,KZ],[gr.trackPosition,VZ]],[n,s,i]=[e,o,t].map(YZ);return Object.fromEntries(a.flatMap(([l,d])=>[...e?[[l,n[d]]]:[],...Object.entries(r(l,n[d],s[d],i[d]))]))}var oJ=["column","row","tabs","accordion"];var tJ={column:"Stacked",row:"One row",tabs:"Tabs",accordion:"Accordion"},UL={Flex:oJ,HeroGroup:["column","row"]},rJ={Flex:"row",HeroGroup:"column"},aJ={column:"flex-col",row:"flex-row",tabs:"flex-col",accordion:"flex-col"};function Kr(e,o){return UL[e].includes(o)?o:rJ[e]}function wLe(e,o){return aJ[Kr(e,o)]}function zL(e){return UL[e].map(o=>({label:tJ[o],value:o}))}import{viewKeyAt as LS}from"efficient-easel/screen/lib/content/view-tiers";var Pm=20,nJ=["solid","dashed","dotted"],Em=["top","right","bottom","left"],_m="sf-section-border",jL="sf-section-border-self",sJ=/^#(?:[0-9a-f]{3}|[0-9a-f]{4}|[0-9a-f]{6}|[0-9a-f]{8})$/i,iJ=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"?iJ(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=Pe(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"&&nJ.includes(e.style)&&(n[`--sf-border-style${a}`]=e.style),typeof e.color=="string"&&sJ.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",ga={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},lJ=new Set(["Events","GalleryB"]);function os(e,o,t){if(typeof o=="number"&&Number.isFinite(o)&&o>=ga.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 cJ="sf-gap-overlap",dJ="--sf-gap-overlap",BS="--sf-block-gap",qL="--sf-block-gap-rem",Gt={min:0,max:ga.max,step:ga.step};function nd(e){if(typeof e!="number"||!Number.isFinite(e))return null;let o=Math.min(Math.max(Math.round(e),Gt.min),Gt.max);return o-o%Gt.step}function tF(e,o){let t=Bn(e,o,"gap",Gt);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",fJ="--sf-block-gap-on-phone",pJ="max-view-tablet:[--sf-block-gap-on-phone:var(--sf-block-gap-phone)]",uJ="max-view-wide:[&_[data-sf-line~=edge]:not([data-sf-line~=edge]_*)]:[--sf-block-gap-on-phone:var(--sf-block-gap-phone)]";function rF(e,o){let t=Bn(e,o,"gap",Gt);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?"":`${pJ} ${uJ}`}var JL="sf-gap-zone",QL="--sf-gap-len";function Am(e,o){return typeof o=="number"&&Number.isFinite(o)&&o>=ga.min?!0:typeof o=="string"&&typeof oF[e]?.[o]=="number"}var eF="--sf-gap-len-phone",mJ="--sf-gap-len-tablet",sd={min:0,max:ga.max,step:ga.step};function Qa(e){return typeof e=="number"&&Number.isFinite(e)&&e>=sd.min}function NS(e){return e/2}function DS(e,o,t){return Qa(t)&&!Am(e,o)}function MS(e,o,t,r,a){return Qa(o)?o:DS(e,t,a)?a:NS(os(e,t,r))}var hJ={block:"sf-gap-overlap-block",inline:"sf-gap-overlap-inline",both:"sf-gap-overlap-both"};function ELe(e,o,t,r,a){let n={...Qa(r)?{[eF]:`${r}px`}:null,...Qa(a)?{[mJ]:`${a}px`}:null};if(!Am(e,o)){let i=`${ji[e]}px`,l=lJ.has(e)?`var(--sf-card-gap, ${i})`:i;return{className:` ${JL}`,style:{[QL]:`var(${BS}, ${l})`,[eF]:`var(${fJ})`,...n}}}let s=os(e,o);return s>=0?{className:` ${JL}`,style:{[QL]:`${s}px`,...n}}:{className:` ${cJ} ${hJ[t]}`,style:{gap:"0px",[dJ]:`${-s/2}px`}}}import{parseHexColor as xJ}from"efficient-shell/format";var Qo="var(--section-bg)",id="inherit";function Vr(e,o){return e===id?Qo:e===void 0?o:Rm(e)}var gJ=/var\(\s*--(surface-2|surface|line)\s*(?=[,)])/g;function Rm(e){let o=zr(e);return o?fa(o):e.replace(gJ,"var(--site-$1")}var IJ={"var(--section-bg)":"band","var(--site-surface)":"surface","var(--site-surface-2)":"surface2"};function HS(e,o,t){let r=Vr(e,o);if(!r||r==="transparent")return t.background.toLowerCase();let a=r.trim(),n=a.startsWith("#")?xJ(a):null;if(n)return n.toLowerCase();let s=IJ[a.replace(/\s+/g,"")];return(s?t[s]:t.background).toLowerCase()}var WS="transparent";function nF(e,o){let t=Vr(e,o);return!t||t===WS?"none":t===Qo?"band":null}function sF(e,o,t=o){let r=n=>!n||n==="transparent",a=Vr(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 FLe(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 BLe(e){return typeof e=="string"&&e!==ld?Rm(e):Ki}function NLe(e){return e!==Lm&&e!=="none"&&e!==""}function cF(e,o){return e===ld||e===!0?!0:e==null?o===Ki:!1}var ts="inherit",Fm="fixed",dF=e=>typeof e!="number"&&e!==Fm,yJ="var(--sf-heading-max, 9999px)";function HLe(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}, ${yJ})`:n}var US={kind:"fontSize",unitKey:"titleSizeUnit"},zS={kind:"fontSize",unitKey:"bodySizeUnit"},bJ=["desktop","mobile"],fF=[US,zS].flatMap(e=>Ii(e,bJ));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 SJ=["page","full"],pF=["full","page"],rs={full:"Full",page:"Content"},jS="inherit",wJ=e=>typeof e=="string"&&SJ.includes(e),CJ=e=>e===jS;function Bm(e,o){return CJ(e.widthMode)?{mode:"full",inherited:!0}:wJ(e.widthMode)?{mode:e.widthMode,inherited:!1}:{mode:o,inherited:o==="full"}}function GLe(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 as(e){let o=e[Be.contentMaxUnit],t=Pe(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=as(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",vJ=e=>e==="full"||e==="content";function Vi(e){return vJ(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 KQ}from"efficient-easel/screen/lib/session-context";import{BOX_GAP as VQ,describedAs as on,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 is,phoneTwinFields as sw,saidAlignmentGrid as YQ,useLengthUnit as qQ}from"efficient-easel/screen/lib/document/box-fields";import{createElement as jt}from"react";import{SettingsDefaultReset as kJ,SettingsField as TJ}from"efficient-easel/panel";import{boxFieldBuilders as PJ,describedAs as EJ,iconOf as _J,onDesktopWords as OJ}from"efficient-easel/screen/lib/document/box-fields";import{LENGTH_KIND_UNITS as AJ}from"efficient-easel/screen/lib/content/length-units";import{IconPicker as RJ,Tooltip as LJ,useShellStrings as FJ}from"efficient-shell/ui";import{RotateIcon as BJ}from"efficient-easel/icons";var Mm=e=>c(e),Ia=AJ,Ao=PJ(Mm,{lengthUnits:Ia}),$o=Ao.slider,Ot=Ao.select,cd=Ao.Segmented,qi=Ao.segmented,eFe=Ao.alignmentField,oFe=Ao.alignmentFields,tFe=Ao.blockAlignmentField,rFe=Ao.blockAlignmentFields,aFe=Ao.boxJustifyField,nFe=Ao.boxAlignField,sFe=Ao.boxWrapField,bF=Ao.directionField,Hm=Ao.gapField,iFe=Ao.placementField,lFe=Ao.PlacementGridView,cFe=Ao.positionFields,Xi=Ao.sidesPaddingFields,ns=Ao.lengthUnitFields;function SF(e,o){return $o("Angle",jt(BJ),kp.min,kp.max,kp.step,e,"\xB0",o)}var YS=Symbol("efficient-web-builder.picture-picker-row"),NJ={width:"3.5rem",height:"2.75rem",words:!0};function qS({value:e}){return FJ().iconNames[e]??e}function XS(e,o,t){return jt(LJ,{content:t,className:"sf-pick-tip",children:jt("span",{className:"sf-pick"},jt("span",{className:"sf-pick-pic"},e),jt("span",{className:"sf-pick-cap"},o))})}function DJ(e){let o=t=>t.label===void 0?jt(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 jt("span",{className:"sf-pick"},jt("span",{className:"sf-pick-pic"},e),jt("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,...EJ({},{type:"radio",label:e,options:i}),options:i,render:l=>{let{value:d,onChange:f,field:u}=l,p=u?.options,m=DJ(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 jt(TJ,{label:c(e),icon:_J(o),action:h?jt(kJ,{words:ce()?.panel,label:c(e),changed:v,detail:b?.label!==void 0?OJ(Mm,c(b.label),l.followsView):void 0,disabled:l.readOnly===!0,onReset:()=>f(void 0)}):void 0},jt(RJ,{label:c(e),value:S,options:m,onChange:f,columns:a.columns,cell:a.cell??NJ,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 KJ}from"efficient-easel/icons";import{useId as VJ}from"react";var MJ="line",HJ=[{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}},pFe=28,WJ="-45deg",$J="color-mix(in oklab, var(--accent) 50%, var(--bg))";function UJ(e){return e!=="line"&&e!=="none"}var zJ={sm:24,md:48,lg:80},GJ="md",jJ=Object.keys(zJ);function uFe(e){return go(jJ,GJ,e)}function mFe(e){return go(HJ,MJ,e)}function hFe(e){if(!UJ(e))return null;let{ink:o,period:t}=JS[e];return`repeating-linear-gradient(${WJ}, ${$J} 0 ${o}px, transparent ${o}px ${t}px)`}var xFe={kind:"border",unitKey:"thicknessUnit"},gFe={kind:"size",base:"%",unitKey:"lengthPctUnit"};var Wm=44,$m=28;function xe({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}),ke=({x:e,y:o,w:t,h:r})=>_("rect",{x:e,y:o,width:t,height:r,rx:2,fill:"none"}),At=({x:e,y:o})=>_("circle",{cx:e,cy:o,r:1.75,stroke:"none"}),Uo=({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 _(xe,{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 vFe={bars:Se(xe,{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(xe,{children:[_("polyline",{points:"6,22 14,15 22,18 30,8 38,11",fill:"none",strokeWidth:1.75,strokeLinejoin:"round"}),_(Uo,{x1:6,y1:25,x2:38,y2:25})]}),donut:Se(xe,{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 kFe(e){if(e==="none")return _("span",{style:{display:"flex",width:Wm,height:$m,alignItems:"center",justifyContent:"center"},children:_(KJ,{size:20})});if(e==="line")return _(xe,{children:_(Uo,{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 _(YJ,{children:a})}function YJ({children:e}){let o=`sf-div-${VJ().replace(/[^\w-]/g,"")}`;return Se(xe,{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}),TFe={tabs:Se(xe,{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}),_(Uo,{x1:4,y1:17,x2:40,y2:17}),_(M,{x:4,y:16,w:11,t:2})]}),largeTabs:Se(xe,{children:[_(Uo,{x1:4,y1:5,x2:40,y2:5}),_(At,{x:7,y:10}),_(M,{x:11,y:9,w:16}),_(M,{x:31,y:9,w:9,faint:!0}),_(Uo,{x1:4,y1:14,x2:40,y2:14}),_(At,{x:7,y:19}),_(M,{x:11,y:18,w:13,faint:!0}),_(M,{x:31,y:18,w:9,faint:!0}),_(Uo,{x1:4,y1:23,x2:40,y2:23})]})},PFe={card:Se(xe,{children:[_(ke,{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(xe,{children:[_(Um,{x:10,y:3,w:24,h:22}),_(ke,{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})]})},EFe={cards:Se(xe,{children:[_(ke,{x:3,y:5,w:11,h:18}),_(ke,{x:17,y:5,w:11,h:18}),_(ke,{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(xe,{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})]})},_Fe={table:Se(xe,{children:[_(ke,{x:3,y:5,w:38,h:18}),_(Uo,{x1:15.7,y1:5,x2:15.7,y2:23}),_(Uo,{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(xe,{children:[_(Uo,{x1:3,y1:7,x2:13,y2:7}),_(Uo,{x1:17,y1:7,x2:27,y2:7}),_(Uo,{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})]})},OFe={plain:Se(xe,{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(xe,{children:[_(ke,{x:3,y:7,w:11,h:14}),_(ke,{x:17,y:7,w:11,h:14}),_(ke,{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(xe,{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(xe,{children:[_(ke,{x:3,y:9,w:18,h:10}),_(ke,{x:23,y:9,w:18,h:10}),_(At,{x:7,y:14}),_(M,{x:10,y:13,w:8}),_(At,{x:27,y:14}),_(M,{x:30,y:13,w:8})]})},AFe={overlay:Se(xe,{children:[_(Um,{x:4,y:3,w:36,h:22}),_(ke,{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(xe,{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}),_(ke,{x:4,y:13,w:36,h:12})]})},RFe={split:Se(xe,{children:[_(M,{x:4,y:6,w:12,t:3}),_(M,{x:4,y:11,w:9,faint:!0}),_(Uo,{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(xe,{children:[_(Uo,{x1:9,y1:4,x2:9,y2:24}),_(At,{x:9,y:8}),_(M,{x:14,y:7,w:24}),_(At,{x:9,y:14}),_(M,{x:14,y:13,w:20}),_(At,{x:9,y:20}),_(M,{x:14,y:19,w:24})]}),alternating:Se(xe,{children:[_(Uo,{x1:22,y1:4,x2:22,y2:24}),_(At,{x:22,y:8}),_(M,{x:4,y:7,w:14}),_(At,{x:22,y:14}),_(M,{x:26,y:13,w:14}),_(At,{x:22,y:20}),_(M,{x:4,y:19,w:14})]}),track:Se(xe,{children:[_(Uo,{x1:4,y1:12,x2:40,y2:12}),_(At,{x:8,y:12}),_(At,{x:22,y:12}),_(At,{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})]})},LFe={standard:Se(xe,{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(xe,{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}),_(Uo,{x1:4,y1:22,x2:40,y2:22})]}),simple:Se(xe,{children:[_(M,{x:4,y:8,w:10,t:1.5,faint:!0}),_(M,{x:4,y:13,w:26,t:4})]}),statement:Se(xe,{children:[_(M,{x:4,y:6,w:36,t:7}),_(M,{x:4,y:16,w:24,t:7})]}),natural:Se(xe,{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(xe,{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})]})},FFe={"spec-card":Se(xe,{children:[_(ke,{x:4,y:3,w:36,h:22}),_(M,{x:8,y:7,w:14}),_(ke,{x:8,y:12,w:8,h:9}),_(ke,{x:18,y:12,w:8,h:9}),_(ke,{x:28,y:12,w:8,h:9})]}),fitment:Se(xe,{children:[_(ke,{x:4,y:4,w:10,h:5}),_(ke,{x:16,y:4,w:10,h:5}),_(ke,{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(xe,{children:[_(ke,{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(xe,{children:[_(ke,{x:4,y:3,w:10,h:22}),_(ke,{x:17,y:3,w:10,h:22}),_(ke,{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(xe,{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(xe,{children:[_(ke,{x:4,y:3,w:36,h:22}),_(Uo,{x1:4,y1:8,x2:40,y2:8}),_(M,{x:8,y:11,w:28,t:5,faint:!0}),_(ke,{x:8,y:18,w:8,h:4}),_(ke,{x:18,y:18,w:8,h:4}),_(ke,{x:28,y:18,w:8,h:4})]}),terminal:Se(xe,{children:[_(ke,{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},BFe={width:"8.5rem",height:"3.75rem",words:!0},NFe={columns:Se(xe,{children:[_(ke,{x:3,y:4,w:11,h:8}),_(ke,{x:17,y:4,w:11,h:8}),_(ke,{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(xe,{children:[_(ke,{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}),_(ke,{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(xe,{children:[_(ke,{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}),_(ke,{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 _Ne,SCALAR_TEXT_CONTROLS as ONe}from"efficient-easel/draw";function ls(e,o){return c("{value} from {from}",{value:e,from:o})}function XQ(){let{blockGap:e}=fe();return e===null?c("this container's own spacing"):ls(`${e}px`,c("Styles"))}function ZQ({inherited:e,onReset:o,label:t}){return O(et,{words:ce()?.panel,label:c(t),changed:!e,detail:XQ(),onReset:o})}function JQ(e){return Hm({...VQ,builtIn:ji[e],resolve:(o,t)=>os(e,o,t?.siteGap),action:(o,t)=>O(ZQ,{inherited:!Am(e,o),onReset:()=>t(void 0),label:"Gap"}),mark:{[Om]:e}})}function QQ(e){return co(Rt("mobile",{[Om]:e,type:"custom",render:o=>O(tee,{container:e,...o})}),ZF)}function eee(e){return co(Rt("tablet",{[Om]:e,type:"custom",render:o=>O(oee,{container:e,...o})}),ZF)}var ZF={not:{field:"gap",in:Array.from({length:-ga.min},(e,o)=>ga.min+o)}};function SNe(e){return{gap:Rt("desktop",JQ(e)),[uw("gap")]:eee(e),[Zi("gap")]:QQ(e)}}function oee({container:e,...o}){let[t]=yr("gap"),{siteGap:r}=o.field??{},a=Math.max(sd.min,os(e,t,r));return Hm({...sd,builtIn:a,resolve:n=>Qa(n)?n:a,action:(n,s)=>O(et,{words:ce()?.panel,label:c("Gap"),changed:Qa(n),detail:is(i=>c(i),`${a}px`),onReset:()=>s(void 0)})}).render(o)}function tee({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(et,{words:ce()?.panel,label:c("Gap"),changed:Qa(s),detail:ls(`${n}px`,DS(e,t,a)?c("Styles"):c("Desktop")),onReset:()=>i(void 0)})}).render(o)}function wNe(e){return bF({offered:zL(e),fallback:Kr(e,void 0),resolve:o=>Kr(e,o)})}function CNe(e,o){return J_(o?oO(e,o):[],o)}function ree({inherited:e,onReset:o,label:t}){return O(et,{words:ce()?.panel,label:c(t),changed:!e,detail:ls(c("Full"),c("the page")),onReset:o})}function cs({value:e,onChange:o,label:t,placeholder:r,hint:a,multiline:n,hideable:s=!0,markup:i=!0}){let{text:l,hidden:d}=tn(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?lee(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(So,{label:c(t),icon:O(bQ,{}),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:ya("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 vNe(e,o){return{...e,[tQ]:o}}function kNe(e){let o=e[ba];if(!o)throw new Error("withOffPage: the field holds no authored text");return{...e,[ba]:{...o,offPage:!0}}}function Vm(e){return!e||typeof e!="object"?!1:e[ba]?.offPage===!0}function TNe(e){if(!e[ba])throw new Error("withPanelOnly: the field holds no authored text");return{...e,[$b]:!0}}function JF(e){return Hi(e)}function PNe(e){let o=e[ba];if(!o)throw new Error("withIdentifier: the field holds no authored text");return{...e,[ba]:{...o,identifier:!0}}}function ANe(e,o){if(!e[ba])throw new Error("inOwnBox: the field holds no authored text");let{[HQ]:t,...r}=e;return{...r,[Wb]:!0,render:o}}var aee=new Set($Q),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"}}}},ds=(e,o)=>{let t=on({...o,[ba]:e},{...QF[e.control],label:e.label});if(!aee.has(e.control))return t;let r=o.render;return{...qF(t,"authored-copy"),render:a=>O(tR,{name:a.name,children:r(a)})}},RNe="Everything else on this block comes from the linked post. Unlink it to edit by hand.",nee={field:"source.slug",set:!0},LNe={not:nee},see="Select a word, then press the highlighter.",iee=new Set([see]),lee=e=>iee.has(e);function FNe(e,o,t){return ds({control:"text",label:e,placeholder:o,hint:t},{type:"custom",render:({value:r,onChange:a})=>O(cs,{value:r,onChange:a,label:e,placeholder:o,hint:t})})}function BNe(e,o,t){return ds({control:"textarea",label:e,placeholder:o,hint:t},{type:"custom",render:({value:r,onChange:a})=>O(cs,{value:r,onChange:a,label:e,placeholder:o,hint:t,multiline:!0})})}function NNe(e,o,t){return ds({control:"plainText",label:e,placeholder:o,hint:t},{type:"custom",render:({value:r,onChange:a})=>O(cs,{value:r,onChange:a,label:e,placeholder:o,hint:t,hideable:!1,markup:!1})})}function DNe(e,o,t){return ds({control:"copyText",label:e,placeholder:o,hint:t},{type:"custom",render:({value:r,onChange:a})=>O(cs,{value:r,onChange:a,label:e,placeholder:o,hint:t,hideable:!1})})}function MNe(e){return{type:"custom",[eQ]:{label:e},...on({},{type:"text",label:e}),render:({value:o,onChange:t})=>O(tL,{value:QJ(o),onChange:t,label:e})}}function HNe(e,o,t){return ds({control:"plainTextarea",label:e,placeholder:o,hint:t},{type:"custom",render:({value:r,onChange:a})=>O(cs,{value:r,onChange:a,label:e,placeholder:o,hint:t,multiline:!0,hideable:!1})})}var eB={Design:rQ,Animation:nQ};function WNe(e,o){return{type:"custom",render:()=>O(cee,{text:e,values:o})}}function cee({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(Sa,{})};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(Sa,{})};return OF.set(e,o),o}function dee(e){let o=e;return o?.marker===!0&&typeof o.fold=="string"?o.fold:null}function tB(e,o){return dee(e)===o?e:{...e,marker:!0,fold:o,render:()=>O(Sa,{})}}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(Sa,{})}}function xw({title:e,children:o}){let[t,r]=fd(()=>!ow.has(e));return O(CQ,{title:e,open:t,onToggle:a=>{r(a),a?ow.delete(e):ow.add(e)},children:o})}var ow=new Set;function fee({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 ya("div",{className:"sf-swatches",children:[e.map(i=>{let l=r?.[i]?c(r[i]):i;return O(pw,{content:l,children:O(AQ,{color:i,selected:o.toLowerCase()===i.toLowerCase(),onClick:()=>t(i),"aria-label":l})},i)}),O("span",{className:"sf-swatch-hex",children:s})]})}function $Ne(e,o,t=!1){return{type:"custom",render:({value:r,onChange:a})=>O(pee,{label:e,builtIn:o,followsBand:t,value:r,onChange:a})}}function pee({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?Qo:o,f=sF(n,o,d),u=HS(void 0,d,l),p=t?id:void 0,m=d===Qo?c("the theme's section background"):c("Theme {n} background",{n:i}),h=uee(n,o,s,i,l,a),I=ls(u.toUpperCase(),m),w=zr(n),S=w?Li(w,s,i):null;return S?O(xt,{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 uee(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(Qo)},...bw(zr(e)??"",t,r,n)]}function mee(e,o){return{type:"custom",render:({value:t,onChange:r})=>{let a=t,n=cF(a,o);return O(So,{label:c(e),icon:O(aw,{}),changed:!n,action:O(et,{words:ce()?.panel,label:c(e),changed:!n,detail:c("the theme's image stage"),onReset:()=>r(ld)}),children:fee({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=bo(),t=da(e?.view),r=s=>mw(e.valueKey,s),a=e.numbersIn??(s=>q(o[r(s)])!==void 0),n=e.followsView??_ee(t,a);return qQ({props:{value:void 0,onChange:()=>{},field:{}},row:e.valueKey?e.row:void 0,table:Ia,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 It({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(MQ,{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 hee(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(So,{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(et,{words:ce()?.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}):It({min:t,max:r,step:a,value:m??t,readout:!1,ariaLabel:e,onChange:p})})}}}var pd="Corners",xee={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(So,{label:c(pd),icon:O(WF,{}),changed:n,action:iw(e.mark,{changed:n,onReset:()=>r(null)}),hint:e.hint,children:O(gee,{tier:e,px:a,name:o.name,onRadius:r})})}}}function yr(e){let o=ss();return[o?.values?.[e],t=>o?.onChange(e,t)]}function hd(){return qF({type:"custom",render:()=>O(WQ,{})},"always")}function pr(){let e=ss();return o=>e?.onChangeMany(o)}function gee({tier:e,px:o,name:t,onRadius:r}){let a=e.useFollowed(),[n,s]=yr(e.sidesKey),i=pr(),l=el({row:e.row??xee,label:pd,grid:{min:at,max:Ha,step:e.step??1},valueKey:t??"",view:"desktop"}),d=$r(n)??[..._u];return O(RQ,{label:c(pd),value:d,corners:P1,onChange:f=>{let u=$r(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??at,radiusMax:l?.grid.max??Ha,radiusStep:l?.grid.step??e.step??1,radiusPlaceholder:l&&l.unit!=="px"?"\u2013":String(a),...l?{radiusUnit:l.unit,units:l.units}:{}})}function aB(e,o){return ns(e,o)}function nB(){return hd()}function Iee({label:e,changed:o=!1,onReset:t=()=>{}}){let{cornerRadiusPx:r}=fe(),a=typeof r=="number"?`${r}px`:c("not set");return O(et,{words:ce()?.panel,label:c(e),changed:o,detail:r==null?c("the built-in corners"):ls(a,c("Styles")),onReset:t})}function yee(){let{cornerRadiusPx:e}=fe();return typeof e=="number"?e:at}function bee(){return gw({sidesKey:"sectionCornerSides",row:Dc,useFollowed:yee,mark:O(Iee,{label:pd}),hint:See})}var See="Follows Styles \u25B8 Basics \u25B8 Corners until you set a number here.";function ol(){return md({_gShape:Sr("Shape"),sectionCorners:bee(),...aB(Dc,"sectionCorners"),sectionCornerSides:nB(),...ua("sectionBorder",Eee),...ns(ad,"sectionBorder",{tablet:!0,phone:!0})})}var wee=()=>({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 Cee(e){let o=Object.fromEntries(Object.entries(e).filter(([,t])=>t!=null&&t!==""));return Object.keys(o).length?o:void 0}function vee(){let e;try{let o=ko(fe().theme);e=o.themes[o.selected]?.line}catch{e=void 0}return e||h_.line}function kee({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?EQ(l,s):!1),u=wee(),p=m=>Cee(a&&n?m:{width:m.width,color:m.color,...n?{style:m.style}:{}});return O(So,{label:c("Border"),icon:O(sQ,{}),action:a?O(TQ,{each:d,label:c("Each side"),onChange:f}):void 0,children:O(kQ,{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 Tee({value:e,onChange:o,view:t}){let[r]=yr("sectionBorder"),[a]=yr(uw("sectionBorder")),n=vee(),s=p=>p&&typeof p=="object"?p:{},i=t==="phone"?{...FS(s(r)),...FS(s(a))}:t==="tablet"?s(r):{},l=bo(),d=pr(),f=ve("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]:Pee(m,p)}:{}}});return O(kee,{value:e,length:u,onChange:u?p=>d({[f]:p,...u.unitPatch(!tw(p))}):o,placeholder:{sides:PQ(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 Pee(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 Eee(e){return{type:"custom",render:({value:o,onChange:t})=>O(Tee,{value:o,onChange:t,view:e})}}function _ee(e,o){let t=ew[e];for(;t&&ew[t]!==null&&!o(t);)t=ew[t];return t??e}function UNe(e){return{type:"custom",render:()=>O(Oee,{partKey:e})}}function Oee({partKey:e}){let[o]=yr("id"),[t]=yr("_partStyles"),{textStyles:r}=fe(),a=jQ(),n=null;try{n=UQ().select}catch{n=null}let s=t&&typeof t=="object"?t[e]:void 0,i=Array.isArray(r)?r:null;return O(wQ,{name:c("Text"),preview:_L(s,i,{noStyle:c("No style"),styleName:a.textStyles.styleName,cases:(a.copy.panel??GQ.copy.panel).cases}),onOpen:()=>{n&&typeof o=="string"&&n(zQ(o,e))}})}function iB(e){let{cornerRadiusPx:o}=fe(),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 Aee({label:e,changed:o=!1,onReset:t=()=>{}}){let r=iB(at);return O(et,{words:ce()?.panel,label:c(e),changed:o,detail:ls(`${r}px`,c("the section")),onReset:t})}function Ree(){return O(Sa,{children:c("Follows the section's Corners until you set a number here.")})}function Lee(){return gw({sidesKey:"cardCornerSides",row:Mc,useFollowed:()=>iB(at),mark:O(Aee,{label:pd}),hint:O(Ree,{})})}function Fee(){return{type:"custom",render:()=>O(B1,{})}}function lB(){return{_gShape:Sr("Shape"),cardCorners:Lee(),...aB(Mc,"cardCorners"),cardCornerSides:nB(),cardCornersApplyAll:Fee()}}function Bee(){return on({type:"custom",[YS]:!0,render:e=>O(Dee,{...e})},{type:"select",label:An,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 Nee(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 Dee(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=()=>[...BQ[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=DQ().widths.hint(a,FQ);return O(So,{label:c(An),icon:O(lw,{}),changed:I,hint:l!=="custom"?void 0:d?w:h,action:O(et,{words:ce()?.panel,label:c(An),changed:I,disabled:e.readOnly===!0,detail:n?is(S=>c(S),Nee(e.follows,a),e.followsView):c("Fit content"),onReset:()=>t(void 0)}),children:ya("div",{className:"sf-share-row",children:[O("div",{className:"sf-share-pick",children:O(KF,{label:c(An),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(NQ,{label:c(An),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 zNe(){return Ot(HE,O(uQ,{}),hy,hy[0].value)}function GNe(){return Rt("mobile",ZS(An,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 jNe(){return sw("share",Bee(),XF)[uw("share")]}function Mee(){return Rt("mobile",$o(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 KNe(){let e=$o(py,O(HF,{}),uy,NE,1,uy,"",{clear:{emptyLabel:"Auto"}}),o=sw("columns",e,{...AF,tablet:XF.tablet}),t=sw("columns",e,AF,{phoneRow:Mee()});return{...o,phoneRow:t.phoneRow}}function VNe(e,o,t,r,a,n,s){return{type:"custom",render:({value:i,onChange:l,name:d})=>O(Hee,{label:e,min:o,max:t,step:r,fallback:a,role:n,value:i,onChange:l,name:d??"",length:s})}}function Hee({label:e,min:o,max:t,step:r,fallback:a,role:n,value:s,onChange:i,name:l,length:d}){let f=bo(),u=pr(),p=da(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(So,{label:c(e),icon:O(kb,{noun:n}),action:O(et,{words:ce()?.panel,label:c(e),changed:!dF(s),detail:c("the Text style in Styles"),onReset:()=>h(ts),defaultAction:{onPress:()=>h(Fm),title:c("Keep this section's own built-in size"),icon:O(iQ,{})}}),children:It({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:Ot("Positions",O(lw,{}),RF(Nu,"position","positions"),""),gridRowSpan:Ot("Rows tall",O(cw,{}),RF(Cb,"row","rows"),"")}}function bo(){let e=null,o=null;try{e=NF(Iw),o=Km(t=>t).selectedItem}catch{o=null}return e??o?.props??{}}var Iw=XJ(null);function Wee({min:e,max:o,step:t,px:r,label:a,onChange:n,desktopKey:s,fallback:i}){let l=bo()[s],d=em(void 0,l,i);return O(Sa,{children:It({min:e,max:o,step:t,value:em(r,l,i),readout:!1,ariaLabel:a,notch:d,onChange:n})})}function $ee({label:e,desktopKey:o,fallback:t,unit:r="px",changed:a=!1,onReset:n=()=>{}}){let s=bo()[o],i=em(void 0,s,t);return O(et,{words:ce()?.panel,label:c(e),changed:a,detail:is(l=>c(l),`${i}${r}`),onReset:n})}function Uee(e){return hee(e.label,{icon:e.icon,min:e.min,max:e.max,step:e.step,unit:e.unit,unsetLabel:"Follows Desktop",unsetMark:O($ee,{label:e.label,desktopKey:e.desktopKey,fallback:e.fallback,unit:e.unit}),restTrack:o=>O(Wee,{...o,desktopKey:e.desktopKey,fallback:e.fallback})})}var zee={Top:"Padding top",Bottom:"Padding bottom",Left:"Padding left",Right:"Padding right"},Gee={Top:dw,Bottom:UF,Left:zF,Right:GF},jee=e=>{let o=Gee[e];return O(o,{})};function pB(e={}){let o=e.keys?.top??"sectionPaddingTop",t=e.keys?.bottom??"sectionPaddingBottom",r=e.group!==!1,a=w=>zee[w],n=w=>$o(a("Top"),O(dw,{}),Ut.min,Ut.max,Ut.step,w,"px"),s=(w,S,v,b=Ut)=>Rt("mobile",Uee({label:a(w),icon:jee(w),desktopKey:S,min:b.min,max:b.max,step:b.step,fallback:v})),i=e.top??Ut.min,l=e.bottom??Ut.min,d="sectionPaddingLeft",f="sectionPaddingRight",u=e.sideBounds??Ut,p=e.side??u.min,m=e.sidePhone??p,h=e.phone===!0,I=w=>h?Rt("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($o(a("Bottom"),O(UF,{}),Ut.min,Ut.max,Ut.step,l,"px")),...h?{[Zi(t)]:s("Bottom",t,l)}:{}},...e.sides?{[d]:I($o(a("Left"),O(zF,{}),u.min,u.max,u.step,p,"px")),...h?{[Zi(d)]:s("Left",d,m,u)}:{},[f]:I($o(a("Right"),O(GF,{}),u.min,u.max,u.step,p,"px")),...h?{[Zi(f)]:s("Right",f,m,u)}:{}}:{}})}function YNe(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 en="Width";function tl(e,o=pF,t=!0){let r=o.map(a=>({label:rs[a],value:a}));return md({...t?{_gWidth:Sr(en)}:{},widthMode:{type:"custom",render:({onChange:a,field:n})=>O(So,{label:c(en),icon:O(SQ,{}),action:t?O(ree,{inherited:n?.inherited??!1,onReset:()=>a(jS),label:en}):void 0,children:cd({options:r,value:n?.currentValue||e,onChange:a,ariaLabel:en})})}})}function rl({fill:e=!1}={}){let o=(a,n)=>({type:"custom",render:({value:s,onChange:i})=>O(Kee,{value:s,onChange:i,view:a,badge:n,fill:e})}),t=()=>nw("sectionHeightMode"),r=()=>nw("sectionHeightMode");return md({_gHeight:Sr(Ti),...ua("sectionHeightMode",a=>a==="desktop"?o(a):o(a,n=>O(Xee,{view:a,onClear:()=>n(void 0)}))),...ua("sectionHeightValue",t),...ua("sectionHeightUnit",r)})}function Kee({value:e,onChange:o,view:t,badge:r,fill:a=!1}){let n=bo(),{mode:s,number:i,unit:l}=Vee(t,n,e);return O(So,{label:Ti,icon:Ji(O(cw,{})),action:r?r(o):void 0,children:ya("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(qee,{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 Vee(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 Yee(e,o,t,r){let a=qm(e,o);return!a||e==="desktop"?null:r===void 0?{}:{[ve("sectionHeightMode",e)]:a.mode,...a.mode==="fixed"?{[ve("sectionHeightUnit",e)]:a.unit}:{},...t==="sectionHeightUnit"?{[ve("sectionHeightValue",e)]:a.value}:{},[ve(t,e)]:r}}function LF(e,o,t){let r=ss(),a=qm(e,bo());return!r||!a?{followed:null,write:t}:{followed:a,write:n=>r.onChangeMany(s=>{let i=Yee(e,s,o,n);return i===null?{[ve(o,e)]:n}:Object.keys(i).length?i:null})}}function qee({view:e,mode:o,menu:t}){let r=ss(),a=bo(),n=ve("sectionHeightValue",e),s=ve("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 It({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 Xee({view:e,onClear:o}){let t=bo(),r=qm(e,t)===null,a=e==="phone"&&nu(t),n=uB(e,t),s=is(i=>c(i),n.mode==="auto"?c("Auto"):`${n.value}${n.unit}`,a?"tablet":"desktop");return O(et,{words:ce()?.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(roe,{value:s,onChange:i,labelId:`${l??d??"stickTop"}-label`,view:n,intro:o})}),r=n=>({type:"custom",render:({value:s,onChange:i})=>O(eoe,{value:s,onChange:i,view:n,intro:o})}),a=n=>({type:"custom",render:({value:s,onChange:i})=>O(ooe,{value:s,onChange:i,view:n,intro:o})});return{_gStick:Sr(RL,{dot:o?Qee:zi}),...ua("stickTop",t),...ua("stickTopDistance",r),...ns(rd,"stickTopDistance",{tablet:!0,phone:!0}),...e.screens?ua(Ir,a):{},...o?{}:{[es]:Zee()},...o||e.above===!1?{}:{[Ja]:Jee()}}}function Zee(){let e=Ot(LL,O(dw,{}),FL,BL);return Rt("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 Jee(){let e=hB(ML,!1,O(jF,{}),HL);return Rt("desktop",{...e,render:o=>e.render({...o,onChange:t=>o.onChange(t===!0?!0:void 0)})})}var Qee={any:[zi,km]};function mB(e,o,t,r,a){let n=ss(),s=bo(),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=toe(e,d,l,o,r),u=f===null?{[ve(o,e)]:l}:f;return Object.keys(u).length?{...u,...a?.(l)??{}}:null}):t}}function eoe({value:e,onChange:o,view:t,intro:r}){let a=bo(),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:zt.min,max:zt.max,step:zt.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:It({min:i?.grid.min??zt.min,max:i?.grid.max??zt.max,step:i?.grid.step??zt.step,value:l?null:typeof e=="number"?e:zt.fallback,...l?{placeholder:l.distance}:{},...i?{suffix:i.unit,units:i.units}:{suffix:"px"},ariaLabel:c("Distance from top"),onChange:d})})}function ooe({value:e,onChange:o,view:t,intro:r}){let{followed:a,write:n}=mB(t,Ir,o,r);return O(So,{label:c(PS),icon:Ji(O(cw,{})),children:It({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 toe(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=>ve(f,"tablet"):f=>f,i=(f,u)=>o[s(f)]==null?{}:{[ve(f,e)]:u},l=rd.unitKey,d=o[s(l)]==null?{}:{[ve(l,e)]:n.unit};return{[ve("stickTop",e)]:!0,...i("stickTopDistance",n.distance),...d,...i(Ir,n.screens),[ve(r,e)]:t}}function roe({value:e,onChange:o,labelId:t,view:r,intro:a}){let n=bo(),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(So,{label:c(kS),labelId:t,icon:Ji(O(jF,{})),action:ya(Sa,{children:[r!=="desktop"?O(et,{words:ce()?.panel,label:c(kS),changed:ud(r,n),detail:is(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:ds({control:"plainText",label:"Name",placeholder:FF},{type:"custom",render:({value:e,onChange:o})=>O(SA,{value:e,onChange:o,nameBox:(t,r)=>O(cs,{value:t,onChange:r,label:"Name",placeholder:FF,hideable:!1,markup:!1})})})}}function qNe(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(So,{label:c(e),icon:o,htmlFor:i,hint:t===void 0?void 0:c(t),children:O(LQ,{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",...on({},{...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(So,{label:c(e),labelId:h,icon:t,hint:r===void 0?void 0:c(r),action:d?ya(Sa,{children:[O(et,{words:ce()?.panel,label:c(e),changed:u,detail:f.followsNoView?c(p?"On":"Off"):is(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(aoe,{label:"Background",icon:O(gQ,{}),id:a,value:e,shown:Eb(e),onChange:o})}}}function XNe(e,o,t){return{type:"custom",render:({value:r,onChange:a})=>O(xt,{label:c(e),icon:t,value:r||o,onChange:a})}}function aoe({label:e,icon:o,id:t,value:r,shown:a,onChange:n}){let{colors:s,n:i}=Sw(),l=zr(r),d=l?Li(l,s,i):null;return O(xt,{label:c(e),icon:o,id:t,value:d?d.hex:a,caption:d?.words,onChange:n,choices:bw(l??"",s,i,n)})}function ZNe(){return{type:"custom",render:e=>{let{value:o,onChange:t}=e,r=e;return O(noe,{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 noe({value:e,onChange:o,twin:t}){let{colors:r,n:a}=Sw(),n=r.background,s=ls(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=is(T=>c(T),F?F.words:s,t.view)}let b=!t&&(Gc(e)||f)?O(soe,{value:u,onChange:p}):null;return h?O(xt,{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 soe({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 ioe(e,o,t){if((e?.content??[]).some(n=>n?.props?.id===o))return Wr(t);let r=MA(e,o);if(r.length===0)return null;let a=Wr(Dn(t));if(a!==null)return a;for(let n=r.length-1;n>0;n-=1){let s=Wr(Dn(r[n].sectionAccent));if(s!==null)return s}return Wr(r[0].sectionAccent)}function Sw(){let e=ko(fe().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?ioe(a?.data,s,o):null}catch{t=null}let r=t!==null&&e.themes[t]?t:e.selected;return{colors:mt(e.themes[r]),n:r+1}}function JNe(){return hd()}var gB={top:O(fQ,{}),right:O(dQ,{}),bottom:O(lQ,{}),left:O(cQ,{})};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(So,{label:c(e),icon:a,value:i(m)?.label?c(i(m).label):s?c(s):"",children:YQ(c,{label:e,value:m,onChange:p,points:f})})}}}function QNe(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 eDe(e,o={}){return{type:"custom",render:({value:t,onChange:r})=>{let a={value:t,onChange:r,...o};return O(e,{...a})}}}var loe={image:"Image",video:"Video"},oDe=Mn.map(e=>({label:loe[e],value:e}));function tDe(e,o,t){let r=Object.keys(Xy).map(a=>({label:Xy[a],value:a,picture:t[a]}));return{type:"custom",...on({},{type:"radio",label:e,options:r.map(a=>({value:a.value,label:a.label}))}),render:({onChange:a})=>O(doe,{label:e,icon:o,options:r,onChange:a})}}function coe(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 doe({label:e,icon:o,options:t,onChange:r}){let a=ss(),n=a?.values??{},s=Fc(n),i=NF(JJ),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(So,{label:c(e),icon:Ji(o),hint:coe(n,f,i?.hasUnsavedEdits??!1),children:cd({options:t,value:s,onChange:r,ariaLabel:e})})}function rDe(e,o,t,r={}){let a={type:"custom",[oQ]:!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?Rt("each",a):a}var aDe={HeroSingle:[Hn.image],HeroSlide:["videoFrame","videoFramePhone"],ContactLocations:["locations[].photo"],ProcessSteps:["steps[].image"]};function foe(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 nDe({value:e,onChange:o,label:t}){let r=e||{},a=ss(),n=a?a.values!==a.node.props:!0,s=!!r.pending&&n,i=!!r.pending&&!n,l=!!Ge(KQ()).geocode,d=DF(),f=(u,p)=>o({...r,[u]:p??void 0});return ya(Sa,{children:[O(So,{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(IQ,{})})}):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:foe(r)}):null}),O(So,{label:c("Enter by hand"),labelId:d,icon:O(pQ,{}),action:O(fw,{checked:!!r.manual,onChange:u=>o({...r,manual:u}),ariaLabelledBy:d})}),r.manual&&O(So,{label:c("Latitude, longitude"),icon:O(kF,{}),children:ya("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 poe(e,o){return o===null||o<0||o>=e.length?"":e[o]?.text??""}function uoe(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 moe(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(xQ,{})};function sDe(e,o,t,r){return{type:"custom",[ba]:{control:"textList",label:e,placeholder:t,itemKey:"text",rendering:r},...on({},{...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=moe(t,u,i);p===null&&(s.current=null),l(p),a(d(u))};return O(_Q,{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:poe(t,i),onChange:u=>a(uoe(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 ds({control:"plainText",label:t,placeholder:e.placeholder,offPage:e.offPage},{type:"custom",render:({value:r,onChange:a})=>O(cs,{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:Ot("Cover image",O(hQ,{}),sR,String(1),e?.coverHint??"A card's opening picture \u2014 a card pinned to a finish keeps its own."),imageBackground:mee("Image background",Lm),cardImage:wB()}}function iDe(){return{outline:Ot("Card outline",O(yQ,{}),nR,aR),indexBadge:Ot("Card number",O(mQ,{}),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=>on(nw(rw),t(a));return{_gShowOnCard:Sr("Show on a card"),[rw]:on({type:"custom",render:()=>O(hoe,{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 hoe({rest:e}){let o=bo(),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 lDe(e,o="display"){let t=Zi(o);return{[o]:Rt("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]:Rt("mobile",{type:"custom",render:({value:r,onChange:a})=>O(xoe,{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(So,{label:i,icon:O(aQ,{}),changed:o,action:O(et,{words:ce()?.panel,label:i,changed:o,detail:n,onReset:a}),children:O(OQ,{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 xoe({parts:e,desktopKey:o,value:t,onChange:r}){let a=bo()[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 $o("Card image",O(WF,{}),at,Ha,V1,at,e,{clear:{hint:at},hint:"Rounds the picture. The card's own corner is in Styles."})}function goe(){return ns(Ib,"cardImage")}function cDe(){return{cardImage:wB(Ib),...goe()}}function dDe(){return gw({sidesKey:"cornerSides",row:X1,step:Z1,useFollowed:()=>at,mark:O(Ioe,{label:J1}),hint:c("Rounds the picture. Left alone it stays square.")})}function Ioe({label:e,changed:o=!1,onReset:t=()=>{}}){return O(et,{words:ce()?.panel,label:c(e),changed:o,onReset:t})}function fDe(){return{type:"custom",render:({value:e,onChange:o})=>O(woe,{value:typeof e=="string"?e:"",onChange:o})}}var BF="own";function pDe(){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 Rt("mobile",ZS("Layout",O($F,{}),e,BF,{columns:2,cell:CF}))}function yoe({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 boe={width:"3.5rem",height:"2.5rem",words:!1},Soe=200;function woe({value:e,onChange:o}){let[t,r]=fd(null),[a,n]=fd(4),s=dd(null);ZJ(()=>{let m=s.current;if(!m||typeof ResizeObserver!="function")return;let h=()=>n(m.getBoundingClientRect().width>=Soe?4:3);h();let I=new ResizeObserver(h);return I.observe(m),()=>I.disconnect()},[]);let i=e?$($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(yoe,{layout:$c[m],width:40})}))];return O(So,{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:boe,header:ya("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(vQ,{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 Hoe}from"efficient-easel/draw";import{decodePartId as Id,encodePartId as qr}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 _oe}from"efficient-easel/draw";import{TEXT_FIELD_MARKER as Eoe}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 Coe}from"efficient-easel/draw";var voe=Coe,koe=["text","textarea"],Toe=["textarea","plainTextarea"];function Poe(e){return!e||typeof e!="object"?null:e[CB]?.control??null}function sl(e){let o=Poe(e);return o&&voe.includes(o)?o:null}function Xm(e){return Toe.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 koe.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 Yr(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[Eoe]}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 po="data-sf-part",an="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 rn(e){return na(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"||Vn(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=rn(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=rn(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 Ooe=_oe;function DB(e,o){if(!o||typeof o!="object"||Vn(e)||ZA(o))return null;let t=o[eh];return!t||!Ooe.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=na(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"),$De=[{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",Aoe="numberForm",Roe="_contentsEntries",Loe="_kickerNumber",UB="data-sf-kicker-number",Foe=e=>$B(e).text.trim(),zB=e=>zn(e?.anchor),Bw=e=>String(e.props?.id??""),Boe=e=>!$B(e.props?.text).hidden&&!Ei(e.props)&&!ut(e.props),wd=e=>si(e);function GB(e){for(let o of wd(e))for(let t of o){if(pa(t.props??{}))continue;if(t.type===WB&&Boe(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&&!pa(t.props??{})&&(t.type===Nw||jB(t))))}var KB=e=>e.type===Fw&&Kr(Fw,e.props?.direction)==="row";function VB(e){return wd(e).some(o=>o.some(t=>t&&!pa(t.props??{})&&(t.type===Nw||!KB(t)&&VB(t))))}function Noe(e){let o=[],t=(r,a)=>{for(let n of r){if(!n||pa(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 Doe(e){return e.map(o=>({label:o.kicker?na(Foe(o.kicker.props?.text)):"",anchor:zB(o.box.props)}))}function Dw(e){let o=e?.length?Noe(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,Doe(a.sections));let s=HB(a.contents.props?.[Aoe]);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 JDe=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=xo(s,m=>lo(m,n)),l=i.props??{},d=i!==s,f=Bw(s),u=f?r.get(f):void 0;u&&(l={...l,[Roe]:u},d=!0);let p=f?a.get(f):void 0;return p&&(l={...l,[Loe]:p},d=!0),d?{...s,props:l}:s};return{...o,content:o.content.map(n)}}var Woe=`[${UB}]`,$oe=["bold","italic","underline","strike","link","sup","sub"],Uoe=["bullet","number"];function Ww(e,o){return e?[...$oe,...o?Uoe:[]]:[]}function qB(e,o){let t=Hoe(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}=tn(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:Woe,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(po)===t?e:o?.querySelector(`[${po}="${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 zoe(){return Mw}function Uw(e){if(e!==Mw){Mw=e;for(let o of Hw)o()}}function Goe(e){return Hw.add(e),()=>{Hw.delete(e)}}function ZB(){return Moe(Goe,zoe,()=>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||to(t.props)?null:{node:t,rows:r}}function qoe(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:joe(e.ownerId,Yr(t.rows,{index:e.index,rowKey:a}))}function sh(e,o){let t=qoe(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=Koe(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=Voe(n,s,l);break}case"delete":i=Yoe(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 mbe,jsxs as cI}from"react/jsx-runtime";import{Fragment as hbe,useEffect as YG,useMemo as qG,useRef as xbe,useState as Ks}from"react";import{useScreenDocument as ej}from"efficient-easel/screen/components/ScreenDocumentContext";import{UiIcon as mP}from"efficient-easel/draw/client";import gbe from"efficient-easel/screen/components/SidePanelHead";import{jsx as Te,Fragment as ml,jsxs as gs}from"react/jsx-runtime";import{useEasel as zD,useRootFields as Aae}from"efficient-easel/easel";import{Inspector as Rae}from"efficient-easel/fields";import{SettingsGroup as Lae}from"efficient-easel/panel";import{useEffect as Fae,useRef as Bae,useState as HC}from"react";import{jsx as fs,Fragment as Qoe,jsxs as ete}from"react/jsx-runtime";import{useState as nN}from"react";import{SettingsDefaultReset as ote,SettingsField as tte}from"efficient-easel/panel";import{useEaselStrings as rte}from"efficient-easel/strings";import{AddIcon as ate}from"efficient-easel/icons";import{Button as nte}from"efficient-shell/ui";import{iconOf as ste,noGlyph as ite}from"efficient-easel/screen/lib/document/box-fields";import{jsx as ih,Fragment as Xoe,jsxs as tN}from"react/jsx-runtime";import{Button as rN,Dialog as Zoe}from"efficient-shell/ui";function Joe(e){return nt("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(Zoe,{open:!0,onClose:o,role:"alertdialog",size:"sm",title:c("Clear this site\u2019s colors?"),footer:tN(Xoe,{children:[ih(rN,{variant:"secondary",onClick:o,children:c("Cancel")}),ih(rN,{variant:"danger",onClick:t,children:c("Clear colors")})]}),children:[ih("p",{children:Joe(e)}),ih("p",{className:"mt-2 font-medium",children:c("This cannot be undone.")})]})}var lte=ite("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"),cte="Reset color",dte={selected:0,themes:[]};function fte(e){e(dte)}function sN({value:e,onChange:o}){let t=e?.themes??[],r=t.length===0,a=ko(e),[n,s]=nN(!1),i=rte(),[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,{...mt(a.themes[a.selected])}];o({...a,themes:S,selected:S.length-1}),d(S.length-1)};return ete(Qoe,{children:[r?null:fs(tte,{label:c(cte),icon:ste(lte),labelId:"sf-theme-reset",action:fs(ote,{label:c("all theme colors"),words:i.panel,changed:!0,onReset:()=>s(!0)})}),n&&fs(aN,{count:t.length,onCancel:()=>s(!1),onConfirm:()=>{s(!1),fte(o)}}),fs("div",{className:"sf-theme-list",role:"radiogroup","aria-label":c("Theme"),children:h.map((S,v)=>fs(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))}),fs(nte,{variant:"secondary",leftIcon:fs(ate,{}),onClick:w,className:"sf-theme-add",children:c("Add new theme")})]})}import{jsx as lh}from"react/jsx-runtime";import{SettingsDefaultReset as pte,SettingsField as ute}from"efficient-easel/panel";import{SquareIcon as mte}from"efficient-easel/icons";var hte="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(ute,{label:c(zw),icon:lh(mte,{}),changed:!r,action:lh(pte,{words:ce()?.panel,label:c(zw),changed:!r,detail:c("the built-in corners"),onReset:()=>o(null)}),hint:c(hte),children:lh(It,{min:t?.grid.min??at,max:t?.grid.max??Ha,step:t?.grid.step??1,value:e,...e===null?{}:{suffix:t?.unit??"px",...t?{units:t.units}:{}},placeholder:at,placeholderWord:"Auto",onClear:()=>o(null),ariaLabel:c(zw),onChange:o})})}import{jsx as Cd}from"react/jsx-runtime";import{SettingsDefaultReset as xte,SettingsField as gte}from"efficient-easel/panel";import{IconPicker as Ite}from"efficient-shell/ui";import{ShadowIcon as yte}from"efficient-easel/icons";import{SHADOW_PREVIEW as bte}from"efficient-easel/screen/lib/document/shadow-values";var Gw={none:"None",soft:"Soft",lifted:"Lifted"},Ste="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(gte,{label:c("Card shadow"),icon:Cd(yte,{}),value:c(Gw[r]),changed:!t,action:Cd(xte,{words:ce()?.panel,label:c("Card shadow"),changed:!t,detail:c(Gw[Ly]),onReset:()=>o(null)}),hint:c(Ste),children:Cd(Ite,{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:bte[a]}})})),onChange:o})})}import{jsx as cN}from"react/jsx-runtime";import{ShadowIcon as wte}from"efficient-easel/icons";import{DEFAULT_SHADOW_COLOR as dN}from"efficient-easel/screen/lib/document/shadow-values";var Cte="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(wte,{}),value:e??"",inherited:dN,resetTo:dN,onChange:o,onReset:()=>o(null),hint:c(Cte)})}import{jsx as dh}from"react/jsx-runtime";import{SettingsDefaultReset as vte,SettingsField as kte}from"efficient-easel/panel";import{AlignSeparateIcon as Tte}from"efficient-easel/icons";function ch(e,o){return e==="tablet"?null:e==="mobile"?o.phone:o.desktop}var Pte="The space between the blocks inside a row, a grid or a box. Auto means each one keeps the spacing it already has.",Ete="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(kte,{label:c(jw),labelId:"sf-block-gap",icon:dh(Tte,{}),changed:!n,action:dh(vte,{words:ce()?.panel,label:c(jw),changed:!n,detail:s??c("each block's own spacing"),onReset:()=>o(null)}),hint:c(s===null?Pte:Ete),children:dh(It,{min:(r?.grid??Gt).min,max:(r?.grid??Gt).max,step:(r?.grid??Gt).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 _te,SettingsField as Ote,SettingsSegmented as Ate}from"efficient-easel/panel";import{HoverIcon as Rte}from"efficient-easel/icons";var Kw={none:di.none,lift:di.lift,highlight:rE},Lte="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(Ote,{label:c("Hover effect"),icon:fh(Rte,{}),value:c(Kw[r]),changed:!t,action:fh(_te,{words:ce()?.panel,label:c("Hover effect"),changed:!t,detail:c(Kw[Fy]),onReset:()=>o(null)}),hint:c(Lte),children:fh(Ate,{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 Fte,SettingsField as Bte,SettingsSegmented as Nte}from"efficient-easel/panel";import{DropIcon as Dte}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}],Mte="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(Bte,{label:c(Vw),icon:ph(Dte,{}),value:c(Yw.find(a=>a.grayscale===r).label),changed:!t,action:ph(Fte,{words:ce()?.panel,label:c(Vw),changed:!t,detail:c(Yw.find(a=>!a.grayscale).label),onReset:()=>o(null)}),hint:c(Mte),children:ph(Nte,{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 Hte}from"react";import{SettingsField as Wte,SettingsSwitch as $te}from"efficient-easel/panel";import{ShareIcon as Ute}from"efficient-easel/icons";var zte="Share button",Gte="On every blog post.";function IN({value:e,onChange:o}){let t=Hte();return qw(Wte,{label:c(zte),labelId:t,icon:qw(Ute,{}),action:qw($te,{checked:e===!0,onChange:o,ariaLabelledBy:t}),hint:c(Gte)})}import{usePreviewDevice as WC}from"efficient-easel/draw/client";import{jsx as uh}from"react/jsx-runtime";import{SettingsDefaultReset as jte,SettingsField as Kte}from"efficient-easel/panel";import{PaddingXIcon as Vte}from"efficient-easel/icons";var Xw="Side space",yN=lt.default,Yte="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:lt},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=lt,length:a,restsOn:n=t}){let s=e===null;return uh(Kte,{label:c(Xw),labelId:"sf-side-space",icon:uh(Vte,{}),changed:!s,action:uh(jte,{words:ce()?.panel,label:c(Xw),changed:!s,detail:`${t}px`,onReset:()=>o(null)}),hint:c(Yte),children:uh(It,{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 U2e,SettingsBackgroundWidth as qte,SettingsContentWidth as Xte}from"efficient-easel/panel";var Zte="Background width",Jw="Content width";var mh=e=>c(rs[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(qte,{value:e,changed:o,detail:t,onChange:r,onReset:a,hint:n?c(n):void 0,labelId:s,words:{label:c(Zte),full:mh("full"),content:mh("content")},resetWords:ce()?.panel})}function xh({mode:e,px:o,max:t=je.max,min:r=je.min,changed:a,detail:n,fullClosed:s,onMode:i,onPx:l,onReset:d,hint:f,labelId:u,length:p}){let m=c(Jw),h=p?.grid.min??r,I=p?.grid.max??t,w=e!=="full"?Zw(It,{min:h,max:I,step:p?.grid.step??je.step,value:Math.min(Math.max(o,h),I),onChange:l,...p?{suffix:p.unit,units:p.units}:{suffix:"px"},ariaLabel:m}):null;return Zw(Xte,{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:ce()?.panel})}import{jsx as ID}from"react/jsx-runtime";import{TextStyleItem as tae,TextStylesGroup as rae}from"efficient-easel/text-styles";import{jsx as Xre}from"react/jsx-runtime";import{useState as Zre}from"react";import{TextStylesList as Jre}from"efficient-easel/text-styles";import{usePreviewDevice as Qre}from"efficient-easel/draw/client";import{defaultTextStyles as oD,textStyleCaseCss as Gre}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: ${Br}px) and (max-width: ${vN-gh}px)`,vd=`(max-width: ${Br-gh}px)`,Ih=`(min-width: ${kN}px) and (max-width: ${vN-gh}px)`,yh=`(max-width: ${kN-gh}px)`;import{textStyleCaseCss as Jte,textStyleCaseOfCss as Qte,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($(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",ere=/^(heading|body)-[1-7]$/;function wa(e){return typeof e=="string"&&ere.test(e)}var wh={heading:"heading-1",heading2:"heading-2",heading3:"heading-3",body:"body-1",label:"body-5"};function ore(e){if(!e)return null;for(let[o,t]of Object.entries(wh))if(t===e)return o;return null}function sC(e){if(wa(e.textStyle))return e.textStyle;let o=aa(e.role);return o?wh[o]:void 0}var tre=[400,500,600,700],Td=["left","center","right","justify"],Qw=5,eC=1e3,rre=-5,are=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}},nre=.05,sre=.01,ire=["line","letter"],lre=.5,cre=2.5,dre=-1,fre=1,pre=0,ure=400,mre=[...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 ms(e,o){return bh(e,Pd,o)}function NN(e,o,t){return Sh(e,Pd,o,hre(t).length?t:null)}function hre(e){return Object.entries(e).filter(([,o])=>o!==void 0)}function xre(e){return ire.includes(e)}var kd=(e,o,t)=>Math.min(t,Math.max(o,e)),gre=["sizeUnit","sizeUnitTablet","sizeUnitPhone"];function oC(e){let o=LN("sizeUnit",e),t=gre.find(r=>r===o);if(!t)throw new Error(`a part stores no unit key ${o}`);return t}var Kt={size:oC("desktop"),sizeTablet:oC("tablet"),sizePhone:oC("mobile"),paragraphSpacing:"paragraphSpacingUnit",padding:"paddingUnit"},DN=Object.values(Kt);function Xr(e,o){return Pe(e[Kt[o]])}function Ire(e,o,t={}){if(DN.includes(e))return aC(o)&&o!=="px"?o:null;if(He(Kt,e)&&Xr(t,e)!=="px"){let r=us(Number(o),2);return!Number.isFinite(r)||r<0||r===0&&e!=="padding"?null:r}if(xre(e)){let r=Math.round(Number(o));return!Number.isFinite(r)||r===0?null:kd(r,rre,are)}if(e==="lineHeight"){let r=Number(o);return Number.isFinite(r)?us(kd(r,lre,cre),3):null}if(e==="letterSpacing"){let r=Number(o);return Number.isFinite(r)?us(kd(r,dre,fre),4):null}if(e==="paragraphSpacing"){let r=Math.round(Number(o));return!Number.isFinite(r)||r<=0?null:kd(r,pre,ure)}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"?aa(o)?o:null:e==="sizeToken"?dC(o)?o:null:e==="textStyle"?wa(o)?o:null:e==="alignPhone"||e==="alignTablet"?Td.includes(o)?o:null:o}var yre=["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 yre){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&&!wa(e.textStyle)&&t("textStyle"),e.sizeToken!==void 0&&!dC(e.sizeToken)&&t("sizeToken"),e.fontRole!==void 0&&!aa(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"&&mre.includes(l);return i(o)&&s(t)&&(r===void 0||i(r))&&(a===void 0||s(a))&&(n===void 0||bre(n,t))}function bre(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 Sre=[["font","role"],["font","fontRole"],["role","textStyle"],["line","lineHeight"],["letter","letterSpacing"]];function wre(e){let o=[];for(let[t,r]of Sre)t===e?o.push(r):r===e&&o.push(t);return o}function hs(e,o,t,r){let a={...ms(e,o)},n=r==null?null:Ire(t,r,a);if(n===null)delete a[t];else{a[t]=n;for(let s of wre(t))delete a[s]}return NN(e,o,a)}function HN(e,o){return NN(e,o,{})}function Cre(e){return Qte(e)??"none"}function vre(e){return Jte(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 kre(e,o){return aa(e.role)||(o?.blockDrawsStyle?null:ore(e.textStyle))}function Ed(e,o){return e==="Text"&&o==="text"}var Tre={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 Pre(e){let o=ci[e],t=$(Tre,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=us(Ere+e.line*nre,3)),typeof e.letterSpacing=="number"?o.letterSpacingEm=e.letterSpacing:e.letter&&(o.letterSpacingEm=us(e.letter*sre,4)),o}var Ere=1,ps="--sf-part-para";function _re(e){e=dl(e);let o={};if(typeof e.sizePhone=="number"&&e.sizePhone>0)o.fontSize=Me(e.sizePhone,Xr(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,Xr(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&&Xr(e,"sizeTablet")!==Xr(e,"size")?e.sizeTablet:sa("textSize",e.size,e.sizeTablet,void 0).tablet;return o&&o>0?o:void 0}function Ore(e){let o=dl(e),t={},r=vh(o);r!==void 0&&(t.fontSize=Me(r,Xr(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 Are(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[Kt.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[Kt.sizePhone]};else{let i=fC(t.sizeToken);i?n={...n,size:void 0,sizeToken:i}:r!==void 0&&(n={...n,size:r,sizeUnit:t[Kt.sizeTablet]})}let s=t.alignPhone??a;return s&&(n={...n,align:s}),n}function pC(e,o,t){return mC(Are(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=kre(e,t),a=_d(e),n=e.size?Me(e.size,Xr(e,"size")):e.sizeToken?MN(e.sizeToken):r?Pre(r):"";return{fontFamily:e.font?Bre(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`:"",[ps]:e.paragraphSpacing?Me(e.paragraphSpacing,Xr(e,"paragraphSpacing")):"",textTransform:vre(e.case),textAlign:e.align??"",paddingTop:_N(e.padding,Xr(e,"padding")),paddingBottom:_N(e.padding,Xr(e,"padding")),color:Rre(e.color),fontStyle:e.italic===!0?"italic":e.italic===!1?"normal":""}}var Rre=e=>Fi(e),_N=(e,o)=>e===void 0?"":Me(e,o),us=(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:Lre(Number.parseInt(e.fontWeight,10)),lineRatio:Number.isFinite(r)?us(r/t,3):1.2,letterEm:Number.isFinite(a)?us(a/t,4):0,align:Fre(e.textAlign),case:Cre(e.textTransform),paddingPx:Number.isFinite(n)?Math.round(n):0}}function Lre(e){return Number.isFinite(e)?tre.reduce((o,t)=>Math.abs(t-e)<Math.abs(o-e)?t:o):400}function Fre(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 Na)if(ON(o(r.cssVar))===t)return r.key;return""}var ON=e=>(e.split(",")[0]??"").replace(/["']/g,"").replace(/\s+/g," ").trim().toLowerCase();function Bre(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($(e,o))??{}}function xC(e,o,t=()=>kh,r=i=>i,a=Mre,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)});wa(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))Hre(l,I,w),w&&(h=!0);if(m||tC.some(I=>p[I]))for(let I of Nre(l,a))for(let w of tC)I.style[w]=p[w]??"";h&&(i+=1)}return i}function Nre(e,o){let t=rn(e.textContent??""),r=[],a=e;for(let n=0;n<Dre&&o(a);n+=1){let s=a.parentElement;if(!s||rn(s.textContent??"")!==t)break;r.push(s),a=s}return r}var Dre=8;function Mre(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={};wa(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=Kt[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 wa(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 Hre(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===ps&&(t?a.setAttribute?.(AN,""):a.removeAttribute?.(AN))}var AN="data-sf-part-para",Th=Object.keys(mC({},kh)),rC=new Set(["color","overflowWrap",ps,"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=Yr(u.key,u.row);for(let m of u.texts){let h=i.get(m);h?(h.keys.add(u.key),h.partKeys.add(p)):i.set(m,{keys:new Set([u.key]),partKeys:new Set([p])})}}let l=new Map;for(let u of new Set([...Object.keys(o),...s])){if(!Wre(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(Yr(u.key,u.row));p&&l.set(u.key,p)}return f.size||l.size?{rules:f,kindRules:l,drawn:new Set(i.keys())}:null}function RN(e,o,t,r,a){let n=mC(t,kh,{blockDrawsStyle:r}),s=Ore(t),i=_re(t),l=wa(t.textStyle)?t.textStyle:void 0;return!Object.values(n).some(Boolean)&&!Object.keys(s).length&&!Object.keys(i).length&&!l&&!a?null:{stamp:$re(e,o),declarations:n,...Object.keys(s).length?{tablet:s}:{},...Object.keys(i).length?{phone:i}:{},...l?{textStyle:l}:{},...a?{motion:a}:{}}}function Wre(e){return e.startsWith("@")}function yC(e,o){return e?.kindRules.get(o)??null}function $re(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])=>`${Ure(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[ps]&&(a.push(`*:has(> ${p}) { ${ps}: ${d[ps]} }`),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(${ps})`,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 Ure=e=>e.replace(/[A-Z]/g,o=>`-${o.toLowerCase()}`);function JN(e,o){if(!e)return null;let t=rn(o),r=e.rules.get(t);if(r)return r;if(t.length<zre||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 zre=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"],xs=(e,o)=>ve(e,o);function vC(e,o,t,r=pi()){return tD("textSize",o,e.sizeTablet,e.sizePhone,r)[t]}var jre=[["lineSpacing","lineHeight","line"],["letterSpacing","letterSpacing","letter"]];function wC(e){for(let[o,t,r]of jre)for(let a of fl)if(e===xs(o,a))return{key:ve(t,a),view:a,spacing:r};return{key:e,view:"desktop",spacing:null}}function Zr(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:Zr(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:Zr(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 Ca(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:Zr({...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=Ca(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=Kre([p],a,n)[0],F=k.values.color;return F===void 0?k:{...k,values:{...k.values,color:Pt(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=Zr({...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:Zr(I)},w)}),u=o.compression;if(d.some(([p,m])=>(m==="lineHeight"||m==="letterSpacing")&&eD.includes(p))&&Nn(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=Zr(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=Nn(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=ve("lineHeight",s),l=r.values[i],d=r.values[ve("letterSpacing",s)];delete a[i],l!==void 0&&(a[xs("lineSpacing",s)]=pl(l*100,1));let f=cD(s,t);d!==void 0&&(a[xs("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 Kre(e,o,t="desktop"){return e.map(r=>{let a=r.values,n={...a};for(let d of fl)delete n[xs("lineSpacing",d)],delete n[xs("letterSpacing",d)];let s={id:r.id,kind:r.kind,name:r.name,values:Zr(n)},i={...s.values},l=o({...s,values:{...s.values}});for(let d of fl){let f=a[xs("lineSpacing",d)],u=a[xs("letterSpacing",d)];if(typeof f=="number"&&(i[ve("lineHeight",d)]=pl(f/100,3)),typeof u=="number"){let p=vC(s.values,l,cD(d,t));i[ve("letterSpacing",d)]=p?pl(u/p,4):0}}return{...s,values:Zr(i)}})}function kHe(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:Nn(e.heading_compression),typography:U_(e)},t=e.text_styles??null,r=Array.isArray(t)?PC(Ca(t,o),o):o;return{fonts:xc(r.fonts),sizes:Ry(r.sizes),compression:Nn(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?Na.find(p=>p.key===r.font)?.cssVar:void 0;if(l&&i.push(`font-family: var(${l})`),r.size!==void 0){let p=r.largestSize!==void 0?Math.min(r.size,r.largestSize):r.size;i.push(`font-size: ${p}px`)}let d=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=Gre(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(...Vre(t,s,a,n))}return o.join(`
4
+ `)}function Vre(e,o,t,r){let a=e.values,n=sa("textSize",a.size,a.sizeTablet,a.sizePhone),s=sa("textSize",a.largestSize,a.largestSizeTablet,a.largestSizePhone),i=sa("same",a.lineHeight,a.lineHeightTablet,a.lineHeightPhone),l=sa("same",a.letterSpacing,a.letterSpacingTablet,a.letterSpacingPhone),d=sa("spacing",a.paragraphSpacing,a.paragraphSpacingTablet,a.paragraphSpacingPhone),f=tD("textSize",a.size,a.sizeTablet,a.sizePhone,pi()),u=Yre[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 Yre={"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 Zr({font:e.font,color:e.color===void 0?void 0:Pt(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:qre(a,t,r),old:o}}function qre(e,o,t){return e.map(r=>r.id===o?kC({...r,values:Zr({...r.values,...t})},r.auto):r)}var xD=["font","color","size","weight","emphasis","lineSpacing","letterSpacing","paragraphSpacing","letterCase","largestSize"],eae=["size","lineSpacing","letterSpacing","letterCase"],oae=500,_C=Na.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=Qre(),[u,p]=Zre(null),m=Ca(e,o),h=Ci(f),I=dD(m,a,h);return Xre(Jre,{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:eae,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=oae),v}})}var yD=["font","size","weight","emphasis"],aae=500;function nae({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 sae(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=nae(e);return ID(rae,{label:c("Emphasis"),children:ID(tae,{style:s,fonts:_C,settings:n?yD.filter(i=>i!=="size"):yD,auto:["size"],fallback:()=>({weight:o??aae}),open:t,onOpenChange:r,onChange:i=>sae(s,i).forEach(a)})})}import{viewKeyAt as kD}from"efficient-easel/draw";import{shownUnitAt as pae,unitKeyOnWrite as uae}from"efficient-easel/screen/lib/content/length-units";import{convertRowLength as iae,rowUnits as lae,unitPickPatch as cae}from"efficient-easel/screen/lib/content/length-units";import{viewKeyAt as dae}from"efficient-easel/draw";var fae=["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:je,tier:"desktop"},siteGutter:{number:"site_gutter",kind:"spacing",grid:lt,tier:"desktop"},siteGutterPhone:{number:"site_gutter_phone",kind:"spacing",grid:xr,tier:"mobile"},blockGap:{number:"block_gap",kind:"gap",grid:Gt,tier:"desktop"},blockGapPhone:{number:"block_gap_phone",kind:"gap",grid:Gt,tier:"mobile"}};function _h(e){return{number:Eh[e].number,unit:u_[`${e}Unit`]}}function SD(e,o,t){let r=Pe(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=Pe(t),l=Pe(r);return i===l?o:iae(o,i,l,s,{kind:a},n)}function wD(e,o,t,r){let{number:a,unit:n}=_h(e),s=cae({[a]:o},i=>Oh(e,i,t,r),n,Pe(r),"px");return{[a]:s[a],[n]:s[n]??null}}function CD(e,o){let{kind:t,grid:r}=Eh[e];return p_(t,Pe(o),r)}function vD(e){return lae({kind:Eh[e].kind},Ia)}function OC(e,o){let t=dae(e,o);if(!fae.includes(t))throw new Error(`no site length row ${t}`);return t}function Od(e,o,t,r,a){let{siteLengthUnits:n,setSiteLengthUnits:s}=fe(),i=`${e}Unit`,l=n[i],d=pae({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=uae(i,l,d,"px",h===null);i in I&&f(I[i]==null?null:Pe(I[i])),r(SD(e,h,d),h===null)},p=h=>{let I=Pe(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 Nae,SliderGroup as Dae,Tabs as Mae,Tooltip as a5e,tabButtonId as Hae,tabPanelId as Wae}from"efficient-shell/ui";import{ContrastIcon as $ae,SettingsIcon as Uae,TypeIcon as zae}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 vae,PaddingTopIcon as kae}from"efficient-easel/icons";import{jsx as Ah}from"react/jsx-runtime";import{SettingsDefaultReset as mae,SettingsField as hae,SettingsSegmented as xae}from"efficient-easel/panel";import{WidthIcon as gae}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(hae,{label:d,labelId:a,icon:Ah(gae,{}),value:i?n:void 0,changed:!i,action:Ah(mae,{words:ce()?.panel,label:d,changed:!i,onReset:()=>t(void 0)}),hint:s,children:Ah(xae,{options:[{label:c(rs.full),id:"full"},{label:c(rs.page),id:"content"}],value:l,ariaLabel:d,onChange:t})})}import{HEADER_TYPE as AC,FOOTER_TYPE as Iae}from"efficient-easel/draw";var yae=new Set(["Hero","HeroSingle","IntroBleed"]),ED={min:56,max:140,default:88},d4e={min:0,max:120,step:2,default:32},f4e=`var(--sf-header-h, ${ED.default}px)`,bae="--sf-header-set-h",p4e="--sf-header-h",u4e=`var(${bae}, ${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||!yae.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===Iae)}var Sae=["auto","shared","own"],LC="auto",wae="topSpace",FD="data-top-space";function Cae(e){return Sae.includes(e)?e:LC}function FC(e,o){let t=Cae(e?.props?.[wae]);return t==="own"?!0:t==="shared"?!1:AD(o)}function BD(e,o){return FC(e,o)?"own":null}function Tae(){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 Pae=[{label:"Auto",value:"auto"},{label:"Shared",value:"shared"},{label:"Its own",value:"own"}],v4e={pageBackground:xB(),topSpace:Ot("Top space",NC(kae,{}),Pae,LC),widthChoice:Tae()},Rd=["pageBackground","topSpace","widthChoice"],Eae="Record type",BC=new Map,ND=-1;function _ae(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=Ot(Eae,NC(vae,{}),[...o.map(a=>({label:a.label,value:a.key})),...t?[{label:t,value:t}]:[]],$t),BC.set(t,r)),r}var DD=new WeakMap;function k4e(e,o){if(!Wc()||cb().length<2||Ou in e)return e;let t=_ae(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 Gae}from"efficient-easel/screen/lib/document/preview-dom";var MD="background";function HD(e){let o=mt(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=Pt(t);return o.find(a=>a.key===r)?.value??r}}import{useEasel as Oae}from"efficient-easel/easel";function Rh({themeFromDocument:e,persist:o}){let{appState:t,dispatch:r}=Oae(T=>T),{fonts:a,setFonts:n,sizes:s,setSizes:i,headingCompression:l,setHeadingCompression:d,headingTypography:f,setHeadingTypography:u,textStyles:p,setTextStyles:m}=fe(),h=t.data,I=h.root?.props??{},w=e?xc(I.fonts):a,S=e?__:s,v=e?Nn(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(Ca(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 jae}from"efficient-easel/screen/lib/document/shadow-values";var MC="sf-site-styles",Kae="sf-site-styles-tabpanel",GD="text",hl="basics",UD="this-page-group",ul=[{id:hl,label:"Basics",icon:Te(Uae,{})},{id:"theme",label:"Theme",icon:Te($ae,{})},{id:"text",label:"Text",icon:Te(zae,{})}];function Vae({themeFromDocument:e,persist:o}){let{appState:t,dispatch:r}=zD(d=>d),{theme:a,setTheme:n}=fe(),s=t.data,i=s.root?.props??{},l=d=>{if(e){let f={...i,theme:d};r({type:"replaceRoot",root:{...s.root,props:f},recordHistory:!0})}else n(d);o({selected_preset:d.selected,theme_presets:d.themes})};return Te(sN,{value:e?i.theme:a,onChange:l})}function Yae({themeFromDocument:e,persist:o}){let[t,r]=HC(null),{theme:a,setFonts:n,setSizes:s,setHeadingTypography:i}=fe(),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??Jae(qae[T.id]??"body")??Xae[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 gs(ml,{children:[Te(gD,{saved:f,old:d,colours:S,colourNameOf:v,sizeOf:I,onChange:w,openId:t===DC?null:t,onOpenChange:r,withoutSize:e}),Te(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",qae={"heading-1":"heading","heading-2":"heading2","heading-3":"heading3","body-1":"body","body-5":"label"},Xae={heading:32,body:14},Zae={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 Jae(e){if(typeof document>"u")return null;let o=(Gae()?.contentDocument??document).querySelector(Zae[e]);if(!o)return null;let t=parseFloat(getComputedStyle(o).fontSize);return Number.isFinite(t)?t:null}function Qae({themeFromDocument:e,persist:o}){let{appState:t,dispatch:r}=zD(p=>p),{cornerRadiusPx:a,setCornerRadiusPx:n}=fe(),s=t.data,i=s.root?.props??{},l=i.cornerRadiusPx===void 0?Zp[Xp(i.cornerStyle)]:Mt(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 Te(iN,{value:d,onChange:p=>{e?(u({cornerRadiusPx:p}),o({corner_radius_px:p})):f.write(p)},...e?{}:{length:f.length}})}function ene({persist:e}){let{siteWidth:o,setSiteWidth:t,sectionBackgroundWidth:r,setSectionBackgroundWidth:a,sectionContentWidth:n,setSectionContentWidth:s}=fe(),i=WC(),l=Od("siteWidth",o??null,t,e);if(i!=="desktop")return null;let d=typeof o=="number"?o:l.shown(je.default),f=l.write,u=m=>{a(m),e({section_background_width:m},!0)},p=m=>{s(m),e({section_content_width:m},!0)};return gs(ml,{children:[Te(hh,{value:r??"full",changed:r!==null,detail:c("Full width"),onChange:u,onReset:()=>u(null),hint:wN}),Te(xh,{mode:n??"content",px:d,min:je.min,max:je.max,changed:typeof o=="number"||n!==null,detail:`${c("Content width")} ${je.default}px`,onMode:p,onPx:m=>f(m),onReset:()=>{p(null),f(null)},hint:CN,length:l.length})]})}function one({persist:e}){let{siteGutter:o,siteGutterPhone:t,setSiteGutter:r,setSiteGutterPhone:a,siteLengthUnits:n}=fe(),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?Te(SN,{value:s.value,onChange:l.write,unsetPx:s.unsetPx,restsOn:l.shown(s.unsetPx),bounds:s.bounds,length:l.length}):null}function tne({persist:e}){let{blockGap:o,blockGapPhone:t,setBlockGap:r,setBlockGapPhone:a,siteLengthUnits:n}=fe(),s=uN(WC(),{gap:o,phone:t}),i=s?.key==="block_gap_phone",l=s?.followsPx==null?null:{figure:s.followsPx,unit:Pe(n.blockGapUnit)},d=Od(OC("blockGap",i?"mobile":"desktop"),s?.value??null,i?a:r,e,l);return s?Te(mN,{value:s.value,onChange:d.write,followsPx:d.rest,followsUnit:d.length.unit,length:d.length}):null}function rne({persist:e}){return gs(ml,{children:[Te(ene,{persist:e}),Te(one,{persist:e}),Te(tne,{persist:e})]})}function ane(e){return{card_shadow:e}}function nne(e){return e===null?{shadow_color:null}:{shadow_color:jae(e)}}function sne(e){return{hover_effect:e}}function ine({persist:e}){let{cardShadow:o,setCardShadow:t,shadowColor:r,setShadowColor:a,hoverEffect:n,setHoverEffect:s}=fe();return gs(ml,{children:[Te(lN,{value:o,onChange:i=>{t(i),e(ane(i),!0)}}),Te(fN,{value:r,onChange:i=>{a(i),e(nne(i),i===null)}}),Te(hN,{value:n,onChange:i=>{s(i),e(sne(i),!0)}})]})}function lne(e){return{photography_grayscale:e}}function cne({persist:e}){let{photographyGrayscale:o,setPhotographyGrayscale:t}=fe();return Te(gN,{value:o,onChange:r=>{t(r),e(lne(r),!0)}})}function dne({persist:e}){return Te(ml,{children:Te(cne,{persist:e})})}function fne(e){return{share_button_on_posts:e}}function pne({persist:e}){let{shareButtonOnPosts:o,setShareButtonOnPosts:t}=fe();return Te(IN,{value:o,onChange:r=>{t(r),e(fne(r),!0)}})}function xl(){let{websiteName:e}=fe();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 gs(Dae,{children:[Te(hne,{activeId:I.id,onSelect:h}),gs("div",{id:Wae(MC,I.id),className:Kae,role:"tabpanel","aria-labelledby":Hae(MC,I.id),children:[m===hl&&gs(ml,{children:[Te(Qae,{themeFromDocument:e,persist:d}),!e&&Te(ine,{persist:d}),!e&&Te(rne,{persist:d}),!e&&Te(dne,{persist:d}),!e&&Te(pne,{persist:d}),Te(une,{reveal:i,onRevealed:l})]}),m==="theme"&&Te(Vae,{themeFromDocument:e,persist:d}),m==="text"&&Te(Yae,{themeFromDocument:e,persist:d})]})]})}function une({reveal:e,onRevealed:o}){let[t,r]=HC(!0),a=Bae(o);return a.current=o,Fae(()=>{if(!e)return;r(!0);let n=requestAnimationFrame(()=>{document.getElementById(UD)?.scrollIntoView({block:"start"}),a.current?.()});return()=>cancelAnimationFrame(n)},[e]),Te(Lae,{title:c("This page"),open:t,onToggle:r,id:UD,children:Te(mne,{})})}function mne(){let{fields:e,values:o,readOnly:t,onChange:r}=Aae(),a=Object.fromEntries(Rd.filter(n=>n in e).map(n=>[n,e[n]]));return Object.keys(a).length===0?Te(Nae,{variant:"none",icon:!1,message:c("This page has no look of its own to set.")}):Te(Rae,{fields:a,values:o,onChange:r,readOnly:t,tabs:!1,idPrefix:"this-page",ariaLabel:c("This page")})}function hne({activeId:e,onSelect:o}){return Te("div",{className:"es-insp-tabs",children:Te(Mae,{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 Ibe}from"efficient-easel/chrome";import{Input as ybe,PopupMenu as bbe,PopupMenuItem as XG,toast as ZG}from"efficient-shell/ui";import{LayersTree as Sbe,TreeGroupLabel as wbe,TreeRow as JG,TreeRowAction as dI}from"efficient-easel/tree";import{AddIcon as Cbe,DuplicateIcon as vbe,PageIcon as kbe,SettingsIcon as Tbe}from"efficient-easel/icons";import{PagesIcon as Pbe}from"efficient-easel/rail";import{useEaselHost as Ebe}from"efficient-easel/screen/lib/host";import{useEaselSession as hP}from"efficient-easel/screen/lib/session-context";import{useCallback as Fh,useEffect as xne,useSyncExternalStore as gne}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,Ine=()=>()=>{};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=gne(o?t:Ine,o?r:VD,VD);xne(()=>{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 yne(e,o){return e?.find(t=>t.slug===o)?.label?.trim()||`/${o}`}function qD(){let{currentSlug:e}=YD(),{rows:o}=Fd();return yne(o,e)}import{canDuplicatePage as _be,DuplicatePageDialog as Obe}from"efficient-easel/page-copy";import{jsx as Bt,jsxs as fP}from"react/jsx-runtime";import{useEffect as Qye,useMemo as ebe,useRef as obe,useState as pP}from"react";import{useScreenDocument as tbe}from"efficient-easel/screen/components/ScreenDocumentContext";import{useEaselSession as rbe}from"efficient-easel/screen/lib/session-context";import{uniqueSlug as zG}from"efficient-easel/page-copy";import{AddIcon as abe}from"efficient-easel/icons";import{Dialog as nbe,EmptyState as sbe,Grid as ibe,SidebarActionButton as lbe,SidebarLayout as cbe,SidebarNavItem as uP,toast as GG}from"efficient-shell/ui";import{jsx as Tr,jsxs as I6}from"react/jsx-runtime";import{useMemo as mme,useState as hme}from"react";import{CanvasFrame as xme}from"efficient-easel/easel";import{Button as gme,FitFrame as Ime}from"efficient-shell/ui";import{jsx as eM,Fragment as Ane,jsxs as Rne}from"react/jsx-runtime";import{useEffect as oM,useLayoutEffect as Lne}from"react";var Dh="data-theme",XD="light";function bne(e){return e.getAttribute(Dh)===XD?"light":"dark"}function Sne(e,o){return bne(e)===o?!1:(o==="light"?e.setAttribute(Dh,XD):e.removeAttribute(Dh),!0)}function wne(e){return Hy(e).getItem(Ey)}function v5e(e,o){Hy(e).setItem(Ey,o)}function Cne(e,o,t=new Date().getHours()){return m_({mode:o.mode,override:wne(e),switchShown:o.switchShown,hour:t})}function ZD(e,o){let t=e.documentElement;if(!t)return()=>{};let r=()=>Sne(t,Cne(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 vne="style";function kne(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=()=>kne(t,o);r();let a=e.defaultView?.MutationObserver;if(!a)return()=>{};let n=new a(r);return n.observe(t,{attributes:!0,attributeFilter:[vne]}),()=>n.disconnect()}import{VIEW_DESKTOP_MIN as Tne,VIEW_TABLET_MIN as Pne}from"efficient-easel/screen/lib/content/view-tiers";var va={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"},Lt=va,Ene=e=>e.flatMap(o=>[`[${o}] p`,`[${o}] li`]).join(","),_ne=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(Ene([Lt.fit,Lt.fitTablet,Lt.fitPhone]))};
11
+ var CANDIDATES = SELECTOR + "," + SHRINK_BODY;
12
+ var MIN_SCALE = 0.3, MIN_PX = 16, SLACK = 1, PHONE_BELOW = ${Br};
13
+ var TABLET_MIN = ${Pne}, DESKTOP_MIN = ${Tne};
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(Lt.fitTablet)}, ${JSON.stringify(Lt.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(Lt.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(Lt.fit)}, ${JSON.stringify(Lt.fitTablet)}, ${JSON.stringify(Lt.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(Lt.min)}, ${JSON.stringify(Lt.minTablet)}, ${JSON.stringify(Lt.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(Lt))},
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);`,One="storefront-fit-words";function QD(e){let o=e.createElement("script");return o.id=One,o.textContent=_ne,(e.head??e.documentElement).appendChild(o),()=>{e.__sfFitWords?.(),o.remove()}}var Fne=`
306
+ [${po}][${po}] { cursor: text; }
307
+ `;function Mh({children:e,document:o}){let{theme:t,themeMode:r,themeSwitchShown:a}=fe(),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]),Lne(()=>{if(o)return QD(o)},[o]),Rne(Ane,{children:[eM(WO,{}),eM("style",{children:Fne}),e]})}import{jsx as S$}from"react/jsx-runtime";import{Render as sue}from"efficient-easel/render";import{jsx as gl}from"react/jsx-runtime";import{createContext as Bne,useContext as Nne,useMemo as Dne}from"react";var UC=Bne(null);function Mne({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 Nne(UC)}function zC(){return Bd()==="below"?{loading:"lazy"}:{}}function $h(e){let o=zC();return gl("img",{...e,...o})}var tM="laterSlideIds",Hne=new Set(["Breadcrumb","CategoryBar","Divider","Spacer","Ticker"]);function rM(e){return Ad(e?.filter(o=>!o?.type||!Hne.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 Dne(()=>{let a=t?e.components[t]:void 0;if(!t||!a)return e;let n=a.render,s=i=>i.id===r?gl(Mne,{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?xo(e,o=>{let t=lo(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=>lo(o,nM))}var Wne="Flex",iM="ListSearch",lM=["FAQ"],$ne="listKey";function cM(e,o){let t={search:e.type===iM,list:lM.includes(String(e.type))};return xo(e,r=>{for(let a of r){let n=cM(a,o);t.search||=n.search,t.list||=n.list}return r}),e.type===Wne&&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=xo(e,n=>lo(n,s=>dM(s,o,r)));return r&&(e.type===iM||lM.includes(String(e.type)))?{...a,props:{...a.props,[$ne]:r}}:a}function fM(e){return ii(e,o=>{let t=new Set;for(let r of o)cM(r,t);return t.size?lo(o,r=>dM(r,t,"")):o})}import{isNode as Oie,isNodeList as U2}from"efficient-easel/data";import{jsx as Ve,Fragment as Iie,jsxs as Ea}from"react/jsx-runtime";import{jsx as mM}from"react/jsx-runtime";import{SITE_SIDE as Une}from"efficient-easel/screen/lib/content/length-units";var pM="sideSpace",Is=Une,Y5e=[{value:"box",label:"Box"},{value:Is,label:"Site"}],q5e="box",X5e="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===Is?Is:"box"}function Z5e(e){return e===Is?Is:void 0}import{isNodeList as zne}from"efficient-easel/data";var GC=new Set(["FAQ"]);function Ft(e,o){if(!GC.has(e))return!1;let t=o.template;return typeof t=="function"?(t.blockCount??0)>0:zne(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??$(xM,e)}var Il=e=>jC(e)??{};var Uh=new Set(["Flex","Text","Heading","ImageBlock"]),Gne=new Set(["Divider"]),jne=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,xa,t),sideSpace:uM(a.sideSpace)}),s=r(a);if(!n)return s;let i=f=>mM(me,{className:f?`${n.className} ${f}`:n.className,style:n.style,children:s}),l=Wa(a,{atSectionLine:!0}),d=Wa(a);return l===d?i(l):mM(su,{line:"by-box",draw:f=>i(f?d:l)})}}var IM={name:"sectionPadding",applies:(e,o,t)=>o.isSection(e)&&!jne.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:jr,unitKey:Qn,fallback:r,tablet:!0,siteSide:!0})};return}if(hM.has(o))return;let a=[jr.top,jr.bottom].filter(n=>e.fields!=null&&n in e.fields);if(a.length)throw new Error(`section-padding: ${o} declares its own ${a.join(" / ")} row; declare \`innerPadding: { top, bottom }\` in its meta and the one Padding row draws on its band`);e.fields={...e.fields,...t.sidesPaddingFields({tablet:!0,siteSide:!0})}},draw(e,o){if(!jC(o,e)){if(hM.has(o)){KC(e);return}Uh.has(o)||Gne.has(o)||KC(e,o==="Flex"?t=>Ab(t.bgImage):GC.has(o)?t=>Ft(o,t):void 0,!0)}}},Kne=["Heading","Text","ImageBlock"],Vne=["LogoBlock"],yM={name:"blockPadding",applies:(e,o,t)=>(Kne.includes(e)||Vne.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 p3e(){return zh(bM)===!0}function u3e(){return zh(bM)!==null}var Yne=VC(!1);function m3e(){return zh(Yne)}function h3e(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 x3e(){return zh(Gh)}import{jsx as ys}from"react/jsx-runtime";import{Component as tse,createContext as rse,lazy as R3e,Suspense as L3e,useContext as ase,useSyncExternalStore as nse}from"react";function qne(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 y3e(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 qne(e,o)?{...Nd}:{}}function b3e(e){return typeof e=="string"?e.trim():""}var S3e="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",Xne="data-sf-box-jump";function Zne(e){return`sf-box-jump-${e}`}function w3e(e,o){return e===!0?zn(o):""}function Jne({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 C3e(e){let o=`[${Xne}="${e}"]`,t=`.${Zne(e)}`,r=`[id="${e}"]:target`;return Jne({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 Qne="hrefRewrite";function ese(){return ai("efficient.link-href-rewrites",()=>({rewrites:new Map,count:0,missed:new Set}))}function ose(){return typeof process<"u"&&!0}function T3e(e){let o=e?.[Qne];return typeof o=="string"?o.trim():""}function CM(e){if(!e)return null;let o=ese(),t=o.rewrites.get(e);return!t&&!ose()&&o.missed.add(e),t??null}var sse={Link:EO,Image:PO},vM=rse(sse);function H3e({runtime:e,children:o}){return ys(vM.Provider,{value:e,children:o})}function XC(){return ase(vM)}function W3e(){return XC().pagePath??null}var ise=()=>()=>{},lse=()=>pu()||null,cse=()=>null;function dse(){return nse(ise,lse,cse)}function bs({hrefRewrite:e,newTab:o,...t}){let{Link:r}=XC(),a=dse(),n=o===!0?{...t,...Nd}:o==="auto"?{...t,...SM(t.href,a)}:t,s=CM(e);return s?ys(qC,{name:s.name,href:n.href,fallback:ys(r,{...n}),children:ys(fse,{Link:r,rewrite:s.rewrite,...n})},s.key):ys(r,{...n})}function fse({Link:e,rewrite:o,...t}){let r=be(o(t.href)),a=r&&Z0(r)?r:t.href;return ys(e,{...t,href:a})}var qC=class extends tse{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 ys(o,{...e})}import{jsx as iie}from"react/jsx-runtime";import{jsx as Re,jsxs as ot,Fragment as rie}from"react/jsx-runtime";import{imageCopyUrl as PM,imageSrcSet as pse}from"efficient-shell/image-copies";var kM;function ZC(){return kM===void 0?{}:{host:kM}}var z3e="(max-width: 800px) 100vw, min(100vw, 1600px)",G3e="(max-width: 960px) 100vw, 50vw";function Ss(e,{fallbackWidth:o=1280,maxWidth:t}={}){let r=pse(e,{...ZC(),...t===void 0?{}:{maxWidth:t}});return r?{src:PM(e,o,ZC()),srcSet:r}:{src:e}}var use=/[\s"'()\\;]/,mse={"\\":"\\\\",'"':'\\"',"\n":"\\a ","\r":"\\d ","\f":"\\c "};function TM(e){return e.replace(/[\\"\n\r\f]/g,o=>mse[o]??o)}function j3e(e){let o=PM(e,1920,ZC());return o===e?use.test(e)?`url("${TM(e)}")`:`url(${e})`:`url("${TM(o)}")`}var Dd="solid",hse=[{label:"Solid",value:"solid"},{label:"Outlined",value:"outlined"}];function EM(e){return go(hse,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"}],xse="line",gse={KeyFeatures:"filled"};function Md(e){return $(gse,e)??QC}function RM(e,o){return go(AM,Md(o),e)}function Z3e(e){return go(AM,xse,e)}import{jsxs as vs,jsx as ao}from"react/jsx-runtime";import{Fragment as dv}from"react";import{Fragment as zse,jsx as iv}from"react/jsx-runtime";import{Fragment as jM,jsx as zd,jsxs as Bse}from"react/jsx-runtime";import{createContext as sv,useContext as Gd,useEffect as Nse,useId as Dse,useMemo as Mse,useRef as Hse}from"react";import{armEntrance as Wse}from"efficient-shell/format";import{jsx as Ise}from"react/jsx-runtime";import{useEffect as FM,useRef as LM,useState as yse}from"react";import{armEntrance as bse,entranceAttrs as Sse,playEntrance as wse}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=Ht(),u=n?f:Ua,p=Hd(l,!0,s),{attrs:m,style:h}=Sse(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&&wse(S);return}return bse(S)}},[w,p,o]),u.scope(Ise("div",{ref:l,className:Jo(`${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]=yse(void 0),n=$a(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"},Cse={TimelineTrack:{"entries.date":$d,"entries.title":$d,"entries.blurb":BM},Footprint:{"offices.city":$d},Stats:{"items.label":$d,"items.value":NM}};function vse(e){let{key:o,row:t}=wr(e);return t?`${o}.${t.rowKey}`:null}function ka(e,o){if(!e)return o;let t=vse(o);return t?$(Cse,e)?.[t]??o:o}import{ENTRANCE_STATE_ATTR as Ose,entranceAttrs as Ase,scrollAttrs as Rse}from"efficient-shell/format";import{parseFocal as Pse,formatFocal as Ese,readScroll as _se}from"efficient-shell/format";import{phoneKey as kse,tabletKey as Tse}from"efficient-easel/screen/lib/content/view-tiers";var ev=[{block:"HeroSlide",upload:"mediaImage",focus:Hn.image},{block:"HeroSlide",upload:"mediaImage2",focus:Hn.image2},{block:"HeroSingle",upload:"mediaImage",focus:Hn.image},{block:"HeroSingle",upload:"mediaImage2",focus:Hn.image2},{block:"ImageBlock",upload:"src",focus:"focal"}],MM=e=>[e,Tse(e),kse(e)],pWe=[...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 zo={effect:"scroll",zoom:"scrollZoom",start:"scrollStart",end:"scrollEnd"},bl="_gScroll",Yh="_cScroll",qh=ou(Object.values(zo));function Ta(e,o){return _se(Tc(e,zo.effect,o),Tc(e,zo.zoom,o),Tc(e,zo.start,o),Tc(e,zo.end,o))}function Sl(e){let o={desktop:Ta(e,"desktop"),tablet:Ta(e,"tablet"),phone:Ta(e,"phone")};return ht.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}=Pse(a);return Ese(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,Dt,ho.duration,ho.delay,...qh];function UM(e){return cl(e,tv)}function ws(e,o){return bh(e,tv,o)}var Lse=new Set([Tt.kind,Dt,zo.effect]);function zM(e,o,t,r){let{[t]:a,...n}=ws(e,o),s=r==null||r===""||r==="none"&&Lse.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}=Ase(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(Ose)}}function Jh(e,o){let{attrs:t,style:r}=Rse(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 Fse=4;function wl(e){let o;for(let t of e)(!o||t.element.compareDocumentPosition(o.element)&Fse)&&(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 Cs="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(`[${Cs}]`).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=Dse(),i=$a(a?"edge":"by-box"),l=JSON.stringify([s,e,o,t,r]),d=Mse(()=>{let u=Object.keys(t).filter(p=>GM(t[p]));return XN(e,o,s,p=>ka(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 Bse(jM,{children:[f&&zd("style",{href:`${$se}${s}-${Use(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(Cs,"")):e.removeAttribute(Cs)}function XM(e){let o=Hse(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 Nse(()=>{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=Wse(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",$se=`${ZM}-`;function Use(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 LWe(e){return yC(Gd(ox),e)}function QM({stamp:e,children:o}){return zd(VM.Provider,{value:e,children:o})}function FWe({children:e}){let o=Gd(ox);return zd(YM.Provider,{value:o,children:e})}function BWe(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(zse,{children:o})}import{jsx as lv,Fragment as Gse}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 Vt(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(Gse,{children:t})}var UWe=e2;function Io(e,o=!1,t){let r=Zse(o),a=vp(e);if(a.length===1){let[s]=a,i=J0(s),l=i?qse(i,s.children):s.children;return vs(jd,{value:e,children:[t,tx(l,r)]})}let n=[];return a.forEach((s,i)=>{if(s.bullet){n.push(ao("span",{"data-sf-bullet":"",className:jse,children:tx(s.children,r)},i));return}if(s.number!=null){n.push(vs("span",{"data-sf-number":s.number,className:Kse,children:[vs("span",{className:Vse,children:[s.number,"."]}),tx(s.children,r)]},i));return}i>0&&!Yse(a[i-1])&&n.push(ao("br",{},`br${i}`)),n.push(ao(dv,{children:tx(s.children,r)},i))}),vs(jd,{value:e,children:[t,n]})}var jse="relative block pl-6 before:absolute before:left-1.5 before:font-bold before:text-accent before:content-['\xB7']",Kse="relative block pl-[2em]",Vse="absolute left-0 w-[1.6em] text-right tabular-nums";function Yse(e){return e.bullet||e.number!=null}var o2="text-accent underline underline-offset-[0.18em]";function qse(e,o){let[t,...r]=o;return t?.kind==="text"?[{kind:"text",text:`${e}${t.text}`},...r]:[{kind:"text",text:e},...o]}function Xse(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(ao("span",{children:Vt(a.text)},n)),r=!0;return}r||t.push(ao("span",{},`e${n}`)),t.push(r2(a,n,o)),r=!1}),r||t.push(ao("span",{},"end")),t}function cv(e,o){return e.length===1&&e[0].kind==="text"?Vt(e[0].text):e.map((t,r)=>t.kind==="text"?ao(dv,{children:Vt(t.text)},r):r2(t,r,o))}function Zse(e){return e?"font-normal italic text-accent":"not-italic text-accent"}function QWe(e){return t2(e)}function t2(e,o){let t=e.split(`
321
+ `);return vs(jd,{value:e,children:[o,t.map((r,a)=>vs(dv,{children:[a>0?ao("br",{}):null,ao("span",{children:r})]},a))]})}function r2(e,o,t){if(e.kind==="link")return jh(e.href)?ao(bs,{newTab:"auto",href:e.href,className:o2,children:cv(e.children,t)},o):ao("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 ao("span",{[q0]:a,children:r},o);switch(e.kind){case"underline":return ao("u",{children:r},o);case"sup":return ao("sup",{children:r},o);case"sub":return ao("sub",{children:r},o);case"color":{let n=Xse(e.color);return n?ao("span",{style:{color:n},children:r},o):ao("span",{children:r},o)}case"accent":case"highlight":return ao("em",{className:t,children:r},o);case"bold":return ao("strong",{className:"font-semibold",children:r},o);case"italic":return ao("em",{className:"italic",children:r},o);case"strike":return ao("s",{className:"line-through",children:r},o);default:return ao("span",{children:r},o)}}function a2(e,o=!0,t=!1){let r=e.split(`
322
+ `);return ao(jd,{value:e,children:r.map((a,n)=>vs("span",{children:[t?t2(a):Io(a,o),n<r.length-1?ao("br",{}):null]},n))})}function n2(e){return e.split(/\n\s*\n/).map(o=>o.trim()).filter(Boolean)}import{jsx as fv,jsxs as Qse}from"react/jsx-runtime";import{jsx as Jse}from"react/jsx-runtime";function s2(){return Jse("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 eie(e,o){return`font-mono text-[length:var(--size-label,${e}px)] uppercase tracking-[0.3em] text-accent`}var oie=`inline-block w-fit bg-accent px-3.5 py-1.5 font-mono ${pv.labelSmall} font-semibold uppercase tracking-[0.16em] text-bg`,tie=`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=Ht(),l=s?i:Ua;if(o==="line")return l.scope(Qse("div",{className:Jo([a,tie,n].filter(Boolean).join(" "),l.className),...l.attrs,children:[fv(s2,{}),fv("span",{children:Io(e)})]}));let d=o==="filled"?oie:eie(t,r);return l.scope(fv("span",{className:Jo([a,d,n].filter(Boolean).join(" "),l.className),...l.attrs,children:Io(e)}))}var Ke={headingMediumUpTo800Small:"max-view-wide:text-[length:min(var(--size-headingMedium,32px),var(--sf-heading-max,9999px))]",headingMediumUpTo800Large:"max-view-wide:text-[length:min(var(--size-headingMedium,36px),var(--sf-heading-max,9999px))]",headingSmallUpTo800:"max-view-wide:text-[length:var(--size-headingSmall,28px)]",headingMedium2:"text-[length:min(var(--size-headingMedium,44px),var(--sf-heading-max,9999px))]",headingMedium3:"text-[length:min(var(--size-headingMedium,56px),var(--sf-heading-max,9999px))]",headingMedium1:"text-[length:var(--sf-heading-max,var(--size-headingMedium,38px))]",bodySmall:"text-[length:var(--size-body,14px)]",bodyLarge:"text-[length:var(--size-body,16px)]",label:"text-[length:var(--size-label,14px)]",shelfLabel:"text-[length:var(--size-label,13px)]",shelfLabelSmall:"text-[length:var(--size-label,12px)]",shelfBody:"text-[length:var(--size-body,13px)]",shelfHeadingUpTo800Xs:"max-view-wide:text-[length:var(--size-headingMedium,28px)]",shelfHeadingUpTo800Small:"max-view-wide:text-[length:var(--size-headingMedium,32px)]",shelfHeadingUpTo800Large:"max-view-wide:text-[length:var(--size-headingMedium,36px)]",shelfHeadingUpTo800Xl:"max-view-wide:text-[length:var(--size-headingMedium,40px)]",shelfHeading1:"text-[length:var(--size-headingMedium,40px)]",shelfHeading2:"text-[length:var(--size-headingMedium,48px)]",shelfHeading3:"text-[length:var(--size-headingMedium,56px)]",shelfHeading4:"text-[length:var(--size-headingMedium,64px)]"},i2=[{value:"para",label:"Paragraph size \u2014 13px",cls:`font-mono font-normal uppercase tracking-[0.22em] ${Ke.shelfLabel}`},{value:"sm",label:"Small \u2014 40px",cls:`font-heading2 font-medium tracking-[-0.03em] ${Ke.shelfHeading1} ${Ke.shelfHeadingUpTo800Xs}`},{value:"md",label:"Medium \u2014 48px",cls:`font-heading2 font-medium tracking-[-0.03em] ${Ke.shelfHeading2} ${Ke.shelfHeadingUpTo800Small}`},{value:"lg",label:"Large \u2014 56px",cls:`font-heading2 font-medium tracking-[-0.03em] ${Ke.shelfHeading3} ${Ke.shelfHeadingUpTo800Large}`},{value:"xl",label:"Extra large \u2014 64px",cls:`font-heading2 font-medium tracking-[-0.03em] ${Ke.shelfHeading4} ${Ke.shelfHeadingUpTo800Xl}`}],aie="lg";function nie(e){return(i2.find(o=>o.value===e)??i2.find(o=>o.value===aie)).cls}var vl=(e,o=!1)=>typeof e=="string"?a2(e,o):e,Pa=(e,o=!1)=>typeof e=="string"?Io(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?ot("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:[ot("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&&Re("span",{className:`font-mono ${Ke.shelfLabel} leading-none uppercase tracking-[0.22em] text-fg-dim`,children:Pa(e)}),o&&Re("h2",{className:`${nie(w)} leading-none text-fg max-view-wide:leading-[1] [&>span]:block`,children:vl(o)})]}),(a||t||S)&&ot("div",{className:"flex items-center gap-5 max-view-wide:gap-3 view-wide:grow view-wide:justify-end",children:[a&&Re("span",{className:`max-w-[340px] truncate font-display ${Ke.shelfBody} leading-[1.4] text-fg-dim max-view-wide:hidden view-wide:w-0 view-wide:grow view-wide:text-right`,children:Pa(a)}),t&&ot(bs,{newTab:"auto",href:t.href,className:`inline-flex items-center gap-2 whitespace-nowrap font-mono ${Ke.shelfLabel} uppercase tracking-[0.2em] text-fg-dim transition-colors hover:text-fg`,children:[Pa(t.text),Re("span",{"aria-hidden":!0,children:"\u2192"})]}),S&&Re("span",{className:`whitespace-nowrap font-mono ${Ke.shelfLabelSmall} uppercase tracking-[0.2em] text-fg-dim`,children:S})]})]}):null;if(l==="editorial"){let P=!!o||!!d;return ot("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"?Re(Cl,{text:e,className:"pb-2"}):Re("span",{className:"pb-2",children:e})),P&&ot("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&&ot(rie,{children:[" ",Re("em",{className:"font-serif font-normal italic text-accent",style:{letterSpacing:f},children:d})]})]}),a&&Re("p",{className:`max-w-[360px] pb-1 text-right font-display ${Ke.bodySmall} leading-[1.5] text-fg-dim max-view-desktop:max-w-full max-view-desktop:text-left`,children:a})]})}if(l==="simple"){let P=`${b} ${h}`.trim();return ot("div",{className:P||void 0,children:[e&&(typeof e=="string"?Re(Cl,{text:e,look:I,className:"mb-4 block"}):Re("span",{className:"mb-4 block",children:e})),o&&Re("h2",{className:`font-heading2 ${Ke.headingMedium2} font-medium uppercase leading-none tracking-[-0.02em] text-fg ${Ke.headingMediumUpTo800Small}`,children:vl(o)})]})}if(l==="statement"){let P=`${b} ${h}`.trim();return ot("div",{className:P||void 0,children:[e&&(typeof e=="string"?Re(Cl,{text:e,look:I,className:"mb-4 block"}):Re("span",{className:"mb-4 block",children:e})),o&&Re("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 ot("div",{className:P,children:[e&&(typeof e=="string"?Re(Cl,{text:e,look:I}):Re("span",{children:e})),o&&Re("h2",{className:`font-heading2 ${Ke.headingMedium2} font-medium leading-[1.05] tracking-[-0.03em] ${Ke.headingMediumUpTo800Small}`,children:vl(o)}),a&&Re("p",{className:`${m??`${Ke.bodyLarge}`} leading-[1.6] opacity-85`,children:a})]})}if(l==="essay"){let P=`${b} ${h}`.trim();return ot("div",{className:P||void 0,children:[e&&(typeof e=="string"?Re(Cl,{text:e,look:I,className:"mb-4 block"}):Re("span",{className:"mb-4 block",children:e})),o&&Re("h2",{className:`font-heading2 ${Ke.headingMedium1} [font-weight:var(--sf-heading-weight,500)] [text-transform:var(--sf-heading-case,uppercase)] [&_em]:[font-weight:var(--sf-heading-weight-strong,inherit)] leading-none tracking-[-0.02em] text-fg ${Ke.headingSmallUpTo800}`,children:vl(o)})]})}let y=!!a||!!t,k=!!o,F=EM(i)==="outlined",T=`font-mono ${Ke.label} uppercase tracking-[0.3em]`,D=null;if(e)if(F)D=Re("span",{className:`${_M} text-fg-dim ${JC}`,children:Pa(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=ot("span",{className:T,children:[Re("span",{className:"text-accent",children:Pa(L)}),C&&Re("span",{className:"text-fg-dim",children:Pa(C)})]})}else D=Re("span",{className:`${T} ${n?"text-accent":"text-fg-dim"}`,children:Pa(e)});return ot("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&&Re("style",{children:OM}),ot("div",{className:"flex flex-col items-start gap-3",children:[r?.src&&Re(lO,{children:Re($h,{...sie(OO(r.src)),alt:r.alt,className:"h-8 w-auto object-contain"})}),D]}),k&&Re("h2",{className:n?"font-heading2 text-[length:min(var(--size-headingMedium,clamp(36px,5vw,64px)),var(--sf-heading-max,9999px))] [font-weight:var(--sf-heading-weight,500)] [text-transform:var(--sf-heading-case,uppercase)] [&_em]:[font-weight:var(--sf-heading-weight-strong,inherit)] leading-[0.95] tracking-[-0.025em]":`font-heading2 ${Ke.headingMedium3} [font-weight:var(--sf-heading-weight,500)] [&_em]:[font-weight:var(--sf-heading-weight-strong,inherit)] leading-none tracking-[-0.03em] whitespace-pre-line ${Ke.headingMediumUpTo800Large} max-view-wide:leading-[1]`,children:vl(o)}),y&&ot("div",{className:"flex flex-col items-end gap-3 max-view-wide:items-start",children:[a&&Re("p",{className:`max-w-[340px] font-display ${Ke.bodySmall} leading-[1.5] text-fg-dim text-right max-view-wide:max-w-full max-view-wide:text-left`,children:Pa(a)}),t&&ot(bs,{newTab:"auto",href:t.href,className:`inline-flex items-center gap-2 whitespace-nowrap font-mono ${Ke.label} uppercase tracking-[0.2em] text-fg-dim transition-colors hover:text-fg`,children:[Pa(t.text),Re("span",{"aria-hidden":!0,children:"\u2192"})]})]})]})}function sie(e){let o=Ss(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 iie(l2,{look:"editorial",num:e,title:o,titleAccent:t,description:r,accentTracking:a,spaceBelow:n,className:s})}import{jsx as Vd,jsxs as mie}from"react/jsx-runtime";import{useEffect as hie,useState as y2}from"react";import{jsx as lie}from"react/jsx-runtime";var d2="sf-photo-hover";function rx({sheet:e,name:o=d2}){return e?lie("style",{href:o,precedence:d2,dangerouslySetInnerHTML:{__html:e}}):null}import{jsx as x2,Fragment as fie}from"react/jsx-runtime";import{createContext as pie,useContext as nx}from"react";var cie=kE["view-desktop"];function die(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 P$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:Br,slot:e.phone},{below:cie,slot:e.tablet}],t=o.filter((r,a)=>r.slot!==(o[a+1]?.slot??e.desktop));return die(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 uie={hasWidth:!1},Kd=pie(uie);function R$e(){return nx(Kd).hasWidth}function L$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(fie,{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||"";hie(()=>{w(!1),v(!1)},[b]);let y=uu(b),k=y&&!S?Ss(b):{src:b},F=!b||I;return mie("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 xie}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",gie=`.${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 xie("style",{children:gie})}var yt={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",yie="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 c6e({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 Ve(me,{as:"section",className:["relative z-[2] border-b border-line bg-bg",b.className].filter(Boolean).join(" "),style:{...b.style,...q1(p,m)},children:Ea("div",{className:dL,children:[u?null:Ve(c2,{num:e,title:o?.trim()?Io(o,!0):void 0,desc:t?.trim()?Io(t,!1):void 0}),r&&!S?Ea(Iie,{children:[Ve(lx,{}),v?Ve(Gh.Provider,{value:{hand:v,ids:r.blockIds??[],boxes:[]},children:Ve(r,{className:`${xv} ${Yd} sf-card grid ${T} gap-[2px] border border-line bg-line${D} [&>*]:bg-bg`,minEmptyHeight:260})}):Ve(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?Ve("div",{className:`${xv} sf-card grid ${T} gap-[2px] border border-line bg-line${D} [&>*]:bg-bg`,children:v?Ve(Gh.Provider,{value:{hand:v,copies:!0},children:w}):w}):null,k.length>0&&Ve("div",{className:`${yie} ${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 Ea("article",{className:P?"flex flex-col bg-bg":"flex min-h-[560px] flex-col bg-bg",children:[Ea("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:[Ve(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}:{}}),Ve("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-0 z-[1]",style:{background:`linear-gradient(180deg, ${ca(.55)} 0%, transparent 30%, transparent 70%, ${ca(.65)} 100%)`}}),P&&Ve("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-x-0 bottom-0 z-[1] h-[78%]",style:{background:`linear-gradient(180deg, transparent 0%, ${ca(.73)} 55%, ${ca(.92)} 100%)`}}),L.tag?.trim()&&Ve("span",{className:`absolute left-5 top-[18px] z-[2] font-mono ${yt.label} uppercase tracking-[0.3em] text-accent`,children:Vt(L.tag)}),L.meta?.trim()&&Ve("span",{className:P?`absolute right-5 top-[18px] z-[2] font-mono ${yt.label} uppercase tracking-[0.24em] text-overlay-fg/80`:`absolute right-5 bottom-[18px] z-[2] font-mono ${yt.label} uppercase tracking-[0.24em] text-overlay-fg/80`,children:Vt(L.meta)}),P&&(L.title?.trim()||L.copy?.trim())&&Ea("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()&&Ve("h3",{className:`flex min-h-[2em] flex-col justify-end font-heading3 ${yt.headingSmall1} font-medium uppercase leading-none tracking-[-0.02em] text-overlay-fg ${yt.headingSmallUpTo700Small}`,children:Io(L.title,!0)}),L.copy?.trim()&&Ve("p",{className:`min-h-[3em] font-display ${yt.bodySmall} leading-[1.5] text-overlay-fg/85`,children:Io(L.copy,!1)})]})]}),P?A.length>0&&Ve("div",{className:"grid grid-cols-2 gap-2 border-t border-line px-8 py-7 max-[700px]:px-6 max-[700px]:py-6",children:A.map((E,R)=>Ea("div",{className:"flex flex-col gap-1",children:[E.label?.trim()&&Ve("span",{className:`font-mono ${yt.labelSmall} uppercase tracking-[0.24em] text-fg-dim`,children:Vt(E.label)}),E.value?.trim()&&Ve("span",{className:`font-display ${yt.bodyLarge} font-medium tracking-[-0.01em] text-fg`,children:Vt(E.value)})]},R))}):Ea("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()&&Ve("h3",{className:`font-heading3 ${yt.headingSmall2} font-medium uppercase leading-none tracking-[-0.02em] ${yt.headingSmallUpTo700Large}`,children:Io(L.title,!0)}),L.copy?.trim()&&Ve("p",{className:`font-display ${yt.bodySmall} leading-[1.55] text-fg-dim`,children:Io(L.copy,!1)}),A.length>0&&Ve("div",{className:"mt-auto grid grid-cols-2 gap-2 border-t border-line pt-4",children:A.map((E,R)=>Ea("div",{className:"flex flex-col gap-1",children:[E.label?.trim()&&Ve("span",{className:`font-mono ${yt.labelSmall} uppercase tracking-[0.24em] text-fg-dim`,children:Vt(E.label)}),E.value?.trim()&&Ve("span",{className:`font-display ${yt.bodyLarge} font-medium tracking-[-0.01em] text-fg`,children:Vt(E.value)})]},R))})]})]},C)})}),s?.text&&Ve("div",{className:"mt-12 flex justify-end border-t border-line pt-8",children:Ea(bs,{newTab:"auto",href:s.href,className:`group inline-flex items-center gap-3.5 border border-line px-6 py-4 font-mono ${yt.labelLarge} uppercase tracking-[0.3em] text-fg transition-colors hover:border-accent hover:text-accent`,children:[Vt(s.text),Ve("span",{"aria-hidden":!0,className:"text-accent transition-transform group-hover:translate-x-[3px]",children:"\u2192"})]})})]})})}var bie=["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},Sie={[C2("muted")]:`var(${C2("fg")})`};function Iv(e){return e?.selected===!0}function yv(e){return e?bie.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:{...Sie}}:{[w2]:t,className:"relative"}:{}}var wie={highlighted:!0},Cie={},cx="badge";function m6e(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 h6e(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?wie:Cie)}}function x6e(e){return{chosen:typeof e.highlightedCard=="string"?e.highlightedCard.trim():"",badge:typeof e.highlightBadge=="string"?e.highlightBadge:""}}function g6e(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 vie,paymentMarks as kie}from"efficient-shell/icons/payment";var Tie=[O0,gp],N2=e=>Tie.includes(e),D2=e=>vie({name:e.label,kind:e.kind}),Pie=(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 kie(e.map(o=>({name:o.label,kind:o.kind}))).map(o=>({label:o.label,kind:e.find(t=>D2(t).some(r=>Pie(r,o)))?.kind??""}))}function S6e(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")}],Eie=yp.Logos,k6e={label:"Logos",drawsPictures:!0,fields:Eie,defaultProps:{items:[],contained:!0}};var _ie=()=>dx().map(e=>({label:e.alt}));function W2(e,o){let t=Ip(e,o,_ie()).rows.filter(r=>r.label);return N2(to(e))?M2(t):t}var Zd="Flex",Aie="Text",Jd=e=>Object.values(e??{}).filter(U2),Rie=e=>e.type===Oo&&to(e.props)!=="",z2=e=>{if(e.type!==Zd)return!1;let o=Jd(e.props).flat();return o.length>0&&o.every(Rie)},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===Aie?!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=>to(e)?Lie(e):bv(e.logos)&&bv(e.items)};function Lie(e){return B0(e)!==null&&W2(e,!1).length===0}function Fie(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 Bie(e){if(!Oie(e)||!fx(e))return e;let o=z2(e)?Fie(e):$(j2,String(e.type))?.(e.props??{})===!0;return{...e,props:{...e.props,[Xd]:o?"empty":!0}}}function $2(e){return xo(e,o=>lo(o,Bie))}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 Nie=e=>$(j2,String(e.type))?.(e.props??{})===!0;function Die(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=>to(a.props)!=="")&&r.every(Nie)}function q2(e){return xo(e,o=>Mie(o))}function Mie(e){let o=!1,t=[];for(let r of e){if(Die(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 Hie=["DocMasthead","AlloyWheelsListing"],ux="titleLevel",Wie=e=>e===2?"h2":"h1",Sv=e=>Wie(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=>Hie.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 Kie}from"efficient-easel/draw";var kl="showFor";function J2(){return ai("efficient.box-show-for-choices",()=>({choices:[],revision:0}))}var $ie=e=>!!e&&typeof e=="object"&&typeof e.slug=="string"&&e.slug.trim()!==""&&typeof e.name=="string"&&e.name.trim()!=="";function G6e(){return J2().choices}function j6e(){return J2().revision}function Q2(e){return $ie(e)?{slug:e.slug,name:e.name}:void 0}import{readHidable as Uie}from"efficient-easel/draw";var wv="_wallLabelId",zie="_wallLabelledBy",Cv=e=>e.props?.id==null?"":String(e.props.id);function Gie(e){if(!e||e.type!=="Text"||!Cv(e))return!1;let o=Uie(e.props?.text);return!o.hidden&&o.text.trim()!==""}var jie=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=lo(e,r=>xo(r,oH)),t=null;for(let r=1;r<o.length;r++){if(!jie(o[r])||!Gie(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],zie,a)}return t??o}function tH(e){return ii(e,oH)}var rH="_cardPressTitles",Vie="_cardPressTitle";function tUe(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 Yie(e){let o=e.props??{};return e.type!=="Text"||Kie(o.text).hidden||typeof o[vt]=="string"||typeof o[wv]=="string"?"":ut(o)}function nH(e,o,t,r){return lo(e,a=>{let n=Yie(a);if(n&&!r.has(n))return r.add(n),t.push({field:n,gates:o}),aH(a,{[Vie]:!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 xo(a,(l,d)=>Fn(a.type,d)?l:nH(l,i,t,r))})}function sH(e){let o,t=xo(e,(r,a)=>{let n=lo(r,sH);if(!Fn(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=>lo(o,sH))}import{pinnedDuplicateIndices as Xle}from"efficient-easel/draw";import{jsx as Yt,jsxs as YH}from"react/jsx-runtime";import{createContext as $le,useContext as Ule,useEffect as zle,useRef as Gle,useState as qH}from"react";import{jsx as nn,jsxs as fH}from"react/jsx-runtime";import{useEffect as Tl,useRef as pH,useState as ks}from"react";import{jsx as lH,Fragment as qie,jsxs as Xie}from"react/jsx-runtime";import{useEffect as Zie,useRef as cH,useState as Jie}from"react";var Qie="#t=0.001",ele=2;function ole(e,o){if(e.readyState<ele||!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]=Jie(!1);return Zie(()=>{let i=r.current,l=a.current;if(n||!i||!l)return;let d=()=>{ole(i,l)&&s(!0)};return d(),i.addEventListener("loadeddata",d),i.addEventListener("seeked",d),()=>{i.removeEventListener("loadeddata",d),i.removeEventListener("seeked",d)}},[n]),Xie(qie,{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}${Qie}`,muted:!0,playsInline:!0,preload:"auto",className:"hidden",onError:t})]})}var tle=.5;function Qd({videoSrc:e,videoAv1Src:o,videoSrcPhone:t,videoAv1SrcPhone:r,posterSrc:a,posterSrcPhone:n,showVideo:s=!0,playbackRate:i=tle,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]=ks(!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]=ks(!1),[W,U]=ks(!1),[Z,V]=ks(!1),[de,Ce]=ks(!1),ee=p??!0,[_e,Oe]=ks(!1),Ee=w!=="first"&&!h,[Fe,No]=ks(!1),qo=pH(null);Tl(()=>{if(!Ee)return;if(document.readyState==="complete"){No(!0);return}let ue=()=>No(!0);return window.addEventListener("load",ue,{once:!0}),()=>window.removeEventListener("load",ue)},[Ee]),Tl(()=>{R(!1),U(!1),V(!1),Ce(!1)},[C,k,F]),Tl(()=>{ee&&Oe(!0)},[ee]),Tl(()=>{let ue=qo.current;ue&&(ee?ue.play()?.catch(()=>{}):ue.pause())},[ee,_e,Fe]),Tl(()=>{if(!m||Ee&&!Fe)return;let ue=()=>v(!0);if(typeof window.requestIdleCallback=="function"){let G=window.requestIdleCallback(ue,{timeout:2e3});return()=>window.cancelIdleCallback(G)}let eo=setTimeout(ue,800);return()=>clearTimeout(eo)},[m,Ee,Fe]),Tl(()=>{let ue=qo.current;if(!ue)return;let eo=()=>{ue.playbackRate=i};return eo(),ue.addEventListener("loadedmetadata",eo),()=>ue.removeEventListener("loadedmetadata",eo)},[C,i]);let Xo=uu(k),Co=k&&(Xo||F)&&!W?Ss(k):{src:k},Do=F&&!W?Ss(F):{src:F},vo=F&&!b&&!S?[{sized:Do,media:vd},...k?[{sized:Co,media:Ic}]:[]]:[];return fH("div",{ref:T,className:"absolute inset-0 z-[1]",children:[nn("div",{className:"absolute inset-0",style:{background:"var(--site-surface)"}}),vo.map(({sized:ue,media:eo})=>nn("link",{rel:"preload",as:"image",href:ue.src,media:eo,fetchPriority:"high",...ue.srcSet?{imageSrcSet:ue.srcSet,imageSizes:"100vw"}:{}},eo)),(k||F)&&(Xo||F?(()=>{let ue=nn("img",{...k?{src:Co.src}:{},...Co.srcSet?{srcSet:Co.srcSet,sizes:"100vw"}:{},alt:"",...b?{loading:"lazy"}:{},...y?{fetchPriority:"high"}:{},className:`absolute inset-0 z-[2] h-full w-full object-cover ${I.className}`.trim(),style:{display:E?"none":"block",objectPosition:l,...I.style},onError:eo=>{eo.currentTarget.currentSrc&&(Co.srcSet||Do.srcSet?U(!0):R(!0))}},F?void 0:k);return F?fH("picture",{children:[nn("source",{media:vd,srcSet:Do.srcSet||Do.src,sizes:"100vw"}),ue]},`${k} ${F}`):ue})():nn(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&&_e&&(!Ee||Fe)&&!Z&&nn("video",{ref:qo,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(ue=>nn("source",{src:ue.src,type:ue.type},ue.src))},C),s&&u&&C&&P!==void 0&&_e&&(!Ee||Fe)&&!de&&(!k||E)&&nn(dH,{src:C,objectPosition:l,onError:()=>Ce(!0)},C)]})}import{jsx as Go,Fragment as kH,jsxs as Ev}from"react/jsx-runtime";import{jsx as Pl}from"react/jsx-runtime";import{useRef as rle}from"react";import{SCROLL_EFFECTS_WITH_ZOOM as ale,scrollAttrs as nle}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=rle(null),u=lu(),p=Ht(),m=n?p:Ua,h=Hd(f,!0,s),{attrs:I,style:w}=nle(e[h],o[h]),S=ale.includes(e[h].effect),v=Jo(`${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 Ts=["media","image","image2"],_a={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":_a[e]}var OUe="Video file",AUe="Upload a video file",RUe="AV1 file",LUe="Upload an AV1 file";function sle(e,o){return Sc("mediaType",Mn,o,[e])}var ile=new Set(Object.keys(Rc)),uH="heroPart";function lle(e,o){return{...o,[uH]:e}}function FUe(e,{parts:o={},onlyFor:t,fallback:r,rules:a}){let n={...e},s=[...Object.values(o).flat(),...Mn.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 Mn)for(let l of t[i])n[l]=co(n[l],sle(i,r));for(let[i,l]of Object.entries(a??{}))l&&(n[i]=co(n[i],l));for(let i of Ts)for(let l of o[i]??[])n[l]=lle(i,n[l]);return n}function cle(e){let o=e?.[uH];return Ts.includes(o)?o:null}function mH(e,o){let t={};for(let[r,a]of Object.entries(e))cle(a)===o&&(t[r]=a);return t}function hH(e){if(!ile.has(e.type))return[];let o=[{part:"media",label:_a.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 Ps(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 Ts.includes(t)?{nodeId:e.slice(0,o),part:t}:null}var of="data-sf-hero-part";import{MOTION_TIMING as dle}from"efficient-shell/format";var yH="grayscale(1) contrast(1.03)",MUe="Black and white";function fle(e){return e===!0?{filter:yH}:{}}function ple(e){let{filter:o}=fle(e);return o?{style:{filter:o}}:{}}var Es="sf-photo-grayscale",Pv="data-sf-photo-host",xH={duration:"--sf-photo-hover-duration",delay:"--sf-photo-hover-delay"},bx=`@media (hover:hover){.${Es}{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))}.${Es}:hover,[data-sf-photo-host]:hover .${Es}{filter:none}}@media (hover:hover) and (prefers-reduced-motion:reduce){.${Es}{transition:none}}`;function bH(e){let o=dle.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 ple(!0);if(t?.kind==="mono"){let r=bH(t);return{className:Es,sheet:bx,...r?{style:r}:{}}}return e===!1?{}:o===!0?{className:Es}:{}}var wH="data-sf-repeat",vv="sf-photo-zoom",ule="--sf-photo-zoom",HUe="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))`,mle=`.${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(${ule}))}}@media (hover:hover) and (prefers-reduced-motion:reduce){.${gx},.${tf}{transition:none}}`,WUe="sf-photo-move";function $Ue(e){if(!e||!e.zoom&&!e.darken)return null;let o=bH(e);return{className:yx,sheet:mle,...o?{style:o}:{}}}function vH(e){return e===!0?{[Es]:bx}:{}}var Ix="sf-box-reveal",UUe="sf-box-reveal",hle=8,IH=.3,zUe=`@media ${Ic}{.${Ix}{opacity:0;transform:translateY(${hle}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 xle}from"efficient-easel/draw";var gle={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"},Ile={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(xle(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(ws({_partMotion:e},o))}function af(e,o){return Sl(ws({_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?Go(Vh,{views:e,editing:r,boxClass:a,boxAttrs:n,...s?{boxStyle:s}:{},children:l}):o?Go(mx,{views:o,...t?{origins:t}:{},boxClass:a,boxAttrs:n,...s?{boxStyle:s}:{},...i?{zoomLayerClass:i}:{},children:l}):Go("div",{className:a,...n,...s?{style:s}:{},children:l})}function El(e,o){return SH(void 0,void 0,wE(ws({_partMotion:e},o)))}function _H(e){return Ts.some(o=>El(e,o).className)?{hostAttrs:{[Pv]:""},sheet:bx}:{}}function wx({treatment:e,children:o}){return e.className?Go("div",{className:`absolute inset-0 ${e.className}`,...e.style?{style:e.style}:{},children:o}):Go(kH,{children:o})}function Cx({color:e,opacity:o,passClicks:t=!0}){return o>0?Go("div",{className:t?"pointer-events-none absolute inset-0 z-[2]":"absolute inset-0 z-[2]",style:{background:e,opacity:Math.min(Math.max(o,0),100)/100}}):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 Go(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=Go(au,{fill:_c,children:t}),i=n.className?Go("div",{className:`absolute inset-0 z-[1] ${n.className}`,...n.style?{style:n.style}:{},children:s}):s;return r||a?Go(EH,{entrance:r,scroll:a,editing:o,className:"absolute inset-0 z-[1]",zoomLayerClass:PH,children:i}):Go(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 ${gle[o]} ${Ile[e]}`,"data-hero-layout":e,"data-hero-layout-phone":o,children:[Go(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:[Go(Qd,{posterSrc:Wt(n.src),showVideo:!1,laterSlide:i,objectPosition:n.objectPosition,objectPositionPhone:n.objectPositionPhone,objectPositionTablet:n.objectPositionTablet}),Go(Cx,{color:n.tintColor,opacity:n.tintOpacity})]})}),Go(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:[Go(Qd,{posterSrc:Wt(s.src),showVideo:!1,laterSlide:i,objectPosition:s.objectPosition,objectPositionPhone:s.objectPositionPhone,objectPositionTablet:s.objectPositionTablet}),Go(Cx,{color:s.tintColor,opacity:s.tintOpacity})]})})]})}import{jsx as sn,Fragment as yle,jsxs as ble}from"react/jsx-runtime";import{useEffect as Sle,useRef as wle,useState as Cle}from"react";import{PlaySolidIcon as vle}from"efficient-shell/icons/efficient-looks";function RH({youTubeId:e,ownPoster:o,background:t,editing:r}){let[a,n]=Cle("large");return Sle(()=>n("large"),[e]),e?ble(yle,{children:[!o&&a!=="none"&&sn($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&&sn("div",{className:"pointer-events-none absolute inset-0 z-[3] overflow-hidden [container-type:size]","aria-hidden":"true",children:sn("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=wle(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?sn("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"}):sn("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=>sn("source",{src:p.src,type:p.type},p.src))},f.video):sn("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:sn(vle,{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",kle={top:"Top",middle:"Middle",bottom:"Bottom"},Tle={left:"Left",center:"Center",right:"Right"},Ize="Up and down",yze="Sideways",Ple={top:"flex-start",middle:"center",bottom:"flex-end"},Ele={left:"flex-start",center:"center",right:"flex-end"},_le="--sf-hero-phone-y",Ole="--sf-hero-phone-x";function Ale(e){return BH.includes(e)?e:DH}function Rle(e){return NH.includes(e)?e:MH}function HH(e,o){let t=Ale(e),r=Rle(o),a={};return t!==DH&&(a[_le]=Ple[t]),r!==MH&&(a[Ole]=Ele[r]),a}function bze(){return BH.map(e=>({label:kle[e],value:e}))}function Sze(){return NH.map(e=>({label:Tle[e],value:e}))}import{hexToRgb as Lle}from"efficient-shell/format";var Fle=!0;var Ble=[[0,".5"],[30,".1"],[60,".1"],[100,".85"]];function WH(e){let o=Lle(e);return o?`${o.r},${o.g},${o.b}`:null}function $H(e){return e==null?Fle:e!==!1}function UH(e){let o=(e?WH(e):null)??WH(mr);return`linear-gradient(180deg, ${Ble.map(([t,r])=>`rgba(${o},${r}) ${t}%`).join(", ")})`}import{hexToRgb as zH}from"efficient-shell/format";var GH="bottom";var Nle=[{label:"Bottom",value:"bottom",cell:"bottom"},{label:"Top",value:"top",cell:"top"},{label:"Left",value:"left",cell:"left"},{label:"Right",value:"right",cell:"right"}],Dle={bottom:180,top:0,left:270,right:90},Mle=[[.55,0],[.15,18],[null,35],[null,55],[.85,100]],Hle=[[null,33],[.6,67],[.94,100]];function Wle(e,o){let{r:t,g:r,b:a}=zH(e)??zH(mr);return`rgba(${t},${r},${a},${o})`}function jH(e){return go(Nle,GH,e)}function KH(e=mr,o=GH){let t=jH(o),r=(t==="top"||t==="bottom"?Mle:Hle).map(([a,n])=>`${a===null?"transparent":Wle(e,a)} ${n}%`);return`linear-gradient(${Dle[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 jle=$le({});function Vze({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:U,laterSlide:Z=!1}){let V=Ht(),{alignment:de="left",textureOpacity:Ce,textureOn:ee,textureColor:_e,quietVideo:Oe,phoneUpDown:Ee,phoneSideways:Fe,holdReel:No,reelHeld:qo,shownSlide:Xo,ratioMin:Co}=Ule(jle),Do=Bd(),vo=Z&&Do==="first",ue=Gle(null),[eo,G]=qH(Xo===void 0?void 0:!1);zle(()=>{let vn=ue.current;G(Xo===void 0||!vn?void 0:FH(vn.closest(".hero-track"),"data-slide-name")[Xo]===vn)});let Ae=t==="video",le=Ae?Wt(r):void 0,io=Ae?Wt(n):Wt(r)??Wt(n),oo=Ae?{av1:Wt(s),phone:Wt(i),av1Phone:Wt(l),poster:Wt(d)}:{},rt=typeof a=="number"?a/100:1,{fromYouTube:Xe,onClick:Mo,youTubeId:Lr,backgroundFile:dt,desktopLayout:VI,phoneLayout:dc,twoPictures:ti}=TH({isVideo:Ae,videoSource:E,videoPlayback:W,youtubeUrl:R,mediaLayout:k,mediaLayoutPhone:F}),[ri,ta]=qH(!1);ri&&qo===!1&&ta(!1);let Fa=!ri,wn=VH({overlayColor:b,overlayPosition:y},_e),fc=Ae?null:rf(U,"image"),Cn=Ae?null:af(U,"image"),hp=_H(U),pc=Yt(wx,{treatment:Ae?{}:El(U,"image"),children:Yt(Qd,{videoSrc:dt?le:void 0,videoAv1Src:dt?oo.av1:void 0,videoSrcPhone:dt?oo.phone:void 0,videoAv1SrcPhone:dt?oo.av1Phone:void 0,posterSrc:io,posterSrcPhone:oo.poster,showVideo:dt,playbackRate:rt,objectPosition:f,objectPositionPhone:Ae?void 0:u,objectPositionTablet:Ae?void 0:p,quiet:Oe,slideShown:eo,laterSlide:Z,laterOfLead:vo})}),xp=YH("section",{ref:ue,className:Jo(`${Co?"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":dt&&le?"video":"still",...hp.hostAttrs,children:[Yt(rx,{sheet:hp.sheet}),Yt(OH,{partMotion:U,editing:w,children:ti?Yt(AH,{laterSlide:Z,desktopLayout:VI,phoneLayout:dc,editing:w,partMotion:U,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}}):Xe||fc||Cn?YH(vx,{part:Ae?"media":"image",editing:w,entrance:fc,scroll:Cn,origins:Sx({objectPosition:f,objectPositionTablet:p,objectPositionPhone:u}),className:"absolute inset-0 z-[1]",children:[pc,Xe&&Yt(RH,{youTubeId:Lr,ownPoster:!!io,background:!Mo,editing:w})]}):pc}),Mo&&Yt(LH,{youTubeId:Lr,fileSrc:Xe?void 0:le,fileAv1Src:Xe?void 0:oo.av1,fileSrcPhone:Xe?void 0:oo.phone,fileAv1SrcPhone:Xe?void 0:oo.av1Phone,playing:ri,onPlay:()=>{ta(!0),No?.()},editing:w}),Fa&&!ti&&Yt(Cx,{color:m,opacity:h,passClicks:!1}),Fa&&$H(ee)&&Yt("div",{className:"absolute inset-0 z-[2]",style:{background:wn.own?KH(wn.color,wn.position??void 0):UH(wn.color),...Ce!==void 0?{opacity:Ce/100}:null}}),Fa&&Yt("div",{className:[Co?"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(Ee,Fe)},children:I&&Yt(I,{className:"sf-hero-group-zone",minEmptyHeight:160})})]});return V.scope(vo?Yt(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 Vle}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:Da()},{type:"Text"}]}}]}}),ZH=()=>Array.from({length:_v},Ov);var JH=["","","","","",""],QH="#ticker",nf="strip",Av={sectionAccent:Hr,line:!1};function Kle(e){return(Array.isArray(e.tickerItems)?e.tickerItems:[]).map(o=>typeof o?.text=="string"?o.text:"").filter(o=>o.trim()!=="")}function Rv(e){return Kle(e).length>0}function eGe(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,Vle(r)?r.map(a=>t4(a,o)):r]))}}),Yle=e=>{let[o]=Nr([Ov()],a=>o4(a)),{id:t,...r}=t4(o,e).props;return r},qt={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},()=>Yle(e)),skipSeed:e=>Array.isArray(e.steps)&&e.steps.length>0}},e4=1,qle={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]:qle}};function pGe(e){for(let[o,t]of Object.entries(e)){if(He(qt,o)&&$(qt,o)!==t)throw new Error(`lib/document/slot-specs: "${o}" already has a slot spec`);qt[o]=t}}function uGe(e,o){let t=$(qt,e);return t?{slot:t.slot,children:t.seeds(o).map(r=>({type:t.childType,props:{id:o4(t.childType),...r}}))}:null}var Zle=["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||!Zle.includes(i))return s;let l=$(qt,i);if(!l?.legacy)return s;let d=s.props??{},f=d[l.slot];if(Array.isArray(f)&&f.length>0)return s;let u=l.legacy(d);if(!u.length)return s;t=!0;let p=String(d.id??i),m=u.map((h,I)=>({type:l.childType,props:{id:`${l.childType}-${p}-${I}`,...h}}));return{...s,props:{...d,[l.slot]:m}}}),a=new Set(Xle(r)),n=a.size?r.filter((s,i)=>!a.has(i)):r;return a.size&&(t=!0),t?{...e,content:n}:e}var Jle={"Logos.logosPerRow":"columns","HeroSlide.tintOpacity":"overlay","Split.textBgTint":"overlay"},Qle={"Footprint.source":"typed"};function n4(e){let o=e.props,t=!1;if(e.type&&o)for(let[r,a]of Object.entries(Jle)){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(Qle)){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&&!to(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=xo({props:o},a=>lo(a,n4));r.props!==o&&(o=r.props,t=!0)}return t?{...e,props:o}:e}function s4(e){return bp(e,o=>lo(o,n4))}import{readHidable as oce}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 CGe(e){return ece[sf(e)]}var ece={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 Jr=Y,Qr=De;function _s(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 tce(e,o){return o===0?`${e}~box`:`${e}~box-${o+1}`}var l4=new Set(["id"]),ln={},lf=[],rce={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:[]},ace=Object.keys(rce),Os=["Breadcrumb","DocBody","Form","SubmitBuild","Footprint","FAQ","ContactLocations","ProcessSteps",...ace,"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(ln,o)&&$(ln,o)!==t)throw new Error(`lib/sections/section-to-box: "${o}" already has a row`);ln[o]=t}}function cn(e){return $(ln,e)}function nce(e){return He(ln,e)&&lf.includes(e)}function c4(e,o=Os){return He(ln,e)&&(o.includes(e)||nce(e))}function FGe(e){let o=$(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=>oce(e),no=e=>Lv(e).text.trim()!=="";function sce(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 ice=e=>e==="heading"?Da():e==="eyebrow"?la():{};function lce(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 cce(e,o){if(e===void 0)return{};if(typeof e=="string")return{variant:e};let t=o[e.key];return{variant:(typeof t=="string"?$(e.map,t):void 0)??e.fallback}}function 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 dce(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 fce(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 pce(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 uce(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 mce(e,o,t){if(!t.press)for(let r of uce(e)){let a=pce(o,r);if(a!==void 0)return a}}function As(e,o,t={}){let r=e.props,a=(o.ownBoxConverts?void 0:fce(r))??mce(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=dce(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=>Nr(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 U=R??{},Z=y.item?.(U,W,r)??{},V=S(Z.reverse?[...y.parts].reverse():y.parts,U,!1,`item ${W+1}: `);return y.flat?Z.props?V.map(de=>({...de,props:{...de.props,...Z.props,id:de.props.id}})):V:[m(Jr,{name:`${y.name} ${W+1}`,...D,...Z.props??{},[Qr]: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,U)=>{let Z=W.items.map(Oe=>Oe.item),V=R.parts?S(R.parts,R.head?.(Z,r)??{},!1,`group ${U+1}: `):[],de=W.items.map(Oe=>P[Oe.index]),Ce=R.perRow?.(Z.length,r),ee=Number.isInteger(Ce)&&Ce>=1?Ce:1,_e=[];if(R.perRow&&ee<de.length)for(let Oe=0;Oe*ee<de.length;Oe++)_e.push(de.slice(Oe*ee,(Oe+1)*ee).flat());return m(Jr,{name:`${R.name} ${U+1}`,...R.props??{},[Qr]:[...V,m(Jr,{name:`${R.itemsName} ${U+1}`,...R.itemsProps?.(Z.length,r)??{},[Qr]:_e.length?_e.map((Oe,Ee)=>m(Jr,{name:`${R.rowName??`${R.itemsName} row`} ${Ee+1}`,...R.rowProps??{},[Qr]:Oe})):de.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(),U=y.rowFiller?C-P.slice(R*C,(R+1)*C).length:0;E.push(m(Jr,{name:`${y.rowName??`${y.name} row`} ${R+1}`,...A,[Qr]:[...W,...Array.from({length:U},(Z,V)=>m(Jr,{name:`Empty ${V+1}`,...y.rowFiller,[Qr]:[]}))]}))}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=ice(C.role??"body"),{_partStyles:R,...W}=E,U=lce(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"?sce(A.text):C.mark==="accentItalic"?gc(A.text):A.text,...W,...C.props??{},...U,...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??{},...cce(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(Jr,{name:C.name,...E,[Qr]: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(U=>!u.has(U)&&!(U in E)):C.keep;for(let U of R)k[U]!==void 0&&(E[U]=k[U],P(U,`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 U=Object.fromEntries(Object.entries(f).filter(([Z])=>!u.has(Z)));Object.keys(U).length&&(E._partStyles=U)}for(let[U,Z]of Object.entries(C.rename??{}))k[U]!==void 0&&(E[Z]=k[U],P(U,`the ${A} block inside the Box: ${Z}`));if(C.derive){Object.assign(E,C.derive.props(k,t));for(let U of C.derive.reads)k[U]!==void 0&&P(U,`the ${A} block inside the Box`)}let W=typeof C.slots=="function"?C.slots(k,t):C.slots??{};for(let[U,Z]of Object.entries(W))E[U]=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:Jr,props:{name:y.name,...P,[Qr]:T,id:tce(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)?$(ln,s.type):void 0;if(!i)return[s];let l=As(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)?$(ln,a.type):void 0;if(!s)return;let i=As(a,s,t);i.skipped===void 0&&r.push({index:n,node:i.node,nodes:i.nodes})}),r}import{BLOCK_FIXED_WIDTH as hce,BLOCK_SIZE_KEYS as xce,parseBlockWidthFit as Px,phoneKey as p4,parseTextFit as Tx,tabletKey as u4,viewKeyAt as m4}from"efficient-easel/draw";import{sideLengthAt as gce}from"efficient-easel/screen/lib/content/length-units";var Ice="sf-block-size",cf=["width","minWidth","maxWidth"],Ex=e=>`${e}Unit`,dn=e=>typeof e=="number"&&Number.isFinite(e)&&e>=0?e:void 0,yce={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"}},bce={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"}},Sce={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 wce={desktop:"--sf-bw",tablet:"--sf-bw-t",phone:"--sf-bw-p"},Cce={fill:"data-sf-width-fill",fixed:"data-sf-width-fixed"},vce="data-sf-min-width",h4={two:{desktop:"wide",phone:My.phone},three:My},kce={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)]"]}},Tce={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)]"]}},Pce=["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!"},Ece={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"},_ce={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=>Sce[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[Cce[d]]=s[d].join(" "));return s.min.length&&(l[vce]=s.min.join(" ")),l}function _x(e){let o=Pce.some(a=>{let n=e[a]?.tablet;return a==="widthFit"?Px(n)!==void 0:dn(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,da(l))]=dn(e[a]?.[l]),s[m4(n,da(l))]=e.units?.[a]?.[l];let i=l=>gce(s,{length:a},n,da(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?bce:I4,n=r?Tce:Bv,s=r?Ece: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]:yce[A][E]),E==="fixed"&&(l[wce[A]]=Me(h[A]?.value??hce.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[U,Z]=f?n[A][R]:kce[A][R];l[U]=Me(W.value,W.unit),i.push(Z)}}let I=Tx(e.textFit?.desktop),w=Tx(e.textFit?.phone),S=A=>{let E=dn(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=dn(e.maxWidth?.desktop),P=dn(e.maxWidth?.tablet)??D,L={desktop:D!==void 0,tablet:P!==void 0,phone:(dn(e.maxWidth?.phone)??P)!==void 0},C=(A,E,R)=>{if(E!=="line"&&E!=="ellipsis")return;let W=A==="tablet"?void 0:A,U=(Z,V)=>R||!W?Z[A]:V[W];if(E==="line"){i.push(U(s,x4));return}if(i.push(U(Nv,x4)),i.push(U(_ce,S4)),f&&!R&&A==="desktop")for(let Z of["desktop","tablet"])L[Z]||i.push(g4[Z]);else L[A]||i.push(U(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[va.fit]=I),k&&(d[va.fitTablet]=k),w&&(d[va.fitPhone]=w),v!==void 0&&(d[va.min]=v),T!==void 0&&(d[va.minTablet]=T),b!==void 0&&(d[va.minPhone]=b),!r&&(k||T!==void 0)&&(d[va.edge]=""),i.length===0&&Object.keys(d).length===0?null:{className:[Ice,...i].join(" "),style:l,attrs:d}}function $Ge(e){if(dn(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"||dn(e.minWidth?.[o])!==void 0})}function Ox(e){let o={};for(let t of xce){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 Oce}from"efficient-shell/format";import{convertLength as Ace}from"efficient-easel/screen/lib/content/length-units";var ea=(e,o,t,r)=>o===t?e:Ace(e,o,t,r,{min:0,max:200,step:4}),Rs={textFit:"line",textFitPhone:"wrap"},Ls={...j,[vt]:""},{label:gje,href:Ije,...Rce}=T4.defaultProps,Ro=Rce,Fs={buttonFillOpacity:0,buttonBorder:{width:0},buttonPaddingTop:0,buttonPaddingRight:0,buttonPaddingBottom:0,buttonPaddingLeft:0},Q={...xy,sectionAccent:0},Ol={sectionAccent:-1},re=[...Ga,"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",oe={sectionSurface:"read by nothing in src/ (searched 2026-10-24): a retired theme key that draws nothing today, so dropping it changes nothing",widthMode:_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=Pe(e.sectionPaddingUnit),i=Pe(e.sectionPaddingUnitTablet),l=Pe(e.sectionPaddingUnitPhone),d=(u,p,m,h)=>{let I=q(u);if(I!==void 0)return I+ea(h,"px",l,"mobile");let w=p===void 0?{n:m,unit:s}:{n:p,unit:i};return ea(w.n,w.unit,l,"mobile")+ea(h,"px",l,"mobile")},f=(u,p,m,h,I)=>p!==void 0?{[u]:p+ea(I??h,"px",i,"tablet")}:I===void 0?{}:{[u]:ea(m,s,i,"tablet")+ea(I,"px",i,"tablet")};return{sectionPaddingTop:t+ea(o.top,"px",s,"desktop"),sectionPaddingBottom:r+ea(o.bottom,"px",s,"desktop"),...f("sectionPaddingTopTablet",a,t,o.top,o.topTablet),...f("sectionPaddingBottomTablet",n,r,o.bottom,o.bottomTablet),sectionPaddingTopPhone:d(e.sectionPaddingTopPhone,a,t,o.topPhone),sectionPaddingBottomPhone:d(e.sectionPaddingBottomPhone,n,r,o.bottomPhone)}}var ge=e=>[...["sectionPaddingTop","sectionPaddingBottom","sectionPaddingTopTablet","sectionPaddingBottomTablet","sectionPaddingTopPhone","sectionPaddingBottomPhone"].map(o=>[o,o,(t,r)=>ie(r,typeof e=="function"?e(r):e)[o]]),["sectionPaddingUnit","sectionPaddingUnit"],["sectionPaddingUnitTablet","sectionPaddingUnitTablet"],["sectionPaddingUnitPhone","sectionPaddingUnitPhone"]];function Xt(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 fn=e=>[...yS.map(([o,t])=>[o,t,(r,a)=>Xt(a,e)[t]]),["sectionPaddingTop","sectionPaddingTop",(o,t)=>Xt(t,e).sectionPaddingTop],["sectionPaddingBottom","sectionPaddingBottom",(o,t)=>Xt(t,e).sectionPaddingBottom]],Lce={kind:"heading-case-upper",styles:["heading-1","heading-2","heading-3"]},yje=e=>o=>no(o.props[e])?[Lce]:[],Ie=(e,o)=>({kind:"text",key:e,role:"eyebrow",props:j,...o?{style:o}:{}}),Al=e=>({kind:"group",name:"Chip",props:{...N,...ia("main"),...Zo(6,14)},parts:[Ie(e,{color:"background",...z("label",12),weight:600,letterSpacing:.16})]}),P4=e=>e.background!=="transparent",Fce=(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"},Bce=(e,o,t)=>{let r=a=>Fce(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={})=>Bce(e,o,{...Ls,...df,...r,_partStyles:{text:{...ft,color:"labels",...t,case:ft.case,...df}}}),Rl=(e,o)=>typeof e=="number"&&Number.isInteger(e)&&e>=0?e:_s(o)?.selected??0,E4="var(--site-surface-2)",Ax=(e,o)=>_s(o)?.themes[Rl(e.sectionAccent??0,o)],bt=(e,o)=>(t,r)=>{if(!o?.(t,r))return ia(e);let a=Ax(t,r)?.[e];return a?{fillColor:a}:{}},Rx=(e,o)=>pn(e,o)>=0,_4=e=>e.startsWith("#")&&Oce(e)!==null,Lx=(e,o,t)=>{let r=e?.trim();if(r&&_4(r))return{fillColor:r};let a=Pb(r);if(a)return ia(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===Qo||Pb(o)||o===E4||_4(o)?void 0:"it paints a colour that no Box Fill can hold"},pn=(e,o)=>{let t=_s(o)?.themes;return t&&P4(e)?T_(t,Rl(e.sectionAccent,o)):-1},un=(e,o,t)=>{let r=pn(o,t);return r>=0?r:e},Ll=(e,o)=>{let t=_s(o)?.themes,r=t?P_(t,Rl(e,o)):-1;return r>=0?r:e},Bs=(e,o)=>{let t=pn(e,o);return t>=0?{sectionAccent:t}:{}},mn=(e,o)=>P4(e.props)&&pn(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=da(o),d=(u,p,m)=>{let h=Pe(p),I=Kp(u,h,"spacing",m);return I===null?null:ea(I,h,"px",l)},f=o==="desktop"?d(a,n,lt)??gm(a):d(s,i,xr)??Im(s)??ym(a,n);return ea(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,...bt("surface")(a,n),...typeof t=="function"?t(a,n):t}),box:[[o,"bgImage"],ho.kind,ho.duration,ho.delay],parts:r});import{phoneKey as Jv,readHidable as Qv}from"efficient-easel/draw";import{isNodeList as rde,newId as ade}from"efficient-easel/data";function O4(e){return Math.min(4,Math.max(2,e??3))}var Cje={eyebrow:"Label",title:"Section *heading.*"},Nce=yp.Cards,A4={label:"Cards",fields:Nce,defaultProps:{eyebrow:"",title:"",items:[],columns:3}};var Tje={eyebrow:"Highlight",title:"Key *features.*"},Pje=()=>[{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 Oje(e){return e[Hv]==="top-line"?"top-line":""}var Aje="absolute left-5 top-0 z-10 -translate-y-1/2 bg-bg px-2",Rje="data-sf-top-line",Dce=new Set(["Cards",Oo]);function Lje(e){return typeof e=="string"&&Dce.has(e)}var Mce=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 Fje(e,o,t){return!t||!o?.linesBetween||o.index!==0?e:Mce(e)?{...e,top:0}:e}var Bje="outsideFramedCard";var Bx={sectionBorder:{top:0,right:1,bottom:1,left:0},...ia("background")},Hce={gap:0,gapPhone:0,sectionBorder:{top:1,right:0,bottom:0,left:1},shadow:!0},Ns=e=>({direction:"row",columns:e,columnsTablet:e,...Hce}),L4=(e={})=>Ze(cx,{...j,tag:"p",[Hv]:"top-line"},e,!0),Bl=(e=Rn)=>{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}}},Wce={name:"name",time:"time",note:"note",price:"price"},$ce={textStyle:"body-1",...z("body",16),weight:500,lineHeight:1.5},Uce={...ft,...z("label",12),letterSpacing:.18,lineHeight:1.5},zce={textStyle:"body-1",...z("body",14),lineHeight:1.6},Gce={textStyle:"body-1",fontRole:"heading",...z("headingSmall",20),weight:500,color:"accent",lineHeight:1.5},jce={...z("label",11),letterSpacing:.25},Kce={gap:16,gapPhone:16,sectionBorder:{top:0,right:0,bottom:0,left:0},shadow:!1},Nx=e=>({direction:"row",columns:e,...Kce}),$v=[...new Set([...Object.keys(Ns(1)),...Object.keys(Nx(1))])],Uv=()=>{let e=Wce,o={tag:"p",widthFit:"fill"};return{type:Y,props:{...N,name:"Card",justify:"between",gap:16,gapPhone:16,...Zo(24),sectionBorder:{top:1,right:1,bottom:1,left:1},...ia("surface"),shadow:!0},slots:{[De]:[L4(jce),{type:Y,props:{...N,name:"Words",gap:8,gapPhone:8},slots:{[De]:[Ze(e.name,{...j,...o},$ce),Ze(e.time,{...ne,...o},Uce),Ze(e.note,{...ne,...o},zce)]}},Ze(e.price,{...j,...o},Gce)]}}};import{tabletKey as D4}from"efficient-easel/draw";import{VIEW_DESKTOP_MIN as Dx}from"efficient-easel/draw";var Mx=Br,zv=Dx,F4=960,B4=Br,N4={min:Mx,max:1600,step:10},Hx="stackBelow";function Kje(e){if(!(typeof e!="number"||!Number.isFinite(e))&&!(e<N4.min||e>N4.max))return Math.round(e)}var Vce=e=>`sf-stack-${e}`,Yce=e=>`sf-stack-${e}-gutter`,qce=e=>`sf-stack-${e}-outer`,Nl=e=>`${e-.02}px`;function Vje(e,o={}){let t=o.gutter!==!1,r=`.${Vce(e)}`,a=`.${Yce(e)}`,n=`.${qce(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:${Gr.frame}}}`),t&&e<F4&&s.push(`@media (min-width:${e}px) and (max-width:${Nl(F4)}){${a}${a}{padding-inline:${_t}}}`),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 Ds(e){if(e==="ProductGrid")return"shelf";let o=$(dr,e)?.headStyle;return o==="editorial"||o==="simple"||o==="essay"?o:"standard"}var mf={standard:64,editorial:60,simple:36,essay:28,shelf:20},Xce={SectionHeader:"accent",FAQ:"accent",FitmentFinder:"accent",FitmentTable:"accent",SpecTable:"accent",RelatedProducts:"accent",Collections:"accentNum"};function Zce(e){if(e==="SectionHeader")return{num:"num",title:"title",description:"description",link:!0};let o=$(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 St={[Hx]:zv},jv={top:0,right:0,bottom:1,left:0},wt=(e,o,t,r)=>({sizeToken:{step:e,px:r,fluid:{minPx:o,vw:t}}}),Ux=(e,o,t={})=>Ie(e,{...z("label",o),...t}),zx=(e,o)=>({kind:"text",key:e,role:"heading",props:j,style:{textStyle:"heading-2",...o}}),Kv=800,Jce=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",...z("body",o),...r,...a}}),W4={...Ro,align:"right",alignPhone:"left",...Fs},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"?Qce(la()):{},...t.style}}}}},Qce=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 ede(e,o){let t=$(Xce,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?{...wt("headingMedium",36,5,64),case:"upper",lineHeight:.95,letterSpacing:-.025}:{...z("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,{...wt("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,...St},parts:[{kind:"group",name:"Title",props:{...N,direction:"row",align:"end",gap:40,gapPhone:14,share:"content",...St},parts:[{kind:"group",name:"Number",props:{...N,sectionPaddingBottom:8},parts:[{...Ux(e.num,13),props:{...j,...Rs}}]},Gx(o,[e.title])]},{kind:"group",name:"Words",props:{...N,sectionPaddingBottom:4,maxWidth:360,[D4("maxWidth")]:Jce,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",{...z("headingMedium",40,28),case:"none",weight:500,lineHeight:1,letterSpacing:-.03}],["md",{...z("headingMedium",48,32),case:"none",weight:500,lineHeight:1,letterSpacing:-.03}],["lg",{...z("headingMedium",56,36),case:"none",weight:500,lineHeight:1,letterSpacing:-.03}],["xl",{...z("headingMedium",64,40),case:"none",weight:500,lineHeight:1,letterSpacing:-.03}]],ode=e=>U4.some(([o])=>o===e.titleSize)?e.titleSize:"lg";function tde(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=>ode(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 Ds(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={...z("headingMedium",44,32),case:"upper",weight:500,lineHeight:1,letterSpacing:-.02};function Zt(e){let o=Wx.get(e);if(o)return o;let t=Zce(e),r=Ds(e),a=r==="editorial"?$4(t):r==="simple"?H4(t,qv):r==="essay"?H4(t,{...z("headingMedium",38,28,"headingSmall"),case:"upper",lineHeight:1,letterSpacing:-.02}):r==="shelf"?tde(t):ede(e,t);return Wx.set(e,a),a}var Ms={Series:"transparent",StatsParagraph:"transparent",TimelineTrack:Qo,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)),nde="inline is the head the row draws; an own-box node is skipped (`skip`)",sde={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=Vr(typeof e.background=="string"?e.background:void 0,Ms.Series);return o&&o!=="transparent"?o:void 0},Kx=e=>Vx(e)===Qo,ide={...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"},lde=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=>no(e.viewLabel)&&!Qv(e.viewLabel).hidden,Jt=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}:{}})),cde=ek([["num","Number"],["since","Corner note"],["title","Card title"],["body","Card body",!0],["count","Count"],["countLabel","Count word"]]),dde=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)=>({[Ue]:[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:Jt(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})),fde=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",pde={name:"Key Features",boxProps:(e,o)=>({...Q,direction:"column",gap:44,gapPhone:32,...bt("surface")(e,o),...hf(1,0,1,0),...ie(e,K4)}),box:[...re,...ge(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},{...Ie("eyebrow"),when:e=>!V4(e)},sde]},xf("Cards",e=>({...N,...Ns(o5(R4.defaultProps)(e))}),a5,r5,e=>Wv(fde(e)),{reads:["items"]})],drop:{...oe,...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,...bt("background")(e,o)}),X4=e=>{let o=o5(A4.defaultProps)(e);return{...N,...Ns(o)}},ude=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:Jt(o?.title),body:Jt(o?.body)})),s5=e=>{let o={},t={};for(let[r,a]of Object.entries(e.props??{}))r!=="id"&&(rde(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(mde(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():""})}),mde=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:ade("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 hde={name:"Cards",ownBoxConverts:!0,boxProps:(e,o)=>({...Q,direction:"column",gap:36,gapPhone:28,...bt("surface")(e,o),...ie(e,Y4)}),box:[...re,...ge(Y4)],parts:[{...Zt("Cards"),when:e=>!Fv(e)},{...xf("Cards",X4,ude,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:{...oe,...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)"}},xde={name:"Recurring Columns",boxProps:(e,o)=>({...Q,direction:"column",gap:60,gapPhone:60,...hf(0,0,1,0),...St,...Kx(e)?Bs(e,o):{},...Lx(Vx(e),e,o),...ie(e,z4)}),box:[...re.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,t)=>Kx(o)?un(e,o,t):e],...ge(z4)],skip:e=>Fx(Vx(e)),site:(e,o)=>Kx(e.props)?mn(e,o):[],parts:[Zt("Series"),xf("Cards",lde,cde,e=>t5(e).map(o=>Yx({num:Jt(o.num),since:Jt(o.since),title:Jt(o.title),body:Jt(o.desc),count:Jt(o.entries),countLabel:Jt(o.entriesLabel)})),(e,o)=>({type:Y,props:{...ide,...bt("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]:[Ze("num",j,z("label",13),!0),Ze("since",j,z("label",13),!0)]}},Ze("title",{...j,tag:"h3"},{textStyle:"heading-3",...z("headingSmall",28),weight:500,case:"upper",lineHeight:1.04,letterSpacing:-.02}),Ze("body",ne,{textStyle:"body-5",fontRole:"heading",...z("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]:[Ze("count",j,Xv),Ze("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:{...la()._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:{...oe,...se,headPlacement:nde}},e5={top:60,bottom:60,topPhone:40,bottomPhone:40},gde={...N,direction:"row",columns:3,gap:40,gapPhone:16},Ide={...N,gap:8,gapPhone:8,...Zo(24),...hf(1,1,1,1)},yde={name:"Document Detail Cards",boxProps:e=>({...Q,direction:"column",gap:40,gapPhone:16,...hf(0,0,1,0),...ie(e,e5)}),box:[...re,...ge(e5)],parts:[xf("Cards",gde,dde,e=>t5(e).map(o=>Yx({label:Jt(o.label),value:Jt(o.value),body:Jt(o.desc)})),(e,o)=>({type:Y,props:{...Ide,...bt("surface")(e,o),name:"Card"},slots:{[De]:[Ze("label",j,{...z("label",12),lineHeight:1.5},!0),{type:Y,props:{...N,name:"Words",gap:14,gapPhone:14},slots:{[De]:[Ze("value",j,{textStyle:"heading-3",...z("headingSmall",20),weight:500,letterSpacing:-.015,lineHeight:1.5}),Ze("body",ne,{textStyle:"body-5",fontRole:"accent",...z("body",14),italic:!0,lineHeight:1.5})]}}]}}))],drop:{...oe,...se}},c5={Cards:hde,KeyFeatures:pde,Series:xde,DocMetaCards:yde};import{phoneKey as Cde}from"efficient-easel/draw";import{newId as vde}from"efficient-easel/data";import{phoneKey as bde}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,[bde("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}}}},Qt={table:{...qx.table,listCard:d5(qx.table.card)},list:{...qx.list,listCard:d5(qx.list.card)}},OKe=[{label:"Table",value:"table"},{label:"List",value:"list"}],AKe=e=>e==="table"||e==="list",Sde=e=>[...new Set([...Object.keys(Qt.table[e]),...Object.keys(Qt.list[e])])];function If(e,o,t){let r={...e};for(let a of Sde(o))delete r[a];return{...r,...structuredClone(Qt[t][o])}}function wde(e,o,t){let r=e.props??{},a=Array.isArray(r[Ue])?r[Ue]:[],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,[Ue]:i}}}function RKe(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?wde(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",...wt("headingMedium",56,7,96),weight:500,case:"none",lineHeight:.9,letterSpacing:-.04},tk={kind:"block",type:"Text",props:{...Ls,_partStyles:{text:m5}},box:[["value","text",(e,o)=>f5(o)]],when:(e,o)=>o!==void 0&&typeof o.value=="string"&&f5(o)!==""},p5=e=>no(e?.supSuffix),h5={textStyle:"body-1",fontRole:"heading",...z("body",16),lineHeight:1.5,letterSpacing:-.01},x5={color:"labels",...z("label",12),lineHeight:1.5,letterSpacing:.24},g5={...N,direction:"row",align:"start",gap:32,gapPhone:32,share:"content",phoneRow:2,[Cde("share")]:"content"},I5={textStyle:"body-5",...z("label",13),weight:500,color:"accent",letterSpacing:.18,lineHeight:1,padding:12},rk=e=>Vr(e.background,Ms.StatsParagraph),yf=e=>rk(e)===Qo,Xx=e=>({...e,sectionAccent:e.sectionAccent??0}),kde=(e,o)=>yf(e)?bt("background",(t,r)=>Rx(Xx(t),r))(e,o):{},Tde={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},...St,...Xt(e,"StatsParagraph"),...yf(e)?Bs(Xx(e),o):{}}),box:[...re.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,t)=>yf(o)?un(e,Xx(o),t):e],...fn("StatsParagraph")],site:(e,o)=>yf(e.props)?mn({props:Xx(e.props)},o):[],parts:[Zt("StatsParagraph"),{kind:"group",name:"Stats",props:{...N,...Qt.table.grid,[Ml]:"table"},parts:[{kind:"list",key:"stats",name:"Stat",perRow:()=>4,rowName:"Stats row",rowProps:{...N,direction:"row",share:"equal",phoneRow:2,...Qt.table.row},props:(e,o)=>({...N,...Qt.table.card,...kde(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},Ie("sub",x5)]}]}]}],drop:{...oe,...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"}},Pde=new Set(["value","label",vt]),u5={top:48,bottom:48,topPhone:48,bottomPhone:48},Ede=e=>{let o=Vr(typeof e.background=="string"?e.background:void 0,Ms.Stats);return!!o&&o!=="transparent"},_de={name:"Stats",skip:e=>Ede(e)?"it paints a colour inside its padding, and a Box paints its Fill over the padding too":no(e.dataSource)?"its figures come from a source":Array.isArray(e.items)&&e.items.some(o=>no(o?.[vt]))?"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=>!Pde.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:[...re,...ge(u5)],parts:[Ie("heading",{color:"labels",...z("label",12),letterSpacing:.2}),{kind:"group",name:"Stats",props:{...N,...Qt.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,...Qt.list.row},props:{...N,...Qt.list.card},parts:[{kind:"text",key:"value",props:Ls,style:{textStyle:"heading-2",...z("headingMedium",48,36),weight:500,case:"none",lineHeight:1,letterSpacing:-.03}},Ie("label",{color:"labels",...z("label",12),letterSpacing:.2})]}]}],drop:{...oe,...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:Tde,Stats:_de};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 Ode=[{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:vde("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 Ade(e){return{type:Y,props:{...N,name:"Card",...structuredClone(Qt[e].listCard)},slots:{[De]:[{type:Y,props:{...g5,name:"Figure"},slots:{[De]:[Ze("figure",Ls,m5),Ze("superscript",j,I5)]}},{type:Y,props:{...N,name:"Words",gap:4,gapPhone:4},slots:{[De]:[Ze("label",{...j,widthFit:"fill"},h5),Ze("body",{...j,widthFit:"fill"},x5,!0)]}}]}}}function ak(e,o,t=4){return{type:Y,props:{...N,name:"Stats",direction:"row",columns:t,...structuredClone(Qt[o].items),[Ml]:o},slots:{[De]:[{type:Oo,props:jp(e,Ode),slots:{[Ue]:[Ade(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")}],XKe={label:"Payment Methods",drawsPictures:!0,defaultProps:{heading:"",badges:[],assurances:[],contained:!0}};import{hiddenKeyOf as Rde}from"efficient-easel/screen/lib/content/view-hide";var Zx="Flex",Lde={FooterMenu:"MenuBlock",FooterEmailSignup:"EmailFormBlock",FooterSocial:"SocialLogosBlock"},Fde={FooterPayment:"PaymentLogosBlock"},Bde=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}},Nde="md",P5=1.5,Dde={size:13,lineHeight:P5,width:280},Mde=14,Hde=40,Wde=e=>e==="center"||e==="right"?e:"left";function $de(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 Ude(e,o,t){let r=t(e,Bde(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 Fr(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=$(Lde,e.type)??$(Fde,e.type);if(n)return[Ude(n,r,o)];switch(e.type){case"FooterLogo":{let s=Wde(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,...$de(r)}),l=k5(r.tagline).trim();return l?[i,o("Text",{text:l,tone:"dim",align:s,_partStyles:{text:{...Dde}}})]:[i]}case"FooterText":{let s=typeof r.size=="string"&&He(Hl,r.size)?r.size:Nde;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?{[Rde("mobile")]:!0}:{}})]}case"FooterGroup":{let s=Array.isArray(r.blocks)?r.blocks:[];return[o(Zx,{direction:r.direction==="horizontal"?"row":"column",gap:os("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:Hde,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:Mde,align:"stretch",...ly,content:u}))}(i.length||!s.length)&&s.push(n(i));let l=o(Zx,{direction:"column",content:[o("LegalLineBlock")]}),d=i1(ze,t,[...s,l]);return{...d,props:{...d.props,...e?.props?.width==="full"?{fullWidth:!0}:{}}}}import{phoneKey as sk,readHidable as zde}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)=>no(r?.src)||no(r?.[o])}]}]}),nk=e=>{let o=q(e.bandPadding)??40;return{top:o,bottom:o,topPhone:o,bottomPhone:o}},Gde={...Ie("heading",{color:"labels",letterSpacing:.2}),props:{...j,align:"center"}},jde={name:"Logos",boxProps:e=>({...Q,direction:"column",gap:32,...ie(e,nk(e))}),box:[...re,...ge(nk),["bandPadding","sectionPaddingTop",(e,o)=>ie(o,nk(o)).sectionPaddingTop]],parts:[Gde,{kind:"core",keep:["columns","logoHeight","grayscale"],rename:{logosPerRow:"columns"},props:ik,slots:lk("items","alt")}],drop:{...oe,...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"}},Kde={kind:"group",name:"Mark",keepEmpty:!0,parts:[],props:WE(4,"main",{sectionCorners:2})},O5={top:24,bottom:24,topPhone:24,bottomPhone:24},Vde={name:"Payment Methods",boxProps:e=>({...Q,direction:"column",...ie(e,O5)}),box:[...re,...ge(O5)],parts:[{kind:"group",name:"Methods",props:{...N,align:"center",gap:20,gapPhone:20,sectionBorder:{top:1,bottom:1},sectionPaddingTop:32,sectionPaddingBottom:32},parts:[{...Ie("heading",{color:"labels"}),props:{...j,align:"center"}},{kind:"core",keep:[],as:"Logos",derive:{reads:[_o,ra],props:e=>no(e[_o])?{[_o]:e[_o],...e[ra]!==void 0?{[ra]:e[ra]}:{}}:{}},props:{...ik,look:"cards",grayscale:!1},slots:e=>({...lk("badges","label"),...no(e[_o])?{[Ue]:[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=>no(o?.text)),props:{...N,direction:"row",align:"center",gap:8,gapPhone:8,phoneRow:2,[sk("share")]:"content"},item:e=>zde(e.text).hidden?{props:{_hidden:!0}}:{},parts:[Kde,{kind:"text",key:"text",props:{...j,align:"center"},style:{...z("label",13),color:"labels",lineHeight:1.5}}]}]}]}],drop:{...oe,...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:[...Ga],parts:[{kind:"text",key:"lead",props:ne,styleFrom:e=>({size:Hl[R5(e)],lineHeight:1.5})},{kind:"core",keep:[],as:"Logos",derive:{reads:[_o,ra],props:e=>({logoHeight:T5[R5(e)].mark,align:A5(e),...no(e[_o])?{[_o]:e[_o],...e[ra]!==void 0?{[ra]:e[ra]}:{}}:{}})},props:{...ik,look:"marks",grayscale:!1,sectionAccent:Hr},slots:e=>({...lk("methods","label"),...no(e[_o])?{[Ue]:[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:jde,PaymentBadges:Vde,FooterPayment:F5,PaymentLogosBlock:F5},N5=()=>({heading:H2.heading,items:dx()}),D5=()=>({heading:w5.heading,badges:C5(),assurances:v5()}),M5=()=>({...mm,methods:[]});import{mixHex as Jde}from"efficient-shell/format";import{MOTION_EASING as Yde,MOTION_TIMING as H5,motionSeconds as W5}from"efficient-shell/format";var ck="none",Jx=[{label:"None",value:"none"},{label:"Marquee",value:"scroll"}];function T8e(e){return go(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"}],qde={left:"storefront-ticker",right:"storefront-ticker-right",up:"storefront-ticker-up",down:"storefront-ticker-down"};function $5(e){return go(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 P8e=H5.loop.duration.default,Xde=H5.loop.delay.default;function z5(e){return W5("loop","delay",e.loopDelay)}function E8e(e,o,t=Xde){return`${qde[e]} ${o}s ${Yde.loop}${t?` ${t}s`:""} infinite`}var eg="_gEntrance";var R8e="none",L8e=[{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 Zde(e){return e==="above"?"sf-ticker-join-above":"sf-ticker-join-below"}function j5(e){return`absolute inset-x-0 ${Zde(e)}`}var Hs={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={...ft,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={...ft,letterSpacing:.1,lineHeight:1.5};var Y5=e=>e.size==="display",Qde=(e,o)=>{let t=Ax(e,o),r=e.tone!=="plain"&&t?.text&&t.background?Jde(t.text,t.background,.3):null;return r?{color:r}:{}},efe=(e,o)=>e.tone!=="plain"&&Wr(e.sectionAccent)===null?bt("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:Qde}]}),ofe={name:"Scrolling Bar",boxProps:(e,o)=>({...Q,...Hs,...tg,...OE[iy(e.separator)]===""?K5:{},...ie(e,Cf),...efe(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}],...re,["tone","sectionAccent",(e,o)=>Wr(o.sectionAccent)??Hr],...ge(Cf)],parts:[q5(rg,e=>!Y5(e)),q5(V5,Y5)],drop:{...oe,...se,size:"each item's Text style: Small \u2192 Body 5, Display \u2192 Heading 3"}},X5=e=>e?.tone==="muted",Z5=e=>Yp(_s(e)),tfe={name:"Spec Strip",boxProps:(e,o)=>({...Q,...Hs,...kf,...e.fill==="none"?{sectionBorder:{top:1}}:{sectionAccent:Z5(o)},...ie(e,vf)}),box:[...re.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,t)=>o.fill==="none"?e:Z5(t)],...ge(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:{...oe,...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:ofe,SpecStrip:tfe};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 rfe}from"efficient-easel/draw";var uo={text:"Button label",href:"#"},vr=e=>e.replace(/\*([^*]+)\*/g,"==$1=="),Ye={eyebrow:"Eyebrow",heading:"Main heading",accent:"Highlight line",body:"Add a sentence or two of supporting copy.",button:"Button label",link:"#",sectionHeading:"Section heading",slideName:"Slide name",boxName:"Box name",headingAccent:"Section heading *here.*",sectionNumber:"Section number",imageCaption:"Image caption",bookingConfirmation:"Thanks \u2014 we'll email you to confirm.",imageMeta:"Image meta",label:"Label",value:"Value",viewAll:"View all",date:"Month DD, YYYY",category:"Category"};var ag={eyebrow:Ye.eyebrow,title:`Section heading
324
+ *Highlight line*`,intro:Ye.body,imageCaption:Ye.imageCaption,imageMeta:Ye.imageMeta,cta:uo.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.")}],Q8e={label:"Story Timeline",drawsPictures:!0,defaultProps:{layout:"split",eyebrow:"",title:"",intro:"",imageSrc:"",imageCaption:"",imageMeta:"",ctaText:"",ctaHref:"",entries:[],padTop:120,padBottom:120}};var ng={eyebrow:Ye.eyebrow,title:Ye.headingAccent,intro:Ye.body,cta:uo.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}],aVe={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",...z("label",e),letterSpacing:o,lineHeight:1.5,weight:400,...t}),$l=(e,o,t={})=>({...lg(e,o),...ft,...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}),er=(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=>Vr(typeof e.background=="string"?e.background:void 0,Ms.TimelineTrack),pk=e=>xk(e)===Qo?e:{...e,background:"transparent"},afe={name:"Milestone Timeline",skip:e=>Fx(xk(e)),boxProps:(e,o)=>{let t=pn(pk(e),o);return{...Q,direction:"column",gap:60,[rfe("gap")]:36,gapPhone:36,sectionBorder:{bottom:1},...St,...Xt(e,"TimelineTrack"),...Lx(xk(e),e,o),...t>=0?{sectionAccent:t}:{}}},box:[...re.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,t)=>un(e,pk(o),t)],...fn("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,...St},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:[er("date",lg(13,.22,{color:"accent"}),{when:(e,o)=>!r3(e,o)}),er("date",lg(13,.22,{color:"labels"}),{when:r3}),er("title",{textStyle:"heading-3",...cg(z("headingSmall",20),-.02,1.1)},{role:"heading"})]},er("blurb",Pf(z("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)=>mn({props:pk(e.props)},o),drop:{...oe,...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",nfe=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",...Zo(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:[er("imageCaption",$l(11,.24,{color:"text"})),er("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=()=>[er("title",{textStyle:"heading-3",...cg(z("headingSmall",24,20),-.02,1.5)},{role:"heading",mark:"accentItalic"}),{kind:"block",type:"Text",props:{...j,_partStyles:{text:Pf(z("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(z("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=()=>er("date",lg(13,.24,{color:"accent"})),hk=(e,o,t={})=>er(e,o,{...t,props:{...j,...t.props??{},align:"center"}}),s3=wt("headingMedium",40,5,76),i3={sectionBorder:{bottom:1}},sfe={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,...Xt(e,"Timeline")}:{...Q,direction:"column",gap:48,gapPhone:48,align:"center",...i3,...Xt(e,"Timeline")},box:[...re,...fn("Timeline")],parts:[{kind:"group",name:"Heading",props:{...N,gap:24,gapPhone:24},when:ig,parts:[er("eyebrow",$l(12,.3,{color:"accent"}),{role:"eyebrow"}),er("title",{textStyle:"heading-2",...cg(s3,-.03,.94)},{role:"heading",mark:"accentItalic"}),er("intro",Pf(z("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(z("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:nfe,parts:[{kind:"list",key:"entries",name:"Chapter",props:{...N,direction:"row",gap:64,gapPhone:0,share:[50],align:"start"},parts:[{kind:"group",name:"Entry",props:{...N,gap:8,gapPhone:8},parts:[mk(),{kind:"group",name:"Words",props:{...N,gap:14,gapPhone:14},parts:uk()}]},{kind:"group",name:"Spacer",props:{...N},keepEmpty:!0,parts:[]}]}]}],drop:{...oe,...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:uo.text,ctaHref:uo.href,entries:o3()}),f3=()=>({eyebrow:ng.eyebrow,title:vr(ng.title),intro:ng.intro,ctaText:uo.text,ctaHref:uo.href,entries:t3()}),p3={TimelineTrack:afe,Timeline:sfe};import{tabletKey as ffe}from"efficient-easel/draw";import{rootIsDark as ife}from"efficient-shell/format";function bVe(e="auto"){return e==="light"?!0:e==="dark"?!1:!ife({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 lfe=["tall","square","wide"],cfe="tall";function m3(e){return lfe.includes(String(e??""))?String(e):cfe}var CVe={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"},vVe=[{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:""}],dfe=/^https?:\/\//i;function kVe(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:dfe.test(o)?o:""}}function bk(e){let o=String(e??"").split(" \xB7 ");return{state:(o[0]??"").trim(),country:(o[1]??"").trim()}}var TVe="other",PVe={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 or=e=>typeof e=="string"?e:e==null?"":String(e),wk=e=>Array.isArray(e.locations)?e.locations.map(o=>o??{}):[],Ul=e=>or(e.group),v3=e=>`loc-${e}`,k3=e=>or(e.state).trim()||bk(or(e.region)).state,T3=e=>or(e.country).trim()||bk(or(e.region)).country,x3=e=>[k3(e),T3(e)].filter(Boolean).join(" \xB7 "),pfe=e=>wk(e).some(o=>or(o.photo).trim()!==""),ufe=e=>wk(e).some(o=>u3(Number(o.lat),Number(o.lng))),mfe=(e,o)=>wk(e).filter(t=>Ul(t)===Ul(o)).length,hfe=(e,o)=>mfe(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},xfe=e=>o=>o>sf(o)?{...N,gap:0}:{...vk,...o>1?{phoneRow:e}:{}},kk=!0,gfe={kind:"group",name:"Gallery",props:{...N,gap:20,...kk?{_hidden:!0}:{}},when:pfe,parts:[{kind:"group",name:"Gallery head",props:{...N,direction:"row",justify:"between",align:"end",gap:24,share:"content",sectionBorder:{bottom:1},sectionPaddingBottom:16},parts:[Ie("galleryKicker",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,...Zo(12,12)},item:(e,o,t)=>({props:{...or(e.photo).trim()?{bgImage:or(e.photo),hover:"mono"}:{},link:`#${v3(o)}`,boxShape:hfe(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:[Ie("label",kr(11,{color:"accent",letterSpacing:.3}))],itemsName:"Cities",itemsProps:xfe(2),perRow:sf,rowName:"Row",rowProps:{...vk,phoneRow:2}}}]}]},Ife={kind:"group",name:"Words",props:{...N,gap:12,gapPhone:12,...Zo(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",...z("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,...Zo(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",...z("body",14),lineHeight:1.5}},{kind:"block",type:"ButtonBlock",props:{...Ro,...Fs,variant:"ghost",arrow:!1,_partStyles:{label:kr(13,{letterSpacing:.18,color:"text",lineHeight:24/13})}},box:[["phone","label"],["phone","href",e=>h3(or(e))??"#"]],when:(e,o)=>or(o?.phone).trim()!==""},{kind:"text",key:"hours",props:ne,style:kr(12,{letterSpacing:.18,lineHeight:1.7})}]},yfe={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)])]},bfe={kind:"group",name:"Map",props:{...N,sectionBorder:{top:1,right:0,bottom:0,left:0}},parts:[yfe]},Sfe={kind:"list",key:"locations",name:"City",props:(e,o)=>({...N,gap:0,justify:"between",sectionBorder:Ck,jumpHighlight:!0,sectionAccent:pn(e,o)>=0?Rl(e.sectionAccent,o):-1}),item:(e,o)=>({props:{anchor:v3(o)}}),parts:[Ife,bfe],groups:{of:Ul,name:"Group",props:{...N,gap:20},head:e=>{let o=e[0]??{};return{key:Ul(o),groupName:or(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)=>or(o?.key).trim()!=="",parts:[Ie("key",kr(13,{color:"accent",letterSpacing:.3})),{kind:"text",key:"groupName",role:"heading",props:j,style:{textStyle:"heading-3",...z("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),[ffe("columns")]:1})}},I3=kr(10,{letterSpacing:.25}),wfe={kind:"block",type:Jr,props:{...N,name:"Credit",direction:"row",justify:"end",align:"center",gap:6,share:"content",wrap:!0},when:ufe,slot:Qr,keepEmpty:!0,parts:[{kind:"block",type:"Text",props:{...ne,text:"Location coordinates \xA9",_partStyles:{text:I3}}},{kind:"block",type:"ButtonBlock",props:{...Ro,...Fs,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",un],Cfe=[...Ga,...Ni,...Object.values(Be)],vfe={name:"City pictures",skip:e=>to(e)?`fed by the data source "${to(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",...St,...y3(ie(e,Sk),b3),sectionPaddingBottom:g3,sectionPaddingBottomPhone:g3,...Bs(e,o)}),box:[...re.filter(e=>e!=="sectionAccent"&&e!=="anchor"),C3,["anchor","anchor",e=>Uc(e).trim()?e:"studios"],...w3(b3)],parts:[$x("sectionNumber","heading","tagline"),gfe],also:[{name:"City maps",boxProps:(e,o)=>({...Q,direction:"column",gap:40,sectionBorder:{bottom:1},...St,sectionPaddingTop:0,sectionPaddingTopPhone:0,...y3(ie(e,Sk),S3),...Bs(e,o)}),box:[...Cfe,C3,...w3(S3)],parts:[Sfe,wfe]}],reads:{mapTheme:"City maps Box: each Map block's Map theme",imageShape:"City pictures Box: each picture Box's Box shape"},site:mn,drop:{...oe,...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:vfe};import{SITE_SIDE as E3,sideLengthAt as kfe}from"efficient-easel/screen/lib/content/length-units";import{viewKeyAt as Tk}from"efficient-easel/draw";var Tfe=["FAQ","Footprint","LongRead","ProcessSteps","RelatedProducts"];var hn=(e,o)=>()=>({top:e,topPhone:o}),_3=e=>o=>{let t=Il(e),r={...o,[jr.top]:td(o,t).top},a=l=>{let d=kfe(r,jr,Qn,l,"top");return d?.unit==="px"?d.value:void 0},n=l=>q(o[Tk(jr.top,l)])===void 0?void 0:a(l),s=n("tablet"),i=n("mobile");return{top:a("desktop")??t.top??0,...s!==void 0?{topTablet:s}:{},...i!==void 0?{topPhone:i}:{}}},Pfe={Collections:hn(120,70),Events:hn(120,70),FAQ:hn(120,70),GalleryB:hn(120,70),FitmentTable:hn(120,80),SpecTable:hn(120,80),LongRead:hn(120,80),RelatedProducts:hn(0,0),Footprint:_3("Footprint"),ProcessSteps:_3("ProcessSteps"),ProductGrid:e=>({top:q(e.padTop)??120,topPhone:0})};function Efe(e,o={}){let t=$(dr,e),r=$(Pfe,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=Zt(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:$(En,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=Ds(e)==="editorial"?St:{};return{...Q,direction:"column",gap:mf[Ds(e)],sectionPaddingTop:u.top,...u.topTablet!==void 0?{sectionPaddingTopTablet:u.topTablet}:{},...u.topPhone!==void 0?{sectionPaddingTopPhone:u.topPhone}:{},...h,...p,...m}},box:[...re,...a?[[a,"sectionPaddingTop",(d,f)=>r(f).top]]:[]],parts:[n,...(()=>{let d=a&&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 _fe={...N,direction:"accordion",rowStyle:"numbered"},Ofe={sectionPaddingLeft:E3,sectionPaddingRight:E3},Afe={Footprint:{slots:{[Ue]:[JE()]},pressHeading:!0},ProcessSteps:{slots:(e,o)=>o.press?{[mc]:ZH().map(t=>({...t,props:{...t.props,...Ofe}}))}:{},boxProps:{gapPhone:mf.editorial}},FAQ:{slots:{[Ue]:[ZE()]},pressHeading:!0,coreBox:{name:"Questions",props:_fe},coreProps:{sectionAccent:Hr},roomBelow:{bottom:120,bottomPhone:70},boxProps:(e,o)=>o.press?{}:{[pM]:Is},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(Tfe.map(e=>[e,Efe(e,$(Afe,e))]));import{BLOCK_WIDTH_LIMIT as Rfe}from"efficient-easel/draw";var dg={eyebrow:Ye.eyebrow,title:Ye.headingAccent,deck:"Add a sentence or two introducing this document."},d7e={label:"Document masthead",defaultProps:{eyebrow:"",title:"",deck:"",meta:[]}};var M3={minWidth:Rfe.min},A3=(e,o,t)=>({...Ie(e,{...o,...df}),props:{...j,align:"right",...Rs,...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},Lfe={...z("label",13),letterSpacing:.22,lineHeight:1.8},F3={textStyle:"heading-1",...wt("headingLarge",56,8,128),case:"upper",weight:500,lineHeight:.88,letterSpacing:-.04},Ffe=()=>({name:"Page Header",boxProps:e=>({...Q,direction:"column",gap:0,sectionBorder:{bottom:1},...ie(e,L3)}),box:[...re,...ge(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,{...Ie("eyebrow",z("label",13)),props:{...j,...Rs}}),{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",Lfe,Rs)]}]}]},{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",...z("body",22,19),italic:!0,lineHeight:1.5}}]}],drop:{...oe,...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:Ye.label,value:Ye.value},{label:Ye.label,value:Ye.value}]}),B3={top:80,bottom:40,topPhone:60,bottomPhone:32},Bfe={...z("label",13),letterSpacing:.18,lineHeight:1.8},N3={...z("label",13),letterSpacing:.22,lineHeight:1.9},Nfe=()=>({name:"Issue Header",boxProps:e=>({...Q,direction:"column",gap:0,sectionBorder:{bottom:1},...ie(e,B3)}),box:[...re,...ge(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,Ie("eyebrow",z("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",Bfe)]}]}]},{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",...z("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",...Rs},style:{textStyle:"body-1",fontRole:"heading",...z("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:{...oe,...se}}),D3={top:24,bottom:24,topPhone:16,bottomPhone:16},Pk={color:"labels",...z("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),Dfe=(e,o)=>U3(e,o)&&!_k(e,o)&&no(o?.href),Mfe=()=>({name:"Breadcrumb",skip:e=>no(e.meta)?'a trailing note after "\xB7" needs a second mark; none live':void 0,boxProps:e=>({...Q,...Hs,wrap:"wrap",gap:16,gapPhone:16,separator:"slash",sectionBorder:{bottom:1},...ie(e,D3)}),box:[...re,...ge(D3)],parts:[{kind:"list",key:"items",name:"Crumb",flat:!0,parts:[{kind:"button",key:"label",href:"href",variant:"ghost",when:Dfe,props:{...Ro,...Fs,icon:"none"},style:Pk},{...Ie("label",Pk),when:(e,o)=>U3(e,o)&&!_k(e,o)&&!no(o?.href)},{...Ie("label",{...Pk,color:"text"}),when:_k}]}],drop:{...oe,...se,meta:"a node that stores a note is skipped (`skip`); an empty one draws nothing"}}),z3={DocMasthead:Ffe(),Masthead:Nfe(),Breadcrumb:Mfe()};import{BLOCK_WIDTH_LIMIT as Wfe,hiddenKeyOf as $fe}from"efficient-easel/draw";import{readHidable as Ok}from"efficient-easel/draw";function Hfe(e,o,t){return e||(t?.isEditing?c(o):void 0)}function v7e(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 Hfe(r.text,o,t)}function j3(e){if(e==null)return;let o=Ok(e);return o.hidden?"":o.text}function k7e(e,o,t){return Ok(e).hidden?"":G3(e,o,t)}function T7e(e,o,t){return{text:G3(e,uo.text,t),href:o||uo.href}}var q3="MenuBlock",Ak=e=>(Array.isArray(e)?e:[]).filter(o=>o&&no(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},Ufe={...ft,color:"labels",...z("label",12),letterSpacing:.24},zfe={kind:"group",name:"Note",props:{...N,justify:"center",sectionBorder:{top:0,right:0,bottom:0,left:1},sectionPaddingLeft:28,[$fe("mobile")]:!0},parts:[{kind:"block",type:"Text",when:e=>K3(e)!=="",props:e=>({...j,textFit:"line",text:K3(e),[Pd]:{text:Ufe}})}]},X3=()=>({tabs:[],metaLabel:Ye.label,metaValue:Ye.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:Wfe.min},J3=e=>({...e,boxProps:o=>({...Q,direction:"row",align:"stretch",justify:"between",gap:0,stickTop:!0,[Ir]:0,[Ja]:!0,sectionBorder:{bottom:1},...ie(o,V3)}),box:[...re,...ge(V3)]}),Gfe=()=>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},zfe],drop:{...oe,...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"}}),jfe=()=>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:{...oe,...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:Gfe(),CategoryBar:jfe()};import{jsx as Ws,jsxs as Lk}from"react/jsx-runtime";import{slugify as Kfe}from"efficient-shell/format";import{jsx as Rk,jsxs as eW}from"react/jsx-runtime";var M7e="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?{[Ln]: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=Ht(),f=i?d:Ua;return f.scope(eW("aside",{className:Jo(`${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:Io(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:Io(u.label||"Section")}),!l&&m]},`${p}-${u.anchor}`)})]}))}function Vfe(e,o){return Kfe(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=Vfe(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 Yfe=()=>[{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.")}],qfe=rW;function aYe({tocTitle:e,sections:o,editing:t=!1,stickyTop:r=qfe}){let a=Bk(o);if(a.length===0&&!t)return null;let n=a.length===0&&t?Yfe():a,s=Nk(n);return Ws(me,{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:[Ws(aW,{title:e,entries:n.map((i,l)=>({label:i.label||"Section",anchor:s[l]})),stickyTop:r}),Ws("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 ",Io(i.label||"Section")]}),i.heading&&Ws("h2",{className:"mb-2 border-b border-line pb-[18px] font-heading2 text-[length:min(var(--size-headingMedium,clamp(28px,3.5vw,44px)),var(--sf-heading-max,9999px))] font-medium uppercase leading-[1.04] tracking-[-0.025em]",children:Io(i.heading)}),Dk(i.body??"").map((d,f)=>d.type==="ul"?Ws("ul",{className:"flex max-w-[680px] list-none flex-col gap-2.5 pl-0",children:d.items.map((u,p)=>Ws("li",{className:"relative pl-6 font-serif text-[length:var(--size-body,17px)] leading-[1.65] text-fg-dim before:absolute before:-top-0.5 before:left-1.5 before:text-[length:var(--size-body,24px)] before:leading-none before:text-accent before:content-['\xB7']",children:Io(u)},p))},f):Ws("p",{className:"max-w-[680px] font-serif text-[length:var(--size-body,17px)] leading-[1.7] text-fg-dim",children:Io(d.text)},f))]},s[l]))})]})})}var nW={top:80,bottom:80,topPhone:60,bottomPhone:60},sW=18,iW=18,lW=8,Xfe=10,Mk=e=>typeof e=="string"&&e.trim()!=="",cW=e=>Bk(e.sections),Zfe=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",...z("body",17)},Jfe=[Ie("label",Hk),{...Ie("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",...wt("headingMedium",28,3.5,44),case:"upper",weight:500,lineHeight:1.04,letterSpacing:-.025}}]}]},{kind:"list",key:"body",name:"Body",flat:!0,of:Zfe,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:Xfe},when:(e,o)=>o?.kind==="ul"}]}],Qfe=900,epe={name:"Document Text",boxProps:e=>({...Q,direction:"row",gap:80,gapPhone:40,[Hx]:Qfe,sectionBorder:{bottom:1},...ie(e,nW)}),box:["anchor","sectionAccent",...Ga,...Ni,...Object.values(Be),...ge(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:Jfe}]}],reads:{tocTitle:"the Contents block's Heading"},drop:{...oe,stickyTop:"the Contents block draws DocBody's default (120px); 0 live nodes store it"}},fW={DocBody:epe};import{phoneKey as rpe}from"efficient-easel/draw";import{SITE_SIDE as ape}from"efficient-easel/screen/lib/content/length-units";var hYe={eyebrow:"\u2014 Label",title:`Section headline *here.*
336
+ *Highlight line*`,body:"Describe this section in a sentence or two."},xYe={text:"Learn more"},gYe={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]",ope="overlay",tpe=[{label:"Copy over image",value:"overlay"},{label:"Copy above image",value:"stacked"}];function pg(e){return go(tpe,ope,e)}var bYe={desktop:40,mobile:45,min:20,max:80,step:5};function SYe(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(Kt.size,t?.desktop)},...a===void 0?{}:{sizePhone:a,...n(Kt.sizePhone,t?.phone)}}},npe=e=>pg(e.layout)==="stacked",mW=e=>Math.min(Math.max(q(e.overlay)??60,0),100),ug=e=>q(e)??100,spe={textStyle:"heading-1",sizeToken:{...wt("headingLarge",48,7,96).sizeToken,pxPhone:36},weight:500,lineHeight:.95,letterSpacing:-.03},ipe=[Ie("eyebrow",z("label",14)),...[!0,!1].map(e=>({kind:"text",key:"title",role:"heading",props:j,style:{...spe,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",...z("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)`,lpe=()=>({name:"Scroll-Over Text",skip:e=>npe(e)?"the stacked layout: its words row's height floor (`copyShare*`) and the header subtraction have no Box setting; 0 live US nodes":void 0,boxProps:e=>({...Q,direction:"column",justify:"center",align:"start",gap:24,gapPhone:24,share:"content",...pf,placement:"left",darken:mW(e),darkenStyle:"even",sectionHeightMode:"fixed",sectionHeightUnit:"%",sectionHeightValue:ug(e.heightDesktop),sectionHeightModePhone:"fixed",sectionHeightUnitPhone:"%",sectionHeightValuePhone:ug(e.heightMobile),[es]:Za}),box:[...re.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:ipe,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"),...oe}}),IW={textStyle:"heading-2",...z("headingMedium",56,36),weight:400,lineHeight:1.05,letterSpacing:-.03},cpe={textStyle:"body-1",...z("body",16),lineHeight:1.7},yW=e=>({kind:"text",key:"body",props:{...ne,maxWidth:520},style:{...cpe,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"},dpe=(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)",fpe=(e,o)=>({[e]:o,[rpe(e)]:o}),ppe={textStyle:"heading-2",...z("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()!=="")),upe=()=>({name:"Brand Text",boxProps:(e,o)=>({...Q,...bt("background")(e,o),direction:"row",share:"equal",gap:0,gapPhone:0,sectionBorder:{top:1,bottom:1},...ie(e,hg),...$k(e,100)}),box:[...re,...ge(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:ape}),parts:[Ie("eyebrow",z("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),...fpe("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:Ls,style:ppe},Ie("label",{...z("label",13),color:"labels",letterSpacing:.2})]}]}]}]},Mv("Picture","imageSrc",bW)],drop:{...oe,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}},mpe=e=>e.textAlign==="center"||e.textAlign==="right"?_p[e.textAlign]:"stretch",hpe=e=>Math.min(Math.max(q(e.overlay)??60,0),100),wW=e=>typeof e=="string"&&e.trim()!=="",xpe={...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:xpe,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}},gpe={kind:"group",name:"Words",props:(e,o)=>{let t=e.reverse===!0;return{...N,justify:"center",align:mpe(e),placement:e.textAlign==="center"?"center":e.textAlign==="right"?"right":"left",...dpe(e,72),gap:24,gapPhone:24,...wW(e.textBgSrc)?{darken:hpe(e),darkenStyle:"even"}:{},...pf,sectionPaddingTop:100,sectionPaddingBottom:100,...CW(t?"right":"left",Fl(o)),sectionPaddingTopPhone:60,sectionPaddingBottomPhone:60}},box:[["textBgSrc","bgImage"]],parts:[{...Ie("eyebrow",z("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}:{}}}}]}]},Ipe=()=>({name:"Image & Text Split",boxProps:(e,o)=>({...Q,...bt("background")(e,o),direction:"row",share:"equal",gap:0,gapPhone:0,sectionBorder:{top:1,bottom:1},...ie(e,hg),...$k(e,72)}),box:[...re,...ge(hg)],parts:[gW(!1),gpe,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,...oe,...se}}),vW={IntroBleed:lpe(),Manifesto:upe(),Split:Ipe()};var PW={headPlacement:void 0},kW={top:0,bottom:0,topPhone:0,bottomPhone:0},ype=()=>({name:"Form",ownBoxConverts:!0,boxProps:e=>({...Q,direction:"column",...ie(e,kW)}),box:[...re,...ge(kW)],parts:[{kind:"core",keep:"rest",props:PW}],drop:{...oe,...se}}),TW={top:120,bottom:120,topPhone:60,bottomPhone:60},bpe=()=>({name:"Photo Submission Form",boxProps:e=>({...Q,direction:"column",gap:24,...ie(e,TW)}),box:[...re,...ge(TW)],parts:[Ie("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:{...oe,...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:ype(),SubmitBuild:bpe()};import{phoneKey as _W}from"efficient-easel/draw";var AW=1.5,OW={textStyle:"body-1",...z("body",15),lineHeight:AW},Spe={...ft,...z("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",...Zo(12,0),sectionBorder:{top:1},name:"Item"},slots:{[De]:[{type:Y,props:{...N,gap:0,gapPhone:0,name:"Item words"},slots:{[De]:[Ze("label",{...j,tag:"p"},OW),Ze("meta",{...ne,tag:"p"},Spe)]}},Ze("amount",{...j,tag:"p"},OW)]}});var wpe=()=>({name:"Order Table",boxProps:()=>({...Q,direction:"column"}),box:[...re],parts:[{kind:"core",keep:"rest",headless:!0,slots:{[Ue]:[RW()]}}],drop:{...oe}}),LW={OrderSummary:wpe()};import{phoneKey as Cpe}from"efficient-easel/draw";var VYe={eyebrow:"By the numbers",title:`A picture worth
337
+ *a thousand rows.*`},FW=["eyebrow","title","body","caption"],YYe={label:"Chart",defaultProps:{eyebrow:"",title:"",body:"",items:[],caption:"",chartStyle:"bars",valueSuffix:""}};var BW=["eyebrow","title","body"],XYe={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,[Cpe("share")]:"content"},parts:[Al("eyebrow")]},{kind:"text",key:"title",role:"heading",props:j,style:{textStyle:"heading-2",...z("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=[...re.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,t)=>Ll(e,t)],...ge(MW)],vpe=()=>({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},Ie("caption",{color:"muted",...z("label",10),letterSpacing:.14})]}],pressKeepsEmpty:[...FW],drop:{...oe,...se}}),NW=e=>e.align==="left",DW={kind:"group",name:"Card",keepEmpty:!0,props:N,parts:[{kind:"core",keep:"rest",props:Ol}]},kpe=()=>({name:"Mockup Card",boxProps:WW("equal"),box:$W,parts:[{...DW,when:NW},HW(),{...DW,when:e=>!NW(e)}],pressKeepsEmpty:[...BW],drop:{...oe,...se}}),UW={Chart:vpe(),Mockup:kpe()};import{phoneKey as Ppe}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},Epe=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(Epe(e)),_pe=e=>Qx({loopDuration:GW(e)}),Ope={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,[Ppe("share")]:"content"},parts:[Al("eyebrow")]},{kind:"text",key:"title",role:"heading",props:{...j,align:"center"},style:{textStyle:"heading-2",...z("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)}]},Ape=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:_pe(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"]}]}]}]}),Rpe={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",...z("headingLarge",64,46),weight:500,case:"upper",lineHeight:1,color:"accent"}},{kind:"text",key:"statLabel",props:{...j,align:"center"},style:{textStyle:"heading-3",...z("headingSmall",18),weight:500,case:"upper",letterSpacing:.06}}]},{kind:"text",key:"note",props:{...j,align:"center",maxWidth:428},style:{textStyle:"body-1",...z("label",14),lineHeight:1.625,color:"muted"}}]},Lpe=[...re.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,t)=>Ll(e,t)],...ge(jW)],Fpe={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:Lpe,parts:[Ope,{kind:"group",name:"Rows",props:{...N,gap:12,gapPhone:12},parts:Array.from({length:3},(e,o)=>Ape(o))},Rpe],pressKeepsEmpty:["body","statValue","statLabel","note"],reads:{apps:"a Logo block per app, dealt into the three Rows"},drop:{...oe,...se}},KW={Integrations:Fpe},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 Bpe={title:"Back online in",zeroText:"Almost done. Back very soon."},YW=["title"],p9e={label:"Countdown",defaultProps:{...Bpe,endsAt:"",showUnits:!0}};var qW={top:48,bottom:48,topPhone:48,bottomPhone:48},Npe={...Ie("title",{...$E(12),color:"muted"}),props:{...j,align:"center"}},Dpe=()=>({name:"Countdown",boxProps:e=>({...Q,direction:"column",align:"center",gap:16,gapPhone:16,...ie(e,qW)}),box:[...re,...ge(qW)],parts:[Npe,{kind:"core",keep:"rest",props:Ol}],pressKeepsEmpty:[...YW],drop:{...oe,...se}}),XW={top:80,bottom:80,topTablet:60,bottomTablet:60,topPhone:60,bottomPhone:60},Mpe=()=>({name:"Feature Banner",boxProps:e=>({...Q,direction:"column",sectionBorder:{bottom:1},...ie(e,XW)}),box:[...re,...ge(XW)],parts:[{kind:"core",keep:"rest",props:Ol}],drop:{...oe,...se}}),ZW={Countdown:Dpe(),FeaturedCover:Mpe()};var JW={top:80,bottom:80,topPhone:60,bottomPhone:60},Hpe=()=>{let e=jx("FitmentFinder");return{name:"Fitment Form",boxProps:o=>({...Q,direction:"column",gap:mf[Ds("FitmentFinder")],...ie(o,JW)}),box:[...re,...ge(JW)],parts:[Zt("FitmentFinder"),{kind:"block",type:"FitmentPicker"},{kind:"block",type:"StockFitment"},{kind:"button",key:"ctaText",href:"ctaHref"}],skip:o=>o.layout==="bar"?"the one-row shape goes to the shop on the fourth pick and draws no head; the Fitment picker block never leaves the page":void 0,...Object.keys(e).length?{reads:e}:{},drop:{...oe,...se,layout:'the section shape; "bar" is skipped (above), so here it is the stacked shape this Box draws'}}},QW={FitmentFinder:Hpe()};var xg={eyebrow:"Label",title:"Section *heading.*",body:"Add this section's copy here. A blank line starts a new paragraph."},S9e={label:"Editorial Text",defaultProps:{eyebrow:"",title:"",body:"",topBorder:!0}};var Ef={eyebrow:Ye.eyebrow,lead:"Introduce your company in a paragraph or two.",foundersHeading:"Add a short heading.",foundersBody:"Add a short statement here \u2014 a sentence or two is plenty.",attribution:"\u2014 Name, Year"},v9e={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."},T9e={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:uo.text,href:uo.href,variant:"primary"},{label:uo.text,href:uo.href,variant:"outline"}],_9e={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 L9e(e){return go(a$,a$[0],e)}function F9e(e){return go(n$,n$[0],e)}function B9e(e){return go(s$,gg,e)}function N9e(e){let o=s$.map(r=>r.value),t=[...new Set(Object.values(r$).flat())];return kt(e,t.map(r=>[[r],Sc("headStyle",o,gg,o.filter(a=>!r$[a].includes(r)))]))}var Oa={num:"01 / Section",title:"Section *title*",description:"Short supporting line",linkText:Ye.viewAll},$9e={label:"Section Header",drawsPictures:!0,defaultProps:{headStyle:gg,num:Oa.num,numStyle:Dd,title:Oa.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."},j9e={label:"Scroll-Over Text",drawsPictures:!0,defaultProps:{eyebrow:"",title:"",body:"",imageSrc:"",imageSrcMobile:"",heightDesktop:100,heightMobile:100,overlay:60,titleSizeDesktop:ts,bodySizeDesktop:ts,titleSizeMobile:ts,bodySizeMobile:ts,ctaText:"",ctaHref:"",buttonColor:"",buttonTextColor:"",stickTop:!0,[Ir]:0,uppercase:!1}};var i$={top:72,bottom:72,topPhone:72,bottomPhone:72},Wpe={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}],...re,...ge(i$)],parts:[Zt("Prose"),{kind:"text",key:"body",props:ne,style:{textStyle:"body-1",...z("body",16),lineHeight:1.7,paragraphSpacing:18}}],drop:{...oe,...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=>no(e.title),$pe={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},...Xt(e,"TitleWithButtons")}),box:[...re,...fn("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",...wt("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:{...oe,buttonsAlign:"moves the buttons only when there is no heading (4 of 128 live nodes), where the Box puts them at the end. 0 of 128 live nodes store it (the live export, 2026-10-24)",buttonsAlignPhone:"the phone's own side of `buttonsAlign`, read only with no heading; no old node stores it (it is new with the Phone view's Block alignment row), so nothing moves",buttonsAlignTablet:"the tablet's own side of `buttonsAlign`, read only with no heading; no old node stores it (it is new with the Tablet view's Block alignment row, 0 stored on the US sites 2026-11-05), so nothing moves"}};function Upe(e,o){let t=Fl(o,{to:Pe(e.sectionPaddingUnit)}),r=Fl(o,{view:"phone",to:Pe(e.sectionPaddingUnitPhone),maxPx:20});return{sectionPaddingLeft:t,sectionPaddingRight:t,sectionPaddingLeftPhone:r,sectionPaddingRightPhone:r}}var f$={top:40,bottom:64,topPhone:24,bottomPhone:36},zpe={name:"Section Header",boxProps:(e,o)=>({...Q,direction:"column",gap:0,...ie(e,f$),...Upe(e,o)}),box:[...re,...ge(f$)],parts:[Zt("SectionHeader")],drop:{...oe,...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]}),Gpe={name:"Lead Text",boxProps:e=>({...Q,direction:"column",gap:40,gapPhone:40,sectionBorder:{bottom:1},...Xt(e,"ParagraphsA")}),box:[...re,...fn("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:[Ie("eyebrow",{color:"labels",...z("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",{...z("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",...z("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",...z("body",18,16),weight:500,letterSpacing:-.01,lineHeight:1.7}},{kind:"text",key:"foundersBody",props:ne,style:{textStyle:"body-5",fontRole:"heading",...z("body",14,12),lineHeight:1.7}}]},Ie("attribution",{...z("label",12,10),letterSpacing:.24,lineHeight:1.7})]})]}],drop:{...oe}},h$={top:24,bottom:24,topPhone:24,bottomPhone:24},jpe={name:"Banner",boxProps:e=>({...Q,direction:"column",gap:0,...ie(e,h$)}),box:[...re,"contained",...ge(h$)],parts:[{kind:"group",name:"Card",keepEmpty:!0,props:{...N,gap:28,gapPhone:28,placement:"top-left",darken:60,darkenStyle:"even",sectionBorder:{width:1},...ia("surface"),...Zo(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:[Ie("eyebrow"),{kind:"text",key:"title",role:"heading",props:{...j,maxWidth:680},style:{weight:500,lineHeight:1.05,letterSpacing:-.03,case:"none",...z("headingMedium",44,32)}},{kind:"text",key:"body",props:{...j,maxWidth:680},style:{textStyle:"body-1",lineHeight:1.6,...z("body",16)}}]},{kind:"button",key:"ctaText",href:"ctaHref",variant:"primary",props:Ro}]}],drop:{...oe,...se}},jk={Prose:Wpe,TitleWithButtons:$pe,SectionHeader:zpe,ParagraphsA:Gpe,Banner:jpe},x$={Prose:()=>({eyebrow:xg.eyebrow,title:vr(xg.title),body:xg.body}),TitleWithButtons:()=>({title:vr(o$.title),buttons:t$.map(e=>({...e}))}),SectionHeader:()=>({num:Oa.num,title:vr(Oa.title),description:Oa.description,linkText:Oa.linkText,linkHref:uo.href}),ParagraphsA:()=>({eyebrow:Ef.eyebrow,lead:Ye.body,foundersHeading:Ef.foundersHeading,foundersBody:Ef.foundersBody,attribution:Ef.attribution}),Banner:()=>({...e$,ctaText:uo.text,ctaHref:uo.href}),ProcessSteps:()=>({num:Oa.num,title:vr(Oa.title)}),IntroBleed:()=>({eyebrow:Ig.eyebrow,title:vr(Ig.title),body:Ig.body,ctaText:uo.text,ctaHref:uo.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 Kpe=[{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 Vpe(e,o,t){let r=e;for(let a of Kpe)(!t||a.chrome)&&(r=a.run(r,o));return r}function g$(e,o){return Vpe(e,{metadata:o},!1)}import{isNode as Ype,isNodeList as qpe}from"efficient-easel/data";import{hidableText as Xpe,readHidable as Zpe}from"efficient-easel/draw";var y$="slotCounts",Kk=e=>!Zpe(e).hidden&&Xpe(e).trim()!=="",Jpe=e=>typeof e=="string"&&e.trim()!=="",Qpe={Flex:()=>!0,PostCard:()=>!0,ImageBlock:e=>Jpe(e.src),Text:e=>Kk(e.text),Heading:e=>Kk(e.text),Eyebrow:e=>Kk(e.eyebrow)},eue=["widthFit","width","minWidth"],I$=e=>qpe(e);function oue(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 tue(e,o){return[...new Set([N0,...Object.values($(a_,e)??{})])].some(t=>ut(o,t)!=="")}function rue(e){let o=e.props??{},t=$(Qpe,e.type);if(!t||!t(o)||tue(e.type,o)||Kc(o))return!1;let r=o[kl];if(r!=null&&r!=="")return!1;let a=Ox(o);return!eue.some(n=>a[n]!==void 0)}function aue(e){let o=0;for(let t of e)if(!pa(t.props??{})){if(!rue(t))return;o+=1}return o>0?o:void 0}function nue(e){let o={},t=new Set,r=new Set,a=(n,s)=>{if(Array.isArray(n))for(let i of n){if(!Ype(i))continue;let l=i.props.id;typeof l=="string"&&(t.has(l)?r:t).add(l);let d=s?null:oue(i.props);if(typeof l=="string"&&d){let f=aue(d);f!==void 0&&(o[l]=f)}for(let f of Fr(i))a(i.props[f],s||Fn(i.type,f))}};a(e,!1);for(let n of r)delete o[n];return o}function b$(e,o){return{...e??{},[y$]:nue(o)}}function jqe(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$(sue,{config:a,metadata:b$(s,r.content),data:r})})}import{jsx as tr,Fragment as lme,jsxs as f6}from"react/jsx-runtime";import{jsx as iue,jsxs as lue}from"react/jsx-runtime";import{createContext as cue,useContext as due}from"react";var C$=cue(!1);function tXe(){return due(C$)}function v$({grayscale:e,children:o}){let t=e===!0;return lue(C$.Provider,{value:t,children:[Object.entries(vH(e)).map(([r,a])=>iue("style",{children:a},r)),o]})}import{jsx as fue}from"react/jsx-runtime";import{createContext as pue,useContext as uue}from"react";var k$=pue(null);function sXe(){return uue(k$)}function T$({ink:e,children:o}){return fue(k$.Provider,{value:e??null,children:o})}var P$="data-lead-ink",dXe="data-header-ink";var mue="auto";function hue(e){return e.type==="IntroBleed"?pg(e.props?.layout)!=="stacked":!0}function E$(e){let o=Ad(e);return o&&RD(e)&&hue(o)?"light":null}function fXe(e){return e==="light"||e==="dark"?e:mue}import{useEasel as cme}from"efficient-easel/easel";import{useEffect as Pue}from"react";import{useEaselApi as Eue}from"efficient-easel/easel";import{find as xue,walk as _$}from"efficient-easel/data";var gue=()=>"",Iue=e=>wy(Nr([e],gue));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(Iue))])),a=wy(e);return Object.keys(r).find(n=>r[n].has(a))??null}var yue=()=>({press:[Bl(Rn),Bl(yc)],delivery:[Uv()]}),bue={},Vk=e=>R$(e,yue,bue),Sue=e=>to(e)===A0?"delivery":"press";function CXe(e,o){if(!o||to(e)===to(o))return e;let t=Vk(e[Ue]),r=Sue(e);if(!t||t===r)return e;let a=gy(e,Oo),n=r==="delivery"?Uv():Bl(to(e)?yc:Rn),s=Nr([n],yy(a));return{...e,[Ue]:s}}var wue=()=>({cards:[ui(Rn),ui(yc)],label:[mi(!1),mi(!0)]}),Cue={},vue=e=>R$(e,wue,Cue);function vXe(e,o){if(!o||e.cardStyle==="label-only"==(o.cardStyle==="label-only"))return e;let t=vue(e[Ue]),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(to(e)?yc:Rn),i=Nr([s],yy(a));return{...e,[Ue]: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 kue(e,o){let t=Yk(e),r=Yk(o);if(!t?.props||!r?.props||r.props.id!==t.props.id||to(t.props)===to(r.props))return e;let a=Vk(t.props[Ue]);if(!a||a===Vk(r.props[Ue]))return e;let n=q(e.columns);return n===void 0?e:a==="delivery"&&O$(e,Ns(n))?A$(e,Nx(n)):a==="press"&&O$(e,Nx(n))?A$(e,Ns(n)):e}function L$(e){let o=Sg.get(e);o?o.count+=1:Sg.set(e,{count:1,stop:Tue(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 Tue(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=xue(r,e.config,n.props.id);if(!s||s.node===n)return;let i=kue(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=_ue();Pue(()=>e?L$(e):void 0,[e])}function _ue(){try{return Eue()}catch{return null}}import{jsx as wg}from"react/jsx-runtime";import{useEffect as Oue}from"react";import{armScrollProgress as Aue}from"efficient-shell/format";function B$({armed:e,children:o}){return Oue(()=>e?Aue():void 0,[e]),o}function qk(){return{style:{"--sf-page-width":Wo}}}function Rue({children:e}){return wg("div",{style:qk().style,children:e})}function DXe({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(Rue,{children:r})})})}import{jsx as N$,Fragment as Lue}from"react/jsx-runtime";import{createContext as Fue,useContext as Bue}from"react";var D$=Fue({}),M$=D$.Provider;function $Xe(e){let{SectionTextParts:o}=Bue(D$);return o?N$(o,{...e}):N$(Lue,{children:e.children})}import{jsx as eme}from"react/jsx-runtime";import{useEffect as ome,useRef as tme}from"react";var H$="data-easel-overlay-portal";function Cg(e){return e.setAttribute(H$,"true"),()=>{e.removeAttribute(H$)}}import{jsx as Kue}from"react/jsx-runtime";import{useEffect as Vue,useRef as e6}from"react";import{usePreviewParts as Yue}from"efficient-easel/draw/client";import{jsx as Nue}from"react/jsx-runtime";import{createContext as Due,useContext as Mue,useMemo as Hue,useState as Wue}from"react";var $ue={partStyle:null,setPartStyle:()=>{}},W$=Due($ue);function KXe({children:e}){let[o,t]=Wue(null),r=Hue(()=>({partStyle:o,setPartStyle:t}),[o]);return Nue(W$.Provider,{value:r,children:e})}function zl(){return Mue(W$)}import{usePreviewDevice as que}from"efficient-easel/draw/client";import{shownTier as Xue}from"efficient-easel/screen/lib/document/device-fields";import{decodePartId as o6,encodePartId as Zue}from"efficient-easel/draw";import{BLOCK_ATTRIBUTE as Jue}from"efficient-easel/canvas";import{createPreviewSelectionContext as Uue}from"efficient-easel/draw/client";var $s="Scrolling Bar",{Provider:qXe,useSelection:$$}=Uue("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 xn}from"efficient-easel/canvas";import{createPreviewSelectionContext as zue}from"efficient-easel/draw/client";var{Provider:JXe,useSelection:G$}=zue("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(`[${xn}]`)?.getAttribute(xn)===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:qr(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=rn(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:Yr(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=Yr(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=Yr(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:qr(o,F[0].partKey),...T?{label:T}:{}});continue}new Set(F.map(T=>T.key)).size===1&&b.push({element:y,partId:qr(o,F[0].key)})}return b}function Zk(e,o,t){let r=e.querySelectorAll(`[${po}]`);for(let n=0;n<r.length;n+=1){let s=r[n];Qk(s,o)&&(s.removeAttribute(po),s.removeAttribute(Jk))}let a=[];for(let{element:n,partId:s,label:i}of t)n.setAttribute(po,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(xn)??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);Gue(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 Gue(e,o){return e.length===o.length&&e.every((t,r)=>t.element===o[r].element&&t.partId===o[r].partId)}function sZe(e,o){let t=e?.closest?.(`[${po}],[${an}]`),r=t?.getAttribute(po)??t?.getAttribute(an),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?.(`[${xn}]`)?.getAttribute(xn)===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?_a[r.part]:z$(o)?$s:e.getAttribute(Jk)??void 0}var q$="data-loc-pick",X$=[po,an,of,Xk,q$];function Z$(e,o){let t=e.getAttribute(po)??e.getAttribute(an);if(t)return t;let r=e.getAttribute(of);if(r)return Ps(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?.(`[${xn}]`),r=t?.getAttribute(xn);if(!t||!r)return!1;let a=new Set;for(let n of t.querySelectorAll(X$.map(s=>`[${s}]`).join(","))){if(n.closest?.(`[${xn}]`)!==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 jue}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$)&&jue(d)}else eT.delete(d);let m=d.hasAttribute(J$)?void 0:wl(f.filter(h=>Ta(o(h.partKey)??{},a).effect!=="none"));m&&n.push(Jh(d,Ta(o(m.partKey)??{},a))),f.some(h=>u(h).hover==="lift")&&(ex(d.ownerDocument),d.setAttribute(Cs,""),n.push(()=>d.removeAttribute(Cs)))}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}=Yue(),{setPartStyle:i}=zl(),l=Xue(que()),d=JSON.stringify(e),f=JSON.stringify(o),u=JSON.stringify(t),p=e6(new Map);return Vue(()=>{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:[Jue]}),()=>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(po)===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,ka(r,R)),l,{blockDrawsStyle:Ed(r,R)});i({partId:s,...oT(E),base:Tg(E,W),inks:zu(E),...(()=>{let U=bd(E);return U?{styleOwner:U}:{}})()})}xC(P.filter(E=>!bd(E)).map(E=>({element:E,partId:E.getAttribute(po)??""})),y,E=>Tg(E),E=>ka(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:Zue(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(po)??"")?.propKey??"";return{element:R,partKey:ka(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]),Kue("div",{ref:n,[av]:"",style:{display:"contents"},children:a})}import{shownTier as rme}from"efficient-easel/screen/lib/document/device-fields";import{usePreviewDevice as ame,usePreviewParts as nme}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)]"},Que={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=Que;var MZe=Ln,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 KZe(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?$(n6,e)??s6().get(e)??null:null}function i6({nodeId:e,sectionType:o,partStyles:t,children:r}){let a=tme(null),{selectedPartId:n}=nme(),{setPartStyle:s}=zl(),i=rme(ame()),l=JSON.stringify(t??null);return ome(()=>{let d=a.current,f=Gl(o);if(!d||!e||!f)return;let u=[],p=Array.from(d.querySelectorAll(`[${Ln}]`));for(let m of p){let h=Sy(f,m.getAttribute(Ln));if(!h)continue;let I=Cg(m);I&&u.push(I);let w=wc(h),S=qr(e,w);m.setAttribute(an,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;wa(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(an)}},[e,o,n,s,i,l]),eme("div",{ref:a,style:{display:"contents"},children:r})}import{jsx as tT,Fragment as l6}from"react/jsx-runtime";import{createContext as sme,useContext as c6,useMemo as ime}from"react";var rT=sme(null),d6=e=>e==null||e===""?void 0:String(e);function aT({content:e,children:o}){let t=ime(()=>Dw(e),[e]);return tT(rT.Provider,{value:t,children:o})}function cJe({id:e,children:o}){let t=c6(rT),r=d6(e);return tT(l6,{children:o(r?t?.entries.get(r):void 0)})}function dJe({id:e,children:o}){let t=c6(rT),r=d6(e);return tT(l6,{children:o(r?t?.numbers.get(r):void 0)})}var dme={SectionTextParts:i6},fme="color-mix(in oklab, var(--bg) 40%, #ffffff)",pme="12vh";function ume({style:e,children:o}){let{appState:t}=cme(p=>p),r=t.data.content,a=t.data.root;if(LD(r))return tr("div",{className:"sf-themed-content",style:{...e,background:fme,minHeight:"100vh",paddingBottom:pme},children:tr("div",{style:{background:"var(--bg)"},children:tr(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 tr("div",{className:`sf-themed-content${n?` ${_D}`:""}`,style:e,...u,...i,...d,children:tr("div",{style:{background:"var(--bg)",minHeight:"100%"},children:tr(aT,{content:r,children:o})})})}function AJe({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$(),tr(nT,{propsTheme:e,propsFonts:o,propsCornerStyle:t,propsCornerRadiusPx:r,propsHeadingCompression:a,propsHeadingTypography:n,pageBackground:s,chromeInheritsSiteBackground:i,onClickCapture:l,body:p=>f6(lme,{children:[tr(ume,{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}=fe(),W=R?e:f,U=R?o:u,Z=R?void 0:p,V=R?r===void 0?Zp[Xp(t)]:Mt(r):m,de=R?{}:D,Ce=R?a:v,ee=R?n:P,_e=[fD(nD(R?void 0:A)),pD(Jp(ee).italicStrong)].filter(Boolean).join(`
341
+ `),Oe=qk(),Ee={...b_(W),...O_(Z),...$_(ee),...Oe.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(U),...X0(R?null:E),...S_(W),...w_(W),...v_(W),...qp(W),...R_(V,de.cornerRadiusUnit),...M_(R?void 0:h,R?void 0:I,R?void 0:S),...iL(R?void 0:b,de.siteWidthUnit),...fL(R?void 0:y,de.siteGutterUnit),...uL(R?void 0:k,de.siteGutterPhoneUnit),...tF(R?void 0:F,de.blockGapUnit),...rF(R?void 0:T,de.blockGapPhoneUnit),...Sm(R?void 0:L)},"data-sf-headings":H_(Ce),"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:[_e?tr("style",{"data-sf-text-styles":"",dangerouslySetInnerHTML:{__html:_e}}):null,tr(v$,{grayscale:R?void 0:C,children:tr(M$,{value:dme,children:tr(T$,{ink:I_(W),children:d(Ee)})})})]})}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 yme=1440,bme=1080;function y6({starter:e,config:o,metadata:t,busy:r,onAdd:a}){let{mirrorHostStyles:n}=Ac(),[s,i]=hme(null),l=mme(()=>{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(Ime,{width:yme,height:bme,children:Tr(xme,{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(gme,{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 bye}from"react";import{sessionRegistry as Sye}from"efficient-easel/screen/lib/session";import{useEaselSession as wye}from"efficient-easel/screen/lib/session-context";import{currentEaselSession as Sme}from"efficient-easel/screen/lib/session";var wme={general:!0,commerce:!0,service:!0};function iT(e){let o=e?.sets;return o?Object.fromEntries(D0.map(t=>[t,o.includes(t)])):wme}function lT(e=Sme()){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"}],XJe={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"}],QJe={label:"Spec Strip",defaultProps:{cells:[{text:"",tone:"normal"},{text:"",tone:"normal"}],fill:"dark"}};function jo(e,o,t,r={}){return{type:e,props:{...o(e),id:t(e),...r}}}function C6(e,o,t){return jo(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:[jo(Y,e,o,{direction:"column",justify:"center",blockSpacing:"gap",name:"Text",sectionPaddingTop:100,sectionPaddingBottom:100,sectionPaddingLeft:w6,sectionPaddingRight:w6,content:[jo("Text",e,o,la()),jo("Text",e,o,Da()),jo("Text",e,o),jo("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:[jo(Y,e,o,{direction:"column",justify:"center",blockSpacing:"gap",name:"Text",sectionPaddingTop:100,sectionPaddingBottom:100,sectionPaddingLeft:60,sectionPaddingRight:60,content:[jo("Text",e,o,la()),jo("Text",e,o,Da()),jo("Text",e,o),jo("ButtonBlock",e,o)]}),C6(e,o,{direction:"column",name:"Image",content:[jo("ImageBlock",e,o)]})]}}),Subscribe:(e,o)=>({type:Y,props:{...e(Y),id:o(Y),direction:"column",name:"Subscribe",content:[jo("Text",e,o,Da()),jo("Text",e,o),jo("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 jo(Y,a,n,{...Hs,...o,blockSpacing:"gap",padV2:!0,name:e,sectionPaddingTop:t.top,sectionPaddingBottom:t.bottom,sectionPaddingTopPhone:t.topPhone,sectionPaddingBottomPhone:t.bottomPhone,content:r.map(s=>jo("Text",a,n,{text:s.text,...s.muted?{tone:"dim"}:{},_partStyles:{text:s.style}}))})}function k6(e){return $(_g,e)??null}import{isNodeList as cT}from"efficient-easel/data";var vQe=Object.keys(jk),Cme={Logos:N5,DocMasthead:W3,DocTabs:X3,Timeline:d3,TimelineTrack:f3},vme={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}=As({type:e,props:{...a(e),...r(),id:n(e)}},o,T6(s));return Og(i[t],a,n)}}var kme={Stats:Pme,Cards:Tme};function Tme(){let e=cn("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 Pme(){let e=cn("StatsParagraph");return e?(o,t,r)=>{let{nodes:a}=As({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=>Nr([e],(o,t)=>`${o}-seed-${t}`)[0];function Eme(e,o){if(!c4(e,o))return null;let t=$(kme,e);if(t)return t();let r=cn(e);return r?Of(e,r,0,$(Cme,e)??$(x$,e)??$(vme,e)):null}function _me(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=xo(n,i=>lo(i,a));return s===n?n:{type:n.type,props:s.props}};return a(e(o,t,r))}}function Kl(e,o=Os){let t=k6(e);return t?_me(t):Eme(e,o)}import{blockTypesIn as _6}from"efficient-easel/screen/lib/document/block-types-in";var O6=()=>({}),A6=new Map;function Ome(e){let o=A6.get(e);if(o)return o;let t=new Set,r=$(qt,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)&&Ome(l).every(i);return s.set(l,f),f};return{sets:o,offers:i}}var Ame="block-offer";function fT(e=R6()){return e.cache(Ame,()=>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(En,e),draw(e,o){e.label=$(En,o)}};import{jsx as xT}from"react/jsx-runtime";import{parseBlockWidthFit as Bme,phoneKey as Pr,tabletKey as rr}from"efficient-easel/draw";import{jsx as Rme}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 Lme=Array.from(new Set([...D6,...Sp,"GalleryItem"])),Fme={not:{context:"parentOffersPositions",is:!1}},M6={name:"cellWidth",applies:(e,o,t)=>(Lme.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=pt(e.fields??{},Object.keys(r()),Fme)},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)),Rme(me,{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:!!Aa(o.appState,e.props?.id)}function Aa(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 Nme=new Set(["Text","Heading"]),Dme=new Set(["h1","h2","h3","h4","h5","h6"]);function W6(e,o){return e==="Heading"?!0:e!=="Text"?!1:typeof o.tag=="string"&&Dme.has(o.tag)?!0:ms(o,"text").textStyle?.startsWith("heading-")===!0}var gn={not:{context:"blockOutsideBox",is:!0}},$6={all:[gn,{not:{context:"boxSharesWidth",is:!0}}]},U6={all:[gn,{not:{context:"boxSharesWidthPhone",is:!0}}]},z6={all:[gn,{not:{context:"boxSharesWidthTablet",is:!0}}]};function V6(e,o,t){return{any:[{field:rr(e),is:o},{all:[{field:rr(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}}]}]},Mme=[[["_gBlockSize","minWidth",rr("minWidth"),Pr("minWidth"),"maxWidth",rr("maxWidth"),Pr("maxWidth")],gn],[["widthFit"],$6],[[rr("widthFit")],z6],[[Pr("widthFit")],U6],[["width"],{all:[$6,{field:"widthFit",is:"fixed"}]}],[[rr("width")],{all:[z6,V6("widthFit","fixed")]}],[[Pr("width")],{all:[U6,Y6("widthFit","fixed")]}]],G6=V6("textFit","shrink",q6),j6=[[["_gText","textFit",rr("textFit"),Pr("textFit")],gn],[["minFont"],{all:[gn,q6]}],[[rr("minFont")],{all:[gn,G6]}],[[Pr("minFont")],{all:[gn,Y6("textFit","shrink",G6)]}]],Rg=(e,o)=>Aa(o.appState,e.props?.id),Lg=e=>!!e&&typeof e.type=="string"&&wp(e.type)!==null,mT=e=>(e.type==="Flex"||e.type==="HeroGroup")&&Kr(e.type,e.props?.direction)==="row",hT=e=>{let o=Bme(e);return o!==void 0&&o!=="fit"},Hme={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?.[rr("columns")])!==""||my({...t.props,direction:"row"})!=="")return!0;let r=RE(t.props?.[rr("share")])??t.props?.share;return fy(r)!==""&&!hT(e.props?.[rr("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)}},Wme=e=>/^_[gds][A-Z]/.test(e);function $me(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&&!Wme(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 Ume(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 zme.has(e)&&r.includes("_gSpacing")?K6(o,r.indexOf("_gSpacing"),t):{...o,...t}}var zme=new Set(["Text","Heading"]);function Gme(e,o){let{_gText:t,...r}=o;return $me(e,"_gText",r)??{...e,...o}}function jme(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",rr("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=Nme.has(o),{text:a}=t.blockSizeFields(r?{tablet:!0,textFit:o==="Heading"?"shrink":"wrap"}:{}),{size:n}=t.blockSizeFields({tablet:!0}),s=Ume(o,e.fields??{},kt(n,Mme));if(r){let i=kt(a,j6);if(s=Gme(s,i),o==="Text"){let l=kt(t.blockSizeFields({tablet:!0,textFit:"shrink"}).text,j6),d=jme(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,Dr(e,{...Hme,textWrapsByDefault:i=>!W6(o,i.props??{})})},draw(e,o){Kme(e,o)}};function Kme(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(Vme,{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 Vme({size:e,sectionSize:o,atEdge:t,canvasAttrs:r,inCell:a,fillsPhone:n,widens:s,children:i}){let l=iu(),d=$a(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 nhe,jsx as Dg}from"react/jsx-runtime";import{jsx as tt,Fragment as bT}from"react/jsx-runtime";import{createContext as Vl,useContext as Er}from"react";var Yme=new Set(["Flex","Grid"]);function In(e){return typeof e=="string"&&Yme.has(e)}var Us="contentWidth",gT="full",IT="content";function Lf(e){let o=e?.[Us];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 In(e)&&Fg(jc(o,!1))?as({}):as(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=In(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 Fr({type:d?.type,props:f})){let w=f[I],S=r(w,h,p,!1,l||Fn(d?.type,I));if(S!==void 0)return S}}};return r(e,{insideGutter:!1,inBox:!1},t,!0,!1)}var qme=" [--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))))]",Xme="[--sf-edge-g:0px] [--sf-edge-al:var(--sf-edge-l)] [--sf-edge-ar:var(--sf-edge-r)]",Zme="[--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]",Jme=`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=Xa(e.site?"site":"box"),s=r.classes.includes(n.className.split(" ")[0]);return{className:`${e.gutter?`${n.className} ${n.edge}${qme}`:`${Xme}${s?` ${n.className}`:""}`} ${Zme}`,style:o}}function yeo(e){let{className:o,style:t}=oU(e);return{className:`${o} ${Jme}`,...Object.keys(t).length?{style:t}:{}}}var Qme="[--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 ehe="--sf-edge-beyond";function tU(e){return`max(0px,calc((${e===null?Qc:`min(${Qc},${e})`} - ${Wo}) / 2))`}var ohe=`${Qme} 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 beo(e){let{className:o,style:t}=oU(e);return{className:`${o} ${ohe}`,style:{...t,[ehe]:e.beyond??"0px"}}}var Ff=Vl(!1);function Oeo(){return Er(Ff)}function Aeo({children:e}){return tt(Ff.Provider,{value:!0,children:e})}var yT=Vl(!1);function ST({children:e}){return tt(yT.Provider,{value:!0,children:e})}var rU=Vl(null);function wT({ground:e,children:o}){return tt(rU.Provider,{value:e,children:o})}var CT=Vl(!1);function the(){return Er(CT)}function aU({atTop:e,nested:o}){return tt(bT,{children:the()?o:e})}var Bf=Vl(void 0);function nU({children:e}){return tt(Bf.Provider,{value:null,children:e})}function vT(){return Er(Bf)===void 0&&!Er(CT)&&!Er(Ff)}function Yl({own:e,followed:o}){return tt(bT,{children:vT()?e():o()})}var sU=Vl(null);function iU({value:e,children:o}){return tt(sU.Provider,{value:e,children:o})}function lU({draw:e}){return tt(bT,{children:e(Er(sU))})}function Reo(){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=Ht(),k=!!(i&&b),F=k?p:Jo(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=rhe(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,U=d?tt(CT.Provider,{value:!0,children:tt(Bf.Provider,{value:W,children:I})}):I,Z=v?tt(Ff.Provider,{value:!0,children:U}):U,V=s&&b?kL(s.values):null,de=T&&Object.keys(T).length>0?T:null,Ce=tt("div",{...V?null:de,className:!V&&F?C?`${C} ${F}`:F:C,style:V||!u?A:{...A,...u},"data-tab-label":n,children:S?tt(yT.Provider,{value:!1,children:v&&!m?tt("div",{className:L?`${r} ${L}`:r,children:Z}):Z}):Z}),ee=V?tt("div",{...de,className:F?`${V.className} ${F}`:V.className,style:u?{...V.style,...u}:V.style,children:Ce}):Ce;return y.scope(i&&b?tt("div",{className:Jo(_m,y.className),style:{display:"contents",...i},...y.attrs,children:ee}):ee)}function rhe(e,o){return e?{...o,paddingLeft:0,paddingRight:0}:o}import{jsx as ahe}from"react/jsx-runtime";function dU({children:e}){return ahe(me,{className:G5,children:e})}function she({side:e,children:o}){return vT()?Dg(dU,{children:Dg(me,{className:j5(e),children:o})}):Dg(nhe,{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(she,{side:r,children:o(t)}):o(t)}}};var pU=(e,o)=>e.fields?.[o]?.type==="slot",ihe=(e,o)=>pU(o,Ue)||Up(e).some(t=>pU(o,t)),uU={name:"cardTemplateOnInsert",applies:(e,o,t)=>ihe(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 zs,jsx as so,jsxs as kT}from"react/jsx-runtime";import{createContext as TT,useContext as yn,useId as uhe}from"react";import{REPEAT_ATTRIBUTE as mhe,REPEAT_INDEX_ATTRIBUTE as hhe}from"efficient-easel/draw";import{jsx as Zeo}from"react/jsx-runtime";import{createContext as dhe,useContext as gU,useMemo as fhe}from"react";var mU="title";function hU(e){return`${e}Alt`}function lhe(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}=lhe(n);t[r]=s,t[hU(r)]=i}}return t}function che(e,o){return typeof o!="string"?o.flatMap(t=>che(e,t)):e===$t||!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=dhe(null);function phe(){return gU(IU)?.record??null}function ooo(e){let o=phe();return o!==null&&o.type===e?o:null}function yU(){let e=gU(IU);return fhe(()=>e&&e.record.type!==$t?xU(e.record,e.dateWords):null,[e])}function moo({props:e,editing:o,children:t}){let r=yn(Nf);return!o&&ky(e,r?.row)?null:so(zs,{children:t})}var Hg=TT(null);function hoo({field:e,children:o}){let t=yn(Hg);return so(zs,{children:o(t&&t.field===e?t.id:void 0)})}function xhe(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),ghe={label:"text-[length:var(--size-label,12px)]"},Ihe=`flex min-h-6 items-center border border-dashed border-line px-2 py-1 ${ghe.label} text-fg-dim`;function xoo({name:e,label:o,editing:t}){let r=yn(Mg)?.(e),a=du()!=="";return r!=null&&r!==!1?a?so(me,{className:"contents",children:r}):so(zs,{children:r}):t?so(me,{className:Ihe,children:c("Shown by the section: {name}",{name:o?.trim()||e})}):null}function goo(){return yn(Nf)}function PT({type:e,props:o,children:t}){let r=yn(Nf),a=yU(),n=r?.row??a;return so(zs,{children:t(i_(e,o,n,r?.ownerType,r?.fields,r?.slot),r,n)})}function yhe({attrs:e,selected:o,hover:t,action:r,titleField:a,children:n}){let s=uhe(),{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:[so("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}),so(Hg.Provider,{value:f,children:n})]})}function Ioo({ownerId:e,ownerType:o,slot:t=Ue,Template:r,rows:a,items:n,fields:s,states:i,stateLine:l,actions:d,pressTitles:f,previewHover:u,fallback:p,copyAttrs:m,wrapCopy:h,rowKey:I,hostParts:w,children:S}){let v=yn(Nf),b=yn(Hg),y=yn(Mg);if(!r||(r.blockCount??0)<=0)return so(zs,{children:p});let k=v!==null,F=o_(o),T=u??v?.previewHover,D=r.blockCount===1?so(SO,{children:so(r,{className:xO})}):so(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},U=yv(R)?kT(zs,{children:[D,l==="under"?so("span",{"aria-hidden":"true",className:k2}):Iv(R)?kT("span",{"aria-hidden":"true",className:T2,children:[so("span",{className:P2}),so("span",{className:E2})]}):so("span",{"aria-hidden":"true",className:v2})]}):D,Z={[mhe]:`${e}:${t}`,[hhe]:E,...typeof m=="function"?m(W):m},V=d?.[E],de=O2(R,l),Ce=V?so(yhe,{attrs:{...Z,...de},selected:R?.selected===!0,hover:l!=="under",action:V,titleField:xhe(f,A),children:U}):b?so("div",{...Z,...de,children:so(Hg.Provider,{value:null,children:U})}):so("div",{...Z,...de,children:U}),ee=h?h(Ce,W):Ce;return so(Nf.Provider,{value:W,children:w?so(Mg.Provider,{value:_e=>w(W,_e),children:ee}):y?so(Mg.Provider,{value:null,children:ee}):ee},L(W,E))});return so(zs,{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(me,{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(me,{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 bhe}from"react/jsx-runtime";var She="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(me,{className:sx,children:t[Xd]==="empty"?null:o(t)}):o(t)}},_U={name:"headBox",applies:(e,o,t)=>e===She&&typeof t?.render=="function",draw(e){let o=e.render;e.render=t=>PU(t,qd)?bhe(me,{className:ix,children:[TU(lx,{}),o(t)]}):o(t)}};import{createElement as whe}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(pa(n))return null;let s=Kc(n),i=kO(s,UA(n),{sectionClassName:Kc(n,{atSectionLine:!0}),line:r});return whe(wO.Provider,{value:i},a(n))}}};import{jsx as The}from"react/jsx-runtime";import{createContext as RU,createElement as AU,useContext as Che}from"react";var LU=RU(null),vhe=RU(!1),Koo=LU.Provider;function khe(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=Che(LU);return o||khe(e,r?.selected??null,r?.known??[])?t:AU("div",{hidden:!0,style:{display:"none"}},AU(vhe.Provider,{value:!0},t))}var Phe="Flex",BU={name:"showFor",applies:(e,o,t)=>e===Phe&&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 The(FU,{name:r,editing:a,children:o(t)})}}};var NU=xu.mediaFields,Ehe=e=>Vy(e)?e.src:e;function _he(e,o){let t=o;for(let r of $(NU,e)??[])t=ZO(t,r,Ehe);return t}var DU={name:"mediaValues",applies:(e,o,t)=>typeof t?.render=="function"&&($(NU,e)?.length??0)>0,draw(e,o){let t=e.render;e.render=r=>t(_he(o,r))}};import{jsx as Df,Fragment as MU,jsxs as HU}from"react/jsx-runtime";var Ohe="!grow-0 !shrink-0 !basis-0",Ahe=["[.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(" "),Rhe="flex flex-col w-full min-w-0 [&>*]:grow";function WU({anchor:e}){let o=zn(e),t=$a(),r=du();return o?Df("span",{id:o,className:Jo(t?`sf-section-anchor ${Ohe} ${Ahe}`:"sf-section-anchor",r),"aria-hidden":"true"}):null}function Lhe({anchor:e,copiesInBox:o,children:t}){let r=iu()?.columnsRow===!0,a=bO(),n=zn(e)!=="";return o?Df(MU,{children:t}):r&&!a&&n?HU(me,{className:Rhe,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(Lhe,{anchor:r.anchor,copiesInBox:Ft(o,r),children:t(r)})}};import{jsx as Fhe}from"react/jsx-runtime";var UU=Object.fromEntries(yE.map(e=>[e,"picture"])),Bhe={[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||Ft(o,a)?r(a):Fhe(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,$(Bhe,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,$(UU,o)??"block",t,o),draw:(e,o)=>jU(e,o)};import{jsx as Nhe}from"react/jsx-runtime";var YU=(e,o)=>!ru.has(e)&&!!o&&typeof o.render=="function";function Dhe(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=Dhe(o),n=e.drawsPictures===!0;t.render=s=>{let i=Sl(s);return!i||Ft(o,s)?r(s):Nhe(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 Mhe}from"react/jsx-runtime";import{createElement as Hhe}from"react";var _T=["sectionHeightMode","sectionHeightModeTablet","sectionHeightModePhone"];function Whe(e,o){let t=e.props??{};return _T.some(r=>t[r]==="fill")?!0:("parent"in o?o.parent:Aa(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=>Whe(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(Ft(o,r))return t(r);let a=yO(r);return a?Mhe(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=Ft(o,r)?null:vO(IO(r),gO(r).join(" "));return Hhe(CO.Provider,{value:a},t(r))}}};import{jsx as $g}from"react/jsx-runtime";import{PIN_ATTR as QU,PIN_FRAME_ATTR as $he}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=zhe(r.fields??{},kt(n.stickFields({intro:s,screens:t,above:t}),Ghe(s))),t&&Dr(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(me,{...u.attrs,style:u.style,children:u.attrs[QU]===""?$g("div",{[$he]:"",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],Uhe="_gStick";function zhe(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{[Uhe]: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 Ghe(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:Ja,is:!0}}]}),[n,s,i]=TS;return[[["stickTopDistance"],t("stickTop")],[["stickTopDistanceTablet"],Mr(["stickTopTablet","stickTop"],o,t)],[["stickTopDistancePhone"],Mr(["stickTopPhone","stickTopTablet","stickTop"],o,t)],[[n],a(r("stickTop"))],[[s],a(Mr(["stickTopTablet","stickTop"],o,r))],[[i],a(Mr(["stickTopPhone","stickTopTablet","stickTop"],o,r))],[[es],zi],[[Ja],zi]]}import{jsx as jhe}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?jhe(me,{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(Dn,a):r()}},draw(e,o){let t=By.has(o),r=e.render;e.render=a=>{let n=X_(t?{...a,sectionAccent:Dn(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 Ft(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(Wo)}),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(Dn,a)})}};import{jsx as yo}from"react/jsx-runtime";var iz=null;function RT(e){iz=e}function lz(){return iz}import{jsx as Khe}from"react/jsx-runtime";var Vhe="mx-auto w-full max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)]",cz=Xa("box").frame,Mf=`${Vhe} ${cz}`,Yhe=Xa("site").frame;function dro(e){return e?Yhe:cz}var qhe="mx-auto w-full max-w-[1280px] px-[60px]",Xhe="max-[960px]:px-6",fro=`${qhe} ${Xhe}`;function pro({contained:e,className:o="",style:t,pad:r,fillWidth:a="w-full",children:n}){return Khe(cU,{contained:e,framedClass:`${Mf} ${o}`,fillClass:`${a} ${o}`,columnClass:Mf,style:t,pad:r,children:n})}var ql="--sf-sw-site",Zhe="--sf-sw-content",Jhe="--sf-bg-cap",Qhe="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:yo(me,{className:o,children:t}),exe=`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:yo(me,{className:"contents",style:{[ql]:Wo},children:yo(me,{className:Qhe,style:{[Zhe]:o},children:e})})}var oxe="--sf-content-cap",txe="contents max-view-wide:[--sf-content-cap:none]";function rxe({content:e,contentMax:o,contentMaxUnit:t},r){return e==="full"?null:o!==null?BT(o,r,t):r==="content"?null:`var(${ql})`}function axe(e,o){return o===null?e:yo(me,{className:"contents",style:{[ql]:Wo},children:yo(me,{className:txe,style:{[oxe]:o},children:e})})}var pz=`var(${ql},${Wo})`,bn=(e,o,t="")=>e==="content"?yo(me,{className:t||void 0,style:Ui(Wo),children:yo(wT,{ground:pz,children:o})}):o;function uz(e,o,t,r,a){if(LT(t))return bn(r,FT(t,fz,yo(ST,{children:e({...o,contained:!0})})),a);if(t.content==="full")return bn(r,e({...o,contained:!1}),a);let n=Hf(t,r);return r==="content"&&n===null&&!t.own?e({...o,contained:!0}):bn(r,Wf(yo(ST,{children:e({...o,contained:!0})}),n),a)}function nxe(e,o,t,r,a){if(t==="hero"){let i=Wf(e(o),Hf(r,r.band));return r.band==="full"?yo(me,{style:{[bm]:"none",[hS]:"initial",[xS]:"initial"},children:i}):r.band==="content"?yo(me,{style:Sm(!0),children:i}):i}let n=r.band??"full",s=Wa(o,{atSectionLine:!a});if(t==="rawMarkup"){if(r.content==="full")return bn(n,e(o),s);let i=r.contentMax===null?Wo:BT(r.contentMax,n,r.contentMaxUnit);return yo(me,{className:"contents",style:{[ql]:Wo},children:bn(n,yo(me,{className:s||void 0,style:Ui(i),children:e(o)}),s)})}if(t==="scrollOver"){let i=r.content==="full",l=LT(r)?FT(r,exe,e({...o,fullWidth:!1})):Wf(e({...o,fullWidth:i}),i?null:Hf(r,n));return n==="content"?yo(me,{className:"contents",style:{[Jhe]:Wo},children:l}):l}switch(t){case"both":return bn(n,axe(e(o),rxe(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"?yo(me,{className:s?`${Mf} ${s}`:Mf,children:d}):d:bn(n,d,s)}default:return bn(n,Wf(e(o),Hf(r,n)),s)}}function dz(e,o,t,r,a){let n=a===Y?"edge":"by-box",s=i=>nxe(e,o,t,r,i);return n==="edge"?s(!0):Wa(o)===Wa(o,{atSectionLine:!0})?s(!1):yo(su,{line:n,draw:s})}function sxe(e,o){let t=$(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):yo(lU,{draw:h=>h?.background==="content"?yo(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(!In(o))return w;let S=Lf(a),v=S===void 0?I.content:S?"content":"full";return v===I.content?w:yo(aU,{atTop:w,nested:uz(r,a,{...I,content:v,own:!1},I.band??"full",Wa(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 yo(Yl,{own:()=>yo(iU,{value:{background:m.band,content:m.content},children:dz(r,a,t,m,o)}),followed:i})}}var ixe={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:$(Yi,o)==="rawMarkup"}),a=In(o)?t.boxGutterFields():{},n={...e.fields,...a,...r},s=In(o)?gz(o,e,n,[Us]):n;Dr(e,{heldByANode:Ag}),In(o)&&Dr(e,{runsEdgeToEdge:(i,l)=>Fg(jc(i.props??{},c_(l.appState,i.props?.id)?.inCopy!==!1))}),e.fields=pt(s,[Be.background,Be.content],In(o)?ixe:Af)},draw(e,o){sxe(e,o)}};function lxe(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 cxe=new Set(["Heading","Text","ImageBlock","ButtonBlock"]),hz={name:"containedWidth",applies:(e,o,t)=>cxe.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=>lxe(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"})}}},dxe={not:{context:"inHeroGroupRow",is:!0}},xz={name:"buttonAlignInRow",applies:e=>e==="ButtonBlock",panel(e){let o=e;o.fields=pt(o.fields??{},["align"],dxe),Dr(o,{inHeroGroupRow:(t,r)=>{let a=Aa(r.appState,t.props?.id);return!!a&&a.type==="HeroGroup"&&Kr("HeroGroup",a.props?.direction)==="row"}})}};function fxe(e){return Object.values(e).some(o=>!!o&&typeof o=="object"&&o.type==="slot")}var pxe={any:[]},uxe={all:[{not:{context:"outsideBox",is:!0}},{not:{context:"insideSiteGutter",is:!0}}]},mxe={not:{context:"widthCappedByParent",is:!0}};function gz(e,o,t,r=["widthMode"]){if(e==="ButtonBlock")return pt(t,["_gWidth",...r],pxe);if(fxe(t)){let a=(n,s)=>Q6(s.appState?.data?.content,n.props?.id,Ng(lz()));return Dr(o,{outsideBox:(n,s)=>a(n,s)?.inBox!==!0,insideSiteGutter:(n,s)=>a(n,s)?.insideGutter}),pt(t,r,uxe)}return Dr(o,{widthCappedByParent:(a,n)=>"parent"in n?VE(n.parent):H6({props:a.props??{}},n)}),pt(t,r,mxe)}var hxe=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)&&(hxe.has(e)||o.isHostBlock(e)),panel(e,o,t){let r=t.assignSectionGroups;e?.fields&&(e.fields=r(e.fields,o))}},xxe=new Set(["HeroSlide","HeroGroup"]),yz={name:"blockGroups",applies:(e,o,t)=>xxe.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 gxe=new Set(["Flex","Grid"]),bz=e=>Object.entries(e.fields??{}).filter(([,o])=>o?.type==="slot").map(([o])=>o),Ixe=(e,o)=>e.fields?.[o]?.ownPictures===!0,yxe=["blockCount","blockIds"],bxe=new WeakMap,Sxe=new WeakMap;function wxe(e,o){let t=o?Sxe:bxe,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 yxe)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)=>!gxe.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]=wxe(s,Ixe(e,n)))}return t(a)}}};var Cxe=new Set(["Form","Stats","Logos"]);function wz(){return[...Cxe]}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 vxe=[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 vxe)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 kxe,DurationIcon as Txe}from"efficient-easel/icons";import{MOTION_TIMING as vz}from"efficient-shell/format";import{useSelectedHost as Pxe}from"efficient-easel/easel";function Xl(e){let{min:o,max:t,step:r,default:a}=vz[e].duration;return $o("Duration",MT(Txe,{}),o,t,r,a,"s")}function Zl(e){let{min:o,max:t,step:r,default:a}=vz[e].delay;return $o("Delay",MT(kxe,{}),o,t,r,a,"s")}function Jl(e,o){let t=e.render,r=a=>{let n=Pxe();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 Exe,DirectionIcon as _xe,DirectionLeftIcon as Oxe,DirectionRightIcon as Axe,DirectionUpIcon as Rxe,EntranceBounceIcon as Lxe,EntranceFadeIcon as Fxe,EntranceFlipIcon as Bxe,EntranceGlideIcon as Nxe,EntranceRevealIcon as Dxe,EntranceRiseIcon as Mxe,EntranceScaleIcon as Hxe,EntranceSpinIcon as Wxe,NoSymbolIcon as $xe}from"efficient-easel/icons";import{NoControlMark as Uxe,noControlField as zxe}from"efficient-easel/screen/lib/document/panel-no-control-mark";import{customize as Gxe,group as jxe}from"efficient-easel/screen/lib/document/box-fields";import{ENTRANCE_FROM as Kxe,ENTRANCE_FROM_DEFAULT as Tz,ENTRANCE_KINDS as Pz,ENTRANCE_KINDS_WITH_FROM as Vxe,entranceAttrs as Yxe,playEntrance as qxe,readEntrance as Xxe}from"efficient-shell/format";var Zxe={none:"None",fade:"Fade",rise:"Rise",scale:"Scale",glide:"Glide",bounce:"Bounce",flip:"Flip",reveal:"Reveal",spin:"Spin"},Jxe={top:"Top",bottom:"Bottom",left:"Left",right:"Right"},Qxe={top:()=>Lo(Exe,{}),bottom:()=>Lo(Rxe,{}),left:()=>Lo(Axe,{}),right:()=>Lo(Oxe,{})},Ez="Entrance",WT=Pz.filter(e=>e!=="none"),_z=e=>({any:[{field:Tt.kind,in:e},{all:[{field:Tt.kind,set:!1},{field:Pc,in:e}]}]}),kz=(e,o)=>Mr(ht.slice(0,ht.indexOf(e)+1).reverse().map(t=>ve(Tt.kind,t)),t=>({field:t,set:!0}),t=>t===Tt.kind?_z(o):{field:t,in:o}),ege={any:[_z(WT),...ht.slice(1).map(e=>({field:ve(Tt.kind,e),in:WT}))]},oge=ht.flatMap(e=>[[[ve(Tt.from,e)],kz(e,Vxe)],[[ve(Tt.duration,e),ve(Tt.delay,e)],kz(e,WT)]]),tge={none:()=>Lo($xe,{}),fade:()=>Lo(Fxe,{}),rise:()=>Lo(Mxe,{}),scale:()=>Lo(Hxe,{}),glide:()=>Lo(Nxe,{}),bounce:()=>Lo(Lxe,{}),flip:()=>Lo(Bxe,{}),reveal:()=>Lo(Dxe,{}),spin:()=>Lo(Wxe,{})},Oz="data-entrance-tile";function rge({kind:e}){let{attrs:o}=Yxe(Xxe(e,Tz));return Lo("span",{className:"sf-entrance-stage",[Oz]:e,children:Lo("i",{...o,children:tge[e]()})})}var age=(e,o)=>{let t=e.querySelector(`[${Oz}="${o}"] > i`);t&&qxe(t)},nge="Effect",sge=()=>am(Tt.kind,{label:Ez,tileWord:nge,values:Pz,fallback:"none",word:e=>Zxe[e],picture:e=>Lo(rge,{kind:e}),read:(e,o)=>Ec(e,o).kind,preview:age}),HT=(e,o)=>rm(Tt[e],o,(t,r)=>Ec(t,r)[e]),ige=Kxe.map(e=>({label:Jxe[e],value:e,picture:Qxe[e]()}));function _r(){let e={[eg]:jxe(Ez,{dot:ege}),...sge(),[Pc]:zxe({type:"custom",render:()=>Lo(Uxe,{})},"always"),_cEntrance:Gxe(),...HT("from",qi("From",Lo(_xe,{}),ige,Tz)),...HT("duration",Xl("entrance")),...HT("delay",Zl("entrance"))};return kt(e,oge)}import{jsx as ar}from"react/jsx-runtime";import{EntranceRevealIcon as lge,NoSymbolIcon as cge,PercentIcon as Az,ScrollFadeInIcon as dge,ScrollFadeOutIcon as fge,ScrollMoveDownIcon as pge,ScrollMoveUpIcon as uge,ScrollParallaxIcon as mge,ScrollZoomInIcon as hge,ScrollZoomOutIcon as xge,ZoomInIcon as gge}from"efficient-easel/icons";import{customize as Ige,group as yge}from"efficient-easel/screen/lib/document/box-fields";import{SCROLL_EFFECTS as Lz,SCROLL_EFFECTS_WITH_ZOOM as bge,SCROLL_END as Sge,SCROLL_START as wge,SCROLL_ZOOM as Cge}from"efficient-shell/format";var Fz="Scroll",vge={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"},kge={none:()=>ar(cge,{}),"zoom-in":()=>ar(hge,{}),"zoom-out":()=>ar(xge,{}),"fade-in":()=>ar(dge,{}),"fade-out":()=>ar(fge,{}),"move-up":()=>ar(uge,{}),"move-down":()=>ar(pge,{}),reveal:()=>ar(lge,{}),parallax:()=>ar(mge,{})},Tge="Effect",Bz=Lz.filter(e=>e!=="none"),Rz=(e,o)=>Mr(ht.slice(0,ht.indexOf(e)+1).reverse().map(t=>ve(zo.effect,t)),t=>({field:t,set:!0}),t=>({field:t,in:o})),Pge={any:ht.map(e=>({field:ve(zo.effect,e),in:Bz}))},Ege=ht.flatMap(e=>[[[ve(zo.zoom,e)],Rz(e,bge)],[[ve(zo.start,e),ve(zo.end,e)],Rz(e,Bz)]]),_ge=()=>am(zo.effect,{label:Fz,tileWord:Tge,values:Lz,fallback:"none",word:e=>vge[e],picture:e=>kge[e](),read:(e,o)=>Ta(e,o).effect}),$T=(e,o,t,r,a)=>rm(e,$o(t,r,a.min,a.max,a.step,a.default,"%"),(n,s)=>Ta(n,s)[o]);function Gs(){let e={[bl]:yge(Fz,{dot:Pge}),..._ge(),[Yh]:Ige(),...$T(zo.zoom,"zoom","Zoom",ar(gge,{}),Cge),...$T(zo.start,"start","Start",ar(Az,{}),wge),...$T(zo.end,"end","End",ar(Az,{}),Sge)};return kt(e,Ege)}import{jsx as ct}from"react/jsx-runtime";import{AccentIcon as Oge,ContrastIcon as Age,EyeIcon as Rge,ExpandIcon as Lge,FinishIcon as Fge,ImagesIcon as Bge,NoSymbolIcon as Dz,HoverLiftIcon as Nge,HoverNextImageIcon as Dge,HoverRotateIcon as Mge,HoverZoomIcon as Mz,OpacityIcon as Hge}from"efficient-easel/icons";import{customize as Wge,describedAs as Hz,group as $ge}from"efficient-easel/screen/lib/document/box-fields";import{effectTiles as Wz}from"efficient-easel/screen/lib/document/effect-tiles";import{deviceField as Ko}from"efficient-easel/screen/lib/document/device-fields";import{NoControlMark as Uge,noControlField as zge}from"efficient-easel/screen/lib/document/panel-no-control-mark";var Gg=e=>Ko("desktop",$ge("Hover",{dot:e})),$z=()=>Ko("desktop",Wge()),Gge="What this does when a shopper points at it, or taps it on a phone.",jge="What this picture does when a shopper points at it. Black and white shows it in grey until then. A phone shows its colour.",Kge="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.",Vge="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.",Yge="When this shows. On card hover shows it while a shopper points at the card. A phone always shows it.",qge="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.",Xge="Which of the product's pictures the card shows.",Zge="Same finish shows the photos of the finish the card shows, else the first group.",Jge="Whole card hides the words under the photo. Picture keeps the words and swatches in view.",Qge={none:()=>ct(Dz,{}),nextImage:()=>ct(Dge,{}),rotate:()=>ct(Mge,{}),zoom:()=>ct(Mz,{}),lift:()=>ct(Nge,{}),mono:()=>ct(Age,{})};function UT(e,o){let t=Wz({label:c("Hover effect"),options:e.map(r=>({value:r,label:c(di[r]),picture:Qge[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:Dt,in:ey.filter(e=>e!=="none")}),[Dt]:Ko("desktop",{...UT(ey,"none"),description:Gge})}}function zz(e){let o=gE(e),t=Ep(),r=SF(lE);return{[lr]:Gg({any:[o,t]}),[ho.kind]:Ko("desktop",{...Jl(UT(nE,e),(a,n)=>hE(n??{},e)),description:qge}),...zT(t),[sE]:zge({type:"custom",render:()=>ct(Uge,{})},"always"),_cHover:$z(),[ho.angle]:Ko("desktop",co(Jl(r,a=>xE(a)),o)),[ho.duration]:Ko("desktop",co(Xl("hover"),o)),[ho.delay]:Ko("desktop",co(Zl("hover"),o))}}function zT(e){let o=Ot("Type",ct(Bge,{}),cE.map(a=>({value:a,label:dE[a]})),Pp.kind),t=qi("Group",ct(Fge,{}),fE.map(a=>({value:a,label:pE[a]})),Pp.group),r=qi("Covers",ct(Lge,{}),uE.map(a=>({value:a,label:mE[a]})),Pp.cover);return{[ho.mediaKind]:Ko("desktop",co({...o,description:Xge},e)),[ho.mediaGroup]:Ko("desktop",co({...t,description:Zge},e)),[ho.cover]:Ko("desktop",co({...r,description:Jge},e))}}function GT(e,o="",t=ny.includes(o)){let r=sy(e),a=vE(e);return{[lr]:Gg(r),[ho.kind]:jT(IE,e,jge),...ny.includes(o)?zT(Ep()):{},_cHover:$z(),...t?Gz():{},[ho.duration]:Ko("desktop",co(Xl("hover"),a)),[ho.delay]:Ko("desktop",co(Zl("hover"),a))}}function Gz(e=!1){let o=a=>e?a:co(a,CE()),t=$o("Zoom",ct(Mz,{}),fi.min,fi.max,fi.step,fi.min,fi.unit),r=$o("Darken on hover",ct(Hge,{}),Va.min,Va.max,Va.step,Va.fallback,Va.unit);return{[ty.zoom]:Ko("desktop",o(t)),[ty.darken]:Ko("desktop",o(r))}}function jT(e,o,t){let r=Ko("desktop",{...Jl(UT(e,o),a=>SE({[Dt]:a},o,e)),description:t});return Object.assign(r,{[jz]:o})}var jz="sfPictureResting",Nz=new WeakMap;function cno(e,o,t){let r=e[ho.kind],a=r?.[jz];if(!r||!a)return e;let n=o.props?.[Dt]==="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,[ho.kind]:jT(oy,a,Kge)},Nz.set(e,i)),i}var eIe="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.",oIe={none:()=>ct(Dz,{}),[ZI]:()=>ct(Oge,{})},dno=Ko("desktop",{...Hz(Wz({label:c("Hover effect"),options:JI.map(e=>({value:e,label:c(QI[e]),picture:oIe[e]()})),fallback:"none"}),{type:"select",label:"Hover effect",options:JI.map(e=>({value:e,label:QI[e]}))}),description:eIe}),tIe=Ko("desktop",{...qi("Show",ct(Rge,{}),[{value:ay,label:"Always"},{value:ry,label:"On card hover"}],ay),description:Yge});function Kz(){let e={any:[sy("none"),{field:Dt,is:ZI},{field:On,is:ry}]},{[lr]:o,[ho.kind]:t,...r}=GT("none","",!0);return{[lr]:Gg(e),[ho.kind]:t,[On]:tIe,...zT(Ep()),...r,...Gz(!0)}}var fno=jT(oy,"none",Vge);import{jsx as $f}from"react/jsx-runtime";import{isNodeList as sIe}from"efficient-easel/data";import{useEasel as iIe}from"efficient-easel/easel";import{hiddenInView as lIe,hiddenKeyOf as VT,hidePatch as cIe,slotChildName as dIe,slotChildRowName as fIe}from"efficient-easel/draw";var jg=null;function KT(e){jg=e}function Vz(){return!!(jg&&jg.state().lockHolder)}function js(){return jg!==null}var rIe=new Set(["BookingBox","SubmitBox"]);function aIe(e){return typeof e=="string"&&rIe.has(e)}var nIe=g1(aIe,Vz);function Kg(e,o){return nIe(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 pIe}from"efficient-easel/screen/lib/document/device-fields";import{NoControlMark as uIe}from"efficient-easel/screen/lib/document/panel-no-control-mark";var Yz="notCardOfTemplate",qz={not:{context:Yz,is:!0}},YT={any:[Ap,qz]},Rno={[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 sIe(o)?o:[]}var Xg=(e,o)=>lIe(e.props??{},o),mIe=(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 hIe(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):mIe(a,t);return Yg(e).flatMap(a=>r(a)?o(a)?[]:[a,...qg(a,o,t)]:qg(a,o,t))}function xIe(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=xIe(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?{}:cIe(a,r,!t))}function gIe(e,o,t){return t==="desktop"?Zz(e,o,!0,t):qT(e,o,()=>({[VT(t)]:void 0}))}function IIe(e,o,t,r,a,n){return dIe(e).trim()?t(e):r_({ownerType:o,owner:r,fields:a,slot:n},ut(e.props))?.label??t(e)}var yIe="This page is read-only.";function bIe({card:e,ownerType:o,owner:t,fields:r,slot:a,labelOf:n,write:s,readOnly:i,view:l="desktop"}){let d=p=>fIe(p,n,na,void 0,Vg),f=p=>Kg(p.type,p),u=hIe(e,p=>IIe(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?yIe:void 0,onPress:(p,m)=>s(h=>Zz(h,p,m,l)),onReset:()=>s(p=>qg(p,f,l).reduce((m,h)=>gIe(m,String(h.props.id),l),p))}):$f(uIe,{})}function SIe(){try{let e=iIe(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 wIe({readOnly:e,view:o}){let t=SIe(),r=pr();return t?$f(bIe,{...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 Lno(e){return co(pIe(e,{type:"custom",render:({readOnly:o})=>$f(wIe,{readOnly:o,view:e})}),qz)}import{customize as RIe}from"efficient-easel/screen/lib/document/box-fields";import{jsx as XT}from"react/jsx-runtime";import{DirectionIcon as CIe,LoopMarqueeIcon as vIe,NoSymbolIcon as kIe}from"efficient-easel/icons";import{customize as TIe,describedAs as PIe,group as EIe}from"efficient-easel/screen/lib/document/box-fields";import{effectTiles as _Ie}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(CIe,{}),gB)}var JT=e=>EIe("Loop",e?{dot:e}:void 0),OIe={none:()=>XT(kIe,{}),scroll:()=>XT(vIe,{})};function AIe(){let e=_Ie({label:c("Loop"),options:Jx.map(({value:o,label:t})=>({value:o,label:c(t),picture:OIe[o]()})),fallback:ck});return PIe(e,{type:"select",label:"Loop",options:Jx.map(({value:o,label:t})=>({value:o,label:t}))})}function Jz(){return{[Wl]:JT(Sf),loop:AIe(),_cLoop:TIe(),scrollDirection:co(ZT(),Sf),loopDuration:co(Ug({readsSpeed:!1}),Sf),loopDelay:co(zg(),Sf)}}var Qz={field:On,set:!0};function LIe(){let e=Kz(),o=[lr,Dt],t=pt(e,Object.keys(e).filter(n=>!o.includes(n)&&n!==On),Ap),r=pt(t,[On],Qz),a=pt(r,[Dt],YT);return pt(a,[lr],{any:[YT,Qz]})}function Zg(e,o=""){switch(e){case"section":case"block":return{..._r(),...Gs()};case"box":return{..._r(),...Gs(),...Jz(),...LIe()};case"picture":return{..._r(),...Gs(),...GT(bE(o),o)};case"textPart":return{..._r(),...Gs(),...Uz()};case"cards":return{..._r(),...Gs(),...zz(iE(o))};case"marquee":return{..._r(),...Gs(),[Wl]:JT(),_cLoop:RIe(),scrollDirection:ZT(),loopDuration:Ug({readsSpeed:!0}),loopDelay:zg()}}}import{blockSizeFieldSet as hye}from"efficient-easel/screen/lib/document/block-size-fields";import{VIEW_KEY_ACCESS as xye}from"efficient-easel/screen/lib/document/box-fields";import{group as FIe}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as BIe,deviceMetaOf as tG}from"efficient-easel/screen/lib/document/device-fields";import{DESIGN_GROUPS as eP,SETTINGS_BUCKETS as NIe}from"efficient-easel/panel";import{BUCKET_KEY as Vo,DESIGN_GROUP_KEY as Ql}from"efficient-easel/screen/lib/document/field-buckets";var Uf=NIe;var DIe="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",[DIe]:"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 $(aG,r)??$(rG,r)??$(oP,t)}function MIe(e){return e==="Animation"?[Vo.Animation]:[Vo.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?$(oP,n.label):void 0;if(s)for(let i of MIe(s))o.includes(i)||o.push(i)}return o}var fso=[...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())],pso=[...Jg(Qi()),...Object.keys(Qi())],uso=[...Jg(ol()),...Object.keys(ol())],mso=[...Jg(_r()),...Object.keys(_r())],hso=Object.keys(bB()),xso=Object.keys(SB()),HIe={"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?$(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 WIe=new Set(["_sContent","_sStyle","_sLayout","_sMedia"]),$Ie=new Map([[Vo.Design,"Content"],[Vo.Animation,"Animation"],...eP.map(e=>[Ql[e],e])]);function UIe(e){let o=`${e}.`;return Object.keys(HIe).filter(t=>t.startsWith(o)).map(t=>t.slice(o.length))}function zIe(e,o){let t=tG(e),r=FIe(o);return t?BIe(t.tier,r):r}function GIe(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(UIe(o)),a=new Set,n=!1,s=null;for(let[p,m]of Object.entries(e)){let h=br(m);if(WIe.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=$Ie.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===Vo.Design||p===Vo.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:zIe(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[Vo[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]=GIe(m,b)}}return u}function sG(e){return Vo.Design in e?e:{[Vo.Design]:Ym("Design",null),[Ql.Content]:hw("Content"),...e}}function iG(e){return Uf.some(o=>Vo[o]in e)}function eI(e){let o=Uf.filter(r=>Vo[r]in e);if(o.length===0)return e;let t={...e};for(let r of o)t[Vo[r]]=Ym(r,r===o[0]?o:null);return t}import{jsx as oI}from"react/jsx-runtime";import{WidthIcon as jIe}from"efficient-easel/icons";import{SettingsField as KIe,SettingsSwitch as VIe}from"efficient-easel/panel";import{group as YIe,iconOf as qIe,sharedStyleKinds as XIe}from"efficient-easel/screen/lib/document/box-fields";var ZIe="Gutter";function JIe({value:e,onChange:o,labelId:t}){let r=Ng(Oc()),a=Lf({[Us]:e})??r,n=s=>o(s?r?void 0:IT:gT);return oI(KIe,{label:c(ZIe),labelId:t,icon:qIe(oI(jIe,{})),action:oI(VIe,{checked:a,onChange:n,ariaLabelledBy:t})})}function lG(){return XIe({_gWidth:YIe(en),[Us]:{type:"custom",render:({value:e,onChange:o,id:t,name:r})=>oI(JIe,{value:e,onChange:o,labelId:`${t??r??Us}-label`})}})}import{jsx as rP}from"react/jsx-runtime";import{group as QIe,sharedStyleKinds as dG}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as eye}from"efficient-easel/screen/lib/document/device-fields";var oye="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}=fe(),n=q(o)??je.default;return e.drawsFullOnItsOwn?{px:n,background:"full",content:"full"}:{px:n,background:(a?null:t)??"full",content:(a?null:r)??"content"}}var tye={read:as},rye={read:as,drawsFullOnItsOwn:!0},aye={read:uF,clearOnContent:{fullWidth:void 0}};function nye({source:e}){let o=e.read(bo()),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 sye({source:e}){let o=e.read(bo()),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:je.min,max:n?a.px:je.max,step:je.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:je.max,changed:o.content!==null,detail:a.content==="full"?tP("full"):`${tP("content")} ${a.px}px`,fullClosed:n,hint:n?oye: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)=>eye("desktop",{type:"custom",render:()=>rP(e,{source:o})}),pG=e=>({[Be.background]:cG(nye,e),[Be.content]:cG(sye,e),[Be.contentMax]:hd(),...ns(KS,Be.content)});function uG(e){let o=e?.drawsFullOnItsOwn?rye:tye;return dG({_gWidth:QIe(en),...pG(o)})}function Mso(){return dG({...pG(aye),fullWidth:hd()})}import{deviceMetaOf as hG}from"efficient-easel/screen/lib/document/device-fields";import{noControlMetaOf as iye}from"efficient-easel/screen/lib/document/panel-no-control-mark";function lye(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=iye(r);return a==="always"?!1:a==="authored-copy"?Vn(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 cye(e,o,t){return t?o===0&&e===Vo.Design||o===1&&e===Ql.Content:!1}var dye=new WeakMap,fye=new WeakMap;function xG(e,o="section"){let t=o==="page"?fye:dye,r=t.get(e);if(r)return r;let a=Object.entries(e).map(([u,p])=>({key:u,field:p,level:mG(p),draws:lye(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&&!cye(a[u].key,p,n)&&s.add(a[u].key)}let i=n&&iG(e),l=i&&!(Vo.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 pye,showWhenFactReaders as uye}from"efficient-shell/format";var gG=new WeakMap,mye=new Set(Object.values(Vo));function IG(e,o,t,r={}){if(!e)return e;let a=o?.props??{},n=a.id,s=uye(r,o,t),i=K1(t,{...s,parentOffersPositions:()=>{let h=Aa(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")||pye(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=>mye.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}={})=>hye({...o,shorten:!0,say:Mm,lengthUnits:Ia,...e?{phone:xye}:{}}),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 gye(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 Iye(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];yye(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 yye(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(Iye(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=gye(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=wye();return bye(()=>bG(Sye(e),Mi(e)),[e])}import{jsx as iP,Fragment as Uye,jsxs as zye}from"react/jsx-runtime";import{useContext as Gye,useEffect as jye,useMemo as lI,useRef as $G}from"react";import{EaselCanvas as Kye,repeatCopyAt as Vye,useEasel as Yye}from"efficient-easel/easel";import{jsx as nP}from"react/jsx-runtime";import{useEffect as Tye,useState as Pye}from"react";import{Banner as Eye}from"efficient-shell/ui";import{useSyncExternalStore as Cye}from"react";import{useScreenDocument as vye}from"efficient-easel/screen/components/ScreenDocumentContext";var kye=()=>()=>{},wG=()=>null;function rI(e){return Cye(e?e.subscribe:kye,e?e.state:wG,e?e.state:wG)}function aI(){let{adapter:e}=vye();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."},_ye={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."},Oye=nI.load,Aye=nI.lock,Rye=nI.conflict,Lye=nI.save;function Fye(e){if(!e)return null;if(e.loadFailed)return c(Oye);if(e.lockHolder)return c(Aye,{name:e.lockHolder.name||c("Somebody else")});if(e.conflict)return c(Rye);if(e.saveFailed)return c(Lye);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(_ye[o.problem],{section:t,name:r})}function Bye({report:e}){let o=Fye(rI(e)),[t,r]=Pye(null);return Tye(()=>{o||r(null)},[o]),!o||t===o?null:nP("aside",{className:"sf-canvas-notice",children:nP(Eye,{tone:"warning",onDismiss:()=>r(o),children:o})})}function CG(){return nP(Bye,{report:aI()})}import{jsx as iI}from"react/jsx-runtime";import{useState as HG}from"react";import{Banner as Dye,Button as Mye}from"efficient-shell/ui";import{UndoIcon as Hye}from"efficient-shell/icons/efficient";import{useScreenDocument as Wye}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:Nye(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 Nye(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?[nt("{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 $ye}from"efficient-easel/easel";function WG(){let e=AG(),{adapter:o,flushSave:t,reloadFromServer:r}=Wye(),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=$ye({onPress:()=>{d()},busy:n});return e?iI("aside",{className:"sf-canvas-notice",children:iI(Dye,{tone:i?"danger":"info",title:e.title,onDismiss:sI,action:a&&e.undo?iI(Mye,{variant:"secondary",size:"sm",leftIcon:iI(Hye,{}),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 qye,REPEAT_ATTRIBUTE as lP,REPEAT_INDEX_ATTRIBUTE as cP}from"efficient-easel/draw";import{usePreviewParts as Xye}from"efficient-easel/draw/client";import{ScreenDocumentContext as Zye}from"efficient-easel/screen/components/ScreenDocumentContext";function UG(e){let{mirrorHostStyles:o}=Ac(),t=UO(),r=dP(),a=Oc(),n=Gye(Zye),s=Eu(n?.docId??null),i=Yye(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]);jye(()=>(RT(a),()=>RT(null)),[a]);let p=$G(null),m=Jye(p),{onDocument:h}=e,I=w=>{p.current=w,h?.(w)};return zye(Uye,{children:[iP(WG,{}),iP(CG,{}),iP(Kye,{...e,onDocument:I,typing:m,metadata:u,height:"fill",mirrorStyles:o,frameWrapper:Mh})]})}function dP(){let{sectionBackgroundWidth:e,themeFromDocument:o}=fe(),t=Oc();return lI(()=>yF(o?null:e,t),[e,t,o])}function Jye(e){let o=yu(),t=Xye(),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?Vye(f):null,p=u?qye(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:Pt}}:null};return{at:n=>{let s=n.closest(`[${po}]`),i=s?.getAttribute(po);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(`[${po}]`)?.getAttribute(po)??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=rbe(),{adapter:n,siteId:s,templateId:i}=tbe(),l=Ge(a).pages,d=!i&&!!(l.starters&&l.createFromStarter),f=ebe(()=>s?{siteId:s}:{},[s]),u=SG(),p=dP(),[m,h]=pP(null),[I,w]=pP(jl),[S,v]=pP(null),b=obe(null);Qye(()=>{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:[Bt(uP,{label:c("All pages"),active:I===jl,onClick:()=>w(jl)}),D.map(C=>Bt(uP,{label:c(C.label),active:I===C.key,onClick:()=>w(C.key)},C.key)),sT(T).length>0?Bt("div",{className:"sf-add-page-group",children:Bt(uP,{label:c("From your template"),active:I===Eg,onClick:()=>w(Eg)})}):null]});return Bt(nbe,{open:e,onClose:o,size:"full",title:c("Add page"),initialFocus:b,children:Bt(cbe,{sidebarTop:fP(lbe,{onClick:k,disabled:!n.createPage||S!==null,children:[Bt(abe,{"aria-hidden":!0}),c("Blank page")]}),sidebar:L,children:fP("div",{className:"sf-add-page",children:[Bt("h3",{ref:b,tabIndex:-1,className:"sf-add-page-title",children:c("Pages for your site")}),Bt("p",{className:"sf-add-page-sub",children:c("Choose a page and change the text, images and more.")}),m===null?Bt("p",{className:"sf-add-page-sub",children:c("Loading\u2026")}):P.length===0?Bt(sbe,{title:c("No pages to start from"),description:c("Start with a blank page, then add sections.")}):Bt(ibe,{cols:1,smCols:2,lgCols:3,gap:8,children:P.map(C=>Bt(y6,{starter:C,config:u,metadata:p,busy:S===C.id,onAdd:F},C.id))})]})})})}import{jsx as dbe}from"react/jsx-runtime";import{createContext as fbe,useContext as pbe,useRef as ube}from"react";var KG=fbe(null);function _lo({open:e,children:o}){let t=ube(!!e);return dbe(KG.Provider,{value:t,children:o})}function VG(){let e=pbe(KG);return()=>e?.current?(e.current=!1,!0):!1}var QG="sf-editor-pages-collapsed-groups";function Abe(){let e=hP(),{siteId:o,templateId:t}=ej(),r=Ge(e).pages;if(!(!r.duplicate||t))return(a,n)=>r.duplicate(a.id,{...n,...o?{siteId:o}:{}})}function oj({onNavigate:e,onClose:o,activeSurface:t,onPreviewSurface:r}){let a=hP().chrome?.pageRows,n=Ebe(),{adapter:s,capabilities:i,ready:l,currentSlug:d}=ej(),f=xl(),{rows:u,reload:p,setRows:m,getRows:h}=Fd(),[I,w]=Ks(""),[S,v]=Ks(!1),[b,y]=Ks(null),[k,F]=Ks(!1),T=!!Ge(hP()).pages.createFromStarter,D=Abe(),[P,L]=Ks(null),[C,A]=Ks(()=>{if(typeof window>"u")return new Set;try{let G=window.localStorage.getItem(QG);return new Set(G?JSON.parse(G):[])}catch{return new Set}});YG(()=>{try{window.localStorage.setItem(QG,JSON.stringify([...C]))}catch{}},[C]);let E=G=>A(Ae=>{let le=new Set(Ae);return le.has(G)?le.delete(G):le.add(G),le}),R=qG(()=>U1(u??[]),[u]),W=I.trim().toLowerCase(),U=G=>!W||G.toLowerCase().includes(W),Z=G=>W?!0:!C.has(G),V=qG(()=>new Set((u??[]).map(G=>G.slug)),[u]),de=()=>{if(i.pageCreationInAdminForm&&!T){n.send("storefront-editor:new-page");return}y(null),F(!0)},Ce=VG();YG(()=>{Ce()&&de()},[]);let ee=i.hasSiteSettings&&!!s.createPage,_e=async()=>{if(!(!l||S||!s.createPage)){v(!0),y(null);try{let G=await s.createPage(ZR(c("New popup"),V));await p(),e(G.slug)}catch{y(c("Couldn\u2019t add the popup \u2014 please retry."))}finally{v(!1)}}},Oe=xbe(null),[Ee,Fe]=Ks(null),No=()=>{if(!ee)return de();if(Ee)return Fe(null);let G=Oe.current?.getBoundingClientRect();G&&Fe({top:G.bottom+6,right:Math.max(8,window.innerWidth-G.right)})},qo=G=>{let Ae=u??[],le=s.deletePage;if(!l||S||!le||Ae.length<=1)return;let io=Ae.findIndex(Mo=>Mo.id===G.id),oo=Ae.filter(Mo=>Mo.id!==G.id),rt=G.slug===d;Nh(G.id,!0),m(oo),y(null),rt&&oo[0]&&e(oo[0].slug);let Xe=()=>{Nh(G.id,!1);let Mo=h()??[];if(Mo.some(dt=>dt.id===G.id))return;let Lr=[...Mo];Lr.splice(Math.max(0,Math.min(io,Lr.length)),0,G),m(Lr)};ZG.undoable(c("Deleted \u201C{name}\u201D",{name:G.label}),{actionLabel:c("Undo"),commit:async Mo=>{await le(G.id,Mo),Nh(G.id,!1)},undo:()=>{Xe(),rt&&e(G.slug)},onFail:()=>{Xe(),ZG.error(c("Couldn\u2019t delete the page \u2014 please retry."))}})},Xo=G=>n.send("storefront-editor:open-page",{slug:G}),Co=G=>{if(!U(G.label))return null;let Ae=!t&&G.slug===d,le=i.canDeletePagesInline&&(u??[]).length>1,io=Un(G),oo=$1(G),rt=[...io?[{label:c("Dynamic"),tone:"info"}]:[],...oo?[{label:c("Lightbox"),tone:"success"}]:[],...G.draft?[{label:c("draft"),tone:"draft"}]:[]],Xe=rt.length>0?rt:void 0,Mo=!!D&&_be(G),Lr=Mo||i.pageCreationInAdminForm||le?cI(mbe,{children:[Mo&&$e(dI,{kind:"plain",label:c("Duplicate \u201C{name}\u201D",{name:G.label}),disabled:S,onClick:()=>L(G),children:$e(vbe,{size:13})}),i.pageCreationInAdminForm&&$e(dI,{kind:"plain",label:c("Page settings for \u201C{name}\u201D",{name:G.label}),onClick:()=>Xo(G.slug),children:$e(Tbe,{size:13})}),le&&$e(dI,{kind:"delete",label:c("Delete \u201C{name}\u201D",{name:G.label}),disabled:S,onClick:()=>qo(G),children:$e(mP,{name:"trash",size:13,strokeWidth:1.7,rounded:!0})})]}):void 0;return $e(JG,{icon:$e(kbe,{size:14}),name:G.label,selected:Ae,onSelect:()=>e(G.slug),badge:Xe,actions:Lr,rowProps:{"data-page-slug":G.slug}},G.id)},Do=(G,Ae,le)=>{let io=le.filter(Boolean);if(io.length===0)return null;let oo=Z(G);return cI(hbe,{children:[$e(wbe,{count:io.length,countLabel:nt("{n} page","{n} pages",io.length),expanded:oo,onToggle:()=>E(G),children:Ae}),oo&&io]},G)},vo=(a?.rows??[]).filter(G=>U(G.label)).map(G=>{let Ae=t===G.key;return $e(JG,{icon:G.icon,name:G.label,selected:Ae,onSelect:()=>r(G.key),badge:{label:c("Preview"),tone:"warning"},actions:$e(dI,{kind:"plain",label:c("Open the {name} in a new tab",{name:G.label}),onClick:()=>window.open(G.href,"_blank","noopener,noreferrer"),children:$e(mP,{name:"external-link",size:13,strokeWidth:1.7,rounded:!0})}),rowProps:{"data-shop-surface":G.key}},G.key)}),ue=i.hasSiteSettings&&!!a,eo=(()=>{if(u===null)return null;let G=[],Ae=!1;for(let le of R){ue&&!Ae&&le.key.startsWith("system:")&&(G.push(Do("shop",a.title,vo)),Ae=!0);let io=le.key===hb||le.label===mb?c(le.label):le.label;G.push(Do(le.key,io,le.rows.map(Co)))}return ue&&!Ae&&G.push(Do("shop",a.title,vo)),G})();return cI("div",{className:"sf-pages",children:[$e(gbe,{icon:$e(Pbe,{}),title:c("Pages"),context:f,actions:$e(Ibe,{buttonRef:Oe,label:ee?c("Add"):c("New page"),hasPopup:ee?"menu":void 0,expanded:ee?Ee!==null:void 0,onClick:No,children:$e(Cbe,{size:15})})}),Ee&&$e(bbe,{portal:!0,style:{top:Ee.top,right:Ee.right},onClose:()=>Fe(null),children:cI("div",{role:"menu","aria-label":c("Add"),children:[$e(XG,{role:"menuitem",onClick:()=>{Fe(null),de()},children:c("Page")}),$e(XG,{role:"menuitem",disabled:S,onClick:()=>{Fe(null),_e()},children:c("Popup")})]})}),$e("div",{className:"sf-pages-find",children:$e(ybe,{type:"search",leftIcon:$e(mP,{name:"search",size:14,rounded:!0}),placeholder:c("Search all pages\u2026"),value:I,onChange:G=>w(G.target.value),"aria-label":c("Search all pages")})}),b&&!k&&$e("div",{className:"sf-note sf-note--error",role:"alert",children:b}),eo===null?$e("div",{className:"sf-note",children:c("Loading\u2026")}):eo.some(Boolean)?$e(Sbe,{ariaLabel:c("Pages"),className:"sf-scroll",children:eo}):$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(Obe,{source:{title:P.label,slug:P.slug},taken:V,host:pu(),duplicate:G=>D(P,G),onClose:()=>L(null),onDuplicated:G=>{L(null),p(),e(G.slug)}},P.id),k?$e(jG,{open:!0,onClose:()=>F(!1),takenSlugs:V,onCreated:G=>{F(!1),p(),e(G.slug)}}):null]})}import{jsx as aj}from"react/jsx-runtime";import{createContext as Lbe,useCallback as Fbe,useContext as Bbe,useMemo as Nbe,useState as Dbe}from"react";import{CanvasChromeContext as Mbe}from"efficient-easel/easel";import{useSelectHandler as Hbe}from"efficient-easel/draw/client";import{parseHexColor as Rbe}from"efficient-shell/format";var fI=["chat-bubble-left-right","chat-bubble-oval-left-ellipsis","chat","megaphone","phone","sparkles"],oc=fI[0];var Vs="right";function pI(e){return fI.includes(e??"")?e:oc}function tj(e){return e==="left"?"left":Vs}function rj(e){return e&&Rbe(e)===e.toLowerCase()?e.toLowerCase():""}var nj="chat",uI={enabled:!0,title:"",subtitle:"",greeting:"",launcherColor:"",launcherIcon:"",launcherPosition:Vs,launcherLabel:"",showOnPhones:!0};function ico(e){return{enabled:e.enabled,title:e.title,subtitle:e.subtitle,greeting:e.greeting,launcherColor:rj(e.launcherColor),launcherIcon:e.launcherIcon?pI(e.launcherIcon):"",launcherPosition:tj(e.launcherPosition),launcherLabel:e.launcherLabel??"",showOnPhones:e.showOnPhones!==!1}}var sj=Lbe({chat:uI,setChat:()=>{},setSelected:()=>{},setSelectHandler:()=>{}});function lco({children:e,chat:o=uI,onChatChange:t}){let[r,a]=Dbe(!1),n=Fbe(d=>t?.(d),[t]),{select:s,setSelectHandler:i}=Hbe(),l=Nbe(()=>({selected:()=>r?nj:null,select:d=>d===nj&&s()}),[r,s]);return aj(sj.Provider,{value:{chat:o,setChat:n,setSelected:a,setSelectHandler:i},children:aj(Mbe.Provider,{value:l,children:e})})}var mI=()=>Bbe(sj);import{jsx as xP}from"react/jsx-runtime";import{DesktopIcon as Wbe,PhoneIcon as $be,TabletIcon as Ube}from"efficient-easel/icons";import{VIEW_TIERS as zbe,VIEW_TIER_LABEL as Gbe}from"efficient-easel/draw";var jbe={desktop:xP(Wbe,{}),tablet:xP(Ube,{}),mobile:xP($be,{})},ij=zbe.map(e=>({id:e,get label(){return c(Gbe[e])},icon:jbe[e]}));import{PreviewDeviceContext as ePe}from"efficient-easel/draw/client";import{jsx as Kbe}from"react/jsx-runtime";import{createContext as Vbe,useCallback as lj,useContext as Ybe,useMemo as qbe,useRef as Xbe}from"react";var Zbe=Object.fromEntries(gu.map(e=>[e,{value:"",error:null}])),cj=Vbe({links:LO,rows:Zbe,canSave:!1,saveLink:async()=>({ok:!1,error:"There is no website to save to."}),openPanel:()=>{},setOpenHandler:()=>{}});function Ico({children:e,value:o}){let t=Xbe(()=>{}),r=lj(()=>t.current(),[]),a=lj(s=>{t.current=s},[]),n=qbe(()=>({...o,openPanel:r,setOpenHandler:a}),[o,r,a]);return Kbe(cj.Provider,{value:n,children:e})}var Kf=()=>Ybe(cj);import{jsx as Jbe}from"react/jsx-runtime";import{createContext as Qbe,useContext as eSe,useMemo as oSe,useState as tSe}from"react";var dj=Qbe(null);function wco({children:e}){let[o,t]=tSe(null),r=oSe(()=>({surface:o,setSurface:t}),[o]);return Jbe(dj.Provider,{value:r,children:e})}function fj(){return eSe(dj)??{surface:null,setSurface:()=>{}}}import{createPreviewSelectionContext as rSe}from"efficient-easel/draw/client";var{Provider:kco,useSelection:hI}=rSe("selectedHeroPart");import{jsx as Le,jsxs as Sn,Fragment as TK}from"react/jsx-runtime";import{useEasel as Eve,useRootFields as _ve}from"efficient-easel/easel";import{Button as Ove,EmptyState as Ave}from"efficient-shell/ui";function pj({kind:e,pageName:o}){return{name:o?.trim()||c("This page"),kindLabel:Un({kind:e})?c("Template"):c("Page")}}import{headWords as OK,InspectorHead as Rve,InspectorIconButton as PK}from"efficient-easel/chrome";import{DuplicateIcon as Lve,TrashIcon as Fve}from"efficient-easel/icons";import{panelFieldsOf as Bve}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 sSe,BlockBoxIcon as iSe,BlockButtonIcon as lSe,BlockDividerIcon as mj,BlockFooterIcon as hj,BlockHeadingIcon as cSe,BlockProductIcon as dSe,BlockSocialIcon as fSe,BlockTextIcon as pSe,CardPaymentIcon as uSe,ChatIcon as mSe,AccountIcon as hSe,GlobeIcon as xSe,GridIcon as gSe,ImageIcon as IP,MapIcon as ISe,MediaIcon as ySe,PageIcon as bSe}from"efficient-easel/icons";import{jsx as gP,Fragment as aSe,jsxs as nSe}from"react/jsx-runtime";var uj=nSe(aSe,{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 SSe={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:uj,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"})},wSe=H("rect",{x:"4",y:"4",width:"16",height:"16",rx:"2.5"}),CSe={footer:hj,Footer:hj,Divider:mj,FooterDivider:mj,Banner:sSe,Flex:iSe,FooterSocial:fSe,FooterPayment:uSe,page:bSe,website:xSe,AccountBlock:hSe,chat:mSe,Heading:cSe,Text:pSe,ImageBlock:IP,ButtonBlock:lSe,LocationMap:ISe,Grid:gSe,ProductRef:dSe,heroMedia:ySe,heroImage:IP,heroImage2:IP},vSe={MenuBlock:"FooterMenu",EmailFormBlock:"FooterEmailSignup",SocialLogosBlock:"FooterSocial",PaymentLogosBlock:"FooterPayment",SiteHeader:"header",SiteFooter:"footer"};function Ys({type:e,size:o=16,className:t}){let r=vSe[e]??e,a=CSe[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:SSe[r]??wSe})}import{PanelHideButton as EK}from"efficient-easel/screen/components/SidePanelHead";import{useEaselSession as Nve}from"efficient-easel/screen/lib/session-context";import{jsx as Ne,jsxs as Vf,Fragment as kSe}from"react/jsx-runtime";import{useEffect as TSe,useId as xj,useState as PSe}from"react";import{IconPicker as ESe}from"efficient-shell/ui";import{SettingsDefaultReset as _Se,SettingsField as Yf,SettingsSegmented as OSe,SettingsSwitch as gj}from"efficient-easel/panel";import{ButtonIcon as ASe,ButtonIconIcon as RSe,EyeIcon as LSe,PhoneIcon as FSe,PlacementIcon as BSe,TypeIcon as NSe}from"efficient-easel/icons";var DSe="Chat with us",MSe="We usually reply within a few minutes",HSe="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]=PSe(o);TSe(()=>i(o),[o]);let l=()=>{s!==o&&r(s)};return Ne(Yf,{label:e,icon:Ne(NSe,{}),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(_Se,{words:ce()?.panel,label:e,changed:o,onReset:t})}function WSe({label:e,icon:o,checked:t,fallback:r,onChange:a,hint:n}){let s=xj();return Ne(Yf,{label:e,labelId:s,icon:o,changed:t!==r,action:Vf("span",{className:"inline-flex items-center gap-2",children:[Ne(gj,{checked:t,onChange:a,ariaLabelledBy:s}),Ne(qf,{label:e,changed:t!==r,onReset:()=>a(r)})]}),hint:n})}var $Se=fI.map(e=>({value:e,icon:Mu(e)}));function USe(){let{theme:e}=fe(),o=ko(e).themes[0];return kc(o)??o?.accent??""}function Ij(){let{chat:e,setChat:o}=mI(),t=xj(),r=USe(),a=e.launcherIcon?pI(e.launcherIcon):oc;return Vf(kSe,{children:[Ne(Yf,{label:c("Show the chat bubble"),labelId:t,icon:Ne(LSe,{}),changed:!e.enabled,action:Vf("span",{className:"inline-flex items-center gap-2",children:[Ne(gj,{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(xt,{label:c("Button color"),icon:Ne(ASe,{}),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(RSe,{}),value:Ne(qS,{value:a}),changed:a!==oc,action:Ne(qf,{label:c("Icon"),changed:a!==oc,onReset:()=>o({launcherIcon:""})}),children:Ne(ESe,{label:c("Icon"),value:a,options:$Se,onChange:n=>o({launcherIcon:n===oc?"":n})})}),Ne(Yf,{label:c("Position"),icon:Ne(BSe,{}),changed:e.launcherPosition!==Vs,action:Ne(qf,{label:c("Position"),changed:e.launcherPosition!==Vs,onReset:()=>o({launcherPosition:Vs})}),children:Ne(OSe,{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(WSe,{label:c("Show on phones"),icon:Ne(FSe,{}),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:DSe,onCommit:n=>o({title:n})}),Ne(xI,{label:c("Subtitle"),value:e.subtitle,placeholder:MSe,onCommit:n=>o({subtitle:n})}),Ne(xI,{label:c("Greeting message"),value:e.greeting,placeholder:HSe,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 qs,Fragment as WP,jsxs as Cj}from"react/jsx-runtime";import{useEffect as Iwe,useId as Sj,useState as wj}from"react";import{SettingsField as ywe}from"efficient-easel/panel";import{jsx as cwe}from"react/jsx-runtime";import{forwardRef as zSe,createElement as yP}from"react";var yj={outline:{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"},filled:{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",stroke:"none"}};var pe=(e,o,t,r)=>{let a=zSe(({color:n="currentColor",size:s=24,stroke:i=2,title:l,className:d,children:f,...u},p)=>yP("svg",{ref:p,...yj[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 GSe=[["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=pe("outline","brand-facebook","BrandFacebook",GSe);var jSe=[["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=pe("outline","brand-instagram","BrandInstagram",jSe);var KSe=[["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=pe("outline","brand-line","BrandLine",KSe);var VSe=[["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=pe("outline","brand-linkedin","BrandLinkedin",VSe);var YSe=[["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=pe("outline","brand-pinterest","BrandPinterest",YSe);var qSe=[["path",{d:"M15 10l-4 4l6 6l4 -16l-18 7l4 2l2 6l3 -4",key:"svg-0"}]],kP=pe("outline","brand-telegram","BrandTelegram",qSe);var XSe=[["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=pe("outline","brand-tiktok","BrandTiktok",XSe);var ZSe=[["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=pe("outline","brand-wechat","BrandWechat",ZSe);var JSe=[["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=pe("outline","brand-whatsapp","BrandWhatsapp",JSe);var QSe=[["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=pe("outline","brand-x","BrandX",QSe);var ewe=[["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=pe("outline","brand-youtube","BrandYoutube",ewe);var owe=[["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=pe("filled","brand-facebook-filled","BrandFacebookFilled",owe);var twe=[["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=pe("filled","brand-instagram-filled","BrandInstagramFilled",twe);var rwe=[["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=pe("filled","brand-linkedin-filled","BrandLinkedinFilled",rwe);var awe=[["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=pe("filled","brand-pinterest-filled","BrandPinterestFilled",awe);var nwe=[["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=pe("filled","brand-tiktok-filled","BrandTiktokFilled",nwe);var swe=[["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=pe("filled","brand-whatsapp-filled","BrandWhatsappFilled",swe);var iwe=[["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=pe("filled","brand-x-filled","BrandXFilled",iwe);var lwe=[["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=pe("filled","brand-youtube-filled","BrandYoutubeFilled",lwe);var lfo="outline",gI={fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},dwe={},HP={fillRule:"evenodd"},fwe=[["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"}]],pwe=[["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",{...dwe,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("")}]],uwe=[["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("")}]],mwe=pe("filled","brand-telegram-filled","BrandTelegramFilled",fwe),hwe=pe("filled","brand-line-filled","BrandLineFilled",pwe),xwe=pe("filled","brand-wechat-filled","BrandWechatFilled",uwe),gwe={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:mwe},line:{outline:wP,solid:hwe},wechat:{outline:PP,solid:xwe}};function bj({platform:e,iconStyle:o,size:t}){let r=gwe[e][o];return cwe(r,{size:t,stroke:1.75,"aria-hidden":"true",focusable:"false"})}var bwe={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 Swe({platform:e}){let{rows:o,saveLink:t}=Kf(),{value:r,error:a}=o[e],[n,s]=wj(r),[i,l]=wj(!1),d=Sj(),f=Sj();Iwe(()=>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 Cj(WP,{children:[qs(ywe,{label:c(p),htmlFor:d,icon:qs(bj,{platform:e,iconStyle:"outline",size:18}),children:qs("input",{id:d,type:"text",inputMode:"url",value:n,placeholder:bwe[e],onChange:m=>s(m.target.value),onBlur:()=>{u()},onKeyDown:m=>{m.key==="Enter"&&m.currentTarget.blur(),m.key==="Escape"&&(s(r),m.currentTarget.blur())},"aria-invalid":a?!0:void 0,"aria-describedby":a?f:void 0,"aria-busy":i||void 0,autoComplete:"off",spellCheck:!1})}),a&&qs("p",{id:f,className:"sf-note sf-note--error",role:"alert",children:a})]})}function vj({unavailable:e}){let{canSave:o}=Kf();return!o&&e?qs(WP,{children:e}):Cj(WP,{children:[qs("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=>qs(Swe,{platform:t},t))]})}import{jsx as Js,Fragment as Vwe,jsxs as Ywe}from"react/jsx-runtime";import{useId as qwe,useMemo as Xwe}from"react";import{useEasel as Zwe}from"efficient-easel/easel";import{SettingsField as Jwe,SettingsSwitch as Qwe}from"efficient-easel/panel";import{EyeIcon as eCe}from"efficient-easel/icons";import{fieldShownInView as oCe}from"efficient-easel/fields";import{usePreviewDevice as tCe}from"efficient-easel/draw/client";import{jsx as Zs,Fragment as vwe}from"react/jsx-runtime";import{createContext as kwe,useContext as Twe,useLayoutEffect as Pwe,useMemo as Tj,useRef as Ewe,useState as Pj}from"react";import{useEasel as Ej,useSelectedFields as _we}from"efficient-easel/easel";import{fieldShownInView as Owe,Inspector as Awe,LEAD_BAND_KEY as Rwe,planFields as _j}from"efficient-easel/fields";function kj({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 wwe}from"react/jsx-runtime";import{EmptyState as Cwe}from"efficient-shell/ui";function Xs(){return wwe(Cwe,{variant:"none",icon:!1,message:c("These settings apply to every view.")})}import{usePreviewDevice as Lwe}from"efficient-easel/draw/client";import{deviceField as Fwe}from"efficient-easel/screen/lib/document/device-fields";var Bwe="Text",$P=new Map,II=new Set,Nwe=Object.fromEntries(Uf.map(e=>{let o=eB[e];return[e,Zs(o,{},e)]})),Oj=kwe(null),Dwe={_partBody:Fwe("each",{type:"custom",render:()=>Zs(Mwe,{})})};function Mwe(){return Zs(vwe,{children:Twe(Oj)})}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}=_we(),p=Tj(()=>a?{...d,...a.values}:d,[d,a?.values]),m=(ee,_e)=>a?.keys.has(ee)?a.onChange(ee,_e):u(ee,_e),h=Lwe(),{appState:I,config:w}=Ej(ee=>ee),S=j1(h,w,I.data.content??[],I.ui.itemSelector),v=n===void 0?mH(l,t):Dwe,b=Tj(()=>{let ee=r?.length?Object.fromEntries(Object.entries(v).filter(([_e])=>!r.includes(_e))):v;return a?{...ee,...a.fields}:ee},[v,r,a?.fields]),y=gb(b,p,S),[k,F]=Pj(()=>new Set(II)),T=Owe({},h),D={key:Rwe,title:Bwe},P=Ej(ee=>ee.selectedItem)!==null,L=a?.part??t??"",C=`${i}:${L}:${String(h)}`,[A,E]=Pj(()=>({tab:$P.get(C)})),R=`${i}:${L}`,W=Ewe(null),U={...S,node:p},Z=_j(y,{values:p,context:U}).buckets,V=kj({allTabs:P,remembered:$P.get(C),inherited:W.current?.panel===R?W.current.tab:A.tab,buckets:Z,hasText:T&&o>0}),de=!T&&!Z.includes(V)&&(_j(gb(b,p,{...S,device:"desktop"}),{values:p,context:{...U,device:"desktop"}}).buckets.includes(V)||V==="Design"&&o>0);Pwe(()=>{W.current={panel:R,tab:V}});let Ce=V==="Design";return Zs(Oj.Provider,{value:n??null,children:Zs(Iw.Provider,{value:a?p:null,children:Zs(Awe,{fields:y,values:p,onChange:m,readOnly:f,allTabs:P,showWhenContext:U,context:{itemWord:s},tab:V,onTab:ee=>{$P.set(C,ee),E({tab:ee})},tabIcons:Nwe,idPrefix:i,ariaLabel:c("Section settings"),lead:Ce?e:null,leadFold:D,closedFolds:k,onFold:(ee,_e)=>{_e?II.delete(ee):II.add(ee),F(new Set(II))},children:de&&Zs(Xs,{})})})})}import{useMemo as Hwe}from"react";import{useEasel as Wwe}from"efficient-easel/easel";import{useSectionOps as $we}from"efficient-easel/screen/lib/document/use-section-ops";var Aj=new Map,Uwe=e=>{let o=Aj.get(e);return o||Aj.set(e,o=Qg(Zg(e),`part:${e}`)),o},zwe=new Set(rv);function tc(e,o,t){let{getItemById:r,getSelectorForId:a}=Wwe(f=>f),n=$we(),s=r(e)?.props??{},i=ws(s,o),l=JSON.stringify(i),d=Hwe(()=>Object.fromEntries(rv.map(f=>[f,i[f]])),[l]);return{part:o,fields:Uwe(t),values:d,keys:zwe,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 Gwe,createElement as jwe}from"react";import{deviceField as UP}from"efficient-easel/screen/lib/document/device-fields";var Yo=()=>({type:"custom",render:()=>jwe(Gwe)});var zP={words:Yo(),sourceNote:Yo(),style:Yo(),font:Yo(),italic:Yo(),fontSize:UP("each",Yo()),lineHeight:Yo(),letterSpacing:Yo(),paragraphSpacing:Yo(),padding:Yo(),align:UP("each",Yo()),letterCase:Yo(),fixedSizeHint:UP("each",Yo()),regionNote:Yo(),regionStyle:Yo()},Kwe=["fontSize","align"];function Rj(e){return Kwe.includes(e)}var Lj={showTicker:Yo(),items:Yo()};var rCe="root:default-zone";function Fj({heroId:e}){let{appState:o,dispatch:t}=Zwe(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=Xwe(()=>{let m=n?.props.tickerItems;return Array.isArray(m)?m:JH.map(h=>({text:h}))},[n]),l=qwe(),d=tCe(),f=m=>oCe(Lj[m],d),u=tc(e,QH,"block");if(!n)return Js("p",{className:"sf-note",children:c("This ticker\u2019s hero is no longer on the page.")});let p=m=>t({type:"replace",destinationZone:rCe,destinationIndex:a,data:{...n,props:{...n.props,...m}}});return Js(Or,{motion:u,body:Ywe(Vwe,{children:[!f("showTicker")&&!f("items")&&Js(Xs,{}),f("showTicker")&&Js(Jwe,{label:c("Show ticker"),labelId:l,icon:Js(eCe,{}),action:Js(Qwe,{checked:s,onChange:m=>p({showTicker:m}),ariaLabelledBy:l})}),f("items")&&Js(Cw,{label:ww.label,icon:ww.icon,items:i,placeholder:"item",onChange:m=>p({tickerItems:m}),markup:!0})]})})}import{jsx as te,Fragment as Jf,jsxs as nr}from"react/jsx-runtime";import{useContext as gCe,useEffect as GP,useRef as ICe,useState as jj}from"react";import{FieldSelect as yCe,InspectorField as bCe,fieldShownInView as SCe}from"efficient-easel/fields";import{InertHint as eK,SettingsField as wCe}from"efficient-easel/panel";import{InspectorUpLevel as vI}from"efficient-easel/chrome";import{StylesIcon as CCe,TypeIcon as vCe}from"efficient-easel/icons";import{useEasel as kCe}from"efficient-easel/easel";import{TextPartPanel as Kj}from"efficient-easel/copy";import{Button as TCe,IconButton as PCe,Tooltip as ECe}from"efficient-shell/ui";import{jsx as Dj,jsxs as aCe}from"react/jsx-runtime";import{DEFAULT_EASEL_STRINGS as nCe}from"efficient-easel/strings";import{COPY_CELLS as rc,COPY_CELL_LENGTHS as Bj,CopyBox as sCe,lengthCellUnits as iCe}from"efficient-easel/copy";import{PaddingYIcon as lCe}from"efficient-easel/icons";import{onDesktopWords as cCe}from"efficient-easel/screen/lib/document/box-fields";var Nj=nCe.copy.cells,dCe={kind:"spacing"},fCe=["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=Kt[p];return iCe({preset:f,row:u,table:Ia,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:Dj(lCe,{}),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,Bj.fontSize,n,Math.round(o.sizePx),Nj.fontSize),...n==="size"?{}:{reset:{detail:i?cCe(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,Bj.paragraphSpacing,"paragraphSpacing",0,Nj.paragraphSpacing)},{...d,value:e.padding,styleValue:o.paddingPx,onChange:f=>t({padding:f??null}),...l(d,dCe,"padding",o.paddingPx,"Padding")}]}function Mj({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 aCe("div",{className:"sf-part-textbox",children:[u,Dj(sCe,{value:e,onChange:o,multiline:t,placeholder:d,ariaLabel:f,rules:Cp,tools:h,barShows:p?"focus":"always",colors:r?l:[],colorNameOf:Pt,align:a?{value:n.align??s.align,allow:fCe,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 Vj}from"efficient-easel/draw/client";import{jsx as bI,Fragment as pCe,jsxs as uCe}from"react/jsx-runtime";import{Button as Hj,Dialog as mCe}from"efficient-shell/ui";function Wj({styleName:e,onCancel:o,onConfirm:t}){return bI(mCe,{open:!0,onClose:o,role:"alertdialog",size:"sm",title:c("Update {style}?",{style:e}),footer:uCe(pCe,{children:[bI(Hj,{variant:"secondary",onClick:o,children:c("Cancel")}),bI(Hj,{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 _Ce}from"efficient-easel/screen/components/ScreenDocumentContext";import{usePreviewDevice as OCe}from"efficient-easel/draw/client";import{shownTier as wI}from"efficient-easel/screen/lib/document/device-fields";import{TEXT_FIELD_MARKER as ACe,viewKeyAt as RCe}from"efficient-easel/draw";import{useSectionOps as LCe}from"efficient-easel/screen/lib/document/use-section-ops";import{useEaselHost as FCe}from"efficient-easel/screen/lib/host";function hCe(e){let o=new Set([...Object.keys($(nm,e)??{}),...$(sm,e)??[]]);for(let[t,r]of Object.entries($(Ub,e)??{}))r.verb==="snapshot"&&o.add(t);return[...o].sort()}var xCe={CollectionCard:"product",FooterMenu:"menu",Gallery:"product",GalleryItem:"product",ProductGrid:"product",ProductHero:"product",SpecTable:"product",Events:"blog",FeaturedCover:"blog",LongRead:"blog",SubscribeBlogs:"blog"},$j={product:"Synced from the product.",blog:"Synced from the blog post.",menu:"Synced from the site menu."},Uj="Open",zj={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 $(xCe,e)??null}function Gj(e,o){let t=Xf(e);return t&&hCe(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 Yj(e){return e.kind==="role"?XI[e.role]:e.kind==="custom"?"Custom":null}function BCe(e){let o=aa(e.role);return o?{kind:"role",role:o}:null}function NCe(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 BCe(ms(e,o))??NCe(t,r)}function DCe(e,o){if(!e.length)return null;let t=o(e[0]);return e.every(r=>o(r)===t)?t:null}function qj(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 MCe({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 te(yCe,{ariaLabel:c("Style"),value:r,options:a,inline:!0,onChange:n=>t(n===Zf?null:n),renderOption:n=>n.value===Zf?nr(Jf,{children:[te("span",{className:"es-fsel-label sf-part-style-keep",children:n.label}),te("span",{className:"sf-part-style-aside","aria-hidden":"true",children:c("Section\u2019s own")})]}):te("span",{className:"es-fsel-label",style:{fontFamily:`var(--font-role-${n.value})`},children:n.label}),renderValue:()=>te("span",{style:{fontFamily:o?.fontKey?`var(${li(o.fontKey)?.cssVar})`:void 0,fontWeight:o?.weight},children:jP(Yj(e))}),valueText:n=>jP(Yj(e))??n?.label??""})}var oK=["regionNote","regionStyle"],HCe=Object.keys(zP).filter(e=>!oK.includes(e));function tK(e,o){return!e.some(o)}function WCe({sectionName:e,onBack:o,textEditor:t,styleRow:r,children:a,tabs:n}){let s=nr(Jf,{children:[t,r,a]});return nr("div",{className:"sf-part-panel",children:[te(vI,{inline:!0,name:c(e),onSelect:o}),n?n(s):s]})}function kI({source:e,slug:o,menuId:t}){let r=FCe(),a=zj[e],n=!a.needsSlug||!!o;return te("div",{className:"sf-note sf-note--source",children:nr(eK,{children:[c($j[e]),n?nr(Jf,{children:[" ",te(TCe,{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(Uj)})]}):null]})})}var Xj=4,$Ce=120;function Zj(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 Jj({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 nr("div",{className:"sf-note",children:[te("p",{children:te("strong",{children:c(e.label)})}),l("regionNote")&&!f&&te("p",{children:o?c("Its size follows Styles \u25B8 {follows} \u2014 {px}px right now.",{follows:c(u),px:Math.round(o)}):c("Its size follows Styles \u25B8 {follows}.",{follows:c(u)})}),d?nr(Jf,{children:[d,l("regionStyle")&&te("p",{className:"es-field-hint",children:Zj(e)})]}):a?l("regionStyle")?te(Jf,{children:te(wCe,{label:c("Style"),icon:te(CCe,{}),hint:Zj(e),children:te(MCe,{face:t,base:r,onPick:a})})}):null:l("regionNote")&&te("p",{className:"es-field-hint",children:c("Only the size follows a site style. This section sets its own font, weight and letter case.")}),n&&l("sourceNote")?te(kI,{source:n,slug:s}):null,tK([...oK,"sourceNote",...d?["fontSize"]:[]],p=>l(p)&&(p!=="sourceNote"||!!n))&&te(Xs,{}),te(vI,{inline:!0,name:c("Page"),onSelect:i})]})}function UCe({onBack:e}){return nr("div",{className:"sf-note",children:[te("p",{children:te("strong",{children:c("This part is no longer here.")})}),te("p",{children:c("The section it belonged to has been changed or removed.")}),te(vI,{inline:!0,name:c("Page"),onSelect:e})]})}function zCe({onBack:e,partId:o,why:t}){return nr("div",{className:"sf-note",children:[te("p",{children:te("strong",{children:c("This part's settings did not open.")})}),te("p",{children:c("The words are still on your page and nothing has been lost. The editor could not work out which control belongs to them, which is a fault on our side. Go back and click the section to open its settings instead.")}),te("p",{className:"sf-note-detail",children:nr("code",{children:[o," \u2014 ",t]})}),te(vI,{inline:!0,name:c("Page"),onSelect:e})]})}function rK({nodeId:e,propKey:o,onBack:t,onEditStyle:r}){let{getItemById:a,getSelectorForId:n,config:s}=kCe(X=>X),i=LCe(),l=ZB(),{partStyle:d}=zl(),{fonts:f,textStyles:u}=fe(),p=gCe(_Ce),m=!p?.capabilities?.hasSiteTheme,{persist:h}=Wi({themeFromDocument:m,tokenRef:p?.tokenRef,siteId:p?.siteId??null}),I=Rh({themeFromDocument:m,persist:h}),[w,S]=jj(!1),v=OCe(),b=X=>(wI(v)!=="tablet"||Rj(X))&&SCe(zP[X],v),y=ICe(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=qr(e,o),E=k?.props??{},R=sl(C),W=Vm(C),U=_w(C),Z=k?Xf(k.type):null,V=k?Gj(k.type,D):null,de=P?gd(E[D],P):E[D],Ce=!!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[ee,_e]=jj(0);GP(()=>_e(0),[A]);let Oe=!!k&&!Ce&&(!F||!C);GP(()=>{if(!Oe||ee>=Xj)return;let X=setTimeout(()=>_e(mo=>mo+1),$Ce);return()=>clearTimeout(X)},[Oe,ee]);let Ee=Oe&&ee<Xj,Fe=tc(e,ka(k?.type,o),"textPart");if(!k||Ce)return te(UCe,{onBack:t});let No=Gl(k.type),qo=No?Cc(No,o):null;if(No&&qo){let X=d?.partId===A?d:null,mo=No[qo],ir=mo.writable===!0&&!!F,Ba=Tn=>{F&&i.replaceComponent(F.zone,F.index,{...k,props:hs(E,o,"role",Tn)})};if(ir&&YE(mo)){let Tn=ms(E,o),_0=Pn=>{if(!F)return;let YI=E;for(let[VV,YV]of Object.entries(Pn))YI=hs(YI,o,VV,YV??null);i.replaceComponent(F.zone,F.index,{...k,props:YI})},GV=Ca(I.saved,I.old),jV=sC(Tn)??"",KV=yI(Tn,X?.base??Qj,_0,wI(v)).filter(Pn=>Pn.key==="fontSize"&&b(Pn.key));return te(Or,{motion:Fe,body:te(Jj,{region:mo,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(Tn),sizedStyle:te(Kj,{style:b("style")?{value:jV,options:qj(GV),onChange:Pn=>_0(Pn?{textStyle:Pn}:{textStyle:null,role:null}),onEditStyles:r}:void 0,cells:KV})})})}return te(Or,{motion:Fe,body:te(Jj,{region:mo,sizePx:X?.base.sizePx??null,face:CI(E,o,X,f),base:X?.base??null,onFollowStyle:ir?Ba:void 0,source:Z,slug:ac(E),onBack:t,shows:b})})}if(!F||!C)return Ee?te("div",{className:"sf-note","aria-busy":"true"}):te(zCe,{onBack:t,partId:A,why:F?"no field":"no selector"});let Xo=X=>{i.replaceComponent(F.zone,F.index,{...k,props:X})},Co=X=>{if(tn(X).hidden!==tn(de).hidden||!R){let mo=P?Tw(E,D,P,X):{...E,[D]:X};mo&&Xo(mo);return}th({node:k,propKey:o,kind:R,zone:F.zone,index:F.index},tn(X).text,i.replaceComponent)},Do=de,vo=d?.partId===A?d:null,ue=vo?.styleOwner,eo=ue?a(ue.owner):null,G=ue&&eo?n(ue.owner):null,Ae=!!(ue&&eo&&G),le=Ae?eo.props??{}:E,io=Ae?X=>i.replaceComponent(G.zone,G.index,{...eo,props:X}):Xo,oo=Ae?ue.kind:ka(k?.type,o),rt=ms(le,oo),Xe=[{partKey:oo,face:CI(le,oo,vo,f),sizeGroup:vo?.sizeGroup??null,base:vo?.base??Qj,style:rt}],Mo=DCe(Xe,X=>X.sizeGroup),Lr=Bi(vo?.inks),dt=(X,mo)=>{let ir=le;for(let Ba of Xe)ir=hs(ir,Ba.partKey,X,mo);io(ir)},VI=X=>X?dt("textStyle",X):dc({textStyle:null,role:null}),dc=X=>{let mo=le;for(let ir of Xe)for(let[Ba,Tn]of Object.entries(X))mo=hs(mo,ir.partKey,Ba,Tn??null);io(mo)},ti=R==="text"||R==="textarea",{text:ri,hidden:ta}=tn(de),Fa=C?.[ACe]?.label??o,wn=ta?c("Show {label} on the slide",{label:c(Fa)}):c("Hide {label} on the slide",{label:c(Fa)}),fc=nr("div",{className:"sf-field-head",children:[te(vCe,{}),te("span",{className:"sf-field-label sf-field-label--inline",children:c(Fa)}),ti&&te(ECe,{content:wn,children:te(PCe,{"aria-pressed":ta,"aria-label":wn,onClick:()=>Co({text:ri,hidden:!ta}),children:ta?te(Vj,{name:"eye-off",size:14}):te(Vj,{name:"eye",size:14})})})]}),Cn=!W&&U,hp=!!R&&(JF(C)||W||ta||!U),pc=CI(le,oo,vo,f),xp=pc.kind==="role"?pc.role:null,vn=sC(rt)??uD(xp),E0=Ca(I.saved,I.old),HV=Object.entries(rt).filter(([X,mo])=>X!=="role"&&X!=="textStyle"&&mo!==void 0).length,WV=()=>{let X=le;for(let mo of Xe){let{role:ir,textStyle:Ba}=mo.style;X=HN(X,mo.partKey),ir&&(X=hs(X,mo.partKey,"role",ir)),Ba&&(X=hs(X,mo.partKey,"textStyle",Ba))}io(X)},kn=vn,$V=mD(Xe[0].style),UV=kn?E0.find(X=>X.id===kn)?.name??kn:"",zV=()=>{S(!1),kn&&(I.write(hD({saved:I.saved,old:I.old,styleId:kn,values:EC(Xe[0].style)}),!0),WV())};return nr(WCe,{sectionName:T?.label??k.type,onBack:t,tabs:X=>te(Or,{motion:Fe,body:X}),textEditor:b("words")?te("div",{ref:y,className:"sf-part-text",children:hp?te(Mj,{text:ri,onTextChange:X=>Co(ti?{text:X,hidden:ta}:X),multiline:Xm(R),markup:R!=="plainText",styled:!1,style:Xe[0].style,base:Xe[0].base,setValue:dc,colors:Lr,placeholder:jP(kB(C))??void 0,ariaLabel:c(Fa),head:fc,typedOnCanvas:l===A}):R?ti?fc:null:te(bCe,{field:C,name:o,value:Do,onChange:Co,id:`sf-part-${e}-${o}`})}):void 0,children:[V&&b("sourceNote")&&te(kI,{source:V,slug:ac(E),menuId:SI(E)}),Cn&&te(Kj,{style:b("style")?{value:vn??"",options:qj(E0),onChange:X=>VI(X||null),changed:HV>0,onEditStyles:r,onUpdateStyle:kn&&$V?()=>S(!0):void 0}:void 0,font:b("font")?{value:rt.font??"",styleValue:li(Xe[0].base.fontKey)?.label,options:Na.map(X=>({label:X.label,value:X.key})),onChange:X=>dt("font",X||null)}:void 0,italic:b("italic")?{value:rt.italic,styleValue:jCe(u,vn),onChange:X=>dt("italic",X??null)}:void 0,cells:yI(Xe[0].style,Xe[0].base,dc,wI(v)).filter(X=>b(X.key)),align:b("align")?GCe(rt,Xe[0].base.align,wI(v),dt):void 0,letterCase:b("letterCase")?{value:rt.case??"",styleValue:Xe[0].base.case,onChange:X=>dt("case",X||null)}:void 0}),w&&kn&&te(Wj,{styleName:UV,onCancel:()=>S(!1),onConfirm:zV}),Cn&&Mo===null&&b("fixedSizeHint")&&te(eK,{children:c("Fixed size \u2014 the site\u2019s Text setting doesn\u2019t resize this.")}),tK(HCe,X=>b(X)&&(X==="words"||(X==="sourceNote"?!!V:X==="fixedSizeHint"?Cn&&Mo===null:Cn)))&&te(Xs,{})]})}function GCe(e,o,t,r){let a=RCe("align",t),n=WN(e,t);return{value:e[a]??"",styleValue:n??o,onChange:s=>r(a,s||null)}}function jCe(e,o){return!o||!Array.isArray(e)?!1:e.find(t=>t?.id===o)?.values?.italic===!0}var Qj={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 ZCe}from"react/jsx-runtime";import{useCallback as JCe,useRef as QCe,useState as op}from"react";import{InspectorIconButton as eve}from"efficient-easel/chrome";import{useEasel as ove}from"efficient-easel/easel";import{PopupMenu as tve,PopupMenuItem as rve,PopupMenuLabel as RI}from"efficient-shell/ui";import{CopyToPageIcon as ave}from"efficient-easel/icons";import{useEaselSession as nve}from"efficient-easel/screen/lib/session-context";import{cloneNodeWithFreshIds as sve}from"efficient-easel/screen/lib/document/section-doc";import{FOOTER_TYPE as ive}from"efficient-easel/draw";import{isBackendError as nc}from"efficient-easel/screen/lib/backend-error";import{isEfficientBackend as uK}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 aK(e){return TI.get(e)}function nK(e){return TI.use(e)}function sK(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 iK(e){return e.map(o=>o.change==="take_down"?c("{name} (taken down)",{name:o.name}):o.name)}var lK="SharedSection",KCe=/^[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 cK(e){if(e?.type!==lK)return null;let o=e.props?.section;return typeof o=="string"&&KCe.test(o)?o.toLowerCase():null}function dK(e){let o=[];for(let t of Qf(e)){let r=cK(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 VCe(e,o){return{type:lK,props:{id:e,section:o}}}function fK(e,o){let t=new Map,r=new Set,a=!1,n=Qf(e).map(s=>{let i=cK(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 pK(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??VCe(l.refId,l.section)});return{page:a?{...e,content:n}:e,docs:r}}function XP(e){return!!(e?.publish&&e.liveState)}function YCe(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 qCe(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:[]}):ma(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),ma(),l)),rereadVersion:e.version?a=>e.version(a):void 0,publish:XP(t)?qCe(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 XCe(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=aK(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&&ma(),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=dK(E),W=await Promise.all(R.map(V=>e.load({id:V.section,...o}).catch(()=>null)));R.forEach((V,de)=>{let Ce=W[de];Ce?(PI(Ce.id,Ce.live),k(V.section,Ce.layout,Ce.version,"")):(l.delete(V.section),f.set(V.section,{section:V.section,title:"",problem:"load"}))});let U=fK(E,b());if(d=U.held,!n)return d.size&&s.add(C.id),I({conflict:null,saveFailed:!1,loadFailed:L}),d.size?{...C,layout:U.working}:C;let Z=x1(U.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=pK(R.page,d,b()),U=await t.saveLayout(P,W.page,C,A);if(await D(W.docs,A),!E)return U;let Z=JSON.stringify(R.chrome);if(!R.chrome||Z===E.savedJson||p.lockHolder)return U;try{let V=await e.save(E.id,{layout:R.chrome},{version:E.version,clientId:A??""});EI(E.id,V.live),ma(),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 U},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 Huo(e,o,t){return e.update(o,VO(t))}function Wuo(e,o=Ge(),t=lT(),r={}){let a=uK(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?XCe(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,...mK(p.resolve),lock:o.lock,...m,site:s?()=>o.site.get(n):void 0,siteLiveState:f?()=>f.liveState(n):void 0,siteVersions:YCe(f,n),updateSite:s&&i?h=>i(h,n):void 0,previewHref:o.preview?h=>o.preview.href(h):void 0}}function $uo(e,o=Ge(),t=lT()){let r=uK(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),...mK(qP(n,void 0).resolve),publish:void 0,templateName:a?()=>a.get(e).then(s=>s.name):void 0}}function mK(e){return{resolve:o=>(KT(null),ob(null),e(o))}}var YP="This editor's backend has no website templates.";function lve(e,o,t){let r=sve(e,void 0,o);return t?.(r)??r}function hK({node:e,currentSlug:o,siteId:t,tokenRef:r,runAuthed:a,onNotify:n}){let[s,i]=op(!1),[l,d]=op(null),f=nve(),u=ove(T=>T.config.components),[p,m]=op(!1),[h,I]=op(null),w=QCe(null),[S,v]=op(null),b=JCe(async()=>{if(f.usesBridgedToken&&!r.current){m(!0);return}try{d(await Ge(f).pages.list(t?{siteId:t}:void 0))}catch{m(!0)}},[r,t,f]),y=()=>{if(s){i(!1);return}let 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=lve(e,u,f.documentHooks?.storedNode),P=await a(()=>cve(Ge(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(ZCe,{children:[Ar("span",{"data-menu-toggle":!0,style:{display:"contents"},children:Ar(eve,{buttonRef:w,label:c("Duplicate to another page"),hasPopup:"menu",expanded:s,onClick:y,children:Ar(ave,{size:15})})}),s&&S&&Ar(tve,{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(rve,{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 cve(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===ive);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 Dve}from"efficient-easel/screen/components/ScreenDocumentContext";import{useSectionOps as Mve}from"efficient-easel/screen/lib/document/use-section-ops";import{SELECTION_MODE as pho,isSelectionMode as t0}from"efficient-easel/screen/lib/screen-parts";import{usePreviewParts as Hve}from"efficient-easel/draw/client";import{jsx as tp,jsxs as dve}from"react/jsx-runtime";import{SettingsDrill as fve}from"efficient-easel/panel";import{UiIcon as pve}from"efficient-easel/draw/client";var uve="Not shown on the page";function mve({part:e,onOpen:o}){return tp(fve,{name:c(e.label),preview:e.offPage?c(uve):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(pve,{name:"eye-off",size:14})}):void 0,onOpen:()=>o(e.key)})}function JP(e){return e.filter(o=>!o.identifier)}function xK({parts:e,onOpen:o,heading:t=!0}){let r=JP(e);return r.length?dve("div",{className:"sf-entries",children:[t?tp("h3",{className:"sf-entries-head",children:c("Text")}):null,r.map(a=>tp(mve,{part:a,onOpen:o},a.key))]}):null}import{HEADER_TYPE as Wve,ROOT_ZONE as _K}from"efficient-easel/draw";import{HEADER_TYPE as Ct,FOOTER_TYPE as Qe,newNodeId as hve}from"efficient-easel/draw";function LI(){return{type:Ct,props:{id:hve(Ct)}}}var gK=[{type:"FooterLogo",label:"Logo"},{type:"FooterMenu",label:"Menu"},{type:"FooterText",label:"Text"},{type:"FooterEmailSignup",label:"Email Form"},{type:"FooterSocial",label:"Social Logos"},{type:"FooterPayment",label:"Payment Logos"},{type:"FooterGroup",label:"Footer Box"}],xve=gK.filter(e=>e.type!=="FooterLogo"&&e.type!=="FooterGroup"),gve="FooterGroup",IK="blocks";function yK(e){return e===Qe?gK:e===gve?xve: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 Je:case ze:return c("On every page");case Ct:case Qe:return c("On every page \xB7 old style");default:return null}}var bK=()=>null,SK=()=>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===Je;return r.why==="type"?a?c("The header cannot take another one of these"):c("The footer cannot take another one of these"):a?c("The header holds at most 3 sections"):c("The footer holds at most 6 sections")}import{jsx as NI,Fragment as yve,jsxs as bve}from"react/jsx-runtime";import{useState as Sve}from"react";import{createNode as wve,newId as Cve}from"efficient-easel/data";import{useEasel as vve}from"efficient-easel/easel";import{Banner as kve,Button as e0}from"efficient-shell/ui";import{useScreenDocument as Tve}from"efficient-easel/screen/components/ScreenDocumentContext";var Ive=["FooterPayment"];function wK(e,o){let{id:t,...r}=e.props;for(let a of Fr(e))r[a]=r[a].map(n=>wK(n,o));return o(e.type,r)}var rp=(e,o)=>{if(!Ive.includes(e.type))return null;bg();let t=cn(e.type);return t?As({type:e.type,props:{...e.props}},t).nodes.map(r=>wK(r,o)):null};function CK(){let{appState:e,dispatch:o,config:t}=vve(f=>f),{readOnly:r}=Tve(),[a,n]=Sve(!1),s=e.data.content;if(r||s.some(f=>f.type===ze))return null;let i=s.find(f=>f.type===Qe)??null,l=(f,u)=>wve(t,f,u),d=()=>{let f=bf(i,l,Cve(ze),rp);o({type:"setData",data:u=>({...u,content:[...vu(u.content,f)]}),recordHistory:!0}),n(!1)};return NI(kve,{tone:"info",title:c("This footer uses the old layout"),action:a?bve(yve,{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 Pve}from"react/jsx-runtime";import{InspectorUpLevel as vK}from"efficient-easel/chrome";function kK({nodeId:e,part:o,sectionName:t,onUpToSection:r}){let{select:a}=hI(),n=tc(e,o,"picture");return Pve("div",{children:[o!=="media"?o0(vK,{inline:!0,name:c(_a.media),onSelect:()=>a(Ps(e,"media"))}):o0(vK,{inline:!0,name:c(t),onSelect:r}),o0(Or,{part:o,motion:n,itemWord:c(_a[o])})]})}import{HintsToggle as $ve,SettingsSwitch as Uve,hintsFoldClass as zve}from"efficient-easel/panel";import{useHints as Gve}from"efficient-easel/screen/lib/hints";var AK={kind:"header"},a0={kind:"website"},RK={kind:"website",tab:hl,revealPageGroup:!0},LK={kind:"chat"},FK={kind:"social"},ap="Part";function jve(e){return c("Part of {name}",{name:c(e)})}function Kve(e,o,t){let r=e.describeNode(o);return{name:t,kindLabel:r?jve(r.label):c(ap)}}function Vve(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 BK({what:e}){let o=Vve(e);return Sn("div",{className:"sf-note",children:[Le("p",{children:Le("strong",{children:o.title})}),Sn("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:_a[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=OK({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?Le(kK,{nodeId:t.nodeId,part:e,sectionName:r.describeNode(t.nodeId)?.label??"Hero",onUpToSection:()=>r.onSelectNode(t.nodeId)}):null}}var Yve={header:{name:"Header",kindLabel:"Site settings",icon:"header",render:(e,o)=>{let t=o.hostPanels?.header;return t?Le(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)=>Le(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:()=>Le(Ij,{})},social:{name:"Social links",kindLabel:"Site settings",icon:"social",render:()=>Le(vj,{unavailable:Le(BK,{what:"Social link"})})},ticker:{name:$s,kindLabel:ap,icon:"ticker",head:(e,o)=>e.kind==="ticker"?Kve(o,e.heroId,c($s)):null,render:e=>Le(Fj,{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=OK({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"?Le(rK,{nodeId:e.nodeId,propKey:e.propKey,onBack:()=>o.onSelectNode(e.nodeId),onEditStyle:o.onOpenSiteStyles}):null}},qve=new Set(["header","website","chat"]);function Xve(e,o){if(e==="selection")return null;let t=Yve[e];return qve.has(e)&&!o.hasSiteSettings?{...t,kindLabel:"Not part of a template",render:()=>Le(BK,{what:t.name})}:t}function NK({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}=Dve(),{rows:w}=Fd(),S=w?.find(le=>le.slug===u)??null,v=_ve(),b=Object.keys(v.fields).some(le=>!le.startsWith("_")&&!Rd.includes(le)),{websiteName:y}=fe(),k=Mve({readOnly:h}),{select:F}=Hve(),{selectedItem:T,getItemById:D,getSelectorForId:P,config:L,appState:C}=Eve(le=>le),A=Bve(L,T?{type:T.type,props:T.props}:null),E=T?MB(A??L.components[T.type]?.fields,T.props):[],R=le=>L.components[le]?.label??le,W=T?P(T.props.id):void 0,U=Xve(e.kind,l),Z=Nve(),V={capabilities:l,tokenRef:d,hostPanels:Z.chrome?.panels,describeNode:le=>{let io=D(le);if(!io)return null;let oo=L.components[io.type];return{type:io.type,label:oo?.label??io.type,fields:oo?.fields??{},props:io.props??{}}},siteId:p,websiteName:y??null,notifyParent:f,onNotify:s,onOpenWebsiteSettings:o,onOpenSiteStyles:t,onSelectNode:a},de=U?.head?.(e,V)??null,Ce=pj({kind:S?.kind,pageName:S?.label}),ee=de?.name??(U?c(U.name):T?c(R(T.type)):Ce.name),_e=de?.kindLabel??(U?c(U.kindLabel):T?W&&W.zone!==_K?c("Block"):c("Section"):Ce.kindLabel),Oe=U?U.icon:T?T.type:"page",Ee=t0(e)&&T?Xf(T.type):null,Fe=!!T&&!!W&&W.zone===_K&&T.type!==Qe&&T.type!==Wve,No=BI(C?.data,T),qo=()=>{No||W&&k.duplicateComponent(W.zone,W.index)},Xo=()=>{W&&(k.removeComponent(W.zone,W.index),k.select(null))},Co=T?L.components[T.type]?.defaultProps?.previewHover:void 0,Do=t0(e)&&!!T&&!!W&&Co!==void 0,vo=Do&&T.props.previewHover===!0,ue=()=>{!T||!W||k.replaceComponent(W.zone,W.index,{...T,props:{...T.props,previewHover:!vo}})},{shown:eo,setShown:G}=Gve(),Ae=!!(U||T||b);return Sn("div",{className:`es-sidepanel es-sidepanel--right sf-panel sf-panel--right ${zve(eo)}`.trim(),children:[Le(Rve,{icon:Le(Ys,{type:Oe,size:15}),name:ee,kind:_e,actions:!n&&t0(e)&&T&&T.type!==Qe?Sn(TK,{children:[Le(PK,{label:c("Duplicate section"),title:No??void 0,disabled:No!==null,onClick:qo,children:Le(Lve,{size:15})}),Fe&&l.hasSiteSettings&&Le(hK,{node:T,currentSlug:u,siteId:p??void 0,tokenRef:d,runAuthed:m,onNotify:s}),Le(PK,{label:c("Remove section"),danger:!0,onClick:Xo,children:Le(Fve,{size:15})}),i?Le(EK,{side:"right",onHide:i,divider:!0}):null]}):i?Le(EK,{side:"right",onHide:i}):void 0}),Do&&Sn("div",{className:"sf-preview-pin",children:[Sn("div",{className:"sf-preview-pin-text",children:[Le("span",{className:"sf-preview-pin-label",children:c("Preview hover state")}),Le("span",{className:"sf-preview-pin-hint",children:c("not shown live")})]}),Le(Uve,{checked:vo,onChange:ue,ariaLabel:c("Preview hover state")})]}),Sn("div",{className:"sf-insp-body es-insp-body sf-scroll",children:[U?U.render(e,V):T?Sn(TK,{children:[T.type===Qe&&l.hasSiteSettings&&Le(CK,{}),Le(oR,{children:Le(Or,{entries:Le(xK,{parts:E,heading:!1,onOpen:le=>F(qr(T.props.id,le))}),entryCount:JP(E).length,itemWord:ee})}),Ee&&Le(kI,{source:Ee,slug:ac(T?.props),menuId:SI(T?.props)})]}):b?Le(Or,{omit:Rd}):Le(Ave,{variant:"none",icon:!1,message:c("Select a section or block to edit it."),children:r&&Le(Ove,{variant:"secondary",onClick:r,children:c("This page")})}),Ae&&Le($ve,{shown:eo,onChange:G,label:c("Show hints")})]})]})}import{jsx as x,jsxs as B,Fragment as $K}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 Zve={Hero:"hero",HeroSingle:"herosingle",IntroBleed:"intro",Collections:"collections",AlloyWheelsListing:"wheelslisting",CatalogFilterBar:"catalogfilterbar",ProductGrid:"productgrid",FitmentFinder:"fitmentfinder",Gallery:"gallery",GalleryB:"gallerygrid",SpecStrip:"specstrip",ProductHero:"producthero",SpecTable:"spectable",ProcessSteps:"processsteps",DetailRows:"detailrows",FitmentTable:"fitmenttable",CompatibleTyres:"compatibletyres",TyreSizes:"tyresizes",TyreFitment:"tyrefitment",EuTyreLabel:"eutyrelabel",RelatedProducts:"productgrid",BundleOffer:"bundleoffer",OrderSummary:"ordersummary",DeliveryOptions:"deliveryoptions",PaymentBadges:"paymentbadges",CheckoutCTA:"checkoutcta",Manifesto:"manifesto",ParagraphsA:"paragraphs",Prose:"prose",StatsParagraph:"statsparagraph",Chart:"chart",Mockup:"mockup",Footprint:"footprint",Timeline:"timeline",TimelineTrack:"timelinetrack",TitleWithButtons:"titlewithbuttons",Split:"split",Cards:"cards",FAQ:"faq",Testimonials:"testimonials",Masthead:"masthead",Breadcrumb:"breadcrumb",CategoryBar:"categorybar",FeaturedCover:"featuredcover",LongRead:"longread",ArticleBody:"articlebody",Series:"series",Subscribe:"subscribe",SubscribeBlogs:"subscribe",Events:"events",DocMasthead:"docmasthead",DocTabs:"doctabs",DocBody:"docbody",DocMetaCards:"docmetacards",Banner:"banner",Stats:"stats",KeyFeatures:"keyfeatures",Logos:"logos",Ticker:"ticker",Countdown:"countdown",Reviews:"reviews",SubmitBuild:"submitbuild",ReviewForm:"reviewform",Form:"form",AppointmentBooking:"appointmentbooking",ContactRouting:"contact",ContactLocations:"contactlocations",CityPictures:"citypictures",CityMaps:"citymaps",Header:"header",Footer:"footer",SectionHeader:"sectionheader",Grid:"grid",Flex:"blanksection",Spacer:"spacer",Divider:"divider",CustomHTML:"customhtml",Heading:"heading",Text:"text",ImageBlock:"image",ButtonBlock:"button",MenuBlock:"menu",EmailFormBlock:"emailform",SocialLogosBlock:"sociallogos",PaymentLogosBlock:"paymentlogos",LegalLineBlock:"legalline",SearchBlock:"search",CartBlock:"cart",CountrySwitchBlock:"countryswitch"},J={position:"absolute",inset:0},g={ink:"var(--sf-thumb-ink)",ink2:"var(--sf-thumb-ink-2)",inkSoft:"var(--sf-thumb-ink-soft)",inkSoft2:"var(--sf-thumb-ink-soft-2)",paper:"var(--sf-thumb-paper)",paper2:"var(--sf-thumb-paper-2)",warm:"var(--sf-thumb-warm)",rust:"var(--sf-thumb-rust)",onInk:"var(--sf-thumb-on-ink)",text:"var(--sf-thumb-scene-text)",muted:"var(--sf-thumb-scene-muted)",rule:"var(--sf-thumb-scene-rule)",mark1:"var(--sf-thumb-mark-1)",mark2:"var(--sf-thumb-mark-2)",card:"var(--sf-thumb-card)",scrim:"var(--sf-thumb-scrim)"},qe=(e,o,t=160)=>({background:`linear-gradient(${t}deg,${e},${o})`});function La({size:e,style:o}){let t=Math.max(2,Math.round(e*.13)),r=(a,n,s)=>({position:"absolute",inset:a,background:n,borderRadius:t,...s?{mixBlendMode:s}:null});return B("span",{style:{position:"absolute",display:"block",width:e,height:e,...o},children:[x("span",{style:r("8% 26% 30% 6%",g.mark1)}),x("span",{style:r("26% 6% 8% 30%",g.mark2,"multiply")})]})}function MI({children:e}){return x("span",{style:{fontSize:"4.64cqw",fontWeight:700,letterSpacing:"0.06em",textTransform:"uppercase",color:g.muted},children:e})}function DK({over:e,overTone:o,head:t,headSize:r=11.5,cta:a,ctaBg:n,ctaFg:s,tone:i}){return B($K,{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",...qe(g.paper,g.paper2,150)},children:x(La,{size:34,style:{left:"50%",top:"50%",transform:"translate(-50%,-50%)"}})}),x("span",{style:{fontSize:"3.65cqw",fontWeight:600,color:g.text},children:e}),x("span",{style:{fontSize:"3.65cqw",color:g.muted},children:o})]})}function Ra({k:e,v:o,ok:t}){return B("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",gap:6,padding:"3.5px 2px",borderBottom:`1px solid ${g.rule}`,fontSize:"3.98cqw",color:g.muted},children:[x("span",{children:e}),B("span",{style:{display:"flex",gap:6,alignItems:"center"},children:[x("b",{style:{color:g.text,fontWeight:700},children:o}),t&&x("span",{style:{color:g.rust,fontWeight:700},children:"\u2713"})]})]})}function We({title:e,children:o}){return B("div",{style:{...J,background:g.card,padding:"9px 10px",display:"flex",flexDirection:"column",gap:6},children:[x(MI,{children:e}),o]})}function MK({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 wo({children:e,w:o}){return x("span",{style:{fontSize:"3.98cqw",lineHeight:1.45,color:g.muted,width:o,display:"block"},children:e})}function 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 HK({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 Jve={wheelslisting:x(We,{title:"All wheels",children:x("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[["Ridge 19","20\xD79 +12","$365"],["Ridge 29","18\xD79 +20","$410"],["Ridge 39","17\xD78 \u221210","$455"]].map(([e,o,t])=>B("div",{style:{display:"flex",alignItems:"center",gap:6},children:[x("span",{style:{width:20,height:15,borderRadius:3,flex:"none",position:"relative",overflow:"hidden",...qe(g.paper,g.paper2,150)},children:x(La,{size:12,style:{left:"50%",top:"50%",transform:"translate(-50%,-50%)"}})}),x("b",{style:{flex:1,fontSize:"4.31cqw",color:g.text},children:e}),x("span",{style:{fontSize:"3.65cqw",color:g.muted},children:o}),x("b",{style:{fontSize:"4.31cqw",color:g.text,width:26,textAlign:"right"},children:t})]},e))})}),catalogfilterbar:B("div",{style:{...J,background:g.card,display:"flex",flexDirection:"column",justifyContent:"center",gap:7,padding:"0 11px"},children:[B("div",{style:{display:"flex",gap:4,alignItems:"center"},children:[["20 inch","6\xD7139.7","Black"].map(e=>B("span",{style:{fontSize:"3.65cqw",fontWeight:600,padding:"4px 7px",borderRadius:99,background:g.text,color:g.onInk,display:"flex",gap:4,alignItems:"center"},children:[e,x("span",{style:{opacity:.6},children:"\u2715"})]},e)),x("span",{style:{fontSize:"3.65cqw",color:g.rust,fontWeight:700},children:"Clear"})]}),B("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[x("span",{style:{fontSize:"3.65cqw",color:g.muted},children:"128 results"}),x("span",{style:{fontSize:"3.65cqw",color:g.muted,border:`1px solid ${g.rule}`,borderRadius:3,padding:"3px 6px"},children:"Sort: Price \u25BE"})]})]}),fitmentfinder:B("div",{style:{...J,padding:"10px 12px",display:"flex",flexDirection:"column",gap:6,justifyContent:"center",...qe(g.ink,g.inkSoft)},children:[x("span",{style:{fontSize:"5.31cqw",fontWeight:700,color:g.onInk},children:"Will it fit your rig?"}),B("div",{style:{display:"flex",gap:4},children:[["2021","Toyota","Hilux"].map(e=>B("span",{style:{flex:1,fontSize:"3.65cqw",color:g.text,background:g.card,borderRadius:3,padding:"5px 6px",display:"flex",justifyContent:"space-between"},children:[e," ",x("span",{style:{color:g.muted},children:"\u25BE"})]},e)),x("span",{style:{fontSize:"3.65cqw",fontWeight:700,letterSpacing:"0.08em",background:g.warm,color:g.ink,borderRadius:3,padding:"5px 7px"},children:"GO"})]})]}),compatibletyres:x(We,{title:"Tyres that suit",children:x("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(3,1fr)",gap:5,minHeight:0},children:[["Ridge Grappler","$489"],["Trail Grappler","$525"],["Terra Grappler","$438"]].map(([e,o])=>B("div",{style:{display:"flex",flexDirection:"column",gap:2,minWidth:0},children:[x("div",{style:{flex:1,minHeight:0,borderRadius:3,position:"relative",overflow:"hidden",background:g.ink},children:x("span",{style:{position:"absolute",left:"50%",top:"50%",transform:"translate(-50%,-50%)",width:26,height:26,borderRadius:"50%",border:`5px solid ${g.mark2}`,boxSizing:"border-box"}})}),x("span",{style:{fontSize:"3.32cqw",fontWeight:600,color:g.text,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},children:e}),x("span",{style:{fontSize:"3.32cqw",color:g.muted},children:o})]},e))})}),tyresizes:x(We,{title:"Available sizes",children:x("div",{style:{flex:1,display:"flex",flexWrap:"wrap",gap:4,alignContent:"center"},children:["265/65R17","285/70R17","265/60R18","275/55R20"].map((e,o)=>x("span",{style:{fontSize:"3.65cqw",fontWeight:600,padding:"5px 7px",borderRadius:3,border:`1px solid ${o===0?g.rust:g.rule}`,color:o===0?g.rust:g.text,background:o===0?g.paper:g.card},children:e},e))})}),tyrefitment:B(We,{title:"Will it fit your car?",children:[x("div",{style:{display:"flex",gap:3},children:["Make","Model","Year","Trim"].map(e=>B("span",{style:{flex:1,minWidth:0,fontSize:"3.32cqw",color:g.muted,background:g.paper,border:`1px solid ${g.rule}`,borderRadius:3,padding:"4px 5px",display:"flex",justifyContent:"space-between",gap:2,overflow:"hidden",whiteSpace:"nowrap"},children:[e," ",x("span",{style:{color:g.muted},children:"\u25BE"})]},e))}),x("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:2,justifyContent:"center",minHeight:0},children:[["265/65R17","Fits",!0],["285/70R17","Not your size",!1]].map(([e,o,t])=>B("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"baseline",gap:6,borderTop:`1px solid ${g.rule}`,paddingTop:3},children:[x("span",{style:{fontSize:"3.32cqw",fontWeight:600,color:g.text},children:e}),x("span",{style:{fontSize:"3.32cqw",fontWeight:t?700:400,letterSpacing:"0.06em",color:t?g.warm:g.muted},children:o})]},e))})]}),eutyrelabel:B("div",{style:{...J,background:g.card,padding:"9px 11px",display:"flex",gap:8,alignItems:"center"},children:[x("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:1.5},children:[["A","42%"],["B","56%"],["C","70%"],["D","84%"]].map(([e,o],t)=>B("div",{style:{display:"flex",alignItems:"center",gap:3},children:[x("span",{style:{width:o,height:6,borderRadius:"0 2px 2px 0",background:t===1?g.rust:g.mark1}}),x("span",{style:{fontSize:"3.32cqw",fontWeight:700,color:t===1?g.rust:g.muted},children:e})]},e))}),B("div",{style:{flex:"none",display:"flex",flexDirection:"column",gap:3,alignItems:"center"},children:[x("b",{style:{fontSize:"6.63cqw",lineHeight:1,color:g.text},children:"72"}),x("span",{style:{fontSize:"3.32cqw",letterSpacing:"0.08em",color:g.muted},children:"dB"})]})]}),bundleoffer:B("div",{style:{...J,background:g.paper,padding:"9px 11px",display:"flex",flexDirection:"column",gap:5,justifyContent:"center"},children:[x(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(La,{size:17,style:{left:"50%",top:"50%",transform:"translate(-50%,-50%)"}})},e)),x("span",{style:{fontSize:"5.69cqw",fontWeight:700,color:g.muted},children:"+"}),B("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:1},children:[x("span",{style:{fontSize:"3.65cqw",color:g.muted,textDecoration:"line-through"},children:"$1,024"}),x("b",{style:{fontSize:"6.02cqw",color:g.rust,lineHeight:1},children:"$899"})]})]})]}),checkoutcta:B("div",{style:{...J,display:"flex",alignItems:"center",justifyContent:"space-between",padding:"0 13px",gap:8,...qe(g.ink,g.ink2)},children:[B("div",{style:{display:"flex",flexDirection:"column",gap:2},children:[x("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.12em",color:g.warm,fontWeight:700},children:"READY TO ORDER"}),x("b",{style:{fontSize:"6.63cqw",color:g.onInk,lineHeight:1},children:"$1,956"}),x("span",{style:{fontSize:"3.65cqw",color:g.onInk,opacity:.65},children:"4 items \xB7 fitted free"})]}),x("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.12em",fontWeight:700,padding:"6px 10px",borderRadius:2,background:g.warm,color:g.ink,flex:"none"},children:"CHECKOUT"})]}),contact:x(We,{title:"Who do you need?",children:x("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[["Fitment help","the workshop"],["Order status","the front desk"],["Trade accounts","sales"]].map(([e,o])=>B("div",{style:{display:"flex",alignItems:"center",gap:5},children:[x("b",{style:{flex:1,fontSize:"4.31cqw",color:g.text},children:e}),x("span",{style:{fontSize:"3.65cqw",color:g.muted},children:o}),x("span",{style:{fontSize:"4.64cqw",color:g.rust,lineHeight:1},children:"\u203A"})]},e))})}),contactlocations:x(We,{title:"Find us",children:x("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(2,1fr)",gap:5,minHeight:0},children:[["Brisbane","7 Kerry Rd","Mon\u2013Sat"],["Townsville","12 Enterprise","Mon\u2013Fri"]].map(([e,o,t])=>B("div",{style:{border:`1px solid ${g.rule}`,borderRadius:4,padding:"5px 6px",display:"flex",flexDirection:"column",gap:1},children:[x("b",{style:{fontSize:"4.31cqw",color:g.text},children:e}),x("span",{style:{fontSize:"3.32cqw",color:g.muted},children:o}),x("span",{style:{fontSize:"3.32cqw",color:g.rust,fontWeight:700},children:t})]},e))})}),citypictures:x(We,{title:"Our studios",children:B("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:3,minHeight:0},children:[x("span",{style:{fontSize:"3.32cqw",letterSpacing:"0.12em",fontWeight:700,color:g.muted},children:"A \xB7 AMERICAS"}),x("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(3,1fr)",gap:4,minHeight:0},children:["Los Angeles","Miami","Toronto"].map(e=>B("div",{style:{position:"relative",minHeight:0},children:[x(K,{r:3,style:{...J,background:`linear-gradient(transparent 45%,${g.scrim} 45%),${qe(g.ink,g.inkSoft2).background}`}}),x("b",{style:{position:"absolute",left:5,bottom:4,fontSize:"3.65cqw",color:g.onInk},children:e})]},e))})]})}),citymaps:x(We,{title:"Find us",children:x("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(2,1fr)",gap:5,minHeight:0},children:[["Brisbane","7 Kerry Rd"],["Townsville","12 Enterprise"]].map(([e,o])=>B("div",{style:{position:"relative",padding:"4px 5px",display:"flex",flexDirection:"column",gap:2,minHeight:0},children:[x(K,{r:4,style:{...J,background:"none",border:`1px solid ${g.rule}`}}),x("b",{style:{position:"relative",fontSize:"4.31cqw",color:g.text},children:e}),x("span",{style:{position:"relative",fontSize:"3.32cqw",color:g.muted},children:o}),B("div",{style:{flex:1,minHeight:0,position:"relative"},children:[x(K,{r:3,style:{...J,...qe(g.paper,g.paper2,150)}}),x(K,{w:"60%",h:"60%",r:8,style:{position:"absolute",left:"12%",top:"20%",background:g.mark1,opacity:.75}}),x(K,{w:6,h:6,r:3,style:{position:"absolute",left:"44%",top:"34%",background:g.rust}})]})]},e))})}),form:x(We,{title:"Send us a message",children:B("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[B("div",{style:{display:"flex",gap:5},children:[x(DI,{label:"Name"}),x(DI,{label:"Email"})]}),x(DI,{label:"Message",filled:!0}),x(HK,{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(HK,{children:"POST"})]})}),submitbuild:x(We,{title:"Show us your build",children:B("div",{style:{flex:1,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:3,border:`1px dashed ${g.mark1}`,borderRadius:5,background:g.paper},children:[x("span",{style:{fontSize:"6.63cqw",lineHeight:1,color:g.rust,fontWeight:300},children:"+"}),x("span",{style:{fontSize:"3.65cqw",color:g.muted},children:"Drop a photo of your rig"})]})}),masthead:B("div",{style:{...J,background:g.paper,display:"flex",flexDirection:"column",justifyContent:"center",padding:"0 13px",gap:5},children:[x("span",{style:{height:1.5,background:g.text}}),x("span",{style:{fontSize:"7.65cqw",fontWeight:800,letterSpacing:"0.02em",color:g.text,lineHeight:1},children:"THE TRACK"}),B("div",{style:{display:"flex",justifyContent:"space-between",fontSize:"3.65cqw",letterSpacing:"0.1em",textTransform:"uppercase",color:g.muted},children:[x("span",{children:"Issue 14"}),x("span",{children:"Spring 2026"})]}),x("span",{style:{height:1,background:g.rule}})]}),featuredcover:B("div",{style:{...J,overflow:"hidden",...qe(g.ink,g.inkSoft2)},children:[x(La,{size:92,style:{right:-18,top:-14}}),x("div",{style:{position:"absolute",inset:0,background:`linear-gradient(0deg,${g.scrim},transparent 62%)`}}),B("div",{style:{position:"absolute",left:12,right:12,bottom:11,display:"flex",flexDirection:"column",gap:3},children:[x("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.16em",fontWeight:700,color:g.warm},children:"FEATURE"}),x("span",{style:{fontSize:"6.16cqw",lineHeight:1.15,fontWeight:700,color:g.onInk},children:"Four days on the Madigan Line"})]})]}),longread:B("div",{style:{...J,background:g.card,padding:"10px 14px",display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[x("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.14em",fontWeight:700,color:g.rust},children:"12 MIN READ"}),x("span",{style:{fontSize:"6.02cqw",lineHeight:1.15,fontWeight:700,color:g.text},children:"What breaks first, and why"}),x(wo,{children:"Every failure starts in the same place:"}),x(wo,{w:"80%",children:"the bolt nobody re-torqued."})]}),articlebody:B("div",{style:{...J,background:g.card,padding:"10px 22px",display:"flex",flexDirection:"column",gap:4,justifyContent:"center",alignItems:"center",textAlign:"center"},children:[x("span",{style:{fontSize:"4.97cqw",lineHeight:1.2,fontWeight:700,color:g.text},children:"Why offset beats width"}),x(wo,{w:"100%",children:"A wider wheel adds grip only if the offset still"}),x(wo,{w:"88%",children:"clears the arch, so the offset is chosen first."}),x(wo,{w:"80%",children:"Width follows from the space left."})]}),series:x(We,{title:"Recurring columns",children:x("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:5,justifyContent:"center"},children:[["Shed Notes","Monthly"],["Track Tested","Fortnightly"],["Reader Rigs","Weekly"]].map(([e,o])=>B("div",{style:{display:"flex",alignItems:"center",gap:6},children:[x("span",{style:{width:3,height:12,borderRadius:2,background:g.rust,flex:"none"}}),x("b",{style:{flex:1,fontSize:"4.64cqw",color:g.text},children:e}),x("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.08em",textTransform:"uppercase",color:g.muted},children:o})]},e))})}),events:x(We,{title:"Latest posts",children:x("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:5,justifyContent:"center"},children:[[g.inkSoft,g.inkSoft2,"Madigan Line, four days"],[g.rust,g.warm,"Why offset beats width"]].map(([e,o,t])=>B("div",{style:{display:"flex",gap:6,alignItems:"center"},children:[x("span",{style:{width:24,height:18,borderRadius:3,flex:"none",...qe(e,o,150)}}),B("div",{style:{display:"flex",flexDirection:"column",gap:1,minWidth:0},children:[x("b",{style:{fontSize:"4.31cqw",color:g.text},children:t}),x("span",{style:{fontSize:"3.65cqw",color:g.muted},children:"4 Sep \xB7 Shed Notes"})]})]},t))})}),docmasthead:B("div",{style:{...J,background:g.card,padding:"12px 14px",display:"flex",flexDirection:"column",gap:5,justifyContent:"center"},children:[x("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.16em",fontWeight:700,color:g.muted},children:"POLICY"}),x("span",{style:{fontSize:"6.49cqw",fontWeight:700,color:g.text,lineHeight:1.1},children:"Returns & refunds"}),x("span",{style:{fontSize:"3.65cqw",color:g.muted},children:"Version 3 \xB7 Updated 4 Sep 2026"}),x("span",{style:{height:2,width:26,background:g.rust,borderRadius:1}})]}),docbody:x("div",{style:{...J,background:g.card,padding:"9px 13px",display:"flex",flexDirection:"column",gap:3,justifyContent:"center"},children:[["1.","You may return an unfitted wheel within 30 days."],["2.","Fitted wheels are covered by the structural warranty."],["3.","Freight on a change of mind is yours."]].map(([e,o])=>B("div",{style:{display:"flex",gap:5},children:[x("b",{style:{fontSize:"3.98cqw",color:g.rust,flex:"none"},children:e}),x(wo,{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(wo,{children:"Unfitted wheels come back within 30 days, no questions."}),x(wo,{w:"58%",children:"Freight on a change of mind is yours."})]})]}),paragraphs:B("div",{style:{...J,background:g.card,padding:"11px 14px",display:"flex",gap:10,alignItems:"center"},children:[x("span",{style:{flex:1,fontSize:"5.86cqw",lineHeight:1.2,fontWeight:700,color:g.text},children:"The right wheel is the boring one."}),B("div",{style:{flex:1,display:"flex",flexDirection:"column"},children:[x(wo,{children:"Forged, correctly offset, rated for what you actually"}),x(wo,{children:"carry. Everything else is a photograph."})]})]}),keyfeatures:x(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(wo,{children:"Twelve years of fitting the same three questions, and the"}),x(wo,{children:"answer has not moved: load rating, offset, then looks."})]})]}),chart:B(We,{title:"Load vs weight",children:[x("div",{style:{flex:1,display:"flex",alignItems:"flex-end",gap:5,paddingBottom:2},children:[38,62,84,71,96].map((e,o)=>x("span",{style:{flex:1,height:`${e}%`,borderRadius:"2px 2px 0 0",background:o===4?g.rust:g.mark1}},o))}),x("span",{style:{height:1,background:g.rule,marginTop:-4}})]}),mockup:x("div",{style:{...J,overflow:"hidden",display:"flex",alignItems:"center",justifyContent:"center",...qe(g.inkSoft,g.ink)},children:B("div",{style:{width:"72%",height:"74%",borderRadius:4,overflow:"hidden",background:g.card,boxShadow:`0 6px 14px ${g.scrim}`},children:[x("div",{style:{height:9,background:g.paper,display:"flex",alignItems:"center",gap:2,padding:"0 4px"},children:[0,1,2].map(e=>x("span",{style:{width:2.5,height:2.5,borderRadius:"50%",background:g.mark1}},e))}),B("div",{style:{padding:5,display:"flex",flexDirection:"column",gap:3},children:[x("span",{style:{height:4,width:"56%",borderRadius:1,background:g.mark2}}),x("span",{style:{height:14,borderRadius:2,...qe(g.paper,g.paper2,150)}}),x("span",{style:{height:3,width:"38%",borderRadius:1,background:g.rust}})]})]})}),manifesto:x("div",{style:{...J,overflow:"hidden",display:"flex",alignItems:"center",padding:"0 16px",...qe(g.ink,g.ink2)},children:B("span",{style:{fontSize:"6.63cqw",lineHeight:1.2,fontWeight:700,color:g.onInk},children:["We build for the ",x("span",{style:{color:g.warm},children:"last"})," ten percent of the track."]})}),timeline:x(We,{title:"Our story",children:x("div",{style:{flex:1,display:"flex",flexDirection:"column",justifyContent:"center",gap:6,paddingLeft:4},children:[["1998","One shed, one lathe."],["2009","First forged rim."],["2024","27,000 rigs on."]].map(([e,o],t)=>B("div",{style:{display:"flex",gap:7,alignItems:"flex-start",position:"relative"},children:[t<2&&x("span",{style:{position:"absolute",left:3,top:8,bottom:-8,width:1,background:g.rule}}),x("span",{style:{width:7,height:7,borderRadius:"50%",flex:"none",marginTop:1,background:g.rust,zIndex:1}}),B("div",{style:{display:"flex",flexDirection:"column",gap:0,minWidth:0},children:[x("b",{style:{fontSize:"4.64cqw",color:g.text},children:e}),x(wo,{children:o})]})]},e))})}),timelinetrack:B("div",{style:{...J,padding:"0 12px",display:"flex",flexDirection:"column",gap:10,justifyContent:"center",...qe(g.ink,g.inkSoft)},children:[x("span",{style:{fontSize:"3.98cqw",fontWeight:700,letterSpacing:"0.14em",textTransform:"uppercase",color:g.warm},children:"Milestones"}),B("div",{style:{position:"relative",display:"flex",justifyContent:"space-between",paddingTop:7},children:[x("span",{style:{position:"absolute",left:0,right:0,top:3,height:1,background:g.mark2,opacity:.55}}),["1998","2009","2016","2024"].map((e,o)=>B("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:3,position:"relative"},children:[x("span",{style:{position:"absolute",top:-7,width:6,height:6,borderRadius:"50%",background:o===3?g.warm:g.mark1}}),x("span",{style:{fontSize:"4.31cqw",fontWeight:700,color:o===3?g.warm:g.onInk,opacity:o===3?1:.75},children:e})]},e))]})]}),footprint:B("div",{style:{...J,overflow:"hidden",...qe(g.paper,g.paper2,150)},children:[x("span",{style:{position:"absolute",left:"8%",top:"18%",width:"62%",height:"64%",borderRadius:"48% 52% 40% 60% / 55% 45% 55% 45%",background:g.mark1,opacity:.75}}),x("span",{style:{position:"absolute",left:"52%",top:"52%",width:"34%",height:"34%",borderRadius:"58% 42% 55% 45% / 45% 58% 42% 55%",background:g.mark2,opacity:.55}}),[["26%","38%"],["44%","58%"],["62%","34%"]].map(([e,o])=>x("span",{style:{position:"absolute",left:e,top:o,width:7,height:7,borderRadius:"50% 50% 50% 0",transform:"rotate(-45deg)",background:g.rust}},e)),x("span",{style:{position:"absolute",left:11,bottom:9,fontSize:"4.64cqw",fontWeight:700,color:g.text},children:"3 fitting bays"})]}),banner:B("div",{style:{...J,display:"flex",alignItems:"center",justifyContent:"space-between",padding:"0 13px",gap:8,background:g.rust},children:[B("div",{style:{display:"flex",flexDirection:"column",gap:2},children:[x("b",{style:{fontSize:"6.02cqw",color:g.onInk},children:"End of season \xB7 20% off"}),x("span",{style:{fontSize:"3.98cqw",color:g.onInk,opacity:.8},children:"Fitted free, this month only."})]}),x("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.12em",fontWeight:700,padding:"5px 9px",borderRadius:2,background:g.onInk,color:g.text,flex:"none"},children:"SHOP"})]}),titlewithbuttons:B("div",{style:{...J,background:g.paper,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:7,padding:"0 14px",textAlign:"center"},children:[x("span",{style:{fontSize:"6.49cqw",lineHeight:1.15,fontWeight:700,color:g.text},children:"Not sure what fits?"}),B("div",{style:{display:"flex",gap:5},children:[x("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.12em",fontWeight:700,padding:"5px 9px",borderRadius:2,background:g.text,color:g.onInk},children:"FIND MY FIT"}),x("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.12em",fontWeight:700,padding:"5px 9px",borderRadius:2,border:`1px solid ${g.text}`,color:g.text},children:"CALL US"})]})]}),ticker:x("div",{style:{...J,overflow:"hidden",background:g.ink,display:"flex",alignItems:"center"},children:x("span",{style:{whiteSpace:"nowrap",fontSize:"6.29cqw",fontWeight:800,letterSpacing:"0.06em",color:g.warm,marginLeft:-14},children:"FREE FITTING \xB7 48HR DISPATCH \xB7 FREE FITTING \xB7 48HR DISPATCH"})}),countdown:B("div",{style:{...J,padding:"10px 12px",display:"flex",flexDirection:"column",alignItems:"center",gap:6,justifyContent:"center",...qe(g.ink,g.ink2)},children:[x("span",{style:{fontSize:"3.65cqw",fontWeight:700,letterSpacing:"0.16em",textTransform:"uppercase",color:g.muted},children:"Back online in"}),x("div",{style:{display:"flex",alignItems:"flex-start",gap:5},children:[["23","Hours"],["59","Minutes"],["48","Seconds"]].map(([e,o],t)=>B("div",{style:{display:"flex",alignItems:"flex-start",gap:5},children:[t>0&&x("b",{style:{fontSize:"9.5cqw",lineHeight:1,color:g.warm},children:":"}),B("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:2},children:[x("b",{style:{fontSize:"11.5cqw",lineHeight:1,color:g.onInk,fontVariantNumeric:"tabular-nums"},children:e}),x("span",{style:{fontSize:"3.2cqw",letterSpacing:"0.1em",textTransform:"uppercase",opacity:.62,color:g.onInk},children:o})]})]},o))})]}),breadcrumb:x("div",{style:{...J,background:g.card,display:"flex",alignItems:"center",padding:"0 13px"},children:B("span",{style:{fontSize:"4.64cqw",color:g.muted},children:["Home ",x("span",{style:{opacity:.5},children:"/"})," Wheels ",x("span",{style:{opacity:.5},children:"/"})," ",x("span",{style:{color:g.text,fontWeight:700},children:"20 inch"})]})}),categorybar:B("div",{style:{...J,background:g.card,display:"flex",flexDirection:"column",justifyContent:"center",gap:7,padding:"0 11px"},children:[x("div",{style:{display:"flex",gap:5},children:["All","Wheels","Tyres","Lift"].map((e,o)=>x("span",{style:{fontSize:"3.98cqw",fontWeight:o===0?700:500,padding:"4px 7px",borderRadius:99,background:o===0?g.text:g.paper,color:o===0?g.onInk:g.muted},children:e},e))}),x("span",{style:{height:1,background:g.rule}})]}),intro:B("div",{style:{...J,overflow:"hidden",background:g.card},children:[x("div",{style:{position:"absolute",inset:0,...qe(g.ink,g.inkSoft2)}}),x(La,{size:64,style:{right:8,top:6}}),B("div",{style:{position:"absolute",left:16,right:16,bottom:8,top:"46%",background:g.paper,borderRadius:6,padding:"8px 11px",display:"flex",flexDirection:"column",gap:2,boxShadow:`0 -4px 10px ${g.scrim}`},children:[x("span",{style:{fontSize:"5.69cqw",fontWeight:700,color:g.text},children:"Since 1998"}),x(wo,{children:"One shed, one lathe, one idea."}),x(wo,{w:"66%",children:"It turned out to be right."})]})]}),gallerygrid:x(We,{title:"Photo gallery",children:x("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(3,1fr)",gridTemplateRows:"repeat(2,1fr)",gap:4,minHeight:0},children:[[g.rust,g.warm],[g.inkSoft,g.ink],[g.paper2,g.mark2],[g.ink,g.inkSoft2],[g.warm,g.paper2],[g.mark2,g.inkSoft]].map(([e,o],t)=>x("div",{style:{borderRadius:3,...qe(e,o,140+t*22)}},t))})}),gallery:B(We,{title:"Gallery",children:[x("div",{style:{display:"flex",gap:8,alignItems:"center",marginTop:-2},children:["On the truck","Studio","Close-ups"].map((e,o)=>x("span",{style:{fontSize:"3.98cqw",fontWeight:o===0?700:500,color:o===0?g.text:g.muted,borderBottom:`1.5px solid ${o===0?g.rust:"transparent"}`,paddingBottom:2},children:e},e))}),x("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(3,1fr)",gap:4,minHeight:0},children:[[g.rust,g.warm],[g.ink,g.inkSoft],[g.paper2,g.mark2]].map(([e,o],t)=>x("div",{style:{borderRadius:3,...qe(e,o,150+t*20)}},t))})]}),ordersummary:B(We,{title:"Order summary",children:[B("div",{style:{display:"flex",gap:6,alignItems:"center",paddingBottom:4},children:[x("span",{style:{width:26,height:26,borderRadius:4,position:"relative",overflow:"hidden",flex:"none",...qe(g.paper,g.paper2,150)},children:x(La,{size:18,style:{left:"50%",top:"50%",transform:"translate(-50%,-50%)"}})}),B("div",{style:{display:"flex",flexDirection:"column",gap:1,minWidth:0},children:[x("b",{style:{fontSize:"4.31cqw",color:g.text},children:"Ridge Grappler"}),x("span",{style:{fontSize:"3.65cqw",color:g.muted},children:"20\xD79 +12 \xB7 qty 4"})]})]}),B("div",{style:{flex:1,minHeight:0,display:"flex",flexDirection:"column",justifyContent:"center"},children:[x(Ra,{k:"Subtotal",v:"$1,956"}),x(Ra,{k:"Fitting",v:"Free"}),B("div",{style:{display:"flex",justifyContent:"space-between",paddingTop:5,fontSize:"4.64cqw"},children:[x("b",{style:{color:g.text},children:"Total"}),x("b",{style:{color:g.text,fontSize:"6.02cqw"},children:"$1,956"})]})]})]}),deliveryoptions:x(We,{title:"Delivery",children:x("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[["Standard","3\u20135 days","Free",!0],["Express","Next day","$19",!1]].map(([e,o,t,r])=>B("div",{style:{display:"flex",alignItems:"center",gap:6,padding:"5px 6px",borderRadius:4,border:`1px solid ${r?g.rust:g.rule}`,background:r?g.paper:g.card},children:[x("span",{style:{width:7,height:7,borderRadius:"50%",flex:"none",border:`1.5px solid ${r?g.rust:g.mark1}`,background:r?g.rust:"transparent"}}),x("span",{style:{flex:1,fontSize:"4.31cqw",fontWeight:600,color:g.text},children:e}),x("span",{style:{fontSize:"3.98cqw",color:g.muted},children:o}),x("b",{style:{fontSize:"4.31cqw",color:g.text},children:t})]},e))})}),paymentbadges:B("div",{style:{...J,background:g.paper,display:"flex",flexDirection:"column",gap:8,justifyContent:"center",padding:"0 12px"},children:[x(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",...qe(g.ink,g.ink2)},children:[x("span",{style:{fontSize:"3.98cqw",fontWeight:700,letterSpacing:"0.14em",textTransform:"uppercase",color:g.warm},children:"By the numbers"}),B("div",{style:{display:"flex",gap:8},children:[x(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(MK,{}),x("span",{style:{fontSize:"3.98cqw",color:g.muted},children:"Dave M. \xB7 Hilux N80"})]})]}),reviews:B(We,{title:"Reviews",children:[x("div",{style:{display:"flex",gap:4,height:22},children:[[g.inkSoft,g.inkSoft2],[g.rust,g.warm],[g.ink,g.inkSoft],[g.mark2,g.mark1]].map(([e,o],t)=>x("div",{style:{flex:1,borderRadius:3,...qe(e,o,140+t*15)}},t))}),x("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:5,justifyContent:"center"},children:[["Dave M.",5,"Not one chip after the Simpson."],["Sara K.",4,"Fitted in an hour, no fuss."]].map(([e,o,t])=>B("div",{style:{display:"flex",gap:5,alignItems:"flex-start"},children:[x(MK,{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(wo,{children:t})]})]},e))})]}),logos:B("div",{style:{...J,display:"flex",flexDirection:"column",gap:9,justifyContent:"center",padding:"0 12px",...qe(g.ink,g.inkSoft)},children:[x("span",{style:{fontSize:"3.98cqw",fontWeight:700,letterSpacing:"0.14em",textTransform:"uppercase",color:g.warm},children:"As fitted by"}),x("div",{style:{display:"grid",gridTemplateColumns:"repeat(4,1fr)",gap:8},children:["ARB","TJM","IRONMAN","OPPOSITE"].map(e=>x("span",{style:{textAlign:"center",fontSize:"4.31cqw",fontWeight:800,letterSpacing:"0.08em",color:g.onInk,opacity:.82},children:e},e))})]}),prose:B("div",{style:{...J,background:g.paper,padding:"11px 14px",display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[x("span",{style:{fontSize:"5.86cqw",fontWeight:700,color:g.text},children:"Why offset matters"}),B("div",{style:{display:"flex",gap:6},children:[x("span",{style:{fontSize:"15.3cqw",lineHeight:.78,fontWeight:800,color:g.rust,marginTop:1},children:"T"}),B("div",{style:{display:"flex",flexDirection:"column"},children:[x(wo,{children:"he number on the back of your wheel decides whether the"}),x(wo,{w:"76%",children:"tyre sits under the guard or an inch outside it."})]})]})]}),cards:x(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(wo,{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(wo,{w:"90%",children:"Use the fitment finder \u2014 it reads your build, not just the model."})]},e))})}),hero:B("div",{style:{...J,overflow:"hidden",...qe(g.ink,g.ink2)},children:[x("div",{style:{...J,background:`linear-gradient(90deg,${g.scrim},transparent 70%)`}}),x("div",{style:{position:"relative",height:"100%",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"flex-start",padding:"12px 14px",gap:5},children:x(DK,{over:"NEW \xB7 SUMMER",overTone:g.warm,head:"Built for the worst road you own",cta:"SHOP ALL",ctaBg:g.warm,ctaFg:g.ink,tone:g.onInk})}),x(La,{size:104,style:{right:-24,bottom:-30}})]}),herosingle:B("div",{style:{...J,display:"flex",background:g.paper,overflow:"hidden"},children:[x("div",{style:{flex:1,padding:12,display:"flex",flexDirection:"column",gap:5,justifyContent:"center"},children:x(DK,{over:"ALL-TERRAIN",overTone:g.rust,head:"Grip that does not ask",headSize:12,cta:"EXPLORE",ctaBg:g.text,ctaFg:g.onInk,tone:g.text})}),x("div",{style:{flex:1,position:"relative",...qe(g.inkSoft,g.inkSoft2)},children:x(La,{size:74,style:{right:-14,top:16}})})]}),productgrid:x(We,{title:"Best sellers",children:B("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(3,1fr)",gap:5,minHeight:0},children:[x(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,...qe(o,t)},children:x("span",{style:{fontSize:"3.98cqw",fontWeight:700,letterSpacing:"0.04em"},children:e})},e))})}),producthero:B("div",{style:{...J,display:"flex",background:g.card,overflow:"hidden"},children:[x("div",{style:{flex:1.1,position:"relative",...qe(g.paper,g.paper2,150)},children:x(La,{size:78,style:{left:"50%",top:"50%",transform:"translate(-50%,-50%)"}})}),B("div",{style:{flex:1,padding:"10px 10px 10px 8px",display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[x("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.16em",fontWeight:700,color:g.rust},children:"NITTO"}),x("b",{style:{fontSize:"6.29cqw",color:g.text},children:"Ridge Grappler"}),x("span",{style:{fontSize:"6.63cqw",fontWeight:700,color:g.text},children:"$489"}),x("span",{style:{alignSelf:"flex-start",fontSize:"3.65cqw",letterSpacing:"0.12em",fontWeight:700,padding:"4px 8px",borderRadius:2,background:g.text,color:g.onInk},children:"ADD TO CART"})]})]}),spectable:x(We,{title:"Specifications",children:B("div",{style:{flex:1,display:"flex",flexDirection:"column",justifyContent:"center"},children:[x(Ra,{k:"Diameter",v:'20"'}),x(Ra,{k:"Width",v:"9.0J"}),x(Ra,{k:"Offset",v:"+12"}),x(Ra,{k:"Load",v:"1250 kg"})]})}),fitmenttable:x(We,{title:"Will it fit?",children:B("div",{style:{flex:1,display:"flex",flexDirection:"column",justifyContent:"center"},children:[x(Ra,{k:"Hilux N80",v:"20\xD79 +12",ok:!0}),x(Ra,{k:"Ranger PX3",v:"20\xD79 +12",ok:!0}),x(Ra,{k:"LC79",v:"17\xD78 \u221210",ok:!0})]})}),processsteps:B("div",{style:{...J,background:g.paper,padding:10,display:"flex",flexDirection:"column",gap:7,justifyContent:"center"},children:[x(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,...qe(t?g.rust:g.inkSoft,t?g.warm:g.inkSoft2)}},"art"),a=B("div",{style:{flex:1.1,padding:8,display:"flex",flexDirection:"column",gap:2,justifyContent:"center"},children:[x("b",{style:{fontSize:"4.64cqw",color:g.text},children:e}),x("span",{style:{fontSize:"3.98cqw",color:g.muted,lineHeight:1.3},children:o})]},"tx");return x("div",{style:{flex:1,display:"flex",minHeight:0},children:t?[a,r]:[r,a]},e)})}),specstrip:x("div",{style:{...J,background:g.ink,color:g.onInk,display:"flex",alignItems:"center",justifyContent:"space-around",padding:"0 8px"},children:[["5 yr","Warranty"],["Free","Fitting"],["48 hr","Dispatch"]].map(([e,o])=>B("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:1},children:[x("b",{style:{fontSize:"5.69cqw",letterSpacing:"0.02em"},children:e}),x("span",{style:{fontSize:"3.65cqw",color:g.mark2,letterSpacing:"0.1em",textTransform:"uppercase"},children:o})]},o))})},WK={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($K,{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 UK({type:e}){let o=Zve[e]??"",t=Jve[o]??WK[o]??WK.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 zK}from"react/jsx-runtime";import Qve from"efficient-easel/screen/components/SidePanelHead";import{StylesIcon as eke}from"efficient-easel/rail";import{Tooltip as oke}from"efficient-shell/ui";import{HintsToggle as tke,hintsFoldClass as rke}from"efficient-easel/panel";import{useHints as ake}from"efficient-easel/screen/lib/hints";function GK({tokenRef:e,siteId:o,onClose:t,onNotify:r,tab:a,onTabChange:n,revealPageGroup:s,onPageGroupRevealed:i}){let l=xl(),{shown:d,setShown:f}=ake();return zK("div",{className:`sf-styles ${rke(d)}`.trim(),children:[sc(Qve,{icon:sc(eke,{}),title:c("Styles"),context:sc(oke,{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})})}),zK("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(tke,{shown:d,onChange:f,label:c("Show hints")})]})]})}import{jsx as Fo,jsxs as ei,Fragment as cke}from"react/jsx-runtime";import{Fragment as o8,useEffect as t8,useRef as u0}from"react";import{useTreeDrag as r8}from"efficient-easel/drag";import{GlobeIcon as dke,ImageIcon as fke,LocationIcon as pke,MapIcon as uke,TextLinesIcon as mke,TrashIcon as a8}from"efficient-easel/icons";import{Subtree as n8,TreeRow as ip,TreeRowAction as s8,TreeSeam as i8}from"efficient-easel/tree";import{useEaselStrings as hke}from"efficient-easel/strings";import{isSelectionMode as xke}from"efficient-easel/screen/lib/screen-parts";import{useSyncExternalStore as nke}from"react";var ske={level:"groups"},KK=ske,l0=new Set;function Rr(e){KK=e;for(let o of l0)o()}function ike(e){return l0.add(e),()=>{l0.delete(e)}}var jK=()=>KK;function VK(){return nke(ike,jK,jK)}var sp=e=>String(e?.group??""),c0=new WeakMap,lke=0;function HI(e){let o=c0.get(e);return o||(o=`loc${++lke}`,c0.set(e,o)),o}var YK=(e,o)=>o||e||"Ungrouped",qK={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 Qs(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),XK=(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=Qs(e);if(o<0||o>=r.length)return e;let[a]=r.splice(o,1),n=XK(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=Qs(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=XK(s===i&&t<a?a-1:a,0,i.cards.length);return i.cards.splice(f,0,d),d0(n)}function ZK(e,o){let t=Qs(e),r=t.find(n=>n.key===o),a={...qK,group:o,groupName:r?.name??""};return r?(r.cards.push(a),d0(t)):[...e,a]}function JK(e){let o=new Set(Qs(e).map(a=>a.key)),t=o.size+1,r=`Group ${t}`;for(;o.has(r);)r=`Group ${++t}`;return{cards:[...e,{...qK,group:r,groupName:""}],key:r}}function QK(e,o){return e.filter(t=>sp(t)!==o)}function e8(e,o,t){let r=WI(e,o,t);return r<0?e:e.filter((a,n)=>n!==r)}function Gho(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 jho(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 l8(e,o){let{readOnly:t,selected:r}=o,a=hke().tree,n=o.data?.content??[],s=xke(e),i=u0(null);t8(()=>{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=VK(),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=r8({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=r8({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(()=>{});t8(()=>{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=Qs(D),L=String(b.props.id),C=s&&r?.props.id===L,A=R=>Fo(i8,{...t?{}:h.seam({place:{...$I(y),index:R}})},`seam:${L}:groups:${R}`),E=(R,W)=>Fo(i8,{...t?{}:I.seam({place:{...m0(y,R),index:W}})},`seam:${L}:cities:${R}:${W}`);return ei(cke,{children:[Fo(ip,{icon:Fo(mke,{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 U=`${L}::grp::${R.key}`,Z=F(U),V=C&&u.level==="group"&&u.key===R.key,de=R.name||R.key?YK(R.key,R.name):c("Ungrouped"),Ce={...m0(y,R.key),index:R.cards.length},ee=I.row({item:{si:y,group:R.key,index:-1},place:Ce,into:Ce,canDrag:!1},{onClick:k(()=>v(y,{level:"group",key:R.key}))}),_e=h.row({item:{si:y,index:W},place:{...$I(y),index:W}},ee.rowProps);return ei(o8,{children:[W===0&&A(0),Fo(ip,{icon:Fo(dke,{size:13}),name:de,words:a,onSelect:()=>v(y,{level:"group",key:R.key}),selected:V,draggable:_e.draggable,dragging:_e.dragging,drop:_e.drop??ee.drop,fold:{open:!Z,label:c("group"),onToggle:()=>T(U)},actions:Fo(s8,{kind:"delete",label:nt("Delete {label} group ({n} city)","Delete {label} group ({n} cities)",R.cards.length,{label:de}),onClick:()=>{p(y,QK(D,R.key)),Rr({level:"groups"})},children:Fo(a8,{size:15})}),rowProps:_e.rowProps,count:R.cards.length,countLabel:nt("{n} city","{n} cities",R.cards.length)}),!Z&&ei(n8,{children:[R.cards.map((Oe,Ee)=>{let Fe=WI(D,R.key,Ee),No=C&&u.level==="city"&&u.index===Fe,qo=String(Oe?.name??"")||c("City"),Xo=`${L}::city::${HI(Oe)}`,Co=F(Xo),{rowProps:Do,...vo}=I.row({item:{si:y,group:R.key,index:Ee},place:{...m0(y,R.key),index:Ee}},{onClick:k(()=>v(y,{level:"city",index:Fe}))});return ei(o8,{children:[Ee===0&&E(R.key,0),Fo(ip,{icon:Fo(pke,{size:13}),name:qo,words:a,onSelect:()=>v(y,{level:"city",index:Fe}),selected:No,...vo,fold:{open:!Co,label:qo,onToggle:()=>T(Xo)},actions:Fo(s8,{kind:"delete",label:c("Delete {name}",{name:qo}),onClick:()=>{p(y,e8(D,R.key,Ee)),Rr({level:"group",key:R.key})},children:Fo(a8,{size:15})}),rowProps:Do}),!Co&&ei(n8,{children:[Fo(ip,{icon:Fo(fke,{size:13}),name:c("Image"),words:a,onSelect:()=>v(y,{level:"image",index:Fe}),selected:C&&u.level==="image"&&u.index===Fe,rowProps:{onClick:k(()=>v(y,{level:"image",index:Fe}))}}),Fo(ip,{icon:Fo(uke,{size:13}),name:c("Map"),words:a,onSelect:()=>v(y,{level:"map",index:Fe}),selected:C&&u.level==="map"&&u.index===Fe,rowProps:{onClick:k(()=>v(y,{level:"map",index:Fe}))}})]}),E(R.key,Ee+1)]},HI(Oe))}),ei("button",{type:"button",className:"sf-add-card",onClick:()=>{let Oe=ZK(D,R.key);p(y,Oe);let Ee=Qs(Oe).find(Fe=>Fe.key===R.key);Rr(Ee&&Ee.cards.length?{level:"city",index:WI(Oe,R.key,Ee.cards.length-1)}:{level:"group",key:R.key})},children:[Fo("span",{className:"sf-plus sf-plus--sm",children:"+"}),c("Add city")]})]}),A(W+1)]},U)}),ei("button",{type:"button",className:"sf-add-card",onClick:()=>{let{cards:R,key:W}=JK(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 bke,useRef as Ske}from"react";import{createNode as x0,newId as g0}from"efficient-easel/data";import{useEaselApi as wke}from"efficient-easel/easel";import{useScreenDocument as Cke}from"efficient-easel/screen/components/ScreenDocumentContext";import{useEaselSession as vke}from"efficient-easel/screen/lib/session-context";import{useEffect as p8,useRef as gke}from"react";import{useEasel as Ike}from"efficient-easel/easel";import{ROOT_ZONE as h0}from"efficient-easel/draw";var lp={};function c8(e){return lp={...e?.theme?{theme:e.theme}:{},...e?.site?{site:e.site}:{}},lp}function d8(e){lp===e&&(lp={})}function ic(){return lp}function f8(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 m8(e){let o=Ike(d=>d.appState.data.content),{theme:t,themeRow:r,themeFromDocument:a,siteGutter:n,siteGutterPhone:s,siteLengthUnits:i}=fe(),l=gke(new Set);p8(()=>{let d=u8({theme:t,themeRow:r,themeFromDocument:a,siteGutter:n,siteGutterPhone:s,siteLengthUnits:i});d&&yke(f4(o,void 0,d),e,l.current)},[o,e,t,r,a,n,s,i]),p8(()=>{let d=c8(u8({theme:t,themeRow:r,themeFromDocument:a,siteGutter:n,siteGutterPhone:s,siteLengthUnits:i}));return()=>d8(d)},[t,r,a,n,s,i])}function u8(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=f8({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 yke(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 kke,pinnedDuplicateIds as I0}from"efficient-easel/draw";function h8(e){return!e.docId||e.saveStatus==="saving"?!1:e.seededDocId!==e.docId}function x8(e,o){let t=e.some(i=>i?.type===ze),r=e[e.length-1],a=!t&&r?.type===Qe?r:null,n=e.filter(i=>i?.type===Qe&&i!==a).map(i=>String(i.props?.id??"")).filter(Boolean),s=o.hasChromeDoc&&!t&&!a;return{remove:n,seedHeader:!e.some(i=>i?.type===Ct),seedFooter:s,seedSiteHeader:s&&!e.some(i=>i?.type===Je)}}async function g8(e){let o=e.blocks?.seeds?.siteHeader;if(!o)return!1;let t;try{t=await o({make:e.make,id:e.id,siteId:e.siteId,token:e.token})}catch{return!1}if(!t||t.type!==Je||!e.stillOpen())return!1;let r=e.latest();return r.some(a=>a?.type===Je)?!1:(e.write(vu(r,t)),!0)}function I8(e,o){let{adapter:t,capabilities:r,currentSlug:a,docId:n,data:s,saveStatus:i,siteId:l,tokenRef:d}=Cke(),f=vke(),{hasSiteSettings:u,hasPinnedChrome:p}=r;m8(e);let m=!!r.editsPinnedInPlace&&a!==hr,h=a===hr,I=wke().getState,w=Ske(null);bke(()=>{if(!h8({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=kke(P,b);if(L.includes(Qe)){let C=P.length,A=e.insertSection(Qe,C);e.replaceComponent(lc,C,{type:Qe,props:{id:A,blocks:FI()}})}L.includes(Ct)&&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===Qe)&&!y(b,Qe)&&!y(D,ze)&&!y(b,ze)){let P=(C,A)=>x0(o,C,A),L={type:Qe,props:{blocks:FI()}};e.insertNode(lc,D.length,bf(L,P,g0(ze),rp))}return}if(m){let D=!!t?.pinnedChrome?.state().docId,P=x8(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,Qe)&&!y(b,ze)){let A=(R,W)=>x0(o,R,W),E={type:Qe,props:{blocks:FI()}};e.insertNode(lc,C.length,bf(E,A,g0(ze),rp))}if(P.seedHeader&&!y(b,Ct)){let A=C[0]?.type===Je?1:0;e.insertNode(lc,A,LI())}if(P.seedSiteHeader&&!y(b,Je)&&!y(b,Qe)&&!y(b,ze)){let A=n;g8({blocks:Mi(f),make:(E,R)=>x0(o,E,R),id:g0(Je),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!==Qe),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,Ct)&&!y(b,Ct)&&e.insertNode(lc,0,LI())},[n,i,s,I,e,u,p,h,m,t,f,l,d])}import{useEffect as E8,useMemo as Rke,useRef as _8}from"react";import{useEasel as Lke}from"efficient-easel/easel";import{useEaselHost as Fke}from"efficient-easel/screen/lib/host";import{FIELD_DESCRIPTION_MARKER as Tke}from"efficient-easel/screen/lib/host";import{isNode as S8}from"efficient-easel/data";function cp(e,o){let t=e.components[o]?.label;return typeof t=="string"&&t.trim()?t.trim():o}function Pke(e){return e.length>3&&e.endsWith("s")?e.slice(0,-1):e}function y0(e,o,t,r){e.forEach((a,n)=>{if(S8(a)){r.push({node:a,list:e,index:n,parent:o,slot:t});for(let s of Fr(a))y0(a.props[s],a,s,r)}})}function Eke(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 w8(e,o){return Eke(e).find(t=>String(t.node.props.id)===o)}function C8(e,o,t){if(!t)return null;let r=w8(o,t);if(!r)return null;let a=cp(e,r.node.type),n=r.parent?`${cp(e,r.parent.type)} \xB7 ${Pke(r.slot)} ${r.index+1}`:a;return{blockId:t,type:r.node.type,label:n,path:""}}var _ke=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 Oke(e){if(!e||typeof e!="object")return null;let o=e;if(typeof o.type!="string")return null;let t=o.type==="custom"?o[Tke]: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=_ke(n));for(let s of["arrayFields","objectFields"]){let i=t?.[s]??o[s];i&&typeof i=="object"&&(r[s]=v8(i))}return r}function v8(e){let o={};for(let[t,r]of Object.entries(e??{})){let a=Oke(r);a&&(o[t]=a)}return o}function k8(e){let o={};for(let[t,r]of Object.entries(e.components))r&&(o[t]={label:cp(e,t),fields:v8(r.fields),...T8(t)?{retired:!0}:{}});return o}function T8(e){return He(H0,e)}function y8(e,o){let t=e.components[o]?.defaultProps;return t&&typeof t=="object"?structuredClone(t):{}}function Ake(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=>S8(t)&&String(t.props.id)===o)}function b8(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 P8(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=w8(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=Ake(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}`),T8(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=>y8(e,m),r,a):{type:i.type,props:{...y8(e,i.type),...structuredClone(i.props),id:r(i.type)}};s.splice(b8(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(b8(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 O8(){let e=Fke(),{appState:o,selectedItem:t,dispatch:r,history:a,config:n}=Lke(p=>p),s=n,i=_8({appState:o,dispatch:r,history:a,blockConfig:s});i.current={appState:o,dispatch:r,history:a,blockConfig:s};let l=_8(new Map),d=t?.props?.id,f=Rke(()=>C8(s,o.data,d),[s,o.data,d]),u=f?JSON.stringify(f):"";E8(()=>{e.connected&&e.send("storefront-editor:selection",{selection:f})},[e,u]),E8(()=>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:k8(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?P8(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 L8,useState as F8}from"react";var zI=new Map;async function Bke(e,o){try{return(await Ge().site.get({siteId:o})).slug?.trim()||null}catch(t){return console.warn("[editor-site-slug] could not resolve the site slug",t),null}}function A8(e,o){let t=zI.get(o);return t||(t=Bke(e,o),zI.set(o,t),t.catch(()=>{zI.get(o)===t&&zI.delete(o)})),t}var Nke=/^(localhost|(?:[a-z0-9-]+\.)+localhost|127(?:\.\d{1,3}){3}|0\.0\.0\.0|\[::1\]|::1)$/i;function w0(e){return!!e&&Nke.test(e)}function R8(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 B8(e){let{pageSlug:o,siteId:t,token:r}=e,[a,n]=F8(null),[s,i]=F8(null),l=_O();L8(()=>{try{i(new URL(fu()).hostname)}catch{i(null)}},[l]),L8(()=>{if(!w0(s)||!t||!r){n(null);return}let f=!1;return A8(r,t).then(u=>{f||n(u)}),()=>{f=!0}},[s,t,r]);let d=R8({pageSlug:o,siteSlug:a,hostname:s});return l?`${l}${d}`:d}import{jsx as dp}from"react/jsx-runtime";import{useEffect as Dke,useRef as N8,useState as Mke}from"react";import{ExternalIcon as D8}from"efficient-easel/icons";import{EaselIconButton as Hke}from"efficient-easel/chrome";import{Tooltip as Wke,iconButtonClasses as $ke}from"efficient-shell/ui";import{useSettledPress as Uke}from"efficient-easel/easel";import{useScreenDocument as zke}from"efficient-easel/screen/components/ScreenDocumentContext";async function Gke({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 M8({liveHref:e,pageId:o,draftLink:t}){let{flushSave:r}=zke(),a=N8(r);a.current=r;let n=Uke(),[s,i]=Mke(!1),l=N8(null);if(Dke(()=>()=>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),Gke({pageId:o,liveHref:e,draftLink:t,ready:d}).finally(()=>i(!1)))};return dp(Hke,{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(D8,{})})}return dp(Wke,{content:c("Preview the live site (opens in a new tab)"),side:"bottom",children:dp("a",{className:$ke({className:"es-iconbtn"}),href:e,...Nd,"aria-label":c("Preview the live site in a new tab"),children:dp(D8,{})})})}import{createElement as jke,useCallback as Kke,useEffect as H8,useRef as W8,useState as Vke}from"react";import{ClockIcon as Yke}from"efficient-shell/icons/efficient";import{useScreenDocument as qke}from"efficient-easel/screen/components/ScreenDocumentContext";function $8(e){let{docId:o,capabilities:t,hasUnsavedEdits:r,onPublish:a,adapter:n}=qke(),s=sK(nK(o??null),r),i=rI(aI()),l=n.siteLiveState;H8(()=>{if(l)return tS(l),ma(0),()=>tS(null)},[l]);let d=dm(),[f,u]=Vke(!1),p=W8(e);p.current=e;let m=W8(!0);H8(()=>(m.current=!0,()=>{m.current=!1}),[]);let h=Kke(()=>{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:iK(d?.changes??[])});return n.siteVersions?{...w,menuItems:Xke()}:w}return VP({live:s,onPress:h,busy:f,pinnedUnpublished:i?.unpublished??!1})}}function Xke(){return[{key:"version-history",label:c("Version history"),icon:jke(Yke),onSelect:EG}]}import{jsx as ae,jsxs as Nt,Fragment as up}from"react/jsx-runtime";import{useCallback as Zke,useEffect as Jke,useId as G8,useRef as Qke,useState as sr}from"react";import{useSettledAction as eTe}from"efficient-easel/easel";import{Avatar as oTe,Banner as fp,Button as oi,ColoredBadge as C0,Dialog as j8,Drawer as tTe,DropdownMenu as rTe,FormField as K8,iconButtonClasses as aTe,Inline as v0,Input as nTe,ListRow as sTe,Select as iTe,SortableList as lTe,Stack as pp}from"efficient-shell/ui";import{EditIcon as cTe,EyeIcon as U8,MenuIcon as dTe,MoreIcon as fTe,PageIcon as V8,RevertIcon as z8,StylesIcon as pTe}from"efficient-shell/icons/efficient";import{useScreenDocument as Y8}from"efficient-easel/screen/components/ScreenDocumentContext";var uTe={page:V8,menu:dTe};function mTe(e,o){return e.pages.find(t=>t.id===o)??e.pages[0]??null}function hTe(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 xTe({version:e,page:o,waiting:t,busy:r,error:a,onCancel:n,onConfirm:s,onPage:i}){let l=G8();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 ae(j8,{open:!0,onClose:()=>{r||n()},size:"sm",title:p,footer:Nt(up,{children:[ae(oi,{variant:"secondary",onClick:n,disabled:r,children:c("Cancel")}),ae(oi,{onClick:s,loading:r,disabled:r,children:c("Restore as draft")})]}),children:Nt(pp,{gap:4,children:[o&&e.pages.length>1?ae(K8,{label:c("Page"),htmlFor:l,children:ae(iTe,{id:l,value:o.id,options:e.pages.map(I=>({value:I.id,label:I.name})),onChange:i,disabled:r})}):null,ae("p",{children:m}),ae("p",{children:c("Your live website does not change until you press Publish.")}),h>0?ae(fp,{tone:"warning",children:nt("{n} picture in this version was deleted from the media library. It stays empty.","{n} pictures in this version were deleted from the media library. They stay empty.",h)}):null,t?ae(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?ae(fp,{tone:"danger",children:a}):null]})})}function gTe({version:e,onCancel:o,onSave:t}){let r=G8(),[a,n]=sr(null),[s,i]=sr(""),[l,d]=sr(!1),[f,u]=sr(null);if(e!==a&&(n(e),i(e?.name??""),u(null)),!e)return null;let p=s.trim()===e.name,m=async()=>{if(!(l||p)){d(!0),u(null);try{await t(s.trim())}catch{u(c("The name was not saved. Try again."))}finally{d(!1)}}};return ae(j8,{open:!0,onClose:()=>{l||o()},size:"sm",title:c("Name this version"),footer:Nt(up,{children:[ae(oi,{variant:"secondary",onClick:o,disabled:l,children:c("Cancel")}),ae(oi,{onClick:()=>{m()},loading:l,disabled:l||p,children:c("Save")})]}),children:ae(K8,{label:c("Name"),htmlFor:r,hint:c("Named versions are always kept. Leave it empty to take the name away."),error:f??void 0,children:ae(nTe,{id:r,value:s,invalid:!!f,onChange:h=>i(h.target.value),onKeyDown:h=>{h.key==="Enter"&&m()}})})})}function ITe({version:e,expanded:o,onToggle:t,onPreview:r,onRestore:a,onRestorePage:n,onName:s}){let i=e.kind==="draft_before_restore",l=!e.live,d=e.changes.length,f=[...i?[]:[{key:"preview",label:c("Preview"),icon:ae(U8,{}),onSelect:r}],...l?[{key:"restore",label:i?c("Put these drafts back"):c("Restore whole website"),icon:ae(z8,{}),onSelect:a}]:[],...l&&!i&&e.pages.length?[{key:"restore-page",label:c("Restore one page only"),icon:ae(V8,{}),onSelect:n}]:[],...i?[]:[{type:"divider",key:"divider"},{key:"name",label:c("Name this version"),icon:ae(cTe,{}),onSelect:s}]];return ae(sTe,{title:Nt("span",{className:"sf-version-title",children:[ae("span",{children:BG(e)}),e.live?ae(C0,{tone:"success",size:"xs",children:c("Live")}):null,e.name?ae(C0,{tone:"neutral",size:"xs",children:c("Version {n}",{n:e.number})}):null,i?ae(C0,{tone:"warning",size:"xs",children:c("Not published")}):null]}),expanded:o,onToggle:t,actions:ae(rTe,{align:"end","aria-label":c("More"),items:f,triggerClassName:aTe({variant:"ghost",size:"sm"}),trigger:ae(fTe,{})}),below:Nt(pp,{gap:3,children:[Nt(v0,{gap:2,align:"center",wrap:!0,className:"sf-version-meta",children:[ae(oTe,{name:e.createdBy,size:"xs"}),ae("span",{children:e.createdBy}),ae("span",{"aria-hidden":"true",children:"\xB7"}),ae("span",{children:MG(e.createdAt)}),d?Nt(up,{children:[ae("span",{"aria-hidden":"true",children:"\xB7"}),ae("span",{children:nt("{n} change","{n} changes",d)})]}):null]}),o?Nt(pp,{gap:3,children:[d?ae(pp,{gap:2,children:e.changes.map(u=>{let p=uTe[u.kind]??pTe;return Nt(v0,{gap:2,align:"center",children:[ae(p,{size:16}),ae("span",{children:DG(u)})]},`${u.kind}:${u.id}`)})}):null,Nt(v0,{gap:2,children:[i?null:ae(oi,{variant:"secondary",size:"sm",leftIcon:ae(U8,{}),onClick:r,children:c("Preview")}),l?ae(oi,{variant:"secondary",size:"sm",leftIcon:ae(z8,{}),onClick:a,children:c("Restore")}):null]})]}):null]})})}function yTe({open:e,onClose:o,access:t,waiting:r}){let{flushSave:a,reloadFromServer:n,docId:s}=Y8(),[i,l]=sr(null),[d,f]=sr(!1),[u,p]=sr(null),[m,h]=sr(null),[I,w]=sr(!1),[S,v]=sr(null),[b,y]=sr(null),[k,F]=sr(!1),T=Qke(0),D=Zke(()=>{let A=++T.current;f(!1),t.list().then(E=>{A===T.current&&l(E)},()=>{A===T.current&&f(!0)})},[t]);Jke(()=>{e&&D()},[e,D]);let P=A=>{F(!1),hTe(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=eTe({onPress:()=>{L()},busy:I});return Nt(up,{children:[ae(tTe,{open:e,onClose:o,side:"right",size:"md",title:c("Version history"),description:Nt(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:ae("span",{className:"sf-version-foot",children:c("The newest 30 are kept. Named versions are always kept.")}),children:Nt(pp,{gap:3,children:[k?ae(fp,{tone:"danger",onDismiss:()=>F(!1),children:c("The preview did not open. Try again.")}):null,d?ae(fp,{tone:"danger",action:ae(oi,{variant:"secondary",size:"sm",onClick:D,children:c("Try again")}),children:c("Version history did not load.")}):i===null?ae("p",{className:"sf-version-foot",children:c("Loading versions")}):i.length===0?ae("p",{className:"sf-version-foot",children:c("No versions yet. Every Publish from now on keeps one.")}):ae(lTe,{"aria-label":c("Versions"),spacing:"comfortable",children:i.map(A=>ae(ITe,{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:mTe(A,s)})},onName:()=>y(A)},A.id))})]})}),ae(xTe,{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})}),ae(gTe,{version:b,onCancel:()=>y(null),onSave:async A=>{await t.name(b.id,A),y(null),D()}})]})}function q8(){let{adapter:e,hasUnsavedEdits:o}=Y8(),t=e.siteVersions,r=OG(),a=dm();return t?ae(yTe,{open:r,onClose:_G,access:t,waiting:o||a?.state==="changed"}):null}import{useEaselSession as FV}from"efficient-easel/screen/lib/session-context";import{buildPaletteSections as Mgo,categoryLabel as Hgo,paletteWithoutPinned as Wgo,pinnedSection as $go}from"efficient-easel/screen/lib/document/palette-sections";var bTe={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 X8(e){return $(bTe,e)?.label}var Z8=U0;function STe(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 wTe={Hero:{[nf]:{newChild:STe,childLabel:En.Ticker}}},J8=Object.fromEntries(Object.entries(r4).map(([e,o])=>[e,Object.fromEntries(Object.entries(o).map(([t,r])=>[t,{...r,...$(wTe,e)?.[t]}]))]));function Q8(e,o=0,t,r){let a=vTe(kTe(e,o,r),t),n=a?fT():null;return a&&n?CTe(a,n):a}function CTe(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 vTe(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 kTe(e,o,t){let r=t?$(J8,e)?.[t]:void 0;if(r)return{source:"section",slot:r.slot,choices:null,spec:r};let a=$(qt,e);if(a)return{source:"section",slot:a.slot,choices:null,spec:a};let n=wp(e,o);if(n)return{source:"container",slot:n.slot,choices:n.choices,spec:null};let s=yK(e);return s?{source:"footer",slot:IK,choices:s,spec:null}:null}function eV(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 TTe}from"react";var k0=null,T0=new Set;function oV(e){if(k0!==e){k0=e;for(let o of T0)o()}}function PTe(e){return T0.add(e),()=>{T0.delete(e)}}function dIo(){return TTe(PTe,()=>k0,()=>null)}function tV(e){return Bc(e)?.ownerId??null}function rV(e,o){let t=e.props;if(e.type==="FooterMenu"){let r=t.menu;return t.heading||r?.name||c("Menu")}if(e.type==="FooterText"){let r=typeof t.text=="string"?t.text.trim():"";return r?r.length>28?`${r.slice(0,28)}\u2026`:r:c("Text")}return e.type==="FooterEmailSignup"?t.heading||c("Email signup"):o(e.type)}var aV="sf-editor-left-view";function nV(){if(typeof window>"u")return"pages";try{let e=window.localStorage.getItem(aV);return e==="sections"||e==="styles"?e:"pages"}catch{return"pages"}}function sV(e){if(!(typeof window>"u"))try{window.localStorage.setItem(aV,e)}catch{}}function iV(e,o){return e==="styles"&&!o?"sections":e}function lV(e,o){return e?"sections":o}import{copyNode as ETe}from"efficient-easel/data";function cV(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 dV={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?ETe(e,o):e},removed:()=>Pu()?.reload()};import{sharedSectionsOf as oPe}from"efficient-easel/screen/lib/shared-sections";import{scrollPreviewToSection as tPe,scrollPreviewToTop as PV}from"efficient-easel/screen/lib/document/preview-dom";var _Te=xu.mediaFields,OTe=/video|poster|focal|phone/i;function ATe(e){return($(_Te,e)??[]).find(o=>!o.includes("[]")&&!OTe.test(o))??null}function RTe(e){let o=ATe(e.type);return e.type!==Y?o&&zp(e.type,e.props,o)?{fromData:!0}:o:ju(e.props)?{fromData:!0}:o}var fV={adds:{kind:"block",type:"ImageBlock"},kinds:["image"],pictureOf:RTe,create:(e,o)=>({type:"ImageBlock",props:{...o.nodeDefaults("ImageBlock"),id:o.newNodeId("ImageBlock"),src:e.url}})};var pV={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 LTe}from"react";import{Button as FTe,Tooltip as BTe,toast as uV}from"efficient-shell/ui";import{TemplateIcon as NTe}from"efficient-easel/icons";import{useSettledAction as DTe}from"efficient-easel/easel";import{useScreenDocument as MTe}from"efficient-easel/screen/components/ScreenDocumentContext";function hV({enabled:e,reason:o,onSaved:t}){let{flushSave:r}=MTe(),[a,n]=LTe(!1),s=async()=>{if(!a){n(!0);try{await r()?t():uV.error(c(mV))}catch{uV.error(c(mV))}finally{n(!1)}}},i=DTe({onPress:()=>{s()},busy:a});return GI(BTe,{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(FTe,{variant:"secondary",disabled:!e||i.busy,loading:i.busy,onClick:i.onPress,rightIcon:GI(NTe,{size:15}),children:c("Save as Template")})})})}var mV="Your last changes did not save, so the template was not made. Try again.";var HTe="Save your page changes first";function xV(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:HTe}:{visible:!0,enabled:!0}:{visible:!1,hiddenReason:"no-site"}:{visible:!1,hiddenReason:"not-operator"}:{visible:!1,hiddenReason:"no-console"}}var gV="storefront-editor:save-as-template";import{phoneKey as WTe,tabletKey as $Te}from"efficient-easel/draw";var UTe=[xa.top,$Te(xa.top),WTe(xa.top)],jI="ContactLocations",IV="ContactRouting",yV="CityPictures",bV="CityMaps",zTe=[{key:yV,label:"City pictures",piece:0,desc:"A wall of city photos, grouped by region. Each photo links to its city's card."},{key:bV,label:"City maps",piece:1,desc:"A card per city, grouped by region: address, phone, hours and a map."}];function SV(e=Os,o=kk){let t=M0.find(r=>r.sections.some(a=>a.type===IV))?.key;return!e.includes(jI)||!t?[]:zTe.filter(r=>!(o&&r.key===yV)).map(({key:r,label:a,desc:n,piece:s})=>({key:r,label:a,cat:t,after:IV,desc:n,alias:"locations offices stores branches",insert:i=>{let l=cn(jI);if(!l)return null;let d=ic(),f=Of(jI,l,s)(i.nodeDefaults,i.newNodeId,d);if(!f||!(o&&r===bV))return f;let u=Of(jI,l,0)(i.nodeDefaults,m=>`${m}-above`,d),p=Object.fromEntries(UTe.filter(m=>u?.props[m]!==void 0).map(m=>[m,u.props[m]]));return{...f,props:{...f.props,...p}}}}))}function wV(e=Os,o){return[...SV(e,o)]}function vV(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=$(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",...CV(e,t)}}]}}}if($(qt,e)?.fixed===!0)return{type:e,props:{...o(e),id:t(e),layout:"boxes"}};let s=CV(e,t);return Object.keys(s).length?{type:e,props:{...o(e),id:t(e),...s}}:null}function CV(e,o){return e==="Cards"?{template:zE(t=>o(t))}:e===GE?{template:jE(t=>o(t))}:{}}import{useEffect as GTe,useState as jTe}from"react";import{useEaselSession as KTe}from"efficient-easel/screen/lib/session-context";function kV(){let e=KTe().chrome?.products?.list,[o,t]=jTe(null);return GTe(()=>{if(!e)return;let r=!1;return e().then(a=>{r||t(a)}),()=>{r=!0}},[e]),o}function BV({mode:e,open:o}){let{setSelectedHeroId:t,setSelectHandler:r}=$$(),a=LV().tree,n=e,s=n.kind==="ticker"?n.heroId:null,i=cc(l=>{l&&(o({kind:"ticker",heroId:l}),tPe(l))},[o]);return oa(()=>{t(s)},[s,t]),oa(()=>{r(i)},[r,i]),{partRows:(l,{rowClick:d})=>{let f=String(l.props.id);return l.type==="Hero"&&Rv(l.props)&&Bo(AV,{icon:Bo(Ys,{type:"ticker",size:13}),name:c($s),onSelect:()=>i(f),selected:s===f,rowProps:{onClick:d(()=>i(f))},words:a})}}}function NV({mode:e,select:o}){let{setSelectedHeroPart:t,setSelectHandler:r}=hI(),a=LV().tree,{appState:n,config:s}=RV(p=>p),i=VTe({data:n.data,config:s});i.current={data:n.data,config:s};let l=e,d=Ts.find(p=>ef[p]===l.kind),f=d&&"nodeId"in l?Ps(String(l.nodeId),d):null,u=cc(p=>{let m=xx(p);if(!m)return;let{data:h,config:I}=i.current,w=QTe(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 oa(()=>{t(f)},[f,t]),oa(()=>{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=Ps(h,b.part);return Bo(AV,{icon:Bo(Ys,{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(OV,{children:[w(S),v.length>0&&Bo(JTe,{children:v.map(w)})]})}}}function DV(e,o){return{partRows:(t,r)=>mp(OV,{children:[e.partRows?.(t,r),o.partRows?.(t,r)]})}}function rPe(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=Ge(FV()).preview?.draftLink,p=$8(e.data),m=xV({hasTrustedConsole:!!d,canCreatePlatformTemplate:i.canCreatePlatformTemplate,capabilities:t,siteId:a,hasUnsavedEdits:s}),h=cc(()=>{!a||!r||l(gV,{siteId:a,slug:r})},[l,a,r]),I=B8({pageSlug:r,siteId:a,token:d}),w=o.previewHref?.(r)??I;return{barLead:()=>m.visible&&Bo(hV,{enabled:m.enabled,reason:m.enabled?"":m.disabledReason,onSaved:h}),barView:()=>f&&r&&Bo(M8,{liveHref:w,pageId:n??null,draftLink:u}),mainAction:p}}function aPe(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]=TV(ul[0].id),[p,m]=TV(!1),{surface:h,setSurface:I}=fj(),w=()=>{if(i){d("styles"),o.reveal(),PV();return}e.show(a0),e.reveal(),PV()},S={id:"pages",label:c("Pages"),icon:Bo(qTe,{}),panel:({onHide:b})=>Bo(oj,{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(ZTe,{}),active:e.kind==="website",onSelect:w}),i&&v.push({id:"styles",label:c("Styles"),icon:Bo(XTe,{}),panel:({onHide:b,notify:y})=>Bo(GK,{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=>iV(b,i),openSettings:w,openStyles:()=>{u(GD),d("styles")},openPageStyles:i?()=>{u(hl),m(!0),d("styles"),o.reveal()}:l?()=>{e.show(RK),e.reveal()}:void 0}}function nPe(){let{navigate:e,siteId:o,reloadFromServer:t,docId:r}=KI(),a=RV(s=>s.config),n=FV();oa(()=>(tb({openPage:s=>e({kind:"page",slug:s.slug,siteId:o??void 0}),reload:()=>{t()},config:a}),()=>tb(null)),[e,o,t,a]),oa(()=>{let s=fr();if(!s||!r)return;let i=!1;return oPe(n).list().then(l=>{i||s.learn(l)}).catch(()=>{}),()=>{i=!0}},[r,n])}function MV(){let e=yu();return cc(o=>{oN(o,e)},[e])}function sPe(e,o,t,r){let{kind:a,open:n}=e,{selected:s,zoneOf:i}=o;oa(()=>{oV(s?.type==="BookingBox"&&s.props.region==="confirm"?tV(i(String(s.props.id))):null)},[s?.props.id]);let l=l8(e,o),{capabilities:{hasSiteSettings:d}}=KI();nPe();let{chat:f,setChat:u,setSelected:p,setSelectHandler:m}=mI(),h=cc(()=>n(LK),[n]),I=a==="chat";oa(()=>{p(I)},[I,p]),oa(()=>{m(h)},[m,h]);let{setOpenHandler:w}=Kf(),S=cc(()=>n(FK),[n]);oa(()=>{w(S)},[w,S]);let v=DV(BV(e),NV(e)),b=rPe(o),y=aPe(e,r),k=t.device,F=MV();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(ePe.Provider,{value:k,children:[T,Bo(q8,{})]})}),addPanelRow:T=>d?mp("div",{className:"sf-addside-sitewide",children:[Bo("span",{className:"sf-addside-sitewide-glyph","aria-hidden":"true",children:Bo(Ys,{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(YTe,{checked:f.enabled,onChange:D=>u({enabled:D}),ariaLabel:c("Show the chat bubble on the whole site")})]}):void 0}}var EV=null,P0=new WeakMap;function iPe(e){let o=MO();if(!e||!o)return e;EV!==o&&(EV=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 lPe={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:vV,canAddTo:(e,o,t,r)=>iPe(Q8(e,o,r,t)),blockIsOffered:L6,slotsOf:eV,resolveOnInsert:!0},cPe=new Proxy(pV,{get:(e,o)=>{let t=Reflect.get(e,o);return typeof t=="string"?c(t):t}}),dPe={labelAtLevel:(e,o,t)=>c(qI(e,o,t)),descriptions:cPe,categoryLabel:e=>{let o=X8(e);return o===void 0?void 0:c(o)},firstSection:Z8,blockRowName:rV,rowName:Vg,plainText:na,Icon:Ys,Thumbnail:UK,useProducts:kV,presets:wV()},fPe={desktop:2e3,tablet:800,mobile:390},_V="desktop",pPe={options:ij,initial:_V,fluid:_V,widths:fPe,hidesPerView:!0},uPe={read:nV,write:e=>sV(e),forSelection:(e,o)=>lV(e,o)},mPe={first:Ct,last:Qe,firstGroup:Je,lastGroup:ze,isSectionGroup:_i,sectionGroupZone:s1,panelOf:e=>e===Ct?AK:null,get sharedReach(){return js()?xPe:void 0},get shared(){return fr()?dV:void 0},get groupTab(){return js()?bK:void 0},get groupBadge(){return js()?QP({type:ze})??void 0:void 0},get changeNotice(){return js()?SK():void 0},get band(){return js()?hPe:void 0},get groupAccepts(){return js()?c1:void 0}},hPe={foldable:!0},xPe=e=>QP(e)??cV(e);function gPe(e){return{...DV(BV(e),NV(e)),onCopyItem:MV(),openSettings:()=>e.show(a0)}}function IPe(e,o){I8(e,o),O8()}var Ibo={useOwnerName:xl,useDocumentLabel:qD,useBridges:sPe,useStandaloneBridges:gPe,useDocumentPass:IPe,blockRules:lPe,blockLook:dPe,devices:pPe,leftView:uPe,pinned:mPe,Canvas:UG,canvasDrag:{media:fV},Inspector:NK};export{iT as a,Ge as b,Mi as c,kx as d,CGe as e,Jr as f,Qr as g,Po as h,FGe as i,Fv as j,T8e as k,Sf as l,wf as m,$5 as n,U5 as o,Qx as p,P8e as q,Xde as r,z5 as s,E8e as t,b6 as u,XJe as v,SPe as w,ce as x,c as y,nt as z,S6 as A,QJe as B,Ui as C,Wo as D,sL as E,_t as F,zRe as G,cL as H,dL as I,gm as J,Im as K,hL as L,hS as M,xS as N,YRe as O,qRe as P,pF as Q,rs as R,Bm as S,GLe as T,Be as U,uF as V,Vi as W,yb as X,Sb as Y,Q1 as Z,wb as _,aY as $,IEe as aa,Nu as ba,sA as ca,nY as da,sY as ea,iY as fa,SEe as ga,Dv as ha,$Ge as ia,Ox as ja,Hn as ka,Rc as la,qO as ma,XO as na,u7 as oa,jPe as pa,jy as qa,MM as ra,HM as sa,bLe as ta,$r as ua,T1 as va,$n as wa,VL as xa,YL as ya,ed as za,FZ as Aa,bL as Ba,jr as Ca,vL as Da,xa as Ea,yS as Fa,bS as Ga,T4 as Ha,_b as Ia,O_e as Ja,A_e as Ka,Va as La,L_e as Ma,F_e as Na,Ab as Oa,BA as Pa,jc as Qa,B_e as Ra,FA as Sa,NA as Ta,N_e as Ua,Gc as Va,Rb as Wa,D_e as Xa,M_e as Ya,H_e as Za,W_e as _a,pM as $a,Is as ab,Y5e as bb,q5e as cb,X5e as db,uM as eb,Z5e as fb,Ft as gb,Il as hb,id as ib,Vr as jb,Zu as kb,$A as lb,pa as mb,UA as nb,Ro as ob,Fs as pb,Q as qb,Ol as rb,re as sb,oe as tb,se as ub,ie as vb,ge as wb,yje as xb,Ie as yb,Rl as zb,Ll as Ab,pf as Bb,uf as Cb,O4 as Db,Cje as Eb,Nce as Fb,A4 as Gb,Tje as Hb,Pje as Ib,R4 as Jb,QC as Kb,AM as Lb,xse as Mb,Md as Nb,RM as Ob,Z3e as Pb,Hv as Qb,Oje as Rb,Aje as Sb,Rje as Tb,Lje as Ub,Fje as Vb,Bje as Wb,y3e as Xb,jh as Yb,Nd as Zb,b3e as _b,S3e as $b,wM as ac,YC as bc,Xne as cc,Zne as dc,w3e as ec,Jne as fc,C3e as gc,w2 as hc,m6e as ic,A2 as jc,h6e as kc,x6e as lc,g6e as mc,Mx as nc,zv as oc,N4 as pc,Hx as qc,Kje as rc,Vce as sc,Yce as tc,qce as uc,Vje as vc,wt as wc,Ms as xc,Ml as yc,OKe as zc,AKe as Ac,RKe as Bc,H2 as Cc,dx as Dc,Eie as Ec,k6e as Fc,w5 as Gc,C5 as Hc,v5 as Ic,XKe as Jc,FX as Kc,hr as Lc,tRe as Mc,rRe as Nc,aRe as Oc,nRe as Pc,um as Qc,sRe as Rc,Om as Sc,nd as Tc,JL as Uc,QL as Vc,eF as Wc,ELe as Xc,Je as Yc,ze as Zc,Jy as _c,_i as $c,i1 as ad,vu as bd,T5 as cd,R8e as dd,L8e as ed,og as fd,j5 as gd,vw as hd,Id as id,qr as jd,po 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,wa as ud,BN as vd,ms as wd,mC as xd,gC as yd,$d as zd,BM as Ad,NM as Bd,tv as Cd,ws as Dd,XM as Ed,LWe as Fd,FWe as Gd,BWe as Hd,jd as Id,Vt as Jd,UWe as Kd,T3e as Ld,H3e as Md,XC as Nd,W3e as Od,bs as Pd,Kh as Qd,Io as Rd,QWe as Sd,t2 as Td,a2 as Ud,n2 as Vd,uo as Wd,Ye as Xd,ag as Yd,o3 as Zd,Q8e as _d,ng as $d,t3 as ae,aVe as be,bVe as ce,u3 as de,yk as ee,m3 as fe,CVe as ge,vVe as he,kVe as ie,bk as je,TVe as ke,PVe as le,h3 as me,Efe as ne,dg as oe,d7e as pe,ux as qe,Wie as re,Sv as se,Hfe as te,v7e as ue,G3 as ve,j3 as we,k7e as xe,T7e as ye,Rw as ze,$De as Ae,Lw as Be,HB as Ce,M7e as De,rW as Ee,aW as Fe,aYe as Ge,hYe as He,xYe as Ie,gYe as Je,Wk as Ke,HLe as Le,US as Me,zS as Ne,GS as Oe,pW as Pe,ope as Qe,tpe as Re,pg as Se,bYe as Te,SYe as Ue,VYe as Ve,FW as We,YYe as Xe,BW as Ye,XYe as Ze,zW as _e,GW as $e,Bpe as af,YW as bf,p9e as cf,xg as df,S9e as ef,Ef as ff,v9e as gf,e$ as hf,T9e as if,o$ as jf,t$ as kf,_9e as lf,Dd as mf,hse as nf,gg as of,s$ as pf,L9e as qf,F9e as rf,B9e as sf,N9e as tf,Oa as uf,$9e as vf,Ig as wf,j9e as xf,bg as yf,z3e as zf,G3e as Af,Ss as Bf,j3e as Cf,iR as Df,ED as Ef,d4e as Ff,f4e as Gf,bae as Hf,p4e as If,u4e as Jf,OD as Kf,zC as Lf,$h as Mf,tM as Nf,Qd as Of,$t as Pf,N0e as Qf,fb as Rf,Hc as Sf,H0e as Tf,$7 as Uf,H1 as Vf,W0e as Wf,Un as Xf,K7 as Yf,K0e as Zf,V0e as _f,Wc as $f,Y0e as ag,q0e as bg,gb as cg,OUe as dg,AUe as eg,RUe as fg,LUe as gg,sle as hg,FUe as ig,xx as jg,of as kg,MUe as lg,Pv as mg,SH as ng,wH as og,vv as pg,ule as qg,HUe as rg,gx as sg,tf as tg,yx as ug,WUe as vg,$Ue as wg,Ix as xg,UUe as yg,zUe as zg,Vy as Ag,st as Bg,ZO as Cg,m7 as Dg,h7 as Eg,qPe as Fg,x7 as Gg,g7 as Hg,XPe as Ig,ZPe as Jg,JPe as Kg,QPe 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,Ize as bh,yze as ch,bze as dh,Sze as eh,mr as fh,Fle as gh,GH as hh,Nle as ih,KH as jh,VH as kh,rx as lh,jle as mh,Vze as nh,QH as oh,eGe as ph,pGe as qh,uGe as rh,P$e as sh,Kd as th,R$e as uh,L$e as vh,I2 as wh,tJ as xh,Kr as yh,wLe as zh,Af as Ah,Aa as Bh,J6 as Ch,Fg as Dh,yeo as Eh,beo as Fh,Oeo as Gh,Aeo as Hh,the as Ih,vT as Jh,iU as Kh,Reo as Lh,cU as Mh,dU as Nh,hU as Oh,che as Ph,phe as Qh,ooo as Rh,moo as Sh,hoo as Th,Nf as Uh,xoo as Vh,goo as Wh,PT as Xh,Ioo as Yh,Yd as Zh,hv as _h,lx as $h,Koo as ai,kl as bi,G6e as ci,j6e as di,Q2 as ei,Vhe as fi,cz as gi,Mf as hi,dro as ii,pro as ji,DT as ki,Cz as li,Cg as mi,KXe as ni,qXe as oi,$$ as pi,Xk as qi,U$ as ri,z$ as si,JXe as ti,G$ as ui,kg as vi,sZe as wi,K$ as xi,q$ as yi,V$ as zi,Mm as Ai,Ia as Bi,$o as Ci,Ot as Di,cd as Ei,qi as Fi,eFe as Gi,oFe as Hi,rFe as Ii,aFe as Ji,nFe as Ki,sFe as Li,iFe as Mi,cFe as Ni,Xi as Oi,ns as Pi,SF as Qi,qS as Ri,DJ as Si,wF as Ti,ZS as Ui,q1 as Vi,X1 as Wi,mEe as Xi,Mu as Yi,Hu as Zi,zc as _i,xA as $i,AEe as aj,REe as bj,wA as cj,kb as dj,VY as ej,K_e as fj,Q_e as gj,eOe as hj,y9 as ij,xt as jj,Vc as kj,Gb as lj,jb as mj,zOe as nj,rR as oj,GOe as pj,jOe as qj,KOe as rj,cR as sj,fR as tj,ma as uj,yR as vj,nS as wj,_R as xj,gAe 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,wX as Hj,CX as Ij,Zc as Jj,lS as Kj,UR as Lj,HAe as Mj,kX as Nj,WAe as Oj,$Ae as Pj,UAe as Qj,GR as Rj,KAe as Sj,EX as Tj,VAe as Uj,YAe as Vj,OX as Wj,cS as Xj,RX as Yj,JAe as Zj,LX as _j,QAe as $j,pS as ak,mRe as bk,qR as ck,MX as dk,xRe as ek,Jc as fk,JX as gk,NRe as hk,UZ as ik,fLe as jk,GZ as kk,pLe as lk,uLe as mk,mLe as nk,Ki as ok,Lm as pk,FLe as qk,BLe as rk,NLe as sk,MJ as tk,HJ as uk,pFe as vk,zJ as wk,GJ as xk,uFe as yk,mFe as zk,hFe as Ak,xFe as Bk,gFe as Ck,vFe as Dk,kFe as Ek,TFe as Fk,PFe as Gk,EFe as Hk,_Fe as Ik,OFe as Jk,AFe as Kk,RFe as Lk,LFe as Mk,FFe as Nk,CF as Ok,BFe as Pk,NFe as Qk,tn as Rk,QJ as Sk,ls as Tk,SNe as Uk,wNe as Vk,CNe as Wk,vNe as Xk,kNe as Yk,TNe as Zk,PNe as _k,ANe as $k,RNe as al,nee as bl,LNe as cl,FNe as dl,BNe as el,NNe as fl,DNe as gl,MNe as hl,HNe as il,WNe as jl,cee as kl,xw as ll,$Ne as ml,Qi as nl,It as ol,yr as pl,aB as ql,nB as rl,ol as sl,UNe as tl,Bee as ul,zNe as vl,GNe as wl,jNe as xl,KNe as yl,VNe as zl,YNe as Al,qNe as Bl,hB as Cl,XNe as Dl,aoe as El,ZNe as Fl,JNe as Gl,IB as Hl,QNe as Il,eDe as Jl,oDe as Kl,tDe as Ll,rDe as Ml,nDe as Nl,ww as Ol,sDe as Pl,bB as Ql,iDe as Rl,lDe as Sl,nl as Tl,wB as Ul,cDe as Vl,dDe as Wl,fDe as Xl,pDe as Yl,cno as Zl,dno as _l,fno as $l,Vg as am,qz as bm,YT as cm,Rno as dm,Lno as em,DIe as fm,MIe as gm,fso as hm,pso as im,uso as jm,mso as km,Qg as lm,eI as mm,Mso as nm,xG as om,yG as pm,bG as qm,SG as rm,_lo as sm,pI as tm,tj as um,rj as vm,nj as wm,uI as xm,ico as ym,lco as zm,mI as Am,Zbe as Bm,Ico as Cm,Kf as Dm,wco as Em,fj as Fm,Ei as Gm,f7 as Hm,UPe as Im,zPe as Jm,Huo as Km,Wuo as Lm,$uo as Mm,s4 as Nm,kco as Om,hI as Pm,RPe as Qm,Aoe as Rm,Roe as Sm,Loe as Tm,UB as Um,JDe as Vm,Xw as Wm,QN as Xm,kHe as Ym,PD as Zm,v4e as _m,k4e as $m,Dh as an,bne as bn,Sne as cn,v5e as dn,kPe as en,$ne as fn,bM as gn,p3e as hn,u3e as in,Yne as jn,m3e as kn,h3e as ln,Gh as mn,x3e as nn,Cl as on,l2 as pn,c2 as qn,b2 as rn,c6e as sn,M2 as tn,S6e as un,W2 as vn,wv as wn,zie as xn,Vie as yn,tUe as zn,jqe as An,tXe as Bn,sXe as Cn,P$ as Dn,dXe as En,fXe as Fn,CXe as Gn,vXe as Hn,DXe as In,$Xe as Jn,_f as Kn,Que as Ln,MZe as Mn,KZe as Nn,cJe as On,dJe as Pn,AJe as Qn,p6 as Rn,_Pe as Sn,uj as Tn,lfo as Un,bj as Vn,Qe as Wn,FI as Xn,Rr as Yn,VK as Zn,sp as _n,YK as $n,qK as ao,Gho as bo,jho as co,A8 as do,w0 as eo,R8 as fo,Q8 as go,dIo as ho,Ibo as io};