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.
- package/CHANGELOG.md +9 -0
- package/dist/chunks/{EditorPreviewCheckout-3AKBPV3S.js → EditorPreviewCheckout-HGXPPOPY.js} +1 -1
- package/dist/chunks/{SiteEditorProvider-LBBAOVOX.js → SiteEditorProvider-R3ZNQPAI.js} +1 -1
- package/dist/chunks/{chunk-NLHCY45M.js → chunk-7OV26TMN.js} +1 -1
- package/dist/chunks/{chunk-4SBIX3UP.js → chunk-NYZMVYQ4.js} +1 -1
- package/dist/chunks/chunk-PNXEY4EH.js +96 -0
- package/dist/chunks/chunk-TAV4GVJC.js +342 -0
- package/dist/chunks/{fitment-data-IVQMG7AL.js → fitment-data-QP4XEFXC.js} +1 -1
- package/dist/editor.css +1 -1
- package/dist/index.js +74 -56
- package/dist/render/built-with.json +1 -1
- package/dist/words.d.ts +3 -0
- package/dist/words.js +1 -1
- package/package.json +4 -4
- package/dist/chunks/chunk-QCSZZWC5.js +0 -96
- package/dist/chunks/chunk-RWUW3WUD.js +0 -342
- /package/dist/chunks/{chunk-SPAC3RLP.js → chunk-IJC4EEZC.js} +0 -0
- /package/dist/chunks/{chunk-RWUW3WUD.js.LEGAL.txt → chunk-TAV4GVJC.js.LEGAL.txt} +0 -0
|
@@ -1,342 +0,0 @@
|
|
|
1
|
-
import{$ as wp,$a as mE,$c as Fp,$d as wy,$h as gO,A as ni,Ab as PE,Ac as uy,Ad as Sc,Ae as ky,Af as k_,Ag as Dn,Ah as _c,Ai as PO,Ba as q,Bb as pi,Bc as DE,Be as n_,Bf as Vp,C as mc,Ca as kp,Cb as sa,Cd as Tt,Ce as s_,Cf as T_,Cg as Z_,D as yp,Db as _p,Dc as ME,Dd as ut,De as zp,Df as P_,Dg as J_,E as Br,Ed as io,Ee as i_,Ef as E_,Ei as EO,F as si,Fa as Mt,Fc as my,Fd as Dr,Fe as Ty,Ff as Yp,G as so,Ga as cr,Gd as Mr,Gf as __,Gi as _O,H as ho,Ha as di,Hd as fr,He as l_,Hf as qp,I as ii,Ia as ZI,Ib as EE,Id as hi,Ie as Gp,If as Ay,J as bp,Ja as aE,Jd as VE,Je as c_,Jf as O_,K as $,Ka as JI,Kd as Bp,Ke as Py,Kf as Ry,Ki as fe,L as He,La as QI,Lb as Op,Ld as YE,Le as d_,Lf as A_,Lh as iO,M as M0,Mc as HE,Me as f_,Mf as Xp,Mh as lO,N as H0,Nb as Ap,Nc as WE,Ne as jp,Nf as nt,Nh as au,Oc as hy,Oe as gi,Of as Ha,Oh as cO,Oi as Oc,P as W0,Pa as ey,Pd as Ln,Pe as Me,Pf as R_,Pg as Q_,Ph as dO,Pi as RO,Q as Sp,Qa as nE,Qb as _E,Qd as qE,Qe as Ee,Qf as Zp,Qg as Ny,Qh as fO,R as $0,Ra as sE,Rb as OE,Rd as Np,Re as p_,Rf as Ht,Rg as Qp,Rh as pO,Ri as gu,S as En,Sa as uo,Sd as xi,Se as Ii,Sf as wi,Sg as eO,Si as LO,T as U0,Ta as iE,Tb as AE,Tc as j,Td as wc,Te as u_,Tg as Dy,Th as uO,Ti as FO,U as z0,Ua as Tp,Uc as ne,Ud as Cc,Ue as Kp,Uf as L_,Ug as oO,Uh as mO,V as hc,Va as lE,Vb as iy,Vc as xy,Vd as Sy,Ve as Bn,Vf as F_,Vg as tO,Vh as Ti,W as qI,Wa as cE,Wc as N,We as m_,Wf as Ly,Wg as eu,Wh as hO,X as De,Xa as dE,Xc as Zo,Xd as XE,Xg as rO,Xh as nu,Y,Ya as fE,Yc as ia,Yd as ZE,Yg as ca,Yh as xO,Z as G0,Za as pE,Zc as $E,Zd as JE,Ze as Ma,Zf as B_,_a as uE,_c as U,_e as Ey,_f as Fy,_g as aO,a as ai,aa as Na,ab as hE,ad as pt,ae as QE,ai as Wa,b as be,ba as li,bb as Pp,bd as UE,bh as My,bi as IO,c as _o,ca as j0,cb as Ep,cc as ly,cd as dr,ce as Cy,ch as da,ci as yO,d as ra,da as aa,db as xE,dd as Nr,dg as N_,dh as Ci,di as bO,ea as XI,eb as gE,ec as RE,ed as gy,ef as h_,eg as D_,eh as xt,f as kt,fa as ci,fd as Da,ff as x_,fg as M_,fh as ke,fi as su,g as uc,ga as K0,gb as IE,gd as la,ge as Dp,gf as _y,gg as H_,gh as ou,gi as $a,h as A0,ha as V0,hb as yE,hd as zE,he as Mp,hf as vo,hh as nO,hi as iu,i as gp,ib as oy,ie as e_,if as g_,ig as Nn,ih as Tc,j as R0,ja as xc,jb as bE,jd as Ze,je as Hp,jf as I_,jg as W_,jh as Pt,k as L0,ka as Y0,kb as SE,kd as Rn,ke as Wp,kf as yi,kg as $_,kh as Pc,la as q0,lb as ty,lc as An,ld as yc,le as o_,lf as ht,lh as tu,li as SO,ma as X0,mb as fi,md as ui,me as t_,mg as Jp,mh as vi,mi as lu,n as F0,na as _n,nb as On,nc as cy,nd as GE,ne as $p,nf as y_,ng as U_,nh as Ec,ni as Pi,oa as Z0,ob as ry,oc as dy,od as Iy,oe as Up,of as bi,og as z_,oh as sO,oi as wO,pb as ay,pd as mi,pe as Fn,pf as Si,pg as G_,ph as ki,pi as cu,qa as J0,qb as ny,qc as Rp,qd as yy,qe as r_,qg as j_,qh as ru,qi as CO,r as B0,ra as Cp,rb as wE,rc as fy,rg as K_,ri as Ua,sa as Q0,sb as CE,sc as LE,sf as b_,sg as V_,si as vO,t as eo,ta as vp,tb as vE,tf as S_,ti as kO,u as N0,ua as eE,ub as sy,ud as jE,ue as a_,uf as w_,ug as Hr,ui as TO,v as Ip,va as oE,vb as kE,vc as py,vd as KE,vf as kc,vg as Y_,vi as Wt,w as D0,wa as tE,wb as Xo,wc as Lp,wf as C_,wg as q_,wi as du,xa as gc,xb as TE,xc as FE,xd as by,xe as mt,xf as v_,xg as By,xi as Jo,y as Ue,ya as na,yc as BE,ye as vc,yf as Oy,yg as X_,yi as me,z as Oo,za as rE,zb as Ic,zc as NE,zd as bc,ze as vy,zg as Wr}from"./chunk-QCSZZWC5.js";import{a as xo,d as OO,e as fu,f as pu,g as AO,j as uu,k as $t,l as mu,m as hu,n as xu,r as Hy}from"./chunk-SPAC3RLP.js";var NO="en",Iu=null,DO=NO,MO=null;function PPe(e,o,t){Iu=e??null,DO=o||NO,MO=t??null}function ce(){return MO}function Wy(){return DO}function HO(){return Iu}function BO(e,o){return o?e.replace(/\{([A-Za-z][A-Za-z0-9_]*)\}/g,(t,r)=>He(o,r)?String($(o,r)):t):e}function c(e,o){let t=Iu?$(Iu,e):void 0;if(typeof t=="function"){try{let r=be(t(o??{}));if(r)return r}catch{}return BO(e,o)}return BO(be(t)??e,o)}function st(e,o,t,r){return c(t===1?e:o,{...r,n:t})}import{jsx as $y,Fragment as QV,jsxs as e7}from"react/jsx-runtime";import{createContext as o7,useContext as t7}from"react";var r7={mirrorHostStyles:!0,css:null,fontHrefs:[]},WO=o7(r7);function APe({value:e,children:o}){return $y(WO.Provider,{value:e,children:o})}function Ac(){return t7(WO)}function $O(){let{css:e,fontHrefs:o}=Ac();return e7(QV,{children:[o.map(t=>$y("link",{rel:"stylesheet",href:t},t)),e?$y("style",{"data-sf-canvas-css":"",children:e}):null]})}import{jsx as a7}from"react/jsx-runtime";import{createContext as n7,useContext as s7}from"react";var UO=n7(void 0);function BPe({metadata:e,children:o}){return a7(UO.Provider,{value:e,children:o})}var zO=()=>s7(UO);import{jsx as Bo,Fragment as FV,jsxs as mp}from"react/jsx-runtime";import{useCallback as cc,useEffect as oa,useRef as QTe,useState as OV}from"react";import{SettingsSwitch as ePe}from"efficient-easel/panel";import{PagesIcon as oPe,StylesIcon as tPe}from"efficient-easel/rail";import{PaletteIcon as rPe}from"efficient-shell/icons/efficient";import{Subtree as aPe,TreeRow as BV}from"efficient-easel/tree";import{useEasel as NV}from"efficient-easel/easel";import{toItemSelector as nPe}from"efficient-easel/node-ops";import{useEaselStrings as DV}from"efficient-easel/strings";import{createContext as i7,useContext as l7}from"react";var Uy=i7(!1),MPe=()=>l7(Uy);import{useMemo as c7,useRef as d7}from"react";import{useEaselApi as f7}from"efficient-easel/easel";import{useSectionOps as p7}from"efficient-easel/screen/lib/document/use-section-ops";function yu(){let e=f7(),o=p7(),t=d7(o);return t.current=o,c7(()=>({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 qoe}from"efficient-easel/draw";import{insertAt as Xoe,moveTo as Zoe,removeAt as Joe}from"efficient-easel/fields";import{useSyncExternalStore as Uoe}from"react";import{isNodeList as GO}from"efficient-easel/data";var jO="Flex";function Ei(e,o){return mt(e)?typeof e?.[kt]=="string"?zy(o?.[kt]):"":zy(e?.[kt])}var zy=e=>typeof e=="string"?e.trim():"",u7=e=>e.type===Oo&&Array.isArray(e.props?.[Cy])&&e.props[Cy].some(o=>zy(o?.[kt])!==""),m7=new Intl.NumberFormat("en-US");function h7(e){return/^\d+$/.test(e)?m7.format(Number(e)):e}function YPe(e,o){let t=o?o.find(r=>r.key===e)?.value:B0(uc).find(r=>r.key===e)?.value;return t===void 0?null:h7(t)}var x7={[kt]:"any"};function Gy(e,o=!1){let t=e.props;if(!t)return{node:e,names:!1};let r=e.type==="Text"&&(Ei(t)!==""||o&&Ei(t,x7)!==""),a=o||u7(e),n=ho(e,i=>so(i,l=>{let d=Gy(l,a);return d.names&&(r=!0),d.node})).props;if(e.type!==jO)return{node:n===t?e:{...e,props:n},names:r};let s=eo(n);if(r&&!s&&(n={...n,[_o]:uc}),!r&&s===uc){let{[_o]:i,...l}=n;n=l}return{node:n===t?e:{...e,props:n},names:!1}}function KO(e,o,t){for(let r of e){if(r?.props?.id===o)return t;for(let a of si(r??{})){let n=KO(a,o,r.type===jO?r:t);if(n!==void 0)return n}}}function qPe(e,o){if(!GO(e))return!0;let t=KO(e,o,null);if(t===void 0)return!0;if(t===null)return!1;let r=eo(t.props);return!r||r===uc}function VO(e){let o=e?.content;if(!GO(o))return e;let t=o.map(r=>Gy(r));return t.every((r,a)=>r.node===o[a])?e:{...e,content:t.map(r=>r.node)}}function YO(e){return Gy(e).node}import{jsx as A,jsxs as ya,Fragment as Sa}from"react/jsx-runtime";var Mn=["image","video"],Hn={image:"imageFocal",image2:"imageFocal2"},Rc={HeroSingle:"image",HeroSlide:"video"};function XO(e,o){return Mn.includes(o)?o:Rc[e]}var ZO=["one","side","stacked"],g7="one",ZPe={one:"One",side:"Side by side",stacked:"Stacked"};function bu(e){return ZO.includes(e)?e:g7}function qO(e){return e==="one"?1:2}function jy(e,o){if(ZO.includes(e))return e;let t=bu(o);return t==="side"?"stacked":t}function Lc(e){let o=bu(e.mediaLayout);return Math.max(qO(o),qO(jy(e.mediaLayoutPhone,o)))}import{cloneElement as iw,createContext as eQ,useContext as DF,useEffect as oQ,useId as MF,useRef as dd,useState as fd}from"react";import{useEasel as Km,useSelectedHost as ss}from"efficient-easel/easel";import{PIN_LENGTH as zm,toDateKey as XFe,fromDateKey as ZFe}from"efficient-shell/format";function Vy(e){return!!e&&typeof e=="object"&&!Array.isArray(e)&&typeof e.src=="string"}function it(e){return typeof e=="string"?e:Vy(e)?e.src:""}function JO(e,o,t){return Ky(e,o.split("."),t)}function Ky(e,o,t){if(o.length===0)return t(e);let[r,...a]=o,n=r.endsWith("[]"),s=n?r.slice(0,-2):r;if(!e||typeof e!="object"||Array.isArray(e))return e;let i=e;if(!(s in i))return e;let l=i[s];if(n){if(!Array.isArray(l))return e;let f=!1,u=l.map(p=>{let m=Ky(p,a,t);return m!==p&&(f=!0),m});return f?{...i,[s]:u}:e}let d=Ky(l,a,t);return d===l?e:{...i,[s]:d}}var I7=["upload","youtube"],y7="upload",o0e={upload:"Upload",youtube:"YouTube"},b7=["background","click"],S7="background",t0e={background:"Background",click:"Click to play"};function e1(e){return I7.includes(e)?e:y7}function o1(e){return b7.includes(e)?e:S7}var QO=/^[A-Za-z0-9_-]{11}$/,w7=/^(?:www\.|m\.|music\.)?(?:youtube\.com|youtube-nocookie\.com|youtu\.be)$/;function t1(e){let o=typeof e=="string"?e.trim():"";if(!o)return null;if(QO.test(o))return o;let t;try{t=new URL(/^[a-z]+:\/\//i.test(o)?o:`https://${o}`)}catch{return null}if(t.protocol!=="https:"&&t.protocol!=="http:"||!w7.test(t.hostname))return null;let r=t.pathname.split("/").filter(Boolean),a=t.hostname.endsWith("youtu.be")?r[0]:r[0]==="watch"?t.searchParams.get("v"):r[0]==="embed"||r[0]==="shorts"||r[0]==="live"||r[0]==="v"?r[1]:null;return a&&QO.test(a)?a:null}function Yy(e,o){let t=o==="click"?"autoplay=1&playsinline=1&rel=0":`autoplay=1&mute=1&loop=1&playlist=${e}&controls=0&playsinline=1&rel=0&disablekb=1`;return`https://www.youtube-nocookie.com/embed/${e}?${t}`}function r1(e){return`https://i.ytimg.com/vi/${e}/maxresdefault.jpg`}function a1(e){return`https://i.ytimg.com/vi/${e}/hqdefault.jpg`}var qy="Play video";var Xy={frame:"Video frame",image:"Image"},r0e={any:[{field:"loadingShows",is:"image"},{all:[{not:{field:"loadingShows",set:!0}},{field:"poster",set:!0}]}]};function Fc(e){let o=e.loadingShows;return o==="image"?"image":o!=null&&o!==""?"frame":it(e.poster)?"image":"frame"}function a0e(e,o="desktop"){let[t,r]=o==="phone"?[e.posterPhone,e.videoFramePhone]:[e.poster,e.videoFrame],[a,n]=Fc(e)==="image"?[t,r]:[r,t];return it(a)||it(n)||void 0}function n1(e){if(it(e.mediaVideo)){if(Fc(e)==="frame")return it(e.videoFrame)?void 0:it(e.poster)?"frame-missing-image":"frame-missing-surface";if(!it(e.poster))return it(e.videoFrame)?"image-missing-frame":"image-missing-surface"}}var Su="videoFrames",Zy="videoFramesNotOwn";function s1(e,o,t){let r=it(e.mediaVideo);if(!r||!o||Fc(e)!=="frame"||it(e.videoFrame))return;let a=o[r],n=!!it(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 C7(e,o){let t=it(e),r=t&&o?o[t]:void 0;return r?.state==="ready"&&r.frame?r.frame:void 0}function n0e(e,o,t){let r=t?.[Zy];if(!(Array.isArray(r)&&r.includes(e)))return C7(o,t?.[Su])}import{useSyncExternalStore as v7}from"react";function wu(){let e=new Map,o=new Set,t=r=>(o.add(r),()=>{o.delete(r)});return{get:r=>e.get(r),has:r=>e.has(r),set(r,a){if(!(e.has(r)&&e.get(r)===a)){e.set(r,a);for(let n of o)n()}},use(r){let a=()=>r?e.get(r):void 0;return v7(t,a,a)}}}var Je="SiteHeader",ze="SiteFooter",Jy="sections",Cu=[Je,ze],_i=e=>e===Je||e===ze,i1=e=>`${e}:${Jy}`;function l1(e,o,t=[]){return{type:e,props:{id:o,[Jy]:t}}}var k7=new Set(["Footer",Je,ze]);function Oi(e){let o=new Set,t=!1,r=e.filter(a=>{let n=a?.type??"";return n==="Header"?(t=!0,!1):k7.has(n)?o.has(n)?(t=!0,!1):(o.add(n),!0):!0});return t?r:e}function vu(e,o){return e.some(t=>t?.type===o.type)?e:o.type===Je?[o,...e]:[...e,o]}var c1={[Je]:{max:3,takes:["Flex","Ticker"]},[ze]:{max:6,takes:["Flex","Prose","Logos","Divider"]}};function d1(e,o,t){if(!_i(e))return!0;let r=c1[e];return t<r.max&&r.takes.includes(o)}function f1(e,o){let t=o,r=t?.props?.id;if(r==null)return null;let a=e?.content;if(!Array.isArray(a))return null;for(let n of a){if(!_i(n?.type))continue;let s=n.props?.[Jy];if(!Array.isArray(s)||!s.some(l=>l?.props?.id===r))continue;let i=c1[n.type];return i.takes.includes(t?.type??"")?s.length>=i.max?{group:n.type,why:"full"}:null:{group:n.type,why:"type"}}return null}import{locateNode as T7}from"efficient-easel/draw";function Bc(e){if(!e)return null;let o=e.lastIndexOf(":");return o>0?{ownerId:e.slice(0,o),slot:e.slice(o+1)}:null}function ku(e,o,t){let r=Bc(t?.zone),a=r?T7(e,o,r.ownerId):null;return a&&r?{...a,slot:r.slot}:null}import{isNode as P7}from"efficient-easel/data";var p1="Footer",u1=[Je,p1,ze],Wn=e=>{let o=e?.content;return Array.isArray(o)?o:[]},za=e=>{let o=e?.zones;return o&&typeof o=="object"&&!Array.isArray(o)?o:null},Ai=e=>{let o=e?.props?.id;return typeof o=="string"?o:void 0},m1=e=>Bc(e)?.ownerId??"";function h1(e){let o=Oi(Wn(e)),t=o.some(r=>r?.type===ze);return o.filter(r=>r?.type===Je||r?.type===ze||r?.type===p1&&!t)}function Tu(e,o){let t=new Set,r=a=>{if(Array.isArray(a)){for(let n of a)r(n);return}if(!(!a||typeof a!="object")){if(P7(a)){let n=Ai(a);n&&t.add(n)}for(let n of Object.values(a))r(n)}};if(r(e),o){let a=!0,n=new Set;for(;a;){a=!1;for(let[s,i]of Object.entries(o))n.has(s)||!t.has(m1(s))||(n.add(s),r(i),a=!0)}}return t}function x1(e,o){let t=Wn(e).filter(r=>{let a=Ai(r);return typeof r?.type=="string"&&u1.includes(r.type)||a!==void 0&&o(a)});return t.length?Tu(t,za(e)):new Set}function Qy(e,o){let t={},r={};for(let[a,n]of Object.entries(e??{}))(o.has(m1(a))?t:r)[a]=n;return{owned:t,rest:r}}function g1(e,o){if(!o)return e;let t=h1(o);if(!t.length)return e;let r=t.filter(i=>i.type===Je),a=t.filter(i=>i.type!==Je),n={...e,content:[...r,...Wn(e),...a]},{owned:s}=Qy(za(o),Tu(t,za(o)));return Object.keys(s).length&&(n.zones={...za(e)??{},...s}),n}function eb(e,o){if(!o)return{page:e,chrome:null};let t=h1(o),r=new Set(t.map(Ai).filter(v=>!!v)),a=[],n=[];for(let v of Wn(e)){let b=Ai(v);b&&r.has(b)||_i(v?.type)?n.push(v):a.push(v)}let s=new Map(n.map(v=>[Ai(v),v])),i=new Set,l=Oi(Wn(o)).flatMap(v=>{let b=Ai(v);if(!b||!r.has(b))return[v];let y=s.get(b);return y?(i.add(y),[y]):[]});for(let v of n)i.has(v)||l.some(b=>b?.type===v.type)||(l=v.type===Je?[v,...l]:[...l,v]);l=Oi(l);let d=l.length===Wn(o).length&&l.every((v,b)=>v===Wn(o)[b]),f=za(e),u=Tu(l,f),{owned:p,rest:m}=Qy(f,u),h=Qy(za(o),Tu(t,za(o))).owned,I={...o,content:d?o.content:[...l]},w=za(o);if(w||Object.keys(p).length){let v={};for(let[b,y]of Object.entries(w??{}))b in h?b in p&&(v[b]=p[b]):v[b]=y;for(let[b,y]of Object.entries(p))b in v||(v[b]=y);I.zones=v,w&&E7(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 E7(e,o){let t=Object.keys(e),r=Object.keys(o);return t.length===r.length&&t.every((a,n)=>a===r[n]&&e[a]===o[a])}function I1(e,o){return t=>e(t)||t!==void 0&&u1.includes(t)&&o()}var y1=null;function ob(e){y1=e}function pr(){return y1}var b1=null;function tb(e){b1=e}function Pu(){return b1}var rb=wu();function S1(e,o,t){if(!o)return;let r={...rb.get(e)};for(let[a,n]of Object.entries(o))r[a]={...n,noted:t};rb.set(e,r)}function w1(e,o){S1(e,o,"load")}function C1(e,o){S1(e,o,"save")}function Eu(e){return rb.use(e)}var ab=e=>!!pr()?.sectionOf(e);function v1(e,o=ab){return x1(e,o)}function k1(e,o,t,r=ab){if(t)return e&&v1(o,r).has(e)?void 0:t}function T1(e,o,t=ab){if(!e)return{};let r=[...v1(o,t)];return r.length?{[Su]:e,[Zy]:r}:{[Su]:e}}import{ScreenDocumentContext as tQ}from"efficient-easel/screen/components/ScreenDocumentContext";import{readHidable as tn,hidableText as rQ}from"efficient-easel/draw";import{FOLD_FIELD_MARKER as HF,LINK_FIELD_MARKER as aQ,MEDIA_FIELD_MARKER as nQ,SCAFFOLD_FIELD_MARKER as sQ,TEXT_FIELD_MARKER as ba,foldMetaOf as Sr,textFieldIdentifier as nBe}from"efficient-easel/draw";import{jsx as B1}from"react/jsx-runtime";import{useCallback as L7}from"react";import{useEasel as F7}from"efficient-easel/easel";import{SettingsAction as B7}from"efficient-easel/panel";import{isLengthUnit as A7}from"efficient-easel/screen/lib/content/length-units";import{CORNER_SIDES as _u,hasCornerSubset as Nc,normalizeCornerSides as $r}from"efficient-easel/screen/lib/content/style-keys";import{isLengthUnit as _7}from"efficient-easel/screen/lib/content/length-units";var Dc={kind:"radius",unitKey:"sectionCornersUnit"};function nb(e){return typeof e=="number"&&Number.isFinite(e)}function P1(e,o,t){if(!nb(e))return;let r=_7(t)&&t!=="px"?wi(e,t):wi(Ht(e));if(Object.keys(r).length===0)return;let a=r[sb];if(typeof a!="string")return r;let n=Nc(o)?$n(a,$r(o)??[]):a;return{...r,[O7]:n}}var O7="--sf-section-radius",sb="--sf-card-radius";function $n(e,o){return _u.map(t=>o.includes(t)?e:"0").join(" ")}var E1=[{value:"tl",label:"Top left"},{value:"tr",label:"Top right"},{value:"bl",label:"Bottom left"},{value:"br",label:"Bottom right"}];var Mc={kind:"radius",unitKey:"cardCornersUnit"},R7="--sf-card-box-radius";function ib(e){return typeof e=="number"&&Number.isFinite(e)}function _1(e,o,t){if(!ib(e))return;let r=(A7(t)&&t!=="px"?wi(e,t):wi(Ht(e)))[sb];if(typeof r!="string")return;let a=Nc(o)?$n(r,$r(o)??[]):r;return{[R7]:a}}function O1(e,o){let t=e.find(s=>s?.props?.id===o);if(!t)return[...e];let r=t.props?.cardCorners,a=t.props?.cardCornerSides,n=t.props?.[Mc.unitKey];return e.map(s=>s?.props?.id===o?s:{...s,props:{...s.props,cardCorners:r,cardCornerSides:a,[Mc.unitKey]:n}})}function A1(e,o,t){let r=ku(e,o,t),a=r?.slot??"",n=r&&Array.isArray(r.item.props[a])?r.item.props[a]:[],s=t?.index??-1,i=s>=0?n[s]:void 0,l=i?.props?.id?String(i.props.id):"",d=Math.max(n.length-1,0);return!r||!l?{can:!1,reason:"unreachable",others:0}:n.length<=1?{can:!1,reason:"alone",others:d}:ib(i?.props?.cardCorners)?{can:!0,others:d,zone:r.zone,index:r.index,data:{...r.item,props:{...r.item.props,[a]:O1(n,l)}}}:{can:!1,reason:"unset",others:d}}function R1(e){return e.can?st("Gives the other card this card's Corners.","Gives the other {n} cards this card's Corners.",e.others):e.reason==="alone"?c("This is the only card in the section."):e.reason==="unset"?c("Set this card's corners first."):c("This card is not in a section that can share corners.")}function L1(e){return st("Applied to {n} card","Applied to {n} cards",e)}function F1(e,o){e.can&&o(e.zone,e.index,e.data)}import{useSectionOps as N7}from"efficient-easel/screen/lib/document/use-section-ops";var D7="apply-corners-to-siblings",M7="Apply to all cards";function H7({plan:e,onPress:o}){return B1(B7,{id:D7,label:c(M7),note:R1(e),disabled:!e.can,doneLabel:L1(e.others),onPress:o})}function N1(){let{appState:e,config:o}=F7(n=>n),t=N7(),r=A1(o,e.data.content??[],e.ui.itemSelector),a=L7(()=>{F1(r,t.replaceComponent)},[r,t]);return B1(H7,{plan:r,onPress:a})}import{isShown as j1,lazyShowWhenContext as Z7}from"efficient-shell/format";var Ut="product",Ou="recordType",D1={key:Ut,label:"Product",fields:[]},W7=/^[a-z][a-z0-9]*(-[a-z0-9]+)*$/,$7=/^[a-z][A-Za-z0-9]*$/,U7=["text","date","images"],lb=new Map,M1=0;function z7(e){if(typeof e.key!="string"||!W7.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"||!$7.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(!U7.includes(t.kind))throw new Error(`The field ${t.key} of ${e.key} has no kind ${JSON.stringify(t.kind)}.`);o.add(t.key)}return{key:e.key,label:e.label.trim(),fields:e.fields.map(t=>({...t}))}}function U0e(e){let o=e.map(z7);for(let t of o)lb.set(t.key,t);o.length&&(M1+=1)}function cb(){return[D1,...lb.values()]}function db(e){return e===Ut?D1:lb.get(e)??null}function fb(){return M1}function Hc(e){let o=e?.[Ou];return typeof o!="string"?Ut:o.trim()||Ut}function pb(e){return Hc(e)===Ut}function ub(e,o){let t=db(e)?.fields??[];return o?t.filter(r=>o.includes(r.kind)):t}var Au="product",H1="tyre",G7=[Au,H1];function j0e(e){return G7.includes(e)}var j7="productType",K7={[Au]:"alloy-wheel",[H1]:"tyre"},V7=["alloy-wheel","tyre"];function W1(e,o){return pb(o)?$1(o)??K7[e]??null:null}function $1(e){if(!pb(e))return null;let o=e?.[j7];return typeof o=="string"&&V7.includes(o)?o:null}function K0e(e){let o=e?.root;return $1(o?.props)}var mb="Main Pages",Y7="Dynamic Pages",hb="dynamic",q7="dynamic";function Un(e){return e.kind===q7}var xb="lightbox";function U1(e){return e.kind===xb}function z1(e){let o=[],t=[];for(let r of e){if(Un(r)){t.push(r);continue}let a=r.groupKey??(r.group?`folder:${r.group}`:"top"),n=o[o.length-1];n&&n.key===a?n.rows.push(r):o.push({key:a,label:r.group??mb,rows:[r]})}if(t.length){let r=o.findIndex(a=>a.key.startsWith("system:"));o.splice(r===-1?o.length:r,0,{key:hb,label:Y7,rows:t})}return o}var Ru=null,G1=null;function X7(e,o){Ru=e,G1=o}function J0e(e){X7(e,null)}function Q0e(){return Ru}function Wc(){return Un({kind:G1})||Ru===Au}function eEe(e){return W1(Ru??"",e)??"alloy-wheel"}function oEe(e){return Wc()?Hc(e):null}function gb(e,o,t){let r=!1,a={};for(let[n,s]of Object.entries(e)){if(!j1(bc(s),o??{},t)){r=!0;continue}let i=J7(s,o?.[n],o??{},t);i!==s&&(r=!0),a[n]=i}return r?a:e}function J7(e,o,t,r){let a=e?.options;if(!Array.isArray(a))return e;let n=a.filter(s=>s?.value===o||!s?.showWhen||j1(s.showWhen,t,r));return n.length===a.length?e:{...e,options:n}}function K1(e,o,t,r){let a=ku(o,t,r);return{device:e,parentType:a?.item.type,parent:a?.item.props}}function Lu(e,o){if(!e||typeof e!="object")return!1;let t=e;if(typeof t.context=="string"&&(t.context===o||t.context.startsWith(`${o}.`)))return!0;if("not"in t)return Lu(t.not,o);for(let r of[t.all,t.any])if(Array.isArray(r)&&r.some(a=>Lu(a,o)))return!0;return!1}function V1(e,o={}){return Z7({parentType:()=>e.parent?.type??void 0,parent:()=>e.parent?.props??void 0,dynamicPage:()=>Wc(),root:()=>e.appState?.data?.root?.props,...o})}import{isLengthUnit as Q7}from"efficient-easel/screen/lib/content/length-units";var Y1=1,eY="cardImageUnit",Ib={kind:"radius",unitKey:eY},q1={kind:"radius"};function oY(e){return Ht(e)}function X1(e,o){if(Q7(o)&&o!=="px"){let r=q(e);return r!==void 0&&r>=0?{"--sf-card-image-radius":Me(r,o)}:{}}let t=oY(e);return t===null?{}:{"--sf-card-image-radius":`${t}px`}}import{isLengthUnit as tY}from"efficient-easel/screen/lib/content/length-units";var Z1={kind:"radius",unitKey:"cornersUnit"},J1=1,Q1="Corners";function rY(e){return Ht(e)}function bEe(e,o,t){let r=tY(t)&&t!=="px"?q(e):void 0,a=r===void 0?rY(e):null;if(r===void 0&&a===null)return null;let n=r!==void 0?Me(Math.max(0,r),t):`${a}px`;return{borderRadius:Nc(o)?$n(n,$r(o)??[]):n}}var oA=12,Ri=6,aY=Xo,Fu={twoAcross:{label:"Two across",across:2,acrossPhone:2,desktop:[[6,1],[6,1]],phone:[[3,1],[3,1]]},zigzag:{label:"Zigzag",across:2,acrossPhone:2,desktop:[[8,1],[4,1],[4,1],[8,1]],phone:[[4,1],[2,1],[2,1],[4,1]]},brick:{label:"Brick",across:2,acrossPhone:2,desktop:[[5,1],[7,1],[7,1],[5,1]],phone:[[2,1],[4,1],[4,1],[2,1]]},twoTall:{label:"Two tall",across:2,acrossPhone:2,desktop:[[6,2],[6,2]],phone:[[3,2],[3,2]]},offsetTall:{label:"Offset tall",across:2,acrossPhone:2,desktop:[[5,2],[7,1],[3,1],[4,1]],phone:[[3,2],[3,1],[3,1]]},ladder:{label:"Ladder",across:2,acrossPhone:2,desktop:[[3,2],[9,1],[5,1],[4,1]],phone:[[2,2],[4,1],[2,1],[2,1]]},threeAcross:{label:"Three across",across:3,acrossPhone:3,desktop:[[4,1],[4,1],[4,1]],phone:[[2,1],[2,1],[2,1]]},bigLeft:{label:"Big left",across:3,acrossPhone:3,desktop:[[6,1],[3,1],[3,1]],phone:[[4,1],[1,1],[1,1]]},bigRight:{label:"Big right",across:3,acrossPhone:3,desktop:[[3,1],[3,1],[6,1]],phone:[[1,1],[1,1],[4,1]]},threeStagger:{label:"Three stagger",across:3,acrossPhone:3,desktop:[[5,1],[4,1],[3,1],[3,1],[4,1],[5,1]],phone:[[3,1],[2,1],[1,1],[1,1],[2,1],[3,1]]},threeLadder:{label:"Three ladder",across:3,acrossPhone:3,desktop:[[3,1],[4,1],[5,1],[5,1],[4,1],[3,1]],phone:[[1,1],[2,1],[3,1],[3,1],[2,1],[1,1]]},tallMiddle:{label:"Tall middle",across:3,acrossPhone:3,desktop:[[4,1],[4,2],[4,1],[4,1],[4,1]],phone:[[2,1],[2,2],[2,1],[2,1],[2,1]]},fourAcross:{label:"Four across",across:4,acrossPhone:2,desktop:[[3,1],[3,1],[3,1],[3,1]],phone:[[3,1],[3,1]]},bigFirst:{label:"Big first",across:4,acrossPhone:2,desktop:[[6,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1]],phone:[[6,1],[3,1],[3,1]]},fourStagger:{label:"Four stagger",across:4,acrossPhone:2,desktop:[[4,1],[3,1],[2,1],[3,1],[2,1],[3,1],[4,1],[3,1]],phone:[[4,1],[2,1],[2,1],[4,1]]},tallFirst:{label:"Tall first",across:4,acrossPhone:2,desktop:[[3,2],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1]],phone:[[3,2],[3,1],[3,1]]},oneThenFour:{label:"One then four",across:4,acrossPhone:2,desktop:[[12,1],[3,1],[3,1],[3,1],[3,1]],phone:[[6,1],[3,1],[3,1]]},sixAcross:{label:"Six across",across:6,acrossPhone:3,desktop:[[2,1],[2,1],[2,1],[2,1],[2,1],[2,1]],phone:[[2,1],[2,1],[2,1]]},sixStagger:{label:"Six stagger",across:6,acrossPhone:6,desktop:[[3,1],[2,1],[1,1],[2,1],[1,1],[3,1],[1,1],[3,1],[2,1],[2,1],[1,1],[3,1]],phone:[[1,1],[1,1],[1,1],[1,1],[1,1],[1,1]]},twoThenThrees:{label:"Two, then threes",across:3,acrossPhone:3,lead:[[6,1],[6,1]],desktop:[[4,1],[4,1],[4,1]],leadPhone:[[3,1],[3,1]],phone:[[2,1],[2,1],[2,1]]},twoThenThreesPhoto:{label:"Two, then threes \xB7 photo",across:3,acrossPhone:1,lead:[[6,1],[6,1]],desktop:[[4,1],[4,1],[4,1]],phone:[[6,1]],ratio:"landscape"}},tA=["phone","acrossPhone","leadPhone"];var nY=new Set(tA),$c=Object.fromEntries(Object.entries(Fu).map(([e,o])=>[e,Object.fromEntries(Object.entries(o).filter(([t])=>!nY.has(t)))])),yb=Object.keys(Fu),rA=[2,3,4,6];function bb(e,o){return yb.filter(t=>t===o||e===null||$c[t].across===e)}function aA(e){let o=e.layout;return typeof o=="string"&&He(Fu,o)?o:null}function Sb(e){let o=aA(e);return o?sY(o,e.layoutPhone):null}var Bu={oneAcross:{label:"One across",phone:[[Ri,2]],acrossPhone:1}};function nA(e){return typeof e=="string"&&He(Bu,e)?e:null}function eA(e,o){return o?Ri/e.acrossPhone:oA/e.across}function wb(e){return e.ratio?aO.find(o=>o.shape===e.ratio)?.ratio??null:null}function sA(e){return[...e.lead??[],...e.desktop]}function sY(e,o){let t=Fu[e],r=nA(o);if(!r)return t;let{phone:a,acrossPhone:n}=Bu[r],s=Object.fromEntries(tA.map(i=>[i,void 0]));return{...t,...s,phone:a,acrossPhone:n}}var iY="sf-wall--";function lY(e){let o=aA(e);if(!o)return"";let t=nA(e.layoutPhone);return`${iY}${o}${t?`--${t}`:""}`}function kEe(e){let o=Sb(e);if(!o)return"";let t=`.${lY(e)}`,r=[],a=(i,l,d)=>`${t}:has(> :nth-child(${i}n+${l+d}):last-child) > :nth-last-child(-n+${d})`,n=(i,l,d=[])=>{let f=[],u=i.length,p=d.length;d.forEach(([m,h],I)=>{f.push(`${t} > :nth-child(${I+1}){grid-column:span ${m};grid-row:span ${h}}`)}),i.forEach(([m,h],I)=>{f.push(`${t} > :nth-child(${u}n+${p+I+1}){grid-column:span ${m};grid-row:span ${h}}`)});for(let m=1;m<u;m+=1)f.push(`${a(u,p,m)}{grid-column:span ${l};grid-row:span 1}`);return f};r.push(`${t}{grid-template-columns:repeat(${oA},minmax(0,1fr))}`);let s=wb(o);if(s&&(r.push(`${t}${t}{grid-auto-rows:auto}`),r.push(`${t}${t} > *{aspect-ratio:${s[0]}/${s[1]};height:auto}`)),r.push(...n(o.desktop,eA(o,!1),o.lead)),r.push(`@media (max-width:${aY}px){`),r.push(`${t}{grid-template-columns:repeat(${Ri},minmax(0,1fr))}`),r.push(...n(o.phone,eA(o,!0),o.leadPhone)),o.phone.length===1&&!o.leadPhone?.length){let[i,l]=o.phone[0],d=o.lead?.length??0;for(let f=1;f<o.desktop.length;f+=1)r.push(`${a(o.desktop.length,d,f)}{grid-column:span ${i};grid-row:span ${l}}`)}return r.push("}"),r.join("")}var Nu=12,iA=1,cY=3;var dY=3;function Du(e,o,t){let r=typeof e=="number"?e:Number.parseInt(String(e??""),10);return Number.isFinite(r)?Math.min(t,Math.max(o,Math.trunc(r))):null}function fY(e){return Du(e,1,Nu)??dY}function EEe(e,o){return Du(e,iA,cY)??(fY(o)===4?2:iA)}function lA(e){return e==null||e===""?null:Du(e,1,Nu)}var cA="data-sf-span",Cb=4;function dA(e){return e==null||e===""?null:Du(e,1,Cb)}var fA="data-sf-row-span",Ga=["gridSpan","gridRowSpan"];function pA(e){if(!e)return!1;if(e.type==="Grid")return!0;if(e.type==="GalleryB"){if(Sb(e.props??{}))return!1;let o=e.props?.columns;return o!=null&&o!==""}return!1}import{jsx as pY}from"react/jsx-runtime";import*as uY from"efficient-easel/icons";function Mu(e){let o=e.replace(/(^|-)([a-z])/g,(r,a,n)=>n.toUpperCase()),t=uY[`${o}Icon`];return t?pY(t,{size:16}):null}import{jsx as ja,Fragment as xY,jsxs as bA}from"react/jsx-runtime";import{useContext as gY,useEffect as IY,useId as yY,useState as SA}from"react";import{SettingsField as bY,SettingsSwitch as SY}from"efficient-easel/panel";import{AnchorIcon as wY}from"efficient-easel/icons";import{ScreenDocumentContext as CY}from"efficient-easel/screen/components/ScreenDocumentContext";import{Snippet as vY}from"efficient-shell/ui";import{slugify as kY}from"efficient-shell/format";import{slugify as mY}from"efficient-shell/format";function Uc(e){return typeof e=="string"?e.trim():e&&typeof e=="object"&&typeof e.text=="string"?e.text.trim():""}var zn=e=>mY(Uc(e));var Hu="homepage";import{slugify as hY}from"efficient-shell/format";var uA=[{value:"page",label:"Page"},{value:"anchor",label:"Anchor"},{value:"blog",label:"Blog post",needs:"service"},{value:"product",label:"Product",needs:"commerce"},{value:"popup",label:"Popup"},{value:"custom",label:"Custom URL"}];function mA(e){return e.offersCommerce&&e.offersService?uA:uA.filter(o=>!o.needs||(o.needs==="commerce"?e.offersCommerce:e.offersService))}var vb="#popup:";function hA(e){return`${vb}${e}`}function xA(e){return e.startsWith(vb)&&e.slice(vb.length).trim()||null}function zc(e){return e===Hu?"/":`/${e}`}function gA(e){return`/journal/${e}`}function MEe(e){return`/wheels/${e}`}function Wu(e,o){return`${zc(e)}#${o}`}function IA(...e){let o=new Set,t=[];for(let r of e)for(let a of r?.content??[]){let n=Uc(a?.props?.anchor);if(!n)continue;let s=hY(n);!s||o.has(s)||(o.add(s),t.push({slug:s,name:n}))}return t}function HEe(e){let o=e.indexOf("#"),t=o===-1?e:e.slice(0,o),r=t.indexOf("?");return r===-1?t:t.slice(0,r)}function yA(e){return/^\/wheels\/[^/?#]+(?:[?#].*)?$/.test(e)}import{readHidable as TY}from"efficient-easel/draw";function wA({value:e,onChange:o,nameBox:t}){let r=TY(e).text,[a,n]=SA(!1),s=a||r.trim()!=="",i=yY();return bA(xY,{children:[ja(bY,{label:c("Add an anchor"),labelId:i,icon:ja(wY,{}),action:ja(SY,{checked:s,ariaLabelledBy:i,onChange:l=>{n(l),!l&&r!==""&&o("")}})}),s&&t(e,o),s&&ja(PY,{name:r})]})}function PY({name:e}){let o=gY(CY),t=o?.templateId?"":o?.currentSlug??"",[r,a]=SA("");IY(()=>a(fu()),[]);let n=kY(e);if(!n||!t)return null;let s=`${r}${Wu(t,n)}`,i=s.replace(/^https?:\/\//,""),l=i.lastIndexOf("#");return ja("div",{className:"sf-anchor-link",children:ja(vY,{value:s,label:c("link"),size:"sm",children:bA("span",{className:"sf-anchor-link-text",children:[ja("span",{className:"sf-anchor-link-path",children:i.slice(0,l)}),ja("span",{className:"sf-anchor-link-hash",children:i.slice(l)})]})})})}import{jsx as Ur,jsxs as EY}from"react/jsx-runtime";import{Fragment as _Y}from"react";import{Button as $u,Tooltip as OY}from"efficient-shell/ui";function CA({status:e,statusText:o,onRefresh:t,busy:r=!1,edit:a,hint:n,spaced:s=!0,compact:i=!1,oneLine:l=!1}){return i?Ur("div",{className:`sf-blogsource sf-blogsource--compact${l?" sf-blogsource--line":""}`,style:s?{marginTop:8}:void 0,children:Ur(OY,{content:n,className:l?"sf-name-tip":void 0,children:Ur("p",{className:"sf-blogsource-status","data-state":e,children:[o?Ur(_Y,{children:o},"status"):null,t?Ur($u,{variant:"link",size:"sm",className:"sf-blogsource-link",onClick:t,disabled:r,children:c("Refresh now")},"refresh"):null,a?Ur($u,{variant:"link",size:"sm",className:"sf-blogsource-link",onClick:a.onClick,children:a.label},"edit"):null].filter(Boolean).flatMap((d,f)=>f?[" \xB7 ",d]:[d])})})}):EY("div",{className:"sf-blogsource",style:s?{marginTop:9}:void 0,children:[Ur("p",{className:"sf-blogsource-status","data-state":e,children:o}),t?Ur($u,{variant:"secondary",className:"sf-blogsource-action",onClick:t,disabled:r,children:c("Refresh now")}):null,a?Ur($u,{variant:"secondary",className:"sf-blogsource-action",onClick:a.onClick,children:a.label}):null,Ur("p",{className:"es-field-hint",children:n})]})}import{AdjustIcon as iQ,EyeIcon as lQ,AnimationIcon as cQ,BackgroundIcon as kF,BorderAllIcon as dQ,BlockSectionIcon as fQ,ColumnWidthsIcon as lw,ColumnsIcon as WF,CornerIcon as $F,DirectionDownIcon as pQ,DirectionLeftIcon as uQ,DirectionRightIcon as mQ,DirectionUpIcon as hQ,EditIcon as xQ,GapIcon as gQ,GridIcon as UF,GroundIcon as aw,HashIcon as IQ,HeightIcon as cw,ImageIcon as yQ,ListIcon as bQ,LocationIcon as TF,PaddingBottomIcon as zF,PaddingLeftIcon as GF,PaddingRightIcon as jF,PaddingTopIcon as dw,PageIcon as SQ,StickyIcon as KF,SearchIcon as wQ,SquareIcon as CQ,TypeIcon as vQ,WidthIcon as kQ}from"efficient-easel/icons";import{jsx as oo,Fragment as Gn,jsxs as jn}from"react/jsx-runtime";import{CaptionIcon as AY,DateIcon as RY,FlagIcon as LY,TitleIcon as FY,ButtonIcon as BY,DollarIcon as NY,HashIcon as DY,LinkIcon as MY,NoteIcon as HY,TagIcon as WY,TextLinesIcon as $Y}from"efficient-easel/icons";var vA={body:$Y,button:BY,link:MY,label:WY,number:DY,price:NY,note:HY,name:LY,date:RY,caption:AY,title:FY},kA={eyebrow:jn(Gn,{children:[oo("path",{d:"M5 6.5h5"}),oo("path",{d:"M5 12.5h14"}),oo("path",{d:"M5 18h11"})]}),heading:jn(Gn,{children:[oo("path",{d:"M6.5 5v14"}),oo("path",{d:"M17.5 5v14"}),oo("path",{d:"M6.5 12h11"})]}),intro:jn(Gn,{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:jn(Gn,{children:[oo("rect",{x:"2.5",y:"7",width:"19",height:"10",rx:"2"}),oo("path",{d:"M6.5 12h7"})]}),quote:jn(Gn,{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:jn(Gn,{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:jn(Gn,{children:[oo("path",{d:"M4 7h16"}),oo("path",{d:"M4 14h3.5"}),oo("path",{d:"M10.5 14h3"}),oo("path",{d:"M17 14h3"})]})};function kb({noun:e,size:o=14,strokeWidth:t=1.8,className:r,style:a}){let n=vA[e];return n?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:kA[e]})}var s_e=Object.keys(vA);var i_e=Object.keys(kA);import{parseHexColor as qY}from"efficient-shell/format";import{parseHexColor as OA}from"efficient-shell/format";import{COLOR_SLOTS as AA,FILL_COLOR_SLOTS as KY,colorRole as VY,fillColorRole as RA}from"efficient-shell/markup";import{parseHexColor as TA}from"efficient-shell/format";import{FILL_COLOR_SLOTS as UY}from"efficient-shell/markup";var Uu=e=>{let o=j_.find(t=>t.role===e);return o?`var(${o.token})`:""},zY=e=>Uu(e)?`var(--theme-${e})`:"",GY={main:{ink:_n.accent,page:_n.accent,key:"accent",label:()=>c("Main"),words:e=>c("Theme {n} main color",{n:e})},text:{ink:_n.text,page:_n.text,key:"text",label:()=>c("Text"),words:e=>c("Theme {n} text color",{n:e})},background:{ink:Uu("bg"),page:zY("bg"),key:"background",label:()=>c("Background"),words:e=>c("Theme {n} background",{n:e})},muted:{ink:_n.labels,page:_n.labels,key:"muted",label:()=>c("Muted"),words:e=>c("Theme {n} muted color",{n:e})},surface:{ink:Uu("surface"),page:Uu("surface"),key:"surface",label:()=>c("Surface"),words:e=>c("Theme {n} surface color",{n:e})}};function Ka(e){return $(GY,e)}var Tb="#9ca3af";function Li(e,o,t){let r=Ka(e);return r?{hex:TA(o[r.key]??"")??"",words:r.words(t)}:null}function PA(e,o){return UY.flatMap(t=>{let r=Li(t,e,o);return r&&Ka(t)?.ink?[{name:t,label:r.words,value:r.hex||Tb}]:[]})}var jY=["main","text","background"];function EA(e){let o=new Set,t=[];return vo(e).themes.forEach((r,a)=>{for(let n of jY){let s=Ka(n),i=s?r[s.key]:void 0,l=typeof i=="string"&&i?TA(i):null;!s||!l||o.has(l)||(o.add(l),t.push({value:l,label:s.words(a+1)}))}}),t}function fa(e){return Ka(e)?.ink??""}function zr(e){if(typeof e!="string")return null;let o=RA(e.trim());return o?.kind==="slot"&&fa(o.slot)?o.slot:null}var YY={accent:"main",labels:"muted"};function Et(e){return $(YY,e)??e}function Fi(e){if(!e)return"";if(e.startsWith("#"))return OA(e)===e.toLowerCase()?e:"";let o=VY(Et(e));return o?.kind==="slot"?fa(o.slot):""}function Bi(e,o=AA){return o.flatMap(t=>{let r=Ka(t);return r?.ink?[{name:t,label:r.label(),value:e?.[t]||Tb}]:[]})}function LA(e){let o=RA(Et(e));return o?.kind==="slot"?fa(o.slot):""}function Pb(e){let o=e?.trim();return o?KY.find(t=>fa(t)===o)??null:null}function zu(e){let o={},t=e.ownerDocument,r=t?.defaultView;if(!t||!r)return o;let a=r.getComputedStyle(e),n=t.createElement("canvas").getContext("2d");for(let s of AA){let i=fa(s);if(!i)continue;let l=i.replace(/^var\((--[\w-]+)\)$/,"$1"),d=a.getPropertyValue(l).trim();if(!d)continue;let f=_A(d);!f&&n&&(n.fillStyle="#000000",n.fillStyle=d,f=_A(String(n.fillStyle))),f&&(o[s]=f)}return o}function _A(e){let o=e.trim().toLowerCase();if(o.startsWith("#"))return OA(o);let t=o.match(/^rgba?\(\s*(\d+)[\s,]+(\d+)[\s,]+(\d+)/);return t?`#${t.slice(1,4).map(r=>Math.min(255,Number(r)).toString(16).padStart(2,"0")).join("")}`:null}var XY="#ffffff";function Eb(e){return FA(e)||(ZY(e)?e:XY)}function FA(e){let o=zr(e);return o?Ka(o)?.page??"":""}function ZY(e){return typeof e=="string"&&qY(e)===e.toLowerCase()||FA(e)!==""}function Gu(e){return{"--bg":Eb(e)}}import{parseHexColor as JY}from"efficient-shell/format";import{fillColorRole as QY}from"efficient-shell/markup";function Kn(e,o,t,r){let a=r??t??o,n=t!==null&&t!==o,s=a!==null&&a!==o;return{className:[n?e.tabletClass:"",s?e.phoneClass:""].filter(Boolean).join(" "),style:{...n?{[e.tabletVar]:t}:{},...s?{[e.phoneVar]:a}:{}}}}var _b=[{label:"Even",value:"even"},{label:"From the bottom",value:"bottom"}];var D_e="sf-card",M_e="[--sf-card-lift:none] [--sf-card-shadow-hover:var(--sf-card-shadow,none)]",Va={min:0,max:100,step:5,fallback:0,unit:"%"},e9="68%",W_e={desktop:20,phone:20,side:40,sidePhone:24},$_e="sf-box-sides";function Ab(e){return typeof e=="string"&&e.trim()!==""}function NA(e){return Ab(typeof e?.bgImage=="string"?e.bgImage:null)||ju(e)}function ju(e){return mt(e,Op)!==""}function jc(e,o){return o||!ju(e)?e:{...e,[Op]:""}}function U_e(e,o){return Ty(o,mt(e,Op))?.trim()||null}function BA(e,o){let t=typeof e=="number"?e:Number.parseFloat(String(e??""));if(!Number.isFinite(t)||t<=0)return null;let r=(Math.min(Va.max,Math.max(Va.min,t))/100).toFixed(2);return o!=="bottom"?{background:ca(Number(r))}:{background:`linear-gradient(0deg, ${ca(Number(r))} 0%, ${ca(0)} ${e9})`}}var Ku=[{label:"Flat",value:"",hint:"One colour from top to bottom"},{label:"Fade",value:"down",hint:"The colour fades into the page colour at the bottom"}],DA="fillFade",Ob=Ku[1].value,Vu=e=>e===Ob?Ob:Ku[0].value,o9=[{mix:"12%",at:"50%"},{mix:"19%",at:"70%"},{mix:"50%",at:"95%"}];function z_e(e){return Vu(e)!==Ob?null:{backgroundImage:`linear-gradient(to bottom, transparent, ${o9.map(o=>`color-mix(in srgb, var(--bg) ${o.mix}, transparent) ${o.at}`).join(", ")})`}}var Yu=e=>typeof e=="string"?JY(e.trim()):null,Gc=e=>{let o=Yu(e);if(o!==null||typeof e!="string")return o;let t=e.trim();return t&&!t.startsWith("#")&&LA(t)||null},qu=e=>{if(typeof e!="string")return null;let o=QY(Et(e.trim()));return o?.kind==="slot"?o.slot:null},Rb="swatch";function G_e(e,o){if(!o)return null;let t=Ty(o,mt(e,Rb)),r=zr(t);return Yu(t)??(r&&fa(r)||null)}var t9={tabletClass:"sf-fill-tablet",tabletVar:"--sf-fill-tablet",phoneClass:"sf-fill-phone",phoneVar:"--sf-fill-phone"};function j_e(e,o,t){return Kn(t9,Gc(e),Gc(o),Gc(t))}var r9={tabletClass:"sf-wash-tablet",tabletVar:"--sf-wash-tablet",phoneClass:"sf-wash-phone",phoneVar:"--sf-wash-phone"};function K_e(e){let o=BA(e.darken,e.darkenStyle);if(!o)return{className:"",style:{}};let t=(u,p)=>String(BA(u,p)?.background??"none"),r=u=>(typeof u=="number"||typeof u=="string"&&u.trim()!=="")&&Number.isFinite(Number(u))?u:void 0,a=u=>_b.some(p=>p.value===u)?u:void 0,[n,s,i,l]=[r(e.darkenTablet),a(e.darkenStyleTablet),r(e.darkenPhone),a(e.darkenStylePhone)],d=n??e.darken,f=s??e.darkenStyle;return Kn(r9,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 V_e(e,o){let t={"top-left":["start","start"],"top-center":["center","start"],"top-right":["end","start"],left:["start","center"],center:["center","center"],right:["end","center"],"bottom-left":["start","end"],"bottom-center":["center","end"],"bottom-right":["end","end"]},[r,a]=t[e]??t.center,[n,s]=o==="column"?[a,r]:[r,a];return RE(n,s)}function MA(e,o){let t=e?.content;if(!Array.isArray(t))return null;for(let r of t){if(!r||typeof r!="object")continue;let{type:a,props:n}=r;if(n?.id===o)return null;if(Lb(r,o,0))return{type:typeof a=="string"?a:"",props:n??{}}}return null}function Lb(e,o,t){if(t>12||!e||typeof e!="object")return!1;if(Array.isArray(e))return e.some(a=>Lb(a,o,t+1));let r=e.props;return r&&typeof r=="object"&&r.id===o?!0:Object.values(e).some(a=>Lb(a,o,t+1))}function HA(e,o){let t=e?.content;return Array.isArray(t)?Xu(t,o,0)??[]:[]}function Xu(e,o,t){if(t>12||!e||typeof e!="object")return null;if(Array.isArray(e)){for(let a of e){let n=Xu(a,o,t+1);if(n)return n}return null}let r=e.props;if(r&&typeof r=="object"){if(r.id===o)return[];for(let a of Object.values(r)){let n=Xu(a,o,t+1);if(n)return[r,...n]}return null}for(let a of Object.values(e)){let n=Xu(a,o,t+1);if(n)return n}return null}import{SettingsDefaultReset as et,SettingsDrill as TQ,SettingsField as wo,SettingsGroup as PQ,SettingsSegmented as EQ,SettingsBorder as _Q,SettingsSidesEach as OQ,SettingsSwitch as fw,borderSides as AQ,borderStartEach as RQ}from"efficient-easel/panel";import{ListField as LQ}from"efficient-easel/fields";import{DisplayChips as FQ}from"efficient-shell/ui";import{HIDDEN_KEY as a9,hiddenInEveryView as n9,hiddenInView as Fb,hiddenKeyOf as WA}from"efficient-easel/screen/lib/content/view-hide";var s9={"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"},i9={"000":"",100:"view-desktop:hidden","010":"view-tablet:max-view-desktop:hidden","001":"max-view-tablet:hidden",110:"view-tablet:hidden","011":"max-view-desktop:hidden",101:"view-desktop:hidden max-view-tablet:hidden",111:"hidden"},$A=e=>(e.desktop?"1":"0")+(e.tablet?"1":"0")+(e.mobile?"1":"0");function Zu(e,{atSectionLine:o=!1}={}){return(o?i9:s9)[$A(e)]}var Ni=[a9,WA("tablet"),WA("mobile")];function UA(e){return{desktop:Fb(e,"desktop"),tablet:Fb(e,"tablet"),mobile:Fb(e,"mobile")}}function pa(e){return n9(e)}function zA(e){let o=UA(e);return["desktop","tablet","mobile"].filter(t=>o[t]).join(" ")}var l9={"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!"},c9={"000":"",100:"view-desktop:hidden!","010":"view-tablet:max-view-desktop:hidden!","001":"max-view-tablet:hidden!",110:"view-tablet:hidden!","011":"max-view-desktop:hidden!",101:"view-desktop:hidden! max-view-tablet:hidden!",111:"hidden!"};function Kc(e,{atSectionLine:o=!1}={}){return(o?c9:l9)[$A(UA(e))]}function Di(e){if(!e||typeof e!="object"||Array.isArray(e))return{};let o={};for(let[t,r]of Object.entries(e))typeof r=="boolean"&&(o[t]=r);return o}function Ju(e,o){return Di(e)[o]!==!1}function Bb(e,o,t){let r=Di(o)[t];return typeof r=="boolean"?r:Ju(e,t)}function GA(e){return Object.values(Di(e)).some(o=>o===!1)}function jA(e){return Object.keys(Di(e)).length>0}function KA(e,o,t){let r={...Di(e)};return t?delete r[o]:r[o]=!1,Object.keys(r).length?r:void 0}function VA(e,o,t){return{...Di(e),[o]:t}}function Q_e(e,o,t,{atSectionLine:r=!0}={}){let a=!Ju(e,t);return Zu({desktop:a,tablet:a,mobile:!Bb(e,o,t)},{atSectionLine:r})}import{ColorSwatch as BQ,CornersInput as NQ,DatePicker as EBe,DateTimePicker as DQ,FOCAL_DEFAULT as _Be,IconPicker as VF,COLUMN_COUNT_MAX as PF,COLUMN_SHARE_MIN as MQ,COLUMN_SHARES_EQUAL as HQ,resolveColumnShares as YF,WidthsBar as WQ,useShellStrings as $Q,IconButton as qF,InputNumber as EF,Slider as UQ,Tooltip as pw}from"efficient-shell/ui";import{backendOf as d9}from"efficient-easel/screen/lib/session";var Ge=d9,Mi=e=>e.blocks;async function YA(e){let o=e.trim();if(!o)return null;let t=Ge().geocode;if(!t)throw new Error("geocode_unavailable");return t.locate(o)}var Nb="Lookup busy \u2014 try again in a moment.",Qu=e=>typeof e=="number"&&Number.isFinite(e);function sOe(e){return e.some(o=>{let t=o?.geocode;return t?t.pending||t.manual&&t.lat===void 0&&t.lng===void 0?!0:Qu(t.lat)&&t.lat!==o.lat||Qu(t.lng)&&t.lng!==o.lng:!1})}async function iOe(e,o,{geocode:t=YA,courtesyGapMs:r=1100}={}){let a=s=>new Promise(i=>setTimeout(i,s)),n=e.slice();if(e.some(s=>s?.geocode?.pending)){let s=[],i=!1;for(let l of e){if(!l?.geocode?.pending){s.push(l);continue}i&&r>0&&await a(r),i=!0;try{let d=await t(o(l));s.push(d?{...l,lat:d.lat,lng:d.lng,geocode:{...l.geocode,pending:!1,ok:!0,status:`Found \u2014 ${d.label.split(",").slice(0,3).join(",").trim()}`,lat:d.lat,lng:d.lng}}:{...l,geocode:{...l.geocode,pending:!1,ok:!1,status:"No match \u2014 check the address and try again."}})}catch{s.push({...l,geocode:{...l.geocode,pending:!1,ok:!1,status:Nb}})}}n=s}return n.map(s=>{let i=s?.geocode;if(!i)return s;if(i.manual&&i.lat===void 0&&i.lng===void 0)return{...s,geocode:{...i,lat:s.lat,lng:s.lng}};let l=Qu(i.lat)&&i.lat!==s.lat?i.lat:s.lat,d=Qu(i.lng)&&i.lng!==s.lng?i.lng:s.lng;return l!==s.lat||d!==s.lng?{...s,lat:l,lng:d}:s})}import{jsx as lt,jsxs as Mb}from"react/jsx-runtime";import{useRef as f9}from"react";import{ColorPicker as p9,ColorPickerPanel as u9,ColorSwatch as m9,HexInput as h9,Popover as x9,Tooltip as g9,colorFill as I9,colorSwatchClasses as y9,useShellStrings as b9}from"efficient-shell/ui";import{SettingsDefaultReset as S9,SettingsField as w9}from"efficient-easel/panel";import{typedHex as Db}from"efficient-easel/pick";var qA="Not set";function XA({value:e,onChange:o,label:t,id:r,caption:a,inherited:n,ariaLabel:s,choices:i}){return lt(v9,{value:e,onChange:o,label:c(s??t),id:r,caption:a,inherited:n,choices:i})}function C9(){let{theme:e}=fe();return EA(e)}function v9({value:e,onChange:o,label:t,id:r,caption:a,inherited:n,choices:s}){let i=C9(),l=e?null:Db(n??""),d=a!==void 0&&(!e||Db(a)!==Db(e))?a:null,f=u=>{u!==e&&o(u)};return Mb("div",{className:"sf-colour",children:[s?lt(k9,{id:r,value:e,onChange:o,label:t,presets:i,follows:l,choices:s}):lt(p9,{id:r,value:e,onChange:f,label:t,presets:i,fallback:l??void 0,size:"md",align:"start"}),d!==null?lt("span",{className:"sf-colour-caption",children:d}):lt("span",{className:"sf-colour-hexwrap",children:lt(h9,{value:e||l||"",onChange:f,label:c("{label} hex code",{label:t}),placeholder:e||l?void 0:c(qA),className:l?"sf-colour-hex is-inherited":"sf-colour-hex",size:"md"})})]})}function k9({value:e,onChange:o,label:t,id:r,presets:a,follows:n,choices:s}){let i=b9().color,l=e||n||"",d=s.findIndex(p=>p.selected),f=d>=0,u=f9(d);return f&&(u.current=d),lt(x9,{id:r,trigger:lt("span",{"aria-hidden":"true",className:"absolute inset-0",style:I9(l)}),triggerLabel:i.swatch(t,l.toUpperCase()||i.none),triggerClassName:y9({size:"md"}),"aria-label":i.panel(t),align:"start",children:Mb("div",{className:"sf-colour-window",children:[lt("div",{role:"group","aria-label":t,className:"sf-colour-choices",children:s.map(p=>lt(g9,{content:p.label,children:lt(m9,{color:p.color,"aria-label":p.label,selected:p.selected,onClick:()=>{p.selected||p.onPick()}})},p.label))}),lt(u9,{value:f?"":e,onChange:o,label:t,presets:a,fallback:(f?l:n)??void 0},u.current)]})})}function gt({label:e,icon:o,changed:t,hint:r,onReset:a,resetTo:n,children:s,...i}){return lt(w9,{label:e,icon:o,htmlFor:i.id,changed:t,hint:r,action:a?lt(S9,{words:ce()?.panel,label:e,changed:!!t,detail:n,onReset:a}):void 0,children:s?Mb("div",{className:"es-width-stack",children:[XA({...i,label:e}),s]}):XA({...i,label:e})})}function Vc({label:e,icon:o,value:t,inherited:r,resetTo:a,onChange:n,onReset:s,hint:i,choices:l,children:d}){let f=!!t;return lt(gt,{label:e,icon:o,value:t,inherited:f?void 0:r,onChange:n,changed:f,onReset:s,resetTo:a,hint:i,choices:l,children:d})}import{keptByRow as nw}from"efficient-easel/screen/lib/document/style-fields";import{jsx as T9}from"react/jsx-runtime";import{useEffect as P9,useState as E9}from"react";import{clearRangeOf as _9,markSelection as O9,useCaretEdit as A9}from"efficient-easel/copy";import{TextToolbar as R9}from"efficient-shell/ui";function L9(e,o,t){return O9(e,o,t,oE)}function ZA(e,o){let t=_9(o,e.length),r=rE(e,t.start,t.end);return r.text===e?null:r}function F9(e){let[o,t]=E9(null);return P9(()=>{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 B9({target:e,value:o,onChange:t,disabled:r=!1,label:a="Formatting"}){let n=A9({target:e,onChange:t}),[s,i]=F9(e),l=p=>n(m=>{let h=L9(o,p,m);return i({start:h.selectionStart,end:h.selectionEnd}),h}),d=eE(),f={};if(s)for(let p of d)f[p.style]=tE(o,s.start,s.end,p.style);let u=r?null:ZA(o,s);return T9(R9,{offered:new Set(d.map(p=>p.style)),onMark:p=>l(p),pressed:f,disabled:r,"aria-label":c(a),className:"sf-markup-bar",clear:u?{onClear:()=>n(()=>{let p=e.current,m=p&&p.ownerDocument.activeElement===p?{start:p.selectionStart??0,end:p.selectionEnd??0}:null,h=ZA(o,m)??{text:o,selectionStart:m?.start??0,selectionEnd:m?.end??0};return i({start:h.selectionStart,end:h.selectionEnd}),h})}:void 0})}var Hb=B9;import{deviceField as Lt}from"efficient-easel/screen/lib/document/device-fields";import{NO_CONTROL_FIELD as zQ,NoControlMark as GQ,noControlField as XF}from"efficient-easel/screen/lib/document/panel-no-control-mark";var Wb="__ownBox";function JA(e){return!!e&&typeof e=="object"&&e[Wb]===!0}var $b="sfPanelOnly";function Hi(e){return!!e&&typeof e=="object"&&e[$b]===!0}function em(e,o,t){return typeof e=="number"?e:typeof o=="number"?o:t}var om=void 0;import{phoneKey as Zi,tabletKey as uw,viewKeyAt as mw}from"efficient-easel/draw";import{jsx as tm,Fragment as N9,jsxs as D9}from"react/jsx-runtime";import{useRef as M9}from"react";import{SettingsDefaultReset as H9}from"efficient-easel/panel";import{effectTiles as W9}from"efficient-easel/screen/lib/document/effect-tiles";import{VIEW_KEY_ACCESS as QA,describedAs as $9,onDesktopWords as U9,phoneTwinFields as eR}from"efficient-easel/screen/lib/document/box-fields";function z9({row:e,read:o,...t}){let r=o(So(),t.followsView??"desktop");return e({...t,follows:r})}function ua(e,o){return Object.fromEntries(xt.map(t=>{let r=ke(e,t);return[r,eR(e,o(t),QA)[r]]}))}function rm(e,o,t){let r=o.render,a={...o,render:n=>tm(z9,{...n,row:r,read:t})};return ua(e,n=>n==="desktop"?o:a)}function G9({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=M9(null),{preview:i}=e,l=W9({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 D9(N9,{children:[i?tm("div",{ref:s,style:{display:"contents"},children:d}):d,r&&t&&tm(H9,{words:ce()?.panel,label:c(e.tileWord),changed:!0,detail:U9(f=>c(f),c(e.word(a)),o.followsView),onReset:()=>o.onChange(void 0)})]})}function am(e,o){let t=$9({type:"custom",render:r=>tm(G9,{...r,spec:o})},{type:"select",label:o.label,options:o.values.map(r=>({value:r,label:o.word(r)}))});return eR(e,t,QA)}import{jsx as zb,Fragment as V9}from"react/jsx-runtime";import{createContext as Y9,useContext as q9}from"react";var nm={ProductGrid:{source:{keep:["slug"]}},GalleryItem:{product:{keep:["code","finish"]}},FeaturedCover:{source:{keep:["slug"]}},LongRead:{source:{keep:["slug"]}}},sm={Events:["posts"],SubscribeBlogs:["posts"]};var j9=["anchor"],K9=/^href$|Href$|^url$|Url$|^link$|^mailto$|^tel$/;function Vn(e){return j9.includes(e)||K9.test(e)}var Ub={Gallery:{source:{verb:"snapshot",keep:[]}},ProductHero:{source:{verb:"snapshot",keep:[]}},SpecTable:{source:{verb:"snapshot",keep:[]},wheel:{verb:"reference"},finish:{verb:"reference"},size:{verb:"reference"}},CollectionCard:{collection:{verb:"snapshot",keep:[]}},FooterMenu:{menu:{verb:"snapshot",keep:[]}},MenuBlock:{menu:{verb:"snapshot",keep:[]}},ProductGrid:{design_codes:{verb:"reference"}},ProductRef:{code:{verb:"reference"},finish:{verb:"reference"}},FitmentTable:{wheel:{verb:"reference"}},GalleryItem:{fromProduct:{verb:"reference"}},Footprint:{"offices[].group":{verb:"groupKey"},"offices[].lat":{verb:"pii"},"offices[].lng":{verb:"pii"},"offices[].geocode":{verb:"pii"}}};Ub.ContactLocations={"locations[].lat":{verb:"pii"},"locations[].lng":{verb:"pii"},"locations[].mapsUrl":{verb:"pii"},"locations[].geocode":{verb:"pii"}};var $Oe=Object.fromEntries(Object.entries(nm).map(([e,o])=>[e,Object.keys(o)])),UOe=Object.fromEntries(Object.entries(sm).map(([e,o])=>[e,[...o]]));import{NoControlMark as X9}from"efficient-easel/screen/lib/document/panel-no-control-mark";var oR=Y9(!1);function tR({children:e}){return zb(oR.Provider,{value:!0,children:e})}function Z9(){return q9(oR)}function rR({name:e,children:o}){return!Z9()||!e||!J9(e)||Vn(e)?zb(V9,{children:o}):zb(X9,{})}function J9(e){return/^[A-Za-z0-9_$]+$/u.test(e)}var Gb="off",nR="none",jb=[{label:"None",value:"off"},{label:"1, 2, 3",value:"plain"},{label:"01, 02, 03",value:"padded"},{label:"N\xB001, N\xB002",value:"numero"}],sR=[{label:"None",value:"none"},{label:"Hairline",value:"hairline"}];function XOe(e){return xo(jb,Gb,e)}var aR="sf-card-index",Yc="sf-card-index",ZOe="pointer-events-none absolute left-[18px] top-[18px] z-10 border border-line bg-bg/70 px-2 py-1 font-mono text-[length:var(--size-label,10px)] uppercase tracking-[0.16em] text-fg-dim",Q9={plain:`counter(${Yc})`,padded:`counter(${Yc}, decimal-leading-zero)`,numero:`"N\xB0" counter(${Yc}, decimal-leading-zero)`};function JOe(e,o){return o==="off"?"":`.${e}{counter-reset:${Yc}}.${e} .${aR}{counter-increment:${Yc}}.${e} .${aR}::before{content:${Q9[o]}}`}function QOe(e){return e==="hairline"?"border border-line hover:border-accent":""}var iR=[{value:"1",label:"1st rendering"},{value:"2",label:"2nd rendering"},{value:"3",label:"3rd rendering"},{value:"4",label:"4th rendering"},{value:"5",label:"5th rendering"}];import{SCALAR_TEXT_CONTROLS as jQ}from"efficient-easel/draw";import{jsx as It}from"react/jsx-runtime";import{SettingsDefaultReset as iq,SettingsField as Kb}from"efficient-easel/panel";import{useSelectedHost as lq}from"efficient-easel/easel";import{FOCAL_DEFAULT as cq}from"efficient-shell/format";import{ImageIcon as Vb,PlayIcon as cR}from"efficient-easel/icons";import{ImageFocusPoint as dq,MediaUploadField as fq}from"efficient-shell/ui";import{useContext as pq}from"react";import{ScreenDocumentContext as uq}from"efficient-easel/screen/components/ScreenDocumentContext";import{tabletKey as mq,viewKeyAt as hq}from"efficient-easel/draw";import{usePreviewDevice as xq}from"efficient-easel/draw/client";import{formatFocal as eq,parseFocal as oq}from"efficient-shell/format";var tq="sf-focus-phone",rq="--sf-focus-phone",aq="sf-focus-tablet",nq="--sf-focus-tablet",qc=e=>{if(typeof e!="string"||!/^\s*-?\d+(\.\d+)?%\s+-?\d+(\.\d+)?%\s*$/.test(e))return null;let{x:o,y:t}=oq(e);return eq(o,t)};function lR(e,o){return Kn(sq,null,qc(o),qc(e))}var sq={tabletClass:aq,tabletVar:nq,phoneClass:tq,phoneVar:rq};import{shownTier as Yb}from"efficient-easel/screen/lib/document/device-fields";import{onDesktopWords as gq}from"efficient-easel/screen/lib/document/box-fields";import{requestMediaPick as Iq}from"efficient-easel/screen/lib/media-picker";import{useEaselHost as yq}from"efficient-easel/screen/lib/host";import{useEaselSession as bq}from"efficient-easel/screen/lib/session-context";function Sq(e,o,t,r=!0){let a=Yb(t),n=typeof e[o]=="string"&&e[o]?String(e[o]):cq;if(a==="desktop")return{ownView:!1,followed:n,followsView:"desktop",own:void 0,focus:n,key:o};let s=hq(o,a),i=qc(e[s])??void 0,l=a==="mobile"&&r?qc(e[mq(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 wq(e,o,t){let r=lq();if(!o||!r)return null;let a=r.values??{};if(t&&!t(a,Yb(e)))return null;let n=Sq(a,o,e,t?t(a,"tablet"):!0),s=r.onChange;return{...n,set:i=>s(n.key,i),clear:()=>s(n.key,om)}}function dR({value:e,onChange:o,label:t,accept:r,placeholder:a,focusKey:n,focusWhen:s,frameKey:i,fieldKey:l}){let d=yq(),f=bq(),u=c(t),p=xq(),m=r.startsWith("video"),h=wq(p,m?void 0:n,s),I=!!n&&Yb(p)!=="desktop",w=pq(uq),S=ur(),v=i&&l?{video:l,frame:i}:null,b=O=>Iq(d,{accept:r,title:u,...O?{file:O}:{}}).then(D=>!D||!v?D?.url??null:(S({[v.video]:D.url,[v.frame]:D.posterUrl??""}),null)),y=v?O=>O?o(O):S({[v.video]:"",[v.frame]:""}):o,k=it(e);if(I&&(!h||!k))return null;if(w&&!w.capabilities.mediaEditing)return It(Kb,{label:u,icon:m?It(cR,{}):It(Vb,{}),children:It("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&&k?It(iq,{words:ce()?.panel,label:c("Image focus"),changed:!!h.own,detail:gq(O=>c(O),h.followed,h.followsView),onReset:h.clear}):void 0;return I&&h?It(Kb,{label:u,icon:It(Vb,{}),action:L,children:It("div",{style:{flex:"1 1 auto",minWidth:0},children:It(dq,{value:h.focus,onChange:h.set,label:c("Image focus"),image:k,hint:null})})}):It(Kb,{label:u,icon:m?It(cR,{}):It(Vb,{}),children:It("div",{style:{flex:"1 1 auto",minWidth:0},children:It(fq,{value:k,onChange:y,onPick:b,accept:m?"video/*":"image/*",kind:m?"video":"image",placeholder:a===void 0?void 0:c(a),maxSizeBytes:Ge(f).media.maxUploadBytes,...h?{focus:h.focus,onFocusChange:h.set}:{}})})})}import{jsx as fR}from"react/jsx-runtime";import{useId as Cq}from"react";import{FieldSelect as vq}from"efficient-easel/fields";import{SettingsField as kq}from"efficient-easel/panel";function Tq(e){return e.map(({value:o,label:t,note:r})=>({value:o,label:t,...r?{meta:r}:{}}))}function pR({label:e,options:o,value:t,onChange:r,emptyLabel:a,icon:n,hint:s}){let i=Cq(),l=`${i}-label`,d=`${i}-button`,f=Array.isArray(t)?t:[];return fR(kq,{label:c(e),labelId:l,icon:n,hint:s,children:fR(vq,{id:d,multiple:!0,value:f,options:Tq(o),onChange:r,placeholder:a===void 0?c("None"):c(a),ariaLabelledBy:`${l} ${d}`,inline:!0})})}import{jsx as ko,jsxs as qn,Fragment as oX}from"react/jsx-runtime";import{useCallback as kR,useContext as tX,useId as ER,useRef as TR,useState as PR}from"react";import{ThemeIcon as rX}from"efficient-easel/icons";import{Button as aX,useClickOutside as nX}from"efficient-shell/ui";import{SettingsField as sX}from"efficient-easel/panel";import{ScreenDocumentContext as iX}from"efficient-easel/screen/components/ScreenDocumentContext";import{jsx as he,jsxs as qa,Fragment as Bq}from"react/jsx-runtime";import{parseHexColor as Nq}from"efficient-shell/format";import{Button as Xb,IconButton as Dq,Tooltip as Mq}from"efficient-shell/ui";import{jsx as Ya,jsxs as Pq}from"react/jsx-runtime";import{AccentIcon as Eq}from"efficient-easel/icons";import{Button as _q,Tooltip as Oq}from"efficient-shell/ui";function qb(e){return ht(e).background}function Aq(e){let o=Ma(e.accent,qb(e));return o===null?null:{ratio:o,grade:Si(o)}}function Rq(e){let o=qb(e),t=Ma(e.accent,o);return t===null?[]:b_(e.accent).filter(r=>{let a=Ma(r,o);return a!==null&&a>t&&Si(a)==="good"})}var Lq={good:"Easy to read","large-only":bi["large-only"],hard:bi.hard};function uR({value:e,onChange:o}){let t=Aq(e),r=t?.grade,a=t&&t.grade!=="good"?Rq(e):[];return Ya(gt,{label:c("Main color"),icon:Ya(Eq,{}),hint:t?c(Lq[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:Pq("div",{className:"sf-readability",children:[Ya("p",{className:"sf-readability-advice",children:Fq(r,!0)}),Ya("div",{className:"sf-readability-suggestions",children:a.map(n=>{let s=Ma(n,qb(e));return Ya(Oq,{content:c("Use {colour}",{colour:n.toUpperCase()}),children:Ya(_q,{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 Fq(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 Hq,ChevronDownIcon as hR,ChevronUpIcon as Wq,GroundIcon as $q,LayoutIcon as Uq,SquareIcon as zq,TextSmallIcon as Gq,TypeIcon as mR}from"efficient-easel/icons";var Xc=e=>c("Theme {n}",{n:e+1});function xR({colors:e}){let o=ht(e),t=kc(e)??o.accent;return qa("span",{className:"sf-theme-page",style:{background:o.background,color:o.text},"aria-hidden":!0,children:[he("span",{className:"sf-theme-eyebrow",style:{color:o.muted},children:c("label")}),qa("span",{className:"sf-theme-headline",children:[c("Heading")," ",he("span",{style:{color:o.accent},children:c("main")})]}),he("span",{className:"sf-theme-body",children:c("body text")}),qa("span",{className:"sf-theme-row",children:[he("span",{className:"sf-theme-btn",style:{background:t,color:Oy(e,o.accent)},children:c("button")}),he("span",{className:"sf-theme-mini",style:{background:o.surface,borderColor:o.line},children:c("card")})]})]})}var Zb={"Text color":he(mR,{}),"Label color":he(Gq,{}),Background:he($q,{}),"Panels & cards":he(Uq,{}),Borders:he(zq,{}),"Button color":he(Hq,{}),"Button text color":he(mR,{})};function jq({label:e,colorKey:o,value:t,onChange:r,idPrefix:a="sf-theme-ink"}){let n=`${a}-${o}`;return he(gt,{label:c(e),icon:Zb[e],id:n,value:t,onChange:s=>r(o,s)})}function Kq({value:e,accent:o,onChange:t,idPrefix:r="sf-theme-ink"}){let a=`${r}-button`,n=e!==void 0&&Nq(e)===e.toLowerCase(),s=n?e:o;return he(gt,{label:c("Button color"),icon:Zb["Button color"],id:a,value:s,caption:n?s:c("Main"),onChange:t})}function Vq({colors:e,accent:o,onChange:t,idPrefix:r="sf-theme-ink"}){let a=`${r}-button-ink`,n=v_(e),s=Oy(e,o),i=kc(e)??o,l=Si(Ma(s,i)??0);return he(gt,{label:c("Button text color"),icon:Zb["Button text color"],hint:n&&l!=="good"?c("{grade} on the button",{grade:c(bi[l])}):void 0,id:a,value:s,caption:n?s:c("Auto"),onChange:t})}var Yq=[{colour:!0},{label:"Text color",key:"text"},{label:"Label color",key:"muted"},{button:!0},{buttonInk:!0},{moduleBreak:!0},{label:"Background",key:"background"},{label:"Panels & cards",key:"surface"},{label:"Borders",key:"line"}];function Jb({colors:e,onChange:o,idPrefix:t}){let r=ht(e);return he(Bq,{children:Yq.map(a=>"colour"in a?he(uR,{value:e,onChange:o},"colour"):"moduleBreak"in a?he("div",{className:"sf-theme-module-break","aria-hidden":"true"},"module-break"):"button"in a?he(Kq,{value:e.button,accent:r.accent,onChange:n=>o({...e,button:n}),idPrefix:t},"button"):"buttonInk"in a?he(Vq,{colors:e,accent:r.accent,onChange:n=>o({...e,buttonInk:n}),idPrefix:t},"buttonInk"):he(jq,{label:a.label,colorKey:a.key,value:r[a.key],onChange:(n,s)=>o({...e,[n]:s}),idPrefix:t},a.key))})}function im({index:e,colors:o,selected:t,role:r="radio",open:a,editable:n=!0,onPick:s,onEdit:i,onChangeColors:l}){let d=ht(o),f=Xc(e),u=e<_y.length&&!o.brandInk?_y[e]:null,p=Si(Ma(d.text,d.background)??0),m=u?JSON.stringify(o)!==JSON.stringify(u):!1,h=a!==void 0;return qa("div",{className:`sf-theme-card${t?" is-selected":""}`,children:[he("button",{type:"button",role:r,"aria-checked":r==="radio"?t:void 0,"aria-selected":r==="option"?t:void 0,"aria-label":f,className:"sf-theme-pick",onClick:s,children:he(xR,{colors:o})}),qa("div",{className:"sf-theme-foot",children:[he("span",{className:"sf-theme-name",children:f}),p!=="good"&&he("span",{className:"sf-theme-warn",children:c(bi[p])}),n&&i&&h&&he("span",{className:"sf-theme-edit",children:he(Mq,{content:a?c("Collapse"):c("Edit colors"),children:he(Dq,{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(Wq,{size:14}):he(hR,{size:14})})})}),n&&i&&!h&&he(Xb,{variant:"secondary",size:"sm",className:"sf-theme-edit","aria-label":c("Edit {name}",{name:f}),onClick:i,children:c("Edit")})]}),a&&qa("div",{id:`sf-theme-colours-${e}`,className:"sf-theme-colours",children:[he(Jb,{colors:o,onChange:I=>l?.(I)}),u&&he(Xb,{variant:"link",size:"sm",className:"sf-theme-reset",disabled:!m,onClick:()=>l?.({...u}),children:m?c("Reset {name} to the preset",{name:f}):c("Not changed")})]})]})}function gR({colors:e,name:o,nameId:t,open:r,menuId:a,labelId:n,buttonRef:s,onClick:i,onKeyDown:l,onEdit:d}){return qa("div",{className:"sf-secttheme-btn",children:[he("button",{ref:s,type:"button",className:"sf-theme-pick","aria-expanded":r,"aria-controls":a,"aria-labelledby":`${n} ${t}`,onClick:i,onKeyDown:l,children:e?he(xR,{colors:e}):he("span",{className:"sf-secttheme-nopreview","aria-hidden":"true"})}),qa("div",{className:"sf-theme-foot",children:[he("span",{id:t,className:"sf-theme-name",children:o}),d&&he(Xb,{variant:"secondary",size:"sm",className:"sf-theme-edit","aria-label":c("Edit {name}",{name:o}),onClick:d,children:c("Edit")}),he("button",{type:"button",className:"sf-secttheme-caret","aria-hidden":"true",tabIndex:-1,onClick:i,children:he(hR,{size:12,className:"sf-multi-caret","aria-hidden":"true"})})]})]})}import{useCallback as aS,useEffect as wR,useRef as fm}from"react";import{currentEaselSession as Zq}from"efficient-easel/screen/lib/session";import{useEaselSession as Jq}from"efficient-easel/screen/lib/session-context";import{useSyncExternalStore as qq}from"react";var yR,Qb=null,Yn=null,lm=0,eS=new Set;function oS(e){yR=e;for(let o of eS)o()}function tS(e){Qb=e,lm+=1,Yn&&clearTimeout(Yn),Yn=null,oS(void 0)}function cm(e){lm+=1,oS(e)}function ma(e=250){Qb&&(Yn&&clearTimeout(Yn),Yn=setTimeout(()=>{Yn=null;let o=Qb;if(!o)return;let t=++lm;o().then(r=>{t===lm&&oS(r)}).catch(()=>{})},e))}function IR(){return yR}function Xq(e){return eS.add(e),()=>{eS.delete(e)}}function dm(){return qq(Xq,IR,IR)}var rS=new Set;function bR(e){return rS.add(e),()=>{rS.delete(e)}}async function SR(){let e=(await Promise.allSettled([...rS].map(async o=>o()))).find(o=>o.status==="rejected");if(e)throw e.reason}import{WebsiteBackendError as Qq}from"efficient-easel/screen/lib/backend-error";function CR(e=Zq()){return(o,t,r)=>{let a=Ge(e).theme;return a?a.update(o,r?{siteId:r}:void 0):Promise.reject(new Qq("invalid","This backend stores no site theme."))}}function vR(e){return e.themeFromDocument?{status:"skipped",reason:"template"}:e.token?null:{status:"skipped",reason:"no-token"}}async function eX(e,o=CR()){let{themeFromDocument:t,token:r,siteId:a,patch:n}=e,s=vR({themeFromDocument:t,token:r});if(s)return s;if(Object.keys(n).length===0)return{status:"skipped",reason:"empty"};try{return await o(n,r,a??void 0),{status:"saved"}}catch(i){return{status:"failed",error:i}}}function Wi({themeFromDocument:e,tokenRef:o,siteId:t,onResult:r}){let a=fm(null),n=fm({}),s=Jq(),i=fm(r);i.current=r;let l=fm(null),d=aS(p=>{if(p.status==="skipped"){let m=`skipped:${p.reason}`;if(l.current===m)return;l.current=m}else l.current=null;i.current?.(p)},[]),f=aS(async()=>{a.current&&(clearTimeout(a.current),a.current=null);let p=n.current;n.current={};let m=await eX({themeFromDocument:e,token:o?.current,siteId:t,patch:p},CR(s));return d(m),m.status==="saved"&&ma(),m.status==="failed"&&(n.current={...p,...n.current}),m},[e,o,t,d,s]),u=aS((p,m=!1)=>{let h=vR({themeFromDocument:e,token:o?.current});if(h){d(h);return}n.current={...n.current,...p},a.current&&clearTimeout(a.current),m?f():a.current=setTimeout(()=>{f()},500)},[e,o,f,d]);return wR(()=>()=>{f()},[f]),wR(()=>bR(async()=>{if(!a.current&&Object.keys(n.current).length===0)return;let p=await f();if(p.status==="failed")throw p.error}),[f]),{persist:u,flush:f}}var nS="Follow the page",_R="Follow the slideshow",lX=e=>c("Editing {name} changes it everywhere.",{name:e});function cX({colors:e}){if(!e)return ko("span",{className:"sf-secttheme-chip sf-secttheme-chip--none","aria-hidden":"true"});let o=ht(e);return qn("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 dX({themes:e,value:o,onPick:t,onEdit:r,menuId:a,followLabel:n}){return qn("div",{className:"sf-multi-menu sf-secttheme-menu",id:a,role:"listbox",children:[n!==void 0&&qn(oX,{children:[qn("button",{type:"button",role:"option","aria-selected":o===null,className:`sf-secttheme-item${o===null?" is-active":""}`,onClick:()=>t(Hr),children:[ko(cX,{}),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:Xc(o)})}),e.map((s,i)=>i===o?null:ko(im,{role:"option",index:i,colors:s,selected:!1,onPick:()=>t(i),onEdit:()=>r(i)},i))]})}function fX({index:e,colors:o,onChange:t,onDone:r}){let a=Xc(e),n=ER();return qn("div",{className:"sf-secttheme-sheet",children:[qn("div",{className:"sf-secttheme-sheet-head",children:[ko("span",{children:a}),ko(aX,{variant:"secondary",className:"sf-secttheme-done",onClick:r,children:c("Done")})]}),ko("div",{className:"sf-secttheme-rows",children:ko(Jb,{colors:o,onChange:t,idPrefix:n})}),ko("p",{className:"sf-secttheme-warn",children:lX(a)})]})}function OR({value:e,onChange:o,followLabel:t,hint:r}){let{theme:a,setTheme:n}=fe(),s=vo(a),i=tX(iX),l=i?.tokenRef,d=i?.siteId??null,f=!i?.capabilities?.hasSiteTheme,{persist:u,flush:p}=Wi({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?yi(m):void 0),[v,b]=PR(!1),[y,k]=PR(null),L=TR(null),O=TR(null),D=ER(),T=kR(()=>{b(!1),k(null)},[]),F=kR(()=>{!v&&y===null||(p(),T())},[v,y,T,p]);nX(L,F);let C=P=>{o(P),T()},R=P=>{if(y===null)return;let _=h.map((G,Z)=>Z===y?P:G),W={...m,themes:_};n(W),u({selected_preset:W.selected,theme_presets:W.themes})};return qn("div",{className:"sf-secttheme",ref:L,children:[ko(sX,{label:c("Theme"),icon:ko(rX,{}),labelId:`${D}-label`,hint:r,children:ko(gR,{colors:S,onEdit:I!==null?()=>{k(I),b(!1)}:void 0,name:w?Xc(I):c(t??nS),nameId:`${D}-value`,labelId:`${D}-label`,open:v,menuId:D,buttonRef:O,onClick:()=>{k(null),b(P=>!P)},onKeyDown:P=>{P.key==="Escape"&&(v||y!==null)&&(P.preventDefault(),T())}})}),v&&y===null&&ko("div",{onKeyDown:P=>{P.key==="Escape"&&(P.preventDefault(),T(),O.current?.focus())},children:ko(dX,{themes:h,value:I,onPick:C,onEdit:P=>{k(P),b(!1)},menuId:D,followLabel:t})}),y!==null&&h[y]&&ko(fX,{index:y,colors:h[y],onChange:R,onDone:()=>{p(),T(),O.current?.focus()}})]})}import{jsx as AR}from"react/jsx-runtime";import{useId as pX}from"react";import{FieldSelect as uX}from"efficient-easel/fields";import{SettingsField as mX}from"efficient-easel/panel";function hX(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 vAe({label:e,options:o,fallback:t,value:r,onChange:a,placeholder:n,bare:s=!1,icon:i}){let l=pX(),d=`${l}-label`,f=`${l}-button`,u=r??"",p=o.some(w=>w.value===u)?u:t,m=c(e),h=n===void 0?void 0:c(n),I=AR(uX,{id:f,value:p,options:hX(o),onChange:a,placeholder:h,searchPlaceholder:h,...s?{ariaLabel:m}:{ariaLabelledBy:`${d} ${f}`},searchable:!0,groupCount:!0,inline:!0});return s?I:AR(mX,{label:m,labelId:d,icon:i,children:I})}import{jsx as Zn,jsxs as YX}from"react/jsx-runtime";import{SettingsField as eL}from"efficient-easel/panel";import{LinkIcon as qX}from"efficient-easel/icons";import{LinkPicker as XX,TextLinkField as ZX}from"efficient-shell/ui";import{useEffect as QR,useMemo as xm,useRef as JX,useState as hm}from"react";import{currentEaselSession as xX}from"efficient-easel/screen/lib/session";function RR(){return xX().auth.token}import{currentEaselSession as QX}from"efficient-easel/screen/lib/session";import{useScreenDocument as eZ}from"efficient-easel/screen/components/ScreenDocumentContext";var gX=()=>({choosePage:c("Choose a page"),chooseSection:c("Choose a section"),noSections:c("No section anchors yet"),sectionHint:c("Jumps to a section on that page."),choosePost:c("Choose a post"),chooseProduct:c("Choose a product"),choosePopup:c("Choose a popup")});function LR(e,o,t){if(!e)return"page";if(xA(e))return"popup";if(e.startsWith("/journal/"))return"blog";if(yA(e))return"product";if(e.includes("#")){let r=e.slice(0,e.indexOf("#"));if(r===""||r==="/"||o.includes(r))return"anchor"}return e==="/"||o.includes(e)||t&&t.listingPaths.includes(t.targetOf(e))?"page":"custom"}function sS(e,o){let t=gX(),r=e.pages.map(f=>({value:zc(f.slug),label:f.title})),a=o?.pageOptions?o.pageOptions(r):r,n=a.map(f=>f.value),s=e.pages.map(f=>({label:f.title,options:IA(...f.docs).map(u=>({value:Wu(f.slug,u.slug),label:u.name}))})).filter(f=>f.options.length>0),i=f=>{switch(f){case"page":return{type:"select",options:a,placeholder:t.choosePage};case"anchor":return{type:"groups",groups:s,placeholder:s.length?t.chooseSection:t.noSections};case"blog":return{type:"select",options:e.posts.map(u=>({value:gA(u.slug),label:u.title||u.slug})),placeholder:t.choosePost};case"product":return{type:"select",options:e.products.map(u=>({value:u.href,label:u.name||u.href})),placeholder:t.chooseProduct};case"popup":return{type:"select",options:(e.popups??[]).map(u=>({value:hA(u.slug),label:u.title||u.slug})),placeholder:t.choosePopup};case"custom":return{type:"text"}}},l=mA(e.offers).map(f=>({value:f.value,label:c(f.label),target:i(f.value),...f.value==="anchor"?{hint:t.sectionHint}:{},...f.value==="blog"||f.value==="product"||f.value==="popup"?{hideWhenEmpty:!0}:{}}));if(!o)return{kinds:l,rules:{kindOf:f=>LR(f,n),targetOf:f=>f,readFilter:()=>null,withFilter:f=>f}};let d=f=>{let u=o.withFilter(f,null);return o.listingPaths.includes(u)?u:f};return{kinds:l,rules:{kindOf:f=>LR(f,n,{listingPaths:o.listingPaths,targetOf:d}),targetOf:d,readFilter:o.readFilter,withFilter:o.withFilter},filtersFor:f=>o.listingPaths.includes(f)?o.filtersFor(f):null}}import{useEaselSession as oZ}from"efficient-easel/screen/lib/session-context";function Mo(e,o){if(typeof e=="string")return e||o;if(e&&typeof e=="object"&&"text"in e){let t=e.text;return be(t)??o}return o}function FR(e,o){return q(e)??o}function ha(e,o){return typeof e=="boolean"?e:o}function pm(e,o){if(!Array.isArray(e))return o;let t=e.map(r=>typeof r=="string"?r:Mo(r?.text,"")).map(r=>r.trim()).filter(Boolean);return t.length?t:o}var NR=["delay","scroll","exit"],DR=["all","chosen","except"],MR=["visit","days","never","once"],IX=["all","desktop","phone"],yX=["stop","continue"],HR={min:0,max:60},WR={min:10,max:90},$R={min:1,max:90},mr={autoOpen:!1,trigger:"delay",autoOpenDelaySec:15,scrollPercent:50,showOn:"all",showOnPages:[],devices:"all",hideAfter:"days",hideDays:7,afterSubmit:"stop",startDate:null,endDate:null};function _t(e,o,t){return typeof o=="string"&&e.includes(o)?o:t}function $i(e,o,t){let r=FR(e,t);return Math.min(o.max,Math.max(o.min,Math.round(r)))}function bX(e){return typeof e.hideAfter=="string"?_t(MR,e.hideAfter,mr.hideAfter):e.oncePerSession===!0?"visit":e.oncePerSession===!1?"never":mr.hideAfter}function SX(e){return Array.isArray(e)?e.map(o=>typeof o=="string"?o.trim():"").filter(Boolean).map(o=>o.startsWith("/")?o:`/${o}`):[]}function BR(e){if(typeof e!="string")return null;let o=e.trim();return/^\d{4}-\d{2}-\d{2}$/.test(o)?o:null}function UR(e){let o=e??{},t=mr;return{autoOpen:ha(o.autoOpen,t.autoOpen),trigger:_t(NR,o.trigger,t.trigger),autoOpenDelaySec:$i(o.autoOpenDelaySec,HR,t.autoOpenDelaySec),scrollPercent:$i(o.scrollPercent,WR,t.scrollPercent),showOn:_t(DR,o.showOn,t.showOn),showOnPages:SX(o.showOnPages),devices:_t(IX,o.devices,t.devices),hideAfter:bX(o),hideDays:$i(o.hideDays,$R,t.hideDays),afterSubmit:_t(yX,o.afterSubmit,t.afterSubmit),startDate:BR(o.startDate),endDate:BR(o.endDate)}}import{parseHexColor as wX}from"efficient-shell/format";var hr="#000000";var iS="popup",CX=J_,vX=["auto","full"],kX=["inside","outside","none"],TX={min:240,max:1440},PX={min:0,max:100},Zc={placement:"center",fullWidth:!1,width:720,height:"auto",tintColor:hr,tintOpacity:60,outsideClick:!0,closeButton:"inside"};function EX(e,o){let t=typeof e=="string"?e.trim():"";return t&&wX(t)===t.toLowerCase()?t:o}function lS(e,o=Zc){let t=e??{},r=o;return{placement:_t(CX,t.placement,r.placement),fullWidth:ha(t.fullWidth,r.fullWidth),width:$i(t.width,TX,r.width),height:_t(vX,t.height,r.height),tintColor:EX(t.tintColor,r.tintColor),tintOpacity:$i(t.tintOpacity,PX,r.tintOpacity),outsideClick:ha(t.outsideClick,r.outsideClick),closeButton:_t(kX,t.closeButton,r.closeButton)}}var zR="cart-drawer",KAe="cart-drawer",_X={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 VAe(e,o){return o===0?e.subtitleEmpty:o===1?e.subtitleOne:e.subtitleMany.replace("{count}",String(o))}function YAe(e){let o=e??{},t=_X;return{kickerBadge:Mo(o.kickerBadge,t.kickerBadge),kickerText:Mo(o.kickerText,t.kickerText),titleLead:Mo(o.titleLead,t.titleLead),titleAccent:Mo(o.titleAccent,t.titleAccent),subtitleEmpty:Mo(o.subtitleEmpty,t.subtitleEmpty),subtitleOne:Mo(o.subtitleOne,t.subtitleOne),subtitleMany:Mo(o.subtitleMany,t.subtitleMany),leadTimeValue:Mo(o.leadTimeValue,t.leadTimeValue),shipsToFallback:Mo(o.shipsToFallback,t.shipsToFallback),promises:pm(o.promises,t.promises),emptyKicker:Mo(o.emptyKicker,t.emptyKicker),emptyBody:Mo(o.emptyBody,t.emptyBody)}}var OX=["right","left"],AX={...Zc,width:520,tintOpacity:68};function qAe(e){let o=e??{};return{...lS(o,AX),placement:_t(OX,o.placement,"right"),height:"full",fullWidth:!1,autoOpen:ha(o.autoOpen,!0)}}var jR="consent-banner",QAe="consent-banner";var RX=[{value:"bar",label:"Bar"},{value:"card",label:"Card"}],eRe="Layout",GR={layout:"bar"},LX=e=>RX.some(o=>o.value===e);function oRe(e){let o=Mo((e??{}).layout,GR.layout);return{layout:LX(o)?o:GR.layout}}var tRe={...Zc,placement:"bottom-center",fullWidth:!0,width:440,tintOpacity:0,outsideClick:!1,closeButton:"none"};var FX="consentWords",BX=["eyebrow","notice","accept","reject","choose"];function cS(e){let o=(e??{})[FX];return typeof o=="string"&&BX.includes(o)?o:null}function dS(e){let o=e?.props;return o?cS(o)!==null?!0:Object.values(o).some(t=>Array.isArray(t)&&t.some(r=>r&&typeof r=="object"&&"props"in r&&dS(r))):!1}var NX=["meta","eyebrow","heading","body","statName","statValue","formEyebrow","formHeading","formIntro","fieldLabel","option","finePrint","dismiss","doneHeading","doneBody"],nRe={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"},DX={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"},sRe={meta:{font:"--pp-meta-font",size:"--pp-meta-size"},eyebrow:{font:"--pp-eyebrow-font",size:"--pp-eyebrow-size"},heading:{font:"--pp-heading-font",size:"--pp-heading-size"},body:{font:"--pp-body-font",size:"--pp-body-size"},statName:{font:"--pp-statname-font",size:"--pp-statname-size"},statValue:{font:"--pp-statvalue-font",size:"--pp-statvalue-size"},formEyebrow:{font:"--pp-formeyebrow-font",size:"--pp-formeyebrow-size"},formHeading:{font:"--pp-formheading-font",size:"--pp-formheading-size"},formIntro:{font:"--pp-formintro-font",size:"--pp-formintro-size"},fieldLabel:{font:"--pp-fieldlabel-font",size:"--pp-fieldlabel-size"},option:{font:"--pp-option-font",size:"--pp-option-size"},finePrint:{font:"--pp-fineprint-font",size:"--pp-fineprint-size"},dismiss:{font:"--pp-dismiss-font",size:"--pp-dismiss-size"},doneHeading:{font:"--pp-doneheading-font",size:"--pp-doneheading-size"},doneBody:{font:"--pp-donebody-font",size:"--pp-donebody-size"}};function KR(e){let o={};for(let t of NX){let r=aa(e[DX[t]]);r&&(o[t]=r)}return o}var VR={heading:"Join our email list",placeholder:"Email address",buttonLabel:"Subscribe"},MX={lead:"We accept"},mm={...MX,methods:[],size:"sm",align:"start",dataSource:gp},xr="site-footer";var cRe=xr,dRe={desktop:!0,tablet:!0,mobile:!0},fRe={desktop:!1,tablet:!1,mobile:!1},fS=1,YR=6,pRe=Array.from({length:YR-fS+1},(e,o)=>fS+o),um={desktop:6,tablet:3,mobile:2},HX={2:{desktop:2,tablet:2,mobile:1},3:{desktop:3,tablet:3,mobile:1},4:{desktop:4,tablet:2,mobile:2},5:{desktop:5,tablet:3,mobile:2},6:{desktop:6,tablet:3,mobile:2}},Xn=e=>Math.min(Math.max(Math.round(e),fS),YR);function uRe(e){if(typeof e=="number")return HX[Xn(e)]??{desktop:Xn(e),tablet:Xn(e),mobile:Xn(e)};if(e&&typeof e=="object"){let o=e;return{desktop:Xn(o.desktop??um.desktop),tablet:Xn(o.tablet??um.tablet),mobile:Xn(o.mobile??um.mobile)}}return{...um}}var pS="subscribe-popup",SRe="subscribe-popup",WX=[pS,xr,zR,jR];function XR(e){return WX.includes(e)}var $X=["right","left"],UX={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:mr.autoOpen,autoOpenDelaySec:mr.autoOpenDelaySec,formSlug:"",trigger:mr.trigger,scrollPercent:mr.scrollPercent,showOn:mr.showOn,showOnPages:[],hideAfter:mr.hideAfter,hideDays:mr.hideDays,formSide:"right",valuePanelOnPhone:!1,sectionAccent:void 0,sectionCorners:void 0,sectionCornerSides:void 0,textStyles:{}},lo=Mo,zX=ha,ZR=pm;function qR(e,o){if(e==null)return o;let t=r=>r.trim()?r:"";if(typeof e=="string")return t(e);if(typeof e=="object"&&"text"in e){let r=e.text;return typeof r=="string"?t(r):""}return o}function GX(e,o){return Array.isArray(e)?ZR(e,[]):o}function jX(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 CRe(e){let o=e??{},t=UX,r=UR(o);return{metaLabel:lo(o.metaLabel,t.metaLabel),issueLabel:qR(o.issueLabel,t.issueLabel),issueNumber:qR(o.issueNumber,t.issueNumber),kicker:lo(o.kicker,t.kicker),heading:lo(o.heading,t.heading),deck:lo(o.deck,t.deck),stats:jX(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:ZR(o.interests,t.interests),frequencyLabel:lo(o.frequencyLabel,t.frequencyLabel),frequencies:GX(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:_t($X,o.formSide,t.formSide),valuePanelOnPhone:zX(o.valuePanelOnPhone,t.valuePanelOnPhone),sectionAccent:o.sectionAccent,sectionCorners:o.sectionCorners,sectionCornerSides:o.sectionCornerSides,textStyles:KR(o)}}function KX(e,o=Math.random){for(;;){let t=`popup-${Math.floor(o()*2176782336).toString(36).padStart(6,"0")}`;if(!e.has(t))return t}}function VX(e){return{root:{props:{title:e,kind:iS}},content:[],zones:{}}}function JR(e,o,t){return{slug:KX(o,t),title:e,kind:xb,layout:VX(e)}}function Jc(e){return e?.root?.props?.kind===iS}function oL(e){let o=new Map;return(t="")=>{let r=RR(),a=o.get(t);if(!a||a.token===null&&r!==null){let n=r||!QX().usesBridgedToken?e(r??"",t).catch(()=>[]):Promise.resolve([]);return o.set(t,{promise:n,token:r}),n}return a.promise}}var tZ=oL(async(e,o)=>{let t=o?{siteId:o}:void 0,{pages:r}=Ge();return r.linkTargets?r.linkTargets(t):(await r.list(t)).map(a=>({id:a.id,slug:a.slug,label:a.label,layout:null}))}),rZ=oL(async(e,o)=>await Ge().blog?.posts(o?{siteId:o}:void 0)??[]);function aZ({value:e,onChange:o,label:t="Link",data:r,filters:a}){let n=xm(()=>sS(r,a),[r,a]),s=c(t);return Zn(eL,{label:s,icon:Zn(qX,{}),children:Zn(XX,{value:e,onChange:i=>o(i),kinds:n.kinds,rules:n.rules,filtersFor:n.filtersFor,label:s})})}function tL(){let{siteId:e,capabilities:o}=eZ(),{offersCommerce:t,hasBlog:r}=o,[a,n]=hm([]),[s,i]=hm([]),[l,d]=hm([]),[f,u]=hm(null),p=oZ().chrome,m=p?.products?.list,h=p?.linkFilters,I=h?void 0:p?.linkRow,w=JX(!0);QR(()=>(w.current=!0,()=>{w.current=!1}),[]),QR(()=>{let b=!0;return tZ(e??void 0).then(y=>b&&w.current&&n(y)),r&&rZ(e??void 0).then(y=>b&&w.current&&i(y)),t&&m?.().then(y=>b&&w.current&&d(y)),t&&h?h.load(e).catch(()=>null).then(y=>b&&w.current&&u(()=>y)):u(null),()=>{b=!1}},[e,t,r,m,h]);let S=xm(()=>({pages:a.filter(b=>!XR(b.slug)&&!Jc(b.layout)).map(b=>({slug:b.slug,title:b.label,docs:[b.layout]})),popups:a.filter(b=>b.slug===pS||Jc(b.layout)).map(b=>({slug:b.slug,title:b.label})),posts:r?s.map(b=>({slug:b.slug,title:b.title})):[],products:t?l.map(b=>({href:b.href,name:b.name})):[],offers:{offersCommerce:t,offersService:r}}),[a,s,l,t,r]),v=xm(()=>f?f(S.pages):null,[f,S]);return{data:S,filters:v,pages:a,offersCommerce:t,HostLinkRow:I}}function zRe({label:e,icon:o,text:t,onTextChange:r,link:a,onLinkChange:n}){let{data:s,filters:i}=tL(),l=xm(()=>sS(s,i),[s,i]),d=c(e);return Zn(eL,{label:d,icon:o,children:Zn(ZX,{label:d,text:t,onTextChange:r,link:a,onLinkChange:f=>n(f),kinds:l.kinds,rules:l.rules,filtersFor:l.filtersFor})})}function rL({value:e,onChange:o,label:t="Link"}){let r=typeof e=="string"?e:"",{data:a,filters:n,pages:s,offersCommerce:i,HostLinkRow:l}=tL(),d=a.pages.map(u=>zc(u.slug)),f=i&&l&&(r==="/"||d.includes(r))?l:void 0;return YX("div",{children:[Zn(aZ,{value:r,onChange:o,label:t,data:a,filters:n}),f&&Zn(f,{value:r,onChange:o,pages:s})]})}import{UiIcon as _F}from"efficient-easel/draw/client";import{phoneKey as yL,resolveViewValue as hZ,tabletKey as bL,viewKeyAt as Jn}from"efficient-easel/draw";import{SECTION_PAD_UNIT_KEY as wL,SITE_SIDE as xZ,convertLength as gZ,isLengthUnit as IZ,isSiteSide as CL,sideLengthAt as yZ,sideValueAt as bZ,withLength as IS}from"efficient-easel/screen/lib/content/length-units";import{convertLength as nZ}from"efficient-easel/screen/lib/content/length-units";var je={min:1e3,max:2e3,step:50,default:1600};function Ui(e){return{maxWidth:e,marginInline:"auto",width:"100%"}}var uS="--sf-site-width",Ho=`var(${uS},${je.default}px)`,Qc="100vw",VRe=`max-w-[${Ho}]`,YRe=`max-w-[${je.default}px]`;function iL(e){return typeof e!="number"||!Number.isFinite(e)?je.default:Math.round(Math.min(Math.max(e,je.min),je.max))}function lL(e,o){let t=Bn(e,o,"size",je);if(t!==null)return{[uS]:t};let r=iL(e);return r===je.default?{}:{[uS]:`${r}px`}}var ct={min:0,max:80,step:4,default:40},mS="--sf-site-gutter",gr={min:0,max:24,step:4},aL="--sf-site-gutter-phone",sZ="max-view-tablet:[--sf-site-gutter:var(--sf-site-gutter-phone)]!",iZ="max-view-wide:[&_[data-sf-line~=edge]:not([data-sf-line~=edge]_*)]:[--sf-site-gutter:var(--sf-site-gutter-phone)]",Ot=`var(${mS},${ct.default}px)`,lZ=`px-[${Ot}]`;var Gr={md:`min(24px,${Ot})`,sm:`min(20px,${Ot})`,frame:`min(24px,${Ot})`,tabs:`min(16px,${Ot})`},qRe=[[`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-[${Ot}]`,"view-wide:px-10"],[`max-view-tablet:px-[min(24px,${Ot})]`,"max-view-tablet:px-6"],[`max-view-wide:-mx-[min(20px,${Ot})]`,"max-view-wide:-mx-5"],[`max-view-tablet:-mx-[min(20px,${Ot})]`,"max-view-tablet:-mx-5"],[`-mx-[${Ot}]`,"-mx-10"],[lZ,"px-10"]];var cL="max-view-wide:px-[min(20px,var(--sf-site-gutter,40px))]";function Xa(e){return cZ[e??"box"]}var nL="var(--sf-pad-site,var(--sf-box-g,var(--sf-site-gutter,40px)))",sL="[--sf-edge-g:var(--sf-pad-site)]",cZ={box:{className:"[--sf-pad-site:var(--sf-box-g,var(--sf-site-gutter,40px))] max-[960px]:[--sf-pad-site:min(24px,var(--sf-box-g,var(--sf-site-gutter,40px)))]",value:nL,edge:sL,frame:"max-[960px]:px-[min(24px,var(--sf-site-gutter,40px))]"},site:{className:"[--sf-pad-site:var(--sf-box-g,var(--sf-site-gutter,40px))] max-view-wide:[--sf-pad-site:min(20px,var(--sf-box-g,var(--sf-site-gutter,40px)))]",value:nL,edge:sL,frame:cL}},XRe=`mx-auto max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)] ${cL}`,dL="[--sf-box-g:var(--sf-site-gutter,40px)] [&>*]:[--sf-site-gutter:0px]";var fL="mx-auto max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)] max-view-desktop:px-[min(24px,var(--sf-site-gutter,40px))]";function gm(e){return typeof e!="number"||!Number.isFinite(e)?ct.default:Math.round(Math.min(Math.max(e,ct.min),ct.max))}function pL(e,o){let t=Bn(e,o,"spacing",ct);if(t!==null)return{[mS]:t};let r=gm(e);return r===ct.default?{}:{[mS]:`${r}px`}}function Im(e){return typeof e!="number"||!Number.isFinite(e)?null:Math.round(Math.min(Math.max(e,gr.min),gr.max))}function uL(e){return typeof e=="number"&&Number.isFinite(e)?iL(e):null}function mL(e,o){let t=Bn(e,o,"spacing",gr);if(t!==null)return{[aL]:t};let r=Im(e);return r===null?{}:{[aL]:`${r}px`}}function hL(e){return Im(e)===null?"":`${sZ} ${iZ}`}function ym(e,o){let t=Kp(e,o,"spacing",ct),r=t===null?gm(e):nZ(t,Ee(o),"px","mobile",gr);return Math.min(gr.max,r)}var xL=Ho,ZRe=`max-w-[${xL}]`,JRe=`max-w-[min(var(--sf-page-cap,${je.default}px),${je.default}px)]`,bm="--sf-hero-cap",dZ=`var(${bm},none)`,QRe=`max-w-[${dZ}]`,fZ="--sf-hero-bleed-m",pZ="--sf-hero-bleed-w",hS="--sf-hero-chrome-x",xS="--sf-hero-chrome-cap";function Sm(e){return e===!0?{[bm]:xL,[fZ]:"auto",[pZ]:"100%",[hS]:"24px",[xS]:"none"}:{}}var gS=`calc(${Ho} - ${Ot}*2)`,eLe=`max-w-[${gS.replace(/ /g,"_")}]`;var uZ="--sf-chrome-cap",mZ=`var(${uZ},${gS})`,gL="data-page-width";function IL(e){return e==="full"?"full":null}function oLe(e){return e==="full"?null:Ui(e==="content"?gS:mZ)}function tLe(e){if(e==="full")return"full";if(e==="content")return"content"}var zt={min:10,max:200,step:10};function SZ(e,o,t,r=0){let a=q(e),n=q(o);if(a===void 0&&n===void 0)return;let s=wm(t),i=l=>l===void 0?void 0:s==="px"?l:IS(l,s,r);return{paddingTop:i(a),paddingBottom:i(n)}}var wm=e=>Ee(e),wZ="sf-pad-top-phone",CZ="sf-pad-bottom-phone",vZ="--sf-pad-t-phone",kZ="--sf-pad-b-phone",TZ="sf-pad-left-phone",PZ="sf-pad-right-phone",EZ="--sf-pad-l-phone",_Z="--sf-pad-r-phone",OZ="sf-pad-top-tablet",AZ="sf-pad-bottom-tablet",RZ="sf-pad-left-tablet",LZ="sf-pad-right-tablet",FZ="--sf-pad-t-tablet",BZ="--sf-pad-b-tablet",NZ="--sf-pad-l-tablet",DZ="--sf-pad-r-tablet",vL="sf-section-pad";function ed(e){let o={desktop:e.unit,tablet:e.unitTablet,phone:e.unitPhone},t=SZ(e.top,e.bottom,e.unit,e.frame),r=od({left:e.left,right:e.right},{top:e.topPhone,bottom:e.bottomPhone,left:e.leftPhone,right:e.rightPhone},{top:e.topTablet,bottom:e.bottomTablet,left:e.leftTablet,right:e.rightTablet},{top:e.top,bottom:e.bottom,left:e.left,right:e.right},o,e.frame,e.sideSpace);return t===void 0&&!r.classes.length&&!Object.keys(r.style).length?null:{className:[vL,...r.classes].join(" "),style:{...t,...r.style}}}var MZ=e=>CL(e)?e:q(e),HZ=[["top","paddingTop",[OZ,FZ],[wZ,vZ]],["bottom","paddingBottom",[AZ,BZ],[CZ,kZ]],["left","paddingLeft",[RZ,NZ],[TZ,EZ]],["right","paddingRight",[LZ,DZ],[PZ,_Z]]];function SL(e,o,t){return!IZ(o)||o==="px"?e:gZ(e,"px",o,t,{min:0,max:zt.max,step:1})}function WZ(e,o,t,r={},a=0){let n=(m,h)=>{if(h==="px")return`${m}px`;let I=IS(m,h,a);return typeof I=="number"?`${I}px`:I},s={n:e,[bL("n")]:o,[yL("n")]:t,u:r.desktop,[bL("u")]:r.tablet,[yL("u")]:r.phone},i=hZ("spacing",q(e),q(o),q(t),pi()),l=(m,h,I)=>{if(bZ(s,{side:"n"},m,"side",["side"])?.value===xZ)return Xa().value;let w=yZ(s,{side:"n"},"u",m,"side");if(!w)return;let S=h!==null&&!I&&w.unit==="px"&&typeof i[h]=="number";return n(S?i[h]:w.value,w.unit)},d=l("desktop",null,!0),f={},u=l("tablet","tablet",o!==void 0);u!==void 0&&(o!==void 0||u!==d)&&(f.tablet=u);let p=l("mobile","phone",t!==void 0);return p!==void 0&&(t!==void 0||p!==d)&&(f.phone=p),f}function od(e,o,t={},r=e,a={},n=0,s="box"){let i={},l={},d=[],f=Xa(s),u=!1;for(let[p,m,...h]of HZ){let I=p==="left"||p==="right"?MZ:q,w=I(e[p]),S=p==="top"||p==="bottom"?n:0;CL(w)?(i[m]=f.value,u=!0):w!==void 0&&(i[m]=wm(a.desktop)==="px"?w:IS(w,wm(a.desktop),S));let v=WZ(I(r[p]),I(t[p]),I(o[p]),a,S);for(let[b,[y,k]]of[["tablet",h[0]],["phone",h[1]]]){let L=v[b];L!==void 0&&(d.push(y),l[k]=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"},Qn="padUnit";function td(e,o){let t=e[Qn],r=(a,n,s)=>{let i=q(a)??(s===void 0?void 0:SL(s,t,"desktop")),l=q(n);return l===void 0?i:(i??0)+SL(l,t,"desktop")};return{top:r(e.padTop,e.sectionPaddingTop,o.top),bottom:r(e.padBottom,e.sectionPaddingBottom,o.bottom)}}function kL(e,o,t={}){let r=td(e,o),a={...bS(e,jr,!0,Qn),top:r.top,bottom:r.bottom};t.noTop&&Object.assign(a,{top:0,topTablet:void 0,topPhone:void 0});let n=ed(a),s=n?n.className.split(" ").filter(i=>i!==vL):[];return{...s.length?{className:s.join(" ")}:{},style:n?.style??{}}}var xa={top:"sectionPaddingTop",bottom:"sectionPaddingBottom",left:"sectionPaddingLeft",right:"sectionPaddingRight"},yS=[...["top","bottom","left","right"].map(e=>[jr[e],xa[e]]),[Qn,wL]].flatMap(([e,o])=>[[e,o],...["tablet","mobile"].map(t=>[Jn(e,t),Jn(o,t)])]);function bS(e,o=xa,t=!0,r=o===xa?wL:void 0){let a={};if(r){e[r]!==void 0&&(a.unit=e[r]);for(let n of["tablet","mobile"])e[Jn(r,n)]!==void 0&&(a[Jn("unit",n)]=e[Jn(r,n)])}for(let n of t?["top","bottom","left","right"]:["top","bottom"]){a[n]=e[o[n]];for(let s of["tablet","mobile"])a[Jn(n,s)]=e[Jn(o[n],s)]}return a}function TL(e){return ed(e)}function PL(e,o){let t=(r,a)=>typeof r!="number"?void 0:wm(a)==="px"?r+o:r;return ed({...e,frame:o,top:t(e.top,e.unit),bottom:t(e.bottom,e.unit),topTablet:t(e.topTablet,e.unitTablet),bottomTablet:t(e.bottomTablet,e.unitTablet),topPhone:t(e.topPhone,e.unitPhone),bottomPhone:t(e.bottomPhone,e.unitPhone)})}import{BUTTON_PAD_KEYS as Cm,buttonBorderOf as $Z,buttonFillOpacityOf as UZ,buttonPadSidesOf as zZ,viewKeyAt as GZ}from"efficient-easel/draw";import{BUTTON_PAD_UNIT_KEY as SS,lengthOf as jZ}from"efficient-easel/screen/lib/content/length-units";var KZ="px-6 py-4",VZ=4,vm=e=>{let o=new RegExp(`\\bp${e}-(?:\\[(\\d+)px\\]|(\\d+))`).exec(KZ);if(!o)throw new Error(`BUTTON_PAD_CLASSES has no p${e}`);return o[1]!==void 0?Number(o[1]):Number(o[2])*VZ},ILe={top:vm("y"),right:vm("x"),bottom:vm("y"),left:vm("x")},_L="var(--btn)";function YZ(e){let o=e.variant==="ghost",t=UZ(e.buttonFillOpacity),r=$Z(e.buttonBorder),a=be(e.buttonColor);return{fillOpacity:t??(o?0:100),border:{width:r?.width??1,color:r?.color??a??(o?"currentColor":_L)},changed:t!==void 0||r!==void 0}}function yLe(e){let o=YZ(e);if(!o.changed)return null;let t=be(e.buttonColor)??_L;return{background:o.fillOpacity===0?"transparent":o.fillOpacity===100?t:`color-mix(in srgb, ${t} ${o.fillOpacity}%, transparent)`,borderWidth:jZ(o.border.width,Ee(e.buttonBorderUnit)),borderStyle:"solid",borderColor:o.border.color}}var qZ="var(--sf-button-radius, 0)";function bLe(e){let o=q(e.buttonCorners),t=$r(e.buttonCornerSides);if(o===void 0&&t===null)return null;let r=o===void 0?qZ:Me(Math.max(0,o),e.buttonCornersUnit);return{borderRadius:t===null?r:$n(r,t)}}function SLe(e){let o=(s,i)=>e[GZ(s,i)],t=s=>zZ({top:o(Cm.top,s),right:o(Cm.right,s),bottom:o(Cm.bottom,s),left:o(Cm.left,s)})??{},r={desktop:o(SS,"desktop"),tablet:o(SS,"tablet"),phone:o(SS,"mobile")},{classes:a,style:n}=od(t("desktop"),t("mobile"),t("tablet"),void 0,r);return Object.keys(n).length?{className:a.join(" "),style:n}:null}var EL="upper";function OL(e,o,t){let r=e&&typeof e=="object"?e:{},a=be(r.textStyle),n=a?be(o?.find(f=>f?.id===a)?.name):void 0,s=a?/^(heading|body)-(\d+)$/.exec(a):null,i=a?n||(s?t.styleName({kind:s[1],n:Number(s[2])}):a):t.noStyle,{cases:l}=t,d=be(r.case)??EL;return`${i} \xB7 ${l[d]??l[EL]}`}import{usePreviewParts as KQ}from"efficient-easel/draw/client";import{encodePartId as VQ}from"efficient-easel/draw";import{DEFAULT_EASEL_STRINGS as YQ,useEaselStrings as qQ}from"efficient-easel/strings";import{PIN_STICK_VAR as XZ,PIN_TRACK_POSITION_VAR as ZZ,pinAttrs as AL,pinStickVars as JZ,readPin as vS}from"efficient-shell/format";var PLe="Stick to top",Gt={min:0,max:200,step:4,fallback:0},rd={kind:"position",unitKey:"stickTopDistanceUnit"},RL=Ii(rd),[QZ,eJ,oJ]=RL,kS="Pin while scrolling",LL="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",TS=[yr,"stickTopScreensTablet","stickTopScreensPhone"],PS="Screens",es="stickTopStop",Za="screen",FL="Pin stops at",BL=[{value:"header",label:"Under the header"},{value:Za,label:"Screen top"}],NL="header",DL="Under the header: the section stops below the site header. Screen top: it stops at the top edge of the screen, under a see-through header.";function ES(e){return e===Za?Za:"header"}function ML(e){return e===Za?Za:void 0}var Ja="stickAbove",HL="Stays above",WL="On: the pinned box stays on top, and the sections after it scroll under it.";function tJ(e){return e.stickAbove===!0}var $L=["stickTop","stickTopDistance","stickTopTablet","stickTopDistanceTablet","stickTopPhone","stickTopDistancePhone",...RL,...TS,es,Ja],_S=new Set(["IntroBleed"]),UL=new Set(["CategoryBar","DocTabs","Contents"]);function rJ(e){return typeof e.stickTop=="boolean"?e.stickTop:e.sticky!==!1}var wS=e=>vS(!0,e).length,zi={any:["stickTop","stickTopTablet","stickTopPhone"].map(e=>({field:e,is:!0}))},km={all:[{not:{field:"stickTop",in:[!0,!1]}},{not:{field:"sticky",is:!1}}]};function CS(e,o="px"){let t=q(e)??Gt.fallback;return o!=="px"?Math.max(Gt.min,t):Math.min(Gt.max,Math.max(Gt.min,Math.round(t)))}function OS(e){return typeof e.stickTopTablet=="boolean"}function AS(e){return typeof e.stickTopPhone=="boolean"}function Gi(e,o={}){let t=o.intro?rJ(e):e.stickTop===!0,r=e,a=Ee(r[QZ]),n=CS(e.stickTopDistance,a),s=wS(e.stickTopScreens),i=OS(e),l=i?e.stickTopTablet===!0:t,d=i?Ee(r[eJ]):a,f=i?CS(e.stickTopDistanceTablet,d):n,u=i?wS(e.stickTopScreensTablet):s,p=AS(e),m=p?e.stickTopPhone===!0:l,h=p?Ee(r[oJ]):d,I=p?CS(e.stickTopDistancePhone,h):f,w=p?wS(e.stickTopScreensPhone):u;return{desktop:t,desktopDistance:n,desktopUnit:a,desktopScreens:s,tablet:l,tabletDistance:f,tabletUnit:d,tabletScreens:u,ownTablet:i,phone:m,phoneDistance:I,phoneUnit:h,phoneScreens:w,ownPhone:p}}function RS(e,o={}){let t=Gi(e,{intro:o.atScreenTop});if(!t.desktop&&!t.tablet&&!t.phone)return null;let r=o.atScreenTop===!0&&typeof e.stickTop!="boolean",a=t.desktop&&t.desktopScreens>0||t.tablet&&t.tabletScreens>0||t.phone&&t.phoneScreens>0,n=o.above===!0&&tJ(e),s=o.track===!0&&!r&&a&&!n,i=(u,p,m,h)=>Kn({tabletClass:"",tabletVar:`${u}-tablet`,phoneClass:"",phoneVar:`${u}-phone`},p,m,h).style,l={...o.atScreenTop||ES(e.stickTopStop)===Za?{[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)),...aJ(t.desktop&&t.desktopScreens===0,t.tablet&&t.tabletScreens===0,t.phone&&t.phoneScreens===0,i)};return{attrs:AL(vS(!0),"track").attrs,style:p}}let d=u=>u?"sticky":"static",f={...l,...t.desktop?{}:{[Ir.position]:"static"},...i(Ir.position,d(t.desktop),d(t.tablet),d(t.phone))};return{attrs:AL(vS(!0),"stick",n?{above:n}:{}).attrs,style:f}}function aJ(e,o,t,r){let a=[[Ir.stick,XZ],[Ir.trackPosition,ZZ]],[n,s,i]=[e,o,t].map(JZ);return Object.fromEntries(a.flatMap(([l,d])=>[...e?[[l,n[d]]]:[],...Object.entries(r(l,n[d],s[d],i[d]))]))}var nJ=["column","row","tabs","accordion"];var sJ={column:"Stacked",row:"One row",tabs:"Tabs",accordion:"Accordion"},zL={Flex:nJ,HeroGroup:["column","row"]},iJ={Flex:"row",HeroGroup:"column"},lJ={column:"flex-col",row:"flex-row",tabs:"flex-col",accordion:"flex-col"};function Kr(e,o){return zL[e].includes(o)?o:iJ[e]}function _Le(e,o){return lJ[Kr(e,o)]}function GL(e){return zL[e].map(o=>({label:sJ[o],value:o}))}import{viewKeyAt as LS}from"efficient-easel/screen/lib/content/view-tiers";var Pm=20,cJ=["solid","dashed","dotted"],Em=["top","right","bottom","left"],_m="sf-section-border",KL="sf-section-border-self",dJ=/^#(?:[0-9a-f]{3}|[0-9a-f]{4}|[0-9a-f]{6}|[0-9a-f]{8})$/i,fJ=e=>typeof e=="number"&&Number.isFinite(e)?`${Math.min(Pm,Math.max(0,Math.round(e)))}px`:void 0,ad={kind:"border",unitKey:"sectionBorderUnit"},VL=Ii(ad);function YL(e){let o=ad.unitKey;return{desktop:e[LS(o,"desktop")],tablet:e[LS(o,"tablet")],phone:e[LS(o,"mobile")]}}var jL=(e,o)=>o==="px"?fJ(e):typeof e=="number"&&Number.isFinite(e)?Me(Math.max(0,e),o):void 0;function Tm(e,{phone:o=!1,tablet:t=!1,unit:r}={}){if(!e||typeof e!="object")return;let a=o?"-phone":t?"-tablet":"",n={},s=Ee(r);for(let i of Em){let l=jL(e[i],s)??jL(e.width,s);l!==void 0&&(n[`--sf-border-${i}-width${a}`]=l)}return typeof e.style=="string"&&cJ.includes(e.style)&&(n[`--sf-border-style${a}`]=e.style),typeof e.color=="string"&&dJ.test(e.color)&&(n[`--sf-border-color${a}`]=e.color.toLowerCase()),Object.keys(n).length?n:void 0}function FS(e){let{width:o,...t}=e;return typeof o!="number"?e:{...t,...Object.fromEntries(Em.map(r=>[r,t[r]??o]))}}function qL(e,o,t,r={}){let a=Tm(e,{unit:r.desktop}),n=Tm(t,{tablet:!0,unit:r.tablet}),s=Tm(t,{phone:!0,unit:r.tablet}),i=Tm(o,{phone:!0,unit:r.phone}),l=s||i?{...s,...i}:void 0;return a||n||l?{...a,...n,...l}:void 0}var Om="sf.gapContainer",ga={min:-32,max:64,step:2},tF={Grid:{sm:12,md:24,lg:40},Flex:{sm:12,md:24,lg:40},FooterGroup:{sm:8,md:16,lg:32},HeroGroup:null,Events:null,GalleryB:null,ProductGrid:null},ji={Grid:24,Flex:24,FooterGroup:16,HeroGroup:0,Events:24,GalleryB:8,ProductGrid:2},pJ=new Set(["Events","GalleryB"]);function os(e,o,t){if(typeof o=="number"&&Number.isFinite(o)&&o>=ga.min)return o;if(typeof o=="string"){let r=tF[e]?.[o];if(typeof r=="number")return r}return typeof t=="number"&&Number.isFinite(t)?t:ji[e]}var uJ="sf-gap-overlap",mJ="--sf-gap-overlap",BS="--sf-block-gap",XL="--sf-block-gap-rem",jt={min:0,max:ga.max,step:ga.step};function nd(e){if(typeof e!="number"||!Number.isFinite(e))return null;let o=Math.min(Math.max(Math.round(e),jt.min),jt.max);return o-o%jt.step}function rF(e,o){let t=Bn(e,o,"gap",jt);if(t!==null)return{[BS]:t,[XL]:t};let r=nd(e);return r===null?{}:{[BS]:`${r}px`,[XL]:`${r/16}rem`}}var ZL="--sf-block-gap-phone",JL="--sf-block-gap-phone-rem",hJ="--sf-block-gap-on-phone",xJ="max-view-tablet:[--sf-block-gap-on-phone:var(--sf-block-gap-phone)]",gJ="max-view-wide:[&_[data-sf-line~=edge]:not([data-sf-line~=edge]_*)]:[--sf-block-gap-on-phone:var(--sf-block-gap-phone)]";function aF(e,o){let t=Bn(e,o,"gap",jt);if(t!==null)return{[ZL]:t,[JL]:t};let r=nd(e);return r===null?{}:{[ZL]:`${r}px`,[JL]:`${r/16}rem`}}function nF(e){return nd(e)===null?"":`${xJ} ${gJ}`}var QL="sf-gap-zone",eF="--sf-gap-len";function Am(e,o){return typeof o=="number"&&Number.isFinite(o)&&o>=ga.min?!0:typeof o=="string"&&typeof tF[e]?.[o]=="number"}var oF="--sf-gap-len-phone",IJ="--sf-gap-len-tablet",sd={min:0,max:ga.max,step:ga.step};function Qa(e){return typeof e=="number"&&Number.isFinite(e)&&e>=sd.min}function NS(e){return e/2}function DS(e,o,t){return Qa(t)&&!Am(e,o)}function MS(e,o,t,r,a){return Qa(o)?o:DS(e,t,a)?a:NS(os(e,t,r))}var yJ={block:"sf-gap-overlap-block",inline:"sf-gap-overlap-inline",both:"sf-gap-overlap-both"};function BLe(e,o,t,r,a){let n={...Qa(r)?{[oF]:`${r}px`}:null,...Qa(a)?{[IJ]:`${a}px`}:null};if(!Am(e,o)){let i=`${ji[e]}px`,l=pJ.has(e)?`var(--sf-card-gap, ${i})`:i;return{className:` ${QL}`,style:{[eF]:`var(${BS}, ${l})`,[oF]:`var(${hJ})`,...n}}}let s=os(e,o);return s>=0?{className:` ${QL}`,style:{[eF]:`${s}px`,...n}}:{className:` ${uJ} ${yJ[t]}`,style:{gap:"0px",[mJ]:`${-s/2}px`}}}import{parseHexColor as bJ}from"efficient-shell/format";var Qo="var(--section-bg)",id="inherit";function Vr(e,o){return e===id?Qo:e===void 0?o:Rm(e)}var SJ=/var\(\s*--(surface-2|surface|line)\s*(?=[,)])/g;function Rm(e){let o=zr(e);return o?fa(o):e.replace(SJ,"var(--site-$1")}var wJ={"var(--section-bg)":"band","var(--site-surface)":"surface","var(--site-surface-2)":"surface2"};function HS(e,o,t){let r=Vr(e,o);if(!r||r==="transparent")return t.background.toLowerCase();let a=r.trim(),n=a.startsWith("#")?bJ(a):null;if(n)return n.toLowerCase();let s=wJ[a.replace(/\s+/g,"")];return(s?t[s]:t.background).toLowerCase()}var WS="transparent";function sF(e,o){let t=Vr(e,o);return!t||t===WS?"none":t===Qo?"band":null}function iF(e,o,t=o){let r=n=>!n||n==="transparent",a=Vr(e,o);return a===t||r(a)&&r(t)}var lF=["transparent","var(--wheel-stage)","var(--surface)","var(--surface-2)"],cF={transparent:"No fill","var(--wheel-stage)":"Image stage","var(--surface)":"Panels and cards","var(--surface-2)":"Second surface"},Ki="var(--wheel-stage)",Lm="transparent",ld="inherit";function $Le(e,o){return Rm($S(e,o))}function $S(e,o){return e===ld?Ki:e==null?o:e===!0?Ki:e===!1?Lm:e}function ULe(e){return typeof e=="string"&&e!==ld?Rm(e):Ki}function zLe(e){return e!==Lm&&e!=="none"&&e!==""}function dF(e,o){return e===ld||e===!0?!0:e==null?o===Ki:!1}var ts="inherit",Fm="fixed",fF=e=>typeof e!="number"&&e!==Fm,CJ="var(--sf-heading-max, 9999px)";function KLe(e,o,t,r,a){if(typeof e=="number")return Me(e,a);if(e===Fm)return o;let n=r?`var(--size-${r}, ${o})`:o;return t==="heading"?`min(${n}, ${CJ})`:n}var US={kind:"fontSize",unitKey:"titleSizeUnit"},zS={kind:"fontSize",unitKey:"bodySizeUnit"},vJ=["desktop","mobile"],pF=[US,zS].flatMap(e=>Ii(e,vJ));function GS(e){let o=(t,r)=>p_(e,t,r);return{titleDesktop:o(US,"desktop"),titleMobile:o(US,"mobile"),bodyDesktop:o(zS,"desktop"),bodyMobile:o(zS,"mobile")}}var kJ=["page","full"],uF=["full","page"],rs={full:"Full",page:"Content"},jS="inherit",TJ=e=>typeof e=="string"&&kJ.includes(e),PJ=e=>e===jS;function Bm(e,o){return PJ(e.widthMode)?{mode:"full",inherited:!0}:TJ(e.widthMode)?{mode:e.widthMode,inherited:!1}:{mode:o,inherited:o==="full"}}function ZLe(e){return Bm(e,"page").mode==="full"}var Yi={CustomHTML:"rawMarkup",Hero:"hero",HeroSingle:"hero",IntroBleed:"scrollOver",SpecStrip:"background",Timeline:"background",Footprint:"background",Prose:"background",ParagraphsA:"background",Cards:"background",KeyFeatures:"background",Chart:"background",Mockup:"background",Testimonials:"background",TitleWithButtons:"background",Countdown:"background",DocMasthead:"background",DocBody:"background",DocMetaCards:"background",Gallery:"background",GalleryB:"background",Reviews:"background",ReviewForm:"background",Form:"background",AppointmentBooking:"background",FAQ:"background",Events:"background",Split:"both",Breadcrumb:"both",Collections:"both",CatalogFilterBar:"both",AlloyWheelsListing:"both",Banner:"contained",Stats:"contained",Logos:"contained",Divider:"contained",OrderSummary:"contained",DeliveryOptions:"contained",PaymentBadges:"contained",CheckoutCTA:"contained",Flex:"contained",Grid:"contained",ContactCards:"contained",MessagingCards:"contained",OpeningHours:"contained",RateTable:"contained",Manifesto:"contentColumn",SectionHeader:"contentFull",ProductHero:"contentFull",ProductGrid:"productGrid",TimelineTrack:"capped",DetailRows:"capped",FitmentTable:"capped",TyreSizes:"capped",TyreFitment:"capped",EuTyreLabel:"capped",BundleOffer:"capped",CompatibleTyres:"capped",RelatedProducts:"capped",ProcessSteps:"capped",StatsParagraph:"capped",Masthead:"capped",FeaturedCover:"capped",LongRead:"capped",Series:"capped",ContactLocations:"capped",FitmentFinder:"capped",SpecTable:"capped",Subscribe:"capped",SubscribeBlogs:"capped",ContactRouting:"capped",SubmitBuild:"capped"};function Nm(e){return He(Yi,e)}var Fe={background:"sectionBackgroundWidth",content:"sectionContentWidth",contentMax:"sectionContentMax",contentMaxUnit:"sectionContentMaxUnit"},KS={kind:"size",unitKey:Fe.contentMaxUnit};function as(e){let o=e[Fe.contentMaxUnit],t=Ee(o),r=e[Fe.contentMax],a=t==="px"?uL(r):typeof r=="number"&&Number.isFinite(r)&&r>0?r:null,n=Vi(e[Fe.content])??(a===null?null:"content");return{background:Vi(e[Fe.background]),content:n,contentMax:n==="content"?a:null,contentMaxUnit:t}}function mF(e){let o=as(e);return o.content===null&&e.fullWidth===!0?{...o,content:"full"}:o}function hF(e){return e.background!==null||e.content!==null}var xF=e=>({[Fe.background]:e}),gF=e=>e==="full"?{[Fe.content]:e,[Fe.contentMax]:void 0,[Fe.contentMaxUnit]:void 0}:{[Fe.content]:e},IF=e=>({[Fe.content]:"content",[Fe.contentMax]:e}),VS=e=>e==="background"?{[Fe.background]:void 0}:{[Fe.content]:void 0,[Fe.contentMax]:void 0,[Fe.contentMaxUnit]:void 0},yF="siteWidths",EJ=e=>e==="full"||e==="content";function Vi(e){return EJ(e)?e:null}function bF(e,o){return{[yF]:{background:Vi(e),content:Vi(o)}}}function Dm(e){let o=e.editor?.metadata?.[yF];return{background:Vi(o?.background),content:Vi(o?.content)}}import{useEaselSession as XQ}from"efficient-easel/screen/lib/session-context";import{BOX_GAP as ZQ,describedAs as on,group as wr,iconOf as Ji,sharedStyleKinds as md}from"efficient-easel/screen/lib/document/box-fields";import{VIEW_KEY_ACCESS as ZF,onDesktopWords as is,phoneTwinFields as sw,saidAlignmentGrid as JQ,useLengthUnit as QQ}from"efficient-easel/screen/lib/document/box-fields";import{createElement as Kt}from"react";import{SettingsDefaultReset as _J,SettingsField as OJ}from"efficient-easel/panel";import{boxFieldBuilders as AJ,describedAs as RJ,iconOf as LJ,onDesktopWords as FJ}from"efficient-easel/screen/lib/document/box-fields";import{LENGTH_KIND_UNITS as BJ}from"efficient-easel/screen/lib/content/length-units";import{IconPicker as NJ,Tooltip as DJ,useShellStrings as MJ}from"efficient-shell/ui";import{RotateIcon as HJ}from"efficient-easel/icons";var Mm=e=>c(e),Ia=BJ,Ao=AJ(Mm,{lengthUnits:Ia}),Wo=Ao.slider,At=Ao.select,cd=Ao.Segmented,qi=Ao.segmented,iFe=Ao.alignmentField,lFe=Ao.alignmentFields,cFe=Ao.blockAlignmentField,dFe=Ao.blockAlignmentFields,fFe=Ao.boxJustifyField,pFe=Ao.boxAlignField,uFe=Ao.boxWrapField,SF=Ao.directionField,Hm=Ao.gapField,mFe=Ao.placementField,hFe=Ao.PlacementGridView,xFe=Ao.positionFields,Xi=Ao.sidesPaddingFields,ns=Ao.lengthUnitFields;function wF(e,o){return Wo("Angle",Kt(HJ),kp.min,kp.max,kp.step,e,"\xB0",o)}var YS=Symbol("efficient-web-builder.picture-picker-row"),WJ={width:"3.5rem",height:"2.75rem",words:!0};function qS({value:e}){return MJ().iconNames[e]??e}function XS(e,o,t){return Kt(DJ,{content:t,className:"sf-pick-tip",children:Kt("span",{className:"sf-pick"},Kt("span",{className:"sf-pick-pic"},e),Kt("span",{className:"sf-pick-cap"},o))})}function $J(e){let o=t=>t.label===void 0?Kt(qS,{value:t.value}):c(t.label);return e.map(t=>({value:t.value,...t.label===void 0?{}:{label:c(t.hint??t.label)},icon:XS(t.picture,o(t),t.hint===void 0?o(t):c(t.hint))}))}function CF(e,o){return Kt("span",{className:"sf-pick"},Kt("span",{className:"sf-pick-pic"},e),Kt("span",{className:"sf-pick-cap sf-pick-cap-closed"},o))}function ZS(e,o,t,r,a={}){let n=l=>t.some(d=>d.value===l),s=l=>a.resolve?a.resolve(l):n(l)?l:void 0,i=t.map(l=>({value:l.value,...l.label===void 0?{}:{label:l.label},...l.showWhen?{showWhen:l.showWhen}:{}}));return{type:"custom",[YS]:!0,...RJ({},{type:"radio",label:e,options:i}),options:i,render:l=>{let{value:d,onChange:f,field:u}=l,p=u?.options,m=$J(t.filter(y=>!p||p.some(k=>k.value===y.value))),h="follows"in l,I=h?s(a.phoneRest?a.phoneRest(l.follows):l.follows)??r:void 0,w=u?.currentValue,S=s(d)??I??s(w)??r,v=d!=null&&d!=="",b=I===void 0?void 0:t.find(y=>y.value===I);return Kt(OJ,{label:c(e),icon:LJ(o),action:h?Kt(_J,{words:ce()?.panel,label:c(e),changed:v,detail:b?.label!==void 0?FJ(Mm,c(b.label),l.followsView):void 0,disabled:l.readOnly===!0,onReset:()=>f(void 0)}):void 0},Kt(NJ,{label:c(e),value:S,options:m,onChange:f,columns:a.columns,cell:a.cell??WJ,tooltips:!1,disabled:l.readOnly===!0}))}}}import{VIEW_ABOVE as ew}from"efficient-easel/screen/lib/content/length-units";import{jsx as E,jsxs as Se}from"react/jsx-runtime";import{NoSymbolIcon as XJ}from"efficient-easel/icons";import{useId as ZJ}from"react";var UJ="line",zJ=[{label:"None",value:"none"},{label:"Line",value:"line"},{label:"Stripes \xB7 fine",value:"stripes-fine"},{label:"Stripes \xB7 medium",value:"stripes-medium"},{label:"Stripes \xB7 bold",value:"stripes-bold"}],JS={"stripes-fine":{ink:4,period:12},"stripes-medium":{ink:8,period:18},"stripes-bold":{ink:14,period:28}},yFe=28,GJ="-45deg",jJ="color-mix(in oklab, var(--accent) 50%, var(--bg))";function KJ(e){return e!=="line"&&e!=="none"}var VJ={sm:24,md:48,lg:80},YJ="md",qJ=Object.keys(VJ);function bFe(e){return xo(qJ,YJ,e)}function SFe(e){return xo(zJ,UJ,e)}function wFe(e){if(!KJ(e))return null;let{ink:o,period:t}=JS[e];return`repeating-linear-gradient(${GJ}, ${jJ} 0 ${o}px, transparent ${o}px ${t}px)`}var CFe={kind:"border",unitKey:"thicknessUnit"},vFe={kind:"size",base:"%",unitKey:"lengthPctUnit"};var Wm=44,$m=28;function xe({children:e}){return E("svg",{width:Wm,height:$m,viewBox:`0 0 ${Wm} ${$m}`,"aria-hidden":"true",fill:"currentColor",stroke:"currentColor",strokeWidth:1.25,children:e})}var M=({x:e,y:o,w:t,t:r=2,faint:a=!1})=>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"}),Rt=({x:e,y:o})=>E("circle",{cx:e,cy:o,r:1.75,stroke:"none"}),$o=({x1:e,y1:o,x2:t,y2:r})=>E("line",{x1:e,y1:o,x2:t,y2:r});function QS(e){let o=20/Ri,t=5,r=1,a=[],n=0,s=0,i=0;for(let[f,u]of e)n+f>Ri&&(s+=i*(t+r),n=0,i=0),a.push({x:12+n*o,y:s,w:f*o-r,h:u*t+(u-1)*r}),n+=f,i=Math.max(i,u);let l=s+i*(t+r)-r,d=($m-l)/2;return 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 AFe={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($o,{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 RFe(e){if(e==="none")return E("span",{style:{display:"flex",width:Wm,height:$m,alignItems:"center",justifyContent:"center"},children:E(XJ,{size:20})});if(e==="line")return E(xe,{children:E($o,{x1:4,y1:14,x2:40,y2:14})});let{ink:o,period:t}=JS[e],r=.4,a=[];for(let n=-12;n<Wm;n+=t*r)a.push(E("polygon",{points:`${n},22 ${n+o*r},22 ${n+o*r+10},6 ${n+10},6`,stroke:"none"},n));return E(JJ,{children:a})}function JJ({children:e}){let o=`sf-div-${ZJ().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 Um=({x:e,y:o,w:t,h:r})=>E("rect",{x:e,y:o,width:t,height:r,rx:2,stroke:"none",opacity:.3}),LFe={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($o,{x1:4,y1:17,x2:40,y2:17}),E(M,{x:4,y:16,w:11,t:2})]}),largeTabs:Se(xe,{children:[E($o,{x1:4,y1:5,x2:40,y2:5}),E(Rt,{x:7,y:10}),E(M,{x:11,y:9,w:16}),E(M,{x:31,y:9,w:9,faint:!0}),E($o,{x1:4,y1:14,x2:40,y2:14}),E(Rt,{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($o,{x1:4,y1:23,x2:40,y2:23})]})},FFe={card:Se(xe,{children:[E(Te,{x:10,y:3,w:24,h:22}),E(Um,{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(Um,{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})]})},BFe={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})]})},NFe={table:Se(xe,{children:[E(Te,{x:3,y:5,w:38,h:18}),E($o,{x1:15.7,y1:5,x2:15.7,y2:23}),E($o,{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($o,{x1:3,y1:7,x2:13,y2:7}),E($o,{x1:17,y1:7,x2:27,y2:7}),E($o,{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})]})},DFe={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(Rt,{x:7,y:14}),E(M,{x:10,y:13,w:8}),E(Rt,{x:27,y:14}),E(M,{x:30,y:13,w:8})]})},MFe={overlay:Se(xe,{children:[E(Um,{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(Um,{x:4,y:13,w:36,h:12}),E(Te,{x:4,y:13,w:36,h:12})]})},HFe={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($o,{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($o,{x1:9,y1:4,x2:9,y2:24}),E(Rt,{x:9,y:8}),E(M,{x:14,y:7,w:24}),E(Rt,{x:9,y:14}),E(M,{x:14,y:13,w:20}),E(Rt,{x:9,y:20}),E(M,{x:14,y:19,w:24})]}),alternating:Se(xe,{children:[E($o,{x1:22,y1:4,x2:22,y2:24}),E(Rt,{x:22,y:8}),E(M,{x:4,y:7,w:14}),E(Rt,{x:22,y:14}),E(M,{x:26,y:13,w:14}),E(Rt,{x:22,y:20}),E(M,{x:4,y:19,w:14})]}),track:Se(xe,{children:[E($o,{x1:4,y1:12,x2:40,y2:12}),E(Rt,{x:8,y:12}),E(Rt,{x:22,y:12}),E(Rt,{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})]})},WFe={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($o,{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})]})},$Fe={"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($o,{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})]})},vF={width:"5.75rem",height:"3.75rem",words:!0},UFe={width:"8.5rem",height:"3.75rem",words:!0},zFe={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 NNe,SCALAR_TEXT_CONTROLS as DNe}from"efficient-easel/draw";function ls(e,o){return c("{value} from {from}",{value:e,from:o})}function eee(){let{blockGap:e}=fe();return e===null?c("this container's own spacing"):ls(`${e}px`,c("Styles"))}function oee({inherited:e,onReset:o,label:t}){return A(et,{words:ce()?.panel,label:c(t),changed:!e,detail:eee(),onReset:o})}function tee(e){return Hm({...ZQ,builtIn:ji[e],resolve:(o,t)=>os(e,o,t?.siteGap),action:(o,t)=>A(oee,{inherited:!Am(e,o),onReset:()=>t(void 0),label:"Gap"}),mark:{[Om]:e}})}function ree(e){return io(Lt("mobile",{[Om]:e,type:"custom",render:o=>A(see,{container:e,...o})}),JF)}function aee(e){return io(Lt("tablet",{[Om]:e,type:"custom",render:o=>A(nee,{container:e,...o})}),JF)}var JF={not:{field:"gap",in:Array.from({length:-ga.min},(e,o)=>ga.min+o)}};function ENe(e){return{gap:Lt("desktop",tee(e)),[uw("gap")]:aee(e),[Zi("gap")]:ree(e)}}function nee({container:e,...o}){let[t]=br("gap"),{siteGap:r}=o.field??{},a=Math.max(sd.min,os(e,t,r));return Hm({...sd,builtIn:a,resolve:n=>Qa(n)?n:a,action:(n,s)=>A(et,{words:ce()?.panel,label:c("Gap"),changed:Qa(n),detail:is(i=>c(i),`${a}px`),onReset:()=>s(void 0)})}).render(o)}function see({container:e,...o}){let[t]=br("gap"),{siteGap:r,siteGapPhone:a}=o.field??{},n=MS(e,void 0,t,r,a);return Hm({...sd,builtIn:n,resolve:s=>MS(e,s,t,r,a),action:(s,i)=>A(et,{words:ce()?.panel,label:c("Gap"),changed:Qa(s),detail:ls(`${n}px`,DS(e,t,a)?c("Styles"):c("Desktop")),onReset:()=>i(void 0)})}).render(o)}function _Ne(e){return SF({offered:GL(e),fallback:Kr(e,void 0),resolve:o=>Kr(e,o)})}function ONe(e,o){return Q_(o?tO(e,o):[],o)}function iee({inherited:e,onReset:o,label:t}){return A(et,{words:ce()?.panel,label:c(t),changed:!e,detail:ls(c("Full"),c("the page")),onReset:o})}function cs({value:e,onChange:o,label:t,placeholder:r,hint:a,multiline:n,hideable:s=!0,markup:i=!0}){let{text:l,hidden:d}=tn(e),f=dd(null),u=dd(null),p=v=>o(s?{text:v,hidden:d}:v),m=()=>o({text:l,hidden:!d}),h=s&&d,I=MF(),w=a?pee(a)?A("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 A(wo,{label:c(t),icon:A(vQ,{}),htmlFor:I,className:h?"is-hidden":void 0,hint:w,action:s?A(pw,{content:S,children:A(qF,{"aria-pressed":d,"aria-label":S,onClick:m,children:d?A(_F,{name:"eye-off",size:14}):A(_F,{name:"eye",size:14})})}):void 0,children:ya("div",{className:"sf-copybox",children:[i&&A(Hb,{target:n?u:f,value:l,onChange:p}),n?A("textarea",{id:I,ref:u,value:l,placeholder:r===void 0?void 0:c(r),onChange:v=>p(v.target.value)}):A("input",{id:I,ref:f,type:"text",value:l,placeholder:r===void 0?void 0:c(r),onChange:v=>p(v.target.value)})]})})}function ANe(e,o){return{...e,[sQ]:o}}function RNe(e){let o=e[ba];if(!o)throw new Error("withOffPage: the field holds no authored text");return{...e,[ba]:{...o,offPage:!0}}}function Vm(e){return!e||typeof e!="object"?!1:e[ba]?.offPage===!0}function LNe(e){if(!e[ba])throw new Error("withPanelOnly: the field holds no authored text");return{...e,[$b]:!0}}function QF(e){return Hi(e)}function FNe(e){let o=e[ba];if(!o)throw new Error("withIdentifier: the field holds no authored text");return{...e,[ba]:{...o,identifier:!0}}}function MNe(e,o){if(!e[ba])throw new Error("inOwnBox: the field holds no authored text");let{[zQ]:t,...r}=e;return{...r,[Wb]:!0,render:o}}var lee=new Set(jQ),jm={type:"radio",options:[{value:!0},{value:!1}]},eB={text:{type:"object",objectFields:{text:{type:"text"},hidden:jm}},textarea:{type:"object",objectFields:{text:{type:"textarea"},hidden:jm}},plainText:{type:"text"},copyText:{type:"text"},plainTextarea:{type:"textarea"},textList:{type:"array",arrayFields:{text:{type:"text"}}}},ds=(e,o)=>{let t=on({...o,[ba]:e},{...eB[e.control],label:e.label});if(!lee.has(e.control))return t;let r=o.render;return{...XF(t,"authored-copy"),render:a=>A(rR,{name:a.name,children:r(a)})}},HNe="Everything else on this block comes from the linked post. Unlink it to edit by hand.",cee={field:"source.slug",set:!0},WNe={not:cee},dee="Select a word, then press the highlighter.",fee=new Set([dee]),pee=e=>fee.has(e);function $Ne(e,o,t){return ds({control:"text",label:e,placeholder:o,hint:t},{type:"custom",render:({value:r,onChange:a})=>A(cs,{value:r,onChange:a,label:e,placeholder:o,hint:t})})}function UNe(e,o,t){return ds({control:"textarea",label:e,placeholder:o,hint:t},{type:"custom",render:({value:r,onChange:a})=>A(cs,{value:r,onChange:a,label:e,placeholder:o,hint:t,multiline:!0})})}function zNe(e,o,t){return ds({control:"plainText",label:e,placeholder:o,hint:t},{type:"custom",render:({value:r,onChange:a})=>A(cs,{value:r,onChange:a,label:e,placeholder:o,hint:t,hideable:!1,markup:!1})})}function GNe(e,o,t){return ds({control:"copyText",label:e,placeholder:o,hint:t},{type:"custom",render:({value:r,onChange:a})=>A(cs,{value:r,onChange:a,label:e,placeholder:o,hint:t,hideable:!1})})}function jNe(e){return{type:"custom",[aQ]:{label:e},...on({},{type:"text",label:e}),render:({value:o,onChange:t})=>A(rL,{value:rQ(o),onChange:t,label:e})}}function KNe(e,o,t){return ds({control:"plainTextarea",label:e,placeholder:o,hint:t},{type:"custom",render:({value:r,onChange:a})=>A(cs,{value:r,onChange:a,label:e,placeholder:o,hint:t,multiline:!0,hideable:!1})})}var oB={Design:iQ,Animation:cQ};function VNe(e,o){return{type:"custom",render:()=>A(uee,{text:e,values:o})}}function uee({text:e,values:o}){return A("p",{className:"sf-note",children:c(e,o)})}function tB(e){return Sr(e)!==null&&e?.tabs!==void 0}var OF=new Map;function Ym(e,o){let t=`${e}\0${o?o.join(""):""}`,r=OF.get(t)??{type:"custom",tabs:o,[HF]:{label:e,level:1},bucket:e,marker:!0,render:()=>A(Sa,{})};return OF.set(t,r),r}var AF=new Map;function hw(e){let o=AF.get(e)??{type:"custom",[HF]:{label:e,level:1},designGroup:e,marker:!0,...e==="Content"?{}:{fold:e},render:()=>A(Sa,{})};return AF.set(e,o),o}function mee(e){let o=e;return o?.marker===!0&&typeof o.fold=="string"?o.fold:null}function rB(e,o){return mee(e)===o?e:{...e,marker:!0,fold:o,render:()=>A(Sa,{})}}function aB(e){let o=e;if(o.marker===!0&&o.fold===void 0)return e;let{fold:t,...r}=e;return{...r,marker:!0,render:()=>A(Sa,{})}}function xw({title:e,children:o}){let[t,r]=fd(()=>!ow.has(e));return A(PQ,{title:e,open:t,onToggle:a=>{r(a),a?ow.delete(e):ow.add(e)},children:o})}var ow=new Set;function hee({swatches:e,current:o,onPick:t,names:r}){let a=e.find(i=>i.toLowerCase()===o.toLowerCase()),n=a?r?.[a]:void 0,s=n?c(n):o;return ya("div",{className:"sf-swatches",children:[e.map(i=>{let l=r?.[i]?c(r[i]):i;return A(pw,{content:l,children:A(BQ,{color:i,selected:o.toLowerCase()===i.toLowerCase(),onClick:()=>t(i),"aria-label":l})},i)}),A("span",{className:"sf-swatch-hex",children:s})]})}function YNe(e,o,t=!1){return{type:"custom",render:({value:r,onChange:a})=>A(xee,{label:e,builtIn:o,followsBand:t,value:r,onChange:a})}}function xee({label:e,builtIn:o,followsBand:t,value:r,onChange:a}){let n=typeof r=="string"?r:void 0,{colors:s,n:i}=Sw(),l={background:s.background,surface:s.surface,surface2:Vp(s),band:T_(s)},d=t?Qo:o,f=iF(n,o,d),u=HS(void 0,d,l),p=t?id:void 0,m=d===Qo?c("the theme's section background"):c("Theme {n} background",{n:i}),h=gee(n,o,s,i,l,a),I=ls(u.toUpperCase(),m),w=zr(n),S=w?Li(w,s,i):null;return S?A(gt,{label:c(e),icon:A(kF,{}),value:S.hex,caption:S.words,onChange:a,changed:!0,onReset:()=>a(p),resetTo:I,choices:h}):A(Vc,{label:c(e),icon:A(kF,{}),value:f?"":HS(n,o,l),inherited:u,resetTo:I,onChange:a,onReset:()=>a(p),choices:h})}function gee(e,o,t,r,a,n){let s=sF(e,o);return[{label:c("No fill"),color:"",selected:s==="none",onPick:()=>n(WS)},{label:`${c("Section band")} \xB7 ${a.band.toUpperCase()}`,color:a.band,selected:s==="band",onPick:()=>n(Qo)},...bw(zr(e)??"",t,r,n)]}function Iee(e,o){return{type:"custom",render:({value:t,onChange:r})=>{let a=t,n=dF(a,o);return A(wo,{label:c(e),icon:A(aw,{}),changed:!n,action:A(et,{words:ce()?.panel,label:c(e),changed:!n,detail:c("the theme's image stage"),onReset:()=>r(ld)}),children:hee({swatches:lF,current:n?Ki:$S(a,o),onPick:r,names:cF})})}}}function Qi(e=t=>t,o){return md({_gSectionTheme:wr(Y_),sectionAccent:{type:"custom",render:({value:t,onChange:r})=>A(OR,{value:e(t),onChange:r,followLabel:o})}})}function el(e){let o=So(),t=da(e?.view),r=s=>mw(e.valueKey,s),a=e.numbersIn??(s=>q(o[r(s)])!==void 0),n=e.followsView??Lee(t,a);return QQ({props:{value:void 0,onChange:()=>{},field:{}},row:e.valueKey?e.row:void 0,table:Ia,label:c(e.label),grid:e.grid,hasOwn:a(t),view:{tier:t,numbersIn:a,followsView:n},convertTo:e.convertTo??(s=>{let i=q(o[r(t)]);return i===void 0?{}:{[r(t)]:s(i)}})})}function yt({min:e,max:o,step:t,value:r,onChange:a,suffix:n="",readout:s=!0,notch:i,ariaLabel:l,disabled:d=!1,placeholder:f,placeholderWord:u,onClear:p,units:m}){let h=i!==void 0&&Number.isFinite(i)&&i>=e&&i<=o;return A("div",{className:h?"sf-slider has-notch":"sf-slider",style:h?{"--sf-notch":(i-e)/(o-e)}:void 0,children:A(UQ,{min:e,max:o,step:t,value:r,...r===null&&f!==void 0?{placeholderValue:f}:{},...u?{emptyLabel:c(u)}:{},suffix:n||void 0,...m?{units:m}:{},showInput:s,label:l===void 0?void 0:c(l),disabled:d,size:"sm",boxSize:"md",className:"sf-slider-track",onChange:I=>{I===null?p?.():I!==r&&a(I)}})})}function yee(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 A(wo,{label:c(e),icon:d?Ji(d):void 0,value:h?l||n===void 0?void 0:c(n):`${m}${f}`,changed:!h,action:l?iw(l,{changed:!h,onReset:()=>p(null)}):A(et,{words:ce()?.panel,label:c(e),changed:!h,onReset:()=>p(null)}),hint:typeof s=="string"?c(s):s,children:i?i({min:t,max:r,step:a,px:m,label:e,onChange:p}):yt({min:t,max:r,step:a,value:m??t,readout:!1,ariaLabel:e,onChange:p})})}}}var pd="Corners",bee={kind:"radius"};function gw(e){return{type:"custom",render:o=>{let{value:t,onChange:r}=o,a=typeof t=="number"&&Number.isFinite(t)?t:null,n=a!==null;return A(wo,{label:c(pd),icon:A($F,{}),changed:n,action:iw(e.mark,{changed:n,onReset:()=>r(null)}),hint:e.hint,children:A(See,{tier:e,px:a,name:o.name,onRadius:r})})}}}function br(e){let o=ss();return[o?.values?.[e],t=>o?.onChange(e,t)]}function hd(){return XF({type:"custom",render:()=>A(GQ,{})},"always")}function ur(){let e=ss();return o=>e?.onChangeMany(o)}function See({tier:e,px:o,name:t,onRadius:r}){let a=e.useFollowed(),[n,s]=br(e.sidesKey),i=ur(),l=el({row:e.row??bee,label:pd,grid:{min:nt,max:Ha,step:e.step??1},valueKey:t??"",view:"desktop"}),d=$r(n)??[..._u];return A(NQ,{label:c(pd),value:d,corners:E1,onChange:f=>{let u=$r(f)??[];s(u.length===_u.length?null:u)},radius:o,onRadiusChange:l&&t?f=>i({[t]:f,...l.unitPatch(f===null)}):r,radiusMin:l?.grid.min??nt,radiusMax:l?.grid.max??Ha,radiusStep:l?.grid.step??e.step??1,radiusPlaceholder:l&&l.unit!=="px"?"\u2013":String(a),...l?{radiusUnit:l.unit,units:l.units}:{}})}function nB(e,o){return ns(e,o)}function sB(){return hd()}function wee({label:e,changed:o=!1,onReset:t=()=>{}}){let{cornerRadiusPx:r}=fe(),a=typeof r=="number"?`${r}px`:c("not set");return A(et,{words:ce()?.panel,label:c(e),changed:o,detail:r==null?c("the built-in corners"):ls(a,c("Styles")),onReset:t})}function Cee(){let{cornerRadiusPx:e}=fe();return typeof e=="number"?e:nt}function vee(){return gw({sidesKey:"sectionCornerSides",row:Dc,useFollowed:Cee,mark:A(wee,{label:pd}),hint:kee})}var kee="Follows Styles \u25B8 Basics \u25B8 Corners until you set a number here.";function ol(){return md({_gShape:wr("Shape"),sectionCorners:vee(),...nB(Dc,"sectionCorners"),sectionCornerSides:sB(),...ua("sectionBorder",Ree),...ns(ad,"sectionBorder",{tablet:!0,phone:!0})})}var Tee=()=>({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 Pee(e){let o=Object.fromEntries(Object.entries(e).filter(([,t])=>t!=null&&t!==""));return Object.keys(o).length?o:void 0}function Eee(){let e;try{let o=vo(fe().theme);e=o.themes[o.selected]?.line}catch{e=void 0}return e||x_.line}function _ee({value:e,onChange:o,placeholder:t,presets:r,sides:a=!0,styles:n=!0,above:s={},length:i}){let l=e&&typeof e=="object"?e:{},[d,f]=fd(()=>a?RQ(l,s):!1),u=Tee(),p=m=>Pee(a&&n?m:{width:m.width,color:m.color,...n?{style:m.style}:{}});return A(wo,{label:c("Border"),icon:A(dQ,{}),action:a?A(OQ,{each:d,label:c("Each side"),onChange:f}):void 0,children:A(_Q,{label:c("Border"),value:l,each:d,onChange:m=>o(p(m)),placeholder:t,presets:r,words:i?{...u,unit:i.unit}:u,styles:n,max:i?.grid.max??Pm,...i?{step:i.grid.step,units:i.units}:{}})})}function Oee({value:e,onChange:o,view:t}){let[r]=br("sectionBorder"),[a]=br(uw("sectionBorder")),n=Eee(),s=p=>p&&typeof p=="object"?p:{},i=t==="phone"?{...FS(s(r)),...FS(s(a))}:t==="tablet"?s(r):{},l=So(),d=ur(),f=ke("sectionBorder",t),u=el({row:ad,label:"Border",grid:{min:0,max:Pm,step:1},valueKey:"sectionBorder",view:t,numbersIn:p=>tw(l[mw("sectionBorder",p)]),convertTo:p=>{let m=s(l[f]);return tw(m)?{[f]:Aee(m,p)}:{}}});return A(_ee,{value:e,length:u,onChange:u?p=>d({[f]:p,...u.unitPatch(!tw(p))}):o,placeholder:{sides:AQ(i),style:i.style??"solid",color:i.color||n},presets:[n],above:i})}var iB=["width",...Em];function tw(e){if(!e||typeof e!="object")return!1;let o=e;return iB.some(t=>q(o[t])!==void 0)}function Aee(e,o){let t={...e};for(let r of iB){let a=q(t[r]);a!==void 0&&(t[r]=o(a))}return t}function Ree(e){return{type:"custom",render:({value:o,onChange:t})=>A(Oee,{value:o,onChange:t,view:e})}}function Lee(e,o){let t=ew[e];for(;t&&ew[t]!==null&&!o(t);)t=ew[t];return t??e}function qNe(e){return{type:"custom",render:()=>A(Fee,{partKey:e})}}function Fee({partKey:e}){let[o]=br("id"),[t]=br("_partStyles"),{textStyles:r}=fe(),a=qQ(),n=null;try{n=KQ().select}catch{n=null}let s=t&&typeof t=="object"?t[e]:void 0,i=Array.isArray(r)?r:null;return A(TQ,{name:c("Text"),preview:OL(s,i,{noStyle:c("No style"),styleName:a.textStyles.styleName,cases:(a.copy.panel??YQ.copy.panel).cases}),onOpen:()=>{n&&typeof o=="string"&&n(VQ(o,e))}})}function lB(e){let{cornerRadiusPx:o}=fe(),t=typeof o=="number"?o:e,r=null;try{let{appState:n,selectedItem:s}=Km(l=>l),i=s?.props?.id?String(s.props.id):void 0;r=i?MA(n?.data,i)?.props??null:null}catch{r=null}if(!r)return t;let a=r.sectionCorners;return nb(a)?a:t}function Bee({label:e,changed:o=!1,onReset:t=()=>{}}){let r=lB(nt);return A(et,{words:ce()?.panel,label:c(e),changed:o,detail:ls(`${r}px`,c("the section")),onReset:t})}function Nee(){return A(Sa,{children:c("Follows the section's Corners until you set a number here.")})}function Dee(){return gw({sidesKey:"cardCornerSides",row:Mc,useFollowed:()=>lB(nt),mark:A(Bee,{label:pd}),hint:A(Nee,{})})}function Mee(){return{type:"custom",render:()=>A(N1,{})}}function cB(){return{_gShape:wr("Shape"),cardCorners:Dee(),...nB(Mc,"cardCorners"),cardCornerSides:sB(),cardCornersApplyAll:Mee()}}function Hee(){return on({type:"custom",[YS]:!0,render:e=>A($ee,{...e})},{type:"select",label:An,options:[{value:"content",label:"Fit content"},{value:"equal",label:"Equal"},{value:[50],label:"Custom: the width of each block in %, the last block left out"}]})}function Wee(e,o){let t=dy(e);if(t!=="custom")return c(cy.find(a=>a.value===t)?.label??"");let r=YF(Rp(e,o),o);return r?[...r,100-r.reduce((a,n)=>a+n,0)].join(" / "):c("Custom")}function $ee(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=dy(i),d=a>=2&&a<=PF,f=()=>[...HQ[a]??[]],u=dd(null),p=S=>{let v=u.current;v&&JSON.stringify(S)===JSON.stringify(v.shares)?t(v.value):S&&t(S)},m=S=>{S===l||S==="custom"&&!d||t(S==="custom"?f():S)},h=c("The width bar works for 2 to {count} blocks.",{count:PF}),I=s&&(n||o!=="content"),w=$Q().widths.hint(a,MQ);return A(wo,{label:c(An),icon:A(lw,{}),changed:I,hint:l!=="custom"?void 0:d?w:h,action:A(et,{words:ce()?.panel,label:c(An),changed:I,disabled:e.readOnly===!0,detail:n?is(S=>c(S),Wee(e.follows,a),e.followsView):c("Fit content"),onReset:()=>t(void 0)}),children:ya("div",{className:"sf-share-row",children:[A("div",{className:"sf-share-pick",children:A(VF,{label:c(An),value:l,options:cy.map(S=>({value:S.value,label:S.value==="custom"&&!d?h:c(S.label),icon:XS(A("span",{className:"sf-gallery-pic sf-share-pic",children:dB(S.weights).map((v,b)=>A("i",{style:{gridColumn:`span ${v}`}},b))}),c(S.label),S.value==="custom"&&!d?h:c(S.label))})),onChange:m,columns:3,cell:fB,tooltips:!1,disabled:e.readOnly===!0})}),l==="custom"&&d?A("div",{onFocus:()=>{u.current={value:o,shares:YF(Rp(i,a),a)}},onBlur:()=>{u.current=null},children:A(WQ,{label:c(An),count:a,value:Rp(i,a),onChange:p,readOnly:e.readOnly===!0})}):null]})})}function dB(e){if(!e)return[3,4];let o=e.reduce((t,r)=>t+r,0);return e.map(t=>Math.round(t/o*12))}function XNe(){return At(WE,A(gQ,{}),hy,hy[0].value)}function ZNe(){return Lt("mobile",ZS(An,A(lw,{}),BE.map(e=>({label:e.label,value:e.value,picture:A("span",{className:"sf-gallery-pic sf-share-pic",children:dB(e.weights).map((o,t)=>A("i",{style:{gridColumn:`span ${o}`}},t))})})),NE,{columns:2,cell:fB}))}var fB={width:"5.75rem",height:"3.25rem",words:!0};function JNe(){return sw("share",Hee(),ZF)[uw("share")]}function Uee(){return Lt("mobile",Wo(py,A(WF,{}),Lp,FE,1,Lp,"",{clear:{phoneFollows:!1,hint:Lp}}))}var RF={read:e=>e.phoneRow,write:(e,o,t)=>({phoneRow:t}),fieldKey:()=>"phoneRow",ownField:!0};function QNe(){let e=Wo(py,A(WF,{}),uy,DE,1,uy,"",{clear:{emptyLabel:"Auto"}}),o=sw("columns",e,{...RF,tablet:ZF.tablet}),t=sw("columns",e,RF,{phoneRow:Uee()});return{...o,phoneRow:t.phoneRow}}function eDe(e,o,t,r,a,n,s){return{type:"custom",render:({value:i,onChange:l,name:d})=>A(zee,{label:e,min:o,max:t,step:r,fallback:a,role:n,value:i,onChange:l,name:d??"",length:s})}}function zee({label:e,min:o,max:t,step:r,fallback:a,role:n,value:s,onChange:i,name:l,length:d}){let f=So(),u=ur(),p=da(d?.view),m=el({row:d?.row??{kind:"fontSize"},label:e,grid:{min:o,max:t,step:r},valueKey:d?l:"",view:d?.view??"desktop",numbersIn:I=>I===p&&typeof f[l]=="number",followsView:p,convertTo:I=>typeof f[l]=="number"?{[l]:I(f[l])}:{}}),h=I=>m?u({[l]:I,...m.unitPatch(typeof I!="number")}):i(I);return A(wo,{label:c(e),icon:A(kb,{noun:n}),action:A(et,{words:ce()?.panel,label:c(e),changed:!fF(s),detail:c("the Text style in Styles"),onReset:()=>h(ts),defaultAction:{onPress:()=>h(Fm),title:c("Keep this section's own built-in size"),icon:A(fQ,{})}}),children:yt({min:m?.grid.min??o,max:m?.grid.max??t,step:m?.grid.step??r,value:typeof s=="number"?s:a,...m?{suffix:m.unit,units:m.units}:{suffix:"px"},ariaLabel:e,onChange:h})})}function LF(e,o,t){return[{label:"Auto",value:""},...Array.from({length:e},(r,a)=>({label:a===0?`1 ${o}`:`${a+1} ${t}`,value:String(a+1)}))]}function pB(){return{_gCellWidth:wr("Cell size"),gridSpan:At("Positions",A(lw,{}),LF(Nu,"position","positions"),""),gridRowSpan:At("Rows tall",A(cw,{}),LF(Cb,"row","rows"),"")}}function So(){let e=null,o=null;try{e=DF(Iw),o=Km(t=>t).selectedItem}catch{o=null}return e??o?.props??{}}var Iw=eQ(null);function Gee({min:e,max:o,step:t,px:r,label:a,onChange:n,desktopKey:s,fallback:i}){let l=So()[s],d=em(void 0,l,i);return A(Sa,{children:yt({min:e,max:o,step:t,value:em(r,l,i),readout:!1,ariaLabel:a,notch:d,onChange:n})})}function jee({label:e,desktopKey:o,fallback:t,unit:r="px",changed:a=!1,onReset:n=()=>{}}){let s=So()[o],i=em(void 0,s,t);return A(et,{words:ce()?.panel,label:c(e),changed:a,detail:is(l=>c(l),`${i}${r}`),onReset:n})}function Kee(e){return yee(e.label,{icon:e.icon,min:e.min,max:e.max,step:e.step,unit:e.unit,unsetLabel:"Follows Desktop",unsetMark:A(jee,{label:e.label,desktopKey:e.desktopKey,fallback:e.fallback,unit:e.unit}),restTrack:o=>A(Gee,{...o,desktopKey:e.desktopKey,fallback:e.fallback})})}var Vee={Top:"Padding top",Bottom:"Padding bottom",Left:"Padding left",Right:"Padding right"},Yee={Top:dw,Bottom:zF,Left:GF,Right:jF},qee=e=>{let o=Yee[e];return A(o,{})};function uB(e={}){let o=e.keys?.top??"sectionPaddingTop",t=e.keys?.bottom??"sectionPaddingBottom",r=e.group!==!1,a=w=>Vee[w],n=w=>Wo(a("Top"),A(dw,{}),zt.min,zt.max,zt.step,w,"px"),s=(w,S,v,b=zt)=>Lt("mobile",Kee({label:a(w),icon:qee(w),desktopKey:S,min:b.min,max:b.max,step:b.step,fallback:v})),i=e.top??zt.min,l=e.bottom??zt.min,d="sectionPaddingLeft",f="sectionPaddingRight",u=e.sideBounds??zt,p=e.side??u.min,m=e.sidePhone??p,h=e.phone===!0,I=w=>h?Lt("desktop",w):w;return md({...r?{_gSpacing:wr("Padding")}:{},[o]:I(n(i)),...h?{[Zi(o)]:s("Top",o,i)}:{},...e.only==="top"?{}:{[t]:I(Wo(a("Bottom"),A(zF,{}),zt.min,zt.max,zt.step,l,"px")),...h?{[Zi(t)]:s("Bottom",t,l)}:{}},...e.sides?{[d]:I(Wo(a("Left"),A(GF,{}),u.min,u.max,u.step,p,"px")),...h?{[Zi(d)]:s("Left",d,m,u)}:{},[f]:I(Wo(a("Right"),A(jF,{}),u.min,u.max,u.step,p,"px")),...h?{[Zi(f)]:s("Right",f,m,u)}:{}}:{}})}function oDe(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 en="Width";function tl(e,o=uF,t=!0){let r=o.map(a=>({label:rs[a],value:a}));return md({...t?{_gWidth:wr(en)}:{},widthMode:{type:"custom",render:({onChange:a,field:n})=>A(wo,{label:c(en),icon:A(kQ,{}),action:t?A(iee,{inherited:n?.inherited??!1,onReset:()=>a(jS),label:en}):void 0,children:cd({options:r,value:n?.currentValue||e,onChange:a,ariaLabel:en})})}})}function rl({fill:e=!1}={}){let o=(a,n)=>({type:"custom",render:({value:s,onChange:i})=>A(Xee,{value:s,onChange:i,view:a,badge:n,fill:e})}),t=()=>nw("sectionHeightMode"),r=()=>nw("sectionHeightMode");return md({_gHeight:wr(Ti),...ua("sectionHeightMode",a=>a==="desktop"?o(a):o(a,n=>A(eoe,{view:a,onClear:()=>n(void 0)}))),...ua("sectionHeightValue",t),...ua("sectionHeightUnit",r)})}function Xee({value:e,onChange:o,view:t,badge:r,fill:a=!1}){let n=So(),{mode:s,number:i,unit:l}=Zee(t,n,e);return A(wo,{label:Ti,icon:Ji(A(cw,{})),action:r?r(o):void 0,children:ya("div",{className:"es-width-stack",children:[cd({options:[{label:"Auto",value:"auto"},{label:"Fixed",value:"fixed"},{label:"Screen",value:"screen"},...a?[{label:"Fill",value:"fill"}]:[]],value:s,onChange:o,ariaLabel:Ti}),i?A(Qee,{view:t,mode:s,menu:l}):null]})})}function mB(e,o){return e==="phone"&&nu(o)?xO(o):uO(o)}function qm(e,o){return e==="desktop"||(e==="tablet"?nu(o):hO(o))?null:mB(e,o)}function Zee(e,o,t){let r=(a=>dO.includes(a))(t)?t:qm(e,o)?.mode??"auto";return{mode:r,number:r!=="auto"&&r!=="fill",unit:r==="fixed"}}function Jee(e,o,t,r){let a=qm(e,o);return!a||e==="desktop"?null:r===void 0?{}:{[ke("sectionHeightMode",e)]:a.mode,...a.mode==="fixed"?{[ke("sectionHeightUnit",e)]:a.unit}:{},...t==="sectionHeightUnit"?{[ke("sectionHeightValue",e)]:a.value}:{},[ke(t,e)]:r}}function FF(e,o,t){let r=ss(),a=qm(e,So());return!r||!a?{followed:null,write:t}:{followed:a,write:n=>r.onChangeMany(s=>{let i=Jee(e,s,o,n);return i===null?{[ke(o,e)]:n}:Object.keys(i).length?i:null})}}function Qee({view:e,mode:o,menu:t}){let r=ss(),a=So(),n=ke("sectionHeightValue",e),s=ke("sectionHeightUnit",e),i=w=>S=>r?.onChangeMany(()=>({[w]:S})),{followed:l,write:d}=FF(e,"sectionHeightValue",i(n)),{write:f}=FF(e,"sectionHeightUnit",i(s)),u=o==="screen"?"%":a[s],p=(l?l.unit:u)==="%"?"%":"px",m=p==="%"?pO:fO,h=a[n],I=t?{options:["px","%"],label:c("Unit"),onChange:w=>f(w)}:void 0;return yt({min:m.min,max:m.max,step:m.step,value:l?null:typeof h=="number"?h:m.fallback,...l?{placeholder:l.value}:{},suffix:p,...I?{units:I}:{},ariaLabel:Ti,onChange:d})}function eoe({view:e,onClear:o}){let t=So(),r=qm(e,t)===null,a=e==="phone"&&nu(t),n=mB(e,t),s=is(i=>c(i),n.mode==="auto"?c("Auto"):`${n.value}${n.unit}`,a?"tablet":"desktop");return A(et,{words:ce()?.panel,label:c(Ti),changed:r,detail:s,onReset:o})}function xd(e={}){let o=e.intro===!0,t=n=>({type:"custom",render:({value:s,onChange:i,id:l,name:d})=>A(ioe,{value:s,onChange:i,labelId:`${l??d??"stickTop"}-label`,view:n,intro:o})}),r=n=>({type:"custom",render:({value:s,onChange:i})=>A(aoe,{value:s,onChange:i,view:n,intro:o})}),a=n=>({type:"custom",render:({value:s,onChange:i})=>A(noe,{value:s,onChange:i,view:n,intro:o})});return{_gStick:wr(LL,{dot:o?roe:zi}),...ua("stickTop",t),...ua("stickTopDistance",r),...ns(rd,"stickTopDistance",{tablet:!0,phone:!0}),...e.screens?ua(yr,a):{},...o?{}:{[es]:ooe()},...o||e.above===!1?{}:{[Ja]:toe()}}}function ooe(){let e=At(FL,A(dw,{}),BL,NL);return Lt("desktop",{...e,render:o=>{let t=e.render({...o,value:ES(o.value),onChange:r=>o.onChange(ML(r))});return iw(t,{hint:c(DL)})}})}function toe(){let e=xB(HL,!1,A(KF,{}),WL);return Lt("desktop",{...e,render:o=>e.render({...o,onChange:t=>o.onChange(t===!0?!0:void 0)})})}var roe={any:[zi,km]};function hB(e,o,t,r,a){let n=ss(),s=So(),i=e==="desktop"||ud(e,s)?null:yw(e,Gi(s,{intro:r}));return{followed:i,write:(i||a)&&n?l=>n.onChangeMany(d=>{let f=soe(e,d,l,o,r),u=f===null?{[ke(o,e)]:l}:f;return Object.keys(u).length?{...u,...a?.(l)??{}}:null}):t}}function aoe({value:e,onChange:o,view:t,intro:r}){let a=So(),n=Gi(a,{intro:r}),s=f=>{let u=Ci(f);return u==="desktop"||ud(u,a)},i=el({row:rd,label:"Distance from top",grid:{min:Gt.min,max:Gt.max,step:Gt.step},valueKey:"stickTopDistance",view:t,numbersIn:f=>s(f)&&q(a[mw("stickTopDistance",f)])!==void 0,followsView:t==="phone"&&n.ownTablet?"tablet":"desktop"}),{followed:l,write:d}=hB(t,"stickTopDistance",o,r,i?f=>i.unitPatch(f===void 0):void 0);return A("div",{className:"sf-field",children:yt({min:i?.grid.min??Gt.min,max:i?.grid.max??Gt.max,step:i?.grid.step??Gt.step,value:l?null:typeof e=="number"?e:Gt.fallback,...l?{placeholder:l.distance}:{},...i?{suffix:i.unit,units:i.units}:{suffix:"px"},ariaLabel:c("Distance from top"),onChange:d})})}function noe({value:e,onChange:o,view:t,intro:r}){let{followed:a,write:n}=hB(t,yr,o,r);return A(wo,{label:c(PS),icon:Ji(A(cw,{})),children:yt({min:zm.min,max:zm.max,step:zm.step,value:a?null:q(e)??zm.default,...a?{placeholder:a.screens}:{},ariaLabel:c(PS),onChange:n})})}function ud(e,o){return e==="tablet"?OS(o):AS(o)}function yw(e,o){return e==="phone"?{on:o.tablet,distance:o.tabletDistance,unit:o.tabletUnit,screens:o.tabletScreens}:{on:o.desktop,distance:o.desktopDistance,unit:o.desktopUnit,screens:o.desktopScreens}}function soe(e,o,t,r="stickTopDistance",a=!1){if(e==="desktop"||ud(e,o))return null;if(t===void 0)return{};let n=yw(e,Gi(o,{intro:a})),s=e==="phone"&&ud("tablet",o)?f=>ke(f,"tablet"):f=>f,i=(f,u)=>o[s(f)]==null?{}:{[ke(f,e)]:u},l=rd.unitKey,d=o[s(l)]==null?{}:{[ke(l,e)]:n.unit};return{[ke("stickTop",e)]:!0,...i("stickTopDistance",n.distance),...d,...i(yr,n.screens),[ke(r,e)]:t}}function ioe({value:e,onChange:o,labelId:t,view:r,intro:a}){let n=So(),s=Gi(n,{intro:a}),i=r==="phone"?s.phone:r==="tablet"?s.tablet:a?s.desktop:e===!0,l=r==="phone"&&s.ownTablet,d=r==="desktop"?null:yw(r,s),f=d?.on?Me(d.distance,d.unit):c("Off");return A(wo,{label:c(kS),labelId:t,icon:Ji(A(KF,{})),action:ya(Sa,{children:[r!=="desktop"?A(et,{words:ce()?.panel,label:c(kS),changed:ud(r,n),detail:is(u=>c(u),f,l?"tablet":"desktop"),onReset:()=>o(void 0)}):null,A(fw,{checked:i,onChange:o,ariaLabelledBy:t})]})})}var BF="e.g. about";function al(){return{_gAnchor:wr("Anchor"),anchor:ds({control:"plainText",label:"Name",placeholder:BF},{type:"custom",render:({value:e,onChange:o})=>A(wA,{value:e,onChange:o,nameBox:(t,r)=>A(cs,{value:t,onChange:r,label:"Name",placeholder:BF,hideable:!1,markup:!1})})})}}function tDe(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 A(wo,{label:c(e),icon:o,htmlFor:i,hint:t===void 0?void 0:c(t),children:A(DQ,{id:i,value:Number.isFinite(l)?new Date(l):null,onChange:d=>a(d?d.toISOString():"")})})}}}function xB(e,o,t,r){return{type:"custom",...on({},{...jm,label:e}),render:a=>{let{value:n,onChange:s,id:i,name:l}=a,d="follows"in a,f=a,u=typeof n=="boolean",p=typeof f.follows=="boolean"?f.follows:o,m=u?n:d?p:o,h=`${i??l??e}-label`,I=f.readOnly===!0,w=A(fw,{checked:m,onChange:s,disabled:I,ariaLabelledBy:h});return A(wo,{label:c(e),labelId:h,icon:t,hint:r===void 0?void 0:c(r),action:d?ya(Sa,{children:[A(et,{words:ce()?.panel,label:c(e),changed:u,detail:f.followsNoView?c(p?"On":"Off"):is(S=>c(S),c(p?"On":"Off"),f.followsView),disabled:I,onReset:()=>s(void 0)}),w]}):w})}}}function gB(){return{type:"custom",render:({value:e,onChange:o,id:t,name:r})=>{let a=`${String(t??r??"pageBackground")}-colour`;return A(loe,{label:"Background",icon:A(SQ,{}),id:a,value:e,shown:Eb(e),onChange:o})}}}function rDe(e,o,t){return{type:"custom",render:({value:r,onChange:a})=>A(gt,{label:c(e),icon:t,value:r||o,onChange:a})}}function loe({label:e,icon:o,id:t,value:r,shown:a,onChange:n}){let{colors:s,n:i}=Sw(),l=zr(r),d=l?Li(l,s,i):null;return A(gt,{label:c(e),icon:o,id:t,value:d?d.hex:a,caption:d?.words,onChange:n,choices:bw(l??"",s,i,n)})}function aDe(){return{type:"custom",render:e=>{let{value:o,onChange:t}=e,r=e;return A(coe,{value:typeof o=="string"?o:"",onChange:t,twin:"follows"in e?{follows:r.follows,view:r.followsView}:void 0})}}}function bw(e,o,t,r){let a=qu(e);return PA(o,t).map(n=>({label:n.label,color:n.value,selected:a===n.name,onPick:()=>r(n.name)}))}function coe({value:e,onChange:o,twin:t}){let{colors:r,n:a}=Sw(),n=r.background,s=ls(n.toUpperCase(),c("Theme {n} background",{n:a})),[i,l]=br(DA),[d]=br(Rb),f=typeof d=="string"&&d.trim()!=="",u=Vu(i),p=y=>l(Vu(y)||void 0),m=qu(e),h=m?Li(m,r,a):null,I=bw(e,r,a,o),w=t?()=>o(void 0):()=>o(""),S=n,v=s;if(t){let y=qu(t.follows),k=Yu(t.follows),L=y?Li(y,r,a):k?{hex:k,words:k.toUpperCase()}:null;S=L?.hex??n,v=is(O=>c(O),L?L.words:s,t.view)}let b=!t&&(Gc(e)||f)?A(doe,{value:u,onChange:p}):null;return h?A(gt,{label:c("Fill"),icon:A(aw,{}),value:h.hex,caption:h.words,onChange:o,changed:!0,onReset:w,resetTo:v,choices:I,children:b}):A(Vc,{label:c("Fill"),icon:A(aw,{}),value:e,inherited:S,resetTo:v,onChange:o,onReset:w,choices:I,children:b})}function doe({value:e,onChange:o}){return cd({options:Ku.map(t=>({label:t.label,value:t.value,hint:t.hint})),value:e,onChange:o,ariaLabel:c("Fill")})}function foe(e,o,t){if((e?.content??[]).some(n=>n?.props?.id===o))return Wr(t);let r=HA(e,o);if(r.length===0)return null;let a=Wr(Dn(t));if(a!==null)return a;for(let n=r.length-1;n>0;n-=1){let s=Wr(Dn(r[n].sectionAccent));if(s!==null)return s}return Wr(r[0].sectionAccent)}function Sw(){let e=vo(fe().theme),[o]=br("sectionAccent"),t=null;try{let{appState:a,selectedItem:n}=Km(i=>i),s=n?.props?.id?String(n.props.id):void 0;t=s?foe(a?.data,s,o):null}catch{t=null}let r=t!==null&&e.themes[t]?t:e.selected;return{colors:ht(e.themes[r]),n:r+1}}function nDe(){return hd()}var IB={top:A(hQ,{}),right:A(mQ,{}),bottom:A(pQ,{}),left:A(uQ,{})};function yB(e,o,t,r,a,n,s){let i=u=>o.find(p=>p.value===u),l=u=>({value:u,label:"",disabled:!0,title:r}),d=u=>{let p=o.find(h=>h.cell===u);if(!p)return l(`missing-${u}`);let m=n?.[u];return m?{value:p.value,label:p.label,icon:m}:{value:p.value,label:p.label}},f=[l("corner-top-left"),d("top"),l("corner-top-right"),d("left"),l("centre"),d("right"),l("corner-bottom-left"),d("bottom"),l("corner-bottom-right")];return{type:"custom",render:({value:u,onChange:p})=>{let m=o.some(h=>h.value===u)?u:t;return A(wo,{label:c(e),icon:a,value:i(m)?.label?c(i(m).label):s?c(s):"",children:JQ(c,{label:e,value:m,onChange:p,points:f})})}}}function sDe(e,o,t){return{type:"custom",options:o,render:({value:r,onChange:a,field:n})=>A(pR,{label:e,options:(n.options??o).map(s=>({...s,label:c(s.label)})),value:Array.isArray(r)?r:[],onChange:a,...t?{emptyLabel:c(t)}:{}})}}function iDe(e,o={}){return{type:"custom",render:({value:t,onChange:r})=>{let a={value:t,onChange:r,...o};return A(e,{...a})}}}var poe={image:"Image",video:"Video"},lDe=Mn.map(e=>({label:poe[e],value:e}));function cDe(e,o,t){let r=Object.keys(Xy).map(a=>({label:Xy[a],value:a,picture:t[a]}));return{type:"custom",...on({},{type:"radio",label:e,options:r.map(a=>({value:a.value,label:a.label}))}),render:({onChange:a})=>A(moe,{label:e,icon:o,options:r,onChange:a})}}function uoe(e,o,t){let r=s1(e,o,t);if(r!==void 0)return r==="save-makes-frame"?c("A frame is made from this video when you save the page."):r==="starts-dark"?c("This video starts dark, so no frame was made. The slide shows its background colour while the video loads. Choose Image to show a picture."):r==="outside"?c("This video is on another website, so no frame can be made. The slide shows its background colour while the video loads. Choose Image to show a picture."):r==="unsupported"?c("This video's file type gives no frame. The slide shows its background colour while the video loads. Choose Image to show a picture."):r==="failed"?c("No frame could be made from this video. It is tried again the next time you save the page. The slide shows its background colour while the video loads."):r==="image-no-frame"?c("The slide shows your Image while the video loads, because this video has no frame."):void 0;let a=n1(e);return a==="frame-missing-image"?c("This video has no frame yet. The slide shows its image until one is made."):a==="frame-missing-surface"?c("This video has no frame yet. The slide shows its background colour until one is made."):a==="image-missing-frame"?c("No image yet. The slide shows the video's frame until you choose one."):a==="image-missing-surface"?c("No image yet. The slide shows its background colour until you choose one."):void 0}function moe({label:e,icon:o,options:t,onChange:r}){let a=ss(),n=a?.values??{},s=Fc(n),i=DF(tQ),l=Eu(i?.docId??null),d=null;try{d=Km(u=>u.appState.data)}catch{d=null}let f=k1(a?.id,d,l);return A(wo,{label:c(e),icon:Ji(o),hint:uoe(n,f,i?.hasUnsavedEdits??!1),children:cd({options:t,value:s,onChange:r,ariaLabel:e})})}function dDe(e,o,t,r={}){let a={type:"custom",[nQ]:!0,render:({value:n,onChange:s,name:i})=>A(dR,{value:n||"",onChange:s,fieldKey:i,label:e,accept:o,placeholder:t,focusKey:r.focus,focusWhen:r.focusWhen,frameKey:r.frame}),...r.focus?{focusKey:r.focus}:{},...r.focusWhen?{focusWhen:r.focusWhen}:{}};return r.focus?Lt("each",a):a}var fDe={HeroSingle:[Hn.image],HeroSlide:["videoFrame","videoFramePhone"],ContactLocations:["locations[].photo"],ProcessSteps:["steps[].image"]};function hoe(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 pDe({value:e,onChange:o,label:t}){let r=e||{},a=ss(),n=a?a.values!==a.node.props:!0,s=!!r.pending&&n,i=!!r.pending&&!n,l=!!Ge(XQ()).geocode,d=MF(),f=(u,p)=>o({...r,[u]:p??void 0});return ya(Sa,{children:[A(wo,{label:c(t),icon:A(TF,{}),action:l?A(pw,{content:c("Find from the address (OpenStreetMap)"),children:A(qF,{"aria-label":c("Find from the address"),"aria-busy":s||void 0,disabled:s,onClick:()=>o({...r,pending:!0,ok:!1,status:"Finding\u2026"}),children:A(wQ,{})})}):void 0,children:l&&r.status?A(CA,{compact:!0,oneLine:!0,spaced:!1,status:s?"busy":r.ok&&!i?"found":"notfound",statusText:s?c("Finding\u2026"):i?c(Nb):c(r.status),hint:hoe(r)}):null}),A(wo,{label:c("Enter by hand"),labelId:d,icon:A(xQ,{}),action:A(fw,{checked:!!r.manual,onChange:u=>o({...r,manual:u}),ariaLabelledBy:d})}),r.manual&&A(wo,{label:c("Latitude, longitude"),icon:A(TF,{}),children:ya("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:8,width:"100%",minWidth:0},children:[A(EF,{value:typeof r.lat=="number"?r.lat:null,onChange:u=>f("lat",u),min:-90,max:90,step:1e-4,placeholder:c("Latitude")}),A(EF,{value:typeof r.lng=="number"?r.lng:null,onChange:u=>f("lng",u),min:-180,max:180,step:1e-4,placeholder:c("Longitude")})]})})]})}function xoe(e,o){return o===null||o<0||o>=e.length?"":e[o]?.text??""}function goe(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 Ioe(e,o,t){if(t===null||t>=o.length)return null;for(let r=0;r<t;r+=1)if(e[r]!==o[r])return null;return e[t]!==o[t]&&o.includes(e[t])||e[t]!==o[t]&&o.length!==e.length?null:t}var ww={label:"Ticker items",icon:A(bQ,{})};function uDe(e,o,t,r){return{type:"custom",[ba]:{control:"textList",label:e,placeholder:t,itemKey:"text",rendering:r},...on({},{...eB.textList,label:e}),render:({value:a,onChange:n})=>A(Cw,{label:e,icon:Ji(o),items:Array.isArray(a)?a:[],placeholder:t,onChange:n,markup:r==="markup"})}}function Cw({label:e,icon:o,items:t,placeholder:r,onChange:a,markup:n=!1}){let s=dd(null),[i,l]=fd(null),d=u=>u.map(p=>({text:p?.text??""})),f=u=>{let p=Ioe(t,u,i);p===null&&(s.current=null),l(p),a(d(u))};return A(LQ,{label:c(e),icon:o,noun:c("item"),items:t,onChange:f,newItem:()=>({text:""}),open:null,onOpen:()=>{},renderItem:()=>null,above:n?A(Hb,{target:s,value:xoe(t,i),onChange:u=>a(goe(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)=>A("input",{type:"text",className:n&&i===p?"sf-list-marking":void 0,value:u?.text??"",placeholder:c(r),"aria-label":c("{label} {n}",{label:c(e),n:p+1}),onChange:h=>m({text:h.target.value}),onFocus:h=>{s.current=h.currentTarget,l(p)}})})}function bB(e,o){let t=`${e.label} \u2014 row ${o+1}`;return ds({control:"plainText",label:t,placeholder:e.placeholder,offPage:e.offPage},{type:"custom",render:({value:r,onChange:a})=>A(cs,{value:r,onChange:a,label:c("{label} \u2014 row {n}",{label:c(e.label),n:o+1}),placeholder:e.placeholder,hideable:!1,markup:e.rendering==="markup"})})}function SB(e){return{_gCards:wr("Cards"),coverIndex:At("Cover image",A(yQ,{}),iR,String(1),e?.coverHint??"A card's opening picture \u2014 a card pinned to a finish keeps its own."),imageBackground:Iee("Image background",Lm),cardImage:CB()}}function mDe(){return{outline:At("Card outline",A(CQ,{}),sR,nR),indexBadge:At("Card number",A(IQ,{}),jb,Gb),showBadge:xB("Product badge",!0,A(kb,{noun:"tag"}))}}function wB(e){let o=e?.defaults??{showCardSizes:!0,showCardBuy:!0,showCardPage:!0},t=a=>({...jm,label:Gm.find(n=>n.id===a).label}),r=a=>on(nw(rw),t(a));return{_gShowOnCard:wr("Show on a card"),[rw]:on({type:"custom",render:()=>A(yoe,{rest:{showCardPrice:!0,showCardFinishes:!0,...o}})},t(rw)),showCardFinishes:r("showCardFinishes"),showCardSizes:r("showCardSizes"),showCardBuy:r("showCardBuy"),showCardPage:r("showCardPage")}}var rw="showCardPrice",Gm=[{id:"showCardPrice",label:"Price"},{id:"showCardFinishes",label:"Finish swatches"},{id:"showCardSizes",label:"Sizes"},{id:"showCardBuy",label:"Buy button"},{id:"showCardPage",label:"Page button"}];function yoe({rest:e}){let o=So(),t=ur(),r=s=>typeof o[s]=="boolean"?o[s]:void 0,a=s=>r(s)??e[s],n=Gm.some(({id:s})=>r(s)!==void 0&&r(s)!==e[s]);return A(nl,{parts:Gm,changed:n,shown:a,onPress:(s,i)=>t({[s]:i}),onReset:()=>t(Object.fromEntries(Gm.map(({id:s})=>[s,void 0])))})}function hDe(e,o="display"){let t=Zi(o);return{[o]:Lt("desktop",{type:"custom",render:({value:r,onChange:a})=>A(nl,{parts:e,changed:GA(r),shown:n=>Ju(r,n),onPress:(n,s)=>a(KA(r,n,s)),onReset:()=>a(void 0)})}),[t]:Lt("mobile",{type:"custom",render:({value:r,onChange:a})=>A(boe,{parts:e,desktopKey:o,value:r,onChange:a})})}}function nl({parts:e,changed:o,shown:t,onPress:r,onReset:a,detail:n,disabledReason:s}){let i=c("Display");return A(wo,{label:i,icon:A(lQ,{}),changed:o,action:A(et,{words:ce()?.panel,label:i,changed:o,detail:n,onReset:a}),children:A(FQ,{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 boe({parts:e,desktopKey:o,value:t,onChange:r}){let a=So()[o];return A(nl,{parts:e,changed:jA(t),shown:n=>Bb(a,t,n),onPress:(n,s)=>r(VA(t,n,s)),onReset:()=>r(om),detail:c("the same as Desktop")})}function CB(e=q1){return Wo("Card image",A($F,{}),nt,Ha,Y1,nt,e,{clear:{hint:nt},hint:"Rounds the picture. The card's own corner is in Styles."})}function Soe(){return ns(Ib,"cardImage")}function xDe(){return{cardImage:CB(Ib),...Soe()}}function gDe(){return gw({sidesKey:"cornerSides",row:Z1,step:J1,useFollowed:()=>nt,mark:A(woe,{label:Q1}),hint:c("Rounds the picture. Left alone it stays square.")})}function woe({label:e,changed:o=!1,onReset:t=()=>{}}){return A(et,{words:ce()?.panel,label:c(e),changed:o,onReset:t})}function IDe(){return{type:"custom",render:({value:e,onChange:o})=>A(Toe,{value:typeof e=="string"?e:"",onChange:o})}}var NF="own";function yDe(){let e=[{value:NF,label:"Layout's own",picture:QS(Array.from({length:8},()=>[3,1]))},...Object.entries(Bu).map(([o,t])=>({value:o,label:t.label,picture:QS([...t.phone,...t.phone])}))];return Lt("mobile",ZS("Layout",A(UF,{}),e,NF,{columns:2,cell:vF}))}function Coe({layout:e,width:o}){let t=wb(e),r=t?`${t[0]}/${t[1]}`:void 0;return A("span",{"aria-hidden":"true",style:{display:"grid",width:o,gridTemplateColumns:"repeat(12, minmax(0, 1fr))",gridAutoRows:r?"auto":6,gridAutoFlow:"row dense",gap:2},children:sA(e).map(([a,n],s)=>A("i",{className:"block rounded-xs bg-current opacity-60",style:{gridColumn:`span ${a}`,gridRow:`span ${n}`,aspectRatio:r}},s))})}var voe={width:"3.5rem",height:"2.5rem",words:!1},koe=200;function Toe({value:e,onChange:o}){let[t,r]=fd(null),[a,n]=fd(4),s=dd(null);oQ(()=>{let m=s.current;if(!m||typeof ResizeObserver!="function")return;let h=()=>n(m.getBoundingClientRect().width>=koe?4:3);h();let I=new ResizeObserver(h);return I.observe(m),()=>I.disconnect()},[]);let i=e?$($c,e):void 0,l=i?e:"",d=bb(t,l),f=bb(t,"").length,u=Mu("no-symbol"),p=[{value:"",label:c("Not chosen"),icon:CF(u,c("Not chosen"))},...d.map(m=>({value:m,label:c($c[m].label),icon:A(Coe,{layout:$c[m],width:40})}))];return A(wo,{label:c("Layout"),icon:A(UF,{}),value:i?c(i.label):void 0,children:A("div",{ref:s,style:{flex:"1 1 auto",minWidth:0},children:A(VF,{label:c("Layout"),value:l,options:p,onChange:o,columns:a,cell:voe,header:ya("div",{className:"mb-2 flex flex-col gap-1",style:{minWidth:"11rem"},children:[A("span",{className:"text-2xs text-ink-faint",children:c("Photos in a row")}),A(EQ,{options:[{id:"all",label:c("All")},...rA.map(m=>({id:String(m),label:String(m)}))],value:t===null?"all":String(t),ariaLabel:c("Photos in a row"),onChange:m=>r(m==="all"?null:Number(m))}),A("span",{className:"text-2xs text-ink-faint",children:c("{n} of {total} layouts",{n:f,total:yb.length})})]})})})})}import{decodePartId as zoe}from"efficient-easel/draw";import{decodePartId as Id,encodePartId as qr}from"efficient-easel/draw";import{LINK_FIELD_MARKER as LB,SCAFFOLD_FIELD_MARKER as AB,TEXT_FIELD_MARKER as eh}from"efficient-easel/draw";import{readHidable as FB}from"efficient-easel/draw";import{SCALAR_TEXT_CONTROLS as Loe}from"efficient-easel/draw";import{TEXT_FIELD_MARKER as Roe}from"efficient-easel/draw";import{TEXT_FIELD_MARKER as vB}from"efficient-easel/draw";import{readHidable as kB}from"efficient-easel/draw";import{SCALAR_TEXT_CONTROLS as Poe}from"efficient-easel/draw";var Eoe=Poe,_oe=["text","textarea"],Ooe=["textarea","plainTextarea"];function Aoe(e){return!e||typeof e!="object"?null:e[vB]?.control??null}function sl(e){let o=Aoe(e);return o&&Eoe.includes(o)?o:null}function Xm(e){return Ooe.includes(e)}function TB(e){return!e||typeof e!="object"?void 0:e[vB]?.placeholder}function Zm(e){return kB(e).text}function vw(e,o,t){return _oe.includes(e)?{text:t,hidden:kB(o).hidden}:t}function PB(e,o,t,r){return Zm(e[o])===r?null:{...e,[o]:vw(t,e[o],r)}}function Yr(e,o){return o?`${e}[${o.index}].${o.rowKey}`:e}function 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 Jm(e){if(!(!e||typeof e!="object"))return e[Roe]}function kw(e){if(!e||typeof e!="object")return null;let o=e.arrayFields;return o&&typeof o=="object"?o:null}function EB(e,o){if(!Array.isArray(o))return[];let t=Jm(e),r=[];if(t?.control==="textList"){let n=t.itemKey??"text";return o.forEach((s,i)=>{let l=be(s?.[n]);l&&r.push({row:{index:i,rowKey:n},text:l})}),r}let a=kw(e);return a?(o.forEach((n,s)=>{for(let[i,l]of Object.entries(a)){if(!sl(l))continue;let d=Zm(n?.[i])||Jm(l)?.placeholder||"";d&&r.push({row:{index:s,rowKey:i},text:d})}}),r):[]}function gd(e,o){if(Array.isArray(e))return e[o.index]?.[o.rowKey]}function Tw(e,o,t,r){let a=e[o];return!Array.isArray(a)||t.index<0||t.index>=a.length?null:{...e,[o]:a.map((n,s)=>s===t.index?{...n,[t.rowKey]:r}:n)}}function _B(e,o,t,r,a){let n=gd(e[o],t);return Zm(n)===a?null:Tw(e,o,t,vw(r,n,a))}function OB(e,o){return o?`${e} \xB7 row ${o.index+1}`:e}var co="data-sf-part",an="data-sf-region-part",Pw="data-sf-part-row";function BB(e,o){return`${e}[${o}]`}var NB="data-sf-part-kind",Ew="data-sf-part-style-owner",yd="data-sf-part-style-kind";function bd(e){for(let o=e;o;o=o.parentElement){let t=o.getAttribute(Ew),r=o.getAttribute(yd);if(t&&r)return{owner:t,kind:r};if(o.getAttribute("data-easel-block"))return null}return null}var RB=2;function rn(e){return na(e).replace(/\s+/gu,"")}function Qm(e,o,t){let r=e[eh];if(r){if(r.control==="textList"){let n=r.itemKey??"text";if(!Array.isArray(o))return;for(let s of o){let i=s?.[n];typeof i=="string"&&t.push(i)}return}let{text:a}=FB(o);a?t.push(a):r.placeholder&&t.push(r.placeholder);return}if(!e[LB]){if(e.type==="text"||e.type==="textarea"){let a=be(o);a&&t.push(a);return}if(e.arrayFields&&Array.isArray(o)){for(let a of o)for(let[n,s]of Object.entries(e.arrayFields))Qm(s,a?.[n],t);return}if(e.objectFields&&o&&typeof o=="object")for(let[a,n]of Object.entries(e.objectFields))Qm(n,o[a],t)}}function _w(e){if(!e||typeof e!="object")return!1;let o=e;return o[LB]?!1:!!o[eh]||o.type==="text"||o.type==="textarea"}function oh(e,o){let t=e[eh];return t?.label?t.label:typeof e.label=="string"?e.label:o}function Sd(e){let o=e.indexOf(" (");return(o>0?e.slice(0,o):e).trim()}function DB(e,o,t){if(!e)return[];let r=[];for(let[a,n]of Object.entries(e)){if(!n||typeof n!="object"||Vn(a))continue;let s=n,i=[];Qm(s,o?.[a],i),!i.length&&s[AB]!==void 0&&Qm(s,s[AB],i);let l=oh(s,a);if(t?.(a)&&_w(s)){i.length&&r.push({key:a,label:l,texts:[],keyed:!0});continue}let d=new Set;for(let{row:p,text:m}of EB(s,o?.[a])){let h=rn(m);h.length<RB||(d.add(h),r.push({key:a,label:l,texts:[h],row:p}))}let f=new Set(d),u=[];for(let p of i){let m=rn(p);m.length<RB||f.has(m)||(f.add(m),u.push(m))}u.length&&r.push({key:a,label:l,texts:u})}return r}function Ow(e){return!e.offPage&&!e.hidden&&e.panelOnly!==!0}var Foe=Loe;function MB(e,o){if(!o||typeof o!="object"||Vn(e)||JA(o))return null;let t=o[eh];return!t||!Foe.includes(t.control)?null:t}function Aw(e,o){let t=MB(e,o);return t!==null&&t.identifier!==!0}function HB(e,o){if(!e)return[];let t=[];for(let[r,a]of Object.entries(e)){let n=MB(r,a);if(!n)continue;let{text:s,hidden:i}=FB(o?.[r]);if(Ow({offPage:n.offPage===!0,hidden:!!i,panelOnly:Hi(a)}))continue;let l=s||n.placeholder||"",d=na(l).replace(/\s+/gu," ").trim();t.push({key:r,label:Sd(oh(a,r)),preview:d,offPage:n.offPage===!0,identifier:n.identifier===!0,hidden:!!i})}return t}function il(e,o){let t=Jm(e);return t?.control==="textList"?o.rowKey===(t.itemKey??"text")?bB(t,o.index):null:kw(e)?.[o.rowKey]??null}function th(e,o,t){let r=e.node.props,{key:a,row:n}=Cr(e.propKey),s=n?_B(r,a,n,e.kind,o):PB(r,a,e.kind,o);return s?(t(e.zone,e.index,{...e.node,props:s}),!0):!1}import{readHidable as UB}from"efficient-easel/draw";var Rw=e=>String(e+1).padStart(2,"0"),YDe=[{label:"01 \xB7",value:"two-digit"},{label:"1.",value:"plain"}],Lw="two-digit",WB=e=>e==="plain"?"plain":Lw,rh=(e,o)=>e==="plain"?`${o+1}.`:Rw(o);var Nw="Contents",Fw="Flex",$B="Text",Boe="numberForm",Noe="_contentsEntries",Doe="_kickerNumber",zB="data-sf-kicker-number",Moe=e=>UB(e).text.trim(),GB=e=>zn(e?.anchor),Bw=e=>String(e.props?.id??""),Hoe=e=>!UB(e.props?.text).hidden&&!Ei(e.props)&&!mt(e.props),wd=e=>si(e);function jB(e){for(let o of wd(e))for(let t of o){if(pa(t.props??{}))continue;if(t.type===$B&&Hoe(t))return t;if(t.type===$B)continue;let r=jB(t);if(r)return r}}function KB(e){return wd(e).some(o=>o.some(t=>t&&!pa(t.props??{})&&(t.type===Nw||KB(t))))}var VB=e=>e.type===Fw&&Kr(Fw,e.props?.direction)==="row";function YB(e){return wd(e).some(o=>o.some(t=>t&&!pa(t.props??{})&&(t.type===Nw||!VB(t)&&YB(t))))}function Woe(e){let o=[],t=(r,a)=>{for(let n of r){if(!n||pa(n.props??{}))continue;if(n.type===Nw){a.open={contents:n,sections:a.waiting??[]},a.waiting=null,o.push(a.open);continue}if(VB(n)&&YB(n)){let i={inRow:!0,open:null,waiting:[]};for(let l of wd(n))t(l,i);a.inRow||(a.open=null);continue}let s=a.open?.sections??a.waiting;if(n.type===Fw&&GB(n.props)&&s&&!KB(n)){s.push({box:n,kicker:jB(n)});continue}for(let i of wd(n))t(i,a)}};return t(e,{inRow:!1,open:null,waiting:null}),o}function $oe(e){return e.map(o=>({label:o.kicker?na(Moe(o.kicker.props?.text)):"",anchor:GB(o.box.props)}))}function Dw(e){let o=e?.length?Woe(e):[];if(!o.length)return null;let t=new Map,r=new Map;for(let a of o){let n=Bw(a.contents);n&&t.set(n,$oe(a.sections));let s=WB(a.contents.props?.[Boe]);a.sections.forEach((i,l)=>{let d=i.kicker?Bw(i.kicker):"";d&&r.set(d,rh(s,l))})}return{entries:t,numbers:r}}var nMe=e=>e.endsWith(".")?`${e} `:`${e} \xB7 `;function qB(e){let o=e;if(!o?.content?.length)return e;let t=Dw(o.content);if(!t)return e;let{entries:r,numbers:a}=t,n=s=>{let i=ho(s,m=>so(m,n)),l=i.props??{},d=i!==s,f=Bw(s),u=f?r.get(f):void 0;u&&(l={...l,[Noe]:u},d=!0);let p=f?a.get(f):void 0;return p&&(l={...l,[Doe]:p},d=!0),d?{...s,props:l}:s};return{...o,content:o.content.map(n)}}var Goe=`[${zB}]`,joe=["bold","italic","underline","strike","link","sup","sub"],Koe=["bullet","number"];function Ww(e,o){return e?[...joe,...o?Koe:[]]:[]}function XB(e,o){let t=zoe(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?il(d,l):d,u=sl(f);if(!u)return null;let p=n.props??{};if(cS(p)!==null||!l&&zp(n.type,p,i)||n.type==="Text"&&i==="text"&&Ei(p)||l&&!(Array.isArray(p[i])&&l.index<p[i].length))return null;let m=l?gd(p[i],l):p[i];return{node:n,selector:s,propKey:a,kind:u,stored:m,offPage:Vm(f),panelOnly:Hi(f)}}function ah(e,o){let t=XB(e,o);if(!t)return null;let{text:r,hidden:a}=tn(t.stored);if(!Ow({offPage:t.offPage,hidden:!!a,panelOnly:t.panelOnly}))return null;let n=Xm(t.kind);return{partId:e,value:r,rules:Cp,multiline:n,skip:Goe,offered:Ww(t.kind!=="plainText",n),write:s=>{let i=XB(e,o);i&&th({node:i.node,propKey:i.propKey,kind:i.kind,zone:i.selector.zone,index:i.selector.index},s,o.replace)}}}function $w(e,o,t){return e?.isConnected&&e.getAttribute(co)===t?e:o?.querySelector(`[${co}="${nh(t)}"]`)??null}function nh(e){return e.replace(/["\\]/g,"\\$&")}function ZB(e){let o=e.activeElement;return o?o.tagName==="IFRAME"||!!o.closest(".es-canvas"):!1}var Mw=null,Hw=new Set;function Voe(){return Mw}function Uw(e){if(e!==Mw){Mw=e;for(let o of Hw)o()}}function Yoe(e){return Hw.add(e),()=>{Hw.delete(e)}}function JB(){return Uoe(Yoe,Voe,()=>null)}function QB(e,o){if(e.outer)return null;let t=o.getItemById(e.ownerId);if(!t)return null;let r=o_(t.type);return!r||eo(t.props)?null:{node:t,rows:r}}function Qoe(e,o){let t=QB(e,o),r=o.getItemById(e.nodeId);if(!t||!r)return null;let a=i_(r.type,r.props,e.key);if(!a)return null;let n=t.node.props[t.rows];return!Array.isArray(n)||e.index<0||e.index>=n.length?null:qoe(e.ownerId,Yr(t.rows,{index:e.index,rowKey:a}))}function sh(e,o){let t=Qoe(e,o);return t?ah(t,o):null}function eN(e,o){return sh(e,o)?.value}function oN(e,o){let t=sh(e,o);return t?(t.write(e.text),!0):!1}function tN(e,o){let t=QB(e,o),r=t&&o.getSelectorForId(e.ownerId);if(!t||!r)return!1;let a=t.node.props,n=a[t.rows],s=e.index;if(!Array.isArray(n)||s<0||s>=n.length)return!1;let i;switch(e.action){case"addAfter":{let l=o.components[t.node.type]?.fields?.[t.rows];i=Xoe(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=Zoe(n,s,l);break}case"delete":i=Joe(n,s);break;default:return!1}return o.replace(r.zone,r.index,{...t.node,props:{...a,[t.rows]:i}}),!0}import{jsx as $e,Fragment as Sbe,jsxs as cI}from"react/jsx-runtime";import{Fragment as wbe,useEffect as JG,useMemo as QG,useRef as Cbe,useState as Ks}from"react";import{useScreenDocument as aj}from"efficient-easel/screen/components/ScreenDocumentContext";import{UiIcon as hP}from"efficient-easel/draw/client";import vbe from"efficient-easel/screen/components/SidePanelHead";import{jsx as Pe,Fragment as ml,jsxs as gs}from"react/jsx-runtime";import{useEasel as GD,useRootFields as Bae}from"efficient-easel/easel";import{Inspector as Nae}from"efficient-easel/fields";import{SettingsGroup as Dae}from"efficient-easel/panel";import{useEffect as Mae,useRef as Hae,useState as HC}from"react";import{jsx as fs,Fragment as rte,jsxs as ate}from"react/jsx-runtime";import{useState as sN}from"react";import{SettingsDefaultReset as nte,SettingsField as ste}from"efficient-easel/panel";import{useEaselStrings as ite}from"efficient-easel/strings";import{AddIcon as lte}from"efficient-easel/icons";import{Button as cte}from"efficient-shell/ui";import{iconOf as dte,noGlyph as fte}from"efficient-easel/screen/lib/document/box-fields";import{jsx as ih,Fragment as ete,jsxs as rN}from"react/jsx-runtime";import{Button as aN,Dialog as ote}from"efficient-shell/ui";function tte(e){return st("This site has {n} color theme of its own. Clearing takes them away and puts back the four the shop supplies.","This site has {n} color themes of its own. Clearing takes them away and puts back the four the shop supplies.",e)}function nN({count:e,onCancel:o,onConfirm:t}){return rN(ote,{open:!0,onClose:o,role:"alertdialog",size:"sm",title:c("Clear this site\u2019s colors?"),footer:rN(ete,{children:[ih(aN,{variant:"secondary",onClick:o,children:c("Cancel")}),ih(aN,{variant:"danger",onClick:t,children:c("Clear colors")})]}),children:[ih("p",{children:tte(e)}),ih("p",{className:"mt-2 font-medium",children:c("This cannot be undone.")})]})}var pte=fte("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"),ute="Reset color",mte={selected:0,themes:[]};function hte(e){e(mte)}function iN({value:e,onChange:o}){let t=e?.themes??[],r=t.length===0,a=vo(e),[n,s]=sN(!1),i=ite(),[l,d]=sN(null),f=(S,v)=>{o({...a,themes:a.themes.map((b,y)=>y===S?v:b)})},u=yi(a).accent,p=new Set(a.themes.map(S=>S.brandInk).filter(Boolean)),m=g_.filter(S=>!p.has(S)).map(S=>I_(u,S)),h=[...a.themes,...m],I=S=>{if(S<a.themes.length)return o({...a,selected:S});let v=[...a.themes,h[S]];o({...a,themes:v,selected:v.length-1})},w=()=>{let S=[...a.themes,{...ht(a.themes[a.selected])}];o({...a,themes:S,selected:S.length-1}),d(S.length-1)};return ate(rte,{children:[r?null:fs(ste,{label:c(ute),icon:dte(pte),labelId:"sf-theme-reset",action:fs(nte,{label:c("all theme colors"),words:i.panel,changed:!0,onReset:()=>s(!0)})}),n&&fs(nN,{count:t.length,onCancel:()=>s(!1),onConfirm:()=>{s(!1),hte(o)}}),fs("div",{className:"sf-theme-list",role:"radiogroup","aria-label":c("Theme"),children:h.map((S,v)=>fs(im,{index:v,colors:S,selected:v===a.selected,open:l===v&&v<a.themes.length,editable:v<a.themes.length,onPick:()=>I(v),onEdit:()=>d(b=>b===v?null:v),onChangeColors:b=>f(v,b)},v))}),fs(cte,{variant:"secondary",leftIcon:fs(lte,{}),onClick:w,className:"sf-theme-add",children:c("Add new theme")})]})}import{jsx as lh}from"react/jsx-runtime";import{SettingsDefaultReset as xte,SettingsField as gte}from"efficient-easel/panel";import{SquareIcon as Ite}from"efficient-easel/icons";var yte="Applies to panels, cards, inputs and buttons. Round things \u2014 color swatches, switches, status dots \u2014 stay round.",zw="Corners";function lN({value:e,onChange:o,length:t}){let r=e===null;return lh(gte,{label:c(zw),icon:lh(Ite,{}),changed:!r,action:lh(xte,{words:ce()?.panel,label:c(zw),changed:!r,detail:c("the built-in corners"),onReset:()=>o(null)}),hint:c(yte),children:lh(yt,{min:t?.grid.min??nt,max:t?.grid.max??Ha,step:t?.grid.step??1,value:e,...e===null?{}:{suffix:t?.unit??"px",...t?{units:t.units}:{}},placeholder:nt,placeholderWord:"Auto",onClear:()=>o(null),ariaLabel:c(zw),onChange:o})})}import{jsx as Cd}from"react/jsx-runtime";import{SettingsDefaultReset as bte,SettingsField as Ste}from"efficient-easel/panel";import{IconPicker as wte}from"efficient-shell/ui";import{ShadowIcon as Cte}from"efficient-easel/icons";import{SHADOW_PREVIEW as vte}from"efficient-easel/screen/lib/document/shadow-values";var Gw={none:"None",soft:"Soft",lifted:"Lifted"},kte="Applies to cards \u2014 products, brands, journal entries and filter cells. Round things like swatches and status dots are never shadowed.";function cN({value:e,onChange:o}){let t=e===null,r=e??Ly;return Cd(Ste,{label:c("Card shadow"),icon:Cd(Cte,{}),value:c(Gw[r]),changed:!t,action:Cd(bte,{words:ce()?.panel,label:c("Card shadow"),changed:!t,detail:c(Gw[Ly]),onReset:()=>o(null)}),hint:c(kte),children:Cd(wte,{label:c("Card shadow"),value:r,options:F_.map(a=>({value:a,label:c(Gw[a]),icon:Cd("span",{className:"sf-shadow-chip border border-line bg-surface",style:{boxShadow:vte[a]}})})),onChange:o})})}import{jsx as dN}from"react/jsx-runtime";import{ShadowIcon as Tte}from"efficient-easel/icons";import{DEFAULT_SHADOW_COLOR as fN}from"efficient-easel/screen/lib/document/shadow-values";var Pte="Most useful on a dark theme, where a black shadow cannot be seen. Also used by the Lift hover, even with the card shadow off.";function pN({value:e,onChange:o}){let t=e===null;return dN(Vc,{label:c("Shadow color"),icon:dN(Tte,{}),value:e??"",inherited:fN,resetTo:fN,onChange:o,onReset:()=>o(null),hint:c(Pte)})}import{jsx as dh}from"react/jsx-runtime";import{SettingsDefaultReset as Ete,SettingsField as _te}from"efficient-easel/panel";import{AlignSeparateIcon as Ote}from"efficient-easel/icons";function ch(e,o){return e==="tablet"?null:e==="mobile"?o.phone:o.desktop}var Ate="The space between the blocks inside a row, a grid or a box. Auto means each one keeps the spacing it already has.",Rte="The space between the blocks inside a row, a grid or a box, on a phone. Until you set it, a phone uses half the desktop gap.",jw="Block gap",uN=ji.Grid;function mN(e,o){return ch(e,{desktop:{key:"block_gap",value:o.gap,followsPx:null},phone:{key:"block_gap_phone",value:o.phone,followsPx:o.gap===null?null:NS(o.gap)}})}function hN({value:e,onChange:o,followsPx:t=null,length:r,followsUnit:a="px"}){let n=e===null,s=t===null?null:`${t}${a}`,i=a==="px"&&(r?.unit??"px")==="px",l=t===null?uN:i?nd(t)??uN:t;return dh(_te,{label:c(jw),labelId:"sf-block-gap",icon:dh(Ote,{}),changed:!n,action:dh(Ete,{words:ce()?.panel,label:c(jw),changed:!n,detail:s??c("each block's own spacing"),onReset:()=>o(null)}),hint:c(s===null?Ate:Rte),children:dh(yt,{min:(r?.grid??jt).min,max:(r?.grid??jt).max,step:(r?.grid??jt).step,value:e,...e===null&&t===null?{}:{suffix:r?.unit??"px",...r?{units:r.units}:{}},placeholder:l,...t===null?{placeholderWord:"Auto"}:i&&t===l?{}:{placeholderWord:String(t)},onClear:()=>o(null),ariaLabel:c(jw),onChange:o})})}import{jsx as fh}from"react/jsx-runtime";import{SettingsDefaultReset as Lte,SettingsField as Fte,SettingsSegmented as Bte}from"efficient-easel/panel";import{HoverIcon as Nte}from"efficient-easel/icons";var Kw={none:di.none,lift:di.lift,highlight:aE},Dte="What a card does when a shopper points at it \u2014 or taps it, on a phone. Highlight is the effect your cards already use.";function xN({value:e,onChange:o}){let t=e===null,r=e??Fy;return fh(Fte,{label:c("Hover effect"),icon:fh(Nte,{}),value:c(Kw[r]),changed:!t,action:fh(Lte,{words:ce()?.panel,label:c("Hover effect"),changed:!t,detail:c(Kw[Fy]),onReset:()=>o(null)}),hint:c(Dte),children:fh(Bte,{options:B_.map(a=>({id:a,label:c(Kw[a])})),value:r,ariaLabel:c("Hover effect"),onChange:o})})}import{jsx as ph}from"react/jsx-runtime";import{SettingsDefaultReset as Mte,SettingsField as Hte,SettingsSegmented as Wte}from"efficient-easel/panel";import{DropIcon as $te}from"efficient-easel/icons";var Vw="Photography",gN={shot:"As shot",mono:"Black and white"},Yw=[{grayscale:!1,label:gN.shot},{grayscale:!0,label:gN.mono}],Ute="Black and white photographs return to color on hover. Wheels and tyres keep their real finish either way.";function IN({value:e,onChange:o}){let t=e===null,r=e??!1;return ph(Hte,{label:c(Vw),icon:ph($te,{}),value:c(Yw.find(a=>a.grayscale===r).label),changed:!t,action:ph(Mte,{words:ce()?.panel,label:c(Vw),changed:!t,detail:c(Yw.find(a=>!a.grayscale).label),onReset:()=>o(null)}),hint:c(Ute),children:ph(Wte,{options:Yw.map(a=>({id:a.grayscale,label:c(a.label)})),value:r,ariaLabel:c(Vw),onChange:o})})}import{jsx as qw}from"react/jsx-runtime";import{useId as zte}from"react";import{SettingsField as Gte,SettingsSwitch as jte}from"efficient-easel/panel";import{ShareIcon as Kte}from"efficient-easel/icons";var Vte="Share button",Yte="On every blog post.";function yN({value:e,onChange:o}){let t=zte();return qw(Gte,{label:c(Vte),labelId:t,icon:qw(Kte,{}),action:qw(jte,{checked:e===!0,onChange:o,ariaLabelledBy:t}),hint:c(Yte)})}import{usePreviewDevice as WC}from"efficient-easel/draw/client";import{jsx as uh}from"react/jsx-runtime";import{SettingsDefaultReset as qte,SettingsField as Xte}from"efficient-easel/panel";import{PaddingXIcon as Zte}from"efficient-easel/icons";var Xw="Side space",bN=ct.default,Jte="The room left at the left and right edge of every page.";function SN(e,o){return ch(e,{desktop:{key:"site_gutter",value:o.gutter,unsetPx:bN,bounds:ct},phone:{key:"site_gutter_phone",value:o.phone,unsetPx:ym(o.gutter,o.gutterUnit),bounds:gr}})}function wN({value:e,onChange:o,unsetPx:t=bN,bounds:r=ct,length:a,restsOn:n=t}){let s=e===null;return uh(Xte,{label:c(Xw),labelId:"sf-side-space",icon:uh(Zte,{}),changed:!s,action:uh(qte,{words:ce()?.panel,label:c(Xw),changed:!s,detail:`${t}px`,onReset:()=>o(null)}),hint:c(Jte),children:uh(yt,{min:(a?.grid??r).min,max:(a?.grid??r).max,step:(a?.grid??r).step,value:e,suffix:a?.unit??"px",...a?{units:a.units}:{},placeholder:n,onClear:()=>o(null),ariaLabel:c(Xw),onChange:o})})}import{jsx as Zw}from"react/jsx-runtime";import{BACKGROUND_WIDTHS as q2e,SettingsBackgroundWidth as Qte,SettingsContentWidth as ere}from"efficient-easel/panel";var ore="Background width",Jw="Content width";var mh=e=>c(rs[e==="content"?"page":"full"]),CN="The width of every section's background.",vN="The width of every section's content.";function hh({value:e,changed:o,detail:t,onChange:r,onReset:a,hint:n,labelId:s}){return Zw(Qte,{value:e,changed:o,detail:t,onChange:r,onReset:a,hint:n?c(n):void 0,labelId:s,words:{label:c(ore),full:mh("full"),content:mh("content")},resetWords:ce()?.panel})}function xh({mode:e,px:o,max:t=je.max,min:r=je.min,changed:a,detail:n,fullClosed:s,onMode:i,onPx:l,onReset:d,hint:f,labelId:u,length:p}){let m=c(Jw),h=p?.grid.min??r,I=p?.grid.max??t,w=e!=="full"?Zw(yt,{min:h,max:I,step:p?.grid.step??je.step,value:Math.min(Math.max(o,h),I),onChange:l,...p?{suffix:p.unit,units:p.units}:{suffix:"px"},ariaLabel:m}):null;return Zw(ere,{mode:e,onMode:i,number:w,changed:a,detail:n,fullClosed:s,onReset:d,hint:f?c(f):void 0,labelId:u,words:{label:m,full:mh("full"),content:mh("content")},resetWords:ce()?.panel})}import{jsx as yD}from"react/jsx-runtime";import{TextStyleItem as sae,TextStylesGroup as iae}from"efficient-easel/text-styles";import{jsx as eae}from"react/jsx-runtime";import{useState as oae}from"react";import{TextStylesList as tae}from"efficient-easel/text-styles";import{usePreviewDevice as rae}from"efficient-easel/draw/client";import{defaultTextStyles as tD,textStyleCaseCss as Yre}from"efficient-easel/text-styles/model";import{resolveViewValue as rD}from"efficient-easel/draw";import{VIEW_DESKTOP_MIN as kN,VIEW_TABLET_MIN as TN}from"efficient-easel/draw";var gh=.02,PN=`(min-width: ${Xo}px) and (max-width: ${kN-gh}px)`,vd=`(max-width: ${Xo-gh}px)`,Ih=`(min-width: ${TN}px) and (max-width: ${kN-gh}px)`,yh=`(max-width: ${TN-gh}px)`;import{textStyleCaseCss as tre,textStyleCaseOfCss as rre,viewKeyAt as FN}from"efficient-easel/draw";function ll(e){return!e||typeof e!="object"||Array.isArray(e)?null:e}function cl(e,o){return ll(e?.[o])??{}}function bh(e,o,t){let r=cl(e,o);return ll($(r,t))??{}}function Sh(e,o,t,r){let{[t]:a,...n}=cl(e,o),s=r?{...n,[t]:r}:n,{[o]:i,...l}=e;return Object.keys(s).length?{...l,[o]:s}:l}import{isLengthUnit as aC}from"efficient-easel/screen/lib/content/length-units";var Pd="_partStyles",nC="data-sf-part-styled",vr="data-sf-text-style",are=/^(heading|body)-[1-7]$/;function wa(e){return typeof e=="string"&&are.test(e)}var wh={heading:"heading-1",heading2:"heading-2",heading3:"heading-3",body:"body-1",label:"body-5"};function nre(e){if(!e)return null;for(let[o,t]of Object.entries(wh))if(t===e)return o;return null}function sC(e){if(wa(e.textStyle))return e.textStyle;let o=aa(e.role);return o?wh[o]:void 0}var sre=[400,500,600,700],Td=["left","center","right","justify"],Qw=5,eC=1e3,ire=-5,lre=10,iC=0,lC=64,cC=2,EN={size:{min:Qw,max:eC,step:1},sizeTablet:{min:Qw,max:eC,step:1},sizePhone:{min:Qw,max:eC,step:1},padding:{min:iC,max:lC,step:cC}},cre=.05,dre=.01,fre=["line","letter"],pre=.5,ure=2.5,mre=-1,hre=1,xre=0,gre=400,Ire=[...new Set(Object.values(ci))];function BN(e){return[`${e} { transition: translate var(--page-motion-hover-duration) var(--page-ease-media) var(--page-motion-hover-delay) }`,`${e}:hover, ${e}:active { translate: 0 calc(-1 * var(--page-hover-lift)) }`]}function NN(e){return cl(e,Pd)}function ms(e,o){return bh(e,Pd,o)}function DN(e,o,t){return Sh(e,Pd,o,yre(t).length?t:null)}function yre(e){return Object.entries(e).filter(([,o])=>o!==void 0)}function bre(e){return fre.includes(e)}var kd=(e,o,t)=>Math.min(t,Math.max(o,e)),Sre=["sizeUnit","sizeUnitTablet","sizeUnitPhone"];function oC(e){let o=FN("sizeUnit",e),t=Sre.find(r=>r===o);if(!t)throw new Error(`a part stores no unit key ${o}`);return t}var Vt={size:oC("desktop"),sizeTablet:oC("tablet"),sizePhone:oC("mobile"),paragraphSpacing:"paragraphSpacingUnit",padding:"paddingUnit"},MN=Object.values(Vt);function Xr(e,o){return Ee(e[Vt[o]])}function wre(e,o,t={}){if(MN.includes(e))return aC(o)&&o!=="px"?o:null;if(He(Vt,e)&&Xr(t,e)!=="px"){let r=us(Number(o),2);return!Number.isFinite(r)||r<0||r===0&&e!=="padding"?null:r}if(bre(e)){let r=Math.round(Number(o));return!Number.isFinite(r)||r===0?null:kd(r,ire,lre)}if(e==="lineHeight"){let r=Number(o);return Number.isFinite(r)?us(kd(r,pre,ure),3):null}if(e==="letterSpacing"){let r=Number(o);return Number.isFinite(r)?us(kd(r,mre,hre),4):null}if(e==="paragraphSpacing"){let r=Math.round(Number(o));return!Number.isFinite(r)||r<=0?null:kd(r,xre,gre)}if(He(EN,e)){let{min:r,max:a}=EN[e],n=Math.round(Number(o));return Number.isFinite(n)?kd(n,r,a):null}return e==="italic"?typeof o=="boolean"?o:null:e==="role"||e==="fontRole"?aa(o)?o:null:e==="sizeToken"?dC(o)?o:null:e==="textStyle"?wa(o)?o:null:e==="alignPhone"||e==="alignTablet"?Td.includes(o)?o:null:o}var Cre=["weight","size","sizeTablet","sizePhone","line","letter","lineHeight","letterSpacing","paragraphSpacing","padding"];function dl(e){let o=null,t=r=>{o??={...e},delete o[r]};for(let r of Cre){let a=e[r];a!==void 0&&!(typeof a=="number"&&Number.isFinite(a))&&t(r)}e.align!==void 0&&!Td.includes(e.align)&&t("align"),e.alignTablet!==void 0&&!Td.includes(e.alignTablet)&&t("alignTablet"),e.alignPhone!==void 0&&!Td.includes(e.alignPhone)&&t("alignPhone"),e.textStyle!==void 0&&!wa(e.textStyle)&&t("textStyle"),e.sizeToken!==void 0&&!dC(e.sizeToken)&&t("sizeToken"),e.fontRole!==void 0&&!aa(e.fontRole)&&t("fontRole");for(let r of MN)e[r]!==void 0&&!aC(e[r])&&t(r);return o??e}function dC(e){if(!e||typeof e!="object")return!1;let{step:o,px:t,stepPhone:r,pxPhone:a,fluid:n}=e,s=l=>typeof l=="number"&&Number.isFinite(l)&&l>0,i=l=>typeof l=="string"&&Ire.includes(l);return i(o)&&s(t)&&(r===void 0||i(r))&&(a===void 0||s(a))&&(n===void 0||vre(n,t))}function vre(e,o){if(!e||typeof e!="object"||Array.isArray(e))return!1;let{minPx:t,vw:r,...a}=e;return Object.keys(a).length===0&&typeof t=="number"&&Number.isFinite(t)&&t>0&&t<o&&typeof r=="number"&&Number.isFinite(r)&&r>0&&r<=100}function fC(e){return e?.pxPhone&&dC(e)?{step:e.stepPhone??e.step,px:e.pxPhone}:null}function HN({step:e,px:o,fluid:t}){let r=t?`clamp(${t.minPx}px, ${t.vw}vw, ${o}px)`:`${o}px`,a=`var(--size-${e}, ${r})`;return e.startsWith("heading")?`min(${a}, var(--sf-heading-max,9999px))`:a}var kre=[["font","role"],["font","fontRole"],["role","textStyle"],["line","lineHeight"],["letter","letterSpacing"]];function Tre(e){let o=[];for(let[t,r]of kre)t===e?o.push(r):r===e&&o.push(t);return o}function hs(e,o,t,r){let a={...ms(e,o)},n=r==null?null:wre(t,r,a);if(n===null)delete a[t];else{a[t]=n;for(let s of Tre(t))delete a[s]}return DN(e,o,a)}function WN(e,o){return DN(e,o,{})}function Pre(e){return rre(e)??"none"}function Ere(e){return tre(e)??""}var _N={heading:"--font-role-heading",heading2:"--font-role-heading2",heading3:"--font-role-heading3",body:"--font-role-body",accent:"--font-role-accent",label:"--font-role-label"};function _re(e,o){return aa(e.role)||(o?.blockDrawsStyle?null:nre(e.textStyle))}function Ed(e,o){return e==="Text"&&o==="text"}var Ore={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 Are(e){let o=ci[e],t=$(Ore,o);return t?`var(--size-${o}, ${t})`:`var(--size-${o})`}function _d(e){let o={};return typeof e.lineHeight=="number"?o.lineHeight=e.lineHeight:e.line&&(o.lineHeight=us(Rre+e.line*cre,3)),typeof e.letterSpacing=="number"?o.letterSpacingEm=e.letterSpacing:e.letter&&(o.letterSpacingEm=us(e.letter*dre,4)),o}var Rre=1,ps="--sf-part-para";function Lre(e){e=dl(e);let o={};if(typeof e.sizePhone=="number"&&e.sizePhone>0)o.fontSize=Me(e.sizePhone,Xr(e,"sizePhone"));else{let r=fC(e.sizeToken);if(r)o.fontSize=HN(r);else{let a=vh(e);a!==void 0&&(o.fontSize=Me(a,Xr(e,"sizeTablet")))}}let t=e.alignPhone??Ch(e);return t&&(o.textAlign=t),o}function Ch(e){return e.alignTablet&&e.alignTablet!==e.align?e.alignTablet:void 0}function vh(e){let o=e.sizeTablet!==void 0&&Xr(e,"sizeTablet")!==Xr(e,"size")?e.sizeTablet:sa("textSize",e.size,e.sizeTablet,void 0).tablet;return o&&o>0?o:void 0}function Fre(e){let o=dl(e),t={},r=vh(o);r!==void 0&&(t.fontSize=Me(r,Xr(o,"sizeTablet")));let a=Ch(o);return a&&(t.textAlign=a),t}function $N(e,o){if(o==="desktop")return;let t=dl(e);return(o==="mobile"?Ch(t):void 0)??t.align}function Bre(e,o){if(o==="desktop")return e;let t=dl(e),r=vh(t),a=Ch(t);if(o==="tablet"){let i=e;return r!==void 0&&(i={...i,size:r,sizeUnit:t[Vt.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[Vt.sizePhone]};else{let i=fC(t.sizeToken);i?n={...n,size:void 0,sizeToken:i}:r!==void 0&&(n={...n,size:r,sizeUnit:t[Vt.sizeTablet]})}let s=t.alignPhone??a;return s&&(n={...n,align:s}),n}function pC(e,o,t){return mC(Bre(e,o),kh,t)}function uC(e){return FN("size",e)}function UN(e,o){if(o==="desktop")return null;let t=dl(e);if(o==="mobile"){if(fC(t.sizeToken))return null;let r=vh(t);if(r!==void 0)return{px:r,view:"tablet"}}return typeof t.size=="number"&&t.size>0?{px:t.size,view:"desktop"}:null}function zN(e,o){let t=uC(o);if(!He(e,t))return e;let r={...e};return delete r[t],r}function GN(e,o,t){let r=pC(zN(e,o),o,t);return{fontFamily:r.fontFamily,fontSize:r.fontSize}}function mC(e,o,t){e=dl(e);let r=_re(e,t),a=_d(e),n=e.size?Me(e.size,Xr(e,"size")):e.sizeToken?HN(e.sizeToken):r?Are(r):"";return{fontFamily:e.font?Hre(e.font):e.fontRole?`var(${_N[e.fontRole]})`:r?`var(${_N[r]})`:"",fontWeight:e.weight?String(e.weight):"",fontSize:n,minWidth:n?"0":"",overflowWrap:n?"break-word":"",lineHeight:a.lineHeight!==void 0?String(a.lineHeight):"",letterSpacing:a.letterSpacingEm!==void 0?`${a.letterSpacingEm}em`:"",[ps]:e.paragraphSpacing?Me(e.paragraphSpacing,Xr(e,"paragraphSpacing")):"",textTransform:Ere(e.case),textAlign:e.align??"",paddingTop:ON(e.padding,Xr(e,"padding")),paddingBottom:ON(e.padding,Xr(e,"padding")),color:Nre(e.color),fontStyle:e.italic===!0?"italic":e.italic===!1?"normal":""}}var Nre=e=>Fi(e),ON=(e,o)=>e===void 0?"":Me(e,o),us=(e,o)=>Number(e.toFixed(o));function jN(e,o){let t=Number.parseFloat(e.fontSize)||16,r=Number.parseFloat(e.lineHeight),a=Number.parseFloat(e.letterSpacing),n=Number.parseFloat(e.paddingTop);return{fontKey:o,sizePx:t,weight:Dre(Number.parseInt(e.fontWeight,10)),lineRatio:Number.isFinite(r)?us(r/t,3):1.2,letterEm:Number.isFinite(a)?us(a/t,4):0,align:Mre(e.textAlign),case:Pre(e.textTransform),paddingPx:Number.isFinite(n)?Math.round(n):0}}function Dre(e){return Number.isFinite(e)?sre.reduce((o,t)=>Math.abs(t-e)<Math.abs(o-e)?t:o):400}function Mre(e){for(let o of Td)if(o===e)return o;return e==="end"?"right":"left"}function KN(e,o){let t=AN(e);if(!t)return"";for(let r of Na)if(AN(o(r.cssVar))===t)return r.key;return""}var AN=e=>(e.split(",")[0]??"").replace(/["']/g,"").replace(/\s+/g," ").trim().toLowerCase();function Hre(e){let o=li(e);return o?`var(${o.cssVar})`:""}function VN(e,o,t,r){return!o||Id(o)?.nodeId!==e?null:t.find(a=>r(a.getAttribute("class")))??t[0]??null}function hC(e,o){return ll($(e,o))??{}}function xC(e,o,t=()=>kh,r=i=>i,a=Ure,n="desktop",s=()=>!1){let i=0;for(let{element:l,partId:d}of e){let f=Id(d)?.propKey;if(!f)continue;let u=hC(o,r(f)),p=pC(u,n,{blockDrawsStyle:s(f)});wa(u.textStyle)?l.setAttribute?.(vr,u.textStyle):l.removeAttribute?.(vr);let m=tC.some(I=>l.style[I]),h=!1;for(let[I,w]of Object.entries(p))zre(l,I,w),w&&(h=!0);if(m||tC.some(I=>p[I]))for(let I of Wre(l,a))for(let w of tC)I.style[w]=p[w]??"";h&&(i+=1)}return i}function Wre(e,o){let t=rn(e.textContent??""),r=[],a=e;for(let n=0;n<$re&&o(a);n+=1){let s=a.parentElement;if(!s||rn(s.textContent??"")!==t)break;r.push(s),a=s}return r}var $re=8;function Ure(e){let o=e;return typeof window>"u"||!o?.ownerDocument?!1:window.getComputedStyle(o).display==="inline"}var kh={fontKey:"",sizePx:16,weight:400,lineRatio:1,letterEm:0,align:"left",case:"none",paddingPx:0};function gC(e){if(!e||typeof e!="object")return null;let o={};wa(e.textStyle)&&(o.textStyle=e.textStyle),typeof e.size=="number"&&e.size>0&&(o.size=e.size),typeof e.sizeTablet=="number"&&e.sizeTablet>0&&(o.sizeTablet=e.sizeTablet),typeof e.sizePhone=="number"&&e.sizePhone>0&&(o.sizePhone=e.sizePhone);for(let t of["size","sizeTablet","sizePhone"]){let r=Vt[t];o[t]!==void 0&&aC(e[r])&&(o[r]=e[r])}return Object.keys(o).length?o:null}function IC(e,o){let t=gC(e);if(!t)return{};let r=pC(t,o);return{...r.fontFamily?{fontFamily:r.fontFamily}:{},...r.fontSize?{fontSize:r.fontSize}:{}}}function YN(e){return wa(e?.textStyle)||!!e?.role||typeof e?.size=="number"&&e.size>0}function qN(e,o,t){if(!e||typeof e!="object")return{};let r=Np(e.role,o,ci)??{},a=o.sized?IC(zN(e,t),t):{};return{...r,...a}}function XN(e,o,t){t.fontFamily&&e.fontFamily===t.fontFamily&&(e.fontFamily=o.fontFamily),t.fontSize&&e.fontSize===t.fontSize&&(e.fontSize=o.fontSize)}function zre(e,o,t){if(!o.startsWith("--")){e.style[o]=t;return}let r=e.style;typeof r.setProperty=="function"?t?r.setProperty(o,t):r.removeProperty?.(o):r[o]=t;let a=e;o===ps&&(t?a.setAttribute?.(RN,""):a.removeAttribute?.(RN))}var RN="data-sf-part-para",Th=Object.keys(mC({},kh)),rC=new Set(["color","overflowWrap",ps,"fontStyle"]),tC=Th.filter(e=>!rC.has(e));function ZN(e,o,t,r=i=>i,a=()=>!1,n=()=>null,s=[]){let i=new Map;for(let u of e){let p=Yr(u.key,u.row);for(let m of u.texts){let h=i.get(m);h?(h.keys.add(u.key),h.partKeys.add(p)):i.set(m,{keys:new Set([u.key]),partKeys:new Set([p])})}}let l=new Map;for(let u of new Set([...Object.keys(o),...s])){if(!Gre(u))continue;let p=LN(t,u,ll(o[u])??{},!1,n(u));p&&l.set(u,p)}let d=u=>{let p=r(u),m=n(p);if(!He(o,p)&&!m)return null;let h=ll(o[p])??{};return LN(t,u,h,a(u),m)},f=new Map;for(let[u,{keys:p,partKeys:m}]of i){let h=m.size===1?[...m][0]:p.size===1?[...p][0]:null;if(!h)continue;let I=d(h);I&&f.set(u,I)}for(let u of e){if(!u.keyed)continue;let p=d(Yr(u.key,u.row));p&&l.set(u.key,p)}return f.size||l.size?{rules:f,kindRules:l,drawn:new Set(i.keys())}:null}function LN(e,o,t,r,a){let n=mC(t,kh,{blockDrawsStyle:r}),s=Fre(t),i=Lre(t),l=wa(t.textStyle)?t.textStyle:void 0;return!Object.values(n).some(Boolean)&&!Object.keys(s).length&&!Object.keys(i).length&&!l&&!a?null:{stamp:jre(e,o),declarations:n,...Object.keys(s).length?{tablet:s}:{},...Object.keys(i).length?{phone:i}:{},...l?{textStyle:l}:{},...a?{motion:a}:{}}}function Gre(e){return e.startsWith("@")}function yC(e,o){return e?.kindRules.get(o)??null}function jre(e,o){let t=r=>r.replace(/[^A-Za-z0-9_-]+/g,"-");return`${t(e)}~${t(o)}`}function bC(e){return e?{tablet:PN,phone:vd}:{tablet:Ih,phone:yh}}function JN(e,{inBox:o=!1}={}){let{tablet:t,phone:r}=bC(o),a=[],n=new Set,s=i=>{let{stamp:l,declarations:d}=i;if(n.has(l))return;n.add(l);let f=Object.entries(d).filter(([,S])=>S!==""),u=S=>S.map(([v,b])=>`${Kre(v)}: ${b}`).join("; "),p=`[${nC}="${l}"]`,m=f.filter(([S])=>!rC.has(S)),h=f.filter(([S])=>rC.has(S));m.length&&a.push(`${p}, *:has(> ${p}) { ${u(m)} }`),h.length&&a.push(`${p} { ${u(h)} }`),d[ps]&&(a.push(`*:has(> ${p}) { ${ps}: ${d[ps]} }`),a.push(...Ph(p,`*:has(> ${p})`)));let I=Object.entries(i.tablet??{}).filter(([,S])=>S!=="");I.length&&a.push(`@media ${t} { ${p}, *:has(> ${p}) { ${u(I)} } }`);let w=Object.entries(i.phone??{}).filter(([,S])=>S!=="");w.length&&a.push(`@media ${r} { ${p}, *:has(> ${p}) { ${u(w)} } }`)};for(let i of e.rules.values())s(i);for(let i of e.kindRules.values())s(i);return a.join(`
|
|
3
|
-
`)}function Ph(e,o){let t=`var(${ps})`,r=":is([data-sf-bullet], [data-sf-number])";return[`${e} br:not(br + br) { display: block; content: ""; margin-top: ${t} }`,`${e} ${r}:not(:first-child) { margin-top: ${t} }`,`${e} ${r}:not(:last-child) { margin-bottom: ${t} }`,`:is(${o}) + :is(${o}) { margin-top: ${t} }`]}var Kre=e=>e.replace(/[A-Z]/g,o=>`-${o.toLowerCase()}`);function QN(e,o){if(!e)return null;let t=rn(o),r=e.rules.get(t);if(r)return r;if(t.length<Vre||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 Vre=8;function eD(e){switch(e.id){case"heading-1":return"font-display";case"heading-2":return"font-heading2";case"heading-3":return"font-heading3";case"body-1":return"font-body";case"body-5":return"font-mono";default:return`font-${e.id}`}}var SC=e=>e==="sentence"?"none":void 0,aD=["font","color","size","sizeTablet","sizePhone","weight","italic","lineHeight","lineHeightTablet","lineHeightPhone","letterSpacing","letterSpacingTablet","letterSpacingPhone","paragraphSpacing","paragraphSpacingTablet","paragraphSpacingPhone","letterCase","largestSize","largestSizeTablet","largestSizePhone"],fl=["desktop","tablet","phone"],xs=(e,o)=>ke(e,o);function vC(e,o,t,r=pi()){return rD("textSize",o,e.sizeTablet,e.sizePhone,r)[t]}var qre=[["lineSpacing","lineHeight","line"],["letterSpacing","letterSpacing","letter"]];function wC(e){for(let[o,t,r]of qre)for(let a of fl)if(e===xs(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 aD)e[t]!==void 0&&(o[t]=e[t]);return o}function kC(e,o){let{auto:t,...r}=e,a=new Set(o??[]),n=aD.filter(s=>a.has(s)&&e.values[s]===void 0);return n.length?{...r,auto:n}:r}function nD(e){let o=e.fonts,t=e.sizes,r=e.typography,a=$_(e.compression),n={"heading-1":{font:be(o.heading),size:q(t.headingLarge),weight:q(r.weight),lineHeight:a.lineHeight,letterSpacing:a.letterSpacing,letterCase:SC(r.case),largestSize:q(r.maxPx)},"heading-2":{font:be(o.heading2),size:q(t.headingMedium),weight:q(r.weight2),lineHeight:a.lineHeight,letterSpacing:a.letterSpacing,letterCase:SC(r.case2)},"heading-3":{font:be(o.heading3),size:q(t.headingSmall),weight:q(r.weight3),lineHeight:a.lineHeight,letterSpacing:a.letterSpacing,letterCase:SC(r.case3)},"body-1":{font:be(o.body),size:q(t.body)},"body-5":{font:be(o.label),size:q(t.label)}};return tD().map(({id:s,kind:i,name:l})=>({id:s,kind:i,name:l,values:Zr(n[s]??{})}))}function TC(e){return Array.isArray(e)&&e.every(o=>o&&typeof o=="object"&&typeof o.id=="string"&&(o.kind==="heading"||o.kind==="body")&&typeof o.name=="string")?e.map(o=>kC({...o,values:Zr(o.values??{})},Array.isArray(o.auto)?o.auto:void 0)):null}function sD(e){return TC(e)??[]}function iD(e){return TC(e)??tD().map(({id:o,kind:t,name:r})=>({id:o,kind:t,name:r,values:{}}))}function Ca(e,o){let t=nD(o),r=TC(e);return r?r.map(a=>{let n={...CC(t,a.id)};for(let s of a.auto??[])delete n[s];return{...a,values:Zr({...n,...a.values})}}):t}var CC=(e,o)=>e.find(t=>t.id===o)?.values??{},oD=["heading-1","heading-2","heading-3"];function lD({saved:e,old:o,cur:t,next:r,sizeOf:a,panelView:n="desktop"}){let s=nD(o),i=iD(e),l=Ca(i,o),d=[],f=r.map(p=>{let m=t.find(k=>k.id===p.id),h=i.find(k=>k.id===p.id);if(!m||!h){let k=Xre([p],a,n)[0],L=k.values.color;return L===void 0?k:{...k,values:{...k.values,color:Et(L)}}}let I={...h.values},w=new Set(h.auto??[]),S=p.values,v=m.values,b=[...new Set([...Object.keys(S),...Object.keys(v)])].filter(k=>JSON.stringify(S[k])!==JSON.stringify(v[k])),y=k=>wC(k).spacing==="letter";b.sort((k,L)=>Number(y(k))-Number(y(L)));for(let k of b){let{key:L,view:O,spacing:D}=wC(k),T=L,F=S[k];if(F===void 0){delete I[T],CC(s,p.id)[T]!==void 0&&(d.push([p.id,T]),w.add(T));continue}if(w.delete(T),D==="line")I[T]=pl(F/100,3);else if(D==="letter"){let C={...l.find(_=>_.id===p.id)?.values??{}};for(let _ of b)S[_]===void 0&&delete C[wC(_).key];let R=Zr({...C,...I}),P=vC(R,a({...p,values:R}),O);I[T]=P?pl(F/P,4):0}else I[T]=F}return kC({id:p.id,kind:p.kind,name:p.name,values:Zr(I)},w)}),u=o.compression;if(d.some(([p,m])=>(m==="lineHeight"||m==="letterSpacing")&&oD.includes(p))&&Nn(u)!=="normal"){for(let p of oD){let m=f.find(I=>I.id===p);if(!m)continue;let h={...m.values};for(let I of["lineHeight","letterSpacing"])d.some(([w,S])=>w===p&&S===I)||h[I]===void 0&&!(m.auto??[]).includes(I)&&(h[I]=CC(s,p)[I]);m.values=Zr(h)}u="normal"}return{saved:f,old:{...o,compression:u}}}function cD(e,o){let t={text_styles:e.saved};return e.old.compression!==o.compression&&(t.heading_compression=Nn(e.old.compression)),t}var pl=(e,o)=>Number(e.toFixed(o)),dD=(e,o)=>fl.indexOf(e)<fl.indexOf(o)?o:e;function fD(e,o,t="desktop"){return e.map(r=>{let a={...r.values},n=o(r);for(let s of fl){let i=ke("lineHeight",s),l=r.values[i],d=r.values[ke("letterSpacing",s)];delete a[i],l!==void 0&&(a[xs("lineSpacing",s)]=pl(l*100,1));let f=dD(s,t);d!==void 0&&(a[xs("letterSpacing",s)]=pl(d*vC(r.values,n,f),f===s?2:4))}return{id:r.id,kind:r.kind,name:r.name,values:a}})}function Xre(e,o,t="desktop"){return e.map(r=>{let a=r.values,n={...a};for(let d of fl)delete n[xs("lineSpacing",d)],delete n[xs("letterSpacing",d)];let s={id:r.id,kind:r.kind,name:r.name,values:Zr(n)},i={...s.values},l=o({...s,values:{...s.values}});for(let d of fl){let f=a[xs("lineSpacing",d)],u=a[xs("letterSpacing",d)];if(typeof f=="number"&&(i[ke("lineHeight",d)]=pl(f/100,3)),typeof u=="number"){let p=vC(s.values,l,dD(d,t));i[ke("letterSpacing",d)]=p?pl(u/p,4):0}}return{...s,values:Zr(i)}})}function RHe(e){let o={fonts:xc({heading:e.heading_font??void 0,heading2:e.heading_2_font??void 0,heading3:e.heading_3_font??void 0,body:e.body_font??void 0,accent:e.accent_font??void 0,label:e.label_font??void 0}),sizes:Ry({headingLarge:e.heading_size_large_px,headingMedium:e.heading_size_medium_px,headingSmall:e.heading_size_small_px,accent:e.accent_size_px,body:e.body_size_px,label:e.label_size_px}),compression:Nn(e.heading_compression),typography:z_(e)},t=e.text_styles??null,r=Array.isArray(t)?PC(Ca(t,o),o):o;return{fonts:xc(r.fonts),sizes:Ry(r.sizes),compression:Nn(r.compression),typography:r.typography,textStyles:t}}function PC(e,o){let t=p=>e.find(m=>m.id===p)?.values??{},r=t("heading-1"),a=t("heading-2"),n=t("heading-3"),s=t("body-1"),i=t("body-5"),l=o.fonts,d=o.sizes,f=o.typography,u=p=>p==="none"?"sentence":"authored";return{fonts:{...l,heading:r.font??l.heading,heading2:a.font??r.font??l.heading2,heading3:n.font??r.font??l.heading3,body:s.font??l.body,label:i.font??l.label},sizes:{...d,headingLarge:r.size??null,headingMedium:a.size??null,headingSmall:n.size??null,body:s.size??null,label:i.size??null},compression:o.compression,typography:{...f,case:u(r.letterCase),weight:r.weight??null,maxPx:r.largestSize??null,weight2:a.weight??null,weight3:n.weight??null,case2:u(a.letterCase),case3:u(n.letterCase)}}}function pD(e){let o=[];for(let t of e){let r=t.values,a=`.${eD(t)}`,n=`[${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=Fi(r.color);d&&i.push(`color: ${d}`),r.italic===!0&&i.push("font-style: italic"),r.weight!==void 0&&i.push(`font-weight: ${r.weight}`);let f=[];r.lineHeight!==void 0&&f.push(`line-height: ${r.lineHeight}`),r.letterSpacing!==void 0&&f.push(`letter-spacing: ${r.letterSpacing}em`),t.kind==="body"&&i.push(...f);let u=Yre(r.letterCase);u&&t.kind==="body"&&i.push(`text-transform: ${u}`),r.paragraphSpacing&&i.push(`--sf-part-para: ${r.paragraphSpacing}px`),i.length&&o.push(`${s} { ${i.join("; ")} }`),t.kind==="heading"&&f.length&&o.push(`${s}, ${a}:is(h1, h2, h3, h4), ${n}:is(h1, h2, h3, h4) { ${f.join("; ")} }`),t.kind==="heading"&&u&&o.push(`${n}, ${a}:is(h1, h2, h3, h4) { text-transform: ${u} }`),r.paragraphSpacing&&(o.push(`*:has(> ${n}) { --sf-part-para: ${r.paragraphSpacing}px }`),o.push(...Ph(`:is(${s})`,`*:has(> ${n})`))),o.push(...Zre(t,s,a,n))}return o.join(`
|
|
4
|
-
`)}function Zre(e,o,t,r){let a=e.values,n=sa("textSize",a.size,a.sizeTablet,a.sizePhone),s=sa("textSize",a.largestSize,a.largestSizeTablet,a.largestSizePhone),i=sa("same",a.lineHeight,a.lineHeightTablet,a.lineHeightPhone),l=sa("same",a.letterSpacing,a.letterSpacingTablet,a.letterSpacingPhone),d=sa("spacing",a.paragraphSpacing,a.paragraphSpacingTablet,a.paragraphSpacingPhone),f=rD("textSize",a.size,a.sizeTablet,a.sizePhone,pi()),u=Jre[e.id],p=[];for(let[m,h]of[["tablet",Ih],["phone",yh]]){let I=[],w=[],S=f[m],v=s[m],b=n[m]===void 0&&v===void 0||S===void 0?void 0:v===void 0?S:Math.min(S,v);b!==void 0&&w.push(`font-size: ${b}px`);let y=[];i[m]!==void 0&&y.push(`line-height: ${i[m]}`),l[m]!==void 0&&y.push(`letter-spacing: ${l[m]}em`),e.kind==="body"&&w.push(...y),d[m]!==void 0&&w.push(`--sf-part-para: ${d[m]}px`),w.length&&I.push(`${o} { ${w.join("; ")} }`),e.kind==="heading"&&y.length&&I.push(`${o}, ${t}:is(h1, h2, h3, h4), ${r}:is(h1, h2, h3, h4) { ${y.join("; ")} }`),d[m]!==void 0&&I.push(`*:has(> ${r}) { --sf-part-para: ${d[m]}px }`),d[m]!==void 0&&!a.paragraphSpacing&&I.push(...Ph(`:is(${o})`,`*:has(> ${r})`)),b!==void 0&&u&&I.push(`.sf-themed-content { --size-${u}: ${b}px !important }`),I.length&&p.push(`@media ${h} { ${I.join(" ")} }`)}return p}var Jre={"heading-1":"headingLarge","heading-2":"headingMedium","heading-3":"headingSmall","body-1":"body","body-5":"label"};function uD(e){return e!==!0&&e!==!1?"":`em.text-accent { font-style: ${e?"italic":"normal"} }`}function mD(e){return e?wh[e]:void 0}function EC(e){let o=_d(e);return Zr({font:e.font,color:e.color===void 0?void 0:Et(e.color),size:e.size,weight:e.weight,italic:e.italic,lineHeight:o.lineHeight,letterSpacing:o.letterSpacingEm,paragraphSpacing:e.paragraphSpacing,letterCase:e.case})}function hD(e){return Object.keys(EC(e)).length>0}function xD({saved:e,old:o,styleId:t,values:r}){let a=iD(e);return{saved:Qre(a,t,r),old:o}}function Qre(e,o,t){return e.map(r=>r.id===o?kC({...r,values:Zr({...r.values,...t})},r.auto):r)}var gD=["font","color","size","weight","emphasis","lineSpacing","letterSpacing","paragraphSpacing","letterCase","largestSize"],aae=["size","lineSpacing","letterSpacing","letterCase"],nae=500,_C=Na.map(e=>({value:e.key,label:e.label,family:`var(${e.cssVar})`,italic:e.italicLoaded}));function ID({saved:e,old:o,colours:t,colourNameOf:r,sizeOf:a,onChange:n,openId:s,onOpenChange:i,readOnly:l=!1,withoutSize:d=!1}){let f=rae(),[u,p]=oae(null),m=Ca(e,o),h=Ci(f),I=fD(m,a,h);return eae(tae,{styles:I,onChange:w=>n(lD({saved:e,old:o,cur:I,next:w,sizeOf:a,panelView:h})),fonts:_C,colours:t,colourNameOf:r,settings:d?gD.filter(w=>w!=="size"):gD,auto:aae,openId:s===void 0?u:s,onOpenChange:i??p,readOnly:l,device:h,fallback:w=>{let S=m.find(b=>b.id===(w.kind==="heading"?"heading-1":"body-1")),v={};return S?.values.font&&w.id!==S.id&&(v.font=S.values.font),w.kind==="heading"&&(v.weight=nae),v}})}var bD=["font","size","weight","emphasis"],lae=500;function cae({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 dae(e,o){let t=[],r=e.values,a=o.values;return a.font!==r.font&&a.font!==void 0&&t.push({key:"font",value:a.font}),a.size!==r.size&&t.push({key:"size",value:a.size??null}),a.weight!==r.weight&&t.push({key:"weight",value:a.weight??null}),a.italic!==r.italic&&t.push({key:"italic",value:a.italic??null}),t}function SD(e){let{headingWeight:o,open:t,onOpenChange:r,onChange:a,withoutSize:n=!1}=e,s=cae(e);return yD(iae,{label:c("Emphasis"),children:yD(sae,{style:s,fonts:_C,settings:n?bD.filter(i=>i!=="size"):bD,auto:["size"],fallback:()=>({weight:o??lae}),open:t,onOpenChange:r,onChange:i=>dae(s,i).forEach(a)})})}import{viewKeyAt as TD}from"efficient-easel/draw";import{shownUnitAt as xae,unitKeyOnWrite as gae}from"efficient-easel/screen/lib/content/length-units";import{convertRowLength as fae,rowUnits as pae,unitPickPatch as uae}from"efficient-easel/screen/lib/content/length-units";import{viewKeyAt as mae}from"efficient-easel/draw";var hae=["cornerRadius","siteWidth","siteGutter","siteGutterPhone","blockGap","blockGapPhone"],Eh={cornerRadius:{number:"corner_radius_px",kind:"radius",grid:R_,tier:"desktop"},siteWidth:{number:"site_width",kind:"size",grid:je,tier:"desktop"},siteGutter:{number:"site_gutter",kind:"spacing",grid:ct,tier:"desktop"},siteGutterPhone:{number:"site_gutter_phone",kind:"spacing",grid:gr,tier:"mobile"},blockGap:{number:"block_gap",kind:"gap",grid:jt,tier:"desktop"},blockGapPhone:{number:"block_gap_phone",kind:"gap",grid:jt,tier:"mobile"}};function _h(e){return{number:Eh[e].number,unit:m_[`${e}Unit`]}}function wD(e,o,t){let r=Ee(t),{number:a,unit:n}=_h(e);return{[a]:o,[n]:o===null||r==="px"?null:r}}function Oh(e,o,t,r){let{kind:a,grid:n,tier:s}=Eh[e],i=Ee(t),l=Ee(r);return i===l?o:fae(o,i,l,s,{kind:a},n)}function CD(e,o,t,r){let{number:a,unit:n}=_h(e),s=uae({[a]:o},i=>Oh(e,i,t,r),n,Ee(r),"px");return{[a]:s[a],[n]:s[n]??null}}function vD(e,o){let{kind:t,grid:r}=Eh[e];return u_(t,Ee(o),r)}function kD(e){return pae({kind:Eh[e].kind},Ia)}function OC(e,o){let t=mae(e,o);if(!hae.includes(t))throw new Error(`no site length row ${t}`);return t}function Od(e,o,t,r,a){let{siteLengthUnits:n,setSiteLengthUnits:s}=fe(),i=`${e}Unit`,l=n[i],d=xae({n:a?.figure??null,u:a?.unit??null,[TD("n","mobile")]:o,[TD("u","mobile")]:l??null},{n:"n"},"u","mobile"),f=h=>s({[i]:h==="px"?null:h}),u=h=>{t(h);let I=gae(i,l,d,"px",h===null);i in I&&f(I[i]==null?null:Ee(I[i])),r(wD(e,h,d),h===null)},p=h=>{let I=Ee(h);if(I===d||(f(I),o===null))return;let w=CD(e,o,d,I);t(w[_h(e).number]),r(w,!0)},m=a?a.unit===d?a.figure:Oh(e,a.figure,a.unit,d):null;return{length:{unit:d,grid:vD(e,d),units:{options:kD(e),onChange:p,label:c("Unit")}},write:u,rest:m,shown:h=>Oh(e,h,"px",d)}}import{EmptyState as Wae,SliderGroup as $ae,Tabs as Uae,Tooltip as f5e,tabButtonId as zae,tabPanelId as Gae}from"efficient-shell/ui";import{ContrastIcon as jae,SettingsIcon as Kae,TypeIcon as Vae}from"efficient-easel/icons";function PD(e){switch(e.status){case"saved":return null;case"failed":return{msg:c("Not saved. Try again."),tone:"error"};case"skipped":switch(e.reason){case"empty":return null;case"no-token":return{msg:c("Not saved. Reload the page."),tone:"error"};case"template":return{msg:c("Templates keep their look. Press Done."),tone:"success"}}}}import{jsx as NC}from"react/jsx-runtime";import{ListIcon as Eae,PaddingTopIcon as _ae}from"efficient-easel/icons";import{jsx as Ah}from"react/jsx-runtime";import{SettingsDefaultReset as Iae,SettingsField as yae,SettingsSegmented as bae}from"efficient-easel/panel";import{WidthIcon as Sae}from"efficient-easel/icons";function ED({value:e,resolved:o,onChange:t,label:r="Width",labelId:a,followsLabel:n,hint:s}){let i=e===void 0,l=i?o:e,d=c(r);return Ah(yae,{label:d,labelId:a,icon:Ah(Sae,{}),value:i?n:void 0,changed:!i,action:Ah(Iae,{words:ce()?.panel,label:d,changed:!i,onReset:()=>t(void 0)}),hint:s,children:Ah(bae,{options:[{label:c(rs.full),id:"full"},{label:c(rs.page),id:"content"}],value:l,ariaLabel:d,onChange:t})})}import{HEADER_TYPE as AC,FOOTER_TYPE as wae}from"efficient-easel/draw";var Cae=new Set(["Hero","HeroSingle","IntroBleed"]),_D={min:56,max:140,default:88},g4e={min:0,max:120,step:2,default:32},I4e=`var(--sf-header-h, ${_D.default}px)`,vae="--sf-header-set-h",y4e="--sf-header-h",b4e=`var(${vae}, ${_D.default}px)`,OD="sf-header-clearance",AD="sf-sticky-underheader";function Ad(e){return e?.find(o=>o?.type&&o.type!==AC)??null}function RD(e){let o=Ad(e)?.type;return!o||!Cae.has(o)}function LD(e){return!RD(e)}function RC(e){return!!e?.some(o=>o?.type===AC)}function FD(e){return!e||e.length===0?!1:!e.some(o=>o?.type===AC||o?.type===wae)}var kae=["auto","shared","own"],LC="auto",Tae="topSpace",BD="data-top-space";function Pae(e){return kae.includes(e)?e:LC}function FC(e,o){let t=Pae(e?.props?.[Tae]);return t==="own"?!0:t==="shared"?!1:RD(o)}function ND(e,o){return FC(e,o)?"own":null}function Oae(){return{type:"custom",render:({value:e,onChange:o})=>NC(ED,{value:e==="full"?"full":e==="content"?"content":void 0,resolved:"content",label:"Page width",followsLabel:c("Follows the site"),hint:c("Whether this page sits on the site's content column, or runs edge to edge."),onChange:t=>o(t)})}}var Aae=[{label:"Auto",value:"auto"},{label:"Shared",value:"shared"},{label:"Its own",value:"own"}],A4e={pageBackground:gB(),topSpace:At("Top space",NC(_ae,{}),Aae,LC),widthChoice:Oae()},Rd=["pageBackground","topSpace","widthChoice"],Rae="Record type",BC=new Map,DD=-1;function Lae(e){DD!==fb()&&(BC.clear(),DD=fb());let o=cb(),t=o.some(a=>a.key===e)?"":e,r=BC.get(t);return r||(r=At(Rae,NC(Eae,{}),[...o.map(a=>({label:a.label,value:a.key})),...t?[{label:t,value:t}]:[]],Ut),BC.set(t,r)),r}var MD=new WeakMap;function R4e(e,o){if(!Wc()||cb().length<2||Ou in e)return e;let t=Lae(Hc(o)),r=MD.get(e);if(r&&r.row===t)return r.fields;let a={[Ou]:t,...e};return MD.set(e,{row:t,fields:a}),a}import{previewFrame as Yae}from"efficient-easel/screen/lib/document/preview-dom";var HD="background";function WD(e){let o=ht(yi(e));return Bi({main:o.accent,text:o.text,background:o.background,muted:o.muted}).map(t=>({key:t.name,name:t.label??t.name,value:t.value}))}function $D(e){return WD(e).filter(o=>o.key!==HD)}function UD(e){let o=WD(e).filter(t=>t.key===HD);return t=>{let r=Et(t);return o.find(a=>a.key===r)?.value??r}}import{useEasel as Fae}from"efficient-easel/easel";function Rh({themeFromDocument:e,persist:o}){let{appState:t,dispatch:r}=Fae(O=>O),{fonts:a,setFonts:n,sizes:s,setSizes:i,headingCompression:l,setHeadingCompression:d,headingTypography:f,setHeadingTypography:u,textStyles:p,setTextStyles:m}=fe(),h=t.data,I=h.root?.props??{},w=e?xc(I.fonts):a,S=e?O_:s,v=e?Nn(I.headingCompression):l,b=e?Jp(I.headingTypography):f,y={fonts:w,sizes:S,compression:v,typography:b},k=e?I.textStyles:p,L=O=>r({type:"replaceRoot",root:{...h.root,props:{...I,...O}},recordHistory:!0});return{fonts:w,sizes:S,compression:v,typography:b,old:y,saved:k,write:(O,D)=>{let T=PC(Ca(O.saved,O.old),O.old);e?L({textStyles:O.saved,fonts:T.fonts,headingCompression:T.compression,headingTypography:T.typography}):(m(O.saved),n(T.fonts),i(T.sizes),d(T.compression),u(T.typography)),o(cD(O,y),D)},writeRoot:L}}import{pictureShadowColor as qae}from"efficient-easel/screen/lib/document/shadow-values";var MC="sf-site-styles",Xae="sf-site-styles-tabpanel",jD="text",hl="basics",zD="this-page-group",ul=[{id:hl,label:"Basics",icon:Pe(Kae,{})},{id:"theme",label:"Theme",icon:Pe(jae,{})},{id:"text",label:"Text",icon:Pe(Vae,{})}];function Zae({themeFromDocument:e,persist:o}){let{appState:t,dispatch:r}=GD(d=>d),{theme:a,setTheme:n}=fe(),s=t.data,i=s.root?.props??{},l=d=>{if(e){let f={...i,theme:d};r({type:"replaceRoot",root:{...s.root,props:f},recordHistory:!0})}else n(d);o({selected_preset:d.selected,theme_presets:d.themes})};return Pe(iN,{value:e?i.theme:a,onChange:l})}function Jae({themeFromDocument:e,persist:o}){let[t,r]=HC(null),{theme:a,setFonts:n,setSizes:s,setHeadingTypography:i}=fe(),l=Rh({themeFromDocument:e,persist:o}),{old:d,saved:f,writeRoot:u}=l,p=l.fonts,m=l.sizes,h=l.typography,I=O=>O.values.size??tne(Qae[O.id]??"body")??ene[O.kind],w=O=>l.write(O),S=$D(a),v=UD(a),b=O=>{let D={...p,accent:O};e?u({fonts:D}):n(D),o({accent_font:O})},y=O=>{s({...m,accent:O}),o({accent_size_px:O})},k=O=>{let D={...h,weightStrong:O};e?u({headingTypography:D}):i(D),o({heading_weight_strong:O})},L=O=>{let D={...h,italicStrong:O};e?u({headingTypography:D}):i(D),o({accent_italic:O})};return gs(ml,{children:[Pe(ID,{saved:f,old:d,colours:S,colourNameOf:v,sizeOf:I,onChange:w,openId:t===DC?null:t,onOpenChange:r,withoutSize:e}),Pe(SD,{font:p.accent,size:m.accent,weight:h.weightStrong,italic:h.italicStrong,headingWeight:h.weight,open:t===DC,onOpenChange:O=>r(O?DC:null),onChange:O=>{O.key==="font"?b(O.value):O.key==="size"?y(O.value):O.key==="weight"?k(O.value):L(O.value)},withoutSize:e})]})}var DC="accent",Qae={"heading-1":"heading","heading-2":"heading2","heading-3":"heading3","body-1":"body","body-5":"label"},ene={heading:32,body:14},one={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 tne(e){if(typeof document>"u")return null;let o=(Yae()?.contentDocument??document).querySelector(one[e]);if(!o)return null;let t=parseFloat(getComputedStyle(o).fontSize);return Number.isFinite(t)?t:null}function rne({themeFromDocument:e,persist:o}){let{appState:t,dispatch:r}=GD(p=>p),{cornerRadiusPx:a,setCornerRadiusPx:n}=fe(),s=t.data,i=s.root?.props??{},l=i.cornerRadiusPx===void 0?Zp[Xp(i.cornerStyle)]:Ht(i.cornerRadiusPx),d=e?l:a,f=Od("cornerRadius",a,n,o),u=p=>r({type:"replaceRoot",root:{...s.root,props:{...i,...p}},recordHistory:!0});return Pe(lN,{value:d,onChange:p=>{e?(u({cornerRadiusPx:p}),o({corner_radius_px:p})):f.write(p)},...e?{}:{length:f.length}})}function ane({persist:e}){let{siteWidth:o,setSiteWidth:t,sectionBackgroundWidth:r,setSectionBackgroundWidth:a,sectionContentWidth:n,setSectionContentWidth:s}=fe(),i=WC(),l=Od("siteWidth",o??null,t,e);if(i!=="desktop")return null;let d=typeof o=="number"?o:l.shown(je.default),f=l.write,u=m=>{a(m),e({section_background_width:m},!0)},p=m=>{s(m),e({section_content_width:m},!0)};return gs(ml,{children:[Pe(hh,{value:r??"full",changed:r!==null,detail:c("Full width"),onChange:u,onReset:()=>u(null),hint:CN}),Pe(xh,{mode:n??"content",px:d,min:je.min,max:je.max,changed:typeof o=="number"||n!==null,detail:`${c("Content width")} ${je.default}px`,onMode:p,onPx:m=>f(m),onReset:()=>{p(null),f(null)},hint:vN,length:l.length})]})}function nne({persist:e}){let{siteGutter:o,siteGutterPhone:t,setSiteGutter:r,setSiteGutterPhone:a,siteLengthUnits:n}=fe(),s=SN(WC(),{gutter:o,phone:t,gutterUnit:n.siteGutterUnit}),i=s?.key==="site_gutter_phone",l=Od(OC("siteGutter",i?"mobile":"desktop"),s?.value??null,i?a:r,e);return s?Pe(wN,{value:s.value,onChange:l.write,unsetPx:s.unsetPx,restsOn:l.shown(s.unsetPx),bounds:s.bounds,length:l.length}):null}function sne({persist:e}){let{blockGap:o,blockGapPhone:t,setBlockGap:r,setBlockGapPhone:a,siteLengthUnits:n}=fe(),s=mN(WC(),{gap:o,phone:t}),i=s?.key==="block_gap_phone",l=s?.followsPx==null?null:{figure:s.followsPx,unit:Ee(n.blockGapUnit)},d=Od(OC("blockGap",i?"mobile":"desktop"),s?.value??null,i?a:r,e,l);return s?Pe(hN,{value:s.value,onChange:d.write,followsPx:d.rest,followsUnit:d.length.unit,length:d.length}):null}function ine({persist:e}){return gs(ml,{children:[Pe(ane,{persist:e}),Pe(nne,{persist:e}),Pe(sne,{persist:e})]})}function lne(e){return{card_shadow:e}}function cne(e){return e===null?{shadow_color:null}:{shadow_color:qae(e)}}function dne(e){return{hover_effect:e}}function fne({persist:e}){let{cardShadow:o,setCardShadow:t,shadowColor:r,setShadowColor:a,hoverEffect:n,setHoverEffect:s}=fe();return gs(ml,{children:[Pe(cN,{value:o,onChange:i=>{t(i),e(lne(i),!0)}}),Pe(pN,{value:r,onChange:i=>{a(i),e(cne(i),i===null)}}),Pe(xN,{value:n,onChange:i=>{s(i),e(dne(i),!0)}})]})}function pne(e){return{photography_grayscale:e}}function une({persist:e}){let{photographyGrayscale:o,setPhotographyGrayscale:t}=fe();return Pe(IN,{value:o,onChange:r=>{t(r),e(pne(r),!0)}})}function mne({persist:e}){return Pe(ml,{children:Pe(une,{persist:e})})}function hne(e){return{share_button_on_posts:e}}function xne({persist:e}){let{shareButtonOnPosts:o,setShareButtonOnPosts:t}=fe();return Pe(yN,{value:o,onChange:r=>{t(r),e(hne(r),!0)}})}function xl(){let{websiteName:e}=fe();return e?.trim()||RO}function Lh({themeFromDocument:e=!1,tokenRef:o,siteId:t,onNotify:r,tab:a,onTabChange:n,initialTab:s,revealPageGroup:i=!1,onPageGroupRevealed:l}){let{persist:d}=Wi({themeFromDocument:e,tokenRef:o,siteId:t,onResult:w=>{let S=PD(w);S&&r?.(S.msg,S.tone)}}),[f,u]=HC(s??ul[0].id),p=a!==void 0,m=p?a:f,h=p?n??(()=>{}):u,I=ul.find(w=>w.id===m)??ul[0];return gs($ae,{children:[Pe(yne,{activeId:I.id,onSelect:h}),gs("div",{id:Gae(MC,I.id),className:Xae,role:"tabpanel","aria-labelledby":zae(MC,I.id),children:[m===hl&&gs(ml,{children:[Pe(rne,{themeFromDocument:e,persist:d}),!e&&Pe(fne,{persist:d}),!e&&Pe(ine,{persist:d}),!e&&Pe(mne,{persist:d}),!e&&Pe(xne,{persist:d}),Pe(gne,{reveal:i,onRevealed:l})]}),m==="theme"&&Pe(Zae,{themeFromDocument:e,persist:d}),m==="text"&&Pe(Jae,{themeFromDocument:e,persist:d})]})]})}function gne({reveal:e,onRevealed:o}){let[t,r]=HC(!0),a=Hae(o);return a.current=o,Mae(()=>{if(!e)return;r(!0);let n=requestAnimationFrame(()=>{document.getElementById(zD)?.scrollIntoView({block:"start"}),a.current?.()});return()=>cancelAnimationFrame(n)},[e]),Pe(Dae,{title:c("This page"),open:t,onToggle:r,id:zD,children:Pe(Ine,{})})}function Ine(){let{fields:e,values:o,readOnly:t,onChange:r}=Bae(),a=Object.fromEntries(Rd.filter(n=>n in e).map(n=>[n,e[n]]));return Object.keys(a).length===0?Pe(Wae,{variant:"none",icon:!1,message:c("This page has no look of its own to set.")}):Pe(Nae,{fields:a,values:o,onChange:r,readOnly:t,tabs:!1,idPrefix:"this-page",ariaLabel:c("This page")})}function yne({activeId:e,onSelect:o}){return Pe("div",{className:"es-insp-tabs",children:Pe(Uae,{variant:"underline",block:!0,labelsFit:!0,"aria-label":c("Styles"),idPrefix:MC,value:e,onChange:o,items:ul.map(t=>{let r=c(t.label);return{id:t.id,icon:t.icon,label:r}})})})}import{InspectorIconButton as kbe}from"efficient-easel/chrome";import{Input as Tbe,PopupMenu as Pbe,PopupMenuItem as ej,toast as oj}from"efficient-shell/ui";import{LayersTree as Ebe,TreeGroupLabel as _be,TreeRow as tj,TreeRowAction as dI}from"efficient-easel/tree";import{AddIcon as Obe,DuplicateIcon as Abe,PageIcon as Rbe,SettingsIcon as Lbe}from"efficient-easel/icons";import{PagesIcon as Fbe}from"efficient-easel/rail";import{useEaselHost as Bbe}from"efficient-easel/screen/lib/host";import{useEaselSession as xP}from"efficient-easel/screen/lib/session-context";import{useCallback as Fh,useEffect as bne,useSyncExternalStore as Sne}from"react";import{useScreenDocument as qD}from"efficient-easel/screen/components/ScreenDocumentContext";var KD=new WeakMap;function Ld(e){let o=KD.get(e);return o||(o={rows:null,loading:null,listeners:new Set},KD.set(e,o)),o}function $C(e,o){e.rows=o;for(let t of e.listeners)t()}var Bh=new Set;function Nh(e,o){o?Bh.add(e):Bh.delete(e)}function VD(e){let o=Ld(e),t=e.listPages().then(r=>$C(o,Bh.size?r.filter(a=>!Bh.has(a.id)):r),()=>$C(o,[])).finally(()=>{o.loading===t&&(o.loading=null)});return o.loading=t,t}var YD=()=>null,wne=()=>()=>{};function Fd(){let{adapter:e,ready:o}=qD(),t=Fh(i=>{let{listeners:l}=Ld(e);return l.add(i),()=>l.delete(i)},[e]),r=Fh(()=>Ld(e).rows,[e]),a=Sne(o?t:wne,o?r:YD,YD);bne(()=>{if(!o)return;let i=Ld(e);i.rows===null&&!i.loading&&VD(e)},[e,o]);let n=Fh(()=>o?VD(e):Promise.resolve(),[e,o]),s=Fh(i=>$C(Ld(e),i),[e]);return{rows:a,reload:n,setRows:s,getRows:r}}function Cne(e,o){return e?.find(t=>t.slug===o)?.label?.trim()||`/${o}`}function XD(){let{currentSlug:e}=qD(),{rows:o}=Fd();return Cne(o,e)}import{canDuplicatePage as Nbe,DuplicatePageDialog as Dbe}from"efficient-easel/page-copy";import{jsx as Nt,jsxs as fP}from"react/jsx-runtime";import{useEffect as ibe,useMemo as lbe,useRef as cbe,useState as pP}from"react";import{useScreenDocument as dbe}from"efficient-easel/screen/components/ScreenDocumentContext";import{useEaselSession as fbe}from"efficient-easel/screen/lib/session-context";import{uniqueSlug as jG}from"efficient-easel/page-copy";import{AddIcon as pbe}from"efficient-easel/icons";import{Dialog as ube,EmptyState as mbe,Grid as hbe,SidebarActionButton as xbe,SidebarLayout as gbe,SidebarNavItem as uP,toast as KG}from"efficient-shell/ui";import{jsx as Pr,jsxs as b6}from"react/jsx-runtime";import{useMemo as wme,useState as Cme}from"react";import{CanvasFrame as vme}from"efficient-easel/easel";import{Button as kme,FitFrame as Tme}from"efficient-shell/ui";import{jsx as oM,Fragment as Bne,jsxs as Nne}from"react/jsx-runtime";import{useEffect as tM,useLayoutEffect as Dne}from"react";var Dh="data-theme",ZD="light";function vne(e){return e.getAttribute(Dh)===ZD?"light":"dark"}function kne(e,o){return vne(e)===o?!1:(o==="light"?e.setAttribute(Dh,ZD):e.removeAttribute(Dh),!0)}function Tne(e){return Hy(e).getItem(Ey)}function A5e(e,o){Hy(e).setItem(Ey,o)}function Pne(e,o,t=new Date().getHours()){return h_({mode:o.mode,override:Tne(e),switchShown:o.switchShown,hour:t})}function JD(e,o){let t=e.documentElement;if(!t)return()=>{};let r=()=>kne(t,Pne(e,o));r();let a=e.defaultView?.MutationObserver;if(!a)return()=>{};let n=new a(r);return n.observe(t,{attributes:!0,attributeFilter:[Dh]}),()=>n.disconnect()}var Ene="style";function _ne(e,o){let t=qp(o),r=!1;for(let a of __){let n=t[a]??"";e.style.getPropertyValue(a)!==n&&(n?e.style.setProperty(a,n):e.style.removeProperty(a),r=!0)}return r}function QD(e,o){let t=e.body;if(!t)return()=>{};let r=()=>_ne(t,o);r();let a=e.defaultView?.MutationObserver;if(!a)return()=>{};let n=new a(r);return n.observe(t,{attributes:!0,attributeFilter:[Ene]}),()=>n.disconnect()}import{VIEW_DESKTOP_MIN as One,VIEW_TABLET_MIN as Ane}from"efficient-easel/screen/lib/content/view-tiers";var va={fit:"data-fit",fitTablet:"data-fit-tablet",fitPhone:"data-fit-phone",min:"data-fit-min",minTablet:"data-fit-min-tablet",minPhone:"data-fit-min-phone",edge:"data-fit-edge"},Ft=va,Rne=e=>e.flatMap(o=>[`[${o}] p`,`[${o}] li`]).join(","),Lne=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(Rne([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 = ${Xo};
|
|
13
|
-
var TABLET_MIN = ${Ane}, DESKTOP_MIN = ${One};
|
|
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);`,Fne="storefront-fit-words";function eM(e){let o=e.createElement("script");return o.id=Fne,o.textContent=Lne,(e.head??e.documentElement).appendChild(o),()=>{e.__sfFitWords?.(),o.remove()}}var Mne=`
|
|
306
|
-
[${co}][${co}] { cursor: text; }
|
|
307
|
-
`;function Mh({children:e,document:o}){let{theme:t,themeMode:r,themeSwitchShown:a}=fe(),n=vo(t);return tM(()=>{if(o)return JD(o,{mode:r,switchShown:a})},[o,r,a]),tM(()=>{if(o)return QD(o,n)},[o,n]),Dne(()=>{if(o)return eM(o)},[o]),Nne(Bne,{children:[oM($O,{}),oM("style",{children:Mne}),e]})}import{jsx as C$}from"react/jsx-runtime";import{memo as pue}from"react";import{Render as uue}from"efficient-easel/render";import{jsx as gl}from"react/jsx-runtime";import{createContext as Hne,useContext as Wne,useMemo as $ne}from"react";var UC=Hne(null);function Une({children:e}){return gl(UC.Provider,{value:"first",children:e})}function Wh({children:e}){return gl(UC.Provider,{value:"below",children:e})}function Bd(){return Wne(UC)}function zC(){return Bd()==="below"?{loading:"lazy"}:{}}function $h(e){let o=zC();return gl("img",{...e,...o})}var rM="laterSlideIds",zne=new Set(["Breadcrumb","CategoryBar","Divider","Spacer","Ticker"]);function aM(e){return Ad(e?.filter(o=>!o?.type||!zne.has(o.type)))}function Hh(e,o=[]){if(Array.isArray(e))for(let t of e)Hh(t,o);else if(e&&typeof e=="object"){let{slides:t}=e;if(Array.isArray(t))for(let r of t.slice(1))typeof r?.props?.id=="string"&&o.push(r.props.id);for(let r of Object.values(e))Hh(r,o)}return o}function nM(e,o){let t=o?.type,r=o?.props?.id;return $ne(()=>{let a=t?e.components[t]:void 0;if(!t||!a)return e;let n=a.render,s=i=>i.id===r?gl(Une,{children:gl(n,{...i})}):gl(n,{...i});return{...e,components:{...e.components,[t]:{...a,render:s}}}},[e,t,r])}function sM(e){return e.props?ho(e,o=>{let t=so(o,sM),r=e.type===rO&&t.every(a=>a.type===Qp)?eO(t):t;return r.length!==o.length||r.some((a,n)=>a!==o[n])?r:o}):e}function iM(e){return bp(e,o=>so(o,sM))}var Gne="Flex",lM="ListSearch",cM=["FAQ"],jne="listKey";function dM(e,o){let t={search:e.type===lM,list:cM.includes(String(e.type))};return ho(e,r=>{for(let a of r){let n=dM(a,o);t.search||=n.search,t.list||=n.list}return r}),e.type===Gne&&t.search&&t.list&&String(e.props?.id??"")?(o.add(e),{search:!1,list:!1}):t}function fM(e,o,t){let r=o.has(e)?String(e.props?.id):t,a=ho(e,n=>so(n,s=>fM(s,o,r)));return r&&(e.type===lM||cM.includes(String(e.type)))?{...a,props:{...a.props,[jne]:r}}:a}function pM(e){return ii(e,o=>{let t=new Set;for(let r of o)dM(r,t);return t.size?so(o,r=>fM(r,t,"")):o})}import{isNode as Fie,isNodeList as z2}from"efficient-easel/data";import{jsx as Ve,Fragment as wie,jsxs as Ea}from"react/jsx-runtime";import{jsx as hM}from"react/jsx-runtime";import{SITE_SIDE as Kne}from"efficient-easel/screen/lib/content/length-units";var uM="sideSpace",Is=Kne,o3e=[{value:"box",label:"Box"},{value:Is,label:"Site"}],t3e="box",r3e="Box: on small screens the Box keeps its own side space, up to 24 px. Site: it uses the site's Side space, as the site's own sections do. It has no effect when Content is Full width.";function mM(e){return e===Is?Is:"box"}function a3e(e){return e===Is?Is:void 0}import{isNodeList as Vne}from"efficient-easel/data";var GC=new Set(["FAQ"]);function Bt(e,o){if(!GC.has(e))return!1;let t=o.template;return typeof t=="function"?(t.blockCount??0)>0:Vne(t)}var gM={ParagraphsA:{top:60,bottom:80},StatsParagraph:{top:120,bottom:120},Timeline:{top:120,bottom:120},Footprint:{top:120,bottom:120},TimelineTrack:{top:120,bottom:120},TitleWithButtons:{top:140,bottom:140},ProcessSteps:{top:120,bottom:120}},IM=new Set(Object.keys(gM));function jC(e,o){return o?.innerPadding??$(gM,e)}var Il=e=>jC(e)??{};var Uh=new Set(["Flex","Text","Heading","ImageBlock"]),Yne=new Set(["Divider"]),qne=new Set(["Hero","HeroSingle","IntroBleed","CategoryBar","DocTabs"]),xM=new Set(["ProductGrid"]);function KC(e,o,t=!1){let r=e.render;e.render=a=>{if(o?.(a))return r(a);let n=ed({...bS(a,xa,t),sideSpace:mM(a.sideSpace)}),s=r(a);if(!n)return s;let i=f=>hM(me,{className:f?`${n.className} ${f}`:n.className,style:n.style,children:s}),l=Wa(a,{atSectionLine:!0}),d=Wa(a);return l===d?i(l):hM(su,{line:"by-box",draw:f=>i(f?d:l)})}}var yM={name:"sectionPadding",applies:(e,o,t)=>o.isSection(e)&&!qne.has(e)&&!!t&&typeof t.render=="function",panel(e,o,t){let r=jC(o,e);if(r){e.fields={...e.fields,...t.sidesPaddingFields({keys:jr,unitKey:Qn,fallback:r,tablet:!0,siteSide:!0})};return}if(xM.has(o))return;let a=[jr.top,jr.bottom].filter(n=>e.fields!=null&&n in e.fields);if(a.length)throw new Error(`section-padding: ${o} declares its own ${a.join(" / ")} row; declare \`innerPadding: { top, bottom }\` in its meta and the one Padding row draws on its band`);e.fields={...e.fields,...t.sidesPaddingFields({tablet:!0,siteSide:!0})}},draw(e,o){if(!jC(o,e)){if(xM.has(o)){KC(e);return}Uh.has(o)||Yne.has(o)||KC(e,o==="Flex"?t=>Ab(t.bgImage):GC.has(o)?t=>Bt(o,t):void 0,!0)}}},Xne=["Heading","Text","ImageBlock"],Zne=["LogoBlock"],bM={name:"blockPadding",applies:(e,o,t)=>(Xne.includes(e)||Zne.includes(e))&&!!t&&typeof t.render=="function",panel(e,o,t){e.fields={...e.fields,...t.sidesPaddingFields({tablet:!0,siteSide:!0})}},draw(e,o){Uh.has(o)||KC(e,void 0,!0)}};import{createContext as VC,useContext as zh}from"react";var SM=VC(null);function y3e(){return zh(SM)===!0}function b3e(){return zh(SM)!==null}var Jne=VC(!1);function S3e(){return zh(Jne)}function w3e(e,o,t){let r=e.boxes;if(!r)return t;let a=r.indexOf(o);return a>=0?a:(r.push(o),r.length-1)}var Gh=VC(null);function C3e(){return zh(Gh)}import{jsx as ys}from"react/jsx-runtime";import{Component as sse,createContext as ise,lazy as H3e,Suspense as W3e,useContext as lse,useSyncExternalStore as cse}from"react";function Qne(e,o){let t=e.trim();if(!jh(t))return!1;if(!o)return!0;let r;try{r=new URL(t,"https://x.invalid").host}catch{return!1}let a=n=>n.toLowerCase().replace(/^www\./,"");return a(r)!==a(o)}function T3e(e){return e.startsWith("/")||jh(e)}function jh(e){return/^(?:https?:)?\/\//i.test(e.trim())}var Nd=Object.freeze({target:"_blank",rel:"noopener noreferrer"});function wM(e,o){return Qne(e,o)?{...Nd}:{}}function P3e(e){return typeof e=="string"?e.trim():""}var E3e="data-sf-box-link",CM="absolute inset-0 -z-[1] outline-none focus-visible:z-[2] focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-accent",YC="relative isolate pointer-events-none [&_a]:pointer-events-auto [&_button]:pointer-events-auto [&_input]:pointer-events-auto [&_select]:pointer-events-auto [&_textarea]:pointer-events-auto [&_label]:pointer-events-auto [&_summary]:pointer-events-auto [&_iframe]:pointer-events-auto [&_video]:pointer-events-auto [&_audio]:pointer-events-auto [&_[role=button]]:pointer-events-auto [&_[tabindex]:not([tabindex='-1'])]:pointer-events-auto",ese="data-sf-box-jump";function ose(e){return`sf-box-jump-${e}`}function _3e(e,o){return e===!0?zn(o):""}function tse({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 O3e(e){let o=`[${ese}="${e}"]`,t=`.${ose(e)}`,r=`[id="${e}"]:target`;return tse({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 rse="hrefRewrite";function ase(){return ai("efficient.link-href-rewrites",()=>({rewrites:new Map,count:0,missed:new Set}))}function nse(){return typeof process<"u"&&!0}function L3e(e){let o=e?.[rse];return typeof o=="string"?o.trim():""}function vM(e){if(!e)return null;let o=ase(),t=o.rewrites.get(e);return!t&&!nse()&&o.missed.add(e),t??null}var dse={Link:_O,Image:EO},kM=ise(dse);function K3e({runtime:e,children:o}){return ys(kM.Provider,{value:e,children:o})}function XC(){return lse(kM)}function V3e(){return XC().pagePath??null}var fse=()=>()=>{},pse=()=>pu()||null,use=()=>null;function mse(){return cse(fse,pse,use)}function bs({hrefRewrite:e,newTab:o,...t}){let{Link:r}=XC(),a=mse(),n=o===!0?{...t,...Nd}:o==="auto"?{...t,...wM(t.href,a)}:t,s=vM(e);return s?ys(qC,{name:s.name,href:n.href,fallback:ys(r,{...n}),children:ys(hse,{Link:r,rewrite:s.rewrite,...n})},s.key):ys(r,{...n})}function hse({Link:e,rewrite:o,...t}){let r=be(o(t.href)),a=r&&J0(r)?r:t.href;return ys(e,{...t,href:a})}var qC=class extends sse{state={failed:!1,href:this.props.href};static getDerivedStateFromProps(o,t){return o.href===t.href?null:{failed:!1,href:o.href}}static getDerivedStateFromError(){return{failed:!0}}componentDidCatch(o){console.error(`The link href rewrite ${this.props.name} failed; the link goes where it was typed.`,o)}render(){return this.state.failed?this.props.fallback:this.props.children}};function Kh(e){let{Image:o}=XC();return ys(o,{...e})}import{jsx as fie}from"react/jsx-runtime";import{jsx as Le,jsxs as ot,Fragment as iie}from"react/jsx-runtime";import{imageCopyUrl as EM,imageSrcSet as xse}from"efficient-shell/image-copies";var TM;function ZC(){return TM===void 0?{}:{host:TM}}var X3e="(max-width: 800px) 100vw, min(100vw, 1600px)",Z3e="(max-width: 960px) 100vw, 50vw";function Ss(e,{fallbackWidth:o=1280,maxWidth:t}={}){let r=xse(e,{...ZC(),...t===void 0?{}:{maxWidth:t}});return r?{src:EM(e,o,ZC()),srcSet:r}:{src:e}}var gse=/[\s"'()\\;]/,Ise={"\\":"\\\\",'"':'\\"',"\n":"\\a ","\r":"\\d ","\f":"\\c "};function PM(e){return e.replace(/[\\"\n\r\f]/g,o=>Ise[o]??o)}function J3e(e){let o=EM(e,1920,ZC());return o===e?gse.test(e)?`url("${PM(e)}")`:`url(${e})`:`url("${PM(o)}")`}var Dd="solid",yse=[{label:"Solid",value:"solid"},{label:"Outlined",value:"outlined"}];function _M(e){return xo(yse,Dd,e)}var JC="sf-secnum-outline",OM="font-display text-[length:var(--size-headingMedium,clamp(48px,6vw,96px))] font-medium leading-[0.8] tracking-[-0.02em]",AM=`@supports (-webkit-text-stroke: 1px currentColor){.${JC}{color:var(--site-surface-2);-webkit-text-stroke:1px var(--site-line)}}`;var QC="plain",RM=[{label:"Plain",value:"plain"},{label:"Filled",value:"filled"},{label:"Line",value:"line"}],bse="line",Sse={KeyFeatures:"filled"};function Md(e){return $(Sse,e)??QC}function LM(e,o){return xo(RM,Md(o),e)}function aWe(e){return xo(RM,bse,e)}import{jsxs as vs,jsx as to}from"react/jsx-runtime";import{Fragment as dv}from"react";import{Fragment as Vse,jsx as iv}from"react/jsx-runtime";import{Fragment as KM,jsx as zd,jsxs as Hse}from"react/jsx-runtime";import{createContext as sv,useContext as Gd,useEffect as Wse,useId as $se,useMemo as Use,useRef as zse}from"react";import{armEntrance as Gse}from"efficient-shell/format";import{jsx as wse}from"react/jsx-runtime";import{useEffect as BM,useRef as FM,useState as Cse}from"react";import{armEntrance as vse,entranceAttrs as kse,playEntrance as Tse}from"efficient-shell/format";function Vh({views:e,editing:o,boxClass:t,boxAttrs:r,boxStyle:a,takesViewHide:n=!1,atEdge:s=!1,children:i}){let l=FM(null),d=lu(),f=Wt(),u=n?f:Ua,p=Hd(l,!0,s),{attrs:m,style:h}=kse(e[p]),I=FM(yl.seed(e)),w=JSON.stringify(e);return BM(()=>{let S=l.current;if(S){if(o){let v=yl.next(I.current,e,p);I.current=v.seen,v.play&&Tse(S);return}return vse(S)}},[w,p,o]),u.scope(wse("div",{ref:l,className:Jo(`${vi}${d.fill}${t?` ${t}`:""}`,u.className),...r,...u.attrs,...m,...Object.keys(h).length||a?{style:{...a,...h}}:{},children:d.inner(i)}))}var yl={seed(e){return{desktop:JSON.stringify(e.desktop),tablet:JSON.stringify(e.tablet),phone:JSON.stringify(e.phone)}},next(e,o,t){let r=yl.seed(o);return{play:r[t]!==e[t],seen:r}}};function Hd(e,o=!0,t=!1){return Wd(e,o,t)??"desktop"}function Wd(e,o=!0,t=!1){let[r,a]=Cse(void 0),n=$a(t?"edge":"by-box"),{phone:s,tablet:i}=bC(n);return BM(()=>{if(!o)return;let l=e.current?.ownerDocument?.defaultView??(typeof window>"u"?null:window);if(!l?.matchMedia){a("desktop");return}let d=l.matchMedia(s),f=l.matchMedia(i),u=()=>a(d.matches?"phone":f.matches?"tablet":"desktop");return u(),d.addEventListener("change",u),f.addEventListener("change",u),()=>{d.removeEventListener("change",u),f.removeEventListener("change",u)}},[e,o,s,i]),r}var $d="@name",NM="@body",DM="@value",MM={[$d]:"Name",[NM]:"Body",[DM]:"Value"},Pse={TimelineTrack:{"entries.date":$d,"entries.title":$d,"entries.blurb":NM},Footprint:{"offices.city":$d},Stats:{"items.label":$d,"items.value":DM}};function Ese(e){let{key:o,row:t}=Cr(e);return t?`${o}.${t.rowKey}`:null}function ka(e,o){if(!e)return o;let t=Ese(o);return t?$(Pse,e)?.[t]??o:o}import{ENTRANCE_STATE_ATTR as Fse,entranceAttrs as Bse,scrollAttrs as Nse}from"efficient-shell/format";import{parseFocal as Ase,formatFocal as Rse,readScroll as Lse}from"efficient-shell/format";import{phoneKey as _se,tabletKey as Ose}from"efficient-easel/screen/lib/content/view-tiers";var ev=[{block:"HeroSlide",upload:"mediaImage",focus:Hn.image},{block:"HeroSlide",upload:"mediaImage2",focus:Hn.image2},{block:"HeroSingle",upload:"mediaImage",focus:Hn.image},{block:"HeroSingle",upload:"mediaImage2",focus:Hn.image2},{block:"ImageBlock",upload:"src",focus:"focal"}],HM=e=>[e,Ose(e),_se(e)],yWe=[...new Set(ev.flatMap(e=>HM(e.focus)))].sort();function WM(e,o){let[t,r,a]=HM(o).map(n=>typeof e[n]=="string"&&e[n]?e[n]:void 0);return{desktop:t,tablet:r,phone:a}}var Uo={effect:"scroll",zoom:"scrollZoom",start:"scrollStart",end:"scrollEnd"},bl="_gScroll",Yh="_cScroll",qh=ou(Object.values(Uo));function Ta(e,o){return Lse(Tc(e,Uo.effect,o),Tc(e,Uo.zoom,o),Tc(e,Uo.start,o),Tc(e,Uo.end,o))}function Sl(e){let o={desktop:Ta(e,"desktop"),tablet:Ta(e,"tablet"),phone:Ta(e,"phone")};return xt.every(t=>o[t].effect==="none")?null:o}function ov(e){let o=nO(e.desktop,e.tablet,e.phone),t=r=>{let a=o[r];if(typeof a!="string")return;let{x:n,y:s}=Ase(a);return Rse(n,s)};return{desktop:t("desktop"),tablet:t("tablet"),phone:t("phone")}}function $M(e,o){return ov(WM(e,o))}var Xh={},tv="_partMotion",rv=[...tu,Mt,uo.duration,uo.delay,...qh];function zM(e){return cl(e,tv)}function ws(e,o){return bh(e,tv,o)}var Dse=new Set([Pt.kind,Mt,Uo.effect]);function GM(e,o,t,r){let{[t]:a,...n}=ws(e,o),s=r==null||r===""||r==="none"&&Dse.has(t)?n:{...n,[t]:r};return Sh(e,tv,o,Object.keys(s).length?s:null)}function Ud(e){return{entrance:ki(e),hover:nE(e),scroll:Sl(e)}}function jM(e){let o=Ud(e);return o.entrance!==null||o.hover!=="none"||o.scroll!==null}function Zh(e,o){let{attrs:t,style:r}=Bse(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(Fse)}}function Jh(e,o){let{attrs:t,style:r}=Nse(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 Mse=4;function wl(e){let o;for(let t of e)(!o||t.element.compareDocumentPosition(o.element)&Mse)&&(o=t);return o}var av="data-sf-part-host";function Qh(e){let o=e?.ownerDocument.defaultView,t=e;for(;t&&!t.hasAttribute(av)&&!t.classList.contains(vi);){let r=o?.getComputedStyle(t).display??"";if(r==="contents")return null;if(r!=="inline")return t;t=t.parentElement}return null}var Cs="data-sf-part-lift",UM="sf-part-lift";function ex(e){if(e.getElementById(UM))return;let o=e.createElement("style");o.id=UM,o.textContent=BN(`[${Cs}]`).join(`
|
|
320
|
-
`),e.head.appendChild(o)}var ox=sv(null),YM=sv(null),qM=sv(null);function XM({needles:e,styles:o,motions:t=Xh,type:r,atEdge:a=!1,children:n}){let s=$se(),i=$a(a?"edge":"by-box"),l=JSON.stringify([s,e,o,t,r]),d=Use(()=>{let u=Object.keys(t).filter(p=>jM(t[p]));return ZN(e,o,s,p=>ka(r,p),p=>Ed(r,p),p=>u.includes(p)?Ud(t[p]):null,u)},[l]);if(!d)return zd(KM,{children:n});let f=JN(d,{inBox:i});return Hse(KM,{children:[f&&zd("style",{href:`${jse}${s}-${Kse(f)}`,precedence:JM,dangerouslySetInnerHTML:{__html:f.replace(/</g,"\\3c ")}}),zd(ox.Provider,{value:d,children:n})]})}var nv=new WeakMap;function VM(e,o){let t=wl(o.filter(a=>a.arm)),r=o.some(a=>a.entering)?void 0:wl(o.filter(a=>a.scroll));for(let a of o)a!==t&&a.undo&&(a.undo(),a.undo=void 0),a!==r&&a.undoScroll&&(a.undoScroll(),a.undoScroll=void 0);t?.arm&&!t.undo&&(t.undo=t.arm()),r?.scroll&&!r.undoScroll&&(r.undoScroll=r.scroll()),o.some(a=>a.lift)?(ex(e.ownerDocument),e.setAttribute(Cs,"")):e.removeAttribute(Cs)}function ZM(e){let o=zse(null),t=e?.motion?.entrance??null,r=e?.motion?.scroll??null,a=e?.motion?.hover==="lift",n=Hd(o,t!==null||r!==null),s=t?t[n]:null,i=r&&r[n].effect!=="none"?r[n]:null,l=JSON.stringify([s,i]);return Wse(()=>{let d=o.current,f=Qh(d?.parentElement??null);if(!t&&!r&&!a||!d||!f)return;let u=s?()=>{let h=Zh(f,s),I=Gse(f);return()=>{I?.(),h()}}:null,p=nv.get(f)??[];nv.set(f,p);let m={element:d,arm:u,entering:s!==null&&s.kind!=="none",scroll:i?()=>Jh(f,i):null,lift:a};return p.push(m),VM(f,p),()=>{let h=p.indexOf(m);h<0||(p.splice(h,1),m.undo?.(),m.undo=void 0,m.undoScroll?.(),m.undoScroll=void 0,VM(f,p),p.length||nv.delete(f))}},[l,a]),o}var JM="sf-part-styles",jse=`${JM}-`;function Kse(e){let o=2166136261;for(let t=0;t<e.length;t+=1)o^=e.charCodeAt(t),o=Math.imul(o,16777619);return(o>>>0).toString(36)}function QM(e){let o=Gd(ox),t=Gd(YM),r=QN(o,e);return r&&r.stamp!==t?r:null}function WWe(e){return yC(Gd(ox),e)}function e2({stamp:e,children:o}){return zd(YM.Provider,{value:e,children:o})}function $We({children:e}){let o=Gd(ox);return zd(qM.Provider,{value:o,children:e})}function UWe(e){return yC(Gd(qM),e)}function jd({value:e,children:o}){let t=QM(e),r=ZM(t);return t?iv(e2,{stamp:t.stamp,children:iv("span",{ref:r,[nC]:t.stamp,...t.textStyle?{[vr]:t.textStyle}:{},children:o})}):iv(Vse,{children:o})}import{jsx as lv,Fragment as Yse}from"react/jsx-runtime";function o2({className:e=""}){return lv("sup",{className:`text-accent tracking-normal text-[length:min(1em,max(0.75em,11px))] ${e}`,children:"\xAE"})}function Yt(e){if(!e.includes("\xAE"))return e;let o=e.split("\xAE"),t=[];return o.forEach((r,a)=>{r&&t.push(r),a<o.length-1&&t.push(lv(o2,{},`r${a}`))}),lv(Yse,{children:t})}var qWe=o2;function go(e,o=!1,t){let r=oie(o),a=vp(e);if(a.length===1){let[s]=a,i=Q0(s),l=i?Qse(i,s.children):s.children;return vs(jd,{value:e,children:[t,tx(l,r)]})}let n=[];return a.forEach((s,i)=>{if(s.bullet){n.push(to("span",{"data-sf-bullet":"",className:qse,children:tx(s.children,r)},i));return}if(s.number!=null){n.push(vs("span",{"data-sf-number":s.number,className:Xse,children:[vs("span",{className:Zse,children:[s.number,"."]}),tx(s.children,r)]},i));return}i>0&&!Jse(a[i-1])&&n.push(to("br",{},`br${i}`)),n.push(to(dv,{children:tx(s.children,r)},i))}),vs(jd,{value:e,children:[t,n]})}var qse="relative block pl-6 before:absolute before:left-1.5 before:font-bold before:text-accent before:content-['\xB7']",Xse="relative block pl-[2em]",Zse="absolute left-0 w-[1.6em] text-right tabular-nums";function Jse(e){return e.bullet||e.number!=null}var t2="text-accent underline underline-offset-[0.18em]";function Qse(e,o){let[t,...r]=o;return t?.kind==="text"?[{kind:"text",text:`${e}${t.text}`},...r]:[{kind:"text",text:e},...o]}function eie(e){return Fi(e)||void 0}function tx(e,o){let t=[],r=!1;return e.forEach((a,n)=>{if(a.kind==="text"){t.push(to("span",{children:Yt(a.text)},n)),r=!0;return}r||t.push(to("span",{},`e${n}`)),t.push(a2(a,n,o)),r=!1}),r||t.push(to("span",{},"end")),t}function cv(e,o){return e.length===1&&e[0].kind==="text"?Yt(e[0].text):e.map((t,r)=>t.kind==="text"?to(dv,{children:Yt(t.text)},r):a2(t,r,o))}function oie(e){return e?"font-normal italic text-accent":"not-italic text-accent"}function s$e(e){return r2(e)}function r2(e,o){let t=e.split(`
|
|
321
|
-
`);return vs(jd,{value:e,children:[o,t.map((r,a)=>vs(dv,{children:[a>0?to("br",{}):null,to("span",{children:r})]},a))]})}function a2(e,o,t){if(e.kind==="link")return jh(e.href)?to(bs,{newTab:"auto",href:e.href,className:t2,children:cv(e.children,t)},o):to("a",{href:e.href,className:t2,children:cv(e.children,t)},o);let r=cv(e.children,t),a=q0[e.kind];if(a)return to("span",{[X0]: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=eie(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 n2(e,o=!0,t=!1){let r=e.split(`
|
|
322
|
-
`);return to(jd,{value:e,children:r.map((a,n)=>vs("span",{children:[t?r2(a):go(a,o),n<r.length-1?to("br",{}):null]},n))})}function s2(e){return e.split(/\n\s*\n/).map(o=>o.trim()).filter(Boolean)}import{jsx as fv,jsxs as rie}from"react/jsx-runtime";import{jsx as tie}from"react/jsx-runtime";function i2(){return tie("span",{className:"block h-px w-[30px] bg-current"})}var pv={labelUpTo800:"max-view-wide:text-[length:var(--size-label,12px)]",labelSmall:"text-[length:var(--size-label,12px)]",labelLarge:"text-[length:var(--size-label,14px)]"};function aie(e,o){return`font-mono text-[length:var(--size-label,${e}px)] uppercase tracking-[0.3em] text-accent`}var nie=`inline-block w-fit bg-accent px-3.5 py-1.5 font-mono ${pv.labelSmall} font-semibold uppercase tracking-[0.16em] text-bg`,sie=`flex items-center gap-3.5 font-mono ${pv.labelLarge} uppercase tracking-[0.3em] opacity-80 ${pv.labelUpTo800} max-view-wide:tracking-[0.25em]`;function Cl({text:e,look:o="plain",size:t=13,scaled:r=!0,className:a="",classNameAfter:n="",takesViewHide:s=!1}){let i=Wt(),l=s?i:Ua;if(o==="line")return l.scope(rie("div",{className:Jo([a,sie,n].filter(Boolean).join(" "),l.className),...l.attrs,children:[fv(i2,{}),fv("span",{children:go(e)})]}));let d=o==="filled"?nie:aie(t,r);return l.scope(fv("span",{className:Jo([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)]"},l2=[{value:"para",label:"Paragraph size \u2014 13px",cls:`font-mono font-normal uppercase tracking-[0.22em] ${Ke.shelfLabel}`},{value:"sm",label:"Small \u2014 40px",cls:`font-heading2 font-medium tracking-[-0.03em] ${Ke.shelfHeading1} ${Ke.shelfHeadingUpTo800Xs}`},{value:"md",label:"Medium \u2014 48px",cls:`font-heading2 font-medium tracking-[-0.03em] ${Ke.shelfHeading2} ${Ke.shelfHeadingUpTo800Small}`},{value:"lg",label:"Large \u2014 56px",cls:`font-heading2 font-medium tracking-[-0.03em] ${Ke.shelfHeading3} ${Ke.shelfHeadingUpTo800Large}`},{value:"xl",label:"Extra large \u2014 64px",cls:`font-heading2 font-medium tracking-[-0.03em] ${Ke.shelfHeading4} ${Ke.shelfHeadingUpTo800Xl}`}],lie="lg";function cie(e){return(l2.find(o=>o.value===e)??l2.find(o=>o.value===lie)).cls}var vl=(e,o=!1)=>typeof e=="string"?n2(e,o):e,Pa=(e,o=!1)=>typeof e=="string"?go(e,o):e;function c2({num:e,title:o,link:t,logo:r,description:a,accent:n,accentNum:s,numStyle:i=Dd,look:l="standard",titleAccent:d,accentTracking:f="-0.02em",spaceBelow:u,rowGap:p,descriptionSize:m,className:h="",eyebrowLook:I=QC,titleSize:w,count:S,capped:v=!1}){let b=u??(l==="editorial"?"mb-[60px]":"");if(l==="shelf")return e||o||a||t?ot("div",{className:`${AD} sticky top-[var(--sf-header-h,88px)] z-30 mb-5 flex items-center justify-between gap-4 max-view-wide:flex-wrap max-view-wide:gap-y-2 border-b border-line bg-bg/95 py-3 backdrop-blur-md ${v?"":"-mx-[var(--sf-site-gutter,40px)] px-[var(--sf-site-gutter,40px)] max-view-wide:-mx-[min(20px,var(--sf-site-gutter,40px))] max-view-wide:px-[min(20px,var(--sf-site-gutter,40px))]"}`,children:[ot("div",{className:"flex min-w-0 items-end gap-6 max-view-wide:flex-col max-view-wide:items-stretch max-view-wide:gap-3",children:[e&&Le("span",{className:`font-mono ${Ke.shelfLabel} leading-none uppercase tracking-[0.22em] text-fg-dim`,children:Pa(e)}),o&&Le("h2",{className:`${cie(w)} leading-none text-fg max-view-wide:leading-[1] [&>span]:block`,children:vl(o)})]}),(a||t||S)&&ot("div",{className:"flex items-center gap-5 max-view-wide:gap-3 view-wide:grow view-wide:justify-end",children:[a&&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:Pa(a)}),t&&ot(bs,{newTab:"auto",href:t.href,className:`inline-flex items-center gap-2 whitespace-nowrap font-mono ${Ke.shelfLabel} uppercase tracking-[0.2em] text-fg-dim transition-colors hover:text-fg`,children:[Pa(t.text),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 ot("header",{className:`${b} grid grid-cols-[auto_1fr_auto] items-end gap-10 border-b border-line pb-8 max-view-desktop:grid-cols-1 max-view-desktop:gap-3.5 ${h}`.trim(),children:[e&&(typeof e=="string"?Le(Cl,{text:e,className:"pb-2"}):Le("span",{className:"pb-2",children:e})),T&&ot("h2",{className:"font-heading2 text-[length:min(var(--size-headingMedium,clamp(40px,5.5vw,80px)),var(--sf-heading-max,9999px))] font-medium uppercase leading-none tracking-[-0.03em]",children:[o,d&&ot(iie,{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 ot("div",{className:T||void 0,children:[e&&(typeof e=="string"?Le(Cl,{text:e,look:I,className:"mb-4 block"}):Le("span",{className:"mb-4 block",children:e})),o&&Le("h2",{className:`font-heading2 ${Ke.headingMedium2} font-medium uppercase leading-none tracking-[-0.02em] text-fg ${Ke.headingMediumUpTo800Small}`,children:vl(o)})]})}if(l==="statement"){let T=`${b} ${h}`.trim();return ot("div",{className:T||void 0,children:[e&&(typeof e=="string"?Le(Cl,{text:e,look:I,className:"mb-4 block"}):Le("span",{className:"mb-4 block",children:e})),o&&Le("h2",{className:"font-heading2 text-[length:min(var(--size-headingMedium,clamp(40px,5vw,72px)),var(--sf-heading-max,9999px))] font-medium uppercase leading-none tracking-[-0.03em] text-fg",children:vl(o,!0)})]})}if(l==="natural"){let T=`flex max-w-[680px] flex-col ${p??"gap-5"} ${b} ${h}`.replace(/\s+/g," ").trim();return ot("div",{className:T,children:[e&&(typeof e=="string"?Le(Cl,{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:vl(o)}),a&&Le("p",{className:`${m??`${Ke.bodyLarge}`} leading-[1.6] opacity-85`,children:a})]})}if(l==="essay"){let T=`${b} ${h}`.trim();return ot("div",{className:T||void 0,children:[e&&(typeof e=="string"?Le(Cl,{text:e,look:I,className:"mb-4 block"}):Le("span",{className:"mb-4 block",children:e})),o&&Le("h2",{className:`font-heading2 ${Ke.headingMedium1} [font-weight:var(--sf-heading-weight,500)] [text-transform:var(--sf-heading-case,uppercase)] [&_em]:[font-weight:var(--sf-heading-weight-strong,inherit)] leading-none tracking-[-0.02em] text-fg ${Ke.headingSmallUpTo800}`,children:vl(o)})]})}let y=!!a||!!t,k=!!o,L=_M(i)==="outlined",O=`font-mono ${Ke.label} uppercase tracking-[0.3em]`,D=null;if(e)if(L)D=Le("span",{className:`${OM} text-fg-dim ${JC}`,children:Pa(e)});else if(s&&!n&&typeof e=="string"){let T=e.indexOf("/"),F=T===-1?e:e.slice(0,T),C=T===-1?"":e.slice(T);D=ot("span",{className:O,children:[Le("span",{className:"text-accent",children:Pa(F)}),C&&Le("span",{className:"text-fg-dim",children:Pa(C)})]})}else D=Le("span",{className:`${O} ${n?"text-accent":"text-fg-dim"}`,children:Pa(e)});return ot("div",{className:"mb-16 grid grid-cols-[auto_1fr_auto] items-end gap-10 border-b border-line pb-6 max-view-wide:mb-9 max-view-wide:grid-cols-1 max-view-wide:gap-3 max-view-wide:pb-5",children:[L&&e&&Le("style",{children:AM}),ot("div",{className:"flex flex-col items-start gap-3",children:[r?.src&&Le(cO,{children:Le($h,{...die(AO(r.src)),alt:r.alt,className:"h-8 w-auto object-contain"})}),D]}),k&&Le("h2",{className:n?"font-heading2 text-[length:min(var(--size-headingMedium,clamp(36px,5vw,64px)),var(--sf-heading-max,9999px))] [font-weight:var(--sf-heading-weight,500)] [text-transform:var(--sf-heading-case,uppercase)] [&_em]:[font-weight:var(--sf-heading-weight-strong,inherit)] leading-[0.95] tracking-[-0.025em]":`font-heading2 ${Ke.headingMedium3} [font-weight:var(--sf-heading-weight,500)] [&_em]:[font-weight:var(--sf-heading-weight-strong,inherit)] leading-none tracking-[-0.03em] whitespace-pre-line ${Ke.headingMediumUpTo800Large} max-view-wide:leading-[1]`,children:vl(o)}),y&&ot("div",{className:"flex flex-col items-end gap-3 max-view-wide:items-start",children:[a&&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:Pa(a)}),t&&ot(bs,{newTab:"auto",href:t.href,className:`inline-flex items-center gap-2 whitespace-nowrap font-mono ${Ke.label} uppercase tracking-[0.2em] text-fg-dim transition-colors hover:text-fg`,children:[Pa(t.text),Le("span",{"aria-hidden":!0,children:"\u2192"})]})]})]})}function die(e){let o=Ss(e,{fallbackWidth:640,maxWidth:960});return o.srcSet?{src:o.src,srcSet:o.srcSet,sizes:"240px"}:{src:e}}function d2({num:e,title:o,titleAccent:t,desc:r,accentTracking:a="-0.02em",spaceBelow:n="mb-[60px]",className:s=""}){return fie(c2,{look:"editorial",num:e,title:o,titleAccent:t,description:r,accentTracking:a,spaceBelow:n,className:s})}import{jsx as Vd,jsxs as Iie}from"react/jsx-runtime";import{useEffect as yie,useState as b2}from"react";import{jsx as pie}from"react/jsx-runtime";var f2="sf-photo-hover";function rx({sheet:e,name:o=f2}){return e?pie("style",{href:o,precedence:f2,dangerouslySetInnerHTML:{__html:e}}):null}import{jsx as g2,Fragment as hie}from"react/jsx-runtime";import{createContext as xie,useContext as nx}from"react";var uie=TE["view-desktop"];function mie(e,o){return[...[...e].sort((t,r)=>t.below-r.below).map(t=>`(max-width: ${t.below-.02}px) ${t.slot}`),o].join(", ")}var uv=e=>`${Math.ceil(e*1e4-1e-6)/100}vw`,ax=e=>{let o=/^([\d.]+)vw$/.exec(e??"");return o?Math.min(1,Number(o[1])/100):1};function F$e(e,o){return{phone:uv(e.phone*ax(o?.phone)),tablet:uv(e.tablet*ax(o?.tablet)),desktop:uv(e.desktop*ax(o?.desktop))}}function mv(e){if([e.phone,e.tablet,e.desktop].every(r=>ax(r)>=1))return;let o=[{below:Xo,slot:e.phone},{below:uie,slot:e.tablet}],t=o.filter((r,a)=>r.slot!==(o[a+1]?.slot??e.desktop));return mie(t,e.desktop)}function p2(e){let o=e.split(/,\s*(?![^()]*\))/).map(a=>a.trim()),t=[];for(let a of o.slice(0,-1)){let n=/^\(max-width:\s*([\d.]+)px\)\s+(.+)$/.exec(a);if(!n)return null;let s=Number(n[1]);if(t.length&&s<=t[t.length-1].edge)return null;t.push({edge:s,slot:n[2]})}let r=o[o.length-1];return!r||r.startsWith("(")?null:{steps:t,last:r}}var u2=(e,o)=>e.steps.find(t=>o<=t.edge)?.slot??e.last,m2=e=>{let o=/^min\((.+)\)$/.exec(e);return o?o[1].split(/,\s*(?![^()]*\))/).map(t=>t.trim()):[e]};function h2(e,o){if(e===o)return e;let t=[...m2(e),...m2(o)],r=s=>{let i=t.map(l=>new RegExp(`^([\\d.]+)${s}$`).exec(l)).filter(Boolean).map(l=>Number(l[1]));return i.length?[`${Math.min(...i)}${s}`]:[]},a=[...new Set(t.filter(s=>!/^[\d.]+(vw|px)$/.test(s)))],n=[...r("vw"),...r("px"),...a];return n.length===1?n[0]:`min(${n.join(", ")})`}function x2(e,o){if(!o)return e;let t=p2(e),r=p2(o);if(!t||!r)return e;let a=[...new Set([...t.steps,...r.steps].map(s=>s.edge))].sort((s,i)=>s-i).map(s=>({edge:s,slot:h2(u2(t,s),u2(r,s))})),n=h2(t.last,r.last);return[...a.filter((s,i)=>s.slot!==(a[i+1]?.slot??n)).map(s=>`(max-width: ${s.edge}px) ${s.slot}`),n].join(", ")}var gie={hasWidth:!1},Kd=xie(gie);function H$e(){return nx(Kd).hasWidth}function W$e(e){let{bound:o}=nx(Kd);return o&&mv(o)||e}function I2(e){let{bound:o}=nx(Kd);return x2(e,o&&mv(o))}function y2({children:e}){let o=nx(Kd);return o.bound?g2(Kd.Provider,{value:{hasWidth:o.hasWidth},children:e}):g2(hie,{children:e})}function S2({fallback:e,className:o,src:t,alt:r="",objectPosition:a,objectFit:n="cover",sizes:s="100vw",sizesFromCell:i=!1,priority:l=!1,deferFetch:d=!1,showBackground:f=!0,treatment:u}){let p=zC(),m=I2(s),h=i?m:s,[I,w]=b2(!1),[S,v]=b2(!1),b=t||"";yie(()=>{w(!1),v(!1)},[b]);let y=uu(b),k=y&&!S?Ss(b):{src:b},L=!b||I;return Iie("div",{className:`relative h-full w-full overflow-hidden ${o??""}`,children:[Vd("div",{className:"absolute inset-0 flex items-center justify-center",style:f?{background:"var(--site-surface)"}:void 0,children:L?e:null}),Vd(au,{fill:_c,children:b&&(y?Vd("img",{src:k.src,alt:r,...k.srcSet?{srcSet:k.srcSet,sizes:h}:{},decoding:"async",...d?{loading:"lazy"}:p,className:`absolute inset-0 h-full w-full${u?.className?` ${u.className}`:""}`,style:{display:I?"none":"block",objectFit:n,...a?{objectPosition:a}:{},...u?.style??{}},onError:()=>k.srcSet?v(!0):w(!0)}):Vd(Kh,{src:b,alt:r,fill:!0,sizes:h,priority:l,...u?.className?{className:u.className}:{},style:{display:I?"none":"block",objectFit:n,...a?{objectPosition:a}:{},...u?.style??{}},onError:()=>w(!0)}))}),Vd(rx,{sheet:u?.sheet})]})}import{jsx as bie}from"react/jsx-runtime";var Yd="sf-empty-hides",hv="sf-empty-else",sx="sf-head-core",ix="sf-head-box",qd="holdsHeadCore",Xd="isHeadCore",Sie=`.${Yd}:empty{display:none}.${Yd}:not(:empty)~.${hv}{display:none}.${ix},.${sx}{display:contents}.${ix}:not(:has(.${sx}:not(:empty))){display:none}`;function lx(){return bie("style",{children:Sie})}var bt={headingSmallUpTo700Small:"max-[700px]:text-[length:var(--size-headingSmall,26px)]",headingSmallUpTo700Large:"max-[700px]:text-[length:var(--size-headingSmall,28px)]",bodySmall:"text-[length:var(--size-body,15px)]",bodyLarge:"text-[length:var(--size-body,18px)]",headingSmall1:"text-[length:var(--size-headingSmall,28px)]",headingSmall2:"text-[length:var(--size-headingSmall,34px)]",labelSmall:"text-[length:var(--size-label,11px)]",label:"text-[length:var(--size-label,12px)]",labelLarge:"text-[length:var(--size-label,13px)]"},w2={2:"grid-cols-2 max-[900px]:grid-cols-1",3:"grid-cols-3 max-view-desktop:grid-cols-1",4:"grid-cols-4 max-view-desktop:grid-cols-2 max-[700px]:grid-cols-1"},xv="sf-itc-boxes",Cie="sf-itc-steps";function gv(e){return(e??[]).filter(o=>(o?.tag??"").trim()||(o?.meta??"").trim()||(o?.title??"").trim()||(o?.copy??"").trim()||(o?.image??"").trim()||(o?.specs??[]).some(t=>(t?.label??"").trim()||(t?.value??"").trim()))}function x6e({num:e,title:o,description:t,boxes:r,steps:a,columns:n=3,cta:s,padTop:i,padBottom:l,bandPad:d,editing:f=!1,omitHead:u=!1,cardImage:p,cardImageUnit:m,cardText:h,rows:I,copies:w}){let S=w!==void 0,v=I&&(S||(r?.blockCount??0)>0)?I:null,b=d??kL({padTop:i,padBottom:l},Il("ProcessSteps")),y=S?[]:gv(a),k=y.length>0?y:f&&!r&&!S?[1,2,3].map(F=>({tag:c("Column {n}",{n:F})})):[],L=w2[n]??w2[3],O=v?"grid-cols-1":L,D=v?"":" [&>*]: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,...X1(p,m)},children:Ea("div",{className:fL,children:[u?null:Ve(d2,{num:e,title:o?.trim()?go(o,!0):void 0,desc:t?.trim()?go(t,!1):void 0}),r&&!S?Ea(wie,{children:[Ve(lx,{}),v?Ve(Gh.Provider,{value:{hand:v,ids:r.blockIds??[],boxes:[]},children:Ve(r,{className:`${xv} ${Yd} sf-card grid ${O} gap-[2px] border border-line bg-line${D} [&>*]:bg-bg`,minEmptyHeight:260})}):Ve(r,{className:`${xv} ${Yd} sf-card grid ${O} gap-[2px] border border-line bg-line [&>*]:min-h-[560px] [&>*]:bg-bg`,minEmptyHeight:260})]}):null,S&&w?Ve("div",{className:`${xv} sf-card grid ${O} gap-[2px] border border-line bg-line${D} [&>*]:bg-bg`,children:v?Ve(Gh.Provider,{value:{hand:v,copies:!0},children:w}):w}):null,k.length>0&&Ve("div",{className:`${Cie} ${hv} sf-card grid ${L} gap-[2px] border border-line bg-line`,children:k.map((F,C)=>{let R=(F.specs??[]).filter(P=>(P?.label??"").trim()||(P?.value??"").trim());return Ea("article",{className:T?"flex flex-col bg-bg":"flex min-h-[560px] flex-col bg-bg",children:[Ea("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(S2,{label:F.tag?.trim()||F.title?.trim()||`column-${C+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, ${ca(.55)} 0%, transparent 30%, transparent 70%, ${ca(.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%, ${ca(.73)} 55%, ${ca(.92)} 100%)`}}),F.tag?.trim()&&Ve("span",{className:`absolute left-5 top-[18px] z-[2] font-mono ${bt.label} uppercase tracking-[0.3em] text-accent`,children:Yt(F.tag)}),F.meta?.trim()&&Ve("span",{className:T?`absolute right-5 top-[18px] z-[2] font-mono ${bt.label} uppercase tracking-[0.24em] text-overlay-fg/80`:`absolute right-5 bottom-[18px] z-[2] font-mono ${bt.label} uppercase tracking-[0.24em] text-overlay-fg/80`,children:Yt(F.meta)}),T&&(F.title?.trim()||F.copy?.trim())&&Ea("div",{className:"absolute inset-x-0 bottom-0 z-[2] flex flex-col gap-2.5 px-8 pb-7 pt-14 max-[700px]:px-6 max-[700px]:pb-6",children:[F.title?.trim()&&Ve("h3",{className:`flex min-h-[2em] flex-col justify-end font-heading3 ${bt.headingSmall1} font-medium uppercase leading-none tracking-[-0.02em] text-overlay-fg ${bt.headingSmallUpTo700Small}`,children:go(F.title,!0)}),F.copy?.trim()&&Ve("p",{className:`min-h-[3em] font-display ${bt.bodySmall} leading-[1.5] text-overlay-fg/85`,children:go(F.copy,!1)})]})]}),T?R.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:R.map((P,_)=>Ea("div",{className:"flex flex-col gap-1",children:[P.label?.trim()&&Ve("span",{className:`font-mono ${bt.labelSmall} uppercase tracking-[0.24em] text-fg-dim`,children:Yt(P.label)}),P.value?.trim()&&Ve("span",{className:`font-display ${bt.bodyLarge} font-medium tracking-[-0.01em] text-fg`,children:Yt(P.value)})]},_))}):Ea("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 ${bt.headingSmall2} font-medium uppercase leading-none tracking-[-0.02em] ${bt.headingSmallUpTo700Large}`,children:go(F.title,!0)}),F.copy?.trim()&&Ve("p",{className:`font-display ${bt.bodySmall} leading-[1.55] text-fg-dim`,children:go(F.copy,!1)}),R.length>0&&Ve("div",{className:"mt-auto grid grid-cols-2 gap-2 border-t border-line pt-4",children:R.map((P,_)=>Ea("div",{className:"flex flex-col gap-1",children:[P.label?.trim()&&Ve("span",{className:`font-mono ${bt.labelSmall} uppercase tracking-[0.24em] text-fg-dim`,children:Yt(P.label)}),P.value?.trim()&&Ve("span",{className:`font-display ${bt.bodyLarge} font-medium tracking-[-0.01em] text-fg`,children:Yt(P.value)})]},_))})]})]},C)})}),s?.text&&Ve("div",{className:"mt-12 flex justify-end border-t border-line pt-8",children:Ea(bs,{newTab:"auto",href:s.href,className:`group inline-flex items-center gap-3.5 border border-line px-6 py-4 font-mono ${bt.labelLarge} uppercase tracking-[0.3em] text-fg transition-colors hover:border-accent hover:text-accent`,children:[Yt(s.text),Ve("span",{"aria-hidden":!0,className:"text-accent transition-transform group-hover:translate-x-[3px]",children:"\u2192"})]})})]})})}var vie=["selected","highlighted"],C2="data-sf-card-state",k2="pointer-events-none absolute inset-0 border border-accent",T2="pointer-events-none absolute inset-x-0 bottom-0 border-b-2 border-accent",P2="pointer-events-none absolute inset-0 border-2 border-accent outline outline-1 -outline-offset-1 outline-accent",E2="absolute inset-y-0 left-0 w-[3px] bg-accent",_2="absolute -inset-[2px] -z-[1] bg-[color-mix(in_oklab,var(--accent)_14%,transparent)]",O2="after:pointer-events-none after:absolute after:inset-0 hover:after:border-2 hover:after:border-accent",v2=e=>{let o=K_.find(t=>t.role===e)?.token;if(!o)throw new Error(`card-state: the palette has no ink token for "${e}"`);return o},kie={[v2("muted")]:`var(${v2("fg")})`};function Iv(e){return e?.selected===!0}function yv(e){return e?vie.filter(o=>e[o]===!0).join(" "):""}function A2(e,o="frame"){let t=yv(e);return t?o==="frame"&&Iv(e)?{[C2]:t,className:"relative isolate",style:{...kie}}:{[C2]:t,className:"relative"}:{}}var Tie={highlighted:!0},Pie={},cx="badge";function S6e(e,o=[]){return e.map((t,r)=>({...t,key:t.key||o[r]?.key||vc(t,r)}))}function R2(e){return!e||typeof e!="object"?!1:Object.entries(e).some(([o,t])=>o==="key"||o===cx||o==="state"?!1:typeof t=="string"?t.trim()!=="":Array.isArray(t)?t.length>0:t!=null&&typeof t!="function")}function w6e(e,{chosen:o,badge:t}){let r=o.trim(),a=r?e.findIndex(n=>n.key===r):-1;return{rows:e.map((n,s)=>({...n,[cx]:s===a?t:""})),states:e.map((n,s)=>s===a?Tie:Pie)}}function C6e(e){return{chosen:typeof e.highlightedCard=="string"?e.highlightedCard.trim():"",badge:typeof e.highlightBadge=="string"?e.highlightBadge:""}}function v6e(e){if(!e||typeof e!="object")return;let{press:o,pressLabel:t,pressDisabled:r}=e;if(typeof o=="function")return{press:o,...typeof t=="string"&&t.trim()!==""?{label:t}:null,...r===!0?{disabled:!0}:null}}var L2="data-sf-card-press",F2=`${CM} appearance-none bg-transparent border-0 p-0 m-0`,B2=`${F2} cursor-pointer`,N2=F2;import{paymentMarkItems as Eie,paymentMarks as _ie}from"efficient-shell/icons/payment";var Oie=[A0,gp],D2=e=>Oie.includes(e),M2=e=>Eie({name:e.label,kind:e.kind}),Aie=(e,o)=>e.kind===o.kind&&e.label===o.label&&(e.kind==="brand"?e.mark===o.mark:e.glyph===o.glyph);function H2(e){return _ie(e.map(o=>({name:o.label,kind:o.kind}))).map(o=>({label:o.label,kind:e.find(t=>M2(t).some(r=>Aie(r,o)))?.kind??""}))}function E6e(e){return M2(e)[0]??null}var W2={heading:"Trusted by *teams worldwide*"},dx=()=>[{src:"",alt:c("Logo one")},{src:"",alt:c("Logo two")},{src:"",alt:c("Logo three")},{src:"",alt:c("Logo four")},{src:"",alt:c("Logo five")}],Rie=yp.Logos,R6e={label:"Logos",drawsPictures:!0,fields:Rie,defaultProps:{items:[],contained:!0}};var Lie=()=>dx().map(e=>({label:e.alt}));function $2(e,o){let t=Ip(e,o,Lie()).rows.filter(r=>r.label);return D2(eo(e))?H2(t):t}var Zd="Flex",Bie="Text",Jd=e=>Object.values(e??{}).filter(z2),Nie=e=>e.type===Oo&&eo(e.props)!=="",G2=e=>{if(e.type!==Zd)return!1;let o=Jd(e.props).flat();return o.length>0&&o.every(Nie)},fx=e=>Bp(e.props?.headPlacement)==="own-box"||G2(e),bv=e=>e===void 0||Array.isArray(e)&&e.length===0;function j2(e){return e.type===Bie?!0:e.type===Zd&&Jd(e.props).every(o=>o.every(j2))}var K2={ProcessSteps:e=>bv(e.boxes)&&gv(e.steps).length===0,Logos:e=>eo(e)?Die(e):bv(e.logos)&&bv(e.items)};function Die(e){return N0(e)!==null&&$2(e,!1).length===0}function Mie(e){return Jd(e.props).flat().every(o=>!Ip(o.props,!1).rows.some(R2))}function px(e){let o=Jd(e.props).flat();return o.some(fx)&&o.every(t=>fx(t)||j2(t))}function Hie(e){if(!Fie(e)||!fx(e))return e;let o=G2(e)?Mie(e):$(K2,String(e.type))?.(e.props??{})===!0;return{...e,props:{...e.props,[Xd]:o?"empty":!0}}}function U2(e){return ho(e,o=>so(o,Hie))}function V2(e){let o=Object.entries(e.props??{}).filter(([,r])=>z2(r)).filter(([,r])=>r.length>0);if(o.length!==1||o[0][1].length!==1)return null;let t=o[0][1][0];return t?.type===Zd&&t.props?{key:o[0][0],inner:t}:null}function Y2(e){if(e?.type!==Zd||!e.props)return e;if(px(e)){let t=U2(e);return{...t,props:{...t.props,[qd]:!0}}}let o=V2(e);return!o||!px(o.inner)?e:{...e,props:{...e.props,[o.key]:[U2(o.inner)],[qd]:!0}}}function q2(e){let o=e;if(!o||!Array.isArray(o.content))return e;let t=!1,r=o.content.map(a=>{let n=Y2(a);return n!==a&&(t=!0),n});return t?{...o,content:r}:e}var Wie=e=>$(K2,String(e.type))?.(e.props??{})===!0;function $ie(e){if(e.type!==Zd||!e.props)return!1;let o=px(e)?null:V2(e),t=o?o.inner:e;if(!px(t))return!1;let r=Jd(t.props).flat().filter(fx);return r.some(a=>eo(a.props)!=="")&&r.every(Wie)}function X2(e){return ho(e,o=>Uie(o))}function Uie(e){let o=!1,t=[];for(let r of e){if($ie(r)){o=!0;continue}let a=X2(r);a!==r&&(o=!0),t.push(a)}return o?t:e}function Z2(e){let o=e;if(!o||!Array.isArray(o.content))return e;let t=!1,r=o.content.map(a=>{if(Y2(a)!==a)return a;let n=X2(a);return n!==a&&(t=!0),n});return t?{...o,content:r}:e}var zie=["DocMasthead","AlloyWheelsListing"],ux="titleLevel",Gie=e=>e===2?"h2":"h1",Sv=e=>Gie(e?.[ux])==="h2";function J2(e){let o=e;if(!o?.content?.length)return e;let t=!1,r=!1,a=o.content.map(n=>zie.includes(n?.type??"")?t?(r=!0,{...n,props:{...n.props??{},[ux]:2}}):(t=!0,n):n);return r?{...o,content:a}:e}import{readHidable as Xie}from"efficient-easel/draw";var kl="showFor";function Q2(){return ai("efficient.box-show-for-choices",()=>({choices:[],revision:0}))}var jie=e=>!!e&&typeof e=="object"&&typeof e.slug=="string"&&e.slug.trim()!==""&&typeof e.name=="string"&&e.name.trim()!=="";function Z6e(){return Q2().choices}function J6e(){return Q2().revision}function eH(e){return jie(e)?{slug:e.slug,name:e.name}:void 0}import{readHidable as Kie}from"efficient-easel/draw";var wv="_wallLabelId",Vie="_wallLabelledBy",Cv=e=>e.props?.id==null?"":String(e.props.id);function Yie(e){if(!e||e.type!=="Text"||!Cv(e))return!1;let o=Kie(e.props?.text);return!o.hidden&&o.text.trim()!==""}var qie=e=>!!e&&e.type==="Logos"&&e.props?.look==="marks"&&Cv(e)!=="",oH=(e,o,t)=>({...e,props:{...e.props,[o]:t}});function tH(e){let o=so(e,r=>ho(r,tH)),t=null;for(let r=1;r<o.length;r++){if(!qie(o[r])||!Yie(o[r-1]))continue;let a=`sf-wall-label-${Cv(o[r-1])}`;t??=o.slice(),t[r-1]=oH(t[r-1],wv,a),t[r]=oH(t[r],Vie,a)}return t??o}function rH(e){return ii(e,tH)}var aH="_cardPressTitles",Zie="_cardPressTitle";function cUe(e,o){let t=e?.[aH],r=t&&typeof t=="object"?t[o]:void 0;return Array.isArray(r)&&r.length?r:void 0}var nH=(e,o)=>({...e,props:{...e.props,...o}});function Jie(e){let o=e.props??{};return e.type!=="Text"||Xie(o.text).hidden||typeof o[kt]=="string"||typeof o[wv]=="string"?"":mt(o)}function sH(e,o,t,r){return so(e,a=>{let n=Jie(a);if(n&&!r.has(n))return r.add(n),t.push({field:n,gates:o}),nH(a,{[Zie]:!0});if(a.type==="Text"||Array.isArray(a.props?.[kl]))return a;let s=a.props?.[ni],i=Array.isArray(s)&&s.length?[...o,s.filter(l=>typeof l=="string")]:o;return ho(a,(l,d)=>Fn(a.type,d)?l:sH(l,i,t,r))})}function iH(e){let o,t=ho(e,(r,a)=>{let n=so(r,iH);if(!Fn(e.type,a))return n;let s=[],i=sH(n,[],s,new Set);return s.length&&((o??={})[a]=s),i});return o?nH(t,{[aH]:o}):t}function lH(e){return ii(e,o=>so(o,iH))}import{pinnedDuplicateIndices as ece}from"efficient-easel/draw";import{jsx as qt,jsxs as qH}from"react/jsx-runtime";import{createContext as jle,useContext as Kle,useEffect as Vle,useRef as Yle,useState as XH}from"react";import{jsx as nn,jsxs as pH}from"react/jsx-runtime";import{useEffect as Tl,useRef as uH,useState as ks}from"react";import{jsx as cH,Fragment as Qie,jsxs as ele}from"react/jsx-runtime";import{useEffect as ole,useRef as dH,useState as tle}from"react";var rle="#t=0.001",ale=2;function nle(e,o){if(e.readyState<ale||!e.videoWidth||!e.videoHeight)return!1;let t=o.getContext("2d");return t?(o.width=e.videoWidth,o.height=e.videoHeight,t.drawImage(e,0,0,o.width,o.height),!0):!1}function fH({src:e,objectPosition:o="50% 50%",onError:t}){let r=dH(null),a=dH(null),[n,s]=tle(!1);return ole(()=>{let i=r.current,l=a.current;if(n||!i||!l)return;let d=()=>{nle(i,l)&&s(!0)};return d(),i.addEventListener("loadeddata",d),i.addEventListener("seeked",d),()=>{i.removeEventListener("loadeddata",d),i.removeEventListener("seeked",d)}},[n]),ele(Qie,{children:[cH("canvas",{ref:a,"aria-hidden":!0,className:"absolute inset-0 z-[3] h-full w-full object-cover",style:{objectPosition:o,visibility:n?"visible":"hidden"}}),!n&&cH("video",{ref:r,src:`${e}${rle}`,muted:!0,playsInline:!0,preload:"auto",className:"hidden",onError:t})]})}var sle=.5;function Qd({videoSrc:e,videoAv1Src:o,videoSrcPhone:t,videoAv1SrcPhone:r,posterSrc:a,posterSrcPhone:n,showVideo:s=!0,playbackRate:i=sle,objectPosition:l="50% 50%",objectPositionPhone:d,objectPositionTablet:f,quiet:u=!1,slideShown:p,laterSlide:m=!1,laterOfLead:h=!1}){let I=lR(d,f),w=Bd(),[S,v]=ks(!1),b=w==="below"&&!S,y=w==="first",k=a||"",L=n||"",O=uH(null),D=Wd(O,!0,!0),T=D===void 0?void 0:D==="phone",F=hu({video:e,av1:o,videoPhone:t,av1Phone:r},T===!0),C=F.video||"",R=mu(C,F.av1),[P,_]=ks(!1),[W,G]=ks(!1),[Z,V]=ks(!1),[de,ve]=ks(!1),oe=p??!0,[Oe,_e]=ks(!1),Ae=w!=="first"&&!h,[Re,rt]=ks(!1),Yo=uH(null);Tl(()=>{if(!Ae)return;if(document.readyState==="complete"){rt(!0);return}let ue=()=>rt(!0);return window.addEventListener("load",ue,{once:!0}),()=>window.removeEventListener("load",ue)},[Ae]),Tl(()=>{_(!1),G(!1),V(!1),ve(!1)},[C,k,L]),Tl(()=>{oe&&_e(!0)},[oe]),Tl(()=>{let ue=Yo.current;ue&&(oe?ue.play()?.catch(()=>{}):ue.pause())},[oe,Oe,Re]),Tl(()=>{if(!m||Ae&&!Re)return;let ue=()=>v(!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]),Tl(()=>{let ue=Yo.current;if(!ue)return;let no=()=>{ue.playbackRate=i};return no(),ue.addEventListener("loadedmetadata",no),()=>ue.removeEventListener("loadedmetadata",no)},[C,i]);let qo=uu(k),yo=k&&(qo||L)&&!W?Ss(k):{src:k},No=L&&!W?Ss(L):{src:L},Eo=L&&!b&&!S?[{sized:No,media:vd},...k?[{sized:yo,media:Ic}]:[]]:[];return pH("div",{ref:O,className:"absolute inset-0 z-[1]",children:[nn("div",{className:"absolute inset-0",style:{background:"var(--site-surface)"}}),Eo.map(({sized:ue,media:no})=>nn("link",{rel:"preload",as:"image",href:ue.src,media:no,fetchPriority:"high",...ue.srcSet?{imageSrcSet:ue.srcSet,imageSizes:"100vw"}:{}},no)),(k||L)&&(qo||L?(()=>{let ue=nn("img",{...k?{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||No.srcSet?G(!0):_(!0))}},L?void 0:k);return L?pH("picture",{children:[nn("source",{media:vd,srcSet:No.srcSet||No.src,sizes:"100vw"}),ue]},`${k} ${L}`):ue})():nn(Kh,{src:k,alt:"",fill:!0,...b?{}:S?{loading:"eager"}:{priority:!0},sizes:"100vw",className:`z-[2] object-cover ${I.className}`.trim(),style:{display:P?"none":"block",objectPosition:l,...I.style},onError:()=>_(!0)},k)),s&&!u&&C&&T!==void 0&&Oe&&(!Ae||Re)&&!Z&&nn("video",{ref:Yo,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:R.map(ue=>nn("source",{src:ue.src,type:ue.type},ue.src))},C),s&&u&&C&&T!==void 0&&Oe&&(!Ae||Re)&&!de&&(!k||P)&&nn(fH,{src:C,objectPosition:l,onError:()=>ve(!0)},C)]})}import{jsx as zo,Fragment as TH,jsxs as Ev}from"react/jsx-runtime";import{jsx as Pl}from"react/jsx-runtime";import{useRef as ile}from"react";import{SCROLL_EFFECTS_WITH_ZOOM as lle,scrollAttrs as cle}from"efficient-shell/format";function mx({views:e,origins:o={},boxClass:t,boxAttrs:r,boxStyle:a,takesViewHide:n=!1,atEdge:s=!1,zoomInside:i="layer",zoomLayerClass:l,children:d}){let f=ile(null),u=lu(),p=Wt(),m=n?p:Ua,h=Hd(f,!0,s),{attrs:I,style:w}=cle(e[h],o[h]),S=lle.includes(e[h].effect),v=Jo(`${vi}${u.fill}${t?` ${t}`:""}`,m.className);if(S&&i==="picture")return m.scope(Pl("div",{ref:f,className:v,...r,...m.attrs,...a?{style:a}:{},children:Pl(iO,{attrs:I,style:w,children:u.inner(d)})}));let b=Pl(lO,{children:u.inner(d)});if(S){let k=l??(u.fill?"h-full":void 0);return m.scope(Pl("div",{ref:f,className:v,...r,...m.attrs,style:{...a,overflow:"clip"},children:Pl("div",{...k?{className:k}:{},...I,style:w,children:b})}))}let y=Object.keys(w).length||a?{style:{...a,...w}}:{};return m.scope(Pl("div",{ref:f,className:v,...r,...m.attrs,...I,...y,children:b}))}var Ts=["media","image","image2"],_a={media:"Media",image:"Image",image2:"Image 2"},ef={media:"heroMedia",image:"heroImage",image2:"heroImage2"};function hx(e,o){return e==="image"&&Lc(o)>1?"Image 1":_a[e]}var DUe="Video file",MUe="Upload a video file",HUe="AV1 file",WUe="Upload an AV1 file";function dle(e,o){return Sc("mediaType",Mn,o,[e])}var fle=new Set(Object.keys(Rc)),mH="heroPart";function ple(e,o){return{...o,[mH]:e}}function $Ue(e,{parts:o={},onlyFor:t,fallback:r,rules:a}){let n={...e},s=[...Object.values(o).flat(),...Mn.flatMap(i=>t[i])].filter(i=>!(i in e));if(s.length)throw new Error(`heroMediaFields: ${s.join(", ")} is not a row of this block`);for(let i of Mn)for(let l of t[i])n[l]=io(n[l],dle(i,r));for(let[i,l]of Object.entries(a??{}))l&&(n[i]=io(n[i],l));for(let i of Ts)for(let l of o[i]??[])n[l]=ple(i,n[l]);return n}function ule(e){let o=e?.[mH];return Ts.includes(o)?o:null}function hH(e,o){let t={};for(let[r,a]of Object.entries(e))ule(a)===o&&(t[r]=a);return t}function xH(e){if(!fle.has(e.type))return[];let o=[{part:"media",label:_a.media,depth:0}];return XO(e.type,e.props.mediaType)!=="video"&&(o.push({part:"image",label:hx("image",e.props),depth:1}),Lc(e.props)>1&&o.push({part:"image2",label:hx("image2",e.props),depth:1})),o}function Ps(e,o){return`${e}::${o}`}function xx(e){if(!e)return null;let o=e.lastIndexOf("::");if(o<=0)return null;let t=e.slice(o+2);return Ts.includes(t)?{nodeId:e.slice(0,o),part:t}:null}var of="data-sf-hero-part";import{MOTION_TIMING as mle}from"efficient-shell/format";var bH="grayscale(1) contrast(1.03)",jUe="Black and white";function hle(e){return e===!0?{filter:bH}:{}}function xle(e){let{filter:o}=hle(e);return o?{style:{filter:o}}:{}}var Es="sf-photo-grayscale",Pv="data-sf-photo-host",gH={duration:"--sf-photo-hover-duration",delay:"--sf-photo-hover-delay"},bx=`@media (hover:hover){.${Es}{filter:${bH};transition:filter var(--sf-photo-hover-duration,var(--page-motion-hover-duration)) var(--page-ease-media) var(--sf-photo-hover-delay,var(--page-motion-hover-delay))}.${Es}:hover,[data-sf-photo-host]:hover .${Es}{filter:none}}@media (hover:hover) and (prefers-reduced-motion:reduce){.${Es}{transition:none}}`;function SH(e){let o=mle.hover,t={...e.duration!==o.duration.default?{[gH.duration]:`${e.duration}s`}:{},...e.delay!==o.delay.default?{[gH.delay]:`${e.delay}s`}:{}};return Object.keys(t).length?t:void 0}function wH(e,o,t){if(e===!0)return xle(!0);if(t?.kind==="mono"){let r=SH(t);return{className:Es,sheet:bx,...r?{style:r}:{}}}return e===!1?{}:o===!0?{className:Es}:{}}var CH="data-sf-repeat",vv="sf-photo-zoom",gle="--sf-photo-zoom",KUe="sf-photo-wash",gx="sf-photo-wash-rest",tf="sf-photo-wash-hover",yx="sf-photo-frame",vH=(e,o)=>`:not([${CH}]:not(${o}) .${e})`,Tv=(e,o)=>`[${CH}]${o} .${e}${vH(e,o)}`,kv=(e,o)=>`${o},${Tv(e,":hover")},[${Pv}]:hover .${e}${vH(e,":hover")}`,IH=e=>`${e} var(--sf-photo-hover-duration,var(--page-motion-hover-duration)) var(--page-ease-media) var(--sf-photo-hover-delay,var(--page-motion-hover-delay))`,Ile=`.${tf}{opacity:0}@media (hover:hover){.${gx},.${tf}{transition:${IH("opacity")}}${kv(tf,`.${yx}:hover .${tf}`)}{opacity:1}${kv(gx,`.${yx}:hover .${gx}`)}{opacity:0}}@media (hover:hover) and (prefers-reduced-motion:no-preference){.${vv}{transition:${IH("transform")}}${kv(vv,`.${yx}:hover .${vv}`)}{transform:scale(var(${gle}))}}@media (hover:hover) and (prefers-reduced-motion:reduce){.${gx},.${tf}{transition:none}}`,VUe="sf-photo-move";function YUe(e){if(!e||!e.zoom&&!e.darken)return null;let o=SH(e);return{className:yx,sheet:Ile,...o?{style:o}:{}}}function kH(e){return e===!0?{[Es]:bx}:{}}var Ix="sf-box-reveal",qUe="sf-box-reveal",yle=8,yH=.3,XUe=`@media ${Ic}{.${Ix}{opacity:0;transform:translateY(${yle}px);transition:opacity ${yH}s ease-out,transform ${yH}s ease-out}${Tv(Ix,":hover")},${Tv(Ix,":focus-within")}{opacity:1;transform:none}}@media ${Ic} and (prefers-reduced-motion:reduce){.${Ix}{transition:none;transform:none}}`;import{hidableText as ble}from"efficient-easel/draw";var Sle={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 PH(e){let o=e.isVideo&&e1(e.videoSource)==="youtube",t=e.isVideo&&o1(e.videoPlayback)==="click",r=o?t1(ble(e.youtubeUrl)):null,a=bu(e.mediaLayout);return{fromYouTube:o,onClick:t,youTubeId:r,backgroundFile:e.isVideo&&!o&&!t,desktopLayout:a,phoneLayout:jy(e.mediaLayoutPhone,a),twoPictures:!e.isVideo&&Lc(e)>1}}function rf(e,o){return ki(ws({_partMotion:e},o))}function af(e,o){return Sl(ws({_partMotion:e},o))}var Sx=e=>ov({desktop:e.objectPosition,tablet:e.objectPositionTablet,phone:e.objectPositionPhone}),EH=_c.img;function _H({entrance:e,scroll:o,origins:t,editing:r,className:a,attrs:n,style:s,zoomLayerClass:i,children:l}){return e?zo(Vh,{views:e,editing:r,boxClass:a,boxAttrs:n,...s?{boxStyle:s}:{},children:l}):o?zo(mx,{views:o,...t?{origins:t}:{},boxClass:a,boxAttrs:n,...s?{boxStyle:s}:{},...i?{zoomLayerClass:i}:{},children:l}):zo("div",{className:a,...n,...s?{style:s}:{},children:l})}function El(e,o){return wH(void 0,void 0,CE(ws({_partMotion:e},o)))}function OH(e){return Ts.some(o=>El(e,o).className)?{hostAttrs:{[Pv]:""},sheet:bx}:{}}function wx({treatment:e,children:o}){return e.className?zo("div",{className:`absolute inset-0 ${e.className}`,...e.style?{style:e.style}:{},children:o}):zo(TH,{children:o})}function Cx({color:e,opacity:o,passClicks:t=!0}){return o>0?zo("div",{className:t?"pointer-events-none absolute inset-0 z-[2]":"absolute inset-0 z-[2]",style:{background:e,opacity:Math.min(Math.max(o,0),100)/100}}):null}function vx({part:e,editing:o,marked:t=!0,entrance:r,scroll:a=null,origins:n,className:s,children:i}){let l=o&&t?{[of]:e}:void 0;return zo(_H,{entrance:r,scroll:a,origins:n,editing:o,className:s,attrs:l,zoomLayerClass:EH,children:i})}function AH({partMotion:e,editing:o,children:t}){let r=rf(e,"media"),a=af(e,"media"),n=El(e,"media"),s=zo(au,{fill:_c,children:t}),i=n.className?zo("div",{className:`absolute inset-0 z-[1] ${n.className}`,...n.style?{style:n.style}:{},children:s}):s;return r||a?zo(_H,{entrance:r,scroll:a,editing:o,className:"absolute inset-0 z-[1]",zoomLayerClass:EH,children:i}):zo(TH,{children:i})}function RH({desktopLayout:e,phoneLayout:o,editing:t,marked:r=!0,partMotion:a,first:n,second:s,laterSlide:i=!1}){return Ev("div",{className:`absolute inset-0 z-[1] grid ${Sle[o]} ${wle[e]}`,"data-hero-layout":e,"data-hero-layout-phone":o,children:[zo(vx,{part:"image",editing:t,marked:r,entrance:rf(a,"image"),scroll:af(a,"image"),origins:Sx(n),className:"relative overflow-hidden",children:Ev(wx,{treatment:El(a,"image"),children:[zo(Qd,{posterSrc:$t(n.src),showVideo:!1,laterSlide:i,objectPosition:n.objectPosition,objectPositionPhone:n.objectPositionPhone,objectPositionTablet:n.objectPositionTablet}),zo(Cx,{color:n.tintColor,opacity:n.tintOpacity})]})}),zo(vx,{part:"image2",editing:t,marked:r,entrance:rf(a,"image2"),scroll:af(a,"image2"),origins:Sx(s),className:`relative overflow-hidden ${Zu({desktop:e==="one",tablet:e==="one",mobile:o==="one"},{atSectionLine:!0})}`.trimEnd(),children:Ev(wx,{treatment:El(a,"image2"),children:[zo(Qd,{posterSrc:$t(s.src),showVideo:!1,laterSlide:i,objectPosition:s.objectPosition,objectPositionPhone:s.objectPositionPhone,objectPositionTablet:s.objectPositionTablet}),zo(Cx,{color:s.tintColor,opacity:s.tintOpacity})]})})]})}import{jsx as sn,Fragment as Cle,jsxs as vle}from"react/jsx-runtime";import{useEffect as kle,useRef as Tle,useState as Ple}from"react";import{PlaySolidIcon as Ele}from"efficient-shell/icons/efficient-looks";function LH({youTubeId:e,ownPoster:o,background:t,editing:r}){let[a,n]=Ple("large");return kle(()=>n("large"),[e]),e?vle(Cle,{children:[!o&&a!=="none"&&sn($h,{src:a==="large"?r1(e):a1(e),alt:"",className:"absolute inset-0 z-[2] h-full w-full object-cover",onLoad:s=>{a==="large"&&s.currentTarget.naturalWidth<=120&&n("small")},onError:()=>n(a==="large"?"small":"none")},`${e}-${a}`),t&&!r&&sn("div",{className:"pointer-events-none absolute inset-0 z-[3] overflow-hidden [container-type:size]","aria-hidden":"true",children:sn("iframe",{src:Yy(e,"background"),title:"",tabIndex:-1,allow:"autoplay; encrypted-media; picture-in-picture",className:"absolute left-1/2 top-1/2 h-[max(100%,56.25cqw)] w-[max(100%,177.78cqh)] -translate-x-1/2 -translate-y-1/2 border-0"})})]}):null}function FH({youTubeId:e,fileSrc:o,fileAv1Src:t,fileSrcPhone:r,fileAv1SrcPhone:a,playing:n,onPlay:s,editing:i}){let l=Tle(null),d=Wd(l,!0,!0)==="phone";if(!e&&!o)return null;let f=hu({video:o,av1:t,videoPhone:r,av1Phone:a},d),u=mu(f.video,f.av1);return n&&!i?e?sn("iframe",{src:Yy(e,"click"),title:qy,allow:"autoplay; encrypted-media; picture-in-picture; fullscreen",allowFullScreen:!0,className:"absolute inset-0 z-[6] h-full w-full border-0 bg-overlay-scrim"}):sn("video",{ref:p=>{l.current=p},...u.length===1?{src:u[0].src}:{},controls:!0,autoPlay:!0,playsInline:!0,className:"absolute inset-0 z-[6] h-full w-full bg-overlay-scrim object-contain",children:u.length>1&&u.map(p=>sn("source",{src:p.src,type:p.type},p.src))},f.video):sn("button",{ref:p=>{l.current=p},type:"button","aria-label":qy,onClick:i?void 0:s,className:`absolute left-1/2 top-1/2 z-[4] grid h-16 w-16 -translate-x-1/2 -translate-y-1/2 place-items-center rounded-full bg-btn text-btn-ink shadow-lg transition-transform motion-reduce:transition-none ${i?"pointer-events-none":"cursor-pointer hover:scale-105"}`,children:sn(Ele,{size:28})})}function BH(e,o){if(!e)return[];let t=`[${o}]`;return Array.from(e.querySelectorAll(t)).filter(r=>{let a=r.parentElement?.closest(t);return!a||a===e||!e.contains(a)})}var NH=["top","middle","bottom"],DH=["left","center","right"],MH="bottom",HH="left",_le={top:"Top",middle:"Middle",bottom:"Bottom"},Ole={left:"Left",center:"Center",right:"Right"},kze="Up and down",Tze="Sideways",Ale={top:"flex-start",middle:"center",bottom:"flex-end"},Rle={left:"flex-start",center:"center",right:"flex-end"},Lle="--sf-hero-phone-y",Fle="--sf-hero-phone-x";function Ble(e){return NH.includes(e)?e:MH}function Nle(e){return DH.includes(e)?e:HH}function WH(e,o){let t=Ble(e),r=Nle(o),a={};return t!==MH&&(a[Lle]=Ale[t]),r!==HH&&(a[Fle]=Rle[r]),a}function Pze(){return NH.map(e=>({label:_le[e],value:e}))}function Eze(){return DH.map(e=>({label:Ole[e],value:e}))}import{hexToRgb as Dle}from"efficient-shell/format";var Mle=!0;var Hle=[[0,".5"],[30,".1"],[60,".1"],[100,".85"]];function $H(e){let o=Dle(e);return o?`${o.r},${o.g},${o.b}`:null}function UH(e){return e==null?Mle:e!==!1}function zH(e){let o=(e?$H(e):null)??$H(hr);return`linear-gradient(180deg, ${Hle.map(([t,r])=>`rgba(${o},${r}) ${t}%`).join(", ")})`}import{hexToRgb as GH}from"efficient-shell/format";var jH="bottom";var Wle=[{label:"Bottom",value:"bottom",cell:"bottom"},{label:"Top",value:"top",cell:"top"},{label:"Left",value:"left",cell:"left"},{label:"Right",value:"right",cell:"right"}],$le={bottom:180,top:0,left:270,right:90},Ule=[[.55,0],[.15,18],[null,35],[null,55],[.85,100]],zle=[[null,33],[.6,67],[.94,100]];function Gle(e,o){let{r:t,g:r,b:a}=GH(e)??GH(hr);return`rgba(${t},${r},${a},${o})`}function KH(e){return xo(Wle,jH,e)}function VH(e=hr,o=jH){let t=KH(o),r=(t==="top"||t==="bottom"?Ule:zle).map(([a,n])=>`${a===null?"transparent":Gle(e,a)} ${n}%`);return`linear-gradient(${$le[t]}deg, ${r.join(", ")})`}function YH(e,o){let t=be(e.overlayColor),r=be(e.overlayPosition),a=be(o)??hr;return!t&&!r?{own:!1,color:a,position:null}:{own:!0,color:t??a,position:KH(r)}}var qle=jle({});function eGe({name:e,process:o,mediaType:t=Rc.HeroSlide,mediaSrc:r,videoSpeed:a,poster:n,mediaAv1:s,mediaSrcPhone:i,mediaAv1Phone:l,posterPhone:d,objectPosition:f,objectPositionPhone:u,objectPositionTablet:p,tintColor:m=hr,tintOpacity:h=0,groups:I,editing:w=!1,themeClassName:S,themeStyle:v,overlayColor:b,overlayPosition:y,mediaLayout:k,mediaLayoutPhone:L,mediaImage2:O,objectPosition2:D,objectPosition2Phone:T,objectPosition2Tablet:F,tintColor2:C=hr,tintOpacity2:R=0,videoSource:P,youtubeUrl:_,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:rt,reelHeld:Yo,shownSlide:qo,ratioMin:yo}=Kle(qle),No=Bd(),Eo=Z&&No==="first",ue=Yle(null),[no,z]=XH(qo===void 0?void 0:!1);Vle(()=>{let vn=ue.current;z(qo===void 0||!vn?void 0:BH(vn.closest(".hero-track"),"data-slide-name")[qo]===vn)});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)}:{},at=typeof a=="number"?a/100:1,{fromYouTube:Xe,onClick:Do,youTubeId:Fr,backgroundFile:ft,desktopLayout:VI,phoneLayout:dc,twoPictures:ti}=PH({isVideo:le,videoSource:P,videoPlayback:W,youtubeUrl:_,mediaLayout:k,mediaLayoutPhone:L}),[ri,ta]=XH(!1);ri&&Yo===!1&&ta(!1);let Fa=!ri,wn=YH({overlayColor:b,overlayPosition:y},Oe),fc=le?null:rf(G,"image"),Cn=le?null:af(G,"image"),hp=OH(G),pc=qt(wx,{treatment:le?{}:El(G,"image"),children:qt(Qd,{videoSrc:ft?Ce:void 0,videoAv1Src:ft?mo.av1:void 0,videoSrcPhone:ft?mo.phone:void 0,videoAv1SrcPhone:ft?mo.av1Phone:void 0,posterSrc:bo,posterSrcPhone:mo.poster,showVideo:ft,playbackRate:at,objectPosition:f,objectPositionPhone:le?void 0:u,objectPositionTablet:le?void 0:p,quiet:_e,slideShown:no,laterSlide:Z,laterOfLead:Eo})}),xp=qH("section",{ref:ue,className:Jo(`${yo?"relative min-h-full w-full overflow-clip":"relative h-full w-full overflow-hidden"}${S?` ${S}`:""}`,V.className),...V.attrs,style:v,"data-slide-name":e??"","data-slide-process":o??"","data-slide-media":ft&&Ce?"video":"still",...hp.hostAttrs,children:[qt(rx,{sheet:hp.sheet}),qt(AH,{partMotion:G,editing:w,children:ti?qt(RH,{laterSlide:Z,desktopLayout:VI,phoneLayout:dc,editing:w,partMotion:G,first:{src:r,objectPosition:f,objectPositionPhone:u,objectPositionTablet:p,tintColor:m,tintOpacity:h},second:{src:O,objectPosition:D,objectPositionPhone:T,objectPositionTablet:F,tintColor:C,tintOpacity:R}}):Xe||fc||Cn?qH(vx,{part:le?"media":"image",editing:w,entrance:fc,scroll:Cn,origins:Sx({objectPosition:f,objectPositionTablet:p,objectPositionPhone:u}),className:"absolute inset-0 z-[1]",children:[pc,Xe&&qt(LH,{youTubeId:Fr,ownPoster:!!bo,background:!Do,editing:w})]}):pc}),Do&&qt(FH,{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:ri,onPlay:()=>{ta(!0),rt?.()},editing:w}),Fa&&!ti&&qt(Cx,{color:m,opacity:h,passClicks:!1}),Fa&&UH(oe)&&qt("div",{className:"absolute inset-0 z-[2]",style:{background:wn.own?VH(wn.color,wn.position??void 0):zH(wn.color),...ve!==void 0?{opacity:ve/100}:null}}),Fa&&qt("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:{...V_,...WH(Ae,Re)},children:I&&qt(I,{className:"sf-hero-group-zone",minEmptyHeight:160})})]});return V.scope(Eo?qt(Wh,{children:xp}):xp)}var ZH=Array.from({length:3},(e,o)=>({name:`Slide ${o+1}`,process:"Category",mediaType:"image",mediaVideo:"",poster:""}));import{newNodeId as t4}from"efficient-easel/draw";import{isNodeList as Zle}from"efficient-easel/data";var _v=3,Ov=()=>({type:Y,props:{direction:"column"},slots:{[De]:[{type:"ImageBlock"},{type:Y,props:{direction:"column"},slots:{[De]:[{type:"Text",props:Da()},{type:"Text"}]}}]}}),JH=()=>Array.from({length:_v},Ov);var QH=["","","","","",""],e4="#ticker",nf="strip",Av={sectionAccent:Hr,line:!1};function Xle(e){return(Array.isArray(e.tickerItems)?e.tickerItems:[]).map(o=>typeof o?.text=="string"?o.text:"").filter(o=>o.trim()!=="")}function Rv(e){return Xle(e).length>0}function iGe(e){return e.showTicker!==!1&&Rv(e)}var r4=(e,o)=>({type:e.type,props:{...o?.(e.type)??{},...Object.fromEntries(Object.entries(e.props).map(([t,r])=>[t,Zle(r)?r.map(a=>r4(a,o)):r]))}}),Jle=e=>{let[o]=Nr([Ov()],a=>t4(a)),{id:t,...r}=r4(o,e).props;return r},Xt={Hero:{slot:"slides",childType:"HeroSlide",addLabel:"Add slide",slider:!0,seeds:()=>ZH.map(e=>({...e}))},HeroSlide:{slot:"groups",childType:"HeroGroup",addLabel:`Add ${hc.toLowerCase()}`,seeds:()=>[],addBlocked:Ny,notice:Dy},HeroSingle:{slot:"boxes",childType:"HeroGroup",addLabel:`Add ${hc.toLowerCase()}`,seeds:()=>[],addBlocked:Ny,notice:Dy},ProcessSteps:{slot:mc,childType:Y,addLabel:`Add ${hc.toLowerCase()}`,seeds:e=>Array.from({length:_v},()=>Jle(e)),skipSeed:e=>Array.isArray(e.steps)&&e.steps.length>0}},o4=1,Qle={slot:nf,childType:Y,addLabel:`Add ${hc.toLowerCase()}`,seeds:()=>[],addBlocked:e=>e.length>=o4?"This Hero has its Scrolling Bar already. Delete it to add another.":null,notice:e=>e.length>o4?`This Hero holds ${e.length} Scrolling Bars. Keep one and delete the others.`:null},a4={Hero:{[nf]:Qle}};function yGe(e){for(let[o,t]of Object.entries(e)){if(He(Xt,o)&&$(Xt,o)!==t)throw new Error(`lib/document/slot-specs: "${o}" already has a slot spec`);Xt[o]=t}}function bGe(e,o){let t=$(Xt,e);return t?{slot:t.slot,children:t.seeds(o).map(r=>({type:t.childType,props:{id:t4(t.childType),...r}}))}:null}var oce=["GalleryB"];function n4(e){let o=e.content;if(!Array.isArray(o))return e;let t=!1,r=o.map(s=>{let i=s?.type;if(!i||!oce.includes(i))return s;let l=$(Xt,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(ece(r)),n=a.size?r.filter((s,i)=>!a.has(i)):r;return a.size&&(t=!0),t?{...e,content:n}:e}var tce={"Logos.logosPerRow":"columns","HeroSlide.tintOpacity":"overlay","Split.textBgTint":"overlay"},rce={"Footprint.source":"typed"};function s4(e){let o=e.props,t=!1;if(e.type&&o)for(let[r,a]of Object.entries(tce)){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(rce)){let n=r.indexOf("."),s=r.slice(n+1);if(r.slice(0,n)!==e.type||!(s in o))continue;let i=typeof o[s]=="string"?o[s].trim():"",l={...o};delete l[s],F0(i)&&i!==a&&!eo(l)&&(l[_o]=i),o=l,t=!0}if(e.type&&o){let r=Dp(e.type,o);r!==o&&(o=r,t=!0)}if(o){let r=ho({props:o},a=>so(a,s4));r.props!==o&&(o=r.props,t=!0)}return t?{...e,props:o}:e}function i4(e){return bp(e,o=>so(o,s4))}import{readHidable as nce}from"efficient-easel/draw";function kx(e,o,t){let r=[];return e.forEach((a,n)=>{let s=o(a),i=r.find(l=>l.key===s);i||(i={key:s,name:t(a),items:[]},r.push(i)),i.items.push({item:a,index:n})}),r}function OGe(e){return ace[sf(e)]}var ace={1:"grid-cols-1",2:"grid-cols-2",3:"grid-cols-3",4:"grid-cols-4"};function sf(e){if(e<=1)return 1;if(e<=4)return e;let o=t=>e%t||t;return o(4)>=o(3)?4:3}var Jr=Y,Qr=De;function _s(e){if(e.theme)return vo(e.theme);let o=e.site?.themePresets;return o?vo({selected:e.site?.selectedPreset??0,themes:[...o]}):void 0}function sce(e,o){return o===0?`${e}~box`:`${e}~box-${o+1}`}var c4=new Set(["id"]),ln={},lf=[],ice={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"]},lce=Object.keys(ice),Os=["Breadcrumb","DocBody","Form","SubmitBuild","Footprint","FAQ","ContactLocations","ProcessSteps",...lce,"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(ln,o)&&$(ln,o)!==t)throw new Error(`lib/sections/section-to-box: "${o}" already has a row`);ln[o]=t}}function cn(e){return $(ln,e)}function cce(e){return He(ln,e)&&lf.includes(e)}function d4(e,o=Os){return He(ln,e)&&(o.includes(e)||cce(e))}function $Ge(e){let o=$(fr,e);if(!o)throw new Error(`lib/sections/section-to-box: "${e}" has no head row in SPLITTABLE_SECTIONS`);let t=[{kind:"text",key:o.num,role:"eyebrow"},{kind:"text",key:o.title,role:"heading"}];return o.description&&t.push({kind:"text",key:o.description,role:"body"}),o.headRows.includes("linkText")&&o.headRows.includes("linkHref")&&t.push({kind:"button",key:"linkText",href:"linkHref"}),t}var Lv=e=>nce(e),ro=e=>Lv(e).text.trim()!=="";function dce(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 fce=e=>e==="heading"?Da():e==="eyebrow"?la():{};function pce(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 uce(e,o){if(e===void 0)return{};if(typeof e=="string")return{variant:e};let t=o[e.key];return{variant:(typeof t=="string"?$(e.map,t):void 0)??e.fallback}}function l4(e,o,t,r,a={}){let n={...o};for(let s of e){let[i,l,d]=typeof s=="string"?[s,s,void 0]:s;if(t[i]===void 0)continue;let f=d?d(t[i],t,a):t[i];f===void 0?delete n[l]:n[l]=f,r(i,l,f===void 0)}return n}function mce(e){let o=new Set([...c4,"headPlacement","_partStyles",...Object.keys(e.drop??{}),...Object.keys(e.reads??{})]),t=a=>{for(let n of a??[])o.add(typeof n=="string"?n:n[0])},r=a=>{for(let n of a)switch(n.kind){case"text":case"image":o.add(n.key),n.kind==="image"&&n.alt&&o.add(n.alt);break;case"button":o.add(n.key),o.add(n.href),typeof n.variant=="object"&&o.add(n.variant.key);break;case"list":o.add(n.key);break;case"group":case"block":t(n.box),r(n.parts??[]);break;case"core":if(n.keep!=="rest"&&n.keep.forEach(s=>o.add(s)),Object.keys(n.rename??{}).forEach(s=>o.add(s)),n.derive?.reads.forEach(s=>o.add(s)),typeof n.slots!="function")for(let s of Object.values(n.slots??{}))for(let i of s)"kind"in i&&o.add(i.key);break}};for(let a of[e,...e.also??[]])t(a.box),r(a.parts);return o}var Fv=e=>Bp(e.headPlacement)==="own-box";function hce(e){return Fv(e)?"its head sits in a Box of its own above it (own-box): the row draws the head inline":void 0}function xce(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 gce(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 Ice(e,o,t){if(!t.press)for(let r of gce(e)){let a=xce(o,r);if(a!==void 0)return a}}function As(e,o,t={}){let r=e.props,a=(o.ownBoxConverts?void 0:hce(r))??Ice(o,r,t)??o.skip?.(r);if(a!==void 0)return{node:e,nodes:[e],carried:[],dropped:[],siteWrites:[],skipped:a};let n=String(r.id??e.type),s=[],i=[],l=new Set,d=(y,k)=>{s.push({key:y,home:k}),l.add(y)},f=r._partStyles??{},u=mce(o),p=0,m=(y,k)=>({type:y,props:{...k,id:`${n}~${y}-${++p}`}}),h=(y,k,L,O,D,T,F)=>{if(D){for(let R of y??[]){let P=typeof R=="string"?R:R[0];L[P]!==void 0&&F(P,`nothing \u2014 the ${O} has no parts, so it is not drawn`)}return}let C=typeof k=="function"?k(r,t):k??{};return l4(y??[],C,L,(R,P,_)=>F(R,_?`nothing \u2014 the old value draws nothing (${O}: no ${P})`:`${T}${O}: ${P}`),t)},I=y=>Nr(y,k=>`${n}~${k}-${++p}`),w=(y,k,L)=>{let O=y.of?y.of(k):Array.isArray(k[y.key])?k[y.key]:[],D=typeof y.props=="function"?y.props(r,t):y.props??{},T=O.map((_,W)=>{let G=_??{},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 _=y.groups;return L(y.key,O.length?`one Box per item (${O.length}), in a Box per group`:"nothing \u2014 the list is empty"),kx(O.map(W=>W??{}),_.of,_.of).map((W,G)=>{let Z=W.items.map(_e=>_e.item),V=_.parts?S(_.parts,_.head?.(Z,r)??{},!1,`group ${G+1}: `):[],de=W.items.map(_e=>T[_e.index]),ve=_.perRow?.(Z.length,r),oe=Number.isInteger(ve)&&ve>=1?ve:1,Oe=[];if(_.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:`${_.name} ${G+1}`,..._.props??{},[Qr]:[...V,m(Jr,{name:`${_.itemsName} ${G+1}`,..._.itemsProps?.(Z.length,r)??{},[Qr]:Oe.length?Oe.map((_e,Ae)=>m(Jr,{name:`${_.rowName??`${_.itemsName} row`} ${Ae+1}`,..._.rowProps??{},[Qr]:_e})):de.flat()})]})})}let F=y.perRow?.(r),C=y.perRow?Number.isInteger(F)&&F>=1?F:1:0;if(L(y.key,(O.length?y.flat?`each item's parts (${O.length} items), in order`:`one Box per item (${O.length}), its parts inside`:"nothing \u2014 the list is empty")+(C&&O.length?`, in rows of ${C}`:"")),!C)return T.flat();let R=typeof y.rowProps=="function"?y.rowProps(r,t):y.rowProps??{},P=[];for(let _=0;_*C<T.length;_++){let W=T.slice(_*C,(_+1)*C).flat(),G=y.rowFiller?C-T.slice(_*C,(_+1)*C).length:0;P.push(m(Jr,{name:`${y.rowName??`${y.name} row`} ${_+1}`,...R,[Qr]:[...W,...Array.from({length:G},(Z,V)=>m(Jr,{name:`Empty ${V+1}`,...y.rowFiller,[Qr]:[]}))]}))}return P},S=(y,k,L,O)=>{let D=[],T=(C,R)=>L?d(C,R):void 0,F=C=>L?f[C]:void 0;for(let C of y)if(!(C.when&&!C.when(r,L?void 0:k)))switch(C.kind){case"text":{let R=Lv(k[C.key]);if(!R.text.trim()&&!(L&&t.press&&o.pressKeepsEmpty?.includes(C.key))){T(C.key,"nothing \u2014 empty words draw nothing, so no block");break}let P=fce(C.role??"body"),{_partStyles:_,...W}=P,G=pce(P,C.styleFrom?{...C.style,...C.styleFrom(r,t)}:C.style,F(C.key),C.props?.align);D.push(m("Text",{text:C.mark==="accentLead"?dce(R.text):C.mark==="accentItalic"?gc(R.text):R.text,...W,...C.props??{},...G,...R.hidden?{_hidden:!0}:{}})),T(C.key,`${O}Text block: its words${R.hidden?", hidden":""}`);break}case"button":{let R=Lv(k[C.key]);if(!R.text.trim()){T(C.key,"nothing \u2014 no words, no button"),T(C.href,"nothing \u2014 no button to link"),typeof C.variant=="object"&&T(C.variant.key,"nothing \u2014 no button to style");break}let P=typeof k[C.href]=="string"&&k[C.href]?k[C.href]:"#",_={...C.style??{},...F(C.key)??{}};D.push(m("ButtonBlock",{label:R.text,href:P,...typeof C.props=="function"?C.props(k,t):C.props??{},...uce(C.variant,k),...Object.keys(_).length?{_partStyles:{label:_}}:{},...R.hidden?{_hidden:!0}:{}})),T(C.key,`${O}Button block: its words`),T(C.href,`${O}Button block: its link`),typeof C.variant=="object"&&T(C.variant.key,`${O}Button block: its Style`);break}case"image":{let R=k[C.key];if(typeof R!="string"||!R){T(C.key,"nothing \u2014 no picture, no block"),C.alt&&T(C.alt,"nothing \u2014 no picture to describe");break}let P=C.alt&&typeof k[C.alt]=="string"?k[C.alt]:"";D.push(m("ImageBlock",{src:R,alt:P,...C.props??{}})),T(C.key,`${O}Image block: its picture`),C.alt&&T(C.alt,`${O}Image block: its alt text`);break}case"list":{D.push(...w(C,k,T));break}case"group":{let R=S(C.parts,k,L,O),P=h(C.box,C.props,k,`${C.name} Box`,!R.length&&!C.keepEmpty,O,T);P&&D.push(m(Jr,{name:C.name,...P,[Qr]:R}));break}case"block":{let R=C.parts?S(C.parts,k,L,O):[],P=h(C.box,C.props,k,`${C.type} block`,!!C.parts&&!R.length&&!C.keepEmpty,O,T);P&&D.push(m(C.type,{...P,...C.slot?{[C.slot]:R}:{}}));break}case"core":{let R=C.as??e.type,P={...C.headless?{}:{headPlacement:"own-box"},...C.props??{}},_=C.keep==="rest"?Object.keys(k).filter(G=>!u.has(G)&&!(G in P)):C.keep;for(let G of _)k[G]!==void 0&&(P[G]=k[G],T(G,`the ${R} block inside the Box`));if(C.keep==="rest"){for(let Z of Object.keys(C.props??{}))k[Z]!==void 0&&!u.has(Z)&&T(Z,`nothing \u2014 the ${R} block inside the Box has the row's own value`);k.headPlacement!==void 0&&T("headPlacement",`the ${R} 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(C.rename??{}))k[G]!==void 0&&(P[Z]=k[G],T(G,`the ${R} block inside the Box: ${Z}`));if(C.derive){Object.assign(P,C.derive.props(k,t));for(let G of C.derive.reads)k[G]!==void 0&&T(G,`the ${R} block inside the Box`)}let W=typeof C.slots=="function"?C.slots(k,t):C.slots??{};for(let[G,Z]of Object.entries(W))P[G]=Z.flatMap(V=>"kind"in V?w(V,k,T):I([V]));D.push(m(R,P));break}}return D},v=(y,k)=>{let L=k===0?"Box":`${y.name} Box`,O=S(y.parts,r,!0,k===0?"":`${L}: `),D=typeof y.boxProps=="function"?y.boxProps(r,t):y.boxProps??{},T=l4(y.box??[],D,r,(F,C,R)=>d(F,R?`nothing \u2014 the old value draws nothing (${L}: no ${C})`:`${L}: ${C}`),t);return{type:Jr,props:{name:y.name,...T,[Qr]:O,id:sce(n,k)}}},b=[o,...o.also??[]].map(v);r._partStyles!==void 0&&d("_partStyles","each old part's style moved to its new part");for(let[y,k]of Object.entries(o.reads??{}))r[y]!==void 0&&d(y,k);for(let[y,k]of Object.entries(o.drop??{}))y in r&&(i.push({key:y,why:k}),l.add(y));for(let y of Object.keys(r))c4.has(y)||l.has(y)||i.push({key:y,why:"not in the row \u2014 not carried"});return{node:b[0],nodes:b,carried:s,dropped:i,siteWrites:[...o.site?.(e,t)??[]]}}function f4(e,o=lf,t={}){let r=e.content;if(!Array.isArray(r))return e;let a=!1,n=r.flatMap(s=>{let i=s&&typeof s.type=="string"&&o.includes(s.type)?$(ln,s.type):void 0;if(!i)return[s];let l=As(s,i,t);return l.skipped!==void 0?[s]:(a=!0,l.nodes)});return a?{...e,content:n}:e}function p4(e,o=lf,t={}){if(!Array.isArray(e))return[];let r=[];return e.forEach((a,n)=>{let s=a&&typeof a.type=="string"&&o.includes(a.type)?$(ln,a.type):void 0;if(!s)return;let i=As(a,s,t);i.skipped===void 0&&r.push({index:n,node:i.node,nodes:i.nodes})}),r}import{BLOCK_FIXED_WIDTH as yce,BLOCK_SIZE_KEYS as bce,parseBlockWidthFit as Px,phoneKey as u4,parseTextFit as Tx,tabletKey as m4,viewKeyAt as h4}from"efficient-easel/draw";import{sideLengthAt as Sce}from"efficient-easel/screen/lib/content/length-units";var wce="sf-block-size",cf=["width","minWidth","maxWidth"],Ex=e=>`${e}Unit`,dn=e=>typeof e=="number"&&Number.isFinite(e)&&e>=0?e:void 0,Cce={desktop:{fill:"view-wide:w-full view-wide:[.flex-row>&]:grow",fixed:"view-wide:w-[min(var(--sf-bw),100%)] view-wide:basis-auto! view-wide:grow-0! view-wide:shrink-0"},phone:{fill:"max-view-wide:w-full",fixed:"max-view-wide:w-[min(var(--sf-bw-p),100%)] max-view-wide:basis-auto! max-view-wide:grow-0! max-view-wide:shrink-0"}},y4={desktop:{fill:"view-desktop:w-full view-desktop:[.flex-row>&]:grow",fixed:"view-desktop:w-[min(var(--sf-bw),100%)] view-desktop:basis-auto! view-desktop:grow-0! view-desktop:shrink-0"},tablet:{fill:"view-wide:max-view-desktop:w-full view-wide:max-view-desktop:[.flex-row>&]:grow",fixed:"view-wide:max-view-desktop:w-[min(var(--sf-bw-t),100%)] view-wide:max-view-desktop:basis-auto! view-wide:max-view-desktop:grow-0! view-wide:max-view-desktop:shrink-0"},phone:{fill:"max-view-wide:w-full",fixed:"max-view-wide:w-[min(var(--sf-bw-p),100%)] max-view-wide:basis-auto! max-view-wide:grow-0! max-view-wide:shrink-0"}},vce={desktop:y4.desktop,tablet:{fill:"view-tablet:max-view-desktop:w-full view-wide:max-view-desktop:[.flex-row>&]:grow",fixed:"view-tablet:max-view-desktop:w-[min(var(--sf-bw-t),100%)] view-tablet:max-view-desktop:basis-auto! view-tablet:max-view-desktop:grow-0! view-tablet:max-view-desktop:shrink-0"},phone:{fill:"max-view-tablet:w-full",fixed:"max-view-tablet:w-[min(var(--sf-bw-p),100%)] max-view-tablet:basis-auto! max-view-tablet:grow-0! max-view-tablet:shrink-0"}},kce={two:{desktop:"view-wide:[.flex-row>*>&]:grow"},three:{desktop:"view-desktop:[.flex-row>*>&]:grow",tablet:"view-wide:max-view-desktop:[.flex-row>*>&]:grow"}},b4="max-view-wide:grow!";function S4(e){return _x(e).mode.phone==="fill"}var Tce={desktop:"--sf-bw",tablet:"--sf-bw-t",phone:"--sf-bw-p"},Pce={fill:"data-sf-width-fill",fixed:"data-sf-width-fixed"},Ece="data-sf-min-width",x4={two:{desktop:"wide",phone:My.phone},three:My},_ce={minWidth:{desktop:["--sf-bmin","view-wide:min-w-[var(--sf-bmin)]!"],phone:["--sf-bmin-p","max-view-wide:min-w-[var(--sf-bmin-p)]!"]},maxWidth:{desktop:["--sf-bmax","view-wide:max-w-[var(--sf-bmax)]"],phone:["--sf-bmax-p","max-view-wide:max-w-[var(--sf-bmax-p)]"]}},Bv={minWidth:{desktop:["--sf-bmin","view-desktop:min-w-[var(--sf-bmin)]!"],tablet:["--sf-bmin-t","view-wide:max-view-desktop:min-w-[var(--sf-bmin-t)]!"],phone:["--sf-bmin-p","max-view-wide:min-w-[var(--sf-bmin-p)]!"]},maxWidth:{desktop:["--sf-bmax","view-desktop:max-w-[var(--sf-bmax)]"],tablet:["--sf-bmax-t","view-wide:max-view-desktop:max-w-[var(--sf-bmax-t)]"],phone:["--sf-bmax-p","max-view-wide:max-w-[var(--sf-bmax-p)]"]}},Oce={minWidth:{desktop:Bv.minWidth.desktop,tablet:["--sf-bmin-t","view-tablet:max-view-desktop:min-w-[var(--sf-bmin-t)]!"],phone:["--sf-bmin-p","max-view-tablet:min-w-[var(--sf-bmin-p)]!"]},maxWidth:{desktop:Bv.maxWidth.desktop,tablet:["--sf-bmax-t","view-tablet:max-view-desktop:max-w-[var(--sf-bmax-t)]"],phone:["--sf-bmax-p","max-view-tablet:max-w-[var(--sf-bmax-p)]"]}},Ace=["widthFit",...cf],g4={desktop:"view-wide:whitespace-nowrap view-wide:[&_*]:whitespace-nowrap!",phone:"max-view-wide:whitespace-nowrap max-view-wide:[&_*]:whitespace-nowrap!"},Nv={desktop:"view-desktop:whitespace-nowrap view-desktop:[&_*]:whitespace-nowrap!",tablet:"view-wide:max-view-desktop:whitespace-nowrap view-wide:max-view-desktop:[&_*]:whitespace-nowrap!",phone:"max-view-wide:whitespace-nowrap max-view-wide:[&_*]:whitespace-nowrap!"},Rce={desktop:Nv.desktop,tablet:"view-tablet:max-view-desktop:whitespace-nowrap view-tablet:max-view-desktop:[&_*]:whitespace-nowrap!",phone:"max-view-tablet:whitespace-nowrap max-view-tablet:[&_*]:whitespace-nowrap!"},w4={desktop:"view-wide:min-w-0 view-wide:[&_*]:overflow-hidden view-wide:[&_*]:text-ellipsis",phone:"max-view-wide:min-w-0 max-view-wide:[&_*]:overflow-hidden max-view-wide:[&_*]:text-ellipsis"},Lce={desktop:"view-desktop:min-w-0 view-desktop:[&_*]:overflow-hidden view-desktop:[&_*]:text-ellipsis",tablet:"view-wide:max-view-desktop:min-w-0 view-wide:max-view-desktop:[&_*]:overflow-hidden view-wide:max-view-desktop:[&_*]:text-ellipsis",phone:w4.phone},C4={desktop:"view-wide:max-w-full",phone:"max-view-wide:max-w-full"},I4={desktop:"view-desktop:max-w-full",tablet:"view-wide:max-view-desktop:max-w-full",phone:C4.phone};function v4(e){let o=_x(e);return o.sides.filter(t=>o.mode[t]==="fill").map(t=>kce[o.three?"three":"two"][t]).filter(Boolean).join(" ")}function k4(e){let{three:o,sides:t,mode:r,lengthPerSide:a}=_x(e),n=d=>o?x4.three[d]:x4.two[d],s={fill:[],fixed:[],min:[]},i=a("minWidth");for(let d of t){let f=r[d];(f==="fill"||f==="fixed")&&s[f].push(n(d)),i[d]!==void 0&&s.min.push(n(d))}let l={};for(let d of["fill","fixed"])s[d].length&&(l[Pce[d]]=s[d].join(" "));return s.min.length&&(l[Ece]=s.min.join(" ")),l}function _x(e){let o=Ace.some(a=>{let n=e[a]?.tablet;return a==="widthFit"?Px(n)!==void 0:dn(n)!==void 0}),t=o?["desktop","tablet","phone"]:["desktop","phone"],r=(a,n)=>{let s=a(n?.desktop),i=o?a(n?.tablet)??s:s;return{desktop:s,tablet:i,phone:a(n?.phone)??i}};return{three:o,sides:t,perSide:r,lengthPerSide:a=>{let n=Ex(a),s={};for(let l of t)s[h4(a,da(l))]=dn(e[a]?.[l]),s[h4(n,da(l))]=e.units?.[a]?.[l];let i=l=>Sce(s,{length:a},n,da(l),"length")??void 0;return{desktop:i("desktop"),tablet:i("tablet"),phone:i("phone")}},mode:r(Px,e.widthFit)}}function Dv(e,{atSectionLine:o=!1}={}){let t=["desktop","tablet","phone"].some(R=>Tx(e.textFit?.[R])==="ellipsis"),r=o&&!t,a=r?vce:y4,n=r?Oce:Bv,s=r?Rce:Nv,i=[],l={},d={},{three:f,sides:u,lengthPerSide:p,mode:m}=_x(e),h=p("width");for(let R of u){let P=m[R];!P||P==="fit"||(i.push(f?a[R][P]:Cce[R][P]),P==="fixed"&&(l[Tce[R]]=Me(h[R]?.value??yce.fallback,h[R]?.unit)))}for(let R of cf.filter(P=>P!=="width")){let P=p(R);for(let _ of u){let W=P[_];if(W===void 0)continue;let[G,Z]=f?n[R][_]:_ce[R][_];l[G]=Me(W.value,W.unit),i.push(Z)}}let I=Tx(e.textFit?.desktop),w=Tx(e.textFit?.phone),S=R=>{let P=dn(e.minFont?.[R]);return P===void 0?void 0:e.units?.minFont?.[R]==="vw"?`${P}vw`:String(P)},v=S("desktop"),b=S("phone"),y=Tx(e.textFit?.tablet),k=y!==I||w!==void 0?y:void 0,L=S("tablet"),O=L!==v||b!==void 0?L:void 0,D=dn(e.maxWidth?.desktop),T=dn(e.maxWidth?.tablet)??D,F={desktop:D!==void 0,tablet:T!==void 0,phone:(dn(e.maxWidth?.phone)??T)!==void 0},C=(R,P,_)=>{if(P!=="line"&&P!=="ellipsis")return;let W=R==="tablet"?void 0:R,G=(Z,V)=>_||!W?Z[R]:V[W];if(P==="line"){i.push(G(s,g4));return}if(i.push(G(Nv,g4)),i.push(G(Lce,w4)),f&&!_&&R==="desktop")for(let Z of["desktop","tablet"])F[Z]||i.push(I4[Z]);else F[R]||i.push(G(I4,C4))};return k?(C("desktop",I,!0),C("tablet",k,!0),C("phone",w??k,!0)):(C("desktop",I,!1),C("phone",w??I,!1)),I&&(d[va.fit]=I),k&&(d[va.fitTablet]=k),w&&(d[va.fitPhone]=w),v!==void 0&&(d[va.min]=v),O!==void 0&&(d[va.minTablet]=O),b!==void 0&&(d[va.minPhone]=b),!r&&(k||O!==void 0)&&(d[va.edge]=""),i.length===0&&Object.keys(d).length===0?null:{className:[wce,...i].join(" "),style:l,attrs:d}}function YGe(e){if(dn(e.maxWidth?.desktop)!==void 0)return!0;let o=Px(e.widthFit?.desktop);return o==="fill"||o==="fixed"}function T4(e){return["desktop","tablet","phone"].some(o=>{let t=Px(e.widthFit?.[o]);return t==="fixed"||t==="fill"||dn(e.minWidth?.[o])!==void 0})}function Ox(e){let o={};for(let t of bce){let r=e[t],a=e[m4(t)],n=e[u4(t)];(r!==void 0||a!==void 0||n!==void 0)&&(o[t]={desktop:r,tablet:a,phone:n});let s=Ex(t),i={desktop:e[s],tablet:e[m4(s)],phone:e[u4(s)]};(i.desktop!==void 0||i.tablet!==void 0||i.phone!==void 0)&&((o.units??={})[t]=i)}return o}var P4={label:"Button",defaultProps:{label:"",href:"#",variant:"primary",align:"left",contained:!0}};import{parseHexColor as Fce}from"efficient-shell/format";import{convertLength as Bce}from"efficient-easel/screen/lib/content/length-units";var ea=(e,o,t,r)=>o===t?e:Bce(e,o,t,r,{min:0,max:200,step:4}),Rs={textFit:"line",textFitPhone:"wrap"},Ls={...j,[kt]:""},{label:vje,href:kje,...Nce}=P4.defaultProps,Ro=Nce,Fs={buttonFillOpacity:0,buttonBorder:{width:0},buttonPaddingTop:0,buttonPaddingRight:0,buttonPaddingBottom:0,buttonPaddingLeft:0},Q={...xy,sectionAccent:0},Ol={sectionAccent:-1},re=[...Ga,"sectionHeightMode","sectionHeightValue","sectionHeightUnit","sectionHeightModeTablet","sectionHeightValueTablet","sectionHeightUnitTablet","sectionHeightModePhone","sectionHeightValuePhone","sectionHeightUnitPhone","sectionCorners","sectionCornerSides","sectionBorder","sectionBorderTablet","sectionBorderPhone","sectionAccent",Dc.unitKey,...VL,...$L,"anchor",Pc,...Ni,...tu,...qh,...ou(["widthFit",...cf,...cf.map(Ex)]),...Object.values(Fe)],_l="a section width key, ignored since efficient-web-builder 45 (an old key; a section's own width has new keys, lib/content/section-width), so dropping it changes nothing",ee={sectionSurface:"read by nothing in src/ (searched 2026-10-24): a retired theme key that draws nothing today, so dropping it changes nothing",widthMode:_l,fullWidth:_l,pageWidth:_l,backgroundWidth:_l,contentWidth:_l,contentMax:_l},se=Object.fromEntries(["sectionPaddingLeft","sectionPaddingRight","sectionPaddingLeftTablet","sectionPaddingRightTablet","sectionPaddingLeftPhone","sectionPaddingRightPhone"].map(e=>[e,"needs Box side padding outside its gutter: the old section added it outside its frame, a Box's side padding replaces the gutter. 0 live nodes store it (JJ's read-only export, 2026-10-24)"]));function ie(e,o){let t=q(e.sectionPaddingTop)??0,r=q(e.sectionPaddingBottom)??0,a=q(e.sectionPaddingTopTablet),n=q(e.sectionPaddingBottomTablet),s=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 Zt(e,o){let t={};for(let[a,n]of yS)e[a]!==void 0&&(t[n]=e[a]);let r=td(e,Il(o));return{...t,sectionPaddingTop:r.top,sectionPaddingBottom:r.bottom}}var fn=e=>[...yS.map(([o,t])=>[o,t,(r,a)=>Zt(a,e)[t]]),["sectionPaddingTop","sectionPaddingTop",(o,t)=>Zt(t,e).sectionPaddingTop],["sectionPaddingBottom","sectionPaddingBottom",(o,t)=>Zt(t,e).sectionPaddingBottom]],Dce={kind:"heading-case-upper",styles:["heading-1","heading-2","heading-3"]},Tje=e=>o=>ro(o.props[e])?[Dce]:[],Ie=(e,o)=>({kind:"text",key:e,role:"eyebrow",props:j,...o?{style:o}:{}}),Al=e=>({kind:"group",name:"Chip",props:{...N,...ia("main"),...Zo(6,14)},parts:[Ie(e,{color:"background",...U("label",12),weight:600,letterSpacing:.16})]}),E4=e=>e.background!=="transparent",Mce=(e,o)=>{let[t,r]=[e,o].map(a=>typeof a=="string"?a.trim():"");return t?r?`[${t} ]{color=text}${r}`:`[${t}]{color=text}`:r},df={align:"right",alignPhone:"left"},Hce=(e,o,t)=>{let r=a=>Mce(a[e],a[o]);return{kind:"block",type:"Text",when:(a,n)=>n!==void 0&&r(n)!=="",box:[[e,"text",(a,n)=>r(n)],[o,"text",(a,n)=>r(n)]],props:t}},ff=(e,o,t,r={})=>Hce(e,o,{...Ls,...df,...r,_partStyles:{text:{...pt,color:"labels",...t,case:pt.case,...df}}}),Rl=(e,o)=>typeof e=="number"&&Number.isInteger(e)&&e>=0?e:_s(o)?.selected??0,_4="var(--site-surface-2)",Ax=(e,o)=>_s(o)?.themes[Rl(e.sectionAccent??0,o)],St=(e,o)=>(t,r)=>{if(!o?.(t,r))return ia(e);let a=Ax(t,r)?.[e];return a?{fillColor:a}:{}},Rx=(e,o)=>pn(e,o)>=0,O4=e=>e.startsWith("#")&&Fce(e)!==null,Lx=(e,o,t)=>{let r=e?.trim();if(r&&O4(r))return{fillColor:r};let a=Pb(r);if(a)return ia(a);let n=r===_4?Ax(o,t):void 0;return n?{fillColor:Vp(n)}:{}},Fx=e=>{let o=e?.trim();return!o||o==="transparent"||o===Qo||Pb(o)||o===_4||O4(o)?void 0:"it paints a colour that no Box Fill can hold"},pn=(e,o)=>{let t=_s(o)?.themes;return t&&E4(e)?P_(t,Rl(e.sectionAccent,o)):-1},un=(e,o,t)=>{let r=pn(o,t);return r>=0?r:e},Ll=(e,o)=>{let t=_s(o)?.themes,r=t?E_(t,Rl(e,o)):-1;return r>=0?r:e},Bs=(e,o)=>{let t=pn(e,o);return t>=0?{sectionAccent:t}:{}},mn=(e,o)=>E4(e.props)&&pn(e.props,o)<0?[{kind:"band-preset",page:Rl(e.props.sectionAccent,o)}]:[],Fl=(e,{view:o="desktop",to:t="px",maxPx:r=1/0}={})=>{let{siteGutter:a,siteGutterUnit:n,siteGutterPhone:s,siteGutterPhoneUnit:i}=e.site??{},l=da(o),d=(u,p,m)=>{let h=Ee(p),I=Kp(u,h,"spacing",m);return I===null?null:ea(I,h,"px",l)},f=o==="desktop"?d(a,n,ct)??gm(a):d(s,i,gr)??Im(s)??ym(a,n);return ea(Math.min(r,f),"px",t,l)},pf=Object.fromEntries(["Top","Right","Bottom","Left","TopPhone","RightPhone","BottomPhone","LeftPhone"].map(e=>[`sectionPadding${e}`,0])),uf=e=>({top:0,right:0,bottom:0,left:0,...e}),Mv=(e,o,t,r=[])=>({kind:"group",name:e,keepEmpty:!0,props:(a,n)=>({...N,...pf,...St("surface")(a,n),...typeof t=="function"?t(a,n):t}),box:[[o,"bgImage"],uo.kind,uo.duration,uo.delay],parts:r});import{phoneKey as Jv,readHidable as Qv}from"efficient-easel/draw";import{isNodeList as ide,newId as lde}from"efficient-easel/data";function A4(e){return Math.min(4,Math.max(2,e??3))}var Oje={eyebrow:"Label",title:"Section *heading.*"},Wce=yp.Cards,R4={label:"Cards",fields:Wce,defaultProps:{eyebrow:"",title:"",items:[],columns:3}};var Lje={eyebrow:"Highlight",title:"Key *features.*"},Fje=()=>[{label:c("Feature label one")},{label:c("Feature label two")},{label:c("Feature label three")},{label:c("Feature label four")},{label:c("Feature label five")},{label:c("Feature label six")}],L4={label:"Key Features",defaultProps:{eyebrow:"",title:"",items:[],columns:3}};var Hv="cardPlace";function Dje(e){return e[Hv]==="top-line"?"top-line":""}var Mje="absolute left-5 top-0 z-10 -translate-y-1/2 bg-bg px-2",Hje="data-sf-top-line",$ce=new Set(["Cards",Oo]);function Wje(e){return typeof e=="string"&&$ce.has(e)}var Uce=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 $je(e,o,t){return!t||!o?.linesBetween||o.index!==0?e:Uce(e)?{...e,top:0}:e}var Uje="outsideFramedCard";var Bx={sectionBorder:{top:0,right:1,bottom:1,left:0},...ia("background")},zce={gap:0,gapPhone:0,sectionBorder:{top:1,right:0,bottom:0,left:1},shadow:!0},Ns=e=>({direction:"row",columns:e,columnsTablet:e,...zce}),F4=(e={})=>Ze(cx,{...j,tag:"p",[Hv]:"top-line"},e,!0),Bl=(e=Rn)=>{let o=ui(e);return{...o,props:{...Bx,...o.props},slots:{[De]:[...o.slots?.[De]??[],F4()]}}},Wv=(e=!1)=>{let o=mi(e);return{...o,props:{...Bx,...o.props}}},Gce={name:"name",time:"time",note:"note",price:"price"},jce={textStyle:"body-1",...U("body",16),weight:500,lineHeight:1.5},Kce={...pt,...U("label",12),letterSpacing:.18,lineHeight:1.5},Vce={textStyle:"body-1",...U("body",14),lineHeight:1.6},Yce={textStyle:"body-1",fontRole:"heading",...U("headingSmall",20),weight:500,color:"accent",lineHeight:1.5},qce={...U("label",11),letterSpacing:.25},Xce={gap:16,gapPhone:16,sectionBorder:{top:0,right:0,bottom:0,left:0},shadow:!1},Nx=e=>({direction:"row",columns:e,...Xce}),$v=[...new Set([...Object.keys(Ns(1)),...Object.keys(Nx(1))])],Uv=()=>{let e=Gce,o={tag:"p",widthFit:"fill"};return{type:Y,props:{...N,name:"Card",justify:"between",gap:16,gapPhone:16,...Zo(24),sectionBorder:{top:1,right:1,bottom:1,left:1},...ia("surface"),shadow:!0},slots:{[De]:[F4(qce),{type:Y,props:{...N,name:"Words",gap:8,gapPhone:8},slots:{[De]:[Ze(e.name,{...j,...o},jce),Ze(e.time,{...ne,...o},Kce),Ze(e.note,{...ne,...o},Vce)]}},Ze(e.price,{...j,...o},Yce)]}}};import{tabletKey as M4}from"efficient-easel/draw";import{VIEW_DESKTOP_MIN as Dx}from"efficient-easel/draw";var Mx=Xo,zv=Dx,B4=960,N4=Xo,D4={min:Mx,max:1600,step:10},Hx="stackBelow";function Qje(e){if(!(typeof e!="number"||!Number.isFinite(e))&&!(e<D4.min||e>D4.max))return Math.round(e)}var Zce=e=>`sf-stack-${e}`,Jce=e=>`sf-stack-${e}-gutter`,Qce=e=>`sf-stack-${e}-outer`,Nl=e=>`${e-.02}px`;function eKe(e,o={}){let t=o.gutter!==!1,r=`.${Zce(e)}`,a=`.${Jce(e)}`,n=`.${Qce(e)}`,s=[];if(e>Mx){let i=`${r}>.sf-block-size,${r}>[data-easel-block]>[data-sf-part-host]>.sf-block-size`,l=Math.min(e,Dx);s.push(`@media (min-width:${Mx}px) and (max-width:${Nl(e)}){${r}${r}{flex-direction:column}.sf-gap-overlap${r}{--sf-gap-overlap-eff:calc(var(--sf-gap-overlap) / 2)}${i}{width:min(var(--sf-bw-p,100%),100%);flex-grow:0}}`,`@media (min-width:${Mx}px) and (max-width:${Nl(l)}){.sf-gap-zone${r}{gap:var(--sf-gap-len-tablet,var(--sf-gap-len-phone,calc(var(--sf-gap-len) / 2)))}}`),e>Dx&&s.push(`@media (min-width:${Dx}px) and (max-width:${Nl(e)}){.sf-gap-zone${r}{gap:var(--sf-gap-len-phone,calc(var(--sf-gap-len) / 2))}}`)}return t&&s.push(`@media (max-width:${Nl(e)}){${a}${a}{padding-inline:${Gr.frame}}}`),t&&e<B4&&s.push(`@media (min-width:${e}px) and (max-width:${Nl(B4)}){${a}${a}{padding-inline:${Ot}}}`),e>N4&&s.push(`@media (min-width:${N4}px) and (max-width:${Nl(e)}){`+["top","bottom","left","right"].map(i=>`.sf-pad-${i}-phone:has(>${n}),.sf-pad-${i}-phone${n}{padding-${i}:var(--sf-pad-${i[0]}-phone)!important}`).join("")+"}"),s.join("")}function Ds(e){if(e==="ProductGrid")return"shelf";let o=$(fr,e)?.headStyle;return o==="editorial"||o==="simple"||o==="essay"?o:"standard"}var mf={standard:64,editorial:60,simple:36,essay:28,shelf:20},ede={SectionHeader:"accent",FAQ:"accent",FitmentFinder:"accent",FitmentTable:"accent",SpecTable:"accent",RelatedProducts:"accent",Collections:"accentNum"};function ode(e){if(e==="SectionHeader")return{num:"num",title:"title",description:"description",link:!0};let o=$(fr,e);if(!o)throw new Error(`section-head-looks: "${e}" has no head row in SPLITTABLE_SECTIONS`);return{num:o.num,title:o.title,description:o.description,link:o.headRows.includes("linkText")&&o.headRows.includes("linkHref")}}function $x(e,o,t){let r=`editorial:${e}|${o}|${t}`,a=Wx.get(r);if(a)return a;let n=U4({num:e,title:o,description:t,link:!1});return Wx.set(r,n),n}var wt={[Hx]:zv},jv={top:0,right:0,bottom:1,left:0},Ct=(e,o,t,r)=>({sizeToken:{step:e,px:r,fluid:{minPx:o,vw:t}}}),Ux=(e,o,t={})=>Ie(e,{...U("label",o),...t}),zx=(e,o)=>({kind:"text",key:e,role:"heading",props:j,style:{textStyle:"heading-2",...o}}),Kv=Xo,tde=zv,Vv=(e,o,t,r,a={})=>({kind:"text",key:e,props:{...ne,align:"right",alignPhone:"left",...t?{maxWidth:t,maxWidthPhone:Kv}:{},...a},style:{textStyle:"body-5",fontRole:"heading",alignPhone:"left",...U("body",o),...r,...a}}),$4={...Ro,align:"right",alignPhone:"left",...Fs},Gv=e=>({kind:"button",key:"linkText",href:"linkHref",variant:"ghost",props:$4,style:{...dr(e),color:"labels"}}),H4=(e,o,t)=>{let r=t.role==="heading"?{tag:"h2"}:{};return{kind:"block",type:"Text",when:a=>a[e]===void 0,props:{...j,...r,...t.props,text:o,_partStyles:{text:{...t.role==="eyebrow"?rde(la()):{},...t.style}}}}},rde=e=>e._partStyles.text??{},Dl={widthFitPhone:"fill"};function Yv(e){if(e.kind!=="group")return e;if(e.name==="Words"){let o=e.props;return{...e,props:typeof o=="function"?(t,r)=>({...o(t,r),...Dl}):{...o,...Dl}}}return{...e,parts:e.parts.map(Yv)}}function ade(e,o){let t=$(ede,e),r=t==="accent",a=Ux(o.num,14,{color:r?"accent":"labels"}),n=t==="accentNum"&&a.kind==="text"?{...a,mark:"accentLead"}:a,s=zx(o.title,r?{...Ct("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,...Dl,direction:"row",align:"end",gap:40,gapPhone:12,share:"content"},parts:[{kind:"group",name:"Number",props:{...N,...Dl,align:"start",gap:12},parts:[{kind:"image",key:"logoSrc",alt:"logoAlt",props:{aspect:"auto",contained:!1}},n,...i?[H4(o.num,"==01== / Collections",n)]:[]]},{kind:"group",name:"Heading",props:{...N,...Dl},parts:[s,...i?[H4(o.title,`Three ranges,
|
|
323
|
-
one standard.`,s)]:[]]}]},{kind:"group",name:"Words",props:{...N,...Dl,gap:12,maxWidth:340,maxWidthPhone:Kv},parts:[...o.description?[Vv(o.description,14,void 0,{lineHeight:1.5})]:[],...o.link?[Gv(14)]:[],...i?[{kind:"block",type:"ButtonBlock",props:{...$4,variant:"ghost",label:"View all",href:"/wheels",_partStyles:{label:Gv(14).style}}}]:[]]}]}}function Gx(e,o){return e.kind==="text"?o.includes(e.key)?{...e,mark:"accentItalic"}:e:e.kind==="group"?{...e,parts:e.parts.map(t=>Gx(t,o))}:e}function U4(e){let o=zx(e.title,{...Ct("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,...wt},parts:[{kind:"group",name:"Title",props:{...N,direction:"row",align:"end",gap:40,gapPhone:14,share:"content",...wt},parts:[{kind:"group",name:"Number",props:{...N,sectionPaddingBottom:8},parts:[{...Ux(e.num,13),props:{...j,...Rs}}]},Gx(o,[e.title])]},{kind:"group",name:"Words",props:{...N,sectionPaddingBottom:4,maxWidth:360,[M4("maxWidth")]:tde,maxWidthPhone:Kv},parts:e.description?[Vv(e.description,14,void 0,{lineHeight:1.5},{[M4("align")]:"left"})]:[]}]}}function W4(e,o){return{kind:"group",name:"Header",props:{...N,gap:16,gapPhone:16},parts:[Ux(e.num,13),zx(e.title,o)]}}var z4=[["para",{...dr(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}]],nde=e=>z4.some(([o])=>o===e.titleSize)?e.titleSize:"lg";function sde(e){return{kind:"group",name:"Header",props:{...N,direction:"row",align:"center",justify:"between",gap:16,share:"content",stickTop:!0,sectionBorder:jv,sectionPaddingTop:12,sectionPaddingBottom:12},parts:[{kind:"group",name:"Title",props:{...N,direction:"row",align:"end",gap:24,share:"content"},parts:[Ux(e.num,13,{color:"labels",letterSpacing:.22,lineHeight:1}),...z4.map(([o,t])=>({...zx(e.title,t),when:r=>nde(r)===o}))]},{kind:"group",name:"Words",props:{...N,direction:"row",align:"center",justify:"end",gap:20,share:"content"},parts:[...e.description?[Vv(e.description,13,340,{lineHeight:1.4})]:[],...e.link?[Gv(13)]:[]]}]}}function jx(e){return Ds(e)==="shelf"?{titleSize:"the Header Box's title Text part: its size, as the old shelf title drew it (lib/document/blocks/general/section-head-looks)"}:{}}var Wx=new Map,qv={...U("headingMedium",44,32),case:"upper",weight:500,lineHeight:1,letterSpacing:-.02};function Jt(e){let o=Wx.get(e);if(o)return o;let t=ode(e),r=Ds(e),a=r==="editorial"?U4(t):r==="simple"?W4(t,qv):r==="essay"?W4(t,{...U("headingMedium",38,28,"headingSmall"),case:"upper",lineHeight:1,letterSpacing:-.02}):r==="shelf"?sde(t):ade(e,t);return Wx.set(e,a),a}var Ms={Series:"transparent",StatsParagraph:"transparent",TimelineTrack:Qo,Stats:void 0};var hf=(e,o,t,r)=>({sectionBorder:{top:e,right:o,bottom:t,left:r}}),t5=e=>o=>A4(q(o.columns)??q(e.columns)),cde="inline is the head the row draws; an own-box node is skipped (`skip`)",dde={kind:"text",key:"title",role:"heading",props:j,style:{textStyle:"heading-3",...qv}},G4={top:120,bottom:120,topPhone:80,bottomPhone:80,topTablet:80,bottomTablet:80},Vx=e=>{let o=Vr(typeof e.background=="string"?e.background:void 0,Ms.Series);return o&&o!=="transparent"?o:void 0},Kx=e=>Vx(e)===Qo,fde={...N,justify:"between",gap:16,gapPhone:16,sectionHeightMode:"fixed",sectionHeightValue:340,sectionHeightUnit:"px",sectionPaddingTop:36,sectionPaddingRight:28,sectionPaddingBottom:32,sectionPaddingLeft:28,sectionPaddingTopPhone:36,sectionPaddingRightPhone:28,sectionPaddingBottomPhone:32,sectionPaddingLeftPhone:28},j4={...N,direction:"row",justify:"between",gap:12,share:"content",phoneRow:2,[Jv("share")]:"content"},pde=e=>{let o=Vx(e)?1:2;return{...N,direction:"row",columns:4,columnsTablet:2,gap:o,gapPhone:o}},Xv={...dr(12),letterSpacing:.22,lineHeight:1.5},K4=e=>ro(e.viewLabel)&&!Qv(e.viewLabel).hidden,Qt=e=>Qv(e).text?.trim?.()??"",Yx=e=>Object.fromEntries(Object.entries(e).filter(([,o])=>be(o)!==void 0)),ek=e=>e.map(([o,t,r])=>({key:o,label:t,...r?{multiline:!0}:{}})),ude=ek([["num","Number"],["since","Corner note"],["title","Card title"],["body","Card body",!0],["count","Count"],["countLabel","Count word"]]),mde=ek([["label","Label"],["value","Value"],["body","Card body",!0]]),xf=(e,o,t,r,a,{reads:n=["cards"],keep:s=[]}={})=>({kind:"group",name:e,props:o,parts:[{kind:"core",as:Oo,headless:!0,keep:s,derive:{reads:n,props:i=>jp(r(i),t)},slots:(i,l)=>({[Ue]:[a(i,l)]})}]}),r5=e=>Array.isArray(e.cards)?e.cards:[],V4={top:76,bottom:76,topPhone:76,bottomPhone:76},a5=e=>(Array.isArray(e.items)?e.items:[]).map(o=>Yx({title:Qt(o?.label),href:typeof o?.href=="string"?o.href.trim():""})).filter(o=>o.title!==void 0).map((o,t)=>({key:vc(vy(o),t),...o})),hde=e=>a5(e).some(o=>be(o.href)!==void 0),n5=[{key:Iy.label,label:"Feature label"},{key:Iy.href,label:"Link",kind:"link"}],Y4=e=>LM(e.eyebrowLook,"KeyFeatures")==="filled",xde={name:"Key Features",boxProps:(e,o)=>({...Q,direction:"column",gap:44,gapPhone:32,...St("surface")(e,o),...hf(1,0,1,0),...ie(e,V4)}),box:[...re,...ge(V4)],parts:[{kind:"group",name:"Heading",props:{...N,direction:"row",align:"end",gap:20,wrap:!0,share:"content",phoneRow:2,[Jv("share")]:"content"},parts:[{...Al("eyebrow"),when:Y4},{...Ie("eyebrow"),when:e=>!Y4(e)},dde]},xf("Cards",e=>({...N,...Ns(t5(L4.defaultProps)(e))}),n5,a5,e=>Wv(hde(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"}},q4={top:72,bottom:72,topPhone:72,bottomPhone:72},X4=(e,o)=>({...Bx,...St("background")(e,o)}),Z4=e=>{let o=t5(R4.defaultProps)(e);return{...N,...Ns(o)}},gde=ek([["title","Card title"],["body","Card body",!0]]),s5=e=>(Array.isArray(e.items)?e.items:[]).map((o,t)=>({key:typeof o?.key=="string"&&o.key?o.key:vc(vy(o),t),title:Qt(o?.title),body:Qt(o?.body)})),i5=e=>{let o={},t={};for(let[r,a]of Object.entries(e.props??{}))r!=="id"&&(ide(a)?t[r]=a.map(i5):o[r]=a);return{type:String(e.type),props:o,...Object.keys(t).length?{slots:t}:{}}},J4=(e,o)=>{let t=Zv(e)?Wv(Ide(e)):Bl(),r=Array.isArray(e.template)?e.template.map(i5):[t],[a]=r;return r.length===1&&a.type===Y?{...a,props:{...X4(e,o),...a.props}}:{type:Y,props:{...N,...X4(e,o),name:"Card"},slots:{[De]:r}}},Zv=e=>e.cardStyle==="label-only",l5=e=>s5(e).map((o,t)=>{let r=e.items[t]?.href;return Yx({key:o.key,title:o.title,href:typeof r=="string"?r.trim():""})}),Ide=e=>l5(e).some(o=>be(o.href)!==void 0),Q4=e=>Array.isArray(e.template)&&e.template.length===0,e5=["dataSource","dataSourceOptions","highlightedCard","highlightBadge"];function c5(){let e=t=>({key:lde("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 yde={name:"Cards",ownBoxConverts:!0,boxProps:(e,o)=>({...Q,direction:"column",gap:36,gapPhone:28,...St("surface")(e,o),...ie(e,q4)}),box:[...re,...ge(q4)],parts:[{...Jt("Cards"),when:e=>!Fv(e)},{...xf("Cards",Z4,gde,s5,J4,{reads:["items"],keep:e5}),when:e=>!Q4(e)&&!Zv(e)},{...xf("Cards",Z4,n5,l5,J4,{reads:["items"],keep:e5}),when:e=>!Q4(e)&&Zv(e)}],drop:{...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)"}},bde={name:"Recurring Columns",boxProps:(e,o)=>({...Q,direction:"column",gap:60,gapPhone:60,...hf(0,0,1,0),...wt,...Kx(e)?Bs(e,o):{},...Lx(Vx(e),e,o),...ie(e,G4)}),box:[...re.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,t)=>Kx(o)?un(e,o,t):e],...ge(G4)],skip:e=>Fx(Vx(e)),site:(e,o)=>Kx(e.props)?mn(e,o):[],parts:[Jt("Series"),xf("Cards",pde,ude,e=>r5(e).map(o=>Yx({num:Qt(o.num),since:Qt(o.since),title:Qt(o.title),body:Qt(o.desc),count:Qt(o.entries),countLabel:Qt(o.entriesLabel)})),(e,o)=>({type:Y,props:{...fde,...St("background",(t,r)=>Kx(t)&&Rx(t,r))(e,o),name:"Card"},slots:{[De]:[{type:Y,props:{...N,name:"Words",gap:16,gapPhone:16},slots:{[De]:[{type:Y,props:{...j4,name:"Top"},slots:{[De]:[Ze("num",j,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:{...j4,name:"Footer",align:"center",gap:0,gapPhone:0,sectionPaddingTop:16,sectionPaddingTopPhone:16,...hf(1,0,0,0),...K4(e)?{}:{[ni]:["count","countLabel"]}},slots:{[De]:[{type:Y,props:{...N,name:"Count",direction:"row",align:"center",gap:12,gapPhone:12,share:"content",phoneRow:2,[Jv("share")]:"content"},slots:{[De]:[Ze("count",j,Xv),Ze("countLabel",ne,Xv)]}},...K4(e)?[{type:Y,props:{...N,name:"View",maxWidthPhone:266},slots:{[De]:[{type:"Text",props:{...j,text:Qv(e.viewLabel).text,_partStyles:{text:{...la()._partStyles.text,...Xv}}}}]}}]:[]]}}]}}))],reads:{viewLabel:"a Text typed once in the card template: the far end of every card's footer",background:"the Box's theme (the band preset) or its Fill"},drop:{...ee,...se,headPlacement:cde}},o5={top:60,bottom:60,topPhone:40,bottomPhone:40},Sde={...N,direction:"row",columns:3,gap:40,gapPhone:16},wde={...N,gap:8,gapPhone:8,...Zo(24),...hf(1,1,1,1)},Cde={name:"Document Detail Cards",boxProps:e=>({...Q,direction:"column",gap:40,gapPhone:16,...hf(0,0,1,0),...ie(e,o5)}),box:[...re,...ge(o5)],parts:[xf("Cards",Sde,mde,e=>r5(e).map(o=>Yx({label:Qt(o.label),value:Qt(o.value),body:Qt(o.desc)})),(e,o)=>({type:Y,props:{...wde,...St("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}},d5={Cards:yde,KeyFeatures:xde,Series:bde,DocMetaCards:Cde};import{phoneKey as Pde}from"efficient-easel/draw";import{newId as Ede}from"efficient-easel/data";import{phoneKey as vde}from"efficient-easel/draw";import{isNode as gf}from"efficient-easel/data";var Ml="cardStyle";function f5(e){let{widthPhone:o,...t}=e;return e.widthFitPhone==="fixed"?{...t,widthFitPhone:"fill"}:{...e}}var qx={table:{items:{gap:0,gapPhone:0,columnsTablet:2},grid:{gap:0},row:{gap:0,[vde("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}}}},er={table:{...qx.table,listCard:f5(qx.table.card)},list:{...qx.list,listCard:f5(qx.list.card)}},MKe=[{label:"Table",value:"table"},{label:"List",value:"list"}],HKe=e=>e==="table"||e==="list",kde=e=>[...new Set([...Object.keys(er.table[e]),...Object.keys(er.list[e])])];function If(e,o,t){let r={...e};for(let a of kde(o))delete r[a];return{...r,...structuredClone(er[t][o])}}function Tde(e,o,t){let r=e.props??{},a=Array.isArray(r[Ue])?r[Ue]:[],n=a.findIndex(l=>gf(l)&&l.type===t);if(n<0)return e;let s=a[n],i=a.map((l,d)=>d===n?{...s,props:If(s.props??{},"listCard",o)}:l);return{...e,props:{...r,[Ue]:i}}}function WKe(e,o,t,r){let a=Array.isArray(e[r])?e[r]:[];if(a.some(s=>gf(s)&&s.type===Oo)){let s=a.map(i=>gf(i)&&i.type===Oo?Tde(i,o,t):i);return{...If(e,"items",o),[Ml]:o,[r]:s}}let n=a.map(s=>{if(!gf(s)||s.type!==t)return s;let i=s.props??{},l=(Array.isArray(i[r])?i[r]:[]).map(d=>gf(d)&&d.type===t?{...d,props:If(d.props??{},"card",o)}:d);return{...s,props:{...If(i,"row",o),[r]:l}}});return{...If(e,"grid",o),[Ml]:o,[r]:n}}var ok=e=>typeof e=="string"?e.trim():"";function p5(e){let o=`${ok(e.prefix)}${ok(e.value)}`,t=ok(e.suffix);return e.emphasizeAll===!0?o?`==_${o}_==`:"":`${o}${t?`==_${t}_==`:""}`}var h5={textStyle:"heading-2",...Ct("headingMedium",56,7,96),weight:500,case:"none",lineHeight:.9,letterSpacing:-.04},tk={kind:"block",type:"Text",props:{...Ls,_partStyles:{text:h5}},box:[["value","text",(e,o)=>p5(o)]],when:(e,o)=>o!==void 0&&typeof o.value=="string"&&p5(o)!==""},u5=e=>ro(e?.supSuffix),x5={textStyle:"body-1",fontRole:"heading",...U("body",16),lineHeight:1.5,letterSpacing:-.01},g5={color:"labels",...U("label",12),lineHeight:1.5,letterSpacing:.24},I5={...N,direction:"row",align:"start",gap:32,gapPhone:32,share:"content",phoneRow:2,[Pde("share")]:"content"},y5={textStyle:"body-5",...U("label",13),weight:500,color:"accent",letterSpacing:.18,lineHeight:1,padding:12},rk=e=>Vr(e.background,Ms.StatsParagraph),yf=e=>rk(e)===Qo,Xx=e=>({...e,sectionAccent:e.sectionAccent??0}),_de=(e,o)=>yf(e)?St("background",(t,r)=>Rx(Xx(t),r))(e,o):{},Ode={name:"Stats with Text",skip:e=>rk(e)&&rk(e)!=="transparent"&&!yf(e)?"it paints a colour of its own, not the section band":void 0,boxProps:(e,o)=>({...Q,direction:"column",gap:60,gapPhone:60,sectionBorder:{bottom:1},...wt,...Zt(e,"StatsParagraph"),...yf(e)?Bs(Xx(e),o):{}}),box:[...re.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,t)=>yf(o)?un(e,Xx(o),t):e],...fn("StatsParagraph")],site:(e,o)=>yf(e.props)?mn({props:Xx(e.props)},o):[],parts:[Jt("StatsParagraph"),{kind:"group",name:"Stats",props:{...N,...er.table.grid,[Ml]:"table"},parts:[{kind:"list",key:"stats",name:"Stat",perRow:()=>4,rowName:"Stats row",rowProps:{...N,direction:"row",share:"equal",phoneRow:2,...er.table.row},props:(e,o)=>({...N,...er.table.card,..._de(e,o)}),parts:[{...tk,when:(e,o)=>!u5(o)&&tk.when(e,o)},{kind:"group",name:"Figure",props:I5,when:(e,o)=>u5(o),parts:[tk,{kind:"text",key:"supSuffix",props:j,style:y5}]},{kind:"group",name:"Words",props:{...N,gap:4,gapPhone:4},parts:[{kind:"text",key:"label",props:j,style:x5},Ie("sub",g5)]}]}]}],drop:{...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"}},Ade=new Set(["value","label",kt]),m5={top:48,bottom:48,topPhone:48,bottomPhone:48},Rde=e=>{let o=Vr(typeof e.background=="string"?e.background:void 0,Ms.Stats);return!!o&&o!=="transparent"},Lde={name:"Stats",skip:e=>Rde(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?.[kt]))?"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=>!Ade.has(t)))?"a figure has a key no part here reads":Object.keys(e._partStyles??{}).some(o=>o!=="heading")?"a figure or a name has a style of its own, kept by kind, which no part here reads":void 0,boxProps:e=>({...Q,direction:"column",gap:24,gapPhone:24,...ie(e,m5)}),box:[...re,...ge(m5)],parts:[Ie("heading",{color:"labels",...U("label",12),letterSpacing:.2}),{kind:"group",name:"Stats",props:{...N,...er.list.grid,[Ml]:"list"},parts:[{kind:"list",key:"items",name:"Stat",perRow:e=>q(e.columns)??4,rowName:"Stats row",rowProps:{...N,direction:"row",share:"equal",phoneRow:2,...er.list.row},props:{...N,...er.list.card},parts:[{kind:"text",key:"value",props:Ls,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"}},b5={StatsParagraph:Ode,Stats:Lde};function S5(){return{eyebrow:c("By the numbers"),title:c("What we count."),desc:c("A few numbers that matter to us."),stats:[],background:"transparent"}}var Fde=[{key:"figure",label:"Figure"},{key:"superscript",label:"Superscript"},{key:"label",label:"Label"},{key:"body",label:"Text",multiline:!0}];function w5(){let e=(o,t,r,a="")=>({key:Ede("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 Bde(e){return{type:Y,props:{...N,name:"Card",...structuredClone(er[e].listCard)},slots:{[De]:[{type:Y,props:{...I5,name:"Figure"},slots:{[De]:[Ze("figure",Ls,h5),Ze("superscript",j,y5)]}},{type:Y,props:{...N,name:"Words",gap:4,gapPhone:4},slots:{[De]:[Ze("label",{...j,widthFit:"fill"},x5),Ze("body",{...j,widthFit:"fill"},g5,!0)]}}]}}}function ak(e,o,t=4){return{type:Y,props:{...N,name:"Stats",direction:"row",columns:t,...structuredClone(er[o].items),[Ml]:o},slots:{[De]:[{type:Oo,props:jp(e,Fde),slots:{[Ue]:[Bde(o)]}}]}}}var C5={heading:"Ways to pay"},v5=()=>[{label:"Visa"},{label:"Mastercard"},{label:"Amex"},{label:"PayPal"}],k5=()=>[{text:c("Secure encrypted checkout")},{text:c("30-day returns")}],a8e={label:"Payment Methods",drawsPictures:!0,defaultProps:{heading:"",badges:[],assurances:[],contained:!0}};import{hiddenKeyOf as Nde}from"efficient-easel/screen/lib/content/view-hide";var Zx="Flex",Dde={FooterMenu:"MenuBlock",FooterEmailSignup:"EmailFormBlock",FooterSocial:"SocialLogosBlock"},Mde={FooterPayment:"PaymentLogosBlock"},Hde=e=>{let{id:o,...t}=e;return t},T5=e=>typeof e=="string"?e:"",Hl={sm:12,md:13,lg:15},P5={sm:{mark:16,words:Hl.sm},md:{mark:20,words:Hl.md}},Wde="md",E5=1.5,$de={size:13,lineHeight:E5,width:280},Ude=14,zde=40,Gde=e=>e==="center"||e==="right"?e:"left";function jde(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 Kde(e,o,t){let r=t(e,Hde(o));if(Array.isArray(o.template))return{...r,props:{...r.props,template:_5(o.template,String(r.props.id))}};if(o.template!==void 0)return r;let a=Mp(e,r.props);return a===r.props?r:{...r,props:a}}function _5(e,o,t={at:0}){return e.map(r=>{let a={...r.props,id:`${o}~t${t.at++}`};for(let n of Br(r))a[n]=_5(a[n],o,t);return{...r,props:a}})}function O5(e,o,t){let r=e.props??{},a=t?.(e,o);if(a)return a;let n=$(Dde,e.type)??$(Mde,e.type);if(n)return[Kde(n,r,o)];switch(e.type){case"FooterLogo":{let s=Gde(r.align),i=o("LogoBlock",{...r.reverse?{reverse:r.reverse}:{},...typeof r.customColor=="string"&&r.customColor?{customColor:r.customColor}:{},heightPx:Math.round(PO*((q(r.widthPct)??100)/100)),href:"/",align:s,...jde(r)}),l=T5(r.tagline).trim();return l?[i,o("Text",{text:l,tone:"dim",align:s,_partStyles:{text:{...$de}}})]:[i]}case"FooterText":{let s=typeof r.size=="string"&&He(Hl,r.size)?r.size:Wde;return[o("Text",{text:T5(r.text),tone:typeof r.tone=="string"?r.tone:"default",_partStyles:{text:{size:Hl[s],lineHeight:E5}}})]}case"FooterDivider":{let s=q(r.thickness),i=q(r.lengthPct);return[o("Divider",{...s!==void 0?{thickness:s}:{},...i!==void 0?{lengthPct:i}:{},...r.hideOnMobile===!0?{[Nde("mobile")]:!0}:{}})]}case"FooterGroup":{let s=Array.isArray(r.blocks)?r.blocks:[];return[o(Zx,{direction:r.direction==="horizontal"?"row":"column",gap:os("FooterGroup",r.gap),align:r.align==="center"||r.align==="end"||r.align==="stretch"?r.align:"start",...ly,content:s.flatMap(i=>O5(i,o,t))})]}default:return[]}}function bf(e,o,t,r){let a=e&&Array.isArray(e.props?.blocks)?e.props.blocks:[],n=f=>o(Zx,{direction:"row",wrap:!0,share:"equal",gap:zde,content:f}),s=[],i=[];for(let f of a){let u=O5(f,o,r);if(f.type==="FooterDivider"){i.length&&s.push(n(i)),i=[],s.push(...u);continue}u.length<=1?i.push(...u):i.push(o(Zx,{direction:"column",gap:Ude,align:"stretch",...ly,content:u}))}(i.length||!s.length)&&s.push(n(i));let l=o(Zx,{direction:"column",content:[o("LegalLineBlock")]}),d=l1(ze,t,[...s,l]);return{...d,props:{...d.props,...e?.props?.width==="full"?{fullWidth:!0}:{}}}}import{phoneKey as sk,readHidable as Vde}from"efficient-easel/draw";var ik={contained:!1},lk=(e,o)=>({logos:[{kind:"list",key:e,name:"Logo",flat:!0,parts:[{kind:"block",type:"LogoBlock",box:["src",[o,"alt"]],when:(t,r)=>ro(r?.src)||ro(r?.[o])}]}]}),nk=e=>{let o=q(e.bandPadding)??40;return{top:o,bottom:o,topPhone:o,bottomPhone:o}},Yde={...Ie("heading",{color:"labels",letterSpacing:.2}),props:{...j,align:"center"}},qde={name:"Logos",boxProps:e=>({...Q,direction:"column",gap:32,...ie(e,nk(e))}),box:[...re,...ge(nk),["bandPadding","sectionPaddingTop",(e,o)=>ie(o,nk(o)).sectionPaddingTop]],parts:[Yde,{kind:"core",keep:["columns","logoHeight","grayscale"],rename:{logosPerRow:"columns"},props:ik,slots:lk("items","alt")}],drop:{...ee,...se,contained:"the Box draws the site frame now; the Logos block inside it fills the Box's column (`contained: false`)",headPlacement:"a Logos band has no split head (not in SPLITTABLE_SECTIONS): no stored node can hold one, and the converted block stores own-box"}},Xde={kind:"group",name:"Mark",keepEmpty:!0,parts:[],props:$E(4,"main",{sectionCorners:2})},A5={top:24,bottom:24,topPhone:24,bottomPhone:24},Zde={name:"Payment Methods",boxProps:e=>({...Q,direction:"column",...ie(e,A5)}),box:[...re,...ge(A5)],parts:[{kind:"group",name:"Methods",props:{...N,align:"center",gap:20,gapPhone:20,sectionBorder:{top:1,bottom:1},sectionPaddingTop:32,sectionPaddingBottom:32},parts:[{...Ie("heading",{color:"labels"}),props:{...j,align:"center"}},{kind:"core",keep:[],as:"Logos",derive:{reads:[_o,ra],props:e=>ro(e[_o])?{[_o]:e[_o],...e[ra]!==void 0?{[ra]:e[ra]}:{}}:{}},props:{...ik,look:"cards",grayscale:!1},slots:e=>({...lk("badges","label"),...ro(e[_o])?{[Ue]:[by()]}:{}})},{kind:"group",name:"Reassurance",props:{...N,direction:"row",wrap:!0,justify:"center",gap:24,gapPhone:24,phoneRow:2,[sk("share")]:"content"},parts:[{kind:"list",key:"assurances",name:"Line",of:e=>(Array.isArray(e.assurances)?e.assurances:[]).filter(o=>ro(o?.text)),props:{...N,direction:"row",align:"center",gap:8,gapPhone:8,phoneRow:2,[sk("share")]:"content"},item:e=>Vde(e.text).hidden?{props:{_hidden:!0}}:{},parts:[Xde,{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`)"}},R5=e=>EE(e.align)??"left",L5=e=>e.size==="md"?"md":"sm",F5=12,B5={name:"Payment logos",boxProps:e=>({...N,direction:"row",wrap:!0,align:"center",justify:_p[R5(e)],gap:F5,gapPhone:F5,phoneRow:2,[sk("share")]:"content"}),box:[...Ga],parts:[{kind:"text",key:"lead",props:ne,styleFrom:e=>({size:Hl[L5(e)],lineHeight:1.5})},{kind:"core",keep:[],as:"Logos",derive:{reads:[_o,ra],props:e=>({logoHeight:P5[L5(e)].mark,align:R5(e),...ro(e[_o])?{[_o]:e[_o],...e[ra]!==void 0?{[ra]:e[ra]}:{}}:{}})},props:{...ik,look:"marks",grayscale:!1,sectionAccent:Hr},slots:e=>({...lk("methods","label"),...ro(e[_o])?{[Ue]:[by()]}:{}})}],drop:{size:"read as the wall's Logo height (S 16, M 20) and the lead's size (the footer size table, 12 / 13)",align:"read as the Box's justify and the wall's own Alignment (start is left, end is right)",editing:"the editor's preview flag, never a stored setting: the editor tells every block it is editing"}},N5={Logos:qde,PaymentBadges:Zde,FooterPayment:B5,PaymentLogosBlock:B5},D5=()=>({heading:W2.heading,items:dx()}),M5=()=>({heading:C5.heading,badges:v5(),assurances:k5()}),H5=()=>({...mm,methods:[]});import{mixHex as tfe}from"efficient-shell/format";import{MOTION_EASING as Jde,MOTION_TIMING as W5,motionSeconds as $5}from"efficient-shell/format";var ck="none",Jx=[{label:"None",value:"none"},{label:"Marquee",value:"scroll"}];function F8e(e){return xo(Jx,ck,e)}var Wl="_gLoop",Sf={field:"loop",is:"scroll"},wf="left",dk=[{label:"Left",value:"left",cell:"left"},{label:"Right",value:"right",cell:"right"},{label:"Up",value:"up",cell:"top"},{label:"Down",value:"down",cell:"bottom"}],Qde={left:"storefront-ticker",right:"storefront-ticker-right",up:"storefront-ticker-up",down:"storefront-ticker-down"};function U5(e){return xo(dk,wf,e)}function z5(e){return e==="up"||e==="down"}function Qx(e){return $5("loop","duration",e.loopDuration!=null?e.loopDuration:e.speed)}var B8e=W5.loop.duration.default,efe=W5.loop.delay.default;function G5(e){return $5("loop","delay",e.loopDelay)}function N8e(e,o,t=efe){return`${Qde[e]} ${o}s ${Jde.loop}${t?` ${t}s`:""} infinite`}var eg="_gEntrance";var W8e="none",$8e=[{label:"Nothing",value:"none"},{label:"Section above",value:"above"},{label:"Section below",value:"below"}];function og(e){return e==="above"||e==="below"?e:null}var j5="sf-ticker-join";function ofe(e){return e==="above"?"sf-ticker-join-above":"sf-ticker-join-below"}function K5(e){return`absolute inset-x-0 ${ofe(e)}`}var Hs={direction:"row",share:"content",align:"center"},Cf={top:14,bottom:14,topPhone:12,bottomPhone:12},tg={wrap:"nowrap",loop:"scroll",sectionAccent:X_,gap:60,gapPhone:32,separator:"dot",sectionBorder:{top:1,bottom:1}},V5={gap:120,gapPhone:64},rg={...pt,sizeToken:{step:"label",px:14,pxPhone:12},letterSpacing:.25,lineHeight:1.5},Y5={textStyle:"heading-3",letterSpacing:.005,case:"upper",lineHeight:1},vf={top:16,bottom:16,topPhone:12,bottomPhone:12},kf={justify:"between",wrap:"wrap",gap:32,separator:"none"},Tf={...pt,letterSpacing:.1,lineHeight:1.5};var q5=e=>e.size==="display",rfe=(e,o)=>{let t=Ax(e,o),r=e.tone!=="plain"&&t?.text&&t.background?tfe(t.text,t.background,.3):null;return r?{color:r}:{}},afe=(e,o)=>e.tone!=="plain"&&Wr(e.sectionAccent)===null?St("background")(e,o):{},X5=(e,o)=>({kind:"list",key:"items",name:"Item",flat:!0,when:o,parts:[{kind:"text",key:"text",props:ne,style:e,styleFrom:rfe}]}),nfe={name:"Scrolling Bar",boxProps:(e,o)=>({...Q,...Hs,...tg,...AE[iy(e.separator)]===""?V5:{},...ie(e,Cf),...afe(e,o)}),box:[["scrollDirection","scrollDirection",e=>U5(e)],["speed","loopDuration",(e,o)=>o.loopDuration!=null?o.loopDuration:e],["loopDuration","loopDuration",(e,o)=>e??o.speed],["loopDelay","loopDelay",e=>e],["separator","separator",e=>iy(e)],["join","join",e=>og(e)??void 0],["borders","sectionBorder",e=>e===!1?void 0:{top:1,bottom:1}],...re,["tone","sectionAccent",(e,o)=>Wr(o.sectionAccent)??Hr],...ge(Cf)],parts:[X5(rg,e=>!q5(e)),X5(Y5,q5)],drop:{...ee,...se,size:"each item's Text style: Small \u2192 Body 5, Display \u2192 Heading 3"}},Z5=e=>e?.tone==="muted",J5=e=>Yp(_s(e)),sfe={name:"Spec Strip",boxProps:(e,o)=>({...Q,...Hs,...kf,...e.fill==="none"?{sectionBorder:{top:1}}:{sectionAccent:J5(o)},...ie(e,vf)}),box:[...re.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,t)=>o.fill==="none"?e:J5(t)],...ge(vf)],parts:[{kind:"list",key:"cells",name:"Cell",flat:!0,parts:[{kind:"text",key:"text",props:j,style:Tf,when:(e,o)=>!Z5(o)},{kind:"text",key:"text",props:ne,style:Tf,when:(e,o)=>Z5(o)}]}],drop:{...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"}},Q5={Ticker:nfe,SpecStrip:sfe};import{tabletKey as e3}from"efficient-easel/screen/lib/content/view-tiers";var o3={direction:"column",justify:"between",gap:14,gapPhone:14,sectionPaddingLeft:14,sectionPaddingRight:14,[e3("sectionPaddingLeft")]:0,sectionPaddingLeftPhone:0,sectionHeightMode:"fixed",sectionHeightValue:280,sectionHeightUnit:"px",[e3("sectionHeightMode")]:"auto",sectionHeightModePhone:"auto"},fk={name:"Year and title",direction:"column",gap:14,gapPhone:14};import{tabletKey as ife}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 ag={eyebrow:Ye.eyebrow,title:`Section heading
|
|
324
|
-
*Highlight line*`,intro:Ye.body,imageCaption:Ye.imageCaption,imageMeta:Ye.imageMeta,cta:fo.text},t3=()=>[{date:c("Year"),title:c("Milestone title."),body:c("Describe what happened, in a sentence or two.")},{date:c("Year"),title:c("Milestone title."),body:c("Describe what happened, in a sentence or two.")},{date:c("Year"),title:c("Milestone title."),body:c("Describe what happened, in a sentence or two.")}],iVe={label:"Story Timeline",drawsPictures:!0,defaultProps:{layout:"split",eyebrow:"",title:"",intro:"",imageSrc:"",imageCaption:"",imageMeta:"",ctaText:"",ctaHref:"",entries:[],padTop:120,padBottom:120}};var ng={eyebrow:Ye.eyebrow,title:Ye.headingAccent,intro:Ye.body,cta:fo.text},r3=()=>[{date:c("Year"),title:c("Milestone"),blurb:c("A short line about this milestone."),future:!1},{date:c("Year"),title:c("Milestone"),blurb:c("A short line about this milestone."),future:!1},{date:c("Year"),title:c("Milestone"),blurb:c("A short line about this milestone."),future:!1},{date:c("Year \u2192"),title:c("Upcoming"),blurb:c("A milestone still to come."),future:!0}],pVe={label:"Milestone Timeline",defaultProps:{eyebrow:"",title:"",intro:"",entries:[],ctaText:"",ctaHref:"",background:id,padTop:120,padBottom:120}};var c3={buttonBorder:{width:0}},lg=(e,o,t={})=>({textStyle:"body-5",...U("label",e),letterSpacing:o,lineHeight:1.5,weight:400,...t}),$l=(e,o,t={})=>({...lg(e,o),...pt,...t}),cg=(e,o,t)=>({...e,case:"upper",weight:500,letterSpacing:o,lineHeight:t}),Pf=(e,o,t={})=>({textStyle:"body-1",fontRole:"heading",...e,weight:400,case:"none",lineHeight:o,...t}),or=(e,o,t={})=>({kind:"text",key:e,props:j,style:o,...t}),a3=(e,o)=>o?.future===!0,sg=e=>s2(typeof e?.body=="string"?e.body:""),xk=e=>Vr(typeof e.background=="string"?e.background:void 0,Ms.TimelineTrack),pk=e=>xk(e)===Qo?e:{...e,background:"transparent"},lfe={name:"Milestone Timeline",skip:e=>Fx(xk(e)),boxProps:(e,o)=>{let t=pn(pk(e),o);return{...Q,direction:"column",gap:60,[ife("gap")]:36,gapPhone:36,sectionBorder:{bottom:1},...wt,...Zt(e,"TimelineTrack"),...Lx(xk(e),e,o),...t>=0?{sectionAccent:t}:{}}},box:[...re.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,t)=>un(e,pk(o),t)],...fn("TimelineTrack")],parts:[Yv(Gx($x("eyebrow","title","intro"),["intro"])),{kind:"group",name:"Track",props:{...N,gap:48,gapPhone:48},parts:[{kind:"group",name:"Years",props:{...N,direction:"row",share:"equal",gap:0,line:!0,...wt},parts:[{kind:"list",key:"entries",name:"Year",props:{...N,...o3},item:e=>({props:e.future===!0?{upcoming:!0}:{}}),parts:[{kind:"group",name:fk.name,props:{...N,...fk},parts:[or("date",lg(13,.22,{color:"accent"}),{when:(e,o)=>!a3(e,o)}),or("date",lg(13,.22,{color:"labels"}),{when:a3}),or("title",{textStyle:"heading-3",...cg(U("headingSmall",20),-.02,1.1)},{role:"heading"})]},or("blurb",Pf(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:{...Ro,align:"right",...c3},style:$l(13,.3)}]}]}],site:(e,o)=>mn({props:pk(e.props)},o),drop:{...ee,...se,background:"another colour is the Box's Fill, or a skip if no Fill holds it; the band is the Box's theme: the site's band preset (`sectionAccent`), or a declared band-preset write (`lib/theme` `bandPresetIndex`)",headPlacement:"needs a row per head placement: an own-box Milestone Timeline draws no head (its words sit in a Section Header above it), the row always draws the head"}},Ik=e=>typeof e.layout=="string"?e.layout:"split",ig=e=>Ik(e)==="split",gk=e=>!ig(e),d3=e=>Ik(e)==="spine",cfe=e=>gk(e)&&!d3(e),n3=(e,o,t,r)=>({kind:"group",name:"Picture",keepEmpty:!0,box:[["imageSrc","bgImage"]],props:{...N,sectionBorder:{top:1,right:1,bottom:1,left:1},darken:75,darkenStyle:"bottom",placement:"bottom-center",sectionHeightMode:"fixed",sectionHeightValue:e,sectionHeightUnit:"px",sectionHeightModePhone:"fixed",sectionHeightValuePhone:o,sectionHeightUnitPhone:"px",...Zo(12,16),...t},when:a=>r(a)&&typeof a.imageSrc=="string"&&a.imageSrc.trim()!=="",parts:[{kind:"group",name:"Caption",props:{...N,direction:"row",justify:"between",align:"center",gap:12,gapPhone:12,share:"content",phoneRow:2},parts:[or("imageCaption",$l(11,.24,{color:"text"})),or("imageMeta",$l(11,.24,{color:"accent"}),{props:{...j,align:"right"}})]}]}),s3=(e={})=>({kind:"button",key:"ctaText",href:"ctaHref",variant:"ghost",props:{...Ro,...e,...c3},style:$l(13,.3)}),uk=()=>[or("title",{textStyle:"heading-3",...cg(U("headingSmall",24,20),-.02,1.5)},{role:"heading",mark:"accentItalic"}),{kind:"block",type:"Text",props:{...j,_partStyles:{text:Pf(U("body",17,16),1.6)}},box:[["body","text",(e,o)=>gc(sg(o)[0]??"")]],when:(e,o)=>sg(o).length>0},{kind:"block",type:"Text",props:{...ne,_partStyles:{text:Pf(U("body",17,16),1.6,{paragraphSpacing:14})}},box:[["body","text",(e,o)=>gc(sg(o).slice(1).join(`
|
|
325
|
-
|
|
326
|
-
`))]],when:(e,o)=>sg(o).length>1}],mk=()=>or("date",lg(13,.24,{color:"accent"})),hk=(e,o,t={})=>or(e,o,{...t,props:{...j,...t.props??{},align:"center"}}),i3=Ct("headingMedium",40,5,76),l3={sectionBorder:{bottom:1}},dfe={name:"Story Timeline",skip:e=>Ik(e)==="track"?'display "track": not converted (it draws the Milestone rail; a Track story is not stored anywhere)':void 0,boxProps:e=>ig(e)?{...Q,direction:"row",share:[40],gap:80,gapPhone:48,align:"start",...l3,...Zt(e,"Timeline")}:{...Q,direction:"column",gap:48,gapPhone:48,align:"center",...l3,...Zt(e,"Timeline")},box:[...re,...fn("Timeline")],parts:[{kind:"group",name:"Heading",props:{...N,gap:24,gapPhone:24},when:ig,parts:[or("eyebrow",$l(12,.3,{color:"accent"}),{role:"eyebrow"}),or("title",{textStyle:"heading-2",...cg(i3,-.03,.94)},{role:"heading",mark:"accentItalic"}),or("intro",Pf(U("body",14),1.6),{props:{...ne,maxWidth:360},mark:"accentItalic"}),n3(667,419,{},()=>!0),s3()]},{kind:"group",name:"Chapters",props:{...N,gap:48,gapPhone:48,line:!1},when:ig,parts:[{kind:"list",key:"entries",name:"Chapter",props:{...N,direction:"row",gap:24,gapPhone:8,share:[12],align:"start"},parts:[mk(),{kind:"group",name:"Words",props:{...N,gap:14,gapPhone:14},parts:uk()}]}]},{kind:"group",name:"Heading",props:{...N,gap:24,gapPhone:24,align:"center",maxWidth:760,widthFit:"fill"},when:gk,parts:[hk("eyebrow",$l(12,.3,{color:"accent"}),{role:"eyebrow"}),hk("title",{textStyle:"heading-2",...cg(i3,-.03,.94)},{role:"heading",mark:"accentItalic"}),hk("intro",Pf(U("body",14),1.6),{props:{...ne,maxWidth:520},mark:"accentItalic"}),s3({align:"center"})]},n3(506,192,{maxWidth:900,widthFit:"fill"},gk),{kind:"group",name:"Chapters",props:{...N,gap:48,gapPhone:48,line:!0,maxWidth:760,widthFit:"fill",sectionPaddingTop:16},when:d3,parts:[{kind:"list",key:"entries",name:"Chapter",props:{...N,gap:8,gapPhone:8},parts:[mk(),{kind:"group",name:"Words",props:{...N,gap:14,gapPhone:14},parts:uk()}]}]},{kind:"group",name:"Chapters",props:{...N,gap:56,gapPhone:56,maxWidth:1e3,widthFit:"fill",sectionPaddingTop:16,mirrorCards:"even"},when:cfe,parts:[{kind:"list",key:"entries",name:"Chapter",props:{...N,direction:"row",gap:64,gapPhone:0,share:[50],align:"start"},parts:[{kind:"group",name:"Entry",props:{...N,gap:8,gapPhone:8},parts:[mk(),{kind:"group",name:"Words",props:{...N,gap:14,gapPhone:14},parts:uk()}]},{kind:"group",name:"Spacer",props:{...N},keepEmpty:!0,parts:[]}]}]}],drop:{...ee,...se,layout:"the Box's own arrangement replaces it: Split a row of two Boxes; Spine and Alternating a centred column (Track is skipped)"}},f3=()=>({eyebrow:ag.eyebrow,title:kr(ag.title),intro:ag.intro,ctaText:fo.text,ctaHref:fo.href,entries:t3()}),p3=()=>({eyebrow:ng.eyebrow,title:kr(ng.title),intro:ng.intro,ctaText:fo.text,ctaHref:fo.href,entries:r3()}),u3={TimelineTrack:lfe,Timeline:dfe};import{tabletKey as hfe}from"efficient-easel/draw";import{rootIsDark as ffe}from"efficient-shell/format";function EVe(e="auto"){return e==="light"?!0:e==="dark"?!1:!ffe({whenUnset:!0})}function m3(e,o){return Number.isFinite(e)&&Number.isFinite(o)&&!(e===0&&o===0)}function yk(e){let o=Number.parseFloat(e??"");return Number.isFinite(o)?o:0}var pfe=["tall","square","wide"],ufe="tall";function h3(e){return pfe.includes(String(e??""))?String(e):ufe}var AVe={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"},RVe=[{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:""}],mfe=/^https?:\/\//i;function LVe(e){let o=(e.mapsUrl??"").trim();return{photo:"",group:"",groupName:"",name:e.name??"",state:e.state??"",country:e.country??"",timezone:"",address:e.address??"",phone:e.phone??"",hours:e.hours??"",lat:yk(e.lat),lng:yk(e.lng),mapsUrl:mfe.test(o)?o:""}}function bk(e){let o=String(e??"").split(" \xB7 ");return{state:(o[0]??"").trim(),country:(o[1]??"").trim()}}var FVe="other",BVe={routingNumber:"02 \xB7 Routing",routingTagline:"What can we help you with?",groups:[{id:"fitment",eyebrow:"A \xB7 Label",title:"Group one",copy:"Short description of this routing group.",response:"< 48h"},{id:"trade",eyebrow:"B \xB7 Label",title:"Group two",copy:"Short description of this routing group.",response:"< 24h"},{id:"press",eyebrow:"C \xB7 Label",title:"Group three",copy:"Short description of this routing group.",response:"< 48h"},{id:"order",eyebrow:"D \xB7 Label",title:"Group four",copy:"Short description of this routing group.",response:"< 24h"}],formNumber:"03 \xB7 Message",formHeading:"Send *a note.*",metaLines:["Encrypted in transit","Stored 12 months"],showOther:!0,otherLabel:"Other",otherNoteTitle:"No matching team",otherNoteBody:"Tell us what you need in the message field below \u2014 we'll route it to whoever can help.",buttonText:"Send Message \u2192",consent:"By submitting, you agree to our privacy policy. We never share contact details with third parties.",channels:[{label:"Team one",value:"team-one@email.com",href:"mailto:team-one@email.com",sub:"Detail \xB7 Detail",groupId:"fitment"},{label:"Team two",value:"team-two@email.com",href:"mailto:team-two@email.com",sub:"Detail \xB7 Detail",groupId:"trade"},{label:"Team three",value:"team-three@email.com",href:"mailto:team-three@email.com",sub:"Detail \xB7 Detail",groupId:"press"},{label:"Team four",value:"team-four@email.com",href:"mailto:team-four@email.com",sub:"Detail \xB7 Detail",groupId:"order"},{label:"Phone",value:"+1 (000) 000-0000",href:"tel:+10000000000",sub:"Mon\u2013Fri \xB7 9:00\u201318:00"}]};function x3(e){let o=String(e??"").replace(/[^+\d]/g,"");return o?`tel:${o}`:void 0}var tr=e=>typeof e=="string"?e:e==null?"":String(e),wk=e=>Array.isArray(e.locations)?e.locations.map(o=>o??{}):[],Ul=e=>tr(e.group),k3=e=>`loc-${e}`,T3=e=>tr(e.state).trim()||bk(tr(e.region)).state,P3=e=>tr(e.country).trim()||bk(tr(e.region)).country,g3=e=>[T3(e),P3(e)].filter(Boolean).join(" \xB7 "),xfe=e=>wk(e).some(o=>tr(o.photo).trim()!==""),gfe=e=>wk(e).some(o=>m3(Number(o.lat),Number(o.lng))),Ife=(e,o)=>wk(e).filter(t=>Ul(t)===Ul(o)).length,yfe=(e,o)=>Ife(e,o)===1?"wide":h3(e.imageShape),Sk={top:100,bottom:100,topPhone:60,bottomPhone:60},I3=48,Tr=(e,o={})=>({...dr(e),...o}),Ck={top:1,right:1,bottom:1,left:1},vk={...N,direction:"row",share:"equal",gap:0},bfe=e=>o=>o>sf(o)?{...N,gap:0}:{...vk,...o>1?{phoneRow:e}:{}},kk=!0,Sfe={kind:"group",name:"Gallery",props:{...N,gap:20,...kk?{_hidden:!0}:{}},when:xfe,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:Ck,...Zo(12,12)},item:(e,o,t)=>({props:{...tr(e.photo).trim()?{bgImage:tr(e.photo),hover:"mono"}:{},link:`#${k3(o)}`,boxShape:yfe(t,e)}}),parts:[{kind:"text",key:"name",props:j,style:Tr(11,{letterSpacing:.22,color:"text"})}],groups:{of:Ul,name:"Group",props:{...N,gap:10},head:e=>({label:Ul(e[0]??{})}),parts:[Ie("label",Tr(11,{color:"accent",letterSpacing:.3}))],itemsName:"Cities",itemsProps:bfe(2),perRow:sf,rowName:"Row",rowProps:{...vk,phoneRow:2}}}]}]},wfe={kind:"group",name:"Words",props:{...N,gap:12,gapPhone:12,...Zo(28,28),sectionHeightMode:"fixed",sectionHeightValue:280,sectionHeightUnit:"px",sectionHeightModePhone:"auto"},parts:[{kind:"group",name:"Name row",props:{...N,direction:"row",justify:"between",align:"start",gap:14,share:"content",phoneRow:2,sharePhone:"content",wrapPhone:"wrap",sectionPaddingBottom:6,sectionPaddingBottomPhone:6},parts:[{kind:"group",name:"Name",props:{...N,gap:6,gapPhone:6},parts:[{kind:"text",key:"name",role:"heading",props:j,style:{textStyle:"heading-3",...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)=>g3(t)]),when:(e,o)=>g3(o??{})!==""}]},{kind:"group",name:"Time zone",props:{...N,sectionBorder:Ck,...Zo(6,10)},parts:[{kind:"text",key:"timezone",props:{...ne,textFit:"line"},style: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:{...Ro,...Fs,variant:"ghost",arrow:!1,_partStyles:{label:Tr(13,{letterSpacing:.18,color:"text",lineHeight:24/13})}},box:[["phone","label"],["phone","href",e=>x3(tr(e))??"#"]],when:(e,o)=>tr(o?.phone).trim()!==""},{kind:"text",key:"hours",props:ne,style:Tr(12,{letterSpacing:.18,lineHeight:1.7})}]},Cfe={kind:"block",type:"LocationMap",props:e=>({mapTheme:typeof e.mapTheme=="string"?e.mapTheme:"auto"}),box:["name","lat","lng","mapsUrl","geocode",...["region","state"].map(e=>[e,"state",(o,t)=>T3(t)]),...["region","country"].map(e=>[e,"country",(o,t)=>P3(t)])]},vfe={kind:"group",name:"Map",props:{...N,sectionBorder:{top:1,right:0,bottom:0,left:0}},parts:[Cfe]},kfe={kind:"list",key:"locations",name:"City",props:(e,o)=>({...N,gap:0,justify:"between",sectionBorder:Ck,jumpHighlight:!0,sectionAccent:pn(e,o)>=0?Rl(e.sectionAccent,o):-1}),item:(e,o)=>({props:{anchor:k3(o)}}),parts:[wfe,vfe],groups:{of:Ul,name:"Group",props:{...N,gap:20},head:e=>{let o=e[0]??{};return{key:Ul(o),groupName:tr(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)=>tr(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=>({...vk,columns:sf(e),[hfe("columns")]:1})}},y3=Tr(10,{letterSpacing:.25}),Tfe={kind:"block",type:Jr,props:{...N,name:"Credit",direction:"row",justify:"end",align:"center",gap:6,share:"content",wrap:!0},when:gfe,slot:Qr,keepEmpty:!0,parts:[{kind:"block",type:"Text",props:{...ne,text:"Location coordinates \xA9",_partStyles:{text:y3}}},{kind:"block",type:"ButtonBlock",props:{...Ro,...Fs,variant:"ghost",arrow:!1,label:"OpenStreetMap contributors",href:"https://www.openstreetmap.org/copyright",_partStyles:{label:{...y3,color:"labels"}}}}]},b3=(e,o)=>Object.fromEntries(o.filter(t=>e[t]!==void 0).map(t=>[t,e[t]])),S3=["sectionPaddingTop","sectionPaddingTopTablet","sectionPaddingTopPhone"],w3=["sectionPaddingBottom","sectionPaddingBottomTablet","sectionPaddingBottomPhone"],C3=e=>e.map(o=>[o,o,(t,r)=>ie(r,Sk)[o]]),v3=["sectionAccent","sectionAccent",un],Pfe=[...Ga,...Ni,...Object.values(Fe)],Efe={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",...wt,...b3(ie(e,Sk),S3),sectionPaddingBottom:I3,sectionPaddingBottomPhone:I3,...Bs(e,o)}),box:[...re.filter(e=>e!=="sectionAccent"&&e!=="anchor"),v3,["anchor","anchor",e=>Uc(e).trim()?e:"studios"],...C3(S3)],parts:[$x("sectionNumber","heading","tagline"),Sfe],also:[{name:"City maps",boxProps:(e,o)=>({...Q,direction:"column",gap:40,sectionBorder:{bottom:1},...wt,sectionPaddingTop:0,sectionPaddingTopPhone:0,...b3(ie(e,Sk),w3),...Bs(e,o)}),box:[...Pfe,v3,...C3(w3)],parts:[kfe,Tfe]}],reads:{mapTheme:"City maps Box: each Map block's Map theme",imageShape:"City pictures Box: each picture Box's Box shape"},site:mn,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)"}},E3={ContactLocations:Efe};import{SITE_SIDE as _3,sideLengthAt as _fe}from"efficient-easel/screen/lib/content/length-units";import{viewKeyAt as Tk}from"efficient-easel/draw";var Ofe=["FAQ","Footprint","LongRead","ProcessSteps","RelatedProducts"];var hn=(e,o)=>()=>({top:e,topPhone:o}),O3=e=>o=>{let t=Il(e),r={...o,[jr.top]:td(o,t).top},a=l=>{let d=_fe(r,jr,Qn,l,"top");return d?.unit==="px"?d.value:void 0},n=l=>q(o[Tk(jr.top,l)])===void 0?void 0:a(l),s=n("tablet"),i=n("mobile");return{top:a("desktop")??t.top??0,...s!==void 0?{topTablet:s}:{},...i!==void 0?{topPhone:i}:{}}},Afe={Collections:hn(120,70),Events:hn(120,70),FAQ:hn(120,70),GalleryB:hn(120,70),FitmentTable:hn(120,80),SpecTable:hn(120,80),LongRead:hn(120,80),RelatedProducts:hn(0,0),Footprint:O3("Footprint"),ProcessSteps:O3("ProcessSteps"),ProductGrid:e=>({top:q(e.padTop)??120,topPhone:0})};function Rfe(e,o={}){let t=$(fr,e),r=$(Afe,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=Jt(e),s=jx(e),i=t.headRows.filter(d=>![t.num,t.title,t.description,"linkText","linkHref"].includes(d)),l={...Object.fromEntries(i.filter(d=>!(d in s)).map(d=>[d,"a head setting no Header Box part reads (lib/document/blocks/general/section-head-looks `headReads`)"])),...o.drop};return{name:$(En,e)??e,boxProps:(d,f)=>{let u=r(d),p=o.roomBelow?{sectionPaddingBottom:o.roomBelow.bottom,sectionPaddingBottomPhone:o.roomBelow.bottomPhone}:{},m=typeof o.boxProps=="function"?o.boxProps(d,f):o.boxProps??{},h=Ds(e)==="editorial"?wt:{};return{...Q,direction:"column",gap:mf[Ds(e)],sectionPaddingTop:u.top,...u.topTablet!==void 0?{sectionPaddingTopTablet:u.topTablet}:{},...u.topPhone!==void 0?{sectionPaddingTopPhone:u.topPhone}:{},...h,...p,...m}},box:[...re,...a?[[a,"sectionPaddingTop",(d,f)=>r(f).top]]:[]],parts:[n,...(()=>{let d=a&&IM.has(e)?{[Tk(a,"tablet")]:0,[Tk(a,"mobile")]:0}:{},f={...a?{[a]:0}:{},...d,...o.coreProps},u={kind:"core",keep:"rest",...Object.keys(f).length?{props:f}:{},...o.slots?{slots:o.slots}:{}};return[o.coreBox?{kind:"group",name:o.coreBox.name,props:o.coreBox.props,parts:[u]}:u]})(),...o.partsAfter??[]],...Object.keys(s).length?{reads:s}:{},...Object.keys(l).length?{drop:l}:{},...o.pressHeading?{pressKeepsEmpty:[t.title]}:{},...o.skip?{skip:o.skip}:{}}}var Lfe={...N,direction:"accordion",rowStyle:"numbered"},Ffe={sectionPaddingLeft:_3,sectionPaddingRight:_3},Bfe={Footprint:{slots:{[Ue]:[QE()]},pressHeading:!0},ProcessSteps:{slots:(e,o)=>o.press?{[mc]:JH().map(t=>({...t,props:{...t.props,...Ffe}}))}:{},boxProps:{gapPhone:mf.editorial}},FAQ:{slots:{[Ue]:[JE()]},pressHeading:!0,coreBox:{name:"Questions",props:Lfe},coreProps:{sectionAccent:Hr},roomBelow:{bottom:120,bottomPhone:70},boxProps:(e,o)=>o.press?{}:{[uM]:Is},skip:e=>{let o=e._partStyles??{},t=ZE().filter(r=>o[r]!==void 0);return t.length?`held: its rows carry their own run style (_partStyles ${t.map(r=>`"${r}"`).join(", ")}), which the Box path does not draw the same`:void 0}}},A3=Object.fromEntries(Ofe.map(e=>[e,Rfe(e,$(Bfe,e))]));import{BLOCK_WIDTH_LIMIT as Nfe}from"efficient-easel/draw";var dg={eyebrow:Ye.eyebrow,title:Ye.headingAccent,deck:"Add a sentence or two introducing this document."},I7e={label:"Document masthead",defaultProps:{eyebrow:"",title:"",deck:"",meta:[]}};var H3={minWidth:Nfe.min},R3=(e,o,t)=>({...Ie(e,{...o,...df}),props:{...j,align:"right",...Rs,...t}}),W3={top:1,bottom:0},Ek=(e,o,t,r)=>({kind:"group",name:e,props:{...N,sectionPaddingBottom:o,sectionPaddingBottomPhone:t},parts:[r]}),L3={widthFit:"fill",...H3},F3={top:100,bottom:60,topPhone:60,bottomPhone:40},Dfe={...U("label",13),letterSpacing:.22,lineHeight:1.8},B3={textStyle:"heading-1",...Ct("headingLarge",56,8,128),case:"upper",weight:500,lineHeight:.88,letterSpacing:-.04},Mfe=()=>({name:"Page Header",boxProps:e=>({...Q,direction:"column",gap:0,sectionBorder:{bottom:1},...ie(e,F3)}),box:[...re,...ge(F3)],parts:[{kind:"group",name:"Header",props:{...N,direction:"row",align:"end",justify:"between",gap:40,gapPhone:16,share:"content",sectionPaddingBottom:32},parts:[Ek("Eyebrow",12,0,{...Ie("eyebrow",U("label",13)),props:{...j,...Rs}}),{kind:"text",key:"title",role:"heading",props:{...j,tag:"h1",...L3},style:B3,mark:"accentItalic",when:e=>!Sv(e)},{kind:"text",key:"title",role:"heading",props:{...j,tag:"h2",...L3},style:B3,mark:"accentItalic",when:Sv},{kind:"group",name:"Details",props:{...N,align:"stretch",gap:0,gapPhone:0,sectionPaddingBottom:12,sectionPaddingBottomPhone:0},parts:[{kind:"list",key:"meta",name:"Detail",flat:!0,parts:[ff("label","value",Dfe,Rs)]}]}]},{kind:"group",name:"Deck",props:{...N,maxWidth:760,sectionBorder:W3,sectionPaddingTop:28},parts:[{kind:"text",key:"deck",props:ne,style:{textStyle:"body-1",fontRole:"accent",...U("body",22,19),italic:!0,lineHeight:1.5}}]}],drop:{...ee,...se,[ux]:"read by the title part's `when`: 2 (set by lib/document/one-h1 on a later opener) makes the Text an h2, anything else an h1"}}),$3=()=>({eyebrow:dg.eyebrow,title:kr(dg.title),deck:dg.deck,meta:[{label:Ye.label,value:Ye.value},{label:Ye.label,value:Ye.value}]}),N3={top:80,bottom:40,topPhone:60,bottomPhone:32},Hfe={...U("label",13),letterSpacing:.18,lineHeight:1.8},D3={...U("label",13),letterSpacing:.22,lineHeight:1.9},Wfe=()=>({name:"Issue Header",boxProps:e=>({...Q,direction:"column",gap:0,sectionBorder:{bottom:1},...ie(e,N3)}),box:[...re,...ge(N3)],parts:[{kind:"group",name:"Top",props:{...N,direction:"row",align:"end",justify:"between",gap:60,gapPhone:16,share:"content",sectionPaddingBottom:32},parts:[Ek("Eyebrow",14,14,Ie("eyebrow",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:[ff("lead","rest",Hfe)]}]}]},{kind:"group",name:"Bottom",props:{...N,direction:"row",align:"start",justify:"between",gap:60,gapPhone:16,share:"content",sectionBorder:W3,sectionPaddingTop:32},parts:[{kind:"text",key:"lead",props:{...j,maxWidth:720,...H3},style:{textStyle:"body-1",fontRole:"heading3",...U("headingSmall",20),lineHeight:1.5,letterSpacing:-.005,paragraphSpacing:16}},{kind:"group",name:"In this issue",props:{...N,align:"stretch",gap:0},parts:[Ek("Heading",6,6,{kind:"text",key:"issueHeading",props:{...j,align:"right",...Rs},style:{textStyle:"body-1",fontRole:"heading",...U("body",18),weight:400,letterSpacing:-.01,lineHeight:1.9,...df}}),{kind:"group",name:"Lines",props:{...N,align:"stretch",gap:0},parts:[{kind:"list",key:"issueList",name:"Line",flat:!0,parts:[R3("text",{color:"labels",...D3})]}]},R3("issueTotal",D3)]}]}],drop:{...ee,...se}}),M3={top:24,bottom:24,topPhone:16,bottomPhone:16},Pk={color:"labels",...U("label",13),letterSpacing:.2},U3=e=>(Array.isArray(e.items)?e.items:[]).filter(o=>o&&typeof o.label=="string"&&o.label.trim()!==""),_k=(e,o)=>o!==void 0&&U3(e).at(-1)===o,z3=(e,o)=>o!==void 0&&U3(e).includes(o),$fe=(e,o)=>z3(e,o)&&!_k(e,o)&&ro(o?.href),Ufe=()=>({name:"Breadcrumb",skip:e=>ro(e.meta)?'a trailing note after "\xB7" needs a second mark; none live':void 0,boxProps:e=>({...Q,...Hs,wrap:"wrap",gap:16,gapPhone:16,separator:"slash",sectionBorder:{bottom:1},...ie(e,M3)}),box:[...re,...ge(M3)],parts:[{kind:"list",key:"items",name:"Crumb",flat:!0,parts:[{kind:"button",key:"label",href:"href",variant:"ghost",when:$fe,props:{...Ro,...Fs,icon:"none"},style:Pk},{...Ie("label",Pk),when:(e,o)=>z3(e,o)&&!_k(e,o)&&!ro(o?.href)},{...Ie("label",{...Pk,color:"text"}),when:_k}]}],drop:{...ee,...se,meta:"a node that stores a note is skipped (`skip`); an empty one draws nothing"}}),G3={DocMasthead:Mfe(),Masthead:Wfe(),Breadcrumb:Ufe()};import{BLOCK_WIDTH_LIMIT as Gfe,hiddenKeyOf as jfe}from"efficient-easel/draw";import{readHidable as Ok}from"efficient-easel/draw";function zfe(e,o,t){return e||(t?.isEditing?c(o):void 0)}function R7e(e,o,t){let r=Array.isArray(e)?e:[];return r.length?r:t?.isEditing?o:[]}function j3(e,o,t){let r=Ok(e);if(!r.hidden)return zfe(r.text,o,t)}function K3(e){if(e==null)return;let o=Ok(e);return o.hidden?"":o.text}function L7e(e,o,t){return Ok(e).hidden?"":j3(e,o,t)}function F7e(e,o,t){return{text:j3(e,fo.text,t),href:o||fo.href}}var X3="MenuBlock",Ak=e=>(Array.isArray(e)?e:[]).filter(o=>o&&ro(o.label)),V3=e=>{let[o,t]=[e.metaLabel,e.metaValue].map(a=>(K3(a)??"").trim());if(!t)return o;let r=t.includes("==")?t:`==${t}==`;return o?`${o} ${r}`:r},Y3={top:0,bottom:0,topPhone:0,bottomPhone:0},Kfe={...pt,color:"labels",...U("label",12),letterSpacing:.24},Vfe={kind:"group",name:"Note",props:{...N,justify:"center",sectionBorder:{top:0,right:0,bottom:0,left:1},sectionPaddingLeft:28,[jfe("mobile")]:!0},parts:[{kind:"block",type:"Text",when:e=>V3(e)!=="",props:e=>({...j,textFit:"line",text:V3(e),[Pd]:{text:Kfe}})}]},Z3=()=>({tabs:[],metaLabel:Ye.label,metaValue:Ye.value}),q3="the note Text inside the Box (the label, then the value in the accent); no words, no Text",J3={direction:"row",menuStyle:"tabs",currentPage:!0,minWidth:Gfe.min},Q3=e=>({...e,boxProps:o=>({...Q,direction:"row",align:"stretch",justify:"between",gap:0,stickTop:!0,[yr]:0,[Ja]:!0,sectionBorder:{bottom:1},...ie(o,Y3)}),box:[...re,...ge(Y3)]}),Yfe=()=>Q3({name:"Tab Bar",skip:e=>Ak(e.tabs).length?"its tabs need a Console menu first: they are typed labels and links, and the Menu block draws only a Console menu":void 0,reads:{metaLabel:q3,metaValue:q3},parts:[{kind:"block",type:X3,props:J3},Vfe],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"}}),qfe=()=>Q3({name:"Category Bar",skip:e=>{if(Ak(e.tabs).length)return"its tabs are typed words with typed counts, not the blog's categories: a Blog categories Menu would replace them";if(Ak(e.links).length)return"its right-hand links are typed words: the bar holds the Menu only"},parts:[{kind:"block",type:X3,props:{...J3,[_o]:L0}}],drop:{...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"}}),eW={DocTabs:Yfe(),CategoryBar:qfe()};import{jsx as Ws,jsxs as Lk}from"react/jsx-runtime";import{slugify as Xfe}from"efficient-shell/format";import{jsx as Rk,jsxs as oW}from"react/jsx-runtime";var K7e="sticky top-[120px]";var fg={entry:{label:"Entry",follows:"Labels",builtIn:"13px",writable:!0},number:{label:"Entry number",follows:"Labels",builtIn:"13px",writable:!0}};var tW=(e,o)=>e?{[Ln]:o}:{},rW=(e,o)=>Np(e?.[wc(o)]?.role,fg[o],ci),aW=120;function nW({title:e,entries:o,stickyTop:t,sticky:r=!0,editing:a=!1,partStyles:n,numberForm:s=Lw,takesViewHide:i=!1}){let l=s==="plain",d=Wt(),f=i?d:Ua;return f.scope(oW("aside",{className:Jo(`${r?"sticky ":""}flex flex-col self-start max-[900px]:static`,f.className),style:r?{top:t}:void 0,...f.attrs,children:[e&&Rk("h4",{className:"mb-[18px] font-mono text-[length:var(--size-label,12px)] uppercase tracking-[0.3em] text-accent",children:go(e)}),o.map((u,p)=>{let m=Rk("span",{...tW(a,"number"),style:rW(n,"number"),className:"text-accent",children:rh(s,p)});return oW("a",{href:`#${u.anchor}`,className:`flex items-center ${l?"justify-start gap-1":"justify-between gap-3"} border-b border-line py-2.5 font-mono text-[length:var(--size-label,13px)] uppercase tracking-[0.18em] text-fg-dim transition-colors hover:text-fg${p===0?" border-t":""}`,children:[l&&m,Rk("span",{...tW(a,"entry"),style:rW(n,"entry"),children:go(u.label||"Section")}),!l&&m]},`${p}-${u.anchor}`)})]}))}function Zfe(e,o){return Xfe(e)||`section-${o+1}`}var Fk=e=>typeof e=="string"&&e.trim()!=="";function Bk(e){return(e??[]).filter(o=>Fk(o.heading)||Fk(o.label)||Fk(o.body))}function Nk(e){let o=new Set;return e.map((t,r)=>{let a=Zfe(t.label||t.heading||"",r),n=a,s=2;for(;o.has(n);)n=`${a}-${s++}`;return o.add(n),n})}function Dk(e){let o=[];for(let t of e.replace(/\r\n?/g,`
|
|
329
|
-
`).split(/\n[ \t]*\n/))t.split(`
|
|
330
|
-
`).map(r=>r.replace(/\s+$/,"")).filter(r=>r.trim()!=="").forEach((r,a)=>{let n=vp(r)[0].bullet,s=o.at(-1),i=a===0||!s||s.type==="ul"!==n;if(n){let l=r.slice(2);!i&&s?.type==="ul"?s.items.push(l):o.push({type:"ul",items:[l]})}else!i&&s?.type==="p"?s.text+=`
|
|
331
|
-
${r}`:o.push({type:"p",text:r})});return o}var Jfe=()=>[{label:c("First section"),heading:c("Your *first* section."),body:c(`Write the opening paragraph here.
|
|
332
|
-
|
|
333
|
-
- Start a line with a dash for a bullet.
|
|
334
|
-
- Add as many as you like.`)},{label:c("Second section"),heading:c("Your *second* section."),body:c("Leave a blank line between paragraphs to start a new one.")}],Qfe=aW;function pYe({tocTitle:e,sections:o,editing:t=!1,stickyTop:r=Qfe}){let a=Bk(o);if(a.length===0&&!t)return null;let n=a.length===0&&t?Jfe():a,s=Nk(n);return Ws(me,{as:"section",className:"relative z-[2] bg-bg",children:Lk("div",{className:"mx-auto grid max-w-[var(--sf-site-width,1600px)] grid-cols-[240px_1fr] items-start gap-20 border-b border-line px-[var(--sf-site-gutter,40px)] py-20 max-[900px]:grid-cols-1 max-[900px]:gap-10 max-[900px]:px-[min(24px,var(--sf-site-gutter,40px))] max-[900px]:py-[60px]",children:[Ws(nW,{title:e,entries:n.map((i,l)=>({label:i.label||"Section",anchor:s[l]})),stickyTop:r}),Ws("div",{className:"flex flex-col gap-16",children:n.map((i,l)=>Lk("article",{id:s[l],className:"flex flex-col gap-[18px]",style:{scrollMarginTop:r},children:[Lk("span",{className:"font-mono text-[length:var(--size-label,12px)] uppercase tracking-[0.3em] text-accent",children:[Rw(l)," \xB7 ",go(i.label||"Section")]}),i.heading&&Ws("h2",{className:"mb-2 border-b border-line pb-[18px] font-heading2 text-[length:min(var(--size-headingMedium,clamp(28px,3.5vw,44px)),var(--sf-heading-max,9999px))] font-medium uppercase leading-[1.04] tracking-[-0.025em]",children:go(i.heading)}),Dk(i.body??"").map((d,f)=>d.type==="ul"?Ws("ul",{className:"flex max-w-[680px] list-none flex-col gap-2.5 pl-0",children:d.items.map((u,p)=>Ws("li",{className:"relative pl-6 font-serif text-[length:var(--size-body,17px)] leading-[1.65] text-fg-dim before:absolute before:-top-0.5 before:left-1.5 before:text-[length:var(--size-body,24px)] before:leading-none before:text-accent before:content-['\xB7']",children:go(u)},p))},f):Ws("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 sW={top:80,bottom:80,topPhone:60,bottomPhone:60},iW=18,lW=18,cW=8,epe=10,Mk=e=>typeof e=="string"&&e.trim()!=="",dW=e=>Bk(e.sections),ope=e=>Dk(typeof e.body=="string"?e.body:"").map(o=>o.type==="ul"?{kind:"ul",text:o.items.map(t=>`- ${t}`).join(`
|
|
335
|
-
`)}:{kind:"p",text:o.text}),Hk={...dr(12),letterSpacing:.3,color:"accent",lineHeight:1.5},fW={textStyle:"body-1",fontRole:"accent",...U("body",17)},tpe=[Ie("label",Hk),{...Ie("title",Hk),when:(e,o)=>!Mk(o?.label)},{kind:"block",type:"Text",when:(e,o)=>!Mk(o?.label)&&!Mk(o?.title),props:{...j,text:"Section",_partStyles:{text:Hk}}},{kind:"group",name:"Heading",props:{...N,sectionPaddingBottom:cW,sectionPaddingBottomPhone:cW},parts:[{kind:"group",name:"Heading line",props:{...N,sectionBorder:{bottom:1},sectionPaddingBottom:lW,sectionPaddingBottomPhone:lW},parts:[{kind:"text",key:"heading",role:"heading",props:j,style:{textStyle:"heading-2",...Ct("headingMedium",28,3.5,44),case:"upper",weight:500,lineHeight:1.04,letterSpacing:-.025}}]}]},{kind:"list",key:"body",name:"Body",flat:!0,of:ope,parts:[{kind:"text",key:"text",props:ne,style:{...fW,lineHeight:1.7},when:(e,o)=>o?.kind==="p"},{kind:"text",key:"text",props:ne,style:{...fW,lineHeight:1.65,paragraphSpacing:epe},when:(e,o)=>o?.kind==="ul"}]}],rpe=900,ape={name:"Document Text",boxProps:e=>({...Q,direction:"row",gap:80,gapPhone:40,[Hx]:rpe,sectionBorder:{bottom:1},...ie(e,sW)}),box:["anchor","sectionAccent",...Ga,...Ni,...Object.values(Fe),...ge(sW)],parts:[{kind:"block",type:"Contents",props:e=>({title:e.tocTitle??"",sticky:!0,widthFit:"fixed",width:240,widthFitPhone:"fill"})},{kind:"group",name:"Sections",props:{...N,gap:64,gapPhone:64,widthFit:"fill"},parts:[{kind:"list",key:"sections",name:"Section",of:e=>dW(e),props:{...N,gap:iW,gapPhone:iW},item:(e,o,t)=>({props:{anchor:Nk(dW(t))[o]??`section-${o+1}`}}),parts:tpe}]}],reads:{tocTitle:"the Contents block's Heading"},drop:{...ee,stickyTop:"the Contents block draws DocBody's default (120px); 0 live nodes store it"}},pW={DocBody:ape};import{phoneKey as ipe}from"efficient-easel/draw";import{SITE_SIDE as lpe}from"efficient-easel/screen/lib/content/length-units";var CYe={eyebrow:"\u2014 Label",title:`Section headline *here.*
|
|
336
|
-
*Highlight line*`,body:"Describe this section in a sentence or two."},vYe={text:"Learn more"},kYe={label:"Image & Text Split",drawsPictures:!0,defaultProps:{eyebrow:"",title:"",body:"",imageSrc:"",reverse:!1,uppercase:!1,textAlign:"left",ctaText:"",ctaHref:"",imageBtnText:"",imageBtnHref:"",textBgSrc:"",overlay:60,imageOverlay:40}};function Wk(e){return typeof e=="number"&&Number.isFinite(e)?Math.min(Math.max(e,0),100):40}var uW="[--intro-edge:60px] max-[960px]:[--intro-edge:24px]",npe="overlay",spe=[{label:"Copy over image",value:"overlay"},{label:"Copy above image",value:"stacked"}];function pg(e){return xo(spe,npe,e)}var EYe={desktop:40,mobile:45,min:20,max:80,step:5};function _Ye(e,o){return`${typeof e=="number"?e:o}%`}var mW=(e,o,t)=>{let r=q(e),a=q(o),n=(s,i)=>i&&i!=="px"?{[s]:i}:{};return{...r===void 0?{}:{size:r,...n(Vt.size,t?.desktop)},...a===void 0?{}:{sizePhone:a,...n(Vt.sizePhone,t?.phone)}}},cpe=e=>pg(e.layout)==="stacked",hW=e=>Math.min(Math.max(q(e.overlay)??60,0),100),ug=e=>q(e)??100,dpe={textStyle:"heading-1",sizeToken:{...Ct("headingLarge",48,7,96).sizeToken,pxPhone:36},weight:500,lineHeight:.95,letterSpacing:-.03},fpe=[Ie("eyebrow",U("label",14)),...[!0,!1].map(e=>({kind:"text",key:"title",role:"heading",props:j,style:{...dpe,case:e?"upper":"none"},styleFrom:o=>{let t=GS(o);return mW(o.titleSizeDesktop,o.titleSizeMobile,{desktop:t.titleDesktop,phone:t.titleMobile})},when:o=>o.uppercase===!0===e})),{kind:"text",key:"body",props:{...ne,maxWidth:560},style:{textStyle:"body-1",...U("body",17,16),lineHeight:1.6,paragraphSpacing:24},styleFrom:e=>{let o=GS(e);return mW(e.bodySizeDesktop,e.bodySizeMobile,{desktop:o.bodyDesktop,phone:o.bodyMobile})}},{kind:"group",name:"Button",props:{...N,align:"start",sectionPaddingTop:8,sectionPaddingTopPhone:8},parts:[{kind:"button",key:"ctaText",href:"ctaHref",variant:"primary",props:Ro}]}],xW=e=>`${e}: a Button block has no colour of its own (it follows the site Button colour, as the old fallback did); 0 of 3 live US nodes store one (CLI read, 2026-11-03)`,ppe=()=>({name:"Scroll-Over Text",skip:e=>cpe(e)?"the stacked layout: its words row's height floor (`copyShare*`) and the header subtraction have no Box setting; 0 live US nodes":void 0,boxProps:e=>({...Q,direction:"column",justify:"center",align:"start",gap:24,gapPhone:24,share:"content",...pf,placement:"left",darken:hW(e),darkenStyle:"even",sectionHeightMode:"fixed",sectionHeightUnit:"%",sectionHeightValue:ug(e.heightDesktop),sectionHeightModePhone:"fixed",sectionHeightUnitPhone:"%",sectionHeightValuePhone:ug(e.heightMobile),[es]:Za}),box:[...re.filter(e=>!String(typeof e=="string"?e:e[0]).startsWith("sectionHeight")),["imageSrc","bgImage"],["imageSrcMobile","bgImagePhone"],["overlay","darken",(e,o)=>hW(o)],["heightDesktop","sectionHeightValue",e=>ug(e)],["heightMobile","sectionHeightValuePhone",e=>ug(e)]],parts:fpe,drop:{uppercase:"not a value of its own: it picks the heading part \u2014 Case Upper when on, None (as typed) when off",layout:"not a value of its own: the overlay layout is this tree; a stacked node is skipped (`skip`)",copyShareDesktop:"the stacked layout's words-row floor, read only there; a stacked node is skipped",copyShareMobile:"the stacked layout's words-row floor, read only there; a stacked node is skipped",sticky:"the old pin key, read as `stickTop` by the section pin's one reader (lib/content/section-sticky); the Box keeps a stored `stickTop` (SAME_KEYS), and this row is switched off until the stored pages hold `stickTop`",titleSizeDesktop:"read by the heading part's `styleFrom`: a number is its Size, `inherit` and unset follow the token",titleSizeMobile:"read by the heading part's `styleFrom`: a number is its phone Size, `inherit` and unset follow the token",bodySizeDesktop:"read by the words part's `styleFrom`: a number is its Size, `inherit` and unset follow the token",bodySizeMobile:"read by the words part's `styleFrom`: a number is its phone Size, `inherit` and unset follow the token",...Object.fromEntries(pF.map(e=>[e,"read by its part's `styleFrom`: the unit of that view's Size"])),buttonColor:xW("Button color"),buttonTextColor:xW("Button text color"),...ee}}),yW={textStyle:"heading-2",...U("headingMedium",56,36),weight:400,lineHeight:1.05,letterSpacing:-.03},upe={textStyle:"body-1",...U("body",16),lineHeight:1.7},bW=e=>({kind:"text",key:"body",props:{...ne,maxWidth:520},style:{...upe,paragraphSpacing:e}}),hg={top:0,bottom:0,topPhone:0,bottomPhone:0},$k=(e,o)=>typeof e.sectionHeightMode=="string"&&e.sectionHeightMode!=="auto"?{}:{sectionHeightMode:"fixed",sectionHeightUnit:"%",sectionHeightValue:o,sectionHeightModePhone:"auto"},mpe=(e,o)=>{let t=$k(e,o);return Object.keys(t).length?t:{sectionHeightMode:e.sectionHeightMode,...e.sectionHeightValue===void 0?{}:{sectionHeightValue:e.sectionHeightValue},...e.sectionHeightUnit===void 0?{}:{sectionHeightUnit:e.sectionHeightUnit},sectionHeightModePhone:"auto"}},SW={boxShapePhone:"landscape"},wW="needs a black-and-white setting on a Box picture (the old photograph followed it, else the site's Photography); 0 live US nodes store it (CLI read, 2026-11-03)",hpe=(e,o)=>({[e]:o,[ipe(e)]:o}),xpe={textStyle:"heading-2",...U("headingMedium",40),weight:500,case:"none",lineHeight:1,letterSpacing:-.02},gW=e=>(Array.isArray(e.stats)?e.stats:[]).filter(o=>o&&(String(o.value??"").trim()!==""||String(o.label??"").trim()!=="")),gpe=()=>({name:"Brand Text",boxProps:(e,o)=>({...Q,...St("background")(e,o),direction:"row",share:"equal",gap:0,gapPhone:0,sectionBorder:{top:1,bottom:1},...ie(e,hg),...$k(e,100)}),box:[...re,...ge(hg)],parts:[{kind:"group",name:"Words",props:()=>({...N,justify:"center",gap:28,gapPhone:28,sectionBorder:uf({right:1}),sectionBorderPhone:uf({}),...pf,sectionPaddingTop:100,sectionPaddingBottom:100,sectionPaddingTopPhone:60,sectionPaddingBottomPhone:60,sectionPaddingRight:lpe}),parts:[Ie("eyebrow",U("label",14)),{kind:"text",key:"heading",role:"heading",props:j,style:{...yW,case:"none"},mark:"accentItalic"},bW(28),{kind:"group",name:"Stats",props:{...N,sectionPaddingTop:16,sectionPaddingTopPhone:16},parts:[{kind:"group",name:"Figures",props:e=>({...N,direction:"row",share:"equal",gap:24,gapPhone:24,maxWidth:520,phoneRow:Math.min(Math.max(gW(e).length,1),3),...hpe("sectionBorder",uf({top:1})),sectionPaddingTop:28,sectionPaddingTopPhone:28}),parts:[{kind:"list",key:"stats",name:"Stat",of:gW,props:{...N,gap:4,gapPhone:4},parts:[{kind:"text",key:"value",props:Ls,style:xpe},Ie("label",{...U("label",13),color:"labels",letterSpacing:.2})]}]}]}]},Mv("Picture","imageSrc",SW)],drop:{...ee,grayscale:wW,...se}}),mg=e=>{let o=e.textAlign==="center"||e.textAlign==="right"?{align:e.textAlign}:{},t=e.textAlignPhone==="left"||e.textAlignPhone==="center"||e.textAlignPhone==="right"?{alignPhone:e.textAlignPhone}:{};return{...o,...t}},Ipe=e=>e.textAlign==="center"||e.textAlign==="right"?_p[e.textAlign]:"stretch",ype=e=>Math.min(Math.max(q(e.overlay)??60,0),100),CW=e=>typeof e=="string"&&e.trim()!=="",bpe={...Ro,align:"center",alignPhone:"center",buttonFillOpacity:0,buttonBorder:{width:1},buttonPaddingTop:16,buttonPaddingRight:28,buttonPaddingBottom:16,buttonPaddingLeft:28,buttonPaddingTopPhone:12,buttonPaddingRightPhone:20,buttonPaddingBottomPhone:12,buttonPaddingLeftPhone:20},IW=e=>({...Mv("Picture","imageSrc",(o,t)=>({...CW(o.imageSrc)&&Wk(o.imageOverlay)>0?{darken:Wk(o.imageOverlay),darkenStyle:"even"}:{},placement:"center",...SW,sectionBorder:uf(e?{left:1}:{right:1}),...vW(e?"left":"right",Fl(t))}),[{kind:"button",key:"imageBtnText",href:"imageBtnHref",variant:"ghost",props:bpe,style:{...dr(13,12),letterSpacing:.18}}]),when:o=>o.reverse===!0===e}),vW=(e,o)=>{let t=Math.max(60-o,0);return{sectionPaddingLeft:e==="left"?60:t,sectionPaddingRight:e==="right"?60:t}},Spe={kind:"group",name:"Words",props:(e,o)=>{let t=e.reverse===!0;return{...N,justify:"center",align:Ipe(e),placement:e.textAlign==="center"?"center":e.textAlign==="right"?"right":"left",...mpe(e,72),gap:24,gapPhone:24,...CW(e.textBgSrc)?{darken:ype(e),darkenStyle:"even"}:{},...pf,sectionPaddingTop:100,sectionPaddingBottom:100,...vW(t?"right":"left",Fl(o)),sectionPaddingTopPhone:60,sectionPaddingBottomPhone:60}},box:[["textBgSrc","bgImage"]],parts:[{...Ie("eyebrow",U("label",14)),styleFrom:mg},{kind:"text",key:"title",role:"heading",props:j,style:yW,styleFrom:e=>({case:e.uppercase===!0?"upper":"none",...mg(e)})},{...bW(24),styleFrom:mg},{kind:"group",name:"Button",props:{...N,sectionPaddingTop:8,sectionPaddingTopPhone:8},parts:[{kind:"button",key:"ctaText",href:"ctaHref",variant:"primary",props:e=>{let o=mg(e);return{...Ro,...o.align?{align:o.align}:{},...o.alignPhone?{alignPhone:o.alignPhone}:{}}}}]}]},wpe=()=>({name:"Image & Text Split",boxProps:(e,o)=>({...Q,...St("background")(e,o),direction:"row",share:"equal",gap:0,gapPhone:0,sectionBorder:{top:1,bottom:1},...ie(e,hg),...$k(e,72)}),box:[...re,...ge(hg)],parts:[IW(!1),Spe,IW(!0)],drop:{reverse:"not a value of its own: it picks the order \u2014 the Picture Box first, or after the Words",uppercase:"not a value of its own: the heading part's Case \u2014 Upper when on, None (as typed) when off",textAlign:"read by each words part (its Align) and the Words Box (its Align); left writes nothing, as the old emitted no class",textAlignPhone:"read by each words part as its phone Align",textAlignTablet:"not carried to the words part's own tablet Align (`alignTablet`) yet: no old node stores it (new with the Tablet view's Text alignment row, 0 stored on the US sites 2026-11-06), so nothing moves",overlay:"read by the Words Box: its Darken over the words picture (60 when unset); no picture, no wash",imageOverlay:"read by the Picture Box: its Darken over the image column's picture (40 when unset, none at 0); no picture, no wash",grayscale:wW,...ee,...se}}),kW={IntroBleed:ppe(),Manifesto:gpe(),Split:wpe()};var EW={headPlacement:void 0},TW={top:0,bottom:0,topPhone:0,bottomPhone:0},Cpe=()=>({name:"Form",ownBoxConverts:!0,boxProps:e=>({...Q,direction:"column",...ie(e,TW)}),box:[...re,...ge(TW)],parts:[{kind:"core",keep:"rest",props:EW}],drop:{...ee,...se}}),PW={top:120,bottom:120,topPhone:60,bottomPhone:60},vpe=()=>({name:"Photo Submission Form",boxProps:e=>({...Q,direction:"column",gap:24,...ie(e,PW)}),box:[...re,...ge(PW)],parts:[Ie("eyebrow"),{kind:"text",key:"title",role:"heading",props:j,style:{textStyle:"heading-2"},mark:"accentItalic"},{kind:"text",key:"body",role:"body",props:ne},{kind:"core",as:"Form",keep:["formSlug"],rename:{buttonText:"submitText",consent:"finePrint"},props:EW}],skip:e=>e.layout==="boxes"?`its words are in its two SubmitBox regions (layout "boxes"); this row reads only the section's own words`:void 0,drop:{...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'}}),_W={Form:Cpe(),SubmitBuild:vpe()};import{phoneKey as OW}from"efficient-easel/draw";var RW=1.5,AW={textStyle:"body-1",...U("body",15),lineHeight:RW},kpe={...pt,...U("label",12),letterSpacing:.12,lineHeight:RW},LW=()=>({type:Y,props:{...N,direction:"row",justify:"between",align:"start",gap:16,gapPhone:16,share:"content",phoneRow:2,[OW("share")]:"content",[OW("wrap")]:"nowrap",...Zo(12,0),sectionBorder:{top:1},name:"Item"},slots:{[De]:[{type:Y,props:{...N,gap:0,gapPhone:0,name:"Item words"},slots:{[De]:[Ze("label",{...j,tag:"p"},AW),Ze("meta",{...ne,tag:"p"},kpe)]}},Ze("amount",{...j,tag:"p"},AW)]}});var Tpe=()=>({name:"Order Table",boxProps:()=>({...Q,direction:"column"}),box:[...re],parts:[{kind:"core",keep:"rest",headless:!0,slots:{[Ue]:[LW()]}}],drop:{...ee}}),FW={OrderSummary:Tpe()};import{phoneKey as Ppe}from"efficient-easel/draw";var o9e={eyebrow:"By the numbers",title:`A picture worth
|
|
337
|
-
*a thousand rows.*`},BW=["eyebrow","title","body","caption"],t9e={label:"Chart",defaultProps:{eyebrow:"",title:"",body:"",items:[],caption:"",chartStyle:"bars",valueSuffix:""}};var NW=["eyebrow","title","body"],a9e={label:"Mockup Card",defaultProps:{eyebrow:"",title:"",body:"",variant:"spec-card",cardHeader:"",badge:"",cardTitle:"",cardSubtitle:"",pills:[],tiles:[],rows:[],button:"",footnote:"",col1Title:"",col1Cards:[],col2Title:"",col2Cards:[],col3Title:"",col3Cards:[],col4Title:"",col4Cards:[],barsHeading:"",bars:[],termLines:[],urlText:"",heroTitle:"",heroButton:"",products:[],align:"right"}};var HW={top:76,bottom:76,topPhone:76,bottomPhone:76},WW=()=>({kind:"group",name:"Words",props:{...N,gap:20,gapPhone:20},parts:[{kind:"group",name:"Chip row",props:{...N,direction:"row",phoneRow:2,[Ppe("share")]:"content"},parts:[Al("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:Fp(16)}]}),$W=e=>(o,t)=>({...Q,sectionAccent:Ll(o.sectionAccent??0,t),direction:"row",align:"center",gap:56,gapPhone:56,share:e,sectionBorder:{top:1,bottom:1},...ie(o,HW)}),UW=[...re.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,t)=>Ll(e,t)],...ge(HW)],Epe=()=>({name:"Chart",boxProps:$W([42]),box:UW,parts:[WW(),{kind:"group",name:"Chart",props:{...N,gap:16,gapPhone:16},keepEmpty:!0,parts:[{kind:"core",keep:"rest",props:Ol},Ie("caption",{color:"muted",...U("label",10),letterSpacing:.14})]}],pressKeepsEmpty:[...BW],drop:{...ee,...se}}),DW=e=>e.align==="left",MW={kind:"group",name:"Card",keepEmpty:!0,props:N,parts:[{kind:"core",keep:"rest",props:Ol}]},_pe=()=>({name:"Mockup Card",boxProps:$W("equal"),box:UW,parts:[{...MW,when:DW},WW(),{...MW,when:e=>!DW(e)}],pressKeepsEmpty:[...NW],drop:{...ee,...se}}),zW={Chart:Epe(),Mockup:_pe()};import{phoneKey as Ape}from"efficient-easel/draw";function GW(e,o=3){let t=Array.from({length:o},()=>[]);return e.forEach((r,a)=>t[a%o].push(r)),t}function jW(e){return Math.max(e*6,30)}var KW={top:76,bottom:76,topPhone:76,bottomPhone:76},Rpe=e=>(Array.isArray(e.apps)?e.apps:[]).map(o=>o&&typeof o=="object"&&typeof o.text=="string"?o.text.trim():"").filter(Boolean),Uk=e=>GW(Rpe(e)),Lpe=e=>Qx({loopDuration:jW(e)}),Fpe={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,[Ape("share")]:"content"},parts:[Al("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:Fp(16)}]},Bpe=e=>({kind:"group",name:`Row ${e+1}`,when:o=>Uk(o)[e].length>0,props:o=>({...N,direction:"row",gap:12,gapPhone:12,loop:"scroll",...e%2===1?{scrollDirection:"right"}:{},loopDuration:Lpe(Uk(o)[e].length)}),parts:[{kind:"block",type:"Logos",props:{contained:!1,headPlacement:"own-box",look:"chips",grayscale:!1},slot:"logos",parts:[{kind:"list",key:"apps",name:"Logo",flat:!0,of:o=>Uk(o)[e].map(t=>({alt:t})),parts:[{kind:"block",type:"LogoBlock",box:["alt"]}]}]}]}),Npe={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"}}]},Dpe=[...re.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,t)=>Ll(e,t)],...ge(KW)],Mpe={name:"Integrations",boxProps:(e,o)=>({...Q,sectionAccent:Ll(e.sectionAccent??0,o),direction:"column",gap:48,gapPhone:48,sectionBorder:{top:1,bottom:1},...ie(e,KW)}),box:Dpe,parts:[Fpe,{kind:"group",name:"Rows",props:{...N,gap:12,gapPhone:12},parts:Array.from({length:3},(e,o)=>Bpe(o))},Npe],pressKeepsEmpty:["body","statValue","statLabel","note"],reads:{apps:"a Logo block per app, dealt into the three Rows"},drop:{...ee,...se}},VW={Integrations:Mpe},YW=()=>({eyebrow:c("Integrations"),title:c(`Plays well with
|
|
338
|
-
*your favourite apps.*`),apps:["Shopify","Xero","Stripe","Mailchimp","Zapier","HubSpot","QuickBooks","PayPal","Google Analytics"].map(e=>({text:e}))});var Hpe={title:"Back online in",zeroText:"Almost done. Back very soon."},qW=["title"],b9e={label:"Countdown",defaultProps:{...Hpe,endsAt:"",showUnits:!0}};var XW={top:48,bottom:48,topPhone:48,bottomPhone:48},Wpe={...Ie("title",{...UE(12),color:"muted"}),props:{...j,align:"center"}},$pe=()=>({name:"Countdown",boxProps:e=>({...Q,direction:"column",align:"center",gap:16,gapPhone:16,...ie(e,XW)}),box:[...re,...ge(XW)],parts:[Wpe,{kind:"core",keep:"rest",props:Ol}],pressKeepsEmpty:[...qW],drop:{...ee,...se}}),ZW={top:80,bottom:80,topTablet:60,bottomTablet:60,topPhone:60,bottomPhone:60},Upe=()=>({name:"Feature Banner",boxProps:e=>({...Q,direction:"column",sectionBorder:{bottom:1},...ie(e,ZW)}),box:[...re,...ge(ZW)],parts:[{kind:"core",keep:"rest",props:Ol}],drop:{...ee,...se}}),JW={Countdown:$pe(),FeaturedCover:Upe()};var QW={top:80,bottom:80,topPhone:60,bottomPhone:60},zpe=()=>{let e=jx("FitmentFinder");return{name:"Fitment Form",boxProps:o=>({...Q,direction:"column",gap:mf[Ds("FitmentFinder")],...ie(o,QW)}),box:[...re,...ge(QW)],parts:[Jt("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'}}},e$={FitmentFinder:zpe()};var xg={eyebrow:"Label",title:"Section *heading.*",body:"Add this section's copy here. A blank line starts a new paragraph."},_9e={label:"Editorial Text",defaultProps:{eyebrow:"",title:"",body:"",topBorder:!0}};var Ef={eyebrow:Ye.eyebrow,lead:"Introduce your company in a paragraph or two.",foundersHeading:"Add a short heading.",foundersBody:"Add a short statement here \u2014 a sentence or two is plenty.",attribution:"\u2014 Name, Year"},R9e={label:"Lead Text",defaultProps:{eyebrow:"",lead:"",stats:[],foundersHeading:"",foundersBody:"",attribution:"",padTop:60,padBottom:80}};var o$={eyebrow:"Limited release",title:"Banner headline",body:"A line or two of supporting copy."},F9e={label:"Banner",drawsPictures:!0,defaultProps:{eyebrow:"",title:"",body:"",imageSrc:"",ctaText:"",ctaHref:"",contained:!0,overlay:60}};var t$={title:`Section heading
|
|
339
|
-
*Highlight line*`},r$=[{label:fo.text,href:fo.href,variant:"primary"},{label:fo.text,href:fo.href,variant:"outline"}],D9e={label:"Call-to-Action Heading",defaultProps:{title:"",buttons:[],padTop:140,padBottom:140}};var gg="standard",i$=[{label:"Standard",value:"standard"},{label:"Editorial",value:"editorial"},{label:"Simple",value:"simple"},{label:"Statement",value:"statement"},{label:"Natural",value:"natural"},{label:"Essay",value:"essay"}],Gk=["numStyle","logoSrc","logoAlt","linkText","linkHref","_gLogo"],zk=[...Gk,"description"],a$={standard:["eyebrowLook"],editorial:[...Gk,"eyebrowLook"],simple:zk,statement:zk,natural:Gk,essay:zk},n$=["gap-5","gap-3"],s$=["text-[length:var(--size-body,16px)]","text-[15px]"];function $9e(e){return xo(n$,n$[0],e)}function U9e(e){return xo(s$,s$[0],e)}function z9e(e){return xo(i$,gg,e)}function G9e(e){let o=i$.map(r=>r.value),t=[...new Set(Object.values(a$).flat())];return Tt(e,t.map(r=>[[r],Sc("headStyle",o,gg,o.filter(a=>!a$[a].includes(r)))]))}var Oa={num:"01 / Section",title:"Section *title*",description:"Short supporting line",linkText:Ye.viewAll},q9e={label:"Section Header",drawsPictures:!0,defaultProps:{headStyle:gg,num:Oa.num,numStyle:Dd,title:Oa.title,description:"",logoSrc:"",logoAlt:"",linkText:"",linkHref:""}};var Ig={eyebrow:"\u2014 Label",title:`Section headline
|
|
340
|
-
*Highlight line*`,body:"A sentence or two of supporting copy."},Q9e={label:"Scroll-Over Text",drawsPictures:!0,defaultProps:{eyebrow:"",title:"",body:"",imageSrc:"",imageSrcMobile:"",heightDesktop:100,heightMobile:100,overlay:60,titleSizeDesktop:ts,bodySizeDesktop:ts,titleSizeMobile:ts,bodySizeMobile:ts,ctaText:"",ctaHref:"",buttonColor:"",buttonTextColor:"",stickTop:!0,[yr]:0,uppercase:!1}};var l$={top:72,bottom:72,topPhone:72,bottomPhone:72},Gpe={name:"Editorial Text",boxProps:e=>({...Q,direction:"column",gap:28,gapPhone:28,sectionBorder:{top:1},...ie(e,l$)}),box:[["topBorder","sectionBorder",e=>e===!1?void 0:{top:1}],...re,...ge(l$)],parts:[Jt("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)"}},c$={buttonPaddingTop:20,buttonPaddingBottom:20,buttonPaddingLeft:28,buttonPaddingRight:28},d$=(e,o)=>o?.variant==="primary",f$=(e,o)=>({kind:"list",key:"buttons",name:"Button",flat:!0,when:e,parts:[{kind:"button",key:"label",href:"href",when:d$,variant:"primary",style:{letterSpacing:.3},props:{...Ro,...c$,...o}},{kind:"button",key:"label",href:"href",when:(t,r)=>!d$(t,r),variant:"ghost",style:{letterSpacing:.3},props:{...Ro,...c$,...o}}]}),yg=e=>ro(e.title),jpe={name:"Call-to-Action Heading",boxProps:e=>({...Q,direction:"row",align:"center",justify:yg(e)?"between":"end",gap:60,gapPhone:60,share:"content",sectionBorder:{bottom:1},...Zt(e,"TitleWithButtons")}),box:[...re,...fn("TitleWithButtons")],parts:[{kind:"group",name:"Title",props:{...N,maxWidth:1e3,widthFitPhone:"fill"},parts:[{kind:"text",key:"title",role:"heading",props:j,style:{textStyle:"heading-1",...Ct("headingLarge",48,7,108),case:"upper",lineHeight:.94,letterSpacing:-.035},mark:"accentItalic"}]},{kind:"group",name:"Buttons",props:e=>({...N,gap:14,gapPhone:14,widthFitPhone:"fill",...yg(e)?{minWidth:280,minWidthPhone:0}:{}}),parts:[f$(yg,{widthFit:"fill",iconPosition:"end"}),f$(e=>!yg(e),{})]}],drop:{...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 Kpe(e,o){let t=Fl(o,{to:Ee(e.sectionPaddingUnit)}),r=Fl(o,{view:"phone",to:Ee(e.sectionPaddingUnitPhone),maxPx:20});return{sectionPaddingLeft:t,sectionPaddingRight:t,sectionPaddingLeftPhone:r,sectionPaddingRightPhone:r}}var p$={top:40,bottom:64,topPhone:24,bottomPhone:36},Vpe={name:"Section Header",boxProps:(e,o)=>({...Q,direction:"column",gap:0,...ie(e,p$),...Kpe(e,o)}),box:[...re,...ge(p$)],parts:[Jt("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"}},u$={...N,direction:"row",share:[67],gap:32},m$={...N,sectionPaddingLeft:24,sectionPaddingLeftPhone:0},h$=(e,o,t)=>({kind:"group",name:e,props:o,parts:[t]}),Ype={name:"Lead Text",boxProps:e=>({...Q,direction:"column",gap:40,gapPhone:40,sectionBorder:{bottom:1},...Zt(e,"ParagraphsA")}),box:[...re,...fn("ParagraphsA")],parts:[{kind:"group",name:"Numbers",props:{...u$,gapPhone:24,sectionBorder:{bottom:1},sectionPaddingBottom:40,sectionPaddingBottomPhone:40},parts:[{kind:"group",name:"Eyebrow",props:{...N,sectionPaddingTop:5,sectionPaddingBottom:1,sectionPaddingTopPhone:5,sectionPaddingBottomPhone:1},parts:[Ie("eyebrow",{color:"labels",...U("label",12),letterSpacing:.24})]},h$("Stats column",N,{kind:"group",name:"Stats",props:{...m$,gap:0,gapPhone:0},parts:[{kind:"list",key:"stats",name:"Stat",flat:!0,parts:[ff("value","label",{...U("label",13),letterSpacing:.18,lineHeight:1.8})]}]})]},{kind:"group",name:"Words",props:{...u$,gapPhone:28},parts:[{kind:"group",name:"Lead",props:N,parts:[{kind:"group",name:"Measure",props:{...N,maxWidth:780},parts:[{kind:"text",key:"lead",props:j,style:{textStyle:"heading-3",...U("headingSmall",22,20),weight:400,case:"none",lineHeight:1.45,letterSpacing:-.005}}]}]},h$("Note column",{...N,justify:"end"},{kind:"group",name:"Founders",props:{...m$,gap:8,gapPhone:8},parts:[{kind:"group",name:"Note",props:{...N,gap:6,gapPhone:6},parts:[{kind:"text",key:"foundersHeading",props:j,style:{textStyle:"body-1",fontRole:"heading",...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}},x$={top:24,bottom:24,topPhone:24,bottomPhone:24},qpe={name:"Banner",boxProps:e=>({...Q,direction:"column",gap:0,...ie(e,x$)}),box:[...re,"contained",...ge(x$)],parts:[{kind:"group",name:"Card",keepEmpty:!0,props:{...N,gap:28,gapPhone:28,placement:"top-left",darken:60,darkenStyle:"even",sectionBorder:{width:1},...ia("surface"),...Zo(64,40,40,24)},box:[["imageSrc","bgImage"],["overlay","darken",e=>Math.min(Math.max(q(e)??60,0),100)]],parts:[{kind:"group",name:"Words",props:{...N,gap:20,gapPhone:20},parts:[Ie("eyebrow"),{kind:"text",key:"title",role:"heading",props:{...j,maxWidth:680},style:{weight:500,lineHeight:1.05,letterSpacing:-.03,case:"none",...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:Ro}]}],drop:{...ee,...se}},jk={Prose:Gpe,TitleWithButtons:jpe,SectionHeader:Vpe,ParagraphsA:Ype,Banner:qpe},g$={Prose:()=>({eyebrow:xg.eyebrow,title:kr(xg.title),body:xg.body}),TitleWithButtons:()=>({title:kr(t$.title),buttons:r$.map(e=>({...e}))}),SectionHeader:()=>({num:Oa.num,title:kr(Oa.title),description:Oa.description,linkText:Oa.linkText,linkHref:fo.href}),ParagraphsA:()=>({eyebrow:Ef.eyebrow,lead:Ye.body,foundersHeading:Ef.foundersHeading,foundersBody:Ef.foundersBody,attribution:Ef.attribution}),Banner:()=>({...o$,ctaText:fo.text,ctaHref:fo.href}),ProcessSteps:()=>({num:Oa.num,title:kr(Oa.title)}),IntroBleed:()=>({eyebrow:Ig.eyebrow,title:kr(Ig.title),body:Ig.body,ctaText:fo.text,ctaHref:fo.href})};function bg(){To(jk),To(b5),To(N5),To(d5),To(Q5),To(u3),To(E3),To(A3),To(G3),To(eW),To(pW),To(kW),To(_W),To(FW),To(e$),To(zW),To(VW),To(JW)}var Xpe=[{name:"migrateLegacyPageData",chrome:!1,why:"page-only: it walks the top-level sections (Gallery B's array to its slot, a second pinned Header or Footer); a chrome document's one top-level node is the chrome itself",run:e=>n4(e)},{name:"migrateRenamedProps",chrome:!0,why:"every document built from stored props: a renamed key still reads its stored answer (lib/source-rules/document-surfaces)",run:e=>i4(e)},{name:"convertSectionsInPage",chrome:!1,why:"page-only: it turns an old top-level SECTION into its Box, with the site theme off the page's metadata; chrome is a Box group, never one of those sections",run:(e,{metadata:o})=>(bg(),f4(e,lf,{theme:G_(o)}))},{name:"capHeroGroups",chrome:!1,why:"page-only: it caps a top-level Hero's slide groups, and a Hero is a page section",run:e=>iM(e)},{name:"oneH1",chrome:!1,why:"page-only: it hands the h1 to the first opener in the PAGE's document order; on a chrome document it would count a second document on its own",run:e=>J2(e)},{name:"dropEmptySourcedBoxes",chrome:!0,why:"any document: a nested head over sourced cores served none goes (the Box footer's payment line), at any depth inside a slot",run:e=>Z2(e)},{name:"markHeadCoreBoxes",chrome:!1,why:"page-only: it marks a head Box at the TOP of the page, where the mark element draws (lib/content/empty-hides); a chrome document's top is the chrome group",run:e=>q2(e)},{name:"markListSearchScopes",chrome:!1,why:"page-only for now: it ties a Search to the lists of the page's Box; no chrome holds a Search, and a chrome entry is one flag when one does",run:e=>pM(e)},{name:"withPageContents",chrome:!1,why:"page-only: a Contents block lists the PAGE's anchored sections and numbers their kickers",run:e=>qB(e)},{name:"markWallLabels",chrome:!0,why:"any document: each Marks wall is named by the lead Text drawn before it (aria-labelledby), the Box footer's walls too",run:e=>rH(e)},{name:"markCardPressTitles",chrome:!0,why:"any document: an acting copy's press button is named by its template's title Text (aria-labelledby), a header or footer list too; after the wall labels, so a Text keeps one id",run:e=>lH(e)}];function Zpe(e,o,t){let r=e;for(let a of Xpe)(!t||a.chrome)&&(r=a.run(r,o));return r}function I$(e,o){return Zpe(e,{metadata:o},!1)}import{useRef as Jpe}from"react";import{createRenderKeep as Qpe}from"efficient-easel/render";function y$(){let e=Jpe(null);return e.current??=Qpe(),e.current}import{isNode as eue,isNodeList as oue}from"efficient-easel/data";import{hidableText as tue,readHidable as rue}from"efficient-easel/draw";var S$="slotCounts",Kk=e=>!rue(e).hidden&&tue(e).trim()!=="",aue=e=>typeof e=="string"&&e.trim()!=="",nue={Flex:()=>!0,PostCard:()=>!0,ImageBlock:e=>aue(e.src),Text:e=>Kk(e.text),Heading:e=>Kk(e.text),Eyebrow:e=>Kk(e.eyebrow)},sue=["widthFit","width","minWidth"],b$=e=>oue(e);function iue(e){if(Array.isArray(e.content))return b$(e.content)?e.content:null;let o=Object.values(e).filter(b$);return o.length===1?o[0]:null}function lue(e,o){return[...new Set([D0,...Object.values($(n_,e)??{})])].some(t=>mt(o,t)!=="")}function cue(e){let o=e.props??{},t=$(nue,e.type);if(!t||!t(o)||lue(e.type,o)||Kc(o))return!1;let r=o[kl];if(r!=null&&r!=="")return!1;let a=Ox(o);return!sue.some(n=>a[n]!==void 0)}function due(e){let o=0;for(let t of e)if(!pa(t.props??{})){if(!cue(t))return;o+=1}return o>0?o:void 0}function fue(e){let o={},t=new Set,r=new Set,a=(n,s)=>{if(Array.isArray(n))for(let i of n){if(!eue(i))continue;let l=i.props.id;typeof l=="string"&&(t.has(l)?r:t).add(l);let d=s?null:iue(i.props);if(typeof l=="string"&&d){let f=due(d);f!==void 0&&(o[l]=f)}for(let f of Br(i))a(i.props[f],s||Fn(i.type,f))}};a(e,!1);for(let n of r)delete o[n];return o}function w$(e,o){return{...e??{},[S$]:fue(o)}}function tXe(e){let o=e.editor?.metadata?.[S$],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 mue({config:e,data:o,metadata:t}){let r=I$(o,t),a=y$(),n=nM(e,aM(r.content)),s=Hh(r.content),i=s.length>0?{...t,[rM]:s}:t;return C$(Wh,{children:C$(uue,{config:n,metadata:w$(i,r.content),keep:a,data:r})})}var v$=pue(mue);import{jsx as rr,Fragment as xme,jsxs as u6}from"react/jsx-runtime";import{jsx as hue,jsxs as xue}from"react/jsx-runtime";import{createContext as gue,useContext as Iue}from"react";var k$=gue(!1);function hXe(){return Iue(k$)}function T$({grayscale:e,children:o}){let t=e===!0;return xue(k$.Provider,{value:t,children:[Object.entries(kH(e)).map(([r,a])=>hue("style",{children:a},r)),o]})}import{jsx as yue}from"react/jsx-runtime";import{createContext as bue,useContext as Sue}from"react";var P$=bue(null);function yXe(){return Sue(P$)}function E$({ink:e,children:o}){return yue(P$.Provider,{value:e??null,children:o})}var _$="data-lead-ink",CXe="data-header-ink";var wue="auto";function Cue(e){return e.type==="IntroBleed"?pg(e.props?.layout)!=="stacked":!0}function O$(e){let o=Ad(e);return o&&LD(e)&&Cue(o)?"light":null}function vXe(e){return e==="light"||e==="dark"?e:wue}import{useEasel as gme}from"efficient-easel/easel";import{useEffect as Bue}from"react";import{useEaselApi as Nue}from"efficient-easel/easel";import{find as vue,walk as A$}from"efficient-easel/data";var kue=()=>"",Tue=e=>wy(Nr([e],kue));function F$(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(Tue))])),a=wy(e);return Object.keys(r).find(n=>r[n].has(a))??null}var Pue=()=>({press:[Bl(Rn),Bl(yc)],delivery:[Uv()]}),Eue={},Vk=e=>F$(e,Pue,Eue),_ue=e=>eo(e)===R0?"delivery":"press";function NXe(e,o){if(!o||eo(e)===eo(o))return e;let t=Vk(e[Ue]),r=_ue(e);if(!t||t===r)return e;let a=gy(e,Oo),n=r==="delivery"?Uv():Bl(eo(e)?yc:Rn),s=Nr([n],yy(a));return{...e,[Ue]:s}}var Oue=()=>({cards:[ui(Rn),ui(yc)],label:[mi(!1),mi(!0)]}),Aue={},Rue=e=>F$(e,Oue,Aue);function DXe(e,o){if(!o||e.cardStyle==="label-only"==(o.cardStyle==="label-only"))return e;let t=Rue(e[Ue]),r=e.cardStyle==="label-only"?"label":"cards";if(!t||t===r)return e;let a=gy(e,zE),n=Array.isArray(e.items)&&e.items.some(l=>be(l?.href)!==void 0),s=r==="label"?mi(n):ui(eo(e)?yc:Rn),i=Nr([s],yy(a));return{...e,[Ue]:i}}var R$=(e,o)=>$v.every(t=>JSON.stringify(e[t])===JSON.stringify(o[t]));function L$(e,o){let t={...e};for(let r of $v)delete t[r];return{...t,...structuredClone(o)}}function Yk(e){let o=e?.[De];if(!Array.isArray(o)||o.length!==1)return null;let t=o[0];return t?.type===Oo&&t.props?t:null}function Lue(e,o){let t=Yk(e),r=Yk(o);if(!t?.props||!r?.props||r.props.id!==t.props.id||eo(t.props)===eo(r.props))return e;let a=Vk(t.props[Ue]);if(!a||a===Vk(r.props[Ue]))return e;let n=q(e.columns);return n===void 0?e:a==="delivery"&&R$(e,Ns(n))?L$(e,Nx(n)):a==="press"&&R$(e,Nx(n))?L$(e,Ns(n)):e}function B$(e){let o=Sg.get(e);o?o.count+=1:Sg.set(e,{count:1,stop:Fue(e)});let t=!1;return()=>{let r=Sg.get(e);t||!r||(t=!0,r.count-=1,!(r.count>0)&&(r.stop(),Sg.delete(e)))}}var Sg=new WeakMap;function Fue(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;A$(t,e.config,n=>{if(n.type!==Y||!Yk(n.props))return;let s=vue(r,e.config,n.props.id);if(!s||s.node===n)return;let i=Lue(n.props,s.node.props);i!==n.props&&a.set(n.props.id,i)}),a.size&&e.dispatch({type:"setData",recordHistory:!1,data:n=>A$(n,e.config,s=>{let i=a.get(s.props.id);return i?{...s,props:{...i,id:s.props.id}}:void 0})})})}function N$(){let e=Due();Bue(()=>e?B$(e):void 0,[e])}function Due(){try{return Nue()}catch{return null}}import{jsx as wg}from"react/jsx-runtime";import{useEffect as Mue}from"react";import{armScrollProgress as Hue}from"efficient-shell/format";function D$({armed:e,children:o}){return Mue(()=>e?Hue():void 0,[e]),o}function qk(){return{style:{"--sf-page-width":Ho}}}function Wue({children:e}){return wg("div",{style:qk().style,children:e})}function XXe({pageBackground:e,inheritBackground:o=!1,chrome:t=!1,children:r}){return wg("div",{style:{...o?{}:Gu(e),background:"var(--bg)",minHeight:"100%",overflowX:"clip"},children:wg(D$,{armed:!t,children:wg(Wue,{children:r})})})}import{jsx as M$,Fragment as $ue}from"react/jsx-runtime";import{createContext as Uue,useContext as zue}from"react";var H$=Uue({}),W$=H$.Provider;function eZe(e){let{SectionTextParts:o}=zue(H$);return o?M$(o,{...e}):M$($ue,{children:e.children})}import{jsx as lme}from"react/jsx-runtime";import{useEffect as cme,useRef as dme}from"react";var $$="data-easel-overlay-portal";function Cg(e){return e.setAttribute($$,"true"),()=>{e.removeAttribute($$)}}import{jsx as eme}from"react/jsx-runtime";import{useEffect as ome,useRef as t6}from"react";import{usePreviewParts as tme}from"efficient-easel/draw/client";import{jsx as Gue}from"react/jsx-runtime";import{createContext as jue,useContext as Kue,useMemo as Vue,useState as Yue}from"react";var que={partStyle:null,setPartStyle:()=>{}},U$=jue(que);function nZe({children:e}){let[o,t]=Yue(null),r=Vue(()=>({partStyle:o,setPartStyle:t}),[o]);return Gue(U$.Provider,{value:r,children:e})}function zl(){return Kue(U$)}import{usePreviewDevice as rme}from"efficient-easel/draw/client";import{shownTier as ame}from"efficient-easel/screen/lib/document/device-fields";import{decodePartId as r6,encodePartId as nme}from"efficient-easel/draw";import{BLOCK_ATTRIBUTE as sme}from"efficient-easel/canvas";import{createPreviewSelectionContext as Xue}from"efficient-easel/draw/client";var $s="Scrolling Bar",{Provider:lZe,useSelection:z$}=Xue("selectedHeroId"),Xk="data-sf-hero-ticker";function G$(e){return`${e}::ticker`}function j$(e){return!e||!e.endsWith("::ticker")?null:e.slice(0,-8)||null}import{BLOCK_ATTRIBUTE as xn}from"efficient-easel/canvas";import{createPreviewSelectionContext as Zue}from"efficient-easel/draw/client";var{Provider:fZe,useSelection:K$}=Zue("selectedLocationPartId");function vg(e,o,t){return`${e}::${o}::${t}`}function kg(e){if(!e)return null;let o=e.split("::");if(o.length<3)return null;let t=o[o.length-1];if(t!=="image"&&t!=="map"&&t!=="city")return null;let r=Number(o[o.length-2]);if(!Number.isInteger(r)||r<0)return null;let a=o.slice(0,-2).join("::");return a?{nodeId:a,index:r,part:t}:null}var Jk="data-sf-part-label";function Qk(e,o){return e.closest(`[${xn}]`)?.getAttribute(xn)===o}function V$(e,o,t){let r=e.querySelectorAll("*"),a=new Map(t.map(y=>[y.key,Sd(y.label)])),n=[],s=new Set;for(let y=0;y<r.length;y+=1){let k=r[y];if(!Qk(k,o))continue;let L=k.getAttribute(NB);if(!L)continue;let O=a.get(L);n.push({element:k,partId:qr(o,L),...O?{label:O}:{}}),s.add(k)}let i=[],l=new Set;for(let y=0;y<r.length;y+=1){let k=r[y];if(!Qk(k,o)||s.has(k))continue;let L=rn(k.textContent??"");if(!L)continue;let O=k.closest(`[${Pw}]`)?.getAttribute(Pw)||null;O&&l.add(O.replace(/\[\d+\]$/u,"")),i.push({element:k,text:L,row:O})}let d=y=>i.filter(k=>k.row===BB(y.key,y.row.index)),f=i.filter(y=>y.row===null),u=y=>y.row&&l.has(y.key)?d(y):l.size?f:i,p=new Map,m=[],h=y=>y.row?`${y.key}.${y.row.rowKey}`:null,I=new Map;for(let y of t){let k=h(y);if(!k||l.has(y.key))continue;let L=I.get(k);L?L.push(y):I.set(k,[y])}let w=new Set;for(let[y,k]of I){if(k.length<2)continue;let L=k.flatMap(T=>T.texts);if(new Set(L).size===L.length)continue;let O=u(k[0]).filter(T=>L.includes(T.text));if(O.length!==k.length)continue;let D=[...k].sort((T,F)=>(T.row?.index??0)-(F.row?.index??0));for(let T=0;T<D.length;T+=1){let F=D[T],C=O[T].element,R={key:F.key,partKey:Yr(F.key,F.row),exact:!0},P=p.get(C);P?P.push(R):(p.set(C,[R]),m.push(C))}w.add(y)}let S=new Map;for(let y of t){if(w.has(h(y)??""))continue;let k=Yr(y.key,y.row);for(let L of y.texts)for(let O of u(y)){if(O.text!==L)continue;let D=S.get(O.element);D?D.add(k):S.set(O.element,new Set([k]))}}let v=(y,k)=>[...S].some(([L,O])=>L!==y&&!O.has(k)&&L.contains(y));for(let y of t){if(w.has(h(y)??""))continue;let k=Yr(y.key,y.row);for(let L of y.texts){let O=[],D=null;for(let C of u(y))C.text===L?v(C.element,k)||O.push(C.element):!O.length&&C.text.includes(L)&&(!D||C.text.length<=D.length)&&(D={element:C.element,length:C.text.length});let T=O.length?O:D?[D.element]:[],F=T.filter(C=>!T.some(R=>R!==C&&C.contains(R)));for(let C of F){let R={key:y.key,partKey:k,exact:O.length>0},P=p.get(C);P?P.push(R):(p.set(C,[R]),m.push(C))}}}let b=[...n];for(let y of m){let k=p.get(y)??[],L=k.some(O=>O.exact)?k.filter(O=>O.exact):k;if(new Set(L.map(O=>O.partKey)).size===1){let O=a.get(L[0].key);b.push({element:y,partId:qr(o,L[0].partKey),...O?{label:O}:{}});continue}new Set(L.map(O=>O.key)).size===1&&b.push({element:y,partId:qr(o,L[0].key)})}return b}function Zk(e,o,t){let r=e.querySelectorAll(`[${co}]`);for(let n=0;n<r.length;n+=1){let s=r[n];Qk(s,o)&&(s.removeAttribute(co),s.removeAttribute(Jk))}let a=[];for(let{element:n,partId:s,label:i}of t)n.setAttribute(co,s),i&&n.setAttribute(Jk,i),a.push(n);return a}function X$(e,o,t,r,a,n=()=>null){let s=null,i=null,l=null,d=()=>{let f=t(),u=f?.getAttribute(xn)??null;if(!f||!u)return!1;s=u;let p=V$(e,u,o);return a(f,u,Zk(e,u,p)),l=n(()=>{let m=V$(e,u,o);Jue(p,m)||(p=m,a(f,u,Zk(e,u,m)))}),!0};return d()||(i=r(()=>{(s||d())&&(i?.(),i=null)})),()=>{i?.(),i=null,l?.(),l=null,s&&Zk(e,s,[])}}function Jue(e,o){return e.length===o.length&&e.every((t,r)=>t.element===o[r].element&&t.partId===o[r].partId)}function yZe(e,o){let t=e?.closest?.(`[${co}],[${an}]`),r=t?.getAttribute(co)??t?.getAttribute(an),a=r?Id(r):null;if(t&&r&&a?.nodeId===o&&a.propKey)return{id:r,element:t,whole:q$(t,r),label:Y$(t,r)};let n=e?.closest?.(J$.slice(2).map(i=>`[${i}]`).join(","));if(!n)return null;let s=n.closest?.(`[${xn}]`)?.getAttribute(xn)===o?Q$(n,o):null;return s?{id:s,element:n,whole:q$(n,s),label:Y$(n,s)}:null}function Y$(e,o){let t=kg(o);if(t)return t.part==="map"?"Map":t.part==="city"?"City":"Image";let r=xx(o);return r?_a[r.part]:j$(o)?$s:e.getAttribute(Jk)??void 0}var Z$="data-loc-pick",J$=[co,an,of,Xk,Z$];function Q$(e,o){let t=e.getAttribute(co)??e.getAttribute(an);if(t)return t;let r=e.getAttribute(of);if(r)return Ps(o,r);if(e.getAttribute(Xk)!==null)return G$(o);let a=e.getAttribute(Z$)?.split(":");return a&&(a[1]==="image"||a[1]==="map"||a[1]==="city")&&/^\d+$/.test(a[0])?vg(o,Number(a[0]),a[1]):null}function q$(e,o){let t=e.closest?.(`[${xn}]`),r=t?.getAttribute(xn);if(!t||!r)return!1;let a=new Set;for(let n of t.querySelectorAll(J$.map(s=>`[${s}]`).join(","))){if(n.closest?.(`[${xn}]`)!==t)continue;let s=Q$(n,r);s&&a.add(s)}return a.size===1&&a.has(o)}import{ENTRANCE_ATTR as e6,playEntrance as Que}from"efficient-shell/format";var eT=new WeakMap;function o6(e,o,t,r){let a=typeof t=="boolean"?t?"phone":"desktop":t,n=[],s=new Map;for(let{partKey:d}of e){if(s.has(d))continue;let f=o(d)??{},u=sO(f),p=r.get(d),m=p?yl.next(p,u,a):null;r.set(d,m?m.seen:yl.seed(u)),s.set(d,m?.play??!1)}let i=new Map,l=e.filter(d=>!e.some(f=>f!==d&&f.partKey===d.partKey&&f.element.contains(d.element)));for(let d of l){let f=Qh(d.element);f&&i.set(f,[...i.get(f)??[],d])}for(let[d,f]of i){let u=h=>Ud(o(h.partKey)??{}),p=wl(f.filter(h=>u(h).entrance));if(p){let h=o(p.partKey)??{};n.push(Zh(d,Ec(h,a)));let I=eT.get(d);eT.set(d,p.partKey),(s.get(p.partKey)||I!==void 0&&I!==p.partKey)&&d.hasAttribute(e6)&&Que(d)}else eT.delete(d);let m=d.hasAttribute(e6)?void 0:wl(f.filter(h=>Ta(o(h.partKey)??{},a).effect!=="none"));m&&n.push(Jh(d,Ta(o(m.partKey)??{},a))),f.some(h=>u(h).hover==="lift")&&(ex(d.ownerDocument),d.setAttribute(Cs,""),n.push(()=>d.removeAttribute(Cs)))}return()=>n.forEach(d=>d())}function oT(e){let o=null,t=null;for(let r=e;r&&(o===null||t===null);r=r.parentElement){let a=r.getAttribute("class");o??=K0(a),t??=Ay(a)}return{faceRole:o??"body",sizeGroup:t}}function Tg(e,o={}){let t=e.style,r={};for(let i of Th)r[i]=t[i]??"",t[i]="";o.fontFamily&&(t.fontFamily=o.fontFamily),o.fontSize&&(t.fontSize=o.fontSize);let a=getComputedStyle(e),n=getComputedStyle(e.ownerDocument.documentElement),s=jN({fontSize:a.fontSize,fontWeight:a.fontWeight,lineHeight:a.lineHeight,letterSpacing:a.letterSpacing,textAlign:a.textAlign,textTransform:a.textTransform,paddingTop:a.paddingTop},KN(a.fontFamily,i=>n.getPropertyValue(i)));for(let i of Th)t[i]=r[i];return s}function a6({needles:e,styles:o,motions:t=Xh,type:r,children:a}){let n=t6(null),{selectedPartId:s}=tme(),{setPartStyle:i}=zl(),l=ame(rme()),d=JSON.stringify(e),f=JSON.stringify(o),u=JSON.stringify(t),p=t6(new Map);return ome(()=>{let m=n.current;if(!m)return;let h=[],I=()=>m.parentElement,w=O=>{let D=I();if(!D)return null;let T=new MutationObserver(O);return T.observe(D,{attributes:!0,attributeFilter:[sme]}),()=>T.disconnect()},S=O=>{let D=new MutationObserver(O);return D.observe(m,{childList:!0,subtree:!0,characterData:!0}),()=>D.disconnect()},v=[];h.push(()=>{for(let O of v)O();v=[]});let b=JSON.parse(d),y=JSON.parse(f),k=JSON.parse(u),L=X$(m,b,I,w,(O,D,T)=>{for(let P of v)P();v=[];let F=[];for(let P of T){let _=P,W=Cg(_);W&&v.push(W),_.getAttribute(co)===s&&F.push(_)}let C=VN(D,s,F,P=>V0(P)!==null||Ay(P)!==null);if(C&&s){let P=C,_=r6(s)?.propKey??"",W=bd(P)?{}:GN(hC(y,ka(r,_)),l,{blockDrawsStyle:Ed(r,_)});i({partId:s,...oT(P),base:Tg(P,W),inks:zu(P),...(()=>{let G=bd(P);return G?{styleOwner:G}:{}})()})}xC(T.filter(P=>!bd(P)).map(P=>({element:P,partId:P.getAttribute(co)??""})),y,P=>Tg(P),P=>ka(r,P),void 0,l,P=>Ed(r,P));let R=[...m.querySelectorAll(`[${Ew}="${CSS.escape(D)}"][${yd}]`)];R.length&&xC(R.map(P=>({element:P,partId:nme(D,P.getAttribute(yd)??"")})),y,void 0,P=>P,void 0,l),v.push(o6([...T.filter(P=>!bd(P)).map(P=>{let _=P,W=r6(_.getAttribute(co)??"")?.propKey??"";return{element:_,partKey:ka(r,W)}}),...R.map(P=>({element:P,partKey:P.getAttribute(yd)??""}))],P=>k[P],Ci(l),p.current))},S);return()=>{L();for(let O of h)O()}},[d,f,u,s,i,l,r]),eme("div",{ref:n,[av]:"",style:{display:"contents"},children:a})}import{shownTier as fme}from"efficient-easel/screen/lib/document/device-fields";import{usePreviewDevice as pme,usePreviewParts as ume}from"efficient-easel/draw/client";var _f={tag:"text-[length:var(--size-label,13px)]",name:"text-[length:min(var(--size-headingMedium,48px),var(--sf-heading-max,9999px))]",namePhone:"max-view-wide:text-[length:min(var(--size-headingMedium,36px),var(--sf-heading-max,9999px))]",body:"text-[length:var(--size-body,14px)]",price:"text-[length:var(--size-label,15px)]",link:"text-[length:var(--size-label,14px)]"},ime={tag:{label:"Tag",follows:"Labels",builtIn:xi(_f.tag),writable:!0},name:{label:"Name",follows:"Heading 2",builtIn:xi(_f.name),writable:!0},body:{label:"Body",follows:"Body",builtIn:xi(_f.body),writable:!0},price:{label:"Price",follows:"Labels",builtIn:xi(_f.price),writable:!0},link:{label:"Link",follows:"Labels",builtIn:xi(_f.link),writable:!0}},n6=ime;var ZZe=Ln,s6={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 i6={SpecTable:s6,FAQ:XE,Collections:n6,Contents:fg};function l6(){return ai("efficient.section-text-regions",()=>new Map)}function nJe(e){let o=l6();for(let[t,r]of Object.entries(e)){if(He(i6,t))throw new Error(`lib/sections/section-text-regions: "${t}" is a builder section; its table is the builder's`);let a=o.get(t);if(a&&a!==r)throw new Error(`lib/sections/section-text-regions: "${t}" already has a table`);o.set(t,r)}}function Gl(e){return e?$(i6,e)??l6().get(e)??null:null}function c6({nodeId:e,sectionType:o,partStyles:t,children:r}){let a=dme(null),{selectedPartId:n}=ume(),{setPartStyle:s}=zl(),i=fme(pme()),l=JSON.stringify(t??null);return cme(()=>{let d=a.current,f=Gl(o);if(!d||!e||!f)return;let u=[],p=Array.from(d.querySelectorAll(`[${Ln}]`));for(let m of p){let h=Sy(f,m.getAttribute(Ln));if(!h)continue;let I=Cg(m);I&&u.push(I);let w=wc(h),S=qr(e,w);m.setAttribute(an,S);let v=t?.[w];if(f[h].sized&&gC(v)){let b=IC(v,i),y={fontFamily:m.style.fontFamily,fontSize:m.style.fontSize},k=m.getAttribute(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},O=v?.textStyle;wa(O)&&m.setAttribute(vr,O),u.push(()=>{XN(m.style,y,L),k===null?m.removeAttribute(vr):m.setAttribute(vr,k)})}if(S===n){let b=Tg(m,qN(v,f[h],i));s({partId:S,...oT(m),base:b})}}return()=>{for(let m of u)m();for(let m of p)m.removeAttribute(an)}},[e,o,n,s,i,l]),lme("div",{ref:a,style:{display:"contents"},children:r})}import{jsx as tT,Fragment as d6}from"react/jsx-runtime";import{createContext as mme,useContext as f6,useMemo as hme}from"react";var rT=mme(null),p6=e=>e==null||e===""?void 0:String(e);function aT({content:e,children:o}){let t=hme(()=>Dw(e),[e]);return tT(rT.Provider,{value:t,children:o})}function wJe({id:e,children:o}){let t=f6(rT),r=p6(e);return tT(d6,{children:o(r?t?.entries.get(r):void 0)})}function CJe({id:e,children:o}){let t=f6(rT),r=p6(e);return tT(d6,{children:o(r?t?.numbers.get(r):void 0)})}var Ime={SectionTextParts:c6},yme="color-mix(in oklab, var(--bg) 40%, #ffffff)",bme="12vh";function Sme({style:e,children:o}){let{appState:t}=gme(p=>p),r=t.data.content,a=t.data.root;if(FD(r))return rr("div",{className:"sf-themed-content",style:{...e,background:yme,minHeight:"100vh",paddingBottom:bme},children:rr("div",{style:{background:"var(--bg)"},children:rr(aT,{content:r,children:o})})});let n=RC(r)&&FC(a,r),s=RC(r)?ND(a,r):null,i=s?{[BD]:s}:null,l=IL(a?.widthChoice),d=l?{[gL]:l}:null,f=n?null:O$(r),u=f?{[_$]:f}:null;return rr("div",{className:`sf-themed-content${n?` ${OD}`:""}`,style:e,...u,...i,...d,children:rr("div",{style:{background:"var(--bg)",minHeight:"100%"},children:rr(aT,{content:r,children:o})})})}function GJe({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 N$(),rr(nT,{propsTheme:e,propsFonts:o,propsCornerStyle:t,propsCornerRadiusPx:r,propsHeadingCompression:a,propsHeadingTypography:n,pageBackground:s,chromeInheritsSiteBackground:i,onClickCapture:l,body:p=>u6(xme,{children:[rr(Sme,{style:p,children:u}),d,f]})})}function nT({propsTheme:e,propsFonts:o,propsCornerStyle:t,propsCornerRadiusPx:r,propsHeadingCompression:a,propsHeadingTypography:n,pageBackground:s,chromeInheritsSiteBackground:i,onClickCapture:l,body:d}){let{theme:f,fonts:u,sizes:p,cornerRadiusPx:m,cardShadow:h,shadowColor:I,cardGap:w,hoverEffect:S,headingCompression:v,siteWidth:b,siteGutter:y,siteGutterPhone:k,blockGap:L,blockGapPhone:O,siteLengthUnits:D,headingTypography:T,heroBackgroundFollowsWidth:F,photographyGrayscale:C,textStyles:R,wordStyles:P,themeFromDocument:_}=fe(),W=_?e:f,G=_?o:u,Z=_?void 0:p,V=_?r===void 0?Zp[Xp(t)]:Ht(r):m,de=_?{}:D,ve=_?a:v,oe=_?n:T,Oe=[pD(sD(_?void 0:R)),uD(Jp(oe).italicStrong)].filter(Boolean).join(`
|
|
341
|
-
`),_e=qk(),Ae={...S_(W),...A_(Z),...U_(oe),..._e.style,...i?{}:Gu(s)};return u6("div",{className:`sf-theme-surfaces sf-theme-accent ${[hL(_?void 0:k),nF(_?void 0:O)].filter(Boolean).join(" ")}`.trim(),style:{...Y0(G),...Z0(_?null:P),...w_(W),...C_(W),...k_(W),...qp(W),...L_(V,de.cornerRadiusUnit),...H_(_?void 0:h,_?void 0:I,_?void 0:S),...lL(_?void 0:b,de.siteWidthUnit),...pL(_?void 0:y,de.siteGutterUnit),...mL(_?void 0:k,de.siteGutterPhoneUnit),...rF(_?void 0:L,de.blockGapUnit),...aF(_?void 0:O,de.blockGapPhoneUnit),...Sm(_?void 0:F)},"data-sf-headings":W_(ve),"data-sf-card-shadow":_?void 0:N_(h),"data-sf-card-gap":_?void 0:D_(w),"data-sf-card-hover":_?void 0:M_(S),onClickCapture:l,children:[Oe?rr("style",{"data-sf-text-styles":"",dangerouslySetInnerHTML:{__html:Oe}}):null,rr(T$,{grayscale:_?void 0:C,children:rr(W$,{value:Ime,children:rr(E$,{ink:y_(W),children:d(Ae)})})})]})}var m6=e=>{e.target?.closest?.("a")&&e.preventDefault()};var Pg=[{key:"about",label:"About",slugs:["about"]},{key:"contact",label:"Contact",slugs:["contact"]},{key:"faq",label:"FAQ",slugs:["faq"]},{key:"gallery",label:"Gallery",slugs:["gallery"]},{key:"store-locator",label:"Store locator",slugs:["store-locator"]},{key:"policies",label:"Policies",slugs:["warranty","shipping-returns","privacy-policy","terms-and-conditions"]}],jl="all",Eg="template";function h6(e){for(let o=0;o<Pg.length;o++){let t=Pg[o].slugs.indexOf(e);if(t>=0)return o*100+t}return Number.MAX_SAFE_INTEGER}function x6(e){return e.map((o,t)=>({s:o,i:t})).filter(({s:o})=>o.source==="library").sort((o,t)=>h6(o.s.slug)-h6(t.s.slug)||o.i-t.i).map(({s:o})=>o)}function sT(e){return e.filter(o=>o.source==="template")}function g6(e){let o=new Set(x6(e).map(t=>t.slug));return Pg.filter(t=>t.slugs.some(r=>o.has(r)))}function I6(e,o){if(e===Eg)return sT(o);let t=x6(o);if(e===jl)return t;let r=Pg.find(a=>a.key===e);return r?t.filter(a=>r.slugs.includes(a.slug)):[]}function y6(e){let o=e.content;return Array.isArray(o)&&o.length>0?o[0]:null}var Pme=1440,Eme=1080;function S6({starter:e,config:o,metadata:t,busy:r,onAdd:a}){let{mirrorHostStyles:n}=Ac(),[s,i]=Cme(null),l=wme(()=>{let d=y6(e.layout),f=e.layout.zones;return{root:{props:{}},content:d?[d]:[],zones:f??{}}},[e.layout]);return b6("div",{className:"sf-starter",children:[b6("div",{className:"sf-starter-picture",children:[Pr("div",{inert:!0,className:"sf-starter-frame",children:Pr(Tme,{width:Pme,height:Eme,children:Pr(vme,{id:`page-starter-${e.id}`,title:e.title,mirrorStyles:n,onDocument:i,height:"fill",children:Pr(Mh,{document:s??void 0,children:Pr(nT,{onClickCapture:m6,body:d=>Pr("div",{className:"sf-themed-content",style:d,children:Pr("div",{style:{background:"var(--bg)"},children:Pr(v$,{config:o,data:l,metadata:t})})})})})})})}),Pr("div",{className:"sf-starter-add",children:Pr(kme,{onClick:()=>a(e),loading:r,"aria-label":c("Add \u201C{name}\u201D",{name:e.title}),children:c("Add page")})})]}),Pr("span",{className:"sf-starter-name",children:e.title})]})}import{useMemo as Eye}from"react";import{sessionRegistry as _ye}from"efficient-easel/screen/lib/session";import{useEaselSession as Oye}from"efficient-easel/screen/lib/session-context";import{currentEaselSession as _me}from"efficient-easel/screen/lib/session";var Ome={general:!0,commerce:!0,service:!0};function iT(e){let o=e?.sets;return o?Object.fromEntries(M0.map(t=>[t,o.includes(t)])):Ome}function lT(e=_me()){return iT(e.blocks)}import{currentEaselSession as F6}from"efficient-easel/screen/lib/session";import{SITE_SIDE as v6}from"efficient-easel/screen/lib/content/length-units";var w6=[{text:"Ticker item"},{text:"Ticker item"},{text:"Ticker item"},{text:"Ticker item"}],cQe={label:"Scrolling Bar",defaultProps:{items:[],tone:"scrim",borders:!0,size:_E,separator:OE,scrollDirection:wf}};var C6=()=>[{text:c("Spec label"),tone:"normal"},{text:c("Spec value"),tone:"muted"},{text:c("Spec label"),tone:"normal"},{text:c("Spec value"),tone:"muted"}],pQe={label:"Spec Strip",defaultProps:{cells:[{text:"",tone:"normal"},{text:"",tone:"normal"}],fill:"dark"}};function Go(e,o,t,r={}){return{type:e,props:{...o(e),id:t(e),...r}}}function k6(e,o,t){return Go(Y,e,o,{...t,sectionPaddingTop:void 0,sectionPaddingBottom:void 0})}var _g={Manifesto:(e,o)=>({type:Y,props:{...e(Y),id:o(Y),direction:"row",share:"equal",sectionHeightMode:"screen",name:"Brand Text",content:[Go(Y,e,o,{direction:"column",justify:"center",blockSpacing:"gap",name:"Text",sectionPaddingTop:100,sectionPaddingBottom:100,sectionPaddingLeft:v6,sectionPaddingRight:v6,content:[Go("Text",e,o,la()),Go("Text",e,o,Da()),Go("Text",e,o),Go("Stats",e,o)]}),k6(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:[Go(Y,e,o,{direction:"column",justify:"center",blockSpacing:"gap",name:"Text",sectionPaddingTop:100,sectionPaddingBottom:100,sectionPaddingLeft:60,sectionPaddingRight:60,content:[Go("Text",e,o,la()),Go("Text",e,o,Da()),Go("Text",e,o),Go("ButtonBlock",e,o)]}),k6(e,o,{direction:"column",name:"Image",content:[Go("ImageBlock",e,o)]})]}}),Subscribe:(e,o)=>({type:Y,props:{...e(Y),id:o(Y),direction:"column",name:"Subscribe",content:[Go("Text",e,o,Da()),Go("Text",e,o),Go("Form",e,o)]}}),Ticker:(e,o)=>T6("Scrolling Bar",tg,Cf,w6.map(t=>({text:t.text,style:rg,muted:!0})),e,o),SpecStrip:(e,o,t)=>T6("Spec Strip",t?.theme?{...kf,sectionAccent:Yp(vo(t.theme))}:{...kf,sectionBorder:{top:1}},vf,C6().map(r=>({text:r.text??"",style:Tf,muted:r.tone==="muted"})),e,o)};function T6(e,o,t,r,a,n){return Go(Y,a,n,{...Hs,...o,blockSpacing:"gap",padV2:!0,name:e,sectionPaddingTop:t.top,sectionPaddingBottom:t.bottom,sectionPaddingTopPhone:t.topPhone,sectionPaddingBottomPhone:t.bottomPhone,content:r.map(s=>Go("Text",a,n,{text:s.text,...s.muted?{tone:"dim"}:{},_partStyles:{text:s.style}}))})}function P6(e){return $(_g,e)??null}import{isNodeList as cT}from"efficient-easel/data";var DQe=Object.keys(jk),Ame={Logos:D5,DocMasthead:$3,DocTabs:Z3,Timeline:f3,TimelineTrack:p3},Rme={PaymentBadges:M5,PaymentLogosBlock:H5,Integrations:YW};function Og(e,o,t){let r={};for(let a of Object.keys(o(e.type)))r[a]=void 0;for(let[a,n]of Object.entries(e.props))r[a]=cT(n)?n.map(s=>Og(s,o,t)):n;return r.id=t(e.type),{type:e.type,props:r}}var E6=e=>({...e?.theme?{theme:e.theme}:{},...e?.site?{site:e.site}:{},press:!0});function Of(e,o,t=0,r=()=>({})){return(a,n,s)=>{let{nodes:i}=As({type:e,props:{...a(e),...r(),id:n(e)}},o,E6(s));return Og(i[t],a,n)}}var Lme={Stats:Bme,Cards:Fme};function Fme(){let e=cn("Cards");if(!e)return null;let o=Of("Cards",e,0,c5);return(t,r,a)=>{let n=o(t,r,a);return{...n,props:{...n.props,name:"Cards section"}}}}function Bme(){let e=cn("StatsParagraph");return e?(o,t,r)=>{let{nodes:a}=As({type:"StatsParagraph",props:{...o("StatsParagraph"),...S5(),id:t("StatsParagraph")}},e,E6(r)),n=a[0],s=cT(n.props.content)?n.props.content.filter(f=>f.props?.cardStyle===void 0):[],i=O6(ak(w5(),"table")),l=s.map(_6),d=Og({...n,props:{...n.props,content:[...l,i]}},o,t);return{...d,props:{...d.props,name:"Stats section"}}}:null}function _6(e){return e.props?.name==="Words"?{...e,props:{...e.props,widthFitPhone:"fill"}}:cT(e.props?.content)?{...e,props:{...e.props,content:e.props.content.map(_6)}}:e}var O6=e=>Nr([e],(o,t)=>`${o}-seed-${t}`)[0];function Nme(e,o){if(!d4(e,o))return null;let t=$(Lme,e);if(t)return t();let r=cn(e);return r?Of(e,r,0,$(Ame,e)??$(g$,e)??$(Rme,e)):null}function Dme(e){return(o,t,r)=>{let a=n=>{if(n.type==="Stats"){let i=Og(O6(ak([],"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 Kl(e,o=Os){let t=P6(e);return t?Dme(t):Nme(e,o)}import{blockTypesIn as A6}from"efficient-easel/screen/lib/document/block-types-in";var R6=()=>({}),L6=new Map;function Mme(e){let o=L6.get(e);if(o)return o;let t=new Set,r=$(Xt,e);if(r)for(let s of r.seeds(R6))for(let i of A6({type:r.childType,props:s}))t.add(i);let a=Kl(e);if(a){let s=0;for(let i of A6(a(R6,l=>`${l}-${s+=1}`)))t.add(i)}t.delete(e);let n=[...t].sort();return L6.set(e,n),n}function dT(e){if(!e||!e.sets&&!e.allow&&!e.deny?.length)return null;let o=iT(e),t=e.allow?new Set(e.allow):null,r=new Set(e.deny??[]),a=new Set(Object.keys(e.host??{})),n=l=>{if(r.has(l))return!1;if(a.has(l))return!0;let d=U0(l);return!d||!o[d]?!1:t?t.has(l):!0},s=new Map,i=l=>{let d=s.get(l);if(d!==void 0)return d;s.set(l,!1);let f=n(l)&&Mme(l).every(i);return s.set(l,f),f};return{sets:o,offers:i}}var Hme="block-offer";function fT(e=F6()){return e.cache(Hme,()=>dT(Mi(e)))}function B6(e,o=F6()){let t=fT(o);return t?t.offers(e):!0}var N6={name:"catalogueLabel",applies:e=>He(En,e),draw(e,o){e.label=$(En,o)}};import{jsx as xT}from"react/jsx-runtime";import{parseBlockWidthFit as zme,phoneKey as Er,tabletKey as ar}from"efficient-easel/draw";import{jsx as Wme}from"react/jsx-runtime";var D6={name:"sectionGroupAllow",applies:e=>Cu.includes(e),panel(e,o,t,r){let a=e.fields?.sections;a&&(a.allow=[...r.sectionGroupAllow])}},pT=new Set(Object.keys(fr)),M6={name:"openSlotDisallow",applies:()=>!0,panel(e,o,t,r){let a=r.contentSectionKeys;if(e?.fields)for(let n of Object.values(e.fields)){let s=n;if(s.type!=="slot"||s.allow)continue;let i=o==="Flex"?a.filter(l=>!pT.has(l)):a;s.disallow=Array.from(new Set([...s.disallow??[],...i]))}}};var H6=Array.from(new Set([...G0.map(e=>e.type),...pT]));function uT(e,o){return H6.includes(e)||o?.sitsInBox===!0}var $me=Array.from(new Set([...H6,...Sp,"GalleryItem"])),Ume={not:{context:"parentOffersPositions",is:!1}},W6={name:"cellWidth",applies:(e,o,t)=>($me.includes(e)||uT(e,t))&&!!t&&typeof t.render=="function",panel(e,o,t){let r=t.cellWidthFields;e.fields={...e.fields,...r()},e.fields=ut(e.fields??{},Object.keys(r()),Ume)},draw(e){let o=e.render;e.render=t=>{let r=lA(t.gridSpan),a=dA(t.gridRowSpan),n=o(t);if(r==null&&a==null)return n;let s={};return r!=null&&(s[cA]=String(r)),a!=null&&(s[fA]=String(a)),Wme(me,{className:"sf-grid-cell",...s,children:n})}}};function $6(e,o){let t=e.props?.id,r=o.appState?.data?.content;return!Array.isArray(r)||typeof t!="string"?!0:!r.some(a=>a?.props?.id===t)}var Af={not:{context:"heldByANode",is:!0}};function Ag(e,o){return"parent"in o?o.parent!=null:!!Aa(o.appState,e.props?.id)}function Aa(e,o){let t=e?.data?.content;if(!Array.isArray(t)||typeof o!="string")return;let r=(a,n)=>{for(let s of a){if(s?.props?.id===o)return n;for(let i of si(s??{})){let l=r(i,s);if(l!==void 0)return l}}};return r(t,null)}var Gme=new Set(["Text","Heading"]),jme=new Set(["h1","h2","h3","h4","h5","h6"]);function U6(e,o){return e==="Heading"?!0:e!=="Text"?!1:typeof o.tag=="string"&&jme.has(o.tag)?!0:ms(o,"text").textStyle?.startsWith("heading-")===!0}var gn={not:{context:"blockOutsideBox",is:!0}},z6={all:[gn,{not:{context:"boxSharesWidth",is:!0}}]},G6={all:[gn,{not:{context:"boxSharesWidthPhone",is:!0}}]},j6={all:[gn,{not:{context:"boxSharesWidthTablet",is:!0}}]};function q6(e,o,t){return{any:[{field:ar(e),is:o},{all:[{field:ar(e),set:!1},t??{field:e,is:o}]}]}}function X6(e,o,t){return{any:[{field:Er(e),is:o},{all:[{field:Er(e),set:!1},t??{field:e,is:o}]}]}}var Z6={any:[{field:"textFit",is:"shrink"},{all:[{field:"textFit",set:!1},{not:{context:"textWrapsByDefault",is:!0}}]}]},Kme=[[["_gBlockSize","minWidth",ar("minWidth"),Er("minWidth"),"maxWidth",ar("maxWidth"),Er("maxWidth")],gn],[["widthFit"],z6],[[ar("widthFit")],j6],[[Er("widthFit")],G6],[["width"],{all:[z6,{field:"widthFit",is:"fixed"}]}],[[ar("width")],{all:[j6,q6("widthFit","fixed")]}],[[Er("width")],{all:[G6,X6("widthFit","fixed")]}]],K6=q6("textFit","shrink",Z6),V6=[[["_gText","textFit",ar("textFit"),Er("textFit")],gn],[["minFont"],{all:[gn,Z6]}],[[ar("minFont")],{all:[gn,K6]}],[[Er("minFont")],{all:[gn,X6("textFit","shrink",K6)]}]],Rg=(e,o)=>Aa(o.appState,e.props?.id),Lg=e=>!!e&&typeof e.type=="string"&&wp(e.type)!==null,mT=e=>(e.type==="Flex"||e.type==="HeroGroup")&&Kr(e.type,e.props?.direction)==="row",hT=e=>{let o=zme(e);return o!==void 0&&o!=="fit"},Vme={blockOutsideBox:(e,o)=>!Lg(Rg(e,o)),boxSharesWidth:(e,o)=>{let t=Rg(e,o);return!Lg(t)||!mT(t)?!1:my({...t.props,direction:"row"})!==""?!0:fy(t.props?.share)!==""&&!hT(e.props?.widthFit)},boxSharesWidthTablet:(e,o)=>{let t=Rg(e,o);if(!Lg(t)||!mT(t))return!1;if(ME(t.props?.[ar("columns")])!==""||my({...t.props,direction:"row"})!=="")return!0;let r=LE(t.props?.[ar("share")])??t.props?.share;return fy(r)!==""&&!hT(e.props?.[ar("widthFit")]??e.props?.widthFit)},boxSharesWidthPhone:(e,o)=>{let t=Rg(e,o);if(!Lg(t)||!mT(t))return!1;let r=t.props?.phoneRow;return(Number(r)===2||Number(r)===3)&&!HE(r,t.props?.[Er("share")])&&!hT(e.props?.[Er("widthFit")]??e.props?.widthFit)}},Yme=e=>/^_[gds][A-Z]/.test(e);function qme(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&&!Yme(r[n][0]);)n++;return Object.fromEntries([...r.slice(0,n),...Object.entries(t),...r.slice(n)])}function Y6(e,o,t){let r=Object.entries(e);return Object.fromEntries([...r.slice(0,o),...Object.entries(t),...r.slice(o)])}function Xme(e,o,t){let r=Object.keys(o);if(r.includes("_dSize")){let{_gBlockSize:a,...n}=t;return Y6(o,r.indexOf("_dSize")+1,n)}return Zme.has(e)&&r.includes("_gSpacing")?Y6(o,r.indexOf("_gSpacing"),t):{...o,...t}}var Zme=new Set(["Text","Heading"]);function Jme(e,o){let{_gText:t,...r}=o;return qme(e,"_gText",r)??{...e,...o}}function Qme(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",ar("textFit"),Er("textFit")])a in r&&(r[a]=e[a]);o.set(t,r)}return r}}var J6={name:"blockSize",applies:(e,o,t)=>uT(e,t)&&!!t&&typeof t.render=="function",panel(e,o,t){let r=Gme.has(o),{text:a}=t.blockSizeFields(r?{tablet:!0,textFit:o==="Heading"?"shrink":"wrap"}:{}),{size:n}=t.blockSizeFields({tablet:!0}),s=Xme(o,e.fields??{},Tt(n,Kme));if(r){let i=Tt(a,V6);if(s=Jme(s,i),o==="Text"){let l=Tt(t.blockSizeFields({tablet:!0,textFit:"shrink"}).text,V6),d=Qme(l),f=e.resolveFields,u=(p,m)=>{let h=f?f(p,m):m.fields,I=w=>U6(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,{...Vme,textWrapsByDefault:i=>!U6(o,i.props??{})})},draw(e,o){ehe(e,o)}};function ehe(e,o){let t=e.render;e.render=r=>{let a=Ox(r),n=Dv(a),s=t(r),i=n&&Dv(a,{atSectionLine:!0});return n===null?s:xT(ohe,{size:n,sectionSize:i??n,atEdge:o===Y,canvasAttrs:r.editor?.isEditing?k4(a):Q6,inCell:v4(a),fillsPhone:S4(a),widens:T4(a),children:s})}}var Q6={};function ohe({size:e,sectionSize:o,atEdge:t,canvasAttrs:r,inCell:a,fillsPhone:n,widens:s,children:i}){let l=iu(),d=$a(t?"edge":"by-box"),f=d?e:o,u=f.className,p=l?.phoneCells===!0,m=n&&l?.phoneRowFits===!0,h=s?xT(y2,{children:i}):i;return xT(Pi,{className:[u,p?a:"",m?b4:""].filter(Boolean).join(" "),...Object.keys(f.style).length?{style:f.style}:{},attrs:d&&r!==Q6?{...f.attrs,...r}:f.attrs,children:h})}import{Fragment as uhe,jsx as Dg}from"react/jsx-runtime";import{jsx as tt,Fragment as bT}from"react/jsx-runtime";import{createContext as Vl,useContext as _r}from"react";var the=new Set(["Flex","Grid"]);function In(e){return typeof e=="string"&&the.has(e)}var Us="contentWidth",gT="full",IT="content";function Lf(e){let o=e?.[Us];return o===gT?!1:o===IT?!0:void 0}function eU(e,o){return e&&!o}function Fg(e){return e.loop==="scroll"&&e.direction!=="tabs"&&e.direction!=="accordion"&&!NA(e)&&!z5(e.scrollDirection)}function Rf(e,o){return In(e)&&Fg(jc(o,!1))?as({}):as(o)}function Bg(e,o){return typeof e!="string"||!Nm(e)||Yi[e]==="rawMarkup"?Rf(e,o).background??"full":Rf(e,o).background??Dm(o).background}function Ng(e){return e!=="full"}function oU(e,o,t){if(!Array.isArray(e)||typeof o!="string")return;let r=(a,n,s,i,l)=>{for(let d of a){let f=d?.props??{};if(f.id===o)return n;let u=In(d?.type),p=(i?Rf(d?.type,f).content:null)==="content"?!0:s,m=u&&(n.inBox?Lf(f)??p:p),h={insideGutter:n.insideGutter||m||u&&Fg(jc(f,l)),inBox:n.inBox||u};for(let I of Br({type:d?.type,props:f})){let w=f[I],S=r(w,h,p,!1,l||Fn(d?.type,I));if(S!==void 0)return S}}};return r(e,{insideGutter:!1,inBox:!1},t,!0,!1)}var rhe=" [--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))))]",ahe="[--sf-edge-g:0px] [--sf-edge-al:var(--sf-edge-l)] [--sf-edge-ar:var(--sf-edge-r)]",nhe="[--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)))]",tU="max-w-[100vw]",she=`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))] ${tU}`;function rU(e){let o={},t=e.pad??{},r=od({left:t.left,right:t.right},{left:t.leftPhone,right:t.rightPhone},{left:t.leftTablet,right:t.rightTablet},{left:t.left,right:t.right},{desktop:t.unit,tablet:t.unitTablet,phone:t.unitPhone},0,e.site?"site":"box"),a=r.style;for(let[i,l]of[["l","paddingLeft"],["r","paddingRight"]]){let d=a[l];d!==void 0&&(o[`--sf-edge-${i}d`]=typeof d=="number"?`${d}px`:String(d));let f=a[`--sf-pad-${i}-tablet`],u=a[`--sf-pad-${i}-phone`];f!==void 0&&(o[`--sf-edge-${i}t`]=String(f)),u!==void 0&&(o[`--sf-edge-${i}p`]=String(u))}let n=Xa(e.site?"site":"box"),s=r.classes.includes(n.className.split(" ")[0]);return{className:`${e.gutter?`${n.className} ${n.edge}${rhe}`:`${ahe}${s?` ${n.className}`:""}`} ${nhe}`,style:o}}function Reo(e){let{className:o,style:t}=rU(e);return{className:`${o} ${she}`,...Object.keys(t).length?{style:t}:{}}}var ihe="[--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 lhe="--sf-edge-beyond";function aU(e){return`max(0px,calc((${e===null?Qc:`min(${Qc},${e})`} - ${Ho}) / 2))`}var che=`${ihe} 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))] ${tU}`;function Leo(e){let{className:o,style:t}=rU(e);return{className:`${o} ${che}`,style:{...t,[lhe]:e.beyond??"0px"}}}var Ff=Vl(!1);function zeo(){return _r(Ff)}function Geo({children:e}){return tt(Ff.Provider,{value:!0,children:e})}var yT=Vl(!1);function ST({children:e}){return tt(yT.Provider,{value:!0,children:e})}var nU=Vl(null);function wT({ground:e,children:o}){return tt(nU.Provider,{value:e,children:o})}var CT=Vl(!1);function dhe(){return _r(CT)}function sU({atTop:e,nested:o}){return tt(bT,{children:dhe()?o:e})}var Bf=Vl(void 0);function iU({children:e}){return tt(Bf.Provider,{value:null,children:e})}function vT(){return _r(Bf)===void 0&&!_r(CT)&&!_r(Ff)}function Yl({own:e,followed:o}){return tt(bT,{children:vT()?e():o()})}var lU=Vl(null);function cU({value:e,children:o}){return tt(lU.Provider,{value:e,children:o})}function dU({draw:e}){return tt(bT,{children:e(_r(lU))})}function jeo(){return _r(Bf)??null}function fU({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(Ff),S=_r(yT),v=eU(e,w),b=v&&!S,y=Wt(),k=!!(i&&b),L=k?p:Jo(p??"",y.className)||void 0,O=k||!y.className?l:{...l,...y.attrs},D=s&&!b?PL(s.values,s.frame):null,T=i&&!b?i:null,F=d&&!m?dL:null,C=[b?o:t,b?F:null,D?.className,T?KL:null].filter(Boolean).join(" "),R=fhe(m&&b,D||T?{...a,...D?.style,...T}:a),P=_r(Bf),_=_r(nU),W=d&&f&&P===void 0?{gutter:v,...s?{pad:s.values}:{},beyond:v&&S?aU(_):"0px",...h&&v?{site:!0}:{}}:null,G=d?tt(CT.Provider,{value:!0,children:tt(Bf.Provider,{value:W,children:I})}):I,Z=v?tt(Ff.Provider,{value:!0,children:G}):G,V=s&&b?TL(s.values):null,de=O&&Object.keys(O).length>0?O:null,ve=tt("div",{...V?null:de,className:!V&&L?C?`${C} ${L}`:L:C,style:V||!u?R:{...R,...u},"data-tab-label":n,children:S?tt(yT.Provider,{value:!1,children:v&&!m?tt("div",{className:F?`${r} ${F}`:r,children:Z}):Z}):Z}),oe=V?tt("div",{...de,className:L?`${V.className} ${L}`:V.className,style:u?{...V.style,...u}:V.style,children:ve}):ve;return y.scope(i&&b?tt("div",{className:Jo(_m,y.className),style:{display:"contents",...i},...y.attrs,children:oe}):oe)}function fhe(e,o){return e?{...o,paddingLeft:0,paddingRight:0}:o}import{jsx as phe}from"react/jsx-runtime";function pU({children:e}){return phe(me,{className:j5,children:e})}function mhe({side:e,children:o}){return vT()?Dg(pU,{children:Dg(me,{className:K5(e),children:o})}):Dg(uhe,{children:o})}var uU={name:"boxJoin",applies:(e,o,t)=>e===Y&&!!t&&typeof t.render=="function",draw(e){let o=e.render;e.render=t=>{let r=og(t.join);return r?Dg(mhe,{side:r,children:o(t)}):o(t)}}};var mU=(e,o)=>e.fields?.[o]?.type==="slot",hhe=(e,o)=>mU(o,Ue)||Up(e).some(t=>mU(o,t)),hU={name:"cardTemplateOnInsert",applies:(e,o,t)=>hhe(e,t),panel(e,o){let t=e.resolveData;e.resolveData=(r,a)=>{let n=r.props??{},s=a?.trigger,i=s==="insert"?Mp(o,n):s==="copy"?Dp(o,n):n,l=i===n?r:{...r,props:i};return t?t(l,a):l}}};import{jsx as Wg}from"react/jsx-runtime";import{Fragment as zs,jsx as ao,jsxs as kT}from"react/jsx-runtime";import{createContext as TT,useContext as yn,useId as She}from"react";import{REPEAT_ATTRIBUTE as whe,REPEAT_INDEX_ATTRIBUTE as Che}from"efficient-easel/draw";import{jsx as doo}from"react/jsx-runtime";import{createContext as Ihe,useContext as yU,useMemo as yhe}from"react";var xU="title";function gU(e){return`${e}Alt`}function xhe(e){let o=e.find(t=>typeof t?.url=="string");return{url:o?.url??"",alt:typeof o?.alt=="string"?o.alt:""}}function IU(e,o){let t={[xU]: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}=xhe(n);t[r]=s,t[gU(r)]=i}}return t}function ghe(e,o){return typeof o!="string"?o.flatMap(t=>ghe(e,t)):e===Ut||!db(e)?[]:o==="image"?ub(e,["images"]).map(t=>({key:t.key,label:t.label,kind:"image",alt:gU(t.key)})):o!=="text"?[]:[{key:xU,label:c("Title")},...ub(e,["text","date"]).map(t=>({key:t.key,label:t.label}))]}var bU=Ihe(null);function bhe(){return yU(bU)?.record??null}function moo(e){let o=bhe();return o!==null&&o.type===e?o:null}function SU(){let e=yU(bU);return yhe(()=>e&&e.record.type!==Ut?IU(e.record,e.dateWords):null,[e])}function Poo({props:e,editing:o,children:t}){let r=yn(Nf);return!o&&ky(e,r?.row)?null:ao(zs,{children:t})}var Hg=TT(null);function Eoo({field:e,children:o}){let t=yn(Hg);return ao(zs,{children:o(t&&t.field===e?t.id:void 0)})}function vhe(e,o){return e?.find(t=>!!o[t.field]?.trim()&&!t.gates.some(r=>ky({[ni]:r},o)))?.field??""}var Nf=TT(null),Mg=TT(null),khe={label:"text-[length:var(--size-label,12px)]"},The=`flex min-h-6 items-center border border-dashed border-line px-2 py-1 ${khe.label} text-fg-dim`;function _oo({name:e,label:o,editing:t}){let r=yn(Mg)?.(e),a=du()!=="";return r!=null&&r!==!1?a?ao(me,{className:"contents",children:r}):ao(zs,{children:r}):t?ao(me,{className:The,children:c("Shown by the section: {name}",{name:o?.trim()||e})}):null}function Ooo(){return yn(Nf)}function PT({type:e,props:o,children:t}){let r=yn(Nf),a=SU(),n=r?.row??a;return ao(zs,{children:t(l_(e,o,n,r?.ownerType,r?.fields,r?.slot),r,n)})}function Phe({attrs:e,selected:o,hover:t,action:r,titleField:a,children:n}){let s=She(),{press:i,disabled:l}=r,d=r.label?.trim(),f=!d&&a?{id:`${s}-title`,field:a}:null;return kT("div",{...e,id:s,className:t&&!l?`${YC} ${O2}`:YC,children:[ao("button",{type:"button",[L2]:"",className:l?N2:B2,"aria-pressed":o,...d?{"aria-label":d}:{"aria-labelledby":f?.id??s},...l?{"aria-disabled":!0,tabIndex:-1}:null,onClick:l?void 0:i}),ao(Hg.Provider,{value:f,children:n})]})}function Aoo({ownerId:e,ownerType:o,slot:t=Ue,Template:r,rows:a,items:n,fields:s,states:i,stateLine:l,actions:d,pressTitles:f,previewHover:u,fallback:p,copyAttrs:m,wrapCopy:h,rowKey:I,hostParts:w,children:S}){let v=yn(Nf),b=yn(Hg),y=yn(Mg);if(!r||(r.blockCount??0)<=0)return ao(zs,{children:p});let k=v!==null,L=t_(o),O=u??v?.previewHover,D=r.blockCount===1?ao(wO,{children:ao(r,{className:gO})}):ao(r,{}),T=new Set,F=(R,P)=>{if(!I)return P;let _=I(R,P);for(;T.has(_);)_=`${_}#${P}`;return T.add(_),_},C=a.map((R,P)=>{let _=i?.[P],W={row:R,index:P,ownerType:o,slot:t,item:n?.[P],nested:k,...s?{fields:s}:null,..._?{state:_}:null,...L?{linesBetween:L}:null,...O?{previewHover:O}:null},G=yv(_)?kT(zs,{children:[D,l==="under"?ao("span",{"aria-hidden":"true",className:T2}):Iv(_)?kT("span",{"aria-hidden":"true",className:P2,children:[ao("span",{className:E2}),ao("span",{className:_2})]}):ao("span",{"aria-hidden":"true",className:k2})]}):D,Z={[whe]:`${e}:${t}`,[Che]:P,...typeof m=="function"?m(W):m},V=d?.[P],de=A2(_,l),ve=V?ao(Phe,{attrs:{...Z,...de},selected:_?.selected===!0,hover:l!=="under",action:V,titleField:vhe(f,R),children:G}):b?ao("div",{...Z,...de,children:ao(Hg.Provider,{value:null,children:G})}):ao("div",{...Z,...de,children:G}),oe=h?h(ve,W):ve;return ao(Nf.Provider,{value:W,children:w?ao(Mg.Provider,{value:Oe=>w(W,Oe),children:oe}):y?ao(Mg.Provider,{value:null,children:oe}):oe},F(W,P))});return ao(zs,{children:S(C)})}var wU={name:"clickableParts",applies:(e,o,t)=>typeof t?.render=="function"&&e!==Oo&&e!==gi,draw(e,o,t){let r=e,a=()=>r.textParts??r.fields,n=r.render,s=t.inspector?.PartAnchors,i=(l,d)=>DB(a(),d,f=>s_(o,l,f));r.render=l=>{let d=NN(l),f=zM(l);return l.editor?.isEditing&&s?Wg(PT,{type:o,props:l,children:u=>Wg(s,{needles:i(l,u),styles:d,motions:f,type:o,children:n(l)})}):!Object.keys(d).length&&!Object.keys(f).length?n(l):Wg(PT,{type:o,props:l,children:u=>Wg(XM,{needles:i(l,u),styles:d,motions:f,type:o,atEdge:o===Y,children:n(l)})})}}};import{jsx as CU}from"react/jsx-runtime";var vU={name:"sectionCorners",applies:(e,o,t)=>o.isSection(e)&&!!t&&typeof t.render=="function",panel(e,o,t){e.fields={...e.fields,...t.sectionShapeFields()}},draw(e){let o=e.render;e.render=t=>{let r=P1(t.sectionCorners,t.sectionCornerSides,t.sectionCornersUnit),a=o(t);return r?CU(me,{className:"sf-section-corners",style:{display:"contents",...r},children:a}):a}}},ET=["CollectionCard"],kU={name:"cardCorners",applies:(e,o,t)=>ET.includes(e)&&!!t&&typeof t.render=="function",panel(e,o,t){e.fields={...e.fields,...t.cardShapeFields()}},draw(e){let o=e.render;e.render=t=>{let r=_1(t.cardCorners,t.cardCornerSides,t.cardCornersUnit),a=o(t);return r?CU(me,{className:"sf-card-corners",style:{display:"contents",...r},children:a}):a}}};var TU={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 PU={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 EU,jsxs as Ehe}from"react/jsx-runtime";var _he="Flex",_U=(e,o)=>e[o]!==void 0&&e[o]!==!1&&!e.editor?.isEditing,OU={name:"headCore",applies:(e,o,t)=>typeof t?.render=="function",draw(e){let o=e.render;e.render=t=>_U(t,Xd)?EU(me,{className:sx,children:t[Xd]==="empty"?null:o(t)}):o(t)}},AU={name:"headBox",applies:(e,o,t)=>e===_he&&typeof t?.render=="function",draw(e){let o=e.render;e.render=t=>_U(t,qd)?Ehe(me,{className:ix,children:[EU(lx,{}),o(t)]}):o(t)}};import{createElement as Ohe}from"react";var RU={name:"hiddenNodes",applies:(e,o,t)=>typeof t?.render=="function",draw(e,o,t){let r=o===Y?"edge":t.isSection(o)?"section":"by-box",a=e.render;e.render=n=>{if(pa(n))return null;let s=Kc(n),i=TO(s,zA(n),{sectionClassName:Kc(n,{atSectionLine:!0}),line:r});return Ohe(CO.Provider,{value:i},a(n))}}};import{jsx as Fhe}from"react/jsx-runtime";import{createContext as FU,createElement as LU,useContext as Ahe}from"react";var BU=FU(null),Rhe=FU(!1),nto=BU.Provider;function Lhe(e,o,t){return e===void 0||e===""||o===null||o.length===0||!t.includes(e)?!0:o.includes(e)}function NU({name:e,editing:o,children:t}){let r=Ahe(BU);return o||Lhe(e,r?.selected??null,r?.known??[])?t:LU("div",{hidden:!0,style:{display:"none"}},LU(Rhe.Provider,{value:!0},t))}var Bhe="Flex",DU={name:"showFor",applies:(e,o,t)=>e===Bhe&&typeof t?.render=="function",draw(e){let o=e.render;e.render=t=>{let r=eH(t[kl])?.name;if(r===void 0)return o(t);let a=!!t.editor?.isEditing;return Fhe(NU,{name:r,editing:a,children:o(t)})}}};var MU=xu.mediaFields,Nhe=e=>Vy(e)?e.src:e;function Dhe(e,o){let t=o;for(let r of $(MU,e)??[])t=JO(t,r,Nhe);return t}var HU={name:"mediaValues",applies:(e,o,t)=>typeof t?.render=="function"&&($(MU,e)?.length??0)>0,draw(e,o){let t=e.render;e.render=r=>t(Dhe(o,r))}};import{jsx as Df,Fragment as WU,jsxs as $U}from"react/jsx-runtime";var Mhe="!grow-0 !shrink-0 !basis-0",Hhe=["[.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(" "),Whe="flex flex-col w-full min-w-0 [&>*]:grow";function UU({anchor:e}){let o=zn(e),t=$a(),r=du();return o?Df("span",{id:o,className:Jo(t?`sf-section-anchor ${Mhe} ${Hhe}`:"sf-section-anchor",r),"aria-hidden":"true"}):null}function $he({anchor:e,copiesInBox:o,children:t}){let r=iu()?.columnsRow===!0,a=SO(),n=zn(e)!=="";return o?Df(WU,{children:t}):r&&!a&&n?$U(me,{className:Whe,children:[Df(UU,{anchor:e}),t]}):$U(WU,{children:[Df(UU,{anchor:e}),t]})}var zU={name:"sectionAnchor",applies:(e,o,t)=>o.isSection(e)&&!!t&&typeof t.render=="function",panel(e,o,t){let r=t.anchorFields;e.fields={...e.fields,...r()}},draw(e,o){e.defaultProps={...e.defaultProps,anchor:""};let t=e.render;e.render=r=>Df($he,{anchor:r.anchor,copiesInBox:Bt(o,r),children:t(r)})}};import{jsx as Uhe}from"react/jsx-runtime";var GU=Object.fromEntries(bE.map(e=>[e,"picture"])),zhe={[Y]:"box",Ticker:"marquee",...Object.fromEntries(Tp.map(e=>[e,"cards"])),...GU},jU=(e,o)=>!ru.has(e)&&!!o&&typeof o.render=="function";function KU(e,o,t,r){e.fields={...e.fields,...t.animationTabFields(o,r)}}function VU(e,o){let t=e,r=t.render;t.render=a=>{let n=ki(a);return!n||Bt(o,a)?r(a):Uhe(Vh,{views:n,editing:!!a.editor?.isEditing,takesViewHide:!0,atEdge:o===Y,children:r(a)})}}var YU={name:"sectionAnimation",applies:(e,o,t)=>o.isSection(e)&&jU(e,t),panel:(e,o,t)=>KU(e,$(zhe,o)??"section",t,o),draw:(e,o)=>VU(e,o)},qU={name:"blockEntrance",applies:(e,o,t)=>!o.isSection(e)&&jU(e,t),panel:(e,o,t)=>KU(e,$(GU,o)??"block",t,o),draw:(e,o)=>VU(e,o)};import{jsx as Ghe}from"react/jsx-runtime";var XU=(e,o)=>!ru.has(e)&&!!o&&typeof o.render=="function";function jhe(e){let o=ev.filter(t=>t.block===e);return o.length===1?o[0].focus:void 0}function ZU(e,o){let t=e,r=t.render,a=jhe(o),n=e.drawsPictures===!0;t.render=s=>{let i=Sl(s);return!i||Bt(o,s)?r(s):Ghe(mx,{views:i,...a?{origins:$M(s,a)}:{},takesViewHide:!0,atEdge:o===Y,zoomInside:n?"picture":"layer",children:r(s)})}}var JU={name:"sectionScroll",applies:(e,o,t)=>o.isSection(e)&&XU(e,t),draw:(e,o)=>ZU(e,o)},QU={name:"blockScroll",applies:(e,o,t)=>!o.isSection(e)&&XU(e,t),draw:(e,o)=>ZU(e,o)};import{jsx as Khe}from"react/jsx-runtime";import{createElement as Vhe}from"react";var _T=["sectionHeightMode","sectionHeightModeTablet","sectionHeightModePhone"];function Yhe(e,o){let t=e.props??{};return _T.some(r=>t[r]==="fill")?!0:("parent"in o?o.parent:Aa(o.appState,t.id))?.type===Y}var OT={name:"sectionHeight",applies:(e,o,t)=>o.isSection(e)&&!mO.has(e)&&!!t&&typeof t.render=="function",panel(e,o,t){let r=t.heightFields;e.fields={...e.fields,...r()};let a=r({fill:!0}),n=new WeakMap,s=l=>{if(!l||!_T.some(f=>f in l))return l;let d=n.get(l);if(!d){d={...l};for(let f of _T)f in d&&(d[f]=a[f]);n.set(l,d)}return d},i=e.resolveFields;e.resolveFields=(l,d)=>{let f=i?i(l,d):d.fields,u=p=>Yhe(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=bO(r);return a?Khe(Pi,{className:a.className,style:a.style,...o===Y?{attrs:PE}:null,children:t(r)}):t(r)}}},ez={name:"sectionHeightFillRoot",applies:OT.applies,draw(e,o){let t=e.render;e.render=r=>{let a=Bt(o,r)?null:kO(yO(r),IO(r).join(" "));return Vhe(vO.Provider,{value:a},t(r))}}};import{jsx as $g}from"react/jsx-runtime";import{PIN_ATTR as oz,PIN_FRAME_ATTR as qhe}from"efficient-shell/format";var rz=nz("sectionSticky",(e,o,t)=>o.isSection(e)&&!UL.has(e)&&!!t&&typeof t.render=="function",!0),az=nz("cardSticky",(e,o,t)=>ET.includes(e)&&!!t&&typeof t.render=="function",!1);function nz(e,o,t){return{name:e,applies:o,panel(r,a,n){let s=_S.has(a);r.fields=Zhe(r.fields??{},Tt(n.stickFields({intro:s,screens:t,above:t}),Jhe(s))),t&&Dr(r,{heldByANode:Ag})},draw(r,a){let n=r.render,s=_S.has(a);r.render=i=>{let l=RS(i,{atScreenTop:s,above:t});if(!l)return n(i);let d=u=>{let p=$g(cu,{children:n(i)});return $g(me,{...u.attrs,style:u.style,children:u.attrs[oz]===""?$g("div",{[qhe]:"",children:p}):p})},f=t?RS(i,{atScreenTop:s,track:t,above:!0}):l;return!f||f.attrs[oz]!==""?d(l):$g(Yl,{own:()=>d(f),followed:()=>d(l)})}}}}var tz=[cr,Wl],Xhe="_gStick";function Zhe(e,o){let t=Object.keys(e),r=e[bl];if(!r){let S=t.findIndex(v=>tz.includes(v));return S<0?{...e,...o}:Object.fromEntries([...t.slice(0,S).map(v=>[v,e[v]]),...Object.entries(o),...t.slice(S).map(v=>[v,e[v]])])}let{[Xhe]: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(bl),u=t.findIndex((S,v)=>v>f&&tz.includes(S)),p=u<0?t.length:u,m=t.indexOf(Yh),h=m>f&&m<p?m:p,I=S=>[S,S===bl?{...r,dot:{any:d}}:e[S]],w=[...t.slice(0,h).map(I),...i,...t.slice(h,p).map(I),...l,...t.slice(p).map(I)];return Object.fromEntries(w)}function Jhe(e){let o=l=>({field:l,in:[!0,!1]}),t=l=>e&&l==="stickTop"?{any:[{field:l,is:!0},km]}:{field:l,is:!0},r=l=>({field:l,is:!0}),a=l=>({all:[l,Af,{not:{field:Ja,is:!0}}]}),[n,s,i]=TS;return[[["stickTopDistance"],t("stickTop")],[["stickTopDistanceTablet"],Mr(["stickTopTablet","stickTop"],o,t)],[["stickTopDistancePhone"],Mr(["stickTopPhone","stickTopTablet","stickTop"],o,t)],[[n],a(r("stickTop"))],[[s],a(Mr(["stickTopTablet","stickTop"],o,r))],[[i],a(Mr(["stickTopPhone","stickTopTablet","stickTop"],o,r))],[[es],zi],[[Ja],zi]]}import{jsx as Qhe}from"react/jsx-runtime";var sz={name:"sectionBorder",applies:(e,o,t)=>o.isSection(e)&&!!t&&typeof t.render=="function",draw(e,o){if(Uh.has(o))return;let t=e.render;e.render=r=>{let a=qL(r.sectionBorder,r.sectionBorderPhone,r.sectionBorderTablet,YL(r)),n=t(r);return a?Qhe(me,{className:_m,style:{display:"contents",...a},children:n}):n}}};import{jsx as AT}from"react/jsx-runtime";var iz={name:"sectionTheme",applies:(e,o,t)=>o.isSection(e)&&!q_.has(e)&&!!t&&typeof t.render=="function",panel(e,o,t){let{sectionThemeFields:r,SECTION_THEME_FOLLOW_LABEL:a}=t,n=By.has(o);e.fields={...e.fields,...n?r(Dn,a):r()}},draw(e,o){let t=By.has(o),r=e.render;e.render=a=>{let n=Z_(t?{...a,sectionAccent:Dn(a.sectionAccent)}:a),s=r(a);if(!n)return s;let i=d=>AT(Pi,{className:n.className,style:d,children:s}),l=n.style;return Bt(o,a)?AT("div",{className:n.className,style:{...l,display:"contents"},children:s}):Bg(o,a)!=="content"?i(l):AT(Yl,{own:()=>i({...l,...Ui(Ho)}),followed:()=>i(l)})}}},lz={name:"slideTheme",applies:e=>e==="HeroSlide",panel(e,o,t){let{sectionThemeFields:r,BLOCK_THEME_FOLLOW_LABEL:a}=t;e?.fields&&(e.fields={...e.fields,...r(Dn,a)})}};import{jsx as Io}from"react/jsx-runtime";var cz=null;function RT(e){cz=e}function dz(){return cz}import{jsx as exe}from"react/jsx-runtime";var oxe="mx-auto w-full max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)]",fz=Xa("box").frame,Mf=`${oxe} ${fz}`,txe=Xa("site").frame;function Cro(e){return e?txe:fz}var rxe="mx-auto w-full max-w-[1280px] px-[60px]",axe="max-[960px]:px-6",vro=`${rxe} ${axe}`;function kro({contained:e,className:o="",style:t,pad:r,fillWidth:a="w-full",children:n}){return exe(fU,{contained:e,framedClass:`${Mf} ${o}`,fillClass:`${a} ${o}`,columnClass:Mf,style:t,pad:r,children:n})}var ql="--sf-sw-site",nxe="--sf-sw-content",sxe="--sf-bg-cap",ixe="contents [--sf-site-width:var(--sf-sw-content)] max-view-wide:[--sf-site-width:var(--sf-sw-site)]",LT=({own:e,content:o,siteContent:t})=>e===!0&&o==="full"&&t!=="full",uz="contents view-wide:[--sf-site-width:100vw]",FT=({held:e},o,t)=>e?t:Io(me,{className:o,children:t}),lxe=`contents view-wide:[--sf-site-width:100vw] ${uW} view-wide:[--sf-site-gutter:var(--intro-edge)]`,BT=(e,o,t)=>o==="content"?`min(${Me(e,t)},var(${ql}))`:Me(e,t);function Hf({content:e,contentMax:o,contentMaxUnit:t},r){return e==="full"?r!=="content"?Qc:null:o===null?null:BT(o,r,t)}function Wf(e,o){return o===null?e:Io(me,{className:"contents",style:{[ql]:Ho},children:Io(me,{className:ixe,style:{[nxe]:o},children:e})})}var cxe="--sf-content-cap",dxe="contents max-view-wide:[--sf-content-cap:none]";function fxe({content:e,contentMax:o,contentMaxUnit:t},r){return e==="full"?null:o!==null?BT(o,r,t):r==="content"?null:`var(${ql})`}function pxe(e,o){return o===null?e:Io(me,{className:"contents",style:{[ql]:Ho},children:Io(me,{className:dxe,style:{[cxe]:o},children:e})})}var mz=`var(${ql},${Ho})`,bn=(e,o,t="")=>e==="content"?Io(me,{className:t||void 0,style:Ui(Ho),children:Io(wT,{ground:mz,children:o})}):o;function hz(e,o,t,r,a){if(LT(t))return bn(r,FT(t,uz,Io(ST,{children:e({...o,contained:!0})})),a);if(t.content==="full")return bn(r,e({...o,contained:!1}),a);let n=Hf(t,r);return r==="content"&&n===null&&!t.own?e({...o,contained:!0}):bn(r,Wf(Io(ST,{children:e({...o,contained:!0})}),n),a)}function uxe(e,o,t,r,a){if(t==="hero"){let i=Wf(e(o),Hf(r,r.band));return r.band==="full"?Io(me,{style:{[bm]:"none",[hS]:"initial",[xS]:"initial"},children:i}):r.band==="content"?Io(me,{style:Sm(!0),children:i}):i}let n=r.band??"full",s=Wa(o,{atSectionLine:!a});if(t==="rawMarkup"){if(r.content==="full")return bn(n,e(o),s);let i=r.contentMax===null?Ho:BT(r.contentMax,n,r.contentMaxUnit);return Io(me,{className:"contents",style:{[ql]:Ho},children:bn(n,Io(me,{className:s||void 0,style:Ui(i),children:e(o)}),s)})}if(t==="scrollOver"){let i=r.content==="full",l=LT(r)?FT(r,lxe,e({...o,fullWidth:!1})):Wf(e({...o,fullWidth:i}),i?null:Hf(r,n));return n==="content"?Io(me,{className:"contents",style:{[sxe]:Ho},children:l}):l}switch(t){case"both":return bn(n,pxe(e(o),fxe(r,n)),s);case"contained":return hz(e,o,r,n,s);case"contentColumn":case"contentFull":case"productGrid":{let i=LT(r),l=r.content==="full"&&!i?"full":"page",d=i?FT(r,uz,e({...o,widthMode:l})):Wf(e({...o,widthMode:l}),r.content==="full"?null:Hf(r,n));return t==="productGrid"&&!r.own?n==="content"?Io(me,{className:s?`${Mf} ${s}`:Mf,children:d}):d:bn(n,d,s)}default:return bn(n,Wf(e(o),Hf(r,n)),s)}}function pz(e,o,t,r,a){let n=a===Y?"edge":"by-box",s=i=>uxe(e,o,t,r,i);return n==="edge"?s(!0):Wa(o)===Wa(o,{atSectionLine:!0})?s(!1):Io(su,{line:n,draw:s})}function mxe(e,o){let t=$(Yi,o);if(!t)return;let r=e.render;e.render=a=>{let n=Dm(a),s={band:n.background,content:n.content??"content",contentMax:null},i=()=>t==="rawMarkup"?r(a):Io(dU,{draw:h=>h?.background==="content"?Io(wT,{ground:mz,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=pz(r,a,t,I,o);if(!In(o))return w;let S=Lf(a),v=S===void 0?I.content:S?"content":"full";return v===I.content?w:Io(sU,{atTop:w,nested:hz(r,a,{...I,content:v,own:!1},I.band??"full",Wa(a))})},d=Rf(o,a);if(!hF(d))return i();let f=t==="rawMarkup",u=Bg(o,a),p=d.content??(f?"full":s.content),m={band:u,content:u==="content"?"content":p,contentMax:d.contentMax,contentMaxUnit:d.contentMaxUnit,own:!f,siteContent:s.content};return Io(Yl,{own:()=>Io(cU,{value:{background:m.band,content:m.content},children:pz(r,a,t,m,o)}),followed:i})}}var hxe={all:[Af,{not:{context:"runsEdgeToEdge",is:!0}}]},xz={name:"sectionWidth",applies:(e,o,t)=>Nm(e)&&!!t&&typeof t.render=="function",panel(e,o,t){let r=t.sectionOwnWidthFields({drawsFullOnItsOwn:$(Yi,o)==="rawMarkup"}),a=In(o)?t.boxGutterFields():{},n={...e.fields,...a,...r},s=In(o)?yz(o,e,n,[Us]):n;Dr(e,{heldByANode:Ag}),In(o)&&Dr(e,{runsEdgeToEdge:(i,l)=>Fg(jc(i.props??{},d_(l.appState,i.props?.id)?.inCopy!==!1))}),e.fields=ut(s,[Fe.background,Fe.content],In(o)?hxe:Af)},draw(e,o){mxe(e,o)}};function xxe(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 gxe=new Set(["Heading","Text","ImageBlock","ButtonBlock"]),gz={name:"containedWidth",applies:(e,o,t)=>gxe.has(e)&&!!t&&typeof t.render=="function",panel(e,o,t){let r=t.widthField;e.fields=yz(o,e,{...e.fields,...r("page")});let a=e.resolveFields;e.resolveFields=(n,s)=>{let i=a?a(n,s):s.fields,l=Bm(n?.props??{},"page"),d=f=>xxe(f,l);return i&&typeof i.then=="function"?i.then(d):d(i)}},draw(e){let o=e.render;e.render=t=>{let{mode:r}=Bm(t,"page");return o({...t,contained:r!=="full"})}}},Ixe={not:{context:"inHeroGroupRow",is:!0}},Iz={name:"buttonAlignInRow",applies:e=>e==="ButtonBlock",panel(e){let o=e;o.fields=ut(o.fields??{},["align"],Ixe),Dr(o,{inHeroGroupRow:(t,r)=>{let a=Aa(r.appState,t.props?.id);return!!a&&a.type==="HeroGroup"&&Kr("HeroGroup",a.props?.direction)==="row"}})}};function yxe(e){return Object.values(e).some(o=>!!o&&typeof o=="object"&&o.type==="slot")}var bxe={any:[]},Sxe={all:[{not:{context:"outsideBox",is:!0}},{not:{context:"insideSiteGutter",is:!0}}]},wxe={not:{context:"widthCappedByParent",is:!0}};function yz(e,o,t,r=["widthMode"]){if(e==="ButtonBlock")return ut(t,["_gWidth",...r],bxe);if(yxe(t)){let a=(n,s)=>oU(s.appState?.data?.content,n.props?.id,Ng(dz()));return Dr(o,{outsideBox:(n,s)=>a(n,s)?.inBox!==!0,insideSiteGutter:(n,s)=>a(n,s)?.insideGutter}),ut(t,r,Sxe)}return Dr(o,{widthCappedByParent:(a,n)=>"parent"in n?YE(n.parent):$6({props:a.props??{}},n)}),ut(t,r,wxe)}var Cxe=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"]),bz={name:"sectionGroups",applies:(e,o)=>o.isSection(e)&&(Cxe.has(e)||o.isHostBlock(e)),panel(e,o,t){let r=t.assignSectionGroups;e?.fields&&(e.fields=r(e.fields,o))}},vxe=new Set(["HeroSlide","HeroGroup"]),Sz={name:"blockGroups",applies:(e,o,t)=>vxe.has(e)||!o.isSection(e)&&eg in(t?.fields??{}),panel(e,o,t){let r=t.assignSectionGroups;e?.fields&&(e.fields=r(e.fields,o))}};import{jsx as NT}from"react/jsx-runtime";var kxe=new Set(["Flex","Grid"]),wz=e=>Object.entries(e.fields??{}).filter(([,o])=>o?.type==="slot").map(([o])=>o),Txe=(e,o)=>e.fields?.[o]?.ownPictures===!0,Pxe=["blockCount","blockIds"],Exe=new WeakMap,_xe=new WeakMap;function Oxe(e,o){let t=o?_xe:Exe,r=t.get(e);if(r)return r;let a=e,n=s=>NT(iU,{children:NT(cu,{ownPictures:o,children:NT(a,{...s})})});Object.assign(n,e);for(let s of Pxe)Object.defineProperty(n,s,{get:()=>e[s],configurable:!0,enumerable:!0});return t.set(e,n),n}var Cz={name:"slotsStartAfresh",applies:(e,o,t)=>!kxe.has(e)&&typeof t?.render=="function"&&wz(t).length>0,draw(e){let o=wz(e),t=e.render;e.render=r=>{let a={...r};for(let n of o){let s=r[n];typeof s=="function"&&(a[n]=Oxe(s,Txe(e,n)))}return t(a)}}};var Axe=new Set(["Form","Stats","Logos"]);function vz(){return[...Axe]}function DT(e,o,t=[]){let r=new Set(e),a=$0.filter(d=>r.has(d)),n=a.filter(d=>d!=="Header"&&d!=="Footer"&&!Cu.includes(d)),s=new Set([...o,...Sp,...vz()]),i=a.filter(d=>!s.has(d)),l=new Set([...a,...t]);return{isSection:d=>l.has(d)&&!Wp(d),isHostBlock:()=>!1,sectionGroupAllow:n,contentSectionKeys:i}}var Rxe=[Cz,HU,OU,D6,M6,yM,vU,sz,kU,bM,qU,QU,W6,xz,gz,Iz,OT,zU,iz,YU,JU,rz,az,uU,lz,J6,bz,Sz,PU,TU,wU,AU,DU,ez,RU,N6,hU];function kz(e,o,t){let r=o;for(let a of Rxe)a.applies(e,t,r)&&(t.inspector&&a.panel?.(r,e,t.inspector,t),a.draw?.(r,e,t));return o}import{jsx as MT}from"react/jsx-runtime";import{ClockIcon as Lxe,DurationIcon as Fxe}from"efficient-easel/icons";import{MOTION_TIMING as Tz}from"efficient-shell/format";import{useSelectedHost as Bxe}from"efficient-easel/easel";function Xl(e){let{min:o,max:t,step:r,default:a}=Tz[e].duration;return Wo("Duration",MT(Fxe,{}),o,t,r,a,"s")}function Zl(e){let{min:o,max:t,step:r,default:a}=Tz[e].delay;return Wo("Delay",MT(Lxe,{}),o,t,r,a,"s")}function Jl(e,o){let t=e.render,r=a=>{let n=Bxe();return t({...a,value:o(a.value,n?.values)})};return{...e,render:a=>MT(r,{...a})}}function Ug({readsSpeed:e}){return Jl(Xl("loop"),(o,t)=>Qx({loopDuration:o,speed:e?t?.speed:void 0}))}function zg(){return Jl(Zl("loop"),e=>G5({loopDelay:e}))}import{jsx as Lo}from"react/jsx-runtime";import{DirectionDownIcon as Nxe,DirectionIcon as Dxe,DirectionLeftIcon as Mxe,DirectionRightIcon as Hxe,DirectionUpIcon as Wxe,EntranceBounceIcon as $xe,EntranceFadeIcon as Uxe,EntranceFlipIcon as zxe,EntranceGlideIcon as Gxe,EntranceRevealIcon as jxe,EntranceRiseIcon as Kxe,EntranceScaleIcon as Vxe,EntranceSpinIcon as Yxe,NoSymbolIcon as qxe}from"efficient-easel/icons";import{NoControlMark as Xxe,noControlField as Zxe}from"efficient-easel/screen/lib/document/panel-no-control-mark";import{customize as Jxe,group as Qxe}from"efficient-easel/screen/lib/document/box-fields";import{ENTRANCE_FROM as ege,ENTRANCE_FROM_DEFAULT as Ez,ENTRANCE_KINDS as _z,ENTRANCE_KINDS_WITH_FROM as oge,entranceAttrs as tge,playEntrance as rge,readEntrance as age}from"efficient-shell/format";var nge={none:"None",fade:"Fade",rise:"Rise",scale:"Scale",glide:"Glide",bounce:"Bounce",flip:"Flip",reveal:"Reveal",spin:"Spin"},sge={top:"Top",bottom:"Bottom",left:"Left",right:"Right"},ige={top:()=>Lo(Nxe,{}),bottom:()=>Lo(Wxe,{}),left:()=>Lo(Hxe,{}),right:()=>Lo(Mxe,{})},Oz="Entrance",WT=_z.filter(e=>e!=="none"),Az=e=>({any:[{field:Pt.kind,in:e},{all:[{field:Pt.kind,set:!1},{field:Pc,in:e}]}]}),Pz=(e,o)=>Mr(xt.slice(0,xt.indexOf(e)+1).reverse().map(t=>ke(Pt.kind,t)),t=>({field:t,set:!0}),t=>t===Pt.kind?Az(o):{field:t,in:o}),lge={any:[Az(WT),...xt.slice(1).map(e=>({field:ke(Pt.kind,e),in:WT}))]},cge=xt.flatMap(e=>[[[ke(Pt.from,e)],Pz(e,oge)],[[ke(Pt.duration,e),ke(Pt.delay,e)],Pz(e,WT)]]),dge={none:()=>Lo(qxe,{}),fade:()=>Lo(Uxe,{}),rise:()=>Lo(Kxe,{}),scale:()=>Lo(Vxe,{}),glide:()=>Lo(Gxe,{}),bounce:()=>Lo($xe,{}),flip:()=>Lo(zxe,{}),reveal:()=>Lo(jxe,{}),spin:()=>Lo(Yxe,{})},Rz="data-entrance-tile";function fge({kind:e}){let{attrs:o}=tge(age(e,Ez));return Lo("span",{className:"sf-entrance-stage",[Rz]:e,children:Lo("i",{...o,children:dge[e]()})})}var pge=(e,o)=>{let t=e.querySelector(`[${Rz}="${o}"] > i`);t&&rge(t)},uge="Effect",mge=()=>am(Pt.kind,{label:Oz,tileWord:uge,values:_z,fallback:"none",word:e=>nge[e],picture:e=>Lo(fge,{kind:e}),read:(e,o)=>Ec(e,o).kind,preview:pge}),HT=(e,o)=>rm(Pt[e],o,(t,r)=>Ec(t,r)[e]),hge=ege.map(e=>({label:sge[e],value:e,picture:ige[e]()}));function Or(){let e={[eg]:Qxe(Oz,{dot:lge}),...mge(),[Pc]:Zxe({type:"custom",render:()=>Lo(Xxe,{})},"always"),_cEntrance:Jxe(),...HT("from",qi("From",Lo(Dxe,{}),hge,Ez)),...HT("duration",Xl("entrance")),...HT("delay",Zl("entrance"))};return Tt(e,cge)}import{jsx as nr}from"react/jsx-runtime";import{EntranceRevealIcon as xge,NoSymbolIcon as gge,PercentIcon as Lz,ScrollFadeInIcon as Ige,ScrollFadeOutIcon as yge,ScrollMoveDownIcon as bge,ScrollMoveUpIcon as Sge,ScrollParallaxIcon as wge,ScrollZoomInIcon as Cge,ScrollZoomOutIcon as vge,ZoomInIcon as kge}from"efficient-easel/icons";import{customize as Tge,group as Pge}from"efficient-easel/screen/lib/document/box-fields";import{SCROLL_EFFECTS as Bz,SCROLL_EFFECTS_WITH_ZOOM as Ege,SCROLL_END as _ge,SCROLL_START as Oge,SCROLL_ZOOM as Age}from"efficient-shell/format";var Nz="Scroll",Rge={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"},Lge={none:()=>nr(gge,{}),"zoom-in":()=>nr(Cge,{}),"zoom-out":()=>nr(vge,{}),"fade-in":()=>nr(Ige,{}),"fade-out":()=>nr(yge,{}),"move-up":()=>nr(Sge,{}),"move-down":()=>nr(bge,{}),reveal:()=>nr(xge,{}),parallax:()=>nr(wge,{})},Fge="Effect",Dz=Bz.filter(e=>e!=="none"),Fz=(e,o)=>Mr(xt.slice(0,xt.indexOf(e)+1).reverse().map(t=>ke(Uo.effect,t)),t=>({field:t,set:!0}),t=>({field:t,in:o})),Bge={any:xt.map(e=>({field:ke(Uo.effect,e),in:Dz}))},Nge=xt.flatMap(e=>[[[ke(Uo.zoom,e)],Fz(e,Ege)],[[ke(Uo.start,e),ke(Uo.end,e)],Fz(e,Dz)]]),Dge=()=>am(Uo.effect,{label:Nz,tileWord:Fge,values:Bz,fallback:"none",word:e=>Rge[e],picture:e=>Lge[e](),read:(e,o)=>Ta(e,o).effect}),$T=(e,o,t,r,a)=>rm(e,Wo(t,r,a.min,a.max,a.step,a.default,"%"),(n,s)=>Ta(n,s)[o]);function Gs(){let e={[bl]:Pge(Nz,{dot:Bge}),...Dge(),[Yh]:Tge(),...$T(Uo.zoom,"zoom","Zoom",nr(kge,{}),Age),...$T(Uo.start,"start","Start",nr(Lz,{}),Oge),...$T(Uo.end,"end","End",nr(Lz,{}),_ge)};return Tt(e,Nge)}import{jsx as dt}from"react/jsx-runtime";import{AccentIcon as Mge,ContrastIcon as Hge,EyeIcon as Wge,ExpandIcon as $ge,FinishIcon as Uge,ImagesIcon as zge,NoSymbolIcon as Hz,HoverLiftIcon as Gge,HoverNextImageIcon as jge,HoverRotateIcon as Kge,HoverZoomIcon as Wz,OpacityIcon as Vge}from"efficient-easel/icons";import{customize as Yge,describedAs as $z,group as qge}from"efficient-easel/screen/lib/document/box-fields";import{effectTiles as Uz}from"efficient-easel/screen/lib/document/effect-tiles";import{deviceField as jo}from"efficient-easel/screen/lib/document/device-fields";import{NoControlMark as Xge,noControlField as Zge}from"efficient-easel/screen/lib/document/panel-no-control-mark";var Gg=e=>jo("desktop",qge("Hover",{dot:e})),zz=()=>jo("desktop",Yge()),Jge="What this does when a shopper points at it, or taps it on a phone.",Qge="What this picture does when a shopper points at it. Black and white shows it in grey until then. A phone shows its colour.",eIe="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.",oIe="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.",tIe="When this shows. On card hover shows it while a shopper points at the card. A phone always shows it.",rIe="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.",aIe="Which of the product's pictures the card shows.",nIe="Same finish shows the photos of the finish the card shows, else the first group.",sIe="Whole card hides the words under the photo. Picture keeps the words and swatches in view.",iIe={none:()=>dt(Hz,{}),nextImage:()=>dt(jge,{}),rotate:()=>dt(Kge,{}),zoom:()=>dt(Wz,{}),lift:()=>dt(Gge,{}),mono:()=>dt(Hge,{})};function UT(e,o){let t=Uz({label:c("Hover effect"),options:e.map(r=>({value:r,label:c(di[r]),picture:iIe[r]()})),fallback:o});return $z(t,{type:"select",label:"Hover effect",options:e.map(r=>({value:r,label:di[r]}))})}function Gz(){return{[cr]:Gg({field:Mt,in:ey.filter(e=>e!=="none")}),[Mt]:jo("desktop",{...UT(ey,"none"),description:Jge})}}function jz(e){let o=IE(e),t=Ep(),r=wF(cE);return{[cr]:Gg({any:[o,t]}),[uo.kind]:jo("desktop",{...Jl(UT(sE,e),(a,n)=>xE(n??{},e)),description:rIe}),...zT(t),[iE]:Zge({type:"custom",render:()=>dt(Xge,{})},"always"),_cHover:zz(),[uo.angle]:jo("desktop",io(Jl(r,a=>gE(a)),o)),[uo.duration]:jo("desktop",io(Xl("hover"),o)),[uo.delay]:jo("desktop",io(Zl("hover"),o))}}function zT(e){let o=At("Type",dt(zge,{}),dE.map(a=>({value:a,label:fE[a]})),Pp.kind),t=qi("Group",dt(Uge,{}),pE.map(a=>({value:a,label:uE[a]})),Pp.group),r=qi("Covers",dt($ge,{}),mE.map(a=>({value:a,label:hE[a]})),Pp.cover);return{[uo.mediaKind]:jo("desktop",io({...o,description:aIe},e)),[uo.mediaGroup]:jo("desktop",io({...t,description:nIe},e)),[uo.cover]:jo("desktop",io({...r,description:sIe},e))}}function GT(e,o="",t=ny.includes(o)){let r=sy(e),a=kE(e);return{[cr]:Gg(r),[uo.kind]:jT(yE,e,Qge),...ny.includes(o)?zT(Ep()):{},_cHover:zz(),...t?Kz():{},[uo.duration]:jo("desktop",io(Xl("hover"),a)),[uo.delay]:jo("desktop",io(Zl("hover"),a))}}function Kz(e=!1){let o=a=>e?a:io(a,vE()),t=Wo("Zoom",dt(Wz,{}),fi.min,fi.max,fi.step,fi.min,fi.unit),r=Wo("Darken on hover",dt(Vge,{}),Va.min,Va.max,Va.step,Va.fallback,Va.unit);return{[ty.zoom]:jo("desktop",o(t)),[ty.darken]:jo("desktop",o(r))}}function jT(e,o,t){let r=jo("desktop",{...Jl(UT(e,o),a=>wE({[Mt]:a},o,e)),description:t});return Object.assign(r,{[Vz]:o})}var Vz="sfPictureResting",Mz=new WeakMap;function wno(e,o,t){let r=e[uo.kind],a=r?.[Vz];if(!r||!a)return e;let n=o.props?.[Mt]==="nextImage",s=n?null:Gp(t.appState,o.props?.id);if(!n&&!Tp.includes(String(s?.type??"")))return e;let i=Mz.get(e);return i||(i={...e,[uo.kind]:jT(oy,a,eIe)},Mz.set(e,i)),i}var lIe="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.",cIe={none:()=>dt(Hz,{}),[ZI]:()=>dt(Mge,{})},Cno=jo("desktop",{...$z(Uz({label:c("Hover effect"),options:JI.map(e=>({value:e,label:c(QI[e]),picture:cIe[e]()})),fallback:"none"}),{type:"select",label:"Hover effect",options:JI.map(e=>({value:e,label:QI[e]}))}),description:lIe}),dIe=jo("desktop",{...qi("Show",dt(Wge,{}),[{value:ay,label:"Always"},{value:ry,label:"On card hover"}],ay),description:tIe});function Yz(){let e={any:[sy("none"),{field:Mt,is:ZI},{field:On,is:ry}]},{[cr]:o,[uo.kind]:t,...r}=GT("none","",!0);return{[cr]:Gg(e),[uo.kind]:t,[On]:dIe,...zT(Ep()),...r,...Kz(!0)}}var vno=jT(oy,"none",oIe);import{jsx as $f}from"react/jsx-runtime";import{isNodeList as mIe}from"efficient-easel/data";import{useEasel as hIe}from"efficient-easel/easel";import{hiddenInView as xIe,hiddenKeyOf as VT,hidePatch as gIe,slotChildName as IIe,slotChildRowName as yIe}from"efficient-easel/draw";var jg=null;function KT(e){jg=e}function qz(){return!!(jg&&jg.state().lockHolder)}function js(){return jg!==null}var fIe=new Set(["BookingBox","SubmitBox"]);function pIe(e){return typeof e=="string"&&fIe.has(e)}var uIe=I1(pIe,qz);function Kg(e,o){return uIe(e)||dS(o)}var Vg=(e,o,t)=>{if(o!=="block"||e.props?.fromProduct!==!0)return t;let r=e.props.product;return!r?.code||typeof r.name!="string"?t:r.name.trim()||t};import{deviceField as bIe}from"efficient-easel/screen/lib/document/device-fields";import{NoControlMark as SIe}from"efficient-easel/screen/lib/document/panel-no-control-mark";var Xz="notCardOfTemplate",Zz={not:{context:Xz,is:!0}},YT={any:[Ap,Zz]},jno={[Xz]:(e,o)=>{let t=Py(o.appState,e.props?.id);return t===void 0?void 0:t===null}};function Yg(e){let o=e.props?.content;return mIe(o)?o:[]}var Xg=(e,o)=>xIe(e.props??{},o),wIe=(e,o)=>e.props?.[VT(o)]!==void 0;function Jz(e,o=()=>!1,t="desktop"){return Yg(e).flatMap(r=>typeof r?.props?.id!="string"?[]:Yg(r).length&&!Xg(r,t)?Jz(r,o,t):o(r)?[]:[r])}function CIe(e,o,t,r="desktop"){let a=Jz(e,t,r).map(i=>({child:i,name:o(i)})),n=new Set(a.map(i=>i.name)),s=new Set;return a.map(({child:i,name:l})=>{let d=l;if(s.has(l)){let f=2;for(;n.has(`${l} ${f}`);)f+=1;d=`${l} ${f}`,n.add(d)}return s.add(l),{id:i.props.id,label:d,shown:!Xg(i,r)}})}function qg(e,o,t){let r=a=>t==="desktop"?Xg(a,t):wIe(a,t);return Yg(e).flatMap(a=>r(a)?o(a)?[]:[a,...qg(a,o,t)]:qg(a,o,t))}function vIe(e,o){let t={...e};for(let[r,a]of Object.entries(o))a===void 0||r===VT("desktop")&&a===!1?delete t[r]:t[r]=a;return Object.keys(t).length===Object.keys(e).length&&Object.keys(t).every(r=>t[r]===e[r])?e:t}function qT(e,o,t){let r=Yg(e),a=!1,n=r.map(s=>{if(a)return s;let i=s;if(s?.props?.id===o){let l=vIe(s.props,t(s.props));l!==s.props&&(i={...s,props:l})}else i=qT(s,o,t);return a=i!==s,i});return a?{...e,props:{...e.props,content:n}}:e}function Qz(e,o,t,r="desktop"){return qT(e,o,a=>r==="desktop"&&Xg({props:a},r)===!t?{}:gIe(a,r,!t))}function kIe(e,o,t){return t==="desktop"?Qz(e,o,!0,t):qT(e,o,()=>({[VT(t)]:void 0}))}function TIe(e,o,t,r,a,n){return IIe(e).trim()?t(e):a_({ownerType:o,owner:r,fields:a,slot:n},mt(e.props))?.label??t(e)}var PIe="This page is read-only.";function EIe({card:e,ownerType:o,owner:t,fields:r,slot:a,labelOf:n,write:s,readOnly:i,view:l="desktop"}){let d=p=>yIe(p,n,na,void 0,Vg),f=p=>Kg(p.type,p),u=CIe(e,p=>TIe(p,o,d,t,r,a),f,l);return u.length?$f(nl,{parts:u,changed:qg(e,f,l).length>0,shown:p=>u.find(m=>m.id===p)?.shown??!0,disabledReason:i?PIe:void 0,onPress:(p,m)=>s(h=>Qz(h,p,m,l)),onReset:()=>s(p=>qg(p,f,l).reduce((m,h)=>kIe(m,String(h.props.id),l),p))}):$f(SIe,{})}function _Ie(){try{let e=hIe(a=>a),o=e.config.components??{},t=e.selectedItem;if(!t)return null;let r=Py(e.appState,t.props?.id);return{labelOf:a=>o[a]?.label??a,card:t,ownerType:typeof r?.type=="string"?r.type:void 0,owner:r,fields:f_(e.appState,r),slot:c_(e.appState,t.props?.id)??void 0}}catch{return null}}function OIe({readOnly:e,view:o}){let t=_Ie(),r=ur();return t?$f(EIe,{...t,view:o,readOnly:e,write:a=>{e||r(n=>{let s={...t.card,props:n},i=a(s);return i===s?null:{content:i.props.content}})}}):$f(nl,{parts:[],changed:!1,shown:()=>!0,onPress:()=>{},onReset:()=>{}})}function Kno(e){return io(bIe(e,{type:"custom",render:({readOnly:o})=>$f(OIe,{readOnly:o,view:e})}),Zz)}import{customize as WIe}from"efficient-easel/screen/lib/document/box-fields";import{jsx as XT}from"react/jsx-runtime";import{DirectionIcon as AIe,LoopMarqueeIcon as RIe,NoSymbolIcon as LIe}from"efficient-easel/icons";import{customize as FIe,describedAs as BIe,group as NIe}from"efficient-easel/screen/lib/document/box-fields";import{effectTiles as DIe}from"efficient-easel/screen/lib/document/effect-tiles";function ZT(){return yB("Direction",dk,wf,"A marquee cannot run diagonally, so the corners are not answers.",XT(AIe,{}),IB)}var JT=e=>NIe("Loop",e?{dot:e}:void 0),MIe={none:()=>XT(LIe,{}),scroll:()=>XT(RIe,{})};function HIe(){let e=DIe({label:c("Loop"),options:Jx.map(({value:o,label:t})=>({value:o,label:c(t),picture:MIe[o]()})),fallback:ck});return BIe(e,{type:"select",label:"Loop",options:Jx.map(({value:o,label:t})=>({value:o,label:t}))})}function eG(){return{[Wl]:JT(Sf),loop:HIe(),_cLoop:FIe(),scrollDirection:io(ZT(),Sf),loopDuration:io(Ug({readsSpeed:!1}),Sf),loopDelay:io(zg(),Sf)}}var oG={field:On,set:!0};function $Ie(){let e=Yz(),o=[cr,Mt],t=ut(e,Object.keys(e).filter(n=>!o.includes(n)&&n!==On),Ap),r=ut(t,[On],oG),a=ut(r,[Mt],YT);return ut(a,[cr],{any:[YT,oG]})}function Zg(e,o=""){switch(e){case"section":case"block":return{...Or(),...Gs()};case"box":return{...Or(),...Gs(),...eG(),...$Ie()};case"picture":return{...Or(),...Gs(),...GT(SE(o),o)};case"textPart":return{...Or(),...Gs(),...Gz()};case"cards":return{...Or(),...Gs(),...jz(lE(o))};case"marquee":return{...Or(),...Gs(),[Wl]:JT(),_cLoop:WIe(),scrollDirection:ZT(),loopDuration:Ug({readsSpeed:!0}),loopDelay:zg()}}}import{blockSizeFieldSet as Cye}from"efficient-easel/screen/lib/document/block-size-fields";import{VIEW_KEY_ACCESS as vye}from"efficient-easel/screen/lib/document/box-fields";import{group as UIe}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as zIe,deviceMetaOf as aG}from"efficient-easel/screen/lib/document/device-fields";import{DESIGN_GROUPS as eP,SETTINGS_BUCKETS as GIe}from"efficient-easel/panel";import{BUCKET_KEY as Ko,DESIGN_GROUP_KEY as Ql}from"efficient-easel/screen/lib/document/field-buckets";var Uf=GIe;var jIe="Editor only \u2014 not shown live",oP={"Archive link":"Content",Article:"Content",Blocks:"Content","Blog posts":"Content","Browser mock":"Content",Button:"Content","Call to action":"Content","Car prompt":"Content","Card link":"Content","Card list":"Content",Cards:"Content","Claims bars":"Content","Contact info":"Content",Content:"Content",Display:"Content","Content source":"Content",Contents:"Content",Filters:"Content","Show on a card":"Content",Footnote:"Content",Form:"Content",Founders:"Content","Gallery A":"Content","Gallery B":"Content","Gallery link":"Content",Header:"Content","Header link":"Content","Image caption":"Content","In this issue":"Content",Items:"Content","Kanban columns":"Content",Lead:"Content","Left panel":"Content",Link:"Content",Links:"Content",List:"Content","Message form":"Content",Metadata:"Content",Milestones:"Content","Mockup card":"Content","Newsletter panel":"Content",Offices:"Content",Options:"Content","Others gallery":"Content","Overlay button":"Content",Product:"Content","Product page":"Content",Products:"Content","Pull quote":"Content",Questions:"Content","Recent issues":"Content","Recent posts":"Content",Reviews:"Content","Right panel \xB7 actions":"Content","Right panel \xB7 choices":"Content","Right panel \xB7 form":"Content","Routing groups":"Content",Rows:"Content",Section:"Content","Section header":"Content",Sections:"Content","Signup form":"Content",Source:"Content","Source product":"Content","Stat & note":"Content",Stats:"Content","Submit button":"Content","Success state":"Content",Wheel:"Content",Terminal:"Content",Text:"Content","Text column":"Content","Timeline entries":"Content","Top row":"Content",Total:"Content","Trailing note":"Content","\u201COther\u201D reason":"Content","Background images":"Design",Gallery:"Content",Image:"Content","Image column":"Content",Images:"Content",Logo:"Content",Map:"Content",Media:"Content","Background image":"Design",Color:"Design","Image tint":"Design",Style:"Design",Shape:"Design",Shadow:"Design",Texture:"Design",Overlay:"Design","Text style":"Design",Entrance:"Animation",Hover:"Animation",Loop:"Animation",Scroll:"Animation",Anchor:"Anchor",Arrangement:"Layout","Auto-slide":"Layout",Bar:"Layout","Cell size":"Size",Behavior:"Layout",Schedule:"Layout",Controls:"Layout",Diagram:"Layout",[jIe]:"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"},nG={"AlloyWheelsListing._gCards":"Design","Flex._gLink":"Link","LongRead._gLink":"Link"},sG={"Text._gSpacing":"Size","Heading._gSpacing":"Size"};function tG(e,o,t){let r=`${e}.${o}`;return $(sG,r)??$(nG,r)??$(oP,t)}function KIe(e){return e==="Animation"?[Ko.Animation]:[Ko.Design,Ql[e]]}function Jg(...e){let o=[];for(let t of e)for(let r of Object.values(t)){let a=aG(r),n=Sr(a?a.inner:r),s=n?$(oP,n.label):void 0;if(s)for(let i of KIe(s))o.includes(i)||o.push(i)}return o}var vso=[...Jg(Xi({tablet:!0,siteSide:!0}),tl("full"),rl(),al(),xd()),...Object.keys(Xi({tablet:!0,siteSide:!0})),...Object.keys(tl("full")),...Object.keys(rl()),...Object.keys(al()),...Object.keys(xd())],kso=[...Jg(Qi()),...Object.keys(Qi())],Tso=[...Jg(ol()),...Object.keys(ol())],Pso=[...Jg(Or()),...Object.keys(Or())],Eso=Object.keys(SB()),_so=Object.keys(wB()),VIe={"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)"},iG={Content:["Content"],Size:["Size"],Design:["Design","Style"],Layout:["Layout"],Position:["Position"],Link:["Link"],Anchor:["Anchor"],Animation:["Animation"]},QT={_gAnchor:"repeated the Anchor group heading above it (two tabs, 11.0.0)"};{let e={...Xi({tablet:!0,siteSide:!0}),...tl("full"),...rl(),...al(),...Qi(),...ol(),...Or()};for(let o of Object.keys(QT)){let t=Sr(e[o]),r=t?$(oP,t.label):void 0;if(!t||t.level!==2||!r||!iG[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 YIe=new Set(["_sContent","_sStyle","_sLayout","_sMedia"]),qIe=new Map([[Ko.Design,"Content"],[Ko.Animation,"Animation"],...eP.map(e=>[Ql[e],e])]);function XIe(e){let o=`${e}.`;return Object.keys(VIe).filter(t=>t.startsWith(o)).map(t=>t.slice(o.length))}function ZIe(e,o){let t=aG(e),r=UIe(o);return t?zIe(t.tier,r):r}function JIe(e,o){let t=Sr(o);return t?e==="Content"||e==="Animation"?rB(o,t.label):aB(o):o}function rG(e){return e==="Design"?eP:["Animation"]}function Qg(e,o){let t=[],r=new Set(XIe(o)),a=new Set,n=!1,s=null;for(let[p,m]of Object.entries(e)){let h=Sr(m);if(YIe.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=qIe.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===Ko.Design||p===Ko.Animation)&&(n=!0),t.push(s={place:I,entries:[],adopted:!0});continue}if(!h){s||t.push(s={place:"Content",entries:[]}),s.entries.push([p,m]);continue}if(r.has(p)||He(QT,p)){let S=tG(o,p,h.label);if(h.level!==2||!S||!iG[S].includes(h.label))throw new Error(`${o}.${p}: ${r.has(p)?"RETIRED":"INJECTED_RETIRED"} (lib/document/field-groups.ts) lists this sub-heading as one whose name repeats the place it sits in, but it is a level-${h.level} "${h.label}" header in the ${S??"(unclassified)"} place. Only a level-2 header whose label is one of its place's words (PLACE_WORDS) may be retired \u2014 anything else is a heading a merchant reads for its own sake. Fix the row or drop it.`);r.has(p)&&a.add(p),t.push(s={place:S,entries:[],uniform:He(QT,p)});continue}let w=tG(o,p,h.label);if(!w)throw new Error(`${o}.${p}: the inspector group "${h.label}" is not classified in LABEL_GROUP (lib/document/field-groups.ts), so there is no way to say which of ${[...eP,"Animation"].join(" / ")} its controls belong under. Classify it \u2014 an unclassified group silently lands wherever it was declared, which is the whole bug.`);t.push(s={place:w,entries:[[p,h.level===2?m:ZIe(m,h.label)]]})}let i=new Set(Object.entries(e).filter(([,p])=>Sr(p)).map(([p])=>p));for(let[p,m]of[["BLOCK_KEY_GROUP",sG],["KEY_GROUP",nG]]){let h=Object.keys(m).filter(I=>I.startsWith(`${o}.`)).filter(I=>!i.has(I.slice(o.length+1))&&!r.has(I.slice(o.length+1)));if(h.length)throw new Error(`${o}: ${p} (lib/document/field-groups.ts) lists ${JSON.stringify(h)}, but no fold header by that key is in this section's panel. Either the heading was renamed or removed and the row is stale, or the row names the wrong key \u2014 an override that quietly matches nothing is worse than no override.`)}let l=n?[]:[...r].filter(p=>!a.has(p));if(l.length)throw new Error(`${o}: RETIRED (lib/document/field-groups.ts) lists ${JSON.stringify(l)}, but this section has no such fold header${l.length>1?"s":""}. Either the heading was renamed or removed and the row is stale, or the row names the wrong section \u2014 a list that quietly matches nothing is worse than no list.`);let d=new Set(t.filter(p=>p.entries.length>0).map(p=>p.place)),f=Uf.filter(p=>rG(p).some(m=>d.has(m))),u={};for(let p of f){u[Ko[p]]=Ym(p,p===f[0]?f:null);for(let m of rG(p)){if(!d.has(m))continue;let h=t.filter(S=>S.place===m),I=h.findIndex(S=>S.adopted);I>0&&h.unshift(...h.splice(I,1));let w=h.filter(S=>S.uniform);if(w.length>0){let S=h.filter(b=>!b.uniform),v=h[0]?.adopted?1:0;h.splice(0,h.length,...S.slice(0,v),...w,...S.slice(v))}p==="Design"&&(u[Ql[m]]=hw(m));for(let S of h)for(let[v,b]of S.entries)u[v]=JIe(m,b)}}return u}function lG(e){return Ko.Design in e?e:{[Ko.Design]:Ym("Design",null),[Ql.Content]:hw("Content"),...e}}function cG(e){return Uf.some(o=>Ko[o]in e)}function eI(e){let o=Uf.filter(r=>Ko[r]in e);if(o.length===0)return e;let t={...e};for(let r of o)t[Ko[r]]=Ym(r,r===o[0]?o:null);return t}import{jsx as oI}from"react/jsx-runtime";import{WidthIcon as QIe}from"efficient-easel/icons";import{SettingsField as eye,SettingsSwitch as oye}from"efficient-easel/panel";import{group as tye,iconOf as rye,sharedStyleKinds as aye}from"efficient-easel/screen/lib/document/box-fields";var nye="Gutter";function sye({value:e,onChange:o,labelId:t}){let r=Ng(Oc()),a=Lf({[Us]:e})??r,n=s=>o(s?r?void 0:IT:gT);return oI(eye,{label:c(nye),labelId:t,icon:rye(oI(QIe,{})),action:oI(oye,{checked:a,onChange:n,ariaLabelledBy:t})})}function dG(){return aye({_gWidth:tye(en),[Us]:{type:"custom",render:({value:e,onChange:o,id:t,name:r})=>oI(sye,{value:e,onChange:o,labelId:`${t??r??Us}-label`})}})}import{jsx as rP}from"react/jsx-runtime";import{group as iye,sharedStyleKinds as pG}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as lye}from"efficient-easel/screen/lib/document/device-fields";var cye="Content cannot be wider than the background.",tP=e=>c(e==="content"?"Content width":"Full width");function uG(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 dye={read:as},fye={read:as,drawsFullOnItsOwn:!0},pye={read:mF,clearOnContent:{fullWidth:void 0}};function uye({source:e}){let o=e.read(So()),t=ur(),r=uG(e);return rP(hh,{value:o.background??r.background,changed:o.background!==null,detail:tP(r.background),onChange:a=>t(xF(a)),onReset:()=>t(VS("background"))})}function mye({source:e}){let o=e.read(So()),t=ur(),r=l=>t({...l,...e.clearOnContent}),a=uG(e),n=(o.background??a.background)==="content",s=el({row:KS,label:Jw,grid:{min:je.min,max:n?a.px:je.max,step:je.step},valueKey:Fe.contentMax,view:"desktop",numbersIn:()=>o.contentMax!==null}),i=o.content??a.content;return rP(xh,{mode:n&&i==="full"?"content":i,px:o.contentMax??a.px,max:n?a.px:je.max,changed:o.content!==null,detail:a.content==="full"?tP("full"):`${tP("content")} ${a.px}px`,fullClosed:n,hint:n?cye:void 0,onMode:l=>r(gF(l)),onPx:l=>r({...IF(l),...s?.unitPatch(!1)}),...s?{length:s}:{},onReset:()=>r(VS("content"))})}var fG=(e,o)=>lye("desktop",{type:"custom",render:()=>rP(e,{source:o})}),mG=e=>({[Fe.background]:fG(uye,e),[Fe.content]:fG(mye,e),[Fe.contentMax]:hd(),...ns(KS,Fe.content)});function hG(e){let o=e?.drawsFullOnItsOwn?fye:dye;return pG({_gWidth:iye(en),...mG(o)})}function Zso(){return pG({...mG(pye),fullWidth:hd()})}import{deviceMetaOf as gG}from"efficient-easel/screen/lib/document/device-fields";import{noControlMetaOf as hye}from"efficient-easel/screen/lib/document/panel-no-control-mark";function xye(e,o){let t=gG(o),r=t?t.inner:o;if(Sr(r)||r?.customize===!0)return!1;if(r?.type==="slot")return!0;let a=hye(r);return a==="always"?!1:a==="authored-copy"?Vn(e):!0}function xG(e){let o=gG(e),t=o?o.inner:e,r=Sr(t);return r?tB(t)?0:r.level:null}function gye(e,o,t){return t?o===0&&e===Ko.Design||o===1&&e===Ql.Content:!1}var Iye=new WeakMap,yye=new WeakMap;function IG(e,o="section"){let t=o==="page"?yye:Iye,r=t.get(e);if(r)return r;let a=Object.entries(e).map(([u,p])=>({key:u,field:p,level:xG(p),draws:xye(u,p)||o==="page"&&xG(p)===null&&Aw(u,p)})),n=o==="section"&&a.some(u=>Aw(u.key,u.field)),s=new Set;for(let u=0;u<a.length;u++){let p=a[u].level;if(p===null)continue;let m=0;for(let h=u+1;h<a.length;h++){let I=a[h].level;if(I!==null&&I<=p)break;a[h].draws&&(m+=1)}m===0&&!gye(a[u].key,p,n)&&s.add(a[u].key)}let i=n&&cG(e),l=i&&!(Ko.Design in e);if(!s.size&&!l)return t.set(e,e),e;let d={};for(let u of a)s.has(u.key)||(d[u.key]=u.field);let f=eI(i?lG(d):d);return t.set(e,f),f}import{isShown as bye,showWhenFactReaders as Sye}from"efficient-shell/format";var yG=new WeakMap,wye=new Set(Object.values(Ko));function bG(e,o,t,r={}){if(!e)return e;let a=o?.props??{},n=a.id,s=Sye(r,o,t),i=V1(t,{...s,parentOffersPositions:()=>{let h=Aa(t.appState,n);return h===void 0?void 0:pA(h)},heroGroupDepth:()=>eu(t.appState?.data,typeof n=="string"?n:"")}),l=[];for(let[h,I]of Object.entries(e)){let w=bc(I);!w||Lu(w,"device")||bye(w,a,i)||l.push(h)}if(l.length===0)return e;let d=yG.get(e);d||yG.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=>wye.has(h))&&(m=eI(m)),d.set(f,m),m}var SG={spacingFields:uB,sidesPaddingFields:Xi,sectionShapeFields:ol,cardShapeFields:cB,cellWidthFields:pB,widthField:tl,boxGutterFields:dG,sectionOwnWidthFields:hG,heightFields:rl,anchorFields:al,stickFields:xd,sectionThemeFields:Qi,animationTabFields:Zg,blockSizeFields:({tablet:e,...o}={})=>Cye({...o,shorten:!0,say:Mm,lengthUnits:Ia,...e?{phone:vye}:{}}),assignSectionGroups:Qg,dropEmptyHeadings:IG,rowsShownForNode:bG,SECTION_THEME_FOLLOW_LABEL:nS,BLOCK_THEME_FOLLOW_LABEL:_R,PartAnchors:a6};function tI(e,o,t){if(!e)return e;let r=!1,a={};for(let[n,s]of Object.entries(e)){let i=s;if(s&&typeof s=="object")if(s.type==="slot")if(s.allow){let l=s.allow.filter(o);l.length!==s.allow.length&&(i={...s,allow:l})}else{let l=new Set(s.disallow??[]),d=t.filter(f=>!l.has(f));d.length>0&&(i={...s,disallow:[...s.disallow??[],...d]})}else{let l=tI(s.arrayFields,o,t),d=tI(s.objectFields,o,t);(l!==s.arrayFields||d!==s.objectFields)&&(i={...s,...l?{arrayFields:l}:null,...d?{objectFields:d}:null})}i!==s&&(r=!0),a[n]=i}return r?a:e}function 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=kz(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 Tye(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];Pye(e,o,a);for(let n of a){let s=n.components.filter(Wp);if(s.length>0)throw new Error(`efficient-web-builder: the category "${n.key}" lists ${s.map(i=>`"${i}"`).join(", ")}, a block a card template declares. A card's block is added in its card only; take it out of the category.`)}for(let n of r){if(!$p(n))continue;let s=Hp(n).filter(i=>!r.has(i.type)).map(i=>`"${i.type}"`);if(s.length>0)throw new Error(`efficient-web-builder: the card template of "${n}" declares ${s.join(", ")}, which the editor does not register. Register it in the registry or in blocks.host.`)}}function aP(e,o,t,r=""){let a=[];for(let[n,s]of Object.entries(t??{})){if(!s||typeof s!="object")continue;let i=`${r}${n}`;s.type==="slot"&&s.allow?.includes(e)&&a.push(`${o}.${i}`),a.push(...aP(e,o,s.arrayFields,`${i}.`),...aP(e,o,s.objectFields,`${i}.`))}return a}function Pye(e,o,t){let r=n=>{throw new Error(`efficient-web-builder: ${n} names "${gi}". Only a host's seed puts a host part in a card template; a merchant never adds one. Take it out.`)};for(let n of t)n.components.includes(gi)&&r(`the category "${n.key}"`);let a=[...Object.entries(e.components??{}),...o.map(([n,s])=>[n,s])];for(let[n,s]of a){let i=aP(gi,n,s?.fields);i.length>0&&r(`the slot ${i.map(l=>`"${l}"`).join(", ")}, whose allow list`)}}function wG(e,o){let t=Object.entries(o?.host??{}),r=o?.categories??[],a=dT(o);if(Tye(e,t,r),!a&&t.length===0&&r.length===0)return e;let n=e.components,s=t.map(([u])=>u).filter(u=>u in n);if(s.length>0)throw new Error(`efficient-web-builder: blocks.host registers ${s.map(u=>`"${u}"`).join(", ")}, which ${s.length===1?"is already a block":"are already blocks"} of the editor. Give a host's block a type of its own.`);let i=u=>a?a.offers(u):!0,l=Object.keys(n).filter(u=>!i(u)),d={};for(let[u,p]of Object.entries(n)){let m=a?tI(p?.fields,i,l):p?.fields;d[u]=m===p?.fields?p:{...p,fields:m}}if(t.length>0){let u=new Set(t.map(([h])=>h)),p=e.categories?.structure?.components??[],m={...DT(Object.keys(n),p,u),isHostBlock:h=>u.has(h),inspector:SG};for(let[h,I]of t){let w=kye(h,I,m),S=tI(w.fields,i,l);d[h]=S===w.fields?w:{...w,fields:S}}}let f=[];for(let[u,p]of Object.entries(e.categories??{})){let m=p?.components??[],h=m.filter(i);h.length===m.length?f.push([u,p]):h.length>0&&f.push([u,{...p,components:h}])}for(let u of r){let p=u.components.filter(w=>w in d&&i(w));if(p.length===0)continue;let m=f.find(([w])=>w===u.key);if(m){let[,w]=m,S=new Set(w.components??[]);m[1]={...w,components:[...w.components??[],...p.filter(v=>!S.has(v))]};continue}let h=[u.key,{title:u.title,components:p}],I=u.before?f.findIndex(([w])=>w===u.before):-1;I===-1?f.push(h):f.splice(I,0,h)}return{...e,components:d,categories:Object.fromEntries(f)}}function CG(){let e=Oye();return Eye(()=>wG(_ye(e),Mi(e)),[e])}import{jsx as iP,Fragment as Xye,jsxs as Zye}from"react/jsx-runtime";import{useContext as Jye,useEffect as Qye,useMemo as lI,useRef as zG}from"react";import{EaselCanvas as ebe,repeatCopyAt as obe,useEasel as tbe}from"efficient-easel/easel";import{jsx as nP}from"react/jsx-runtime";import{useEffect as Fye,useState as Bye}from"react";import{Banner as Nye}from"efficient-shell/ui";import{useSyncExternalStore as Aye}from"react";import{useScreenDocument as Rye}from"efficient-easel/screen/components/ScreenDocumentContext";var Lye=()=>()=>{},vG=()=>null;function rI(e){return Aye(e?e.subscribe:Lye,e?e.state:vG,e?e.state:vG)}function aI(){let{adapter:e}=Rye();return e?.pinnedChrome}var nI={load:"The header and footer could not load. They are hidden for now and nothing in them is saved. Reload to try again.",lock:"{name} is editing the header and footer. Nothing you change in them here is saved.",conflict:"The header and footer were changed somewhere else. Nothing you change in them here is saved. Reload to get the latest.",save:"The header and footer did not save. They are sent again with your next change."},Dye={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."},Mye=nI.load,Hye=nI.lock,Wye=nI.conflict,$ye=nI.save;function Uye(e){if(!e)return null;if(e.loadFailed)return c(Mye);if(e.lockHolder)return c(Hye,{name:e.lockHolder.name||c("Somebody else")});if(e.conflict)return c(Wye);if(e.saveFailed)return c($ye);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(Dye[o.problem],{section:t,name:r})}function zye({report:e}){let o=Uye(rI(e)),[t,r]=Bye(null);return Fye(()=>{o||r(null)},[o]),!o||t===o?null:nP("aside",{className:"sf-canvas-notice",children:nP(Nye,{tone:"warning",onDismiss:()=>r(o),children:o})})}function kG(){return nP(zye,{report:aI()})}import{jsx as iI}from"react/jsx-runtime";import{useState as $G}from"react";import{Banner as jye,Button as Kye}from"efficient-shell/ui";import{UndoIcon as Vye}from"efficient-shell/icons/efficient";import{useScreenDocument as Yye}from"efficient-easel/screen/components/ScreenDocumentContext";import{useSyncExternalStore as EG}from"react";var zf=!1,ec=null,sP=new Set;function jf(){for(let e of sP)e()}function _G(e){return sP.add(e),()=>{sP.delete(e)}}function OG(){zf||(zf=!0,jf())}function AG(){zf&&(zf=!1,jf())}function TG(){return zf}function RG(){return EG(_G,TG,TG)}function PG(){return ec}function sI(){ec&&(ec=null,jf())}function LG(){return EG(_G,PG,PG)}var Gf=class extends Error{constructor(){super("The editor's last changes could not be saved, so nothing was restored."),this.name="HeldEditsNotSaved"}};async function FG(e,o,t,{flushSave:r,reload:a}){if(!await r())throw new Gf;let n=await e.restore(o,t);return cm(n.liveState),a(),n}async function BG({access:e,version:o,page:t,...r}){let a=await FG(e,o.id,t?{page:t.id}:{},r);ec={title:Gye(o,t??null),undo:a.undo},jf()}async function NG({access:e,...o}){let t=ec?.undo;t&&(await FG(e,t,{},o),ec=null,jf())}function DG(e){return e.name?e.name:e.kind==="draft_before_restore"?c("Draft before restore"):c("Version {n}",{n:e.number})}function Gye(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 MG(e){let o=e.changes.filter(r=>r.kind==="page").length,t=[...o?[st("{n} page","{n} pages",o)]:[],...e.changes.filter(r=>r.kind!=="page").map(r=>r.name)];if(!t.length)return"";try{return new Intl.ListFormat(Wy(),{type:"conjunction"}).format(t)}catch{return t.join(", ")}}function HG(e){return e.change==="take_down"?c("{name} (taken down)",{name:e.name}):e.name}function WG(e,o=new Date){let t=new Date(e);if(Number.isNaN(t.getTime()))return"";let r=Wy(),a=new Intl.DateTimeFormat(r,{hour:"numeric",minute:"2-digit"}).format(t);if(t.toDateString()===o.toDateString())return c("Today, {time}",{time:a});let n=new Intl.DateTimeFormat(r,{day:"numeric",month:"short",...t.getFullYear()===o.getFullYear()?{}:{year:"numeric"}}).format(t);return c("{day}, {time}",{day:n,time:a})}import{useSettledAction as qye}from"efficient-easel/easel";function UG(){let e=LG(),{adapter:o,flushSave:t,reloadFromServer:r}=Yye(),a=o.siteVersions,[n,s]=$G(!1),[i,l]=$G(!1),d=async()=>{if(!(!a||n)){s(!0),l(!1);try{await NG({access:a,flushSave:t,reload:r})}catch{l(!0)}finally{s(!1)}}},f=qye({onPress:()=>{d()},busy:n});return e?iI("aside",{className:"sf-canvas-notice",children:iI(jye,{tone:i?"danger":"info",title:e.title,onDismiss:sI,action:a&&e.undo?iI(Kye,{variant:"secondary",size:"sm",leftIcon:iI(Vye,{}),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 rbe,REPEAT_ATTRIBUTE as lP,REPEAT_INDEX_ATTRIBUTE as cP}from"efficient-easel/draw";import{usePreviewParts as abe}from"efficient-easel/draw/client";import{ScreenDocumentContext as nbe}from"efficient-easel/screen/components/ScreenDocumentContext";function GG(e){let{mirrorHostStyles:o}=Ac(),t=zO(),r=dP(),a=Oc(),n=Jye(nbe),s=Eu(n?.docId??null),i=tbe(w=>w.appState.data),l=T1(s,i),d=JSON.stringify(l),f=lI(()=>l,[d]),u=lI(()=>({...e.metadata??t??{},...r,...f}),[e.metadata,t,r,f]);Qye(()=>(RT(a),()=>RT(null)),[a]);let p=zG(null),m=sbe(p),{onDocument:h}=e,I=w=>{p.current=w,h?.(w)};return Zye(Xye,{children:[iP(UG,{}),iP(kG,{}),iP(ebe,{...e,onDocument:I,typing:m,metadata:u,height:"fill",mirrorStyles:o,frameWrapper:Mh})]})}function dP(){let{sectionBackgroundWidth:e,themeFromDocument:o}=fe(),t=Oc();return lI(()=>bF(o?null:e,t),[e,t,o])}function sbe(e){let o=yu(),t=abe(),r=zG({parts:t});return r.current={parts:t},lI(()=>{let a=(n,s)=>{let i=ah(n,o),l,d=null,f=s??(i?null:$w(null,e.current,n)),u=!i&&f?obe(f):null,p=u?rbe(n):null;if(u&&f&&p?.propKey){i=sh({...u,nodeId:p.nodeId,key:p.propKey},o),l=p.propKey;let w=f.closest(`[${lP}][${cP}]`),S=`[${lP}="${nh(w?.getAttribute(lP)??"")}"][${cP}="${nh(w?.getAttribute(cP)??"")}"]`;d=()=>(f.ownerDocument??e.current)?.querySelector(S)??null}if(!i)return null;let m=f,h=()=>(m=$w(m,d?d():m?.ownerDocument??e.current,n),m),I=h();return I?{element:h,value:i.value,rules:i.rules,multiline:i.multiline,skip:i.skip,write:i.write,key:l,toolbar:{offered:i.offered,colors:i.offered.length>0?Bi(zu(I)):void 0,colorNameOf:Et}}: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=>oN(n,o),copyValue:n=>eN(n,o),onChange:n=>{if(!n.typing){Uw(null);return}let s=n.element.closest(`[${co}]`)?.getAttribute(co)??null;Uw(s),s&&r.current.parts.selectedPartId!==s&&r.current.parts.select(s)}}},[o,e])}function VG({open:e,onClose:o,takenSlugs:t,onCreated:r}){let a=fbe(),{adapter:n,siteId:s,templateId:i}=dbe(),l=Ge(a).pages,d=!i&&!!(l.starters&&l.createFromStarter),f=lbe(()=>s?{siteId:s}:{},[s]),u=CG(),p=dP(),[m,h]=pP(null),[I,w]=pP(jl),[S,v]=pP(null),b=cbe(null);ibe(()=>{if(!e)return;if(w(jl),!d){h([]);return}let C=!0;return h(null),l.starters(f).then(R=>C&&h(R),()=>{C&&(h([]),KG.error(c("Couldn\u2019t load the pages \u2014 please retry.")))}),()=>{C=!1}},[e,d,l,f]);let y=async(C,R)=>{if(!S){v(C);try{r(await R())}catch{KG.error(c("Couldn\u2019t add the page \u2014 please retry."))}finally{v(null)}}},k=()=>{if(!n.createPage)return;let C=c("New page");y("blank",()=>n.createPage({slug:jG(C,t),title:C,layout:{}}))},L=C=>{y(C.id,()=>l.createFromStarter(C.id,{title:C.title,slug:jG(C.slug,t),...f}))},O=m??[],D=g6(O),T=I6(I,O),F=fP("nav",{"aria-label":c("Pages"),className:"sf-add-page-nav",children:[Nt(uP,{label:c("All pages"),active:I===jl,onClick:()=>w(jl)}),D.map(C=>Nt(uP,{label:c(C.label),active:I===C.key,onClick:()=>w(C.key)},C.key)),sT(O).length>0?Nt("div",{className:"sf-add-page-group",children:Nt(uP,{label:c("From your template"),active:I===Eg,onClick:()=>w(Eg)})}):null]});return Nt(ube,{open:e,onClose:o,size:"full",title:c("Add page"),initialFocus:b,children:Nt(gbe,{sidebarTop:fP(xbe,{onClick:k,disabled:!n.createPage||S!==null,children:[Nt(pbe,{"aria-hidden":!0}),c("Blank page")]}),sidebar:F,children:fP("div",{className:"sf-add-page",children:[Nt("h3",{ref:b,tabIndex:-1,className:"sf-add-page-title",children:c("Pages for your site")}),Nt("p",{className:"sf-add-page-sub",children:c("Choose a page and change the text, images and more.")}),m===null?Nt("p",{className:"sf-add-page-sub",children:c("Loading\u2026")}):T.length===0?Nt(mbe,{title:c("No pages to start from"),description:c("Start with a blank page, then add sections.")}):Nt(hbe,{cols:1,smCols:2,lgCols:3,gap:8,children:T.map(C=>Nt(S6,{starter:C,config:u,metadata:p,busy:S===C.id,onAdd:L},C.id))})]})})})}import{jsx as Ibe}from"react/jsx-runtime";import{createContext as ybe,useContext as YG,useEffect as bbe,useRef as qG}from"react";var mP=ybe(null);function Ulo({open:e,children:o}){let t=qG(!!e);return Ibe(mP.Provider,{value:t,children:o})}function XG(){let e=YG(mP);return()=>e?.current?(e.current=!1,!0):!1}function ZG(e){let o=YG(mP),t=qG(e);t.current=e,bbe(()=>{o?.current&&(t.current.setView("pages"),t.current.reveal())},[o])}var rj="sf-editor-pages-collapsed-groups";function Mbe(){let e=xP(),{siteId:o,templateId:t}=aj(),r=Ge(e).pages;if(!(!r.duplicate||t))return(a,n)=>r.duplicate(a.id,{...n,...o?{siteId:o}:{}})}function nj({onNavigate:e,onClose:o,activeSurface:t,onPreviewSurface:r}){let a=xP().chrome?.pageRows,n=Bbe(),{adapter:s,capabilities:i,ready:l,currentSlug:d}=aj(),f=xl(),{rows:u,reload:p,setRows:m,getRows:h}=Fd(),[I,w]=Ks(""),[S,v]=Ks(!1),[b,y]=Ks(null),[k,L]=Ks(!1),O=!!Ge(xP()).pages.createFromStarter,D=Mbe(),[T,F]=Ks(null),[C,R]=Ks(()=>{if(typeof window>"u")return new Set;try{let z=window.localStorage.getItem(rj);return new Set(z?JSON.parse(z):[])}catch{return new Set}});JG(()=>{try{window.localStorage.setItem(rj,JSON.stringify([...C]))}catch{}},[C]);let P=z=>R(le=>{let Ce=new Set(le);return Ce.has(z)?Ce.delete(z):Ce.add(z),Ce}),_=QG(()=>z1(u??[]),[u]),W=I.trim().toLowerCase(),G=z=>!W||z.toLowerCase().includes(W),Z=z=>W?!0:!C.has(z),V=QG(()=>new Set((u??[]).map(z=>z.slug)),[u]),de=()=>{if(i.pageCreationInAdminForm&&!O){n.send("storefront-editor:new-page");return}y(null),L(!0)},ve=XG();JG(()=>{ve()&&de()},[]);let oe=i.hasSiteSettings&&!!s.createPage,Oe=async()=>{if(!(!l||S||!s.createPage)){v(!0),y(null);try{let z=await s.createPage(JR(c("New popup"),V));await p(),e(z.slug)}catch{y(c("Couldn\u2019t add the popup \u2014 please retry."))}finally{v(!1)}}},_e=Cbe(null),[Ae,Re]=Ks(null),rt=()=>{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)})},Yo=z=>{let le=u??[],Ce=s.deletePage;if(!l||S||!Ce||le.length<=1)return;let bo=le.findIndex(Do=>Do.id===z.id),mo=le.filter(Do=>Do.id!==z.id),at=z.slug===d;Nh(z.id,!0),m(mo),y(null),at&&mo[0]&&e(mo[0].slug);let Xe=()=>{Nh(z.id,!1);let Do=h()??[];if(Do.some(ft=>ft.id===z.id))return;let Fr=[...Do];Fr.splice(Math.max(0,Math.min(bo,Fr.length)),0,z),m(Fr)};oj.undoable(c("Deleted \u201C{name}\u201D",{name:z.label}),{actionLabel:c("Undo"),commit:async Do=>{await Ce(z.id,Do),Nh(z.id,!1)},undo:()=>{Xe(),at&&e(z.slug)},onFail:()=>{Xe(),oj.error(c("Couldn\u2019t delete the page \u2014 please retry."))}})},qo=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=Un(z),mo=U1(z),at=[...bo?[{label:c("Dynamic"),tone:"info"}]:[],...mo?[{label:c("Lightbox"),tone:"success"}]:[],...z.draft?[{label:c("draft"),tone:"draft"}]:[]],Xe=at.length>0?at:void 0,Do=!!D&&Nbe(z),Fr=Do||i.pageCreationInAdminForm||Ce?cI(Sbe,{children:[Do&&$e(dI,{kind:"plain",label:c("Duplicate \u201C{name}\u201D",{name:z.label}),disabled:S,onClick:()=>F(z),children:$e(Abe,{size:13})}),i.pageCreationInAdminForm&&$e(dI,{kind:"plain",label:c("Page settings for \u201C{name}\u201D",{name:z.label}),onClick:()=>qo(z.slug),children:$e(Lbe,{size:13})}),Ce&&$e(dI,{kind:"delete",label:c("Delete \u201C{name}\u201D",{name:z.label}),disabled:S,onClick:()=>Yo(z),children:$e(hP,{name:"trash",size:13,strokeWidth:1.7,rounded:!0})})]}):void 0;return $e(tj,{icon:$e(Rbe,{size:14}),name:z.label,selected:le,onSelect:()=>e(z.slug),badge:Xe,actions:Fr,rowProps:{"data-page-slug":z.slug}},z.id)},No=(z,le,Ce)=>{let bo=Ce.filter(Boolean);if(bo.length===0)return null;let mo=Z(z);return cI(wbe,{children:[$e(_be,{count:bo.length,countLabel:st("{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(tj,{icon:z.icon,name:z.label,selected:le,onSelect:()=>r(z.key),badge:{label:c("Preview"),tone:"warning"},actions:$e(dI,{kind:"plain",label:c("Open the {name} in a new tab",{name:z.label}),onClick:()=>window.open(z.href,"_blank","noopener,noreferrer"),children:$e(hP,{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 _){ue&&!le&&Ce.key.startsWith("system:")&&(z.push(No("shop",a.title,Eo)),le=!0);let bo=Ce.key===hb||Ce.label===mb?c(Ce.label):Ce.label;z.push(No(Ce.key,bo,Ce.rows.map(yo)))}return ue&&!le&&z.push(No("shop",a.title,Eo)),z})();return cI("div",{className:"sf-pages",children:[$e(vbe,{icon:$e(Fbe,{}),title:c("Pages"),context:f,actions:$e(kbe,{buttonRef:_e,label:oe?c("Add"):c("New page"),hasPopup:oe?"menu":void 0,expanded:oe?Ae!==null:void 0,onClick:rt,children:$e(Obe,{size:15})})}),Ae&&$e(Pbe,{portal:!0,style:{top:Ae.top,right:Ae.right},onClose:()=>Re(null),children:cI("div",{role:"menu","aria-label":c("Add"),children:[$e(ej,{role:"menuitem",onClick:()=>{Re(null),de()},children:c("Page")}),$e(ej,{role:"menuitem",disabled:S,onClick:()=>{Re(null),Oe()},children:c("Popup")})]})}),$e("div",{className:"sf-pages-find",children:$e(Tbe,{type:"search",leftIcon:$e(hP,{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&&!k&&$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(Ebe,{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(Dbe,{source:{title:T.label,slug:T.slug},taken:V,host:pu(),duplicate:z=>D(T,z),onClose:()=>F(null),onDuplicated:z=>{F(null),p(),e(z.slug)}},T.id),k?$e(VG,{open:!0,onClose:()=>L(!1),takenSlugs:V,onCreated:z=>{L(!1),p(),e(z.slug)}}):null]})}import{jsx as lj}from"react/jsx-runtime";import{createContext as Wbe,useCallback as $be,useContext as Ube,useMemo as zbe,useState as Gbe}from"react";import{CanvasChromeContext as jbe}from"efficient-easel/easel";import{useSelectHandler as Kbe}from"efficient-easel/draw/client";import{parseHexColor as Hbe}from"efficient-shell/format";var fI=["chat-bubble-left-right","chat-bubble-oval-left-ellipsis","chat","megaphone","phone","sparkles"],oc=fI[0];var Vs="right";function pI(e){return fI.includes(e??"")?e:oc}function sj(e){return e==="left"?"left":Vs}function ij(e){return e&&Hbe(e)===e.toLowerCase()?e.toLowerCase():""}var cj="chat",uI={enabled:!0,title:"",subtitle:"",greeting:"",launcherColor:"",launcherIcon:"",launcherPosition:Vs,launcherLabel:"",showOnPhones:!0};function bco(e){return{enabled:e.enabled,title:e.title,subtitle:e.subtitle,greeting:e.greeting,launcherColor:ij(e.launcherColor),launcherIcon:e.launcherIcon?pI(e.launcherIcon):"",launcherPosition:sj(e.launcherPosition),launcherLabel:e.launcherLabel??"",showOnPhones:e.showOnPhones!==!1}}var dj=Wbe({chat:uI,setChat:()=>{},setSelected:()=>{},setSelectHandler:()=>{}});function Sco({children:e,chat:o=uI,onChatChange:t}){let[r,a]=Gbe(!1),n=$be(d=>t?.(d),[t]),{select:s,setSelectHandler:i}=Kbe(),l=zbe(()=>({selected:()=>r?cj:null,select:d=>d===cj&&s()}),[r,s]);return lj(dj.Provider,{value:{chat:o,setChat:n,setSelected:a,setSelectHandler:i},children:lj(jbe.Provider,{value:l,children:e})})}var mI=()=>Ube(dj);import{jsx as gP}from"react/jsx-runtime";import{DesktopIcon as Vbe,PhoneIcon as Ybe,TabletIcon as qbe}from"efficient-easel/icons";import{VIEW_TIERS as Xbe,VIEW_TIER_LABEL as Zbe}from"efficient-easel/draw";var Jbe={desktop:gP(Vbe,{}),tablet:gP(qbe,{}),mobile:gP(Ybe,{})},fj=Xbe.map(e=>({id:e,get label(){return c(Zbe[e])},icon:Jbe[e]}));import{PreviewDeviceContext as sPe}from"efficient-easel/draw/client";import{jsx as Qbe}from"react/jsx-runtime";import{createContext as eSe,useCallback as pj,useContext as oSe,useMemo as tSe,useRef as rSe}from"react";var aSe=Object.fromEntries(gu.map(e=>[e,{value:"",error:null}])),uj=eSe({links:FO,rows:aSe,canSave:!1,saveLink:async()=>({ok:!1,error:"There is no website to save to."}),openPanel:()=>{},setOpenHandler:()=>{}});function Aco({children:e,value:o}){let t=rSe(()=>{}),r=pj(()=>t.current(),[]),a=pj(s=>{t.current=s},[]),n=tSe(()=>({...o,openPanel:r,setOpenHandler:a}),[o,r,a]);return Qbe(uj.Provider,{value:n,children:e})}var Kf=()=>oSe(uj);import{jsx as nSe}from"react/jsx-runtime";import{createContext as sSe,useContext as iSe,useMemo as lSe,useState as cSe}from"react";var mj=sSe(null);function Bco({children:e}){let[o,t]=cSe(null),r=lSe(()=>({surface:o,setSurface:t}),[o]);return nSe(mj.Provider,{value:r,children:e})}function hj(){return iSe(mj)??{surface:null,setSurface:()=>{}}}import{createPreviewSelectionContext as dSe}from"efficient-easel/draw/client";var{Provider:Mco,useSelection:hI}=dSe("selectedHeroPart");import{jsx as Ne,jsxs as Sn,Fragment as OK}from"react/jsx-runtime";import{useEasel as Bve,useRootFields as Nve}from"efficient-easel/easel";import{EmptyState as Dve}from"efficient-shell/ui";function xj({kind:e,pageName:o}){return{name:o?.trim()||c("This page"),kindLabel:Un({kind:e})?c("Template"):c("Page")}}import{headWords as FK,InspectorHead as Mve,InspectorIconButton as AK}from"efficient-easel/chrome";import{DuplicateIcon as Hve,TrashIcon as Wve}from"efficient-easel/icons";import{panelFieldsOf as $ve}from"efficient-easel/screen/lib/document/panel-fields";import{jsx as H,Fragment as ye,jsxs as we}from"react/jsx-runtime";import{BlockBannerIcon as uSe,BlockBoxIcon as mSe,BlockButtonIcon as hSe,BlockDividerIcon as Ij,BlockFooterIcon as yj,BlockHeadingIcon as xSe,BlockProductIcon as gSe,BlockSocialIcon as ISe,BlockTextIcon as ySe,CardPaymentIcon as bSe,ChatIcon as SSe,AccountIcon as wSe,GlobeIcon as CSe,GridIcon as vSe,ImageIcon as yP,MapIcon as kSe,MediaIcon as TSe,PageIcon as PSe}from"efficient-easel/icons";import{jsx as IP,Fragment as fSe,jsxs as pSe}from"react/jsx-runtime";var gj=pSe(fSe,{children:[IP("circle",{cx:"9",cy:"20",r:"1.3"}),IP("circle",{cx:"18",cy:"20",r:"1.3"}),IP("path",{d:"M2.5 3.5h3l2.3 11.3a1.6 1.6 0 0 0 1.6 1.3h8.1a1.6 1.6 0 0 0 1.6-1.2L21 7H6"})]});var ESe={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:gj,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"})},_Se=H("rect",{x:"4",y:"4",width:"16",height:"16",rx:"2.5"}),OSe={footer:yj,Footer:yj,Divider:Ij,FooterDivider:Ij,Banner:uSe,Flex:mSe,FooterSocial:ISe,FooterPayment:bSe,page:PSe,website:CSe,AccountBlock:wSe,chat:SSe,Heading:xSe,Text:ySe,ImageBlock:yP,ButtonBlock:hSe,LocationMap:kSe,Grid:vSe,ProductRef:gSe,heroMedia:TSe,heroImage:yP,heroImage2:yP},ASe={MenuBlock:"FooterMenu",EmailFormBlock:"FooterEmailSignup",SocialLogosBlock:"FooterSocial",PaymentLogosBlock:"FooterPayment",SiteHeader:"header",SiteFooter:"footer"};function Ys({type:e,size:o=16,className:t}){let r=ASe[e]??e,a=OSe[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:ESe[r]??_Se})}import{PanelHideButton as RK}from"efficient-easel/screen/components/SidePanelHead";import{useEaselSession as Uve}from"efficient-easel/screen/lib/session-context";import{jsx as Be,jsxs as Vf,Fragment as RSe}from"react/jsx-runtime";import{useEffect as LSe,useId as bj,useState as FSe}from"react";import{IconPicker as BSe}from"efficient-shell/ui";import{SettingsDefaultReset as NSe,SettingsField as Yf,SettingsSegmented as DSe,SettingsSwitch as Sj}from"efficient-easel/panel";import{ButtonIcon as MSe,ButtonIconIcon as HSe,EyeIcon as WSe,PhoneIcon as $Se,PlacementIcon as USe,TypeIcon as zSe}from"efficient-easel/icons";var GSe="Chat with us",jSe="We usually reply within a few minutes",KSe="Hi! Ask us anything \u2014 about a wheel, an order, or fitment. Leave your details and we\u2019ll reply.";function xI({label:e,value:o,placeholder:t,onCommit:r,multiline:a=!1,hint:n}){let[s,i]=FSe(o);LSe(()=>i(o),[o]);let l=()=>{s!==o&&r(s)};return Be(Yf,{label:e,icon:Be(zSe,{}),changed:o!=="",action:Be(qf,{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 qf({label:e,changed:o,onReset:t}){return Be(NSe,{words:ce()?.panel,label:e,changed:o,onReset:t})}function VSe({label:e,icon:o,checked:t,fallback:r,onChange:a,hint:n}){let s=bj();return Be(Yf,{label:e,labelId:s,icon:o,changed:t!==r,action:Vf("span",{className:"inline-flex items-center gap-2",children:[Be(Sj,{checked:t,onChange:a,ariaLabelledBy:s}),Be(qf,{label:e,changed:t!==r,onReset:()=>a(r)})]}),hint:n})}var YSe=fI.map(e=>({value:e,icon:Mu(e)}));function qSe(){let{theme:e}=fe(),o=vo(e).themes[0];return kc(o)??o?.accent??""}function wj(){let{chat:e,setChat:o}=mI(),t=bj(),r=qSe(),a=e.launcherIcon?pI(e.launcherIcon):oc;return Vf(RSe,{children:[Be(Yf,{label:c("Show the chat bubble"),labelId:t,icon:Be(WSe,{}),changed:!e.enabled,action:Vf("span",{className:"inline-flex items-center gap-2",children:[Be(Sj,{checked:e.enabled,onChange:n=>o({enabled:n}),ariaLabelledBy:t}),Be(qf,{label:c("Show the chat bubble"),changed:!e.enabled,onReset:()=>o({enabled:!0})})]}),hint:e.enabled?c("The floating chat bubble shows in the corner of every page."):c("The chat bubble is hidden across the whole site.")}),Vf(xw,{title:c("Look"),children:[Be(gt,{label:c("Button color"),icon:Be(MSe,{}),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(Yf,{label:c("Icon"),icon:Be(HSe,{}),value:Be(qS,{value:a}),changed:a!==oc,action:Be(qf,{label:c("Icon"),changed:a!==oc,onReset:()=>o({launcherIcon:""})}),children:Be(BSe,{label:c("Icon"),value:a,options:YSe,onChange:n=>o({launcherIcon:n===oc?"":n})})}),Be(Yf,{label:c("Position"),icon:Be(USe,{}),changed:e.launcherPosition!==Vs,action:Be(qf,{label:c("Position"),changed:e.launcherPosition!==Vs,onReset:()=>o({launcherPosition:Vs})}),children:Be(DSe,{options:[{label:c("Right"),id:"right"},{label:c("Left"),id:"left"}],value:e.launcherPosition,ariaLabel:c("Position"),onChange:n=>o({launcherPosition:n})})}),Be(xI,{label:c("Label"),value:e.launcherLabel,placeholder:c("Icon only"),onCommit:n=>o({launcherLabel:n}),hint:c("Shows when a visitor points at the button")}),Be(VSe,{label:c("Show on phones"),icon:Be($Se,{}),checked:e.showOnPhones,fallback:uI.showOnPhones,onChange:n=>o({showOnPhones:n})})]}),Vf(xw,{title:c("Wording"),children:[Be(xI,{label:c("Title"),value:e.title,placeholder:GSe,onCommit:n=>o({title:n})}),Be(xI,{label:c("Subtitle"),value:e.subtitle,placeholder:jSe,onCommit:n=>o({subtitle:n})}),Be(xI,{label:c("Greeting message"),value:e.greeting,placeholder:KSe,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 qs,Fragment as $P,jsxs as Pj}from"react/jsx-runtime";import{useEffect as kwe,useId as kj,useState as Tj}from"react";import{SettingsField as Twe}from"efficient-easel/panel";import{jsx as xwe}from"react/jsx-runtime";import{forwardRef as XSe,createElement as bP}from"react";var Cj={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=XSe(({color:n="currentColor",size:s=24,stroke:i=2,title:l,className:d,children:f,...u},p)=>bP("svg",{ref:p,...Cj[e],width:s,height:s,className:["tabler-icon",`tabler-icon-${o}`,d].filter(Boolean).join(" "),...e==="filled"?{fill:n}:{strokeWidth:i,stroke:n},...u},[l&&bP("title",{key:"svg-title"},l),...r.map(([m,h])=>bP(m,h)),...Array.isArray(f)?f:[f]]));return a.displayName=`${t}`,a};var ZSe=[["path",{d:"M7 10v4h3v7h4v-7h3l1 -4h-4v-2a1 1 0 0 1 1 -1h3v-4h-3a5 5 0 0 0 -5 5v2h-3",key:"svg-0"}]],SP=pe("outline","brand-facebook","BrandFacebook",ZSe);var JSe=[["path",{d:"M3 7a4 4 0 0 1 4 -4h10a4 4 0 0 1 4 4v10a4 4 0 0 1 -4 4h-10a4 4 0 0 1 -4 -4l0 -10",key:"svg-0"}],["path",{d:"M8.5 12a3.5 3.5 0 1 0 7 0a3.5 3.5 0 0 0 -7 0",key:"svg-1"}],["path",{d:"M17 7v.01",key:"svg-2"}]],wP=pe("outline","brand-instagram","BrandInstagram",JSe);var QSe=[["path",{d:"M21 10.663c0 -4.224 -4.041 -7.663 -9 -7.663s-9 3.439 -9 7.663c0 3.783 3.201 6.958 7.527 7.56c1.053 .239 .932 .644 .696 2.133c-.039 .238 -.184 .932 .777 .512c.96 -.42 5.18 -3.201 7.073 -5.48c1.304 -1.504 1.927 -3.029 1.927 -4.715v-.01",key:"svg-0"}]],CP=pe("outline","brand-line","BrandLine",QSe);var ewe=[["path",{d:"M8 11v5",key:"svg-0"}],["path",{d:"M8 8v.01",key:"svg-1"}],["path",{d:"M12 16v-5",key:"svg-2"}],["path",{d:"M16 16v-3a2 2 0 1 0 -4 0",key:"svg-3"}],["path",{d:"M3 7a4 4 0 0 1 4 -4h10a4 4 0 0 1 4 4v10a4 4 0 0 1 -4 4h-10a4 4 0 0 1 -4 -4l0 -10",key:"svg-4"}]],vP=pe("outline","brand-linkedin","BrandLinkedin",ewe);var owe=[["path",{d:"M8 20l4 -9",key:"svg-0"}],["path",{d:"M10.7 14c.437 1.263 1.43 2 2.55 2c2.071 0 3.75 -1.554 3.75 -4a5 5 0 1 0 -9.7 1.7",key:"svg-1"}],["path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 1 0 -18 0",key:"svg-2"}]],kP=pe("outline","brand-pinterest","BrandPinterest",owe);var twe=[["path",{d:"M15 10l-4 4l6 6l4 -16l-18 7l4 2l2 6l3 -4",key:"svg-0"}]],TP=pe("outline","brand-telegram","BrandTelegram",twe);var rwe=[["path",{d:"M21 7.917v4.034a9.948 9.948 0 0 1 -5 -1.951v4.5a6.5 6.5 0 1 1 -8 -6.326v4.326a2.5 2.5 0 1 0 4 2v-11.5h4.083a6.005 6.005 0 0 0 4.917 4.917",key:"svg-0"}]],PP=pe("outline","brand-tiktok","BrandTiktok",rwe);var awe=[["path",{d:"M16.5 10c3.038 0 5.5 2.015 5.5 4.5c0 1.397 -.778 2.645 -2 3.47l0 2.03l-1.964 -1.178a6.649 6.649 0 0 1 -1.536 .178c-3.038 0 -5.5 -2.015 -5.5 -4.5s2.462 -4.5 5.5 -4.5",key:"svg-0"}],["path",{d:"M11.197 15.698c-.69 .196 -1.43 .302 -2.197 .302a8.008 8.008 0 0 1 -2.612 -.432l-2.388 1.432v-2.801c-1.237 -1.082 -2 -2.564 -2 -4.199c0 -3.314 3.134 -6 7 -6c3.782 0 6.863 2.57 7 5.785l0 .233",key:"svg-1"}],["path",{d:"M10 8h.01",key:"svg-2"}],["path",{d:"M7 8h.01",key:"svg-3"}],["path",{d:"M15 14h.01",key:"svg-4"}],["path",{d:"M18 14h.01",key:"svg-5"}]],EP=pe("outline","brand-wechat","BrandWechat",awe);var nwe=[["path",{d:"M3 21l1.65 -3.8a9 9 0 1 1 3.4 2.9l-5.05 .9",key:"svg-0"}],["path",{d:"M9 10a.5 .5 0 0 0 1 0v-1a.5 .5 0 0 0 -1 0v1a5 5 0 0 0 5 5h1a.5 .5 0 0 0 0 -1h-1a.5 .5 0 0 0 0 1",key:"svg-1"}]],_P=pe("outline","brand-whatsapp","BrandWhatsapp",nwe);var swe=[["path",{d:"M4 4l11.733 16h4.267l-11.733 -16l-4.267 0",key:"svg-0"}],["path",{d:"M4 20l6.768 -6.768m2.46 -2.46l6.772 -6.772",key:"svg-1"}]],OP=pe("outline","brand-x","BrandX",swe);var iwe=[["path",{d:"M2 8a4 4 0 0 1 4 -4h12a4 4 0 0 1 4 4v8a4 4 0 0 1 -4 4h-12a4 4 0 0 1 -4 -4v-8",key:"svg-0"}],["path",{d:"M10 9l5 3l-5 3l0 -6",key:"svg-1"}]],AP=pe("outline","brand-youtube","BrandYoutube",iwe);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"}]],RP=pe("filled","brand-facebook-filled","BrandFacebookFilled",lwe);var cwe=[["path",{d:"M16 3a5 5 0 0 1 5 5v8a5 5 0 0 1 -5 5h-8a5 5 0 0 1 -5 -5v-8a5 5 0 0 1 5 -5zm-4 5a4 4 0 0 0 -3.995 3.8l-.005 .2a4 4 0 1 0 4 -4m4.5 -1.5a1 1 0 0 0 -.993 .883l-.007 .127a1 1 0 0 0 1.993 .117l.007 -.127a1 1 0 0 0 -1 -1",key:"svg-0"}]],LP=pe("filled","brand-instagram-filled","BrandInstagramFilled",cwe);var dwe=[["path",{d:"M17 2a5 5 0 0 1 5 5v10a5 5 0 0 1 -5 5h-10a5 5 0 0 1 -5 -5v-10a5 5 0 0 1 5 -5zm-9 8a1 1 0 0 0 -1 1v5a1 1 0 0 0 2 0v-5a1 1 0 0 0 -1 -1m6 0a3 3 0 0 0 -1.168 .236l-.125 .057a1 1 0 0 0 -1.707 .707v5a1 1 0 0 0 2 0v-3a1 1 0 0 1 2 0v3a1 1 0 0 0 2 0v-3a3 3 0 0 0 -3 -3m-6 -3a1 1 0 0 0 -.993 .883l-.007 .127a1 1 0 0 0 1.993 .117l.007 -.127a1 1 0 0 0 -1 -1",key:"svg-0"}]],FP=pe("filled","brand-linkedin-filled","BrandLinkedinFilled",dwe);var fwe=[["path",{d:"M17 3.34a10 10 0 0 1 -8.512 18.023l2.364 -5.315a3.5 3.5 0 0 0 2.398 .952c2.708 0 4.75 -2.089 4.75 -5a6 6 0 1 0 -11.64 2.041a1 1 0 1 0 1.88 -.682a4 4 0 1 1 7.76 -1.36c0 1.818 -1.156 3.001 -2.75 3.001c-.609 0 -1.153 -.361 -1.478 -1.022l1.142 -2.572a1 1 0 0 0 -1.828 -.812l-4.392 9.882a10 10 0 0 1 -4.694 -8.476l.005 -.324a10 10 0 0 1 14.995 -8.336",key:"svg-0"}]],BP=pe("filled","brand-pinterest-filled","BrandPinterestFilled",fwe);var pwe=[["path",{d:"M16.083 2h-4.083a1 1 0 0 0 -1 1v11.5a1.5 1.5 0 1 1 -2.519 -1.1l.12 -.1a1 1 0 0 0 .399 -.8v-4.326a1 1 0 0 0 -1.23 -.974a7.5 7.5 0 0 0 1.73 14.8l.243 -.005a7.5 7.5 0 0 0 7.257 -7.495v-2.7l.311 .153c1.122 .53 2.333 .868 3.59 .993a1 1 0 0 0 1.099 -.996v-4.033a1 1 0 0 0 -.834 -.986a5.005 5.005 0 0 1 -4.097 -4.096a1 1 0 0 0 -.986 -.835z",key:"svg-0"}]],NP=pe("filled","brand-tiktok-filled","BrandTiktokFilled",pwe);var uwe=[["path",{d:"M18.497 4.409a10 10 0 0 1 -10.36 16.828l-.223 -.098l-4.759 .849l-.11 .011a1 1 0 0 1 -.11 0l-.102 -.013l-.108 -.024l-.105 -.037l-.099 -.047l-.093 -.058l-.014 -.011l-.012 -.007l-.086 -.073l-.077 -.08l-.067 -.088l-.056 -.094l-.034 -.07l-.04 -.108l-.028 -.128l-.012 -.102a1 1 0 0 1 0 -.125l.012 -.1l.024 -.11l.045 -.122l1.433 -3.304l-.009 -.014a10 10 0 0 1 1.549 -12.454l.215 -.203a10 10 0 0 1 13.226 -.217m-8.997 3.09a1.5 1.5 0 0 0 -1.5 1.5v1a6 6 0 0 0 6 6h1a1.5 1.5 0 0 0 0 -3h-1l-.144 .007a1.5 1.5 0 0 0 -1.128 .697l-.042 .074l-.022 -.007a4.01 4.01 0 0 1 -2.435 -2.435l-.008 -.023l.075 -.041a1.5 1.5 0 0 0 .704 -1.272v-1a1.5 1.5 0 0 0 -1.5 -1.5",key:"svg-0"}]],DP=pe("filled","brand-whatsapp-filled","BrandWhatsappFilled",uwe);var mwe=[["path",{d:"M8.267 3a1 1 0 0 1 .73 .317l.076 .092l4.274 5.828l5.946 -5.944a1 1 0 0 1 1.497 1.32l-.083 .094l-6.163 6.162l6.262 8.54a1 1 0 0 1 -.697 1.585l-.109 .006h-4.267a1 1 0 0 1 -.73 -.317l-.076 -.092l-4.276 -5.829l-5.944 5.945a1 1 0 0 1 -1.497 -1.32l.083 -.094l6.161 -6.163l-6.26 -8.539a1 1 0 0 1 .697 -1.585l.109 -.006h4.267z",key:"svg-0"}]],MP=pe("filled","brand-x-filled","BrandXFilled",mwe);var hwe=[["path",{d:"M18 3a5 5 0 0 1 5 5v8a5 5 0 0 1 -5 5h-12a5 5 0 0 1 -5 -5v-8a5 5 0 0 1 5 -5zm-9 6v6a1 1 0 0 0 1.514 .857l5 -3a1 1 0 0 0 0 -1.714l-5 -3a1 1 0 0 0 -1.514 .857z",key:"svg-0"}]],HP=pe("filled","brand-youtube-filled","BrandYoutubeFilled",hwe);var Sfo="outline",gI={fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},gwe={},WP={fillRule:"evenodd"},Iwe=[["path",{...gI,d:"M21 4L3 11L7 13L9 19L12 15L17 20z"}],["path",{...WP,d:"M21 4L3 11L7 13L9 19L12 15L17 20zM15.212 8.939 10.576 13.576 11.424 14.424 16.061 9.788z"}]],ywe=[["path",{...gI,d:["M21 10.663c0 -4.224 -4.041 -7.663 -9 -7.663s-9 3.439 -9 7.663","c0 3.783 3.201 6.958 7.527 7.56c1.053 .239 .932 .644 .696 2.133","c-.039 .238 -.184 .932 .777 .512c.96 -.42 5.18 -3.201 7.073 -5.48","c1.304 -1.504 1.927 -3.029 1.927 -4.715v-.01z"].join("")}],["path",{...gwe,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("")}]],bwe=[["path",{...gI,d:["M16.5 10c3.038 0 5.5 2.015 5.5 4.5c0 1.397 -.778 2.645 -2 3.47l0 2.03l-1.964 -1.178","a6.649 6.649 0 0 1 -1.536 .178c-3.038 0 -5.5 -2.015 -5.5 -4.5s2.462 -4.5 5.5 -4.5z"].join("")}],["path",{...gI,d:["M8.319 15.972L7.84 15.918L7.349 15.832L6.865 15.715L6.388 15.568L4 17L4 14.199","L3.559 13.775L3.197 13.356L2.877 12.91L2.603 12.439L2.376 11.946L2.201 11.433","L2.079 10.902L2.016 10.405L2.001 9.897L2.036 9.386L2.12 8.889L2.25 8.405L2.425 7.937","L2.642 7.486L2.9 7.055L3.195 6.645L3.459 6.333L3.744 6.037L4.05 5.757L4.377 5.495","L4.723 5.25L5.086 5.025L5.467 4.819L5.864 4.634L6.275 4.471L6.701 4.331L7.139 4.214","L7.589 4.122L8.05 4.055L8.521 4.014L9.352 4.007L9.815 4.04L10.269 4.098L10.713 4.181","L11.146 4.287L11.567 4.416L11.975 4.567L12.369 4.739L12.748 4.932L13.112 5.143","L13.459 5.374L13.788 5.622L14.172 5.956L14.458 6.241L14.722 6.542L14.965 6.856","L15.217 7.237A8.35 7.35 0 0 0 8.319 15.972z"].join("")}],["path",{...WP,d:["M8.319 15.972L7.84 15.918L7.349 15.832L6.865 15.715L6.388 15.568L4 17L4 14.199","L3.559 13.775L3.197 13.356L2.877 12.91L2.603 12.439L2.376 11.946L2.201 11.433","L2.079 10.902L2.016 10.405L2.001 9.897L2.036 9.386L2.12 8.889L2.25 8.405L2.425 7.937","L2.642 7.486L2.9 7.055L3.195 6.645L3.459 6.333L3.744 6.037L4.05 5.757L4.377 5.495","L4.723 5.25L5.086 5.025L5.467 4.819L5.864 4.634L6.275 4.471L6.701 4.331L7.139 4.214","L7.589 4.122L8.05 4.055L8.521 4.014L9.352 4.007L9.815 4.04L10.269 4.098L10.713 4.181","L11.146 4.287L11.567 4.416L11.975 4.567L12.369 4.739L12.748 4.932L13.112 5.143","L13.459 5.374L13.788 5.622L14.172 5.956L14.458 6.241L14.722 6.542L14.965 6.856","L15.217 7.237A8.35 7.35 0 0 0 8.319 15.972zM5.25 7.9a0.85 0.85 0 1 0 1.7 0","a0.85 0.85 0 1 0 -1.7 0zM8.25 7.9a0.85 0.85 0 1 0 1.7 0a0.85 0.85 0 1 0 -1.7 0z"].join("")}],["path",{...WP,d:["M16.5 10c3.038 0 5.5 2.015 5.5 4.5c0 1.397 -.778 2.645 -2 3.47l0 2.03l-1.964 -1.178","a6.649 6.649 0 0 1 -1.536 .178c-3.038 0 -5.5 -2.015 -5.5 -4.5s2.462 -4.5 5.5 -4.5z","M14.15 14a0.85 0.85 0 1 0 1.7 0a0.85 0.85 0 1 0 -1.7 0zM17.15 14","a0.85 0.85 0 1 0 1.7 0a0.85 0.85 0 1 0 -1.7 0z"].join("")}]],Swe=pe("filled","brand-telegram-filled","BrandTelegramFilled",Iwe),wwe=pe("filled","brand-line-filled","BrandLineFilled",ywe),Cwe=pe("filled","brand-wechat-filled","BrandWechatFilled",bwe),vwe={instagram:{outline:wP,solid:LP},facebook:{outline:SP,solid:RP},tiktok:{outline:PP,solid:NP},youtube:{outline:AP,solid:HP},x:{outline:OP,solid:MP},linkedin:{outline:vP,solid:FP},pinterest:{outline:kP,solid:BP},whatsapp:{outline:_P,solid:DP},telegram:{outline:TP,solid:Swe},line:{outline:CP,solid:wwe},wechat:{outline:EP,solid:Cwe}};function vj({platform:e,iconStyle:o,size:t}){let r=vwe[e][o];return xwe(r,{size:t,stroke:1.75,"aria-hidden":"true",focusable:"false"})}var Pwe={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 Ewe({platform:e}){let{rows:o,saveLink:t}=Kf(),{value:r,error:a}=o[e],[n,s]=Tj(r),[i,l]=Tj(!1),d=kj(),f=kj();kwe(()=>s(r),[r]);let u=async()=>{if(n.trim()===r){n!==r&&s(r);return}l(!0),await t(e,n),l(!1)},p=LO[e];return Pj($P,{children:[qs(Twe,{label:c(p),htmlFor:d,icon:qs(vj,{platform:e,iconStyle:"outline",size:18}),children:qs("input",{id:d,type:"text",inputMode:"url",value:n,placeholder:Pwe[e],onChange:m=>s(m.target.value),onBlur:()=>{u()},onKeyDown:m=>{m.key==="Enter"&&m.currentTarget.blur(),m.key==="Escape"&&(s(r),m.currentTarget.blur())},"aria-invalid":a?!0:void 0,"aria-describedby":a?f:void 0,"aria-busy":i||void 0,autoComplete:"off",spellCheck:!1})}),a&&qs("p",{id:f,className:"sf-note sf-note--error",role:"alert",children:a})]})}function Ej({unavailable:e}){let{canSave:o}=Kf();return!o&&e?qs($P,{children:e}):Pj($P,{children:[qs("p",{className:"es-field-hint",children:c("Paste a link to each profile. A platform left empty shows nothing on the site.")}),gu.map(t=>qs(Ewe,{platform:t},t))]})}import{jsx as Js,Fragment as eCe,jsxs as oCe}from"react/jsx-runtime";import{useId as tCe,useMemo as rCe}from"react";import{useEasel as aCe}from"efficient-easel/easel";import{SettingsField as nCe,SettingsSwitch as sCe}from"efficient-easel/panel";import{EyeIcon as iCe}from"efficient-easel/icons";import{fieldShownInView as lCe}from"efficient-easel/fields";import{usePreviewDevice as cCe}from"efficient-easel/draw/client";import{jsx as Zs,Fragment as Awe}from"react/jsx-runtime";import{createContext as Rwe,useContext as Lwe,useLayoutEffect as Fwe,useMemo as Oj,useRef as Bwe,useState as Aj}from"react";import{useEasel as Rj,useSelectedFields as Nwe}from"efficient-easel/easel";import{fieldShownInView as Dwe,Inspector as Mwe,LEAD_BAND_KEY as Hwe,planFields as Lj}from"efficient-easel/fields";function _j({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 _we}from"react/jsx-runtime";import{EmptyState as Owe}from"efficient-shell/ui";function Xs(){return _we(Owe,{variant:"none",icon:!1,message:c("These settings apply to every view.")})}import{usePreviewDevice as Wwe}from"efficient-easel/draw/client";import{deviceField as $we}from"efficient-easel/screen/lib/document/device-fields";var Uwe="Text",UP=new Map,II=new Set,zwe=Object.fromEntries(Uf.map(e=>{let o=oB[e];return[e,Zs(o,{},e)]})),Fj=Rwe(null),Gwe={_partBody:$we("each",{type:"custom",render:()=>Zs(jwe,{})})};function jwe(){return Zs(Awe,{children:Lwe(Fj)})}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}=Nwe(),p=Oj(()=>a?{...d,...a.values}:d,[d,a?.values]),m=(oe,Oe)=>a?.keys.has(oe)?a.onChange(oe,Oe):u(oe,Oe),h=Wwe(),{appState:I,config:w}=Rj(oe=>oe),S=K1(h,w,I.data.content??[],I.ui.itemSelector),v=n===void 0?hH(l,t):Gwe,b=Oj(()=>{let oe=r?.length?Object.fromEntries(Object.entries(v).filter(([Oe])=>!r.includes(Oe))):v;return a?{...oe,...a.fields}:oe},[v,r,a?.fields]),y=gb(b,p,S),[k,L]=Aj(()=>new Set(II)),O=Dwe({},h),D={key:Hwe,title:Uwe},T=Rj(oe=>oe.selectedItem)!==null,F=a?.part??t??"",C=`${i}:${F}:${String(h)}`,[R,P]=Aj(()=>({tab:UP.get(C)})),_=`${i}:${F}`,W=Bwe(null),G={...S,node:p},Z=Lj(y,{values:p,context:G}).buckets,V=_j({allTabs:T,remembered:UP.get(C),inherited:W.current?.panel===_?W.current.tab:R.tab,buckets:Z,hasText:O&&o>0}),de=!O&&!Z.includes(V)&&(Lj(gb(b,p,{...S,device:"desktop"}),{values:p,context:{...G,device:"desktop"}}).buckets.includes(V)||V==="Design"&&o>0);Fwe(()=>{W.current={panel:_,tab:V}});let ve=V==="Design";return Zs(Fj.Provider,{value:n??null,children:Zs(Iw.Provider,{value:a?p:null,children:Zs(Mwe,{fields:y,values:p,onChange:m,readOnly:f,allTabs:T,showWhenContext:G,context:{itemWord:s},tab:V,onTab:oe=>{UP.set(C,oe),P({tab:oe})},tabIcons:zwe,idPrefix:i,ariaLabel:c("Section settings"),lead:ve?e:null,leadFold:D,closedFolds:k,onFold:(oe,Oe)=>{Oe?II.delete(oe):II.add(oe),L(new Set(II))},children:de&&Zs(Xs,{})})})})}import{useMemo as Kwe}from"react";import{useEasel as Vwe}from"efficient-easel/easel";import{useSectionOps as Ywe}from"efficient-easel/screen/lib/document/use-section-ops";var Bj=new Map,qwe=e=>{let o=Bj.get(e);return o||Bj.set(e,o=Qg(Zg(e),`part:${e}`)),o},Xwe=new Set(rv);function tc(e,o,t){let{getItemById:r,getSelectorForId:a}=Vwe(f=>f),n=Ywe(),s=r(e)?.props??{},i=ws(s,o),l=JSON.stringify(i),d=Kwe(()=>Object.fromEntries(rv.map(f=>[f,i[f]])),[l]);return{part:o,fields:qwe(t),values:d,keys:Xwe,onChange:(f,u)=>{let p=a(e),m=r(e);if(!p||!m)return;let h=GM(m.props??{},o,f,u);n.replaceComponent(p.zone,p.index,{...m,props:h})}}}import{Fragment as Zwe,createElement as Jwe}from"react";import{deviceField as zP}from"efficient-easel/screen/lib/document/device-fields";var Vo=()=>({type:"custom",render:()=>Jwe(Zwe)});var GP={words:Vo(),sourceNote:Vo(),style:Vo(),font:Vo(),italic:Vo(),fontSize:zP("each",Vo()),lineHeight:Vo(),letterSpacing:Vo(),paragraphSpacing:Vo(),padding:Vo(),align:zP("each",Vo()),letterCase:Vo(),fixedSizeHint:zP("each",Vo()),regionNote:Vo(),regionStyle:Vo()},Qwe=["fontSize","align"];function Nj(e){return Qwe.includes(e)}var Dj={showTicker:Vo(),items:Vo()};var dCe="root:default-zone";function Mj({heroId:e}){let{appState:o,dispatch:t}=aCe(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=rCe(()=>{let m=n?.props.tickerItems;return Array.isArray(m)?m:QH.map(h=>({text:h}))},[n]),l=tCe(),d=cCe(),f=m=>lCe(Dj[m],d),u=tc(e,e4,"block");if(!n)return Js("p",{className:"sf-note",children:c("This ticker\u2019s hero is no longer on the page.")});let p=m=>t({type:"replace",destinationZone:dCe,destinationIndex:a,data:{...n,props:{...n.props,...m}}});return Js(Ar,{motion:u,body:oCe(eCe,{children:[!f("showTicker")&&!f("items")&&Js(Xs,{}),f("showTicker")&&Js(nCe,{label:c("Show ticker"),labelId:l,icon:Js(iCe,{}),action:Js(sCe,{checked:s,onChange:m=>p({showTicker:m}),ariaLabelledBy:l})}),f("items")&&Js(Cw,{label:ww.label,icon:ww.icon,items:i,placeholder:"item",onChange:m=>p({tickerItems:m}),markup:!0})]})})}import{jsx as te,Fragment as Jf,jsxs as sr}from"react/jsx-runtime";import{useContext as vCe,useEffect as jP,useRef as kCe,useState as qj}from"react";import{FieldSelect as TCe,InspectorField as PCe,fieldShownInView as ECe}from"efficient-easel/fields";import{InertHint as aK,SettingsField as _Ce}from"efficient-easel/panel";import{InspectorUpLevel as vI}from"efficient-easel/chrome";import{StylesIcon as OCe,TypeIcon as ACe}from"efficient-easel/icons";import{useEasel as RCe}from"efficient-easel/easel";import{TextPartPanel as Xj}from"efficient-easel/copy";import{Button as LCe,IconButton as FCe,Tooltip as BCe}from"efficient-shell/ui";import{jsx as $j,jsxs as fCe}from"react/jsx-runtime";import{DEFAULT_EASEL_STRINGS as pCe}from"efficient-easel/strings";import{COPY_CELLS as rc,COPY_CELL_LENGTHS as Hj,CopyBox as uCe,lengthCellUnits as mCe}from"efficient-easel/copy";import{PaddingYIcon as hCe}from"efficient-easel/icons";import{onDesktopWords as xCe}from"efficient-easel/screen/lib/document/box-fields";var Wj=pCe.copy.cells,gCe={kind:"spacing"},ICe=["left","center","right","justify"];function yI(e,o,t,r="desktop"){let a=_d(e),n=uC(r),s=e[n]??e.size??o.sizePx,i=UN(e,r),l=(f,u,p,m,h)=>{let I=Vt[p];return mCe({preset:f,row:u,table:Ia,unit:e[I],value:e[p],tier:r,styleValue:m,label:c(h),onPick:(w,S)=>t({[I]:w??null,[p]:S??null}),onChange:(w,S)=>t({...S?{[I]:S.unit??null}:{},[p]:w??null})})},d={key:"padding",name:c("Padding"),icon:$j(hCe,{}),unit:"px",step:cC,shiftStep:10,min:iC,max:lC};return[{...rc.fontSize,key:"fontSize",value:e[n],styleValue:Math.round(o.sizePx),onChange:f=>t({[n]:f??null}),...l(rc.fontSize,Hj.fontSize,n,Math.round(o.sizePx),Wj.fontSize),...n==="size"?{}:{reset:{detail:i?xCe(f=>c(f),`${i.px}px`,i.view):void 0}}},{...rc.lineHeight,key:"lineHeight",value:a.lineHeight,styleValue:o.lineRatio,onChange:f=>t(f===void 0?{lineHeight:null,line:null}:{lineHeight:f})},{...rc.letterSpacing,key:"letterSpacing",scale:s,value:a.letterSpacingEm,styleValue:o.letterEm,onChange:f=>t(f===void 0?{letterSpacing:null,letter:null}:{letterSpacing:f})},{...rc.paragraphSpacing,key:"paragraphSpacing",value:e.paragraphSpacing,styleValue:0,onChange:f=>t({paragraphSpacing:f??null}),...l(rc.paragraphSpacing,Hj.paragraphSpacing,"paragraphSpacing",0,Wj.paragraphSpacing)},{...d,value:e.padding,styleValue:o.paddingPx,onChange:f=>t({padding:f??null}),...l(d,gCe,"padding",o.paddingPx,"Padding")}]}function Uj({text:e,onTextChange:o,multiline:t,markup:r=!0,styled:a=!0,style:n,base:s,setValue:i,colors:l,placeholder:d,ariaLabel:f,head:u,typedOnCanvas:p=!1}){let m=yI(n,s,i),h=Ww(r,t);return fCe("div",{className:"sf-part-textbox",children:[u,$j(uCe,{value:e,onChange:o,multiline:t,placeholder:d,ariaLabel:f,rules:Cp,tools:h,barShows:p?"focus":"always",colors:r?l:[],colorNameOf:Et,align:a?{value:n.align??s.align,allow:ICe,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 Zj}from"efficient-easel/draw/client";import{jsx as bI,Fragment as yCe,jsxs as bCe}from"react/jsx-runtime";import{Button as zj,Dialog as SCe}from"efficient-shell/ui";function Gj({styleName:e,onCancel:o,onConfirm:t}){return bI(SCe,{open:!0,onClose:o,role:"alertdialog",size:"sm",title:c("Update {style}?",{style:e}),footer:bCe(yCe,{children:[bI(zj,{variant:"secondary",onClick:o,children:c("Cancel")}),bI(zj,{variant:"primary",onClick:t,children:c("Update style")})]}),children:bI("p",{children:c("Every text on the site that follows {style} changes to look like this one. This text\u2019s own changes are cleared, and it keeps following {style}.",{style:e})})})}import{ScreenDocumentContext as NCe}from"efficient-easel/screen/components/ScreenDocumentContext";import{usePreviewDevice as DCe}from"efficient-easel/draw/client";import{shownTier as wI}from"efficient-easel/screen/lib/document/device-fields";import{TEXT_FIELD_MARKER as MCe,viewKeyAt as HCe}from"efficient-easel/draw";import{useSectionOps as WCe}from"efficient-easel/screen/lib/document/use-section-ops";import{useEaselHost as $Ce}from"efficient-easel/screen/lib/host";function wCe(e){let o=new Set([...Object.keys($(nm,e)??{}),...$(sm,e)??[]]);for(let[t,r]of Object.entries($(Ub,e)??{}))r.verb==="snapshot"&&o.add(t);return[...o].sort()}var CCe={CollectionCard:"product",FooterMenu:"menu",Gallery:"product",GalleryItem:"product",ProductGrid:"product",ProductHero:"product",SpecTable:"product",Events:"blog",FeaturedCover:"blog",LongRead:"blog",SubscribeBlogs:"blog"},jj={product:"Synced from the product.",blog:"Synced from the blog post.",menu:"Synced from the site menu."},Kj="Open",Vj={product:{type:"storefront-editor:open-product",needsSlug:!0},blog:{type:"storefront-editor:open-post",needsSlug:!0},menu:{type:"storefront-editor:open-menus",needsSlug:!1}};function ac(e){let o=e?.source?.slug;return be(o)}function Xf(e){return $(CCe,e)??null}function Yj(e,o){let t=Xf(e);return t&&wCe(e).includes(o)?t:null}function SI(e){let o=e?.menu?.id;return be(o)}function KP(e){return e?c(e):null}function Jj(e){return e.kind==="role"?XI[e.role]:e.kind==="custom"?"Custom":null}function UCe(e){let o=aa(e.role);return o?{kind:"role",role:o}:null}function zCe(e,o){if(!e)return{kind:"unread"};let{faceRole:t,base:r}=e;if(o[t]===r.fontKey)return{kind:"role",role:t};let a=Object.keys(o).filter(n=>o[n]===r.fontKey);return a.length===1?{kind:"role",role:a[0]}:{kind:"custom"}}function CI(e,o,t,r){return UCe(ms(e,o))??zCe(t,r)}function GCe(e,o){if(!e.length)return null;let t=o(e[0]);return e.every(r=>o(r)===t)?t:null}function Qj(e){return[{value:Zf,label:c("No style"),description:c("Section\u2019s own")},...e.map(o=>({value:o.id,label:o.name,description:o.values.font?li(o.values.font)?.label:void 0}))]}var Zf="";function jCe({face:e,base:o,onPick:t}){let r=e.kind==="role"?e.role:Zf,a=[{label:c("No style"),value:Zf},...j0.map(n=>({label:c(XI[n]),value:n}))];return te(TCe,{ariaLabel:c("Style"),value:r,options:a,inline:!0,onChange:n=>t(n===Zf?null:n),renderOption:n=>n.value===Zf?sr(Jf,{children:[te("span",{className:"es-fsel-label sf-part-style-keep",children:n.label}),te("span",{className:"sf-part-style-aside","aria-hidden":"true",children:c("Section\u2019s own")})]}):te("span",{className:"es-fsel-label",style:{fontFamily:`var(--font-role-${n.value})`},children:n.label}),renderValue:()=>te("span",{style:{fontFamily:o?.fontKey?`var(${li(o.fontKey)?.cssVar})`:void 0,fontWeight:o?.weight},children:KP(Jj(e))}),valueText:n=>KP(Jj(e))??n?.label??""})}var nK=["regionNote","regionStyle"],KCe=Object.keys(GP).filter(e=>!nK.includes(e));function sK(e,o){return!e.some(o)}function VCe({sectionName:e,onBack:o,textEditor:t,styleRow:r,children:a,tabs:n}){let s=sr(Jf,{children:[t,r,a]});return sr("div",{className:"sf-part-panel",children:[te(vI,{inline:!0,name:c(e),onSelect:o}),n?n(s):s]})}function kI({source:e,slug:o,menuId:t}){let r=$Ce(),a=Vj[e],n=!a.needsSlug||!!o;return te("div",{className:"sf-note sf-note--source",children:sr(aK,{children:[c(jj[e]),n?sr(Jf,{children:[" ",te(LCe,{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(Kj)})]}):null]})})}var eK=4,YCe=120;function oK(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 tK({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 sr("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?sr(Jf,{children:[d,l("regionStyle")&&te("p",{className:"es-field-hint",children:oK(e)})]}):a?l("regionStyle")?te(Jf,{children:te(_Ce,{label:c("Style"),icon:te(OCe,{}),hint:oK(e),children:te(jCe,{face:t,base:r,onPick:a})})}):null:l("regionNote")&&te("p",{className:"es-field-hint",children:c("Only the size follows a site style. This section sets its own font, weight and letter case.")}),n&&l("sourceNote")?te(kI,{source:n,slug:s}):null,sK([...nK,"sourceNote",...d?["fontSize"]:[]],p=>l(p)&&(p!=="sourceNote"||!!n))&&te(Xs,{}),te(vI,{inline:!0,name:c("Page"),onSelect:i})]})}function qCe({onBack:e}){return sr("div",{className:"sf-note",children:[te("p",{children:te("strong",{children:c("This part is no longer here.")})}),te("p",{children:c("The section it belonged to has been changed or removed.")}),te(vI,{inline:!0,name:c("Page"),onSelect:e})]})}function XCe({onBack:e,partId:o,why:t}){return sr("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:sr("code",{children:[o," \u2014 ",t]})}),te(vI,{inline:!0,name:c("Page"),onSelect:e})]})}function iK({nodeId:e,propKey:o,onBack:t,onEditStyle:r}){let{getItemById:a,getSelectorForId:n,config:s}=RCe(X=>X),i=WCe(),l=JB(),{partStyle:d}=zl(),{fonts:f,textStyles:u}=fe(),p=vCe(NCe),m=!p?.capabilities?.hasSiteTheme,{persist:h}=Wi({themeFromDocument:m,tokenRef:p?.tokenRef,siteId:p?.siteId??null}),I=Rh({themeFromDocument:m,persist:h}),[w,S]=qj(!1),v=DCe(),b=X=>(wI(v)!=="tablet"||Nj(X))&&ECe(GP[X],v),y=kCe(null),k=a(e),L=n(e),O=k?s.components[k.type]:void 0,{key:D,row:T}=Cr(o),F=O?.fields?.[D],C=T?il(F,T):F,R=qr(e,o),P=k?.props??{},_=sl(C),W=Vm(C),G=_w(C),Z=k?Xf(k.type):null,V=k?Yj(k.type,D):null,de=T?gd(P[D],T):P[D],ve=!!T&&!(Array.isArray(P[D])&&T.index<P[D].length);jP(()=>{ZB(document)||y.current?.querySelector(".es-copy [contenteditable='true'], .es-copy textarea, .sf-copybox textarea, .sf-copybox input")?.focus()},[R]);let[oe,Oe]=qj(0);jP(()=>Oe(0),[R]);let _e=!!k&&!ve&&(!L||!C);jP(()=>{if(!_e||oe>=eK)return;let X=setTimeout(()=>Oe(po=>po+1),YCe);return()=>clearTimeout(X)},[_e,oe]);let Ae=_e&&oe<eK,Re=tc(e,ka(k?.type,o),"textPart");if(!k||ve)return te(qCe,{onBack:t});let rt=Gl(k.type),Yo=rt?Cc(rt,o):null;if(rt&&Yo){let X=d?.partId===R?d:null,po=rt[Yo],lr=po.writable===!0&&!!L,Ba=Tn=>{L&&i.replaceComponent(L.zone,L.index,{...k,props:hs(P,o,"role",Tn)})};if(lr&&qE(po)){let Tn=ms(P,o),O0=Pn=>{if(!L)return;let YI=P;for(let[ZV,JV]of Object.entries(Pn))YI=hs(YI,o,ZV,JV??null);i.replaceComponent(L.zone,L.index,{...k,props:YI})},YV=Ca(I.saved,I.old),qV=sC(Tn)??"",XV=yI(Tn,X?.base??rK,O0,wI(v)).filter(Pn=>Pn.key==="fontSize"&&b(Pn.key));return te(Ar,{motion:Re,body:te(tK,{region:po,sizePx:X?.base.sizePx??null,face:CI(P,o,X,f),base:X?.base??null,source:Z,slug:ac(P),onBack:t,shows:b,ownLook:YN(Tn),sizedStyle:te(Xj,{style:b("style")?{value:qV,options:Qj(YV),onChange:Pn=>O0(Pn?{textStyle:Pn}:{textStyle:null,role:null}),onEditStyles:r}:void 0,cells:XV})})})}return te(Ar,{motion:Re,body:te(tK,{region:po,sizePx:X?.base.sizePx??null,face:CI(P,o,X,f),base:X?.base??null,onFollowStyle:lr?Ba:void 0,source:Z,slug:ac(P),onBack:t,shows:b})})}if(!L||!C)return Ae?te("div",{className:"sf-note","aria-busy":"true"}):te(XCe,{onBack:t,partId:R,why:L?"no field":"no selector"});let qo=X=>{i.replaceComponent(L.zone,L.index,{...k,props:X})},yo=X=>{if(tn(X).hidden!==tn(de).hidden||!_){let po=T?Tw(P,D,T,X):{...P,[D]:X};po&&qo(po);return}th({node:k,propKey:o,kind:_,zone:L.zone,index:L.index},tn(X).text,i.replaceComponent)},No=de,Eo=d?.partId===R?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}):qo,mo=le?ue.kind:ka(k?.type,o),at=ms(Ce,mo),Xe=[{partKey:mo,face:CI(Ce,mo,Eo,f),sizeGroup:Eo?.sizeGroup??null,base:Eo?.base??rK,style:at}],Do=GCe(Xe,X=>X.sizeGroup),Fr=Bi(Eo?.inks),ft=(X,po)=>{let lr=Ce;for(let Ba of Xe)lr=hs(lr,Ba.partKey,X,po);bo(lr)},VI=X=>X?ft("textStyle",X):dc({textStyle:null,role:null}),dc=X=>{let po=Ce;for(let lr of Xe)for(let[Ba,Tn]of Object.entries(X))po=hs(po,lr.partKey,Ba,Tn??null);bo(po)},ti=_==="text"||_==="textarea",{text:ri,hidden:ta}=tn(de),Fa=C?.[MCe]?.label??o,wn=ta?c("Show {label} on the slide",{label:c(Fa)}):c("Hide {label} on the slide",{label:c(Fa)}),fc=sr("div",{className:"sf-field-head",children:[te(ACe,{}),te("span",{className:"sf-field-label sf-field-label--inline",children:c(Fa)}),ti&&te(BCe,{content:wn,children:te(FCe,{"aria-pressed":ta,"aria-label":wn,onClick:()=>yo({text:ri,hidden:!ta}),children:ta?te(Zj,{name:"eye-off",size:14}):te(Zj,{name:"eye",size:14})})})]}),Cn=!W&&G,hp=!!_&&(QF(C)||W||ta||!G),pc=CI(Ce,mo,Eo,f),xp=pc.kind==="role"?pc.role:null,vn=sC(at)??mD(xp),_0=Ca(I.saved,I.old),zV=Object.entries(at).filter(([X,po])=>X!=="role"&&X!=="textStyle"&&po!==void 0).length,GV=()=>{let X=Ce;for(let po of Xe){let{role:lr,textStyle:Ba}=po.style;X=WN(X,po.partKey),lr&&(X=hs(X,po.partKey,"role",lr)),Ba&&(X=hs(X,po.partKey,"textStyle",Ba))}bo(X)},kn=vn,jV=hD(Xe[0].style),KV=kn?_0.find(X=>X.id===kn)?.name??kn:"",VV=()=>{S(!1),kn&&(I.write(xD({saved:I.saved,old:I.old,styleId:kn,values:EC(Xe[0].style)}),!0),GV())};return sr(VCe,{sectionName:O?.label??k.type,onBack:t,tabs:X=>te(Ar,{motion:Re,body:X}),textEditor:b("words")?te("div",{ref:y,className:"sf-part-text",children:hp?te(Uj,{text:ri,onTextChange:X=>yo(ti?{text:X,hidden:ta}:X),multiline:Xm(_),markup:_!=="plainText",styled:!1,style:Xe[0].style,base:Xe[0].base,setValue:dc,colors:Fr,placeholder:KP(TB(C))??void 0,ariaLabel:c(Fa),head:fc,typedOnCanvas:l===R}):_?ti?fc:null:te(PCe,{field:C,name:o,value:No,onChange:yo,id:`sf-part-${e}-${o}`})}):void 0,children:[V&&b("sourceNote")&&te(kI,{source:V,slug:ac(P),menuId:SI(P)}),Cn&&te(Xj,{style:b("style")?{value:vn??"",options:Qj(_0),onChange:X=>VI(X||null),changed:zV>0,onEditStyles:r,onUpdateStyle:kn&&jV?()=>S(!0):void 0}:void 0,font:b("font")?{value:at.font??"",styleValue:li(Xe[0].base.fontKey)?.label,options:Na.map(X=>({label:X.label,value:X.key})),onChange:X=>ft("font",X||null)}:void 0,italic:b("italic")?{value:at.italic,styleValue:JCe(u,vn),onChange:X=>ft("italic",X??null)}:void 0,cells:yI(Xe[0].style,Xe[0].base,dc,wI(v)).filter(X=>b(X.key)),align:b("align")?ZCe(at,Xe[0].base.align,wI(v),ft):void 0,letterCase:b("letterCase")?{value:at.case??"",styleValue:Xe[0].base.case,onChange:X=>ft("case",X||null)}:void 0}),w&&kn&&te(Gj,{styleName:KV,onCancel:()=>S(!1),onConfirm:VV}),Cn&&Do===null&&b("fixedSizeHint")&&te(aK,{children:c("Fixed size \u2014 the site\u2019s Text setting doesn\u2019t resize this.")}),sK(KCe,X=>b(X)&&(X==="words"||(X==="sourceNote"?!!V:X==="fixedSizeHint"?Cn&&Do===null:Cn)))&&te(Xs,{})]})}function ZCe(e,o,t,r){let a=HCe("align",t),n=$N(e,t);return{value:e[a]??"",styleValue:n??o,onChange:s=>r(a,s||null)}}function JCe(e,o){return!o||!Array.isArray(e)?!1:e.find(t=>t?.id===o)?.values?.italic===!0}var rK={fontKey:"",sizePx:16,weight:400,lineRatio:1.4,letterEm:0,align:"left",case:"none",paddingPx:0};import{jsx as Rr,jsxs as JP,Fragment as ave}from"react/jsx-runtime";import{useCallback as nve,useRef as sve,useState as op}from"react";import{InspectorIconButton as ive}from"efficient-easel/chrome";import{useEasel as lve}from"efficient-easel/easel";import{PopupMenu as cve,PopupMenuItem as dve,PopupMenuLabel as RI}from"efficient-shell/ui";import{CopyToPageIcon as fve}from"efficient-easel/icons";import{useEaselSession as pve}from"efficient-easel/screen/lib/session-context";import{cloneNodeWithFreshIds as uve}from"efficient-easel/screen/lib/document/section-doc";import{FOOTER_TYPE as mve}from"efficient-easel/draw";import{isBackendError as nc}from"efficient-easel/screen/lib/backend-error";import{isEfficientBackend as gK}from"efficient-easel/screen/lib/session";var TI=wu(),VP=TI.set;function PI(e,o){VP(e,o)}function EI(e,o){let t=TI.get(e);VP(e,o??(t==="live"?"changed":t))}function _I(e,o){VP(e,o??"live")}function lK(e){return TI.get(e)}function cK(e){return TI.use(e)}function dK(e,o){return e==="live"&&o?"changed":e}function YP({live:e,onPress:o,busy:t=!1,pinnedUnpublished:r=!1,goingLive:a}){let n=e==="live"&&!r,s=e==="changed"?c("Changes not live yet"):e==="never"?c("Never published"):r?c("Header and footer not live yet"):e==="live"?c("Everything is live"):null;return{label:c("Publish"),tooltip:e==="never"?c("Put this page on your site"):c("Put your changes on your site"),status:s,quiet:n?{label:c("Published"),reason:c("Everything is live")}:null,...a&&a.length?{goingLive:a}:{},onPress:o,busy:t}}function fK(e){return e.map(o=>o.change==="take_down"?c("{name} (taken down)",{name:o.name}):o.name)}var pK="SharedSection",QCe=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i,Qf=e=>{let o=e?.content;return Array.isArray(o)?o:[]},ep=e=>{let o=e?.props?.id;return typeof o=="string"?o:void 0};function uK(e){if(e?.type!==pK)return null;let o=e.props?.section;return typeof o=="string"&&QCe.test(o)?o.toLowerCase():null}function mK(e){let o=[];for(let t of Qf(e)){let r=uK(t),a=ep(t);r&&a&&o.push({refId:a,section:r})}return o}function OI(e){let o=Qf(e)[0];return o&&typeof o=="object"&&ep(o)?o:null}function eve(e,o){return{type:pK,props:{id:e,section:o}}}function hK(e,o){let t=new Map,r=new Set,a=!1,n=Qf(e).map(s=>{let i=uK(s),l=ep(s);if(!i||!l||r.has(i))return s;let d=OI(o.get(i)),f=ep(d??void 0);return!d||!f||t.has(f)?s:(r.add(i),t.set(f,{section:i,refId:l,reference:s}),a=!0,d)});return{working:a?{...e,content:n}:e,held:t}}function xK(e,o,t){let r=new Map,a=!1,n=Qf(e).map(s=>{let i=ep(s),l=i?o.get(i):void 0,d=l?t.get(l.section):void 0;if(!l||!d||r.has(l.section))return s;let f=Qf(d).slice(1),u=OI(d);return r.set(l.section,u===s?d:{...d,content:[s,...f]}),a=!0,l.reference??eve(l.refId,l.section)});return{page:a?{...e,content:n}:e,docs:r}}function ZP(e){return!!(e?.publish&&e.liveState)}function ove(e,o){if(!ZP(e))return;let{versions:t,nameVersion:r,restoreVersion:a,previewVersion:n}=e;if(!(!t||!r||!a||!n))return{list:()=>t.call(e,o),name:(s,i)=>r.call(e,s,i,o),restore:(s,i)=>a.call(e,s,i??{},o),preview:s=>n.call(e,s,o)}}function tve(e,o){return async(t,r)=>{try{await SR()}catch(a){throw new Error(c("A change waiting to go live could not be saved."),{cause:a})}return(await e.publish(o)).state==="live"?cm({state:"live",changes:[]}):ma(0),{version:r??null}}}function XP(e,o,t){let r=o?{siteId:o}:void 0;return{resolve:a=>e.load({slug:a,...r}).then(n=>(n&&(PI(n.id,n.live),w1(n.id,n.videoFrames)),n)),saveLayout:(a,n,s,i)=>e.save(a,{layout:n},{version:s,clientId:i??""}).then(l=>(EI(a,l.live),C1(a,l.videoFrames),ma(),l)),rereadVersion:e.version?a=>e.version(a):void 0,publish:ZP(t)?tve(t,r):e.publish?(a,n)=>e.publish(a,n?{version:n}:void 0).then(s=>(_I(a,s.live),s)):void 0,listPages:()=>e.list(r),createPage:e.create?a=>e.create({...a,...r}):void 0,deletePage:e.remove?(a,n)=>e.remove(a,n):void 0}}function rve(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=lK(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,C)=>{F?f.set(T,{section:T,title:l.get(T)?.title??"",problem:F,holder:C}):f.delete(T)},S=T=>T&&typeof T=="object"&&!Array.isArray(T)?T:{},v=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)}`,k=(T,F,C,R)=>{let P=S(F);l.set(T,{layout:P,version:C,savedJson:JSON.stringify(P),title:R})},L={state:()=>p,subscribe:T=>(m.add(T),()=>{m.delete(T)})},O={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)=>{k(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(R=>R.section===T.id))return null;let F=OI(S(T.layout)),C=typeof F?.props?.id=="string"?F.props.id:null;return!F||!C||!F.type?null:(k(T.id,T.layout,T.layout_updated_at,T.title),d.set(C,{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 C=l.get(F.id);C&&(C.title=F.title);let R=f.get(F.id);R&&f.set(F.id,{...R,title:F.title})}I({})}},D=async(T,F)=>{for(let[C,R]of T){let P=l.get(C),_=JSON.stringify(R);if(!(!P||_===P.savedJson||f.get(C)?.problem==="lock"))try{let W=await e.save(C,{layout:R},{version:P.version,clientId:F??""});EI(C,W.live),P.layout=R,P.version=W.version,P.savedJson=_,w(C,null)}catch(W){nc(W,"changed-elsewhere")?w(C,"conflict"):nc(W,"lock-taken")?w(C,"lock",W.holder??void 0):w(C,"save")}}T.size&&ma(),I({})};return{resolve:async T=>{if(KT(T===xr?null:L),ob(T===xr?null:O),l=new Map,d=new Map,f=new Map,u=new Map,T===xr)return t.resolve(T);let F=!1,[C,R]=await Promise.all([t.resolve(T),e.load({slug:xr,...o}).catch(()=>(F=!0,null))]);if(R&&!Jc(C?.layout)){PI(R.id,R.live);let V=S(R.layout);n={id:R.id,layout:V,version:R.version,savedJson:""}}else n=null;if(i=!1,!C)return I({conflict:null,saveFailed:!1,loadFailed:F}),C;let P=S(C.layout),_=mK(P),W=await Promise.all(_.map(V=>e.load({id:V.section,...o}).catch(()=>null)));_.forEach((V,de)=>{let ve=W[de];ve?(PI(ve.id,ve.live),k(V.section,ve.layout,ve.version,"")):(l.delete(V.section),f.set(V.section,{section:V.section,title:"",problem:"load"}))});let G=hK(P,b());if(d=G.held,!n)return d.size&&s.add(C.id),I({conflict:null,saveFailed:!1,loadFailed:F}),d.size?{...C,layout:G.working}:C;let Z=g1(G.working,n.layout);return n.savedJson=JSON.stringify(eb(Z,n.layout).chrome),s.add(C.id),I({conflict:null,saveFailed:!1,loadFailed:!1}),{...C,layout:Z}},saveLayout:async(T,F,C,R)=>{if(!v(T))return t.saveLayout(T,F,C,R);let P=n,_=P?eb(F,P.layout):{page:F,chrome:null},W=xK(_.page,d,b()),G=await t.saveLayout(T,W.page,C,R);if(await D(W.docs,R),!P)return G;let Z=JSON.stringify(_.chrome);if(!_.chrome||Z===P.savedJson||p.lockHolder)return G;try{let V=await e.save(P.id,{layout:_.chrome},{version:P.version,clientId:R??""});EI(P.id,V.live),ma(),P.layout=_.chrome,P.version=V.version,P.savedJson=Z,i=!0,I({conflict:null,saveFailed:!1})}catch(V){nc(V,"changed-elsewhere")?I({conflict:V.conflict??{savedBy:"",savedByYou:!1,secondsAgo:0}}):nc(V,"lock-taken")?I({lockHolder:V.holder??{name:"",secondsSinceSeen:0,secondsSinceHeld:0}}):I({saveFailed:!0})}return G},publish:t.publish?async(T,F)=>{let C=await t.publish(T,F),R=n;if(R&&v(T)&&!a&&e.publish&&h()&&!p.lockHolder){let P=await e.publish(R.id,R.version?{version:R.version}:void 0);_I(R.id,P.live),P.version!==null&&(R.version=P.version),i=!1,I({})}if(v(T)&&!a&&e.publish)for(let[P,_]of l){if(f.get(P)?.problem==="lock")continue;let W=await e.publish(P,_.version?{version:_.version}:void 0);_I(P,W.live),W.version!==null&&(_.version=W.version)}return C}:void 0,lock:r?{claim:async(T,F,C)=>{let R=await r.claim(T,F,C);if(!v(T))return R;let P=n;if(P)try{await r.claim(P.id,F,!1),p.lockHolder&&I({lockHolder:null})}catch(_){nc(_,"lock-taken")&&I({lockHolder:_.holder??{name:"",secondsSinceSeen:0,secondsSinceHeld:0}})}for(let _ of l.keys())try{await r.claim(_,F,!1),f.get(_)?.problem==="lock"&&w(_,null)}catch(W){nc(W,"lock-taken")&&w(_,"lock",W.holder??void 0)}return l.size&&I({}),R},release:async(T,F)=>{if(await r.release(T,F),!v(T))return;let C=n;C&&!p.lockHolder&&await r.release(C.id,F).catch(()=>{});for(let R of l.keys())f.get(R)?.problem!=="lock"&&await r.release(R,F).catch(()=>{})}}:void 0,pinnedChrome:L}}function AI(e){let o=(t,r,a)=>e.save(t,r.layout?{...r,layout:VO(r.layout)}:r,a);return new Proxy(e,{get(t,r){if(r==="save")return o;let a=Reflect.get(t,r,t);return typeof a=="function"?a.bind(t):a}})}function Juo(e,o,t){return e.update(o,YO(t))}function Quo(e,o=Ge(),t=lT(),r={}){let a=gK(o),n=e?{siteId:e}:void 0,s=a?!!e:!0,i=o.site.update,l=a&&t.commerce&&t.service,d=!!r.editsPinnedInPlace&&l,f=ZP(o.site)?o.site:void 0,u=AI(o.pages),p=XP(u,e,f),m=d?rve(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,...IK(p.resolve),lock:o.lock,...m,site:s?()=>o.site.get(n):void 0,siteLiveState:f?()=>f.liveState(n):void 0,siteVersions:ove(f,n),updateSite:s&&i?h=>i(h,n):void 0,previewHref:o.preview?h=>o.preview.href(h):void 0}}function emo(e,o=Ge(),t=lT()){let r=gK(o),a=o.templates,n=a?AI(a.pages(e)):{list:()=>Promise.reject(new Error(qP)),load:()=>Promise.reject(new Error(qP)),save:()=>Promise.reject(new Error(qP))};return{capabilities:{canPublish:!1,hasSiteSettings:!1,hasSiteTheme:!1,placeholderFrames:!0,mediaEditing:!1,pageCreationInAdminForm:!n.create,canDeletePagesInline:!!n.remove,hasEditLock:!1,hasEditGuard:!1,hasPinnedChrome:r&&t.commerce&&t.service,editsPinnedInPlace:!1,explainsSiteSettings:r,hasSiteRecord:!1,canEditSiteRecord:!1,hasPreviewLink:!1,hasCatalog:r&&t.commerce,hasForms:r&&t.service,hasBlog:!!o.blog&&t.service,offersCommerce:t.commerce,offersService:t.service},...XP(n,void 0),...IK(XP(n,void 0).resolve),publish:void 0,templateName:a?()=>a.get(e).then(s=>s.name):void 0}}function IK(e){return{resolve:o=>(KT(null),ob(null),e(o))}}var qP="This editor's backend has no website templates.";function hve(e,o,t){let r=uve(e,void 0,o);return t?.(r)??r}function yK({node:e,currentSlug:o,siteId:t,tokenRef:r,runAuthed:a,onNotify:n}){let[s,i]=op(!1),[l,d]=op(null),f=pve(),u=lve(O=>O.config.components),[p,m]=op(!1),[h,I]=op(null),w=sve(null),[S,v]=op(null),b=nve(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 O=w.current?.getBoundingClientRect();O&&v({top:O.bottom+6,right:Math.max(8,window.innerWidth-O.right)}),d(null),m(!1),b(),i(!0)},k=(l??[]).filter(O=>O.slug!==o),L=async O=>{if(h)return;I(O.slug);let D=hve(e,u,f.documentHooks?.storedNode),T=await a(()=>xve(Ge(f).pages,O,D));I(null),i(!1),n?.(T?c("Duplicated to \u201C{name}\u201D",{name:O.label}):c("Couldn\u2019t duplicate the section \u2014 please retry"),T?"success":"error")};return JP(ave,{children:[Rr("span",{"data-menu-toggle":!0,style:{display:"contents"},children:Rr(ive,{buttonRef:w,label:c("Duplicate to another page"),hasPopup:"menu",expanded:s,onClick:y,children:Rr(fve,{size:15})})}),s&&S&&Rr(cve,{portal:!0,style:{top:S.top,right:S.right},onClose:()=>i(!1),children:JP("div",{role:"menu","aria-label":c("Duplicate to page"),children:[Rr(RI,{children:c("Duplicate to page")}),p?Rr(RI,{children:c("Couldn\u2019t load pages")}):l===null?Rr(RI,{children:c("Loading\u2026")}):k.length===0?Rr(RI,{children:c("No other pages")}):k.map(O=>JP(dve,{role:"menuitem",disabled:h!==null,onClick:()=>{L(O)},children:[Rr("span",{className:"min-w-0 flex-1 truncate",children:O.label}),h===O.slug?Rr("span",{className:"shrink-0 text-xs",children:c("Copying\u2026")}):O.draft&&Rr("span",{className:"shrink-0 text-xs",children:c("draft")})]},O.id))]})})]})}async function xve(e,o,t){let r=AI(e),a=await r.load({id:o.id});if(!a)throw new Error(`Page "${o.slug}" no longer exists.`);let n=a.layout??{},s=Array.isArray(n.content)?[...n.content]:[],i=s.findIndex(l=>l?.type===mve);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 zve}from"efficient-easel/screen/components/ScreenDocumentContext";import{useSectionOps as Gve}from"efficient-easel/screen/lib/document/use-section-ops";import{SELECTION_MODE as kho,isSelectionMode as r0}from"efficient-easel/screen/lib/screen-parts";import{usePreviewParts as jve}from"efficient-easel/draw/client";import{jsx as tp,jsxs as gve}from"react/jsx-runtime";import{SettingsDrill as Ive}from"efficient-easel/panel";import{UiIcon as yve}from"efficient-easel/draw/client";var bve="Not shown on the page";function Sve({part:e,onOpen:o}){return tp(Ive,{name:c(e.label),preview:e.offPage?c(bve):e.preview||c("Empty"),offPage:e.offPage,status:e.hidden?tp("span",{className:"sf-entry-eye",role:"img","aria-label":c("Hidden on the page"),children:tp(yve,{name:"eye-off",size:14})}):void 0,onOpen:()=>o(e.key)})}function QP(e){return e.filter(o=>!o.identifier)}function bK({parts:e,onOpen:o,heading:t=!0}){let r=QP(e);return r.length?gve("div",{className:"sf-entries",children:[t?tp("h3",{className:"sf-entries-head",children:c("Text")}):null,r.map(a=>tp(Sve,{part:a,onOpen:o},a.key))]}):null}import{HEADER_TYPE as Kve,ROOT_ZONE as LK}from"efficient-easel/draw";import{HEADER_TYPE as vt,FOOTER_TYPE as Qe,newNodeId as wve}from"efficient-easel/draw";function LI(){return{type:vt,props:{id:wve(vt)}}}var SK=[{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"}],Cve=SK.filter(e=>e.type!=="FooterLogo"&&e.type!=="FooterGroup"),vve="FooterGroup",wK="blocks";function CK(e){return e===Qe?SK:e===vve?Cve:null}function FI(){let e=(o,t)=>({type:o,props:{id:`${o}-${crypto.randomUUID()}`,...t}});return[e("FooterLogo",{widthPct:100,align:"left",tagline:""}),e("FooterEmailSignup",{...VR}),e("FooterPayment",{...mm})]}function e0(e){switch(e?.type){case Je:case ze:return c("On every page");case vt:case Qe:return c("On every page \xB7 old style");default:return null}}var vK=()=>null,kK=()=>c("Changed on every page");function BI(e,o){let t=oO(e,o);if(t)return t;let r=f1(e,o);if(!r)return null;let a=r.group===Je;return r.why==="type"?a?c("The header cannot take another one of these"):c("The footer cannot take another one of these"):a?c("The header holds at most 3 sections"):c("The footer holds at most 6 sections")}import{jsx as NI,Fragment as Tve,jsxs as Pve}from"react/jsx-runtime";import{useState as Eve}from"react";import{createNode as _ve,newId as Ove}from"efficient-easel/data";import{useEasel as Ave}from"efficient-easel/easel";import{Banner as Rve,Button as o0}from"efficient-shell/ui";import{useScreenDocument as Lve}from"efficient-easel/screen/components/ScreenDocumentContext";var kve=["FooterPayment"];function TK(e,o){let{id:t,...r}=e.props;for(let a of Br(e))r[a]=r[a].map(n=>TK(n,o));return o(e.type,r)}var rp=(e,o)=>{if(!kve.includes(e.type))return null;bg();let t=cn(e.type);return t?As({type:e.type,props:{...e.props}},t).nodes.map(r=>TK(r,o)):null};function PK(){let{appState:e,dispatch:o,config:t}=Ave(f=>f),{readOnly:r}=Lve(),[a,n]=Eve(!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)=>_ve(t,f,u),d=()=>{let f=bf(i,l,Ove(ze),rp);o({type:"setData",data:u=>({...u,content:[...vu(u.content,f)]}),recordHistory:!0}),n(!1)};return NI(Rve,{tone:"info",title:c("This footer uses the old layout"),action:a?Pve(Tve,{children:[NI(o0,{variant:"primary",size:"sm",onClick:d,children:c("Switch now")}),NI(o0,{variant:"secondary",size:"sm",onClick:()=>n(!1),children:c("Cancel")})]}):NI(o0,{variant:"secondary",size:"sm",onClick:()=>n(!0),children:c("Switch to Box footer")}),children:c("Build this footer out of Boxes and blocks, like a page: the same menus, signup, social links and logo, with the copyright as a Legal Line. Your current footer is kept.")})}import{jsx as t0,jsxs as Fve}from"react/jsx-runtime";import{InspectorUpLevel as EK}from"efficient-easel/chrome";function _K({nodeId:e,part:o,sectionName:t,onUpToSection:r}){let{select:a}=hI(),n=tc(e,o,"picture");return Fve("div",{children:[o!=="media"?t0(EK,{inline:!0,name:c(_a.media),onSelect:()=>a(Ps(e,"media"))}):t0(EK,{inline:!0,name:c(t),onSelect:r}),t0(Ar,{part:o,motion:n,itemWord:c(_a[o])})]})}import{HintsToggle as Vve,SettingsSwitch as Yve,hintsFoldClass as qve}from"efficient-easel/panel";import{useHints as Xve}from"efficient-easel/screen/lib/hints";var BK={kind:"header"},n0={kind:"website"},NK={kind:"website",tab:hl,revealPageGroup:!0},DK={kind:"chat"},MK={kind:"social"},ap="Part";function Zve(e){return c("Part of {name}",{name:c(e)})}function Jve(e,o,t){let r=e.describeNode(o);return{name:t,kindLabel:r?Zve(r.label):c(ap)}}function Qve(e){switch(e){case"Header":return{title:c("Header settings belong to a website."),own:c("Each website created from this template sets its own header afterwards.")};case"Appearance":return{title:c("Appearance settings belong to a website."),own:c("Each website created from this template sets its own appearance afterwards.")};case"Live chat":return{title:c("Live chat settings belong to a website."),own:c("Each website created from this template sets its own live chat afterwards.")};case"Social link":return{title:c("Social link settings belong to a website."),own:c("Each website created from this template sets its own social link afterwards.")};default:return{title:c("{what} settings belong to a website.",{what:e}),own:c("Each website created from this template sets its own {what} afterwards.",{what:e.toLowerCase()})}}}function HK({what:e}){let o=Qve(e);return Sn("div",{className:"sf-note",children:[Ne("p",{children:Ne("strong",{children:o.title})}),Sn("p",{children:[c("A template is a blueprint \u2014 it has no website of its own, so there is nothing here to change.")," ",o.own]})]})}function a0(e){let o=ef[e];return{name:_a[e],kindLabel:ap,icon:o,head:(t,r)=>{if(t.kind!==o)return null;let a=r.describeNode(t.nodeId);if(!a)return null;let n=FK({name:c(hx(e,a.props)),tier:"part",of:c(a.label)},{partOf:({name:s})=>c("Part of {name}",{name:s})});return{name:n.name,kindLabel:n.kind}},render:(t,r)=>t.kind===o?Ne(_K,{nodeId:t.nodeId,part:e,sectionName:r.describeNode(t.nodeId)?.label??"Hero",onUpToSection:()=>r.onSelectNode(t.nodeId)}):null}}var eke={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(Lh,{initialTab:e.tab,revealPageGroup:e.revealPageGroup,themeFromDocument:!o.capabilities.hasSiteTheme,tokenRef:o.tokenRef,siteId:o.siteId,onNotify:o.onNotify},e.tab??"")},chat:{name:"Live chat",kindLabel:"Site settings",icon:"chat",render:()=>Ne(wj,{})},social:{name:"Social links",kindLabel:"Site settings",icon:"social",render:()=>Ne(Ej,{unavailable:Ne(HK,{what:"Social link"})})},ticker:{name:$s,kindLabel:ap,icon:"ticker",head:(e,o)=>e.kind==="ticker"?Jve(o,e.heroId,c($s)):null,render:e=>Ne(Mj,{heroId:e.kind==="ticker"?e.heroId:""})},heroMedia:a0("media"),heroImage:a0("image"),heroImage2:a0("image2"),part:{name:ap,kindLabel:ap,icon:"Text",head:(e,o)=>{if(e.kind!=="part")return null;let t=o.describeNode(e.nodeId);if(!t)return null;let{key:r,row:a}=Cr(e.propKey),n=a?il(t.fields[r],a):t.fields[r],s=Gl(t.type),i=s?Cc(s,e.propKey):null,l=s&&i?s[i].label:MM[e.propKey],d=l?c(l):OB(c(Sd(oh(n??{},r))),a),f=FK({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(iK,{nodeId:e.nodeId,propKey:e.propKey,onBack:()=>o.onSelectNode(e.nodeId),onEditStyle:o.onOpenSiteStyles}):null}},oke=new Set(["header","website","chat"]);function tke(e,o){if(e==="selection")return null;let t=eke[e];return oke.has(e)&&!o.hasSiteSettings?{...t,kindLabel:"Not part of a template",render:()=>Ne(HK,{what:t.name})}:t}function WK({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}=zve(),{rows:I}=Fd(),w=I?.find(le=>le.slug===f)??null,S=Nve(),v=Object.keys(S.fields).some(le=>!le.startsWith("_")&&!Rd.includes(le)),{websiteName:b}=fe(),y=Gve({readOnly:m}),{select:k}=jve(),{selectedItem:L,getItemById:O,getSelectorForId:D,config:T,appState:F}=Bve(le=>le),C=$ve(T,L?{type:L.type,props:L.props}:null),R=L?HB(C??T.components[L.type]?.fields,L.props):[],P=le=>T.components[le]?.label??le,_=L?D(L.props.id):void 0,W=tke(e.kind,i),G=Uve(),Z={capabilities:i,tokenRef:l,hostPanels:G.chrome?.panels,describeNode:le=>{let Ce=O(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=xj({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?_&&_.zone!==LK?c("Block"):c("Section"):de.kindLabel),Oe=W?W.icon:L?L.type:"page",_e=r0(e)&&L?Xf(L.type):null,Ae=!!L&&!!_&&_.zone===LK&&L.type!==Qe&&L.type!==Kve,Re=BI(F?.data,L),rt=()=>{Re||_&&y.duplicateComponent(_.zone,_.index)},Yo=()=>{_&&(y.removeComponent(_.zone,_.index),y.select(null))},qo=L?T.components[L.type]?.defaultProps?.previewHover:void 0,yo=r0(e)&&!!L&&!!_&&qo!==void 0,No=yo&&L.props.previewHover===!0,Eo=()=>{!L||!_||y.replaceComponent(_.zone,_.index,{...L,props:{...L.props,previewHover:!No}})},{shown:ue,setShown:no}=Xve(),z=!!(W||L||v);return Sn("div",{className:`es-sidepanel es-sidepanel--right sf-panel sf-panel--right ${qve(ue)}`.trim(),children:[Ne(Mve,{icon:Ne(Ys,{type:Oe,size:15}),name:ve,kind:oe,actions:!a&&r0(e)&&L&&L.type!==Qe?Sn(OK,{children:[Ne(AK,{label:c("Duplicate section"),title:Re??void 0,disabled:Re!==null,onClick:rt,children:Ne(Hve,{size:15})}),Ae&&i.hasSiteSettings&&Ne(yK,{node:L,currentSlug:f,siteId:u??void 0,tokenRef:l,runAuthed:p,onNotify:n}),Ne(AK,{label:c("Remove section"),danger:!0,onClick:Yo,children:Ne(Wve,{size:15})}),s?Ne(RK,{side:"right",onHide:s,divider:!0}):null]}):s?Ne(RK,{side:"right",onHide:s}):void 0}),yo&&Sn("div",{className:"sf-preview-pin",children:[Sn("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(Yve,{checked:No,onChange:Eo,ariaLabel:c("Preview hover state")})]}),Sn("div",{className:"sf-insp-body es-insp-body sf-scroll",children:[W?W.render(e,Z):L?Sn(OK,{children:[L.type===Qe&&i.hasSiteSettings&&Ne(PK,{}),Ne(tR,{children:Ne(Ar,{entries:Ne(bK,{parts:R,heading:!1,onOpen:le=>k(qr(L.props.id,le))}),entryCount:QP(R).length,itemWord:ve})}),_e&&Ne(kI,{source:_e,slug:ac(L?.props),menuId:SI(L?.props)})]}):v?Ne(Ar,{omit:Rd}):Ne(Dve,{variant:"none",icon:!1,message:c("Select a section or block to edit it.")}),z&&Ne(Vve,{shown:ue,onChange:no,label:c("Show hints")})]})]})}import{jsx as x,jsxs as B,Fragment as jK}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)"},s0="repeating-linear-gradient(135deg,var(--sf-thumb-hatch1) 0,var(--sf-thumb-hatch1) 5px,var(--sf-thumb-hatch2) 5px,var(--sf-thumb-hatch2) 10px)";function K({w:e,h:o,tone:t="dark",r=2,style:a}){return x("div",{style:{width:e,height:o,borderRadius:r,background:Po[t],flex:"none",...a}})}var rke={Hero:"hero",HeroSingle:"herosingle",IntroBleed:"intro",Collections:"collections",AlloyWheelsListing:"wheelslisting",CatalogFilterBar:"catalogfilterbar",ProductGrid:"productgrid",FitmentFinder:"fitmentfinder",Gallery:"gallery",GalleryB:"gallerygrid",SpecStrip:"specstrip",ProductHero:"producthero",SpecTable:"spectable",ProcessSteps:"processsteps",DetailRows:"detailrows",FitmentTable:"fitmenttable",CompatibleTyres:"compatibletyres",TyreSizes:"tyresizes",TyreFitment:"tyrefitment",EuTyreLabel:"eutyrelabel",RelatedProducts:"productgrid",BundleOffer:"bundleoffer",OrderSummary:"ordersummary",DeliveryOptions:"deliveryoptions",PaymentBadges:"paymentbadges",CheckoutCTA:"checkoutcta",Manifesto:"manifesto",ParagraphsA:"paragraphs",Prose:"prose",StatsParagraph:"statsparagraph",Chart:"chart",Mockup:"mockup",Footprint:"footprint",Timeline:"timeline",TimelineTrack:"timelinetrack",TitleWithButtons:"titlewithbuttons",Split:"split",Cards:"cards",FAQ:"faq",Testimonials:"testimonials",Masthead:"masthead",Breadcrumb:"breadcrumb",CategoryBar:"categorybar",FeaturedCover:"featuredcover",LongRead:"longread",ArticleBody:"articlebody",Series:"series",Subscribe:"subscribe",SubscribeBlogs:"subscribe",Events:"events",DocMasthead:"docmasthead",DocTabs:"doctabs",DocBody:"docbody",DocMetaCards:"docmetacards",Banner:"banner",Stats:"stats",KeyFeatures:"keyfeatures",Logos:"logos",Ticker:"ticker",Countdown:"countdown",Reviews:"reviews",SubmitBuild:"submitbuild",ReviewForm:"reviewform",Form:"form",AppointmentBooking:"appointmentbooking",ContactRouting:"contact",ContactLocations:"contactlocations",CityPictures:"citypictures",CityMaps:"citymaps",Header:"header",Footer:"footer",SectionHeader:"sectionheader",Grid:"grid",Flex:"blanksection",Spacer:"spacer",Divider:"divider",CustomHTML:"customhtml",Heading:"heading",Text:"text",ImageBlock:"image",ButtonBlock:"button",MenuBlock:"menu",EmailFormBlock:"emailform",SocialLogosBlock:"sociallogos",PaymentLogosBlock:"paymentlogos",LegalLineBlock:"legalline",SearchBlock:"search",CartBlock:"cart",CountrySwitchBlock:"countryswitch"},J={position:"absolute",inset:0},g={ink:"var(--sf-thumb-ink)",ink2:"var(--sf-thumb-ink-2)",inkSoft:"var(--sf-thumb-ink-soft)",inkSoft2:"var(--sf-thumb-ink-soft-2)",paper:"var(--sf-thumb-paper)",paper2:"var(--sf-thumb-paper-2)",warm:"var(--sf-thumb-warm)",rust:"var(--sf-thumb-rust)",onInk:"var(--sf-thumb-on-ink)",text:"var(--sf-thumb-scene-text)",muted:"var(--sf-thumb-scene-muted)",rule:"var(--sf-thumb-scene-rule)",mark1:"var(--sf-thumb-mark-1)",mark2:"var(--sf-thumb-mark-2)",card:"var(--sf-thumb-card)",scrim:"var(--sf-thumb-scrim)"},qe=(e,o,t=160)=>({background:`linear-gradient(${t}deg,${e},${o})`});function La({size:e,style:o}){let t=Math.max(2,Math.round(e*.13)),r=(a,n,s)=>({position:"absolute",inset:a,background:n,borderRadius:t,...s?{mixBlendMode:s}:null});return B("span",{style:{position:"absolute",display:"block",width:e,height:e,...o},children:[x("span",{style:r("8% 26% 30% 6%",g.mark1)}),x("span",{style:r("26% 6% 8% 30%",g.mark2,"multiply")})]})}function MI({children:e}){return x("span",{style:{fontSize:"4.64cqw",fontWeight:700,letterSpacing:"0.06em",textTransform:"uppercase",color:g.muted},children:e})}function $K({over:e,overTone:o,head:t,headSize:r=11.5,cta:a,ctaBg:n,ctaFg:s,tone:i}){return B(jK,{children:[e&&x("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.16em",fontWeight:700,color:o},children:e}),x("span",{style:{fontSize:r,lineHeight:1.15,fontWeight:700,maxWidth:"78%",color:i},children:t}),a&&x("span",{style:{alignSelf:"flex-start",fontSize:"3.65cqw",letterSpacing:"0.12em",fontWeight:700,padding:"4px 8px",borderRadius:2,marginTop:2,background:n,color:s},children:a})]})}function i0({name:e,price:o}){return B("div",{style:{display:"flex",flexDirection:"column",gap:2,minWidth:0},children:[x("div",{style:{flex:1,minHeight:0,borderRadius:3,position:"relative",overflow:"hidden",...qe(g.paper,g.paper2,150)},children:x(La,{size:34,style:{left:"50%",top:"50%",transform:"translate(-50%,-50%)"}})}),x("span",{style:{fontSize:"3.65cqw",fontWeight:600,color:g.text},children:e}),x("span",{style:{fontSize:"3.65cqw",color:g.muted},children:o})]})}function Ra({k:e,v:o,ok:t}){return B("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",gap:6,padding:"3.5px 2px",borderBottom:`1px solid ${g.rule}`,fontSize:"3.98cqw",color:g.muted},children:[x("span",{children:e}),B("span",{style:{display:"flex",gap:6,alignItems:"center"},children:[x("b",{style:{color:g.text,fontWeight:700},children:o}),t&&x("span",{style:{color:g.rust,fontWeight:700},children:"\u2713"})]})]})}function We({title:e,children:o}){return B("div",{style:{...J,background:g.card,padding:"9px 10px",display:"flex",flexDirection:"column",gap:6},children:[x(MI,{children:e}),o]})}function UK({size:e=14}){return x("span",{style:{width:e,height:e,borderRadius:"50%",flex:"none",display:"block",background:`linear-gradient(150deg,${g.mark1},${g.mark2})`}})}function l0({filled:e=5,size:o=6}){return B("span",{style:{fontSize:o,letterSpacing:"0.06em",color:g.rust,lineHeight:1},children:["\u2605".repeat(e),x("span",{style:{color:g.mark1},children:"\u2605".repeat(5-e)})]})}function np({n:e,label:o,tone:t=g.text}){return B("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:1,minWidth:0},children:[x("b",{style:{fontSize:"8.16cqw",lineHeight:1,color:t},children:e}),x("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.08em",textTransform:"uppercase",opacity:.62,color:t},children:o})]})}function Co({children:e,w:o}){return x("span",{style:{fontSize:"3.98cqw",lineHeight:1.45,color:g.muted,width:o,display:"block"},children:e})}function DI({label:e,w:o="100%",filled:t}){return B("div",{style:{width:o,display:"flex",flexDirection:"column",gap:2},children:[x("span",{style:{fontSize:"3.32cqw",letterSpacing:"0.08em",textTransform:"uppercase",color:g.muted},children:e}),x("span",{style:{height:9,borderRadius:3,border:`1px solid ${g.rule}`,background:t?g.paper:g.card}})]})}function zK({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 ake={wheelslisting:x(We,{title:"All wheels",children:x("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[["Ridge 19","20\xD79 +12","$365"],["Ridge 29","18\xD79 +20","$410"],["Ridge 39","17\xD78 \u221210","$455"]].map(([e,o,t])=>B("div",{style:{display:"flex",alignItems:"center",gap:6},children:[x("span",{style:{width:20,height:15,borderRadius:3,flex:"none",position:"relative",overflow:"hidden",...qe(g.paper,g.paper2,150)},children:x(La,{size:12,style:{left:"50%",top:"50%",transform:"translate(-50%,-50%)"}})}),x("b",{style:{flex:1,fontSize:"4.31cqw",color:g.text},children:e}),x("span",{style:{fontSize:"3.65cqw",color:g.muted},children:o}),x("b",{style:{fontSize:"4.31cqw",color:g.text,width:26,textAlign:"right"},children:t})]},e))})}),catalogfilterbar:B("div",{style:{...J,background:g.card,display:"flex",flexDirection:"column",justifyContent:"center",gap:7,padding:"0 11px"},children:[B("div",{style:{display:"flex",gap:4,alignItems:"center"},children:[["20 inch","6\xD7139.7","Black"].map(e=>B("span",{style:{fontSize:"3.65cqw",fontWeight:600,padding:"4px 7px",borderRadius:99,background:g.text,color:g.onInk,display:"flex",gap:4,alignItems:"center"},children:[e,x("span",{style:{opacity:.6},children:"\u2715"})]},e)),x("span",{style:{fontSize:"3.65cqw",color:g.rust,fontWeight:700},children:"Clear"})]}),B("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[x("span",{style:{fontSize:"3.65cqw",color:g.muted},children:"128 results"}),x("span",{style:{fontSize:"3.65cqw",color:g.muted,border:`1px solid ${g.rule}`,borderRadius:3,padding:"3px 6px"},children:"Sort: Price \u25BE"})]})]}),fitmentfinder:B("div",{style:{...J,padding:"10px 12px",display:"flex",flexDirection:"column",gap:6,justifyContent:"center",...qe(g.ink,g.inkSoft)},children:[x("span",{style:{fontSize:"5.31cqw",fontWeight:700,color:g.onInk},children:"Will it fit your rig?"}),B("div",{style:{display:"flex",gap:4},children:[["2021","Toyota","Hilux"].map(e=>B("span",{style:{flex:1,fontSize:"3.65cqw",color:g.text,background:g.card,borderRadius:3,padding:"5px 6px",display:"flex",justifyContent:"space-between"},children:[e," ",x("span",{style:{color:g.muted},children:"\u25BE"})]},e)),x("span",{style:{fontSize:"3.65cqw",fontWeight:700,letterSpacing:"0.08em",background:g.warm,color:g.ink,borderRadius:3,padding:"5px 7px"},children:"GO"})]})]}),compatibletyres:x(We,{title:"Tyres that suit",children:x("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(3,1fr)",gap:5,minHeight:0},children:[["Ridge Grappler","$489"],["Trail Grappler","$525"],["Terra Grappler","$438"]].map(([e,o])=>B("div",{style:{display:"flex",flexDirection:"column",gap:2,minWidth:0},children:[x("div",{style:{flex:1,minHeight:0,borderRadius:3,position:"relative",overflow:"hidden",background:g.ink},children:x("span",{style:{position:"absolute",left:"50%",top:"50%",transform:"translate(-50%,-50%)",width:26,height:26,borderRadius:"50%",border:`5px solid ${g.mark2}`,boxSizing:"border-box"}})}),x("span",{style:{fontSize:"3.32cqw",fontWeight:600,color:g.text,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},children:e}),x("span",{style:{fontSize:"3.32cqw",color:g.muted},children:o})]},e))})}),tyresizes:x(We,{title:"Available sizes",children:x("div",{style:{flex:1,display:"flex",flexWrap:"wrap",gap:4,alignContent:"center"},children:["265/65R17","285/70R17","265/60R18","275/55R20"].map((e,o)=>x("span",{style:{fontSize:"3.65cqw",fontWeight:600,padding:"5px 7px",borderRadius:3,border:`1px solid ${o===0?g.rust:g.rule}`,color:o===0?g.rust:g.text,background:o===0?g.paper:g.card},children:e},e))})}),tyrefitment:B(We,{title:"Will it fit your car?",children:[x("div",{style:{display:"flex",gap:3},children:["Make","Model","Year","Trim"].map(e=>B("span",{style:{flex:1,minWidth:0,fontSize:"3.32cqw",color:g.muted,background:g.paper,border:`1px solid ${g.rule}`,borderRadius:3,padding:"4px 5px",display:"flex",justifyContent:"space-between",gap:2,overflow:"hidden",whiteSpace:"nowrap"},children:[e," ",x("span",{style:{color:g.muted},children:"\u25BE"})]},e))}),x("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:2,justifyContent:"center",minHeight:0},children:[["265/65R17","Fits",!0],["285/70R17","Not your size",!1]].map(([e,o,t])=>B("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"baseline",gap:6,borderTop:`1px solid ${g.rule}`,paddingTop:3},children:[x("span",{style:{fontSize:"3.32cqw",fontWeight:600,color:g.text},children:e}),x("span",{style:{fontSize:"3.32cqw",fontWeight:t?700:400,letterSpacing:"0.06em",color:t?g.warm:g.muted},children:o})]},e))})]}),eutyrelabel:B("div",{style:{...J,background:g.card,padding:"9px 11px",display:"flex",gap:8,alignItems:"center"},children:[x("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:1.5},children:[["A","42%"],["B","56%"],["C","70%"],["D","84%"]].map(([e,o],t)=>B("div",{style:{display:"flex",alignItems:"center",gap:3},children:[x("span",{style:{width:o,height:6,borderRadius:"0 2px 2px 0",background:t===1?g.rust:g.mark1}}),x("span",{style:{fontSize:"3.32cqw",fontWeight:700,color:t===1?g.rust:g.muted},children:e})]},e))}),B("div",{style:{flex:"none",display:"flex",flexDirection:"column",gap:3,alignItems:"center"},children:[x("b",{style:{fontSize:"6.63cqw",lineHeight:1,color:g.text},children:"72"}),x("span",{style:{fontSize:"3.32cqw",letterSpacing:"0.08em",color:g.muted},children:"dB"})]})]}),bundleoffer:B("div",{style:{...J,background:g.paper,padding:"9px 11px",display:"flex",flexDirection:"column",gap:5,justifyContent:"center"},children:[x(MI,{children:"Buy it with"}),B("div",{style:{display:"flex",alignItems:"center",gap:5},children:[[0,1].map(e=>x("span",{style:{width:26,height:22,borderRadius:3,flex:"none",position:"relative",overflow:"hidden",background:g.card},children:x(La,{size:17,style:{left:"50%",top:"50%",transform:"translate(-50%,-50%)"}})},e)),x("span",{style:{fontSize:"5.69cqw",fontWeight:700,color:g.muted},children:"+"}),B("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:1},children:[x("span",{style:{fontSize:"3.65cqw",color:g.muted,textDecoration:"line-through"},children:"$1,024"}),x("b",{style:{fontSize:"6.02cqw",color:g.rust,lineHeight:1},children:"$899"})]})]})]}),checkoutcta:B("div",{style:{...J,display:"flex",alignItems:"center",justifyContent:"space-between",padding:"0 13px",gap:8,...qe(g.ink,g.ink2)},children:[B("div",{style:{display:"flex",flexDirection:"column",gap:2},children:[x("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.12em",color:g.warm,fontWeight:700},children:"READY TO ORDER"}),x("b",{style:{fontSize:"6.63cqw",color:g.onInk,lineHeight:1},children:"$1,956"}),x("span",{style:{fontSize:"3.65cqw",color:g.onInk,opacity:.65},children:"4 items \xB7 fitted free"})]}),x("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.12em",fontWeight:700,padding:"6px 10px",borderRadius:2,background:g.warm,color:g.ink,flex:"none"},children:"CHECKOUT"})]}),contact:x(We,{title:"Who do you need?",children:x("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[["Fitment help","the workshop"],["Order status","the front desk"],["Trade accounts","sales"]].map(([e,o])=>B("div",{style:{display:"flex",alignItems:"center",gap:5},children:[x("b",{style:{flex:1,fontSize:"4.31cqw",color:g.text},children:e}),x("span",{style:{fontSize:"3.65cqw",color:g.muted},children:o}),x("span",{style:{fontSize:"4.64cqw",color:g.rust,lineHeight:1},children:"\u203A"})]},e))})}),contactlocations:x(We,{title:"Find us",children:x("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(2,1fr)",gap:5,minHeight:0},children:[["Brisbane","7 Kerry Rd","Mon\u2013Sat"],["Townsville","12 Enterprise","Mon\u2013Fri"]].map(([e,o,t])=>B("div",{style:{border:`1px solid ${g.rule}`,borderRadius:4,padding:"5px 6px",display:"flex",flexDirection:"column",gap:1},children:[x("b",{style:{fontSize:"4.31cqw",color:g.text},children:e}),x("span",{style:{fontSize:"3.32cqw",color:g.muted},children:o}),x("span",{style:{fontSize:"3.32cqw",color:g.rust,fontWeight:700},children:t})]},e))})}),citypictures:x(We,{title:"Our studios",children:B("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:3,minHeight:0},children:[x("span",{style:{fontSize:"3.32cqw",letterSpacing:"0.12em",fontWeight:700,color:g.muted},children:"A \xB7 AMERICAS"}),x("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(3,1fr)",gap:4,minHeight:0},children:["Los Angeles","Miami","Toronto"].map(e=>B("div",{style:{position:"relative",minHeight:0},children:[x(K,{r:3,style:{...J,background:`linear-gradient(transparent 45%,${g.scrim} 45%),${qe(g.ink,g.inkSoft2).background}`}}),x("b",{style:{position:"absolute",left:5,bottom:4,fontSize:"3.65cqw",color:g.onInk},children:e})]},e))})]})}),citymaps:x(We,{title:"Find us",children:x("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(2,1fr)",gap:5,minHeight:0},children:[["Brisbane","7 Kerry Rd"],["Townsville","12 Enterprise"]].map(([e,o])=>B("div",{style:{position:"relative",padding:"4px 5px",display:"flex",flexDirection:"column",gap:2,minHeight:0},children:[x(K,{r:4,style:{...J,background:"none",border:`1px solid ${g.rule}`}}),x("b",{style:{position:"relative",fontSize:"4.31cqw",color:g.text},children:e}),x("span",{style:{position:"relative",fontSize:"3.32cqw",color:g.muted},children:o}),B("div",{style:{flex:1,minHeight:0,position:"relative"},children:[x(K,{r:3,style:{...J,...qe(g.paper,g.paper2,150)}}),x(K,{w:"60%",h:"60%",r:8,style:{position:"absolute",left:"12%",top:"20%",background:g.mark1,opacity:.75}}),x(K,{w:6,h:6,r:3,style:{position:"absolute",left:"44%",top:"34%",background:g.rust}})]})]},e))})}),form:x(We,{title:"Send us a message",children:B("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[B("div",{style:{display:"flex",gap:5},children:[x(DI,{label:"Name"}),x(DI,{label:"Email"})]}),x(DI,{label:"Message",filled:!0}),x(zK,{children:"SEND"})]})}),appointmentbooking:x(We,{title:"Book a fitting",children:B("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[x("div",{style:{display:"flex",gap:3},children:["Mon","Tue","Wed","Thu"].map((e,o)=>x("span",{style:{flex:1,textAlign:"center",fontSize:"3.32cqw",fontWeight:o===2?700:500,padding:"4px 0",borderRadius:3,background:o===2?g.text:g.paper,color:o===2?g.onInk:g.muted},children:e},e))}),x("div",{style:{display:"flex",gap:3},children:["8:00","10:30","13:00","15:30"].map((e,o)=>x("span",{style:{flex:1,textAlign:"center",fontSize:"3.32cqw",padding:"4px 0",borderRadius:3,border:`1px solid ${o===1?g.rust:g.rule}`,color:o===1?g.rust:g.muted,background:o===3?g.paper:g.card,textDecoration:o===3?"line-through":"none"},children:e},e))})]})}),reviewform:x(We,{title:"Leave a review",children:B("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:5,justifyContent:"center"},children:[x(l0,{filled:4,size:14}),x(DI,{label:"Your review",filled:!0}),x(zK,{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(np,{n:"27k",label:"Rigs"}),x(np,{n:"4.9",label:"Rating"})]}),B("div",{style:{flex:1,display:"flex",flexDirection:"column"},children:[x(Co,{children:"Twelve years of fitting the same three questions, and the"}),x(Co,{children:"answer has not moved: load rating, offset, then looks."})]})]}),chart:B(We,{title:"Load vs weight",children:[x("div",{style:{flex:1,display:"flex",alignItems:"flex-end",gap:5,paddingBottom:2},children:[38,62,84,71,96].map((e,o)=>x("span",{style:{flex:1,height:`${e}%`,borderRadius:"2px 2px 0 0",background:o===4?g.rust:g.mark1}},o))}),x("span",{style:{height:1,background:g.rule,marginTop:-4}})]}),mockup:x("div",{style:{...J,overflow:"hidden",display:"flex",alignItems:"center",justifyContent:"center",...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(MI,{children:"Ways to pay"}),x("div",{style:{display:"flex",gap:5},children:[["VISA",g.ink],["MC",g.rust],["AMEX",g.inkSoft],["PayPal",g.ink2]].map(([e,o])=>x("span",{style:{flex:1,textAlign:"center",fontSize:"3.65cqw",fontWeight:800,letterSpacing:"0.06em",color:g.onInk,borderRadius:3,padding:"6px 0",background:o},children:e},e))})]}),stats:B("div",{style:{...J,padding:"10px 12px",display:"flex",flexDirection:"column",gap:9,justifyContent:"center",...qe(g.ink,g.ink2)},children:[x("span",{style:{fontSize:"3.98cqw",fontWeight:700,letterSpacing:"0.14em",textTransform:"uppercase",color:g.warm},children:"By the numbers"}),B("div",{style:{display:"flex",gap:8},children:[x(np,{n:"27k",label:"Rigs fitted",tone:g.onInk}),x(np,{n:"12",label:"Years",tone:g.onInk}),x(np,{n:"4.9",label:"Avg rating",tone:g.warm})]})]}),testimonials:B("div",{style:{...J,overflow:"hidden",background:g.paper,padding:"10px 11px",display:"flex",flexDirection:"column",gap:6,justifyContent:"center"},children:[x("span",{style:{position:"absolute",right:10,top:2,fontSize:"22.4cqw",lineHeight:1,fontWeight:800,color:g.rust,opacity:.16},children:"\u201D"}),x(l0,{filled:5,size:7}),x("span",{style:{position:"relative",fontSize:"5.31cqw",lineHeight:1.35,color:g.text,fontWeight:600},children:"\u201CTook them out to the Simpson and back. Not one chip.\u201D"}),B("div",{style:{display:"flex",alignItems:"center",gap:5},children:[x(UK,{}),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(UK,{size:12}),B("div",{style:{display:"flex",flexDirection:"column",gap:1,minWidth:0},children:[B("div",{style:{display:"flex",gap:4,alignItems:"center"},children:[x("b",{style:{fontSize:"3.98cqw",color:g.text},children:e}),x(l0,{filled:o})]}),x(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($K,{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($K,{over:"ALL-TERRAIN",overTone:g.rust,head:"Grip that does not ask",headSize:12,cta:"EXPLORE",ctaBg:g.text,ctaFg:g.onInk,tone:g.text})}),x("div",{style:{flex:1,position:"relative",...qe(g.inkSoft,g.inkSoft2)},children:x(La,{size:74,style:{right:-14,top:16}})})]}),productgrid:x(We,{title:"Best sellers",children:B("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(3,1fr)",gap:5,minHeight:0},children:[x(i0,{name:"Ridge 19",price:"$365"}),x(i0,{name:"Ridge 29",price:"$410"}),x(i0,{name:"Ridge 39",price:"$455"})]})}),collections:x(We,{title:"Shop by category",children:x("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(3,1fr)",gap:5,minHeight:0},children:[["Wheels",g.inkSoft,g.inkSoft2],["Tyres",g.rust,g.warm],["Lift kits",g.ink,g.inkSoft]].map(([e,o,t])=>x("div",{style:{borderRadius:4,display:"flex",alignItems:"flex-end",padding:5,color:g.onInk,...qe(o,t)},children:x("span",{style:{fontSize:"3.98cqw",fontWeight:700,letterSpacing:"0.04em"},children:e})},e))})}),producthero:B("div",{style:{...J,display:"flex",background:g.card,overflow:"hidden"},children:[x("div",{style:{flex:1.1,position:"relative",...qe(g.paper,g.paper2,150)},children:x(La,{size:78,style:{left:"50%",top:"50%",transform:"translate(-50%,-50%)"}})}),B("div",{style:{flex:1,padding:"10px 10px 10px 8px",display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[x("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.16em",fontWeight:700,color:g.rust},children:"NITTO"}),x("b",{style:{fontSize:"6.29cqw",color:g.text},children:"Ridge Grappler"}),x("span",{style:{fontSize:"6.63cqw",fontWeight:700,color:g.text},children:"$489"}),x("span",{style:{alignSelf:"flex-start",fontSize:"3.65cqw",letterSpacing:"0.12em",fontWeight:700,padding:"4px 8px",borderRadius:2,background:g.text,color:g.onInk},children:"ADD TO CART"})]})]}),spectable:x(We,{title:"Specifications",children:B("div",{style:{flex:1,display:"flex",flexDirection:"column",justifyContent:"center"},children:[x(Ra,{k:"Diameter",v:'20"'}),x(Ra,{k:"Width",v:"9.0J"}),x(Ra,{k:"Offset",v:"+12"}),x(Ra,{k:"Load",v:"1250 kg"})]})}),fitmenttable:x(We,{title:"Will it fit?",children:B("div",{style:{flex:1,display:"flex",flexDirection:"column",justifyContent:"center"},children:[x(Ra,{k:"Hilux N80",v:"20\xD79 +12",ok:!0}),x(Ra,{k:"Ranger PX3",v:"20\xD79 +12",ok:!0}),x(Ra,{k:"LC79",v:"17\xD78 \u221210",ok:!0})]})}),processsteps:B("div",{style:{...J,background:g.paper,padding:10,display:"flex",flexDirection:"column",gap:7,justifyContent:"center"},children:[x(MI,{children:"How it works"}),x("div",{style:{display:"flex",gap:6},children:["Pick your rig","Match the fit","We fit it"].map((e,o)=>B("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:2},children:[x("span",{style:{width:11,height:11,borderRadius:"50%",background:g.text,color:g.onInk,fontSize:"3.98cqw",display:"flex",alignItems:"center",justifyContent:"center",fontWeight:700},children:o+1}),x("span",{style:{fontSize:"3.98cqw",color:g.text,fontWeight:600},children:e})]},e))})]}),detailrows:x("div",{style:{...J,background:g.card,display:"flex",flexDirection:"column",overflow:"hidden"},children:[["Forged, not cast","Half the weight, twice the road.",!1],["Fits your load","Rated to 1250 kg a corner.",!0]].map(([e,o,t])=>{let r=x("div",{style:{flex:1,...qe(t?g.rust:g.inkSoft,t?g.warm:g.inkSoft2)}},"art"),a=B("div",{style:{flex:1.1,padding:8,display:"flex",flexDirection:"column",gap:2,justifyContent:"center"},children:[x("b",{style:{fontSize:"4.64cqw",color:g.text},children:e}),x("span",{style:{fontSize:"3.98cqw",color:g.muted,lineHeight:1.3},children:o})]},"tx");return x("div",{style:{flex:1,display:"flex",minHeight:0},children:t?[a,r]:[r,a]},e)})}),specstrip:x("div",{style:{...J,background:g.ink,color:g.onInk,display:"flex",alignItems:"center",justifyContent:"space-around",padding:"0 8px"},children:[["5 yr","Warranty"],["Free","Fitting"],["48 hr","Dispatch"]].map(([e,o])=>B("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:1},children:[x("b",{style:{fontSize:"5.69cqw",letterSpacing:"0.02em"},children:e}),x("span",{style:{fontSize:"3.65cqw",color:g.mark2,letterSpacing:"0.1em",textTransform:"uppercase"},children:o})]},o))})},GK={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:s0}}),B("div",{style:{flex:1,padding:15,display:"flex",flexDirection:"column",justifyContent:"center",gap:7},children:[x(K,{w:"44%",h:5,r:3,tone:"accent"}),x(K,{w:"88%",h:8,r:4,tone:"dark"}),x(K,{w:"70%",h:8,r:4,tone:"dark"}),x(K,{w:"94%",h:5,r:2,tone:"soft",style:{marginTop:2}}),x(K,{w:"80%",h:5,r:2,tone:"soft"}),x(K,{w:"40%",h:13,r:6,tone:"accent",style:{marginTop:5}})]})]}),sectionheader:B(jK,{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:s0},children:[x(K,{w:5,h:16,r:2,tone:"dark",style:{transform:"skewX(-14deg)"}}),x(K,{w:16,h:10,r:3,tone:"accent"}),x(K,{w:5,h:16,r:2,tone:"dark",style:{transform:"skewX(14deg)"}})]}),heading:x("div",{style:{...J,padding:14,display:"flex",alignItems:"center"},children:x(K,{w:"64%",h:13,r:4,tone:"dark"})}),text:B("div",{style:{...J,padding:16,display:"flex",flexDirection:"column",justifyContent:"center",gap:7},children:[x(K,{w:"100%",h:6,r:3,tone:"soft"}),x(K,{w:"96%",h:6,r:3,tone:"soft"}),x(K,{w:"100%",h:6,r:3,tone:"soft"}),x(K,{w:"58%",h:6,r:3,tone:"soft"})]}),image:x("div",{style:{position:"absolute",inset:14,borderRadius:7,background:s0}}),button:x("div",{style:{...J,display:"flex",alignItems:"center",justifyContent:"center"},children:x(K,{w:"34%",h:16,r:8,tone:"accent"})}),menu:B("div",{style:{...J,padding:"14px 22%",display:"flex",flexDirection:"column",justifyContent:"center",gap:7},children:[x(K,{w:"48%",h:7,r:3,tone:"dark"}),x(K,{w:"82%",h:5,r:2,tone:"soft"}),x(K,{w:"66%",h:5,r:2,tone:"soft"}),x(K,{w:"74%",h:5,r:2,tone:"soft"}),x(K,{w:"58%",h:5,r:2,tone:"soft"})]}),emailform:B("div",{style:{...J,padding:16,display:"flex",flexDirection:"column",justifyContent:"center",gap:9},children:[x(K,{w:"56%",h:8,r:3,tone:"dark"}),B("div",{style:{display:"flex",gap:6},children:[x("div",{style:{flex:1,height:16,borderRadius:5,border:`1px solid ${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 KK({type:e}){let o=rke[e]??"",t=ake[o]??GK[o]??GK.fallback;return x("div",{className:"sf-thumb","aria-hidden":"true",style:{position:"absolute",inset:0,background:"var(--sf-thumb-thumb-bg)",pointerEvents:"none",containerType:"inline-size"},children:t})}import{useScreenDocument as KI}from"efficient-easel/screen/components/ScreenDocumentContext";import{jsx as sc,jsxs as VK}from"react/jsx-runtime";import nke from"efficient-easel/screen/components/SidePanelHead";import{StylesIcon as ske}from"efficient-easel/rail";import{Tooltip as ike}from"efficient-shell/ui";import{HintsToggle as lke,hintsFoldClass as cke}from"efficient-easel/panel";import{useHints as dke}from"efficient-easel/screen/lib/hints";function YK({tokenRef:e,siteId:o,onClose:t,onNotify:r,tab:a,onTabChange:n,revealPageGroup:s,onPageGroupRevealed:i}){let l=xl(),{shown:d,setShown:f}=dke();return VK("div",{className:`sf-styles ${cke(d)}`.trim(),children:[sc(nke,{icon:sc(ske,{}),title:c("Styles"),context:sc(ike,{content:c("{name} \u2014 renamed in the Console: {place}.",{name:l,place:c("Storefront \u25B8 Sites \u25B8 Settings")}),className:"sf-name-tip",children:sc("span",{className:"sf-name-text",children:l})})}),VK("div",{className:"sf-insp-body es-insp-body sf-scroll",children:[sc(Lh,{tokenRef:e,siteId:o,onNotify:r,tab:a,onTabChange:n,revealPageGroup:s,onPageGroupRevealed:i}),sc(lke,{shown:d,onChange:f,label:c("Show hints")})]})]})}import{jsx as Fo,jsxs as ei,Fragment as hke}from"react/jsx-runtime";import{Fragment as n8,useEffect as s8,useRef as m0}from"react";import{useTreeDrag as i8}from"efficient-easel/drag";import{GlobeIcon as xke,ImageIcon as gke,LocationIcon as Ike,MapIcon as yke,TextLinesIcon as bke,TrashIcon as l8}from"efficient-easel/icons";import{Subtree as c8,TreeRow as ip,TreeRowAction as d8,TreeSeam as f8}from"efficient-easel/tree";import{useEaselStrings as Ske}from"efficient-easel/strings";import{isSelectionMode as wke}from"efficient-easel/screen/lib/screen-parts";import{useSyncExternalStore as fke}from"react";var pke={level:"groups"},XK=pke,c0=new Set;function Lr(e){XK=e;for(let o of c0)o()}function uke(e){return c0.add(e),()=>{c0.delete(e)}}var qK=()=>XK;function ZK(){return fke(uke,qK,qK)}var sp=e=>String(e?.group??""),d0=new WeakMap,mke=0;function HI(e){let o=d0.get(e);return o||(o=`loc${++mke}`,d0.set(e,o)),o}var JK=(e,o)=>o||e||"Ungrouped",QK={photo:"",group:"",groupName:"",name:"City name",state:"State",country:"Country",timezone:"GMT \xB7 UTC +0",address:`Address line one
|
|
342
|
-
Address line two`,phone:"+00 000 0000",hours:"Mon\u2013Fri 9:00\u201318:00",lat:0,lng:0,mapsUrl:""};function Qs(e){return kx(e,sp,o=>String(o?.groupName??"")).map(o=>({key:o.key,name:o.name,cards:o.items.map(t=>t.item)}))}var f0=e=>e.flatMap(o=>o.cards),e8=(e,o,t)=>Math.min(Math.max(e,o),t);function WI(e,o,t){let r=0;for(let a=0;a<e.length;a++)if(sp(e[a])===o){if(r===t)return a;r++}return-1}function p0(e,o,t){let r=Qs(e);if(o<0||o>=r.length)return e;let[a]=r.splice(o,1),n=e8(o<t?t-1:t,0,r.length);return r.splice(n,0,a),f0(r)}function u0(e,o,t,r,a){let n=Qs(e),s=n.find(u=>u.key===o),i=n.find(u=>u.key===r);if(!s||!i||t<0||t>=s.cards.length)return e;let[l]=s.cards.splice(t,1),d=o===r?l:{...l,group:i.key,groupName:i.name};d!==l&&d0.set(d,HI(l));let f=e8(s===i&&t<a?a-1:a,0,i.cards.length);return i.cards.splice(f,0,d),f0(n)}function o8(e,o){let t=Qs(e),r=t.find(n=>n.key===o),a={...QK,group:o,groupName:r?.name??""};return r?(r.cards.push(a),f0(t)):[...e,a]}function t8(e){let o=new Set(Qs(e).map(a=>a.key)),t=o.size+1,r=`Group ${t}`;for(;o.has(r);)r=`Group ${++t}`;return{cards:[...e,{...QK,group:r,groupName:""}],key:r}}function r8(e,o){return e.filter(t=>sp(t)!==o)}function a8(e,o,t){let r=WI(e,o,t);return r<0?e:e.filter((a,n)=>n!==r)}function rxo(e,o,t){let r=e.flatMap((s,i)=>sp(s)===o?[i]:[]),a=e.slice();r.forEach((s,i)=>{a[s]=t[i]});let n=t.slice(r.length);return[...a.filter(s=>s!==void 0),...n]}function axo(e,o,t){return o.flatMap(r=>{let a=e.filter(n=>sp(n)===r);return a.length?a:t(r)})}var UI="ContactLocations",$I=e=>({parentId:`locations-${e}`,slot:"groups"}),h0=(e,o)=>({parentId:`locations-${e}`,slot:`cities:${o}`});function p8(e,o){let{readOnly:t,selected:r}=o,a=Ske().tree,n=o.data?.content??[],s=wke(e),i=m0(null);s8(()=>{let b=r?.type===UI?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}=K$(),u=ZK(),p=(b,y)=>{let k=n[b];k&&o.replace(b,{type:k.type,props:{...k.props,locations:y}})},m=b=>{let y=n[b]?.props?.locations;return Array.isArray(y)?y:[]},h=i8({keyOf:b=>`group:${b.si}:${b.index}`,readOnly:!!t,canDrop:(b,y)=>y.parentId===$I(b.si).parentId&&y.slot==="groups",onDrop:(b,y)=>{p(b.si,p0(m(b.si),b.index,y.index)),u.level==="city"&&Lr({level:"groups"})},onStep:(b,y)=>{p(b.si,p0(m(b.si),b.index,y<0?b.index-1:b.index+2)),u.level==="city"&&Lr({level:"groups"})}}),I=i8({keyOf:b=>`city:${b.si}:${b.group}:${b.index}`,readOnly:!!t,canDrop:(b,y)=>y.parentId===$I(b.si).parentId&&y.slot.startsWith("cities:"),onDrop:(b,y)=>{let k=y.slot.slice(7);p(b.si,u0(m(b.si),b.group,b.index,k,y.index)),Lr({level:"group",key:k})},onStep:(b,y)=>{p(b.si,u0(m(b.si),b.group,b.index,b.group,y<0?b.index-1:b.index+2)),u.level==="city"&&Lr({level:"group",key:b.group})}}),w=m0(n);w.current=n;let S=m0(()=>{});s8(()=>{f(b=>{let y=kg(b);if(!y)return;let k=w.current.findIndex(L=>L.props?.id===y.nodeId);k<0||S.current(k,{level:y.part,index:y.index})})},[f]);let v=(b,y)=>{i.current=n[b]?.props?.id??null,o.select(b),Lr(y),e.reveal();let k=n[b]?.props?.id;typeof k=="string"&&(y.level==="city"||y.level==="image"||y.level==="map")?d(vg(k,y.index,y.level)):d(null),typeof k=="string"&&o.scrollTo(k)};return S.current=v,{renderLocationTree:(b,y,{rowClick:k,isCollapsed:L,toggleCollapse:O})=>{let D=m(y),T=Qs(D),F=String(b.props.id),C=s&&r?.props.id===F,R=_=>Fo(f8,{...t?{}:h.seam({place:{...$I(y),index:_}})},`seam:${F}:groups:${_}`),P=(_,W)=>Fo(f8,{...t?{}:I.seam({place:{...h0(y,_),index:W}})},`seam:${F}:cities:${_}:${W}`);return ei(hke,{children:[Fo(ip,{icon:Fo(bke,{size:13}),name:c("Texts"),words:a,onSelect:()=>v(y,{level:"texts"}),selected:C&&u.level==="texts",rowProps:{onClick:k(()=>v(y,{level:"texts"}))}}),T.map((_,W)=>{let G=`${F}::grp::${_.key}`,Z=L(G),V=C&&u.level==="group"&&u.key===_.key,de=_.name||_.key?JK(_.key,_.name):c("Ungrouped"),ve={...h0(y,_.key),index:_.cards.length},oe=I.row({item:{si:y,group:_.key,index:-1},place:ve,into:ve,canDrag:!1},{onClick:k(()=>v(y,{level:"group",key:_.key}))}),Oe=h.row({item:{si:y,index:W},place:{...$I(y),index:W}},oe.rowProps);return ei(n8,{children:[W===0&&R(0),Fo(ip,{icon:Fo(xke,{size:13}),name:de,words:a,onSelect:()=>v(y,{level:"group",key:_.key}),selected:V,draggable:Oe.draggable,dragging:Oe.dragging,drop:Oe.drop??oe.drop,fold:{open:!Z,label:c("group"),onToggle:()=>O(G)},actions:Fo(d8,{kind:"delete",label:st("Delete {label} group ({n} city)","Delete {label} group ({n} cities)",_.cards.length,{label:de}),onClick:()=>{p(y,r8(D,_.key)),Lr({level:"groups"})},children:Fo(l8,{size:15})}),rowProps:Oe.rowProps,count:_.cards.length,countLabel:st("{n} city","{n} cities",_.cards.length)}),!Z&&ei(c8,{children:[_.cards.map((_e,Ae)=>{let Re=WI(D,_.key,Ae),rt=C&&u.level==="city"&&u.index===Re,Yo=String(_e?.name??"")||c("City"),qo=`${F}::city::${HI(_e)}`,yo=L(qo),{rowProps:No,...Eo}=I.row({item:{si:y,group:_.key,index:Ae},place:{...h0(y,_.key),index:Ae}},{onClick:k(()=>v(y,{level:"city",index:Re}))});return ei(n8,{children:[Ae===0&&P(_.key,0),Fo(ip,{icon:Fo(Ike,{size:13}),name:Yo,words:a,onSelect:()=>v(y,{level:"city",index:Re}),selected:rt,...Eo,fold:{open:!yo,label:Yo,onToggle:()=>O(qo)},actions:Fo(d8,{kind:"delete",label:c("Delete {name}",{name:Yo}),onClick:()=>{p(y,a8(D,_.key,Ae)),Lr({level:"group",key:_.key})},children:Fo(l8,{size:15})}),rowProps:No}),!yo&&ei(c8,{children:[Fo(ip,{icon:Fo(gke,{size:13}),name:c("Image"),words:a,onSelect:()=>v(y,{level:"image",index:Re}),selected:C&&u.level==="image"&&u.index===Re,rowProps:{onClick:k(()=>v(y,{level:"image",index:Re}))}}),Fo(ip,{icon:Fo(yke,{size:13}),name:c("Map"),words:a,onSelect:()=>v(y,{level:"map",index:Re}),selected:C&&u.level==="map"&&u.index===Re,rowProps:{onClick:k(()=>v(y,{level:"map",index:Re}))}})]}),P(_.key,Ae+1)]},HI(_e))}),ei("button",{type:"button",className:"sf-add-card",onClick:()=>{let _e=o8(D,_.key);p(y,_e);let Ae=Qs(_e).find(Re=>Re.key===_.key);Lr(Ae&&Ae.cards.length?{level:"city",index:WI(_e,_.key,Ae.cards.length-1)}:{level:"group",key:_.key})},children:[Fo("span",{className:"sf-plus sf-plus--sm",children:"+"}),c("Add city")]})]}),R(W+1)]},G)}),ei("button",{type:"button",className:"sf-add-card",onClick:()=>{let{cards:_,key:W}=t8(D);p(y,_),v(y,{level:"group",key:W})},children:[Fo("span",{className:"sf-plus sf-plus--sm",children:"+"}),c("Add group")]})]})},sectionPressed:b=>{b?.type===UI&&Lr({level:"groups"})}}}import{useEffect as Tke,useRef as Pke}from"react";import{createNode as g0,newId as I0}from"efficient-easel/data";import{useEaselApi as Eke}from"efficient-easel/easel";import{useScreenDocument as _ke}from"efficient-easel/screen/components/ScreenDocumentContext";import{useEaselSession as Oke}from"efficient-easel/screen/lib/session-context";import{useEffect as x8,useRef as Cke}from"react";import{useEasel as vke}from"efficient-easel/easel";import{ROOT_ZONE as x0}from"efficient-easel/draw";var lp={};function u8(e){return lp={...e?.theme?{theme:e.theme}:{},...e?.site?{site:e.site}:{}},lp}function m8(e){lp===e&&(lp={})}function ic(){return lp}function h8(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 I8(e){let o=vke(d=>d.appState.data.content),{theme:t,themeRow:r,themeFromDocument:a,siteGutter:n,siteGutterPhone:s,siteLengthUnits:i}=fe(),l=Cke(new Set);x8(()=>{let d=g8({theme:t,themeRow:r,themeFromDocument:a,siteGutter:n,siteGutterPhone:s,siteLengthUnits:i});d&&kke(p4(o,void 0,d),e,l.current)},[o,e,t,r,a,n,s,i]),x8(()=>{let d=u8(g8({theme:t,themeRow:r,themeFromDocument:a,siteGutter:n,siteGutterPhone:s,siteLengthUnits:i}));return()=>m8(d)},[t,r,a,n,s,i])}function g8(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=h8({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 kke(e,o,t){for(let{index:r,nodes:a}of[...e].sort((n,s)=>s.index-n.index)){let n=String(a[0].props.id);t.has(n)||(t.add(n),o.replaceComponent(x0,r,a[0]),a.slice(1).forEach((s,i)=>{o.insertNode(x0,r+1+i,s),o.replaceComponent(x0,r+1+i,s)}))}}import{ROOT_ZONE as lc,missingPinnedTypes as Ake,pinnedDuplicateIds as y0}from"efficient-easel/draw";function y8(e){return!e.docId||e.saveStatus==="saving"?!1:e.seededDocId!==e.docId}function b8(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===vt),seedFooter:s,seedSiteHeader:s&&!e.some(i=>i?.type===Je)}}async function S8(e){let o=e.blocks?.seeds?.siteHeader;if(!o)return!1;let t;try{t=await o({make:e.make,id:e.id,siteId:e.siteId,token:e.token})}catch{return!1}if(!t||t.type!==Je||!e.stillOpen())return!1;let r=e.latest();return r.some(a=>a?.type===Je)?!1:(e.write(vu(r,t)),!0)}function w8(e,o){let{adapter:t,capabilities:r,currentSlug:a,docId:n,data:s,saveStatus:i,siteId:l,tokenRef:d}=_ke(),f=Oke(),{hasSiteSettings:u,hasPinnedChrome:p}=r;I8(e);let m=!!r.editsPinnedInPlace&&a!==xr,h=a===xr,I=Eke().getState,w=Pke(null);Tke(()=>{if(!y8({docId:n,saveStatus:i,seededDocId:w.current})||(w.current=n,!p))return;let S=I().appState.data,v=S.content,b=s?.content??[],y=(D,T)=>D.some(F=>F?.type===T);if(!u){let D=new Set(y0(v)),T=D.size?v.filter(C=>!D.has(C.props.id)):v;if(D.size&&e.setDocument({...S,content:T}),h)return;let F=Ake(T,b);if(F.includes(Qe)){let C=T.length,R=e.insertSection(Qe,C);e.replaceComponent(lc,C,{type:Qe,props:{id:R,blocks:FI()}})}F.includes(vt)&&e.insertNode(lc,0,LI());return}if(h){let D=Oi(v);if(D!==v&&e.setDocument({...S,content:[...D]}),!D.find(T=>T.type===Qe)&&!y(b,Qe)&&!y(D,ze)&&!y(b,ze)){let T=(C,R)=>g0(o,C,R),F={type:Qe,props:{blocks:FI()}};e.insertNode(lc,D.length,bf(F,T,I0(ze),rp))}return}if(m){let D=!!t?.pinnedChrome?.state().docId,T=b8(v,{hasChromeDoc:D}),F=new Set([...T.remove,...y0(v.filter(R=>!T.remove.includes(String(R.props.id))))]),C=F.size?v.filter(R=>!F.has(String(R.props.id))):v;if(C.length!==v.length&&e.setDocument({...S,content:C}),T.seedFooter&&!y(b,Qe)&&!y(b,ze)){let R=(_,W)=>g0(o,_,W),P={type:Qe,props:{blocks:FI()}};e.insertNode(lc,C.length,bf(P,R,I0(ze),rp))}if(T.seedHeader&&!y(b,vt)){let R=C[0]?.type===Je?1:0;e.insertNode(lc,R,LI())}if(T.seedSiteHeader&&!y(b,Je)&&!y(b,Qe)&&!y(b,ze)){let R=n;S8({blocks:Mi(f),make:(P,_)=>g0(o,P,_),id:I0(Je),siteId:l??null,token:d.current,latest:()=>I().appState.data.content,stillOpen:()=>w.current===R,write:P=>{let _=I().appState.data;e.setDocument({..._,content:[...P]})}})}return}let k=v.filter(D=>D.type!==Qe),L=new Set(y0(k)),O=L.size?k.filter(D=>!L.has(D.props.id)):k;O.length!==v.length&&e.setDocument({...S,content:O}),!y(O,vt)&&!y(b,vt)&&e.insertNode(lc,0,LI())},[n,i,s,I,e,u,p,h,m,t,f,l,d])}import{useEffect as R8,useMemo as Mke,useRef as L8}from"react";import{useEasel as Hke}from"efficient-easel/easel";import{useEaselHost as Wke}from"efficient-easel/screen/lib/host";import{FIELD_DESCRIPTION_MARKER as Rke}from"efficient-easel/screen/lib/host";import{isNode as k8}from"efficient-easel/data";function cp(e,o){let t=e.components[o]?.label;return typeof t=="string"&&t.trim()?t.trim():o}function Lke(e){return e.length>3&&e.endsWith("s")?e.slice(0,-1):e}function b0(e,o,t,r){e.forEach((a,n)=>{if(k8(a)){r.push({node:a,list:e,index:n,parent:o,slot:t});for(let s of Br(a))b0(a.props[s],a,s,r)}})}function Fke(e){let o=[];b0(Array.isArray(e.content)?e.content:[],null,"",o);for(let t of Object.values(e.zones??{}))Array.isArray(t)&&b0(t,null,"",o);return o}function T8(e,o){return Fke(e).find(t=>String(t.node.props.id)===o)}function P8(e,o,t){if(!t)return null;let r=T8(o,t);if(!r)return null;let a=cp(e,r.node.type),n=r.parent?`${cp(e,r.parent.type)} \xB7 ${Lke(r.slot)} ${r.index+1}`:a;return{blockId:t,type:r.node.type,label:n,path:""}}var Bke=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 Nke(e){if(!e||typeof e!="object")return null;let o=e;if(typeof o.type!="string")return null;let t=o.type==="custom"?o[Rke]: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=Bke(n));for(let s of["arrayFields","objectFields"]){let i=t?.[s]??o[s];i&&typeof i=="object"&&(r[s]=E8(i))}return r}function E8(e){let o={};for(let[t,r]of Object.entries(e??{})){let a=Nke(r);a&&(o[t]=a)}return o}function _8(e){let o={};for(let[t,r]of Object.entries(e.components))r&&(o[t]={label:cp(e,t),fields:E8(r.fields),...O8(t)?{retired:!0}:{}});return o}function O8(e){return He(W0,e)}function C8(e,o){let t=e.components[o]?.defaultProps;return t&&typeof t=="object"?structuredClone(t):{}}function Dke(e,o){let t=e;for(let r of o?o.split("."):[]){let a=/^([A-Za-z_][A-Za-z0-9_]*)(?:\[(\d+)\])?$/.exec(r);if(!a||!t||typeof t!="object")return null;t=t[a[1]],a[2]!==void 0&&(t=Array.isArray(t)?t[Number(a[2])]:void 0)}return t&&typeof t=="object"&&!Array.isArray(t)?t:null}function S0(e,o){return e.findIndex(t=>k8(t)&&String(t.props.id)===o)}function v8(e,o,t){let r=o||t;if(!r)return e.length;let a=S0(e,r);if(a<0)throw new Error(`there is no top-level block ${r}`);return o?a+1:a}function A8(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=T8(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=Dke(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}`),O8(i.type)&&d(`${cp(e,i.type)} is retired: it is no longer added (a page that holds one keeps it)`);let f=Kl(i.type),u=Object.keys(i.props??{}).filter(m=>m!=="id");f&&u.length&&d(`${cp(e,i.type)} is laid down as a Box of blocks: insert it with no props, then change its blocks`);let p=f?f(m=>C8(e,m),r,a):{type:i.type,props:{...C8(e,i.type),...structuredClone(i.props),id:r(i.type)}};s.splice(v8(s,i.after,i.before),0,p);break}case"remove_block":{let f=S0(s,i.block_id);f<0&&d(`there is no top-level block ${i.block_id}`),s.splice(f,1);break}case"move_block":{let f=S0(s,i.block_id);f<0&&d(`there is no top-level block ${i.block_id}`);let[u]=s.splice(f,1);s.splice(v8(s,i.after,i.before),0,u);break}default:d(`"${i.op}" is not a change this editor makes`)}})}catch(i){return{ok:!1,reason:i instanceof Error?i.message:String(i)}}return{ok:!0,document:n}}var w0=e=>be(e.requestId)??null;function F8(){let e=Wke(),{appState:o,selectedItem:t,dispatch:r,history:a,config:n}=Hke(p=>p),s=n,i=L8({appState:o,dispatch:r,history:a,blockConfig:s});i.current={appState:o,dispatch:r,history:a,blockConfig:s};let l=L8(new Map),d=t?.props?.id,f=Mke(()=>P8(s,o.data,d),[s,o.data,d]),u=f?JSON.stringify(f):"";R8(()=>{e.connected&&e.send("storefront-editor:selection",{selection:f})},[e,u]),R8(()=>e.subscribe(p=>{let{appState:m,dispatch:h,history:I,blockConfig:w}=i.current;switch(p.type){case"storefront-editor:request-document":{let S=w0(p);if(!S)return;e.send("storefront-editor:document",{requestId:S,document:m.data,blocks:_8(w)});return}case"storefront-editor:apply-page-edits":{let S=w0(p);if(!S)return;let v=Array.isArray(p.ops)?p.ops:[],b=v.length?A8(w,m.data,v,y=>`${y}-${crypto.randomUUID()}`,ic()):{ok:!1,reason:"no changes"};b.ok&&(h({type:"setData",data:b.document,recordHistory:!0}),l.current.set(S,JSON.stringify(b.document.content??[]))),e.send("storefront-editor:page-edits-result",{requestId:S,applied:b.ok,reason:b.ok?null:b.reason});return}case"storefront-editor:undo-page-edits":{let S=w0(p);if(!S)return;let v=l.current.get(S),b=v!==void 0&&v===JSON.stringify(m.data.content??[]);b&&I.hasPast&&(I.back(),l.current.delete(S)),e.send("storefront-editor:page-edits-result",{requestId:S,applied:b&&I.hasPast,reason:b?null:"the page has changed since"});return}case"storefront-editor:set-right-panel":typeof p.shown=="boolean"&&h({type:"setUi",ui:{rightSideBarVisible:p.shown}});return;default:return}}),[e])}import{useEffect as D8,useState as M8}from"react";var zI=new Map;async function $ke(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 B8(e,o){let t=zI.get(o);return t||(t=$ke(e,o),zI.set(o,t),t.catch(()=>{zI.get(o)===t&&zI.delete(o)})),t}var Uke=/^(localhost|(?:[a-z0-9-]+\.)+localhost|127(?:\.\d{1,3}){3}|0\.0\.0\.0|\[::1\]|::1)$/i;function C0(e){return!!e&&Uke.test(e)}function N8(e){let{pageSlug:o,siteSlug:t,hostname:r}=e,a=o===Hu?"/":`/${encodeURIComponent(o)}`;if(!C0(r))return a;let n=t?.trim();return n?`${a}?site=${encodeURIComponent(n)}`:a}function H8(e){let{pageSlug:o,siteId:t,token:r}=e,[a,n]=M8(null),[s,i]=M8(null),l=OO();D8(()=>{try{i(new URL(fu()).hostname)}catch{i(null)}},[l]),D8(()=>{if(!C0(s)||!t||!r){n(null);return}let f=!1;return B8(r,t).then(u=>{f||n(u)}),()=>{f=!0}},[s,t,r]);let d=N8({pageSlug:o,siteSlug:a,hostname:s});return l?`${l}${d}`:d}import{jsx as dp}from"react/jsx-runtime";import{useEffect as zke,useRef as W8,useState as Gke}from"react";import{ExternalIcon as $8}from"efficient-easel/icons";import{EaselIconButton as jke}from"efficient-easel/chrome";import{Tooltip as Kke,iconButtonClasses as Vke}from"efficient-shell/ui";import{useSettledPress as Yke}from"efficient-easel/easel";import{useScreenDocument as qke}from"efficient-easel/screen/components/ScreenDocumentContext";async function Xke({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 U8({liveHref:e,pageId:o,draftLink:t}){let{flushSave:r}=qke(),a=W8(r);a.current=r;let n=Yke(),[s,i]=Gke(!1),l=W8(null);if(zke(()=>()=>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),Xke({pageId:o,liveHref:e,draftLink:t,ready:d}).finally(()=>i(!1)))};return dp(jke,{label:c("Preview your saved draft in a new tab"),tip:c("Open your saved draft in a new tab. Visitors don't see it."),disabled:s||n.waiting,onClick:f,children:dp($8,{})})}return dp(Kke,{content:c("Preview the live site (opens in a new tab)"),side:"bottom",children:dp("a",{className:Vke({className:"es-iconbtn"}),href:e,...Nd,"aria-label":c("Preview the live site in a new tab"),children:dp($8,{})})})}import{createElement as Zke,useCallback as Jke,useEffect as z8,useRef as G8,useState as Qke}from"react";import{ClockIcon as eTe}from"efficient-shell/icons/efficient";import{useScreenDocument as oTe}from"efficient-easel/screen/components/ScreenDocumentContext";function j8(e){let{docId:o,capabilities:t,hasUnsavedEdits:r,onPublish:a,adapter:n}=oTe(),s=dK(cK(o??null),r),i=rI(aI()),l=n.siteLiveState;z8(()=>{if(l)return tS(l),ma(0),()=>tS(null)},[l]);let d=dm(),[f,u]=Qke(!1),p=G8(e);p.current=e;let m=G8(!0);z8(()=>(m.current=!0,()=>{m.current=!1}),[]);let h=Jke(()=>{u(!0),a(p.current).then(()=>{sI()}).finally(()=>{m.current&&u(!1)})},[a]);if(t.canPublish){if(l){let I=d===void 0?void 0:r||d.state==="changed"?"changed":"live",w=YP({live:I,onPress:h,busy:f,goingLive:fK(d?.changes??[])});return n.siteVersions?{...w,menuItems:tTe()}:w}return YP({live:s,onPress:h,busy:f,pinnedUnpublished:i?.unpublished??!1})}}function tTe(){return[{key:"version-history",label:c("Version history"),icon:Zke(eTe),onSelect:OG}]}import{jsx as ae,jsxs as Dt,Fragment as up}from"react/jsx-runtime";import{useCallback as rTe,useEffect as aTe,useId as Y8,useRef as nTe,useState as ir}from"react";import{useSettledAction as sTe}from"efficient-easel/easel";import{Avatar as iTe,Banner as fp,Button as oi,ColoredBadge as v0,Dialog as q8,Drawer as lTe,DropdownMenu as cTe,FormField as X8,iconButtonClasses as dTe,Inline as k0,Input as fTe,ListRow as pTe,Select as uTe,SortableList as mTe,Stack as pp}from"efficient-shell/ui";import{EditIcon as hTe,EyeIcon as K8,MenuIcon as xTe,MoreIcon as gTe,PageIcon as Z8,RevertIcon as V8,StylesIcon as ITe}from"efficient-shell/icons/efficient";import{useScreenDocument as J8}from"efficient-easel/screen/components/ScreenDocumentContext";var yTe={page:Z8,menu:xTe};function bTe(e,o){return e.pages.find(t=>t.id===o)??e.pages[0]??null}function STe(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 wTe({version:e,page:o,waiting:t,busy:r,error:a,onCancel:n,onConfirm:s,onPage:i}){let l=Y8();if(!e)return null;let d=e.kind==="draft_before_restore",f=e.number,u=MG(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(q8,{open:!0,onClose:()=>{r||n()},size:"sm",title:p,footer:Dt(up,{children:[ae(oi,{variant:"secondary",onClick:n,disabled:r,children:c("Cancel")}),ae(oi,{onClick:s,loading:r,disabled:r,children:c("Restore as draft")})]}),children:Dt(pp,{gap:4,children:[o&&e.pages.length>1?ae(X8,{label:c("Page"),htmlFor:l,children:ae(uTe,{id:l,value:o.id,options:e.pages.map(I=>({value:I.id,label:I.name})),onChange:i,disabled:r})}):null,ae("p",{children:m}),ae("p",{children:c("Your live website does not change until you press Publish.")}),h>0?ae(fp,{tone:"warning",children:st("{n} picture in this version was deleted from the media library. It stays empty.","{n} pictures in this version were deleted from the media library. They stay empty.",h)}):null,t?ae(fp,{tone:"info",title:c("Your unpublished changes are kept"),children:c("They are saved in Version history as \u201CDraft before restore\u201D, so you can get them back.")}):null,a?ae(fp,{tone:"danger",children:a}):null]})})}function CTe({version:e,onCancel:o,onSave:t}){let r=Y8(),[a,n]=ir(null),[s,i]=ir(""),[l,d]=ir(!1),[f,u]=ir(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(q8,{open:!0,onClose:()=>{l||o()},size:"sm",title:c("Name this version"),footer:Dt(up,{children:[ae(oi,{variant:"secondary",onClick:o,disabled:l,children:c("Cancel")}),ae(oi,{onClick:()=>{m()},loading:l,disabled:l||p,children:c("Save")})]}),children:ae(X8,{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(fTe,{id:r,value:s,invalid:!!f,onChange:h=>i(h.target.value),onKeyDown:h=>{h.key==="Enter"&&m()}})})})}function vTe({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(K8,{}),onSelect:r}],...l?[{key:"restore",label:i?c("Put these drafts back"):c("Restore whole website"),icon:ae(V8,{}),onSelect:a}]:[],...l&&!i&&e.pages.length?[{key:"restore-page",label:c("Restore one page only"),icon:ae(Z8,{}),onSelect:n}]:[],...i?[]:[{type:"divider",key:"divider"},{key:"name",label:c("Name this version"),icon:ae(hTe,{}),onSelect:s}]];return ae(pTe,{title:Dt("span",{className:"sf-version-title",children:[ae("span",{children:DG(e)}),e.live?ae(v0,{tone:"success",size:"xs",children:c("Live")}):null,e.name?ae(v0,{tone:"neutral",size:"xs",children:c("Version {n}",{n:e.number})}):null,i?ae(v0,{tone:"warning",size:"xs",children:c("Not published")}):null]}),expanded:o,onToggle:t,actions:ae(cTe,{align:"end","aria-label":c("More"),items:f,triggerClassName:dTe({variant:"ghost",size:"sm"}),trigger:ae(gTe,{})}),below:Dt(pp,{gap:3,children:[Dt(k0,{gap:2,align:"center",wrap:!0,className:"sf-version-meta",children:[ae(iTe,{name:e.createdBy,size:"xs"}),ae("span",{children:e.createdBy}),ae("span",{"aria-hidden":"true",children:"\xB7"}),ae("span",{children:WG(e.createdAt)}),d?Dt(up,{children:[ae("span",{"aria-hidden":"true",children:"\xB7"}),ae("span",{children:st("{n} change","{n} changes",d)})]}):null]}),o?Dt(pp,{gap:3,children:[d?ae(pp,{gap:2,children:e.changes.map(u=>{let p=yTe[u.kind]??ITe;return Dt(k0,{gap:2,align:"center",children:[ae(p,{size:16}),ae("span",{children:HG(u)})]},`${u.kind}:${u.id}`)})}):null,Dt(k0,{gap:2,children:[i?null:ae(oi,{variant:"secondary",size:"sm",leftIcon:ae(K8,{}),onClick:r,children:c("Preview")}),l?ae(oi,{variant:"secondary",size:"sm",leftIcon:ae(V8,{}),onClick:a,children:c("Restore")}):null]})]}):null]})})}function kTe({open:e,onClose:o,access:t,waiting:r}){let{flushSave:a,reloadFromServer:n,docId:s}=J8(),[i,l]=ir(null),[d,f]=ir(!1),[u,p]=ir(null),[m,h]=ir(null),[I,w]=ir(!1),[S,v]=ir(null),[b,y]=ir(null),[k,L]=ir(!1),O=nTe(0),D=rTe(()=>{let R=++O.current;f(!1),t.list().then(P=>{R===O.current&&l(P)},()=>{R===O.current&&f(!0)})},[t]);aTe(()=>{e&&D()},[e,D]);let T=R=>{L(!1),STe(t,R.id).catch(()=>L(!0))},F=async()=>{if(!(!m||I)){w(!0),v(null);try{await BG({access:t,version:m.version,page:m.page,flushSave:a,reload:n}),h(null),o()}catch(R){v(R instanceof Gf?c("Your last changes did not save, so nothing was restored. Try again."):c("The version was not restored. Nothing changed. Try again."))}finally{w(!1)}}},C=sTe({onPress:()=>{F()},busy:I});return Dt(up,{children:[ae(lTe,{open:e,onClose:o,side:"right",size:"md",title:c("Version history"),description:Dt(up,{children:[c("Every Publish keeps a copy of the whole website: pages, menus and site styles.")," ",c("Products, prices and forms always show as they are now.")]}),footer:ae("span",{className:"sf-version-foot",children:c("The newest 30 are kept. Named versions are always kept.")}),children:Dt(pp,{gap:3,children:[k?ae(fp,{tone:"danger",onDismiss:()=>L(!1),children:c("The preview did not open. Try again.")}):null,d?ae(fp,{tone:"danger",action:ae(oi,{variant:"secondary",size:"sm",onClick:D,children:c("Try again")}),children:c("Version history did not load.")}):i===null?ae("p",{className:"sf-version-foot",children:c("Loading versions")}):i.length===0?ae("p",{className:"sf-version-foot",children:c("No versions yet. Every Publish from now on keeps one.")}):ae(mTe,{"aria-label":c("Versions"),spacing:"comfortable",children:i.map(R=>ae(vTe,{version:R,expanded:u===R.id,onToggle:()=>p(P=>P===R.id?null:R.id),onPreview:()=>T(R),onRestore:()=>{v(null),h({version:R,page:null})},onRestorePage:()=>{v(null),h({version:R,page:bTe(R,s)})},onName:()=>y(R)},R.id))})]})}),ae(wTe,{version:m?.version??null,page:m?.page??null,waiting:r,busy:C.busy===!0,error:S,onCancel:()=>h(null),onConfirm:C.onPress,onPage:R=>h(P=>P&&{...P,page:P.version.pages.find(_=>_.id===R)??P.page})}),ae(CTe,{version:b,onCancel:()=>y(null),onSave:async R=>{await t.name(b.id,R),y(null),D()}})]})}function Q8(){let{adapter:e,hasUnsavedEdits:o}=J8(),t=e.siteVersions,r=RG(),a=dm();return t?ae(kTe,{open:r,onClose:AG,access:t,waiting:o||a?.state==="changed"}):null}import{useEaselSession as MV}from"efficient-easel/screen/lib/session-context";import{buildPaletteSections as Zgo,categoryLabel as Jgo,paletteWithoutPinned as Qgo,pinnedSection as eIo}from"efficient-easel/screen/lib/document/palette-sections";var TTe={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 eV(e){return $(TTe,e)?.label}var oV=z0;function PTe(e){let o=_g.Ticker(e.nodeDefaults,e.newNodeId),{sectionBorder:t,...r}=o.props,a=Av.line?{sectionBorder:t}:{};return{...o,props:{...r,...a,sectionAccent:Av.sectionAccent}}}var ETe={Hero:{[nf]:{newChild:PTe,childLabel:En.Ticker}}},tV=Object.fromEntries(Object.entries(a4).map(([e,o])=>[e,Object.fromEntries(Object.entries(o).map(([t,r])=>[t,{...r,...$(ETe,e)?.[t]}]))]));function rV(e,o=0,t,r){let a=OTe(ATe(e,o,r),t),n=a?fT():null;return a&&n?_Te(a,n):a}function _Te(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 OTe(e,o){if(!e||e.source!=="container"||!o||!e_())return e;let t=Gp({data:o.data},o.id),r=typeof t?.type=="string"?Hp(t.type):[],a=e.choices??[],n=r.filter(s=>!a.some(i=>i.type===s.type));return n.length?{...e,choices:[...a,...n.map(s=>({type:s.type,label:s.label}))]}:e}function ATe(e,o,t){let r=t?$(tV,e)?.[t]:void 0;if(r)return{source:"section",slot:r.slot,choices:null,spec:r};let a=$(Xt,e);if(a)return{source:"section",slot:a.slot,choices:null,spec:a};let n=wp(e,o);if(n)return{source:"container",slot:n.slot,choices:n.choices,spec:null};let s=CK(e);return s?{source:"footer",slot:wK,choices:s,spec:null}:null}function aV(e,o=Up(e.type)){return $p(e.type)?o.map(t=>{let r=r_(e.type,t);return r===null?{slot:t,label:t,rung:!1}:{slot:t,label:c(r),rung:!0}}):null}import{useSyncExternalStore as RTe}from"react";var T0=null,P0=new Set;function nV(e){if(T0!==e){T0=e;for(let o of P0)o()}}function LTe(e){return P0.add(e),()=>{P0.delete(e)}}function CIo(){return RTe(LTe,()=>T0,()=>null)}function sV(e){return Bc(e)?.ownerId??null}function iV(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 lV="sf-editor-left-view";function cV(){if(typeof window>"u")return"pages";try{let e=window.localStorage.getItem(lV);return e==="sections"||e==="styles"?e:"pages"}catch{return"pages"}}function dV(e){if(!(typeof window>"u"))try{window.localStorage.setItem(lV,e)}catch{}}function fV(e,o){return e==="styles"&&!o?"sections":e}function pV(e,o){return e?"sections":o}import{copyNode as FTe}from"efficient-easel/data";function uV(e){let o=typeof e?.props?.id=="string"?e.props.id:null,t=pr(),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 mV={usedOn:e=>{let o=pr(),t=o?.sectionOf(e.props.id)??null;return!o||!t?null:o.usedOn(t)??[]},openPage:e=>Pu()?.openPage(e),adopt:(e,o)=>pr()?.adopt(e.props.id,o),nodeOf:e=>pr()?.place(e)??null,detach:e=>{let o=Pu()?.config;return o?FTe(e,o):e},removed:()=>Pu()?.reload()};import{sharedSectionsOf as iPe}from"efficient-easel/screen/lib/shared-sections";import{scrollPreviewToSection as lPe,scrollPreviewToTop as AV}from"efficient-easel/screen/lib/document/preview-dom";var BTe=xu.mediaFields,NTe=/video|poster|focal|phone/i;function DTe(e){return($(BTe,e)??[]).find(o=>!o.includes("[]")&&!NTe.test(o))??null}function MTe(e){let o=DTe(e.type);return e.type!==Y?o&&zp(e.type,e.props,o)?{fromData:!0}:o:ju(e.props)?{fromData:!0}:o}var hV={adds:{kind:"block",type:"ImageBlock"},kinds:["image"],pictureOf:MTe,create:(e,o)=>({type:"ImageBlock",props:{...o.nodeDefaults("ImageBlock"),id:o.newNodeId("ImageBlock"),src:e.url}})};var xV={Hero:"Full-screen opener with rotating slides.",HeroSingle:"Full-screen image or video with a headline.",IntroBleed:"Full-bleed intro image the next section scrolls over.",Collections:"Product collections in a tidy grid.",AlloyWheelsListing:"A full product-listing page: filter rail, sortable card grid and pagination, from the live catalog. Choose which product types it shows.",CatalogFilterBar:"Filters the collection grids below it \u2014 a sticky row of Pills (the default), or Columns, one per filter you switch on.",ProductGrid:"Hand-picked products in a tidy grid.",FitmentFinder:"A vehicle picker \u2014 make, model, year and trim resolve the OEM stock fitment live.",Gallery:"Two image galleries with tabs and filters.",GalleryB:"A wall of your photos or your products' pictures, with a click-to-open lightbox.",SpecStrip:"A thin one-line spec strip \u2014 small-caps items spread across the width, as a dark band or a bare hairline row.",ProductHero:"A product hero \u2014 image beside price, bullets and a buy button.",SpecTable:"A spec sheet \u2014 labeled rows of product specifications.",ProcessSteps:"A heading over columns, or alternating rows, of image, title, blurb and specs.",DetailRows:"Repeating full-width rows \u2014 eyebrow, title and copy beside a numbered close-up image, alternating sides each row.",FitmentTable:"A fitment table \u2014 per-size bolt patterns, offsets and load ratings, filterable by diameter.",CompatibleTyres:"The current product's compatible tyres \u2014 image, size, key specs and price per tyre, with an inquiry link. Display only.",RelatedProducts:"The current product's related items in a tidy row \u2014 the product page's built-in 'Pair with' cross-sell.",OrderSummary:"A display order-summary panel \u2014 items, totals and a note.",DeliveryOptions:"Delivery tiers as cards \u2014 name, window and price, one highlighted.",PaymentBadges:"A payment-methods trust strip with reassurance lines.",CheckoutCTA:"A centered 'ready to order?' headline with the checkout button.",Manifesto:"A bold brand statement beside a full-height image, with a stat strip.",ParagraphsA:"An editorial text panel with a stat strip and founders' note.",StatsParagraph:"An editorial heading and paragraph over a row of stat cards whose units and small labels take the main color.",Chart:"A titled chart \u2014 bars, line or donut \u2014 drawn from your own labeled data points.",Mockup:"A headline beside a stylized product-UI mockup card \u2014 spec sheet, fitment, portal, kanban and more.",Prose:"A plain editorial text section \u2014 eyebrow, heading and body copy.",Timeline:"An editorial aside beside a rail-marked timeline of dated entries.",TimelineTrack:"A horizontal year track of milestones \u2014 company history or roadmap.",Footprint:"A world map of your locations with a legend \u2014 designed here, sold worldwide.",TitleWithButtons:"A big headline beside a stack of call-to-action buttons.",Split:"Side-by-side image and text in two columns.",Cards:"A heading over a grid of free-text title-and-blurb cards.",FAQ:"A frequently-asked-questions accordion with a header.",Testimonials:"Customer quotes in a grid \u2014 the quote, a name and a role.",Masthead:"A journal issue header with a lead statement and contents.",Breadcrumb:"A slim trail showing where the reader is (Home / Journal\u2026).",CategoryBar:"A sticky row of category tabs with counts and links.",FeaturedCover:"A featured article \u2014 big cover image beside a headline and dek.",LongRead:"A long-form article spread with a pull-quote and cover image.",Series:"A section heading over a grid of column cards.",Subscribe:"A newsletter signup beside a list of recent issues.",SubscribeBlogs:"A newsletter signup beside your latest blog posts, pulled live.",Events:"Latest journal posts in a three-card row.",DocMasthead:"A page header: eyebrow, title, details and a deck.",DocTabs:"A sticky tab bar that marks the page you are on.",DocBody:"Long-form document body with an 'On this page' contents list.",DocMetaCards:"A three-up meta strip for the foot of a document.",Banner:"Wide promo strip with background image.",Stats:"Highlight key numbers \u2014 years, designs.",Countdown:"Hours, minutes and seconds to a set date and time, then one line.",KeyFeatures:"A theme-color chip and heading over a grid of short feature labels.",Logos:"A row of partner or brand logos.",Ticker:"A scrolling marquee of short phrases, full width.",Reviews:"Approved customer reviews in a star-rated card grid, pulled live.",SubmitBuild:"A 'Show us yours.' headline with a photo-submission form.",ReviewForm:"A write-a-review form \u2014 submissions wait for your approval before they show.",ContactRouting:"Pick who to reach, then a form that routes the message.",ContactLocations:"Your locations as a city gallery plus address and map cards.",SectionHeader:"A numbered section title with optional link.",Grid:"Multi-column container for blocks.",Flex:"An empty section. Add whatever you want inside.",Spacer:"Vertical breathing room between sections.",Divider:"A thin horizontal rule between sections.",CustomHTML:"Drop in your own sanitized HTML.",Heading:"A single heading line.",Text:"A paragraph of body copy.",ImageBlock:"A standalone image, at the width you set.",ButtonBlock:"A call-to-action button."};import{jsx as GI}from"react/jsx-runtime";import{useState as HTe}from"react";import{Button as WTe,Tooltip as $Te,toast as gV}from"efficient-shell/ui";import{TemplateIcon as UTe}from"efficient-easel/icons";import{useSettledAction as zTe}from"efficient-easel/easel";import{useScreenDocument as GTe}from"efficient-easel/screen/components/ScreenDocumentContext";function yV({enabled:e,reason:o,onSaved:t}){let{flushSave:r}=GTe(),[a,n]=HTe(!1),s=async()=>{if(!a){n(!0);try{await r()?t():gV.error(c(IV))}catch{gV.error(c(IV))}finally{n(!1)}}},i=zTe({onPress:()=>{s()},busy:a});return GI($Te,{side:"bottom",content:e?c("Save this website as a platform template"):c(o),children:GI("span",{className:"sf-tip-disabled",tabIndex:e?void 0:0,children:GI(WTe,{variant:"secondary",disabled:!e||i.busy,loading:i.busy,onClick:i.onPress,rightIcon:GI(UTe,{size:15}),children:c("Save as Template")})})})}var IV="Your last changes did not save, so the template was not made. Try again.";var jTe="Save your page changes first";function bV(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:jTe}:{visible:!0,enabled:!0}:{visible:!1,hiddenReason:"no-site"}:{visible:!1,hiddenReason:"not-operator"}:{visible:!1,hiddenReason:"no-console"}}var SV="storefront-editor:save-as-template";import{phoneKey as KTe,tabletKey as VTe}from"efficient-easel/draw";var YTe=[xa.top,VTe(xa.top),KTe(xa.top)],jI="ContactLocations",wV="ContactRouting",CV="CityPictures",vV="CityMaps",qTe=[{key:CV,label:"City pictures",piece:0,desc:"A wall of city photos, grouped by region. Each photo links to its city's card."},{key:vV,label:"City maps",piece:1,desc:"A card per city, grouped by region: address, phone, hours and a map."}];function kV(e=Os,o=kk){let t=H0.find(r=>r.sections.some(a=>a.type===wV))?.key;return!e.includes(jI)||!t?[]:qTe.filter(r=>!(o&&r.key===CV)).map(({key:r,label:a,desc:n,piece:s})=>({key:r,label:a,cat:t,after:wV,desc:n,alias:"locations offices stores branches",insert:i=>{let l=cn(jI);if(!l)return null;let d=ic(),f=Of(jI,l,s)(i.nodeDefaults,i.newNodeId,d);if(!f||!(o&&r===vV))return f;let u=Of(jI,l,0)(i.nodeDefaults,m=>`${m}-above`,d),p=Object.fromEntries(YTe.filter(m=>u?.props[m]!==void 0).map(m=>[m,u.props[m]]));return{...f,props:{...f.props,...p}}}}))}function TV(e=Os,o){return[...kV(e,o)]}function EV(e,{nodeDefaults:o,newNodeId:t,sectionLabel:r,blockIsOffered:a}){let n=Kl(e);if(n)return n(o,t,ic());if(VE(e)&&a(Y)&&a(hi)){let i=$(fr,e);return{type:Y,props:{...o(Y),id:t(Y),direction:"column",name:`${r(e)} section`,content:[{type:hi,props:{...o(hi),id:t(hi),...i?.headStyle?{headStyle:i.headStyle}:{},...i?.headRowGap?{rowGap:i.headRowGap}:{},...i?.headDescriptionSize?{descriptionSize:i.headDescriptionSize}:{},...Md(e)!==Md(hi)?{eyebrowLook:Md(e)}:{}}},{type:e,props:{...o(e),id:t(e),headPlacement:"own-box",...PV(e,t)}}]}}}if($(Xt,e)?.fixed===!0)return{type:e,props:{...o(e),id:t(e),layout:"boxes"}};let s=PV(e,t);return Object.keys(s).length?{type:e,props:{...o(e),id:t(e),...s}}:null}function PV(e,o){return e==="Cards"?{template:GE(t=>o(t))}:e===jE?{template:KE(t=>o(t))}:{}}import{useEffect as XTe,useState as ZTe}from"react";import{useEaselSession as JTe}from"efficient-easel/screen/lib/session-context";function _V(){let e=JTe().chrome?.products?.list,[o,t]=ZTe(null);return XTe(()=>{if(!e)return;let r=!1;return e().then(a=>{r||t(a)}),()=>{r=!0}},[e]),o}function HV({mode:e,open:o}){let{setSelectedHeroId:t,setSelectHandler:r}=z$(),a=DV().tree,n=e,s=n.kind==="ticker"?n.heroId:null,i=cc(l=>{l&&(o({kind:"ticker",heroId:l}),lPe(l))},[o]);return oa(()=>{t(s)},[s,t]),oa(()=>{r(i)},[r,i]),{partRows:(l,{rowClick:d})=>{let f=String(l.props.id);return l.type==="Hero"&&Rv(l.props)&&Bo(BV,{icon:Bo(Ys,{type:"ticker",size:13}),name:c($s),onSelect:()=>i(f),selected:s===f,rowProps:{onClick:d(()=>i(f))},words:a})}}}function WV({mode:e,select:o}){let{setSelectedHeroPart:t,setSelectHandler:r}=hI(),a=DV().tree,{appState:n,config:s}=NV(p=>p),i=QTe({data:n.data,config:s});i.current={data:n.data,config:s};let l=e,d=Ts.find(p=>ef[p]===l.kind),f=d&&"nodeId"in l?Ps(String(l.nodeId),d):null,u=cc(p=>{let m=xx(p);if(!m)return;let{data:h,config:I}=i.current,w=nPe(h,I,{kind:"node",id:m.nodeId});if(!w)return;let S={kind:ef[m.part],nodeId:m.nodeId};o({index:w.index,zone:w.zone},S)},[o]);return oa(()=>{t(f)},[f,t]),oa(()=>{r(u)},[r,u]),{partRows:(p,{rowClick:m})=>{let h=String(p.props.id),I=xH(p);if(I.length===0)return null;let w=b=>{let y=Ps(h,b.part);return Bo(BV,{icon:Bo(Ys,{type:b.part==="media"?"heroMedia":"heroImage",size:13}),name:c(b.label),onSelect:()=>u(y),selected:f===y,rowProps:{onClick:m(()=>u(y))},words:a},y)},[S,...v]=I;return mp(FV,{children:[w(S),v.length>0&&Bo(aPe,{children:v.map(w)})]})}}}function $V(e,o){return{partRows:(t,r)=>mp(FV,{children:[e.partRows?.(t,r),o.partRows?.(t,r)]})}}function cPe(e){let{adapter:o,capabilities:t,currentSlug:r,siteId:a,docId:n,hasUnsavedEdits:s,bridgeCapabilities:i,notifyParent:l,token:d}=KI(),{hasPreviewLink:f}=t,u=Ge(MV()).preview?.draftLink,p=j8(e.data),m=bV({hasTrustedConsole:!!d,canCreatePlatformTemplate:i.canCreatePlatformTemplate,capabilities:t,siteId:a,hasUnsavedEdits:s}),h=cc(()=>{!a||!r||l(SV,{siteId:a,slug:r})},[l,a,r]),I=H8({pageSlug:r,siteId:a,token:d}),w=o.previewHref?.(r)??I;return{barLead:()=>m.visible&&Bo(yV,{enabled:m.enabled,reason:m.enabled?"":m.disabledReason,onSaved:h}),barView:()=>f&&r&&Bo(U8,{liveHref:w,pageId:n??null,draftLink:u}),mainAction:p}}function dPe(e,o){let{capabilities:t,templateId:r,siteId:a,tokenRef:n,navigate:s}=KI(),{hasSiteTheme:i,explainsSiteSettings:l}=t,d=b=>o.setView(b),[f,u]=OV(ul[0].id),[p,m]=OV(!1),{surface:h,setSurface:I}=hj(),w=()=>{if(i){d("styles"),o.reveal(),AV();return}e.show(n0),e.reveal(),AV()},S={id:"pages",label:c("Pages"),icon:Bo(oPe,{}),panel:({onHide:b})=>Bo(nj,{activeSurface:h,onPreviewSurface:I,onNavigate:y=>{I(null),s(r?{kind:"template",id:r,pageSlug:y}:{kind:"page",slug:y,siteId:a??void 0})},onClose:b})},v=[];return!i&&l&&v.push({id:"appearance",label:c("Appearance"),icon:Bo(rPe,{}),active:e.kind==="website",onSelect:w}),i&&v.push({id:"styles",label:c("Styles"),icon:Bo(tPe,{}),panel:({onHide:b,notify:y})=>Bo(YK,{tokenRef:n,siteId:a??void 0,onClose:b,onNotify:y,tab:f,onTabChange:u,revealPageGroup:p,onPageGroupRevealed:()=>m(!1)})}),{railLead:[S],railTrail:v,resolveLeftView:b=>fV(b,i),openSettings:w,openStyles:()=>{u(jD),d("styles")},openPageStyles:i?()=>{u(hl),m(!0),d("styles"),o.reveal()}:l?()=>{e.show(NK),e.reveal()}:void 0}}function fPe(){let{navigate:e,siteId:o,reloadFromServer:t,docId:r}=KI(),a=NV(s=>s.config),n=MV();oa(()=>(tb({openPage:s=>e({kind:"page",slug:s.slug,siteId:o??void 0}),reload:()=>{t()},config:a}),()=>tb(null)),[e,o,t,a]),oa(()=>{let s=pr();if(!s||!r)return;let i=!1;return iPe(n).list().then(l=>{i||s.learn(l)}).catch(()=>{}),()=>{i=!0}},[r,n])}function UV(){let e=yu();return cc(o=>{tN(o,e)},[e])}function pPe(e,o,t,r){let{kind:a,open:n}=e,{selected:s,zoneOf:i}=o;oa(()=>{nV(s?.type==="BookingBox"&&s.props.region==="confirm"?sV(i(String(s.props.id))):null)},[s?.props.id]);let l=p8(e,o),{capabilities:{hasSiteSettings:d}}=KI();fPe();let{chat:f,setChat:u,setSelected:p,setSelectHandler:m}=mI(),h=cc(()=>n(DK),[n]),I=a==="chat";oa(()=>{p(I)},[I,p]),oa(()=>{m(h)},[m,h]);let{setOpenHandler:w}=Kf(),S=cc(()=>n(MK),[n]);oa(()=>{w(S)},[w,S]);let v=$V(HV(e),WV(e)),b=cPe(o),y=dPe(e,r);ZG(r);let k=t.device,L=UV();return{...v,...b,...y,hasOwnRows:O=>O.type===UI,ownRows:l.renderLocationTree,sectionPressed:l.sectionPressed,onCopyItem:L,wrap:O=>Bo(Uy.Provider,{value:!0,children:mp(sPe.Provider,{value:k,children:[O,Bo(Q8,{})]})}),addPanelRow:O=>d?mp("div",{className:"sf-addside-sitewide",children:[Bo("span",{className:"sf-addside-sitewide-glyph","aria-hidden":"true",children:Bo(Ys,{type:"chat",size:16})}),mp("button",{type:"button",className:"sf-addside-sitewide-name",onClick:()=>{O(),h()},children:[c("Live chat"),Bo("span",{className:"sf-addside-sitewide-desc",children:c("A chat bubble on every page")})]}),Bo(ePe,{checked:f.enabled,onChange:D=>u({enabled:D}),ariaLabel:c("Show the chat bubble on the whole site")})]}):void 0}}var RV=null,E0=new WeakMap;function uPe(e){let o=HO();if(!e||!o)return e;RV!==o&&(RV=o,E0=new WeakMap);let t=E0.get(e);return t||(t={...e,choices:e.choices?e.choices.map(r=>({...r,label:c(r.label)})):null,spec:e.spec?{...e.spec,addLabel:c(e.spec.addLabel),...e.spec.childLabel?{childLabel:c(e.spec.childLabel)}:{}}:null},E0.set(e,t)),t}var mPe={isLockedBlock:(e,o)=>Kg(e,o)||!!(o&&pr()?.heldElsewhere(o.props.id)),duplicateBlocked:BI,nestDepth:(e,o,t)=>o===Qp?eu(e,t):0,newSectionNode:EV,canAddTo:(e,o,t,r)=>uPe(rV(e,o,r,t)),blockIsOffered:B6,slotsOf:aV,resolveOnInsert:!0},hPe=new Proxy(xV,{get:(e,o)=>{let t=Reflect.get(e,o);return typeof t=="string"?c(t):t}}),xPe={labelAtLevel:(e,o,t)=>c(qI(e,o,t)),descriptions:hPe,categoryLabel:e=>{let o=eV(e);return o===void 0?void 0:c(o)},firstSection:oV,blockRowName:iV,rowName:Vg,plainText:na,Icon:Ys,Thumbnail:KK,useProducts:_V,presets:TV()},gPe={desktop:2e3,tablet:800,mobile:390},LV="desktop",IPe={options:fj,initial:LV,fluid:LV,fluidMin:Xo,widths:gPe,hidesPerView:!0},yPe={read:cV,write:e=>dV(e),forSelection:(e,o)=>pV(e,o)},bPe={first:vt,last:Qe,firstGroup:Je,lastGroup:ze,isSectionGroup:_i,sectionGroupZone:i1,panelOf:e=>e===vt?BK:null,get sharedReach(){return js()?wPe:void 0},get shared(){return pr()?mV:void 0},get groupTab(){return js()?vK:void 0},get groupBadge(){return js()?e0({type:ze})??void 0:void 0},get changeNotice(){return js()?kK():void 0},get band(){return js()?SPe:void 0},get groupAccepts(){return js()?d1:void 0}},SPe={foldable:!0},wPe=e=>e0(e)??uV(e);function CPe(e){return{...$V(HV(e),WV(e)),onCopyItem:UV(),openSettings:()=>e.show(n0)}}function vPe(e,o){w8(e,o),F8()}var Lbo={useOwnerName:xl,useDocumentLabel:XD,useBridges:pPe,useStandaloneBridges:CPe,useDocumentPass:vPe,blockRules:mPe,blockLook:xPe,devices:IPe,leftView:yPe,pinned:bPe,Canvas:GG,canvasDrag:{media:hV},Inspector:WK};export{iT as a,Ge as b,Mi as c,kx as d,OGe as e,Jr as f,Qr as g,To as h,$Ge as i,Fv as j,F8e as k,Sf as l,wf as m,U5 as n,z5 as o,Qx as p,B8e as q,efe as r,G5 as s,N8e as t,w6 as u,cQe as v,PPe as w,ce as x,c as y,st as z,C6 as A,pQe as B,Ui as C,Ho as D,iL as E,Ot as F,XRe as G,dL as H,fL as I,gm as J,Im as K,xL as L,hS as M,xS as N,oLe as O,tLe as P,uF as Q,rs as R,Bm as S,ZLe as T,Fe as U,mF as V,Vi as W,yb as X,Sb as Y,eA as Z,wb as _,lY as $,kEe as aa,Nu as ba,iA as ca,cY as da,dY as ea,fY as fa,EEe as ga,Ga as ha,Dv as ia,YGe as ja,Ox as ka,Hn as la,Rc as ma,XO as na,ZO as oa,g7 as pa,ZPe as qa,jy as ra,HM as sa,WM as ta,PLe as ua,$r as va,P1 as wa,$n as xa,YL as ya,qL as za,ed as Aa,MZ as Ba,SL as Ca,jr as Da,kL as Ea,xa as Fa,yS as Ga,bS as Ha,P4 as Ia,_b as Ja,D_e as Ka,M_e as La,Va as Ma,W_e as Na,$_e as Oa,Ab as Pa,NA as Qa,jc as Ra,U_e as Sa,BA as Ta,DA as Ua,z_e as Va,Gc as Wa,Rb as Xa,G_e as Ya,j_e as Za,K_e as _a,V_e as $a,uM as ab,Is as bb,o3e as cb,t3e as db,r3e as eb,mM as fb,a3e as gb,Bt as hb,Il as ib,id as jb,Vr as kb,Zu as lb,UA as mb,pa as nb,zA as ob,Ro as pb,Fs as qb,Q as rb,Ol as sb,re as tb,ee as ub,se as vb,ie as wb,ge as xb,Tje as yb,Ie as zb,Rl as Ab,Ll as Bb,pf as Cb,uf as Db,A4 as Eb,Oje as Fb,Wce as Gb,R4 as Hb,Lje as Ib,Fje as Jb,L4 as Kb,QC as Lb,RM as Mb,bse as Nb,Md as Ob,LM as Pb,aWe as Qb,Hv as Rb,Dje as Sb,Mje as Tb,Hje as Ub,Wje as Vb,$je as Wb,Uje as Xb,T3e as Yb,jh as Zb,Nd as _b,P3e as $b,E3e as ac,CM as bc,YC as cc,ese as dc,ose as ec,_3e as fc,tse as gc,O3e as hc,C2 as ic,S6e as jc,R2 as kc,w6e as lc,C6e as mc,v6e as nc,Mx as oc,zv as pc,D4 as qc,Hx as rc,Qje as sc,Zce as tc,Jce as uc,Qce as vc,eKe as wc,Ct as xc,Ms as yc,Ml as zc,MKe as Ac,HKe as Bc,WKe as Cc,W2 as Dc,dx as Ec,Rie as Fc,R6e as Gc,C5 as Hc,v5 as Ic,k5 as Jc,a8e as Kc,MX as Lc,xr as Mc,cRe as Nc,dRe as Oc,fRe as Pc,pRe as Qc,um as Rc,uRe as Sc,Om as Tc,nd as Uc,QL as Vc,eF as Wc,oF as Xc,BLe as Yc,Je as Zc,ze as _c,Jy as $c,_i as ad,l1 as bd,vu as cd,P5 as dd,W8e as ed,$8e as fd,og as gd,K5 as hd,vw as id,Id as jd,qr as kd,co as ld,Pw as md,BB as nd,NB as od,Ew as pd,yd as qd,yh as rd,Pd as sd,nC as td,vr as ud,wa as vd,NN as wd,ms as xd,mC as yd,gC as zd,$d as Ad,NM as Bd,DM as Cd,tv as Dd,ws as Ed,ZM as Fd,WWe as Gd,$We as Hd,UWe as Id,jd as Jd,Yt as Kd,qWe as Ld,L3e as Md,K3e as Nd,XC as Od,V3e as Pd,bs as Qd,Kh as Rd,go as Sd,s$e as Td,r2 as Ud,n2 as Vd,s2 as Wd,fo as Xd,Ye as Yd,ag as Zd,t3 as _d,iVe as $d,ng as ae,r3 as be,pVe as ce,EVe as de,m3 as ee,yk as fe,h3 as ge,AVe as he,RVe as ie,LVe as je,bk as ke,FVe as le,BVe as me,x3 as ne,Rfe as oe,dg as pe,I7e as qe,ux as re,Gie as se,Sv as te,zfe as ue,R7e as ve,j3 as we,K3 as xe,L7e as ye,F7e as ze,Rw as Ae,YDe as Be,Lw as Ce,WB as De,K7e as Ee,aW as Fe,nW as Ge,pYe as He,CYe as Ie,vYe as Je,kYe as Ke,Wk as Le,KLe as Me,US as Ne,zS as Oe,GS as Pe,uW as Qe,npe as Re,spe as Se,pg as Te,EYe as Ue,_Ye as Ve,o9e as We,BW as Xe,t9e as Ye,NW as Ze,a9e as _e,GW as $e,jW as af,Hpe as bf,qW as cf,b9e as df,xg as ef,_9e as ff,Ef as gf,R9e as hf,o$ as if,F9e as jf,t$ as kf,r$ as lf,D9e as mf,Dd as nf,yse as of,gg as pf,i$ as qf,$9e as rf,U9e as sf,z9e as tf,G9e as uf,Oa as vf,q9e as wf,Ig as xf,Q9e as yf,bg as zf,X3e as Af,Z3e as Bf,Ss as Cf,J3e as Df,lR as Ef,_D as Ff,g4e as Gf,I4e as Hf,vae as If,y4e as Jf,b4e as Kf,AD as Lf,zC as Mf,$h as Nf,rM as Of,Qd as Pf,Ut as Qf,U0e as Rf,fb as Sf,Hc as Tf,j0e as Uf,j7 as Vf,W1 as Wf,K0e as Xf,Un as Yf,X7 as Zf,J0e as _f,Q0e as $f,Wc as ag,eEe as bg,oEe as cg,gb as dg,DUe as eg,MUe as fg,HUe as gg,WUe as hg,dle as ig,$Ue as jg,xx as kg,of as lg,jUe as mg,Pv as ng,wH as og,CH as pg,vv as qg,gle as rg,KUe as sg,gx as tg,tf as ug,yx as vg,VUe as wg,YUe as xg,Ix as yg,qUe as zg,XUe as Ag,Vy as Bg,it as Cg,JO as Dg,I7 as Eg,y7 as Fg,o0e as Gg,b7 as Hg,S7 as Ig,t0e as Jg,r0e as Kg,a0e as Lg,n0e as Mg,PH as Ng,rf as Og,af as Pg,Sx as Qg,_H as Rg,El as Sg,OH as Tg,wx as Ug,Cx as Vg,vx as Wg,AH as Xg,RH as Yg,LH as Zg,FH as _g,BH as $g,MH as ah,HH as bh,kze as ch,Tze as dh,Pze as eh,Eze as fh,hr as gh,Mle as hh,jH as ih,Wle as jh,VH as kh,YH as lh,rx as mh,qle as nh,eGe as oh,e4 as ph,iGe as qh,yGe as rh,bGe as sh,F$e as th,Kd as uh,H$e as vh,W$e as wh,y2 as xh,sJ as yh,Kr as zh,_Le as Ah,Af as Bh,Aa as Ch,eU as Dh,Fg as Eh,Reo as Fh,Leo as Gh,zeo as Hh,Geo as Ih,dhe as Jh,vT as Kh,cU as Lh,jeo as Mh,fU as Nh,pU as Oh,gU as Ph,ghe as Qh,bhe as Rh,moo as Sh,Poo as Th,Eoo as Uh,Nf as Vh,_oo as Wh,Ooo as Xh,PT as Yh,Aoo as Zh,Yd as _h,hv as $h,lx as ai,nto as bi,kl as ci,Z6e as di,J6e as ei,eH as fi,oxe as gi,fz as hi,Mf as ii,Cro as ji,kro as ki,DT as li,kz as mi,Cg as ni,nZe as oi,lZe as pi,z$ as qi,Xk as ri,G$ as si,j$ as ti,fZe as ui,K$ as vi,kg as wi,yZe as xi,Y$ as yi,Z$ as zi,q$ as Ai,Mm as Bi,Ia as Ci,Wo as Di,At as Ei,cd as Fi,qi as Gi,iFe as Hi,lFe as Ii,dFe as Ji,fFe as Ki,pFe as Li,uFe as Mi,mFe as Ni,xFe as Oi,Xi as Pi,ns as Qi,wF as Ri,qS as Si,$J as Ti,CF as Ui,ZS as Vi,X1 as Wi,Z1 as Xi,bEe as Yi,Mu as Zi,Hu as _i,zc as $i,gA as aj,MEe as bj,HEe as cj,CA as dj,kb as ej,ZY as fj,HA as gj,Q_e as hj,sOe as ij,iOe as jj,C9 as kj,gt as lj,Vc as mj,Gb as nj,jb as oj,XOe as pj,aR as qj,ZOe as rj,JOe as sj,QOe as tj,dR as uj,pR as vj,ma as wj,bR as xj,nS as yj,OR as zj,vAe as Aj,RR as Bj,NR as Cj,DR as Dj,MR as Ej,HR as Fj,WR as Gj,$R as Hj,iS as Ij,TX as Jj,PX as Kj,Zc as Lj,lS as Mj,zR as Nj,KAe as Oj,_X as Pj,VAe as Qj,YAe as Rj,qAe as Sj,jR as Tj,QAe as Uj,RX as Vj,eRe as Wj,oRe as Xj,FX as Yj,cS as Zj,NX as _j,nRe as $j,DX as ak,sRe as bk,pS as ck,SRe as dk,XR as ek,UX as fk,CRe as gk,Jc as hk,tZ as ik,zRe as jk,KZ as kk,ILe as lk,YZ as mk,yLe as nk,bLe as ok,SLe as pk,Ki as qk,Lm as rk,$Le as sk,ULe as tk,zLe as uk,UJ as vk,zJ as wk,yFe as xk,VJ as yk,YJ as zk,bFe as Ak,SFe as Bk,wFe as Ck,CFe as Dk,vFe as Ek,AFe as Fk,RFe as Gk,LFe as Hk,FFe as Ik,BFe as Jk,NFe as Kk,DFe as Lk,MFe as Mk,HFe as Nk,WFe as Ok,$Fe as Pk,vF as Qk,UFe as Rk,zFe as Sk,tn as Tk,rQ as Uk,ls as Vk,ENe as Wk,_Ne as Xk,ONe as Yk,ANe as Zk,RNe as _k,LNe as $k,FNe as al,MNe as bl,HNe as cl,cee as dl,WNe as el,$Ne as fl,UNe as gl,zNe as hl,GNe as il,jNe as jl,KNe as kl,VNe as ll,uee as ml,xw as nl,YNe as ol,Qi as pl,yt as ql,br as rl,nB as sl,sB as tl,ol as ul,qNe as vl,Hee as wl,XNe as xl,ZNe as yl,JNe as zl,QNe as Al,eDe as Bl,oDe as Cl,tDe as Dl,xB as El,rDe as Fl,loe as Gl,aDe as Hl,nDe as Il,yB as Jl,sDe as Kl,iDe as Ll,lDe as Ml,cDe as Nl,dDe as Ol,pDe as Pl,ww as Ql,uDe as Rl,SB as Sl,mDe as Tl,hDe as Ul,nl as Vl,CB as Wl,xDe as Xl,gDe as Yl,IDe as Zl,yDe as _l,wno as $l,Cno as am,vno as bm,Vg as cm,Zz as dm,YT as em,jno as fm,Kno as gm,jIe as hm,KIe as im,vso as jm,kso as km,Tso as lm,Pso as mm,Qg as nm,eI as om,Zso as pm,IG as qm,SG as rm,wG as sm,CG as tm,Ulo as um,pI as vm,sj as wm,ij as xm,cj as ym,uI as zm,bco as Am,Sco as Bm,mI as Cm,aSe as Dm,Aco as Em,Kf as Fm,Bco as Gm,hj as Hm,Ei as Im,h7 as Jm,YPe as Km,qPe as Lm,Juo as Mm,Quo as Nm,emo as Om,i4 as Pm,Mco as Qm,hI as Rm,MPe as Sm,Boe as Tm,Noe as Um,Doe as Vm,zB as Wm,nMe as Xm,Xw as Ym,eD as Zm,RHe as _m,ED as $m,A4e as an,R4e as bn,Dh as cn,vne as dn,kne as en,A5e as fn,APe as gn,jne as hn,SM as in,y3e as jn,b3e as kn,Jne as ln,S3e as mn,w3e as nn,Gh as on,C3e as pn,Cl as qn,c2 as rn,d2 as sn,S2 as tn,x6e as un,H2 as vn,E6e as wn,$2 as xn,wv as yn,Vie as zn,Zie as An,cUe as Bn,tXe as Cn,hXe as Dn,yXe as En,_$ as Fn,CXe as Gn,vXe as Hn,NXe as In,DXe as Jn,XXe as Kn,eZe as Ln,_f as Mn,ime as Nn,ZZe as On,nJe as Pn,wJe as Qn,CJe as Rn,GJe as Sn,m6 as Tn,BPe as Un,Sfo as Vn,vj as Wn,Qe as Xn,FI as Yn,Lr as Zn,ZK as _n,sp as $n,JK as ao,QK as bo,rxo as co,axo as do,B8 as eo,C0 as fo,N8 as go,rV as ho,CIo as io,Lbo as jo};
|