efficient-storefront-blocks 0.121.3 → 0.122.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,342 @@
1
+ import{$ as vp,$a as SE,$c as Np,$d as _y,$h as Pi,A as si,Ab as FE,Ac as by,Ad as Cc,Ae as Ry,Af as R_,Ag as Mn,Ai as LO,Ba as q,Bb as ui,Bc as GE,Be as p_,Bf as qp,Bi as Wt,C as xc,Ca as Pp,Cb as ia,Cd as Et,Ce as u_,Cf as L_,Cg as aO,Ci as pu,D as Sp,Db as Ap,Dc as jE,Dd as it,De as jp,Df as F_,Dg as nO,Di as et,E as Br,Ed as io,Ee as m_,Ef as B_,Ei as me,F as ii,Fa as Mt,Fc as Sy,Fd as Dr,Fe as Ly,Ff as Xp,Fh as Ac,G as so,Ga as dr,Gd as Mr,Gf as N_,Gi as FO,H as ho,Ha as fi,Hd as pr,He as h_,Hf as Zp,I as li,Ia as ay,Ib as BE,Id as xi,Ie as Kp,If as My,J as wp,Ja as fE,Jd as e_,Je as x_,Jf as D_,K as $,Ka as ny,Kd as Dp,Ke as Fy,Kf as Hy,Ki as BO,L as He,La as sy,Lb as Rp,Ld as o_,Le as g_,Lf as M_,M as j0,Mc as KE,Me as I_,Mf as Jp,Mi as NO,N as K0,Nb as Lp,Nc as VE,Ne as Vp,Nf as lt,Oc as wy,Oe as Ii,Of as Ha,P as V0,Pa as iy,Pd as Fn,Pe as Me,Pf as H_,Pg as sO,Q as Cp,Qa as pE,Qb as NE,Qd as t_,Qe as Ee,Qf as Qp,Qg as zy,Qi as fe,R as Y0,Ra as uE,Rb as DE,Rd as Mp,Re as y_,Rf as Ht,Rg as ou,Rh as mO,S as _n,Sa as uo,Sd as gi,Se as yi,Sf as Ci,Sg as iO,Sh as hO,T as q0,Ta as mE,Tb as ME,Tc as j,Td as vc,Te as b_,Tg as Gy,Th as su,U as X0,Ua as Ep,Uc as ne,Ud as kc,Ue as Yp,Uf as W_,Ug as lO,Uh as xO,Ui as Rc,V as gc,Va as hE,Vb as my,Vc as Cy,Vd as Ey,Ve as Nn,Vf as $_,Vg as cO,Vh as gO,Vi as HO,W as ty,Wa as xE,Wc as N,We as S_,Wf as Wy,Wg as tu,Wh as IO,X as De,Xa as gE,Xc as Qo,Xd as r_,Xg as dO,Xh as yO,Xi as yu,Y,Ya as IE,Yc as la,Yd as a_,Yg as da,Yi as WO,Z as Z0,Za as yE,Zc as YE,Zd as n_,Ze as Ma,Zf as U_,Zh as bO,Zi as $O,_a as bE,_c as U,_e as By,_f as $y,_g as fO,_h as SO,a as ni,aa as Na,ab as wE,ad as ht,ae as s_,ai as wO,b as be,ba as ci,bb as _p,bd as qE,bi as iu,c as _o,ca as J0,cb as Op,cc as hy,cd as fr,ce as Oy,ci as CO,d as aa,da as na,db as CE,dd as Nr,dg as z_,ea as ry,eb as vE,ec as HE,ed as vy,ef as w_,eg as G_,f as Pt,fa as di,fd as Da,ff as C_,fg as j_,fi as vO,g as hc,ga as Q0,gb as kE,gd as ca,ge as Hp,gf as Ny,gg as K_,gh as jy,gi as Wa,h as M0,ha as eE,hb as TE,hd as XE,he as Wp,hf as vo,hh as fa,hi as kO,i as yp,ib as ly,ie as i_,if as v_,ig as Dn,ih as vi,ii as TO,j as H0,ja as Ic,jb as PE,jd as Ze,je as $p,jf as k_,jg as V_,jh as It,ji as PO,k as W0,ka as oE,kb as EE,kd as Ln,ke as Up,kf as bi,kg as Y_,kh as ke,la as tE,lb as cy,lc as Rn,ld as Sc,le as l_,lf as gt,lh as ru,li as lu,ma as rE,mb as pi,md as mi,me as c_,mg as eu,mh as pO,mi as $a,n as $0,na as On,nb as An,nc as xy,nd as ZE,ne as zp,nf as T_,ng as q_,nh as Ec,ni as cu,oa as aE,ob as dy,oc as gy,od as ky,oe as Gp,of as Si,og as X_,oh as _t,pb as fy,pd as hi,pe as Bn,pf as wi,pg as Z_,ph as _c,qa as nE,qb as py,qc as Fp,qd as Ty,qe as d_,qg as J_,qh as au,r as U0,ra as kp,rb as _E,rc as Iy,rg as Q_,rh as ki,ri as EO,sa as sE,sb as OE,sc as WE,sf as P_,sg as eO,sh as Oc,si as du,t as eo,ta as Tp,tb as AE,tf as E_,th as uO,ti as Ei,u as z0,ua as iE,ub as uy,ud as JE,ue as f_,uf as __,ug as Hr,uh as Ti,ui as _O,v as bp,va as lE,vb as RE,vc as yy,vd as QE,vf as Pc,vg as oO,vh as nu,vi as fu,w as G0,wa as cE,wb as Jo,wc as Bp,wf as O_,wg as tO,wi as OO,xa as yc,xb as LE,xc as $E,xd as Py,xe as xt,xf as A_,xg as Uy,xi as Ua,y as Ue,ya as sa,yc as UE,ye as Tc,yf as Dy,yg as rO,yi as AO,z as Oo,za as dE,zb as bc,zc as zE,zd as wc,ze as Ay,zg as Wr,zi as RO}from"./chunk-PNXEY4EH.js";import{a as xo,d as DO,e as uu,f as mu,g as MO,j as hu,k as $t,l as xu,m as gu,n as Iu,r as Ky}from"./chunk-IJC4EEZC.js";var zO="en",bu=null,GO=zO,jO=null;function JPe(e,o,t){bu=e??null,GO=o||zO,jO=t??null}function ce(){return jO}function Vy(){return GO}function KO(){return bu}function UO(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=bu?$(bu,e):void 0;if(typeof t=="function"){try{let r=be(t(o??{}));if(r)return r}catch{}return UO(e,o)}return UO(be(t)??e,o)}function ct(e,o,t,r){return c(t===1?e:o,{...r,n:t})}import{jsx as Yy,Fragment as x7,jsxs as g7}from"react/jsx-runtime";import{createContext as I7,useContext as y7}from"react";var b7={mirrorHostStyles:!0,css:null,fontHrefs:[]},VO=I7(b7);function t0e({value:e,children:o}){return Yy(VO.Provider,{value:e,children:o})}function Lc(){return y7(VO)}function YO(){let{css:e,fontHrefs:o}=Lc();return g7(x7,{children:[o.map(t=>Yy("link",{rel:"stylesheet",href:t},t)),e?Yy("style",{"data-sf-canvas-css":"",children:e}):null]})}import{jsx as S7}from"react/jsx-runtime";import{createContext as w7,useContext as C7}from"react";var qO=w7(void 0);function s0e({metadata:e,children:o}){return S7(qO.Provider,{value:e,children:o})}var XO=()=>C7(qO);import{jsx as No,Fragment as ZV,jsxs as xp}from"react/jsx-runtime";import{useCallback as fc,useEffect as ta,useRef as vPe,useState as VV}from"react";import{SettingsSwitch as kPe}from"efficient-easel/panel";import{PagesIcon as TPe,StylesIcon as PPe}from"efficient-easel/rail";import{PaletteIcon as EPe}from"efficient-shell/icons/efficient";import{Subtree as _Pe,TreeRow as JV}from"efficient-easel/tree";import{useEasel as QV}from"efficient-easel/easel";import{toItemSelector as OPe}from"efficient-easel/node-ops";import{useEaselStrings as e7}from"efficient-easel/strings";import{createContext as v7,useContext as k7}from"react";var qy=v7(!1),c0e=()=>k7(qy);import{useMemo as T7,useRef as P7}from"react";import{useEaselApi as E7}from"efficient-easel/easel";import{useSectionOps as _7}from"efficient-easel/screen/lib/document/use-section-ops";function Su(){let e=E7(),o=_7(),t=P7(o);return t.current=o,T7(()=>({getItemById:r=>e.getState().getItemById(r),getSelectorForId:r=>e.getState().getSelectorForId(r),get components(){return e.getState().config.components},replace:(r,a,n)=>t.current.replaceComponent(r,a,n)}),[e])}import{encodePartId as ute}from"efficient-easel/draw";import{insertAt as mte,moveTo as hte,removeAt as xte}from"efficient-easel/fields";import{useSyncExternalStore as ste}from"react";import{isNodeList as ZO}from"efficient-easel/data";var JO="Flex";function _i(e,o){return xt(e)?typeof e?.[Pt]=="string"?Xy(o?.[Pt]):"":Xy(e?.[Pt])}var Xy=e=>typeof e=="string"?e.trim():"",O7=e=>e.type===Oo&&Array.isArray(e.props?.[Oy])&&e.props[Oy].some(o=>Xy(o?.[Pt])!==""),A7=new Intl.NumberFormat("en-US");function R7(e){return/^\d+$/.test(e)?A7.format(Number(e)):e}function y0e(e,o){let t=o?o.find(r=>r.key===e)?.value:U0(hc).find(r=>r.key===e)?.value;return t===void 0?null:R7(t)}var L7={[Pt]:"any"};function Zy(e,o=!1){let t=e.props;if(!t)return{node:e,names:!1};let r=e.type==="Text"&&(_i(t)!==""||o&&_i(t,L7)!==""),a=o||O7(e),n=ho(e,i=>so(i,l=>{let d=Zy(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=eo(n);if(r&&!s&&(n={...n,[_o]:hc}),!r&&s===hc){let{[_o]:i,...l}=n;n=l}return{node:n===t?e:{...e,props:n},names:!1}}function QO(e,o,t){for(let r of e){if(r?.props?.id===o)return t;for(let a of ii(r??{})){let n=QO(a,o,r.type===JO?r:t);if(n!==void 0)return n}}}function b0e(e,o){if(!ZO(e))return!0;let t=QO(e,o,null);if(t===void 0)return!0;if(t===null)return!1;let r=eo(t.props);return!r||r===hc}function e1(e){let o=e?.content;if(!ZO(o))return e;let t=o.map(r=>Zy(r));return t.every((r,a)=>r.node===o[a])?e:{...e,content:t.map(r=>r.node)}}function o1(e){return Zy(e).node}import{jsx as R,jsxs as ba,Fragment as wa}from"react/jsx-runtime";var Hn=["image","video"],Wn={image:"imageFocal",image2:"imageFocal2"},Fc={HeroSingle:"image",HeroSlide:"video"};function r1(e,o){return Hn.includes(o)?o:Fc[e]}var a1=["one","side","stacked"],F7="one",w0e={one:"One",side:"Side by side",stacked:"Stacked"};function wu(e){return a1.includes(e)?e:F7}function t1(e){return e==="one"?1:2}function Jy(e,o){if(a1.includes(e))return e;let t=wu(o);return t==="side"?"stacked":t}function Bc(e){let o=wu(e.mediaLayout);return Math.max(t1(o),t1(Jy(e.mediaLayoutPhone,o)))}import{cloneElement as xw,createContext as yQ,useContext as ZF,useEffect as bQ,useId as JF,useRef as pd,useState as ud}from"react";import{useEasel as Jm,useSelectedHost as is}from"efficient-easel/easel";import{PIN_LENGTH as Km,toDateKey as vBe,fromDateKey as kBe}from"efficient-shell/format";function eb(e){return!!e&&typeof e=="object"&&!Array.isArray(e)&&typeof e.src=="string"}function dt(e){return typeof e=="string"?e:eb(e)?e.src:""}function n1(e,o,t){return Qy(e,o.split("."),t)}function Qy(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=Qy(p,a,t);return m!==p&&(f=!0),m});return f?{...i,[s]:u}:e}let d=Qy(l,a,t);return d===l?e:{...i,[s]:d}}var B7=["upload","youtube"],N7="upload",T0e={upload:"Upload",youtube:"YouTube"},D7=["background","click"],M7="background",P0e={background:"Background",click:"Click to play"};function i1(e){return B7.includes(e)?e:N7}function l1(e){return D7.includes(e)?e:M7}var s1=/^[A-Za-z0-9_-]{11}$/,H7=/^(?:www\.|m\.|music\.)?(?:youtube\.com|youtube-nocookie\.com|youtu\.be)$/;function c1(e){let o=typeof e=="string"?e.trim():"";if(!o)return null;if(s1.test(o))return o;let t;try{t=new URL(/^[a-z]+:\/\//i.test(o)?o:`https://${o}`)}catch{return null}if(t.protocol!=="https:"&&t.protocol!=="http:"||!H7.test(t.hostname))return null;let r=t.pathname.split("/").filter(Boolean),a=t.hostname.endsWith("youtu.be")?r[0]:r[0]==="watch"?t.searchParams.get("v"):r[0]==="embed"||r[0]==="shorts"||r[0]==="live"||r[0]==="v"?r[1]:null;return a&&s1.test(a)?a:null}function ob(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 d1(e){return`https://i.ytimg.com/vi/${e}/maxresdefault.jpg`}function f1(e){return`https://i.ytimg.com/vi/${e}/hqdefault.jpg`}var tb="Play video";var rb={frame:"Video frame",image:"Image"},E0e={any:[{field:"loadingShows",is:"image"},{all:[{not:{field:"loadingShows",set:!0}},{field:"poster",set:!0}]}]};function Nc(e){let o=e.loadingShows;return o==="image"?"image":o!=null&&o!==""?"frame":dt(e.poster)?"image":"frame"}function _0e(e,o="desktop"){let[t,r]=o==="phone"?[e.posterPhone,e.videoFramePhone]:[e.poster,e.videoFrame],[a,n]=Nc(e)==="image"?[t,r]:[r,t];return dt(a)||dt(n)||void 0}function p1(e){if(dt(e.mediaVideo)){if(Nc(e)==="frame")return dt(e.videoFrame)?void 0:dt(e.poster)?"frame-missing-image":"frame-missing-surface";if(!dt(e.poster))return dt(e.videoFrame)?"image-missing-frame":"image-missing-surface"}}var Cu="videoFrames",ab="videoFramesNotOwn";function u1(e,o,t){let r=dt(e.mediaVideo);if(!r||!o||Nc(e)!=="frame"||dt(e.videoFrame))return;let a=o[r],n=!!dt(e.poster);if(a?.state==="ready")return null;if(n)return!a||a.state==="pending"?void 0:"image-no-frame";if(!a)return t?"save-makes-frame":void 0;switch(a.state){case"pending":return a.noted!=="save"&&t?"save-makes-frame":null;case"dark":return"starts-dark";case"outside":return"outside";case"unsupported":return"unsupported";case"failed":return"failed";default:return null}}function W7(e,o){let t=dt(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?.[ab];if(!(Array.isArray(r)&&r.includes(e)))return W7(o,t?.[Cu])}import{useSyncExternalStore as $7}from"react";function vu(){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 $7(t,a,a)}}}var Je="SiteHeader",ze="SiteFooter",nb="sections",ku=[Je,ze],Oi=e=>e===Je||e===ze,m1=e=>`${e}:${nb}`;function h1(e,o,t=[]){return{type:e,props:{id:o,[nb]:t}}}var U7=new Set(["Footer",Je,ze]);function Ai(e){let o=new Set,t=!1,r=e.filter(a=>{let n=a?.type??"";return n==="Header"?(t=!0,!1):U7.has(n)?o.has(n)?(t=!0,!1):(o.add(n),!0):!0});return t?r:e}function Tu(e,o){return e.some(t=>t?.type===o.type)?e:o.type===Je?[o,...e]:[...e,o]}var x1={[Je]:{max:3,takes:["Flex","Ticker"]},[ze]:{max:6,takes:["Flex","Prose","Logos","Divider"]}};function g1(e,o,t){if(!Oi(e))return!0;let r=x1[e];return t<r.max&&r.takes.includes(o)}function I1(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(!Oi(n?.type))continue;let s=n.props?.[nb];if(!Array.isArray(s)||!s.some(l=>l?.props?.id===r))continue;let i=x1[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 z7}from"efficient-easel/draw";function Dc(e){if(!e)return null;let o=e.lastIndexOf(":");return o>0?{ownerId:e.slice(0,o),slot:e.slice(o+1)}:null}function Pu(e,o,t){let r=Dc(t?.zone),a=r?z7(e,o,r.ownerId):null;return a&&r?{...a,slot:r.slot}:null}import{isNode as G7}from"efficient-easel/data";var y1="Footer",b1=[Je,y1,ze],$n=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},Ri=e=>{let o=e?.props?.id;return typeof o=="string"?o:void 0},S1=e=>Dc(e)?.ownerId??"";function w1(e){let o=Ai($n(e)),t=o.some(r=>r?.type===ze);return o.filter(r=>r?.type===Je||r?.type===ze||r?.type===y1&&!t)}function Eu(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(G7(a)){let n=Ri(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(S1(s))||(n.add(s),r(i),a=!0)}}return t}function C1(e,o){let t=$n(e).filter(r=>{let a=Ri(r);return typeof r?.type=="string"&&b1.includes(r.type)||a!==void 0&&o(a)});return t.length?Eu(t,za(e)):new Set}function sb(e,o){let t={},r={};for(let[a,n]of Object.entries(e??{}))(o.has(S1(a))?t:r)[a]=n;return{owned:t,rest:r}}function v1(e,o){if(!o)return e;let t=w1(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,...$n(e),...a]},{owned:s}=sb(za(o),Eu(t,za(o)));return Object.keys(s).length&&(n.zones={...za(e)??{},...s}),n}function ib(e,o){if(!o)return{page:e,chrome:null};let t=w1(o),r=new Set(t.map(Ri).filter(C=>!!C)),a=[],n=[];for(let C of $n(e)){let b=Ri(C);b&&r.has(b)||Oi(C?.type)?n.push(C):a.push(C)}let s=new Map(n.map(C=>[Ri(C),C])),i=new Set,l=Ai($n(o)).flatMap(C=>{let b=Ri(C);if(!b||!r.has(b))return[C];let y=s.get(b);return y?(i.add(y),[y]):[]});for(let C of n)i.has(C)||l.some(b=>b?.type===C.type)||(l=C.type===Je?[C,...l]:[...l,C]);l=Ai(l);let d=l.length===$n(o).length&&l.every((C,b)=>C===$n(o)[b]),f=za(e),u=Eu(l,f),{owned:p,rest:m}=sb(f,u),h=sb(za(o),Eu(t,za(o))).owned,I={...o,content:d?o.content:[...l]},w=za(o);if(w||Object.keys(p).length){let C={};for(let[b,y]of Object.entries(w??{}))b in h?b in p&&(C[b]=p[b]):C[b]=y;for(let[b,y]of Object.entries(p))b in C||(C[b]=y);I.zones=C,w&&j7(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 j7(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 k1(e,o){return t=>e(t)||t!==void 0&&b1.includes(t)&&o()}var T1=null;function lb(e){T1=e}function ur(){return T1}var P1=null;function cb(e){P1=e}function _u(){return P1}var db=vu();function E1(e,o,t){if(!o)return;let r={...db.get(e)};for(let[a,n]of Object.entries(o))r[a]={...n,noted:t};db.set(e,r)}function _1(e,o){E1(e,o,"load")}function O1(e,o){E1(e,o,"save")}function Ou(e){return db.use(e)}var fb=e=>!!ur()?.sectionOf(e);function A1(e,o=fb){return C1(e,o)}function R1(e,o,t,r=fb){if(t)return e&&A1(o,r).has(e)?void 0:t}function L1(e,o,t=fb){if(!e)return{};let r=[...A1(o,t)];return r.length?{[Cu]:e,[ab]:r}:{[Cu]:e}}import{ScreenDocumentContext as SQ}from"efficient-easel/screen/components/ScreenDocumentContext";import{readHidable as rn,hidableText as wQ}from"efficient-easel/draw";import{FOLD_FIELD_MARKER as QF,LINK_FIELD_MARKER as CQ,MEDIA_FIELD_MARKER as vQ,SCAFFOLD_FIELD_MARKER as kQ,TEXT_FIELD_MARKER as Sa,foldMetaOf as Sr,textFieldIdentifier as LBe}from"efficient-easel/draw";import{jsx as U1}from"react/jsx-runtime";import{useCallback as X7}from"react";import{useEasel as Z7}from"efficient-easel/easel";import{SettingsAction as J7}from"efficient-easel/panel";import{isLengthUnit as Y7}from"efficient-easel/screen/lib/content/length-units";import{CORNER_SIDES as Au,hasCornerSubset as Mc,normalizeCornerSides as $r}from"efficient-easel/screen/lib/content/style-keys";import{isLengthUnit as K7}from"efficient-easel/screen/lib/content/length-units";var Hc={kind:"radius",unitKey:"sectionCornersUnit"};function pb(e){return typeof e=="number"&&Number.isFinite(e)}function F1(e,o,t){if(!pb(e))return;let r=K7(t)&&t!=="px"?Ci(e,t):Ci(Ht(e));if(Object.keys(r).length===0)return;let a=r[ub];if(typeof a!="string")return r;let n=Mc(o)?Un(a,$r(o)??[]):a;return{...r,[V7]:n}}var V7="--sf-section-radius",ub="--sf-card-radius";function Un(e,o){return Au.map(t=>o.includes(t)?e:"0").join(" ")}var B1=[{value:"tl",label:"Top left"},{value:"tr",label:"Top right"},{value:"bl",label:"Bottom left"},{value:"br",label:"Bottom right"}];var Wc={kind:"radius",unitKey:"cardCornersUnit"},q7="--sf-card-box-radius";function mb(e){return typeof e=="number"&&Number.isFinite(e)}function N1(e,o,t){if(!mb(e))return;let r=(Y7(t)&&t!=="px"?Ci(e,t):Ci(Ht(e)))[ub];if(typeof r!="string")return;let a=Mc(o)?Un(r,$r(o)??[]):r;return{[q7]:a}}function D1(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?.[Wc.unitKey];return e.map(s=>s?.props?.id===o?s:{...s,props:{...s.props,cardCorners:r,cardCornerSides:a,[Wc.unitKey]:n}})}function M1(e,o,t){let r=Pu(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}:mb(i?.props?.cardCorners)?{can:!0,others:d,zone:r.zone,index:r.index,data:{...r.item,props:{...r.item.props,[a]:D1(n,l)}}}:{can:!1,reason:"unset",others:d}}function H1(e){return e.can?ct("Gives the other card this card's Corners.","Gives the other {n} cards this card's Corners.",e.others):e.reason==="alone"?c("This is the only card in the section."):e.reason==="unset"?c("Set this card's corners first."):c("This card is not in a section that can share corners.")}function W1(e){return ct("Applied to {n} card","Applied to {n} cards",e)}function $1(e,o){e.can&&o(e.zone,e.index,e.data)}import{useSectionOps as Q7}from"efficient-easel/screen/lib/document/use-section-ops";var eY="apply-corners-to-siblings",oY="Apply to all cards";function tY({plan:e,onPress:o}){return U1(J7,{id:eY,label:c(oY),note:H1(e),disabled:!e.can,doneLabel:W1(e.others),onPress:o})}function z1(){let{appState:e,config:o}=Z7(n=>n),t=Q7(),r=M1(o,e.data.content??[],e.ui.itemSelector),a=X7(()=>{$1(r,t.replaceComponent)},[r,t]);return U1(tY,{plan:r,onPress:a})}import{isShown as J1,lazyShowWhenContext as mY}from"efficient-shell/format";var Ut="product",Ru="recordType",G1={key:Ut,label:"Product",fields:[]},rY=/^[a-z][a-z0-9]*(-[a-z0-9]+)*$/,aY=/^[a-z][A-Za-z0-9]*$/,nY=["text","date","images"],hb=new Map,j1=0;function sY(e){if(typeof e.key!="string"||!rY.test(e.key))throw new Error(`A record type key is lower-case words joined by hyphens, not ${JSON.stringify(e.key)}.`);if(e.key===Ut)throw new Error("The product record type is the builder's own and is not declared by a host.");if(typeof e.label!="string"||!e.label.trim())throw new Error(`The record type ${e.key} has no label.`);let o=new Set;for(let t of e.fields){if(typeof t.key!="string"||!aY.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(!nY.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 uEe(e){let o=e.map(sY);for(let t of o)hb.set(t.key,t);o.length&&(j1+=1)}function xb(){return[G1,...hb.values()]}function gb(e){return e===Ut?G1:hb.get(e)??null}function Ib(){return j1}function $c(e){let o=e?.[Ru];return typeof o!="string"?Ut:o.trim()||Ut}function yb(e){return $c(e)===Ut}function bb(e,o){let t=gb(e)?.fields??[];return o?t.filter(r=>o.includes(r.kind)):t}var Lu="product",K1="tyre",iY=[Lu,K1];function xEe(e){return iY.includes(e)}var lY="productType",cY={[Lu]:"alloy-wheel",[K1]:"tyre"},dY=["alloy-wheel","tyre"];function V1(e,o){return yb(o)?Y1(o)??cY[e]??null:null}function Y1(e){if(!yb(e))return null;let o=e?.[lY];return typeof o=="string"&&dY.includes(o)?o:null}function gEe(e){let o=e?.root;return Y1(o?.props)}var Sb="Main Pages",fY="Dynamic Pages",wb="dynamic",pY="dynamic";function zn(e){return e.kind===pY}var Cb="lightbox";function q1(e){return e.kind===Cb}function X1(e){let o=[],t=[];for(let r of e){if(zn(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??Sb,rows:[r]})}if(t.length){let r=o.findIndex(a=>a.key.startsWith("system:"));o.splice(r===-1?o.length:r,0,{key:wb,label:fY,rows:t})}return o}var Fu=null,Z1=null;function uY(e,o){Fu=e,Z1=o}function CEe(e){uY(e,null)}function vEe(){return Fu}function Uc(){return zn({kind:Z1})||Fu===Lu}function kEe(e){return V1(Fu??"",e)??"alloy-wheel"}function TEe(e){return Uc()?$c(e):null}function vb(e,o,t){let r=!1,a={};for(let[n,s]of Object.entries(e)){if(!J1(wc(s),o??{},t)){r=!0;continue}let i=hY(s,o?.[n],o??{},t);i!==s&&(r=!0),a[n]=i}return r?a:e}function hY(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 Q1(e,o,t,r){let a=Pu(o,t,r);return{device:e,parentType:a?.item.type,parent:a?.item.props}}function Bu(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 Bu(t.not,o);for(let r of[t.all,t.any])if(Array.isArray(r)&&r.some(a=>Bu(a,o)))return!0;return!1}function eA(e,o={}){return mY({parentType:()=>e.parent?.type??void 0,parent:()=>e.parent?.props??void 0,dynamicPage:()=>Uc(),root:()=>e.appState?.data?.root?.props,...o})}import{isLengthUnit as xY}from"efficient-easel/screen/lib/content/length-units";var oA=1,gY="cardImageUnit",kb={kind:"radius",unitKey:gY},tA={kind:"radius"};function IY(e){return Ht(e)}function rA(e,o){if(xY(o)&&o!=="px"){let r=q(e);return r!==void 0&&r>=0?{"--sf-card-image-radius":Me(r,o)}:{}}let t=IY(e);return t===null?{}:{"--sf-card-image-radius":`${t}px`}}import{isLengthUnit as yY}from"efficient-easel/screen/lib/content/length-units";var aA={kind:"radius",unitKey:"cornersUnit"},nA=1,sA="Corners";function bY(e){return Ht(e)}function jEe(e,o,t){let r=yY(t)&&t!=="px"?q(e):void 0,a=r===void 0?bY(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:Mc(o)?Un(n,$r(o)??[]):n}}import{phoneKey as mA}from"efficient-easel/screen/lib/content/view-tiers";var lA=12,Li=6,SY=Jo,Nu={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"}},cA=["phone","acrossPhone","leadPhone"];var wY=new Set(cA),zc=Object.fromEntries(Object.entries(Nu).map(([e,o])=>[e,Object.fromEntries(Object.entries(o).filter(([t])=>!wY.has(t)))])),Tb=Object.keys(Nu),dA=[2,3,4,6];function Pb(e,o){return Tb.filter(t=>t===o||e===null||zc[t].across===e)}function fA(e){let o=e.layout;return typeof o=="string"&&He(Nu,o)?o:null}function Eb(e){let o=fA(e);return o?CY(o,e.layoutPhone):null}var Du={oneAcross:{label:"One across",phone:[[Li,2]],acrossPhone:1}};function pA(e){return typeof e=="string"&&He(Du,e)?e:null}function iA(e,o){return o?Li/e.acrossPhone:lA/e.across}function _b(e){return e.ratio?fO.find(o=>o.shape===e.ratio)?.ratio??null:null}function uA(e){return[...e.lead??[],...e.desktop]}function CY(e,o){let t=Nu[e],r=pA(o);if(!r)return t;let{phone:a,acrossPhone:n}=Du[r],s=Object.fromEntries(cA.map(i=>[i,void 0]));return{...t,...s,phone:a,acrossPhone:n}}var vY="sf-wall--";function kY(e){let o=fA(e);if(!o)return"";let t=pA(e.layoutPhone);return`${vY}${o}${t?`--${t}`:""}`}function XEe(e){let o=Eb(e);if(!o)return"";let t=`.${kY(e)}`,r=[],a=(i,l,d)=>`${t}:has(> :nth-child(${i}n+${l+d}):last-child) > :nth-last-child(-n+${d})`,n=(i,l,d=[])=>{let f=[],u=i.length,p=d.length;d.forEach(([m,h],I)=>{f.push(`${t} > :nth-child(${I+1}){grid-column:span ${m};grid-row:span ${h}}`)}),i.forEach(([m,h],I)=>{f.push(`${t} > :nth-child(${u}n+${p+I+1}){grid-column:span ${m};grid-row:span ${h}}`)});for(let m=1;m<u;m+=1)f.push(`${a(u,p,m)}{grid-column:span ${l};grid-row:span 1}`);return f};r.push(`${t}{grid-template-columns:repeat(${lA},minmax(0,1fr))}`);let s=_b(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,iA(o,!1),o.lead)),r.push(`@media (max-width:${SY}px){`),r.push(`${t}{grid-template-columns:repeat(${Li},minmax(0,1fr))}`),r.push(...n(o.phone,iA(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 Mu=12,hA=1,Hu=3;var TY=3;function Fi(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 PY(e){return Fi(e,1,Mu)??TY}function e_e(e,o){return Fi(e,hA,Hu)??(PY(o)===4?2:hA)}function xA(e){return e==null||e===""?null:Fi(e,1,Mu)}var gA="data-sf-span",Wu=4;function Ob(e){return e==null||e===""?null:Fi(e,1,Wu)}var IA="data-sf-row-span",Bi="gridTileAt",Ab=48;function yA(e){return e==null||e===""?null:Fi(e,1,Ab)}var bA="--sf-tile-at";function SA(e){return e==null||e===""?null:Fi(e,1,Hu)}function wA(e){return Ob(e)}var CA="data-sf-span-phone",vA="data-sf-row-span-phone",Ga=["gridSpan","gridRowSpan",Bi,mA("gridSpan"),mA("gridRowSpan")];function kA(e,o){if(!e)return!1;if(Rb(e,o)||e.type==="Grid")return!0;if(e.type==="GalleryB"){if(Eb(e.props??{}))return!1;let t=e.props?.columns;return t!=null&&t!==""}return!1}var TA=new Map;function o_e(e,o){TA.set(e,[...o])}function Rb(e,o){if(!e||typeof e.type!="string"||typeof o!="string")return!1;let t=TA.get(e.type);return t?t.some(r=>{let a=e.props?.[r];return Array.isArray(a)&&a.some(n=>n?.props?.id===o)}):!1}import{jsx as EY}from"react/jsx-runtime";import*as _Y from"efficient-easel/icons";function $u(e){let o=e.replace(/(^|-)([a-z])/g,(r,a,n)=>n.toUpperCase()),t=_Y[`${o}Icon`];return t?EY(t,{size:16}):null}import{jsx as ja,Fragment as RY,jsxs as FA}from"react/jsx-runtime";import{useContext as LY,useEffect as FY,useId as BY,useState as BA}from"react";import{SettingsField as NY,SettingsSwitch as DY}from"efficient-easel/panel";import{AnchorIcon as MY}from"efficient-easel/icons";import{ScreenDocumentContext as HY}from"efficient-easel/screen/components/ScreenDocumentContext";import{Snippet as WY}from"efficient-shell/ui";import{slugify as $Y}from"efficient-shell/format";import{slugify as OY}from"efficient-shell/format";function Gc(e){return typeof e=="string"?e.trim():e&&typeof e=="object"&&typeof e.text=="string"?e.text.trim():""}var Gn=e=>OY(Gc(e));var Uu="homepage";import{slugify as AY}from"efficient-shell/format";var PA=[{value:"page",label:"Page"},{value:"anchor",label:"Anchor"},{value:"blog",label:"Blog post",needs:"service"},{value:"product",label:"Product",needs:"commerce"},{value:"popup",label:"Popup"},{value:"custom",label:"Custom URL"}];function EA(e){return e.offersCommerce&&e.offersService?PA:PA.filter(o=>!o.needs||(o.needs==="commerce"?e.offersCommerce:e.offersService))}var Lb="#popup:";function _A(e){return`${Lb}${e}`}function OA(e){return e.startsWith(Lb)&&e.slice(Lb.length).trim()||null}function jc(e){return e===Uu?"/":`/${e}`}function AA(e){return`/journal/${e}`}function f_e(e){return`/wheels/${e}`}function zu(e,o){return`${jc(e)}#${o}`}function RA(...e){let o=new Set,t=[];for(let r of e)for(let a of r?.content??[]){let n=Gc(a?.props?.anchor);if(!n)continue;let s=AY(n);!s||o.has(s)||(o.add(s),t.push({slug:s,name:n}))}return t}function p_e(e){let o=e.indexOf("#"),t=o===-1?e:e.slice(0,o),r=t.indexOf("?");return r===-1?t:t.slice(0,r)}function LA(e){return/^\/wheels\/[^/?#]+(?:[?#].*)?$/.test(e)}import{readHidable as UY}from"efficient-easel/draw";function NA({value:e,onChange:o,nameBox:t}){let r=UY(e).text,[a,n]=BA(!1),s=a||r.trim()!=="",i=BY();return FA(RY,{children:[ja(NY,{label:c("Add an anchor"),labelId:i,icon:ja(MY,{}),action:ja(DY,{checked:s,ariaLabelledBy:i,onChange:l=>{n(l),!l&&r!==""&&o("")}})}),s&&t(e,o),s&&ja(zY,{name:r})]})}function zY({name:e}){let o=LY(HY),t=o?.templateId?"":o?.currentSlug??"",[r,a]=BA("");FY(()=>a(uu()),[]);let n=$Y(e);if(!n||!t)return null;let s=`${r}${zu(t,n)}`,i=s.replace(/^https?:\/\//,""),l=i.lastIndexOf("#");return ja("div",{className:"sf-anchor-link",children:ja(WY,{value:s,label:c("link"),size:"sm",children:FA("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 GY}from"react/jsx-runtime";import{Fragment as jY}from"react";import{Button as Gu,Tooltip as KY}from"efficient-shell/ui";function DA({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(KY,{content:n,className:l?"sf-name-tip":void 0,children:Ur("p",{className:"sf-blogsource-status","data-state":e,children:[o?Ur(jY,{children:o},"status"):null,t?Ur(Gu,{variant:"link",size:"sm",className:"sf-blogsource-link",onClick:t,disabled:r,children:c("Refresh now")},"refresh"):null,a?Ur(Gu,{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])})})}):GY("div",{className:"sf-blogsource",style:s?{marginTop:9}:void 0,children:[Ur("p",{className:"sf-blogsource-status","data-state":e,children:o}),t?Ur(Gu,{variant:"secondary",className:"sf-blogsource-action",onClick:t,disabled:r,children:c("Refresh now")}):null,a?Ur(Gu,{variant:"secondary",className:"sf-blogsource-action",onClick:a.onClick,children:a.label}):null,Ur("p",{className:"es-field-hint",children:n})]})}import{AdjustIcon as TQ,EyeIcon as PQ,AnimationIcon as EQ,BackgroundIcon as WF,BorderAllIcon as _Q,BlockSectionIcon as OQ,ColumnWidthsIcon as qm,ColumnsIcon as eB,CornerIcon as oB,DirectionDownIcon as AQ,DirectionLeftIcon as RQ,DirectionRightIcon as LQ,DirectionUpIcon as FQ,EditIcon as BQ,GapIcon as NQ,GridIcon as tB,GroundIcon as uw,HashIcon as rB,HeightIcon as Xm,ImageIcon as DQ,ListIcon as MQ,LocationIcon as $F,PaddingBottomIcon as aB,PaddingLeftIcon as nB,PaddingRightIcon as sB,PaddingTopIcon as gw,PageIcon as HQ,StickyIcon as iB,SearchIcon as WQ,SquareIcon as $Q,TypeIcon as UQ,WidthIcon as zQ}from"efficient-easel/icons";import{jsx as oo,Fragment as jn,jsxs as Kn}from"react/jsx-runtime";import{CaptionIcon as VY,DateIcon as YY,FlagIcon as qY,TitleIcon as XY,ButtonIcon as ZY,DollarIcon as JY,HashIcon as QY,LinkIcon as e9,NoteIcon as o9,TagIcon as t9,TextLinesIcon as r9}from"efficient-easel/icons";var MA={body:r9,button:ZY,link:e9,label:t9,number:QY,price:JY,note:o9,name:qY,date:YY,caption:VY,title:XY},HA={eyebrow:Kn(jn,{children:[oo("path",{d:"M5 6.5h5"}),oo("path",{d:"M5 12.5h14"}),oo("path",{d:"M5 18h11"})]}),heading:Kn(jn,{children:[oo("path",{d:"M6.5 5v14"}),oo("path",{d:"M17.5 5v14"}),oo("path",{d:"M6.5 12h11"})]}),intro:Kn(jn,{children:[oo("path",{d:"M4 5.5v13"}),oo("path",{d:"M8 7.5h12"}),oo("path",{d:"M8 12h12"}),oo("path",{d:"M8 16.5h8"})]}),value:Kn(jn,{children:[oo("rect",{x:"2.5",y:"7",width:"19",height:"10",rx:"2"}),oo("path",{d:"M6.5 12h7"})]}),quote:Kn(jn,{children:[oo("path",{d:"M9.5 5.5C7 7.2 5.5 9.7 5.5 12.8h4v5.7h-5v-5.7"}),oo("path",{d:"M19.5 5.5c-2.5 1.7-4 4.2-4 7.3h4v5.7h-5v-5.7"})]}),tag:Kn(jn,{children:[oo("rect",{x:"3",y:"5.5",width:"18",height:"13",rx:"2.5"}),oo("path",{d:"M8 9.5h8"}),oo("path",{d:"M12 9.5v5"})]}),meta:Kn(jn,{children:[oo("path",{d:"M4 7h16"}),oo("path",{d:"M4 14h3.5"}),oo("path",{d:"M10.5 14h3"}),oo("path",{d:"M17 14h3"})]})};function Fb({noun:e,size:o=14,strokeWidth:t=1.8,className:r,style:a}){let n=MA[e];return n?oo("span",{className:r,style:{display:"inline-flex",...a},"aria-hidden":"true",children:oo(n,{size:o})}):oo("svg",{className:r,style:a,width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:t,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:HA[e]})}var L_e=Object.keys(MA);var F_e=Object.keys(HA);import{parseHexColor as f9}from"efficient-shell/format";import{parseHexColor as GA}from"efficient-shell/format";import{COLOR_SLOTS as jA,FILL_COLOR_SLOTS as l9,colorRole as c9,fillColorRole as KA}from"efficient-shell/markup";import{parseHexColor as WA}from"efficient-shell/format";import{FILL_COLOR_SLOTS as a9}from"efficient-shell/markup";var ju=e=>{let o=J_.find(t=>t.role===e);return o?`var(${o.token})`:""},n9=e=>ju(e)?`var(--theme-${e})`:"",s9={main:{ink:On.accent,page:On.accent,key:"accent",label:()=>c("Main"),words:e=>c("Theme {n} main color",{n:e})},text:{ink:On.text,page:On.text,key:"text",label:()=>c("Text"),words:e=>c("Theme {n} text color",{n:e})},background:{ink:ju("bg"),page:n9("bg"),key:"background",label:()=>c("Background"),words:e=>c("Theme {n} background",{n:e})},muted:{ink:On.labels,page:On.labels,key:"muted",label:()=>c("Muted"),words:e=>c("Theme {n} muted color",{n:e})},surface:{ink:ju("surface"),page:ju("surface"),key:"surface",label:()=>c("Surface"),words:e=>c("Theme {n} surface color",{n:e})}};function Ka(e){return $(s9,e)}var Bb="#9ca3af";function Ni(e,o,t){let r=Ka(e);return r?{hex:WA(o[r.key]??"")??"",words:r.words(t)}:null}function $A(e,o){return a9.flatMap(t=>{let r=Ni(t,e,o);return r&&Ka(t)?.ink?[{name:t,label:r.words,value:r.hex||Bb}]:[]})}var i9=["main","text","background"];function UA(e){let o=new Set,t=[];return vo(e).themes.forEach((r,a)=>{for(let n of i9){let s=Ka(n),i=s?r[s.key]:void 0,l=typeof i=="string"&&i?WA(i):null;!s||!l||o.has(l)||(o.add(l),t.push({value:l,label:s.words(a+1)}))}}),t}function pa(e){return Ka(e)?.ink??""}function zr(e){if(typeof e!="string")return null;let o=KA(e.trim());return o?.kind==="slot"&&pa(o.slot)?o.slot:null}var d9={accent:"main",labels:"muted"};function Ot(e){return $(d9,e)??e}function Di(e){if(!e)return"";if(e.startsWith("#"))return GA(e)===e.toLowerCase()?e:"";let o=c9(Ot(e));return o?.kind==="slot"?pa(o.slot):""}function Mi(e,o=jA){return o.flatMap(t=>{let r=Ka(t);return r?.ink?[{name:t,label:r.label(),value:e?.[t]||Bb}]:[]})}function VA(e){let o=KA(Ot(e));return o?.kind==="slot"?pa(o.slot):""}function Nb(e){let o=e?.trim();return o?l9.find(t=>pa(t)===o)??null:null}function Ku(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 jA){let i=pa(s);if(!i)continue;let l=i.replace(/^var\((--[\w-]+)\)$/,"$1"),d=a.getPropertyValue(l).trim();if(!d)continue;let f=zA(d);!f&&n&&(n.fillStyle="#000000",n.fillStyle=d,f=zA(String(n.fillStyle))),f&&(o[s]=f)}return o}function zA(e){let o=e.trim().toLowerCase();if(o.startsWith("#"))return GA(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 p9="#ffffff";function Db(e){return YA(e)||(u9(e)?e:p9)}function YA(e){let o=zr(e);return o?Ka(o)?.page??"":""}function u9(e){return typeof e=="string"&&f9(e)===e.toLowerCase()||YA(e)!==""}function Vu(e){return{"--bg":Db(e)}}import{parseHexColor as m9}from"efficient-shell/format";import{fillColorRole as h9}from"efficient-shell/markup";function Vn(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 Mb=[{label:"Even",value:"even"},{label:"From the bottom",value:"bottom"}];var dOe="sf-card",fOe="[--sf-card-lift:none] [--sf-card-shadow-hover:var(--sf-card-shadow,none)]",Va={min:0,max:100,step:5,fallback:0,unit:"%"},x9="68%",uOe={desktop:20,phone:20,side:40,sidePhone:24},mOe="sf-box-sides";function Wb(e){return typeof e=="string"&&e.trim()!==""}function XA(e){return Wb(typeof e?.bgImage=="string"?e.bgImage:null)||Yu(e)}function Yu(e){return xt(e,Rp)!==""}function Vc(e,o){return o||!Yu(e)?e:{...e,[Rp]:""}}function hOe(e,o){return Ly(o,xt(e,Rp))?.trim()||null}function qA(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:da(Number(r))}:{background:`linear-gradient(0deg, ${da(Number(r))} 0%, ${da(0)} ${x9})`}}var qu=[{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"}],ZA="fillFade",Hb=qu[1].value,Xu=e=>e===Hb?Hb:qu[0].value,g9=[{mix:"12%",at:"50%"},{mix:"19%",at:"70%"},{mix:"50%",at:"95%"}];function xOe(e){return Xu(e)!==Hb?null:{backgroundImage:`linear-gradient(to bottom, transparent, ${g9.map(o=>`color-mix(in srgb, var(--bg) ${o.mix}, transparent) ${o.at}`).join(", ")})`}}var Zu=e=>typeof e=="string"?m9(e.trim()):null,Kc=e=>{let o=Zu(e);if(o!==null||typeof e!="string")return o;let t=e.trim();return t&&!t.startsWith("#")&&VA(t)||null},Ju=e=>{if(typeof e!="string")return null;let o=h9(Ot(e.trim()));return o?.kind==="slot"?o.slot:null},$b="swatch";function gOe(e,o){if(!o)return null;let t=Ly(o,xt(e,$b)),r=zr(t);return Zu(t)??(r&&pa(r)||null)}var I9={tabletClass:"sf-fill-tablet",tabletVar:"--sf-fill-tablet",phoneClass:"sf-fill-phone",phoneVar:"--sf-fill-phone"};function IOe(e,o,t){return Vn(I9,Kc(e),Kc(o),Kc(t))}var y9={tabletClass:"sf-wash-tablet",tabletVar:"--sf-wash-tablet",phoneClass:"sf-wash-phone",phoneVar:"--sf-wash-phone"};function yOe(e){let o=qA(e.darken,e.darkenStyle);if(!o)return{className:"",style:{}};let t=(u,p)=>String(qA(u,p)?.background??"none"),r=u=>(typeof u=="number"||typeof u=="string"&&u.trim()!=="")&&Number.isFinite(Number(u))?u:void 0,a=u=>Mb.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 Vn(y9,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 bOe(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 HE(n,s)}function JA(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(Ub(r,o,0))return{type:typeof a=="string"?a:"",props:n??{}}}return null}function Ub(e,o,t){if(t>12||!e||typeof e!="object")return!1;if(Array.isArray(e))return e.some(a=>Ub(a,o,t+1));let r=e.props;return r&&typeof r=="object"&&r.id===o?!0:Object.values(e).some(a=>Ub(a,o,t+1))}function QA(e,o){let t=e?.content;return Array.isArray(t)?Qu(t,o,0)??[]:[]}function Qu(e,o,t){if(t>12||!e||typeof e!="object")return null;if(Array.isArray(e)){for(let a of e){let n=Qu(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=Qu(a,o,t+1);if(n)return[r,...n]}return null}for(let a of Object.values(e)){let n=Qu(a,o,t+1);if(n)return n}return null}import{SettingsDefaultReset as tt,SettingsDrill as GQ,SettingsField as wo,SettingsGroup as jQ,SettingsSegmented as KQ,SettingsBorder as VQ,SettingsSidesEach as YQ,SettingsSwitch as Iw,borderSides as qQ,borderStartEach as XQ}from"efficient-easel/panel";import{ListField as ZQ}from"efficient-easel/fields";import{DisplayChips as JQ}from"efficient-shell/ui";import{HIDDEN_KEY as b9,hiddenInEveryView as S9,hiddenInView as zb,hiddenKeyOf as eR}from"efficient-easel/screen/lib/content/view-hide";import{VIEW_TIERS as w9}from"efficient-easel/screen/lib/content/view-tiers";var C9={"000":"",100:"view-desktop:hidden","010":"view-wide:max-view-desktop:hidden","001":"max-view-wide:hidden",110:"view-wide:hidden","011":"max-view-desktop:hidden",101:"view-desktop:hidden max-view-wide:hidden",111:"hidden"},v9={"000":"",100:"view-desktop:hidden","010":"view-tablet:max-view-desktop:hidden","001":"max-view-tablet:hidden",110:"view-tablet:hidden","011":"max-view-desktop:hidden",101:"view-desktop:hidden max-view-tablet:hidden",111:"hidden"},oR=e=>(e.desktop?"1":"0")+(e.tablet?"1":"0")+(e.mobile?"1":"0");function em(e,{atSectionLine:o=!1}={}){return(o?v9:C9)[oR(e)]}var Hi=[b9,eR("tablet"),eR("mobile")];function tR(e){return{desktop:zb(e,"desktop"),tablet:zb(e,"tablet"),mobile:zb(e,"mobile")}}function ua(e){return S9(e)}function rR(e){let o=tR(e);return w9.filter(t=>o[t]).join(" ")}var k9={"000":"",100:"view-desktop:hidden!","010":"view-wide:max-view-desktop:hidden!","001":"max-view-wide:hidden!",110:"view-wide:hidden!","011":"max-view-desktop:hidden!",101:"view-desktop:hidden! max-view-wide:hidden!",111:"hidden!"},T9={"000":"",100:"view-desktop:hidden!","010":"view-tablet:max-view-desktop:hidden!","001":"max-view-tablet:hidden!",110:"view-tablet:hidden!","011":"max-view-desktop:hidden!",101:"view-desktop:hidden! max-view-tablet:hidden!",111:"hidden!"};function Yc(e,{atSectionLine:o=!1}={}){return(o?T9:k9)[oR(tR(e))]}function Wi(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 om(e,o){return Wi(e)[o]!==!1}function Gb(e,o,t){let r=Wi(o)[t];return typeof r=="boolean"?r:om(e,t)}function aR(e){return Object.values(Wi(e)).some(o=>o===!1)}function nR(e){return Object.keys(Wi(e)).length>0}function sR(e,o,t){let r={...Wi(e)};return t?delete r[o]:r[o]=!1,Object.keys(r).length?r:void 0}function iR(e,o,t){return{...Wi(e),[o]:t}}function POe(e,o,t,{atSectionLine:r=!0}={}){let a=!om(e,t);return em({desktop:a,tablet:a,mobile:!Gb(e,o,t)},{atSectionLine:r})}import{ColorSwatch as QQ,CornersInput as eee,DatePicker as tNe,DateTimePicker as oee,FOCAL_DEFAULT as rNe,IconPicker as lB,COLUMN_COUNT_MAX as UF,COLUMN_SHARE_MIN as tee,COLUMN_SHARES_EQUAL as ree,resolveColumnShares as cB,WidthsBar as aee,useShellStrings as nee,IconButton as dB,InputNumber as zF,Slider as see,Tooltip as yw}from"efficient-shell/ui";import{backendOf as P9}from"efficient-easel/screen/lib/session";var Ge=P9,$i=e=>e.blocks;async function lR(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 jb="Lookup busy \u2014 try again in a moment.",tm=e=>typeof e=="number"&&Number.isFinite(e);function FOe(e){return e.some(o=>{let t=o?.geocode;return t?t.pending||t.manual&&t.lat===void 0&&t.lng===void 0?!0:tm(t.lat)&&t.lat!==o.lat||tm(t.lng)&&t.lng!==o.lng:!1})}async function BOe(e,o,{geocode:t=lR,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:jb}})}}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=tm(i.lat)&&i.lat!==s.lat?i.lat:s.lat,d=tm(i.lng)&&i.lng!==s.lng?i.lng:s.lng;return l!==s.lat||d!==s.lng?{...s,lat:l,lng:d}:s})}import{jsx as ft,jsxs as Vb}from"react/jsx-runtime";import{useRef as E9}from"react";import{ColorPicker as _9,ColorPickerPanel as O9,ColorSwatch as A9,HexInput as R9,Popover as L9,Tooltip as F9,colorFill as B9,colorSwatchClasses as N9,useShellStrings as D9}from"efficient-shell/ui";import{SettingsDefaultReset as M9,SettingsField as H9}from"efficient-easel/panel";import{typedHex as Kb}from"efficient-easel/pick";var cR="Not set";function dR({value:e,onChange:o,label:t,id:r,caption:a,inherited:n,ariaLabel:s,choices:i}){return ft($9,{value:e,onChange:o,label:c(s??t),id:r,caption:a,inherited:n,choices:i})}function W9(){let{theme:e}=fe();return UA(e)}function $9({value:e,onChange:o,label:t,id:r,caption:a,inherited:n,choices:s}){let i=W9(),l=e?null:Kb(n??""),d=a!==void 0&&(!e||Kb(a)!==Kb(e))?a:null,f=u=>{u!==e&&o(u)};return Vb("div",{className:"sf-colour",children:[s?ft(U9,{id:r,value:e,onChange:o,label:t,presets:i,follows:l,choices:s}):ft(_9,{id:r,value:e,onChange:f,label:t,presets:i,fallback:l??void 0,size:"md",align:"start"}),d!==null?ft("span",{className:"sf-colour-caption",children:d}):ft("span",{className:"sf-colour-hexwrap",children:ft(R9,{value:e||l||"",onChange:f,label:c("{label} hex code",{label:t}),placeholder:e||l?void 0:c(cR),className:l?"sf-colour-hex is-inherited":"sf-colour-hex",size:"md"})})]})}function U9({value:e,onChange:o,label:t,id:r,presets:a,follows:n,choices:s}){let i=D9().color,l=e||n||"",d=s.findIndex(p=>p.selected),f=d>=0,u=E9(d);return f&&(u.current=d),ft(L9,{id:r,trigger:ft("span",{"aria-hidden":"true",className:"absolute inset-0",style:B9(l)}),triggerLabel:i.swatch(t,l.toUpperCase()||i.none),triggerClassName:N9({size:"md"}),"aria-label":i.panel(t),align:"start",children:Vb("div",{className:"sf-colour-window",children:[ft("div",{role:"group","aria-label":t,className:"sf-colour-choices",children:s.map(p=>ft(F9,{content:p.label,children:ft(A9,{color:p.color,"aria-label":p.label,selected:p.selected,onClick:()=>{p.selected||p.onPick()}})},p.label))}),ft(O9,{value:f?"":e,onChange:o,label:t,presets:a,fallback:(f?l:n)??void 0},u.current)]})})}function yt({label:e,icon:o,changed:t,hint:r,onReset:a,resetTo:n,children:s,...i}){return ft(H9,{label:e,icon:o,htmlFor:i.id,changed:t,hint:r,action:a?ft(M9,{words:ce()?.panel,label:e,changed:!!t,detail:n,onReset:a}):void 0,children:s?Vb("div",{className:"es-width-stack",children:[dR({...i,label:e}),s]}):dR({...i,label:e})})}function qc({label:e,icon:o,value:t,inherited:r,resetTo:a,onChange:n,onReset:s,hint:i,choices:l,children:d}){let f=!!t;return ft(yt,{label:e,icon:o,value:t,inherited:f?void 0:r,onChange:n,changed:f,onReset:s,resetTo:a,hint:i,choices:l,children:d})}import{keptByRow as mw}from"efficient-easel/screen/lib/document/style-fields";import{jsx as z9}from"react/jsx-runtime";import{useEffect as G9,useState as j9}from"react";import{clearRangeOf as K9,markSelection as V9,useCaretEdit as Y9}from"efficient-easel/copy";import{TextToolbar as q9}from"efficient-shell/ui";function X9(e,o,t){return V9(e,o,t,lE)}function fR(e,o){let t=K9(o,e.length),r=dE(e,t.start,t.end);return r.text===e?null:r}function Z9(e){let[o,t]=j9(null);return G9(()=>{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 J9({target:e,value:o,onChange:t,disabled:r=!1,label:a="Formatting"}){let n=Y9({target:e,onChange:t}),[s,i]=Z9(e),l=p=>n(m=>{let h=X9(o,p,m);return i({start:h.selectionStart,end:h.selectionEnd}),h}),d=iE(),f={};if(s)for(let p of d)f[p.style]=cE(o,s.start,s.end,p.style);let u=r?null:fR(o,s);return z9(q9,{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=fR(o,m)??{text:o,selectionStart:m?.start??0,selectionEnd:m?.end??0};return i({start:h.selectionStart,end:h.selectionEnd}),h})}:void 0})}var Yb=J9;import{deviceField as zo}from"efficient-easel/screen/lib/document/device-fields";import{NO_CONTROL_FIELD as iee,NoControlMark as lee,noControlField as fB}from"efficient-easel/screen/lib/document/panel-no-control-mark";var qb="__ownBox";function pR(e){return!!e&&typeof e=="object"&&e[qb]===!0}var Xb="sfPanelOnly";function Ui(e){return!!e&&typeof e=="object"&&e[Xb]===!0}function rm(e,o,t){return typeof e=="number"?e:typeof o=="number"?o:t}var am=void 0;import{phoneKey as en,tabletKey as bw,viewKeyAt as Sw}from"efficient-easel/draw";import{jsx as nm,Fragment as Q9,jsxs as eq}from"react/jsx-runtime";import{useRef as oq}from"react";import{SettingsDefaultReset as tq}from"efficient-easel/panel";import{effectTiles as rq}from"efficient-easel/screen/lib/document/effect-tiles";import{VIEW_KEY_ACCESS as uR,describedAs as aq,onDesktopWords as nq,phoneTwinFields as mR}from"efficient-easel/screen/lib/document/box-fields";function sq({row:e,read:o,...t}){let r=o(So(),t.followsView??"desktop");return e({...t,follows:r})}function ma(e,o){return Object.fromEntries(It.map(t=>{let r=ke(e,t);return[r,mR(e,o(t),uR)[r]]}))}function sm(e,o,t){let r=o.render,a={...o,render:n=>nm(sq,{...n,row:r,read:t})};return ma(e,n=>n==="desktop"?o:a)}function iq({spec:e,...o}){let t=e.values.includes(o.value),r="follows"in o,a=e.read(So(),o.followsView??"desktop"),n=t?o.value:a,s=oq(null),{preview:i}=e,l=rq({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 eq(Q9,{children:[i?nm("div",{ref:s,style:{display:"contents"},children:d}):d,r&&t&&nm(tq,{words:ce()?.panel,label:c(e.tileWord),changed:!0,detail:nq(f=>c(f),c(e.word(a)),o.followsView),onReset:()=>o.onChange(void 0)})]})}function im(e,o){let t=aq({type:"custom",render:r=>nm(iq,{...r,spec:o})},{type:"select",label:o.label,options:o.values.map(r=>({value:r,label:o.word(r)}))});return mR(e,t,uR)}import{jsx as Jb,Fragment as dq}from"react/jsx-runtime";import{createContext as fq,useContext as pq}from"react";var lm={ProductGrid:{source:{keep:["slug"]}},GalleryItem:{product:{keep:["code","finish"]}},FeaturedCover:{source:{keep:["slug"]}},LongRead:{source:{keep:["slug"]}}},cm={Events:["posts"],SubscribeBlogs:["posts"]};var lq=["anchor"],cq=/^href$|Href$|^url$|Url$|^link$|^mailto$|^tel$/;function Yn(e){return lq.includes(e)||cq.test(e)}var Zb={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"}}};Zb.ContactLocations={"locations[].lat":{verb:"pii"},"locations[].lng":{verb:"pii"},"locations[].mapsUrl":{verb:"pii"},"locations[].geocode":{verb:"pii"}};var h1e=Object.fromEntries(Object.entries(lm).map(([e,o])=>[e,Object.keys(o)])),x1e=Object.fromEntries(Object.entries(cm).map(([e,o])=>[e,[...o]]));import{NoControlMark as uq}from"efficient-easel/screen/lib/document/panel-no-control-mark";var hR=fq(!1);function xR({children:e}){return Jb(hR.Provider,{value:!0,children:e})}function mq(){return pq(hR)}function gR({name:e,children:o}){return!mq()||!e||!hq(e)||Yn(e)?Jb(dq,{children:o}):Jb(uq,{})}function hq(e){return/^[A-Za-z0-9_$]+$/u.test(e)}var Qb="off",yR="none",eS=[{label:"None",value:"off"},{label:"1, 2, 3",value:"plain"},{label:"01, 02, 03",value:"padded"},{label:"N\xB001, N\xB002",value:"numero"}],bR=[{label:"None",value:"none"},{label:"Hairline",value:"hairline"}];function v1e(e){return xo(eS,Qb,e)}var IR="sf-card-index",Xc="sf-card-index",k1e="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",xq={plain:`counter(${Xc})`,padded:`counter(${Xc}, decimal-leading-zero)`,numero:`"N\xB0" counter(${Xc}, decimal-leading-zero)`};function T1e(e,o){return o==="off"?"":`.${e}{counter-reset:${Xc}}.${e} .${IR}{counter-increment:${Xc}}.${e} .${IR}::before{content:${xq[o]}}`}function P1e(e){return e==="hairline"?"border border-line hover:border-accent":""}var SR=[{value:"1",label:"1st rendering"},{value:"2",label:"2nd rendering"},{value:"3",label:"3rd rendering"},{value:"4",label:"4th rendering"},{value:"5",label:"5th rendering"}];import{SCALAR_TEXT_CONTROLS as cee}from"efficient-easel/draw";import{jsx as bt}from"react/jsx-runtime";import{SettingsDefaultReset as vq,SettingsField as oS}from"efficient-easel/panel";import{useSelectedHost as kq}from"efficient-easel/easel";import{FOCAL_DEFAULT as Tq}from"efficient-shell/format";import{ImageIcon as tS,PlayIcon as CR}from"efficient-easel/icons";import{ImageFocusPoint as Pq,MediaUploadField as Eq}from"efficient-shell/ui";import{useContext as _q}from"react";import{ScreenDocumentContext as Oq}from"efficient-easel/screen/components/ScreenDocumentContext";import{tabletKey as Aq,viewKeyAt as Rq}from"efficient-easel/draw";import{usePreviewDevice as Lq}from"efficient-easel/draw/client";import{formatFocal as gq,parseFocal as Iq}from"efficient-shell/format";var yq="sf-focus-phone",bq="--sf-focus-phone",Sq="sf-focus-tablet",wq="--sf-focus-tablet",Zc=e=>{if(typeof e!="string"||!/^\s*-?\d+(\.\d+)?%\s+-?\d+(\.\d+)?%\s*$/.test(e))return null;let{x:o,y:t}=Iq(e);return gq(o,t)};function wR(e,o){return Vn(Cq,null,Zc(o),Zc(e))}var Cq={tabletClass:Sq,tabletVar:wq,phoneClass:yq,phoneVar:bq};import{shownTier as rS}from"efficient-easel/screen/lib/document/device-fields";import{onDesktopWords as Fq}from"efficient-easel/screen/lib/document/box-fields";import{requestMediaPick as Bq}from"efficient-easel/screen/lib/media-picker";import{useEaselHost as Nq}from"efficient-easel/screen/lib/host";import{useEaselSession as Dq}from"efficient-easel/screen/lib/session-context";function Mq(e,o,t,r=!0){let a=rS(t),n=typeof e[o]=="string"&&e[o]?String(e[o]):Tq;if(a==="desktop")return{ownView:!1,followed:n,followsView:"desktop",own:void 0,focus:n,key:o};let s=Rq(o,a),i=Zc(e[s])??void 0,l=a==="mobile"&&r?Zc(e[Aq(o)])??void 0:void 0,d=l??n;return{ownView:!0,followed:d,followsView:l?"tablet":"desktop",own:i,focus:i??d,key:s}}function Hq(e,o,t){let r=kq();if(!o||!r)return null;let a=r.values??{};if(t&&!t(a,rS(e)))return null;let n=Mq(a,o,e,t?t(a,"tablet"):!0),s=r.onChange;return{...n,set:i=>s(n.key,i),clear:()=>s(n.key,am)}}function vR({value:e,onChange:o,label:t,accept:r,placeholder:a,focusKey:n,focusWhen:s,frameKey:i,fieldKey:l}){let d=Nq(),f=Dq(),u=c(t),p=Lq(),m=r.startsWith("video"),h=Hq(p,m?void 0:n,s),I=!!n&&rS(p)!=="desktop",w=_q(Oq),S=mr(),C=i&&l?{video:l,frame:i}:null,b=A=>Bq(d,{accept:r,title:u,...A?{file:A}:{}}).then(D=>!D||!C?D?.url??null:(S({[C.video]:D.url,[C.frame]:D.posterUrl??""}),null)),y=C?A=>A?o(A):S({[C.video]:"",[C.frame]:""}):o,v=dt(e);if(I&&(!h||!v))return null;if(w&&!w.capabilities.mediaEditing)return bt(oS,{label:u,icon:m?bt(CR,{}):bt(tS,{}),children:bt("div",{className:"sf-image-slot-inert",children:m?c("Templates don\u2019t store videos \u2014 this slot stays a placeholder. Each website picks its own after it\u2019s created."):c("Templates don\u2019t store images \u2014 this slot stays a placeholder. Each website picks its own after it\u2019s created.")})});let L=h?.ownView&&v?bt(vq,{words:ce()?.panel,label:c("Image focus"),changed:!!h.own,detail:Fq(A=>c(A),h.followed,h.followsView),onReset:h.clear}):void 0;return I&&h?bt(oS,{label:u,icon:bt(tS,{}),action:L,children:bt("div",{style:{flex:"1 1 auto",minWidth:0},children:bt(Pq,{value:h.focus,onChange:h.set,label:c("Image focus"),image:v,hint:null})})}):bt(oS,{label:u,icon:m?bt(CR,{}):bt(tS,{}),children:bt("div",{style:{flex:"1 1 auto",minWidth:0},children:bt(Eq,{value:v,onChange:y,onPick:b,accept:m?"video/*":"image/*",kind:m?"video":"image",placeholder:a===void 0?void 0:c(a),maxSizeBytes:Ge(f).media.maxUploadBytes,...h?{focus:h.focus,onFocusChange:h.set}:{}})})})}import{jsx as kR}from"react/jsx-runtime";import{useId as Wq}from"react";import{FieldSelect as $q}from"efficient-easel/fields";import{SettingsField as Uq}from"efficient-easel/panel";function zq(e){return e.map(({value:o,label:t,note:r})=>({value:o,label:t,...r?{meta:r}:{}}))}function TR({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 kR(Uq,{label:c(e),labelId:l,icon:n,hint:s,children:kR($q,{id:d,multiple:!0,value:f,options:zq(o),onChange:r,placeholder:a===void 0?c("None"):c(a),ariaLabelledBy:`${l} ${d}`,inline:!0})})}import{jsx as ko,jsxs as Xn,Fragment as IX}from"react/jsx-runtime";import{useCallback as HR,useContext as yX,useId as UR,useRef as WR,useState as $R}from"react";import{ThemeIcon as bX}from"efficient-easel/icons";import{Button as SX,useClickOutside as wX}from"efficient-shell/ui";import{SettingsField as CX}from"efficient-easel/panel";import{ScreenDocumentContext as vX}from"efficient-easel/screen/components/ScreenDocumentContext";import{jsx as he,jsxs as qa,Fragment as Jq}from"react/jsx-runtime";import{parseHexColor as Qq}from"efficient-shell/format";import{Button as nS,IconButton as eX,Tooltip as oX}from"efficient-shell/ui";import{jsx as Ya,jsxs as Gq}from"react/jsx-runtime";import{AccentIcon as jq}from"efficient-easel/icons";import{Button as Kq,Tooltip as Vq}from"efficient-shell/ui";function aS(e){return gt(e).background}function Yq(e){let o=Ma(e.accent,aS(e));return o===null?null:{ratio:o,grade:wi(o)}}function qq(e){let o=aS(e),t=Ma(e.accent,o);return t===null?[]:P_(e.accent).filter(r=>{let a=Ma(r,o);return a!==null&&a>t&&wi(a)==="good"})}var Xq={good:"Easy to read","large-only":Si["large-only"],hard:Si.hard};function PR({value:e,onChange:o}){let t=Yq(e),r=t?.grade,a=t&&t.grade!=="good"?qq(e):[];return Ya(yt,{label:c("Main color"),icon:Ya(jq,{}),hint:t?c(Xq[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:Gq("div",{className:"sf-readability",children:[Ya("p",{className:"sf-readability-advice",children:Zq(r,!0)}),Ya("div",{className:"sf-readability-suggestions",children:a.map(n=>{let s=Ma(n,aS(e));return Ya(Vq,{content:c("Use {colour}",{colour:n.toUpperCase()}),children:Ya(Kq,{variant:"secondary",className:"sf-readability-suggestion",leftIcon:Ya("span",{className:"sf-readability-chip",style:{background:n},"aria-hidden":!0}),onClick:()=>o({...e,accent:n}),children:s?`${s.toFixed(1)}:1`:n.toUpperCase()})},n)})})]})}):null})}function Zq(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 tX,ChevronDownIcon as _R,ChevronUpIcon as rX,GroundIcon as aX,LayoutIcon as nX,SquareIcon as sX,TextSmallIcon as iX,TypeIcon as ER}from"efficient-easel/icons";var Jc=e=>c("Theme {n}",{n:e+1});function OR({colors:e}){let o=gt(e),t=Pc(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:Dy(e,o.accent)},children:c("button")}),he("span",{className:"sf-theme-mini",style:{background:o.surface,borderColor:o.line},children:c("card")})]})]})}var sS={"Text color":he(ER,{}),"Label color":he(iX,{}),Background:he(aX,{}),"Panels & cards":he(nX,{}),Borders:he(sX,{}),"Button color":he(tX,{}),"Button text color":he(ER,{})};function lX({label:e,colorKey:o,value:t,onChange:r,idPrefix:a="sf-theme-ink"}){let n=`${a}-${o}`;return he(yt,{label:c(e),icon:sS[e],id:n,value:t,onChange:s=>r(o,s)})}function cX({value:e,accent:o,onChange:t,idPrefix:r="sf-theme-ink"}){let a=`${r}-button`,n=e!==void 0&&Qq(e)===e.toLowerCase(),s=n?e:o;return he(yt,{label:c("Button color"),icon:sS["Button color"],id:a,value:s,caption:n?s:c("Main"),onChange:t})}function dX({colors:e,accent:o,onChange:t,idPrefix:r="sf-theme-ink"}){let a=`${r}-button-ink`,n=A_(e),s=Dy(e,o),i=Pc(e)??o,l=wi(Ma(s,i)??0);return he(yt,{label:c("Button text color"),icon:sS["Button text color"],hint:n&&l!=="good"?c("{grade} on the button",{grade:c(Si[l])}):void 0,id:a,value:s,caption:n?s:c("Auto"),onChange:t})}var fX=[{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 iS({colors:e,onChange:o,idPrefix:t}){let r=gt(e);return he(Jq,{children:fX.map(a=>"colour"in a?he(PR,{value:e,onChange:o},"colour"):"moduleBreak"in a?he("div",{className:"sf-theme-module-break","aria-hidden":"true"},"module-break"):"button"in a?he(cX,{value:e.button,accent:r.accent,onChange:n=>o({...e,button:n}),idPrefix:t},"button"):"buttonInk"in a?he(dX,{colors:e,accent:r.accent,onChange:n=>o({...e,buttonInk:n}),idPrefix:t},"buttonInk"):he(lX,{label:a.label,colorKey:a.key,value:r[a.key],onChange:(n,s)=>o({...e,[n]:s}),idPrefix:t},a.key))})}function dm({index:e,colors:o,selected:t,role:r="radio",open:a,editable:n=!0,onPick:s,onEdit:i,onChangeColors:l}){let d=gt(o),f=Jc(e),u=e<Ny.length&&!o.brandInk?Ny[e]:null,p=wi(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(OR,{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(Si[p])}),n&&i&&h&&he("span",{className:"sf-theme-edit",children:he(oX,{content:a?c("Collapse"):c("Edit colors"),children:he(eX,{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(rX,{size:14}):he(_R,{size:14})})})}),n&&i&&!h&&he(nS,{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(iS,{colors:o,onChange:I=>l?.(I)}),u&&he(nS,{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 AR({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(OR,{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(nS,{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(_R,{size:12,className:"sf-multi-caret","aria-hidden":"true"})})]})]})}import{useCallback as uS,useEffect as NR,useRef as mm}from"react";import{currentEaselSession as mX}from"efficient-easel/screen/lib/session";import{useEaselSession as hX}from"efficient-easel/screen/lib/session-context";import{useSyncExternalStore as pX}from"react";var LR,lS=null,qn=null,fm=0,cS=new Set;function dS(e){LR=e;for(let o of cS)o()}function fS(e){lS=e,fm+=1,qn&&clearTimeout(qn),qn=null,dS(void 0)}function pm(e){fm+=1,dS(e)}function ha(e=250){lS&&(qn&&clearTimeout(qn),qn=setTimeout(()=>{qn=null;let o=lS;if(!o)return;let t=++fm;o().then(r=>{t===fm&&dS(r)}).catch(()=>{})},e))}function RR(){return LR}function uX(e){return cS.add(e),()=>{cS.delete(e)}}function um(){return pX(uX,RR,RR)}var pS=new Set;function FR(e){return pS.add(e),()=>{pS.delete(e)}}async function BR(){let e=(await Promise.allSettled([...pS].map(async o=>o()))).find(o=>o.status==="rejected");if(e)throw e.reason}import{WebsiteBackendError as xX}from"efficient-easel/screen/lib/backend-error";function DR(e=mX()){return(o,t,r)=>{let a=Ge(e).theme;return a?a.update(o,r?{siteId:r}:void 0):Promise.reject(new xX("invalid","This backend stores no site theme."))}}function MR(e){return e.themeFromDocument?{status:"skipped",reason:"template"}:e.token?null:{status:"skipped",reason:"no-token"}}async function gX(e,o=DR()){let{themeFromDocument:t,token:r,siteId:a,patch:n}=e,s=MR({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 zi({themeFromDocument:e,tokenRef:o,siteId:t,onResult:r}){let a=mm(null),n=mm({}),s=hX(),i=mm(r);i.current=r;let l=mm(null),d=uS(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=uS(async()=>{a.current&&(clearTimeout(a.current),a.current=null);let p=n.current;n.current={};let m=await gX({themeFromDocument:e,token:o?.current,siteId:t,patch:p},DR(s));return d(m),m.status==="saved"&&ha(),m.status==="failed"&&(n.current={...p,...n.current}),m},[e,o,t,d,s]),u=uS((p,m=!1)=>{let h=MR({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 NR(()=>()=>{f()},[f]),NR(()=>FR(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 mS="Follow the page",zR="Follow the slideshow",kX=e=>c("Editing {name} changes it everywhere.",{name:e});function TX({colors:e}){if(!e)return ko("span",{className:"sf-secttheme-chip sf-secttheme-chip--none","aria-hidden":"true"});let o=gt(e);return Xn("span",{className:"sf-secttheme-chip","aria-hidden":"true",children:[ko("i",{style:{background:o.background}}),ko("i",{className:"sf-secttheme-chip-accent",style:{background:o.accent}})]})}function PX({themes:e,value:o,onPick:t,onEdit:r,menuId:a,followLabel:n}){return Xn("div",{className:"sf-multi-menu sf-secttheme-menu",id:a,role:"listbox",children:[n!==void 0&&Xn(IX,{children:[Xn("button",{type:"button",role:"option","aria-selected":o===null,className:`sf-secttheme-item${o===null?" is-active":""}`,onClick:()=>t(Hr),children:[ko(TX,{}),ko("span",{className:"sf-secttheme-name",children:c(n)})]}),ko("div",{className:"sf-secttheme-sep",role:"presentation"})]}),o!==null&&e[o]&&ko("p",{className:"sf-secttheme-oncard",role:"presentation",children:c("{name} is on this section",{name:Jc(o)})}),e.map((s,i)=>i===o?null:ko(dm,{role:"option",index:i,colors:s,selected:!1,onPick:()=>t(i),onEdit:()=>r(i)},i))]})}function EX({index:e,colors:o,onChange:t,onDone:r}){let a=Jc(e),n=UR();return Xn("div",{className:"sf-secttheme-sheet",children:[Xn("div",{className:"sf-secttheme-sheet-head",children:[ko("span",{children:a}),ko(SX,{variant:"secondary",className:"sf-secttheme-done",onClick:r,children:c("Done")})]}),ko("div",{className:"sf-secttheme-rows",children:ko(iS,{colors:o,onChange:t,idPrefix:n})}),ko("p",{className:"sf-secttheme-warn",children:kX(a)})]})}function GR({value:e,onChange:o,followLabel:t,hint:r}){let{theme:a,setTheme:n}=fe(),s=vo(a),i=yX(vX),l=i?.tokenRef,d=i?.siteId??null,f=!i?.capabilities?.hasSiteTheme,{persist:u,flush:p}=zi({themeFromDocument:f,tokenRef:l,siteId:d}),m=vo(s),h=m.themes,I=Wr(e),w=I!==null?h[I]:void 0,S=w??(h.length?bi(m):void 0),[C,b]=$R(!1),[y,v]=$R(null),L=WR(null),A=WR(null),D=UR(),T=HR(()=>{b(!1),v(null)},[]),F=HR(()=>{!C&&y===null||(p(),T())},[C,y,T,p]);wX(L,F);let k=P=>{o(P),T()},_=P=>{if(y===null)return;let O=h.map((G,Z)=>Z===y?P:G),W={...m,themes:O};n(W),u({selected_preset:W.selected,theme_presets:W.themes})};return Xn("div",{className:"sf-secttheme",ref:L,children:[ko(CX,{label:c("Theme"),icon:ko(bX,{}),labelId:`${D}-label`,hint:r,children:ko(AR,{colors:S,onEdit:I!==null?()=>{v(I),b(!1)}:void 0,name:w?Jc(I):c(t??mS),nameId:`${D}-value`,labelId:`${D}-label`,open:C,menuId:D,buttonRef:A,onClick:()=>{v(null),b(P=>!P)},onKeyDown:P=>{P.key==="Escape"&&(C||y!==null)&&(P.preventDefault(),T())}})}),C&&y===null&&ko("div",{onKeyDown:P=>{P.key==="Escape"&&(P.preventDefault(),T(),A.current?.focus())},children:ko(PX,{themes:h,value:I,onPick:k,onEdit:P=>{v(P),b(!1)},menuId:D,followLabel:t})}),y!==null&&h[y]&&ko(EX,{index:y,colors:h[y],onChange:_,onDone:()=>{p(),T(),A.current?.focus()}})]})}import{jsx as jR}from"react/jsx-runtime";import{useId as _X}from"react";import{FieldSelect as OX}from"efficient-easel/fields";import{SettingsField as AX}from"efficient-easel/panel";function RX(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 JAe({label:e,options:o,fallback:t,value:r,onChange:a,placeholder:n,bare:s=!1,icon:i}){let l=_X(),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=jR(OX,{id:f,value:p,options:RX(o),onChange:a,placeholder:h,searchPlaceholder:h,...s?{ariaLabel:m}:{ariaLabelledBy:`${d} ${f}`},searchable:!0,groupCount:!0,inline:!0});return s?I:jR(AX,{label:m,labelId:d,icon:i,children:I})}import{jsx as Jn,jsxs as fZ}from"react/jsx-runtime";import{SettingsField as mL}from"efficient-easel/panel";import{LinkIcon as pZ}from"efficient-easel/icons";import{LinkPicker as uZ,TextLinkField as mZ}from"efficient-shell/ui";import{useEffect as uL,useMemo as ym,useRef as hZ,useState as Im}from"react";import{currentEaselSession as LX}from"efficient-easel/screen/lib/session";function KR(){return LX().auth.token}import{currentEaselSession as xZ}from"efficient-easel/screen/lib/session";import{useScreenDocument as gZ}from"efficient-easel/screen/components/ScreenDocumentContext";var FX=()=>({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 VR(e,o,t){if(!e)return"page";if(OA(e))return"popup";if(e.startsWith("/journal/"))return"blog";if(LA(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 hS(e,o){let t=FX(),r=e.pages.map(f=>({value:jc(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:RA(...f.docs).map(u=>({value:zu(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:AA(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:_A(u.slug),label:u.title||u.slug})),placeholder:t.choosePopup};case"custom":return{type:"text"}}},l=EA(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=>VR(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=>VR(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 IZ}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 YR(e,o){return q(e)??o}function xa(e,o){return typeof e=="boolean"?e:o}function hm(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 XR=["delay","scroll","exit"],ZR=["all","chosen","except"],JR=["visit","days","never","once"],BX=["all","desktop","phone"],NX=["stop","continue"],QR={min:0,max:60},eL={min:10,max:90},oL={min:1,max:90},hr={autoOpen:!1,trigger:"delay",autoOpenDelaySec:15,scrollPercent:50,showOn:"all",showOnPages:[],devices:"all",hideAfter:"days",hideDays:7,afterSubmit:"stop",startDate:null,endDate:null};function At(e,o,t){return typeof o=="string"&&e.includes(o)?o:t}function Gi(e,o,t){let r=YR(e,t);return Math.min(o.max,Math.max(o.min,Math.round(r)))}function DX(e){return typeof e.hideAfter=="string"?At(JR,e.hideAfter,hr.hideAfter):e.oncePerSession===!0?"visit":e.oncePerSession===!1?"never":hr.hideAfter}function MX(e){return Array.isArray(e)?e.map(o=>typeof o=="string"?o.trim():"").filter(Boolean).map(o=>o.startsWith("/")?o:`/${o}`):[]}function qR(e){if(typeof e!="string")return null;let o=e.trim();return/^\d{4}-\d{2}-\d{2}$/.test(o)?o:null}function tL(e){let o=e??{},t=hr;return{autoOpen:xa(o.autoOpen,t.autoOpen),trigger:At(XR,o.trigger,t.trigger),autoOpenDelaySec:Gi(o.autoOpenDelaySec,QR,t.autoOpenDelaySec),scrollPercent:Gi(o.scrollPercent,eL,t.scrollPercent),showOn:At(ZR,o.showOn,t.showOn),showOnPages:MX(o.showOnPages),devices:At(BX,o.devices,t.devices),hideAfter:DX(o),hideDays:Gi(o.hideDays,oL,t.hideDays),afterSubmit:At(NX,o.afterSubmit,t.afterSubmit),startDate:qR(o.startDate),endDate:qR(o.endDate)}}import{parseHexColor as HX}from"efficient-shell/format";var xr="#000000";var xS="popup",WX=nO,$X=["auto","full"],UX=["inside","outside","none"],zX={min:240,max:1440},GX={min:0,max:100},Qc={placement:"center",fullWidth:!1,width:720,height:"auto",tintColor:xr,tintOpacity:60,outsideClick:!0,closeButton:"inside"};function jX(e,o){let t=typeof e=="string"?e.trim():"";return t&&HX(t)===t.toLowerCase()?t:o}function gS(e,o=Qc){let t=e??{},r=o;return{placement:At(WX,t.placement,r.placement),fullWidth:xa(t.fullWidth,r.fullWidth),width:Gi(t.width,zX,r.width),height:At($X,t.height,r.height),tintColor:jX(t.tintColor,r.tintColor),tintOpacity:Gi(t.tintOpacity,GX,r.tintOpacity),outsideClick:xa(t.outsideClick,r.outsideClick),closeButton:At(UX,t.closeButton,r.closeButton)}}var rL="cart-drawer",bRe="cart-drawer",KX={kickerBadge:"",kickerText:"Your order",titleLead:"Your",titleAccent:"cart.",subtitleEmpty:"Empty for now.",subtitleOne:"One set in your cart.",subtitleMany:"{count} sets in your cart.",leadTimeValue:"",shipsToFallback:"",promises:[],emptyKicker:"No wheels yet",emptyBody:"Your cart is empty. Pick a wheel to get started."};function SRe(e,o){return o===0?e.subtitleEmpty:o===1?e.subtitleOne:e.subtitleMany.replace("{count}",String(o))}function wRe(e){let o=e??{},t=KX;return{kickerBadge:Ho(o.kickerBadge,t.kickerBadge),kickerText:Ho(o.kickerText,t.kickerText),titleLead:Ho(o.titleLead,t.titleLead),titleAccent:Ho(o.titleAccent,t.titleAccent),subtitleEmpty:Ho(o.subtitleEmpty,t.subtitleEmpty),subtitleOne:Ho(o.subtitleOne,t.subtitleOne),subtitleMany:Ho(o.subtitleMany,t.subtitleMany),leadTimeValue:Ho(o.leadTimeValue,t.leadTimeValue),shipsToFallback:Ho(o.shipsToFallback,t.shipsToFallback),promises:hm(o.promises,t.promises),emptyKicker:Ho(o.emptyKicker,t.emptyKicker),emptyBody:Ho(o.emptyBody,t.emptyBody)}}var VX=["right","left"],YX={...Qc,width:520,tintOpacity:68};function CRe(e){let o=e??{};return{...gS(o,YX),placement:At(VX,o.placement,"right"),height:"full",fullWidth:!1,autoOpen:xa(o.autoOpen,!0)}}var nL="consent-banner",PRe="consent-banner";var qX=[{value:"bar",label:"Bar"},{value:"card",label:"Card"}],ERe="Layout",aL={layout:"bar"},XX=e=>qX.some(o=>o.value===e);function _Re(e){let o=Ho((e??{}).layout,aL.layout);return{layout:XX(o)?o:aL.layout}}var ORe={...Qc,placement:"bottom-center",fullWidth:!0,width:440,tintOpacity:0,outsideClick:!1,closeButton:"none"};var ZX="consentWords",JX=["eyebrow","notice","accept","reject","choose"];function IS(e){let o=(e??{})[ZX];return typeof o=="string"&&JX.includes(o)?o:null}function yS(e){let o=e?.props;return o?IS(o)!==null?!0:Object.values(o).some(t=>Array.isArray(t)&&t.some(r=>r&&typeof r=="object"&&"props"in r&&yS(r))):!1}var QX=["meta","eyebrow","heading","body","statName","statValue","formEyebrow","formHeading","formIntro","fieldLabel","option","finePrint","dismiss","doneHeading","doneBody"],LRe={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"},eZ={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"},FRe={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 sL(e){let o={};for(let t of QX){let r=na(e[eZ[t]]);r&&(o[t]=r)}return o}var iL={heading:"Join our email list",placeholder:"Email address",buttonLabel:"Subscribe"},oZ={lead:"We accept"},gm={...oZ,methods:[],size:"sm",align:"start",dataSource:yp},gr="site-footer";var DRe=gr,MRe={desktop:!0,tablet:!0,mobile:!0},HRe={desktop:!1,tablet:!1,mobile:!1},bS=1,lL=6,WRe=Array.from({length:lL-bS+1},(e,o)=>bS+o),xm={desktop:6,tablet:3,mobile:2},tZ={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}},Zn=e=>Math.min(Math.max(Math.round(e),bS),lL);function $Re(e){if(typeof e=="number")return tZ[Zn(e)]??{desktop:Zn(e),tablet:Zn(e),mobile:Zn(e)};if(e&&typeof e=="object"){let o=e;return{desktop:Zn(o.desktop??xm.desktop),tablet:Zn(o.tablet??xm.tablet),mobile:Zn(o.mobile??xm.mobile)}}return{...xm}}var SS="subscribe-popup",qRe="subscribe-popup",rZ=[SS,gr,rL,nL];function dL(e){return rZ.includes(e)}var aZ=["right","left"],nZ={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:hr.autoOpen,autoOpenDelaySec:hr.autoOpenDelaySec,formSlug:"",trigger:hr.trigger,scrollPercent:hr.scrollPercent,showOn:hr.showOn,showOnPages:[],hideAfter:hr.hideAfter,hideDays:hr.hideDays,formSide:"right",valuePanelOnPhone:!1,sectionAccent:void 0,sectionCorners:void 0,sectionCornerSides:void 0,textStyles:{}},lo=Ho,sZ=xa,fL=hm;function cL(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 iZ(e,o){return Array.isArray(e)?fL(e,[]):o}function lZ(e,o){return Array.isArray(e)?e.map(t=>{let r=t??{};return{label:lo(r.label,""),value:lo(r.value,"")}}).filter(t=>t.label||t.value):o}function ZRe(e){let o=e??{},t=nZ,r=tL(o);return{metaLabel:lo(o.metaLabel,t.metaLabel),issueLabel:cL(o.issueLabel,t.issueLabel),issueNumber:cL(o.issueNumber,t.issueNumber),kicker:lo(o.kicker,t.kicker),heading:lo(o.heading,t.heading),deck:lo(o.deck,t.deck),stats:lZ(o.stats,t.stats),formLabel:lo(o.formLabel,t.formLabel),formHeading:lo(o.formHeading,t.formHeading),formIntro:lo(o.formIntro,t.formIntro),firstNameLabel:lo(o.firstNameLabel,t.firstNameLabel),firstNamePlaceholder:lo(o.firstNamePlaceholder,t.firstNamePlaceholder),emailLabel:lo(o.emailLabel,t.emailLabel),emailPlaceholder:lo(o.emailPlaceholder,t.emailPlaceholder),interestsLabel:lo(o.interestsLabel,t.interestsLabel),interests:fL(o.interests,t.interests),frequencyLabel:lo(o.frequencyLabel,t.frequencyLabel),frequencies:iZ(o.frequencies,t.frequencies),submitText:lo(o.submitText,t.submitText),finePrint:lo(o.finePrint,t.finePrint),dismissText:lo(o.dismissText,t.dismissText),emailInvalidText:lo(o.emailInvalidText,t.emailInvalidText),submitErrorText:lo(o.submitErrorText,t.submitErrorText),successHeading:lo(o.successHeading,t.successHeading),successBody:lo(o.successBody,t.successBody),keepBrowsingText:lo(o.keepBrowsingText,t.keepBrowsingText),formSlug:typeof o.formSlug=="string"?o.formSlug.trim():t.formSlug,autoOpen:r.autoOpen,autoOpenDelaySec:r.autoOpenDelaySec,trigger:r.trigger,scrollPercent:r.scrollPercent,showOn:r.showOn,showOnPages:r.showOnPages,hideAfter:r.hideAfter,hideDays:r.hideDays,formSide:At(aZ,o.formSide,t.formSide),valuePanelOnPhone:sZ(o.valuePanelOnPhone,t.valuePanelOnPhone),sectionAccent:o.sectionAccent,sectionCorners:o.sectionCorners,sectionCornerSides:o.sectionCornerSides,textStyles:sL(o)}}function cZ(e,o=Math.random){for(;;){let t=`popup-${Math.floor(o()*2176782336).toString(36).padStart(6,"0")}`;if(!e.has(t))return t}}function dZ(e){return{root:{props:{title:e,kind:xS}},content:[],zones:{}}}function pL(e,o,t){return{slug:cZ(o,t),title:e,kind:Cb,layout:dZ(e)}}function ed(e){return e?.root?.props?.kind===xS}function hL(e){let o=new Map;return(t="")=>{let r=KR(),a=o.get(t);if(!a||a.token===null&&r!==null){let n=r||!xZ().usesBridgedToken?e(r??"",t).catch(()=>[]):Promise.resolve([]);return o.set(t,{promise:n,token:r}),n}return a.promise}}var yZ=hL(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}))}),bZ=hL(async(e,o)=>await Ge().blog?.posts(o?{siteId:o}:void 0)??[]);function SZ({value:e,onChange:o,label:t="Link",data:r,filters:a}){let n=ym(()=>hS(r,a),[r,a]),s=c(t);return Jn(mL,{label:s,icon:Jn(pZ,{}),children:Jn(uZ,{value:e,onChange:i=>o(i),kinds:n.kinds,rules:n.rules,filtersFor:n.filtersFor,label:s})})}function xL(){let{siteId:e,capabilities:o}=gZ(),{offersCommerce:t,hasBlog:r}=o,[a,n]=Im([]),[s,i]=Im([]),[l,d]=Im([]),[f,u]=Im(null),p=IZ().chrome,m=p?.products?.list,h=p?.linkFilters,I=h?void 0:p?.linkRow,w=hZ(!0);uL(()=>(w.current=!0,()=>{w.current=!1}),[]),uL(()=>{let b=!0;return yZ(e??void 0).then(y=>b&&w.current&&n(y)),r&&bZ(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=ym(()=>({pages:a.filter(b=>!dL(b.slug)&&!ed(b.layout)).map(b=>({slug:b.slug,title:b.label,docs:[b.layout]})),popups:a.filter(b=>b.slug===SS||ed(b.layout)).map(b=>({slug:b.slug,title:b.label})),posts:r?s.map(b=>({slug:b.slug,title:b.title})):[],products:t?l.map(b=>({href:b.href,name:b.name})):[],offers:{offersCommerce:t,offersService:r}}),[a,s,l,t,r]),C=ym(()=>f?f(S.pages):null,[f,S]);return{data:S,filters:C,pages:a,offersCommerce:t,HostLinkRow:I}}function gLe({label:e,icon:o,text:t,onTextChange:r,link:a,onLinkChange:n}){let{data:s,filters:i}=xL(),l=ym(()=>hS(s,i),[s,i]),d=c(e);return Jn(mL,{label:d,icon:o,children:Jn(mZ,{label:d,text:t,onTextChange:r,link:a,onLinkChange:f=>n(f),kinds:l.kinds,rules:l.rules,filtersFor:l.filtersFor})})}function gL({value:e,onChange:o,label:t="Link"}){let r=typeof e=="string"?e:"",{data:a,filters:n,pages:s,offersCommerce:i,HostLinkRow:l}=xL(),d=a.pages.map(u=>jc(u.slug)),f=i&&l&&(r==="/"||d.includes(r))?l:void 0;return fZ("div",{children:[Jn(SZ,{value:r,onChange:o,label:t,data:a,filters:n}),f&&Jn(f,{value:r,onChange:o,pages:s})]})}import{UiIcon as GF}from"efficient-easel/draw/client";import{phoneKey as FL,resolveViewValue as FZ,tabletKey as BL,viewKeyAt as Qn}from"efficient-easel/draw";import{SECTION_PAD_UNIT_KEY as DL,SITE_SIDE as BZ,convertLength as NZ,isLengthUnit as DZ,isSiteSide as ML,sideLengthAt as MZ,sideValueAt as HZ,withLength as PS}from"efficient-easel/screen/lib/content/length-units";import{convertLength as wZ,rowGrid as CZ}from"efficient-easel/screen/lib/content/length-units";var je={min:1e3,max:2e3,step:50,default:1600};function ji(e){return{maxWidth:e,marginInline:"auto",width:"100%"}}var wS="--sf-site-width",$o=`var(${wS},${je.default}px)`,od="100vw",SLe=`max-w-[${$o}]`,wLe=`max-w-[${je.default}px]`;function SL(e){return typeof e!="number"||!Number.isFinite(e)?je.default:Math.round(Math.min(Math.max(e,je.min),je.max))}function wL(e,o){let t=Nn(e,o,"size",je);if(t!==null)return{[wS]:t};let r=SL(e);return r===je.default?{}:{[wS]:`${r}px`}}var Wo={min:0,max:80,step:4,default:40,typedMax:Number.POSITIVE_INFINITY},CS="--sf-site-gutter",zt={min:0,max:24,step:4,typedMax:Number.POSITIVE_INFINITY},vZ=CZ({kind:"spacing"},"vw",Wo).max;function CL(e,o){return e<=o?`${e}px`:`min(${e}px, ${vZ}vw)`}var IL="--sf-site-gutter-phone",kZ="max-view-tablet:[--sf-site-gutter:var(--sf-site-gutter-phone)]!",TZ="max-view-wide:[&_[data-sf-line~=edge]:not([data-sf-line~=edge]_*)]:[--sf-site-gutter:var(--sf-site-gutter-phone)]",Rt=`var(${CS},${Wo.default}px)`,PZ=`px-[${Rt}]`;var Gr={md:`min(24px,${Rt})`,sm:`min(20px,${Rt})`,frame:`min(24px,${Rt})`,tabs:`min(16px,${Rt})`},CLe=[[`max-view-desktop:px-[${Gr.md}]`,"max-view-desktop:px-6"],[`max-view-desktop:px-[${Gr.tabs}]`,"max-view-desktop:px-4"],[`max-[960px]:px-[${Gr.frame}]`,"max-[960px]:px-6"],[`max-[900px]:px-[${Gr.md}]`,"max-[900px]:px-6"],[`max-view-wide:px-[${Gr.md}]`,"max-view-wide:px-6"],[`max-view-tablet:px-[${Gr.sm}]`,"max-view-tablet:px-5"],[`max-view-wide:px-[${Gr.sm}]`,"max-view-wide:px-5"],[`max-[640px]:px-[${Gr.sm}]`,"max-[640px]:px-5"],[`view-wide:px-[${Rt}]`,"view-wide:px-10"],[`max-view-tablet:px-[min(24px,${Rt})]`,"max-view-tablet:px-6"],[`max-view-wide:-mx-[min(20px,${Rt})]`,"max-view-wide:-mx-5"],[`max-view-tablet:-mx-[min(20px,${Rt})]`,"max-view-tablet:-mx-5"],[`-mx-[${Rt}]`,"-mx-10"],[PZ,"px-10"]];var vL="max-view-wide:px-[min(20px,var(--sf-site-gutter,40px))]";function Xa(e){return EZ[e??"box"]}var yL="var(--sf-pad-site,var(--sf-box-g,var(--sf-site-gutter,40px)))",bL="[--sf-edge-g:var(--sf-pad-site)]",EZ={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:yL,edge:bL,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:yL,edge:bL,frame:vL}},vLe=`mx-auto max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)] ${vL}`,kL="[--sf-box-g:var(--sf-site-gutter,40px)] [&>*]:[--sf-site-gutter:0px]";var TL="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 bm(e){return typeof e!="number"||!Number.isFinite(e)?Wo.default:Math.round(Math.min(Math.max(e,Wo.min),Wo.typedMax))}function PL(e,o){let t=Nn(e,o,"spacing",Wo);if(t!==null)return{[CS]:t};let r=bm(e);return r===Wo.default?{}:{[CS]:CL(r,Wo.max)}}function Sm(e){return typeof e!="number"||!Number.isFinite(e)?null:Math.round(Math.min(Math.max(e,zt.min),zt.typedMax))}function EL(e){return typeof e=="number"&&Number.isFinite(e)?SL(e):null}function _L(e,o){let t=Nn(e,o,"spacing",zt);if(t!==null)return{[IL]:t};let r=Sm(e);return r===null?{}:{[IL]:CL(r,zt.max)}}function OL(e){return Sm(e)===null?"":`${kZ} ${TZ}`}function wm(e,o){let t=Yp(e,o,"spacing",Wo),r=t===null?bm(e):wZ(t,Ee(o),"px","mobile",zt);return Math.min(zt.max,r)}var AL=$o,kLe=`max-w-[${AL}]`,TLe=`max-w-[min(var(--sf-page-cap,${je.default}px),${je.default}px)]`,Cm="--sf-hero-cap",_Z=`var(${Cm},none)`,PLe=`max-w-[${_Z}]`,OZ="--sf-hero-bleed-m",AZ="--sf-hero-bleed-w",vS="--sf-hero-chrome-x",kS="--sf-hero-chrome-cap";function vm(e){return e===!0?{[Cm]:AL,[OZ]:"auto",[AZ]:"100%",[vS]:"24px",[kS]:"none"}:{}}var TS=`calc(${$o} - ${Rt}*2)`,ELe=`max-w-[${TS.replace(/ /g,"_")}]`;var RZ="--sf-chrome-cap",LZ=`var(${RZ},${TS})`,RL="data-page-width";function LL(e){return e==="full"?"full":null}function _Le(e){return e==="full"?null:ji(e==="content"?TS:LZ)}function OLe(e){if(e==="full")return"full";if(e==="content")return"content"}var Gt={min:10,max:200,step:10};function WZ(e,o,t,r=0){let a=q(e),n=q(o);if(a===void 0&&n===void 0)return;let s=km(t),i=l=>l===void 0?void 0:s==="px"?l:PS(l,s,r);return{paddingTop:i(a),paddingBottom:i(n)}}var km=e=>Ee(e),$Z="sf-pad-top-phone",UZ="sf-pad-bottom-phone",zZ="--sf-pad-t-phone",GZ="--sf-pad-b-phone",jZ="sf-pad-left-phone",KZ="sf-pad-right-phone",VZ="--sf-pad-l-phone",YZ="--sf-pad-r-phone",qZ="sf-pad-top-tablet",XZ="sf-pad-bottom-tablet",ZZ="sf-pad-left-tablet",JZ="sf-pad-right-tablet",QZ="--sf-pad-t-tablet",eJ="--sf-pad-b-tablet",oJ="--sf-pad-l-tablet",tJ="--sf-pad-r-tablet",HL="sf-section-pad";function td(e){let o={desktop:e.unit,tablet:e.unitTablet,phone:e.unitPhone},t=WZ(e.top,e.bottom,e.unit,e.frame),r=rd({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:[HL,...r.classes].join(" "),style:{...t,...r.style}}}var rJ=e=>ML(e)?e:q(e),aJ=[["top","paddingTop",[qZ,QZ],[$Z,zZ]],["bottom","paddingBottom",[XZ,eJ],[UZ,GZ]],["left","paddingLeft",[ZZ,oJ],[jZ,VZ]],["right","paddingRight",[JZ,tJ],[KZ,YZ]]];function NL(e,o,t){return!DZ(o)||o==="px"?e:NZ(e,"px",o,t,{min:0,max:Gt.max,step:1})}function nJ(e,o,t,r={},a=0){let n=(m,h)=>{if(h==="px")return`${m}px`;let I=PS(m,h,a);return typeof I=="number"?`${I}px`:I},s={n:e,[BL("n")]:o,[FL("n")]:t,u:r.desktop,[BL("u")]:r.tablet,[FL("u")]:r.phone},i=FZ("spacing",q(e),q(o),q(t),ui()),l=(m,h,I)=>{if(HZ(s,{side:"n"},m,"side",["side"])?.value===BZ)return Xa().value;let w=MZ(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 rd(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 aJ){let I=p==="left"||p==="right"?rJ:q,w=I(e[p]),S=p==="top"||p==="bottom"?n:0;ML(w)?(i[m]=f.value,u=!0):w!==void 0&&(i[m]=km(a.desktop)==="px"?w:PS(w,km(a.desktop),S));let C=nJ(I(r[p]),I(t[p]),I(o[p]),a,S);for(let[b,[y,v]]of[["tablet",h[0]],["phone",h[1]]]){let L=C[b];L!==void 0&&(d.push(y),l[v]=L,L===f.value&&(u=!0))}}return u&&d.push(...f.className.split(" ")),{classes:d,style:{...i,...l}}}var jr={top:"padTop",bottom:"padBottom",left:"padLeft",right:"padRight"},es="padUnit";function ad(e,o){let t=e[es],r=(a,n,s)=>{let i=q(a)??(s===void 0?void 0:NL(s,t,"desktop")),l=q(n);return l===void 0?i:(i??0)+NL(l,t,"desktop")};return{top:r(e.padTop,e.sectionPaddingTop,o.top),bottom:r(e.padBottom,e.sectionPaddingBottom,o.bottom)}}function WL(e,o,t={}){let r=ad(e,o),a={..._S(e,jr,!0,es),top:r.top,bottom:r.bottom};t.noTop&&Object.assign(a,{top:0,topTablet:void 0,topPhone:void 0});let n=td(a),s=n?n.className.split(" ").filter(i=>i!==HL):[];return{...s.length?{className:s.join(" ")}:{},style:n?.style??{}}}var ga={top:"sectionPaddingTop",bottom:"sectionPaddingBottom",left:"sectionPaddingLeft",right:"sectionPaddingRight"},ES=[...["top","bottom","left","right"].map(e=>[jr[e],ga[e]]),[es,DL]].flatMap(([e,o])=>[[e,o],...["tablet","mobile"].map(t=>[Qn(e,t),Qn(o,t)])]);function _S(e,o=ga,t=!0,r=o===ga?DL:void 0){let a={};if(r){e[r]!==void 0&&(a.unit=e[r]);for(let n of["tablet","mobile"])e[Qn(r,n)]!==void 0&&(a[Qn("unit",n)]=e[Qn(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[Qn(n,s)]=e[Qn(o[n],s)]}return a}function $L(e){return td(e)}function UL(e,o){let t=(r,a)=>typeof r!="number"?void 0:km(a)==="px"?r+o:r;return td({...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 Tm,buttonBorderOf as sJ,buttonFillOpacityOf as iJ,buttonPadSidesOf as lJ,viewKeyAt as cJ}from"efficient-easel/draw";import{BUTTON_PAD_UNIT_KEY as OS,lengthOf as dJ}from"efficient-easel/screen/lib/content/length-units";var fJ="px-6 py-4",pJ=4,Pm=e=>{let o=new RegExp(`\\bp${e}-(?:\\[(\\d+)px\\]|(\\d+))`).exec(fJ);if(!o)throw new Error(`BUTTON_PAD_CLASSES has no p${e}`);return o[1]!==void 0?Number(o[1]):Number(o[2])*pJ},KLe={top:Pm("y"),right:Pm("x"),bottom:Pm("y"),left:Pm("x")},GL="var(--btn)";function uJ(e){let o=e.variant==="ghost",t=iJ(e.buttonFillOpacity),r=sJ(e.buttonBorder),a=be(e.buttonColor);return{fillOpacity:t??(o?0:100),border:{width:r?.width??1,color:r?.color??a??(o?"currentColor":GL)},changed:t!==void 0||r!==void 0}}function VLe(e){let o=uJ(e);if(!o.changed)return null;let t=be(e.buttonColor)??GL;return{background:o.fillOpacity===0?"transparent":o.fillOpacity===100?t:`color-mix(in srgb, ${t} ${o.fillOpacity}%, transparent)`,borderWidth:dJ(o.border.width,Ee(e.buttonBorderUnit)),borderStyle:"solid",borderColor:o.border.color}}var mJ="var(--sf-button-radius, 0)";function YLe(e){let o=q(e.buttonCorners),t=$r(e.buttonCornerSides);if(o===void 0&&t===null)return null;let r=o===void 0?mJ:Me(Math.max(0,o),e.buttonCornersUnit);return{borderRadius:t===null?r:Un(r,t)}}function qLe(e){let o=(s,i)=>e[cJ(s,i)],t=s=>lJ({top:o(Tm.top,s),right:o(Tm.right,s),bottom:o(Tm.bottom,s),left:o(Tm.left,s)})??{},r={desktop:o(OS,"desktop"),tablet:o(OS,"tablet"),phone:o(OS,"mobile")},{classes:a,style:n}=rd(t("desktop"),t("mobile"),t("tablet"),void 0,r);return Object.keys(n).length?{className:a.join(" "),style:n}:null}var zL="upper";function jL(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)??zL;return`${i} \xB7 ${l[d]??l[zL]}`}import{usePreviewParts as dee}from"efficient-easel/draw/client";import{encodePartId as fee}from"efficient-easel/draw";import{DEFAULT_EASEL_STRINGS as pee,useEaselStrings as uee}from"efficient-easel/strings";import{PIN_STICK_VAR as hJ,PIN_TRACK_POSITION_VAR as xJ,pinAttrs as KL,pinStickVars as gJ,readPin as LS}from"efficient-shell/format";var oFe="Stick to top",jt={min:0,max:200,step:4,fallback:0},nd={kind:"position",unitKey:"stickTopDistanceUnit"},VL=yi(nd),[IJ,yJ,bJ]=VL,FS="Pin while scrolling",YL="Scroll",Ir={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"},yr="stickTopScreens",BS=[yr,"stickTopScreensTablet","stickTopScreensPhone"],NS="Screens",os="stickTopStop",Za="screen",qL="Pin stops at",XL=[{value:"header",label:"Under the header"},{value:Za,label:"Screen top"}],ZL="header",JL="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 DS(e){return e===Za?Za:"header"}function QL(e){return e===Za?Za:void 0}var Ja="stickAbove",eF="Stays above",oF="On: the pinned box stays on top, and the sections after it scroll under it.";function SJ(e){return e.stickAbove===!0}var tF=["stickTop","stickTopDistance","stickTopTablet","stickTopDistanceTablet","stickTopPhone","stickTopDistancePhone",...VL,...BS,os,Ja],MS=new Set(["IntroBleed"]),rF=new Set(["CategoryBar","DocTabs","Contents"]);function wJ(e){return typeof e.stickTop=="boolean"?e.stickTop:e.sticky!==!1}var AS=e=>LS(!0,e).length,Ki={any:["stickTop","stickTopTablet","stickTopPhone"].map(e=>({field:e,is:!0}))},Em={all:[{not:{field:"stickTop",in:[!0,!1]}},{not:{field:"sticky",is:!1}}]};function RS(e,o="px"){let t=q(e)??jt.fallback;return o!=="px"?Math.max(jt.min,t):Math.min(jt.max,Math.max(jt.min,Math.round(t)))}function HS(e){return typeof e.stickTopTablet=="boolean"}function WS(e){return typeof e.stickTopPhone=="boolean"}function Vi(e,o={}){let t=o.intro?wJ(e):e.stickTop===!0,r=e,a=Ee(r[IJ]),n=RS(e.stickTopDistance,a),s=AS(e.stickTopScreens),i=HS(e),l=i?e.stickTopTablet===!0:t,d=i?Ee(r[yJ]):a,f=i?RS(e.stickTopDistanceTablet,d):n,u=i?AS(e.stickTopScreensTablet):s,p=WS(e),m=p?e.stickTopPhone===!0:l,h=p?Ee(r[bJ]):d,I=p?RS(e.stickTopDistancePhone,h):f,w=p?AS(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 $S(e,o={}){let t=Vi(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&&SJ(e),s=o.track===!0&&!r&&a&&!n,i=(u,p,m,h)=>Vn({tabletClass:"",tabletVar:`${u}-tablet`,phoneClass:"",phoneVar:`${u}-phone`},p,m,h).style,l={...o.atScreenTop||DS(e.stickTopStop)===Za?{[Ir.header]:"0px"}:{},[Ir.distance]:Me(t.desktopDistance,t.desktopUnit),...i(Ir.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?{}:{[Ir.on]:"0"},...i(Ir.on,u(t.desktop),u(t.tablet),u(t.phone)),[Ir.length]:String(t.desktopScreens),...i(Ir.length,String(t.desktopScreens),String(t.tabletScreens),String(t.phoneScreens)),...CJ(t.desktop&&t.desktopScreens===0,t.tablet&&t.tabletScreens===0,t.phone&&t.phoneScreens===0,i)};return{attrs:KL(LS(!0),"track").attrs,style:p}}let d=u=>u?"sticky":"static",f={...l,...t.desktop?{}:{[Ir.position]:"static"},...i(Ir.position,d(t.desktop),d(t.tablet),d(t.phone))};return{attrs:KL(LS(!0),"stick",n?{above:n}:{}).attrs,style:f}}function CJ(e,o,t,r){let a=[[Ir.stick,hJ],[Ir.trackPosition,xJ]],[n,s,i]=[e,o,t].map(gJ);return Object.fromEntries(a.flatMap(([l,d])=>[...e?[[l,n[d]]]:[],...Object.entries(r(l,n[d],s[d],i[d]))]))}var vJ=["column","row","tabs","accordion"];var kJ={column:"Stacked",row:"One row",tabs:"Tabs",accordion:"Accordion"},aF={Flex:vJ,HeroGroup:["column","row"]},TJ={Flex:"row",HeroGroup:"column"},PJ={column:"flex-col",row:"flex-row",tabs:"flex-col",accordion:"flex-col"};function Kr(e,o){return aF[e].includes(o)?o:TJ[e]}function rFe(e,o){return PJ[Kr(e,o)]}function nF(e){return aF[e].map(o=>({label:kJ[o],value:o}))}import{viewKeyAt as US}from"efficient-easel/screen/lib/content/view-tiers";var Om=20,EJ=["solid","dashed","dotted"],Am=["top","right","bottom","left"],Rm="sf-section-border",iF="sf-section-border-self",_J=/^#(?:[0-9a-f]{3}|[0-9a-f]{4}|[0-9a-f]{6}|[0-9a-f]{8})$/i,OJ=e=>typeof e=="number"&&Number.isFinite(e)?`${Math.min(Om,Math.max(0,Math.round(e)))}px`:void 0,sd={kind:"border",unitKey:"sectionBorderUnit"},lF=yi(sd);function cF(e){let o=sd.unitKey;return{desktop:e[US(o,"desktop")],tablet:e[US(o,"tablet")],phone:e[US(o,"mobile")]}}var sF=(e,o)=>o==="px"?OJ(e):typeof e=="number"&&Number.isFinite(e)?Me(Math.max(0,e),o):void 0;function _m(e,{phone:o=!1,tablet:t=!1,unit:r}={}){if(!e||typeof e!="object")return;let a=o?"-phone":t?"-tablet":"",n={},s=Ee(r);for(let i of Am){let l=sF(e[i],s)??sF(e.width,s);l!==void 0&&(n[`--sf-border-${i}-width${a}`]=l)}return typeof e.style=="string"&&EJ.includes(e.style)&&(n[`--sf-border-style${a}`]=e.style),typeof e.color=="string"&&_J.test(e.color)&&(n[`--sf-border-color${a}`]=e.color.toLowerCase()),Object.keys(n).length?n:void 0}function zS(e){let{width:o,...t}=e;return typeof o!="number"?e:{...t,...Object.fromEntries(Am.map(r=>[r,t[r]??o]))}}function dF(e,o,t,r={}){let a=_m(e,{unit:r.desktop}),n=_m(t,{tablet:!0,unit:r.tablet}),s=_m(t,{phone:!0,unit:r.tablet}),i=_m(o,{phone:!0,unit:r.phone}),l=s||i?{...s,...i}:void 0;return a||n||l?{...a,...n,...l}:void 0}var Lm="sf.gapContainer",Ia={min:-32,max:64,step:2},gF={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},Yi={Grid:24,Flex:24,FooterGroup:16,HeroGroup:0,Events:24,GalleryB:8,ProductGrid:2},AJ=new Set(["Events","GalleryB"]);function ts(e,o,t){if(typeof o=="number"&&Number.isFinite(o)&&o>=Ia.min)return o;if(typeof o=="string"){let r=gF[e]?.[o];if(typeof r=="number")return r}return typeof t=="number"&&Number.isFinite(t)?t:Yi[e]}var RJ="sf-gap-overlap",LJ="--sf-gap-overlap",GS="--sf-block-gap",fF="--sf-block-gap-rem",Kt={min:0,max:Ia.max,step:Ia.step};function id(e){if(typeof e!="number"||!Number.isFinite(e))return null;let o=Math.min(Math.max(Math.round(e),Kt.min),Kt.max);return o-o%Kt.step}function IF(e,o){let t=Nn(e,o,"gap",Kt);if(t!==null)return{[GS]:t,[fF]:t};let r=id(e);return r===null?{}:{[GS]:`${r}px`,[fF]:`${r/16}rem`}}var pF="--sf-block-gap-phone",uF="--sf-block-gap-phone-rem",FJ="--sf-block-gap-on-phone",BJ="max-view-tablet:[--sf-block-gap-on-phone:var(--sf-block-gap-phone)]",NJ="max-view-wide:[&_[data-sf-line~=edge]:not([data-sf-line~=edge]_*)]:[--sf-block-gap-on-phone:var(--sf-block-gap-phone)]";function yF(e,o){let t=Nn(e,o,"gap",Kt);if(t!==null)return{[pF]:t,[uF]:t};let r=id(e);return r===null?{}:{[pF]:`${r}px`,[uF]:`${r/16}rem`}}function bF(e){return id(e)===null?"":`${BJ} ${NJ}`}var mF="sf-gap-zone",hF="--sf-gap-len";function Fm(e,o){return typeof o=="number"&&Number.isFinite(o)&&o>=Ia.min?!0:typeof o=="string"&&typeof gF[e]?.[o]=="number"}var xF="--sf-gap-len-phone",DJ="--sf-gap-len-tablet",ld={min:0,max:Ia.max,step:Ia.step};function Qa(e){return typeof e=="number"&&Number.isFinite(e)&&e>=ld.min}function jS(e){return e/2}function KS(e,o,t){return Qa(t)&&!Fm(e,o)}function VS(e,o,t,r,a){return Qa(o)?o:KS(e,t,a)?a:jS(ts(e,t,r))}var MJ={block:"sf-gap-overlap-block",inline:"sf-gap-overlap-inline",both:"sf-gap-overlap-both"};function cFe(e,o,t,r,a){let n={...Qa(r)?{[xF]:`${r}px`}:null,...Qa(a)?{[DJ]:`${a}px`}:null};if(!Fm(e,o)){let i=`${Yi[e]}px`,l=AJ.has(e)?`var(--sf-card-gap, ${i})`:i;return{className:` ${mF}`,style:{[hF]:`var(${GS}, ${l})`,[xF]:`var(${FJ})`,...n}}}let s=ts(e,o);return s>=0?{className:` ${mF}`,style:{[hF]:`${s}px`,...n}}:{className:` ${RJ} ${MJ[t]}`,style:{gap:"0px",[LJ]:`${-s/2}px`}}}import{parseHexColor as HJ}from"efficient-shell/format";var ot="var(--section-bg)",cd="inherit";function Vr(e,o){return e===cd?ot:e===void 0?o:Bm(e)}var WJ=/var\(\s*--(surface-2|surface|line)\s*(?=[,)])/g;function Bm(e){let o=zr(e);return o?pa(o):e.replace(WJ,"var(--site-$1")}var $J={"var(--section-bg)":"band","var(--site-surface)":"surface","var(--site-surface-2)":"surface2"};function YS(e,o,t){let r=Vr(e,o);if(!r||r==="transparent")return t.background.toLowerCase();let a=r.trim(),n=a.startsWith("#")?HJ(a):null;if(n)return n.toLowerCase();let s=$J[a.replace(/\s+/g,"")];return(s?t[s]:t.background).toLowerCase()}var qS="transparent";function SF(e,o){let t=Vr(e,o);return!t||t===qS?"none":t===ot?"band":null}function wF(e,o,t=o){let r=n=>!n||n==="transparent",a=Vr(e,o);return a===t||r(a)&&r(t)}var CF=["transparent","var(--wheel-stage)","var(--surface)","var(--surface-2)"],vF={transparent:"No fill","var(--wheel-stage)":"Image stage","var(--surface)":"Panels and cards","var(--surface-2)":"Second surface"},qi="var(--wheel-stage)",Nm="transparent",dd="inherit";function hFe(e,o){return Bm(XS(e,o))}function XS(e,o){return e===dd?qi:e==null?o:e===!0?qi:e===!1?Nm:e}function xFe(e){return typeof e=="string"&&e!==dd?Bm(e):qi}function gFe(e){return e!==Nm&&e!=="none"&&e!==""}function kF(e,o){return e===dd||e===!0?!0:e==null?o===qi:!1}var rs="inherit",Dm="fixed",TF=e=>typeof e!="number"&&e!==Dm,UJ="var(--sf-heading-max, 9999px)";function bFe(e,o,t,r,a){if(typeof e=="number")return Me(e,a);if(e===Dm)return o;let n=r?`var(--size-${r}, ${o})`:o;return t==="heading"?`min(${n}, ${UJ})`:n}var ZS={kind:"fontSize",unitKey:"titleSizeUnit"},JS={kind:"fontSize",unitKey:"bodySizeUnit"},zJ=["desktop","mobile"],PF=[ZS,JS].flatMap(e=>yi(e,zJ));function QS(e){let o=(t,r)=>y_(e,t,r);return{titleDesktop:o(ZS,"desktop"),titleMobile:o(ZS,"mobile"),bodyDesktop:o(JS,"desktop"),bodyMobile:o(JS,"mobile")}}var GJ=["page","full"],EF=["full","page"],as={full:"Full",page:"Content"},ew="inherit",jJ=e=>typeof e=="string"&&GJ.includes(e),KJ=e=>e===ew;function Mm(e,o){return KJ(e.widthMode)?{mode:"full",inherited:!0}:jJ(e.widthMode)?{mode:e.widthMode,inherited:!1}:{mode:o,inherited:o==="full"}}function kFe(e){return Mm(e,"page").mode==="full"}var Zi={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 Hm(e){return He(Zi,e)}var Fe={background:"sectionBackgroundWidth",content:"sectionContentWidth",contentMax:"sectionContentMax",contentMaxUnit:"sectionContentMaxUnit"},ow={kind:"size",unitKey:Fe.contentMaxUnit};function ns(e){let o=e[Fe.contentMaxUnit],t=Ee(o),r=e[Fe.contentMax],a=t==="px"?EL(r):typeof r=="number"&&Number.isFinite(r)&&r>0?r:null,n=Xi(e[Fe.content])??(a===null?null:"content");return{background:Xi(e[Fe.background]),content:n,contentMax:n==="content"?a:null,contentMaxUnit:t}}function _F(e){let o=ns(e);return o.content===null&&e.fullWidth===!0?{...o,content:"full"}:o}function OF(e){return e.background!==null||e.content!==null}var AF=e=>({[Fe.background]:e}),RF=e=>e==="full"?{[Fe.content]:e,[Fe.contentMax]:void 0,[Fe.contentMaxUnit]:void 0}:{[Fe.content]:e},LF=e=>({[Fe.content]:"content",[Fe.contentMax]:e}),tw=e=>e==="background"?{[Fe.background]:void 0}:{[Fe.content]:void 0,[Fe.contentMax]:void 0,[Fe.contentMaxUnit]:void 0},FF="siteWidths",VJ=e=>e==="full"||e==="content";function Xi(e){return VJ(e)?e:null}function BF(e,o){return{[FF]:{background:Xi(e),content:Xi(o)}}}function Wm(e){let o=e.editor?.metadata?.[FF];return{background:Xi(o?.background),content:Xi(o?.content)}}import{useEaselSession as mee}from"efficient-easel/screen/lib/session-context";import{BOX_GAP as hee,describedAs as tn,group as wr,iconOf as el,sharedStyleKinds as xd}from"efficient-easel/screen/lib/document/box-fields";import{VIEW_KEY_ACCESS as pB,onDesktopWords as ls,phoneTwinFields as hw,saidAlignmentGrid as xee,useLengthUnit as gee}from"efficient-easel/screen/lib/document/box-fields";import{createElement as Vt}from"react";import{SettingsDefaultReset as YJ,SettingsField as qJ}from"efficient-easel/panel";import{boxFieldBuilders as XJ,describedAs as ZJ,iconOf as JJ,onDesktopWords as QJ}from"efficient-easel/screen/lib/document/box-fields";import{LENGTH_KIND_UNITS as eQ}from"efficient-easel/screen/lib/content/length-units";import{IconPicker as oQ,Tooltip as tQ,useShellStrings as rQ}from"efficient-shell/ui";import{RotateIcon as aQ}from"efficient-easel/icons";var $m=e=>c(e),ya=eQ,Ao=XJ($m,{lengthUnits:ya}),Ro=Ao.slider,pt=Ao.select,fd=Ao.Segmented,Ji=Ao.segmented,BFe=Ao.alignmentField,NFe=Ao.alignmentFields,DFe=Ao.blockAlignmentField,MFe=Ao.blockAlignmentFields,HFe=Ao.boxJustifyField,WFe=Ao.boxAlignField,$Fe=Ao.boxWrapField,NF=Ao.directionField,Um=Ao.gapField,UFe=Ao.placementField,zFe=Ao.PlacementGridView,GFe=Ao.positionFields,Qi=Ao.sidesPaddingFields,ss=Ao.lengthUnitFields;function DF(e,o){return Ro("Angle",Vt(aQ),Pp.min,Pp.max,Pp.step,e,"\xB0",o)}var rw=Symbol("efficient-web-builder.picture-picker-row"),nQ={width:"3.5rem",height:"2.75rem",words:!0};function aw({value:e}){return rQ().iconNames[e]??e}function nw(e,o,t){return Vt(tQ,{content:t,className:"sf-pick-tip",children:Vt("span",{className:"sf-pick"},Vt("span",{className:"sf-pick-pic"},e),Vt("span",{className:"sf-pick-cap"},o))})}function sQ(e){let o=t=>t.label===void 0?Vt(aw,{value:t.value}):c(t.label);return e.map(t=>({value:t.value,...t.label===void 0?{}:{label:c(t.hint??t.label)},icon:nw(t.picture,o(t),t.hint===void 0?o(t):c(t.hint))}))}function MF(e,o){return Vt("span",{className:"sf-pick"},Vt("span",{className:"sf-pick-pic"},e),Vt("span",{className:"sf-pick-cap sf-pick-cap-closed"},o))}function sw(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",[rw]:!0,...ZJ({},{type:"radio",label:e,options:i}),options:i,render:l=>{let{value:d,onChange:f,field:u}=l,p=u?.options,m=sQ(t.filter(y=>!p||p.some(v=>v.value===y.value))),h="follows"in l,I=h?s(a.phoneRest?a.phoneRest(l.follows):l.follows)??r:void 0,w=u?.currentValue,S=s(d)??I??s(w)??r,C=d!=null&&d!=="",b=I===void 0?void 0:t.find(y=>y.value===I);return Vt(qJ,{label:c(e),icon:JJ(o),action:h?Vt(YJ,{words:ce()?.panel,label:c(e),changed:C,detail:b?.label!==void 0?QJ($m,c(b.label),l.followsView):void 0,disabled:l.readOnly===!0,onReset:()=>f(void 0)}):void 0},Vt(oQ,{label:c(e),value:S,options:m,onChange:f,columns:a.columns,cell:a.cell??nQ,tooltips:!1,disabled:l.readOnly===!0}))}}}import{VIEW_ABOVE as cw}from"efficient-easel/screen/lib/content/length-units";import{jsx as E,jsxs as Se}from"react/jsx-runtime";import{NoSymbolIcon as hQ}from"efficient-easel/icons";import{useId as xQ}from"react";var iQ="line",lQ=[{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"}],iw={"stripes-fine":{ink:4,period:12},"stripes-medium":{ink:8,period:18},"stripes-bold":{ink:14,period:28}},VFe=28,cQ="-45deg",dQ="color-mix(in oklab, var(--accent) 50%, var(--bg))";function fQ(e){return e!=="line"&&e!=="none"}var pQ={sm:24,md:48,lg:80},uQ="md",mQ=Object.keys(pQ);function YFe(e){return xo(mQ,uQ,e)}function qFe(e){return xo(lQ,iQ,e)}function XFe(e){if(!fQ(e))return null;let{ink:o,period:t}=iw[e];return`repeating-linear-gradient(${cQ}, ${dQ} 0 ${o}px, transparent ${o}px ${t}px)`}var ZFe={kind:"border",unitKey:"thicknessUnit"},JFe={kind:"size",base:"%",unitKey:"lengthPctUnit"};var zm=44,Gm=28;function xe({children:e}){return E("svg",{width:zm,height:Gm,viewBox:`0 0 ${zm} ${Gm}`,"aria-hidden":"true",fill:"currentColor",stroke:"currentColor",strokeWidth:1.25,children:e})}var M=({x:e,y:o,w:t,t:r=2,faint:a=!1})=>E("rect",{x:e,y:o,width:t,height:r,rx:r/2,stroke:"none",opacity:a?.45:1}),Te=({x:e,y:o,w:t,h:r})=>E("rect",{x:e,y:o,width:t,height:r,rx:2,fill:"none"}),Lt=({x:e,y:o})=>E("circle",{cx:e,cy:o,r:1.75,stroke:"none"}),Uo=({x1:e,y1:o,x2:t,y2:r})=>E("line",{x1:e,y1:o,x2:t,y2:r});function lw(e){let o=20/Li,t=5,r=1,a=[],n=0,s=0,i=0;for(let[f,u]of e)n+f>Li&&(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=(Gm-l)/2;return E(xe,{children:a.map((f,u)=>E("rect",{x:f.x,y:d+f.y,width:f.w,height:f.h,rx:1,stroke:"none",opacity:.6},u))})}var nBe={bars:Se(xe,{children:[E(M,{x:8,y:14,w:5,t:10}),E(M,{x:16,y:8,w:5,t:16}),E(M,{x:24,y:18,w:5,t:6}),E(M,{x:32,y:11,w:5,t:13})]}),line:Se(xe,{children:[E("polyline",{points:"6,22 14,15 22,18 30,8 38,11",fill:"none",strokeWidth:1.75,strokeLinejoin:"round"}),E(Uo,{x1:6,y1:25,x2:38,y2:25})]}),donut:Se(xe,{children:[E("circle",{cx:22,cy:14,r:9,fill:"none",strokeWidth:5,opacity:.45}),E("circle",{cx:22,cy:14,r:9,fill:"none",strokeWidth:5,strokeDasharray:"34 57",transform:"rotate(-90 22 14)"})]})};function sBe(e){if(e==="none")return E("span",{style:{display:"flex",width:zm,height:Gm,alignItems:"center",justifyContent:"center"},children:E(hQ,{size:20})});if(e==="line")return E(xe,{children:E(Uo,{x1:4,y1:14,x2:40,y2:14})});let{ink:o,period:t}=iw[e],r=.4,a=[];for(let n=-12;n<zm;n+=t*r)a.push(E("polygon",{points:`${n},22 ${n+o*r},22 ${n+o*r+10},6 ${n+10},6`,stroke:"none"},n));return E(gQ,{children:a})}function gQ({children:e}){let o=`sf-div-${xQ().replace(/[^\w-]/g,"")}`;return Se(xe,{children:[E("clipPath",{id:o,children:E("rect",{x:4,y:6,width:36,height:16,rx:2})}),E("g",{clipPath:`url(#${o})`,children:e})]})}var jm=({x:e,y:o,w:t,h:r})=>E("rect",{x:e,y:o,width:t,height:r,rx:2,stroke:"none",opacity:.3}),iBe={tabs:Se(xe,{children:[E(M,{x:5,y:10,w:9}),E(M,{x:18,y:10,w:9,faint:!0}),E(M,{x:31,y:10,w:9,faint:!0}),E(Uo,{x1:4,y1:17,x2:40,y2:17}),E(M,{x:4,y:16,w:11,t:2})]}),largeTabs:Se(xe,{children:[E(Uo,{x1:4,y1:5,x2:40,y2:5}),E(Lt,{x:7,y:10}),E(M,{x:11,y:9,w:16}),E(M,{x:31,y:9,w:9,faint:!0}),E(Uo,{x1:4,y1:14,x2:40,y2:14}),E(Lt,{x:7,y:19}),E(M,{x:11,y:18,w:13,faint:!0}),E(M,{x:31,y:18,w:9,faint:!0}),E(Uo,{x1:4,y1:23,x2:40,y2:23})]})},lBe={card:Se(xe,{children:[E(Te,{x:10,y:3,w:24,h:22}),E(jm,{x:12,y:5,w:20,h:10}),E(M,{x:13,y:18,w:16}),E(M,{x:13,y:21,w:11,t:1.5,faint:!0})]}),cover:Se(xe,{children:[E(jm,{x:10,y:3,w:24,h:22}),E(Te,{x:10,y:3,w:24,h:22}),E(M,{x:13,y:17,w:16}),E(M,{x:13,y:21,w:11,t:1.5})]})},cBe={cards:Se(xe,{children:[E(Te,{x:3,y:5,w:11,h:18}),E(Te,{x:17,y:5,w:11,h:18}),E(Te,{x:31,y:5,w:11,h:18}),E(M,{x:5,y:9,w:7}),E(M,{x:19,y:9,w:7}),E(M,{x:33,y:9,w:7}),E(M,{x:5,y:13,w:5,t:1.5,faint:!0}),E(M,{x:19,y:13,w:5,t:1.5,faint:!0}),E(M,{x:33,y:13,w:5,t:1.5,faint:!0})]}),"label-only":Se(xe,{children:[E("path",{d:"M8.5 7l3 3-3 3-3-3zM22.5 7l3 3-3 3-3-3zM36.5 7l3 3-3 3-3-3z",stroke:"none"}),E(M,{x:5,y:18,w:7}),E(M,{x:19,y:18,w:7}),E(M,{x:33,y:18,w:7})]})},dBe={table:Se(xe,{children:[E(Te,{x:3,y:5,w:38,h:18}),E(Uo,{x1:15.7,y1:5,x2:15.7,y2:23}),E(Uo,{x1:28.3,y1:5,x2:28.3,y2:23}),E("path",{d:"M15.7 5v18M28.3 5v18",fill:"none",strokeWidth:2.5}),E(M,{x:6,y:9,w:6,t:3}),E(M,{x:19,y:9,w:6,t:3}),E(M,{x:31,y:9,w:6,t:3}),E(M,{x:6,y:18,w:7,t:1.5,faint:!0}),E(M,{x:19,y:18,w:7,t:1.5,faint:!0}),E(M,{x:31,y:18,w:7,t:1.5,faint:!0})]}),list:Se(xe,{children:[E(Uo,{x1:3,y1:7,x2:13,y2:7}),E(Uo,{x1:17,y1:7,x2:27,y2:7}),E(Uo,{x1:31,y1:7,x2:41,y2:7}),E(M,{x:3,y:11,w:6,t:3}),E(M,{x:17,y:11,w:6,t:3}),E(M,{x:31,y:11,w:6,t:3}),E(M,{x:3,y:17,w:8,t:1.5,faint:!0}),E(M,{x:17,y:17,w:8,t:1.5,faint:!0}),E(M,{x:31,y:17,w:8,t:1.5,faint:!0})]})},fBe={plain:Se(xe,{children:[E(M,{x:5,y:12,w:9,t:4}),E(M,{x:18,y:12,w:9,t:4}),E(M,{x:31,y:12,w:9,t:4})]}),cards:Se(xe,{children:[E(Te,{x:3,y:7,w:11,h:14}),E(Te,{x:17,y:7,w:11,h:14}),E(Te,{x:31,y:7,w:11,h:14}),E(M,{x:5,y:13,w:7}),E(M,{x:19,y:13,w:7}),E(M,{x:33,y:13,w:7})]}),marks:Se(xe,{children:[E(M,{x:8,y:12,w:6,t:4}),E(M,{x:17,y:12,w:6,t:4}),E(M,{x:26,y:12,w:6,t:4}),E(M,{x:35,y:12,w:3,t:4})]}),chips:Se(xe,{children:[E(Te,{x:3,y:9,w:18,h:10}),E(Te,{x:23,y:9,w:18,h:10}),E(Lt,{x:7,y:14}),E(M,{x:10,y:13,w:8}),E(Lt,{x:27,y:14}),E(M,{x:30,y:13,w:8})]})},pBe={overlay:Se(xe,{children:[E(jm,{x:4,y:3,w:36,h:22}),E(Te,{x:4,y:3,w:36,h:22}),E(M,{x:8,y:15,w:18,t:3}),E(M,{x:8,y:20,w:12})]}),stacked:Se(xe,{children:[E(M,{x:4,y:3,w:18,t:3}),E(M,{x:4,y:8,w:12}),E(jm,{x:4,y:13,w:36,h:12}),E(Te,{x:4,y:13,w:36,h:12})]})},uBe={split:Se(xe,{children:[E(M,{x:4,y:6,w:12,t:3}),E(M,{x:4,y:11,w:9,faint:!0}),E(Uo,{x1:20,y1:4,x2:20,y2:24}),E(M,{x:24,y:6,w:16}),E(M,{x:24,y:10,w:11,faint:!0}),E(M,{x:24,y:17,w:16}),E(M,{x:24,y:21,w:11,faint:!0})]}),spine:Se(xe,{children:[E(Uo,{x1:9,y1:4,x2:9,y2:24}),E(Lt,{x:9,y:8}),E(M,{x:14,y:7,w:24}),E(Lt,{x:9,y:14}),E(M,{x:14,y:13,w:20}),E(Lt,{x:9,y:20}),E(M,{x:14,y:19,w:24})]}),alternating:Se(xe,{children:[E(Uo,{x1:22,y1:4,x2:22,y2:24}),E(Lt,{x:22,y:8}),E(M,{x:4,y:7,w:14}),E(Lt,{x:22,y:14}),E(M,{x:26,y:13,w:14}),E(Lt,{x:22,y:20}),E(M,{x:4,y:19,w:14})]}),track:Se(xe,{children:[E(Uo,{x1:4,y1:12,x2:40,y2:12}),E(Lt,{x:8,y:12}),E(Lt,{x:22,y:12}),E(Lt,{x:36,y:12}),E(M,{x:4,y:17,w:8}),E(M,{x:18,y:17,w:8}),E(M,{x:32,y:17,w:8}),E(M,{x:4,y:21,w:6,faint:!0}),E(M,{x:18,y:21,w:6,faint:!0}),E(M,{x:32,y:21,w:6,faint:!0})]})},mBe={standard:Se(xe,{children:[E(M,{x:4,y:5,w:10,t:1.5,faint:!0}),E(M,{x:4,y:10,w:28,t:4}),E(M,{x:4,y:18,w:34,faint:!0}),E(M,{x:4,y:22,w:24,faint:!0})]}),editorial:Se(xe,{children:[E(M,{x:4,y:5,w:5,t:1.5,faint:!0}),E(M,{x:4,y:10,w:20,t:5}),E(M,{x:28,y:11,w:12,faint:!0}),E(M,{x:28,y:15,w:9,faint:!0}),E(Uo,{x1:4,y1:22,x2:40,y2:22})]}),simple:Se(xe,{children:[E(M,{x:4,y:8,w:10,t:1.5,faint:!0}),E(M,{x:4,y:13,w:26,t:4})]}),statement:Se(xe,{children:[E(M,{x:4,y:6,w:36,t:7}),E(M,{x:4,y:16,w:24,t:7})]}),natural:Se(xe,{children:[E(M,{x:4,y:8,w:22,t:3}),E(M,{x:4,y:15,w:34,faint:!0}),E(M,{x:4,y:19,w:28,faint:!0})]}),essay:Se(xe,{children:[E(M,{x:4,y:5,w:24,t:4}),E(M,{x:4,y:13,w:36,faint:!0}),E(M,{x:4,y:17,w:36,faint:!0}),E(M,{x:4,y:21,w:30,faint:!0})]})},hBe={"spec-card":Se(xe,{children:[E(Te,{x:4,y:3,w:36,h:22}),E(M,{x:8,y:7,w:14}),E(Te,{x:8,y:12,w:8,h:9}),E(Te,{x:18,y:12,w:8,h:9}),E(Te,{x:28,y:12,w:8,h:9})]}),fitment:Se(xe,{children:[E(Te,{x:4,y:4,w:10,h:5}),E(Te,{x:16,y:4,w:10,h:5}),E(Te,{x:28,y:4,w:10,h:5}),E(M,{x:4,y:14,w:34,faint:!0}),E(M,{x:4,y:18,w:34,faint:!0}),E(M,{x:4,y:22,w:34,faint:!0})]}),portal:Se(xe,{children:[E(Te,{x:4,y:3,w:36,h:22}),E(M,{x:8,y:7,w:10,t:4}),E(M,{x:8,y:14,w:16,faint:!0}),E(M,{x:26,y:18,w:10,t:4})]}),kanban:Se(xe,{children:[E(Te,{x:4,y:3,w:10,h:22}),E(Te,{x:17,y:3,w:10,h:22}),E(Te,{x:30,y:3,w:10,h:22}),E(M,{x:6,y:6,w:6,t:4}),E(M,{x:6,y:12,w:6,t:4}),E(M,{x:19,y:6,w:6,t:4}),E(M,{x:32,y:6,w:6,t:4}),E(M,{x:32,y:12,w:6,t:4})]}),claims:Se(xe,{children:[E(M,{x:4,y:5,w:12,faint:!0}),E(M,{x:20,y:4,w:18,t:4}),E(M,{x:4,y:12,w:12,faint:!0}),E(M,{x:20,y:11,w:10,t:4}),E(M,{x:4,y:19,w:12,faint:!0}),E(M,{x:20,y:18,w:14,t:4})]}),browser:Se(xe,{children:[E(Te,{x:4,y:3,w:36,h:22}),E(Uo,{x1:4,y1:8,x2:40,y2:8}),E(M,{x:8,y:11,w:28,t:5,faint:!0}),E(Te,{x:8,y:18,w:8,h:4}),E(Te,{x:18,y:18,w:8,h:4}),E(Te,{x:28,y:18,w:8,h:4})]}),terminal:Se(xe,{children:[E(Te,{x:4,y:3,w:36,h:22}),E("polyline",{points:"8,9 11,11 8,13",fill:"none"}),E(M,{x:13,y:10,w:14}),E(M,{x:8,y:16,w:22,faint:!0}),E(M,{x:8,y:20,w:16,faint:!0})]})},HF={width:"5.75rem",height:"3.75rem",words:!0},xBe={width:"8.5rem",height:"3.75rem",words:!0},gBe={columns:Se(xe,{children:[E(Te,{x:3,y:4,w:11,h:8}),E(Te,{x:17,y:4,w:11,h:8}),E(Te,{x:31,y:4,w:11,h:8}),E(M,{x:3,y:16,w:9}),E(M,{x:17,y:16,w:9}),E(M,{x:31,y:16,w:9}),E(M,{x:3,y:20,w:7,t:1.5,faint:!0}),E(M,{x:17,y:20,w:7,t:1.5,faint:!0}),E(M,{x:31,y:20,w:7,t:1.5,faint:!0})]}),"rows-left":Se(xe,{children:[E(Te,{x:6,y:3,w:14,h:9}),E(M,{x:24,y:5,w:14}),E(M,{x:24,y:9,w:10,t:1.5,faint:!0}),E(Te,{x:24,y:16,w:14,h:9}),E(M,{x:6,y:18,w:14}),E(M,{x:6,y:22,w:10,t:1.5,faint:!0})]}),"rows-right":Se(xe,{children:[E(Te,{x:24,y:3,w:14,h:9}),E(M,{x:6,y:5,w:14}),E(M,{x:6,y:9,w:10,t:1.5,faint:!0}),E(Te,{x:6,y:16,w:14,h:9}),E(M,{x:24,y:18,w:14}),E(M,{x:24,y:22,w:10,t:1.5,faint:!0})]})};import{TEXT_CONTROL_KINDS as dDe,SCALAR_TEXT_CONTROLS as fDe}from"efficient-easel/draw";function cs(e,o){return c("{value} from {from}",{value:e,from:o})}function Iee(){let{blockGap:e}=fe();return e===null?c("this container's own spacing"):cs(`${e}px`,c("Styles"))}function yee({inherited:e,onReset:o,label:t}){return R(tt,{words:ce()?.panel,label:c(t),changed:!e,detail:Iee(),onReset:o})}function bee(e){return Um({...hee,builtIn:Yi[e],resolve:(o,t)=>ts(e,o,t?.siteGap),action:(o,t)=>R(yee,{inherited:!Fm(e,o),onReset:()=>t(void 0),label:"Gap"}),mark:{[Lm]:e}})}function See(e){return io(zo("mobile",{[Lm]:e,type:"custom",render:o=>R(vee,{container:e,...o})}),uB)}function wee(e){return io(zo("tablet",{[Lm]:e,type:"custom",render:o=>R(Cee,{container:e,...o})}),uB)}var uB={not:{field:"gap",in:Array.from({length:-Ia.min},(e,o)=>Ia.min+o)}};function tDe(e){return{gap:zo("desktop",bee(e)),[bw("gap")]:wee(e),[en("gap")]:See(e)}}function Cee({container:e,...o}){let[t]=br("gap"),{siteGap:r}=o.field??{},a=Math.max(ld.min,ts(e,t,r));return Um({...ld,builtIn:a,resolve:n=>Qa(n)?n:a,action:(n,s)=>R(tt,{words:ce()?.panel,label:c("Gap"),changed:Qa(n),detail:ls(i=>c(i),`${a}px`),onReset:()=>s(void 0)})}).render(o)}function vee({container:e,...o}){let[t]=br("gap"),{siteGap:r,siteGapPhone:a}=o.field??{},n=VS(e,void 0,t,r,a);return Um({...ld,builtIn:n,resolve:s=>VS(e,s,t,r,a),action:(s,i)=>R(tt,{words:ce()?.panel,label:c("Gap"),changed:Qa(s),detail:cs(`${n}px`,KS(e,t,a)?c("Styles"):c("Desktop")),onReset:()=>i(void 0)})}).render(o)}function rDe(e){return NF({offered:nF(e),fallback:Kr(e,void 0),resolve:o=>Kr(e,o)})}function aDe(e,o){return sO(o?cO(e,o):[],o)}function kee({inherited:e,onReset:o,label:t}){return R(tt,{words:ce()?.panel,label:c(t),changed:!e,detail:cs(c("Full"),c("the page")),onReset:o})}function ds({value:e,onChange:o,label:t,placeholder:r,hint:a,multiline:n,hideable:s=!0,markup:i=!0}){let{text:l,hidden:d}=rn(e),f=pd(null),u=pd(null),p=C=>o(s?{text:C,hidden:d}:C),m=()=>o({text:l,hidden:!d}),h=s&&d,I=JF(),w=a?Oee(a)?R("span",{className:"sf-hint-while-typing",children:c(a)}):c(a):void 0,S=d?c("Show {label} on the slide",{label:c(t)}):c("Hide {label} on the slide",{label:c(t)});return R(wo,{label:c(t),icon:R(UQ,{}),htmlFor:I,className:h?"is-hidden":void 0,hint:w,action:s?R(yw,{content:S,children:R(dB,{"aria-pressed":d,"aria-label":S,onClick:m,children:d?R(GF,{name:"eye-off",size:14}):R(GF,{name:"eye",size:14})})}):void 0,children:ba("div",{className:"sf-copybox",children:[i&&R(Yb,{target:n?u:f,value:l,onChange:p}),n?R("textarea",{id:I,ref:u,value:l,placeholder:r===void 0?void 0:c(r),onChange:C=>p(C.target.value)}):R("input",{id:I,ref:f,type:"text",value:l,placeholder:r===void 0?void 0:c(r),onChange:C=>p(C.target.value)})]})})}function nDe(e,o){return{...e,[kQ]:o}}function sDe(e){let o=e[Sa];if(!o)throw new Error("withOffPage: the field holds no authored text");return{...e,[Sa]:{...o,offPage:!0}}}function Qm(e){return!e||typeof e!="object"?!1:e[Sa]?.offPage===!0}function iDe(e){if(!e[Sa])throw new Error("withPanelOnly: the field holds no authored text");return{...e,[Xb]:!0}}function mB(e){return Ui(e)}function lDe(e){let o=e[Sa];if(!o)throw new Error("withIdentifier: the field holds no authored text");return{...e,[Sa]:{...o,identifier:!0}}}function pDe(e,o){if(!e[Sa])throw new Error("inOwnBox: the field holds no authored text");let{[iee]:t,...r}=e;return{...r,[qb]:!0,render:o}}var Tee=new Set(cee),Zm={type:"radio",options:[{value:!0},{value:!1}]},hB={text:{type:"object",objectFields:{text:{type:"text"},hidden:Zm}},textarea:{type:"object",objectFields:{text:{type:"textarea"},hidden:Zm}},plainText:{type:"text"},copyText:{type:"text"},plainTextarea:{type:"textarea"},textList:{type:"array",arrayFields:{text:{type:"text"}}}},fs=(e,o)=>{let t=tn({...o,[Sa]:e},{...hB[e.control],label:e.label});if(!Tee.has(e.control))return t;let r=o.render;return{...fB(t,"authored-copy"),render:a=>R(gR,{name:a.name,children:r(a)})}},uDe="Everything else on this block comes from the linked post. Unlink it to edit by hand.",Pee={field:"source.slug",set:!0},mDe={not:Pee},Eee="Select a word, then press the highlighter.",_ee=new Set([Eee]),Oee=e=>_ee.has(e);function hDe(e,o,t){return fs({control:"text",label:e,placeholder:o,hint:t},{type:"custom",render:({value:r,onChange:a})=>R(ds,{value:r,onChange:a,label:e,placeholder:o,hint:t})})}function xDe(e,o,t){return fs({control:"textarea",label:e,placeholder:o,hint:t},{type:"custom",render:({value:r,onChange:a})=>R(ds,{value:r,onChange:a,label:e,placeholder:o,hint:t,multiline:!0})})}function gDe(e,o,t){return fs({control:"plainText",label:e,placeholder:o,hint:t},{type:"custom",render:({value:r,onChange:a})=>R(ds,{value:r,onChange:a,label:e,placeholder:o,hint:t,hideable:!1,markup:!1})})}function IDe(e,o,t){return fs({control:"copyText",label:e,placeholder:o,hint:t},{type:"custom",render:({value:r,onChange:a})=>R(ds,{value:r,onChange:a,label:e,placeholder:o,hint:t,hideable:!1})})}function yDe(e){return{type:"custom",[CQ]:{label:e},...tn({},{type:"text",label:e}),render:({value:o,onChange:t})=>R(gL,{value:wQ(o),onChange:t,label:e})}}function bDe(e,o,t){return fs({control:"plainTextarea",label:e,placeholder:o,hint:t},{type:"custom",render:({value:r,onChange:a})=>R(ds,{value:r,onChange:a,label:e,placeholder:o,hint:t,multiline:!0,hideable:!1})})}var xB={Design:TQ,Animation:EQ};function SDe(e,o){return{type:"custom",render:()=>R(Aee,{text:e,values:o})}}function Aee({text:e,values:o}){return R("p",{className:"sf-note",children:c(e,o)})}function gB(e){return Sr(e)!==null&&e?.tabs!==void 0}var jF=new Map;function eh(e,o){let t=`${e}\0${o?o.join(""):""}`,r=jF.get(t)??{type:"custom",tabs:o,[QF]:{label:e,level:1},bucket:e,marker:!0,render:()=>R(wa,{})};return jF.set(t,r),r}var KF=new Map;function ww(e){let o=KF.get(e)??{type:"custom",[QF]:{label:e,level:1},designGroup:e,marker:!0,...e==="Content"?{}:{fold:e},render:()=>R(wa,{})};return KF.set(e,o),o}function Ree(e){let o=e;return o?.marker===!0&&typeof o.fold=="string"?o.fold:null}function IB(e,o){return Ree(e)===o?e:{...e,marker:!0,fold:o,render:()=>R(wa,{})}}function yB(e){let o=e;if(o.marker===!0&&o.fold===void 0)return e;let{fold:t,...r}=e;return{...r,marker:!0,render:()=>R(wa,{})}}function Cw({title:e,children:o}){let[t,r]=ud(()=>!dw.has(e));return R(jQ,{title:e,open:t,onToggle:a=>{r(a),a?dw.delete(e):dw.add(e)},children:o})}var dw=new Set;function Lee({swatches:e,current:o,onPick:t,names:r}){let a=e.find(i=>i.toLowerCase()===o.toLowerCase()),n=a?r?.[a]:void 0,s=n?c(n):o;return ba("div",{className:"sf-swatches",children:[e.map(i=>{let l=r?.[i]?c(r[i]):i;return R(yw,{content:l,children:R(QQ,{color:i,selected:o.toLowerCase()===i.toLowerCase(),onClick:()=>t(i),"aria-label":l})},i)}),R("span",{className:"sf-swatch-hex",children:s})]})}function wDe(e,o,t=!1){return{type:"custom",render:({value:r,onChange:a})=>R(Fee,{label:e,builtIn:o,followsBand:t,value:r,onChange:a})}}function Fee({label:e,builtIn:o,followsBand:t,value:r,onChange:a}){let n=typeof r=="string"?r:void 0,{colors:s,n:i}=Ew(),l={background:s.background,surface:s.surface,surface2:qp(s),band:L_(s)},d=t?ot:o,f=wF(n,o,d),u=YS(void 0,d,l),p=t?cd:void 0,m=d===ot?c("the theme's section background"):c("Theme {n} background",{n:i}),h=Bee(n,o,s,i,l,a),I=cs(u.toUpperCase(),m),w=zr(n),S=w?Ni(w,s,i):null;return S?R(yt,{label:c(e),icon:R(WF,{}),value:S.hex,caption:S.words,onChange:a,changed:!0,onReset:()=>a(p),resetTo:I,choices:h}):R(qc,{label:c(e),icon:R(WF,{}),value:f?"":YS(n,o,l),inherited:u,resetTo:I,onChange:a,onReset:()=>a(p),choices:h})}function Bee(e,o,t,r,a,n){let s=SF(e,o);return[{label:c("No fill"),color:"",selected:s==="none",onPick:()=>n(qS)},{label:`${c("Section band")} \xB7 ${a.band.toUpperCase()}`,color:a.band,selected:s==="band",onPick:()=>n(ot)},...Pw(zr(e)??"",t,r,n)]}function Nee(e,o){return{type:"custom",render:({value:t,onChange:r})=>{let a=t,n=kF(a,o);return R(wo,{label:c(e),icon:R(uw,{}),changed:!n,action:R(tt,{words:ce()?.panel,label:c(e),changed:!n,detail:c("the theme's image stage"),onReset:()=>r(dd)}),children:Lee({swatches:CF,current:n?qi:XS(a,o),onPick:r,names:vF})})}}}function ol(e=t=>t,o){return xd({_gSectionTheme:wr(oO),sectionAccent:{type:"custom",render:({value:t,onChange:r})=>R(GR,{value:e(t),onChange:r,followLabel:o})}})}function tl(e){let o=So(),t=fa(e?.view),r=s=>Sw(e.valueKey,s),a=e.numbersIn??(s=>q(o[r(s)])!==void 0),n=e.followsView??Zee(t,a);return gee({props:{value:void 0,onChange:()=>{},field:{}},row:e.valueKey?e.row:void 0,table:ya,label:c(e.label),grid:e.grid,hasOwn:a(t),view:{tier:t,numbersIn:a,followsView:n},convertTo:e.convertTo??(s=>{let i=q(o[r(t)]);return i===void 0?{}:{[r(t)]:s(i)}})})}function St({min:e,max:o,step:t,value:r,onChange:a,suffix:n="",readout:s=!0,notch:i,ariaLabel:l,disabled:d=!1,placeholder:f,placeholderWord:u,onClear:p,units:m,inputMax:h}){let I=i!==void 0&&Number.isFinite(i)&&i>=e&&i<=o;return R("div",{className:I?"sf-slider has-notch":"sf-slider",style:I?{"--sf-notch":(i-e)/(o-e)}:void 0,children:R(see,{min:e,max:o,step:t,value:r,...r===null&&f!==void 0?{placeholderValue:f}:{},...u?{emptyLabel:c(u)}:{},suffix:n||void 0,...m?{units:m}:{},...h!==void 0?{inputMax:h}:{},showInput:s,label:l===void 0?void 0:c(l),disabled:d,size:"sm",boxSize:"md",className:"sf-slider-track",onChange:w=>{w===null?p?.():w!==r&&a(w)}})})}function Dee(e,o){let{min:t,max:r,step:a=1,unsetLabel:n,hint:s,restTrack:i,unsetMark:l,icon:d,unit:f="px"}=o;return{type:"custom",render:({value:u,onChange:p})=>{let m=typeof u=="number"?u:null,h=m===null;return R(wo,{label:c(e),icon:d?el(d):void 0,value:h?l||n===void 0?void 0:c(n):`${m}${f}`,changed:!h,action:l?xw(l,{changed:!h,onReset:()=>p(null)}):R(tt,{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}):St({min:t,max:r,step:a,value:m??t,readout:!1,ariaLabel:e,onChange:p})})}}}var md="Corners",Mee={kind:"radius"};function vw(e){return{type:"custom",render:o=>{let{value:t,onChange:r}=o,a=typeof t=="number"&&Number.isFinite(t)?t:null,n=a!==null;return R(wo,{label:c(md),icon:R(oB,{}),changed:n,action:xw(e.mark,{changed:n,onReset:()=>r(null)}),hint:e.hint,children:R(Hee,{tier:e,px:a,name:o.name,onRadius:r})})}}}function br(e){let o=is();return[o?.values?.[e],t=>o?.onChange(e,t)]}function gd(){return fB({type:"custom",render:()=>R(lee,{})},"always")}function mr(){let e=is();return o=>e?.onChangeMany(o)}function Hee({tier:e,px:o,name:t,onRadius:r}){let a=e.useFollowed(),[n,s]=br(e.sidesKey),i=mr(),l=tl({row:e.row??Mee,label:md,grid:{min:lt,max:Ha,step:e.step??1},valueKey:t??"",view:"desktop"}),d=$r(n)??[...Au];return R(eee,{label:c(md),value:d,corners:B1,onChange:f=>{let u=$r(f)??[];s(u.length===Au.length?null:u)},radius:o,onRadiusChange:l&&t?f=>i({[t]:f,...l.unitPatch(f===null)}):r,radiusMin:l?.grid.min??lt,radiusMax:l?.grid.max??Ha,radiusStep:l?.grid.step??e.step??1,radiusPlaceholder:l&&l.unit!=="px"?"\u2013":String(a),...l?{radiusUnit:l.unit,units:l.units}:{}})}function bB(e,o){return ss(e,o)}function SB(){return gd()}function Wee({label:e,changed:o=!1,onReset:t=()=>{}}){let{cornerRadiusPx:r}=fe(),a=typeof r=="number"?`${r}px`:c("not set");return R(tt,{words:ce()?.panel,label:c(e),changed:o,detail:r==null?c("the built-in corners"):cs(a,c("Styles")),onReset:t})}function $ee(){let{cornerRadiusPx:e}=fe();return typeof e=="number"?e:lt}function Uee(){return vw({sidesKey:"sectionCornerSides",row:Hc,useFollowed:$ee,mark:R(Wee,{label:md}),hint:zee})}var zee="Follows Styles \u25B8 Basics \u25B8 Corners until you set a number here.";function rl(){return xd({_gShape:wr("Shape"),sectionCorners:Uee(),...bB(Hc,"sectionCorners"),sectionCornerSides:SB(),...ma("sectionBorder",Xee),...ss(sd,"sectionBorder",{tablet:!0,phone:!0})})}var Gee=()=>({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 jee(e){let o=Object.fromEntries(Object.entries(e).filter(([,t])=>t!=null&&t!==""));return Object.keys(o).length?o:void 0}function Kee(){let e;try{let o=vo(fe().theme);e=o.themes[o.selected]?.line}catch{e=void 0}return e||C_.line}function Vee({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]=ud(()=>a?XQ(l,s):!1),u=Gee(),p=m=>jee(a&&n?m:{width:m.width,color:m.color,...n?{style:m.style}:{}});return R(wo,{label:c("Border"),icon:R(_Q,{}),action:a?R(YQ,{each:d,label:c("Each side"),onChange:f}):void 0,children:R(VQ,{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??Om,...i?{step:i.grid.step,units:i.units}:{}})})}function Yee({value:e,onChange:o,view:t}){let[r]=br("sectionBorder"),[a]=br(bw("sectionBorder")),n=Kee(),s=p=>p&&typeof p=="object"?p:{},i=t==="phone"?{...zS(s(r)),...zS(s(a))}:t==="tablet"?s(r):{},l=So(),d=mr(),f=ke("sectionBorder",t),u=tl({row:sd,label:"Border",grid:{min:0,max:Om,step:1},valueKey:"sectionBorder",view:t,numbersIn:p=>fw(l[Sw("sectionBorder",p)]),convertTo:p=>{let m=s(l[f]);return fw(m)?{[f]:qee(m,p)}:{}}});return R(Vee,{value:e,length:u,onChange:u?p=>d({[f]:p,...u.unitPatch(!fw(p))}):o,placeholder:{sides:qQ(i),style:i.style??"solid",color:i.color||n},presets:[n],above:i})}var wB=["width",...Am];function fw(e){if(!e||typeof e!="object")return!1;let o=e;return wB.some(t=>q(o[t])!==void 0)}function qee(e,o){let t={...e};for(let r of wB){let a=q(t[r]);a!==void 0&&(t[r]=o(a))}return t}function Xee(e){return{type:"custom",render:({value:o,onChange:t})=>R(Yee,{value:o,onChange:t,view:e})}}function Zee(e,o){let t=cw[e];for(;t&&cw[t]!==null&&!o(t);)t=cw[t];return t??e}function CDe(e){return{type:"custom",render:()=>R(Jee,{partKey:e})}}function Jee({partKey:e}){let[o]=br("id"),[t]=br("_partStyles"),{textStyles:r}=fe(),a=uee(),n=null;try{n=dee().select}catch{n=null}let s=t&&typeof t=="object"?t[e]:void 0,i=Array.isArray(r)?r:null;return R(GQ,{name:c("Text"),preview:jL(s,i,{noStyle:c("No style"),styleName:a.textStyles.styleName,cases:(a.copy.panel??pee.copy.panel).cases}),onOpen:()=>{n&&typeof o=="string"&&n(fee(o,e))}})}function CB(e){let{cornerRadiusPx:o}=fe(),t=typeof o=="number"?o:e,r=null;try{let{appState:n,selectedItem:s}=Jm(l=>l),i=s?.props?.id?String(s.props.id):void 0;r=i?JA(n?.data,i)?.props??null:null}catch{r=null}if(!r)return t;let a=r.sectionCorners;return pb(a)?a:t}function Qee({label:e,changed:o=!1,onReset:t=()=>{}}){let r=CB(lt);return R(tt,{words:ce()?.panel,label:c(e),changed:o,detail:cs(`${r}px`,c("the section")),onReset:t})}function eoe(){return R(wa,{children:c("Follows the section's Corners until you set a number here.")})}function ooe(){return vw({sidesKey:"cardCornerSides",row:Wc,useFollowed:()=>CB(lt),mark:R(Qee,{label:md}),hint:R(eoe,{})})}function toe(){return{type:"custom",render:()=>R(z1,{})}}function vB(){return{_gShape:wr("Shape"),cardCorners:ooe(),...bB(Wc,"cardCorners"),cardCornerSides:SB(),cardCornersApplyAll:toe()}}function roe(){return tn({type:"custom",[rw]:!0,render:e=>R(noe,{...e})},{type:"select",label:Rn,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 aoe(e,o){let t=gy(e);if(t!=="custom")return c(xy.find(a=>a.value===t)?.label??"");let r=cB(Fp(e,o),o);return r?[...r,100-r.reduce((a,n)=>a+n,0)].join(" / "):c("Custom")}function noe(e){let{value:o,onChange:t}=e,[r]=br("content"),a=Array.isArray(r)?r.length:0,n="follows"in e,s=o!=null,i=s?o:n?e.follows:void 0,l=gy(i),d=a>=2&&a<=UF,f=()=>[...ree[a]??[]],u=pd(null),p=S=>{let C=u.current;C&&JSON.stringify(S)===JSON.stringify(C.shares)?t(C.value):S&&t(S)},m=S=>{S===l||S==="custom"&&!d||t(S==="custom"?f():S)},h=c("The width bar works for 2 to {count} blocks.",{count:UF}),I=s&&(n||o!=="content"),w=nee().widths.hint(a,tee);return R(wo,{label:c(Rn),icon:R(qm,{}),changed:I,hint:l!=="custom"?void 0:d?w:h,action:R(tt,{words:ce()?.panel,label:c(Rn),changed:I,disabled:e.readOnly===!0,detail:n?ls(S=>c(S),aoe(e.follows,a),e.followsView):c("Fit content"),onReset:()=>t(void 0)}),children:ba("div",{className:"sf-share-row",children:[R("div",{className:"sf-share-pick",children:R(lB,{label:c(Rn),value:l,options:xy.map(S=>({value:S.value,label:S.value==="custom"&&!d?h:c(S.label),icon:nw(R("span",{className:"sf-gallery-pic sf-share-pic",children:kB(S.weights).map((C,b)=>R("i",{style:{gridColumn:`span ${C}`}},b))}),c(S.label),S.value==="custom"&&!d?h:c(S.label))})),onChange:m,columns:3,cell:TB,tooltips:!1,disabled:e.readOnly===!0})}),l==="custom"&&d?R("div",{onFocus:()=>{u.current={value:o,shares:cB(Fp(i,a),a)}},onBlur:()=>{u.current=null},children:R(aee,{label:c(Rn),count:a,value:Fp(i,a),onChange:p,readOnly:e.readOnly===!0})}):null]})})}function kB(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 vDe(){return pt(VE,R(NQ,{}),wy,wy[0].value)}function kDe(){return zo("mobile",sw(Rn,R(qm,{}),UE.map(e=>({label:e.label,value:e.value,picture:R("span",{className:"sf-gallery-pic sf-share-pic",children:kB(e.weights).map((o,t)=>R("i",{style:{gridColumn:`span ${o}`}},t))})})),zE,{columns:2,cell:TB}))}var TB={width:"5.75rem",height:"3.25rem",words:!0};function TDe(){return hw("share",roe(),pB)[bw("share")]}function soe(){return zo("mobile",Ro(yy,R(eB,{}),Bp,$E,1,Bp,"",{clear:{phoneFollows:!1,hint:Bp}}))}var VF={read:e=>e.phoneRow,write:(e,o,t)=>({phoneRow:t}),fieldKey:()=>"phoneRow",ownField:!0};function PDe(){let e=Ro(yy,R(eB,{}),by,GE,1,by,"",{clear:{emptyLabel:"Auto"}}),o=hw("columns",e,{...VF,tablet:pB.tablet}),t=hw("columns",e,VF,{phoneRow:soe()});return{...o,phoneRow:t.phoneRow}}function EDe(e,o,t,r,a,n,s){return{type:"custom",render:({value:i,onChange:l,name:d})=>R(ioe,{label:e,min:o,max:t,step:r,fallback:a,role:n,value:i,onChange:l,name:d??"",length:s})}}function ioe({label:e,min:o,max:t,step:r,fallback:a,role:n,value:s,onChange:i,name:l,length:d}){let f=So(),u=mr(),p=fa(d?.view),m=tl({row:d?.row??{kind:"fontSize"},label:e,grid:{min:o,max:t,step:r},valueKey:d?l:"",view:d?.view??"desktop",numbersIn:I=>I===p&&typeof f[l]=="number",followsView:p,convertTo:I=>typeof f[l]=="number"?{[l]:I(f[l])}:{}}),h=I=>m?u({[l]:I,...m.unitPatch(typeof I!="number")}):i(I);return R(wo,{label:c(e),icon:R(Fb,{noun:n}),action:R(tt,{words:ce()?.panel,label:c(e),changed:!TF(s),detail:c("the Text style in Styles"),onReset:()=>h(rs),defaultAction:{onPress:()=>h(Dm),title:c("Keep this section's own built-in size"),icon:R(OQ,{})}}),children:St({min:m?.grid.min??o,max:m?.grid.max??t,step:m?.grid.step??r,value:typeof s=="number"?s:a,...m?{suffix:m.unit,units:m.units}:{suffix:"px"},ariaLabel:e,onChange:h})})}function Vm(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:wr("Cell size"),gridSpan:zo("desktop",pt("Positions",R(qm,{}),Vm(Mu,"position","positions"),"")),gridRowSpan:zo("desktop",pt("Rows tall",R(Xm,{}),Vm(Wu,"row","rows"),"")),[Bi]:Ro("At card",R(rB,{}),1,Ab,1,1,""),[en("gridSpan")]:zo("mobile",pt("Positions",R(qm,{}),[{label:"Full row",value:""},...Vm(Hu,"position","positions").slice(1)],"")),[en("gridRowSpan")]:zo("mobile",pt("Rows tall",R(Xm,{}),Vm(Wu,"row","rows"),""))}}function So(){let e=null,o=null;try{e=ZF(kw),o=Jm(t=>t).selectedItem}catch{o=null}return e??o?.props??{}}var kw=yQ(null);function loe({min:e,max:o,step:t,px:r,label:a,onChange:n,desktopKey:s,fallback:i}){let l=So()[s],d=rm(void 0,l,i);return R(wa,{children:St({min:e,max:o,step:t,value:rm(r,l,i),readout:!1,ariaLabel:a,notch:d,onChange:n})})}function coe({label:e,desktopKey:o,fallback:t,unit:r="px",changed:a=!1,onReset:n=()=>{}}){let s=So()[o],i=rm(void 0,s,t);return R(tt,{words:ce()?.panel,label:c(e),changed:a,detail:ls(l=>c(l),`${i}${r}`),onReset:n})}function doe(e){return Dee(e.label,{icon:e.icon,min:e.min,max:e.max,step:e.step,unit:e.unit,unsetLabel:"Follows Desktop",unsetMark:R(coe,{label:e.label,desktopKey:e.desktopKey,fallback:e.fallback,unit:e.unit}),restTrack:o=>R(loe,{...o,desktopKey:e.desktopKey,fallback:e.fallback})})}var foe={Top:"Padding top",Bottom:"Padding bottom",Left:"Padding left",Right:"Padding right"},poe={Top:gw,Bottom:aB,Left:nB,Right:sB},uoe=e=>{let o=poe[e];return R(o,{})};function EB(e={}){let o=e.keys?.top??"sectionPaddingTop",t=e.keys?.bottom??"sectionPaddingBottom",r=e.group!==!1,a=w=>foe[w],n=w=>Ro(a("Top"),R(gw,{}),Gt.min,Gt.max,Gt.step,w,"px"),s=(w,S,C,b=Gt)=>zo("mobile",doe({label:a(w),icon:uoe(w),desktopKey:S,min:b.min,max:b.max,step:b.step,fallback:C})),i=e.top??Gt.min,l=e.bottom??Gt.min,d="sectionPaddingLeft",f="sectionPaddingRight",u=e.sideBounds??Gt,p=e.side??u.min,m=e.sidePhone??p,h=e.phone===!0,I=w=>h?zo("desktop",w):w;return xd({...r?{_gSpacing:wr("Padding")}:{},[o]:I(n(i)),...h?{[en(o)]:s("Top",o,i)}:{},...e.only==="top"?{}:{[t]:I(Ro(a("Bottom"),R(aB,{}),Gt.min,Gt.max,Gt.step,l,"px")),...h?{[en(t)]:s("Bottom",t,l)}:{}},...e.sides?{[d]:I(Ro(a("Left"),R(nB,{}),u.min,u.max,u.step,p,"px")),...h?{[en(d)]:s("Left",d,m,u)}:{},[f]:I(Ro(a("Right"),R(sB,{}),u.min,u.max,u.step,p,"px")),...h?{[en(f)]:s("Right",f,m,u)}:{}}:{}})}function _De(e,o){let t=Object.fromEntries(Object.entries(o).map(([n,s])=>[n,n in e&&Sr(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 on="Width";function al(e,o=EF,t=!0){let r=o.map(a=>({label:as[a],value:a}));return xd({...t?{_gWidth:wr(on)}:{},widthMode:{type:"custom",render:({onChange:a,field:n})=>R(wo,{label:c(on),icon:R(zQ,{}),action:t?R(kee,{inherited:n?.inherited??!1,onReset:()=>a(ew),label:on}):void 0,children:fd({options:r,value:n?.currentValue||e,onChange:a,ariaLabel:on})})}})}function nl({fill:e=!1}={}){let o=(a,n)=>({type:"custom",render:({value:s,onChange:i})=>R(moe,{value:s,onChange:i,view:a,badge:n,fill:e})}),t=()=>mw("sectionHeightMode"),r=()=>mw("sectionHeightMode");return xd({_gHeight:wr(Pi),...ma("sectionHeightMode",a=>a==="desktop"?o(a):o(a,n=>R(Ioe,{view:a,onClear:()=>n(void 0)}))),...ma("sectionHeightValue",t),...ma("sectionHeightUnit",r)})}function moe({value:e,onChange:o,view:t,badge:r,fill:a=!1}){let n=So(),{mode:s,number:i,unit:l}=hoe(t,n,e);return R(wo,{label:Pi,icon:el(R(Xm,{})),action:r?r(o):void 0,children:ba("div",{className:"es-width-stack",children:[fd({options:[{label:"Auto",value:"auto"},{label:"Fixed",value:"fixed"},{label:"Screen",value:"screen"},...a?[{label:"Fill",value:"fill"}]:[]],value:s,onChange:o,ariaLabel:Pi}),i?R(goe,{view:t,mode:s,menu:l}):null]})})}function _B(e,o){return e==="phone"&&iu(o)?CO(o):bO(o)}function oh(e,o){return e==="desktop"||(e==="tablet"?iu(o):wO(o))?null:_B(e,o)}function hoe(e,o,t){let r=(a=>gO.includes(a))(t)?t:oh(e,o)?.mode??"auto";return{mode:r,number:r!=="auto"&&r!=="fill",unit:r==="fixed"}}function xoe(e,o,t,r){let a=oh(e,o);return!a||e==="desktop"?null:r===void 0?{}:{[ke("sectionHeightMode",e)]:a.mode,...a.mode==="fixed"?{[ke("sectionHeightUnit",e)]:a.unit}:{},...t==="sectionHeightUnit"?{[ke("sectionHeightValue",e)]:a.value}:{},[ke(t,e)]:r}}function YF(e,o,t){let r=is(),a=oh(e,So());return!r||!a?{followed:null,write:t}:{followed:a,write:n=>r.onChangeMany(s=>{let i=xoe(e,s,o,n);return i===null?{[ke(o,e)]:n}:Object.keys(i).length?i:null})}}function goe({view:e,mode:o,menu:t}){let r=is(),a=So(),n=ke("sectionHeightValue",e),s=ke("sectionHeightUnit",e),i=w=>S=>r?.onChangeMany(()=>({[w]:S})),{followed:l,write:d}=YF(e,"sectionHeightValue",i(n)),{write:f}=YF(e,"sectionHeightUnit",i(s)),u=o==="screen"?"%":a[s],p=(l?l.unit:u)==="%"?"%":"px",m=p==="%"?yO:IO,h=a[n],I=t?{options:["px","%"],label:c("Unit"),onChange:w=>f(w)}:void 0;return St({min:m.min,max:m.max,step:m.step,value:l?null:typeof h=="number"?h:m.fallback,...l?{placeholder:l.value}:{},suffix:p,...I?{units:I}:{},ariaLabel:Pi,onChange:d})}function Ioe({view:e,onClear:o}){let t=So(),r=oh(e,t)===null,a=e==="phone"&&iu(t),n=_B(e,t),s=ls(i=>c(i),n.mode==="auto"?c("Auto"):`${n.value}${n.unit}`,a?"tablet":"desktop");return R(tt,{words:ce()?.panel,label:c(Pi),changed:r,detail:s,onReset:o})}function Id(e={}){let o=e.intro===!0,t=n=>({type:"custom",render:({value:s,onChange:i,id:l,name:d})=>R(koe,{value:s,onChange:i,labelId:`${l??d??"stickTop"}-label`,view:n,intro:o})}),r=n=>({type:"custom",render:({value:s,onChange:i})=>R(woe,{value:s,onChange:i,view:n,intro:o})}),a=n=>({type:"custom",render:({value:s,onChange:i})=>R(Coe,{value:s,onChange:i,view:n,intro:o})});return{_gStick:wr(YL,{dot:o?Soe:Ki}),...ma("stickTop",t),...ma("stickTopDistance",r),...ss(nd,"stickTopDistance",{tablet:!0,phone:!0}),...e.screens?ma(yr,a):{},...o?{}:{[os]:yoe()},...o||e.above===!1?{}:{[Ja]:boe()}}}function yoe(){let e=pt(qL,R(gw,{}),XL,ZL);return zo("desktop",{...e,render:o=>{let t=e.render({...o,value:DS(o.value),onChange:r=>o.onChange(QL(r))});return xw(t,{hint:c(JL)})}})}function boe(){let e=AB(eF,!1,R(iB,{}),oF);return zo("desktop",{...e,render:o=>e.render({...o,onChange:t=>o.onChange(t===!0?!0:void 0)})})}var Soe={any:[Ki,Em]};function OB(e,o,t,r,a){let n=is(),s=So(),i=e==="desktop"||hd(e,s)?null:Tw(e,Vi(s,{intro:r}));return{followed:i,write:(i||a)&&n?l=>n.onChangeMany(d=>{let f=voe(e,d,l,o,r),u=f===null?{[ke(o,e)]:l}:f;return Object.keys(u).length?{...u,...a?.(l)??{}}:null}):t}}function woe({value:e,onChange:o,view:t,intro:r}){let a=So(),n=Vi(a,{intro:r}),s=f=>{let u=vi(f);return u==="desktop"||hd(u,a)},i=tl({row:nd,label:"Distance from top",grid:{min:jt.min,max:jt.max,step:jt.step},valueKey:"stickTopDistance",view:t,numbersIn:f=>s(f)&&q(a[Sw("stickTopDistance",f)])!==void 0,followsView:t==="phone"&&n.ownTablet?"tablet":"desktop"}),{followed:l,write:d}=OB(t,"stickTopDistance",o,r,i?f=>i.unitPatch(f===void 0):void 0);return R("div",{className:"sf-field",children:St({min:i?.grid.min??jt.min,max:i?.grid.max??jt.max,step:i?.grid.step??jt.step,value:l?null:typeof e=="number"?e:jt.fallback,...l?{placeholder:l.distance}:{},...i?{suffix:i.unit,units:i.units}:{suffix:"px"},ariaLabel:c("Distance from top"),onChange:d})})}function Coe({value:e,onChange:o,view:t,intro:r}){let{followed:a,write:n}=OB(t,yr,o,r);return R(wo,{label:c(NS),icon:el(R(Xm,{})),children:St({min:Km.min,max:Km.max,step:Km.step,value:a?null:q(e)??Km.default,...a?{placeholder:a.screens}:{},ariaLabel:c(NS),onChange:n})})}function hd(e,o){return e==="tablet"?HS(o):WS(o)}function Tw(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 voe(e,o,t,r="stickTopDistance",a=!1){if(e==="desktop"||hd(e,o))return null;if(t===void 0)return{};let n=Tw(e,Vi(o,{intro:a})),s=e==="phone"&&hd("tablet",o)?f=>ke(f,"tablet"):f=>f,i=(f,u)=>o[s(f)]==null?{}:{[ke(f,e)]:u},l=nd.unitKey,d=o[s(l)]==null?{}:{[ke(l,e)]:n.unit};return{[ke("stickTop",e)]:!0,...i("stickTopDistance",n.distance),...d,...i(yr,n.screens),[ke(r,e)]:t}}function koe({value:e,onChange:o,labelId:t,view:r,intro:a}){let n=So(),s=Vi(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:Tw(r,s),f=d?.on?Me(d.distance,d.unit):c("Off");return R(wo,{label:c(FS),labelId:t,icon:el(R(iB,{})),action:ba(wa,{children:[r!=="desktop"?R(tt,{words:ce()?.panel,label:c(FS),changed:hd(r,n),detail:ls(u=>c(u),f,l?"tablet":"desktop"),onReset:()=>o(void 0)}):null,R(Iw,{checked:i,onChange:o,ariaLabelledBy:t})]})})}var qF="e.g. about";function sl(){return{_gAnchor:wr("Anchor"),anchor:fs({control:"plainText",label:"Name",placeholder:qF},{type:"custom",render:({value:e,onChange:o})=>R(NA,{value:e,onChange:o,nameBox:(t,r)=>R(ds,{value:t,onChange:r,label:"Name",placeholder:qF,hideable:!1,markup:!1})})})}}function ODe(e,o,t){return{type:"custom",render:({value:r,onChange:a,id:n,name:s})=>{let i=`${n??s??e}-datetime`,l=Date.parse(typeof r=="string"?r:"");return R(wo,{label:c(e),icon:o,htmlFor:i,hint:t===void 0?void 0:c(t),children:R(oee,{id:i,value:Number.isFinite(l)?new Date(l):null,onChange:d=>a(d?d.toISOString():"")})})}}}function AB(e,o,t,r){return{type:"custom",...tn({},{...Zm,label:e}),render:a=>{let{value:n,onChange:s,id:i,name:l}=a,d="follows"in a,f=a,u=typeof n=="boolean",p=typeof f.follows=="boolean"?f.follows:o,m=u?n:d?p:o,h=`${i??l??e}-label`,I=f.readOnly===!0,w=R(Iw,{checked:m,onChange:s,disabled:I,ariaLabelledBy:h});return R(wo,{label:c(e),labelId:h,icon:t,hint:r===void 0?void 0:c(r),action:d?ba(wa,{children:[R(tt,{words:ce()?.panel,label:c(e),changed:u,detail:f.followsNoView?c(p?"On":"Off"):ls(S=>c(S),c(p?"On":"Off"),f.followsView),disabled:I,onReset:()=>s(void 0)}),w]}):w})}}}function RB(){return{type:"custom",render:({value:e,onChange:o,id:t,name:r})=>{let a=`${String(t??r??"pageBackground")}-colour`;return R(Toe,{label:"Background",icon:R(HQ,{}),id:a,value:e,shown:Db(e),onChange:o})}}}function ADe(e,o,t){return{type:"custom",render:({value:r,onChange:a})=>R(yt,{label:c(e),icon:t,value:r||o,onChange:a})}}function Toe({label:e,icon:o,id:t,value:r,shown:a,onChange:n}){let{colors:s,n:i}=Ew(),l=zr(r),d=l?Ni(l,s,i):null;return R(yt,{label:c(e),icon:o,id:t,value:d?d.hex:a,caption:d?.words,onChange:n,choices:Pw(l??"",s,i,n)})}function RDe(){return{type:"custom",render:e=>{let{value:o,onChange:t}=e,r=e;return R(Poe,{value:typeof o=="string"?o:"",onChange:t,twin:"follows"in e?{follows:r.follows,view:r.followsView}:void 0})}}}function Pw(e,o,t,r){let a=Ju(e);return $A(o,t).map(n=>({label:n.label,color:n.value,selected:a===n.name,onPick:()=>r(n.name)}))}function Poe({value:e,onChange:o,twin:t}){let{colors:r,n:a}=Ew(),n=r.background,s=cs(n.toUpperCase(),c("Theme {n} background",{n:a})),[i,l]=br(ZA),[d]=br($b),f=typeof d=="string"&&d.trim()!=="",u=Xu(i),p=y=>l(Xu(y)||void 0),m=Ju(e),h=m?Ni(m,r,a):null,I=Pw(e,r,a,o),w=t?()=>o(void 0):()=>o(""),S=n,C=s;if(t){let y=Ju(t.follows),v=Zu(t.follows),L=y?Ni(y,r,a):v?{hex:v,words:v.toUpperCase()}:null;S=L?.hex??n,C=ls(A=>c(A),L?L.words:s,t.view)}let b=!t&&(Kc(e)||f)?R(Eoe,{value:u,onChange:p}):null;return h?R(yt,{label:c("Fill"),icon:R(uw,{}),value:h.hex,caption:h.words,onChange:o,changed:!0,onReset:w,resetTo:C,choices:I,children:b}):R(qc,{label:c("Fill"),icon:R(uw,{}),value:e,inherited:S,resetTo:C,onChange:o,onReset:w,choices:I,children:b})}function Eoe({value:e,onChange:o}){return fd({options:qu.map(t=>({label:t.label,value:t.value,hint:t.hint})),value:e,onChange:o,ariaLabel:c("Fill")})}function _oe(e,o,t){if((e?.content??[]).some(n=>n?.props?.id===o))return Wr(t);let r=QA(e,o);if(r.length===0)return null;let a=Wr(Mn(t));if(a!==null)return a;for(let n=r.length-1;n>0;n-=1){let s=Wr(Mn(r[n].sectionAccent));if(s!==null)return s}return Wr(r[0].sectionAccent)}function Ew(){let e=vo(fe().theme),[o]=br("sectionAccent"),t=null;try{let{appState:a,selectedItem:n}=Jm(i=>i),s=n?.props?.id?String(n.props.id):void 0;t=s?_oe(a?.data,s,o):null}catch{t=null}let r=t!==null&&e.themes[t]?t:e.selected;return{colors:gt(e.themes[r]),n:r+1}}function LDe(){return gd()}var LB={top:R(FQ,{}),right:R(LQ,{}),bottom:R(AQ,{}),left:R(RQ,{})};function FB(e,o,t,r,a,n,s){let i=u=>o.find(p=>p.value===u),l=u=>({value:u,label:"",disabled:!0,title:r}),d=u=>{let p=o.find(h=>h.cell===u);if(!p)return l(`missing-${u}`);let m=n?.[u];return m?{value:p.value,label:p.label,icon:m}:{value:p.value,label:p.label}},f=[l("corner-top-left"),d("top"),l("corner-top-right"),d("left"),l("centre"),d("right"),l("corner-bottom-left"),d("bottom"),l("corner-bottom-right")];return{type:"custom",render:({value:u,onChange:p})=>{let m=o.some(h=>h.value===u)?u:t;return R(wo,{label:c(e),icon:a,value:i(m)?.label?c(i(m).label):s?c(s):"",children:xee(c,{label:e,value:m,onChange:p,points:f})})}}}function FDe(e,o,t){return{type:"custom",options:o,render:({value:r,onChange:a,field:n})=>R(TR,{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 BDe(e,o={}){return{type:"custom",render:({value:t,onChange:r})=>{let a={value:t,onChange:r,...o};return R(e,{...a})}}}var Ooe={image:"Image",video:"Video"},NDe=Hn.map(e=>({label:Ooe[e],value:e}));function DDe(e,o,t){let r=Object.keys(rb).map(a=>({label:rb[a],value:a,picture:t[a]}));return{type:"custom",...tn({},{type:"radio",label:e,options:r.map(a=>({value:a.value,label:a.label}))}),render:({onChange:a})=>R(Roe,{label:e,icon:o,options:r,onChange:a})}}function Aoe(e,o,t){let r=u1(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=p1(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 Roe({label:e,icon:o,options:t,onChange:r}){let a=is(),n=a?.values??{},s=Nc(n),i=ZF(SQ),l=Ou(i?.docId??null),d=null;try{d=Jm(u=>u.appState.data)}catch{d=null}let f=R1(a?.id,d,l);return R(wo,{label:c(e),icon:el(o),hint:Aoe(n,f,i?.hasUnsavedEdits??!1),children:fd({options:t,value:s,onChange:r,ariaLabel:e})})}function MDe(e,o,t,r={}){let a={type:"custom",[vQ]:!0,render:({value:n,onChange:s,name:i})=>R(vR,{value:n||"",onChange:s,fieldKey:i,label:e,accept:o,placeholder:t,focusKey:r.focus,focusWhen:r.focusWhen,frameKey:r.frame}),...r.focus?{focusKey:r.focus}:{},...r.focusWhen?{focusWhen:r.focusWhen}:{}};return r.focus?zo("each",a):a}var HDe={HeroSingle:[Wn.image],HeroSlide:["videoFrame","videoFramePhone"],ContactLocations:["locations[].photo"],ProcessSteps:["steps[].image"]};function Loe(e){let o=c(e.status??"");return e.ok&&typeof e.lat=="number"&&typeof e.lng=="number"?`${o} \xB7 ${e.lat.toFixed(4)}, ${e.lng.toFixed(4)}`:o}function WDe({value:e,onChange:o,label:t}){let r=e||{},a=is(),n=a?a.values!==a.node.props:!0,s=!!r.pending&&n,i=!!r.pending&&!n,l=!!Ge(mee()).geocode,d=JF(),f=(u,p)=>o({...r,[u]:p??void 0});return ba(wa,{children:[R(wo,{label:c(t),icon:R($F,{}),action:l?R(yw,{content:c("Find from the address (OpenStreetMap)"),children:R(dB,{"aria-label":c("Find from the address"),"aria-busy":s||void 0,disabled:s,onClick:()=>o({...r,pending:!0,ok:!1,status:"Finding\u2026"}),children:R(WQ,{})})}):void 0,children:l&&r.status?R(DA,{compact:!0,oneLine:!0,spaced:!1,status:s?"busy":r.ok&&!i?"found":"notfound",statusText:s?c("Finding\u2026"):i?c(jb):c(r.status),hint:Loe(r)}):null}),R(wo,{label:c("Enter by hand"),labelId:d,icon:R(BQ,{}),action:R(Iw,{checked:!!r.manual,onChange:u=>o({...r,manual:u}),ariaLabelledBy:d})}),r.manual&&R(wo,{label:c("Latitude, longitude"),icon:R($F,{}),children:ba("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:8,width:"100%",minWidth:0},children:[R(zF,{value:typeof r.lat=="number"?r.lat:null,onChange:u=>f("lat",u),min:-90,max:90,step:1e-4,placeholder:c("Latitude")}),R(zF,{value:typeof r.lng=="number"?r.lng:null,onChange:u=>f("lng",u),min:-180,max:180,step:1e-4,placeholder:c("Longitude")})]})})]})}function Foe(e,o){return o===null||o<0||o>=e.length?"":e[o]?.text??""}function Boe(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 Noe(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 _w={label:"Ticker items",icon:R(MQ,{})};function $De(e,o,t,r){return{type:"custom",[Sa]:{control:"textList",label:e,placeholder:t,itemKey:"text",rendering:r},...tn({},{...hB.textList,label:e}),render:({value:a,onChange:n})=>R(Ow,{label:e,icon:el(o),items:Array.isArray(a)?a:[],placeholder:t,onChange:n,markup:r==="markup"})}}function Ow({label:e,icon:o,items:t,placeholder:r,onChange:a,markup:n=!1}){let s=pd(null),[i,l]=ud(null),d=u=>u.map(p=>({text:p?.text??""})),f=u=>{let p=Noe(t,u,i);p===null&&(s.current=null),l(p),a(d(u))};return R(ZQ,{label:c(e),icon:o,noun:c("item"),items:t,onChange:f,newItem:()=>({text:""}),open:null,onOpen:()=>{},renderItem:()=>null,above:n?R(Yb,{target:s,value:Foe(t,i),onChange:u=>a(Boe(t,i??-1,u)),disabled:i===null,label:i===null?c("Formatting \u2014 click a row first"):c("Formatting \u2014 row {n}",{n:i+1})}):void 0,renderRow:(u,p,m)=>R("input",{type:"text",className:n&&i===p?"sf-list-marking":void 0,value:u?.text??"",placeholder:c(r),"aria-label":c("{label} {n}",{label:c(e),n:p+1}),onChange:h=>m({text:h.target.value}),onFocus:h=>{s.current=h.currentTarget,l(p)}})})}function BB(e,o){let t=`${e.label} \u2014 row ${o+1}`;return fs({control:"plainText",label:t,placeholder:e.placeholder,offPage:e.offPage},{type:"custom",render:({value:r,onChange:a})=>R(ds,{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 NB(e){return{_gCards:wr("Cards"),coverIndex:pt("Cover image",R(DQ,{}),SR,String(1),e?.coverHint??"A card's opening picture \u2014 a card pinned to a finish keeps its own."),imageBackground:Nee("Image background",Nm),cardImage:MB()}}function UDe(){return{outline:pt("Card outline",R($Q,{}),bR,yR),indexBadge:pt("Card number",R(rB,{}),eS,Qb),showBadge:AB("Product badge",!0,R(Fb,{noun:"tag"}))}}function DB(e){let o=e?.defaults??{showCardSizes:!0,showCardBuy:!0,showCardPage:!0},t=a=>({...Zm,label:Ym.find(n=>n.id===a).label}),r=a=>tn(mw(pw),t(a));return{_gShowOnCard:wr("Show on a card"),[pw]:tn({type:"custom",render:()=>R(Doe,{rest:{showCardPrice:!0,showCardFinishes:!0,...o}})},t(pw)),showCardFinishes:r("showCardFinishes"),showCardSizes:r("showCardSizes"),showCardBuy:r("showCardBuy"),showCardPage:r("showCardPage")}}var pw="showCardPrice",Ym=[{id:"showCardPrice",label:"Price"},{id:"showCardFinishes",label:"Finish swatches"},{id:"showCardSizes",label:"Sizes"},{id:"showCardBuy",label:"Buy button"},{id:"showCardPage",label:"Page button"}];function Doe({rest:e}){let o=So(),t=mr(),r=s=>typeof o[s]=="boolean"?o[s]:void 0,a=s=>r(s)??e[s],n=Ym.some(({id:s})=>r(s)!==void 0&&r(s)!==e[s]);return R(il,{parts:Ym,changed:n,shown:a,onPress:(s,i)=>t({[s]:i}),onReset:()=>t(Object.fromEntries(Ym.map(({id:s})=>[s,void 0])))})}function zDe(e,o="display"){let t=en(o);return{[o]:zo("desktop",{type:"custom",render:({value:r,onChange:a})=>R(il,{parts:e,changed:aR(r),shown:n=>om(r,n),onPress:(n,s)=>a(sR(r,n,s)),onReset:()=>a(void 0)})}),[t]:zo("mobile",{type:"custom",render:({value:r,onChange:a})=>R(Moe,{parts:e,desktopKey:o,value:r,onChange:a})})}}function il({parts:e,changed:o,shown:t,onPress:r,onReset:a,detail:n,disabledReason:s}){let i=c("Display");return R(wo,{label:i,icon:R(PQ,{}),changed:o,action:R(tt,{words:ce()?.panel,label:i,changed:o,detail:n,onReset:a}),children:R(JQ,{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 Moe({parts:e,desktopKey:o,value:t,onChange:r}){let a=So()[o];return R(il,{parts:e,changed:nR(t),shown:n=>Gb(a,t,n),onPress:(n,s)=>r(iR(t,n,s)),onReset:()=>r(am),detail:c("the same as Desktop")})}function MB(e=tA){return Ro("Card image",R(oB,{}),lt,Ha,oA,lt,e,{clear:{hint:lt},hint:"Rounds the picture. The card's own corner is in Styles."})}function Hoe(){return ss(kb,"cardImage")}function GDe(){return{cardImage:MB(kb),...Hoe()}}function jDe(){return vw({sidesKey:"cornerSides",row:aA,step:nA,useFollowed:()=>lt,mark:R(Woe,{label:sA}),hint:c("Rounds the picture. Left alone it stays square.")})}function Woe({label:e,changed:o=!1,onReset:t=()=>{}}){return R(tt,{words:ce()?.panel,label:c(e),changed:o,onReset:t})}function KDe(){return{type:"custom",render:({value:e,onChange:o})=>R(Goe,{value:typeof e=="string"?e:"",onChange:o})}}var XF="own";function VDe(){let e=[{value:XF,label:"Layout's own",picture:lw(Array.from({length:8},()=>[3,1]))},...Object.entries(Du).map(([o,t])=>({value:o,label:t.label,picture:lw([...t.phone,...t.phone])}))];return zo("mobile",sw("Layout",R(tB,{}),e,XF,{columns:2,cell:HF}))}function $oe({layout:e,width:o}){let t=_b(e),r=t?`${t[0]}/${t[1]}`:void 0;return R("span",{"aria-hidden":"true",style:{display:"grid",width:o,gridTemplateColumns:"repeat(12, minmax(0, 1fr))",gridAutoRows:r?"auto":6,gridAutoFlow:"row dense",gap:2},children:uA(e).map(([a,n],s)=>R("i",{className:"block rounded-xs bg-current opacity-60",style:{gridColumn:`span ${a}`,gridRow:`span ${n}`,aspectRatio:r}},s))})}var Uoe={width:"3.5rem",height:"2.5rem",words:!1},zoe=200;function Goe({value:e,onChange:o}){let[t,r]=ud(null),[a,n]=ud(4),s=pd(null);bQ(()=>{let m=s.current;if(!m||typeof ResizeObserver!="function")return;let h=()=>n(m.getBoundingClientRect().width>=zoe?4:3);h();let I=new ResizeObserver(h);return I.observe(m),()=>I.disconnect()},[]);let i=e?$(zc,e):void 0,l=i?e:"",d=Pb(t,l),f=Pb(t,"").length,u=$u("no-symbol"),p=[{value:"",label:c("Not chosen"),icon:MF(u,c("Not chosen"))},...d.map(m=>({value:m,label:c(zc[m].label),icon:R($oe,{layout:zc[m],width:40})}))];return R(wo,{label:c("Layout"),icon:R(tB,{}),value:i?c(i.label):void 0,children:R("div",{ref:s,style:{flex:"1 1 auto",minWidth:0},children:R(lB,{label:c("Layout"),value:l,options:p,onChange:o,columns:a,cell:Uoe,header:ba("div",{className:"mb-2 flex flex-col gap-1",style:{minWidth:"11rem"},children:[R("span",{className:"text-2xs text-ink-faint",children:c("Photos in a row")}),R(KQ,{options:[{id:"all",label:c("All")},...dA.map(m=>({id:String(m),label:String(m)}))],value:t===null?"all":String(t),ariaLabel:c("Photos in a row"),onChange:m=>r(m==="all"?null:Number(m))}),R("span",{className:"text-2xs text-ink-faint",children:c("{n} of {total} layouts",{n:f,total:Tb.length})})]})})})})}import{decodePartId as ite}from"efficient-easel/draw";import{decodePartId as bd,encodePartId as qr}from"efficient-easel/draw";import{LINK_FIELD_MARKER as YB,SCAFFOLD_FIELD_MARKER as KB,TEXT_FIELD_MARKER as sh}from"efficient-easel/draw";import{readHidable as qB}from"efficient-easel/draw";import{SCALAR_TEXT_CONTROLS as Zoe}from"efficient-easel/draw";import{TEXT_FIELD_MARKER as Xoe}from"efficient-easel/draw";import{TEXT_FIELD_MARKER as HB}from"efficient-easel/draw";import{readHidable as WB}from"efficient-easel/draw";import{SCALAR_TEXT_CONTROLS as joe}from"efficient-easel/draw";var Koe=joe,Voe=["text","textarea"],Yoe=["textarea","plainTextarea"];function qoe(e){return!e||typeof e!="object"?null:e[HB]?.control??null}function ll(e){let o=qoe(e);return o&&Koe.includes(o)?o:null}function th(e){return Yoe.includes(e)}function $B(e){return!e||typeof e!="object"?void 0:e[HB]?.placeholder}function rh(e){return WB(e).text}function Aw(e,o,t){return Voe.includes(e)?{text:t,hidden:WB(o).hidden}:t}function UB(e,o,t,r){return rh(e[o])===r?null:{...e,[o]:Aw(t,e[o],r)}}function Yr(e,o){return o?`${e}[${o.index}].${o.rowKey}`:e}function Cr(e){let o=/^([A-Za-z0-9_$]+)\[(\d+)\]\.([A-Za-z0-9_$]+)$/u.exec(e);return o?{key:o[1],row:{index:Number(o[2]),rowKey:o[3]}}:{key:e,row:null}}function ah(e){if(!(!e||typeof e!="object"))return e[Xoe]}function Rw(e){if(!e||typeof e!="object")return null;let o=e.arrayFields;return o&&typeof o=="object"?o:null}function zB(e,o){if(!Array.isArray(o))return[];let t=ah(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=Rw(e);return a?(o.forEach((n,s)=>{for(let[i,l]of Object.entries(a)){if(!ll(l))continue;let d=rh(n?.[i])||ah(l)?.placeholder||"";d&&r.push({row:{index:s,rowKey:i},text:d})}}),r):[]}function yd(e,o){if(Array.isArray(e))return e[o.index]?.[o.rowKey]}function Lw(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 GB(e,o,t,r,a){let n=yd(e[o],t);return rh(n)===a?null:Lw(e,o,t,Aw(r,n,a))}function jB(e,o){return o?`${e} \xB7 row ${o.index+1}`:e}var co="data-sf-part",nn="data-sf-region-part",Fw="data-sf-part-row";function XB(e,o){return`${e}[${o}]`}var ZB="data-sf-part-kind",Bw="data-sf-part-style-owner",Sd="data-sf-part-style-kind";function wd(e){for(let o=e;o;o=o.parentElement){let t=o.getAttribute(Bw),r=o.getAttribute(Sd);if(t&&r)return{owner:t,kind:r};if(o.getAttribute("data-easel-block"))return null}return null}var VB=2;function an(e){return sa(e).replace(/\s+/gu,"")}function nh(e,o,t){let r=e[sh];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}=qB(o);a?t.push(a):r.placeholder&&t.push(r.placeholder);return}if(!e[YB]){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))nh(s,a?.[n],t);return}if(e.objectFields&&o&&typeof o=="object")for(let[a,n]of Object.entries(e.objectFields))nh(n,o[a],t)}}function Nw(e){if(!e||typeof e!="object")return!1;let o=e;return o[YB]?!1:!!o[sh]||o.type==="text"||o.type==="textarea"}function ih(e,o){let t=e[sh];return t?.label?t.label:typeof e.label=="string"?e.label:o}function Cd(e){let o=e.indexOf(" (");return(o>0?e.slice(0,o):e).trim()}function JB(e,o,t){if(!e)return[];let r=[];for(let[a,n]of Object.entries(e)){if(!n||typeof n!="object"||Yn(a))continue;let s=n,i=[];nh(s,o?.[a],i),!i.length&&s[KB]!==void 0&&nh(s,s[KB],i);let l=ih(s,a);if(t?.(a)&&Nw(s)){i.length&&r.push({key:a,label:l,texts:[],keyed:!0});continue}let d=new Set;for(let{row:p,text:m}of zB(s,o?.[a])){let h=an(m);h.length<VB||(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=an(p);m.length<VB||f.has(m)||(f.add(m),u.push(m))}u.length&&r.push({key:a,label:l,texts:u})}return r}function Dw(e){return!e.offPage&&!e.hidden&&e.panelOnly!==!0}var Joe=Zoe;function QB(e,o){if(!o||typeof o!="object"||Yn(e)||pR(o))return null;let t=o[sh];return!t||!Joe.includes(t.control)?null:t}function Mw(e,o){let t=QB(e,o);return t!==null&&t.identifier!==!0}function eN(e,o){if(!e)return[];let t=[];for(let[r,a]of Object.entries(e)){let n=QB(r,a);if(!n)continue;let{text:s,hidden:i}=qB(o?.[r]);if(Dw({offPage:n.offPage===!0,hidden:!!i,panelOnly:Ui(a)}))continue;let l=s||n.placeholder||"",d=sa(l).replace(/\s+/gu," ").trim();t.push({key:r,label:Cd(ih(a,r)),preview:d,offPage:n.offPage===!0,identifier:n.identifier===!0,hidden:!!i})}return t}function cl(e,o){let t=ah(e);return t?.control==="textList"?o.rowKey===(t.itemKey??"text")?BB(t,o.index):null:Rw(e)?.[o.rowKey]??null}function lh(e,o,t){let r=e.node.props,{key:a,row:n}=Cr(e.propKey),s=n?GB(r,a,n,e.kind,o):UB(r,a,e.kind,o);return s?(t(e.zone,e.index,{...e.node,props:s}),!0):!1}import{readHidable as rN}from"efficient-easel/draw";var Hw=e=>String(e+1).padStart(2,"0"),wMe=[{label:"01 \xB7",value:"two-digit"},{label:"1.",value:"plain"}],Ww="two-digit",oN=e=>e==="plain"?"plain":Ww,ch=(e,o)=>e==="plain"?`${o+1}.`:Hw(o);var zw="Contents",$w="Flex",tN="Text",Qoe="numberForm",ete="_contentsEntries",ote="_kickerNumber",aN="data-sf-kicker-number",tte=e=>rN(e).text.trim(),nN=e=>Gn(e?.anchor),Uw=e=>String(e.props?.id??""),rte=e=>!rN(e.props?.text).hidden&&!_i(e.props)&&!xt(e.props),vd=e=>ii(e);function sN(e){for(let o of vd(e))for(let t of o){if(ua(t.props??{}))continue;if(t.type===tN&&rte(t))return t;if(t.type===tN)continue;let r=sN(t);if(r)return r}}function iN(e){return vd(e).some(o=>o.some(t=>t&&!ua(t.props??{})&&(t.type===zw||iN(t))))}var lN=e=>e.type===$w&&Kr($w,e.props?.direction)==="row";function cN(e){return vd(e).some(o=>o.some(t=>t&&!ua(t.props??{})&&(t.type===zw||!lN(t)&&cN(t))))}function ate(e){let o=[],t=(r,a)=>{for(let n of r){if(!n||ua(n.props??{}))continue;if(n.type===zw){a.open={contents:n,sections:a.waiting??[]},a.waiting=null,o.push(a.open);continue}if(lN(n)&&cN(n)){let i={inRow:!0,open:null,waiting:[]};for(let l of vd(n))t(l,i);a.inRow||(a.open=null);continue}let s=a.open?.sections??a.waiting;if(n.type===$w&&nN(n.props)&&s&&!iN(n)){s.push({box:n,kicker:sN(n)});continue}for(let i of vd(n))t(i,a)}};return t(e,{inRow:!1,open:null,waiting:null}),o}function nte(e){return e.map(o=>({label:o.kicker?sa(tte(o.kicker.props?.text)):"",anchor:nN(o.box.props)}))}function Gw(e){let o=e?.length?ate(e):[];if(!o.length)return null;let t=new Map,r=new Map;for(let a of o){let n=Uw(a.contents);n&&t.set(n,nte(a.sections));let s=oN(a.contents.props?.[Qoe]);a.sections.forEach((i,l)=>{let d=i.kicker?Uw(i.kicker):"";d&&r.set(d,ch(s,l))})}return{entries:t,numbers:r}}var LMe=e=>e.endsWith(".")?`${e} `:`${e} \xB7 `;function dN(e){let o=e;if(!o?.content?.length)return e;let t=Gw(o.content);if(!t)return e;let{entries:r,numbers:a}=t,n=s=>{let i=ho(s,m=>so(m,n)),l=i.props??{},d=i!==s,f=Uw(s),u=f?r.get(f):void 0;u&&(l={...l,[ete]:u},d=!0);let p=f?a.get(f):void 0;return p&&(l={...l,[ote]:p},d=!0),d?{...s,props:l}:s};return{...o,content:o.content.map(n)}}var lte=`[${aN}]`,cte=["bold","italic","underline","strike","link","sup","sub"],dte=["bullet","number"];function Vw(e,o){return e?[...cte,...o?dte:[]]:[]}function fN(e,o){let t=ite(e);if(!t?.propKey)return null;let{nodeId:r,propKey:a}=t,n=o.getItemById(r),s=o.getSelectorForId(r);if(!n||!s)return null;let{key:i,row:l}=Cr(a),d=o.components[n.type]?.fields?.[i],f=l?cl(d,l):d,u=ll(f);if(!u)return null;let p=n.props??{};if(IS(p)!==null||!l&&jp(n.type,p,i)||n.type==="Text"&&i==="text"&&_i(p)||l&&!(Array.isArray(p[i])&&l.index<p[i].length))return null;let m=l?yd(p[i],l):p[i];return{node:n,selector:s,propKey:a,kind:u,stored:m,offPage:Qm(f),panelOnly:Ui(f)}}function dh(e,o){let t=fN(e,o);if(!t)return null;let{text:r,hidden:a}=rn(t.stored);if(!Dw({offPage:t.offPage,hidden:!!a,panelOnly:t.panelOnly}))return null;let n=th(t.kind);return{partId:e,value:r,rules:kp,multiline:n,skip:lte,offered:Vw(t.kind!=="plainText",n),write:s=>{let i=fN(e,o);i&&lh({node:i.node,propKey:i.propKey,kind:i.kind,zone:i.selector.zone,index:i.selector.index},s,o.replace)}}}function Yw(e,o,t){return e?.isConnected&&e.getAttribute(co)===t?e:o?.querySelector(`[${co}="${fh(t)}"]`)??null}function fh(e){return e.replace(/["\\]/g,"\\$&")}function pN(e){let o=e.activeElement;return o?o.tagName==="IFRAME"||!!o.closest(".es-canvas"):!1}var jw=null,Kw=new Set;function fte(){return jw}function qw(e){if(e!==jw){jw=e;for(let o of Kw)o()}}function pte(e){return Kw.add(e),()=>{Kw.delete(e)}}function uN(){return ste(pte,fte,()=>null)}function mN(e,o){if(e.outer)return null;let t=o.getItemById(e.ownerId);if(!t)return null;let r=l_(t.type);return!r||eo(t.props)?null:{node:t,rows:r}}function gte(e,o){let t=mN(e,o),r=o.getItemById(e.nodeId);if(!t||!r)return null;let a=m_(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:ute(e.ownerId,Yr(t.rows,{index:e.index,rowKey:a}))}function ph(e,o){let t=gte(e,o);return t?dh(t,o):null}function hN(e,o){return ph(e,o)?.value}function xN(e,o){let t=ph(e,o);return t?(t.write(e.text),!0):!1}function gN(e,o){let t=mN(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=mte(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=hte(n,s,l);break}case"delete":i=xte(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 Kbe,jsxs as xI}from"react/jsx-runtime";import{Fragment as Vbe,useEffect as hj,useMemo as xj,useRef as Ybe,useState as Vs}from"react";import{useScreenDocument as Sj}from"efficient-easel/screen/components/ScreenDocumentContext";import{UiIcon as wP}from"efficient-easel/draw/client";import qbe from"efficient-easel/screen/components/SidePanelHead";import{jsx as Pe,Fragment as xl,jsxs as Is}from"react/jsx-runtime";import{useEasel as nM,useRootFields as Qae}from"efficient-easel/easel";import{Inspector as ene}from"efficient-easel/fields";import{SettingsGroup as one}from"efficient-easel/panel";import{useEffect as tne,useRef as rne,useState as KC}from"react";import{jsx as ps,Fragment as Ste,jsxs as wte}from"react/jsx-runtime";import{useState as SN}from"react";import{SettingsDefaultReset as Cte,SettingsField as vte}from"efficient-easel/panel";import{useEaselStrings as kte}from"efficient-easel/strings";import{AddIcon as Tte}from"efficient-easel/icons";import{Button as Pte}from"efficient-shell/ui";import{iconOf as Ete,noGlyph as _te}from"efficient-easel/screen/lib/document/box-fields";import{jsx as uh,Fragment as Ite,jsxs as IN}from"react/jsx-runtime";import{Button as yN,Dialog as yte}from"efficient-shell/ui";function bte(e){return ct("This site has {n} color theme of its own. Clearing takes them away and puts back the four the shop supplies.","This site has {n} color themes of its own. Clearing takes them away and puts back the four the shop supplies.",e)}function bN({count:e,onCancel:o,onConfirm:t}){return IN(yte,{open:!0,onClose:o,role:"alertdialog",size:"sm",title:c("Clear this site\u2019s colors?"),footer:IN(Ite,{children:[uh(yN,{variant:"secondary",onClick:o,children:c("Cancel")}),uh(yN,{variant:"danger",onClick:t,children:c("Clear colors")})]}),children:[uh("p",{children:bte(e)}),uh("p",{className:"mt-2 font-medium",children:c("This cannot be undone.")})]})}var Ote=_te("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"),Ate="Reset color",Rte={selected:0,themes:[]};function Lte(e){e(Rte)}function wN({value:e,onChange:o}){let t=e?.themes??[],r=t.length===0,a=vo(e),[n,s]=SN(!1),i=kte(),[l,d]=SN(null),f=(S,C)=>{o({...a,themes:a.themes.map((b,y)=>y===S?C:b)})},u=bi(a).accent,p=new Set(a.themes.map(S=>S.brandInk).filter(Boolean)),m=v_.filter(S=>!p.has(S)).map(S=>k_(u,S)),h=[...a.themes,...m],I=S=>{if(S<a.themes.length)return o({...a,selected:S});let C=[...a.themes,h[S]];o({...a,themes:C,selected:C.length-1})},w=()=>{let S=[...a.themes,{...gt(a.themes[a.selected])}];o({...a,themes:S,selected:S.length-1}),d(S.length-1)};return wte(Ste,{children:[r?null:ps(vte,{label:c(Ate),icon:Ete(Ote),labelId:"sf-theme-reset",action:ps(Cte,{label:c("all theme colors"),words:i.panel,changed:!0,onReset:()=>s(!0)})}),n&&ps(bN,{count:t.length,onCancel:()=>s(!1),onConfirm:()=>{s(!1),Lte(o)}}),ps("div",{className:"sf-theme-list",role:"radiogroup","aria-label":c("Theme"),children:h.map((S,C)=>ps(dm,{index:C,colors:S,selected:C===a.selected,open:l===C&&C<a.themes.length,editable:C<a.themes.length,onPick:()=>I(C),onEdit:()=>d(b=>b===C?null:C),onChangeColors:b=>f(C,b)},C))}),ps(Pte,{variant:"secondary",leftIcon:ps(Tte,{}),onClick:w,className:"sf-theme-add",children:c("Add new theme")})]})}import{jsx as mh}from"react/jsx-runtime";import{SettingsDefaultReset as Fte,SettingsField as Bte}from"efficient-easel/panel";import{SquareIcon as Nte}from"efficient-easel/icons";var Dte="Applies to panels, cards, inputs and buttons. Round things \u2014 color swatches, switches, status dots \u2014 stay round.",Xw="Corners";function CN({value:e,onChange:o,length:t}){let r=e===null;return mh(Bte,{label:c(Xw),icon:mh(Nte,{}),changed:!r,action:mh(Fte,{words:ce()?.panel,label:c(Xw),changed:!r,detail:c("the built-in corners"),onReset:()=>o(null)}),hint:c(Dte),children:mh(St,{min:t?.grid.min??lt,max:t?.grid.max??Ha,step:t?.grid.step??1,value:e,...e===null?{}:{suffix:t?.unit??"px",...t?{units:t.units}:{}},placeholder:lt,placeholderWord:"Auto",onClear:()=>o(null),ariaLabel:c(Xw),onChange:o})})}import{jsx as kd}from"react/jsx-runtime";import{SettingsDefaultReset as Mte,SettingsField as Hte}from"efficient-easel/panel";import{IconPicker as Wte}from"efficient-shell/ui";import{ShadowIcon as $te}from"efficient-easel/icons";import{SHADOW_PREVIEW as Ute}from"efficient-easel/screen/lib/document/shadow-values";var Zw={none:"None",soft:"Soft",lifted:"Lifted"},zte="Applies to cards \u2014 products, brands, journal entries and filter cells. Round things like swatches and status dots are never shadowed.";function vN({value:e,onChange:o}){let t=e===null,r=e??Wy;return kd(Hte,{label:c("Card shadow"),icon:kd($te,{}),value:c(Zw[r]),changed:!t,action:kd(Mte,{words:ce()?.panel,label:c("Card shadow"),changed:!t,detail:c(Zw[Wy]),onReset:()=>o(null)}),hint:c(zte),children:kd(Wte,{label:c("Card shadow"),value:r,options:$_.map(a=>({value:a,label:c(Zw[a]),icon:kd("span",{className:"sf-shadow-chip border border-line bg-surface",style:{boxShadow:Ute[a]}})})),onChange:o})})}import{jsx as kN}from"react/jsx-runtime";import{ShadowIcon as Gte}from"efficient-easel/icons";import{DEFAULT_SHADOW_COLOR as TN}from"efficient-easel/screen/lib/document/shadow-values";var jte="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 kN(qc,{label:c("Shadow color"),icon:kN(Gte,{}),value:e??"",inherited:TN,resetTo:TN,onChange:o,onReset:()=>o(null),hint:c(jte)})}import{jsx as xh}from"react/jsx-runtime";import{SettingsDefaultReset as Kte,SettingsField as Vte}from"efficient-easel/panel";import{AlignSeparateIcon as Yte}from"efficient-easel/icons";function hh(e,o){return e==="tablet"?null:e==="mobile"?o.phone:o.desktop}var qte="The space between the blocks inside a row, a grid or a box. Auto means each one keeps the spacing it already has.",Xte="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",EN=Yi.Grid;function _N(e,o){return hh(e,{desktop:{key:"block_gap",value:o.gap,followsPx:null},phone:{key:"block_gap_phone",value:o.phone,followsPx:o.gap===null?null:jS(o.gap)}})}function ON({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?EN:i?id(t)??EN:t;return xh(Vte,{label:c(Jw),labelId:"sf-block-gap",icon:xh(Yte,{}),changed:!n,action:xh(Kte,{words:ce()?.panel,label:c(Jw),changed:!n,detail:s??c("each block's own spacing"),onReset:()=>o(null)}),hint:c(s===null?qte:Xte),children:xh(St,{min:(r?.grid??Kt).min,max:(r?.grid??Kt).max,step:(r?.grid??Kt).step,value:e,...e===null&&t===null?{}:{suffix:r?.unit??"px",...r?{units:r.units}:{}},placeholder:l,...t===null?{placeholderWord:"Auto"}:i&&t===l?{}:{placeholderWord:String(t)},onClear:()=>o(null),ariaLabel:c(Jw),onChange:o})})}import{jsx as gh}from"react/jsx-runtime";import{SettingsDefaultReset as Zte,SettingsField as Jte,SettingsSegmented as Qte}from"efficient-easel/panel";import{HoverIcon as ere}from"efficient-easel/icons";var Qw={none:fi.none,lift:fi.lift,highlight:fE},ore="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 AN({value:e,onChange:o}){let t=e===null,r=e??$y;return gh(Jte,{label:c("Hover effect"),icon:gh(ere,{}),value:c(Qw[r]),changed:!t,action:gh(Zte,{words:ce()?.panel,label:c("Hover effect"),changed:!t,detail:c(Qw[$y]),onReset:()=>o(null)}),hint:c(ore),children:gh(Qte,{options:U_.map(a=>({id:a,label:c(Qw[a])})),value:r,ariaLabel:c("Hover effect"),onChange:o})})}import{jsx as Ih}from"react/jsx-runtime";import{SettingsDefaultReset as tre,SettingsField as rre,SettingsSegmented as are}from"efficient-easel/panel";import{DropIcon as nre}from"efficient-easel/icons";var eC="Photography",RN={shot:"As shot",mono:"Black and white"},oC=[{grayscale:!1,label:RN.shot},{grayscale:!0,label:RN.mono}],sre="Black and white photographs return to color on hover. Wheels and tyres keep their real finish either way.";function LN({value:e,onChange:o}){let t=e===null,r=e??!1;return Ih(rre,{label:c(eC),icon:Ih(nre,{}),value:c(oC.find(a=>a.grayscale===r).label),changed:!t,action:Ih(tre,{words:ce()?.panel,label:c(eC),changed:!t,detail:c(oC.find(a=>!a.grayscale).label),onReset:()=>o(null)}),hint:c(sre),children:Ih(are,{options:oC.map(a=>({id:a.grayscale,label:c(a.label)})),value:r,ariaLabel:c(eC),onChange:o})})}import{jsx as tC}from"react/jsx-runtime";import{useId as ire}from"react";import{SettingsField as lre,SettingsSwitch as cre}from"efficient-easel/panel";import{ShareIcon as dre}from"efficient-easel/icons";var fre="Share button",pre="On every blog post.";function FN({value:e,onChange:o}){let t=ire();return tC(lre,{label:c(fre),labelId:t,icon:tC(dre,{}),action:tC(cre,{checked:e===!0,onChange:o,ariaLabelledBy:t}),hint:c(pre)})}import{usePreviewDevice as VC}from"efficient-easel/draw/client";import{jsx as yh}from"react/jsx-runtime";import{SettingsDefaultReset as ure,SettingsField as mre}from"efficient-easel/panel";import{PaddingXIcon as hre}from"efficient-easel/icons";var rC="Side space",BN=Wo.default,xre="The room left at the left and right edge of every page.";function NN(e,o){return hh(e,{desktop:{key:"site_gutter",value:o.gutter,unsetPx:BN,bounds:Wo},phone:{key:"site_gutter_phone",value:o.phone,unsetPx:wm(o.gutter,o.gutterUnit),bounds:zt}})}function DN({value:e,onChange:o,unsetPx:t=BN,bounds:r=Wo,length:a,restsOn:n=t}){let s=e===null;return yh(mre,{label:c(rC),labelId:"sf-side-space",icon:yh(hre,{}),changed:!s,action:yh(ure,{words:ce()?.panel,label:c(rC),changed:!s,detail:`${t}px`,onReset:()=>o(null)}),hint:c(xre),children:yh(St,{min:(a?.grid??r).min,max:(a?.grid??r).max,step:(a?.grid??r).step,value:e,suffix:a?.unit??"px",...a?{units:a.units}:{},...r.typedMax!==void 0&&(a?.unit??"px")==="px"?{inputMax:r.typedMax}:{},placeholder:n,onClear:()=>o(null),ariaLabel:c(rC),onChange:o})})}import{jsx as aC}from"react/jsx-runtime";import{BACKGROUND_WIDTHS as CHe,SettingsBackgroundWidth as gre,SettingsContentWidth as Ire}from"efficient-easel/panel";var yre="Background width",nC="Content width";var bh=e=>c(as[e==="content"?"page":"full"]),MN="The width of every section's background.",HN="The width of every section's content.";function Sh({value:e,changed:o,detail:t,onChange:r,onReset:a,hint:n,labelId:s}){return aC(gre,{value:e,changed:o,detail:t,onChange:r,onReset:a,hint:n?c(n):void 0,labelId:s,words:{label:c(yre),full:bh("full"),content:bh("content")},resetWords:ce()?.panel})}function wh({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(nC),h=p?.grid.min??r,I=p?.grid.max??t,w=e!=="full"?aC(St,{min:h,max:I,step:p?.grid.step??je.step,value:Math.min(Math.max(o,h),I),onChange:l,...p?{suffix:p.unit,units:p.units}:{suffix:"px"},ariaLabel:m}):null;return aC(Ire,{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:bh("full"),content:bh("content")},resetWords:ce()?.panel})}import{jsx as FD}from"react/jsx-runtime";import{TextStyleItem as vae,TextStylesGroup as kae}from"efficient-easel/text-styles";import{jsx as Iae}from"react/jsx-runtime";import{useState as yae}from"react";import{TextStylesList as bae}from"efficient-easel/text-styles";import{usePreviewDevice as Sae}from"efficient-easel/draw/client";import{defaultTextStyles as gD,textStyleCaseCss as pae}from"efficient-easel/text-styles/model";import{resolveViewValue as ID}from"efficient-easel/draw";import{VIEW_DESKTOP_MIN as WN,VIEW_TABLET_MIN as $N}from"efficient-easel/draw";var Ch=.02,UN=`(min-width: ${Jo}px) and (max-width: ${WN-Ch}px)`,Td=`(max-width: ${Jo-Ch}px)`,vh=`(min-width: ${$N}px) and (max-width: ${WN-Ch}px)`,kh=`(max-width: ${$N-Ch}px)`;import{textStyleCaseCss as bre,textStyleCaseOfCss as Sre,viewKeyAt as qN}from"efficient-easel/draw";function dl(e){return!e||typeof e!="object"||Array.isArray(e)?null:e}function fl(e,o){return dl(e?.[o])??{}}function Th(e,o,t){let r=fl(e,o);return dl($(r,t))??{}}function Ph(e,o,t,r){let{[t]:a,...n}=fl(e,o),s=r?{...n,[t]:r}:n,{[o]:i,...l}=e;return Object.keys(s).length?{...l,[o]:s}:l}import{isLengthUnit as fC}from"efficient-easel/screen/lib/content/length-units";var _d="_partStyles",pC="data-sf-part-styled",vr="data-sf-text-style",wre=/^(heading|body)-[1-7]$/;function Ca(e){return typeof e=="string"&&wre.test(e)}var Eh={heading:"heading-1",heading2:"heading-2",heading3:"heading-3",body:"body-1",label:"body-5"};function Cre(e){if(!e)return null;for(let[o,t]of Object.entries(Eh))if(t===e)return o;return null}function uC(e){if(Ca(e.textStyle))return e.textStyle;let o=na(e.role);return o?Eh[o]:void 0}var vre=[400,500,600,700],Ed=["left","center","right","justify"],sC=5,iC=1e3,kre=-5,Tre=10,mC=0,hC=64,xC=2,zN={size:{min:sC,max:iC,step:1},sizeTablet:{min:sC,max:iC,step:1},sizePhone:{min:sC,max:iC,step:1},padding:{min:mC,max:hC,step:xC}},Pre=.05,Ere=.01,_re=["line","letter"],Ore=.5,Are=2.5,Rre=-1,Lre=1,Fre=0,Bre=400,Nre=[...new Set(Object.values(di))];function XN(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 ZN(e){return fl(e,_d)}function hs(e,o){return Th(e,_d,o)}function JN(e,o,t){return Ph(e,_d,o,Dre(t).length?t:null)}function Dre(e){return Object.entries(e).filter(([,o])=>o!==void 0)}function Mre(e){return _re.includes(e)}var Pd=(e,o,t)=>Math.min(t,Math.max(o,e)),Hre=["sizeUnit","sizeUnitTablet","sizeUnitPhone"];function lC(e){let o=qN("sizeUnit",e),t=Hre.find(r=>r===o);if(!t)throw new Error(`a part stores no unit key ${o}`);return t}var Yt={size:lC("desktop"),sizeTablet:lC("tablet"),sizePhone:lC("mobile"),paragraphSpacing:"paragraphSpacingUnit",padding:"paddingUnit"},QN=Object.values(Yt);function Xr(e,o){return Ee(e[Yt[o]])}function Wre(e,o,t={}){if(QN.includes(e))return fC(o)&&o!=="px"?o:null;if(He(Yt,e)&&Xr(t,e)!=="px"){let r=ms(Number(o),2);return!Number.isFinite(r)||r<0||r===0&&e!=="padding"?null:r}if(Mre(e)){let r=Math.round(Number(o));return!Number.isFinite(r)||r===0?null:Pd(r,kre,Tre)}if(e==="lineHeight"){let r=Number(o);return Number.isFinite(r)?ms(Pd(r,Ore,Are),3):null}if(e==="letterSpacing"){let r=Number(o);return Number.isFinite(r)?ms(Pd(r,Rre,Lre),4):null}if(e==="paragraphSpacing"){let r=Math.round(Number(o));return!Number.isFinite(r)||r<=0?null:Pd(r,Fre,Bre)}if(He(zN,e)){let{min:r,max:a}=zN[e],n=Math.round(Number(o));return Number.isFinite(n)?Pd(n,r,a):null}return e==="italic"?typeof o=="boolean"?o:null:e==="role"||e==="fontRole"?na(o)?o:null:e==="sizeToken"?gC(o)?o:null:e==="textStyle"?Ca(o)?o:null:e==="alignPhone"||e==="alignTablet"?Ed.includes(o)?o:null:o}var $re=["weight","size","sizeTablet","sizePhone","line","letter","lineHeight","letterSpacing","paragraphSpacing","padding"];function pl(e){let o=null,t=r=>{o??={...e},delete o[r]};for(let r of $re){let a=e[r];a!==void 0&&!(typeof a=="number"&&Number.isFinite(a))&&t(r)}e.align!==void 0&&!Ed.includes(e.align)&&t("align"),e.alignTablet!==void 0&&!Ed.includes(e.alignTablet)&&t("alignTablet"),e.alignPhone!==void 0&&!Ed.includes(e.alignPhone)&&t("alignPhone"),e.textStyle!==void 0&&!Ca(e.textStyle)&&t("textStyle"),e.sizeToken!==void 0&&!gC(e.sizeToken)&&t("sizeToken"),e.fontRole!==void 0&&!na(e.fontRole)&&t("fontRole");for(let r of QN)e[r]!==void 0&&!fC(e[r])&&t(r);return o??e}function gC(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"&&Nre.includes(l);return i(o)&&s(t)&&(r===void 0||i(r))&&(a===void 0||s(a))&&(n===void 0||Ure(n,t))}function Ure(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 IC(e){return e?.pxPhone&&gC(e)?{step:e.stepPhone??e.step,px:e.pxPhone}:null}function eD({step:e,px:o,fluid:t}){let r=t?`clamp(${t.minPx}px, ${t.vw}vw, ${o}px)`:`${o}px`,a=`var(--size-${e}, ${r})`;return e.startsWith("heading")?`min(${a}, var(--sf-heading-max,9999px))`:a}var zre=[["font","role"],["font","fontRole"],["role","textStyle"],["line","lineHeight"],["letter","letterSpacing"]];function Gre(e){let o=[];for(let[t,r]of zre)t===e?o.push(r):r===e&&o.push(t);return o}function xs(e,o,t,r){let a={...hs(e,o)},n=r==null?null:Wre(t,r,a);if(n===null)delete a[t];else{a[t]=n;for(let s of Gre(t))delete a[s]}return JN(e,o,a)}function oD(e,o){return JN(e,o,{})}function jre(e){return Sre(e)??"none"}function Kre(e){return bre(e)??""}var GN={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 Vre(e,o){return na(e.role)||(o?.blockDrawsStyle?null:Cre(e.textStyle))}function Od(e,o){return e==="Text"&&o==="text"}var Yre={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 qre(e){let o=di[e],t=$(Yre,o);return t?`var(--size-${o}, ${t})`:`var(--size-${o})`}function Ad(e){let o={};return typeof e.lineHeight=="number"?o.lineHeight=e.lineHeight:e.line&&(o.lineHeight=ms(Xre+e.line*Pre,3)),typeof e.letterSpacing=="number"?o.letterSpacingEm=e.letterSpacing:e.letter&&(o.letterSpacingEm=ms(e.letter*Ere,4)),o}var Xre=1,us="--sf-part-para";function Zre(e){e=pl(e);let o={};if(typeof e.sizePhone=="number"&&e.sizePhone>0)o.fontSize=Me(e.sizePhone,Xr(e,"sizePhone"));else{let r=IC(e.sizeToken);if(r)o.fontSize=eD(r);else{let a=Oh(e);a!==void 0&&(o.fontSize=Me(a,Xr(e,"sizeTablet")))}}let t=e.alignPhone??_h(e);return t&&(o.textAlign=t),o}function _h(e){return e.alignTablet&&e.alignTablet!==e.align?e.alignTablet:void 0}function Oh(e){let o=e.sizeTablet!==void 0&&Xr(e,"sizeTablet")!==Xr(e,"size")?e.sizeTablet:ia("textSize",e.size,e.sizeTablet,void 0).tablet;return o&&o>0?o:void 0}function Jre(e){let o=pl(e),t={},r=Oh(o);r!==void 0&&(t.fontSize=Me(r,Xr(o,"sizeTablet")));let a=_h(o);return a&&(t.textAlign=a),t}function tD(e,o){if(o==="desktop")return;let t=pl(e);return(o==="mobile"?_h(t):void 0)??t.align}function Qre(e,o){if(o==="desktop")return e;let t=pl(e),r=Oh(t),a=_h(t);if(o==="tablet"){let i=e;return r!==void 0&&(i={...i,size:r,sizeUnit:t[Yt.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[Yt.sizePhone]};else{let i=IC(t.sizeToken);i?n={...n,size:void 0,sizeToken:i}:r!==void 0&&(n={...n,size:r,sizeUnit:t[Yt.sizeTablet]})}let s=t.alignPhone??a;return s&&(n={...n,align:s}),n}function yC(e,o,t){return SC(Qre(e,o),Ah,t)}function bC(e){return qN("size",e)}function rD(e,o){if(o==="desktop")return null;let t=pl(e);if(o==="mobile"){if(IC(t.sizeToken))return null;let r=Oh(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 aD(e,o){let t=bC(o);if(!He(e,t))return e;let r={...e};return delete r[t],r}function nD(e,o,t){let r=yC(aD(e,o),o,t);return{fontFamily:r.fontFamily,fontSize:r.fontSize}}function SC(e,o,t){e=pl(e);let r=Vre(e,t),a=Ad(e),n=e.size?Me(e.size,Xr(e,"size")):e.sizeToken?eD(e.sizeToken):r?qre(r):"";return{fontFamily:e.font?rae(e.font):e.fontRole?`var(${GN[e.fontRole]})`:r?`var(${GN[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`:"",[us]:e.paragraphSpacing?Me(e.paragraphSpacing,Xr(e,"paragraphSpacing")):"",textTransform:Kre(e.case),textAlign:e.align??"",paddingTop:jN(e.padding,Xr(e,"padding")),paddingBottom:jN(e.padding,Xr(e,"padding")),color:eae(e.color),fontStyle:e.italic===!0?"italic":e.italic===!1?"normal":""}}var eae=e=>Di(e),jN=(e,o)=>e===void 0?"":Me(e,o),ms=(e,o)=>Number(e.toFixed(o));function sD(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:oae(Number.parseInt(e.fontWeight,10)),lineRatio:Number.isFinite(r)?ms(r/t,3):1.2,letterEm:Number.isFinite(a)?ms(a/t,4):0,align:tae(e.textAlign),case:jre(e.textTransform),paddingPx:Number.isFinite(n)?Math.round(n):0}}function oae(e){return Number.isFinite(e)?vre.reduce((o,t)=>Math.abs(t-e)<Math.abs(o-e)?t:o):400}function tae(e){for(let o of Ed)if(o===e)return o;return e==="end"?"right":"left"}function iD(e,o){let t=KN(e);if(!t)return"";for(let r of Na)if(KN(o(r.cssVar))===t)return r.key;return""}var KN=e=>(e.split(",")[0]??"").replace(/["']/g,"").replace(/\s+/g," ").trim().toLowerCase();function rae(e){let o=ci(e);return o?`var(${o.cssVar})`:""}function lD(e,o,t,r){return!o||bd(o)?.nodeId!==e?null:t.find(a=>r(a.getAttribute("class")))??t[0]??null}function wC(e,o){return dl($(e,o))??{}}function CC(e,o,t=()=>Ah,r=i=>i,a=sae,n="desktop",s=()=>!1){let i=0;for(let{element:l,partId:d}of e){let f=bd(d)?.propKey;if(!f)continue;let u=wC(o,r(f)),p=yC(u,n,{blockDrawsStyle:s(f)});Ca(u.textStyle)?l.setAttribute?.(vr,u.textStyle):l.removeAttribute?.(vr);let m=cC.some(I=>l.style[I]),h=!1;for(let[I,w]of Object.entries(p))iae(l,I,w),w&&(h=!0);if(m||cC.some(I=>p[I]))for(let I of aae(l,a))for(let w of cC)I.style[w]=p[w]??"";h&&(i+=1)}return i}function aae(e,o){let t=an(e.textContent??""),r=[],a=e;for(let n=0;n<nae&&o(a);n+=1){let s=a.parentElement;if(!s||an(s.textContent??"")!==t)break;r.push(s),a=s}return r}var nae=8;function sae(e){let o=e;return typeof window>"u"||!o?.ownerDocument?!1:window.getComputedStyle(o).display==="inline"}var Ah={fontKey:"",sizePx:16,weight:400,lineRatio:1,letterEm:0,align:"left",case:"none",paddingPx:0};function vC(e){if(!e||typeof e!="object")return null;let o={};Ca(e.textStyle)&&(o.textStyle=e.textStyle),typeof e.size=="number"&&e.size>0&&(o.size=e.size),typeof e.sizeTablet=="number"&&e.sizeTablet>0&&(o.sizeTablet=e.sizeTablet),typeof e.sizePhone=="number"&&e.sizePhone>0&&(o.sizePhone=e.sizePhone);for(let t of["size","sizeTablet","sizePhone"]){let r=Yt[t];o[t]!==void 0&&fC(e[r])&&(o[r]=e[r])}return Object.keys(o).length?o:null}function kC(e,o){let t=vC(e);if(!t)return{};let r=yC(t,o);return{...r.fontFamily?{fontFamily:r.fontFamily}:{},...r.fontSize?{fontSize:r.fontSize}:{}}}function cD(e){return Ca(e?.textStyle)||!!e?.role||typeof e?.size=="number"&&e.size>0}function dD(e,o,t){if(!e||typeof e!="object")return{};let r=Mp(e.role,o,di)??{},a=o.sized?kC(aD(e,t),t):{};return{...r,...a}}function fD(e,o,t){t.fontFamily&&e.fontFamily===t.fontFamily&&(e.fontFamily=o.fontFamily),t.fontSize&&e.fontSize===t.fontSize&&(e.fontSize=o.fontSize)}function iae(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===us&&(t?a.setAttribute?.(VN,""):a.removeAttribute?.(VN))}var VN="data-sf-part-para",Rh=Object.keys(SC({},Ah)),dC=new Set(["color","overflowWrap",us,"fontStyle"]),cC=Rh.filter(e=>!dC.has(e));function pD(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(!lae(u))continue;let p=YN(t,u,dl(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=dl(o[p])??{};return YN(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 YN(e,o,t,r,a){let n=SC(t,Ah,{blockDrawsStyle:r}),s=Jre(t),i=Zre(t),l=Ca(t.textStyle)?t.textStyle:void 0;return!Object.values(n).some(Boolean)&&!Object.keys(s).length&&!Object.keys(i).length&&!l&&!a?null:{stamp:cae(e,o),declarations:n,...Object.keys(s).length?{tablet:s}:{},...Object.keys(i).length?{phone:i}:{},...l?{textStyle:l}:{},...a?{motion:a}:{}}}function lae(e){return e.startsWith("@")}function TC(e,o){return e?.kindRules.get(o)??null}function cae(e,o){let t=r=>r.replace(/[^A-Za-z0-9_-]+/g,"-");return`${t(e)}~${t(o)}`}function PC(e){return e?{tablet:UN,phone:Td}:{tablet:vh,phone:kh}}function uD(e,{inBox:o=!1}={}){let{tablet:t,phone:r}=PC(o),a=[],n=new Set,s=i=>{let{stamp:l,declarations:d}=i;if(n.has(l))return;n.add(l);let f=Object.entries(d).filter(([,S])=>S!==""),u=S=>S.map(([C,b])=>`${dae(C)}: ${b}`).join("; "),p=`[${pC}="${l}"]`,m=f.filter(([S])=>!dC.has(S)),h=f.filter(([S])=>dC.has(S));m.length&&a.push(`${p}, *:has(> ${p}) { ${u(m)} }`),h.length&&a.push(`${p} { ${u(h)} }`),d[us]&&(a.push(`*:has(> ${p}) { ${us}: ${d[us]} }`),a.push(...Lh(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 Lh(e,o){let t=`var(${us})`,r=":is([data-sf-bullet], [data-sf-number])";return[`${e} br:not(br + br) { display: block; content: ""; margin-top: ${t} }`,`${e} ${r}:not(:first-child) { margin-top: ${t} }`,`${e} ${r}:not(:last-child) { margin-bottom: ${t} }`,`:is(${o}) + :is(${o}) { margin-top: ${t} }`]}var dae=e=>e.replace(/[A-Z]/g,o=>`-${o.toLowerCase()}`);function mD(e,o){if(!e)return null;let t=an(o),r=e.rules.get(t);if(r)return r;if(t.length<fae||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 fae=8;function hD(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 EC=e=>e==="sentence"?"none":void 0,yD=["font","color","size","sizeTablet","sizePhone","weight","italic","lineHeight","lineHeightTablet","lineHeightPhone","letterSpacing","letterSpacingTablet","letterSpacingPhone","paragraphSpacing","paragraphSpacingTablet","paragraphSpacingPhone","letterCase","largestSize","largestSizeTablet","largestSizePhone"],ul=["desktop","tablet","phone"],gs=(e,o)=>ke(e,o);function AC(e,o,t,r=ui()){return ID("textSize",o,e.sizeTablet,e.sizePhone,r)[t]}var uae=[["lineSpacing","lineHeight","line"],["letterSpacing","letterSpacing","letter"]];function _C(e){for(let[o,t,r]of uae)for(let a of ul)if(e===gs(o,a))return{key:ke(t,a),view:a,spacing:r};return{key:e,view:"desktop",spacing:null}}function Zr(e){let o={};for(let t of yD)e[t]!==void 0&&(o[t]=e[t]);return o}function RC(e,o){let{auto:t,...r}=e,a=new Set(o??[]),n=yD.filter(s=>a.has(s)&&e.values[s]===void 0);return n.length?{...r,auto:n}:r}function bD(e){let o=e.fonts,t=e.sizes,r=e.typography,a=Y_(e.compression),n={"heading-1":{font:be(o.heading),size:q(t.headingLarge),weight:q(r.weight),lineHeight:a.lineHeight,letterSpacing:a.letterSpacing,letterCase:EC(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:EC(r.case2)},"heading-3":{font:be(o.heading3),size:q(t.headingSmall),weight:q(r.weight3),lineHeight:a.lineHeight,letterSpacing:a.letterSpacing,letterCase:EC(r.case3)},"body-1":{font:be(o.body),size:q(t.body)},"body-5":{font:be(o.label),size:q(t.label)}};return gD().map(({id:s,kind:i,name:l})=>({id:s,kind:i,name:l,values:Zr(n[s]??{})}))}function LC(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=>RC({...o,values:Zr(o.values??{})},Array.isArray(o.auto)?o.auto:void 0)):null}function SD(e){return LC(e)??[]}function wD(e){return LC(e)??gD().map(({id:o,kind:t,name:r})=>({id:o,kind:t,name:r,values:{}}))}function va(e,o){let t=bD(o),r=LC(e);return r?r.map(a=>{let n={...OC(t,a.id)};for(let s of a.auto??[])delete n[s];return{...a,values:Zr({...n,...a.values})}}):t}var OC=(e,o)=>e.find(t=>t.id===o)?.values??{},xD=["heading-1","heading-2","heading-3"];function CD({saved:e,old:o,cur:t,next:r,sizeOf:a,panelView:n="desktop"}){let s=bD(o),i=wD(e),l=va(i,o),d=[],f=r.map(p=>{let m=t.find(v=>v.id===p.id),h=i.find(v=>v.id===p.id);if(!m||!h){let v=mae([p],a,n)[0],L=v.values.color;return L===void 0?v:{...v,values:{...v.values,color:Ot(L)}}}let I={...h.values},w=new Set(h.auto??[]),S=p.values,C=m.values,b=[...new Set([...Object.keys(S),...Object.keys(C)])].filter(v=>JSON.stringify(S[v])!==JSON.stringify(C[v])),y=v=>_C(v).spacing==="letter";b.sort((v,L)=>Number(y(v))-Number(y(L)));for(let v of b){let{key:L,view:A,spacing:D}=_C(v),T=L,F=S[v];if(F===void 0){delete I[T],OC(s,p.id)[T]!==void 0&&(d.push([p.id,T]),w.add(T));continue}if(w.delete(T),D==="line")I[T]=ml(F/100,3);else if(D==="letter"){let k={...l.find(O=>O.id===p.id)?.values??{}};for(let O of b)S[O]===void 0&&delete k[_C(O).key];let _=Zr({...k,...I}),P=AC(_,a({...p,values:_}),A);I[T]=P?ml(F/P,4):0}else I[T]=F}return RC({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")&&xD.includes(p))&&Dn(u)!=="normal"){for(let p of xD){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]=OC(s,p)[I]);m.values=Zr(h)}u="normal"}return{saved:f,old:{...o,compression:u}}}function vD(e,o){let t={text_styles:e.saved};return e.old.compression!==o.compression&&(t.heading_compression=Dn(e.old.compression)),t}var ml=(e,o)=>Number(e.toFixed(o)),kD=(e,o)=>ul.indexOf(e)<ul.indexOf(o)?o:e;function TD(e,o,t="desktop"){return e.map(r=>{let a={...r.values},n=o(r);for(let s of ul){let i=ke("lineHeight",s),l=r.values[i],d=r.values[ke("letterSpacing",s)];delete a[i],l!==void 0&&(a[gs("lineSpacing",s)]=ml(l*100,1));let f=kD(s,t);d!==void 0&&(a[gs("letterSpacing",s)]=ml(d*AC(r.values,n,f),f===s?2:4))}return{id:r.id,kind:r.kind,name:r.name,values:a}})}function mae(e,o,t="desktop"){return e.map(r=>{let a=r.values,n={...a};for(let d of ul)delete n[gs("lineSpacing",d)],delete n[gs("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 ul){let f=a[gs("lineSpacing",d)],u=a[gs("letterSpacing",d)];if(typeof f=="number"&&(i[ke("lineHeight",d)]=ml(f/100,3)),typeof u=="number"){let p=AC(s.values,l,kD(d,t));i[ke("letterSpacing",d)]=p?ml(u/p,4):0}}return{...s,values:Zr(i)}})}function s4e(e){let o={fonts:Ic({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:Hy({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:Dn(e.heading_compression),typography:X_(e)},t=e.text_styles??null,r=Array.isArray(t)?FC(va(t,o),o):o;return{fonts:Ic(r.fonts),sizes:Hy(r.sizes),compression:Dn(r.compression),typography:r.typography,textStyles:t}}function FC(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=`.${hD(t)}`,n=`[${vr}="${t.id}"]`,s=`${a}, ${n}`,i=[],l=r.font!==void 0?Na.find(p=>p.key===r.font)?.cssVar:void 0;if(l&&i.push(`font-family: var(${l})`),r.size!==void 0){let p=r.largestSize!==void 0?Math.min(r.size,r.largestSize):r.size;i.push(`font-size: ${p}px`)}let d=Di(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=pae(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(...Lh(`:is(${s})`,`*:has(> ${n})`))),o.push(...hae(t,s,a,n))}return o.join(`
4
+ `)}function hae(e,o,t,r){let a=e.values,n=ia("textSize",a.size,a.sizeTablet,a.sizePhone),s=ia("textSize",a.largestSize,a.largestSizeTablet,a.largestSizePhone),i=ia("same",a.lineHeight,a.lineHeightTablet,a.lineHeightPhone),l=ia("same",a.letterSpacing,a.letterSpacingTablet,a.letterSpacingPhone),d=ia("spacing",a.paragraphSpacing,a.paragraphSpacingTablet,a.paragraphSpacingPhone),f=ID("textSize",a.size,a.sizeTablet,a.sizePhone,ui()),u=xae[e.id],p=[];for(let[m,h]of[["tablet",vh],["phone",kh]]){let I=[],w=[],S=f[m],C=s[m],b=n[m]===void 0&&C===void 0||S===void 0?void 0:C===void 0?S:Math.min(S,C);b!==void 0&&w.push(`font-size: ${b}px`);let y=[];i[m]!==void 0&&y.push(`line-height: ${i[m]}`),l[m]!==void 0&&y.push(`letter-spacing: ${l[m]}em`),e.kind==="body"&&w.push(...y),d[m]!==void 0&&w.push(`--sf-part-para: ${d[m]}px`),w.length&&I.push(`${o} { ${w.join("; ")} }`),e.kind==="heading"&&y.length&&I.push(`${o}, ${t}:is(h1, h2, h3, h4), ${r}:is(h1, h2, h3, h4) { ${y.join("; ")} }`),d[m]!==void 0&&I.push(`*:has(> ${r}) { --sf-part-para: ${d[m]}px }`),d[m]!==void 0&&!a.paragraphSpacing&&I.push(...Lh(`: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 xae={"heading-1":"headingLarge","heading-2":"headingMedium","heading-3":"headingSmall","body-1":"body","body-5":"label"};function ED(e){return e!==!0&&e!==!1?"":`em.text-accent { font-style: ${e?"italic":"normal"} }`}function _D(e){return e?Eh[e]:void 0}function BC(e){let o=Ad(e);return Zr({font:e.font,color:e.color===void 0?void 0:Ot(e.color),size:e.size,weight:e.weight,italic:e.italic,lineHeight:o.lineHeight,letterSpacing:o.letterSpacingEm,paragraphSpacing:e.paragraphSpacing,letterCase:e.case})}function OD(e){return Object.keys(BC(e)).length>0}function AD({saved:e,old:o,styleId:t,values:r}){let a=wD(e);return{saved:gae(a,t,r),old:o}}function gae(e,o,t){return e.map(r=>r.id===o?RC({...r,values:Zr({...r.values,...t})},r.auto):r)}var RD=["font","color","size","weight","emphasis","lineSpacing","letterSpacing","paragraphSpacing","letterCase","largestSize"],wae=["size","lineSpacing","letterSpacing","letterCase"],Cae=500,NC=Na.map(e=>({value:e.key,label:e.label,family:`var(${e.cssVar})`,italic:e.italicLoaded}));function LD({saved:e,old:o,colours:t,colourNameOf:r,sizeOf:a,onChange:n,openId:s,onOpenChange:i,readOnly:l=!1,withoutSize:d=!1}){let f=Sae(),[u,p]=yae(null),m=va(e,o),h=vi(f),I=TD(m,a,h);return Iae(bae,{styles:I,onChange:w=>n(CD({saved:e,old:o,cur:I,next:w,sizeOf:a,panelView:h})),fonts:NC,colours:t,colourNameOf:r,settings:d?RD.filter(w=>w!=="size"):RD,auto:wae,openId:s===void 0?u:s,onOpenChange:i??p,readOnly:l,device:h,fallback:w=>{let S=m.find(b=>b.id===(w.kind==="heading"?"heading-1":"body-1")),C={};return S?.values.font&&w.id!==S.id&&(C.font=S.values.font),w.kind==="heading"&&(C.weight=Cae),C}})}var BD=["font","size","weight","emphasis"],Tae=500;function Pae({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 Eae(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 ND(e){let{headingWeight:o,open:t,onOpenChange:r,onChange:a,withoutSize:n=!1}=e,s=Pae(e);return FD(kae,{label:c("Emphasis"),children:FD(vae,{style:s,fonts:NC,settings:n?BD.filter(i=>i!=="size"):BD,auto:["size"],fallback:()=>({weight:o??Tae}),open:t,onOpenChange:r,onChange:i=>Eae(s,i).forEach(a)})})}import{viewKeyAt as $D}from"efficient-easel/draw";import{shownUnitAt as Fae,unitKeyOnWrite as Bae}from"efficient-easel/screen/lib/content/length-units";import{convertRowLength as _ae,rowUnits as Oae,unitPickPatch as Aae}from"efficient-easel/screen/lib/content/length-units";import{viewKeyAt as Rae}from"efficient-easel/draw";var Lae=["cornerRadius","siteWidth","siteGutter","siteGutterPhone","blockGap","blockGapPhone"],Fh={cornerRadius:{number:"corner_radius_px",kind:"radius",grid:H_,tier:"desktop"},siteWidth:{number:"site_width",kind:"size",grid:je,tier:"desktop"},siteGutter:{number:"site_gutter",kind:"spacing",grid:Wo,tier:"desktop"},siteGutterPhone:{number:"site_gutter_phone",kind:"spacing",grid:zt,tier:"mobile"},blockGap:{number:"block_gap",kind:"gap",grid:Kt,tier:"desktop"},blockGapPhone:{number:"block_gap_phone",kind:"gap",grid:Kt,tier:"mobile"}};function Bh(e){return{number:Fh[e].number,unit:S_[`${e}Unit`]}}function DD(e,o,t){let r=Ee(t),{number:a,unit:n}=Bh(e);return{[a]:o,[n]:o===null||r==="px"?null:r}}function Nh(e,o,t,r){let{kind:a,grid:n,tier:s}=Fh[e],i=Ee(t),l=Ee(r),d=n.typedMax,f=d!==void 0&&l==="px"?{...n,max:d}:n;return i===l?o:_ae(o,i,l,s,{kind:a},f)}function MD(e,o,t,r){let{number:a,unit:n}=Bh(e),s=Aae({[a]:o},i=>Nh(e,i,t,r),n,Ee(r),"px");return{[a]:s[a],[n]:s[n]??null}}function HD(e,o){let{kind:t,grid:r}=Fh[e];return b_(t,Ee(o),r)}function WD(e){return Oae({kind:Fh[e].kind},ya)}function DC(e,o){let t=Rae(e,o);if(!Lae.includes(t))throw new Error(`no site length row ${t}`);return t}function Rd(e,o,t,r,a){let{siteLengthUnits:n,setSiteLengthUnits:s}=fe(),i=`${e}Unit`,l=n[i],d=Fae({n:a?.figure??null,u:a?.unit??null,[$D("n","mobile")]:o,[$D("u","mobile")]:l??null},{n:"n"},"u","mobile"),f=h=>s({[i]:h==="px"?null:h}),u=h=>{t(h);let I=Bae(i,l,d,"px",h===null);i in I&&f(I[i]==null?null:Ee(I[i])),r(DD(e,h,d),h===null)},p=h=>{let I=Ee(h);if(I===d||(f(I),o===null))return;let w=MD(e,o,d,I);t(w[Bh(e).number]),r(w,!0)},m=a?a.unit===d?a.figure:Nh(e,a.figure,a.unit,d):null;return{length:{unit:d,grid:HD(e,d),units:{options:WD(e),onChange:p,label:c("Unit")}},write:u,rest:m,shown:h=>Nh(e,h,"px",d)}}import{EmptyState as ane,SliderGroup as nne,Tabs as sne,Tooltip as H5e,tabButtonId as ine,tabPanelId as lne}from"efficient-shell/ui";import{ContrastIcon as cne,SettingsIcon as dne,TypeIcon as fne}from"efficient-easel/icons";function UD(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 zC}from"react/jsx-runtime";import{ListIcon as Kae,PaddingTopIcon as Vae}from"efficient-easel/icons";import{jsx as Dh}from"react/jsx-runtime";import{SettingsDefaultReset as Nae,SettingsField as Dae,SettingsSegmented as Mae}from"efficient-easel/panel";import{WidthIcon as Hae}from"efficient-easel/icons";function zD({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 Dh(Dae,{label:d,labelId:a,icon:Dh(Hae,{}),value:i?n:void 0,changed:!i,action:Dh(Nae,{words:ce()?.panel,label:d,changed:!i,onReset:()=>t(void 0)}),hint:s,children:Dh(Mae,{options:[{label:c(as.full),id:"full"},{label:c(as.page),id:"content"}],value:l,ariaLabel:d,onChange:t})})}import{HEADER_TYPE as MC,FOOTER_TYPE as Wae}from"efficient-easel/draw";var $ae=new Set(["Hero","HeroSingle","IntroBleed"]),GD={min:56,max:140,default:88},j4e={min:0,max:120,step:2,default:32},K4e=`var(--sf-header-h, ${GD.default}px)`,Uae="--sf-header-set-h",V4e="--sf-header-h",Y4e=`var(${Uae}, ${GD.default}px)`,jD="sf-header-clearance",KD="sf-sticky-underheader";function Ld(e){return e?.find(o=>o?.type&&o.type!==MC)??null}function VD(e){let o=Ld(e)?.type;return!o||!$ae.has(o)}function YD(e){return!VD(e)}function HC(e){return!!e?.some(o=>o?.type===MC)}function qD(e){return!e||e.length===0?!1:!e.some(o=>o?.type===MC||o?.type===Wae)}var zae=["auto","shared","own"],WC="auto",Gae="topSpace",XD="data-top-space";function jae(e){return zae.includes(e)?e:WC}function $C(e,o){let t=jae(e?.props?.[Gae]);return t==="own"?!0:t==="shared"?!1:VD(o)}function ZD(e,o){return $C(e,o)?"own":null}function Yae(){return{type:"custom",render:({value:e,onChange:o})=>zC(zD,{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 qae=[{label:"Auto",value:"auto"},{label:"Shared",value:"shared"},{label:"Its own",value:"own"}],n5e={pageBackground:RB(),topSpace:pt("Top space",zC(Vae,{}),qae,WC),widthChoice:Yae()},Fd=["pageBackground","topSpace","widthChoice"],Xae="Record type",UC=new Map,JD=-1;function Zae(e){JD!==Ib()&&(UC.clear(),JD=Ib());let o=xb(),t=o.some(a=>a.key===e)?"":e,r=UC.get(t);return r||(r=pt(Xae,zC(Kae,{}),[...o.map(a=>({label:a.label,value:a.key})),...t?[{label:t,value:t}]:[]],Ut),UC.set(t,r)),r}var QD=new WeakMap;function s5e(e,o){if(!Uc()||xb().length<2||Ru in e)return e;let t=Zae($c(o)),r=QD.get(e);if(r&&r.row===t)return r.fields;let a={[Ru]:t,...e};return QD.set(e,{row:t,fields:a}),a}import{previewFrame as pne}from"efficient-easel/screen/lib/document/preview-dom";var eM="background";function oM(e){let o=gt(bi(e));return Mi({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 tM(e){return oM(e).filter(o=>o.key!==eM)}function rM(e){let o=oM(e).filter(t=>t.key===eM);return t=>{let r=Ot(t);return o.find(a=>a.key===r)?.value??r}}import{useEasel as Jae}from"efficient-easel/easel";function Mh({themeFromDocument:e,persist:o}){let{appState:t,dispatch:r}=Jae(A=>A),{fonts:a,setFonts:n,sizes:s,setSizes:i,headingCompression:l,setHeadingCompression:d,headingTypography:f,setHeadingTypography:u,textStyles:p,setTextStyles:m}=fe(),h=t.data,I=h.root?.props??{},w=e?Ic(I.fonts):a,S=e?D_:s,C=e?Dn(I.headingCompression):l,b=e?eu(I.headingTypography):f,y={fonts:w,sizes:S,compression:C,typography:b},v=e?I.textStyles:p,L=A=>r({type:"replaceRoot",root:{...h.root,props:{...I,...A}},recordHistory:!0});return{fonts:w,sizes:S,compression:C,typography:b,old:y,saved:v,write:(A,D)=>{let T=FC(va(A.saved,A.old),A.old);e?L({textStyles:A.saved,fonts:T.fonts,headingCompression:T.compression,headingTypography:T.typography}):(m(A.saved),n(T.fonts),i(T.sizes),d(T.compression),u(T.typography)),o(vD(A,y),D)},writeRoot:L}}import{pictureShadowColor as une}from"efficient-easel/screen/lib/document/shadow-values";var jC="sf-site-styles",mne="sf-site-styles-tabpanel",sM="text",gl="basics",aM="this-page-group",hl=[{id:gl,label:"Basics",icon:Pe(dne,{})},{id:"theme",label:"Theme",icon:Pe(cne,{})},{id:"text",label:"Text",icon:Pe(fne,{})}];function hne({themeFromDocument:e,persist:o}){let{appState:t,dispatch:r}=nM(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 Pe(wN,{value:e?i.theme:a,onChange:l})}function xne({themeFromDocument:e,persist:o}){let[t,r]=KC(null),{theme:a,setFonts:n,setSizes:s,setHeadingTypography:i}=fe(),l=Mh({themeFromDocument:e,persist:o}),{old:d,saved:f,writeRoot:u}=l,p=l.fonts,m=l.sizes,h=l.typography,I=A=>A.values.size??bne(gne[A.id]??"body")??Ine[A.kind],w=A=>l.write(A),S=tM(a),C=rM(a),b=A=>{let D={...p,accent:A};e?u({fonts:D}):n(D),o({accent_font:A})},y=A=>{s({...m,accent:A}),o({accent_size_px:A})},v=A=>{let D={...h,weightStrong:A};e?u({headingTypography:D}):i(D),o({heading_weight_strong:A})},L=A=>{let D={...h,italicStrong:A};e?u({headingTypography:D}):i(D),o({accent_italic:A})};return Is(xl,{children:[Pe(LD,{saved:f,old:d,colours:S,colourNameOf:C,sizeOf:I,onChange:w,openId:t===GC?null:t,onOpenChange:r,withoutSize:e}),Pe(ND,{font:p.accent,size:m.accent,weight:h.weightStrong,italic:h.italicStrong,headingWeight:h.weight,open:t===GC,onOpenChange:A=>r(A?GC:null),onChange:A=>{A.key==="font"?b(A.value):A.key==="size"?y(A.value):A.key==="weight"?v(A.value):L(A.value)},withoutSize:e})]})}var GC="accent",gne={"heading-1":"heading","heading-2":"heading2","heading-3":"heading3","body-1":"body","body-5":"label"},Ine={heading:32,body:14},yne={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 bne(e){if(typeof document>"u")return null;let o=(pne()?.contentDocument??document).querySelector(yne[e]);if(!o)return null;let t=parseFloat(getComputedStyle(o).fontSize);return Number.isFinite(t)?t:null}function Sne({themeFromDocument:e,persist:o}){let{appState:t,dispatch:r}=nM(p=>p),{cornerRadiusPx:a,setCornerRadiusPx:n}=fe(),s=t.data,i=s.root?.props??{},l=i.cornerRadiusPx===void 0?Qp[Jp(i.cornerStyle)]:Ht(i.cornerRadiusPx),d=e?l:a,f=Rd("cornerRadius",a,n,o),u=p=>r({type:"replaceRoot",root:{...s.root,props:{...i,...p}},recordHistory:!0});return Pe(CN,{value:d,onChange:p=>{e?(u({cornerRadiusPx:p}),o({corner_radius_px:p})):f.write(p)},...e?{}:{length:f.length}})}function wne({persist:e}){let{siteWidth:o,setSiteWidth:t,sectionBackgroundWidth:r,setSectionBackgroundWidth:a,sectionContentWidth:n,setSectionContentWidth:s}=fe(),i=VC(),l=Rd("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 Is(xl,{children:[Pe(Sh,{value:r??"full",changed:r!==null,detail:c("Full width"),onChange:u,onReset:()=>u(null),hint:MN}),Pe(wh,{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:HN,length:l.length})]})}function Cne({persist:e}){let{siteGutter:o,siteGutterPhone:t,setSiteGutter:r,setSiteGutterPhone:a,siteLengthUnits:n}=fe(),s=NN(VC(),{gutter:o,phone:t,gutterUnit:n.siteGutterUnit}),i=s?.key==="site_gutter_phone",l=Rd(DC("siteGutter",i?"mobile":"desktop"),s?.value??null,i?a:r,e);return s?Pe(DN,{value:s.value,onChange:l.write,unsetPx:s.unsetPx,restsOn:l.shown(s.unsetPx),bounds:s.bounds,length:l.length}):null}function vne({persist:e}){let{blockGap:o,blockGapPhone:t,setBlockGap:r,setBlockGapPhone:a,siteLengthUnits:n}=fe(),s=_N(VC(),{gap:o,phone:t}),i=s?.key==="block_gap_phone",l=s?.followsPx==null?null:{figure:s.followsPx,unit:Ee(n.blockGapUnit)},d=Rd(DC("blockGap",i?"mobile":"desktop"),s?.value??null,i?a:r,e,l);return s?Pe(ON,{value:s.value,onChange:d.write,followsPx:d.rest,followsUnit:d.length.unit,length:d.length}):null}function kne({persist:e}){return Is(xl,{children:[Pe(wne,{persist:e}),Pe(Cne,{persist:e}),Pe(vne,{persist:e})]})}function Tne(e){return{card_shadow:e}}function Pne(e){return e===null?{shadow_color:null}:{shadow_color:une(e)}}function Ene(e){return{hover_effect:e}}function _ne({persist:e}){let{cardShadow:o,setCardShadow:t,shadowColor:r,setShadowColor:a,hoverEffect:n,setHoverEffect:s}=fe();return Is(xl,{children:[Pe(vN,{value:o,onChange:i=>{t(i),e(Tne(i),!0)}}),Pe(PN,{value:r,onChange:i=>{a(i),e(Pne(i),i===null)}}),Pe(AN,{value:n,onChange:i=>{s(i),e(Ene(i),!0)}})]})}function One(e){return{photography_grayscale:e}}function Ane({persist:e}){let{photographyGrayscale:o,setPhotographyGrayscale:t}=fe();return Pe(LN,{value:o,onChange:r=>{t(r),e(One(r),!0)}})}function Rne({persist:e}){return Pe(xl,{children:Pe(Ane,{persist:e})})}function Lne(e){return{share_button_on_posts:e}}function Fne({persist:e}){let{shareButtonOnPosts:o,setShareButtonOnPosts:t}=fe();return Pe(FN,{value:o,onChange:r=>{t(r),e(Lne(r),!0)}})}function Il(){let{websiteName:e}=fe();return e?.trim()||HO}function Hh({themeFromDocument:e=!1,tokenRef:o,siteId:t,onNotify:r,tab:a,onTabChange:n,initialTab:s,revealPageGroup:i=!1,onPageGroupRevealed:l}){let{persist:d}=zi({themeFromDocument:e,tokenRef:o,siteId:t,onResult:w=>{let S=UD(w);S&&r?.(S.msg,S.tone)}}),[f,u]=KC(s??hl[0].id),p=a!==void 0,m=p?a:f,h=p?n??(()=>{}):u,I=hl.find(w=>w.id===m)??hl[0];return Is(nne,{children:[Pe(Dne,{activeId:I.id,onSelect:h}),Is("div",{id:lne(jC,I.id),className:mne,role:"tabpanel","aria-labelledby":ine(jC,I.id),children:[m===gl&&Is(xl,{children:[Pe(Sne,{themeFromDocument:e,persist:d}),!e&&Pe(_ne,{persist:d}),!e&&Pe(kne,{persist:d}),!e&&Pe(Rne,{persist:d}),!e&&Pe(Fne,{persist:d}),Pe(Bne,{reveal:i,onRevealed:l})]}),m==="theme"&&Pe(hne,{themeFromDocument:e,persist:d}),m==="text"&&Pe(xne,{themeFromDocument:e,persist:d})]})]})}function Bne({reveal:e,onRevealed:o}){let[t,r]=KC(!0),a=rne(o);return a.current=o,tne(()=>{if(!e)return;r(!0);let n=requestAnimationFrame(()=>{document.getElementById(aM)?.scrollIntoView({block:"start"}),a.current?.()});return()=>cancelAnimationFrame(n)},[e]),Pe(one,{title:c("This page"),open:t,onToggle:r,id:aM,children:Pe(Nne,{})})}function Nne(){let{fields:e,values:o,readOnly:t,onChange:r}=Qae(),a=Object.fromEntries(Fd.filter(n=>n in e).map(n=>[n,e[n]]));return Object.keys(a).length===0?Pe(ane,{variant:"none",icon:!1,message:c("This page has no look of its own to set.")}):Pe(ene,{fields:a,values:o,onChange:r,readOnly:t,tabs:!1,idPrefix:"this-page",ariaLabel:c("This page")})}function Dne({activeId:e,onSelect:o}){return Pe("div",{className:"es-insp-tabs",children:Pe(sne,{variant:"underline",block:!0,labelsFit:!0,"aria-label":c("Styles"),idPrefix:jC,value:e,onChange:o,items:hl.map(t=>{let r=c(t.label);return{id:t.id,icon:t.icon,label:r}})})})}import{InspectorIconButton as Xbe}from"efficient-easel/chrome";import{Input as Zbe,PopupMenu as Jbe,PopupMenuItem as gj,toast as Ij}from"efficient-shell/ui";import{LayersTree as Qbe,TreeGroupLabel as eSe,TreeRow as yj,TreeRowAction as gI}from"efficient-easel/tree";import{AddIcon as oSe,DuplicateIcon as tSe,PageIcon as rSe,SettingsIcon as aSe}from"efficient-easel/icons";import{PagesIcon as nSe}from"efficient-easel/rail";import{useEaselHost as sSe}from"efficient-easel/screen/lib/host";import{useEaselSession as CP}from"efficient-easel/screen/lib/session-context";import{useCallback as Wh,useEffect as Mne,useSyncExternalStore as Hne}from"react";import{useScreenDocument as dM}from"efficient-easel/screen/components/ScreenDocumentContext";var iM=new WeakMap;function Bd(e){let o=iM.get(e);return o||(o={rows:null,loading:null,listeners:new Set},iM.set(e,o)),o}function YC(e,o){e.rows=o;for(let t of e.listeners)t()}var $h=new Set;function Uh(e,o){o?$h.add(e):$h.delete(e)}function lM(e){let o=Bd(e),t=e.listPages().then(r=>YC(o,$h.size?r.filter(a=>!$h.has(a.id)):r),()=>YC(o,[])).finally(()=>{o.loading===t&&(o.loading=null)});return o.loading=t,t}var cM=()=>null,Wne=()=>()=>{};function Nd(){let{adapter:e,ready:o}=dM(),t=Wh(i=>{let{listeners:l}=Bd(e);return l.add(i),()=>l.delete(i)},[e]),r=Wh(()=>Bd(e).rows,[e]),a=Hne(o?t:Wne,o?r:cM,cM);Mne(()=>{if(!o)return;let i=Bd(e);i.rows===null&&!i.loading&&lM(e)},[e,o]);let n=Wh(()=>o?lM(e):Promise.resolve(),[e,o]),s=Wh(i=>YC(Bd(e),i),[e]);return{rows:a,reload:n,setRows:s,getRows:r}}function $ne(e,o){return e?.find(t=>t.slug===o)?.label?.trim()||`/${o}`}function fM(){let{currentSlug:e}=dM(),{rows:o}=Nd();return $ne(o,e)}import{canDuplicatePage as iSe,DuplicatePageDialog as lSe}from"efficient-easel/page-copy";import{jsx as Nt,jsxs as IP}from"react/jsx-runtime";import{useEffect as Ebe,useId as _be,useMemo as Obe,useRef as Abe,useState as yP}from"react";import{useScreenDocument as Rbe}from"efficient-easel/screen/components/ScreenDocumentContext";import{useEaselSession as Lbe}from"efficient-easel/screen/lib/session-context";import{uniqueSlug as lj}from"efficient-easel/page-copy";import{AddIcon as Fbe}from"efficient-easel/icons";import{Dialog as Bbe,EmptyState as Nbe,Grid as Dbe,LoadingSpinner as Mbe,Paragraph as Hbe,SidebarActionButton as Wbe,SidebarLayout as $be,SidebarNavItem as bP,Title as Ube,toast as cj}from"efficient-shell/ui";import{jsx as Pr,jsxs as N6}from"react/jsx-runtime";import{useMemo as Wme,useState as $me}from"react";import{CanvasFrame as Ume}from"efficient-easel/easel";import{Button as zme,Card as Gme,FitFrame as jme,Text as Kme}from"efficient-shell/ui";import{jsx as xM,Fragment as Qne,jsxs as ese}from"react/jsx-runtime";import{useEffect as gM,useLayoutEffect as ose}from"react";var zh="data-theme",pM="light";function Une(e){return e.getAttribute(zh)===pM?"light":"dark"}function zne(e,o){return Une(e)===o?!1:(o==="light"?e.setAttribute(zh,pM):e.removeAttribute(zh),!0)}function Gne(e){return Ky(e).getItem(By)}function n3e(e,o){Ky(e).setItem(By,o)}function jne(e,o,t=new Date().getHours()){return w_({mode:o.mode,override:Gne(e),switchShown:o.switchShown,hour:t})}function uM(e,o){let t=e.documentElement;if(!t)return()=>{};let r=()=>zne(t,jne(e,o));r();let a=e.defaultView?.MutationObserver;if(!a)return()=>{};let n=new a(r);return n.observe(t,{attributes:!0,attributeFilter:[zh]}),()=>n.disconnect()}var Kne="style";function Vne(e,o){let t=Zp(o),r=!1;for(let a of N_){let n=t[a]??"";e.style.getPropertyValue(a)!==n&&(n?e.style.setProperty(a,n):e.style.removeProperty(a),r=!0)}return r}function mM(e,o){let t=e.body;if(!t)return()=>{};let r=()=>Vne(t,o);r();let a=e.defaultView?.MutationObserver;if(!a)return()=>{};let n=new a(r);return n.observe(t,{attributes:!0,attributeFilter:[Kne]}),()=>n.disconnect()}import{VIEW_DESKTOP_MIN as Yne,VIEW_TABLET_MIN as qne}from"efficient-easel/screen/lib/content/view-tiers";var ka={fit:"data-fit",fitTablet:"data-fit-tablet",fitPhone:"data-fit-phone",min:"data-fit-min",minTablet:"data-fit-min-tablet",minPhone:"data-fit-min-phone",edge:"data-fit-edge"},Ft=ka,Xne=e=>e.flatMap(o=>[`[${o}] p`,`[${o}] li`]).join(","),Zne=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(Xne([Ft.fit,Ft.fitTablet,Ft.fitPhone]))};
11
+ var CANDIDATES = SELECTOR + "," + SHRINK_BODY;
12
+ var MIN_SCALE = 0.3, MIN_PX = 16, SLACK = 1, PHONE_BELOW = ${Jo};
13
+ var TABLET_MIN = ${qne}, DESKTOP_MIN = ${Yne};
14
+
15
+ // A block's own answer (lib/content/block-size, the wrapper's attributes):
16
+ // the fit "wrap" | "shrink" | "line" | "ellipsis" and the floor, each with a tablet and a
17
+ // phone twin. From 1100 the desktop's; from the tablet line (800 for a holder
18
+ // in a Box, marked edge; 720 outside one) the tablet's where it has one;
19
+ // under it the phone's, else the tablet's, else the desktop's. With no
20
+ // tablet answer the phone's is read under 800, as before (the edge moves with
21
+ // F1). With none, a heading shrinks and body text wraps, as always.
22
+ // A holder with any tablet attribute takes the three views (its line and 1100)
23
+ // for its fit AND its floor together; one with none keeps the 800 edge.
24
+ var TABLET_ATTRS = [${JSON.stringify(Ft.fitTablet)}, ${JSON.stringify(Ft.minTablet)}];
25
+ function own(el, attr, tabletAttr, phoneAttr) {
26
+ var holder = el.closest("[" + attr + "],[" + tabletAttr + "],[" + phoneAttr + "]");
27
+ if (!holder) return null;
28
+ var w = win.innerWidth, d = holder.getAttribute(attr);
29
+ if (w >= DESKTOP_MIN) return d;
30
+ var t = holder.getAttribute(tabletAttr), p = holder.getAttribute(phoneAttr);
31
+ if (w < (holder.hasAttribute(${JSON.stringify(Ft.edge)}) ? PHONE_BELOW : TABLET_MIN)) return p || t || d;
32
+ if (holder.hasAttribute(TABLET_ATTRS[0]) || holder.hasAttribute(TABLET_ATTRS[1])) return t || d;
33
+ return (w < PHONE_BELOW && p) || d;
34
+ }
35
+ function modeOf(el) {
36
+ var mode = own(el, ${JSON.stringify(Ft.fit)}, ${JSON.stringify(Ft.fitTablet)}, ${JSON.stringify(Ft.fitPhone)});
37
+ if (mode === "wrap" || mode === "shrink") return mode;
38
+ // One line and Shorten (stored "ellipsis", which cuts its words with "..."):
39
+ // the block keeps its words at their set size, nothing shrinks.
40
+ if (mode === "line" || mode === "ellipsis") return "wrap";
41
+ return el.matches(SELECTOR) ? "shrink" : "wrap";
42
+ }
43
+ function floorOf(el, set) {
44
+ var raw = own(el, ${JSON.stringify(Ft.min)}, ${JSON.stringify(Ft.minTablet)}, ${JSON.stringify(Ft.minPhone)});
45
+ var min = parseFloat(raw);
46
+ // A Min font size in vw (block-size.ts): a share of the window's width.
47
+ if (/vw$/.test(String(raw))) min = min * win.innerWidth / 100;
48
+ return min >= 0 ? min : Math.max(set * MIN_SCALE, MIN_PX);
49
+ }
50
+
51
+ function measure(el) {
52
+ var widest = 0, current = 0, last = null, split = false, lastBlock = null;
53
+ function blockOf(n) {
54
+ for (var p = n.parentElement; p && p !== el; p = p.parentElement) {
55
+ var d = win.getComputedStyle(p).display;
56
+ if (d.indexOf("inline") !== 0 && d !== "contents") return p;
57
+ }
58
+ return el;
59
+ }
60
+ function close() { if (current > widest) widest = current; current = 0; last = null; }
61
+ var walker = doc.createTreeWalker(el, 5), range = doc.createRange(), node;
62
+ while ((node = walker.nextNode())) {
63
+ if (node.nodeType === 1) {
64
+ if (node.tagName === "BR" || node.tagName === "WBR") close();
65
+ continue;
66
+ }
67
+ var block = blockOf(node);
68
+ if (block !== lastBlock) close();
69
+ lastBlock = block;
70
+ var re = /(\S+)|(\s+)/g, m;
71
+ while ((m = re.exec(node.data))) {
72
+ if (m[2]) { close(); continue; }
73
+ range.setStart(node, m.index);
74
+ range.setEnd(node, m.index + m[0].length);
75
+ var rects = range.getClientRects();
76
+ for (var i = 0; i < rects.length; i++) {
77
+ var r = rects[i];
78
+ if (r.width <= 0) continue;
79
+ current += r.width;
80
+ if (last && r.top > last.top + last.height / 2) split = true;
81
+ last = r;
82
+ }
83
+ }
84
+ }
85
+ close();
86
+ return { widest: widest, split: split };
87
+ }
88
+
89
+ function lineWidth(el) {
90
+ var cs = win.getComputedStyle(el);
91
+ return el.getBoundingClientRect().width - parseFloat(cs.paddingLeft) - parseFloat(cs.paddingRight)
92
+ - parseFloat(cs.borderLeftWidth) - parseFloat(cs.borderRightWidth);
93
+ }
94
+
95
+ // ⚠️ THE HEADING ELEMENT IS NEVER TOUCHED — no style="", no data-*. This
96
+ // runs before React hydrates, and React 19 in development reports ANY
97
+ // attribute that differs from what it rendered ("a tree hydrated but some
98
+ // attributes didn't match"): first our inline font-size on the hero (which
99
+ // React owns via --heading-size), then, when that moved to a data-sf-fit
100
+ // attribute, the attribute itself. So the fitted size lives only in this
101
+ // script's own stylesheet, in <head>, addressed to each heading by its
102
+ // POSITION (":root>*:nth-child(2)>…"). A position goes stale when the page's
103
+ // structure changes, so the rules are rewritten in the MutationObserver
104
+ // callback, which runs before the next paint. !important so the size also
105
+ // beats a part's own inline size.
106
+ var head = doc.head || doc.documentElement;
107
+ var fitEl = doc.createElement("style");
108
+ fitEl.id = "storefront-fit-words-sizes";
109
+ head.appendChild(fitEl);
110
+ // heading -> [[element, fitted size]]: the heading and each Text part inside
111
+ // it that holds its own size (a span [data-sf-part-styled]), e.g.
112
+ // [[h2, "43.8px"], [span, "43.8px"]]. Sizing the heading alone leaves such
113
+ // a part at its own size, and the word still breaks (card C25, Spec Table).
114
+ var fitted = new Map();
115
+
116
+ function pathOf(el) {
117
+ var parts = [];
118
+ for (var e = el; e && e.parentElement; e = e.parentElement) {
119
+ var i = 1, s = e;
120
+ while ((s = s.previousElementSibling)) i++;
121
+ parts.unshift("*:nth-child(" + i + ")");
122
+ }
123
+ return ":root>" + parts.join(">");
124
+ }
125
+ function writeRules() {
126
+ var css = "";
127
+ fitted.forEach(function (sizes, el) {
128
+ if (!el.isConnected) { fitted.delete(el); return; }
129
+ for (var i = 0; i < sizes.length; i++) css += pathOf(sizes[i][0]) + "{font-size:" + sizes[i][1] + " !important}";
130
+ });
131
+ if (fitEl.textContent !== css) fitEl.textContent = css;
132
+ }
133
+
134
+ function unfit(el) {
135
+ if (fitted.delete(el)) writeRules();
136
+ }
137
+
138
+ function fits(el) {
139
+ var m = measure(el);
140
+ return !m.split && m.widest <= lineWidth(el) + SLACK;
141
+ }
142
+
143
+ function fit(el) {
144
+ unfit(el);
145
+ if (modeOf(el) !== "shrink") return; // the block's own Wrap
146
+ if (lineWidth(el) <= 0) return; // hidden, or not laid out yet
147
+ if (fits(el)) return;
148
+ var set = parseFloat(win.getComputedStyle(el).fontSize);
149
+ if (!set) return;
150
+ var floor = floorOf(el, set);
151
+ if (floor >= set) return;
152
+ function size(px) { return Math.floor(px * 10) / 10 + "px"; }
153
+ // The SEARCH tries sizes on the element's own style and then puts that
154
+ // attribute back byte for byte (or removes it, if it had none), so nothing
155
+ // is left for React to see. A trial in a stylesheet instead restyles the
156
+ // whole page per step: a full pass on the Hartes home took 75–160ms at 4x
157
+ // CPU that way.
158
+ // Every trial scales the heading AND each part inside it that holds its
159
+ // own size, by the same ratio, so a part keeps its proportion to the
160
+ // heading.
161
+ var carriers = [el].concat(Array.prototype.slice.call(el.querySelectorAll("[data-sf-part-styled]")));
162
+ var base = carriers.map(function (c) { return parseFloat(win.getComputedStyle(c).fontSize) || set; });
163
+ var saved = carriers.map(function (c) { return c.hasAttribute("style") ? c.getAttribute("style") : null; });
164
+ function attempt(px) {
165
+ for (var i = 0; i < carriers.length; i++) carriers[i].style.setProperty("font-size", size(base[i] * px / set), "important");
166
+ }
167
+ function done() {
168
+ for (var i = 0; i < carriers.length; i++) {
169
+ if (saved[i] !== null) carriers[i].setAttribute("style", saved[i]); else carriers[i].removeAttribute("style");
170
+ }
171
+ }
172
+ attempt(floor);
173
+ if (!fits(el)) { done(); return; } // even the floor does not fit: leave it as set
174
+ var lo = floor, hi = set;
175
+ for (var i = 0; i < 8; i++) {
176
+ var mid = (lo + hi) / 2;
177
+ attempt(mid);
178
+ if (fits(el)) lo = mid; else hi = mid;
179
+ }
180
+ done();
181
+ fitted.set(el, carriers.map(function (c, i) { return [c, size(base[i] * lo / set)]; }));
182
+ writeRules();
183
+ }
184
+
185
+ // What each heading measured right after we last fitted it, so the
186
+ // ResizeObserver below can tell a real change (a font swap, a rotate, a
187
+ // container that moved) from the size change our own write just caused.
188
+ var seen = new WeakMap();
189
+ function remember(el) {
190
+ var b = el.getBoundingClientRect();
191
+ seen.set(el, b.width + "x" + b.height);
192
+ }
193
+ function fitAndRemember(el) { fit(el); remember(el); }
194
+
195
+ // ⚠️ A ResizeObserver, NOT fonts.ready or a resize event, and the reason is
196
+ // WHEN it runs: after layout, BEFORE paint. The web font arriving re-wraps a
197
+ // fitted heading, and fonts.ready resolves only after that frame is painted —
198
+ // measured on the Hartes hero: a 42px jump in 2 of 3 loads. A size change
199
+ // reported here is fitted in the same frame, so the broken state is never
200
+ // drawn. It also covers a container that resizes.
201
+ var ro = new win.ResizeObserver(function (entries) {
202
+ for (var i = 0; i < entries.length; i++) {
203
+ var el = entries[i].target;
204
+ var b = el.getBoundingClientRect();
205
+ if (seen.get(el) === b.width + "x" + b.height) continue; // our own write
206
+ fitAndRemember(el);
207
+ }
208
+ });
209
+ // Its own set, not seen: fitAndRemember has written seen by the
210
+ // time watch runs, so a seen test observed no heading at all, and a
211
+ // heading fitted in the fallback face was never fitted again when the web
212
+ // font arrived (hartesmetal.com.au, "FusionForge." with its "." alone).
213
+ var watched = new WeakSet();
214
+ function watch(el) { if (!watched.has(el)) { watched.add(el); ro.observe(el); } }
215
+
216
+ function fitAll() {
217
+ var els = doc.querySelectorAll(CANDIDATES);
218
+ for (var i = 0; i < els.length; i++) {
219
+ if (modeOf(els[i]) === "shrink") { fitAndRemember(els[i]); watch(els[i]); }
220
+ else unfit(els[i]); // Wrap here (a phone value may differ from the desktop's)
221
+ }
222
+ }
223
+
224
+ var queued = 0, all = false, touched = new Set();
225
+ function run() {
226
+ queued = 0;
227
+ if (all) { all = false; touched.clear(); fitAll(); return; }
228
+ var els = Array.from(touched);
229
+ touched.clear();
230
+ for (var i = 0; i < els.length; i++) {
231
+ if (!els[i].isConnected) continue;
232
+ if (modeOf(els[i]) === "shrink") { fitAndRemember(els[i]); watch(els[i]); }
233
+ else unfit(els[i]);
234
+ }
235
+ }
236
+ function schedule() { if (!queued) queued = win.requestAnimationFrame(run); }
237
+ function scheduleAll() { all = true; schedule(); }
238
+
239
+ fitAll();
240
+ // A backstop only: a font that changes widths without changing any
241
+ // heading's box is not seen by the ResizeObserver.
242
+ if (doc.fonts && doc.fonts.ready) doc.fonts.ready.then(scheduleAll, function () {});
243
+
244
+ // …and the viewport WIDTH, which the ResizeObserver cannot stand in for: a
245
+ // heading sized to its own text (fit-content, a flex item) keeps the SAME box
246
+ // when the phone turns to 844, so nothing reports a change and it would stay
247
+ // shrunk. The probe's rotate check caught exactly that.
248
+ var lastWidth = win.innerWidth;
249
+ function onResize() {
250
+ if (win.innerWidth === lastWidth) return; // a phone's toolbar changing HEIGHT is not our business
251
+ lastWidth = win.innerWidth;
252
+ scheduleAll();
253
+ }
254
+ win.addEventListener("resize", onResize);
255
+
256
+ var mo = new win.MutationObserver(function (records) {
257
+ // Positions first: a node added or removed anywhere can shift the
258
+ // nth-child path of a fitted heading, and this callback runs before paint.
259
+ if (fitted.size) {
260
+ for (var q = 0; q < records.length; q++) if (records[q].type === "childList") { writeRules(); break; }
261
+ }
262
+ for (var i = 0; i < records.length; i++) {
263
+ var r = records[i];
264
+ // A block's text fit (Wrap / Shrink / One line) or Min font size changed in the editor:
265
+ // only a data-fit attribute moved, so every heading is measured again.
266
+ if (r.type === "attributes") { scheduleAll(); continue; }
267
+ var target = r.target.nodeType === 1 ? r.target : r.target.parentElement;
268
+ var owner = target && target.closest(CANDIDATES);
269
+ if (owner) touched.add(owner);
270
+ for (var j = 0; j < r.addedNodes.length; j++) {
271
+ var n = r.addedNodes[j];
272
+ if (n.nodeType !== 1) continue;
273
+ if (n.matches(CANDIDATES)) touched.add(n);
274
+ var inner = n.querySelectorAll(CANDIDATES);
275
+ for (var k = 0; k < inner.length; k++) touched.add(inner[k]);
276
+ }
277
+ }
278
+ if (touched.size) schedule();
279
+ });
280
+ mo.observe(doc.body, {
281
+ childList: true,
282
+ subtree: true,
283
+ characterData: true,
284
+ attributes: true,
285
+ attributeFilter: ${JSON.stringify(Object.values(Ft))},
286
+ });
287
+
288
+ doc.__sfFitWords = function stop() {
289
+ win.removeEventListener("resize", onResize);
290
+ ro.disconnect();
291
+ mo.disconnect();
292
+ if (queued) win.cancelAnimationFrame(queued);
293
+ fitted.clear();
294
+ fitEl.remove();
295
+ delete doc.__sfFitWords;
296
+ };
297
+ // For the probe and for debugging: which headings are fitted, at what size,
298
+ // and the sheet that holds it (disable it to read a heading's set size).
299
+ doc.__sfFitWords.fitted = fitted;
300
+ doc.__sfFitWords.sheet = fitEl;
301
+ // …and the two questions a block's own answer changes, for the guard
302
+ // (scripts/test-block-size.tsx §5): which mode an element is in, and its floor.
303
+ doc.__sfFitWords.modeOf = modeOf;
304
+ doc.__sfFitWords.floorOf = floorOf;
305
+ })(document);`,Jne="storefront-fit-words";function hM(e){let o=e.createElement("script");return o.id=Jne,o.textContent=Zne,(e.head??e.documentElement).appendChild(o),()=>{e.__sfFitWords?.(),o.remove()}}var tse=`
306
+ [${co}][${co}] { cursor: text; }
307
+ `;function Gh({children:e,document:o}){let{theme:t,themeMode:r,themeSwitchShown:a}=fe(),n=vo(t);return gM(()=>{if(o)return uM(o,{mode:r,switchShown:a})},[o,r,a]),gM(()=>{if(o)return mM(o,n)},[o,n]),ose(()=>{if(o)return hM(o)},[o]),ese(Qne,{children:[xM(YO,{}),xM("style",{children:tse}),e]})}import{jsx as H$}from"react/jsx-runtime";import{memo as Oue}from"react";import{Render as Aue}from"efficient-easel/render";import{jsx as yl}from"react/jsx-runtime";import{createContext as rse,useContext as ase,useMemo as nse}from"react";var qC=rse(null);function sse({children:e}){return yl(qC.Provider,{value:"first",children:e})}function Kh({children:e}){return yl(qC.Provider,{value:"below",children:e})}function Dd(){return ase(qC)}function XC(){return Dd()==="below"?{loading:"lazy"}:{}}function Vh(e){let o=XC();return yl("img",{...e,...o})}var IM="laterSlideIds",ise=new Set(["Breadcrumb","CategoryBar","Divider","Spacer","Ticker"]);function yM(e){return Ld(e?.filter(o=>!o?.type||!ise.has(o.type)))}function jh(e,o=[]){if(Array.isArray(e))for(let t of e)jh(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))jh(r,o)}return o}function bM(e,o){let t=o?.type,r=o?.props?.id;return nse(()=>{let a=t?e.components[t]:void 0;if(!t||!a)return e;let n=a.render,s=i=>i.id===r?yl(sse,{children:yl(n,{...i})}):yl(n,{...i});return{...e,components:{...e.components,[t]:{...a,render:s}}}},[e,t,r])}function SM(e){return e.props?ho(e,o=>{let t=so(o,SM),r=e.type===dO&&t.every(a=>a.type===ou)?iO(t):t;return r.length!==o.length||r.some((a,n)=>a!==o[n])?r:o}):e}function wM(e){return wp(e,o=>so(o,SM))}var lse="Flex",CM="ListSearch",vM=["FAQ"],cse="listKey";function kM(e,o){let t={search:e.type===CM,list:vM.includes(String(e.type))};return ho(e,r=>{for(let a of r){let n=kM(a,o);t.search||=n.search,t.list||=n.list}return r}),e.type===lse&&t.search&&t.list&&String(e.props?.id??"")?(o.add(e),{search:!1,list:!1}):t}function TM(e,o,t){let r=o.has(e)?String(e.props?.id):t,a=ho(e,n=>so(n,s=>TM(s,o,r)));return r&&(e.type===CM||vM.includes(String(e.type)))?{...a,props:{...a.props,[cse]:r}}:a}function PM(e){return li(e,o=>{let t=new Set;for(let r of o)kM(r,t);return t.size?so(o,r=>TM(r,t,"")):o})}import{isNode as Jie,isNodeList as nH}from"efficient-easel/data";import{jsx as Ve,Fragment as Wie,jsxs as _a}from"react/jsx-runtime";import{jsx as OM}from"react/jsx-runtime";import{SITE_SIDE as dse}from"efficient-easel/screen/lib/content/length-units";var EM="sideSpace",ys=dse,_3e=[{value:"box",label:"Box"},{value:ys,label:"Site"}],O3e="box",A3e="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 _M(e){return e===ys?ys:"box"}function R3e(e){return e===ys?ys:void 0}import{isNodeList as fse}from"efficient-easel/data";var ZC=new Set(["FAQ"]);function Bt(e,o){if(!ZC.has(e))return!1;let t=o.template;return typeof t=="function"?(t.blockCount??0)>0:fse(t)}var RM={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}},LM=new Set(Object.keys(RM));function JC(e,o){return o?.innerPadding??$(RM,e)}var bl=e=>JC(e)??{};var Yh=new Set(["Flex","Text","Heading","ImageBlock"]),pse=new Set(["Divider"]),use=new Set(["Hero","HeroSingle","IntroBleed","CategoryBar","DocTabs"]),AM=new Set(["ProductGrid"]);function QC(e,o,t=!1){let r=e.render;e.render=a=>{if(o?.(a))return r(a);let n=td({..._S(a,ga,t),sideSpace:_M(a.sideSpace)}),s=r(a);if(!n)return s;let i=f=>OM(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):OM(lu,{line:"by-box",draw:f=>i(f?d:l)})}}var FM={name:"sectionPadding",applies:(e,o,t)=>o.isSection(e)&&!use.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:es,fallback:r,tablet:!0,siteSide:!0})};return}if(AM.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(AM.has(o)){QC(e);return}Yh.has(o)||pse.has(o)||QC(e,o==="Flex"?t=>Wb(t.bgImage):ZC.has(o)?t=>Bt(o,t):void 0,!0)}}},mse=["Heading","Text","ImageBlock"],hse=["LogoBlock"],BM={name:"blockPadding",applies:(e,o,t)=>(mse.includes(e)||hse.includes(e))&&!!t&&typeof t.render=="function",panel(e,o,t){e.fields={...e.fields,...t.sidesPaddingFields({tablet:!0,siteSide:!0})}},draw(e,o){Yh.has(o)||QC(e,void 0,!0)}};import{createContext as ev,useContext as qh}from"react";var NM=ev(null);function V3e(){return qh(NM)===!0}function Y3e(){return qh(NM)!==null}var xse=ev(!1);function q3e(){return qh(xse)}function X3e(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 Xh=ev(null);function Z3e(){return qh(Xh)}import{jsx as bs}from"react/jsx-runtime";import{Component as vse,createContext as kse,lazy as uWe,Suspense as mWe,useContext as Tse,useSyncExternalStore as Pse}from"react";function gse(e,o){let t=e.trim();if(!Zh(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 eWe(e){return e.startsWith("/")||Zh(e)}function Zh(e){return/^(?:https?:)?\/\//i.test(e.trim())}var Md=Object.freeze({target:"_blank",rel:"noopener noreferrer"});function DM(e,o){return gse(e,o)?{...Md}:{}}function oWe(e){return typeof e=="string"?e.trim():""}var tWe="data-sf-box-link",MM="absolute inset-0 -z-[1] outline-none focus-visible:z-[2] focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-accent",ov="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",Ise="data-sf-box-jump";function yse(e){return`sf-box-jump-${e}`}function rWe(e,o){return e===!0?Gn(o):""}function bse({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 aWe(e){let o=`[${Ise}="${e}"]`,t=`.${yse(e)}`,r=`[id="${e}"]:target`;return bse({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 Sse="hrefRewrite";function wse(){return ni("efficient.link-href-rewrites",()=>({rewrites:new Map,count:0,missed:new Set}))}function Cse(){return typeof process<"u"&&!0}function iWe(e){let o=e?.[Sse];return typeof o=="string"?o.trim():""}function HM(e){if(!e)return null;let o=wse(),t=o.rewrites.get(e);return!t&&!Cse()&&o.missed.add(e),t??null}var Ese={Link:NO,Image:BO},WM=kse(Ese);function bWe({runtime:e,children:o}){return bs(WM.Provider,{value:e,children:o})}function rv(){return Tse(WM)}function SWe(){return rv().pagePath??null}var _se=()=>()=>{},Ose=()=>mu()||null,Ase=()=>null;function Rse(){return Pse(_se,Ose,Ase)}function Ss({hrefRewrite:e,newTab:o,...t}){let{Link:r}=rv(),a=Rse(),n=o===!0?{...t,...Md}:o==="auto"?{...t,...DM(t.href,a)}:t,s=HM(e);return s?bs(tv,{name:s.name,href:n.href,fallback:bs(r,{...n}),children:bs(Lse,{Link:r,rewrite:s.rewrite,...n})},s.key):bs(r,{...n})}function Lse({Link:e,rewrite:o,...t}){let r=be(o(t.href)),a=r&&nE(r)?r:t.href;return bs(e,{...t,href:a})}var tv=class extends vse{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 Jh(e){let{Image:o}=rv();return bs(o,{...e})}import{jsx as _ie}from"react/jsx-runtime";import{jsx as Le,jsxs as rt,Fragment as kie}from"react/jsx-runtime";import{imageCopyUrl as zM,imageSrcSet as Fse}from"efficient-shell/image-copies";var $M;function av(){return $M===void 0?{}:{host:$M}}var vWe="(max-width: 800px) 100vw, min(100vw, 1600px)",kWe="(max-width: 960px) 100vw, 50vw";function ws(e,{fallbackWidth:o=1280,maxWidth:t}={}){let r=Fse(e,{...av(),...t===void 0?{}:{maxWidth:t}});return r?{src:zM(e,o,av()),srcSet:r}:{src:e}}var Bse=/[\s"'()\\;]/,Nse={"\\":"\\\\",'"':'\\"',"\n":"\\a ","\r":"\\d ","\f":"\\c "};function UM(e){return e.replace(/[\\"\n\r\f]/g,o=>Nse[o]??o)}function TWe(e){let o=zM(e,1920,av());return o===e?Bse.test(e)?`url("${UM(e)}")`:`url(${e})`:`url("${UM(o)}")`}var Hd="solid",Dse=[{label:"Solid",value:"solid"},{label:"Outlined",value:"outlined"}];function GM(e){return xo(Dse,Hd,e)}var nv="sf-secnum-outline",jM="font-display text-[length:var(--size-headingMedium,clamp(48px,6vw,96px))] font-medium leading-[0.8] tracking-[-0.02em]",KM=`@supports (-webkit-text-stroke: 1px currentColor){.${nv}{color:var(--site-surface-2);-webkit-text-stroke:1px var(--site-line)}}`;var sv="plain",VM=[{label:"Plain",value:"plain"},{label:"Filled",value:"filled"},{label:"Line",value:"line"}],Mse="line",Hse={KeyFeatures:"filled"};function Wd(e){return $(Hse,e)??sv}function YM(e,o){return xo(VM,Wd(o),e)}function RWe(e){return xo(VM,Mse,e)}import{jsxs as ks,jsx as to}from"react/jsx-runtime";import{Fragment as gv}from"react";import{Fragment as fie,jsx as mv}from"react/jsx-runtime";import{Fragment as l2,jsx as jd,jsxs as rie}from"react/jsx-runtime";import{createContext as uv,useContext as Kd,useEffect as aie,useId as nie,useMemo as sie,useRef as iie}from"react";import{armEntrance as lie}from"efficient-shell/format";import{jsx as Wse}from"react/jsx-runtime";import{useEffect as XM,useRef as qM,useState as $se}from"react";import{armEntrance as Use,entranceAttrs as zse,playEntrance as Gse}from"efficient-shell/format";function Qh({views:e,editing:o,boxClass:t,boxAttrs:r,boxStyle:a,takesViewHide:n=!1,atEdge:s=!1,children:i}){let l=qM(null),d=du(),f=Wt(),u=n?f:Ua,p=$d(l,!0,s),{attrs:m,style:h}=zse(e[p]),I=qM(Sl.seed(e)),w=JSON.stringify(e);return XM(()=>{let S=l.current;if(S){if(o){let C=Sl.next(I.current,e,p);I.current=C.seen,C.play&&Gse(S);return}return Use(S)}},[w,p,o]),u.scope(Wse("div",{ref:l,className:et(`${ki}${d.fill}${t?` ${t}`:""}`,u.className),...r,...u.attrs,...m,...Object.keys(h).length||a?{style:{...a,...h}}:{},children:d.inner(i)}))}var Sl={seed(e){return{desktop:JSON.stringify(e.desktop),tablet:JSON.stringify(e.tablet),phone:JSON.stringify(e.phone)}},next(e,o,t){let r=Sl.seed(o);return{play:r[t]!==e[t],seen:r}}};function $d(e,o=!0,t=!1){return Ud(e,o,t)??"desktop"}function Ud(e,o=!0,t=!1){let[r,a]=$se(void 0),n=$a(t?"edge":"by-box"),{phone:s,tablet:i}=PC(n);return XM(()=>{if(!o)return;let l=e.current?.ownerDocument?.defaultView??(typeof window>"u"?null:window);if(!l?.matchMedia){a("desktop");return}let d=l.matchMedia(s),f=l.matchMedia(i),u=()=>a(d.matches?"phone":f.matches?"tablet":"desktop");return u(),d.addEventListener("change",u),f.addEventListener("change",u),()=>{d.removeEventListener("change",u),f.removeEventListener("change",u)}},[e,o,s,i]),r}var zd="@name",ZM="@body",JM="@value",QM={[zd]:"Name",[ZM]:"Body",[JM]:"Value"},jse={TimelineTrack:{"entries.date":zd,"entries.title":zd,"entries.blurb":ZM},Footprint:{"offices.city":zd},Stats:{"items.label":zd,"items.value":JM}};function Kse(e){let{key:o,row:t}=Cr(e);return t?`${o}.${t.rowKey}`:null}function Ta(e,o){if(!e)return o;let t=Kse(o);return t?$(jse,e)?.[t]??o:o}import{ENTRANCE_STATE_ATTR as Jse,entranceAttrs as Qse,scrollAttrs as eie}from"efficient-shell/format";import{parseFocal as qse,formatFocal as Xse,readScroll as Zse}from"efficient-shell/format";import{phoneKey as Vse,tabletKey as Yse}from"efficient-easel/screen/lib/content/view-tiers";var iv=[{block:"HeroSlide",upload:"mediaImage",focus:Wn.image},{block:"HeroSlide",upload:"mediaImage2",focus:Wn.image2},{block:"HeroSingle",upload:"mediaImage",focus:Wn.image},{block:"HeroSingle",upload:"mediaImage2",focus:Wn.image2},{block:"ImageBlock",upload:"src",focus:"focal"}],e2=e=>[e,Yse(e),Vse(e)],VWe=[...new Set(iv.flatMap(e=>e2(e.focus)))].sort();function o2(e,o){let[t,r,a]=e2(o).map(n=>typeof e[n]=="string"&&e[n]?e[n]:void 0);return{desktop:t,tablet:r,phone:a}}var Go={effect:"scroll",zoom:"scrollZoom",start:"scrollStart",end:"scrollEnd"},wl="_gScroll",ex="_cScroll",ox=ru(Object.values(Go));function Pa(e,o){return Zse(Ec(e,Go.effect,o),Ec(e,Go.zoom,o),Ec(e,Go.start,o),Ec(e,Go.end,o))}function Cl(e){let o={desktop:Pa(e,"desktop"),tablet:Pa(e,"tablet"),phone:Pa(e,"phone")};return It.every(t=>o[t].effect==="none")?null:o}function lv(e){let o=pO(e.desktop,e.tablet,e.phone),t=r=>{let a=o[r];if(typeof a!="string")return;let{x:n,y:s}=qse(a);return Xse(n,s)};return{desktop:t("desktop"),tablet:t("tablet"),phone:t("phone")}}function t2(e,o){return lv(o2(e,o))}var tx={},cv="_partMotion",dv=[...au,Mt,uo.duration,uo.delay,...ox];function a2(e){return fl(e,cv)}function Cs(e,o){return Th(e,cv,o)}var oie=new Set([_t.kind,Mt,Go.effect]);function n2(e,o,t,r){let{[t]:a,...n}=Cs(e,o),s=r==null||r===""||r==="none"&&oie.has(t)?n:{...n,[t]:r};return Ph(e,cv,o,Object.keys(s).length?s:null)}function Gd(e){return{entrance:Ti(e),hover:pE(e),scroll:Cl(e)}}function s2(e){let o=Gd(e);return o.entrance!==null||o.hover!=="none"||o.scroll!==null}function rx(e,o){let{attrs:t,style:r}=Qse(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(Jse)}}function ax(e,o){let{attrs:t,style:r}=eie(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 tie=4;function vl(e){let o;for(let t of e)(!o||t.element.compareDocumentPosition(o.element)&tie)&&(o=t);return o}var fv="data-sf-part-host";function nx(e){let o=e?.ownerDocument.defaultView,t=e;for(;t&&!t.hasAttribute(fv)&&!t.classList.contains(ki);){let r=o?.getComputedStyle(t).display??"";if(r==="contents")return null;if(r!=="inline")return t;t=t.parentElement}return null}var vs="data-sf-part-lift",r2="sf-part-lift";function sx(e){if(e.getElementById(r2))return;let o=e.createElement("style");o.id=r2,o.textContent=XN(`[${vs}]`).join(`
320
+ `),e.head.appendChild(o)}function i2(e){return e.replace(/<(?=\/)/g,"\\3c ")}var ix=uv(null),d2=uv(null),f2=uv(null);function p2({needles:e,styles:o,motions:t=tx,type:r,atEdge:a=!1,children:n}){let s=nie(),i=$a(a?"edge":"by-box"),l=JSON.stringify([s,e,o,t,r]),d=sie(()=>{let u=Object.keys(t).filter(p=>s2(t[p]));return pD(e,o,s,p=>Ta(r,p),p=>Od(r,p),p=>u.includes(p)?Gd(t[p]):null,u)},[l]);if(!d)return jd(l2,{children:n});let f=uD(d,{inBox:i});return rie(l2,{children:[f&&jd("style",{href:`${cie}${s}-${die(f)}`,precedence:m2,dangerouslySetInnerHTML:{__html:i2(f)}}),jd(ix.Provider,{value:d,children:n})]})}var pv=new WeakMap;function c2(e,o){let t=vl(o.filter(a=>a.arm)),r=o.some(a=>a.entering)?void 0:vl(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)?(sx(e.ownerDocument),e.setAttribute(vs,"")):e.removeAttribute(vs)}function u2(e){let o=iie(null),t=e?.motion?.entrance??null,r=e?.motion?.scroll??null,a=e?.motion?.hover==="lift",n=$d(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 aie(()=>{let d=o.current,f=nx(d?.parentElement??null);if(!t&&!r&&!a||!d||!f)return;let u=s?()=>{let h=rx(f,s),I=lie(f);return()=>{I?.(),h()}}:null,p=pv.get(f)??[];pv.set(f,p);let m={element:d,arm:u,entering:s!==null&&s.kind!=="none",scroll:i?()=>ax(f,i):null,lift:a};return p.push(m),c2(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,c2(f,p),p.length||pv.delete(f))}},[l,a]),o}var m2="sf-part-styles",cie=`${m2}-`;function die(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 h2(e){let o=Kd(ix),t=Kd(d2),r=mD(o,e);return r&&r.stamp!==t?r:null}function x$e(e){return TC(Kd(ix),e)}function x2({stamp:e,children:o}){return jd(d2.Provider,{value:e,children:o})}function g$e({children:e}){let o=Kd(ix);return jd(f2.Provider,{value:o,children:e})}function I$e(e){return TC(Kd(f2),e)}function Vd({value:e,children:o}){let t=h2(e),r=u2(t);return t?mv(x2,{stamp:t.stamp,children:mv("span",{ref:r,[pC]:t.stamp,...t.textStyle?{[vr]:t.textStyle}:{},children:o})}):mv(fie,{children:o})}import{jsx as hv,Fragment as pie}from"react/jsx-runtime";function g2({className:e=""}){return hv("sup",{className:`text-accent tracking-normal text-[length:min(1em,max(0.75em,11px))] ${e}`,children:"\xAE"})}function qt(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(hv(g2,{},`r${a}`))}),hv(pie,{children:t})}var k$e=g2;function go(e,o=!1,t){let r=yie(o),a=Tp(e);if(a.length===1){let[s]=a,i=sE(s),l=i?gie(i,s.children):s.children;return ks(Vd,{value:e,children:[t,lx(l,r)]})}let n=[];return a.forEach((s,i)=>{if(s.bullet){n.push(to("span",{"data-sf-bullet":"",className:uie,children:lx(s.children,r)},i));return}if(s.number!=null){n.push(ks("span",{"data-sf-number":s.number,className:mie,children:[ks("span",{className:hie,children:[s.number,"."]}),lx(s.children,r)]},i));return}i>0&&!xie(a[i-1])&&n.push(to("br",{},`br${i}`)),n.push(to(gv,{children:lx(s.children,r)},i))}),ks(Vd,{value:e,children:[t,n]})}var uie="relative block pl-6 before:absolute before:left-1.5 before:font-bold before:text-accent before:content-['\xB7']",mie="relative block pl-[2em]",hie="absolute left-0 w-[1.6em] text-right tabular-nums";function xie(e){return e.bullet||e.number!=null}var I2="text-accent underline underline-offset-[0.18em]";function gie(e,o){let[t,...r]=o;return t?.kind==="text"?[{kind:"text",text:`${e}${t.text}`},...r]:[{kind:"text",text:e},...o]}function Iie(e){return Di(e)||void 0}function lx(e,o){let t=[],r=!1;return e.forEach((a,n)=>{if(a.kind==="text"){t.push(to("span",{children:qt(a.text)},n)),r=!0;return}r||t.push(to("span",{},`e${n}`)),t.push(b2(a,n,o)),r=!1}),r||t.push(to("span",{},"end")),t}function xv(e,o){return e.length===1&&e[0].kind==="text"?qt(e[0].text):e.map((t,r)=>t.kind==="text"?to(gv,{children:qt(t.text)},r):b2(t,r,o))}function yie(e){return e?"font-normal italic text-accent":"not-italic text-accent"}function N$e(e){return y2(e)}function y2(e,o){let t=e.split(`
321
+ `);return ks(Vd,{value:e,children:[o,t.map((r,a)=>ks(gv,{children:[a>0?to("br",{}):null,to("span",{children:r})]},a))]})}function b2(e,o,t){if(e.kind==="link")return Zh(e.href)?to(Ss,{newTab:"auto",href:e.href,className:I2,children:xv(e.children,t)},o):to("a",{href:e.href,className:I2,children:xv(e.children,t)},o);let r=xv(e.children,t),a=tE[e.kind];if(a)return to("span",{[rE]:a,children:r},o);switch(e.kind){case"underline":return to("u",{children:r},o);case"sup":return to("sup",{children:r},o);case"sub":return to("sub",{children:r},o);case"color":{let n=Iie(e.color);return n?to("span",{style:{color:n},children:r},o):to("span",{children:r},o)}case"accent":case"highlight":return to("em",{className:t,children:r},o);case"bold":return to("strong",{className:"font-semibold",children:r},o);case"italic":return to("em",{className:"italic",children:r},o);case"strike":return to("s",{className:"line-through",children:r},o);default:return to("span",{children:r},o)}}function S2(e,o=!0,t=!1){let r=e.split(`
322
+ `);return to(Vd,{value:e,children:r.map((a,n)=>ks("span",{children:[t?y2(a):go(a,o),n<r.length-1?to("br",{}):null]},n))})}function w2(e){return e.split(/\n\s*\n/).map(o=>o.trim()).filter(Boolean)}import{jsx as Iv,jsxs as Sie}from"react/jsx-runtime";import{jsx as bie}from"react/jsx-runtime";function C2(){return bie("span",{className:"block h-px w-[30px] bg-current"})}var yv={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 wie(e,o){return`font-mono text-[length:var(--size-label,${e}px)] uppercase tracking-[0.3em] text-accent`}var Cie=`inline-block w-fit bg-accent px-3.5 py-1.5 font-mono ${yv.labelSmall} font-semibold uppercase tracking-[0.16em] text-bg`,vie=`flex items-center gap-3.5 font-mono ${yv.labelLarge} uppercase tracking-[0.3em] opacity-80 ${yv.labelUpTo800} max-view-wide:tracking-[0.25em]`;function kl({text:e,look:o="plain",size:t=13,scaled:r=!0,className:a="",classNameAfter:n="",takesViewHide:s=!1}){let i=Wt(),l=s?i:Ua;if(o==="line")return l.scope(Sie("div",{className:et([a,vie,n].filter(Boolean).join(" "),l.className),...l.attrs,children:[Iv(C2,{}),Iv("span",{children:go(e)})]}));let d=o==="filled"?Cie:wie(t,r);return l.scope(Iv("span",{className:et([a,d,n].filter(Boolean).join(" "),l.className),...l.attrs,children:go(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)]"},v2=[{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}`}],Tie="lg";function Pie(e){return(v2.find(o=>o.value===e)??v2.find(o=>o.value===Tie)).cls}var Tl=(e,o=!1)=>typeof e=="string"?S2(e,o):e,Ea=(e,o=!1)=>typeof e=="string"?go(e,o):e;function k2({num:e,title:o,link:t,logo:r,description:a,accent:n,accentNum:s,numStyle:i=Hd,look:l="standard",titleAccent:d,accentTracking:f="-0.02em",spaceBelow:u,rowGap:p,descriptionSize:m,className:h="",eyebrowLook:I=sv,titleSize:w,count:S,capped:C=!1}){let b=u??(l==="editorial"?"mb-[60px]":"");if(l==="shelf")return e||o||a||t?rt("div",{className:`${KD} sticky top-[var(--sf-header-h,88px)] z-30 mb-5 flex items-center justify-between gap-4 max-view-wide:flex-wrap max-view-wide:gap-y-2 border-b border-line bg-bg/95 py-3 backdrop-blur-md ${C?"":"-mx-[var(--sf-site-gutter,40px)] px-[var(--sf-site-gutter,40px)] max-view-wide:-mx-[min(20px,var(--sf-site-gutter,40px))] max-view-wide:px-[min(20px,var(--sf-site-gutter,40px))]"}`,children:[rt("div",{className:"flex min-w-0 items-end gap-6 max-view-wide:flex-col max-view-wide:items-stretch max-view-wide:gap-3",children:[e&&Le("span",{className:`font-mono ${Ke.shelfLabel} leading-none uppercase tracking-[0.22em] text-fg-dim`,children:Ea(e)}),o&&Le("h2",{className:`${Pie(w)} leading-none text-fg max-view-wide:leading-[1] [&>span]:block`,children:Tl(o)})]}),(a||t||S)&&rt("div",{className:"flex items-center gap-5 max-view-wide:gap-3 view-wide:grow view-wide:justify-end",children:[a&&Le("span",{className:`max-w-[340px] truncate font-display ${Ke.shelfBody} leading-[1.4] text-fg-dim max-view-wide:hidden view-wide:w-0 view-wide:grow view-wide:text-right`,children:Ea(a)}),t&&rt(Ss,{newTab:"auto",href:t.href,className:`inline-flex items-center gap-2 whitespace-nowrap font-mono ${Ke.shelfLabel} uppercase tracking-[0.2em] text-fg-dim transition-colors hover:text-fg`,children:[Ea(t.text),Le("span",{"aria-hidden":!0,children:"\u2192"})]}),S&&Le("span",{className:`whitespace-nowrap font-mono ${Ke.shelfLabelSmall} uppercase tracking-[0.2em] text-fg-dim`,children:S})]})]}):null;if(l==="editorial"){let T=!!o||!!d;return rt("header",{className:`${b} grid grid-cols-[auto_1fr_auto] items-end gap-10 border-b border-line pb-8 max-view-desktop:grid-cols-1 max-view-desktop:gap-3.5 ${h}`.trim(),children:[e&&(typeof e=="string"?Le(kl,{text:e,className:"pb-2"}):Le("span",{className:"pb-2",children:e})),T&&rt("h2",{className:"font-heading2 text-[length:min(var(--size-headingMedium,clamp(40px,5.5vw,80px)),var(--sf-heading-max,9999px))] font-medium uppercase leading-none tracking-[-0.03em]",children:[o,d&&rt(kie,{children:[" ",Le("em",{className:"font-serif font-normal italic text-accent",style:{letterSpacing:f},children:d})]})]}),a&&Le("p",{className:`max-w-[360px] pb-1 text-right font-display ${Ke.bodySmall} leading-[1.5] text-fg-dim max-view-desktop:max-w-full max-view-desktop:text-left`,children:a})]})}if(l==="simple"){let T=`${b} ${h}`.trim();return rt("div",{className:T||void 0,children:[e&&(typeof e=="string"?Le(kl,{text:e,look:I,className:"mb-4 block"}):Le("span",{className:"mb-4 block",children:e})),o&&Le("h2",{className:`font-heading2 ${Ke.headingMedium2} font-medium uppercase leading-none tracking-[-0.02em] text-fg ${Ke.headingMediumUpTo800Small}`,children:Tl(o)})]})}if(l==="statement"){let T=`${b} ${h}`.trim();return rt("div",{className:T||void 0,children:[e&&(typeof e=="string"?Le(kl,{text:e,look:I,className:"mb-4 block"}):Le("span",{className:"mb-4 block",children:e})),o&&Le("h2",{className:"font-heading2 text-[length:min(var(--size-headingMedium,clamp(40px,5vw,72px)),var(--sf-heading-max,9999px))] font-medium uppercase leading-none tracking-[-0.03em] text-fg",children:Tl(o,!0)})]})}if(l==="natural"){let T=`flex max-w-[680px] flex-col ${p??"gap-5"} ${b} ${h}`.replace(/\s+/g," ").trim();return rt("div",{className:T,children:[e&&(typeof e=="string"?Le(kl,{text:e,look:I}):Le("span",{children:e})),o&&Le("h2",{className:`font-heading2 ${Ke.headingMedium2} font-medium leading-[1.05] tracking-[-0.03em] ${Ke.headingMediumUpTo800Small}`,children:Tl(o)}),a&&Le("p",{className:`${m??`${Ke.bodyLarge}`} leading-[1.6] opacity-85`,children:a})]})}if(l==="essay"){let T=`${b} ${h}`.trim();return rt("div",{className:T||void 0,children:[e&&(typeof e=="string"?Le(kl,{text:e,look:I,className:"mb-4 block"}):Le("span",{className:"mb-4 block",children:e})),o&&Le("h2",{className:`font-heading2 ${Ke.headingMedium1} [font-weight:var(--sf-heading-weight,500)] [text-transform:var(--sf-heading-case,uppercase)] [&_em]:[font-weight:var(--sf-heading-weight-strong,inherit)] leading-none tracking-[-0.02em] text-fg ${Ke.headingSmallUpTo800}`,children:Tl(o)})]})}let y=!!a||!!t,v=!!o,L=GM(i)==="outlined",A=`font-mono ${Ke.label} uppercase tracking-[0.3em]`,D=null;if(e)if(L)D=Le("span",{className:`${jM} text-fg-dim ${nv}`,children:Ea(e)});else if(s&&!n&&typeof e=="string"){let T=e.indexOf("/"),F=T===-1?e:e.slice(0,T),k=T===-1?"":e.slice(T);D=rt("span",{className:A,children:[Le("span",{className:"text-accent",children:Ea(F)}),k&&Le("span",{className:"text-fg-dim",children:Ea(k)})]})}else D=Le("span",{className:`${A} ${n?"text-accent":"text-fg-dim"}`,children:Ea(e)});return rt("div",{className:"mb-16 grid grid-cols-[auto_1fr_auto] items-end gap-10 border-b border-line pb-6 max-view-wide:mb-9 max-view-wide:grid-cols-1 max-view-wide:gap-3 max-view-wide:pb-5",children:[L&&e&&Le("style",{children:KM}),rt("div",{className:"flex flex-col items-start gap-3",children:[r?.src&&Le(xO,{children:Le(Vh,{...Eie(MO(r.src)),alt:r.alt,className:"h-8 w-auto object-contain"})}),D]}),v&&Le("h2",{className:n?"font-heading2 text-[length:min(var(--size-headingMedium,clamp(36px,5vw,64px)),var(--sf-heading-max,9999px))] [font-weight:var(--sf-heading-weight,500)] [text-transform:var(--sf-heading-case,uppercase)] [&_em]:[font-weight:var(--sf-heading-weight-strong,inherit)] leading-[0.95] tracking-[-0.025em]":`font-heading2 ${Ke.headingMedium3} [font-weight:var(--sf-heading-weight,500)] [&_em]:[font-weight:var(--sf-heading-weight-strong,inherit)] leading-none tracking-[-0.03em] whitespace-pre-line ${Ke.headingMediumUpTo800Large} max-view-wide:leading-[1]`,children:Tl(o)}),y&&rt("div",{className:"flex flex-col items-end gap-3 max-view-wide:items-start",children:[a&&Le("p",{className:`max-w-[340px] font-display ${Ke.bodySmall} leading-[1.5] text-fg-dim text-right max-view-wide:max-w-full max-view-wide:text-left`,children:Ea(a)}),t&&rt(Ss,{newTab:"auto",href:t.href,className:`inline-flex items-center gap-2 whitespace-nowrap font-mono ${Ke.label} uppercase tracking-[0.2em] text-fg-dim transition-colors hover:text-fg`,children:[Ea(t.text),Le("span",{"aria-hidden":!0,children:"\u2192"})]})]})]})}function Eie(e){let o=ws(e,{fallbackWidth:640,maxWidth:960});return o.srcSet?{src:o.src,srcSet:o.srcSet,sizes:"240px"}:{src:e}}function T2({num:e,title:o,titleAccent:t,desc:r,accentTracking:a="-0.02em",spaceBelow:n="mb-[60px]",className:s=""}){return _ie(k2,{look:"editorial",num:e,title:o,titleAccent:t,description:r,accentTracking:a,spaceBelow:n,className:s})}import{jsx as qd,jsxs as Nie}from"react/jsx-runtime";import{useEffect as Die,useState as N2}from"react";import{jsx as Oie}from"react/jsx-runtime";var P2="sf-photo-hover";function cx({sheet:e,name:o=P2}){return e?Oie("style",{href:o,precedence:P2,dangerouslySetInnerHTML:{__html:e}}):null}import{jsx as L2,Fragment as Lie}from"react/jsx-runtime";import{createContext as Fie,useContext as fx}from"react";var Aie=LE["view-desktop"];function Rie(e,o){return[...[...e].sort((t,r)=>t.below-r.below).map(t=>`(max-width: ${t.below-.02}px) ${t.slot}`),o].join(", ")}var bv=e=>`${Math.ceil(e*1e4-1e-6)/100}vw`,dx=e=>{let o=/^([\d.]+)vw$/.exec(e??"");return o?Math.min(1,Number(o[1])/100):1};function d6e(e,o){return{phone:bv(e.phone*dx(o?.phone)),tablet:bv(e.tablet*dx(o?.tablet)),desktop:bv(e.desktop*dx(o?.desktop))}}function Sv(e){if([e.phone,e.tablet,e.desktop].every(r=>dx(r)>=1))return;let o=[{below:Jo,slot:e.phone},{below:Aie,slot:e.tablet}],t=o.filter((r,a)=>r.slot!==(o[a+1]?.slot??e.desktop));return Rie(t,e.desktop)}function E2(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 _2=(e,o)=>e.steps.find(t=>o<=t.edge)?.slot??e.last,O2=e=>{let o=/^min\((.+)\)$/.exec(e);return o?o[1].split(/,\s*(?![^()]*\))/).map(t=>t.trim()):[e]};function A2(e,o){if(e===o)return e;let t=[...O2(e),...O2(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 R2(e,o){if(!o)return e;let t=E2(e),r=E2(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:A2(_2(t,s),_2(r,s))})),n=A2(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 Bie={hasWidth:!1},Yd=Fie(Bie);function h6e(){return fx(Yd).hasWidth}function x6e(e){let{bound:o}=fx(Yd);return o&&Sv(o)||e}function F2(e){let{bound:o}=fx(Yd);return R2(e,o&&Sv(o))}function B2({children:e}){let o=fx(Yd);return o.bound?L2(Yd.Provider,{value:{hasWidth:o.hasWidth},children:e}):L2(Lie,{children:e})}function D2({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=XC(),m=F2(s),h=i?m:s,[I,w]=N2(!1),[S,C]=N2(!1),b=t||"";Die(()=>{w(!1),C(!1)},[b]);let y=hu(b),v=y&&!S?ws(b):{src:b},L=!b||I;return Nie("div",{className:`relative h-full w-full overflow-hidden ${o??""}`,children:[qd("div",{className:"absolute inset-0 flex items-center justify-center",style:f?{background:"var(--site-surface)"}:void 0,children:L?e:null}),qd(su,{fill:Ac,children:b&&(y?qd("img",{src:v.src,alt:r,...v.srcSet?{srcSet:v.srcSet,sizes:h}:{},decoding:"async",...d?{loading:"lazy"}:p,className:`absolute inset-0 h-full w-full${u?.className?` ${u.className}`:""}`,style:{display:I?"none":"block",objectFit:n,...a?{objectPosition:a}:{},...u?.style??{}},onError:()=>v.srcSet?C(!0):w(!0)}):qd(Jh,{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)}))}),qd(cx,{sheet:u?.sheet})]})}import{jsx as Mie}from"react/jsx-runtime";var Xd="sf-empty-hides",wv="sf-empty-else",px="sf-head-core",ux="sf-head-box",Zd="holdsHeadCore",Jd="isHeadCore",Hie=`.${Xd}:empty{display:none}.${Xd}:not(:empty)~.${wv}{display:none}.${ux},.${px}{display:contents}.${ux}:not(:has(.${px}:not(:empty))){display:none}`;function mx(){return Mie("style",{children:Hie})}var wt={headingSmallUpTo700Small:"max-[700px]:text-[length:var(--size-headingSmall,26px)]",headingSmallUpTo700Large:"max-[700px]:text-[length:var(--size-headingSmall,28px)]",bodySmall:"text-[length:var(--size-body,15px)]",bodyLarge:"text-[length:var(--size-body,18px)]",headingSmall1:"text-[length:var(--size-headingSmall,28px)]",headingSmall2:"text-[length:var(--size-headingSmall,34px)]",labelSmall:"text-[length:var(--size-label,11px)]",label:"text-[length:var(--size-label,12px)]",labelLarge:"text-[length:var(--size-label,13px)]"},M2={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"},Cv="sf-itc-boxes",$ie="sf-itc-steps";function vv(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 K6e({num:e,title:o,description:t,boxes:r,steps:a,columns:n=3,cta:s,padTop:i,padBottom:l,bandPad:d,editing:f=!1,omitHead:u=!1,cardImage:p,cardImageUnit:m,cardText:h,rows:I,copies:w}){let S=w!==void 0,C=I&&(S||(r?.blockCount??0)>0)?I:null,b=d??WL({padTop:i,padBottom:l},bl("ProcessSteps")),y=S?[]:vv(a),v=y.length>0?y:f&&!r&&!S?[1,2,3].map(F=>({tag:c("Column {n}",{n:F})})):[],L=M2[n]??M2[3],A=C?"grid-cols-1":L,D=C?"":" [&>*]:min-h-[560px]",T=h==="on-image";return Ve(me,{as:"section",className:["relative z-[2] border-b border-line bg-bg",b.className].filter(Boolean).join(" "),style:{...b.style,...rA(p,m)},children:_a("div",{className:TL,children:[u?null:Ve(T2,{num:e,title:o?.trim()?go(o,!0):void 0,desc:t?.trim()?go(t,!1):void 0}),r&&!S?_a(Wie,{children:[Ve(mx,{}),C?Ve(Xh.Provider,{value:{hand:C,ids:r.blockIds??[],boxes:[]},children:Ve(r,{className:`${Cv} ${Xd} sf-card grid ${A} gap-[2px] border border-line bg-line${D} [&>*]:bg-bg`,minEmptyHeight:260})}):Ve(r,{className:`${Cv} ${Xd} sf-card grid ${A} gap-[2px] border border-line bg-line [&>*]:min-h-[560px] [&>*]:bg-bg`,minEmptyHeight:260})]}):null,S&&w?Ve("div",{className:`${Cv} sf-card grid ${A} gap-[2px] border border-line bg-line${D} [&>*]:bg-bg`,children:C?Ve(Xh.Provider,{value:{hand:C,copies:!0},children:w}):w}):null,v.length>0&&Ve("div",{className:`${$ie} ${wv} sf-card grid ${L} gap-[2px] border border-line bg-line`,children:v.map((F,k)=>{let _=(F.specs??[]).filter(P=>(P?.label??"").trim()||(P?.value??"").trim());return _a("article",{className:T?"flex flex-col bg-bg":"flex min-h-[560px] flex-col bg-bg",children:[_a("div",{className:T?"sf-card-image relative aspect-[5/3] overflow-hidden bg-surface max-[700px]:aspect-[4/3]":"sf-card-image relative aspect-[5/3] overflow-hidden border-b border-line bg-surface",children:[Ve(D2,{label:F.tag?.trim()||F.title?.trim()||`column-${k+1}`,src:F.image||void 0,sizes:"(max-width: 1100px) 100vw, 33vw",...r?{deferFetch:!0}:{}}),Ve("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-0 z-[1]",style:{background:`linear-gradient(180deg, ${da(.55)} 0%, transparent 30%, transparent 70%, ${da(.65)} 100%)`}}),T&&Ve("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-x-0 bottom-0 z-[1] h-[78%]",style:{background:`linear-gradient(180deg, transparent 0%, ${da(.73)} 55%, ${da(.92)} 100%)`}}),F.tag?.trim()&&Ve("span",{className:`absolute left-5 top-[18px] z-[2] font-mono ${wt.label} uppercase tracking-[0.3em] text-accent`,children:qt(F.tag)}),F.meta?.trim()&&Ve("span",{className:T?`absolute right-5 top-[18px] z-[2] font-mono ${wt.label} uppercase tracking-[0.24em] text-overlay-fg/80`:`absolute right-5 bottom-[18px] z-[2] font-mono ${wt.label} uppercase tracking-[0.24em] text-overlay-fg/80`,children:qt(F.meta)}),T&&(F.title?.trim()||F.copy?.trim())&&_a("div",{className:"absolute inset-x-0 bottom-0 z-[2] flex flex-col gap-2.5 px-8 pb-7 pt-14 max-[700px]:px-6 max-[700px]:pb-6",children:[F.title?.trim()&&Ve("h3",{className:`flex min-h-[2em] flex-col justify-end font-heading3 ${wt.headingSmall1} font-medium uppercase leading-none tracking-[-0.02em] text-overlay-fg ${wt.headingSmallUpTo700Small}`,children:go(F.title,!0)}),F.copy?.trim()&&Ve("p",{className:`min-h-[3em] font-display ${wt.bodySmall} leading-[1.5] text-overlay-fg/85`,children:go(F.copy,!1)})]})]}),T?_.length>0&&Ve("div",{className:"grid grid-cols-2 gap-2 border-t border-line px-8 py-7 max-[700px]:px-6 max-[700px]:py-6",children:_.map((P,O)=>_a("div",{className:"flex flex-col gap-1",children:[P.label?.trim()&&Ve("span",{className:`font-mono ${wt.labelSmall} uppercase tracking-[0.24em] text-fg-dim`,children:qt(P.label)}),P.value?.trim()&&Ve("span",{className:`font-display ${wt.bodyLarge} font-medium tracking-[-0.01em] text-fg`,children:qt(P.value)})]},O))}):_a("div",{className:"flex flex-1 flex-col gap-4 px-8 py-9 max-[700px]:px-6 max-[700px]:py-7",children:[F.title?.trim()&&Ve("h3",{className:`font-heading3 ${wt.headingSmall2} font-medium uppercase leading-none tracking-[-0.02em] ${wt.headingSmallUpTo700Large}`,children:go(F.title,!0)}),F.copy?.trim()&&Ve("p",{className:`font-display ${wt.bodySmall} leading-[1.55] text-fg-dim`,children:go(F.copy,!1)}),_.length>0&&Ve("div",{className:"mt-auto grid grid-cols-2 gap-2 border-t border-line pt-4",children:_.map((P,O)=>_a("div",{className:"flex flex-col gap-1",children:[P.label?.trim()&&Ve("span",{className:`font-mono ${wt.labelSmall} uppercase tracking-[0.24em] text-fg-dim`,children:qt(P.label)}),P.value?.trim()&&Ve("span",{className:`font-display ${wt.bodyLarge} font-medium tracking-[-0.01em] text-fg`,children:qt(P.value)})]},O))})]})]},k)})}),s?.text&&Ve("div",{className:"mt-12 flex justify-end border-t border-line pt-8",children:_a(Ss,{newTab:"auto",href:s.href,className:`group inline-flex items-center gap-3.5 border border-line px-6 py-4 font-mono ${wt.labelLarge} uppercase tracking-[0.3em] text-fg transition-colors hover:border-accent hover:text-accent`,children:[qt(s.text),Ve("span",{"aria-hidden":!0,className:"text-accent transition-transform group-hover:translate-x-[3px]",children:"\u2192"})]})})]})})}var Uie=["selected","highlighted"],H2="data-sf-card-state",$2="pointer-events-none absolute inset-0 border border-accent",U2="pointer-events-none absolute inset-x-0 bottom-0 border-b-2 border-accent",z2="pointer-events-none absolute inset-0 border-2 border-accent outline outline-1 -outline-offset-1 outline-accent",G2="absolute inset-y-0 left-0 w-[3px] bg-accent",j2="absolute -inset-[2px] -z-[1] bg-[color-mix(in_oklab,var(--accent)_14%,transparent)]",K2="after:pointer-events-none after:absolute after:inset-0 hover:after:border-2 hover:after:border-accent",W2=e=>{let o=Q_.find(t=>t.role===e)?.token;if(!o)throw new Error(`card-state: the palette has no ink token for "${e}"`);return o},zie={[W2("muted")]:`var(${W2("fg")})`};function kv(e){return e?.selected===!0}function Tv(e){return e?Uie.filter(o=>e[o]===!0).join(" "):""}function V2(e,o="frame"){let t=Tv(e);return t?o==="frame"&&kv(e)?{[H2]:t,className:"relative isolate",style:{...zie}}:{[H2]:t,className:"relative"}:{}}var Gie={highlighted:!0},jie={},hx="badge";function Z6e(e,o=[]){return e.map((t,r)=>({...t,key:t.key||o[r]?.key||Tc(t,r)}))}function Y2(e){return!e||typeof e!="object"?!1:Object.entries(e).some(([o,t])=>o==="key"||o===hx||o==="state"?!1:typeof t=="string"?t.trim()!=="":Array.isArray(t)?t.length>0:t!=null&&typeof t!="function")}function J6e(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,[hx]:s===a?t:""})),states:e.map((n,s)=>s===a?Gie:jie)}}function Q6e(e){return{chosen:typeof e.highlightedCard=="string"?e.highlightedCard.trim():"",badge:typeof e.highlightBadge=="string"?e.highlightBadge:""}}function eUe(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 q2="data-sf-card-press",X2=`${MM} appearance-none bg-transparent border-0 p-0 m-0`,Z2=`${X2} cursor-pointer`,J2=X2;import{paymentMarkItems as Kie,paymentMarks as Vie}from"efficient-shell/icons/payment";var Yie=[M0,yp],Q2=e=>Yie.includes(e),eH=e=>Kie({name:e.label,kind:e.kind}),qie=(e,o)=>e.kind===o.kind&&e.label===o.label&&(e.kind==="brand"?e.mark===o.mark:e.glyph===o.glyph);function oH(e){return Vie(e.map(o=>({name:o.label,kind:o.kind}))).map(o=>({label:o.label,kind:e.find(t=>eH(t).some(r=>qie(r,o)))?.kind??""}))}function aUe(e){return eH(e)[0]??null}var tH={heading:"Trusted by *teams worldwide*"},xx=()=>[{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")}],Xie=Sp.Logos,lUe={label:"Logos",drawsPictures:!0,fields:Xie,defaultProps:{items:[],contained:!0}};var Zie=()=>xx().map(e=>({label:e.alt}));function rH(e,o){let t=bp(e,o,Zie()).rows.filter(r=>r.label);return Q2(eo(e))?oH(t):t}var Qd="Flex",Qie="Text",ef=e=>Object.values(e??{}).filter(nH),ele=e=>e.type===Oo&&eo(e.props)!=="",sH=e=>{if(e.type!==Qd)return!1;let o=ef(e.props).flat();return o.length>0&&o.every(ele)},gx=e=>Dp(e.props?.headPlacement)==="own-box"||sH(e),Pv=e=>e===void 0||Array.isArray(e)&&e.length===0;function iH(e){return e.type===Qie?!0:e.type===Qd&&ef(e.props).every(o=>o.every(iH))}var lH={ProcessSteps:e=>Pv(e.boxes)&&vv(e.steps).length===0,Logos:e=>eo(e)?ole(e):Pv(e.logos)&&Pv(e.items)};function ole(e){return z0(e)!==null&&rH(e,!1).length===0}function tle(e){return ef(e.props).flat().every(o=>!bp(o.props,!1).rows.some(Y2))}function Ix(e){let o=ef(e.props).flat();return o.some(gx)&&o.every(t=>gx(t)||iH(t))}function rle(e){if(!Jie(e)||!gx(e))return e;let o=sH(e)?tle(e):$(lH,String(e.type))?.(e.props??{})===!0;return{...e,props:{...e.props,[Jd]:o?"empty":!0}}}function aH(e){return ho(e,o=>so(o,rle))}function cH(e){let o=Object.entries(e.props??{}).filter(([,r])=>nH(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===Qd&&t.props?{key:o[0][0],inner:t}:null}function dH(e){if(e?.type!==Qd||!e.props)return e;if(Ix(e)){let t=aH(e);return{...t,props:{...t.props,[Zd]:!0}}}let o=cH(e);return!o||!Ix(o.inner)?e:{...e,props:{...e.props,[o.key]:[aH(o.inner)],[Zd]:!0}}}function fH(e){let o=e;if(!o||!Array.isArray(o.content))return e;let t=!1,r=o.content.map(a=>{let n=dH(a);return n!==a&&(t=!0),n});return t?{...o,content:r}:e}var ale=e=>$(lH,String(e.type))?.(e.props??{})===!0;function nle(e){if(e.type!==Qd||!e.props)return!1;let o=Ix(e)?null:cH(e),t=o?o.inner:e;if(!Ix(t))return!1;let r=ef(t.props).flat().filter(gx);return r.some(a=>eo(a.props)!=="")&&r.every(ale)}function pH(e){return ho(e,o=>sle(o))}function sle(e){let o=!1,t=[];for(let r of e){if(nle(r)){o=!0;continue}let a=pH(r);a!==r&&(o=!0),t.push(a)}return o?t:e}function uH(e){let o=e;if(!o||!Array.isArray(o.content))return e;let t=!1,r=o.content.map(a=>{if(dH(a)!==a)return a;let n=pH(a);return n!==a&&(t=!0),n});return t?{...o,content:r}:e}var ile=["DocMasthead","AlloyWheelsListing"],yx="titleLevel",lle=e=>e===2?"h2":"h1",Ev=e=>lle(e?.[yx])==="h2";function mH(e){let o=e;if(!o?.content?.length)return e;let t=!1,r=!1,a=o.content.map(n=>ile.includes(n?.type??"")?t?(r=!0,{...n,props:{...n.props??{},[yx]:2}}):(t=!0,n):n);return r?{...o,content:a}:e}import{readHidable as mle}from"efficient-easel/draw";var Pl="showFor";function hH(){return ni("efficient.box-show-for-choices",()=>({choices:[],revision:0}))}var cle=e=>!!e&&typeof e=="object"&&typeof e.slug=="string"&&e.slug.trim()!==""&&typeof e.name=="string"&&e.name.trim()!=="";function PUe(){return hH().choices}function EUe(){return hH().revision}function xH(e){return cle(e)?{slug:e.slug,name:e.name}:void 0}import{readHidable as dle}from"efficient-easel/draw";var _v="_wallLabelId",fle="_wallLabelledBy",Ov=e=>e.props?.id==null?"":String(e.props.id);function ple(e){if(!e||e.type!=="Text"||!Ov(e))return!1;let o=dle(e.props?.text);return!o.hidden&&o.text.trim()!==""}var ule=e=>!!e&&e.type==="Logos"&&e.props?.look==="marks"&&Ov(e)!=="",gH=(e,o,t)=>({...e,props:{...e.props,[o]:t}});function IH(e){let o=so(e,r=>ho(r,IH)),t=null;for(let r=1;r<o.length;r++){if(!ule(o[r])||!ple(o[r-1]))continue;let a=`sf-wall-label-${Ov(o[r-1])}`;t??=o.slice(),t[r-1]=gH(t[r-1],_v,a),t[r]=gH(t[r],fle,a)}return t??o}function yH(e){return li(e,IH)}var bH="_cardPressTitles",hle="_cardPressTitle";function HUe(e,o){let t=e?.[bH],r=t&&typeof t=="object"?t[o]:void 0;return Array.isArray(r)&&r.length?r:void 0}var SH=(e,o)=>({...e,props:{...e.props,...o}});function xle(e){let o=e.props??{};return e.type!=="Text"||mle(o.text).hidden||typeof o[Pt]=="string"||typeof o[_v]=="string"?"":xt(o)}function wH(e,o,t,r){return so(e,a=>{let n=xle(a);if(n&&!r.has(n))return r.add(n),t.push({field:n,gates:o}),SH(a,{[hle]:!0});if(a.type==="Text"||Array.isArray(a.props?.[Pl]))return a;let s=a.props?.[si],i=Array.isArray(s)&&s.length?[...o,s.filter(l=>typeof l=="string")]:o;return ho(a,(l,d)=>Bn(a.type,d)?l:wH(l,i,t,r))})}function CH(e){let o,t=ho(e,(r,a)=>{let n=so(r,CH);if(!Bn(e.type,a))return n;let s=[],i=wH(n,[],s,new Set);return s.length&&((o??={})[a]=s),i});return o?SH(t,{[bH]:o}):t}function vH(e){return li(e,o=>so(o,CH))}import{pinnedDuplicateIndices as Ice}from"efficient-easel/draw";import{jsx as Xt,jsxs as f4}from"react/jsx-runtime";import{createContext as cce,useContext as dce,useEffect as fce,useRef as pce,useState as p4}from"react";import{jsx as sn,jsxs as EH}from"react/jsx-runtime";import{useEffect as El,useRef as _H,useState as Ts}from"react";import{jsx as kH,Fragment as gle,jsxs as Ile}from"react/jsx-runtime";import{useEffect as yle,useRef as TH,useState as ble}from"react";var Sle="#t=0.001",wle=2;function Cle(e,o){if(e.readyState<wle||!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 PH({src:e,objectPosition:o="50% 50%",onError:t}){let r=TH(null),a=TH(null),[n,s]=ble(!1);return yle(()=>{let i=r.current,l=a.current;if(n||!i||!l)return;let d=()=>{Cle(i,l)&&s(!0)};return d(),i.addEventListener("loadeddata",d),i.addEventListener("seeked",d),()=>{i.removeEventListener("loadeddata",d),i.removeEventListener("seeked",d)}},[n]),Ile(gle,{children:[kH("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&&kH("video",{ref:r,src:`${e}${Sle}`,muted:!0,playsInline:!0,preload:"auto",className:"hidden",onError:t})]})}var vle=.5;function of({videoSrc:e,videoAv1Src:o,videoSrcPhone:t,videoAv1SrcPhone:r,posterSrc:a,posterSrcPhone:n,showVideo:s=!0,playbackRate:i=vle,objectPosition:l="50% 50%",objectPositionPhone:d,objectPositionTablet:f,quiet:u=!1,slideShown:p,laterSlide:m=!1,laterOfLead:h=!1}){let I=wR(d,f),w=Dd(),[S,C]=Ts(!1),b=w==="below"&&!S,y=w==="first",v=a||"",L=n||"",A=_H(null),D=Ud(A,!0,!0),T=D===void 0?void 0:D==="phone",F=gu({video:e,av1:o,videoPhone:t,av1Phone:r},T===!0),k=F.video||"",_=xu(k,F.av1),[P,O]=Ts(!1),[W,G]=Ts(!1),[Z,V]=Ts(!1),[de,ve]=Ts(!1),oe=p??!0,[Oe,_e]=Ts(!1),Ae=w!=="first"&&!h,[Re,nt]=Ts(!1),Xo=_H(null);El(()=>{if(!Ae)return;if(document.readyState==="complete"){nt(!0);return}let ue=()=>nt(!0);return window.addEventListener("load",ue,{once:!0}),()=>window.removeEventListener("load",ue)},[Ae]),El(()=>{O(!1),G(!1),V(!1),ve(!1)},[k,v,L]),El(()=>{oe&&_e(!0)},[oe]),El(()=>{let ue=Xo.current;ue&&(oe?ue.play()?.catch(()=>{}):ue.pause())},[oe,Oe,Re]),El(()=>{if(!m||Ae&&!Re)return;let ue=()=>C(!0);if(typeof window.requestIdleCallback=="function"){let z=window.requestIdleCallback(ue,{timeout:2e3});return()=>window.cancelIdleCallback(z)}let no=setTimeout(ue,800);return()=>clearTimeout(no)},[m,Ae,Re]),El(()=>{let ue=Xo.current;if(!ue)return;let no=()=>{ue.playbackRate=i};return no(),ue.addEventListener("loadedmetadata",no),()=>ue.removeEventListener("loadedmetadata",no)},[k,i]);let Zo=hu(v),yo=v&&(Zo||L)&&!W?ws(v):{src:v},Do=L&&!W?ws(L):{src:L},Eo=L&&!b&&!S?[{sized:Do,media:Td},...v?[{sized:yo,media:bc}]:[]]:[];return EH("div",{ref:A,className:"absolute inset-0 z-[1]",children:[sn("div",{className:"absolute inset-0",style:{background:"var(--site-surface)"}}),Eo.map(({sized:ue,media:no})=>sn("link",{rel:"preload",as:"image",href:ue.src,media:no,fetchPriority:"high",...ue.srcSet?{imageSrcSet:ue.srcSet,imageSizes:"100vw"}:{}},no)),(v||L)&&(Zo||L?(()=>{let ue=sn("img",{...v?{src:yo.src}:{},...yo.srcSet?{srcSet:yo.srcSet,sizes:"100vw"}:{},alt:"",...b?{loading:"lazy"}:{},...y?{fetchPriority:"high"}:{},className:`absolute inset-0 z-[2] h-full w-full object-cover ${I.className}`.trim(),style:{display:P?"none":"block",objectPosition:l,...I.style},onError:no=>{no.currentTarget.currentSrc&&(yo.srcSet||Do.srcSet?G(!0):O(!0))}},L?void 0:v);return L?EH("picture",{children:[sn("source",{media:Td,srcSet:Do.srcSet||Do.src,sizes:"100vw"}),ue]},`${v} ${L}`):ue})():sn(Jh,{src:v,alt:"",fill:!0,...b?{}:S?{loading:"eager"}:{priority:!0},sizes:"100vw",className:`z-[2] object-cover ${I.className}`.trim(),style:{display:P?"none":"block",objectPosition:l,...I.style},onError:()=>O(!0)},v)),s&&!u&&k&&T!==void 0&&Oe&&(!Ae||Re)&&!Z&&sn("video",{ref:Xo,autoPlay:!0,loop:!0,muted:!0,playsInline:!0,preload:"metadata",className:"absolute inset-0 z-[3] h-full w-full object-cover",style:{objectPosition:l},onError:()=>V(!0),children:_.map(ue=>sn("source",{src:ue.src,type:ue.type},ue.src))},k),s&&u&&k&&T!==void 0&&Oe&&(!Ae||Re)&&!de&&(!v||P)&&sn(PH,{src:k,objectPosition:l,onError:()=>ve(!0)},k)]})}import{jsx as jo,Fragment as UH,jsxs as Bv}from"react/jsx-runtime";import{jsx as _l}from"react/jsx-runtime";import{useRef as kle}from"react";import{SCROLL_EFFECTS_WITH_ZOOM as Tle,scrollAttrs as Ple}from"efficient-shell/format";function bx({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=kle(null),u=du(),p=Wt(),m=n?p:Ua,h=$d(f,!0,s),{attrs:I,style:w}=Ple(e[h],o[h]),S=Tle.includes(e[h].effect),C=et(`${ki}${u.fill}${t?` ${t}`:""}`,m.className);if(S&&i==="picture")return m.scope(_l("div",{ref:f,className:C,...r,...m.attrs,...a?{style:a}:{},children:_l(mO,{attrs:I,style:w,children:u.inner(d)})}));let b=_l(hO,{children:u.inner(d)});if(S){let v=l??(u.fill?"h-full":void 0);return m.scope(_l("div",{ref:f,className:C,...r,...m.attrs,style:{...a,overflow:"clip"},children:_l("div",{...v?{className:v}:{},...I,style:w,children:b})}))}let y=Object.keys(w).length||a?{style:{...a,...w}}:{};return m.scope(_l("div",{ref:f,className:C,...r,...m.attrs,...I,...y,children:b}))}var Ps=["media","image","image2"],Oa={media:"Media",image:"Image",image2:"Image 2"},tf={media:"heroMedia",image:"heroImage",image2:"heroImage2"};function Sx(e,o){return e==="image"&&Bc(o)>1?"Image 1":Oa[e]}var uze="Video file",mze="Upload a video file",hze="AV1 file",xze="Upload an AV1 file";function Ele(e,o){return Cc("mediaType",Hn,o,[e])}var _le=new Set(Object.keys(Fc)),OH="heroPart";function Ole(e,o){return{...o,[OH]:e}}function gze(e,{parts:o={},onlyFor:t,fallback:r,rules:a}){let n={...e},s=[...Object.values(o).flat(),...Hn.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 Hn)for(let l of t[i])n[l]=io(n[l],Ele(i,r));for(let[i,l]of Object.entries(a??{}))l&&(n[i]=io(n[i],l));for(let i of Ps)for(let l of o[i]??[])n[l]=Ole(i,n[l]);return n}function Ale(e){let o=e?.[OH];return Ps.includes(o)?o:null}function AH(e,o){let t={};for(let[r,a]of Object.entries(e))Ale(a)===o&&(t[r]=a);return t}function RH(e){if(!_le.has(e.type))return[];let o=[{part:"media",label:Oa.media,depth:0}];return r1(e.type,e.props.mediaType)!=="video"&&(o.push({part:"image",label:Sx("image",e.props),depth:1}),Bc(e.props)>1&&o.push({part:"image2",label:Sx("image2",e.props),depth:1})),o}function Es(e,o){return`${e}::${o}`}function wx(e){if(!e)return null;let o=e.lastIndexOf("::");if(o<=0)return null;let t=e.slice(o+2);return Ps.includes(t)?{nodeId:e.slice(0,o),part:t}:null}var rf="data-sf-hero-part";import{MOTION_TIMING as Rle}from"efficient-shell/format";var NH="grayscale(1) contrast(1.03)",Sze="Black and white";function Lle(e){return e===!0?{filter:NH}:{}}function Fle(e){let{filter:o}=Lle(e);return o?{style:{filter:o}}:{}}var _s="sf-photo-grayscale",Fv="data-sf-photo-host",LH={duration:"--sf-photo-hover-duration",delay:"--sf-photo-hover-delay"},Tx=`@media (hover:hover){.${_s}{filter:${NH};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))}.${_s}:hover,[data-sf-photo-host]:hover .${_s}{filter:none}}@media (hover:hover) and (prefers-reduced-motion:reduce){.${_s}{transition:none}}`;function DH(e){let o=Rle.hover,t={...e.duration!==o.duration.default?{[LH.duration]:`${e.duration}s`}:{},...e.delay!==o.delay.default?{[LH.delay]:`${e.delay}s`}:{}};return Object.keys(t).length?t:void 0}function MH(e,o,t){if(e===!0)return Fle(!0);if(t?.kind==="mono"){let r=DH(t);return{className:_s,sheet:Tx,...r?{style:r}:{}}}return e===!1?{}:o===!0?{className:_s}:{}}var HH="data-sf-repeat",Av="sf-photo-zoom",Ble="--sf-photo-zoom",wze="sf-photo-wash",Cx="sf-photo-wash-rest",af="sf-photo-wash-hover",kx="sf-photo-frame",WH=(e,o)=>`:not([${HH}]:not(${o}) .${e})`,Lv=(e,o)=>`[${HH}]${o} .${e}${WH(e,o)}`,Rv=(e,o)=>`${o},${Lv(e,":hover")},[${Fv}]:hover .${e}${WH(e,":hover")}`,FH=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))`,Nle=`.${af}{opacity:0}@media (hover:hover){.${Cx},.${af}{transition:${FH("opacity")}}${Rv(af,`.${kx}:hover .${af}`)}{opacity:1}${Rv(Cx,`.${kx}:hover .${Cx}`)}{opacity:0}}@media (hover:hover) and (prefers-reduced-motion:no-preference){.${Av}{transition:${FH("transform")}}${Rv(Av,`.${kx}:hover .${Av}`)}{transform:scale(var(${Ble}))}}@media (hover:hover) and (prefers-reduced-motion:reduce){.${Cx},.${af}{transition:none}}`,Cze="sf-photo-move";function vze(e){if(!e||!e.zoom&&!e.darken)return null;let o=DH(e);return{className:kx,sheet:Nle,...o?{style:o}:{}}}function $H(e){return e===!0?{[_s]:Tx}:{}}var vx="sf-box-reveal",kze="sf-box-reveal",Dle=8,BH=.3,Tze=`@media ${bc}{.${vx}{opacity:0;transform:translateY(${Dle}px);transition:opacity ${BH}s ease-out,transform ${BH}s ease-out}${Lv(vx,":hover")},${Lv(vx,":focus-within")}{opacity:1;transform:none}}@media ${bc} and (prefers-reduced-motion:reduce){.${vx}{transition:none;transform:none}}`;import{hidableText as Mle}from"efficient-easel/draw";var Hle={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"},Wle={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 zH(e){let o=e.isVideo&&i1(e.videoSource)==="youtube",t=e.isVideo&&l1(e.videoPlayback)==="click",r=o?c1(Mle(e.youtubeUrl)):null,a=wu(e.mediaLayout);return{fromYouTube:o,onClick:t,youTubeId:r,backgroundFile:e.isVideo&&!o&&!t,desktopLayout:a,phoneLayout:Jy(e.mediaLayoutPhone,a),twoPictures:!e.isVideo&&Bc(e)>1}}function nf(e,o){return Ti(Cs({_partMotion:e},o))}function sf(e,o){return Cl(Cs({_partMotion:e},o))}var Px=e=>lv({desktop:e.objectPosition,tablet:e.objectPositionTablet,phone:e.objectPositionPhone}),GH=Ac.img;function jH({entrance:e,scroll:o,origins:t,editing:r,className:a,attrs:n,style:s,zoomLayerClass:i,children:l}){return e?jo(Qh,{views:e,editing:r,boxClass:a,boxAttrs:n,...s?{boxStyle:s}:{},children:l}):o?jo(bx,{views:o,...t?{origins:t}:{},boxClass:a,boxAttrs:n,...s?{boxStyle:s}:{},...i?{zoomLayerClass:i}:{},children:l}):jo("div",{className:a,...n,...s?{style:s}:{},children:l})}function Ol(e,o){return MH(void 0,void 0,OE(Cs({_partMotion:e},o)))}function KH(e){return Ps.some(o=>Ol(e,o).className)?{hostAttrs:{[Fv]:""},sheet:Tx}:{}}function Ex({treatment:e,children:o}){return e.className?jo("div",{className:`absolute inset-0 ${e.className}`,...e.style?{style:e.style}:{},children:o}):jo(UH,{children:o})}function _x({color:e,opacity:o,passClicks:t=!0}){return o>0?jo("div",{className:t?"pointer-events-none absolute inset-0 z-[2]":"absolute inset-0 z-[2]",style:{background:e,opacity:Math.min(Math.max(o,0),100)/100}}):null}function Ox({part:e,editing:o,marked:t=!0,entrance:r,scroll:a=null,origins:n,className:s,children:i}){let l=o&&t?{[rf]:e}:void 0;return jo(jH,{entrance:r,scroll:a,origins:n,editing:o,className:s,attrs:l,zoomLayerClass:GH,children:i})}function VH({partMotion:e,editing:o,children:t}){let r=nf(e,"media"),a=sf(e,"media"),n=Ol(e,"media"),s=jo(su,{fill:Ac,children:t}),i=n.className?jo("div",{className:`absolute inset-0 z-[1] ${n.className}`,...n.style?{style:n.style}:{},children:s}):s;return r||a?jo(jH,{entrance:r,scroll:a,editing:o,className:"absolute inset-0 z-[1]",zoomLayerClass:GH,children:i}):jo(UH,{children:i})}function YH({desktopLayout:e,phoneLayout:o,editing:t,marked:r=!0,partMotion:a,first:n,second:s,laterSlide:i=!1}){return Bv("div",{className:`absolute inset-0 z-[1] grid ${Hle[o]} ${Wle[e]}`,"data-hero-layout":e,"data-hero-layout-phone":o,children:[jo(Ox,{part:"image",editing:t,marked:r,entrance:nf(a,"image"),scroll:sf(a,"image"),origins:Px(n),className:"relative overflow-hidden",children:Bv(Ex,{treatment:Ol(a,"image"),children:[jo(of,{posterSrc:$t(n.src),showVideo:!1,laterSlide:i,objectPosition:n.objectPosition,objectPositionPhone:n.objectPositionPhone,objectPositionTablet:n.objectPositionTablet}),jo(_x,{color:n.tintColor,opacity:n.tintOpacity})]})}),jo(Ox,{part:"image2",editing:t,marked:r,entrance:nf(a,"image2"),scroll:sf(a,"image2"),origins:Px(s),className:`relative overflow-hidden ${em({desktop:e==="one",tablet:e==="one",mobile:o==="one"},{atSectionLine:!0})}`.trimEnd(),children:Bv(Ex,{treatment:Ol(a,"image2"),children:[jo(of,{posterSrc:$t(s.src),showVideo:!1,laterSlide:i,objectPosition:s.objectPosition,objectPositionPhone:s.objectPositionPhone,objectPositionTablet:s.objectPositionTablet}),jo(_x,{color:s.tintColor,opacity:s.tintOpacity})]})})]})}import{jsx as ln,Fragment as $le,jsxs as Ule}from"react/jsx-runtime";import{useEffect as zle,useRef as Gle,useState as jle}from"react";import{PlaySolidIcon as Kle}from"efficient-shell/icons/efficient-looks";function qH({youTubeId:e,ownPoster:o,background:t,editing:r}){let[a,n]=jle("large");return zle(()=>n("large"),[e]),e?Ule($le,{children:[!o&&a!=="none"&&ln(Vh,{src:a==="large"?d1(e):f1(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&&ln("div",{className:"pointer-events-none absolute inset-0 z-[3] overflow-hidden [container-type:size]","aria-hidden":"true",children:ln("iframe",{src:ob(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 XH({youTubeId:e,fileSrc:o,fileAv1Src:t,fileSrcPhone:r,fileAv1SrcPhone:a,playing:n,onPlay:s,editing:i}){let l=Gle(null),d=Ud(l,!0,!0)==="phone";if(!e&&!o)return null;let f=gu({video:o,av1:t,videoPhone:r,av1Phone:a},d),u=xu(f.video,f.av1);return n&&!i?e?ln("iframe",{src:ob(e,"click"),title:tb,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"}):ln("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=>ln("source",{src:p.src,type:p.type},p.src))},f.video):ln("button",{ref:p=>{l.current=p},type:"button","aria-label":tb,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:ln(Kle,{size:28})})}function ZH(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 JH=["top","middle","bottom"],QH=["left","center","right"],e4="bottom",o4="left",Vle={top:"Top",middle:"Middle",bottom:"Bottom"},Yle={left:"Left",center:"Center",right:"Right"},oGe="Up and down",tGe="Sideways",qle={top:"flex-start",middle:"center",bottom:"flex-end"},Xle={left:"flex-start",center:"center",right:"flex-end"},Zle="--sf-hero-phone-y",Jle="--sf-hero-phone-x";function Qle(e){return JH.includes(e)?e:e4}function ece(e){return QH.includes(e)?e:o4}function t4(e,o){let t=Qle(e),r=ece(o),a={};return t!==e4&&(a[Zle]=qle[t]),r!==o4&&(a[Jle]=Xle[r]),a}function rGe(){return JH.map(e=>({label:Vle[e],value:e}))}function aGe(){return QH.map(e=>({label:Yle[e],value:e}))}import{hexToRgb as oce}from"efficient-shell/format";var tce=!0;var rce=[[0,".5"],[30,".1"],[60,".1"],[100,".85"]];function r4(e){let o=oce(e);return o?`${o.r},${o.g},${o.b}`:null}function a4(e){return e==null?tce:e!==!1}function n4(e){let o=(e?r4(e):null)??r4(xr);return`linear-gradient(180deg, ${rce.map(([t,r])=>`rgba(${o},${r}) ${t}%`).join(", ")})`}import{hexToRgb as s4}from"efficient-shell/format";var i4="bottom";var ace=[{label:"Bottom",value:"bottom",cell:"bottom"},{label:"Top",value:"top",cell:"top"},{label:"Left",value:"left",cell:"left"},{label:"Right",value:"right",cell:"right"}],nce={bottom:180,top:0,left:270,right:90},sce=[[.55,0],[.15,18],[null,35],[null,55],[.85,100]],ice=[[null,33],[.6,67],[.94,100]];function lce(e,o){let{r:t,g:r,b:a}=s4(e)??s4(xr);return`rgba(${t},${r},${a},${o})`}function l4(e){return xo(ace,i4,e)}function c4(e=xr,o=i4){let t=l4(o),r=(t==="top"||t==="bottom"?sce:ice).map(([a,n])=>`${a===null?"transparent":lce(e,a)} ${n}%`);return`linear-gradient(${nce[t]}deg, ${r.join(", ")})`}function d4(e,o){let t=be(e.overlayColor),r=be(e.overlayPosition),a=be(o)??xr;return!t&&!r?{own:!1,color:a,position:null}:{own:!0,color:t??a,position:l4(r)}}var uce=cce({});function OGe({name:e,process:o,mediaType:t=Fc.HeroSlide,mediaSrc:r,videoSpeed:a,poster:n,mediaAv1:s,mediaSrcPhone:i,mediaAv1Phone:l,posterPhone:d,objectPosition:f,objectPositionPhone:u,objectPositionTablet:p,tintColor:m=xr,tintOpacity:h=0,groups:I,editing:w=!1,themeClassName:S,themeStyle:C,overlayColor:b,overlayPosition:y,mediaLayout:v,mediaLayoutPhone:L,mediaImage2:A,objectPosition2:D,objectPosition2Phone:T,objectPosition2Tablet:F,tintColor2:k=xr,tintOpacity2:_=0,videoSource:P,youtubeUrl:O,videoPlayback:W,partMotion:G,laterSlide:Z=!1}){let V=Wt(),{alignment:de="left",textureOpacity:ve,textureOn:oe,textureColor:Oe,quietVideo:_e,phoneUpDown:Ae,phoneSideways:Re,holdReel:nt,reelHeld:Xo,shownSlide:Zo,ratioMin:yo}=dce(uce),Do=Dd(),Eo=Z&&Do==="first",ue=pce(null),[no,z]=p4(Zo===void 0?void 0:!1);fce(()=>{let kn=ue.current;z(Zo===void 0||!kn?void 0:ZH(kn.closest(".hero-track"),"data-slide-name")[Zo]===kn)});let le=t==="video",Ce=le?$t(r):void 0,bo=le?$t(n):$t(r)??$t(n),mo=le?{av1:$t(s),phone:$t(i),av1Phone:$t(l),poster:$t(d)}:{},st=typeof a=="number"?a/100:1,{fromYouTube:Xe,onClick:Mo,youTubeId:Fr,backgroundFile:mt,desktopLayout:ey,phoneLayout:pc,twoPictures:ri}=zH({isVideo:le,videoSource:P,videoPlayback:W,youtubeUrl:O,mediaLayout:v,mediaLayoutPhone:L}),[ai,ra]=p4(!1);ai&&Xo===!1&&ra(!1);let Fa=!ai,Cn=d4({overlayColor:b,overlayPosition:y},Oe),uc=le?null:nf(G,"image"),vn=le?null:sf(G,"image"),gp=KH(G),mc=Xt(Ex,{treatment:le?{}:Ol(G,"image"),children:Xt(of,{videoSrc:mt?Ce:void 0,videoAv1Src:mt?mo.av1:void 0,videoSrcPhone:mt?mo.phone:void 0,videoAv1SrcPhone:mt?mo.av1Phone:void 0,posterSrc:bo,posterSrcPhone:mo.poster,showVideo:mt,playbackRate:st,objectPosition:f,objectPositionPhone:le?void 0:u,objectPositionTablet:le?void 0:p,quiet:_e,slideShown:no,laterSlide:Z,laterOfLead:Eo})}),Ip=f4("section",{ref:ue,className:et(`${yo?"relative min-h-full w-full overflow-clip":"relative h-full w-full overflow-hidden"}${S?` ${S}`:""}`,V.className),...V.attrs,style:C,"data-slide-name":e??"","data-slide-process":o??"","data-slide-media":mt&&Ce?"video":"still",...gp.hostAttrs,children:[Xt(cx,{sheet:gp.sheet}),Xt(VH,{partMotion:G,editing:w,children:ri?Xt(YH,{laterSlide:Z,desktopLayout:ey,phoneLayout:pc,editing:w,partMotion:G,first:{src:r,objectPosition:f,objectPositionPhone:u,objectPositionTablet:p,tintColor:m,tintOpacity:h},second:{src:A,objectPosition:D,objectPositionPhone:T,objectPositionTablet:F,tintColor:k,tintOpacity:_}}):Xe||uc||vn?f4(Ox,{part:le?"media":"image",editing:w,entrance:uc,scroll:vn,origins:Px({objectPosition:f,objectPositionTablet:p,objectPositionPhone:u}),className:"absolute inset-0 z-[1]",children:[mc,Xe&&Xt(qH,{youTubeId:Fr,ownPoster:!!bo,background:!Mo,editing:w})]}):mc}),Mo&&Xt(XH,{youTubeId:Fr,fileSrc:Xe?void 0:Ce,fileAv1Src:Xe?void 0:mo.av1,fileSrcPhone:Xe?void 0:mo.phone,fileAv1SrcPhone:Xe?void 0:mo.av1Phone,playing:ai,onPlay:()=>{ra(!0),nt?.()},editing:w}),Fa&&!ri&&Xt(_x,{color:m,opacity:h,passClicks:!1}),Fa&&a4(oe)&&Xt("div",{className:"absolute inset-0 z-[2]",style:{background:Cn.own?c4(Cn.color,Cn.position??void 0):n4(Cn.color),...ve!==void 0?{opacity:ve/100}:null}}),Fa&&Xt("div",{className:[yo?"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:{...eO,...t4(Ae,Re)},children:I&&Xt(I,{className:"sf-hero-group-zone",minEmptyHeight:160})})]});return V.scope(Eo?Xt(Kh,{children:Ip}):Ip)}var u4=Array.from({length:3},(e,o)=>({name:`Slide ${o+1}`,process:"Category",mediaType:"image",mediaVideo:"",poster:""}));import{newNodeId as I4}from"efficient-easel/draw";import{isNodeList as hce}from"efficient-easel/data";var Nv=3,Dv=()=>({type:Y,props:{direction:"column"},slots:{[De]:[{type:"ImageBlock"},{type:Y,props:{direction:"column"},slots:{[De]:[{type:"Text",props:Da()},{type:"Text"}]}}]}}),m4=()=>Array.from({length:Nv},Dv);var h4=["","","","","",""],x4="#ticker",lf="strip",Mv={sectionAccent:Hr,line:!1};function mce(e){return(Array.isArray(e.tickerItems)?e.tickerItems:[]).map(o=>typeof o?.text=="string"?o.text:"").filter(o=>o.trim()!=="")}function Hv(e){return mce(e).length>0}function DGe(e){return e.showTicker!==!1&&Hv(e)}var y4=(e,o)=>({type:e.type,props:{...o?.(e.type)??{},...Object.fromEntries(Object.entries(e.props).map(([t,r])=>[t,hce(r)?r.map(a=>y4(a,o)):r]))}}),xce=e=>{let[o]=Nr([Dv()],a=>I4(a)),{id:t,...r}=y4(o,e).props;return r},Zt={Hero:{slot:"slides",childType:"HeroSlide",addLabel:"Add slide",slider:!0,seeds:()=>u4.map(e=>({...e}))},HeroSlide:{slot:"groups",childType:"HeroGroup",addLabel:`Add ${gc.toLowerCase()}`,seeds:()=>[],addBlocked:zy,notice:Gy},HeroSingle:{slot:"boxes",childType:"HeroGroup",addLabel:`Add ${gc.toLowerCase()}`,seeds:()=>[],addBlocked:zy,notice:Gy},ProcessSteps:{slot:xc,childType:Y,addLabel:`Add ${gc.toLowerCase()}`,seeds:e=>Array.from({length:Nv},()=>xce(e)),skipSeed:e=>Array.isArray(e.steps)&&e.steps.length>0}},g4=1,gce={slot:lf,childType:Y,addLabel:`Add ${gc.toLowerCase()}`,seeds:()=>[],addBlocked:e=>e.length>=g4?"This Hero has its Scrolling Bar already. Delete it to add another.":null,notice:e=>e.length>g4?`This Hero holds ${e.length} Scrolling Bars. Keep one and delete the others.`:null},b4={Hero:{[lf]:gce}};function qGe(e){for(let[o,t]of Object.entries(e)){if(He(Zt,o)&&$(Zt,o)!==t)throw new Error(`lib/document/slot-specs: "${o}" already has a slot spec`);Zt[o]=t}}function XGe(e,o){let t=$(Zt,e);return t?{slot:t.slot,children:t.seeds(o).map(r=>({type:t.childType,props:{id:I4(t.childType),...r}}))}:null}var yce=["GalleryB"];function S4(e){let o=e.content;if(!Array.isArray(o))return e;let t=!1,r=o.map(s=>{let i=s?.type;if(!i||!yce.includes(i))return s;let l=$(Zt,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(Ice(r)),n=a.size?r.filter((s,i)=>!a.has(i)):r;return a.size&&(t=!0),t?{...e,content:n}:e}var bce={"Logos.logosPerRow":"columns","HeroSlide.tintOpacity":"overlay","Split.textBgTint":"overlay"},Sce={"Footprint.source":"typed"};function w4(e){let o=e.props,t=!1;if(e.type&&o)for(let[r,a]of Object.entries(bce)){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(Sce)){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],$0(i)&&i!==a&&!eo(l)&&(l[_o]=i),o=l,t=!0}if(e.type&&o){let r=Hp(e.type,o);r!==o&&(o=r,t=!0)}if(o){let r=ho({props:o},a=>so(a,w4));r.props!==o&&(o=r.props,t=!0)}return t?{...e,props:o}:e}function C4(e){return wp(e,o=>so(o,w4))}import{readHidable as Cce}from"efficient-easel/draw";function Ax(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 sje(e){return wce[cf(e)]}var wce={1:"grid-cols-1",2:"grid-cols-2",3:"grid-cols-3",4:"grid-cols-4"};function cf(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 Os(e){if(e.theme)return vo(e.theme);let o=e.site?.themePresets;return o?vo({selected:e.site?.selectedPreset??0,themes:[...o]}):void 0}function vce(e,o){return o===0?`${e}~box`:`${e}~box-${o+1}`}var k4=new Set(["id"]),cn={},df=[],kce={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"]},Tce=Object.keys(kce),As=["Breadcrumb","DocBody","Form","SubmitBuild","Footprint","FAQ","ContactLocations","ProcessSteps",...Tce,"Stats","Logos","PaymentBadges","PaymentLogosBlock","FitmentFinder","DocMasthead","DocTabs","Timeline","TimelineTrack","OrderSummary","Chart","Mockup","Integrations","Countdown","FeaturedCover","IntroBleed","SectionHeader","TitleWithButtons","Prose","ParagraphsA","Banner","Cards"];function To(e){for(let[o,t]of Object.entries(e)){if(He(cn,o)&&$(cn,o)!==t)throw new Error(`lib/sections/section-to-box: "${o}" already has a row`);cn[o]=t}}function dn(e){return $(cn,e)}function Pce(e){return He(cn,e)&&df.includes(e)}function T4(e,o=As){return He(cn,e)&&(o.includes(e)||Pce(e))}function gje(e){let o=$(pr,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 Wv=e=>Cce(e),ro=e=>Wv(e).text.trim()!=="";function Ece(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 _ce=e=>e==="heading"?Da():e==="eyebrow"?ca():{};function Oce(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 Ace(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 v4(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 Rce(e){let o=new Set([...k4,"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 $v=e=>Dp(e.headPlacement)==="own-box";function Lce(e){return $v(e)?"its head sits in a Box of its own above it (own-box): the row draws the head inline":void 0}function Fce(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 Bce(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 Nce(e,o,t){if(!t.press)for(let r of Bce(e)){let a=Fce(o,r);if(a!==void 0)return a}}function Rs(e,o,t={}){let r=e.props,a=(o.ownBoxConverts?void 0:Lce(r))??Nce(o,r,t)??o.skip?.(r);if(a!==void 0)return{node:e,nodes:[e],carried:[],dropped:[],siteWrites:[],skipped:a};let n=String(r.id??e.type),s=[],i=[],l=new Set,d=(y,v)=>{s.push({key:y,home:v}),l.add(y)},f=r._partStyles??{},u=Rce(o),p=0,m=(y,v)=>({type:y,props:{...v,id:`${n}~${y}-${++p}`}}),h=(y,v,L,A,D,T,F)=>{if(D){for(let _ of y??[]){let P=typeof _=="string"?_:_[0];L[P]!==void 0&&F(P,`nothing \u2014 the ${A} has no parts, so it is not drawn`)}return}let k=typeof v=="function"?v(r,t):v??{};return v4(y??[],k,L,(_,P,O)=>F(_,O?`nothing \u2014 the old value draws nothing (${A}: no ${P})`:`${T}${A}: ${P}`),t)},I=y=>Nr(y,v=>`${n}~${v}-${++p}`),w=(y,v,L)=>{let A=y.of?y.of(v):Array.isArray(v[y.key])?v[y.key]:[],D=typeof y.props=="function"?y.props(r,t):y.props??{},T=A.map((O,W)=>{let G=O??{},Z=y.item?.(G,W,r)??{},V=S(Z.reverse?[...y.parts].reverse():y.parts,G,!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 O=y.groups;return L(y.key,A.length?`one Box per item (${A.length}), in a Box per group`:"nothing \u2014 the list is empty"),Ax(A.map(W=>W??{}),O.of,O.of).map((W,G)=>{let Z=W.items.map(_e=>_e.item),V=O.parts?S(O.parts,O.head?.(Z,r)??{},!1,`group ${G+1}: `):[],de=W.items.map(_e=>T[_e.index]),ve=O.perRow?.(Z.length,r),oe=Number.isInteger(ve)&&ve>=1?ve:1,Oe=[];if(O.perRow&&oe<de.length)for(let _e=0;_e*oe<de.length;_e++)Oe.push(de.slice(_e*oe,(_e+1)*oe).flat());return m(Jr,{name:`${O.name} ${G+1}`,...O.props??{},[Qr]:[...V,m(Jr,{name:`${O.itemsName} ${G+1}`,...O.itemsProps?.(Z.length,r)??{},[Qr]:Oe.length?Oe.map((_e,Ae)=>m(Jr,{name:`${O.rowName??`${O.itemsName} row`} ${Ae+1}`,...O.rowProps??{},[Qr]:_e})):de.flat()})]})})}let F=y.perRow?.(r),k=y.perRow?Number.isInteger(F)&&F>=1?F:1:0;if(L(y.key,(A.length?y.flat?`each item's parts (${A.length} items), in order`:`one Box per item (${A.length}), its parts inside`:"nothing \u2014 the list is empty")+(k&&A.length?`, in rows of ${k}`:"")),!k)return T.flat();let _=typeof y.rowProps=="function"?y.rowProps(r,t):y.rowProps??{},P=[];for(let O=0;O*k<T.length;O++){let W=T.slice(O*k,(O+1)*k).flat(),G=y.rowFiller?k-T.slice(O*k,(O+1)*k).length:0;P.push(m(Jr,{name:`${y.rowName??`${y.name} row`} ${O+1}`,..._,[Qr]:[...W,...Array.from({length:G},(Z,V)=>m(Jr,{name:`Empty ${V+1}`,...y.rowFiller,[Qr]:[]}))]}))}return P},S=(y,v,L,A)=>{let D=[],T=(k,_)=>L?d(k,_):void 0,F=k=>L?f[k]:void 0;for(let k of y)if(!(k.when&&!k.when(r,L?void 0:v)))switch(k.kind){case"text":{let _=Wv(v[k.key]);if(!_.text.trim()&&!(L&&t.press&&o.pressKeepsEmpty?.includes(k.key))){T(k.key,"nothing \u2014 empty words draw nothing, so no block");break}let P=_ce(k.role??"body"),{_partStyles:O,...W}=P,G=Oce(P,k.styleFrom?{...k.style,...k.styleFrom(r,t)}:k.style,F(k.key),k.props?.align);D.push(m("Text",{text:k.mark==="accentLead"?Ece(_.text):k.mark==="accentItalic"?yc(_.text):_.text,...W,...k.props??{},...G,..._.hidden?{_hidden:!0}:{}})),T(k.key,`${A}Text block: its words${_.hidden?", hidden":""}`);break}case"button":{let _=Wv(v[k.key]);if(!_.text.trim()){T(k.key,"nothing \u2014 no words, no button"),T(k.href,"nothing \u2014 no button to link"),typeof k.variant=="object"&&T(k.variant.key,"nothing \u2014 no button to style");break}let P=typeof v[k.href]=="string"&&v[k.href]?v[k.href]:"#",O={...k.style??{},...F(k.key)??{}};D.push(m("ButtonBlock",{label:_.text,href:P,...typeof k.props=="function"?k.props(v,t):k.props??{},...Ace(k.variant,v),...Object.keys(O).length?{_partStyles:{label:O}}:{},..._.hidden?{_hidden:!0}:{}})),T(k.key,`${A}Button block: its words`),T(k.href,`${A}Button block: its link`),typeof k.variant=="object"&&T(k.variant.key,`${A}Button block: its Style`);break}case"image":{let _=v[k.key];if(typeof _!="string"||!_){T(k.key,"nothing \u2014 no picture, no block"),k.alt&&T(k.alt,"nothing \u2014 no picture to describe");break}let P=k.alt&&typeof v[k.alt]=="string"?v[k.alt]:"";D.push(m("ImageBlock",{src:_,alt:P,...k.props??{}})),T(k.key,`${A}Image block: its picture`),k.alt&&T(k.alt,`${A}Image block: its alt text`);break}case"list":{D.push(...w(k,v,T));break}case"group":{let _=S(k.parts,v,L,A),P=h(k.box,k.props,v,`${k.name} Box`,!_.length&&!k.keepEmpty,A,T);P&&D.push(m(Jr,{name:k.name,...P,[Qr]:_}));break}case"block":{let _=k.parts?S(k.parts,v,L,A):[],P=h(k.box,k.props,v,`${k.type} block`,!!k.parts&&!_.length&&!k.keepEmpty,A,T);P&&D.push(m(k.type,{...P,...k.slot?{[k.slot]:_}:{}}));break}case"core":{let _=k.as??e.type,P={...k.headless?{}:{headPlacement:"own-box"},...k.props??{}},O=k.keep==="rest"?Object.keys(v).filter(G=>!u.has(G)&&!(G in P)):k.keep;for(let G of O)v[G]!==void 0&&(P[G]=v[G],T(G,`the ${_} block inside the Box`));if(k.keep==="rest"){for(let Z of Object.keys(k.props??{}))v[Z]!==void 0&&!u.has(Z)&&T(Z,`nothing \u2014 the ${_} block inside the Box has the row's own value`);v.headPlacement!==void 0&&T("headPlacement",`the ${_} block inside the Box: own-box`);let G=Object.fromEntries(Object.entries(f).filter(([Z])=>!u.has(Z)));Object.keys(G).length&&(P._partStyles=G)}for(let[G,Z]of Object.entries(k.rename??{}))v[G]!==void 0&&(P[Z]=v[G],T(G,`the ${_} block inside the Box: ${Z}`));if(k.derive){Object.assign(P,k.derive.props(v,t));for(let G of k.derive.reads)v[G]!==void 0&&T(G,`the ${_} block inside the Box`)}let W=typeof k.slots=="function"?k.slots(v,t):k.slots??{};for(let[G,Z]of Object.entries(W))P[G]=Z.flatMap(V=>"kind"in V?w(V,v,T):I([V]));D.push(m(_,P));break}}return D},C=(y,v)=>{let L=v===0?"Box":`${y.name} Box`,A=S(y.parts,r,!0,v===0?"":`${L}: `),D=typeof y.boxProps=="function"?y.boxProps(r,t):y.boxProps??{},T=v4(y.box??[],D,r,(F,k,_)=>d(F,_?`nothing \u2014 the old value draws nothing (${L}: no ${k})`:`${L}: ${k}`),t);return{type:Jr,props:{name:y.name,...T,[Qr]:A,id:vce(n,v)}}},b=[o,...o.also??[]].map(C);r._partStyles!==void 0&&d("_partStyles","each old part's style moved to its new part");for(let[y,v]of Object.entries(o.reads??{}))r[y]!==void 0&&d(y,v);for(let[y,v]of Object.entries(o.drop??{}))y in r&&(i.push({key:y,why:v}),l.add(y));for(let y of Object.keys(r))k4.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 P4(e,o=df,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)?$(cn,s.type):void 0;if(!i)return[s];let l=Rs(s,i,t);return l.skipped!==void 0?[s]:(a=!0,l.nodes)});return a?{...e,content:n}:e}function E4(e,o=df,t={}){if(!Array.isArray(e))return[];let r=[];return e.forEach((a,n)=>{let s=a&&typeof a.type=="string"&&o.includes(a.type)?$(cn,a.type):void 0;if(!s)return;let i=Rs(a,s,t);i.skipped===void 0&&r.push({index:n,node:i.node,nodes:i.nodes})}),r}import{BLOCK_FIXED_WIDTH as Dce,BLOCK_SIZE_KEYS as Mce,parseBlockWidthFit as Lx,phoneKey as _4,parseTextFit as Rx,tabletKey as O4,viewKeyAt as A4}from"efficient-easel/draw";import{sideLengthAt as Hce}from"efficient-easel/screen/lib/content/length-units";var Wce="sf-block-size",ff=["width","minWidth","maxWidth"],Fx=e=>`${e}Unit`,fn=e=>typeof e=="number"&&Number.isFinite(e)&&e>=0?e:void 0,$ce={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"}},B4={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"}},Uce={desktop:B4.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"}},zce={two:{desktop:"view-wide:[.flex-row>*>&]:grow"},three:{desktop:"view-desktop:[.flex-row>*>&]:grow",tablet:"view-wide:max-view-desktop:[.flex-row>*>&]:grow"}},N4="max-view-wide:grow!";function D4(e){return Bx(e).mode.phone==="fill"}var Gce={desktop:"--sf-bw",tablet:"--sf-bw-t",phone:"--sf-bw-p"},jce={fill:"data-sf-width-fill",fixed:"data-sf-width-fixed"},Kce="data-sf-min-width",R4={two:{desktop:"wide",phone:jy.phone},three:jy},Vce={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)]"]}},Uv={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)]"]}},Yce={minWidth:{desktop:Uv.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:Uv.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)]"]}},qce=["widthFit",...ff],L4={desktop:"view-wide:whitespace-nowrap view-wide:[&_*]:whitespace-nowrap!",phone:"max-view-wide:whitespace-nowrap max-view-wide:[&_*]:whitespace-nowrap!"},zv={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!"},Xce={desktop:zv.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!"},M4={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"},Zce={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:M4.phone},H4={desktop:"view-wide:max-w-full",phone:"max-view-wide:max-w-full"},F4={desktop:"view-desktop:max-w-full",tablet:"view-wide:max-view-desktop:max-w-full",phone:H4.phone};function W4(e){let o=Bx(e);return o.sides.filter(t=>o.mode[t]==="fill").map(t=>zce[o.three?"three":"two"][t]).filter(Boolean).join(" ")}function $4(e){let{three:o,sides:t,mode:r,lengthPerSide:a}=Bx(e),n=d=>o?R4.three[d]:R4.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[jce[d]]=s[d].join(" "));return s.min.length&&(l[Kce]=s.min.join(" ")),l}function Bx(e){let o=qce.some(a=>{let n=e[a]?.tablet;return a==="widthFit"?Lx(n)!==void 0:fn(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=Fx(a),s={};for(let l of t)s[A4(a,fa(l))]=fn(e[a]?.[l]),s[A4(n,fa(l))]=e.units?.[a]?.[l];let i=l=>Hce(s,{length:a},n,fa(l),"length")??void 0;return{desktop:i("desktop"),tablet:i("tablet"),phone:i("phone")}},mode:r(Lx,e.widthFit)}}function Gv(e,{atSectionLine:o=!1}={}){let t=["desktop","tablet","phone"].some(_=>Rx(e.textFit?.[_])==="ellipsis"),r=o&&!t,a=r?Uce:B4,n=r?Yce:Uv,s=r?Xce:zv,i=[],l={},d={},{three:f,sides:u,lengthPerSide:p,mode:m}=Bx(e),h=p("width");for(let _ of u){let P=m[_];!P||P==="fit"||(i.push(f?a[_][P]:$ce[_][P]),P==="fixed"&&(l[Gce[_]]=Me(h[_]?.value??Dce.fallback,h[_]?.unit)))}for(let _ of ff.filter(P=>P!=="width")){let P=p(_);for(let O of u){let W=P[O];if(W===void 0)continue;let[G,Z]=f?n[_][O]:Vce[_][O];l[G]=Me(W.value,W.unit),i.push(Z)}}let I=Rx(e.textFit?.desktop),w=Rx(e.textFit?.phone),S=_=>{let P=fn(e.minFont?.[_]);return P===void 0?void 0:e.units?.minFont?.[_]==="vw"?`${P}vw`:String(P)},C=S("desktop"),b=S("phone"),y=Rx(e.textFit?.tablet),v=y!==I||w!==void 0?y:void 0,L=S("tablet"),A=L!==C||b!==void 0?L:void 0,D=fn(e.maxWidth?.desktop),T=fn(e.maxWidth?.tablet)??D,F={desktop:D!==void 0,tablet:T!==void 0,phone:(fn(e.maxWidth?.phone)??T)!==void 0},k=(_,P,O)=>{if(P!=="line"&&P!=="ellipsis")return;let W=_==="tablet"?void 0:_,G=(Z,V)=>O||!W?Z[_]:V[W];if(P==="line"){i.push(G(s,L4));return}if(i.push(G(zv,L4)),i.push(G(Zce,M4)),f&&!O&&_==="desktop")for(let Z of["desktop","tablet"])F[Z]||i.push(F4[Z]);else F[_]||i.push(G(F4,H4))};return v?(k("desktop",I,!0),k("tablet",v,!0),k("phone",w??v,!0)):(k("desktop",I,!1),k("phone",w??I,!1)),I&&(d[ka.fit]=I),v&&(d[ka.fitTablet]=v),w&&(d[ka.fitPhone]=w),C!==void 0&&(d[ka.min]=C),A!==void 0&&(d[ka.minTablet]=A),b!==void 0&&(d[ka.minPhone]=b),!r&&(v||A!==void 0)&&(d[ka.edge]=""),i.length===0&&Object.keys(d).length===0?null:{className:[Wce,...i].join(" "),style:l,attrs:d}}function vje(e){if(fn(e.maxWidth?.desktop)!==void 0)return!0;let o=Lx(e.widthFit?.desktop);return o==="fill"||o==="fixed"}function U4(e){return["desktop","tablet","phone"].some(o=>{let t=Lx(e.widthFit?.[o]);return t==="fixed"||t==="fill"||fn(e.minWidth?.[o])!==void 0})}function Nx(e){let o={};for(let t of Mce){let r=e[t],a=e[O4(t)],n=e[_4(t)];(r!==void 0||a!==void 0||n!==void 0)&&(o[t]={desktop:r,tablet:a,phone:n});let s=Fx(t),i={desktop:e[s],tablet:e[O4(s)],phone:e[_4(s)]};(i.desktop!==void 0||i.tablet!==void 0||i.phone!==void 0)&&((o.units??={})[t]=i)}return o}var z4={label:"Button",defaultProps:{label:"",href:"#",variant:"primary",align:"left",contained:!0}};import{parseHexColor as Jce}from"efficient-shell/format";import{convertLength as Qce}from"efficient-easel/screen/lib/content/length-units";var ea=(e,o,t,r)=>o===t?e:Qce(e,o,t,r,{min:0,max:200,step:4}),Ls={textFit:"line",textFitPhone:"wrap"},Fs={...j,[Pt]:""},{label:eKe,href:oKe,...ede}=z4.defaultProps,Lo=ede,Bs={buttonFillOpacity:0,buttonBorder:{width:0},buttonPaddingTop:0,buttonPaddingRight:0,buttonPaddingBottom:0,buttonPaddingLeft:0},Q={...Cy,sectionAccent:0},Rl={sectionAccent:-1},re=[...Ga,"sectionHeightMode","sectionHeightValue","sectionHeightUnit","sectionHeightModeTablet","sectionHeightValueTablet","sectionHeightUnitTablet","sectionHeightModePhone","sectionHeightValuePhone","sectionHeightUnitPhone","sectionCorners","sectionCornerSides","sectionBorder","sectionBorderTablet","sectionBorderPhone","sectionAccent",Hc.unitKey,...lF,...tF,"anchor",_c,...Hi,...au,...ox,...ru(["widthFit",...ff,...ff.map(Fx)]),...Object.values(Fe)],Al="a section width key, ignored since efficient-web-builder 45 (an old key; a section's own width has new keys, lib/content/section-width), so dropping it changes nothing",ee={sectionSurface:"read by nothing in src/ (searched 2026-10-24): a retired theme key that draws nothing today, so dropping it changes nothing",widthMode:Al,fullWidth:Al,pageWidth:Al,backgroundWidth:Al,contentWidth:Al,contentMax:Al},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=Ee(e.sectionPaddingUnit),i=Ee(e.sectionPaddingUnitTablet),l=Ee(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 Jt(e,o){let t={};for(let[a,n]of ES)e[a]!==void 0&&(t[n]=e[a]);let r=ad(e,bl(o));return{...t,sectionPaddingTop:r.top,sectionPaddingBottom:r.bottom}}var pn=e=>[...ES.map(([o,t])=>[o,t,(r,a)=>Jt(a,e)[t]]),["sectionPaddingTop","sectionPaddingTop",(o,t)=>Jt(t,e).sectionPaddingTop],["sectionPaddingBottom","sectionPaddingBottom",(o,t)=>Jt(t,e).sectionPaddingBottom]],ode={kind:"heading-case-upper",styles:["heading-1","heading-2","heading-3"]},tKe=e=>o=>ro(o.props[e])?[ode]:[],Ie=(e,o)=>({kind:"text",key:e,role:"eyebrow",props:j,...o?{style:o}:{}}),Ll=e=>({kind:"group",name:"Chip",props:{...N,...la("main"),...Qo(6,14)},parts:[Ie(e,{color:"background",...U("label",12),weight:600,letterSpacing:.16})]}),G4=e=>e.background!=="transparent",tde=(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},pf={align:"right",alignPhone:"left"},rde=(e,o,t)=>{let r=a=>tde(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}},uf=(e,o,t,r={})=>rde(e,o,{...Fs,...pf,...r,_partStyles:{text:{...ht,color:"labels",...t,case:ht.case,...pf}}}),Fl=(e,o)=>typeof e=="number"&&Number.isInteger(e)&&e>=0?e:Os(o)?.selected??0,j4="var(--site-surface-2)",Dx=(e,o)=>Os(o)?.themes[Fl(e.sectionAccent??0,o)],Ct=(e,o)=>(t,r)=>{if(!o?.(t,r))return la(e);let a=Dx(t,r)?.[e];return a?{fillColor:a}:{}},Mx=(e,o)=>un(e,o)>=0,K4=e=>e.startsWith("#")&&Jce(e)!==null,Hx=(e,o,t)=>{let r=e?.trim();if(r&&K4(r))return{fillColor:r};let a=Nb(r);if(a)return la(a);let n=r===j4?Dx(o,t):void 0;return n?{fillColor:qp(n)}:{}},Wx=e=>{let o=e?.trim();return!o||o==="transparent"||o===ot||Nb(o)||o===j4||K4(o)?void 0:"it paints a colour that no Box Fill can hold"},un=(e,o)=>{let t=Os(o)?.themes;return t&&G4(e)?F_(t,Fl(e.sectionAccent,o)):-1},mn=(e,o,t)=>{let r=un(o,t);return r>=0?r:e},Bl=(e,o)=>{let t=Os(o)?.themes,r=t?B_(t,Fl(e,o)):-1;return r>=0?r:e},Ns=(e,o)=>{let t=un(e,o);return t>=0?{sectionAccent:t}:{}},hn=(e,o)=>G4(e.props)&&un(e.props,o)<0?[{kind:"band-preset",page:Fl(e.props.sectionAccent,o)}]:[],Nl=(e,{view:o="desktop",to:t="px",maxPx:r=1/0}={})=>{let{siteGutter:a,siteGutterUnit:n,siteGutterPhone:s,siteGutterPhoneUnit:i}=e.site??{},l=fa(o),d=(u,p,m)=>{let h=Ee(p),I=Yp(u,h,"spacing",m);return I===null?null:ea(I,h,"px",l)},f=o==="desktop"?d(a,n,Wo)??bm(a):d(s,i,zt)??Sm(s)??wm(a,n);return ea(Math.min(r,f),"px",t,l)},mf=Object.fromEntries(["Top","Right","Bottom","Left","TopPhone","RightPhone","BottomPhone","LeftPhone"].map(e=>[`sectionPadding${e}`,0])),hf=e=>({top:0,right:0,bottom:0,left:0,...e}),jv=(e,o,t,r=[])=>({kind:"group",name:e,keepEmpty:!0,props:(a,n)=>({...N,...mf,...Ct("surface")(a,n),...typeof t=="function"?t(a,n):t}),box:[[o,"bgImage"],uo.kind,uo.duration,uo.delay],parts:r});import{phoneKey as nk,readHidable as sk}from"efficient-easel/draw";import{isNodeList as kde,newId as Tde}from"efficient-easel/data";function V4(e){return Math.min(4,Math.max(2,e??3))}var sKe={eyebrow:"Label",title:"Section *heading.*"},ade=Sp.Cards,Y4={label:"Cards",fields:ade,defaultProps:{eyebrow:"",title:"",items:[],columns:3}};var cKe={eyebrow:"Highlight",title:"Key *features.*"},dKe=()=>[{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")}],q4={label:"Key Features",defaultProps:{eyebrow:"",title:"",items:[],columns:3}};var Kv="cardPlace";function uKe(e){return e[Kv]==="top-line"?"top-line":""}var mKe="absolute left-5 top-0 z-10 -translate-y-1/2 bg-bg px-2",hKe="data-sf-top-line",nde=new Set(["Cards",Oo]);function xKe(e){return typeof e=="string"&&nde.has(e)}var sde=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 gKe(e,o,t){return!t||!o?.linesBetween||o.index!==0?e:sde(e)?{...e,top:0}:e}var IKe="outsideFramedCard";var $x={sectionBorder:{top:0,right:1,bottom:1,left:0},...la("background")},ide={gap:0,gapPhone:0,sectionBorder:{top:1,right:0,bottom:0,left:1},shadow:!0},Ds=e=>({direction:"row",columns:e,columnsTablet:e,...ide}),X4=(e={})=>Ze(hx,{...j,tag:"p",[Kv]:"top-line"},e,!0),Dl=(e=Ln)=>{let o=mi(e);return{...o,props:{...$x,...o.props},slots:{[De]:[...o.slots?.[De]??[],X4()]}}},Vv=(e=!1)=>{let o=hi(e);return{...o,props:{...$x,...o.props}}},lde={name:"name",time:"time",note:"note",price:"price"},cde={textStyle:"body-1",...U("body",16),weight:500,lineHeight:1.5},dde={...ht,...U("label",12),letterSpacing:.18,lineHeight:1.5},fde={textStyle:"body-1",...U("body",14),lineHeight:1.6},pde={textStyle:"body-1",fontRole:"heading",...U("headingSmall",20),weight:500,color:"accent",lineHeight:1.5},ude={...U("label",11),letterSpacing:.25},mde={gap:16,gapPhone:16,sectionBorder:{top:0,right:0,bottom:0,left:0},shadow:!1},Ux=e=>({direction:"row",columns:e,...mde}),Yv=[...new Set([...Object.keys(Ds(1)),...Object.keys(Ux(1))])],qv=()=>{let e=lde,o={tag:"p",widthFit:"fill"};return{type:Y,props:{...N,name:"Card",justify:"between",gap:16,gapPhone:16,...Qo(24),sectionBorder:{top:1,right:1,bottom:1,left:1},...la("surface"),shadow:!0},slots:{[De]:[X4(ude),{type:Y,props:{...N,name:"Words",gap:8,gapPhone:8},slots:{[De]:[Ze(e.name,{...j,...o},cde),Ze(e.time,{...ne,...o},dde),Ze(e.note,{...ne,...o},fde)]}},Ze(e.price,{...j,...o},pde)]}}};import{tabletKey as e5}from"efficient-easel/draw";import{VIEW_DESKTOP_MIN as zx}from"efficient-easel/draw";var Gx=Jo,Xv=zx,Z4=960,J4=Jo,Q4={min:Gx,max:1600,step:10},jx="stackBelow";function _Ke(e){if(!(typeof e!="number"||!Number.isFinite(e))&&!(e<Q4.min||e>Q4.max))return Math.round(e)}var hde=e=>`sf-stack-${e}`,xde=e=>`sf-stack-${e}-gutter`,gde=e=>`sf-stack-${e}-outer`,Ml=e=>`${e-.02}px`;function OKe(e,o={}){let t=o.gutter!==!1,r=`.${hde(e)}`,a=`.${xde(e)}`,n=`.${gde(e)}`,s=[];if(e>Gx){let i=`${r}>.sf-block-size,${r}>[data-easel-block]>[data-sf-part-host]>.sf-block-size`,l=Math.min(e,zx);s.push(`@media (min-width:${Gx}px) and (max-width:${Ml(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:${Gx}px) and (max-width:${Ml(l)}){.sf-gap-zone${r}{gap:var(--sf-gap-len-tablet,var(--sf-gap-len-phone,calc(var(--sf-gap-len) / 2)))}}`),e>zx&&s.push(`@media (min-width:${zx}px) and (max-width:${Ml(e)}){.sf-gap-zone${r}{gap:var(--sf-gap-len-phone,calc(var(--sf-gap-len) / 2))}}`)}return t&&s.push(`@media (max-width:${Ml(e)}){${a}${a}{padding-inline:${Gr.frame}}}`),t&&e<Z4&&s.push(`@media (min-width:${e}px) and (max-width:${Ml(Z4)}){${a}${a}{padding-inline:${Rt}}}`),e>J4&&s.push(`@media (min-width:${J4}px) and (max-width:${Ml(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 Ms(e){if(e==="ProductGrid")return"shelf";let o=$(pr,e)?.headStyle;return o==="editorial"||o==="simple"||o==="essay"?o:"standard"}var xf={standard:64,editorial:60,simple:36,essay:28,shelf:20},Ide={SectionHeader:"accent",FAQ:"accent",FitmentFinder:"accent",FitmentTable:"accent",SpecTable:"accent",RelatedProducts:"accent",Collections:"accentNum"};function yde(e){if(e==="SectionHeader")return{num:"num",title:"title",description:"description",link:!0};let o=$(pr,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 Vx(e,o,t){let r=`editorial:${e}|${o}|${t}`,a=Kx.get(r);if(a)return a;let n=a5({num:e,title:o,description:t,link:!1});return Kx.set(r,n),n}var vt={[jx]:Xv},Jv={top:0,right:0,bottom:1,left:0},kt=(e,o,t,r)=>({sizeToken:{step:e,px:r,fluid:{minPx:o,vw:t}}}),Yx=(e,o,t={})=>Ie(e,{...U("label",o),...t}),qx=(e,o)=>({kind:"text",key:e,role:"heading",props:j,style:{textStyle:"heading-2",...o}}),Qv=Jo,bde=Xv,ek=(e,o,t,r,a={})=>({kind:"text",key:e,props:{...ne,align:"right",alignPhone:"left",...t?{maxWidth:t,maxWidthPhone:Qv}:{},...a},style:{textStyle:"body-5",fontRole:"heading",alignPhone:"left",...U("body",o),...r,...a}}),r5={...Lo,align:"right",alignPhone:"left",...Bs},Zv=e=>({kind:"button",key:"linkText",href:"linkHref",variant:"ghost",props:r5,style:{...fr(e),color:"labels"}}),o5=(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"?Sde(ca()):{},...t.style}}}}},Sde=e=>e._partStyles.text??{},Hl={widthFitPhone:"fill"};function ok(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),...Hl}):{...o,...Hl}}}return{...e,parts:e.parts.map(ok)}}function wde(e,o){let t=$(Ide,e),r=t==="accent",a=Yx(o.num,14,{color:r?"accent":"labels"}),n=t==="accentNum"&&a.kind==="text"?{...a,mark:"accentLead"}:a,s=qx(o.title,r?{...kt("headingMedium",36,5,64),case:"upper",lineHeight:.95,letterSpacing:-.025}:{...U("headingMedium",56,36),case:"none",lineHeight:1,letterSpacing:-.03}),i=e==="Collections";return{kind:"group",name:"Header",props:{...N,direction:"row",align:"end",justify:"between",gap:40,gapPhone:12,share:"content",sectionBorder:Jv,sectionPaddingBottom:24,sectionPaddingBottomPhone:20},parts:[{kind:"group",name:"Title",props:{...N,...Hl,direction:"row",align:"end",gap:40,gapPhone:12,share:"content"},parts:[{kind:"group",name:"Number",props:{...N,...Hl,align:"start",gap:12},parts:[{kind:"image",key:"logoSrc",alt:"logoAlt",props:{aspect:"auto",contained:!1}},n,...i?[o5(o.num,"==01== / Collections",n)]:[]]},{kind:"group",name:"Heading",props:{...N,...Hl},parts:[s,...i?[o5(o.title,`Three ranges,
323
+ one standard.`,s)]:[]]}]},{kind:"group",name:"Words",props:{...N,...Hl,gap:12,maxWidth:340,maxWidthPhone:Qv},parts:[...o.description?[ek(o.description,14,void 0,{lineHeight:1.5})]:[],...o.link?[Zv(14)]:[],...i?[{kind:"block",type:"ButtonBlock",props:{...r5,variant:"ghost",label:"View all",href:"/wheels",_partStyles:{label:Zv(14).style}}}]:[]]}]}}function Xx(e,o){return e.kind==="text"?o.includes(e.key)?{...e,mark:"accentItalic"}:e:e.kind==="group"?{...e,parts:e.parts.map(t=>Xx(t,o))}:e}function a5(e){let o=qx(e.title,{...kt("headingMedium",40,5.5,80),case:"upper",weight:500,lineHeight:1,letterSpacing:-.03});return{kind:"group",name:"Header",props:{...N,direction:"row",align:"end",justify:"between",gap:40,gapPhone:14,share:"content",sectionBorder:Jv,sectionPaddingBottom:32,...vt},parts:[{kind:"group",name:"Title",props:{...N,direction:"row",align:"end",gap:40,gapPhone:14,share:"content",...vt},parts:[{kind:"group",name:"Number",props:{...N,sectionPaddingBottom:8},parts:[{...Yx(e.num,13),props:{...j,...Ls}}]},Xx(o,[e.title])]},{kind:"group",name:"Words",props:{...N,sectionPaddingBottom:4,maxWidth:360,[e5("maxWidth")]:bde,maxWidthPhone:Qv},parts:e.description?[ek(e.description,14,void 0,{lineHeight:1.5},{[e5("align")]:"left"})]:[]}]}}function t5(e,o){return{kind:"group",name:"Header",props:{...N,gap:16,gapPhone:16},parts:[Yx(e.num,13),qx(e.title,o)]}}var n5=[["para",{...fr(13),weight:400,lineHeight:1,letterSpacing:.22}],["sm",{...U("headingMedium",40,28),case:"none",weight:500,lineHeight:1,letterSpacing:-.03}],["md",{...U("headingMedium",48,32),case:"none",weight:500,lineHeight:1,letterSpacing:-.03}],["lg",{...U("headingMedium",56,36),case:"none",weight:500,lineHeight:1,letterSpacing:-.03}],["xl",{...U("headingMedium",64,40),case:"none",weight:500,lineHeight:1,letterSpacing:-.03}]],Cde=e=>n5.some(([o])=>o===e.titleSize)?e.titleSize:"lg";function vde(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:[Yx(e.num,13,{color:"labels",letterSpacing:.22,lineHeight:1}),...n5.map(([o,t])=>({...qx(e.title,t),when:r=>Cde(r)===o}))]},{kind:"group",name:"Words",props:{...N,direction:"row",align:"center",justify:"end",gap:20,share:"content"},parts:[...e.description?[ek(e.description,13,340,{lineHeight:1.4})]:[],...e.link?[Zv(13)]:[]]}]}}function Zx(e){return Ms(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 Kx=new Map,tk={...U("headingMedium",44,32),case:"upper",weight:500,lineHeight:1,letterSpacing:-.02};function Qt(e){let o=Kx.get(e);if(o)return o;let t=yde(e),r=Ms(e),a=r==="editorial"?a5(t):r==="simple"?t5(t,tk):r==="essay"?t5(t,{...U("headingMedium",38,28,"headingSmall"),case:"upper",lineHeight:1,letterSpacing:-.02}):r==="shelf"?vde(t):wde(e,t);return Kx.set(e,a),a}var Hs={Series:"transparent",StatsParagraph:"transparent",TimelineTrack:ot,Stats:void 0};var gf=(e,o,t,r)=>({sectionBorder:{top:e,right:o,bottom:t,left:r}}),I5=e=>o=>V4(q(o.columns)??q(e.columns)),Pde="inline is the head the row draws; an own-box node is skipped (`skip`)",Ede={kind:"text",key:"title",role:"heading",props:j,style:{textStyle:"heading-3",...tk}},s5={top:120,bottom:120,topPhone:80,bottomPhone:80,topTablet:80,bottomTablet:80},Qx=e=>{let o=Vr(typeof e.background=="string"?e.background:void 0,Hs.Series);return o&&o!=="transparent"?o:void 0},Jx=e=>Qx(e)===ot,_de={...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},i5={...N,direction:"row",justify:"between",gap:12,share:"content",phoneRow:2,[nk("share")]:"content"},Ode=e=>{let o=Qx(e)?1:2;return{...N,direction:"row",columns:4,columnsTablet:2,gap:o,gapPhone:o}},rk={...fr(12),letterSpacing:.22,lineHeight:1.5},l5=e=>ro(e.viewLabel)&&!sk(e.viewLabel).hidden,er=e=>sk(e).text?.trim?.()??"",eg=e=>Object.fromEntries(Object.entries(e).filter(([,o])=>be(o)!==void 0)),ik=e=>e.map(([o,t,r])=>({key:o,label:t,...r?{multiline:!0}:{}})),Ade=ik([["num","Number"],["since","Corner note"],["title","Card title"],["body","Card body",!0],["count","Count"],["countLabel","Count word"]]),Rde=ik([["label","Label"],["value","Value"],["body","Card body",!0]]),If=(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=>Vp(r(i),t)},slots:(i,l)=>({[Ue]:[a(i,l)]})}]}),y5=e=>Array.isArray(e.cards)?e.cards:[],c5={top:76,bottom:76,topPhone:76,bottomPhone:76},b5=e=>(Array.isArray(e.items)?e.items:[]).map(o=>eg({title:er(o?.label),href:typeof o?.href=="string"?o.href.trim():""})).filter(o=>o.title!==void 0).map((o,t)=>({key:Tc(Ay(o),t),...o})),Lde=e=>b5(e).some(o=>be(o.href)!==void 0),S5=[{key:ky.label,label:"Feature label"},{key:ky.href,label:"Link",kind:"link"}],d5=e=>YM(e.eyebrowLook,"KeyFeatures")==="filled",Fde={name:"Key Features",boxProps:(e,o)=>({...Q,direction:"column",gap:44,gapPhone:32,...Ct("surface")(e,o),...gf(1,0,1,0),...ie(e,c5)}),box:[...re,...ge(c5)],parts:[{kind:"group",name:"Heading",props:{...N,direction:"row",align:"end",gap:20,wrap:!0,share:"content",phoneRow:2,[nk("share")]:"content"},parts:[{...Ll("eyebrow"),when:d5},{...Ie("eyebrow"),when:e=>!d5(e)},Ede]},If("Cards",e=>({...N,...Ds(I5(q4.defaultProps)(e))}),S5,b5,e=>Vv(Lde(e)),{reads:["items"]})],drop:{...ee,...se,columns:'Box "Cards": its Columns and tablet Columns',eyebrowLook:"the Filled look is a Box in the main colour round the eyebrow Text; the plain look is the eyebrow Text"}},f5={top:72,bottom:72,topPhone:72,bottomPhone:72},p5=(e,o)=>({...$x,...Ct("background")(e,o)}),u5=e=>{let o=I5(Y4.defaultProps)(e);return{...N,...Ds(o)}},Bde=ik([["title","Card title"],["body","Card body",!0]]),w5=e=>(Array.isArray(e.items)?e.items:[]).map((o,t)=>({key:typeof o?.key=="string"&&o.key?o.key:Tc(Ay(o),t),title:er(o?.title),body:er(o?.body)})),C5=e=>{let o={},t={};for(let[r,a]of Object.entries(e.props??{}))r!=="id"&&(kde(a)?t[r]=a.map(C5):o[r]=a);return{type:String(e.type),props:o,...Object.keys(t).length?{slots:t}:{}}},m5=(e,o)=>{let t=ak(e)?Vv(Nde(e)):Dl(),r=Array.isArray(e.template)?e.template.map(C5):[t],[a]=r;return r.length===1&&a.type===Y?{...a,props:{...p5(e,o),...a.props}}:{type:Y,props:{...N,...p5(e,o),name:"Card"},slots:{[De]:r}}},ak=e=>e.cardStyle==="label-only",v5=e=>w5(e).map((o,t)=>{let r=e.items[t]?.href;return eg({key:o.key,title:o.title,href:typeof r=="string"?r.trim():""})}),Nde=e=>v5(e).some(o=>be(o.href)!==void 0),h5=e=>Array.isArray(e.template)&&e.template.length===0,x5=["dataSource","dataSourceOptions","highlightedCard","highlightBadge"];function k5(){let e=t=>({key:Tde("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 Dde={name:"Cards",ownBoxConverts:!0,boxProps:(e,o)=>({...Q,direction:"column",gap:36,gapPhone:28,...Ct("surface")(e,o),...ie(e,f5)}),box:[...re,...ge(f5)],parts:[{...Qt("Cards"),when:e=>!$v(e)},{...If("Cards",u5,Bde,w5,m5,{reads:["items"],keep:x5}),when:e=>!h5(e)&&!ak(e)},{...If("Cards",u5,S5,v5,m5,{reads:["items"],keep:x5}),when:e=>!h5(e)&&ak(e)}],drop:{...ee,...se,columns:'Box "Cards": its Columns and tablet Columns',cardStyle:"the Card list's template: the Cards card, or under Label only the Label only card (a cell Box, a Mark Box, the label Text)",template:"the Card list's template (the card Box takes the old cell's ground and lines)",headPlacement:"an own-box node lands without its head; inline is the head the row draws",eyebrowLook:"needs the eyebrow's Filled look on a Text block: Plain is the eyebrow start look the row draws; 2 of 62 live nodes store it (the stored-node export, 2026-10-24)"}},Mde={name:"Recurring Columns",boxProps:(e,o)=>({...Q,direction:"column",gap:60,gapPhone:60,...gf(0,0,1,0),...vt,...Jx(e)?Ns(e,o):{},...Hx(Qx(e),e,o),...ie(e,s5)}),box:[...re.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,t)=>Jx(o)?mn(e,o,t):e],...ge(s5)],skip:e=>Wx(Qx(e)),site:(e,o)=>Jx(e.props)?hn(e,o):[],parts:[Qt("Series"),If("Cards",Ode,Ade,e=>y5(e).map(o=>eg({num:er(o.num),since:er(o.since),title:er(o.title),body:er(o.desc),count:er(o.entries),countLabel:er(o.entriesLabel)})),(e,o)=>({type:Y,props:{..._de,...Ct("background",(t,r)=>Jx(t)&&Mx(t,r))(e,o),name:"Card"},slots:{[De]:[{type:Y,props:{...N,name:"Words",gap:16,gapPhone:16},slots:{[De]:[{type:Y,props:{...i5,name:"Top"},slots:{[De]:[Ze("num",j,U("label",13),!0),Ze("since",j,U("label",13),!0)]}},Ze("title",{...j,tag:"h3"},{textStyle:"heading-3",...U("headingSmall",28),weight:500,case:"upper",lineHeight:1.04,letterSpacing:-.02}),Ze("body",ne,{textStyle:"body-5",fontRole:"heading",...U("body",14),lineHeight:1.6})]}},{type:Y,props:{...i5,name:"Footer",align:"center",gap:0,gapPhone:0,sectionPaddingTop:16,sectionPaddingTopPhone:16,...gf(1,0,0,0),...l5(e)?{}:{[si]:["count","countLabel"]}},slots:{[De]:[{type:Y,props:{...N,name:"Count",direction:"row",align:"center",gap:12,gapPhone:12,share:"content",phoneRow:2,[nk("share")]:"content"},slots:{[De]:[Ze("count",j,rk),Ze("countLabel",ne,rk)]}},...l5(e)?[{type:Y,props:{...N,name:"View",maxWidthPhone:266},slots:{[De]:[{type:"Text",props:{...j,text:sk(e.viewLabel).text,_partStyles:{text:{...ca()._partStyles.text,...rk}}}}]}}]:[]]}}]}}))],reads:{viewLabel:"a Text typed once in the card template: the far end of every card's footer",background:"the Box's theme (the band preset) or its Fill"},drop:{...ee,...se,headPlacement:Pde}},g5={top:60,bottom:60,topPhone:40,bottomPhone:40},Hde={...N,direction:"row",columns:3,gap:40,gapPhone:16},Wde={...N,gap:8,gapPhone:8,...Qo(24),...gf(1,1,1,1)},$de={name:"Document Detail Cards",boxProps:e=>({...Q,direction:"column",gap:40,gapPhone:16,...gf(0,0,1,0),...ie(e,g5)}),box:[...re,...ge(g5)],parts:[If("Cards",Hde,Rde,e=>y5(e).map(o=>eg({label:er(o.label),value:er(o.value),body:er(o.desc)})),(e,o)=>({type:Y,props:{...Wde,...Ct("surface")(e,o),name:"Card"},slots:{[De]:[Ze("label",j,{...U("label",12),lineHeight:1.5},!0),{type:Y,props:{...N,name:"Words",gap:14,gapPhone:14},slots:{[De]:[Ze("value",j,{textStyle:"heading-3",...U("headingSmall",20),weight:500,letterSpacing:-.015,lineHeight:1.5}),Ze("body",ne,{textStyle:"body-5",fontRole:"accent",...U("body",14),italic:!0,lineHeight:1.5})]}}]}}))],drop:{...ee,...se}},T5={Cards:Dde,KeyFeatures:Fde,Series:Mde,DocMetaCards:$de};import{phoneKey as jde}from"efficient-easel/draw";import{newId as Kde}from"efficient-easel/data";import{phoneKey as Ude}from"efficient-easel/draw";import{isNode as yf}from"efficient-easel/data";var Wl="cardStyle";function P5(e){let{widthPhone:o,...t}=e;return e.widthFitPhone==="fixed"?{...t,widthFitPhone:"fill"}:{...e}}var og={table:{items:{gap:0,gapPhone:0,columnsTablet:2},grid:{gap:0},row:{gap:0,[Ude("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}}}},or={table:{...og.table,listCard:P5(og.table.card)},list:{...og.list,listCard:P5(og.list.card)}},m8e=[{label:"Table",value:"table"},{label:"List",value:"list"}],h8e=e=>e==="table"||e==="list",zde=e=>[...new Set([...Object.keys(or.table[e]),...Object.keys(or.list[e])])];function bf(e,o,t){let r={...e};for(let a of zde(o))delete r[a];return{...r,...structuredClone(or[t][o])}}function Gde(e,o,t){let r=e.props??{},a=Array.isArray(r[Ue])?r[Ue]:[],n=a.findIndex(l=>yf(l)&&l.type===t);if(n<0)return e;let s=a[n],i=a.map((l,d)=>d===n?{...s,props:bf(s.props??{},"listCard",o)}:l);return{...e,props:{...r,[Ue]:i}}}function x8e(e,o,t,r){let a=Array.isArray(e[r])?e[r]:[];if(a.some(s=>yf(s)&&s.type===Oo)){let s=a.map(i=>yf(i)&&i.type===Oo?Gde(i,o,t):i);return{...bf(e,"items",o),[Wl]:o,[r]:s}}let n=a.map(s=>{if(!yf(s)||s.type!==t)return s;let i=s.props??{},l=(Array.isArray(i[r])?i[r]:[]).map(d=>yf(d)&&d.type===t?{...d,props:bf(d.props??{},"card",o)}:d);return{...s,props:{...bf(i,"row",o),[r]:l}}});return{...bf(e,"grid",o),[Wl]:o,[r]:n}}var lk=e=>typeof e=="string"?e.trim():"";function E5(e){let o=`${lk(e.prefix)}${lk(e.value)}`,t=lk(e.suffix);return e.emphasizeAll===!0?o?`==_${o}_==`:"":`${o}${t?`==_${t}_==`:""}`}var A5={textStyle:"heading-2",...kt("headingMedium",56,7,96),weight:500,case:"none",lineHeight:.9,letterSpacing:-.04},ck={kind:"block",type:"Text",props:{...Fs,_partStyles:{text:A5}},box:[["value","text",(e,o)=>E5(o)]],when:(e,o)=>o!==void 0&&typeof o.value=="string"&&E5(o)!==""},_5=e=>ro(e?.supSuffix),R5={textStyle:"body-1",fontRole:"heading",...U("body",16),lineHeight:1.5,letterSpacing:-.01},L5={color:"labels",...U("label",12),lineHeight:1.5,letterSpacing:.24},F5={...N,direction:"row",align:"start",gap:32,gapPhone:32,share:"content",phoneRow:2,[jde("share")]:"content"},B5={textStyle:"body-5",...U("label",13),weight:500,color:"accent",letterSpacing:.18,lineHeight:1,padding:12},dk=e=>Vr(e.background,Hs.StatsParagraph),Sf=e=>dk(e)===ot,tg=e=>({...e,sectionAccent:e.sectionAccent??0}),Vde=(e,o)=>Sf(e)?Ct("background",(t,r)=>Mx(tg(t),r))(e,o):{},Yde={name:"Stats with Text",skip:e=>dk(e)&&dk(e)!=="transparent"&&!Sf(e)?"it paints a colour of its own, not the section band":void 0,boxProps:(e,o)=>({...Q,direction:"column",gap:60,gapPhone:60,sectionBorder:{bottom:1},...vt,...Jt(e,"StatsParagraph"),...Sf(e)?Ns(tg(e),o):{}}),box:[...re.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,t)=>Sf(o)?mn(e,tg(o),t):e],...pn("StatsParagraph")],site:(e,o)=>Sf(e.props)?hn({props:tg(e.props)},o):[],parts:[Qt("StatsParagraph"),{kind:"group",name:"Stats",props:{...N,...or.table.grid,[Wl]:"table"},parts:[{kind:"list",key:"stats",name:"Stat",perRow:()=>4,rowName:"Stats row",rowProps:{...N,direction:"row",share:"equal",phoneRow:2,...or.table.row},props:(e,o)=>({...N,...or.table.card,...Vde(e,o)}),parts:[{...ck,when:(e,o)=>!_5(o)&&ck.when(e,o)},{kind:"group",name:"Figure",props:F5,when:(e,o)=>_5(o),parts:[ck,{kind:"text",key:"supSuffix",props:j,style:B5}]},{kind:"group",name:"Words",props:{...N,gap:4,gapPhone:4},parts:[{kind:"text",key:"label",props:j,style:R5},Ie("sub",L5)]}]}]}],drop:{...ee,...se,background:"the band is the Box's theme: the site's band preset (`sectionAccent`), or a declared band-preset write; none paints nothing, and any other colour is skipped",headPlacement:"needs a row per head placement: an own-box Stats with Text draws no head (its words sit in a Section Header above it), the row always draws the head"}},qde=new Set(["value","label",Pt]),O5={top:48,bottom:48,topPhone:48,bottomPhone:48},Xde=e=>{let o=Vr(typeof e.background=="string"?e.background:void 0,Hs.Stats);return!!o&&o!=="transparent"},Zde={name:"Stats",skip:e=>Xde(e)?"it paints a colour inside its padding, and a Box paints its Fill over the padding too":ro(e.dataSource)?"its figures come from a source":Array.isArray(e.items)&&e.items.some(o=>ro(o?.[Pt]))?"a figure names a count, and each figure Text here is typed by hand until it is linked":Array.isArray(e.items)&&e.items.some(o=>Object.keys(o??{}).some(t=>!qde.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,O5)}),box:[...re,...ge(O5)],parts:[Ie("heading",{color:"labels",...U("label",12),letterSpacing:.2}),{kind:"group",name:"Stats",props:{...N,...or.list.grid,[Wl]:"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,...or.list.row},props:{...N,...or.list.card},parts:[{kind:"text",key:"value",props:Fs,style:{textStyle:"heading-2",...U("headingMedium",48,36),weight:500,case:"none",lineHeight:1,letterSpacing:-.03}},Ie("label",{color:"labels",...U("label",12),letterSpacing:.2})]}]}],drop:{...ee,...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"}},N5={StatsParagraph:Yde,Stats:Zde};function D5(){return{eyebrow:c("By the numbers"),title:c("What we count."),desc:c("A few numbers that matter to us."),stats:[],background:"transparent"}}var Jde=[{key:"figure",label:"Figure"},{key:"superscript",label:"Superscript"},{key:"label",label:"Label"},{key:"body",label:"Text",multiline:!0}];function M5(){let e=(o,t,r,a="")=>({key:Kde("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 Qde(e){return{type:Y,props:{...N,name:"Card",...structuredClone(or[e].listCard)},slots:{[De]:[{type:Y,props:{...F5,name:"Figure"},slots:{[De]:[Ze("figure",Fs,A5),Ze("superscript",j,B5)]}},{type:Y,props:{...N,name:"Words",gap:4,gapPhone:4},slots:{[De]:[Ze("label",{...j,widthFit:"fill"},R5),Ze("body",{...j,widthFit:"fill"},L5,!0)]}}]}}}function fk(e,o,t=4){return{type:Y,props:{...N,name:"Stats",direction:"row",columns:t,...structuredClone(or[o].items),[Wl]:o},slots:{[De]:[{type:Oo,props:Vp(e,Jde),slots:{[Ue]:[Qde(o)]}}]}}}var H5={heading:"Ways to pay"},W5=()=>[{label:"Visa"},{label:"Mastercard"},{label:"Amex"},{label:"PayPal"}],$5=()=>[{text:c("Secure encrypted checkout")},{text:c("30-day returns")}],F8e={label:"Payment Methods",drawsPictures:!0,defaultProps:{heading:"",badges:[],assurances:[],contained:!0}};import{hiddenKeyOf as efe}from"efficient-easel/screen/lib/content/view-hide";var rg="Flex",ofe={FooterMenu:"MenuBlock",FooterEmailSignup:"EmailFormBlock",FooterSocial:"SocialLogosBlock"},tfe={FooterPayment:"PaymentLogosBlock"},rfe=e=>{let{id:o,...t}=e;return t},U5=e=>typeof e=="string"?e:"",$l={sm:12,md:13,lg:15},z5={sm:{mark:16,words:$l.sm},md:{mark:20,words:$l.md}},afe="md",G5=1.5,nfe={size:13,lineHeight:G5,width:280},sfe=14,ife=40,lfe=e=>e==="center"||e==="right"?e:"left";function cfe(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 dfe(e,o,t){let r=t(e,rfe(o));if(Array.isArray(o.template))return{...r,props:{...r.props,template:j5(o.template,String(r.props.id))}};if(o.template!==void 0)return r;let a=Wp(e,r.props);return a===r.props?r:{...r,props:a}}function j5(e,o,t={at:0}){return e.map(r=>{let a={...r.props,id:`${o}~t${t.at++}`};for(let n of Br(r))a[n]=j5(a[n],o,t);return{...r,props:a}})}function K5(e,o,t){let r=e.props??{},a=t?.(e,o);if(a)return a;let n=$(ofe,e.type)??$(tfe,e.type);if(n)return[dfe(n,r,o)];switch(e.type){case"FooterLogo":{let s=lfe(r.align),i=o("LogoBlock",{...r.reverse?{reverse:r.reverse}:{},...typeof r.customColor=="string"&&r.customColor?{customColor:r.customColor}:{},heightPx:Math.round(FO*((q(r.widthPct)??100)/100)),href:"/",align:s,...cfe(r)}),l=U5(r.tagline).trim();return l?[i,o("Text",{text:l,tone:"dim",align:s,_partStyles:{text:{...nfe}}})]:[i]}case"FooterText":{let s=typeof r.size=="string"&&He($l,r.size)?r.size:afe;return[o("Text",{text:U5(r.text),tone:typeof r.tone=="string"?r.tone:"default",_partStyles:{text:{size:$l[s],lineHeight:G5}}})]}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?{[efe("mobile")]:!0}:{}})]}case"FooterGroup":{let s=Array.isArray(r.blocks)?r.blocks:[];return[o(rg,{direction:r.direction==="horizontal"?"row":"column",gap:ts("FooterGroup",r.gap),align:r.align==="center"||r.align==="end"||r.align==="stretch"?r.align:"start",...hy,content:s.flatMap(i=>K5(i,o,t))})]}default:return[]}}function wf(e,o,t,r){let a=e&&Array.isArray(e.props?.blocks)?e.props.blocks:[],n=f=>o(rg,{direction:"row",wrap:!0,share:"equal",gap:ife,content:f}),s=[],i=[];for(let f of a){let u=K5(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(rg,{direction:"column",gap:sfe,align:"stretch",...hy,content:u}))}(i.length||!s.length)&&s.push(n(i));let l=o(rg,{direction:"column",content:[o("LegalLineBlock")]}),d=h1(ze,t,[...s,l]);return{...d,props:{...d.props,...e?.props?.width==="full"?{fullWidth:!0}:{}}}}import{phoneKey as uk,readHidable as ffe}from"efficient-easel/draw";var mk={contained:!1},hk=(e,o)=>({logos:[{kind:"list",key:e,name:"Logo",flat:!0,parts:[{kind:"block",type:"LogoBlock",box:["src",[o,"alt"]],when:(t,r)=>ro(r?.src)||ro(r?.[o])}]}]}),pk=e=>{let o=q(e.bandPadding)??40;return{top:o,bottom:o,topPhone:o,bottomPhone:o}},pfe={...Ie("heading",{color:"labels",letterSpacing:.2}),props:{...j,align:"center"}},ufe={name:"Logos",boxProps:e=>({...Q,direction:"column",gap:32,...ie(e,pk(e))}),box:[...re,...ge(pk),["bandPadding","sectionPaddingTop",(e,o)=>ie(o,pk(o)).sectionPaddingTop]],parts:[pfe,{kind:"core",keep:["columns","logoHeight","grayscale"],rename:{logosPerRow:"columns"},props:mk,slots:hk("items","alt")}],drop:{...ee,...se,contained:"the Box draws the site frame now; the Logos block inside it fills the Box's column (`contained: false`)",headPlacement:"a Logos band has no split head (not in SPLITTABLE_SECTIONS): no stored node can hold one, and the converted block stores own-box"}},mfe={kind:"group",name:"Mark",keepEmpty:!0,parts:[],props:YE(4,"main",{sectionCorners:2})},V5={top:24,bottom:24,topPhone:24,bottomPhone:24},hfe={name:"Payment Methods",boxProps:e=>({...Q,direction:"column",...ie(e,V5)}),box:[...re,...ge(V5)],parts:[{kind:"group",name:"Methods",props:{...N,align:"center",gap:20,gapPhone:20,sectionBorder:{top:1,bottom:1},sectionPaddingTop:32,sectionPaddingBottom:32},parts:[{...Ie("heading",{color:"labels"}),props:{...j,align:"center"}},{kind:"core",keep:[],as:"Logos",derive:{reads:[_o,aa],props:e=>ro(e[_o])?{[_o]:e[_o],...e[aa]!==void 0?{[aa]:e[aa]}:{}}:{}},props:{...mk,look:"cards",grayscale:!1},slots:e=>({...hk("badges","label"),...ro(e[_o])?{[Ue]:[Py()]}:{}})},{kind:"group",name:"Reassurance",props:{...N,direction:"row",wrap:!0,justify:"center",gap:24,gapPhone:24,phoneRow:2,[uk("share")]:"content"},parts:[{kind:"list",key:"assurances",name:"Line",of:e=>(Array.isArray(e.assurances)?e.assurances:[]).filter(o=>ro(o?.text)),props:{...N,direction:"row",align:"center",gap:8,gapPhone:8,phoneRow:2,[uk("share")]:"content"},item:e=>ffe(e.text).hidden?{props:{_hidden:!0}}:{},parts:[mfe,{kind:"text",key:"text",props:{...j,align:"center"},style:{...U("label",13),color:"labels",lineHeight:1.5}}]}]}]}],drop:{...ee,...se,contained:"the Box draws the site frame now; the Logos block inside it fills the Box's column (`contained: false`)"}},Y5=e=>BE(e.align)??"left",q5=e=>e.size==="md"?"md":"sm",X5=12,Z5={name:"Payment logos",boxProps:e=>({...N,direction:"row",wrap:!0,align:"center",justify:Ap[Y5(e)],gap:X5,gapPhone:X5,phoneRow:2,[uk("share")]:"content"}),box:[...Ga],parts:[{kind:"text",key:"lead",props:ne,styleFrom:e=>({size:$l[q5(e)],lineHeight:1.5})},{kind:"core",keep:[],as:"Logos",derive:{reads:[_o,aa],props:e=>({logoHeight:z5[q5(e)].mark,align:Y5(e),...ro(e[_o])?{[_o]:e[_o],...e[aa]!==void 0?{[aa]:e[aa]}:{}}:{}})},props:{...mk,look:"marks",grayscale:!1,sectionAccent:Hr},slots:e=>({...hk("methods","label"),...ro(e[_o])?{[Ue]:[Py()]}:{}})}],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"}},J5={Logos:ufe,PaymentBadges:hfe,FooterPayment:Z5,PaymentLogosBlock:Z5},Q5=()=>({heading:tH.heading,items:xx()}),e3=()=>({heading:H5.heading,badges:W5(),assurances:$5()}),o3=()=>({...gm,methods:[]});import{mixHex as bfe}from"efficient-shell/format";import{MOTION_EASING as xfe,MOTION_TIMING as t3,motionSeconds as r3}from"efficient-shell/format";var xk="none",ag=[{label:"None",value:"none"},{label:"Marquee",value:"scroll"}];function dVe(e){return xo(ag,xk,e)}var Ul="_gLoop",Cf={field:"loop",is:"scroll"},vf="left",gk=[{label:"Left",value:"left",cell:"left"},{label:"Right",value:"right",cell:"right"},{label:"Up",value:"up",cell:"top"},{label:"Down",value:"down",cell:"bottom"}],gfe={left:"storefront-ticker",right:"storefront-ticker-right",up:"storefront-ticker-up",down:"storefront-ticker-down"};function a3(e){return xo(gk,vf,e)}function n3(e){return e==="up"||e==="down"}function ng(e){return r3("loop","duration",e.loopDuration!=null?e.loopDuration:e.speed)}var fVe=t3.loop.duration.default,Ife=t3.loop.delay.default;function s3(e){return r3("loop","delay",e.loopDelay)}function pVe(e,o,t=Ife){return`${gfe[e]} ${o}s ${xfe.loop}${t?` ${t}s`:""} infinite`}var sg="_gEntrance";var xVe="none",gVe=[{label:"Nothing",value:"none"},{label:"Section above",value:"above"},{label:"Section below",value:"below"}];function ig(e){return e==="above"||e==="below"?e:null}var i3="sf-ticker-join";function yfe(e){return e==="above"?"sf-ticker-join-above":"sf-ticker-join-below"}function l3(e){return`absolute inset-x-0 ${yfe(e)}`}var Ws={direction:"row",share:"content",align:"center"},kf={top:14,bottom:14,topPhone:12,bottomPhone:12},lg={wrap:"nowrap",loop:"scroll",sectionAccent:rO,gap:60,gapPhone:32,separator:"dot",sectionBorder:{top:1,bottom:1}},c3={gap:120,gapPhone:64},cg={...ht,sizeToken:{step:"label",px:14,pxPhone:12},letterSpacing:.25,lineHeight:1.5},d3={textStyle:"heading-3",letterSpacing:.005,case:"upper",lineHeight:1},Tf={top:16,bottom:16,topPhone:12,bottomPhone:12},Pf={justify:"between",wrap:"wrap",gap:32,separator:"none"},Ef={...ht,letterSpacing:.1,lineHeight:1.5};var f3=e=>e.size==="display",Sfe=(e,o)=>{let t=Dx(e,o),r=e.tone!=="plain"&&t?.text&&t.background?bfe(t.text,t.background,.3):null;return r?{color:r}:{}},wfe=(e,o)=>e.tone!=="plain"&&Wr(e.sectionAccent)===null?Ct("background")(e,o):{},p3=(e,o)=>({kind:"list",key:"items",name:"Item",flat:!0,when:o,parts:[{kind:"text",key:"text",props:ne,style:e,styleFrom:Sfe}]}),Cfe={name:"Scrolling Bar",boxProps:(e,o)=>({...Q,...Ws,...lg,...ME[my(e.separator)]===""?c3:{},...ie(e,kf),...wfe(e,o)}),box:[["scrollDirection","scrollDirection",e=>a3(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=>my(e)],["join","join",e=>ig(e)??void 0],["borders","sectionBorder",e=>e===!1?void 0:{top:1,bottom:1}],...re,["tone","sectionAccent",(e,o)=>Wr(o.sectionAccent)??Hr],...ge(kf)],parts:[p3(cg,e=>!f3(e)),p3(d3,f3)],drop:{...ee,...se,size:"each item's Text style: Small \u2192 Body 5, Display \u2192 Heading 3"}},u3=e=>e?.tone==="muted",m3=e=>Xp(Os(e)),vfe={name:"Spec Strip",boxProps:(e,o)=>({...Q,...Ws,...Pf,...e.fill==="none"?{sectionBorder:{top:1}}:{sectionAccent:m3(o)},...ie(e,Tf)}),box:[...re.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,t)=>o.fill==="none"?e:m3(t)],...ge(Tf)],parts:[{kind:"list",key:"cells",name:"Cell",flat:!0,parts:[{kind:"text",key:"text",props:j,style:Ef,when:(e,o)=>!u3(o)},{kind:"text",key:"text",props:ne,style:Ef,when:(e,o)=>u3(o)}]}],drop:{...ee,...se,fill:"None \u2192 no fill and a line on top. Dark band (the default) \u2192 the Box's theme is the site's first dark preset that is not its page (lib/theme `darkBandIndex`; Theme 2 with no site theme): the old fixed `plate-band` colour, as a theme"}},h3={Ticker:Cfe,SpecStrip:vfe};import{tabletKey as x3}from"efficient-easel/screen/lib/content/view-tiers";var g3={direction:"column",justify:"between",gap:14,gapPhone:14,sectionPaddingLeft:14,sectionPaddingRight:14,[x3("sectionPaddingLeft")]:0,sectionPaddingLeftPhone:0,sectionHeightMode:"fixed",sectionHeightValue:280,sectionHeightUnit:"px",[x3("sectionHeightMode")]:"auto",sectionHeightModePhone:"auto"},Ik={name:"Year and title",direction:"column",gap:14,gapPhone:14};import{tabletKey as kfe}from"efficient-easel/draw";var fo={text:"Button label",href:"#"},kr=e=>e.replace(/\*([^*]+)\*/g,"==$1=="),Ye={eyebrow:"Eyebrow",heading:"Main heading",accent:"Highlight line",body:"Add a sentence or two of supporting copy.",button:"Button label",link:"#",sectionHeading:"Section heading",slideName:"Slide name",boxName:"Box name",headingAccent:"Section heading *here.*",sectionNumber:"Section number",imageCaption:"Image caption",bookingConfirmation:"Thanks \u2014 we'll email you to confirm.",imageMeta:"Image meta",label:"Label",value:"Value",viewAll:"View all",date:"Month DD, YYYY",category:"Category"};var dg={eyebrow:Ye.eyebrow,title:`Section heading
324
+ *Highlight line*`,intro:Ye.body,imageCaption:Ye.imageCaption,imageMeta:Ye.imageMeta,cta:fo.text},I3=()=>[{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.")}],DVe={label:"Story Timeline",drawsPictures:!0,defaultProps:{layout:"split",eyebrow:"",title:"",intro:"",imageSrc:"",imageCaption:"",imageMeta:"",ctaText:"",ctaHref:"",entries:[],padTop:120,padBottom:120}};var fg={eyebrow:Ye.eyebrow,title:Ye.headingAccent,intro:Ye.body,cta:fo.text},y3=()=>[{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}],UVe={label:"Milestone Timeline",defaultProps:{eyebrow:"",title:"",intro:"",entries:[],ctaText:"",ctaHref:"",background:cd,padTop:120,padBottom:120}};var k3={buttonBorder:{width:0}},mg=(e,o,t={})=>({textStyle:"body-5",...U("label",e),letterSpacing:o,lineHeight:1.5,weight:400,...t}),zl=(e,o,t={})=>({...mg(e,o),...ht,...t}),hg=(e,o,t)=>({...e,case:"upper",weight:500,letterSpacing:o,lineHeight:t}),_f=(e,o,t={})=>({textStyle:"body-1",fontRole:"heading",...e,weight:400,case:"none",lineHeight:o,...t}),tr=(e,o,t={})=>({kind:"text",key:e,props:j,style:o,...t}),b3=(e,o)=>o?.future===!0,pg=e=>w2(typeof e?.body=="string"?e.body:""),Ck=e=>Vr(typeof e.background=="string"?e.background:void 0,Hs.TimelineTrack),yk=e=>Ck(e)===ot?e:{...e,background:"transparent"},Tfe={name:"Milestone Timeline",skip:e=>Wx(Ck(e)),boxProps:(e,o)=>{let t=un(yk(e),o);return{...Q,direction:"column",gap:60,[kfe("gap")]:36,gapPhone:36,sectionBorder:{bottom:1},...vt,...Jt(e,"TimelineTrack"),...Hx(Ck(e),e,o),...t>=0?{sectionAccent:t}:{}}},box:[...re.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,t)=>mn(e,yk(o),t)],...pn("TimelineTrack")],parts:[ok(Xx(Vx("eyebrow","title","intro"),["intro"])),{kind:"group",name:"Track",props:{...N,gap:48,gapPhone:48},parts:[{kind:"group",name:"Years",props:{...N,direction:"row",share:"equal",gap:0,line:!0,...vt},parts:[{kind:"list",key:"entries",name:"Year",props:{...N,...g3},item:e=>({props:e.future===!0?{upcoming:!0}:{}}),parts:[{kind:"group",name:Ik.name,props:{...N,...Ik},parts:[tr("date",mg(13,.22,{color:"accent"}),{when:(e,o)=>!b3(e,o)}),tr("date",mg(13,.22,{color:"labels"}),{when:b3}),tr("title",{textStyle:"heading-3",...hg(U("headingSmall",20),-.02,1.1)},{role:"heading"})]},tr("blurb",_f(U("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:{...Lo,align:"right",...k3},style:zl(13,.3)}]}]}],site:(e,o)=>hn({props:yk(e.props)},o),drop:{...ee,...se,background:"another colour is the Box's Fill, or a skip if no Fill holds it; the band is the Box's theme: the site's band preset (`sectionAccent`), or a declared band-preset write (`lib/theme` `bandPresetIndex`)",headPlacement:"needs a row per head placement: an own-box Milestone Timeline draws no head (its words sit in a Section Header above it), the row always draws the head"}},kk=e=>typeof e.layout=="string"?e.layout:"split",ug=e=>kk(e)==="split",vk=e=>!ug(e),T3=e=>kk(e)==="spine",Pfe=e=>vk(e)&&!T3(e),S3=(e,o,t,r)=>({kind:"group",name:"Picture",keepEmpty:!0,box:[["imageSrc","bgImage"]],props:{...N,sectionBorder:{top:1,right:1,bottom:1,left:1},darken:75,darkenStyle:"bottom",placement:"bottom-center",sectionHeightMode:"fixed",sectionHeightValue:e,sectionHeightUnit:"px",sectionHeightModePhone:"fixed",sectionHeightValuePhone:o,sectionHeightUnitPhone:"px",...Qo(12,16),...t},when:a=>r(a)&&typeof a.imageSrc=="string"&&a.imageSrc.trim()!=="",parts:[{kind:"group",name:"Caption",props:{...N,direction:"row",justify:"between",align:"center",gap:12,gapPhone:12,share:"content",phoneRow:2},parts:[tr("imageCaption",zl(11,.24,{color:"text"})),tr("imageMeta",zl(11,.24,{color:"accent"}),{props:{...j,align:"right"}})]}]}),w3=(e={})=>({kind:"button",key:"ctaText",href:"ctaHref",variant:"ghost",props:{...Lo,...e,...k3},style:zl(13,.3)}),bk=()=>[tr("title",{textStyle:"heading-3",...hg(U("headingSmall",24,20),-.02,1.5)},{role:"heading",mark:"accentItalic"}),{kind:"block",type:"Text",props:{...j,_partStyles:{text:_f(U("body",17,16),1.6)}},box:[["body","text",(e,o)=>yc(pg(o)[0]??"")]],when:(e,o)=>pg(o).length>0},{kind:"block",type:"Text",props:{...ne,_partStyles:{text:_f(U("body",17,16),1.6,{paragraphSpacing:14})}},box:[["body","text",(e,o)=>yc(pg(o).slice(1).join(`
325
+
326
+ `))]],when:(e,o)=>pg(o).length>1}],Sk=()=>tr("date",mg(13,.24,{color:"accent"})),wk=(e,o,t={})=>tr(e,o,{...t,props:{...j,...t.props??{},align:"center"}}),C3=kt("headingMedium",40,5,76),v3={sectionBorder:{bottom:1}},Efe={name:"Story Timeline",skip:e=>kk(e)==="track"?'display "track": not converted (it draws the Milestone rail; a Track story is not stored anywhere)':void 0,boxProps:e=>ug(e)?{...Q,direction:"row",share:[40],gap:80,gapPhone:48,align:"start",...v3,...Jt(e,"Timeline")}:{...Q,direction:"column",gap:48,gapPhone:48,align:"center",...v3,...Jt(e,"Timeline")},box:[...re,...pn("Timeline")],parts:[{kind:"group",name:"Heading",props:{...N,gap:24,gapPhone:24},when:ug,parts:[tr("eyebrow",zl(12,.3,{color:"accent"}),{role:"eyebrow"}),tr("title",{textStyle:"heading-2",...hg(C3,-.03,.94)},{role:"heading",mark:"accentItalic"}),tr("intro",_f(U("body",14),1.6),{props:{...ne,maxWidth:360},mark:"accentItalic"}),S3(667,419,{},()=>!0),w3()]},{kind:"group",name:"Chapters",props:{...N,gap:48,gapPhone:48,line:!1},when:ug,parts:[{kind:"list",key:"entries",name:"Chapter",props:{...N,direction:"row",gap:24,gapPhone:8,share:[12],align:"start"},parts:[Sk(),{kind:"group",name:"Words",props:{...N,gap:14,gapPhone:14},parts:bk()}]}]},{kind:"group",name:"Heading",props:{...N,gap:24,gapPhone:24,align:"center",maxWidth:760,widthFit:"fill"},when:vk,parts:[wk("eyebrow",zl(12,.3,{color:"accent"}),{role:"eyebrow"}),wk("title",{textStyle:"heading-2",...hg(C3,-.03,.94)},{role:"heading",mark:"accentItalic"}),wk("intro",_f(U("body",14),1.6),{props:{...ne,maxWidth:520},mark:"accentItalic"}),w3({align:"center"})]},S3(506,192,{maxWidth:900,widthFit:"fill"},vk),{kind:"group",name:"Chapters",props:{...N,gap:48,gapPhone:48,line:!0,maxWidth:760,widthFit:"fill",sectionPaddingTop:16},when:T3,parts:[{kind:"list",key:"entries",name:"Chapter",props:{...N,gap:8,gapPhone:8},parts:[Sk(),{kind:"group",name:"Words",props:{...N,gap:14,gapPhone:14},parts:bk()}]}]},{kind:"group",name:"Chapters",props:{...N,gap:56,gapPhone:56,maxWidth:1e3,widthFit:"fill",sectionPaddingTop:16,mirrorCards:"even"},when:Pfe,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:[Sk(),{kind:"group",name:"Words",props:{...N,gap:14,gapPhone:14},parts:bk()}]},{kind:"group",name:"Spacer",props:{...N},keepEmpty:!0,parts:[]}]}]}],drop:{...ee,...se,layout:"the Box's own arrangement replaces it: Split a row of two Boxes; Spine and Alternating a centred column (Track is skipped)"}},P3=()=>({eyebrow:dg.eyebrow,title:kr(dg.title),intro:dg.intro,ctaText:fo.text,ctaHref:fo.href,entries:I3()}),E3=()=>({eyebrow:fg.eyebrow,title:kr(fg.title),intro:fg.intro,ctaText:fo.text,ctaHref:fo.href,entries:y3()}),_3={TimelineTrack:Tfe,Timeline:Efe};import{tabletKey as Lfe}from"efficient-easel/draw";import{rootIsDark as _fe}from"efficient-shell/format";function a7e(e="auto"){return e==="light"?!0:e==="dark"?!1:!_fe({whenUnset:!0})}function O3(e,o){return Number.isFinite(e)&&Number.isFinite(o)&&!(e===0&&o===0)}function Tk(e){let o=Number.parseFloat(e??"");return Number.isFinite(o)?o:0}var Ofe=["tall","square","wide"],Afe="tall";function A3(e){return Ofe.includes(String(e??""))?String(e):Afe}var i7e={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"},l7e=[{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:""}],Rfe=/^https?:\/\//i;function c7e(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:Tk(e.lat),lng:Tk(e.lng),mapsUrl:Rfe.test(o)?o:""}}function Pk(e){let o=String(e??"").split(" \xB7 ");return{state:(o[0]??"").trim(),country:(o[1]??"").trim()}}var d7e="other",f7e={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 R3(e){let o=String(e??"").replace(/[^+\d]/g,"");return o?`tel:${o}`:void 0}var rr=e=>typeof e=="string"?e:e==null?"":String(e),_k=e=>Array.isArray(e.locations)?e.locations.map(o=>o??{}):[],Gl=e=>rr(e.group),$3=e=>`loc-${e}`,U3=e=>rr(e.state).trim()||Pk(rr(e.region)).state,z3=e=>rr(e.country).trim()||Pk(rr(e.region)).country,L3=e=>[U3(e),z3(e)].filter(Boolean).join(" \xB7 "),Ffe=e=>_k(e).some(o=>rr(o.photo).trim()!==""),Bfe=e=>_k(e).some(o=>O3(Number(o.lat),Number(o.lng))),Nfe=(e,o)=>_k(e).filter(t=>Gl(t)===Gl(o)).length,Dfe=(e,o)=>Nfe(e,o)===1?"wide":A3(e.imageShape),Ek={top:100,bottom:100,topPhone:60,bottomPhone:60},F3=48,Tr=(e,o={})=>({...fr(e),...o}),Ok={top:1,right:1,bottom:1,left:1},Ak={...N,direction:"row",share:"equal",gap:0},Mfe=e=>o=>o>cf(o)?{...N,gap:0}:{...Ak,...o>1?{phoneRow:e}:{}},Rk=!0,Hfe={kind:"group",name:"Gallery",props:{...N,gap:20,...Rk?{_hidden:!0}:{}},when:Ffe,parts:[{kind:"group",name:"Gallery head",props:{...N,direction:"row",justify:"between",align:"end",gap:24,share:"content",sectionBorder:{bottom:1},sectionPaddingBottom:16},parts:[Ie("galleryKicker",Tr(12,{color:"accent",letterSpacing:.3})),{kind:"text",key:"galleryHint",props:{...ne,align:"right",alignPhone:"left"},style:Tr(11,{letterSpacing:.22,alignPhone:"left"})}]},{kind:"group",name:"Groups",props:{...N,gap:24},parts:[{kind:"list",key:"locations",name:"City picture",props:{...N,darken:85,darkenStyle:"bottom",placement:"bottom-left",sectionBorder:Ok,...Qo(12,12)},item:(e,o,t)=>({props:{...rr(e.photo).trim()?{bgImage:rr(e.photo),hover:"mono"}:{},link:`#${$3(o)}`,boxShape:Dfe(t,e)}}),parts:[{kind:"text",key:"name",props:j,style:Tr(11,{letterSpacing:.22,color:"text"})}],groups:{of:Gl,name:"Group",props:{...N,gap:10},head:e=>({label:Gl(e[0]??{})}),parts:[Ie("label",Tr(11,{color:"accent",letterSpacing:.3}))],itemsName:"Cities",itemsProps:Mfe(2),perRow:cf,rowName:"Row",rowProps:{...Ak,phoneRow:2}}}]}]},Wfe={kind:"group",name:"Words",props:{...N,gap:12,gapPhone:12,...Qo(28,28),sectionHeightMode:"fixed",sectionHeightValue:280,sectionHeightUnit:"px",sectionHeightModePhone:"auto"},parts:[{kind:"group",name:"Name row",props:{...N,direction:"row",justify:"between",align:"start",gap:14,share:"content",phoneRow:2,sharePhone:"content",wrapPhone:"wrap",sectionPaddingBottom:6,sectionPaddingBottomPhone:6},parts:[{kind:"group",name:"Name",props:{...N,gap:6,gapPhone:6},parts:[{kind:"text",key:"name",role:"heading",props:j,style:{textStyle:"heading-3",...U("headingSmall",30),case:"upper",weight:500,lineHeight:1,letterSpacing:-.02}},{kind:"block",type:"Text",props:{...j,_partStyles:{text:Tr(12,{color:"accent",letterSpacing:.24,lineHeight:1.5})}},box:["region","state","country"].map(e=>[e,"text",(o,t)=>L3(t)]),when:(e,o)=>L3(o??{})!==""}]},{kind:"group",name:"Time zone",props:{...N,sectionBorder:Ok,...Qo(6,10)},parts:[{kind:"text",key:"timezone",props:{...ne,textFit:"line"},style:Tr(12,{letterSpacing:.22,lineHeight:1.5})}]}]},{kind:"text",key:"address",props:ne,style:{textStyle:"body-5",fontRole:"heading",...U("body",14),lineHeight:1.5}},{kind:"block",type:"ButtonBlock",props:{...Lo,...Bs,variant:"ghost",arrow:!1,_partStyles:{label:Tr(13,{letterSpacing:.18,color:"text",lineHeight:24/13})}},box:[["phone","label"],["phone","href",e=>R3(rr(e))??"#"]],when:(e,o)=>rr(o?.phone).trim()!==""},{kind:"text",key:"hours",props:ne,style:Tr(12,{letterSpacing:.18,lineHeight:1.7})}]},$fe={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)=>U3(t)]),...["region","country"].map(e=>[e,"country",(o,t)=>z3(t)])]},Ufe={kind:"group",name:"Map",props:{...N,sectionBorder:{top:1,right:0,bottom:0,left:0}},parts:[$fe]},zfe={kind:"list",key:"locations",name:"City",props:(e,o)=>({...N,gap:0,justify:"between",sectionBorder:Ok,jumpHighlight:!0,sectionAccent:un(e,o)>=0?Fl(e.sectionAccent,o):-1}),item:(e,o)=>({props:{anchor:$3(o)}}),parts:[Wfe,Ufe],groups:{of:Gl,name:"Group",props:{...N,gap:20},head:e=>{let o=e[0]??{};return{key:Gl(o),groupName:rr(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)=>rr(o?.key).trim()!=="",parts:[Ie("key",Tr(13,{color:"accent",letterSpacing:.3})),{kind:"text",key:"groupName",role:"heading",props:j,style:{textStyle:"heading-3",...U("headingSmall",24),case:"upper",weight:500,letterSpacing:-.01}},{kind:"text",key:"count",props:ne,style:Tr(12,{letterSpacing:.22})}]}],itemsName:"Cities",itemsProps:e=>({...Ak,columns:cf(e),[Lfe("columns")]:1})}},B3=Tr(10,{letterSpacing:.25}),Gfe={kind:"block",type:Jr,props:{...N,name:"Credit",direction:"row",justify:"end",align:"center",gap:6,share:"content",wrap:!0},when:Bfe,slot:Qr,keepEmpty:!0,parts:[{kind:"block",type:"Text",props:{...ne,text:"Location coordinates \xA9",_partStyles:{text:B3}}},{kind:"block",type:"ButtonBlock",props:{...Lo,...Bs,variant:"ghost",arrow:!1,label:"OpenStreetMap contributors",href:"https://www.openstreetmap.org/copyright",_partStyles:{label:{...B3,color:"labels"}}}}]},N3=(e,o)=>Object.fromEntries(o.filter(t=>e[t]!==void 0).map(t=>[t,e[t]])),D3=["sectionPaddingTop","sectionPaddingTopTablet","sectionPaddingTopPhone"],M3=["sectionPaddingBottom","sectionPaddingBottomTablet","sectionPaddingBottomPhone"],H3=e=>e.map(o=>[o,o,(t,r)=>ie(r,Ek)[o]]),W3=["sectionAccent","sectionAccent",mn],jfe=[...Ga,...Hi,...Object.values(Fe)],Kfe={name:"City pictures",skip:e=>eo(e)?`fed by the data source "${eo(e)}": its cities are read as the page is served, not stored on the node`:void 0,boxProps:(e,o)=>({...Q,direction:"column",gap:40,anchor:"studios",...vt,...N3(ie(e,Ek),D3),sectionPaddingBottom:F3,sectionPaddingBottomPhone:F3,...Ns(e,o)}),box:[...re.filter(e=>e!=="sectionAccent"&&e!=="anchor"),W3,["anchor","anchor",e=>Gc(e).trim()?e:"studios"],...H3(D3)],parts:[Vx("sectionNumber","heading","tagline"),Hfe],also:[{name:"City maps",boxProps:(e,o)=>({...Q,direction:"column",gap:40,sectionBorder:{bottom:1},...vt,sectionPaddingTop:0,sectionPaddingTopPhone:0,...N3(ie(e,Ek),M3),...Ns(e,o)}),box:[...jfe,W3,...H3(M3)],parts:[zfe,Gfe]}],reads:{mapTheme:"City maps Box: each Map block's Map theme",imageShape:"City pictures Box: each picture Box's Box shape"},site:hn,drop:{...ee,...se,apiKey:"a stored Google Maps key from before the map needed none: the website's one map (components/SiteMap) takes no key, and a key is a credential, never page content",mapId:"a Google Maps style id from the same retired map: nothing in src/ reads it",gallery:"the retired separate tile list: the wall is derived from the cities (`components/ContactLocations`), nothing in src/ reads it",dataSource:"always empty here: a node fed by a source is skipped (see skip)"}},G3={ContactLocations:Kfe};import{SITE_SIDE as j3,sideLengthAt as Vfe}from"efficient-easel/screen/lib/content/length-units";import{viewKeyAt as Lk}from"efficient-easel/draw";var Yfe=["FAQ","Footprint","LongRead","ProcessSteps","RelatedProducts"];var xn=(e,o)=>()=>({top:e,topPhone:o}),K3=e=>o=>{let t=bl(e),r={...o,[jr.top]:ad(o,t).top},a=l=>{let d=Vfe(r,jr,es,l,"top");return d?.unit==="px"?d.value:void 0},n=l=>q(o[Lk(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}:{}}},qfe={Collections:xn(120,70),Events:xn(120,70),FAQ:xn(120,70),GalleryB:xn(120,70),FitmentTable:xn(120,80),SpecTable:xn(120,80),LongRead:xn(120,80),RelatedProducts:xn(0,0),Footprint:K3("Footprint"),ProcessSteps:K3("ProcessSteps"),ProductGrid:e=>({top:q(e.padTop)??120,topPhone:0})};function Xfe(e,o={}){let t=$(pr,e),r=$(qfe,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=Qt(e),s=Zx(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:$(_n,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=Ms(e)==="editorial"?vt:{};return{...Q,direction:"column",gap:xf[Ms(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&&LM.has(e)?{[Lk(a,"tablet")]:0,[Lk(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 Zfe={...N,direction:"accordion",rowStyle:"numbered"},Jfe={sectionPaddingLeft:j3,sectionPaddingRight:j3},Qfe={Footprint:{slots:{[Ue]:[s_()]},pressHeading:!0},ProcessSteps:{slots:(e,o)=>o.press?{[xc]:m4().map(t=>({...t,props:{...t.props,...Jfe}}))}:{},boxProps:{gapPhone:xf.editorial}},FAQ:{slots:{[Ue]:[n_()]},pressHeading:!0,coreBox:{name:"Questions",props:Zfe},coreProps:{sectionAccent:Hr},roomBelow:{bottom:120,bottomPhone:70},boxProps:(e,o)=>o.press?{}:{[EM]:ys},skip:e=>{let o=e._partStyles??{},t=a_().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}}},V3=Object.fromEntries(Yfe.map(e=>[e,Xfe(e,$(Qfe,e))]));import{BLOCK_WIDTH_LIMIT as epe}from"efficient-easel/draw";var xg={eyebrow:Ye.eyebrow,title:Ye.headingAccent,deck:"Add a sentence or two introducing this document."},Y7e={label:"Document masthead",defaultProps:{eyebrow:"",title:"",deck:"",meta:[]}};var oW={minWidth:epe.min},Y3=(e,o,t)=>({...Ie(e,{...o,...pf}),props:{...j,align:"right",...Ls,...t}}),tW={top:1,bottom:0},Bk=(e,o,t,r)=>({kind:"group",name:e,props:{...N,sectionPaddingBottom:o,sectionPaddingBottomPhone:t},parts:[r]}),q3={widthFit:"fill",...oW},X3={top:100,bottom:60,topPhone:60,bottomPhone:40},ope={...U("label",13),letterSpacing:.22,lineHeight:1.8},Z3={textStyle:"heading-1",...kt("headingLarge",56,8,128),case:"upper",weight:500,lineHeight:.88,letterSpacing:-.04},tpe=()=>({name:"Page Header",boxProps:e=>({...Q,direction:"column",gap:0,sectionBorder:{bottom:1},...ie(e,X3)}),box:[...re,...ge(X3)],parts:[{kind:"group",name:"Header",props:{...N,direction:"row",align:"end",justify:"between",gap:40,gapPhone:16,share:"content",sectionPaddingBottom:32},parts:[Bk("Eyebrow",12,0,{...Ie("eyebrow",U("label",13)),props:{...j,...Ls}}),{kind:"text",key:"title",role:"heading",props:{...j,tag:"h1",...q3},style:Z3,mark:"accentItalic",when:e=>!Ev(e)},{kind:"text",key:"title",role:"heading",props:{...j,tag:"h2",...q3},style:Z3,mark:"accentItalic",when:Ev},{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:[uf("label","value",ope,Ls)]}]}]},{kind:"group",name:"Deck",props:{...N,maxWidth:760,sectionBorder:tW,sectionPaddingTop:28},parts:[{kind:"text",key:"deck",props:ne,style:{textStyle:"body-1",fontRole:"accent",...U("body",22,19),italic:!0,lineHeight:1.5}}]}],drop:{...ee,...se,[yx]:"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"}}),rW=()=>({eyebrow:xg.eyebrow,title:kr(xg.title),deck:xg.deck,meta:[{label:Ye.label,value:Ye.value},{label:Ye.label,value:Ye.value}]}),J3={top:80,bottom:40,topPhone:60,bottomPhone:32},rpe={...U("label",13),letterSpacing:.18,lineHeight:1.8},Q3={...U("label",13),letterSpacing:.22,lineHeight:1.9},ape=()=>({name:"Issue Header",boxProps:e=>({...Q,direction:"column",gap:0,sectionBorder:{bottom:1},...ie(e,J3)}),box:[...re,...ge(J3)],parts:[{kind:"group",name:"Top",props:{...N,direction:"row",align:"end",justify:"between",gap:60,gapPhone:16,share:"content",sectionPaddingBottom:32},parts:[Bk("Eyebrow",14,14,Ie("eyebrow",U("label",14))),{kind:"group",name:"Issue",props:{...N,align:"end",gap:0,gapPhone:0,sectionPaddingBottom:14},parts:[{kind:"list",key:"issueMeta",name:"Issue line",flat:!0,parts:[uf("lead","rest",rpe)]}]}]},{kind:"group",name:"Bottom",props:{...N,direction:"row",align:"start",justify:"between",gap:60,gapPhone:16,share:"content",sectionBorder:tW,sectionPaddingTop:32},parts:[{kind:"text",key:"lead",props:{...j,maxWidth:720,...oW},style:{textStyle:"body-1",fontRole:"heading3",...U("headingSmall",20),lineHeight:1.5,letterSpacing:-.005,paragraphSpacing:16}},{kind:"group",name:"In this issue",props:{...N,align:"stretch",gap:0},parts:[Bk("Heading",6,6,{kind:"text",key:"issueHeading",props:{...j,align:"right",...Ls},style:{textStyle:"body-1",fontRole:"heading",...U("body",18),weight:400,letterSpacing:-.01,lineHeight:1.9,...pf}}),{kind:"group",name:"Lines",props:{...N,align:"stretch",gap:0},parts:[{kind:"list",key:"issueList",name:"Line",flat:!0,parts:[Y3("text",{color:"labels",...Q3})]}]},Y3("issueTotal",Q3)]}]}],drop:{...ee,...se}}),eW={top:24,bottom:24,topPhone:16,bottomPhone:16},Fk={color:"labels",...U("label",13),letterSpacing:.2},aW=e=>(Array.isArray(e.items)?e.items:[]).filter(o=>o&&typeof o.label=="string"&&o.label.trim()!==""),Nk=(e,o)=>o!==void 0&&aW(e).at(-1)===o,nW=(e,o)=>o!==void 0&&aW(e).includes(o),npe=(e,o)=>nW(e,o)&&!Nk(e,o)&&ro(o?.href),spe=()=>({name:"Breadcrumb",skip:e=>ro(e.meta)?'a trailing note after "\xB7" needs a second mark; none live':void 0,boxProps:e=>({...Q,...Ws,wrap:"wrap",gap:16,gapPhone:16,separator:"slash",sectionBorder:{bottom:1},...ie(e,eW)}),box:[...re,...ge(eW)],parts:[{kind:"list",key:"items",name:"Crumb",flat:!0,parts:[{kind:"button",key:"label",href:"href",variant:"ghost",when:npe,props:{...Lo,...Bs,icon:"none"},style:Fk},{...Ie("label",Fk),when:(e,o)=>nW(e,o)&&!Nk(e,o)&&!ro(o?.href)},{...Ie("label",{...Fk,color:"text"}),when:Nk}]}],drop:{...ee,...se,meta:"a node that stores a note is skipped (`skip`); an empty one draws nothing"}}),sW={DocMasthead:tpe(),Masthead:ape(),Breadcrumb:spe()};import{BLOCK_WIDTH_LIMIT as lpe,hiddenKeyOf as cpe}from"efficient-easel/draw";import{readHidable as Dk}from"efficient-easel/draw";function ipe(e,o,t){return e||(t?.isEditing?c(o):void 0)}function lYe(e,o,t){let r=Array.isArray(e)?e:[];return r.length?r:t?.isEditing?o:[]}function iW(e,o,t){let r=Dk(e);if(!r.hidden)return ipe(r.text,o,t)}function lW(e){if(e==null)return;let o=Dk(e);return o.hidden?"":o.text}function cYe(e,o,t){return Dk(e).hidden?"":iW(e,o,t)}function dYe(e,o,t){return{text:iW(e,fo.text,t),href:o||fo.href}}var pW="MenuBlock",Mk=e=>(Array.isArray(e)?e:[]).filter(o=>o&&ro(o.label)),cW=e=>{let[o,t]=[e.metaLabel,e.metaValue].map(a=>(lW(a)??"").trim());if(!t)return o;let r=t.includes("==")?t:`==${t}==`;return o?`${o} ${r}`:r},dW={top:0,bottom:0,topPhone:0,bottomPhone:0},dpe={...ht,color:"labels",...U("label",12),letterSpacing:.24},fpe={kind:"group",name:"Note",props:{...N,justify:"center",sectionBorder:{top:0,right:0,bottom:0,left:1},sectionPaddingLeft:28,[cpe("mobile")]:!0},parts:[{kind:"block",type:"Text",when:e=>cW(e)!=="",props:e=>({...j,textFit:"line",text:cW(e),[_d]:{text:dpe}})}]},uW=()=>({tabs:[],metaLabel:Ye.label,metaValue:Ye.value}),fW="the note Text inside the Box (the label, then the value in the accent); no words, no Text",mW={direction:"row",menuStyle:"tabs",currentPage:!0,minWidth:lpe.min},hW=e=>({...e,boxProps:o=>({...Q,direction:"row",align:"stretch",justify:"between",gap:0,stickTop:!0,[yr]:0,[Ja]:!0,sectionBorder:{bottom:1},...ie(o,dW)}),box:[...re,...ge(dW)]}),ppe=()=>hW({name:"Tab Bar",skip:e=>Mk(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:fW,metaValue:fW},parts:[{kind:"block",type:pW,props:mW},fpe],drop:{...ee,...se,tabs:"a node whose tabs hold words is skipped (`skip`): typed tabs are not a Console menu; a list of blank tabs draws nothing, so nothing is lost"}}),upe=()=>hW({name:"Category Bar",skip:e=>{if(Mk(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(Mk(e.links).length)return"its right-hand links are typed words: the bar holds the Menu only"},parts:[{kind:"block",type:pW,props:{...mW,[_o]:W0}}],drop:{...ee,...se,tabs:"a node whose tabs hold words is skipped (`skip`); blank tabs draw nothing on a page, so nothing is lost. The Menu draws the blog's own categories",activeTab:"the Menu marks the page's own entry (Current page), not a typed active tab",links:"a node whose links hold words is skipped (`skip`); blank links draw nothing",sticky:"the bar is always pinned (the Box's own pin, Stays above): the merchant turns the Box's pin off",editing:"the editor's preview flag, never a stored setting: the editor tells every block it is editing"}}),xW={DocTabs:ppe(),CategoryBar:upe()};import{jsx as $s,jsxs as Wk}from"react/jsx-runtime";import{slugify as mpe}from"efficient-shell/format";import{jsx as Hk,jsxs as gW}from"react/jsx-runtime";var wYe="sticky top-[120px]";var gg={entry:{label:"Entry",follows:"Labels",builtIn:"13px",writable:!0},number:{label:"Entry number",follows:"Labels",builtIn:"13px",writable:!0}};var IW=(e,o)=>e?{[Fn]:o}:{},yW=(e,o)=>Mp(e?.[vc(o)]?.role,gg[o],di),bW=120;function SW({title:e,entries:o,stickyTop:t,sticky:r=!0,editing:a=!1,partStyles:n,numberForm:s=Ww,takesViewHide:i=!1}){let l=s==="plain",d=Wt(),f=i?d:Ua;return f.scope(gW("aside",{className:et(`${r?"sticky ":""}flex flex-col self-start max-[900px]:static`,f.className),style:r?{top:t}:void 0,...f.attrs,children:[e&&Hk("h4",{className:"mb-[18px] font-mono text-[length:var(--size-label,12px)] uppercase tracking-[0.3em] text-accent",children:go(e)}),o.map((u,p)=>{let m=Hk("span",{...IW(a,"number"),style:yW(n,"number"),className:"text-accent",children:ch(s,p)});return gW("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,Hk("span",{...IW(a,"entry"),style:yW(n,"entry"),children:go(u.label||"Section")}),!l&&m]},`${p}-${u.anchor}`)})]}))}function hpe(e,o){return mpe(e)||`section-${o+1}`}var $k=e=>typeof e=="string"&&e.trim()!=="";function Uk(e){return(e??[]).filter(o=>$k(o.heading)||$k(o.label)||$k(o.body))}function zk(e){let o=new Set;return e.map((t,r)=>{let a=hpe(t.label||t.heading||"",r),n=a,s=2;for(;o.has(n);)n=`${a}-${s++}`;return o.add(n),n})}function Gk(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=Tp(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 xpe=()=>[{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.")}],gpe=bW;function UYe({tocTitle:e,sections:o,editing:t=!1,stickyTop:r=gpe}){let a=Uk(o);if(a.length===0&&!t)return null;let n=a.length===0&&t?xpe():a,s=zk(n);return $s(me,{as:"section",className:"relative z-[2] bg-bg",children:Wk("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:[$s(SW,{title:e,entries:n.map((i,l)=>({label:i.label||"Section",anchor:s[l]})),stickyTop:r}),$s("div",{className:"flex flex-col gap-16",children:n.map((i,l)=>Wk("article",{id:s[l],className:"flex flex-col gap-[18px]",style:{scrollMarginTop:r},children:[Wk("span",{className:"font-mono text-[length:var(--size-label,12px)] uppercase tracking-[0.3em] text-accent",children:[Hw(l)," \xB7 ",go(i.label||"Section")]}),i.heading&&$s("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:go(i.heading)}),Gk(i.body??"").map((d,f)=>d.type==="ul"?$s("ul",{className:"flex max-w-[680px] list-none flex-col gap-2.5 pl-0",children:d.items.map((u,p)=>$s("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:go(u)},p))},f):$s("p",{className:"max-w-[680px] font-serif text-[length:var(--size-body,17px)] leading-[1.7] text-fg-dim",children:go(d.text)},f))]},s[l]))})]})})}var wW={top:80,bottom:80,topPhone:60,bottomPhone:60},CW=18,vW=18,kW=8,Ipe=10,jk=e=>typeof e=="string"&&e.trim()!=="",TW=e=>Uk(e.sections),ype=e=>Gk(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}),Kk={...fr(12),letterSpacing:.3,color:"accent",lineHeight:1.5},PW={textStyle:"body-1",fontRole:"accent",...U("body",17)},bpe=[Ie("label",Kk),{...Ie("title",Kk),when:(e,o)=>!jk(o?.label)},{kind:"block",type:"Text",when:(e,o)=>!jk(o?.label)&&!jk(o?.title),props:{...j,text:"Section",_partStyles:{text:Kk}}},{kind:"group",name:"Heading",props:{...N,sectionPaddingBottom:kW,sectionPaddingBottomPhone:kW},parts:[{kind:"group",name:"Heading line",props:{...N,sectionBorder:{bottom:1},sectionPaddingBottom:vW,sectionPaddingBottomPhone:vW},parts:[{kind:"text",key:"heading",role:"heading",props:j,style:{textStyle:"heading-2",...kt("headingMedium",28,3.5,44),case:"upper",weight:500,lineHeight:1.04,letterSpacing:-.025}}]}]},{kind:"list",key:"body",name:"Body",flat:!0,of:ype,parts:[{kind:"text",key:"text",props:ne,style:{...PW,lineHeight:1.7},when:(e,o)=>o?.kind==="p"},{kind:"text",key:"text",props:ne,style:{...PW,lineHeight:1.65,paragraphSpacing:Ipe},when:(e,o)=>o?.kind==="ul"}]}],Spe=900,wpe={name:"Document Text",boxProps:e=>({...Q,direction:"row",gap:80,gapPhone:40,[jx]:Spe,sectionBorder:{bottom:1},...ie(e,wW)}),box:["anchor","sectionAccent",...Ga,...Hi,...Object.values(Fe),...ge(wW)],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=>TW(e),props:{...N,gap:CW,gapPhone:CW},item:(e,o,t)=>({props:{anchor:zk(TW(t))[o]??`section-${o+1}`}}),parts:bpe}]}],reads:{tocTitle:"the Contents block's Heading"},drop:{...ee,stickyTop:"the Contents block draws DocBody's default (120px); 0 live nodes store it"}},EW={DocBody:wpe};import{phoneKey as kpe}from"efficient-easel/draw";import{SITE_SIDE as Tpe}from"efficient-easel/screen/lib/content/length-units";var QYe={eyebrow:"\u2014 Label",title:`Section headline *here.*
336
+ *Highlight line*`,body:"Describe this section in a sentence or two."},e9e={text:"Learn more"},o9e={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 Vk(e){return typeof e=="number"&&Number.isFinite(e)?Math.min(Math.max(e,0),100):40}var _W="[--intro-edge:60px] max-[960px]:[--intro-edge:24px]",Cpe="overlay",vpe=[{label:"Copy over image",value:"overlay"},{label:"Copy above image",value:"stacked"}];function Ig(e){return xo(vpe,Cpe,e)}var a9e={desktop:40,mobile:45,min:20,max:80,step:5};function n9e(e,o){return`${typeof e=="number"?e:o}%`}var OW=(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(Yt.size,t?.desktop)},...a===void 0?{}:{sizePhone:a,...n(Yt.sizePhone,t?.phone)}}},Ppe=e=>Ig(e.layout)==="stacked",AW=e=>Math.min(Math.max(q(e.overlay)??60,0),100),yg=e=>q(e)??100,Epe={textStyle:"heading-1",sizeToken:{...kt("headingLarge",48,7,96).sizeToken,pxPhone:36},weight:500,lineHeight:.95,letterSpacing:-.03},_pe=[Ie("eyebrow",U("label",14)),...[!0,!1].map(e=>({kind:"text",key:"title",role:"heading",props:j,style:{...Epe,case:e?"upper":"none"},styleFrom:o=>{let t=QS(o);return OW(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",...U("body",17,16),lineHeight:1.6,paragraphSpacing:24},styleFrom:e=>{let o=QS(e);return OW(e.bodySizeDesktop,e.bodySizeMobile,{desktop:o.bodyDesktop,phone:o.bodyMobile})}},{kind:"group",name:"Button",props:{...N,align:"start",sectionPaddingTop:8,sectionPaddingTopPhone:8},parts:[{kind:"button",key:"ctaText",href:"ctaHref",variant:"primary",props:Lo}]}],RW=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)`,Ope=()=>({name:"Scroll-Over Text",skip:e=>Ppe(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",...mf,placement:"left",darken:AW(e),darkenStyle:"even",sectionHeightMode:"fixed",sectionHeightUnit:"%",sectionHeightValue:yg(e.heightDesktop),sectionHeightModePhone:"fixed",sectionHeightUnitPhone:"%",sectionHeightValuePhone:yg(e.heightMobile),[os]:Za}),box:[...re.filter(e=>!String(typeof e=="string"?e:e[0]).startsWith("sectionHeight")),["imageSrc","bgImage"],["imageSrcMobile","bgImagePhone"],["overlay","darken",(e,o)=>AW(o)],["heightDesktop","sectionHeightValue",e=>yg(e)],["heightMobile","sectionHeightValuePhone",e=>yg(e)]],parts:_pe,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:RW("Button color"),buttonTextColor:RW("Button text color"),...ee}}),BW={textStyle:"heading-2",...U("headingMedium",56,36),weight:400,lineHeight:1.05,letterSpacing:-.03},Ape={textStyle:"body-1",...U("body",16),lineHeight:1.7},NW=e=>({kind:"text",key:"body",props:{...ne,maxWidth:520},style:{...Ape,paragraphSpacing:e}}),Sg={top:0,bottom:0,topPhone:0,bottomPhone:0},Yk=(e,o)=>typeof e.sectionHeightMode=="string"&&e.sectionHeightMode!=="auto"?{}:{sectionHeightMode:"fixed",sectionHeightUnit:"%",sectionHeightValue:o,sectionHeightModePhone:"auto"},Rpe=(e,o)=>{let t=Yk(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"}},DW={boxShapePhone:"landscape"},MW="needs a black-and-white setting on a Box picture (the old photograph followed it, else the site's Photography); 0 live US nodes store it (CLI read, 2026-11-03)",Lpe=(e,o)=>({[e]:o,[kpe(e)]:o}),Fpe={textStyle:"heading-2",...U("headingMedium",40),weight:500,case:"none",lineHeight:1,letterSpacing:-.02},LW=e=>(Array.isArray(e.stats)?e.stats:[]).filter(o=>o&&(String(o.value??"").trim()!==""||String(o.label??"").trim()!=="")),Bpe=()=>({name:"Brand Text",boxProps:(e,o)=>({...Q,...Ct("background")(e,o),direction:"row",share:"equal",gap:0,gapPhone:0,sectionBorder:{top:1,bottom:1},...ie(e,Sg),...Yk(e,100)}),box:[...re,...ge(Sg)],parts:[{kind:"group",name:"Words",props:()=>({...N,justify:"center",gap:28,gapPhone:28,sectionBorder:hf({right:1}),sectionBorderPhone:hf({}),...mf,sectionPaddingTop:100,sectionPaddingBottom:100,sectionPaddingTopPhone:60,sectionPaddingBottomPhone:60,sectionPaddingRight:Tpe}),parts:[Ie("eyebrow",U("label",14)),{kind:"text",key:"heading",role:"heading",props:j,style:{...BW,case:"none"},mark:"accentItalic"},NW(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(LW(e).length,1),3),...Lpe("sectionBorder",hf({top:1})),sectionPaddingTop:28,sectionPaddingTopPhone:28}),parts:[{kind:"list",key:"stats",name:"Stat",of:LW,props:{...N,gap:4,gapPhone:4},parts:[{kind:"text",key:"value",props:Fs,style:Fpe},Ie("label",{...U("label",13),color:"labels",letterSpacing:.2})]}]}]}]},jv("Picture","imageSrc",DW)],drop:{...ee,grayscale:MW,...se}}),bg=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}},Npe=e=>e.textAlign==="center"||e.textAlign==="right"?Ap[e.textAlign]:"stretch",Dpe=e=>Math.min(Math.max(q(e.overlay)??60,0),100),HW=e=>typeof e=="string"&&e.trim()!=="",Mpe={...Lo,align:"center",alignPhone:"center",buttonFillOpacity:0,buttonBorder:{width:1},buttonPaddingTop:16,buttonPaddingRight:28,buttonPaddingBottom:16,buttonPaddingLeft:28,buttonPaddingTopPhone:12,buttonPaddingRightPhone:20,buttonPaddingBottomPhone:12,buttonPaddingLeftPhone:20},FW=e=>({...jv("Picture","imageSrc",(o,t)=>({...HW(o.imageSrc)&&Vk(o.imageOverlay)>0?{darken:Vk(o.imageOverlay),darkenStyle:"even"}:{},placement:"center",...DW,sectionBorder:hf(e?{left:1}:{right:1}),...WW(e?"left":"right",Nl(t))}),[{kind:"button",key:"imageBtnText",href:"imageBtnHref",variant:"ghost",props:Mpe,style:{...fr(13,12),letterSpacing:.18}}]),when:o=>o.reverse===!0===e}),WW=(e,o)=>{let t=Math.max(60-o,0);return{sectionPaddingLeft:e==="left"?60:t,sectionPaddingRight:e==="right"?60:t}},Hpe={kind:"group",name:"Words",props:(e,o)=>{let t=e.reverse===!0;return{...N,justify:"center",align:Npe(e),placement:e.textAlign==="center"?"center":e.textAlign==="right"?"right":"left",...Rpe(e,72),gap:24,gapPhone:24,...HW(e.textBgSrc)?{darken:Dpe(e),darkenStyle:"even"}:{},...mf,sectionPaddingTop:100,sectionPaddingBottom:100,...WW(t?"right":"left",Nl(o)),sectionPaddingTopPhone:60,sectionPaddingBottomPhone:60}},box:[["textBgSrc","bgImage"]],parts:[{...Ie("eyebrow",U("label",14)),styleFrom:bg},{kind:"text",key:"title",role:"heading",props:j,style:BW,styleFrom:e=>({case:e.uppercase===!0?"upper":"none",...bg(e)})},{...NW(24),styleFrom:bg},{kind:"group",name:"Button",props:{...N,sectionPaddingTop:8,sectionPaddingTopPhone:8},parts:[{kind:"button",key:"ctaText",href:"ctaHref",variant:"primary",props:e=>{let o=bg(e);return{...Lo,...o.align?{align:o.align}:{},...o.alignPhone?{alignPhone:o.alignPhone}:{}}}}]}]},Wpe=()=>({name:"Image & Text Split",boxProps:(e,o)=>({...Q,...Ct("background")(e,o),direction:"row",share:"equal",gap:0,gapPhone:0,sectionBorder:{top:1,bottom:1},...ie(e,Sg),...Yk(e,72)}),box:[...re,...ge(Sg)],parts:[FW(!1),Hpe,FW(!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:MW,...ee,...se}}),$W={IntroBleed:Ope(),Manifesto:Bpe(),Split:Wpe()};var GW={headPlacement:void 0},UW={top:0,bottom:0,topPhone:0,bottomPhone:0},$pe=()=>({name:"Form",ownBoxConverts:!0,boxProps:e=>({...Q,direction:"column",...ie(e,UW)}),box:[...re,...ge(UW)],parts:[{kind:"core",keep:"rest",props:GW}],drop:{...ee,...se}}),zW={top:120,bottom:120,topPhone:60,bottomPhone:60},Upe=()=>({name:"Photo Submission Form",boxProps:e=>({...Q,direction:"column",gap:24,...ie(e,zW)}),box:[...re,...ge(zW)],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:GW}],skip:e=>e.layout==="boxes"?`its words are in its two SubmitBox regions (layout "boxes"); this row reads only the section's own words`:void 0,drop:{...ee,...se,layout:'the marker of the two-region drawing; a node that has it is skipped (above), so here it is never "boxes"',boxes:'the SubmitBox regions, drawn only under layout "boxes", which this row skips (above); without that marker they draw nothing'}}),jW={Form:$pe(),SubmitBuild:Upe()};import{phoneKey as KW}from"efficient-easel/draw";var YW=1.5,VW={textStyle:"body-1",...U("body",15),lineHeight:YW},zpe={...ht,...U("label",12),letterSpacing:.12,lineHeight:YW},qW=()=>({type:Y,props:{...N,direction:"row",justify:"between",align:"start",gap:16,gapPhone:16,share:"content",phoneRow:2,[KW("share")]:"content",[KW("wrap")]:"nowrap",...Qo(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"},VW),Ze("meta",{...ne,tag:"p"},zpe)]}},Ze("amount",{...j,tag:"p"},VW)]}});var Gpe=()=>({name:"Order Table",boxProps:()=>({...Q,direction:"column"}),box:[...re],parts:[{kind:"core",keep:"rest",headless:!0,slots:{[Ue]:[qW()]}}],drop:{...ee}}),XW={OrderSummary:Gpe()};import{phoneKey as jpe}from"efficient-easel/draw";var A9e={eyebrow:"By the numbers",title:`A picture worth
337
+ *a thousand rows.*`},ZW=["eyebrow","title","body","caption"],R9e={label:"Chart",defaultProps:{eyebrow:"",title:"",body:"",items:[],caption:"",chartStyle:"bars",valueSuffix:""}};var JW=["eyebrow","title","body"],F9e={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 o$={top:76,bottom:76,topPhone:76,bottomPhone:76},t$=()=>({kind:"group",name:"Words",props:{...N,gap:20,gapPhone:20},parts:[{kind:"group",name:"Chip row",props:{...N,direction:"row",phoneRow:2,[jpe("share")]:"content"},parts:[Ll("eyebrow")]},{kind:"text",key:"title",role:"heading",props:j,style:{textStyle:"heading-2",...U("headingMedium",44,32),weight:500,case:"upper",lineHeight:1.04,letterSpacing:-.02}},{kind:"text",key:"body",props:{...ne,maxWidth:435},style:Np(16)}]}),r$=e=>(o,t)=>({...Q,sectionAccent:Bl(o.sectionAccent??0,t),direction:"row",align:"center",gap:56,gapPhone:56,share:e,sectionBorder:{top:1,bottom:1},...ie(o,o$)}),a$=[...re.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,t)=>Bl(e,t)],...ge(o$)],Kpe=()=>({name:"Chart",boxProps:r$([42]),box:a$,parts:[t$(),{kind:"group",name:"Chart",props:{...N,gap:16,gapPhone:16},keepEmpty:!0,parts:[{kind:"core",keep:"rest",props:Rl},Ie("caption",{color:"muted",...U("label",10),letterSpacing:.14})]}],pressKeepsEmpty:[...ZW],drop:{...ee,...se}}),QW=e=>e.align==="left",e$={kind:"group",name:"Card",keepEmpty:!0,props:N,parts:[{kind:"core",keep:"rest",props:Rl}]},Vpe=()=>({name:"Mockup Card",boxProps:r$("equal"),box:a$,parts:[{...e$,when:QW},t$(),{...e$,when:e=>!QW(e)}],pressKeepsEmpty:[...JW],drop:{...ee,...se}}),n$={Chart:Kpe(),Mockup:Vpe()};import{phoneKey as qpe}from"efficient-easel/draw";function s$(e,o=3){let t=Array.from({length:o},()=>[]);return e.forEach((r,a)=>t[a%o].push(r)),t}function i$(e){return Math.max(e*6,30)}var l$={top:76,bottom:76,topPhone:76,bottomPhone:76},Xpe=e=>(Array.isArray(e.apps)?e.apps:[]).map(o=>o&&typeof o=="object"&&typeof o.text=="string"?o.text.trim():"").filter(Boolean),qk=e=>s$(Xpe(e)),Zpe=e=>ng({loopDuration:i$(e)}),Jpe={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,[qpe("share")]:"content"},parts:[Ll("eyebrow")]},{kind:"text",key:"title",role:"heading",props:{...j,align:"center"},style:{textStyle:"heading-2",...U("headingMedium",40,30),weight:500,case:"upper",lineHeight:1.04,letterSpacing:-.02}},{kind:"text",key:"body",props:{...ne,align:"center",maxWidth:568},style:Np(16)}]},Qpe=e=>({kind:"group",name:`Row ${e+1}`,when:o=>qk(o)[e].length>0,props:o=>({...N,direction:"row",gap:12,gapPhone:12,loop:"scroll",...e%2===1?{scrollDirection:"right"}:{},loopDuration:Zpe(qk(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=>qk(o)[e].map(t=>({alt:t})),parts:[{kind:"block",type:"LogoBlock",box:["alt"]}]}]}]}),eue={kind:"group",name:"Stat",props:{...N,align:"center",gap:16,gapPhone:16},parts:[{kind:"group",name:"Figure",props:{...N,align:"center",gap:8,gapPhone:8},parts:[{kind:"text",key:"statValue",props:{...j,align:"center"},style:{textStyle:"heading-1",...U("headingLarge",64,46),weight:500,case:"upper",lineHeight:1,color:"accent"}},{kind:"text",key:"statLabel",props:{...j,align:"center"},style:{textStyle:"heading-3",...U("headingSmall",18),weight:500,case:"upper",letterSpacing:.06}}]},{kind:"text",key:"note",props:{...j,align:"center",maxWidth:428},style:{textStyle:"body-1",...U("label",14),lineHeight:1.625,color:"muted"}}]},oue=[...re.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,t)=>Bl(e,t)],...ge(l$)],tue={name:"Integrations",boxProps:(e,o)=>({...Q,sectionAccent:Bl(e.sectionAccent??0,o),direction:"column",gap:48,gapPhone:48,sectionBorder:{top:1,bottom:1},...ie(e,l$)}),box:oue,parts:[Jpe,{kind:"group",name:"Rows",props:{...N,gap:12,gapPhone:12},parts:Array.from({length:3},(e,o)=>Qpe(o))},eue],pressKeepsEmpty:["body","statValue","statLabel","note"],reads:{apps:"a Logo block per app, dealt into the three Rows"},drop:{...ee,...se}},c$={Integrations:tue},d$=()=>({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 rue={title:"Back online in",zeroText:"Almost done. Back very soon."},f$=["title"],X9e={label:"Countdown",defaultProps:{...rue,endsAt:"",showUnits:!0}};var p$={top:48,bottom:48,topPhone:48,bottomPhone:48},aue={...Ie("title",{...qE(12),color:"muted"}),props:{...j,align:"center"}},nue=()=>({name:"Countdown",boxProps:e=>({...Q,direction:"column",align:"center",gap:16,gapPhone:16,...ie(e,p$)}),box:[...re,...ge(p$)],parts:[aue,{kind:"core",keep:"rest",props:Rl}],pressKeepsEmpty:[...f$],drop:{...ee,...se}}),u$={top:80,bottom:80,topTablet:60,bottomTablet:60,topPhone:60,bottomPhone:60},sue=()=>({name:"Feature Banner",boxProps:e=>({...Q,direction:"column",sectionBorder:{bottom:1},...ie(e,u$)}),box:[...re,...ge(u$)],parts:[{kind:"core",keep:"rest",props:Rl}],drop:{...ee,...se}}),m$={Countdown:nue(),FeaturedCover:sue()};var h$={top:80,bottom:80,topPhone:60,bottomPhone:60},iue=()=>{let e=Zx("FitmentFinder");return{name:"Fitment Form",boxProps:o=>({...Q,direction:"column",gap:xf[Ms("FitmentFinder")],...ie(o,h$)}),box:[...re,...ge(h$)],parts:[Qt("FitmentFinder"),{kind:"block",type:"FitmentPicker"},{kind:"block",type:"StockFitment"},{kind:"button",key:"ctaText",href:"ctaHref"}],skip:o=>o.layout==="bar"?"the one-row shape goes to the shop on the fourth pick and draws no head; the Fitment picker block never leaves the page":void 0,...Object.keys(e).length?{reads:e}:{},drop:{...ee,...se,layout:'the section shape; "bar" is skipped (above), so here it is the stacked shape this Box draws'}}},x$={FitmentFinder:iue()};var wg={eyebrow:"Label",title:"Section *heading.*",body:"Add this section's copy here. A blank line starts a new paragraph."},nqe={label:"Editorial Text",defaultProps:{eyebrow:"",title:"",body:"",topBorder:!0}};var Of={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"},lqe={label:"Lead Text",defaultProps:{eyebrow:"",lead:"",stats:[],foundersHeading:"",foundersBody:"",attribution:"",padTop:60,padBottom:80}};var g$={eyebrow:"Limited release",title:"Banner headline",body:"A line or two of supporting copy."},dqe={label:"Banner",drawsPictures:!0,defaultProps:{eyebrow:"",title:"",body:"",imageSrc:"",ctaText:"",ctaHref:"",contained:!0,overlay:60}};var I$={title:`Section heading
339
+ *Highlight line*`},y$=[{label:fo.text,href:fo.href,variant:"primary"},{label:fo.text,href:fo.href,variant:"outline"}],uqe={label:"Call-to-Action Heading",defaultProps:{title:"",buttons:[],padTop:140,padBottom:140}};var Cg="standard",C$=[{label:"Standard",value:"standard"},{label:"Editorial",value:"editorial"},{label:"Simple",value:"simple"},{label:"Statement",value:"statement"},{label:"Natural",value:"natural"},{label:"Essay",value:"essay"}],Zk=["numStyle","logoSrc","logoAlt","linkText","linkHref","_gLogo"],Xk=[...Zk,"description"],b$={standard:["eyebrowLook"],editorial:[...Zk,"eyebrowLook"],simple:Xk,statement:Xk,natural:Zk,essay:Xk},S$=["gap-5","gap-3"],w$=["text-[length:var(--size-body,16px)]","text-[15px]"];function gqe(e){return xo(S$,S$[0],e)}function Iqe(e){return xo(w$,w$[0],e)}function yqe(e){return xo(C$,Cg,e)}function bqe(e){let o=C$.map(r=>r.value),t=[...new Set(Object.values(b$).flat())];return Et(e,t.map(r=>[[r],Cc("headStyle",o,Cg,o.filter(a=>!b$[a].includes(r)))]))}var Aa={num:"01 / Section",title:"Section *title*",description:"Short supporting line",linkText:Ye.viewAll},kqe={label:"Section Header",drawsPictures:!0,defaultProps:{headStyle:Cg,num:Aa.num,numStyle:Hd,title:Aa.title,description:"",logoSrc:"",logoAlt:"",linkText:"",linkHref:""}};var vg={eyebrow:"\u2014 Label",title:`Section headline
340
+ *Highlight line*`,body:"A sentence or two of supporting copy."},_qe={label:"Scroll-Over Text",drawsPictures:!0,defaultProps:{eyebrow:"",title:"",body:"",imageSrc:"",imageSrcMobile:"",heightDesktop:100,heightMobile:100,overlay:60,titleSizeDesktop:rs,bodySizeDesktop:rs,titleSizeMobile:rs,bodySizeMobile:rs,ctaText:"",ctaHref:"",buttonColor:"",buttonTextColor:"",stickTop:!0,[yr]:0,uppercase:!1}};var v$={top:72,bottom:72,topPhone:72,bottomPhone:72},lue={name:"Editorial Text",boxProps:e=>({...Q,direction:"column",gap:28,gapPhone:28,sectionBorder:{top:1},...ie(e,v$)}),box:[["topBorder","sectionBorder",e=>e===!1?void 0:{top:1}],...re,...ge(v$)],parts:[Qt("Prose"),{kind:"text",key:"body",props:ne,style:{textStyle:"body-1",...U("body",16),lineHeight:1.7,paragraphSpacing:18}}],drop:{...ee,...se,headPlacement:"needs a row per head placement: an own-box Prose draws no head (its words sit in a Section Header above it), the row always draws the head. 0 of 123 live nodes store it (the live export, 2026-10-24)"}},k$={buttonPaddingTop:20,buttonPaddingBottom:20,buttonPaddingLeft:28,buttonPaddingRight:28},T$=(e,o)=>o?.variant==="primary",P$=(e,o)=>({kind:"list",key:"buttons",name:"Button",flat:!0,when:e,parts:[{kind:"button",key:"label",href:"href",when:T$,variant:"primary",style:{letterSpacing:.3},props:{...Lo,...k$,...o}},{kind:"button",key:"label",href:"href",when:(t,r)=>!T$(t,r),variant:"ghost",style:{letterSpacing:.3},props:{...Lo,...k$,...o}}]}),kg=e=>ro(e.title),cue={name:"Call-to-Action Heading",boxProps:e=>({...Q,direction:"row",align:"center",justify:kg(e)?"between":"end",gap:60,gapPhone:60,share:"content",sectionBorder:{bottom:1},...Jt(e,"TitleWithButtons")}),box:[...re,...pn("TitleWithButtons")],parts:[{kind:"group",name:"Title",props:{...N,maxWidth:1e3,widthFitPhone:"fill"},parts:[{kind:"text",key:"title",role:"heading",props:j,style:{textStyle:"heading-1",...kt("headingLarge",48,7,108),case:"upper",lineHeight:.94,letterSpacing:-.035},mark:"accentItalic"}]},{kind:"group",name:"Buttons",props:e=>({...N,gap:14,gapPhone:14,widthFitPhone:"fill",...kg(e)?{minWidth:280,minWidthPhone:0}:{}}),parts:[P$(kg,{widthFit:"fill",iconPosition:"end"}),P$(e=>!kg(e),{})]}],drop:{...ee,buttonsAlign:"moves the buttons only when there is no heading (4 of 128 live nodes), where the Box puts them at the end. 0 of 128 live nodes store it (the live export, 2026-10-24)",buttonsAlignPhone:"the phone's own side of `buttonsAlign`, read only with no heading; no old node stores it (it is new with the Phone view's Block alignment row), so nothing moves",buttonsAlignTablet:"the tablet's own side of `buttonsAlign`, read only with no heading; no old node stores it (it is new with the Tablet view's Block alignment row, 0 stored on the US sites 2026-11-05), so nothing moves"}};function due(e,o){let t=Nl(o,{to:Ee(e.sectionPaddingUnit)}),r=Nl(o,{view:"phone",to:Ee(e.sectionPaddingUnitPhone),maxPx:20});return{sectionPaddingLeft:t,sectionPaddingRight:t,sectionPaddingLeftPhone:r,sectionPaddingRightPhone:r}}var E$={top:40,bottom:64,topPhone:24,bottomPhone:36},fue={name:"Section Header",boxProps:(e,o)=>({...Q,direction:"column",gap:0,...ie(e,E$),...due(e,o)}),box:[...re,...ge(E$)],parts:[Qt("SectionHeader")],drop:{...ee,...se,headStyle:"needs a row per head look: the row draws the standard look; the editorial, simple, statement, natural and essay looks are other layouts. 0 of 69 live nodes store it (the live export, 2026-10-24)",eyebrowLook:"read only by the simple, statement, natural and essay looks, which this row does not draw. 0 of 69 live nodes store it",rowGap:"read only by the natural look, which this row does not draw. 0 of 69 live nodes store it",descriptionSize:"read only by the natural look, which this row does not draw. 0 of 69 live nodes store it",numStyle:"Solid (the default; 4 of 69 live nodes store it) IS the eyebrow Text the row draws; Outlined (0 live) needs an outlined-number text look"}},_$={...N,direction:"row",share:[67],gap:32},O$={...N,sectionPaddingLeft:24,sectionPaddingLeftPhone:0},A$=(e,o,t)=>({kind:"group",name:e,props:o,parts:[t]}),pue={name:"Lead Text",boxProps:e=>({...Q,direction:"column",gap:40,gapPhone:40,sectionBorder:{bottom:1},...Jt(e,"ParagraphsA")}),box:[...re,...pn("ParagraphsA")],parts:[{kind:"group",name:"Numbers",props:{..._$,gapPhone:24,sectionBorder:{bottom:1},sectionPaddingBottom:40,sectionPaddingBottomPhone:40},parts:[{kind:"group",name:"Eyebrow",props:{...N,sectionPaddingTop:5,sectionPaddingBottom:1,sectionPaddingTopPhone:5,sectionPaddingBottomPhone:1},parts:[Ie("eyebrow",{color:"labels",...U("label",12),letterSpacing:.24})]},A$("Stats column",N,{kind:"group",name:"Stats",props:{...O$,gap:0,gapPhone:0},parts:[{kind:"list",key:"stats",name:"Stat",flat:!0,parts:[uf("value","label",{...U("label",13),letterSpacing:.18,lineHeight:1.8})]}]})]},{kind:"group",name:"Words",props:{..._$,gapPhone:28},parts:[{kind:"group",name:"Lead",props:N,parts:[{kind:"group",name:"Measure",props:{...N,maxWidth:780},parts:[{kind:"text",key:"lead",props:j,style:{textStyle:"heading-3",...U("headingSmall",22,20),weight:400,case:"none",lineHeight:1.45,letterSpacing:-.005}}]}]},A$("Note column",{...N,justify:"end"},{kind:"group",name:"Founders",props:{...O$,gap:8,gapPhone:8},parts:[{kind:"group",name:"Note",props:{...N,gap:6,gapPhone:6},parts:[{kind:"text",key:"foundersHeading",props:j,style:{textStyle:"body-1",fontRole:"heading",...U("body",18,16),weight:500,letterSpacing:-.01,lineHeight:1.7}},{kind:"text",key:"foundersBody",props:ne,style:{textStyle:"body-5",fontRole:"heading",...U("body",14,12),lineHeight:1.7}}]},Ie("attribution",{...U("label",12,10),letterSpacing:.24,lineHeight:1.7})]})]}],drop:{...ee}},R$={top:24,bottom:24,topPhone:24,bottomPhone:24},uue={name:"Banner",boxProps:e=>({...Q,direction:"column",gap:0,...ie(e,R$)}),box:[...re,"contained",...ge(R$)],parts:[{kind:"group",name:"Card",keepEmpty:!0,props:{...N,gap:28,gapPhone:28,placement:"top-left",darken:60,darkenStyle:"even",sectionBorder:{width:1},...la("surface"),...Qo(64,40,40,24)},box:[["imageSrc","bgImage"],["overlay","darken",e=>Math.min(Math.max(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",...U("headingMedium",44,32)}},{kind:"text",key:"body",props:{...j,maxWidth:680},style:{textStyle:"body-1",lineHeight:1.6,...U("body",16)}}]},{kind:"button",key:"ctaText",href:"ctaHref",variant:"primary",props:Lo}]}],drop:{...ee,...se}},Jk={Prose:lue,TitleWithButtons:cue,SectionHeader:fue,ParagraphsA:pue,Banner:uue},L$={Prose:()=>({eyebrow:wg.eyebrow,title:kr(wg.title),body:wg.body}),TitleWithButtons:()=>({title:kr(I$.title),buttons:y$.map(e=>({...e}))}),SectionHeader:()=>({num:Aa.num,title:kr(Aa.title),description:Aa.description,linkText:Aa.linkText,linkHref:fo.href}),ParagraphsA:()=>({eyebrow:Of.eyebrow,lead:Ye.body,foundersHeading:Of.foundersHeading,foundersBody:Of.foundersBody,attribution:Of.attribution}),Banner:()=>({...g$,ctaText:fo.text,ctaHref:fo.href}),ProcessSteps:()=>({num:Aa.num,title:kr(Aa.title)}),IntroBleed:()=>({eyebrow:vg.eyebrow,title:kr(vg.title),body:vg.body,ctaText:fo.text,ctaHref:fo.href})};function Tg(){To(Jk),To(N5),To(J5),To(T5),To(h3),To(_3),To(G3),To(V3),To(sW),To(xW),To(EW),To($W),To(jW),To(XW),To(x$),To(n$),To(c$),To(m$)}var mue=[{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=>S4(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=>C4(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})=>(Tg(),P4(e,df,{theme:Z_(o)}))},{name:"capHeroGroups",chrome:!1,why:"page-only: it caps a top-level Hero's slide groups, and a Hero is a page section",run:e=>wM(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=>mH(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=>uH(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=>fH(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=>dN(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=>yH(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=>vH(e)}];function hue(e,o,t){let r=e;for(let a of mue)(!t||a.chrome)&&(r=a.run(r,o));return r}function F$(e,o){return hue(e,{metadata:o},!1)}import{useRef as xue}from"react";import{createRenderKeep as gue}from"efficient-easel/render";function B$(){let e=xue(null);return e.current??=gue(),e.current}import{isNode as Iue,isNodeList as yue}from"efficient-easel/data";import{hidableText as bue,readHidable as Sue}from"efficient-easel/draw";var D$="slotCounts",Qk=e=>!Sue(e).hidden&&bue(e).trim()!=="",wue=e=>typeof e=="string"&&e.trim()!=="",Cue={Flex:()=>!0,PostCard:()=>!0,ImageBlock:e=>wue(e.src),Text:e=>Qk(e.text),Heading:e=>Qk(e.text),Eyebrow:e=>Qk(e.eyebrow)},vue=["widthFit","width","minWidth"],N$=e=>yue(e);function kue(e){if(Array.isArray(e.content))return N$(e.content)?e.content:null;let o=Object.values(e).filter(N$);return o.length===1?o[0]:null}function Tue(e,o){return[...new Set([G0,...Object.values($(p_,e)??{})])].some(t=>xt(o,t)!=="")}function Pue(e){let o=e.props??{},t=$(Cue,e.type);if(!t||!t(o)||Tue(e.type,o)||Yc(o))return!1;let r=o[Pl];if(r!=null&&r!=="")return!1;let a=Nx(o);return!vue.some(n=>a[n]!==void 0)}function Eue(e){let o=0;for(let t of e)if(!ua(t.props??{})){if(!Pue(t))return;o+=1}return o>0?o:void 0}function _ue(e){let o={},t=new Set,r=new Set,a=(n,s)=>{if(Array.isArray(n))for(let i of n){if(!Iue(i))continue;let l=i.props.id;typeof l=="string"&&(t.has(l)?r:t).add(l);let d=s?null:kue(i.props);if(typeof l=="string"&&d){let f=Eue(d);f!==void 0&&(o[l]=f)}for(let f of Br(i))a(i.props[f],s||Bn(i.type,f))}};a(e,!1);for(let n of r)delete o[n];return o}function M$(e,o){return{...e??{},[D$]:_ue(o)}}function RXe(e){let o=e.editor?.metadata?.[D$],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 Rue({config:e,data:o,metadata:t}){let r=F$(o,t),a=B$(),n=bM(e,yM(r.content)),s=jh(r.content),i=s.length>0?{...t,[IM]:s}:t;return H$(Kh,{children:H$(Aue,{config:n,metadata:M$(i,r.content),keep:a,data:r})})}var W$=Oue(Rue);import{jsx as ar,Fragment as Fme,jsxs as _6}from"react/jsx-runtime";import{jsx as Lue,jsxs as Fue}from"react/jsx-runtime";import{createContext as Bue,useContext as Nue}from"react";var $$=Bue(!1);function jXe(){return Nue($$)}function U$({grayscale:e,children:o}){let t=e===!0;return Fue($$.Provider,{value:t,children:[Object.entries($H(e)).map(([r,a])=>Lue("style",{children:a},r)),o]})}import{jsx as Due}from"react/jsx-runtime";import{createContext as Mue,useContext as Hue}from"react";var z$=Mue(null);function qXe(){return Hue(z$)}function G$({ink:e,children:o}){return Due(z$.Provider,{value:e??null,children:o})}var j$="data-lead-ink",QXe="data-header-ink";var Wue="auto";function $ue(e){return e.type==="IntroBleed"?Ig(e.props?.layout)!=="stacked":!0}function K$(e){let o=Ld(e);return o&&YD(e)&&$ue(o)?"light":null}function eZe(e){return e==="light"||e==="dark"?e:Wue}import{useEasel as Bme}from"efficient-easel/easel";import{useEffect as Que}from"react";import{useEaselApi as eme}from"efficient-easel/easel";import{find as Uue,walk as V$}from"efficient-easel/data";var zue=()=>"",Gue=e=>_y(Nr([e],zue));function X$(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(Gue))])),a=_y(e);return Object.keys(r).find(n=>r[n].has(a))??null}var jue=()=>({press:[Dl(Ln),Dl(Sc)],delivery:[qv()]}),Kue={},eT=e=>X$(e,jue,Kue),Vue=e=>eo(e)===H0?"delivery":"press";function pZe(e,o){if(!o||eo(e)===eo(o))return e;let t=eT(e[Ue]),r=Vue(e);if(!t||t===r)return e;let a=vy(e,Oo),n=r==="delivery"?qv():Dl(eo(e)?Sc:Ln),s=Nr([n],Ty(a));return{...e,[Ue]:s}}var Yue=()=>({cards:[mi(Ln),mi(Sc)],label:[hi(!1),hi(!0)]}),que={},Xue=e=>X$(e,Yue,que);function uZe(e,o){if(!o||e.cardStyle==="label-only"==(o.cardStyle==="label-only"))return e;let t=Xue(e[Ue]),r=e.cardStyle==="label-only"?"label":"cards";if(!t||t===r)return e;let a=vy(e,XE),n=Array.isArray(e.items)&&e.items.some(l=>be(l?.href)!==void 0),s=r==="label"?hi(n):mi(eo(e)?Sc:Ln),i=Nr([s],Ty(a));return{...e,[Ue]:i}}var Y$=(e,o)=>Yv.every(t=>JSON.stringify(e[t])===JSON.stringify(o[t]));function q$(e,o){let t={...e};for(let r of Yv)delete t[r];return{...t,...structuredClone(o)}}function oT(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 Zue(e,o){let t=oT(e),r=oT(o);if(!t?.props||!r?.props||r.props.id!==t.props.id||eo(t.props)===eo(r.props))return e;let a=eT(t.props[Ue]);if(!a||a===eT(r.props[Ue]))return e;let n=q(e.columns);return n===void 0?e:a==="delivery"&&Y$(e,Ds(n))?q$(e,Ux(n)):a==="press"&&Y$(e,Ux(n))?q$(e,Ds(n)):e}function Z$(e){let o=Pg.get(e);o?o.count+=1:Pg.set(e,{count:1,stop:Jue(e)});let t=!1;return()=>{let r=Pg.get(e);t||!r||(t=!0,r.count-=1,!(r.count>0)&&(r.stop(),Pg.delete(e)))}}var Pg=new WeakMap;function Jue(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;V$(t,e.config,n=>{if(n.type!==Y||!oT(n.props))return;let s=Uue(r,e.config,n.props.id);if(!s||s.node===n)return;let i=Zue(n.props,s.node.props);i!==n.props&&a.set(n.props.id,i)}),a.size&&e.dispatch({type:"setData",recordHistory:!1,data:n=>V$(n,e.config,s=>{let i=a.get(s.props.id);return i?{...s,props:{...i,id:s.props.id}}:void 0})})})}function J$(){let e=ome();Que(()=>e?Z$(e):void 0,[e])}function ome(){try{return eme()}catch{return null}}import{jsx as Eg}from"react/jsx-runtime";import{useEffect as tme}from"react";import{armScrollProgress as rme}from"efficient-shell/format";function Q$({armed:e,children:o}){return tme(()=>e?rme():void 0,[e]),o}function tT(){return{style:{"--sf-page-width":$o}}}function ame({children:e}){return Eg("div",{style:tT().style,children:e})}function TZe({pageBackground:e,inheritBackground:o=!1,chrome:t=!1,children:r}){return Eg("div",{style:{...o?{}:Vu(e),background:"var(--bg)",minHeight:"100%",overflowX:"clip"},children:Eg(Q$,{armed:!t,children:Eg(ame,{children:r})})})}import{jsx as e6,Fragment as nme}from"react/jsx-runtime";import{createContext as sme,useContext as ime}from"react";var o6=sme({}),t6=o6.Provider;function OZe(e){let{SectionTextParts:o}=ime(o6);return o?e6(o,{...e}):e6(nme,{children:e.children})}import{jsx as Tme}from"react/jsx-runtime";import{useEffect as Pme,useRef as Eme}from"react";var r6="data-easel-overlay-portal";function _g(e){return e.setAttribute(r6,"true"),()=>{e.removeAttribute(r6)}}import{jsx as Ime}from"react/jsx-runtime";import{useEffect as yme,useRef as I6}from"react";import{usePreviewParts as bme}from"efficient-easel/draw/client";import{jsx as lme}from"react/jsx-runtime";import{createContext as cme,useContext as dme,useMemo as fme,useState as pme}from"react";var ume={partStyle:null,setPartStyle:()=>{}},a6=cme(ume);function BZe({children:e}){let[o,t]=pme(null),r=fme(()=>({partStyle:o,setPartStyle:t}),[o]);return lme(a6.Provider,{value:r,children:e})}function jl(){return dme(a6)}import{usePreviewDevice as Sme}from"efficient-easel/draw/client";import{shownTier as wme}from"efficient-easel/screen/lib/document/device-fields";import{decodePartId as y6,encodePartId as Cme}from"efficient-easel/draw";import{BLOCK_ATTRIBUTE as vme}from"efficient-easel/canvas";import{createPreviewSelectionContext as mme}from"efficient-easel/draw/client";var Us="Scrolling Bar",{Provider:MZe,useSelection:n6}=mme("selectedHeroId"),rT="data-sf-hero-ticker";function s6(e){return`${e}::ticker`}function i6(e){return!e||!e.endsWith("::ticker")?null:e.slice(0,-8)||null}import{BLOCK_ATTRIBUTE as gn}from"efficient-easel/canvas";import{createPreviewSelectionContext as hme}from"efficient-easel/draw/client";var{Provider:$Ze,useSelection:l6}=hme("selectedLocationPartId");function Og(e,o,t){return`${e}::${o}::${t}`}function Ag(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 nT="data-sf-part-label";function sT(e,o){return e.closest(`[${gn}]`)?.getAttribute(gn)===o}function c6(e,o,t){let r=e.querySelectorAll("*"),a=new Map(t.map(y=>[y.key,Cd(y.label)])),n=[],s=new Set;for(let y=0;y<r.length;y+=1){let v=r[y];if(!sT(v,o))continue;let L=v.getAttribute(ZB);if(!L)continue;let A=a.get(L);n.push({element:v,partId:qr(o,L),...A?{label:A}:{}}),s.add(v)}let i=[],l=new Set;for(let y=0;y<r.length;y+=1){let v=r[y];if(!sT(v,o)||s.has(v))continue;let L=an(v.textContent??"");if(!L)continue;let A=v.closest(`[${Fw}]`)?.getAttribute(Fw)||null;A&&l.add(A.replace(/\[\d+\]$/u,"")),i.push({element:v,text:L,row:A})}let d=y=>i.filter(v=>v.row===XB(y.key,y.row.index)),f=i.filter(y=>y.row===null),u=y=>y.row&&l.has(y.key)?d(y):l.size?f:i,p=new Map,m=[],h=y=>y.row?`${y.key}.${y.row.rowKey}`:null,I=new Map;for(let y of t){let v=h(y);if(!v||l.has(y.key))continue;let L=I.get(v);L?L.push(y):I.set(v,[y])}let w=new Set;for(let[y,v]of I){if(v.length<2)continue;let L=v.flatMap(T=>T.texts);if(new Set(L).size===L.length)continue;let A=u(v[0]).filter(T=>L.includes(T.text));if(A.length!==v.length)continue;let D=[...v].sort((T,F)=>(T.row?.index??0)-(F.row?.index??0));for(let T=0;T<D.length;T+=1){let F=D[T],k=A[T].element,_={key:F.key,partKey:Yr(F.key,F.row),exact:!0},P=p.get(k);P?P.push(_):(p.set(k,[_]),m.push(k))}w.add(y)}let S=new Map;for(let y of t){if(w.has(h(y)??""))continue;let v=Yr(y.key,y.row);for(let L of y.texts)for(let A of u(y)){if(A.text!==L)continue;let D=S.get(A.element);D?D.add(v):S.set(A.element,new Set([v]))}}let C=(y,v)=>[...S].some(([L,A])=>L!==y&&!A.has(v)&&L.contains(y));for(let y of t){if(w.has(h(y)??""))continue;let v=Yr(y.key,y.row);for(let L of y.texts){let A=[],D=null;for(let k of u(y))k.text===L?C(k.element,v)||A.push(k.element):!A.length&&k.text.includes(L)&&(!D||k.text.length<=D.length)&&(D={element:k.element,length:k.text.length});let T=A.length?A:D?[D.element]:[],F=T.filter(k=>!T.some(_=>_!==k&&k.contains(_)));for(let k of F){let _={key:y.key,partKey:v,exact:A.length>0},P=p.get(k);P?P.push(_):(p.set(k,[_]),m.push(k))}}}let b=[...n];for(let y of m){let v=p.get(y)??[],L=v.some(A=>A.exact)?v.filter(A=>A.exact):v;if(new Set(L.map(A=>A.partKey)).size===1){let A=a.get(L[0].key);b.push({element:y,partId:qr(o,L[0].partKey),...A?{label:A}:{}});continue}new Set(L.map(A=>A.key)).size===1&&b.push({element:y,partId:qr(o,L[0].key)})}return b}function aT(e,o,t){let r=e.querySelectorAll(`[${co}]`);for(let n=0;n<r.length;n+=1){let s=r[n];sT(s,o)&&(s.removeAttribute(co),s.removeAttribute(nT))}let a=[];for(let{element:n,partId:s,label:i}of t)n.setAttribute(co,s),i&&n.setAttribute(nT,i),a.push(n);return a}function p6(e,o,t,r,a,n=()=>null){let s=null,i=null,l=null,d=()=>{let f=t(),u=f?.getAttribute(gn)??null;if(!f||!u)return!1;s=u;let p=c6(e,u,o);return a(f,u,aT(e,u,p)),l=n(()=>{let m=c6(e,u,o);xme(p,m)||(p=m,a(f,u,aT(e,u,m)))}),!0};return d()||(i=r(()=>{(s||d())&&(i?.(),i=null)})),()=>{i?.(),i=null,l?.(),l=null,s&&aT(e,s,[])}}function xme(e,o){return e.length===o.length&&e.every((t,r)=>t.element===o[r].element&&t.partId===o[r].partId)}function qZe(e,o){let t=e?.closest?.(`[${co}],[${nn}]`),r=t?.getAttribute(co)??t?.getAttribute(nn),a=r?bd(r):null;if(t&&r&&a?.nodeId===o&&a.propKey)return{id:r,element:t,whole:f6(t,r),label:d6(t,r)};let n=e?.closest?.(m6.slice(2).map(i=>`[${i}]`).join(","));if(!n)return null;let s=n.closest?.(`[${gn}]`)?.getAttribute(gn)===o?h6(n,o):null;return s?{id:s,element:n,whole:f6(n,s),label:d6(n,s)}:null}function d6(e,o){let t=Ag(o);if(t)return t.part==="map"?"Map":t.part==="city"?"City":"Image";let r=wx(o);return r?Oa[r.part]:i6(o)?Us:e.getAttribute(nT)??void 0}var u6="data-loc-pick",m6=[co,nn,rf,rT,u6];function h6(e,o){let t=e.getAttribute(co)??e.getAttribute(nn);if(t)return t;let r=e.getAttribute(rf);if(r)return Es(o,r);if(e.getAttribute(rT)!==null)return s6(o);let a=e.getAttribute(u6)?.split(":");return a&&(a[1]==="image"||a[1]==="map"||a[1]==="city")&&/^\d+$/.test(a[0])?Og(o,Number(a[0]),a[1]):null}function f6(e,o){let t=e.closest?.(`[${gn}]`),r=t?.getAttribute(gn);if(!t||!r)return!1;let a=new Set;for(let n of t.querySelectorAll(m6.map(s=>`[${s}]`).join(","))){if(n.closest?.(`[${gn}]`)!==t)continue;let s=h6(n,r);s&&a.add(s)}return a.size===1&&a.has(o)}import{ENTRANCE_ATTR as x6,playEntrance as gme}from"efficient-shell/format";var iT=new WeakMap;function g6(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=uO(f),p=r.get(d),m=p?Sl.next(p,u,a):null;r.set(d,m?m.seen:Sl.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=nx(d.element);f&&i.set(f,[...i.get(f)??[],d])}for(let[d,f]of i){let u=h=>Gd(o(h.partKey)??{}),p=vl(f.filter(h=>u(h).entrance));if(p){let h=o(p.partKey)??{};n.push(rx(d,Oc(h,a)));let I=iT.get(d);iT.set(d,p.partKey),(s.get(p.partKey)||I!==void 0&&I!==p.partKey)&&d.hasAttribute(x6)&&gme(d)}else iT.delete(d);let m=d.hasAttribute(x6)?void 0:vl(f.filter(h=>Pa(o(h.partKey)??{},a).effect!=="none"));m&&n.push(ax(d,Pa(o(m.partKey)??{},a))),f.some(h=>u(h).hover==="lift")&&(sx(d.ownerDocument),d.setAttribute(vs,""),n.push(()=>d.removeAttribute(vs)))}return()=>n.forEach(d=>d())}function lT(e){let o=null,t=null;for(let r=e;r&&(o===null||t===null);r=r.parentElement){let a=r.getAttribute("class");o??=Q0(a),t??=My(a)}return{faceRole:o??"body",sizeGroup:t}}function Rg(e,o={}){let t=e.style,r={};for(let i of Rh)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=sD({fontSize:a.fontSize,fontWeight:a.fontWeight,lineHeight:a.lineHeight,letterSpacing:a.letterSpacing,textAlign:a.textAlign,textTransform:a.textTransform,paddingTop:a.paddingTop},iD(a.fontFamily,i=>n.getPropertyValue(i)));for(let i of Rh)t[i]=r[i];return s}function b6({needles:e,styles:o,motions:t=tx,type:r,children:a}){let n=I6(null),{selectedPartId:s}=bme(),{setPartStyle:i}=jl(),l=wme(Sme()),d=JSON.stringify(e),f=JSON.stringify(o),u=JSON.stringify(t),p=I6(new Map);return yme(()=>{let m=n.current;if(!m)return;let h=[],I=()=>m.parentElement,w=A=>{let D=I();if(!D)return null;let T=new MutationObserver(A);return T.observe(D,{attributes:!0,attributeFilter:[vme]}),()=>T.disconnect()},S=A=>{let D=new MutationObserver(A);return D.observe(m,{childList:!0,subtree:!0,characterData:!0}),()=>D.disconnect()},C=[];h.push(()=>{for(let A of C)A();C=[]});let b=JSON.parse(d),y=JSON.parse(f),v=JSON.parse(u),L=p6(m,b,I,w,(A,D,T)=>{for(let P of C)P();C=[];let F=[];for(let P of T){let O=P,W=_g(O);W&&C.push(W),O.getAttribute(co)===s&&F.push(O)}let k=lD(D,s,F,P=>eE(P)!==null||My(P)!==null);if(k&&s){let P=k,O=y6(s)?.propKey??"",W=wd(P)?{}:nD(wC(y,Ta(r,O)),l,{blockDrawsStyle:Od(r,O)});i({partId:s,...lT(P),base:Rg(P,W),inks:Ku(P),...(()=>{let G=wd(P);return G?{styleOwner:G}:{}})()})}CC(T.filter(P=>!wd(P)).map(P=>({element:P,partId:P.getAttribute(co)??""})),y,P=>Rg(P),P=>Ta(r,P),void 0,l,P=>Od(r,P));let _=[...m.querySelectorAll(`[${Bw}="${CSS.escape(D)}"][${Sd}]`)];_.length&&CC(_.map(P=>({element:P,partId:Cme(D,P.getAttribute(Sd)??"")})),y,void 0,P=>P,void 0,l),C.push(g6([...T.filter(P=>!wd(P)).map(P=>{let O=P,W=y6(O.getAttribute(co)??"")?.propKey??"";return{element:O,partKey:Ta(r,W)}}),..._.map(P=>({element:P,partKey:P.getAttribute(Sd)??""}))],P=>v[P],vi(l),p.current))},S);return()=>{L();for(let A of h)A()}},[d,f,u,s,i,l,r]),Ime("div",{ref:n,[fv]:"",style:{display:"contents"},children:a})}import{shownTier as _me}from"efficient-easel/screen/lib/document/device-fields";import{usePreviewDevice as Ome,usePreviewParts as Ame}from"efficient-easel/draw/client";var Af={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)]"},kme={tag:{label:"Tag",follows:"Labels",builtIn:gi(Af.tag),writable:!0},name:{label:"Name",follows:"Heading 2",builtIn:gi(Af.name),writable:!0},body:{label:"Body",follows:"Body",builtIn:gi(Af.body),writable:!0},price:{label:"Price",follows:"Labels",builtIn:gi(Af.price),writable:!0},link:{label:"Link",follows:"Labels",builtIn:gi(Af.link),writable:!0}},S6=kme;var PJe=Fn,w6={rowLabel:{label:"Spec row name",follows:"Labels",builtIn:"14px"},rowValue:{label:"Spec row value",follows:"Labels",builtIn:"14px"},diagramTitle:{label:"Diagram title",follows:"Labels",builtIn:"12px"},diagramCallout:{label:"Diagram measurement",follows:"Labels",builtIn:"12px"},diagramStatLabel:{label:"Diagram stat name",follows:"Labels",builtIn:"11px"},diagramStatValue:{label:"Diagram stat value",follows:"Labels",builtIn:"11px"}};var C6={SpecTable:w6,FAQ:r_,Collections:S6,Contents:gg};function v6(){return ni("efficient.section-text-regions",()=>new Map)}function BJe(e){let o=v6();for(let[t,r]of Object.entries(e)){if(He(C6,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 Kl(e){return e?$(C6,e)??v6().get(e)??null:null}function k6({nodeId:e,sectionType:o,partStyles:t,children:r}){let a=Eme(null),{selectedPartId:n}=Ame(),{setPartStyle:s}=jl(),i=_me(Ome()),l=JSON.stringify(t??null);return Pme(()=>{let d=a.current,f=Kl(o);if(!d||!e||!f)return;let u=[],p=Array.from(d.querySelectorAll(`[${Fn}]`));for(let m of p){let h=Ey(f,m.getAttribute(Fn));if(!h)continue;let I=_g(m);I&&u.push(I);let w=vc(h),S=qr(e,w);m.setAttribute(nn,S);let C=t?.[w];if(f[h].sized&&vC(C)){let b=kC(C,i),y={fontFamily:m.style.fontFamily,fontSize:m.style.fontSize},v=m.getAttribute(vr);b.fontFamily&&(m.style.fontFamily=b.fontFamily),b.fontSize&&(m.style.fontSize=b.fontSize);let L={fontFamily:b.fontFamily?m.style.fontFamily:void 0,fontSize:b.fontSize?m.style.fontSize:void 0},A=C?.textStyle;Ca(A)&&m.setAttribute(vr,A),u.push(()=>{fD(m.style,y,L),v===null?m.removeAttribute(vr):m.setAttribute(vr,v)})}if(S===n){let b=Rg(m,dD(C,f[h],i));s({partId:S,...lT(m),base:b})}}return()=>{for(let m of u)m();for(let m of p)m.removeAttribute(nn)}},[e,o,n,s,i,l]),Tme("div",{ref:a,style:{display:"contents"},children:r})}import{jsx as cT,Fragment as T6}from"react/jsx-runtime";import{createContext as Rme,useContext as P6,useMemo as Lme}from"react";var dT=Rme(null),E6=e=>e==null||e===""?void 0:String(e);function fT({content:e,children:o}){let t=Lme(()=>Gw(e),[e]);return cT(dT.Provider,{value:t,children:o})}function JJe({id:e,children:o}){let t=P6(dT),r=E6(e);return cT(T6,{children:o(r?t?.entries.get(r):void 0)})}function QJe({id:e,children:o}){let t=P6(dT),r=E6(e);return cT(T6,{children:o(r?t?.numbers.get(r):void 0)})}var Nme={SectionTextParts:k6},Dme="color-mix(in oklab, var(--bg) 40%, #ffffff)",Mme="12vh";function Hme({style:e,children:o}){let{appState:t}=Bme(p=>p),r=t.data.content,a=t.data.root;if(qD(r))return ar("div",{className:"sf-themed-content",style:{...e,background:Dme,minHeight:"100vh",paddingBottom:Mme},children:ar("div",{style:{background:"var(--bg)"},children:ar(fT,{content:r,children:o})})});let n=HC(r)&&$C(a,r),s=HC(r)?ZD(a,r):null,i=s?{[XD]:s}:null,l=LL(a?.widthChoice),d=l?{[RL]:l}:null,f=n?null:K$(r),u=f?{[j$]:f}:null;return ar("div",{className:`sf-themed-content${n?` ${jD}`:""}`,style:e,...u,...i,...d,children:ar("div",{style:{background:"var(--bg)",minHeight:"100%"},children:ar(fT,{content:r,children:o})})})}function bQe({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 J$(),ar(pT,{propsTheme:e,propsFonts:o,propsCornerStyle:t,propsCornerRadiusPx:r,propsHeadingCompression:a,propsHeadingTypography:n,pageBackground:s,chromeInheritsSiteBackground:i,onClickCapture:l,body:p=>_6(Fme,{children:[ar(Hme,{style:p,children:u}),d,f]})})}function pT({propsTheme:e,propsFonts:o,propsCornerStyle:t,propsCornerRadiusPx:r,propsHeadingCompression:a,propsHeadingTypography:n,pageBackground:s,chromeInheritsSiteBackground:i,onClickCapture:l,body:d}){let{theme:f,fonts:u,sizes:p,cornerRadiusPx:m,cardShadow:h,shadowColor:I,cardGap:w,hoverEffect:S,headingCompression:C,siteWidth:b,siteGutter:y,siteGutterPhone:v,blockGap:L,blockGapPhone:A,siteLengthUnits:D,headingTypography:T,heroBackgroundFollowsWidth:F,photographyGrayscale:k,textStyles:_,wordStyles:P,themeFromDocument:O}=fe(),W=O?e:f,G=O?o:u,Z=O?void 0:p,V=O?r===void 0?Qp[Jp(t)]:Ht(r):m,de=O?{}:D,ve=O?a:C,oe=O?n:T,Oe=[PD(SD(O?void 0:_)),ED(eu(oe).italicStrong)].filter(Boolean).join(`
341
+ `),_e=tT(),Ae={...E_(W),...M_(Z),...q_(oe),..._e.style,...i?{}:Vu(s)};return _6("div",{className:`sf-theme-surfaces sf-theme-accent ${[OL(O?void 0:v),bF(O?void 0:A)].filter(Boolean).join(" ")}`.trim(),style:{...oE(G),...aE(O?null:P),...__(W),...O_(W),...R_(W),...Zp(W),...W_(V,de.cornerRadiusUnit),...K_(O?void 0:h,O?void 0:I,O?void 0:S),...wL(O?void 0:b,de.siteWidthUnit),...PL(O?void 0:y,de.siteGutterUnit),..._L(O?void 0:v,de.siteGutterPhoneUnit),...IF(O?void 0:L,de.blockGapUnit),...yF(O?void 0:A,de.blockGapPhoneUnit),...vm(O?void 0:F)},"data-sf-headings":V_(ve),"data-sf-card-shadow":O?void 0:z_(h),"data-sf-card-gap":O?void 0:G_(w),"data-sf-card-hover":O?void 0:j_(S),onClickCapture:l,children:[Oe?ar("style",{"data-sf-text-styles":"",dangerouslySetInnerHTML:{__html:Oe}}):null,ar(U$,{grayscale:O?void 0:k,children:ar(t6,{value:Nme,children:ar(G$,{ink:T_(W),children:d(Ae)})})})]})}var O6=e=>{e.target?.closest?.("a")&&e.preventDefault()};var Lg=[{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"]}],Vl="all",Fg="template";function A6(e){for(let o=0;o<Lg.length;o++){let t=Lg[o].slugs.indexOf(e);if(t>=0)return o*100+t}return Number.MAX_SAFE_INTEGER}function R6(e){return e.map((o,t)=>({s:o,i:t})).filter(({s:o})=>o.source==="library").sort((o,t)=>A6(o.s.slug)-A6(t.s.slug)||o.i-t.i).map(({s:o})=>o)}function uT(e){return e.filter(o=>o.source==="template")}function L6(e){let o=new Set(R6(e).map(t=>t.slug));return Lg.filter(t=>t.slugs.some(r=>o.has(r)))}function F6(e,o){if(e===Fg)return uT(o);let t=R6(o);if(e===Vl)return t;let r=Lg.find(a=>a.key===e);return r?t.filter(a=>r.slugs.includes(a.slug)):[]}function B6(e){let o=e.content;return Array.isArray(o)&&o.length>0?o[0]:null}var Vme=1440,Yme=1080;function D6({starter:e,config:o,metadata:t,busy:r,onAdd:a}){let{mirrorHostStyles:n}=Lc(),[s,i]=$me(null),l=Wme(()=>{let d=B6(e.layout),f=e.layout.zones;return{root:{props:{}},content:d?[d]:[],zones:f??{}}},[e.layout]);return N6("div",{className:"sf-starter",children:[N6(Gme,{padding:"none",className:"sf-starter-picture",children:[Pr("div",{inert:!0,className:"sf-starter-frame",children:Pr(jme,{width:Vme,height:Yme,children:Pr(Ume,{id:`page-starter-${e.id}`,title:e.title,mirrorStyles:n,onDocument:i,height:"fill",children:Pr(Gh,{document:s??void 0,children:Pr(pT,{onClickCapture:O6,body:d=>Pr("div",{className:"sf-themed-content",style:d,children:Pr("div",{style:{background:"var(--bg)"},children:Pr(W$,{config:o,data:l,metadata:t})})})})})})})}),Pr("div",{className:"sf-starter-add",children:Pr(zme,{onClick:()=>a(e),loading:r,"aria-label":c("Add \u201C{name}\u201D",{name:e.title}),children:c("Add page")})})]}),Pr(Kme,{size:"sm",children:e.title})]})}import{useMemo as qye}from"react";import{sessionRegistry as Xye}from"efficient-easel/screen/lib/session";import{useEaselSession as Zye}from"efficient-easel/screen/lib/session-context";import{currentEaselSession as qme}from"efficient-easel/screen/lib/session";var Xme={general:!0,commerce:!0,service:!0};function mT(e){let o=e?.sets;return o?Object.fromEntries(j0.map(t=>[t,o.includes(t)])):Xme}function hT(e=qme()){return mT(e.blocks)}import{currentEaselSession as X6}from"efficient-easel/screen/lib/session";import{SITE_SIDE as W6}from"efficient-easel/screen/lib/content/length-units";var M6=[{text:"Ticker item"},{text:"Ticker item"},{text:"Ticker item"},{text:"Ticker item"}],HQe={label:"Scrolling Bar",defaultProps:{items:[],tone:"scrim",borders:!0,size:NE,separator:DE,scrollDirection:vf}};var H6=()=>[{text:c("Spec label"),tone:"normal"},{text:c("Spec value"),tone:"muted"},{text:c("Spec label"),tone:"normal"},{text:c("Spec value"),tone:"muted"}],UQe={label:"Spec Strip",defaultProps:{cells:[{text:"",tone:"normal"},{text:"",tone:"normal"}],fill:"dark"}};function Ko(e,o,t,r={}){return{type:e,props:{...o(e),id:t(e),...r}}}function $6(e,o,t){return Ko(Y,e,o,{...t,sectionPaddingTop:void 0,sectionPaddingBottom:void 0})}var Bg={Manifesto:(e,o)=>({type:Y,props:{...e(Y),id:o(Y),direction:"row",share:"equal",sectionHeightMode:"screen",name:"Brand Text",content:[Ko(Y,e,o,{direction:"column",justify:"center",blockSpacing:"gap",name:"Text",sectionPaddingTop:100,sectionPaddingBottom:100,sectionPaddingLeft:W6,sectionPaddingRight:W6,content:[Ko("Text",e,o,ca()),Ko("Text",e,o,Da()),Ko("Text",e,o),Ko("Stats",e,o)]}),$6(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:[Ko(Y,e,o,{direction:"column",justify:"center",blockSpacing:"gap",name:"Text",sectionPaddingTop:100,sectionPaddingBottom:100,sectionPaddingLeft:60,sectionPaddingRight:60,content:[Ko("Text",e,o,ca()),Ko("Text",e,o,Da()),Ko("Text",e,o),Ko("ButtonBlock",e,o)]}),$6(e,o,{direction:"column",name:"Image",content:[Ko("ImageBlock",e,o)]})]}}),Subscribe:(e,o)=>({type:Y,props:{...e(Y),id:o(Y),direction:"column",name:"Subscribe",content:[Ko("Text",e,o,Da()),Ko("Text",e,o),Ko("Form",e,o)]}}),Ticker:(e,o)=>U6("Scrolling Bar",lg,kf,M6.map(t=>({text:t.text,style:cg,muted:!0})),e,o),SpecStrip:(e,o,t)=>U6("Spec Strip",t?.theme?{...Pf,sectionAccent:Xp(vo(t.theme))}:{...Pf,sectionBorder:{top:1}},Tf,H6().map(r=>({text:r.text??"",style:Ef,muted:r.tone==="muted"})),e,o)};function U6(e,o,t,r,a,n){return Ko(Y,a,n,{...Ws,...o,blockSpacing:"gap",padV2:!0,name:e,sectionPaddingTop:t.top,sectionPaddingBottom:t.bottom,sectionPaddingTopPhone:t.topPhone,sectionPaddingBottomPhone:t.bottomPhone,content:r.map(s=>Ko("Text",a,n,{text:s.text,...s.muted?{tone:"dim"}:{},_partStyles:{text:s.style}}))})}function z6(e){return $(Bg,e)??null}import{isNodeList as xT}from"efficient-easel/data";var ueo=Object.keys(Jk),Zme={Logos:Q5,DocMasthead:rW,DocTabs:uW,Timeline:P3,TimelineTrack:E3},Jme={PaymentBadges:e3,PaymentLogosBlock:o3,Integrations:d$};function Ng(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]=xT(n)?n.map(s=>Ng(s,o,t)):n;return r.id=t(e.type),{type:e.type,props:r}}var G6=e=>({...e?.theme?{theme:e.theme}:{},...e?.site?{site:e.site}:{},press:!0});function Rf(e,o,t=0,r=()=>({})){return(a,n,s)=>{let{nodes:i}=Rs({type:e,props:{...a(e),...r(),id:n(e)}},o,G6(s));return Ng(i[t],a,n)}}var Qme={Stats:ohe,Cards:ehe};function ehe(){let e=dn("Cards");if(!e)return null;let o=Rf("Cards",e,0,k5);return(t,r,a)=>{let n=o(t,r,a);return{...n,props:{...n.props,name:"Cards section"}}}}function ohe(){let e=dn("StatsParagraph");return e?(o,t,r)=>{let{nodes:a}=Rs({type:"StatsParagraph",props:{...o("StatsParagraph"),...D5(),id:t("StatsParagraph")}},e,G6(r)),n=a[0],s=xT(n.props.content)?n.props.content.filter(f=>f.props?.cardStyle===void 0):[],i=K6(fk(M5(),"table")),l=s.map(j6),d=Ng({...n,props:{...n.props,content:[...l,i]}},o,t);return{...d,props:{...d.props,name:"Stats section"}}}:null}function j6(e){return e.props?.name==="Words"?{...e,props:{...e.props,widthFitPhone:"fill"}}:xT(e.props?.content)?{...e,props:{...e.props,content:e.props.content.map(j6)}}:e}var K6=e=>Nr([e],(o,t)=>`${o}-seed-${t}`)[0];function the(e,o){if(!T4(e,o))return null;let t=$(Qme,e);if(t)return t();let r=dn(e);return r?Rf(e,r,0,$(Zme,e)??$(L$,e)??$(Jme,e)):null}function rhe(e){return(o,t,r)=>{let a=n=>{if(n.type==="Stats"){let i=Ng(K6(fk([],"list")),o,t);return{...i,props:{...i.props,name:"Numbers"}}}let s=ho(n,i=>so(i,a));return s===n?n:{type:n.type,props:s.props}};return a(e(o,t,r))}}function Yl(e,o=As){let t=z6(e);return t?rhe(t):the(e,o)}import{blockTypesIn as V6}from"efficient-easel/screen/lib/document/block-types-in";var Y6=()=>({}),q6=new Map;function ahe(e){let o=q6.get(e);if(o)return o;let t=new Set,r=$(Zt,e);if(r)for(let s of r.seeds(Y6))for(let i of V6({type:r.childType,props:s}))t.add(i);let a=Yl(e);if(a){let s=0;for(let i of V6(a(Y6,l=>`${l}-${s+=1}`)))t.add(i)}t.delete(e);let n=[...t].sort();return q6.set(e,n),n}function gT(e){if(!e||!e.sets&&!e.allow&&!e.deny?.length)return null;let o=mT(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=q0(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)&&ahe(l).every(i);return s.set(l,f),f};return{sets:o,offers:i}}var nhe="block-offer";function IT(e=X6()){return e.cache(nhe,()=>gT($i(e)))}function Z6(e,o=X6()){let t=IT(o);return t?t.offers(e):!0}var J6={name:"catalogueLabel",applies:e=>He(_n,e),draw(e,o){e.label=$(_n,o)}};import{jsx as CT}from"react/jsx-runtime";import{parseBlockWidthFit as dhe,phoneKey as Er,tabletKey as nr}from"efficient-easel/draw";import{jsx as she}from"react/jsx-runtime";import{phoneKey as Dg}from"efficient-easel/draw";var Q6={name:"sectionGroupAllow",applies:e=>ku.includes(e),panel(e,o,t,r){let a=e.fields?.sections;a&&(a.allow=[...r.sectionGroupAllow])}},yT=new Set(Object.keys(pr)),eU={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=>!yT.has(l)):a;s.disallow=Array.from(new Set([...s.disallow??[],...i]))}}};var tU=Array.from(new Set([...Z0.map(e=>e.type),...yT]));function bT(e,o){return tU.includes(e)||o?.sitsInBox===!0}var ihe=Array.from(new Set([...tU,...Cp,"GalleryItem"])),lhe={not:{context:"parentOffersPositions",is:!1}},che={not:{context:"parentTileSlot",is:!1}},oU=[Bi,Dg("gridSpan"),Dg("gridRowSpan")],rU={name:"cellWidth",applies:(e,o,t)=>(ihe.includes(e)||bT(e,t))&&!!t&&typeof t.render=="function",panel(e,o,t){let r=t.cellWidthFields;e.fields={...e.fields,...r()};let a=Object.keys(r());e.fields=it(e.fields??{},a.filter(n=>!oU.includes(n)),lhe),e.fields=it(e.fields??{},oU,che)},draw(e){let o=e.render;e.render=t=>{let r=xA(t.gridSpan),a=Ob(t.gridRowSpan),n=yA(t[Bi]),s=SA(t[Dg("gridSpan")]),i=wA(t[Dg("gridRowSpan")]),l=o(t);if(r==null&&a==null&&n==null&&s==null&&i==null)return l;let d={};r!=null&&(d[gA]=String(r)),a!=null&&(d[IA]=String(a)),s!=null&&(d[CA]=String(s)),i!=null&&(d[vA]=String(i));let f=n!=null?{[bA]:n}:void 0;return she(me,{className:"sf-grid-cell",style:f,...d,children:l})}}};function aU(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 Lf={not:{context:"heldByANode",is:!0}};function Mg(e,o){return"parent"in o?o.parent!=null:!!oa(o.appState,e.props?.id)}function oa(e,o){let t=e?.data?.content;if(!Array.isArray(t)||typeof o!="string")return;let r=(a,n)=>{for(let s of a){if(s?.props?.id===o)return n;for(let i of ii(s??{})){let l=r(i,s);if(l!==void 0)return l}}};return r(t,null)}var fhe=new Set(["Text","Heading"]),phe=new Set(["h1","h2","h3","h4","h5","h6"]);function nU(e,o){return e==="Heading"?!0:e!=="Text"?!1:typeof o.tag=="string"&&phe.has(o.tag)?!0:hs(o,"text").textStyle?.startsWith("heading-")===!0}var In={not:{context:"blockOutsideBox",is:!0}},sU={all:[In,{not:{context:"boxSharesWidth",is:!0}}]},iU={all:[In,{not:{context:"boxSharesWidthPhone",is:!0}}]},lU={all:[In,{not:{context:"boxSharesWidthTablet",is:!0}}]};function pU(e,o,t){return{any:[{field:nr(e),is:o},{all:[{field:nr(e),set:!1},t??{field:e,is:o}]}]}}function uU(e,o,t){return{any:[{field:Er(e),is:o},{all:[{field:Er(e),set:!1},t??{field:e,is:o}]}]}}var mU={any:[{field:"textFit",is:"shrink"},{all:[{field:"textFit",set:!1},{not:{context:"textWrapsByDefault",is:!0}}]}]},uhe=[[["_gBlockSize","minWidth",nr("minWidth"),Er("minWidth"),"maxWidth",nr("maxWidth"),Er("maxWidth")],In],[["widthFit"],sU],[[nr("widthFit")],lU],[[Er("widthFit")],iU],[["width"],{all:[sU,{field:"widthFit",is:"fixed"}]}],[[nr("width")],{all:[lU,pU("widthFit","fixed")]}],[[Er("width")],{all:[iU,uU("widthFit","fixed")]}]],cU=pU("textFit","shrink",mU),dU=[[["_gText","textFit",nr("textFit"),Er("textFit")],In],[["minFont"],{all:[In,mU]}],[[nr("minFont")],{all:[In,cU]}],[[Er("minFont")],{all:[In,uU("textFit","shrink",cU)]}]],Hg=(e,o)=>oa(o.appState,e.props?.id),Wg=e=>!!e&&typeof e.type=="string"&&vp(e.type)!==null,ST=e=>(e.type==="Flex"||e.type==="HeroGroup")&&Kr(e.type,e.props?.direction)==="row",wT=e=>{let o=dhe(e);return o!==void 0&&o!=="fit"},mhe={blockOutsideBox:(e,o)=>!Wg(Hg(e,o)),boxSharesWidth:(e,o)=>{let t=Hg(e,o);return!Wg(t)||!ST(t)?!1:Sy({...t.props,direction:"row"})!==""?!0:Iy(t.props?.share)!==""&&!wT(e.props?.widthFit)},boxSharesWidthTablet:(e,o)=>{let t=Hg(e,o);if(!Wg(t)||!ST(t))return!1;if(jE(t.props?.[nr("columns")])!==""||Sy({...t.props,direction:"row"})!=="")return!0;let r=WE(t.props?.[nr("share")])??t.props?.share;return Iy(r)!==""&&!wT(e.props?.[nr("widthFit")]??e.props?.widthFit)},boxSharesWidthPhone:(e,o)=>{let t=Hg(e,o);if(!Wg(t)||!ST(t))return!1;let r=t.props?.phoneRow;return(Number(r)===2||Number(r)===3)&&!KE(r,t.props?.[Er("share")])&&!wT(e.props?.[Er("widthFit")]??e.props?.widthFit)}},hhe=e=>/^_[gds][A-Z]/.test(e);function xhe(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&&!hhe(r[n][0]);)n++;return Object.fromEntries([...r.slice(0,n),...Object.entries(t),...r.slice(n)])}function fU(e,o,t){let r=Object.entries(e);return Object.fromEntries([...r.slice(0,o),...Object.entries(t),...r.slice(o)])}function ghe(e,o,t){let r=Object.keys(o);if(r.includes("_dSize")){let{_gBlockSize:a,...n}=t;return fU(o,r.indexOf("_dSize")+1,n)}return Ihe.has(e)&&r.includes("_gSpacing")?fU(o,r.indexOf("_gSpacing"),t):{...o,...t}}var Ihe=new Set(["Text","Heading"]);function yhe(e,o){let{_gText:t,...r}=o;return xhe(e,"_gText",r)??{...e,...o}}function bhe(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",nr("textFit"),Er("textFit")])a in r&&(r[a]=e[a]);o.set(t,r)}return r}}var hU={name:"blockSize",applies:(e,o,t)=>bT(e,t)&&!!t&&typeof t.render=="function",panel(e,o,t){let r=fhe.has(o),{text:a}=t.blockSizeFields(r?{tablet:!0,textFit:o==="Heading"?"shrink":"wrap"}:{}),{size:n}=t.blockSizeFields({tablet:!0}),s=ghe(o,e.fields??{},Et(n,uhe));if(r){let i=Et(a,dU);if(s=yhe(s,i),o==="Text"){let l=Et(t.blockSizeFields({tablet:!0,textFit:"shrink"}).text,dU),d=bhe(l),f=e.resolveFields,u=(p,m)=>{let h=f?f(p,m):m.fields,I=w=>nU(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,{...mhe,textWrapsByDefault:i=>!nU(o,i.props??{})})},draw(e,o){She(e,o)}};function She(e,o){let t=e.render;e.render=r=>{let a=Nx(r),n=Gv(a),s=t(r),i=n&&Gv(a,{atSectionLine:!0});return n===null?s:CT(whe,{size:n,sectionSize:i??n,atEdge:o===Y,canvasAttrs:r.editor?.isEditing?$4(a):xU,inCell:W4(a),fillsPhone:D4(a),widens:U4(a),children:s})}}var xU={};function whe({size:e,sectionSize:o,atEdge:t,canvasAttrs:r,inCell:a,fillsPhone:n,widens:s,children:i}){let l=cu(),d=$a(t?"edge":"by-box"),f=d?e:o,u=f.className,p=l?.phoneCells===!0,m=n&&l?.phoneRowFits===!0,h=s?CT(B2,{children:i}):i;return CT(Ei,{className:[u,p?a:"",m?N4:""].filter(Boolean).join(" "),...Object.keys(f.style).length?{style:f.style}:{},attrs:d&&r!==xU?{...f.attrs,...r}:f.attrs,children:h})}import{Fragment as Fhe,jsx as Gg}from"react/jsx-runtime";import{jsx as at,Fragment as PT}from"react/jsx-runtime";import{createContext as ql,useContext as _r}from"react";var Che=new Set(["Flex","Grid"]);function yn(e){return typeof e=="string"&&Che.has(e)}var zs="contentWidth",vT="full",kT="content";function Bf(e){let o=e?.[zs];return o===vT?!1:o===kT?!0:void 0}function gU(e,o){return e&&!o}function $g(e){return e.loop==="scroll"&&e.direction!=="tabs"&&e.direction!=="accordion"&&!XA(e)&&!n3(e.scrollDirection)}function Ff(e,o){return yn(e)&&$g(Vc(o,!1))?ns({}):ns(o)}function Ug(e,o){return typeof e!="string"||!Hm(e)||Zi[e]==="rawMarkup"?Ff(e,o).background??"full":Ff(e,o).background??Wm(o).background}function zg(e){return e!=="full"}function IU(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=yn(d?.type),p=(i?Ff(d?.type,f).content:null)==="content"?!0:s,m=u&&(n.inBox?Bf(f)??p:p),h={insideGutter:n.insideGutter||m||u&&$g(Vc(f,l)),inBox:n.inBox||u};for(let I of Br({type:d?.type,props:f})){let w=f[I],S=r(w,h,p,!1,l||Bn(d?.type,I));if(S!==void 0)return S}}};return r(e,{insideGutter:!1,inBox:!1},t,!0,!1)}var vhe=" [--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))))]",khe="[--sf-edge-g:0px] [--sf-edge-al:var(--sf-edge-l)] [--sf-edge-ar:var(--sf-edge-r)]",The="[--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)))]",yU="max-w-[100vw]",Phe=`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))] ${yU}`;function bU(e){let o={},t=e.pad??{},r=rd({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}${vhe}`:`${khe}${s?` ${n.className}`:""}`} ${The}`,style:o}}function coo(e){let{className:o,style:t}=bU(e);return{className:`${o} ${Phe}`,...Object.keys(t).length?{style:t}:{}}}var Ehe="[--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 _he="--sf-edge-beyond";function SU(e){return`max(0px,calc((${e===null?od:`min(${od},${e})`} - ${$o}) / 2))`}var Ohe=`${Ehe} 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))] ${yU}`;function doo(e){let{className:o,style:t}=bU(e);return{className:`${o} ${Ohe}`,style:{...t,[_he]:e.beyond??"0px"}}}var Nf=ql(!1);function boo(){return _r(Nf)}function Soo({children:e}){return at(Nf.Provider,{value:!0,children:e})}var TT=ql(!1);function ET({children:e}){return at(TT.Provider,{value:!0,children:e})}var wU=ql(null);function _T({ground:e,children:o}){return at(wU.Provider,{value:e,children:o})}var OT=ql(!1);function Ahe(){return _r(OT)}function CU({atTop:e,nested:o}){return at(PT,{children:Ahe()?o:e})}var Df=ql(void 0);function vU({children:e}){return at(Df.Provider,{value:null,children:e})}function AT(){return _r(Df)===void 0&&!_r(OT)&&!_r(Nf)}function Xl({own:e,followed:o}){return at(PT,{children:AT()?e():o()})}var kU=ql(null);function TU({value:e,children:o}){return at(kU.Provider,{value:e,children:o})}function PU({draw:e}){return at(PT,{children:e(_r(kU))})}function woo(){return _r(Df)??null}function EU({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=_r(Nf),S=_r(TT),C=gU(e,w),b=C&&!S,y=Wt(),v=!!(i&&b),L=v?p:et(p??"",y.className)||void 0,A=v||!y.className?l:{...l,...y.attrs},D=s&&!b?UL(s.values,s.frame):null,T=i&&!b?i:null,F=d&&!m?kL:null,k=[b?o:t,b?F:null,D?.className,T?iF:null].filter(Boolean).join(" "),_=Rhe(m&&b,D||T?{...a,...D?.style,...T}:a),P=_r(Df),O=_r(wU),W=d&&f&&P===void 0?{gutter:C,...s?{pad:s.values}:{},beyond:C&&S?SU(O):"0px",...h&&C?{site:!0}:{}}:null,G=d?at(OT.Provider,{value:!0,children:at(Df.Provider,{value:W,children:I})}):I,Z=C?at(Nf.Provider,{value:!0,children:G}):G,V=s&&b?$L(s.values):null,de=A&&Object.keys(A).length>0?A:null,ve=at("div",{...V?null:de,className:!V&&L?k?`${k} ${L}`:L:k,style:V||!u?_:{..._,...u},"data-tab-label":n,children:S?at(TT.Provider,{value:!1,children:C&&!m?at("div",{className:F?`${r} ${F}`:r,children:Z}):Z}):Z}),oe=V?at("div",{...de,className:L?`${V.className} ${L}`:V.className,style:u?{...V.style,...u}:V.style,children:ve}):ve;return y.scope(i&&b?at("div",{className:et(Rm,y.className),style:{display:"contents",...i},...y.attrs,children:oe}):oe)}function Rhe(e,o){return e?{...o,paddingLeft:0,paddingRight:0}:o}import{jsx as Lhe}from"react/jsx-runtime";function _U({children:e}){return Lhe(me,{className:i3,children:e})}function Bhe({side:e,children:o}){return AT()?Gg(_U,{children:Gg(me,{className:l3(e),children:o})}):Gg(Fhe,{children:o})}var OU={name:"boxJoin",applies:(e,o,t)=>e===Y&&!!t&&typeof t.render=="function",draw(e){let o=e.render;e.render=t=>{let r=ig(t.join);return r?Gg(Bhe,{side:r,children:o(t)}):o(t)}}};var AU=(e,o)=>e.fields?.[o]?.type==="slot",Nhe=(e,o)=>AU(o,Ue)||Gp(e).some(t=>AU(o,t)),RU={name:"cardTemplateOnInsert",applies:(e,o,t)=>Nhe(e,t),panel(e,o){let t=e.resolveData;e.resolveData=(r,a)=>{let n=r.props??{},s=a?.trigger,i=s==="insert"?Wp(o,n):s==="copy"?Hp(o,n):n,l=i===n?r:{...r,props:i};return t?t(l,a):l}}};import{jsx as Vg}from"react/jsx-runtime";import{Fragment as Gs,jsx as ao,jsxs as RT}from"react/jsx-runtime";import{createContext as LT,useContext as bn,useId as Uhe}from"react";import{REPEAT_ATTRIBUTE as zhe,REPEAT_INDEX_ATTRIBUTE as Ghe}from"efficient-easel/draw";import{jsx as $oo}from"react/jsx-runtime";import{createContext as Hhe,useContext as NU,useMemo as Whe}from"react";var LU="title";function FU(e){return`${e}Alt`}function Dhe(e){let o=e.find(t=>typeof t?.url=="string");return{url:o?.url??"",alt:typeof o?.alt=="string"?o.alt:""}}function BU(e,o){let t={[LU]: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}=Dhe(n);t[r]=s,t[FU(r)]=i}}return t}function Mhe(e,o){return typeof o!="string"?o.flatMap(t=>Mhe(e,t)):e===Ut||!gb(e)?[]:o==="image"?bb(e,["images"]).map(t=>({key:t.key,label:t.label,kind:"image",alt:FU(t.key)})):o!=="text"?[]:[{key:LU,label:c("Title")},...bb(e,["text","date"]).map(t=>({key:t.key,label:t.label}))]}var DU=Hhe(null);function $he(){return NU(DU)?.record??null}function joo(e){let o=$he();return o!==null&&o.type===e?o:null}function MU(){let e=NU(DU);return Whe(()=>e&&e.record.type!==Ut?BU(e.record,e.dateWords):null,[e])}function ato({props:e,editing:o,children:t}){let r=bn(Mf);return!o&&Ry(e,r?.row)?null:ao(Gs,{children:t})}var Kg=LT(null);function nto({field:e,children:o}){let t=bn(Kg);return ao(Gs,{children:o(t&&t.field===e?t.id:void 0)})}function jhe(e,o){return e?.find(t=>!!o[t.field]?.trim()&&!t.gates.some(r=>Ry({[si]:r},o)))?.field??""}var Mf=LT(null),jg=LT(null),Khe={label:"text-[length:var(--size-label,12px)]"},Vhe=`flex min-h-6 items-center border border-dashed border-line px-2 py-1 ${Khe.label} text-fg-dim`;function sto({name:e,label:o,editing:t}){let r=bn(jg)?.(e),a=pu()!=="";return r!=null&&r!==!1?a?ao(me,{className:"contents",children:r}):ao(Gs,{children:r}):t?ao(me,{className:Vhe,children:c("Shown by the section: {name}",{name:o?.trim()||e})}):null}function ito(){return bn(Mf)}function FT({type:e,props:o,children:t}){let r=bn(Mf),a=MU(),n=r?.row??a;return ao(Gs,{children:t(h_(e,o,n,r?.ownerType,r?.fields,r?.slot),r,n)})}function Yhe({attrs:e,selected:o,hover:t,action:r,titleField:a,children:n}){let s=Uhe(),{press:i,disabled:l}=r,d=r.label?.trim(),f=!d&&a?{id:`${s}-title`,field:a}:null;return RT("div",{...e,id:s,className:t&&!l?`${ov} ${K2}`:ov,children:[ao("button",{type:"button",[q2]:"",className:l?J2:Z2,"aria-pressed":o,...d?{"aria-label":d}:{"aria-labelledby":f?.id??s},...l?{"aria-disabled":!0,tabIndex:-1}:null,onClick:l?void 0:i}),ao(Kg.Provider,{value:f,children:n})]})}function lto({ownerId:e,ownerType:o,slot:t=Ue,Template:r,rows:a,items:n,fields:s,states:i,stateLine:l,actions:d,pressTitles:f,previewHover:u,fallback:p,copyAttrs:m,wrapCopy:h,rowKey:I,hostParts:w,children:S}){let C=bn(Mf),b=bn(Kg),y=bn(jg);if(!r||(r.blockCount??0)<=0)return ao(Gs,{children:p});let v=C!==null,L=c_(o),A=u??C?.previewHover,D=r.blockCount===1?ao(_O,{children:ao(r,{className:vO})}):ao(r,{}),T=new Set,F=(_,P)=>{if(!I)return P;let O=I(_,P);for(;T.has(O);)O=`${O}#${P}`;return T.add(O),O},k=a.map((_,P)=>{let O=i?.[P],W={row:_,index:P,ownerType:o,slot:t,item:n?.[P],nested:v,...s?{fields:s}:null,...O?{state:O}:null,...L?{linesBetween:L}:null,...A?{previewHover:A}:null},G=Tv(O)?RT(Gs,{children:[D,l==="under"?ao("span",{"aria-hidden":"true",className:U2}):kv(O)?RT("span",{"aria-hidden":"true",className:z2,children:[ao("span",{className:G2}),ao("span",{className:j2})]}):ao("span",{"aria-hidden":"true",className:$2})]}):D,Z={[zhe]:`${e}:${t}`,[Ghe]:P,...typeof m=="function"?m(W):m},V=d?.[P],de=V2(O,l),ve=V?ao(Yhe,{attrs:{...Z,...de},selected:O?.selected===!0,hover:l!=="under",action:V,titleField:jhe(f,_),children:G}):b?ao("div",{...Z,...de,children:ao(Kg.Provider,{value:null,children:G})}):ao("div",{...Z,...de,children:G}),oe=h?h(ve,W):ve;return ao(Mf.Provider,{value:W,children:w?ao(jg.Provider,{value:Oe=>w(W,Oe),children:oe}):y?ao(jg.Provider,{value:null,children:oe}):oe},F(W,P))});return ao(Gs,{children:S(k)})}var HU={name:"clickableParts",applies:(e,o,t)=>typeof t?.render=="function"&&e!==Oo&&e!==Ii,draw(e,o,t){let r=e,a=()=>r.textParts??r.fields,n=r.render,s=t.inspector?.PartAnchors,i=(l,d)=>JB(a(),d,f=>u_(o,l,f));r.render=l=>{let d=ZN(l),f=a2(l);return l.editor?.isEditing&&s?Vg(FT,{type:o,props:l,children:u=>Vg(s,{needles:i(l,u),styles:d,motions:f,type:o,children:n(l)})}):!Object.keys(d).length&&!Object.keys(f).length?n(l):Vg(FT,{type:o,props:l,children:u=>Vg(p2,{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 $U={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=F1(t.sectionCorners,t.sectionCornerSides,t.sectionCornersUnit),a=o(t);return r?WU(me,{className:"sf-section-corners",style:{display:"contents",...r},children:a}):a}}},BT=["CollectionCard"],UU={name:"cardCorners",applies:(e,o,t)=>BT.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=N1(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 zU={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 GU={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 jU,jsxs as qhe}from"react/jsx-runtime";var Xhe="Flex",KU=(e,o)=>e[o]!==void 0&&e[o]!==!1&&!e.editor?.isEditing,VU={name:"headCore",applies:(e,o,t)=>typeof t?.render=="function",draw(e){let o=e.render;e.render=t=>KU(t,Jd)?jU(me,{className:px,children:t[Jd]==="empty"?null:o(t)}):o(t)}},YU={name:"headBox",applies:(e,o,t)=>e===Xhe&&typeof t?.render=="function",draw(e){let o=e.render;e.render=t=>KU(t,Zd)?qhe(me,{className:ux,children:[jU(mx,{}),o(t)]}):o(t)}};import{createElement as Zhe}from"react";var qU={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(ua(n))return null;let s=Yc(n),i=LO(s,rR(n),{sectionClassName:Yc(n,{atSectionLine:!0}),line:r});return Zhe(OO.Provider,{value:i},a(n))}}};import{jsx as oxe}from"react/jsx-runtime";import{createContext as ZU,createElement as XU,useContext as Jhe}from"react";var JU=ZU(null),Qhe=ZU(!1),Nto=JU.Provider;function exe(e,o,t){return e===void 0||e===""||o===null||o.length===0||!t.includes(e)?!0:o.includes(e)}function QU({name:e,editing:o,children:t}){let r=Jhe(JU);return o||exe(e,r?.selected??null,r?.known??[])?t:XU("div",{hidden:!0,style:{display:"none"}},XU(Qhe.Provider,{value:!0},t))}var txe="Flex",ez={name:"showFor",applies:(e,o,t)=>e===txe&&typeof t?.render=="function",draw(e){let o=e.render;e.render=t=>{let r=xH(t[Pl])?.name;if(r===void 0)return o(t);let a=!!t.editor?.isEditing;return oxe(QU,{name:r,editing:a,children:o(t)})}}};var oz=Iu.mediaFields,rxe=e=>eb(e)?e.src:e;function axe(e,o){let t=o;for(let r of $(oz,e)??[])t=n1(t,r,rxe);return t}var tz={name:"mediaValues",applies:(e,o,t)=>typeof t?.render=="function"&&($(oz,e)?.length??0)>0,draw(e,o){let t=e.render;e.render=r=>t(axe(o,r))}};import{jsx as Hf,Fragment as rz,jsxs as az}from"react/jsx-runtime";var nxe="!grow-0 !shrink-0 !basis-0",sxe=["[.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(" "),ixe="flex flex-col w-full min-w-0 [&>*]:grow";function nz({anchor:e}){let o=Gn(e),t=$a(),r=pu();return o?Hf("span",{id:o,className:et(t?`sf-section-anchor ${nxe} ${sxe}`:"sf-section-anchor",r),"aria-hidden":"true"}):null}function lxe({anchor:e,copiesInBox:o,children:t}){let r=cu()?.columnsRow===!0,a=EO(),n=Gn(e)!=="";return o?Hf(rz,{children:t}):r&&!a&&n?az(me,{className:ixe,children:[Hf(nz,{anchor:e}),t]}):az(rz,{children:[Hf(nz,{anchor:e}),t]})}var sz={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=>Hf(lxe,{anchor:r.anchor,copiesInBox:Bt(o,r),children:t(r)})}};import{jsx as cxe}from"react/jsx-runtime";var iz=Object.fromEntries(PE.map(e=>[e,"picture"])),dxe={[Y]:"box",Ticker:"marquee",...Object.fromEntries(Ep.map(e=>[e,"cards"])),...iz},lz=(e,o)=>!nu.has(e)&&!!o&&typeof o.render=="function";function cz(e,o,t,r){e.fields={...e.fields,...t.animationTabFields(o,r)}}function dz(e,o){let t=e,r=t.render;t.render=a=>{let n=Ti(a);return!n||Bt(o,a)?r(a):cxe(Qh,{views:n,editing:!!a.editor?.isEditing,takesViewHide:!0,atEdge:o===Y,children:r(a)})}}var fz={name:"sectionAnimation",applies:(e,o,t)=>o.isSection(e)&&lz(e,t),panel:(e,o,t)=>cz(e,$(dxe,o)??"section",t,o),draw:(e,o)=>dz(e,o)},pz={name:"blockEntrance",applies:(e,o,t)=>!o.isSection(e)&&lz(e,t),panel:(e,o,t)=>cz(e,$(iz,o)??"block",t,o),draw:(e,o)=>dz(e,o)};import{jsx as fxe}from"react/jsx-runtime";var uz=(e,o)=>!nu.has(e)&&!!o&&typeof o.render=="function";function pxe(e){let o=iv.filter(t=>t.block===e);return o.length===1?o[0].focus:void 0}function mz(e,o){let t=e,r=t.render,a=pxe(o),n=e.drawsPictures===!0;t.render=s=>{let i=Cl(s);return!i||Bt(o,s)?r(s):fxe(bx,{views:i,...a?{origins:t2(s,a)}:{},takesViewHide:!0,atEdge:o===Y,zoomInside:n?"picture":"layer",children:r(s)})}}var hz={name:"sectionScroll",applies:(e,o,t)=>o.isSection(e)&&uz(e,t),draw:(e,o)=>mz(e,o)},xz={name:"blockScroll",applies:(e,o,t)=>!o.isSection(e)&&uz(e,t),draw:(e,o)=>mz(e,o)};import{jsx as uxe}from"react/jsx-runtime";import{createElement as mxe}from"react";var NT=["sectionHeightMode","sectionHeightModeTablet","sectionHeightModePhone"];function hxe(e,o){let t=e.props??{};return NT.some(r=>t[r]==="fill")?!0:("parent"in o?o.parent:oa(o.appState,t.id))?.type===Y}var DT={name:"sectionHeight",applies:(e,o,t)=>o.isSection(e)&&!SO.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||!NT.some(f=>f in l))return l;let d=n.get(l);if(!d){d={...l};for(let f of NT)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=>hxe(l??{},d)?s(p??d.fields):p;return f instanceof Promise?f.then(u):u(f)}},draw(e,o){let t=e.render;e.render=r=>{if(Bt(o,r))return t(r);let a=PO(r);return a?uxe(Ei,{className:a.className,style:a.style,...o===Y?{attrs:FE}:null,children:t(r)}):t(r)}}},gz={name:"sectionHeightFillRoot",applies:DT.applies,draw(e,o){let t=e.render;e.render=r=>{let a=Bt(o,r)?null:RO(TO(r),kO(r).join(" "));return mxe(AO.Provider,{value:a},t(r))}}};import{jsx as Yg}from"react/jsx-runtime";import{PIN_ATTR as Iz,PIN_FRAME_ATTR as xxe}from"efficient-shell/format";var bz=wz("sectionSticky",(e,o,t)=>o.isSection(e)&&!rF.has(e)&&!!t&&typeof t.render=="function",!0),Sz=wz("cardSticky",(e,o,t)=>BT.includes(e)&&!!t&&typeof t.render=="function",!1);function wz(e,o,t){return{name:e,applies:o,panel(r,a,n){let s=MS.has(a);r.fields=Ixe(r.fields??{},Et(n.stickFields({intro:s,screens:t,above:t}),yxe(s))),t&&Dr(r,{heldByANode:Mg})},draw(r,a){let n=r.render,s=MS.has(a);r.render=i=>{let l=$S(i,{atScreenTop:s,above:t});if(!l)return n(i);let d=u=>{let p=Yg(fu,{children:n(i)});return Yg(me,{...u.attrs,style:u.style,children:u.attrs[Iz]===""?Yg("div",{[xxe]:"",children:p}):p})},f=t?$S(i,{atScreenTop:s,track:t,above:!0}):l;return!f||f.attrs[Iz]!==""?d(l):Yg(Xl,{own:()=>d(f),followed:()=>d(l)})}}}}var yz=[dr,Ul],gxe="_gStick";function Ixe(e,o){let t=Object.keys(e),r=e[wl];if(!r){let S=t.findIndex(C=>yz.includes(C));return S<0?{...e,...o}:Object.fromEntries([...t.slice(0,S).map(C=>[C,e[C]]),...Object.entries(o),...t.slice(S).map(C=>[C,e[C]])])}let{[gxe]:a,...n}=o,s=S=>S.startsWith(yr),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(wl),u=t.findIndex((S,C)=>C>f&&yz.includes(S)),p=u<0?t.length:u,m=t.indexOf(ex),h=m>f&&m<p?m:p,I=S=>[S,S===wl?{...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 yxe(e){let o=l=>({field:l,in:[!0,!1]}),t=l=>e&&l==="stickTop"?{any:[{field:l,is:!0},Em]}:{field:l,is:!0},r=l=>({field:l,is:!0}),a=l=>({all:[l,Lf,{not:{field:Ja,is:!0}}]}),[n,s,i]=BS;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))],[[os],Ki],[[Ja],Ki]]}import{jsx as bxe}from"react/jsx-runtime";var Cz={name:"sectionBorder",applies:(e,o,t)=>o.isSection(e)&&!!t&&typeof t.render=="function",draw(e,o){if(Yh.has(o))return;let t=e.render;e.render=r=>{let a=dF(r.sectionBorder,r.sectionBorderPhone,r.sectionBorderTablet,cF(r)),n=t(r);return a?bxe(me,{className:Rm,style:{display:"contents",...a},children:n}):n}}};import{jsx as MT}from"react/jsx-runtime";var vz={name:"sectionTheme",applies:(e,o,t)=>o.isSection(e)&&!tO.has(e)&&!!t&&typeof t.render=="function",panel(e,o,t){let{sectionThemeFields:r,SECTION_THEME_FOLLOW_LABEL:a}=t,n=Uy.has(o);e.fields={...e.fields,...n?r(Mn,a):r()}},draw(e,o){let t=Uy.has(o),r=e.render;e.render=a=>{let n=aO(t?{...a,sectionAccent:Mn(a.sectionAccent)}:a),s=r(a);if(!n)return s;let i=d=>MT(Ei,{className:n.className,style:d,children:s}),l=n.style;return Bt(o,a)?MT("div",{className:n.className,style:{...l,display:"contents"},children:s}):Ug(o,a)!=="content"?i(l):MT(Xl,{own:()=>i({...l,...ji($o)}),followed:()=>i(l)})}}},kz={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(Mn,a)})}};import{jsx as Io}from"react/jsx-runtime";var Tz=null;function HT(e){Tz=e}function Pz(){return Tz}import{jsx as Sxe}from"react/jsx-runtime";var wxe="mx-auto w-full max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)]",Ez=Xa("box").frame,Wf=`${wxe} ${Ez}`,Cxe=Xa("site").frame;function eao(e){return e?Cxe:Ez}var vxe="mx-auto w-full max-w-[1280px] px-[60px]",kxe="max-[960px]:px-6",oao=`${vxe} ${kxe}`;function tao({contained:e,className:o="",style:t,pad:r,fillWidth:a="w-full",children:n}){return Sxe(EU,{contained:e,framedClass:`${Wf} ${o}`,fillClass:`${a} ${o}`,columnClass:Wf,style:t,pad:r,children:n})}var Zl="--sf-sw-site",Txe="--sf-sw-content",Pxe="--sf-bg-cap",Exe="contents [--sf-site-width:var(--sf-sw-content)] max-view-wide:[--sf-site-width:var(--sf-sw-site)]",WT=({own:e,content:o,siteContent:t})=>e===!0&&o==="full"&&t!=="full",Oz="contents view-wide:[--sf-site-width:100vw]",$T=({held:e},o,t)=>e?t:Io(me,{className:o,children:t}),_xe=`contents view-wide:[--sf-site-width:100vw] ${_W} view-wide:[--sf-site-gutter:var(--intro-edge)]`,UT=(e,o,t)=>o==="content"?`min(${Me(e,t)},var(${Zl}))`:Me(e,t);function $f({content:e,contentMax:o,contentMaxUnit:t},r){return e==="full"?r!=="content"?od:null:o===null?null:UT(o,r,t)}function Uf(e,o){return o===null?e:Io(me,{className:"contents",style:{[Zl]:$o},children:Io(me,{className:Exe,style:{[Txe]:o},children:e})})}var Oxe="--sf-content-cap",Axe="contents max-view-wide:[--sf-content-cap:none]";function Rxe({content:e,contentMax:o,contentMaxUnit:t},r){return e==="full"?null:o!==null?UT(o,r,t):r==="content"?null:`var(${Zl})`}function Lxe(e,o){return o===null?e:Io(me,{className:"contents",style:{[Zl]:$o},children:Io(me,{className:Axe,style:{[Oxe]:o},children:e})})}var Az=`var(${Zl},${$o})`,Sn=(e,o,t="")=>e==="content"?Io(me,{className:t||void 0,style:ji($o),children:Io(_T,{ground:Az,children:o})}):o;function Rz(e,o,t,r,a){if(WT(t))return Sn(r,$T(t,Oz,Io(ET,{children:e({...o,contained:!0})})),a);if(t.content==="full")return Sn(r,e({...o,contained:!1}),a);let n=$f(t,r);return r==="content"&&n===null&&!t.own?e({...o,contained:!0}):Sn(r,Uf(Io(ET,{children:e({...o,contained:!0})}),n),a)}function Fxe(e,o,t,r,a){if(t==="hero"){let i=Uf(e(o),$f(r,r.band));return r.band==="full"?Io(me,{style:{[Cm]:"none",[vS]:"initial",[kS]:"initial"},children:i}):r.band==="content"?Io(me,{style:vm(!0),children:i}):i}let n=r.band??"full",s=Wa(o,{atSectionLine:!a});if(t==="rawMarkup"){if(r.content==="full")return Sn(n,e(o),s);let i=r.contentMax===null?$o:UT(r.contentMax,n,r.contentMaxUnit);return Io(me,{className:"contents",style:{[Zl]:$o},children:Sn(n,Io(me,{className:s||void 0,style:ji(i),children:e(o)}),s)})}if(t==="scrollOver"){let i=r.content==="full",l=WT(r)?$T(r,_xe,e({...o,fullWidth:!1})):Uf(e({...o,fullWidth:i}),i?null:$f(r,n));return n==="content"?Io(me,{className:"contents",style:{[Pxe]:$o},children:l}):l}switch(t){case"both":return Sn(n,Lxe(e(o),Rxe(r,n)),s);case"contained":return Rz(e,o,r,n,s);case"contentColumn":case"contentFull":case"productGrid":{let i=WT(r),l=r.content==="full"&&!i?"full":"page",d=i?$T(r,Oz,e({...o,widthMode:l})):Uf(e({...o,widthMode:l}),r.content==="full"?null:$f(r,n));return t==="productGrid"&&!r.own?n==="content"?Io(me,{className:s?`${Wf} ${s}`:Wf,children:d}):d:Sn(n,d,s)}default:return Sn(n,Uf(e(o),$f(r,n)),s)}}function _z(e,o,t,r,a){let n=a===Y?"edge":"by-box",s=i=>Fxe(e,o,t,r,i);return n==="edge"?s(!0):Wa(o)===Wa(o,{atSectionLine:!0})?s(!1):Io(lu,{line:n,draw:s})}function Bxe(e,o){let t=$(Zi,o);if(!t)return;let r=e.render;e.render=a=>{let n=Wm(a),s={band:n.background,content:n.content??"content",contentMax:null},i=()=>t==="rawMarkup"?r(a):Io(PU,{draw:h=>h?.background==="content"?Io(_T,{ground:Az,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=_z(r,a,t,I,o);if(!yn(o))return w;let S=Bf(a),C=S===void 0?I.content:S?"content":"full";return C===I.content?w:Io(CU,{atTop:w,nested:Rz(r,a,{...I,content:C,own:!1},I.band??"full",Wa(a))})},d=Ff(o,a);if(!OF(d))return i();let f=t==="rawMarkup",u=Ug(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 Io(Xl,{own:()=>Io(TU,{value:{background:m.band,content:m.content},children:_z(r,a,t,m,o)}),followed:i})}}var Nxe={all:[Lf,{not:{context:"runsEdgeToEdge",is:!0}}]},Lz={name:"sectionWidth",applies:(e,o,t)=>Hm(e)&&!!t&&typeof t.render=="function",panel(e,o,t){let r=t.sectionOwnWidthFields({drawsFullOnItsOwn:$(Zi,o)==="rawMarkup"}),a=yn(o)?t.boxGutterFields():{},n={...e.fields,...a,...r},s=yn(o)?Nz(o,e,n,[zs]):n;Dr(e,{heldByANode:Mg}),yn(o)&&Dr(e,{runsEdgeToEdge:(i,l)=>$g(Vc(i.props??{},g_(l.appState,i.props?.id)?.inCopy!==!1))}),e.fields=it(s,[Fe.background,Fe.content],yn(o)?Nxe:Lf)},draw(e,o){Bxe(e,o)}};function Dxe(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 Mxe=new Set(["Heading","Text","ImageBlock","ButtonBlock"]),Fz={name:"containedWidth",applies:(e,o,t)=>Mxe.has(e)&&!!t&&typeof t.render=="function",panel(e,o,t){let r=t.widthField;e.fields=Nz(o,e,{...e.fields,...r("page")});let a=e.resolveFields;e.resolveFields=(n,s)=>{let i=a?a(n,s):s.fields,l=Mm(n?.props??{},"page"),d=f=>Dxe(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}=Mm(t,"page");return o({...t,contained:r!=="full"})}}},Hxe={not:{context:"inHeroGroupRow",is:!0}},Bz={name:"buttonAlignInRow",applies:e=>e==="ButtonBlock",panel(e){let o=e;o.fields=it(o.fields??{},["align"],Hxe),Dr(o,{inHeroGroupRow:(t,r)=>{let a=oa(r.appState,t.props?.id);return!!a&&a.type==="HeroGroup"&&Kr("HeroGroup",a.props?.direction)==="row"}})}};function Wxe(e){return Object.values(e).some(o=>!!o&&typeof o=="object"&&o.type==="slot")}var $xe={any:[]},Uxe={all:[{not:{context:"outsideBox",is:!0}},{not:{context:"insideSiteGutter",is:!0}}]},zxe={not:{context:"widthCappedByParent",is:!0}};function Nz(e,o,t,r=["widthMode"]){if(e==="ButtonBlock")return it(t,["_gWidth",...r],$xe);if(Wxe(t)){let a=(n,s)=>IU(s.appState?.data?.content,n.props?.id,zg(Pz()));return Dr(o,{outsideBox:(n,s)=>a(n,s)?.inBox!==!0,insideSiteGutter:(n,s)=>a(n,s)?.insideGutter}),it(t,r,Uxe)}return Dr(o,{widthCappedByParent:(a,n)=>"parent"in n?o_(n.parent):aU({props:a.props??{}},n)}),it(t,r,zxe)}var Gxe=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"]),Dz={name:"sectionGroups",applies:(e,o)=>o.isSection(e)&&(Gxe.has(e)||o.isHostBlock(e)),panel(e,o,t){let r=t.assignSectionGroups;e?.fields&&(e.fields=r(e.fields,o))}},jxe=new Set(["HeroSlide","HeroGroup"]),Mz={name:"blockGroups",applies:(e,o,t)=>jxe.has(e)||!o.isSection(e)&&sg in(t?.fields??{}),panel(e,o,t){let r=t.assignSectionGroups;e?.fields&&(e.fields=r(e.fields,o))}};import{jsx as zT}from"react/jsx-runtime";var Kxe=new Set(["Flex","Grid"]),Hz=e=>Object.entries(e.fields??{}).filter(([,o])=>o?.type==="slot").map(([o])=>o),Vxe=(e,o)=>e.fields?.[o]?.ownPictures===!0,Yxe=["blockCount","blockIds"],qxe=new WeakMap,Xxe=new WeakMap;function Zxe(e,o){let t=o?Xxe:qxe,r=t.get(e);if(r)return r;let a=e,n=s=>zT(vU,{children:zT(fu,{ownPictures:o,children:zT(a,{...s})})});Object.assign(n,e);for(let s of Yxe)Object.defineProperty(n,s,{get:()=>e[s],configurable:!0,enumerable:!0});return t.set(e,n),n}var Wz={name:"slotsStartAfresh",applies:(e,o,t)=>!Kxe.has(e)&&typeof t?.render=="function"&&Hz(t).length>0,draw(e){let o=Hz(e),t=e.render;e.render=r=>{let a={...r};for(let n of o){let s=r[n];typeof s=="function"&&(a[n]=Zxe(s,Vxe(e,n)))}return t(a)}}};var Jxe=new Set(["Form","Stats","Logos"]);function $z(){return[...Jxe]}function GT(e,o,t=[]){let r=new Set(e),a=Y0.filter(d=>r.has(d)),n=a.filter(d=>d!=="Header"&&d!=="Footer"&&!ku.includes(d)),s=new Set([...o,...Cp,...$z()]),i=a.filter(d=>!s.has(d)),l=new Set([...a,...t]);return{isSection:d=>l.has(d)&&!Up(d),isHostBlock:()=>!1,sectionGroupAllow:n,contentSectionKeys:i}}var Qxe=[Wz,tz,VU,Q6,eU,FM,$U,Cz,UU,BM,pz,xz,rU,Lz,Fz,Bz,DT,sz,vz,fz,hz,bz,Sz,OU,kz,hU,Dz,Mz,GU,zU,HU,YU,ez,gz,qU,J6,RU];function Uz(e,o,t){let r=o;for(let a of Qxe)a.applies(e,t,r)&&(t.inspector&&a.panel?.(r,e,t.inspector,t),a.draw?.(r,e,t));return o}import{jsx as jT}from"react/jsx-runtime";import{ClockIcon as ege,DurationIcon as oge}from"efficient-easel/icons";import{MOTION_TIMING as zz}from"efficient-shell/format";import{useSelectedHost as tge}from"efficient-easel/easel";function Jl(e){let{min:o,max:t,step:r,default:a}=zz[e].duration;return Ro("Duration",jT(oge,{}),o,t,r,a,"s")}function Ql(e){let{min:o,max:t,step:r,default:a}=zz[e].delay;return Ro("Delay",jT(ege,{}),o,t,r,a,"s")}function ec(e,o){let t=e.render,r=a=>{let n=tge();return t({...a,value:o(a.value,n?.values)})};return{...e,render:a=>jT(r,{...a})}}function qg({readsSpeed:e}){return ec(Jl("loop"),(o,t)=>ng({loopDuration:o,speed:e?t?.speed:void 0}))}function Xg(){return ec(Ql("loop"),e=>s3({loopDelay:e}))}import{jsx as Fo}from"react/jsx-runtime";import{DirectionDownIcon as rge,DirectionIcon as age,DirectionLeftIcon as nge,DirectionRightIcon as sge,DirectionUpIcon as ige,EntranceBounceIcon as lge,EntranceFadeIcon as cge,EntranceFlipIcon as dge,EntranceGlideIcon as fge,EntranceRevealIcon as pge,EntranceRiseIcon as uge,EntranceScaleIcon as mge,EntranceSpinIcon as hge,NoSymbolIcon as xge}from"efficient-easel/icons";import{NoControlMark as gge,noControlField as Ige}from"efficient-easel/screen/lib/document/panel-no-control-mark";import{customize as yge,group as bge}from"efficient-easel/screen/lib/document/box-fields";import{ENTRANCE_FROM as Sge,ENTRANCE_FROM_DEFAULT as jz,ENTRANCE_KINDS as Kz,ENTRANCE_KINDS_WITH_FROM as wge,entranceAttrs as Cge,playEntrance as vge,readEntrance as kge}from"efficient-shell/format";var Tge={none:"None",fade:"Fade",rise:"Rise",scale:"Scale",glide:"Glide",bounce:"Bounce",flip:"Flip",reveal:"Reveal",spin:"Spin"},Pge={top:"Top",bottom:"Bottom",left:"Left",right:"Right"},Ege={top:()=>Fo(rge,{}),bottom:()=>Fo(ige,{}),left:()=>Fo(sge,{}),right:()=>Fo(nge,{})},Vz="Entrance",VT=Kz.filter(e=>e!=="none"),Yz=e=>({any:[{field:_t.kind,in:e},{all:[{field:_t.kind,set:!1},{field:_c,in:e}]}]}),Gz=(e,o)=>Mr(It.slice(0,It.indexOf(e)+1).reverse().map(t=>ke(_t.kind,t)),t=>({field:t,set:!0}),t=>t===_t.kind?Yz(o):{field:t,in:o}),_ge={any:[Yz(VT),...It.slice(1).map(e=>({field:ke(_t.kind,e),in:VT}))]},Oge=It.flatMap(e=>[[[ke(_t.from,e)],Gz(e,wge)],[[ke(_t.duration,e),ke(_t.delay,e)],Gz(e,VT)]]),Age={none:()=>Fo(xge,{}),fade:()=>Fo(cge,{}),rise:()=>Fo(uge,{}),scale:()=>Fo(mge,{}),glide:()=>Fo(fge,{}),bounce:()=>Fo(lge,{}),flip:()=>Fo(dge,{}),reveal:()=>Fo(pge,{}),spin:()=>Fo(hge,{})},qz="data-entrance-tile";function Rge({kind:e}){let{attrs:o}=Cge(kge(e,jz));return Fo("span",{className:"sf-entrance-stage",[qz]:e,children:Fo("i",{...o,children:Age[e]()})})}var Lge=(e,o)=>{let t=e.querySelector(`[${qz}="${o}"] > i`);t&&vge(t)},Fge="Effect",Bge=()=>im(_t.kind,{label:Vz,tileWord:Fge,values:Kz,fallback:"none",word:e=>Tge[e],picture:e=>Fo(Rge,{kind:e}),read:(e,o)=>Oc(e,o).kind,preview:Lge}),KT=(e,o)=>sm(_t[e],o,(t,r)=>Oc(t,r)[e]),Nge=Sge.map(e=>({label:Pge[e],value:e,picture:Ege[e]()}));function Or(){let e={[sg]:bge(Vz,{dot:_ge}),...Bge(),[_c]:Ige({type:"custom",render:()=>Fo(gge,{})},"always"),_cEntrance:yge(),...KT("from",Ji("From",Fo(age,{}),Nge,jz)),...KT("duration",Jl("entrance")),...KT("delay",Ql("entrance"))};return Et(e,Oge)}import{jsx as sr}from"react/jsx-runtime";import{EntranceRevealIcon as Dge,NoSymbolIcon as Mge,PercentIcon as Xz,ScrollFadeInIcon as Hge,ScrollFadeOutIcon as Wge,ScrollMoveDownIcon as $ge,ScrollMoveUpIcon as Uge,ScrollParallaxIcon as zge,ScrollZoomInIcon as Gge,ScrollZoomOutIcon as jge,ZoomInIcon as Kge}from"efficient-easel/icons";import{customize as Vge,group as Yge}from"efficient-easel/screen/lib/document/box-fields";import{SCROLL_EFFECTS as Jz,SCROLL_EFFECTS_WITH_ZOOM as qge,SCROLL_END as Xge,SCROLL_START as Zge,SCROLL_ZOOM as Jge}from"efficient-shell/format";var Qz="Scroll",Qge={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"},eIe={none:()=>sr(Mge,{}),"zoom-in":()=>sr(Gge,{}),"zoom-out":()=>sr(jge,{}),"fade-in":()=>sr(Hge,{}),"fade-out":()=>sr(Wge,{}),"move-up":()=>sr(Uge,{}),"move-down":()=>sr($ge,{}),reveal:()=>sr(Dge,{}),parallax:()=>sr(zge,{})},oIe="Effect",eG=Jz.filter(e=>e!=="none"),Zz=(e,o)=>Mr(It.slice(0,It.indexOf(e)+1).reverse().map(t=>ke(Go.effect,t)),t=>({field:t,set:!0}),t=>({field:t,in:o})),tIe={any:It.map(e=>({field:ke(Go.effect,e),in:eG}))},rIe=It.flatMap(e=>[[[ke(Go.zoom,e)],Zz(e,qge)],[[ke(Go.start,e),ke(Go.end,e)],Zz(e,eG)]]),aIe=()=>im(Go.effect,{label:Qz,tileWord:oIe,values:Jz,fallback:"none",word:e=>Qge[e],picture:e=>eIe[e](),read:(e,o)=>Pa(e,o).effect}),YT=(e,o,t,r,a)=>sm(e,Ro(t,r,a.min,a.max,a.step,a.default,"%"),(n,s)=>Pa(n,s)[o]);function js(){let e={[wl]:Yge(Qz,{dot:tIe}),...aIe(),[ex]:Vge(),...YT(Go.zoom,"zoom","Zoom",sr(Kge,{}),Jge),...YT(Go.start,"start","Start",sr(Xz,{}),Zge),...YT(Go.end,"end","End",sr(Xz,{}),Xge)};return Et(e,rIe)}import{jsx as ut}from"react/jsx-runtime";import{AccentIcon as nIe,ContrastIcon as sIe,EyeIcon as iIe,ExpandIcon as lIe,FinishIcon as cIe,ImagesIcon as dIe,NoSymbolIcon as tG,HoverLiftIcon as fIe,HoverNextImageIcon as pIe,HoverRotateIcon as uIe,HoverZoomIcon as rG,OpacityIcon as mIe}from"efficient-easel/icons";import{customize as hIe,describedAs as aG,group as xIe}from"efficient-easel/screen/lib/document/box-fields";import{effectTiles as nG}from"efficient-easel/screen/lib/document/effect-tiles";import{deviceField as Vo}from"efficient-easel/screen/lib/document/device-fields";import{NoControlMark as gIe,noControlField as IIe}from"efficient-easel/screen/lib/document/panel-no-control-mark";var Zg=e=>Vo("desktop",xIe("Hover",{dot:e})),sG=()=>Vo("desktop",hIe()),yIe="What this does when a shopper points at it, or taps it on a phone.",bIe="What this picture does when a shopper points at it. Black and white shows it in grey until then. A phone shows its colour.",SIe="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.",wIe="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.",CIe="When this shows. On card hover shows it while a shopper points at the card. A phone always shows it.",vIe="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.",kIe="Which of the product's pictures the card shows.",TIe="Same finish shows the photos of the finish the card shows, else the first group.",PIe="Whole card hides the words under the photo. Picture keeps the words and swatches in view.",EIe={none:()=>ut(tG,{}),nextImage:()=>ut(pIe,{}),rotate:()=>ut(uIe,{}),zoom:()=>ut(rG,{}),lift:()=>ut(fIe,{}),mono:()=>ut(sIe,{})};function qT(e,o){let t=nG({label:c("Hover effect"),options:e.map(r=>({value:r,label:c(fi[r]),picture:EIe[r]()})),fallback:o});return aG(t,{type:"select",label:"Hover effect",options:e.map(r=>({value:r,label:fi[r]}))})}function iG(){return{[dr]:Zg({field:Mt,in:iy.filter(e=>e!=="none")}),[Mt]:Vo("desktop",{...qT(iy,"none"),description:yIe})}}function lG(e){let o=kE(e),t=Op(),r=DF(xE);return{[dr]:Zg({any:[o,t]}),[uo.kind]:Vo("desktop",{...ec(qT(uE,e),(a,n)=>CE(n??{},e)),description:vIe}),...XT(t),[mE]:IIe({type:"custom",render:()=>ut(gIe,{})},"always"),_cHover:sG(),[uo.angle]:Vo("desktop",io(ec(r,a=>vE(a)),o)),[uo.duration]:Vo("desktop",io(Jl("hover"),o)),[uo.delay]:Vo("desktop",io(Ql("hover"),o))}}function XT(e){let o=pt("Type",ut(dIe,{}),gE.map(a=>({value:a,label:IE[a]})),_p.kind),t=Ji("Group",ut(cIe,{}),yE.map(a=>({value:a,label:bE[a]})),_p.group),r=Ji("Covers",ut(lIe,{}),SE.map(a=>({value:a,label:wE[a]})),_p.cover);return{[uo.mediaKind]:Vo("desktop",io({...o,description:kIe},e)),[uo.mediaGroup]:Vo("desktop",io({...t,description:TIe},e)),[uo.cover]:Vo("desktop",io({...r,description:PIe},e))}}function ZT(e,o="",t=py.includes(o)){let r=uy(e),a=RE(e);return{[dr]:Zg(r),[uo.kind]:JT(TE,e,bIe),...py.includes(o)?XT(Op()):{},_cHover:sG(),...t?cG():{},[uo.duration]:Vo("desktop",io(Jl("hover"),a)),[uo.delay]:Vo("desktop",io(Ql("hover"),a))}}function cG(e=!1){let o=a=>e?a:io(a,AE()),t=Ro("Zoom",ut(rG,{}),pi.min,pi.max,pi.step,pi.min,pi.unit),r=Ro("Darken on hover",ut(mIe,{}),Va.min,Va.max,Va.step,Va.fallback,Va.unit);return{[cy.zoom]:Vo("desktop",o(t)),[cy.darken]:Vo("desktop",o(r))}}function JT(e,o,t){let r=Vo("desktop",{...ec(qT(e,o),a=>_E({[Mt]:a},o,e)),description:t});return Object.assign(r,{[dG]:o})}var dG="sfPictureResting",oG=new WeakMap;function Qno(e,o,t){let r=e[uo.kind],a=r?.[dG];if(!r||!a)return e;let n=o.props?.[Mt]==="nextImage",s=n?null:Kp(t.appState,o.props?.id);if(!n&&!Ep.includes(String(s?.type??"")))return e;let i=oG.get(e);return i||(i={...e,[uo.kind]:JT(ly,a,SIe)},oG.set(e,i)),i}var _Ie="What this card does when a shopper points at it, or taps it on a phone. Highlight fills it with the surface color and turns its text the main color.",OIe={none:()=>ut(tG,{}),[ay]:()=>ut(nIe,{})},eso=Vo("desktop",{...aG(nG({label:c("Hover effect"),options:ny.map(e=>({value:e,label:c(sy[e]),picture:OIe[e]()})),fallback:"none"}),{type:"select",label:"Hover effect",options:ny.map(e=>({value:e,label:sy[e]}))}),description:_Ie}),AIe=Vo("desktop",{...Ji("Show",ut(iIe,{}),[{value:fy,label:"Always"},{value:dy,label:"On card hover"}],fy),description:CIe});function fG(){let e={any:[uy("none"),{field:Mt,is:ay},{field:An,is:dy}]},{[dr]:o,[uo.kind]:t,...r}=ZT("none","",!0);return{[dr]:Zg(e),[uo.kind]:t,[An]:AIe,...XT(Op()),...r,...cG(!0)}}var oso=JT(ly,"none",wIe);import{jsx as zf}from"react/jsx-runtime";import{isNodeList as BIe}from"efficient-easel/data";import{useEasel as NIe}from"efficient-easel/easel";import{hiddenInView as DIe,hiddenKeyOf as eP,hidePatch as MIe,slotChildName as HIe,slotChildRowName as WIe}from"efficient-easel/draw";var Jg=null;function QT(e){Jg=e}function pG(){return!!(Jg&&Jg.state().lockHolder)}function Ks(){return Jg!==null}var RIe=new Set(["BookingBox","SubmitBox"]);function LIe(e){return typeof e=="string"&&RIe.has(e)}var FIe=k1(LIe,pG);function Qg(e,o){return FIe(e)||yS(o)}var eI=(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 $Ie}from"efficient-easel/screen/lib/document/device-fields";import{NoControlMark as UIe}from"efficient-easel/screen/lib/document/panel-no-control-mark";var uG="notCardOfTemplate",mG={not:{context:uG,is:!0}},oP={any:[Lp,mG]},wso={[uG]:(e,o)=>{let t=Fy(o.appState,e.props?.id);return t===void 0?void 0:t===null}};function oI(e){let o=e.props?.content;return BIe(o)?o:[]}var rI=(e,o)=>DIe(e.props??{},o),zIe=(e,o)=>e.props?.[eP(o)]!==void 0;function hG(e,o=()=>!1,t="desktop"){return oI(e).flatMap(r=>typeof r?.props?.id!="string"?[]:oI(r).length&&!rI(r,t)?hG(r,o,t):o(r)?[]:[r])}function GIe(e,o,t,r="desktop"){let a=hG(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:!rI(i,r)}})}function tI(e,o,t){let r=a=>t==="desktop"?rI(a,t):zIe(a,t);return oI(e).flatMap(a=>r(a)?o(a)?[]:[a,...tI(a,o,t)]:tI(a,o,t))}function jIe(e,o){let t={...e};for(let[r,a]of Object.entries(o))a===void 0||r===eP("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 tP(e,o,t){let r=oI(e),a=!1,n=r.map(s=>{if(a)return s;let i=s;if(s?.props?.id===o){let l=jIe(s.props,t(s.props));l!==s.props&&(i={...s,props:l})}else i=tP(s,o,t);return a=i!==s,i});return a?{...e,props:{...e.props,content:n}}:e}function xG(e,o,t,r="desktop"){return tP(e,o,a=>r==="desktop"&&rI({props:a},r)===!t?{}:MIe(a,r,!t))}function KIe(e,o,t){return t==="desktop"?xG(e,o,!0,t):tP(e,o,()=>({[eP(t)]:void 0}))}function VIe(e,o,t,r,a,n){return HIe(e).trim()?t(e):f_({ownerType:o,owner:r,fields:a,slot:n},xt(e.props))?.label??t(e)}var YIe="This page is read-only.";function qIe({card:e,ownerType:o,owner:t,fields:r,slot:a,labelOf:n,write:s,readOnly:i,view:l="desktop"}){let d=p=>WIe(p,n,sa,void 0,eI),f=p=>Qg(p.type,p),u=GIe(e,p=>VIe(p,o,d,t,r,a),f,l);return u.length?zf(il,{parts:u,changed:tI(e,f,l).length>0,shown:p=>u.find(m=>m.id===p)?.shown??!0,disabledReason:i?YIe:void 0,onPress:(p,m)=>s(h=>xG(h,p,m,l)),onReset:()=>s(p=>tI(p,f,l).reduce((m,h)=>KIe(m,String(h.props.id),l),p))}):zf(UIe,{})}function XIe(){try{let e=NIe(a=>a),o=e.config.components??{},t=e.selectedItem;if(!t)return null;let r=Fy(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:I_(e.appState,r),slot:x_(e.appState,t.props?.id)??void 0}}catch{return null}}function ZIe({readOnly:e,view:o}){let t=XIe(),r=mr();return t?zf(qIe,{...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}})}}):zf(il,{parts:[],changed:!1,shown:()=>!0,onPress:()=>{},onReset:()=>{}})}function Cso(e){return io($Ie(e,{type:"custom",render:({readOnly:o})=>zf(ZIe,{readOnly:o,view:e})}),mG)}import{customize as iye}from"efficient-easel/screen/lib/document/box-fields";import{jsx as rP}from"react/jsx-runtime";import{DirectionIcon as JIe,LoopMarqueeIcon as QIe,NoSymbolIcon as eye}from"efficient-easel/icons";import{customize as oye,describedAs as tye,group as rye}from"efficient-easel/screen/lib/document/box-fields";import{effectTiles as aye}from"efficient-easel/screen/lib/document/effect-tiles";function aP(){return FB("Direction",gk,vf,"A marquee cannot run diagonally, so the corners are not answers.",rP(JIe,{}),LB)}var nP=e=>rye("Loop",e?{dot:e}:void 0),nye={none:()=>rP(eye,{}),scroll:()=>rP(QIe,{})};function sye(){let e=aye({label:c("Loop"),options:ag.map(({value:o,label:t})=>({value:o,label:c(t),picture:nye[o]()})),fallback:xk});return tye(e,{type:"select",label:"Loop",options:ag.map(({value:o,label:t})=>({value:o,label:t}))})}function gG(){return{[Ul]:nP(Cf),loop:sye(),_cLoop:oye(),scrollDirection:io(aP(),Cf),loopDuration:io(qg({readsSpeed:!1}),Cf),loopDelay:io(Xg(),Cf)}}var IG={field:An,set:!0};function lye(){let e=fG(),o=[dr,Mt],t=it(e,Object.keys(e).filter(n=>!o.includes(n)&&n!==An),Lp),r=it(t,[An],IG),a=it(r,[Mt],oP);return it(a,[dr],{any:[oP,IG]})}function aI(e,o=""){switch(e){case"section":case"block":return{...Or(),...js()};case"box":return{...Or(),...js(),...gG(),...lye()};case"picture":return{...Or(),...js(),...ZT(EE(o),o)};case"textPart":return{...Or(),...js(),...iG()};case"cards":return{...Or(),...js(),...lG(hE(o))};case"marquee":return{...Or(),...js(),[Ul]:nP(),_cLoop:iye(),scrollDirection:aP(),loopDuration:qg({readsSpeed:!0}),loopDelay:Xg()}}}import{blockSizeFieldSet as Gye}from"efficient-easel/screen/lib/document/block-size-fields";import{VIEW_KEY_ACCESS as jye}from"efficient-easel/screen/lib/document/box-fields";import{group as cye}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as dye,deviceMetaOf as SG}from"efficient-easel/screen/lib/document/device-fields";import{DESIGN_GROUPS as iP,SETTINGS_BUCKETS as fye}from"efficient-easel/panel";import{BUCKET_KEY as Yo,DESIGN_GROUP_KEY as oc}from"efficient-easel/screen/lib/document/field-buckets";var Gf=fye;var pye="Editor only \u2014 not shown live",lP={"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",[pye]:"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"},wG={"AlloyWheelsListing._gCards":"Design","Flex._gLink":"Link","LongRead._gLink":"Link"},CG={"Text._gSpacing":"Size","Heading._gSpacing":"Size"};function yG(e,o,t){let r=`${e}.${o}`;return $(CG,r)??$(wG,r)??$(lP,t)}function uye(e){return e==="Animation"?[Yo.Animation]:[Yo.Design,oc[e]]}function nI(...e){let o=[];for(let t of e)for(let r of Object.values(t)){let a=SG(r),n=Sr(a?a.inner:r),s=n?$(lP,n.label):void 0;if(s)for(let i of uye(s))o.includes(i)||o.push(i)}return o}var oio=[...nI(Qi({tablet:!0,siteSide:!0}),al("full"),nl(),sl(),Id()),...Object.keys(Qi({tablet:!0,siteSide:!0})),...Object.keys(al("full")),...Object.keys(nl()),...Object.keys(sl()),...Object.keys(Id())],tio=[...nI(ol()),...Object.keys(ol())],rio=[...nI(rl()),...Object.keys(rl())],aio=[...nI(Or()),...Object.keys(Or())],nio=Object.keys(NB()),sio=Object.keys(DB()),mye={"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)"},vG={Content:["Content"],Size:["Size"],Design:["Design","Style"],Layout:["Layout"],Position:["Position"],Link:["Link"],Anchor:["Anchor"],Animation:["Animation"]},sP={_gAnchor:"repeated the Anchor group heading above it (two tabs, 11.0.0)"};{let e={...Qi({tablet:!0,siteSide:!0}),...al("full"),...nl(),...sl(),...ol(),...rl(),...Or()};for(let o of Object.keys(sP)){let t=Sr(e[o]),r=t?$(lP,t.label):void 0;if(!t||t.level!==2||!r||!vG[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 hye=new Set(["_sContent","_sStyle","_sLayout","_sMedia"]),xye=new Map([[Yo.Design,"Content"],[Yo.Animation,"Animation"],...iP.map(e=>[oc[e],e])]);function gye(e){let o=`${e}.`;return Object.keys(mye).filter(t=>t.startsWith(o)).map(t=>t.slice(o.length))}function Iye(e,o){let t=SG(e),r=cye(o);return t?dye(t.tier,r):r}function yye(e,o){let t=Sr(o);return t?e==="Content"||e==="Animation"?IB(o,t.label):yB(o):o}function bG(e){return e==="Design"?iP:["Animation"]}function sI(e,o){let t=[],r=new Set(gye(o)),a=new Set,n=!1,s=null;for(let[p,m]of Object.entries(e)){let h=Sr(m);if(hye.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=xye.get(p);if(I!==void 0){if(h?.level!==1)throw new Error(`${o}.${p}: that key is reserved for the ${I} heading of the settings panel, but this field is ${h?`a level-${h.level} "${h.label}" header`:"not a header"}, so it cannot serve as one. Rename the section's own field.`);(p===Yo.Design||p===Yo.Animation)&&(n=!0),t.push(s={place:I,entries:[],adopted:!0});continue}if(!h){s||t.push(s={place:"Content",entries:[]}),s.entries.push([p,m]);continue}if(r.has(p)||He(sP,p)){let S=yG(o,p,h.label);if(h.level!==2||!S||!vG[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(sP,p)});continue}let w=yG(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 ${[...iP,"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:Iye(m,h.label)]]})}let i=new Set(Object.entries(e).filter(([,p])=>Sr(p)).map(([p])=>p));for(let[p,m]of[["BLOCK_KEY_GROUP",CG],["KEY_GROUP",wG]]){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=Gf.filter(p=>bG(p).some(m=>d.has(m))),u={};for(let p of f){u[Yo[p]]=eh(p,p===f[0]?f:null);for(let m of bG(p)){if(!d.has(m))continue;let h=t.filter(S=>S.place===m),I=h.findIndex(S=>S.adopted);I>0&&h.unshift(...h.splice(I,1));let w=h.filter(S=>S.uniform);if(w.length>0){let S=h.filter(b=>!b.uniform),C=h[0]?.adopted?1:0;h.splice(0,h.length,...S.slice(0,C),...w,...S.slice(C))}p==="Design"&&(u[oc[m]]=ww(m));for(let S of h)for(let[C,b]of S.entries)u[C]=yye(m,b)}}return u}function kG(e){return Yo.Design in e?e:{[Yo.Design]:eh("Design",null),[oc.Content]:ww("Content"),...e}}function TG(e){return Gf.some(o=>Yo[o]in e)}function iI(e){let o=Gf.filter(r=>Yo[r]in e);if(o.length===0)return e;let t={...e};for(let r of o)t[Yo[r]]=eh(r,r===o[0]?o:null);return t}import{jsx as lI}from"react/jsx-runtime";import{WidthIcon as bye}from"efficient-easel/icons";import{SettingsField as Sye,SettingsSwitch as wye}from"efficient-easel/panel";import{group as Cye,iconOf as vye,sharedStyleKinds as kye}from"efficient-easel/screen/lib/document/box-fields";var Tye="Gutter";function Pye({value:e,onChange:o,labelId:t}){let r=zg(Rc()),a=Bf({[zs]:e})??r,n=s=>o(s?r?void 0:kT:vT);return lI(Sye,{label:c(Tye),labelId:t,icon:vye(lI(bye,{})),action:lI(wye,{checked:a,onChange:n,ariaLabelledBy:t})})}function PG(){return kye({_gWidth:Cye(on),[zs]:{type:"custom",render:({value:e,onChange:o,id:t,name:r})=>lI(Pye,{value:e,onChange:o,labelId:`${t??r??zs}-label`})}})}import{jsx as dP}from"react/jsx-runtime";import{group as Eye,sharedStyleKinds as _G}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as _ye}from"efficient-easel/screen/lib/document/device-fields";var Oye="Content cannot be wider than the background.",cP=e=>c(e==="content"?"Content width":"Full width");function OG(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 Aye={read:ns},Rye={read:ns,drawsFullOnItsOwn:!0},Lye={read:_F,clearOnContent:{fullWidth:void 0}};function Fye({source:e}){let o=e.read(So()),t=mr(),r=OG(e);return dP(Sh,{value:o.background??r.background,changed:o.background!==null,detail:cP(r.background),onChange:a=>t(AF(a)),onReset:()=>t(tw("background"))})}function Bye({source:e}){let o=e.read(So()),t=mr(),r=l=>t({...l,...e.clearOnContent}),a=OG(e),n=(o.background??a.background)==="content",s=tl({row:ow,label:nC,grid:{min:je.min,max:n?a.px:je.max,step:je.step},valueKey:Fe.contentMax,view:"desktop",numbersIn:()=>o.contentMax!==null}),i=o.content??a.content;return dP(wh,{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"?cP("full"):`${cP("content")} ${a.px}px`,fullClosed:n,hint:n?Oye:void 0,onMode:l=>r(RF(l)),onPx:l=>r({...LF(l),...s?.unitPatch(!1)}),...s?{length:s}:{},onReset:()=>r(tw("content"))})}var EG=(e,o)=>_ye("desktop",{type:"custom",render:()=>dP(e,{source:o})}),AG=e=>({[Fe.background]:EG(Fye,e),[Fe.content]:EG(Bye,e),[Fe.contentMax]:gd(),...ss(ow,Fe.content)});function RG(e){let o=e?.drawsFullOnItsOwn?Rye:Aye;return _G({_gWidth:Eye(on),...AG(o)})}function Eio(){return _G({...AG(Lye),fullWidth:gd()})}import{deviceMetaOf as FG}from"efficient-easel/screen/lib/document/device-fields";import{noControlMetaOf as Nye}from"efficient-easel/screen/lib/document/panel-no-control-mark";function Dye(e,o){let t=FG(o),r=t?t.inner:o;if(Sr(r)||r?.customize===!0)return!1;if(r?.type==="slot")return!0;let a=Nye(r);return a==="always"?!1:a==="authored-copy"?Yn(e):!0}function LG(e){let o=FG(e),t=o?o.inner:e,r=Sr(t);return r?gB(t)?0:r.level:null}function Mye(e,o,t){return t?o===0&&e===Yo.Design||o===1&&e===oc.Content:!1}var Hye=new WeakMap,Wye=new WeakMap;function BG(e,o="section"){let t=o==="page"?Wye:Hye,r=t.get(e);if(r)return r;let a=Object.entries(e).map(([u,p])=>({key:u,field:p,level:LG(p),draws:Dye(u,p)||o==="page"&&LG(p)===null&&Mw(u,p)})),n=o==="section"&&a.some(u=>Mw(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&&!Mye(a[u].key,p,n)&&s.add(a[u].key)}let i=n&&TG(e),l=i&&!(Yo.Design in e);if(!s.size&&!l)return t.set(e,e),e;let d={};for(let u of a)s.has(u.key)||(d[u.key]=u.field);let f=iI(i?kG(d):d);return t.set(e,f),f}import{isShown as $ye,showWhenFactReaders as Uye}from"efficient-shell/format";var NG=new WeakMap,zye=new Set(Object.values(Yo));function DG(e,o,t,r={}){if(!e)return e;let a=o?.props??{},n=a.id,s=Uye(r,o,t),i=eA(t,{...s,parentOffersPositions:()=>{let h=oa(t.appState,n);return h===void 0?void 0:kA(h,n)},parentTileSlot:()=>{let h=oa(t.appState,n);return h===void 0?void 0:Rb(h,n)},heroGroupDepth:()=>tu(t.appState?.data,typeof n=="string"?n:"")}),l=[];for(let[h,I]of Object.entries(e)){let w=wc(I);!w||Bu(w,"device")||$ye(w,a,i)||l.push(h)}if(l.length===0)return e;let d=NG.get(e);d||NG.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=>zye.has(h))&&(m=iI(m)),d.set(f,m),m}var MG={spacingFields:EB,sidesPaddingFields:Qi,sectionShapeFields:rl,cardShapeFields:vB,cellWidthFields:PB,widthField:al,boxGutterFields:PG,sectionOwnWidthFields:RG,heightFields:nl,anchorFields:sl,stickFields:Id,sectionThemeFields:ol,animationTabFields:aI,blockSizeFields:({tablet:e,...o}={})=>Gye({...o,shorten:!0,say:$m,lengthUnits:ya,...e?{phone:jye}:{}}),assignSectionGroups:sI,dropEmptyHeadings:BG,rowsShownForNode:DG,SECTION_THEME_FOLLOW_LABEL:mS,BLOCK_THEME_FOLLOW_LABEL:zR,PartAnchors:b6};function cI(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=cI(s.arrayFields,o,t),d=cI(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 Kye(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=Uz(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 Vye(e,o,t){let r=new Set([...Object.keys(e.components??{}),...o.map(([n])=>n)]),a=[...Object.entries(e.categories??{}).map(([n,s])=>({key:n,components:s?.components??[]})),...t];Yye(e,o,a);for(let n of a){let s=n.components.filter(Up);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(!zp(n))continue;let s=$p(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 fP(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(...fP(e,o,s.arrayFields,`${i}.`),...fP(e,o,s.objectFields,`${i}.`))}return a}function Yye(e,o,t){let r=n=>{throw new Error(`efficient-web-builder: ${n} names "${Ii}". 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(Ii)&&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=fP(Ii,n,s?.fields);i.length>0&&r(`the slot ${i.map(l=>`"${l}"`).join(", ")}, whose allow list`)}}function HG(e,o){let t=Object.entries(o?.host??{}),r=o?.categories??[],a=gT(o);if(Vye(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?cI(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={...GT(Object.keys(n),p,u),isHostBlock:h=>u.has(h),inspector:MG};for(let[h,I]of t){let w=Kye(h,I,m),S=cI(w.fields,i,l);d[h]=S===w.fields?w:{...w,fields:S}}}let f=[];for(let[u,p]of Object.entries(e.categories??{})){let m=p?.components??[],h=m.filter(i);h.length===m.length?f.push([u,p]):h.length>0&&f.push([u,{...p,components:h}])}for(let u of r){let p=u.components.filter(w=>w in d&&i(w));if(p.length===0)continue;let m=f.find(([w])=>w===u.key);if(m){let[,w]=m,S=new Set(w.components??[]);m[1]={...w,components:[...w.components??[],...p.filter(C=>!S.has(C))]};continue}let h=[u.key,{title:u.title,components:p}],I=u.before?f.findIndex(([w])=>w===u.before):-1;I===-1?f.push(h):f.splice(I,0,h)}return{...e,components:d,categories:Object.fromEntries(f)}}function WG(){let e=Zye();return qye(()=>HG(Xye(e),$i(e)),[e])}import{jsx as mP,Fragment as gbe,jsxs as Ibe}from"react/jsx-runtime";import{useContext as ybe,useEffect as bbe,useMemo as hI,useRef as sj}from"react";import{EaselCanvas as Sbe,repeatCopyAt as wbe,useEasel as Cbe}from"efficient-easel/easel";import{jsx as pP}from"react/jsx-runtime";import{useEffect as obe,useState as tbe}from"react";import{Banner as rbe}from"efficient-shell/ui";import{useSyncExternalStore as Jye}from"react";import{useScreenDocument as Qye}from"efficient-easel/screen/components/ScreenDocumentContext";var ebe=()=>()=>{},$G=()=>null;function dI(e){return Jye(e?e.subscribe:ebe,e?e.state:$G,e?e.state:$G)}function fI(){let{adapter:e}=Qye();return e?.pinnedChrome}var pI={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."},abe={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."},nbe=pI.load,sbe=pI.lock,ibe=pI.conflict,lbe=pI.save;function cbe(e){if(!e)return null;if(e.loadFailed)return c(nbe);if(e.lockHolder)return c(sbe,{name:e.lockHolder.name||c("Somebody else")});if(e.conflict)return c(ibe);if(e.saveFailed)return c(lbe);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(abe[o.problem],{section:t,name:r})}function dbe({report:e}){let o=cbe(dI(e)),[t,r]=tbe(null);return obe(()=>{o||r(null)},[o]),!o||t===o?null:pP("aside",{className:"sf-canvas-notice",children:pP(rbe,{tone:"warning",onDismiss:()=>r(o),children:o})})}function UG(){return pP(dbe,{report:fI()})}import{jsx as mI}from"react/jsx-runtime";import{useState as aj}from"react";import{Banner as pbe,Button as ube}from"efficient-shell/ui";import{UndoIcon as mbe}from"efficient-shell/icons/efficient";import{useScreenDocument as hbe}from"efficient-easel/screen/components/ScreenDocumentContext";import{useSyncExternalStore as jG}from"react";var jf=!1,tc=null,uP=new Set;function Vf(){for(let e of uP)e()}function KG(e){return uP.add(e),()=>{uP.delete(e)}}function VG(){jf||(jf=!0,Vf())}function YG(){jf&&(jf=!1,Vf())}function zG(){return jf}function qG(){return jG(KG,zG,zG)}function GG(){return tc}function uI(){tc&&(tc=null,Vf())}function XG(){return jG(KG,GG,GG)}var Kf=class extends Error{constructor(){super("The editor's last changes could not be saved, so nothing was restored."),this.name="HeldEditsNotSaved"}};async function ZG(e,o,t,{flushSave:r,reload:a}){if(!await r())throw new Kf;let n=await e.restore(o,t);return pm(n.liveState),a(),n}async function JG({access:e,version:o,page:t,...r}){let a=await ZG(e,o.id,t?{page:t.id}:{},r);tc={title:fbe(o,t??null),undo:a.undo},Vf()}async function QG({access:e,...o}){let t=tc?.undo;t&&(await ZG(e,t,{},o),tc=null,Vf())}function ej(e){return e.name?e.name:e.kind==="draft_before_restore"?c("Draft before restore"):c("Version {n}",{n:e.number})}function fbe(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 oj(e){let o=e.changes.filter(r=>r.kind==="page").length,t=[...o?[ct("{n} page","{n} pages",o)]:[],...e.changes.filter(r=>r.kind!=="page").map(r=>r.name)];if(!t.length)return"";try{return new Intl.ListFormat(Vy(),{type:"conjunction"}).format(t)}catch{return t.join(", ")}}function tj(e){return e.change==="take_down"?c("{name} (taken down)",{name:e.name}):e.name}function rj(e,o=new Date){let t=new Date(e);if(Number.isNaN(t.getTime()))return"";let r=Vy(),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 xbe}from"efficient-easel/easel";function nj(){let e=XG(),{adapter:o,flushSave:t,reloadFromServer:r}=hbe(),a=o.siteVersions,[n,s]=aj(!1),[i,l]=aj(!1),d=async()=>{if(!(!a||n)){s(!0),l(!1);try{await QG({access:a,flushSave:t,reload:r})}catch{l(!0)}finally{s(!1)}}},f=xbe({onPress:()=>{d()},busy:n});return e?mI("aside",{className:"sf-canvas-notice",children:mI(pbe,{tone:i?"danger":"info",title:e.title,onDismiss:uI,action:a&&e.undo?mI(ube,{variant:"secondary",size:"sm",leftIcon:mI(mbe,{}),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 vbe,REPEAT_ATTRIBUTE as hP,REPEAT_INDEX_ATTRIBUTE as xP}from"efficient-easel/draw";import{usePreviewParts as kbe}from"efficient-easel/draw/client";import{ScreenDocumentContext as Tbe}from"efficient-easel/screen/components/ScreenDocumentContext";function ij(e){let{mirrorHostStyles:o}=Lc(),t=XO(),r=gP(),a=Rc(),n=ybe(Tbe),s=Ou(n?.docId??null),i=Cbe(w=>w.appState.data),l=L1(s,i),d=JSON.stringify(l),f=hI(()=>l,[d]),u=hI(()=>({...e.metadata??t??{},...r,...f}),[e.metadata,t,r,f]);bbe(()=>(HT(a),()=>HT(null)),[a]);let p=sj(null),m=Pbe(p),{onDocument:h}=e,I=w=>{p.current=w,h?.(w)};return Ibe(gbe,{children:[mP(nj,{}),mP(UG,{}),mP(Sbe,{...e,onDocument:I,typing:m,metadata:u,height:"fill",mirrorStyles:o,frameWrapper:Gh})]})}function gP(){let{sectionBackgroundWidth:e,themeFromDocument:o}=fe(),t=Rc();return hI(()=>BF(o?null:e,t),[e,t,o])}function Pbe(e){let o=Su(),t=kbe(),r=sj({parts:t});return r.current={parts:t},hI(()=>{let a=(n,s)=>{let i=dh(n,o),l,d=null,f=s??(i?null:Yw(null,e.current,n)),u=!i&&f?wbe(f):null,p=u?vbe(n):null;if(u&&f&&p?.propKey){i=ph({...u,nodeId:p.nodeId,key:p.propKey},o),l=p.propKey;let w=f.closest(`[${hP}][${xP}]`),S=`[${hP}="${fh(w?.getAttribute(hP)??"")}"][${xP}="${fh(w?.getAttribute(xP)??"")}"]`;d=()=>(f.ownerDocument??e.current)?.querySelector(S)??null}if(!i)return null;let m=f,h=()=>(m=Yw(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?Mi(Ku(I)):void 0,colorNameOf:Ot}}:null};return{at:n=>{let s=n.closest(`[${co}]`),i=s?.getAttribute(co);return s&&i?a(i,s):null},atSelection:()=>{let n=r.current.parts.selectedPartId;return n?a(n,null):null},onCopyText:n=>xN(n,o),copyValue:n=>hN(n,o),onChange:n=>{if(!n.typing){qw(null);return}let s=n.element.closest(`[${co}]`)?.getAttribute(co)??null;qw(s),s&&r.current.parts.selectedPartId!==s&&r.current.parts.select(s)}}},[o,e])}function dj({open:e,onClose:o,takenSlugs:t,onCreated:r}){let a=Lbe(),{adapter:n,siteId:s,templateId:i}=Rbe(),l=Ge(a).pages,d=!i&&!!(l.starters&&l.createFromStarter),f=Obe(()=>s?{siteId:s}:{},[s]),u=WG(),p=gP(),[m,h]=yP(null),[I,w]=yP(Vl),[S,C]=yP(null),b=Abe(null),y=_be();Ebe(()=>{if(!e)return;if(w(Vl),!d){h([]);return}let _=!0;return h(null),l.starters(f).then(P=>_&&h(P),()=>{_&&(h([]),cj.error(c("Couldn\u2019t load the pages \u2014 please retry.")))}),()=>{_=!1}},[e,d,l,f]);let v=async(_,P)=>{if(!S){C(_);try{r(await P())}catch{cj.error(c("Couldn\u2019t add the page \u2014 please retry."))}finally{C(null)}}},L=()=>{if(!n.createPage)return;let _=c("New page");v("blank",()=>n.createPage({slug:lj(_,t),title:_,layout:{}}))},A=_=>{v(_.id,()=>l.createFromStarter(_.id,{title:_.title,slug:lj(_.slug,t),...f}))},D=m??[],T=L6(D),F=F6(I,D),k=IP("nav",{"aria-label":c("Pages"),className:"sf-add-page-nav",children:[Nt(bP,{label:c("All pages"),active:I===Vl,onClick:()=>w(Vl)}),T.map(_=>Nt(bP,{label:c(_.label),active:I===_.key,onClick:()=>w(_.key)},_.key)),uT(D).length>0?Nt("div",{className:"sf-add-page-group",children:Nt(bP,{label:c("From your template"),active:I===Fg,onClick:()=>w(Fg)})}):null]});return Nt(Bbe,{open:e,onClose:o,size:"full",title:c("Add page"),initialFocus:b,children:Nt($be,{sidebarTop:IP(Wbe,{onClick:L,disabled:!n.createPage||S!==null,children:[Nt(Fbe,{"aria-hidden":!0}),c("Blank page")]}),sidebar:k,children:IP("div",{ref:b,tabIndex:-1,role:"region","aria-labelledby":y,className:"sf-add-page",children:[Nt(Ube,{id:y,level:2,as:"h3",children:c("Pages for your site")}),Nt(Hbe,{tone:"default",className:"sf-add-page-sub",children:c("Choose a page and change the text, images and more.")}),m===null?Nt(Mbe,{label:c("Loading\u2026")}):F.length===0?Nt(Nbe,{title:c("No pages to start from"),description:c("Start with a blank page, then add sections.")}):Nt(Dbe,{cols:1,smCols:2,lgCols:3,gap:8,children:F.map(_=>Nt(D6,{starter:_,config:u,metadata:p,busy:S===_.id,onAdd:A},_.id))})]})})})}import{jsx as zbe}from"react/jsx-runtime";import{createContext as Gbe,useContext as fj,useEffect as jbe,useRef as pj}from"react";var SP=Gbe(null);function yco({open:e,children:o}){let t=pj(!!e);return zbe(SP.Provider,{value:t,children:o})}function uj(){let e=fj(SP);return()=>e?.current?(e.current=!1,!0):!1}function mj(e){let o=fj(SP),t=pj(e);t.current=e,jbe(()=>{o?.current&&(t.current.setView("pages"),t.current.reveal())},[o])}var bj="sf-editor-pages-collapsed-groups";function cSe(){let e=CP(),{siteId:o,templateId:t}=Sj(),r=Ge(e).pages;if(!(!r.duplicate||t))return(a,n)=>r.duplicate(a.id,{...n,...o?{siteId:o}:{}})}function wj({onNavigate:e,onClose:o,activeSurface:t,onPreviewSurface:r}){let a=CP().chrome?.pageRows,n=sSe(),{adapter:s,capabilities:i,ready:l,currentSlug:d}=Sj(),f=Il(),{rows:u,reload:p,setRows:m,getRows:h}=Nd(),[I,w]=Vs(""),[S,C]=Vs(!1),[b,y]=Vs(null),[v,L]=Vs(!1),A=!!Ge(CP()).pages.createFromStarter,D=cSe(),[T,F]=Vs(null),[k,_]=Vs(()=>{if(typeof window>"u")return new Set;try{let z=window.localStorage.getItem(bj);return new Set(z?JSON.parse(z):[])}catch{return new Set}});hj(()=>{try{window.localStorage.setItem(bj,JSON.stringify([...k]))}catch{}},[k]);let P=z=>_(le=>{let Ce=new Set(le);return Ce.has(z)?Ce.delete(z):Ce.add(z),Ce}),O=xj(()=>X1(u??[]),[u]),W=I.trim().toLowerCase(),G=z=>!W||z.toLowerCase().includes(W),Z=z=>W?!0:!k.has(z),V=xj(()=>new Set((u??[]).map(z=>z.slug)),[u]),de=()=>{if(i.pageCreationInAdminForm&&!A){n.send("storefront-editor:new-page");return}y(null),L(!0)},ve=uj();hj(()=>{ve()&&de()},[]);let oe=i.hasSiteSettings&&!!s.createPage,Oe=async()=>{if(!(!l||S||!s.createPage)){C(!0),y(null);try{let z=await s.createPage(pL(c("New popup"),V));await p(),e(z.slug)}catch{y(c("Couldn\u2019t add the popup \u2014 please retry."))}finally{C(!1)}}},_e=Ybe(null),[Ae,Re]=Vs(null),nt=()=>{if(!oe)return de();if(Ae)return Re(null);let z=_e.current?.getBoundingClientRect();z&&Re({top:z.bottom+6,right:Math.max(8,window.innerWidth-z.right)})},Xo=z=>{let le=u??[],Ce=s.deletePage;if(!l||S||!Ce||le.length<=1)return;let bo=le.findIndex(Mo=>Mo.id===z.id),mo=le.filter(Mo=>Mo.id!==z.id),st=z.slug===d;Uh(z.id,!0),m(mo),y(null),st&&mo[0]&&e(mo[0].slug);let Xe=()=>{Uh(z.id,!1);let Mo=h()??[];if(Mo.some(mt=>mt.id===z.id))return;let Fr=[...Mo];Fr.splice(Math.max(0,Math.min(bo,Fr.length)),0,z),m(Fr)};Ij.undoable(c("Deleted \u201C{name}\u201D",{name:z.label}),{actionLabel:c("Undo"),commit:async Mo=>{await Ce(z.id,Mo),Uh(z.id,!1)},undo:()=>{Xe(),st&&e(z.slug)},onFail:()=>{Xe(),Ij.error(c("Couldn\u2019t delete the page \u2014 please retry."))}})},Zo=z=>n.send("storefront-editor:open-page",{slug:z}),yo=z=>{if(!G(z.label))return null;let le=!t&&z.slug===d,Ce=i.canDeletePagesInline&&(u??[]).length>1,bo=zn(z),mo=q1(z),st=[...bo?[{label:c("Dynamic"),tone:"info"}]:[],...mo?[{label:c("Lightbox"),tone:"success"}]:[],...z.draft?[{label:c("draft"),tone:"draft"}]:[]],Xe=st.length>0?st:void 0,Mo=!!D&&iSe(z),Fr=Mo||i.pageCreationInAdminForm||Ce?xI(Kbe,{children:[Mo&&$e(gI,{kind:"plain",label:c("Duplicate \u201C{name}\u201D",{name:z.label}),disabled:S,onClick:()=>F(z),children:$e(tSe,{size:13})}),i.pageCreationInAdminForm&&$e(gI,{kind:"plain",label:c("Page settings for \u201C{name}\u201D",{name:z.label}),onClick:()=>Zo(z.slug),children:$e(aSe,{size:13})}),Ce&&$e(gI,{kind:"delete",label:c("Delete \u201C{name}\u201D",{name:z.label}),disabled:S,onClick:()=>Xo(z),children:$e(wP,{name:"trash",size:13,strokeWidth:1.7,rounded:!0})})]}):void 0;return $e(yj,{icon:$e(rSe,{size:14}),name:z.label,selected:le,onSelect:()=>e(z.slug),badge:Xe,actions:Fr,rowProps:{"data-page-slug":z.slug}},z.id)},Do=(z,le,Ce)=>{let bo=Ce.filter(Boolean);if(bo.length===0)return null;let mo=Z(z);return xI(Vbe,{children:[$e(eSe,{count:bo.length,countLabel:ct("{n} page","{n} pages",bo.length),expanded:mo,onToggle:()=>P(z),children:le}),mo&&bo]},z)},Eo=(a?.rows??[]).filter(z=>G(z.label)).map(z=>{let le=t===z.key;return $e(yj,{icon:z.icon,name:z.label,selected:le,onSelect:()=>r(z.key),badge:{label:c("Preview"),tone:"warning"},actions:$e(gI,{kind:"plain",label:c("Open the {name} in a new tab",{name:z.label}),onClick:()=>window.open(z.href,"_blank","noopener,noreferrer"),children:$e(wP,{name:"external-link",size:13,strokeWidth:1.7,rounded:!0})}),rowProps:{"data-shop-surface":z.key}},z.key)}),ue=i.hasSiteSettings&&!!a,no=(()=>{if(u===null)return null;let z=[],le=!1;for(let Ce of O){ue&&!le&&Ce.key.startsWith("system:")&&(z.push(Do("shop",a.title,Eo)),le=!0);let bo=Ce.key===wb||Ce.label===Sb?c(Ce.label):Ce.label;z.push(Do(Ce.key,bo,Ce.rows.map(yo)))}return ue&&!le&&z.push(Do("shop",a.title,Eo)),z})();return xI("div",{className:"sf-pages",children:[$e(qbe,{icon:$e(nSe,{}),title:c("Pages"),context:f,actions:$e(Xbe,{buttonRef:_e,label:oe?c("Add"):c("New page"),hasPopup:oe?"menu":void 0,expanded:oe?Ae!==null:void 0,onClick:nt,children:$e(oSe,{size:15})})}),Ae&&$e(Jbe,{portal:!0,style:{top:Ae.top,right:Ae.right},onClose:()=>Re(null),children:xI("div",{role:"menu","aria-label":c("Add"),children:[$e(gj,{role:"menuitem",onClick:()=>{Re(null),de()},children:c("Page")}),$e(gj,{role:"menuitem",disabled:S,onClick:()=>{Re(null),Oe()},children:c("Popup")})]})}),$e("div",{className:"sf-pages-find",children:$e(Zbe,{type:"search",leftIcon:$e(wP,{name:"search",size:14,rounded:!0}),placeholder:c("Search all pages\u2026"),value:I,onChange:z=>w(z.target.value),"aria-label":c("Search all pages")})}),b&&!v&&$e("div",{className:"sf-note sf-note--error",role:"alert",children:b}),no===null?$e("div",{className:"sf-note",children:c("Loading\u2026")}):no.some(Boolean)?$e(Qbe,{ariaLabel:c("Pages"),className:"sf-scroll",children:no}):$e("div",{className:"sf-note",children:I.trim()?c("No pages match your search"):c("No pages yet. Add one with + above.")}),D&&T&&$e(lSe,{source:{title:T.label,slug:T.slug},taken:V,host:mu(),duplicate:z=>D(T,z),onClose:()=>F(null),onDuplicated:z=>{F(null),p(),e(z.slug)}},T.id),v?$e(dj,{open:!0,onClose:()=>L(!1),takenSlugs:V,onCreated:z=>{L(!1),p(),e(z.slug)}}):null]})}import{jsx as kj}from"react/jsx-runtime";import{createContext as fSe,useCallback as pSe,useContext as uSe,useMemo as mSe,useState as hSe}from"react";import{CanvasChromeContext as xSe}from"efficient-easel/easel";import{useSelectHandler as gSe}from"efficient-easel/draw/client";import{parseHexColor as dSe}from"efficient-shell/format";var II=["chat-bubble-left-right","chat-bubble-oval-left-ellipsis","chat","megaphone","phone","sparkles"],rc=II[0];var Ys="right";function yI(e){return II.includes(e??"")?e:rc}function Cj(e){return e==="left"?"left":Ys}function vj(e){return e&&dSe(e)===e.toLowerCase()?e.toLowerCase():""}var Tj="chat",bI={enabled:!0,title:"",subtitle:"",greeting:"",launcherColor:"",launcherIcon:"",launcherPosition:Ys,launcherLabel:"",showOnPhones:!0};function Zco(e){return{enabled:e.enabled,title:e.title,subtitle:e.subtitle,greeting:e.greeting,launcherColor:vj(e.launcherColor),launcherIcon:e.launcherIcon?yI(e.launcherIcon):"",launcherPosition:Cj(e.launcherPosition),launcherLabel:e.launcherLabel??"",showOnPhones:e.showOnPhones!==!1}}var Pj=fSe({chat:bI,setChat:()=>{},setSelected:()=>{},setSelectHandler:()=>{}});function Jco({children:e,chat:o=bI,onChatChange:t}){let[r,a]=hSe(!1),n=pSe(d=>t?.(d),[t]),{select:s,setSelectHandler:i}=gSe(),l=mSe(()=>({selected:()=>r?Tj:null,select:d=>d===Tj&&s()}),[r,s]);return kj(Pj.Provider,{value:{chat:o,setChat:n,setSelected:a,setSelectHandler:i},children:kj(xSe.Provider,{value:l,children:e})})}var SI=()=>uSe(Pj);import{jsx as vP}from"react/jsx-runtime";import{DesktopIcon as ISe,PhoneIcon as ySe,TabletIcon as bSe}from"efficient-easel/icons";import{VIEW_TIERS as SSe,VIEW_TIER_LABEL as wSe}from"efficient-easel/draw";var CSe={desktop:vP(ISe,{}),tablet:vP(bSe,{}),mobile:vP(ySe,{})},Ej=SSe.map(e=>({id:e,get label(){return c(wSe[e])},icon:CSe[e]}));import{PreviewDeviceContext as APe}from"efficient-easel/draw/client";import{jsx as vSe}from"react/jsx-runtime";import{createContext as kSe,useCallback as _j,useContext as TSe,useMemo as PSe,useRef as ESe}from"react";var _Se=Object.fromEntries(yu.map(e=>[e,{value:"",error:null}])),Oj=kSe({links:$O,rows:_Se,canSave:!1,saveLink:async()=>({ok:!1,error:"There is no website to save to."}),openPanel:()=>{},setOpenHandler:()=>{}});function ldo({children:e,value:o}){let t=ESe(()=>{}),r=_j(()=>t.current(),[]),a=_j(s=>{t.current=s},[]),n=PSe(()=>({...o,openPanel:r,setOpenHandler:a}),[o,r,a]);return vSe(Oj.Provider,{value:n,children:e})}var Yf=()=>TSe(Oj);import{jsx as OSe}from"react/jsx-runtime";import{createContext as ASe,useContext as RSe,useMemo as LSe,useState as FSe}from"react";var Aj=ASe(null);function pdo({children:e}){let[o,t]=FSe(null),r=LSe(()=>({surface:o,setSurface:t}),[o]);return OSe(Aj.Provider,{value:r,children:e})}function Rj(){return RSe(Aj)??{surface:null,setSurface:()=>{}}}import{createPreviewSelectionContext as BSe}from"efficient-easel/draw/client";var{Provider:hdo,useSelection:wI}=BSe("selectedHeroPart");import{jsx as Ne,jsxs as wn,Fragment as VK}from"react/jsx-runtime";import{useEasel as ske,useRootFields as ike}from"efficient-easel/easel";import{EmptyState as lke}from"efficient-shell/ui";function Lj({kind:e,pageName:o}){return{name:o?.trim()||c("This page"),kindLabel:zn({kind:e})?c("Template"):c("Page")}}import{headWords as ZK,InspectorHead as cke,InspectorIconButton as YK}from"efficient-easel/chrome";import{DuplicateIcon as dke,TrashIcon as fke}from"efficient-easel/icons";import{panelFieldsOf as pke}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 MSe,BlockBoxIcon as HSe,BlockButtonIcon as WSe,BlockDividerIcon as Bj,BlockFooterIcon as Nj,BlockHeadingIcon as $Se,BlockProductIcon as USe,BlockSocialIcon as zSe,BlockTextIcon as GSe,CardPaymentIcon as jSe,ChatIcon as KSe,AccountIcon as VSe,GlobeIcon as YSe,GridIcon as qSe,ImageIcon as TP,MapIcon as XSe,MediaIcon as ZSe,PageIcon as JSe}from"efficient-easel/icons";import{jsx as kP,Fragment as NSe,jsxs as DSe}from"react/jsx-runtime";var Fj=DSe(NSe,{children:[kP("circle",{cx:"9",cy:"20",r:"1.3"}),kP("circle",{cx:"18",cy:"20",r:"1.3"}),kP("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 QSe={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:Fj,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"})},ewe=H("rect",{x:"4",y:"4",width:"16",height:"16",rx:"2.5"}),owe={footer:Nj,Footer:Nj,Divider:Bj,FooterDivider:Bj,Banner:MSe,Flex:HSe,FooterSocial:zSe,FooterPayment:jSe,page:JSe,website:YSe,AccountBlock:VSe,chat:KSe,Heading:$Se,Text:GSe,ImageBlock:TP,ButtonBlock:WSe,LocationMap:XSe,Grid:qSe,ProductRef:USe,heroMedia:ZSe,heroImage:TP,heroImage2:TP},twe={MenuBlock:"FooterMenu",EmailFormBlock:"FooterEmailSignup",SocialLogosBlock:"FooterSocial",PaymentLogosBlock:"FooterPayment",SiteHeader:"header",SiteFooter:"footer"};function qs({type:e,size:o=16,className:t}){let r=twe[e]??e,a=owe[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:QSe[r]??ewe})}import{PanelHideButton as qK}from"efficient-easel/screen/components/SidePanelHead";import{useEaselSession as uke}from"efficient-easel/screen/lib/session-context";import{jsx as Be,jsxs as qf,Fragment as rwe}from"react/jsx-runtime";import{useEffect as awe,useId as Dj,useState as nwe}from"react";import{IconPicker as swe}from"efficient-shell/ui";import{SettingsDefaultReset as iwe,SettingsField as Xf,SettingsSegmented as lwe,SettingsSwitch as Mj}from"efficient-easel/panel";import{ButtonIcon as cwe,ButtonIconIcon as dwe,EyeIcon as fwe,PhoneIcon as pwe,PlacementIcon as uwe,TypeIcon as mwe}from"efficient-easel/icons";var hwe="Chat with us",xwe="We usually reply within a few minutes",gwe="Hi! Ask us anything \u2014 about a wheel, an order, or fitment. Leave your details and we\u2019ll reply.";function CI({label:e,value:o,placeholder:t,onCommit:r,multiline:a=!1,hint:n}){let[s,i]=nwe(o);awe(()=>i(o),[o]);let l=()=>{s!==o&&r(s)};return Be(Xf,{label:e,icon:Be(mwe,{}),changed:o!=="",action:Be(Zf,{label:e,changed:o!=="",onReset:()=>r("")}),hint:n,children:a?Be("textarea",{value:s,placeholder:t,rows:3,onChange:d=>i(d.target.value),onBlur:l,"aria-label":e}):Be("input",{type:"text",value:s,placeholder:t,onChange:d=>i(d.target.value),onBlur:l,onKeyDown:d=>{d.key==="Enter"&&d.currentTarget.blur()},"aria-label":e,autoComplete:"off"})})}function Zf({label:e,changed:o,onReset:t}){return Be(iwe,{words:ce()?.panel,label:e,changed:o,onReset:t})}function Iwe({label:e,icon:o,checked:t,fallback:r,onChange:a,hint:n}){let s=Dj();return Be(Xf,{label:e,labelId:s,icon:o,changed:t!==r,action:qf("span",{className:"inline-flex items-center gap-2",children:[Be(Mj,{checked:t,onChange:a,ariaLabelledBy:s}),Be(Zf,{label:e,changed:t!==r,onReset:()=>a(r)})]}),hint:n})}var ywe=II.map(e=>({value:e,icon:$u(e)}));function bwe(){let{theme:e}=fe(),o=vo(e).themes[0];return Pc(o)??o?.accent??""}function Hj(){let{chat:e,setChat:o}=SI(),t=Dj(),r=bwe(),a=e.launcherIcon?yI(e.launcherIcon):rc;return qf(rwe,{children:[Be(Xf,{label:c("Show the chat bubble"),labelId:t,icon:Be(fwe,{}),changed:!e.enabled,action:qf("span",{className:"inline-flex items-center gap-2",children:[Be(Mj,{checked:e.enabled,onChange:n=>o({enabled:n}),ariaLabelledBy:t}),Be(Zf,{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.")}),qf(Cw,{title:c("Look"),children:[Be(yt,{label:c("Button color"),icon:Be(cwe,{}),changed:e.launcherColor!=="",value:e.launcherColor,inherited:r,caption:e.launcherColor?void 0:c("Site button color"),onChange:n=>o({launcherColor:n}),onReset:()=>o({launcherColor:""})}),Be(Xf,{label:c("Icon"),icon:Be(dwe,{}),value:Be(aw,{value:a}),changed:a!==rc,action:Be(Zf,{label:c("Icon"),changed:a!==rc,onReset:()=>o({launcherIcon:""})}),children:Be(swe,{label:c("Icon"),value:a,options:ywe,onChange:n=>o({launcherIcon:n===rc?"":n})})}),Be(Xf,{label:c("Position"),icon:Be(uwe,{}),changed:e.launcherPosition!==Ys,action:Be(Zf,{label:c("Position"),changed:e.launcherPosition!==Ys,onReset:()=>o({launcherPosition:Ys})}),children:Be(lwe,{options:[{label:c("Right"),id:"right"},{label:c("Left"),id:"left"}],value:e.launcherPosition,ariaLabel:c("Position"),onChange:n=>o({launcherPosition:n})})}),Be(CI,{label:c("Label"),value:e.launcherLabel,placeholder:c("Icon only"),onCommit:n=>o({launcherLabel:n}),hint:c("Shows when a visitor points at the button")}),Be(Iwe,{label:c("Show on phones"),icon:Be(pwe,{}),checked:e.showOnPhones,fallback:bI.showOnPhones,onChange:n=>o({showOnPhones:n})})]}),qf(Cw,{title:c("Wording"),children:[Be(CI,{label:c("Title"),value:e.title,placeholder:hwe,onCommit:n=>o({title:n})}),Be(CI,{label:c("Subtitle"),value:e.subtitle,placeholder:xwe,onCommit:n=>o({subtitle:n})}),Be(CI,{label:c("Greeting message"),value:e.greeting,placeholder:gwe,onCommit:n=>o({greeting:n}),multiline:!0}),Be("p",{className:"es-field-hint",children:c("Leave a field blank to use the built-in wording.")})]})]})}import{jsx as Xs,Fragment as YP,jsxs as Gj}from"react/jsx-runtime";import{useEffect as Xwe,useId as Uj,useState as zj}from"react";import{SettingsField as Zwe}from"efficient-easel/panel";import{jsx as $we}from"react/jsx-runtime";import{forwardRef as Swe,createElement as PP}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=Swe(({color:n="currentColor",size:s=24,stroke:i=2,title:l,className:d,children:f,...u},p)=>PP("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&&PP("title",{key:"svg-title"},l),...r.map(([m,h])=>PP(m,h)),...Array.isArray(f)?f:[f]]));return a.displayName=`${t}`,a};var wwe=[["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"}]],EP=pe("outline","brand-facebook","BrandFacebook",wwe);var Cwe=[["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"}]],_P=pe("outline","brand-instagram","BrandInstagram",Cwe);var vwe=[["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"}]],OP=pe("outline","brand-line","BrandLine",vwe);var kwe=[["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"}]],AP=pe("outline","brand-linkedin","BrandLinkedin",kwe);var Twe=[["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"}]],RP=pe("outline","brand-pinterest","BrandPinterest",Twe);var Pwe=[["path",{d:"M15 10l-4 4l6 6l4 -16l-18 7l4 2l2 6l3 -4",key:"svg-0"}]],LP=pe("outline","brand-telegram","BrandTelegram",Pwe);var Ewe=[["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"}]],FP=pe("outline","brand-tiktok","BrandTiktok",Ewe);var _we=[["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"}]],BP=pe("outline","brand-wechat","BrandWechat",_we);var Owe=[["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"}]],NP=pe("outline","brand-whatsapp","BrandWhatsapp",Owe);var Awe=[["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"}]],DP=pe("outline","brand-x","BrandX",Awe);var Rwe=[["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"}]],MP=pe("outline","brand-youtube","BrandYoutube",Rwe);var Lwe=[["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"}]],HP=pe("filled","brand-facebook-filled","BrandFacebookFilled",Lwe);var Fwe=[["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"}]],WP=pe("filled","brand-instagram-filled","BrandInstagramFilled",Fwe);var Bwe=[["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"}]],$P=pe("filled","brand-linkedin-filled","BrandLinkedinFilled",Bwe);var Nwe=[["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"}]],UP=pe("filled","brand-pinterest-filled","BrandPinterestFilled",Nwe);var Dwe=[["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"}]],zP=pe("filled","brand-tiktok-filled","BrandTiktokFilled",Dwe);var Mwe=[["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"}]],GP=pe("filled","brand-whatsapp-filled","BrandWhatsappFilled",Mwe);var Hwe=[["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"}]],jP=pe("filled","brand-x-filled","BrandXFilled",Hwe);var Wwe=[["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"}]],KP=pe("filled","brand-youtube-filled","BrandYoutubeFilled",Wwe);var Jfo="outline",vI={fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},Uwe={},VP={fillRule:"evenodd"},zwe=[["path",{...vI,d:"M21 4L3 11L7 13L9 19L12 15L17 20z"}],["path",{...VP,d:"M21 4L3 11L7 13L9 19L12 15L17 20zM15.212 8.939 10.576 13.576 11.424 14.424 16.061 9.788z"}]],Gwe=[["path",{...vI,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",{...Uwe,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("")}]],jwe=[["path",{...vI,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",{...vI,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",{...VP,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",{...VP,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("")}]],Kwe=pe("filled","brand-telegram-filled","BrandTelegramFilled",zwe),Vwe=pe("filled","brand-line-filled","BrandLineFilled",Gwe),Ywe=pe("filled","brand-wechat-filled","BrandWechatFilled",jwe),qwe={instagram:{outline:_P,solid:WP},facebook:{outline:EP,solid:HP},tiktok:{outline:FP,solid:zP},youtube:{outline:MP,solid:KP},x:{outline:DP,solid:jP},linkedin:{outline:AP,solid:$P},pinterest:{outline:RP,solid:UP},whatsapp:{outline:NP,solid:GP},telegram:{outline:LP,solid:Kwe},line:{outline:OP,solid:Vwe},wechat:{outline:BP,solid:Ywe}};function $j({platform:e,iconStyle:o,size:t}){let r=qwe[e][o];return $we(r,{size:t,stroke:1.75,"aria-hidden":"true",focusable:"false"})}var Jwe={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 Qwe({platform:e}){let{rows:o,saveLink:t}=Yf(),{value:r,error:a}=o[e],[n,s]=zj(r),[i,l]=zj(!1),d=Uj(),f=Uj();Xwe(()=>s(r),[r]);let u=async()=>{if(n.trim()===r){n!==r&&s(r);return}l(!0),await t(e,n),l(!1)},p=WO[e];return Gj(YP,{children:[Xs(Zwe,{label:c(p),htmlFor:d,icon:Xs($j,{platform:e,iconStyle:"outline",size:18}),children:Xs("input",{id:d,type:"text",inputMode:"url",value:n,placeholder:Jwe[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&&Xs("p",{id:f,className:"sf-note sf-note--error",role:"alert",children:a})]})}function jj({unavailable:e}){let{canSave:o}=Yf();return!o&&e?Xs(YP,{children:e}):Gj(YP,{children:[Xs("p",{className:"es-field-hint",children:c("Paste a link to each profile. A platform left empty shows nothing on the site.")}),yu.map(t=>Xs(Qwe,{platform:t},t))]})}import{jsx as Qs,Fragment as kCe,jsxs as TCe}from"react/jsx-runtime";import{useId as PCe,useMemo as ECe}from"react";import{useEasel as _Ce}from"efficient-easel/easel";import{SettingsField as OCe,SettingsSwitch as ACe}from"efficient-easel/panel";import{EyeIcon as RCe}from"efficient-easel/icons";import{fieldShownInView as LCe}from"efficient-easel/fields";import{usePreviewDevice as FCe}from"efficient-easel/draw/client";import{jsx as Js,Fragment as tCe}from"react/jsx-runtime";import{createContext as rCe,useContext as aCe,useLayoutEffect as nCe,useMemo as Vj,useRef as sCe,useState as Yj}from"react";import{useEasel as qj,useSelectedFields as iCe}from"efficient-easel/easel";import{fieldShownInView as lCe,Inspector as cCe,LEAD_BAND_KEY as dCe,planFields as Xj}from"efficient-easel/fields";function Kj({allTabs:e,remembered:o,inherited:t,buckets:r,hasText:a}){return o&&(e||r.includes(o))?o:t&&r.includes(t)?t:a?"Design":r[0]??"Design"}import{jsx as eCe}from"react/jsx-runtime";import{EmptyState as oCe}from"efficient-shell/ui";function Zs(){return eCe(oCe,{variant:"none",icon:!1,message:c("These settings apply to every view.")})}import{usePreviewDevice as fCe}from"efficient-easel/draw/client";import{deviceField as pCe}from"efficient-easel/screen/lib/document/device-fields";var uCe="Text",qP=new Map,kI=new Set,mCe=Object.fromEntries(Gf.map(e=>{let o=xB[e];return[e,Js(o,{},e)]})),Zj=rCe(null),hCe={_partBody:pCe("each",{type:"custom",render:()=>Js(xCe,{})})};function xCe(){return Js(tCe,{children:aCe(Zj)})}function Ar({entries:e,entryCount:o=0,part:t=null,omit:r,motion:a,body:n,itemWord:s}){let{id:i,fields:l,values:d,readOnly:f,onChange:u}=iCe(),p=Vj(()=>a?{...d,...a.values}:d,[d,a?.values]),m=(oe,Oe)=>a?.keys.has(oe)?a.onChange(oe,Oe):u(oe,Oe),h=fCe(),{appState:I,config:w}=qj(oe=>oe),S=Q1(h,w,I.data.content??[],I.ui.itemSelector),C=n===void 0?AH(l,t):hCe,b=Vj(()=>{let oe=r?.length?Object.fromEntries(Object.entries(C).filter(([Oe])=>!r.includes(Oe))):C;return a?{...oe,...a.fields}:oe},[C,r,a?.fields]),y=vb(b,p,S),[v,L]=Yj(()=>new Set(kI)),A=lCe({},h),D={key:dCe,title:uCe},T=qj(oe=>oe.selectedItem)!==null,F=a?.part??t??"",k=`${i}:${F}:${String(h)}`,[_,P]=Yj(()=>({tab:qP.get(k)})),O=`${i}:${F}`,W=sCe(null),G={...S,node:p},Z=Xj(y,{values:p,context:G}).buckets,V=Kj({allTabs:T,remembered:qP.get(k),inherited:W.current?.panel===O?W.current.tab:_.tab,buckets:Z,hasText:A&&o>0}),de=!A&&!Z.includes(V)&&(Xj(vb(b,p,{...S,device:"desktop"}),{values:p,context:{...G,device:"desktop"}}).buckets.includes(V)||V==="Design"&&o>0);nCe(()=>{W.current={panel:O,tab:V}});let ve=V==="Design";return Js(Zj.Provider,{value:n??null,children:Js(kw.Provider,{value:a?p:null,children:Js(cCe,{fields:y,values:p,onChange:m,readOnly:f,allTabs:T,showWhenContext:G,context:{itemWord:s},tab:V,onTab:oe=>{qP.set(k,oe),P({tab:oe})},tabIcons:mCe,idPrefix:i,ariaLabel:c("Section settings"),lead:ve?e:null,leadFold:D,closedFolds:v,onFold:(oe,Oe)=>{Oe?kI.delete(oe):kI.add(oe),L(new Set(kI))},children:de&&Js(Zs,{})})})})}import{useMemo as gCe}from"react";import{useEasel as ICe}from"efficient-easel/easel";import{useSectionOps as yCe}from"efficient-easel/screen/lib/document/use-section-ops";var Jj=new Map,bCe=e=>{let o=Jj.get(e);return o||Jj.set(e,o=sI(aI(e),`part:${e}`)),o},SCe=new Set(dv);function ac(e,o,t){let{getItemById:r,getSelectorForId:a}=ICe(f=>f),n=yCe(),s=r(e)?.props??{},i=Cs(s,o),l=JSON.stringify(i),d=gCe(()=>Object.fromEntries(dv.map(f=>[f,i[f]])),[l]);return{part:o,fields:bCe(t),values:d,keys:SCe,onChange:(f,u)=>{let p=a(e),m=r(e);if(!p||!m)return;let h=n2(m.props??{},o,f,u);n.replaceComponent(p.zone,p.index,{...m,props:h})}}}import{Fragment as wCe,createElement as CCe}from"react";import{deviceField as XP}from"efficient-easel/screen/lib/document/device-fields";var qo=()=>({type:"custom",render:()=>CCe(wCe)});var ZP={words:qo(),sourceNote:qo(),style:qo(),font:qo(),italic:qo(),fontSize:XP("each",qo()),lineHeight:qo(),letterSpacing:qo(),paragraphSpacing:qo(),padding:qo(),align:XP("each",qo()),letterCase:qo(),fixedSizeHint:XP("each",qo()),regionNote:qo(),regionStyle:qo()},vCe=["fontSize","align"];function Qj(e){return vCe.includes(e)}var eK={showTicker:qo(),items:qo()};var BCe="root:default-zone";function oK({heroId:e}){let{appState:o,dispatch:t}=_Ce(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=ECe(()=>{let m=n?.props.tickerItems;return Array.isArray(m)?m:h4.map(h=>({text:h}))},[n]),l=PCe(),d=FCe(),f=m=>LCe(eK[m],d),u=ac(e,x4,"block");if(!n)return Qs("p",{className:"sf-note",children:c("This ticker\u2019s hero is no longer on the page.")});let p=m=>t({type:"replace",destinationZone:BCe,destinationIndex:a,data:{...n,props:{...n.props,...m}}});return Qs(Ar,{motion:u,body:TCe(kCe,{children:[!f("showTicker")&&!f("items")&&Qs(Zs,{}),f("showTicker")&&Qs(OCe,{label:c("Show ticker"),labelId:l,icon:Qs(RCe,{}),action:Qs(ACe,{checked:s,onChange:m=>p({showTicker:m}),ariaLabelledBy:l})}),f("items")&&Qs(Ow,{label:_w.label,icon:_w.icon,items:i,placeholder:"item",onChange:m=>p({tickerItems:m}),markup:!0})]})})}import{jsx as te,Fragment as ep,jsxs as ir}from"react/jsx-runtime";import{useContext as qCe,useEffect as JP,useRef as XCe,useState as pK}from"react";import{FieldSelect as ZCe,InspectorField as JCe,fieldShownInView as QCe}from"efficient-easel/fields";import{InertHint as SK,SettingsField as eve}from"efficient-easel/panel";import{InspectorUpLevel as AI}from"efficient-easel/chrome";import{StylesIcon as ove,TypeIcon as tve}from"efficient-easel/icons";import{useEasel as rve}from"efficient-easel/easel";import{TextPartPanel as uK}from"efficient-easel/copy";import{Button as ave,IconButton as nve,Tooltip as sve}from"efficient-shell/ui";import{jsx as aK,jsxs as NCe}from"react/jsx-runtime";import{DEFAULT_EASEL_STRINGS as DCe}from"efficient-easel/strings";import{COPY_CELLS as nc,COPY_CELL_LENGTHS as tK,CopyBox as MCe,lengthCellUnits as HCe}from"efficient-easel/copy";import{PaddingYIcon as WCe}from"efficient-easel/icons";import{onDesktopWords as $Ce}from"efficient-easel/screen/lib/document/box-fields";var rK=DCe.copy.cells,UCe={kind:"spacing"},zCe=["left","center","right","justify"];function TI(e,o,t,r="desktop"){let a=Ad(e),n=bC(r),s=e[n]??e.size??o.sizePx,i=rD(e,r),l=(f,u,p,m,h)=>{let I=Yt[p];return HCe({preset:f,row:u,table:ya,unit:e[I],value:e[p],tier:r,styleValue:m,label:c(h),onPick:(w,S)=>t({[I]:w??null,[p]:S??null}),onChange:(w,S)=>t({...S?{[I]:S.unit??null}:{},[p]:w??null})})},d={key:"padding",name:c("Padding"),icon:aK(WCe,{}),unit:"px",step:xC,shiftStep:10,min:mC,max:hC};return[{...nc.fontSize,key:"fontSize",value:e[n],styleValue:Math.round(o.sizePx),onChange:f=>t({[n]:f??null}),...l(nc.fontSize,tK.fontSize,n,Math.round(o.sizePx),rK.fontSize),...n==="size"?{}:{reset:{detail:i?$Ce(f=>c(f),`${i.px}px`,i.view):void 0}}},{...nc.lineHeight,key:"lineHeight",value:a.lineHeight,styleValue:o.lineRatio,onChange:f=>t(f===void 0?{lineHeight:null,line:null}:{lineHeight:f})},{...nc.letterSpacing,key:"letterSpacing",scale:s,value:a.letterSpacingEm,styleValue:o.letterEm,onChange:f=>t(f===void 0?{letterSpacing:null,letter:null}:{letterSpacing:f})},{...nc.paragraphSpacing,key:"paragraphSpacing",value:e.paragraphSpacing,styleValue:0,onChange:f=>t({paragraphSpacing:f??null}),...l(nc.paragraphSpacing,tK.paragraphSpacing,"paragraphSpacing",0,rK.paragraphSpacing)},{...d,value:e.padding,styleValue:o.paddingPx,onChange:f=>t({padding:f??null}),...l(d,UCe,"padding",o.paddingPx,"Padding")}]}function nK({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=TI(n,s,i),h=Vw(r,t);return NCe("div",{className:"sf-part-textbox",children:[u,aK(MCe,{value:e,onChange:o,multiline:t,placeholder:d,ariaLabel:f,rules:kp,tools:h,barShows:p?"focus":"always",colors:r?l:[],colorNameOf:Ot,align:a?{value:n.align??s.align,allow:zCe,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 mK}from"efficient-easel/draw/client";import{jsx as PI,Fragment as GCe,jsxs as jCe}from"react/jsx-runtime";import{Button as sK,Dialog as KCe}from"efficient-shell/ui";function iK({styleName:e,onCancel:o,onConfirm:t}){return PI(KCe,{open:!0,onClose:o,role:"alertdialog",size:"sm",title:c("Update {style}?",{style:e}),footer:jCe(GCe,{children:[PI(sK,{variant:"secondary",onClick:o,children:c("Cancel")}),PI(sK,{variant:"primary",onClick:t,children:c("Update style")})]}),children:PI("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 ive}from"efficient-easel/screen/components/ScreenDocumentContext";import{usePreviewDevice as lve}from"efficient-easel/draw/client";import{shownTier as _I}from"efficient-easel/screen/lib/document/device-fields";import{TEXT_FIELD_MARKER as cve,viewKeyAt as dve}from"efficient-easel/draw";import{useSectionOps as fve}from"efficient-easel/screen/lib/document/use-section-ops";import{useEaselHost as pve}from"efficient-easel/screen/lib/host";function VCe(e){let o=new Set([...Object.keys($(lm,e)??{}),...$(cm,e)??[]]);for(let[t,r]of Object.entries($(Zb,e)??{}))r.verb==="snapshot"&&o.add(t);return[...o].sort()}var YCe={CollectionCard:"product",FooterMenu:"menu",Gallery:"product",GalleryItem:"product",ProductGrid:"product",ProductHero:"product",SpecTable:"product",Events:"blog",FeaturedCover:"blog",LongRead:"blog",SubscribeBlogs:"blog"},lK={product:"Synced from the product.",blog:"Synced from the blog post.",menu:"Synced from the site menu."},cK="Open",dK={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 sc(e){let o=e?.source?.slug;return be(o)}function Jf(e){return $(YCe,e)??null}function fK(e,o){let t=Jf(e);return t&&VCe(e).includes(o)?t:null}function EI(e){let o=e?.menu?.id;return be(o)}function QP(e){return e?c(e):null}function hK(e){return e.kind==="role"?ry[e.role]:e.kind==="custom"?"Custom":null}function uve(e){let o=na(e.role);return o?{kind:"role",role:o}:null}function mve(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 OI(e,o,t,r){return uve(hs(e,o))??mve(t,r)}function hve(e,o){if(!e.length)return null;let t=o(e[0]);return e.every(r=>o(r)===t)?t:null}function xK(e){return[{value:Qf,label:c("No style"),description:c("Section\u2019s own")},...e.map(o=>({value:o.id,label:o.name,description:o.values.font?ci(o.values.font)?.label:void 0}))]}var Qf="";function xve({face:e,base:o,onPick:t}){let r=e.kind==="role"?e.role:Qf,a=[{label:c("No style"),value:Qf},...J0.map(n=>({label:c(ry[n]),value:n}))];return te(ZCe,{ariaLabel:c("Style"),value:r,options:a,inline:!0,onChange:n=>t(n===Qf?null:n),renderOption:n=>n.value===Qf?ir(ep,{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(${ci(o.fontKey)?.cssVar})`:void 0,fontWeight:o?.weight},children:QP(hK(e))}),valueText:n=>QP(hK(e))??n?.label??""})}var wK=["regionNote","regionStyle"],gve=Object.keys(ZP).filter(e=>!wK.includes(e));function CK(e,o){return!e.some(o)}function Ive({sectionName:e,onBack:o,textEditor:t,styleRow:r,children:a,tabs:n}){let s=ir(ep,{children:[t,r,a]});return ir("div",{className:"sf-part-panel",children:[te(AI,{inline:!0,name:c(e),onSelect:o}),n?n(s):s]})}function RI({source:e,slug:o,menuId:t}){let r=pve(),a=dK[e],n=!a.needsSlug||!!o;return te("div",{className:"sf-note sf-note--source",children:ir(SK,{children:[c(lK[e]),n?ir(ep,{children:[" ",te(ave,{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(cK)})]}):null]})})}var gK=4,yve=120;function IK(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 yK({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 ir("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?ir(ep,{children:[d,l("regionStyle")&&te("p",{className:"es-field-hint",children:IK(e)})]}):a?l("regionStyle")?te(ep,{children:te(eve,{label:c("Style"),icon:te(ove,{}),hint:IK(e),children:te(xve,{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(RI,{source:n,slug:s}):null,CK([...wK,"sourceNote",...d?["fontSize"]:[]],p=>l(p)&&(p!=="sourceNote"||!!n))&&te(Zs,{}),te(AI,{inline:!0,name:c("Page"),onSelect:i})]})}function bve({onBack:e}){return ir("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(AI,{inline:!0,name:c("Page"),onSelect:e})]})}function Sve({onBack:e,partId:o,why:t}){return ir("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:ir("code",{children:[o," \u2014 ",t]})}),te(AI,{inline:!0,name:c("Page"),onSelect:e})]})}function vK({nodeId:e,propKey:o,onBack:t,onEditStyle:r}){let{getItemById:a,getSelectorForId:n,config:s}=rve(X=>X),i=fve(),l=uN(),{partStyle:d}=jl(),{fonts:f,textStyles:u}=fe(),p=qCe(ive),m=!p?.capabilities?.hasSiteTheme,{persist:h}=zi({themeFromDocument:m,tokenRef:p?.tokenRef,siteId:p?.siteId??null}),I=Mh({themeFromDocument:m,persist:h}),[w,S]=pK(!1),C=lve(),b=X=>(_I(C)!=="tablet"||Qj(X))&&QCe(ZP[X],C),y=XCe(null),v=a(e),L=n(e),A=v?s.components[v.type]:void 0,{key:D,row:T}=Cr(o),F=A?.fields?.[D],k=T?cl(F,T):F,_=qr(e,o),P=v?.props??{},O=ll(k),W=Qm(k),G=Nw(k),Z=v?Jf(v.type):null,V=v?fK(v.type,D):null,de=T?yd(P[D],T):P[D],ve=!!T&&!(Array.isArray(P[D])&&T.index<P[D].length);JP(()=>{pN(document)||y.current?.querySelector(".es-copy [contenteditable='true'], .es-copy textarea, .sf-copybox textarea, .sf-copybox input")?.focus()},[_]);let[oe,Oe]=pK(0);JP(()=>Oe(0),[_]);let _e=!!v&&!ve&&(!L||!k);JP(()=>{if(!_e||oe>=gK)return;let X=setTimeout(()=>Oe(po=>po+1),yve);return()=>clearTimeout(X)},[_e,oe]);let Ae=_e&&oe<gK,Re=ac(e,Ta(v?.type,o),"textPart");if(!v||ve)return te(bve,{onBack:t});let nt=Kl(v.type),Xo=nt?kc(nt,o):null;if(nt&&Xo){let X=d?.partId===_?d:null,po=nt[Xo],cr=po.writable===!0&&!!L,Ba=Pn=>{L&&i.replaceComponent(L.zone,L.index,{...v,props:xs(P,o,"role",Pn)})};if(cr&&t_(po)){let Pn=hs(P,o),D0=En=>{if(!L)return;let oy=P;for(let[m7,h7]of Object.entries(En))oy=xs(oy,o,m7,h7??null);i.replaceComponent(L.zone,L.index,{...v,props:oy})},f7=va(I.saved,I.old),p7=uC(Pn)??"",u7=TI(Pn,X?.base??bK,D0,_I(C)).filter(En=>En.key==="fontSize"&&b(En.key));return te(Ar,{motion:Re,body:te(yK,{region:po,sizePx:X?.base.sizePx??null,face:OI(P,o,X,f),base:X?.base??null,source:Z,slug:sc(P),onBack:t,shows:b,ownLook:cD(Pn),sizedStyle:te(uK,{style:b("style")?{value:p7,options:xK(f7),onChange:En=>D0(En?{textStyle:En}:{textStyle:null,role:null}),onEditStyles:r}:void 0,cells:u7})})})}return te(Ar,{motion:Re,body:te(yK,{region:po,sizePx:X?.base.sizePx??null,face:OI(P,o,X,f),base:X?.base??null,onFollowStyle:cr?Ba:void 0,source:Z,slug:sc(P),onBack:t,shows:b})})}if(!L||!k)return Ae?te("div",{className:"sf-note","aria-busy":"true"}):te(Sve,{onBack:t,partId:_,why:L?"no field":"no selector"});let Zo=X=>{i.replaceComponent(L.zone,L.index,{...v,props:X})},yo=X=>{if(rn(X).hidden!==rn(de).hidden||!O){let po=T?Lw(P,D,T,X):{...P,[D]:X};po&&Zo(po);return}lh({node:v,propKey:o,kind:O,zone:L.zone,index:L.index},rn(X).text,i.replaceComponent)},Do=de,Eo=d?.partId===_?d:null,ue=Eo?.styleOwner,no=ue?a(ue.owner):null,z=ue&&no?n(ue.owner):null,le=!!(ue&&no&&z),Ce=le?no.props??{}:P,bo=le?X=>i.replaceComponent(z.zone,z.index,{...no,props:X}):Zo,mo=le?ue.kind:Ta(v?.type,o),st=hs(Ce,mo),Xe=[{partKey:mo,face:OI(Ce,mo,Eo,f),sizeGroup:Eo?.sizeGroup??null,base:Eo?.base??bK,style:st}],Mo=hve(Xe,X=>X.sizeGroup),Fr=Mi(Eo?.inks),mt=(X,po)=>{let cr=Ce;for(let Ba of Xe)cr=xs(cr,Ba.partKey,X,po);bo(cr)},ey=X=>X?mt("textStyle",X):pc({textStyle:null,role:null}),pc=X=>{let po=Ce;for(let cr of Xe)for(let[Ba,Pn]of Object.entries(X))po=xs(po,cr.partKey,Ba,Pn??null);bo(po)},ri=O==="text"||O==="textarea",{text:ai,hidden:ra}=rn(de),Fa=k?.[cve]?.label??o,Cn=ra?c("Show {label} on the slide",{label:c(Fa)}):c("Hide {label} on the slide",{label:c(Fa)}),uc=ir("div",{className:"sf-field-head",children:[te(tve,{}),te("span",{className:"sf-field-label sf-field-label--inline",children:c(Fa)}),ri&&te(sve,{content:Cn,children:te(nve,{"aria-pressed":ra,"aria-label":Cn,onClick:()=>yo({text:ai,hidden:!ra}),children:ra?te(mK,{name:"eye-off",size:14}):te(mK,{name:"eye",size:14})})})]}),vn=!W&&G,gp=!!O&&(mB(k)||W||ra||!G),mc=OI(Ce,mo,Eo,f),Ip=mc.kind==="role"?mc.role:null,kn=uC(st)??_D(Ip),N0=va(I.saved,I.old),s7=Object.entries(st).filter(([X,po])=>X!=="role"&&X!=="textStyle"&&po!==void 0).length,i7=()=>{let X=Ce;for(let po of Xe){let{role:cr,textStyle:Ba}=po.style;X=oD(X,po.partKey),cr&&(X=xs(X,po.partKey,"role",cr)),Ba&&(X=xs(X,po.partKey,"textStyle",Ba))}bo(X)},Tn=kn,l7=OD(Xe[0].style),c7=Tn?N0.find(X=>X.id===Tn)?.name??Tn:"",d7=()=>{S(!1),Tn&&(I.write(AD({saved:I.saved,old:I.old,styleId:Tn,values:BC(Xe[0].style)}),!0),i7())};return ir(Ive,{sectionName:A?.label??v.type,onBack:t,tabs:X=>te(Ar,{motion:Re,body:X}),textEditor:b("words")?te("div",{ref:y,className:"sf-part-text",children:gp?te(nK,{text:ai,onTextChange:X=>yo(ri?{text:X,hidden:ra}:X),multiline:th(O),markup:O!=="plainText",styled:!1,style:Xe[0].style,base:Xe[0].base,setValue:pc,colors:Fr,placeholder:QP($B(k))??void 0,ariaLabel:c(Fa),head:uc,typedOnCanvas:l===_}):O?ri?uc:null:te(JCe,{field:k,name:o,value:Do,onChange:yo,id:`sf-part-${e}-${o}`})}):void 0,children:[V&&b("sourceNote")&&te(RI,{source:V,slug:sc(P),menuId:EI(P)}),vn&&te(uK,{style:b("style")?{value:kn??"",options:xK(N0),onChange:X=>ey(X||null),changed:s7>0,onEditStyles:r,onUpdateStyle:Tn&&l7?()=>S(!0):void 0}:void 0,font:b("font")?{value:st.font??"",styleValue:ci(Xe[0].base.fontKey)?.label,options:Na.map(X=>({label:X.label,value:X.key})),onChange:X=>mt("font",X||null)}:void 0,italic:b("italic")?{value:st.italic,styleValue:Cve(u,kn),onChange:X=>mt("italic",X??null)}:void 0,cells:TI(Xe[0].style,Xe[0].base,pc,_I(C)).filter(X=>b(X.key)),align:b("align")?wve(st,Xe[0].base.align,_I(C),mt):void 0,letterCase:b("letterCase")?{value:st.case??"",styleValue:Xe[0].base.case,onChange:X=>mt("case",X||null)}:void 0}),w&&Tn&&te(iK,{styleName:c7,onCancel:()=>S(!1),onConfirm:d7}),vn&&Mo===null&&b("fixedSizeHint")&&te(SK,{children:c("Fixed size \u2014 the site\u2019s Text setting doesn\u2019t resize this.")}),CK(gve,X=>b(X)&&(X==="words"||(X==="sourceNote"?!!V:X==="fixedSizeHint"?vn&&Mo===null:vn)))&&te(Zs,{})]})}function wve(e,o,t,r){let a=dve("align",t),n=tD(e,t);return{value:e[a]??"",styleValue:n??o,onChange:s=>r(a,s||null)}}function Cve(e,o){return!o||!Array.isArray(e)?!1:e.find(t=>t?.id===o)?.values?.italic===!0}var bK={fontKey:"",sizePx:16,weight:400,lineRatio:1.4,letterEm:0,align:"left",case:"none",paddingPx:0};import{jsx as Rr,jsxs as n0,Fragment as _ve}from"react/jsx-runtime";import{useCallback as Ove,useRef as Ave,useState as rp}from"react";import{InspectorIconButton as Rve}from"efficient-easel/chrome";import{useEasel as Lve}from"efficient-easel/easel";import{PopupMenu as Fve,PopupMenuItem as Bve,PopupMenuLabel as HI}from"efficient-shell/ui";import{CopyToPageIcon as Nve}from"efficient-easel/icons";import{useEaselSession as Dve}from"efficient-easel/screen/lib/session-context";import{cloneNodeWithFreshIds as Mve}from"efficient-easel/screen/lib/document/section-doc";import{FOOTER_TYPE as Hve}from"efficient-easel/draw";import{isBackendError as ic}from"efficient-easel/screen/lib/backend-error";import{isEfficientBackend as FK}from"efficient-easel/screen/lib/session";var LI=vu(),e0=LI.set;function FI(e,o){e0(e,o)}function BI(e,o){let t=LI.get(e);e0(e,o??(t==="live"?"changed":t))}function NI(e,o){e0(e,o??"live")}function kK(e){return LI.get(e)}function TK(e){return LI.use(e)}function PK(e,o){return e==="live"&&o?"changed":e}function o0({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 EK(e){return e.map(o=>o.change==="take_down"?c("{name} (taken down)",{name:o.name}):o.name)}var _K="SharedSection",vve=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i,op=e=>{let o=e?.content;return Array.isArray(o)?o:[]},tp=e=>{let o=e?.props?.id;return typeof o=="string"?o:void 0};function OK(e){if(e?.type!==_K)return null;let o=e.props?.section;return typeof o=="string"&&vve.test(o)?o.toLowerCase():null}function AK(e){let o=[];for(let t of op(e)){let r=OK(t),a=tp(t);r&&a&&o.push({refId:a,section:r})}return o}function DI(e){let o=op(e)[0];return o&&typeof o=="object"&&tp(o)?o:null}function kve(e,o){return{type:_K,props:{id:e,section:o}}}function RK(e,o){let t=new Map,r=new Set,a=!1,n=op(e).map(s=>{let i=OK(s),l=tp(s);if(!i||!l||r.has(i))return s;let d=DI(o.get(i)),f=tp(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 LK(e,o,t){let r=new Map,a=!1,n=op(e).map(s=>{let i=tp(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=op(d).slice(1),u=DI(d);return r.set(l.section,u===s?d:{...d,content:[s,...f]}),a=!0,l.reference??kve(l.refId,l.section)});return{page:a?{...e,content:n}:e,docs:r}}function a0(e){return!!(e?.publish&&e.liveState)}function Tve(e,o){if(!a0(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 Pve(e,o){return async(t,r)=>{try{await BR()}catch(a){throw new Error(c("A change waiting to go live could not be saved."),{cause:a})}return(await e.publish(o)).state==="live"?pm({state:"live",changes:[]}):ha(0),{version:r??null}}}function r0(e,o,t){let r=o?{siteId:o}:void 0;return{resolve:a=>e.load({slug:a,...r}).then(n=>(n&&(FI(n.id,n.live),_1(n.id,n.videoFrames)),n)),saveLayout:(a,n,s,i)=>e.save(a,{layout:n},{version:s,clientId:i??""}).then(l=>(BI(a,l.live),O1(a,l.videoFrames),ha(),l)),rereadVersion:e.version?a=>e.version(a):void 0,publish:a0(t)?Pve(t,r):e.publish?(a,n)=>e.publish(a,n?{version:n}:void 0).then(s=>(NI(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 Eve(e,o,t,r,a=!1){let n=null,s=new Set,i=!1,l=new Map,d=new Map,f=new Map,u=new Map,p={docId:null,lockHolder:null,conflict:null,saveFailed:!1,unpublished:!1,loadFailed:!1,sections:[]},m=new Set,h=()=>{if(!n)return!1;let T=kK(n.id);return T==="changed"||T==="never"||T===void 0&&i},I=T=>{p={...p,...T,docId:n?.id??null,unpublished:h(),sections:[...f.values()]};for(let F of m)F()},w=(T,F,k)=>{F?f.set(T,{section:T,title:l.get(T)?.title??"",problem:F,holder:k}):f.delete(T)},S=T=>T&&typeof T=="object"&&!Array.isArray(T)?T:{},C=T=>s.has(T),b=()=>new Map([...l].map(([T,F])=>[T,F.layout])),y=()=>`SharedSection-${typeof crypto<"u"&&crypto.randomUUID?crypto.randomUUID():Math.random().toString(36).slice(2)}`,v=(T,F,k,_)=>{let P=S(F);l.set(T,{layout:P,version:k,savedJson:JSON.stringify(P),title:_})},L={state:()=>p,subscribe:T=>(m.add(T),()=>{m.delete(T)})},A={sectionOf:T=>d.get(T)?.section??null,heldElsewhere:T=>{let F=d.get(T)?.section;return!!(F&&f.get(F)?.problem==="lock")},adopt:(T,F)=>{v(F.id,F.layout,F.layout_updated_at,F.title),d.set(T,{section:F.id,refId:y()}),u.set(F.id,F.used_on),I({})},place:T=>{if([...d.values()].some(_=>_.section===T.id))return null;let F=DI(S(T.layout)),k=typeof F?.props?.id=="string"?F.props.id:null;return!F||!k||!F.type?null:(v(T.id,T.layout,T.layout_updated_at,T.title),d.set(k,{section:T.id,refId:y()}),u.set(T.id,T.used_on),F)},usedOn:T=>u.get(T)??null,learn:T=>{for(let F of T){u.set(F.id,F.used_on);let k=l.get(F.id);k&&(k.title=F.title);let _=f.get(F.id);_&&f.set(F.id,{..._,title:F.title})}I({})}},D=async(T,F)=>{for(let[k,_]of T){let P=l.get(k),O=JSON.stringify(_);if(!(!P||O===P.savedJson||f.get(k)?.problem==="lock"))try{let W=await e.save(k,{layout:_},{version:P.version,clientId:F??""});BI(k,W.live),P.layout=_,P.version=W.version,P.savedJson=O,w(k,null)}catch(W){ic(W,"changed-elsewhere")?w(k,"conflict"):ic(W,"lock-taken")?w(k,"lock",W.holder??void 0):w(k,"save")}}T.size&&ha(),I({})};return{resolve:async T=>{if(QT(T===gr?null:L),lb(T===gr?null:A),l=new Map,d=new Map,f=new Map,u=new Map,T===gr)return t.resolve(T);let F=!1,[k,_]=await Promise.all([t.resolve(T),e.load({slug:gr,...o}).catch(()=>(F=!0,null))]);if(_&&!ed(k?.layout)){FI(_.id,_.live);let V=S(_.layout);n={id:_.id,layout:V,version:_.version,savedJson:""}}else n=null;if(i=!1,!k)return I({conflict:null,saveFailed:!1,loadFailed:F}),k;let P=S(k.layout),O=AK(P),W=await Promise.all(O.map(V=>e.load({id:V.section,...o}).catch(()=>null)));O.forEach((V,de)=>{let ve=W[de];ve?(FI(ve.id,ve.live),v(V.section,ve.layout,ve.version,"")):(l.delete(V.section),f.set(V.section,{section:V.section,title:"",problem:"load"}))});let G=RK(P,b());if(d=G.held,!n)return d.size&&s.add(k.id),I({conflict:null,saveFailed:!1,loadFailed:F}),d.size?{...k,layout:G.working}:k;let Z=v1(G.working,n.layout);return n.savedJson=JSON.stringify(ib(Z,n.layout).chrome),s.add(k.id),I({conflict:null,saveFailed:!1,loadFailed:!1}),{...k,layout:Z}},saveLayout:async(T,F,k,_)=>{if(!C(T))return t.saveLayout(T,F,k,_);let P=n,O=P?ib(F,P.layout):{page:F,chrome:null},W=LK(O.page,d,b()),G=await t.saveLayout(T,W.page,k,_);if(await D(W.docs,_),!P)return G;let Z=JSON.stringify(O.chrome);if(!O.chrome||Z===P.savedJson||p.lockHolder)return G;try{let V=await e.save(P.id,{layout:O.chrome},{version:P.version,clientId:_??""});BI(P.id,V.live),ha(),P.layout=O.chrome,P.version=V.version,P.savedJson=Z,i=!0,I({conflict:null,saveFailed:!1})}catch(V){ic(V,"changed-elsewhere")?I({conflict:V.conflict??{savedBy:"",savedByYou:!1,secondsAgo:0}}):ic(V,"lock-taken")?I({lockHolder:V.holder??{name:"",secondsSinceSeen:0,secondsSinceHeld:0}}):I({saveFailed:!0})}return G},publish:t.publish?async(T,F)=>{let k=await t.publish(T,F),_=n;if(_&&C(T)&&!a&&e.publish&&h()&&!p.lockHolder){let P=await e.publish(_.id,_.version?{version:_.version}:void 0);NI(_.id,P.live),P.version!==null&&(_.version=P.version),i=!1,I({})}if(C(T)&&!a&&e.publish)for(let[P,O]of l){if(f.get(P)?.problem==="lock")continue;let W=await e.publish(P,O.version?{version:O.version}:void 0);NI(P,W.live),W.version!==null&&(O.version=W.version)}return k}:void 0,lock:r?{claim:async(T,F,k)=>{let _=await r.claim(T,F,k);if(!C(T))return _;let P=n;if(P)try{await r.claim(P.id,F,!1),p.lockHolder&&I({lockHolder:null})}catch(O){ic(O,"lock-taken")&&I({lockHolder:O.holder??{name:"",secondsSinceSeen:0,secondsSinceHeld:0}})}for(let O of l.keys())try{await r.claim(O,F,!1),f.get(O)?.problem==="lock"&&w(O,null)}catch(W){ic(W,"lock-taken")&&w(O,"lock",W.holder??void 0)}return l.size&&I({}),_},release:async(T,F)=>{if(await r.release(T,F),!C(T))return;let k=n;k&&!p.lockHolder&&await r.release(k.id,F).catch(()=>{});for(let _ of l.keys())f.get(_)?.problem!=="lock"&&await r.release(_,F).catch(()=>{})}}:void 0,pinnedChrome:L}}function MI(e){let o=(t,r,a)=>e.save(t,r.layout?{...r,layout:e1(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 _mo(e,o,t){return e.update(o,o1(t))}function Omo(e,o=Ge(),t=hT(),r={}){let a=FK(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=a0(o.site)?o.site:void 0,u=MI(o.pages),p=r0(u,e,f),m=d?Eve(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,...BK(p.resolve),lock:o.lock,...m,site:s?()=>o.site.get(n):void 0,siteLiveState:f?()=>f.liveState(n):void 0,siteVersions:Tve(f,n),updateSite:s&&i?h=>i(h,n):void 0,previewHref:o.preview?h=>o.preview.href(h):void 0}}function Amo(e,o=Ge(),t=hT()){let r=FK(o),a=o.templates,n=a?MI(a.pages(e)):{list:()=>Promise.reject(new Error(t0)),load:()=>Promise.reject(new Error(t0)),save:()=>Promise.reject(new Error(t0))};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},...r0(n,void 0),...BK(r0(n,void 0).resolve),publish:void 0,templateName:a?()=>a.get(e).then(s=>s.name):void 0}}function BK(e){return{resolve:o=>(QT(null),lb(null),e(o))}}var t0="This editor's backend has no website templates.";function Wve(e,o,t){let r=Mve(e,void 0,o);return t?.(r)??r}function NK({node:e,currentSlug:o,siteId:t,tokenRef:r,runAuthed:a,onNotify:n}){let[s,i]=rp(!1),[l,d]=rp(null),f=Dve(),u=Lve(A=>A.config.components),[p,m]=rp(!1),[h,I]=rp(null),w=Ave(null),[S,C]=rp(null),b=Ove(async()=>{if(f.usesBridgedToken&&!r.current){m(!0);return}try{d(await Ge(f).pages.list(t?{siteId:t}:void 0))}catch{m(!0)}},[r,t,f]),y=()=>{if(s){i(!1);return}let A=w.current?.getBoundingClientRect();A&&C({top:A.bottom+6,right:Math.max(8,window.innerWidth-A.right)}),d(null),m(!1),b(),i(!0)},v=(l??[]).filter(A=>A.slug!==o),L=async A=>{if(h)return;I(A.slug);let D=Wve(e,u,f.documentHooks?.storedNode),T=await a(()=>$ve(Ge(f).pages,A,D));I(null),i(!1),n?.(T?c("Duplicated to \u201C{name}\u201D",{name:A.label}):c("Couldn\u2019t duplicate the section \u2014 please retry"),T?"success":"error")};return n0(_ve,{children:[Rr("span",{"data-menu-toggle":!0,style:{display:"contents"},children:Rr(Rve,{buttonRef:w,label:c("Duplicate to another page"),hasPopup:"menu",expanded:s,onClick:y,children:Rr(Nve,{size:15})})}),s&&S&&Rr(Fve,{portal:!0,style:{top:S.top,right:S.right},onClose:()=>i(!1),children:n0("div",{role:"menu","aria-label":c("Duplicate to page"),children:[Rr(HI,{children:c("Duplicate to page")}),p?Rr(HI,{children:c("Couldn\u2019t load pages")}):l===null?Rr(HI,{children:c("Loading\u2026")}):v.length===0?Rr(HI,{children:c("No other pages")}):v.map(A=>n0(Bve,{role:"menuitem",disabled:h!==null,onClick:()=>{L(A)},children:[Rr("span",{className:"min-w-0 flex-1 truncate",children:A.label}),h===A.slug?Rr("span",{className:"shrink-0 text-xs",children:c("Copying\u2026")}):A.draft&&Rr("span",{className:"shrink-0 text-xs",children:c("draft")})]},A.id))]})})]})}async function $ve(e,o,t){let r=MI(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===Hve);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 mke}from"efficient-easel/screen/components/ScreenDocumentContext";import{useSectionOps as hke}from"efficient-easel/screen/lib/document/use-section-ops";import{SELECTION_MODE as txo,isSelectionMode as d0}from"efficient-easel/screen/lib/screen-parts";import{usePreviewParts as xke}from"efficient-easel/draw/client";import{jsx as ap,jsxs as Uve}from"react/jsx-runtime";import{SettingsDrill as zve}from"efficient-easel/panel";import{UiIcon as Gve}from"efficient-easel/draw/client";var jve="Not shown on the page";function Kve({part:e,onOpen:o}){return ap(zve,{name:c(e.label),preview:e.offPage?c(jve):e.preview||c("Empty"),offPage:e.offPage,status:e.hidden?ap("span",{className:"sf-entry-eye",role:"img","aria-label":c("Hidden on the page"),children:ap(Gve,{name:"eye-off",size:14})}):void 0,onOpen:()=>o(e.key)})}function s0(e){return e.filter(o=>!o.identifier)}function DK({parts:e,onOpen:o,heading:t=!0}){let r=s0(e);return r.length?Uve("div",{className:"sf-entries",children:[t?ap("h3",{className:"sf-entries-head",children:c("Text")}):null,r.map(a=>ap(Kve,{part:a,onOpen:o},a.key))]}):null}import{HEADER_TYPE as gke,ROOT_ZONE as XK}from"efficient-easel/draw";import{HEADER_TYPE as Tt,FOOTER_TYPE as Qe,newNodeId as Vve}from"efficient-easel/draw";function WI(){return{type:Tt,props:{id:Vve(Tt)}}}var MK=[{type:"FooterLogo",label:"Logo"},{type:"FooterMenu",label:"Menu"},{type:"FooterText",label:"Text"},{type:"FooterEmailSignup",label:"Email Form"},{type:"FooterSocial",label:"Social Logos"},{type:"FooterPayment",label:"Payment Logos"},{type:"FooterGroup",label:"Footer Box"}],Yve=MK.filter(e=>e.type!=="FooterLogo"&&e.type!=="FooterGroup"),qve="FooterGroup",HK="blocks";function WK(e){return e===Qe?MK:e===qve?Yve:null}function $I(){let e=(o,t)=>({type:o,props:{id:`${o}-${crypto.randomUUID()}`,...t}});return[e("FooterLogo",{widthPct:100,align:"left",tagline:""}),e("FooterEmailSignup",{...iL}),e("FooterPayment",{...gm})]}function i0(e){switch(e?.type){case Je:case ze:return c("On every page");case Tt:case Qe:return c("On every page \xB7 old style");default:return null}}var $K=()=>null,UK=()=>c("Changed on every page");function UI(e,o){let t=lO(e,o);if(t)return t;let r=I1(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 zI,Fragment as Zve,jsxs as Jve}from"react/jsx-runtime";import{useState as Qve}from"react";import{createNode as eke,newId as oke}from"efficient-easel/data";import{useEasel as tke}from"efficient-easel/easel";import{Banner as rke,Button as l0}from"efficient-shell/ui";import{useScreenDocument as ake}from"efficient-easel/screen/components/ScreenDocumentContext";var Xve=["FooterPayment"];function zK(e,o){let{id:t,...r}=e.props;for(let a of Br(e))r[a]=r[a].map(n=>zK(n,o));return o(e.type,r)}var np=(e,o)=>{if(!Xve.includes(e.type))return null;Tg();let t=dn(e.type);return t?Rs({type:e.type,props:{...e.props}},t).nodes.map(r=>zK(r,o)):null};function GK(){let{appState:e,dispatch:o,config:t}=tke(f=>f),{readOnly:r}=ake(),[a,n]=Qve(!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)=>eke(t,f,u),d=()=>{let f=wf(i,l,oke(ze),np);o({type:"setData",data:u=>({...u,content:[...Tu(u.content,f)]}),recordHistory:!0}),n(!1)};return zI(rke,{tone:"info",title:c("This footer uses the old layout"),action:a?Jve(Zve,{children:[zI(l0,{variant:"primary",size:"sm",onClick:d,children:c("Switch now")}),zI(l0,{variant:"secondary",size:"sm",onClick:()=>n(!1),children:c("Cancel")})]}):zI(l0,{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 c0,jsxs as nke}from"react/jsx-runtime";import{InspectorUpLevel as jK}from"efficient-easel/chrome";function KK({nodeId:e,part:o,sectionName:t,onUpToSection:r}){let{select:a}=wI(),n=ac(e,o,"picture");return nke("div",{children:[o!=="media"?c0(jK,{inline:!0,name:c(Oa.media),onSelect:()=>a(Es(e,"media"))}):c0(jK,{inline:!0,name:c(t),onSelect:r}),c0(Ar,{part:o,motion:n,itemWord:c(Oa[o])})]})}import{HintsToggle as Ike,SettingsSwitch as yke,hintsFoldClass as bke}from"efficient-easel/panel";import{useHints as Ske}from"efficient-easel/screen/lib/hints";var JK={kind:"header"},p0={kind:"website"},QK={kind:"website",tab:gl,revealPageGroup:!0},e8={kind:"chat"},o8={kind:"social"},sp="Part";function wke(e){return c("Part of {name}",{name:c(e)})}function Cke(e,o,t){let r=e.describeNode(o);return{name:t,kindLabel:r?wke(r.label):c(sp)}}function vke(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 t8({what:e}){let o=vke(e);return wn("div",{className:"sf-note",children:[Ne("p",{children:Ne("strong",{children:o.title})}),wn("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 f0(e){let o=tf[e];return{name:Oa[e],kindLabel:sp,icon:o,head:(t,r)=>{if(t.kind!==o)return null;let a=r.describeNode(t.nodeId);if(!a)return null;let n=ZK({name:c(Sx(e,a.props)),tier:"part",of:c(a.label)},{partOf:({name:s})=>c("Part of {name}",{name:s})});return{name:n.name,kindLabel:n.kind}},render:(t,r)=>t.kind===o?Ne(KK,{nodeId:t.nodeId,part:e,sectionName:r.describeNode(t.nodeId)?.label??"Hero",onUpToSection:()=>r.onSelectNode(t.nodeId)}):null}}var kke={header:{name:"Header",kindLabel:"Site settings",icon:"header",render:(e,o)=>{let t=o.hostPanels?.header;return t?Ne(t,{placeholderMode:o.capabilities.placeholderFrames,tokenRef:o.tokenRef,siteId:o.siteId,websiteName:o.websiteName,onOpenWebsiteSettings:o.onOpenWebsiteSettings,onAuthExpired:()=>o.notifyParent("storefront-editor:auth-expired")}):null}},website:{name:"Appearance",kindLabel:"Site settings",icon:"website",render:(e,o)=>Ne(Hh,{initialTab:e.tab,revealPageGroup:e.revealPageGroup,themeFromDocument:!o.capabilities.hasSiteTheme,tokenRef:o.tokenRef,siteId:o.siteId,onNotify:o.onNotify},e.tab??"")},chat:{name:"Live chat",kindLabel:"Site settings",icon:"chat",render:()=>Ne(Hj,{})},social:{name:"Social links",kindLabel:"Site settings",icon:"social",render:()=>Ne(jj,{unavailable:Ne(t8,{what:"Social link"})})},ticker:{name:Us,kindLabel:sp,icon:"ticker",head:(e,o)=>e.kind==="ticker"?Cke(o,e.heroId,c(Us)):null,render:e=>Ne(oK,{heroId:e.kind==="ticker"?e.heroId:""})},heroMedia:f0("media"),heroImage:f0("image"),heroImage2:f0("image2"),part:{name:sp,kindLabel:sp,icon:"Text",head:(e,o)=>{if(e.kind!=="part")return null;let t=o.describeNode(e.nodeId);if(!t)return null;let{key:r,row:a}=Cr(e.propKey),n=a?cl(t.fields[r],a):t.fields[r],s=Kl(t.type),i=s?kc(s,e.propKey):null,l=s&&i?s[i].label:QM[e.propKey],d=l?c(l):jB(c(Cd(ih(n??{},r))),a),f=ZK({name:d,tier:"part",of:c(t.label)},{partOf:({name:u})=>c("Part of {name}",{name:u})});return{name:f.name,kindLabel:f.kind}},render:(e,o)=>e.kind==="part"?Ne(vK,{nodeId:e.nodeId,propKey:e.propKey,onBack:()=>o.onSelectNode(e.nodeId),onEditStyle:o.onOpenSiteStyles}):null}},Tke=new Set(["header","website","chat"]);function Pke(e,o){if(e==="selection")return null;let t=kke[e];return Tke.has(e)&&!o.hasSiteSettings?{...t,kindLabel:"Not part of a template",render:()=>Ne(t8,{what:t.name})}:t}function r8({mode:e,onOpenWebsiteSettings:o,onOpenSiteStyles:t,onSelectNode:r,hideNodeActions:a=!1,onNotify:n,onHidePanel:s}){let{capabilities:i,tokenRef:l,notifyParent:d,currentSlug:f,siteId:u,runAuthed:p,readOnly:m,navigate:h}=mke(),{rows:I}=Nd(),w=I?.find(le=>le.slug===f)??null,S=ike(),C=Object.keys(S.fields).some(le=>!le.startsWith("_")&&!Fd.includes(le)),{websiteName:b}=fe(),y=hke({readOnly:m}),{select:v}=xke(),{selectedItem:L,getItemById:A,getSelectorForId:D,config:T,appState:F}=ske(le=>le),k=pke(T,L?{type:L.type,props:L.props}:null),_=L?eN(k??T.components[L.type]?.fields,L.props):[],P=le=>T.components[le]?.label??le,O=L?D(L.props.id):void 0,W=Pke(e.kind,i),G=uke(),Z={capabilities:i,tokenRef:l,hostPanels:G.chrome?.panels,describeNode:le=>{let Ce=A(le);if(!Ce)return null;let bo=T.components[Ce.type];return{type:Ce.type,label:bo?.label??Ce.type,fields:bo?.fields??{},props:Ce.props??{}}},siteId:u,websiteName:b??null,notifyParent:d,onNotify:n,onOpenWebsiteSettings:o,onOpenSiteStyles:t,onSelectNode:r},V=W?.head?.(e,Z)??null,de=Lj({kind:w?.kind,pageName:w?.label}),ve=V?.name??(W?c(W.name):L?c(P(L.type)):de.name),oe=V?.kindLabel??(W?c(W.kindLabel):L?O&&O.zone!==XK?c("Block"):c("Section"):de.kindLabel),Oe=W?W.icon:L?L.type:"page",_e=d0(e)&&L?Jf(L.type):null,Ae=!!L&&!!O&&O.zone===XK&&L.type!==Qe&&L.type!==gke,Re=UI(F?.data,L),nt=()=>{Re||O&&y.duplicateComponent(O.zone,O.index)},Xo=()=>{O&&(y.removeComponent(O.zone,O.index),y.select(null))},Zo=L?T.components[L.type]?.defaultProps?.previewHover:void 0,yo=d0(e)&&!!L&&!!O&&Zo!==void 0,Do=yo&&L.props.previewHover===!0,Eo=()=>{!L||!O||y.replaceComponent(O.zone,O.index,{...L,props:{...L.props,previewHover:!Do}})},{shown:ue,setShown:no}=Ske(),z=!!(W||L||C);return wn("div",{className:`es-sidepanel es-sidepanel--right sf-panel sf-panel--right ${bke(ue)}`.trim(),children:[Ne(cke,{icon:Ne(qs,{type:Oe,size:15}),name:ve,kind:oe,actions:!a&&d0(e)&&L&&L.type!==Qe?wn(VK,{children:[Ne(YK,{label:c("Duplicate section"),title:Re??void 0,disabled:Re!==null,onClick:nt,children:Ne(dke,{size:15})}),Ae&&i.hasSiteSettings&&Ne(NK,{node:L,currentSlug:f,siteId:u??void 0,tokenRef:l,runAuthed:p,onNotify:n}),Ne(YK,{label:c("Remove section"),danger:!0,onClick:Xo,children:Ne(fke,{size:15})}),s?Ne(qK,{side:"right",onHide:s,divider:!0}):null]}):s?Ne(qK,{side:"right",onHide:s}):void 0}),yo&&wn("div",{className:"sf-preview-pin",children:[wn("div",{className:"sf-preview-pin-text",children:[Ne("span",{className:"sf-preview-pin-label",children:c("Preview hover state")}),Ne("span",{className:"sf-preview-pin-hint",children:c("not shown live")})]}),Ne(yke,{checked:Do,onChange:Eo,ariaLabel:c("Preview hover state")})]}),wn("div",{className:"sf-insp-body es-insp-body sf-scroll",children:[W?W.render(e,Z):L?wn(VK,{children:[L.type===Qe&&i.hasSiteSettings&&Ne(GK,{}),Ne(xR,{children:Ne(Ar,{entries:Ne(DK,{parts:_,heading:!1,onOpen:le=>v(qr(L.props.id,le))}),entryCount:s0(_).length,itemWord:ve})}),_e&&Ne(RI,{source:_e,slug:sc(L?.props),menuId:EI(L?.props)})]}):C?Ne(Ar,{omit:Fd}):Ne(lke,{variant:"none",icon:!1,message:c("Select a section or block to edit it.")}),z&&Ne(Ike,{shown:ue,onChange:no,label:c("Show hints")})]})]})}import{jsx as x,jsxs as B,Fragment as l8}from"react/jsx-runtime";var Po={dark:"var(--sf-thumb-bar-dark)",soft:"var(--sf-thumb-bar-light)",accent:"var(--sf-thumb-accent)",tint:"var(--sf-thumb-accent-tint)",block:"var(--sf-thumb-block)",line:"var(--sf-thumb-border)",card:"var(--sf-thumb-card)"},u0="repeating-linear-gradient(135deg,var(--sf-thumb-hatch1) 0,var(--sf-thumb-hatch1) 5px,var(--sf-thumb-hatch2) 5px,var(--sf-thumb-hatch2) 10px)";function K({w:e,h:o,tone:t="dark",r=2,style:a}){return x("div",{style:{width:e,height:o,borderRadius:r,background:Po[t],flex:"none",...a}})}var Eke={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 jI({children:e}){return x("span",{style:{fontSize:"4.64cqw",fontWeight:700,letterSpacing:"0.06em",textTransform:"uppercase",color:g.muted},children:e})}function a8({over:e,overTone:o,head:t,headSize:r=11.5,cta:a,ctaBg:n,ctaFg:s,tone:i}){return B(l8,{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 m0({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(jI,{children:e}),o]})}function n8({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 h0({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 ip({n:e,label:o,tone:t=g.text}){return B("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:1,minWidth:0},children:[x("b",{style:{fontSize:"8.16cqw",lineHeight:1,color:t},children:e}),x("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.08em",textTransform:"uppercase",opacity:.62,color:t},children:o})]})}function Co({children:e,w:o}){return x("span",{style:{fontSize:"3.98cqw",lineHeight:1.45,color:g.muted,width:o,display:"block"},children:e})}function GI({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 s8({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 _ke={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(jI,{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(GI,{label:"Name"}),x(GI,{label:"Email"})]}),x(GI,{label:"Message",filled:!0}),x(s8,{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(h0,{filled:4,size:14}),x(GI,{label:"Your review",filled:!0}),x(s8,{children:"POST"})]})}),submitbuild:x(We,{title:"Show us your build",children:B("div",{style:{flex:1,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:3,border:`1px dashed ${g.mark1}`,borderRadius:5,background:g.paper},children:[x("span",{style:{fontSize:"6.63cqw",lineHeight:1,color:g.rust,fontWeight:300},children:"+"}),x("span",{style:{fontSize:"3.65cqw",color:g.muted},children:"Drop a photo of your rig"})]})}),masthead:B("div",{style:{...J,background:g.paper,display:"flex",flexDirection:"column",justifyContent:"center",padding:"0 13px",gap:5},children:[x("span",{style:{height:1.5,background:g.text}}),x("span",{style:{fontSize:"7.65cqw",fontWeight:800,letterSpacing:"0.02em",color:g.text,lineHeight:1},children:"THE TRACK"}),B("div",{style:{display:"flex",justifyContent:"space-between",fontSize:"3.65cqw",letterSpacing:"0.1em",textTransform:"uppercase",color:g.muted},children:[x("span",{children:"Issue 14"}),x("span",{children:"Spring 2026"})]}),x("span",{style:{height:1,background:g.rule}})]}),featuredcover:B("div",{style:{...J,overflow:"hidden",...qe(g.ink,g.inkSoft2)},children:[x(La,{size:92,style:{right:-18,top:-14}}),x("div",{style:{position:"absolute",inset:0,background:`linear-gradient(0deg,${g.scrim},transparent 62%)`}}),B("div",{style:{position:"absolute",left:12,right:12,bottom:11,display:"flex",flexDirection:"column",gap:3},children:[x("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.16em",fontWeight:700,color:g.warm},children:"FEATURE"}),x("span",{style:{fontSize:"6.16cqw",lineHeight:1.15,fontWeight:700,color:g.onInk},children:"Four days on the Madigan Line"})]})]}),longread:B("div",{style:{...J,background:g.card,padding:"10px 14px",display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[x("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.14em",fontWeight:700,color:g.rust},children:"12 MIN READ"}),x("span",{style:{fontSize:"6.02cqw",lineHeight:1.15,fontWeight:700,color:g.text},children:"What breaks first, and why"}),x(Co,{children:"Every failure starts in the same place:"}),x(Co,{w:"80%",children:"the bolt nobody re-torqued."})]}),articlebody:B("div",{style:{...J,background:g.card,padding:"10px 22px",display:"flex",flexDirection:"column",gap:4,justifyContent:"center",alignItems:"center",textAlign:"center"},children:[x("span",{style:{fontSize:"4.97cqw",lineHeight:1.2,fontWeight:700,color:g.text},children:"Why offset beats width"}),x(Co,{w:"100%",children:"A wider wheel adds grip only if the offset still"}),x(Co,{w:"88%",children:"clears the arch, so the offset is chosen first."}),x(Co,{w:"80%",children:"Width follows from the space left."})]}),series:x(We,{title:"Recurring columns",children:x("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:5,justifyContent:"center"},children:[["Shed Notes","Monthly"],["Track Tested","Fortnightly"],["Reader Rigs","Weekly"]].map(([e,o])=>B("div",{style:{display:"flex",alignItems:"center",gap:6},children:[x("span",{style:{width:3,height:12,borderRadius:2,background:g.rust,flex:"none"}}),x("b",{style:{flex:1,fontSize:"4.64cqw",color:g.text},children:e}),x("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.08em",textTransform:"uppercase",color:g.muted},children:o})]},e))})}),events:x(We,{title:"Latest posts",children:x("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:5,justifyContent:"center"},children:[[g.inkSoft,g.inkSoft2,"Madigan Line, four days"],[g.rust,g.warm,"Why offset beats width"]].map(([e,o,t])=>B("div",{style:{display:"flex",gap:6,alignItems:"center"},children:[x("span",{style:{width:24,height:18,borderRadius:3,flex:"none",...qe(e,o,150)}}),B("div",{style:{display:"flex",flexDirection:"column",gap:1,minWidth:0},children:[x("b",{style:{fontSize:"4.31cqw",color:g.text},children:t}),x("span",{style:{fontSize:"3.65cqw",color:g.muted},children:"4 Sep \xB7 Shed Notes"})]})]},t))})}),docmasthead:B("div",{style:{...J,background:g.card,padding:"12px 14px",display:"flex",flexDirection:"column",gap:5,justifyContent:"center"},children:[x("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.16em",fontWeight:700,color:g.muted},children:"POLICY"}),x("span",{style:{fontSize:"6.49cqw",fontWeight:700,color:g.text,lineHeight:1.1},children:"Returns & refunds"}),x("span",{style:{fontSize:"3.65cqw",color:g.muted},children:"Version 3 \xB7 Updated 4 Sep 2026"}),x("span",{style:{height:2,width:26,background:g.rust,borderRadius:1}})]}),docbody:x("div",{style:{...J,background:g.card,padding:"9px 13px",display:"flex",flexDirection:"column",gap:3,justifyContent:"center"},children:[["1.","You may return an unfitted wheel within 30 days."],["2.","Fitted wheels are covered by the structural warranty."],["3.","Freight on a change of mind is yours."]].map(([e,o])=>B("div",{style:{display:"flex",gap:5},children:[x("b",{style:{fontSize:"3.98cqw",color:g.rust,flex:"none"},children:e}),x(Co,{children:o})]},e))}),docmetacards:x(We,{title:"At a glance",children:x("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(2,1fr)",gap:5,minHeight:0},children:[["30 days","To return"],["5 years","Structural"],["Free","Fitting"],["48 hrs","Dispatch"]].map(([e,o])=>B("div",{style:{border:`1px solid ${g.rule}`,borderRadius:4,padding:"5px 6px",display:"flex",flexDirection:"column",gap:1},children:[x("b",{style:{fontSize:"5.31cqw",color:g.text,lineHeight:1},children:e}),x("span",{style:{fontSize:"3.32cqw",letterSpacing:"0.08em",textTransform:"uppercase",color:g.muted},children:o})]},o))})}),doctabs:B("div",{style:{...J,background:g.card,display:"flex",flexDirection:"column",justifyContent:"center",gap:0,padding:"0 11px"},children:[x("div",{style:{display:"flex",gap:0},children:["Returns","Warranty","Shipping"].map((e,o)=>x("span",{style:{fontSize:"3.98cqw",fontWeight:o===0?700:500,padding:"5px 8px",color:o===0?g.text:g.muted,background:o===0?g.paper:"transparent",borderRadius:"4px 4px 0 0",border:`1px solid ${o===0?g.rule:"transparent"}`,borderBottom:"none"},children:e},e))}),x("span",{style:{height:1,background:g.rule}}),B("div",{style:{paddingTop:6,display:"flex",flexDirection:"column",gap:2},children:[x(Co,{children:"Unfitted wheels come back within 30 days, no questions."}),x(Co,{w:"58%",children:"Freight on a change of mind is yours."})]})]}),paragraphs:B("div",{style:{...J,background:g.card,padding:"11px 14px",display:"flex",gap:10,alignItems:"center"},children:[x("span",{style:{flex:1,fontSize:"5.86cqw",lineHeight:1.2,fontWeight:700,color:g.text},children:"The right wheel is the boring one."}),B("div",{style:{flex:1,display:"flex",flexDirection:"column"},children:[x(Co,{children:"Forged, correctly offset, rated for what you actually"}),x(Co,{children:"carry. Everything else is a photograph."})]})]}),keyfeatures:x(We,{title:"Key features",children:x("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:["Flow-formed barrel","1250 kg per corner","Hub-centric fit"].map(e=>B("div",{style:{display:"flex",gap:6,alignItems:"center"},children:[x("span",{style:{fontSize:"4.64cqw",color:g.rust,fontWeight:700,lineHeight:1},children:"\u2713"}),x("span",{style:{fontSize:"4.31cqw",color:g.text},children:e})]},e))})}),statsparagraph:B("div",{style:{...J,background:g.paper,padding:"10px 12px",display:"flex",gap:10,alignItems:"center"},children:[B("div",{style:{flex:"none",display:"flex",flexDirection:"column",gap:5},children:[x(ip,{n:"27k",label:"Rigs"}),x(ip,{n:"4.9",label:"Rating"})]}),B("div",{style:{flex:1,display:"flex",flexDirection:"column"},children:[x(Co,{children:"Twelve years of fitting the same three questions, and the"}),x(Co,{children:"answer has not moved: load rating, offset, then looks."})]})]}),chart:B(We,{title:"Load vs weight",children:[x("div",{style:{flex:1,display:"flex",alignItems:"flex-end",gap:5,paddingBottom:2},children:[38,62,84,71,96].map((e,o)=>x("span",{style:{flex:1,height:`${e}%`,borderRadius:"2px 2px 0 0",background:o===4?g.rust:g.mark1}},o))}),x("span",{style:{height:1,background:g.rule,marginTop:-4}})]}),mockup:x("div",{style:{...J,overflow:"hidden",display:"flex",alignItems:"center",justifyContent:"center",...qe(g.inkSoft,g.ink)},children:B("div",{style:{width:"72%",height:"74%",borderRadius:4,overflow:"hidden",background:g.card,boxShadow:`0 6px 14px ${g.scrim}`},children:[x("div",{style:{height:9,background:g.paper,display:"flex",alignItems:"center",gap:2,padding:"0 4px"},children:[0,1,2].map(e=>x("span",{style:{width:2.5,height:2.5,borderRadius:"50%",background:g.mark1}},e))}),B("div",{style:{padding:5,display:"flex",flexDirection:"column",gap:3},children:[x("span",{style:{height:4,width:"56%",borderRadius:1,background:g.mark2}}),x("span",{style:{height:14,borderRadius:2,...qe(g.paper,g.paper2,150)}}),x("span",{style:{height:3,width:"38%",borderRadius:1,background:g.rust}})]})]})}),manifesto:x("div",{style:{...J,overflow:"hidden",display:"flex",alignItems:"center",padding:"0 16px",...qe(g.ink,g.ink2)},children:B("span",{style:{fontSize:"6.63cqw",lineHeight:1.2,fontWeight:700,color:g.onInk},children:["We build for the ",x("span",{style:{color:g.warm},children:"last"})," ten percent of the track."]})}),timeline:x(We,{title:"Our story",children:x("div",{style:{flex:1,display:"flex",flexDirection:"column",justifyContent:"center",gap:6,paddingLeft:4},children:[["1998","One shed, one lathe."],["2009","First forged rim."],["2024","27,000 rigs on."]].map(([e,o],t)=>B("div",{style:{display:"flex",gap:7,alignItems:"flex-start",position:"relative"},children:[t<2&&x("span",{style:{position:"absolute",left:3,top:8,bottom:-8,width:1,background:g.rule}}),x("span",{style:{width:7,height:7,borderRadius:"50%",flex:"none",marginTop:1,background:g.rust,zIndex:1}}),B("div",{style:{display:"flex",flexDirection:"column",gap:0,minWidth:0},children:[x("b",{style:{fontSize:"4.64cqw",color:g.text},children:e}),x(Co,{children:o})]})]},e))})}),timelinetrack:B("div",{style:{...J,padding:"0 12px",display:"flex",flexDirection:"column",gap:10,justifyContent:"center",...qe(g.ink,g.inkSoft)},children:[x("span",{style:{fontSize:"3.98cqw",fontWeight:700,letterSpacing:"0.14em",textTransform:"uppercase",color:g.warm},children:"Milestones"}),B("div",{style:{position:"relative",display:"flex",justifyContent:"space-between",paddingTop:7},children:[x("span",{style:{position:"absolute",left:0,right:0,top:3,height:1,background:g.mark2,opacity:.55}}),["1998","2009","2016","2024"].map((e,o)=>B("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:3,position:"relative"},children:[x("span",{style:{position:"absolute",top:-7,width:6,height:6,borderRadius:"50%",background:o===3?g.warm:g.mark1}}),x("span",{style:{fontSize:"4.31cqw",fontWeight:700,color:o===3?g.warm:g.onInk,opacity:o===3?1:.75},children:e})]},e))]})]}),footprint:B("div",{style:{...J,overflow:"hidden",...qe(g.paper,g.paper2,150)},children:[x("span",{style:{position:"absolute",left:"8%",top:"18%",width:"62%",height:"64%",borderRadius:"48% 52% 40% 60% / 55% 45% 55% 45%",background:g.mark1,opacity:.75}}),x("span",{style:{position:"absolute",left:"52%",top:"52%",width:"34%",height:"34%",borderRadius:"58% 42% 55% 45% / 45% 58% 42% 55%",background:g.mark2,opacity:.55}}),[["26%","38%"],["44%","58%"],["62%","34%"]].map(([e,o])=>x("span",{style:{position:"absolute",left:e,top:o,width:7,height:7,borderRadius:"50% 50% 50% 0",transform:"rotate(-45deg)",background:g.rust}},e)),x("span",{style:{position:"absolute",left:11,bottom:9,fontSize:"4.64cqw",fontWeight:700,color:g.text},children:"3 fitting bays"})]}),banner:B("div",{style:{...J,display:"flex",alignItems:"center",justifyContent:"space-between",padding:"0 13px",gap:8,background:g.rust},children:[B("div",{style:{display:"flex",flexDirection:"column",gap:2},children:[x("b",{style:{fontSize:"6.02cqw",color:g.onInk},children:"End of season \xB7 20% off"}),x("span",{style:{fontSize:"3.98cqw",color:g.onInk,opacity:.8},children:"Fitted free, this month only."})]}),x("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.12em",fontWeight:700,padding:"5px 9px",borderRadius:2,background:g.onInk,color:g.text,flex:"none"},children:"SHOP"})]}),titlewithbuttons:B("div",{style:{...J,background:g.paper,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:7,padding:"0 14px",textAlign:"center"},children:[x("span",{style:{fontSize:"6.49cqw",lineHeight:1.15,fontWeight:700,color:g.text},children:"Not sure what fits?"}),B("div",{style:{display:"flex",gap:5},children:[x("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.12em",fontWeight:700,padding:"5px 9px",borderRadius:2,background:g.text,color:g.onInk},children:"FIND MY FIT"}),x("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.12em",fontWeight:700,padding:"5px 9px",borderRadius:2,border:`1px solid ${g.text}`,color:g.text},children:"CALL US"})]})]}),ticker:x("div",{style:{...J,overflow:"hidden",background:g.ink,display:"flex",alignItems:"center"},children:x("span",{style:{whiteSpace:"nowrap",fontSize:"6.29cqw",fontWeight:800,letterSpacing:"0.06em",color:g.warm,marginLeft:-14},children:"FREE FITTING \xB7 48HR DISPATCH \xB7 FREE FITTING \xB7 48HR DISPATCH"})}),countdown:B("div",{style:{...J,padding:"10px 12px",display:"flex",flexDirection:"column",alignItems:"center",gap:6,justifyContent:"center",...qe(g.ink,g.ink2)},children:[x("span",{style:{fontSize:"3.65cqw",fontWeight:700,letterSpacing:"0.16em",textTransform:"uppercase",color:g.muted},children:"Back online in"}),x("div",{style:{display:"flex",alignItems:"flex-start",gap:5},children:[["23","Hours"],["59","Minutes"],["48","Seconds"]].map(([e,o],t)=>B("div",{style:{display:"flex",alignItems:"flex-start",gap:5},children:[t>0&&x("b",{style:{fontSize:"9.5cqw",lineHeight:1,color:g.warm},children:":"}),B("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:2},children:[x("b",{style:{fontSize:"11.5cqw",lineHeight:1,color:g.onInk,fontVariantNumeric:"tabular-nums"},children:e}),x("span",{style:{fontSize:"3.2cqw",letterSpacing:"0.1em",textTransform:"uppercase",opacity:.62,color:g.onInk},children:o})]})]},o))})]}),breadcrumb:x("div",{style:{...J,background:g.card,display:"flex",alignItems:"center",padding:"0 13px"},children:B("span",{style:{fontSize:"4.64cqw",color:g.muted},children:["Home ",x("span",{style:{opacity:.5},children:"/"})," Wheels ",x("span",{style:{opacity:.5},children:"/"})," ",x("span",{style:{color:g.text,fontWeight:700},children:"20 inch"})]})}),categorybar:B("div",{style:{...J,background:g.card,display:"flex",flexDirection:"column",justifyContent:"center",gap:7,padding:"0 11px"},children:[x("div",{style:{display:"flex",gap:5},children:["All","Wheels","Tyres","Lift"].map((e,o)=>x("span",{style:{fontSize:"3.98cqw",fontWeight:o===0?700:500,padding:"4px 7px",borderRadius:99,background:o===0?g.text:g.paper,color:o===0?g.onInk:g.muted},children:e},e))}),x("span",{style:{height:1,background:g.rule}})]}),intro:B("div",{style:{...J,overflow:"hidden",background:g.card},children:[x("div",{style:{position:"absolute",inset:0,...qe(g.ink,g.inkSoft2)}}),x(La,{size:64,style:{right:8,top:6}}),B("div",{style:{position:"absolute",left:16,right:16,bottom:8,top:"46%",background:g.paper,borderRadius:6,padding:"8px 11px",display:"flex",flexDirection:"column",gap:2,boxShadow:`0 -4px 10px ${g.scrim}`},children:[x("span",{style:{fontSize:"5.69cqw",fontWeight:700,color:g.text},children:"Since 1998"}),x(Co,{children:"One shed, one lathe, one idea."}),x(Co,{w:"66%",children:"It turned out to be right."})]})]}),gallerygrid:x(We,{title:"Photo gallery",children:x("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(3,1fr)",gridTemplateRows:"repeat(2,1fr)",gap:4,minHeight:0},children:[[g.rust,g.warm],[g.inkSoft,g.ink],[g.paper2,g.mark2],[g.ink,g.inkSoft2],[g.warm,g.paper2],[g.mark2,g.inkSoft]].map(([e,o],t)=>x("div",{style:{borderRadius:3,...qe(e,o,140+t*22)}},t))})}),gallery:B(We,{title:"Gallery",children:[x("div",{style:{display:"flex",gap:8,alignItems:"center",marginTop:-2},children:["On the truck","Studio","Close-ups"].map((e,o)=>x("span",{style:{fontSize:"3.98cqw",fontWeight:o===0?700:500,color:o===0?g.text:g.muted,borderBottom:`1.5px solid ${o===0?g.rust:"transparent"}`,paddingBottom:2},children:e},e))}),x("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(3,1fr)",gap:4,minHeight:0},children:[[g.rust,g.warm],[g.ink,g.inkSoft],[g.paper2,g.mark2]].map(([e,o],t)=>x("div",{style:{borderRadius:3,...qe(e,o,150+t*20)}},t))})]}),ordersummary:B(We,{title:"Order summary",children:[B("div",{style:{display:"flex",gap:6,alignItems:"center",paddingBottom:4},children:[x("span",{style:{width:26,height:26,borderRadius:4,position:"relative",overflow:"hidden",flex:"none",...qe(g.paper,g.paper2,150)},children:x(La,{size:18,style:{left:"50%",top:"50%",transform:"translate(-50%,-50%)"}})}),B("div",{style:{display:"flex",flexDirection:"column",gap:1,minWidth:0},children:[x("b",{style:{fontSize:"4.31cqw",color:g.text},children:"Ridge Grappler"}),x("span",{style:{fontSize:"3.65cqw",color:g.muted},children:"20\xD79 +12 \xB7 qty 4"})]})]}),B("div",{style:{flex:1,minHeight:0,display:"flex",flexDirection:"column",justifyContent:"center"},children:[x(Ra,{k:"Subtotal",v:"$1,956"}),x(Ra,{k:"Fitting",v:"Free"}),B("div",{style:{display:"flex",justifyContent:"space-between",paddingTop:5,fontSize:"4.64cqw"},children:[x("b",{style:{color:g.text},children:"Total"}),x("b",{style:{color:g.text,fontSize:"6.02cqw"},children:"$1,956"})]})]})]}),deliveryoptions:x(We,{title:"Delivery",children:x("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[["Standard","3\u20135 days","Free",!0],["Express","Next day","$19",!1]].map(([e,o,t,r])=>B("div",{style:{display:"flex",alignItems:"center",gap:6,padding:"5px 6px",borderRadius:4,border:`1px solid ${r?g.rust:g.rule}`,background:r?g.paper:g.card},children:[x("span",{style:{width:7,height:7,borderRadius:"50%",flex:"none",border:`1.5px solid ${r?g.rust:g.mark1}`,background:r?g.rust:"transparent"}}),x("span",{style:{flex:1,fontSize:"4.31cqw",fontWeight:600,color:g.text},children:e}),x("span",{style:{fontSize:"3.98cqw",color:g.muted},children:o}),x("b",{style:{fontSize:"4.31cqw",color:g.text},children:t})]},e))})}),paymentbadges:B("div",{style:{...J,background:g.paper,display:"flex",flexDirection:"column",gap:8,justifyContent:"center",padding:"0 12px"},children:[x(jI,{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(ip,{n:"27k",label:"Rigs fitted",tone:g.onInk}),x(ip,{n:"12",label:"Years",tone:g.onInk}),x(ip,{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(h0,{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(n8,{}),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(n8,{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(h0,{filled:o})]}),x(Co,{children:t})]})]},e))})]}),logos:B("div",{style:{...J,display:"flex",flexDirection:"column",gap:9,justifyContent:"center",padding:"0 12px",...qe(g.ink,g.inkSoft)},children:[x("span",{style:{fontSize:"3.98cqw",fontWeight:700,letterSpacing:"0.14em",textTransform:"uppercase",color:g.warm},children:"As fitted by"}),x("div",{style:{display:"grid",gridTemplateColumns:"repeat(4,1fr)",gap:8},children:["ARB","TJM","IRONMAN","OPPOSITE"].map(e=>x("span",{style:{textAlign:"center",fontSize:"4.31cqw",fontWeight:800,letterSpacing:"0.08em",color:g.onInk,opacity:.82},children:e},e))})]}),prose:B("div",{style:{...J,background:g.paper,padding:"11px 14px",display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[x("span",{style:{fontSize:"5.86cqw",fontWeight:700,color:g.text},children:"Why offset matters"}),B("div",{style:{display:"flex",gap:6},children:[x("span",{style:{fontSize:"15.3cqw",lineHeight:.78,fontWeight:800,color:g.rust,marginTop:1},children:"T"}),B("div",{style:{display:"flex",flexDirection:"column"},children:[x(Co,{children:"he number on the back of your wheel decides whether the"}),x(Co,{w:"76%",children:"tyre sits under the guard or an inch outside it."})]})]})]}),cards:x(We,{title:"What you get",children:x("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(3,1fr)",gap:5,minHeight:0},children:[["Fitted free","In store, same day."],["5 yr cover","Structural, no fine print."],["Swap it","30 days, any reason."]].map(([e,o])=>B("div",{style:{border:`1px solid ${g.rule}`,borderRadius:4,padding:6,display:"flex",flexDirection:"column",gap:2},children:[x("span",{style:{width:11,height:11,borderRadius:3,background:g.rust,opacity:.9}}),x("b",{style:{fontSize:"3.98cqw",color:g.text},children:e}),x(Co,{children:o})]},e))})}),faq:x(We,{title:"Questions",children:x("div",{style:{flex:1,display:"flex",flexDirection:"column",justifyContent:"center"},children:[["Will these fit my Hilux?",!0],["Do you fit them for me?",!1],["What if I pick wrong?",!1]].map(([e,o])=>B("div",{style:{borderBottom:`1px solid ${g.rule}`,padding:"4px 2px"},children:[B("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",gap:6},children:[x("b",{style:{fontSize:"4.31cqw",color:g.text},children:e}),x("span",{style:{fontSize:"4.64cqw",color:g.muted,lineHeight:1},children:o?"\u2212":"+"})]}),o&&x(Co,{w:"90%",children:"Use the fitment finder \u2014 it reads your build, not just the model."})]},e))})}),hero:B("div",{style:{...J,overflow:"hidden",...qe(g.ink,g.ink2)},children:[x("div",{style:{...J,background:`linear-gradient(90deg,${g.scrim},transparent 70%)`}}),x("div",{style:{position:"relative",height:"100%",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"flex-start",padding:"12px 14px",gap:5},children:x(a8,{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(a8,{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(m0,{name:"Ridge 19",price:"$365"}),x(m0,{name:"Ridge 29",price:"$410"}),x(m0,{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(jI,{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))})},i8={subscribe:B("div",{style:{...J,padding:13,display:"flex",flexDirection:"column"},children:[B("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:8},children:[B("div",{style:{display:"flex",alignItems:"center",gap:6},children:[x(K,{w:8,h:8,r:2,tone:"accent"}),x(K,{w:38,h:7,r:3,tone:"dark"}),x(K,{w:16,h:7,r:3,tone:"accent"})]}),x(K,{w:38,h:4,r:2,tone:"soft"})]}),x("div",{style:{height:1,background:Po.line,marginBottom:10}}),B("div",{style:{flex:1,display:"flex",gap:10,border:`1px solid ${Po.line}`,borderRadius:7,padding:10},children:[B("div",{style:{flex:1.1,display:"flex",flexDirection:"column",justifyContent:"center",gap:5},children:[x(K,{w:"46%",h:3,r:2,tone:"accent"}),x(K,{w:"84%",h:8,r:4,tone:"dark"}),x(K,{w:"56%",h:8,r:4,tone:"accent"}),x(K,{w:"96%",h:3,r:2,tone:"soft",style:{marginTop:2}}),B("div",{style:{display:"flex",gap:5,marginTop:4},children:[x("div",{style:{flex:1,height:13,borderRadius:5,border:`1px solid ${Po.line}`,background:Po.block}}),x(K,{w:34,h:13,r:5,tone:"accent"})]})]}),B("div",{style:{flex:1,background:Po.block,borderRadius:6,padding:8,display:"flex",flexDirection:"column",gap:6},children:[x(K,{w:"52%",h:4,r:2,tone:"accent"}),Array.from({length:3}).map((e,o)=>B("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",gap:6,borderTop:o?`1px solid ${Po.line}`:"none",paddingTop:o?4:0},children:[x(K,{w:34,h:4,r:2,tone:"dark"}),x(K,{w:16,h:3,r:2,tone:"soft"})]},o))]})]})]}),split:B("div",{style:{...J,display:"flex"},children:[x("div",{style:{width:"44%",background:u0}}),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(l8,{children:[x(K,{w:"18%",h:6,r:3,tone:"accent",style:{position:"absolute",top:15,right:16}}),B("div",{style:{...J,padding:16,display:"flex",flexDirection:"column",justifyContent:"center",gap:10},children:[B("div",{style:{display:"flex",alignItems:"center",gap:9},children:[x(K,{w:16,h:16,r:4,tone:"accent"}),x(K,{w:"20%",h:9,r:4,tone:"dark"})]}),x(K,{w:"62%",h:10,r:5,tone:"dark"}),x(K,{w:"42%",h:6,r:3,tone:"soft"})]})]}),header:x("div",{style:{...J,padding:14,display:"flex",flexDirection:"column",justifyContent:"center"},children:B("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[x(K,{w:"22%",h:12,r:4,tone:"dark"}),B("div",{style:{display:"flex",gap:9,alignItems:"center"},children:[x(K,{w:26,h:6,r:3,tone:"soft"}),x(K,{w:26,h:6,r:3,tone:"soft"}),x(K,{w:26,h:6,r:3,tone:"soft"}),x(K,{w:18,h:14,r:5,tone:"accent"})]})]})}),footer:B("div",{style:{...J,padding:15,display:"flex",flexDirection:"column",justifyContent:"center",gap:12},children:[B("div",{style:{display:"flex",gap:14},children:[B("div",{style:{flex:1.4,display:"flex",flexDirection:"column",gap:6},children:[x(K,{w:"60%",h:9,r:4,tone:"dark"}),x(K,{w:"90%",h:5,r:2,tone:"soft"}),x(K,{w:"70%",h:5,r:2,tone:"soft"})]}),[0,1].map(e=>B("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:6},children:[x(K,{w:"50%",h:6,r:3,tone:"dark"}),x(K,{w:"80%",h:5,r:2,tone:"soft"}),x(K,{w:"66%",h:5,r:2,tone:"soft"})]},e))]}),x("div",{style:{height:1,background:Po.line}}),B("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[x(K,{w:"30%",h:5,r:2,tone:"soft"}),x(K,{w:"16%",h:5,r:2,tone:"soft"})]})]}),grid:x("div",{style:{...J,padding:14,display:"grid",gridTemplateColumns:"1fr 1fr",gridTemplateRows:"1fr 1fr",gap:9},children:Array.from({length:4}).map((e,o)=>x("div",{style:{borderRadius:6,background:Po.block}},o))}),blanksection:x("div",{style:{...J,padding:14,display:"flex"},children:B("div",{style:{flex:1,border:`1px dashed ${Po.line}`,borderRadius:7,display:"flex",alignItems:"center",justifyContent:"center",position:"relative"},children:[x(K,{w:14,h:2,r:1,tone:"tint"}),x(K,{w:2,h:14,r:1,tone:"tint",style:{position:"absolute"}})]})}),spacer:B("div",{style:{...J,padding:14,display:"flex",flexDirection:"column",justifyContent:"space-between"},children:[x(K,{w:"100%",h:6,r:3,tone:"soft"}),x(K,{w:16,h:22,r:3,tone:"block",style:{alignSelf:"center"}}),x(K,{w:"100%",h:6,r:3,tone:"soft"})]}),divider:x("div",{style:{...J,padding:14,display:"flex",alignItems:"center"},children:x(K,{w:"100%",h:3,r:2,tone:"dark"})}),customhtml:B("div",{style:{...J,display:"flex",alignItems:"center",justifyContent:"center",gap:8,background:u0},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:u0}}),button:x("div",{style:{...J,display:"flex",alignItems:"center",justifyContent:"center"},children:x(K,{w:"34%",h:16,r:8,tone:"accent"})}),menu:B("div",{style:{...J,padding:"14px 22%",display:"flex",flexDirection:"column",justifyContent:"center",gap:7},children:[x(K,{w:"48%",h:7,r:3,tone:"dark"}),x(K,{w:"82%",h:5,r:2,tone:"soft"}),x(K,{w:"66%",h:5,r:2,tone:"soft"}),x(K,{w:"74%",h:5,r:2,tone:"soft"}),x(K,{w:"58%",h:5,r:2,tone:"soft"})]}),emailform:B("div",{style:{...J,padding:16,display:"flex",flexDirection:"column",justifyContent:"center",gap:9},children:[x(K,{w:"56%",h:8,r:3,tone:"dark"}),B("div",{style:{display:"flex",gap:6},children:[x("div",{style:{flex:1,height:16,borderRadius:5,border:`1px solid ${Po.line}`}}),x(K,{w:"30%",h:16,r:5,tone:"accent"})]})]}),sociallogos:x("div",{style:{...J,display:"flex",alignItems:"center",justifyContent:"center",gap:9},children:[0,1,2,3].map(e=>x(K,{w:16,h:16,r:8,tone:"dark"},e))}),paymentlogos:B("div",{style:{...J,display:"flex",alignItems:"center",justifyContent:"center",gap:7},children:[x(K,{w:22,h:6,r:2,tone:"soft"}),[0,1,2,3].map(e=>x(K,{w:20,h:13,r:3,tone:"dark"},e))]}),search:x("div",{style:{...J,padding:"0 18%",display:"flex",alignItems:"center"},children:B("div",{style:{flex:1,height:22,borderRadius:11,border:`1px solid ${Po.line}`,display:"flex",alignItems:"center",gap:7,padding:"0 9px"},children:[x("div",{style:{width:9,height:9,borderRadius:5,border:`2px solid ${Po.dark}`}}),x(K,{w:"46%",h:5,r:2,tone:"soft"})]})}),cart:B("div",{style:{...J,display:"flex",alignItems:"center",justifyContent:"center",gap:7},children:[x("div",{style:{width:22,height:18,borderRadius:"3px 3px 6px 6px",border:`2px solid ${Po.dark}`}}),x("div",{style:{padding:"2px 6px",borderRadius:6,border:`1.5px solid ${Po.dark}`},children:x(K,{w:7,h:7,r:2,tone:"dark"})})]}),countryswitch:B("div",{style:{...J,padding:14,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:5},children:[B("div",{style:{display:"flex",alignItems:"center",gap:6,padding:"4px 8px",border:`1px solid ${Po.line}`},children:[x(K,{w:22,h:6,r:2,tone:"dark"}),x(K,{w:6,h:4,r:1,tone:"soft"})]}),B("div",{style:{width:"46%",display:"flex",flexDirection:"column",gap:4,padding:6,border:`1px solid ${Po.line}`},children:[x(K,{w:"80%",h:4,r:2,tone:"accent"}),x(K,{w:"64%",h:4,r:2,tone:"soft"}),x(K,{w:"72%",h:4,r:2,tone:"soft"})]})]}),legalline:B("div",{style:{...J,padding:16,display:"flex",flexDirection:"column",justifyContent:"center",gap:9},children:[x("div",{style:{height:1,background:Po.line}}),B("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[x(K,{w:"38%",h:5,r:2,tone:"soft"}),B("div",{style:{display:"flex",gap:5},children:[x(K,{w:14,h:5,r:2,tone:"soft"}),x(K,{w:14,h:5,r:2,tone:"soft"}),x(K,{w:14,h:5,r:2,tone:"soft"})]})]})]}),fallback:x("div",{style:{position:"absolute",inset:14,borderRadius:8,background:Po.block}})};function c8({type:e}){let o=Eke[e]??"",t=_ke[o]??i8[o]??i8.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 QI}from"efficient-easel/screen/components/ScreenDocumentContext";import{jsx as lc,jsxs as d8}from"react/jsx-runtime";import Oke from"efficient-easel/screen/components/SidePanelHead";import{StylesIcon as Ake}from"efficient-easel/rail";import{Tooltip as Rke}from"efficient-shell/ui";import{HintsToggle as Lke,hintsFoldClass as Fke}from"efficient-easel/panel";import{useHints as Bke}from"efficient-easel/screen/lib/hints";function f8({tokenRef:e,siteId:o,onClose:t,onNotify:r,tab:a,onTabChange:n,revealPageGroup:s,onPageGroupRevealed:i}){let l=Il(),{shown:d,setShown:f}=Bke();return d8("div",{className:`sf-styles ${Fke(d)}`.trim(),children:[lc(Oke,{icon:lc(Ake,{}),title:c("Styles"),context:lc(Rke,{content:c("{name} \u2014 renamed in the Console: {place}.",{name:l,place:c("Storefront \u25B8 Sites \u25B8 Settings")}),className:"sf-name-tip",children:lc("span",{className:"sf-name-text",children:l})})}),d8("div",{className:"sf-insp-body es-insp-body sf-scroll",children:[lc(Hh,{tokenRef:e,siteId:o,onNotify:r,tab:a,onTabChange:n,revealPageGroup:s,onPageGroupRevealed:i}),lc(Lke,{shown:d,onChange:f,label:c("Show hints")})]})]})}import{jsx as Bo,jsxs as oi,Fragment as Wke}from"react/jsx-runtime";import{Fragment as w8,useEffect as C8,useRef as S0}from"react";import{useTreeDrag as v8}from"efficient-easel/drag";import{GlobeIcon as $ke,ImageIcon as Uke,LocationIcon as zke,MapIcon as Gke,TextLinesIcon as jke,TrashIcon as k8}from"efficient-easel/icons";import{Subtree as T8,TreeRow as cp,TreeRowAction as P8,TreeSeam as E8}from"efficient-easel/tree";import{useEaselStrings as Kke}from"efficient-easel/strings";import{isSelectionMode as Vke}from"efficient-easel/screen/lib/screen-parts";import{useSyncExternalStore as Nke}from"react";var Dke={level:"groups"},u8=Dke,x0=new Set;function Lr(e){u8=e;for(let o of x0)o()}function Mke(e){return x0.add(e),()=>{x0.delete(e)}}var p8=()=>u8;function m8(){return Nke(Mke,p8,p8)}var lp=e=>String(e?.group??""),g0=new WeakMap,Hke=0;function KI(e){let o=g0.get(e);return o||(o=`loc${++Hke}`,g0.set(e,o)),o}var h8=(e,o)=>o||e||"Ungrouped",x8={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 ei(e){return Ax(e,lp,o=>String(o?.groupName??"")).map(o=>({key:o.key,name:o.name,cards:o.items.map(t=>t.item)}))}var I0=e=>e.flatMap(o=>o.cards),g8=(e,o,t)=>Math.min(Math.max(e,o),t);function VI(e,o,t){let r=0;for(let a=0;a<e.length;a++)if(lp(e[a])===o){if(r===t)return a;r++}return-1}function y0(e,o,t){let r=ei(e);if(o<0||o>=r.length)return e;let[a]=r.splice(o,1),n=g8(o<t?t-1:t,0,r.length);return r.splice(n,0,a),I0(r)}function b0(e,o,t,r,a){let n=ei(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&&g0.set(d,KI(l));let f=g8(s===i&&t<a?a-1:a,0,i.cards.length);return i.cards.splice(f,0,d),I0(n)}function I8(e,o){let t=ei(e),r=t.find(n=>n.key===o),a={...x8,group:o,groupName:r?.name??""};return r?(r.cards.push(a),I0(t)):[...e,a]}function y8(e){let o=new Set(ei(e).map(a=>a.key)),t=o.size+1,r=`Group ${t}`;for(;o.has(r);)r=`Group ${++t}`;return{cards:[...e,{...x8,group:r,groupName:""}],key:r}}function b8(e,o){return e.filter(t=>lp(t)!==o)}function S8(e,o,t){let r=VI(e,o,t);return r<0?e:e.filter((a,n)=>n!==r)}function Fxo(e,o,t){let r=e.flatMap((s,i)=>lp(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 Bxo(e,o,t){return o.flatMap(r=>{let a=e.filter(n=>lp(n)===r);return a.length?a:t(r)})}var qI="ContactLocations",YI=e=>({parentId:`locations-${e}`,slot:"groups"}),w0=(e,o)=>({parentId:`locations-${e}`,slot:`cities:${o}`});function _8(e,o){let{readOnly:t,selected:r}=o,a=Kke().tree,n=o.data?.content??[],s=Vke(e),i=S0(null);C8(()=>{let b=r?.type===qI?String(r.props.id):null;b&&b!==i.current&&Lr({level:"groups"}),i.current=b},[r?.props.id]);let{selectedLocationPartId:l,setSelectedLocationPartId:d,setSelectHandler:f}=l6(),u=m8(),p=(b,y)=>{let v=n[b];v&&o.replace(b,{type:v.type,props:{...v.props,locations:y}})},m=b=>{let y=n[b]?.props?.locations;return Array.isArray(y)?y:[]},h=v8({keyOf:b=>`group:${b.si}:${b.index}`,readOnly:!!t,canDrop:(b,y)=>y.parentId===YI(b.si).parentId&&y.slot==="groups",onDrop:(b,y)=>{p(b.si,y0(m(b.si),b.index,y.index)),u.level==="city"&&Lr({level:"groups"})},onStep:(b,y)=>{p(b.si,y0(m(b.si),b.index,y<0?b.index-1:b.index+2)),u.level==="city"&&Lr({level:"groups"})}}),I=v8({keyOf:b=>`city:${b.si}:${b.group}:${b.index}`,readOnly:!!t,canDrop:(b,y)=>y.parentId===YI(b.si).parentId&&y.slot.startsWith("cities:"),onDrop:(b,y)=>{let v=y.slot.slice(7);p(b.si,b0(m(b.si),b.group,b.index,v,y.index)),Lr({level:"group",key:v})},onStep:(b,y)=>{p(b.si,b0(m(b.si),b.group,b.index,b.group,y<0?b.index-1:b.index+2)),u.level==="city"&&Lr({level:"group",key:b.group})}}),w=S0(n);w.current=n;let S=S0(()=>{});C8(()=>{f(b=>{let y=Ag(b);if(!y)return;let v=w.current.findIndex(L=>L.props?.id===y.nodeId);v<0||S.current(v,{level:y.part,index:y.index})})},[f]);let C=(b,y)=>{i.current=n[b]?.props?.id??null,o.select(b),Lr(y),e.reveal();let v=n[b]?.props?.id;typeof v=="string"&&(y.level==="city"||y.level==="image"||y.level==="map")?d(Og(v,y.index,y.level)):d(null),typeof v=="string"&&o.scrollTo(v)};return S.current=C,{renderLocationTree:(b,y,{rowClick:v,isCollapsed:L,toggleCollapse:A})=>{let D=m(y),T=ei(D),F=String(b.props.id),k=s&&r?.props.id===F,_=O=>Bo(E8,{...t?{}:h.seam({place:{...YI(y),index:O}})},`seam:${F}:groups:${O}`),P=(O,W)=>Bo(E8,{...t?{}:I.seam({place:{...w0(y,O),index:W}})},`seam:${F}:cities:${O}:${W}`);return oi(Wke,{children:[Bo(cp,{icon:Bo(jke,{size:13}),name:c("Texts"),words:a,onSelect:()=>C(y,{level:"texts"}),selected:k&&u.level==="texts",rowProps:{onClick:v(()=>C(y,{level:"texts"}))}}),T.map((O,W)=>{let G=`${F}::grp::${O.key}`,Z=L(G),V=k&&u.level==="group"&&u.key===O.key,de=O.name||O.key?h8(O.key,O.name):c("Ungrouped"),ve={...w0(y,O.key),index:O.cards.length},oe=I.row({item:{si:y,group:O.key,index:-1},place:ve,into:ve,canDrag:!1},{onClick:v(()=>C(y,{level:"group",key:O.key}))}),Oe=h.row({item:{si:y,index:W},place:{...YI(y),index:W}},oe.rowProps);return oi(w8,{children:[W===0&&_(0),Bo(cp,{icon:Bo($ke,{size:13}),name:de,words:a,onSelect:()=>C(y,{level:"group",key:O.key}),selected:V,draggable:Oe.draggable,dragging:Oe.dragging,drop:Oe.drop??oe.drop,fold:{open:!Z,label:c("group"),onToggle:()=>A(G)},actions:Bo(P8,{kind:"delete",label:ct("Delete {label} group ({n} city)","Delete {label} group ({n} cities)",O.cards.length,{label:de}),onClick:()=>{p(y,b8(D,O.key)),Lr({level:"groups"})},children:Bo(k8,{size:15})}),rowProps:Oe.rowProps,count:O.cards.length,countLabel:ct("{n} city","{n} cities",O.cards.length)}),!Z&&oi(T8,{children:[O.cards.map((_e,Ae)=>{let Re=VI(D,O.key,Ae),nt=k&&u.level==="city"&&u.index===Re,Xo=String(_e?.name??"")||c("City"),Zo=`${F}::city::${KI(_e)}`,yo=L(Zo),{rowProps:Do,...Eo}=I.row({item:{si:y,group:O.key,index:Ae},place:{...w0(y,O.key),index:Ae}},{onClick:v(()=>C(y,{level:"city",index:Re}))});return oi(w8,{children:[Ae===0&&P(O.key,0),Bo(cp,{icon:Bo(zke,{size:13}),name:Xo,words:a,onSelect:()=>C(y,{level:"city",index:Re}),selected:nt,...Eo,fold:{open:!yo,label:Xo,onToggle:()=>A(Zo)},actions:Bo(P8,{kind:"delete",label:c("Delete {name}",{name:Xo}),onClick:()=>{p(y,S8(D,O.key,Ae)),Lr({level:"group",key:O.key})},children:Bo(k8,{size:15})}),rowProps:Do}),!yo&&oi(T8,{children:[Bo(cp,{icon:Bo(Uke,{size:13}),name:c("Image"),words:a,onSelect:()=>C(y,{level:"image",index:Re}),selected:k&&u.level==="image"&&u.index===Re,rowProps:{onClick:v(()=>C(y,{level:"image",index:Re}))}}),Bo(cp,{icon:Bo(Gke,{size:13}),name:c("Map"),words:a,onSelect:()=>C(y,{level:"map",index:Re}),selected:k&&u.level==="map"&&u.index===Re,rowProps:{onClick:v(()=>C(y,{level:"map",index:Re}))}})]}),P(O.key,Ae+1)]},KI(_e))}),oi("button",{type:"button",className:"sf-add-card",onClick:()=>{let _e=I8(D,O.key);p(y,_e);let Ae=ei(_e).find(Re=>Re.key===O.key);Lr(Ae&&Ae.cards.length?{level:"city",index:VI(_e,O.key,Ae.cards.length-1)}:{level:"group",key:O.key})},children:[Bo("span",{className:"sf-plus sf-plus--sm",children:"+"}),c("Add city")]})]}),_(W+1)]},G)}),oi("button",{type:"button",className:"sf-add-card",onClick:()=>{let{cards:O,key:W}=y8(D);p(y,O),C(y,{level:"group",key:W})},children:[Bo("span",{className:"sf-plus sf-plus--sm",children:"+"}),c("Add group")]})]})},sectionPressed:b=>{b?.type===qI&&Lr({level:"groups"})}}}import{useEffect as Zke,useRef as Jke}from"react";import{createNode as v0,newId as k0}from"efficient-easel/data";import{useEaselApi as Qke}from"efficient-easel/easel";import{useScreenDocument as eTe}from"efficient-easel/screen/components/ScreenDocumentContext";import{useEaselSession as oTe}from"efficient-easel/screen/lib/session-context";import{useEffect as L8,useRef as Yke}from"react";import{useEasel as qke}from"efficient-easel/easel";import{ROOT_ZONE as C0}from"efficient-easel/draw";var dp={};function O8(e){return dp={...e?.theme?{theme:e.theme}:{},...e?.site?{site:e.site}:{}},dp}function A8(e){dp===e&&(dp={})}function cc(){return dp}function R8(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 B8(e){let o=qke(d=>d.appState.data.content),{theme:t,themeRow:r,themeFromDocument:a,siteGutter:n,siteGutterPhone:s,siteLengthUnits:i}=fe(),l=Yke(new Set);L8(()=>{let d=F8({theme:t,themeRow:r,themeFromDocument:a,siteGutter:n,siteGutterPhone:s,siteLengthUnits:i});d&&Xke(E4(o,void 0,d),e,l.current)},[o,e,t,r,a,n,s,i]),L8(()=>{let d=O8(F8({theme:t,themeRow:r,themeFromDocument:a,siteGutter:n,siteGutterPhone:s,siteLengthUnits:i}));return()=>A8(d)},[t,r,a,n,s,i])}function F8(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=R8({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 Xke(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(C0,r,a[0]),a.slice(1).forEach((s,i)=>{o.insertNode(C0,r+1+i,s),o.replaceComponent(C0,r+1+i,s)}))}}import{ROOT_ZONE as dc,missingPinnedTypes as tTe,pinnedDuplicateIds as T0}from"efficient-easel/draw";function N8(e){return!e.docId||e.saveStatus==="saving"?!1:e.seededDocId!==e.docId}function D8(e,o){let t=e.some(i=>i?.type===ze),r=e[e.length-1],a=!t&&r?.type===Qe?r:null,n=e.filter(i=>i?.type===Qe&&i!==a).map(i=>String(i.props?.id??"")).filter(Boolean),s=o.hasChromeDoc&&!t&&!a;return{remove:n,seedHeader:!e.some(i=>i?.type===Tt),seedFooter:s,seedSiteHeader:s&&!e.some(i=>i?.type===Je)}}async function M8(e){let o=e.blocks?.seeds?.siteHeader;if(!o)return!1;let t;try{t=await o({make:e.make,id:e.id,siteId:e.siteId,token:e.token})}catch{return!1}if(!t||t.type!==Je||!e.stillOpen())return!1;let r=e.latest();return r.some(a=>a?.type===Je)?!1:(e.write(Tu(r,t)),!0)}function H8(e,o){let{adapter:t,capabilities:r,currentSlug:a,docId:n,data:s,saveStatus:i,siteId:l,tokenRef:d}=eTe(),f=oTe(),{hasSiteSettings:u,hasPinnedChrome:p}=r;B8(e);let m=!!r.editsPinnedInPlace&&a!==gr,h=a===gr,I=Qke().getState,w=Jke(null);Zke(()=>{if(!N8({docId:n,saveStatus:i,seededDocId:w.current})||(w.current=n,!p))return;let S=I().appState.data,C=S.content,b=s?.content??[],y=(D,T)=>D.some(F=>F?.type===T);if(!u){let D=new Set(T0(C)),T=D.size?C.filter(k=>!D.has(k.props.id)):C;if(D.size&&e.setDocument({...S,content:T}),h)return;let F=tTe(T,b);if(F.includes(Qe)){let k=T.length,_=e.insertSection(Qe,k);e.replaceComponent(dc,k,{type:Qe,props:{id:_,blocks:$I()}})}F.includes(Tt)&&e.insertNode(dc,0,WI());return}if(h){let D=Ai(C);if(D!==C&&e.setDocument({...S,content:[...D]}),!D.find(T=>T.type===Qe)&&!y(b,Qe)&&!y(D,ze)&&!y(b,ze)){let T=(k,_)=>v0(o,k,_),F={type:Qe,props:{blocks:$I()}};e.insertNode(dc,D.length,wf(F,T,k0(ze),np))}return}if(m){let D=!!t?.pinnedChrome?.state().docId,T=D8(C,{hasChromeDoc:D}),F=new Set([...T.remove,...T0(C.filter(_=>!T.remove.includes(String(_.props.id))))]),k=F.size?C.filter(_=>!F.has(String(_.props.id))):C;if(k.length!==C.length&&e.setDocument({...S,content:k}),T.seedFooter&&!y(b,Qe)&&!y(b,ze)){let _=(O,W)=>v0(o,O,W),P={type:Qe,props:{blocks:$I()}};e.insertNode(dc,k.length,wf(P,_,k0(ze),np))}if(T.seedHeader&&!y(b,Tt)){let _=k[0]?.type===Je?1:0;e.insertNode(dc,_,WI())}if(T.seedSiteHeader&&!y(b,Je)&&!y(b,Qe)&&!y(b,ze)){let _=n;M8({blocks:$i(f),make:(P,O)=>v0(o,P,O),id:k0(Je),siteId:l??null,token:d.current,latest:()=>I().appState.data.content,stillOpen:()=>w.current===_,write:P=>{let O=I().appState.data;e.setDocument({...O,content:[...P]})}})}return}let v=C.filter(D=>D.type!==Qe),L=new Set(T0(v)),A=L.size?v.filter(D=>!L.has(D.props.id)):v;A.length!==C.length&&e.setDocument({...S,content:A}),!y(A,Tt)&&!y(b,Tt)&&e.insertNode(dc,0,WI())},[n,i,s,I,e,u,p,h,m,t,f,l,d])}import{useEffect as q8,useMemo as cTe,useRef as X8}from"react";import{useEasel as dTe}from"efficient-easel/easel";import{useEaselHost as fTe}from"efficient-easel/screen/lib/host";import{FIELD_DESCRIPTION_MARKER as rTe}from"efficient-easel/screen/lib/host";import{isNode as U8}from"efficient-easel/data";function fp(e,o){let t=e.components[o]?.label;return typeof t=="string"&&t.trim()?t.trim():o}function aTe(e){return e.length>3&&e.endsWith("s")?e.slice(0,-1):e}function P0(e,o,t,r){e.forEach((a,n)=>{if(U8(a)){r.push({node:a,list:e,index:n,parent:o,slot:t});for(let s of Br(a))P0(a.props[s],a,s,r)}})}function nTe(e){let o=[];P0(Array.isArray(e.content)?e.content:[],null,"",o);for(let t of Object.values(e.zones??{}))Array.isArray(t)&&P0(t,null,"",o);return o}function z8(e,o){return nTe(e).find(t=>String(t.node.props.id)===o)}function G8(e,o,t){if(!t)return null;let r=z8(o,t);if(!r)return null;let a=fp(e,r.node.type),n=r.parent?`${fp(e,r.parent.type)} \xB7 ${aTe(r.slot)} ${r.index+1}`:a;return{blockId:t,type:r.node.type,label:n,path:""}}var sTe=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 iTe(e){if(!e||typeof e!="object")return null;let o=e;if(typeof o.type!="string")return null;let t=o.type==="custom"?o[rTe]: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=sTe(n));for(let s of["arrayFields","objectFields"]){let i=t?.[s]??o[s];i&&typeof i=="object"&&(r[s]=j8(i))}return r}function j8(e){let o={};for(let[t,r]of Object.entries(e??{})){let a=iTe(r);a&&(o[t]=a)}return o}function K8(e){let o={};for(let[t,r]of Object.entries(e.components))r&&(o[t]={label:fp(e,t),fields:j8(r.fields),...V8(t)?{retired:!0}:{}});return o}function V8(e){return He(V0,e)}function W8(e,o){let t=e.components[o]?.defaultProps;return t&&typeof t=="object"?structuredClone(t):{}}function lTe(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 E0(e,o){return e.findIndex(t=>U8(t)&&String(t.props.id)===o)}function $8(e,o,t){let r=o||t;if(!r)return e.length;let a=E0(e,r);if(a<0)throw new Error(`there is no top-level block ${r}`);return o?a+1:a}function Y8(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=z8(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=lTe(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}`),V8(i.type)&&d(`${fp(e,i.type)} is retired: it is no longer added (a page that holds one keeps it)`);let f=Yl(i.type),u=Object.keys(i.props??{}).filter(m=>m!=="id");f&&u.length&&d(`${fp(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($8(s,i.after,i.before),0,p);break}case"remove_block":{let f=E0(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=E0(s,i.block_id);f<0&&d(`there is no top-level block ${i.block_id}`);let[u]=s.splice(f,1);s.splice($8(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 _0=e=>be(e.requestId)??null;function Z8(){let e=fTe(),{appState:o,selectedItem:t,dispatch:r,history:a,config:n}=dTe(p=>p),s=n,i=X8({appState:o,dispatch:r,history:a,blockConfig:s});i.current={appState:o,dispatch:r,history:a,blockConfig:s};let l=X8(new Map),d=t?.props?.id,f=cTe(()=>G8(s,o.data,d),[s,o.data,d]),u=f?JSON.stringify(f):"";q8(()=>{e.connected&&e.send("storefront-editor:selection",{selection:f})},[e,u]),q8(()=>e.subscribe(p=>{let{appState:m,dispatch:h,history:I,blockConfig:w}=i.current;switch(p.type){case"storefront-editor:request-document":{let S=_0(p);if(!S)return;e.send("storefront-editor:document",{requestId:S,document:m.data,blocks:K8(w)});return}case"storefront-editor:apply-page-edits":{let S=_0(p);if(!S)return;let C=Array.isArray(p.ops)?p.ops:[],b=C.length?Y8(w,m.data,C,y=>`${y}-${crypto.randomUUID()}`,cc()):{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=_0(p);if(!S)return;let C=l.current.get(S),b=C!==void 0&&C===JSON.stringify(m.data.content??[]);b&&I.hasPast&&(I.back(),l.current.delete(S)),e.send("storefront-editor:page-edits-result",{requestId:S,applied:b&&I.hasPast,reason:b?null:"the page has changed since"});return}case"storefront-editor:set-right-panel":typeof p.shown=="boolean"&&h({type:"setUi",ui:{rightSideBarVisible:p.shown}});return;default:return}}),[e])}import{useEffect as eV,useState as oV}from"react";var XI=new Map;async function pTe(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 J8(e,o){let t=XI.get(o);return t||(t=pTe(e,o),XI.set(o,t),t.catch(()=>{XI.get(o)===t&&XI.delete(o)})),t}var uTe=/^(localhost|(?:[a-z0-9-]+\.)+localhost|127(?:\.\d{1,3}){3}|0\.0\.0\.0|\[::1\]|::1)$/i;function O0(e){return!!e&&uTe.test(e)}function Q8(e){let{pageSlug:o,siteSlug:t,hostname:r}=e,a=o===Uu?"/":`/${encodeURIComponent(o)}`;if(!O0(r))return a;let n=t?.trim();return n?`${a}?site=${encodeURIComponent(n)}`:a}function tV(e){let{pageSlug:o,siteId:t,token:r}=e,[a,n]=oV(null),[s,i]=oV(null),l=DO();eV(()=>{try{i(new URL(uu()).hostname)}catch{i(null)}},[l]),eV(()=>{if(!O0(s)||!t||!r){n(null);return}let f=!1;return J8(r,t).then(u=>{f||n(u)}),()=>{f=!0}},[s,t,r]);let d=Q8({pageSlug:o,siteSlug:a,hostname:s});return l?`${l}${d}`:d}import{jsx as pp}from"react/jsx-runtime";import{useEffect as mTe,useRef as rV,useState as hTe}from"react";import{ExternalIcon as aV}from"efficient-easel/icons";import{EaselIconButton as xTe}from"efficient-easel/chrome";import{Tooltip as gTe,iconButtonClasses as ITe}from"efficient-shell/ui";import{useSettledPress as yTe}from"efficient-easel/easel";import{useScreenDocument as bTe}from"efficient-easel/screen/components/ScreenDocumentContext";async function STe({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 nV({liveHref:e,pageId:o,draftLink:t}){let{flushSave:r}=bTe(),a=rV(r);a.current=r;let n=yTe(),[s,i]=hTe(!1),l=rV(null);if(mTe(()=>()=>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),STe({pageId:o,liveHref:e,draftLink:t,ready:d}).finally(()=>i(!1)))};return pp(xTe,{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:pp(aV,{})})}return pp(gTe,{content:c("Preview the live site (opens in a new tab)"),side:"bottom",children:pp("a",{className:ITe({className:"es-iconbtn"}),href:e,...Md,"aria-label":c("Preview the live site in a new tab"),children:pp(aV,{})})})}import{createElement as wTe,useCallback as CTe,useEffect as sV,useRef as iV,useState as vTe}from"react";import{ClockIcon as kTe}from"efficient-shell/icons/efficient";import{useScreenDocument as TTe}from"efficient-easel/screen/components/ScreenDocumentContext";function lV(e){let{docId:o,capabilities:t,hasUnsavedEdits:r,onPublish:a,adapter:n}=TTe(),s=PK(TK(o??null),r),i=dI(fI()),l=n.siteLiveState;sV(()=>{if(l)return fS(l),ha(0),()=>fS(null)},[l]);let d=um(),[f,u]=vTe(!1),p=iV(e);p.current=e;let m=iV(!0);sV(()=>(m.current=!0,()=>{m.current=!1}),[]);let h=CTe(()=>{u(!0),a(p.current).then(()=>{uI()}).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=o0({live:I,onPress:h,busy:f,goingLive:EK(d?.changes??[])});return n.siteVersions?{...w,menuItems:PTe()}:w}return o0({live:s,onPress:h,busy:f,pinnedUnpublished:i?.unpublished??!1})}}function PTe(){return[{key:"version-history",label:c("Version history"),icon:wTe(kTe),onSelect:VG}]}import{jsx as ae,jsxs as Dt,Fragment as hp}from"react/jsx-runtime";import{useCallback as ETe,useEffect as _Te,useId as fV,useRef as OTe,useState as lr}from"react";import{useSettledAction as ATe}from"efficient-easel/easel";import{Avatar as RTe,Banner as up,Button as ti,ColoredBadge as A0,Dialog as pV,Drawer as LTe,DropdownMenu as FTe,FormField as uV,iconButtonClasses as BTe,Inline as R0,Input as NTe,ListRow as DTe,Select as MTe,SortableList as HTe,Stack as mp}from"efficient-shell/ui";import{EditIcon as WTe,EyeIcon as cV,MenuIcon as $Te,MoreIcon as UTe,PageIcon as mV,RevertIcon as dV,StylesIcon as zTe}from"efficient-shell/icons/efficient";import{useScreenDocument as hV}from"efficient-easel/screen/components/ScreenDocumentContext";var GTe={page:mV,menu:$Te};function jTe(e,o){return e.pages.find(t=>t.id===o)??e.pages[0]??null}function KTe(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 VTe({version:e,page:o,waiting:t,busy:r,error:a,onCancel:n,onConfirm:s,onPage:i}){let l=fV();if(!e)return null;let d=e.kind==="draft_before_restore",f=e.number,u=oj(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(pV,{open:!0,onClose:()=>{r||n()},size:"sm",title:p,footer:Dt(hp,{children:[ae(ti,{variant:"secondary",onClick:n,disabled:r,children:c("Cancel")}),ae(ti,{onClick:s,loading:r,disabled:r,children:c("Restore as draft")})]}),children:Dt(mp,{gap:4,children:[o&&e.pages.length>1?ae(uV,{label:c("Page"),htmlFor:l,children:ae(MTe,{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(up,{tone:"warning",children:ct("{n} picture in this version was deleted from the media library. It stays empty.","{n} pictures in this version were deleted from the media library. They stay empty.",h)}):null,t?ae(up,{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(up,{tone:"danger",children:a}):null]})})}function YTe({version:e,onCancel:o,onSave:t}){let r=fV(),[a,n]=lr(null),[s,i]=lr(""),[l,d]=lr(!1),[f,u]=lr(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(pV,{open:!0,onClose:()=>{l||o()},size:"sm",title:c("Name this version"),footer:Dt(hp,{children:[ae(ti,{variant:"secondary",onClick:o,disabled:l,children:c("Cancel")}),ae(ti,{onClick:()=>{m()},loading:l,disabled:l||p,children:c("Save")})]}),children:ae(uV,{label:c("Name"),htmlFor:r,hint:c("Named versions are always kept. Leave it empty to take the name away."),error:f??void 0,children:ae(NTe,{id:r,value:s,invalid:!!f,onChange:h=>i(h.target.value),onKeyDown:h=>{h.key==="Enter"&&m()}})})})}function qTe({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(cV,{}),onSelect:r}],...l?[{key:"restore",label:i?c("Put these drafts back"):c("Restore whole website"),icon:ae(dV,{}),onSelect:a}]:[],...l&&!i&&e.pages.length?[{key:"restore-page",label:c("Restore one page only"),icon:ae(mV,{}),onSelect:n}]:[],...i?[]:[{type:"divider",key:"divider"},{key:"name",label:c("Name this version"),icon:ae(WTe,{}),onSelect:s}]];return ae(DTe,{title:Dt("span",{className:"sf-version-title",children:[ae("span",{children:ej(e)}),e.live?ae(A0,{tone:"success",size:"xs",children:c("Live")}):null,e.name?ae(A0,{tone:"neutral",size:"xs",children:c("Version {n}",{n:e.number})}):null,i?ae(A0,{tone:"warning",size:"xs",children:c("Not published")}):null]}),expanded:o,onToggle:t,actions:ae(FTe,{align:"end","aria-label":c("More"),items:f,triggerClassName:BTe({variant:"ghost",size:"sm"}),trigger:ae(UTe,{})}),below:Dt(mp,{gap:3,children:[Dt(R0,{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:rj(e.createdAt)}),d?Dt(hp,{children:[ae("span",{"aria-hidden":"true",children:"\xB7"}),ae("span",{children:ct("{n} change","{n} changes",d)})]}):null]}),o?Dt(mp,{gap:3,children:[d?ae(mp,{gap:2,children:e.changes.map(u=>{let p=GTe[u.kind]??zTe;return Dt(R0,{gap:2,align:"center",children:[ae(p,{size:16}),ae("span",{children:tj(u)})]},`${u.kind}:${u.id}`)})}):null,Dt(R0,{gap:2,children:[i?null:ae(ti,{variant:"secondary",size:"sm",leftIcon:ae(cV,{}),onClick:r,children:c("Preview")}),l?ae(ti,{variant:"secondary",size:"sm",leftIcon:ae(dV,{}),onClick:a,children:c("Restore")}):null]})]}):null]})})}function XTe({open:e,onClose:o,access:t,waiting:r}){let{flushSave:a,reloadFromServer:n,docId:s}=hV(),[i,l]=lr(null),[d,f]=lr(!1),[u,p]=lr(null),[m,h]=lr(null),[I,w]=lr(!1),[S,C]=lr(null),[b,y]=lr(null),[v,L]=lr(!1),A=OTe(0),D=ETe(()=>{let _=++A.current;f(!1),t.list().then(P=>{_===A.current&&l(P)},()=>{_===A.current&&f(!0)})},[t]);_Te(()=>{e&&D()},[e,D]);let T=_=>{L(!1),KTe(t,_.id).catch(()=>L(!0))},F=async()=>{if(!(!m||I)){w(!0),C(null);try{await JG({access:t,version:m.version,page:m.page,flushSave:a,reload:n}),h(null),o()}catch(_){C(_ instanceof Kf?c("Your last changes did not save, so nothing was restored. Try again."):c("The version was not restored. Nothing changed. Try again."))}finally{w(!1)}}},k=ATe({onPress:()=>{F()},busy:I});return Dt(hp,{children:[ae(LTe,{open:e,onClose:o,side:"right",size:"md",title:c("Version history"),description:Dt(hp,{children:[c("Every Publish keeps a copy of the whole website: pages, menus and site styles.")," ",c("Products, prices and forms always show as they are now.")]}),footer:ae("span",{className:"sf-version-foot",children:c("The newest 30 are kept. Named versions are always kept.")}),children:Dt(mp,{gap:3,children:[v?ae(up,{tone:"danger",onDismiss:()=>L(!1),children:c("The preview did not open. Try again.")}):null,d?ae(up,{tone:"danger",action:ae(ti,{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(HTe,{"aria-label":c("Versions"),spacing:"comfortable",children:i.map(_=>ae(qTe,{version:_,expanded:u===_.id,onToggle:()=>p(P=>P===_.id?null:_.id),onPreview:()=>T(_),onRestore:()=>{C(null),h({version:_,page:null})},onRestorePage:()=>{C(null),h({version:_,page:jTe(_,s)})},onName:()=>y(_)},_.id))})]})}),ae(VTe,{version:m?.version??null,page:m?.page??null,waiting:r,busy:k.busy===!0,error:S,onCancel:()=>h(null),onConfirm:k.onPress,onPage:_=>h(P=>P&&{...P,page:P.version.pages.find(O=>O.id===_)??P.page})}),ae(YTe,{version:b,onCancel:()=>y(null),onSave:async _=>{await t.name(b.id,_),y(null),D()}})]})}function xV(){let{adapter:e,hasUnsavedEdits:o}=hV(),t=e.siteVersions,r=qG(),a=um();return t?ae(XTe,{open:r,onClose:YG,access:t,waiting:o||a?.state==="changed"}):null}import{useEaselSession as o7}from"efficient-easel/screen/lib/session-context";import{buildPaletteSections as EIo,categoryLabel as _Io,paletteWithoutPinned as OIo,pinnedSection as AIo}from"efficient-easel/screen/lib/document/palette-sections";var ZTe={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 gV(e){return $(ZTe,e)?.label}var IV=X0;function JTe(e){let o=Bg.Ticker(e.nodeDefaults,e.newNodeId),{sectionBorder:t,...r}=o.props,a=Mv.line?{sectionBorder:t}:{};return{...o,props:{...r,...a,sectionAccent:Mv.sectionAccent}}}var QTe={Hero:{[lf]:{newChild:JTe,childLabel:_n.Ticker}}},yV=Object.fromEntries(Object.entries(b4).map(([e,o])=>[e,Object.fromEntries(Object.entries(o).map(([t,r])=>[t,{...r,...$(QTe,e)?.[t]}]))]));function bV(e,o=0,t,r){let a=oPe(tPe(e,o,r),t),n=a?IT():null;return a&&n?ePe(a,n):a}function ePe(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 oPe(e,o){if(!e||e.source!=="container"||!o||!i_())return e;let t=Kp({data:o.data},o.id),r=typeof t?.type=="string"?$p(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 tPe(e,o,t){let r=t?$(yV,e)?.[t]:void 0;if(r)return{source:"section",slot:r.slot,choices:null,spec:r};let a=$(Zt,e);if(a)return{source:"section",slot:a.slot,choices:null,spec:a};let n=vp(e,o);if(n)return{source:"container",slot:n.slot,choices:n.choices,spec:null};let s=WK(e);return s?{source:"footer",slot:HK,choices:s,spec:null}:null}function SV(e,o=Gp(e.type)){return zp(e.type)?o.map(t=>{let r=d_(e.type,t);return r===null?{slot:t,label:t,rung:!1}:{slot:t,label:c(r),rung:!0}}):null}import{useSyncExternalStore as rPe}from"react";var L0=null,F0=new Set;function wV(e){if(L0!==e){L0=e;for(let o of F0)o()}}function aPe(e){return F0.add(e),()=>{F0.delete(e)}}function eyo(){return rPe(aPe,()=>L0,()=>null)}function CV(e){return Dc(e)?.ownerId??null}function vV(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 kV="sf-editor-left-view";function TV(){if(typeof window>"u")return"pages";try{let e=window.localStorage.getItem(kV);return e==="sections"||e==="styles"?e:"pages"}catch{return"pages"}}function PV(e){if(!(typeof window>"u"))try{window.localStorage.setItem(kV,e)}catch{}}function EV(e,o){return e==="styles"&&!o?"sections":e}function _V(e,o){return e?"sections":o}import{copyNode as nPe}from"efficient-easel/data";function OV(e){let o=typeof e?.props?.id=="string"?e.props.id:null,t=ur(),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 AV={usedOn:e=>{let o=ur(),t=o?.sectionOf(e.props.id)??null;return!o||!t?null:o.usedOn(t)??[]},openPage:e=>_u()?.openPage(e),adopt:(e,o)=>ur()?.adopt(e.props.id,o),nodeOf:e=>ur()?.place(e)??null,detach:e=>{let o=_u()?.config;return o?nPe(e,o):e},removed:()=>_u()?.reload()};import{sharedSectionsOf as RPe}from"efficient-easel/screen/lib/shared-sections";import{scrollPreviewToSection as LPe,scrollPreviewToTop as YV}from"efficient-easel/screen/lib/document/preview-dom";var sPe=Iu.mediaFields,iPe=/video|poster|focal|phone/i;function lPe(e){return($(sPe,e)??[]).find(o=>!o.includes("[]")&&!iPe.test(o))??null}function cPe(e){let o=lPe(e.type);return e.type!==Y?o&&jp(e.type,e.props,o)?{fromData:!0}:o:Yu(e.props)?{fromData:!0}:o}var RV={adds:{kind:"block",type:"ImageBlock"},kinds:["image"],pictureOf:cPe,create:(e,o)=>({type:"ImageBlock",props:{...o.nodeDefaults("ImageBlock"),id:o.newNodeId("ImageBlock"),src:e.url}})};var LV={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 ZI}from"react/jsx-runtime";import{useState as dPe}from"react";import{Button as fPe,Tooltip as pPe,toast as FV}from"efficient-shell/ui";import{TemplateIcon as uPe}from"efficient-easel/icons";import{useSettledAction as mPe}from"efficient-easel/easel";import{useScreenDocument as hPe}from"efficient-easel/screen/components/ScreenDocumentContext";function NV({enabled:e,reason:o,onSaved:t}){let{flushSave:r}=hPe(),[a,n]=dPe(!1),s=async()=>{if(!a){n(!0);try{await r()?t():FV.error(c(BV))}catch{FV.error(c(BV))}finally{n(!1)}}},i=mPe({onPress:()=>{s()},busy:a});return ZI(pPe,{side:"bottom",content:e?c("Save this website as a platform template"):c(o),children:ZI("span",{className:"sf-tip-disabled",tabIndex:e?void 0:0,children:ZI(fPe,{variant:"secondary",disabled:!e||i.busy,loading:i.busy,onClick:i.onPress,rightIcon:ZI(uPe,{size:15}),children:c("Save as Template")})})})}var BV="Your last changes did not save, so the template was not made. Try again.";var xPe="Save your page changes first";function DV(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:xPe}:{visible:!0,enabled:!0}:{visible:!1,hiddenReason:"no-site"}:{visible:!1,hiddenReason:"not-operator"}:{visible:!1,hiddenReason:"no-console"}}var MV="storefront-editor:save-as-template";import{phoneKey as gPe,tabletKey as IPe}from"efficient-easel/draw";var yPe=[ga.top,IPe(ga.top),gPe(ga.top)],JI="ContactLocations",HV="ContactRouting",WV="CityPictures",$V="CityMaps",bPe=[{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:$V,label:"City maps",piece:1,desc:"A card per city, grouped by region: address, phone, hours and a map."}];function UV(e=As,o=Rk){let t=K0.find(r=>r.sections.some(a=>a.type===HV))?.key;return!e.includes(JI)||!t?[]:bPe.filter(r=>!(o&&r.key===WV)).map(({key:r,label:a,desc:n,piece:s})=>({key:r,label:a,cat:t,after:HV,desc:n,alias:"locations offices stores branches",insert:i=>{let l=dn(JI);if(!l)return null;let d=cc(),f=Rf(JI,l,s)(i.nodeDefaults,i.newNodeId,d);if(!f||!(o&&r===$V))return f;let u=Rf(JI,l,0)(i.nodeDefaults,m=>`${m}-above`,d),p=Object.fromEntries(yPe.filter(m=>u?.props[m]!==void 0).map(m=>[m,u.props[m]]));return{...f,props:{...f.props,...p}}}}))}function zV(e=As,o){return[...UV(e,o)]}function jV(e,{nodeDefaults:o,newNodeId:t,sectionLabel:r,blockIsOffered:a}){let n=Yl(e);if(n)return n(o,t,cc());if(e_(e)&&a(Y)&&a(xi)){let i=$(pr,e);return{type:Y,props:{...o(Y),id:t(Y),direction:"column",name:`${r(e)} section`,content:[{type:xi,props:{...o(xi),id:t(xi),...i?.headStyle?{headStyle:i.headStyle}:{},...i?.headRowGap?{rowGap:i.headRowGap}:{},...i?.headDescriptionSize?{descriptionSize:i.headDescriptionSize}:{},...Wd(e)!==Wd(xi)?{eyebrowLook:Wd(e)}:{}}},{type:e,props:{...o(e),id:t(e),headPlacement:"own-box",...GV(e,t)}}]}}}if($(Zt,e)?.fixed===!0)return{type:e,props:{...o(e),id:t(e),layout:"boxes"}};let s=GV(e,t);return Object.keys(s).length?{type:e,props:{...o(e),id:t(e),...s}}:null}function GV(e,o){return e==="Cards"?{template:ZE(t=>o(t))}:e===JE?{template:QE(t=>o(t))}:{}}import{useEffect as SPe,useState as wPe}from"react";import{useEaselSession as CPe}from"efficient-easel/screen/lib/session-context";function KV(){let e=CPe().chrome?.products?.list,[o,t]=wPe(null);return SPe(()=>{if(!e)return;let r=!1;return e().then(a=>{r||t(a)}),()=>{r=!0}},[e]),o}function t7({mode:e,open:o}){let{setSelectedHeroId:t,setSelectHandler:r}=n6(),a=e7().tree,n=e,s=n.kind==="ticker"?n.heroId:null,i=fc(l=>{l&&(o({kind:"ticker",heroId:l}),LPe(l))},[o]);return ta(()=>{t(s)},[s,t]),ta(()=>{r(i)},[r,i]),{partRows:(l,{rowClick:d})=>{let f=String(l.props.id);return l.type==="Hero"&&Hv(l.props)&&No(JV,{icon:No(qs,{type:"ticker",size:13}),name:c(Us),onSelect:()=>i(f),selected:s===f,rowProps:{onClick:d(()=>i(f))},words:a})}}}function r7({mode:e,select:o}){let{setSelectedHeroPart:t,setSelectHandler:r}=wI(),a=e7().tree,{appState:n,config:s}=QV(p=>p),i=vPe({data:n.data,config:s});i.current={data:n.data,config:s};let l=e,d=Ps.find(p=>tf[p]===l.kind),f=d&&"nodeId"in l?Es(String(l.nodeId),d):null,u=fc(p=>{let m=wx(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:tf[m.part],nodeId:m.nodeId};o({index:w.index,zone:w.zone},S)},[o]);return ta(()=>{t(f)},[f,t]),ta(()=>{r(u)},[r,u]),{partRows:(p,{rowClick:m})=>{let h=String(p.props.id),I=RH(p);if(I.length===0)return null;let w=b=>{let y=Es(h,b.part);return No(JV,{icon:No(qs,{type:b.part==="media"?"heroMedia":"heroImage",size:13}),name:c(b.label),onSelect:()=>u(y),selected:f===y,rowProps:{onClick:m(()=>u(y))},words:a},y)},[S,...C]=I;return xp(ZV,{children:[w(S),C.length>0&&No(_Pe,{children:C.map(w)})]})}}}function a7(e,o){return{partRows:(t,r)=>xp(ZV,{children:[e.partRows?.(t,r),o.partRows?.(t,r)]})}}function FPe(e){let{adapter:o,capabilities:t,currentSlug:r,siteId:a,docId:n,hasUnsavedEdits:s,bridgeCapabilities:i,notifyParent:l,token:d}=QI(),{hasPreviewLink:f}=t,u=Ge(o7()).preview?.draftLink,p=lV(e.data),m=DV({hasTrustedConsole:!!d,canCreatePlatformTemplate:i.canCreatePlatformTemplate,capabilities:t,siteId:a,hasUnsavedEdits:s}),h=fc(()=>{!a||!r||l(MV,{siteId:a,slug:r})},[l,a,r]),I=tV({pageSlug:r,siteId:a,token:d}),w=o.previewHref?.(r)??I;return{barLead:()=>m.visible&&No(NV,{enabled:m.enabled,reason:m.enabled?"":m.disabledReason,onSaved:h}),barView:()=>f&&r&&No(nV,{liveHref:w,pageId:n??null,draftLink:u}),mainAction:p}}function BPe(e,o){let{capabilities:t,templateId:r,siteId:a,tokenRef:n,navigate:s}=QI(),{hasSiteTheme:i,explainsSiteSettings:l}=t,d=b=>o.setView(b),[f,u]=VV(hl[0].id),[p,m]=VV(!1),{surface:h,setSurface:I}=Rj(),w=()=>{if(i){d("styles"),o.reveal(),YV();return}e.show(p0),e.reveal(),YV()},S={id:"pages",label:c("Pages"),icon:No(TPe,{}),panel:({onHide:b})=>No(wj,{activeSurface:h,onPreviewSurface:I,onNavigate:y=>{I(null),s(r?{kind:"template",id:r,pageSlug:y}:{kind:"page",slug:y,siteId:a??void 0})},onClose:b})},C=[];return!i&&l&&C.push({id:"appearance",label:c("Appearance"),icon:No(EPe,{}),active:e.kind==="website",onSelect:w}),i&&C.push({id:"styles",label:c("Styles"),icon:No(PPe,{}),panel:({onHide:b,notify:y})=>No(f8,{tokenRef:n,siteId:a??void 0,onClose:b,onNotify:y,tab:f,onTabChange:u,revealPageGroup:p,onPageGroupRevealed:()=>m(!1)})}),{railLead:[S],railTrail:C,resolveLeftView:b=>EV(b,i),openSettings:w,openStyles:()=>{u(sM),d("styles")},openPageStyles:i?()=>{u(gl),m(!0),d("styles"),o.reveal()}:l?()=>{e.show(QK),e.reveal()}:void 0}}function NPe(){let{navigate:e,siteId:o,reloadFromServer:t,docId:r}=QI(),a=QV(s=>s.config),n=o7();ta(()=>(cb({openPage:s=>e({kind:"page",slug:s.slug,siteId:o??void 0}),reload:()=>{t()},config:a}),()=>cb(null)),[e,o,t,a]),ta(()=>{let s=ur();if(!s||!r)return;let i=!1;return RPe(n).list().then(l=>{i||s.learn(l)}).catch(()=>{}),()=>{i=!0}},[r,n])}function n7(){let e=Su();return fc(o=>{gN(o,e)},[e])}function DPe(e,o,t,r){let{kind:a,open:n}=e,{selected:s,zoneOf:i}=o;ta(()=>{wV(s?.type==="BookingBox"&&s.props.region==="confirm"?CV(i(String(s.props.id))):null)},[s?.props.id]);let l=_8(e,o),{capabilities:{hasSiteSettings:d}}=QI();NPe();let{chat:f,setChat:u,setSelected:p,setSelectHandler:m}=SI(),h=fc(()=>n(e8),[n]),I=a==="chat";ta(()=>{p(I)},[I,p]),ta(()=>{m(h)},[m,h]);let{setOpenHandler:w}=Yf(),S=fc(()=>n(o8),[n]);ta(()=>{w(S)},[w,S]);let C=a7(t7(e),r7(e)),b=FPe(o),y=BPe(e,r);mj(r);let v=t.device,L=n7();return{...C,...b,...y,hasOwnRows:A=>A.type===qI,ownRows:l.renderLocationTree,sectionPressed:l.sectionPressed,onCopyItem:L,wrap:A=>No(qy.Provider,{value:!0,children:xp(APe.Provider,{value:v,children:[A,No(xV,{})]})}),addPanelRow:A=>d?xp("div",{className:"sf-addside-sitewide",children:[No("span",{className:"sf-addside-sitewide-glyph","aria-hidden":"true",children:No(qs,{type:"chat",size:16})}),xp("button",{type:"button",className:"sf-addside-sitewide-name",onClick:()=>{A(),h()},children:[c("Live chat"),No("span",{className:"sf-addside-sitewide-desc",children:c("A chat bubble on every page")})]}),No(kPe,{checked:f.enabled,onChange:D=>u({enabled:D}),ariaLabel:c("Show the chat bubble on the whole site")})]}):void 0}}var qV=null,B0=new WeakMap;function MPe(e){let o=KO();if(!e||!o)return e;qV!==o&&(qV=o,B0=new WeakMap);let t=B0.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},B0.set(e,t)),t}var HPe={isLockedBlock:(e,o)=>Qg(e,o)||!!(o&&ur()?.heldElsewhere(o.props.id)),duplicateBlocked:UI,nestDepth:(e,o,t)=>o===ou?tu(e,t):0,newSectionNode:jV,canAddTo:(e,o,t,r)=>MPe(bV(e,o,r,t)),blockIsOffered:Z6,slotsOf:SV,resolveOnInsert:!0},WPe=new Proxy(LV,{get:(e,o)=>{let t=Reflect.get(e,o);return typeof t=="string"?c(t):t}}),$Pe={labelAtLevel:(e,o,t)=>c(ty(e,o,t)),descriptions:WPe,categoryLabel:e=>{let o=gV(e);return o===void 0?void 0:c(o)},firstSection:IV,blockRowName:vV,rowName:eI,plainText:sa,Icon:qs,Thumbnail:c8,useProducts:KV,presets:zV()},UPe={desktop:2e3,tablet:800,mobile:390},XV="desktop",zPe={options:Ej,initial:XV,fluid:XV,fluidMin:Jo,widths:UPe,hidesPerView:!0},GPe={read:TV,write:e=>PV(e),forSelection:(e,o)=>_V(e,o)},jPe={first:Tt,last:Qe,firstGroup:Je,lastGroup:ze,isSectionGroup:Oi,sectionGroupZone:m1,panelOf:e=>e===Tt?JK:null,get sharedReach(){return Ks()?VPe:void 0},get shared(){return ur()?AV:void 0},get groupTab(){return Ks()?$K:void 0},get groupBadge(){return Ks()?i0({type:ze})??void 0:void 0},get changeNotice(){return Ks()?UK():void 0},get band(){return Ks()?KPe:void 0},get groupAccepts(){return Ks()?g1:void 0}},KPe={foldable:!0},VPe=e=>i0(e)??OV(e);function YPe(e){return{...a7(t7(e),r7(e)),onCopyItem:n7(),openSettings:()=>e.show(p0)}}function qPe(e,o){H8(e,o),Z8()}var dSo={useOwnerName:Il,useDocumentLabel:fM,useBridges:DPe,useStandaloneBridges:YPe,useDocumentPass:qPe,blockRules:HPe,blockLook:$Pe,devices:zPe,leftView:GPe,pinned:jPe,Canvas:ij,canvasDrag:{media:RV},Inspector:r8};export{mT as a,Ge as b,$i as c,Ax as d,sje as e,Jr as f,Qr as g,To as h,gje as i,$v as j,dVe as k,Cf as l,vf as m,a3 as n,n3 as o,ng as p,fVe as q,Ife as r,s3 as s,pVe as t,M6 as u,HQe as v,JPe as w,ce as x,c as y,ct as z,H6 as A,UQe as B,ji as C,$o as D,SL as E,Rt as F,vLe as G,kL as H,TL as I,bm as J,Sm as K,AL as L,vS as M,kS as N,_Le as O,OLe as P,EF as Q,as as R,Mm as S,kFe as T,Fe as U,_F as V,Xi as W,Tb as X,Eb as Y,iA as Z,_b as _,kY as $,XEe as aa,Mu as ba,hA as ca,Hu as da,TY as ea,PY as fa,e_e as ga,Ga as ha,o_e as ia,Gv as ja,vje as ka,Nx as la,Wn as ma,Fc as na,r1 as oa,a1 as pa,F7 as qa,w0e as ra,Jy as sa,e2 as ta,o2 as ua,oFe as va,$r as wa,F1 as xa,Un as ya,cF as za,dF as Aa,td as Ba,rJ as Ca,NL as Da,jr as Ea,WL as Fa,ga as Ga,ES as Ha,_S as Ia,z4 as Ja,Mb as Ka,dOe as La,fOe as Ma,Va as Na,uOe as Oa,mOe as Pa,Wb as Qa,XA as Ra,Vc as Sa,hOe as Ta,qA as Ua,ZA as Va,xOe as Wa,Kc as Xa,$b as Ya,gOe as Za,IOe as _a,yOe as $a,bOe as ab,EM as bb,ys as cb,_3e as db,O3e as eb,A3e as fb,_M as gb,R3e as hb,Bt as ib,bl as jb,cd as kb,Vr as lb,em as mb,tR as nb,ua as ob,rR as pb,Lo as qb,Bs as rb,Q as sb,Rl as tb,re as ub,ee as vb,se as wb,ie as xb,ge as yb,tKe as zb,Ie as Ab,Fl as Bb,Bl as Cb,mf as Db,hf as Eb,V4 as Fb,sKe as Gb,ade as Hb,Y4 as Ib,cKe as Jb,dKe as Kb,q4 as Lb,sv as Mb,VM as Nb,Mse as Ob,Wd as Pb,YM as Qb,RWe as Rb,Kv as Sb,uKe as Tb,mKe as Ub,hKe as Vb,xKe as Wb,gKe as Xb,IKe as Yb,eWe as Zb,Zh as _b,Md as $b,oWe as ac,tWe as bc,MM as cc,ov as dc,Ise as ec,yse as fc,rWe as gc,bse as hc,aWe as ic,H2 as jc,Z6e as kc,Y2 as lc,J6e as mc,Q6e as nc,eUe as oc,Gx as pc,Xv as qc,Q4 as rc,jx as sc,_Ke as tc,hde as uc,xde as vc,gde as wc,OKe as xc,kt as yc,Hs as zc,Wl as Ac,m8e as Bc,h8e as Cc,x8e as Dc,tH as Ec,xx as Fc,Xie as Gc,lUe as Hc,H5 as Ic,W5 as Jc,$5 as Kc,F8e as Lc,oZ as Mc,gr as Nc,DRe as Oc,MRe as Pc,HRe as Qc,WRe as Rc,xm as Sc,$Re as Tc,Lm as Uc,id as Vc,mF as Wc,hF as Xc,xF as Yc,cFe as Zc,Je as _c,ze as $c,nb as ad,Oi as bd,h1 as cd,Tu as dd,z5 as ed,xVe as fd,gVe as gd,ig as hd,l3 as id,Aw as jd,bd as kd,qr as ld,co as md,Fw as nd,XB as od,ZB as pd,Bw as qd,Sd as rd,kh as sd,_d as td,pC as ud,vr as vd,Ca as wd,ZN as xd,hs as yd,SC as zd,vC as Ad,zd as Bd,ZM as Cd,JM as Dd,cv as Ed,Cs as Fd,i2 as Gd,u2 as Hd,x$e as Id,g$e as Jd,I$e as Kd,Vd as Ld,qt as Md,k$e as Nd,iWe as Od,bWe as Pd,rv as Qd,SWe as Rd,Ss as Sd,Jh as Td,go as Ud,N$e as Vd,y2 as Wd,S2 as Xd,w2 as Yd,fo as Zd,Ye as _d,dg as $d,I3 as ae,DVe as be,fg as ce,y3 as de,UVe as ee,a7e as fe,O3 as ge,Tk as he,A3 as ie,i7e as je,l7e as ke,c7e as le,Pk as me,d7e as ne,f7e as oe,R3 as pe,Xfe as qe,xg as re,Y7e as se,yx as te,lle as ue,Ev as ve,ipe as we,lYe as xe,iW as ye,lW as ze,cYe as Ae,dYe as Be,Hw as Ce,wMe as De,Ww as Ee,oN as Fe,wYe as Ge,bW as He,SW as Ie,UYe as Je,QYe as Ke,e9e as Le,o9e as Me,Vk as Ne,bFe as Oe,ZS as Pe,JS as Qe,QS as Re,_W as Se,Cpe as Te,vpe as Ue,Ig as Ve,a9e as We,n9e as Xe,A9e as Ye,ZW as Ze,R9e as _e,JW as $e,F9e as af,s$ as bf,i$ as cf,rue as df,f$ as ef,X9e as ff,wg as gf,nqe as hf,Of as if,lqe as jf,g$ as kf,dqe as lf,I$ as mf,y$ as nf,uqe as of,Hd as pf,Dse as qf,Cg as rf,C$ as sf,gqe as tf,Iqe as uf,yqe as vf,bqe as wf,Aa as xf,kqe as yf,vg as zf,_qe as Af,Tg as Bf,vWe as Cf,kWe as Df,ws as Ef,TWe as Ff,wR as Gf,GD as Hf,j4e as If,K4e as Jf,Uae as Kf,V4e as Lf,Y4e as Mf,KD as Nf,XC as Of,Vh as Pf,IM as Qf,of as Rf,Ut as Sf,uEe as Tf,Ib as Uf,$c as Vf,xEe as Wf,lY as Xf,V1 as Yf,gEe as Zf,zn as _f,uY as $f,CEe as ag,vEe as bg,Uc as cg,kEe as dg,TEe as eg,vb as fg,uze as gg,mze as hg,hze as ig,xze as jg,Ele as kg,gze as lg,wx as mg,rf as ng,Sze as og,Fv as pg,MH as qg,HH as rg,Av as sg,Ble as tg,wze as ug,Cx as vg,af as wg,kx as xg,Cze as yg,vze as zg,vx as Ag,kze as Bg,Tze as Cg,eb as Dg,dt as Eg,n1 as Fg,B7 as Gg,N7 as Hg,T0e as Ig,D7 as Jg,M7 as Kg,P0e as Lg,E0e as Mg,_0e as Ng,O0e as Og,zH as Pg,nf as Qg,sf as Rg,Px as Sg,jH as Tg,Ol as Ug,KH as Vg,Ex as Wg,_x as Xg,Ox as Yg,VH as Zg,YH as _g,qH as $g,XH as ah,ZH as bh,e4 as ch,o4 as dh,oGe as eh,tGe as fh,rGe as gh,aGe as hh,xr as ih,tce as jh,i4 as kh,ace as lh,c4 as mh,d4 as nh,cx as oh,uce as ph,OGe as qh,x4 as rh,DGe as sh,qGe as th,XGe as uh,d6e as vh,Yd as wh,h6e as xh,x6e as yh,B2 as zh,kJ as Ah,Kr as Bh,rFe as Ch,Lf as Dh,oa as Eh,gU as Fh,$g as Gh,coo as Hh,doo as Ih,boo as Jh,Soo as Kh,Ahe as Lh,AT as Mh,TU as Nh,woo as Oh,EU as Ph,_U as Qh,FU as Rh,Mhe as Sh,$he as Th,joo as Uh,ato as Vh,nto as Wh,Mf as Xh,sto as Yh,ito as Zh,FT as _h,lto as $h,Xd as ai,wv as bi,mx as ci,Nto as di,Pl as ei,PUe as fi,EUe as gi,xH as hi,wxe as ii,Ez as ji,Wf as ki,eao as li,tao as mi,GT as ni,Uz as oi,_g as pi,BZe as qi,MZe as ri,n6 as si,rT as ti,s6 as ui,i6 as vi,$Ze as wi,l6 as xi,Ag as yi,qZe as zi,d6 as Ai,u6 as Bi,f6 as Ci,$m as Di,ya as Ei,Ro as Fi,pt as Gi,fd as Hi,Ji as Ii,BFe as Ji,NFe as Ki,MFe as Li,HFe as Mi,WFe as Ni,$Fe as Oi,UFe as Pi,GFe as Qi,Qi as Ri,ss as Si,DF as Ti,aw as Ui,sQ as Vi,MF as Wi,sw as Xi,rA as Yi,aA as Zi,jEe as _i,$u as $i,Uu as aj,jc as bj,AA as cj,f_e as dj,p_e as ej,DA as fj,Fb as gj,u9 as hj,QA as ij,POe as jj,FOe as kj,BOe as lj,W9 as mj,yt as nj,qc as oj,Qb as pj,eS as qj,v1e as rj,IR as sj,k1e as tj,T1e as uj,P1e as vj,vR as wj,TR as xj,ha as yj,FR as zj,mS as Aj,GR as Bj,JAe as Cj,KR as Dj,XR as Ej,ZR as Fj,JR as Gj,QR as Hj,eL as Ij,oL as Jj,xS as Kj,zX as Lj,GX as Mj,Qc as Nj,gS as Oj,rL as Pj,bRe as Qj,KX as Rj,SRe as Sj,wRe as Tj,CRe as Uj,nL as Vj,PRe as Wj,qX as Xj,ERe as Yj,_Re as Zj,ZX as _j,IS as $j,QX as ak,LRe as bk,eZ as ck,FRe as dk,SS as ek,qRe as fk,dL as gk,nZ as hk,ZRe as ik,ed as jk,yZ as kk,gLe as lk,fJ as mk,KLe as nk,uJ as ok,VLe as pk,YLe as qk,qLe as rk,qi as sk,Nm as tk,hFe as uk,xFe as vk,gFe as wk,iQ as xk,lQ as yk,VFe as zk,pQ as Ak,uQ as Bk,YFe as Ck,qFe as Dk,XFe as Ek,ZFe as Fk,JFe as Gk,nBe as Hk,sBe as Ik,iBe as Jk,lBe as Kk,cBe as Lk,dBe as Mk,fBe as Nk,pBe as Ok,uBe as Pk,mBe as Qk,hBe as Rk,HF as Sk,xBe as Tk,gBe as Uk,rn as Vk,wQ as Wk,cs as Xk,tDe as Yk,rDe as Zk,aDe as _k,nDe as $k,sDe as al,iDe as bl,lDe as cl,pDe as dl,uDe as el,Pee as fl,mDe as gl,hDe as hl,xDe as il,gDe as jl,IDe as kl,yDe as ll,bDe as ml,SDe as nl,Aee as ol,Cw as pl,wDe as ql,ol as rl,St as sl,br as tl,bB as ul,SB as vl,rl as wl,CDe as xl,roe as yl,vDe as zl,kDe as Al,TDe as Bl,PDe as Cl,EDe as Dl,_De as El,ODe as Fl,AB as Gl,ADe as Hl,Toe as Il,RDe as Jl,LDe as Kl,FB as Ll,FDe as Ml,BDe as Nl,NDe as Ol,DDe as Pl,MDe as Ql,WDe as Rl,_w as Sl,$De as Tl,NB as Ul,UDe as Vl,zDe as Wl,il as Xl,MB as Yl,GDe as Zl,jDe as _l,KDe as $l,VDe as am,Qno as bm,eso as cm,oso as dm,eI as em,mG as fm,oP as gm,wso as hm,Cso as im,pye as jm,uye as km,oio as lm,tio as mm,rio as nm,aio as om,sI as pm,iI as qm,Eio as rm,BG as sm,MG as tm,HG as um,WG as vm,yco as wm,yI as xm,Cj as ym,vj as zm,Tj as Am,bI as Bm,Zco as Cm,Jco as Dm,SI as Em,_Se as Fm,ldo as Gm,Yf as Hm,pdo as Im,Rj as Jm,_i as Km,R7 as Lm,y0e as Mm,b0e as Nm,_mo as Om,Omo as Pm,Amo as Qm,C4 as Rm,hdo as Sm,wI as Tm,c0e as Um,Qoe as Vm,ete as Wm,ote as Xm,aN as Ym,LMe as Zm,rC as _m,hD as $m,s4e as an,zD as bn,n5e as cn,s5e as dn,zh as en,Une as fn,zne as gn,n3e as hn,t0e as in,cse as jn,NM as kn,V3e as ln,Y3e as mn,xse as nn,q3e as on,X3e as pn,Xh as qn,Z3e as rn,kl as sn,k2 as tn,T2 as un,D2 as vn,K6e as wn,oH as xn,aUe as yn,rH as zn,_v as An,fle as Bn,hle as Cn,HUe as Dn,RXe as En,jXe as Fn,qXe as Gn,j$ as Hn,QXe as In,eZe as Jn,pZe as Kn,uZe as Ln,TZe as Mn,OZe as Nn,Af as On,kme as Pn,PJe as Qn,BJe as Rn,JJe as Sn,QJe as Tn,bQe as Un,O6 as Vn,s0e as Wn,Jfo as Xn,$j as Yn,Qe as Zn,$I as _n,Lr as $n,m8 as ao,lp as bo,h8 as co,x8 as do,Fxo as eo,Bxo as fo,J8 as go,O0 as ho,Q8 as io,bV as jo,eyo as ko,dSo as lo};