efficient-storefront-blocks 0.118.3 → 0.118.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +22 -0
- package/dist/chunks/{EditorPreviewCheckout-2TIG6GCW.js → EditorPreviewCheckout-573RVCXC.js} +1 -1
- package/dist/chunks/{SiteEditorProvider-QXV6Z27K.js → SiteEditorProvider-IUUOJHN2.js} +1 -1
- package/dist/chunks/{chunk-2ULOP225.js → chunk-CJ7IEW3F.js} +1 -1
- package/dist/chunks/{chunk-H5F6BWNC.js → chunk-V7O6FKCB.js} +1 -1
- package/dist/chunks/chunk-YGMNMVG2.js +342 -0
- package/dist/chunks/{chunk-53R44PTG.js → chunk-YY4RMNWM.js} +1 -1
- package/dist/chunks/{fitment-data-GGY5ZYBZ.js → fitment-data-HYODY7DX.js} +1 -1
- package/dist/contract.js +1 -1
- package/dist/editor/lib/document/blocks/commerce/AlloyWheelsListing/fields.js +1 -1
- package/dist/editor/lib/document/blocks/commerce/FitmentFinder/fields.js +1 -1
- package/dist/editor/lib/document/blocks/commerce/FitmentPicker/fields.js +1 -1
- package/dist/editor/lib/document/blocks/commerce/TyreFitment/fields.js +1 -1
- package/dist/editor/lib/document/blocks/commerce/fitment-cell-look-field.d.ts +3 -0
- package/dist/editor/lib/document/blocks/commerce/fitment-cell-look-field.js +1 -0
- package/dist/editor/lib/storefront-editor-words.d.ts +2 -0
- package/dist/editor/lib/storefront-editor-words.js +1 -1
- package/dist/index.js +28 -28
- package/dist/render/built-with.json +1 -1
- package/dist/render/components/TyreVehicleFitment.d.ts +2 -1
- package/dist/render/components/TyreVehicleFitment.js +1 -1
- package/dist/render/components/catalog/CatalogVehiclePicker.js +1 -1
- package/dist/render/components/fitment/FitmentFinder.d.ts +2 -1
- package/dist/render/components/fitment/FitmentFinder.js +1 -1
- package/dist/render/components/fitment/FitmentPickerGrid.d.ts +2 -1
- package/dist/render/components/fitment/FitmentPickerGrid.js +1 -1
- package/dist/render/components/fitment/FitmentPickerPart.d.ts +2 -1
- package/dist/render/components/fitment/FitmentPickerPart.js +1 -1
- package/dist/render/components/fitment/PickerField.d.ts +2 -1
- package/dist/render/components/fitment/PickerField.js +1 -1
- package/dist/render/components/pdp-dynamic/DynamicTyreFitment.d.ts +1 -0
- package/dist/render/components/pdp-dynamic/DynamicTyreFitment.js +1 -1
- package/dist/render/components/product-hero/VehicleQuestion.js +1 -1
- package/dist/render/components/wheels-plp/AlloyWheelsListing.d.ts +2 -1
- package/dist/render/components/wheels-plp/AlloyWheelsListing.js +1 -1
- package/dist/render/components/wheels-plp/PlpVehicleBar.d.ts +2 -1
- package/dist/render/components/wheels-plp/PlpVehicleBar.js +1 -1
- package/dist/render/components/wheels-plp/PlpVehicleGate.d.ts +2 -1
- package/dist/render/components/wheels-plp/PlpVehicleGate.js +1 -1
- package/dist/render/lib/document/blocks/commerce/AlloyWheelsListing/render.js +1 -1
- package/dist/render/lib/document/blocks/commerce/FitmentFinder/render.js +1 -1
- package/dist/render/lib/document/blocks/commerce/FitmentPicker/render.js +1 -1
- package/dist/render/lib/document/blocks/commerce/TyreFitment/render.js +1 -1
- package/dist/render/lib/sections/fitment-cell-look.d.ts +11 -0
- package/dist/render/lib/sections/fitment-cell-look.js +1 -0
- package/dist/words.d.ts +2 -0
- package/dist/words.js +1 -1
- package/package.json +1 -1
- package/dist/chunks/chunk-6IGIBTC3.js +0 -342
- /package/dist/chunks/{chunk-CL5JFHNP.js → chunk-5VQNKBJK.js} +0 -0
- /package/dist/chunks/{chunk-6IGIBTC3.js.LEGAL.txt → chunk-YGMNMVG2.js.LEGAL.txt} +0 -0
|
@@ -0,0 +1,342 @@
|
|
|
1
|
+
import{$ as wp,$a as mE,$c as z,$e as Ey,$h as gO,A as ni,Ab as PE,Ac as NE,Ad as bc,Ae as vy,Af as k_,Ag as Dn,Ah as _c,Ai as PO,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 DE,Ce as n_,Cf as T_,Cg as Z_,D as yp,Db as _p,Dd as kt,De as s_,Df as P_,Dg as J_,E as Fr,Ec as ME,Ed as pt,Ee as zp,Ef as E_,Ei as EO,F as si,Fa as Dt,Fd as co,Fe as i_,Ff as Yp,G as lo,Ga as lr,Gc as my,Gd as Dr,Ge as Ty,Gf as __,Gi as _O,H as xo,Ha as di,Hd as Mr,Hf as qp,I as ii,Ia as ZI,Ib as EE,Id as dr,Ie as l_,If as Ay,J as bp,Ja as aE,Jd as hi,Je as Gp,Jf as O_,K as $,Ka as JI,Kd as VE,Ke as c_,Kf as Ry,Ki as fe,L as He,La as QI,Lb as Op,Ld as Bp,Le as Py,Lf as A_,Lh as iO,M as M0,Md as YE,Me as d_,Mf as Xp,Mh as lO,N as H0,Nb as Ap,Nc as HE,Ne as f_,Nf as at,Nh as au,Oc as WE,Oe as jp,Of as Ha,Oh as cO,Oi as Oc,P as W0,Pa as ey,Pc as hy,Pe as gi,Pf as R_,Pg as Q_,Ph as dO,Pi as RO,Q as Sp,Qa as nE,Qb as go,Qd as Ln,Qe as Me,Qf as Zp,Qg as Ny,Qh as fO,R as $0,Ra as sE,Rb as _E,Rd as qE,Re as Pe,Rf as Mt,Rg as Qp,Rh as pO,Ri as gu,S as En,Sa as ho,Sb as OE,Sd as Np,Se as p_,Sf as wi,Sg as eO,Si as LO,T as U0,Ta as iE,Td as xi,Te as Ii,Tg as Dy,Th as uO,Ti as FO,U as z0,Ua as Tp,Ub as AE,Uc as j,Ud as wc,Ue as u_,Uf as L_,Ug as oO,Uh as mO,V as hc,Va as lE,Vc as ne,Vd as Cc,Ve as Kp,Vf as F_,Vg as tO,Vh as Ti,W as qI,Wa as cE,Wb as iy,Wc as xy,Wd as Sy,We as Bn,Wf as Ly,Wg as eu,Wh as hO,X as De,Xa as dE,Xc as N,Xe as m_,Xg as rO,Xh as nu,Y,Ya as fE,Yc as Zo,Yd as XE,Yg as ca,Yh as xO,Z as G0,Za as pE,Zc as ia,Zd as ZE,Zf as B_,_a as uE,_c as $E,_d as JE,_e as Ma,_f as Fy,_g as aO,a as ai,aa as Na,ab as hE,ad as Fp,ae as wy,ai as Wa,b as be,ba as li,bb as Pp,bd as ft,be as QE,bh as My,bi as IO,c as _o,ca as j0,cb as Ep,cd as UE,ch as da,ci as yO,d as ra,da as aa,db as xE,dc as ly,dd as cr,de as Cy,dg as N_,dh as Ci,di as bO,ea as XI,eb as gE,ed as Nr,eg as D_,eh as ht,f as vt,fa as ci,fc as RE,fd as gy,ff as h_,fg as M_,fh as ve,fi as su,g as uc,ga as K0,gb as IE,gd as Da,gf as x_,gg as H_,gh as ou,gi as $a,h as A0,ha as V0,hb as yE,hd as la,he as Dp,hf as _y,hh as nO,hi as iu,i as gp,ib as oy,id as zE,ie as Mp,if as ko,ig as Nn,ih as Tc,j as R0,ja as xc,jb as bE,je as e_,jf as g_,jg as W_,jh as Tt,k as L0,ka as Y0,kb as SE,kd as Ze,ke as Hp,kf as I_,kg as $_,kh as Pc,la as q0,lb as ty,ld as Rn,le as Wp,lf as yi,lh as tu,li as SO,ma as X0,mb as fi,mc as An,md as yc,me as o_,mf as mt,mg as Jp,mh as vi,mi as lu,n as F0,na as _n,nb as On,nd as ui,ne as t_,nf as y_,ng as U_,nh as Ec,ni as Pi,oa as Z0,ob as ry,oc as cy,od as GE,oe as $p,of as bi,og as z_,oh as sO,oi as wO,pb as ay,pc as dy,pd as Iy,pe as Up,pf as Si,pg as G_,ph as ki,pi as cu,qa as J0,qb as ny,qd as mi,qe as Fn,qg as j_,qh as ru,qi as CO,r as B0,ra as Cp,rb as wE,rc as Rp,rd as yy,re as r_,rg as K_,ri as Ua,sa as Q0,sb as CE,sc as fy,sf as b_,sg as V_,si as vO,t as to,ta as vp,tb as vE,tc as LE,tf as S_,ti as kO,u as N0,ua as eE,ub as sy,uf as w_,ug as Hr,ui as TO,v as Ip,va as oE,vb as kE,vd as jE,ve as a_,vf as kc,vg as Y_,vi as Ht,w as D0,wa as tE,wb as Br,wc as py,wd as KE,wf as C_,wg as q_,wi as du,xa as gc,xb as TE,xc as Lp,xf as v_,xg as By,xi as Jo,y as Ue,ya as na,yc as FE,yd as by,ye as ut,yf as Oy,yg as X_,yi as me,z as Oo,za as rE,zb as Ic,zc as BE,ze as vc,zg as Wr}from"./chunk-YY4RMNWM.js";import{c as OO,d as fu,e as pu,f as AO,i as uu,j as Wt,k as mu,l as hu,m as xu,q as Hy}from"./chunk-5VQNKBJK.js";var NO="en",Iu=null,DO=NO,MO=null;function CPe(e,o,t){Iu=e??null,DO=o||NO,MO=t??null}function ce(){return MO}function Wy(){return DO}function HO(){return Iu}function BO(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 BO(e,o)}return BO(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 JV,jsxs as QV}from"react/jsx-runtime";import{createContext as e7,useContext as o7}from"react";var t7={mirrorHostStyles:!0,css:null,fontHrefs:[]},WO=e7(t7);function PPe({value:e,children:o}){return $y(WO.Provider,{value:e,children:o})}function Ac(){return o7(WO)}function $O(){let{css:e,fontHrefs:o}=Ac();return QV(JV,{children:[o.map(t=>$y("link",{rel:"stylesheet",href:t},t)),e?$y("style",{"data-sf-canvas-css":"",children:e}):null]})}import{jsx as r7}from"react/jsx-runtime";import{createContext as a7,useContext as n7}from"react";var UO=a7(void 0);function APe({metadata:e,children:o}){return r7(UO.Provider,{value:e,children:o})}var zO=()=>n7(UO);import{jsx as Bo,Fragment as LV,jsxs as mp}from"react/jsx-runtime";import{useCallback as cc,useEffect as oa,useRef as qTe,useState as _V}from"react";import{SettingsSwitch as XTe}from"efficient-easel/panel";import{PagesIcon as ZTe,StylesIcon as JTe}from"efficient-easel/rail";import{PaletteIcon as QTe}from"efficient-shell/icons/efficient";import{Subtree as ePe,TreeRow as FV}from"efficient-easel/tree";import{useEasel as BV}from"efficient-easel/easel";import{toItemSelector as oPe}from"efficient-easel/node-ops";import{useEaselStrings as NV}from"efficient-easel/strings";import{createContext as s7,useContext as i7}from"react";var Uy=s7(!1),FPe=()=>i7(Uy);import{useMemo as l7,useRef as c7}from"react";import{useEaselApi as d7}from"efficient-easel/easel";import{useSectionOps as f7}from"efficient-easel/screen/lib/document/use-section-ops";function yu(){let e=d7(),o=f7(),t=c7(o);return t.current=o,l7(()=>({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 Yoe}from"efficient-easel/draw";import{insertAt as qoe,moveTo as Xoe,removeAt as Zoe}from"efficient-easel/fields";import{useSyncExternalStore as $oe}from"react";import{isNodeList as GO}from"efficient-easel/data";var jO="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():"",p7=e=>e.type===Oo&&Array.isArray(e.props?.[Cy])&&e.props[Cy].some(o=>zy(o?.[vt])!==""),u7=new Intl.NumberFormat("en-US");function m7(e){return/^\d+$/.test(e)?u7.format(Number(e)):e}function GPe(e,o){let t=o?o.find(r=>r.key===e)?.value:B0(uc).find(r=>r.key===e)?.value;return t===void 0?null:m7(t)}var h7={[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,h7)!==""),a=o||p7(e),n=xo(e,i=>lo(i,l=>{let d=Gy(l,a);return d.names&&(r=!0),d.node})).props;if(e.type!==jO)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 KO(e,o,t){for(let r of e){if(r?.props?.id===o)return t;for(let a of si(r??{})){let n=KO(a,o,r.type===jO?r:t);if(n!==void 0)return n}}}function jPe(e,o){if(!GO(e))return!0;let t=KO(e,o,null);if(t===void 0)return!0;if(t===null)return!1;let r=to(t.props);return!r||r===uc}function VO(e){let o=e?.content;if(!GO(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 YO(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 XO(e,o){return Mn.includes(o)?o:Rc[e]}var ZO=["one","side","stacked"],x7="one",VPe={one:"One",side:"Side by side",stacked:"Stacked"};function bu(e){return ZO.includes(e)?e:x7}function qO(e){return e==="one"?1:2}function jy(e,o){if(ZO.includes(e))return e;let t=bu(o);return t==="side"?"stacked":t}function Lc(e){let o=bu(e.mediaLayout);return Math.max(qO(o),qO(jy(e.mediaLayoutPhone,o)))}import{cloneElement as iw,createContext as QJ,useContext as DF,useEffect as eQ,useId as MF,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 jFe,fromDateKey as KFe}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 JO(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 g7=["upload","youtube"],I7="upload",ZPe={upload:"Upload",youtube:"YouTube"},y7=["background","click"],b7="background",JPe={background:"Background",click:"Click to play"};function e1(e){return g7.includes(e)?e:I7}function o1(e){return y7.includes(e)?e:b7}var QO=/^[A-Za-z0-9_-]{11}$/,S7=/^(?:www\.|m\.|music\.)?(?:youtube\.com|youtube-nocookie\.com|youtu\.be)$/;function t1(e){let o=typeof e=="string"?e.trim():"";if(!o)return null;if(QO.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:"||!S7.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&&QO.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 r1(e){return`https://i.ytimg.com/vi/${e}/maxresdefault.jpg`}function a1(e){return`https://i.ytimg.com/vi/${e}/hqdefault.jpg`}var qy="Play video";var Xy={frame:"Video frame",image:"Image"},QPe={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 e0e(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 n1(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 s1(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 w7(e,o){let t=st(e),r=t&&o?o[t]:void 0;return r?.state==="ready"&&r.frame?r.frame:void 0}function o0e(e,o,t){let r=t?.[Zy];if(!(Array.isArray(r)&&r.includes(e)))return w7(o,t?.[Su])}import{useSyncExternalStore as C7}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 C7(t,a,a)}}}var Je="SiteHeader",ze="SiteFooter",Jy="sections",Cu=[Je,ze],_i=e=>e===Je||e===ze,i1=e=>`${e}:${Jy}`;function l1(e,o,t=[]){return{type:e,props:{id:o,[Jy]:t}}}var v7=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):v7.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 c1={[Je]:{max:3,takes:["Flex","Ticker"]},[ze]:{max:6,takes:["Flex","Prose","Logos","Divider"]}};function d1(e,o,t){if(!_i(e))return!0;let r=c1[e];return t<r.max&&r.takes.includes(o)}function f1(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=c1[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 k7}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?k7(e,o,r.ownerId):null;return a&&r?{...a,slot:r.slot}:null}import{isNode as T7}from"efficient-easel/data";var p1="Footer",u1=[Je,p1,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},m1=e=>Bc(e)?.ownerId??"";function h1(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===p1&&!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(T7(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(m1(s))||(n.add(s),r(i),a=!0)}}return t}function x1(e,o){let t=Wn(e).filter(r=>{let a=Ai(r);return typeof r?.type=="string"&&u1.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(m1(a))?t:r)[a]=n;return{owned:t,rest:r}}function g1(e,o){if(!o)return e;let t=h1(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=h1(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&&P7(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 P7(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 I1(e,o){return t=>e(t)||t!==void 0&&u1.includes(t)&&o()}var y1=null;function ob(e){y1=e}function fr(){return y1}var b1=null;function tb(e){b1=e}function Pu(){return b1}var rb=wu();function S1(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 w1(e,o){S1(e,o,"load")}function C1(e,o){S1(e,o,"save")}function Eu(e){return rb.use(e)}var ab=e=>!!fr()?.sectionOf(e);function v1(e,o=ab){return x1(e,o)}function k1(e,o,t,r=ab){if(t)return e&&v1(o,r).has(e)?void 0:t}function T1(e,o,t=ab){if(!e)return{};let r=[...v1(o,t)];return r.length?{[Su]:e,[Zy]:r}:{[Su]:e}}import{ScreenDocumentContext as oQ}from"efficient-easel/screen/components/ScreenDocumentContext";import{readHidable as tn,hidableText as tQ}from"efficient-easel/draw";import{FOLD_FIELD_MARKER as HF,LINK_FIELD_MARKER as rQ,MEDIA_FIELD_MARKER as aQ,SCAFFOLD_FIELD_MARKER as nQ,TEXT_FIELD_MARKER as ba,foldMetaOf as br,textFieldIdentifier as eBe}from"efficient-easel/draw";import{jsx as B1}from"react/jsx-runtime";import{useCallback as R7}from"react";import{useEasel as L7}from"efficient-easel/easel";import{SettingsAction as F7}from"efficient-easel/panel";import{isLengthUnit as O7}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 E7}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 P1(e,o,t){if(!nb(e))return;let r=E7(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,[_7]:n}}var _7="--sf-section-radius",sb="--sf-card-radius";function $n(e,o){return _u.map(t=>o.includes(t)?e:"0").join(" ")}var E1=[{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"},A7="--sf-card-box-radius";function ib(e){return typeof e=="number"&&Number.isFinite(e)}function _1(e,o,t){if(!ib(e))return;let r=(O7(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{[A7]:a}}function O1(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 A1(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]:O1(n,l)}}}:{can:!1,reason:"unset",others:d}}function R1(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 L1(e){return nt("Applied to {n} card","Applied to {n} cards",e)}function F1(e,o){e.can&&o(e.zone,e.index,e.data)}import{useSectionOps as B7}from"efficient-easel/screen/lib/document/use-section-ops";var N7="apply-corners-to-siblings",D7="Apply to all cards";function M7({plan:e,onPress:o}){return B1(F7,{id:N7,label:c(D7),note:R1(e),disabled:!e.can,doneLabel:L1(e.others),onPress:o})}function N1(){let{appState:e,config:o}=L7(n=>n),t=B7(),r=A1(o,e.data.content??[],e.ui.itemSelector),a=R7(()=>{F1(r,t.replaceComponent)},[r,t]);return B1(M7,{plan:r,onPress:a})}import{isShown as j1,lazyShowWhenContext as X7}from"efficient-shell/format";var $t="product",Ou="recordType",D1={key:$t,label:"Product",fields:[]},H7=/^[a-z][a-z0-9]*(-[a-z0-9]+)*$/,W7=/^[a-z][A-Za-z0-9]*$/,$7=["text","date","images"],lb=new Map,M1=0;function U7(e){if(typeof e.key!="string"||!H7.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"||!W7.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(!$7.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 M0e(e){let o=e.map(U7);for(let t of o)lb.set(t.key,t);o.length&&(M1+=1)}function cb(){return[D1,...lb.values()]}function db(e){return e===$t?D1:lb.get(e)??null}function fb(){return M1}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",H1="tyre",z7=[Au,H1];function $0e(e){return z7.includes(e)}var G7="productType",j7={[Au]:"alloy-wheel",[H1]:"tyre"},K7=["alloy-wheel","tyre"];function W1(e,o){return pb(o)?$1(o)??j7[e]??null:null}function $1(e){if(!pb(e))return null;let o=e?.[G7];return typeof o=="string"&&K7.includes(o)?o:null}function U0e(e){let o=e?.root;return $1(o?.props)}var mb="Main Pages",V7="Dynamic Pages",hb="dynamic",Y7="dynamic";function Un(e){return e.kind===Y7}var xb="lightbox";function U1(e){return e.kind===xb}function z1(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:V7,rows:t})}return o}var Ru=null,G1=null;function q7(e,o){Ru=e,G1=o}function Y0e(e){q7(e,null)}function q0e(){return Ru}function Wc(){return Un({kind:G1})||Ru===Au}function X0e(e){return W1(Ru??"",e)??"alloy-wheel"}function Z0e(e){return Wc()?Hc(e):null}function gb(e,o,t){let r=!1,a={};for(let[n,s]of Object.entries(e)){if(!j1(bc(s),o??{},t)){r=!0;continue}let i=Z7(s,o?.[n],o??{},t);i!==s&&(r=!0),a[n]=i}return r?a:e}function Z7(e,o,t,r){let a=e?.options;if(!Array.isArray(a))return e;let n=a.filter(s=>s?.value===o||!s?.showWhen||j1(s.showWhen,t,r));return n.length===a.length?e:{...e,options:n}}function K1(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 V1(e,o={}){return X7({parentType:()=>e.parent?.type??void 0,parent:()=>e.parent?.props??void 0,dynamicPage:()=>Wc(),root:()=>e.appState?.data?.root?.props,...o})}import{isLengthUnit as J7}from"efficient-easel/screen/lib/content/length-units";var Y1=1,Q7="cardImageUnit",Ib={kind:"radius",unitKey:Q7},q1={kind:"radius"};function eY(e){return Mt(e)}function X1(e,o){if(J7(o)&&o!=="px"){let r=q(e);return r!==void 0&&r>=0?{"--sf-card-image-radius":Me(r,o)}:{}}let t=eY(e);return t===null?{}:{"--sf-card-image-radius":`${t}px`}}import{isLengthUnit as oY}from"efficient-easel/screen/lib/content/length-units";var Z1={kind:"radius",unitKey:"cornersUnit"},J1=1,Q1="Corners";function tY(e){return Mt(e)}function xEe(e,o,t){let r=oY(t)&&t!=="px"?q(e):void 0,a=r===void 0?tY(e):null;if(r===void 0&&a===null)return null;let n=r!==void 0?Me(Math.max(0,r),t):`${a}px`;return{borderRadius:Nc(o)?$n(n,$r(o)??[]):n}}var oA=12,Ri=6,rY=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"}},tA=["phone","acrossPhone","leadPhone"];var aY=new Set(tA),$c=Object.fromEntries(Object.entries(Fu).map(([e,o])=>[e,Object.fromEntries(Object.entries(o).filter(([t])=>!aY.has(t)))])),yb=Object.keys(Fu),rA=[2,3,4,6];function bb(e,o){return yb.filter(t=>t===o||e===null||$c[t].across===e)}function aA(e){let o=e.layout;return typeof o=="string"&&He(Fu,o)?o:null}function Sb(e){let o=aA(e);return o?nY(o,e.layoutPhone):null}var Bu={oneAcross:{label:"One across",phone:[[Ri,2]],acrossPhone:1}};function nA(e){return typeof e=="string"&&He(Bu,e)?e:null}function eA(e,o){return o?Ri/e.acrossPhone:oA/e.across}function wb(e){return e.ratio?aO.find(o=>o.shape===e.ratio)?.ratio??null:null}function sA(e){return[...e.lead??[],...e.desktop]}function nY(e,o){let t=Fu[e],r=nA(o);if(!r)return t;let{phone:a,acrossPhone:n}=Bu[r],s=Object.fromEntries(tA.map(i=>[i,void 0]));return{...t,...s,phone:a,acrossPhone:n}}var sY="sf-wall--";function iY(e){let o=aA(e);if(!o)return"";let t=nA(e.layoutPhone);return`${sY}${o}${t?`--${t}`:""}`}function bEe(e){let o=Sb(e);if(!o)return"";let t=`.${iY(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(${oA},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,eA(o,!1),o.lead)),r.push(`@media (max-width:${rY}px){`),r.push(`${t}{grid-template-columns:repeat(${Ri},minmax(0,1fr))}`),r.push(...n(o.phone,eA(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,iA=1,lY=3;var cY=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 dY(e){return Du(e,1,Nu)??cY}function CEe(e,o){return Du(e,iA,lY)??(dY(o)===4?2:iA)}function lA(e){return e==null||e===""?null:Du(e,1,Nu)}var cA="data-sf-span",Cb=4;function dA(e){return e==null||e===""?null:Du(e,1,Cb)}var fA="data-sf-row-span",Ga=["gridSpan","gridRowSpan"];function pA(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 fY}from"react/jsx-runtime";import*as pY from"efficient-easel/icons";function Mu(e){let o=e.replace(/(^|-)([a-z])/g,(r,a,n)=>n.toUpperCase()),t=pY[`${o}Icon`];return t?fY(t,{size:16}):null}import{jsx as ja,Fragment as hY,jsxs as bA}from"react/jsx-runtime";import{useContext as xY,useEffect as gY,useId as IY,useState as SA}from"react";import{SettingsField as yY,SettingsSwitch as bY}from"efficient-easel/panel";import{AnchorIcon as SY}from"efficient-easel/icons";import{ScreenDocumentContext as wY}from"efficient-easel/screen/components/ScreenDocumentContext";import{Snippet as CY}from"efficient-shell/ui";import{slugify as vY}from"efficient-shell/format";import{slugify as uY}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=>uY(Uc(e));var Hu="homepage";import{slugify as mY}from"efficient-shell/format";var uA=[{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 mA(e){return e.offersCommerce&&e.offersService?uA:uA.filter(o=>!o.needs||(o.needs==="commerce"?e.offersCommerce:e.offersService))}var vb="#popup:";function hA(e){return`${vb}${e}`}function xA(e){return e.startsWith(vb)&&e.slice(vb.length).trim()||null}function zc(e){return e===Hu?"/":`/${e}`}function gA(e){return`/journal/${e}`}function LEe(e){return`/wheels/${e}`}function Wu(e,o){return`${zc(e)}#${o}`}function IA(...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=mY(n);!s||o.has(s)||(o.add(s),t.push({slug:s,name:n}))}return t}function FEe(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 yA(e){return/^\/wheels\/[^/?#]+(?:[?#].*)?$/.test(e)}import{readHidable as kY}from"efficient-easel/draw";function wA({value:e,onChange:o,nameBox:t}){let r=kY(e).text,[a,n]=SA(!1),s=a||r.trim()!=="",i=IY();return bA(hY,{children:[ja(yY,{label:c("Add an anchor"),labelId:i,icon:ja(SY,{}),action:ja(bY,{checked:s,ariaLabelledBy:i,onChange:l=>{n(l),!l&&r!==""&&o("")}})}),s&&t(e,o),s&&ja(TY,{name:r})]})}function TY({name:e}){let o=xY(wY),t=o?.templateId?"":o?.currentSlug??"",[r,a]=SA("");gY(()=>a(fu()),[]);let n=vY(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(CY,{value:s,label:c("link"),size:"sm",children:bA("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 PY}from"react/jsx-runtime";import{Fragment as EY}from"react";import{Button as $u,Tooltip as _Y}from"efficient-shell/ui";function CA({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(_Y,{content:n,className:l?"sf-name-tip":void 0,children:Ur("p",{className:"sf-blogsource-status","data-state":e,children:[o?Ur(EY,{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])})})}):PY("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 sQ,EyeIcon as iQ,AnimationIcon as lQ,BackgroundIcon as kF,BorderAllIcon as cQ,BlockSectionIcon as dQ,ColumnWidthsIcon as lw,ColumnsIcon as WF,CornerIcon as $F,DirectionDownIcon as fQ,DirectionLeftIcon as pQ,DirectionRightIcon as uQ,DirectionUpIcon as mQ,EditIcon as hQ,GapIcon as xQ,GridIcon as UF,GroundIcon as aw,HashIcon as gQ,HeightIcon as cw,ImageIcon as IQ,ListIcon as yQ,LocationIcon as TF,PaddingBottomIcon as zF,PaddingLeftIcon as GF,PaddingRightIcon as jF,PaddingTopIcon as dw,PageIcon as bQ,StickyIcon as KF,SearchIcon as SQ,SquareIcon as wQ,TypeIcon as CQ,WidthIcon as vQ}from"efficient-easel/icons";import{jsx as ro,Fragment as Gn,jsxs as jn}from"react/jsx-runtime";import{CaptionIcon as OY,DateIcon as AY,FlagIcon as RY,TitleIcon as LY,ButtonIcon as FY,DollarIcon as BY,HashIcon as NY,LinkIcon as DY,NoteIcon as MY,TagIcon as HY,TextLinesIcon as WY}from"efficient-easel/icons";var vA={body:WY,button:FY,link:DY,label:HY,number:NY,price:BY,note:MY,name:RY,date:AY,caption:OY,title:LY},kA={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=vA[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:kA[e]})}var o_e=Object.keys(vA);var t_e=Object.keys(kA);import{parseHexColor as YY}from"efficient-shell/format";import{parseHexColor as OA}from"efficient-shell/format";import{COLOR_SLOTS as AA,FILL_COLOR_SLOTS as jY,colorRole as KY,fillColorRole as RA}from"efficient-shell/markup";import{parseHexColor as TA}from"efficient-shell/format";import{FILL_COLOR_SLOTS as $Y}from"efficient-shell/markup";var Uu=e=>{let o=j_.find(t=>t.role===e);return o?`var(${o.token})`:""},UY=e=>Uu(e)?`var(--theme-${e})`:"",zY={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:UY("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 $(zY,e)}var Tb="#9ca3af";function Li(e,o,t){let r=Ka(e);return r?{hex:TA(o[r.key]??"")??"",words:r.words(t)}:null}function PA(e,o){return $Y.flatMap(t=>{let r=Li(t,e,o);return r&&Ka(t)?.ink?[{name:t,label:r.words,value:r.hex||Tb}]:[]})}var GY=["main","text","background"];function EA(e){let o=new Set,t=[];return ko(e).themes.forEach((r,a)=>{for(let n of GY){let s=Ka(n),i=s?r[s.key]:void 0,l=typeof i=="string"&&i?TA(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=RA(e.trim());return o?.kind==="slot"&&fa(o.slot)?o.slot:null}var VY={accent:"main",labels:"muted"};function Pt(e){return $(VY,e)??e}function Fi(e){if(!e)return"";if(e.startsWith("#"))return OA(e)===e.toLowerCase()?e:"";let o=KY(Pt(e));return o?.kind==="slot"?fa(o.slot):""}function Bi(e,o=AA){return o.flatMap(t=>{let r=Ka(t);return r?.ink?[{name:t,label:r.label(),value:e?.[t]||Tb}]:[]})}function LA(e){let o=RA(Pt(e));return o?.kind==="slot"?fa(o.slot):""}function Pb(e){let o=e?.trim();return o?jY.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 AA){let i=fa(s);if(!i)continue;let l=i.replace(/^var\((--[\w-]+)\)$/,"$1"),d=a.getPropertyValue(l).trim();if(!d)continue;let f=_A(d);!f&&n&&(n.fillStyle="#000000",n.fillStyle=d,f=_A(String(n.fillStyle))),f&&(o[s]=f)}return o}function _A(e){let o=e.trim().toLowerCase();if(o.startsWith("#"))return OA(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 qY="#ffffff";function Eb(e){return FA(e)||(XY(e)?e:qY)}function FA(e){let o=zr(e);return o?Ka(o)?.page??"":""}function XY(e){return typeof e=="string"&&YY(e)===e.toLowerCase()||FA(e)!==""}function Gu(e){return{"--bg":Eb(e)}}import{parseHexColor as ZY}from"efficient-shell/format";import{fillColorRole as JY}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 R_e="sf-card",L_e="[--sf-card-lift:none] [--sf-card-shadow-hover:var(--sf-card-shadow,none)]",Va={min:0,max:100,step:5,fallback:0,unit:"%"},QY="68%",B_e={desktop:20,phone:20,side:40,sidePhone:24},N_e="sf-box-sides";function Ab(e){return typeof e=="string"&&e.trim()!==""}function NA(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 D_e(e,o){return Ty(o,ut(e,Op))?.trim()||null}function BA(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)} ${QY})`}}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"}],DA="fillFade",Ob=Ku[1].value,Vu=e=>e===Ob?Ob:Ku[0].value,e9=[{mix:"12%",at:"50%"},{mix:"19%",at:"70%"},{mix:"50%",at:"95%"}];function M_e(e){return Vu(e)!==Ob?null:{backgroundImage:`linear-gradient(to bottom, transparent, ${e9.map(o=>`color-mix(in srgb, var(--bg) ${o.mix}, transparent) ${o.at}`).join(", ")})`}}var Yu=e=>typeof e=="string"?ZY(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("#")&&LA(t)||null},qu=e=>{if(typeof e!="string")return null;let o=JY(Pt(e.trim()));return o?.kind==="slot"?o.slot:null},Rb="swatch";function H_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 o9={tabletClass:"sf-fill-tablet",tabletVar:"--sf-fill-tablet",phoneClass:"sf-fill-phone",phoneVar:"--sf-fill-phone"};function W_e(e,o,t){return Kn(o9,Gc(e),Gc(o),Gc(t))}var t9={tabletClass:"sf-wash-tablet",tabletVar:"--sf-wash-tablet",phoneClass:"sf-wash-phone",phoneVar:"--sf-wash-phone"};function $_e(e){let o=BA(e.darken,e.darkenStyle);if(!o)return{className:"",style:{}};let t=(u,p)=>String(BA(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(t9,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 U_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 RE(n,s)}function MA(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 HA(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 kQ,SettingsField as So,SettingsGroup as TQ,SettingsSegmented as PQ,SettingsBorder as EQ,SettingsSidesEach as _Q,SettingsSwitch as fw,borderSides as OQ,borderStartEach as AQ}from"efficient-easel/panel";import{ListField as RQ}from"efficient-easel/fields";import{DisplayChips as LQ}from"efficient-shell/ui";import{HIDDEN_KEY as r9,hiddenInEveryView as a9,hiddenInView as Fb,hiddenKeyOf as WA}from"efficient-easel/screen/lib/content/view-hide";var n9={"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"},s9={"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"},$A=e=>(e.desktop?"1":"0")+(e.tablet?"1":"0")+(e.mobile?"1":"0");function Zu(e,{atSectionLine:o=!1}={}){return(o?s9:n9)[$A(e)]}var Ni=[r9,WA("tablet"),WA("mobile")];function UA(e){return{desktop:Fb(e,"desktop"),tablet:Fb(e,"tablet"),mobile:Fb(e,"mobile")}}function pa(e){return a9(e)}function zA(e){let o=UA(e);return["desktop","tablet","mobile"].filter(t=>o[t]).join(" ")}var i9={"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!"},l9={"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?l9:i9)[$A(UA(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 GA(e){return Object.values(Di(e)).some(o=>o===!1)}function jA(e){return Object.keys(Di(e)).length>0}function KA(e,o,t){let r={...Di(e)};return t?delete r[o]:r[o]=!1,Object.keys(r).length?r:void 0}function VA(e,o,t){return{...Di(e),[o]:t}}function Y_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 FQ,CornersInput as BQ,DatePicker as CBe,DateTimePicker as NQ,FOCAL_DEFAULT as vBe,IconPicker as VF,COLUMN_COUNT_MAX as PF,COLUMN_SHARE_MIN as DQ,COLUMN_SHARES_EQUAL as MQ,resolveColumnShares as YF,WidthsBar as HQ,useShellStrings as WQ,IconButton as qF,InputNumber as EF,Slider as $Q,Tooltip as pw}from"efficient-shell/ui";import{backendOf as c9}from"efficient-easel/screen/lib/session";var Ge=c9,Mi=e=>e.blocks;async function YA(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 oOe(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 tOe(e,o,{geocode:t=YA,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 d9}from"react";import{ColorPicker as f9,ColorPickerPanel as p9,ColorSwatch as u9,HexInput as m9,Popover as h9,Tooltip as x9,colorFill as g9,colorSwatchClasses as I9,useShellStrings as y9}from"efficient-shell/ui";import{SettingsDefaultReset as b9,SettingsField as S9}from"efficient-easel/panel";import{typedHex as Db}from"efficient-easel/pick";var qA="Not set";function XA({value:e,onChange:o,label:t,id:r,caption:a,inherited:n,ariaLabel:s,choices:i}){return it(C9,{value:e,onChange:o,label:c(s??t),id:r,caption:a,inherited:n,choices:i})}function w9(){let{theme:e}=fe();return EA(e)}function C9({value:e,onChange:o,label:t,id:r,caption:a,inherited:n,choices:s}){let i=w9(),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(v9,{id:r,value:e,onChange:o,label:t,presets:i,follows:l,choices:s}):it(f9,{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(m9,{value:e||l||"",onChange:f,label:c("{label} hex code",{label:t}),placeholder:e||l?void 0:c(qA),className:l?"sf-colour-hex is-inherited":"sf-colour-hex",size:"md"})})]})}function v9({value:e,onChange:o,label:t,id:r,presets:a,follows:n,choices:s}){let i=y9().color,l=e||n||"",d=s.findIndex(p=>p.selected),f=d>=0,u=d9(d);return f&&(u.current=d),it(h9,{id:r,trigger:it("span",{"aria-hidden":"true",className:"absolute inset-0",style:g9(l)}),triggerLabel:i.swatch(t,l.toUpperCase()||i.none),triggerClassName:I9({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(x9,{content:p.label,children:it(u9,{color:p.color,"aria-label":p.label,selected:p.selected,onClick:()=>{p.selected||p.onPick()}})},p.label))}),it(p9,{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(S9,{label:e,icon:o,htmlFor:i.id,changed:t,hint:r,action:a?it(b9,{words:ce()?.panel,label:e,changed:!!t,detail:n,onReset:a}):void 0,children:s?Mb("div",{className:"es-width-stack",children:[XA({...i,label:e}),s]}):XA({...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 k9}from"react/jsx-runtime";import{useEffect as T9,useState as P9}from"react";import{clearRangeOf as E9,markSelection as _9,useCaretEdit as O9}from"efficient-easel/copy";import{TextToolbar as A9}from"efficient-shell/ui";function R9(e,o,t){return _9(e,o,t,oE)}function ZA(e,o){let t=E9(o,e.length),r=rE(e,t.start,t.end);return r.text===e?null:r}function L9(e){let[o,t]=P9(null);return T9(()=>{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 F9({target:e,value:o,onChange:t,disabled:r=!1,label:a="Formatting"}){let n=O9({target:e,onChange:t}),[s,i]=L9(e),l=p=>n(m=>{let h=R9(o,p,m);return i({start:h.selectionStart,end:h.selectionEnd}),h}),d=eE(),f={};if(s)for(let p of d)f[p.style]=tE(o,s.start,s.end,p.style);let u=r?null:ZA(o,s);return k9(A9,{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=ZA(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=F9;import{deviceField as Rt}from"efficient-easel/screen/lib/document/device-fields";import{NO_CONTROL_FIELD as UQ,NoControlMark as zQ,noControlField as XF}from"efficient-easel/screen/lib/document/panel-no-control-mark";var Wb="__ownBox";function JA(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 B9,jsxs as N9}from"react/jsx-runtime";import{useRef as D9}from"react";import{SettingsDefaultReset as M9}from"efficient-easel/panel";import{effectTiles as H9}from"efficient-easel/screen/lib/document/effect-tiles";import{VIEW_KEY_ACCESS as QA,describedAs as W9,onDesktopWords as $9,phoneTwinFields as eR}from"efficient-easel/screen/lib/document/box-fields";function U9({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,eR(e,o(t),QA)[r]]}))}function rm(e,o,t){let r=o.render,a={...o,render:n=>tm(U9,{...n,row:r,read:t})};return ua(e,n=>n==="desktop"?o:a)}function z9({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=D9(null),{preview:i}=e,l=H9({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 N9(B9,{children:[i?tm("div",{ref:s,style:{display:"contents"},children:d}):d,r&&t&&tm(M9,{words:ce()?.panel,label:c(e.tileWord),changed:!0,detail:$9(f=>c(f),c(e.word(a)),o.followsView),onReset:()=>o.onChange(void 0)})]})}function am(e,o){let t=W9({type:"custom",render:r=>tm(z9,{...r,spec:o})},{type:"select",label:o.label,options:o.values.map(r=>({value:r,label:o.word(r)}))});return eR(e,t,QA)}import{jsx as zb,Fragment as K9}from"react/jsx-runtime";import{createContext as V9,useContext as Y9}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 G9=["anchor"],j9=/^href$|Href$|^url$|Url$|^link$|^mailto$|^tel$/;function Vn(e){return G9.includes(e)||j9.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 NOe=Object.fromEntries(Object.entries(nm).map(([e,o])=>[e,Object.keys(o)])),DOe=Object.fromEntries(Object.entries(sm).map(([e,o])=>[e,[...o]]));import{NoControlMark as q9}from"efficient-easel/screen/lib/document/panel-no-control-mark";var oR=V9(!1);function tR({children:e}){return zb(oR.Provider,{value:!0,children:e})}function X9(){return Y9(oR)}function rR({name:e,children:o}){return!X9()||!e||!Z9(e)||Vn(e)?zb(K9,{children:o}):zb(q9,{})}function Z9(e){return/^[A-Za-z0-9_$]+$/u.test(e)}var Gb="off",nR="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"}],sR=[{label:"None",value:"none"},{label:"Hairline",value:"hairline"}];function jOe(e){return go(jb,Gb,e)}var aR="sf-card-index",Yc="sf-card-index",KOe="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",J9={plain:`counter(${Yc})`,padded:`counter(${Yc}, decimal-leading-zero)`,numero:`"N\xB0" counter(${Yc}, decimal-leading-zero)`};function VOe(e,o){return o==="off"?"":`.${e}{counter-reset:${Yc}}.${e} .${aR}{counter-increment:${Yc}}.${e} .${aR}::before{content:${J9[o]}}`}function YOe(e){return e==="hairline"?"border border-line hover:border-accent":""}var iR=[{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 GQ}from"efficient-easel/draw";import{jsx as gt}from"react/jsx-runtime";import{SettingsDefaultReset as sq,SettingsField as Kb}from"efficient-easel/panel";import{useSelectedHost as iq}from"efficient-easel/easel";import{FOCAL_DEFAULT as lq}from"efficient-shell/format";import{ImageIcon as Vb,PlayIcon as cR}from"efficient-easel/icons";import{ImageFocusPoint as cq,MediaUploadField as dq}from"efficient-shell/ui";import{useContext as fq}from"react";import{ScreenDocumentContext as pq}from"efficient-easel/screen/components/ScreenDocumentContext";import{tabletKey as uq,viewKeyAt as mq}from"efficient-easel/draw";import{usePreviewDevice as hq}from"efficient-easel/draw/client";import{formatFocal as Q9,parseFocal as eq}from"efficient-shell/format";var oq="sf-focus-phone",tq="--sf-focus-phone",rq="sf-focus-tablet",aq="--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}=eq(e);return Q9(o,t)};function lR(e,o){return Kn(nq,null,qc(o),qc(e))}var nq={tabletClass:rq,tabletVar:aq,phoneClass:oq,phoneVar:tq};import{shownTier as Yb}from"efficient-easel/screen/lib/document/device-fields";import{onDesktopWords as xq}from"efficient-easel/screen/lib/document/box-fields";import{requestMediaPick as gq}from"efficient-easel/screen/lib/media-picker";import{useEaselHost as Iq}from"efficient-easel/screen/lib/host";import{useEaselSession as yq}from"efficient-easel/screen/lib/session-context";function bq(e,o,t,r=!0){let a=Yb(t),n=typeof e[o]=="string"&&e[o]?String(e[o]):lq;if(a==="desktop")return{ownView:!1,followed:n,followsView:"desktop",own:void 0,focus:n,key:o};let s=mq(o,a),i=qc(e[s])??void 0,l=a==="mobile"&&r?qc(e[uq(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 Sq(e,o,t){let r=iq();if(!o||!r)return null;let a=r.values??{};if(t&&!t(a,Yb(e)))return null;let n=bq(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 dR({value:e,onChange:o,label:t,accept:r,placeholder:a,focusKey:n,focusWhen:s,frameKey:i,fieldKey:l}){let d=Iq(),f=yq(),u=c(t),p=hq(),m=r.startsWith("video"),h=Sq(p,m?void 0:n,s),I=!!n&&Yb(p)!=="desktop",w=fq(pq),S=pr(),v=i&&l?{video:l,frame:i}:null,b=T=>gq(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(cR,{}):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(sq,{words:ce()?.panel,label:c("Image focus"),changed:!!h.own,detail:xq(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(cq,{value:h.focus,onChange:h.set,label:c("Image focus"),image:k,hint:null})})}):gt(Kb,{label:u,icon:m?gt(cR,{}):gt(Vb,{}),children:gt("div",{style:{flex:"1 1 auto",minWidth:0},children:gt(dq,{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 fR}from"react/jsx-runtime";import{useId as wq}from"react";import{FieldSelect as Cq}from"efficient-easel/fields";import{SettingsField as vq}from"efficient-easel/panel";function kq(e){return e.map(({value:o,label:t,note:r})=>({value:o,label:t,...r?{meta:r}:{}}))}function pR({label:e,options:o,value:t,onChange:r,emptyLabel:a,icon:n,hint:s}){let i=wq(),l=`${i}-label`,d=`${i}-button`,f=Array.isArray(t)?t:[];return fR(vq,{label:c(e),labelId:l,icon:n,hint:s,children:fR(Cq,{id:d,multiple:!0,value:f,options:kq(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 eX}from"react/jsx-runtime";import{useCallback as kR,useContext as oX,useId as ER,useRef as TR,useState as PR}from"react";import{ThemeIcon as tX}from"efficient-easel/icons";import{Button as rX,useClickOutside as aX}from"efficient-shell/ui";import{SettingsField as nX}from"efficient-easel/panel";import{ScreenDocumentContext as sX}from"efficient-easel/screen/components/ScreenDocumentContext";import{jsx as he,jsxs as qa,Fragment as Fq}from"react/jsx-runtime";import{parseHexColor as Bq}from"efficient-shell/format";import{Button as Xb,IconButton as Nq,Tooltip as Dq}from"efficient-shell/ui";import{jsx as Ya,jsxs as Tq}from"react/jsx-runtime";import{AccentIcon as Pq}from"efficient-easel/icons";import{Button as Eq,Tooltip as _q}from"efficient-shell/ui";function qb(e){return mt(e).background}function Oq(e){let o=Ma(e.accent,qb(e));return o===null?null:{ratio:o,grade:Si(o)}}function Aq(e){let o=qb(e),t=Ma(e.accent,o);return t===null?[]:b_(e.accent).filter(r=>{let a=Ma(r,o);return a!==null&&a>t&&Si(a)==="good"})}var Rq={good:"Easy to read","large-only":bi["large-only"],hard:bi.hard};function uR({value:e,onChange:o}){let t=Oq(e),r=t?.grade,a=t&&t.grade!=="good"?Aq(e):[];return Ya(xt,{label:c("Main color"),icon:Ya(Pq,{}),hint:t?c(Rq[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:Tq("div",{className:"sf-readability",children:[Ya("p",{className:"sf-readability-advice",children:Lq(r,!0)}),Ya("div",{className:"sf-readability-suggestions",children:a.map(n=>{let s=Ma(n,qb(e));return Ya(_q,{content:c("Use {colour}",{colour:n.toUpperCase()}),children:Ya(Eq,{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 Lq(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 Mq,ChevronDownIcon as hR,ChevronUpIcon as Hq,GroundIcon as Wq,LayoutIcon as $q,SquareIcon as Uq,TextSmallIcon as zq,TypeIcon as mR}from"efficient-easel/icons";var Xc=e=>c("Theme {n}",{n:e+1});function xR({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(mR,{}),"Label color":he(zq,{}),Background:he(Wq,{}),"Panels & cards":he($q,{}),Borders:he(Uq,{}),"Button color":he(Mq,{}),"Button text color":he(mR,{})};function Gq({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 jq({value:e,accent:o,onChange:t,idPrefix:r="sf-theme-ink"}){let a=`${r}-button`,n=e!==void 0&&Bq(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 Kq({colors:e,accent:o,onChange:t,idPrefix:r="sf-theme-ink"}){let a=`${r}-button-ink`,n=v_(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 Vq=[{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(Fq,{children:Vq.map(a=>"colour"in a?he(uR,{value:e,onChange:o},"colour"):"moduleBreak"in a?he("div",{className:"sf-theme-module-break","aria-hidden":"true"},"module-break"):"button"in a?he(jq,{value:e.button,accent:r.accent,onChange:n=>o({...e,button:n}),idPrefix:t},"button"):"buttonInk"in a?he(Kq,{colors:e,accent:r.accent,onChange:n=>o({...e,buttonInk:n}),idPrefix:t},"buttonInk"):he(Gq,{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(xR,{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(Dq,{content:a?c("Collapse"):c("Edit colors"),children:he(Nq,{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(Hq,{size:14}):he(hR,{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 gR({colors:e,name:o,nameId:t,open:r,menuId:a,labelId:n,buttonRef:s,onClick:i,onKeyDown:l,onEdit:d}){return qa("div",{className:"sf-secttheme-btn",children:[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(xR,{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(hR,{size:12,className:"sf-multi-caret","aria-hidden":"true"})})]})]})}import{useCallback as aS,useEffect as wR,useRef as fm}from"react";import{currentEaselSession as Xq}from"efficient-easel/screen/lib/session";import{useEaselSession as Zq}from"efficient-easel/screen/lib/session-context";import{useSyncExternalStore as Yq}from"react";var yR,Qb=null,Yn=null,lm=0,eS=new Set;function oS(e){yR=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 IR(){return yR}function qq(e){return eS.add(e),()=>{eS.delete(e)}}function dm(){return Yq(qq,IR,IR)}var rS=new Set;function bR(e){return rS.add(e),()=>{rS.delete(e)}}async function SR(){let e=(await Promise.allSettled([...rS].map(async o=>o()))).find(o=>o.status==="rejected");if(e)throw e.reason}import{WebsiteBackendError as Jq}from"efficient-easel/screen/lib/backend-error";function CR(e=Xq()){return(o,t,r)=>{let a=Ge(e).theme;return a?a.update(o,r?{siteId:r}:void 0):Promise.reject(new Jq("invalid","This backend stores no site theme."))}}function vR(e){return e.themeFromDocument?{status:"skipped",reason:"template"}:e.token?null:{status:"skipped",reason:"no-token"}}async function Qq(e,o=CR()){let{themeFromDocument:t,token:r,siteId:a,patch:n}=e,s=vR({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=Zq(),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 Qq({themeFromDocument:e,token:o?.current,siteId:t,patch:p},CR(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=vR({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 wR(()=>()=>{f()},[f]),wR(()=>bR(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",_R="Follow the slideshow",iX=e=>c("Editing {name} changes it everywhere.",{name:e});function lX({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 cX({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(eX,{children:[qn("button",{type:"button",role:"option","aria-selected":o===null,className:`sf-secttheme-item${o===null?" is-active":""}`,onClick:()=>t(Hr),children:[To(lX,{}),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 dX({index:e,colors:o,onChange:t,onDone:r}){let a=Xc(e),n=ER();return qn("div",{className:"sf-secttheme-sheet",children:[qn("div",{className:"sf-secttheme-sheet-head",children:[To("span",{children:a}),To(rX,{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:iX(a)})]})}function OR({value:e,onChange:o,followLabel:t,hint:r}){let{theme:a,setTheme:n}=fe(),s=ko(a),i=oX(sX),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]=PR(!1),[y,k]=PR(null),F=TR(null),T=TR(null),D=ER(),P=kR(()=>{b(!1),k(null)},[]),L=kR(()=>{!v&&y===null||(p(),P())},[v,y,P,p]);aX(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(nX,{label:c("Theme"),icon:To(tX,{}),labelId:`${D}-label`,hint:r,children:To(gR,{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(cX,{themes:h,value:I,onPick:C,onEdit:E=>{k(E),b(!1)},menuId:D,followLabel:t})}),y!==null&&h[y]&&To(dX,{index:y,colors:h[y],onChange:A,onDone:()=>{p(),P(),T.current?.focus()}})]})}import{jsx as AR}from"react/jsx-runtime";import{useId as fX}from"react";import{FieldSelect as pX}from"efficient-easel/fields";import{SettingsField as uX}from"efficient-easel/panel";function mX(e){return e.map(({value:o,label:t,group:r,thumb:a,meta:n})=>({value:o,label:t,...r!==void 0?{group:r}:{},...a!==void 0?{thumb:a}:{},...n!==void 0?{meta:n}:{}}))}function yAe({label:e,options:o,fallback:t,value:r,onChange:a,placeholder:n,bare:s=!1,icon:i}){let l=fX(),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=AR(pX,{id:f,value:p,options:mX(o),onChange:a,placeholder:h,searchPlaceholder:h,...s?{ariaLabel:m}:{ariaLabelledBy:`${d} ${f}`},searchable:!0,groupCount:!0,inline:!0});return s?I:AR(uX,{label:m,labelId:d,icon:i,children:I})}import{jsx as Zn,jsxs as VX}from"react/jsx-runtime";import{SettingsField as eL}from"efficient-easel/panel";import{LinkIcon as YX}from"efficient-easel/icons";import{LinkPicker as qX,TextLinkField as XX}from"efficient-shell/ui";import{useEffect as QR,useMemo as xm,useRef as ZX,useState as hm}from"react";import{currentEaselSession as hX}from"efficient-easel/screen/lib/session";function RR(){return hX().auth.token}import{currentEaselSession as JX}from"efficient-easel/screen/lib/session";import{useScreenDocument as QX}from"efficient-easel/screen/components/ScreenDocumentContext";var xX=()=>({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 LR(e,o,t){if(!e)return"page";if(xA(e))return"popup";if(e.startsWith("/journal/"))return"blog";if(yA(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=xX(),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:IA(...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:gA(u.slug),label:u.title||u.slug})),placeholder:t.choosePost};case"product":return{type:"select",options:e.products.map(u=>({value:u.href,label:u.name||u.href})),placeholder:t.chooseProduct};case"popup":return{type:"select",options:(e.popups??[]).map(u=>({value:hA(u.slug),label:u.title||u.slug})),placeholder:t.choosePopup};case"custom":return{type:"text"}}},l=mA(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=>LR(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=>LR(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 eZ}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 FR(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 NR=["delay","scroll","exit"],DR=["all","chosen","except"],MR=["visit","days","never","once"],gX=["all","desktop","phone"],IX=["stop","continue"],HR={min:0,max:60},WR={min:10,max:90},$R={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=FR(e,t);return Math.min(o.max,Math.max(o.min,Math.round(r)))}function yX(e){return typeof e.hideAfter=="string"?Et(MR,e.hideAfter,ur.hideAfter):e.oncePerSession===!0?"visit":e.oncePerSession===!1?"never":ur.hideAfter}function bX(e){return Array.isArray(e)?e.map(o=>typeof o=="string"?o.trim():"").filter(Boolean).map(o=>o.startsWith("/")?o:`/${o}`):[]}function BR(e){if(typeof e!="string")return null;let o=e.trim();return/^\d{4}-\d{2}-\d{2}$/.test(o)?o:null}function UR(e){let o=e??{},t=ur;return{autoOpen:ha(o.autoOpen,t.autoOpen),trigger:Et(NR,o.trigger,t.trigger),autoOpenDelaySec:$i(o.autoOpenDelaySec,HR,t.autoOpenDelaySec),scrollPercent:$i(o.scrollPercent,WR,t.scrollPercent),showOn:Et(DR,o.showOn,t.showOn),showOnPages:bX(o.showOnPages),devices:Et(gX,o.devices,t.devices),hideAfter:yX(o),hideDays:$i(o.hideDays,$R,t.hideDays),afterSubmit:Et(IX,o.afterSubmit,t.afterSubmit),startDate:BR(o.startDate),endDate:BR(o.endDate)}}import{parseHexColor as SX}from"efficient-shell/format";var mr="#000000";var iS="popup",wX=J_,CX=["auto","full"],vX=["inside","outside","none"],kX={min:240,max:1440},TX={min:0,max:100},Zc={placement:"center",fullWidth:!1,width:720,height:"auto",tintColor:mr,tintOpacity:60,outsideClick:!0,closeButton:"inside"};function PX(e,o){let t=typeof e=="string"?e.trim():"";return t&&SX(t)===t.toLowerCase()?t:o}function lS(e,o=Zc){let t=e??{},r=o;return{placement:Et(wX,t.placement,r.placement),fullWidth:ha(t.fullWidth,r.fullWidth),width:$i(t.width,kX,r.width),height:Et(CX,t.height,r.height),tintColor:PX(t.tintColor,r.tintColor),tintOpacity:$i(t.tintOpacity,TX,r.tintOpacity),outsideClick:ha(t.outsideClick,r.outsideClick),closeButton:Et(vX,t.closeButton,r.closeButton)}}var zR="cart-drawer",$Ae="cart-drawer",EX={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 UAe(e,o){return o===0?e.subtitleEmpty:o===1?e.subtitleOne:e.subtitleMany.replace("{count}",String(o))}function zAe(e){let o=e??{},t=EX;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 _X=["right","left"],OX={...Zc,width:520,tintOpacity:68};function GAe(e){let o=e??{};return{...lS(o,OX),placement:Et(_X,o.placement,"right"),height:"full",fullWidth:!1,autoOpen:ha(o.autoOpen,!0)}}var jR="consent-banner",YAe="consent-banner";var AX=[{value:"bar",label:"Bar"},{value:"card",label:"Card"}],qAe="Layout",GR={layout:"bar"},RX=e=>AX.some(o=>o.value===e);function XAe(e){let o=Ho((e??{}).layout,GR.layout);return{layout:RX(o)?o:GR.layout}}var ZAe={...Zc,placement:"bottom-center",fullWidth:!0,width:440,tintOpacity:0,outsideClick:!1,closeButton:"none"};var LX="consentWords",FX=["eyebrow","notice","accept","reject","choose"];function cS(e){let o=(e??{})[LX];return typeof o=="string"&&FX.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 BX=["meta","eyebrow","heading","body","statName","statValue","formEyebrow","formHeading","formIntro","fieldLabel","option","finePrint","dismiss","doneHeading","doneBody"],eRe={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"},NX={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"},oRe={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 KR(e){let o={};for(let t of BX){let r=aa(e[NX[t]]);r&&(o[t]=r)}return o}var VR={heading:"Join our email list",placeholder:"Email address",buttonLabel:"Subscribe"},DX={lead:"We accept"},mm={...DX,methods:[],size:"sm",align:"start",dataSource:gp},hr="site-footer";var aRe=hr,nRe={desktop:!0,tablet:!0,mobile:!0},sRe={desktop:!1,tablet:!1,mobile:!1},fS=1,YR=6,iRe=Array.from({length:YR-fS+1},(e,o)=>fS+o),um={desktop:6,tablet:3,mobile:2},MX={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),YR);function lRe(e){if(typeof e=="number")return MX[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",xRe="subscribe-popup",HX=[pS,hr,zR,jR];function XR(e){return HX.includes(e)}var WX=["right","left"],$X={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,UX=ha,ZR=pm;function qR(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 zX(e,o){return Array.isArray(e)?ZR(e,[]):o}function GX(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 IRe(e){let o=e??{},t=$X,r=UR(o);return{metaLabel:fo(o.metaLabel,t.metaLabel),issueLabel:qR(o.issueLabel,t.issueLabel),issueNumber:qR(o.issueNumber,t.issueNumber),kicker:fo(o.kicker,t.kicker),heading:fo(o.heading,t.heading),deck:fo(o.deck,t.deck),stats:GX(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:ZR(o.interests,t.interests),frequencyLabel:fo(o.frequencyLabel,t.frequencyLabel),frequencies:zX(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(WX,o.formSide,t.formSide),valuePanelOnPhone:UX(o.valuePanelOnPhone,t.valuePanelOnPhone),sectionAccent:o.sectionAccent,sectionCorners:o.sectionCorners,sectionCornerSides:o.sectionCornerSides,textStyles:KR(o)}}function jX(e,o=Math.random){for(;;){let t=`popup-${Math.floor(o()*2176782336).toString(36).padStart(6,"0")}`;if(!e.has(t))return t}}function KX(e){return{root:{props:{title:e,kind:iS}},content:[],zones:{}}}function JR(e,o,t){return{slug:jX(o,t),title:e,kind:xb,layout:KX(e)}}function Jc(e){return e?.root?.props?.kind===iS}function oL(e){let o=new Map;return(t="")=>{let r=RR(),a=o.get(t);if(!a||a.token===null&&r!==null){let n=r||!JX().usesBridgedToken?e(r??"",t).catch(()=>[]):Promise.resolve([]);return o.set(t,{promise:n,token:r}),n}return a.promise}}var oZ=oL(async(e,o)=>{let t=o?{siteId:o}:void 0,{pages:r}=Ge();return r.linkTargets?r.linkTargets(t):(await r.list(t)).map(a=>({id:a.id,slug:a.slug,label:a.label,layout:null}))}),tZ=oL(async(e,o)=>await Ge().blog?.posts(o?{siteId:o}:void 0)??[]);function rZ({value:e,onChange:o,label:t="Link",data:r,filters:a}){let n=xm(()=>sS(r,a),[r,a]),s=c(t);return Zn(eL,{label:s,icon:Zn(YX,{}),children:Zn(qX,{value:e,onChange:i=>o(i),kinds:n.kinds,rules:n.rules,filtersFor:n.filtersFor,label:s})})}function tL(){let{siteId:e,capabilities:o}=QX(),{offersCommerce:t,hasBlog:r}=o,[a,n]=hm([]),[s,i]=hm([]),[l,d]=hm([]),[f,u]=hm(null),p=eZ().chrome,m=p?.products?.list,h=p?.linkFilters,I=h?void 0:p?.linkRow,w=ZX(!0);QR(()=>(w.current=!0,()=>{w.current=!1}),[]),QR(()=>{let b=!0;return oZ(e??void 0).then(y=>b&&w.current&&n(y)),r&&tZ(e??void 0).then(y=>b&&w.current&&i(y)),t&&m?.().then(y=>b&&w.current&&d(y)),t&&h?h.load(e).catch(()=>null).then(y=>b&&w.current&&u(()=>y)):u(null),()=>{b=!1}},[e,t,r,m,h]);let S=xm(()=>({pages:a.filter(b=>!XR(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 MRe({label:e,icon:o,text:t,onTextChange:r,link:a,onLinkChange:n}){let{data:s,filters:i}=tL(),l=xm(()=>sS(s,i),[s,i]),d=c(e);return Zn(eL,{label:d,icon:o,children:Zn(XX,{label:d,text:t,onTextChange:r,link:a,onLinkChange:f=>n(f),kinds:l.kinds,rules:l.rules,filtersFor:l.filtersFor})})}function rL({value:e,onChange:o,label:t="Link"}){let r=typeof e=="string"?e:"",{data:a,filters:n,pages:s,offersCommerce:i,HostLinkRow:l}=tL(),d=a.pages.map(u=>zc(u.slug)),f=i&&l&&(r==="/"||d.includes(r))?l:void 0;return VX("div",{children:[Zn(rZ,{value:r,onChange:o,label:t,data:a,filters:n}),f&&Zn(f,{value:r,onChange:o,pages:s})]})}import{UiIcon as _F}from"efficient-easel/draw/client";import{phoneKey as yL,resolveViewValue as mZ,tabletKey as bL,viewKeyAt as Jn}from"efficient-easel/draw";import{SECTION_PAD_UNIT_KEY as wL,SITE_SIDE as hZ,convertLength as xZ,isLengthUnit as gZ,isSiteSide as CL,sideLengthAt as IZ,sideValueAt as yZ,withLength as IS}from"efficient-easel/screen/lib/content/length-units";import{convertLength as aZ}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",URe=`max-w-[${Wo}]`,zRe=`max-w-[${je.default}px]`;function iL(e){return typeof e!="number"||!Number.isFinite(e)?je.default:Math.round(Math.min(Math.max(e,je.min),je.max))}function lL(e,o){let t=Bn(e,o,"size",je);if(t!==null)return{[uS]:t};let r=iL(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},aL="--sf-site-gutter-phone",nZ="max-view-tablet:[--sf-site-gutter:var(--sf-site-gutter-phone)]!",sZ="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)`,iZ=`px-[${_t}]`;var Gr={md:`min(24px,${_t})`,sm:`min(20px,${_t})`,frame:`min(24px,${_t})`,tabs:`min(16px,${_t})`},GRe=[[`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"],[iZ,"px-10"]];var cL="max-view-wide:px-[min(20px,var(--sf-site-gutter,40px))]";function Xa(e){return lZ[e??"box"]}var nL="var(--sf-pad-site,var(--sf-box-g,var(--sf-site-gutter,40px)))",sL="[--sf-edge-g:var(--sf-pad-site)]",lZ={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:nL,edge:sL,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:nL,edge:sL,frame:cL}},jRe=`mx-auto max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)] ${cL}`,dL="[--sf-box-g:var(--sf-site-gutter,40px)] [&>*]:[--sf-site-gutter:0px]";var fL="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 pL(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 uL(e){return typeof e=="number"&&Number.isFinite(e)?iL(e):null}function mL(e,o){let t=Bn(e,o,"spacing",xr);if(t!==null)return{[aL]:t};let r=Im(e);return r===null?{}:{[aL]:`${r}px`}}function hL(e){return Im(e)===null?"":`${nZ} ${sZ}`}function ym(e,o){let t=Kp(e,o,"spacing",lt),r=t===null?gm(e):aZ(t,Pe(o),"px","mobile",xr);return Math.min(xr.max,r)}var xL=Wo,KRe=`max-w-[${xL}]`,VRe=`max-w-[min(var(--sf-page-cap,${je.default}px),${je.default}px)]`,bm="--sf-hero-cap",cZ=`var(${bm},none)`,YRe=`max-w-[${cZ}]`,dZ="--sf-hero-bleed-m",fZ="--sf-hero-bleed-w",hS="--sf-hero-chrome-x",xS="--sf-hero-chrome-cap";function Sm(e){return e===!0?{[bm]:xL,[dZ]:"auto",[fZ]:"100%",[hS]:"24px",[xS]:"none"}:{}}var gS=`calc(${Wo} - ${_t}*2)`,qRe=`max-w-[${gS.replace(/ /g,"_")}]`;var pZ="--sf-chrome-cap",uZ=`var(${pZ},${gS})`,gL="data-page-width";function IL(e){return e==="full"?"full":null}function XRe(e){return e==="full"?null:Ui(e==="content"?gS:uZ)}function ZRe(e){if(e==="full")return"full";if(e==="content")return"content"}var Ut={min:10,max:200,step:10};function bZ(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),SZ="sf-pad-top-phone",wZ="sf-pad-bottom-phone",CZ="--sf-pad-t-phone",vZ="--sf-pad-b-phone",kZ="sf-pad-left-phone",TZ="sf-pad-right-phone",PZ="--sf-pad-l-phone",EZ="--sf-pad-r-phone",_Z="sf-pad-top-tablet",OZ="sf-pad-bottom-tablet",AZ="sf-pad-left-tablet",RZ="sf-pad-right-tablet",LZ="--sf-pad-t-tablet",FZ="--sf-pad-b-tablet",BZ="--sf-pad-l-tablet",NZ="--sf-pad-r-tablet",vL="sf-section-pad";function ed(e){let o={desktop:e.unit,tablet:e.unitTablet,phone:e.unitPhone},t=bZ(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:[vL,...r.classes].join(" "),style:{...t,...r.style}}}var DZ=e=>CL(e)?e:q(e),MZ=[["top","paddingTop",[_Z,LZ],[SZ,CZ]],["bottom","paddingBottom",[OZ,FZ],[wZ,vZ]],["left","paddingLeft",[AZ,BZ],[kZ,PZ]],["right","paddingRight",[RZ,NZ],[TZ,EZ]]];function SL(e,o,t){return!gZ(o)||o==="px"?e:xZ(e,"px",o,t,{min:0,max:Ut.max,step:1})}function HZ(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,[bL("n")]:o,[yL("n")]:t,u:r.desktop,[bL("u")]:r.tablet,[yL("u")]:r.phone},i=mZ("spacing",q(e),q(o),q(t),pi()),l=(m,h,I)=>{if(yZ(s,{side:"n"},m,"side",["side"])?.value===hZ)return Xa().value;let w=IZ(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 MZ){let I=p==="left"||p==="right"?DZ:q,w=I(e[p]),S=p==="top"||p==="bottom"?n:0;CL(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=HZ(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:SL(s,t,"desktop")),l=q(n);return l===void 0?i:(i??0)+SL(l,t,"desktop")};return{top:r(e.padTop,e.sectionPaddingTop,o.top),bottom:r(e.padBottom,e.sectionPaddingBottom,o.bottom)}}function kL(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!==vL):[];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,wL]].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?wL: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 TL(e){return ed(e)}function PL(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 WZ,buttonFillOpacityOf as $Z,buttonPadSidesOf as UZ,viewKeyAt as zZ}from"efficient-easel/draw";import{BUTTON_PAD_UNIT_KEY as SS,lengthOf as GZ}from"efficient-easel/screen/lib/content/length-units";var jZ="px-6 py-4",KZ=4,vm=e=>{let o=new RegExp(`\\bp${e}-(?:\\[(\\d+)px\\]|(\\d+))`).exec(jZ);if(!o)throw new Error(`BUTTON_PAD_CLASSES has no p${e}`);return o[1]!==void 0?Number(o[1]):Number(o[2])*KZ},uLe={top:vm("y"),right:vm("x"),bottom:vm("y"),left:vm("x")},_L="var(--btn)";function VZ(e){let o=e.variant==="ghost",t=$Z(e.buttonFillOpacity),r=WZ(e.buttonBorder),a=be(e.buttonColor);return{fillOpacity:t??(o?0:100),border:{width:r?.width??1,color:r?.color??a??(o?"currentColor":_L)},changed:t!==void 0||r!==void 0}}function mLe(e){let o=VZ(e);if(!o.changed)return null;let t=be(e.buttonColor)??_L;return{background:o.fillOpacity===0?"transparent":o.fillOpacity===100?t:`color-mix(in srgb, ${t} ${o.fillOpacity}%, transparent)`,borderWidth:GZ(o.border.width,Pe(e.buttonBorderUnit)),borderStyle:"solid",borderColor:o.border.color}}var YZ="var(--sf-button-radius, 0)";function hLe(e){let o=q(e.buttonCorners),t=$r(e.buttonCornerSides);if(o===void 0&&t===null)return null;let r=o===void 0?YZ:Me(Math.max(0,o),e.buttonCornersUnit);return{borderRadius:t===null?r:$n(r,t)}}function xLe(e){let o=(s,i)=>e[zZ(s,i)],t=s=>UZ({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 EL="upper";function OL(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)??EL;return`${i} \xB7 ${l[d]??l[EL]}`}import{usePreviewParts as jQ}from"efficient-easel/draw/client";import{encodePartId as KQ}from"efficient-easel/draw";import{DEFAULT_EASEL_STRINGS as VQ,useEaselStrings as YQ}from"efficient-easel/strings";import{PIN_STICK_VAR as qZ,PIN_TRACK_POSITION_VAR as XZ,pinAttrs as AL,pinStickVars as ZZ,readPin as vS}from"efficient-shell/format";var wLe="Stick to top",zt={min:0,max:200,step:4,fallback:0},rd={kind:"position",unitKey:"stickTopDistanceUnit"},RL=Ii(rd),[JZ,QZ,eJ]=RL,kS="Pin while scrolling",LL="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",FL="Pin stops at",BL=[{value:"header",label:"Under the header"},{value:Za,label:"Screen top"}],NL="header",DL="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 ML(e){return e===Za?Za:void 0}var Ja="stickAbove",HL="Stays above",WL="On: the pinned box stays on top, and the sections after it scroll under it.";function oJ(e){return e.stickAbove===!0}var $L=["stickTop","stickTopDistance","stickTopTablet","stickTopDistanceTablet","stickTopPhone","stickTopDistancePhone",...RL,...TS,es,Ja],_S=new Set(["IntroBleed"]),UL=new Set(["CategoryBar","DocTabs","Contents"]);function tJ(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?tJ(e):e.stickTop===!0,r=e,a=Pe(r[JZ]),n=CS(e.stickTopDistance,a),s=wS(e.stickTopScreens),i=OS(e),l=i?e.stickTopTablet===!0:t,d=i?Pe(r[QZ]):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[eJ]):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&&oJ(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)),...rJ(t.desktop&&t.desktopScreens===0,t.tablet&&t.tabletScreens===0,t.phone&&t.phoneScreens===0,i)};return{attrs:AL(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:AL(vS(!0),"stick",n?{above:n}:{}).attrs,style:f}}function rJ(e,o,t,r){let a=[[gr.stick,qZ],[gr.trackPosition,XZ]],[n,s,i]=[e,o,t].map(ZZ);return Object.fromEntries(a.flatMap(([l,d])=>[...e?[[l,n[d]]]:[],...Object.entries(r(l,n[d],s[d],i[d]))]))}var aJ=["column","row","tabs","accordion"];var nJ={column:"Stacked",row:"One row",tabs:"Tabs",accordion:"Accordion"},zL={Flex:aJ,HeroGroup:["column","row"]},sJ={Flex:"row",HeroGroup:"column"},iJ={column:"flex-col",row:"flex-row",tabs:"flex-col",accordion:"flex-col"};function Kr(e,o){return zL[e].includes(o)?o:sJ[e]}function vLe(e,o){return iJ[Kr(e,o)]}function GL(e){return zL[e].map(o=>({label:nJ[o],value:o}))}import{viewKeyAt as LS}from"efficient-easel/screen/lib/content/view-tiers";var Pm=20,lJ=["solid","dashed","dotted"],Em=["top","right","bottom","left"],_m="sf-section-border",KL="sf-section-border-self",cJ=/^#(?:[0-9a-f]{3}|[0-9a-f]{4}|[0-9a-f]{6}|[0-9a-f]{8})$/i,dJ=e=>typeof e=="number"&&Number.isFinite(e)?`${Math.min(Pm,Math.max(0,Math.round(e)))}px`:void 0,ad={kind:"border",unitKey:"sectionBorderUnit"},VL=Ii(ad);function YL(e){let o=ad.unitKey;return{desktop:e[LS(o,"desktop")],tablet:e[LS(o,"tablet")],phone:e[LS(o,"mobile")]}}var jL=(e,o)=>o==="px"?dJ(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=jL(e[i],s)??jL(e.width,s);l!==void 0&&(n[`--sf-border-${i}-width${a}`]=l)}return typeof e.style=="string"&&lJ.includes(e.style)&&(n[`--sf-border-style${a}`]=e.style),typeof e.color=="string"&&cJ.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 qL(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},tF={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},fJ=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=tF[e]?.[o];if(typeof r=="number")return r}return typeof t=="number"&&Number.isFinite(t)?t:ji[e]}var pJ="sf-gap-overlap",uJ="--sf-gap-overlap",BS="--sf-block-gap",XL="--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 rF(e,o){let t=Bn(e,o,"gap",Gt);if(t!==null)return{[BS]:t,[XL]:t};let r=nd(e);return r===null?{}:{[BS]:`${r}px`,[XL]:`${r/16}rem`}}var ZL="--sf-block-gap-phone",JL="--sf-block-gap-phone-rem",mJ="--sf-block-gap-on-phone",hJ="max-view-tablet:[--sf-block-gap-on-phone:var(--sf-block-gap-phone)]",xJ="max-view-wide:[&_[data-sf-line~=edge]:not([data-sf-line~=edge]_*)]:[--sf-block-gap-on-phone:var(--sf-block-gap-phone)]";function aF(e,o){let t=Bn(e,o,"gap",Gt);if(t!==null)return{[ZL]:t,[JL]:t};let r=nd(e);return r===null?{}:{[ZL]:`${r}px`,[JL]:`${r/16}rem`}}function nF(e){return nd(e)===null?"":`${hJ} ${xJ}`}var QL="sf-gap-zone",eF="--sf-gap-len";function Am(e,o){return typeof o=="number"&&Number.isFinite(o)&&o>=ga.min?!0:typeof o=="string"&&typeof tF[e]?.[o]=="number"}var oF="--sf-gap-len-phone",gJ="--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 IJ={block:"sf-gap-overlap-block",inline:"sf-gap-overlap-inline",both:"sf-gap-overlap-both"};function OLe(e,o,t,r,a){let n={...Qa(r)?{[oF]:`${r}px`}:null,...Qa(a)?{[gJ]:`${a}px`}:null};if(!Am(e,o)){let i=`${ji[e]}px`,l=fJ.has(e)?`var(--sf-card-gap, ${i})`:i;return{className:` ${QL}`,style:{[eF]:`var(${BS}, ${l})`,[oF]:`var(${mJ})`,...n}}}let s=os(e,o);return s>=0?{className:` ${QL}`,style:{[eF]:`${s}px`,...n}}:{className:` ${pJ} ${IJ[t]}`,style:{gap:"0px",[uJ]:`${-s/2}px`}}}import{parseHexColor as yJ}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 bJ=/var\(\s*--(surface-2|surface|line)\s*(?=[,)])/g;function Rm(e){let o=zr(e);return o?fa(o):e.replace(bJ,"var(--site-$1")}var SJ={"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("#")?yJ(a):null;if(n)return n.toLowerCase();let s=SJ[a.replace(/\s+/g,"")];return(s?t[s]:t.background).toLowerCase()}var WS="transparent";function sF(e,o){let t=Vr(e,o);return!t||t===WS?"none":t===Qo?"band":null}function iF(e,o,t=o){let r=n=>!n||n==="transparent",a=Vr(e,o);return a===t||r(a)&&r(t)}var lF=["transparent","var(--wheel-stage)","var(--surface)","var(--surface-2)"],cF={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 NLe(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 DLe(e){return typeof e=="string"&&e!==ld?Rm(e):Ki}function MLe(e){return e!==Lm&&e!=="none"&&e!==""}function dF(e,o){return e===ld||e===!0?!0:e==null?o===Ki:!1}var ts="inherit",Fm="fixed",fF=e=>typeof e!="number"&&e!==Fm,wJ="var(--sf-heading-max, 9999px)";function $Le(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}, ${wJ})`:n}var US={kind:"fontSize",unitKey:"titleSizeUnit"},zS={kind:"fontSize",unitKey:"bodySizeUnit"},CJ=["desktop","mobile"],pF=[US,zS].flatMap(e=>Ii(e,CJ));function GS(e){let o=(t,r)=>p_(e,t,r);return{titleDesktop:o(US,"desktop"),titleMobile:o(US,"mobile"),bodyDesktop:o(zS,"desktop"),bodyMobile:o(zS,"mobile")}}var vJ=["page","full"],uF=["full","page"],rs={full:"Full",page:"Content"},jS="inherit",kJ=e=>typeof e=="string"&&vJ.includes(e),TJ=e=>e===jS;function Bm(e,o){return TJ(e.widthMode)?{mode:"full",inherited:!0}:kJ(e.widthMode)?{mode:e.widthMode,inherited:!1}:{mode:o,inherited:o==="full"}}function KLe(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"?uL(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 mF(e){let o=as(e);return o.content===null&&e.fullWidth===!0?{...o,content:"full"}:o}function hF(e){return e.background!==null||e.content!==null}var xF=e=>({[Be.background]:e}),gF=e=>e==="full"?{[Be.content]:e,[Be.contentMax]:void 0,[Be.contentMaxUnit]:void 0}:{[Be.content]:e},IF=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},yF="siteWidths",PJ=e=>e==="full"||e==="content";function Vi(e){return PJ(e)?e:null}function bF(e,o){return{[yF]:{background:Vi(e),content:Vi(o)}}}function Dm(e){let o=e.editor?.metadata?.[yF];return{background:Vi(o?.background),content:Vi(o?.content)}}import{useEaselSession as qQ}from"efficient-easel/screen/lib/session-context";import{BOX_GAP as XQ,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 ZF,onDesktopWords as is,phoneTwinFields as sw,saidAlignmentGrid as ZQ,useLengthUnit as JQ}from"efficient-easel/screen/lib/document/box-fields";import{createElement as jt}from"react";import{SettingsDefaultReset as EJ,SettingsField as _J}from"efficient-easel/panel";import{boxFieldBuilders as OJ,describedAs as AJ,iconOf as RJ,onDesktopWords as LJ}from"efficient-easel/screen/lib/document/box-fields";import{LENGTH_KIND_UNITS as FJ}from"efficient-easel/screen/lib/content/length-units";import{IconPicker as BJ,Tooltip as NJ,useShellStrings as DJ}from"efficient-shell/ui";import{RotateIcon as MJ}from"efficient-easel/icons";var Mm=e=>c(e),Ia=FJ,Ao=OJ(Mm,{lengthUnits:Ia}),$o=Ao.slider,Ot=Ao.select,cd=Ao.Segmented,qi=Ao.segmented,tFe=Ao.alignmentField,rFe=Ao.alignmentFields,aFe=Ao.blockAlignmentField,nFe=Ao.blockAlignmentFields,sFe=Ao.boxJustifyField,iFe=Ao.boxAlignField,lFe=Ao.boxWrapField,SF=Ao.directionField,Hm=Ao.gapField,cFe=Ao.placementField,dFe=Ao.PlacementGridView,fFe=Ao.positionFields,Xi=Ao.sidesPaddingFields,ns=Ao.lengthUnitFields;function wF(e,o){return $o("Angle",jt(MJ),kp.min,kp.max,kp.step,e,"\xB0",o)}var YS=Symbol("efficient-web-builder.picture-picker-row"),HJ={width:"3.5rem",height:"2.75rem",words:!0};function qS({value:e}){return DJ().iconNames[e]??e}function XS(e,o,t){return jt(NJ,{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 WJ(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 CF(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,...AJ({},{type:"radio",label:e,options:i}),options:i,render:l=>{let{value:d,onChange:f,field:u}=l,p=u?.options,m=WJ(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(_J,{label:c(e),icon:RJ(o),action:h?jt(EJ,{words:ce()?.panel,label:c(e),changed:v,detail:b?.label!==void 0?LJ(Mm,c(b.label),l.followsView):void 0,disabled:l.readOnly===!0,onReset:()=>f(void 0)}):void 0},jt(BJ,{label:c(e),value:S,options:m,onChange:f,columns:a.columns,cell:a.cell??HJ,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 qJ}from"efficient-easel/icons";import{useId as XJ}from"react";var $J="line",UJ=[{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}},mFe=28,zJ="-45deg",GJ="color-mix(in oklab, var(--accent) 50%, var(--bg))";function jJ(e){return e!=="line"&&e!=="none"}var KJ={sm:24,md:48,lg:80},VJ="md",YJ=Object.keys(KJ);function hFe(e){return go(YJ,VJ,e)}function xFe(e){return go(UJ,$J,e)}function gFe(e){if(!jJ(e))return null;let{ink:o,period:t}=JS[e];return`repeating-linear-gradient(${zJ}, ${GJ} 0 ${o}px, transparent ${o}px ${t}px)`}var IFe={kind:"border",unitKey:"thicknessUnit"},yFe={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 TFe={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 PFe(e){if(e==="none")return _("span",{style:{display:"flex",width:Wm,height:$m,alignItems:"center",justifyContent:"center"},children:_(qJ,{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 _(ZJ,{children:a})}function ZJ({children:e}){let o=`sf-div-${XJ().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}),EFe={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})]})},_Fe={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})]})},OFe={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})]})},AFe={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})]})},RFe={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})]})},LFe={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})]})},FFe={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})]})},BFe={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})]})},NFe={"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})]})},vF={width:"5.75rem",height:"3.75rem",words:!0},DFe={width:"8.5rem",height:"3.75rem",words:!0},MFe={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 ANe,SCALAR_TEXT_CONTROLS as RNe}from"efficient-easel/draw";function ls(e,o){return c("{value} from {from}",{value:e,from:o})}function QQ(){let{blockGap:e}=fe();return e===null?c("this container's own spacing"):ls(`${e}px`,c("Styles"))}function eee({inherited:e,onReset:o,label:t}){return O(et,{words:ce()?.panel,label:c(t),changed:!e,detail:QQ(),onReset:o})}function oee(e){return Hm({...XQ,builtIn:ji[e],resolve:(o,t)=>os(e,o,t?.siteGap),action:(o,t)=>O(eee,{inherited:!Am(e,o),onReset:()=>t(void 0),label:"Gap"}),mark:{[Om]:e}})}function tee(e){return co(Rt("mobile",{[Om]:e,type:"custom",render:o=>O(nee,{container:e,...o})}),JF)}function ree(e){return co(Rt("tablet",{[Om]:e,type:"custom",render:o=>O(aee,{container:e,...o})}),JF)}var JF={not:{field:"gap",in:Array.from({length:-ga.min},(e,o)=>ga.min+o)}};function CNe(e){return{gap:Rt("desktop",oee(e)),[uw("gap")]:ree(e),[Zi("gap")]:tee(e)}}function aee({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 nee({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 vNe(e){return SF({offered:GL(e),fallback:Kr(e,void 0),resolve:o=>Kr(e,o)})}function kNe(e,o){return Q_(o?tO(e,o):[],o)}function see({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=MF(),w=a?fee(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(CQ,{}),htmlFor:I,className:h?"is-hidden":void 0,hint:w,action:s?O(pw,{content:S,children:O(qF,{"aria-pressed":d,"aria-label":S,onClick:m,children:d?O(_F,{name:"eye-off",size:14}):O(_F,{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 TNe(e,o){return{...e,[nQ]:o}}function PNe(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 ENe(e){if(!e[ba])throw new Error("withPanelOnly: the field holds no authored text");return{...e,[$b]:!0}}function QF(e){return Hi(e)}function _Ne(e){let o=e[ba];if(!o)throw new Error("withIdentifier: the field holds no authored text");return{...e,[ba]:{...o,identifier:!0}}}function LNe(e,o){if(!e[ba])throw new Error("inOwnBox: the field holds no authored text");let{[UQ]:t,...r}=e;return{...r,[Wb]:!0,render:o}}var iee=new Set(GQ),jm={type:"radio",options:[{value:!0},{value:!1}]},eB={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},{...eB[e.control],label:e.label});if(!iee.has(e.control))return t;let r=o.render;return{...XF(t,"authored-copy"),render:a=>O(rR,{name:a.name,children:r(a)})}},FNe="Everything else on this block comes from the linked post. Unlink it to edit by hand.",lee={field:"source.slug",set:!0},BNe={not:lee},cee="Select a word, then press the highlighter.",dee=new Set([cee]),fee=e=>dee.has(e);function NNe(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 DNe(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 MNe(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 HNe(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 WNe(e){return{type:"custom",[rQ]:{label:e},...on({},{type:"text",label:e}),render:({value:o,onChange:t})=>O(rL,{value:tQ(o),onChange:t,label:e})}}function $Ne(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 oB={Design:sQ,Animation:lQ};function UNe(e,o){return{type:"custom",render:()=>O(pee,{text:e,values:o})}}function pee({text:e,values:o}){return O("p",{className:"sf-note",children:c(e,o)})}function tB(e){return br(e)!==null&&e?.tabs!==void 0}var OF=new Map;function Ym(e,o){let t=`${e}\0${o?o.join(""):""}`,r=OF.get(t)??{type:"custom",tabs:o,[HF]:{label:e,level:1},bucket:e,marker:!0,render:()=>O(Sa,{})};return OF.set(t,r),r}var AF=new Map;function hw(e){let o=AF.get(e)??{type:"custom",[HF]:{label:e,level:1},designGroup:e,marker:!0,...e==="Content"?{}:{fold:e},render:()=>O(Sa,{})};return AF.set(e,o),o}function uee(e){let o=e;return o?.marker===!0&&typeof o.fold=="string"?o.fold:null}function rB(e,o){return uee(e)===o?e:{...e,marker:!0,fold:o,render:()=>O(Sa,{})}}function aB(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(TQ,{title:e,open:t,onToggle:a=>{r(a),a?ow.delete(e):ow.add(e)},children:o})}var ow=new Set;function mee({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(FQ,{color:i,selected:o.toLowerCase()===i.toLowerCase(),onClick:()=>t(i),"aria-label":l})},i)}),O("span",{className:"sf-swatch-hex",children:s})]})}function zNe(e,o,t=!1){return{type:"custom",render:({value:r,onChange:a})=>O(hee,{label:e,builtIn:o,followsBand:t,value:r,onChange:a})}}function hee({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:T_(s)},d=t?Qo:o,f=iF(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=xee(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(kF,{}),value:S.hex,caption:S.words,onChange:a,changed:!0,onReset:()=>a(p),resetTo:I,choices:h}):O(Vc,{label:c(e),icon:O(kF,{}),value:f?"":HS(n,o,l),inherited:u,resetTo:I,onChange:a,onReset:()=>a(p),choices:h})}function xee(e,o,t,r,a,n){let s=sF(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 gee(e,o){return{type:"custom",render:({value:t,onChange:r})=>{let a=t,n=dF(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:mee({swatches:lF,current:n?Ki:$S(a,o),onPick:r,names:cF})})}}}function Qi(e=t=>t,o){return md({_gSectionTheme:Sr(Y_),sectionAccent:{type:"custom",render:({value:t,onChange:r})=>O(OR,{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??Ree(t,a);return JQ({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($Q,{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 Iee(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",yee={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($F,{}),changed:n,action:iw(e.mark,{changed:n,onReset:()=>r(null)}),hint:e.hint,children:O(bee,{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 XF({type:"custom",render:()=>O(zQ,{})},"always")}function pr(){let e=ss();return o=>e?.onChangeMany(o)}function bee({tier:e,px:o,name:t,onRadius:r}){let a=e.useFollowed(),[n,s]=yr(e.sidesKey),i=pr(),l=el({row:e.row??yee,label:pd,grid:{min:at,max:Ha,step:e.step??1},valueKey:t??"",view:"desktop"}),d=$r(n)??[..._u];return O(BQ,{label:c(pd),value:d,corners:E1,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 nB(e,o){return ns(e,o)}function sB(){return hd()}function See({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 wee(){let{cornerRadiusPx:e}=fe();return typeof e=="number"?e:at}function Cee(){return gw({sidesKey:"sectionCornerSides",row:Dc,useFollowed:wee,mark:O(See,{label:pd}),hint:vee})}var vee="Follows Styles \u25B8 Basics \u25B8 Corners until you set a number here.";function ol(){return md({_gShape:Sr("Shape"),sectionCorners:Cee(),...nB(Dc,"sectionCorners"),sectionCornerSides:sB(),...ua("sectionBorder",Aee),...ns(ad,"sectionBorder",{tablet:!0,phone:!0})})}var kee=()=>({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 Tee(e){let o=Object.fromEntries(Object.entries(e).filter(([,t])=>t!=null&&t!==""));return Object.keys(o).length?o:void 0}function Pee(){let e;try{let o=ko(fe().theme);e=o.themes[o.selected]?.line}catch{e=void 0}return e||x_.line}function Eee({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?AQ(l,s):!1),u=kee(),p=m=>Tee(a&&n?m:{width:m.width,color:m.color,...n?{style:m.style}:{}});return O(So,{label:c("Border"),icon:O(cQ,{}),action:a?O(_Q,{each:d,label:c("Each side"),onChange:f}):void 0,children:O(EQ,{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 _ee({value:e,onChange:o,view:t}){let[r]=yr("sectionBorder"),[a]=yr(uw("sectionBorder")),n=Pee(),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]:Oee(m,p)}:{}}});return O(Eee,{value:e,length:u,onChange:u?p=>d({[f]:p,...u.unitPatch(!tw(p))}):o,placeholder:{sides:OQ(i),style:i.style??"solid",color:i.color||n},presets:[n],above:i})}var iB=["width",...Em];function tw(e){if(!e||typeof e!="object")return!1;let o=e;return iB.some(t=>q(o[t])!==void 0)}function Oee(e,o){let t={...e};for(let r of iB){let a=q(t[r]);a!==void 0&&(t[r]=o(a))}return t}function Aee(e){return{type:"custom",render:({value:o,onChange:t})=>O(_ee,{value:o,onChange:t,view:e})}}function Ree(e,o){let t=ew[e];for(;t&&ew[t]!==null&&!o(t);)t=ew[t];return t??e}function GNe(e){return{type:"custom",render:()=>O(Lee,{partKey:e})}}function Lee({partKey:e}){let[o]=yr("id"),[t]=yr("_partStyles"),{textStyles:r}=fe(),a=YQ(),n=null;try{n=jQ().select}catch{n=null}let s=t&&typeof t=="object"?t[e]:void 0,i=Array.isArray(r)?r:null;return O(kQ,{name:c("Text"),preview:OL(s,i,{noStyle:c("No style"),styleName:a.textStyles.styleName,cases:(a.copy.panel??VQ.copy.panel).cases}),onOpen:()=>{n&&typeof o=="string"&&n(KQ(o,e))}})}function lB(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?MA(n?.data,i)?.props??null:null}catch{r=null}if(!r)return t;let a=r.sectionCorners;return nb(a)?a:t}function Fee({label:e,changed:o=!1,onReset:t=()=>{}}){let r=lB(at);return O(et,{words:ce()?.panel,label:c(e),changed:o,detail:ls(`${r}px`,c("the section")),onReset:t})}function Bee(){return O(Sa,{children:c("Follows the section's Corners until you set a number here.")})}function Nee(){return gw({sidesKey:"cardCornerSides",row:Mc,useFollowed:()=>lB(at),mark:O(Fee,{label:pd}),hint:O(Bee,{})})}function Dee(){return{type:"custom",render:()=>O(N1,{})}}function cB(){return{_gShape:Sr("Shape"),cardCorners:Nee(),...nB(Mc,"cardCorners"),cardCornerSides:sB(),cardCornersApplyAll:Dee()}}function Mee(){return on({type:"custom",[YS]:!0,render:e=>O(Wee,{...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 Hee(e,o){let t=dy(e);if(t!=="custom")return c(cy.find(a=>a.value===t)?.label??"");let r=YF(Rp(e,o),o);return r?[...r,100-r.reduce((a,n)=>a+n,0)].join(" / "):c("Custom")}function Wee(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<=PF,f=()=>[...MQ[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:PF}),I=s&&(n||o!=="content"),w=WQ().widths.hint(a,DQ);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),Hee(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(VF,{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:dB(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:fB,tooltips:!1,disabled:e.readOnly===!0})}),l==="custom"&&d?O("div",{onFocus:()=>{u.current={value:o,shares:YF(Rp(i,a),a)}},onBlur:()=>{u.current=null},children:O(HQ,{label:c(An),count:a,value:Rp(i,a),onChange:p,readOnly:e.readOnly===!0})}):null]})})}function dB(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 jNe(){return Ot(WE,O(xQ,{}),hy,hy[0].value)}function KNe(){return Rt("mobile",ZS(An,O(lw,{}),BE.map(e=>({label:e.label,value:e.value,picture:O("span",{className:"sf-gallery-pic sf-share-pic",children:dB(e.weights).map((o,t)=>O("i",{style:{gridColumn:`span ${o}`}},t))})})),NE,{columns:2,cell:fB}))}var fB={width:"5.75rem",height:"3.25rem",words:!0};function VNe(){return sw("share",Mee(),ZF)[uw("share")]}function $ee(){return Rt("mobile",$o(py,O(WF,{}),Lp,FE,1,Lp,"",{clear:{phoneFollows:!1,hint:Lp}}))}var RF={read:e=>e.phoneRow,write:(e,o,t)=>({phoneRow:t}),fieldKey:()=>"phoneRow",ownField:!0};function YNe(){let e=$o(py,O(WF,{}),uy,DE,1,uy,"",{clear:{emptyLabel:"Auto"}}),o=sw("columns",e,{...RF,tablet:ZF.tablet}),t=sw("columns",e,RF,{phoneRow:$ee()});return{...o,phoneRow:t.phoneRow}}function qNe(e,o,t,r,a,n,s){return{type:"custom",render:({value:i,onChange:l,name:d})=>O(Uee,{label:e,min:o,max:t,step:r,fallback:a,role:n,value:i,onChange:l,name:d??"",length:s})}}function Uee({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:!fF(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(dQ,{})}}),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 LF(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 pB(){return{_gCellWidth:Sr("Cell size"),gridSpan:Ot("Positions",O(lw,{}),LF(Nu,"position","positions"),""),gridRowSpan:Ot("Rows tall",O(cw,{}),LF(Cb,"row","rows"),"")}}function bo(){let e=null,o=null;try{e=DF(Iw),o=Km(t=>t).selectedItem}catch{o=null}return e??o?.props??{}}var Iw=QJ(null);function zee({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 Gee({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 jee(e){return Iee(e.label,{icon:e.icon,min:e.min,max:e.max,step:e.step,unit:e.unit,unsetLabel:"Follows Desktop",unsetMark:O(Gee,{label:e.label,desktopKey:e.desktopKey,fallback:e.fallback,unit:e.unit}),restTrack:o=>O(zee,{...o,desktopKey:e.desktopKey,fallback:e.fallback})})}var Kee={Top:"Padding top",Bottom:"Padding bottom",Left:"Padding left",Right:"Padding right"},Vee={Top:dw,Bottom:zF,Left:GF,Right:jF},Yee=e=>{let o=Vee[e];return O(o,{})};function uB(e={}){let o=e.keys?.top??"sectionPaddingTop",t=e.keys?.bottom??"sectionPaddingBottom",r=e.group!==!1,a=w=>Kee[w],n=w=>$o(a("Top"),O(dw,{}),Ut.min,Ut.max,Ut.step,w,"px"),s=(w,S,v,b=Ut)=>Rt("mobile",jee({label:a(w),icon:Yee(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(zF,{}),Ut.min,Ut.max,Ut.step,l,"px")),...h?{[Zi(t)]:s("Bottom",t,l)}:{}},...e.sides?{[d]:I($o(a("Left"),O(GF,{}),u.min,u.max,u.step,p,"px")),...h?{[Zi(d)]:s("Left",d,m,u)}:{},[f]:I($o(a("Right"),O(jF,{}),u.min,u.max,u.step,p,"px")),...h?{[Zi(f)]:s("Right",f,m,u)}:{}}:{}})}function XNe(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=uF,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(vQ,{}),action:t?O(see,{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(qee,{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(Qee,{view:a,onClear:()=>n(void 0)}))),...ua("sectionHeightValue",t),...ua("sectionHeightUnit",r)})}function qee({value:e,onChange:o,view:t,badge:r,fill:a=!1}){let n=bo(),{mode:s,number:i,unit:l}=Xee(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(Jee,{view:t,mode:s,menu:l}):null]})})}function mB(e,o){return e==="phone"&&nu(o)?xO(o):uO(o)}function qm(e,o){return e==="desktop"||(e==="tablet"?nu(o):hO(o))?null:mB(e,o)}function Xee(e,o,t){let r=(a=>dO.includes(a))(t)?t:qm(e,o)?.mode??"auto";return{mode:r,number:r!=="auto"&&r!=="fill",unit:r==="fixed"}}function Zee(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 FF(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=Zee(e,s,o,n);return i===null?{[ve(o,e)]:n}:Object.keys(i).length?i:null})}}function Jee({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}=FF(e,"sectionHeightValue",i(n)),{write:f}=FF(e,"sectionHeightUnit",i(s)),u=o==="screen"?"%":a[s],p=(l?l.unit:u)==="%"?"%":"px",m=p==="%"?pO:fO,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 Qee({view:e,onClear:o}){let t=bo(),r=qm(e,t)===null,a=e==="phone"&&nu(t),n=mB(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(soe,{value:s,onChange:i,labelId:`${l??d??"stickTop"}-label`,view:n,intro:o})}),r=n=>({type:"custom",render:({value:s,onChange:i})=>O(roe,{value:s,onChange:i,view:n,intro:o})}),a=n=>({type:"custom",render:({value:s,onChange:i})=>O(aoe,{value:s,onChange:i,view:n,intro:o})});return{_gStick:Sr(LL,{dot:o?toe:zi}),...ua("stickTop",t),...ua("stickTopDistance",r),...ns(rd,"stickTopDistance",{tablet:!0,phone:!0}),...e.screens?ua(Ir,a):{},...o?{}:{[es]:eoe()},...o||e.above===!1?{}:{[Ja]:ooe()}}}function eoe(){let e=Ot(FL,O(dw,{}),BL,NL);return Rt("desktop",{...e,render:o=>{let t=e.render({...o,value:ES(o.value),onChange:r=>o.onChange(ML(r))});return iw(t,{hint:c(DL)})}})}function ooe(){let e=xB(HL,!1,O(KF,{}),WL);return Rt("desktop",{...e,render:o=>e.render({...o,onChange:t=>o.onChange(t===!0?!0:void 0)})})}var toe={any:[zi,km]};function hB(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=noe(e,d,l,o,r),u=f===null?{[ve(o,e)]:l}:f;return Object.keys(u).length?{...u,...a?.(l)??{}}:null}):t}}function roe({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}=hB(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 aoe({value:e,onChange:o,view:t,intro:r}){let{followed:a,write:n}=hB(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 noe(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 soe({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(KF,{})),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 BF="e.g. about";function al(){return{_gAnchor:Sr("Anchor"),anchor:ds({control:"plainText",label:"Name",placeholder:BF},{type:"custom",render:({value:e,onChange:o})=>O(wA,{value:e,onChange:o,nameBox:(t,r)=>O(cs,{value:t,onChange:r,label:"Name",placeholder:BF,hideable:!1,markup:!1})})})}}function ZNe(e,o,t){return{type:"custom",render:({value:r,onChange:a,id:n,name:s})=>{let i=`${n??s??e}-datetime`,l=Date.parse(typeof r=="string"?r:"");return O(So,{label:c(e),icon:o,htmlFor:i,hint:t===void 0?void 0:c(t),children:O(NQ,{id:i,value:Number.isFinite(l)?new Date(l):null,onChange:d=>a(d?d.toISOString():"")})})}}}function xB(e,o,t,r){return{type:"custom",...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 gB(){return{type:"custom",render:({value:e,onChange:o,id:t,name:r})=>{let a=`${String(t??r??"pageBackground")}-colour`;return O(ioe,{label:"Background",icon:O(bQ,{}),id:a,value:e,shown:Eb(e),onChange:o})}}}function JNe(e,o,t){return{type:"custom",render:({value:r,onChange:a})=>O(xt,{label:c(e),icon:t,value:r||o,onChange:a})}}function ioe({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 QNe(){return{type:"custom",render:e=>{let{value:o,onChange:t}=e,r=e;return O(loe,{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 PA(o,t).map(n=>({label:n.label,color:n.value,selected:a===n.name,onPick:()=>r(n.name)}))}function loe({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(DA),[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(coe,{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 coe({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 doe(e,o,t){if((e?.content??[]).some(n=>n?.props?.id===o))return Wr(t);let r=HA(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?doe(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 eDe(){return hd()}var IB={top:O(mQ,{}),right:O(uQ,{}),bottom:O(fQ,{}),left:O(pQ,{})};function yB(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:ZQ(c,{label:e,value:m,onChange:p,points:f})})}}}function oDe(e,o,t){return{type:"custom",options:o,render:({value:r,onChange:a,field:n})=>O(pR,{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 tDe(e,o={}){return{type:"custom",render:({value:t,onChange:r})=>{let a={value:t,onChange:r,...o};return O(e,{...a})}}}var foe={image:"Image",video:"Video"},rDe=Mn.map(e=>({label:foe[e],value:e}));function aDe(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(uoe,{label:e,icon:o,options:r,onChange:a})}}function poe(e,o,t){let r=s1(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=n1(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 uoe({label:e,icon:o,options:t,onChange:r}){let a=ss(),n=a?.values??{},s=Fc(n),i=DF(oQ),l=Eu(i?.docId??null),d=null;try{d=Km(u=>u.appState.data)}catch{d=null}let f=k1(a?.id,d,l);return O(So,{label:c(e),icon:Ji(o),hint:poe(n,f,i?.hasUnsavedEdits??!1),children:cd({options:t,value:s,onChange:r,ariaLabel:e})})}function nDe(e,o,t,r={}){let a={type:"custom",[aQ]:!0,render:({value:n,onChange:s,name:i})=>O(dR,{value:n||"",onChange:s,fieldKey:i,label:e,accept:o,placeholder:t,focusKey:r.focus,focusWhen:r.focusWhen,frameKey:r.frame}),...r.focus?{focusKey:r.focus}:{},...r.focusWhen?{focusWhen:r.focusWhen}:{}};return r.focus?Rt("each",a):a}var sDe={HeroSingle:[Hn.image],HeroSlide:["videoFrame","videoFramePhone"],ContactLocations:["locations[].photo"],ProcessSteps:["steps[].image"]};function moe(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 iDe({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(qQ()).geocode,d=MF(),f=(u,p)=>o({...r,[u]:p??void 0});return ya(Sa,{children:[O(So,{label:c(t),icon:O(TF,{}),action:l?O(pw,{content:c("Find from the address (OpenStreetMap)"),children:O(qF,{"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(SQ,{})})}):void 0,children:l&&r.status?O(CA,{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:moe(r)}):null}),O(So,{label:c("Enter by hand"),labelId:d,icon:O(hQ,{}),action:O(fw,{checked:!!r.manual,onChange:u=>o({...r,manual:u}),ariaLabelledBy:d})}),r.manual&&O(So,{label:c("Latitude, longitude"),icon:O(TF,{}),children:ya("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:8,width:"100%",minWidth:0},children:[O(EF,{value:typeof r.lat=="number"?r.lat:null,onChange:u=>f("lat",u),min:-90,max:90,step:1e-4,placeholder:c("Latitude")}),O(EF,{value:typeof r.lng=="number"?r.lng:null,onChange:u=>f("lng",u),min:-180,max:180,step:1e-4,placeholder:c("Longitude")})]})})]})}function hoe(e,o){return o===null||o<0||o>=e.length?"":e[o]?.text??""}function xoe(e,o,t){let r=e.map(a=>({text:a?.text??""}));return o===null||o<0||o>=e.length?r:r.map((a,n)=>n===o?{text:t}:a)}function goe(e,o,t){if(t===null||t>=o.length)return null;for(let r=0;r<t;r+=1)if(e[r]!==o[r])return null;return e[t]!==o[t]&&o.includes(e[t])||e[t]!==o[t]&&o.length!==e.length?null:t}var ww={label:"Ticker items",icon:O(yQ,{})};function lDe(e,o,t,r){return{type:"custom",[ba]:{control:"textList",label:e,placeholder:t,itemKey:"text",rendering:r},...on({},{...eB.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=goe(t,u,i);p===null&&(s.current=null),l(p),a(d(u))};return O(RQ,{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:hoe(t,i),onChange:u=>a(xoe(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 bB(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 SB(e){return{_gCards:Sr("Cards"),coverIndex:Ot("Cover image",O(IQ,{}),iR,String(1),e?.coverHint??"A card's opening picture \u2014 a card pinned to a finish keeps its own."),imageBackground:gee("Image background",Lm),cardImage:CB()}}function cDe(){return{outline:Ot("Card outline",O(wQ,{}),sR,nR),indexBadge:Ot("Card number",O(gQ,{}),jb,Gb),showBadge:xB("Product badge",!0,O(kb,{noun:"tag"}))}}function wB(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(Ioe,{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 Ioe({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 dDe(e,o="display"){let t=Zi(o);return{[o]:Rt("desktop",{type:"custom",render:({value:r,onChange:a})=>O(nl,{parts:e,changed:GA(r),shown:n=>Ju(r,n),onPress:(n,s)=>a(KA(r,n,s)),onReset:()=>a(void 0)})}),[t]:Rt("mobile",{type:"custom",render:({value:r,onChange:a})=>O(yoe,{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(iQ,{}),changed:o,action:O(et,{words:ce()?.panel,label:i,changed:o,detail:n,onReset:a}),children:O(LQ,{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 yoe({parts:e,desktopKey:o,value:t,onChange:r}){let a=bo()[o];return O(nl,{parts:e,changed:jA(t),shown:n=>Bb(a,t,n),onPress:(n,s)=>r(VA(t,n,s)),onReset:()=>r(om),detail:c("the same as Desktop")})}function CB(e=q1){return $o("Card image",O($F,{}),at,Ha,Y1,at,e,{clear:{hint:at},hint:"Rounds the picture. The card's own corner is in Styles."})}function boe(){return ns(Ib,"cardImage")}function fDe(){return{cardImage:CB(Ib),...boe()}}function pDe(){return gw({sidesKey:"cornerSides",row:Z1,step:J1,useFollowed:()=>at,mark:O(Soe,{label:Q1}),hint:c("Rounds the picture. Left alone it stays square.")})}function Soe({label:e,changed:o=!1,onReset:t=()=>{}}){return O(et,{words:ce()?.panel,label:c(e),changed:o,onReset:t})}function uDe(){return{type:"custom",render:({value:e,onChange:o})=>O(koe,{value:typeof e=="string"?e:"",onChange:o})}}var NF="own";function mDe(){let e=[{value:NF,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(UF,{}),e,NF,{columns:2,cell:vF}))}function woe({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:sA(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 Coe={width:"3.5rem",height:"2.5rem",words:!1},voe=200;function koe({value:e,onChange:o}){let[t,r]=fd(null),[a,n]=fd(4),s=dd(null);eQ(()=>{let m=s.current;if(!m||typeof ResizeObserver!="function")return;let h=()=>n(m.getBoundingClientRect().width>=voe?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:CF(u,c("Not chosen"))},...d.map(m=>({value:m,label:c($c[m].label),icon:O(woe,{layout:$c[m],width:40})}))];return O(So,{label:c("Layout"),icon:O(UF,{}),value:i?c(i.label):void 0,children:O("div",{ref:s,style:{flex:"1 1 auto",minWidth:0},children:O(VF,{label:c("Layout"),value:l,options:p,onChange:o,columns:a,cell:Coe,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(PQ,{options:[{id:"all",label:c("All")},...rA.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 Uoe}from"efficient-easel/draw";import{decodePartId as Id,encodePartId as qr}from"efficient-easel/draw";import{LINK_FIELD_MARKER as LB,SCAFFOLD_FIELD_MARKER as AB,TEXT_FIELD_MARKER as eh}from"efficient-easel/draw";import{readHidable as FB}from"efficient-easel/draw";import{SCALAR_TEXT_CONTROLS as Roe}from"efficient-easel/draw";import{TEXT_FIELD_MARKER as Aoe}from"efficient-easel/draw";import{TEXT_FIELD_MARKER as vB}from"efficient-easel/draw";import{readHidable as kB}from"efficient-easel/draw";import{SCALAR_TEXT_CONTROLS as Toe}from"efficient-easel/draw";var Poe=Toe,Eoe=["text","textarea"],_oe=["textarea","plainTextarea"];function Ooe(e){return!e||typeof e!="object"?null:e[vB]?.control??null}function sl(e){let o=Ooe(e);return o&&Poe.includes(o)?o:null}function Xm(e){return _oe.includes(e)}function TB(e){return!e||typeof e!="object"?void 0:e[vB]?.placeholder}function Zm(e){return kB(e).text}function vw(e,o,t){return Eoe.includes(e)?{text:t,hidden:kB(o).hidden}:t}function PB(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[Aoe]}function kw(e){if(!e||typeof e!="object")return null;let o=e.arrayFields;return o&&typeof o=="object"?o:null}function EB(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 _B(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 OB(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 BB(e,o){return`${e}[${o}]`}var NB="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 RB=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}=FB(o);a?t.push(a):r.placeholder&&t.push(r.placeholder);return}if(!e[LB]){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[LB]?!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 DB(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[AB]!==void 0&&Qm(s,s[AB],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 EB(s,o?.[a])){let h=rn(m);h.length<RB||(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<RB||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 Loe=Roe;function MB(e,o){if(!o||typeof o!="object"||Vn(e)||JA(o))return null;let t=o[eh];return!t||!Loe.includes(t.control)?null:t}function Aw(e,o){let t=MB(e,o);return t!==null&&t.identifier!==!0}function HB(e,o){if(!e)return[];let t=[];for(let[r,a]of Object.entries(e)){let n=MB(r,a);if(!n)continue;let{text:s,hidden:i}=FB(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")?bB(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?_B(r,a,n,e.kind,o):PB(r,a,e.kind,o);return s?(t(e.zone,e.index,{...e.node,props:s}),!0):!1}import{readHidable as UB}from"efficient-easel/draw";var Rw=e=>String(e+1).padStart(2,"0"),zDe=[{label:"01 \xB7",value:"two-digit"},{label:"1.",value:"plain"}],Lw="two-digit",WB=e=>e==="plain"?"plain":Lw,rh=(e,o)=>e==="plain"?`${o+1}.`:Rw(o);var Nw="Contents",Fw="Flex",$B="Text",Foe="numberForm",Boe="_contentsEntries",Noe="_kickerNumber",zB="data-sf-kicker-number",Doe=e=>UB(e).text.trim(),GB=e=>zn(e?.anchor),Bw=e=>String(e.props?.id??""),Moe=e=>!UB(e.props?.text).hidden&&!Ei(e.props)&&!ut(e.props),wd=e=>si(e);function jB(e){for(let o of wd(e))for(let t of o){if(pa(t.props??{}))continue;if(t.type===$B&&Moe(t))return t;if(t.type===$B)continue;let r=jB(t);if(r)return r}}function KB(e){return wd(e).some(o=>o.some(t=>t&&!pa(t.props??{})&&(t.type===Nw||KB(t))))}var VB=e=>e.type===Fw&&Kr(Fw,e.props?.direction)==="row";function YB(e){return wd(e).some(o=>o.some(t=>t&&!pa(t.props??{})&&(t.type===Nw||!VB(t)&&YB(t))))}function Hoe(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(VB(n)&&YB(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&&GB(n.props)&&s&&!KB(n)){s.push({box:n,kicker:jB(n)});continue}for(let i of wd(n))t(i,a)}};return t(e,{inRow:!1,open:null,waiting:null}),o}function Woe(e){return e.map(o=>({label:o.kicker?na(Doe(o.kicker.props?.text)):"",anchor:GB(o.box.props)}))}function Dw(e){let o=e?.length?Hoe(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,Woe(a.sections));let s=WB(a.contents.props?.[Foe]);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 eMe=e=>e.endsWith(".")?`${e} `:`${e} \xB7 `;function qB(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,[Boe]:u},d=!0);let p=f?a.get(f):void 0;return p&&(l={...l,[Noe]:p},d=!0),d?{...s,props:l}:s};return{...o,content:o.content.map(n)}}var zoe=`[${zB}]`,Goe=["bold","italic","underline","strike","link","sup","sub"],joe=["bullet","number"];function Ww(e,o){return e?[...Goe,...o?joe:[]]:[]}function XB(e,o){let t=Uoe(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=XB(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:zoe,offered:Ww(t.kind!=="plainText",n),write:s=>{let i=XB(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 ZB(e){let o=e.activeElement;return o?o.tagName==="IFRAME"||!!o.closest(".es-canvas"):!1}var Mw=null,Hw=new Set;function Koe(){return Mw}function Uw(e){if(e!==Mw){Mw=e;for(let o of Hw)o()}}function Voe(e){return Hw.add(e),()=>{Hw.delete(e)}}function JB(){return $oe(Voe,Koe,()=>null)}function QB(e,o){if(e.outer)return null;let t=o.getItemById(e.ownerId);if(!t)return null;let r=o_(t.type);return!r||to(t.props)?null:{node:t,rows:r}}function Joe(e,o){let t=QB(e,o),r=o.getItemById(e.nodeId);if(!t||!r)return null;let a=i_(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:Yoe(e.ownerId,Yr(t.rows,{index:e.index,rowKey:a}))}function sh(e,o){let t=Joe(e,o);return t?ah(t,o):null}function eN(e,o){return sh(e,o)?.value}function oN(e,o){let t=sh(e,o);return t?(t.write(e.text),!0):!1}function tN(e,o){let t=QB(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=qoe(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=Xoe(n,s,l);break}case"delete":i=Zoe(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 xbe,jsxs as cI}from"react/jsx-runtime";import{Fragment as gbe,useEffect as ZG,useMemo as JG,useRef as Ibe,useState as Ks}from"react";import{useScreenDocument as rj}from"efficient-easel/screen/components/ScreenDocumentContext";import{UiIcon as hP}from"efficient-easel/draw/client";import ybe from"efficient-easel/screen/components/SidePanelHead";import{jsx as Te,Fragment as ml,jsxs as gs}from"react/jsx-runtime";import{useEasel as GD,useRootFields as Fae}from"efficient-easel/easel";import{Inspector as Bae}from"efficient-easel/fields";import{SettingsGroup as Nae}from"efficient-easel/panel";import{useEffect as Dae,useRef as Mae,useState as HC}from"react";import{jsx as fs,Fragment as tte,jsxs as rte}from"react/jsx-runtime";import{useState as sN}from"react";import{SettingsDefaultReset as ate,SettingsField as nte}from"efficient-easel/panel";import{useEaselStrings as ste}from"efficient-easel/strings";import{AddIcon as ite}from"efficient-easel/icons";import{Button as lte}from"efficient-shell/ui";import{iconOf as cte,noGlyph as dte}from"efficient-easel/screen/lib/document/box-fields";import{jsx as ih,Fragment as Qoe,jsxs as rN}from"react/jsx-runtime";import{Button as aN,Dialog as ete}from"efficient-shell/ui";function ote(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 nN({count:e,onCancel:o,onConfirm:t}){return rN(ete,{open:!0,onClose:o,role:"alertdialog",size:"sm",title:c("Clear this site\u2019s colors?"),footer:rN(Qoe,{children:[ih(aN,{variant:"secondary",onClick:o,children:c("Cancel")}),ih(aN,{variant:"danger",onClick:t,children:c("Clear colors")})]}),children:[ih("p",{children:ote(e)}),ih("p",{className:"mt-2 font-medium",children:c("This cannot be undone.")})]})}var fte=dte("the row's whole content is an action; the gutter names a subject and this row has none \u2014 the button's label is the name GG, 2026-09-23"),pte="Reset color",ute={selected:0,themes:[]};function mte(e){e(ute)}function iN({value:e,onChange:o}){let t=e?.themes??[],r=t.length===0,a=ko(e),[n,s]=sN(!1),i=ste(),[l,d]=sN(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=g_.filter(S=>!p.has(S)).map(S=>I_(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 rte(tte,{children:[r?null:fs(nte,{label:c(pte),icon:cte(fte),labelId:"sf-theme-reset",action:fs(ate,{label:c("all theme colors"),words:i.panel,changed:!0,onReset:()=>s(!0)})}),n&&fs(nN,{count:t.length,onCancel:()=>s(!1),onConfirm:()=>{s(!1),mte(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(lte,{variant:"secondary",leftIcon:fs(ite,{}),onClick:w,className:"sf-theme-add",children:c("Add new theme")})]})}import{jsx as lh}from"react/jsx-runtime";import{SettingsDefaultReset as hte,SettingsField as xte}from"efficient-easel/panel";import{SquareIcon as gte}from"efficient-easel/icons";var Ite="Applies to panels, cards, inputs and buttons. Round things \u2014 color swatches, switches, status dots \u2014 stay round.",zw="Corners";function lN({value:e,onChange:o,length:t}){let r=e===null;return lh(xte,{label:c(zw),icon:lh(gte,{}),changed:!r,action:lh(hte,{words:ce()?.panel,label:c(zw),changed:!r,detail:c("the built-in corners"),onReset:()=>o(null)}),hint:c(Ite),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 yte,SettingsField as bte}from"efficient-easel/panel";import{IconPicker as Ste}from"efficient-shell/ui";import{ShadowIcon as wte}from"efficient-easel/icons";import{SHADOW_PREVIEW as Cte}from"efficient-easel/screen/lib/document/shadow-values";var Gw={none:"None",soft:"Soft",lifted:"Lifted"},vte="Applies to cards \u2014 products, brands, journal entries and filter cells. Round things like swatches and status dots are never shadowed.";function cN({value:e,onChange:o}){let t=e===null,r=e??Ly;return Cd(bte,{label:c("Card shadow"),icon:Cd(wte,{}),value:c(Gw[r]),changed:!t,action:Cd(yte,{words:ce()?.panel,label:c("Card shadow"),changed:!t,detail:c(Gw[Ly]),onReset:()=>o(null)}),hint:c(vte),children:Cd(Ste,{label:c("Card shadow"),value:r,options:F_.map(a=>({value:a,label:c(Gw[a]),icon:Cd("span",{className:"sf-shadow-chip border border-line bg-surface",style:{boxShadow:Cte[a]}})})),onChange:o})})}import{jsx as dN}from"react/jsx-runtime";import{ShadowIcon as kte}from"efficient-easel/icons";import{DEFAULT_SHADOW_COLOR as fN}from"efficient-easel/screen/lib/document/shadow-values";var Tte="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 pN({value:e,onChange:o}){let t=e===null;return dN(Vc,{label:c("Shadow color"),icon:dN(kte,{}),value:e??"",inherited:fN,resetTo:fN,onChange:o,onReset:()=>o(null),hint:c(Tte)})}import{jsx as dh}from"react/jsx-runtime";import{SettingsDefaultReset as Pte,SettingsField as Ete}from"efficient-easel/panel";import{AlignSeparateIcon as _te}from"efficient-easel/icons";function ch(e,o){return e==="tablet"?null:e==="mobile"?o.phone:o.desktop}var Ote="The space between the blocks inside a row, a grid or a box. Auto means each one keeps the spacing it already has.",Ate="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",uN=ji.Grid;function mN(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 hN({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?uN:i?nd(t)??uN:t;return dh(Ete,{label:c(jw),labelId:"sf-block-gap",icon:dh(_te,{}),changed:!n,action:dh(Pte,{words:ce()?.panel,label:c(jw),changed:!n,detail:s??c("each block's own spacing"),onReset:()=>o(null)}),hint:c(s===null?Ote:Ate),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 Rte,SettingsField as Lte,SettingsSegmented as Fte}from"efficient-easel/panel";import{HoverIcon as Bte}from"efficient-easel/icons";var Kw={none:di.none,lift:di.lift,highlight:aE},Nte="What a card does when a shopper points at it \u2014 or taps it, on a phone. Highlight is the effect your cards already use.";function xN({value:e,onChange:o}){let t=e===null,r=e??Fy;return fh(Lte,{label:c("Hover effect"),icon:fh(Bte,{}),value:c(Kw[r]),changed:!t,action:fh(Rte,{words:ce()?.panel,label:c("Hover effect"),changed:!t,detail:c(Kw[Fy]),onReset:()=>o(null)}),hint:c(Nte),children:fh(Fte,{options:B_.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 Dte,SettingsField as Mte,SettingsSegmented as Hte}from"efficient-easel/panel";import{DropIcon as Wte}from"efficient-easel/icons";var Vw="Photography",gN={shot:"As shot",mono:"Black and white"},Yw=[{grayscale:!1,label:gN.shot},{grayscale:!0,label:gN.mono}],$te="Black and white photographs return to color on hover. Wheels and tyres keep their real finish either way.";function IN({value:e,onChange:o}){let t=e===null,r=e??!1;return ph(Mte,{label:c(Vw),icon:ph(Wte,{}),value:c(Yw.find(a=>a.grayscale===r).label),changed:!t,action:ph(Dte,{words:ce()?.panel,label:c(Vw),changed:!t,detail:c(Yw.find(a=>!a.grayscale).label),onReset:()=>o(null)}),hint:c($te),children:ph(Hte,{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 Ute}from"react";import{SettingsField as zte,SettingsSwitch as Gte}from"efficient-easel/panel";import{ShareIcon as jte}from"efficient-easel/icons";var Kte="Share button",Vte="On every blog post.";function yN({value:e,onChange:o}){let t=Ute();return qw(zte,{label:c(Kte),labelId:t,icon:qw(jte,{}),action:qw(Gte,{checked:e===!0,onChange:o,ariaLabelledBy:t}),hint:c(Vte)})}import{usePreviewDevice as WC}from"efficient-easel/draw/client";import{jsx as uh}from"react/jsx-runtime";import{SettingsDefaultReset as Yte,SettingsField as qte}from"efficient-easel/panel";import{PaddingXIcon as Xte}from"efficient-easel/icons";var Xw="Side space",bN=lt.default,Zte="The room left at the left and right edge of every page.";function SN(e,o){return ch(e,{desktop:{key:"site_gutter",value:o.gutter,unsetPx:bN,bounds:lt},phone:{key:"site_gutter_phone",value:o.phone,unsetPx:ym(o.gutter,o.gutterUnit),bounds:xr}})}function wN({value:e,onChange:o,unsetPx:t=bN,bounds:r=lt,length:a,restsOn:n=t}){let s=e===null;return uh(qte,{label:c(Xw),labelId:"sf-side-space",icon:uh(Xte,{}),changed:!s,action:uh(Yte,{words:ce()?.panel,label:c(Xw),changed:!s,detail:`${t}px`,onReset:()=>o(null)}),hint:c(Zte),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 G2e,SettingsBackgroundWidth as Jte,SettingsContentWidth as Qte}from"efficient-easel/panel";var ere="Background width",Jw="Content width";var mh=e=>c(rs[e==="content"?"page":"full"]),CN="The width of every section's background.",vN="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(Jte,{value:e,changed:o,detail:t,onChange:r,onReset:a,hint:n?c(n):void 0,labelId:s,words:{label:c(ere),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(Qte,{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 yD}from"react/jsx-runtime";import{TextStyleItem as nae,TextStylesGroup as sae}from"efficient-easel/text-styles";import{jsx as Qre}from"react/jsx-runtime";import{useState as eae}from"react";import{TextStylesList as oae}from"efficient-easel/text-styles";import{usePreviewDevice as tae}from"efficient-easel/draw/client";import{defaultTextStyles as tD,textStyleCaseCss as Vre}from"efficient-easel/text-styles/model";import{resolveViewValue as rD}from"efficient-easel/draw";import{VIEW_DESKTOP_MIN as kN,VIEW_TABLET_MIN as TN}from"efficient-easel/draw";var gh=.02,PN=`(min-width: ${Br}px) and (max-width: ${kN-gh}px)`,vd=`(max-width: ${Br-gh}px)`,Ih=`(min-width: ${TN}px) and (max-width: ${kN-gh}px)`,yh=`(max-width: ${TN-gh}px)`;import{textStyleCaseCss as ore,textStyleCaseOfCss as tre,viewKeyAt as FN}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",rre=/^(heading|body)-[1-7]$/;function wa(e){return typeof e=="string"&&rre.test(e)}var wh={heading:"heading-1",heading2:"heading-2",heading3:"heading-3",body:"body-1",label:"body-5"};function are(e){if(!e)return null;for(let[o,t]of Object.entries(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 nre=[400,500,600,700],Td=["left","center","right","justify"],Qw=5,eC=1e3,sre=-5,ire=10,iC=0,lC=64,cC=2,EN={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}},lre=.05,cre=.01,dre=["line","letter"],fre=.5,pre=2.5,ure=-1,mre=1,hre=0,xre=400,gre=[...new Set(Object.values(ci))];function BN(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 NN(e){return cl(e,Pd)}function ms(e,o){return bh(e,Pd,o)}function DN(e,o,t){return Sh(e,Pd,o,Ire(t).length?t:null)}function Ire(e){return Object.entries(e).filter(([,o])=>o!==void 0)}function yre(e){return dre.includes(e)}var kd=(e,o,t)=>Math.min(t,Math.max(o,e)),bre=["sizeUnit","sizeUnitTablet","sizeUnitPhone"];function oC(e){let o=FN("sizeUnit",e),t=bre.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"},MN=Object.values(Kt);function Xr(e,o){return Pe(e[Kt[o]])}function Sre(e,o,t={}){if(MN.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(yre(e)){let r=Math.round(Number(o));return!Number.isFinite(r)||r===0?null:kd(r,sre,ire)}if(e==="lineHeight"){let r=Number(o);return Number.isFinite(r)?us(kd(r,fre,pre),3):null}if(e==="letterSpacing"){let r=Number(o);return Number.isFinite(r)?us(kd(r,ure,mre),4):null}if(e==="paragraphSpacing"){let r=Math.round(Number(o));return!Number.isFinite(r)||r<=0?null:kd(r,hre,xre)}if(He(EN,e)){let{min:r,max:a}=EN[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 wre=["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 wre){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 MN)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"&&gre.includes(l);return i(o)&&s(t)&&(r===void 0||i(r))&&(a===void 0||s(a))&&(n===void 0||Cre(n,t))}function Cre(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 HN({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 vre=[["font","role"],["font","fontRole"],["role","textStyle"],["line","lineHeight"],["letter","letterSpacing"]];function kre(e){let o=[];for(let[t,r]of vre)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:Sre(t,r,a);if(n===null)delete a[t];else{a[t]=n;for(let s of kre(t))delete a[s]}return DN(e,o,a)}function WN(e,o){return DN(e,o,{})}function Tre(e){return tre(e)??"none"}function Pre(e){return ore(e)??""}var _N={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 Ere(e,o){return aa(e.role)||(o?.blockDrawsStyle?null:are(e.textStyle))}function Ed(e,o){return e==="Text"&&o==="text"}var _re={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 Ore(e){let o=ci[e],t=$(_re,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(Are+e.line*lre,3)),typeof e.letterSpacing=="number"?o.letterSpacingEm=e.letterSpacing:e.letter&&(o.letterSpacingEm=us(e.letter*cre,4)),o}var Are=1,ps="--sf-part-para";function Rre(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=HN(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 Lre(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 $N(e,o){if(o==="desktop")return;let t=dl(e);return(o==="mobile"?Ch(t):void 0)??t.align}function Fre(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(Fre(e,o),kh,t)}function uC(e){return FN("size",e)}function UN(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 zN(e,o){let t=uC(o);if(!He(e,t))return e;let r={...e};return delete r[t],r}function GN(e,o,t){let r=pC(zN(e,o),o,t);return{fontFamily:r.fontFamily,fontSize:r.fontSize}}function mC(e,o,t){e=dl(e);let r=Ere(e,t),a=_d(e),n=e.size?Me(e.size,Xr(e,"size")):e.sizeToken?HN(e.sizeToken):r?Ore(r):"";return{fontFamily:e.font?Mre(e.font):e.fontRole?`var(${_N[e.fontRole]})`:r?`var(${_N[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:Pre(e.case),textAlign:e.align??"",paddingTop:ON(e.padding,Xr(e,"padding")),paddingBottom:ON(e.padding,Xr(e,"padding")),color:Bre(e.color),fontStyle:e.italic===!0?"italic":e.italic===!1?"normal":""}}var Bre=e=>Fi(e),ON=(e,o)=>e===void 0?"":Me(e,o),us=(e,o)=>Number(e.toFixed(o));function jN(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:Nre(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:Dre(e.textAlign),case:Tre(e.textTransform),paddingPx:Number.isFinite(n)?Math.round(n):0}}function Nre(e){return Number.isFinite(e)?nre.reduce((o,t)=>Math.abs(t-e)<Math.abs(o-e)?t:o):400}function Dre(e){for(let o of Td)if(o===e)return o;return e==="end"?"right":"left"}function KN(e,o){let t=AN(e);if(!t)return"";for(let r of Na)if(AN(o(r.cssVar))===t)return r.key;return""}var AN=e=>(e.split(",")[0]??"").replace(/["']/g,"").replace(/\s+/g," ").trim().toLowerCase();function Mre(e){let o=li(e);return o?`var(${o.cssVar})`:""}function VN(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=$re,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))Ure(l,I,w),w&&(h=!0);if(m||tC.some(I=>p[I]))for(let I of Hre(l,a))for(let w of tC)I.style[w]=p[w]??"";h&&(i+=1)}return i}function Hre(e,o){let t=rn(e.textContent??""),r=[],a=e;for(let n=0;n<Wre&&o(a);n+=1){let s=a.parentElement;if(!s||rn(s.textContent??"")!==t)break;r.push(s),a=s}return r}var Wre=8;function $re(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 YN(e){return wa(e?.textStyle)||!!e?.role||typeof e?.size=="number"&&e.size>0}function qN(e,o,t){if(!e||typeof e!="object")return{};let r=Np(e.role,o,ci)??{},a=o.sized?IC(zN(e,t),t):{};return{...r,...a}}function XN(e,o,t){t.fontFamily&&e.fontFamily===t.fontFamily&&(e.fontFamily=o.fontFamily),t.fontSize&&e.fontSize===t.fontSize&&(e.fontSize=o.fontSize)}function Ure(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?.(RN,""):a.removeAttribute?.(RN))}var RN="data-sf-part-para",Th=Object.keys(mC({},kh)),rC=new Set(["color","overflowWrap",ps,"fontStyle"]),tC=Th.filter(e=>!rC.has(e));function ZN(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(!zre(u))continue;let p=LN(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 LN(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 LN(e,o,t,r,a){let n=mC(t,kh,{blockDrawsStyle:r}),s=Lre(t),i=Rre(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:Gre(e,o),declarations:n,...Object.keys(s).length?{tablet:s}:{},...Object.keys(i).length?{phone:i}:{},...l?{textStyle:l}:{},...a?{motion:a}:{}}}function zre(e){return e.startsWith("@")}function yC(e,o){return e?.kindRules.get(o)??null}function Gre(e,o){let t=r=>r.replace(/[^A-Za-z0-9_-]+/g,"-");return`${t(e)}~${t(o)}`}function bC(e){return e?{tablet:PN,phone:vd}:{tablet:Ih,phone:yh}}function JN(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])=>`${jre(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 jre=e=>e.replace(/[A-Z]/g,o=>`-${o.toLowerCase()}`);function QN(e,o){if(!e)return null;let t=rn(o),r=e.rules.get(t);if(r)return r;if(t.length<Kre||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 Kre=8;function eD(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,aD=["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 rD("textSize",o,e.sizeTablet,e.sizePhone,r)[t]}var Yre=[["lineSpacing","lineHeight","line"],["letterSpacing","letterSpacing","letter"]];function wC(e){for(let[o,t,r]of Yre)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 aD)e[t]!==void 0&&(o[t]=e[t]);return o}function kC(e,o){let{auto:t,...r}=e,a=new Set(o??[]),n=aD.filter(s=>a.has(s)&&e.values[s]===void 0);return n.length?{...r,auto:n}:r}function nD(e){let o=e.fonts,t=e.sizes,r=e.typography,a=$_(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 tD().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 sD(e){return TC(e)??[]}function iD(e){return TC(e)??tD().map(({id:o,kind:t,name:r})=>({id:o,kind:t,name:r,values:{}}))}function Ca(e,o){let t=nD(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??{},oD=["heading-1","heading-2","heading-3"];function lD({saved:e,old:o,cur:t,next:r,sizeOf:a,panelView:n="desktop"}){let s=nD(o),i=iD(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=qre([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")&&oD.includes(p))&&Nn(u)!=="normal"){for(let p of oD){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 cD(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)),dD=(e,o)=>fl.indexOf(e)<fl.indexOf(o)?o:e;function fD(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=dD(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 qre(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,dD(d,t));i[ve("letterSpacing",d)]=p?pl(u/p,4):0}}return{...s,values:Zr(i)}})}function PHe(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:z_(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 pD(e){let o=[];for(let t of e){let r=t.values,a=`.${eD(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=Vre(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(...Xre(t,s,a,n))}return o.join(`
|
|
4
|
+
`)}function Xre(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=rD("textSize",a.size,a.sizeTablet,a.sizePhone,pi()),u=Zre[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 Zre={"heading-1":"headingLarge","heading-2":"headingMedium","heading-3":"headingSmall","body-1":"body","body-5":"label"};function uD(e){return e!==!0&&e!==!1?"":`em.text-accent { font-style: ${e?"italic":"normal"} }`}function mD(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 hD(e){return Object.keys(EC(e)).length>0}function xD({saved:e,old:o,styleId:t,values:r}){let a=iD(e);return{saved:Jre(a,t,r),old:o}}function Jre(e,o,t){return e.map(r=>r.id===o?kC({...r,values:Zr({...r.values,...t})},r.auto):r)}var gD=["font","color","size","weight","emphasis","lineSpacing","letterSpacing","paragraphSpacing","letterCase","largestSize"],rae=["size","lineSpacing","letterSpacing","letterCase"],aae=500,_C=Na.map(e=>({value:e.key,label:e.label,family:`var(${e.cssVar})`,italic:e.italicLoaded}));function ID({saved:e,old:o,colours:t,colourNameOf:r,sizeOf:a,onChange:n,openId:s,onOpenChange:i,readOnly:l=!1,withoutSize:d=!1}){let f=tae(),[u,p]=eae(null),m=Ca(e,o),h=Ci(f),I=fD(m,a,h);return Qre(oae,{styles:I,onChange:w=>n(lD({saved:e,old:o,cur:I,next:w,sizeOf:a,panelView:h})),fonts:_C,colours:t,colourNameOf:r,settings:d?gD.filter(w=>w!=="size"):gD,auto:rae,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=aae),v}})}var bD=["font","size","weight","emphasis"],iae=500;function lae({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 cae(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 SD(e){let{headingWeight:o,open:t,onOpenChange:r,onChange:a,withoutSize:n=!1}=e,s=lae(e);return yD(sae,{label:c("Emphasis"),children:yD(nae,{style:s,fonts:_C,settings:n?bD.filter(i=>i!=="size"):bD,auto:["size"],fallback:()=>({weight:o??iae}),open:t,onOpenChange:r,onChange:i=>cae(s,i).forEach(a)})})}import{viewKeyAt as TD}from"efficient-easel/draw";import{shownUnitAt as hae,unitKeyOnWrite as xae}from"efficient-easel/screen/lib/content/length-units";import{convertRowLength as dae,rowUnits as fae,unitPickPatch as pae}from"efficient-easel/screen/lib/content/length-units";import{viewKeyAt as uae}from"efficient-easel/draw";var mae=["cornerRadius","siteWidth","siteGutter","siteGutterPhone","blockGap","blockGapPhone"],Eh={cornerRadius:{number:"corner_radius_px",kind:"radius",grid:R_,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:m_[`${e}Unit`]}}function wD(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:dae(o,i,l,s,{kind:a},n)}function CD(e,o,t,r){let{number:a,unit:n}=_h(e),s=pae({[a]:o},i=>Oh(e,i,t,r),n,Pe(r),"px");return{[a]:s[a],[n]:s[n]??null}}function vD(e,o){let{kind:t,grid:r}=Eh[e];return u_(t,Pe(o),r)}function kD(e){return fae({kind:Eh[e].kind},Ia)}function OC(e,o){let t=uae(e,o);if(!mae.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=hae({n:a?.figure??null,u:a?.unit??null,[TD("n","mobile")]:o,[TD("u","mobile")]:l??null},{n:"n"},"u","mobile"),f=h=>s({[i]:h==="px"?null:h}),u=h=>{t(h);let I=xae(i,l,d,"px",h===null);i in I&&f(I[i]==null?null:Pe(I[i])),r(wD(e,h,d),h===null)},p=h=>{let I=Pe(h);if(I===d||(f(I),o===null))return;let w=CD(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:vD(e,d),units:{options:kD(e),onChange:p,label:c("Unit")}},write:u,rest:m,shown:h=>Oh(e,h,"px",d)}}import{EmptyState as Hae,SliderGroup as Wae,Tabs as $ae,Tooltip as s5e,tabButtonId as Uae,tabPanelId as zae}from"efficient-shell/ui";import{ContrastIcon as Gae,SettingsIcon as jae,TypeIcon as Kae}from"efficient-easel/icons";function PD(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 Pae,PaddingTopIcon as Eae}from"efficient-easel/icons";import{jsx as Ah}from"react/jsx-runtime";import{SettingsDefaultReset as gae,SettingsField as Iae,SettingsSegmented as yae}from"efficient-easel/panel";import{WidthIcon as bae}from"efficient-easel/icons";function ED({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(Iae,{label:d,labelId:a,icon:Ah(bae,{}),value:i?n:void 0,changed:!i,action:Ah(gae,{words:ce()?.panel,label:d,changed:!i,onReset:()=>t(void 0)}),hint:s,children:Ah(yae,{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 Sae}from"efficient-easel/draw";var wae=new Set(["Hero","HeroSingle","IntroBleed"]),_D={min:56,max:140,default:88},p4e={min:0,max:120,step:2,default:32},u4e=`var(--sf-header-h, ${_D.default}px)`,Cae="--sf-header-set-h",m4e="--sf-header-h",h4e=`var(${Cae}, ${_D.default}px)`,OD="sf-header-clearance",AD="sf-sticky-underheader";function Ad(e){return e?.find(o=>o?.type&&o.type!==AC)??null}function RD(e){let o=Ad(e)?.type;return!o||!wae.has(o)}function LD(e){return!RD(e)}function RC(e){return!!e?.some(o=>o?.type===AC)}function FD(e){return!e||e.length===0?!1:!e.some(o=>o?.type===AC||o?.type===Sae)}var vae=["auto","shared","own"],LC="auto",kae="topSpace",BD="data-top-space";function Tae(e){return vae.includes(e)?e:LC}function FC(e,o){let t=Tae(e?.props?.[kae]);return t==="own"?!0:t==="shared"?!1:RD(o)}function ND(e,o){return FC(e,o)?"own":null}function _ae(){return{type:"custom",render:({value:e,onChange:o})=>NC(ED,{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 Oae=[{label:"Auto",value:"auto"},{label:"Shared",value:"shared"},{label:"Its own",value:"own"}],T4e={pageBackground:gB(),topSpace:Ot("Top space",NC(Eae,{}),Oae,LC),widthChoice:_ae()},Rd=["pageBackground","topSpace","widthChoice"],Aae="Record type",BC=new Map,DD=-1;function Rae(e){DD!==fb()&&(BC.clear(),DD=fb());let o=cb(),t=o.some(a=>a.key===e)?"":e,r=BC.get(t);return r||(r=Ot(Aae,NC(Pae,{}),[...o.map(a=>({label:a.label,value:a.key})),...t?[{label:t,value:t}]:[]],$t),BC.set(t,r)),r}var MD=new WeakMap;function P4e(e,o){if(!Wc()||cb().length<2||Ou in e)return e;let t=Rae(Hc(o)),r=MD.get(e);if(r&&r.row===t)return r.fields;let a={[Ou]:t,...e};return MD.set(e,{row:t,fields:a}),a}import{previewFrame as Vae}from"efficient-easel/screen/lib/document/preview-dom";var HD="background";function WD(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 $D(e){return WD(e).filter(o=>o.key!==HD)}function UD(e){let o=WD(e).filter(t=>t.key===HD);return t=>{let r=Pt(t);return o.find(a=>a.key===r)?.value??r}}import{useEasel as Lae}from"efficient-easel/easel";function Rh({themeFromDocument:e,persist:o}){let{appState:t,dispatch:r}=Lae(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?O_: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(cD(T,y),D)},writeRoot:F}}import{pictureShadowColor as Yae}from"efficient-easel/screen/lib/document/shadow-values";var MC="sf-site-styles",qae="sf-site-styles-tabpanel",jD="text",hl="basics",zD="this-page-group",ul=[{id:hl,label:"Basics",icon:Te(jae,{})},{id:"theme",label:"Theme",icon:Te(Gae,{})},{id:"text",label:"Text",icon:Te(Kae,{})}];function Xae({themeFromDocument:e,persist:o}){let{appState:t,dispatch:r}=GD(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(iN,{value:e?i.theme:a,onChange:l})}function Zae({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??one(Jae[T.id]??"body")??Qae[T.kind],w=T=>l.write(T),S=$D(a),v=UD(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(ID,{saved:f,old:d,colours:S,colourNameOf:v,sizeOf:I,onChange:w,openId:t===DC?null:t,onOpenChange:r,withoutSize:e}),Te(SD,{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",Jae={"heading-1":"heading","heading-2":"heading2","heading-3":"heading3","body-1":"body","body-5":"label"},Qae={heading:32,body:14},ene={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 one(e){if(typeof document>"u")return null;let o=(Vae()?.contentDocument??document).querySelector(ene[e]);if(!o)return null;let t=parseFloat(getComputedStyle(o).fontSize);return Number.isFinite(t)?t:null}function tne({themeFromDocument:e,persist:o}){let{appState:t,dispatch:r}=GD(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(lN,{value:d,onChange:p=>{e?(u({cornerRadiusPx:p}),o({corner_radius_px:p})):f.write(p)},...e?{}:{length:f.length}})}function rne({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:CN}),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:vN,length:l.length})]})}function ane({persist:e}){let{siteGutter:o,siteGutterPhone:t,setSiteGutter:r,setSiteGutterPhone:a,siteLengthUnits:n}=fe(),s=SN(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(wN,{value:s.value,onChange:l.write,unsetPx:s.unsetPx,restsOn:l.shown(s.unsetPx),bounds:s.bounds,length:l.length}):null}function nne({persist:e}){let{blockGap:o,blockGapPhone:t,setBlockGap:r,setBlockGapPhone:a,siteLengthUnits:n}=fe(),s=mN(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(hN,{value:s.value,onChange:d.write,followsPx:d.rest,followsUnit:d.length.unit,length:d.length}):null}function sne({persist:e}){return gs(ml,{children:[Te(rne,{persist:e}),Te(ane,{persist:e}),Te(nne,{persist:e})]})}function ine(e){return{card_shadow:e}}function lne(e){return e===null?{shadow_color:null}:{shadow_color:Yae(e)}}function cne(e){return{hover_effect:e}}function dne({persist:e}){let{cardShadow:o,setCardShadow:t,shadowColor:r,setShadowColor:a,hoverEffect:n,setHoverEffect:s}=fe();return gs(ml,{children:[Te(cN,{value:o,onChange:i=>{t(i),e(ine(i),!0)}}),Te(pN,{value:r,onChange:i=>{a(i),e(lne(i),i===null)}}),Te(xN,{value:n,onChange:i=>{s(i),e(cne(i),!0)}})]})}function fne(e){return{photography_grayscale:e}}function pne({persist:e}){let{photographyGrayscale:o,setPhotographyGrayscale:t}=fe();return Te(IN,{value:o,onChange:r=>{t(r),e(fne(r),!0)}})}function une({persist:e}){return Te(ml,{children:Te(pne,{persist:e})})}function mne(e){return{share_button_on_posts:e}}function hne({persist:e}){let{shareButtonOnPosts:o,setShareButtonOnPosts:t}=fe();return Te(yN,{value:o,onChange:r=>{t(r),e(mne(r),!0)}})}function xl(){let{websiteName:e}=fe();return e?.trim()||RO}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=PD(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(Wae,{children:[Te(Ine,{activeId:I.id,onSelect:h}),gs("div",{id:zae(MC,I.id),className:qae,role:"tabpanel","aria-labelledby":Uae(MC,I.id),children:[m===hl&&gs(ml,{children:[Te(tne,{themeFromDocument:e,persist:d}),!e&&Te(dne,{persist:d}),!e&&Te(sne,{persist:d}),!e&&Te(une,{persist:d}),!e&&Te(hne,{persist:d}),Te(xne,{reveal:i,onRevealed:l})]}),m==="theme"&&Te(Xae,{themeFromDocument:e,persist:d}),m==="text"&&Te(Zae,{themeFromDocument:e,persist:d})]})]})}function xne({reveal:e,onRevealed:o}){let[t,r]=HC(!0),a=Mae(o);return a.current=o,Dae(()=>{if(!e)return;r(!0);let n=requestAnimationFrame(()=>{document.getElementById(zD)?.scrollIntoView({block:"start"}),a.current?.()});return()=>cancelAnimationFrame(n)},[e]),Te(Nae,{title:c("This page"),open:t,onToggle:r,id:zD,children:Te(gne,{})})}function gne(){let{fields:e,values:o,readOnly:t,onChange:r}=Fae(),a=Object.fromEntries(Rd.filter(n=>n in e).map(n=>[n,e[n]]));return Object.keys(a).length===0?Te(Hae,{variant:"none",icon:!1,message:c("This page has no look of its own to set.")}):Te(Bae,{fields:a,values:o,onChange:r,readOnly:t,tabs:!1,idPrefix:"this-page",ariaLabel:c("This page")})}function Ine({activeId:e,onSelect:o}){return Te("div",{className:"es-insp-tabs",children:Te($ae,{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 bbe}from"efficient-easel/chrome";import{Input as Sbe,PopupMenu as wbe,PopupMenuItem as QG,toast as ej}from"efficient-shell/ui";import{LayersTree as Cbe,TreeGroupLabel as vbe,TreeRow as oj,TreeRowAction as dI}from"efficient-easel/tree";import{AddIcon as kbe,DuplicateIcon as Tbe,PageIcon as Pbe,SettingsIcon as Ebe}from"efficient-easel/icons";import{PagesIcon as _be}from"efficient-easel/rail";import{useEaselHost as Obe}from"efficient-easel/screen/lib/host";import{useEaselSession as xP}from"efficient-easel/screen/lib/session-context";import{useCallback as Fh,useEffect as yne,useSyncExternalStore as bne}from"react";import{useScreenDocument as qD}from"efficient-easel/screen/components/ScreenDocumentContext";var KD=new WeakMap;function Ld(e){let o=KD.get(e);return o||(o={rows:null,loading:null,listeners:new Set},KD.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 VD(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 YD=()=>null,Sne=()=>()=>{};function Fd(){let{adapter:e,ready:o}=qD(),t=Fh(i=>{let{listeners:l}=Ld(e);return l.add(i),()=>l.delete(i)},[e]),r=Fh(()=>Ld(e).rows,[e]),a=bne(o?t:Sne,o?r:YD,YD);yne(()=>{if(!o)return;let i=Ld(e);i.rows===null&&!i.loading&&VD(e)},[e,o]);let n=Fh(()=>o?VD(e):Promise.resolve(),[e,o]),s=Fh(i=>$C(Ld(e),i),[e]);return{rows:a,reload:n,setRows:s,getRows:r}}function wne(e,o){return e?.find(t=>t.slug===o)?.label?.trim()||`/${o}`}function XD(){let{currentSlug:e}=qD(),{rows:o}=Fd();return wne(o,e)}import{canDuplicatePage as Abe,DuplicatePageDialog as Rbe}from"efficient-easel/page-copy";import{jsx as Bt,jsxs as fP}from"react/jsx-runtime";import{useEffect as tbe,useMemo as rbe,useRef as abe,useState as pP}from"react";import{useScreenDocument as nbe}from"efficient-easel/screen/components/ScreenDocumentContext";import{useEaselSession as sbe}from"efficient-easel/screen/lib/session-context";import{uniqueSlug as GG}from"efficient-easel/page-copy";import{AddIcon as ibe}from"efficient-easel/icons";import{Dialog as lbe,EmptyState as cbe,Grid as dbe,SidebarActionButton as fbe,SidebarLayout as pbe,SidebarNavItem as uP,toast as jG}from"efficient-shell/ui";import{jsx as Tr,jsxs as y6}from"react/jsx-runtime";import{useMemo as gme,useState as Ime}from"react";import{CanvasFrame as yme}from"efficient-easel/easel";import{Button as bme,FitFrame as Sme}from"efficient-shell/ui";import{jsx as oM,Fragment as Fne,jsxs as Bne}from"react/jsx-runtime";import{useEffect as tM,useLayoutEffect as Nne}from"react";var Dh="data-theme",ZD="light";function Cne(e){return e.getAttribute(Dh)===ZD?"light":"dark"}function vne(e,o){return Cne(e)===o?!1:(o==="light"?e.setAttribute(Dh,ZD):e.removeAttribute(Dh),!0)}function kne(e){return Hy(e).getItem(Ey)}function T5e(e,o){Hy(e).setItem(Ey,o)}function Tne(e,o,t=new Date().getHours()){return h_({mode:o.mode,override:kne(e),switchShown:o.switchShown,hour:t})}function JD(e,o){let t=e.documentElement;if(!t)return()=>{};let r=()=>vne(t,Tne(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 Pne="style";function Ene(e,o){let t=qp(o),r=!1;for(let a of __){let n=t[a]??"";e.style.getPropertyValue(a)!==n&&(n?e.style.setProperty(a,n):e.style.removeProperty(a),r=!0)}return r}function QD(e,o){let t=e.body;if(!t)return()=>{};let r=()=>Ene(t,o);r();let a=e.defaultView?.MutationObserver;if(!a)return()=>{};let n=new a(r);return n.observe(t,{attributes:!0,attributeFilter:[Pne]}),()=>n.disconnect()}import{VIEW_DESKTOP_MIN as _ne,VIEW_TABLET_MIN as One}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,Ane=e=>e.flatMap(o=>[`[${o}] p`,`[${o}] li`]).join(","),Rne=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(Ane([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 = ${One}, DESKTOP_MIN = ${_ne};
|
|
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);`,Lne="storefront-fit-words";function eM(e){let o=e.createElement("script");return o.id=Lne,o.textContent=Rne,(e.head??e.documentElement).appendChild(o),()=>{e.__sfFitWords?.(),o.remove()}}var Dne=`
|
|
306
|
+
[${po}][${po}] { cursor: text; }
|
|
307
|
+
`;function Mh({children:e,document:o}){let{theme:t,themeMode:r,themeSwitchShown:a}=fe(),n=ko(t);return tM(()=>{if(o)return JD(o,{mode:r,switchShown:a})},[o,r,a]),tM(()=>{if(o)return QD(o,n)},[o,n]),Nne(()=>{if(o)return eM(o)},[o]),Bne(Fne,{children:[oM($O,{}),oM("style",{children:Dne}),e]})}import{jsx as w$}from"react/jsx-runtime";import{Render as cue}from"efficient-easel/render";import{jsx as gl}from"react/jsx-runtime";import{createContext as Mne,useContext as Hne,useMemo as Wne}from"react";var UC=Mne(null);function $ne({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 Hne(UC)}function zC(){return Bd()==="below"?{loading:"lazy"}:{}}function $h(e){let o=zC();return gl("img",{...e,...o})}var rM="laterSlideIds",Une=new Set(["Breadcrumb","CategoryBar","Divider","Spacer","Ticker"]);function aM(e){return Ad(e?.filter(o=>!o?.type||!Une.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 nM(e,o){let t=o?.type,r=o?.props?.id;return Wne(()=>{let a=t?e.components[t]:void 0;if(!t||!a)return e;let n=a.render,s=i=>i.id===r?gl($ne,{children:gl(n,{...i})}):gl(n,{...i});return{...e,components:{...e.components,[t]:{...a,render:s}}}},[e,t,r])}function sM(e){return e.props?xo(e,o=>{let t=lo(o,sM),r=e.type===rO&&t.every(a=>a.type===Qp)?eO(t):t;return r.length!==o.length||r.some((a,n)=>a!==o[n])?r:o}):e}function iM(e){return bp(e,o=>lo(o,sM))}var zne="Flex",lM="ListSearch",cM=["FAQ"],Gne="listKey";function dM(e,o){let t={search:e.type===lM,list:cM.includes(String(e.type))};return xo(e,r=>{for(let a of r){let n=dM(a,o);t.search||=n.search,t.list||=n.list}return r}),e.type===zne&&t.search&&t.list&&String(e.props?.id??"")?(o.add(e),{search:!1,list:!1}):t}function fM(e,o,t){let r=o.has(e)?String(e.props?.id):t,a=xo(e,n=>lo(n,s=>fM(s,o,r)));return r&&(e.type===lM||cM.includes(String(e.type)))?{...a,props:{...a.props,[Gne]:r}}:a}function pM(e){return ii(e,o=>{let t=new Set;for(let r of o)dM(r,t);return t.size?lo(o,r=>fM(r,t,"")):o})}import{isNode as Lie,isNodeList as z2}from"efficient-easel/data";import{jsx as Ve,Fragment as Sie,jsxs as Ea}from"react/jsx-runtime";import{jsx as hM}from"react/jsx-runtime";import{SITE_SIDE as jne}from"efficient-easel/screen/lib/content/length-units";var uM="sideSpace",Is=jne,X5e=[{value:"box",label:"Box"},{value:Is,label:"Site"}],Z5e="box",J5e="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 mM(e){return e===Is?Is:"box"}function Q5e(e){return e===Is?Is:void 0}import{isNodeList as Kne}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:Kne(t)}var gM={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}},IM=new Set(Object.keys(gM));function jC(e,o){return o?.innerPadding??$(gM,e)}var Il=e=>jC(e)??{};var Uh=new Set(["Flex","Text","Heading","ImageBlock"]),Vne=new Set(["Divider"]),Yne=new Set(["Hero","HeroSingle","IntroBleed","CategoryBar","DocTabs"]),xM=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:mM(a.sideSpace)}),s=r(a);if(!n)return s;let i=f=>hM(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):hM(su,{line:"by-box",draw:f=>i(f?d:l)})}}var yM={name:"sectionPadding",applies:(e,o,t)=>o.isSection(e)&&!Yne.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(xM.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(xM.has(o)){KC(e);return}Uh.has(o)||Vne.has(o)||KC(e,o==="Flex"?t=>Ab(t.bgImage):GC.has(o)?t=>Ft(o,t):void 0,!0)}}},qne=["Heading","Text","ImageBlock"],Xne=["LogoBlock"],bM={name:"blockPadding",applies:(e,o,t)=>(qne.includes(e)||Xne.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 SM=VC(null);function m3e(){return zh(SM)===!0}function h3e(){return zh(SM)!==null}var Zne=VC(!1);function x3e(){return zh(Zne)}function g3e(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 I3e(){return zh(Gh)}import{jsx as ys}from"react/jsx-runtime";import{Component as nse,createContext as sse,lazy as F3e,Suspense as B3e,useContext as ise,useSyncExternalStore as lse}from"react";function Jne(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 S3e(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 wM(e,o){return Jne(e,o)?{...Nd}:{}}function w3e(e){return typeof e=="string"?e.trim():""}var C3e="data-sf-box-link",CM="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",Qne="data-sf-box-jump";function ese(e){return`sf-box-jump-${e}`}function v3e(e,o){return e===!0?zn(o):""}function ose({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 k3e(e){let o=`[${Qne}="${e}"]`,t=`.${ese(e)}`,r=`[id="${e}"]:target`;return ose({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 tse="hrefRewrite";function rse(){return ai("efficient.link-href-rewrites",()=>({rewrites:new Map,count:0,missed:new Set}))}function ase(){return typeof process<"u"&&!0}function E3e(e){let o=e?.[tse];return typeof o=="string"?o.trim():""}function vM(e){if(!e)return null;let o=rse(),t=o.rewrites.get(e);return!t&&!ase()&&o.missed.add(e),t??null}var cse={Link:_O,Image:EO},kM=sse(cse);function $3e({runtime:e,children:o}){return ys(kM.Provider,{value:e,children:o})}function XC(){return ise(kM)}function U3e(){return XC().pagePath??null}var dse=()=>()=>{},fse=()=>pu()||null,pse=()=>null;function use(){return lse(dse,fse,pse)}function bs({hrefRewrite:e,newTab:o,...t}){let{Link:r}=XC(),a=use(),n=o===!0?{...t,...Nd}:o==="auto"?{...t,...wM(t.href,a)}:t,s=vM(e);return s?ys(qC,{name:s.name,href:n.href,fallback:ys(r,{...n}),children:ys(mse,{Link:r,rewrite:s.rewrite,...n})},s.key):ys(r,{...n})}function mse({Link:e,rewrite:o,...t}){let r=be(o(t.href)),a=r&&J0(r)?r:t.href;return ys(e,{...t,href:a})}var qC=class extends nse{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 die}from"react/jsx-runtime";import{jsx as Re,jsxs as ot,Fragment as sie}from"react/jsx-runtime";import{imageCopyUrl as EM,imageSrcSet as hse}from"efficient-shell/image-copies";var TM;function ZC(){return TM===void 0?{}:{host:TM}}var j3e="(max-width: 800px) 100vw, min(100vw, 1600px)",K3e="(max-width: 960px) 100vw, 50vw";function Ss(e,{fallbackWidth:o=1280,maxWidth:t}={}){let r=hse(e,{...ZC(),...t===void 0?{}:{maxWidth:t}});return r?{src:EM(e,o,ZC()),srcSet:r}:{src:e}}var xse=/[\s"'()\\;]/,gse={"\\":"\\\\",'"':'\\"',"\n":"\\a ","\r":"\\d ","\f":"\\c "};function PM(e){return e.replace(/[\\"\n\r\f]/g,o=>gse[o]??o)}function V3e(e){let o=EM(e,1920,ZC());return o===e?xse.test(e)?`url("${PM(e)}")`:`url(${e})`:`url("${PM(o)}")`}var Dd="solid",Ise=[{label:"Solid",value:"solid"},{label:"Outlined",value:"outlined"}];function _M(e){return go(Ise,Dd,e)}var JC="sf-secnum-outline",OM="font-display text-[length:var(--size-headingMedium,clamp(48px,6vw,96px))] font-medium leading-[0.8] tracking-[-0.02em]",AM=`@supports (-webkit-text-stroke: 1px currentColor){.${JC}{color:var(--site-surface-2);-webkit-text-stroke:1px var(--site-line)}}`;var QC="plain",RM=[{label:"Plain",value:"plain"},{label:"Filled",value:"filled"},{label:"Line",value:"line"}],yse="line",bse={KeyFeatures:"filled"};function Md(e){return $(bse,e)??QC}function LM(e,o){return go(RM,Md(o),e)}function Q3e(e){return go(RM,yse,e)}import{jsxs as vs,jsx as ao}from"react/jsx-runtime";import{Fragment as dv}from"react";import{Fragment as Kse,jsx as iv}from"react/jsx-runtime";import{Fragment as KM,jsx as zd,jsxs as Mse}from"react/jsx-runtime";import{createContext as sv,useContext as Gd,useEffect as Hse,useId as Wse,useMemo as $se,useRef as Use}from"react";import{armEntrance as zse}from"efficient-shell/format";import{jsx as Sse}from"react/jsx-runtime";import{useEffect as BM,useRef as FM,useState as wse}from"react";import{armEntrance as Cse,entranceAttrs as vse,playEntrance as kse}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=FM(null),d=lu(),f=Ht(),u=n?f:Ua,p=Hd(l,!0,s),{attrs:m,style:h}=vse(e[p]),I=FM(yl.seed(e)),w=JSON.stringify(e);return BM(()=>{let S=l.current;if(S){if(o){let v=yl.next(I.current,e,p);I.current=v.seen,v.play&&kse(S);return}return Cse(S)}},[w,p,o]),u.scope(Sse("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]=wse(void 0),n=$a(t?"edge":"by-box"),{phone:s,tablet:i}=bC(n);return BM(()=>{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",NM="@body",DM="@value",MM={[$d]:"Name",[NM]:"Body",[DM]:"Value"},Tse={TimelineTrack:{"entries.date":$d,"entries.title":$d,"entries.blurb":NM},Footprint:{"offices.city":$d},Stats:{"items.label":$d,"items.value":DM}};function Pse(e){let{key:o,row:t}=wr(e);return t?`${o}.${t.rowKey}`:null}function ka(e,o){if(!e)return o;let t=Pse(o);return t?$(Tse,e)?.[t]??o:o}import{ENTRANCE_STATE_ATTR as Lse,entranceAttrs as Fse,scrollAttrs as Bse}from"efficient-shell/format";import{parseFocal as Ose,formatFocal as Ase,readScroll as Rse}from"efficient-shell/format";import{phoneKey as Ese,tabletKey as _se}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"}],HM=e=>[e,_se(e),Ese(e)],mWe=[...new Set(ev.flatMap(e=>HM(e.focus)))].sort();function WM(e,o){let[t,r,a]=HM(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 Rse(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=nO(e.desktop,e.tablet,e.phone),t=r=>{let a=o[r];if(typeof a!="string")return;let{x:n,y:s}=Ose(a);return Ase(n,s)};return{desktop:t("desktop"),tablet:t("tablet"),phone:t("phone")}}function $M(e,o){return ov(WM(e,o))}var Xh={},tv="_partMotion",rv=[...tu,Dt,ho.duration,ho.delay,...qh];function zM(e){return cl(e,tv)}function ws(e,o){return bh(e,tv,o)}var Nse=new Set([Tt.kind,Dt,zo.effect]);function GM(e,o,t,r){let{[t]:a,...n}=ws(e,o),s=r==null||r===""||r==="none"&&Nse.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:nE(e),scroll:Sl(e)}}function jM(e){let o=Ud(e);return o.entrance!==null||o.hover!=="none"||o.scroll!==null}function Zh(e,o){let{attrs:t,style:r}=Fse(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(Lse)}}function Jh(e,o){let{attrs:t,style:r}=Bse(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 Dse=4;function wl(e){let o;for(let t of e)(!o||t.element.compareDocumentPosition(o.element)&Dse)&&(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",UM="sf-part-lift";function ex(e){if(e.getElementById(UM))return;let o=e.createElement("style");o.id=UM,o.textContent=BN(`[${Cs}]`).join(`
|
|
320
|
+
`),e.head.appendChild(o)}var ox=sv(null),YM=sv(null),qM=sv(null);function XM({needles:e,styles:o,motions:t=Xh,type:r,atEdge:a=!1,children:n}){let s=Wse(),i=$a(a?"edge":"by-box"),l=JSON.stringify([s,e,o,t,r]),d=$se(()=>{let u=Object.keys(t).filter(p=>jM(t[p]));return ZN(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(KM,{children:n});let f=JN(d,{inBox:i});return Mse(KM,{children:[f&&zd("style",{href:`${Gse}${s}-${jse(f)}`,precedence:JM,dangerouslySetInnerHTML:{__html:f.replace(/</g,"\\3c ")}}),zd(ox.Provider,{value:d,children:n})]})}var nv=new WeakMap;function VM(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 ZM(e){let o=Use(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 Hse(()=>{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=zse(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),VM(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,VM(f,p),p.length||nv.delete(f))}},[l,a]),o}var JM="sf-part-styles",Gse=`${JM}-`;function jse(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 QM(e){let o=Gd(ox),t=Gd(YM),r=QN(o,e);return r&&r.stamp!==t?r:null}function BWe(e){return yC(Gd(ox),e)}function e2({stamp:e,children:o}){return zd(YM.Provider,{value:e,children:o})}function NWe({children:e}){let o=Gd(ox);return zd(qM.Provider,{value:o,children:e})}function DWe(e){return yC(Gd(qM),e)}function jd({value:e,children:o}){let t=QM(e),r=ZM(t);return t?iv(e2,{stamp:t.stamp,children:iv("span",{ref:r,[nC]:t.stamp,...t.textStyle?{[Cr]:t.textStyle}:{},children:o})}):iv(Kse,{children:o})}import{jsx as lv,Fragment as Vse}from"react/jsx-runtime";function o2({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(o2,{},`r${a}`))}),lv(Vse,{children:t})}var GWe=o2;function Io(e,o=!1,t){let r=eie(o),a=vp(e);if(a.length===1){let[s]=a,i=Q0(s),l=i?Jse(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:Yse,children:tx(s.children,r)},i));return}if(s.number!=null){n.push(vs("span",{"data-sf-number":s.number,className:qse,children:[vs("span",{className:Xse,children:[s.number,"."]}),tx(s.children,r)]},i));return}i>0&&!Zse(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 Yse="relative block pl-6 before:absolute before:left-1.5 before:font-bold before:text-accent before:content-['\xB7']",qse="relative block pl-[2em]",Xse="absolute left-0 w-[1.6em] text-right tabular-nums";function Zse(e){return e.bullet||e.number!=null}var t2="text-accent underline underline-offset-[0.18em]";function Jse(e,o){let[t,...r]=o;return t?.kind==="text"?[{kind:"text",text:`${e}${t.text}`},...r]:[{kind:"text",text:e},...o]}function Qse(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(a2(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):a2(t,r,o))}function eie(e){return e?"font-normal italic text-accent":"not-italic text-accent"}function o$e(e){return r2(e)}function r2(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 a2(e,o,t){if(e.kind==="link")return jh(e.href)?ao(bs,{newTab:"auto",href:e.href,className:t2,children:cv(e.children,t)},o):ao("a",{href:e.href,className:t2,children:cv(e.children,t)},o);let r=cv(e.children,t),a=q0[e.kind];if(a)return ao("span",{[X0]: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=Qse(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 n2(e,o=!0,t=!1){let r=e.split(`
|
|
322
|
+
`);return ao(jd,{value:e,children:r.map((a,n)=>vs("span",{children:[t?r2(a):Io(a,o),n<r.length-1?ao("br",{}):null]},n))})}function s2(e){return e.split(/\n\s*\n/).map(o=>o.trim()).filter(Boolean)}import{jsx as fv,jsxs as tie}from"react/jsx-runtime";import{jsx as oie}from"react/jsx-runtime";function i2(){return oie("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 rie(e,o){return`font-mono text-[length:var(--size-label,${e}px)] uppercase tracking-[0.3em] text-accent`}var aie=`inline-block w-fit bg-accent px-3.5 py-1.5 font-mono ${pv.labelSmall} font-semibold uppercase tracking-[0.16em] text-bg`,nie=`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(tie("div",{className:Jo([a,nie,n].filter(Boolean).join(" "),l.className),...l.attrs,children:[fv(i2,{}),fv("span",{children:Io(e)})]}));let d=o==="filled"?aie:rie(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)]"},l2=[{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}`}],iie="lg";function lie(e){return(l2.find(o=>o.value===e)??l2.find(o=>o.value===iie)).cls}var vl=(e,o=!1)=>typeof e=="string"?n2(e,o):e,Pa=(e,o=!1)=>typeof e=="string"?Io(e,o):e;function c2({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:`${AD} 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:`${lie(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(sie,{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=_M(i)==="outlined",T=`font-mono ${Ke.label} uppercase tracking-[0.3em]`,D=null;if(e)if(F)D=Re("span",{className:`${OM} 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:AM}),ot("div",{className:"flex flex-col items-start gap-3",children:[r?.src&&Re(cO,{children:Re($h,{...cie(AO(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 cie(e){let o=Ss(e,{fallbackWidth:640,maxWidth:960});return o.srcSet?{src:o.src,srcSet:o.srcSet,sizes:"240px"}:{src:e}}function d2({num:e,title:o,titleAccent:t,desc:r,accentTracking:a="-0.02em",spaceBelow:n="mb-[60px]",className:s=""}){return die(c2,{look:"editorial",num:e,title:o,titleAccent:t,description:r,accentTracking:a,spaceBelow:n,className:s})}import{jsx as Vd,jsxs as gie}from"react/jsx-runtime";import{useEffect as Iie,useState as b2}from"react";import{jsx as fie}from"react/jsx-runtime";var f2="sf-photo-hover";function rx({sheet:e,name:o=f2}){return e?fie("style",{href:o,precedence:f2,dangerouslySetInnerHTML:{__html:e}}):null}import{jsx as g2,Fragment as mie}from"react/jsx-runtime";import{createContext as hie,useContext as nx}from"react";var pie=TE["view-desktop"];function uie(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 _$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:pie,slot:e.tablet}],t=o.filter((r,a)=>r.slot!==(o[a+1]?.slot??e.desktop));return uie(t,e.desktop)}function p2(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 u2=(e,o)=>e.steps.find(t=>o<=t.edge)?.slot??e.last,m2=e=>{let o=/^min\((.+)\)$/.exec(e);return o?o[1].split(/,\s*(?![^()]*\))/).map(t=>t.trim()):[e]};function h2(e,o){if(e===o)return e;let t=[...m2(e),...m2(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 x2(e,o){if(!o)return e;let t=p2(e),r=p2(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:h2(u2(t,s),u2(r,s))})),n=h2(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 xie={hasWidth:!1},Kd=hie(xie);function F$e(){return nx(Kd).hasWidth}function B$e(e){let{bound:o}=nx(Kd);return o&&mv(o)||e}function I2(e){let{bound:o}=nx(Kd);return x2(e,o&&mv(o))}function y2({children:e}){let o=nx(Kd);return o.bound?g2(Kd.Provider,{value:{hasWidth:o.hasWidth},children:e}):g2(mie,{children:e})}function S2({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=I2(s),h=i?m:s,[I,w]=b2(!1),[S,v]=b2(!1),b=t||"";Iie(()=>{w(!1),v(!1)},[b]);let y=uu(b),k=y&&!S?Ss(b):{src:b},F=!b||I;return gie("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 yie}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",bie=`.${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 yie("style",{children:bie})}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)]"},w2={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",wie="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 f6e({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??kL({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=w2[n]??w2[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,...X1(p,m)},children:Ea("div",{className:fL,children:[u?null:Ve(d2,{num:e,title:o?.trim()?Io(o,!0):void 0,desc:t?.trim()?Io(t,!1):void 0}),r&&!S?Ea(Sie,{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:`${wie} ${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(S2,{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 Cie=["selected","highlighted"],C2="data-sf-card-state",k2="pointer-events-none absolute inset-0 border border-accent",T2="pointer-events-none absolute inset-x-0 bottom-0 border-b-2 border-accent",P2="pointer-events-none absolute inset-0 border-2 border-accent outline outline-1 -outline-offset-1 outline-accent",E2="absolute inset-y-0 left-0 w-[3px] bg-accent",_2="absolute -inset-[2px] -z-[1] bg-[color-mix(in_oklab,var(--accent)_14%,transparent)]",O2="after:pointer-events-none after:absolute after:inset-0 hover:after:border-2 hover:after:border-accent",v2=e=>{let o=K_.find(t=>t.role===e)?.token;if(!o)throw new Error(`card-state: the palette has no ink token for "${e}"`);return o},vie={[v2("muted")]:`var(${v2("fg")})`};function Iv(e){return e?.selected===!0}function yv(e){return e?Cie.filter(o=>e[o]===!0).join(" "):""}function A2(e,o="frame"){let t=yv(e);return t?o==="frame"&&Iv(e)?{[C2]:t,className:"relative isolate",style:{...vie}}:{[C2]:t,className:"relative"}:{}}var kie={highlighted:!0},Tie={},cx="badge";function x6e(e,o=[]){return e.map((t,r)=>({...t,key:t.key||o[r]?.key||vc(t,r)}))}function R2(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 g6e(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?kie:Tie)}}function I6e(e){return{chosen:typeof e.highlightedCard=="string"?e.highlightedCard.trim():"",badge:typeof e.highlightBadge=="string"?e.highlightBadge:""}}function y6e(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 L2="data-sf-card-press",F2=`${CM} appearance-none bg-transparent border-0 p-0 m-0`,B2=`${F2} cursor-pointer`,N2=F2;import{paymentMarkItems as Pie,paymentMarks as Eie}from"efficient-shell/icons/payment";var _ie=[A0,gp],D2=e=>_ie.includes(e),M2=e=>Pie({name:e.label,kind:e.kind}),Oie=(e,o)=>e.kind===o.kind&&e.label===o.label&&(e.kind==="brand"?e.mark===o.mark:e.glyph===o.glyph);function H2(e){return Eie(e.map(o=>({name:o.label,kind:o.kind}))).map(o=>({label:o.label,kind:e.find(t=>M2(t).some(r=>Oie(r,o)))?.kind??""}))}function C6e(e){return M2(e)[0]??null}var W2={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")}],Aie=yp.Logos,P6e={label:"Logos",drawsPictures:!0,fields:Aie,defaultProps:{items:[],contained:!0}};var Rie=()=>dx().map(e=>({label:e.alt}));function $2(e,o){let t=Ip(e,o,Rie()).rows.filter(r=>r.label);return D2(to(e))?H2(t):t}var Zd="Flex",Fie="Text",Jd=e=>Object.values(e??{}).filter(z2),Bie=e=>e.type===Oo&&to(e.props)!=="",G2=e=>{if(e.type!==Zd)return!1;let o=Jd(e.props).flat();return o.length>0&&o.every(Bie)},fx=e=>Bp(e.props?.headPlacement)==="own-box"||G2(e),bv=e=>e===void 0||Array.isArray(e)&&e.length===0;function j2(e){return e.type===Fie?!0:e.type===Zd&&Jd(e.props).every(o=>o.every(j2))}var K2={ProcessSteps:e=>bv(e.boxes)&&gv(e.steps).length===0,Logos:e=>to(e)?Nie(e):bv(e.logos)&&bv(e.items)};function Nie(e){return N0(e)!==null&&$2(e,!1).length===0}function Die(e){return Jd(e.props).flat().every(o=>!Ip(o.props,!1).rows.some(R2))}function px(e){let o=Jd(e.props).flat();return o.some(fx)&&o.every(t=>fx(t)||j2(t))}function Mie(e){if(!Lie(e)||!fx(e))return e;let o=G2(e)?Die(e):$(K2,String(e.type))?.(e.props??{})===!0;return{...e,props:{...e.props,[Xd]:o?"empty":!0}}}function U2(e){return xo(e,o=>lo(o,Mie))}function V2(e){let o=Object.entries(e.props??{}).filter(([,r])=>z2(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 Y2(e){if(e?.type!==Zd||!e.props)return e;if(px(e)){let t=U2(e);return{...t,props:{...t.props,[qd]:!0}}}let o=V2(e);return!o||!px(o.inner)?e:{...e,props:{...e.props,[o.key]:[U2(o.inner)],[qd]:!0}}}function q2(e){let o=e;if(!o||!Array.isArray(o.content))return e;let t=!1,r=o.content.map(a=>{let n=Y2(a);return n!==a&&(t=!0),n});return t?{...o,content:r}:e}var Hie=e=>$(K2,String(e.type))?.(e.props??{})===!0;function Wie(e){if(e.type!==Zd||!e.props)return!1;let o=px(e)?null:V2(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(Hie)}function X2(e){return xo(e,o=>$ie(o))}function $ie(e){let o=!1,t=[];for(let r of e){if(Wie(r)){o=!0;continue}let a=X2(r);a!==r&&(o=!0),t.push(a)}return o?t:e}function Z2(e){let o=e;if(!o||!Array.isArray(o.content))return e;let t=!1,r=o.content.map(a=>{if(Y2(a)!==a)return a;let n=X2(a);return n!==a&&(t=!0),n});return t?{...o,content:r}:e}var Uie=["DocMasthead","AlloyWheelsListing"],ux="titleLevel",zie=e=>e===2?"h2":"h1",Sv=e=>zie(e?.[ux])==="h2";function J2(e){let o=e;if(!o?.content?.length)return e;let t=!1,r=!1,a=o.content.map(n=>Uie.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 qie}from"efficient-easel/draw";var kl="showFor";function Q2(){return ai("efficient.box-show-for-choices",()=>({choices:[],revision:0}))}var Gie=e=>!!e&&typeof e=="object"&&typeof e.slug=="string"&&e.slug.trim()!==""&&typeof e.name=="string"&&e.name.trim()!=="";function K6e(){return Q2().choices}function V6e(){return Q2().revision}function eH(e){return Gie(e)?{slug:e.slug,name:e.name}:void 0}import{readHidable as jie}from"efficient-easel/draw";var wv="_wallLabelId",Kie="_wallLabelledBy",Cv=e=>e.props?.id==null?"":String(e.props.id);function Vie(e){if(!e||e.type!=="Text"||!Cv(e))return!1;let o=jie(e.props?.text);return!o.hidden&&o.text.trim()!==""}var Yie=e=>!!e&&e.type==="Logos"&&e.props?.look==="marks"&&Cv(e)!=="",oH=(e,o,t)=>({...e,props:{...e.props,[o]:t}});function tH(e){let o=lo(e,r=>xo(r,tH)),t=null;for(let r=1;r<o.length;r++){if(!Yie(o[r])||!Vie(o[r-1]))continue;let a=`sf-wall-label-${Cv(o[r-1])}`;t??=o.slice(),t[r-1]=oH(t[r-1],wv,a),t[r]=oH(t[r],Kie,a)}return t??o}function rH(e){return ii(e,tH)}var aH="_cardPressTitles",Xie="_cardPressTitle";function aUe(e,o){let t=e?.[aH],r=t&&typeof t=="object"?t[o]:void 0;return Array.isArray(r)&&r.length?r:void 0}var nH=(e,o)=>({...e,props:{...e.props,...o}});function Zie(e){let o=e.props??{};return e.type!=="Text"||qie(o.text).hidden||typeof o[vt]=="string"||typeof o[wv]=="string"?"":ut(o)}function sH(e,o,t,r){return lo(e,a=>{let n=Zie(a);if(n&&!r.has(n))return r.add(n),t.push({field:n,gates:o}),nH(a,{[Xie]:!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:sH(l,i,t,r))})}function iH(e){let o,t=xo(e,(r,a)=>{let n=lo(r,iH);if(!Fn(e.type,a))return n;let s=[],i=sH(n,[],s,new Set);return s.length&&((o??={})[a]=s),i});return o?nH(t,{[aH]:o}):t}function lH(e){return ii(e,o=>lo(o,iH))}import{pinnedDuplicateIndices as Qle}from"efficient-easel/draw";import{jsx as Yt,jsxs as qH}from"react/jsx-runtime";import{createContext as Gle,useContext as jle,useEffect as Kle,useRef as Vle,useState as XH}from"react";import{jsx as nn,jsxs as pH}from"react/jsx-runtime";import{useEffect as Tl,useRef as uH,useState as ks}from"react";import{jsx as cH,Fragment as Jie,jsxs as Qie}from"react/jsx-runtime";import{useEffect as ele,useRef as dH,useState as ole}from"react";var tle="#t=0.001",rle=2;function ale(e,o){if(e.readyState<rle||!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 fH({src:e,objectPosition:o="50% 50%",onError:t}){let r=dH(null),a=dH(null),[n,s]=ole(!1);return ele(()=>{let i=r.current,l=a.current;if(n||!i||!l)return;let d=()=>{ale(i,l)&&s(!0)};return d(),i.addEventListener("loadeddata",d),i.addEventListener("seeked",d),()=>{i.removeEventListener("loadeddata",d),i.removeEventListener("seeked",d)}},[n]),Qie(Jie,{children:[cH("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&&cH("video",{ref:r,src:`${e}${tle}`,muted:!0,playsInline:!0,preload:"auto",className:"hidden",onError:t})]})}var nle=.5;function Qd({videoSrc:e,videoAv1Src:o,videoSrcPhone:t,videoAv1SrcPhone:r,posterSrc:a,posterSrcPhone:n,showVideo:s=!0,playbackRate:i=nle,objectPosition:l="50% 50%",objectPositionPhone:d,objectPositionTablet:f,quiet:u=!1,slideShown:p,laterSlide:m=!1,laterOfLead:h=!1}){let I=lR(d,f),w=Bd(),[S,v]=ks(!1),b=w==="below"&&!S,y=w==="first",k=a||"",F=n||"",T=uH(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=uH(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 pH("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?pH("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(fH,{src:C,objectPosition:l,onError:()=>Ce(!0)},C)]})}import{jsx as Go,Fragment as TH,jsxs as Ev}from"react/jsx-runtime";import{jsx as Pl}from"react/jsx-runtime";import{useRef as sle}from"react";import{SCROLL_EFFECTS_WITH_ZOOM as ile,scrollAttrs as lle}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=sle(null),u=lu(),p=Ht(),m=n?p:Ua,h=Hd(f,!0,s),{attrs:I,style:w}=lle(e[h],o[h]),S=ile.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(iO,{attrs:I,style:w,children:u.inner(d)})}));let b=Pl(lO,{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 RUe="Video file",LUe="Upload a video file",FUe="AV1 file",BUe="Upload an AV1 file";function cle(e,o){return Sc("mediaType",Mn,o,[e])}var dle=new Set(Object.keys(Rc)),mH="heroPart";function fle(e,o){return{...o,[mH]:e}}function NUe(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],cle(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]=fle(i,n[l]);return n}function ple(e){let o=e?.[mH];return Ts.includes(o)?o:null}function hH(e,o){let t={};for(let[r,a]of Object.entries(e))ple(a)===o&&(t[r]=a);return t}function xH(e){if(!dle.has(e.type))return[];let o=[{part:"media",label:_a.media,depth:0}];return XO(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 ule}from"efficient-shell/format";var bH="grayscale(1) contrast(1.03)",WUe="Black and white";function mle(e){return e===!0?{filter:bH}:{}}function hle(e){let{filter:o}=mle(e);return o?{style:{filter:o}}:{}}var Es="sf-photo-grayscale",Pv="data-sf-photo-host",gH={duration:"--sf-photo-hover-duration",delay:"--sf-photo-hover-delay"},bx=`@media (hover:hover){.${Es}{filter:${bH};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 SH(e){let o=ule.hover,t={...e.duration!==o.duration.default?{[gH.duration]:`${e.duration}s`}:{},...e.delay!==o.delay.default?{[gH.delay]:`${e.delay}s`}:{}};return Object.keys(t).length?t:void 0}function wH(e,o,t){if(e===!0)return hle(!0);if(t?.kind==="mono"){let r=SH(t);return{className:Es,sheet:bx,...r?{style:r}:{}}}return e===!1?{}:o===!0?{className:Es}:{}}var CH="data-sf-repeat",vv="sf-photo-zoom",xle="--sf-photo-zoom",$Ue="sf-photo-wash",gx="sf-photo-wash-rest",tf="sf-photo-wash-hover",yx="sf-photo-frame",vH=(e,o)=>`:not([${CH}]:not(${o}) .${e})`,Tv=(e,o)=>`[${CH}]${o} .${e}${vH(e,o)}`,kv=(e,o)=>`${o},${Tv(e,":hover")},[${Pv}]:hover .${e}${vH(e,":hover")}`,IH=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))`,gle=`.${tf}{opacity:0}@media (hover:hover){.${gx},.${tf}{transition:${IH("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:${IH("transform")}}${kv(vv,`.${yx}:hover .${vv}`)}{transform:scale(var(${xle}))}}@media (hover:hover) and (prefers-reduced-motion:reduce){.${gx},.${tf}{transition:none}}`,UUe="sf-photo-move";function zUe(e){if(!e||!e.zoom&&!e.darken)return null;let o=SH(e);return{className:yx,sheet:gle,...o?{style:o}:{}}}function kH(e){return e===!0?{[Es]:bx}:{}}var Ix="sf-box-reveal",GUe="sf-box-reveal",Ile=8,yH=.3,jUe=`@media ${Ic}{.${Ix}{opacity:0;transform:translateY(${Ile}px);transition:opacity ${yH}s ease-out,transform ${yH}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 yle}from"efficient-easel/draw";var ble={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"},Sle={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 PH(e){let o=e.isVideo&&e1(e.videoSource)==="youtube",t=e.isVideo&&o1(e.videoPlayback)==="click",r=o?t1(yle(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}),EH=_c.img;function _H({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 wH(void 0,void 0,CE(ws({_partMotion:e},o)))}function OH(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(TH,{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(_H,{entrance:r,scroll:a,origins:n,editing:o,className:s,attrs:l,zoomLayerClass:EH,children:i})}function AH({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(_H,{entrance:r,scroll:a,editing:o,className:"absolute inset-0 z-[1]",zoomLayerClass:EH,children:i}):Go(TH,{children:i})}function RH({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 ${ble[o]} ${Sle[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 wle,jsxs as Cle}from"react/jsx-runtime";import{useEffect as vle,useRef as kle,useState as Tle}from"react";import{PlaySolidIcon as Ple}from"efficient-shell/icons/efficient-looks";function LH({youTubeId:e,ownPoster:o,background:t,editing:r}){let[a,n]=Tle("large");return vle(()=>n("large"),[e]),e?Cle(wle,{children:[!o&&a!=="none"&&sn($h,{src:a==="large"?r1(e):a1(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 FH({youTubeId:e,fileSrc:o,fileAv1Src:t,fileSrcPhone:r,fileAv1SrcPhone:a,playing:n,onPlay:s,editing:i}){let l=kle(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(Ple,{size:28})})}function BH(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 NH=["top","middle","bottom"],DH=["left","center","right"],MH="bottom",HH="left",Ele={top:"Top",middle:"Middle",bottom:"Bottom"},_le={left:"Left",center:"Center",right:"Right"},bze="Up and down",Sze="Sideways",Ole={top:"flex-start",middle:"center",bottom:"flex-end"},Ale={left:"flex-start",center:"center",right:"flex-end"},Rle="--sf-hero-phone-y",Lle="--sf-hero-phone-x";function Fle(e){return NH.includes(e)?e:MH}function Ble(e){return DH.includes(e)?e:HH}function WH(e,o){let t=Fle(e),r=Ble(o),a={};return t!==MH&&(a[Rle]=Ole[t]),r!==HH&&(a[Lle]=Ale[r]),a}function wze(){return NH.map(e=>({label:Ele[e],value:e}))}function Cze(){return DH.map(e=>({label:_le[e],value:e}))}import{hexToRgb as Nle}from"efficient-shell/format";var Dle=!0;var Mle=[[0,".5"],[30,".1"],[60,".1"],[100,".85"]];function $H(e){let o=Nle(e);return o?`${o.r},${o.g},${o.b}`:null}function UH(e){return e==null?Dle:e!==!1}function zH(e){let o=(e?$H(e):null)??$H(mr);return`linear-gradient(180deg, ${Mle.map(([t,r])=>`rgba(${o},${r}) ${t}%`).join(", ")})`}import{hexToRgb as GH}from"efficient-shell/format";var jH="bottom";var Hle=[{label:"Bottom",value:"bottom",cell:"bottom"},{label:"Top",value:"top",cell:"top"},{label:"Left",value:"left",cell:"left"},{label:"Right",value:"right",cell:"right"}],Wle={bottom:180,top:0,left:270,right:90},$le=[[.55,0],[.15,18],[null,35],[null,55],[.85,100]],Ule=[[null,33],[.6,67],[.94,100]];function zle(e,o){let{r:t,g:r,b:a}=GH(e)??GH(mr);return`rgba(${t},${r},${a},${o})`}function KH(e){return go(Hle,jH,e)}function VH(e=mr,o=jH){let t=KH(o),r=(t==="top"||t==="bottom"?$le:Ule).map(([a,n])=>`${a===null?"transparent":zle(e,a)} ${n}%`);return`linear-gradient(${Wle[t]}deg, ${r.join(", ")})`}function YH(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:KH(r)}}var Yle=Gle({});function qze({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}=jle(Yle),Do=Bd(),vo=Z&&Do==="first",ue=Vle(null),[eo,G]=XH(Xo===void 0?void 0:!1);Kle(()=>{let vn=ue.current;G(Xo===void 0||!vn?void 0:BH(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}=PH({isVideo:Ae,videoSource:E,videoPlayback:W,youtubeUrl:R,mediaLayout:k,mediaLayoutPhone:F}),[ri,ta]=XH(!1);ri&&qo===!1&&ta(!1);let Fa=!ri,wn=YH({overlayColor:b,overlayPosition:y},_e),fc=Ae?null:rf(U,"image"),Cn=Ae?null:af(U,"image"),hp=OH(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=qH("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(AH,{partMotion:U,editing:w,children:ti?Yt(RH,{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?qH(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(LH,{youTubeId:Lr,ownPoster:!!io,background:!Mo,editing:w})]}):pc}),Mo&&Yt(FH,{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&&UH(ee)&&Yt("div",{className:"absolute inset-0 z-[2]",style:{background:wn.own?VH(wn.color,wn.position??void 0):zH(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:{...V_,...WH(Ee,Fe)},children:I&&Yt(I,{className:"sf-hero-group-zone",minEmptyHeight:160})})]});return V.scope(vo?Yt(Wh,{children:xp}):xp)}var ZH=Array.from({length:3},(e,o)=>({name:`Slide ${o+1}`,process:"Category",mediaType:"image",mediaVideo:"",poster:""}));import{newNodeId as t4}from"efficient-easel/draw";import{isNodeList as Xle}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"}]}}]}}),JH=()=>Array.from({length:_v},Ov);var QH=["","","","","",""],e4="#ticker",nf="strip",Av={sectionAccent:Hr,line:!1};function qle(e){return(Array.isArray(e.tickerItems)?e.tickerItems:[]).map(o=>typeof o?.text=="string"?o.text:"").filter(o=>o.trim()!=="")}function Rv(e){return qle(e).length>0}function tGe(e){return e.showTicker!==!1&&Rv(e)}var r4=(e,o)=>({type:e.type,props:{...o?.(e.type)??{},...Object.fromEntries(Object.entries(e.props).map(([t,r])=>[t,Xle(r)?r.map(a=>r4(a,o)):r]))}}),Zle=e=>{let[o]=Nr([Ov()],a=>t4(a)),{id:t,...r}=r4(o,e).props;return r},qt={Hero:{slot:"slides",childType:"HeroSlide",addLabel:"Add slide",slider:!0,seeds:()=>ZH.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},()=>Zle(e)),skipSeed:e=>Array.isArray(e.steps)&&e.steps.length>0}},o4=1,Jle={slot:nf,childType:Y,addLabel:`Add ${hc.toLowerCase()}`,seeds:()=>[],addBlocked:e=>e.length>=o4?"This Hero has its Scrolling Bar already. Delete it to add another.":null,notice:e=>e.length>o4?`This Hero holds ${e.length} Scrolling Bars. Keep one and delete the others.`:null},a4={Hero:{[nf]:Jle}};function mGe(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 hGe(e,o){let t=$(qt,e);return t?{slot:t.slot,children:t.seeds(o).map(r=>({type:t.childType,props:{id:t4(t.childType),...r}}))}:null}var ece=["GalleryB"];function n4(e){let o=e.content;if(!Array.isArray(o))return e;let t=!1,r=o.map(s=>{let i=s?.type;if(!i||!ece.includes(i))return s;let l=$(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(Qle(r)),n=a.size?r.filter((s,i)=>!a.has(i)):r;return a.size&&(t=!0),t?{...e,content:n}:e}var oce={"Logos.logosPerRow":"columns","HeroSlide.tintOpacity":"overlay","Split.textBgTint":"overlay"},tce={"Footprint.source":"typed"};function s4(e){let o=e.props,t=!1;if(e.type&&o)for(let[r,a]of Object.entries(oce)){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(tce)){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],F0(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,s4));r.props!==o&&(o=r.props,t=!0)}return t?{...e,props:o}:e}function i4(e){return bp(e,o=>lo(o,s4))}import{readHidable as ace}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 kGe(e){return rce[sf(e)]}var rce={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 nce(e,o){return o===0?`${e}~box`:`${e}~box-${o+1}`}var c4=new Set(["id"]),ln={},lf=[],sce={ProductGrid:["ProductColour","ProductEyebrow","ProductName","ProductPicture","ProductPrice","ProductRef","ProductSpecs"],Events:[],Collections:["CollectionCard"],GalleryB:["GalleryItem"],ContactRouting:[],ReviewForm:[],AppointmentBooking:["BookingBox"],Reviews:["RatingBlock"],CheckoutCTA:[],AlloyWheelsListing:["ProductBuy","ProductColour","ProductEyebrow","ProductName","ProductPicture","ProductPrice","ProductSpecs"],SpecTable:["EuTyreLabelBlock","WheelDiagram"],FitmentTable:[],ProductHero:["ProductGallery","ProductEyebrow","ProductName","ProductPrice","ProductBuyButton"]},ice=Object.keys(sce),Os=["Breadcrumb","DocBody","Form","SubmitBuild","Footprint","FAQ","ContactLocations","ProcessSteps",...ice,"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 lce(e){return He(ln,e)&&lf.includes(e)}function d4(e,o=Os){return He(ln,e)&&(o.includes(e)||lce(e))}function NGe(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=>ace(e),no=e=>Lv(e).text.trim()!=="";function cce(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 dce=e=>e==="heading"?Da():e==="eyebrow"?la():{};function fce(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 pce(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 l4(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 uce(e){let o=new Set([...c4,"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 mce(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 hce(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 xce(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 gce(e,o,t){if(!t.press)for(let r of xce(e)){let a=hce(o,r);if(a!==void 0)return a}}function As(e,o,t={}){let r=e.props,a=(o.ownBoxConverts?void 0:mce(r))??gce(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=uce(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 l4(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=dce(C.role??"body"),{_partStyles:R,...W}=E,U=fce(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"?cce(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??{},...pce(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=l4(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:nce(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))c4.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 f4(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 p4(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 Ice,BLOCK_SIZE_KEYS as yce,parseBlockWidthFit as Px,phoneKey as u4,parseTextFit as Tx,tabletKey as m4,viewKeyAt as h4}from"efficient-easel/draw";import{sideLengthAt as bce}from"efficient-easel/screen/lib/content/length-units";var Sce="sf-block-size",cf=["width","minWidth","maxWidth"],Ex=e=>`${e}Unit`,dn=e=>typeof e=="number"&&Number.isFinite(e)&&e>=0?e:void 0,wce={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"}},y4={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"}},Cce={desktop:y4.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"}},vce={two:{desktop:"view-wide:[.flex-row>*>&]:grow"},three:{desktop:"view-desktop:[.flex-row>*>&]:grow",tablet:"view-wide:max-view-desktop:[.flex-row>*>&]:grow"}},b4="max-view-wide:grow!";function S4(e){return _x(e).mode.phone==="fill"}var kce={desktop:"--sf-bw",tablet:"--sf-bw-t",phone:"--sf-bw-p"},Tce={fill:"data-sf-width-fill",fixed:"data-sf-width-fixed"},Pce="data-sf-min-width",x4={two:{desktop:"wide",phone:My.phone},three:My},Ece={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)]"]}},_ce={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)]"]}},Oce=["widthFit",...cf],g4={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!"},Ace={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!"},w4={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"},Rce={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:w4.phone},C4={desktop:"view-wide:max-w-full",phone:"max-view-wide:max-w-full"},I4={desktop:"view-desktop:max-w-full",tablet:"view-wide:max-view-desktop:max-w-full",phone:C4.phone};function v4(e){let o=_x(e);return o.sides.filter(t=>o.mode[t]==="fill").map(t=>vce[o.three?"three":"two"][t]).filter(Boolean).join(" ")}function k4(e){let{three:o,sides:t,mode:r,lengthPerSide:a}=_x(e),n=d=>o?x4.three[d]:x4.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[Tce[d]]=s[d].join(" "));return s.min.length&&(l[Pce]=s.min.join(" ")),l}function _x(e){let o=Oce.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[h4(a,da(l))]=dn(e[a]?.[l]),s[h4(n,da(l))]=e.units?.[a]?.[l];let i=l=>bce(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?Cce:y4,n=r?_ce:Bv,s=r?Ace: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]:wce[A][E]),E==="fixed"&&(l[kce[A]]=Me(h[A]?.value??Ice.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]:Ece[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,g4));return}if(i.push(U(Nv,g4)),i.push(U(Rce,w4)),f&&!R&&A==="desktop")for(let Z of["desktop","tablet"])L[Z]||i.push(I4[Z]);else L[A]||i.push(U(I4,C4))};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:[Sce,...i].join(" "),style:l,attrs:d}}function zGe(e){if(dn(e.maxWidth?.desktop)!==void 0)return!0;let o=Px(e.widthFit?.desktop);return o==="fill"||o==="fixed"}function T4(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 yce){let r=e[t],a=e[m4(t)],n=e[u4(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[m4(s)],phone:e[u4(s)]};(i.desktop!==void 0||i.tablet!==void 0||i.phone!==void 0)&&((o.units??={})[t]=i)}return o}var P4={label:"Button",defaultProps:{label:"",href:"#",variant:"primary",align:"left",contained:!0}};import{parseHexColor as Lce}from"efficient-shell/format";import{convertLength as Fce}from"efficient-easel/screen/lib/content/length-units";var ea=(e,o,t,r)=>o===t?e:Fce(e,o,t,r,{min:0,max:200,step:4}),Rs={textFit:"line",textFitPhone:"wrap"},Ls={...j,[vt]:""},{label:yje,href:bje,...Bce}=P4.defaultProps,Ro=Bce,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,...VL,...$L,"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]],Nce={kind:"heading-case-upper",styles:["heading-1","heading-2","heading-3"]},Sje=e=>o=>no(o.props[e])?[Nce]:[],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})]}),E4=e=>e.background!=="transparent",Dce=(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"},Mce=(e,o,t)=>{let r=a=>Dce(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={})=>Mce(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,_4="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,O4=e=>e.startsWith("#")&&Lce(e)!==null,Lx=(e,o,t)=>{let r=e?.trim();if(r&&O4(r))return{fillColor:r};let a=Pb(r);if(a)return ia(a);let n=r===_4?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===_4||O4(o)?void 0:"it paints a colour that no Box Fill can hold"},pn=(e,o)=>{let t=_s(o)?.themes;return t&&E4(e)?P_(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?E_(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)=>E4(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 sde,newId as ide}from"efficient-easel/data";function A4(e){return Math.min(4,Math.max(2,e??3))}var kje={eyebrow:"Label",title:"Section *heading.*"},Hce=yp.Cards,R4={label:"Cards",fields:Hce,defaultProps:{eyebrow:"",title:"",items:[],columns:3}};var Eje={eyebrow:"Highlight",title:"Key *features.*"},_je=()=>[{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")}],L4={label:"Key Features",defaultProps:{eyebrow:"",title:"",items:[],columns:3}};var Hv="cardPlace";function Rje(e){return e[Hv]==="top-line"?"top-line":""}var Lje="absolute left-5 top-0 z-10 -translate-y-1/2 bg-bg px-2",Fje="data-sf-top-line",Wce=new Set(["Cards",Oo]);function Bje(e){return typeof e=="string"&&Wce.has(e)}var $ce=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 Nje(e,o,t){return!t||!o?.linesBetween||o.index!==0?e:$ce(e)?{...e,top:0}:e}var Dje="outsideFramedCard";var Bx={sectionBorder:{top:0,right:1,bottom:1,left:0},...ia("background")},Uce={gap:0,gapPhone:0,sectionBorder:{top:1,right:0,bottom:0,left:1},shadow:!0},Ns=e=>({direction:"row",columns:e,columnsTablet:e,...Uce}),F4=(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]??[],F4()]}}},Wv=(e=!1)=>{let o=mi(e);return{...o,props:{...Bx,...o.props}}},zce={name:"name",time:"time",note:"note",price:"price"},Gce={textStyle:"body-1",...z("body",16),weight:500,lineHeight:1.5},jce={...ft,...z("label",12),letterSpacing:.18,lineHeight:1.5},Kce={textStyle:"body-1",...z("body",14),lineHeight:1.6},Vce={textStyle:"body-1",fontRole:"heading",...z("headingSmall",20),weight:500,color:"accent",lineHeight:1.5},Yce={...z("label",11),letterSpacing:.25},qce={gap:16,gapPhone:16,sectionBorder:{top:0,right:0,bottom:0,left:0},shadow:!1},Nx=e=>({direction:"row",columns:e,...qce}),$v=[...new Set([...Object.keys(Ns(1)),...Object.keys(Nx(1))])],Uv=()=>{let e=zce,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]:[F4(Yce),{type:Y,props:{...N,name:"Words",gap:8,gapPhone:8},slots:{[De]:[Ze(e.name,{...j,...o},Gce),Ze(e.time,{...ne,...o},jce),Ze(e.note,{...ne,...o},Kce)]}},Ze(e.price,{...j,...o},Vce)]}}};import{tabletKey as M4}from"efficient-easel/draw";import{VIEW_DESKTOP_MIN as Dx}from"efficient-easel/draw";var Mx=Br,zv=Dx,B4=960,N4=Br,D4={min:Mx,max:1600,step:10},Hx="stackBelow";function Yje(e){if(!(typeof e!="number"||!Number.isFinite(e))&&!(e<D4.min||e>D4.max))return Math.round(e)}var Xce=e=>`sf-stack-${e}`,Zce=e=>`sf-stack-${e}-gutter`,Jce=e=>`sf-stack-${e}-outer`,Nl=e=>`${e-.02}px`;function qje(e,o={}){let t=o.gutter!==!1,r=`.${Xce(e)}`,a=`.${Zce(e)}`,n=`.${Jce(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<B4&&s.push(`@media (min-width:${e}px) and (max-width:${Nl(B4)}){${a}${a}{padding-inline:${_t}}}`),e>N4&&s.push(`@media (min-width:${N4}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},Qce={SectionHeader:"accent",FAQ:"accent",FitmentFinder:"accent",FitmentTable:"accent",SpecTable:"accent",RelatedProducts:"accent",Collections:"accentNum"};function ede(e){if(e==="SectionHeader")return{num:"num",title:"title",description:"description",link:!0};let o=$(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=U4({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,ode=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}}),$4={...Ro,align:"right",alignPhone:"left",...Fs},Gv=e=>({kind:"button",key:"linkText",href:"linkHref",variant:"ghost",props:$4,style:{...cr(e),color:"labels"}}),H4=(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"?tde(la()):{},...t.style}}}}},tde=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 rde(e,o){let t=$(Qce,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?[H4(o.num,"==01== / Collections",n)]:[]]},{kind:"group",name:"Heading",props:{...N,...Dl},parts:[s,...i?[H4(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:{...$4,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 U4(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,[M4("maxWidth")]:ode,maxWidthPhone:Kv},parts:e.description?[Vv(e.description,14,void 0,{lineHeight:1.5},{[M4("align")]:"left"})]:[]}]}}function W4(e,o){return{kind:"group",name:"Header",props:{...N,gap:16,gapPhone:16},parts:[Ux(e.num,13),zx(e.title,o)]}}var z4=[["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}]],ade=e=>z4.some(([o])=>o===e.titleSize)?e.titleSize:"lg";function nde(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}),...z4.map(([o,t])=>({...zx(e.title,t),when:r=>ade(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=ede(e),r=Ds(e),a=r==="editorial"?U4(t):r==="simple"?W4(t,qv):r==="essay"?W4(t,{...z("headingMedium",38,28,"headingSmall"),case:"upper",lineHeight:1,letterSpacing:-.02}):r==="shelf"?nde(t):rde(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}}),t5=e=>o=>A4(q(o.columns)??q(e.columns)),lde="inline is the head the row draws; an own-box node is skipped (`skip`)",cde={kind:"text",key:"title",role:"heading",props:j,style:{textStyle:"heading-3",...qv}},G4={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,dde={...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},j4={...N,direction:"row",justify:"between",gap:12,share:"content",phoneRow:2,[Jv("share")]:"content"},fde=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},K4=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}:{}})),pde=ek([["num","Number"],["since","Corner note"],["title","Card title"],["body","Card body",!0],["count","Count"],["countLabel","Count word"]]),ude=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)]})}]}),r5=e=>Array.isArray(e.cards)?e.cards:[],V4={top:76,bottom:76,topPhone:76,bottomPhone:76},a5=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})),mde=e=>a5(e).some(o=>be(o.href)!==void 0),n5=[{key:Iy.label,label:"Feature label"},{key:Iy.href,label:"Link",kind:"link"}],Y4=e=>LM(e.eyebrowLook,"KeyFeatures")==="filled",hde={name:"Key Features",boxProps:(e,o)=>({...Q,direction:"column",gap:44,gapPhone:32,...bt("surface")(e,o),...hf(1,0,1,0),...ie(e,V4)}),box:[...re,...ge(V4)],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:Y4},{...Ie("eyebrow"),when:e=>!Y4(e)},cde]},xf("Cards",e=>({...N,...Ns(t5(L4.defaultProps)(e))}),n5,a5,e=>Wv(mde(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"}},q4={top:72,bottom:72,topPhone:72,bottomPhone:72},X4=(e,o)=>({...Bx,...bt("background")(e,o)}),Z4=e=>{let o=t5(R4.defaultProps)(e);return{...N,...Ns(o)}},xde=ek([["title","Card title"],["body","Card body",!0]]),s5=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)})),i5=e=>{let o={},t={};for(let[r,a]of Object.entries(e.props??{}))r!=="id"&&(sde(a)?t[r]=a.map(i5):o[r]=a);return{type:String(e.type),props:o,...Object.keys(t).length?{slots:t}:{}}},J4=(e,o)=>{let t=Zv(e)?Wv(gde(e)):Bl(),r=Array.isArray(e.template)?e.template.map(i5):[t],[a]=r;return r.length===1&&a.type===Y?{...a,props:{...X4(e,o),...a.props}}:{type:Y,props:{...N,...X4(e,o),name:"Card"},slots:{[De]:r}}},Zv=e=>e.cardStyle==="label-only",l5=e=>s5(e).map((o,t)=>{let r=e.items[t]?.href;return Yx({key:o.key,title:o.title,href:typeof r=="string"?r.trim():""})}),gde=e=>l5(e).some(o=>be(o.href)!==void 0),Q4=e=>Array.isArray(e.template)&&e.template.length===0,e5=["dataSource","dataSourceOptions","highlightedCard","highlightBadge"];function c5(){let e=t=>({key:ide("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 Ide={name:"Cards",ownBoxConverts:!0,boxProps:(e,o)=>({...Q,direction:"column",gap:36,gapPhone:28,...bt("surface")(e,o),...ie(e,q4)}),box:[...re,...ge(q4)],parts:[{...Zt("Cards"),when:e=>!Fv(e)},{...xf("Cards",Z4,xde,s5,J4,{reads:["items"],keep:e5}),when:e=>!Q4(e)&&!Zv(e)},{...xf("Cards",Z4,n5,l5,J4,{reads:["items"],keep:e5}),when:e=>!Q4(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)"}},yde={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,G4)}),box:[...re.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,t)=>Kx(o)?un(e,o,t):e],...ge(G4)],skip:e=>Fx(Vx(e)),site:(e,o)=>Kx(e.props)?mn(e,o):[],parts:[Zt("Series"),xf("Cards",fde,pde,e=>r5(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:{...dde,...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:{...j4,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:{...j4,name:"Footer",align:"center",gap:0,gapPhone:0,sectionPaddingTop:16,sectionPaddingTopPhone:16,...hf(1,0,0,0),...K4(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)]}},...K4(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:lde}},o5={top:60,bottom:60,topPhone:40,bottomPhone:40},bde={...N,direction:"row",columns:3,gap:40,gapPhone:16},Sde={...N,gap:8,gapPhone:8,...Zo(24),...hf(1,1,1,1)},wde={name:"Document Detail Cards",boxProps:e=>({...Q,direction:"column",gap:40,gapPhone:16,...hf(0,0,1,0),...ie(e,o5)}),box:[...re,...ge(o5)],parts:[xf("Cards",bde,ude,e=>r5(e).map(o=>Yx({label:Jt(o.label),value:Jt(o.value),body:Jt(o.desc)})),(e,o)=>({type:Y,props:{...Sde,...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}},d5={Cards:Ide,KeyFeatures:hde,Series:yde,DocMetaCards:wde};import{phoneKey as Tde}from"efficient-easel/draw";import{newId as Pde}from"efficient-easel/data";import{phoneKey as Cde}from"efficient-easel/draw";import{isNode as gf}from"efficient-easel/data";var Ml="cardStyle";function f5(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,[Cde("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:f5(qx.table.card)},list:{...qx.list,listCard:f5(qx.list.card)}},RKe=[{label:"Table",value:"table"},{label:"List",value:"list"}],LKe=e=>e==="table"||e==="list",vde=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 vde(o))delete r[a];return{...r,...structuredClone(Qt[t][o])}}function kde(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 FKe(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?kde(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 p5(e){let o=`${ok(e.prefix)}${ok(e.value)}`,t=ok(e.suffix);return e.emphasizeAll===!0?o?`==_${o}_==`:"":`${o}${t?`==_${t}_==`:""}`}var h5={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:h5}},box:[["value","text",(e,o)=>p5(o)]],when:(e,o)=>o!==void 0&&typeof o.value=="string"&&p5(o)!==""},u5=e=>no(e?.supSuffix),x5={textStyle:"body-1",fontRole:"heading",...z("body",16),lineHeight:1.5,letterSpacing:-.01},g5={color:"labels",...z("label",12),lineHeight:1.5,letterSpacing:.24},I5={...N,direction:"row",align:"start",gap:32,gapPhone:32,share:"content",phoneRow:2,[Tde("share")]:"content"},y5={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}),Ede=(e,o)=>yf(e)?bt("background",(t,r)=>Rx(Xx(t),r))(e,o):{},_de={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,...Ede(e,o)}),parts:[{...tk,when:(e,o)=>!u5(o)&&tk.when(e,o)},{kind:"group",name:"Figure",props:I5,when:(e,o)=>u5(o),parts:[tk,{kind:"text",key:"supSuffix",props:j,style:y5}]},{kind:"group",name:"Words",props:{...N,gap:4,gapPhone:4},parts:[{kind:"text",key:"label",props:j,style:x5},Ie("sub",g5)]}]}]}],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"}},Ode=new Set(["value","label",vt]),m5={top:48,bottom:48,topPhone:48,bottomPhone:48},Ade=e=>{let o=Vr(typeof e.background=="string"?e.background:void 0,Ms.Stats);return!!o&&o!=="transparent"},Rde={name:"Stats",skip:e=>Ade(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=>!Ode.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,m5)}),box:[...re,...ge(m5)],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"}},b5={StatsParagraph:_de,Stats:Rde};function S5(){return{eyebrow:c("By the numbers"),title:c("What we count."),desc:c("A few numbers that matter to us."),stats:[],background:"transparent"}}var Lde=[{key:"figure",label:"Figure"},{key:"superscript",label:"Superscript"},{key:"label",label:"Label"},{key:"body",label:"Text",multiline:!0}];function w5(){let e=(o,t,r,a="")=>({key:Pde("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 Fde(e){return{type:Y,props:{...N,name:"Card",...structuredClone(Qt[e].listCard)},slots:{[De]:[{type:Y,props:{...I5,name:"Figure"},slots:{[De]:[Ze("figure",Ls,h5),Ze("superscript",j,y5)]}},{type:Y,props:{...N,name:"Words",gap:4,gapPhone:4},slots:{[De]:[Ze("label",{...j,widthFit:"fill"},x5),Ze("body",{...j,widthFit:"fill"},g5,!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,Lde),slots:{[Ue]:[Fde(o)]}}]}}}var C5={heading:"Ways to pay"},v5=()=>[{label:"Visa"},{label:"Mastercard"},{label:"Amex"},{label:"PayPal"}],k5=()=>[{text:c("Secure encrypted checkout")},{text:c("30-day returns")}],JKe={label:"Payment Methods",drawsPictures:!0,defaultProps:{heading:"",badges:[],assurances:[],contained:!0}};import{hiddenKeyOf as Bde}from"efficient-easel/screen/lib/content/view-hide";var Zx="Flex",Nde={FooterMenu:"MenuBlock",FooterEmailSignup:"EmailFormBlock",FooterSocial:"SocialLogosBlock"},Dde={FooterPayment:"PaymentLogosBlock"},Mde=e=>{let{id:o,...t}=e;return t},T5=e=>typeof e=="string"?e:"",Hl={sm:12,md:13,lg:15},P5={sm:{mark:16,words:Hl.sm},md:{mark:20,words:Hl.md}},Hde="md",E5=1.5,Wde={size:13,lineHeight:E5,width:280},$de=14,Ude=40,zde=e=>e==="center"||e==="right"?e:"left";function Gde(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 jde(e,o,t){let r=t(e,Mde(o));if(Array.isArray(o.template))return{...r,props:{...r.props,template:_5(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 _5(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]=_5(a[n],o,t);return{...r,props:a}})}function O5(e,o,t){let r=e.props??{},a=t?.(e,o);if(a)return a;let n=$(Nde,e.type)??$(Dde,e.type);if(n)return[jde(n,r,o)];switch(e.type){case"FooterLogo":{let s=zde(r.align),i=o("LogoBlock",{...r.reverse?{reverse:r.reverse}:{},...typeof r.customColor=="string"&&r.customColor?{customColor:r.customColor}:{},heightPx:Math.round(PO*((q(r.widthPct)??100)/100)),href:"/",align:s,...Gde(r)}),l=T5(r.tagline).trim();return l?[i,o("Text",{text:l,tone:"dim",align:s,_partStyles:{text:{...Wde}}})]:[i]}case"FooterText":{let s=typeof r.size=="string"&&He(Hl,r.size)?r.size:Hde;return[o("Text",{text:T5(r.text),tone:typeof r.tone=="string"?r.tone:"default",_partStyles:{text:{size:Hl[s],lineHeight:E5}}})]}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?{[Bde("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=>O5(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:Ude,content:f}),s=[],i=[];for(let f of a){let u=O5(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:$de,align:"stretch",...ly,content:u}))}(i.length||!s.length)&&s.push(n(i));let l=o(Zx,{direction:"column",content:[o("LegalLineBlock")]}),d=l1(ze,t,[...s,l]);return{...d,props:{...d.props,...e?.props?.width==="full"?{fullWidth:!0}:{}}}}import{phoneKey as sk,readHidable as Kde}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}},Vde={...Ie("heading",{color:"labels",letterSpacing:.2}),props:{...j,align:"center"}},Yde={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:[Vde,{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"}},qde={kind:"group",name:"Mark",keepEmpty:!0,parts:[],props:$E(4,"main",{sectionCorners:2})},A5={top:24,bottom:24,topPhone:24,bottomPhone:24},Xde={name:"Payment Methods",boxProps:e=>({...Q,direction:"column",...ie(e,A5)}),box:[...re,...ge(A5)],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=>Kde(e.text).hidden?{props:{_hidden:!0}}:{},parts:[qde,{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`)"}},R5=e=>EE(e.align)??"left",L5=e=>e.size==="md"?"md":"sm",F5=12,B5={name:"Payment logos",boxProps:e=>({...N,direction:"row",wrap:!0,align:"center",justify:_p[R5(e)],gap:F5,gapPhone:F5,phoneRow:2,[sk("share")]:"content"}),box:[...Ga],parts:[{kind:"text",key:"lead",props:ne,styleFrom:e=>({size:Hl[L5(e)],lineHeight:1.5})},{kind:"core",keep:[],as:"Logos",derive:{reads:[_o,ra],props:e=>({logoHeight:P5[L5(e)].mark,align:R5(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"}},N5={Logos:Yde,PaymentBadges:Xde,FooterPayment:B5,PaymentLogosBlock:B5},D5=()=>({heading:W2.heading,items:dx()}),M5=()=>({heading:C5.heading,badges:v5(),assurances:k5()}),H5=()=>({...mm,methods:[]});import{mixHex as ofe}from"efficient-shell/format";import{MOTION_EASING as Zde,MOTION_TIMING as W5,motionSeconds as $5}from"efficient-shell/format";var ck="none",Jx=[{label:"None",value:"none"},{label:"Marquee",value:"scroll"}];function E8e(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"}],Jde={left:"storefront-ticker",right:"storefront-ticker-right",up:"storefront-ticker-up",down:"storefront-ticker-down"};function U5(e){return go(dk,wf,e)}function z5(e){return e==="up"||e==="down"}function Qx(e){return $5("loop","duration",e.loopDuration!=null?e.loopDuration:e.speed)}var _8e=W5.loop.duration.default,Qde=W5.loop.delay.default;function G5(e){return $5("loop","delay",e.loopDelay)}function O8e(e,o,t=Qde){return`${Jde[e]} ${o}s ${Zde.loop}${t?` ${t}s`:""} infinite`}var eg="_gEntrance";var F8e="none",B8e=[{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 j5="sf-ticker-join";function efe(e){return e==="above"?"sf-ticker-join-above":"sf-ticker-join-below"}function K5(e){return`absolute inset-x-0 ${efe(e)}`}var Hs={direction:"row",share:"content",align:"center"},Cf={top:14,bottom:14,topPhone:12,bottomPhone:12},tg={wrap:"nowrap",loop:"scroll",sectionAccent:X_,gap:60,gapPhone:32,separator:"dot",sectionBorder:{top:1,bottom:1}},V5={gap:120,gapPhone:64},rg={...ft,sizeToken:{step:"label",px:14,pxPhone:12},letterSpacing:.25,lineHeight:1.5},Y5={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 q5=e=>e.size==="display",tfe=(e,o)=>{let t=Ax(e,o),r=e.tone!=="plain"&&t?.text&&t.background?ofe(t.text,t.background,.3):null;return r?{color:r}:{}},rfe=(e,o)=>e.tone!=="plain"&&Wr(e.sectionAccent)===null?bt("background")(e,o):{},X5=(e,o)=>({kind:"list",key:"items",name:"Item",flat:!0,when:o,parts:[{kind:"text",key:"text",props:ne,style:e,styleFrom:tfe}]}),afe={name:"Scrolling Bar",boxProps:(e,o)=>({...Q,...Hs,...tg,...AE[iy(e.separator)]===""?V5:{},...ie(e,Cf),...rfe(e,o)}),box:[["scrollDirection","scrollDirection",e=>U5(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:[X5(rg,e=>!q5(e)),X5(Y5,q5)],drop:{...oe,...se,size:"each item's Text style: Small \u2192 Body 5, Display \u2192 Heading 3"}},Z5=e=>e?.tone==="muted",J5=e=>Yp(_s(e)),nfe={name:"Spec Strip",boxProps:(e,o)=>({...Q,...Hs,...kf,...e.fill==="none"?{sectionBorder:{top:1}}:{sectionAccent:J5(o)},...ie(e,vf)}),box:[...re.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,t)=>o.fill==="none"?e:J5(t)],...ge(vf)],parts:[{kind:"list",key:"cells",name:"Cell",flat:!0,parts:[{kind:"text",key:"text",props:j,style:Tf,when:(e,o)=>!Z5(o)},{kind:"text",key:"text",props:ne,style:Tf,when:(e,o)=>Z5(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"}},Q5={Ticker:afe,SpecStrip:nfe};import{tabletKey as e3}from"efficient-easel/screen/lib/content/view-tiers";var o3={direction:"column",justify:"between",gap:14,gapPhone:14,sectionPaddingLeft:14,sectionPaddingRight:14,[e3("sectionPaddingLeft")]:0,sectionPaddingLeftPhone:0,sectionHeightMode:"fixed",sectionHeightValue:280,sectionHeightUnit:"px",[e3("sectionHeightMode")]:"auto",sectionHeightModePhone:"auto"},fk={name:"Year and title",direction:"column",gap:14,gapPhone:14};import{tabletKey as sfe}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},t3=()=>[{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.")}],oVe={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},r3=()=>[{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}],sVe={label:"Milestone Timeline",defaultProps:{eyebrow:"",title:"",intro:"",entries:[],ctaText:"",ctaHref:"",background:id,padTop:120,padBottom:120}};var c3={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}),a3=(e,o)=>o?.future===!0,sg=e=>s2(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"},ife={name:"Milestone Timeline",skip:e=>Fx(xk(e)),boxProps:(e,o)=>{let t=pn(pk(e),o);return{...Q,direction:"column",gap:60,[sfe("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,...o3},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)=>!a3(e,o)}),er("date",lg(13,.22,{color:"labels"}),{when:a3}),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",...c3},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),d3=e=>Ik(e)==="spine",lfe=e=>gk(e)&&!d3(e),n3=(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"}})]}]}),s3=(e={})=>({kind:"button",key:"ctaText",href:"ctaHref",variant:"ghost",props:{...Ro,...e,...c3},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"}}),i3=wt("headingMedium",40,5,76),l3={sectionBorder:{bottom:1}},cfe={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",...l3,...Xt(e,"Timeline")}:{...Q,direction:"column",gap:48,gapPhone:48,align:"center",...l3,...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(i3,-.03,.94)},{role:"heading",mark:"accentItalic"}),er("intro",Pf(z("body",14),1.6),{props:{...ne,maxWidth:360},mark:"accentItalic"}),n3(667,419,{},()=>!0),s3()]},{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(i3,-.03,.94)},{role:"heading",mark:"accentItalic"}),hk("intro",Pf(z("body",14),1.6),{props:{...ne,maxWidth:520},mark:"accentItalic"}),s3({align:"center"})]},n3(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:d3,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:lfe,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)"}},f3=()=>({eyebrow:ag.eyebrow,title:vr(ag.title),intro:ag.intro,ctaText:uo.text,ctaHref:uo.href,entries:t3()}),p3=()=>({eyebrow:ng.eyebrow,title:vr(ng.title),intro:ng.intro,ctaText:uo.text,ctaHref:uo.href,entries:r3()}),u3={TimelineTrack:ife,Timeline:cfe};import{tabletKey as mfe}from"efficient-easel/draw";import{rootIsDark as dfe}from"efficient-shell/format";function wVe(e="auto"){return e==="light"?!0:e==="dark"?!1:!dfe({whenUnset:!0})}function m3(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 ffe=["tall","square","wide"],pfe="tall";function h3(e){return ffe.includes(String(e??""))?String(e):pfe}var kVe={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"},TVe=[{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:""}],ufe=/^https?:\/\//i;function PVe(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:ufe.test(o)?o:""}}function bk(e){let o=String(e??"").split(" \xB7 ");return{state:(o[0]??"").trim(),country:(o[1]??"").trim()}}var EVe="other",_Ve={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 x3(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),k3=e=>`loc-${e}`,T3=e=>or(e.state).trim()||bk(or(e.region)).state,P3=e=>or(e.country).trim()||bk(or(e.region)).country,g3=e=>[T3(e),P3(e)].filter(Boolean).join(" \xB7 "),hfe=e=>wk(e).some(o=>or(o.photo).trim()!==""),xfe=e=>wk(e).some(o=>m3(Number(o.lat),Number(o.lng))),gfe=(e,o)=>wk(e).filter(t=>Ul(t)===Ul(o)).length,Ife=(e,o)=>gfe(e,o)===1?"wide":h3(e.imageShape),Sk={top:100,bottom:100,topPhone:60,bottomPhone:60},I3=48,kr=(e,o={})=>({...cr(e),...o}),Ck={top:1,right:1,bottom:1,left:1},vk={...N,direction:"row",share:"equal",gap:0},yfe=e=>o=>o>sf(o)?{...N,gap:0}:{...vk,...o>1?{phoneRow:e}:{}},kk=!0,bfe={kind:"group",name:"Gallery",props:{...N,gap:20,...kk?{_hidden:!0}:{}},when:hfe,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:`#${k3(o)}`,boxShape:Ife(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:yfe(2),perRow:sf,rowName:"Row",rowProps:{...vk,phoneRow:2}}}]}]},Sfe={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)=>g3(t)]),when:(e,o)=>g3(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=>x3(or(e))??"#"]],when:(e,o)=>or(o?.phone).trim()!==""},{kind:"text",key:"hours",props:ne,style:kr(12,{letterSpacing:.18,lineHeight:1.7})}]},wfe={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)=>T3(t)]),...["region","country"].map(e=>[e,"country",(o,t)=>P3(t)])]},Cfe={kind:"group",name:"Map",props:{...N,sectionBorder:{top:1,right:0,bottom:0,left:0}},parts:[wfe]},vfe={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:k3(o)}}),parts:[Sfe,Cfe],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),[mfe("columns")]:1})}},y3=kr(10,{letterSpacing:.25}),kfe={kind:"block",type:Jr,props:{...N,name:"Credit",direction:"row",justify:"end",align:"center",gap:6,share:"content",wrap:!0},when:xfe,slot:Qr,keepEmpty:!0,parts:[{kind:"block",type:"Text",props:{...ne,text:"Location coordinates \xA9",_partStyles:{text:y3}}},{kind:"block",type:"ButtonBlock",props:{...Ro,...Fs,variant:"ghost",arrow:!1,label:"OpenStreetMap contributors",href:"https://www.openstreetmap.org/copyright",_partStyles:{label:{...y3,color:"labels"}}}}]},b3=(e,o)=>Object.fromEntries(o.filter(t=>e[t]!==void 0).map(t=>[t,e[t]])),S3=["sectionPaddingTop","sectionPaddingTopTablet","sectionPaddingTopPhone"],w3=["sectionPaddingBottom","sectionPaddingBottomTablet","sectionPaddingBottomPhone"],C3=e=>e.map(o=>[o,o,(t,r)=>ie(r,Sk)[o]]),v3=["sectionAccent","sectionAccent",un],Tfe=[...Ga,...Ni,...Object.values(Be)],Pfe={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,...b3(ie(e,Sk),S3),sectionPaddingBottom:I3,sectionPaddingBottomPhone:I3,...Bs(e,o)}),box:[...re.filter(e=>e!=="sectionAccent"&&e!=="anchor"),v3,["anchor","anchor",e=>Uc(e).trim()?e:"studios"],...C3(S3)],parts:[$x("sectionNumber","heading","tagline"),bfe],also:[{name:"City maps",boxProps:(e,o)=>({...Q,direction:"column",gap:40,sectionBorder:{bottom:1},...St,sectionPaddingTop:0,sectionPaddingTopPhone:0,...b3(ie(e,Sk),w3),...Bs(e,o)}),box:[...Tfe,v3,...C3(w3)],parts:[vfe,kfe]}],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)"}},E3={ContactLocations:Pfe};import{SITE_SIDE as _3,sideLengthAt as Efe}from"efficient-easel/screen/lib/content/length-units";import{viewKeyAt as Tk}from"efficient-easel/draw";var _fe=["FAQ","Footprint","LongRead","ProcessSteps","RelatedProducts"];var hn=(e,o)=>()=>({top:e,topPhone:o}),O3=e=>o=>{let t=Il(e),r={...o,[jr.top]:td(o,t).top},a=l=>{let d=Efe(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}:{}}},Ofe={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:O3("Footprint"),ProcessSteps:O3("ProcessSteps"),ProductGrid:e=>({top:q(e.padTop)??120,topPhone:0})};function Afe(e,o={}){let t=$(dr,e),r=$(Ofe,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&&IM.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 Rfe={...N,direction:"accordion",rowStyle:"numbered"},Lfe={sectionPaddingLeft:_3,sectionPaddingRight:_3},Ffe={Footprint:{slots:{[Ue]:[QE()]},pressHeading:!0},ProcessSteps:{slots:(e,o)=>o.press?{[mc]:JH().map(t=>({...t,props:{...t.props,...Lfe}}))}:{},boxProps:{gapPhone:mf.editorial}},FAQ:{slots:{[Ue]:[JE()]},pressHeading:!0,coreBox:{name:"Questions",props:Rfe},coreProps:{sectionAccent:Hr},roomBelow:{bottom:120,bottomPhone:70},boxProps:(e,o)=>o.press?{}:{[uM]:Is},skip:e=>{let o=e._partStyles??{},t=ZE().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}}},A3=Object.fromEntries(_fe.map(e=>[e,Afe(e,$(Ffe,e))]));import{BLOCK_WIDTH_LIMIT as Bfe}from"efficient-easel/draw";var dg={eyebrow:Ye.eyebrow,title:Ye.headingAccent,deck:"Add a sentence or two introducing this document."},p7e={label:"Document masthead",defaultProps:{eyebrow:"",title:"",deck:"",meta:[]}};var H3={minWidth:Bfe.min},R3=(e,o,t)=>({...Ie(e,{...o,...df}),props:{...j,align:"right",...Rs,...t}}),W3={top:1,bottom:0},Ek=(e,o,t,r)=>({kind:"group",name:e,props:{...N,sectionPaddingBottom:o,sectionPaddingBottomPhone:t},parts:[r]}),L3={widthFit:"fill",...H3},F3={top:100,bottom:60,topPhone:60,bottomPhone:40},Nfe={...z("label",13),letterSpacing:.22,lineHeight:1.8},B3={textStyle:"heading-1",...wt("headingLarge",56,8,128),case:"upper",weight:500,lineHeight:.88,letterSpacing:-.04},Dfe=()=>({name:"Page Header",boxProps:e=>({...Q,direction:"column",gap:0,sectionBorder:{bottom:1},...ie(e,F3)}),box:[...re,...ge(F3)],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",...L3},style:B3,mark:"accentItalic",when:e=>!Sv(e)},{kind:"text",key:"title",role:"heading",props:{...j,tag:"h2",...L3},style:B3,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",Nfe,Rs)]}]}]},{kind:"group",name:"Deck",props:{...N,maxWidth:760,sectionBorder:W3,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"}}),$3=()=>({eyebrow:dg.eyebrow,title:vr(dg.title),deck:dg.deck,meta:[{label:Ye.label,value:Ye.value},{label:Ye.label,value:Ye.value}]}),N3={top:80,bottom:40,topPhone:60,bottomPhone:32},Mfe={...z("label",13),letterSpacing:.18,lineHeight:1.8},D3={...z("label",13),letterSpacing:.22,lineHeight:1.9},Hfe=()=>({name:"Issue Header",boxProps:e=>({...Q,direction:"column",gap:0,sectionBorder:{bottom:1},...ie(e,N3)}),box:[...re,...ge(N3)],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",Mfe)]}]}]},{kind:"group",name:"Bottom",props:{...N,direction:"row",align:"start",justify:"between",gap:60,gapPhone:16,share:"content",sectionBorder:W3,sectionPaddingTop:32},parts:[{kind:"text",key:"lead",props:{...j,maxWidth:720,...H3},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:[R3("text",{color:"labels",...D3})]}]},R3("issueTotal",D3)]}]}],drop:{...oe,...se}}),M3={top:24,bottom:24,topPhone:16,bottomPhone:16},Pk={color:"labels",...z("label",13),letterSpacing:.2},U3=e=>(Array.isArray(e.items)?e.items:[]).filter(o=>o&&typeof o.label=="string"&&o.label.trim()!==""),_k=(e,o)=>o!==void 0&&U3(e).at(-1)===o,z3=(e,o)=>o!==void 0&&U3(e).includes(o),Wfe=(e,o)=>z3(e,o)&&!_k(e,o)&&no(o?.href),$fe=()=>({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,M3)}),box:[...re,...ge(M3)],parts:[{kind:"list",key:"items",name:"Crumb",flat:!0,parts:[{kind:"button",key:"label",href:"href",variant:"ghost",when:Wfe,props:{...Ro,...Fs,icon:"none"},style:Pk},{...Ie("label",Pk),when:(e,o)=>z3(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"}}),G3={DocMasthead:Dfe(),Masthead:Hfe(),Breadcrumb:$fe()};import{BLOCK_WIDTH_LIMIT as zfe,hiddenKeyOf as Gfe}from"efficient-easel/draw";import{readHidable as Ok}from"efficient-easel/draw";function Ufe(e,o,t){return e||(t?.isEditing?c(o):void 0)}function T7e(e,o,t){let r=Array.isArray(e)?e:[];return r.length?r:t?.isEditing?o:[]}function j3(e,o,t){let r=Ok(e);if(!r.hidden)return Ufe(r.text,o,t)}function K3(e){if(e==null)return;let o=Ok(e);return o.hidden?"":o.text}function P7e(e,o,t){return Ok(e).hidden?"":j3(e,o,t)}function E7e(e,o,t){return{text:j3(e,uo.text,t),href:o||uo.href}}var X3="MenuBlock",Ak=e=>(Array.isArray(e)?e:[]).filter(o=>o&&no(o.label)),V3=e=>{let[o,t]=[e.metaLabel,e.metaValue].map(a=>(K3(a)??"").trim());if(!t)return o;let r=t.includes("==")?t:`==${t}==`;return o?`${o} ${r}`:r},Y3={top:0,bottom:0,topPhone:0,bottomPhone:0},jfe={...ft,color:"labels",...z("label",12),letterSpacing:.24},Kfe={kind:"group",name:"Note",props:{...N,justify:"center",sectionBorder:{top:0,right:0,bottom:0,left:1},sectionPaddingLeft:28,[Gfe("mobile")]:!0},parts:[{kind:"block",type:"Text",when:e=>V3(e)!=="",props:e=>({...j,textFit:"line",text:V3(e),[Pd]:{text:jfe}})}]},Z3=()=>({tabs:[],metaLabel:Ye.label,metaValue:Ye.value}),q3="the note Text inside the Box (the label, then the value in the accent); no words, no Text",J3={direction:"row",menuStyle:"tabs",currentPage:!0,minWidth:zfe.min},Q3=e=>({...e,boxProps:o=>({...Q,direction:"row",align:"stretch",justify:"between",gap:0,stickTop:!0,[Ir]:0,[Ja]:!0,sectionBorder:{bottom:1},...ie(o,Y3)}),box:[...re,...ge(Y3)]}),Vfe=()=>Q3({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:q3,metaValue:q3},parts:[{kind:"block",type:X3,props:J3},Kfe],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"}}),Yfe=()=>Q3({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:X3,props:{...J3,[_o]:L0}}],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"}}),eW={DocTabs:Vfe(),CategoryBar:Yfe()};import{jsx as Ws,jsxs as Lk}from"react/jsx-runtime";import{slugify as qfe}from"efficient-shell/format";import{jsx as Rk,jsxs as oW}from"react/jsx-runtime";var W7e="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 tW=(e,o)=>e?{[Ln]:o}:{},rW=(e,o)=>Np(e?.[wc(o)]?.role,fg[o],ci),aW=120;function nW({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(oW("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",{...tW(a,"number"),style:rW(n,"number"),className:"text-accent",children:rh(s,p)});return oW("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",{...tW(a,"entry"),style:rW(n,"entry"),children:Io(u.label||"Section")}),!l&&m]},`${p}-${u.anchor}`)})]}))}function Xfe(e,o){return qfe(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=Xfe(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 Zfe=()=>[{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.")}],Jfe=aW;function sYe({tocTitle:e,sections:o,editing:t=!1,stickyTop:r=Jfe}){let a=Bk(o);if(a.length===0&&!t)return null;let n=a.length===0&&t?Zfe():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(nW,{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 sW={top:80,bottom:80,topPhone:60,bottomPhone:60},iW=18,lW=18,cW=8,Qfe=10,Mk=e=>typeof e=="string"&&e.trim()!=="",dW=e=>Bk(e.sections),epe=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},fW={textStyle:"body-1",fontRole:"accent",...z("body",17)},ope=[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:cW,sectionPaddingBottomPhone:cW},parts:[{kind:"group",name:"Heading line",props:{...N,sectionBorder:{bottom:1},sectionPaddingBottom:lW,sectionPaddingBottomPhone:lW},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:epe,parts:[{kind:"text",key:"text",props:ne,style:{...fW,lineHeight:1.7},when:(e,o)=>o?.kind==="p"},{kind:"text",key:"text",props:ne,style:{...fW,lineHeight:1.65,paragraphSpacing:Qfe},when:(e,o)=>o?.kind==="ul"}]}],tpe=900,rpe={name:"Document Text",boxProps:e=>({...Q,direction:"row",gap:80,gapPhone:40,[Hx]:tpe,sectionBorder:{bottom:1},...ie(e,sW)}),box:["anchor","sectionAccent",...Ga,...Ni,...Object.values(Be),...ge(sW)],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=>dW(e),props:{...N,gap:iW,gapPhone:iW},item:(e,o,t)=>({props:{anchor:Nk(dW(t))[o]??`section-${o+1}`}}),parts:ope}]}],reads:{tocTitle:"the Contents block's Heading"},drop:{...oe,stickyTop:"the Contents block draws DocBody's default (120px); 0 live nodes store it"}},pW={DocBody:rpe};import{phoneKey as spe}from"efficient-easel/draw";import{SITE_SIDE as ipe}from"efficient-easel/screen/lib/content/length-units";var gYe={eyebrow:"\u2014 Label",title:`Section headline *here.*
|
|
336
|
+
*Highlight line*`,body:"Describe this section in a sentence or two."},IYe={text:"Learn more"},yYe={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 uW="[--intro-edge:60px] max-[960px]:[--intro-edge:24px]",ape="overlay",npe=[{label:"Copy over image",value:"overlay"},{label:"Copy above image",value:"stacked"}];function pg(e){return go(npe,ape,e)}var wYe={desktop:40,mobile:45,min:20,max:80,step:5};function CYe(e,o){return`${typeof e=="number"?e:o}%`}var mW=(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)}}},lpe=e=>pg(e.layout)==="stacked",hW=e=>Math.min(Math.max(q(e.overlay)??60,0),100),ug=e=>q(e)??100,cpe={textStyle:"heading-1",sizeToken:{...wt("headingLarge",48,7,96).sizeToken,pxPhone:36},weight:500,lineHeight:.95,letterSpacing:-.03},dpe=[Ie("eyebrow",z("label",14)),...[!0,!1].map(e=>({kind:"text",key:"title",role:"heading",props:j,style:{...cpe,case:e?"upper":"none"},styleFrom:o=>{let t=GS(o);return mW(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 mW(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}]}],xW=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)`,fpe=()=>({name:"Scroll-Over Text",skip:e=>lpe(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:hW(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)=>hW(o)],["heightDesktop","sectionHeightValue",e=>ug(e)],["heightMobile","sectionHeightValuePhone",e=>ug(e)]],parts:dpe,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(pF.map(e=>[e,"read by its part's `styleFrom`: the unit of that view's Size"])),buttonColor:xW("Button color"),buttonTextColor:xW("Button text color"),...oe}}),yW={textStyle:"heading-2",...z("headingMedium",56,36),weight:400,lineHeight:1.05,letterSpacing:-.03},ppe={textStyle:"body-1",...z("body",16),lineHeight:1.7},bW=e=>({kind:"text",key:"body",props:{...ne,maxWidth:520},style:{...ppe,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"},upe=(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"}},SW={boxShapePhone:"landscape"},wW="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)",mpe=(e,o)=>({[e]:o,[spe(e)]:o}),hpe={textStyle:"heading-2",...z("headingMedium",40),weight:500,case:"none",lineHeight:1,letterSpacing:-.02},gW=e=>(Array.isArray(e.stats)?e.stats:[]).filter(o=>o&&(String(o.value??"").trim()!==""||String(o.label??"").trim()!=="")),xpe=()=>({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:ipe}),parts:[Ie("eyebrow",z("label",14)),{kind:"text",key:"heading",role:"heading",props:j,style:{...yW,case:"none"},mark:"accentItalic"},bW(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(gW(e).length,1),3),...mpe("sectionBorder",uf({top:1})),sectionPaddingTop:28,sectionPaddingTopPhone:28}),parts:[{kind:"list",key:"stats",name:"Stat",of:gW,props:{...N,gap:4,gapPhone:4},parts:[{kind:"text",key:"value",props:Ls,style:hpe},Ie("label",{...z("label",13),color:"labels",letterSpacing:.2})]}]}]}]},Mv("Picture","imageSrc",SW)],drop:{...oe,grayscale:wW,...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}},gpe=e=>e.textAlign==="center"||e.textAlign==="right"?_p[e.textAlign]:"stretch",Ipe=e=>Math.min(Math.max(q(e.overlay)??60,0),100),CW=e=>typeof e=="string"&&e.trim()!=="",ype={...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},IW=e=>({...Mv("Picture","imageSrc",(o,t)=>({...CW(o.imageSrc)&&Wk(o.imageOverlay)>0?{darken:Wk(o.imageOverlay),darkenStyle:"even"}:{},placement:"center",...SW,sectionBorder:uf(e?{left:1}:{right:1}),...vW(e?"left":"right",Fl(t))}),[{kind:"button",key:"imageBtnText",href:"imageBtnHref",variant:"ghost",props:ype,style:{...cr(13,12),letterSpacing:.18}}]),when:o=>o.reverse===!0===e}),vW=(e,o)=>{let t=Math.max(60-o,0);return{sectionPaddingLeft:e==="left"?60:t,sectionPaddingRight:e==="right"?60:t}},bpe={kind:"group",name:"Words",props:(e,o)=>{let t=e.reverse===!0;return{...N,justify:"center",align:gpe(e),placement:e.textAlign==="center"?"center":e.textAlign==="right"?"right":"left",...upe(e,72),gap:24,gapPhone:24,...CW(e.textBgSrc)?{darken:Ipe(e),darkenStyle:"even"}:{},...pf,sectionPaddingTop:100,sectionPaddingBottom:100,...vW(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:yW,styleFrom:e=>({case:e.uppercase===!0?"upper":"none",...mg(e)})},{...bW(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}:{}}}}]}]},Spe=()=>({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:[IW(!1),bpe,IW(!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:wW,...oe,...se}}),kW={IntroBleed:fpe(),Manifesto:xpe(),Split:Spe()};var EW={headPlacement:void 0},TW={top:0,bottom:0,topPhone:0,bottomPhone:0},wpe=()=>({name:"Form",ownBoxConverts:!0,boxProps:e=>({...Q,direction:"column",...ie(e,TW)}),box:[...re,...ge(TW)],parts:[{kind:"core",keep:"rest",props:EW}],drop:{...oe,...se}}),PW={top:120,bottom:120,topPhone:60,bottomPhone:60},Cpe=()=>({name:"Photo Submission Form",boxProps:e=>({...Q,direction:"column",gap:24,...ie(e,PW)}),box:[...re,...ge(PW)],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:EW}],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'}}),_W={Form:wpe(),SubmitBuild:Cpe()};import{phoneKey as OW}from"efficient-easel/draw";var RW=1.5,AW={textStyle:"body-1",...z("body",15),lineHeight:RW},vpe={...ft,...z("label",12),letterSpacing:.12,lineHeight:RW},LW=()=>({type:Y,props:{...N,direction:"row",justify:"between",align:"start",gap:16,gapPhone:16,share:"content",phoneRow:2,[OW("share")]:"content",[OW("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"},AW),Ze("meta",{...ne,tag:"p"},vpe)]}},Ze("amount",{...j,tag:"p"},AW)]}});var kpe=()=>({name:"Order Table",boxProps:()=>({...Q,direction:"column"}),box:[...re],parts:[{kind:"core",keep:"rest",headless:!0,slots:{[Ue]:[LW()]}}],drop:{...oe}}),FW={OrderSummary:kpe()};import{phoneKey as Tpe}from"efficient-easel/draw";var qYe={eyebrow:"By the numbers",title:`A picture worth
|
|
337
|
+
*a thousand rows.*`},BW=["eyebrow","title","body","caption"],XYe={label:"Chart",defaultProps:{eyebrow:"",title:"",body:"",items:[],caption:"",chartStyle:"bars",valueSuffix:""}};var NW=["eyebrow","title","body"],JYe={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 HW={top:76,bottom:76,topPhone:76,bottomPhone:76},WW=()=>({kind:"group",name:"Words",props:{...N,gap:20,gapPhone:20},parts:[{kind:"group",name:"Chip row",props:{...N,direction:"row",phoneRow:2,[Tpe("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)}]}),$W=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,HW)}),UW=[...re.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,t)=>Ll(e,t)],...ge(HW)],Ppe=()=>({name:"Chart",boxProps:$W([42]),box:UW,parts:[WW(),{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:[...BW],drop:{...oe,...se}}),DW=e=>e.align==="left",MW={kind:"group",name:"Card",keepEmpty:!0,props:N,parts:[{kind:"core",keep:"rest",props:Ol}]},Epe=()=>({name:"Mockup Card",boxProps:$W("equal"),box:UW,parts:[{...MW,when:DW},WW(),{...MW,when:e=>!DW(e)}],pressKeepsEmpty:[...NW],drop:{...oe,...se}}),zW={Chart:Ppe(),Mockup:Epe()};import{phoneKey as Ope}from"efficient-easel/draw";function GW(e,o=3){let t=Array.from({length:o},()=>[]);return e.forEach((r,a)=>t[a%o].push(r)),t}function jW(e){return Math.max(e*6,30)}var KW={top:76,bottom:76,topPhone:76,bottomPhone:76},Ape=e=>(Array.isArray(e.apps)?e.apps:[]).map(o=>o&&typeof o=="object"&&typeof o.text=="string"?o.text.trim():"").filter(Boolean),Uk=e=>GW(Ape(e)),Rpe=e=>Qx({loopDuration:jW(e)}),Lpe={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,[Ope("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)}]},Fpe=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:Rpe(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"]}]}]}]}),Bpe={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"}}]},Npe=[...re.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,t)=>Ll(e,t)],...ge(KW)],Dpe={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,KW)}),box:Npe,parts:[Lpe,{kind:"group",name:"Rows",props:{...N,gap:12,gapPhone:12},parts:Array.from({length:3},(e,o)=>Fpe(o))},Bpe],pressKeepsEmpty:["body","statValue","statLabel","note"],reads:{apps:"a Logo block per app, dealt into the three Rows"},drop:{...oe,...se}},VW={Integrations:Dpe},YW=()=>({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 Mpe={title:"Back online in",zeroText:"Almost done. Back very soon."},qW=["title"],m9e={label:"Countdown",defaultProps:{...Mpe,endsAt:"",showUnits:!0}};var XW={top:48,bottom:48,topPhone:48,bottomPhone:48},Hpe={...Ie("title",{...UE(12),color:"muted"}),props:{...j,align:"center"}},Wpe=()=>({name:"Countdown",boxProps:e=>({...Q,direction:"column",align:"center",gap:16,gapPhone:16,...ie(e,XW)}),box:[...re,...ge(XW)],parts:[Hpe,{kind:"core",keep:"rest",props:Ol}],pressKeepsEmpty:[...qW],drop:{...oe,...se}}),ZW={top:80,bottom:80,topTablet:60,bottomTablet:60,topPhone:60,bottomPhone:60},$pe=()=>({name:"Feature Banner",boxProps:e=>({...Q,direction:"column",sectionBorder:{bottom:1},...ie(e,ZW)}),box:[...re,...ge(ZW)],parts:[{kind:"core",keep:"rest",props:Ol}],drop:{...oe,...se}}),JW={Countdown:Wpe(),FeaturedCover:$pe()};var QW={top:80,bottom:80,topPhone:60,bottomPhone:60},Upe=()=>{let e=jx("FitmentFinder");return{name:"Fitment Form",boxProps:o=>({...Q,direction:"column",gap:mf[Ds("FitmentFinder")],...ie(o,QW)}),box:[...re,...ge(QW)],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'}}},e$={FitmentFinder:Upe()};var xg={eyebrow:"Label",title:"Section *heading.*",body:"Add this section's copy here. A blank line starts a new paragraph."},C9e={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"},T9e={label:"Lead Text",defaultProps:{eyebrow:"",lead:"",stats:[],foundersHeading:"",foundersBody:"",attribution:"",padTop:60,padBottom:80}};var o$={eyebrow:"Limited release",title:"Banner headline",body:"A line or two of supporting copy."},E9e={label:"Banner",drawsPictures:!0,defaultProps:{eyebrow:"",title:"",body:"",imageSrc:"",ctaText:"",ctaHref:"",contained:!0,overlay:60}};var t$={title:`Section heading
|
|
339
|
+
*Highlight line*`},r$=[{label:uo.text,href:uo.href,variant:"primary"},{label:uo.text,href:uo.href,variant:"outline"}],A9e={label:"Call-to-Action Heading",defaultProps:{title:"",buttons:[],padTop:140,padBottom:140}};var gg="standard",i$=[{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"],a$={standard:["eyebrowLook"],editorial:[...Gk,"eyebrowLook"],simple:zk,statement:zk,natural:Gk,essay:zk},n$=["gap-5","gap-3"],s$=["text-[length:var(--size-body,16px)]","text-[15px]"];function B9e(e){return go(n$,n$[0],e)}function N9e(e){return go(s$,s$[0],e)}function D9e(e){return go(i$,gg,e)}function M9e(e){let o=i$.map(r=>r.value),t=[...new Set(Object.values(a$).flat())];return kt(e,t.map(r=>[[r],Sc("headStyle",o,gg,o.filter(a=>!a$[a].includes(r)))]))}var Oa={num:"01 / Section",title:"Section *title*",description:"Short supporting line",linkText:Ye.viewAll},z9e={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."},V9e={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 l$={top:72,bottom:72,topPhone:72,bottomPhone:72},zpe={name:"Editorial Text",boxProps:e=>({...Q,direction:"column",gap:28,gapPhone:28,sectionBorder:{top:1},...ie(e,l$)}),box:[["topBorder","sectionBorder",e=>e===!1?void 0:{top:1}],...re,...ge(l$)],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)"}},c$={buttonPaddingTop:20,buttonPaddingBottom:20,buttonPaddingLeft:28,buttonPaddingRight:28},d$=(e,o)=>o?.variant==="primary",f$=(e,o)=>({kind:"list",key:"buttons",name:"Button",flat:!0,when:e,parts:[{kind:"button",key:"label",href:"href",when:d$,variant:"primary",style:{letterSpacing:.3},props:{...Ro,...c$,...o}},{kind:"button",key:"label",href:"href",when:(t,r)=>!d$(t,r),variant:"ghost",style:{letterSpacing:.3},props:{...Ro,...c$,...o}}]}),yg=e=>no(e.title),Gpe={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:[f$(yg,{widthFit:"fill",iconPosition:"end"}),f$(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 jpe(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 p$={top:40,bottom:64,topPhone:24,bottomPhone:36},Kpe={name:"Section Header",boxProps:(e,o)=>({...Q,direction:"column",gap:0,...ie(e,p$),...jpe(e,o)}),box:[...re,...ge(p$)],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"}},u$={...N,direction:"row",share:[67],gap:32},m$={...N,sectionPaddingLeft:24,sectionPaddingLeftPhone:0},h$=(e,o,t)=>({kind:"group",name:e,props:o,parts:[t]}),Vpe={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:{...u$,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})]},h$("Stats column",N,{kind:"group",name:"Stats",props:{...m$,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:{...u$,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}}]}]},h$("Note column",{...N,justify:"end"},{kind:"group",name:"Founders",props:{...m$,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}},x$={top:24,bottom:24,topPhone:24,bottomPhone:24},Ype={name:"Banner",boxProps:e=>({...Q,direction:"column",gap:0,...ie(e,x$)}),box:[...re,"contained",...ge(x$)],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:zpe,TitleWithButtons:Gpe,SectionHeader:Kpe,ParagraphsA:Vpe,Banner:Ype},g$={Prose:()=>({eyebrow:xg.eyebrow,title:vr(xg.title),body:xg.body}),TitleWithButtons:()=>({title:vr(t$.title),buttons:r$.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:()=>({...o$,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(b5),Po(N5),Po(d5),Po(Q5),Po(u3),Po(E3),Po(A3),Po(G3),Po(eW),Po(pW),Po(kW),Po(_W),Po(FW),Po(e$),Po(zW),Po(VW),Po(JW)}var qpe=[{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=>n4(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=>i4(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(),f4(e,lf,{theme:G_(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=>iM(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=>J2(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=>Z2(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=>q2(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=>pM(e)},{name:"withPageContents",chrome:!1,why:"page-only: a Contents block lists the PAGE's anchored sections and numbers their kickers",run:e=>qB(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=>rH(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=>lH(e)}];function Xpe(e,o,t){let r=e;for(let a of qpe)(!t||a.chrome)&&(r=a.run(r,o));return r}function I$(e,o){return Xpe(e,{metadata:o},!1)}import{isNode as Zpe,isNodeList as Jpe}from"efficient-easel/data";import{hidableText as Qpe,readHidable as eue}from"efficient-easel/draw";var b$="slotCounts",Kk=e=>!eue(e).hidden&&Qpe(e).trim()!=="",oue=e=>typeof e=="string"&&e.trim()!=="",tue={Flex:()=>!0,PostCard:()=>!0,ImageBlock:e=>oue(e.src),Text:e=>Kk(e.text),Heading:e=>Kk(e.text),Eyebrow:e=>Kk(e.eyebrow)},rue=["widthFit","width","minWidth"],y$=e=>Jpe(e);function aue(e){if(Array.isArray(e.content))return y$(e.content)?e.content:null;let o=Object.values(e).filter(y$);return o.length===1?o[0]:null}function nue(e,o){return[...new Set([D0,...Object.values($(n_,e)??{})])].some(t=>ut(o,t)!=="")}function sue(e){let o=e.props??{},t=$(tue,e.type);if(!t||!t(o)||nue(e.type,o)||Kc(o))return!1;let r=o[kl];if(r!=null&&r!=="")return!1;let a=Ox(o);return!rue.some(n=>a[n]!==void 0)}function iue(e){let o=0;for(let t of e)if(!pa(t.props??{})){if(!sue(t))return;o+=1}return o>0?o:void 0}function lue(e){let o={},t=new Set,r=new Set,a=(n,s)=>{if(Array.isArray(n))for(let i of n){if(!Zpe(i))continue;let l=i.props.id;typeof l=="string"&&(t.has(l)?r:t).add(l);let d=s?null:aue(i.props);if(typeof l=="string"&&d){let f=iue(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 S$(e,o){return{...e??{},[b$]:lue(o)}}function Vqe(e){let o=e.editor?.metadata?.[b$],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 C$({config:e,data:o,metadata:t}){let r=I$(o,t),a=nM(e,aM(r.content)),n=Hh(r.content),s=n.length>0?{...t,[rM]:n}:t;return w$(Wh,{children:w$(cue,{config:a,metadata:S$(s,r.content),data:r})})}import{jsx as tr,Fragment as fme,jsxs as p6}from"react/jsx-runtime";import{jsx as due,jsxs as fue}from"react/jsx-runtime";import{createContext as pue,useContext as uue}from"react";var v$=pue(!1);function aXe(){return uue(v$)}function k$({grayscale:e,children:o}){let t=e===!0;return fue(v$.Provider,{value:t,children:[Object.entries(kH(e)).map(([r,a])=>due("style",{children:a},r)),o]})}import{jsx as mue}from"react/jsx-runtime";import{createContext as hue,useContext as xue}from"react";var T$=hue(null);function lXe(){return xue(T$)}function P$({ink:e,children:o}){return mue(T$.Provider,{value:e??null,children:o})}var E$="data-lead-ink",pXe="data-header-ink";var gue="auto";function Iue(e){return e.type==="IntroBleed"?pg(e.props?.layout)!=="stacked":!0}function _$(e){let o=Ad(e);return o&&LD(e)&&Iue(o)?"light":null}function uXe(e){return e==="light"||e==="dark"?e:gue}import{useEasel as pme}from"efficient-easel/easel";import{useEffect as Oue}from"react";import{useEaselApi as Aue}from"efficient-easel/easel";import{find as yue,walk as O$}from"efficient-easel/data";var bue=()=>"",Sue=e=>wy(Nr([e],bue));function L$(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(Sue))])),a=wy(e);return Object.keys(r).find(n=>r[n].has(a))??null}var wue=()=>({press:[Bl(Rn),Bl(yc)],delivery:[Uv()]}),Cue={},Vk=e=>L$(e,wue,Cue),vue=e=>to(e)===R0?"delivery":"press";function kXe(e,o){if(!o||to(e)===to(o))return e;let t=Vk(e[Ue]),r=vue(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 kue=()=>({cards:[ui(Rn),ui(yc)],label:[mi(!1),mi(!0)]}),Tue={},Pue=e=>L$(e,kue,Tue);function TXe(e,o){if(!o||e.cardStyle==="label-only"==(o.cardStyle==="label-only"))return e;let t=Pue(e[Ue]),r=e.cardStyle==="label-only"?"label":"cards";if(!t||t===r)return e;let a=gy(e,zE),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 A$=(e,o)=>$v.every(t=>JSON.stringify(e[t])===JSON.stringify(o[t]));function R$(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 Eue(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"&&A$(e,Ns(n))?R$(e,Nx(n)):a==="press"&&A$(e,Nx(n))?R$(e,Ns(n)):e}function F$(e){let o=Sg.get(e);o?o.count+=1:Sg.set(e,{count:1,stop:_ue(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 _ue(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;O$(t,e.config,n=>{if(n.type!==Y||!Yk(n.props))return;let s=yue(r,e.config,n.props.id);if(!s||s.node===n)return;let i=Eue(n.props,s.node.props);i!==n.props&&a.set(n.props.id,i)}),a.size&&e.dispatch({type:"setData",recordHistory:!1,data:n=>O$(n,e.config,s=>{let i=a.get(s.props.id);return i?{...s,props:{...i,id:s.props.id}}:void 0})})})}function B$(){let e=Rue();Oue(()=>e?F$(e):void 0,[e])}function Rue(){try{return Aue()}catch{return null}}import{jsx as wg}from"react/jsx-runtime";import{useEffect as Lue}from"react";import{armScrollProgress as Fue}from"efficient-shell/format";function N$({armed:e,children:o}){return Lue(()=>e?Fue():void 0,[e]),o}function qk(){return{style:{"--sf-page-width":Wo}}}function Bue({children:e}){return wg("div",{style:qk().style,children:e})}function HXe({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(N$,{armed:!t,children:wg(Bue,{children:r})})})}import{jsx as D$,Fragment as Nue}from"react/jsx-runtime";import{createContext as Due,useContext as Mue}from"react";var M$=Due({}),H$=M$.Provider;function zXe(e){let{SectionTextParts:o}=Mue(M$);return o?D$(o,{...e}):D$(Nue,{children:e.children})}import{jsx as rme}from"react/jsx-runtime";import{useEffect as ame,useRef as nme}from"react";var W$="data-easel-overlay-portal";function Cg(e){return e.setAttribute(W$,"true"),()=>{e.removeAttribute(W$)}}import{jsx as que}from"react/jsx-runtime";import{useEffect as Xue,useRef as o6}from"react";import{usePreviewParts as Zue}from"efficient-easel/draw/client";import{jsx as Hue}from"react/jsx-runtime";import{createContext as Wue,useContext as $ue,useMemo as Uue,useState as zue}from"react";var Gue={partStyle:null,setPartStyle:()=>{}},$$=Wue(Gue);function YXe({children:e}){let[o,t]=zue(null),r=Uue(()=>({partStyle:o,setPartStyle:t}),[o]);return Hue($$.Provider,{value:r,children:e})}function zl(){return $ue($$)}import{usePreviewDevice as Jue}from"efficient-easel/draw/client";import{shownTier as Que}from"efficient-easel/screen/lib/document/device-fields";import{decodePartId as t6,encodePartId as eme}from"efficient-easel/draw";import{BLOCK_ATTRIBUTE as ome}from"efficient-easel/canvas";import{createPreviewSelectionContext as jue}from"efficient-easel/draw/client";var $s="Scrolling Bar",{Provider:ZXe,useSelection:U$}=jue("selectedHeroId"),Xk="data-sf-hero-ticker";function z$(e){return`${e}::ticker`}function G$(e){return!e||!e.endsWith("::ticker")?null:e.slice(0,-8)||null}import{BLOCK_ATTRIBUTE as xn}from"efficient-easel/canvas";import{createPreviewSelectionContext as Kue}from"efficient-easel/draw/client";var{Provider:eZe,useSelection:j$}=Kue("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 K$(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(NB);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===BB(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 q$(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=K$(e,u,o);return a(f,u,Zk(e,u,p)),l=n(()=>{let m=K$(e,u,o);Vue(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 Vue(e,o){return e.length===o.length&&e.every((t,r)=>t.element===o[r].element&&t.partId===o[r].partId)}function lZe(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:Y$(t,r),label:V$(t,r)};let n=e?.closest?.(Z$.slice(2).map(i=>`[${i}]`).join(","));if(!n)return null;let s=n.closest?.(`[${xn}]`)?.getAttribute(xn)===o?J$(n,o):null;return s?{id:s,element:n,whole:Y$(n,s),label:V$(n,s)}:null}function V$(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]:G$(o)?$s:e.getAttribute(Jk)??void 0}var X$="data-loc-pick",Z$=[po,an,of,Xk,X$];function J$(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 z$(o);let a=e.getAttribute(X$)?.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 Y$(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(Z$.map(s=>`[${s}]`).join(","))){if(n.closest?.(`[${xn}]`)!==t)continue;let s=J$(n,r);s&&a.add(s)}return a.size===1&&a.has(o)}import{ENTRANCE_ATTR as Q$,playEntrance as Yue}from"efficient-shell/format";var eT=new WeakMap;function e6(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=sO(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(Q$)&&Yue(d)}else eT.delete(d);let m=d.hasAttribute(Q$)?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??=K0(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=jN({fontSize:a.fontSize,fontWeight:a.fontWeight,lineHeight:a.lineHeight,letterSpacing:a.letterSpacing,textAlign:a.textAlign,textTransform:a.textTransform,paddingTop:a.paddingTop},KN(a.fontFamily,i=>n.getPropertyValue(i)));for(let i of Th)t[i]=r[i];return s}function r6({needles:e,styles:o,motions:t=Xh,type:r,children:a}){let n=o6(null),{selectedPartId:s}=Zue(),{setPartStyle:i}=zl(),l=Que(Jue()),d=JSON.stringify(e),f=JSON.stringify(o),u=JSON.stringify(t),p=o6(new Map);return Xue(()=>{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:[ome]}),()=>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=q$(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=VN(D,s,L,E=>V0(E)!==null||Ay(E)!==null);if(C&&s){let E=C,R=t6(s)?.propKey??"",W=bd(E)?{}:GN(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:eme(D,E.getAttribute(yd)??"")})),y,void 0,E=>E,void 0,l),v.push(e6([...P.filter(E=>!bd(E)).map(E=>{let R=E,W=t6(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]),que("div",{ref:n,[av]:"",style:{display:"contents"},children:a})}import{shownTier as sme}from"efficient-easel/screen/lib/document/device-fields";import{usePreviewDevice as ime,usePreviewParts as lme}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)]"},tme={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}},a6=tme;var WZe=Ln,n6={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 s6={SpecTable:n6,FAQ:XE,Collections:a6,Contents:fg};function i6(){return ai("efficient.section-text-regions",()=>new Map)}function YZe(e){let o=i6();for(let[t,r]of Object.entries(e)){if(He(s6,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?$(s6,e)??i6().get(e)??null:null}function l6({nodeId:e,sectionType:o,partStyles:t,children:r}){let a=nme(null),{selectedPartId:n}=lme(),{setPartStyle:s}=zl(),i=sme(ime()),l=JSON.stringify(t??null);return ame(()=>{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(()=>{XN(m.style,y,F),k===null?m.removeAttribute(Cr):m.setAttribute(Cr,k)})}if(S===n){let b=Tg(m,qN(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]),rme("div",{ref:a,style:{display:"contents"},children:r})}import{jsx as tT,Fragment as c6}from"react/jsx-runtime";import{createContext as cme,useContext as d6,useMemo as dme}from"react";var rT=cme(null),f6=e=>e==null||e===""?void 0:String(e);function aT({content:e,children:o}){let t=dme(()=>Dw(e),[e]);return tT(rT.Provider,{value:t,children:o})}function fJe({id:e,children:o}){let t=d6(rT),r=f6(e);return tT(c6,{children:o(r?t?.entries.get(r):void 0)})}function pJe({id:e,children:o}){let t=d6(rT),r=f6(e);return tT(c6,{children:o(r?t?.numbers.get(r):void 0)})}var ume={SectionTextParts:l6},mme="color-mix(in oklab, var(--bg) 40%, #ffffff)",hme="12vh";function xme({style:e,children:o}){let{appState:t}=pme(p=>p),r=t.data.content,a=t.data.root;if(FD(r))return tr("div",{className:"sf-themed-content",style:{...e,background:mme,minHeight:"100vh",paddingBottom:hme},children:tr("div",{style:{background:"var(--bg)"},children:tr(aT,{content:r,children:o})})});let n=RC(r)&&FC(a,r),s=RC(r)?ND(a,r):null,i=s?{[BD]:s}:null,l=IL(a?.widthChoice),d=l?{[gL]:l}:null,f=n?null:_$(r),u=f?{[E$]:f}:null;return tr("div",{className:`sf-themed-content${n?` ${OD}`:""}`,style:e,...u,...i,...d,children:tr("div",{style:{background:"var(--bg)",minHeight:"100%"},children:tr(aT,{content:r,children:o})})})}function LJe({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 B$(),tr(nT,{propsTheme:e,propsFonts:o,propsCornerStyle:t,propsCornerRadiusPx:r,propsHeadingCompression:a,propsHeadingTypography:n,pageBackground:s,chromeInheritsSiteBackground:i,onClickCapture:l,body:p=>p6(fme,{children:[tr(xme,{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=[pD(sD(R?void 0:A)),uD(Jp(ee).italicStrong)].filter(Boolean).join(`
|
|
341
|
+
`),Oe=qk(),Ee={...S_(W),...A_(Z),...U_(ee),...Oe.style,...i?{}:Gu(s)};return p6("div",{className:`sf-theme-surfaces sf-theme-accent ${[hL(R?void 0:k),nF(R?void 0:T)].filter(Boolean).join(" ")}`.trim(),style:{...Y0(U),...Z0(R?null:E),...w_(W),...C_(W),...k_(W),...qp(W),...L_(V,de.cornerRadiusUnit),...H_(R?void 0:h,R?void 0:I,R?void 0:S),...lL(R?void 0:b,de.siteWidthUnit),...pL(R?void 0:y,de.siteGutterUnit),...mL(R?void 0:k,de.siteGutterPhoneUnit),...rF(R?void 0:F,de.blockGapUnit),...aF(R?void 0:T,de.blockGapPhoneUnit),...Sm(R?void 0:L)},"data-sf-headings":W_(Ce),"data-sf-card-shadow":R?void 0:N_(h),"data-sf-card-gap":R?void 0:D_(w),"data-sf-card-hover":R?void 0:M_(S),onClickCapture:l,children:[_e?tr("style",{"data-sf-text-styles":"",dangerouslySetInnerHTML:{__html:_e}}):null,tr(k$,{grayscale:R?void 0:C,children:tr(H$,{value:ume,children:tr(P$,{ink:y_(W),children:d(Ee)})})})]})}var u6=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 m6(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 h6(e){return e.map((o,t)=>({s:o,i:t})).filter(({s:o})=>o.source==="library").sort((o,t)=>m6(o.s.slug)-m6(t.s.slug)||o.i-t.i).map(({s:o})=>o)}function sT(e){return e.filter(o=>o.source==="template")}function x6(e){let o=new Set(h6(e).map(t=>t.slug));return Pg.filter(t=>t.slugs.some(r=>o.has(r)))}function g6(e,o){if(e===Eg)return sT(o);let t=h6(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 I6(e){let o=e.content;return Array.isArray(o)&&o.length>0?o[0]:null}var wme=1440,Cme=1080;function b6({starter:e,config:o,metadata:t,busy:r,onAdd:a}){let{mirrorHostStyles:n}=Ac(),[s,i]=Ime(null),l=gme(()=>{let d=I6(e.layout),f=e.layout.zones;return{root:{props:{}},content:d?[d]:[],zones:f??{}}},[e.layout]);return y6("div",{className:"sf-starter",children:[y6("div",{className:"sf-starter-picture",children:[Tr("div",{inert:!0,className:"sf-starter-frame",children:Tr(Sme,{width:wme,height:Cme,children:Tr(yme,{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:u6,body:d=>Tr("div",{className:"sf-themed-content",style:d,children:Tr("div",{style:{background:"var(--bg)"},children:Tr(C$,{config:o,data:l,metadata:t})})})})})})})}),Tr("div",{className:"sf-starter-add",children:Tr(bme,{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 Cye}from"react";import{sessionRegistry as vye}from"efficient-easel/screen/lib/session";import{useEaselSession as kye}from"efficient-easel/screen/lib/session-context";import{currentEaselSession as vme}from"efficient-easel/screen/lib/session";var kme={general:!0,commerce:!0,service:!0};function iT(e){let o=e?.sets;return o?Object.fromEntries(M0.map(t=>[t,o.includes(t)])):kme}function lT(e=vme()){return iT(e.blocks)}import{currentEaselSession as L6}from"efficient-easel/screen/lib/session";import{SITE_SIDE as C6}from"efficient-easel/screen/lib/content/length-units";var S6=[{text:"Ticker item"},{text:"Ticker item"},{text:"Ticker item"},{text:"Ticker item"}],JJe={label:"Scrolling Bar",defaultProps:{items:[],tone:"scrim",borders:!0,size:_E,separator:OE,scrollDirection:wf}};var w6=()=>[{text:c("Spec label"),tone:"normal"},{text:c("Spec value"),tone:"muted"},{text:c("Spec label"),tone:"normal"},{text:c("Spec value"),tone:"muted"}],oQe={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 v6(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:C6,sectionPaddingRight:C6,content:[jo("Text",e,o,la()),jo("Text",e,o,Da()),jo("Text",e,o),jo("Stats",e,o)]}),v6(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)]}),v6(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)=>k6("Scrolling Bar",tg,Cf,S6.map(t=>({text:t.text,style:rg,muted:!0})),e,o),SpecStrip:(e,o,t)=>k6("Spec Strip",t?.theme?{...kf,sectionAccent:Yp(ko(t.theme))}:{...kf,sectionBorder:{top:1}},vf,w6().map(r=>({text:r.text??"",style:Tf,muted:r.tone==="muted"})),e,o)};function k6(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 T6(e){return $(_g,e)??null}import{isNodeList as cT}from"efficient-easel/data";var TQe=Object.keys(jk),Tme={Logos:D5,DocMasthead:$3,DocTabs:Z3,Timeline:f3,TimelineTrack:p3},Pme={PaymentBadges:M5,PaymentLogosBlock:H5,Integrations:YW};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 P6=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,P6(s));return Og(i[t],a,n)}}var Eme={Stats:Ome,Cards:_me};function _me(){let e=cn("Cards");if(!e)return null;let o=Of("Cards",e,0,c5);return(t,r,a)=>{let n=o(t,r,a);return{...n,props:{...n.props,name:"Cards section"}}}}function Ome(){let e=cn("StatsParagraph");return e?(o,t,r)=>{let{nodes:a}=As({type:"StatsParagraph",props:{...o("StatsParagraph"),...S5(),id:t("StatsParagraph")}},e,P6(r)),n=a[0],s=cT(n.props.content)?n.props.content.filter(f=>f.props?.cardStyle===void 0):[],i=_6(ak(w5(),"table")),l=s.map(E6),d=Og({...n,props:{...n.props,content:[...l,i]}},o,t);return{...d,props:{...d.props,name:"Stats section"}}}:null}function E6(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(E6)}}:e}var _6=e=>Nr([e],(o,t)=>`${o}-seed-${t}`)[0];function Ame(e,o){if(!d4(e,o))return null;let t=$(Eme,e);if(t)return t();let r=cn(e);return r?Of(e,r,0,$(Tme,e)??$(g$,e)??$(Pme,e)):null}function Rme(e){return(o,t,r)=>{let a=n=>{if(n.type==="Stats"){let i=Og(_6(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=T6(e);return t?Rme(t):Ame(e,o)}import{blockTypesIn as O6}from"efficient-easel/screen/lib/document/block-types-in";var A6=()=>({}),R6=new Map;function Lme(e){let o=R6.get(e);if(o)return o;let t=new Set,r=$(qt,e);if(r)for(let s of r.seeds(A6))for(let i of O6({type:r.childType,props:s}))t.add(i);let a=Kl(e);if(a){let s=0;for(let i of O6(a(A6,l=>`${l}-${s+=1}`)))t.add(i)}t.delete(e);let n=[...t].sort();return R6.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=U0(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)&&Lme(l).every(i);return s.set(l,f),f};return{sets:o,offers:i}}var Fme="block-offer";function fT(e=L6()){return e.cache(Fme,()=>dT(Mi(e)))}function F6(e,o=L6()){let t=fT(o);return t?t.offers(e):!0}var B6={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 Mme,phoneKey as Pr,tabletKey as rr}from"efficient-easel/draw";import{jsx as Bme}from"react/jsx-runtime";var N6={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)),D6={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 M6=Array.from(new Set([...G0.map(e=>e.type),...pT]));function uT(e,o){return M6.includes(e)||o?.sitsInBox===!0}var Nme=Array.from(new Set([...M6,...Sp,"GalleryItem"])),Dme={not:{context:"parentOffersPositions",is:!1}},H6={name:"cellWidth",applies:(e,o,t)=>(Nme.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()),Dme)},draw(e){let o=e.render;e.render=t=>{let r=lA(t.gridSpan),a=dA(t.gridRowSpan),n=o(t);if(r==null&&a==null)return n;let s={};return r!=null&&(s[cA]=String(r)),a!=null&&(s[fA]=String(a)),Bme(me,{className:"sf-grid-cell",...s,children:n})}}};function W6(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 Hme=new Set(["Text","Heading"]),Wme=new Set(["h1","h2","h3","h4","h5","h6"]);function $6(e,o){return e==="Heading"?!0:e!=="Text"?!1:typeof o.tag=="string"&&Wme.has(o.tag)?!0:ms(o,"text").textStyle?.startsWith("heading-")===!0}var gn={not:{context:"blockOutsideBox",is:!0}},U6={all:[gn,{not:{context:"boxSharesWidth",is:!0}}]},z6={all:[gn,{not:{context:"boxSharesWidthPhone",is:!0}}]},G6={all:[gn,{not:{context:"boxSharesWidthTablet",is:!0}}]};function Y6(e,o,t){return{any:[{field:rr(e),is:o},{all:[{field:rr(e),set:!1},t??{field:e,is:o}]}]}}function q6(e,o,t){return{any:[{field:Pr(e),is:o},{all:[{field:Pr(e),set:!1},t??{field:e,is:o}]}]}}var X6={any:[{field:"textFit",is:"shrink"},{all:[{field:"textFit",set:!1},{not:{context:"textWrapsByDefault",is:!0}}]}]},$me=[[["_gBlockSize","minWidth",rr("minWidth"),Pr("minWidth"),"maxWidth",rr("maxWidth"),Pr("maxWidth")],gn],[["widthFit"],U6],[[rr("widthFit")],G6],[[Pr("widthFit")],z6],[["width"],{all:[U6,{field:"widthFit",is:"fixed"}]}],[[rr("width")],{all:[G6,Y6("widthFit","fixed")]}],[[Pr("width")],{all:[z6,q6("widthFit","fixed")]}]],j6=Y6("textFit","shrink",X6),K6=[[["_gText","textFit",rr("textFit"),Pr("textFit")],gn],[["minFont"],{all:[gn,X6]}],[[rr("minFont")],{all:[gn,j6]}],[[Pr("minFont")],{all:[gn,q6("textFit","shrink",j6)]}]],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=Mme(e);return o!==void 0&&o!=="fit"},Ume={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(ME(t.props?.[rr("columns")])!==""||my({...t.props,direction:"row"})!=="")return!0;let r=LE(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)&&!HE(r,t.props?.[Pr("share")])&&!hT(e.props?.[Pr("widthFit")]??e.props?.widthFit)}},zme=e=>/^_[gds][A-Z]/.test(e);function Gme(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&&!zme(r[n][0]);)n++;return Object.fromEntries([...r.slice(0,n),...Object.entries(t),...r.slice(n)])}function V6(e,o,t){let r=Object.entries(e);return Object.fromEntries([...r.slice(0,o),...Object.entries(t),...r.slice(o)])}function jme(e,o,t){let r=Object.keys(o);if(r.includes("_dSize")){let{_gBlockSize:a,...n}=t;return V6(o,r.indexOf("_dSize")+1,n)}return Kme.has(e)&&r.includes("_gSpacing")?V6(o,r.indexOf("_gSpacing"),t):{...o,...t}}var Kme=new Set(["Text","Heading"]);function Vme(e,o){let{_gText:t,...r}=o;return Gme(e,"_gText",r)??{...e,...o}}function Yme(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 Z6={name:"blockSize",applies:(e,o,t)=>uT(e,t)&&!!t&&typeof t.render=="function",panel(e,o,t){let r=Hme.has(o),{text:a}=t.blockSizeFields(r?{tablet:!0,textFit:o==="Heading"?"shrink":"wrap"}:{}),{size:n}=t.blockSizeFields({tablet:!0}),s=jme(o,e.fields??{},kt(n,$me));if(r){let i=kt(a,K6);if(s=Vme(s,i),o==="Text"){let l=kt(t.blockSizeFields({tablet:!0,textFit:"shrink"}).text,K6),d=Yme(l),f=e.resolveFields,u=(p,m)=>{let h=f?f(p,m):m.fields,I=w=>$6(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,{...Ume,textWrapsByDefault:i=>!$6(o,i.props??{})})},draw(e,o){qme(e,o)}};function qme(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(Xme,{size:n,sectionSize:i??n,atEdge:o===Y,canvasAttrs:r.editor?.isEditing?k4(a):J6,inCell:v4(a),fillsPhone:S4(a),widens:T4(a),children:s})}}var J6={};function Xme({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(y2,{children:i}):i;return xT(Pi,{className:[u,p?a:"",m?b4:""].filter(Boolean).join(" "),...Object.keys(f.style).length?{style:f.style}:{},attrs:d&&r!==J6?{...f.attrs,...r}:f.attrs,children:h})}import{Fragment as lhe,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 Zme=new Set(["Flex","Grid"]);function In(e){return typeof e=="string"&&Zme.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 Q6(e,o){return e&&!o}function Fg(e){return e.loop==="scroll"&&e.direction!=="tabs"&&e.direction!=="accordion"&&!NA(e)&&!z5(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 eU(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 Jme=" [--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))))]",Qme="[--sf-edge-g:0px] [--sf-edge-al:var(--sf-edge-l)] [--sf-edge-ar:var(--sf-edge-r)]",ehe="[--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)))]",oU="max-w-[100vw]",ohe=`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))] ${oU}`;function tU(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}${Jme}`:`${Qme}${s?` ${n.className}`:""}`} ${ehe}`,style:o}}function Seo(e){let{className:o,style:t}=tU(e);return{className:`${o} ${ohe}`,...Object.keys(t).length?{style:t}:{}}}var the="[--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 rhe="--sf-edge-beyond";function rU(e){return`max(0px,calc((${e===null?Qc:`min(${Qc},${e})`} - ${Wo}) / 2))`}var ahe=`${the} 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))] ${oU}`;function weo(e){let{className:o,style:t}=tU(e);return{className:`${o} ${ahe}`,style:{...t,[rhe]:e.beyond??"0px"}}}var Ff=Vl(!1);function Reo(){return Er(Ff)}function Leo({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 aU=Vl(null);function wT({ground:e,children:o}){return tt(aU.Provider,{value:e,children:o})}var CT=Vl(!1);function nhe(){return Er(CT)}function nU({atTop:e,nested:o}){return tt(bT,{children:nhe()?o:e})}var Bf=Vl(void 0);function sU({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 iU=Vl(null);function lU({value:e,children:o}){return tt(iU.Provider,{value:e,children:o})}function cU({draw:e}){return tt(bT,{children:e(Er(iU))})}function Feo(){return Er(Bf)??null}function dU({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=Q6(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?PL(s.values,s.frame):null,P=i&&!b?i:null,L=d&&!m?dL:null,C=[b?o:t,b?L:null,D?.className,P?KL:null].filter(Boolean).join(" "),A=she(m&&b,D||P?{...a,...D?.style,...P}:a),E=Er(Bf),R=Er(aU),W=d&&f&&E===void 0?{gutter:v,...s?{pad:s.values}:{},beyond:v&&S?rU(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?TL(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 she(e,o){return e?{...o,paddingLeft:0,paddingRight:0}:o}import{jsx as ihe}from"react/jsx-runtime";function fU({children:e}){return ihe(me,{className:j5,children:e})}function che({side:e,children:o}){return vT()?Dg(fU,{children:Dg(me,{className:K5(e),children:o})}):Dg(lhe,{children:o})}var pU={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(che,{side:r,children:o(t)}):o(t)}}};var uU=(e,o)=>e.fields?.[o]?.type==="slot",dhe=(e,o)=>uU(o,Ue)||Up(e).some(t=>uU(o,t)),mU={name:"cardTemplateOnInsert",applies:(e,o,t)=>dhe(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 xhe}from"react";import{REPEAT_ATTRIBUTE as ghe,REPEAT_INDEX_ATTRIBUTE as Ihe}from"efficient-easel/draw";import{jsx as Qeo}from"react/jsx-runtime";import{createContext as uhe,useContext as IU,useMemo as mhe}from"react";var hU="title";function xU(e){return`${e}Alt`}function fhe(e){let o=e.find(t=>typeof t?.url=="string");return{url:o?.url??"",alt:typeof o?.alt=="string"?o.alt:""}}function gU(e,o){let t={[hU]: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}=fhe(n);t[r]=s,t[xU(r)]=i}}return t}function phe(e,o){return typeof o!="string"?o.flatMap(t=>phe(e,t)):e===$t||!db(e)?[]:o==="image"?ub(e,["images"]).map(t=>({key:t.key,label:t.label,kind:"image",alt:xU(t.key)})):o!=="text"?[]:[{key:hU,label:c("Title")},...ub(e,["text","date"]).map(t=>({key:t.key,label:t.label}))]}var yU=uhe(null);function hhe(){return IU(yU)?.record??null}function roo(e){let o=hhe();return o!==null&&o.type===e?o:null}function bU(){let e=IU(yU);return mhe(()=>e&&e.record.type!==$t?gU(e.record,e.dateWords):null,[e])}function xoo({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 goo({field:e,children:o}){let t=yn(Hg);return so(zs,{children:o(t&&t.field===e?t.id:void 0)})}function yhe(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),bhe={label:"text-[length:var(--size-label,12px)]"},She=`flex min-h-6 items-center border border-dashed border-line px-2 py-1 ${bhe.label} text-fg-dim`;function Ioo({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:She,children:c("Shown by the section: {name}",{name:o?.trim()||e})}):null}function yoo(){return yn(Nf)}function PT({type:e,props:o,children:t}){let r=yn(Nf),a=bU(),n=r?.row??a;return so(zs,{children:t(l_(e,o,n,r?.ownerType,r?.fields,r?.slot),r,n)})}function whe({attrs:e,selected:o,hover:t,action:r,titleField:a,children:n}){let s=xhe(),{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} ${O2}`:YC,children:[so("button",{type:"button",[L2]:"",className:l?N2:B2,"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 boo({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=t_(o),T=u??v?.previewHover,D=r.blockCount===1?so(wO,{children:so(r,{className:gO})}):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:T2}):Iv(R)?kT("span",{"aria-hidden":"true",className:P2,children:[so("span",{className:E2}),so("span",{className:_2})]}):so("span",{"aria-hidden":"true",className:k2})]}):D,Z={[ghe]:`${e}:${t}`,[Ihe]:E,...typeof m=="function"?m(W):m},V=d?.[E],de=A2(R,l),Ce=V?so(whe,{attrs:{...Z,...de},selected:R?.selected===!0,hover:l!=="under",action:V,titleField:yhe(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 SU={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)=>DB(a(),d,f=>s_(o,l,f));r.render=l=>{let d=NN(l),f=zM(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(XM,{needles:i(l,u),styles:d,motions:f,type:o,atEdge:o===Y,children:n(l)})})}}};import{jsx as wU}from"react/jsx-runtime";var CU={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=P1(t.sectionCorners,t.sectionCornerSides,t.sectionCornersUnit),a=o(t);return r?wU(me,{className:"sf-section-corners",style:{display:"contents",...r},children:a}):a}}},ET=["CollectionCard"],vU={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=_1(t.cardCorners,t.cardCornerSides,t.cardCornersUnit),a=o(t);return r?wU(me,{className:"sf-card-corners",style:{display:"contents",...r},children:a}):a}}};var kU={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 TU={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 PU,jsxs as Che}from"react/jsx-runtime";var vhe="Flex",EU=(e,o)=>e[o]!==void 0&&e[o]!==!1&&!e.editor?.isEditing,_U={name:"headCore",applies:(e,o,t)=>typeof t?.render=="function",draw(e){let o=e.render;e.render=t=>EU(t,Xd)?PU(me,{className:sx,children:t[Xd]==="empty"?null:o(t)}):o(t)}},OU={name:"headBox",applies:(e,o,t)=>e===vhe&&typeof t?.render=="function",draw(e){let o=e.render;e.render=t=>EU(t,qd)?Che(me,{className:ix,children:[PU(lx,{}),o(t)]}):o(t)}};import{createElement as khe}from"react";var AU={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=TO(s,zA(n),{sectionClassName:Kc(n,{atSectionLine:!0}),line:r});return khe(CO.Provider,{value:i},a(n))}}};import{jsx as _he}from"react/jsx-runtime";import{createContext as LU,createElement as RU,useContext as The}from"react";var FU=LU(null),Phe=LU(!1),Yoo=FU.Provider;function Ehe(e,o,t){return e===void 0||e===""||o===null||o.length===0||!t.includes(e)?!0:o.includes(e)}function BU({name:e,editing:o,children:t}){let r=The(FU);return o||Ehe(e,r?.selected??null,r?.known??[])?t:RU("div",{hidden:!0,style:{display:"none"}},RU(Phe.Provider,{value:!0},t))}var Ohe="Flex",NU={name:"showFor",applies:(e,o,t)=>e===Ohe&&typeof t?.render=="function",draw(e){let o=e.render;e.render=t=>{let r=eH(t[kl])?.name;if(r===void 0)return o(t);let a=!!t.editor?.isEditing;return _he(BU,{name:r,editing:a,children:o(t)})}}};var DU=xu.mediaFields,Ahe=e=>Vy(e)?e.src:e;function Rhe(e,o){let t=o;for(let r of $(DU,e)??[])t=JO(t,r,Ahe);return t}var MU={name:"mediaValues",applies:(e,o,t)=>typeof t?.render=="function"&&($(DU,e)?.length??0)>0,draw(e,o){let t=e.render;e.render=r=>t(Rhe(o,r))}};import{jsx as Df,Fragment as HU,jsxs as WU}from"react/jsx-runtime";var Lhe="!grow-0 !shrink-0 !basis-0",Fhe=["[.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(" "),Bhe="flex flex-col w-full min-w-0 [&>*]:grow";function $U({anchor:e}){let o=zn(e),t=$a(),r=du();return o?Df("span",{id:o,className:Jo(t?`sf-section-anchor ${Lhe} ${Fhe}`:"sf-section-anchor",r),"aria-hidden":"true"}):null}function Nhe({anchor:e,copiesInBox:o,children:t}){let r=iu()?.columnsRow===!0,a=SO(),n=zn(e)!=="";return o?Df(HU,{children:t}):r&&!a&&n?WU(me,{className:Bhe,children:[Df($U,{anchor:e}),t]}):WU(HU,{children:[Df($U,{anchor:e}),t]})}var UU={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(Nhe,{anchor:r.anchor,copiesInBox:Ft(o,r),children:t(r)})}};import{jsx as Dhe}from"react/jsx-runtime";var zU=Object.fromEntries(bE.map(e=>[e,"picture"])),Mhe={[Y]:"box",Ticker:"marquee",...Object.fromEntries(Tp.map(e=>[e,"cards"])),...zU},GU=(e,o)=>!ru.has(e)&&!!o&&typeof o.render=="function";function jU(e,o,t,r){e.fields={...e.fields,...t.animationTabFields(o,r)}}function KU(e,o){let t=e,r=t.render;t.render=a=>{let n=ki(a);return!n||Ft(o,a)?r(a):Dhe(Vh,{views:n,editing:!!a.editor?.isEditing,takesViewHide:!0,atEdge:o===Y,children:r(a)})}}var VU={name:"sectionAnimation",applies:(e,o,t)=>o.isSection(e)&&GU(e,t),panel:(e,o,t)=>jU(e,$(Mhe,o)??"section",t,o),draw:(e,o)=>KU(e,o)},YU={name:"blockEntrance",applies:(e,o,t)=>!o.isSection(e)&&GU(e,t),panel:(e,o,t)=>jU(e,$(zU,o)??"block",t,o),draw:(e,o)=>KU(e,o)};import{jsx as Hhe}from"react/jsx-runtime";var qU=(e,o)=>!ru.has(e)&&!!o&&typeof o.render=="function";function Whe(e){let o=ev.filter(t=>t.block===e);return o.length===1?o[0].focus:void 0}function XU(e,o){let t=e,r=t.render,a=Whe(o),n=e.drawsPictures===!0;t.render=s=>{let i=Sl(s);return!i||Ft(o,s)?r(s):Hhe(mx,{views:i,...a?{origins:$M(s,a)}:{},takesViewHide:!0,atEdge:o===Y,zoomInside:n?"picture":"layer",children:r(s)})}}var ZU={name:"sectionScroll",applies:(e,o,t)=>o.isSection(e)&&qU(e,t),draw:(e,o)=>XU(e,o)},JU={name:"blockScroll",applies:(e,o,t)=>!o.isSection(e)&&qU(e,t),draw:(e,o)=>XU(e,o)};import{jsx as $he}from"react/jsx-runtime";import{createElement as Uhe}from"react";var _T=["sectionHeightMode","sectionHeightModeTablet","sectionHeightModePhone"];function zhe(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)&&!mO.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=>zhe(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=bO(r);return a?$he(Pi,{className:a.className,style:a.style,...o===Y?{attrs:PE}:null,children:t(r)}):t(r)}}},QU={name:"sectionHeightFillRoot",applies:OT.applies,draw(e,o){let t=e.render;e.render=r=>{let a=Ft(o,r)?null:kO(yO(r),IO(r).join(" "));return Uhe(vO.Provider,{value:a},t(r))}}};import{jsx as $g}from"react/jsx-runtime";import{PIN_ATTR as ez,PIN_FRAME_ATTR as Ghe}from"efficient-shell/format";var tz=az("sectionSticky",(e,o,t)=>o.isSection(e)&&!UL.has(e)&&!!t&&typeof t.render=="function",!0),rz=az("cardSticky",(e,o,t)=>ET.includes(e)&&!!t&&typeof t.render=="function",!1);function az(e,o,t){return{name:e,applies:o,panel(r,a,n){let s=_S.has(a);r.fields=Khe(r.fields??{},kt(n.stickFields({intro:s,screens:t,above:t}),Vhe(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[ez]===""?$g("div",{[Ghe]:"",children:p}):p})},f=t?RS(i,{atScreenTop:s,track:t,above:!0}):l;return!f||f.attrs[ez]!==""?d(l):$g(Yl,{own:()=>d(f),followed:()=>d(l)})}}}}var oz=[lr,Wl],jhe="_gStick";function Khe(e,o){let t=Object.keys(e),r=e[bl];if(!r){let S=t.findIndex(v=>oz.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{[jhe]: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&&oz.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 Vhe(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 Yhe}from"react/jsx-runtime";var nz={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=qL(r.sectionBorder,r.sectionBorderPhone,r.sectionBorderTablet,YL(r)),n=t(r);return a?Yhe(me,{className:_m,style:{display:"contents",...a},children:n}):n}}};import{jsx as AT}from"react/jsx-runtime";var sz={name:"sectionTheme",applies:(e,o,t)=>o.isSection(e)&&!q_.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=Z_(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)})}}},iz={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 lz=null;function RT(e){lz=e}function cz(){return lz}import{jsx as qhe}from"react/jsx-runtime";var Xhe="mx-auto w-full max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)]",dz=Xa("box").frame,Mf=`${Xhe} ${dz}`,Zhe=Xa("site").frame;function pro(e){return e?Zhe:dz}var Jhe="mx-auto w-full max-w-[1280px] px-[60px]",Qhe="max-[960px]:px-6",uro=`${Jhe} ${Qhe}`;function mro({contained:e,className:o="",style:t,pad:r,fillWidth:a="w-full",children:n}){return qhe(dU,{contained:e,framedClass:`${Mf} ${o}`,fillClass:`${a} ${o}`,columnClass:Mf,style:t,pad:r,children:n})}var ql="--sf-sw-site",exe="--sf-sw-content",oxe="--sf-bg-cap",txe="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",pz="contents view-wide:[--sf-site-width:100vw]",FT=({held:e},o,t)=>e?t:yo(me,{className:o,children:t}),rxe=`contents view-wide:[--sf-site-width:100vw] ${uW} 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:txe,style:{[exe]:o},children:e})})}var axe="--sf-content-cap",nxe="contents max-view-wide:[--sf-content-cap:none]";function sxe({content:e,contentMax:o,contentMaxUnit:t},r){return e==="full"?null:o!==null?BT(o,r,t):r==="content"?null:`var(${ql})`}function ixe(e,o){return o===null?e:yo(me,{className:"contents",style:{[ql]:Wo},children:yo(me,{className:nxe,style:{[axe]:o},children:e})})}var uz=`var(${ql},${Wo})`,bn=(e,o,t="")=>e==="content"?yo(me,{className:t||void 0,style:Ui(Wo),children:yo(wT,{ground:uz,children:o})}):o;function mz(e,o,t,r,a){if(LT(t))return bn(r,FT(t,pz,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 lxe(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,rxe,e({...o,fullWidth:!1})):Wf(e({...o,fullWidth:i}),i?null:Hf(r,n));return n==="content"?yo(me,{className:"contents",style:{[oxe]:Wo},children:l}):l}switch(t){case"both":return bn(n,ixe(e(o),sxe(r,n)),s);case"contained":return mz(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,pz,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 fz(e,o,t,r,a){let n=a===Y?"edge":"by-box",s=i=>lxe(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 cxe(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(cU,{draw:h=>h?.background==="content"?yo(wT,{ground:uz,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=fz(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(nU,{atTop:w,nested:mz(r,a,{...I,content:v,own:!1},I.band??"full",Wa(a))})},d=Rf(o,a);if(!hF(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(lU,{value:{background:m.band,content:m.content},children:fz(r,a,t,m,o)}),followed:i})}}var dxe={all:[Af,{not:{context:"runsEdgeToEdge",is:!0}}]},hz={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)?Iz(o,e,n,[Us]):n;Dr(e,{heldByANode:Ag}),In(o)&&Dr(e,{runsEdgeToEdge:(i,l)=>Fg(jc(i.props??{},d_(l.appState,i.props?.id)?.inCopy!==!1))}),e.fields=pt(s,[Be.background,Be.content],In(o)?dxe:Af)},draw(e,o){cxe(e,o)}};function fxe(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 pxe=new Set(["Heading","Text","ImageBlock","ButtonBlock"]),xz={name:"containedWidth",applies:(e,o,t)=>pxe.has(e)&&!!t&&typeof t.render=="function",panel(e,o,t){let r=t.widthField;e.fields=Iz(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=>fxe(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"})}}},uxe={not:{context:"inHeroGroupRow",is:!0}},gz={name:"buttonAlignInRow",applies:e=>e==="ButtonBlock",panel(e){let o=e;o.fields=pt(o.fields??{},["align"],uxe),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 mxe(e){return Object.values(e).some(o=>!!o&&typeof o=="object"&&o.type==="slot")}var hxe={any:[]},xxe={all:[{not:{context:"outsideBox",is:!0}},{not:{context:"insideSiteGutter",is:!0}}]},gxe={not:{context:"widthCappedByParent",is:!0}};function Iz(e,o,t,r=["widthMode"]){if(e==="ButtonBlock")return pt(t,["_gWidth",...r],hxe);if(mxe(t)){let a=(n,s)=>eU(s.appState?.data?.content,n.props?.id,Ng(cz()));return Dr(o,{outsideBox:(n,s)=>a(n,s)?.inBox!==!0,insideSiteGutter:(n,s)=>a(n,s)?.insideGutter}),pt(t,r,xxe)}return Dr(o,{widthCappedByParent:(a,n)=>"parent"in n?YE(n.parent):W6({props:a.props??{}},n)}),pt(t,r,gxe)}var Ixe=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"]),yz={name:"sectionGroups",applies:(e,o)=>o.isSection(e)&&(Ixe.has(e)||o.isHostBlock(e)),panel(e,o,t){let r=t.assignSectionGroups;e?.fields&&(e.fields=r(e.fields,o))}},yxe=new Set(["HeroSlide","HeroGroup"]),bz={name:"blockGroups",applies:(e,o,t)=>yxe.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 bxe=new Set(["Flex","Grid"]),Sz=e=>Object.entries(e.fields??{}).filter(([,o])=>o?.type==="slot").map(([o])=>o),Sxe=(e,o)=>e.fields?.[o]?.ownPictures===!0,wxe=["blockCount","blockIds"],Cxe=new WeakMap,vxe=new WeakMap;function kxe(e,o){let t=o?vxe:Cxe,r=t.get(e);if(r)return r;let a=e,n=s=>NT(sU,{children:NT(cu,{ownPictures:o,children:NT(a,{...s})})});Object.assign(n,e);for(let s of wxe)Object.defineProperty(n,s,{get:()=>e[s],configurable:!0,enumerable:!0});return t.set(e,n),n}var wz={name:"slotsStartAfresh",applies:(e,o,t)=>!bxe.has(e)&&typeof t?.render=="function"&&Sz(t).length>0,draw(e){let o=Sz(e),t=e.render;e.render=r=>{let a={...r};for(let n of o){let s=r[n];typeof s=="function"&&(a[n]=kxe(s,Sxe(e,n)))}return t(a)}}};var Txe=new Set(["Form","Stats","Logos"]);function Cz(){return[...Txe]}function DT(e,o,t=[]){let r=new Set(e),a=$0.filter(d=>r.has(d)),n=a.filter(d=>d!=="Header"&&d!=="Footer"&&!Cu.includes(d)),s=new Set([...o,...Sp,...Cz()]),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 Pxe=[wz,MU,_U,N6,D6,yM,CU,nz,vU,bM,YU,JU,H6,hz,xz,gz,OT,UU,sz,VU,ZU,tz,rz,pU,iz,Z6,yz,bz,TU,kU,SU,OU,NU,QU,AU,B6,mU];function vz(e,o,t){let r=o;for(let a of Pxe)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 Exe,DurationIcon as _xe}from"efficient-easel/icons";import{MOTION_TIMING as kz}from"efficient-shell/format";import{useSelectedHost as Oxe}from"efficient-easel/easel";function Xl(e){let{min:o,max:t,step:r,default:a}=kz[e].duration;return $o("Duration",MT(_xe,{}),o,t,r,a,"s")}function Zl(e){let{min:o,max:t,step:r,default:a}=kz[e].delay;return $o("Delay",MT(Exe,{}),o,t,r,a,"s")}function Jl(e,o){let t=e.render,r=a=>{let n=Oxe();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=>G5({loopDelay:e}))}import{jsx as Lo}from"react/jsx-runtime";import{DirectionDownIcon as Axe,DirectionIcon as Rxe,DirectionLeftIcon as Lxe,DirectionRightIcon as Fxe,DirectionUpIcon as Bxe,EntranceBounceIcon as Nxe,EntranceFadeIcon as Dxe,EntranceFlipIcon as Mxe,EntranceGlideIcon as Hxe,EntranceRevealIcon as Wxe,EntranceRiseIcon as $xe,EntranceScaleIcon as Uxe,EntranceSpinIcon as zxe,NoSymbolIcon as Gxe}from"efficient-easel/icons";import{NoControlMark as jxe,noControlField as Kxe}from"efficient-easel/screen/lib/document/panel-no-control-mark";import{customize as Vxe,group as Yxe}from"efficient-easel/screen/lib/document/box-fields";import{ENTRANCE_FROM as qxe,ENTRANCE_FROM_DEFAULT as Pz,ENTRANCE_KINDS as Ez,ENTRANCE_KINDS_WITH_FROM as Xxe,entranceAttrs as Zxe,playEntrance as Jxe,readEntrance as Qxe}from"efficient-shell/format";var ege={none:"None",fade:"Fade",rise:"Rise",scale:"Scale",glide:"Glide",bounce:"Bounce",flip:"Flip",reveal:"Reveal",spin:"Spin"},oge={top:"Top",bottom:"Bottom",left:"Left",right:"Right"},tge={top:()=>Lo(Axe,{}),bottom:()=>Lo(Bxe,{}),left:()=>Lo(Fxe,{}),right:()=>Lo(Lxe,{})},_z="Entrance",WT=Ez.filter(e=>e!=="none"),Oz=e=>({any:[{field:Tt.kind,in:e},{all:[{field:Tt.kind,set:!1},{field:Pc,in:e}]}]}),Tz=(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?Oz(o):{field:t,in:o}),rge={any:[Oz(WT),...ht.slice(1).map(e=>({field:ve(Tt.kind,e),in:WT}))]},age=ht.flatMap(e=>[[[ve(Tt.from,e)],Tz(e,Xxe)],[[ve(Tt.duration,e),ve(Tt.delay,e)],Tz(e,WT)]]),nge={none:()=>Lo(Gxe,{}),fade:()=>Lo(Dxe,{}),rise:()=>Lo($xe,{}),scale:()=>Lo(Uxe,{}),glide:()=>Lo(Hxe,{}),bounce:()=>Lo(Nxe,{}),flip:()=>Lo(Mxe,{}),reveal:()=>Lo(Wxe,{}),spin:()=>Lo(zxe,{})},Az="data-entrance-tile";function sge({kind:e}){let{attrs:o}=Zxe(Qxe(e,Pz));return Lo("span",{className:"sf-entrance-stage",[Az]:e,children:Lo("i",{...o,children:nge[e]()})})}var ige=(e,o)=>{let t=e.querySelector(`[${Az}="${o}"] > i`);t&&Jxe(t)},lge="Effect",cge=()=>am(Tt.kind,{label:_z,tileWord:lge,values:Ez,fallback:"none",word:e=>ege[e],picture:e=>Lo(sge,{kind:e}),read:(e,o)=>Ec(e,o).kind,preview:ige}),HT=(e,o)=>rm(Tt[e],o,(t,r)=>Ec(t,r)[e]),dge=qxe.map(e=>({label:oge[e],value:e,picture:tge[e]()}));function _r(){let e={[eg]:Yxe(_z,{dot:rge}),...cge(),[Pc]:Kxe({type:"custom",render:()=>Lo(jxe,{})},"always"),_cEntrance:Vxe(),...HT("from",qi("From",Lo(Rxe,{}),dge,Pz)),...HT("duration",Xl("entrance")),...HT("delay",Zl("entrance"))};return kt(e,age)}import{jsx as ar}from"react/jsx-runtime";import{EntranceRevealIcon as fge,NoSymbolIcon as pge,PercentIcon as Rz,ScrollFadeInIcon as uge,ScrollFadeOutIcon as mge,ScrollMoveDownIcon as hge,ScrollMoveUpIcon as xge,ScrollParallaxIcon as gge,ScrollZoomInIcon as Ige,ScrollZoomOutIcon as yge,ZoomInIcon as bge}from"efficient-easel/icons";import{customize as Sge,group as wge}from"efficient-easel/screen/lib/document/box-fields";import{SCROLL_EFFECTS as Fz,SCROLL_EFFECTS_WITH_ZOOM as Cge,SCROLL_END as vge,SCROLL_START as kge,SCROLL_ZOOM as Tge}from"efficient-shell/format";var Bz="Scroll",Pge={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"},Ege={none:()=>ar(pge,{}),"zoom-in":()=>ar(Ige,{}),"zoom-out":()=>ar(yge,{}),"fade-in":()=>ar(uge,{}),"fade-out":()=>ar(mge,{}),"move-up":()=>ar(xge,{}),"move-down":()=>ar(hge,{}),reveal:()=>ar(fge,{}),parallax:()=>ar(gge,{})},_ge="Effect",Nz=Fz.filter(e=>e!=="none"),Lz=(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})),Oge={any:ht.map(e=>({field:ve(zo.effect,e),in:Nz}))},Age=ht.flatMap(e=>[[[ve(zo.zoom,e)],Lz(e,Cge)],[[ve(zo.start,e),ve(zo.end,e)],Lz(e,Nz)]]),Rge=()=>am(zo.effect,{label:Bz,tileWord:_ge,values:Fz,fallback:"none",word:e=>Pge[e],picture:e=>Ege[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]:wge(Bz,{dot:Oge}),...Rge(),[Yh]:Sge(),...$T(zo.zoom,"zoom","Zoom",ar(bge,{}),Tge),...$T(zo.start,"start","Start",ar(Rz,{}),kge),...$T(zo.end,"end","End",ar(Rz,{}),vge)};return kt(e,Age)}import{jsx as ct}from"react/jsx-runtime";import{AccentIcon as Lge,ContrastIcon as Fge,EyeIcon as Bge,ExpandIcon as Nge,FinishIcon as Dge,ImagesIcon as Mge,NoSymbolIcon as Mz,HoverLiftIcon as Hge,HoverNextImageIcon as Wge,HoverRotateIcon as $ge,HoverZoomIcon as Hz,OpacityIcon as Uge}from"efficient-easel/icons";import{customize as zge,describedAs as Wz,group as Gge}from"efficient-easel/screen/lib/document/box-fields";import{effectTiles as $z}from"efficient-easel/screen/lib/document/effect-tiles";import{deviceField as Ko}from"efficient-easel/screen/lib/document/device-fields";import{NoControlMark as jge,noControlField as Kge}from"efficient-easel/screen/lib/document/panel-no-control-mark";var Gg=e=>Ko("desktop",Gge("Hover",{dot:e})),Uz=()=>Ko("desktop",zge()),Vge="What this does when a shopper points at it, or taps it on a phone.",Yge="What this picture does when a shopper points at it. Black and white shows it in grey until then. A phone shows its colour.",qge="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.",Xge="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.",Zge="When this shows. On card hover shows it while a shopper points at the card. A phone always shows it.",Jge="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.",Qge="Which of the product's pictures the card shows.",eIe="Same finish shows the photos of the finish the card shows, else the first group.",oIe="Whole card hides the words under the photo. Picture keeps the words and swatches in view.",tIe={none:()=>ct(Mz,{}),nextImage:()=>ct(Wge,{}),rotate:()=>ct($ge,{}),zoom:()=>ct(Hz,{}),lift:()=>ct(Hge,{}),mono:()=>ct(Fge,{})};function UT(e,o){let t=$z({label:c("Hover effect"),options:e.map(r=>({value:r,label:c(di[r]),picture:tIe[r]()})),fallback:o});return Wz(t,{type:"select",label:"Hover effect",options:e.map(r=>({value:r,label:di[r]}))})}function zz(){return{[lr]:Gg({field:Dt,in:ey.filter(e=>e!=="none")}),[Dt]:Ko("desktop",{...UT(ey,"none"),description:Vge})}}function Gz(e){let o=IE(e),t=Ep(),r=wF(cE);return{[lr]:Gg({any:[o,t]}),[ho.kind]:Ko("desktop",{...Jl(UT(sE,e),(a,n)=>xE(n??{},e)),description:Jge}),...zT(t),[iE]:Kge({type:"custom",render:()=>ct(jge,{})},"always"),_cHover:Uz(),[ho.angle]:Ko("desktop",co(Jl(r,a=>gE(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(Mge,{}),dE.map(a=>({value:a,label:fE[a]})),Pp.kind),t=qi("Group",ct(Dge,{}),pE.map(a=>({value:a,label:uE[a]})),Pp.group),r=qi("Covers",ct(Nge,{}),mE.map(a=>({value:a,label:hE[a]})),Pp.cover);return{[ho.mediaKind]:Ko("desktop",co({...o,description:Qge},e)),[ho.mediaGroup]:Ko("desktop",co({...t,description:eIe},e)),[ho.cover]:Ko("desktop",co({...r,description:oIe},e))}}function GT(e,o="",t=ny.includes(o)){let r=sy(e),a=kE(e);return{[lr]:Gg(r),[ho.kind]:jT(yE,e,Yge),...ny.includes(o)?zT(Ep()):{},_cHover:Uz(),...t?jz():{},[ho.duration]:Ko("desktop",co(Xl("hover"),a)),[ho.delay]:Ko("desktop",co(Zl("hover"),a))}}function jz(e=!1){let o=a=>e?a:co(a,vE()),t=$o("Zoom",ct(Hz,{}),fi.min,fi.max,fi.step,fi.min,fi.unit),r=$o("Darken on hover",ct(Uge,{}),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=>wE({[Dt]:a},o,e)),description:t});return Object.assign(r,{[Kz]:o})}var Kz="sfPictureResting",Dz=new WeakMap;function fno(e,o,t){let r=e[ho.kind],a=r?.[Kz];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=Dz.get(e);return i||(i={...e,[ho.kind]:jT(oy,a,qge)},Dz.set(e,i)),i}var rIe="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.",aIe={none:()=>ct(Mz,{}),[ZI]:()=>ct(Lge,{})},pno=Ko("desktop",{...Wz($z({label:c("Hover effect"),options:JI.map(e=>({value:e,label:c(QI[e]),picture:aIe[e]()})),fallback:"none"}),{type:"select",label:"Hover effect",options:JI.map(e=>({value:e,label:QI[e]}))}),description:rIe}),nIe=Ko("desktop",{...qi("Show",ct(Bge,{}),[{value:ay,label:"Always"},{value:ry,label:"On card hover"}],ay),description:Zge});function Vz(){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]:nIe,...zT(Ep()),...r,...jz(!0)}}var uno=jT(oy,"none",Xge);import{jsx as $f}from"react/jsx-runtime";import{isNodeList as cIe}from"efficient-easel/data";import{useEasel as dIe}from"efficient-easel/easel";import{hiddenInView as fIe,hiddenKeyOf as VT,hidePatch as pIe,slotChildName as uIe,slotChildRowName as mIe}from"efficient-easel/draw";var jg=null;function KT(e){jg=e}function Yz(){return!!(jg&&jg.state().lockHolder)}function js(){return jg!==null}var sIe=new Set(["BookingBox","SubmitBox"]);function iIe(e){return typeof e=="string"&&sIe.has(e)}var lIe=I1(iIe,Yz);function Kg(e,o){return lIe(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 hIe}from"efficient-easel/screen/lib/document/device-fields";import{NoControlMark as xIe}from"efficient-easel/screen/lib/document/panel-no-control-mark";var qz="notCardOfTemplate",Xz={not:{context:qz,is:!0}},YT={any:[Ap,Xz]},Fno={[qz]:(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 cIe(o)?o:[]}var Xg=(e,o)=>fIe(e.props??{},o),gIe=(e,o)=>e.props?.[VT(o)]!==void 0;function Zz(e,o=()=>!1,t="desktop"){return Yg(e).flatMap(r=>typeof r?.props?.id!="string"?[]:Yg(r).length&&!Xg(r,t)?Zz(r,o,t):o(r)?[]:[r])}function IIe(e,o,t,r="desktop"){let a=Zz(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):gIe(a,t);return Yg(e).flatMap(a=>r(a)?o(a)?[]:[a,...qg(a,o,t)]:qg(a,o,t))}function yIe(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=yIe(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 Jz(e,o,t,r="desktop"){return qT(e,o,a=>r==="desktop"&&Xg({props:a},r)===!t?{}:pIe(a,r,!t))}function bIe(e,o,t){return t==="desktop"?Jz(e,o,!0,t):qT(e,o,()=>({[VT(t)]:void 0}))}function SIe(e,o,t,r,a,n){return uIe(e).trim()?t(e):a_({ownerType:o,owner:r,fields:a,slot:n},ut(e.props))?.label??t(e)}var wIe="This page is read-only.";function CIe({card:e,ownerType:o,owner:t,fields:r,slot:a,labelOf:n,write:s,readOnly:i,view:l="desktop"}){let d=p=>mIe(p,n,na,void 0,Vg),f=p=>Kg(p.type,p),u=IIe(e,p=>SIe(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?wIe:void 0,onPress:(p,m)=>s(h=>Jz(h,p,m,l)),onReset:()=>s(p=>qg(p,f,l).reduce((m,h)=>bIe(m,String(h.props.id),l),p))}):$f(xIe,{})}function vIe(){try{let e=dIe(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:f_(e.appState,r),slot:c_(e.appState,t.props?.id)??void 0}}catch{return null}}function kIe({readOnly:e,view:o}){let t=vIe(),r=pr();return t?$f(CIe,{...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 Bno(e){return co(hIe(e,{type:"custom",render:({readOnly:o})=>$f(kIe,{readOnly:o,view:e})}),Xz)}import{customize as BIe}from"efficient-easel/screen/lib/document/box-fields";import{jsx as XT}from"react/jsx-runtime";import{DirectionIcon as TIe,LoopMarqueeIcon as PIe,NoSymbolIcon as EIe}from"efficient-easel/icons";import{customize as _Ie,describedAs as OIe,group as AIe}from"efficient-easel/screen/lib/document/box-fields";import{effectTiles as RIe}from"efficient-easel/screen/lib/document/effect-tiles";function ZT(){return yB("Direction",dk,wf,"A marquee cannot run diagonally, so the corners are not answers.",XT(TIe,{}),IB)}var JT=e=>AIe("Loop",e?{dot:e}:void 0),LIe={none:()=>XT(EIe,{}),scroll:()=>XT(PIe,{})};function FIe(){let e=RIe({label:c("Loop"),options:Jx.map(({value:o,label:t})=>({value:o,label:c(t),picture:LIe[o]()})),fallback:ck});return OIe(e,{type:"select",label:"Loop",options:Jx.map(({value:o,label:t})=>({value:o,label:t}))})}function Qz(){return{[Wl]:JT(Sf),loop:FIe(),_cLoop:_Ie(),scrollDirection:co(ZT(),Sf),loopDuration:co(Ug({readsSpeed:!1}),Sf),loopDelay:co(zg(),Sf)}}var eG={field:On,set:!0};function NIe(){let e=Vz(),o=[lr,Dt],t=pt(e,Object.keys(e).filter(n=>!o.includes(n)&&n!==On),Ap),r=pt(t,[On],eG),a=pt(r,[Dt],YT);return pt(a,[lr],{any:[YT,eG]})}function Zg(e,o=""){switch(e){case"section":case"block":return{..._r(),...Gs()};case"box":return{..._r(),...Gs(),...Qz(),...NIe()};case"picture":return{..._r(),...Gs(),...GT(SE(o),o)};case"textPart":return{..._r(),...Gs(),...zz()};case"cards":return{..._r(),...Gs(),...Gz(lE(o))};case"marquee":return{..._r(),...Gs(),[Wl]:JT(),_cLoop:BIe(),scrollDirection:ZT(),loopDuration:Ug({readsSpeed:!0}),loopDelay:zg()}}}import{blockSizeFieldSet as Iye}from"efficient-easel/screen/lib/document/block-size-fields";import{VIEW_KEY_ACCESS as yye}from"efficient-easel/screen/lib/document/box-fields";import{group as DIe}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as MIe,deviceMetaOf as rG}from"efficient-easel/screen/lib/document/device-fields";import{DESIGN_GROUPS as eP,SETTINGS_BUCKETS as HIe}from"efficient-easel/panel";import{BUCKET_KEY as Vo,DESIGN_GROUP_KEY as Ql}from"efficient-easel/screen/lib/document/field-buckets";var Uf=HIe;var WIe="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",[WIe]:"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"},aG={"AlloyWheelsListing._gCards":"Design","Flex._gLink":"Link","LongRead._gLink":"Link"},nG={"Text._gSpacing":"Size","Heading._gSpacing":"Size"};function oG(e,o,t){let r=`${e}.${o}`;return $(nG,r)??$(aG,r)??$(oP,t)}function $Ie(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=rG(r),n=br(a?a.inner:r),s=n?$(oP,n.label):void 0;if(s)for(let i of $Ie(s))o.includes(i)||o.push(i)}return o}var uso=[...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())],mso=[...Jg(Qi()),...Object.keys(Qi())],hso=[...Jg(ol()),...Object.keys(ol())],xso=[...Jg(_r()),...Object.keys(_r())],gso=Object.keys(SB()),Iso=Object.keys(wB()),UIe={"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)"},sG={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||!sG[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 zIe=new Set(["_sContent","_sStyle","_sLayout","_sMedia"]),GIe=new Map([[Vo.Design,"Content"],[Vo.Animation,"Animation"],...eP.map(e=>[Ql[e],e])]);function jIe(e){let o=`${e}.`;return Object.keys(UIe).filter(t=>t.startsWith(o)).map(t=>t.slice(o.length))}function KIe(e,o){let t=rG(e),r=DIe(o);return t?MIe(t.tier,r):r}function VIe(e,o){let t=br(o);return t?e==="Content"||e==="Animation"?rB(o,t.label):aB(o):o}function tG(e){return e==="Design"?eP:["Animation"]}function Qg(e,o){let t=[],r=new Set(jIe(o)),a=new Set,n=!1,s=null;for(let[p,m]of Object.entries(e)){let h=br(m);if(zIe.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=GIe.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=oG(o,p,h.label);if(h.level!==2||!S||!sG[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=oG(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:KIe(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",nG],["KEY_GROUP",aG]]){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=>tG(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 tG(p)){if(!d.has(m))continue;let h=t.filter(S=>S.place===m),I=h.findIndex(S=>S.adopted);I>0&&h.unshift(...h.splice(I,1));let w=h.filter(S=>S.uniform);if(w.length>0){let S=h.filter(b=>!b.uniform),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]=VIe(m,b)}}return u}function iG(e){return Vo.Design in e?e:{[Vo.Design]:Ym("Design",null),[Ql.Content]:hw("Content"),...e}}function lG(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 YIe}from"efficient-easel/icons";import{SettingsField as qIe,SettingsSwitch as XIe}from"efficient-easel/panel";import{group as ZIe,iconOf as JIe,sharedStyleKinds as QIe}from"efficient-easel/screen/lib/document/box-fields";var eye="Gutter";function oye({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(qIe,{label:c(eye),labelId:t,icon:JIe(oI(YIe,{})),action:oI(XIe,{checked:a,onChange:n,ariaLabelledBy:t})})}function cG(){return QIe({_gWidth:ZIe(en),[Us]:{type:"custom",render:({value:e,onChange:o,id:t,name:r})=>oI(oye,{value:e,onChange:o,labelId:`${t??r??Us}-label`})}})}import{jsx as rP}from"react/jsx-runtime";import{group as tye,sharedStyleKinds as fG}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as rye}from"efficient-easel/screen/lib/document/device-fields";var aye="Content cannot be wider than the background.",tP=e=>c(e==="content"?"Content width":"Full width");function pG(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 nye={read:as},sye={read:as,drawsFullOnItsOwn:!0},iye={read:mF,clearOnContent:{fullWidth:void 0}};function lye({source:e}){let o=e.read(bo()),t=pr(),r=pG(e);return rP(hh,{value:o.background??r.background,changed:o.background!==null,detail:tP(r.background),onChange:a=>t(xF(a)),onReset:()=>t(VS("background"))})}function cye({source:e}){let o=e.read(bo()),t=pr(),r=l=>t({...l,...e.clearOnContent}),a=pG(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?aye:void 0,onMode:l=>r(gF(l)),onPx:l=>r({...IF(l),...s?.unitPatch(!1)}),...s?{length:s}:{},onReset:()=>r(VS("content"))})}var dG=(e,o)=>rye("desktop",{type:"custom",render:()=>rP(e,{source:o})}),uG=e=>({[Be.background]:dG(lye,e),[Be.content]:dG(cye,e),[Be.contentMax]:hd(),...ns(KS,Be.content)});function mG(e){let o=e?.drawsFullOnItsOwn?sye:nye;return fG({_gWidth:tye(en),...uG(o)})}function Wso(){return fG({...uG(iye),fullWidth:hd()})}import{deviceMetaOf as xG}from"efficient-easel/screen/lib/document/device-fields";import{noControlMetaOf as dye}from"efficient-easel/screen/lib/document/panel-no-control-mark";function fye(e,o){let t=xG(o),r=t?t.inner:o;if(br(r)||r?.customize===!0)return!1;if(r?.type==="slot")return!0;let a=dye(r);return a==="always"?!1:a==="authored-copy"?Vn(e):!0}function hG(e){let o=xG(e),t=o?o.inner:e,r=br(t);return r?tB(t)?0:r.level:null}function pye(e,o,t){return t?o===0&&e===Vo.Design||o===1&&e===Ql.Content:!1}var uye=new WeakMap,mye=new WeakMap;function gG(e,o="section"){let t=o==="page"?mye:uye,r=t.get(e);if(r)return r;let a=Object.entries(e).map(([u,p])=>({key:u,field:p,level:hG(p),draws:fye(u,p)||o==="page"&&hG(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&&!pye(a[u].key,p,n)&&s.add(a[u].key)}let i=n&&lG(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?iG(d):d);return t.set(e,f),f}import{isShown as hye,showWhenFactReaders as xye}from"efficient-shell/format";var IG=new WeakMap,gye=new Set(Object.values(Vo));function yG(e,o,t,r={}){if(!e)return e;let a=o?.props??{},n=a.id,s=xye(r,o,t),i=V1(t,{...s,parentOffersPositions:()=>{let h=Aa(t.appState,n);return h===void 0?void 0:pA(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")||hye(w,a,i)||l.push(h)}if(l.length===0)return e;let d=IG.get(e);d||IG.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=>gye.has(h))&&(m=eI(m)),d.set(f,m),m}var bG={spacingFields:uB,sidesPaddingFields:Xi,sectionShapeFields:ol,cardShapeFields:cB,cellWidthFields:pB,widthField:tl,boxGutterFields:cG,sectionOwnWidthFields:mG,heightFields:rl,anchorFields:al,stickFields:xd,sectionThemeFields:Qi,animationTabFields:Zg,blockSizeFields:({tablet:e,...o}={})=>Iye({...o,shorten:!0,say:Mm,lengthUnits:Ia,...e?{phone:yye}:{}}),assignSectionGroups:Qg,dropEmptyHeadings:gG,rowsShownForNode:yG,SECTION_THEME_FOLLOW_LABEL:nS,BLOCK_THEME_FOLLOW_LABEL:_R,PartAnchors:r6};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 bye(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=vz(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 Sye(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];wye(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 wye(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 SG(e,o){let t=Object.entries(o?.host??{}),r=o?.categories??[],a=dT(o);if(Sye(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:bG};for(let[h,I]of t){let w=bye(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 wG(){let e=kye();return Cye(()=>SG(vye(e),Mi(e)),[e])}import{jsx as iP,Fragment as jye,jsxs as Kye}from"react/jsx-runtime";import{useContext as Vye,useEffect as Yye,useMemo as lI,useRef as UG}from"react";import{EaselCanvas as qye,repeatCopyAt as Xye,useEasel as Zye}from"efficient-easel/easel";import{jsx as nP}from"react/jsx-runtime";import{useEffect as _ye,useState as Oye}from"react";import{Banner as Aye}from"efficient-shell/ui";import{useSyncExternalStore as Tye}from"react";import{useScreenDocument as Pye}from"efficient-easel/screen/components/ScreenDocumentContext";var Eye=()=>()=>{},CG=()=>null;function rI(e){return Tye(e?e.subscribe:Eye,e?e.state:CG,e?e.state:CG)}function aI(){let{adapter:e}=Pye();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."},Rye={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."},Lye=nI.load,Fye=nI.lock,Bye=nI.conflict,Nye=nI.save;function Dye(e){if(!e)return null;if(e.loadFailed)return c(Lye);if(e.lockHolder)return c(Fye,{name:e.lockHolder.name||c("Somebody else")});if(e.conflict)return c(Bye);if(e.saveFailed)return c(Nye);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(Rye[o.problem],{section:t,name:r})}function Mye({report:e}){let o=Dye(rI(e)),[t,r]=Oye(null);return _ye(()=>{o||r(null)},[o]),!o||t===o?null:nP("aside",{className:"sf-canvas-notice",children:nP(Aye,{tone:"warning",onDismiss:()=>r(o),children:o})})}function vG(){return nP(Mye,{report:aI()})}import{jsx as iI}from"react/jsx-runtime";import{useState as WG}from"react";import{Banner as Wye,Button as $ye}from"efficient-shell/ui";import{UndoIcon as Uye}from"efficient-shell/icons/efficient";import{useScreenDocument as zye}from"efficient-easel/screen/components/ScreenDocumentContext";import{useSyncExternalStore as PG}from"react";var zf=!1,ec=null,sP=new Set;function jf(){for(let e of sP)e()}function EG(e){return sP.add(e),()=>{sP.delete(e)}}function _G(){zf||(zf=!0,jf())}function OG(){zf&&(zf=!1,jf())}function kG(){return zf}function AG(){return PG(EG,kG,kG)}function TG(){return ec}function sI(){ec&&(ec=null,jf())}function RG(){return PG(EG,TG,TG)}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 LG(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 FG({access:e,version:o,page:t,...r}){let a=await LG(e,o.id,t?{page:t.id}:{},r);ec={title:Hye(o,t??null),undo:a.undo},jf()}async function BG({access:e,...o}){let t=ec?.undo;t&&(await LG(e,t,{},o),ec=null,jf())}function NG(e){return e.name?e.name:e.kind==="draft_before_restore"?c("Draft before restore"):c("Version {n}",{n:e.number})}function Hye(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 DG(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 MG(e){return e.change==="take_down"?c("{name} (taken down)",{name:e.name}):e.name}function HG(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 Gye}from"efficient-easel/easel";function $G(){let e=RG(),{adapter:o,flushSave:t,reloadFromServer:r}=zye(),a=o.siteVersions,[n,s]=WG(!1),[i,l]=WG(!1),d=async()=>{if(!(!a||n)){s(!0),l(!1);try{await BG({access:a,flushSave:t,reload:r})}catch{l(!0)}finally{s(!1)}}},f=Gye({onPress:()=>{d()},busy:n});return e?iI("aside",{className:"sf-canvas-notice",children:iI(Wye,{tone:i?"danger":"info",title:e.title,onDismiss:sI,action:a&&e.undo?iI($ye,{variant:"secondary",size:"sm",leftIcon:iI(Uye,{}),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 Jye,REPEAT_ATTRIBUTE as lP,REPEAT_INDEX_ATTRIBUTE as cP}from"efficient-easel/draw";import{usePreviewParts as Qye}from"efficient-easel/draw/client";import{ScreenDocumentContext as ebe}from"efficient-easel/screen/components/ScreenDocumentContext";function zG(e){let{mirrorHostStyles:o}=Ac(),t=zO(),r=dP(),a=Oc(),n=Vye(ebe),s=Eu(n?.docId??null),i=Zye(w=>w.appState.data),l=T1(s,i),d=JSON.stringify(l),f=lI(()=>l,[d]),u=lI(()=>({...e.metadata??t??{},...r,...f}),[e.metadata,t,r,f]);Yye(()=>(RT(a),()=>RT(null)),[a]);let p=UG(null),m=obe(p),{onDocument:h}=e,I=w=>{p.current=w,h?.(w)};return Kye(jye,{children:[iP($G,{}),iP(vG,{}),iP(qye,{...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(()=>bF(o?null:e,t),[e,t,o])}function obe(e){let o=yu(),t=Qye(),r=UG({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?Xye(f):null,p=u?Jye(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=>oN(n,o),copyValue:n=>eN(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 KG({open:e,onClose:o,takenSlugs:t,onCreated:r}){let a=sbe(),{adapter:n,siteId:s,templateId:i}=nbe(),l=Ge(a).pages,d=!i&&!!(l.starters&&l.createFromStarter),f=rbe(()=>s?{siteId:s}:{},[s]),u=wG(),p=dP(),[m,h]=pP(null),[I,w]=pP(jl),[S,v]=pP(null),b=abe(null);tbe(()=>{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([]),jG.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{jG.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:GG(C,t),title:C,layout:{}}))},F=C=>{y(C.id,()=>l.createFromStarter(C.id,{title:C.title,slug:GG(C.slug,t),...f}))},T=m??[],D=x6(T),P=g6(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(lbe,{open:e,onClose:o,size:"full",title:c("Add page"),initialFocus:b,children:Bt(pbe,{sidebarTop:fP(fbe,{onClick:k,disabled:!n.createPage||S!==null,children:[Bt(ibe,{"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(cbe,{title:c("No pages to start from"),description:c("Start with a blank page, then add sections.")}):Bt(dbe,{cols:1,smCols:2,lgCols:3,gap:8,children:P.map(C=>Bt(b6,{starter:C,config:u,metadata:p,busy:S===C.id,onAdd:F},C.id))})]})})})}import{jsx as ube}from"react/jsx-runtime";import{createContext as mbe,useContext as VG,useEffect as hbe,useRef as YG}from"react";var mP=mbe(null);function Alo({open:e,children:o}){let t=YG(!!e);return ube(mP.Provider,{value:t,children:o})}function qG(){let e=VG(mP);return()=>e?.current?(e.current=!1,!0):!1}function XG(e){let o=VG(mP),t=YG(e);t.current=e,hbe(()=>{o?.current&&(t.current.setView("pages"),t.current.reveal())},[o])}var tj="sf-editor-pages-collapsed-groups";function Lbe(){let e=xP(),{siteId:o,templateId:t}=rj(),r=Ge(e).pages;if(!(!r.duplicate||t))return(a,n)=>r.duplicate(a.id,{...n,...o?{siteId:o}:{}})}function aj({onNavigate:e,onClose:o,activeSurface:t,onPreviewSurface:r}){let a=xP().chrome?.pageRows,n=Obe(),{adapter:s,capabilities:i,ready:l,currentSlug:d}=rj(),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(xP()).pages.createFromStarter,D=Lbe(),[P,L]=Ks(null),[C,A]=Ks(()=>{if(typeof window>"u")return new Set;try{let G=window.localStorage.getItem(tj);return new Set(G?JSON.parse(G):[])}catch{return new Set}});ZG(()=>{try{window.localStorage.setItem(tj,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=JG(()=>z1(u??[]),[u]),W=I.trim().toLowerCase(),U=G=>!W||G.toLowerCase().includes(W),Z=G=>W?!0:!C.has(G),V=JG(()=>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=qG();ZG(()=>{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(JR(c("New popup"),V));await p(),e(G.slug)}catch{y(c("Couldn\u2019t add the popup \u2014 please retry."))}finally{v(!1)}}},Oe=Ibe(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)};ej.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(),ej.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=U1(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&&Abe(G),Lr=Mo||i.pageCreationInAdminForm||le?cI(xbe,{children:[Mo&&$e(dI,{kind:"plain",label:c("Duplicate \u201C{name}\u201D",{name:G.label}),disabled:S,onClick:()=>L(G),children:$e(Tbe,{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(Ebe,{size:13})}),le&&$e(dI,{kind:"delete",label:c("Delete \u201C{name}\u201D",{name:G.label}),disabled:S,onClick:()=>qo(G),children:$e(hP,{name:"trash",size:13,strokeWidth:1.7,rounded:!0})})]}):void 0;return $e(oj,{icon:$e(Pbe,{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(gbe,{children:[$e(vbe,{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(oj,{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(hP,{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(ybe,{icon:$e(_be,{}),title:c("Pages"),context:f,actions:$e(bbe,{buttonRef:Oe,label:ee?c("Add"):c("New page"),hasPopup:ee?"menu":void 0,expanded:ee?Ee!==null:void 0,onClick:No,children:$e(kbe,{size:15})})}),Ee&&$e(wbe,{portal:!0,style:{top:Ee.top,right:Ee.right},onClose:()=>Fe(null),children:cI("div",{role:"menu","aria-label":c("Add"),children:[$e(QG,{role:"menuitem",onClick:()=>{Fe(null),de()},children:c("Page")}),$e(QG,{role:"menuitem",disabled:S,onClick:()=>{Fe(null),_e()},children:c("Popup")})]})}),$e("div",{className:"sf-pages-find",children:$e(Sbe,{type:"search",leftIcon:$e(hP,{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(Cbe,{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(Rbe,{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(KG,{open:!0,onClose:()=>F(!1),takenSlugs:V,onCreated:G=>{F(!1),p(),e(G.slug)}}):null]})}import{jsx as ij}from"react/jsx-runtime";import{createContext as Bbe,useCallback as Nbe,useContext as Dbe,useMemo as Mbe,useState as Hbe}from"react";import{CanvasChromeContext as Wbe}from"efficient-easel/easel";import{useSelectHandler as $be}from"efficient-easel/draw/client";import{parseHexColor as Fbe}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 nj(e){return e==="left"?"left":Vs}function sj(e){return e&&Fbe(e)===e.toLowerCase()?e.toLowerCase():""}var lj="chat",uI={enabled:!0,title:"",subtitle:"",greeting:"",launcherColor:"",launcherIcon:"",launcherPosition:Vs,launcherLabel:"",showOnPhones:!0};function cco(e){return{enabled:e.enabled,title:e.title,subtitle:e.subtitle,greeting:e.greeting,launcherColor:sj(e.launcherColor),launcherIcon:e.launcherIcon?pI(e.launcherIcon):"",launcherPosition:nj(e.launcherPosition),launcherLabel:e.launcherLabel??"",showOnPhones:e.showOnPhones!==!1}}var cj=Bbe({chat:uI,setChat:()=>{},setSelected:()=>{},setSelectHandler:()=>{}});function dco({children:e,chat:o=uI,onChatChange:t}){let[r,a]=Hbe(!1),n=Nbe(d=>t?.(d),[t]),{select:s,setSelectHandler:i}=$be(),l=Mbe(()=>({selected:()=>r?lj:null,select:d=>d===lj&&s()}),[r,s]);return ij(cj.Provider,{value:{chat:o,setChat:n,setSelected:a,setSelectHandler:i},children:ij(Wbe.Provider,{value:l,children:e})})}var mI=()=>Dbe(cj);import{jsx as gP}from"react/jsx-runtime";import{DesktopIcon as Ube,PhoneIcon as zbe,TabletIcon as Gbe}from"efficient-easel/icons";import{VIEW_TIERS as jbe,VIEW_TIER_LABEL as Kbe}from"efficient-easel/draw";var Vbe={desktop:gP(Ube,{}),tablet:gP(Gbe,{}),mobile:gP(zbe,{})},dj=jbe.map(e=>({id:e,get label(){return c(Kbe[e])},icon:Vbe[e]}));import{PreviewDeviceContext as tPe}from"efficient-easel/draw/client";import{jsx as Ybe}from"react/jsx-runtime";import{createContext as qbe,useCallback as fj,useContext as Xbe,useMemo as Zbe,useRef as Jbe}from"react";var Qbe=Object.fromEntries(gu.map(e=>[e,{value:"",error:null}])),pj=qbe({links:FO,rows:Qbe,canSave:!1,saveLink:async()=>({ok:!1,error:"There is no website to save to."}),openPanel:()=>{},setOpenHandler:()=>{}});function bco({children:e,value:o}){let t=Jbe(()=>{}),r=fj(()=>t.current(),[]),a=fj(s=>{t.current=s},[]),n=Zbe(()=>({...o,openPanel:r,setOpenHandler:a}),[o,r,a]);return Ybe(pj.Provider,{value:n,children:e})}var Kf=()=>Xbe(pj);import{jsx as eSe}from"react/jsx-runtime";import{createContext as oSe,useContext as tSe,useMemo as rSe,useState as aSe}from"react";var uj=oSe(null);function vco({children:e}){let[o,t]=aSe(null),r=rSe(()=>({surface:o,setSurface:t}),[o]);return eSe(uj.Provider,{value:r,children:e})}function mj(){return tSe(uj)??{surface:null,setSurface:()=>{}}}import{createPreviewSelectionContext as nSe}from"efficient-easel/draw/client";var{Provider:Pco,useSelection:hI}=nSe("selectedHeroPart");import{jsx as Le,jsxs as Sn,Fragment as _K}from"react/jsx-runtime";import{useEasel as Ove,useRootFields as Ave}from"efficient-easel/easel";import{Button as Rve,EmptyState as Lve}from"efficient-shell/ui";function hj({kind:e,pageName:o}){return{name:o?.trim()||c("This page"),kindLabel:Un({kind:e})?c("Template"):c("Page")}}import{headWords as LK,InspectorHead as Fve,InspectorIconButton as OK}from"efficient-easel/chrome";import{DuplicateIcon as Bve,TrashIcon as Nve}from"efficient-easel/icons";import{panelFieldsOf as Dve}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 lSe,BlockBoxIcon as cSe,BlockButtonIcon as dSe,BlockDividerIcon as gj,BlockFooterIcon as Ij,BlockHeadingIcon as fSe,BlockProductIcon as pSe,BlockSocialIcon as uSe,BlockTextIcon as mSe,CardPaymentIcon as hSe,ChatIcon as xSe,AccountIcon as gSe,GlobeIcon as ISe,GridIcon as ySe,ImageIcon as yP,MapIcon as bSe,MediaIcon as SSe,PageIcon as wSe}from"efficient-easel/icons";import{jsx as IP,Fragment as sSe,jsxs as iSe}from"react/jsx-runtime";var xj=iSe(sSe,{children:[IP("circle",{cx:"9",cy:"20",r:"1.3"}),IP("circle",{cx:"18",cy:"20",r:"1.3"}),IP("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 CSe={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:xj,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"})},vSe=H("rect",{x:"4",y:"4",width:"16",height:"16",rx:"2.5"}),kSe={footer:Ij,Footer:Ij,Divider:gj,FooterDivider:gj,Banner:lSe,Flex:cSe,FooterSocial:uSe,FooterPayment:hSe,page:wSe,website:ISe,AccountBlock:gSe,chat:xSe,Heading:fSe,Text:mSe,ImageBlock:yP,ButtonBlock:dSe,LocationMap:bSe,Grid:ySe,ProductRef:pSe,heroMedia:SSe,heroImage:yP,heroImage2:yP},TSe={MenuBlock:"FooterMenu",EmailFormBlock:"FooterEmailSignup",SocialLogosBlock:"FooterSocial",PaymentLogosBlock:"FooterPayment",SiteHeader:"header",SiteFooter:"footer"};function Ys({type:e,size:o=16,className:t}){let r=TSe[e]??e,a=kSe[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:CSe[r]??vSe})}import{PanelHideButton as AK}from"efficient-easel/screen/components/SidePanelHead";import{useEaselSession as Mve}from"efficient-easel/screen/lib/session-context";import{jsx as Ne,jsxs as Vf,Fragment as PSe}from"react/jsx-runtime";import{useEffect as ESe,useId as yj,useState as _Se}from"react";import{IconPicker as OSe}from"efficient-shell/ui";import{SettingsDefaultReset as ASe,SettingsField as Yf,SettingsSegmented as RSe,SettingsSwitch as bj}from"efficient-easel/panel";import{ButtonIcon as LSe,ButtonIconIcon as FSe,EyeIcon as BSe,PhoneIcon as NSe,PlacementIcon as DSe,TypeIcon as MSe}from"efficient-easel/icons";var HSe="Chat with us",WSe="We usually reply within a few minutes",$Se="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]=_Se(o);ESe(()=>i(o),[o]);let l=()=>{s!==o&&r(s)};return Ne(Yf,{label:e,icon:Ne(MSe,{}),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(ASe,{words:ce()?.panel,label:e,changed:o,onReset:t})}function USe({label:e,icon:o,checked:t,fallback:r,onChange:a,hint:n}){let s=yj();return Ne(Yf,{label:e,labelId:s,icon:o,changed:t!==r,action:Vf("span",{className:"inline-flex items-center gap-2",children:[Ne(bj,{checked:t,onChange:a,ariaLabelledBy:s}),Ne(qf,{label:e,changed:t!==r,onReset:()=>a(r)})]}),hint:n})}var zSe=fI.map(e=>({value:e,icon:Mu(e)}));function GSe(){let{theme:e}=fe(),o=ko(e).themes[0];return kc(o)??o?.accent??""}function Sj(){let{chat:e,setChat:o}=mI(),t=yj(),r=GSe(),a=e.launcherIcon?pI(e.launcherIcon):oc;return Vf(PSe,{children:[Ne(Yf,{label:c("Show the chat bubble"),labelId:t,icon:Ne(BSe,{}),changed:!e.enabled,action:Vf("span",{className:"inline-flex items-center gap-2",children:[Ne(bj,{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(LSe,{}),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(FSe,{}),value:Ne(qS,{value:a}),changed:a!==oc,action:Ne(qf,{label:c("Icon"),changed:a!==oc,onReset:()=>o({launcherIcon:""})}),children:Ne(OSe,{label:c("Icon"),value:a,options:zSe,onChange:n=>o({launcherIcon:n===oc?"":n})})}),Ne(Yf,{label:c("Position"),icon:Ne(DSe,{}),changed:e.launcherPosition!==Vs,action:Ne(qf,{label:c("Position"),changed:e.launcherPosition!==Vs,onReset:()=>o({launcherPosition:Vs})}),children:Ne(RSe,{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(USe,{label:c("Show on phones"),icon:Ne(NSe,{}),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:HSe,onCommit:n=>o({title:n})}),Ne(xI,{label:c("Subtitle"),value:e.subtitle,placeholder:WSe,onCommit:n=>o({subtitle:n})}),Ne(xI,{label:c("Greeting message"),value:e.greeting,placeholder:$Se,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 $P,jsxs as Tj}from"react/jsx-runtime";import{useEffect as bwe,useId as vj,useState as kj}from"react";import{SettingsField as Swe}from"efficient-easel/panel";import{jsx as fwe}from"react/jsx-runtime";import{forwardRef as jSe,createElement as bP}from"react";var wj={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=jSe(({color:n="currentColor",size:s=24,stroke:i=2,title:l,className:d,children:f,...u},p)=>bP("svg",{ref:p,...wj[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&&bP("title",{key:"svg-title"},l),...r.map(([m,h])=>bP(m,h)),...Array.isArray(f)?f:[f]]));return a.displayName=`${t}`,a};var KSe=[["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"}]],SP=pe("outline","brand-facebook","BrandFacebook",KSe);var VSe=[["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"}]],wP=pe("outline","brand-instagram","BrandInstagram",VSe);var YSe=[["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"}]],CP=pe("outline","brand-line","BrandLine",YSe);var qSe=[["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"}]],vP=pe("outline","brand-linkedin","BrandLinkedin",qSe);var XSe=[["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"}]],kP=pe("outline","brand-pinterest","BrandPinterest",XSe);var ZSe=[["path",{d:"M15 10l-4 4l6 6l4 -16l-18 7l4 2l2 6l3 -4",key:"svg-0"}]],TP=pe("outline","brand-telegram","BrandTelegram",ZSe);var JSe=[["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"}]],PP=pe("outline","brand-tiktok","BrandTiktok",JSe);var QSe=[["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"}]],EP=pe("outline","brand-wechat","BrandWechat",QSe);var ewe=[["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"}]],_P=pe("outline","brand-whatsapp","BrandWhatsapp",ewe);var owe=[["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"}]],OP=pe("outline","brand-x","BrandX",owe);var twe=[["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"}]],AP=pe("outline","brand-youtube","BrandYoutube",twe);var rwe=[["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"}]],RP=pe("filled","brand-facebook-filled","BrandFacebookFilled",rwe);var awe=[["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"}]],LP=pe("filled","brand-instagram-filled","BrandInstagramFilled",awe);var nwe=[["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"}]],FP=pe("filled","brand-linkedin-filled","BrandLinkedinFilled",nwe);var swe=[["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"}]],BP=pe("filled","brand-pinterest-filled","BrandPinterestFilled",swe);var iwe=[["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"}]],NP=pe("filled","brand-tiktok-filled","BrandTiktokFilled",iwe);var lwe=[["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"}]],DP=pe("filled","brand-whatsapp-filled","BrandWhatsappFilled",lwe);var cwe=[["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"}]],MP=pe("filled","brand-x-filled","BrandXFilled",cwe);var dwe=[["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"}]],HP=pe("filled","brand-youtube-filled","BrandYoutubeFilled",dwe);var dfo="outline",gI={fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},pwe={},WP={fillRule:"evenodd"},uwe=[["path",{...gI,d:"M21 4L3 11L7 13L9 19L12 15L17 20z"}],["path",{...WP,d:"M21 4L3 11L7 13L9 19L12 15L17 20zM15.212 8.939 10.576 13.576 11.424 14.424 16.061 9.788z"}]],mwe=[["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",{...pwe,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("")}]],hwe=[["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",{...WP,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",{...WP,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("")}]],xwe=pe("filled","brand-telegram-filled","BrandTelegramFilled",uwe),gwe=pe("filled","brand-line-filled","BrandLineFilled",mwe),Iwe=pe("filled","brand-wechat-filled","BrandWechatFilled",hwe),ywe={instagram:{outline:wP,solid:LP},facebook:{outline:SP,solid:RP},tiktok:{outline:PP,solid:NP},youtube:{outline:AP,solid:HP},x:{outline:OP,solid:MP},linkedin:{outline:vP,solid:FP},pinterest:{outline:kP,solid:BP},whatsapp:{outline:_P,solid:DP},telegram:{outline:TP,solid:xwe},line:{outline:CP,solid:gwe},wechat:{outline:EP,solid:Iwe}};function Cj({platform:e,iconStyle:o,size:t}){let r=ywe[e][o];return fwe(r,{size:t,stroke:1.75,"aria-hidden":"true",focusable:"false"})}var wwe={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 Cwe({platform:e}){let{rows:o,saveLink:t}=Kf(),{value:r,error:a}=o[e],[n,s]=kj(r),[i,l]=kj(!1),d=vj(),f=vj();bwe(()=>s(r),[r]);let u=async()=>{if(n.trim()===r){n!==r&&s(r);return}l(!0),await t(e,n),l(!1)},p=LO[e];return Tj($P,{children:[qs(Swe,{label:c(p),htmlFor:d,icon:qs(Cj,{platform:e,iconStyle:"outline",size:18}),children:qs("input",{id:d,type:"text",inputMode:"url",value:n,placeholder:wwe[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 Pj({unavailable:e}){let{canSave:o}=Kf();return!o&&e?qs($P,{children:e}):Tj($P,{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(Cwe,{platform:t},t))]})}import{jsx as Js,Fragment as qwe,jsxs as Xwe}from"react/jsx-runtime";import{useId as Zwe,useMemo as Jwe}from"react";import{useEasel as Qwe}from"efficient-easel/easel";import{SettingsField as eCe,SettingsSwitch as oCe}from"efficient-easel/panel";import{EyeIcon as tCe}from"efficient-easel/icons";import{fieldShownInView as rCe}from"efficient-easel/fields";import{usePreviewDevice as aCe}from"efficient-easel/draw/client";import{jsx as Zs,Fragment as Twe}from"react/jsx-runtime";import{createContext as Pwe,useContext as Ewe,useLayoutEffect as _we,useMemo as _j,useRef as Owe,useState as Oj}from"react";import{useEasel as Aj,useSelectedFields as Awe}from"efficient-easel/easel";import{fieldShownInView as Rwe,Inspector as Lwe,LEAD_BAND_KEY as Fwe,planFields as Rj}from"efficient-easel/fields";function Ej({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 vwe}from"react/jsx-runtime";import{EmptyState as kwe}from"efficient-shell/ui";function Xs(){return vwe(kwe,{variant:"none",icon:!1,message:c("These settings apply to every view.")})}import{usePreviewDevice as Bwe}from"efficient-easel/draw/client";import{deviceField as Nwe}from"efficient-easel/screen/lib/document/device-fields";var Dwe="Text",UP=new Map,II=new Set,Mwe=Object.fromEntries(Uf.map(e=>{let o=oB[e];return[e,Zs(o,{},e)]})),Lj=Pwe(null),Hwe={_partBody:Nwe("each",{type:"custom",render:()=>Zs(Wwe,{})})};function Wwe(){return Zs(Twe,{children:Ewe(Lj)})}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}=Awe(),p=_j(()=>a?{...d,...a.values}:d,[d,a?.values]),m=(ee,_e)=>a?.keys.has(ee)?a.onChange(ee,_e):u(ee,_e),h=Bwe(),{appState:I,config:w}=Aj(ee=>ee),S=K1(h,w,I.data.content??[],I.ui.itemSelector),v=n===void 0?hH(l,t):Hwe,b=_j(()=>{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]=Oj(()=>new Set(II)),T=Rwe({},h),D={key:Fwe,title:Dwe},P=Aj(ee=>ee.selectedItem)!==null,L=a?.part??t??"",C=`${i}:${L}:${String(h)}`,[A,E]=Oj(()=>({tab:UP.get(C)})),R=`${i}:${L}`,W=Owe(null),U={...S,node:p},Z=Rj(y,{values:p,context:U}).buckets,V=Ej({allTabs:P,remembered:UP.get(C),inherited:W.current?.panel===R?W.current.tab:A.tab,buckets:Z,hasText:T&&o>0}),de=!T&&!Z.includes(V)&&(Rj(gb(b,p,{...S,device:"desktop"}),{values:p,context:{...U,device:"desktop"}}).buckets.includes(V)||V==="Design"&&o>0);_we(()=>{W.current={panel:R,tab:V}});let Ce=V==="Design";return Zs(Lj.Provider,{value:n??null,children:Zs(Iw.Provider,{value:a?p:null,children:Zs(Lwe,{fields:y,values:p,onChange:m,readOnly:f,allTabs:P,showWhenContext:U,context:{itemWord:s},tab:V,onTab:ee=>{UP.set(C,ee),E({tab:ee})},tabIcons:Mwe,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 $we}from"react";import{useEasel as Uwe}from"efficient-easel/easel";import{useSectionOps as zwe}from"efficient-easel/screen/lib/document/use-section-ops";var Fj=new Map,Gwe=e=>{let o=Fj.get(e);return o||Fj.set(e,o=Qg(Zg(e),`part:${e}`)),o},jwe=new Set(rv);function tc(e,o,t){let{getItemById:r,getSelectorForId:a}=Uwe(f=>f),n=zwe(),s=r(e)?.props??{},i=ws(s,o),l=JSON.stringify(i),d=$we(()=>Object.fromEntries(rv.map(f=>[f,i[f]])),[l]);return{part:o,fields:Gwe(t),values:d,keys:jwe,onChange:(f,u)=>{let p=a(e),m=r(e);if(!p||!m)return;let h=GM(m.props??{},o,f,u);n.replaceComponent(p.zone,p.index,{...m,props:h})}}}import{Fragment as Kwe,createElement as Vwe}from"react";import{deviceField as zP}from"efficient-easel/screen/lib/document/device-fields";var Yo=()=>({type:"custom",render:()=>Vwe(Kwe)});var GP={words:Yo(),sourceNote:Yo(),style:Yo(),font:Yo(),italic:Yo(),fontSize:zP("each",Yo()),lineHeight:Yo(),letterSpacing:Yo(),paragraphSpacing:Yo(),padding:Yo(),align:zP("each",Yo()),letterCase:Yo(),fixedSizeHint:zP("each",Yo()),regionNote:Yo(),regionStyle:Yo()},Ywe=["fontSize","align"];function Bj(e){return Ywe.includes(e)}var Nj={showTicker:Yo(),items:Yo()};var nCe="root:default-zone";function Dj({heroId:e}){let{appState:o,dispatch:t}=Qwe(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=Jwe(()=>{let m=n?.props.tickerItems;return Array.isArray(m)?m:QH.map(h=>({text:h}))},[n]),l=Zwe(),d=aCe(),f=m=>rCe(Nj[m],d),u=tc(e,e4,"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:nCe,destinationIndex:a,data:{...n,props:{...n.props,...m}}});return Js(Or,{motion:u,body:Xwe(qwe,{children:[!f("showTicker")&&!f("items")&&Js(Xs,{}),f("showTicker")&&Js(eCe,{label:c("Show ticker"),labelId:l,icon:Js(tCe,{}),action:Js(oCe,{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 yCe,useEffect as jP,useRef as bCe,useState as Yj}from"react";import{FieldSelect as SCe,InspectorField as wCe,fieldShownInView as CCe}from"efficient-easel/fields";import{InertHint as rK,SettingsField as vCe}from"efficient-easel/panel";import{InspectorUpLevel as vI}from"efficient-easel/chrome";import{StylesIcon as kCe,TypeIcon as TCe}from"efficient-easel/icons";import{useEasel as PCe}from"efficient-easel/easel";import{TextPartPanel as qj}from"efficient-easel/copy";import{Button as ECe,IconButton as _Ce,Tooltip as OCe}from"efficient-shell/ui";import{jsx as Wj,jsxs as sCe}from"react/jsx-runtime";import{DEFAULT_EASEL_STRINGS as iCe}from"efficient-easel/strings";import{COPY_CELLS as rc,COPY_CELL_LENGTHS as Mj,CopyBox as lCe,lengthCellUnits as cCe}from"efficient-easel/copy";import{PaddingYIcon as dCe}from"efficient-easel/icons";import{onDesktopWords as fCe}from"efficient-easel/screen/lib/document/box-fields";var Hj=iCe.copy.cells,pCe={kind:"spacing"},uCe=["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=UN(e,r),l=(f,u,p,m,h)=>{let I=Kt[p];return cCe({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:Wj(dCe,{}),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,Mj.fontSize,n,Math.round(o.sizePx),Hj.fontSize),...n==="size"?{}:{reset:{detail:i?fCe(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,Mj.paragraphSpacing,"paragraphSpacing",0,Hj.paragraphSpacing)},{...d,value:e.padding,styleValue:o.paddingPx,onChange:f=>t({padding:f??null}),...l(d,pCe,"padding",o.paddingPx,"Padding")}]}function $j({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 sCe("div",{className:"sf-part-textbox",children:[u,Wj(lCe,{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:uCe,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 Xj}from"efficient-easel/draw/client";import{jsx as bI,Fragment as mCe,jsxs as hCe}from"react/jsx-runtime";import{Button as Uj,Dialog as xCe}from"efficient-shell/ui";function zj({styleName:e,onCancel:o,onConfirm:t}){return bI(xCe,{open:!0,onClose:o,role:"alertdialog",size:"sm",title:c("Update {style}?",{style:e}),footer:hCe(mCe,{children:[bI(Uj,{variant:"secondary",onClick:o,children:c("Cancel")}),bI(Uj,{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 ACe}from"efficient-easel/screen/components/ScreenDocumentContext";import{usePreviewDevice as RCe}from"efficient-easel/draw/client";import{shownTier as wI}from"efficient-easel/screen/lib/document/device-fields";import{TEXT_FIELD_MARKER as LCe,viewKeyAt as FCe}from"efficient-easel/draw";import{useSectionOps as BCe}from"efficient-easel/screen/lib/document/use-section-ops";import{useEaselHost as NCe}from"efficient-easel/screen/lib/host";function gCe(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 ICe={CollectionCard:"product",FooterMenu:"menu",Gallery:"product",GalleryItem:"product",ProductGrid:"product",ProductHero:"product",SpecTable:"product",Events:"blog",FeaturedCover:"blog",LongRead:"blog",SubscribeBlogs:"blog"},Gj={product:"Synced from the product.",blog:"Synced from the blog post.",menu:"Synced from the site menu."},jj="Open",Kj={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 $(ICe,e)??null}function Vj(e,o){let t=Xf(e);return t&&gCe(e).includes(o)?t:null}function SI(e){let o=e?.menu?.id;return be(o)}function KP(e){return e?c(e):null}function Zj(e){return e.kind==="role"?XI[e.role]:e.kind==="custom"?"Custom":null}function DCe(e){let o=aa(e.role);return o?{kind:"role",role:o}:null}function MCe(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 DCe(ms(e,o))??MCe(t,r)}function HCe(e,o){if(!e.length)return null;let t=o(e[0]);return e.every(r=>o(r)===t)?t:null}function Jj(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 WCe({face:e,base:o,onPick:t}){let r=e.kind==="role"?e.role:Zf,a=[{label:c("No style"),value:Zf},...j0.map(n=>({label:c(XI[n]),value:n}))];return te(SCe,{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:KP(Zj(e))}),valueText:n=>KP(Zj(e))??n?.label??""})}var aK=["regionNote","regionStyle"],$Ce=Object.keys(GP).filter(e=>!aK.includes(e));function nK(e,o){return!e.some(o)}function UCe({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=NCe(),a=Kj[e],n=!a.needsSlug||!!o;return te("div",{className:"sf-note sf-note--source",children:nr(rK,{children:[c(Gj[e]),n?nr(Jf,{children:[" ",te(ECe,{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(jj)})]}):null]})})}var Qj=4,zCe=120;function eK(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 oK({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:eK(e)})]}):a?l("regionStyle")?te(Jf,{children:te(vCe,{label:c("Style"),icon:te(kCe,{}),hint:eK(e),children:te(WCe,{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,nK([...aK,"sourceNote",...d?["fontSize"]:[]],p=>l(p)&&(p!=="sourceNote"||!!n))&&te(Xs,{}),te(vI,{inline:!0,name:c("Page"),onSelect:i})]})}function GCe({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 jCe({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 sK({nodeId:e,propKey:o,onBack:t,onEditStyle:r}){let{getItemById:a,getSelectorForId:n,config:s}=PCe(X=>X),i=BCe(),l=JB(),{partStyle:d}=zl(),{fonts:f,textStyles:u}=fe(),p=yCe(ACe),m=!p?.capabilities?.hasSiteTheme,{persist:h}=Wi({themeFromDocument:m,tokenRef:p?.tokenRef,siteId:p?.siteId??null}),I=Rh({themeFromDocument:m,persist:h}),[w,S]=Yj(!1),v=RCe(),b=X=>(wI(v)!=="tablet"||Bj(X))&&CCe(GP[X],v),y=bCe(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?Vj(k.type,D):null,de=P?gd(E[D],P):E[D],Ce=!!P&&!(Array.isArray(E[D])&&P.index<E[D].length);jP(()=>{ZB(document)||y.current?.querySelector(".es-copy [contenteditable='true'], .es-copy textarea, .sf-copybox textarea, .sf-copybox input")?.focus()},[A]);let[ee,_e]=Yj(0);jP(()=>_e(0),[A]);let Oe=!!k&&!Ce&&(!F||!C);jP(()=>{if(!Oe||ee>=Qj)return;let X=setTimeout(()=>_e(mo=>mo+1),zCe);return()=>clearTimeout(X)},[Oe,ee]);let Ee=Oe&&ee<Qj,Fe=tc(e,ka(k?.type,o),"textPart");if(!k||Ce)return te(GCe,{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&&qE(mo)){let Tn=ms(E,o),O0=Pn=>{if(!F)return;let YI=E;for(let[XV,ZV]of Object.entries(Pn))YI=hs(YI,o,XV,ZV??null);i.replaceComponent(F.zone,F.index,{...k,props:YI})},VV=Ca(I.saved,I.old),YV=sC(Tn)??"",qV=yI(Tn,X?.base??tK,O0,wI(v)).filter(Pn=>Pn.key==="fontSize"&&b(Pn.key));return te(Or,{motion:Fe,body:te(oK,{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:YN(Tn),sizedStyle:te(qj,{style:b("style")?{value:YV,options:Jj(VV),onChange:Pn=>O0(Pn?{textStyle:Pn}:{textStyle:null,role:null}),onEditStyles:r}:void 0,cells:qV})})})}return te(Or,{motion:Fe,body:te(oK,{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(jCe,{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??tK,style:rt}],Mo=HCe(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?.[LCe]?.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(TCe,{}),te("span",{className:"sf-field-label sf-field-label--inline",children:c(Fa)}),ti&&te(OCe,{content:wn,children:te(_Ce,{"aria-pressed":ta,"aria-label":wn,onClick:()=>Co({text:ri,hidden:!ta}),children:ta?te(Xj,{name:"eye-off",size:14}):te(Xj,{name:"eye",size:14})})})]}),Cn=!W&&U,hp=!!R&&(QF(C)||W||ta||!U),pc=CI(le,oo,vo,f),xp=pc.kind==="role"?pc.role:null,vn=sC(rt)??mD(xp),_0=Ca(I.saved,I.old),UV=Object.entries(rt).filter(([X,mo])=>X!=="role"&&X!=="textStyle"&&mo!==void 0).length,zV=()=>{let X=le;for(let mo of Xe){let{role:ir,textStyle:Ba}=mo.style;X=WN(X,mo.partKey),ir&&(X=hs(X,mo.partKey,"role",ir)),Ba&&(X=hs(X,mo.partKey,"textStyle",Ba))}io(X)},kn=vn,GV=hD(Xe[0].style),jV=kn?_0.find(X=>X.id===kn)?.name??kn:"",KV=()=>{S(!1),kn&&(I.write(xD({saved:I.saved,old:I.old,styleId:kn,values:EC(Xe[0].style)}),!0),zV())};return nr(UCe,{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($j,{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:KP(TB(C))??void 0,ariaLabel:c(Fa),head:fc,typedOnCanvas:l===A}):R?ti?fc:null:te(wCe,{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(qj,{style:b("style")?{value:vn??"",options:Jj(_0),onChange:X=>VI(X||null),changed:UV>0,onEditStyles:r,onUpdateStyle:kn&&GV?()=>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:VCe(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")?KCe(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(zj,{styleName:jV,onCancel:()=>S(!1),onConfirm:KV}),Cn&&Mo===null&&b("fixedSizeHint")&&te(rK,{children:c("Fixed size \u2014 the site\u2019s Text setting doesn\u2019t resize this.")}),nK($Ce,X=>b(X)&&(X==="words"||(X==="sourceNote"?!!V:X==="fixedSizeHint"?Cn&&Mo===null:Cn)))&&te(Xs,{})]})}function KCe(e,o,t,r){let a=FCe("align",t),n=$N(e,t);return{value:e[a]??"",styleValue:n??o,onChange:s=>r(a,s||null)}}function VCe(e,o){return!o||!Array.isArray(e)?!1:e.find(t=>t?.id===o)?.values?.italic===!0}var tK={fontKey:"",sizePx:16,weight:400,lineRatio:1.4,letterEm:0,align:"left",case:"none",paddingPx:0};import{jsx as Ar,jsxs as JP,Fragment as QCe}from"react/jsx-runtime";import{useCallback as eve,useRef as ove,useState as op}from"react";import{InspectorIconButton as tve}from"efficient-easel/chrome";import{useEasel as rve}from"efficient-easel/easel";import{PopupMenu as ave,PopupMenuItem as nve,PopupMenuLabel as RI}from"efficient-shell/ui";import{CopyToPageIcon as sve}from"efficient-easel/icons";import{useEaselSession as ive}from"efficient-easel/screen/lib/session-context";import{cloneNodeWithFreshIds as lve}from"efficient-easel/screen/lib/document/section-doc";import{FOOTER_TYPE as cve}from"efficient-easel/draw";import{isBackendError as nc}from"efficient-easel/screen/lib/backend-error";import{isEfficientBackend as xK}from"efficient-easel/screen/lib/session";var TI=wu(),VP=TI.set;function PI(e,o){VP(e,o)}function EI(e,o){let t=TI.get(e);VP(e,o??(t==="live"?"changed":t))}function _I(e,o){VP(e,o??"live")}function iK(e){return TI.get(e)}function lK(e){return TI.use(e)}function cK(e,o){return e==="live"&&o?"changed":e}function YP({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 dK(e){return e.map(o=>o.change==="take_down"?c("{name} (taken down)",{name:o.name}):o.name)}var fK="SharedSection",YCe=/^[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 pK(e){if(e?.type!==fK)return null;let o=e.props?.section;return typeof o=="string"&&YCe.test(o)?o.toLowerCase():null}function uK(e){let o=[];for(let t of Qf(e)){let r=pK(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 qCe(e,o){return{type:fK,props:{id:e,section:o}}}function mK(e,o){let t=new Map,r=new Set,a=!1,n=Qf(e).map(s=>{let i=pK(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 hK(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??qCe(l.refId,l.section)});return{page:a?{...e,content:n}:e,docs:r}}function ZP(e){return!!(e?.publish&&e.liveState)}function XCe(e,o){if(!ZP(e))return;let{versions:t,nameVersion:r,restoreVersion:a,previewVersion:n}=e;if(!(!t||!r||!a||!n))return{list:()=>t.call(e,o),name:(s,i)=>r.call(e,s,i,o),restore:(s,i)=>a.call(e,s,i??{},o),preview:s=>n.call(e,s,o)}}function ZCe(e,o){return async(t,r)=>{try{await SR()}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 XP(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),w1(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),C1(a,l.videoFrames),ma(),l)),rereadVersion:e.version?a=>e.version(a):void 0,publish:ZP(t)?ZCe(t,r):e.publish?(a,n)=>e.publish(a,n?{version:n}:void 0).then(s=>(_I(a,s.live),s)):void 0,listPages:()=>e.list(r),createPage:e.create?a=>e.create({...a,...r}):void 0,deletePage:e.remove?(a,n)=>e.remove(a,n):void 0}}function JCe(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=iK(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=uK(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=mK(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=g1(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=hK(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:VO(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 $uo(e,o,t){return e.update(o,YO(t))}function Uuo(e,o=Ge(),t=lT(),r={}){let a=xK(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=ZP(o.site)?o.site:void 0,u=AI(o.pages),p=XP(u,e,f),m=d?JCe(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,...gK(p.resolve),lock:o.lock,...m,site:s?()=>o.site.get(n):void 0,siteLiveState:f?()=>f.liveState(n):void 0,siteVersions:XCe(f,n),updateSite:s&&i?h=>i(h,n):void 0,previewHref:o.preview?h=>o.preview.href(h):void 0}}function zuo(e,o=Ge(),t=lT()){let r=xK(o),a=o.templates,n=a?AI(a.pages(e)):{list:()=>Promise.reject(new Error(qP)),load:()=>Promise.reject(new Error(qP)),save:()=>Promise.reject(new Error(qP))};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},...XP(n,void 0),...gK(XP(n,void 0).resolve),publish:void 0,templateName:a?()=>a.get(e).then(s=>s.name):void 0}}function gK(e){return{resolve:o=>(KT(null),ob(null),e(o))}}var qP="This editor's backend has no website templates.";function dve(e,o,t){let r=lve(e,void 0,o);return t?.(r)??r}function IK({node:e,currentSlug:o,siteId:t,tokenRef:r,runAuthed:a,onNotify:n}){let[s,i]=op(!1),[l,d]=op(null),f=ive(),u=rve(T=>T.config.components),[p,m]=op(!1),[h,I]=op(null),w=ove(null),[S,v]=op(null),b=eve(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=dve(e,u,f.documentHooks?.storedNode),P=await a(()=>fve(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 JP(QCe,{children:[Ar("span",{"data-menu-toggle":!0,style:{display:"contents"},children:Ar(tve,{buttonRef:w,label:c("Duplicate to another page"),hasPopup:"menu",expanded:s,onClick:y,children:Ar(sve,{size:15})})}),s&&S&&Ar(ave,{portal:!0,style:{top:S.top,right:S.right},onClose:()=>i(!1),children:JP("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=>JP(nve,{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 fve(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===cve);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 Hve}from"efficient-easel/screen/components/ScreenDocumentContext";import{useSectionOps as Wve}from"efficient-easel/screen/lib/document/use-section-ops";import{SELECTION_MODE as mho,isSelectionMode as r0}from"efficient-easel/screen/lib/screen-parts";import{usePreviewParts as $ve}from"efficient-easel/draw/client";import{jsx as tp,jsxs as pve}from"react/jsx-runtime";import{SettingsDrill as uve}from"efficient-easel/panel";import{UiIcon as mve}from"efficient-easel/draw/client";var hve="Not shown on the page";function xve({part:e,onOpen:o}){return tp(uve,{name:c(e.label),preview:e.offPage?c(hve):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(mve,{name:"eye-off",size:14})}):void 0,onOpen:()=>o(e.key)})}function QP(e){return e.filter(o=>!o.identifier)}function yK({parts:e,onOpen:o,heading:t=!0}){let r=QP(e);return r.length?pve("div",{className:"sf-entries",children:[t?tp("h3",{className:"sf-entries-head",children:c("Text")}):null,r.map(a=>tp(xve,{part:a,onOpen:o},a.key))]}):null}import{HEADER_TYPE as Uve,ROOT_ZONE as RK}from"efficient-easel/draw";import{HEADER_TYPE as Ct,FOOTER_TYPE as Qe,newNodeId as gve}from"efficient-easel/draw";function LI(){return{type:Ct,props:{id:gve(Ct)}}}var bK=[{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"}],Ive=bK.filter(e=>e.type!=="FooterLogo"&&e.type!=="FooterGroup"),yve="FooterGroup",SK="blocks";function wK(e){return e===Qe?bK:e===yve?Ive: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",{...VR}),e("FooterPayment",{...mm})]}function e0(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 CK=()=>null,vK=()=>c("Changed on every page");function BI(e,o){let t=oO(e,o);if(t)return t;let r=f1(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 Sve,jsxs as wve}from"react/jsx-runtime";import{useState as Cve}from"react";import{createNode as vve,newId as kve}from"efficient-easel/data";import{useEasel as Tve}from"efficient-easel/easel";import{Banner as Pve,Button as o0}from"efficient-shell/ui";import{useScreenDocument as Eve}from"efficient-easel/screen/components/ScreenDocumentContext";var bve=["FooterPayment"];function kK(e,o){let{id:t,...r}=e.props;for(let a of Fr(e))r[a]=r[a].map(n=>kK(n,o));return o(e.type,r)}var rp=(e,o)=>{if(!bve.includes(e.type))return null;bg();let t=cn(e.type);return t?As({type:e.type,props:{...e.props}},t).nodes.map(r=>kK(r,o)):null};function TK(){let{appState:e,dispatch:o,config:t}=Tve(f=>f),{readOnly:r}=Eve(),[a,n]=Cve(!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)=>vve(t,f,u),d=()=>{let f=bf(i,l,kve(ze),rp);o({type:"setData",data:u=>({...u,content:[...vu(u.content,f)]}),recordHistory:!0}),n(!1)};return NI(Pve,{tone:"info",title:c("This footer uses the old layout"),action:a?wve(Sve,{children:[NI(o0,{variant:"primary",size:"sm",onClick:d,children:c("Switch now")}),NI(o0,{variant:"secondary",size:"sm",onClick:()=>n(!1),children:c("Cancel")})]}):NI(o0,{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 t0,jsxs as _ve}from"react/jsx-runtime";import{InspectorUpLevel as PK}from"efficient-easel/chrome";function EK({nodeId:e,part:o,sectionName:t,onUpToSection:r}){let{select:a}=hI(),n=tc(e,o,"picture");return _ve("div",{children:[o!=="media"?t0(PK,{inline:!0,name:c(_a.media),onSelect:()=>a(Ps(e,"media"))}):t0(PK,{inline:!0,name:c(t),onSelect:r}),t0(Or,{part:o,motion:n,itemWord:c(_a[o])})]})}import{HintsToggle as zve,SettingsSwitch as Gve,hintsFoldClass as jve}from"efficient-easel/panel";import{useHints as Kve}from"efficient-easel/screen/lib/hints";var FK={kind:"header"},n0={kind:"website"},BK={kind:"website",tab:hl,revealPageGroup:!0},NK={kind:"chat"},DK={kind:"social"},ap="Part";function Vve(e){return c("Part of {name}",{name:c(e)})}function Yve(e,o,t){let r=e.describeNode(o);return{name:t,kindLabel:r?Vve(r.label):c(ap)}}function qve(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 MK({what:e}){let o=qve(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 a0(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=LK({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(EK,{nodeId:t.nodeId,part:e,sectionName:r.describeNode(t.nodeId)?.label??"Hero",onUpToSection:()=>r.onSelectNode(t.nodeId)}):null}}var Xve={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(Sj,{})},social:{name:"Social links",kindLabel:"Site settings",icon:"social",render:()=>Le(Pj,{unavailable:Le(MK,{what:"Social link"})})},ticker:{name:$s,kindLabel:ap,icon:"ticker",head:(e,o)=>e.kind==="ticker"?Yve(o,e.heroId,c($s)):null,render:e=>Le(Dj,{heroId:e.kind==="ticker"?e.heroId:""})},heroMedia:a0("media"),heroImage:a0("image"),heroImage2:a0("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:MM[e.propKey],d=l?c(l):OB(c(Sd(oh(n??{},r))),a),f=LK({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(sK,{nodeId:e.nodeId,propKey:e.propKey,onBack:()=>o.onSelectNode(e.nodeId),onEditStyle:o.onOpenSiteStyles}):null}},Zve=new Set(["header","website","chat"]);function Jve(e,o){if(e==="selection")return null;let t=Xve[e];return Zve.has(e)&&!o.hasSiteSettings?{...t,kindLabel:"Not part of a template",render:()=>Le(MK,{what:t.name})}:t}function HK({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}=Hve(),{rows:w}=Fd(),S=w?.find(le=>le.slug===u)??null,v=Ave(),b=Object.keys(v.fields).some(le=>!le.startsWith("_")&&!Rd.includes(le)),{websiteName:y}=fe(),k=Wve({readOnly:h}),{select:F}=$ve(),{selectedItem:T,getItemById:D,getSelectorForId:P,config:L,appState:C}=Ove(le=>le),A=Dve(L,T?{type:T.type,props:T.props}:null),E=T?HB(A??L.components[T.type]?.fields,T.props):[],R=le=>L.components[le]?.label??le,W=T?P(T.props.id):void 0,U=Jve(e.kind,l),Z=Mve(),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=hj({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!==RK?c("Block"):c("Section"):Ce.kindLabel),Oe=U?U.icon:T?T.type:"page",Ee=r0(e)&&T?Xf(T.type):null,Fe=!!T&&!!W&&W.zone===RK&&T.type!==Qe&&T.type!==Uve,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=r0(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}=Kve(),Ae=!!(U||T||b);return Sn("div",{className:`es-sidepanel es-sidepanel--right sf-panel sf-panel--right ${jve(eo)}`.trim(),children:[Le(Fve,{icon:Le(Ys,{type:Oe,size:15}),name:ee,kind:_e,actions:!n&&r0(e)&&T&&T.type!==Qe?Sn(_K,{children:[Le(OK,{label:c("Duplicate section"),title:No??void 0,disabled:No!==null,onClick:qo,children:Le(Bve,{size:15})}),Fe&&l.hasSiteSettings&&Le(IK,{node:T,currentSlug:u,siteId:p??void 0,tokenRef:d,runAuthed:m,onNotify:s}),Le(OK,{label:c("Remove section"),danger:!0,onClick:Xo,children:Le(Nve,{size:15})}),i?Le(AK,{side:"right",onHide:i,divider:!0}):null]}):i?Le(AK,{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(Gve,{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(_K,{children:[T.type===Qe&&l.hasSiteSettings&&Le(TK,{}),Le(tR,{children:Le(Or,{entries:Le(yK,{parts:E,heading:!1,onOpen:le=>F(qr(T.props.id,le))}),entryCount:QP(E).length,itemWord:ee})}),Ee&&Le(kI,{source:Ee,slug:ac(T?.props),menuId:SI(T?.props)})]}):b?Le(Or,{omit:Rd}):Le(Lve,{variant:"none",icon:!1,message:c("Select a section or block to edit it."),children:r&&Le(Rve,{variant:"secondary",onClick:r,children:c("This page")})}),Ae&&Le(zve,{shown:eo,onChange:G,label:c("Show hints")})]})]})}import{jsx as x,jsxs as B,Fragment as GK}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)"},s0="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 Qve={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 WK({over:e,overTone:o,head:t,headSize:r=11.5,cta:a,ctaBg:n,ctaFg:s,tone:i}){return B(GK,{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 i0({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 $K({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 l0({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 UK({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 eke={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(UK,{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(l0,{filled:4,size:14}),x(DI,{label:"Your review",filled:!0}),x(UK,{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(l0,{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($K,{}),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($K,{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(l0,{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(WK,{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(WK,{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(i0,{name:"Ridge 19",price:"$365"}),x(i0,{name:"Ridge 29",price:"$410"}),x(i0,{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))})},zK={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:s0}}),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(GK,{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:s0},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:s0}}),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 jK({type:e}){let o=Qve[e]??"",t=eke[o]??zK[o]??zK.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 KK}from"react/jsx-runtime";import oke from"efficient-easel/screen/components/SidePanelHead";import{StylesIcon as tke}from"efficient-easel/rail";import{Tooltip as rke}from"efficient-shell/ui";import{HintsToggle as ake,hintsFoldClass as nke}from"efficient-easel/panel";import{useHints as ske}from"efficient-easel/screen/lib/hints";function VK({tokenRef:e,siteId:o,onClose:t,onNotify:r,tab:a,onTabChange:n,revealPageGroup:s,onPageGroupRevealed:i}){let l=xl(),{shown:d,setShown:f}=ske();return KK("div",{className:`sf-styles ${nke(d)}`.trim(),children:[sc(oke,{icon:sc(tke,{}),title:c("Styles"),context:sc(rke,{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})})}),KK("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(ake,{shown:d,onChange:f,label:c("Show hints")})]})]})}import{jsx as Fo,jsxs as ei,Fragment as fke}from"react/jsx-runtime";import{Fragment as a8,useEffect as n8,useRef as m0}from"react";import{useTreeDrag as s8}from"efficient-easel/drag";import{GlobeIcon as pke,ImageIcon as uke,LocationIcon as mke,MapIcon as hke,TextLinesIcon as xke,TrashIcon as i8}from"efficient-easel/icons";import{Subtree as l8,TreeRow as ip,TreeRowAction as c8,TreeSeam as d8}from"efficient-easel/tree";import{useEaselStrings as gke}from"efficient-easel/strings";import{isSelectionMode as Ike}from"efficient-easel/screen/lib/screen-parts";import{useSyncExternalStore as ike}from"react";var lke={level:"groups"},qK=lke,c0=new Set;function Rr(e){qK=e;for(let o of c0)o()}function cke(e){return c0.add(e),()=>{c0.delete(e)}}var YK=()=>qK;function XK(){return ike(cke,YK,YK)}var sp=e=>String(e?.group??""),d0=new WeakMap,dke=0;function HI(e){let o=d0.get(e);return o||(o=`loc${++dke}`,d0.set(e,o)),o}var ZK=(e,o)=>o||e||"Ungrouped",JK={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 f0=e=>e.flatMap(o=>o.cards),QK=(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 p0(e,o,t){let r=Qs(e);if(o<0||o>=r.length)return e;let[a]=r.splice(o,1),n=QK(o<t?t-1:t,0,r.length);return r.splice(n,0,a),f0(r)}function u0(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&&d0.set(d,HI(l));let f=QK(s===i&&t<a?a-1:a,0,i.cards.length);return i.cards.splice(f,0,d),f0(n)}function e8(e,o){let t=Qs(e),r=t.find(n=>n.key===o),a={...JK,group:o,groupName:r?.name??""};return r?(r.cards.push(a),f0(t)):[...e,a]}function o8(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,{...JK,group:r,groupName:""}],key:r}}function t8(e,o){return e.filter(t=>sp(t)!==o)}function r8(e,o,t){let r=WI(e,o,t);return r<0?e:e.filter((a,n)=>n!==r)}function Kho(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 Vho(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"}),h0=(e,o)=>({parentId:`locations-${e}`,slot:`cities:${o}`});function f8(e,o){let{readOnly:t,selected:r}=o,a=gke().tree,n=o.data?.content??[],s=Ike(e),i=m0(null);n8(()=>{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}=j$(),u=XK(),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=s8({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,p0(m(b.si),b.index,y.index)),u.level==="city"&&Rr({level:"groups"})},onStep:(b,y)=>{p(b.si,p0(m(b.si),b.index,y<0?b.index-1:b.index+2)),u.level==="city"&&Rr({level:"groups"})}}),I=s8({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,u0(m(b.si),b.group,b.index,k,y.index)),Rr({level:"group",key:k})},onStep:(b,y)=>{p(b.si,u0(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=m0(n);w.current=n;let S=m0(()=>{});n8(()=>{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(d8,{...t?{}:h.seam({place:{...$I(y),index:R}})},`seam:${L}:groups:${R}`),E=(R,W)=>Fo(d8,{...t?{}:I.seam({place:{...h0(y,R),index:W}})},`seam:${L}:cities:${R}:${W}`);return ei(fke,{children:[Fo(ip,{icon:Fo(xke,{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?ZK(R.key,R.name):c("Ungrouped"),Ce={...h0(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(a8,{children:[W===0&&A(0),Fo(ip,{icon:Fo(pke,{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(c8,{kind:"delete",label:nt("Delete {label} group ({n} city)","Delete {label} group ({n} cities)",R.cards.length,{label:de}),onClick:()=>{p(y,t8(D,R.key)),Rr({level:"groups"})},children:Fo(i8,{size:15})}),rowProps:_e.rowProps,count:R.cards.length,countLabel:nt("{n} city","{n} cities",R.cards.length)}),!Z&&ei(l8,{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:{...h0(y,R.key),index:Ee}},{onClick:k(()=>v(y,{level:"city",index:Fe}))});return ei(a8,{children:[Ee===0&&E(R.key,0),Fo(ip,{icon:Fo(mke,{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(c8,{kind:"delete",label:c("Delete {name}",{name:qo}),onClick:()=>{p(y,r8(D,R.key,Ee)),Rr({level:"group",key:R.key})},children:Fo(i8,{size:15})}),rowProps:Do}),!Co&&ei(l8,{children:[Fo(ip,{icon:Fo(uke,{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(hke,{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=e8(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}=o8(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 wke,useRef as Cke}from"react";import{createNode as g0,newId as I0}from"efficient-easel/data";import{useEaselApi as vke}from"efficient-easel/easel";import{useScreenDocument as kke}from"efficient-easel/screen/components/ScreenDocumentContext";import{useEaselSession as Tke}from"efficient-easel/screen/lib/session-context";import{useEffect as h8,useRef as yke}from"react";import{useEasel as bke}from"efficient-easel/easel";import{ROOT_ZONE as x0}from"efficient-easel/draw";var lp={};function p8(e){return lp={...e?.theme?{theme:e.theme}:{},...e?.site?{site:e.site}:{}},lp}function u8(e){lp===e&&(lp={})}function ic(){return lp}function m8(e){let o=r=>typeof r=="string"?r:null,t=e.theme_row===void 0?null:e.theme_row==="site";return{schema:String(e.schema),site:String(e.site),headingCase:o(e.heading_case),textStyles:typeof e.text_styles_is_null=="boolean"?!e.text_styles_is_null:null,textStylesList:Array.isArray(e.text_styles)?e.text_styles:null,ownThemeRow:t,deleted:e.site_deleted===!0,...Array.isArray(e.theme_presets)?{themePresets:e.theme_presets}:{},...typeof e.selected_preset=="number"?{selectedPreset:e.selected_preset}:{},...typeof e.site_gutter=="number"?{siteGutter:e.site_gutter}:{},...typeof e.site_gutter_phone=="number"?{siteGutterPhone:e.site_gutter_phone}:{},..."site_gutter_unit"in e?{siteGutterUnit:o(e.site_gutter_unit)}:{},..."site_gutter_phone_unit"in e?{siteGutterPhoneUnit:o(e.site_gutter_phone_unit)}:{}}}function g8(e){let o=bke(d=>d.appState.data.content),{theme:t,themeRow:r,themeFromDocument:a,siteGutter:n,siteGutterPhone:s,siteLengthUnits:i}=fe(),l=yke(new Set);h8(()=>{let d=x8({theme:t,themeRow:r,themeFromDocument:a,siteGutter:n,siteGutterPhone:s,siteLengthUnits:i});d&&Ske(p4(o,void 0,d),e,l.current)},[o,e,t,r,a,n,s,i]),h8(()=>{let d=p8(x8({theme:t,themeRow:r,themeFromDocument:a,siteGutter:n,siteGutterPhone:s,siteLengthUnits:i}));return()=>u8(d)},[t,r,a,n,s,i])}function x8(e){if(e.themeFromDocument||e.themeRow==="none")return{};if(e.themeRow!=="read")return null;let{siteGutter:o=null,siteGutterPhone:t=null,siteLengthUnits:r={}}=e;if(o===null&&t===null)return{theme:e.theme};let a=m8({schema:"",site:"",site_gutter:o,site_gutter_phone:t,site_gutter_unit:r.siteGutterUnit??null,site_gutter_phone_unit:r.siteGutterPhoneUnit??null});return{theme:e.theme,site:a}}function Ske(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(x0,r,a[0]),a.slice(1).forEach((s,i)=>{o.insertNode(x0,r+1+i,s),o.replaceComponent(x0,r+1+i,s)}))}}import{ROOT_ZONE as lc,missingPinnedTypes as Pke,pinnedDuplicateIds as y0}from"efficient-easel/draw";function I8(e){return!e.docId||e.saveStatus==="saving"?!1:e.seededDocId!==e.docId}function y8(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 b8(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 S8(e,o){let{adapter:t,capabilities:r,currentSlug:a,docId:n,data:s,saveStatus:i,siteId:l,tokenRef:d}=kke(),f=Tke(),{hasSiteSettings:u,hasPinnedChrome:p}=r;g8(e);let m=!!r.editsPinnedInPlace&&a!==hr,h=a===hr,I=vke().getState,w=Cke(null);wke(()=>{if(!I8({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(y0(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=Pke(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)=>g0(o,C,A),L={type:Qe,props:{blocks:FI()}};e.insertNode(lc,D.length,bf(L,P,I0(ze),rp))}return}if(m){let D=!!t?.pinnedChrome?.state().docId,P=y8(v,{hasChromeDoc:D}),L=new Set([...P.remove,...y0(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)=>g0(o,R,W),E={type:Qe,props:{blocks:FI()}};e.insertNode(lc,C.length,bf(E,A,I0(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;b8({blocks:Mi(f),make:(E,R)=>g0(o,E,R),id:I0(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(y0(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 A8,useMemo as Fke,useRef as R8}from"react";import{useEasel as Bke}from"efficient-easel/easel";import{useEaselHost as Nke}from"efficient-easel/screen/lib/host";import{FIELD_DESCRIPTION_MARKER as Eke}from"efficient-easel/screen/lib/host";import{isNode as v8}from"efficient-easel/data";function cp(e,o){let t=e.components[o]?.label;return typeof t=="string"&&t.trim()?t.trim():o}function _ke(e){return e.length>3&&e.endsWith("s")?e.slice(0,-1):e}function b0(e,o,t,r){e.forEach((a,n)=>{if(v8(a)){r.push({node:a,list:e,index:n,parent:o,slot:t});for(let s of Fr(a))b0(a.props[s],a,s,r)}})}function Oke(e){let o=[];b0(Array.isArray(e.content)?e.content:[],null,"",o);for(let t of Object.values(e.zones??{}))Array.isArray(t)&&b0(t,null,"",o);return o}function k8(e,o){return Oke(e).find(t=>String(t.node.props.id)===o)}function T8(e,o,t){if(!t)return null;let r=k8(o,t);if(!r)return null;let a=cp(e,r.node.type),n=r.parent?`${cp(e,r.parent.type)} \xB7 ${_ke(r.slot)} ${r.index+1}`:a;return{blockId:t,type:r.node.type,label:n,path:""}}var Ake=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 Rke(e){if(!e||typeof e!="object")return null;let o=e;if(typeof o.type!="string")return null;let t=o.type==="custom"?o[Eke]: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=Ake(n));for(let s of["arrayFields","objectFields"]){let i=t?.[s]??o[s];i&&typeof i=="object"&&(r[s]=P8(i))}return r}function P8(e){let o={};for(let[t,r]of Object.entries(e??{})){let a=Rke(r);a&&(o[t]=a)}return o}function E8(e){let o={};for(let[t,r]of Object.entries(e.components))r&&(o[t]={label:cp(e,t),fields:P8(r.fields),..._8(t)?{retired:!0}:{}});return o}function _8(e){return He(W0,e)}function w8(e,o){let t=e.components[o]?.defaultProps;return t&&typeof t=="object"?structuredClone(t):{}}function Lke(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 S0(e,o){return e.findIndex(t=>v8(t)&&String(t.props.id)===o)}function C8(e,o,t){let r=o||t;if(!r)return e.length;let a=S0(e,r);if(a<0)throw new Error(`there is no top-level block ${r}`);return o?a+1:a}function O8(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=k8(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=Lke(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}`),_8(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=>w8(e,m),r,a):{type:i.type,props:{...w8(e,i.type),...structuredClone(i.props),id:r(i.type)}};s.splice(C8(s,i.after,i.before),0,p);break}case"remove_block":{let f=S0(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=S0(s,i.block_id);f<0&&d(`there is no top-level block ${i.block_id}`);let[u]=s.splice(f,1);s.splice(C8(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 w0=e=>be(e.requestId)??null;function L8(){let e=Nke(),{appState:o,selectedItem:t,dispatch:r,history:a,config:n}=Bke(p=>p),s=n,i=R8({appState:o,dispatch:r,history:a,blockConfig:s});i.current={appState:o,dispatch:r,history:a,blockConfig:s};let l=R8(new Map),d=t?.props?.id,f=Fke(()=>T8(s,o.data,d),[s,o.data,d]),u=f?JSON.stringify(f):"";A8(()=>{e.connected&&e.send("storefront-editor:selection",{selection:f})},[e,u]),A8(()=>e.subscribe(p=>{let{appState:m,dispatch:h,history:I,blockConfig:w}=i.current;switch(p.type){case"storefront-editor:request-document":{let S=w0(p);if(!S)return;e.send("storefront-editor:document",{requestId:S,document:m.data,blocks:E8(w)});return}case"storefront-editor:apply-page-edits":{let S=w0(p);if(!S)return;let v=Array.isArray(p.ops)?p.ops:[],b=v.length?O8(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=w0(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 N8,useState as D8}from"react";var zI=new Map;async function Dke(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 F8(e,o){let t=zI.get(o);return t||(t=Dke(e,o),zI.set(o,t),t.catch(()=>{zI.get(o)===t&&zI.delete(o)})),t}var Mke=/^(localhost|(?:[a-z0-9-]+\.)+localhost|127(?:\.\d{1,3}){3}|0\.0\.0\.0|\[::1\]|::1)$/i;function C0(e){return!!e&&Mke.test(e)}function B8(e){let{pageSlug:o,siteSlug:t,hostname:r}=e,a=o===Hu?"/":`/${encodeURIComponent(o)}`;if(!C0(r))return a;let n=t?.trim();return n?`${a}?site=${encodeURIComponent(n)}`:a}function M8(e){let{pageSlug:o,siteId:t,token:r}=e,[a,n]=D8(null),[s,i]=D8(null),l=OO();N8(()=>{try{i(new URL(fu()).hostname)}catch{i(null)}},[l]),N8(()=>{if(!C0(s)||!t||!r){n(null);return}let f=!1;return F8(r,t).then(u=>{f||n(u)}),()=>{f=!0}},[s,t,r]);let d=B8({pageSlug:o,siteSlug:a,hostname:s});return l?`${l}${d}`:d}import{jsx as dp}from"react/jsx-runtime";import{useEffect as Hke,useRef as H8,useState as Wke}from"react";import{ExternalIcon as W8}from"efficient-easel/icons";import{EaselIconButton as $ke}from"efficient-easel/chrome";import{Tooltip as Uke,iconButtonClasses as zke}from"efficient-shell/ui";import{useSettledPress as Gke}from"efficient-easel/easel";import{useScreenDocument as jke}from"efficient-easel/screen/components/ScreenDocumentContext";async function Kke({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 $8({liveHref:e,pageId:o,draftLink:t}){let{flushSave:r}=jke(),a=H8(r);a.current=r;let n=Gke(),[s,i]=Wke(!1),l=H8(null);if(Hke(()=>()=>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),Kke({pageId:o,liveHref:e,draftLink:t,ready:d}).finally(()=>i(!1)))};return dp($ke,{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(W8,{})})}return dp(Uke,{content:c("Preview the live site (opens in a new tab)"),side:"bottom",children:dp("a",{className:zke({className:"es-iconbtn"}),href:e,...Nd,"aria-label":c("Preview the live site in a new tab"),children:dp(W8,{})})})}import{createElement as Vke,useCallback as Yke,useEffect as U8,useRef as z8,useState as qke}from"react";import{ClockIcon as Xke}from"efficient-shell/icons/efficient";import{useScreenDocument as Zke}from"efficient-easel/screen/components/ScreenDocumentContext";function G8(e){let{docId:o,capabilities:t,hasUnsavedEdits:r,onPublish:a,adapter:n}=Zke(),s=cK(lK(o??null),r),i=rI(aI()),l=n.siteLiveState;U8(()=>{if(l)return tS(l),ma(0),()=>tS(null)},[l]);let d=dm(),[f,u]=qke(!1),p=z8(e);p.current=e;let m=z8(!0);U8(()=>(m.current=!0,()=>{m.current=!1}),[]);let h=Yke(()=>{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=YP({live:I,onPress:h,busy:f,goingLive:dK(d?.changes??[])});return n.siteVersions?{...w,menuItems:Jke()}:w}return YP({live:s,onPress:h,busy:f,pinnedUnpublished:i?.unpublished??!1})}}function Jke(){return[{key:"version-history",label:c("Version history"),icon:Vke(Xke),onSelect:_G}]}import{jsx as ae,jsxs as Nt,Fragment as up}from"react/jsx-runtime";import{useCallback as Qke,useEffect as eTe,useId as V8,useRef as oTe,useState as sr}from"react";import{useSettledAction as tTe}from"efficient-easel/easel";import{Avatar as rTe,Banner as fp,Button as oi,ColoredBadge as v0,Dialog as Y8,Drawer as aTe,DropdownMenu as nTe,FormField as q8,iconButtonClasses as sTe,Inline as k0,Input as iTe,ListRow as lTe,Select as cTe,SortableList as dTe,Stack as pp}from"efficient-shell/ui";import{EditIcon as fTe,EyeIcon as j8,MenuIcon as pTe,MoreIcon as uTe,PageIcon as X8,RevertIcon as K8,StylesIcon as mTe}from"efficient-shell/icons/efficient";import{useScreenDocument as Z8}from"efficient-easel/screen/components/ScreenDocumentContext";var hTe={page:X8,menu:pTe};function xTe(e,o){return e.pages.find(t=>t.id===o)??e.pages[0]??null}function gTe(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 ITe({version:e,page:o,waiting:t,busy:r,error:a,onCancel:n,onConfirm:s,onPage:i}){let l=V8();if(!e)return null;let d=e.kind==="draft_before_restore",f=e.number,u=DG(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(Y8,{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(q8,{label:c("Page"),htmlFor:l,children:ae(cTe,{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 yTe({version:e,onCancel:o,onSave:t}){let r=V8(),[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(Y8,{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(q8,{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(iTe,{id:r,value:s,invalid:!!f,onChange:h=>i(h.target.value),onKeyDown:h=>{h.key==="Enter"&&m()}})})})}function bTe({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(j8,{}),onSelect:r}],...l?[{key:"restore",label:i?c("Put these drafts back"):c("Restore whole website"),icon:ae(K8,{}),onSelect:a}]:[],...l&&!i&&e.pages.length?[{key:"restore-page",label:c("Restore one page only"),icon:ae(X8,{}),onSelect:n}]:[],...i?[]:[{type:"divider",key:"divider"},{key:"name",label:c("Name this version"),icon:ae(fTe,{}),onSelect:s}]];return ae(lTe,{title:Nt("span",{className:"sf-version-title",children:[ae("span",{children:NG(e)}),e.live?ae(v0,{tone:"success",size:"xs",children:c("Live")}):null,e.name?ae(v0,{tone:"neutral",size:"xs",children:c("Version {n}",{n:e.number})}):null,i?ae(v0,{tone:"warning",size:"xs",children:c("Not published")}):null]}),expanded:o,onToggle:t,actions:ae(nTe,{align:"end","aria-label":c("More"),items:f,triggerClassName:sTe({variant:"ghost",size:"sm"}),trigger:ae(uTe,{})}),below:Nt(pp,{gap:3,children:[Nt(k0,{gap:2,align:"center",wrap:!0,className:"sf-version-meta",children:[ae(rTe,{name:e.createdBy,size:"xs"}),ae("span",{children:e.createdBy}),ae("span",{"aria-hidden":"true",children:"\xB7"}),ae("span",{children:HG(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=hTe[u.kind]??mTe;return Nt(k0,{gap:2,align:"center",children:[ae(p,{size:16}),ae("span",{children:MG(u)})]},`${u.kind}:${u.id}`)})}):null,Nt(k0,{gap:2,children:[i?null:ae(oi,{variant:"secondary",size:"sm",leftIcon:ae(j8,{}),onClick:r,children:c("Preview")}),l?ae(oi,{variant:"secondary",size:"sm",leftIcon:ae(K8,{}),onClick:a,children:c("Restore")}):null]})]}):null]})})}function STe({open:e,onClose:o,access:t,waiting:r}){let{flushSave:a,reloadFromServer:n,docId:s}=Z8(),[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=oTe(0),D=Qke(()=>{let A=++T.current;f(!1),t.list().then(E=>{A===T.current&&l(E)},()=>{A===T.current&&f(!0)})},[t]);eTe(()=>{e&&D()},[e,D]);let P=A=>{F(!1),gTe(t,A.id).catch(()=>F(!0))},L=async()=>{if(!(!m||I)){w(!0),v(null);try{await FG({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=tTe({onPress:()=>{L()},busy:I});return Nt(up,{children:[ae(aTe,{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(dTe,{"aria-label":c("Versions"),spacing:"comfortable",children:i.map(A=>ae(bTe,{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:xTe(A,s)})},onName:()=>y(A)},A.id))})]})}),ae(ITe,{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(yTe,{version:b,onCancel:()=>y(null),onSave:async A=>{await t.name(b.id,A),y(null),D()}})]})}function J8(){let{adapter:e,hasUnsavedEdits:o}=Z8(),t=e.siteVersions,r=AG(),a=dm();return t?ae(STe,{open:r,onClose:OG,access:t,waiting:o||a?.state==="changed"}):null}import{useEaselSession as DV}from"efficient-easel/screen/lib/session-context";import{buildPaletteSections as Wgo,categoryLabel as $go,paletteWithoutPinned as Ugo,pinnedSection as zgo}from"efficient-easel/screen/lib/document/palette-sections";var wTe={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 Q8(e){return $(wTe,e)?.label}var eV=z0;function CTe(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 vTe={Hero:{[nf]:{newChild:CTe,childLabel:En.Ticker}}},oV=Object.fromEntries(Object.entries(a4).map(([e,o])=>[e,Object.fromEntries(Object.entries(o).map(([t,r])=>[t,{...r,...$(vTe,e)?.[t]}]))]));function tV(e,o=0,t,r){let a=TTe(PTe(e,o,r),t),n=a?fT():null;return a&&n?kTe(a,n):a}function kTe(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 TTe(e,o){if(!e||e.source!=="container"||!o||!e_())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 PTe(e,o,t){let r=t?$(oV,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=wK(e);return s?{source:"footer",slot:SK,choices:s,spec:null}:null}function rV(e,o=Up(e.type)){return $p(e.type)?o.map(t=>{let r=r_(e.type,t);return r===null?{slot:t,label:t,rung:!1}:{slot:t,label:c(r),rung:!0}}):null}import{useSyncExternalStore as ETe}from"react";var T0=null,P0=new Set;function aV(e){if(T0!==e){T0=e;for(let o of P0)o()}}function _Te(e){return P0.add(e),()=>{P0.delete(e)}}function pIo(){return ETe(_Te,()=>T0,()=>null)}function nV(e){return Bc(e)?.ownerId??null}function sV(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 iV="sf-editor-left-view";function lV(){if(typeof window>"u")return"pages";try{let e=window.localStorage.getItem(iV);return e==="sections"||e==="styles"?e:"pages"}catch{return"pages"}}function cV(e){if(!(typeof window>"u"))try{window.localStorage.setItem(iV,e)}catch{}}function dV(e,o){return e==="styles"&&!o?"sections":e}function fV(e,o){return e?"sections":o}import{copyNode as OTe}from"efficient-easel/data";function pV(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 uV={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?OTe(e,o):e},removed:()=>Pu()?.reload()};import{sharedSectionsOf as rPe}from"efficient-easel/screen/lib/shared-sections";import{scrollPreviewToSection as aPe,scrollPreviewToTop as OV}from"efficient-easel/screen/lib/document/preview-dom";var ATe=xu.mediaFields,RTe=/video|poster|focal|phone/i;function LTe(e){return($(ATe,e)??[]).find(o=>!o.includes("[]")&&!RTe.test(o))??null}function FTe(e){let o=LTe(e.type);return e.type!==Y?o&&zp(e.type,e.props,o)?{fromData:!0}:o:ju(e.props)?{fromData:!0}:o}var mV={adds:{kind:"block",type:"ImageBlock"},kinds:["image"],pictureOf:FTe,create:(e,o)=>({type:"ImageBlock",props:{...o.nodeDefaults("ImageBlock"),id:o.newNodeId("ImageBlock"),src:e.url}})};var hV={Hero:"Full-screen opener with rotating slides.",HeroSingle:"Full-screen image or video with a headline.",IntroBleed:"Full-bleed intro image the next section scrolls over.",Collections:"Product collections in a tidy grid.",AlloyWheelsListing:"A full product-listing page: filter rail, sortable card grid and pagination, from the live catalog. Choose which product types it shows.",CatalogFilterBar:"Filters the collection grids below it \u2014 a sticky row of Pills (the default), or Columns, one per filter you switch on.",ProductGrid:"Hand-picked products in a tidy grid.",FitmentFinder:"A vehicle picker \u2014 make, model, year and trim resolve the OEM stock fitment live.",Gallery:"Two image galleries with tabs and filters.",GalleryB:"A wall of your photos or your products' pictures, with a click-to-open lightbox.",SpecStrip:"A thin one-line spec strip \u2014 small-caps items spread across the width, as a dark band or a bare hairline row.",ProductHero:"A product hero \u2014 image beside price, bullets and a buy button.",SpecTable:"A spec sheet \u2014 labeled rows of product specifications.",ProcessSteps:"A heading over columns, or alternating rows, of image, title, blurb and specs.",DetailRows:"Repeating full-width rows \u2014 eyebrow, title and copy beside a numbered close-up image, alternating sides each row.",FitmentTable:"A fitment table \u2014 per-size bolt patterns, offsets and load ratings, filterable by diameter.",CompatibleTyres:"The current product's compatible tyres \u2014 image, size, key specs and price per tyre, with an inquiry link. Display only.",RelatedProducts:"The current product's related items in a tidy row \u2014 the product page's built-in 'Pair with' cross-sell.",OrderSummary:"A display order-summary panel \u2014 items, totals and a note.",DeliveryOptions:"Delivery tiers as cards \u2014 name, window and price, one highlighted.",PaymentBadges:"A payment-methods trust strip with reassurance lines.",CheckoutCTA:"A centered 'ready to order?' headline with the checkout button.",Manifesto:"A bold brand statement beside a full-height image, with a stat strip.",ParagraphsA:"An editorial text panel with a stat strip and founders' note.",StatsParagraph:"An editorial heading and paragraph over a row of stat cards whose units and small labels take the main color.",Chart:"A titled chart \u2014 bars, line or donut \u2014 drawn from your own labeled data points.",Mockup:"A headline beside a stylized product-UI mockup card \u2014 spec sheet, fitment, portal, kanban and more.",Prose:"A plain editorial text section \u2014 eyebrow, heading and body copy.",Timeline:"An editorial aside beside a rail-marked timeline of dated entries.",TimelineTrack:"A horizontal year track of milestones \u2014 company history or roadmap.",Footprint:"A world map of your locations with a legend \u2014 designed here, sold worldwide.",TitleWithButtons:"A big headline beside a stack of call-to-action buttons.",Split:"Side-by-side image and text in two columns.",Cards:"A heading over a grid of free-text title-and-blurb cards.",FAQ:"A frequently-asked-questions accordion with a header.",Testimonials:"Customer quotes in a grid \u2014 the quote, a name and a role.",Masthead:"A journal issue header with a lead statement and contents.",Breadcrumb:"A slim trail showing where the reader is (Home / Journal\u2026).",CategoryBar:"A sticky row of category tabs with counts and links.",FeaturedCover:"A featured article \u2014 big cover image beside a headline and dek.",LongRead:"A long-form article spread with a pull-quote and cover image.",Series:"A section heading over a grid of column cards.",Subscribe:"A newsletter signup beside a list of recent issues.",SubscribeBlogs:"A newsletter signup beside your latest blog posts, pulled live.",Events:"Latest journal posts in a three-card row.",DocMasthead:"A page header: eyebrow, title, details and a deck.",DocTabs:"A sticky tab bar that marks the page you are on.",DocBody:"Long-form document body with an 'On this page' contents list.",DocMetaCards:"A three-up meta strip for the foot of a document.",Banner:"Wide promo strip with background image.",Stats:"Highlight key numbers \u2014 years, designs.",Countdown:"Hours, minutes and seconds to a set date and time, then one line.",KeyFeatures:"A theme-color chip and heading over a grid of short feature labels.",Logos:"A row of partner or brand logos.",Ticker:"A scrolling marquee of short phrases, full width.",Reviews:"Approved customer reviews in a star-rated card grid, pulled live.",SubmitBuild:"A 'Show us yours.' headline with a photo-submission form.",ReviewForm:"A write-a-review form \u2014 submissions wait for your approval before they show.",ContactRouting:"Pick who to reach, then a form that routes the message.",ContactLocations:"Your locations as a city gallery plus address and map cards.",SectionHeader:"A numbered section title with optional link.",Grid:"Multi-column container for blocks.",Flex:"An empty section. Add whatever you want inside.",Spacer:"Vertical breathing room between sections.",Divider:"A thin horizontal rule between sections.",CustomHTML:"Drop in your own sanitized HTML.",Heading:"A single heading line.",Text:"A paragraph of body copy.",ImageBlock:"A standalone image, at the width you set.",ButtonBlock:"A call-to-action button."};import{jsx as GI}from"react/jsx-runtime";import{useState as BTe}from"react";import{Button as NTe,Tooltip as DTe,toast as xV}from"efficient-shell/ui";import{TemplateIcon as MTe}from"efficient-easel/icons";import{useSettledAction as HTe}from"efficient-easel/easel";import{useScreenDocument as WTe}from"efficient-easel/screen/components/ScreenDocumentContext";function IV({enabled:e,reason:o,onSaved:t}){let{flushSave:r}=WTe(),[a,n]=BTe(!1),s=async()=>{if(!a){n(!0);try{await r()?t():xV.error(c(gV))}catch{xV.error(c(gV))}finally{n(!1)}}},i=HTe({onPress:()=>{s()},busy:a});return GI(DTe,{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(NTe,{variant:"secondary",disabled:!e||i.busy,loading:i.busy,onClick:i.onPress,rightIcon:GI(MTe,{size:15}),children:c("Save as Template")})})})}var gV="Your last changes did not save, so the template was not made. Try again.";var $Te="Save your page changes first";function yV(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:$Te}:{visible:!0,enabled:!0}:{visible:!1,hiddenReason:"no-site"}:{visible:!1,hiddenReason:"not-operator"}:{visible:!1,hiddenReason:"no-console"}}var bV="storefront-editor:save-as-template";import{phoneKey as UTe,tabletKey as zTe}from"efficient-easel/draw";var GTe=[xa.top,zTe(xa.top),UTe(xa.top)],jI="ContactLocations",SV="ContactRouting",wV="CityPictures",CV="CityMaps",jTe=[{key:wV,label:"City pictures",piece:0,desc:"A wall of city photos, grouped by region. Each photo links to its city's card."},{key:CV,label:"City maps",piece:1,desc:"A card per city, grouped by region: address, phone, hours and a map."}];function vV(e=Os,o=kk){let t=H0.find(r=>r.sections.some(a=>a.type===SV))?.key;return!e.includes(jI)||!t?[]:jTe.filter(r=>!(o&&r.key===wV)).map(({key:r,label:a,desc:n,piece:s})=>({key:r,label:a,cat:t,after:SV,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===CV))return f;let u=Of(jI,l,0)(i.nodeDefaults,m=>`${m}-above`,d),p=Object.fromEntries(GTe.filter(m=>u?.props[m]!==void 0).map(m=>[m,u.props[m]]));return{...f,props:{...f.props,...p}}}}))}function kV(e=Os,o){return[...vV(e,o)]}function PV(e,{nodeDefaults:o,newNodeId:t,sectionLabel:r,blockIsOffered:a}){let n=Kl(e);if(n)return n(o,t,ic());if(VE(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",...TV(e,t)}}]}}}if($(qt,e)?.fixed===!0)return{type:e,props:{...o(e),id:t(e),layout:"boxes"}};let s=TV(e,t);return Object.keys(s).length?{type:e,props:{...o(e),id:t(e),...s}}:null}function TV(e,o){return e==="Cards"?{template:GE(t=>o(t))}:e===jE?{template:KE(t=>o(t))}:{}}import{useEffect as KTe,useState as VTe}from"react";import{useEaselSession as YTe}from"efficient-easel/screen/lib/session-context";function EV(){let e=YTe().chrome?.products?.list,[o,t]=VTe(null);return KTe(()=>{if(!e)return;let r=!1;return e().then(a=>{r||t(a)}),()=>{r=!0}},[e]),o}function MV({mode:e,open:o}){let{setSelectedHeroId:t,setSelectHandler:r}=U$(),a=NV().tree,n=e,s=n.kind==="ticker"?n.heroId:null,i=cc(l=>{l&&(o({kind:"ticker",heroId:l}),aPe(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(FV,{icon:Bo(Ys,{type:"ticker",size:13}),name:c($s),onSelect:()=>i(f),selected:s===f,rowProps:{onClick:d(()=>i(f))},words:a})}}}function HV({mode:e,select:o}){let{setSelectedHeroPart:t,setSelectHandler:r}=hI(),a=NV().tree,{appState:n,config:s}=BV(p=>p),i=qTe({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=oPe(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=xH(p);if(I.length===0)return null;let w=b=>{let y=Ps(h,b.part);return Bo(FV,{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(LV,{children:[w(S),v.length>0&&Bo(ePe,{children:v.map(w)})]})}}}function WV(e,o){return{partRows:(t,r)=>mp(LV,{children:[e.partRows?.(t,r),o.partRows?.(t,r)]})}}function nPe(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(DV()).preview?.draftLink,p=G8(e.data),m=yV({hasTrustedConsole:!!d,canCreatePlatformTemplate:i.canCreatePlatformTemplate,capabilities:t,siteId:a,hasUnsavedEdits:s}),h=cc(()=>{!a||!r||l(bV,{siteId:a,slug:r})},[l,a,r]),I=M8({pageSlug:r,siteId:a,token:d}),w=o.previewHref?.(r)??I;return{barLead:()=>m.visible&&Bo(IV,{enabled:m.enabled,reason:m.enabled?"":m.disabledReason,onSaved:h}),barView:()=>f&&r&&Bo($8,{liveHref:w,pageId:n??null,draftLink:u}),mainAction:p}}function sPe(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]=_V(ul[0].id),[p,m]=_V(!1),{surface:h,setSurface:I}=mj(),w=()=>{if(i){d("styles"),o.reveal(),OV();return}e.show(n0),e.reveal(),OV()},S={id:"pages",label:c("Pages"),icon:Bo(ZTe,{}),panel:({onHide:b})=>Bo(aj,{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(QTe,{}),active:e.kind==="website",onSelect:w}),i&&v.push({id:"styles",label:c("Styles"),icon:Bo(JTe,{}),panel:({onHide:b,notify:y})=>Bo(VK,{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=>dV(b,i),openSettings:w,openStyles:()=>{u(jD),d("styles")},openPageStyles:i?()=>{u(hl),m(!0),d("styles"),o.reveal()}:l?()=>{e.show(BK),e.reveal()}:void 0}}function iPe(){let{navigate:e,siteId:o,reloadFromServer:t,docId:r}=KI(),a=BV(s=>s.config),n=DV();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 rPe(n).list().then(l=>{i||s.learn(l)}).catch(()=>{}),()=>{i=!0}},[r,n])}function $V(){let e=yu();return cc(o=>{tN(o,e)},[e])}function lPe(e,o,t,r){let{kind:a,open:n}=e,{selected:s,zoneOf:i}=o;oa(()=>{aV(s?.type==="BookingBox"&&s.props.region==="confirm"?nV(i(String(s.props.id))):null)},[s?.props.id]);let l=f8(e,o),{capabilities:{hasSiteSettings:d}}=KI();iPe();let{chat:f,setChat:u,setSelected:p,setSelectHandler:m}=mI(),h=cc(()=>n(NK),[n]),I=a==="chat";oa(()=>{p(I)},[I,p]),oa(()=>{m(h)},[m,h]);let{setOpenHandler:w}=Kf(),S=cc(()=>n(DK),[n]);oa(()=>{w(S)},[w,S]);let v=WV(MV(e),HV(e)),b=nPe(o),y=sPe(e,r);XG(r);let k=t.device,F=$V();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(tPe.Provider,{value:k,children:[T,Bo(J8,{})]})}),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(XTe,{checked:f.enabled,onChange:D=>u({enabled:D}),ariaLabel:c("Show the chat bubble on the whole site")})]}):void 0}}var AV=null,E0=new WeakMap;function cPe(e){let o=HO();if(!e||!o)return e;AV!==o&&(AV=o,E0=new WeakMap);let t=E0.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},E0.set(e,t)),t}var dPe={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:PV,canAddTo:(e,o,t,r)=>cPe(tV(e,o,r,t)),blockIsOffered:F6,slotsOf:rV,resolveOnInsert:!0},fPe=new Proxy(hV,{get:(e,o)=>{let t=Reflect.get(e,o);return typeof t=="string"?c(t):t}}),pPe={labelAtLevel:(e,o,t)=>c(qI(e,o,t)),descriptions:fPe,categoryLabel:e=>{let o=Q8(e);return o===void 0?void 0:c(o)},firstSection:eV,blockRowName:sV,rowName:Vg,plainText:na,Icon:Ys,Thumbnail:jK,useProducts:EV,presets:kV()},uPe={desktop:2e3,tablet:800,mobile:390},RV="desktop",mPe={options:dj,initial:RV,fluid:RV,widths:uPe,hidesPerView:!0},hPe={read:lV,write:e=>cV(e),forSelection:(e,o)=>fV(e,o)},xPe={first:Ct,last:Qe,firstGroup:Je,lastGroup:ze,isSectionGroup:_i,sectionGroupZone:i1,panelOf:e=>e===Ct?FK:null,get sharedReach(){return js()?IPe:void 0},get shared(){return fr()?uV:void 0},get groupTab(){return js()?CK:void 0},get groupBadge(){return js()?e0({type:ze})??void 0:void 0},get changeNotice(){return js()?vK():void 0},get band(){return js()?gPe:void 0},get groupAccepts(){return js()?d1:void 0}},gPe={foldable:!0},IPe=e=>e0(e)??pV(e);function yPe(e){return{...WV(MV(e),HV(e)),onCopyItem:$V(),openSettings:()=>e.show(n0)}}function bPe(e,o){S8(e,o),L8()}var Sbo={useOwnerName:xl,useDocumentLabel:XD,useBridges:lPe,useStandaloneBridges:yPe,useDocumentPass:bPe,blockRules:dPe,blockLook:pPe,devices:mPe,leftView:hPe,pinned:xPe,Canvas:zG,canvasDrag:{media:mV},Inspector:HK};export{iT as a,Ge as b,Mi as c,kx as d,kGe as e,Jr as f,Qr as g,Po as h,NGe as i,Fv as j,E8e as k,Sf as l,wf as m,U5 as n,z5 as o,Qx as p,_8e as q,Qde as r,G5 as s,O8e as t,S6 as u,JJe as v,CPe as w,ce as x,c as y,nt as z,w6 as A,oQe as B,Ui as C,Wo as D,iL as E,_t as F,jRe as G,dL as H,fL as I,gm as J,Im as K,xL as L,hS as M,xS as N,XRe as O,ZRe as P,uF as Q,rs as R,Bm as S,KLe as T,Be as U,mF as V,Vi as W,yb as X,Sb as Y,eA as Z,wb as _,iY as $,bEe as aa,Nu as ba,iA as ca,lY as da,cY as ea,dY as fa,CEe as ga,Dv as ha,zGe as ia,Ox as ja,Hn as ka,Rc as la,XO as ma,ZO as na,x7 as oa,VPe as pa,jy as qa,HM as ra,WM as sa,wLe as ta,$r as ua,P1 as va,$n as wa,YL as xa,qL as ya,ed as za,DZ as Aa,SL as Ba,jr as Ca,kL as Da,xa as Ea,yS as Fa,bS as Ga,P4 as Ha,_b as Ia,R_e as Ja,L_e as Ka,Va as La,B_e as Ma,N_e as Na,Ab as Oa,NA as Pa,jc as Qa,D_e as Ra,BA as Sa,DA as Ta,M_e as Ua,Gc as Va,Rb as Wa,H_e as Xa,W_e as Ya,$_e as Za,U_e as _a,uM as $a,Is as ab,X5e as bb,Z5e as cb,J5e as db,mM as eb,Q5e as fb,Ft as gb,Il as hb,id as ib,Vr as jb,Zu as kb,UA as lb,pa as mb,zA 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,Sje as xb,Ie as yb,Rl as zb,Ll as Ab,pf as Bb,uf as Cb,A4 as Db,kje as Eb,Hce as Fb,R4 as Gb,Eje as Hb,_je as Ib,L4 as Jb,QC as Kb,RM as Lb,yse as Mb,Md as Nb,LM as Ob,Q3e as Pb,Hv as Qb,Rje as Rb,Lje as Sb,Fje as Tb,Bje as Ub,Nje as Vb,Dje as Wb,S3e as Xb,jh as Yb,Nd as Zb,w3e as _b,C3e as $b,CM as ac,YC as bc,Qne as cc,ese as dc,v3e as ec,ose as fc,k3e as gc,C2 as hc,x6e as ic,R2 as jc,g6e as kc,I6e as lc,y6e as mc,Mx as nc,zv as oc,D4 as pc,Hx as qc,Yje as rc,Xce as sc,Zce as tc,Jce as uc,qje as vc,wt as wc,Ms as xc,Ml as yc,RKe as zc,LKe as Ac,FKe as Bc,W2 as Cc,dx as Dc,Aie as Ec,P6e as Fc,C5 as Gc,v5 as Hc,k5 as Ic,JKe as Jc,DX as Kc,hr as Lc,aRe as Mc,nRe as Nc,sRe as Oc,iRe as Pc,um as Qc,lRe as Rc,Om as Sc,nd as Tc,QL as Uc,eF as Vc,oF as Wc,OLe as Xc,Je as Yc,ze as Zc,Jy as _c,_i as $c,l1 as ad,vu as bd,P5 as cd,F8e as dd,B8e as ed,og as fd,K5 as gd,vw as hd,Id as id,qr as jd,po as kd,Pw as ld,BB as md,NB as nd,Ew as od,yd as pd,yh as qd,Pd as rd,nC as sd,Cr as td,wa as ud,NN as vd,ms as wd,mC as xd,gC as yd,$d as zd,NM as Ad,DM as Bd,tv as Cd,ws as Dd,ZM as Ed,BWe as Fd,NWe as Gd,DWe as Hd,jd as Id,Vt as Jd,GWe as Kd,E3e as Ld,$3e as Md,XC as Nd,U3e as Od,bs as Pd,Kh as Qd,Io as Rd,o$e as Sd,r2 as Td,n2 as Ud,s2 as Vd,uo as Wd,Ye as Xd,ag as Yd,t3 as Zd,oVe as _d,ng as $d,r3 as ae,sVe as be,wVe as ce,m3 as de,yk as ee,h3 as fe,kVe as ge,TVe as he,PVe as ie,bk as je,EVe as ke,_Ve as le,x3 as me,Afe as ne,dg as oe,p7e as pe,ux as qe,zie as re,Sv as se,Ufe as te,T7e as ue,j3 as ve,K3 as we,P7e as xe,E7e as ye,Rw as ze,zDe as Ae,Lw as Be,WB as Ce,W7e as De,aW as Ee,nW as Fe,sYe as Ge,gYe as He,IYe as Ie,yYe as Je,Wk as Ke,$Le as Le,US as Me,zS as Ne,GS as Oe,uW as Pe,ape as Qe,npe as Re,pg as Se,wYe as Te,CYe as Ue,qYe as Ve,BW as We,XYe as Xe,NW as Ye,JYe as Ze,GW as _e,jW as $e,Mpe as af,qW as bf,m9e as cf,xg as df,C9e as ef,Ef as ff,T9e as gf,o$ as hf,E9e as if,t$ as jf,r$ as kf,A9e as lf,Dd as mf,Ise as nf,gg as of,i$ as pf,B9e as qf,N9e as rf,D9e as sf,M9e as tf,Oa as uf,z9e as vf,Ig as wf,V9e as xf,bg as yf,j3e as zf,K3e as Af,Ss as Bf,V3e as Cf,lR as Df,_D as Ef,p4e as Ff,u4e as Gf,Cae as Hf,m4e as If,h4e as Jf,AD as Kf,zC as Lf,$h as Mf,rM as Nf,Qd as Of,$t as Pf,M0e as Qf,fb as Rf,Hc as Sf,$0e as Tf,G7 as Uf,W1 as Vf,U0e as Wf,Un as Xf,q7 as Yf,Y0e as Zf,q0e as _f,Wc as $f,X0e as ag,Z0e as bg,gb as cg,RUe as dg,LUe as eg,FUe as fg,BUe as gg,cle as hg,NUe as ig,xx as jg,of as kg,WUe as lg,Pv as mg,wH as ng,CH as og,vv as pg,xle as qg,$Ue as rg,gx as sg,tf as tg,yx as ug,UUe as vg,zUe as wg,Ix as xg,GUe as yg,jUe as zg,Vy as Ag,st as Bg,JO as Cg,g7 as Dg,I7 as Eg,ZPe as Fg,y7 as Gg,b7 as Hg,JPe as Ig,QPe as Jg,e0e as Kg,o0e as Lg,PH as Mg,rf as Ng,af as Og,Sx as Pg,_H as Qg,El as Rg,OH as Sg,wx as Tg,Cx as Ug,vx as Vg,AH as Wg,RH as Xg,LH as Yg,FH as Zg,BH as _g,MH as $g,HH as ah,bze as bh,Sze as ch,wze as dh,Cze as eh,mr as fh,Dle as gh,jH as hh,Hle as ih,VH as jh,YH as kh,rx as lh,Yle as mh,qze as nh,e4 as oh,tGe as ph,mGe as qh,hGe as rh,_$e as sh,Kd as th,F$e as uh,B$e as vh,y2 as wh,nJ as xh,Kr as yh,vLe as zh,Af as Ah,Aa as Bh,Q6 as Ch,Fg as Dh,Seo as Eh,weo as Fh,Reo as Gh,Leo as Hh,nhe as Ih,vT as Jh,lU as Kh,Feo as Lh,dU as Mh,fU as Nh,xU as Oh,phe as Ph,hhe as Qh,roo as Rh,xoo as Sh,goo as Th,Nf as Uh,Ioo as Vh,yoo as Wh,PT as Xh,boo as Yh,Yd as Zh,hv as _h,lx as $h,Yoo as ai,kl as bi,K6e as ci,V6e as di,eH as ei,Xhe as fi,dz as gi,Mf as hi,pro as ii,mro as ji,DT as ki,vz as li,Cg as mi,YXe as ni,ZXe as oi,U$ as pi,Xk as qi,z$ as ri,G$ as si,eZe as ti,j$ as ui,kg as vi,lZe as wi,V$ as xi,X$ as yi,Y$ as zi,Mm as Ai,Ia as Bi,$o as Ci,Ot as Di,cd as Ei,qi as Fi,tFe as Gi,rFe as Hi,nFe as Ii,sFe as Ji,iFe as Ki,lFe as Li,cFe as Mi,fFe as Ni,Xi as Oi,ns as Pi,wF as Qi,qS as Ri,WJ as Si,CF as Ti,ZS as Ui,X1 as Vi,Z1 as Wi,xEe as Xi,Mu as Yi,Hu as Zi,zc as _i,gA as $i,LEe as aj,FEe as bj,CA as cj,kb as dj,XY as ej,Y_e as fj,oOe as gj,tOe as hj,w9 as ij,xt as jj,Vc as kj,Gb as lj,jb as mj,jOe as nj,aR as oj,KOe as pj,VOe as qj,YOe as rj,dR as sj,pR as tj,ma as uj,bR as vj,nS as wj,OR as xj,yAe as yj,RR as zj,NR as Aj,DR as Bj,MR as Cj,HR as Dj,WR as Ej,$R as Fj,iS as Gj,kX as Hj,TX as Ij,Zc as Jj,lS as Kj,zR as Lj,$Ae as Mj,EX as Nj,UAe as Oj,zAe as Pj,GAe as Qj,jR as Rj,YAe as Sj,AX as Tj,qAe as Uj,XAe as Vj,LX as Wj,cS as Xj,BX as Yj,eRe as Zj,NX as _j,oRe as $j,pS as ak,xRe as bk,XR as ck,$X as dk,IRe as ek,Jc as fk,oZ as gk,MRe as hk,jZ as ik,uLe as jk,VZ as kk,mLe as lk,hLe as mk,xLe as nk,Ki as ok,Lm as pk,NLe as qk,DLe as rk,MLe as sk,$J as tk,UJ as uk,mFe as vk,KJ as wk,VJ as xk,hFe as yk,xFe as zk,gFe as Ak,IFe as Bk,yFe as Ck,TFe as Dk,PFe as Ek,EFe as Fk,_Fe as Gk,OFe as Hk,AFe as Ik,RFe as Jk,LFe as Kk,FFe as Lk,BFe as Mk,NFe as Nk,vF as Ok,DFe as Pk,MFe as Qk,tn as Rk,tQ as Sk,ls as Tk,CNe as Uk,vNe as Vk,kNe as Wk,TNe as Xk,PNe as Yk,ENe as Zk,_Ne as _k,LNe as $k,FNe as al,lee as bl,BNe as cl,NNe as dl,DNe as el,MNe as fl,HNe as gl,WNe as hl,$Ne as il,UNe as jl,pee as kl,xw as ll,zNe as ml,Qi as nl,It as ol,yr as pl,nB as ql,sB as rl,ol as sl,GNe as tl,Mee as ul,jNe as vl,KNe as wl,VNe as xl,YNe as yl,qNe as zl,XNe as Al,ZNe as Bl,xB as Cl,JNe as Dl,ioe as El,QNe as Fl,eDe as Gl,yB as Hl,oDe as Il,tDe as Jl,rDe as Kl,aDe as Ll,nDe as Ml,iDe as Nl,ww as Ol,lDe as Pl,SB as Ql,cDe as Rl,dDe as Sl,nl as Tl,CB as Ul,fDe as Vl,pDe as Wl,uDe as Xl,mDe as Yl,fno as Zl,pno as _l,uno as $l,Vg as am,Xz as bm,YT as cm,Fno as dm,Bno as em,WIe as fm,$Ie as gm,uso as hm,mso as im,hso as jm,xso as km,Qg as lm,eI as mm,Wso as nm,gG as om,bG as pm,SG as qm,wG as rm,Alo as sm,pI as tm,nj as um,sj as vm,lj as wm,uI as xm,cco as ym,dco as zm,mI as Am,Qbe as Bm,bco as Cm,Kf as Dm,vco as Em,mj as Fm,Ei as Gm,m7 as Hm,GPe as Im,jPe as Jm,$uo as Km,Uuo as Lm,zuo as Mm,i4 as Nm,Pco as Om,hI as Pm,FPe as Qm,Foe as Rm,Boe as Sm,Noe as Tm,zB as Um,eMe as Vm,Xw as Wm,eD as Xm,PHe as Ym,ED as Zm,T4e as _m,P4e as $m,Dh as an,Cne as bn,vne as cn,T5e as dn,PPe as en,Gne as fn,SM as gn,m3e as hn,h3e as in,Zne as jn,x3e as kn,g3e as ln,Gh as mn,I3e as nn,Cl as on,c2 as pn,d2 as qn,S2 as rn,f6e as sn,H2 as tn,C6e as un,$2 as vn,wv as wn,Kie as xn,Xie as yn,aUe as zn,Vqe as An,aXe as Bn,lXe as Cn,E$ as Dn,pXe as En,uXe as Fn,kXe as Gn,TXe as Hn,HXe as In,zXe as Jn,_f as Kn,tme as Ln,WZe as Mn,YZe as Nn,fJe as On,pJe as Pn,LJe as Qn,u6 as Rn,APe as Sn,xj as Tn,dfo as Un,Cj as Vn,Qe as Wn,FI as Xn,Rr as Yn,XK as Zn,sp as _n,ZK as $n,JK as ao,Kho as bo,Vho as co,F8 as do,C0 as eo,B8 as fo,tV as go,pIo as ho,Sbo as io};
|