efficient-storefront-blocks 0.111.0 → 0.113.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 +37 -0
- package/dist/chunks/{EditorPreviewCheckout-C42GCC3T.js → EditorPreviewCheckout-QJWDGMO7.js} +4 -4
- package/dist/chunks/{SiteEditorProvider-P4HVFXUX.js → SiteEditorProvider-6V6EJFTL.js} +1 -1
- package/dist/chunks/{chunk-FRCI3FAV.js → chunk-7UBABYIY.js} +1 -1
- package/dist/chunks/{chunk-RFFTWKCU.js → chunk-7ZIXVUD7.js} +20 -20
- package/dist/chunks/{chunk-MVJVIU2F.js → chunk-IY3JZXIQ.js} +1 -1
- package/dist/chunks/chunk-TNITUVMH.js +1 -0
- package/dist/chunks/{fitment-data-EGBXHTFW.js → fitment-data-7BV7JBDK.js} +1 -1
- package/dist/editor/lib/document/blocks/commerce/ProductHero/fields.js +1 -1
- package/dist/editor/lib/document/blocks/commerce/index.d.ts +1 -1
- package/dist/editor/lib/document/blocks/service/index.d.ts +1 -1
- package/dist/editor/lib/storefront-editor-words.d.ts +2 -0
- package/dist/editor/lib/storefront-editor-words.js +1 -1
- package/dist/index.js +31 -29
- package/dist/links.js +1 -1
- package/dist/render/built-with.json +1 -1
- package/dist/render/components/CartDrawer.js +1 -1
- package/dist/render/components/CartLineThumbnail.d.ts +3 -2
- package/dist/render/components/ConsentProvider.js +1 -1
- package/dist/render/components/DefaultProductHero.js +1 -1
- package/dist/render/components/DetailRows.d.ts +1 -0
- package/dist/render/components/DetailRows.js +1 -1
- package/dist/render/components/Events.js +1 -1
- package/dist/render/components/OpeningHours.js +1 -1
- package/dist/render/components/ProductHeroPanel.d.ts +2 -1
- package/dist/render/components/ProductHeroPanel.js +1 -1
- package/dist/render/components/booking/BookingFormState.js +1 -1
- package/dist/render/components/booking/BookingRegions.js +1 -1
- package/dist/render/components/card-pieces/CardBuyButton.js +1 -1
- package/dist/render/components/card-pieces/CardSave.js +1 -1
- package/dist/render/components/cart/drawer-parts.d.ts +3 -3
- package/dist/render/components/catalog/ShopperChips.js +1 -1
- package/dist/render/components/checkout/CheckoutPageClient.js +1 -1
- package/dist/render/components/pdp-dynamic/DynamicProductHero.js +1 -1
- package/dist/render/components/useTyreCatalog.d.ts +2 -1
- package/dist/render/components/useTyreCatalog.js +3 -1
- package/dist/render/lib/booking/appointment-time.d.ts +2 -2
- package/dist/render/lib/booking/appointment-time.js +1 -1
- package/dist/render/lib/checkout/hold-time.d.ts +1 -0
- package/dist/render/lib/checkout/hold-time.js +1 -0
- package/dist/render/lib/content/article-page-seed.js +1 -1
- package/dist/render/lib/content/booking-card-seed.js +1 -1
- package/dist/render/lib/content/contact-card-seed.js +1 -1
- package/dist/render/lib/content/event-post.js +1 -1
- package/dist/render/lib/content/facet-row-seed.js +1 -1
- package/dist/render/lib/content/filter-card-seed.js +1 -1
- package/dist/render/lib/content/hero-buy-seed.d.ts +11 -0
- package/dist/render/lib/content/hero-buy-seed.js +1 -0
- package/dist/render/lib/content/hero-option-seed.js +1 -1
- package/dist/render/lib/content/hero-price-seed.js +1 -1
- package/dist/render/lib/content/host-part-seed.d.ts +2 -0
- package/dist/render/lib/content/host-part-seed.js +1 -0
- package/dist/render/lib/content/menu-card-seed.js +1 -1
- package/dist/render/lib/content/product-card-seed.js +1 -1
- package/dist/render/lib/content/rail-row-seed.js +1 -1
- package/dist/render/lib/content/seed-ids.d.ts +6 -0
- package/dist/render/lib/content/seed-ids.js +1 -0
- package/dist/render/lib/document/blocks/commerce/ProductBuyButton/meta.js +1 -1
- package/dist/render/lib/document/blocks/commerce/ProductHero/meta.d.ts +4 -0
- package/dist/render/lib/document/blocks/commerce/ProductHero/meta.js +1 -1
- package/dist/render/lib/document/blocks/commerce/ProductHero/render.js +1 -1
- package/dist/render/lib/document/blocks/service/subscribe.js +1 -1
- package/dist/render/lib/document/card-templates.js +1 -1
- package/dist/render/lib/document/current-record.d.ts +1 -0
- package/dist/render/lib/document/current-record.js +1 -1
- package/dist/render/lib/document/document-nodes.d.ts +6 -10
- package/dist/render/lib/document/document-nodes.js +1 -1
- package/dist/render/lib/reader-zone.d.ts +1 -0
- package/dist/render/lib/reader-zone.js +1 -0
- package/dist/render/lib/sections/opening-hours.d.ts +1 -1
- package/dist/render/lib/sections/opening-hours.js +1 -1
- package/dist/render/lib/sections/product-grid-pages.d.ts +1 -0
- package/dist/render/lib/wheels/shopper-first-paint.d.ts +2 -2
- package/dist/render/lib/zone.d.ts +2 -0
- package/dist/render/lib/zone.js +1 -0
- package/dist/words.d.ts +2 -0
- package/dist/words.js +1 -1
- package/package.json +2 -2
- package/dist/chunks/chunk-CPAF23MT.js +0 -1
- package/dist/render/lib/content/article-body-seed.d.ts +0 -9
- package/dist/render/lib/content/article-body-seed.js +0 -1
- /package/dist/chunks/{chunk-GB6OHYUY.js → chunk-37WWMI27.js} +0 -0
- /package/dist/chunks/{chunk-RFFTWKCU.js.LEGAL.txt → chunk-7ZIXVUD7.js.LEGAL.txt} +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import{$ as Pa,$a as Ea,$c as Th,$d as Lv,Ac as pv,Ad as lc,Ae as cc,Af as Vr,Ag as Ik,Ah as Ok,Ai as Pc,B as wC,Ba as fh,Bc as vh,Bd as Vn,Bf as ak,Bg as zh,Bi as zk,Ca as DC,Cb as io,Cd as _h,Ce as We,Cf as nk,Cg as gk,Ch as _k,Ci as $k,Da as NC,Db as av,Dd as Tl,De as ke,Df as Jt,Dg as $h,E as qd,Ea as so,Eb as nv,Ee as zv,Ef as Jn,Eg as bk,Eh as es,F as CC,Fa as MC,Fe as qn,Fg as yk,Fh as Ak,G as vC,Ga as HC,Gb as sv,Gc as G,Gd as vv,Ge as $v,Gg as Sk,Gh as bc,H as Sl,Ha as WC,Hc as ne,Hd as kv,He as fc,Hf as sk,Hg as mc,Hh as Rk,I as sh,Ia as UC,Ib as gh,Ic as kh,Id as Tv,Ie as Aa,If as Hh,J as He,Ja as zC,Jc as L,Je as Gv,Jg as wk,K as te,Ka as $C,Kc as Do,La as GC,Lc as Cr,Ld as Pv,Lf as lk,Lh as Vh,Ma as jC,Mc as uv,Me as Kr,Mf as Wh,Mg as Gh,N as kC,Na as KC,Nc as U,Nd as No,Ne as Bh,Ng as Tr,O as $r,Oa as VC,Oc as nc,Od as Ft,Og as hc,P as Hn,Pa as Jd,Pc as Ko,Pg as qo,Q as TC,Qa as Qd,Qc as mv,Qg as we,Qh as Lk,R as br,Ra as qC,Rb as bh,Rc as Lt,Rd as Ev,Rg as xc,Rh as yc,S as lh,Sa as YC,Sc as Gn,Sd as Ah,Sg as Ck,T as Wn,Tb as lv,Tc as jr,Te as jv,Tg as Ol,Ua as XC,Uc as vr,Ue as Kv,Ug as tt,Va as ZC,Ve as Dh,Vg as _l,Wa as ph,Wc as qe,Wd as Ov,We as xo,Wf as Ra,Wg as Ic,X as wl,Xc as hv,Xd as _v,Xe as Vv,Xg as Qn,Xh as Sc,Ya as JC,Yd as Av,Ye as qv,Yf as ik,Yg as jh,Z as PC,Za as uh,Zc as xv,Zd as Rv,Ze as Yn,_ as EC,_a as zn,_b as Oa,_c as Iv,_e as Vo,_f as dk,_g as gc,a as Vd,ab as mh,ac as yh,ad as gv,af as Xn,ag as ck,ai as os,b as Se,bb as hh,bc as Sh,be as Fv,bf as Zn,bg as fk,c as So,ca as OC,cb as xh,ce as Bv,cg as pk,d as gr,da as Yd,db as QC,dc as rc,dg as uk,ea as _C,eb as ev,ed as bv,ee as Dv,ef as Yv,ei as qr,f as Rt,fa as Xd,fb as ov,fd as yv,fg as Qt,g as yl,ga as AC,gb as Ih,gd as Ph,gg as mk,gi as Yr,ha as RC,hb as tv,hf as El,hi as wc,i as xC,ia as LC,ib as Gr,ic as wh,id as Eh,ie as Nv,ja as Cl,jc as ac,jd as Oh,jf as Xv,jg as hk,jh as Kh,ji as Fk,k as IC,ka as yr,kc as iv,ke as Zt,kf as Nh,kg as er,la as FC,lb as vl,lc as dv,ld as _a,le as Pl,lg as Uh,mc as cv,md as jn,me as Rh,n as gC,na as q,nb as $n,nc as Ch,nd as oo,ne as Mv,nf as pc,ni as Bk,oa as Zd,ob as wr,oc as fv,of as Zv,og as xk,pb as ec,pd as kl,pf as Jv,pi as Dk,qd as kr,qe as ic,qf as Qv,r as bC,ra as pt,rd as Kn,re as Hv,rf as uc,sa as Sr,sd as Sv,se as Lh,sf as ek,t as Xt,ta as Un,td as wv,tf as ok,ti as he,ua as ih,ub as rv,uh as vk,va as BC,ve as dc,vf as tk,vh as kk,w as K,wa as dh,we as Wv,wf as Mh,wh as Tk,x as $e,xa as ch,xb as oc,xe as Fh,xi as Wk,y as yC,yd as sc,yf as rk,yh as Pk,yi as Uk,z as SC,zb as tc,zd as Cv,ze as Uv,zf as Wo,zh as Ek}from"./chunk-FRCI3FAV.js";import{c as Nk,d as Cc,e as vc,i as Mk,j as ut,k as kc,l as Tc,m as Hk,q as qh}from"./chunk-GB6OHYUY.js";var jk="en",Ec=null,Kk=jk,Vk=null;function rpe(e,o,t){Ec=e??null,Kk=o||jk,Vk=t??null}function de(){return Vk}function Yh(){return Kk}function qk(){return Ec}function Gk(e,o){return o?e.replace(/\{([A-Za-z][A-Za-z0-9_]*)\}/g,(t,r)=>$e(o,r)?String(K(o,r)):t):e}function i(e,o){let t=Ec?K(Ec,e):void 0;if(typeof t=="function"){try{let r=Se(t(o??{}));if(r)return r}catch{}return Gk(e,o)}return Gk(Se(t)??e,o)}function Uo(e,o,t,r){return i(t===1?e:o,{...r,n:t})}import{jsx as Xh,Fragment as d3,jsxs as c3}from"react/jsx-runtime";import{createContext as f3,useContext as p3}from"react";var u3={mirrorHostStyles:!0,css:null,fontHrefs:[]},Yk=f3(u3);function lpe({value:e,children:o}){return Xh(Yk.Provider,{value:e,children:o})}function Zh(){return p3(Yk)}function Xk(){let{css:e,fontHrefs:o}=Zh();return c3(d3,{children:[o.map(t=>Xh("link",{rel:"stylesheet",href:t},t)),e?Xh("style",{"data-sf-canvas-css":"",children:e}):null]})}import{jsx as m3}from"react/jsx-runtime";import{createContext as h3,useContext as x3}from"react";var Zk=h3(void 0);function fpe({metadata:e,children:o}){return m3(Zk.Provider,{value:e,children:o})}var Jk=()=>x3(Zk);import{jsx as To,Fragment as G5,jsxs as Gd}from"react/jsx-runtime";import{useCallback as Il,useEffect as mr,useRef as _fe,useState as W5}from"react";import{SettingsSwitch as Afe}from"efficient-easel/panel";import{PagesIcon as Rfe,StylesIcon as Lfe}from"efficient-easel/rail";import{PaletteIcon as Ffe}from"efficient-shell/icons/efficient";import{Subtree as Bfe,TreeRow as j5}from"efficient-easel/tree";import{useEasel as K5}from"efficient-easel/easel";import{useEaselStrings as V5}from"efficient-easel/strings";import{createContext as I3,useContext as g3}from"react";var Jh=I3(!1),mpe=()=>g3(Jh);import{useMemo as b3,useRef as y3}from"react";import{useEaselApi as S3}from"efficient-easel/easel";import{useSectionOps as w3}from"efficient-easel/screen/lib/document/use-section-ops";function Oc(){let e=S3(),o=w3(),t=y3(o);return t.current=o,b3(()=>({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 x7}from"efficient-easel/draw";import{insertAt as I7,moveTo as g7,removeAt as b7}from"efficient-easel/fields";import{useSyncExternalStore as d7}from"react";import{isNodeList as ex}from"efficient-easel/data";import{isNodeList as C3}from"efficient-easel/data";function ts(e,o){let t=null;return e.forEach((r,a)=>{let n=o(r,a);n!==r&&((t??=e.slice())[a]=n)}),t??e}function rs(e,o){let t=null;for(let[r,a]of Object.entries(e.props??{})){if(!C3(a))continue;let n=o(a,r);n!==a&&((t??={...e.props})[r]=n)}return t?{...e,props:t}:e}var Qk="Flex";function as(e,o){return Zt(e)?typeof e?.[Rt]=="string"?Qh(o?.[Rt]):"":Qh(e?.[Rt])}var Qh=e=>typeof e=="string"?e.trim():"",v3=e=>e.type===Ft&&Array.isArray(e.props?.[Ah])&&e.props[Ah].some(o=>Qh(o?.[Rt])!==""),k3=new Intl.NumberFormat("en-US");function T3(e){return/^\d+$/.test(e)?k3.format(Number(e)):e}function Tpe(e,o){let t=o?o.find(r=>r.key===e)?.value:bC(yl).find(r=>r.key===e)?.value;return t===void 0?null:T3(t)}var P3={[Rt]:"any"};function ox(e,o=!1){let t=e.props;if(!t)return{node:e,names:!1};let r=e.type==="Text"&&(as(t)!==""||o&&as(t,P3)!==""),a=o||v3(e),n=rs(e,l=>ts(l,d=>{let c=ox(d,a);return c.names&&(r=!0),c.node})).props;if(e.type!==Qk)return{node:n===t?e:{...e,props:n},names:r};let s=Xt(n);if(r&&!s&&(n={...n,[So]:yl}),!r&&s===yl){let{[So]:l,...d}=n;n=d}return{node:n===t?e:{...e,props:n},names:!1}}function eT(e,o,t){for(let r of e){if(r?.props?.id===o)return t;for(let a of Object.values(r?.props??{})){if(!ex(a))continue;let n=eT(a,o,r.type===Qk?r:t);if(n!==void 0)return n}}}function Ppe(e,o){if(!ex(e))return!0;let t=eT(e,o,null);if(t===void 0)return!0;if(t===null)return!1;let r=Xt(t.props);return!r||r===yl}function oT(e){let o=e?.content;if(!ex(o))return e;let t=o.map(r=>ox(r));return t.every((r,a)=>r.node===o[a])?e:{...e,content:t.map(r=>r.node)}}function tT(e){return ox(e).node}import{jsx as k,jsxs as Rr,Fragment as Fr}from"react/jsx-runtime";import{cloneElement as cg,createContext as Sj,useContext as pO,useEffect as wj,useId as uO,useRef as ii,useState as di}from"react";import{useEasel as qf,useSelectedHost as Ya}from"efficient-easel/easel";import{PIN_LENGTH as Gf,toDateKey as Iwe,fromDateKey as gwe}from"efficient-shell/format";function E3(e){return!!e&&typeof e=="object"&&!Array.isArray(e)&&typeof e.src=="string"}function zo(e){return typeof e=="string"?e:E3(e)?e.src:""}function Ope(e,o,t){return tx(e,o.split("."),t)}function tx(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 l=e;if(!(s in l))return e;let d=l[s];if(n){if(!Array.isArray(d))return e;let f=!1,u=d.map(p=>{let h=tx(p,a,t);return h!==p&&(f=!0),h});return f?{...l,[s]:u}:e}let c=tx(d,a,t);return c===d?e:{...l,[s]:c}}var O3=["upload","youtube"],_3="upload",Rpe={upload:"Upload",youtube:"YouTube"},A3=["background","click"],R3="background",Lpe={background:"Background",click:"Click to play"};function aT(e){return O3.includes(e)?e:_3}function nT(e){return A3.includes(e)?e:R3}var rT=/^[A-Za-z0-9_-]{11}$/,L3=/^(?:www\.|m\.|music\.)?(?:youtube\.com|youtube-nocookie\.com|youtu\.be)$/;function sT(e){let o=typeof e=="string"?e.trim():"";if(!o)return null;if(rT.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:"||!L3.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&&rT.test(a)?a:null}function rx(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 lT(e){return`https://i.ytimg.com/vi/${e}/maxresdefault.jpg`}function iT(e){return`https://i.ytimg.com/vi/${e}/hqdefault.jpg`}var ax="Play video";var nx={frame:"Video frame",image:"Image"},Fpe={any:[{field:"loadingShows",is:"image"},{all:[{not:{field:"loadingShows",set:!0}},{field:"poster",set:!0}]}]};function Al(e){let o=e.loadingShows;return o==="image"?"image":o!=null&&o!==""?"frame":zo(e.poster)?"image":"frame"}function Bpe(e,o="desktop"){let[t,r]=o==="phone"?[e.posterPhone,e.videoFramePhone]:[e.poster,e.videoFrame],[a,n]=Al(e)==="image"?[t,r]:[r,t];return zo(a)||zo(n)||void 0}function dT(e){if(zo(e.mediaVideo)){if(Al(e)==="frame")return zo(e.videoFrame)?void 0:zo(e.poster)?"frame-missing-image":"frame-missing-surface";if(!zo(e.poster))return zo(e.videoFrame)?"image-missing-frame":"image-missing-surface"}}var _c="videoFrames",sx="videoFramesNotOwn";function cT(e,o,t){let r=zo(e.mediaVideo);if(!r||!o||Al(e)!=="frame"||zo(e.videoFrame))return;let a=o[r],n=!!zo(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 F3(e,o){let t=zo(e),r=t&&o?o[t]:void 0;return r?.state==="ready"&&r.frame?r.frame:void 0}function Dpe(e,o,t){let r=t?.[sx];if(!(Array.isArray(r)&&r.includes(e)))return F3(o,t?.[_c])}import{useSyncExternalStore as B3}from"react";function Ac(){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 B3(t,a,a)}}}var Ye="SiteHeader",Ue="SiteFooter",lx="sections",Wpe=[Ye,Ue],ns=e=>e===Ye||e===Ue,fT=e=>`${e}:${lx}`;function pT(e,o,t=[]){return{type:e,props:{id:o,[lx]:t}}}var D3=new Set(["Footer",Ye,Ue]);function ss(e){let o=new Set,t=!1,r=e.filter(a=>{let n=a?.type??"";return n==="Header"?(t=!0,!1):D3.has(n)?o.has(n)?(t=!0,!1):(o.add(n),!0):!0});return t?r:e}function Rc(e,o){return e.some(t=>t?.type===o.type)?e:o.type===Ye?[o,...e]:[...e,o]}var uT={[Ye]:{max:3,takes:["Flex","Ticker"]},[Ue]:{max:6,takes:["Flex","Prose","Logos","Divider"]}};function mT(e,o,t){if(!ns(e))return!0;let r=uT[e];return t<r.max&&r.takes.includes(o)}function hT(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(!ns(n?.type))continue;let s=n.props?.[lx];if(!Array.isArray(s)||!s.some(d=>d?.props?.id===r))continue;let l=uT[n.type];return l.takes.includes(t?.type??"")?s.length>=l.max?{group:n.type,why:"full"}:null:{group:n.type,why:"type"}}return null}import{locateNode as N3}from"efficient-easel/draw";function Rl(e){if(!e)return null;let o=e.lastIndexOf(":");return o>0?{ownerId:e.slice(0,o),slot:e.slice(o+1)}:null}function Lc(e,o,t){let r=Rl(t?.zone),a=r?N3(e,o,r.ownerId):null;return a&&r?{...a,slot:r.slot}:null}import{isNode as M3}from"efficient-easel/data";var xT="Footer",IT=[Ye,xT,Ue],La=e=>{let o=e?.content;return Array.isArray(o)?o:[]},Xr=e=>{let o=e?.zones;return o&&typeof o=="object"&&!Array.isArray(o)?o:null},ls=e=>{let o=e?.props?.id;return typeof o=="string"?o:void 0},gT=e=>Rl(e)?.ownerId??"";function bT(e){let o=ss(La(e)),t=o.some(r=>r?.type===Ue);return o.filter(r=>r?.type===Ye||r?.type===Ue||r?.type===xT&&!t)}function Fc(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(M3(a)){let n=ls(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,l]of Object.entries(o))n.has(s)||!t.has(gT(s))||(n.add(s),r(l),a=!0)}}return t}function yT(e,o){let t=La(e).filter(r=>{let a=ls(r);return typeof r?.type=="string"&&IT.includes(r.type)||a!==void 0&&o(a)});return t.length?Fc(t,Xr(e)):new Set}function ix(e,o){let t={},r={};for(let[a,n]of Object.entries(e??{}))(o.has(gT(a))?t:r)[a]=n;return{owned:t,rest:r}}function ST(e,o){if(!o)return e;let t=bT(o);if(!t.length)return e;let r=t.filter(l=>l.type===Ye),a=t.filter(l=>l.type!==Ye),n={...e,content:[...r,...La(e),...a]},{owned:s}=ix(Xr(o),Fc(t,Xr(o)));return Object.keys(s).length&&(n.zones={...Xr(e)??{},...s}),n}function dx(e,o){if(!o)return{page:e,chrome:null};let t=bT(o),r=new Set(t.map(ls).filter(T=>!!T)),a=[],n=[];for(let T of La(e)){let y=ls(T);y&&r.has(y)||ns(T?.type)?n.push(T):a.push(T)}let s=new Map(n.map(T=>[ls(T),T])),l=new Set,d=ss(La(o)).flatMap(T=>{let y=ls(T);if(!y||!r.has(y))return[T];let b=s.get(y);return b?(l.add(b),[b]):[]});for(let T of n)l.has(T)||d.some(y=>y?.type===T.type)||(d=T.type===Ye?[T,...d]:[...d,T]);d=ss(d);let c=d.length===La(o).length&&d.every((T,y)=>T===La(o)[y]),f=Xr(e),u=Fc(d,f),{owned:p,rest:h}=ix(f,u),I=ix(Xr(o),Fc(t,Xr(o))).owned,g={...o,content:c?o.content:[...d]},C=Xr(o);if(C||Object.keys(p).length){let T={};for(let[y,b]of Object.entries(C??{}))y in I?y in p&&(T[y]=p[y]):T[y]=b;for(let[y,b]of Object.entries(p))y in T||(T[y]=b);g.zones=T,C&&H3(g.zones,C)&&(g.zones=C)}let w={...e,content:a};return f&&(Object.keys(h).length||!Object.keys(I).length?w.zones=h:delete w.zones),{page:w,chrome:g}}function H3(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 wT(e,o){return t=>e(t)||t!==void 0&&IT.includes(t)&&o()}var CT=null;function cx(e){CT=e}function Bt(){return CT}var vT=null;function fx(e){vT=e}function Bc(){return vT}var px=Ac();function kT(e,o,t){if(!o)return;let r={...px.get(e)};for(let[a,n]of Object.entries(o))r[a]={...n,noted:t};px.set(e,r)}function TT(e,o){kT(e,o,"load")}function PT(e,o){kT(e,o,"save")}function Dc(e){return px.use(e)}var ux=e=>!!Bt()?.sectionOf(e);function ET(e,o=ux){return yT(e,o)}function OT(e,o,t,r=ux){if(t)return e&&ET(o,r).has(e)?void 0:t}function _T(e,o,t=ux){if(!e)return{};let r=[...ET(o,t)];return r.length?{[_c]:e,[sx]:r}:{[_c]:e}}import{ScreenDocumentContext as Cj}from"efficient-easel/screen/components/ScreenDocumentContext";import{readHidable as la,hidableText as vj}from"efficient-easel/draw";import{FOLD_FIELD_MARKER as mO,LINK_FIELD_MARKER as kj,MEDIA_FIELD_MARKER as Tj,SCAFFOLD_FIELD_MARKER as Pj,TEXT_FIELD_MARKER as Lr,foldMetaOf as ia,textFieldIdentifier as Twe}from"efficient-easel/draw";import{jsx as NT}from"react/jsx-runtime";import{useCallback as G3}from"react";import{useEasel as j3}from"efficient-easel/easel";import{SettingsAction as K3}from"efficient-easel/panel";import{isLengthUnit as z3}from"efficient-easel/screen/lib/content/length-units";import{CORNER_SIDES as Nc,hasCornerSubset as Ll,normalizeCornerSides as or}from"efficient-easel/screen/lib/content/style-keys";import{isLengthUnit as W3}from"efficient-easel/screen/lib/content/length-units";var Fl={kind:"radius",unitKey:"sectionCornersUnit"};function mx(e){return typeof e=="number"&&Number.isFinite(e)}function rue(e,o,t){if(!mx(e))return;let r=W3(t)&&t!=="px"?Jn(e,t):Jn(Jt(e));if(Object.keys(r).length===0)return;let a=r[hx];if(typeof a!="string")return r;let n=Ll(o)?Fa(a,or(o)??[]):a;return{...r,[U3]:n}}var U3="--sf-section-radius",hx="--sf-card-radius";function Fa(e,o){return Nc.map(t=>o.includes(t)?e:"0").join(" ")}var AT=[{value:"tl",label:"Top left"},{value:"tr",label:"Top right"},{value:"bl",label:"Bottom left"},{value:"br",label:"Bottom right"}];var Bl={kind:"radius",unitKey:"cardCornersUnit"},$3="--sf-card-box-radius";function xx(e){return typeof e=="number"&&Number.isFinite(e)}function iue(e,o,t){if(!xx(e))return;let r=(z3(t)&&t!=="px"?Jn(e,t):Jn(Jt(e)))[hx];if(typeof r!="string")return;let a=Ll(o)?Fa(r,or(o)??[]):r;return{[$3]:a}}function RT(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?.[Bl.unitKey];return e.map(s=>s?.props?.id===o?s:{...s,props:{...s.props,cardCorners:r,cardCornerSides:a,[Bl.unitKey]:n}})}function LT(e,o,t){let r=Lc(e,o,t),a=r?.slot??"",n=r&&Array.isArray(r.item.props[a])?r.item.props[a]:[],s=t?.index??-1,l=s>=0?n[s]:void 0,d=l?.props?.id?String(l.props.id):"",c=Math.max(n.length-1,0);return!r||!d?{can:!1,reason:"unreachable",others:0}:n.length<=1?{can:!1,reason:"alone",others:c}:xx(l?.props?.cardCorners)?{can:!0,others:c,zone:r.zone,index:r.index,data:{...r.item,props:{...r.item.props,[a]:RT(n,d)}}}:{can:!1,reason:"unset",others:c}}function FT(e){return e.can?Uo("Gives the other card this card's Corners.","Gives the other {n} cards this card's Corners.",e.others):e.reason==="alone"?i("This is the only card in the section."):e.reason==="unset"?i("Set this card's corners first."):i("This card is not in a section that can share corners.")}function BT(e){return Uo("Applied to {n} card","Applied to {n} cards",e)}function DT(e,o){e.can&&o(e.zone,e.index,e.data)}import{useSectionOps as V3}from"efficient-easel/screen/lib/document/use-section-ops";var q3="apply-corners-to-siblings",Y3="Apply to all cards";function X3({plan:e,onPress:o}){return NT(K3,{id:q3,label:i(Y3),note:FT(e),disabled:!e.can,doneLabel:BT(e.others),onPress:o})}function MT(){let{appState:e,config:o}=j3(n=>n),t=V3(),r=LT(o,e.data.content??[],e.ui.itemSelector),a=G3(()=>{DT(r,t.replaceComponent)},[r,t]);return NT(X3,{plan:r,onPress:a})}import{isShown as qT,lazyShowWhenContext as d6}from"efficient-shell/format";var Zr="product",Mc="recordType",HT={key:Zr,label:"Product",fields:[]},Z3=/^[a-z][a-z0-9]*(-[a-z0-9]+)*$/,J3=/^[a-z][A-Za-z0-9]*$/,Q3=["text","date","images"],Ix=new Map,WT=0;function e6(e){if(typeof e.key!="string"||!Z3.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===Zr)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"||!J3.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(!Q3.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 wue(e){let o=e.map(e6);for(let t of o)Ix.set(t.key,t);o.length&&(WT+=1)}function gx(){return[HT,...Ix.values()]}function o6(e){return e===Zr?HT:Ix.get(e)??null}function bx(){return WT}function Dl(e){let o=e?.[Mc];return typeof o!="string"?Zr:o.trim()||Zr}function yx(e){return Dl(e)===Zr}function Cue(e,o){let t=o6(e)?.fields??[];return o?t.filter(r=>o.includes(r.kind)):t}var Hc="product",UT="tyre",t6=[Hc,UT];function Tue(e){return t6.includes(e)}var r6="productType",a6={[Hc]:"alloy-wheel",[UT]:"tyre"},n6=["alloy-wheel","tyre"];function zT(e,o){return yx(o)?$T(o)??a6[e]??null:null}function $T(e){if(!yx(e))return null;let o=e?.[r6];return typeof o=="string"&&n6.includes(o)?o:null}function Pue(e){let o=e?.root;return $T(o?.props)}var Sx="Main Pages",s6="Dynamic Pages",wx="dynamic",l6="dynamic";function Ba(e){return e.kind===l6}var Cx="lightbox";function GT(e){return e.kind===Cx}function jT(e){let o=[],t=[];for(let r of e){if(Ba(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??Sx,rows:[r]})}if(t.length){let r=o.findIndex(a=>a.key.startsWith("system:"));o.splice(r===-1?o.length:r,0,{key:wx,label:s6,rows:t})}return o}var Wc=null,KT=null;function i6(e,o){Wc=e,KT=o}function Lue(e){i6(e,null)}function Fue(){return Wc}function Nl(){return Ba({kind:KT})||Wc===Hc}function Bue(e){return zT(Wc??"",e)??"alloy-wheel"}function Due(e){return Nl()?Dl(e):null}function vx(e,o,t){let r=!1,a={};for(let[n,s]of Object.entries(e)){if(!qT(Eh(s),o??{},t)){r=!0;continue}let l=c6(s,o?.[n],o??{},t);l!==s&&(r=!0),a[n]=l}return r?a:e}function c6(e,o,t,r){let a=e?.options;if(!Array.isArray(a))return e;let n=a.filter(s=>s?.value===o||!s?.showWhen||qT(s.showWhen,t,r));return n.length===a.length?e:{...e,options:n}}function YT(e,o,t,r){let a=Lc(o,t,r);return{device:e,parentType:a?.item.type,parent:a?.item.props}}function VT(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 VT(t.not,o);for(let r of[t.all,t.any])if(Array.isArray(r)&&r.some(a=>VT(a,o)))return!0;return!1}function Gue(e,o={}){return d6({parentType:()=>e.parent?.type??void 0,parent:()=>e.parent?.props??void 0,dynamicPage:()=>Nl(),root:()=>e.appState?.data?.root?.props,...o})}import{isLengthUnit as f6}from"efficient-easel/screen/lib/content/length-units";var XT=1,p6="cardImageUnit",kx={kind:"radius",unitKey:p6},ZT={kind:"radius"};function u6(e){return Jt(e)}function Xue(e,o){if(f6(o)&&o!=="px"){let r=q(e);return r!==void 0&&r>=0?{"--sf-card-image-radius":We(r,o)}:{}}let t=u6(e);return t===null?{}:{"--sf-card-image-radius":`${t}px`}}import{isLengthUnit as m6}from"efficient-easel/screen/lib/content/length-units";var JT={kind:"radius",unitKey:"cornersUnit"},QT=1,eP="Corners";function h6(e){return Jt(e)}function rme(e,o,t){let r=m6(t)&&t!=="px"?q(e):void 0,a=r===void 0?h6(e):null;if(r===void 0&&a===null)return null;let n=r!==void 0?We(Math.max(0,r),t):`${a}px`;return{borderRadius:Ll(o)?Fa(n,or(o)??[]):n}}var tP=12,is=6,x6=800,Uc={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"}},rP=["phone","acrossPhone","leadPhone"];var I6=new Set(rP),Ml=Object.fromEntries(Object.entries(Uc).map(([e,o])=>[e,Object.fromEntries(Object.entries(o).filter(([t])=>!I6.has(t)))])),Tx=Object.keys(Uc),aP=[2,3,4,6];function Px(e,o){return Tx.filter(t=>t===o||e===null||Ml[t].across===e)}function nP(e){let o=e.layout;return typeof o=="string"&&$e(Uc,o)?o:null}function Ex(e){let o=nP(e);return o?g6(o,e.layoutPhone):null}var zc={oneAcross:{label:"One across",phone:[[is,2]],acrossPhone:1}};function sP(e){return typeof e=="string"&&$e(zc,e)?e:null}function oP(e,o){return o?is/e.acrossPhone:tP/e.across}function Ox(e){return e.ratio?wk.find(o=>o.shape===e.ratio)?.ratio??null:null}function lP(e){return[...e.lead??[],...e.desktop]}function g6(e,o){let t=Uc[e],r=sP(o);if(!r)return t;let{phone:a,acrossPhone:n}=zc[r],s=Object.fromEntries(rP.map(l=>[l,void 0]));return{...t,...s,phone:a,acrossPhone:n}}var b6="sf-wall--";function y6(e){let o=nP(e);if(!o)return"";let t=sP(e.layoutPhone);return`${b6}${o}${t?`--${t}`:""}`}function lme(e){let o=Ex(e);if(!o)return"";let t=`.${y6(e)}`,r=[],a=(l,d,c)=>`${t}:has(> :nth-child(${l}n+${d+c}):last-child) > :nth-last-child(-n+${c})`,n=(l,d,c=[])=>{let f=[],u=l.length,p=c.length;c.forEach(([h,I],g)=>{f.push(`${t} > :nth-child(${g+1}){grid-column:span ${h};grid-row:span ${I}}`)}),l.forEach(([h,I],g)=>{f.push(`${t} > :nth-child(${u}n+${p+g+1}){grid-column:span ${h};grid-row:span ${I}}`)});for(let h=1;h<u;h+=1)f.push(`${a(u,p,h)}{grid-column:span ${d};grid-row:span 1}`);return f};r.push(`${t}{grid-template-columns:repeat(${tP},minmax(0,1fr))}`);let s=Ox(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,oP(o,!1),o.lead)),r.push(`@media (max-width:${x6}px){`),r.push(`${t}{grid-template-columns:repeat(${is},minmax(0,1fr))}`),r.push(...n(o.phone,oP(o,!0),o.leadPhone)),o.phone.length===1&&!o.leadPhone?.length){let[l,d]=o.phone[0],c=o.lead?.length??0;for(let f=1;f<o.desktop.length;f+=1)r.push(`${a(o.desktop.length,c,f)}{grid-column:span ${l};grid-row:span ${d}}`)}return r.push("}"),r.join("")}var $c=12,iP=1,S6=3;var w6=3;function Gc(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 C6(e){return Gc(e,1,$c)??w6}function cme(e,o){return Gc(e,iP,S6)??(C6(o)===4?2:iP)}function fme(e){return e==null||e===""?null:Gc(e,1,$c)}var pme="data-sf-span",_x=4;function ume(e){return e==null||e===""?null:Gc(e,1,_x)}var mme="data-sf-row-span",Jr=["gridSpan","gridRowSpan"];function hme(e){if(!e)return!1;if(e.type==="Grid")return!0;if(e.type==="GalleryB"){if(Ex(e.props??{}))return!1;let o=e.props?.columns;return o!=null&&o!==""}return!1}import{jsx as v6}from"react/jsx-runtime";import*as k6 from"efficient-easel/icons";function jc(e){let o=e.replace(/(^|-)([a-z])/g,(r,a,n)=>n.toUpperCase()),t=k6[`${o}Icon`];return t?v6(t,{size:16}):null}import{jsx as Qr,Fragment as E6,jsxs as xP}from"react/jsx-runtime";import{useContext as O6,useEffect as _6,useId as A6,useState as IP}from"react";import{SettingsField as R6,SettingsSwitch as L6}from"efficient-easel/panel";import{AnchorIcon as F6}from"efficient-easel/icons";import{ScreenDocumentContext as B6}from"efficient-easel/screen/components/ScreenDocumentContext";import{Snippet as D6}from"efficient-shell/ui";import{slugify as N6}from"efficient-shell/format";import{slugify as T6}from"efficient-shell/format";function Hl(e){return typeof e=="string"?e.trim():e&&typeof e=="object"&&typeof e.text=="string"?e.text.trim():""}var Kc=e=>T6(Hl(e));var Vc="homepage";import{slugify as P6}from"efficient-shell/format";var dP=[{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 cP(e){return e.offersCommerce&&e.offersService?dP:dP.filter(o=>!o.needs||(o.needs==="commerce"?e.offersCommerce:e.offersService))}var Ax="#popup:";function fP(e){return`${Ax}${e}`}function pP(e){return e.startsWith(Ax)&&e.slice(Ax.length).trim()||null}function Wl(e){return e===Vc?"/":`/${e}`}function uP(e){return`/journal/${e}`}function kme(e){return`/wheels/${e}`}function qc(e,o){return`${Wl(e)}#${o}`}function mP(...e){let o=new Set,t=[];for(let r of e)for(let a of r?.content??[]){let n=Hl(a?.props?.anchor);if(!n)continue;let s=P6(n);!s||o.has(s)||(o.add(s),t.push({slug:s,name:n}))}return t}function Tme(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 hP(e){return/^\/wheels\/[^/?#]+(?:[?#].*)?$/.test(e)}import{readHidable as M6}from"efficient-easel/draw";function gP({value:e,onChange:o,nameBox:t}){let r=M6(e).text,[a,n]=IP(!1),s=a||r.trim()!=="",l=A6();return xP(E6,{children:[Qr(R6,{label:i("Add an anchor"),labelId:l,icon:Qr(F6,{}),action:Qr(L6,{checked:s,ariaLabelledBy:l,onChange:d=>{n(d),!d&&r!==""&&o("")}})}),s&&t(e,o),s&&Qr(H6,{name:r})]})}function H6({name:e}){let o=O6(B6),t=o?.templateId?"":o?.currentSlug??"",[r,a]=IP("");_6(()=>a(Cc()),[]);let n=N6(e);if(!n||!t)return null;let s=`${r}${qc(t,n)}`,l=s.replace(/^https?:\/\//,""),d=l.lastIndexOf("#");return Qr("div",{className:"sf-anchor-link",children:Qr(D6,{value:s,label:i("link"),size:"sm",children:xP("span",{className:"sf-anchor-link-text",children:[Qr("span",{className:"sf-anchor-link-path",children:l.slice(0,d)}),Qr("span",{className:"sf-anchor-link-hash",children:l.slice(d)})]})})})}import{jsx as tr,jsxs as W6}from"react/jsx-runtime";import{Fragment as U6}from"react";import{Button as Yc,Tooltip as z6}from"efficient-shell/ui";function bP({status:e,statusText:o,onRefresh:t,busy:r=!1,edit:a,hint:n,spaced:s=!0,compact:l=!1,oneLine:d=!1}){return l?tr("div",{className:`sf-blogsource sf-blogsource--compact${d?" sf-blogsource--line":""}`,style:s?{marginTop:8}:void 0,children:tr(z6,{content:n,className:d?"sf-name-tip":void 0,children:tr("p",{className:"sf-blogsource-status","data-state":e,children:[o?tr(U6,{children:o},"status"):null,t?tr(Yc,{variant:"link",size:"sm",className:"sf-blogsource-link",onClick:t,disabled:r,children:i("Refresh now")},"refresh"):null,a?tr(Yc,{variant:"link",size:"sm",className:"sf-blogsource-link",onClick:a.onClick,children:a.label},"edit"):null].filter(Boolean).flatMap((c,f)=>f?[" \xB7 ",c]:[c])})})}):W6("div",{className:"sf-blogsource",style:s?{marginTop:9}:void 0,children:[tr("p",{className:"sf-blogsource-status","data-state":e,children:o}),t?tr(Yc,{variant:"secondary",className:"sf-blogsource-action",onClick:t,disabled:r,children:i("Refresh now")}):null,a?tr(Yc,{variant:"secondary",className:"sf-blogsource-action",onClick:a.onClick,children:a.label}):null,tr("p",{className:"es-field-hint",children:n})]})}import{AdjustIcon as Ej,EyeIcon as Oj,AnimationIcon as _j,BackgroundIcon as eO,BorderAllIcon as Aj,BlockSectionIcon as Rj,ColumnWidthsIcon as fg,ColumnsIcon as hO,CornerIcon as xO,DirectionDownIcon as Lj,DirectionLeftIcon as Fj,DirectionRightIcon as Bj,DirectionUpIcon as Dj,EditIcon as Nj,GapIcon as Mj,GridIcon as IO,GroundIcon as lg,HashIcon as Hj,HeightIcon as pg,ImageIcon as Wj,ListIcon as Uj,LocationIcon as oO,PaddingBottomIcon as gO,PaddingLeftIcon as bO,PaddingRightIcon as yO,PaddingTopIcon as ug,PageIcon as zj,StickyIcon as SO,SearchIcon as $j,SquareIcon as Gj,TypeIcon as jj,WidthIcon as Kj}from"efficient-easel/icons";import{jsx as Je,Fragment as Da,jsxs as Na}from"react/jsx-runtime";import{CaptionIcon as $6,DateIcon as G6,FlagIcon as j6,TitleIcon as K6,ButtonIcon as V6,DollarIcon as q6,HashIcon as Y6,LinkIcon as X6,NoteIcon as Z6,TagIcon as J6,TextLinesIcon as Q6}from"efficient-easel/icons";var yP={body:Q6,button:V6,link:X6,label:J6,number:Y6,price:q6,note:Z6,name:j6,date:G6,caption:$6,title:K6},SP={eyebrow:Na(Da,{children:[Je("path",{d:"M5 6.5h5"}),Je("path",{d:"M5 12.5h14"}),Je("path",{d:"M5 18h11"})]}),heading:Na(Da,{children:[Je("path",{d:"M6.5 5v14"}),Je("path",{d:"M17.5 5v14"}),Je("path",{d:"M6.5 12h11"})]}),intro:Na(Da,{children:[Je("path",{d:"M4 5.5v13"}),Je("path",{d:"M8 7.5h12"}),Je("path",{d:"M8 12h12"}),Je("path",{d:"M8 16.5h8"})]}),value:Na(Da,{children:[Je("rect",{x:"2.5",y:"7",width:"19",height:"10",rx:"2"}),Je("path",{d:"M6.5 12h7"})]}),quote:Na(Da,{children:[Je("path",{d:"M9.5 5.5C7 7.2 5.5 9.7 5.5 12.8h4v5.7h-5v-5.7"}),Je("path",{d:"M19.5 5.5c-2.5 1.7-4 4.2-4 7.3h4v5.7h-5v-5.7"})]}),tag:Na(Da,{children:[Je("rect",{x:"3",y:"5.5",width:"18",height:"13",rx:"2.5"}),Je("path",{d:"M8 9.5h8"}),Je("path",{d:"M12 9.5v5"})]}),meta:Na(Da,{children:[Je("path",{d:"M4 7h16"}),Je("path",{d:"M4 14h3.5"}),Je("path",{d:"M10.5 14h3"}),Je("path",{d:"M17 14h3"})]})};function Rx({noun:e,size:o=14,strokeWidth:t=1.8,className:r,style:a}){let n=yP[e];return n?Je("span",{className:r,style:{display:"inline-flex",...a},"aria-hidden":"true",children:Je(n,{size:o})}):Je("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:SP[e]})}var Vme=Object.keys(yP);var qme=Object.keys(SP);import{parseHexColor as lW}from"efficient-shell/format";import{parseHexColor as TP}from"efficient-shell/format";import{COLOR_SLOTS as PP,FILL_COLOR_SLOTS as aW,colorRole as nW,fillColorRole as EP}from"efficient-shell/markup";import{parseHexColor as wP}from"efficient-shell/format";import{FILL_COLOR_SLOTS as eW}from"efficient-shell/markup";var Xc=e=>{let o=fk.find(t=>t.role===e);return o?`var(${o.token})`:""},oW=e=>Xc(e)?`var(--theme-${e})`:"",tW={main:{ink:Pa.accent,page:Pa.accent,key:"accent",label:()=>i("Main"),words:e=>i("Theme {n} main color",{n:e})},text:{ink:Pa.text,page:Pa.text,key:"text",label:()=>i("Text"),words:e=>i("Theme {n} text color",{n:e})},background:{ink:Xc("bg"),page:oW("bg"),key:"background",label:()=>i("Background"),words:e=>i("Theme {n} background",{n:e})},muted:{ink:Pa.labels,page:Pa.labels,key:"muted",label:()=>i("Muted"),words:e=>i("Theme {n} muted color",{n:e})},surface:{ink:Xc("surface"),page:Xc("surface"),key:"surface",label:()=>i("Surface"),words:e=>i("Theme {n} surface color",{n:e})}};function ea(e){return K(tW,e)}var Lx="#9ca3af";function ds(e,o,t){let r=ea(e);return r?{hex:wP(o[r.key]??"")??"",words:r.words(t)}:null}function CP(e,o){return eW.flatMap(t=>{let r=ds(t,e,o);return r&&ea(t)?.ink?[{name:t,label:r.words,value:r.hex||Lx}]:[]})}var rW=["main","text","background"];function vP(e){let o=new Set,t=[];return xo(e).themes.forEach((r,a)=>{for(let n of rW){let s=ea(n),l=s?r[s.key]:void 0,d=typeof l=="string"&&l?wP(l):null;!s||!d||o.has(d)||(o.add(d),t.push({value:d,label:s.words(a+1)}))}}),t}function Pr(e){return ea(e)?.ink??""}function rr(e){if(typeof e!="string")return null;let o=EP(e.trim());return o?.kind==="slot"&&Pr(o.slot)?o.slot:null}var sW={accent:"main",labels:"muted"};function rt(e){return K(sW,e)??e}function cs(e){if(!e)return"";if(e.startsWith("#"))return TP(e)===e.toLowerCase()?e:"";let o=nW(rt(e));return o?.kind==="slot"?Pr(o.slot):""}function fs(e,o=PP){return o.flatMap(t=>{let r=ea(t);return r?.ink?[{name:t,label:r.label(),value:e?.[t]||Lx}]:[]})}function OP(e){let o=EP(rt(e));return o?.kind==="slot"?Pr(o.slot):""}function Fx(e){let o=e?.trim();return o?aW.find(t=>Pr(t)===o)??null:null}function _P(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 PP){let l=Pr(s);if(!l)continue;let d=l.replace(/^var\((--[\w-]+)\)$/,"$1"),c=a.getPropertyValue(d).trim();if(!c)continue;let f=kP(c);!f&&n&&(n.fillStyle="#000000",n.fillStyle=c,f=kP(String(n.fillStyle))),f&&(o[s]=f)}return o}function kP(e){let o=e.trim().toLowerCase();if(o.startsWith("#"))return TP(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 iW="#ffffff";function Bx(e){return AP(e)||(dW(e)?e:iW)}function AP(e){let o=rr(e);return o?ea(o)?.page??"":""}function dW(e){return typeof e=="string"&&lW(e)===e.toLowerCase()||AP(e)!==""}function phe(e){return{"--bg":Bx(e)}}import{parseHexColor as cW}from"efficient-shell/format";import{fillColorRole as fW}from"efficient-shell/markup";function Ma(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 Che="sf-card",vhe="[--sf-card-lift:none] [--sf-card-shadow-hover:var(--sf-card-shadow,none)]",oa={min:0,max:100,step:5,fallback:0,unit:"%"},pW=[{label:"Even",value:"even"},{label:"From the bottom",value:"bottom"}],uW="68%",khe={desktop:20,phone:20,side:40,sidePhone:24},The="sf-box-sides";function Nx(e){return typeof e=="string"&&e.trim()!==""}function Phe(e){return Nx(typeof e?.bgImage=="string"?e.bgImage:null)||Zc(e)}function Zc(e){return Zt(e,oc)!==""}function Ehe(e,o){return o||!Zc(e)?e:{...e,[oc]:""}}function Ohe(e,o){return Lh(o,Zt(e,oc))?.trim()||null}function RP(e,o){let t=typeof e=="number"?e:Number.parseFloat(String(e??""));if(!Number.isFinite(t)||t<=0)return null;let r=(Math.min(oa.max,Math.max(oa.min,t))/100).toFixed(2);return o!=="bottom"?{background:mc(Number(r))}:{background:`linear-gradient(0deg, ${mc(Number(r))} 0%, ${mc(0)} ${uW})`}}var Jc=[{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"}],LP="fillFade",Dx=Jc[1].value,Qc=e=>e===Dx?Dx:Jc[0].value,mW=[{mix:"12%",at:"50%"},{mix:"19%",at:"70%"},{mix:"50%",at:"95%"}];function _he(e){return Qc(e)!==Dx?null:{backgroundImage:`linear-gradient(to bottom, transparent, ${mW.map(o=>`color-mix(in srgb, var(--bg) ${o.mix}, transparent) ${o.at}`).join(", ")})`}}var ef=e=>typeof e=="string"?cW(e.trim()):null,Ul=e=>{let o=ef(e);if(o!==null||typeof e!="string")return o;let t=e.trim();return t&&!t.startsWith("#")&&OP(t)||null},of=e=>{if(typeof e!="string")return null;let o=fW(rt(e.trim()));return o?.kind==="slot"?o.slot:null},Mx="swatch";function Ahe(e,o){if(!o)return null;let t=Lh(o,Zt(e,Mx)),r=rr(t);return ef(t)??(r&&Pr(r)||null)}var hW={tabletClass:"sf-fill-tablet",tabletVar:"--sf-fill-tablet",phoneClass:"sf-fill-phone",phoneVar:"--sf-fill-phone"};function Rhe(e,o,t){return Ma(hW,Ul(e),Ul(o),Ul(t))}var xW={tabletClass:"sf-wash-tablet",tabletVar:"--sf-wash-tablet",phoneClass:"sf-wash-phone",phoneVar:"--sf-wash-phone"};function Lhe(e){let o=RP(e.darken,e.darkenStyle);if(!o)return{className:"",style:{}};let t=(u,p)=>String(RP(u,p)?.background??"none"),r=u=>(typeof u=="number"||typeof u=="string"&&u.trim()!=="")&&Number.isFinite(Number(u))?u:void 0,a=u=>pW.some(p=>p.value===u)?u:void 0,[n,s,l,d]=[r(e.darkenTablet),a(e.darkenStyleTablet),r(e.darkenPhone),a(e.darkenStylePhone)],c=n??e.darken,f=s??e.darkenStyle;return Ma(xW,String(o.background),n!==void 0||s!==void 0?t(c,f):null,l!==void 0||d!==void 0?t(l??c,d??f):null)}function Fhe(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 lv(n,s)}function FP(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(Hx(r,o,0))return{type:typeof a=="string"?a:"",props:n??{}}}return null}function Hx(e,o,t){if(t>12||!e||typeof e!="object")return!1;if(Array.isArray(e))return e.some(a=>Hx(a,o,t+1));let r=e.props;return r&&typeof r=="object"&&r.id===o?!0:Object.values(e).some(a=>Hx(a,o,t+1))}function BP(e,o){let t=e?.content;return Array.isArray(t)?tf(t,o,0)??[]:[]}function tf(e,o,t){if(t>12||!e||typeof e!="object")return null;if(Array.isArray(e)){for(let a of e){let n=tf(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=tf(a,o,t+1);if(n)return[r,...n]}return null}for(let a of Object.values(e)){let n=tf(a,o,t+1);if(n)return n}return null}import{SettingsDefaultReset as Ho,SettingsDrill as Vj,SettingsField as mo,SettingsGroup as qj,SettingsSegmented as Yj,SettingsBorder as Xj,SettingsSidesEach as Zj,SettingsSwitch as mg,borderSides as Jj,borderStartEach as Qj}from"efficient-easel/panel";import{ListField as eK}from"efficient-easel/fields";import{DisplayChips as oK}from"efficient-shell/ui";import{HIDDEN_KEY as IW,hiddenInEveryView as gW,hiddenInView as Wx,hiddenKeyOf as DP}from"efficient-easel/screen/lib/content/view-hide";var bW={"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"},yW={"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"},NP=e=>(e.desktop?"1":"0")+(e.tablet?"1":"0")+(e.mobile?"1":"0");function rf(e,{atSectionLine:o=!1}={}){return(o?yW:bW)[NP(e)]}var ps=[IW,DP("tablet"),DP("mobile")];function MP(e){return{desktop:Wx(e,"desktop"),tablet:Wx(e,"tablet"),mobile:Wx(e,"mobile")}}function zl(e){return gW(e)}function Mhe(e){let o=MP(e);return["desktop","tablet","mobile"].filter(t=>o[t]).join(" ")}var SW={"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!"},wW={"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 Hhe(e,{atSectionLine:o=!1}={}){return(o?wW:SW)[NP(MP(e))]}function us(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 af(e,o){return us(e)[o]!==!1}function Ux(e,o,t){let r=us(o)[t];return typeof r=="boolean"?r:af(e,t)}function HP(e){return Object.values(us(e)).some(o=>o===!1)}function WP(e){return Object.keys(us(e)).length>0}function UP(e,o,t){let r={...us(e)};return t?delete r[o]:r[o]=!1,Object.keys(r).length?r:void 0}function zP(e,o,t){return{...us(e),[o]:t}}function zhe(e,o,t,{atSectionLine:r=!0}={}){let a=!af(e,t);return rf({desktop:a,tablet:a,mobile:!Ux(e,o,t)},{atSectionLine:r})}import{ColorSwatch as tK,CornersInput as rK,DatePicker as Ywe,DateTimePicker as aK,FOCAL_DEFAULT as Xwe,IconPicker as wO,COLUMN_COUNT_MAX as tO,COLUMN_SHARE_MIN as nK,COLUMN_SHARES_EQUAL as sK,resolveColumnShares as CO,WidthsBar as lK,useShellStrings as iK,IconButton as vO,InputNumber as rO,Slider as dK,Tooltip as hg}from"efficient-shell/ui";import{backendOf as CW}from"efficient-easel/screen/lib/session";var to=CW,nf=e=>e.blocks;async function $P(e){let o=e.trim();if(!o)return null;let t=to().geocode;if(!t)throw new Error("geocode_unavailable");return t.locate(o)}var zx="Lookup busy \u2014 try again in a moment.",sf=e=>typeof e=="number"&&Number.isFinite(e);function Yhe(e){return e.some(o=>{let t=o?.geocode;return t?t.pending||t.manual&&t.lat===void 0&&t.lng===void 0?!0:sf(t.lat)&&t.lat!==o.lat||sf(t.lng)&&t.lng!==o.lng:!1})}async function Xhe(e,o,{geocode:t=$P,courtesyGapMs:r=1100}={}){let a=s=>new Promise(l=>setTimeout(l,s)),n=e.slice();if(e.some(s=>s?.geocode?.pending)){let s=[],l=!1;for(let d of e){if(!d?.geocode?.pending){s.push(d);continue}l&&r>0&&await a(r),l=!0;try{let c=await t(o(d));s.push(c?{...d,lat:c.lat,lng:c.lng,geocode:{...d.geocode,pending:!1,ok:!0,status:`Found \u2014 ${c.label.split(",").slice(0,3).join(",").trim()}`,lat:c.lat,lng:c.lng}}:{...d,geocode:{...d.geocode,pending:!1,ok:!1,status:"No match \u2014 check the address and try again."}})}catch{s.push({...d,geocode:{...d.geocode,pending:!1,ok:!1,status:zx}})}}n=s}return n.map(s=>{let l=s?.geocode;if(!l)return s;if(l.manual&&l.lat===void 0&&l.lng===void 0)return{...s,geocode:{...l,lat:s.lat,lng:s.lng}};let d=sf(l.lat)&&l.lat!==s.lat?l.lat:s.lat,c=sf(l.lng)&&l.lng!==s.lng?l.lng:s.lng;return d!==s.lat||c!==s.lng?{...s,lat:d,lng:c}:s})}import{jsx as $o,jsxs as Gx}from"react/jsx-runtime";import{useRef as vW}from"react";import{ColorPicker as kW,ColorPickerPanel as TW,ColorSwatch as PW,HexInput as EW,Popover as OW,Tooltip as _W,colorFill as AW,colorSwatchClasses as RW,useShellStrings as LW}from"efficient-shell/ui";import{SettingsDefaultReset as FW,SettingsField as BW}from"efficient-easel/panel";import{typedHex as $x}from"efficient-easel/pick";var GP="Not set";function jP({value:e,onChange:o,label:t,id:r,caption:a,inherited:n,ariaLabel:s,choices:l}){return $o(NW,{value:e,onChange:o,label:i(s??t),id:r,caption:a,inherited:n,choices:l})}function DW(){let{theme:e}=he();return vP(e)}function NW({value:e,onChange:o,label:t,id:r,caption:a,inherited:n,choices:s}){let l=DW(),d=e?null:$x(n??""),c=a!==void 0&&(!e||$x(a)!==$x(e))?a:null,f=u=>{u!==e&&o(u)};return Gx("div",{className:"sf-colour",children:[s?$o(MW,{id:r,value:e,onChange:o,label:t,presets:l,follows:d,choices:s}):$o(kW,{id:r,value:e,onChange:f,label:t,presets:l,fallback:d??void 0,size:"md",align:"start"}),c!==null?$o("span",{className:"sf-colour-caption",children:c}):$o("span",{className:"sf-colour-hexwrap",children:$o(EW,{value:e||d||"",onChange:f,label:i("{label} hex code",{label:t}),placeholder:e||d?void 0:i(GP),className:d?"sf-colour-hex is-inherited":"sf-colour-hex",size:"md"})})]})}function MW({value:e,onChange:o,label:t,id:r,presets:a,follows:n,choices:s}){let l=LW().color,d=e||n||"",c=s.findIndex(p=>p.selected),f=c>=0,u=vW(c);return f&&(u.current=c),$o(OW,{id:r,trigger:$o("span",{"aria-hidden":"true",className:"absolute inset-0",style:AW(d)}),triggerLabel:l.swatch(t,d.toUpperCase()||l.none),triggerClassName:RW({size:"md"}),"aria-label":l.panel(t),align:"start",children:Gx("div",{className:"sf-colour-window",children:[$o("div",{role:"group","aria-label":t,className:"sf-colour-choices",children:s.map(p=>$o(_W,{content:p.label,children:$o(PW,{color:p.color,"aria-label":p.label,selected:p.selected,onClick:()=>{p.selected||p.onPick()}})},p.label))}),$o(TW,{value:f?"":e,onChange:o,label:t,presets:a,fallback:(f?d:n)??void 0},u.current)]})})}function Yo({label:e,icon:o,changed:t,hint:r,onReset:a,resetTo:n,children:s,...l}){return $o(BW,{label:e,icon:o,htmlFor:l.id,changed:t,hint:r,action:a?$o(FW,{words:de()?.panel,label:e,changed:!!t,detail:n,onReset:a}):void 0,children:s?Gx("div",{className:"es-width-stack",children:[jP({...l,label:e}),s]}):jP({...l,label:e})})}function $l({label:e,icon:o,value:t,inherited:r,resetTo:a,onChange:n,onReset:s,hint:l,choices:d,children:c}){let f=!!t;return $o(Yo,{label:e,icon:o,value:t,inherited:f?void 0:r,onChange:n,changed:f,onReset:s,resetTo:a,hint:l,choices:d,children:c})}import{keptByRow as ig}from"efficient-easel/screen/lib/document/style-fields";import{jsx as HW}from"react/jsx-runtime";import{useEffect as WW,useState as UW}from"react";import{clearRangeOf as zW,markSelection as $W,useCaretEdit as GW}from"efficient-easel/copy";import{TextToolbar as jW}from"efficient-shell/ui";function KW(e,o,t){return $W(e,o,t,RC)}function KP(e,o){let t=zW(o,e.length),r=FC(e,t.start,t.end);return r.text===e?null:r}function VW(e){let[o,t]=UW(null);return WW(()=>{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,l=n.selectionEnd??s;t(d=>d&&d.start===s&&d.end===l?d:{start:s,end:l})};return r.addEventListener("selectionchange",a),()=>r.removeEventListener("selectionchange",a)},[e]),[o,t]}function qW({target:e,value:o,onChange:t,disabled:r=!1,label:a="Formatting"}){let n=GW({target:e,onChange:t}),[s,l]=VW(e),d=p=>n(h=>{let I=KW(o,p,h);return l({start:I.selectionStart,end:I.selectionEnd}),I}),c=AC(),f={};if(s)for(let p of c)f[p.style]=LC(o,s.start,s.end,p.style);let u=r?null:KP(o,s);return HW(jW,{offered:new Set(c.map(p=>p.style)),onMark:p=>d(p),pressed:f,disabled:r,"aria-label":i(a),className:"sf-markup-bar",clear:u?{onClear:()=>n(()=>{let p=e.current,h=p&&p.ownerDocument.activeElement===p?{start:p.selectionStart??0,end:p.selectionEnd??0}:null,I=KP(o,h)??{text:o,selectionStart:h?.start??0,selectionEnd:h?.end??0};return l({start:I.selectionStart,end:I.selectionEnd}),I})}:void 0})}var jx=qW;import{deviceField as it}from"efficient-easel/screen/lib/document/device-fields";import{NO_CONTROL_FIELD as cK,NoControlMark as fK,noControlField as kO}from"efficient-easel/screen/lib/document/panel-no-control-mark";var Kx="__ownBox";function VP(e){return!!e&&typeof e=="object"&&e[Kx]===!0}var Vx="sfPanelOnly";function ms(e){return!!e&&typeof e=="object"&&e[Vx]===!0}function lf(e,o,t){return typeof e=="number"?e:typeof o=="number"?o:t}var df=void 0;import{phoneKey as vs,tabletKey as xg,viewKeyAt as Ig}from"efficient-easel/draw";import{jsx as cf,Fragment as YW,jsxs as XW}from"react/jsx-runtime";import{useRef as ZW}from"react";import{SettingsDefaultReset as JW}from"efficient-easel/panel";import{effectTiles as QW}from"efficient-easel/screen/lib/document/effect-tiles";import{VIEW_KEY_ACCESS as qP,describedAs as eU,onDesktopWords as oU,phoneTwinFields as YP}from"efficient-easel/screen/lib/document/box-fields";function tU({row:e,read:o,...t}){let r=o(Po(),t.followsView??"desktop");return e({...t,follows:r})}function Er(e,o){return Object.fromEntries(qo.map(t=>{let r=we(e,t);return[r,YP(e,o(t),qP)[r]]}))}function ff(e,o,t){let r=o.render,a={...o,render:n=>cf(tU,{...n,row:r,read:t})};return Er(e,n=>n==="desktop"?o:a)}function rU({spec:e,...o}){let t=e.values.includes(o.value),r="follows"in o,a=e.read(Po(),o.followsView??"desktop"),n=t?o.value:a,s=ZW(null),{preview:l}=e,d=QW({label:i(e.label),options:e.values.map(f=>({value:f,label:i(e.word(f)),picture:e.picture(f)})),fallback:e.fallback,onPreview:l?f=>s.current&&l(s.current,f):void 0}).render,c=d({value:n,onChange:f=>o.onChange(f??e.fallback)});return XW(YW,{children:[l?cf("div",{ref:s,style:{display:"contents"},children:c}):c,r&&t&&cf(JW,{words:de()?.panel,label:i(e.tileWord),changed:!0,detail:oU(f=>i(f),i(e.word(a)),o.followsView),onReset:()=>o.onChange(void 0)})]})}function pf(e,o){let t=eU({type:"custom",render:r=>cf(rU,{...r,spec:o})},{type:"select",label:o.label,options:o.values.map(r=>({value:r,label:o.word(r)}))});return YP(e,t,qP)}import{jsx as Yx,Fragment as sU}from"react/jsx-runtime";import{createContext as lU,useContext as iU}from"react";var uf={ProductGrid:{source:{keep:["slug"]}},GalleryItem:{product:{keep:["code","finish"]}},FeaturedCover:{source:{keep:["slug"]}},LongRead:{source:{keep:["slug"]}}},mf={Events:["posts"],SubscribeBlogs:["posts"]};var aU=["anchor"],nU=/^href$|Href$|^url$|Url$|^link$|^mailto$|^tel$/;function Gl(e){return aU.includes(e)||nU.test(e)}var qx={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"}}};qx.ContactLocations={"locations[].lat":{verb:"pii"},"locations[].lng":{verb:"pii"},"locations[].mapsUrl":{verb:"pii"},"locations[].geocode":{verb:"pii"}};var _xe=Object.fromEntries(Object.entries(uf).map(([e,o])=>[e,Object.keys(o)])),Axe=Object.fromEntries(Object.entries(mf).map(([e,o])=>[e,[...o]]));import{NoControlMark as dU}from"efficient-easel/screen/lib/document/panel-no-control-mark";var XP=lU(!1);function ZP({children:e}){return Yx(XP.Provider,{value:!0,children:e})}function cU(){return iU(XP)}function JP({name:e,children:o}){return!cU()||!e||!fU(e)||Gl(e)?Yx(sU,{children:o}):Yx(dU,{})}function fU(e){return/^[A-Za-z0-9_$]+$/u.test(e)}var Xx="off",e0="none",Zx=[{label:"None",value:"off"},{label:"1, 2, 3",value:"plain"},{label:"01, 02, 03",value:"padded"},{label:"N\xB001, N\xB002",value:"numero"}],o0=[{label:"None",value:"none"},{label:"Hairline",value:"hairline"}];function Hxe(e){return io(Zx,Xx,e)}var QP="sf-card-index",jl="sf-card-index",Wxe="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",pU={plain:`counter(${jl})`,padded:`counter(${jl}, decimal-leading-zero)`,numero:`"N\xB0" counter(${jl}, decimal-leading-zero)`};function Uxe(e,o){return o==="off"?"":`.${e}{counter-reset:${jl}}.${e} .${QP}{counter-increment:${jl}}.${e} .${QP}::before{content:${pU[o]}}`}function zxe(e){return e==="hairline"?"border border-line hover:border-accent":""}var t0=[{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 pK}from"efficient-easel/draw";import{jsx as Xo}from"react/jsx-runtime";import{SettingsDefaultReset as yU,SettingsField as Jx}from"efficient-easel/panel";import{useSelectedHost as SU}from"efficient-easel/easel";import{FOCAL_DEFAULT as wU}from"efficient-shell/format";import{ImageIcon as Qx,PlayIcon as a0}from"efficient-easel/icons";import{ImageFocusPoint as CU,MediaUploadField as vU}from"efficient-shell/ui";import{useContext as kU}from"react";import{ScreenDocumentContext as TU}from"efficient-easel/screen/components/ScreenDocumentContext";import{tabletKey as PU,viewKeyAt as EU}from"efficient-easel/draw";import{usePreviewDevice as OU}from"efficient-easel/draw/client";import{formatFocal as uU,parseFocal as mU}from"efficient-shell/format";var hU="sf-focus-phone",xU="--sf-focus-phone",IU="sf-focus-tablet",gU="--sf-focus-tablet",Kl=e=>{if(typeof e!="string"||!/^\s*-?\d+(\.\d+)?%\s+-?\d+(\.\d+)?%\s*$/.test(e))return null;let{x:o,y:t}=mU(e);return uU(o,t)};function r0(e,o){return Ma(bU,null,Kl(o),Kl(e))}var bU={tabletClass:IU,tabletVar:gU,phoneClass:hU,phoneVar:xU};import{shownTier as eI}from"efficient-easel/screen/lib/document/device-fields";import{onDesktopWords as _U}from"efficient-easel/screen/lib/document/box-fields";import{requestMediaPick as AU}from"efficient-easel/screen/lib/media-picker";import{useEaselHost as RU}from"efficient-easel/screen/lib/host";import{useEaselSession as LU}from"efficient-easel/screen/lib/session-context";function FU(e,o,t,r=!0){let a=eI(t),n=typeof e[o]=="string"&&e[o]?String(e[o]):wU;if(a==="desktop")return{ownView:!1,followed:n,followsView:"desktop",own:void 0,focus:n,key:o};let s=EU(o,a),l=Kl(e[s])??void 0,d=a==="mobile"&&r?Kl(e[PU(o)])??void 0:void 0,c=d??n;return{ownView:!0,followed:c,followsView:d?"tablet":"desktop",own:l,focus:l??c,key:s}}function BU(e,o,t){let r=SU();if(!o||!r)return null;let a=r.values??{};if(t&&!t(a,eI(e)))return null;let n=FU(a,o,e,t?t(a,"tablet"):!0),s=r.onChange;return{...n,set:l=>s(n.key,l),clear:()=>s(n.key,df)}}function n0({value:e,onChange:o,label:t,accept:r,placeholder:a,focusKey:n,focusWhen:s,frameKey:l,fieldKey:d}){let c=RU(),f=LU(),u=i(t),p=OU(),h=r.startsWith("video"),I=BU(p,h?void 0:n,s),g=!!n&&eI(p)!=="desktop",C=kU(TU),w=ta(),T=l&&d?{video:d,frame:l}:null,y=E=>AU(c,{accept:r,title:u,...E?{file:E}:{}}).then(W=>!W||!T?W?.url??null:(w({[T.video]:W.url,[T.frame]:W.posterUrl??""}),null)),b=T?E=>E?o(E):w({[T.video]:"",[T.frame]:""}):o,P=zo(e);if(g&&(!I||!P))return null;if(C&&!C.capabilities.mediaEditing)return Xo(Jx,{label:u,icon:h?Xo(a0,{}):Xo(Qx,{}),children:Xo("div",{className:"sf-image-slot-inert",children:h?i("Templates don\u2019t store videos \u2014 this slot stays a placeholder. Each website picks its own after it\u2019s created."):i("Templates don\u2019t store images \u2014 this slot stays a placeholder. Each website picks its own after it\u2019s created.")})});let H=I?.ownView&&P?Xo(yU,{words:de()?.panel,label:i("Image focus"),changed:!!I.own,detail:_U(E=>i(E),I.followed,I.followsView),onReset:I.clear}):void 0;return g&&I?Xo(Jx,{label:u,icon:Xo(Qx,{}),action:H,children:Xo("div",{style:{flex:"1 1 auto",minWidth:0},children:Xo(CU,{value:I.focus,onChange:I.set,label:i("Image focus"),image:P,hint:null})})}):Xo(Jx,{label:u,icon:h?Xo(a0,{}):Xo(Qx,{}),children:Xo("div",{style:{flex:"1 1 auto",minWidth:0},children:Xo(vU,{value:P,onChange:b,onPick:y,accept:h?"video/*":"image/*",kind:h?"video":"image",placeholder:a===void 0?void 0:i(a),maxSizeBytes:to(f).media.maxUploadBytes,...I?{focus:I.focus,onFocusChange:I.set}:{}})})})}import{jsx as s0}from"react/jsx-runtime";import{useId as DU}from"react";import{FieldSelect as NU}from"efficient-easel/fields";import{SettingsField as MU}from"efficient-easel/panel";function HU(e){return e.map(({value:o,label:t,note:r})=>({value:o,label:t,...r?{meta:r}:{}}))}function l0({label:e,options:o,value:t,onChange:r,emptyLabel:a,icon:n,hint:s}){let l=DU(),d=`${l}-label`,c=`${l}-button`,f=Array.isArray(t)?t:[];return s0(MU,{label:i(e),labelId:d,icon:n,hint:s,children:s0(NU,{id:c,multiple:!0,value:f,options:HU(o),onChange:r,placeholder:a===void 0?i("None"):i(a),ariaLabelledBy:`${d} ${c}`,inline:!0})})}import{jsx as Io,jsxs as Wa,Fragment as mz}from"react/jsx-runtime";import{useCallback as y0,useContext as hz,useId as C0,useRef as S0,useState as w0}from"react";import{ThemeIcon as xz}from"efficient-easel/icons";import{Button as Iz,useClickOutside as gz}from"efficient-shell/ui";import{SettingsField as bz}from"efficient-easel/panel";import{ScreenDocumentContext as yz}from"efficient-easel/screen/components/ScreenDocumentContext";import{jsx as fe,jsxs as aa,Fragment as qU}from"react/jsx-runtime";import{parseHexColor as YU}from"efficient-shell/format";import{Button as tI,IconButton as XU,Tooltip as ZU}from"efficient-shell/ui";import{jsx as ra,jsxs as WU}from"react/jsx-runtime";import{AccentIcon as UU}from"efficient-easel/icons";import{Button as zU,Tooltip as $U}from"efficient-shell/ui";function oI(e){return Vo(e).background}function GU(e){let o=Kr(e.accent,oI(e));return o===null?null:{ratio:o,grade:Zn(o)}}function jU(e){let o=oI(e),t=Kr(e.accent,o);return t===null?[]:Yv(e.accent).filter(r=>{let a=Kr(r,o);return a!==null&&a>t&&Zn(a)==="good"})}var KU={good:"Easy to read","large-only":Xn["large-only"],hard:Xn.hard};function i0({value:e,onChange:o}){let t=GU(e),r=t?.grade,a=t&&t.grade!=="good"?jU(e):[];return ra(Yo,{label:i("Main color"),icon:ra(UU,{}),hint:t?i(KU[t.grade]):void 0,value:e.accent,onChange:n=>o({...e,accent:n}),children:a.length>0?ra("div",{className:"w-full min-w-0",children:WU("div",{className:"sf-readability",children:[ra("p",{className:"sf-readability-advice",children:VU(r,!0)}),ra("div",{className:"sf-readability-suggestions",children:a.map(n=>{let s=Kr(n,oI(e));return ra($U,{content:i("Use {colour}",{colour:n.toUpperCase()}),children:ra(zU,{variant:"secondary",className:"sf-readability-suggestion",leftIcon:ra("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 VU(e,o){return e?e==="good"?i("This color reads clearly on your pages."):o?i("This color is hard to read on this theme's page. The buttons below are the same hue, darkened."):i("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."):i("Pick a color to see how it reads.")}import{ButtonIcon as JU,ChevronDownIcon as c0,ChevronUpIcon as QU,GroundIcon as ez,LayoutIcon as oz,SquareIcon as tz,TextSmallIcon as rz,TypeIcon as d0}from"efficient-easel/icons";var Vl=e=>i("Theme {n}",{n:e+1});function f0({colors:e}){let o=Vo(e),t=El(e)??o.accent;return aa("span",{className:"sf-theme-page",style:{background:o.background,color:o.text},"aria-hidden":!0,children:[fe("span",{className:"sf-theme-eyebrow",style:{color:o.muted},children:i("label")}),aa("span",{className:"sf-theme-headline",children:[i("Heading")," ",fe("span",{style:{color:o.accent},children:i("main")})]}),fe("span",{className:"sf-theme-body",children:i("body text")}),aa("span",{className:"sf-theme-row",children:[fe("span",{className:"sf-theme-btn",style:{background:t,color:Nh(e,o.accent)},children:i("button")}),fe("span",{className:"sf-theme-mini",style:{background:o.surface,borderColor:o.line},children:i("card")})]})]})}var rI={"Text color":fe(d0,{}),"Label color":fe(rz,{}),Background:fe(ez,{}),"Panels & cards":fe(oz,{}),Borders:fe(tz,{}),"Button color":fe(JU,{}),"Button text color":fe(d0,{})};function az({label:e,colorKey:o,value:t,onChange:r,idPrefix:a="sf-theme-ink"}){let n=`${a}-${o}`;return fe(Yo,{label:i(e),icon:rI[e],id:n,value:t,onChange:s=>r(o,s)})}function nz({value:e,accent:o,onChange:t,idPrefix:r="sf-theme-ink"}){let a=`${r}-button`,n=e!==void 0&&YU(e)===e.toLowerCase(),s=n?e:o;return fe(Yo,{label:i("Button color"),icon:rI["Button color"],id:a,value:s,caption:n?s:i("Main"),onChange:t})}function sz({colors:e,accent:o,onChange:t,idPrefix:r="sf-theme-ink"}){let a=`${r}-button-ink`,n=Xv(e),s=Nh(e,o),l=El(e)??o,d=Zn(Kr(s,l)??0);return fe(Yo,{label:i("Button text color"),icon:rI["Button text color"],hint:n&&d!=="good"?i("{grade} on the button",{grade:i(Xn[d])}):void 0,id:a,value:s,caption:n?s:i("Auto"),onChange:t})}var lz=[{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 aI({colors:e,onChange:o,idPrefix:t}){let r=Vo(e);return fe(qU,{children:lz.map(a=>"colour"in a?fe(i0,{value:e,onChange:o},"colour"):"moduleBreak"in a?fe("div",{className:"sf-theme-module-break","aria-hidden":"true"},"module-break"):"button"in a?fe(nz,{value:e.button,accent:r.accent,onChange:n=>o({...e,button:n}),idPrefix:t},"button"):"buttonInk"in a?fe(sz,{colors:e,accent:r.accent,onChange:n=>o({...e,buttonInk:n}),idPrefix:t},"buttonInk"):fe(az,{label:a.label,colorKey:a.key,value:r[a.key],onChange:(n,s)=>o({...e,[n]:s}),idPrefix:t},a.key))})}function hf({index:e,colors:o,selected:t,role:r="radio",open:a,editable:n=!0,onPick:s,onEdit:l,onChangeColors:d}){let c=Vo(o),f=Vl(e),u=e<Dh.length&&!o.brandInk?Dh[e]:null,p=Zn(Kr(c.text,c.background)??0),h=u?JSON.stringify(o)!==JSON.stringify(u):!1,I=a!==void 0;return aa("div",{className:`sf-theme-card${t?" is-selected":""}`,children:[fe("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:fe(f0,{colors:o})}),aa("div",{className:"sf-theme-foot",children:[fe("span",{className:"sf-theme-name",children:f}),p!=="good"&&fe("span",{className:"sf-theme-warn",children:i(Xn[p])}),n&&l&&I&&fe("span",{className:"sf-theme-edit",children:fe(ZU,{content:a?i("Collapse"):i("Edit colors"),children:fe(XU,{size:"sm","aria-expanded":a,"aria-controls":`sf-theme-colours-${e}`,"aria-label":a?i("Collapse {name}",{name:f}):i("Edit colors for {name}",{name:f}),onClick:l,children:a?fe(QU,{size:14}):fe(c0,{size:14})})})}),n&&l&&!I&&fe(tI,{variant:"secondary",size:"sm",className:"sf-theme-edit","aria-label":i("Edit {name}",{name:f}),onClick:l,children:i("Edit")})]}),a&&aa("div",{id:`sf-theme-colours-${e}`,className:"sf-theme-colours",children:[fe(aI,{colors:o,onChange:g=>d?.(g)}),u&&fe(tI,{variant:"link",size:"sm",className:"sf-theme-reset",disabled:!h,onClick:()=>d?.({...u}),children:h?i("Reset {name} to the preset",{name:f}):i("Not changed")})]})]})}function p0({colors:e,name:o,nameId:t,open:r,menuId:a,labelId:n,buttonRef:s,onClick:l,onKeyDown:d,onEdit:c}){return aa("div",{className:"sf-secttheme-btn",children:[fe("button",{ref:s,type:"button",className:"sf-theme-pick","aria-expanded":r,"aria-controls":a,"aria-labelledby":`${n} ${t}`,onClick:l,onKeyDown:d,children:e?fe(f0,{colors:e}):fe("span",{className:"sf-secttheme-nopreview","aria-hidden":"true"})}),aa("div",{className:"sf-theme-foot",children:[fe("span",{id:t,className:"sf-theme-name",children:o}),c&&fe(tI,{variant:"secondary",size:"sm",className:"sf-theme-edit","aria-label":i("Edit {name}",{name:o}),onClick:c,children:i("Edit")}),fe("button",{type:"button",className:"sf-secttheme-caret","aria-hidden":"true",tabIndex:-1,onClick:l,children:fe(c0,{size:12,className:"sf-multi-caret","aria-hidden":"true"})})]})]})}import{useCallback as cI,useEffect as I0,useRef as bf}from"react";import{currentEaselSession as cz}from"efficient-easel/screen/lib/session";import{useEaselSession as fz}from"efficient-easel/screen/lib/session-context";import{useSyncExternalStore as iz}from"react";var m0,nI=null,Ha=null,xf=0,sI=new Set;function lI(e){m0=e;for(let o of sI)o()}function iI(e){nI=e,xf+=1,Ha&&clearTimeout(Ha),Ha=null,lI(void 0)}function If(e){xf+=1,lI(e)}function Or(e=250){nI&&(Ha&&clearTimeout(Ha),Ha=setTimeout(()=>{Ha=null;let o=nI;if(!o)return;let t=++xf;o().then(r=>{t===xf&&lI(r)}).catch(()=>{})},e))}function u0(){return m0}function dz(e){return sI.add(e),()=>{sI.delete(e)}}function gf(){return iz(dz,u0,u0)}var dI=new Set;function h0(e){return dI.add(e),()=>{dI.delete(e)}}async function x0(){let e=(await Promise.allSettled([...dI].map(async o=>o()))).find(o=>o.status==="rejected");if(e)throw e.reason}import{WebsiteBackendError as pz}from"efficient-easel/screen/lib/backend-error";function g0(e=cz()){return(o,t,r)=>{let a=to(e).theme;return a?a.update(o,r?{siteId:r}:void 0):Promise.reject(new pz("invalid","This backend stores no site theme."))}}function b0(e){return e.themeFromDocument?{status:"skipped",reason:"template"}:e.token?null:{status:"skipped",reason:"no-token"}}async function uz(e,o=g0()){let{themeFromDocument:t,token:r,siteId:a,patch:n}=e,s=b0({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(l){return{status:"failed",error:l}}}function hs({themeFromDocument:e,tokenRef:o,siteId:t,onResult:r}){let a=bf(null),n=bf({}),s=fz(),l=bf(r);l.current=r;let d=bf(null),c=cI(p=>{if(p.status==="skipped"){let h=`skipped:${p.reason}`;if(d.current===h)return;d.current=h}else d.current=null;l.current?.(p)},[]),f=cI(async()=>{a.current&&(clearTimeout(a.current),a.current=null);let p=n.current;n.current={};let h=await uz({themeFromDocument:e,token:o?.current,siteId:t,patch:p},g0(s));return c(h),h.status==="saved"&&Or(),h.status==="failed"&&(n.current={...p,...n.current}),h},[e,o,t,c,s]),u=cI((p,h=!1)=>{let I=b0({themeFromDocument:e,token:o?.current});if(I){c(I);return}n.current={...n.current,...p},a.current&&clearTimeout(a.current),h?f():a.current=setTimeout(()=>{f()},500)},[e,o,f,c]);return I0(()=>()=>{f()},[f]),I0(()=>h0(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 Sz="Follow the page",lge="Follow the slideshow",wz=e=>i("Editing {name} changes it everywhere.",{name:e});function Cz({colors:e}){if(!e)return Io("span",{className:"sf-secttheme-chip sf-secttheme-chip--none","aria-hidden":"true"});let o=Vo(e);return Wa("span",{className:"sf-secttheme-chip","aria-hidden":"true",children:[Io("i",{style:{background:o.background}}),Io("i",{className:"sf-secttheme-chip-accent",style:{background:o.accent}})]})}function vz({themes:e,value:o,onPick:t,onEdit:r,menuId:a,followLabel:n}){return Wa("div",{className:"sf-multi-menu sf-secttheme-menu",id:a,role:"listbox",children:[n!==void 0&&Wa(mz,{children:[Wa("button",{type:"button",role:"option","aria-selected":o===null,className:`sf-secttheme-item${o===null?" is-active":""}`,onClick:()=>t(Qt),children:[Io(Cz,{}),Io("span",{className:"sf-secttheme-name",children:i(n)})]}),Io("div",{className:"sf-secttheme-sep",role:"presentation"})]}),o!==null&&e[o]&&Io("p",{className:"sf-secttheme-oncard",role:"presentation",children:i("{name} is on this section",{name:Vl(o)})}),e.map((s,l)=>l===o?null:Io(hf,{role:"option",index:l,colors:s,selected:!1,onPick:()=>t(l),onEdit:()=>r(l)},l))]})}function kz({index:e,colors:o,onChange:t,onDone:r}){let a=Vl(e),n=C0();return Wa("div",{className:"sf-secttheme-sheet",children:[Wa("div",{className:"sf-secttheme-sheet-head",children:[Io("span",{children:a}),Io(Iz,{variant:"secondary",className:"sf-secttheme-done",onClick:r,children:i("Done")})]}),Io("div",{className:"sf-secttheme-rows",children:Io(aI,{colors:o,onChange:t,idPrefix:n})}),Io("p",{className:"sf-secttheme-warn",children:wz(a)})]})}function v0({value:e,onChange:o,followLabel:t,hint:r}){let{theme:a,setTheme:n}=he(),s=xo(a),l=hz(yz),d=l?.tokenRef,c=l?.siteId??null,f=!l?.capabilities?.hasSiteTheme,{persist:u,flush:p}=hs({themeFromDocument:f,tokenRef:d,siteId:c}),h=xo(s),I=h.themes,g=er(e),C=g!==null?I[g]:void 0,w=C??(I.length?Yn(h):void 0),[T,y]=w0(!1),[b,P]=w0(null),H=S0(null),E=S0(null),W=C0(),O=y0(()=>{y(!1),P(null)},[]),D=y0(()=>{!T&&b===null||(p(),O())},[T,b,O,p]);gz(H,D);let v=A=>{o(A),O()},_=A=>{if(b===null)return;let F=I.map(($,X)=>X===b?A:$),z={...h,themes:F};n(z),u({selected_preset:z.selected,theme_presets:z.themes})};return Wa("div",{className:"sf-secttheme",ref:H,children:[Io(bz,{label:i("Theme"),icon:Io(xz,{}),labelId:`${W}-label`,hint:r,children:Io(p0,{colors:w,onEdit:g!==null?()=>{P(g),y(!1)}:void 0,name:C?Vl(g):i(t??Sz),nameId:`${W}-value`,labelId:`${W}-label`,open:T,menuId:W,buttonRef:E,onClick:()=>{P(null),y(A=>!A)},onKeyDown:A=>{A.key==="Escape"&&(T||b!==null)&&(A.preventDefault(),O())}})}),T&&b===null&&Io("div",{onKeyDown:A=>{A.key==="Escape"&&(A.preventDefault(),O(),E.current?.focus())},children:Io(vz,{themes:I,value:g,onPick:v,onEdit:A=>{P(A),y(!1)},menuId:W,followLabel:t})}),b!==null&&I[b]&&Io(kz,{index:b,colors:I[b],onChange:_,onDone:()=>{p(),O(),E.current?.focus()}})]})}import{jsx as k0}from"react/jsx-runtime";import{useId as Tz}from"react";import{FieldSelect as Pz}from"efficient-easel/fields";import{SettingsField as Ez}from"efficient-easel/panel";function Oz(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 mge({label:e,options:o,fallback:t,value:r,onChange:a,placeholder:n,bare:s=!1,icon:l}){let d=Tz(),c=`${d}-label`,f=`${d}-button`,u=r??"",p=o.some(C=>C.value===u)?u:t,h=i(e),I=n===void 0?void 0:i(n),g=k0(Pz,{id:f,value:p,options:Oz(o),onChange:a,placeholder:I,searchPlaceholder:I,...s?{ariaLabel:h}:{ariaLabelledBy:`${c} ${f}`},searchable:!0,groupCount:!0,inline:!0});return s?g:k0(Ez,{label:h,labelId:c,icon:l,children:g})}import{jsx as za,jsxs as i$}from"react/jsx-runtime";import{SettingsField as q0}from"efficient-easel/panel";import{LinkIcon as d$}from"efficient-easel/icons";import{LinkPicker as c$,TextLinkField as f$}from"efficient-shell/ui";import{useEffect as V0,useMemo as vf,useRef as p$,useState as Cf}from"react";import{currentEaselSession as _z}from"efficient-easel/screen/lib/session";function T0(){return _z().auth.token}import{currentEaselSession as u$}from"efficient-easel/screen/lib/session";import{useScreenDocument as m$}from"efficient-easel/screen/components/ScreenDocumentContext";var Az=()=>({choosePage:i("Choose a page"),chooseSection:i("Choose a section"),noSections:i("No section anchors yet"),sectionHint:i("Jumps to a section on that page."),choosePost:i("Choose a post"),chooseProduct:i("Choose a product"),choosePopup:i("Choose a popup")});function P0(e,o,t){if(!e)return"page";if(pP(e))return"popup";if(e.startsWith("/journal/"))return"blog";if(hP(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 fI(e,o){let t=Az(),r=e.pages.map(f=>({value:Wl(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:mP(...f.docs).map(u=>({value:qc(f.slug,u.slug),label:u.name}))})).filter(f=>f.options.length>0),l=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:uP(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:fP(u.slug),label:u.title||u.slug})),placeholder:t.choosePopup};case"custom":return{type:"text"}}},d=cP(e.offers).map(f=>({value:f.value,label:i(f.label),target:l(f.value),...f.value==="anchor"?{hint:t.sectionHint}:{},...f.value==="blog"||f.value==="product"||f.value==="popup"?{hideWhenEmpty:!0}:{}}));if(!o)return{kinds:d,rules:{kindOf:f=>P0(f,n),targetOf:f=>f,readFilter:()=>null,withFilter:f=>f}};let c=f=>{let u=o.withFilter(f,null);return o.listingPaths.includes(u)?u:f};return{kinds:d,rules:{kindOf:f=>P0(f,n,{listingPaths:o.listingPaths,targetOf:c}),targetOf:c,readFilter:o.readFilter,withFilter:o.withFilter},filtersFor:f=>o.listingPaths.includes(f)?o.filtersFor(f):null}}import{useEaselSession as h$}from"efficient-easel/screen/lib/session-context";function Eo(e,o){if(typeof e=="string")return e||o;if(e&&typeof e=="object"&&"text"in e){let t=e.text;return Se(t)??o}return o}function E0(e,o){return q(e)??o}function _r(e,o){return typeof e=="boolean"?e:o}function yf(e,o){if(!Array.isArray(e))return o;let t=e.map(r=>typeof r=="string"?r:Eo(r?.text,"")).map(r=>r.trim()).filter(Boolean);return t.length?t:o}var _0=["delay","scroll","exit"],A0=["all","chosen","except"],R0=["visit","days","never","once"],Rz=["all","desktop","phone"],Lz=["stop","continue"],L0={min:0,max:60},F0={min:10,max:90},B0={min:1,max:90},Dt={autoOpen:!1,trigger:"delay",autoOpenDelaySec:15,scrollPercent:50,showOn:"all",showOnPages:[],devices:"all",hideAfter:"days",hideDays:7,afterSubmit:"stop",startDate:null,endDate:null};function at(e,o,t){return typeof o=="string"&&e.includes(o)?o:t}function xs(e,o,t){let r=E0(e,t);return Math.min(o.max,Math.max(o.min,Math.round(r)))}function Fz(e){return typeof e.hideAfter=="string"?at(R0,e.hideAfter,Dt.hideAfter):e.oncePerSession===!0?"visit":e.oncePerSession===!1?"never":Dt.hideAfter}function Bz(e){return Array.isArray(e)?e.map(o=>typeof o=="string"?o.trim():"").filter(Boolean).map(o=>o.startsWith("/")?o:`/${o}`):[]}function O0(e){if(typeof e!="string")return null;let o=e.trim();return/^\d{4}-\d{2}-\d{2}$/.test(o)?o:null}function D0(e){let o=e??{},t=Dt;return{autoOpen:_r(o.autoOpen,t.autoOpen),trigger:at(_0,o.trigger,t.trigger),autoOpenDelaySec:xs(o.autoOpenDelaySec,L0,t.autoOpenDelaySec),scrollPercent:xs(o.scrollPercent,F0,t.scrollPercent),showOn:at(A0,o.showOn,t.showOn),showOnPages:Bz(o.showOnPages),devices:at(Rz,o.devices,t.devices),hideAfter:Fz(o),hideDays:xs(o.hideDays,B0,t.hideDays),afterSubmit:at(Lz,o.afterSubmit,t.afterSubmit),startDate:O0(o.startDate),endDate:O0(o.endDate)}}import{parseHexColor as Dz}from"efficient-shell/format";var Nt="#000000";var pI="popup",Nz=xk,Mz=["auto","full"],Hz=["inside","outside","none"],Wz={min:240,max:1440},Uz={min:0,max:100},ql={placement:"center",fullWidth:!1,width:720,height:"auto",tintColor:Nt,tintOpacity:60,outsideClick:!0,closeButton:"inside"};function zz(e,o){let t=typeof e=="string"?e.trim():"";return t&&Dz(t)===t.toLowerCase()?t:o}function uI(e,o=ql){let t=e??{},r=o;return{placement:at(Nz,t.placement,r.placement),fullWidth:_r(t.fullWidth,r.fullWidth),width:xs(t.width,Wz,r.width),height:at(Mz,t.height,r.height),tintColor:zz(t.tintColor,r.tintColor),tintOpacity:xs(t.tintOpacity,Uz,r.tintOpacity),outsideClick:_r(t.outsideClick,r.outsideClick),closeButton:at(Hz,t.closeButton,r.closeButton)}}var N0="cart-drawer",Dge="cart-drawer",$z={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 Nge(e,o){return o===0?e.subtitleEmpty:o===1?e.subtitleOne:e.subtitleMany.replace("{count}",String(o))}function Mge(e){let o=e??{},t=$z;return{kickerBadge:Eo(o.kickerBadge,t.kickerBadge),kickerText:Eo(o.kickerText,t.kickerText),titleLead:Eo(o.titleLead,t.titleLead),titleAccent:Eo(o.titleAccent,t.titleAccent),subtitleEmpty:Eo(o.subtitleEmpty,t.subtitleEmpty),subtitleOne:Eo(o.subtitleOne,t.subtitleOne),subtitleMany:Eo(o.subtitleMany,t.subtitleMany),leadTimeValue:Eo(o.leadTimeValue,t.leadTimeValue),shipsToFallback:Eo(o.shipsToFallback,t.shipsToFallback),promises:yf(o.promises,t.promises),emptyKicker:Eo(o.emptyKicker,t.emptyKicker),emptyBody:Eo(o.emptyBody,t.emptyBody)}}var Gz=["right","left"],jz={...ql,width:520,tintOpacity:68};function Hge(e){let o=e??{};return{...uI(o,jz),placement:at(Gz,o.placement,"right"),height:"full",fullWidth:!1,autoOpen:_r(o.autoOpen,!0)}}var H0="consent-banner",$ge="consent-banner";var Kz=[{value:"bar",label:"Bar"},{value:"card",label:"Card"}],Gge="Layout",M0={layout:"bar"},Vz=e=>Kz.some(o=>o.value===e);function jge(e){let o=Eo((e??{}).layout,M0.layout);return{layout:Vz(o)?o:M0.layout}}var Kge={...ql,placement:"bottom-center",fullWidth:!0,width:440,tintOpacity:0,outsideClick:!1,closeButton:"none"};var qz="consentWords",Yz=["eyebrow","notice","accept","reject","choose"];function mI(e){let o=(e??{})[qz];return typeof o=="string"&&Yz.includes(o)?o:null}function hI(e){let o=e?.props;return o?mI(o)!==null?!0:Object.values(o).some(t=>Array.isArray(t)&&t.some(r=>r&&typeof r=="object"&&"props"in r&&hI(r))):!1}var Xz=["meta","eyebrow","heading","body","statName","statValue","formEyebrow","formHeading","formIntro","fieldLabel","option","finePrint","dismiss","doneHeading","doneBody"],Yge={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"},Zz={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"},Xge={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 W0(e){let o={};for(let t of Xz){let r=br(e[Zz[t]]);r&&(o[t]=r)}return o}var U0={heading:"Join our email list",placeholder:"Email address",buttonLabel:"Subscribe"},Jz={lead:"We accept"},wf={...Jz,methods:[],size:"sm",align:"start",dataSource:xC},Mt="site-footer";var Qge=Mt,ebe={desktop:!0,tablet:!0,mobile:!0},obe={desktop:!1,tablet:!1,mobile:!1},xI=1,z0=6,tbe=Array.from({length:z0-xI+1},(e,o)=>xI+o),Sf={desktop:6,tablet:3,mobile:2},Qz={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}},Ua=e=>Math.min(Math.max(Math.round(e),xI),z0);function rbe(e){if(typeof e=="number")return Qz[Ua(e)]??{desktop:Ua(e),tablet:Ua(e),mobile:Ua(e)};if(e&&typeof e=="object"){let o=e;return{desktop:Ua(o.desktop??Sf.desktop),tablet:Ua(o.tablet??Sf.tablet),mobile:Ua(o.mobile??Sf.mobile)}}return{...Sf}}var II="subscribe-popup",fbe="subscribe-popup",e$=[II,Mt,N0,H0];function G0(e){return e$.includes(e)}var o$=["right","left"],t$={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:Dt.autoOpen,autoOpenDelaySec:Dt.autoOpenDelaySec,formSlug:"",trigger:Dt.trigger,scrollPercent:Dt.scrollPercent,showOn:Dt.showOn,showOnPages:[],hideAfter:Dt.hideAfter,hideDays:Dt.hideDays,formSide:"right",valuePanelOnPhone:!1,sectionAccent:void 0,sectionCorners:void 0,sectionCornerSides:void 0,textStyles:{}},ro=Eo,r$=_r,j0=yf;function $0(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 a$(e,o){return Array.isArray(e)?j0(e,[]):o}function n$(e,o){return Array.isArray(e)?e.map(t=>{let r=t??{};return{label:ro(r.label,""),value:ro(r.value,"")}}).filter(t=>t.label||t.value):o}function ube(e){let o=e??{},t=t$,r=D0(o);return{metaLabel:ro(o.metaLabel,t.metaLabel),issueLabel:$0(o.issueLabel,t.issueLabel),issueNumber:$0(o.issueNumber,t.issueNumber),kicker:ro(o.kicker,t.kicker),heading:ro(o.heading,t.heading),deck:ro(o.deck,t.deck),stats:n$(o.stats,t.stats),formLabel:ro(o.formLabel,t.formLabel),formHeading:ro(o.formHeading,t.formHeading),formIntro:ro(o.formIntro,t.formIntro),firstNameLabel:ro(o.firstNameLabel,t.firstNameLabel),firstNamePlaceholder:ro(o.firstNamePlaceholder,t.firstNamePlaceholder),emailLabel:ro(o.emailLabel,t.emailLabel),emailPlaceholder:ro(o.emailPlaceholder,t.emailPlaceholder),interestsLabel:ro(o.interestsLabel,t.interestsLabel),interests:j0(o.interests,t.interests),frequencyLabel:ro(o.frequencyLabel,t.frequencyLabel),frequencies:a$(o.frequencies,t.frequencies),submitText:ro(o.submitText,t.submitText),finePrint:ro(o.finePrint,t.finePrint),dismissText:ro(o.dismissText,t.dismissText),emailInvalidText:ro(o.emailInvalidText,t.emailInvalidText),submitErrorText:ro(o.submitErrorText,t.submitErrorText),successHeading:ro(o.successHeading,t.successHeading),successBody:ro(o.successBody,t.successBody),keepBrowsingText:ro(o.keepBrowsingText,t.keepBrowsingText),formSlug:typeof o.formSlug=="string"?o.formSlug.trim():t.formSlug,autoOpen:r.autoOpen,autoOpenDelaySec:r.autoOpenDelaySec,trigger:r.trigger,scrollPercent:r.scrollPercent,showOn:r.showOn,showOnPages:r.showOnPages,hideAfter:r.hideAfter,hideDays:r.hideDays,formSide:at(o$,o.formSide,t.formSide),valuePanelOnPhone:r$(o.valuePanelOnPhone,t.valuePanelOnPhone),sectionAccent:o.sectionAccent,sectionCorners:o.sectionCorners,sectionCornerSides:o.sectionCornerSides,textStyles:W0(o)}}function s$(e,o=Math.random){for(;;){let t=`popup-${Math.floor(o()*2176782336).toString(36).padStart(6,"0")}`;if(!e.has(t))return t}}function l$(e){return{root:{props:{title:e,kind:pI}},content:[],zones:{}}}function K0(e,o,t){return{slug:s$(o,t),title:e,kind:Cx,layout:l$(e)}}function Yl(e){return e?.root?.props?.kind===pI}function Y0(e){let o=new Map;return(t="")=>{let r=T0(),a=o.get(t);if(!a||a.token===null&&r!==null){let n=r||!u$().usesBridgedToken?e(r??"",t).catch(()=>[]):Promise.resolve([]);return o.set(t,{promise:n,token:r}),n}return a.promise}}var x$=Y0(async(e,o)=>{let t=o?{siteId:o}:void 0,{pages:r}=to();return r.linkTargets?r.linkTargets(t):(await r.list(t)).map(a=>({id:a.id,slug:a.slug,label:a.label,layout:null}))}),I$=Y0(async(e,o)=>await to().blog?.posts(o?{siteId:o}:void 0)??[]);function g$({value:e,onChange:o,label:t="Link",data:r,filters:a}){let n=vf(()=>fI(r,a),[r,a]),s=i(t);return za(q0,{label:s,icon:za(d$,{}),children:za(c$,{value:e,onChange:l=>o(l),kinds:n.kinds,rules:n.rules,filtersFor:n.filtersFor,label:s})})}function X0(){let{siteId:e,capabilities:o}=m$(),{offersCommerce:t,hasBlog:r}=o,[a,n]=Cf([]),[s,l]=Cf([]),[d,c]=Cf([]),[f,u]=Cf(null),p=h$().chrome,h=p?.products?.list,I=p?.linkFilters,g=I?void 0:p?.linkRow,C=p$(!0);V0(()=>(C.current=!0,()=>{C.current=!1}),[]),V0(()=>{let y=!0;return x$(e??void 0).then(b=>y&&C.current&&n(b)),r&&I$(e??void 0).then(b=>y&&C.current&&l(b)),t&&h?.().then(b=>y&&C.current&&c(b)),t&&I?I.load(e).catch(()=>null).then(b=>y&&C.current&&u(()=>b)):u(null),()=>{y=!1}},[e,t,r,h,I]);let w=vf(()=>({pages:a.filter(y=>!G0(y.slug)&&!Yl(y.layout)).map(y=>({slug:y.slug,title:y.label,docs:[y.layout]})),popups:a.filter(y=>y.slug===II||Yl(y.layout)).map(y=>({slug:y.slug,title:y.label})),posts:r?s.map(y=>({slug:y.slug,title:y.title})):[],products:t?d.map(y=>({href:y.href,name:y.name})):[],offers:{offersCommerce:t,offersService:r}}),[a,s,d,t,r]),T=vf(()=>f?f(w.pages):null,[f,w]);return{data:w,filters:T,pages:a,offersCommerce:t,HostLinkRow:g}}function Lbe({label:e,icon:o,text:t,onTextChange:r,link:a,onLinkChange:n}){let{data:s,filters:l}=X0(),d=vf(()=>fI(s,l),[s,l]),c=i(e);return za(q0,{label:c,icon:o,children:za(f$,{label:c,text:t,onTextChange:r,link:a,onLinkChange:f=>n(f),kinds:d.kinds,rules:d.rules,filtersFor:d.filtersFor})})}function Z0({value:e,onChange:o,label:t="Link"}){let r=typeof e=="string"?e:"",{data:a,filters:n,pages:s,offersCommerce:l,HostLinkRow:d}=X0(),c=a.pages.map(u=>Wl(u.slug)),f=l&&d&&(r==="/"||c.includes(r))?d:void 0;return i$("div",{children:[za(g$,{value:r,onChange:o,label:t,data:a,filters:n}),f&&za(f,{value:r,onChange:o,pages:s})]})}import{UiIcon as aO}from"efficient-easel/draw/client";import{phoneKey as sE,resolveViewValue as R$,tabletKey as lE,viewKeyAt as $a}from"efficient-easel/draw";import{SECTION_PAD_UNIT_KEY as dE,SITE_SIDE as L$,convertLength as F$,isLengthUnit as B$,isSiteSide as cE,sideLengthAt as D$,sideValueAt as N$,withLength as CI}from"efficient-easel/screen/lib/content/length-units";import{convertLength as b$}from"efficient-easel/screen/lib/content/length-units";var uo={min:1e3,max:2e3,step:50,default:1600};function y$(e){return{maxWidth:e,marginInline:"auto",width:"100%"}}var gI="--sf-site-width",yI=`var(${gI},${uo.default}px)`,Nbe="100vw",Mbe=`max-w-[${yI}]`,Hbe=`max-w-[${uo.default}px]`;function oE(e){return typeof e!="number"||!Number.isFinite(e)?uo.default:Math.round(Math.min(Math.max(e,uo.min),uo.max))}function Wbe(e,o){let t=Aa(e,o,"size",uo);if(t!==null)return{[gI]:t};let r=oE(e);return r===uo.default?{}:{[gI]:`${r}px`}}var Go={min:0,max:80,step:4,default:40},bI="--sf-site-gutter",Ht={min:0,max:24,step:4},J0="--sf-site-gutter-phone",S$="max-view-tablet:[--sf-site-gutter:var(--sf-site-gutter-phone)]!",w$="max-view-wide:[&_[data-sf-line~=edge]:not([data-sf-line~=edge]_*)]:[--sf-site-gutter:var(--sf-site-gutter-phone)]",nt=`var(${bI},${Go.default}px)`,C$=`px-[${nt}]`;var ar={md:`min(24px,${nt})`,sm:`min(20px,${nt})`,frame:`min(24px,${nt})`,tabs:`min(16px,${nt})`},Ube=[[`max-view-desktop:px-[${ar.md}]`,"max-view-desktop:px-6"],[`max-view-desktop:px-[${ar.tabs}]`,"max-view-desktop:px-4"],[`max-[960px]:px-[${ar.frame}]`,"max-[960px]:px-6"],[`max-[900px]:px-[${ar.md}]`,"max-[900px]:px-6"],[`max-view-wide:px-[${ar.md}]`,"max-view-wide:px-6"],[`max-view-tablet:px-[${ar.sm}]`,"max-view-tablet:px-5"],[`max-view-wide:px-[${ar.sm}]`,"max-view-wide:px-5"],[`max-[640px]:px-[${ar.sm}]`,"max-[640px]:px-5"],[`view-wide:px-[${nt}]`,"view-wide:px-10"],[`max-view-tablet:px-[min(24px,${nt})]`,"max-view-tablet:px-6"],[`max-view-wide:-mx-[min(20px,${nt})]`,"max-view-wide:-mx-5"],[`max-view-tablet:-mx-[min(20px,${nt})]`,"max-view-tablet:-mx-5"],[`-mx-[${nt}]`,"-mx-10"],[C$,"px-10"]];var tE="max-view-wide:px-[min(20px,var(--sf-site-gutter,40px))]";function SI(e){return v$[e??"box"]}var Q0="var(--sf-pad-site,var(--sf-box-g,var(--sf-site-gutter,40px)))",eE="[--sf-edge-g:var(--sf-pad-site)]",v$={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:Q0,edge:eE,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:Q0,edge:eE,frame:tE}},zbe=`mx-auto max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)] ${tE}`,$be="[--sf-box-g:var(--sf-site-gutter,40px)] [&>*]:[--sf-site-gutter:0px]";var Gbe="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 kf(e){return typeof e!="number"||!Number.isFinite(e)?Go.default:Math.round(Math.min(Math.max(e,Go.min),Go.max))}function jbe(e,o){let t=Aa(e,o,"spacing",Go);if(t!==null)return{[bI]:t};let r=kf(e);return r===Go.default?{}:{[bI]:`${r}px`}}function Tf(e){return typeof e!="number"||!Number.isFinite(e)?null:Math.round(Math.min(Math.max(e,Ht.min),Ht.max))}function rE(e){return typeof e=="number"&&Number.isFinite(e)?oE(e):null}function Kbe(e,o){let t=Aa(e,o,"spacing",Ht);if(t!==null)return{[J0]:t};let r=Tf(e);return r===null?{}:{[J0]:`${r}px`}}function Vbe(e){return Tf(e)===null?"":`${S$} ${w$}`}function Pf(e,o){let t=fc(e,o,"spacing",Go),r=t===null?kf(e):b$(t,ke(o),"px","mobile",Ht);return Math.min(Ht.max,r)}var aE=yI,qbe=`max-w-[${aE}]`,Ybe=`max-w-[min(var(--sf-page-cap,${uo.default}px),${uo.default}px)]`,nE="--sf-hero-cap",k$=`var(${nE},none)`,Xbe=`max-w-[${k$}]`,T$="--sf-hero-bleed-m",P$="--sf-hero-bleed-w",E$="--sf-hero-chrome-x",O$="--sf-hero-chrome-cap";function Zbe(e){return e===!0?{[nE]:aE,[T$]:"auto",[P$]:"100%",[E$]:"24px",[O$]:"none"}:{}}var wI=`calc(${yI} - ${nt}*2)`,Jbe=`max-w-[${wI.replace(/ /g,"_")}]`;var _$="--sf-chrome-cap",A$=`var(${_$},${wI})`,Qbe="data-page-width";function eye(e){return e==="full"?"full":null}function oye(e){return e==="full"?null:y$(e==="content"?wI:A$)}function tye(e){if(e==="full")return"full";if(e==="content")return"content"}var mt={min:10,max:200,step:10};function M$(e,o,t,r=0){let a=q(e),n=q(o);if(a===void 0&&n===void 0)return;let s=Ef(t),l=d=>d===void 0?void 0:s==="px"?d:CI(d,s,r);return{paddingTop:l(a),paddingBottom:l(n)}}var Ef=e=>ke(e),H$="sf-pad-top-phone",W$="sf-pad-bottom-phone",U$="--sf-pad-t-phone",z$="--sf-pad-b-phone",$$="sf-pad-left-phone",G$="sf-pad-right-phone",j$="--sf-pad-l-phone",K$="--sf-pad-r-phone",V$="sf-pad-top-tablet",q$="sf-pad-bottom-tablet",Y$="sf-pad-left-tablet",X$="sf-pad-right-tablet",Z$="--sf-pad-t-tablet",J$="--sf-pad-b-tablet",Q$="--sf-pad-l-tablet",eG="--sf-pad-r-tablet",fE="sf-section-pad";function Zl(e){let o={desktop:e.unit,tablet:e.unitTablet,phone:e.unitPhone},t=M$(e.top,e.bottom,e.unit,e.frame),r=vI({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:[fE,...r.classes].join(" "),style:{...t,...r.style}}}var oG=e=>cE(e)?e:q(e),tG=[["top","paddingTop",[V$,Z$],[H$,U$]],["bottom","paddingBottom",[q$,J$],[W$,z$]],["left","paddingLeft",[Y$,Q$],[$$,j$]],["right","paddingRight",[X$,eG],[G$,K$]]];function iE(e,o,t){return!B$(o)||o==="px"?e:F$(e,"px",o,t,{min:0,max:mt.max,step:1})}function rG(e,o,t,r={},a=0){let n=(h,I)=>{if(I==="px")return`${h}px`;let g=CI(h,I,a);return typeof g=="number"?`${g}px`:g},s={n:e,[lE("n")]:o,[sE("n")]:t,u:r.desktop,[lE("u")]:r.tablet,[sE("u")]:r.phone},l=R$("spacing",q(e),q(o),q(t),$n()),d=(h,I,g)=>{if(N$(s,{side:"n"},h,"side",["side"])?.value===L$)return SI().value;let C=D$(s,{side:"n"},"u",h,"side");if(!C)return;let w=I!==null&&!g&&C.unit==="px"&&typeof l[I]=="number";return n(w?l[I]:C.value,C.unit)},c=d("desktop",null,!0),f={},u=d("tablet","tablet",o!==void 0);u!==void 0&&(o!==void 0||u!==c)&&(f.tablet=u);let p=d("mobile","phone",t!==void 0);return p!==void 0&&(t!==void 0||p!==c)&&(f.phone=p),f}function vI(e,o,t={},r=e,a={},n=0,s="box"){let l={},d={},c=[],f=SI(s),u=!1;for(let[p,h,...I]of tG){let g=p==="left"||p==="right"?oG:q,C=g(e[p]),w=p==="top"||p==="bottom"?n:0;cE(C)?(l[h]=f.value,u=!0):C!==void 0&&(l[h]=Ef(a.desktop)==="px"?C:CI(C,Ef(a.desktop),w));let T=rG(g(r[p]),g(t[p]),g(o[p]),a,w);for(let[y,[b,P]]of[["tablet",I[0]],["phone",I[1]]]){let H=T[y];H!==void 0&&(c.push(b),d[P]=H,H===f.value&&(u=!0))}}return u&&c.push(...f.className.split(" ")),{classes:c,style:{...l,...d}}}var nr={top:"padTop",bottom:"padBottom",left:"padLeft",right:"padRight"},Ga="padUnit";function Jl(e,o){let t=e[Ga],r=(a,n,s)=>{let l=q(a)??(s===void 0?void 0:iE(s,t,"desktop")),d=q(n);return d===void 0?l:(l??0)+iE(d,t,"desktop")};return{top:r(e.padTop,e.sectionPaddingTop,o.top),bottom:r(e.padBottom,e.sectionPaddingBottom,o.bottom)}}function cye(e,o,t={}){let r=Jl(e,o),a={...TI(e,nr,!0,Ga),top:r.top,bottom:r.bottom};t.noTop&&Object.assign(a,{top:0,topTablet:void 0,topPhone:void 0});let n=Zl(a),s=n?n.className.split(" ").filter(l=>l!==fE):[];return{...s.length?{className:s.join(" ")}:{},style:n?.style??{}}}var Xl={top:"sectionPaddingTop",bottom:"sectionPaddingBottom",left:"sectionPaddingLeft",right:"sectionPaddingRight"},kI=[...["top","bottom","left","right"].map(e=>[nr[e],Xl[e]]),[Ga,dE]].flatMap(([e,o])=>[[e,o],...["tablet","mobile"].map(t=>[$a(e,t),$a(o,t)])]);function TI(e,o=Xl,t=!0,r=o===Xl?dE:void 0){let a={};if(r){e[r]!==void 0&&(a.unit=e[r]);for(let n of["tablet","mobile"])e[$a(r,n)]!==void 0&&(a[$a("unit",n)]=e[$a(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[$a(n,s)]=e[$a(o[n],s)]}return a}function fye(e){return Zl(e)}function pye(e,o){let t=(r,a)=>typeof r!="number"?void 0:Ef(a)==="px"?r+o:r;return Zl({...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 Of,buttonBorderOf as aG,buttonFillOpacityOf as nG,buttonPadSidesOf as sG,viewKeyAt as lG}from"efficient-easel/draw";import{BUTTON_PAD_UNIT_KEY as PI,lengthOf as iG}from"efficient-easel/screen/lib/content/length-units";var dG="px-6 py-4",cG=4,_f=e=>{let o=new RegExp(`\\bp${e}-(?:\\[(\\d+)px\\]|(\\d+))`).exec(dG);if(!o)throw new Error(`BUTTON_PAD_CLASSES has no p${e}`);return o[1]!==void 0?Number(o[1]):Number(o[2])*cG},Sye={top:_f("y"),right:_f("x"),bottom:_f("y"),left:_f("x")},uE="var(--btn)";function fG(e){let o=e.variant==="ghost",t=nG(e.buttonFillOpacity),r=aG(e.buttonBorder),a=Se(e.buttonColor);return{fillOpacity:t??(o?0:100),border:{width:r?.width??1,color:r?.color??a??(o?"currentColor":uE)},changed:t!==void 0||r!==void 0}}function wye(e){let o=fG(e);if(!o.changed)return null;let t=Se(e.buttonColor)??uE;return{background:o.fillOpacity===0?"transparent":o.fillOpacity===100?t:`color-mix(in srgb, ${t} ${o.fillOpacity}%, transparent)`,borderWidth:iG(o.border.width,ke(e.buttonBorderUnit)),borderStyle:"solid",borderColor:o.border.color}}var pG="var(--sf-button-radius, 0)";function Cye(e){let o=q(e.buttonCorners),t=or(e.buttonCornerSides);if(o===void 0&&t===null)return null;let r=o===void 0?pG:We(Math.max(0,o),e.buttonCornersUnit);return{borderRadius:t===null?r:Fa(r,t)}}function vye(e){let o=(s,l)=>e[lG(s,l)],t=s=>sG({top:o(Of.top,s),right:o(Of.right,s),bottom:o(Of.bottom,s),left:o(Of.left,s)})??{},r={desktop:o(PI,"desktop"),tablet:o(PI,"tablet"),phone:o(PI,"mobile")},{classes:a,style:n}=vI(t("desktop"),t("mobile"),t("tablet"),void 0,r);return Object.keys(n).length?{className:a.join(" "),style:n}:null}var pE="upper";function mE(e,o,t){let r=e&&typeof e=="object"?e:{},a=Se(r.textStyle),n=a?Se(o?.find(f=>f?.id===a)?.name):void 0,s=a?/^(heading|body)-(\d+)$/.exec(a):null,l=a?n||(s?t.styleName({kind:s[1],n:Number(s[2])}):a):t.noStyle,{cases:d}=t,c=Se(r.case)??pE;return`${l} \xB7 ${d[c]??d[pE]}`}import{usePreviewParts as uK}from"efficient-easel/draw/client";import{encodePartId as mK}from"efficient-easel/draw";import{DEFAULT_EASEL_STRINGS as hK,useEaselStrings as xK}from"efficient-easel/strings";import{PIN_STICK_VAR as uG,PIN_TRACK_POSITION_VAR as mG,pinAttrs as hE,pinStickVars as hG,readPin as _I}from"efficient-shell/format";var _ye="Stick to top",ht={min:0,max:200,step:4,fallback:0},Ql={kind:"position",unitKey:"stickTopDistanceUnit"},xE=qn(Ql),[xG,IG,gG]=xE,AI="Pin while scrolling",IE="Scroll",Wt={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"},ja="stickTopScreens",bG=[ja,"stickTopScreensTablet","stickTopScreensPhone"],RI="Screens",LI="stickTopStop",Is="screen",gE="Pin stops at",bE=[{value:"header",label:"Under the header"},{value:Is,label:"Screen top"}],yE="header",SE="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 FI(e){return e===Is?Is:"header"}function wE(e){return e===Is?Is:void 0}var ei="stickAbove",CE="Stays above",vE="On: the pinned box stays on top, and the sections after it scroll under it.";function yG(e){return e.stickAbove===!0}var kE=["stickTop","stickTopDistance","stickTopTablet","stickTopDistanceTablet","stickTopPhone","stickTopDistancePhone",...xE,...bG,LI,ei],Aye=new Set(["IntroBleed"]),Rye=new Set(["CategoryBar","DocTabs","Contents"]);function SG(e){return typeof e.stickTop=="boolean"?e.stickTop:e.sticky!==!1}var EI=e=>_I(!0,e).length,BI={any:["stickTop","stickTopTablet","stickTopPhone"].map(e=>({field:e,is:!0}))},TE={all:[{not:{field:"stickTop",in:[!0,!1]}},{not:{field:"sticky",is:!1}}]};function OI(e,o="px"){let t=q(e)??ht.fallback;return o!=="px"?Math.max(ht.min,t):Math.min(ht.max,Math.max(ht.min,Math.round(t)))}function DI(e){return typeof e.stickTopTablet=="boolean"}function NI(e){return typeof e.stickTopPhone=="boolean"}function gs(e,o={}){let t=o.intro?SG(e):e.stickTop===!0,r=e,a=ke(r[xG]),n=OI(e.stickTopDistance,a),s=EI(e.stickTopScreens),l=DI(e),d=l?e.stickTopTablet===!0:t,c=l?ke(r[IG]):a,f=l?OI(e.stickTopDistanceTablet,c):n,u=l?EI(e.stickTopScreensTablet):s,p=NI(e),h=p?e.stickTopPhone===!0:d,I=p?ke(r[gG]):c,g=p?OI(e.stickTopDistancePhone,I):f,C=p?EI(e.stickTopScreensPhone):u;return{desktop:t,desktopDistance:n,desktopUnit:a,desktopScreens:s,tablet:d,tabletDistance:f,tabletUnit:c,tabletScreens:u,ownTablet:l,phone:h,phoneDistance:g,phoneUnit:I,phoneScreens:C,ownPhone:p}}function Lye(e,o={}){let t=gs(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&&yG(e),s=o.track===!0&&!r&&a&&!n,l=(u,p,h,I)=>Ma({tabletClass:"",tabletVar:`${u}-tablet`,phoneClass:"",phoneVar:`${u}-phone`},p,h,I).style,d={...o.atScreenTop||FI(e.stickTopStop)===Is?{[Wt.header]:"0px"}:{},[Wt.distance]:We(t.desktopDistance,t.desktopUnit),...l(Wt.distance,We(t.desktopDistance,t.desktopUnit),We(t.tabletDistance,t.tabletUnit),We(t.phoneDistance,t.phoneUnit))};if(s){let u=h=>h?"1":"0",p={...d,...t.desktop?{}:{[Wt.on]:"0"},...l(Wt.on,u(t.desktop),u(t.tablet),u(t.phone)),[Wt.length]:String(t.desktopScreens),...l(Wt.length,String(t.desktopScreens),String(t.tabletScreens),String(t.phoneScreens)),...wG(t.desktop&&t.desktopScreens===0,t.tablet&&t.tabletScreens===0,t.phone&&t.phoneScreens===0,l)};return{attrs:hE(_I(!0),"track").attrs,style:p}}let c=u=>u?"sticky":"static",f={...d,...t.desktop?{}:{[Wt.position]:"static"},...l(Wt.position,c(t.desktop),c(t.tablet),c(t.phone))};return{attrs:hE(_I(!0),"stick",n?{above:n}:{}).attrs,style:f}}function wG(e,o,t,r){let a=[[Wt.stick,uG],[Wt.trackPosition,mG]],[n,s,l]=[e,o,t].map(hG);return Object.fromEntries(a.flatMap(([d,c])=>[...e?[[d,n[c]]]:[],...Object.entries(r(d,n[c],s[c],l[c]))]))}var CG=["column","row","tabs","accordion"];var vG={column:"Stacked",row:"One row",tabs:"Tabs",accordion:"Accordion"},PE={Flex:CG,HeroGroup:["column","row"]},kG={Flex:"row",HeroGroup:"column"},TG={column:"flex-col",row:"flex-row",tabs:"flex-col",accordion:"flex-col"};function bs(e,o){return PE[e].includes(o)?o:kG[e]}function Bye(e,o){return TG[bs(e,o)]}function EE(e){return PE[e].map(o=>({label:vG[o],value:o}))}import{viewKeyAt as MI}from"efficient-easel/screen/lib/content/view-tiers";var Rf=20,PG=["solid","dashed","dotted"],Lf=["top","right","bottom","left"],Hye="sf-section-border",Wye="sf-section-border-self",EG=/^#(?:[0-9a-f]{3}|[0-9a-f]{4}|[0-9a-f]{6}|[0-9a-f]{8})$/i,OG=e=>typeof e=="number"&&Number.isFinite(e)?`${Math.min(Rf,Math.max(0,Math.round(e)))}px`:void 0,oi={kind:"border",unitKey:"sectionBorderUnit"},_E=qn(oi);function Uye(e){let o=oi.unitKey;return{desktop:e[MI(o,"desktop")],tablet:e[MI(o,"tablet")],phone:e[MI(o,"mobile")]}}var OE=(e,o)=>o==="px"?OG(e):typeof e=="number"&&Number.isFinite(e)?We(Math.max(0,e),o):void 0;function Af(e,{phone:o=!1,tablet:t=!1,unit:r}={}){if(!e||typeof e!="object")return;let a=o?"-phone":t?"-tablet":"",n={},s=ke(r);for(let l of Lf){let d=OE(e[l],s)??OE(e.width,s);d!==void 0&&(n[`--sf-border-${l}-width${a}`]=d)}return typeof e.style=="string"&&PG.includes(e.style)&&(n[`--sf-border-style${a}`]=e.style),typeof e.color=="string"&&EG.test(e.color)&&(n[`--sf-border-color${a}`]=e.color.toLowerCase()),Object.keys(n).length?n:void 0}function HI(e){let{width:o,...t}=e;return typeof o!="number"?e:{...t,...Object.fromEntries(Lf.map(r=>[r,t[r]??o]))}}function zye(e,o,t,r={}){let a=Af(e,{unit:r.desktop}),n=Af(t,{tablet:!0,unit:r.tablet}),s=Af(t,{phone:!0,unit:r.tablet}),l=Af(o,{phone:!0,unit:r.phone}),d=s||l?{...s,...l}:void 0;return a||n||d?{...a,...n,...d}:void 0}var Ff="sf.gapContainer",Ar={min:-32,max:64,step:2},NE={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},ys={Grid:24,Flex:24,FooterGroup:16,HeroGroup:0,Events:24,GalleryB:8,ProductGrid:2},_G=new Set(["Events","GalleryB"]);function Ka(e,o,t){if(typeof o=="number"&&Number.isFinite(o)&&o>=Ar.min)return o;if(typeof o=="string"){let r=NE[e]?.[o];if(typeof r=="number")return r}return typeof t=="number"&&Number.isFinite(t)?t:ys[e]}var AG="sf-gap-overlap",RG="--sf-gap-overlap",WI="--sf-block-gap",AE="--sf-block-gap-rem",xt={min:0,max:Ar.max,step:Ar.step};function ti(e){if(typeof e!="number"||!Number.isFinite(e))return null;let o=Math.min(Math.max(Math.round(e),xt.min),xt.max);return o-o%xt.step}function jye(e,o){let t=Aa(e,o,"gap",xt);if(t!==null)return{[WI]:t,[AE]:t};let r=ti(e);return r===null?{}:{[WI]:`${r}px`,[AE]:`${r/16}rem`}}var RE="--sf-block-gap-phone",LE="--sf-block-gap-phone-rem",LG="--sf-block-gap-on-phone",FG="max-view-tablet:[--sf-block-gap-on-phone:var(--sf-block-gap-phone)]",BG="max-view-wide:[&_[data-sf-line~=edge]:not([data-sf-line~=edge]_*)]:[--sf-block-gap-on-phone:var(--sf-block-gap-phone)]";function Kye(e,o){let t=Aa(e,o,"gap",xt);if(t!==null)return{[RE]:t,[LE]:t};let r=ti(e);return r===null?{}:{[RE]:`${r}px`,[LE]:`${r/16}rem`}}function Vye(e){return ti(e)===null?"":`${FG} ${BG}`}var FE="sf-gap-zone",BE="--sf-gap-len";function Bf(e,o){return typeof o=="number"&&Number.isFinite(o)&&o>=Ar.min?!0:typeof o=="string"&&typeof NE[e]?.[o]=="number"}var DE="--sf-gap-len-phone",DG="--sf-gap-len-tablet",ri={min:0,max:Ar.max,step:Ar.step};function na(e){return typeof e=="number"&&Number.isFinite(e)&&e>=ri.min}function UI(e){return e/2}function zI(e,o,t){return na(t)&&!Bf(e,o)}function $I(e,o,t,r,a){return na(o)?o:zI(e,t,a)?a:UI(Ka(e,t,r))}var NG={block:"sf-gap-overlap-block",inline:"sf-gap-overlap-inline",both:"sf-gap-overlap-both"};function qye(e,o,t,r,a){let n={...na(r)?{[DE]:`${r}px`}:null,...na(a)?{[DG]:`${a}px`}:null};if(!Bf(e,o)){let l=`${ys[e]}px`,d=_G.has(e)?`var(--sf-card-gap, ${l})`:l;return{className:` ${FE}`,style:{[BE]:`var(${WI}, ${d})`,[DE]:`var(${LG})`,...n}}}let s=Ka(e,o);return s>=0?{className:` ${FE}`,style:{[BE]:`${s}px`,...n}}:{className:` ${AG} ${NG[t]}`,style:{gap:"0px",[RG]:`${-s/2}px`}}}import{parseHexColor as MG}from"efficient-shell/format";var Mo="var(--section-bg)",ai="inherit";function sr(e,o){return e===ai?Mo:e===void 0?o:Df(e)}var HG=/var\(\s*--(surface-2|surface|line)\s*(?=[,)])/g;function Df(e){let o=rr(e);return o?Pr(o):e.replace(HG,"var(--site-$1")}var WG={"var(--section-bg)":"band","var(--site-surface)":"surface","var(--site-surface-2)":"surface2"};function GI(e,o,t){let r=sr(e,o);if(!r||r==="transparent")return t.background.toLowerCase();let a=r.trim(),n=a.startsWith("#")?MG(a):null;if(n)return n.toLowerCase();let s=WG[a.replace(/\s+/g,"")];return(s?t[s]:t.background).toLowerCase()}var jI="transparent";function ME(e,o){let t=sr(e,o);return!t||t===jI?"none":t===Mo?"band":null}function HE(e,o,t=o){let r=n=>!n||n==="transparent",a=sr(e,o);return a===t||r(a)&&r(t)}var WE=["transparent","var(--wheel-stage)","var(--surface)","var(--surface-2)"],UE={transparent:"No fill","var(--wheel-stage)":"Image stage","var(--surface)":"Panels and cards","var(--surface-2)":"Second surface"},Ss="var(--wheel-stage)",Nf="transparent",ni="inherit";function eSe(e,o){return Df(KI(e,o))}function KI(e,o){return e===ni?Ss:e==null?o:e===!0?Ss:e===!1?Nf:e}function oSe(e){return typeof e=="string"&&e!==ni?Df(e):Ss}function tSe(e){return e!==Nf&&e!=="none"&&e!==""}function zE(e,o){return e===ni||e===!0?!0:e==null?o===Ss:!1}var $E="inherit",Mf="fixed",GE=e=>typeof e!="number"&&e!==Mf,UG="var(--sf-heading-max, 9999px)";function nSe(e,o,t,r,a){if(typeof e=="number")return We(e,a);if(e===Mf)return o;let n=r?`var(--size-${r}, ${o})`:o;return t==="heading"?`min(${n}, ${UG})`:n}var VI={kind:"fontSize",unitKey:"titleSizeUnit"},qI={kind:"fontSize",unitKey:"bodySizeUnit"},zG=["desktop","mobile"],jE=[VI,qI].flatMap(e=>qn(e,zG));function YI(e){let o=(t,r)=>zv(e,t,r);return{titleDesktop:o(VI,"desktop"),titleMobile:o(VI,"mobile"),bodyDesktop:o(qI,"desktop"),bodyMobile:o(qI,"mobile")}}var $G=["page","full"],KE=["full","page"],Va={full:"Full",page:"Content"},XI="inherit",GG=e=>typeof e=="string"&&$G.includes(e),jG=e=>e===XI;function KG(e,o){return jG(e.widthMode)?{mode:"full",inherited:!0}:GG(e.widthMode)?{mode:e.widthMode,inherited:!1}:{mode:o,inherited:o==="full"}}function cSe(e){return KG(e,"page").mode==="full"}var VG={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 fSe(e){return $e(VG,e)}var lo={background:"sectionBackgroundWidth",content:"sectionContentWidth",contentMax:"sectionContentMax",contentMaxUnit:"sectionContentMaxUnit"},pSe={kind:"size",unitKey:lo.contentMaxUnit};function qG(e){let o=e[lo.contentMaxUnit],t=ke(o),r=e[lo.contentMax],a=t==="px"?rE(r):typeof r=="number"&&Number.isFinite(r)&&r>0?r:null,n=ws(e[lo.content])??(a===null?null:"content");return{background:ws(e[lo.background]),content:n,contentMax:n==="content"?a:null,contentMaxUnit:t}}function uSe(e){let o=qG(e);return o.content===null&&e.fullWidth===!0?{...o,content:"full"}:o}function mSe(e){return e.background!==null||e.content!==null}var hSe=e=>({[lo.background]:e}),xSe=e=>e==="full"?{[lo.content]:e,[lo.contentMax]:void 0,[lo.contentMaxUnit]:void 0}:{[lo.content]:e},ISe=e=>({[lo.content]:"content",[lo.contentMax]:e}),gSe=e=>e==="background"?{[lo.background]:void 0}:{[lo.content]:void 0,[lo.contentMax]:void 0,[lo.contentMaxUnit]:void 0},VE="siteWidths",YG=e=>e==="full"||e==="content";function ws(e){return YG(e)?e:null}function qE(e,o){return{[VE]:{background:ws(e),content:ws(o)}}}function bSe(e){let o=e.editor?.metadata?.[VE];return{background:ws(o?.background),content:ws(o?.content)}}import{useEaselSession as IK}from"efficient-easel/screen/lib/session-context";import{BOX_GAP as gK,describedAs as sa,group as zt,iconOf as ks,sharedStyleKinds as pi}from"efficient-easel/screen/lib/document/box-fields";import{VIEW_KEY_ACCESS as TO,onDesktopWords as Xa,phoneTwinFields as dg,saidAlignmentGrid as bK,useLengthUnit as yK}from"efficient-easel/screen/lib/document/box-fields";import{createElement as It}from"react";import{SettingsDefaultReset as XG,SettingsField as ZG}from"efficient-easel/panel";import{boxFieldBuilders as JG,describedAs as QG,iconOf as ej,onDesktopWords as oj}from"efficient-easel/screen/lib/document/box-fields";import{LENGTH_KIND_UNITS as tj}from"efficient-easel/screen/lib/content/length-units";import{IconPicker as rj,Tooltip as aj,useShellStrings as nj}from"efficient-shell/ui";import{RotateIcon as sj}from"efficient-easel/icons";var YE=e=>i(e),qa=tj,wo=JG(YE,{lengthUnits:qa}),Oo=wo.slider,st=wo.select,si=wo.Segmented,Cs=wo.segmented,OSe=wo.alignmentField,_Se=wo.alignmentFields,ASe=wo.blockAlignmentField,RSe=wo.blockAlignmentFields,LSe=wo.boxJustifyField,FSe=wo.boxAlignField,BSe=wo.boxWrapField,XE=wo.directionField,Hf=wo.gapField,DSe=wo.placementField,NSe=wo.PlacementGridView,MSe=wo.positionFields,Wf=wo.sidesPaddingFields,li=wo.lengthUnitFields;function ZE(e,o){return Oo("Angle",It(sj),Zd.min,Zd.max,Zd.step,e,"\xB0",o)}var ZI=Symbol("efficient-web-builder.picture-picker-row"),lj={width:"3.5rem",height:"2.75rem",words:!0};function JI({value:e}){return nj().iconNames[e]??e}function QI(e,o,t){return It(aj,{content:t,className:"sf-pick-tip",children:It("span",{className:"sf-pick"},It("span",{className:"sf-pick-pic"},e),It("span",{className:"sf-pick-cap"},o))})}function ij(e){let o=t=>t.label===void 0?It(JI,{value:t.value}):i(t.label);return e.map(t=>({value:t.value,...t.label===void 0?{}:{label:i(t.hint??t.label)},icon:QI(t.picture,o(t),t.hint===void 0?o(t):i(t.hint))}))}function JE(e,o){return It("span",{className:"sf-pick"},It("span",{className:"sf-pick-pic"},e),It("span",{className:"sf-pick-cap sf-pick-cap-closed"},o))}function eg(e,o,t,r,a={}){let n=d=>t.some(c=>c.value===d),s=d=>a.resolve?a.resolve(d):n(d)?d:void 0,l=t.map(d=>({value:d.value,...d.label===void 0?{}:{label:d.label},...d.showWhen?{showWhen:d.showWhen}:{}}));return{type:"custom",[ZI]:!0,...QG({},{type:"radio",label:e,options:l}),options:l,render:d=>{let{value:c,onChange:f,field:u}=d,p=u?.options,h=ij(t.filter(b=>!p||p.some(P=>P.value===b.value))),I="follows"in d,g=I?s(a.phoneRest?a.phoneRest(d.follows):d.follows)??r:void 0,C=u?.currentValue,w=s(c)??g??s(C)??r,T=c!=null&&c!=="",y=g===void 0?void 0:t.find(b=>b.value===g);return It(ZG,{label:i(e),icon:ej(o),action:I?It(XG,{words:de()?.panel,label:i(e),changed:T,detail:y?.label!==void 0?oj(YE,i(y.label),d.followsView):void 0,disabled:d.readOnly===!0,onReset:()=>f(void 0)}):void 0},It(rj,{label:i(e),value:w,options:h,onChange:f,columns:a.columns,cell:a.cell??lj,tooltips:!1,disabled:d.readOnly===!0}))}}}import{VIEW_ABOVE as rg}from"efficient-easel/screen/lib/content/length-units";import{jsx as S,jsxs as Ie}from"react/jsx-runtime";import{NoSymbolIcon as Ij}from"efficient-easel/icons";import{useId as gj}from"react";var dj="line",cj=[{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"}],og={"stripes-fine":{ink:4,period:12},"stripes-medium":{ink:8,period:18},"stripes-bold":{ink:14,period:28}},USe=28,fj="-45deg",pj="color-mix(in oklab, var(--accent) 50%, var(--bg))";function uj(e){return e!=="line"&&e!=="none"}var mj={sm:24,md:48,lg:80},hj="md",xj=Object.keys(mj);function zSe(e){return io(xj,hj,e)}function $Se(e){return io(cj,dj,e)}function GSe(e){if(!uj(e))return null;let{ink:o,period:t}=og[e];return`repeating-linear-gradient(${fj}, ${pj} 0 ${o}px, transparent ${o}px ${t}px)`}var jSe={kind:"border",unitKey:"thicknessUnit"},KSe={kind:"size",base:"%",unitKey:"lengthPctUnit"};var Uf=44,zf=28;function pe({children:e}){return S("svg",{width:Uf,height:zf,viewBox:`0 0 ${Uf} ${zf}`,"aria-hidden":"true",fill:"currentColor",stroke:"currentColor",strokeWidth:1.25,children:e})}var B=({x:e,y:o,w:t,t:r=2,faint:a=!1})=>S("rect",{x:e,y:o,width:t,height:r,rx:r/2,stroke:"none",opacity:a?.45:1}),Ce=({x:e,y:o,w:t,h:r})=>S("rect",{x:e,y:o,width:t,height:r,rx:2,fill:"none"}),lt=({x:e,y:o})=>S("circle",{cx:e,cy:o,r:1.75,stroke:"none"}),_o=({x1:e,y1:o,x2:t,y2:r})=>S("line",{x1:e,y1:o,x2:t,y2:r});function tg(e){let o=20/is,t=5,r=1,a=[],n=0,s=0,l=0;for(let[f,u]of e)n+f>is&&(s+=l*(t+r),n=0,l=0),a.push({x:12+n*o,y:s,w:f*o-r,h:u*t+(u-1)*r}),n+=f,l=Math.max(l,u);let d=s+l*(t+r)-r,c=(zf-d)/2;return S(pe,{children:a.map((f,u)=>S("rect",{x:f.x,y:c+f.y,width:f.w,height:f.h,rx:1,stroke:"none",opacity:.6},u))})}var QSe={bars:Ie(pe,{children:[S(B,{x:8,y:14,w:5,t:10}),S(B,{x:16,y:8,w:5,t:16}),S(B,{x:24,y:18,w:5,t:6}),S(B,{x:32,y:11,w:5,t:13})]}),line:Ie(pe,{children:[S("polyline",{points:"6,22 14,15 22,18 30,8 38,11",fill:"none",strokeWidth:1.75,strokeLinejoin:"round"}),S(_o,{x1:6,y1:25,x2:38,y2:25})]}),donut:Ie(pe,{children:[S("circle",{cx:22,cy:14,r:9,fill:"none",strokeWidth:5,opacity:.45}),S("circle",{cx:22,cy:14,r:9,fill:"none",strokeWidth:5,strokeDasharray:"34 57",transform:"rotate(-90 22 14)"})]})};function ewe(e){if(e==="none")return S("span",{style:{display:"flex",width:Uf,height:zf,alignItems:"center",justifyContent:"center"},children:S(Ij,{size:20})});if(e==="line")return S(pe,{children:S(_o,{x1:4,y1:14,x2:40,y2:14})});let{ink:o,period:t}=og[e],r=.4,a=[];for(let n=-12;n<Uf;n+=t*r)a.push(S("polygon",{points:`${n},22 ${n+o*r},22 ${n+o*r+10},6 ${n+10},6`,stroke:"none"},n));return S(bj,{children:a})}function bj({children:e}){let o=`sf-div-${gj().replace(/[^\w-]/g,"")}`;return Ie(pe,{children:[S("clipPath",{id:o,children:S("rect",{x:4,y:6,width:36,height:16,rx:2})}),S("g",{clipPath:`url(#${o})`,children:e})]})}var $f=({x:e,y:o,w:t,h:r})=>S("rect",{x:e,y:o,width:t,height:r,rx:2,stroke:"none",opacity:.3}),owe={tabs:Ie(pe,{children:[S(B,{x:5,y:10,w:9}),S(B,{x:18,y:10,w:9,faint:!0}),S(B,{x:31,y:10,w:9,faint:!0}),S(_o,{x1:4,y1:17,x2:40,y2:17}),S(B,{x:4,y:16,w:11,t:2})]}),largeTabs:Ie(pe,{children:[S(_o,{x1:4,y1:5,x2:40,y2:5}),S(lt,{x:7,y:10}),S(B,{x:11,y:9,w:16}),S(B,{x:31,y:9,w:9,faint:!0}),S(_o,{x1:4,y1:14,x2:40,y2:14}),S(lt,{x:7,y:19}),S(B,{x:11,y:18,w:13,faint:!0}),S(B,{x:31,y:18,w:9,faint:!0}),S(_o,{x1:4,y1:23,x2:40,y2:23})]})},twe={card:Ie(pe,{children:[S(Ce,{x:10,y:3,w:24,h:22}),S($f,{x:12,y:5,w:20,h:10}),S(B,{x:13,y:18,w:16}),S(B,{x:13,y:21,w:11,t:1.5,faint:!0})]}),cover:Ie(pe,{children:[S($f,{x:10,y:3,w:24,h:22}),S(Ce,{x:10,y:3,w:24,h:22}),S(B,{x:13,y:17,w:16}),S(B,{x:13,y:21,w:11,t:1.5})]})},rwe={cards:Ie(pe,{children:[S(Ce,{x:3,y:5,w:11,h:18}),S(Ce,{x:17,y:5,w:11,h:18}),S(Ce,{x:31,y:5,w:11,h:18}),S(B,{x:5,y:9,w:7}),S(B,{x:19,y:9,w:7}),S(B,{x:33,y:9,w:7}),S(B,{x:5,y:13,w:5,t:1.5,faint:!0}),S(B,{x:19,y:13,w:5,t:1.5,faint:!0}),S(B,{x:33,y:13,w:5,t:1.5,faint:!0})]}),"label-only":Ie(pe,{children:[S("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"}),S(B,{x:5,y:18,w:7}),S(B,{x:19,y:18,w:7}),S(B,{x:33,y:18,w:7})]})},awe={table:Ie(pe,{children:[S(Ce,{x:3,y:5,w:38,h:18}),S(_o,{x1:15.7,y1:5,x2:15.7,y2:23}),S(_o,{x1:28.3,y1:5,x2:28.3,y2:23}),S("path",{d:"M15.7 5v18M28.3 5v18",fill:"none",strokeWidth:2.5}),S(B,{x:6,y:9,w:6,t:3}),S(B,{x:19,y:9,w:6,t:3}),S(B,{x:31,y:9,w:6,t:3}),S(B,{x:6,y:18,w:7,t:1.5,faint:!0}),S(B,{x:19,y:18,w:7,t:1.5,faint:!0}),S(B,{x:31,y:18,w:7,t:1.5,faint:!0})]}),list:Ie(pe,{children:[S(_o,{x1:3,y1:7,x2:13,y2:7}),S(_o,{x1:17,y1:7,x2:27,y2:7}),S(_o,{x1:31,y1:7,x2:41,y2:7}),S(B,{x:3,y:11,w:6,t:3}),S(B,{x:17,y:11,w:6,t:3}),S(B,{x:31,y:11,w:6,t:3}),S(B,{x:3,y:17,w:8,t:1.5,faint:!0}),S(B,{x:17,y:17,w:8,t:1.5,faint:!0}),S(B,{x:31,y:17,w:8,t:1.5,faint:!0})]})},nwe={plain:Ie(pe,{children:[S(B,{x:5,y:12,w:9,t:4}),S(B,{x:18,y:12,w:9,t:4}),S(B,{x:31,y:12,w:9,t:4})]}),cards:Ie(pe,{children:[S(Ce,{x:3,y:7,w:11,h:14}),S(Ce,{x:17,y:7,w:11,h:14}),S(Ce,{x:31,y:7,w:11,h:14}),S(B,{x:5,y:13,w:7}),S(B,{x:19,y:13,w:7}),S(B,{x:33,y:13,w:7})]}),marks:Ie(pe,{children:[S(B,{x:8,y:12,w:6,t:4}),S(B,{x:17,y:12,w:6,t:4}),S(B,{x:26,y:12,w:6,t:4}),S(B,{x:35,y:12,w:3,t:4})]}),chips:Ie(pe,{children:[S(Ce,{x:3,y:9,w:18,h:10}),S(Ce,{x:23,y:9,w:18,h:10}),S(lt,{x:7,y:14}),S(B,{x:10,y:13,w:8}),S(lt,{x:27,y:14}),S(B,{x:30,y:13,w:8})]})},swe={overlay:Ie(pe,{children:[S($f,{x:4,y:3,w:36,h:22}),S(Ce,{x:4,y:3,w:36,h:22}),S(B,{x:8,y:15,w:18,t:3}),S(B,{x:8,y:20,w:12})]}),stacked:Ie(pe,{children:[S(B,{x:4,y:3,w:18,t:3}),S(B,{x:4,y:8,w:12}),S($f,{x:4,y:13,w:36,h:12}),S(Ce,{x:4,y:13,w:36,h:12})]})},lwe={split:Ie(pe,{children:[S(B,{x:4,y:6,w:12,t:3}),S(B,{x:4,y:11,w:9,faint:!0}),S(_o,{x1:20,y1:4,x2:20,y2:24}),S(B,{x:24,y:6,w:16}),S(B,{x:24,y:10,w:11,faint:!0}),S(B,{x:24,y:17,w:16}),S(B,{x:24,y:21,w:11,faint:!0})]}),spine:Ie(pe,{children:[S(_o,{x1:9,y1:4,x2:9,y2:24}),S(lt,{x:9,y:8}),S(B,{x:14,y:7,w:24}),S(lt,{x:9,y:14}),S(B,{x:14,y:13,w:20}),S(lt,{x:9,y:20}),S(B,{x:14,y:19,w:24})]}),alternating:Ie(pe,{children:[S(_o,{x1:22,y1:4,x2:22,y2:24}),S(lt,{x:22,y:8}),S(B,{x:4,y:7,w:14}),S(lt,{x:22,y:14}),S(B,{x:26,y:13,w:14}),S(lt,{x:22,y:20}),S(B,{x:4,y:19,w:14})]}),track:Ie(pe,{children:[S(_o,{x1:4,y1:12,x2:40,y2:12}),S(lt,{x:8,y:12}),S(lt,{x:22,y:12}),S(lt,{x:36,y:12}),S(B,{x:4,y:17,w:8}),S(B,{x:18,y:17,w:8}),S(B,{x:32,y:17,w:8}),S(B,{x:4,y:21,w:6,faint:!0}),S(B,{x:18,y:21,w:6,faint:!0}),S(B,{x:32,y:21,w:6,faint:!0})]})},iwe={standard:Ie(pe,{children:[S(B,{x:4,y:5,w:10,t:1.5,faint:!0}),S(B,{x:4,y:10,w:28,t:4}),S(B,{x:4,y:18,w:34,faint:!0}),S(B,{x:4,y:22,w:24,faint:!0})]}),editorial:Ie(pe,{children:[S(B,{x:4,y:5,w:5,t:1.5,faint:!0}),S(B,{x:4,y:10,w:20,t:5}),S(B,{x:28,y:11,w:12,faint:!0}),S(B,{x:28,y:15,w:9,faint:!0}),S(_o,{x1:4,y1:22,x2:40,y2:22})]}),simple:Ie(pe,{children:[S(B,{x:4,y:8,w:10,t:1.5,faint:!0}),S(B,{x:4,y:13,w:26,t:4})]}),statement:Ie(pe,{children:[S(B,{x:4,y:6,w:36,t:7}),S(B,{x:4,y:16,w:24,t:7})]}),natural:Ie(pe,{children:[S(B,{x:4,y:8,w:22,t:3}),S(B,{x:4,y:15,w:34,faint:!0}),S(B,{x:4,y:19,w:28,faint:!0})]}),essay:Ie(pe,{children:[S(B,{x:4,y:5,w:24,t:4}),S(B,{x:4,y:13,w:36,faint:!0}),S(B,{x:4,y:17,w:36,faint:!0}),S(B,{x:4,y:21,w:30,faint:!0})]})},dwe={"spec-card":Ie(pe,{children:[S(Ce,{x:4,y:3,w:36,h:22}),S(B,{x:8,y:7,w:14}),S(Ce,{x:8,y:12,w:8,h:9}),S(Ce,{x:18,y:12,w:8,h:9}),S(Ce,{x:28,y:12,w:8,h:9})]}),fitment:Ie(pe,{children:[S(Ce,{x:4,y:4,w:10,h:5}),S(Ce,{x:16,y:4,w:10,h:5}),S(Ce,{x:28,y:4,w:10,h:5}),S(B,{x:4,y:14,w:34,faint:!0}),S(B,{x:4,y:18,w:34,faint:!0}),S(B,{x:4,y:22,w:34,faint:!0})]}),portal:Ie(pe,{children:[S(Ce,{x:4,y:3,w:36,h:22}),S(B,{x:8,y:7,w:10,t:4}),S(B,{x:8,y:14,w:16,faint:!0}),S(B,{x:26,y:18,w:10,t:4})]}),kanban:Ie(pe,{children:[S(Ce,{x:4,y:3,w:10,h:22}),S(Ce,{x:17,y:3,w:10,h:22}),S(Ce,{x:30,y:3,w:10,h:22}),S(B,{x:6,y:6,w:6,t:4}),S(B,{x:6,y:12,w:6,t:4}),S(B,{x:19,y:6,w:6,t:4}),S(B,{x:32,y:6,w:6,t:4}),S(B,{x:32,y:12,w:6,t:4})]}),claims:Ie(pe,{children:[S(B,{x:4,y:5,w:12,faint:!0}),S(B,{x:20,y:4,w:18,t:4}),S(B,{x:4,y:12,w:12,faint:!0}),S(B,{x:20,y:11,w:10,t:4}),S(B,{x:4,y:19,w:12,faint:!0}),S(B,{x:20,y:18,w:14,t:4})]}),browser:Ie(pe,{children:[S(Ce,{x:4,y:3,w:36,h:22}),S(_o,{x1:4,y1:8,x2:40,y2:8}),S(B,{x:8,y:11,w:28,t:5,faint:!0}),S(Ce,{x:8,y:18,w:8,h:4}),S(Ce,{x:18,y:18,w:8,h:4}),S(Ce,{x:28,y:18,w:8,h:4})]}),terminal:Ie(pe,{children:[S(Ce,{x:4,y:3,w:36,h:22}),S("polyline",{points:"8,9 11,11 8,13",fill:"none"}),S(B,{x:13,y:10,w:14}),S(B,{x:8,y:16,w:22,faint:!0}),S(B,{x:8,y:20,w:16,faint:!0})]})},QE={width:"5.75rem",height:"3.75rem",words:!0},cwe={width:"8.5rem",height:"3.75rem",words:!0},fwe={columns:Ie(pe,{children:[S(Ce,{x:3,y:4,w:11,h:8}),S(Ce,{x:17,y:4,w:11,h:8}),S(Ce,{x:31,y:4,w:11,h:8}),S(B,{x:3,y:16,w:9}),S(B,{x:17,y:16,w:9}),S(B,{x:31,y:16,w:9}),S(B,{x:3,y:20,w:7,t:1.5,faint:!0}),S(B,{x:17,y:20,w:7,t:1.5,faint:!0}),S(B,{x:31,y:20,w:7,t:1.5,faint:!0})]}),"rows-left":Ie(pe,{children:[S(Ce,{x:6,y:3,w:14,h:9}),S(B,{x:24,y:5,w:14}),S(B,{x:24,y:9,w:10,t:1.5,faint:!0}),S(Ce,{x:24,y:16,w:14,h:9}),S(B,{x:6,y:18,w:14}),S(B,{x:6,y:22,w:10,t:1.5,faint:!0})]}),"rows-right":Ie(pe,{children:[S(Ce,{x:24,y:3,w:14,h:9}),S(B,{x:6,y:5,w:14}),S(B,{x:6,y:9,w:10,t:1.5,faint:!0}),S(Ce,{x:6,y:16,w:14,h:9}),S(B,{x:24,y:18,w:14}),S(B,{x:24,y:22,w:10,t:1.5,faint:!0})]})};import{TEXT_CONTROL_KINDS as rve,SCALAR_TEXT_CONTROLS as ave}from"efficient-easel/draw";function Za(e,o){return i("{value} from {from}",{value:e,from:o})}function SK(){let{blockGap:e}=he();return e===null?i("this container's own spacing"):Za(`${e}px`,i("Styles"))}function wK({inherited:e,onReset:o,label:t}){return k(Ho,{words:de()?.panel,label:i(t),changed:!e,detail:SK(),onReset:o})}function CK(e){return Hf({...gK,builtIn:ys[e],resolve:(o,t)=>Ka(e,o,t?.siteGap),action:(o,t)=>k(wK,{inherited:!Bf(e,o),onReset:()=>t(void 0),label:"Gap"}),mark:{[Ff]:e}})}function vK(e){return oo(it("mobile",{[Ff]:e,type:"custom",render:o=>k(PK,{container:e,...o})}),PO)}function kK(e){return oo(it("tablet",{[Ff]:e,type:"custom",render:o=>k(TK,{container:e,...o})}),PO)}var PO={not:{field:"gap",in:Array.from({length:-Ar.min},(e,o)=>Ar.min+o)}};function YCe(e){return{gap:it("desktop",CK(e)),[xg("gap")]:kK(e),[vs("gap")]:vK(e)}}function TK({container:e,...o}){let[t]=Ut("gap"),{siteGap:r}=o.field??{},a=Math.max(ri.min,Ka(e,t,r));return Hf({...ri,builtIn:a,resolve:n=>na(n)?n:a,action:(n,s)=>k(Ho,{words:de()?.panel,label:i("Gap"),changed:na(n),detail:Xa(l=>i(l),`${a}px`),onReset:()=>s(void 0)})}).render(o)}function PK({container:e,...o}){let[t]=Ut("gap"),{siteGap:r,siteGapPhone:a}=o.field??{},n=$I(e,void 0,t,r,a);return Hf({...ri,builtIn:n,resolve:s=>$I(e,s,t,r,a),action:(s,l)=>k(Ho,{words:de()?.panel,label:i("Gap"),changed:na(s),detail:Za(`${n}px`,zI(e,t,a)?i("Styles"):i("Desktop")),onReset:()=>l(void 0)})}).render(o)}function XCe(e){return XE({offered:EE(e),fallback:bs(e,void 0),resolve:o=>bs(e,o)})}function ZCe(e,o){return Ik(o?yk(e,o):[],o)}function EK({inherited:e,onReset:o,label:t}){return k(Ho,{words:de()?.panel,label:i(t),changed:!e,detail:Za(i("Full"),i("the page")),onReset:o})}function Ja({value:e,onChange:o,label:t,placeholder:r,hint:a,multiline:n,hideable:s=!0,markup:l=!0}){let{text:d,hidden:c}=la(e),f=ii(null),u=ii(null),p=T=>o(s?{text:T,hidden:c}:T),h=()=>o({text:d,hidden:!c}),I=s&&c,g=uO(),C=a?LK(a)?k("span",{className:"sf-hint-while-typing",children:i(a)}):i(a):void 0,w=c?i("Show {label} on the slide",{label:i(t)}):i("Hide {label} on the slide",{label:i(t)});return k(mo,{label:i(t),icon:k(jj,{}),htmlFor:g,className:I?"is-hidden":void 0,hint:C,action:s?k(hg,{content:w,children:k(vO,{"aria-pressed":c,"aria-label":w,onClick:h,children:c?k(aO,{name:"eye-off",size:14}):k(aO,{name:"eye",size:14})})}):void 0,children:Rr("div",{className:"sf-copybox",children:[l&&k(jx,{target:n?u:f,value:d,onChange:p}),n?k("textarea",{id:g,ref:u,value:d,placeholder:r===void 0?void 0:i(r),onChange:T=>p(T.target.value)}):k("input",{id:g,ref:f,type:"text",value:d,placeholder:r===void 0?void 0:i(r),onChange:T=>p(T.target.value)})]})})}function JCe(e,o){return{...e,[Pj]:o}}function QCe(e){let o=e[Lr];if(!o)throw new Error("withOffPage: the field holds no authored text");return{...e,[Lr]:{...o,offPage:!0}}}function Yf(e){return!e||typeof e!="object"?!1:e[Lr]?.offPage===!0}function eve(e){if(!e[Lr])throw new Error("withPanelOnly: the field holds no authored text");return{...e,[Vx]:!0}}function EO(e){return ms(e)}function ove(e){let o=e[Lr];if(!o)throw new Error("withIdentifier: the field holds no authored text");return{...e,[Lr]:{...o,identifier:!0}}}function nve(e,o){if(!e[Lr])throw new Error("inOwnBox: the field holds no authored text");let{[cK]:t,...r}=e;return{...r,[Kx]:!0,render:o}}var OK=new Set(pK),Vf={type:"radio",options:[{value:!0},{value:!1}]},OO={text:{type:"object",objectFields:{text:{type:"text"},hidden:Vf}},textarea:{type:"object",objectFields:{text:{type:"textarea"},hidden:Vf}},plainText:{type:"text"},copyText:{type:"text"},plainTextarea:{type:"textarea"},textList:{type:"array",arrayFields:{text:{type:"text"}}}},Qa=(e,o)=>{let t=sa({...o,[Lr]:e},{...OO[e.control],label:e.label});if(!OK.has(e.control))return t;let r=o.render;return{...kO(t,"authored-copy"),render:a=>k(JP,{name:a.name,children:r(a)})}},sve="Everything else on this block comes from the linked post. Unlink it to edit by hand.",_K={field:"source.slug",set:!0},lve={not:_K},AK="Select a word, then press the highlighter.",RK=new Set([AK]),LK=e=>RK.has(e);function ive(e,o,t){return Qa({control:"text",label:e,placeholder:o,hint:t},{type:"custom",render:({value:r,onChange:a})=>k(Ja,{value:r,onChange:a,label:e,placeholder:o,hint:t})})}function dve(e,o,t){return Qa({control:"textarea",label:e,placeholder:o,hint:t},{type:"custom",render:({value:r,onChange:a})=>k(Ja,{value:r,onChange:a,label:e,placeholder:o,hint:t,multiline:!0})})}function cve(e,o,t){return Qa({control:"plainText",label:e,placeholder:o,hint:t},{type:"custom",render:({value:r,onChange:a})=>k(Ja,{value:r,onChange:a,label:e,placeholder:o,hint:t,hideable:!1,markup:!1})})}function fve(e,o,t){return Qa({control:"copyText",label:e,placeholder:o,hint:t},{type:"custom",render:({value:r,onChange:a})=>k(Ja,{value:r,onChange:a,label:e,placeholder:o,hint:t,hideable:!1})})}function pve(e){return{type:"custom",[kj]:{label:e},...sa({},{type:"text",label:e}),render:({value:o,onChange:t})=>k(Z0,{value:vj(o),onChange:t,label:e})}}function uve(e,o,t){return Qa({control:"plainTextarea",label:e,placeholder:o,hint:t},{type:"custom",render:({value:r,onChange:a})=>k(Ja,{value:r,onChange:a,label:e,placeholder:o,hint:t,multiline:!0,hideable:!1})})}var _O={Design:Ej,Animation:_j};function mve(e,o){return{type:"custom",render:()=>k(FK,{text:e,values:o})}}function FK({text:e,values:o}){return k("p",{className:"sf-note",children:i(e,o)})}function hve(e){return ia(e)!==null&&e?.tabs!==void 0}var nO=new Map;function Xf(e,o){let t=`${e}\0${o?o.join(""):""}`,r=nO.get(t)??{type:"custom",tabs:o,[mO]:{label:e,level:1},bucket:e,marker:!0,render:()=>k(Fr,{})};return nO.set(t,r),r}var sO=new Map;function gg(e){let o=sO.get(e)??{type:"custom",[mO]:{label:e,level:1},designGroup:e,marker:!0,...e==="Content"?{}:{fold:e},render:()=>k(Fr,{})};return sO.set(e,o),o}function BK(e){let o=e;return o?.marker===!0&&typeof o.fold=="string"?o.fold:null}function AO(e,o){return BK(e)===o?e:{...e,marker:!0,fold:o,render:()=>k(Fr,{})}}function RO(e){let o=e;if(o.marker===!0&&o.fold===void 0)return e;let{fold:t,...r}=e;return{...r,marker:!0,render:()=>k(Fr,{})}}function bg({title:e,children:o}){let[t,r]=di(()=>!ag.has(e));return k(qj,{title:e,open:t,onToggle:a=>{r(a),a?ag.delete(e):ag.add(e)},children:o})}var ag=new Set;function DK({swatches:e,current:o,onPick:t,names:r}){let a=e.find(l=>l.toLowerCase()===o.toLowerCase()),n=a?r?.[a]:void 0,s=n?i(n):o;return Rr("div",{className:"sf-swatches",children:[e.map(l=>{let d=r?.[l]?i(r[l]):l;return k(hg,{content:d,children:k(tK,{color:l,selected:o.toLowerCase()===l.toLowerCase(),onClick:()=>t(l),"aria-label":d})},l)}),k("span",{className:"sf-swatch-hex",children:s})]})}function xve(e,o,t=!1){return{type:"custom",render:({value:r,onChange:a})=>k(NK,{label:e,builtIn:o,followsBand:t,value:r,onChange:a})}}function NK({label:e,builtIn:o,followsBand:t,value:r,onChange:a}){let n=typeof r=="string"?r:void 0,{colors:s,n:l}=kg(),d={background:s.background,surface:s.surface,surface2:pc(s),band:Zv(s)},c=t?Mo:o,f=HE(n,o,c),u=GI(void 0,c,d),p=t?ai:void 0,h=c===Mo?i("the theme's section background"):i("Theme {n} background",{n:l}),I=MK(n,o,s,l,d,a),g=Za(u.toUpperCase(),h),C=rr(n),w=C?ds(C,s,l):null;return w?k(Yo,{label:i(e),icon:k(eO,{}),value:w.hex,caption:w.words,onChange:a,changed:!0,onReset:()=>a(p),resetTo:g,choices:I}):k($l,{label:i(e),icon:k(eO,{}),value:f?"":GI(n,o,d),inherited:u,resetTo:g,onChange:a,onReset:()=>a(p),choices:I})}function MK(e,o,t,r,a,n){let s=ME(e,o);return[{label:i("No fill"),color:"",selected:s==="none",onPick:()=>n(jI)},{label:`${i("Section band")} \xB7 ${a.band.toUpperCase()}`,color:a.band,selected:s==="band",onPick:()=>n(Mo)},...vg(rr(e)??"",t,r,n)]}function HK(e,o){return{type:"custom",render:({value:t,onChange:r})=>{let a=t,n=zE(a,o);return k(mo,{label:i(e),icon:k(lg,{}),changed:!n,action:k(Ho,{words:de()?.panel,label:i(e),changed:!n,detail:i("the theme's image stage"),onReset:()=>r(ni)}),children:DK({swatches:WE,current:n?Ss:KI(a,o),onPick:r,names:UE})})}}}function Zf(e=t=>t,o){return pi({_gSectionTheme:zt(mk),sectionAccent:{type:"custom",render:({value:t,onChange:r})=>k(v0,{value:e(t),onChange:r,followLabel:o})}})}function Jf(e){let o=Po(),t=Tr(e?.view),r=s=>Ig(e.valueKey,s),a=e.numbersIn??(s=>q(o[r(s)])!==void 0),n=e.followsView??e8(t,a);return yK({props:{value:void 0,onChange:()=>{},field:{}},row:e.valueKey?e.row:void 0,table:qa,label:i(e.label),grid:e.grid,hasOwn:a(t),view:{tier:t,numbersIn:a,followsView:n},convertTo:e.convertTo??(s=>{let l=q(o[r(t)]);return l===void 0?{}:{[r(t)]:s(l)}})})}function Zo({min:e,max:o,step:t,value:r,onChange:a,suffix:n="",readout:s=!0,notch:l,ariaLabel:d,disabled:c=!1,placeholder:f,placeholderWord:u,onClear:p,units:h}){let I=l!==void 0&&Number.isFinite(l)&&l>=e&&l<=o;return k("div",{className:I?"sf-slider has-notch":"sf-slider",style:I?{"--sf-notch":(l-e)/(o-e)}:void 0,children:k(dK,{min:e,max:o,step:t,value:r,...r===null&&f!==void 0?{placeholderValue:f}:{},...u?{emptyLabel:i(u)}:{},suffix:n||void 0,...h?{units:h}:{},showInput:s,label:d===void 0?void 0:i(d),disabled:c,size:"sm",boxSize:"md",className:"sf-slider-track",onChange:g=>{g===null?p?.():g!==r&&a(g)}})})}function WK(e,o){let{min:t,max:r,step:a=1,unsetLabel:n,hint:s,restTrack:l,unsetMark:d,icon:c,unit:f="px"}=o;return{type:"custom",render:({value:u,onChange:p})=>{let h=typeof u=="number"?u:null,I=h===null;return k(mo,{label:i(e),icon:c?ks(c):void 0,value:I?d||n===void 0?void 0:i(n):`${h}${f}`,changed:!I,action:d?cg(d,{changed:!I,onReset:()=>p(null)}):k(Ho,{words:de()?.panel,label:i(e),changed:!I,onReset:()=>p(null)}),hint:typeof s=="string"?i(s):s,children:l?l({min:t,max:r,step:a,px:h,label:e,onChange:p}):Zo({min:t,max:r,step:a,value:h??t,readout:!1,ariaLabel:e,onChange:p})})}}}var ci="Corners",UK={kind:"radius"};function yg(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 k(mo,{label:i(ci),icon:k(xO,{}),changed:n,action:cg(e.mark,{changed:n,onReset:()=>r(null)}),hint:e.hint,children:k(zK,{tier:e,px:a,name:o.name,onRadius:r})})}}}function Ut(e){let o=Ya();return[o?.values?.[e],t=>o?.onChange(e,t)]}function LO(){return kO({type:"custom",render:()=>k(fK,{})},"always")}function ta(){let e=Ya();return o=>e?.onChangeMany(o)}function zK({tier:e,px:o,name:t,onRadius:r}){let a=e.useFollowed(),[n,s]=Ut(e.sidesKey),l=ta(),d=Jf({row:e.row??UK,label:ci,grid:{min:Wo,max:Vr,step:e.step??1},valueKey:t??"",view:"desktop"}),c=or(n)??[...Nc];return k(rK,{label:i(ci),value:c,corners:AT,onChange:f=>{let u=or(f)??[];s(u.length===Nc.length?null:u)},radius:o,onRadiusChange:d&&t?f=>l({[t]:f,...d.unitPatch(f===null)}):r,radiusMin:d?.grid.min??Wo,radiusMax:d?.grid.max??Vr,radiusStep:d?.grid.step??e.step??1,radiusPlaceholder:d&&d.unit!=="px"?"\u2013":String(a),...d?{radiusUnit:d.unit,units:d.units}:{}})}function FO(e,o){return li(e,o)}function BO(){return LO()}function $K({label:e,changed:o=!1,onReset:t=()=>{}}){let{cornerRadiusPx:r}=he(),a=typeof r=="number"?`${r}px`:i("not set");return k(Ho,{words:de()?.panel,label:i(e),changed:o,detail:r==null?i("the built-in corners"):Za(a,i("Styles")),onReset:t})}function GK(){let{cornerRadiusPx:e}=he();return typeof e=="number"?e:Wo}function jK(){return yg({sidesKey:"sectionCornerSides",row:Fl,useFollowed:GK,mark:k($K,{label:ci}),hint:KK})}var KK="Follows Styles \u25B8 Basics \u25B8 Corners until you set a number here.";function Qf(){return pi({_gShape:zt("Shape"),sectionCorners:jK(),...FO(Fl,"sectionCorners"),sectionCornerSides:BO(),...Er("sectionBorder",QK),...li(oi,"sectionBorder",{tablet:!0,phone:!0})})}var VK=()=>({width:i("Border width"),sides:{top:i("Border top"),right:i("Border right"),bottom:i("Border bottom"),left:i("Border left")},style:i("Border style"),styles:{solid:i("Solid"),dashed:i("Dashed"),dotted:i("Dotted")},color:i("Border color"),unit:"px"});function qK(e){let o=Object.fromEntries(Object.entries(e).filter(([,t])=>t!=null&&t!==""));return Object.keys(o).length?o:void 0}function YK(){let e;try{let o=xo(he().theme);e=o.themes[o.selected]?.line}catch{e=void 0}return e||Kv.line}function XK({value:e,onChange:o,placeholder:t,presets:r,sides:a=!0,styles:n=!0,above:s={},length:l}){let d=e&&typeof e=="object"?e:{},[c,f]=di(()=>a?Qj(d,s):!1),u=VK(),p=h=>qK(a&&n?h:{width:h.width,color:h.color,...n?{style:h.style}:{}});return k(mo,{label:i("Border"),icon:k(Aj,{}),action:a?k(Zj,{each:c,label:i("Each side"),onChange:f}):void 0,children:k(Xj,{label:i("Border"),value:d,each:c,onChange:h=>o(p(h)),placeholder:t,presets:r,words:l?{...u,unit:l.unit}:u,styles:n,max:l?.grid.max??Rf,...l?{step:l.grid.step,units:l.units}:{}})})}function ZK({value:e,onChange:o,view:t}){let[r]=Ut("sectionBorder"),[a]=Ut(xg("sectionBorder")),n=YK(),s=p=>p&&typeof p=="object"?p:{},l=t==="phone"?{...HI(s(r)),...HI(s(a))}:t==="tablet"?s(r):{},d=Po(),c=ta(),f=we("sectionBorder",t),u=Jf({row:oi,label:"Border",grid:{min:0,max:Rf,step:1},valueKey:"sectionBorder",view:t,numbersIn:p=>ng(d[Ig("sectionBorder",p)]),convertTo:p=>{let h=s(d[f]);return ng(h)?{[f]:JK(h,p)}:{}}});return k(XK,{value:e,length:u,onChange:u?p=>c({[f]:p,...u.unitPatch(!ng(p))}):o,placeholder:{sides:Jj(l),style:l.style??"solid",color:l.color||n},presets:[n],above:l})}var DO=["width",...Lf];function ng(e){if(!e||typeof e!="object")return!1;let o=e;return DO.some(t=>q(o[t])!==void 0)}function JK(e,o){let t={...e};for(let r of DO){let a=q(t[r]);a!==void 0&&(t[r]=o(a))}return t}function QK(e){return{type:"custom",render:({value:o,onChange:t})=>k(ZK,{value:o,onChange:t,view:e})}}function e8(e,o){let t=rg[e];for(;t&&rg[t]!==null&&!o(t);)t=rg[t];return t??e}function Ive(e){return{type:"custom",render:()=>k(o8,{partKey:e})}}function o8({partKey:e}){let[o]=Ut("id"),[t]=Ut("_partStyles"),{textStyles:r}=he(),a=xK(),n=null;try{n=uK().select}catch{n=null}let s=t&&typeof t=="object"?t[e]:void 0,l=Array.isArray(r)?r:null;return k(Vj,{name:i("Text"),preview:mE(s,l,{noStyle:i("No style"),styleName:a.textStyles.styleName,cases:(a.copy.panel??hK.copy.panel).cases}),onOpen:()=>{n&&typeof o=="string"&&n(mK(o,e))}})}function NO(e){let{cornerRadiusPx:o}=he(),t=typeof o=="number"?o:e,r=null;try{let{appState:n,selectedItem:s}=qf(d=>d),l=s?.props?.id?String(s.props.id):void 0;r=l?FP(n?.data,l)?.props??null:null}catch{r=null}if(!r)return t;let a=r.sectionCorners;return mx(a)?a:t}function t8({label:e,changed:o=!1,onReset:t=()=>{}}){let r=NO(Wo);return k(Ho,{words:de()?.panel,label:i(e),changed:o,detail:Za(`${r}px`,i("the section")),onReset:t})}function r8(){return k(Fr,{children:i("Follows the section's Corners until you set a number here.")})}function a8(){return yg({sidesKey:"cardCornerSides",row:Bl,useFollowed:()=>NO(Wo),mark:k(t8,{label:ci}),hint:k(r8,{})})}function n8(){return{type:"custom",render:()=>k(MT,{})}}function gve(){return{_gShape:zt("Shape"),cardCorners:a8(),...FO(Bl,"cardCorners"),cardCornerSides:BO(),cardCornersApplyAll:n8()}}function s8(){return sa({type:"custom",[ZI]:!0,render:e=>k(i8,{...e})},{type:"select",label:Oa,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 l8(e,o){let t=Sh(e);if(t!=="custom")return i(yh.find(a=>a.value===t)?.label??"");let r=CO(rc(e,o),o);return r?[...r,100-r.reduce((a,n)=>a+n,0)].join(" / "):i("Custom")}function i8(e){let{value:o,onChange:t}=e,[r]=Ut("content"),a=Array.isArray(r)?r.length:0,n="follows"in e,s=o!=null,l=s?o:n?e.follows:void 0,d=Sh(l),c=a>=2&&a<=tO,f=()=>[...sK[a]??[]],u=ii(null),p=w=>{let T=u.current;T&&JSON.stringify(w)===JSON.stringify(T.shares)?t(T.value):w&&t(w)},h=w=>{w===d||w==="custom"&&!c||t(w==="custom"?f():w)},I=i("The width bar works for 2 to {count} blocks.",{count:tO}),g=s&&(n||o!=="content"),C=iK().widths.hint(a,nK);return k(mo,{label:i(Oa),icon:k(fg,{}),changed:g,hint:d!=="custom"?void 0:c?C:I,action:k(Ho,{words:de()?.panel,label:i(Oa),changed:g,disabled:e.readOnly===!0,detail:n?Xa(w=>i(w),l8(e.follows,a),e.followsView):i("Fit content"),onReset:()=>t(void 0)}),children:Rr("div",{className:"sf-share-row",children:[k("div",{className:"sf-share-pick",children:k(wO,{label:i(Oa),value:d,options:yh.map(w=>({value:w.value,label:w.value==="custom"&&!c?I:i(w.label),icon:QI(k("span",{className:"sf-gallery-pic sf-share-pic",children:MO(w.weights).map((T,y)=>k("i",{style:{gridColumn:`span ${T}`}},y))}),i(w.label),w.value==="custom"&&!c?I:i(w.label))})),onChange:h,columns:3,cell:HO,tooltips:!1,disabled:e.readOnly===!0})}),d==="custom"&&c?k("div",{onFocus:()=>{u.current={value:o,shares:CO(rc(l,a),a)}},onBlur:()=>{u.current=null},children:k(lK,{label:i(Oa),count:a,value:rc(l,a),onChange:p,readOnly:e.readOnly===!0})}):null]})})}function MO(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 bve(){return st(pv,k(Mj,{}),vh,vh[0].value)}function yve(){return it("mobile",eg(Oa,k(fg,{}),dv.map(e=>({label:e.label,value:e.value,picture:k("span",{className:"sf-gallery-pic sf-share-pic",children:MO(e.weights).map((o,t)=>k("i",{style:{gridColumn:`span ${o}`}},t))})})),cv,{columns:2,cell:HO}))}var HO={width:"5.75rem",height:"3.25rem",words:!0};function Sve(){return dg("share",s8(),TO)[xg("share")]}function d8(){return it("mobile",Oo(wh,k(hO,{}),ac,iv,1,ac,"",{clear:{phoneFollows:!1,hint:ac}}))}var lO={read:e=>e.phoneRow,write:(e,o,t)=>({phoneRow:t}),fieldKey:()=>"phoneRow",ownField:!0};function wve(){let e=Oo(wh,k(hO,{}),Ch,fv,1,Ch,"",{clear:{emptyLabel:"Auto"}}),o=dg("columns",e,{...lO,tablet:TO.tablet}),t=dg("columns",e,lO,{phoneRow:d8()});return{...o,phoneRow:t.phoneRow}}function Cve(e,o,t,r,a,n,s){return{type:"custom",render:({value:l,onChange:d,name:c})=>k(c8,{label:e,min:o,max:t,step:r,fallback:a,role:n,value:l,onChange:d,name:c??"",length:s})}}function c8({label:e,min:o,max:t,step:r,fallback:a,role:n,value:s,onChange:l,name:d,length:c}){let f=Po(),u=ta(),p=Tr(c?.view),h=Jf({row:c?.row??{kind:"fontSize"},label:e,grid:{min:o,max:t,step:r},valueKey:c?d:"",view:c?.view??"desktop",numbersIn:g=>g===p&&typeof f[d]=="number",followsView:p,convertTo:g=>typeof f[d]=="number"?{[d]:g(f[d])}:{}}),I=g=>h?u({[d]:g,...h.unitPatch(typeof g!="number")}):l(g);return k(mo,{label:i(e),icon:k(Rx,{noun:n}),action:k(Ho,{words:de()?.panel,label:i(e),changed:!GE(s),detail:i("the Text style in Styles"),onReset:()=>I($E),defaultAction:{onPress:()=>I(Mf),title:i("Keep this section's own built-in size"),icon:k(Rj,{})}}),children:Zo({min:h?.grid.min??o,max:h?.grid.max??t,step:h?.grid.step??r,value:typeof s=="number"?s:a,...h?{suffix:h.unit,units:h.units}:{suffix:"px"},ariaLabel:e,onChange:I})})}function iO(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 vve(){return{_gCellWidth:zt("Cell size"),gridSpan:st("Positions",k(fg,{}),iO($c,"position","positions"),""),gridRowSpan:st("Rows tall",k(pg,{}),iO(_x,"row","rows"),"")}}function Po(){let e=null,o=null;try{e=pO(Sg),o=qf(t=>t).selectedItem}catch{o=null}return e??o?.props??{}}var Sg=Sj(null);function f8({min:e,max:o,step:t,px:r,label:a,onChange:n,desktopKey:s,fallback:l}){let d=Po()[s],c=lf(void 0,d,l);return k(Fr,{children:Zo({min:e,max:o,step:t,value:lf(r,d,l),readout:!1,ariaLabel:a,notch:c,onChange:n})})}function p8({label:e,desktopKey:o,fallback:t,unit:r="px",changed:a=!1,onReset:n=()=>{}}){let s=Po()[o],l=lf(void 0,s,t);return k(Ho,{words:de()?.panel,label:i(e),changed:a,detail:Xa(d=>i(d),`${l}${r}`),onReset:n})}function u8(e){return WK(e.label,{icon:e.icon,min:e.min,max:e.max,step:e.step,unit:e.unit,unsetLabel:"Follows Desktop",unsetMark:k(p8,{label:e.label,desktopKey:e.desktopKey,fallback:e.fallback,unit:e.unit}),restTrack:o=>k(f8,{...o,desktopKey:e.desktopKey,fallback:e.fallback})})}var m8={Top:"Padding top",Bottom:"Padding bottom",Left:"Padding left",Right:"Padding right"},h8={Top:ug,Bottom:gO,Left:bO,Right:yO},x8=e=>{let o=h8[e];return k(o,{})};function kve(e={}){let o=e.keys?.top??"sectionPaddingTop",t=e.keys?.bottom??"sectionPaddingBottom",r=e.group!==!1,a=C=>m8[C],n=C=>Oo(a("Top"),k(ug,{}),mt.min,mt.max,mt.step,C,"px"),s=(C,w,T,y=mt)=>it("mobile",u8({label:a(C),icon:x8(C),desktopKey:w,min:y.min,max:y.max,step:y.step,fallback:T})),l=e.top??mt.min,d=e.bottom??mt.min,c="sectionPaddingLeft",f="sectionPaddingRight",u=e.sideBounds??mt,p=e.side??u.min,h=e.sidePhone??p,I=e.phone===!0,g=C=>I?it("desktop",C):C;return pi({...r?{_gSpacing:zt("Padding")}:{},[o]:g(n(l)),...I?{[vs(o)]:s("Top",o,l)}:{},...e.only==="top"?{}:{[t]:g(Oo(a("Bottom"),k(gO,{}),mt.min,mt.max,mt.step,d,"px")),...I?{[vs(t)]:s("Bottom",t,d)}:{}},...e.sides?{[c]:g(Oo(a("Left"),k(bO,{}),u.min,u.max,u.step,p,"px")),...I?{[vs(c)]:s("Left",c,h,u)}:{},[f]:g(Oo(a("Right"),k(yO,{}),u.min,u.max,u.step,p,"px")),...I?{[vs(f)]:s("Right",f,h,u)}:{}}:{}})}function Tve(e,o){let t=Object.fromEntries(Object.entries(o).map(([n,s])=>[n,n in e&&ia(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 jf="Width";function ep(e,o=KE,t=!0){let r=o.map(a=>({label:Va[a],value:a}));return pi({...t?{_gWidth:zt(jf)}:{},widthMode:{type:"custom",render:({onChange:a,field:n})=>k(mo,{label:i(jf),icon:k(Kj,{}),action:t?k(EK,{inherited:n?.inherited??!1,onReset:()=>a(XI),label:jf}):void 0,children:si({options:r,value:n?.currentValue||e,onChange:a,ariaLabel:jf})})}})}function op({fill:e=!1}={}){let o=(a,n)=>({type:"custom",render:({value:s,onChange:l})=>k(I8,{value:s,onChange:l,view:a,badge:n,fill:e})}),t=()=>ig("sectionHeightMode"),r=()=>ig("sectionHeightMode");return pi({_gHeight:zt(es),...Er("sectionHeightMode",a=>a==="desktop"?o(a):o(a,n=>k(S8,{view:a,onClear:()=>n(void 0)}))),...Er("sectionHeightValue",t),...Er("sectionHeightUnit",r)})}function I8({value:e,onChange:o,view:t,badge:r,fill:a=!1}){let n=Po(),{mode:s,number:l,unit:d}=g8(t,n,e);return k(mo,{label:es,icon:ks(k(pg,{})),action:r?r(o):void 0,children:Rr("div",{className:"es-width-stack",children:[si({options:[{label:"Auto",value:"auto"},{label:"Fixed",value:"fixed"},{label:"Screen",value:"screen"},...a?[{label:"Fill",value:"fill"}]:[]],value:s,onChange:o,ariaLabel:es}),l?k(y8,{view:t,mode:s,menu:d}):null]})})}function WO(e,o){return e==="phone"&&bc(o)?Rk(o):_k(o)}function tp(e,o){return e==="desktop"||(e==="tablet"?bc(o):Ak(o))?null:WO(e,o)}function g8(e,o,t){let r=(a=>Pk.includes(a))(t)?t:tp(e,o)?.mode??"auto";return{mode:r,number:r!=="auto"&&r!=="fill",unit:r==="fixed"}}function b8(e,o,t,r){let a=tp(e,o);return!a||e==="desktop"?null:r===void 0?{}:{[we("sectionHeightMode",e)]:a.mode,...a.mode==="fixed"?{[we("sectionHeightUnit",e)]:a.unit}:{},...t==="sectionHeightUnit"?{[we("sectionHeightValue",e)]:a.value}:{},[we(t,e)]:r}}function dO(e,o,t){let r=Ya(),a=tp(e,Po());return!r||!a?{followed:null,write:t}:{followed:a,write:n=>r.onChangeMany(s=>{let l=b8(e,s,o,n);return l===null?{[we(o,e)]:n}:Object.keys(l).length?l:null})}}function y8({view:e,mode:o,menu:t}){let r=Ya(),a=Po(),n=we("sectionHeightValue",e),s=we("sectionHeightUnit",e),l=C=>w=>r?.onChangeMany(()=>({[C]:w})),{followed:d,write:c}=dO(e,"sectionHeightValue",l(n)),{write:f}=dO(e,"sectionHeightUnit",l(s)),u=o==="screen"?"%":a[s],p=(d?d.unit:u)==="%"?"%":"px",h=p==="%"?Ok:Ek,I=a[n],g=t?{options:["px","%"],label:i("Unit"),onChange:C=>f(C)}:void 0;return Zo({min:h.min,max:h.max,step:h.step,value:d?null:typeof I=="number"?I:h.fallback,...d?{placeholder:d.value}:{},suffix:p,...g?{units:g}:{},ariaLabel:es,onChange:c})}function S8({view:e,onClear:o}){let t=Po(),r=tp(e,t)===null,a=e==="phone"&&bc(t),n=WO(e,t),s=Xa(l=>i(l),n.mode==="auto"?i("Auto"):`${n.value}${n.unit}`,a?"tablet":"desktop");return k(Ho,{words:de()?.panel,label:i(es),changed:r,detail:s,onReset:o})}function wg(e={}){let o=e.intro===!0,t=n=>({type:"custom",render:({value:s,onChange:l,id:d,name:c})=>k(E8,{value:s,onChange:l,labelId:`${d??c??"stickTop"}-label`,view:n,intro:o})}),r=n=>({type:"custom",render:({value:s,onChange:l})=>k(k8,{value:s,onChange:l,view:n,intro:o})}),a=n=>({type:"custom",render:({value:s,onChange:l})=>k(T8,{value:s,onChange:l,view:n,intro:o})});return{_gStick:zt(IE,{dot:o?v8:BI}),...Er("stickTop",t),...Er("stickTopDistance",r),...li(Ql,"stickTopDistance",{tablet:!0,phone:!0}),...e.screens?Er(ja,a):{},...o?{}:{[LI]:w8()},...o||e.above===!1?{}:{[ei]:C8()}}}function w8(){let e=st(gE,k(ug,{}),bE,yE);return it("desktop",{...e,render:o=>{let t=e.render({...o,value:FI(o.value),onChange:r=>o.onChange(wE(r))});return cg(t,{hint:i(SE)})}})}function C8(){let e=zO(CE,!1,k(SO,{}),vE);return it("desktop",{...e,render:o=>e.render({...o,onChange:t=>o.onChange(t===!0?!0:void 0)})})}var v8={any:[BI,TE]};function UO(e,o,t,r,a){let n=Ya(),s=Po(),l=e==="desktop"||fi(e,s)?null:Cg(e,gs(s,{intro:r}));return{followed:l,write:(l||a)&&n?d=>n.onChangeMany(c=>{let f=P8(e,c,d,o,r),u=f===null?{[we(o,e)]:d}:f;return Object.keys(u).length?{...u,...a?.(d)??{}}:null}):t}}function k8({value:e,onChange:o,view:t,intro:r}){let a=Po(),n=gs(a,{intro:r}),s=f=>{let u=hc(f);return u==="desktop"||fi(u,a)},l=Jf({row:Ql,label:"Distance from top",grid:{min:ht.min,max:ht.max,step:ht.step},valueKey:"stickTopDistance",view:t,numbersIn:f=>s(f)&&q(a[Ig("stickTopDistance",f)])!==void 0,followsView:t==="phone"&&n.ownTablet?"tablet":"desktop"}),{followed:d,write:c}=UO(t,"stickTopDistance",o,r,l?f=>l.unitPatch(f===void 0):void 0);return k("div",{className:"sf-field",children:Zo({min:l?.grid.min??ht.min,max:l?.grid.max??ht.max,step:l?.grid.step??ht.step,value:d?null:typeof e=="number"?e:ht.fallback,...d?{placeholder:d.distance}:{},...l?{suffix:l.unit,units:l.units}:{suffix:"px"},ariaLabel:i("Distance from top"),onChange:c})})}function T8({value:e,onChange:o,view:t,intro:r}){let{followed:a,write:n}=UO(t,ja,o,r);return k(mo,{label:i(RI),icon:ks(k(pg,{})),children:Zo({min:Gf.min,max:Gf.max,step:Gf.step,value:a?null:q(e)??Gf.default,...a?{placeholder:a.screens}:{},ariaLabel:i(RI),onChange:n})})}function fi(e,o){return e==="tablet"?DI(o):NI(o)}function Cg(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 P8(e,o,t,r="stickTopDistance",a=!1){if(e==="desktop"||fi(e,o))return null;if(t===void 0)return{};let n=Cg(e,gs(o,{intro:a})),s=e==="phone"&&fi("tablet",o)?f=>we(f,"tablet"):f=>f,l=(f,u)=>o[s(f)]==null?{}:{[we(f,e)]:u},d=Ql.unitKey,c=o[s(d)]==null?{}:{[we(d,e)]:n.unit};return{[we("stickTop",e)]:!0,...l("stickTopDistance",n.distance),...c,...l(ja,n.screens),[we(r,e)]:t}}function E8({value:e,onChange:o,labelId:t,view:r,intro:a}){let n=Po(),s=gs(n,{intro:a}),l=r==="phone"?s.phone:r==="tablet"?s.tablet:a?s.desktop:e===!0,d=r==="phone"&&s.ownTablet,c=r==="desktop"?null:Cg(r,s),f=c?.on?We(c.distance,c.unit):i("Off");return k(mo,{label:i(AI),labelId:t,icon:ks(k(SO,{})),action:Rr(Fr,{children:[r!=="desktop"?k(Ho,{words:de()?.panel,label:i(AI),changed:fi(r,n),detail:Xa(u=>i(u),f,d?"tablet":"desktop"),onReset:()=>o(void 0)}):null,k(mg,{checked:l,onChange:o,ariaLabelledBy:t})]})})}var cO="e.g. about";function rp(){return{_gAnchor:zt("Anchor"),anchor:Qa({control:"plainText",label:"Name",placeholder:cO},{type:"custom",render:({value:e,onChange:o})=>k(gP,{value:e,onChange:o,nameBox:(t,r)=>k(Ja,{value:t,onChange:r,label:"Name",placeholder:cO,hideable:!1,markup:!1})})})}}function Pve(e,o,t){return{type:"custom",render:({value:r,onChange:a,id:n,name:s})=>{let l=`${n??s??e}-datetime`,d=Date.parse(typeof r=="string"?r:"");return k(mo,{label:i(e),icon:o,htmlFor:l,hint:t===void 0?void 0:i(t),children:k(aK,{id:l,value:Number.isFinite(d)?new Date(d):null,onChange:c=>a(c?c.toISOString():"")})})}}}function zO(e,o,t,r){return{type:"custom",...sa({},{...Vf,label:e}),render:a=>{let{value:n,onChange:s,id:l,name:d}=a,c="follows"in a,f=a,u=typeof n=="boolean",p=typeof f.follows=="boolean"?f.follows:o,h=u?n:c?p:o,I=`${l??d??e}-label`,g=f.readOnly===!0,C=k(mg,{checked:h,onChange:s,disabled:g,ariaLabelledBy:I});return k(mo,{label:i(e),labelId:I,icon:t,hint:r===void 0?void 0:i(r),action:c?Rr(Fr,{children:[k(Ho,{words:de()?.panel,label:i(e),changed:u,detail:f.followsNoView?i(p?"On":"Off"):Xa(w=>i(w),i(p?"On":"Off"),f.followsView),disabled:g,onReset:()=>s(void 0)}),C]}):C})}}}function $O(){return{type:"custom",render:({value:e,onChange:o,id:t,name:r})=>{let a=`${String(t??r??"pageBackground")}-colour`;return k(O8,{label:"Background",icon:k(zj,{}),id:a,value:e,shown:Bx(e),onChange:o})}}}function Eve(e,o,t){return{type:"custom",render:({value:r,onChange:a})=>k(Yo,{label:i(e),icon:t,value:r||o,onChange:a})}}function O8({label:e,icon:o,id:t,value:r,shown:a,onChange:n}){let{colors:s,n:l}=kg(),d=rr(r),c=d?ds(d,s,l):null;return k(Yo,{label:i(e),icon:o,id:t,value:c?c.hex:a,caption:c?.words,onChange:n,choices:vg(d??"",s,l,n)})}function Ove(){return{type:"custom",render:e=>{let{value:o,onChange:t}=e,r=e;return k(_8,{value:typeof o=="string"?o:"",onChange:t,twin:"follows"in e?{follows:r.follows,view:r.followsView}:void 0})}}}function vg(e,o,t,r){let a=of(e);return CP(o,t).map(n=>({label:n.label,color:n.value,selected:a===n.name,onPick:()=>r(n.name)}))}function _8({value:e,onChange:o,twin:t}){let{colors:r,n:a}=kg(),n=r.background,s=Za(n.toUpperCase(),i("Theme {n} background",{n:a})),[l,d]=Ut(LP),[c]=Ut(Mx),f=typeof c=="string"&&c.trim()!=="",u=Qc(l),p=b=>d(Qc(b)||void 0),h=of(e),I=h?ds(h,r,a):null,g=vg(e,r,a,o),C=t?()=>o(void 0):()=>o(""),w=n,T=s;if(t){let b=of(t.follows),P=ef(t.follows),H=b?ds(b,r,a):P?{hex:P,words:P.toUpperCase()}:null;w=H?.hex??n,T=Xa(E=>i(E),H?H.words:s,t.view)}let y=!t&&(Ul(e)||f)?k(A8,{value:u,onChange:p}):null;return I?k(Yo,{label:i("Fill"),icon:k(lg,{}),value:I.hex,caption:I.words,onChange:o,changed:!0,onReset:C,resetTo:T,choices:g,children:y}):k($l,{label:i("Fill"),icon:k(lg,{}),value:e,inherited:w,resetTo:T,onChange:o,onReset:C,choices:g,children:y})}function A8({value:e,onChange:o}){return si({options:Jc.map(t=>({label:t.label,value:t.value,hint:t.hint})),value:e,onChange:o,ariaLabel:i("Fill")})}function R8(e,o,t){if((e?.content??[]).some(n=>n?.props?.id===o))return er(t);let r=BP(e,o);if(r.length===0)return null;let a=er(Uh(t));if(a!==null)return a;for(let n=r.length-1;n>0;n-=1){let s=er(Uh(r[n].sectionAccent));if(s!==null)return s}return er(r[0].sectionAccent)}function kg(){let e=xo(he().theme),[o]=Ut("sectionAccent"),t=null;try{let{appState:a,selectedItem:n}=qf(l=>l),s=n?.props?.id?String(n.props.id):void 0;t=s?R8(a?.data,s,o):null}catch{t=null}let r=t!==null&&e.themes[t]?t:e.selected;return{colors:Vo(e.themes[r]),n:r+1}}function _ve(){return LO()}var GO={top:k(Dj,{}),right:k(Bj,{}),bottom:k(Lj,{}),left:k(Fj,{})};function jO(e,o,t,r,a,n,s){let l=u=>o.find(p=>p.value===u),d=u=>({value:u,label:"",disabled:!0,title:r}),c=u=>{let p=o.find(I=>I.cell===u);if(!p)return d(`missing-${u}`);let h=n?.[u];return h?{value:p.value,label:p.label,icon:h}:{value:p.value,label:p.label}},f=[d("corner-top-left"),c("top"),d("corner-top-right"),c("left"),d("centre"),c("right"),d("corner-bottom-left"),c("bottom"),d("corner-bottom-right")];return{type:"custom",render:({value:u,onChange:p})=>{let h=o.some(I=>I.value===u)?u:t;return k(mo,{label:i(e),icon:a,value:l(h)?.label?i(l(h).label):s?i(s):"",children:bK(i,{label:e,value:h,onChange:p,points:f})})}}}function Ave(e,o,t){return{type:"custom",options:o,render:({value:r,onChange:a,field:n})=>k(l0,{label:e,options:(n.options??o).map(s=>({...s,label:i(s.label)})),value:Array.isArray(r)?r:[],onChange:a,...t?{emptyLabel:i(t)}:{}})}}function Rve(e,o={}){return{type:"custom",render:({value:t,onChange:r})=>{let a={value:t,onChange:r,...o};return k(e,{...a})}}}var Lve=[{label:"Image",value:"image"},{label:"Video",value:"video"}];function Fve(e,o,t){let r=Object.keys(nx).map(a=>({label:nx[a],value:a,picture:t[a]}));return{type:"custom",...sa({},{type:"radio",label:e,options:r.map(a=>({value:a.value,label:a.label}))}),render:({onChange:a})=>k(F8,{label:e,icon:o,options:r,onChange:a})}}function L8(e,o,t){let r=cT(e,o,t);if(r!==void 0)return r==="save-makes-frame"?i("A frame is made from this video when you save the page."):r==="starts-dark"?i("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"?i("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"?i("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"?i("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"?i("The slide shows your Image while the video loads, because this video has no frame."):void 0;let a=dT(e);return a==="frame-missing-image"?i("This video has no frame yet. The slide shows its image until one is made."):a==="frame-missing-surface"?i("This video has no frame yet. The slide shows its background colour until one is made."):a==="image-missing-frame"?i("No image yet. The slide shows the video's frame until you choose one."):a==="image-missing-surface"?i("No image yet. The slide shows its background colour until you choose one."):void 0}function F8({label:e,icon:o,options:t,onChange:r}){let a=Ya(),n=a?.values??{},s=Al(n),l=pO(Cj),d=Dc(l?.docId??null),c=null;try{c=qf(u=>u.appState.data)}catch{c=null}let f=OT(a?.id,c,d);return k(mo,{label:i(e),icon:ks(o),hint:L8(n,f,l?.hasUnsavedEdits??!1),children:si({options:t,value:s,onChange:r,ariaLabel:e})})}function Bve(e,o,t,r={}){let a={type:"custom",[Tj]:!0,render:({value:n,onChange:s,name:l})=>k(n0,{value:n||"",onChange:s,fieldKey:l,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?it("each",a):a}function B8(e){let o=i(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 Dve({value:e,onChange:o,label:t}){let r=e||{},a=Ya(),n=a?a.values!==a.node.props:!0,s=!!r.pending&&n,l=!!r.pending&&!n,d=!!to(IK()).geocode,c=uO(),f=(u,p)=>o({...r,[u]:p??void 0});return Rr(Fr,{children:[k(mo,{label:i(t),icon:k(oO,{}),action:d?k(hg,{content:i("Find from the address (OpenStreetMap)"),children:k(vO,{"aria-label":i("Find from the address"),"aria-busy":s||void 0,disabled:s,onClick:()=>o({...r,pending:!0,ok:!1,status:"Finding\u2026"}),children:k($j,{})})}):void 0,children:d&&r.status?k(bP,{compact:!0,oneLine:!0,spaced:!1,status:s?"busy":r.ok&&!l?"found":"notfound",statusText:s?i("Finding\u2026"):l?i(zx):i(r.status),hint:B8(r)}):null}),k(mo,{label:i("Enter by hand"),labelId:c,icon:k(Nj,{}),action:k(mg,{checked:!!r.manual,onChange:u=>o({...r,manual:u}),ariaLabelledBy:c})}),r.manual&&k(mo,{label:i("Latitude, longitude"),icon:k(oO,{}),children:Rr("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:8,width:"100%",minWidth:0},children:[k(rO,{value:typeof r.lat=="number"?r.lat:null,onChange:u=>f("lat",u),min:-90,max:90,step:1e-4,placeholder:i("Latitude")}),k(rO,{value:typeof r.lng=="number"?r.lng:null,onChange:u=>f("lng",u),min:-180,max:180,step:1e-4,placeholder:i("Longitude")})]})})]})}function D8(e,o){return o===null||o<0||o>=e.length?"":e[o]?.text??""}function N8(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 M8(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 Tg={label:"Ticker items",icon:k(Uj,{})};function Nve(e,o,t,r){return{type:"custom",[Lr]:{control:"textList",label:e,placeholder:t,itemKey:"text",rendering:r},...sa({},{...OO.textList,label:e}),render:({value:a,onChange:n})=>k(Pg,{label:e,icon:ks(o),items:Array.isArray(a)?a:[],placeholder:t,onChange:n,markup:r==="markup"})}}function Pg({label:e,icon:o,items:t,placeholder:r,onChange:a,markup:n=!1}){let s=ii(null),[l,d]=di(null),c=u=>u.map(p=>({text:p?.text??""})),f=u=>{let p=M8(t,u,l);p===null&&(s.current=null),d(p),a(c(u))};return k(eK,{label:i(e),icon:o,noun:i("item"),items:t,onChange:f,newItem:()=>({text:""}),open:null,onOpen:()=>{},renderItem:()=>null,above:n?k(jx,{target:s,value:D8(t,l),onChange:u=>a(N8(t,l??-1,u)),disabled:l===null,label:l===null?i("Formatting \u2014 click a row first"):i("Formatting \u2014 row {n}",{n:l+1})}):void 0,renderRow:(u,p,h)=>k("input",{type:"text",className:n&&l===p?"sf-list-marking":void 0,value:u?.text??"",placeholder:i(r),"aria-label":i("{label} {n}",{label:i(e),n:p+1}),onChange:I=>h({text:I.target.value}),onFocus:I=>{s.current=I.currentTarget,d(p)}})})}function KO(e,o){let t=`${e.label} \u2014 row ${o+1}`;return Qa({control:"plainText",label:t,placeholder:e.placeholder,offPage:e.offPage},{type:"custom",render:({value:r,onChange:a})=>k(Ja,{value:r,onChange:a,label:i("{label} \u2014 row {n}",{label:i(e.label),n:o+1}),placeholder:e.placeholder,hideable:!1,markup:e.rendering==="markup"})})}function VO(e){return{_gCards:zt("Cards"),coverIndex:st("Cover image",k(Wj,{}),t0,String(1),e?.coverHint??"A card's opening picture \u2014 a card pinned to a finish keeps its own."),imageBackground:HK("Image background",Nf),cardImage:YO()}}function Mve(){return{outline:st("Card outline",k(Gj,{}),o0,e0),indexBadge:st("Card number",k(Hj,{}),Zx,Xx),showBadge:zO("Product badge",!0,k(Rx,{noun:"tag"}))}}function qO(e){let o=e?.defaults??{showCardSizes:!0,showCardBuy:!0,showCardPage:!0},t=a=>({...Vf,label:Kf.find(n=>n.id===a).label}),r=a=>sa(ig(sg),t(a));return{_gShowOnCard:zt("Show on a card"),[sg]:sa({type:"custom",render:()=>k(H8,{rest:{showCardPrice:!0,showCardFinishes:!0,...o}})},t(sg)),showCardFinishes:r("showCardFinishes"),showCardSizes:r("showCardSizes"),showCardBuy:r("showCardBuy"),showCardPage:r("showCardPage")}}var sg="showCardPrice",Kf=[{id:"showCardPrice",label:"Price"},{id:"showCardFinishes",label:"Finish swatches"},{id:"showCardSizes",label:"Sizes"},{id:"showCardBuy",label:"Buy button"},{id:"showCardPage",label:"Page button"}];function H8({rest:e}){let o=Po(),t=ta(),r=s=>typeof o[s]=="boolean"?o[s]:void 0,a=s=>r(s)??e[s],n=Kf.some(({id:s})=>r(s)!==void 0&&r(s)!==e[s]);return k(Ts,{parts:Kf,changed:n,shown:a,onPress:(s,l)=>t({[s]:l}),onReset:()=>t(Object.fromEntries(Kf.map(({id:s})=>[s,void 0])))})}function Hve(e,o="display"){let t=vs(o);return{[o]:it("desktop",{type:"custom",render:({value:r,onChange:a})=>k(Ts,{parts:e,changed:HP(r),shown:n=>af(r,n),onPress:(n,s)=>a(UP(r,n,s)),onReset:()=>a(void 0)})}),[t]:it("mobile",{type:"custom",render:({value:r,onChange:a})=>k(W8,{parts:e,desktopKey:o,value:r,onChange:a})})}}function Ts({parts:e,changed:o,shown:t,onPress:r,onReset:a,detail:n,disabledReason:s}){let l=i("Display");return k(mo,{label:l,icon:k(Oj,{}),changed:o,action:k(Ho,{words:de()?.panel,label:l,changed:o,detail:n,onReset:a}),children:k(oK,{label:l,items:e.map(d=>({id:d.id,label:i(d.label),shown:t(d.id),...s?{disabled:!0,disabledReason:i(s)}:{}})),onChange:r})})}function W8({parts:e,desktopKey:o,value:t,onChange:r}){let a=Po()[o];return k(Ts,{parts:e,changed:WP(t),shown:n=>Ux(a,t,n),onPress:(n,s)=>r(zP(t,n,s)),onReset:()=>r(df),detail:i("the same as Desktop")})}function YO(e=ZT){return Oo("Card image",k(xO,{}),Wo,Vr,XT,Wo,e,{clear:{hint:Wo},hint:"Rounds the picture. The card's own corner is in Styles."})}function U8(){return li(kx,"cardImage")}function Wve(){return{cardImage:YO(kx),...U8()}}function Uve(){return yg({sidesKey:"cornerSides",row:JT,step:QT,useFollowed:()=>Wo,mark:k(z8,{label:eP}),hint:i("Rounds the picture. Left alone it stays square.")})}function z8({label:e,changed:o=!1,onReset:t=()=>{}}){return k(Ho,{words:de()?.panel,label:i(e),changed:o,onReset:t})}function zve(){return{type:"custom",render:({value:e,onChange:o})=>k(K8,{value:typeof e=="string"?e:"",onChange:o})}}var fO="own";function $ve(){let e=[{value:fO,label:"Layout's own",picture:tg(Array.from({length:8},()=>[3,1]))},...Object.entries(zc).map(([o,t])=>({value:o,label:t.label,picture:tg([...t.phone,...t.phone])}))];return it("mobile",eg("Layout",k(IO,{}),e,fO,{columns:2,cell:QE}))}function $8({layout:e,width:o}){let t=Ox(e),r=t?`${t[0]}/${t[1]}`:void 0;return k("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:lP(e).map(([a,n],s)=>k("i",{className:"block rounded-xs bg-current opacity-60",style:{gridColumn:`span ${a}`,gridRow:`span ${n}`,aspectRatio:r}},s))})}var G8={width:"3.5rem",height:"2.5rem",words:!1},j8=200;function K8({value:e,onChange:o}){let[t,r]=di(null),[a,n]=di(4),s=ii(null);wj(()=>{let h=s.current;if(!h||typeof ResizeObserver!="function")return;let I=()=>n(h.getBoundingClientRect().width>=j8?4:3);I();let g=new ResizeObserver(I);return g.observe(h),()=>g.disconnect()},[]);let l=e?K(Ml,e):void 0,d=l?e:"",c=Px(t,d),f=Px(t,"").length,u=jc("no-symbol"),p=[{value:"",label:i("Not chosen"),icon:JE(u,i("Not chosen"))},...c.map(h=>({value:h,label:i(Ml[h].label),icon:k($8,{layout:Ml[h],width:40})}))];return k(mo,{label:i("Layout"),icon:k(IO,{}),value:l?i(l.label):void 0,children:k("div",{ref:s,style:{flex:"1 1 auto",minWidth:0},children:k(wO,{label:i("Layout"),value:d,options:p,onChange:o,columns:a,cell:G8,header:Rr("div",{className:"mb-2 flex flex-col gap-1",style:{minWidth:"11rem"},children:[k("span",{className:"text-2xs text-ink-faint",children:i("Photos in a row")}),k(Yj,{options:[{id:"all",label:i("All")},...aP.map(h=>({id:String(h),label:String(h)}))],value:t===null?"all":String(t),ariaLabel:i("Photos in a row"),onChange:h=>r(h==="all"?null:Number(h))}),k("span",{className:"text-2xs text-ink-faint",children:i("{n} of {total} layouts",{n:f,total:Tx.length})})]})})})})}import{decodePartId as c7}from"efficient-easel/draw";import{decodePartId as Ag,encodePartId as ip}from"efficient-easel/draw";import{LINK_FIELD_MARKER as n_,SCAFFOLD_FIELD_MARKER as r_,TEXT_FIELD_MARKER as dp}from"efficient-easel/draw";import{readHidable as s_}from"efficient-easel/draw";import{SCALAR_TEXT_CONTROLS as Q8}from"efficient-easel/draw";import{TEXT_FIELD_MARKER as J8}from"efficient-easel/draw";import{TEXT_FIELD_MARKER as XO}from"efficient-easel/draw";import{readHidable as ZO}from"efficient-easel/draw";import{SCALAR_TEXT_CONTROLS as V8}from"efficient-easel/draw";var q8=V8,Y8=["text","textarea"],X8=["textarea","plainTextarea"];function Z8(e){return!e||typeof e!="object"?null:e[XO]?.control??null}function Ps(e){let o=Z8(e);return o&&q8.includes(o)?o:null}function ap(e){return X8.includes(e)}function JO(e){return!e||typeof e!="object"?void 0:e[XO]?.placeholder}function np(e){return ZO(e).text}function Eg(e,o,t){return Y8.includes(e)?{text:t,hidden:ZO(o).hidden}:t}function QO(e,o,t,r){return np(e[o])===r?null:{...e,[o]:Eg(t,e[o],r)}}function Es(e,o){return o?`${e}[${o.index}].${o.rowKey}`:e}function $t(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 sp(e){if(!(!e||typeof e!="object"))return e[J8]}function Og(e){if(!e||typeof e!="object")return null;let o=e.arrayFields;return o&&typeof o=="object"?o:null}function e_(e,o){if(!Array.isArray(o))return[];let t=sp(e),r=[];if(t?.control==="textList"){let n=t.itemKey??"text";return o.forEach((s,l)=>{let d=Se(s?.[n]);d&&r.push({row:{index:l,rowKey:n},text:d})}),r}let a=Og(e);return a?(o.forEach((n,s)=>{for(let[l,d]of Object.entries(a)){if(!Ps(d))continue;let c=np(n?.[l])||sp(d)?.placeholder||"";c&&r.push({row:{index:s,rowKey:l},text:c})}}),r):[]}function ui(e,o){if(Array.isArray(e))return e[o.index]?.[o.rowKey]}function _g(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 o_(e,o,t,r,a){let n=ui(e[o],t);return np(n)===a?null:_g(e,o,t,Eg(r,n,a))}function t_(e,o){return o?`${e} \xB7 row ${o.index+1}`:e}var Gt="data-sf-part",fke="data-sf-region-part",pke="data-sf-part-row";function uke(e,o){return`${e}[${o}]`}var mke="data-sf-part-kind",e7="data-sf-part-style-owner",o7="data-sf-part-style-kind";function hke(e){for(let o=e;o;o=o.parentElement){let t=o.getAttribute(e7),r=o.getAttribute(o7);if(t&&r)return{owner:t,kind:r};if(o.getAttribute("data-easel-block"))return null}return null}var a_=2;function Os(e){return yr(e).replace(/\s+/gu,"")}function lp(e,o,t){let r=e[dp];if(r){if(r.control==="textList"){let n=r.itemKey??"text";if(!Array.isArray(o))return;for(let s of o){let l=s?.[n];typeof l=="string"&&t.push(l)}return}let{text:a}=s_(o);a?t.push(a):r.placeholder&&t.push(r.placeholder);return}if(!e[n_]){if(e.type==="text"||e.type==="textarea"){let a=Se(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))lp(s,a?.[n],t);return}if(e.objectFields&&o&&typeof o=="object")for(let[a,n]of Object.entries(e.objectFields))lp(n,o[a],t)}}function Rg(e){if(!e||typeof e!="object")return!1;let o=e;return o[n_]?!1:!!o[dp]||o.type==="text"||o.type==="textarea"}function cp(e,o){let t=e[dp];return t?.label?t.label:typeof e.label=="string"?e.label:o}function Lg(e){let o=e.indexOf(" (");return(o>0?e.slice(0,o):e).trim()}function xke(e,o,t){if(!e)return[];let r=[];for(let[a,n]of Object.entries(e)){if(!n||typeof n!="object"||Gl(a))continue;let s=n,l=[];lp(s,o?.[a],l),!l.length&&s[r_]!==void 0&&lp(s,s[r_],l);let d=cp(s,a);if(t?.(a)&&Rg(s)){l.length&&r.push({key:a,label:d,texts:[],keyed:!0});continue}let c=new Set;for(let{row:p,text:h}of e_(s,o?.[a])){let I=Os(h);I.length<a_||(c.add(I),r.push({key:a,label:d,texts:[I],row:p}))}let f=new Set(c),u=[];for(let p of l){let h=Os(p);h.length<a_||f.has(h)||(f.add(h),u.push(h))}u.length&&r.push({key:a,label:d,texts:u})}return r}function Fg(e){return!e.offPage&&!e.hidden&&e.panelOnly!==!0}var t7=Q8;function l_(e,o){if(!o||typeof o!="object"||Gl(e)||VP(o))return null;let t=o[dp];return!t||!t7.includes(t.control)?null:t}function Ike(e,o){let t=l_(e,o);return t!==null&&t.identifier!==!0}function i_(e,o){if(!e)return[];let t=[];for(let[r,a]of Object.entries(e)){let n=l_(r,a);if(!n)continue;let{text:s,hidden:l}=s_(o?.[r]);if(Fg({offPage:n.offPage===!0,hidden:!!l,panelOnly:ms(a)}))continue;let d=s||n.placeholder||"",c=yr(d).replace(/\s+/gu," ").trim();t.push({key:r,label:Lg(cp(a,r)),preview:c,offPage:n.offPage===!0,identifier:n.identifier===!0,hidden:!!l})}return t}function _s(e,o){let t=sp(e);return t?.control==="textList"?o.rowKey===(t.itemKey??"text")?KO(t,o.index):null:Og(e)?.[o.rowKey]??null}function fp(e,o,t){let r=e.node.props,{key:a,row:n}=$t(e.propKey),s=n?o_(r,a,n,e.kind,o):QO(r,a,e.kind,o);return s?(t(e.zone,e.index,{...e.node,props:s}),!0):!1}import{readHidable as p_}from"efficient-easel/draw";import{isNodeList as r7}from"efficient-easel/data";var Bg=e=>String(e+1).padStart(2,"0"),kke=[{label:"01 \xB7",value:"two-digit"},{label:"1.",value:"plain"}],Dg="two-digit",d_=e=>e==="plain"?"plain":Dg,pp=(e,o)=>e==="plain"?`${o+1}.`:Bg(o);var Mg="Contents",Ng="Flex",c_="Text",a7="numberForm",Dke="_contentsEntries",Nke="_kickerNumber",u_="data-sf-kicker-number",n7=e=>p_(e).text.trim(),m_=e=>Kc(e?.anchor),f_=e=>String(e.props?.id??""),s7=e=>!p_(e.props?.text).hidden&&!as(e.props)&&!Zt(e.props);function mi(e){return Object.values(e.props??{}).filter(r7)}function h_(e){for(let o of mi(e))for(let t of o){if(zl(t.props??{}))continue;if(t.type===c_&&s7(t))return t;if(t.type===c_)continue;let r=h_(t);if(r)return r}}function x_(e){return mi(e).some(o=>o.some(t=>t&&!zl(t.props??{})&&(t.type===Mg||x_(t))))}var I_=e=>e.type===Ng&&bs(Ng,e.props?.direction)==="row";function g_(e){return mi(e).some(o=>o.some(t=>t&&!zl(t.props??{})&&(t.type===Mg||!I_(t)&&g_(t))))}function l7(e){let o=[],t=(r,a)=>{for(let n of r){if(!n||zl(n.props??{}))continue;if(n.type===Mg){a.open={contents:n,sections:a.waiting??[]},a.waiting=null,o.push(a.open);continue}if(I_(n)&&g_(n)){let l={inRow:!0,open:null,waiting:[]};for(let d of mi(n))t(d,l);a.inRow||(a.open=null);continue}let s=a.open?.sections??a.waiting;if(n.type===Ng&&m_(n.props)&&s&&!x_(n)){s.push({box:n,kicker:h_(n)});continue}for(let l of mi(n))t(l,a)}};return t(e,{inRow:!1,open:null,waiting:null}),o}function i7(e){return e.map(o=>({label:o.kicker?yr(n7(o.kicker.props?.text)):"",anchor:m_(o.box.props)}))}function Mke(e){let o=e?.length?l7(e):[];if(!o.length)return null;let t=new Map,r=new Map;for(let a of o){let n=f_(a.contents);n&&t.set(n,i7(a.sections));let s=d_(a.contents.props?.[a7]);a.sections.forEach((l,d)=>{let c=l.kicker?f_(l.kicker):"";c&&r.set(c,pp(s,d))})}return{entries:t,numbers:r}}var Hke=e=>e.endsWith(".")?`${e} `:`${e} \xB7 `;var f7=`[${u_}]`,p7=["bold","italic","underline","strike","link","sup","sub"],u7=["bullet","number"];function Ug(e,o){return e?[...p7,...o?u7:[]]:[]}function b_(e,o){let t=c7(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:l,row:d}=$t(a),c=o.components[n.type]?.fields?.[l],f=d?_s(c,d):c,u=Ps(f);if(!u)return null;let p=n.props??{};if(mI(p)!==null||!d&&ic(n.type,p,l)||n.type==="Text"&&l==="text"&&as(p)||d&&!(Array.isArray(p[l])&&d.index<p[l].length))return null;let h=d?ui(p[l],d):p[l];return{node:n,selector:s,propKey:a,kind:u,stored:h,offPage:Yf(f),panelOnly:ms(f)}}function up(e,o){let t=b_(e,o);if(!t)return null;let{text:r,hidden:a}=la(t.stored);if(!Fg({offPage:t.offPage,hidden:!!a,panelOnly:t.panelOnly}))return null;let n=ap(t.kind);return{partId:e,value:r,rules:Yd,multiline:n,skip:f7,offered:Ug(t.kind!=="plainText",n),write:s=>{let l=b_(e,o);l&&fp({node:l.node,propKey:l.propKey,kind:l.kind,zone:l.selector.zone,index:l.selector.index},s,o.replace)}}}function zg(e,o,t){return e?.isConnected&&e.getAttribute(Gt)===t?e:o?.querySelector(`[${Gt}="${mp(t)}"]`)??null}function mp(e){return e.replace(/["\\]/g,"\\$&")}function y_(e){let o=e.activeElement;return o?o.tagName==="IFRAME"||!!o.closest(".es-canvas"):!1}var Hg=null,Wg=new Set;function m7(){return Hg}function $g(e){if(e!==Hg){Hg=e;for(let o of Wg)o()}}function h7(e){return Wg.add(e),()=>{Wg.delete(e)}}function S_(){return d7(h7,m7,()=>null)}function w_(e,o){if(e.outer)return null;let t=o.getItemById(e.ownerId);if(!t)return null;let r=Lv(t.type);return!r||Xt(t.props)?null:{node:t,rows:r}}function y7(e,o){let t=w_(e,o),r=o.getItemById(e.nodeId);if(!t||!r)return null;let a=Hv(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:x7(e.ownerId,Es(t.rows,{index:e.index,rowKey:a}))}function hp(e,o){let t=y7(e,o);return t?up(t,o):null}function C_(e,o){return hp(e,o)?.value}function v_(e,o){let t=hp(e,o);return t?(t.write(e.text),!0):!1}function k_(e,o){let t=w_(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 l;switch(e.action){case"addAfter":{let d=o.components[t.node.type]?.fields?.[t.rows];l=I7(n,s+1,{...d?.defaultItemProps??{}});break}case"moveEarlier":case"moveLater":{let d=e.action==="moveEarlier"?s-1:s+1;if(d<0||d>=n.length)return!1;l=g7(n,s,d);break}case"delete":l=b7(n,s);break;default:return!1}return o.replace(r.zone,r.index,{...t.node,props:{...a,[t.rows]:l}}),!0}import{jsx as Pe,Fragment as lA,jsxs as Ti}from"react/jsx-runtime";import{Fragment as Jq,useEffect as Qq,useId as eY,useMemo as iA,useRef as oY,useState as da}from"react";import{useScreenDocument as xA}from"efficient-easel/screen/components/ScreenDocumentContext";import{UiIcon as Db}from"efficient-easel/draw/client";import tY from"efficient-easel/screen/components/SidePanelHead";import{jsx as ve,Fragment as Ms,jsxs as sn}from"react/jsx-runtime";import{useEasel as eA,useRootFields as dq}from"efficient-easel/easel";import{Inspector as cq}from"efficient-easel/fields";import{SettingsGroup as fq}from"efficient-easel/panel";import{useEffect as pq,useRef as uq,useState as Lb}from"react";import{jsx as en,Fragment as v7,jsxs as k7}from"react/jsx-runtime";import{useState as O_}from"react";import{SettingsDefaultReset as T7,SettingsField as P7}from"efficient-easel/panel";import{useEaselStrings as E7}from"efficient-easel/strings";import{AddIcon as O7}from"efficient-easel/icons";import{Button as _7}from"efficient-shell/ui";import{iconOf as A7,noGlyph as R7}from"efficient-easel/screen/lib/document/box-fields";import{jsx as xp,Fragment as S7,jsxs as T_}from"react/jsx-runtime";import{Button as P_,Dialog as w7}from"efficient-shell/ui";function C7(e){return Uo("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 E_({count:e,onCancel:o,onConfirm:t}){return T_(w7,{open:!0,onClose:o,role:"alertdialog",size:"sm",title:i("Clear this site\u2019s colors?"),footer:T_(S7,{children:[xp(P_,{variant:"secondary",onClick:o,children:i("Cancel")}),xp(P_,{variant:"danger",onClick:t,children:i("Clear colors")})]}),children:[xp("p",{children:C7(e)}),xp("p",{className:"mt-2 font-medium",children:i("This cannot be undone.")})]})}var L7=R7("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"),F7="Reset color",B7={selected:0,themes:[]};function D7(e){e(B7)}function __({value:e,onChange:o}){let t=e?.themes??[],r=t.length===0,a=xo(e),[n,s]=O_(!1),l=E7(),[d,c]=O_(null),f=(w,T)=>{o({...a,themes:a.themes.map((y,b)=>b===w?T:y)})},u=Yn(a).accent,p=new Set(a.themes.map(w=>w.brandInk).filter(Boolean)),h=Vv.filter(w=>!p.has(w)).map(w=>qv(u,w)),I=[...a.themes,...h],g=w=>{if(w<a.themes.length)return o({...a,selected:w});let T=[...a.themes,I[w]];o({...a,themes:T,selected:T.length-1})},C=()=>{let w=[...a.themes,{...Vo(a.themes[a.selected])}];o({...a,themes:w,selected:w.length-1}),c(w.length-1)};return k7(v7,{children:[r?null:en(P7,{label:i(F7),icon:A7(L7),labelId:"sf-theme-reset",action:en(T7,{label:i("all theme colors"),words:l.panel,changed:!0,onReset:()=>s(!0)})}),n&&en(E_,{count:t.length,onCancel:()=>s(!1),onConfirm:()=>{s(!1),D7(o)}}),en("div",{className:"sf-theme-list",role:"radiogroup","aria-label":i("Theme"),children:I.map((w,T)=>en(hf,{index:T,colors:w,selected:T===a.selected,open:d===T&&T<a.themes.length,editable:T<a.themes.length,onPick:()=>g(T),onEdit:()=>c(y=>y===T?null:T),onChangeColors:y=>f(T,y)},T))}),en(_7,{variant:"secondary",leftIcon:en(O7,{}),onClick:C,className:"sf-theme-add",children:i("Add new theme")})]})}import{jsx as Ip}from"react/jsx-runtime";import{SettingsDefaultReset as N7,SettingsField as M7}from"efficient-easel/panel";import{SquareIcon as H7}from"efficient-easel/icons";var W7="Applies to panels, cards, inputs and buttons. Round things \u2014 color swatches, switches, status dots \u2014 stay round.",Gg="Corners";function A_({value:e,onChange:o,length:t}){let r=e===null;return Ip(M7,{label:i(Gg),icon:Ip(H7,{}),changed:!r,action:Ip(N7,{words:de()?.panel,label:i(Gg),changed:!r,detail:i("the built-in corners"),onReset:()=>o(null)}),hint:i(W7),children:Ip(Zo,{min:t?.grid.min??Wo,max:t?.grid.max??Vr,step:t?.grid.step??1,value:e,...e===null?{}:{suffix:t?.unit??"px",...t?{units:t.units}:{}},placeholder:Wo,placeholderWord:"Auto",onClear:()=>o(null),ariaLabel:i(Gg),onChange:o})})}import{jsx as hi}from"react/jsx-runtime";import{SettingsDefaultReset as U7,SettingsField as z7}from"efficient-easel/panel";import{IconPicker as $7}from"efficient-shell/ui";import{ShadowIcon as G7}from"efficient-easel/icons";import{SHADOW_PREVIEW as j7}from"efficient-easel/screen/lib/document/shadow-values";var jg={none:"None",soft:"Soft",lifted:"Lifted"},K7="Applies to cards \u2014 products, brands, journal entries and filter cells. Round things like swatches and status dots are never shadowed.";function R_({value:e,onChange:o}){let t=e===null,r=e??Hh;return hi(z7,{label:i("Card shadow"),icon:hi(G7,{}),value:i(jg[r]),changed:!t,action:hi(U7,{words:de()?.panel,label:i("Card shadow"),changed:!t,detail:i(jg[Hh]),onReset:()=>o(null)}),hint:i(K7),children:hi($7,{label:i("Card shadow"),value:r,options:sk.map(a=>({value:a,label:i(jg[a]),icon:hi("span",{className:"sf-shadow-chip border border-line bg-surface",style:{boxShadow:j7[a]}})})),onChange:o})})}import{jsx as L_}from"react/jsx-runtime";import{ShadowIcon as V7}from"efficient-easel/icons";import{DEFAULT_SHADOW_COLOR as F_}from"efficient-easel/screen/lib/document/shadow-values";var q7="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 B_({value:e,onChange:o}){let t=e===null;return L_($l,{label:i("Shadow color"),icon:L_(V7,{}),value:e??"",inherited:F_,resetTo:F_,onChange:o,onReset:()=>o(null),hint:i(q7)})}import{jsx as bp}from"react/jsx-runtime";import{SettingsDefaultReset as Y7,SettingsField as X7}from"efficient-easel/panel";import{AlignSeparateIcon as Z7}from"efficient-easel/icons";function gp(e,o){return e==="tablet"?null:e==="mobile"?o.phone:o.desktop}var J7="The space between the blocks inside a row, a grid or a box. Auto means each one keeps the spacing it already has.",Q7="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.",Kg="Block gap",D_=ys.Grid;function N_(e,o){return gp(e,{desktop:{key:"block_gap",value:o.gap,followsPx:null},phone:{key:"block_gap_phone",value:o.phone,followsPx:o.gap===null?null:UI(o.gap)}})}function M_({value:e,onChange:o,followsPx:t=null,length:r,followsUnit:a="px"}){let n=e===null,s=t===null?null:`${t}${a}`,l=a==="px"&&(r?.unit??"px")==="px",d=t===null?D_:l?ti(t)??D_:t;return bp(X7,{label:i(Kg),labelId:"sf-block-gap",icon:bp(Z7,{}),changed:!n,action:bp(Y7,{words:de()?.panel,label:i(Kg),changed:!n,detail:s??i("each block's own spacing"),onReset:()=>o(null)}),hint:i(s===null?J7:Q7),children:bp(Zo,{min:(r?.grid??xt).min,max:(r?.grid??xt).max,step:(r?.grid??xt).step,value:e,...e===null&&t===null?{}:{suffix:r?.unit??"px",...r?{units:r.units}:{}},placeholder:d,...t===null?{placeholderWord:"Auto"}:l&&t===d?{}:{placeholderWord:String(t)},onClear:()=>o(null),ariaLabel:i(Kg),onChange:o})})}import{jsx as yp}from"react/jsx-runtime";import{SettingsDefaultReset as eV,SettingsField as oV,SettingsSegmented as tV}from"efficient-easel/panel";import{HoverIcon as rV}from"efficient-easel/icons";var Vg={none:Un.none,lift:Un.lift,highlight:BC},aV="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 H_({value:e,onChange:o}){let t=e===null,r=e??Wh;return yp(oV,{label:i("Hover effect"),icon:yp(rV,{}),value:i(Vg[r]),changed:!t,action:yp(eV,{words:de()?.panel,label:i("Hover effect"),changed:!t,detail:i(Vg[Wh]),onReset:()=>o(null)}),hint:i(aV),children:yp(tV,{options:lk.map(a=>({id:a,label:i(Vg[a])})),value:r,ariaLabel:i("Hover effect"),onChange:o})})}import{jsx as Sp}from"react/jsx-runtime";import{SettingsDefaultReset as nV,SettingsField as sV,SettingsSegmented as lV}from"efficient-easel/panel";import{DropIcon as iV}from"efficient-easel/icons";var qg="Photography",W_={shot:"As shot",mono:"Black and white"},Yg=[{grayscale:!1,label:W_.shot},{grayscale:!0,label:W_.mono}],dV="Black and white photographs return to color on hover. Wheels and tyres keep their real finish either way.";function U_({value:e,onChange:o}){let t=e===null,r=e??!1;return Sp(sV,{label:i(qg),icon:Sp(iV,{}),value:i(Yg.find(a=>a.grayscale===r).label),changed:!t,action:Sp(nV,{words:de()?.panel,label:i(qg),changed:!t,detail:i(Yg.find(a=>!a.grayscale).label),onReset:()=>o(null)}),hint:i(dV),children:Sp(lV,{options:Yg.map(a=>({id:a.grayscale,label:i(a.label)})),value:r,ariaLabel:i(qg),onChange:o})})}import{jsx as Xg}from"react/jsx-runtime";import{useId as cV}from"react";import{SettingsField as fV,SettingsSwitch as pV}from"efficient-easel/panel";import{ShareIcon as uV}from"efficient-easel/icons";var mV="Share button",hV="On every blog post.";function z_({value:e,onChange:o}){let t=cV();return Xg(fV,{label:i(mV),labelId:t,icon:Xg(uV,{}),action:Xg(pV,{checked:e===!0,onChange:o,ariaLabelledBy:t}),hint:i(hV)})}import{usePreviewDevice as Fb}from"efficient-easel/draw/client";import{jsx as wp}from"react/jsx-runtime";import{SettingsDefaultReset as xV,SettingsField as IV}from"efficient-easel/panel";import{PaddingXIcon as gV}from"efficient-easel/icons";var Zg="Side space",$_=Go.default,bV="The room left at the left and right edge of every page.";function G_(e,o){return gp(e,{desktop:{key:"site_gutter",value:o.gutter,unsetPx:$_,bounds:Go},phone:{key:"site_gutter_phone",value:o.phone,unsetPx:Pf(o.gutter,o.gutterUnit),bounds:Ht}})}function j_({value:e,onChange:o,unsetPx:t=$_,bounds:r=Go,length:a,restsOn:n=t}){let s=e===null;return wp(IV,{label:i(Zg),labelId:"sf-side-space",icon:wp(gV,{}),changed:!s,action:wp(xV,{words:de()?.panel,label:i(Zg),changed:!s,detail:`${t}px`,onReset:()=>o(null)}),hint:i(bV),children:wp(Zo,{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:i(Zg),onChange:o})})}import{jsx as Jg}from"react/jsx-runtime";import{BACKGROUND_WIDTHS as OPe,SettingsBackgroundWidth as yV,SettingsContentWidth as SV}from"efficient-easel/panel";var wV="Background width",CV="Content width";var Cp=e=>i(Va[e==="content"?"page":"full"]),K_="The width of every section's background.",V_="The width of every section's content.";function q_({value:e,changed:o,detail:t,onChange:r,onReset:a,hint:n,labelId:s}){return Jg(yV,{value:e,changed:o,detail:t,onChange:r,onReset:a,hint:n?i(n):void 0,labelId:s,words:{label:i(wV),full:Cp("full"),content:Cp("content")},resetWords:de()?.panel})}function Y_({mode:e,px:o,max:t=uo.max,min:r=uo.min,changed:a,detail:n,fullClosed:s,onMode:l,onPx:d,onReset:c,hint:f,labelId:u,length:p}){let h=i(CV),I=p?.grid.min??r,g=p?.grid.max??t,C=e!=="full"?Jg(Zo,{min:I,max:g,step:p?.grid.step??uo.step,value:Math.min(Math.max(o,I),g),onChange:d,...p?{suffix:p.unit,units:p.units}:{suffix:"px"},ariaLabel:h}):null;return Jg(SV,{mode:e,onMode:l,number:C,changed:a,detail:n,fullClosed:s,onReset:c,hint:f?i(f):void 0,labelId:u,words:{label:h,full:Cp("full"),content:Cp("content")},resetWords:de()?.panel})}import{jsx as B1}from"react/jsx-runtime";import{TextStyleItem as R9,TextStylesGroup as L9}from"efficient-easel/text-styles";import{jsx as T9}from"react/jsx-runtime";import{useState as P9}from"react";import{TextStylesList as E9}from"efficient-easel/text-styles";import{usePreviewDevice as O9}from"efficient-easel/draw/client";import{defaultTextStyles as S1,textStyleCaseCss as y9}from"efficient-easel/text-styles/model";import{resolveViewValue as w1}from"efficient-easel/draw";import{VIEW_DESKTOP_MIN as X_,VIEW_TABLET_MIN as Z_}from"efficient-easel/draw";var vp=.02,J_=`(min-width: ${Gr}px) and (max-width: ${X_-vp}px)`,xi=`(max-width: ${Gr-vp}px)`,kp=`(min-width: ${Z_}px) and (max-width: ${X_-vp}px)`,Tp=`(max-width: ${Z_-vp}px)`;import{textStyleCaseCss as vV,textStyleCaseOfCss as kV,viewKeyAt as n1}from"efficient-easel/draw";function As(e){return!e||typeof e!="object"||Array.isArray(e)?null:e}function Rs(e,o){return As(e?.[o])??{}}function Pp(e,o,t){let r=Rs(e,o);return As(K(r,t))??{}}function Ep(e,o,t,r){let{[t]:a,...n}=Rs(e,o),s=r?{...n,[t]:r}:n,{[o]:l,...d}=e;return Object.keys(s).length?{...d,[o]:s}:d}import{isLengthUnit as ab}from"efficient-easel/screen/lib/content/length-units";var bi="_partStyles",nb="data-sf-part-styled",Ls="data-sf-text-style",TV=/^(heading|body)-[1-7]$/;function rn(e){return typeof e=="string"&&TV.test(e)}var Op={heading:"heading-1",heading2:"heading-2",heading3:"heading-3",body:"body-1",label:"body-5"};function PV(e){if(!e)return null;for(let[o,t]of Object.entries(Op))if(t===e)return o;return null}function sb(e){if(rn(e.textStyle))return e.textStyle;let o=br(e.role);return o?Op[o]:void 0}var EV=[400,500,600,700],gi=["left","center","right","justify"],Qg=5,eb=1e3,OV=-5,_V=10,lb=0,ib=64,db=2,Q_={size:{min:Qg,max:eb,step:1},sizeTablet:{min:Qg,max:eb,step:1},sizePhone:{min:Qg,max:eb,step:1},padding:{min:lb,max:ib,step:db}},AV=.05,RV=.01,LV=["line","letter"],FV=.5,BV=2.5,DV=-1,NV=1,MV=0,HV=400,WV=[...new Set(Object.values(Wn))];function s1(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 QPe(e){return Rs(e,bi)}function yi(e,o){return Pp(e,bi,o)}function l1(e,o,t){return Ep(e,bi,o,UV(t).length?t:null)}function UV(e){return Object.entries(e).filter(([,o])=>o!==void 0)}function zV(e){return LV.includes(e)}var Ii=(e,o,t)=>Math.min(t,Math.max(o,e)),$V=["sizeUnit","sizeUnitTablet","sizeUnitPhone"];function ob(e){let o=n1("sizeUnit",e),t=$V.find(r=>r===o);if(!t)throw new Error(`a part stores no unit key ${o}`);return t}var gt={size:ob("desktop"),sizeTablet:ob("tablet"),sizePhone:ob("mobile"),paragraphSpacing:"paragraphSpacingUnit",padding:"paddingUnit"},i1=Object.values(gt);function lr(e,o){return ke(e[gt[o]])}function GV(e,o,t={}){if(i1.includes(e))return ab(o)&&o!=="px"?o:null;if($e(gt,e)&&lr(t,e)!=="px"){let r=tn(Number(o),2);return!Number.isFinite(r)||r<0||r===0&&e!=="padding"?null:r}if(zV(e)){let r=Math.round(Number(o));return!Number.isFinite(r)||r===0?null:Ii(r,OV,_V)}if(e==="lineHeight"){let r=Number(o);return Number.isFinite(r)?tn(Ii(r,FV,BV),3):null}if(e==="letterSpacing"){let r=Number(o);return Number.isFinite(r)?tn(Ii(r,DV,NV),4):null}if(e==="paragraphSpacing"){let r=Math.round(Number(o));return!Number.isFinite(r)||r<=0?null:Ii(r,MV,HV)}if($e(Q_,e)){let{min:r,max:a}=Q_[e],n=Math.round(Number(o));return Number.isFinite(n)?Ii(n,r,a):null}return e==="italic"?typeof o=="boolean"?o:null:e==="role"||e==="fontRole"?br(o)?o:null:e==="sizeToken"?cb(o)?o:null:e==="textStyle"?rn(o)?o:null:e==="alignPhone"||e==="alignTablet"?gi.includes(o)?o:null:o}var jV=["weight","size","sizeTablet","sizePhone","line","letter","lineHeight","letterSpacing","paragraphSpacing","padding"];function Fs(e){let o=null,t=r=>{o??={...e},delete o[r]};for(let r of jV){let a=e[r];a!==void 0&&!(typeof a=="number"&&Number.isFinite(a))&&t(r)}e.align!==void 0&&!gi.includes(e.align)&&t("align"),e.alignTablet!==void 0&&!gi.includes(e.alignTablet)&&t("alignTablet"),e.alignPhone!==void 0&&!gi.includes(e.alignPhone)&&t("alignPhone"),e.textStyle!==void 0&&!rn(e.textStyle)&&t("textStyle"),e.sizeToken!==void 0&&!cb(e.sizeToken)&&t("sizeToken"),e.fontRole!==void 0&&!br(e.fontRole)&&t("fontRole");for(let r of i1)e[r]!==void 0&&!ab(e[r])&&t(r);return o??e}function cb(e){if(!e||typeof e!="object")return!1;let{step:o,px:t,stepPhone:r,pxPhone:a,fluid:n}=e,s=d=>typeof d=="number"&&Number.isFinite(d)&&d>0,l=d=>typeof d=="string"&&WV.includes(d);return l(o)&&s(t)&&(r===void 0||l(r))&&(a===void 0||s(a))&&(n===void 0||KV(n,t))}function KV(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 fb(e){return e?.pxPhone&&cb(e)?{step:e.stepPhone??e.step,px:e.pxPhone}:null}function d1({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 VV=[["font","role"],["font","fontRole"],["role","textStyle"],["line","lineHeight"],["letter","letterSpacing"]];function qV(e){let o=[];for(let[t,r]of VV)t===e?o.push(r):r===e&&o.push(t);return o}function an(e,o,t,r){let a={...yi(e,o)},n=r==null?null:GV(t,r,a);if(n===null)delete a[t];else{a[t]=n;for(let s of qV(t))delete a[s]}return l1(e,o,a)}function c1(e,o){return l1(e,o,{})}function YV(e){return kV(e)??"none"}function XV(e){return vV(e)??""}var e1={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 ZV(e,o){return br(e.role)||(o?.blockDrawsStyle?null:PV(e.textStyle))}function f1(e,o){return e==="Text"&&o==="text"}var JV={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 QV(e){let o=Wn[e],t=K(JV,o);return t?`var(--size-${o}, ${t})`:`var(--size-${o})`}function Si(e){let o={};return typeof e.lineHeight=="number"?o.lineHeight=e.lineHeight:e.line&&(o.lineHeight=tn(e9+e.line*AV,3)),typeof e.letterSpacing=="number"?o.letterSpacingEm=e.letterSpacing:e.letter&&(o.letterSpacingEm=tn(e.letter*RV,4)),o}var e9=1,on="--sf-part-para";function o9(e){e=Fs(e);let o={};if(typeof e.sizePhone=="number"&&e.sizePhone>0)o.fontSize=We(e.sizePhone,lr(e,"sizePhone"));else{let r=fb(e.sizeToken);if(r)o.fontSize=d1(r);else{let a=Ap(e);a!==void 0&&(o.fontSize=We(a,lr(e,"sizeTablet")))}}let t=e.alignPhone??_p(e);return t&&(o.textAlign=t),o}function _p(e){return e.alignTablet&&e.alignTablet!==e.align?e.alignTablet:void 0}function Ap(e){let o=e.sizeTablet!==void 0&&lr(e,"sizeTablet")!==lr(e,"size")?e.sizeTablet:wr("textSize",e.size,e.sizeTablet,void 0).tablet;return o&&o>0?o:void 0}function t9(e){let o=Fs(e),t={},r=Ap(o);r!==void 0&&(t.fontSize=We(r,lr(o,"sizeTablet")));let a=_p(o);return a&&(t.textAlign=a),t}function p1(e,o){if(o==="desktop")return;let t=Fs(e);return(o==="mobile"?_p(t):void 0)??t.align}function r9(e,o){if(o==="desktop")return e;let t=Fs(e),r=Ap(t),a=_p(t);if(o==="tablet"){let l=e;return r!==void 0&&(l={...l,size:r,sizeUnit:t[gt.sizeTablet]}),a&&(l={...l,align:a}),l}let n=e;if(typeof t.sizePhone=="number"&&t.sizePhone>0)n={...n,size:t.sizePhone,sizeUnit:t[gt.sizePhone]};else{let l=fb(t.sizeToken);l?n={...n,size:void 0,sizeToken:l}:r!==void 0&&(n={...n,size:r,sizeUnit:t[gt.sizeTablet]})}let s=t.alignPhone??a;return s&&(n={...n,align:s}),n}function pb(e,o,t){return mb(r9(e,o),Rp,t)}function ub(e){return n1("size",e)}function u1(e,o){if(o==="desktop")return null;let t=Fs(e);if(o==="mobile"){if(fb(t.sizeToken))return null;let r=Ap(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 m1(e,o){let t=ub(o);if(!$e(e,t))return e;let r={...e};return delete r[t],r}function e0e(e,o,t){let r=pb(m1(e,o),o,t);return{fontFamily:r.fontFamily,fontSize:r.fontSize}}function mb(e,o,t){e=Fs(e);let r=ZV(e,t),a=Si(e),n=e.size?We(e.size,lr(e,"size")):e.sizeToken?d1(e.sizeToken):r?QV(r):"";return{fontFamily:e.font?l9(e.font):e.fontRole?`var(${e1[e.fontRole]})`:r?`var(${e1[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`:"",[on]:e.paragraphSpacing?We(e.paragraphSpacing,lr(e,"paragraphSpacing")):"",textTransform:XV(e.case),textAlign:e.align??"",paddingTop:o1(e.padding,lr(e,"padding")),paddingBottom:o1(e.padding,lr(e,"padding")),color:a9(e.color),fontStyle:e.italic===!0?"italic":e.italic===!1?"normal":""}}var a9=e=>cs(e),o1=(e,o)=>e===void 0?"":We(e,o),tn=(e,o)=>Number(e.toFixed(o));function o0e(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:n9(Number.parseInt(e.fontWeight,10)),lineRatio:Number.isFinite(r)?tn(r/t,3):1.2,letterEm:Number.isFinite(a)?tn(a/t,4):0,align:s9(e.textAlign),case:YV(e.textTransform),paddingPx:Number.isFinite(n)?Math.round(n):0}}function n9(e){return Number.isFinite(e)?EV.reduce((o,t)=>Math.abs(t-e)<Math.abs(o-e)?t:o):400}function s9(e){for(let o of gi)if(o===e)return o;return e==="end"?"right":"left"}function t0e(e,o){let t=t1(e);if(!t)return"";for(let r of $r)if(t1(o(r.cssVar))===t)return r.key;return""}var t1=e=>(e.split(",")[0]??"").replace(/["']/g,"").replace(/\s+/g," ").trim().toLowerCase();function l9(e){let o=Hn(e);return o?`var(${o.cssVar})`:""}function r0e(e,o,t,r){return!o||Ag(o)?.nodeId!==e?null:t.find(a=>r(a.getAttribute("class")))??t[0]??null}function i9(e,o){return As(K(e,o))??{}}function a0e(e,o,t=()=>Rp,r=l=>l,a=f9,n="desktop",s=()=>!1){let l=0;for(let{element:d,partId:c}of e){let f=Ag(c)?.propKey;if(!f)continue;let u=i9(o,r(f)),p=pb(u,n,{blockDrawsStyle:s(f)});rn(u.textStyle)?d.setAttribute?.(Ls,u.textStyle):d.removeAttribute?.(Ls);let h=tb.some(g=>d.style[g]),I=!1;for(let[g,C]of Object.entries(p))m9(d,g,C),C&&(I=!0);if(h||tb.some(g=>p[g]))for(let g of d9(d,a))for(let C of tb)g.style[C]=p[C]??"";I&&(l+=1)}return l}function d9(e,o){let t=Os(e.textContent??""),r=[],a=e;for(let n=0;n<c9&&o(a);n+=1){let s=a.parentElement;if(!s||Os(s.textContent??"")!==t)break;r.push(s),a=s}return r}var c9=8;function f9(e){let o=e;return typeof window>"u"||!o?.ownerDocument?!1:window.getComputedStyle(o).display==="inline"}var Rp={fontKey:"",sizePx:16,weight:400,lineRatio:1,letterEm:0,align:"left",case:"none",paddingPx:0};function p9(e){if(!e||typeof e!="object")return null;let o={};rn(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=gt[t];o[t]!==void 0&&ab(e[r])&&(o[r]=e[r])}return Object.keys(o).length?o:null}function u9(e,o){let t=p9(e);if(!t)return{};let r=pb(t,o);return{...r.fontFamily?{fontFamily:r.fontFamily}:{},...r.fontSize?{fontSize:r.fontSize}:{}}}function h1(e){return rn(e?.textStyle)||!!e?.role||typeof e?.size=="number"&&e.size>0}function n0e(e,o,t){if(!e||typeof e!="object")return{};let r=lc(e.role,o,Wn)??{},a=o.sized?u9(m1(e,t),t):{};return{...r,...a}}function s0e(e,o,t){t.fontFamily&&e.fontFamily===t.fontFamily&&(e.fontFamily=o.fontFamily),t.fontSize&&e.fontSize===t.fontSize&&(e.fontSize=o.fontSize)}function m9(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===on&&(t?a.setAttribute?.(r1,""):a.removeAttribute?.(r1))}var r1="data-sf-part-para",h9=Object.keys(mb({},Rp)),rb=new Set(["color","overflowWrap",on,"fontStyle"]),tb=h9.filter(e=>!rb.has(e));function x1(e,o,t,r=l=>l,a=()=>!1,n=()=>null,s=[]){let l=new Map;for(let u of e){let p=Es(u.key,u.row);for(let h of u.texts){let I=l.get(h);I?(I.keys.add(u.key),I.partKeys.add(p)):l.set(h,{keys:new Set([u.key]),partKeys:new Set([p])})}}let d=new Map;for(let u of new Set([...Object.keys(o),...s])){if(!x9(u))continue;let p=a1(t,u,As(o[u])??{},!1,n(u));p&&d.set(u,p)}let c=u=>{let p=r(u),h=n(p);if(!$e(o,p)&&!h)return null;let I=As(o[p])??{};return a1(t,u,I,a(u),h)},f=new Map;for(let[u,{keys:p,partKeys:h}]of l){let I=h.size===1?[...h][0]:p.size===1?[...p][0]:null;if(!I)continue;let g=c(I);g&&f.set(u,g)}for(let u of e){if(!u.keyed)continue;let p=c(Es(u.key,u.row));p&&d.set(u.key,p)}return f.size||d.size?{rules:f,kindRules:d,drawn:new Set(l.keys())}:null}function a1(e,o,t,r,a){let n=mb(t,Rp,{blockDrawsStyle:r}),s=t9(t),l=o9(t),d=rn(t.textStyle)?t.textStyle:void 0;return!Object.values(n).some(Boolean)&&!Object.keys(s).length&&!Object.keys(l).length&&!d&&!a?null:{stamp:I9(e,o),declarations:n,...Object.keys(s).length?{tablet:s}:{},...Object.keys(l).length?{phone:l}:{},...d?{textStyle:d}:{},...a?{motion:a}:{}}}function x9(e){return e.startsWith("@")}function hb(e,o){return e?.kindRules.get(o)??null}function I9(e,o){let t=r=>r.replace(/[^A-Za-z0-9_-]+/g,"-");return`${t(e)}~${t(o)}`}function xb(e){return e?{tablet:J_,phone:xi}:{tablet:kp,phone:Tp}}function I1(e,{inBox:o=!1}={}){let{tablet:t,phone:r}=xb(o),a=[],n=new Set,s=l=>{let{stamp:d,declarations:c}=l;if(n.has(d))return;n.add(d);let f=Object.entries(c).filter(([,w])=>w!==""),u=w=>w.map(([T,y])=>`${g9(T)}: ${y}`).join("; "),p=`[${nb}="${d}"]`,h=f.filter(([w])=>!rb.has(w)),I=f.filter(([w])=>rb.has(w));h.length&&a.push(`${p}, *:has(> ${p}) { ${u(h)} }`),I.length&&a.push(`${p} { ${u(I)} }`),c[on]&&(a.push(`*:has(> ${p}) { ${on}: ${c[on]} }`),a.push(...Lp(p,`*:has(> ${p})`)));let g=Object.entries(l.tablet??{}).filter(([,w])=>w!=="");g.length&&a.push(`@media ${t} { ${p}, *:has(> ${p}) { ${u(g)} } }`);let C=Object.entries(l.phone??{}).filter(([,w])=>w!=="");C.length&&a.push(`@media ${r} { ${p}, *:has(> ${p}) { ${u(C)} } }`)};for(let l of e.rules.values())s(l);for(let l of e.kindRules.values())s(l);return a.join(`
|
|
3
|
-
`)}function Lp(e,o){let t=`var(${on})`,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 g9=e=>e.replace(/[A-Z]/g,o=>`-${o.toLowerCase()}`);function g1(e,o){if(!e)return null;let t=Os(o),r=e.rules.get(t);if(r)return r;if(t.length<b9||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 b9=8;function b1(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 Ib=e=>e==="sentence"?"none":void 0,C1=["font","color","size","sizeTablet","sizePhone","weight","italic","lineHeight","lineHeightTablet","lineHeightPhone","letterSpacing","letterSpacingTablet","letterSpacingPhone","paragraphSpacing","paragraphSpacingTablet","paragraphSpacingPhone","letterCase","largestSize","largestSizeTablet","largestSizePhone"],Bs=["desktop","tablet","phone"],nn=(e,o)=>we(e,o);function yb(e,o,t,r=$n()){return w1("textSize",o,e.sizeTablet,e.sizePhone,r)[t]}var S9=[["lineSpacing","lineHeight","line"],["letterSpacing","letterSpacing","letter"]];function gb(e){for(let[o,t,r]of S9)for(let a of Bs)if(e===nn(o,a))return{key:we(t,a),view:a,spacing:r};return{key:e,view:"desktop",spacing:null}}function ir(e){let o={};for(let t of C1)e[t]!==void 0&&(o[t]=e[t]);return o}function Sb(e,o){let{auto:t,...r}=e,a=new Set(o??[]),n=C1.filter(s=>a.has(s)&&e.values[s]===void 0);return n.length?{...r,auto:n}:r}function v1(e){let o=e.fonts,t=e.sizes,r=e.typography,a=ik(e.compression),n={"heading-1":{font:Se(o.heading),size:q(t.headingLarge),weight:q(r.weight),lineHeight:a.lineHeight,letterSpacing:a.letterSpacing,letterCase:Ib(r.case),largestSize:q(r.maxPx)},"heading-2":{font:Se(o.heading2),size:q(t.headingMedium),weight:q(r.weight2),lineHeight:a.lineHeight,letterSpacing:a.letterSpacing,letterCase:Ib(r.case2)},"heading-3":{font:Se(o.heading3),size:q(t.headingSmall),weight:q(r.weight3),lineHeight:a.lineHeight,letterSpacing:a.letterSpacing,letterCase:Ib(r.case3)},"body-1":{font:Se(o.body),size:q(t.body)},"body-5":{font:Se(o.label),size:q(t.label)}};return S1().map(({id:s,kind:l,name:d})=>({id:s,kind:l,name:d,values:ir(n[s]??{})}))}function wb(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=>Sb({...o,values:ir(o.values??{})},Array.isArray(o.auto)?o.auto:void 0)):null}function
|
|
4
|
-
`)}function C9(e,o,t,r){let a=e.values,n=wr("textSize",a.size,a.sizeTablet,a.sizePhone),s=wr("textSize",a.largestSize,a.largestSizeTablet,a.largestSizePhone),l=wr("same",a.lineHeight,a.lineHeightTablet,a.lineHeightPhone),d=wr("same",a.letterSpacing,a.letterSpacingTablet,a.letterSpacingPhone),c=wr("spacing",a.paragraphSpacing,a.paragraphSpacingTablet,a.paragraphSpacingPhone),f=w1("textSize",a.size,a.sizeTablet,a.sizePhone,$n()),u=v9[e.id],p=[];for(let[h,I]of[["tablet",kp],["phone",Tp]]){let g=[],C=[],w=f[h],T=s[h],y=n[h]===void 0&&T===void 0||w===void 0?void 0:T===void 0?w:Math.min(w,T);y!==void 0&&C.push(`font-size: ${y}px`);let b=[];l[h]!==void 0&&b.push(`line-height: ${l[h]}`),d[h]!==void 0&&b.push(`letter-spacing: ${d[h]}em`),e.kind==="body"&&C.push(...b),c[h]!==void 0&&C.push(`--sf-part-para: ${c[h]}px`),C.length&&g.push(`${o} { ${C.join("; ")} }`),e.kind==="heading"&&b.length&&g.push(`${o}, ${t}:is(h1, h2, h3, h4), ${r}:is(h1, h2, h3, h4) { ${b.join("; ")} }`),c[h]!==void 0&&g.push(`*:has(> ${r}) { --sf-part-para: ${c[h]}px }`),c[h]!==void 0&&!a.paragraphSpacing&&g.push(...Lp(`:is(${o})`,`*:has(> ${r})`)),y!==void 0&&u&&g.push(`.sf-themed-content { --size-${u}: ${y}px !important }`),g.length&&p.push(`@media ${I} { ${g.join(" ")} }`)}return p}var v9={"heading-1":"headingLarge","heading-2":"headingMedium","heading-3":"headingSmall","body-1":"body","body-5":"label"};function C0e(e){return e!==!0&&e!==!1?"":`em.text-accent { font-style: ${e?"italic":"normal"} }`}function _1(e){return e?Op[e]:void 0}function vb(e){let o=Si(e);return ir({font:e.font,color:e.color===void 0?void 0:rt(e.color),size:e.size,weight:e.weight,italic:e.italic,lineHeight:o.lineHeight,letterSpacing:o.letterSpacingEm,paragraphSpacing:e.paragraphSpacing,letterCase:e.case})}function A1(e){return Object.keys(vb(e)).length>0}function R1({saved:e,old:o,styleId:t,values:r}){let a=k1(e);return{saved:k9(a,t,r),old:o}}function k9(e,o,t){return e.map(r=>r.id===o?Sb({...r,values:ir({...r.values,...t})},r.auto):r)}var L1=["font","color","size","weight","emphasis","lineSpacing","letterSpacing","paragraphSpacing","letterCase","largestSize"],_9=["size","lineSpacing","letterSpacing","letterCase"],A9=500,kb=$r.map(e=>({value:e.key,label:e.label,family:`var(${e.cssVar})`,italic:e.italicLoaded}));function F1({saved:e,old:o,colours:t,colourNameOf:r,sizeOf:a,onChange:n,openId:s,onOpenChange:l,readOnly:d=!1,withoutSize:c=!1}){let f=O9(),[u,p]=P9(null),h=Br(e,o),I=hc(f),g=O1(h,a,I);return T9(E9,{styles:g,onChange:C=>n(T1({saved:e,old:o,cur:g,next:C,sizeOf:a,panelView:I})),fonts:kb,colours:t,colourNameOf:r,settings:c?L1.filter(C=>C!=="size"):L1,auto:_9,openId:s===void 0?u:s,onOpenChange:l??p,readOnly:d,device:I,fallback:C=>{let w=h.find(y=>y.id===(C.kind==="heading"?"heading-1":"body-1")),T={};return w?.values.font&&C.id!==w.id&&(T.font=w.values.font),C.kind==="heading"&&(T.weight=A9),T}})}var D1=["font","size","weight","emphasis"],F9=500;function B9({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:i("Emphasis"),values:a}}function D9(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 N1(e){let{headingWeight:o,open:t,onOpenChange:r,onChange:a,withoutSize:n=!1}=e,s=B9(e);return B1(L9,{label:i("Emphasis"),children:B1(R9,{style:s,fonts:kb,settings:n?D1.filter(l=>l!=="size"):D1,auto:["size"],fallback:()=>({weight:o??F9}),open:t,onOpenChange:r,onChange:l=>D9(s,l).forEach(a)})})}import{viewKeyAt as z1}from"efficient-easel/draw";import{shownUnitAt as z9,unitKeyOnWrite as $9}from"efficient-easel/screen/lib/content/length-units";import{convertRowLength as N9,rowUnits as M9,unitPickPatch as H9}from"efficient-easel/screen/lib/content/length-units";import{viewKeyAt as W9}from"efficient-easel/draw";var U9=["cornerRadius","siteWidth","siteGutter","siteGutterPhone","blockGap","blockGapPhone"],Fp={cornerRadius:{number:"corner_radius_px",kind:"radius",grid:ak,tier:"desktop"},siteWidth:{number:"site_width",kind:"size",grid:uo,tier:"desktop"},siteGutter:{number:"site_gutter",kind:"spacing",grid:Go,tier:"desktop"},siteGutterPhone:{number:"site_gutter_phone",kind:"spacing",grid:Ht,tier:"mobile"},blockGap:{number:"block_gap",kind:"gap",grid:xt,tier:"desktop"},blockGapPhone:{number:"block_gap_phone",kind:"gap",grid:xt,tier:"mobile"}};function Bp(e){return{number:Fp[e].number,unit:Gv[`${e}Unit`]}}function M1(e,o,t){let r=ke(t),{number:a,unit:n}=Bp(e);return{[a]:o,[n]:o===null||r==="px"?null:r}}function Dp(e,o,t,r){let{kind:a,grid:n,tier:s}=Fp[e],l=ke(t),d=ke(r);return l===d?o:N9(o,l,d,s,{kind:a},n)}function H1(e,o,t,r){let{number:a,unit:n}=Bp(e),s=H9({[a]:o},l=>Dp(e,l,t,r),n,ke(r),"px");return{[a]:s[a],[n]:s[n]??null}}function W1(e,o){let{kind:t,grid:r}=Fp[e];return $v(t,ke(o),r)}function U1(e){return M9({kind:Fp[e].kind},qa)}function Tb(e,o){let t=W9(e,o);if(!U9.includes(t))throw new Error(`no site length row ${t}`);return t}function wi(e,o,t,r,a){let{siteLengthUnits:n,setSiteLengthUnits:s}=he(),l=`${e}Unit`,d=n[l],c=z9({n:a?.figure??null,u:a?.unit??null,[z1("n","mobile")]:o,[z1("u","mobile")]:d??null},{n:"n"},"u","mobile"),f=I=>s({[l]:I==="px"?null:I}),u=I=>{t(I);let g=$9(l,d,c,"px",I===null);l in g&&f(g[l]==null?null:ke(g[l])),r(M1(e,I,c),I===null)},p=I=>{let g=ke(I);if(g===c||(f(g),o===null))return;let C=H1(e,o,c,g);t(C[Bp(e).number]),r(C,!0)},h=a?a.unit===c?a.figure:Dp(e,a.figure,a.unit,c):null;return{length:{unit:c,grid:W1(e,c),units:{options:U1(e),onChange:p,label:i("Unit")}},write:u,rest:h,shown:I=>Dp(e,I,"px",c)}}import{EmptyState as mq,SliderGroup as hq,Tabs as xq,Tooltip as dOe,tabButtonId as Iq,tabPanelId as gq}from"efficient-shell/ui";import{ContrastIcon as bq,SettingsIcon as yq,TypeIcon as Sq}from"efficient-easel/icons";function $1(e){switch(e.status){case"saved":return null;case"failed":return{msg:i("Not saved. Try again."),tone:"error"};case"skipped":switch(e.reason){case"empty":return null;case"no-token":return{msg:i("Not saved. Reload the page."),tone:"error"};case"template":return{msg:i("Templates keep their look. Press Done."),tone:"success"}}}}import{jsx as _b}from"react/jsx-runtime";import{ListIcon as tq,PaddingTopIcon as rq}from"efficient-easel/icons";import{jsx as Np}from"react/jsx-runtime";import{SettingsDefaultReset as G9,SettingsField as j9,SettingsSegmented as K9}from"efficient-easel/panel";import{WidthIcon as V9}from"efficient-easel/icons";function G1({value:e,resolved:o,onChange:t,label:r="Width",labelId:a,followsLabel:n,hint:s}){let l=e===void 0,d=l?o:e,c=i(r);return Np(j9,{label:c,labelId:a,icon:Np(V9,{}),value:l?n:void 0,changed:!l,action:Np(G9,{words:de()?.panel,label:c,changed:!l,onReset:()=>t(void 0)}),hint:s,children:Np(K9,{options:[{label:i(Va.full),id:"full"},{label:i(Va.page),id:"content"}],value:d,ariaLabel:c,onChange:t})})}import{HEADER_TYPE as Pb,FOOTER_TYPE as q9}from"efficient-easel/draw";var Y9=new Set(["Hero","HeroSingle","IntroBleed"]),j1={min:56,max:140,default:88},iEe={min:0,max:120,step:2,default:32},dEe=`var(--sf-header-h, ${j1.default}px)`,X9="--sf-header-set-h",cEe="--sf-header-h",fEe=`var(${X9}, ${j1.default}px)`,pEe="sf-header-clearance",uEe="sf-sticky-underheader";function Z9(e){return e?.find(o=>o?.type&&o.type!==Pb)??null}function K1(e){let o=Z9(e)?.type;return!o||!Y9.has(o)}function mEe(e){return!K1(e)}function hEe(e){return!!e?.some(o=>o?.type===Pb)}function xEe(e){return!e||e.length===0?!1:!e.some(o=>o?.type===Pb||o?.type===q9)}var J9=["auto","shared","own"],Eb="auto",Q9="topSpace",IEe="data-top-space";function eq(e){return J9.includes(e)?e:Eb}function oq(e,o){let t=eq(e?.props?.[Q9]);return t==="own"?!0:t==="shared"?!1:K1(o)}function gEe(e,o){return oq(e,o)?"own":null}function aq(){return{type:"custom",render:({value:e,onChange:o})=>_b(G1,{value:e==="full"?"full":e==="content"?"content":void 0,resolved:"content",label:"Page width",followsLabel:i("Follows the site"),hint:i("Whether this page sits on the site's content column, or runs edge to edge."),onChange:t=>o(t)})}}var nq=[{label:"Auto",value:"auto"},{label:"Shared",value:"shared"},{label:"Its own",value:"own"}],OEe={pageBackground:$O(),topSpace:st("Top space",_b(rq,{}),nq,Eb),widthChoice:aq()},Ci=["pageBackground","topSpace","widthChoice"],sq="Record type",Ob=new Map,V1=-1;function lq(e){V1!==bx()&&(Ob.clear(),V1=bx());let o=gx(),t=o.some(a=>a.key===e)?"":e,r=Ob.get(t);return r||(r=st(sq,_b(tq,{}),[...o.map(a=>({label:a.label,value:a.key})),...t?[{label:t,value:t}]:[]],Zr),Ob.set(t,r)),r}var q1=new WeakMap;function _Ee(e,o){if(!Nl()||gx().length<2||Mc in e)return e;let t=lq(Dl(o)),r=q1.get(e);if(r&&r.row===t)return r.fields;let a={[Mc]:t,...e};return q1.set(e,{row:t,fields:a}),a}import{previewFrame as wq}from"efficient-easel/screen/lib/document/preview-dom";var Y1="background";function X1(e){let o=Vo(Yn(e));return fs({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 Z1(e){return X1(e).filter(o=>o.key!==Y1)}function J1(e){let o=X1(e).filter(t=>t.key===Y1);return t=>{let r=rt(t);return o.find(a=>a.key===r)?.value??r}}import{useEasel as iq}from"efficient-easel/easel";function Mp({themeFromDocument:e,persist:o}){let{appState:t,dispatch:r}=iq(E=>E),{fonts:a,setFonts:n,sizes:s,setSizes:l,headingCompression:d,setHeadingCompression:c,headingTypography:f,setHeadingTypography:u,textStyles:p,setTextStyles:h}=he(),I=t.data,g=I.root?.props??{},C=e?wl(g.fonts):a,w=e?tk:s,T=e?Ra(g.headingCompression):d,y=e?dk(g.headingTypography):f,b={fonts:C,sizes:w,compression:T,typography:y},P=e?g.textStyles:p,H=E=>r({type:"replaceRoot",root:{...I.root,props:{...g,...E}},recordHistory:!0});return{fonts:C,sizes:w,compression:T,typography:y,old:b,saved:P,write:(E,W)=>{let O=Cb(Br(E.saved,E.old),E.old);e?H({textStyles:E.saved,fonts:O.fonts,headingCompression:O.compression,headingTypography:O.typography}):(h(E.saved),n(O.fonts),l(O.sizes),c(O.compression),u(O.typography)),o(P1(E,b),W)},writeRoot:H}}import{pictureShadowColor as Cq}from"efficient-easel/screen/lib/document/shadow-values";var Rb="sf-site-styles",vq="sf-site-styles-tabpanel",oA="text",Hs="basics",Q1="this-page-group",Ns=[{id:Hs,label:"Basics",icon:ve(yq,{})},{id:"theme",label:"Theme",icon:ve(bq,{})},{id:"text",label:"Text",icon:ve(Sq,{})}];function kq({themeFromDocument:e,persist:o}){let{appState:t,dispatch:r}=eA(c=>c),{theme:a,setTheme:n}=he(),s=t.data,l=s.root?.props??{},d=c=>{if(e){let f={...l,theme:c};r({type:"replaceRoot",root:{...s.root,props:f},recordHistory:!0})}else n(c);o({selected_preset:c.selected,theme_presets:c.themes})};return ve(__,{value:e?l.theme:a,onChange:d})}function Tq({themeFromDocument:e,persist:o}){let[t,r]=Lb(null),{theme:a,setFonts:n,setSizes:s,setHeadingTypography:l}=he(),d=Mp({themeFromDocument:e,persist:o}),{old:c,saved:f,writeRoot:u}=d,p=d.fonts,h=d.sizes,I=d.typography,g=E=>E.values.size??_q(Pq[E.id]??"body")??Eq[E.kind],C=E=>d.write(E),w=Z1(a),T=J1(a),y=E=>{let W={...p,accent:E};e?u({fonts:W}):n(W),o({accent_font:E})},b=E=>{s({...h,accent:E}),o({accent_size_px:E})},P=E=>{let W={...I,weightStrong:E};e?u({headingTypography:W}):l(W),o({heading_weight_strong:E})},H=E=>{let W={...I,italicStrong:E};e?u({headingTypography:W}):l(W),o({accent_italic:E})};return sn(Ms,{children:[ve(F1,{saved:f,old:c,colours:w,colourNameOf:T,sizeOf:g,onChange:C,openId:t===Ab?null:t,onOpenChange:r,withoutSize:e}),ve(N1,{font:p.accent,size:h.accent,weight:I.weightStrong,italic:I.italicStrong,headingWeight:I.weight,open:t===Ab,onOpenChange:E=>r(E?Ab:null),onChange:E=>{E.key==="font"?y(E.value):E.key==="size"?b(E.value):E.key==="weight"?P(E.value):H(E.value)},withoutSize:e})]})}var Ab="accent",Pq={"heading-1":"heading","heading-2":"heading2","heading-3":"heading3","body-1":"body","body-5":"label"},Eq={heading:32,body:14},Oq={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 _q(e){if(typeof document>"u")return null;let o=(wq()?.contentDocument??document).querySelector(Oq[e]);if(!o)return null;let t=parseFloat(getComputedStyle(o).fontSize);return Number.isFinite(t)?t:null}function Aq({themeFromDocument:e,persist:o}){let{appState:t,dispatch:r}=eA(p=>p),{cornerRadiusPx:a,setCornerRadiusPx:n}=he(),s=t.data,l=s.root?.props??{},d=l.cornerRadiusPx===void 0?nk[rk(l.cornerStyle)]:Jt(l.cornerRadiusPx),c=e?d:a,f=wi("cornerRadius",a,n,o),u=p=>r({type:"replaceRoot",root:{...s.root,props:{...l,...p}},recordHistory:!0});return ve(A_,{value:c,onChange:p=>{e?(u({cornerRadiusPx:p}),o({corner_radius_px:p})):f.write(p)},...e?{}:{length:f.length}})}function Rq({persist:e}){let{siteWidth:o,setSiteWidth:t,sectionBackgroundWidth:r,setSectionBackgroundWidth:a,sectionContentWidth:n,setSectionContentWidth:s}=he(),l=Fb(),d=wi("siteWidth",o??null,t,e);if(l!=="desktop")return null;let c=typeof o=="number"?o:d.shown(uo.default),f=d.write,u=h=>{a(h),e({section_background_width:h},!0)},p=h=>{s(h),e({section_content_width:h},!0)};return sn(Ms,{children:[ve(q_,{value:r??"full",changed:r!==null,detail:i("Full width"),onChange:u,onReset:()=>u(null),hint:K_}),ve(Y_,{mode:n??"content",px:c,min:uo.min,max:uo.max,changed:typeof o=="number"||n!==null,detail:`${i("Content width")} ${uo.default}px`,onMode:p,onPx:h=>f(h),onReset:()=>{p(null),f(null)},hint:V_,length:d.length})]})}function Lq({persist:e}){let{siteGutter:o,siteGutterPhone:t,setSiteGutter:r,setSiteGutterPhone:a,siteLengthUnits:n}=he(),s=G_(Fb(),{gutter:o,phone:t,gutterUnit:n.siteGutterUnit}),l=s?.key==="site_gutter_phone",d=wi(Tb("siteGutter",l?"mobile":"desktop"),s?.value??null,l?a:r,e);return s?ve(j_,{value:s.value,onChange:d.write,unsetPx:s.unsetPx,restsOn:d.shown(s.unsetPx),bounds:s.bounds,length:d.length}):null}function Fq({persist:e}){let{blockGap:o,blockGapPhone:t,setBlockGap:r,setBlockGapPhone:a,siteLengthUnits:n}=he(),s=N_(Fb(),{gap:o,phone:t}),l=s?.key==="block_gap_phone",d=s?.followsPx==null?null:{figure:s.followsPx,unit:ke(n.blockGapUnit)},c=wi(Tb("blockGap",l?"mobile":"desktop"),s?.value??null,l?a:r,e,d);return s?ve(M_,{value:s.value,onChange:c.write,followsPx:c.rest,followsUnit:c.length.unit,length:c.length}):null}function Bq({persist:e}){return sn(Ms,{children:[ve(Rq,{persist:e}),ve(Lq,{persist:e}),ve(Fq,{persist:e})]})}function Dq(e){return{card_shadow:e}}function Nq(e){return e===null?{shadow_color:null}:{shadow_color:Cq(e)}}function Mq(e){return{hover_effect:e}}function Hq({persist:e}){let{cardShadow:o,setCardShadow:t,shadowColor:r,setShadowColor:a,hoverEffect:n,setHoverEffect:s}=he();return sn(Ms,{children:[ve(R_,{value:o,onChange:l=>{t(l),e(Dq(l),!0)}}),ve(B_,{value:r,onChange:l=>{a(l),e(Nq(l),l===null)}}),ve(H_,{value:n,onChange:l=>{s(l),e(Mq(l),!0)}})]})}function Wq(e){return{photography_grayscale:e}}function Uq({persist:e}){let{photographyGrayscale:o,setPhotographyGrayscale:t}=he();return ve(U_,{value:o,onChange:r=>{t(r),e(Wq(r),!0)}})}function zq({persist:e}){return ve(Ms,{children:ve(Uq,{persist:e})})}function $q(e){return{share_button_on_posts:e}}function Gq({persist:e}){let{shareButtonOnPosts:o,setShareButtonOnPosts:t}=he();return ve(z_,{value:o,onChange:r=>{t(r),e($q(r),!0)}})}function Ws(){let{websiteName:e}=he();return e?.trim()||Uk}function Hp({themeFromDocument:e=!1,tokenRef:o,siteId:t,onNotify:r,tab:a,onTabChange:n,initialTab:s,revealPageGroup:l=!1,onPageGroupRevealed:d}){let{persist:c}=hs({themeFromDocument:e,tokenRef:o,siteId:t,onResult:C=>{let w=$1(C);w&&r?.(w.msg,w.tone)}}),[f,u]=Lb(s??Ns[0].id),p=a!==void 0,h=p?a:f,I=p?n??(()=>{}):u,g=Ns.find(C=>C.id===h)??Ns[0];return sn(hq,{children:[ve(Vq,{activeId:g.id,onSelect:I}),sn("div",{id:gq(Rb,g.id),className:vq,role:"tabpanel","aria-labelledby":Iq(Rb,g.id),children:[h===Hs&&sn(Ms,{children:[ve(Aq,{themeFromDocument:e,persist:c}),!e&&ve(Hq,{persist:c}),!e&&ve(Bq,{persist:c}),!e&&ve(zq,{persist:c}),!e&&ve(Gq,{persist:c}),ve(jq,{reveal:l,onRevealed:d})]}),h==="theme"&&ve(kq,{themeFromDocument:e,persist:c}),h==="text"&&ve(Tq,{themeFromDocument:e,persist:c})]})]})}function jq({reveal:e,onRevealed:o}){let[t,r]=Lb(!0),a=uq(o);return a.current=o,pq(()=>{if(!e)return;r(!0);let n=requestAnimationFrame(()=>{document.getElementById(Q1)?.scrollIntoView({block:"start"}),a.current?.()});return()=>cancelAnimationFrame(n)},[e]),ve(fq,{title:i("This page"),open:t,onToggle:r,id:Q1,children:ve(Kq,{})})}function Kq(){let{fields:e,values:o,readOnly:t,onChange:r}=dq(),a=Object.fromEntries(Ci.filter(n=>n in e).map(n=>[n,e[n]]));return Object.keys(a).length===0?ve(mq,{variant:"none",icon:!1,message:i("This page has no look of its own to set.")}):ve(cq,{fields:a,values:o,onChange:r,readOnly:t,tabs:!1,idPrefix:"this-page",ariaLabel:i("This page")})}function Vq({activeId:e,onSelect:o}){return ve("div",{className:"es-insp-tabs",children:ve(xq,{variant:"underline",block:!0,labelsFit:!0,"aria-label":i("Styles"),idPrefix:Rb,value:e,onChange:o,items:Ns.map(t=>{let r=i(t.label);return{id:t.id,icon:t.icon,label:r}})})})}import{InspectorIconButton as rY}from"efficient-easel/chrome";import{Button as dA,Dialog as aY,FormField as nY,Input as cA,PopupMenu as sY,PopupMenuItem as fA,toast as pA}from"efficient-shell/ui";import{LayersTree as lY,TreeGroupLabel as iY,TreeRow as uA,TreeRowAction as $p}from"efficient-easel/tree";import{AddIcon as dY,DuplicateIcon as cY,PageIcon as fY,SettingsIcon as pY}from"efficient-easel/icons";import{PagesIcon as uY}from"efficient-easel/rail";import{useEaselHost as mY}from"efficient-easel/screen/lib/host";import{useEaselSession as IA}from"efficient-easel/screen/lib/session-context";import{useCallback as Wp,useEffect as qq,useSyncExternalStore as Yq}from"react";import{useScreenDocument as nA}from"efficient-easel/screen/components/ScreenDocumentContext";var tA=new WeakMap;function vi(e){let o=tA.get(e);return o||(o={rows:null,loading:null,listeners:new Set},tA.set(e,o)),o}function Bb(e,o){e.rows=o;for(let t of e.listeners)t()}var Up=new Set;function zp(e,o){o?Up.add(e):Up.delete(e)}function rA(e){let o=vi(e),t=e.listPages().then(r=>Bb(o,Up.size?r.filter(a=>!Up.has(a.id)):r),()=>Bb(o,[])).finally(()=>{o.loading===t&&(o.loading=null)});return o.loading=t,t}var aA=()=>null,Xq=()=>()=>{};function ki(){let{adapter:e,ready:o}=nA(),t=Wp(l=>{let{listeners:d}=vi(e);return d.add(l),()=>d.delete(l)},[e]),r=Wp(()=>vi(e).rows,[e]),a=Yq(o?t:Xq,o?r:aA,aA);qq(()=>{if(!o)return;let l=vi(e);l.rows===null&&!l.loading&&rA(e)},[e,o]);let n=Wp(()=>o?rA(e):Promise.resolve(),[e,o]),s=Wp(l=>Bb(vi(e),l),[e]);return{rows:a,reload:n,setRows:s,getRows:r}}function Zq(e,o){return e?.find(t=>t.slug===o)?.label?.trim()||`/${o}`}function sA(){let{currentSlug:e}=nA(),{rows:o}=ki();return Zq(o,e)}import{canDuplicatePage as hY,DuplicatePageDialog as xY,uniqueSlug as mA}from"efficient-easel/page-copy";var hA="sf-editor-pages-collapsed-groups";function IY(){let e=IA(),{siteId:o,templateId:t}=xA(),r=to(e).pages;if(!(!r.duplicate||t))return(a,n)=>r.duplicate(a.id,{...n,...o?{siteId:o}:{}})}function gA({onNavigate:e,onClose:o,activeSurface:t,onPreviewSurface:r}){let a=IA().chrome?.pageRows,n=mY(),{adapter:s,capabilities:l,ready:d,currentSlug:c}=xA(),f=Ws(),{rows:u,reload:p,setRows:h,getRows:I}=ki(),[g,C]=da(""),[w,T]=da(!1),[y,b]=da(null),[P,H]=da(!1),[E,W]=da(""),O=eY(),D=IY(),[v,_]=da(null),[A,F]=da(()=>{if(typeof window>"u")return new Set;try{let M=window.localStorage.getItem(hA);return new Set(M?JSON.parse(M):[])}catch{return new Set}});Qq(()=>{try{window.localStorage.setItem(hA,JSON.stringify([...A]))}catch{}},[A]);let z=M=>F(Le=>{let ye=new Set(Le);return ye.has(M)?ye.delete(M):ye.add(M),ye}),$=iA(()=>jT(u??[]),[u]),X=g.trim().toLowerCase(),ee=M=>!X||M.toLowerCase().includes(X),Fe=M=>X?!0:!A.has(M),Oe=iA(()=>new Set((u??[]).map(M=>M.slug)),[u]),ze=()=>{if(l.pageCreationInAdminForm){n.send("storefront-editor:new-page");return}W(""),b(null),H(!0)},Ke=async()=>{let M=E.trim();if(!(!M||!d||w||!s.createPage)){T(!0),b(null);try{let Le=await s.createPage({slug:mA(M,Oe),title:M,layout:{}});await p(),H(!1),W(""),e(Le.slug)}catch{b(i("Couldn\u2019t add the page \u2014 please retry."))}finally{T(!1)}}},be=l.hasSiteSettings&&!!s.createPage,Te=async()=>{if(!(!d||w||!s.createPage)){T(!0),b(null);try{let M=await s.createPage(K0(i("New popup"),Oe));await p(),e(M.slug)}catch{b(i("Couldn\u2019t add the popup \u2014 please retry."))}finally{T(!1)}}},_e=oY(null),[Ne,ao]=da(null),yo=()=>{if(!be)return ze();if(Ne)return ao(null);let M=_e.current?.getBoundingClientRect();M&&ao({top:M.bottom+6,right:Math.max(8,window.innerWidth-M.right)})},ie=M=>{let Le=u??[],ye=s.deletePage;if(!d||w||!ye||Le.length<=1)return;let po=Le.findIndex(Ze=>Ze.id===M.id),Be=Le.filter(Ze=>Ze.id!==M.id),_t=M.slug===c;zp(M.id,!0),h(Be),b(null),_t&&Be[0]&&e(Be[0].slug);let hr=()=>{zp(M.id,!1);let Ze=I()??[];if(Ze.some(ya=>ya.id===M.id))return;let xr=[...Ze];xr.splice(Math.max(0,Math.min(po,xr.length)),0,M),h(xr)};pA.undoable(i("Deleted \u201C{name}\u201D",{name:M.label}),{actionLabel:i("Undo"),commit:async Ze=>{await ye(M.id,Ze),zp(M.id,!1)},undo:()=>{hr(),_t&&e(M.slug)},onFail:()=>{hr(),pA.error(i("Couldn\u2019t delete the page \u2014 please retry."))}})},Me=M=>n.send("storefront-editor:open-page",{slug:M}),Ve=M=>{if(!ee(M.label))return null;let Le=!t&&M.slug===c,ye=l.canDeletePagesInline&&(u??[]).length>1,po=Ba(M),Be=GT(M),_t=[...po?[{label:i("Dynamic"),tone:"info"}]:[],...Be?[{label:i("Lightbox"),tone:"success"}]:[],...M.draft?[{label:i("draft"),tone:"draft"}]:[]],hr=_t.length>0?_t:void 0,Ze=!!D&&hY(M),xr=Ze||l.pageCreationInAdminForm||ye?Ti(lA,{children:[Ze&&Pe($p,{kind:"plain",label:i("Duplicate \u201C{name}\u201D",{name:M.label}),disabled:w,onClick:()=>_(M),children:Pe(cY,{size:13})}),l.pageCreationInAdminForm&&Pe($p,{kind:"plain",label:i("Page settings for \u201C{name}\u201D",{name:M.label}),onClick:()=>Me(M.slug),children:Pe(pY,{size:13})}),ye&&Pe($p,{kind:"delete",label:i("Delete \u201C{name}\u201D",{name:M.label}),disabled:w,onClick:()=>ie(M),children:Pe(Db,{name:"trash",size:13,strokeWidth:1.7,rounded:!0})})]}):void 0;return Pe(uA,{icon:Pe(fY,{size:14}),name:M.label,selected:Le,onSelect:()=>e(M.slug),badge:hr,actions:xr,rowProps:{"data-page-slug":M.slug}},M.id)},J=(M,Le,ye)=>{let po=ye.filter(Boolean);if(po.length===0)return null;let Be=Fe(M);return Ti(Jq,{children:[Pe(iY,{count:po.length,countLabel:Uo("{n} page","{n} pages",po.length),expanded:Be,onToggle:()=>z(M),children:Le}),Be&&po]},M)},Ae=(a?.rows??[]).filter(M=>ee(M.label)).map(M=>{let Le=t===M.key;return Pe(uA,{icon:M.icon,name:M.label,selected:Le,onSelect:()=>r(M.key),badge:{label:i("Preview"),tone:"warning"},actions:Pe($p,{kind:"plain",label:i("Open the {name} in a new tab",{name:M.label}),onClick:()=>window.open(M.href,"_blank","noopener,noreferrer"),children:Pe(Db,{name:"external-link",size:13,strokeWidth:1.7,rounded:!0})}),rowProps:{"data-shop-surface":M.key}},M.key)}),ft=l.hasSiteSettings&&!!a,fo=(()=>{if(u===null)return null;let M=[],Le=!1;for(let ye of $){ft&&!Le&&ye.key.startsWith("system:")&&(M.push(J("shop",a.title,Ae)),Le=!0);let po=ye.key===wx||ye.label===Sx?i(ye.label):ye.label;M.push(J(ye.key,po,ye.rows.map(Ve)))}return ft&&!Le&&M.push(J("shop",a.title,Ae)),M})();return Ti("div",{className:"sf-pages",children:[Pe(tY,{icon:Pe(uY,{}),title:i("Pages"),context:f,actions:Pe(rY,{buttonRef:_e,label:be?i("Add"):i("New page"),hasPopup:be?"menu":void 0,expanded:be?Ne!==null:void 0,onClick:yo,children:Pe(dY,{size:15})})}),Ne&&Pe(sY,{portal:!0,style:{top:Ne.top,right:Ne.right},onClose:()=>ao(null),children:Ti("div",{role:"menu","aria-label":i("Add"),children:[Pe(fA,{role:"menuitem",onClick:()=>{ao(null),ze()},children:i("Page")}),Pe(fA,{role:"menuitem",disabled:w,onClick:()=>{ao(null),Te()},children:i("Popup")})]})}),Pe("div",{className:"sf-pages-find",children:Pe(cA,{type:"search",leftIcon:Pe(Db,{name:"search",size:14,rounded:!0}),placeholder:i("Search all pages\u2026"),value:g,onChange:M=>C(M.target.value),"aria-label":i("Search all pages")})}),y&&!P&&Pe("div",{className:"sf-note sf-note--error",role:"alert",children:y}),fo===null?Pe("div",{className:"sf-note",children:i("Loading\u2026")}):fo.some(Boolean)?Pe(lY,{ariaLabel:i("Pages"),className:"sf-scroll",children:fo}):Pe("div",{className:"sf-note",children:g.trim()?i("No pages match your search"):i("No pages yet. Add one with + above.")}),D&&v&&Pe(xY,{source:{title:v.label,slug:v.slug},taken:Oe,host:vc(),duplicate:M=>D(v,M),onClose:()=>_(null),onDuplicated:M=>{_(null),p(),e(M.slug)}},v.id),Pe(aY,{open:P,onClose:()=>H(!1),size:"sm",title:i("Add a page"),description:i("Give the new template page a name. It starts blank \u2014 add sections once it opens."),footer:Ti(lA,{children:[Pe(dA,{variant:"secondary",onClick:()=>H(!1),children:i("Cancel")}),Pe(dA,{onClick:()=>{Ke()},disabled:w||!E.trim(),loading:w,children:i("Add page")})]}),children:Pe(nY,{label:i("Page name"),htmlFor:O,hint:E.trim()?i("URL: /{slug}",{slug:mA(E,Oe)}):void 0,error:y??void 0,children:Pe(cA,{id:O,value:E,invalid:!!y,onChange:M=>W(M.target.value),onKeyDown:M=>{M.key==="Enter"&&Ke()},placeholder:i("e.g. About")})})})]})}import{jsx as SA}from"react/jsx-runtime";import{createContext as bY,useCallback as yY,useContext as SY,useMemo as wY,useState as CY}from"react";import{CanvasChromeContext as vY}from"efficient-easel/easel";import{useSelectHandler as kY}from"efficient-easel/draw/client";import{parseHexColor as gY}from"efficient-shell/format";var Gp=["chat-bubble-left-right","chat-bubble-oval-left-ellipsis","chat","megaphone","phone","sparkles"],Us=Gp[0];var ln="right";function jp(e){return Gp.includes(e??"")?e:Us}function bA(e){return e==="left"?"left":ln}function yA(e){return e&&gY(e)===e.toLowerCase()?e.toLowerCase():""}var wA="chat",Kp={enabled:!0,title:"",subtitle:"",greeting:"",launcherColor:"",launcherIcon:"",launcherPosition:ln,launcherLabel:"",showOnPhones:!0};function o_e(e){return{enabled:e.enabled,title:e.title,subtitle:e.subtitle,greeting:e.greeting,launcherColor:yA(e.launcherColor),launcherIcon:e.launcherIcon?jp(e.launcherIcon):"",launcherPosition:bA(e.launcherPosition),launcherLabel:e.launcherLabel??"",showOnPhones:e.showOnPhones!==!1}}var CA=bY({chat:Kp,setChat:()=>{},setSelected:()=>{},setSelectHandler:()=>{}});function t_e({children:e,chat:o=Kp,onChatChange:t}){let[r,a]=CY(!1),n=yY(c=>t?.(c),[t]),{select:s,setSelectHandler:l}=kY(),d=wY(()=>({selected:()=>r?wA:null,select:c=>c===wA&&s()}),[r,s]);return SA(CA.Provider,{value:{chat:o,setChat:n,setSelected:a,setSelectHandler:l},children:SA(vY.Provider,{value:d,children:e})})}var Vp=()=>SY(CA);import{jsx as Nb}from"react/jsx-runtime";import{DesktopIcon as TY,PhoneIcon as PY,TabletIcon as EY}from"efficient-easel/icons";import{VIEW_TIERS as OY,VIEW_TIER_LABEL as _Y}from"efficient-easel/draw";var AY={desktop:Nb(TY,{}),tablet:Nb(EY,{}),mobile:Nb(PY,{})},vA=OY.map(e=>({id:e,get label(){return i(_Y[e])},icon:AY[e]}));import{PreviewDeviceContext as Dfe}from"efficient-easel/draw/client";import{jsx as RY}from"react/jsx-runtime";import{createContext as LY,useCallback as kA,useContext as FY,useMemo as BY,useRef as DY}from"react";var NY=Object.fromEntries(Pc.map(e=>[e,{value:"",error:null}])),TA=LY({links:$k,rows:NY,canSave:!1,saveLink:async()=>({ok:!1,error:"There is no website to save to."}),openPanel:()=>{},setOpenHandler:()=>{}});function p_e({children:e,value:o}){let t=DY(()=>{}),r=kA(()=>t.current(),[]),a=kA(s=>{t.current=s},[]),n=BY(()=>({...o,openPanel:r,setOpenHandler:a}),[o,r,a]);return RY(TA.Provider,{value:n,children:e})}var Pi=()=>FY(TA);import{jsx as MY}from"react/jsx-runtime";import{createContext as HY,useContext as WY,useMemo as UY,useState as zY}from"react";var PA=HY(null);function x_e({children:e}){let[o,t]=zY(null),r=UY(()=>({surface:o,setSurface:t}),[o]);return MY(PA.Provider,{value:r,children:e})}function EA(){return WY(PA)??{surface:null,setSurface:()=>{}}}import{createPreviewSelectionContext as $Y}from"efficient-easel/draw/client";var Ei="Scrolling Bar",{Provider:b_e,useSelection:OA}=$Y("selectedHeroId"),y_e="data-sf-hero-ticker";function S_e(e){return`${e}::ticker`}function w_e(e){return!e||!e.endsWith("::ticker")?null:e.slice(0,-8)||null}var _A=["","","","","",""],AA="#ticker",Oi="strip",Mb={sectionAccent:Qt,line:!1};function GY(e){return(Array.isArray(e.tickerItems)?e.tickerItems:[]).map(o=>typeof o?.text=="string"?o.text:"").filter(o=>o.trim()!=="")}function Hb(e){return GY(e).length>0}function k_e(e){return e.showTicker!==!1&&Hb(e)}import{createPreviewSelectionContext as jY}from"efficient-easel/draw/client";var{Provider:E_e,useSelection:qp}=jY("selectedHeroPart");var LA=["one","side","stacked"];var __e={one:"One",side:"Side by side",stacked:"Stacked"};function Yp(e){return LA.includes(e)?e:"one"}function RA(e){return e==="one"?1:2}function Wb(e,o){if(LA.includes(e))return e;let t=Yp(o);return t==="side"?"stacked":t}function _i(e){let o=Yp(e.mediaLayout);return Math.max(RA(o),RA(Wb(e.mediaLayoutPhone,o)))}var dn=["media","image","image2"],cn={media:"Media",image:"Image",image2:"Image 2"},Ai={media:"heroMedia",image:"heroImage",image2:"heroImage2"};function Xp(e,o){return e==="image"&&_i(o)>1?"Image 1":cn[e]}var F_e="Video file",B_e="Upload a video file",D_e="AV1 file",N_e="Upload an AV1 file";function KY(e,o){return{field:"mediaType",is:e,default:o}}var VY=new Set(["HeroSingle"]),FA="heroPart";function qY(e,o){return{...o,[FA]:e}}function M_e(e,{parts:o={},onlyFor:t,fallback:r,rules:a}){let n={...e};for(let s of["image","video"])for(let l of t[s])n[l]=oo(n[l],KY(s,r));for(let[s,l]of Object.entries(a??{}))l&&(n[s]=oo(n[s],l));for(let s of dn)for(let l of o[s]??[])n[l]=qY(s,n[l]);return n}function YY(e){let o=e?.[FA];return dn.includes(o)?o:null}function BA(e,o){let t={};for(let[r,a]of Object.entries(e))YY(a)===o&&(t[r]=a);return t}function DA(e){if(!VY.has(e.type))return[];let o=[{part:"media",label:cn.media,depth:0}];return(e.props.mediaType??"image")!=="video"&&(o.push({part:"image",label:Xp("image",e.props),depth:1}),_i(e.props)>1&&o.push({part:"image2",label:Xp("image2",e.props),depth:1})),o}function Ri(e,o){return`${e}::${o}`}function NA(e){if(!e)return null;let o=e.lastIndexOf("::");if(o<=0)return null;let t=e.slice(o+2);return dn.includes(t)?{nodeId:e.slice(0,o),part:t}:null}var MA="data-sf-hero-part";import{jsx as Ee,jsxs as Ia,Fragment as oM}from"react/jsx-runtime";import{useEasel as cle,useRootFields as fle}from"efficient-easel/easel";import{Button as ple,EmptyState as ule}from"efficient-shell/ui";function HA({kind:e,pageName:o}){return{name:o?.trim()||i("This page"),kindLabel:Ba({kind:e})?i("Template"):i("Page")}}import{headWords as nM,InspectorHead as mle,InspectorIconButton as tM}from"efficient-easel/chrome";import{DuplicateIcon as hle,TrashIcon as xle}from"efficient-easel/icons";import{panelFieldsOf as Ile}from"efficient-easel/screen/lib/document/panel-fields";import{jsx as N,Fragment as xe,jsxs as ge}from"react/jsx-runtime";import{BlockBannerIcon as JY,BlockBoxIcon as QY,BlockButtonIcon as eX,BlockDividerIcon as UA,BlockFooterIcon as zA,BlockHeadingIcon as oX,BlockProductIcon as tX,BlockSocialIcon as rX,BlockTextIcon as aX,CardPaymentIcon as nX,ChatIcon as sX,AccountIcon as lX,GlobeIcon as iX,GridIcon as dX,ImageIcon as zb,MapIcon as cX,MediaIcon as fX,PageIcon as pX}from"efficient-easel/icons";import{jsx as Ub,Fragment as XY,jsxs as ZY}from"react/jsx-runtime";var WA=ZY(XY,{children:[Ub("circle",{cx:"9",cy:"20",r:"1.3"}),Ub("circle",{cx:"18",cy:"20",r:"1.3"}),Ub("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 uX={header:ge(xe,{children:[N("rect",{x:"3",y:"5",width:"18",height:"14",rx:"2"}),N("path",{d:"M3 9.5h18"})]}),social:ge(xe,{children:[N("circle",{cx:"6",cy:"12",r:"2.5"}),N("circle",{cx:"18",cy:"6",r:"2.5"}),N("circle",{cx:"18",cy:"18",r:"2.5"}),N("path",{d:"M8.2 10.8l7.6-3.6M8.2 13.2l7.6 3.6"})]}),ticker:ge(xe,{children:[N("rect",{x:"3",y:"8.5",width:"18",height:"7",rx:"2"}),N("path",{d:"M6 12h3.5M11.5 12h2M15.5 12h2.5"})]}),FooterLogo:ge(xe,{children:[N("path",{d:"M4 15.5h6M4 18h4"}),N("path",{d:"M14 8.5l3 7 3-7"})]}),FooterMenu:N("path",{d:"M6 7h12M6 11h12M6 15h8M6 19h8"}),FooterGroup:ge(xe,{children:[N("rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",strokeDasharray:"3 2.5"}),N("path",{d:"M8 9h8M8 13h8M8 16h5"})]}),FooterText:N("path",{d:"M5 7h14M5 12h14M5 17h9"}),FooterEmailSignup:ge(xe,{children:[N("rect",{x:"3",y:"6",width:"18",height:"12",rx:"2"}),N("path",{d:"M3.5 7l8.5 6 8.5-6"})]}),SearchBlock:ge(xe,{children:[N("circle",{cx:"11",cy:"11",r:"6"}),N("path",{d:"M20 20l-4.2-4.2"})]}),CartBlock:WA,CountrySwitchBlock:ge(xe,{children:[N("circle",{cx:"12",cy:"12",r:"8.5"}),N("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:ge(xe,{children:[N("circle",{cx:"12",cy:"12",r:"8.5"}),N("path",{d:"M12 3.5v17M12 5.5l6 6M12 10.5l5.2 5.2M12 15.5l2.8 2.8"})]}),LegalLineBlock:ge(xe,{children:[N("path",{d:"M3 9h18"}),N("path",{d:"M3 14h8M14 14h2M18 14h3"})]}),Hero:ge(xe,{children:[N("rect",{x:"3",y:"4",width:"18",height:"16",rx:"2"}),N("path",{d:"M7 13.5h7M7 16.5h10"})]}),HeroSlide:ge(xe,{children:[N("rect",{x:"3",y:"5",width:"18",height:"14",rx:"2"}),N("path",{d:"M7 15h6M16 9.5h.01M9.5 12l-2.5 3"})]}),HeroSingle:ge(xe,{children:[N("rect",{x:"3",y:"4",width:"18",height:"16",rx:"2"}),N("path",{d:"M10.5 8.5l4 2.5-4 2.5z"}),N("path",{d:"M7 17h7"})]}),Collections:ge(xe,{children:[N("rect",{x:"3",y:"5",width:"4.6",height:"14",rx:"1.3"}),N("rect",{x:"9.7",y:"5",width:"4.6",height:"14",rx:"1.3"}),N("rect",{x:"16.4",y:"5",width:"4.6",height:"14",rx:"1.3"})]}),CollectionCard:ge(xe,{children:[N("rect",{x:"6",y:"4",width:"12",height:"16",rx:"2"}),N("path",{d:"M9 15h6M9 17.5h4"})]}),AlloyWheelsListing:ge(xe,{children:[N("path",{d:"M3 5h5M3 9h5M3 13h5M3 17h5"}),N("rect",{x:"11.5",y:"5",width:"4.2",height:"5",rx:"1"}),N("rect",{x:"17.3",y:"5",width:"4.2",height:"5",rx:"1"}),N("rect",{x:"11.5",y:"12",width:"4.2",height:"5",rx:"1"}),N("rect",{x:"17.3",y:"12",width:"4.2",height:"5",rx:"1"})]}),CatalogFilterBar:ge(xe,{children:[N("path",{d:"M3 7h9M15.5 7H21"}),N("circle",{cx:"13.5",cy:"7",r:"1.7"}),N("path",{d:"M3 12h4M10.5 12H21"}),N("circle",{cx:"8.5",cy:"12",r:"1.7"}),N("path",{d:"M3 17h9M15.5 17H21"}),N("circle",{cx:"13.5",cy:"17",r:"1.7"})]}),ProductGrid:ge(xe,{children:[N("rect",{x:"3",y:"5",width:"4.8",height:"6",rx:"1"}),N("rect",{x:"9.6",y:"5",width:"4.8",height:"6",rx:"1"}),N("rect",{x:"16.2",y:"5",width:"4.8",height:"6",rx:"1"}),N("rect",{x:"3",y:"13",width:"4.8",height:"6",rx:"1"}),N("rect",{x:"9.6",y:"13",width:"4.8",height:"6",rx:"1"}),N("rect",{x:"16.2",y:"13",width:"4.8",height:"6",rx:"1"})]}),RelatedProducts:ge(xe,{children:[N("path",{d:"M3 5h10"}),N("rect",{x:"3",y:"9.5",width:"5",height:"9",rx:"1"}),N("rect",{x:"9.5",y:"9.5",width:"5",height:"9",rx:"1"}),N("rect",{x:"16",y:"9.5",width:"5",height:"9",rx:"1"})]}),Gallery:ge(xe,{children:[N("rect",{x:"3",y:"4",width:"11",height:"16",rx:"2"}),N("rect",{x:"15.5",y:"4",width:"5.5",height:"7.5",rx:"1.5"}),N("rect",{x:"15.5",y:"12.5",width:"5.5",height:"7.5",rx:"1.5"})]}),GalleryB:ge(xe,{children:[N("rect",{x:"3.5",y:"4",width:"7.5",height:"7.5",rx:"1.5"}),N("rect",{x:"13",y:"4",width:"7.5",height:"7.5",rx:"1.5"}),N("rect",{x:"3.5",y:"12.5",width:"7.5",height:"7.5",rx:"1.5"}),N("rect",{x:"13",y:"12.5",width:"7.5",height:"7.5",rx:"1.5"})]}),GalleryItem:ge(xe,{children:[N("rect",{x:"4",y:"5",width:"16",height:"14",rx:"2"}),N("circle",{cx:"9",cy:"10",r:"1.6"}),N("path",{d:"M20 15.5l-4.5-4L7 19"})]}),Events:ge(xe,{children:[N("rect",{x:"4",y:"5",width:"16",height:"15",rx:"2"}),N("path",{d:"M4 9.5h16M8.5 3v4M15.5 3v4M8 14h2M14 14h2"})]}),PostCard:ge(xe,{children:[N("rect",{x:"4",y:"3.5",width:"16",height:"17",rx:"2"}),N("rect",{x:"6.5",y:"6",width:"11",height:"6",rx:"1"}),N("path",{d:"M6.5 14.5h11M6.5 17.5h7"})]}),Manifesto:ge(xe,{children:[N("path",{d:"M7 8h3.2v4c0 1.6-1 2.6-3 3.2"}),N("path",{d:"M14 8h3.2v4c0 1.6-1 2.6-3 3.2"})]}),Stats:ge(xe,{children:[N("path",{d:"M3.5 20h17"}),N("path",{d:"M6 20v-7M11 20V7M16 20v-5M20.5 20v-9"})]}),Logos:ge(xe,{children:[N("circle",{cx:"6",cy:"12",r:"2.6"}),N("rect",{x:"10",y:"9.4",width:"5.2",height:"5.2",rx:"1.2"}),N("path",{d:"M19 9.2l2.4 5h-4.8z"})]}),Ticker:ge(xe,{children:[N("rect",{x:"3",y:"8.5",width:"18",height:"7",rx:"2"}),N("path",{d:"M6 12h3.5M11.5 12h2M15.5 12h2.5"})]}),SectionHeader:ge(xe,{children:[N("rect",{x:"3.5",y:"6",width:"5",height:"5",rx:"1.2"}),N("path",{d:"M11 8.5h9M3.5 15.5h17"})]}),IntroBleed:ge(xe,{children:[N("rect",{x:"3",y:"4",width:"18",height:"16",rx:"2"}),N("path",{d:"M3 13.5h18M7 16.8h6"})]}),Split:ge(xe,{children:[N("rect",{x:"3",y:"5",width:"8",height:"14",rx:"1.5"}),N("path",{d:"M14 8.5h6M14 12h6M14 15.5h4"})]}),Eyebrow:ge(xe,{children:[N("path",{d:"M4 8.5h4.5M11 8.5h9"}),N("path",{d:"M4 14.5h16"})]}),HeroGroup:ge(xe,{children:[N("rect",{x:"3.5",y:"4.5",width:"17",height:"15",rx:"2"}),N("path",{d:"M7 9h8M7 12.5h10M7 16h6"})]}),Form:ge(xe,{children:[N("rect",{x:"3",y:"4",width:"18",height:"16",rx:"2"}),N("path",{d:"M6.5 9h11M6.5 12.5h11"}),N("rect",{x:"6.5",y:"15",width:"6.5",height:"2.6",rx:"1.3"})]}),LogoBlock:N(xe,{children:N("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:ge(xe,{children:[N("path",{d:"M12 4v6M9.5 6.5L12 4l2.5 2.5M12 20v-6M9.5 17.5L12 20l2.5-2.5"}),N("path",{d:"M5 13h14",strokeDasharray:"2 2.5"})]}),ContactRouting:ge(xe,{children:[N("rect",{x:"3",y:"4",width:"5",height:"5",rx:"1"}),N("rect",{x:"9.5",y:"4",width:"5",height:"5",rx:"1"}),N("rect",{x:"16",y:"4",width:"5",height:"5",rx:"1"}),N("path",{d:"M4 13.5h11M4 17.5h7"}),N("path",{d:"M17 15l3 2-3 2"})]}),Contents:ge(xe,{children:[N("path",{d:"M4 7h2M4 12h2M4 17h2"}),N("path",{d:"M9 7h11M9 12h9M9 17h10"})]}),ListSearch:ge(xe,{children:[N("path",{d:"M4 6h9M4 11h5M4 16h5"}),N("circle",{cx:"15",cy:"15",r:"4"}),N("path",{d:"M20.5 20.5l-2.7-2.7"})]}),CustomHTML:N("path",{d:"M9 8l-4 4 4 4M15 8l4 4-4 4"})},mX=N("rect",{x:"4",y:"4",width:"16",height:"16",rx:"2.5"}),hX={footer:zA,Footer:zA,Divider:UA,FooterDivider:UA,Banner:JY,Flex:QY,FooterSocial:rX,FooterPayment:nX,page:pX,website:iX,AccountBlock:lX,chat:sX,Heading:oX,Text:aX,ImageBlock:zb,ButtonBlock:eX,LocationMap:cX,Grid:dX,ProductRef:tX,heroMedia:fX,heroImage:zb,heroImage2:zb},xX={MenuBlock:"FooterMenu",EmailFormBlock:"FooterEmailSignup",SocialLogosBlock:"FooterSocial",PaymentLogosBlock:"FooterPayment",SiteHeader:"header",SiteFooter:"footer"};function fn({type:e,size:o=16,className:t}){let r=xX[e]??e,a=hX[r];return a?N(a,{size:o,className:t}):N("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:uX[r]??mX})}import{PanelHideButton as rM}from"efficient-easel/screen/components/SidePanelHead";import{useEaselSession as gle}from"efficient-easel/screen/lib/session-context";import{jsx as Re,jsxs as Li,Fragment as IX}from"react/jsx-runtime";import{useEffect as gX,useId as $A,useState as bX}from"react";import{IconPicker as yX}from"efficient-shell/ui";import{SettingsDefaultReset as SX,SettingsField as Fi,SettingsSegmented as wX,SettingsSwitch as GA}from"efficient-easel/panel";import{ButtonIcon as CX,ButtonIconIcon as vX,EyeIcon as kX,PhoneIcon as TX,PlacementIcon as PX,TypeIcon as EX}from"efficient-easel/icons";var OX="Chat with us",_X="We usually reply within a few minutes",AX="Hi! Ask us anything \u2014 about a wheel, an order, or fitment. Leave your details and we\u2019ll reply.";function Zp({label:e,value:o,placeholder:t,onCommit:r,multiline:a=!1,hint:n}){let[s,l]=bX(o);gX(()=>l(o),[o]);let d=()=>{s!==o&&r(s)};return Re(Fi,{label:e,icon:Re(EX,{}),changed:o!=="",action:Re(Bi,{label:e,changed:o!=="",onReset:()=>r("")}),hint:n,children:a?Re("textarea",{value:s,placeholder:t,rows:3,onChange:c=>l(c.target.value),onBlur:d,"aria-label":e}):Re("input",{type:"text",value:s,placeholder:t,onChange:c=>l(c.target.value),onBlur:d,onKeyDown:c=>{c.key==="Enter"&&c.currentTarget.blur()},"aria-label":e,autoComplete:"off"})})}function Bi({label:e,changed:o,onReset:t}){return Re(SX,{words:de()?.panel,label:e,changed:o,onReset:t})}function RX({label:e,icon:o,checked:t,fallback:r,onChange:a,hint:n}){let s=$A();return Re(Fi,{label:e,labelId:s,icon:o,changed:t!==r,action:Li("span",{className:"inline-flex items-center gap-2",children:[Re(GA,{checked:t,onChange:a,ariaLabelledBy:s}),Re(Bi,{label:e,changed:t!==r,onReset:()=>a(r)})]}),hint:n})}var LX=Gp.map(e=>({value:e,icon:jc(e)}));function FX(){let{theme:e}=he(),o=xo(e).themes[0];return El(o)??o?.accent??""}function jA(){let{chat:e,setChat:o}=Vp(),t=$A(),r=FX(),a=e.launcherIcon?jp(e.launcherIcon):Us;return Li(IX,{children:[Re(Fi,{label:i("Show the chat bubble"),labelId:t,icon:Re(kX,{}),changed:!e.enabled,action:Li("span",{className:"inline-flex items-center gap-2",children:[Re(GA,{checked:e.enabled,onChange:n=>o({enabled:n}),ariaLabelledBy:t}),Re(Bi,{label:i("Show the chat bubble"),changed:!e.enabled,onReset:()=>o({enabled:!0})})]}),hint:e.enabled?i("The floating chat bubble shows in the corner of every page."):i("The chat bubble is hidden across the whole site.")}),Li(bg,{title:i("Look"),children:[Re(Yo,{label:i("Button color"),icon:Re(CX,{}),changed:e.launcherColor!=="",value:e.launcherColor,inherited:r,caption:e.launcherColor?void 0:i("Site button color"),onChange:n=>o({launcherColor:n}),onReset:()=>o({launcherColor:""})}),Re(Fi,{label:i("Icon"),icon:Re(vX,{}),value:Re(JI,{value:a}),changed:a!==Us,action:Re(Bi,{label:i("Icon"),changed:a!==Us,onReset:()=>o({launcherIcon:""})}),children:Re(yX,{label:i("Icon"),value:a,options:LX,onChange:n=>o({launcherIcon:n===Us?"":n})})}),Re(Fi,{label:i("Position"),icon:Re(PX,{}),changed:e.launcherPosition!==ln,action:Re(Bi,{label:i("Position"),changed:e.launcherPosition!==ln,onReset:()=>o({launcherPosition:ln})}),children:Re(wX,{options:[{label:i("Right"),id:"right"},{label:i("Left"),id:"left"}],value:e.launcherPosition,ariaLabel:i("Position"),onChange:n=>o({launcherPosition:n})})}),Re(Zp,{label:i("Label"),value:e.launcherLabel,placeholder:i("Icon only"),onCommit:n=>o({launcherLabel:n}),hint:i("Shows when a visitor points at the button")}),Re(RX,{label:i("Show on phones"),icon:Re(TX,{}),checked:e.showOnPhones,fallback:Kp.showOnPhones,onChange:n=>o({showOnPhones:n})})]}),Li(bg,{title:i("Wording"),children:[Re(Zp,{label:i("Title"),value:e.title,placeholder:OX,onCommit:n=>o({title:n})}),Re(Zp,{label:i("Subtitle"),value:e.subtitle,placeholder:_X,onCommit:n=>o({subtitle:n})}),Re(Zp,{label:i("Greeting message"),value:e.greeting,placeholder:AX,onCommit:n=>o({greeting:n}),multiline:!0}),Re("p",{className:"es-field-hint",children:i("Leave a field blank to use the built-in wording.")})]})]})}import{jsx as pn,Fragment as cy,jsxs as XA}from"react/jsx-runtime";import{useEffect as cZ,useId as qA,useState as YA}from"react";import{SettingsField as fZ}from"efficient-easel/panel";import{jsx as oZ}from"react/jsx-runtime";import{forwardRef as BX,createElement as $b}from"react";var KA={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 ce=(e,o,t,r)=>{let a=BX(({color:n="currentColor",size:s=24,stroke:l=2,title:d,className:c,children:f,...u},p)=>$b("svg",{ref:p,...KA[e],width:s,height:s,className:["tabler-icon",`tabler-icon-${o}`,c].filter(Boolean).join(" "),...e==="filled"?{fill:n}:{strokeWidth:l,stroke:n},...u},[d&&$b("title",{key:"svg-title"},d),...r.map(([h,I])=>$b(h,I)),...Array.isArray(f)?f:[f]]));return a.displayName=`${t}`,a};var DX=[["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"}]],Gb=ce("outline","brand-facebook","BrandFacebook",DX);var NX=[["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"}]],jb=ce("outline","brand-instagram","BrandInstagram",NX);var MX=[["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"}]],Kb=ce("outline","brand-line","BrandLine",MX);var HX=[["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"}]],Vb=ce("outline","brand-linkedin","BrandLinkedin",HX);var WX=[["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"}]],qb=ce("outline","brand-pinterest","BrandPinterest",WX);var UX=[["path",{d:"M15 10l-4 4l6 6l4 -16l-18 7l4 2l2 6l3 -4",key:"svg-0"}]],Yb=ce("outline","brand-telegram","BrandTelegram",UX);var zX=[["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"}]],Xb=ce("outline","brand-tiktok","BrandTiktok",zX);var $X=[["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"}]],Zb=ce("outline","brand-wechat","BrandWechat",$X);var GX=[["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"}]],Jb=ce("outline","brand-whatsapp","BrandWhatsapp",GX);var jX=[["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"}]],Qb=ce("outline","brand-x","BrandX",jX);var KX=[["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"}]],ey=ce("outline","brand-youtube","BrandYoutube",KX);var VX=[["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"}]],oy=ce("filled","brand-facebook-filled","BrandFacebookFilled",VX);var qX=[["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"}]],ty=ce("filled","brand-instagram-filled","BrandInstagramFilled",qX);var YX=[["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"}]],ry=ce("filled","brand-linkedin-filled","BrandLinkedinFilled",YX);var XX=[["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"}]],ay=ce("filled","brand-pinterest-filled","BrandPinterestFilled",XX);var ZX=[["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"}]],ny=ce("filled","brand-tiktok-filled","BrandTiktokFilled",ZX);var JX=[["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"}]],sy=ce("filled","brand-whatsapp-filled","BrandWhatsappFilled",JX);var QX=[["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"}]],ly=ce("filled","brand-x-filled","BrandXFilled",QX);var eZ=[["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"}]],iy=ce("filled","brand-youtube-filled","BrandYoutubeFilled",eZ);var SAe="outline",Jp={fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},tZ={},dy={fillRule:"evenodd"},rZ=[["path",{...Jp,d:"M21 4L3 11L7 13L9 19L12 15L17 20z"}],["path",{...dy,d:"M21 4L3 11L7 13L9 19L12 15L17 20zM15.212 8.939 10.576 13.576 11.424 14.424 16.061 9.788z"}]],aZ=[["path",{...Jp,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",{...tZ,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("")}]],nZ=[["path",{...Jp,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",{...Jp,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",{...dy,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",{...dy,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("")}]],sZ=ce("filled","brand-telegram-filled","BrandTelegramFilled",rZ),lZ=ce("filled","brand-line-filled","BrandLineFilled",aZ),iZ=ce("filled","brand-wechat-filled","BrandWechatFilled",nZ),dZ={instagram:{outline:jb,solid:ty},facebook:{outline:Gb,solid:oy},tiktok:{outline:Xb,solid:ny},youtube:{outline:ey,solid:iy},x:{outline:Qb,solid:ly},linkedin:{outline:Vb,solid:ry},pinterest:{outline:qb,solid:ay},whatsapp:{outline:Jb,solid:sy},telegram:{outline:Yb,solid:sZ},line:{outline:Kb,solid:lZ},wechat:{outline:Zb,solid:iZ}};function VA({platform:e,iconStyle:o,size:t}){let r=dZ[e][o];return oZ(r,{size:t,stroke:1.75,"aria-hidden":"true",focusable:"false"})}var pZ={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 uZ({platform:e}){let{rows:o,saveLink:t}=Pi(),{value:r,error:a}=o[e],[n,s]=YA(r),[l,d]=YA(!1),c=qA(),f=qA();cZ(()=>s(r),[r]);let u=async()=>{if(n.trim()===r){n!==r&&s(r);return}d(!0),await t(e,n),d(!1)},p=zk[e];return XA(cy,{children:[pn(fZ,{label:i(p),htmlFor:c,icon:pn(VA,{platform:e,iconStyle:"outline",size:18}),children:pn("input",{id:c,type:"text",inputMode:"url",value:n,placeholder:pZ[e],onChange:h=>s(h.target.value),onBlur:()=>{u()},onKeyDown:h=>{h.key==="Enter"&&h.currentTarget.blur(),h.key==="Escape"&&(s(r),h.currentTarget.blur())},"aria-invalid":a?!0:void 0,"aria-describedby":a?f:void 0,"aria-busy":l||void 0,autoComplete:"off",spellCheck:!1})}),a&&pn("p",{id:f,className:"sf-note sf-note--error",role:"alert",children:a})]})}function ZA({unavailable:e}){let{canSave:o}=Pi();return!o&&e?pn(cy,{children:e}):XA(cy,{children:[pn("p",{className:"es-field-hint",children:i("Paste a link to each profile. A platform left empty shows nothing on the site.")}),Pc.map(t=>pn(uZ,{platform:t},t))]})}import{jsx as gn,Fragment as Iee,jsxs as gee}from"react/jsx-runtime";import{useId as bee,useMemo as yee}from"react";import{useEasel as See}from"efficient-easel/easel";import{SettingsField as wee,SettingsSwitch as Cee}from"efficient-easel/panel";import{EyeIcon as vee}from"efficient-easel/icons";import{fieldShownInView as kee}from"efficient-easel/fields";import{usePreviewDevice as Tee}from"efficient-easel/draw/client";import{jsx as mn,Fragment as uJ,jsxs as mJ}from"react/jsx-runtime";import{createContext as hJ,useContext as xJ,useLayoutEffect as vR,useMemo as lu,useRef as kR,useState as gy}from"react";import{useEasel as TR,useSelectedFields as IJ}from"efficient-easel/easel";import{fieldShownInView as gJ,Inspector as bJ,planFields as by}from"efficient-easel/fields";function JA({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{group as eJ}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as oJ,deviceMetaOf as uR}from"efficient-easel/screen/lib/document/device-fields";import{jsx as Co}from"react/jsx-runtime";import{DirectionDownIcon as yZ,DirectionIcon as SZ,DirectionLeftIcon as wZ,DirectionRightIcon as CZ,DirectionUpIcon as vZ,EntranceBounceIcon as kZ,EntranceFadeIcon as TZ,EntranceFlipIcon as PZ,EntranceGlideIcon as EZ,EntranceRevealIcon as OZ,EntranceRiseIcon as _Z,EntranceScaleIcon as AZ,EntranceSpinIcon as RZ,NoSymbolIcon as LZ}from"efficient-easel/icons";import{NoControlMark as FZ,noControlField as BZ}from"efficient-easel/screen/lib/document/panel-no-control-mark";import{customize as DZ,group as NZ}from"efficient-easel/screen/lib/document/box-fields";import{ENTRANCE_FROM as MZ,ENTRANCE_FROM_DEFAULT as sR,ENTRANCE_KINDS as lR,ENTRANCE_KINDS_WITH_FROM as HZ,entranceAttrs as WZ,playEntrance as UZ,readEntrance as zZ}from"efficient-shell/format";import{jsx as uy}from"react/jsx-runtime";import{ClockIcon as IZ,DurationIcon as gZ}from"efficient-easel/icons";import{MOTION_TIMING as rR}from"efficient-shell/format";import{useSelectedHost as bZ}from"efficient-easel/easel";import{MOTION_EASING as mZ,MOTION_TIMING as QA,motionSeconds as eR}from"efficient-shell/format";var fy="none",Qp=[{label:"None",value:"none"},{label:"Marquee",value:"scroll"}];function FAe(e){return io(Qp,fy,e)}var eu="_gLoop",Di={field:"loop",is:"scroll"},Ni="left",py=[{label:"Left",value:"left",cell:"left"},{label:"Right",value:"right",cell:"right"},{label:"Up",value:"up",cell:"top"},{label:"Down",value:"down",cell:"bottom"}],hZ={left:"storefront-ticker",right:"storefront-ticker-right",up:"storefront-ticker-up",down:"storefront-ticker-down"};function oR(e){return io(py,Ni,e)}function BAe(e){return e==="up"||e==="down"}function ou(e){return eR("loop","duration",e.loopDuration!=null?e.loopDuration:e.speed)}var DAe=QA.loop.duration.default,xZ=QA.loop.delay.default;function tR(e){return eR("loop","delay",e.loopDelay)}function NAe(e,o,t=xZ){return`${hZ[e]} ${o}s ${mZ.loop}${t?` ${t}s`:""} infinite`}function zs(e){let{min:o,max:t,step:r,default:a}=rR[e].duration;return Oo("Duration",uy(gZ,{}),o,t,r,a,"s")}function $s(e){let{min:o,max:t,step:r,default:a}=rR[e].delay;return Oo("Delay",uy(IZ,{}),o,t,r,a,"s")}function Gs(e,o){let t=e.render,r=a=>{let n=bZ();return t({...a,value:o(a.value,n?.values)})};return{...e,render:a=>uy(r,{...a})}}function tu({readsSpeed:e}){return Gs(zs("loop"),(o,t)=>ou({loopDuration:o,speed:e?t?.speed:void 0}))}function ru(){return Gs($s("loop"),e=>tR({loopDelay:e}))}var aR="_gEntrance";var $Z={none:"None",fade:"Fade",rise:"Rise",scale:"Scale",glide:"Glide",bounce:"Bounce",flip:"Flip",reveal:"Reveal",spin:"Spin"},GZ={top:"Top",bottom:"Bottom",left:"Left",right:"Right"},jZ={top:()=>Co(yZ,{}),bottom:()=>Co(vZ,{}),left:()=>Co(CZ,{}),right:()=>Co(wZ,{})},iR="Entrance",hy=lR.filter(e=>e!=="none"),dR=e=>({any:[{field:tt.kind,in:e},{all:[{field:tt.kind,set:!1},{field:_l,in:e}]}]}),nR=(e,o)=>kl(qo.slice(0,qo.indexOf(e)+1).reverse().map(t=>we(tt.kind,t)),t=>({field:t,set:!0}),t=>t===tt.kind?dR(o):{field:t,in:o}),KZ={any:[dR(hy),...qo.slice(1).map(e=>({field:we(tt.kind,e),in:hy}))]},VZ=qo.flatMap(e=>[[[we(tt.from,e)],nR(e,HZ)],[[we(tt.duration,e),we(tt.delay,e)],nR(e,hy)]]),qZ={none:()=>Co(LZ,{}),fade:()=>Co(TZ,{}),rise:()=>Co(_Z,{}),scale:()=>Co(AZ,{}),glide:()=>Co(EZ,{}),bounce:()=>Co(kZ,{}),flip:()=>Co(PZ,{}),reveal:()=>Co(OZ,{}),spin:()=>Co(RZ,{})},cR="data-entrance-tile";function YZ({kind:e}){let{attrs:o}=WZ(zZ(e,sR));return Co("span",{className:"sf-entrance-stage",[cR]:e,children:Co("i",{...o,children:qZ[e]()})})}var XZ=(e,o)=>{let t=e.querySelector(`[${cR}="${o}"] > i`);t&&UZ(t)},ZZ="Effect",JZ=()=>pf(tt.kind,{label:iR,tileWord:ZZ,values:lR,fallback:"none",word:e=>$Z[e],picture:e=>Co(YZ,{kind:e}),read:(e,o)=>jh(e,o).kind,preview:XZ}),my=(e,o)=>ff(tt[e],o,(t,r)=>jh(t,r)[e]),QZ=MZ.map(e=>({label:GZ[e],value:e,picture:jZ[e]()}));function jt(){let e={[aR]:NZ(iR,{dot:KZ}),...JZ(),[_l]:BZ({type:"custom",render:()=>Co(FZ,{})},"always"),_cEntrance:DZ(),...my("from",Cs("From",Co(SZ,{}),QZ,sR)),...my("duration",zs("entrance")),...my("delay",$s("entrance"))};return _a(e,VZ)}import{DESIGN_GROUPS as xy,SETTINGS_BUCKETS as tJ}from"efficient-easel/panel";import{BUCKET_KEY as bt,DESIGN_GROUP_KEY as au}from"efficient-easel/screen/lib/document/field-buckets";var Mi=tJ;var rJ="Editor only \u2014 not shown live",Iy={"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",[rJ]:"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"},mR={"AlloyWheelsListing._gCards":"Design"},hR={"Text._gSpacing":"Size","Heading._gSpacing":"Size"};function fR(e,o,t){let r=`${e}.${o}`;return K(hR,r)??K(mR,r)??K(Iy,t)}function aJ(e){return e==="Animation"?[bt.Animation]:[bt.Design,au[e]]}function nu(...e){let o=[];for(let t of e)for(let r of Object.values(t)){let a=uR(r),n=ia(a?a.inner:r),s=n?K(Iy,n.label):void 0;if(s)for(let l of aJ(s))o.includes(l)||o.push(l)}return o}var hRe=[...nu(Wf({tablet:!0,siteSide:!0}),ep("full"),op(),rp(),wg()),...Object.keys(Wf({tablet:!0,siteSide:!0})),...Object.keys(ep("full")),...Object.keys(op()),...Object.keys(rp()),...Object.keys(wg())],xRe=[...nu(Zf()),...Object.keys(Zf())],IRe=[...nu(Qf()),...Object.keys(Qf())],gRe=[...nu(jt()),...Object.keys(jt())],bRe=Object.keys(VO()),yRe=Object.keys(qO()),nJ={"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)","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)"},xR={Content:["Content"],Size:["Size"],Design:["Design","Style"],Layout:["Layout"],Position:["Position"],Anchor:["Anchor"],Animation:["Animation"]},IR={_gAnchor:"repeated the Anchor group heading above it (two tabs, 11.0.0)"};{let e={...Wf({tablet:!0,siteSide:!0}),...ep("full"),...op(),...rp(),...Zf(),...Qf(),...jt()};for(let o of Object.keys(IR)){let t=ia(e[o]),r=t?K(Iy,t.label):void 0;if(!t||t.level!==2||!r||!xR[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 sJ=new Set(["_sContent","_sStyle","_sLayout","_sMedia"]),lJ=new Map([[bt.Design,"Content"],[bt.Animation,"Animation"],...xy.map(e=>[au[e],e])]);function iJ(e){let o=`${e}.`;return Object.keys(nJ).filter(t=>t.startsWith(o)).map(t=>t.slice(o.length))}function dJ(e,o){let t=uR(e),r=eJ(o);return t?oJ(t.tier,r):r}function cJ(e,o){let t=ia(o);return t?e==="Content"||e==="Animation"?AO(o,t.label):RO(o):o}function pR(e){return e==="Design"?xy:["Animation"]}function gR(e,o){let t=[],r=new Set(iJ(o)),a=new Set,n=!1,s=null;for(let[p,h]of Object.entries(e)){let I=ia(h);if(sJ.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 (\`_dDesign: section("Design")\`, \`_dLayout: section("Layout")\`).`);let g=lJ.get(p);if(g!==void 0){if(I?.level!==1)throw new Error(`${o}.${p}: that key is reserved for the ${g} heading of the settings panel, but this field is ${I?`a level-${I.level} "${I.label}" header`:"not a header"}, so it cannot serve as one. Rename the section's own field.`);(p===bt.Design||p===bt.Animation)&&(n=!0),t.push(s={place:g,entries:[],adopted:!0});continue}if(!I){s||t.push(s={place:"Content",entries:[]}),s.entries.push([p,h]);continue}if(r.has(p)||$e(IR,p)){let w=fR(o,p,I.label);if(I.level!==2||!w||!xR[w].includes(I.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-${I.level} "${I.label}" header in the ${w??"(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:w,entries:[]});continue}let C=fR(o,p,I.label);if(!C)throw new Error(`${o}.${p}: the inspector group "${I.label}" is not classified in LABEL_GROUP (lib/document/field-groups.ts), so there is no way to say which of ${[...xy,"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:C,entries:[[p,I.level===2?h:dJ(h,I.label)]]})}let l=new Set(Object.entries(e).filter(([,p])=>ia(p)).map(([p])=>p));for(let[p,h]of[["BLOCK_KEY_GROUP",hR],["KEY_GROUP",mR]]){let I=Object.keys(h).filter(g=>g.startsWith(`${o}.`)).filter(g=>!l.has(g.slice(o.length+1)));if(I.length)throw new Error(`${o}: ${p} (lib/document/field-groups.ts) lists ${JSON.stringify(I)}, 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 d=n?[]:[...r].filter(p=>!a.has(p));if(d.length)throw new Error(`${o}: RETIRED (lib/document/field-groups.ts) lists ${JSON.stringify(d)}, but this section has no such fold header${d.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 c=new Set(t.filter(p=>p.entries.length>0).map(p=>p.place)),f=Mi.filter(p=>pR(p).some(h=>c.has(h))),u={};for(let p of f){u[bt[p]]=Xf(p,p===f[0]?f:null);for(let h of pR(p)){if(!c.has(h))continue;let I=t.filter(C=>C.place===h),g=I.findIndex(C=>C.adopted);g>0&&I.unshift(...I.splice(g,1)),p==="Design"&&(u[au[h]]=gg(h));for(let C of I)for(let[w,T]of C.entries)u[w]=cJ(h,T)}}return u}function SRe(e){return bt.Design in e?e:{[bt.Design]:Xf("Design",null),[au.Content]:gg("Content"),...e}}function wRe(e){return Mi.some(o=>bt[o]in e)}function CRe(e){let o=Mi.filter(r=>bt[r]in e);if(o.length===0)return e;let t={...e};for(let r of o)t[bt[r]]=Xf(r,r===o[0]?o:null);return t}import{jsx as fJ}from"react/jsx-runtime";import{EmptyState as pJ}from"efficient-shell/ui";function un(){return fJ(pJ,{variant:"none",icon:!1,message:i("These settings apply to every view.")})}import{usePreviewDevice as yJ}from"efficient-easel/draw/client";import{deviceField as SJ}from"efficient-easel/screen/lib/document/device-fields";var su=" text",bR="Text";function Hi(e){let o=e.rows.filter(t=>t.shown);return o.length===0||o.length===1&&o[0].labelled}function yR(e){return e.filter(Hi).map(o=>o.key)}function SR(e,o){let t=e.filter(a=>!Hi(a));if(t.length!==1)return null;let r=e.filter(Hi).flatMap(a=>a.rows);return[...o,...r].some(a=>a.shown)?null:t[0].rows.filter(a=>a.shown).length>1?t[0].key:null}function wR(e,o){let t=null;for(let r of o){let a=e[r];!a||a.marker!==!0||typeof a.fold!="string"||(t??={...e},t[r]={...a,fold:!1})}return t??e}function CR(e,o){if(e.size!==o.size)return!1;for(let t of e)if(!o.has(t))return!1;return!0}var yy=new Map,iu=new Set;function PR(e,o){let t=new Map;for(let a of e.querySelectorAll(".es-insp-row[data-field]"))t.set(a.getAttribute("data-field")??"",a);let r=[];for(let[a,n]of o)r.push({key:a,rows:n.map(s=>{let l=t.get(s),d=!!l&&[...l.children].some(f=>!f.hidden),c=l?.querySelector(".es-field-label, .es-list-label")?.textContent?.trim();return{shown:d,labelled:d&&!!c}})});return r}var wJ=Object.fromEntries(Mi.map(e=>{let o=_O[e];return[e,mn(o,{},e)]})),ER=hJ(null),CJ={_partBody:SJ("each",{type:"custom",render:()=>mn(vJ,{})})};function vJ(){return mn(uJ,{children:xJ(ER)})}function Kt({entries:e,entryCount:o=0,part:t=null,omit:r,motion:a,body:n,itemWord:s}){let{id:l,fields:d,values:c,readOnly:f,onChange:u}=IJ(),p=lu(()=>a?{...c,...a.values}:c,[c,a?.values]),h=(ie,Me)=>a?.keys.has(ie)?a.onChange(ie,Me):u(ie,Me),I=yJ(),{appState:g,config:C}=TR(ie=>ie),w=YT(I,C,g.data.content??[],g.ui.itemSelector),T=n===void 0?BA(d,t):CJ,y=lu(()=>{let ie=r?.length?Object.fromEntries(Object.entries(T).filter(([Me])=>!r.includes(Me))):T;return a?{...ie,...a.fields}:ie},[T,r,a?.fields]),b=vx(y,p,w),[P,H]=gy(()=>new Set(iu)),[E,W]=gy(()=>new Set),O=kR(null),{bandRows:D,designBands:v,looseRows:_}=lu(()=>{let ie=new Map,Me=new Set,Ve=[];for(let J of by(b).rows){if(!J.fold){J.bucket==="Design"&&Ve.push(J.name);continue}let Ae=ie.get(J.fold.key)??[];Ae.push(J.name),ie.set(J.fold.key,Ae),J.bucket==="Design"&&Me.add(J.fold.key)}return{bandRows:ie,designBands:Me,looseRows:new Map([["",Ve]])}},[b]),A=gJ({},I),F={key:su,rows:Array.from({length:A?o:0},()=>({shown:!0,labelled:!0}))};vR(()=>{let ie=O.current?.parentElement;if(!ie)return;let Me=PR(ie,D),Ve=new Set(yR(Me)),J=SR([F,...Me.filter(Ae=>v.has(Ae.key))],PR(ie,_)[0].rows);J&&Ve.add(J),W(Ae=>CR(Ae,Ve)?Ae:Ve)});let z=lu(()=>wR(b,E),[b,E]),$=!Hi(F)&&!E.has(su)?{key:su,title:bR}:void 0,X=TR(ie=>ie.selectedItem)!==null,ee=a?.part??t??"",Fe=`${l}:${ee}:${String(I)}`,[Oe,ze]=gy(()=>({tab:yy.get(Fe)})),Ke=`${l}:${ee}`,be=kR(null),Te={...w,node:p},_e=by(b,{values:p,context:Te}).buckets,Ne=JA({allTabs:X,remembered:yy.get(Fe),inherited:be.current?.panel===Ke?be.current.tab:Oe.tab,buckets:_e,hasText:A&&o>0}),ao=!A&&!_e.includes(Ne)&&(by(vx(y,p,{...w,device:"desktop"}),{values:p,context:{...Te,device:"desktop"}}).buckets.includes(Ne)||Ne==="Design"&&o>0);vR(()=>{be.current={panel:Ke,tab:Ne}});let yo=Ne==="Design";return mn(ER.Provider,{value:n??null,children:mn(Sg.Provider,{value:a?p:null,children:mJ(bJ,{fields:z,values:p,onChange:h,readOnly:f,allTabs:X,showWhenContext:Te,context:{itemWord:s},tab:Ne,onTab:ie=>{yy.set(Fe,ie),ze({tab:ie})},tabIcons:wJ,idPrefix:l,ariaLabel:i("Section settings"),lead:yo?e:null,leadFold:$,closedFolds:P,onFold:(ie,Me)=>{Me?iu.delete(ie):iu.add(ie),H(new Set(iu))},children:[mn("span",{ref:O,hidden:!0}),ao&&mn(un,{})]})})})}import{useMemo as dee}from"react";import{useEasel as cee}from"efficient-easel/easel";import{useSectionOps as fee}from"efficient-easel/screen/lib/document/use-section-ops";import{jsx as yt}from"react/jsx-runtime";import{EntranceRevealIcon as AJ,NoSymbolIcon as RJ,PercentIcon as LR,ScrollFadeInIcon as LJ,ScrollFadeOutIcon as FJ,ScrollMoveDownIcon as BJ,ScrollMoveUpIcon as DJ,ScrollParallaxIcon as NJ,ScrollZoomInIcon as MJ,ScrollZoomOutIcon as HJ,ZoomInIcon as WJ}from"efficient-easel/icons";import{customize as UJ,group as zJ}from"efficient-easel/screen/lib/document/box-fields";import{SCROLL_EFFECTS as BR,SCROLL_EFFECTS_WITH_ZOOM as $J,SCROLL_END as GJ,SCROLL_START as jJ,SCROLL_ZOOM as KJ}from"efficient-shell/format";import{parseFocal as EJ,formatFocal as OJ,readScroll as _J}from"efficient-shell/format";import{phoneKey as kJ,tabletKey as TJ}from"efficient-easel/screen/lib/content/view-tiers";var PJ=[{block:"HeroSlide",upload:"mediaImage",focus:"imageFocal"},{block:"HeroSingle",upload:"mediaImage",focus:"imageFocal"},{block:"HeroSingle",upload:"mediaImage2",focus:"imageFocal2"},{block:"ImageBlock",upload:"src",focus:"focal"}],OR=e=>[e,TJ(e),kJ(e)],KRe=[...new Set(PJ.flatMap(e=>OR(e.focus)))].sort();function _R(e,o){let[t,r,a]=OR(o).map(n=>typeof e[n]=="string"&&e[n]?e[n]:void 0);return{desktop:t,tablet:r,phone:a}}var Ao={effect:"scroll",zoom:"scrollZoom",start:"scrollStart",end:"scrollEnd"},AR="_gScroll",RR="_cScroll",du=xc(Object.values(Ao));function js(e,o){return _J(Ol(e,Ao.effect,o),Ol(e,Ao.zoom,o),Ol(e,Ao.start,o),Ol(e,Ao.end,o))}function cu(e){let o={desktop:js(e,"desktop"),tablet:js(e,"tablet"),phone:js(e,"phone")};return qo.every(t=>o[t].effect==="none")?null:o}function Sy(e){let o=Ck(e.desktop,e.tablet,e.phone),t=r=>{let a=o[r];if(typeof a!="string")return;let{x:n,y:s}=EJ(a);return OJ(n,s)};return{desktop:t("desktop"),tablet:t("tablet"),phone:t("phone")}}function ZRe(e,o){return Sy(_R(e,o))}var DR="Scroll",VJ={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"},qJ={none:()=>yt(RJ,{}),"zoom-in":()=>yt(MJ,{}),"zoom-out":()=>yt(HJ,{}),"fade-in":()=>yt(LJ,{}),"fade-out":()=>yt(FJ,{}),"move-up":()=>yt(DJ,{}),"move-down":()=>yt(BJ,{}),reveal:()=>yt(AJ,{}),parallax:()=>yt(NJ,{})},YJ="Effect",NR=BR.filter(e=>e!=="none"),FR=(e,o)=>kl(qo.slice(0,qo.indexOf(e)+1).reverse().map(t=>we(Ao.effect,t)),t=>({field:t,set:!0}),t=>({field:t,in:o})),XJ={any:qo.map(e=>({field:we(Ao.effect,e),in:NR}))},ZJ=qo.flatMap(e=>[[[we(Ao.zoom,e)],FR(e,$J)],[[we(Ao.start,e),we(Ao.end,e)],FR(e,NR)]]),JJ=()=>pf(Ao.effect,{label:DR,tileWord:YJ,values:BR,fallback:"none",word:e=>VJ[e],picture:e=>qJ[e](),read:(e,o)=>js(e,o).effect}),wy=(e,o,t,r,a)=>ff(e,Oo(t,r,a.min,a.max,a.step,a.default,"%"),(n,s)=>js(n,s)[o]);function hn(){let e={[AR]:zJ(DR,{dot:XJ}),...JJ(),[RR]:UJ(),...wy(Ao.zoom,"zoom","Zoom",yt(WJ,{}),KJ),...wy(Ao.start,"start","Start",yt(LR,{}),jJ),...wy(Ao.end,"end","End",yt(LR,{}),GJ)};return _a(e,ZJ)}import{jsx as jo}from"react/jsx-runtime";import{AccentIcon as QJ,ContrastIcon as eQ,EyeIcon as oQ,ExpandIcon as tQ,FinishIcon as rQ,ImagesIcon as aQ,NoSymbolIcon as HR,HoverLiftIcon as nQ,HoverNextImageIcon as sQ,HoverRotateIcon as lQ,HoverZoomIcon as WR,OpacityIcon as iQ}from"efficient-easel/icons";import{customize as dQ,describedAs as UR,group as cQ}from"efficient-easel/screen/lib/document/box-fields";import{effectTiles as zR}from"efficient-easel/screen/lib/document/effect-tiles";import{deviceField as Ro}from"efficient-easel/screen/lib/document/device-fields";import{NoControlMark as fQ,noControlField as pQ}from"efficient-easel/screen/lib/document/panel-no-control-mark";var fu=e=>Ro("desktop",cQ("Hover",{dot:e})),$R=()=>Ro("desktop",dQ()),uQ="What this does when a shopper points at it, or taps it on a phone.",mQ="What this picture does when a shopper points at it. Black and white shows it in grey until then. A phone shows its colour.",hQ="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.",xQ="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.",IQ="When this shows. On card hover shows it while a shopper points at the card. A phone always shows it.",gQ="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.",bQ="Which of the product's pictures the card shows.",yQ="Same finish shows the photos of the finish the card shows, else the first group.",SQ="Whole card hides the words under the photo. Picture keeps the words and swatches in view.",wQ={none:()=>jo(HR,{}),nextImage:()=>jo(sQ,{}),rotate:()=>jo(lQ,{}),zoom:()=>jo(WR,{}),lift:()=>jo(nQ,{}),mono:()=>jo(eQ,{})};function Cy(e,o){let t=zR({label:i("Hover effect"),options:e.map(r=>({value:r,label:i(Un[r]),picture:wQ[r]()})),fallback:o});return UR(t,{type:"select",label:"Hover effect",options:e.map(r=>({value:r,label:Un[r]}))})}function GR(){return{[Sr]:fu({field:pt,in:fh.filter(e=>e!=="none")}),[pt]:Ro("desktop",{...Cy(fh,"none"),description:uQ})}}function jR(e){let o=XC(e),t=Qd(),r=ZE(UC);return{[Sr]:fu({any:[o,t]}),[so.kind]:Ro("desktop",{...Gs(Cy(NC,e),(a,n)=>qC(n??{},e)),description:gQ}),...vy(t),[MC]:pQ({type:"custom",render:()=>jo(fQ,{})},"always"),_cHover:$R(),[so.angle]:Ro("desktop",oo(Gs(r,a=>YC(a)),o)),[so.duration]:Ro("desktop",oo(zs("hover"),o)),[so.delay]:Ro("desktop",oo($s("hover"),o))}}function vy(e){let o=st("Type",jo(aQ,{}),zC.map(a=>({value:a,label:$C[a]})),Jd.kind),t=Cs("Group",jo(rQ,{}),GC.map(a=>({value:a,label:jC[a]})),Jd.group),r=Cs("Covers",jo(tQ,{}),KC.map(a=>({value:a,label:VC[a]})),Jd.cover);return{[so.mediaKind]:Ro("desktop",oo({...o,description:bQ},e)),[so.mediaGroup]:Ro("desktop",oo({...t,description:yQ},e)),[so.cover]:Ro("desktop",oo({...r,description:SQ},e))}}function ky(e,o="",t=xh.includes(o)){let r=Ih(e),a=tv(e);return{[Sr]:fu(r),[so.kind]:Ty(ZC,e,mQ),...xh.includes(o)?vy(Qd()):{},_cHover:$R(),...t?KR():{},[so.duration]:Ro("desktop",oo(zs("hover"),a)),[so.delay]:Ro("desktop",oo($s("hover"),a))}}function KR(e=!1){let o=a=>e?a:oo(a,ov()),t=Oo("Zoom",jo(WR,{}),zn.min,zn.max,zn.step,zn.min,zn.unit),r=Oo("Darken on hover",jo(iQ,{}),oa.min,oa.max,oa.step,oa.fallback,oa.unit);return{[uh.zoom]:Ro("desktop",o(t)),[uh.darken]:Ro("desktop",o(r))}}function Ty(e,o,t){let r=Ro("desktop",{...Gs(Cy(e,o),a=>QC({[pt]:a},o,e)),description:t});return Object.assign(r,{[VR]:o})}var VR="sfPictureResting",MR=new WeakMap;function wLe(e,o,t){let r=e[so.kind],a=r?.[VR];if(!r||!a)return e;let n=o.props?.[pt]==="nextImage",s=n?null:dc(t.appState,o.props?.id);if(!n&&!HC.includes(String(s?.type??"")))return e;let l=MR.get(e);return l||(l={...e,[so.kind]:Ty(ph,a,hQ)},MR.set(e,l)),l}var CQ="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.",vQ={none:()=>jo(HR,{}),[ih]:()=>jo(QJ,{})},CLe=Ro("desktop",{...UR(zR({label:i("Hover effect"),options:dh.map(e=>({value:e,label:i(ch[e]),picture:vQ[e]()})),fallback:"none"}),{type:"select",label:"Hover effect",options:dh.map(e=>({value:e,label:ch[e]}))}),description:CQ}),kQ=Ro("desktop",{...Cs("Show",jo(oQ,{}),[{value:hh,label:"Always"},{value:mh,label:"On card hover"}],hh),description:IQ});function qR(){let e={any:[Ih("none"),{field:pt,is:ih},{field:Ea,is:mh}]},{[Sr]:o,[so.kind]:t,...r}=ky("none","",!0);return{[Sr]:fu(e),[so.kind]:t,[Ea]:kQ,...vy(Qd()),...r,...KR(!0)}}var vLe=Ty(ph,"none",xQ);import{jsx as Wi}from"react/jsx-runtime";import{isNodeList as OQ}from"efficient-easel/data";import{useEasel as _Q}from"efficient-easel/easel";import{hiddenInView as AQ,hiddenKeyOf as Ey,hidePatch as RQ,slotChildName as LQ,slotChildRowName as FQ}from"efficient-easel/draw";var pu=null;function Py(e){pu=e}function YR(){return!!(pu&&pu.state().lockHolder)}function xn(){return pu!==null}var TQ=new Set(["BookingBox","SubmitBox"]);function PQ(e){return typeof e=="string"&&TQ.has(e)}var EQ=wT(PQ,YR);function uu(e,o){return EQ(e)||hI(o)}var mu=(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 BQ}from"efficient-easel/screen/lib/document/device-fields";import{NoControlMark as DQ}from"efficient-easel/screen/lib/document/panel-no-control-mark";var XR="notCardOfTemplate",ZR={not:{context:XR,is:!0}},Oy={any:[tc,ZR]},jLe={[XR]:(e,o)=>{let t=Fh(o.appState,e.props?.id);return t===void 0?void 0:t===null}};function hu(e){let o=e.props?.content;return OQ(o)?o:[]}var Iu=(e,o)=>AQ(e.props??{},o),NQ=(e,o)=>e.props?.[Ey(o)]!==void 0;function JR(e,o=()=>!1,t="desktop"){return hu(e).flatMap(r=>typeof r?.props?.id!="string"?[]:hu(r).length&&!Iu(r,t)?JR(r,o,t):o(r)?[]:[r])}function MQ(e,o,t,r="desktop"){let a=JR(e,t,r).map(l=>({child:l,name:o(l)})),n=new Set(a.map(l=>l.name)),s=new Set;return a.map(({child:l,name:d})=>{let c=d;if(s.has(d)){let f=2;for(;n.has(`${d} ${f}`);)f+=1;c=`${d} ${f}`,n.add(c)}return s.add(d),{id:l.props.id,label:c,shown:!Iu(l,r)}})}function xu(e,o,t){let r=a=>t==="desktop"?Iu(a,t):NQ(a,t);return hu(e).flatMap(a=>r(a)?o(a)?[]:[a,...xu(a,o,t)]:xu(a,o,t))}function HQ(e,o){let t={...e};for(let[r,a]of Object.entries(o))a===void 0||r===Ey("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 _y(e,o,t){let r=hu(e),a=!1,n=r.map(s=>{if(a)return s;let l=s;if(s?.props?.id===o){let d=HQ(s.props,t(s.props));d!==s.props&&(l={...s,props:d})}else l=_y(s,o,t);return a=l!==s,l});return a?{...e,props:{...e.props,content:n}}:e}function QR(e,o,t,r="desktop"){return _y(e,o,a=>r==="desktop"&&Iu({props:a},r)===!t?{}:RQ(a,r,!t))}function WQ(e,o,t){return t==="desktop"?QR(e,o,!0,t):_y(e,o,()=>({[Ey(t)]:void 0}))}function UQ(e,o,t,r,a,n){return LQ(e).trim()?t(e):Nv({ownerType:o,owner:r,fields:a,slot:n},Zt(e.props))?.label??t(e)}var zQ="This page is read-only.";function $Q({card:e,ownerType:o,owner:t,fields:r,slot:a,labelOf:n,write:s,readOnly:l,view:d="desktop"}){let c=p=>FQ(p,n,yr,void 0,mu),f=p=>uu(p.type,p),u=MQ(e,p=>UQ(p,o,c,t,r,a),f,d);return u.length?Wi(Ts,{parts:u,changed:xu(e,f,d).length>0,shown:p=>u.find(h=>h.id===p)?.shown??!0,disabledReason:l?zQ:void 0,onPress:(p,h)=>s(I=>QR(I,p,h,d)),onReset:()=>s(p=>xu(p,f,d).reduce((h,I)=>WQ(h,String(I.props.id),d),p))}):Wi(DQ,{})}function GQ(){try{let e=_Q(a=>a),o=e.config.components??{},t=e.selectedItem;if(!t)return null;let r=Fh(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:Uv(e.appState,r),slot:Wv(e.appState,t.props?.id)??void 0}}catch{return null}}function jQ({readOnly:e,view:o}){let t=GQ(),r=ta();return t?Wi($Q,{...t,view:o,readOnly:e,write:a=>{e||r(n=>{let s={...t.card,props:n},l=a(s);return l===s?null:{content:l.props.content}})}}):Wi(Ts,{parts:[],changed:!1,shown:()=>!0,onPress:()=>{},onReset:()=>{}})}function KLe(e){return oo(BQ(e,{type:"custom",render:({readOnly:o})=>Wi(jQ,{readOnly:o,view:e})}),ZR)}import{customize as oee}from"efficient-easel/screen/lib/document/box-fields";import{jsx as Ay}from"react/jsx-runtime";import{DirectionIcon as KQ,LoopMarqueeIcon as VQ,NoSymbolIcon as qQ}from"efficient-easel/icons";import{customize as YQ,describedAs as XQ,group as ZQ}from"efficient-easel/screen/lib/document/box-fields";import{effectTiles as JQ}from"efficient-easel/screen/lib/document/effect-tiles";function Ry(){return jO("Direction",py,Ni,"A marquee cannot run diagonally, so the corners are not answers.",Ay(KQ,{}),GO)}var Ly=e=>ZQ("Loop",e?{dot:e}:void 0),QQ={none:()=>Ay(qQ,{}),scroll:()=>Ay(VQ,{})};function eee(){let e=JQ({label:i("Loop"),options:Qp.map(({value:o,label:t})=>({value:o,label:i(t),picture:QQ[o]()})),fallback:fy});return XQ(e,{type:"select",label:"Loop",options:Qp.map(({value:o,label:t})=>({value:o,label:t}))})}function eL(){return{[eu]:Ly(Di),loop:eee(),_cLoop:YQ(),scrollDirection:oo(Ry(),Di),loopDuration:oo(tu({readsSpeed:!1}),Di),loopDelay:oo(ru(),Di)}}var oL={field:Ea,set:!0};function tee(){let e=qR(),o=[Sr,pt],t=jn(e,Object.keys(e).filter(n=>!o.includes(n)&&n!==Ea),tc),r=jn(t,[Ea],oL),a=jn(r,[pt],Oy);return jn(a,[Sr],{any:[Oy,oL]})}function tL(e,o=""){switch(e){case"section":case"block":return{...jt(),...hn()};case"box":return{...jt(),...hn(),...eL(),...tee()};case"picture":return{...jt(),...hn(),...ky(JC(o),o)};case"textPart":return{...jt(),...hn(),...GR()};case"cards":return{...jt(),...hn(),...jR(WC(o))};case"marquee":return{...jt(),...hn(),[eu]:Ly(),_cLoop:oee(),scrollDirection:Ry(),loopDuration:tu({readsSpeed:!0}),loopDelay:ru()}}}import{ENTRANCE_STATE_ATTR as ree,entranceAttrs as aee,scrollAttrs as nee}from"efficient-shell/format";var aL={},Fy="_partMotion",By=[...Ic,pt,so.duration,so.delay,...du];function wFe(e){return Rs(e,Fy)}function In(e,o){return Pp(e,Fy,o)}var see=new Set([tt.kind,pt,Ao.effect]);function nL(e,o,t,r){let{[t]:a,...n}=In(e,o),s=r==null||r===""||r==="none"&&see.has(t)?n:{...n,[t]:r};return Ep(e,Fy,o,Object.keys(s).length?s:null)}function Dy(e){return{entrance:gc(e),hover:DC(e),scroll:cu(e)}}function sL(e){let o=Dy(e);return o.entrance!==null||o.hover!=="none"||o.scroll!==null}function lL(e,o){let{attrs:t,style:r}=aee(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(ree)}}function iL(e,o){let{attrs:t,style:r}=nee(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 lee=4;function Ny(e){let o;for(let t of e)(!o||t.element.compareDocumentPosition(o.element)&lee)&&(o=t);return o}var iee="data-sf-part-host";function dL(e){let o=e?.ownerDocument.defaultView,t=e;for(;t&&!t.hasAttribute(iee)&&!t.classList.contains(Qn);){let r=o?.getComputedStyle(t).display??"";if(r==="contents")return null;if(r!=="inline")return t;t=t.parentElement}return null}var gu="data-sf-part-lift",rL="sf-part-lift";function cL(e){if(e.getElementById(rL))return;let o=e.createElement("style");o.id=rL,o.textContent=s1(`[${gu}]`).join(`
|
|
5
|
-
`),e.head.appendChild(o)}var fL=new Map,pee=e=>{let o=fL.get(e);return o||fL.set(e,o=gR(tL(e),`part:${e}`)),o},uee=new Set(By);function Ks(e,o,t){let{getItemById:r,getSelectorForId:a}=cee(f=>f),n=fee(),s=r(e)?.props??{},l=In(s,o),d=JSON.stringify(l),c=dee(()=>Object.fromEntries(By.map(f=>[f,l[f]])),[d]);return{part:o,fields:pee(t),values:c,keys:uee,onChange:(f,u)=>{let p=a(e),h=r(e);if(!p||!h)return;let I=nL(h.props??{},o,f,u);n.replaceComponent(p.zone,p.index,{...h,props:I})}}}import{Fragment as mee,createElement as hee}from"react";import{deviceField as My}from"efficient-easel/screen/lib/document/device-fields";var Lo=()=>({type:"custom",render:()=>hee(mee)});var Hy={words:Lo(),sourceNote:Lo(),style:Lo(),font:Lo(),italic:Lo(),fontSize:My("each",Lo()),lineHeight:Lo(),letterSpacing:Lo(),paragraphSpacing:Lo(),padding:Lo(),align:My("each",Lo()),letterCase:Lo(),fixedSizeHint:My("each",Lo()),regionNote:Lo(),regionStyle:Lo()},xee=["fontSize","align"];function pL(e){return xee.includes(e)}var uL={showTicker:Lo(),items:Lo()};var Pee="root:default-zone";function mL({heroId:e}){let{appState:o,dispatch:t}=See(h=>h),r=o.data.content??[],a=r.findIndex(h=>h.props.id===e),n=a>=0?r[a]:null,s=n?n.props.showTicker??!0:!0,l=yee(()=>{let h=n?.props.tickerItems;return Array.isArray(h)?h:_A.map(I=>({text:I}))},[n]),d=bee(),c=Tee(),f=h=>kee(uL[h],c),u=Ks(e,AA,"block");if(!n)return gn("p",{className:"sf-note",children:i("This ticker\u2019s hero is no longer on the page.")});let p=h=>t({type:"replace",destinationZone:Pee,destinationIndex:a,data:{...n,props:{...n.props,...h}}});return gn(Kt,{motion:u,body:gee(Iee,{children:[!f("showTicker")&&!f("items")&&gn(un,{}),f("showTicker")&&gn(wee,{label:i("Show ticker"),labelId:d,icon:gn(vee,{}),action:gn(Cee,{checked:s,onChange:h=>p({showTicker:h}),ariaLabelledBy:d})}),f("items")&&gn(Pg,{label:Tg.label,icon:Tg.icon,items:l,placeholder:"item",onChange:h=>p({tickerItems:h}),markup:!0})]})})}import{jsx as oe,Fragment as Ki,jsxs as St}from"react/jsx-runtime";import{useContext as Xee,useEffect as Wy,useRef as Zee,useState as FL}from"react";import{FieldSelect as Jee,InspectorField as Qee,fieldShownInView as eoe}from"efficient-easel/fields";import{InertHint as $L,SettingsField as ooe}from"efficient-easel/panel";import{InspectorUpLevel as Tu}from"efficient-easel/chrome";import{StylesIcon as toe,TypeIcon as roe}from"efficient-easel/icons";import{useEasel as aoe}from"efficient-easel/easel";import{TextPartPanel as BL}from"efficient-easel/copy";import{Button as noe,IconButton as soe,Tooltip as loe}from"efficient-shell/ui";import{jsx as IL,jsxs as Eee}from"react/jsx-runtime";import{DEFAULT_EASEL_STRINGS as Oee}from"efficient-easel/strings";import{COPY_CELLS as Vs,COPY_CELL_LENGTHS as hL,CopyBox as _ee,lengthCellUnits as Aee}from"efficient-easel/copy";import{PaddingYIcon as Ree}from"efficient-easel/icons";import{onDesktopWords as Lee}from"efficient-easel/screen/lib/document/box-fields";var xL=Oee.copy.cells,Fee={kind:"spacing"},Bee=["left","center","right","justify"];function bu(e,o,t,r="desktop"){let a=Si(e),n=ub(r),s=e[n]??e.size??o.sizePx,l=u1(e,r),d=(f,u,p,h,I)=>{let g=gt[p];return Aee({preset:f,row:u,table:qa,unit:e[g],value:e[p],tier:r,styleValue:h,label:i(I),onPick:(C,w)=>t({[g]:C??null,[p]:w??null}),onChange:(C,w)=>t({...w?{[g]:w.unit??null}:{},[p]:C??null})})},c={key:"padding",name:i("Padding"),icon:IL(Ree,{}),unit:"px",step:db,shiftStep:10,min:lb,max:ib};return[{...Vs.fontSize,key:"fontSize",value:e[n],styleValue:Math.round(o.sizePx),onChange:f=>t({[n]:f??null}),...d(Vs.fontSize,hL.fontSize,n,Math.round(o.sizePx),xL.fontSize),...n==="size"?{}:{reset:{detail:l?Lee(f=>i(f),`${l.px}px`,l.view):void 0}}},{...Vs.lineHeight,key:"lineHeight",value:a.lineHeight,styleValue:o.lineRatio,onChange:f=>t(f===void 0?{lineHeight:null,line:null}:{lineHeight:f})},{...Vs.letterSpacing,key:"letterSpacing",scale:s,value:a.letterSpacingEm,styleValue:o.letterEm,onChange:f=>t(f===void 0?{letterSpacing:null,letter:null}:{letterSpacing:f})},{...Vs.paragraphSpacing,key:"paragraphSpacing",value:e.paragraphSpacing,styleValue:0,onChange:f=>t({paragraphSpacing:f??null}),...d(Vs.paragraphSpacing,hL.paragraphSpacing,"paragraphSpacing",0,xL.paragraphSpacing)},{...c,value:e.padding,styleValue:o.paddingPx,onChange:f=>t({padding:f??null}),...d(c,Fee,"padding",o.paddingPx,"Padding")}]}function gL({text:e,onTextChange:o,multiline:t,markup:r=!0,styled:a=!0,style:n,base:s,setValue:l,colors:d,placeholder:c,ariaLabel:f,head:u,typedOnCanvas:p=!1}){let h=bu(n,s,l),I=Ug(r,t);return Eee("div",{className:"sf-part-textbox",children:[u,IL(_ee,{value:e,onChange:o,multiline:t,placeholder:c,ariaLabel:f,rules:Yd,tools:I,barShows:p?"focus":"always",colors:r?d:[],colorNameOf:rt,align:a?{value:n.align??s.align,allow:Bee,onChange:g=>l({align:g})}:void 0,letterCase:a?{value:n.case==="capitalize"?"":n.case??"",onChange:g=>l({case:g||null})}:void 0,cells:a?h:void 0})]})}import{UiIcon as DL}from"efficient-easel/draw/client";import{jsx as yu,Fragment as Dee,jsxs as Nee}from"react/jsx-runtime";import{Button as bL,Dialog as Mee}from"efficient-shell/ui";function yL({styleName:e,onCancel:o,onConfirm:t}){return yu(Mee,{open:!0,onClose:o,role:"alertdialog",size:"sm",title:i("Update {style}?",{style:e}),footer:Nee(Dee,{children:[yu(bL,{variant:"secondary",onClick:o,children:i("Cancel")}),yu(bL,{variant:"primary",onClick:t,children:i("Update style")})]}),children:yu("p",{children:i("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 ioe}from"efficient-easel/screen/components/ScreenDocumentContext";import{usePreviewDevice as doe}from"efficient-easel/draw/client";import{shownTier as vu}from"efficient-easel/screen/lib/document/device-fields";import{jsx as Hee}from"react/jsx-runtime";import{createContext as Wee,useContext as Uee,useMemo as zee,useState as $ee}from"react";var Gee={partStyle:null,setPartStyle:()=>{}},SL=Wee(Gee);function mBe({children:e}){let[o,t]=$ee(null),r=zee(()=>({partStyle:o,setPartStyle:t}),[o]);return Hee(SL.Provider,{value:r,children:e})}function wL(){return Uee(SL)}import{TEXT_FIELD_MARKER as coe,viewKeyAt as foe}from"efficient-easel/draw";import{useSectionOps as poe}from"efficient-easel/screen/lib/document/use-section-ops";var Ui="@name",CL="@body",vL="@value",kL={[Ui]:"Name",[CL]:"Body",[vL]:"Value"},jee={TimelineTrack:{"entries.date":Ui,"entries.title":Ui,"entries.blurb":CL},Footprint:{"offices.city":Ui},Stats:{"items.label":Ui,"items.value":vL}};function Kee(e){let{key:o,row:t}=$t(e);return t?`${o}.${t.rowKey}`:null}function zi(e,o){if(!e)return o;let t=Kee(o);return t?K(jee,e)?.[t]??o:o}import{useEaselHost as uoe}from"efficient-easel/screen/lib/host";function Vee(e){let o=new Set([...Object.keys(K(uf,e)??{}),...K(mf,e)??[]]);for(let[t,r]of Object.entries(K(qx,e)??{}))r.verb==="snapshot"&&o.add(t);return[...o].sort()}var qee={CollectionCard:"product",FooterMenu:"menu",Gallery:"product",GalleryItem:"product",ProductGrid:"product",ProductHero:"product",SpecTable:"product",Events:"blog",FeaturedCover:"blog",LongRead:"blog",SubscribeBlogs:"blog"},TL={product:"Synced from the product.",blog:"Synced from the blog post.",menu:"Synced from the site menu."},PL="Open",EL={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 qs(e){let o=e?.source?.slug;return Se(o)}function $i(e){return K(qee,e)??null}function OL(e,o){let t=$i(e);return t&&Vee(e).includes(o)?t:null}function Su(e){let o=e?.menu?.id;return Se(o)}var Gi={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)]"},Yee={tag:{label:"Tag",follows:"Labels",builtIn:Vn(Gi.tag),writable:!0},name:{label:"Name",follows:"Heading 2",builtIn:Vn(Gi.name),writable:!0},body:{label:"Body",follows:"Body",builtIn:Vn(Gi.body),writable:!0},price:{label:"Price",follows:"Labels",builtIn:Vn(Gi.price),writable:!0},link:{label:"Link",follows:"Labels",builtIn:Vn(Gi.link),writable:!0}},_L=Yee;var wu={entry:{label:"Entry",follows:"Labels",builtIn:"13px",writable:!0},number:{label:"Entry number",follows:"Labels",builtIn:"13px",writable:!0}};var _Be=sc,AL={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 RL={SpecTable:AL,FAQ:vv,Collections:_L,Contents:wu};function LL(){return Vd("efficient.section-text-regions",()=>new Map)}function MBe(e){let o=LL();for(let[t,r]of Object.entries(e)){if($e(RL,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 Cu(e){return e?K(RL,e)??LL().get(e)??null:null}function Uy(e){return e?i(e):null}function NL(e){return e.kind==="role"?lh[e.role]:e.kind==="custom"?"Custom":null}function moe(e){let o=br(e.role);return o?{kind:"role",role:o}:null}function hoe(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 ku(e,o,t,r){return moe(yi(e,o))??hoe(t,r)}function xoe(e,o){if(!e.length)return null;let t=o(e[0]);return e.every(r=>o(r)===t)?t:null}function ML(e){return[{value:ji,label:i("No style"),description:i("Section\u2019s own")},...e.map(o=>({value:o.id,label:o.name,description:o.values.font?Hn(o.values.font)?.label:void 0}))]}var ji="";function Ioe({face:e,base:o,onPick:t}){let r=e.kind==="role"?e.role:ji,a=[{label:i("No style"),value:ji},...TC.map(n=>({label:i(lh[n]),value:n}))];return oe(Jee,{ariaLabel:i("Style"),value:r,options:a,inline:!0,onChange:n=>t(n===ji?null:n),renderOption:n=>n.value===ji?St(Ki,{children:[oe("span",{className:"es-fsel-label sf-part-style-keep",children:n.label}),oe("span",{className:"sf-part-style-aside","aria-hidden":"true",children:i("Section\u2019s own")})]}):oe("span",{className:"es-fsel-label",style:{fontFamily:`var(--font-role-${n.value})`},children:n.label}),renderValue:()=>oe("span",{style:{fontFamily:o?.fontKey?`var(${Hn(o.fontKey)?.cssVar})`:void 0,fontWeight:o?.weight},children:Uy(NL(e))}),valueText:n=>Uy(NL(e))??n?.label??""})}var GL=["regionNote","regionStyle"],goe=Object.keys(Hy).filter(e=>!GL.includes(e));function jL(e,o){return!e.some(o)}function boe({sectionName:e,onBack:o,textEditor:t,styleRow:r,children:a,tabs:n}){let s=St(Ki,{children:[t,r,a]});return St("div",{className:"sf-part-panel",children:[oe(Tu,{inline:!0,name:i(e),onSelect:o}),n?n(s):s]})}function Pu({source:e,slug:o,menuId:t}){let r=uoe(),a=EL[e],n=!a.needsSlug||!!o;return oe("div",{className:"sf-note sf-note--source",children:St($L,{children:[i(TL[e]),n?St(Ki,{children:[" ",oe(noe,{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:i(PL)})]}):null]})})}var HL=4,yoe=120;function WL(e){return i("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:i(e.label).toLowerCase()})}function UL({region:e,sizePx:o,face:t,base:r,onFollowStyle:a,source:n,slug:s,onBack:l,shows:d,sizedStyle:c,ownLook:f}){let u=e.follows;return St("div",{className:"sf-note",children:[oe("p",{children:oe("strong",{children:i(e.label)})}),d("regionNote")&&!f&&oe("p",{children:o?i("Its size follows Styles \u25B8 {follows} \u2014 {px}px right now.",{follows:i(u),px:Math.round(o)}):i("Its size follows Styles \u25B8 {follows}.",{follows:i(u)})}),c?St(Ki,{children:[c,d("regionStyle")&&oe("p",{className:"es-field-hint",children:WL(e)})]}):a?d("regionStyle")?oe(Ki,{children:oe(ooe,{label:i("Style"),icon:oe(toe,{}),hint:WL(e),children:oe(Ioe,{face:t,base:r,onPick:a})})}):null:d("regionNote")&&oe("p",{className:"es-field-hint",children:i("Only the size follows a site style. This section sets its own font, weight and letter case.")}),n&&d("sourceNote")?oe(Pu,{source:n,slug:s}):null,jL([...GL,"sourceNote",...c?["fontSize"]:[]],p=>d(p)&&(p!=="sourceNote"||!!n))&&oe(un,{}),oe(Tu,{inline:!0,name:i("Page"),onSelect:l})]})}function Soe({onBack:e}){return St("div",{className:"sf-note",children:[oe("p",{children:oe("strong",{children:i("This part is no longer here.")})}),oe("p",{children:i("The section it belonged to has been changed or removed.")}),oe(Tu,{inline:!0,name:i("Page"),onSelect:e})]})}function woe({onBack:e,partId:o,why:t}){return St("div",{className:"sf-note",children:[oe("p",{children:oe("strong",{children:i("This part's settings did not open.")})}),oe("p",{children:i("The words are still on your page and nothing has been lost. The editor could not work out which control belongs to them, which is a fault on our side. Go back and click the section to open its settings instead.")}),oe("p",{className:"sf-note-detail",children:St("code",{children:[o," \u2014 ",t]})}),oe(Tu,{inline:!0,name:i("Page"),onSelect:e})]})}function KL({nodeId:e,propKey:o,onBack:t,onEditStyle:r}){let{getItemById:a,getSelectorForId:n,config:s}=aoe(V=>V),l=poe(),d=S_(),{partStyle:c}=wL(),{fonts:f,textStyles:u}=he(),p=Xee(ioe),h=!p?.capabilities?.hasSiteTheme,{persist:I}=hs({themeFromDocument:h,tokenRef:p?.tokenRef,siteId:p?.siteId??null}),g=Mp({themeFromDocument:h,persist:I}),[C,w]=FL(!1),T=doe(),y=V=>(vu(T)!=="tablet"||pL(V))&&eoe(Hy[V],T),b=Zee(null),P=a(e),H=n(e),E=P?s.components[P.type]:void 0,{key:W,row:O}=$t(o),D=E?.fields?.[W],v=O?_s(D,O):D,_=ip(e,o),A=P?.props??{},F=Ps(v),z=Yf(v),$=Rg(v),X=P?$i(P.type):null,ee=P?OL(P.type,W):null,Fe=O?ui(A[W],O):A[W],Oe=!!O&&!(Array.isArray(A[W])&&O.index<A[W].length);Wy(()=>{y_(document)||b.current?.querySelector(".es-copy [contenteditable='true'], .es-copy textarea, .sf-copybox textarea, .sf-copybox input")?.focus()},[_]);let[ze,Ke]=FL(0);Wy(()=>Ke(0),[_]);let be=!!P&&!Oe&&(!H||!v);Wy(()=>{if(!be||ze>=HL)return;let V=setTimeout(()=>Ke(no=>no+1),yoe);return()=>clearTimeout(V)},[be,ze]);let Te=be&&ze<HL,_e=Ks(e,zi(P?.type,o),"textPart");if(!P||Oe)return oe(Soe,{onBack:t});let Ne=Cu(P.type),ao=Ne?Tl(Ne,o):null;if(Ne&&ao){let V=c?.partId===_?c:null,no=Ne[ao],At=no.writable===!0&&!!H,zr=ka=>{H&&l.replaceComponent(H.zone,H.index,{...P,props:an(A,o,"role",ka)})};if(At&&Cv(no)){let ka=yi(A,o),hC=Ta=>{if(!H)return;let nh=A;for(let[l3,i3]of Object.entries(Ta))nh=an(nh,o,l3,i3??null);l.replaceComponent(H.zone,H.index,{...P,props:nh})},a3=Br(g.saved,g.old),n3=sb(ka)??"",s3=bu(ka,V?.base??zL,hC,vu(T)).filter(Ta=>Ta.key==="fontSize"&&y(Ta.key));return oe(Kt,{motion:_e,body:oe(UL,{region:no,sizePx:V?.base.sizePx??null,face:ku(A,o,V,f),base:V?.base??null,source:X,slug:qs(A),onBack:t,shows:y,ownLook:h1(ka),sizedStyle:oe(BL,{style:y("style")?{value:n3,options:ML(a3),onChange:Ta=>hC(Ta?{textStyle:Ta}:{textStyle:null,role:null}),onEditStyles:r}:void 0,cells:s3})})})}return oe(Kt,{motion:_e,body:oe(UL,{region:no,sizePx:V?.base.sizePx??null,face:ku(A,o,V,f),base:V?.base??null,onFollowStyle:At?zr:void 0,source:X,slug:qs(A),onBack:t,shows:y})})}if(!H||!v)return Te?oe("div",{className:"sf-note","aria-busy":"true"}):oe(woe,{onBack:t,partId:_,why:H?"no field":"no selector"});let yo=V=>{l.replaceComponent(H.zone,H.index,{...P,props:V})},ie=V=>{if(la(V).hidden!==la(Fe).hidden||!F){let no=O?_g(A,W,O,V):{...A,[W]:V};no&&yo(no);return}fp({node:P,propKey:o,kind:F,zone:H.zone,index:H.index},la(V).text,l.replaceComponent)},Me=Fe,Ve=c?.partId===_?c:null,J=Ve?.styleOwner,Ae=J?a(J.owner):null,ft=J&&Ae?n(J.owner):null,fo=!!(J&&Ae&&ft),M=fo?Ae.props??{}:A,Le=fo?V=>l.replaceComponent(ft.zone,ft.index,{...Ae,props:V}):yo,ye=fo?J.kind:zi(P?.type,o),po=yi(M,ye),Be=[{partKey:ye,face:ku(M,ye,Ve,f),sizeGroup:Ve?.sizeGroup??null,base:Ve?.base??zL,style:po}],_t=xoe(Be,V=>V.sizeGroup),hr=fs(Ve?.inks),Ze=(V,no)=>{let At=M;for(let zr of Be)At=an(At,zr.partKey,V,no);Le(At)},xr=V=>V?Ze("textStyle",V):ya({textStyle:null,role:null}),ya=V=>{let no=M;for(let At of Be)for(let[zr,ka]of Object.entries(V))no=an(no,At.partKey,zr,ka??null);Le(no)},Nn=F==="text"||F==="textarea",{text:Mn,hidden:Ir}=la(Fe),Ur=v?.[coe]?.label??o,Sa=Ir?i("Show {label} on the slide",{label:i(Ur)}):i("Hide {label} on the slide",{label:i(Ur)}),gl=St("div",{className:"sf-field-head",children:[oe(roe,{}),oe("span",{className:"sf-field-label sf-field-label--inline",children:i(Ur)}),Nn&&oe(loe,{content:Sa,children:oe(soe,{"aria-pressed":Ir,"aria-label":Sa,onClick:()=>ie({text:Mn,hidden:!Ir}),children:Ir?oe(DL,{name:"eye-off",size:14}):oe(DL,{name:"eye",size:14})})})]}),wa=!z&&$,jd=!!F&&(EO(v)||z||Ir||!$),bl=ku(M,ye,Ve,f),Kd=bl.kind==="role"?bl.role:null,Ca=sb(po)??_1(Kd),mC=Br(g.saved,g.old),Q5=Object.entries(po).filter(([V,no])=>V!=="role"&&V!=="textStyle"&&no!==void 0).length,e3=()=>{let V=M;for(let no of Be){let{role:At,textStyle:zr}=no.style;V=c1(V,no.partKey),At&&(V=an(V,no.partKey,"role",At)),zr&&(V=an(V,no.partKey,"textStyle",zr))}Le(V)},va=Ca,o3=A1(Be[0].style),t3=va?mC.find(V=>V.id===va)?.name??va:"",r3=()=>{w(!1),va&&(g.write(R1({saved:g.saved,old:g.old,styleId:va,values:vb(Be[0].style)}),!0),e3())};return St(boe,{sectionName:E?.label??P.type,onBack:t,tabs:V=>oe(Kt,{motion:_e,body:V}),textEditor:y("words")?oe("div",{ref:b,className:"sf-part-text",children:jd?oe(gL,{text:Mn,onTextChange:V=>ie(Nn?{text:V,hidden:Ir}:V),multiline:ap(F),markup:F!=="plainText",styled:!1,style:Be[0].style,base:Be[0].base,setValue:ya,colors:hr,placeholder:Uy(JO(v))??void 0,ariaLabel:i(Ur),head:gl,typedOnCanvas:d===_}):F?Nn?gl:null:oe(Qee,{field:v,name:o,value:Me,onChange:ie,id:`sf-part-${e}-${o}`})}):void 0,children:[ee&&y("sourceNote")&&oe(Pu,{source:ee,slug:qs(A),menuId:Su(A)}),wa&&oe(BL,{style:y("style")?{value:Ca??"",options:ML(mC),onChange:V=>xr(V||null),changed:Q5>0,onEditStyles:r,onUpdateStyle:va&&o3?()=>w(!0):void 0}:void 0,font:y("font")?{value:po.font??"",styleValue:Hn(Be[0].base.fontKey)?.label,options:$r.map(V=>({label:V.label,value:V.key})),onChange:V=>Ze("font",V||null)}:void 0,italic:y("italic")?{value:po.italic,styleValue:voe(u,Ca),onChange:V=>Ze("italic",V??null)}:void 0,cells:bu(Be[0].style,Be[0].base,ya,vu(T)).filter(V=>y(V.key)),align:y("align")?Coe(po,Be[0].base.align,vu(T),Ze):void 0,letterCase:y("letterCase")?{value:po.case??"",styleValue:Be[0].base.case,onChange:V=>Ze("case",V||null)}:void 0}),C&&va&&oe(yL,{styleName:t3,onCancel:()=>w(!1),onConfirm:r3}),wa&&_t===null&&y("fixedSizeHint")&&oe($L,{children:i("Fixed size \u2014 the site\u2019s Text setting doesn\u2019t resize this.")}),jL(goe,V=>y(V)&&(V==="words"||(V==="sourceNote"?!!ee:V==="fixedSizeHint"?wa&&_t===null:wa)))&&oe(un,{})]})}function Coe(e,o,t,r){let a=foe("align",t),n=p1(e,t);return{value:e[a]??"",styleValue:n??o,onChange:s=>r(a,s||null)}}function voe(e,o){return!o||!Array.isArray(e)?!1:e.find(t=>t?.id===o)?.values?.italic===!0}var zL={fontKey:"",sizePx:16,weight:400,lineRatio:1.4,letterEm:0,align:"left",case:"none",paddingPx:0};import{jsx as Vt,jsxs as Yy,Fragment as Roe}from"react/jsx-runtime";import{useCallback as Loe,useRef as Foe,useState as Yi}from"react";import{InspectorIconButton as Boe}from"efficient-easel/chrome";import{useEasel as Doe}from"efficient-easel/easel";import{PopupMenu as Noe,PopupMenuItem as Moe,PopupMenuLabel as Fu}from"efficient-shell/ui";import{CopyToPageIcon as Hoe}from"efficient-easel/icons";import{useEaselSession as Woe}from"efficient-easel/screen/lib/session-context";import{cloneNodeWithFreshIds as Uoe}from"efficient-easel/screen/lib/document/section-doc";import{FOOTER_TYPE as zoe}from"efficient-easel/draw";import{currentEaselSession as koe}from"efficient-easel/screen/lib/session";var Toe={general:!0,commerce:!0,service:!0};function zy(e){let o=e?.sets;return o?Object.fromEntries(yC.map(t=>[t,o.includes(t)])):Toe}function $y(e=koe()){return zy(e.blocks)}import{isBackendError as Ys}from"efficient-easel/screen/lib/backend-error";import{isEfficientBackend as tF}from"efficient-easel/screen/lib/session";var Eu=Ac(),Gy=Eu.set;function Ou(e,o){Gy(e,o)}function _u(e,o){let t=Eu.get(e);Gy(e,o??(t==="live"?"changed":t))}function Au(e,o){Gy(e,o??"live")}function VL(e){return Eu.get(e)}function qL(e){return Eu.use(e)}function YL(e,o){return e==="live"&&o?"changed":e}function jy({live:e,onPress:o,busy:t=!1,pinnedUnpublished:r=!1,goingLive:a}){let n=e==="live"&&!r,s=e==="changed"?i("Changes not live yet"):e==="never"?i("Never published"):r?i("Header and footer not live yet"):e==="live"?i("Everything is live"):null;return{label:i("Publish"),tooltip:e==="never"?i("Put this page on your site"):i("Put your changes on your site"),status:s,quiet:n?{label:i("Published"),reason:i("Everything is live")}:null,...a&&a.length?{goingLive:a}:{},onPress:o,busy:t}}function XL(e){return e.map(o=>o.change==="take_down"?i("{name} (taken down)",{name:o.name}):o.name)}var ZL="SharedSection",Poe=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i,Vi=e=>{let o=e?.content;return Array.isArray(o)?o:[]},qi=e=>{let o=e?.props?.id;return typeof o=="string"?o:void 0};function JL(e){if(e?.type!==ZL)return null;let o=e.props?.section;return typeof o=="string"&&Poe.test(o)?o.toLowerCase():null}function QL(e){let o=[];for(let t of Vi(e)){let r=JL(t),a=qi(t);r&&a&&o.push({refId:a,section:r})}return o}function Ru(e){let o=Vi(e)[0];return o&&typeof o=="object"&&qi(o)?o:null}function Eoe(e,o){return{type:ZL,props:{id:e,section:o}}}function eF(e,o){let t=new Map,r=new Set,a=!1,n=Vi(e).map(s=>{let l=JL(s),d=qi(s);if(!l||!d||r.has(l))return s;let c=Ru(o.get(l)),f=qi(c??void 0);return!c||!f||t.has(f)?s:(r.add(l),t.set(f,{section:l,refId:d,reference:s}),a=!0,c)});return{working:a?{...e,content:n}:e,held:t}}function oF(e,o,t){let r=new Map,a=!1,n=Vi(e).map(s=>{let l=qi(s),d=l?o.get(l):void 0,c=d?t.get(d.section):void 0;if(!d||!c||r.has(d.section))return s;let f=Vi(c).slice(1),u=Ru(c);return r.set(d.section,u===s?c:{...c,content:[s,...f]}),a=!0,d.reference??Eoe(d.refId,d.section)});return{page:a?{...e,content:n}:e,docs:r}}function qy(e){return!!(e?.publish&&e.liveState)}function Ooe(e,o){if(!qy(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,l)=>r.call(e,s,l,o),restore:(s,l)=>a.call(e,s,l??{},o),preview:s=>n.call(e,s,o)}}function _oe(e,o){return async(t,r)=>{try{await x0()}catch(a){throw new Error(i("A change waiting to go live could not be saved."),{cause:a})}return(await e.publish(o)).state==="live"?If({state:"live",changes:[]}):Or(0),{version:r??null}}}function Vy(e,o,t){let r=o?{siteId:o}:void 0;return{resolve:a=>e.load({slug:a,...r}).then(n=>(n&&(Ou(n.id,n.live),TT(n.id,n.videoFrames)),n)),saveLayout:(a,n,s,l)=>e.save(a,{layout:n},{version:s,clientId:l??""}).then(d=>(_u(a,d.live),PT(a,d.videoFrames),Or(),d)),rereadVersion:e.version?a=>e.version(a):void 0,publish:qy(t)?_oe(t,r):e.publish?(a,n)=>e.publish(a,n?{version:n}:void 0).then(s=>(Au(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 Aoe(e,o,t,r,a=!1){let n=null,s=new Set,l=!1,d=new Map,c=new Map,f=new Map,u=new Map,p={docId:null,lockHolder:null,conflict:null,saveFailed:!1,unpublished:!1,loadFailed:!1,sections:[]},h=new Set,I=()=>{if(!n)return!1;let O=VL(n.id);return O==="changed"||O==="never"||O===void 0&&l},g=O=>{p={...p,...O,docId:n?.id??null,unpublished:I(),sections:[...f.values()]};for(let D of h)D()},C=(O,D,v)=>{D?f.set(O,{section:O,title:d.get(O)?.title??"",problem:D,holder:v}):f.delete(O)},w=O=>O&&typeof O=="object"&&!Array.isArray(O)?O:{},T=O=>s.has(O),y=()=>new Map([...d].map(([O,D])=>[O,D.layout])),b=()=>`SharedSection-${typeof crypto<"u"&&crypto.randomUUID?crypto.randomUUID():Math.random().toString(36).slice(2)}`,P=(O,D,v,_)=>{let A=w(D);d.set(O,{layout:A,version:v,savedJson:JSON.stringify(A),title:_})},H={state:()=>p,subscribe:O=>(h.add(O),()=>{h.delete(O)})},E={sectionOf:O=>c.get(O)?.section??null,heldElsewhere:O=>{let D=c.get(O)?.section;return!!(D&&f.get(D)?.problem==="lock")},adopt:(O,D)=>{P(D.id,D.layout,D.layout_updated_at,D.title),c.set(O,{section:D.id,refId:b()}),u.set(D.id,D.used_on),g({})},place:O=>{if([...c.values()].some(_=>_.section===O.id))return null;let D=Ru(w(O.layout)),v=typeof D?.props?.id=="string"?D.props.id:null;return!D||!v||!D.type?null:(P(O.id,O.layout,O.layout_updated_at,O.title),c.set(v,{section:O.id,refId:b()}),u.set(O.id,O.used_on),D)},usedOn:O=>u.get(O)??null,learn:O=>{for(let D of O){u.set(D.id,D.used_on);let v=d.get(D.id);v&&(v.title=D.title);let _=f.get(D.id);_&&f.set(D.id,{..._,title:D.title})}g({})}},W=async(O,D)=>{for(let[v,_]of O){let A=d.get(v),F=JSON.stringify(_);if(!(!A||F===A.savedJson||f.get(v)?.problem==="lock"))try{let z=await e.save(v,{layout:_},{version:A.version,clientId:D??""});_u(v,z.live),A.layout=_,A.version=z.version,A.savedJson=F,C(v,null)}catch(z){Ys(z,"changed-elsewhere")?C(v,"conflict"):Ys(z,"lock-taken")?C(v,"lock",z.holder??void 0):C(v,"save")}}O.size&&Or(),g({})};return{resolve:async O=>{if(Py(O===Mt?null:H),cx(O===Mt?null:E),d=new Map,c=new Map,f=new Map,u=new Map,O===Mt)return t.resolve(O);let D=!1,[v,_]=await Promise.all([t.resolve(O),e.load({slug:Mt,...o}).catch(()=>(D=!0,null))]);if(_&&!Yl(v?.layout)){Ou(_.id,_.live);let ee=w(_.layout);n={id:_.id,layout:ee,version:_.version,savedJson:""}}else n=null;if(l=!1,!v)return g({conflict:null,saveFailed:!1,loadFailed:D}),v;let A=w(v.layout),F=QL(A),z=await Promise.all(F.map(ee=>e.load({id:ee.section,...o}).catch(()=>null)));F.forEach((ee,Fe)=>{let Oe=z[Fe];Oe?(Ou(Oe.id,Oe.live),P(ee.section,Oe.layout,Oe.version,"")):(d.delete(ee.section),f.set(ee.section,{section:ee.section,title:"",problem:"load"}))});let $=eF(A,y());if(c=$.held,!n)return c.size&&s.add(v.id),g({conflict:null,saveFailed:!1,loadFailed:D}),c.size?{...v,layout:$.working}:v;let X=ST($.working,n.layout);return n.savedJson=JSON.stringify(dx(X,n.layout).chrome),s.add(v.id),g({conflict:null,saveFailed:!1,loadFailed:!1}),{...v,layout:X}},saveLayout:async(O,D,v,_)=>{if(!T(O))return t.saveLayout(O,D,v,_);let A=n,F=A?dx(D,A.layout):{page:D,chrome:null},z=oF(F.page,c,y()),$=await t.saveLayout(O,z.page,v,_);if(await W(z.docs,_),!A)return $;let X=JSON.stringify(F.chrome);if(!F.chrome||X===A.savedJson||p.lockHolder)return $;try{let ee=await e.save(A.id,{layout:F.chrome},{version:A.version,clientId:_??""});_u(A.id,ee.live),Or(),A.layout=F.chrome,A.version=ee.version,A.savedJson=X,l=!0,g({conflict:null,saveFailed:!1})}catch(ee){Ys(ee,"changed-elsewhere")?g({conflict:ee.conflict??{savedBy:"",savedByYou:!1,secondsAgo:0}}):Ys(ee,"lock-taken")?g({lockHolder:ee.holder??{name:"",secondsSinceSeen:0,secondsSinceHeld:0}}):g({saveFailed:!0})}return $},publish:t.publish?async(O,D)=>{let v=await t.publish(O,D),_=n;if(_&&T(O)&&!a&&e.publish&&I()&&!p.lockHolder){let A=await e.publish(_.id,_.version?{version:_.version}:void 0);Au(_.id,A.live),A.version!==null&&(_.version=A.version),l=!1,g({})}if(T(O)&&!a&&e.publish)for(let[A,F]of d){if(f.get(A)?.problem==="lock")continue;let z=await e.publish(A,F.version?{version:F.version}:void 0);Au(A,z.live),z.version!==null&&(F.version=z.version)}return v}:void 0,lock:r?{claim:async(O,D,v)=>{let _=await r.claim(O,D,v);if(!T(O))return _;let A=n;if(A)try{await r.claim(A.id,D,!1),p.lockHolder&&g({lockHolder:null})}catch(F){Ys(F,"lock-taken")&&g({lockHolder:F.holder??{name:"",secondsSinceSeen:0,secondsSinceHeld:0}})}for(let F of d.keys())try{await r.claim(F,D,!1),f.get(F)?.problem==="lock"&&C(F,null)}catch(z){Ys(z,"lock-taken")&&C(F,"lock",z.holder??void 0)}return d.size&&g({}),_},release:async(O,D)=>{if(await r.release(O,D),!T(O))return;let v=n;v&&!p.lockHolder&&await r.release(v.id,D).catch(()=>{});for(let _ of d.keys())f.get(_)?.problem!=="lock"&&await r.release(_,D).catch(()=>{})}}:void 0,pinnedChrome:H}}function Lu(e){let o=(t,r,a)=>e.save(t,r.layout?{...r,layout:oT(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 JDe(e,o,t){return e.update(o,tT(t))}function QDe(e,o=to(),t=$y(),r={}){let a=tF(o),n=e?{siteId:e}:void 0,s=a?!!e:!0,l=o.site.update,d=a&&t.commerce&&t.service,c=!!r.editsPinnedInPlace&&d,f=qy(o.site)?o.site:void 0,u=Lu(o.pages),p=Vy(u,e,f),h=c?Aoe(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:d,editsPinnedInPlace:c,explainsSiteSettings:!1,hasSiteRecord:s,canEditSiteRecord:s&&!!l,hasPreviewLink:a||!!o.preview,hasCatalog:a&&t.commerce,hasForms:a&&t.service,hasBlog:!!o.blog&&t.service,offersCommerce:t.commerce,offersService:t.service},...p,...rF(p.resolve),lock:o.lock,...h,site:s?()=>o.site.get(n):void 0,siteLiveState:f?()=>f.liveState(n):void 0,siteVersions:Ooe(f,n),updateSite:s&&l?I=>l(I,n):void 0,previewHref:o.preview?I=>o.preview.href(I):void 0}}function eNe(e,o=to(),t=$y()){let r=tF(o),a=o.templates,n=a?Lu(a.pages(e)):{list:()=>Promise.reject(new Error(Ky)),load:()=>Promise.reject(new Error(Ky)),save:()=>Promise.reject(new Error(Ky))};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},...Vy(n,void 0),...rF(Vy(n,void 0).resolve),publish:void 0,templateName:a?()=>a.get(e).then(s=>s.name):void 0}}function rF(e){return{resolve:o=>(Py(null),cx(null),e(o))}}var Ky="This editor's backend has no website templates.";function $oe(e,o,t){let r=Uoe(e,void 0,o);return t?.(r)??r}function aF({node:e,currentSlug:o,siteId:t,tokenRef:r,runAuthed:a,onNotify:n}){let[s,l]=Yi(!1),[d,c]=Yi(null),f=Woe(),u=Doe(E=>E.config.components),[p,h]=Yi(!1),[I,g]=Yi(null),C=Foe(null),[w,T]=Yi(null),y=Loe(async()=>{if(f.usesBridgedToken&&!r.current){h(!0);return}try{c(await to(f).pages.list(t?{siteId:t}:void 0))}catch{h(!0)}},[r,t,f]),b=()=>{if(s){l(!1);return}let E=C.current?.getBoundingClientRect();E&&T({top:E.bottom+6,right:Math.max(8,window.innerWidth-E.right)}),c(null),h(!1),y(),l(!0)},P=(d??[]).filter(E=>E.slug!==o),H=async E=>{if(I)return;g(E.slug);let W=$oe(e,u,f.documentHooks?.storedNode),O=await a(()=>Goe(to(f).pages,E,W));g(null),l(!1),n?.(O?i("Duplicated to \u201C{name}\u201D",{name:E.label}):i("Couldn\u2019t duplicate the section \u2014 please retry"),O?"success":"error")};return Yy(Roe,{children:[Vt("span",{"data-menu-toggle":!0,style:{display:"contents"},children:Vt(Boe,{buttonRef:C,label:i("Duplicate to another page"),hasPopup:"menu",expanded:s,onClick:b,children:Vt(Hoe,{size:15})})}),s&&w&&Vt(Noe,{portal:!0,style:{top:w.top,right:w.right},onClose:()=>l(!1),children:Yy("div",{role:"menu","aria-label":i("Duplicate to page"),children:[Vt(Fu,{children:i("Duplicate to page")}),p?Vt(Fu,{children:i("Couldn\u2019t load pages")}):d===null?Vt(Fu,{children:i("Loading\u2026")}):P.length===0?Vt(Fu,{children:i("No other pages")}):P.map(E=>Yy(Moe,{role:"menuitem",disabled:I!==null,onClick:()=>{H(E)},children:[Vt("span",{className:"min-w-0 flex-1 truncate",children:E.label}),I===E.slug?Vt("span",{className:"shrink-0 text-xs",children:i("Copying\u2026")}):E.draft&&Vt("span",{className:"shrink-0 text-xs",children:i("draft")})]},E.id))]})})]})}async function Goe(e,o,t){let r=Lu(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]:[],l=s.findIndex(d=>d?.type===zoe);s.splice(l===-1?s.length:l,0,t),await r.save(o.id,{layout:{root:{},zones:{},...n,content:s}},{version:a.version,clientId:""})}import{useScreenDocument as ble}from"efficient-easel/screen/components/ScreenDocumentContext";import{useSectionOps as yle}from"efficient-easel/screen/lib/document/use-section-ops";import{SELECTION_MODE as M$e,isSelectionMode as vw}from"efficient-easel/screen/lib/screen-parts";import{usePreviewParts as Sle}from"efficient-easel/draw/client";import{jsx as Xi,jsxs as joe}from"react/jsx-runtime";import{SettingsDrill as Koe}from"efficient-easel/panel";import{UiIcon as Voe}from"efficient-easel/draw/client";var qoe="Not shown on the page";function Yoe({part:e,onOpen:o}){return Xi(Koe,{name:i(e.label),preview:e.offPage?i(qoe):e.preview||i("Empty"),offPage:e.offPage,status:e.hidden?Xi("span",{className:"sf-entry-eye",role:"img","aria-label":i("Hidden on the page"),children:Xi(Voe,{name:"eye-off",size:14})}):void 0,onOpen:()=>o(e.key)})}function Xy(e){return e.filter(o=>!o.identifier)}function nF({parts:e,onOpen:o,heading:t=!0}){let r=Xy(e);return r.length?joe("div",{className:"sf-entries",children:[t?Xi("h3",{className:"sf-entries-head",children:i("Text")}):null,r.map(a=>Xi(Yoe,{part:a,onOpen:o},a.key))]}):null}import{HEADER_TYPE as wle,ROOT_ZONE as aM}from"efficient-easel/draw";import{HEADER_TYPE as Jo,FOOTER_TYPE as Xe,newNodeId as Xoe}from"efficient-easel/draw";function Bu(){return{type:Jo,props:{id:Xoe(Jo)}}}var sF=[{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"}],Zoe=sF.filter(e=>e.type!=="FooterLogo"&&e.type!=="FooterGroup"),Joe="FooterGroup",lF="blocks";function iF(e){return e===Xe?sF:e===Joe?Zoe:null}function Du(){let e=(o,t)=>({type:o,props:{id:`${o}-${crypto.randomUUID()}`,...t}});return[e("FooterLogo",{widthPct:100,align:"left",tagline:""}),e("FooterEmailSignup",{...U0}),e("FooterPayment",{...wf})]}function Zy(e){switch(e?.type){case Ye:case Ue:return i("On every page");case Jo:case Xe:return i("On every page \xB7 old style");default:return null}}var dF=()=>null,cF=()=>i("Changed on every page");function Nu(e,o){let t=bk(e,o);if(t)return t;let r=hT(e,o);if(!r)return null;let a=r.group===Ye;return r.why==="type"?a?i("The header cannot take another one of these"):i("The footer cannot take another one of these"):a?i("The header holds at most 3 sections"):i("The footer holds at most 6 sections")}import{jsx as Rm,Fragment as ole,jsxs as tle}from"react/jsx-runtime";import{useState as rle}from"react";import{createNode as ale,newId as nle}from"efficient-easel/data";import{useEasel as sle}from"efficient-easel/easel";import{Banner as lle,Button as ww}from"efficient-shell/ui";import{useScreenDocument as ile}from"efficient-easel/screen/components/ScreenDocumentContext";import{isNodeList as Qoe}from"efficient-easel/data";import{hiddenKeyOf as ete}from"efficient-easel/screen/lib/content/view-hide";var Mu="Flex",ote={FooterMenu:"MenuBlock",FooterEmailSignup:"EmailFormBlock",FooterSocial:"SocialLogosBlock"},tte={FooterPayment:"PaymentLogosBlock"},rte=e=>{let{id:o,...t}=e;return t},fF=e=>typeof e=="string"?e:"",Xs={sm:12,md:13,lg:15},pF={sm:{mark:16,words:Xs.sm},md:{mark:20,words:Xs.md}},ate="md",uF=1.5,nte={size:13,lineHeight:uF,width:280},ste=14,lte=40,ite=e=>e==="center"||e==="right"?e:"left";function dte(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 cte(e,o,t){let r=t(e,rte(o));if(Array.isArray(o.template))return{...r,props:{...r.props,template:mF(o.template,String(r.props.id))}};if(o.template!==void 0)return r;let a=_v(e,r.props);return a===r.props?r:{...r,props:a}}function mF(e,o,t={at:0}){return e.map(r=>{let a={...r.props,id:`${o}~t${t.at++}`};for(let[n,s]of Object.entries(a))Qoe(s)&&(a[n]=mF(s,o,t));return{...r,props:a}})}function hF(e,o,t){let r=e.props??{},a=t?.(e,o);if(a)return a;let n=K(ote,e.type)??K(tte,e.type);if(n)return[cte(n,r,o)];switch(e.type){case"FooterLogo":{let s=ite(r.align),l=o("LogoBlock",{...r.reverse?{reverse:r.reverse}:{},...typeof r.customColor=="string"&&r.customColor?{customColor:r.customColor}:{},heightPx:Math.round(Fk*((q(r.widthPct)??100)/100)),href:"/",align:s,...dte(r)}),d=fF(r.tagline).trim();return d?[l,o("Text",{text:d,tone:"dim",align:s,_partStyles:{text:{...nte}}})]:[l]}case"FooterText":{let s=typeof r.size=="string"&&$e(Xs,r.size)?r.size:ate;return[o("Text",{text:fF(r.text),tone:typeof r.tone=="string"?r.tone:"default",_partStyles:{text:{size:Xs[s],lineHeight:uF}}})]}case"FooterDivider":{let s=q(r.thickness),l=q(r.lengthPct);return[o("Divider",{...s!==void 0?{thickness:s}:{},...l!==void 0?{lengthPct:l}:{},...r.hideOnMobile===!0?{[ete("mobile")]:!0}:{}})]}case"FooterGroup":{let s=Array.isArray(r.blocks)?r.blocks:[];return[o(Mu,{direction:r.direction==="horizontal"?"row":"column",gap:Ka("FooterGroup",r.gap),align:r.align==="center"||r.align==="end"||r.align==="stretch"?r.align:"start",...bh,content:s.flatMap(l=>hF(l,o,t))})]}default:return[]}}function Zi(e,o,t,r){let a=e&&Array.isArray(e.props?.blocks)?e.props.blocks:[],n=f=>o(Mu,{direction:"row",wrap:!0,share:"equal",gap:lte,content:f}),s=[],l=[];for(let f of a){let u=hF(f,o,r);if(f.type==="FooterDivider"){l.length&&s.push(n(l)),l=[],s.push(...u);continue}u.length<=1?l.push(...u):l.push(o(Mu,{direction:"column",gap:ste,align:"stretch",...bh,content:u}))}(l.length||!s.length)&&s.push(n(l));let d=o(Mu,{direction:"column",content:[o("LegalLineBlock")]}),c=pT(Ue,t,[...s,d]);return{...c,props:{...c.props,...e?.props?.width==="full"?{fullWidth:!0}:{}}}}import{isNodeList as Qse}from"efficient-easel/data";import{readHidable as pte}from"efficient-easel/draw";function Hu(e,o,t){let r=[];return e.forEach((a,n)=>{let s=o(a),l=r.find(d=>d.key===s);l||(l={key:s,name:t(a),items:[]},r.push(l)),l.items.push({item:a,index:n})}),r}function MNe(e){return fte[Ji(e)]}var fte={1:"grid-cols-1",2:"grid-cols-2",3:"grid-cols-3",4:"grid-cols-4"};function Ji(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 dr=te,cr=He;function yn(e){if(e.theme)return xo(e.theme);let o=e.site?.themePresets;return o?xo({selected:e.site?.selectedPreset??0,themes:[...o]}):void 0}function ute(e,o){return o===0?`${e}~box`:`${e}~box-${o+1}`}var IF=new Set(["id"]),bn={},gF=[],mte={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"]},hte=Object.keys(mte),Qi=["Breadcrumb","DocBody","Form","SubmitBuild","Footprint","FAQ","ProcessSteps",...hte,"Stats","Logos","PaymentBadges","PaymentLogosBlock","FitmentFinder","DocMasthead","DocTabs","Timeline","TimelineTrack","OrderSummary","Chart","Mockup","Integrations","Countdown","FeaturedCover","SectionHeader","TitleWithButtons","Prose","ParagraphsA","Banner","Cards"];function go(e){for(let[o,t]of Object.entries(e)){if($e(bn,o)&&K(bn,o)!==t)throw new Error(`lib/sections/section-to-box: "${o}" already has a row`);bn[o]=t}}function ca(e){return K(bn,e)}function xte(e){return $e(bn,e)&&gF.includes(e)}function bF(e,o=Qi){return $e(bn,e)&&(o.includes(e)||xte(e))}function YNe(e){let o=K(kr,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 Jy=e=>pte(e),Qe=e=>Jy(e).text.trim()!=="";function Ite(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 gte=e=>e==="heading"?jr():e==="eyebrow"?vr():{};function bte(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 yte(e,o){if(e===void 0)return{};if(typeof e=="string")return{variant:e};let t=o[e.key];return{variant:(typeof t=="string"?K(e.map,t):void 0)??e.fallback}}function xF(e,o,t,r,a={}){let n={...o};for(let s of e){let[l,d,c]=typeof s=="string"?[s,s,void 0]:s;if(t[l]===void 0)continue;let f=c?c(t[l],t,a):t[l];f===void 0?delete n[d]:n[d]=f,r(l,d,f===void 0)}return n}function Ste(e){let o=new Set([...IF,"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 l of s)"kind"in l&&o.add(l.key);break}};for(let a of[e,...e.also??[]])t(a.box),r(a.parts);return o}var Qy=e=>wv(e.headPlacement)==="own-box";function wte(e){return Qy(e)?"its head sits in a Box of its own above it (own-box): the row draws the head inline":void 0}function Cte(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 vte(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(l=>!("kind"in l))&&o.add(n)};for(let r of[e,...e.also??[]])t(r.parts);return[...o]}function kte(e,o,t){if(!t.press)for(let r of vte(e)){let a=Cte(o,r);if(a!==void 0)return a}}function Zs(e,o,t={}){let r=e.props,a=(o.ownBoxConverts?void 0:wte(r))??kte(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=[],l=[],d=new Set,c=(b,P)=>{s.push({key:b,home:P}),d.add(b)},f=r._partStyles??{},u=Ste(o),p=0,h=(b,P)=>({type:b,props:{...P,id:`${n}~${b}-${++p}`}}),I=(b,P,H,E,W,O,D)=>{if(W){for(let _ of b??[]){let A=typeof _=="string"?_:_[0];H[A]!==void 0&&D(A,`nothing \u2014 the ${E} has no parts, so it is not drawn`)}return}let v=typeof P=="function"?P(r,t):P??{};return xF(b??[],v,H,(_,A,F)=>D(_,F?`nothing \u2014 the old value draws nothing (${E}: no ${A})`:`${O}${E}: ${A}`),t)},g=b=>Gn(b,P=>`${n}~${P}-${++p}`),C=(b,P,H)=>{let E=b.of?b.of(P):Array.isArray(P[b.key])?P[b.key]:[],W=typeof b.props=="function"?b.props(r,t):b.props??{},O=E.map((F,z)=>{let $=F??{},X=b.item?.($,z,r)??{},ee=w(X.reverse?[...b.parts].reverse():b.parts,$,!1,`item ${z+1}: `);return b.flat?X.props?ee.map(Fe=>({...Fe,props:{...Fe.props,...X.props,id:Fe.props.id}})):ee:[h(dr,{name:`${b.name} ${z+1}`,...W,...X.props??{},[cr]:ee})]});if(b.groups){let F=b.groups;return H(b.key,E.length?`one Box per item (${E.length}), in a Box per group`:"nothing \u2014 the list is empty"),Hu(E.map(z=>z??{}),F.of,F.of).map((z,$)=>{let X=z.items.map(be=>be.item),ee=F.parts?w(F.parts,F.head?.(X,r)??{},!1,`group ${$+1}: `):[],Fe=z.items.map(be=>O[be.index]),Oe=F.perRow?.(X.length,r),ze=Number.isInteger(Oe)&&Oe>=1?Oe:1,Ke=[];if(F.perRow&&ze<Fe.length)for(let be=0;be*ze<Fe.length;be++)Ke.push(Fe.slice(be*ze,(be+1)*ze).flat());return h(dr,{name:`${F.name} ${$+1}`,...F.props??{},[cr]:[...ee,h(dr,{name:`${F.itemsName} ${$+1}`,...F.itemsProps?.(X.length,r)??{},[cr]:Ke.length?Ke.map((be,Te)=>h(dr,{name:`${F.rowName??`${F.itemsName} row`} ${Te+1}`,...F.rowProps??{},[cr]:be})):Fe.flat()})]})})}let D=b.perRow?.(r),v=b.perRow?Number.isInteger(D)&&D>=1?D:1:0;if(H(b.key,(E.length?b.flat?`each item's parts (${E.length} items), in order`:`one Box per item (${E.length}), its parts inside`:"nothing \u2014 the list is empty")+(v&&E.length?`, in rows of ${v}`:"")),!v)return O.flat();let _=typeof b.rowProps=="function"?b.rowProps(r,t):b.rowProps??{},A=[];for(let F=0;F*v<O.length;F++){let z=O.slice(F*v,(F+1)*v).flat(),$=b.rowFiller?v-O.slice(F*v,(F+1)*v).length:0;A.push(h(dr,{name:`${b.rowName??`${b.name} row`} ${F+1}`,..._,[cr]:[...z,...Array.from({length:$},(X,ee)=>h(dr,{name:`Empty ${ee+1}`,...b.rowFiller,[cr]:[]}))]}))}return A},w=(b,P,H,E)=>{let W=[],O=(v,_)=>H?c(v,_):void 0,D=v=>H?f[v]:void 0;for(let v of b)if(!(v.when&&!v.when(r,H?void 0:P)))switch(v.kind){case"text":{let _=Jy(P[v.key]);if(!_.text.trim()&&!(H&&t.press&&o.pressKeepsEmpty?.includes(v.key))){O(v.key,"nothing \u2014 empty words draw nothing, so no block");break}let A=gte(v.role??"body"),{_partStyles:F,...z}=A,$=bte(A,v.styleFrom?{...v.style,...v.styleFrom(r,t)}:v.style,D(v.key),v.props?.align);W.push(h("Text",{text:v.mark==="accentLead"?Ite(_.text):v.mark==="accentItalic"?Cl(_.text):_.text,...z,...v.props??{},...$,..._.hidden?{_hidden:!0}:{}})),O(v.key,`${E}Text block: its words${_.hidden?", hidden":""}`);break}case"button":{let _=Jy(P[v.key]);if(!_.text.trim()){O(v.key,"nothing \u2014 no words, no button"),O(v.href,"nothing \u2014 no button to link"),typeof v.variant=="object"&&O(v.variant.key,"nothing \u2014 no button to style");break}let A=typeof P[v.href]=="string"&&P[v.href]?P[v.href]:"#",F={...v.style??{},...D(v.key)??{}};W.push(h("ButtonBlock",{label:_.text,href:A,...typeof v.props=="function"?v.props(P,t):v.props??{},...yte(v.variant,P),...Object.keys(F).length?{_partStyles:{label:F}}:{},..._.hidden?{_hidden:!0}:{}})),O(v.key,`${E}Button block: its words`),O(v.href,`${E}Button block: its link`),typeof v.variant=="object"&&O(v.variant.key,`${E}Button block: its Style`);break}case"image":{let _=P[v.key];if(typeof _!="string"||!_){O(v.key,"nothing \u2014 no picture, no block"),v.alt&&O(v.alt,"nothing \u2014 no picture to describe");break}let A=v.alt&&typeof P[v.alt]=="string"?P[v.alt]:"";W.push(h("ImageBlock",{src:_,alt:A,...v.props??{}})),O(v.key,`${E}Image block: its picture`),v.alt&&O(v.alt,`${E}Image block: its alt text`);break}case"list":{W.push(...C(v,P,O));break}case"group":{let _=w(v.parts,P,H,E),A=I(v.box,v.props,P,`${v.name} Box`,!_.length&&!v.keepEmpty,E,O);A&&W.push(h(dr,{name:v.name,...A,[cr]:_}));break}case"block":{let _=v.parts?w(v.parts,P,H,E):[],A=I(v.box,v.props,P,`${v.type} block`,!!v.parts&&!_.length&&!v.keepEmpty,E,O);A&&W.push(h(v.type,{...A,...v.slot?{[v.slot]:_}:{}}));break}case"core":{let _=v.as??e.type,A={...v.headless?{}:{headPlacement:"own-box"},...v.props??{}},F=v.keep==="rest"?Object.keys(P).filter($=>!u.has($)&&!($ in A)):v.keep;for(let $ of F)P[$]!==void 0&&(A[$]=P[$],O($,`the ${_} block inside the Box`));if(v.keep==="rest"){for(let X of Object.keys(v.props??{}))P[X]!==void 0&&!u.has(X)&&O(X,`nothing \u2014 the ${_} block inside the Box has the row's own value`);P.headPlacement!==void 0&&O("headPlacement",`the ${_} block inside the Box: own-box`);let $=Object.fromEntries(Object.entries(f).filter(([X])=>!u.has(X)));Object.keys($).length&&(A._partStyles=$)}for(let[$,X]of Object.entries(v.rename??{}))P[$]!==void 0&&(A[X]=P[$],O($,`the ${_} block inside the Box: ${X}`));if(v.derive){Object.assign(A,v.derive.props(P,t));for(let $ of v.derive.reads)P[$]!==void 0&&O($,`the ${_} block inside the Box`)}let z=typeof v.slots=="function"?v.slots(P,t):v.slots??{};for(let[$,X]of Object.entries(z))A[$]=X.flatMap(ee=>"kind"in ee?C(ee,P,O):g([ee]));W.push(h(_,A));break}}return W},T=(b,P)=>{let H=P===0?"Box":`${b.name} Box`,E=w(b.parts,r,!0,P===0?"":`${H}: `),W=typeof b.boxProps=="function"?b.boxProps(r,t):b.boxProps??{},O=xF(b.box??[],W,r,(D,v,_)=>c(D,_?`nothing \u2014 the old value draws nothing (${H}: no ${v})`:`${H}: ${v}`),t);return{type:dr,props:{name:b.name,...O,[cr]:E,id:ute(n,P)}}},y=[o,...o.also??[]].map(T);r._partStyles!==void 0&&c("_partStyles","each old part's style moved to its new part");for(let[b,P]of Object.entries(o.reads??{}))r[b]!==void 0&&c(b,P);for(let[b,P]of Object.entries(o.drop??{}))b in r&&(l.push({key:b,why:P}),d.add(b));for(let b of Object.keys(r))IF.has(b)||d.has(b)||l.push({key:b,why:"not in the row \u2014 not carried"});return{node:y[0],nodes:y,carried:s,dropped:l,siteWrites:[...o.site?.(e,t)??[]]}}function yF(e,o=gF,t={}){if(!Array.isArray(e))return[];let r=[];return e.forEach((a,n)=>{let s=a&&typeof a.type=="string"&&o.includes(a.type)?K(bn,a.type):void 0;if(!s)return;let l=Zs(a,s,t);l.skipped===void 0&&r.push({index:n,node:l.node,nodes:l.nodes})}),r}import{BLOCK_FIXED_WIDTH as Ate,BLOCK_SIZE_KEYS as Rte,parseBlockWidthFit as Uu,phoneKey as wF,parseTextFit as Wu,tabletKey as CF,viewKeyAt as vF}from"efficient-easel/draw";import{sideLengthAt as Lte}from"efficient-easel/screen/lib/content/length-units";import{VIEW_DESKTOP_MIN as Tte,VIEW_TABLET_MIN as Pte}from"efficient-easel/screen/lib/content/view-tiers";var Dr={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"},dt=Dr,Ete=e=>e.flatMap(o=>[`[${o}] p`,`[${o}] li`]).join(","),Ote=String.raw`(function (doc) {
|
|
1
|
+
import{$ as Pa,$a as Ea,$c as Th,$e as Vo,$f as dk,$g as gc,Ac as pv,Ad as Cv,Ae as Uv,Af as Wo,Ah as Ek,B as wC,Ba as fh,Bc as vh,Bd as lc,Be as cc,Bf as Vr,Bg as Ik,Bh as Ok,Bi as Pc,Ca as DC,Cb as io,Cd as Vn,Cf as ak,Cg as zh,Ci as zk,Da as NC,Db as av,Dd as _h,De as We,Df as nk,Dg as gk,Dh as _k,Di as $k,E as qd,Ea as so,Eb as nv,Ed as Tl,Ee as ke,Ef as Jt,Eg as $h,F as CC,Fa as MC,Fe as zv,Ff as Jn,Fg as bk,Fh as es,G as vC,Ga as HC,Gb as sv,Gc as G,Ge as qn,Gg as yk,Gh as Ak,H as Sl,Ha as WC,Hc as ne,Hd as vv,He as $v,Hg as Sk,Hh as bc,I as sh,Ia as UC,Ib as gh,Ic as kh,Id as kv,Ie as fc,If as sk,Ig as mc,Ih as Rk,J as He,Ja as zC,Jc as L,Jd as Tv,Je as Aa,Jf as Hh,K as te,Ka as $C,Kc as Do,Ke as Gv,Kg as wk,La as GC,Lc as Cr,Ma as jC,Mc as uv,Md as Pv,Mf as lk,Mh as Vh,N as kC,Na as KC,Nc as U,Ne as Kr,Nf as Wh,Ng as Gh,O as $r,Oa as VC,Oc as nc,Od as No,Oe as Bh,Og as Tr,P as Hn,Pa as Jd,Pc as Ko,Pd as Ft,Pg as hc,Q as TC,Qa as Qd,Qc as mv,Qg as qo,R as br,Ra as qC,Rb as bh,Rc as Lt,Rg as we,Rh as Lk,S as lh,Sa as YC,Sc as Gn,Sd as Ev,Sg as xc,Sh as yc,T as Wn,Tb as lv,Tc as jr,Td as Ah,Tg as Ck,Ua as XC,Uc as vr,Ue as jv,Ug as Ol,Va as ZC,Ve as Kv,Vg as tt,Wa as ph,Wc as qe,We as Dh,Wg as _l,X as wl,Xc as hv,Xd as Ov,Xe as xo,Xf as Ra,Xg as Ic,Ya as JC,Yd as _v,Ye as Vv,Yg as Qn,Yh as Sc,Z as PC,Za as uh,Zc as xv,Zd as Av,Ze as qv,Zf as ik,Zg as jh,_ as EC,_a as zn,_b as Oa,_c as Iv,_d as Rv,_e as Yn,a as Vd,ab as mh,ac as yh,ad as gv,ae as Lv,b as Se,bb as hh,bc as Sh,bf as Xn,bg as ck,bi as os,c as So,ca as OC,cb as xh,ce as Fv,cf as Zn,cg as fk,d as gr,da as Yd,db as QC,dc as rc,de as Bv,dg as pk,ea as _C,eb as ev,ed as bv,eg as uk,f as Rt,fa as Xd,fb as ov,fd as yv,fe as Dv,ff as Yv,fi as qr,g as yl,ga as AC,gb as Ih,gg as Qt,ha as RC,hb as tv,hd as Ph,hg as mk,hi as Yr,i as xC,ia as LC,ib as Gr,ic as wh,if as El,ii as wc,ja as Cl,jc as ac,jd as Eh,je as Nv,k as IC,ka as yr,kc as iv,kd as Oh,kf as Xv,kg as hk,kh as Kh,ki as Fk,la as FC,lb as vl,lc as dv,le as Zt,lf as Nh,lg as er,mc as cv,md as _a,me as Pl,mg as Uh,n as gC,na as q,nb as $n,nc as Ch,nd as jn,ne as Rh,oa as Zd,ob as wr,oc as fv,od as oo,oe as Mv,of as pc,oi as Bk,pb as ec,pf as Zv,pg as xk,qd as kl,qf as Jv,qi as Dk,r as bC,ra as pt,rd as kr,re as ic,rf as Qv,sa as Sr,sd as Kn,se as Hv,sf as uc,t as Xt,ta as Un,td as Sv,te as Lh,tf as ek,ua as ih,ub as rv,ud as wv,uf as ok,ui as he,va as BC,vh as vk,w as K,wa as dh,we as dc,wf as tk,wh as kk,x as $e,xa as ch,xb as oc,xe as Wv,xf as Mh,xh as Tk,y as yC,ye as Fh,yi as Wk,z as SC,zb as tc,zd as sc,zf as rk,zh as Pk,zi as Uk}from"./chunk-7UBABYIY.js";import{c as Nk,d as Cc,e as vc,i as Mk,j as ut,k as kc,l as Tc,m as Hk,q as qh}from"./chunk-37WWMI27.js";var jk="en",Ec=null,Kk=jk,Vk=null;function rpe(e,o,t){Ec=e??null,Kk=o||jk,Vk=t??null}function de(){return Vk}function Yh(){return Kk}function qk(){return Ec}function Gk(e,o){return o?e.replace(/\{([A-Za-z][A-Za-z0-9_]*)\}/g,(t,r)=>$e(o,r)?String(K(o,r)):t):e}function i(e,o){let t=Ec?K(Ec,e):void 0;if(typeof t=="function"){try{let r=Se(t(o??{}));if(r)return r}catch{}return Gk(e,o)}return Gk(Se(t)??e,o)}function Uo(e,o,t,r){return i(t===1?e:o,{...r,n:t})}import{jsx as Xh,Fragment as d3,jsxs as c3}from"react/jsx-runtime";import{createContext as f3,useContext as p3}from"react";var u3={mirrorHostStyles:!0,css:null,fontHrefs:[]},Yk=f3(u3);function lpe({value:e,children:o}){return Xh(Yk.Provider,{value:e,children:o})}function Zh(){return p3(Yk)}function Xk(){let{css:e,fontHrefs:o}=Zh();return c3(d3,{children:[o.map(t=>Xh("link",{rel:"stylesheet",href:t},t)),e?Xh("style",{"data-sf-canvas-css":"",children:e}):null]})}import{jsx as m3}from"react/jsx-runtime";import{createContext as h3,useContext as x3}from"react";var Zk=h3(void 0);function fpe({metadata:e,children:o}){return m3(Zk.Provider,{value:e,children:o})}var Jk=()=>x3(Zk);import{jsx as To,Fragment as G5,jsxs as Gd}from"react/jsx-runtime";import{useCallback as Il,useEffect as mr,useRef as _fe,useState as W5}from"react";import{SettingsSwitch as Afe}from"efficient-easel/panel";import{PagesIcon as Rfe,StylesIcon as Lfe}from"efficient-easel/rail";import{PaletteIcon as Ffe}from"efficient-shell/icons/efficient";import{Subtree as Bfe,TreeRow as j5}from"efficient-easel/tree";import{useEasel as K5}from"efficient-easel/easel";import{useEaselStrings as V5}from"efficient-easel/strings";import{createContext as I3,useContext as g3}from"react";var Jh=I3(!1),mpe=()=>g3(Jh);import{useMemo as b3,useRef as y3}from"react";import{useEaselApi as S3}from"efficient-easel/easel";import{useSectionOps as w3}from"efficient-easel/screen/lib/document/use-section-ops";function Oc(){let e=S3(),o=w3(),t=y3(o);return t.current=o,b3(()=>({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 x7}from"efficient-easel/draw";import{insertAt as I7,moveTo as g7,removeAt as b7}from"efficient-easel/fields";import{useSyncExternalStore as d7}from"react";import{isNodeList as ex}from"efficient-easel/data";import{isNodeList as C3}from"efficient-easel/data";function ts(e,o){let t=null;return e.forEach((r,a)=>{let n=o(r,a);n!==r&&((t??=e.slice())[a]=n)}),t??e}function rs(e,o){let t=null;for(let[r,a]of Object.entries(e.props??{})){if(!C3(a))continue;let n=o(a,r);n!==a&&((t??={...e.props})[r]=n)}return t?{...e,props:t}:e}function Spe(e,o){let t=e;if(!t||!Array.isArray(t.content))return e;let r=o(t.content);return r===t.content?e:{...t,content:r}}var Qk="Flex";function as(e,o){return Zt(e)?typeof e?.[Rt]=="string"?Qh(o?.[Rt]):"":Qh(e?.[Rt])}var Qh=e=>typeof e=="string"?e.trim():"",v3=e=>e.type===Ft&&Array.isArray(e.props?.[Ah])&&e.props[Ah].some(o=>Qh(o?.[Rt])!==""),k3=new Intl.NumberFormat("en-US");function T3(e){return/^\d+$/.test(e)?k3.format(Number(e)):e}function Ppe(e,o){let t=o?o.find(r=>r.key===e)?.value:bC(yl).find(r=>r.key===e)?.value;return t===void 0?null:T3(t)}var P3={[Rt]:"any"};function ox(e,o=!1){let t=e.props;if(!t)return{node:e,names:!1};let r=e.type==="Text"&&(as(t)!==""||o&&as(t,P3)!==""),a=o||v3(e),n=rs(e,l=>ts(l,d=>{let c=ox(d,a);return c.names&&(r=!0),c.node})).props;if(e.type!==Qk)return{node:n===t?e:{...e,props:n},names:r};let s=Xt(n);if(r&&!s&&(n={...n,[So]:yl}),!r&&s===yl){let{[So]:l,...d}=n;n=d}return{node:n===t?e:{...e,props:n},names:!1}}function eT(e,o,t){for(let r of e){if(r?.props?.id===o)return t;for(let a of Object.values(r?.props??{})){if(!ex(a))continue;let n=eT(a,o,r.type===Qk?r:t);if(n!==void 0)return n}}}function Epe(e,o){if(!ex(e))return!0;let t=eT(e,o,null);if(t===void 0)return!0;if(t===null)return!1;let r=Xt(t.props);return!r||r===yl}function oT(e){let o=e?.content;if(!ex(o))return e;let t=o.map(r=>ox(r));return t.every((r,a)=>r.node===o[a])?e:{...e,content:t.map(r=>r.node)}}function tT(e){return ox(e).node}import{jsx as k,jsxs as Rr,Fragment as Fr}from"react/jsx-runtime";import{cloneElement as cg,createContext as Sj,useContext as pO,useEffect as wj,useId as uO,useRef as ii,useState as di}from"react";import{useEasel as qf,useSelectedHost as Ya}from"efficient-easel/easel";import{PIN_LENGTH as Gf,toDateKey as gwe,fromDateKey as bwe}from"efficient-shell/format";function E3(e){return!!e&&typeof e=="object"&&!Array.isArray(e)&&typeof e.src=="string"}function zo(e){return typeof e=="string"?e:E3(e)?e.src:""}function _pe(e,o,t){return tx(e,o.split("."),t)}function tx(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 l=e;if(!(s in l))return e;let d=l[s];if(n){if(!Array.isArray(d))return e;let f=!1,u=d.map(p=>{let h=tx(p,a,t);return h!==p&&(f=!0),h});return f?{...l,[s]:u}:e}let c=tx(d,a,t);return c===d?e:{...l,[s]:c}}var O3=["upload","youtube"],_3="upload",Lpe={upload:"Upload",youtube:"YouTube"},A3=["background","click"],R3="background",Fpe={background:"Background",click:"Click to play"};function aT(e){return O3.includes(e)?e:_3}function nT(e){return A3.includes(e)?e:R3}var rT=/^[A-Za-z0-9_-]{11}$/,L3=/^(?:www\.|m\.|music\.)?(?:youtube\.com|youtube-nocookie\.com|youtu\.be)$/;function sT(e){let o=typeof e=="string"?e.trim():"";if(!o)return null;if(rT.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:"||!L3.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&&rT.test(a)?a:null}function rx(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 lT(e){return`https://i.ytimg.com/vi/${e}/maxresdefault.jpg`}function iT(e){return`https://i.ytimg.com/vi/${e}/hqdefault.jpg`}var ax="Play video";var nx={frame:"Video frame",image:"Image"},Bpe={any:[{field:"loadingShows",is:"image"},{all:[{not:{field:"loadingShows",set:!0}},{field:"poster",set:!0}]}]};function Al(e){let o=e.loadingShows;return o==="image"?"image":o!=null&&o!==""?"frame":zo(e.poster)?"image":"frame"}function Dpe(e,o="desktop"){let[t,r]=o==="phone"?[e.posterPhone,e.videoFramePhone]:[e.poster,e.videoFrame],[a,n]=Al(e)==="image"?[t,r]:[r,t];return zo(a)||zo(n)||void 0}function dT(e){if(zo(e.mediaVideo)){if(Al(e)==="frame")return zo(e.videoFrame)?void 0:zo(e.poster)?"frame-missing-image":"frame-missing-surface";if(!zo(e.poster))return zo(e.videoFrame)?"image-missing-frame":"image-missing-surface"}}var _c="videoFrames",sx="videoFramesNotOwn";function cT(e,o,t){let r=zo(e.mediaVideo);if(!r||!o||Al(e)!=="frame"||zo(e.videoFrame))return;let a=o[r],n=!!zo(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 F3(e,o){let t=zo(e),r=t&&o?o[t]:void 0;return r?.state==="ready"&&r.frame?r.frame:void 0}function Npe(e,o,t){let r=t?.[sx];if(!(Array.isArray(r)&&r.includes(e)))return F3(o,t?.[_c])}import{useSyncExternalStore as B3}from"react";function Ac(){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 B3(t,a,a)}}}var Ye="SiteHeader",Ue="SiteFooter",lx="sections",Upe=[Ye,Ue],ns=e=>e===Ye||e===Ue,fT=e=>`${e}:${lx}`;function pT(e,o,t=[]){return{type:e,props:{id:o,[lx]:t}}}var D3=new Set(["Footer",Ye,Ue]);function ss(e){let o=new Set,t=!1,r=e.filter(a=>{let n=a?.type??"";return n==="Header"?(t=!0,!1):D3.has(n)?o.has(n)?(t=!0,!1):(o.add(n),!0):!0});return t?r:e}function Rc(e,o){return e.some(t=>t?.type===o.type)?e:o.type===Ye?[o,...e]:[...e,o]}var uT={[Ye]:{max:3,takes:["Flex","Ticker"]},[Ue]:{max:6,takes:["Flex","Prose","Logos","Divider"]}};function mT(e,o,t){if(!ns(e))return!0;let r=uT[e];return t<r.max&&r.takes.includes(o)}function hT(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(!ns(n?.type))continue;let s=n.props?.[lx];if(!Array.isArray(s)||!s.some(d=>d?.props?.id===r))continue;let l=uT[n.type];return l.takes.includes(t?.type??"")?s.length>=l.max?{group:n.type,why:"full"}:null:{group:n.type,why:"type"}}return null}import{locateNode as N3}from"efficient-easel/draw";function Rl(e){if(!e)return null;let o=e.lastIndexOf(":");return o>0?{ownerId:e.slice(0,o),slot:e.slice(o+1)}:null}function Lc(e,o,t){let r=Rl(t?.zone),a=r?N3(e,o,r.ownerId):null;return a&&r?{...a,slot:r.slot}:null}import{isNode as M3}from"efficient-easel/data";var xT="Footer",IT=[Ye,xT,Ue],La=e=>{let o=e?.content;return Array.isArray(o)?o:[]},Xr=e=>{let o=e?.zones;return o&&typeof o=="object"&&!Array.isArray(o)?o:null},ls=e=>{let o=e?.props?.id;return typeof o=="string"?o:void 0},gT=e=>Rl(e)?.ownerId??"";function bT(e){let o=ss(La(e)),t=o.some(r=>r?.type===Ue);return o.filter(r=>r?.type===Ye||r?.type===Ue||r?.type===xT&&!t)}function Fc(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(M3(a)){let n=ls(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,l]of Object.entries(o))n.has(s)||!t.has(gT(s))||(n.add(s),r(l),a=!0)}}return t}function yT(e,o){let t=La(e).filter(r=>{let a=ls(r);return typeof r?.type=="string"&&IT.includes(r.type)||a!==void 0&&o(a)});return t.length?Fc(t,Xr(e)):new Set}function ix(e,o){let t={},r={};for(let[a,n]of Object.entries(e??{}))(o.has(gT(a))?t:r)[a]=n;return{owned:t,rest:r}}function ST(e,o){if(!o)return e;let t=bT(o);if(!t.length)return e;let r=t.filter(l=>l.type===Ye),a=t.filter(l=>l.type!==Ye),n={...e,content:[...r,...La(e),...a]},{owned:s}=ix(Xr(o),Fc(t,Xr(o)));return Object.keys(s).length&&(n.zones={...Xr(e)??{},...s}),n}function dx(e,o){if(!o)return{page:e,chrome:null};let t=bT(o),r=new Set(t.map(ls).filter(T=>!!T)),a=[],n=[];for(let T of La(e)){let y=ls(T);y&&r.has(y)||ns(T?.type)?n.push(T):a.push(T)}let s=new Map(n.map(T=>[ls(T),T])),l=new Set,d=ss(La(o)).flatMap(T=>{let y=ls(T);if(!y||!r.has(y))return[T];let b=s.get(y);return b?(l.add(b),[b]):[]});for(let T of n)l.has(T)||d.some(y=>y?.type===T.type)||(d=T.type===Ye?[T,...d]:[...d,T]);d=ss(d);let c=d.length===La(o).length&&d.every((T,y)=>T===La(o)[y]),f=Xr(e),u=Fc(d,f),{owned:p,rest:h}=ix(f,u),I=ix(Xr(o),Fc(t,Xr(o))).owned,g={...o,content:c?o.content:[...d]},C=Xr(o);if(C||Object.keys(p).length){let T={};for(let[y,b]of Object.entries(C??{}))y in I?y in p&&(T[y]=p[y]):T[y]=b;for(let[y,b]of Object.entries(p))y in T||(T[y]=b);g.zones=T,C&&H3(g.zones,C)&&(g.zones=C)}let w={...e,content:a};return f&&(Object.keys(h).length||!Object.keys(I).length?w.zones=h:delete w.zones),{page:w,chrome:g}}function H3(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 wT(e,o){return t=>e(t)||t!==void 0&&IT.includes(t)&&o()}var CT=null;function cx(e){CT=e}function Bt(){return CT}var vT=null;function fx(e){vT=e}function Bc(){return vT}var px=Ac();function kT(e,o,t){if(!o)return;let r={...px.get(e)};for(let[a,n]of Object.entries(o))r[a]={...n,noted:t};px.set(e,r)}function TT(e,o){kT(e,o,"load")}function PT(e,o){kT(e,o,"save")}function Dc(e){return px.use(e)}var ux=e=>!!Bt()?.sectionOf(e);function ET(e,o=ux){return yT(e,o)}function OT(e,o,t,r=ux){if(t)return e&&ET(o,r).has(e)?void 0:t}function _T(e,o,t=ux){if(!e)return{};let r=[...ET(o,t)];return r.length?{[_c]:e,[sx]:r}:{[_c]:e}}import{ScreenDocumentContext as Cj}from"efficient-easel/screen/components/ScreenDocumentContext";import{readHidable as la,hidableText as vj}from"efficient-easel/draw";import{FOLD_FIELD_MARKER as mO,LINK_FIELD_MARKER as kj,MEDIA_FIELD_MARKER as Tj,SCAFFOLD_FIELD_MARKER as Pj,TEXT_FIELD_MARKER as Lr,foldMetaOf as ia,textFieldIdentifier as Pwe}from"efficient-easel/draw";import{jsx as NT}from"react/jsx-runtime";import{useCallback as G3}from"react";import{useEasel as j3}from"efficient-easel/easel";import{SettingsAction as K3}from"efficient-easel/panel";import{isLengthUnit as z3}from"efficient-easel/screen/lib/content/length-units";import{CORNER_SIDES as Nc,hasCornerSubset as Ll,normalizeCornerSides as or}from"efficient-easel/screen/lib/content/style-keys";import{isLengthUnit as W3}from"efficient-easel/screen/lib/content/length-units";var Fl={kind:"radius",unitKey:"sectionCornersUnit"};function mx(e){return typeof e=="number"&&Number.isFinite(e)}function aue(e,o,t){if(!mx(e))return;let r=W3(t)&&t!=="px"?Jn(e,t):Jn(Jt(e));if(Object.keys(r).length===0)return;let a=r[hx];if(typeof a!="string")return r;let n=Ll(o)?Fa(a,or(o)??[]):a;return{...r,[U3]:n}}var U3="--sf-section-radius",hx="--sf-card-radius";function Fa(e,o){return Nc.map(t=>o.includes(t)?e:"0").join(" ")}var AT=[{value:"tl",label:"Top left"},{value:"tr",label:"Top right"},{value:"bl",label:"Bottom left"},{value:"br",label:"Bottom right"}];var Bl={kind:"radius",unitKey:"cardCornersUnit"},$3="--sf-card-box-radius";function xx(e){return typeof e=="number"&&Number.isFinite(e)}function due(e,o,t){if(!xx(e))return;let r=(z3(t)&&t!=="px"?Jn(e,t):Jn(Jt(e)))[hx];if(typeof r!="string")return;let a=Ll(o)?Fa(r,or(o)??[]):r;return{[$3]:a}}function RT(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?.[Bl.unitKey];return e.map(s=>s?.props?.id===o?s:{...s,props:{...s.props,cardCorners:r,cardCornerSides:a,[Bl.unitKey]:n}})}function LT(e,o,t){let r=Lc(e,o,t),a=r?.slot??"",n=r&&Array.isArray(r.item.props[a])?r.item.props[a]:[],s=t?.index??-1,l=s>=0?n[s]:void 0,d=l?.props?.id?String(l.props.id):"",c=Math.max(n.length-1,0);return!r||!d?{can:!1,reason:"unreachable",others:0}:n.length<=1?{can:!1,reason:"alone",others:c}:xx(l?.props?.cardCorners)?{can:!0,others:c,zone:r.zone,index:r.index,data:{...r.item,props:{...r.item.props,[a]:RT(n,d)}}}:{can:!1,reason:"unset",others:c}}function FT(e){return e.can?Uo("Gives the other card this card's Corners.","Gives the other {n} cards this card's Corners.",e.others):e.reason==="alone"?i("This is the only card in the section."):e.reason==="unset"?i("Set this card's corners first."):i("This card is not in a section that can share corners.")}function BT(e){return Uo("Applied to {n} card","Applied to {n} cards",e)}function DT(e,o){e.can&&o(e.zone,e.index,e.data)}import{useSectionOps as V3}from"efficient-easel/screen/lib/document/use-section-ops";var q3="apply-corners-to-siblings",Y3="Apply to all cards";function X3({plan:e,onPress:o}){return NT(K3,{id:q3,label:i(Y3),note:FT(e),disabled:!e.can,doneLabel:BT(e.others),onPress:o})}function MT(){let{appState:e,config:o}=j3(n=>n),t=V3(),r=LT(o,e.data.content??[],e.ui.itemSelector),a=G3(()=>{DT(r,t.replaceComponent)},[r,t]);return NT(X3,{plan:r,onPress:a})}import{isShown as qT,lazyShowWhenContext as d6}from"efficient-shell/format";var Zr="product",Mc="recordType",HT={key:Zr,label:"Product",fields:[]},Z3=/^[a-z][a-z0-9]*(-[a-z0-9]+)*$/,J3=/^[a-z][A-Za-z0-9]*$/,Q3=["text","date","images"],Ix=new Map,WT=0;function e6(e){if(typeof e.key!="string"||!Z3.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===Zr)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"||!J3.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(!Q3.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 Cue(e){let o=e.map(e6);for(let t of o)Ix.set(t.key,t);o.length&&(WT+=1)}function gx(){return[HT,...Ix.values()]}function o6(e){return e===Zr?HT:Ix.get(e)??null}function bx(){return WT}function Dl(e){let o=e?.[Mc];return typeof o!="string"?Zr:o.trim()||Zr}function yx(e){return Dl(e)===Zr}function vue(e,o){let t=o6(e)?.fields??[];return o?t.filter(r=>o.includes(r.kind)):t}var Hc="product",UT="tyre",t6=[Hc,UT];function Pue(e){return t6.includes(e)}var r6="productType",a6={[Hc]:"alloy-wheel",[UT]:"tyre"},n6=["alloy-wheel","tyre"];function zT(e,o){return yx(o)?$T(o)??a6[e]??null:null}function $T(e){if(!yx(e))return null;let o=e?.[r6];return typeof o=="string"&&n6.includes(o)?o:null}function Eue(e){let o=e?.root;return $T(o?.props)}var Sx="Main Pages",s6="Dynamic Pages",wx="dynamic",l6="dynamic";function Ba(e){return e.kind===l6}var Cx="lightbox";function GT(e){return e.kind===Cx}function jT(e){let o=[],t=[];for(let r of e){if(Ba(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??Sx,rows:[r]})}if(t.length){let r=o.findIndex(a=>a.key.startsWith("system:"));o.splice(r===-1?o.length:r,0,{key:wx,label:s6,rows:t})}return o}var Wc=null,KT=null;function i6(e,o){Wc=e,KT=o}function Fue(e){i6(e,null)}function Bue(){return Wc}function Nl(){return Ba({kind:KT})||Wc===Hc}function Due(e){return zT(Wc??"",e)??"alloy-wheel"}function Nue(e){return Nl()?Dl(e):null}function vx(e,o,t){let r=!1,a={};for(let[n,s]of Object.entries(e)){if(!qT(Eh(s),o??{},t)){r=!0;continue}let l=c6(s,o?.[n],o??{},t);l!==s&&(r=!0),a[n]=l}return r?a:e}function c6(e,o,t,r){let a=e?.options;if(!Array.isArray(a))return e;let n=a.filter(s=>s?.value===o||!s?.showWhen||qT(s.showWhen,t,r));return n.length===a.length?e:{...e,options:n}}function YT(e,o,t,r){let a=Lc(o,t,r);return{device:e,parentType:a?.item.type,parent:a?.item.props}}function VT(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 VT(t.not,o);for(let r of[t.all,t.any])if(Array.isArray(r)&&r.some(a=>VT(a,o)))return!0;return!1}function jue(e,o={}){return d6({parentType:()=>e.parent?.type??void 0,parent:()=>e.parent?.props??void 0,dynamicPage:()=>Nl(),root:()=>e.appState?.data?.root?.props,...o})}import{isLengthUnit as f6}from"efficient-easel/screen/lib/content/length-units";var XT=1,p6="cardImageUnit",kx={kind:"radius",unitKey:p6},ZT={kind:"radius"};function u6(e){return Jt(e)}function Zue(e,o){if(f6(o)&&o!=="px"){let r=q(e);return r!==void 0&&r>=0?{"--sf-card-image-radius":We(r,o)}:{}}let t=u6(e);return t===null?{}:{"--sf-card-image-radius":`${t}px`}}import{isLengthUnit as m6}from"efficient-easel/screen/lib/content/length-units";var JT={kind:"radius",unitKey:"cornersUnit"},QT=1,eP="Corners";function h6(e){return Jt(e)}function ame(e,o,t){let r=m6(t)&&t!=="px"?q(e):void 0,a=r===void 0?h6(e):null;if(r===void 0&&a===null)return null;let n=r!==void 0?We(Math.max(0,r),t):`${a}px`;return{borderRadius:Ll(o)?Fa(n,or(o)??[]):n}}var tP=12,is=6,x6=800,Uc={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"}},rP=["phone","acrossPhone","leadPhone"];var I6=new Set(rP),Ml=Object.fromEntries(Object.entries(Uc).map(([e,o])=>[e,Object.fromEntries(Object.entries(o).filter(([t])=>!I6.has(t)))])),Tx=Object.keys(Uc),aP=[2,3,4,6];function Px(e,o){return Tx.filter(t=>t===o||e===null||Ml[t].across===e)}function nP(e){let o=e.layout;return typeof o=="string"&&$e(Uc,o)?o:null}function Ex(e){let o=nP(e);return o?g6(o,e.layoutPhone):null}var zc={oneAcross:{label:"One across",phone:[[is,2]],acrossPhone:1}};function sP(e){return typeof e=="string"&&$e(zc,e)?e:null}function oP(e,o){return o?is/e.acrossPhone:tP/e.across}function Ox(e){return e.ratio?wk.find(o=>o.shape===e.ratio)?.ratio??null:null}function lP(e){return[...e.lead??[],...e.desktop]}function g6(e,o){let t=Uc[e],r=sP(o);if(!r)return t;let{phone:a,acrossPhone:n}=zc[r],s=Object.fromEntries(rP.map(l=>[l,void 0]));return{...t,...s,phone:a,acrossPhone:n}}var b6="sf-wall--";function y6(e){let o=nP(e);if(!o)return"";let t=sP(e.layoutPhone);return`${b6}${o}${t?`--${t}`:""}`}function ime(e){let o=Ex(e);if(!o)return"";let t=`.${y6(e)}`,r=[],a=(l,d,c)=>`${t}:has(> :nth-child(${l}n+${d+c}):last-child) > :nth-last-child(-n+${c})`,n=(l,d,c=[])=>{let f=[],u=l.length,p=c.length;c.forEach(([h,I],g)=>{f.push(`${t} > :nth-child(${g+1}){grid-column:span ${h};grid-row:span ${I}}`)}),l.forEach(([h,I],g)=>{f.push(`${t} > :nth-child(${u}n+${p+g+1}){grid-column:span ${h};grid-row:span ${I}}`)});for(let h=1;h<u;h+=1)f.push(`${a(u,p,h)}{grid-column:span ${d};grid-row:span 1}`);return f};r.push(`${t}{grid-template-columns:repeat(${tP},minmax(0,1fr))}`);let s=Ox(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,oP(o,!1),o.lead)),r.push(`@media (max-width:${x6}px){`),r.push(`${t}{grid-template-columns:repeat(${is},minmax(0,1fr))}`),r.push(...n(o.phone,oP(o,!0),o.leadPhone)),o.phone.length===1&&!o.leadPhone?.length){let[l,d]=o.phone[0],c=o.lead?.length??0;for(let f=1;f<o.desktop.length;f+=1)r.push(`${a(o.desktop.length,c,f)}{grid-column:span ${l};grid-row:span ${d}}`)}return r.push("}"),r.join("")}var $c=12,iP=1,S6=3;var w6=3;function Gc(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 C6(e){return Gc(e,1,$c)??w6}function fme(e,o){return Gc(e,iP,S6)??(C6(o)===4?2:iP)}function pme(e){return e==null||e===""?null:Gc(e,1,$c)}var ume="data-sf-span",_x=4;function mme(e){return e==null||e===""?null:Gc(e,1,_x)}var hme="data-sf-row-span",Jr=["gridSpan","gridRowSpan"];function xme(e){if(!e)return!1;if(e.type==="Grid")return!0;if(e.type==="GalleryB"){if(Ex(e.props??{}))return!1;let o=e.props?.columns;return o!=null&&o!==""}return!1}import{jsx as v6}from"react/jsx-runtime";import*as k6 from"efficient-easel/icons";function jc(e){let o=e.replace(/(^|-)([a-z])/g,(r,a,n)=>n.toUpperCase()),t=k6[`${o}Icon`];return t?v6(t,{size:16}):null}import{jsx as Qr,Fragment as E6,jsxs as xP}from"react/jsx-runtime";import{useContext as O6,useEffect as _6,useId as A6,useState as IP}from"react";import{SettingsField as R6,SettingsSwitch as L6}from"efficient-easel/panel";import{AnchorIcon as F6}from"efficient-easel/icons";import{ScreenDocumentContext as B6}from"efficient-easel/screen/components/ScreenDocumentContext";import{Snippet as D6}from"efficient-shell/ui";import{slugify as N6}from"efficient-shell/format";import{slugify as T6}from"efficient-shell/format";function Hl(e){return typeof e=="string"?e.trim():e&&typeof e=="object"&&typeof e.text=="string"?e.text.trim():""}var Kc=e=>T6(Hl(e));var Vc="homepage";import{slugify as P6}from"efficient-shell/format";var dP=[{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 cP(e){return e.offersCommerce&&e.offersService?dP:dP.filter(o=>!o.needs||(o.needs==="commerce"?e.offersCommerce:e.offersService))}var Ax="#popup:";function fP(e){return`${Ax}${e}`}function pP(e){return e.startsWith(Ax)&&e.slice(Ax.length).trim()||null}function Wl(e){return e===Vc?"/":`/${e}`}function uP(e){return`/journal/${e}`}function Tme(e){return`/wheels/${e}`}function qc(e,o){return`${Wl(e)}#${o}`}function mP(...e){let o=new Set,t=[];for(let r of e)for(let a of r?.content??[]){let n=Hl(a?.props?.anchor);if(!n)continue;let s=P6(n);!s||o.has(s)||(o.add(s),t.push({slug:s,name:n}))}return t}function Pme(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 hP(e){return/^\/wheels\/[^/?#]+(?:[?#].*)?$/.test(e)}import{readHidable as M6}from"efficient-easel/draw";function gP({value:e,onChange:o,nameBox:t}){let r=M6(e).text,[a,n]=IP(!1),s=a||r.trim()!=="",l=A6();return xP(E6,{children:[Qr(R6,{label:i("Add an anchor"),labelId:l,icon:Qr(F6,{}),action:Qr(L6,{checked:s,ariaLabelledBy:l,onChange:d=>{n(d),!d&&r!==""&&o("")}})}),s&&t(e,o),s&&Qr(H6,{name:r})]})}function H6({name:e}){let o=O6(B6),t=o?.templateId?"":o?.currentSlug??"",[r,a]=IP("");_6(()=>a(Cc()),[]);let n=N6(e);if(!n||!t)return null;let s=`${r}${qc(t,n)}`,l=s.replace(/^https?:\/\//,""),d=l.lastIndexOf("#");return Qr("div",{className:"sf-anchor-link",children:Qr(D6,{value:s,label:i("link"),size:"sm",children:xP("span",{className:"sf-anchor-link-text",children:[Qr("span",{className:"sf-anchor-link-path",children:l.slice(0,d)}),Qr("span",{className:"sf-anchor-link-hash",children:l.slice(d)})]})})})}import{jsx as tr,jsxs as W6}from"react/jsx-runtime";import{Fragment as U6}from"react";import{Button as Yc,Tooltip as z6}from"efficient-shell/ui";function bP({status:e,statusText:o,onRefresh:t,busy:r=!1,edit:a,hint:n,spaced:s=!0,compact:l=!1,oneLine:d=!1}){return l?tr("div",{className:`sf-blogsource sf-blogsource--compact${d?" sf-blogsource--line":""}`,style:s?{marginTop:8}:void 0,children:tr(z6,{content:n,className:d?"sf-name-tip":void 0,children:tr("p",{className:"sf-blogsource-status","data-state":e,children:[o?tr(U6,{children:o},"status"):null,t?tr(Yc,{variant:"link",size:"sm",className:"sf-blogsource-link",onClick:t,disabled:r,children:i("Refresh now")},"refresh"):null,a?tr(Yc,{variant:"link",size:"sm",className:"sf-blogsource-link",onClick:a.onClick,children:a.label},"edit"):null].filter(Boolean).flatMap((c,f)=>f?[" \xB7 ",c]:[c])})})}):W6("div",{className:"sf-blogsource",style:s?{marginTop:9}:void 0,children:[tr("p",{className:"sf-blogsource-status","data-state":e,children:o}),t?tr(Yc,{variant:"secondary",className:"sf-blogsource-action",onClick:t,disabled:r,children:i("Refresh now")}):null,a?tr(Yc,{variant:"secondary",className:"sf-blogsource-action",onClick:a.onClick,children:a.label}):null,tr("p",{className:"es-field-hint",children:n})]})}import{AdjustIcon as Ej,EyeIcon as Oj,AnimationIcon as _j,BackgroundIcon as eO,BorderAllIcon as Aj,BlockSectionIcon as Rj,ColumnWidthsIcon as fg,ColumnsIcon as hO,CornerIcon as xO,DirectionDownIcon as Lj,DirectionLeftIcon as Fj,DirectionRightIcon as Bj,DirectionUpIcon as Dj,EditIcon as Nj,GapIcon as Mj,GridIcon as IO,GroundIcon as lg,HashIcon as Hj,HeightIcon as pg,ImageIcon as Wj,ListIcon as Uj,LocationIcon as oO,PaddingBottomIcon as gO,PaddingLeftIcon as bO,PaddingRightIcon as yO,PaddingTopIcon as ug,PageIcon as zj,StickyIcon as SO,SearchIcon as $j,SquareIcon as Gj,TypeIcon as jj,WidthIcon as Kj}from"efficient-easel/icons";import{jsx as Je,Fragment as Da,jsxs as Na}from"react/jsx-runtime";import{CaptionIcon as $6,DateIcon as G6,FlagIcon as j6,TitleIcon as K6,ButtonIcon as V6,DollarIcon as q6,HashIcon as Y6,LinkIcon as X6,NoteIcon as Z6,TagIcon as J6,TextLinesIcon as Q6}from"efficient-easel/icons";var yP={body:Q6,button:V6,link:X6,label:J6,number:Y6,price:q6,note:Z6,name:j6,date:G6,caption:$6,title:K6},SP={eyebrow:Na(Da,{children:[Je("path",{d:"M5 6.5h5"}),Je("path",{d:"M5 12.5h14"}),Je("path",{d:"M5 18h11"})]}),heading:Na(Da,{children:[Je("path",{d:"M6.5 5v14"}),Je("path",{d:"M17.5 5v14"}),Je("path",{d:"M6.5 12h11"})]}),intro:Na(Da,{children:[Je("path",{d:"M4 5.5v13"}),Je("path",{d:"M8 7.5h12"}),Je("path",{d:"M8 12h12"}),Je("path",{d:"M8 16.5h8"})]}),value:Na(Da,{children:[Je("rect",{x:"2.5",y:"7",width:"19",height:"10",rx:"2"}),Je("path",{d:"M6.5 12h7"})]}),quote:Na(Da,{children:[Je("path",{d:"M9.5 5.5C7 7.2 5.5 9.7 5.5 12.8h4v5.7h-5v-5.7"}),Je("path",{d:"M19.5 5.5c-2.5 1.7-4 4.2-4 7.3h4v5.7h-5v-5.7"})]}),tag:Na(Da,{children:[Je("rect",{x:"3",y:"5.5",width:"18",height:"13",rx:"2.5"}),Je("path",{d:"M8 9.5h8"}),Je("path",{d:"M12 9.5v5"})]}),meta:Na(Da,{children:[Je("path",{d:"M4 7h16"}),Je("path",{d:"M4 14h3.5"}),Je("path",{d:"M10.5 14h3"}),Je("path",{d:"M17 14h3"})]})};function Rx({noun:e,size:o=14,strokeWidth:t=1.8,className:r,style:a}){let n=yP[e];return n?Je("span",{className:r,style:{display:"inline-flex",...a},"aria-hidden":"true",children:Je(n,{size:o})}):Je("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:SP[e]})}var qme=Object.keys(yP);var Yme=Object.keys(SP);import{parseHexColor as lW}from"efficient-shell/format";import{parseHexColor as TP}from"efficient-shell/format";import{COLOR_SLOTS as PP,FILL_COLOR_SLOTS as aW,colorRole as nW,fillColorRole as EP}from"efficient-shell/markup";import{parseHexColor as wP}from"efficient-shell/format";import{FILL_COLOR_SLOTS as eW}from"efficient-shell/markup";var Xc=e=>{let o=fk.find(t=>t.role===e);return o?`var(${o.token})`:""},oW=e=>Xc(e)?`var(--theme-${e})`:"",tW={main:{ink:Pa.accent,page:Pa.accent,key:"accent",label:()=>i("Main"),words:e=>i("Theme {n} main color",{n:e})},text:{ink:Pa.text,page:Pa.text,key:"text",label:()=>i("Text"),words:e=>i("Theme {n} text color",{n:e})},background:{ink:Xc("bg"),page:oW("bg"),key:"background",label:()=>i("Background"),words:e=>i("Theme {n} background",{n:e})},muted:{ink:Pa.labels,page:Pa.labels,key:"muted",label:()=>i("Muted"),words:e=>i("Theme {n} muted color",{n:e})},surface:{ink:Xc("surface"),page:Xc("surface"),key:"surface",label:()=>i("Surface"),words:e=>i("Theme {n} surface color",{n:e})}};function ea(e){return K(tW,e)}var Lx="#9ca3af";function ds(e,o,t){let r=ea(e);return r?{hex:wP(o[r.key]??"")??"",words:r.words(t)}:null}function CP(e,o){return eW.flatMap(t=>{let r=ds(t,e,o);return r&&ea(t)?.ink?[{name:t,label:r.words,value:r.hex||Lx}]:[]})}var rW=["main","text","background"];function vP(e){let o=new Set,t=[];return xo(e).themes.forEach((r,a)=>{for(let n of rW){let s=ea(n),l=s?r[s.key]:void 0,d=typeof l=="string"&&l?wP(l):null;!s||!d||o.has(d)||(o.add(d),t.push({value:d,label:s.words(a+1)}))}}),t}function Pr(e){return ea(e)?.ink??""}function rr(e){if(typeof e!="string")return null;let o=EP(e.trim());return o?.kind==="slot"&&Pr(o.slot)?o.slot:null}var sW={accent:"main",labels:"muted"};function rt(e){return K(sW,e)??e}function cs(e){if(!e)return"";if(e.startsWith("#"))return TP(e)===e.toLowerCase()?e:"";let o=nW(rt(e));return o?.kind==="slot"?Pr(o.slot):""}function fs(e,o=PP){return o.flatMap(t=>{let r=ea(t);return r?.ink?[{name:t,label:r.label(),value:e?.[t]||Lx}]:[]})}function OP(e){let o=EP(rt(e));return o?.kind==="slot"?Pr(o.slot):""}function Fx(e){let o=e?.trim();return o?aW.find(t=>Pr(t)===o)??null:null}function _P(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 PP){let l=Pr(s);if(!l)continue;let d=l.replace(/^var\((--[\w-]+)\)$/,"$1"),c=a.getPropertyValue(d).trim();if(!c)continue;let f=kP(c);!f&&n&&(n.fillStyle="#000000",n.fillStyle=c,f=kP(String(n.fillStyle))),f&&(o[s]=f)}return o}function kP(e){let o=e.trim().toLowerCase();if(o.startsWith("#"))return TP(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 iW="#ffffff";function Bx(e){return AP(e)||(dW(e)?e:iW)}function AP(e){let o=rr(e);return o?ea(o)?.page??"":""}function dW(e){return typeof e=="string"&&lW(e)===e.toLowerCase()||AP(e)!==""}function uhe(e){return{"--bg":Bx(e)}}import{parseHexColor as cW}from"efficient-shell/format";import{fillColorRole as fW}from"efficient-shell/markup";function Ma(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 vhe="sf-card",khe="[--sf-card-lift:none] [--sf-card-shadow-hover:var(--sf-card-shadow,none)]",oa={min:0,max:100,step:5,fallback:0,unit:"%"},pW=[{label:"Even",value:"even"},{label:"From the bottom",value:"bottom"}],uW="68%",The={desktop:20,phone:20,side:40,sidePhone:24},Phe="sf-box-sides";function Nx(e){return typeof e=="string"&&e.trim()!==""}function Ehe(e){return Nx(typeof e?.bgImage=="string"?e.bgImage:null)||Zc(e)}function Zc(e){return Zt(e,oc)!==""}function Ohe(e,o){return o||!Zc(e)?e:{...e,[oc]:""}}function _he(e,o){return Lh(o,Zt(e,oc))?.trim()||null}function RP(e,o){let t=typeof e=="number"?e:Number.parseFloat(String(e??""));if(!Number.isFinite(t)||t<=0)return null;let r=(Math.min(oa.max,Math.max(oa.min,t))/100).toFixed(2);return o!=="bottom"?{background:mc(Number(r))}:{background:`linear-gradient(0deg, ${mc(Number(r))} 0%, ${mc(0)} ${uW})`}}var Jc=[{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"}],LP="fillFade",Dx=Jc[1].value,Qc=e=>e===Dx?Dx:Jc[0].value,mW=[{mix:"12%",at:"50%"},{mix:"19%",at:"70%"},{mix:"50%",at:"95%"}];function Ahe(e){return Qc(e)!==Dx?null:{backgroundImage:`linear-gradient(to bottom, transparent, ${mW.map(o=>`color-mix(in srgb, var(--bg) ${o.mix}, transparent) ${o.at}`).join(", ")})`}}var ef=e=>typeof e=="string"?cW(e.trim()):null,Ul=e=>{let o=ef(e);if(o!==null||typeof e!="string")return o;let t=e.trim();return t&&!t.startsWith("#")&&OP(t)||null},of=e=>{if(typeof e!="string")return null;let o=fW(rt(e.trim()));return o?.kind==="slot"?o.slot:null},Mx="swatch";function Rhe(e,o){if(!o)return null;let t=Lh(o,Zt(e,Mx)),r=rr(t);return ef(t)??(r&&Pr(r)||null)}var hW={tabletClass:"sf-fill-tablet",tabletVar:"--sf-fill-tablet",phoneClass:"sf-fill-phone",phoneVar:"--sf-fill-phone"};function Lhe(e,o,t){return Ma(hW,Ul(e),Ul(o),Ul(t))}var xW={tabletClass:"sf-wash-tablet",tabletVar:"--sf-wash-tablet",phoneClass:"sf-wash-phone",phoneVar:"--sf-wash-phone"};function Fhe(e){let o=RP(e.darken,e.darkenStyle);if(!o)return{className:"",style:{}};let t=(u,p)=>String(RP(u,p)?.background??"none"),r=u=>(typeof u=="number"||typeof u=="string"&&u.trim()!=="")&&Number.isFinite(Number(u))?u:void 0,a=u=>pW.some(p=>p.value===u)?u:void 0,[n,s,l,d]=[r(e.darkenTablet),a(e.darkenStyleTablet),r(e.darkenPhone),a(e.darkenStylePhone)],c=n??e.darken,f=s??e.darkenStyle;return Ma(xW,String(o.background),n!==void 0||s!==void 0?t(c,f):null,l!==void 0||d!==void 0?t(l??c,d??f):null)}function Bhe(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 lv(n,s)}function FP(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(Hx(r,o,0))return{type:typeof a=="string"?a:"",props:n??{}}}return null}function Hx(e,o,t){if(t>12||!e||typeof e!="object")return!1;if(Array.isArray(e))return e.some(a=>Hx(a,o,t+1));let r=e.props;return r&&typeof r=="object"&&r.id===o?!0:Object.values(e).some(a=>Hx(a,o,t+1))}function BP(e,o){let t=e?.content;return Array.isArray(t)?tf(t,o,0)??[]:[]}function tf(e,o,t){if(t>12||!e||typeof e!="object")return null;if(Array.isArray(e)){for(let a of e){let n=tf(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=tf(a,o,t+1);if(n)return[r,...n]}return null}for(let a of Object.values(e)){let n=tf(a,o,t+1);if(n)return n}return null}import{SettingsDefaultReset as Ho,SettingsDrill as Vj,SettingsField as mo,SettingsGroup as qj,SettingsSegmented as Yj,SettingsBorder as Xj,SettingsSidesEach as Zj,SettingsSwitch as mg,borderSides as Jj,borderStartEach as Qj}from"efficient-easel/panel";import{ListField as eK}from"efficient-easel/fields";import{DisplayChips as oK}from"efficient-shell/ui";import{HIDDEN_KEY as IW,hiddenInEveryView as gW,hiddenInView as Wx,hiddenKeyOf as DP}from"efficient-easel/screen/lib/content/view-hide";var bW={"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"},yW={"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"},NP=e=>(e.desktop?"1":"0")+(e.tablet?"1":"0")+(e.mobile?"1":"0");function rf(e,{atSectionLine:o=!1}={}){return(o?yW:bW)[NP(e)]}var ps=[IW,DP("tablet"),DP("mobile")];function MP(e){return{desktop:Wx(e,"desktop"),tablet:Wx(e,"tablet"),mobile:Wx(e,"mobile")}}function zl(e){return gW(e)}function Hhe(e){let o=MP(e);return["desktop","tablet","mobile"].filter(t=>o[t]).join(" ")}var SW={"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!"},wW={"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 Whe(e,{atSectionLine:o=!1}={}){return(o?wW:SW)[NP(MP(e))]}function us(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 af(e,o){return us(e)[o]!==!1}function Ux(e,o,t){let r=us(o)[t];return typeof r=="boolean"?r:af(e,t)}function HP(e){return Object.values(us(e)).some(o=>o===!1)}function WP(e){return Object.keys(us(e)).length>0}function UP(e,o,t){let r={...us(e)};return t?delete r[o]:r[o]=!1,Object.keys(r).length?r:void 0}function zP(e,o,t){return{...us(e),[o]:t}}function $he(e,o,t,{atSectionLine:r=!0}={}){let a=!af(e,t);return rf({desktop:a,tablet:a,mobile:!Ux(e,o,t)},{atSectionLine:r})}import{ColorSwatch as tK,CornersInput as rK,DatePicker as Xwe,DateTimePicker as aK,FOCAL_DEFAULT as Zwe,IconPicker as wO,COLUMN_COUNT_MAX as tO,COLUMN_SHARE_MIN as nK,COLUMN_SHARES_EQUAL as sK,resolveColumnShares as CO,WidthsBar as lK,useShellStrings as iK,IconButton as vO,InputNumber as rO,Slider as dK,Tooltip as hg}from"efficient-shell/ui";import{backendOf as CW}from"efficient-easel/screen/lib/session";var to=CW,nf=e=>e.blocks;async function $P(e){let o=e.trim();if(!o)return null;let t=to().geocode;if(!t)throw new Error("geocode_unavailable");return t.locate(o)}var zx="Lookup busy \u2014 try again in a moment.",sf=e=>typeof e=="number"&&Number.isFinite(e);function Xhe(e){return e.some(o=>{let t=o?.geocode;return t?t.pending||t.manual&&t.lat===void 0&&t.lng===void 0?!0:sf(t.lat)&&t.lat!==o.lat||sf(t.lng)&&t.lng!==o.lng:!1})}async function Zhe(e,o,{geocode:t=$P,courtesyGapMs:r=1100}={}){let a=s=>new Promise(l=>setTimeout(l,s)),n=e.slice();if(e.some(s=>s?.geocode?.pending)){let s=[],l=!1;for(let d of e){if(!d?.geocode?.pending){s.push(d);continue}l&&r>0&&await a(r),l=!0;try{let c=await t(o(d));s.push(c?{...d,lat:c.lat,lng:c.lng,geocode:{...d.geocode,pending:!1,ok:!0,status:`Found \u2014 ${c.label.split(",").slice(0,3).join(",").trim()}`,lat:c.lat,lng:c.lng}}:{...d,geocode:{...d.geocode,pending:!1,ok:!1,status:"No match \u2014 check the address and try again."}})}catch{s.push({...d,geocode:{...d.geocode,pending:!1,ok:!1,status:zx}})}}n=s}return n.map(s=>{let l=s?.geocode;if(!l)return s;if(l.manual&&l.lat===void 0&&l.lng===void 0)return{...s,geocode:{...l,lat:s.lat,lng:s.lng}};let d=sf(l.lat)&&l.lat!==s.lat?l.lat:s.lat,c=sf(l.lng)&&l.lng!==s.lng?l.lng:s.lng;return d!==s.lat||c!==s.lng?{...s,lat:d,lng:c}:s})}import{jsx as $o,jsxs as Gx}from"react/jsx-runtime";import{useRef as vW}from"react";import{ColorPicker as kW,ColorPickerPanel as TW,ColorSwatch as PW,HexInput as EW,Popover as OW,Tooltip as _W,colorFill as AW,colorSwatchClasses as RW,useShellStrings as LW}from"efficient-shell/ui";import{SettingsDefaultReset as FW,SettingsField as BW}from"efficient-easel/panel";import{typedHex as $x}from"efficient-easel/pick";var GP="Not set";function jP({value:e,onChange:o,label:t,id:r,caption:a,inherited:n,ariaLabel:s,choices:l}){return $o(NW,{value:e,onChange:o,label:i(s??t),id:r,caption:a,inherited:n,choices:l})}function DW(){let{theme:e}=he();return vP(e)}function NW({value:e,onChange:o,label:t,id:r,caption:a,inherited:n,choices:s}){let l=DW(),d=e?null:$x(n??""),c=a!==void 0&&(!e||$x(a)!==$x(e))?a:null,f=u=>{u!==e&&o(u)};return Gx("div",{className:"sf-colour",children:[s?$o(MW,{id:r,value:e,onChange:o,label:t,presets:l,follows:d,choices:s}):$o(kW,{id:r,value:e,onChange:f,label:t,presets:l,fallback:d??void 0,size:"md",align:"start"}),c!==null?$o("span",{className:"sf-colour-caption",children:c}):$o("span",{className:"sf-colour-hexwrap",children:$o(EW,{value:e||d||"",onChange:f,label:i("{label} hex code",{label:t}),placeholder:e||d?void 0:i(GP),className:d?"sf-colour-hex is-inherited":"sf-colour-hex",size:"md"})})]})}function MW({value:e,onChange:o,label:t,id:r,presets:a,follows:n,choices:s}){let l=LW().color,d=e||n||"",c=s.findIndex(p=>p.selected),f=c>=0,u=vW(c);return f&&(u.current=c),$o(OW,{id:r,trigger:$o("span",{"aria-hidden":"true",className:"absolute inset-0",style:AW(d)}),triggerLabel:l.swatch(t,d.toUpperCase()||l.none),triggerClassName:RW({size:"md"}),"aria-label":l.panel(t),align:"start",children:Gx("div",{className:"sf-colour-window",children:[$o("div",{role:"group","aria-label":t,className:"sf-colour-choices",children:s.map(p=>$o(_W,{content:p.label,children:$o(PW,{color:p.color,"aria-label":p.label,selected:p.selected,onClick:()=>{p.selected||p.onPick()}})},p.label))}),$o(TW,{value:f?"":e,onChange:o,label:t,presets:a,fallback:(f?d:n)??void 0},u.current)]})})}function Yo({label:e,icon:o,changed:t,hint:r,onReset:a,resetTo:n,children:s,...l}){return $o(BW,{label:e,icon:o,htmlFor:l.id,changed:t,hint:r,action:a?$o(FW,{words:de()?.panel,label:e,changed:!!t,detail:n,onReset:a}):void 0,children:s?Gx("div",{className:"es-width-stack",children:[jP({...l,label:e}),s]}):jP({...l,label:e})})}function $l({label:e,icon:o,value:t,inherited:r,resetTo:a,onChange:n,onReset:s,hint:l,choices:d,children:c}){let f=!!t;return $o(Yo,{label:e,icon:o,value:t,inherited:f?void 0:r,onChange:n,changed:f,onReset:s,resetTo:a,hint:l,choices:d,children:c})}import{keptByRow as ig}from"efficient-easel/screen/lib/document/style-fields";import{jsx as HW}from"react/jsx-runtime";import{useEffect as WW,useState as UW}from"react";import{clearRangeOf as zW,markSelection as $W,useCaretEdit as GW}from"efficient-easel/copy";import{TextToolbar as jW}from"efficient-shell/ui";function KW(e,o,t){return $W(e,o,t,RC)}function KP(e,o){let t=zW(o,e.length),r=FC(e,t.start,t.end);return r.text===e?null:r}function VW(e){let[o,t]=UW(null);return WW(()=>{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,l=n.selectionEnd??s;t(d=>d&&d.start===s&&d.end===l?d:{start:s,end:l})};return r.addEventListener("selectionchange",a),()=>r.removeEventListener("selectionchange",a)},[e]),[o,t]}function qW({target:e,value:o,onChange:t,disabled:r=!1,label:a="Formatting"}){let n=GW({target:e,onChange:t}),[s,l]=VW(e),d=p=>n(h=>{let I=KW(o,p,h);return l({start:I.selectionStart,end:I.selectionEnd}),I}),c=AC(),f={};if(s)for(let p of c)f[p.style]=LC(o,s.start,s.end,p.style);let u=r?null:KP(o,s);return HW(jW,{offered:new Set(c.map(p=>p.style)),onMark:p=>d(p),pressed:f,disabled:r,"aria-label":i(a),className:"sf-markup-bar",clear:u?{onClear:()=>n(()=>{let p=e.current,h=p&&p.ownerDocument.activeElement===p?{start:p.selectionStart??0,end:p.selectionEnd??0}:null,I=KP(o,h)??{text:o,selectionStart:h?.start??0,selectionEnd:h?.end??0};return l({start:I.selectionStart,end:I.selectionEnd}),I})}:void 0})}var jx=qW;import{deviceField as it}from"efficient-easel/screen/lib/document/device-fields";import{NO_CONTROL_FIELD as cK,NoControlMark as fK,noControlField as kO}from"efficient-easel/screen/lib/document/panel-no-control-mark";var Kx="__ownBox";function VP(e){return!!e&&typeof e=="object"&&e[Kx]===!0}var Vx="sfPanelOnly";function ms(e){return!!e&&typeof e=="object"&&e[Vx]===!0}function lf(e,o,t){return typeof e=="number"?e:typeof o=="number"?o:t}var df=void 0;import{phoneKey as vs,tabletKey as xg,viewKeyAt as Ig}from"efficient-easel/draw";import{jsx as cf,Fragment as YW,jsxs as XW}from"react/jsx-runtime";import{useRef as ZW}from"react";import{SettingsDefaultReset as JW}from"efficient-easel/panel";import{effectTiles as QW}from"efficient-easel/screen/lib/document/effect-tiles";import{VIEW_KEY_ACCESS as qP,describedAs as eU,onDesktopWords as oU,phoneTwinFields as YP}from"efficient-easel/screen/lib/document/box-fields";function tU({row:e,read:o,...t}){let r=o(Po(),t.followsView??"desktop");return e({...t,follows:r})}function Er(e,o){return Object.fromEntries(qo.map(t=>{let r=we(e,t);return[r,YP(e,o(t),qP)[r]]}))}function ff(e,o,t){let r=o.render,a={...o,render:n=>cf(tU,{...n,row:r,read:t})};return Er(e,n=>n==="desktop"?o:a)}function rU({spec:e,...o}){let t=e.values.includes(o.value),r="follows"in o,a=e.read(Po(),o.followsView??"desktop"),n=t?o.value:a,s=ZW(null),{preview:l}=e,d=QW({label:i(e.label),options:e.values.map(f=>({value:f,label:i(e.word(f)),picture:e.picture(f)})),fallback:e.fallback,onPreview:l?f=>s.current&&l(s.current,f):void 0}).render,c=d({value:n,onChange:f=>o.onChange(f??e.fallback)});return XW(YW,{children:[l?cf("div",{ref:s,style:{display:"contents"},children:c}):c,r&&t&&cf(JW,{words:de()?.panel,label:i(e.tileWord),changed:!0,detail:oU(f=>i(f),i(e.word(a)),o.followsView),onReset:()=>o.onChange(void 0)})]})}function pf(e,o){let t=eU({type:"custom",render:r=>cf(rU,{...r,spec:o})},{type:"select",label:o.label,options:o.values.map(r=>({value:r,label:o.word(r)}))});return YP(e,t,qP)}import{jsx as Yx,Fragment as sU}from"react/jsx-runtime";import{createContext as lU,useContext as iU}from"react";var uf={ProductGrid:{source:{keep:["slug"]}},GalleryItem:{product:{keep:["code","finish"]}},FeaturedCover:{source:{keep:["slug"]}},LongRead:{source:{keep:["slug"]}}},mf={Events:["posts"],SubscribeBlogs:["posts"]};var aU=["anchor"],nU=/^href$|Href$|^url$|Url$|^link$|^mailto$|^tel$/;function Gl(e){return aU.includes(e)||nU.test(e)}var qx={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"}}};qx.ContactLocations={"locations[].lat":{verb:"pii"},"locations[].lng":{verb:"pii"},"locations[].mapsUrl":{verb:"pii"},"locations[].geocode":{verb:"pii"}};var Axe=Object.fromEntries(Object.entries(uf).map(([e,o])=>[e,Object.keys(o)])),Rxe=Object.fromEntries(Object.entries(mf).map(([e,o])=>[e,[...o]]));import{NoControlMark as dU}from"efficient-easel/screen/lib/document/panel-no-control-mark";var XP=lU(!1);function ZP({children:e}){return Yx(XP.Provider,{value:!0,children:e})}function cU(){return iU(XP)}function JP({name:e,children:o}){return!cU()||!e||!fU(e)||Gl(e)?Yx(sU,{children:o}):Yx(dU,{})}function fU(e){return/^[A-Za-z0-9_$]+$/u.test(e)}var Xx="off",e0="none",Zx=[{label:"None",value:"off"},{label:"1, 2, 3",value:"plain"},{label:"01, 02, 03",value:"padded"},{label:"N\xB001, N\xB002",value:"numero"}],o0=[{label:"None",value:"none"},{label:"Hairline",value:"hairline"}];function Wxe(e){return io(Zx,Xx,e)}var QP="sf-card-index",jl="sf-card-index",Uxe="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",pU={plain:`counter(${jl})`,padded:`counter(${jl}, decimal-leading-zero)`,numero:`"N\xB0" counter(${jl}, decimal-leading-zero)`};function zxe(e,o){return o==="off"?"":`.${e}{counter-reset:${jl}}.${e} .${QP}{counter-increment:${jl}}.${e} .${QP}::before{content:${pU[o]}}`}function $xe(e){return e==="hairline"?"border border-line hover:border-accent":""}var t0=[{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 pK}from"efficient-easel/draw";import{jsx as Xo}from"react/jsx-runtime";import{SettingsDefaultReset as yU,SettingsField as Jx}from"efficient-easel/panel";import{useSelectedHost as SU}from"efficient-easel/easel";import{FOCAL_DEFAULT as wU}from"efficient-shell/format";import{ImageIcon as Qx,PlayIcon as a0}from"efficient-easel/icons";import{ImageFocusPoint as CU,MediaUploadField as vU}from"efficient-shell/ui";import{useContext as kU}from"react";import{ScreenDocumentContext as TU}from"efficient-easel/screen/components/ScreenDocumentContext";import{tabletKey as PU,viewKeyAt as EU}from"efficient-easel/draw";import{usePreviewDevice as OU}from"efficient-easel/draw/client";import{formatFocal as uU,parseFocal as mU}from"efficient-shell/format";var hU="sf-focus-phone",xU="--sf-focus-phone",IU="sf-focus-tablet",gU="--sf-focus-tablet",Kl=e=>{if(typeof e!="string"||!/^\s*-?\d+(\.\d+)?%\s+-?\d+(\.\d+)?%\s*$/.test(e))return null;let{x:o,y:t}=mU(e);return uU(o,t)};function r0(e,o){return Ma(bU,null,Kl(o),Kl(e))}var bU={tabletClass:IU,tabletVar:gU,phoneClass:hU,phoneVar:xU};import{shownTier as eI}from"efficient-easel/screen/lib/document/device-fields";import{onDesktopWords as _U}from"efficient-easel/screen/lib/document/box-fields";import{requestMediaPick as AU}from"efficient-easel/screen/lib/media-picker";import{useEaselHost as RU}from"efficient-easel/screen/lib/host";import{useEaselSession as LU}from"efficient-easel/screen/lib/session-context";function FU(e,o,t,r=!0){let a=eI(t),n=typeof e[o]=="string"&&e[o]?String(e[o]):wU;if(a==="desktop")return{ownView:!1,followed:n,followsView:"desktop",own:void 0,focus:n,key:o};let s=EU(o,a),l=Kl(e[s])??void 0,d=a==="mobile"&&r?Kl(e[PU(o)])??void 0:void 0,c=d??n;return{ownView:!0,followed:c,followsView:d?"tablet":"desktop",own:l,focus:l??c,key:s}}function BU(e,o,t){let r=SU();if(!o||!r)return null;let a=r.values??{};if(t&&!t(a,eI(e)))return null;let n=FU(a,o,e,t?t(a,"tablet"):!0),s=r.onChange;return{...n,set:l=>s(n.key,l),clear:()=>s(n.key,df)}}function n0({value:e,onChange:o,label:t,accept:r,placeholder:a,focusKey:n,focusWhen:s,frameKey:l,fieldKey:d}){let c=RU(),f=LU(),u=i(t),p=OU(),h=r.startsWith("video"),I=BU(p,h?void 0:n,s),g=!!n&&eI(p)!=="desktop",C=kU(TU),w=ta(),T=l&&d?{video:d,frame:l}:null,y=E=>AU(c,{accept:r,title:u,...E?{file:E}:{}}).then(W=>!W||!T?W?.url??null:(w({[T.video]:W.url,[T.frame]:W.posterUrl??""}),null)),b=T?E=>E?o(E):w({[T.video]:"",[T.frame]:""}):o,P=zo(e);if(g&&(!I||!P))return null;if(C&&!C.capabilities.mediaEditing)return Xo(Jx,{label:u,icon:h?Xo(a0,{}):Xo(Qx,{}),children:Xo("div",{className:"sf-image-slot-inert",children:h?i("Templates don\u2019t store videos \u2014 this slot stays a placeholder. Each website picks its own after it\u2019s created."):i("Templates don\u2019t store images \u2014 this slot stays a placeholder. Each website picks its own after it\u2019s created.")})});let H=I?.ownView&&P?Xo(yU,{words:de()?.panel,label:i("Image focus"),changed:!!I.own,detail:_U(E=>i(E),I.followed,I.followsView),onReset:I.clear}):void 0;return g&&I?Xo(Jx,{label:u,icon:Xo(Qx,{}),action:H,children:Xo("div",{style:{flex:"1 1 auto",minWidth:0},children:Xo(CU,{value:I.focus,onChange:I.set,label:i("Image focus"),image:P,hint:null})})}):Xo(Jx,{label:u,icon:h?Xo(a0,{}):Xo(Qx,{}),children:Xo("div",{style:{flex:"1 1 auto",minWidth:0},children:Xo(vU,{value:P,onChange:b,onPick:y,accept:h?"video/*":"image/*",kind:h?"video":"image",placeholder:a===void 0?void 0:i(a),maxSizeBytes:to(f).media.maxUploadBytes,...I?{focus:I.focus,onFocusChange:I.set}:{}})})})}import{jsx as s0}from"react/jsx-runtime";import{useId as DU}from"react";import{FieldSelect as NU}from"efficient-easel/fields";import{SettingsField as MU}from"efficient-easel/panel";function HU(e){return e.map(({value:o,label:t,note:r})=>({value:o,label:t,...r?{meta:r}:{}}))}function l0({label:e,options:o,value:t,onChange:r,emptyLabel:a,icon:n,hint:s}){let l=DU(),d=`${l}-label`,c=`${l}-button`,f=Array.isArray(t)?t:[];return s0(MU,{label:i(e),labelId:d,icon:n,hint:s,children:s0(NU,{id:c,multiple:!0,value:f,options:HU(o),onChange:r,placeholder:a===void 0?i("None"):i(a),ariaLabelledBy:`${d} ${c}`,inline:!0})})}import{jsx as Io,jsxs as Wa,Fragment as mz}from"react/jsx-runtime";import{useCallback as y0,useContext as hz,useId as C0,useRef as S0,useState as w0}from"react";import{ThemeIcon as xz}from"efficient-easel/icons";import{Button as Iz,useClickOutside as gz}from"efficient-shell/ui";import{SettingsField as bz}from"efficient-easel/panel";import{ScreenDocumentContext as yz}from"efficient-easel/screen/components/ScreenDocumentContext";import{jsx as fe,jsxs as aa,Fragment as qU}from"react/jsx-runtime";import{parseHexColor as YU}from"efficient-shell/format";import{Button as tI,IconButton as XU,Tooltip as ZU}from"efficient-shell/ui";import{jsx as ra,jsxs as WU}from"react/jsx-runtime";import{AccentIcon as UU}from"efficient-easel/icons";import{Button as zU,Tooltip as $U}from"efficient-shell/ui";function oI(e){return Vo(e).background}function GU(e){let o=Kr(e.accent,oI(e));return o===null?null:{ratio:o,grade:Zn(o)}}function jU(e){let o=oI(e),t=Kr(e.accent,o);return t===null?[]:Yv(e.accent).filter(r=>{let a=Kr(r,o);return a!==null&&a>t&&Zn(a)==="good"})}var KU={good:"Easy to read","large-only":Xn["large-only"],hard:Xn.hard};function i0({value:e,onChange:o}){let t=GU(e),r=t?.grade,a=t&&t.grade!=="good"?jU(e):[];return ra(Yo,{label:i("Main color"),icon:ra(UU,{}),hint:t?i(KU[t.grade]):void 0,value:e.accent,onChange:n=>o({...e,accent:n}),children:a.length>0?ra("div",{className:"w-full min-w-0",children:WU("div",{className:"sf-readability",children:[ra("p",{className:"sf-readability-advice",children:VU(r,!0)}),ra("div",{className:"sf-readability-suggestions",children:a.map(n=>{let s=Kr(n,oI(e));return ra($U,{content:i("Use {colour}",{colour:n.toUpperCase()}),children:ra(zU,{variant:"secondary",className:"sf-readability-suggestion",leftIcon:ra("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 VU(e,o){return e?e==="good"?i("This color reads clearly on your pages."):o?i("This color is hard to read on this theme's page. The buttons below are the same hue, darkened."):i("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."):i("Pick a color to see how it reads.")}import{ButtonIcon as JU,ChevronDownIcon as c0,ChevronUpIcon as QU,GroundIcon as ez,LayoutIcon as oz,SquareIcon as tz,TextSmallIcon as rz,TypeIcon as d0}from"efficient-easel/icons";var Vl=e=>i("Theme {n}",{n:e+1});function f0({colors:e}){let o=Vo(e),t=El(e)??o.accent;return aa("span",{className:"sf-theme-page",style:{background:o.background,color:o.text},"aria-hidden":!0,children:[fe("span",{className:"sf-theme-eyebrow",style:{color:o.muted},children:i("label")}),aa("span",{className:"sf-theme-headline",children:[i("Heading")," ",fe("span",{style:{color:o.accent},children:i("main")})]}),fe("span",{className:"sf-theme-body",children:i("body text")}),aa("span",{className:"sf-theme-row",children:[fe("span",{className:"sf-theme-btn",style:{background:t,color:Nh(e,o.accent)},children:i("button")}),fe("span",{className:"sf-theme-mini",style:{background:o.surface,borderColor:o.line},children:i("card")})]})]})}var rI={"Text color":fe(d0,{}),"Label color":fe(rz,{}),Background:fe(ez,{}),"Panels & cards":fe(oz,{}),Borders:fe(tz,{}),"Button color":fe(JU,{}),"Button text color":fe(d0,{})};function az({label:e,colorKey:o,value:t,onChange:r,idPrefix:a="sf-theme-ink"}){let n=`${a}-${o}`;return fe(Yo,{label:i(e),icon:rI[e],id:n,value:t,onChange:s=>r(o,s)})}function nz({value:e,accent:o,onChange:t,idPrefix:r="sf-theme-ink"}){let a=`${r}-button`,n=e!==void 0&&YU(e)===e.toLowerCase(),s=n?e:o;return fe(Yo,{label:i("Button color"),icon:rI["Button color"],id:a,value:s,caption:n?s:i("Main"),onChange:t})}function sz({colors:e,accent:o,onChange:t,idPrefix:r="sf-theme-ink"}){let a=`${r}-button-ink`,n=Xv(e),s=Nh(e,o),l=El(e)??o,d=Zn(Kr(s,l)??0);return fe(Yo,{label:i("Button text color"),icon:rI["Button text color"],hint:n&&d!=="good"?i("{grade} on the button",{grade:i(Xn[d])}):void 0,id:a,value:s,caption:n?s:i("Auto"),onChange:t})}var lz=[{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 aI({colors:e,onChange:o,idPrefix:t}){let r=Vo(e);return fe(qU,{children:lz.map(a=>"colour"in a?fe(i0,{value:e,onChange:o},"colour"):"moduleBreak"in a?fe("div",{className:"sf-theme-module-break","aria-hidden":"true"},"module-break"):"button"in a?fe(nz,{value:e.button,accent:r.accent,onChange:n=>o({...e,button:n}),idPrefix:t},"button"):"buttonInk"in a?fe(sz,{colors:e,accent:r.accent,onChange:n=>o({...e,buttonInk:n}),idPrefix:t},"buttonInk"):fe(az,{label:a.label,colorKey:a.key,value:r[a.key],onChange:(n,s)=>o({...e,[n]:s}),idPrefix:t},a.key))})}function hf({index:e,colors:o,selected:t,role:r="radio",open:a,editable:n=!0,onPick:s,onEdit:l,onChangeColors:d}){let c=Vo(o),f=Vl(e),u=e<Dh.length&&!o.brandInk?Dh[e]:null,p=Zn(Kr(c.text,c.background)??0),h=u?JSON.stringify(o)!==JSON.stringify(u):!1,I=a!==void 0;return aa("div",{className:`sf-theme-card${t?" is-selected":""}`,children:[fe("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:fe(f0,{colors:o})}),aa("div",{className:"sf-theme-foot",children:[fe("span",{className:"sf-theme-name",children:f}),p!=="good"&&fe("span",{className:"sf-theme-warn",children:i(Xn[p])}),n&&l&&I&&fe("span",{className:"sf-theme-edit",children:fe(ZU,{content:a?i("Collapse"):i("Edit colors"),children:fe(XU,{size:"sm","aria-expanded":a,"aria-controls":`sf-theme-colours-${e}`,"aria-label":a?i("Collapse {name}",{name:f}):i("Edit colors for {name}",{name:f}),onClick:l,children:a?fe(QU,{size:14}):fe(c0,{size:14})})})}),n&&l&&!I&&fe(tI,{variant:"secondary",size:"sm",className:"sf-theme-edit","aria-label":i("Edit {name}",{name:f}),onClick:l,children:i("Edit")})]}),a&&aa("div",{id:`sf-theme-colours-${e}`,className:"sf-theme-colours",children:[fe(aI,{colors:o,onChange:g=>d?.(g)}),u&&fe(tI,{variant:"link",size:"sm",className:"sf-theme-reset",disabled:!h,onClick:()=>d?.({...u}),children:h?i("Reset {name} to the preset",{name:f}):i("Not changed")})]})]})}function p0({colors:e,name:o,nameId:t,open:r,menuId:a,labelId:n,buttonRef:s,onClick:l,onKeyDown:d,onEdit:c}){return aa("div",{className:"sf-secttheme-btn",children:[fe("button",{ref:s,type:"button",className:"sf-theme-pick","aria-expanded":r,"aria-controls":a,"aria-labelledby":`${n} ${t}`,onClick:l,onKeyDown:d,children:e?fe(f0,{colors:e}):fe("span",{className:"sf-secttheme-nopreview","aria-hidden":"true"})}),aa("div",{className:"sf-theme-foot",children:[fe("span",{id:t,className:"sf-theme-name",children:o}),c&&fe(tI,{variant:"secondary",size:"sm",className:"sf-theme-edit","aria-label":i("Edit {name}",{name:o}),onClick:c,children:i("Edit")}),fe("button",{type:"button",className:"sf-secttheme-caret","aria-hidden":"true",tabIndex:-1,onClick:l,children:fe(c0,{size:12,className:"sf-multi-caret","aria-hidden":"true"})})]})]})}import{useCallback as cI,useEffect as I0,useRef as bf}from"react";import{currentEaselSession as cz}from"efficient-easel/screen/lib/session";import{useEaselSession as fz}from"efficient-easel/screen/lib/session-context";import{useSyncExternalStore as iz}from"react";var m0,nI=null,Ha=null,xf=0,sI=new Set;function lI(e){m0=e;for(let o of sI)o()}function iI(e){nI=e,xf+=1,Ha&&clearTimeout(Ha),Ha=null,lI(void 0)}function If(e){xf+=1,lI(e)}function Or(e=250){nI&&(Ha&&clearTimeout(Ha),Ha=setTimeout(()=>{Ha=null;let o=nI;if(!o)return;let t=++xf;o().then(r=>{t===xf&&lI(r)}).catch(()=>{})},e))}function u0(){return m0}function dz(e){return sI.add(e),()=>{sI.delete(e)}}function gf(){return iz(dz,u0,u0)}var dI=new Set;function h0(e){return dI.add(e),()=>{dI.delete(e)}}async function x0(){let e=(await Promise.allSettled([...dI].map(async o=>o()))).find(o=>o.status==="rejected");if(e)throw e.reason}import{WebsiteBackendError as pz}from"efficient-easel/screen/lib/backend-error";function g0(e=cz()){return(o,t,r)=>{let a=to(e).theme;return a?a.update(o,r?{siteId:r}:void 0):Promise.reject(new pz("invalid","This backend stores no site theme."))}}function b0(e){return e.themeFromDocument?{status:"skipped",reason:"template"}:e.token?null:{status:"skipped",reason:"no-token"}}async function uz(e,o=g0()){let{themeFromDocument:t,token:r,siteId:a,patch:n}=e,s=b0({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(l){return{status:"failed",error:l}}}function hs({themeFromDocument:e,tokenRef:o,siteId:t,onResult:r}){let a=bf(null),n=bf({}),s=fz(),l=bf(r);l.current=r;let d=bf(null),c=cI(p=>{if(p.status==="skipped"){let h=`skipped:${p.reason}`;if(d.current===h)return;d.current=h}else d.current=null;l.current?.(p)},[]),f=cI(async()=>{a.current&&(clearTimeout(a.current),a.current=null);let p=n.current;n.current={};let h=await uz({themeFromDocument:e,token:o?.current,siteId:t,patch:p},g0(s));return c(h),h.status==="saved"&&Or(),h.status==="failed"&&(n.current={...p,...n.current}),h},[e,o,t,c,s]),u=cI((p,h=!1)=>{let I=b0({themeFromDocument:e,token:o?.current});if(I){c(I);return}n.current={...n.current,...p},a.current&&clearTimeout(a.current),h?f():a.current=setTimeout(()=>{f()},500)},[e,o,f,c]);return I0(()=>()=>{f()},[f]),I0(()=>h0(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 Sz="Follow the page",ige="Follow the slideshow",wz=e=>i("Editing {name} changes it everywhere.",{name:e});function Cz({colors:e}){if(!e)return Io("span",{className:"sf-secttheme-chip sf-secttheme-chip--none","aria-hidden":"true"});let o=Vo(e);return Wa("span",{className:"sf-secttheme-chip","aria-hidden":"true",children:[Io("i",{style:{background:o.background}}),Io("i",{className:"sf-secttheme-chip-accent",style:{background:o.accent}})]})}function vz({themes:e,value:o,onPick:t,onEdit:r,menuId:a,followLabel:n}){return Wa("div",{className:"sf-multi-menu sf-secttheme-menu",id:a,role:"listbox",children:[n!==void 0&&Wa(mz,{children:[Wa("button",{type:"button",role:"option","aria-selected":o===null,className:`sf-secttheme-item${o===null?" is-active":""}`,onClick:()=>t(Qt),children:[Io(Cz,{}),Io("span",{className:"sf-secttheme-name",children:i(n)})]}),Io("div",{className:"sf-secttheme-sep",role:"presentation"})]}),o!==null&&e[o]&&Io("p",{className:"sf-secttheme-oncard",role:"presentation",children:i("{name} is on this section",{name:Vl(o)})}),e.map((s,l)=>l===o?null:Io(hf,{role:"option",index:l,colors:s,selected:!1,onPick:()=>t(l),onEdit:()=>r(l)},l))]})}function kz({index:e,colors:o,onChange:t,onDone:r}){let a=Vl(e),n=C0();return Wa("div",{className:"sf-secttheme-sheet",children:[Wa("div",{className:"sf-secttheme-sheet-head",children:[Io("span",{children:a}),Io(Iz,{variant:"secondary",className:"sf-secttheme-done",onClick:r,children:i("Done")})]}),Io("div",{className:"sf-secttheme-rows",children:Io(aI,{colors:o,onChange:t,idPrefix:n})}),Io("p",{className:"sf-secttheme-warn",children:wz(a)})]})}function v0({value:e,onChange:o,followLabel:t,hint:r}){let{theme:a,setTheme:n}=he(),s=xo(a),l=hz(yz),d=l?.tokenRef,c=l?.siteId??null,f=!l?.capabilities?.hasSiteTheme,{persist:u,flush:p}=hs({themeFromDocument:f,tokenRef:d,siteId:c}),h=xo(s),I=h.themes,g=er(e),C=g!==null?I[g]:void 0,w=C??(I.length?Yn(h):void 0),[T,y]=w0(!1),[b,P]=w0(null),H=S0(null),E=S0(null),W=C0(),O=y0(()=>{y(!1),P(null)},[]),D=y0(()=>{!T&&b===null||(p(),O())},[T,b,O,p]);gz(H,D);let v=A=>{o(A),O()},_=A=>{if(b===null)return;let F=I.map(($,X)=>X===b?A:$),z={...h,themes:F};n(z),u({selected_preset:z.selected,theme_presets:z.themes})};return Wa("div",{className:"sf-secttheme",ref:H,children:[Io(bz,{label:i("Theme"),icon:Io(xz,{}),labelId:`${W}-label`,hint:r,children:Io(p0,{colors:w,onEdit:g!==null?()=>{P(g),y(!1)}:void 0,name:C?Vl(g):i(t??Sz),nameId:`${W}-value`,labelId:`${W}-label`,open:T,menuId:W,buttonRef:E,onClick:()=>{P(null),y(A=>!A)},onKeyDown:A=>{A.key==="Escape"&&(T||b!==null)&&(A.preventDefault(),O())}})}),T&&b===null&&Io("div",{onKeyDown:A=>{A.key==="Escape"&&(A.preventDefault(),O(),E.current?.focus())},children:Io(vz,{themes:I,value:g,onPick:v,onEdit:A=>{P(A),y(!1)},menuId:W,followLabel:t})}),b!==null&&I[b]&&Io(kz,{index:b,colors:I[b],onChange:_,onDone:()=>{p(),O(),E.current?.focus()}})]})}import{jsx as k0}from"react/jsx-runtime";import{useId as Tz}from"react";import{FieldSelect as Pz}from"efficient-easel/fields";import{SettingsField as Ez}from"efficient-easel/panel";function Oz(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 hge({label:e,options:o,fallback:t,value:r,onChange:a,placeholder:n,bare:s=!1,icon:l}){let d=Tz(),c=`${d}-label`,f=`${d}-button`,u=r??"",p=o.some(C=>C.value===u)?u:t,h=i(e),I=n===void 0?void 0:i(n),g=k0(Pz,{id:f,value:p,options:Oz(o),onChange:a,placeholder:I,searchPlaceholder:I,...s?{ariaLabel:h}:{ariaLabelledBy:`${c} ${f}`},searchable:!0,groupCount:!0,inline:!0});return s?g:k0(Ez,{label:h,labelId:c,icon:l,children:g})}import{jsx as za,jsxs as i$}from"react/jsx-runtime";import{SettingsField as q0}from"efficient-easel/panel";import{LinkIcon as d$}from"efficient-easel/icons";import{LinkPicker as c$,TextLinkField as f$}from"efficient-shell/ui";import{useEffect as V0,useMemo as vf,useRef as p$,useState as Cf}from"react";import{currentEaselSession as _z}from"efficient-easel/screen/lib/session";function T0(){return _z().auth.token}import{currentEaselSession as u$}from"efficient-easel/screen/lib/session";import{useScreenDocument as m$}from"efficient-easel/screen/components/ScreenDocumentContext";var Az=()=>({choosePage:i("Choose a page"),chooseSection:i("Choose a section"),noSections:i("No section anchors yet"),sectionHint:i("Jumps to a section on that page."),choosePost:i("Choose a post"),chooseProduct:i("Choose a product"),choosePopup:i("Choose a popup")});function P0(e,o,t){if(!e)return"page";if(pP(e))return"popup";if(e.startsWith("/journal/"))return"blog";if(hP(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 fI(e,o){let t=Az(),r=e.pages.map(f=>({value:Wl(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:mP(...f.docs).map(u=>({value:qc(f.slug,u.slug),label:u.name}))})).filter(f=>f.options.length>0),l=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:uP(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:fP(u.slug),label:u.title||u.slug})),placeholder:t.choosePopup};case"custom":return{type:"text"}}},d=cP(e.offers).map(f=>({value:f.value,label:i(f.label),target:l(f.value),...f.value==="anchor"?{hint:t.sectionHint}:{},...f.value==="blog"||f.value==="product"||f.value==="popup"?{hideWhenEmpty:!0}:{}}));if(!o)return{kinds:d,rules:{kindOf:f=>P0(f,n),targetOf:f=>f,readFilter:()=>null,withFilter:f=>f}};let c=f=>{let u=o.withFilter(f,null);return o.listingPaths.includes(u)?u:f};return{kinds:d,rules:{kindOf:f=>P0(f,n,{listingPaths:o.listingPaths,targetOf:c}),targetOf:c,readFilter:o.readFilter,withFilter:o.withFilter},filtersFor:f=>o.listingPaths.includes(f)?o.filtersFor(f):null}}import{useEaselSession as h$}from"efficient-easel/screen/lib/session-context";function Eo(e,o){if(typeof e=="string")return e||o;if(e&&typeof e=="object"&&"text"in e){let t=e.text;return Se(t)??o}return o}function E0(e,o){return q(e)??o}function _r(e,o){return typeof e=="boolean"?e:o}function yf(e,o){if(!Array.isArray(e))return o;let t=e.map(r=>typeof r=="string"?r:Eo(r?.text,"")).map(r=>r.trim()).filter(Boolean);return t.length?t:o}var _0=["delay","scroll","exit"],A0=["all","chosen","except"],R0=["visit","days","never","once"],Rz=["all","desktop","phone"],Lz=["stop","continue"],L0={min:0,max:60},F0={min:10,max:90},B0={min:1,max:90},Dt={autoOpen:!1,trigger:"delay",autoOpenDelaySec:15,scrollPercent:50,showOn:"all",showOnPages:[],devices:"all",hideAfter:"days",hideDays:7,afterSubmit:"stop",startDate:null,endDate:null};function at(e,o,t){return typeof o=="string"&&e.includes(o)?o:t}function xs(e,o,t){let r=E0(e,t);return Math.min(o.max,Math.max(o.min,Math.round(r)))}function Fz(e){return typeof e.hideAfter=="string"?at(R0,e.hideAfter,Dt.hideAfter):e.oncePerSession===!0?"visit":e.oncePerSession===!1?"never":Dt.hideAfter}function Bz(e){return Array.isArray(e)?e.map(o=>typeof o=="string"?o.trim():"").filter(Boolean).map(o=>o.startsWith("/")?o:`/${o}`):[]}function O0(e){if(typeof e!="string")return null;let o=e.trim();return/^\d{4}-\d{2}-\d{2}$/.test(o)?o:null}function D0(e){let o=e??{},t=Dt;return{autoOpen:_r(o.autoOpen,t.autoOpen),trigger:at(_0,o.trigger,t.trigger),autoOpenDelaySec:xs(o.autoOpenDelaySec,L0,t.autoOpenDelaySec),scrollPercent:xs(o.scrollPercent,F0,t.scrollPercent),showOn:at(A0,o.showOn,t.showOn),showOnPages:Bz(o.showOnPages),devices:at(Rz,o.devices,t.devices),hideAfter:Fz(o),hideDays:xs(o.hideDays,B0,t.hideDays),afterSubmit:at(Lz,o.afterSubmit,t.afterSubmit),startDate:O0(o.startDate),endDate:O0(o.endDate)}}import{parseHexColor as Dz}from"efficient-shell/format";var Nt="#000000";var pI="popup",Nz=xk,Mz=["auto","full"],Hz=["inside","outside","none"],Wz={min:240,max:1440},Uz={min:0,max:100},ql={placement:"center",fullWidth:!1,width:720,height:"auto",tintColor:Nt,tintOpacity:60,outsideClick:!0,closeButton:"inside"};function zz(e,o){let t=typeof e=="string"?e.trim():"";return t&&Dz(t)===t.toLowerCase()?t:o}function uI(e,o=ql){let t=e??{},r=o;return{placement:at(Nz,t.placement,r.placement),fullWidth:_r(t.fullWidth,r.fullWidth),width:xs(t.width,Wz,r.width),height:at(Mz,t.height,r.height),tintColor:zz(t.tintColor,r.tintColor),tintOpacity:xs(t.tintOpacity,Uz,r.tintOpacity),outsideClick:_r(t.outsideClick,r.outsideClick),closeButton:at(Hz,t.closeButton,r.closeButton)}}var N0="cart-drawer",Nge="cart-drawer",$z={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 Mge(e,o){return o===0?e.subtitleEmpty:o===1?e.subtitleOne:e.subtitleMany.replace("{count}",String(o))}function Hge(e){let o=e??{},t=$z;return{kickerBadge:Eo(o.kickerBadge,t.kickerBadge),kickerText:Eo(o.kickerText,t.kickerText),titleLead:Eo(o.titleLead,t.titleLead),titleAccent:Eo(o.titleAccent,t.titleAccent),subtitleEmpty:Eo(o.subtitleEmpty,t.subtitleEmpty),subtitleOne:Eo(o.subtitleOne,t.subtitleOne),subtitleMany:Eo(o.subtitleMany,t.subtitleMany),leadTimeValue:Eo(o.leadTimeValue,t.leadTimeValue),shipsToFallback:Eo(o.shipsToFallback,t.shipsToFallback),promises:yf(o.promises,t.promises),emptyKicker:Eo(o.emptyKicker,t.emptyKicker),emptyBody:Eo(o.emptyBody,t.emptyBody)}}var Gz=["right","left"],jz={...ql,width:520,tintOpacity:68};function Wge(e){let o=e??{};return{...uI(o,jz),placement:at(Gz,o.placement,"right"),height:"full",fullWidth:!1,autoOpen:_r(o.autoOpen,!0)}}var H0="consent-banner",Gge="consent-banner";var Kz=[{value:"bar",label:"Bar"},{value:"card",label:"Card"}],jge="Layout",M0={layout:"bar"},Vz=e=>Kz.some(o=>o.value===e);function Kge(e){let o=Eo((e??{}).layout,M0.layout);return{layout:Vz(o)?o:M0.layout}}var Vge={...ql,placement:"bottom-center",fullWidth:!0,width:440,tintOpacity:0,outsideClick:!1,closeButton:"none"};var qz="consentWords",Yz=["eyebrow","notice","accept","reject","choose"];function mI(e){let o=(e??{})[qz];return typeof o=="string"&&Yz.includes(o)?o:null}function hI(e){let o=e?.props;return o?mI(o)!==null?!0:Object.values(o).some(t=>Array.isArray(t)&&t.some(r=>r&&typeof r=="object"&&"props"in r&&hI(r))):!1}var Xz=["meta","eyebrow","heading","body","statName","statValue","formEyebrow","formHeading","formIntro","fieldLabel","option","finePrint","dismiss","doneHeading","doneBody"],Xge={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"},Zz={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"},Zge={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 W0(e){let o={};for(let t of Xz){let r=br(e[Zz[t]]);r&&(o[t]=r)}return o}var U0={heading:"Join our email list",placeholder:"Email address",buttonLabel:"Subscribe"},Jz={lead:"We accept"},wf={...Jz,methods:[],size:"sm",align:"start",dataSource:xC},Mt="site-footer";var ebe=Mt,obe={desktop:!0,tablet:!0,mobile:!0},tbe={desktop:!1,tablet:!1,mobile:!1},xI=1,z0=6,rbe=Array.from({length:z0-xI+1},(e,o)=>xI+o),Sf={desktop:6,tablet:3,mobile:2},Qz={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}},Ua=e=>Math.min(Math.max(Math.round(e),xI),z0);function abe(e){if(typeof e=="number")return Qz[Ua(e)]??{desktop:Ua(e),tablet:Ua(e),mobile:Ua(e)};if(e&&typeof e=="object"){let o=e;return{desktop:Ua(o.desktop??Sf.desktop),tablet:Ua(o.tablet??Sf.tablet),mobile:Ua(o.mobile??Sf.mobile)}}return{...Sf}}var II="subscribe-popup",pbe="subscribe-popup",e$=[II,Mt,N0,H0];function G0(e){return e$.includes(e)}var o$=["right","left"],t$={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:Dt.autoOpen,autoOpenDelaySec:Dt.autoOpenDelaySec,formSlug:"",trigger:Dt.trigger,scrollPercent:Dt.scrollPercent,showOn:Dt.showOn,showOnPages:[],hideAfter:Dt.hideAfter,hideDays:Dt.hideDays,formSide:"right",valuePanelOnPhone:!1,sectionAccent:void 0,sectionCorners:void 0,sectionCornerSides:void 0,textStyles:{}},ro=Eo,r$=_r,j0=yf;function $0(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 a$(e,o){return Array.isArray(e)?j0(e,[]):o}function n$(e,o){return Array.isArray(e)?e.map(t=>{let r=t??{};return{label:ro(r.label,""),value:ro(r.value,"")}}).filter(t=>t.label||t.value):o}function mbe(e){let o=e??{},t=t$,r=D0(o);return{metaLabel:ro(o.metaLabel,t.metaLabel),issueLabel:$0(o.issueLabel,t.issueLabel),issueNumber:$0(o.issueNumber,t.issueNumber),kicker:ro(o.kicker,t.kicker),heading:ro(o.heading,t.heading),deck:ro(o.deck,t.deck),stats:n$(o.stats,t.stats),formLabel:ro(o.formLabel,t.formLabel),formHeading:ro(o.formHeading,t.formHeading),formIntro:ro(o.formIntro,t.formIntro),firstNameLabel:ro(o.firstNameLabel,t.firstNameLabel),firstNamePlaceholder:ro(o.firstNamePlaceholder,t.firstNamePlaceholder),emailLabel:ro(o.emailLabel,t.emailLabel),emailPlaceholder:ro(o.emailPlaceholder,t.emailPlaceholder),interestsLabel:ro(o.interestsLabel,t.interestsLabel),interests:j0(o.interests,t.interests),frequencyLabel:ro(o.frequencyLabel,t.frequencyLabel),frequencies:a$(o.frequencies,t.frequencies),submitText:ro(o.submitText,t.submitText),finePrint:ro(o.finePrint,t.finePrint),dismissText:ro(o.dismissText,t.dismissText),emailInvalidText:ro(o.emailInvalidText,t.emailInvalidText),submitErrorText:ro(o.submitErrorText,t.submitErrorText),successHeading:ro(o.successHeading,t.successHeading),successBody:ro(o.successBody,t.successBody),keepBrowsingText:ro(o.keepBrowsingText,t.keepBrowsingText),formSlug:typeof o.formSlug=="string"?o.formSlug.trim():t.formSlug,autoOpen:r.autoOpen,autoOpenDelaySec:r.autoOpenDelaySec,trigger:r.trigger,scrollPercent:r.scrollPercent,showOn:r.showOn,showOnPages:r.showOnPages,hideAfter:r.hideAfter,hideDays:r.hideDays,formSide:at(o$,o.formSide,t.formSide),valuePanelOnPhone:r$(o.valuePanelOnPhone,t.valuePanelOnPhone),sectionAccent:o.sectionAccent,sectionCorners:o.sectionCorners,sectionCornerSides:o.sectionCornerSides,textStyles:W0(o)}}function s$(e,o=Math.random){for(;;){let t=`popup-${Math.floor(o()*2176782336).toString(36).padStart(6,"0")}`;if(!e.has(t))return t}}function l$(e){return{root:{props:{title:e,kind:pI}},content:[],zones:{}}}function K0(e,o,t){return{slug:s$(o,t),title:e,kind:Cx,layout:l$(e)}}function Yl(e){return e?.root?.props?.kind===pI}function Y0(e){let o=new Map;return(t="")=>{let r=T0(),a=o.get(t);if(!a||a.token===null&&r!==null){let n=r||!u$().usesBridgedToken?e(r??"",t).catch(()=>[]):Promise.resolve([]);return o.set(t,{promise:n,token:r}),n}return a.promise}}var x$=Y0(async(e,o)=>{let t=o?{siteId:o}:void 0,{pages:r}=to();return r.linkTargets?r.linkTargets(t):(await r.list(t)).map(a=>({id:a.id,slug:a.slug,label:a.label,layout:null}))}),I$=Y0(async(e,o)=>await to().blog?.posts(o?{siteId:o}:void 0)??[]);function g$({value:e,onChange:o,label:t="Link",data:r,filters:a}){let n=vf(()=>fI(r,a),[r,a]),s=i(t);return za(q0,{label:s,icon:za(d$,{}),children:za(c$,{value:e,onChange:l=>o(l),kinds:n.kinds,rules:n.rules,filtersFor:n.filtersFor,label:s})})}function X0(){let{siteId:e,capabilities:o}=m$(),{offersCommerce:t,hasBlog:r}=o,[a,n]=Cf([]),[s,l]=Cf([]),[d,c]=Cf([]),[f,u]=Cf(null),p=h$().chrome,h=p?.products?.list,I=p?.linkFilters,g=I?void 0:p?.linkRow,C=p$(!0);V0(()=>(C.current=!0,()=>{C.current=!1}),[]),V0(()=>{let y=!0;return x$(e??void 0).then(b=>y&&C.current&&n(b)),r&&I$(e??void 0).then(b=>y&&C.current&&l(b)),t&&h?.().then(b=>y&&C.current&&c(b)),t&&I?I.load(e).catch(()=>null).then(b=>y&&C.current&&u(()=>b)):u(null),()=>{y=!1}},[e,t,r,h,I]);let w=vf(()=>({pages:a.filter(y=>!G0(y.slug)&&!Yl(y.layout)).map(y=>({slug:y.slug,title:y.label,docs:[y.layout]})),popups:a.filter(y=>y.slug===II||Yl(y.layout)).map(y=>({slug:y.slug,title:y.label})),posts:r?s.map(y=>({slug:y.slug,title:y.title})):[],products:t?d.map(y=>({href:y.href,name:y.name})):[],offers:{offersCommerce:t,offersService:r}}),[a,s,d,t,r]),T=vf(()=>f?f(w.pages):null,[f,w]);return{data:w,filters:T,pages:a,offersCommerce:t,HostLinkRow:g}}function Fbe({label:e,icon:o,text:t,onTextChange:r,link:a,onLinkChange:n}){let{data:s,filters:l}=X0(),d=vf(()=>fI(s,l),[s,l]),c=i(e);return za(q0,{label:c,icon:o,children:za(f$,{label:c,text:t,onTextChange:r,link:a,onLinkChange:f=>n(f),kinds:d.kinds,rules:d.rules,filtersFor:d.filtersFor})})}function Z0({value:e,onChange:o,label:t="Link"}){let r=typeof e=="string"?e:"",{data:a,filters:n,pages:s,offersCommerce:l,HostLinkRow:d}=X0(),c=a.pages.map(u=>Wl(u.slug)),f=l&&d&&(r==="/"||c.includes(r))?d:void 0;return i$("div",{children:[za(g$,{value:r,onChange:o,label:t,data:a,filters:n}),f&&za(f,{value:r,onChange:o,pages:s})]})}import{UiIcon as aO}from"efficient-easel/draw/client";import{phoneKey as sE,resolveViewValue as R$,tabletKey as lE,viewKeyAt as $a}from"efficient-easel/draw";import{SECTION_PAD_UNIT_KEY as dE,SITE_SIDE as L$,convertLength as F$,isLengthUnit as B$,isSiteSide as cE,sideLengthAt as D$,sideValueAt as N$,withLength as CI}from"efficient-easel/screen/lib/content/length-units";import{convertLength as b$}from"efficient-easel/screen/lib/content/length-units";var uo={min:1e3,max:2e3,step:50,default:1600};function y$(e){return{maxWidth:e,marginInline:"auto",width:"100%"}}var gI="--sf-site-width",yI=`var(${gI},${uo.default}px)`,Mbe="100vw",Hbe=`max-w-[${yI}]`,Wbe=`max-w-[${uo.default}px]`;function oE(e){return typeof e!="number"||!Number.isFinite(e)?uo.default:Math.round(Math.min(Math.max(e,uo.min),uo.max))}function Ube(e,o){let t=Aa(e,o,"size",uo);if(t!==null)return{[gI]:t};let r=oE(e);return r===uo.default?{}:{[gI]:`${r}px`}}var Go={min:0,max:80,step:4,default:40},bI="--sf-site-gutter",Ht={min:0,max:24,step:4},J0="--sf-site-gutter-phone",S$="max-view-tablet:[--sf-site-gutter:var(--sf-site-gutter-phone)]!",w$="max-view-wide:[&_[data-sf-line~=edge]:not([data-sf-line~=edge]_*)]:[--sf-site-gutter:var(--sf-site-gutter-phone)]",nt=`var(${bI},${Go.default}px)`,C$=`px-[${nt}]`;var ar={md:`min(24px,${nt})`,sm:`min(20px,${nt})`,frame:`min(24px,${nt})`,tabs:`min(16px,${nt})`},zbe=[[`max-view-desktop:px-[${ar.md}]`,"max-view-desktop:px-6"],[`max-view-desktop:px-[${ar.tabs}]`,"max-view-desktop:px-4"],[`max-[960px]:px-[${ar.frame}]`,"max-[960px]:px-6"],[`max-[900px]:px-[${ar.md}]`,"max-[900px]:px-6"],[`max-view-wide:px-[${ar.md}]`,"max-view-wide:px-6"],[`max-view-tablet:px-[${ar.sm}]`,"max-view-tablet:px-5"],[`max-view-wide:px-[${ar.sm}]`,"max-view-wide:px-5"],[`max-[640px]:px-[${ar.sm}]`,"max-[640px]:px-5"],[`view-wide:px-[${nt}]`,"view-wide:px-10"],[`max-view-tablet:px-[min(24px,${nt})]`,"max-view-tablet:px-6"],[`max-view-wide:-mx-[min(20px,${nt})]`,"max-view-wide:-mx-5"],[`max-view-tablet:-mx-[min(20px,${nt})]`,"max-view-tablet:-mx-5"],[`-mx-[${nt}]`,"-mx-10"],[C$,"px-10"]];var tE="max-view-wide:px-[min(20px,var(--sf-site-gutter,40px))]";function SI(e){return v$[e??"box"]}var Q0="var(--sf-pad-site,var(--sf-box-g,var(--sf-site-gutter,40px)))",eE="[--sf-edge-g:var(--sf-pad-site)]",v$={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:Q0,edge:eE,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:Q0,edge:eE,frame:tE}},$be=`mx-auto max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)] ${tE}`,Gbe="[--sf-box-g:var(--sf-site-gutter,40px)] [&>*]:[--sf-site-gutter:0px]";var jbe="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 kf(e){return typeof e!="number"||!Number.isFinite(e)?Go.default:Math.round(Math.min(Math.max(e,Go.min),Go.max))}function Kbe(e,o){let t=Aa(e,o,"spacing",Go);if(t!==null)return{[bI]:t};let r=kf(e);return r===Go.default?{}:{[bI]:`${r}px`}}function Tf(e){return typeof e!="number"||!Number.isFinite(e)?null:Math.round(Math.min(Math.max(e,Ht.min),Ht.max))}function rE(e){return typeof e=="number"&&Number.isFinite(e)?oE(e):null}function Vbe(e,o){let t=Aa(e,o,"spacing",Ht);if(t!==null)return{[J0]:t};let r=Tf(e);return r===null?{}:{[J0]:`${r}px`}}function qbe(e){return Tf(e)===null?"":`${S$} ${w$}`}function Pf(e,o){let t=fc(e,o,"spacing",Go),r=t===null?kf(e):b$(t,ke(o),"px","mobile",Ht);return Math.min(Ht.max,r)}var aE=yI,Ybe=`max-w-[${aE}]`,Xbe=`max-w-[min(var(--sf-page-cap,${uo.default}px),${uo.default}px)]`,nE="--sf-hero-cap",k$=`var(${nE},none)`,Zbe=`max-w-[${k$}]`,T$="--sf-hero-bleed-m",P$="--sf-hero-bleed-w",E$="--sf-hero-chrome-x",O$="--sf-hero-chrome-cap";function Jbe(e){return e===!0?{[nE]:aE,[T$]:"auto",[P$]:"100%",[E$]:"24px",[O$]:"none"}:{}}var wI=`calc(${yI} - ${nt}*2)`,Qbe=`max-w-[${wI.replace(/ /g,"_")}]`;var _$="--sf-chrome-cap",A$=`var(${_$},${wI})`,eye="data-page-width";function oye(e){return e==="full"?"full":null}function tye(e){return e==="full"?null:y$(e==="content"?wI:A$)}function rye(e){if(e==="full")return"full";if(e==="content")return"content"}var mt={min:10,max:200,step:10};function M$(e,o,t,r=0){let a=q(e),n=q(o);if(a===void 0&&n===void 0)return;let s=Ef(t),l=d=>d===void 0?void 0:s==="px"?d:CI(d,s,r);return{paddingTop:l(a),paddingBottom:l(n)}}var Ef=e=>ke(e),H$="sf-pad-top-phone",W$="sf-pad-bottom-phone",U$="--sf-pad-t-phone",z$="--sf-pad-b-phone",$$="sf-pad-left-phone",G$="sf-pad-right-phone",j$="--sf-pad-l-phone",K$="--sf-pad-r-phone",V$="sf-pad-top-tablet",q$="sf-pad-bottom-tablet",Y$="sf-pad-left-tablet",X$="sf-pad-right-tablet",Z$="--sf-pad-t-tablet",J$="--sf-pad-b-tablet",Q$="--sf-pad-l-tablet",eG="--sf-pad-r-tablet",fE="sf-section-pad";function Zl(e){let o={desktop:e.unit,tablet:e.unitTablet,phone:e.unitPhone},t=M$(e.top,e.bottom,e.unit,e.frame),r=vI({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:[fE,...r.classes].join(" "),style:{...t,...r.style}}}var oG=e=>cE(e)?e:q(e),tG=[["top","paddingTop",[V$,Z$],[H$,U$]],["bottom","paddingBottom",[q$,J$],[W$,z$]],["left","paddingLeft",[Y$,Q$],[$$,j$]],["right","paddingRight",[X$,eG],[G$,K$]]];function iE(e,o,t){return!B$(o)||o==="px"?e:F$(e,"px",o,t,{min:0,max:mt.max,step:1})}function rG(e,o,t,r={},a=0){let n=(h,I)=>{if(I==="px")return`${h}px`;let g=CI(h,I,a);return typeof g=="number"?`${g}px`:g},s={n:e,[lE("n")]:o,[sE("n")]:t,u:r.desktop,[lE("u")]:r.tablet,[sE("u")]:r.phone},l=R$("spacing",q(e),q(o),q(t),$n()),d=(h,I,g)=>{if(N$(s,{side:"n"},h,"side",["side"])?.value===L$)return SI().value;let C=D$(s,{side:"n"},"u",h,"side");if(!C)return;let w=I!==null&&!g&&C.unit==="px"&&typeof l[I]=="number";return n(w?l[I]:C.value,C.unit)},c=d("desktop",null,!0),f={},u=d("tablet","tablet",o!==void 0);u!==void 0&&(o!==void 0||u!==c)&&(f.tablet=u);let p=d("mobile","phone",t!==void 0);return p!==void 0&&(t!==void 0||p!==c)&&(f.phone=p),f}function vI(e,o,t={},r=e,a={},n=0,s="box"){let l={},d={},c=[],f=SI(s),u=!1;for(let[p,h,...I]of tG){let g=p==="left"||p==="right"?oG:q,C=g(e[p]),w=p==="top"||p==="bottom"?n:0;cE(C)?(l[h]=f.value,u=!0):C!==void 0&&(l[h]=Ef(a.desktop)==="px"?C:CI(C,Ef(a.desktop),w));let T=rG(g(r[p]),g(t[p]),g(o[p]),a,w);for(let[y,[b,P]]of[["tablet",I[0]],["phone",I[1]]]){let H=T[y];H!==void 0&&(c.push(b),d[P]=H,H===f.value&&(u=!0))}}return u&&c.push(...f.className.split(" ")),{classes:c,style:{...l,...d}}}var nr={top:"padTop",bottom:"padBottom",left:"padLeft",right:"padRight"},Ga="padUnit";function Jl(e,o){let t=e[Ga],r=(a,n,s)=>{let l=q(a)??(s===void 0?void 0:iE(s,t,"desktop")),d=q(n);return d===void 0?l:(l??0)+iE(d,t,"desktop")};return{top:r(e.padTop,e.sectionPaddingTop,o.top),bottom:r(e.padBottom,e.sectionPaddingBottom,o.bottom)}}function fye(e,o,t={}){let r=Jl(e,o),a={...TI(e,nr,!0,Ga),top:r.top,bottom:r.bottom};t.noTop&&Object.assign(a,{top:0,topTablet:void 0,topPhone:void 0});let n=Zl(a),s=n?n.className.split(" ").filter(l=>l!==fE):[];return{...s.length?{className:s.join(" ")}:{},style:n?.style??{}}}var Xl={top:"sectionPaddingTop",bottom:"sectionPaddingBottom",left:"sectionPaddingLeft",right:"sectionPaddingRight"},kI=[...["top","bottom","left","right"].map(e=>[nr[e],Xl[e]]),[Ga,dE]].flatMap(([e,o])=>[[e,o],...["tablet","mobile"].map(t=>[$a(e,t),$a(o,t)])]);function TI(e,o=Xl,t=!0,r=o===Xl?dE:void 0){let a={};if(r){e[r]!==void 0&&(a.unit=e[r]);for(let n of["tablet","mobile"])e[$a(r,n)]!==void 0&&(a[$a("unit",n)]=e[$a(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[$a(n,s)]=e[$a(o[n],s)]}return a}function pye(e){return Zl(e)}function uye(e,o){let t=(r,a)=>typeof r!="number"?void 0:Ef(a)==="px"?r+o:r;return Zl({...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 Of,buttonBorderOf as aG,buttonFillOpacityOf as nG,buttonPadSidesOf as sG,viewKeyAt as lG}from"efficient-easel/draw";import{BUTTON_PAD_UNIT_KEY as PI,lengthOf as iG}from"efficient-easel/screen/lib/content/length-units";var dG="px-6 py-4",cG=4,_f=e=>{let o=new RegExp(`\\bp${e}-(?:\\[(\\d+)px\\]|(\\d+))`).exec(dG);if(!o)throw new Error(`BUTTON_PAD_CLASSES has no p${e}`);return o[1]!==void 0?Number(o[1]):Number(o[2])*cG},wye={top:_f("y"),right:_f("x"),bottom:_f("y"),left:_f("x")},uE="var(--btn)";function fG(e){let o=e.variant==="ghost",t=nG(e.buttonFillOpacity),r=aG(e.buttonBorder),a=Se(e.buttonColor);return{fillOpacity:t??(o?0:100),border:{width:r?.width??1,color:r?.color??a??(o?"currentColor":uE)},changed:t!==void 0||r!==void 0}}function Cye(e){let o=fG(e);if(!o.changed)return null;let t=Se(e.buttonColor)??uE;return{background:o.fillOpacity===0?"transparent":o.fillOpacity===100?t:`color-mix(in srgb, ${t} ${o.fillOpacity}%, transparent)`,borderWidth:iG(o.border.width,ke(e.buttonBorderUnit)),borderStyle:"solid",borderColor:o.border.color}}var pG="var(--sf-button-radius, 0)";function vye(e){let o=q(e.buttonCorners),t=or(e.buttonCornerSides);if(o===void 0&&t===null)return null;let r=o===void 0?pG:We(Math.max(0,o),e.buttonCornersUnit);return{borderRadius:t===null?r:Fa(r,t)}}function kye(e){let o=(s,l)=>e[lG(s,l)],t=s=>sG({top:o(Of.top,s),right:o(Of.right,s),bottom:o(Of.bottom,s),left:o(Of.left,s)})??{},r={desktop:o(PI,"desktop"),tablet:o(PI,"tablet"),phone:o(PI,"mobile")},{classes:a,style:n}=vI(t("desktop"),t("mobile"),t("tablet"),void 0,r);return Object.keys(n).length?{className:a.join(" "),style:n}:null}var pE="upper";function mE(e,o,t){let r=e&&typeof e=="object"?e:{},a=Se(r.textStyle),n=a?Se(o?.find(f=>f?.id===a)?.name):void 0,s=a?/^(heading|body)-(\d+)$/.exec(a):null,l=a?n||(s?t.styleName({kind:s[1],n:Number(s[2])}):a):t.noStyle,{cases:d}=t,c=Se(r.case)??pE;return`${l} \xB7 ${d[c]??d[pE]}`}import{usePreviewParts as uK}from"efficient-easel/draw/client";import{encodePartId as mK}from"efficient-easel/draw";import{DEFAULT_EASEL_STRINGS as hK,useEaselStrings as xK}from"efficient-easel/strings";import{PIN_STICK_VAR as uG,PIN_TRACK_POSITION_VAR as mG,pinAttrs as hE,pinStickVars as hG,readPin as _I}from"efficient-shell/format";var Aye="Stick to top",ht={min:0,max:200,step:4,fallback:0},Ql={kind:"position",unitKey:"stickTopDistanceUnit"},xE=qn(Ql),[xG,IG,gG]=xE,AI="Pin while scrolling",IE="Scroll",Wt={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"},ja="stickTopScreens",bG=[ja,"stickTopScreensTablet","stickTopScreensPhone"],RI="Screens",LI="stickTopStop",Is="screen",gE="Pin stops at",bE=[{value:"header",label:"Under the header"},{value:Is,label:"Screen top"}],yE="header",SE="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 FI(e){return e===Is?Is:"header"}function wE(e){return e===Is?Is:void 0}var ei="stickAbove",CE="Stays above",vE="On: the pinned box stays on top, and the sections after it scroll under it.";function yG(e){return e.stickAbove===!0}var kE=["stickTop","stickTopDistance","stickTopTablet","stickTopDistanceTablet","stickTopPhone","stickTopDistancePhone",...xE,...bG,LI,ei],Rye=new Set(["IntroBleed"]),Lye=new Set(["CategoryBar","DocTabs","Contents"]);function SG(e){return typeof e.stickTop=="boolean"?e.stickTop:e.sticky!==!1}var EI=e=>_I(!0,e).length,BI={any:["stickTop","stickTopTablet","stickTopPhone"].map(e=>({field:e,is:!0}))},TE={all:[{not:{field:"stickTop",in:[!0,!1]}},{not:{field:"sticky",is:!1}}]};function OI(e,o="px"){let t=q(e)??ht.fallback;return o!=="px"?Math.max(ht.min,t):Math.min(ht.max,Math.max(ht.min,Math.round(t)))}function DI(e){return typeof e.stickTopTablet=="boolean"}function NI(e){return typeof e.stickTopPhone=="boolean"}function gs(e,o={}){let t=o.intro?SG(e):e.stickTop===!0,r=e,a=ke(r[xG]),n=OI(e.stickTopDistance,a),s=EI(e.stickTopScreens),l=DI(e),d=l?e.stickTopTablet===!0:t,c=l?ke(r[IG]):a,f=l?OI(e.stickTopDistanceTablet,c):n,u=l?EI(e.stickTopScreensTablet):s,p=NI(e),h=p?e.stickTopPhone===!0:d,I=p?ke(r[gG]):c,g=p?OI(e.stickTopDistancePhone,I):f,C=p?EI(e.stickTopScreensPhone):u;return{desktop:t,desktopDistance:n,desktopUnit:a,desktopScreens:s,tablet:d,tabletDistance:f,tabletUnit:c,tabletScreens:u,ownTablet:l,phone:h,phoneDistance:g,phoneUnit:I,phoneScreens:C,ownPhone:p}}function Fye(e,o={}){let t=gs(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&&yG(e),s=o.track===!0&&!r&&a&&!n,l=(u,p,h,I)=>Ma({tabletClass:"",tabletVar:`${u}-tablet`,phoneClass:"",phoneVar:`${u}-phone`},p,h,I).style,d={...o.atScreenTop||FI(e.stickTopStop)===Is?{[Wt.header]:"0px"}:{},[Wt.distance]:We(t.desktopDistance,t.desktopUnit),...l(Wt.distance,We(t.desktopDistance,t.desktopUnit),We(t.tabletDistance,t.tabletUnit),We(t.phoneDistance,t.phoneUnit))};if(s){let u=h=>h?"1":"0",p={...d,...t.desktop?{}:{[Wt.on]:"0"},...l(Wt.on,u(t.desktop),u(t.tablet),u(t.phone)),[Wt.length]:String(t.desktopScreens),...l(Wt.length,String(t.desktopScreens),String(t.tabletScreens),String(t.phoneScreens)),...wG(t.desktop&&t.desktopScreens===0,t.tablet&&t.tabletScreens===0,t.phone&&t.phoneScreens===0,l)};return{attrs:hE(_I(!0),"track").attrs,style:p}}let c=u=>u?"sticky":"static",f={...d,...t.desktop?{}:{[Wt.position]:"static"},...l(Wt.position,c(t.desktop),c(t.tablet),c(t.phone))};return{attrs:hE(_I(!0),"stick",n?{above:n}:{}).attrs,style:f}}function wG(e,o,t,r){let a=[[Wt.stick,uG],[Wt.trackPosition,mG]],[n,s,l]=[e,o,t].map(hG);return Object.fromEntries(a.flatMap(([d,c])=>[...e?[[d,n[c]]]:[],...Object.entries(r(d,n[c],s[c],l[c]))]))}var CG=["column","row","tabs","accordion"];var vG={column:"Stacked",row:"One row",tabs:"Tabs",accordion:"Accordion"},PE={Flex:CG,HeroGroup:["column","row"]},kG={Flex:"row",HeroGroup:"column"},TG={column:"flex-col",row:"flex-row",tabs:"flex-col",accordion:"flex-col"};function bs(e,o){return PE[e].includes(o)?o:kG[e]}function Dye(e,o){return TG[bs(e,o)]}function EE(e){return PE[e].map(o=>({label:vG[o],value:o}))}import{viewKeyAt as MI}from"efficient-easel/screen/lib/content/view-tiers";var Rf=20,PG=["solid","dashed","dotted"],Lf=["top","right","bottom","left"],Wye="sf-section-border",Uye="sf-section-border-self",EG=/^#(?:[0-9a-f]{3}|[0-9a-f]{4}|[0-9a-f]{6}|[0-9a-f]{8})$/i,OG=e=>typeof e=="number"&&Number.isFinite(e)?`${Math.min(Rf,Math.max(0,Math.round(e)))}px`:void 0,oi={kind:"border",unitKey:"sectionBorderUnit"},_E=qn(oi);function zye(e){let o=oi.unitKey;return{desktop:e[MI(o,"desktop")],tablet:e[MI(o,"tablet")],phone:e[MI(o,"mobile")]}}var OE=(e,o)=>o==="px"?OG(e):typeof e=="number"&&Number.isFinite(e)?We(Math.max(0,e),o):void 0;function Af(e,{phone:o=!1,tablet:t=!1,unit:r}={}){if(!e||typeof e!="object")return;let a=o?"-phone":t?"-tablet":"",n={},s=ke(r);for(let l of Lf){let d=OE(e[l],s)??OE(e.width,s);d!==void 0&&(n[`--sf-border-${l}-width${a}`]=d)}return typeof e.style=="string"&&PG.includes(e.style)&&(n[`--sf-border-style${a}`]=e.style),typeof e.color=="string"&&EG.test(e.color)&&(n[`--sf-border-color${a}`]=e.color.toLowerCase()),Object.keys(n).length?n:void 0}function HI(e){let{width:o,...t}=e;return typeof o!="number"?e:{...t,...Object.fromEntries(Lf.map(r=>[r,t[r]??o]))}}function $ye(e,o,t,r={}){let a=Af(e,{unit:r.desktop}),n=Af(t,{tablet:!0,unit:r.tablet}),s=Af(t,{phone:!0,unit:r.tablet}),l=Af(o,{phone:!0,unit:r.phone}),d=s||l?{...s,...l}:void 0;return a||n||d?{...a,...n,...d}:void 0}var Ff="sf.gapContainer",Ar={min:-32,max:64,step:2},NE={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},ys={Grid:24,Flex:24,FooterGroup:16,HeroGroup:0,Events:24,GalleryB:8,ProductGrid:2},_G=new Set(["Events","GalleryB"]);function Ka(e,o,t){if(typeof o=="number"&&Number.isFinite(o)&&o>=Ar.min)return o;if(typeof o=="string"){let r=NE[e]?.[o];if(typeof r=="number")return r}return typeof t=="number"&&Number.isFinite(t)?t:ys[e]}var AG="sf-gap-overlap",RG="--sf-gap-overlap",WI="--sf-block-gap",AE="--sf-block-gap-rem",xt={min:0,max:Ar.max,step:Ar.step};function ti(e){if(typeof e!="number"||!Number.isFinite(e))return null;let o=Math.min(Math.max(Math.round(e),xt.min),xt.max);return o-o%xt.step}function Kye(e,o){let t=Aa(e,o,"gap",xt);if(t!==null)return{[WI]:t,[AE]:t};let r=ti(e);return r===null?{}:{[WI]:`${r}px`,[AE]:`${r/16}rem`}}var RE="--sf-block-gap-phone",LE="--sf-block-gap-phone-rem",LG="--sf-block-gap-on-phone",FG="max-view-tablet:[--sf-block-gap-on-phone:var(--sf-block-gap-phone)]",BG="max-view-wide:[&_[data-sf-line~=edge]:not([data-sf-line~=edge]_*)]:[--sf-block-gap-on-phone:var(--sf-block-gap-phone)]";function Vye(e,o){let t=Aa(e,o,"gap",xt);if(t!==null)return{[RE]:t,[LE]:t};let r=ti(e);return r===null?{}:{[RE]:`${r}px`,[LE]:`${r/16}rem`}}function qye(e){return ti(e)===null?"":`${FG} ${BG}`}var FE="sf-gap-zone",BE="--sf-gap-len";function Bf(e,o){return typeof o=="number"&&Number.isFinite(o)&&o>=Ar.min?!0:typeof o=="string"&&typeof NE[e]?.[o]=="number"}var DE="--sf-gap-len-phone",DG="--sf-gap-len-tablet",ri={min:0,max:Ar.max,step:Ar.step};function na(e){return typeof e=="number"&&Number.isFinite(e)&&e>=ri.min}function UI(e){return e/2}function zI(e,o,t){return na(t)&&!Bf(e,o)}function $I(e,o,t,r,a){return na(o)?o:zI(e,t,a)?a:UI(Ka(e,t,r))}var NG={block:"sf-gap-overlap-block",inline:"sf-gap-overlap-inline",both:"sf-gap-overlap-both"};function Yye(e,o,t,r,a){let n={...na(r)?{[DE]:`${r}px`}:null,...na(a)?{[DG]:`${a}px`}:null};if(!Bf(e,o)){let l=`${ys[e]}px`,d=_G.has(e)?`var(--sf-card-gap, ${l})`:l;return{className:` ${FE}`,style:{[BE]:`var(${WI}, ${d})`,[DE]:`var(${LG})`,...n}}}let s=Ka(e,o);return s>=0?{className:` ${FE}`,style:{[BE]:`${s}px`,...n}}:{className:` ${AG} ${NG[t]}`,style:{gap:"0px",[RG]:`${-s/2}px`}}}import{parseHexColor as MG}from"efficient-shell/format";var Mo="var(--section-bg)",ai="inherit";function sr(e,o){return e===ai?Mo:e===void 0?o:Df(e)}var HG=/var\(\s*--(surface-2|surface|line)\s*(?=[,)])/g;function Df(e){let o=rr(e);return o?Pr(o):e.replace(HG,"var(--site-$1")}var WG={"var(--section-bg)":"band","var(--site-surface)":"surface","var(--site-surface-2)":"surface2"};function GI(e,o,t){let r=sr(e,o);if(!r||r==="transparent")return t.background.toLowerCase();let a=r.trim(),n=a.startsWith("#")?MG(a):null;if(n)return n.toLowerCase();let s=WG[a.replace(/\s+/g,"")];return(s?t[s]:t.background).toLowerCase()}var jI="transparent";function ME(e,o){let t=sr(e,o);return!t||t===jI?"none":t===Mo?"band":null}function HE(e,o,t=o){let r=n=>!n||n==="transparent",a=sr(e,o);return a===t||r(a)&&r(t)}var WE=["transparent","var(--wheel-stage)","var(--surface)","var(--surface-2)"],UE={transparent:"No fill","var(--wheel-stage)":"Image stage","var(--surface)":"Panels and cards","var(--surface-2)":"Second surface"},Ss="var(--wheel-stage)",Nf="transparent",ni="inherit";function oSe(e,o){return Df(KI(e,o))}function KI(e,o){return e===ni?Ss:e==null?o:e===!0?Ss:e===!1?Nf:e}function tSe(e){return typeof e=="string"&&e!==ni?Df(e):Ss}function rSe(e){return e!==Nf&&e!=="none"&&e!==""}function zE(e,o){return e===ni||e===!0?!0:e==null?o===Ss:!1}var $E="inherit",Mf="fixed",GE=e=>typeof e!="number"&&e!==Mf,UG="var(--sf-heading-max, 9999px)";function sSe(e,o,t,r,a){if(typeof e=="number")return We(e,a);if(e===Mf)return o;let n=r?`var(--size-${r}, ${o})`:o;return t==="heading"?`min(${n}, ${UG})`:n}var VI={kind:"fontSize",unitKey:"titleSizeUnit"},qI={kind:"fontSize",unitKey:"bodySizeUnit"},zG=["desktop","mobile"],jE=[VI,qI].flatMap(e=>qn(e,zG));function YI(e){let o=(t,r)=>zv(e,t,r);return{titleDesktop:o(VI,"desktop"),titleMobile:o(VI,"mobile"),bodyDesktop:o(qI,"desktop"),bodyMobile:o(qI,"mobile")}}var $G=["page","full"],KE=["full","page"],Va={full:"Full",page:"Content"},XI="inherit",GG=e=>typeof e=="string"&&$G.includes(e),jG=e=>e===XI;function KG(e,o){return jG(e.widthMode)?{mode:"full",inherited:!0}:GG(e.widthMode)?{mode:e.widthMode,inherited:!1}:{mode:o,inherited:o==="full"}}function fSe(e){return KG(e,"page").mode==="full"}var VG={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 pSe(e){return $e(VG,e)}var lo={background:"sectionBackgroundWidth",content:"sectionContentWidth",contentMax:"sectionContentMax",contentMaxUnit:"sectionContentMaxUnit"},uSe={kind:"size",unitKey:lo.contentMaxUnit};function qG(e){let o=e[lo.contentMaxUnit],t=ke(o),r=e[lo.contentMax],a=t==="px"?rE(r):typeof r=="number"&&Number.isFinite(r)&&r>0?r:null,n=ws(e[lo.content])??(a===null?null:"content");return{background:ws(e[lo.background]),content:n,contentMax:n==="content"?a:null,contentMaxUnit:t}}function mSe(e){let o=qG(e);return o.content===null&&e.fullWidth===!0?{...o,content:"full"}:o}function hSe(e){return e.background!==null||e.content!==null}var xSe=e=>({[lo.background]:e}),ISe=e=>e==="full"?{[lo.content]:e,[lo.contentMax]:void 0,[lo.contentMaxUnit]:void 0}:{[lo.content]:e},gSe=e=>({[lo.content]:"content",[lo.contentMax]:e}),bSe=e=>e==="background"?{[lo.background]:void 0}:{[lo.content]:void 0,[lo.contentMax]:void 0,[lo.contentMaxUnit]:void 0},VE="siteWidths",YG=e=>e==="full"||e==="content";function ws(e){return YG(e)?e:null}function qE(e,o){return{[VE]:{background:ws(e),content:ws(o)}}}function ySe(e){let o=e.editor?.metadata?.[VE];return{background:ws(o?.background),content:ws(o?.content)}}import{useEaselSession as IK}from"efficient-easel/screen/lib/session-context";import{BOX_GAP as gK,describedAs as sa,group as zt,iconOf as ks,sharedStyleKinds as pi}from"efficient-easel/screen/lib/document/box-fields";import{VIEW_KEY_ACCESS as TO,onDesktopWords as Xa,phoneTwinFields as dg,saidAlignmentGrid as bK,useLengthUnit as yK}from"efficient-easel/screen/lib/document/box-fields";import{createElement as It}from"react";import{SettingsDefaultReset as XG,SettingsField as ZG}from"efficient-easel/panel";import{boxFieldBuilders as JG,describedAs as QG,iconOf as ej,onDesktopWords as oj}from"efficient-easel/screen/lib/document/box-fields";import{LENGTH_KIND_UNITS as tj}from"efficient-easel/screen/lib/content/length-units";import{IconPicker as rj,Tooltip as aj,useShellStrings as nj}from"efficient-shell/ui";import{RotateIcon as sj}from"efficient-easel/icons";var YE=e=>i(e),qa=tj,wo=JG(YE,{lengthUnits:qa}),Oo=wo.slider,st=wo.select,si=wo.Segmented,Cs=wo.segmented,_Se=wo.alignmentField,ASe=wo.alignmentFields,RSe=wo.blockAlignmentField,LSe=wo.blockAlignmentFields,FSe=wo.boxJustifyField,BSe=wo.boxAlignField,DSe=wo.boxWrapField,XE=wo.directionField,Hf=wo.gapField,NSe=wo.placementField,MSe=wo.PlacementGridView,HSe=wo.positionFields,Wf=wo.sidesPaddingFields,li=wo.lengthUnitFields;function ZE(e,o){return Oo("Angle",It(sj),Zd.min,Zd.max,Zd.step,e,"\xB0",o)}var ZI=Symbol("efficient-web-builder.picture-picker-row"),lj={width:"3.5rem",height:"2.75rem",words:!0};function JI({value:e}){return nj().iconNames[e]??e}function QI(e,o,t){return It(aj,{content:t,className:"sf-pick-tip",children:It("span",{className:"sf-pick"},It("span",{className:"sf-pick-pic"},e),It("span",{className:"sf-pick-cap"},o))})}function ij(e){let o=t=>t.label===void 0?It(JI,{value:t.value}):i(t.label);return e.map(t=>({value:t.value,...t.label===void 0?{}:{label:i(t.hint??t.label)},icon:QI(t.picture,o(t),t.hint===void 0?o(t):i(t.hint))}))}function JE(e,o){return It("span",{className:"sf-pick"},It("span",{className:"sf-pick-pic"},e),It("span",{className:"sf-pick-cap sf-pick-cap-closed"},o))}function eg(e,o,t,r,a={}){let n=d=>t.some(c=>c.value===d),s=d=>a.resolve?a.resolve(d):n(d)?d:void 0,l=t.map(d=>({value:d.value,...d.label===void 0?{}:{label:d.label},...d.showWhen?{showWhen:d.showWhen}:{}}));return{type:"custom",[ZI]:!0,...QG({},{type:"radio",label:e,options:l}),options:l,render:d=>{let{value:c,onChange:f,field:u}=d,p=u?.options,h=ij(t.filter(b=>!p||p.some(P=>P.value===b.value))),I="follows"in d,g=I?s(a.phoneRest?a.phoneRest(d.follows):d.follows)??r:void 0,C=u?.currentValue,w=s(c)??g??s(C)??r,T=c!=null&&c!=="",y=g===void 0?void 0:t.find(b=>b.value===g);return It(ZG,{label:i(e),icon:ej(o),action:I?It(XG,{words:de()?.panel,label:i(e),changed:T,detail:y?.label!==void 0?oj(YE,i(y.label),d.followsView):void 0,disabled:d.readOnly===!0,onReset:()=>f(void 0)}):void 0},It(rj,{label:i(e),value:w,options:h,onChange:f,columns:a.columns,cell:a.cell??lj,tooltips:!1,disabled:d.readOnly===!0}))}}}import{VIEW_ABOVE as rg}from"efficient-easel/screen/lib/content/length-units";import{jsx as S,jsxs as Ie}from"react/jsx-runtime";import{NoSymbolIcon as Ij}from"efficient-easel/icons";import{useId as gj}from"react";var dj="line",cj=[{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"}],og={"stripes-fine":{ink:4,period:12},"stripes-medium":{ink:8,period:18},"stripes-bold":{ink:14,period:28}},zSe=28,fj="-45deg",pj="color-mix(in oklab, var(--accent) 50%, var(--bg))";function uj(e){return e!=="line"&&e!=="none"}var mj={sm:24,md:48,lg:80},hj="md",xj=Object.keys(mj);function $Se(e){return io(xj,hj,e)}function GSe(e){return io(cj,dj,e)}function jSe(e){if(!uj(e))return null;let{ink:o,period:t}=og[e];return`repeating-linear-gradient(${fj}, ${pj} 0 ${o}px, transparent ${o}px ${t}px)`}var KSe={kind:"border",unitKey:"thicknessUnit"},VSe={kind:"size",base:"%",unitKey:"lengthPctUnit"};var Uf=44,zf=28;function pe({children:e}){return S("svg",{width:Uf,height:zf,viewBox:`0 0 ${Uf} ${zf}`,"aria-hidden":"true",fill:"currentColor",stroke:"currentColor",strokeWidth:1.25,children:e})}var B=({x:e,y:o,w:t,t:r=2,faint:a=!1})=>S("rect",{x:e,y:o,width:t,height:r,rx:r/2,stroke:"none",opacity:a?.45:1}),Ce=({x:e,y:o,w:t,h:r})=>S("rect",{x:e,y:o,width:t,height:r,rx:2,fill:"none"}),lt=({x:e,y:o})=>S("circle",{cx:e,cy:o,r:1.75,stroke:"none"}),_o=({x1:e,y1:o,x2:t,y2:r})=>S("line",{x1:e,y1:o,x2:t,y2:r});function tg(e){let o=20/is,t=5,r=1,a=[],n=0,s=0,l=0;for(let[f,u]of e)n+f>is&&(s+=l*(t+r),n=0,l=0),a.push({x:12+n*o,y:s,w:f*o-r,h:u*t+(u-1)*r}),n+=f,l=Math.max(l,u);let d=s+l*(t+r)-r,c=(zf-d)/2;return S(pe,{children:a.map((f,u)=>S("rect",{x:f.x,y:c+f.y,width:f.w,height:f.h,rx:1,stroke:"none",opacity:.6},u))})}var ewe={bars:Ie(pe,{children:[S(B,{x:8,y:14,w:5,t:10}),S(B,{x:16,y:8,w:5,t:16}),S(B,{x:24,y:18,w:5,t:6}),S(B,{x:32,y:11,w:5,t:13})]}),line:Ie(pe,{children:[S("polyline",{points:"6,22 14,15 22,18 30,8 38,11",fill:"none",strokeWidth:1.75,strokeLinejoin:"round"}),S(_o,{x1:6,y1:25,x2:38,y2:25})]}),donut:Ie(pe,{children:[S("circle",{cx:22,cy:14,r:9,fill:"none",strokeWidth:5,opacity:.45}),S("circle",{cx:22,cy:14,r:9,fill:"none",strokeWidth:5,strokeDasharray:"34 57",transform:"rotate(-90 22 14)"})]})};function owe(e){if(e==="none")return S("span",{style:{display:"flex",width:Uf,height:zf,alignItems:"center",justifyContent:"center"},children:S(Ij,{size:20})});if(e==="line")return S(pe,{children:S(_o,{x1:4,y1:14,x2:40,y2:14})});let{ink:o,period:t}=og[e],r=.4,a=[];for(let n=-12;n<Uf;n+=t*r)a.push(S("polygon",{points:`${n},22 ${n+o*r},22 ${n+o*r+10},6 ${n+10},6`,stroke:"none"},n));return S(bj,{children:a})}function bj({children:e}){let o=`sf-div-${gj().replace(/[^\w-]/g,"")}`;return Ie(pe,{children:[S("clipPath",{id:o,children:S("rect",{x:4,y:6,width:36,height:16,rx:2})}),S("g",{clipPath:`url(#${o})`,children:e})]})}var $f=({x:e,y:o,w:t,h:r})=>S("rect",{x:e,y:o,width:t,height:r,rx:2,stroke:"none",opacity:.3}),twe={tabs:Ie(pe,{children:[S(B,{x:5,y:10,w:9}),S(B,{x:18,y:10,w:9,faint:!0}),S(B,{x:31,y:10,w:9,faint:!0}),S(_o,{x1:4,y1:17,x2:40,y2:17}),S(B,{x:4,y:16,w:11,t:2})]}),largeTabs:Ie(pe,{children:[S(_o,{x1:4,y1:5,x2:40,y2:5}),S(lt,{x:7,y:10}),S(B,{x:11,y:9,w:16}),S(B,{x:31,y:9,w:9,faint:!0}),S(_o,{x1:4,y1:14,x2:40,y2:14}),S(lt,{x:7,y:19}),S(B,{x:11,y:18,w:13,faint:!0}),S(B,{x:31,y:18,w:9,faint:!0}),S(_o,{x1:4,y1:23,x2:40,y2:23})]})},rwe={card:Ie(pe,{children:[S(Ce,{x:10,y:3,w:24,h:22}),S($f,{x:12,y:5,w:20,h:10}),S(B,{x:13,y:18,w:16}),S(B,{x:13,y:21,w:11,t:1.5,faint:!0})]}),cover:Ie(pe,{children:[S($f,{x:10,y:3,w:24,h:22}),S(Ce,{x:10,y:3,w:24,h:22}),S(B,{x:13,y:17,w:16}),S(B,{x:13,y:21,w:11,t:1.5})]})},awe={cards:Ie(pe,{children:[S(Ce,{x:3,y:5,w:11,h:18}),S(Ce,{x:17,y:5,w:11,h:18}),S(Ce,{x:31,y:5,w:11,h:18}),S(B,{x:5,y:9,w:7}),S(B,{x:19,y:9,w:7}),S(B,{x:33,y:9,w:7}),S(B,{x:5,y:13,w:5,t:1.5,faint:!0}),S(B,{x:19,y:13,w:5,t:1.5,faint:!0}),S(B,{x:33,y:13,w:5,t:1.5,faint:!0})]}),"label-only":Ie(pe,{children:[S("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"}),S(B,{x:5,y:18,w:7}),S(B,{x:19,y:18,w:7}),S(B,{x:33,y:18,w:7})]})},nwe={table:Ie(pe,{children:[S(Ce,{x:3,y:5,w:38,h:18}),S(_o,{x1:15.7,y1:5,x2:15.7,y2:23}),S(_o,{x1:28.3,y1:5,x2:28.3,y2:23}),S("path",{d:"M15.7 5v18M28.3 5v18",fill:"none",strokeWidth:2.5}),S(B,{x:6,y:9,w:6,t:3}),S(B,{x:19,y:9,w:6,t:3}),S(B,{x:31,y:9,w:6,t:3}),S(B,{x:6,y:18,w:7,t:1.5,faint:!0}),S(B,{x:19,y:18,w:7,t:1.5,faint:!0}),S(B,{x:31,y:18,w:7,t:1.5,faint:!0})]}),list:Ie(pe,{children:[S(_o,{x1:3,y1:7,x2:13,y2:7}),S(_o,{x1:17,y1:7,x2:27,y2:7}),S(_o,{x1:31,y1:7,x2:41,y2:7}),S(B,{x:3,y:11,w:6,t:3}),S(B,{x:17,y:11,w:6,t:3}),S(B,{x:31,y:11,w:6,t:3}),S(B,{x:3,y:17,w:8,t:1.5,faint:!0}),S(B,{x:17,y:17,w:8,t:1.5,faint:!0}),S(B,{x:31,y:17,w:8,t:1.5,faint:!0})]})},swe={plain:Ie(pe,{children:[S(B,{x:5,y:12,w:9,t:4}),S(B,{x:18,y:12,w:9,t:4}),S(B,{x:31,y:12,w:9,t:4})]}),cards:Ie(pe,{children:[S(Ce,{x:3,y:7,w:11,h:14}),S(Ce,{x:17,y:7,w:11,h:14}),S(Ce,{x:31,y:7,w:11,h:14}),S(B,{x:5,y:13,w:7}),S(B,{x:19,y:13,w:7}),S(B,{x:33,y:13,w:7})]}),marks:Ie(pe,{children:[S(B,{x:8,y:12,w:6,t:4}),S(B,{x:17,y:12,w:6,t:4}),S(B,{x:26,y:12,w:6,t:4}),S(B,{x:35,y:12,w:3,t:4})]}),chips:Ie(pe,{children:[S(Ce,{x:3,y:9,w:18,h:10}),S(Ce,{x:23,y:9,w:18,h:10}),S(lt,{x:7,y:14}),S(B,{x:10,y:13,w:8}),S(lt,{x:27,y:14}),S(B,{x:30,y:13,w:8})]})},lwe={overlay:Ie(pe,{children:[S($f,{x:4,y:3,w:36,h:22}),S(Ce,{x:4,y:3,w:36,h:22}),S(B,{x:8,y:15,w:18,t:3}),S(B,{x:8,y:20,w:12})]}),stacked:Ie(pe,{children:[S(B,{x:4,y:3,w:18,t:3}),S(B,{x:4,y:8,w:12}),S($f,{x:4,y:13,w:36,h:12}),S(Ce,{x:4,y:13,w:36,h:12})]})},iwe={split:Ie(pe,{children:[S(B,{x:4,y:6,w:12,t:3}),S(B,{x:4,y:11,w:9,faint:!0}),S(_o,{x1:20,y1:4,x2:20,y2:24}),S(B,{x:24,y:6,w:16}),S(B,{x:24,y:10,w:11,faint:!0}),S(B,{x:24,y:17,w:16}),S(B,{x:24,y:21,w:11,faint:!0})]}),spine:Ie(pe,{children:[S(_o,{x1:9,y1:4,x2:9,y2:24}),S(lt,{x:9,y:8}),S(B,{x:14,y:7,w:24}),S(lt,{x:9,y:14}),S(B,{x:14,y:13,w:20}),S(lt,{x:9,y:20}),S(B,{x:14,y:19,w:24})]}),alternating:Ie(pe,{children:[S(_o,{x1:22,y1:4,x2:22,y2:24}),S(lt,{x:22,y:8}),S(B,{x:4,y:7,w:14}),S(lt,{x:22,y:14}),S(B,{x:26,y:13,w:14}),S(lt,{x:22,y:20}),S(B,{x:4,y:19,w:14})]}),track:Ie(pe,{children:[S(_o,{x1:4,y1:12,x2:40,y2:12}),S(lt,{x:8,y:12}),S(lt,{x:22,y:12}),S(lt,{x:36,y:12}),S(B,{x:4,y:17,w:8}),S(B,{x:18,y:17,w:8}),S(B,{x:32,y:17,w:8}),S(B,{x:4,y:21,w:6,faint:!0}),S(B,{x:18,y:21,w:6,faint:!0}),S(B,{x:32,y:21,w:6,faint:!0})]})},dwe={standard:Ie(pe,{children:[S(B,{x:4,y:5,w:10,t:1.5,faint:!0}),S(B,{x:4,y:10,w:28,t:4}),S(B,{x:4,y:18,w:34,faint:!0}),S(B,{x:4,y:22,w:24,faint:!0})]}),editorial:Ie(pe,{children:[S(B,{x:4,y:5,w:5,t:1.5,faint:!0}),S(B,{x:4,y:10,w:20,t:5}),S(B,{x:28,y:11,w:12,faint:!0}),S(B,{x:28,y:15,w:9,faint:!0}),S(_o,{x1:4,y1:22,x2:40,y2:22})]}),simple:Ie(pe,{children:[S(B,{x:4,y:8,w:10,t:1.5,faint:!0}),S(B,{x:4,y:13,w:26,t:4})]}),statement:Ie(pe,{children:[S(B,{x:4,y:6,w:36,t:7}),S(B,{x:4,y:16,w:24,t:7})]}),natural:Ie(pe,{children:[S(B,{x:4,y:8,w:22,t:3}),S(B,{x:4,y:15,w:34,faint:!0}),S(B,{x:4,y:19,w:28,faint:!0})]}),essay:Ie(pe,{children:[S(B,{x:4,y:5,w:24,t:4}),S(B,{x:4,y:13,w:36,faint:!0}),S(B,{x:4,y:17,w:36,faint:!0}),S(B,{x:4,y:21,w:30,faint:!0})]})},cwe={"spec-card":Ie(pe,{children:[S(Ce,{x:4,y:3,w:36,h:22}),S(B,{x:8,y:7,w:14}),S(Ce,{x:8,y:12,w:8,h:9}),S(Ce,{x:18,y:12,w:8,h:9}),S(Ce,{x:28,y:12,w:8,h:9})]}),fitment:Ie(pe,{children:[S(Ce,{x:4,y:4,w:10,h:5}),S(Ce,{x:16,y:4,w:10,h:5}),S(Ce,{x:28,y:4,w:10,h:5}),S(B,{x:4,y:14,w:34,faint:!0}),S(B,{x:4,y:18,w:34,faint:!0}),S(B,{x:4,y:22,w:34,faint:!0})]}),portal:Ie(pe,{children:[S(Ce,{x:4,y:3,w:36,h:22}),S(B,{x:8,y:7,w:10,t:4}),S(B,{x:8,y:14,w:16,faint:!0}),S(B,{x:26,y:18,w:10,t:4})]}),kanban:Ie(pe,{children:[S(Ce,{x:4,y:3,w:10,h:22}),S(Ce,{x:17,y:3,w:10,h:22}),S(Ce,{x:30,y:3,w:10,h:22}),S(B,{x:6,y:6,w:6,t:4}),S(B,{x:6,y:12,w:6,t:4}),S(B,{x:19,y:6,w:6,t:4}),S(B,{x:32,y:6,w:6,t:4}),S(B,{x:32,y:12,w:6,t:4})]}),claims:Ie(pe,{children:[S(B,{x:4,y:5,w:12,faint:!0}),S(B,{x:20,y:4,w:18,t:4}),S(B,{x:4,y:12,w:12,faint:!0}),S(B,{x:20,y:11,w:10,t:4}),S(B,{x:4,y:19,w:12,faint:!0}),S(B,{x:20,y:18,w:14,t:4})]}),browser:Ie(pe,{children:[S(Ce,{x:4,y:3,w:36,h:22}),S(_o,{x1:4,y1:8,x2:40,y2:8}),S(B,{x:8,y:11,w:28,t:5,faint:!0}),S(Ce,{x:8,y:18,w:8,h:4}),S(Ce,{x:18,y:18,w:8,h:4}),S(Ce,{x:28,y:18,w:8,h:4})]}),terminal:Ie(pe,{children:[S(Ce,{x:4,y:3,w:36,h:22}),S("polyline",{points:"8,9 11,11 8,13",fill:"none"}),S(B,{x:13,y:10,w:14}),S(B,{x:8,y:16,w:22,faint:!0}),S(B,{x:8,y:20,w:16,faint:!0})]})},QE={width:"5.75rem",height:"3.75rem",words:!0},fwe={width:"8.5rem",height:"3.75rem",words:!0},pwe={columns:Ie(pe,{children:[S(Ce,{x:3,y:4,w:11,h:8}),S(Ce,{x:17,y:4,w:11,h:8}),S(Ce,{x:31,y:4,w:11,h:8}),S(B,{x:3,y:16,w:9}),S(B,{x:17,y:16,w:9}),S(B,{x:31,y:16,w:9}),S(B,{x:3,y:20,w:7,t:1.5,faint:!0}),S(B,{x:17,y:20,w:7,t:1.5,faint:!0}),S(B,{x:31,y:20,w:7,t:1.5,faint:!0})]}),"rows-left":Ie(pe,{children:[S(Ce,{x:6,y:3,w:14,h:9}),S(B,{x:24,y:5,w:14}),S(B,{x:24,y:9,w:10,t:1.5,faint:!0}),S(Ce,{x:24,y:16,w:14,h:9}),S(B,{x:6,y:18,w:14}),S(B,{x:6,y:22,w:10,t:1.5,faint:!0})]}),"rows-right":Ie(pe,{children:[S(Ce,{x:24,y:3,w:14,h:9}),S(B,{x:6,y:5,w:14}),S(B,{x:6,y:9,w:10,t:1.5,faint:!0}),S(Ce,{x:6,y:16,w:14,h:9}),S(B,{x:24,y:18,w:14}),S(B,{x:24,y:22,w:10,t:1.5,faint:!0})]})};import{TEXT_CONTROL_KINDS as ave,SCALAR_TEXT_CONTROLS as nve}from"efficient-easel/draw";function Za(e,o){return i("{value} from {from}",{value:e,from:o})}function SK(){let{blockGap:e}=he();return e===null?i("this container's own spacing"):Za(`${e}px`,i("Styles"))}function wK({inherited:e,onReset:o,label:t}){return k(Ho,{words:de()?.panel,label:i(t),changed:!e,detail:SK(),onReset:o})}function CK(e){return Hf({...gK,builtIn:ys[e],resolve:(o,t)=>Ka(e,o,t?.siteGap),action:(o,t)=>k(wK,{inherited:!Bf(e,o),onReset:()=>t(void 0),label:"Gap"}),mark:{[Ff]:e}})}function vK(e){return oo(it("mobile",{[Ff]:e,type:"custom",render:o=>k(PK,{container:e,...o})}),PO)}function kK(e){return oo(it("tablet",{[Ff]:e,type:"custom",render:o=>k(TK,{container:e,...o})}),PO)}var PO={not:{field:"gap",in:Array.from({length:-Ar.min},(e,o)=>Ar.min+o)}};function XCe(e){return{gap:it("desktop",CK(e)),[xg("gap")]:kK(e),[vs("gap")]:vK(e)}}function TK({container:e,...o}){let[t]=Ut("gap"),{siteGap:r}=o.field??{},a=Math.max(ri.min,Ka(e,t,r));return Hf({...ri,builtIn:a,resolve:n=>na(n)?n:a,action:(n,s)=>k(Ho,{words:de()?.panel,label:i("Gap"),changed:na(n),detail:Xa(l=>i(l),`${a}px`),onReset:()=>s(void 0)})}).render(o)}function PK({container:e,...o}){let[t]=Ut("gap"),{siteGap:r,siteGapPhone:a}=o.field??{},n=$I(e,void 0,t,r,a);return Hf({...ri,builtIn:n,resolve:s=>$I(e,s,t,r,a),action:(s,l)=>k(Ho,{words:de()?.panel,label:i("Gap"),changed:na(s),detail:Za(`${n}px`,zI(e,t,a)?i("Styles"):i("Desktop")),onReset:()=>l(void 0)})}).render(o)}function ZCe(e){return XE({offered:EE(e),fallback:bs(e,void 0),resolve:o=>bs(e,o)})}function JCe(e,o){return Ik(o?yk(e,o):[],o)}function EK({inherited:e,onReset:o,label:t}){return k(Ho,{words:de()?.panel,label:i(t),changed:!e,detail:Za(i("Full"),i("the page")),onReset:o})}function Ja({value:e,onChange:o,label:t,placeholder:r,hint:a,multiline:n,hideable:s=!0,markup:l=!0}){let{text:d,hidden:c}=la(e),f=ii(null),u=ii(null),p=T=>o(s?{text:T,hidden:c}:T),h=()=>o({text:d,hidden:!c}),I=s&&c,g=uO(),C=a?LK(a)?k("span",{className:"sf-hint-while-typing",children:i(a)}):i(a):void 0,w=c?i("Show {label} on the slide",{label:i(t)}):i("Hide {label} on the slide",{label:i(t)});return k(mo,{label:i(t),icon:k(jj,{}),htmlFor:g,className:I?"is-hidden":void 0,hint:C,action:s?k(hg,{content:w,children:k(vO,{"aria-pressed":c,"aria-label":w,onClick:h,children:c?k(aO,{name:"eye-off",size:14}):k(aO,{name:"eye",size:14})})}):void 0,children:Rr("div",{className:"sf-copybox",children:[l&&k(jx,{target:n?u:f,value:d,onChange:p}),n?k("textarea",{id:g,ref:u,value:d,placeholder:r===void 0?void 0:i(r),onChange:T=>p(T.target.value)}):k("input",{id:g,ref:f,type:"text",value:d,placeholder:r===void 0?void 0:i(r),onChange:T=>p(T.target.value)})]})})}function QCe(e,o){return{...e,[Pj]:o}}function eve(e){let o=e[Lr];if(!o)throw new Error("withOffPage: the field holds no authored text");return{...e,[Lr]:{...o,offPage:!0}}}function Yf(e){return!e||typeof e!="object"?!1:e[Lr]?.offPage===!0}function ove(e){if(!e[Lr])throw new Error("withPanelOnly: the field holds no authored text");return{...e,[Vx]:!0}}function EO(e){return ms(e)}function tve(e){let o=e[Lr];if(!o)throw new Error("withIdentifier: the field holds no authored text");return{...e,[Lr]:{...o,identifier:!0}}}function sve(e,o){if(!e[Lr])throw new Error("inOwnBox: the field holds no authored text");let{[cK]:t,...r}=e;return{...r,[Kx]:!0,render:o}}var OK=new Set(pK),Vf={type:"radio",options:[{value:!0},{value:!1}]},OO={text:{type:"object",objectFields:{text:{type:"text"},hidden:Vf}},textarea:{type:"object",objectFields:{text:{type:"textarea"},hidden:Vf}},plainText:{type:"text"},copyText:{type:"text"},plainTextarea:{type:"textarea"},textList:{type:"array",arrayFields:{text:{type:"text"}}}},Qa=(e,o)=>{let t=sa({...o,[Lr]:e},{...OO[e.control],label:e.label});if(!OK.has(e.control))return t;let r=o.render;return{...kO(t,"authored-copy"),render:a=>k(JP,{name:a.name,children:r(a)})}},lve="Everything else on this block comes from the linked post. Unlink it to edit by hand.",_K={field:"source.slug",set:!0},ive={not:_K},AK="Select a word, then press the highlighter.",RK=new Set([AK]),LK=e=>RK.has(e);function dve(e,o,t){return Qa({control:"text",label:e,placeholder:o,hint:t},{type:"custom",render:({value:r,onChange:a})=>k(Ja,{value:r,onChange:a,label:e,placeholder:o,hint:t})})}function cve(e,o,t){return Qa({control:"textarea",label:e,placeholder:o,hint:t},{type:"custom",render:({value:r,onChange:a})=>k(Ja,{value:r,onChange:a,label:e,placeholder:o,hint:t,multiline:!0})})}function fve(e,o,t){return Qa({control:"plainText",label:e,placeholder:o,hint:t},{type:"custom",render:({value:r,onChange:a})=>k(Ja,{value:r,onChange:a,label:e,placeholder:o,hint:t,hideable:!1,markup:!1})})}function pve(e,o,t){return Qa({control:"copyText",label:e,placeholder:o,hint:t},{type:"custom",render:({value:r,onChange:a})=>k(Ja,{value:r,onChange:a,label:e,placeholder:o,hint:t,hideable:!1})})}function uve(e){return{type:"custom",[kj]:{label:e},...sa({},{type:"text",label:e}),render:({value:o,onChange:t})=>k(Z0,{value:vj(o),onChange:t,label:e})}}function mve(e,o,t){return Qa({control:"plainTextarea",label:e,placeholder:o,hint:t},{type:"custom",render:({value:r,onChange:a})=>k(Ja,{value:r,onChange:a,label:e,placeholder:o,hint:t,multiline:!0,hideable:!1})})}var _O={Design:Ej,Animation:_j};function hve(e,o){return{type:"custom",render:()=>k(FK,{text:e,values:o})}}function FK({text:e,values:o}){return k("p",{className:"sf-note",children:i(e,o)})}function xve(e){return ia(e)!==null&&e?.tabs!==void 0}var nO=new Map;function Xf(e,o){let t=`${e}\0${o?o.join(""):""}`,r=nO.get(t)??{type:"custom",tabs:o,[mO]:{label:e,level:1},bucket:e,marker:!0,render:()=>k(Fr,{})};return nO.set(t,r),r}var sO=new Map;function gg(e){let o=sO.get(e)??{type:"custom",[mO]:{label:e,level:1},designGroup:e,marker:!0,...e==="Content"?{}:{fold:e},render:()=>k(Fr,{})};return sO.set(e,o),o}function BK(e){let o=e;return o?.marker===!0&&typeof o.fold=="string"?o.fold:null}function AO(e,o){return BK(e)===o?e:{...e,marker:!0,fold:o,render:()=>k(Fr,{})}}function RO(e){let o=e;if(o.marker===!0&&o.fold===void 0)return e;let{fold:t,...r}=e;return{...r,marker:!0,render:()=>k(Fr,{})}}function bg({title:e,children:o}){let[t,r]=di(()=>!ag.has(e));return k(qj,{title:e,open:t,onToggle:a=>{r(a),a?ag.delete(e):ag.add(e)},children:o})}var ag=new Set;function DK({swatches:e,current:o,onPick:t,names:r}){let a=e.find(l=>l.toLowerCase()===o.toLowerCase()),n=a?r?.[a]:void 0,s=n?i(n):o;return Rr("div",{className:"sf-swatches",children:[e.map(l=>{let d=r?.[l]?i(r[l]):l;return k(hg,{content:d,children:k(tK,{color:l,selected:o.toLowerCase()===l.toLowerCase(),onClick:()=>t(l),"aria-label":d})},l)}),k("span",{className:"sf-swatch-hex",children:s})]})}function Ive(e,o,t=!1){return{type:"custom",render:({value:r,onChange:a})=>k(NK,{label:e,builtIn:o,followsBand:t,value:r,onChange:a})}}function NK({label:e,builtIn:o,followsBand:t,value:r,onChange:a}){let n=typeof r=="string"?r:void 0,{colors:s,n:l}=kg(),d={background:s.background,surface:s.surface,surface2:pc(s),band:Zv(s)},c=t?Mo:o,f=HE(n,o,c),u=GI(void 0,c,d),p=t?ai:void 0,h=c===Mo?i("the theme's section background"):i("Theme {n} background",{n:l}),I=MK(n,o,s,l,d,a),g=Za(u.toUpperCase(),h),C=rr(n),w=C?ds(C,s,l):null;return w?k(Yo,{label:i(e),icon:k(eO,{}),value:w.hex,caption:w.words,onChange:a,changed:!0,onReset:()=>a(p),resetTo:g,choices:I}):k($l,{label:i(e),icon:k(eO,{}),value:f?"":GI(n,o,d),inherited:u,resetTo:g,onChange:a,onReset:()=>a(p),choices:I})}function MK(e,o,t,r,a,n){let s=ME(e,o);return[{label:i("No fill"),color:"",selected:s==="none",onPick:()=>n(jI)},{label:`${i("Section band")} \xB7 ${a.band.toUpperCase()}`,color:a.band,selected:s==="band",onPick:()=>n(Mo)},...vg(rr(e)??"",t,r,n)]}function HK(e,o){return{type:"custom",render:({value:t,onChange:r})=>{let a=t,n=zE(a,o);return k(mo,{label:i(e),icon:k(lg,{}),changed:!n,action:k(Ho,{words:de()?.panel,label:i(e),changed:!n,detail:i("the theme's image stage"),onReset:()=>r(ni)}),children:DK({swatches:WE,current:n?Ss:KI(a,o),onPick:r,names:UE})})}}}function Zf(e=t=>t,o){return pi({_gSectionTheme:zt(mk),sectionAccent:{type:"custom",render:({value:t,onChange:r})=>k(v0,{value:e(t),onChange:r,followLabel:o})}})}function Jf(e){let o=Po(),t=Tr(e?.view),r=s=>Ig(e.valueKey,s),a=e.numbersIn??(s=>q(o[r(s)])!==void 0),n=e.followsView??e8(t,a);return yK({props:{value:void 0,onChange:()=>{},field:{}},row:e.valueKey?e.row:void 0,table:qa,label:i(e.label),grid:e.grid,hasOwn:a(t),view:{tier:t,numbersIn:a,followsView:n},convertTo:e.convertTo??(s=>{let l=q(o[r(t)]);return l===void 0?{}:{[r(t)]:s(l)}})})}function Zo({min:e,max:o,step:t,value:r,onChange:a,suffix:n="",readout:s=!0,notch:l,ariaLabel:d,disabled:c=!1,placeholder:f,placeholderWord:u,onClear:p,units:h}){let I=l!==void 0&&Number.isFinite(l)&&l>=e&&l<=o;return k("div",{className:I?"sf-slider has-notch":"sf-slider",style:I?{"--sf-notch":(l-e)/(o-e)}:void 0,children:k(dK,{min:e,max:o,step:t,value:r,...r===null&&f!==void 0?{placeholderValue:f}:{},...u?{emptyLabel:i(u)}:{},suffix:n||void 0,...h?{units:h}:{},showInput:s,label:d===void 0?void 0:i(d),disabled:c,size:"sm",boxSize:"md",className:"sf-slider-track",onChange:g=>{g===null?p?.():g!==r&&a(g)}})})}function WK(e,o){let{min:t,max:r,step:a=1,unsetLabel:n,hint:s,restTrack:l,unsetMark:d,icon:c,unit:f="px"}=o;return{type:"custom",render:({value:u,onChange:p})=>{let h=typeof u=="number"?u:null,I=h===null;return k(mo,{label:i(e),icon:c?ks(c):void 0,value:I?d||n===void 0?void 0:i(n):`${h}${f}`,changed:!I,action:d?cg(d,{changed:!I,onReset:()=>p(null)}):k(Ho,{words:de()?.panel,label:i(e),changed:!I,onReset:()=>p(null)}),hint:typeof s=="string"?i(s):s,children:l?l({min:t,max:r,step:a,px:h,label:e,onChange:p}):Zo({min:t,max:r,step:a,value:h??t,readout:!1,ariaLabel:e,onChange:p})})}}}var ci="Corners",UK={kind:"radius"};function yg(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 k(mo,{label:i(ci),icon:k(xO,{}),changed:n,action:cg(e.mark,{changed:n,onReset:()=>r(null)}),hint:e.hint,children:k(zK,{tier:e,px:a,name:o.name,onRadius:r})})}}}function Ut(e){let o=Ya();return[o?.values?.[e],t=>o?.onChange(e,t)]}function LO(){return kO({type:"custom",render:()=>k(fK,{})},"always")}function ta(){let e=Ya();return o=>e?.onChangeMany(o)}function zK({tier:e,px:o,name:t,onRadius:r}){let a=e.useFollowed(),[n,s]=Ut(e.sidesKey),l=ta(),d=Jf({row:e.row??UK,label:ci,grid:{min:Wo,max:Vr,step:e.step??1},valueKey:t??"",view:"desktop"}),c=or(n)??[...Nc];return k(rK,{label:i(ci),value:c,corners:AT,onChange:f=>{let u=or(f)??[];s(u.length===Nc.length?null:u)},radius:o,onRadiusChange:d&&t?f=>l({[t]:f,...d.unitPatch(f===null)}):r,radiusMin:d?.grid.min??Wo,radiusMax:d?.grid.max??Vr,radiusStep:d?.grid.step??e.step??1,radiusPlaceholder:d&&d.unit!=="px"?"\u2013":String(a),...d?{radiusUnit:d.unit,units:d.units}:{}})}function FO(e,o){return li(e,o)}function BO(){return LO()}function $K({label:e,changed:o=!1,onReset:t=()=>{}}){let{cornerRadiusPx:r}=he(),a=typeof r=="number"?`${r}px`:i("not set");return k(Ho,{words:de()?.panel,label:i(e),changed:o,detail:r==null?i("the built-in corners"):Za(a,i("Styles")),onReset:t})}function GK(){let{cornerRadiusPx:e}=he();return typeof e=="number"?e:Wo}function jK(){return yg({sidesKey:"sectionCornerSides",row:Fl,useFollowed:GK,mark:k($K,{label:ci}),hint:KK})}var KK="Follows Styles \u25B8 Basics \u25B8 Corners until you set a number here.";function Qf(){return pi({_gShape:zt("Shape"),sectionCorners:jK(),...FO(Fl,"sectionCorners"),sectionCornerSides:BO(),...Er("sectionBorder",QK),...li(oi,"sectionBorder",{tablet:!0,phone:!0})})}var VK=()=>({width:i("Border width"),sides:{top:i("Border top"),right:i("Border right"),bottom:i("Border bottom"),left:i("Border left")},style:i("Border style"),styles:{solid:i("Solid"),dashed:i("Dashed"),dotted:i("Dotted")},color:i("Border color"),unit:"px"});function qK(e){let o=Object.fromEntries(Object.entries(e).filter(([,t])=>t!=null&&t!==""));return Object.keys(o).length?o:void 0}function YK(){let e;try{let o=xo(he().theme);e=o.themes[o.selected]?.line}catch{e=void 0}return e||Kv.line}function XK({value:e,onChange:o,placeholder:t,presets:r,sides:a=!0,styles:n=!0,above:s={},length:l}){let d=e&&typeof e=="object"?e:{},[c,f]=di(()=>a?Qj(d,s):!1),u=VK(),p=h=>qK(a&&n?h:{width:h.width,color:h.color,...n?{style:h.style}:{}});return k(mo,{label:i("Border"),icon:k(Aj,{}),action:a?k(Zj,{each:c,label:i("Each side"),onChange:f}):void 0,children:k(Xj,{label:i("Border"),value:d,each:c,onChange:h=>o(p(h)),placeholder:t,presets:r,words:l?{...u,unit:l.unit}:u,styles:n,max:l?.grid.max??Rf,...l?{step:l.grid.step,units:l.units}:{}})})}function ZK({value:e,onChange:o,view:t}){let[r]=Ut("sectionBorder"),[a]=Ut(xg("sectionBorder")),n=YK(),s=p=>p&&typeof p=="object"?p:{},l=t==="phone"?{...HI(s(r)),...HI(s(a))}:t==="tablet"?s(r):{},d=Po(),c=ta(),f=we("sectionBorder",t),u=Jf({row:oi,label:"Border",grid:{min:0,max:Rf,step:1},valueKey:"sectionBorder",view:t,numbersIn:p=>ng(d[Ig("sectionBorder",p)]),convertTo:p=>{let h=s(d[f]);return ng(h)?{[f]:JK(h,p)}:{}}});return k(XK,{value:e,length:u,onChange:u?p=>c({[f]:p,...u.unitPatch(!ng(p))}):o,placeholder:{sides:Jj(l),style:l.style??"solid",color:l.color||n},presets:[n],above:l})}var DO=["width",...Lf];function ng(e){if(!e||typeof e!="object")return!1;let o=e;return DO.some(t=>q(o[t])!==void 0)}function JK(e,o){let t={...e};for(let r of DO){let a=q(t[r]);a!==void 0&&(t[r]=o(a))}return t}function QK(e){return{type:"custom",render:({value:o,onChange:t})=>k(ZK,{value:o,onChange:t,view:e})}}function e8(e,o){let t=rg[e];for(;t&&rg[t]!==null&&!o(t);)t=rg[t];return t??e}function gve(e){return{type:"custom",render:()=>k(o8,{partKey:e})}}function o8({partKey:e}){let[o]=Ut("id"),[t]=Ut("_partStyles"),{textStyles:r}=he(),a=xK(),n=null;try{n=uK().select}catch{n=null}let s=t&&typeof t=="object"?t[e]:void 0,l=Array.isArray(r)?r:null;return k(Vj,{name:i("Text"),preview:mE(s,l,{noStyle:i("No style"),styleName:a.textStyles.styleName,cases:(a.copy.panel??hK.copy.panel).cases}),onOpen:()=>{n&&typeof o=="string"&&n(mK(o,e))}})}function NO(e){let{cornerRadiusPx:o}=he(),t=typeof o=="number"?o:e,r=null;try{let{appState:n,selectedItem:s}=qf(d=>d),l=s?.props?.id?String(s.props.id):void 0;r=l?FP(n?.data,l)?.props??null:null}catch{r=null}if(!r)return t;let a=r.sectionCorners;return mx(a)?a:t}function t8({label:e,changed:o=!1,onReset:t=()=>{}}){let r=NO(Wo);return k(Ho,{words:de()?.panel,label:i(e),changed:o,detail:Za(`${r}px`,i("the section")),onReset:t})}function r8(){return k(Fr,{children:i("Follows the section's Corners until you set a number here.")})}function a8(){return yg({sidesKey:"cardCornerSides",row:Bl,useFollowed:()=>NO(Wo),mark:k(t8,{label:ci}),hint:k(r8,{})})}function n8(){return{type:"custom",render:()=>k(MT,{})}}function bve(){return{_gShape:zt("Shape"),cardCorners:a8(),...FO(Bl,"cardCorners"),cardCornerSides:BO(),cardCornersApplyAll:n8()}}function s8(){return sa({type:"custom",[ZI]:!0,render:e=>k(i8,{...e})},{type:"select",label:Oa,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 l8(e,o){let t=Sh(e);if(t!=="custom")return i(yh.find(a=>a.value===t)?.label??"");let r=CO(rc(e,o),o);return r?[...r,100-r.reduce((a,n)=>a+n,0)].join(" / "):i("Custom")}function i8(e){let{value:o,onChange:t}=e,[r]=Ut("content"),a=Array.isArray(r)?r.length:0,n="follows"in e,s=o!=null,l=s?o:n?e.follows:void 0,d=Sh(l),c=a>=2&&a<=tO,f=()=>[...sK[a]??[]],u=ii(null),p=w=>{let T=u.current;T&&JSON.stringify(w)===JSON.stringify(T.shares)?t(T.value):w&&t(w)},h=w=>{w===d||w==="custom"&&!c||t(w==="custom"?f():w)},I=i("The width bar works for 2 to {count} blocks.",{count:tO}),g=s&&(n||o!=="content"),C=iK().widths.hint(a,nK);return k(mo,{label:i(Oa),icon:k(fg,{}),changed:g,hint:d!=="custom"?void 0:c?C:I,action:k(Ho,{words:de()?.panel,label:i(Oa),changed:g,disabled:e.readOnly===!0,detail:n?Xa(w=>i(w),l8(e.follows,a),e.followsView):i("Fit content"),onReset:()=>t(void 0)}),children:Rr("div",{className:"sf-share-row",children:[k("div",{className:"sf-share-pick",children:k(wO,{label:i(Oa),value:d,options:yh.map(w=>({value:w.value,label:w.value==="custom"&&!c?I:i(w.label),icon:QI(k("span",{className:"sf-gallery-pic sf-share-pic",children:MO(w.weights).map((T,y)=>k("i",{style:{gridColumn:`span ${T}`}},y))}),i(w.label),w.value==="custom"&&!c?I:i(w.label))})),onChange:h,columns:3,cell:HO,tooltips:!1,disabled:e.readOnly===!0})}),d==="custom"&&c?k("div",{onFocus:()=>{u.current={value:o,shares:CO(rc(l,a),a)}},onBlur:()=>{u.current=null},children:k(lK,{label:i(Oa),count:a,value:rc(l,a),onChange:p,readOnly:e.readOnly===!0})}):null]})})}function MO(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 yve(){return st(pv,k(Mj,{}),vh,vh[0].value)}function Sve(){return it("mobile",eg(Oa,k(fg,{}),dv.map(e=>({label:e.label,value:e.value,picture:k("span",{className:"sf-gallery-pic sf-share-pic",children:MO(e.weights).map((o,t)=>k("i",{style:{gridColumn:`span ${o}`}},t))})})),cv,{columns:2,cell:HO}))}var HO={width:"5.75rem",height:"3.25rem",words:!0};function wve(){return dg("share",s8(),TO)[xg("share")]}function d8(){return it("mobile",Oo(wh,k(hO,{}),ac,iv,1,ac,"",{clear:{phoneFollows:!1,hint:ac}}))}var lO={read:e=>e.phoneRow,write:(e,o,t)=>({phoneRow:t}),fieldKey:()=>"phoneRow",ownField:!0};function Cve(){let e=Oo(wh,k(hO,{}),Ch,fv,1,Ch,"",{clear:{emptyLabel:"Auto"}}),o=dg("columns",e,{...lO,tablet:TO.tablet}),t=dg("columns",e,lO,{phoneRow:d8()});return{...o,phoneRow:t.phoneRow}}function vve(e,o,t,r,a,n,s){return{type:"custom",render:({value:l,onChange:d,name:c})=>k(c8,{label:e,min:o,max:t,step:r,fallback:a,role:n,value:l,onChange:d,name:c??"",length:s})}}function c8({label:e,min:o,max:t,step:r,fallback:a,role:n,value:s,onChange:l,name:d,length:c}){let f=Po(),u=ta(),p=Tr(c?.view),h=Jf({row:c?.row??{kind:"fontSize"},label:e,grid:{min:o,max:t,step:r},valueKey:c?d:"",view:c?.view??"desktop",numbersIn:g=>g===p&&typeof f[d]=="number",followsView:p,convertTo:g=>typeof f[d]=="number"?{[d]:g(f[d])}:{}}),I=g=>h?u({[d]:g,...h.unitPatch(typeof g!="number")}):l(g);return k(mo,{label:i(e),icon:k(Rx,{noun:n}),action:k(Ho,{words:de()?.panel,label:i(e),changed:!GE(s),detail:i("the Text style in Styles"),onReset:()=>I($E),defaultAction:{onPress:()=>I(Mf),title:i("Keep this section's own built-in size"),icon:k(Rj,{})}}),children:Zo({min:h?.grid.min??o,max:h?.grid.max??t,step:h?.grid.step??r,value:typeof s=="number"?s:a,...h?{suffix:h.unit,units:h.units}:{suffix:"px"},ariaLabel:e,onChange:I})})}function iO(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 kve(){return{_gCellWidth:zt("Cell size"),gridSpan:st("Positions",k(fg,{}),iO($c,"position","positions"),""),gridRowSpan:st("Rows tall",k(pg,{}),iO(_x,"row","rows"),"")}}function Po(){let e=null,o=null;try{e=pO(Sg),o=qf(t=>t).selectedItem}catch{o=null}return e??o?.props??{}}var Sg=Sj(null);function f8({min:e,max:o,step:t,px:r,label:a,onChange:n,desktopKey:s,fallback:l}){let d=Po()[s],c=lf(void 0,d,l);return k(Fr,{children:Zo({min:e,max:o,step:t,value:lf(r,d,l),readout:!1,ariaLabel:a,notch:c,onChange:n})})}function p8({label:e,desktopKey:o,fallback:t,unit:r="px",changed:a=!1,onReset:n=()=>{}}){let s=Po()[o],l=lf(void 0,s,t);return k(Ho,{words:de()?.panel,label:i(e),changed:a,detail:Xa(d=>i(d),`${l}${r}`),onReset:n})}function u8(e){return WK(e.label,{icon:e.icon,min:e.min,max:e.max,step:e.step,unit:e.unit,unsetLabel:"Follows Desktop",unsetMark:k(p8,{label:e.label,desktopKey:e.desktopKey,fallback:e.fallback,unit:e.unit}),restTrack:o=>k(f8,{...o,desktopKey:e.desktopKey,fallback:e.fallback})})}var m8={Top:"Padding top",Bottom:"Padding bottom",Left:"Padding left",Right:"Padding right"},h8={Top:ug,Bottom:gO,Left:bO,Right:yO},x8=e=>{let o=h8[e];return k(o,{})};function Tve(e={}){let o=e.keys?.top??"sectionPaddingTop",t=e.keys?.bottom??"sectionPaddingBottom",r=e.group!==!1,a=C=>m8[C],n=C=>Oo(a("Top"),k(ug,{}),mt.min,mt.max,mt.step,C,"px"),s=(C,w,T,y=mt)=>it("mobile",u8({label:a(C),icon:x8(C),desktopKey:w,min:y.min,max:y.max,step:y.step,fallback:T})),l=e.top??mt.min,d=e.bottom??mt.min,c="sectionPaddingLeft",f="sectionPaddingRight",u=e.sideBounds??mt,p=e.side??u.min,h=e.sidePhone??p,I=e.phone===!0,g=C=>I?it("desktop",C):C;return pi({...r?{_gSpacing:zt("Padding")}:{},[o]:g(n(l)),...I?{[vs(o)]:s("Top",o,l)}:{},...e.only==="top"?{}:{[t]:g(Oo(a("Bottom"),k(gO,{}),mt.min,mt.max,mt.step,d,"px")),...I?{[vs(t)]:s("Bottom",t,d)}:{}},...e.sides?{[c]:g(Oo(a("Left"),k(bO,{}),u.min,u.max,u.step,p,"px")),...I?{[vs(c)]:s("Left",c,h,u)}:{},[f]:g(Oo(a("Right"),k(yO,{}),u.min,u.max,u.step,p,"px")),...I?{[vs(f)]:s("Right",f,h,u)}:{}}:{}})}function Pve(e,o){let t=Object.fromEntries(Object.entries(o).map(([n,s])=>[n,n in e&&ia(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 jf="Width";function ep(e,o=KE,t=!0){let r=o.map(a=>({label:Va[a],value:a}));return pi({...t?{_gWidth:zt(jf)}:{},widthMode:{type:"custom",render:({onChange:a,field:n})=>k(mo,{label:i(jf),icon:k(Kj,{}),action:t?k(EK,{inherited:n?.inherited??!1,onReset:()=>a(XI),label:jf}):void 0,children:si({options:r,value:n?.currentValue||e,onChange:a,ariaLabel:jf})})}})}function op({fill:e=!1}={}){let o=(a,n)=>({type:"custom",render:({value:s,onChange:l})=>k(I8,{value:s,onChange:l,view:a,badge:n,fill:e})}),t=()=>ig("sectionHeightMode"),r=()=>ig("sectionHeightMode");return pi({_gHeight:zt(es),...Er("sectionHeightMode",a=>a==="desktop"?o(a):o(a,n=>k(S8,{view:a,onClear:()=>n(void 0)}))),...Er("sectionHeightValue",t),...Er("sectionHeightUnit",r)})}function I8({value:e,onChange:o,view:t,badge:r,fill:a=!1}){let n=Po(),{mode:s,number:l,unit:d}=g8(t,n,e);return k(mo,{label:es,icon:ks(k(pg,{})),action:r?r(o):void 0,children:Rr("div",{className:"es-width-stack",children:[si({options:[{label:"Auto",value:"auto"},{label:"Fixed",value:"fixed"},{label:"Screen",value:"screen"},...a?[{label:"Fill",value:"fill"}]:[]],value:s,onChange:o,ariaLabel:es}),l?k(y8,{view:t,mode:s,menu:d}):null]})})}function WO(e,o){return e==="phone"&&bc(o)?Rk(o):_k(o)}function tp(e,o){return e==="desktop"||(e==="tablet"?bc(o):Ak(o))?null:WO(e,o)}function g8(e,o,t){let r=(a=>Pk.includes(a))(t)?t:tp(e,o)?.mode??"auto";return{mode:r,number:r!=="auto"&&r!=="fill",unit:r==="fixed"}}function b8(e,o,t,r){let a=tp(e,o);return!a||e==="desktop"?null:r===void 0?{}:{[we("sectionHeightMode",e)]:a.mode,...a.mode==="fixed"?{[we("sectionHeightUnit",e)]:a.unit}:{},...t==="sectionHeightUnit"?{[we("sectionHeightValue",e)]:a.value}:{},[we(t,e)]:r}}function dO(e,o,t){let r=Ya(),a=tp(e,Po());return!r||!a?{followed:null,write:t}:{followed:a,write:n=>r.onChangeMany(s=>{let l=b8(e,s,o,n);return l===null?{[we(o,e)]:n}:Object.keys(l).length?l:null})}}function y8({view:e,mode:o,menu:t}){let r=Ya(),a=Po(),n=we("sectionHeightValue",e),s=we("sectionHeightUnit",e),l=C=>w=>r?.onChangeMany(()=>({[C]:w})),{followed:d,write:c}=dO(e,"sectionHeightValue",l(n)),{write:f}=dO(e,"sectionHeightUnit",l(s)),u=o==="screen"?"%":a[s],p=(d?d.unit:u)==="%"?"%":"px",h=p==="%"?Ok:Ek,I=a[n],g=t?{options:["px","%"],label:i("Unit"),onChange:C=>f(C)}:void 0;return Zo({min:h.min,max:h.max,step:h.step,value:d?null:typeof I=="number"?I:h.fallback,...d?{placeholder:d.value}:{},suffix:p,...g?{units:g}:{},ariaLabel:es,onChange:c})}function S8({view:e,onClear:o}){let t=Po(),r=tp(e,t)===null,a=e==="phone"&&bc(t),n=WO(e,t),s=Xa(l=>i(l),n.mode==="auto"?i("Auto"):`${n.value}${n.unit}`,a?"tablet":"desktop");return k(Ho,{words:de()?.panel,label:i(es),changed:r,detail:s,onReset:o})}function wg(e={}){let o=e.intro===!0,t=n=>({type:"custom",render:({value:s,onChange:l,id:d,name:c})=>k(E8,{value:s,onChange:l,labelId:`${d??c??"stickTop"}-label`,view:n,intro:o})}),r=n=>({type:"custom",render:({value:s,onChange:l})=>k(k8,{value:s,onChange:l,view:n,intro:o})}),a=n=>({type:"custom",render:({value:s,onChange:l})=>k(T8,{value:s,onChange:l,view:n,intro:o})});return{_gStick:zt(IE,{dot:o?v8:BI}),...Er("stickTop",t),...Er("stickTopDistance",r),...li(Ql,"stickTopDistance",{tablet:!0,phone:!0}),...e.screens?Er(ja,a):{},...o?{}:{[LI]:w8()},...o||e.above===!1?{}:{[ei]:C8()}}}function w8(){let e=st(gE,k(ug,{}),bE,yE);return it("desktop",{...e,render:o=>{let t=e.render({...o,value:FI(o.value),onChange:r=>o.onChange(wE(r))});return cg(t,{hint:i(SE)})}})}function C8(){let e=zO(CE,!1,k(SO,{}),vE);return it("desktop",{...e,render:o=>e.render({...o,onChange:t=>o.onChange(t===!0?!0:void 0)})})}var v8={any:[BI,TE]};function UO(e,o,t,r,a){let n=Ya(),s=Po(),l=e==="desktop"||fi(e,s)?null:Cg(e,gs(s,{intro:r}));return{followed:l,write:(l||a)&&n?d=>n.onChangeMany(c=>{let f=P8(e,c,d,o,r),u=f===null?{[we(o,e)]:d}:f;return Object.keys(u).length?{...u,...a?.(d)??{}}:null}):t}}function k8({value:e,onChange:o,view:t,intro:r}){let a=Po(),n=gs(a,{intro:r}),s=f=>{let u=hc(f);return u==="desktop"||fi(u,a)},l=Jf({row:Ql,label:"Distance from top",grid:{min:ht.min,max:ht.max,step:ht.step},valueKey:"stickTopDistance",view:t,numbersIn:f=>s(f)&&q(a[Ig("stickTopDistance",f)])!==void 0,followsView:t==="phone"&&n.ownTablet?"tablet":"desktop"}),{followed:d,write:c}=UO(t,"stickTopDistance",o,r,l?f=>l.unitPatch(f===void 0):void 0);return k("div",{className:"sf-field",children:Zo({min:l?.grid.min??ht.min,max:l?.grid.max??ht.max,step:l?.grid.step??ht.step,value:d?null:typeof e=="number"?e:ht.fallback,...d?{placeholder:d.distance}:{},...l?{suffix:l.unit,units:l.units}:{suffix:"px"},ariaLabel:i("Distance from top"),onChange:c})})}function T8({value:e,onChange:o,view:t,intro:r}){let{followed:a,write:n}=UO(t,ja,o,r);return k(mo,{label:i(RI),icon:ks(k(pg,{})),children:Zo({min:Gf.min,max:Gf.max,step:Gf.step,value:a?null:q(e)??Gf.default,...a?{placeholder:a.screens}:{},ariaLabel:i(RI),onChange:n})})}function fi(e,o){return e==="tablet"?DI(o):NI(o)}function Cg(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 P8(e,o,t,r="stickTopDistance",a=!1){if(e==="desktop"||fi(e,o))return null;if(t===void 0)return{};let n=Cg(e,gs(o,{intro:a})),s=e==="phone"&&fi("tablet",o)?f=>we(f,"tablet"):f=>f,l=(f,u)=>o[s(f)]==null?{}:{[we(f,e)]:u},d=Ql.unitKey,c=o[s(d)]==null?{}:{[we(d,e)]:n.unit};return{[we("stickTop",e)]:!0,...l("stickTopDistance",n.distance),...c,...l(ja,n.screens),[we(r,e)]:t}}function E8({value:e,onChange:o,labelId:t,view:r,intro:a}){let n=Po(),s=gs(n,{intro:a}),l=r==="phone"?s.phone:r==="tablet"?s.tablet:a?s.desktop:e===!0,d=r==="phone"&&s.ownTablet,c=r==="desktop"?null:Cg(r,s),f=c?.on?We(c.distance,c.unit):i("Off");return k(mo,{label:i(AI),labelId:t,icon:ks(k(SO,{})),action:Rr(Fr,{children:[r!=="desktop"?k(Ho,{words:de()?.panel,label:i(AI),changed:fi(r,n),detail:Xa(u=>i(u),f,d?"tablet":"desktop"),onReset:()=>o(void 0)}):null,k(mg,{checked:l,onChange:o,ariaLabelledBy:t})]})})}var cO="e.g. about";function rp(){return{_gAnchor:zt("Anchor"),anchor:Qa({control:"plainText",label:"Name",placeholder:cO},{type:"custom",render:({value:e,onChange:o})=>k(gP,{value:e,onChange:o,nameBox:(t,r)=>k(Ja,{value:t,onChange:r,label:"Name",placeholder:cO,hideable:!1,markup:!1})})})}}function Eve(e,o,t){return{type:"custom",render:({value:r,onChange:a,id:n,name:s})=>{let l=`${n??s??e}-datetime`,d=Date.parse(typeof r=="string"?r:"");return k(mo,{label:i(e),icon:o,htmlFor:l,hint:t===void 0?void 0:i(t),children:k(aK,{id:l,value:Number.isFinite(d)?new Date(d):null,onChange:c=>a(c?c.toISOString():"")})})}}}function zO(e,o,t,r){return{type:"custom",...sa({},{...Vf,label:e}),render:a=>{let{value:n,onChange:s,id:l,name:d}=a,c="follows"in a,f=a,u=typeof n=="boolean",p=typeof f.follows=="boolean"?f.follows:o,h=u?n:c?p:o,I=`${l??d??e}-label`,g=f.readOnly===!0,C=k(mg,{checked:h,onChange:s,disabled:g,ariaLabelledBy:I});return k(mo,{label:i(e),labelId:I,icon:t,hint:r===void 0?void 0:i(r),action:c?Rr(Fr,{children:[k(Ho,{words:de()?.panel,label:i(e),changed:u,detail:f.followsNoView?i(p?"On":"Off"):Xa(w=>i(w),i(p?"On":"Off"),f.followsView),disabled:g,onReset:()=>s(void 0)}),C]}):C})}}}function $O(){return{type:"custom",render:({value:e,onChange:o,id:t,name:r})=>{let a=`${String(t??r??"pageBackground")}-colour`;return k(O8,{label:"Background",icon:k(zj,{}),id:a,value:e,shown:Bx(e),onChange:o})}}}function Ove(e,o,t){return{type:"custom",render:({value:r,onChange:a})=>k(Yo,{label:i(e),icon:t,value:r||o,onChange:a})}}function O8({label:e,icon:o,id:t,value:r,shown:a,onChange:n}){let{colors:s,n:l}=kg(),d=rr(r),c=d?ds(d,s,l):null;return k(Yo,{label:i(e),icon:o,id:t,value:c?c.hex:a,caption:c?.words,onChange:n,choices:vg(d??"",s,l,n)})}function _ve(){return{type:"custom",render:e=>{let{value:o,onChange:t}=e,r=e;return k(_8,{value:typeof o=="string"?o:"",onChange:t,twin:"follows"in e?{follows:r.follows,view:r.followsView}:void 0})}}}function vg(e,o,t,r){let a=of(e);return CP(o,t).map(n=>({label:n.label,color:n.value,selected:a===n.name,onPick:()=>r(n.name)}))}function _8({value:e,onChange:o,twin:t}){let{colors:r,n:a}=kg(),n=r.background,s=Za(n.toUpperCase(),i("Theme {n} background",{n:a})),[l,d]=Ut(LP),[c]=Ut(Mx),f=typeof c=="string"&&c.trim()!=="",u=Qc(l),p=b=>d(Qc(b)||void 0),h=of(e),I=h?ds(h,r,a):null,g=vg(e,r,a,o),C=t?()=>o(void 0):()=>o(""),w=n,T=s;if(t){let b=of(t.follows),P=ef(t.follows),H=b?ds(b,r,a):P?{hex:P,words:P.toUpperCase()}:null;w=H?.hex??n,T=Xa(E=>i(E),H?H.words:s,t.view)}let y=!t&&(Ul(e)||f)?k(A8,{value:u,onChange:p}):null;return I?k(Yo,{label:i("Fill"),icon:k(lg,{}),value:I.hex,caption:I.words,onChange:o,changed:!0,onReset:C,resetTo:T,choices:g,children:y}):k($l,{label:i("Fill"),icon:k(lg,{}),value:e,inherited:w,resetTo:T,onChange:o,onReset:C,choices:g,children:y})}function A8({value:e,onChange:o}){return si({options:Jc.map(t=>({label:t.label,value:t.value,hint:t.hint})),value:e,onChange:o,ariaLabel:i("Fill")})}function R8(e,o,t){if((e?.content??[]).some(n=>n?.props?.id===o))return er(t);let r=BP(e,o);if(r.length===0)return null;let a=er(Uh(t));if(a!==null)return a;for(let n=r.length-1;n>0;n-=1){let s=er(Uh(r[n].sectionAccent));if(s!==null)return s}return er(r[0].sectionAccent)}function kg(){let e=xo(he().theme),[o]=Ut("sectionAccent"),t=null;try{let{appState:a,selectedItem:n}=qf(l=>l),s=n?.props?.id?String(n.props.id):void 0;t=s?R8(a?.data,s,o):null}catch{t=null}let r=t!==null&&e.themes[t]?t:e.selected;return{colors:Vo(e.themes[r]),n:r+1}}function Ave(){return LO()}var GO={top:k(Dj,{}),right:k(Bj,{}),bottom:k(Lj,{}),left:k(Fj,{})};function jO(e,o,t,r,a,n,s){let l=u=>o.find(p=>p.value===u),d=u=>({value:u,label:"",disabled:!0,title:r}),c=u=>{let p=o.find(I=>I.cell===u);if(!p)return d(`missing-${u}`);let h=n?.[u];return h?{value:p.value,label:p.label,icon:h}:{value:p.value,label:p.label}},f=[d("corner-top-left"),c("top"),d("corner-top-right"),c("left"),d("centre"),c("right"),d("corner-bottom-left"),c("bottom"),d("corner-bottom-right")];return{type:"custom",render:({value:u,onChange:p})=>{let h=o.some(I=>I.value===u)?u:t;return k(mo,{label:i(e),icon:a,value:l(h)?.label?i(l(h).label):s?i(s):"",children:bK(i,{label:e,value:h,onChange:p,points:f})})}}}function Rve(e,o,t){return{type:"custom",options:o,render:({value:r,onChange:a,field:n})=>k(l0,{label:e,options:(n.options??o).map(s=>({...s,label:i(s.label)})),value:Array.isArray(r)?r:[],onChange:a,...t?{emptyLabel:i(t)}:{}})}}function Lve(e,o={}){return{type:"custom",render:({value:t,onChange:r})=>{let a={value:t,onChange:r,...o};return k(e,{...a})}}}var Fve=[{label:"Image",value:"image"},{label:"Video",value:"video"}];function Bve(e,o,t){let r=Object.keys(nx).map(a=>({label:nx[a],value:a,picture:t[a]}));return{type:"custom",...sa({},{type:"radio",label:e,options:r.map(a=>({value:a.value,label:a.label}))}),render:({onChange:a})=>k(F8,{label:e,icon:o,options:r,onChange:a})}}function L8(e,o,t){let r=cT(e,o,t);if(r!==void 0)return r==="save-makes-frame"?i("A frame is made from this video when you save the page."):r==="starts-dark"?i("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"?i("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"?i("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"?i("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"?i("The slide shows your Image while the video loads, because this video has no frame."):void 0;let a=dT(e);return a==="frame-missing-image"?i("This video has no frame yet. The slide shows its image until one is made."):a==="frame-missing-surface"?i("This video has no frame yet. The slide shows its background colour until one is made."):a==="image-missing-frame"?i("No image yet. The slide shows the video's frame until you choose one."):a==="image-missing-surface"?i("No image yet. The slide shows its background colour until you choose one."):void 0}function F8({label:e,icon:o,options:t,onChange:r}){let a=Ya(),n=a?.values??{},s=Al(n),l=pO(Cj),d=Dc(l?.docId??null),c=null;try{c=qf(u=>u.appState.data)}catch{c=null}let f=OT(a?.id,c,d);return k(mo,{label:i(e),icon:ks(o),hint:L8(n,f,l?.hasUnsavedEdits??!1),children:si({options:t,value:s,onChange:r,ariaLabel:e})})}function Dve(e,o,t,r={}){let a={type:"custom",[Tj]:!0,render:({value:n,onChange:s,name:l})=>k(n0,{value:n||"",onChange:s,fieldKey:l,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?it("each",a):a}function B8(e){let o=i(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 Nve({value:e,onChange:o,label:t}){let r=e||{},a=Ya(),n=a?a.values!==a.node.props:!0,s=!!r.pending&&n,l=!!r.pending&&!n,d=!!to(IK()).geocode,c=uO(),f=(u,p)=>o({...r,[u]:p??void 0});return Rr(Fr,{children:[k(mo,{label:i(t),icon:k(oO,{}),action:d?k(hg,{content:i("Find from the address (OpenStreetMap)"),children:k(vO,{"aria-label":i("Find from the address"),"aria-busy":s||void 0,disabled:s,onClick:()=>o({...r,pending:!0,ok:!1,status:"Finding\u2026"}),children:k($j,{})})}):void 0,children:d&&r.status?k(bP,{compact:!0,oneLine:!0,spaced:!1,status:s?"busy":r.ok&&!l?"found":"notfound",statusText:s?i("Finding\u2026"):l?i(zx):i(r.status),hint:B8(r)}):null}),k(mo,{label:i("Enter by hand"),labelId:c,icon:k(Nj,{}),action:k(mg,{checked:!!r.manual,onChange:u=>o({...r,manual:u}),ariaLabelledBy:c})}),r.manual&&k(mo,{label:i("Latitude, longitude"),icon:k(oO,{}),children:Rr("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:8,width:"100%",minWidth:0},children:[k(rO,{value:typeof r.lat=="number"?r.lat:null,onChange:u=>f("lat",u),min:-90,max:90,step:1e-4,placeholder:i("Latitude")}),k(rO,{value:typeof r.lng=="number"?r.lng:null,onChange:u=>f("lng",u),min:-180,max:180,step:1e-4,placeholder:i("Longitude")})]})})]})}function D8(e,o){return o===null||o<0||o>=e.length?"":e[o]?.text??""}function N8(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 M8(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 Tg={label:"Ticker items",icon:k(Uj,{})};function Mve(e,o,t,r){return{type:"custom",[Lr]:{control:"textList",label:e,placeholder:t,itemKey:"text",rendering:r},...sa({},{...OO.textList,label:e}),render:({value:a,onChange:n})=>k(Pg,{label:e,icon:ks(o),items:Array.isArray(a)?a:[],placeholder:t,onChange:n,markup:r==="markup"})}}function Pg({label:e,icon:o,items:t,placeholder:r,onChange:a,markup:n=!1}){let s=ii(null),[l,d]=di(null),c=u=>u.map(p=>({text:p?.text??""})),f=u=>{let p=M8(t,u,l);p===null&&(s.current=null),d(p),a(c(u))};return k(eK,{label:i(e),icon:o,noun:i("item"),items:t,onChange:f,newItem:()=>({text:""}),open:null,onOpen:()=>{},renderItem:()=>null,above:n?k(jx,{target:s,value:D8(t,l),onChange:u=>a(N8(t,l??-1,u)),disabled:l===null,label:l===null?i("Formatting \u2014 click a row first"):i("Formatting \u2014 row {n}",{n:l+1})}):void 0,renderRow:(u,p,h)=>k("input",{type:"text",className:n&&l===p?"sf-list-marking":void 0,value:u?.text??"",placeholder:i(r),"aria-label":i("{label} {n}",{label:i(e),n:p+1}),onChange:I=>h({text:I.target.value}),onFocus:I=>{s.current=I.currentTarget,d(p)}})})}function KO(e,o){let t=`${e.label} \u2014 row ${o+1}`;return Qa({control:"plainText",label:t,placeholder:e.placeholder,offPage:e.offPage},{type:"custom",render:({value:r,onChange:a})=>k(Ja,{value:r,onChange:a,label:i("{label} \u2014 row {n}",{label:i(e.label),n:o+1}),placeholder:e.placeholder,hideable:!1,markup:e.rendering==="markup"})})}function VO(e){return{_gCards:zt("Cards"),coverIndex:st("Cover image",k(Wj,{}),t0,String(1),e?.coverHint??"A card's opening picture \u2014 a card pinned to a finish keeps its own."),imageBackground:HK("Image background",Nf),cardImage:YO()}}function Hve(){return{outline:st("Card outline",k(Gj,{}),o0,e0),indexBadge:st("Card number",k(Hj,{}),Zx,Xx),showBadge:zO("Product badge",!0,k(Rx,{noun:"tag"}))}}function qO(e){let o=e?.defaults??{showCardSizes:!0,showCardBuy:!0,showCardPage:!0},t=a=>({...Vf,label:Kf.find(n=>n.id===a).label}),r=a=>sa(ig(sg),t(a));return{_gShowOnCard:zt("Show on a card"),[sg]:sa({type:"custom",render:()=>k(H8,{rest:{showCardPrice:!0,showCardFinishes:!0,...o}})},t(sg)),showCardFinishes:r("showCardFinishes"),showCardSizes:r("showCardSizes"),showCardBuy:r("showCardBuy"),showCardPage:r("showCardPage")}}var sg="showCardPrice",Kf=[{id:"showCardPrice",label:"Price"},{id:"showCardFinishes",label:"Finish swatches"},{id:"showCardSizes",label:"Sizes"},{id:"showCardBuy",label:"Buy button"},{id:"showCardPage",label:"Page button"}];function H8({rest:e}){let o=Po(),t=ta(),r=s=>typeof o[s]=="boolean"?o[s]:void 0,a=s=>r(s)??e[s],n=Kf.some(({id:s})=>r(s)!==void 0&&r(s)!==e[s]);return k(Ts,{parts:Kf,changed:n,shown:a,onPress:(s,l)=>t({[s]:l}),onReset:()=>t(Object.fromEntries(Kf.map(({id:s})=>[s,void 0])))})}function Wve(e,o="display"){let t=vs(o);return{[o]:it("desktop",{type:"custom",render:({value:r,onChange:a})=>k(Ts,{parts:e,changed:HP(r),shown:n=>af(r,n),onPress:(n,s)=>a(UP(r,n,s)),onReset:()=>a(void 0)})}),[t]:it("mobile",{type:"custom",render:({value:r,onChange:a})=>k(W8,{parts:e,desktopKey:o,value:r,onChange:a})})}}function Ts({parts:e,changed:o,shown:t,onPress:r,onReset:a,detail:n,disabledReason:s}){let l=i("Display");return k(mo,{label:l,icon:k(Oj,{}),changed:o,action:k(Ho,{words:de()?.panel,label:l,changed:o,detail:n,onReset:a}),children:k(oK,{label:l,items:e.map(d=>({id:d.id,label:i(d.label),shown:t(d.id),...s?{disabled:!0,disabledReason:i(s)}:{}})),onChange:r})})}function W8({parts:e,desktopKey:o,value:t,onChange:r}){let a=Po()[o];return k(Ts,{parts:e,changed:WP(t),shown:n=>Ux(a,t,n),onPress:(n,s)=>r(zP(t,n,s)),onReset:()=>r(df),detail:i("the same as Desktop")})}function YO(e=ZT){return Oo("Card image",k(xO,{}),Wo,Vr,XT,Wo,e,{clear:{hint:Wo},hint:"Rounds the picture. The card's own corner is in Styles."})}function U8(){return li(kx,"cardImage")}function Uve(){return{cardImage:YO(kx),...U8()}}function zve(){return yg({sidesKey:"cornerSides",row:JT,step:QT,useFollowed:()=>Wo,mark:k(z8,{label:eP}),hint:i("Rounds the picture. Left alone it stays square.")})}function z8({label:e,changed:o=!1,onReset:t=()=>{}}){return k(Ho,{words:de()?.panel,label:i(e),changed:o,onReset:t})}function $ve(){return{type:"custom",render:({value:e,onChange:o})=>k(K8,{value:typeof e=="string"?e:"",onChange:o})}}var fO="own";function Gve(){let e=[{value:fO,label:"Layout's own",picture:tg(Array.from({length:8},()=>[3,1]))},...Object.entries(zc).map(([o,t])=>({value:o,label:t.label,picture:tg([...t.phone,...t.phone])}))];return it("mobile",eg("Layout",k(IO,{}),e,fO,{columns:2,cell:QE}))}function $8({layout:e,width:o}){let t=Ox(e),r=t?`${t[0]}/${t[1]}`:void 0;return k("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:lP(e).map(([a,n],s)=>k("i",{className:"block rounded-xs bg-current opacity-60",style:{gridColumn:`span ${a}`,gridRow:`span ${n}`,aspectRatio:r}},s))})}var G8={width:"3.5rem",height:"2.5rem",words:!1},j8=200;function K8({value:e,onChange:o}){let[t,r]=di(null),[a,n]=di(4),s=ii(null);wj(()=>{let h=s.current;if(!h||typeof ResizeObserver!="function")return;let I=()=>n(h.getBoundingClientRect().width>=j8?4:3);I();let g=new ResizeObserver(I);return g.observe(h),()=>g.disconnect()},[]);let l=e?K(Ml,e):void 0,d=l?e:"",c=Px(t,d),f=Px(t,"").length,u=jc("no-symbol"),p=[{value:"",label:i("Not chosen"),icon:JE(u,i("Not chosen"))},...c.map(h=>({value:h,label:i(Ml[h].label),icon:k($8,{layout:Ml[h],width:40})}))];return k(mo,{label:i("Layout"),icon:k(IO,{}),value:l?i(l.label):void 0,children:k("div",{ref:s,style:{flex:"1 1 auto",minWidth:0},children:k(wO,{label:i("Layout"),value:d,options:p,onChange:o,columns:a,cell:G8,header:Rr("div",{className:"mb-2 flex flex-col gap-1",style:{minWidth:"11rem"},children:[k("span",{className:"text-2xs text-ink-faint",children:i("Photos in a row")}),k(Yj,{options:[{id:"all",label:i("All")},...aP.map(h=>({id:String(h),label:String(h)}))],value:t===null?"all":String(t),ariaLabel:i("Photos in a row"),onChange:h=>r(h==="all"?null:Number(h))}),k("span",{className:"text-2xs text-ink-faint",children:i("{n} of {total} layouts",{n:f,total:Tx.length})})]})})})})}import{decodePartId as c7}from"efficient-easel/draw";import{decodePartId as Ag,encodePartId as ip}from"efficient-easel/draw";import{LINK_FIELD_MARKER as n_,SCAFFOLD_FIELD_MARKER as r_,TEXT_FIELD_MARKER as dp}from"efficient-easel/draw";import{readHidable as s_}from"efficient-easel/draw";import{SCALAR_TEXT_CONTROLS as Q8}from"efficient-easel/draw";import{TEXT_FIELD_MARKER as J8}from"efficient-easel/draw";import{TEXT_FIELD_MARKER as XO}from"efficient-easel/draw";import{readHidable as ZO}from"efficient-easel/draw";import{SCALAR_TEXT_CONTROLS as V8}from"efficient-easel/draw";var q8=V8,Y8=["text","textarea"],X8=["textarea","plainTextarea"];function Z8(e){return!e||typeof e!="object"?null:e[XO]?.control??null}function Ps(e){let o=Z8(e);return o&&q8.includes(o)?o:null}function ap(e){return X8.includes(e)}function JO(e){return!e||typeof e!="object"?void 0:e[XO]?.placeholder}function np(e){return ZO(e).text}function Eg(e,o,t){return Y8.includes(e)?{text:t,hidden:ZO(o).hidden}:t}function QO(e,o,t,r){return np(e[o])===r?null:{...e,[o]:Eg(t,e[o],r)}}function Es(e,o){return o?`${e}[${o.index}].${o.rowKey}`:e}function $t(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 sp(e){if(!(!e||typeof e!="object"))return e[J8]}function Og(e){if(!e||typeof e!="object")return null;let o=e.arrayFields;return o&&typeof o=="object"?o:null}function e_(e,o){if(!Array.isArray(o))return[];let t=sp(e),r=[];if(t?.control==="textList"){let n=t.itemKey??"text";return o.forEach((s,l)=>{let d=Se(s?.[n]);d&&r.push({row:{index:l,rowKey:n},text:d})}),r}let a=Og(e);return a?(o.forEach((n,s)=>{for(let[l,d]of Object.entries(a)){if(!Ps(d))continue;let c=np(n?.[l])||sp(d)?.placeholder||"";c&&r.push({row:{index:s,rowKey:l},text:c})}}),r):[]}function ui(e,o){if(Array.isArray(e))return e[o.index]?.[o.rowKey]}function _g(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 o_(e,o,t,r,a){let n=ui(e[o],t);return np(n)===a?null:_g(e,o,t,Eg(r,n,a))}function t_(e,o){return o?`${e} \xB7 row ${o.index+1}`:e}var Gt="data-sf-part",pke="data-sf-region-part",uke="data-sf-part-row";function mke(e,o){return`${e}[${o}]`}var hke="data-sf-part-kind",e7="data-sf-part-style-owner",o7="data-sf-part-style-kind";function xke(e){for(let o=e;o;o=o.parentElement){let t=o.getAttribute(e7),r=o.getAttribute(o7);if(t&&r)return{owner:t,kind:r};if(o.getAttribute("data-easel-block"))return null}return null}var a_=2;function Os(e){return yr(e).replace(/\s+/gu,"")}function lp(e,o,t){let r=e[dp];if(r){if(r.control==="textList"){let n=r.itemKey??"text";if(!Array.isArray(o))return;for(let s of o){let l=s?.[n];typeof l=="string"&&t.push(l)}return}let{text:a}=s_(o);a?t.push(a):r.placeholder&&t.push(r.placeholder);return}if(!e[n_]){if(e.type==="text"||e.type==="textarea"){let a=Se(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))lp(s,a?.[n],t);return}if(e.objectFields&&o&&typeof o=="object")for(let[a,n]of Object.entries(e.objectFields))lp(n,o[a],t)}}function Rg(e){if(!e||typeof e!="object")return!1;let o=e;return o[n_]?!1:!!o[dp]||o.type==="text"||o.type==="textarea"}function cp(e,o){let t=e[dp];return t?.label?t.label:typeof e.label=="string"?e.label:o}function Lg(e){let o=e.indexOf(" (");return(o>0?e.slice(0,o):e).trim()}function Ike(e,o,t){if(!e)return[];let r=[];for(let[a,n]of Object.entries(e)){if(!n||typeof n!="object"||Gl(a))continue;let s=n,l=[];lp(s,o?.[a],l),!l.length&&s[r_]!==void 0&&lp(s,s[r_],l);let d=cp(s,a);if(t?.(a)&&Rg(s)){l.length&&r.push({key:a,label:d,texts:[],keyed:!0});continue}let c=new Set;for(let{row:p,text:h}of e_(s,o?.[a])){let I=Os(h);I.length<a_||(c.add(I),r.push({key:a,label:d,texts:[I],row:p}))}let f=new Set(c),u=[];for(let p of l){let h=Os(p);h.length<a_||f.has(h)||(f.add(h),u.push(h))}u.length&&r.push({key:a,label:d,texts:u})}return r}function Fg(e){return!e.offPage&&!e.hidden&&e.panelOnly!==!0}var t7=Q8;function l_(e,o){if(!o||typeof o!="object"||Gl(e)||VP(o))return null;let t=o[dp];return!t||!t7.includes(t.control)?null:t}function gke(e,o){let t=l_(e,o);return t!==null&&t.identifier!==!0}function i_(e,o){if(!e)return[];let t=[];for(let[r,a]of Object.entries(e)){let n=l_(r,a);if(!n)continue;let{text:s,hidden:l}=s_(o?.[r]);if(Fg({offPage:n.offPage===!0,hidden:!!l,panelOnly:ms(a)}))continue;let d=s||n.placeholder||"",c=yr(d).replace(/\s+/gu," ").trim();t.push({key:r,label:Lg(cp(a,r)),preview:c,offPage:n.offPage===!0,identifier:n.identifier===!0,hidden:!!l})}return t}function _s(e,o){let t=sp(e);return t?.control==="textList"?o.rowKey===(t.itemKey??"text")?KO(t,o.index):null:Og(e)?.[o.rowKey]??null}function fp(e,o,t){let r=e.node.props,{key:a,row:n}=$t(e.propKey),s=n?o_(r,a,n,e.kind,o):QO(r,a,e.kind,o);return s?(t(e.zone,e.index,{...e.node,props:s}),!0):!1}import{readHidable as p_}from"efficient-easel/draw";import{isNodeList as r7}from"efficient-easel/data";var Bg=e=>String(e+1).padStart(2,"0"),Tke=[{label:"01 \xB7",value:"two-digit"},{label:"1.",value:"plain"}],Dg="two-digit",d_=e=>e==="plain"?"plain":Dg,pp=(e,o)=>e==="plain"?`${o+1}.`:Bg(o);var Mg="Contents",Ng="Flex",c_="Text",a7="numberForm",Nke="_contentsEntries",Mke="_kickerNumber",u_="data-sf-kicker-number",n7=e=>p_(e).text.trim(),m_=e=>Kc(e?.anchor),f_=e=>String(e.props?.id??""),s7=e=>!p_(e.props?.text).hidden&&!as(e.props)&&!Zt(e.props);function mi(e){return Object.values(e.props??{}).filter(r7)}function h_(e){for(let o of mi(e))for(let t of o){if(zl(t.props??{}))continue;if(t.type===c_&&s7(t))return t;if(t.type===c_)continue;let r=h_(t);if(r)return r}}function x_(e){return mi(e).some(o=>o.some(t=>t&&!zl(t.props??{})&&(t.type===Mg||x_(t))))}var I_=e=>e.type===Ng&&bs(Ng,e.props?.direction)==="row";function g_(e){return mi(e).some(o=>o.some(t=>t&&!zl(t.props??{})&&(t.type===Mg||!I_(t)&&g_(t))))}function l7(e){let o=[],t=(r,a)=>{for(let n of r){if(!n||zl(n.props??{}))continue;if(n.type===Mg){a.open={contents:n,sections:a.waiting??[]},a.waiting=null,o.push(a.open);continue}if(I_(n)&&g_(n)){let l={inRow:!0,open:null,waiting:[]};for(let d of mi(n))t(d,l);a.inRow||(a.open=null);continue}let s=a.open?.sections??a.waiting;if(n.type===Ng&&m_(n.props)&&s&&!x_(n)){s.push({box:n,kicker:h_(n)});continue}for(let l of mi(n))t(l,a)}};return t(e,{inRow:!1,open:null,waiting:null}),o}function i7(e){return e.map(o=>({label:o.kicker?yr(n7(o.kicker.props?.text)):"",anchor:m_(o.box.props)}))}function Hke(e){let o=e?.length?l7(e):[];if(!o.length)return null;let t=new Map,r=new Map;for(let a of o){let n=f_(a.contents);n&&t.set(n,i7(a.sections));let s=d_(a.contents.props?.[a7]);a.sections.forEach((l,d)=>{let c=l.kicker?f_(l.kicker):"";c&&r.set(c,pp(s,d))})}return{entries:t,numbers:r}}var Wke=e=>e.endsWith(".")?`${e} `:`${e} \xB7 `;var f7=`[${u_}]`,p7=["bold","italic","underline","strike","link","sup","sub"],u7=["bullet","number"];function Ug(e,o){return e?[...p7,...o?u7:[]]:[]}function b_(e,o){let t=c7(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:l,row:d}=$t(a),c=o.components[n.type]?.fields?.[l],f=d?_s(c,d):c,u=Ps(f);if(!u)return null;let p=n.props??{};if(mI(p)!==null||!d&&ic(n.type,p,l)||n.type==="Text"&&l==="text"&&as(p)||d&&!(Array.isArray(p[l])&&d.index<p[l].length))return null;let h=d?ui(p[l],d):p[l];return{node:n,selector:s,propKey:a,kind:u,stored:h,offPage:Yf(f),panelOnly:ms(f)}}function up(e,o){let t=b_(e,o);if(!t)return null;let{text:r,hidden:a}=la(t.stored);if(!Fg({offPage:t.offPage,hidden:!!a,panelOnly:t.panelOnly}))return null;let n=ap(t.kind);return{partId:e,value:r,rules:Yd,multiline:n,skip:f7,offered:Ug(t.kind!=="plainText",n),write:s=>{let l=b_(e,o);l&&fp({node:l.node,propKey:l.propKey,kind:l.kind,zone:l.selector.zone,index:l.selector.index},s,o.replace)}}}function zg(e,o,t){return e?.isConnected&&e.getAttribute(Gt)===t?e:o?.querySelector(`[${Gt}="${mp(t)}"]`)??null}function mp(e){return e.replace(/["\\]/g,"\\$&")}function y_(e){let o=e.activeElement;return o?o.tagName==="IFRAME"||!!o.closest(".es-canvas"):!1}var Hg=null,Wg=new Set;function m7(){return Hg}function $g(e){if(e!==Hg){Hg=e;for(let o of Wg)o()}}function h7(e){return Wg.add(e),()=>{Wg.delete(e)}}function S_(){return d7(h7,m7,()=>null)}function w_(e,o){if(e.outer)return null;let t=o.getItemById(e.ownerId);if(!t)return null;let r=Lv(t.type);return!r||Xt(t.props)?null:{node:t,rows:r}}function y7(e,o){let t=w_(e,o),r=o.getItemById(e.nodeId);if(!t||!r)return null;let a=Hv(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:x7(e.ownerId,Es(t.rows,{index:e.index,rowKey:a}))}function hp(e,o){let t=y7(e,o);return t?up(t,o):null}function C_(e,o){return hp(e,o)?.value}function v_(e,o){let t=hp(e,o);return t?(t.write(e.text),!0):!1}function k_(e,o){let t=w_(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 l;switch(e.action){case"addAfter":{let d=o.components[t.node.type]?.fields?.[t.rows];l=I7(n,s+1,{...d?.defaultItemProps??{}});break}case"moveEarlier":case"moveLater":{let d=e.action==="moveEarlier"?s-1:s+1;if(d<0||d>=n.length)return!1;l=g7(n,s,d);break}case"delete":l=b7(n,s);break;default:return!1}return o.replace(r.zone,r.index,{...t.node,props:{...a,[t.rows]:l}}),!0}import{jsx as Pe,Fragment as lA,jsxs as Ti}from"react/jsx-runtime";import{Fragment as Jq,useEffect as Qq,useId as eY,useMemo as iA,useRef as oY,useState as da}from"react";import{useScreenDocument as xA}from"efficient-easel/screen/components/ScreenDocumentContext";import{UiIcon as Db}from"efficient-easel/draw/client";import tY from"efficient-easel/screen/components/SidePanelHead";import{jsx as ve,Fragment as Ms,jsxs as sn}from"react/jsx-runtime";import{useEasel as eA,useRootFields as dq}from"efficient-easel/easel";import{Inspector as cq}from"efficient-easel/fields";import{SettingsGroup as fq}from"efficient-easel/panel";import{useEffect as pq,useRef as uq,useState as Lb}from"react";import{jsx as en,Fragment as v7,jsxs as k7}from"react/jsx-runtime";import{useState as O_}from"react";import{SettingsDefaultReset as T7,SettingsField as P7}from"efficient-easel/panel";import{useEaselStrings as E7}from"efficient-easel/strings";import{AddIcon as O7}from"efficient-easel/icons";import{Button as _7}from"efficient-shell/ui";import{iconOf as A7,noGlyph as R7}from"efficient-easel/screen/lib/document/box-fields";import{jsx as xp,Fragment as S7,jsxs as T_}from"react/jsx-runtime";import{Button as P_,Dialog as w7}from"efficient-shell/ui";function C7(e){return Uo("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 E_({count:e,onCancel:o,onConfirm:t}){return T_(w7,{open:!0,onClose:o,role:"alertdialog",size:"sm",title:i("Clear this site\u2019s colors?"),footer:T_(S7,{children:[xp(P_,{variant:"secondary",onClick:o,children:i("Cancel")}),xp(P_,{variant:"danger",onClick:t,children:i("Clear colors")})]}),children:[xp("p",{children:C7(e)}),xp("p",{className:"mt-2 font-medium",children:i("This cannot be undone.")})]})}var L7=R7("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"),F7="Reset color",B7={selected:0,themes:[]};function D7(e){e(B7)}function __({value:e,onChange:o}){let t=e?.themes??[],r=t.length===0,a=xo(e),[n,s]=O_(!1),l=E7(),[d,c]=O_(null),f=(w,T)=>{o({...a,themes:a.themes.map((y,b)=>b===w?T:y)})},u=Yn(a).accent,p=new Set(a.themes.map(w=>w.brandInk).filter(Boolean)),h=Vv.filter(w=>!p.has(w)).map(w=>qv(u,w)),I=[...a.themes,...h],g=w=>{if(w<a.themes.length)return o({...a,selected:w});let T=[...a.themes,I[w]];o({...a,themes:T,selected:T.length-1})},C=()=>{let w=[...a.themes,{...Vo(a.themes[a.selected])}];o({...a,themes:w,selected:w.length-1}),c(w.length-1)};return k7(v7,{children:[r?null:en(P7,{label:i(F7),icon:A7(L7),labelId:"sf-theme-reset",action:en(T7,{label:i("all theme colors"),words:l.panel,changed:!0,onReset:()=>s(!0)})}),n&&en(E_,{count:t.length,onCancel:()=>s(!1),onConfirm:()=>{s(!1),D7(o)}}),en("div",{className:"sf-theme-list",role:"radiogroup","aria-label":i("Theme"),children:I.map((w,T)=>en(hf,{index:T,colors:w,selected:T===a.selected,open:d===T&&T<a.themes.length,editable:T<a.themes.length,onPick:()=>g(T),onEdit:()=>c(y=>y===T?null:T),onChangeColors:y=>f(T,y)},T))}),en(_7,{variant:"secondary",leftIcon:en(O7,{}),onClick:C,className:"sf-theme-add",children:i("Add new theme")})]})}import{jsx as Ip}from"react/jsx-runtime";import{SettingsDefaultReset as N7,SettingsField as M7}from"efficient-easel/panel";import{SquareIcon as H7}from"efficient-easel/icons";var W7="Applies to panels, cards, inputs and buttons. Round things \u2014 color swatches, switches, status dots \u2014 stay round.",Gg="Corners";function A_({value:e,onChange:o,length:t}){let r=e===null;return Ip(M7,{label:i(Gg),icon:Ip(H7,{}),changed:!r,action:Ip(N7,{words:de()?.panel,label:i(Gg),changed:!r,detail:i("the built-in corners"),onReset:()=>o(null)}),hint:i(W7),children:Ip(Zo,{min:t?.grid.min??Wo,max:t?.grid.max??Vr,step:t?.grid.step??1,value:e,...e===null?{}:{suffix:t?.unit??"px",...t?{units:t.units}:{}},placeholder:Wo,placeholderWord:"Auto",onClear:()=>o(null),ariaLabel:i(Gg),onChange:o})})}import{jsx as hi}from"react/jsx-runtime";import{SettingsDefaultReset as U7,SettingsField as z7}from"efficient-easel/panel";import{IconPicker as $7}from"efficient-shell/ui";import{ShadowIcon as G7}from"efficient-easel/icons";import{SHADOW_PREVIEW as j7}from"efficient-easel/screen/lib/document/shadow-values";var jg={none:"None",soft:"Soft",lifted:"Lifted"},K7="Applies to cards \u2014 products, brands, journal entries and filter cells. Round things like swatches and status dots are never shadowed.";function R_({value:e,onChange:o}){let t=e===null,r=e??Hh;return hi(z7,{label:i("Card shadow"),icon:hi(G7,{}),value:i(jg[r]),changed:!t,action:hi(U7,{words:de()?.panel,label:i("Card shadow"),changed:!t,detail:i(jg[Hh]),onReset:()=>o(null)}),hint:i(K7),children:hi($7,{label:i("Card shadow"),value:r,options:sk.map(a=>({value:a,label:i(jg[a]),icon:hi("span",{className:"sf-shadow-chip border border-line bg-surface",style:{boxShadow:j7[a]}})})),onChange:o})})}import{jsx as L_}from"react/jsx-runtime";import{ShadowIcon as V7}from"efficient-easel/icons";import{DEFAULT_SHADOW_COLOR as F_}from"efficient-easel/screen/lib/document/shadow-values";var q7="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 B_({value:e,onChange:o}){let t=e===null;return L_($l,{label:i("Shadow color"),icon:L_(V7,{}),value:e??"",inherited:F_,resetTo:F_,onChange:o,onReset:()=>o(null),hint:i(q7)})}import{jsx as bp}from"react/jsx-runtime";import{SettingsDefaultReset as Y7,SettingsField as X7}from"efficient-easel/panel";import{AlignSeparateIcon as Z7}from"efficient-easel/icons";function gp(e,o){return e==="tablet"?null:e==="mobile"?o.phone:o.desktop}var J7="The space between the blocks inside a row, a grid or a box. Auto means each one keeps the spacing it already has.",Q7="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.",Kg="Block gap",D_=ys.Grid;function N_(e,o){return gp(e,{desktop:{key:"block_gap",value:o.gap,followsPx:null},phone:{key:"block_gap_phone",value:o.phone,followsPx:o.gap===null?null:UI(o.gap)}})}function M_({value:e,onChange:o,followsPx:t=null,length:r,followsUnit:a="px"}){let n=e===null,s=t===null?null:`${t}${a}`,l=a==="px"&&(r?.unit??"px")==="px",d=t===null?D_:l?ti(t)??D_:t;return bp(X7,{label:i(Kg),labelId:"sf-block-gap",icon:bp(Z7,{}),changed:!n,action:bp(Y7,{words:de()?.panel,label:i(Kg),changed:!n,detail:s??i("each block's own spacing"),onReset:()=>o(null)}),hint:i(s===null?J7:Q7),children:bp(Zo,{min:(r?.grid??xt).min,max:(r?.grid??xt).max,step:(r?.grid??xt).step,value:e,...e===null&&t===null?{}:{suffix:r?.unit??"px",...r?{units:r.units}:{}},placeholder:d,...t===null?{placeholderWord:"Auto"}:l&&t===d?{}:{placeholderWord:String(t)},onClear:()=>o(null),ariaLabel:i(Kg),onChange:o})})}import{jsx as yp}from"react/jsx-runtime";import{SettingsDefaultReset as eV,SettingsField as oV,SettingsSegmented as tV}from"efficient-easel/panel";import{HoverIcon as rV}from"efficient-easel/icons";var Vg={none:Un.none,lift:Un.lift,highlight:BC},aV="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 H_({value:e,onChange:o}){let t=e===null,r=e??Wh;return yp(oV,{label:i("Hover effect"),icon:yp(rV,{}),value:i(Vg[r]),changed:!t,action:yp(eV,{words:de()?.panel,label:i("Hover effect"),changed:!t,detail:i(Vg[Wh]),onReset:()=>o(null)}),hint:i(aV),children:yp(tV,{options:lk.map(a=>({id:a,label:i(Vg[a])})),value:r,ariaLabel:i("Hover effect"),onChange:o})})}import{jsx as Sp}from"react/jsx-runtime";import{SettingsDefaultReset as nV,SettingsField as sV,SettingsSegmented as lV}from"efficient-easel/panel";import{DropIcon as iV}from"efficient-easel/icons";var qg="Photography",W_={shot:"As shot",mono:"Black and white"},Yg=[{grayscale:!1,label:W_.shot},{grayscale:!0,label:W_.mono}],dV="Black and white photographs return to color on hover. Wheels and tyres keep their real finish either way.";function U_({value:e,onChange:o}){let t=e===null,r=e??!1;return Sp(sV,{label:i(qg),icon:Sp(iV,{}),value:i(Yg.find(a=>a.grayscale===r).label),changed:!t,action:Sp(nV,{words:de()?.panel,label:i(qg),changed:!t,detail:i(Yg.find(a=>!a.grayscale).label),onReset:()=>o(null)}),hint:i(dV),children:Sp(lV,{options:Yg.map(a=>({id:a.grayscale,label:i(a.label)})),value:r,ariaLabel:i(qg),onChange:o})})}import{jsx as Xg}from"react/jsx-runtime";import{useId as cV}from"react";import{SettingsField as fV,SettingsSwitch as pV}from"efficient-easel/panel";import{ShareIcon as uV}from"efficient-easel/icons";var mV="Share button",hV="On every blog post.";function z_({value:e,onChange:o}){let t=cV();return Xg(fV,{label:i(mV),labelId:t,icon:Xg(uV,{}),action:Xg(pV,{checked:e===!0,onChange:o,ariaLabelledBy:t}),hint:i(hV)})}import{usePreviewDevice as Fb}from"efficient-easel/draw/client";import{jsx as wp}from"react/jsx-runtime";import{SettingsDefaultReset as xV,SettingsField as IV}from"efficient-easel/panel";import{PaddingXIcon as gV}from"efficient-easel/icons";var Zg="Side space",$_=Go.default,bV="The room left at the left and right edge of every page.";function G_(e,o){return gp(e,{desktop:{key:"site_gutter",value:o.gutter,unsetPx:$_,bounds:Go},phone:{key:"site_gutter_phone",value:o.phone,unsetPx:Pf(o.gutter,o.gutterUnit),bounds:Ht}})}function j_({value:e,onChange:o,unsetPx:t=$_,bounds:r=Go,length:a,restsOn:n=t}){let s=e===null;return wp(IV,{label:i(Zg),labelId:"sf-side-space",icon:wp(gV,{}),changed:!s,action:wp(xV,{words:de()?.panel,label:i(Zg),changed:!s,detail:`${t}px`,onReset:()=>o(null)}),hint:i(bV),children:wp(Zo,{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:i(Zg),onChange:o})})}import{jsx as Jg}from"react/jsx-runtime";import{BACKGROUND_WIDTHS as _Pe,SettingsBackgroundWidth as yV,SettingsContentWidth as SV}from"efficient-easel/panel";var wV="Background width",CV="Content width";var Cp=e=>i(Va[e==="content"?"page":"full"]),K_="The width of every section's background.",V_="The width of every section's content.";function q_({value:e,changed:o,detail:t,onChange:r,onReset:a,hint:n,labelId:s}){return Jg(yV,{value:e,changed:o,detail:t,onChange:r,onReset:a,hint:n?i(n):void 0,labelId:s,words:{label:i(wV),full:Cp("full"),content:Cp("content")},resetWords:de()?.panel})}function Y_({mode:e,px:o,max:t=uo.max,min:r=uo.min,changed:a,detail:n,fullClosed:s,onMode:l,onPx:d,onReset:c,hint:f,labelId:u,length:p}){let h=i(CV),I=p?.grid.min??r,g=p?.grid.max??t,C=e!=="full"?Jg(Zo,{min:I,max:g,step:p?.grid.step??uo.step,value:Math.min(Math.max(o,I),g),onChange:d,...p?{suffix:p.unit,units:p.units}:{suffix:"px"},ariaLabel:h}):null;return Jg(SV,{mode:e,onMode:l,number:C,changed:a,detail:n,fullClosed:s,onReset:c,hint:f?i(f):void 0,labelId:u,words:{label:h,full:Cp("full"),content:Cp("content")},resetWords:de()?.panel})}import{jsx as B1}from"react/jsx-runtime";import{TextStyleItem as R9,TextStylesGroup as L9}from"efficient-easel/text-styles";import{jsx as T9}from"react/jsx-runtime";import{useState as P9}from"react";import{TextStylesList as E9}from"efficient-easel/text-styles";import{usePreviewDevice as O9}from"efficient-easel/draw/client";import{defaultTextStyles as S1,textStyleCaseCss as y9}from"efficient-easel/text-styles/model";import{resolveViewValue as w1}from"efficient-easel/draw";import{VIEW_DESKTOP_MIN as X_,VIEW_TABLET_MIN as Z_}from"efficient-easel/draw";var vp=.02,J_=`(min-width: ${Gr}px) and (max-width: ${X_-vp}px)`,xi=`(max-width: ${Gr-vp}px)`,kp=`(min-width: ${Z_}px) and (max-width: ${X_-vp}px)`,Tp=`(max-width: ${Z_-vp}px)`;import{textStyleCaseCss as vV,textStyleCaseOfCss as kV,viewKeyAt as n1}from"efficient-easel/draw";function As(e){return!e||typeof e!="object"||Array.isArray(e)?null:e}function Rs(e,o){return As(e?.[o])??{}}function Pp(e,o,t){let r=Rs(e,o);return As(K(r,t))??{}}function Ep(e,o,t,r){let{[t]:a,...n}=Rs(e,o),s=r?{...n,[t]:r}:n,{[o]:l,...d}=e;return Object.keys(s).length?{...d,[o]:s}:d}import{isLengthUnit as ab}from"efficient-easel/screen/lib/content/length-units";var bi="_partStyles",nb="data-sf-part-styled",Ls="data-sf-text-style",TV=/^(heading|body)-[1-7]$/;function rn(e){return typeof e=="string"&&TV.test(e)}var Op={heading:"heading-1",heading2:"heading-2",heading3:"heading-3",body:"body-1",label:"body-5"};function PV(e){if(!e)return null;for(let[o,t]of Object.entries(Op))if(t===e)return o;return null}function sb(e){if(rn(e.textStyle))return e.textStyle;let o=br(e.role);return o?Op[o]:void 0}var EV=[400,500,600,700],gi=["left","center","right","justify"],Qg=5,eb=1e3,OV=-5,_V=10,lb=0,ib=64,db=2,Q_={size:{min:Qg,max:eb,step:1},sizeTablet:{min:Qg,max:eb,step:1},sizePhone:{min:Qg,max:eb,step:1},padding:{min:lb,max:ib,step:db}},AV=.05,RV=.01,LV=["line","letter"],FV=.5,BV=2.5,DV=-1,NV=1,MV=0,HV=400,WV=[...new Set(Object.values(Wn))];function s1(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 e0e(e){return Rs(e,bi)}function yi(e,o){return Pp(e,bi,o)}function l1(e,o,t){return Ep(e,bi,o,UV(t).length?t:null)}function UV(e){return Object.entries(e).filter(([,o])=>o!==void 0)}function zV(e){return LV.includes(e)}var Ii=(e,o,t)=>Math.min(t,Math.max(o,e)),$V=["sizeUnit","sizeUnitTablet","sizeUnitPhone"];function ob(e){let o=n1("sizeUnit",e),t=$V.find(r=>r===o);if(!t)throw new Error(`a part stores no unit key ${o}`);return t}var gt={size:ob("desktop"),sizeTablet:ob("tablet"),sizePhone:ob("mobile"),paragraphSpacing:"paragraphSpacingUnit",padding:"paddingUnit"},i1=Object.values(gt);function lr(e,o){return ke(e[gt[o]])}function GV(e,o,t={}){if(i1.includes(e))return ab(o)&&o!=="px"?o:null;if($e(gt,e)&&lr(t,e)!=="px"){let r=tn(Number(o),2);return!Number.isFinite(r)||r<0||r===0&&e!=="padding"?null:r}if(zV(e)){let r=Math.round(Number(o));return!Number.isFinite(r)||r===0?null:Ii(r,OV,_V)}if(e==="lineHeight"){let r=Number(o);return Number.isFinite(r)?tn(Ii(r,FV,BV),3):null}if(e==="letterSpacing"){let r=Number(o);return Number.isFinite(r)?tn(Ii(r,DV,NV),4):null}if(e==="paragraphSpacing"){let r=Math.round(Number(o));return!Number.isFinite(r)||r<=0?null:Ii(r,MV,HV)}if($e(Q_,e)){let{min:r,max:a}=Q_[e],n=Math.round(Number(o));return Number.isFinite(n)?Ii(n,r,a):null}return e==="italic"?typeof o=="boolean"?o:null:e==="role"||e==="fontRole"?br(o)?o:null:e==="sizeToken"?cb(o)?o:null:e==="textStyle"?rn(o)?o:null:e==="alignPhone"||e==="alignTablet"?gi.includes(o)?o:null:o}var jV=["weight","size","sizeTablet","sizePhone","line","letter","lineHeight","letterSpacing","paragraphSpacing","padding"];function Fs(e){let o=null,t=r=>{o??={...e},delete o[r]};for(let r of jV){let a=e[r];a!==void 0&&!(typeof a=="number"&&Number.isFinite(a))&&t(r)}e.align!==void 0&&!gi.includes(e.align)&&t("align"),e.alignTablet!==void 0&&!gi.includes(e.alignTablet)&&t("alignTablet"),e.alignPhone!==void 0&&!gi.includes(e.alignPhone)&&t("alignPhone"),e.textStyle!==void 0&&!rn(e.textStyle)&&t("textStyle"),e.sizeToken!==void 0&&!cb(e.sizeToken)&&t("sizeToken"),e.fontRole!==void 0&&!br(e.fontRole)&&t("fontRole");for(let r of i1)e[r]!==void 0&&!ab(e[r])&&t(r);return o??e}function cb(e){if(!e||typeof e!="object")return!1;let{step:o,px:t,stepPhone:r,pxPhone:a,fluid:n}=e,s=d=>typeof d=="number"&&Number.isFinite(d)&&d>0,l=d=>typeof d=="string"&&WV.includes(d);return l(o)&&s(t)&&(r===void 0||l(r))&&(a===void 0||s(a))&&(n===void 0||KV(n,t))}function KV(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 fb(e){return e?.pxPhone&&cb(e)?{step:e.stepPhone??e.step,px:e.pxPhone}:null}function d1({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 VV=[["font","role"],["font","fontRole"],["role","textStyle"],["line","lineHeight"],["letter","letterSpacing"]];function qV(e){let o=[];for(let[t,r]of VV)t===e?o.push(r):r===e&&o.push(t);return o}function an(e,o,t,r){let a={...yi(e,o)},n=r==null?null:GV(t,r,a);if(n===null)delete a[t];else{a[t]=n;for(let s of qV(t))delete a[s]}return l1(e,o,a)}function c1(e,o){return l1(e,o,{})}function YV(e){return kV(e)??"none"}function XV(e){return vV(e)??""}var e1={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 ZV(e,o){return br(e.role)||(o?.blockDrawsStyle?null:PV(e.textStyle))}function f1(e,o){return e==="Text"&&o==="text"}var JV={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 QV(e){let o=Wn[e],t=K(JV,o);return t?`var(--size-${o}, ${t})`:`var(--size-${o})`}function Si(e){let o={};return typeof e.lineHeight=="number"?o.lineHeight=e.lineHeight:e.line&&(o.lineHeight=tn(e9+e.line*AV,3)),typeof e.letterSpacing=="number"?o.letterSpacingEm=e.letterSpacing:e.letter&&(o.letterSpacingEm=tn(e.letter*RV,4)),o}var e9=1,on="--sf-part-para";function o9(e){e=Fs(e);let o={};if(typeof e.sizePhone=="number"&&e.sizePhone>0)o.fontSize=We(e.sizePhone,lr(e,"sizePhone"));else{let r=fb(e.sizeToken);if(r)o.fontSize=d1(r);else{let a=Ap(e);a!==void 0&&(o.fontSize=We(a,lr(e,"sizeTablet")))}}let t=e.alignPhone??_p(e);return t&&(o.textAlign=t),o}function _p(e){return e.alignTablet&&e.alignTablet!==e.align?e.alignTablet:void 0}function Ap(e){let o=e.sizeTablet!==void 0&&lr(e,"sizeTablet")!==lr(e,"size")?e.sizeTablet:wr("textSize",e.size,e.sizeTablet,void 0).tablet;return o&&o>0?o:void 0}function t9(e){let o=Fs(e),t={},r=Ap(o);r!==void 0&&(t.fontSize=We(r,lr(o,"sizeTablet")));let a=_p(o);return a&&(t.textAlign=a),t}function p1(e,o){if(o==="desktop")return;let t=Fs(e);return(o==="mobile"?_p(t):void 0)??t.align}function r9(e,o){if(o==="desktop")return e;let t=Fs(e),r=Ap(t),a=_p(t);if(o==="tablet"){let l=e;return r!==void 0&&(l={...l,size:r,sizeUnit:t[gt.sizeTablet]}),a&&(l={...l,align:a}),l}let n=e;if(typeof t.sizePhone=="number"&&t.sizePhone>0)n={...n,size:t.sizePhone,sizeUnit:t[gt.sizePhone]};else{let l=fb(t.sizeToken);l?n={...n,size:void 0,sizeToken:l}:r!==void 0&&(n={...n,size:r,sizeUnit:t[gt.sizeTablet]})}let s=t.alignPhone??a;return s&&(n={...n,align:s}),n}function pb(e,o,t){return mb(r9(e,o),Rp,t)}function ub(e){return n1("size",e)}function u1(e,o){if(o==="desktop")return null;let t=Fs(e);if(o==="mobile"){if(fb(t.sizeToken))return null;let r=Ap(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 m1(e,o){let t=ub(o);if(!$e(e,t))return e;let r={...e};return delete r[t],r}function o0e(e,o,t){let r=pb(m1(e,o),o,t);return{fontFamily:r.fontFamily,fontSize:r.fontSize}}function mb(e,o,t){e=Fs(e);let r=ZV(e,t),a=Si(e),n=e.size?We(e.size,lr(e,"size")):e.sizeToken?d1(e.sizeToken):r?QV(r):"";return{fontFamily:e.font?l9(e.font):e.fontRole?`var(${e1[e.fontRole]})`:r?`var(${e1[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`:"",[on]:e.paragraphSpacing?We(e.paragraphSpacing,lr(e,"paragraphSpacing")):"",textTransform:XV(e.case),textAlign:e.align??"",paddingTop:o1(e.padding,lr(e,"padding")),paddingBottom:o1(e.padding,lr(e,"padding")),color:a9(e.color),fontStyle:e.italic===!0?"italic":e.italic===!1?"normal":""}}var a9=e=>cs(e),o1=(e,o)=>e===void 0?"":We(e,o),tn=(e,o)=>Number(e.toFixed(o));function t0e(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:n9(Number.parseInt(e.fontWeight,10)),lineRatio:Number.isFinite(r)?tn(r/t,3):1.2,letterEm:Number.isFinite(a)?tn(a/t,4):0,align:s9(e.textAlign),case:YV(e.textTransform),paddingPx:Number.isFinite(n)?Math.round(n):0}}function n9(e){return Number.isFinite(e)?EV.reduce((o,t)=>Math.abs(t-e)<Math.abs(o-e)?t:o):400}function s9(e){for(let o of gi)if(o===e)return o;return e==="end"?"right":"left"}function r0e(e,o){let t=t1(e);if(!t)return"";for(let r of $r)if(t1(o(r.cssVar))===t)return r.key;return""}var t1=e=>(e.split(",")[0]??"").replace(/["']/g,"").replace(/\s+/g," ").trim().toLowerCase();function l9(e){let o=Hn(e);return o?`var(${o.cssVar})`:""}function a0e(e,o,t,r){return!o||Ag(o)?.nodeId!==e?null:t.find(a=>r(a.getAttribute("class")))??t[0]??null}function i9(e,o){return As(K(e,o))??{}}function n0e(e,o,t=()=>Rp,r=l=>l,a=f9,n="desktop",s=()=>!1){let l=0;for(let{element:d,partId:c}of e){let f=Ag(c)?.propKey;if(!f)continue;let u=i9(o,r(f)),p=pb(u,n,{blockDrawsStyle:s(f)});rn(u.textStyle)?d.setAttribute?.(Ls,u.textStyle):d.removeAttribute?.(Ls);let h=tb.some(g=>d.style[g]),I=!1;for(let[g,C]of Object.entries(p))m9(d,g,C),C&&(I=!0);if(h||tb.some(g=>p[g]))for(let g of d9(d,a))for(let C of tb)g.style[C]=p[C]??"";I&&(l+=1)}return l}function d9(e,o){let t=Os(e.textContent??""),r=[],a=e;for(let n=0;n<c9&&o(a);n+=1){let s=a.parentElement;if(!s||Os(s.textContent??"")!==t)break;r.push(s),a=s}return r}var c9=8;function f9(e){let o=e;return typeof window>"u"||!o?.ownerDocument?!1:window.getComputedStyle(o).display==="inline"}var Rp={fontKey:"",sizePx:16,weight:400,lineRatio:1,letterEm:0,align:"left",case:"none",paddingPx:0};function p9(e){if(!e||typeof e!="object")return null;let o={};rn(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=gt[t];o[t]!==void 0&&ab(e[r])&&(o[r]=e[r])}return Object.keys(o).length?o:null}function u9(e,o){let t=p9(e);if(!t)return{};let r=pb(t,o);return{...r.fontFamily?{fontFamily:r.fontFamily}:{},...r.fontSize?{fontSize:r.fontSize}:{}}}function h1(e){return rn(e?.textStyle)||!!e?.role||typeof e?.size=="number"&&e.size>0}function s0e(e,o,t){if(!e||typeof e!="object")return{};let r=lc(e.role,o,Wn)??{},a=o.sized?u9(m1(e,t),t):{};return{...r,...a}}function l0e(e,o,t){t.fontFamily&&e.fontFamily===t.fontFamily&&(e.fontFamily=o.fontFamily),t.fontSize&&e.fontSize===t.fontSize&&(e.fontSize=o.fontSize)}function m9(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===on&&(t?a.setAttribute?.(r1,""):a.removeAttribute?.(r1))}var r1="data-sf-part-para",h9=Object.keys(mb({},Rp)),rb=new Set(["color","overflowWrap",on,"fontStyle"]),tb=h9.filter(e=>!rb.has(e));function x1(e,o,t,r=l=>l,a=()=>!1,n=()=>null,s=[]){let l=new Map;for(let u of e){let p=Es(u.key,u.row);for(let h of u.texts){let I=l.get(h);I?(I.keys.add(u.key),I.partKeys.add(p)):l.set(h,{keys:new Set([u.key]),partKeys:new Set([p])})}}let d=new Map;for(let u of new Set([...Object.keys(o),...s])){if(!x9(u))continue;let p=a1(t,u,As(o[u])??{},!1,n(u));p&&d.set(u,p)}let c=u=>{let p=r(u),h=n(p);if(!$e(o,p)&&!h)return null;let I=As(o[p])??{};return a1(t,u,I,a(u),h)},f=new Map;for(let[u,{keys:p,partKeys:h}]of l){let I=h.size===1?[...h][0]:p.size===1?[...p][0]:null;if(!I)continue;let g=c(I);g&&f.set(u,g)}for(let u of e){if(!u.keyed)continue;let p=c(Es(u.key,u.row));p&&d.set(u.key,p)}return f.size||d.size?{rules:f,kindRules:d,drawn:new Set(l.keys())}:null}function a1(e,o,t,r,a){let n=mb(t,Rp,{blockDrawsStyle:r}),s=t9(t),l=o9(t),d=rn(t.textStyle)?t.textStyle:void 0;return!Object.values(n).some(Boolean)&&!Object.keys(s).length&&!Object.keys(l).length&&!d&&!a?null:{stamp:I9(e,o),declarations:n,...Object.keys(s).length?{tablet:s}:{},...Object.keys(l).length?{phone:l}:{},...d?{textStyle:d}:{},...a?{motion:a}:{}}}function x9(e){return e.startsWith("@")}function hb(e,o){return e?.kindRules.get(o)??null}function I9(e,o){let t=r=>r.replace(/[^A-Za-z0-9_-]+/g,"-");return`${t(e)}~${t(o)}`}function xb(e){return e?{tablet:J_,phone:xi}:{tablet:kp,phone:Tp}}function I1(e,{inBox:o=!1}={}){let{tablet:t,phone:r}=xb(o),a=[],n=new Set,s=l=>{let{stamp:d,declarations:c}=l;if(n.has(d))return;n.add(d);let f=Object.entries(c).filter(([,w])=>w!==""),u=w=>w.map(([T,y])=>`${g9(T)}: ${y}`).join("; "),p=`[${nb}="${d}"]`,h=f.filter(([w])=>!rb.has(w)),I=f.filter(([w])=>rb.has(w));h.length&&a.push(`${p}, *:has(> ${p}) { ${u(h)} }`),I.length&&a.push(`${p} { ${u(I)} }`),c[on]&&(a.push(`*:has(> ${p}) { ${on}: ${c[on]} }`),a.push(...Lp(p,`*:has(> ${p})`)));let g=Object.entries(l.tablet??{}).filter(([,w])=>w!=="");g.length&&a.push(`@media ${t} { ${p}, *:has(> ${p}) { ${u(g)} } }`);let C=Object.entries(l.phone??{}).filter(([,w])=>w!=="");C.length&&a.push(`@media ${r} { ${p}, *:has(> ${p}) { ${u(C)} } }`)};for(let l of e.rules.values())s(l);for(let l of e.kindRules.values())s(l);return a.join(`
|
|
3
|
+
`)}function Lp(e,o){let t=`var(${on})`,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 g9=e=>e.replace(/[A-Z]/g,o=>`-${o.toLowerCase()}`);function g1(e,o){if(!e)return null;let t=Os(o),r=e.rules.get(t);if(r)return r;if(t.length<b9||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 b9=8;function b1(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 Ib=e=>e==="sentence"?"none":void 0,C1=["font","color","size","sizeTablet","sizePhone","weight","italic","lineHeight","lineHeightTablet","lineHeightPhone","letterSpacing","letterSpacingTablet","letterSpacingPhone","paragraphSpacing","paragraphSpacingTablet","paragraphSpacingPhone","letterCase","largestSize","largestSizeTablet","largestSizePhone"],Bs=["desktop","tablet","phone"],nn=(e,o)=>we(e,o);function yb(e,o,t,r=$n()){return w1("textSize",o,e.sizeTablet,e.sizePhone,r)[t]}var S9=[["lineSpacing","lineHeight","line"],["letterSpacing","letterSpacing","letter"]];function gb(e){for(let[o,t,r]of S9)for(let a of Bs)if(e===nn(o,a))return{key:we(t,a),view:a,spacing:r};return{key:e,view:"desktop",spacing:null}}function ir(e){let o={};for(let t of C1)e[t]!==void 0&&(o[t]=e[t]);return o}function Sb(e,o){let{auto:t,...r}=e,a=new Set(o??[]),n=C1.filter(s=>a.has(s)&&e.values[s]===void 0);return n.length?{...r,auto:n}:r}function v1(e){let o=e.fonts,t=e.sizes,r=e.typography,a=ik(e.compression),n={"heading-1":{font:Se(o.heading),size:q(t.headingLarge),weight:q(r.weight),lineHeight:a.lineHeight,letterSpacing:a.letterSpacing,letterCase:Ib(r.case),largestSize:q(r.maxPx)},"heading-2":{font:Se(o.heading2),size:q(t.headingMedium),weight:q(r.weight2),lineHeight:a.lineHeight,letterSpacing:a.letterSpacing,letterCase:Ib(r.case2)},"heading-3":{font:Se(o.heading3),size:q(t.headingSmall),weight:q(r.weight3),lineHeight:a.lineHeight,letterSpacing:a.letterSpacing,letterCase:Ib(r.case3)},"body-1":{font:Se(o.body),size:q(t.body)},"body-5":{font:Se(o.label),size:q(t.label)}};return S1().map(({id:s,kind:l,name:d})=>({id:s,kind:l,name:d,values:ir(n[s]??{})}))}function wb(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=>Sb({...o,values:ir(o.values??{})},Array.isArray(o.auto)?o.auto:void 0)):null}function S0e(e){return wb(e)??[]}function k1(e){return wb(e)??S1().map(({id:o,kind:t,name:r})=>({id:o,kind:t,name:r,values:{}}))}function Br(e,o){let t=v1(o),r=wb(e);return r?r.map(a=>{let n={...bb(t,a.id)};for(let s of a.auto??[])delete n[s];return{...a,values:ir({...n,...a.values})}}):t}var bb=(e,o)=>e.find(t=>t.id===o)?.values??{},y1=["heading-1","heading-2","heading-3"];function T1({saved:e,old:o,cur:t,next:r,sizeOf:a,panelView:n="desktop"}){let s=v1(o),l=k1(e),d=Br(l,o),c=[],f=r.map(p=>{let h=t.find(P=>P.id===p.id),I=l.find(P=>P.id===p.id);if(!h||!I){let P=w9([p],a,n)[0],H=P.values.color;return H===void 0?P:{...P,values:{...P.values,color:rt(H)}}}let g={...I.values},C=new Set(I.auto??[]),w=p.values,T=h.values,y=[...new Set([...Object.keys(w),...Object.keys(T)])].filter(P=>JSON.stringify(w[P])!==JSON.stringify(T[P])),b=P=>gb(P).spacing==="letter";y.sort((P,H)=>Number(b(P))-Number(b(H)));for(let P of y){let{key:H,view:E,spacing:W}=gb(P),O=H,D=w[P];if(D===void 0){delete g[O],bb(s,p.id)[O]!==void 0&&(c.push([p.id,O]),C.add(O));continue}if(C.delete(O),W==="line")g[O]=Ds(D/100,3);else if(W==="letter"){let v={...d.find(F=>F.id===p.id)?.values??{}};for(let F of y)w[F]===void 0&&delete v[gb(F).key];let _=ir({...v,...g}),A=yb(_,a({...p,values:_}),E);g[O]=A?Ds(D/A,4):0}else g[O]=D}return Sb({id:p.id,kind:p.kind,name:p.name,values:ir(g)},C)}),u=o.compression;if(c.some(([p,h])=>(h==="lineHeight"||h==="letterSpacing")&&y1.includes(p))&&Ra(u)!=="normal"){for(let p of y1){let h=f.find(g=>g.id===p);if(!h)continue;let I={...h.values};for(let g of["lineHeight","letterSpacing"])c.some(([C,w])=>C===p&&w===g)||I[g]===void 0&&!(h.auto??[]).includes(g)&&(I[g]=bb(s,p)[g]);h.values=ir(I)}u="normal"}return{saved:f,old:{...o,compression:u}}}function P1(e,o){let t={text_styles:e.saved};return e.old.compression!==o.compression&&(t.heading_compression=Ra(e.old.compression)),t}var Ds=(e,o)=>Number(e.toFixed(o)),E1=(e,o)=>Bs.indexOf(e)<Bs.indexOf(o)?o:e;function O1(e,o,t="desktop"){return e.map(r=>{let a={...r.values},n=o(r);for(let s of Bs){let l=we("lineHeight",s),d=r.values[l],c=r.values[we("letterSpacing",s)];delete a[l],d!==void 0&&(a[nn("lineSpacing",s)]=Ds(d*100,1));let f=E1(s,t);c!==void 0&&(a[nn("letterSpacing",s)]=Ds(c*yb(r.values,n,f),f===s?2:4))}return{id:r.id,kind:r.kind,name:r.name,values:a}})}function w9(e,o,t="desktop"){return e.map(r=>{let a=r.values,n={...a};for(let c of Bs)delete n[nn("lineSpacing",c)],delete n[nn("letterSpacing",c)];let s={id:r.id,kind:r.kind,name:r.name,values:ir(n)},l={...s.values},d=o({...s,values:{...s.values}});for(let c of Bs){let f=a[nn("lineSpacing",c)],u=a[nn("letterSpacing",c)];if(typeof f=="number"&&(l[we("lineHeight",c)]=Ds(f/100,3)),typeof u=="number"){let p=yb(s.values,d,E1(c,t));l[we("letterSpacing",c)]=p?Ds(u/p,4):0}}return{...s,values:ir(l)}})}function w0e(e){let o={fonts:wl({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:Mh({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:Ra(e.heading_compression),typography:ck(e)},t=e.text_styles??null,r=Array.isArray(t)?Cb(Br(t,o),o):o;return{fonts:wl(r.fonts),sizes:Mh(r.sizes),compression:Ra(r.compression),typography:r.typography,textStyles:t}}function Cb(e,o){let t=p=>e.find(h=>h.id===p)?.values??{},r=t("heading-1"),a=t("heading-2"),n=t("heading-3"),s=t("body-1"),l=t("body-5"),d=o.fonts,c=o.sizes,f=o.typography,u=p=>p==="none"?"sentence":"authored";return{fonts:{...d,heading:r.font??d.heading,heading2:a.font??r.font??d.heading2,heading3:n.font??r.font??d.heading3,body:s.font??d.body,label:l.font??d.label},sizes:{...c,headingLarge:r.size??null,headingMedium:a.size??null,headingSmall:n.size??null,body:s.size??null,label:l.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 C0e(e){let o=[];for(let t of e){let r=t.values,a=`.${b1(t)}`,n=`[${Ls}="${t.id}"]`,s=`${a}, ${n}`,l=[],d=r.font!==void 0?$r.find(p=>p.key===r.font)?.cssVar:void 0;if(d&&l.push(`font-family: var(${d})`),r.size!==void 0){let p=r.largestSize!==void 0?Math.min(r.size,r.largestSize):r.size;l.push(`font-size: ${p}px`)}let c=cs(r.color);c&&l.push(`color: ${c}`),r.italic===!0&&l.push("font-style: italic"),r.weight!==void 0&&l.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"&&l.push(...f);let u=y9(r.letterCase);u&&t.kind==="body"&&l.push(`text-transform: ${u}`),r.paragraphSpacing&&l.push(`--sf-part-para: ${r.paragraphSpacing}px`),l.length&&o.push(`${s} { ${l.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(...Lp(`:is(${s})`,`*:has(> ${n})`))),o.push(...C9(t,s,a,n))}return o.join(`
|
|
4
|
+
`)}function C9(e,o,t,r){let a=e.values,n=wr("textSize",a.size,a.sizeTablet,a.sizePhone),s=wr("textSize",a.largestSize,a.largestSizeTablet,a.largestSizePhone),l=wr("same",a.lineHeight,a.lineHeightTablet,a.lineHeightPhone),d=wr("same",a.letterSpacing,a.letterSpacingTablet,a.letterSpacingPhone),c=wr("spacing",a.paragraphSpacing,a.paragraphSpacingTablet,a.paragraphSpacingPhone),f=w1("textSize",a.size,a.sizeTablet,a.sizePhone,$n()),u=v9[e.id],p=[];for(let[h,I]of[["tablet",kp],["phone",Tp]]){let g=[],C=[],w=f[h],T=s[h],y=n[h]===void 0&&T===void 0||w===void 0?void 0:T===void 0?w:Math.min(w,T);y!==void 0&&C.push(`font-size: ${y}px`);let b=[];l[h]!==void 0&&b.push(`line-height: ${l[h]}`),d[h]!==void 0&&b.push(`letter-spacing: ${d[h]}em`),e.kind==="body"&&C.push(...b),c[h]!==void 0&&C.push(`--sf-part-para: ${c[h]}px`),C.length&&g.push(`${o} { ${C.join("; ")} }`),e.kind==="heading"&&b.length&&g.push(`${o}, ${t}:is(h1, h2, h3, h4), ${r}:is(h1, h2, h3, h4) { ${b.join("; ")} }`),c[h]!==void 0&&g.push(`*:has(> ${r}) { --sf-part-para: ${c[h]}px }`),c[h]!==void 0&&!a.paragraphSpacing&&g.push(...Lp(`:is(${o})`,`*:has(> ${r})`)),y!==void 0&&u&&g.push(`.sf-themed-content { --size-${u}: ${y}px !important }`),g.length&&p.push(`@media ${I} { ${g.join(" ")} }`)}return p}var v9={"heading-1":"headingLarge","heading-2":"headingMedium","heading-3":"headingSmall","body-1":"body","body-5":"label"};function v0e(e){return e!==!0&&e!==!1?"":`em.text-accent { font-style: ${e?"italic":"normal"} }`}function _1(e){return e?Op[e]:void 0}function vb(e){let o=Si(e);return ir({font:e.font,color:e.color===void 0?void 0:rt(e.color),size:e.size,weight:e.weight,italic:e.italic,lineHeight:o.lineHeight,letterSpacing:o.letterSpacingEm,paragraphSpacing:e.paragraphSpacing,letterCase:e.case})}function A1(e){return Object.keys(vb(e)).length>0}function R1({saved:e,old:o,styleId:t,values:r}){let a=k1(e);return{saved:k9(a,t,r),old:o}}function k9(e,o,t){return e.map(r=>r.id===o?Sb({...r,values:ir({...r.values,...t})},r.auto):r)}var L1=["font","color","size","weight","emphasis","lineSpacing","letterSpacing","paragraphSpacing","letterCase","largestSize"],_9=["size","lineSpacing","letterSpacing","letterCase"],A9=500,kb=$r.map(e=>({value:e.key,label:e.label,family:`var(${e.cssVar})`,italic:e.italicLoaded}));function F1({saved:e,old:o,colours:t,colourNameOf:r,sizeOf:a,onChange:n,openId:s,onOpenChange:l,readOnly:d=!1,withoutSize:c=!1}){let f=O9(),[u,p]=P9(null),h=Br(e,o),I=hc(f),g=O1(h,a,I);return T9(E9,{styles:g,onChange:C=>n(T1({saved:e,old:o,cur:g,next:C,sizeOf:a,panelView:I})),fonts:kb,colours:t,colourNameOf:r,settings:c?L1.filter(C=>C!=="size"):L1,auto:_9,openId:s===void 0?u:s,onOpenChange:l??p,readOnly:d,device:I,fallback:C=>{let w=h.find(y=>y.id===(C.kind==="heading"?"heading-1":"body-1")),T={};return w?.values.font&&C.id!==w.id&&(T.font=w.values.font),C.kind==="heading"&&(T.weight=A9),T}})}var D1=["font","size","weight","emphasis"],F9=500;function B9({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:i("Emphasis"),values:a}}function D9(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 N1(e){let{headingWeight:o,open:t,onOpenChange:r,onChange:a,withoutSize:n=!1}=e,s=B9(e);return B1(L9,{label:i("Emphasis"),children:B1(R9,{style:s,fonts:kb,settings:n?D1.filter(l=>l!=="size"):D1,auto:["size"],fallback:()=>({weight:o??F9}),open:t,onOpenChange:r,onChange:l=>D9(s,l).forEach(a)})})}import{viewKeyAt as z1}from"efficient-easel/draw";import{shownUnitAt as z9,unitKeyOnWrite as $9}from"efficient-easel/screen/lib/content/length-units";import{convertRowLength as N9,rowUnits as M9,unitPickPatch as H9}from"efficient-easel/screen/lib/content/length-units";import{viewKeyAt as W9}from"efficient-easel/draw";var U9=["cornerRadius","siteWidth","siteGutter","siteGutterPhone","blockGap","blockGapPhone"],Fp={cornerRadius:{number:"corner_radius_px",kind:"radius",grid:ak,tier:"desktop"},siteWidth:{number:"site_width",kind:"size",grid:uo,tier:"desktop"},siteGutter:{number:"site_gutter",kind:"spacing",grid:Go,tier:"desktop"},siteGutterPhone:{number:"site_gutter_phone",kind:"spacing",grid:Ht,tier:"mobile"},blockGap:{number:"block_gap",kind:"gap",grid:xt,tier:"desktop"},blockGapPhone:{number:"block_gap_phone",kind:"gap",grid:xt,tier:"mobile"}};function Bp(e){return{number:Fp[e].number,unit:Gv[`${e}Unit`]}}function M1(e,o,t){let r=ke(t),{number:a,unit:n}=Bp(e);return{[a]:o,[n]:o===null||r==="px"?null:r}}function Dp(e,o,t,r){let{kind:a,grid:n,tier:s}=Fp[e],l=ke(t),d=ke(r);return l===d?o:N9(o,l,d,s,{kind:a},n)}function H1(e,o,t,r){let{number:a,unit:n}=Bp(e),s=H9({[a]:o},l=>Dp(e,l,t,r),n,ke(r),"px");return{[a]:s[a],[n]:s[n]??null}}function W1(e,o){let{kind:t,grid:r}=Fp[e];return $v(t,ke(o),r)}function U1(e){return M9({kind:Fp[e].kind},qa)}function Tb(e,o){let t=W9(e,o);if(!U9.includes(t))throw new Error(`no site length row ${t}`);return t}function wi(e,o,t,r,a){let{siteLengthUnits:n,setSiteLengthUnits:s}=he(),l=`${e}Unit`,d=n[l],c=z9({n:a?.figure??null,u:a?.unit??null,[z1("n","mobile")]:o,[z1("u","mobile")]:d??null},{n:"n"},"u","mobile"),f=I=>s({[l]:I==="px"?null:I}),u=I=>{t(I);let g=$9(l,d,c,"px",I===null);l in g&&f(g[l]==null?null:ke(g[l])),r(M1(e,I,c),I===null)},p=I=>{let g=ke(I);if(g===c||(f(g),o===null))return;let C=H1(e,o,c,g);t(C[Bp(e).number]),r(C,!0)},h=a?a.unit===c?a.figure:Dp(e,a.figure,a.unit,c):null;return{length:{unit:c,grid:W1(e,c),units:{options:U1(e),onChange:p,label:i("Unit")}},write:u,rest:h,shown:I=>Dp(e,I,"px",c)}}import{EmptyState as mq,SliderGroup as hq,Tabs as xq,Tooltip as cOe,tabButtonId as Iq,tabPanelId as gq}from"efficient-shell/ui";import{ContrastIcon as bq,SettingsIcon as yq,TypeIcon as Sq}from"efficient-easel/icons";function $1(e){switch(e.status){case"saved":return null;case"failed":return{msg:i("Not saved. Try again."),tone:"error"};case"skipped":switch(e.reason){case"empty":return null;case"no-token":return{msg:i("Not saved. Reload the page."),tone:"error"};case"template":return{msg:i("Templates keep their look. Press Done."),tone:"success"}}}}import{jsx as _b}from"react/jsx-runtime";import{ListIcon as tq,PaddingTopIcon as rq}from"efficient-easel/icons";import{jsx as Np}from"react/jsx-runtime";import{SettingsDefaultReset as G9,SettingsField as j9,SettingsSegmented as K9}from"efficient-easel/panel";import{WidthIcon as V9}from"efficient-easel/icons";function G1({value:e,resolved:o,onChange:t,label:r="Width",labelId:a,followsLabel:n,hint:s}){let l=e===void 0,d=l?o:e,c=i(r);return Np(j9,{label:c,labelId:a,icon:Np(V9,{}),value:l?n:void 0,changed:!l,action:Np(G9,{words:de()?.panel,label:c,changed:!l,onReset:()=>t(void 0)}),hint:s,children:Np(K9,{options:[{label:i(Va.full),id:"full"},{label:i(Va.page),id:"content"}],value:d,ariaLabel:c,onChange:t})})}import{HEADER_TYPE as Pb,FOOTER_TYPE as q9}from"efficient-easel/draw";var Y9=new Set(["Hero","HeroSingle","IntroBleed"]),j1={min:56,max:140,default:88},dEe={min:0,max:120,step:2,default:32},cEe=`var(--sf-header-h, ${j1.default}px)`,X9="--sf-header-set-h",fEe="--sf-header-h",pEe=`var(${X9}, ${j1.default}px)`,uEe="sf-header-clearance",mEe="sf-sticky-underheader";function Z9(e){return e?.find(o=>o?.type&&o.type!==Pb)??null}function K1(e){let o=Z9(e)?.type;return!o||!Y9.has(o)}function hEe(e){return!K1(e)}function xEe(e){return!!e?.some(o=>o?.type===Pb)}function IEe(e){return!e||e.length===0?!1:!e.some(o=>o?.type===Pb||o?.type===q9)}var J9=["auto","shared","own"],Eb="auto",Q9="topSpace",gEe="data-top-space";function eq(e){return J9.includes(e)?e:Eb}function oq(e,o){let t=eq(e?.props?.[Q9]);return t==="own"?!0:t==="shared"?!1:K1(o)}function bEe(e,o){return oq(e,o)?"own":null}function aq(){return{type:"custom",render:({value:e,onChange:o})=>_b(G1,{value:e==="full"?"full":e==="content"?"content":void 0,resolved:"content",label:"Page width",followsLabel:i("Follows the site"),hint:i("Whether this page sits on the site's content column, or runs edge to edge."),onChange:t=>o(t)})}}var nq=[{label:"Auto",value:"auto"},{label:"Shared",value:"shared"},{label:"Its own",value:"own"}],_Ee={pageBackground:$O(),topSpace:st("Top space",_b(rq,{}),nq,Eb),widthChoice:aq()},Ci=["pageBackground","topSpace","widthChoice"],sq="Record type",Ob=new Map,V1=-1;function lq(e){V1!==bx()&&(Ob.clear(),V1=bx());let o=gx(),t=o.some(a=>a.key===e)?"":e,r=Ob.get(t);return r||(r=st(sq,_b(tq,{}),[...o.map(a=>({label:a.label,value:a.key})),...t?[{label:t,value:t}]:[]],Zr),Ob.set(t,r)),r}var q1=new WeakMap;function AEe(e,o){if(!Nl()||gx().length<2||Mc in e)return e;let t=lq(Dl(o)),r=q1.get(e);if(r&&r.row===t)return r.fields;let a={[Mc]:t,...e};return q1.set(e,{row:t,fields:a}),a}import{previewFrame as wq}from"efficient-easel/screen/lib/document/preview-dom";var Y1="background";function X1(e){let o=Vo(Yn(e));return fs({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 Z1(e){return X1(e).filter(o=>o.key!==Y1)}function J1(e){let o=X1(e).filter(t=>t.key===Y1);return t=>{let r=rt(t);return o.find(a=>a.key===r)?.value??r}}import{useEasel as iq}from"efficient-easel/easel";function Mp({themeFromDocument:e,persist:o}){let{appState:t,dispatch:r}=iq(E=>E),{fonts:a,setFonts:n,sizes:s,setSizes:l,headingCompression:d,setHeadingCompression:c,headingTypography:f,setHeadingTypography:u,textStyles:p,setTextStyles:h}=he(),I=t.data,g=I.root?.props??{},C=e?wl(g.fonts):a,w=e?tk:s,T=e?Ra(g.headingCompression):d,y=e?dk(g.headingTypography):f,b={fonts:C,sizes:w,compression:T,typography:y},P=e?g.textStyles:p,H=E=>r({type:"replaceRoot",root:{...I.root,props:{...g,...E}},recordHistory:!0});return{fonts:C,sizes:w,compression:T,typography:y,old:b,saved:P,write:(E,W)=>{let O=Cb(Br(E.saved,E.old),E.old);e?H({textStyles:E.saved,fonts:O.fonts,headingCompression:O.compression,headingTypography:O.typography}):(h(E.saved),n(O.fonts),l(O.sizes),c(O.compression),u(O.typography)),o(P1(E,b),W)},writeRoot:H}}import{pictureShadowColor as Cq}from"efficient-easel/screen/lib/document/shadow-values";var Rb="sf-site-styles",vq="sf-site-styles-tabpanel",oA="text",Hs="basics",Q1="this-page-group",Ns=[{id:Hs,label:"Basics",icon:ve(yq,{})},{id:"theme",label:"Theme",icon:ve(bq,{})},{id:"text",label:"Text",icon:ve(Sq,{})}];function kq({themeFromDocument:e,persist:o}){let{appState:t,dispatch:r}=eA(c=>c),{theme:a,setTheme:n}=he(),s=t.data,l=s.root?.props??{},d=c=>{if(e){let f={...l,theme:c};r({type:"replaceRoot",root:{...s.root,props:f},recordHistory:!0})}else n(c);o({selected_preset:c.selected,theme_presets:c.themes})};return ve(__,{value:e?l.theme:a,onChange:d})}function Tq({themeFromDocument:e,persist:o}){let[t,r]=Lb(null),{theme:a,setFonts:n,setSizes:s,setHeadingTypography:l}=he(),d=Mp({themeFromDocument:e,persist:o}),{old:c,saved:f,writeRoot:u}=d,p=d.fonts,h=d.sizes,I=d.typography,g=E=>E.values.size??_q(Pq[E.id]??"body")??Eq[E.kind],C=E=>d.write(E),w=Z1(a),T=J1(a),y=E=>{let W={...p,accent:E};e?u({fonts:W}):n(W),o({accent_font:E})},b=E=>{s({...h,accent:E}),o({accent_size_px:E})},P=E=>{let W={...I,weightStrong:E};e?u({headingTypography:W}):l(W),o({heading_weight_strong:E})},H=E=>{let W={...I,italicStrong:E};e?u({headingTypography:W}):l(W),o({accent_italic:E})};return sn(Ms,{children:[ve(F1,{saved:f,old:c,colours:w,colourNameOf:T,sizeOf:g,onChange:C,openId:t===Ab?null:t,onOpenChange:r,withoutSize:e}),ve(N1,{font:p.accent,size:h.accent,weight:I.weightStrong,italic:I.italicStrong,headingWeight:I.weight,open:t===Ab,onOpenChange:E=>r(E?Ab:null),onChange:E=>{E.key==="font"?y(E.value):E.key==="size"?b(E.value):E.key==="weight"?P(E.value):H(E.value)},withoutSize:e})]})}var Ab="accent",Pq={"heading-1":"heading","heading-2":"heading2","heading-3":"heading3","body-1":"body","body-5":"label"},Eq={heading:32,body:14},Oq={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 _q(e){if(typeof document>"u")return null;let o=(wq()?.contentDocument??document).querySelector(Oq[e]);if(!o)return null;let t=parseFloat(getComputedStyle(o).fontSize);return Number.isFinite(t)?t:null}function Aq({themeFromDocument:e,persist:o}){let{appState:t,dispatch:r}=eA(p=>p),{cornerRadiusPx:a,setCornerRadiusPx:n}=he(),s=t.data,l=s.root?.props??{},d=l.cornerRadiusPx===void 0?nk[rk(l.cornerStyle)]:Jt(l.cornerRadiusPx),c=e?d:a,f=wi("cornerRadius",a,n,o),u=p=>r({type:"replaceRoot",root:{...s.root,props:{...l,...p}},recordHistory:!0});return ve(A_,{value:c,onChange:p=>{e?(u({cornerRadiusPx:p}),o({corner_radius_px:p})):f.write(p)},...e?{}:{length:f.length}})}function Rq({persist:e}){let{siteWidth:o,setSiteWidth:t,sectionBackgroundWidth:r,setSectionBackgroundWidth:a,sectionContentWidth:n,setSectionContentWidth:s}=he(),l=Fb(),d=wi("siteWidth",o??null,t,e);if(l!=="desktop")return null;let c=typeof o=="number"?o:d.shown(uo.default),f=d.write,u=h=>{a(h),e({section_background_width:h},!0)},p=h=>{s(h),e({section_content_width:h},!0)};return sn(Ms,{children:[ve(q_,{value:r??"full",changed:r!==null,detail:i("Full width"),onChange:u,onReset:()=>u(null),hint:K_}),ve(Y_,{mode:n??"content",px:c,min:uo.min,max:uo.max,changed:typeof o=="number"||n!==null,detail:`${i("Content width")} ${uo.default}px`,onMode:p,onPx:h=>f(h),onReset:()=>{p(null),f(null)},hint:V_,length:d.length})]})}function Lq({persist:e}){let{siteGutter:o,siteGutterPhone:t,setSiteGutter:r,setSiteGutterPhone:a,siteLengthUnits:n}=he(),s=G_(Fb(),{gutter:o,phone:t,gutterUnit:n.siteGutterUnit}),l=s?.key==="site_gutter_phone",d=wi(Tb("siteGutter",l?"mobile":"desktop"),s?.value??null,l?a:r,e);return s?ve(j_,{value:s.value,onChange:d.write,unsetPx:s.unsetPx,restsOn:d.shown(s.unsetPx),bounds:s.bounds,length:d.length}):null}function Fq({persist:e}){let{blockGap:o,blockGapPhone:t,setBlockGap:r,setBlockGapPhone:a,siteLengthUnits:n}=he(),s=N_(Fb(),{gap:o,phone:t}),l=s?.key==="block_gap_phone",d=s?.followsPx==null?null:{figure:s.followsPx,unit:ke(n.blockGapUnit)},c=wi(Tb("blockGap",l?"mobile":"desktop"),s?.value??null,l?a:r,e,d);return s?ve(M_,{value:s.value,onChange:c.write,followsPx:c.rest,followsUnit:c.length.unit,length:c.length}):null}function Bq({persist:e}){return sn(Ms,{children:[ve(Rq,{persist:e}),ve(Lq,{persist:e}),ve(Fq,{persist:e})]})}function Dq(e){return{card_shadow:e}}function Nq(e){return e===null?{shadow_color:null}:{shadow_color:Cq(e)}}function Mq(e){return{hover_effect:e}}function Hq({persist:e}){let{cardShadow:o,setCardShadow:t,shadowColor:r,setShadowColor:a,hoverEffect:n,setHoverEffect:s}=he();return sn(Ms,{children:[ve(R_,{value:o,onChange:l=>{t(l),e(Dq(l),!0)}}),ve(B_,{value:r,onChange:l=>{a(l),e(Nq(l),l===null)}}),ve(H_,{value:n,onChange:l=>{s(l),e(Mq(l),!0)}})]})}function Wq(e){return{photography_grayscale:e}}function Uq({persist:e}){let{photographyGrayscale:o,setPhotographyGrayscale:t}=he();return ve(U_,{value:o,onChange:r=>{t(r),e(Wq(r),!0)}})}function zq({persist:e}){return ve(Ms,{children:ve(Uq,{persist:e})})}function $q(e){return{share_button_on_posts:e}}function Gq({persist:e}){let{shareButtonOnPosts:o,setShareButtonOnPosts:t}=he();return ve(z_,{value:o,onChange:r=>{t(r),e($q(r),!0)}})}function Ws(){let{websiteName:e}=he();return e?.trim()||Uk}function Hp({themeFromDocument:e=!1,tokenRef:o,siteId:t,onNotify:r,tab:a,onTabChange:n,initialTab:s,revealPageGroup:l=!1,onPageGroupRevealed:d}){let{persist:c}=hs({themeFromDocument:e,tokenRef:o,siteId:t,onResult:C=>{let w=$1(C);w&&r?.(w.msg,w.tone)}}),[f,u]=Lb(s??Ns[0].id),p=a!==void 0,h=p?a:f,I=p?n??(()=>{}):u,g=Ns.find(C=>C.id===h)??Ns[0];return sn(hq,{children:[ve(Vq,{activeId:g.id,onSelect:I}),sn("div",{id:gq(Rb,g.id),className:vq,role:"tabpanel","aria-labelledby":Iq(Rb,g.id),children:[h===Hs&&sn(Ms,{children:[ve(Aq,{themeFromDocument:e,persist:c}),!e&&ve(Hq,{persist:c}),!e&&ve(Bq,{persist:c}),!e&&ve(zq,{persist:c}),!e&&ve(Gq,{persist:c}),ve(jq,{reveal:l,onRevealed:d})]}),h==="theme"&&ve(kq,{themeFromDocument:e,persist:c}),h==="text"&&ve(Tq,{themeFromDocument:e,persist:c})]})]})}function jq({reveal:e,onRevealed:o}){let[t,r]=Lb(!0),a=uq(o);return a.current=o,pq(()=>{if(!e)return;r(!0);let n=requestAnimationFrame(()=>{document.getElementById(Q1)?.scrollIntoView({block:"start"}),a.current?.()});return()=>cancelAnimationFrame(n)},[e]),ve(fq,{title:i("This page"),open:t,onToggle:r,id:Q1,children:ve(Kq,{})})}function Kq(){let{fields:e,values:o,readOnly:t,onChange:r}=dq(),a=Object.fromEntries(Ci.filter(n=>n in e).map(n=>[n,e[n]]));return Object.keys(a).length===0?ve(mq,{variant:"none",icon:!1,message:i("This page has no look of its own to set.")}):ve(cq,{fields:a,values:o,onChange:r,readOnly:t,tabs:!1,idPrefix:"this-page",ariaLabel:i("This page")})}function Vq({activeId:e,onSelect:o}){return ve("div",{className:"es-insp-tabs",children:ve(xq,{variant:"underline",block:!0,labelsFit:!0,"aria-label":i("Styles"),idPrefix:Rb,value:e,onChange:o,items:Ns.map(t=>{let r=i(t.label);return{id:t.id,icon:t.icon,label:r}})})})}import{InspectorIconButton as rY}from"efficient-easel/chrome";import{Button as dA,Dialog as aY,FormField as nY,Input as cA,PopupMenu as sY,PopupMenuItem as fA,toast as pA}from"efficient-shell/ui";import{LayersTree as lY,TreeGroupLabel as iY,TreeRow as uA,TreeRowAction as $p}from"efficient-easel/tree";import{AddIcon as dY,DuplicateIcon as cY,PageIcon as fY,SettingsIcon as pY}from"efficient-easel/icons";import{PagesIcon as uY}from"efficient-easel/rail";import{useEaselHost as mY}from"efficient-easel/screen/lib/host";import{useEaselSession as IA}from"efficient-easel/screen/lib/session-context";import{useCallback as Wp,useEffect as qq,useSyncExternalStore as Yq}from"react";import{useScreenDocument as nA}from"efficient-easel/screen/components/ScreenDocumentContext";var tA=new WeakMap;function vi(e){let o=tA.get(e);return o||(o={rows:null,loading:null,listeners:new Set},tA.set(e,o)),o}function Bb(e,o){e.rows=o;for(let t of e.listeners)t()}var Up=new Set;function zp(e,o){o?Up.add(e):Up.delete(e)}function rA(e){let o=vi(e),t=e.listPages().then(r=>Bb(o,Up.size?r.filter(a=>!Up.has(a.id)):r),()=>Bb(o,[])).finally(()=>{o.loading===t&&(o.loading=null)});return o.loading=t,t}var aA=()=>null,Xq=()=>()=>{};function ki(){let{adapter:e,ready:o}=nA(),t=Wp(l=>{let{listeners:d}=vi(e);return d.add(l),()=>d.delete(l)},[e]),r=Wp(()=>vi(e).rows,[e]),a=Yq(o?t:Xq,o?r:aA,aA);qq(()=>{if(!o)return;let l=vi(e);l.rows===null&&!l.loading&&rA(e)},[e,o]);let n=Wp(()=>o?rA(e):Promise.resolve(),[e,o]),s=Wp(l=>Bb(vi(e),l),[e]);return{rows:a,reload:n,setRows:s,getRows:r}}function Zq(e,o){return e?.find(t=>t.slug===o)?.label?.trim()||`/${o}`}function sA(){let{currentSlug:e}=nA(),{rows:o}=ki();return Zq(o,e)}import{canDuplicatePage as hY,DuplicatePageDialog as xY,uniqueSlug as mA}from"efficient-easel/page-copy";var hA="sf-editor-pages-collapsed-groups";function IY(){let e=IA(),{siteId:o,templateId:t}=xA(),r=to(e).pages;if(!(!r.duplicate||t))return(a,n)=>r.duplicate(a.id,{...n,...o?{siteId:o}:{}})}function gA({onNavigate:e,onClose:o,activeSurface:t,onPreviewSurface:r}){let a=IA().chrome?.pageRows,n=mY(),{adapter:s,capabilities:l,ready:d,currentSlug:c}=xA(),f=Ws(),{rows:u,reload:p,setRows:h,getRows:I}=ki(),[g,C]=da(""),[w,T]=da(!1),[y,b]=da(null),[P,H]=da(!1),[E,W]=da(""),O=eY(),D=IY(),[v,_]=da(null),[A,F]=da(()=>{if(typeof window>"u")return new Set;try{let M=window.localStorage.getItem(hA);return new Set(M?JSON.parse(M):[])}catch{return new Set}});Qq(()=>{try{window.localStorage.setItem(hA,JSON.stringify([...A]))}catch{}},[A]);let z=M=>F(Le=>{let ye=new Set(Le);return ye.has(M)?ye.delete(M):ye.add(M),ye}),$=iA(()=>jT(u??[]),[u]),X=g.trim().toLowerCase(),ee=M=>!X||M.toLowerCase().includes(X),Fe=M=>X?!0:!A.has(M),Oe=iA(()=>new Set((u??[]).map(M=>M.slug)),[u]),ze=()=>{if(l.pageCreationInAdminForm){n.send("storefront-editor:new-page");return}W(""),b(null),H(!0)},Ke=async()=>{let M=E.trim();if(!(!M||!d||w||!s.createPage)){T(!0),b(null);try{let Le=await s.createPage({slug:mA(M,Oe),title:M,layout:{}});await p(),H(!1),W(""),e(Le.slug)}catch{b(i("Couldn\u2019t add the page \u2014 please retry."))}finally{T(!1)}}},be=l.hasSiteSettings&&!!s.createPage,Te=async()=>{if(!(!d||w||!s.createPage)){T(!0),b(null);try{let M=await s.createPage(K0(i("New popup"),Oe));await p(),e(M.slug)}catch{b(i("Couldn\u2019t add the popup \u2014 please retry."))}finally{T(!1)}}},_e=oY(null),[Ne,ao]=da(null),yo=()=>{if(!be)return ze();if(Ne)return ao(null);let M=_e.current?.getBoundingClientRect();M&&ao({top:M.bottom+6,right:Math.max(8,window.innerWidth-M.right)})},ie=M=>{let Le=u??[],ye=s.deletePage;if(!d||w||!ye||Le.length<=1)return;let po=Le.findIndex(Ze=>Ze.id===M.id),Be=Le.filter(Ze=>Ze.id!==M.id),_t=M.slug===c;zp(M.id,!0),h(Be),b(null),_t&&Be[0]&&e(Be[0].slug);let hr=()=>{zp(M.id,!1);let Ze=I()??[];if(Ze.some(ya=>ya.id===M.id))return;let xr=[...Ze];xr.splice(Math.max(0,Math.min(po,xr.length)),0,M),h(xr)};pA.undoable(i("Deleted \u201C{name}\u201D",{name:M.label}),{actionLabel:i("Undo"),commit:async Ze=>{await ye(M.id,Ze),zp(M.id,!1)},undo:()=>{hr(),_t&&e(M.slug)},onFail:()=>{hr(),pA.error(i("Couldn\u2019t delete the page \u2014 please retry."))}})},Me=M=>n.send("storefront-editor:open-page",{slug:M}),Ve=M=>{if(!ee(M.label))return null;let Le=!t&&M.slug===c,ye=l.canDeletePagesInline&&(u??[]).length>1,po=Ba(M),Be=GT(M),_t=[...po?[{label:i("Dynamic"),tone:"info"}]:[],...Be?[{label:i("Lightbox"),tone:"success"}]:[],...M.draft?[{label:i("draft"),tone:"draft"}]:[]],hr=_t.length>0?_t:void 0,Ze=!!D&&hY(M),xr=Ze||l.pageCreationInAdminForm||ye?Ti(lA,{children:[Ze&&Pe($p,{kind:"plain",label:i("Duplicate \u201C{name}\u201D",{name:M.label}),disabled:w,onClick:()=>_(M),children:Pe(cY,{size:13})}),l.pageCreationInAdminForm&&Pe($p,{kind:"plain",label:i("Page settings for \u201C{name}\u201D",{name:M.label}),onClick:()=>Me(M.slug),children:Pe(pY,{size:13})}),ye&&Pe($p,{kind:"delete",label:i("Delete \u201C{name}\u201D",{name:M.label}),disabled:w,onClick:()=>ie(M),children:Pe(Db,{name:"trash",size:13,strokeWidth:1.7,rounded:!0})})]}):void 0;return Pe(uA,{icon:Pe(fY,{size:14}),name:M.label,selected:Le,onSelect:()=>e(M.slug),badge:hr,actions:xr,rowProps:{"data-page-slug":M.slug}},M.id)},J=(M,Le,ye)=>{let po=ye.filter(Boolean);if(po.length===0)return null;let Be=Fe(M);return Ti(Jq,{children:[Pe(iY,{count:po.length,countLabel:Uo("{n} page","{n} pages",po.length),expanded:Be,onToggle:()=>z(M),children:Le}),Be&&po]},M)},Ae=(a?.rows??[]).filter(M=>ee(M.label)).map(M=>{let Le=t===M.key;return Pe(uA,{icon:M.icon,name:M.label,selected:Le,onSelect:()=>r(M.key),badge:{label:i("Preview"),tone:"warning"},actions:Pe($p,{kind:"plain",label:i("Open the {name} in a new tab",{name:M.label}),onClick:()=>window.open(M.href,"_blank","noopener,noreferrer"),children:Pe(Db,{name:"external-link",size:13,strokeWidth:1.7,rounded:!0})}),rowProps:{"data-shop-surface":M.key}},M.key)}),ft=l.hasSiteSettings&&!!a,fo=(()=>{if(u===null)return null;let M=[],Le=!1;for(let ye of $){ft&&!Le&&ye.key.startsWith("system:")&&(M.push(J("shop",a.title,Ae)),Le=!0);let po=ye.key===wx||ye.label===Sx?i(ye.label):ye.label;M.push(J(ye.key,po,ye.rows.map(Ve)))}return ft&&!Le&&M.push(J("shop",a.title,Ae)),M})();return Ti("div",{className:"sf-pages",children:[Pe(tY,{icon:Pe(uY,{}),title:i("Pages"),context:f,actions:Pe(rY,{buttonRef:_e,label:be?i("Add"):i("New page"),hasPopup:be?"menu":void 0,expanded:be?Ne!==null:void 0,onClick:yo,children:Pe(dY,{size:15})})}),Ne&&Pe(sY,{portal:!0,style:{top:Ne.top,right:Ne.right},onClose:()=>ao(null),children:Ti("div",{role:"menu","aria-label":i("Add"),children:[Pe(fA,{role:"menuitem",onClick:()=>{ao(null),ze()},children:i("Page")}),Pe(fA,{role:"menuitem",disabled:w,onClick:()=>{ao(null),Te()},children:i("Popup")})]})}),Pe("div",{className:"sf-pages-find",children:Pe(cA,{type:"search",leftIcon:Pe(Db,{name:"search",size:14,rounded:!0}),placeholder:i("Search all pages\u2026"),value:g,onChange:M=>C(M.target.value),"aria-label":i("Search all pages")})}),y&&!P&&Pe("div",{className:"sf-note sf-note--error",role:"alert",children:y}),fo===null?Pe("div",{className:"sf-note",children:i("Loading\u2026")}):fo.some(Boolean)?Pe(lY,{ariaLabel:i("Pages"),className:"sf-scroll",children:fo}):Pe("div",{className:"sf-note",children:g.trim()?i("No pages match your search"):i("No pages yet. Add one with + above.")}),D&&v&&Pe(xY,{source:{title:v.label,slug:v.slug},taken:Oe,host:vc(),duplicate:M=>D(v,M),onClose:()=>_(null),onDuplicated:M=>{_(null),p(),e(M.slug)}},v.id),Pe(aY,{open:P,onClose:()=>H(!1),size:"sm",title:i("Add a page"),description:i("Give the new template page a name. It starts blank \u2014 add sections once it opens."),footer:Ti(lA,{children:[Pe(dA,{variant:"secondary",onClick:()=>H(!1),children:i("Cancel")}),Pe(dA,{onClick:()=>{Ke()},disabled:w||!E.trim(),loading:w,children:i("Add page")})]}),children:Pe(nY,{label:i("Page name"),htmlFor:O,hint:E.trim()?i("URL: /{slug}",{slug:mA(E,Oe)}):void 0,error:y??void 0,children:Pe(cA,{id:O,value:E,invalid:!!y,onChange:M=>W(M.target.value),onKeyDown:M=>{M.key==="Enter"&&Ke()},placeholder:i("e.g. About")})})})]})}import{jsx as SA}from"react/jsx-runtime";import{createContext as bY,useCallback as yY,useContext as SY,useMemo as wY,useState as CY}from"react";import{CanvasChromeContext as vY}from"efficient-easel/easel";import{useSelectHandler as kY}from"efficient-easel/draw/client";import{parseHexColor as gY}from"efficient-shell/format";var Gp=["chat-bubble-left-right","chat-bubble-oval-left-ellipsis","chat","megaphone","phone","sparkles"],Us=Gp[0];var ln="right";function jp(e){return Gp.includes(e??"")?e:Us}function bA(e){return e==="left"?"left":ln}function yA(e){return e&&gY(e)===e.toLowerCase()?e.toLowerCase():""}var wA="chat",Kp={enabled:!0,title:"",subtitle:"",greeting:"",launcherColor:"",launcherIcon:"",launcherPosition:ln,launcherLabel:"",showOnPhones:!0};function t_e(e){return{enabled:e.enabled,title:e.title,subtitle:e.subtitle,greeting:e.greeting,launcherColor:yA(e.launcherColor),launcherIcon:e.launcherIcon?jp(e.launcherIcon):"",launcherPosition:bA(e.launcherPosition),launcherLabel:e.launcherLabel??"",showOnPhones:e.showOnPhones!==!1}}var CA=bY({chat:Kp,setChat:()=>{},setSelected:()=>{},setSelectHandler:()=>{}});function r_e({children:e,chat:o=Kp,onChatChange:t}){let[r,a]=CY(!1),n=yY(c=>t?.(c),[t]),{select:s,setSelectHandler:l}=kY(),d=wY(()=>({selected:()=>r?wA:null,select:c=>c===wA&&s()}),[r,s]);return SA(CA.Provider,{value:{chat:o,setChat:n,setSelected:a,setSelectHandler:l},children:SA(vY.Provider,{value:d,children:e})})}var Vp=()=>SY(CA);import{jsx as Nb}from"react/jsx-runtime";import{DesktopIcon as TY,PhoneIcon as PY,TabletIcon as EY}from"efficient-easel/icons";import{VIEW_TIERS as OY,VIEW_TIER_LABEL as _Y}from"efficient-easel/draw";var AY={desktop:Nb(TY,{}),tablet:Nb(EY,{}),mobile:Nb(PY,{})},vA=OY.map(e=>({id:e,get label(){return i(_Y[e])},icon:AY[e]}));import{PreviewDeviceContext as Dfe}from"efficient-easel/draw/client";import{jsx as RY}from"react/jsx-runtime";import{createContext as LY,useCallback as kA,useContext as FY,useMemo as BY,useRef as DY}from"react";var NY=Object.fromEntries(Pc.map(e=>[e,{value:"",error:null}])),TA=LY({links:$k,rows:NY,canSave:!1,saveLink:async()=>({ok:!1,error:"There is no website to save to."}),openPanel:()=>{},setOpenHandler:()=>{}});function u_e({children:e,value:o}){let t=DY(()=>{}),r=kA(()=>t.current(),[]),a=kA(s=>{t.current=s},[]),n=BY(()=>({...o,openPanel:r,setOpenHandler:a}),[o,r,a]);return RY(TA.Provider,{value:n,children:e})}var Pi=()=>FY(TA);import{jsx as MY}from"react/jsx-runtime";import{createContext as HY,useContext as WY,useMemo as UY,useState as zY}from"react";var PA=HY(null);function I_e({children:e}){let[o,t]=zY(null),r=UY(()=>({surface:o,setSurface:t}),[o]);return MY(PA.Provider,{value:r,children:e})}function EA(){return WY(PA)??{surface:null,setSurface:()=>{}}}import{createPreviewSelectionContext as $Y}from"efficient-easel/draw/client";var Ei="Scrolling Bar",{Provider:y_e,useSelection:OA}=$Y("selectedHeroId"),S_e="data-sf-hero-ticker";function w_e(e){return`${e}::ticker`}function C_e(e){return!e||!e.endsWith("::ticker")?null:e.slice(0,-8)||null}var _A=["","","","","",""],AA="#ticker",Oi="strip",Mb={sectionAccent:Qt,line:!1};function GY(e){return(Array.isArray(e.tickerItems)?e.tickerItems:[]).map(o=>typeof o?.text=="string"?o.text:"").filter(o=>o.trim()!=="")}function Hb(e){return GY(e).length>0}function T_e(e){return e.showTicker!==!1&&Hb(e)}import{createPreviewSelectionContext as jY}from"efficient-easel/draw/client";var{Provider:O_e,useSelection:qp}=jY("selectedHeroPart");var LA=["one","side","stacked"];var A_e={one:"One",side:"Side by side",stacked:"Stacked"};function Yp(e){return LA.includes(e)?e:"one"}function RA(e){return e==="one"?1:2}function Wb(e,o){if(LA.includes(e))return e;let t=Yp(o);return t==="side"?"stacked":t}function _i(e){let o=Yp(e.mediaLayout);return Math.max(RA(o),RA(Wb(e.mediaLayoutPhone,o)))}var dn=["media","image","image2"],cn={media:"Media",image:"Image",image2:"Image 2"},Ai={media:"heroMedia",image:"heroImage",image2:"heroImage2"};function Xp(e,o){return e==="image"&&_i(o)>1?"Image 1":cn[e]}var B_e="Video file",D_e="Upload a video file",N_e="AV1 file",M_e="Upload an AV1 file";function KY(e,o){return{field:"mediaType",is:e,default:o}}var VY=new Set(["HeroSingle"]),FA="heroPart";function qY(e,o){return{...o,[FA]:e}}function H_e(e,{parts:o={},onlyFor:t,fallback:r,rules:a}){let n={...e};for(let s of["image","video"])for(let l of t[s])n[l]=oo(n[l],KY(s,r));for(let[s,l]of Object.entries(a??{}))l&&(n[s]=oo(n[s],l));for(let s of dn)for(let l of o[s]??[])n[l]=qY(s,n[l]);return n}function YY(e){let o=e?.[FA];return dn.includes(o)?o:null}function BA(e,o){let t={};for(let[r,a]of Object.entries(e))YY(a)===o&&(t[r]=a);return t}function DA(e){if(!VY.has(e.type))return[];let o=[{part:"media",label:cn.media,depth:0}];return(e.props.mediaType??"image")!=="video"&&(o.push({part:"image",label:Xp("image",e.props),depth:1}),_i(e.props)>1&&o.push({part:"image2",label:Xp("image2",e.props),depth:1})),o}function Ri(e,o){return`${e}::${o}`}function NA(e){if(!e)return null;let o=e.lastIndexOf("::");if(o<=0)return null;let t=e.slice(o+2);return dn.includes(t)?{nodeId:e.slice(0,o),part:t}:null}var MA="data-sf-hero-part";import{jsx as Ee,jsxs as Ia,Fragment as oM}from"react/jsx-runtime";import{useEasel as cle,useRootFields as fle}from"efficient-easel/easel";import{Button as ple,EmptyState as ule}from"efficient-shell/ui";function HA({kind:e,pageName:o}){return{name:o?.trim()||i("This page"),kindLabel:Ba({kind:e})?i("Template"):i("Page")}}import{headWords as nM,InspectorHead as mle,InspectorIconButton as tM}from"efficient-easel/chrome";import{DuplicateIcon as hle,TrashIcon as xle}from"efficient-easel/icons";import{panelFieldsOf as Ile}from"efficient-easel/screen/lib/document/panel-fields";import{jsx as N,Fragment as xe,jsxs as ge}from"react/jsx-runtime";import{BlockBannerIcon as JY,BlockBoxIcon as QY,BlockButtonIcon as eX,BlockDividerIcon as UA,BlockFooterIcon as zA,BlockHeadingIcon as oX,BlockProductIcon as tX,BlockSocialIcon as rX,BlockTextIcon as aX,CardPaymentIcon as nX,ChatIcon as sX,AccountIcon as lX,GlobeIcon as iX,GridIcon as dX,ImageIcon as zb,MapIcon as cX,MediaIcon as fX,PageIcon as pX}from"efficient-easel/icons";import{jsx as Ub,Fragment as XY,jsxs as ZY}from"react/jsx-runtime";var WA=ZY(XY,{children:[Ub("circle",{cx:"9",cy:"20",r:"1.3"}),Ub("circle",{cx:"18",cy:"20",r:"1.3"}),Ub("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 uX={header:ge(xe,{children:[N("rect",{x:"3",y:"5",width:"18",height:"14",rx:"2"}),N("path",{d:"M3 9.5h18"})]}),social:ge(xe,{children:[N("circle",{cx:"6",cy:"12",r:"2.5"}),N("circle",{cx:"18",cy:"6",r:"2.5"}),N("circle",{cx:"18",cy:"18",r:"2.5"}),N("path",{d:"M8.2 10.8l7.6-3.6M8.2 13.2l7.6 3.6"})]}),ticker:ge(xe,{children:[N("rect",{x:"3",y:"8.5",width:"18",height:"7",rx:"2"}),N("path",{d:"M6 12h3.5M11.5 12h2M15.5 12h2.5"})]}),FooterLogo:ge(xe,{children:[N("path",{d:"M4 15.5h6M4 18h4"}),N("path",{d:"M14 8.5l3 7 3-7"})]}),FooterMenu:N("path",{d:"M6 7h12M6 11h12M6 15h8M6 19h8"}),FooterGroup:ge(xe,{children:[N("rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",strokeDasharray:"3 2.5"}),N("path",{d:"M8 9h8M8 13h8M8 16h5"})]}),FooterText:N("path",{d:"M5 7h14M5 12h14M5 17h9"}),FooterEmailSignup:ge(xe,{children:[N("rect",{x:"3",y:"6",width:"18",height:"12",rx:"2"}),N("path",{d:"M3.5 7l8.5 6 8.5-6"})]}),SearchBlock:ge(xe,{children:[N("circle",{cx:"11",cy:"11",r:"6"}),N("path",{d:"M20 20l-4.2-4.2"})]}),CartBlock:WA,CountrySwitchBlock:ge(xe,{children:[N("circle",{cx:"12",cy:"12",r:"8.5"}),N("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:ge(xe,{children:[N("circle",{cx:"12",cy:"12",r:"8.5"}),N("path",{d:"M12 3.5v17M12 5.5l6 6M12 10.5l5.2 5.2M12 15.5l2.8 2.8"})]}),LegalLineBlock:ge(xe,{children:[N("path",{d:"M3 9h18"}),N("path",{d:"M3 14h8M14 14h2M18 14h3"})]}),Hero:ge(xe,{children:[N("rect",{x:"3",y:"4",width:"18",height:"16",rx:"2"}),N("path",{d:"M7 13.5h7M7 16.5h10"})]}),HeroSlide:ge(xe,{children:[N("rect",{x:"3",y:"5",width:"18",height:"14",rx:"2"}),N("path",{d:"M7 15h6M16 9.5h.01M9.5 12l-2.5 3"})]}),HeroSingle:ge(xe,{children:[N("rect",{x:"3",y:"4",width:"18",height:"16",rx:"2"}),N("path",{d:"M10.5 8.5l4 2.5-4 2.5z"}),N("path",{d:"M7 17h7"})]}),Collections:ge(xe,{children:[N("rect",{x:"3",y:"5",width:"4.6",height:"14",rx:"1.3"}),N("rect",{x:"9.7",y:"5",width:"4.6",height:"14",rx:"1.3"}),N("rect",{x:"16.4",y:"5",width:"4.6",height:"14",rx:"1.3"})]}),CollectionCard:ge(xe,{children:[N("rect",{x:"6",y:"4",width:"12",height:"16",rx:"2"}),N("path",{d:"M9 15h6M9 17.5h4"})]}),AlloyWheelsListing:ge(xe,{children:[N("path",{d:"M3 5h5M3 9h5M3 13h5M3 17h5"}),N("rect",{x:"11.5",y:"5",width:"4.2",height:"5",rx:"1"}),N("rect",{x:"17.3",y:"5",width:"4.2",height:"5",rx:"1"}),N("rect",{x:"11.5",y:"12",width:"4.2",height:"5",rx:"1"}),N("rect",{x:"17.3",y:"12",width:"4.2",height:"5",rx:"1"})]}),CatalogFilterBar:ge(xe,{children:[N("path",{d:"M3 7h9M15.5 7H21"}),N("circle",{cx:"13.5",cy:"7",r:"1.7"}),N("path",{d:"M3 12h4M10.5 12H21"}),N("circle",{cx:"8.5",cy:"12",r:"1.7"}),N("path",{d:"M3 17h9M15.5 17H21"}),N("circle",{cx:"13.5",cy:"17",r:"1.7"})]}),ProductGrid:ge(xe,{children:[N("rect",{x:"3",y:"5",width:"4.8",height:"6",rx:"1"}),N("rect",{x:"9.6",y:"5",width:"4.8",height:"6",rx:"1"}),N("rect",{x:"16.2",y:"5",width:"4.8",height:"6",rx:"1"}),N("rect",{x:"3",y:"13",width:"4.8",height:"6",rx:"1"}),N("rect",{x:"9.6",y:"13",width:"4.8",height:"6",rx:"1"}),N("rect",{x:"16.2",y:"13",width:"4.8",height:"6",rx:"1"})]}),RelatedProducts:ge(xe,{children:[N("path",{d:"M3 5h10"}),N("rect",{x:"3",y:"9.5",width:"5",height:"9",rx:"1"}),N("rect",{x:"9.5",y:"9.5",width:"5",height:"9",rx:"1"}),N("rect",{x:"16",y:"9.5",width:"5",height:"9",rx:"1"})]}),Gallery:ge(xe,{children:[N("rect",{x:"3",y:"4",width:"11",height:"16",rx:"2"}),N("rect",{x:"15.5",y:"4",width:"5.5",height:"7.5",rx:"1.5"}),N("rect",{x:"15.5",y:"12.5",width:"5.5",height:"7.5",rx:"1.5"})]}),GalleryB:ge(xe,{children:[N("rect",{x:"3.5",y:"4",width:"7.5",height:"7.5",rx:"1.5"}),N("rect",{x:"13",y:"4",width:"7.5",height:"7.5",rx:"1.5"}),N("rect",{x:"3.5",y:"12.5",width:"7.5",height:"7.5",rx:"1.5"}),N("rect",{x:"13",y:"12.5",width:"7.5",height:"7.5",rx:"1.5"})]}),GalleryItem:ge(xe,{children:[N("rect",{x:"4",y:"5",width:"16",height:"14",rx:"2"}),N("circle",{cx:"9",cy:"10",r:"1.6"}),N("path",{d:"M20 15.5l-4.5-4L7 19"})]}),Events:ge(xe,{children:[N("rect",{x:"4",y:"5",width:"16",height:"15",rx:"2"}),N("path",{d:"M4 9.5h16M8.5 3v4M15.5 3v4M8 14h2M14 14h2"})]}),PostCard:ge(xe,{children:[N("rect",{x:"4",y:"3.5",width:"16",height:"17",rx:"2"}),N("rect",{x:"6.5",y:"6",width:"11",height:"6",rx:"1"}),N("path",{d:"M6.5 14.5h11M6.5 17.5h7"})]}),Manifesto:ge(xe,{children:[N("path",{d:"M7 8h3.2v4c0 1.6-1 2.6-3 3.2"}),N("path",{d:"M14 8h3.2v4c0 1.6-1 2.6-3 3.2"})]}),Stats:ge(xe,{children:[N("path",{d:"M3.5 20h17"}),N("path",{d:"M6 20v-7M11 20V7M16 20v-5M20.5 20v-9"})]}),Logos:ge(xe,{children:[N("circle",{cx:"6",cy:"12",r:"2.6"}),N("rect",{x:"10",y:"9.4",width:"5.2",height:"5.2",rx:"1.2"}),N("path",{d:"M19 9.2l2.4 5h-4.8z"})]}),Ticker:ge(xe,{children:[N("rect",{x:"3",y:"8.5",width:"18",height:"7",rx:"2"}),N("path",{d:"M6 12h3.5M11.5 12h2M15.5 12h2.5"})]}),SectionHeader:ge(xe,{children:[N("rect",{x:"3.5",y:"6",width:"5",height:"5",rx:"1.2"}),N("path",{d:"M11 8.5h9M3.5 15.5h17"})]}),IntroBleed:ge(xe,{children:[N("rect",{x:"3",y:"4",width:"18",height:"16",rx:"2"}),N("path",{d:"M3 13.5h18M7 16.8h6"})]}),Split:ge(xe,{children:[N("rect",{x:"3",y:"5",width:"8",height:"14",rx:"1.5"}),N("path",{d:"M14 8.5h6M14 12h6M14 15.5h4"})]}),Eyebrow:ge(xe,{children:[N("path",{d:"M4 8.5h4.5M11 8.5h9"}),N("path",{d:"M4 14.5h16"})]}),HeroGroup:ge(xe,{children:[N("rect",{x:"3.5",y:"4.5",width:"17",height:"15",rx:"2"}),N("path",{d:"M7 9h8M7 12.5h10M7 16h6"})]}),Form:ge(xe,{children:[N("rect",{x:"3",y:"4",width:"18",height:"16",rx:"2"}),N("path",{d:"M6.5 9h11M6.5 12.5h11"}),N("rect",{x:"6.5",y:"15",width:"6.5",height:"2.6",rx:"1.3"})]}),LogoBlock:N(xe,{children:N("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:ge(xe,{children:[N("path",{d:"M12 4v6M9.5 6.5L12 4l2.5 2.5M12 20v-6M9.5 17.5L12 20l2.5-2.5"}),N("path",{d:"M5 13h14",strokeDasharray:"2 2.5"})]}),ContactRouting:ge(xe,{children:[N("rect",{x:"3",y:"4",width:"5",height:"5",rx:"1"}),N("rect",{x:"9.5",y:"4",width:"5",height:"5",rx:"1"}),N("rect",{x:"16",y:"4",width:"5",height:"5",rx:"1"}),N("path",{d:"M4 13.5h11M4 17.5h7"}),N("path",{d:"M17 15l3 2-3 2"})]}),Contents:ge(xe,{children:[N("path",{d:"M4 7h2M4 12h2M4 17h2"}),N("path",{d:"M9 7h11M9 12h9M9 17h10"})]}),ListSearch:ge(xe,{children:[N("path",{d:"M4 6h9M4 11h5M4 16h5"}),N("circle",{cx:"15",cy:"15",r:"4"}),N("path",{d:"M20.5 20.5l-2.7-2.7"})]}),CustomHTML:N("path",{d:"M9 8l-4 4 4 4M15 8l4 4-4 4"})},mX=N("rect",{x:"4",y:"4",width:"16",height:"16",rx:"2.5"}),hX={footer:zA,Footer:zA,Divider:UA,FooterDivider:UA,Banner:JY,Flex:QY,FooterSocial:rX,FooterPayment:nX,page:pX,website:iX,AccountBlock:lX,chat:sX,Heading:oX,Text:aX,ImageBlock:zb,ButtonBlock:eX,LocationMap:cX,Grid:dX,ProductRef:tX,heroMedia:fX,heroImage:zb,heroImage2:zb},xX={MenuBlock:"FooterMenu",EmailFormBlock:"FooterEmailSignup",SocialLogosBlock:"FooterSocial",PaymentLogosBlock:"FooterPayment",SiteHeader:"header",SiteFooter:"footer"};function fn({type:e,size:o=16,className:t}){let r=xX[e]??e,a=hX[r];return a?N(a,{size:o,className:t}):N("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:uX[r]??mX})}import{PanelHideButton as rM}from"efficient-easel/screen/components/SidePanelHead";import{useEaselSession as gle}from"efficient-easel/screen/lib/session-context";import{jsx as Re,jsxs as Li,Fragment as IX}from"react/jsx-runtime";import{useEffect as gX,useId as $A,useState as bX}from"react";import{IconPicker as yX}from"efficient-shell/ui";import{SettingsDefaultReset as SX,SettingsField as Fi,SettingsSegmented as wX,SettingsSwitch as GA}from"efficient-easel/panel";import{ButtonIcon as CX,ButtonIconIcon as vX,EyeIcon as kX,PhoneIcon as TX,PlacementIcon as PX,TypeIcon as EX}from"efficient-easel/icons";var OX="Chat with us",_X="We usually reply within a few minutes",AX="Hi! Ask us anything \u2014 about a wheel, an order, or fitment. Leave your details and we\u2019ll reply.";function Zp({label:e,value:o,placeholder:t,onCommit:r,multiline:a=!1,hint:n}){let[s,l]=bX(o);gX(()=>l(o),[o]);let d=()=>{s!==o&&r(s)};return Re(Fi,{label:e,icon:Re(EX,{}),changed:o!=="",action:Re(Bi,{label:e,changed:o!=="",onReset:()=>r("")}),hint:n,children:a?Re("textarea",{value:s,placeholder:t,rows:3,onChange:c=>l(c.target.value),onBlur:d,"aria-label":e}):Re("input",{type:"text",value:s,placeholder:t,onChange:c=>l(c.target.value),onBlur:d,onKeyDown:c=>{c.key==="Enter"&&c.currentTarget.blur()},"aria-label":e,autoComplete:"off"})})}function Bi({label:e,changed:o,onReset:t}){return Re(SX,{words:de()?.panel,label:e,changed:o,onReset:t})}function RX({label:e,icon:o,checked:t,fallback:r,onChange:a,hint:n}){let s=$A();return Re(Fi,{label:e,labelId:s,icon:o,changed:t!==r,action:Li("span",{className:"inline-flex items-center gap-2",children:[Re(GA,{checked:t,onChange:a,ariaLabelledBy:s}),Re(Bi,{label:e,changed:t!==r,onReset:()=>a(r)})]}),hint:n})}var LX=Gp.map(e=>({value:e,icon:jc(e)}));function FX(){let{theme:e}=he(),o=xo(e).themes[0];return El(o)??o?.accent??""}function jA(){let{chat:e,setChat:o}=Vp(),t=$A(),r=FX(),a=e.launcherIcon?jp(e.launcherIcon):Us;return Li(IX,{children:[Re(Fi,{label:i("Show the chat bubble"),labelId:t,icon:Re(kX,{}),changed:!e.enabled,action:Li("span",{className:"inline-flex items-center gap-2",children:[Re(GA,{checked:e.enabled,onChange:n=>o({enabled:n}),ariaLabelledBy:t}),Re(Bi,{label:i("Show the chat bubble"),changed:!e.enabled,onReset:()=>o({enabled:!0})})]}),hint:e.enabled?i("The floating chat bubble shows in the corner of every page."):i("The chat bubble is hidden across the whole site.")}),Li(bg,{title:i("Look"),children:[Re(Yo,{label:i("Button color"),icon:Re(CX,{}),changed:e.launcherColor!=="",value:e.launcherColor,inherited:r,caption:e.launcherColor?void 0:i("Site button color"),onChange:n=>o({launcherColor:n}),onReset:()=>o({launcherColor:""})}),Re(Fi,{label:i("Icon"),icon:Re(vX,{}),value:Re(JI,{value:a}),changed:a!==Us,action:Re(Bi,{label:i("Icon"),changed:a!==Us,onReset:()=>o({launcherIcon:""})}),children:Re(yX,{label:i("Icon"),value:a,options:LX,onChange:n=>o({launcherIcon:n===Us?"":n})})}),Re(Fi,{label:i("Position"),icon:Re(PX,{}),changed:e.launcherPosition!==ln,action:Re(Bi,{label:i("Position"),changed:e.launcherPosition!==ln,onReset:()=>o({launcherPosition:ln})}),children:Re(wX,{options:[{label:i("Right"),id:"right"},{label:i("Left"),id:"left"}],value:e.launcherPosition,ariaLabel:i("Position"),onChange:n=>o({launcherPosition:n})})}),Re(Zp,{label:i("Label"),value:e.launcherLabel,placeholder:i("Icon only"),onCommit:n=>o({launcherLabel:n}),hint:i("Shows when a visitor points at the button")}),Re(RX,{label:i("Show on phones"),icon:Re(TX,{}),checked:e.showOnPhones,fallback:Kp.showOnPhones,onChange:n=>o({showOnPhones:n})})]}),Li(bg,{title:i("Wording"),children:[Re(Zp,{label:i("Title"),value:e.title,placeholder:OX,onCommit:n=>o({title:n})}),Re(Zp,{label:i("Subtitle"),value:e.subtitle,placeholder:_X,onCommit:n=>o({subtitle:n})}),Re(Zp,{label:i("Greeting message"),value:e.greeting,placeholder:AX,onCommit:n=>o({greeting:n}),multiline:!0}),Re("p",{className:"es-field-hint",children:i("Leave a field blank to use the built-in wording.")})]})]})}import{jsx as pn,Fragment as cy,jsxs as XA}from"react/jsx-runtime";import{useEffect as cZ,useId as qA,useState as YA}from"react";import{SettingsField as fZ}from"efficient-easel/panel";import{jsx as oZ}from"react/jsx-runtime";import{forwardRef as BX,createElement as $b}from"react";var KA={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 ce=(e,o,t,r)=>{let a=BX(({color:n="currentColor",size:s=24,stroke:l=2,title:d,className:c,children:f,...u},p)=>$b("svg",{ref:p,...KA[e],width:s,height:s,className:["tabler-icon",`tabler-icon-${o}`,c].filter(Boolean).join(" "),...e==="filled"?{fill:n}:{strokeWidth:l,stroke:n},...u},[d&&$b("title",{key:"svg-title"},d),...r.map(([h,I])=>$b(h,I)),...Array.isArray(f)?f:[f]]));return a.displayName=`${t}`,a};var DX=[["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"}]],Gb=ce("outline","brand-facebook","BrandFacebook",DX);var NX=[["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"}]],jb=ce("outline","brand-instagram","BrandInstagram",NX);var MX=[["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"}]],Kb=ce("outline","brand-line","BrandLine",MX);var HX=[["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"}]],Vb=ce("outline","brand-linkedin","BrandLinkedin",HX);var WX=[["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"}]],qb=ce("outline","brand-pinterest","BrandPinterest",WX);var UX=[["path",{d:"M15 10l-4 4l6 6l4 -16l-18 7l4 2l2 6l3 -4",key:"svg-0"}]],Yb=ce("outline","brand-telegram","BrandTelegram",UX);var zX=[["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"}]],Xb=ce("outline","brand-tiktok","BrandTiktok",zX);var $X=[["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"}]],Zb=ce("outline","brand-wechat","BrandWechat",$X);var GX=[["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"}]],Jb=ce("outline","brand-whatsapp","BrandWhatsapp",GX);var jX=[["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"}]],Qb=ce("outline","brand-x","BrandX",jX);var KX=[["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"}]],ey=ce("outline","brand-youtube","BrandYoutube",KX);var VX=[["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"}]],oy=ce("filled","brand-facebook-filled","BrandFacebookFilled",VX);var qX=[["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"}]],ty=ce("filled","brand-instagram-filled","BrandInstagramFilled",qX);var YX=[["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"}]],ry=ce("filled","brand-linkedin-filled","BrandLinkedinFilled",YX);var XX=[["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"}]],ay=ce("filled","brand-pinterest-filled","BrandPinterestFilled",XX);var ZX=[["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"}]],ny=ce("filled","brand-tiktok-filled","BrandTiktokFilled",ZX);var JX=[["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"}]],sy=ce("filled","brand-whatsapp-filled","BrandWhatsappFilled",JX);var QX=[["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"}]],ly=ce("filled","brand-x-filled","BrandXFilled",QX);var eZ=[["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"}]],iy=ce("filled","brand-youtube-filled","BrandYoutubeFilled",eZ);var wAe="outline",Jp={fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},tZ={},dy={fillRule:"evenodd"},rZ=[["path",{...Jp,d:"M21 4L3 11L7 13L9 19L12 15L17 20z"}],["path",{...dy,d:"M21 4L3 11L7 13L9 19L12 15L17 20zM15.212 8.939 10.576 13.576 11.424 14.424 16.061 9.788z"}]],aZ=[["path",{...Jp,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",{...tZ,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("")}]],nZ=[["path",{...Jp,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",{...Jp,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",{...dy,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",{...dy,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("")}]],sZ=ce("filled","brand-telegram-filled","BrandTelegramFilled",rZ),lZ=ce("filled","brand-line-filled","BrandLineFilled",aZ),iZ=ce("filled","brand-wechat-filled","BrandWechatFilled",nZ),dZ={instagram:{outline:jb,solid:ty},facebook:{outline:Gb,solid:oy},tiktok:{outline:Xb,solid:ny},youtube:{outline:ey,solid:iy},x:{outline:Qb,solid:ly},linkedin:{outline:Vb,solid:ry},pinterest:{outline:qb,solid:ay},whatsapp:{outline:Jb,solid:sy},telegram:{outline:Yb,solid:sZ},line:{outline:Kb,solid:lZ},wechat:{outline:Zb,solid:iZ}};function VA({platform:e,iconStyle:o,size:t}){let r=dZ[e][o];return oZ(r,{size:t,stroke:1.75,"aria-hidden":"true",focusable:"false"})}var pZ={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 uZ({platform:e}){let{rows:o,saveLink:t}=Pi(),{value:r,error:a}=o[e],[n,s]=YA(r),[l,d]=YA(!1),c=qA(),f=qA();cZ(()=>s(r),[r]);let u=async()=>{if(n.trim()===r){n!==r&&s(r);return}d(!0),await t(e,n),d(!1)},p=zk[e];return XA(cy,{children:[pn(fZ,{label:i(p),htmlFor:c,icon:pn(VA,{platform:e,iconStyle:"outline",size:18}),children:pn("input",{id:c,type:"text",inputMode:"url",value:n,placeholder:pZ[e],onChange:h=>s(h.target.value),onBlur:()=>{u()},onKeyDown:h=>{h.key==="Enter"&&h.currentTarget.blur(),h.key==="Escape"&&(s(r),h.currentTarget.blur())},"aria-invalid":a?!0:void 0,"aria-describedby":a?f:void 0,"aria-busy":l||void 0,autoComplete:"off",spellCheck:!1})}),a&&pn("p",{id:f,className:"sf-note sf-note--error",role:"alert",children:a})]})}function ZA({unavailable:e}){let{canSave:o}=Pi();return!o&&e?pn(cy,{children:e}):XA(cy,{children:[pn("p",{className:"es-field-hint",children:i("Paste a link to each profile. A platform left empty shows nothing on the site.")}),Pc.map(t=>pn(uZ,{platform:t},t))]})}import{jsx as gn,Fragment as Iee,jsxs as gee}from"react/jsx-runtime";import{useId as bee,useMemo as yee}from"react";import{useEasel as See}from"efficient-easel/easel";import{SettingsField as wee,SettingsSwitch as Cee}from"efficient-easel/panel";import{EyeIcon as vee}from"efficient-easel/icons";import{fieldShownInView as kee}from"efficient-easel/fields";import{usePreviewDevice as Tee}from"efficient-easel/draw/client";import{jsx as mn,Fragment as uJ,jsxs as mJ}from"react/jsx-runtime";import{createContext as hJ,useContext as xJ,useLayoutEffect as vR,useMemo as lu,useRef as kR,useState as gy}from"react";import{useEasel as TR,useSelectedFields as IJ}from"efficient-easel/easel";import{fieldShownInView as gJ,Inspector as bJ,planFields as by}from"efficient-easel/fields";function JA({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{group as eJ}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as oJ,deviceMetaOf as uR}from"efficient-easel/screen/lib/document/device-fields";import{jsx as Co}from"react/jsx-runtime";import{DirectionDownIcon as yZ,DirectionIcon as SZ,DirectionLeftIcon as wZ,DirectionRightIcon as CZ,DirectionUpIcon as vZ,EntranceBounceIcon as kZ,EntranceFadeIcon as TZ,EntranceFlipIcon as PZ,EntranceGlideIcon as EZ,EntranceRevealIcon as OZ,EntranceRiseIcon as _Z,EntranceScaleIcon as AZ,EntranceSpinIcon as RZ,NoSymbolIcon as LZ}from"efficient-easel/icons";import{NoControlMark as FZ,noControlField as BZ}from"efficient-easel/screen/lib/document/panel-no-control-mark";import{customize as DZ,group as NZ}from"efficient-easel/screen/lib/document/box-fields";import{ENTRANCE_FROM as MZ,ENTRANCE_FROM_DEFAULT as sR,ENTRANCE_KINDS as lR,ENTRANCE_KINDS_WITH_FROM as HZ,entranceAttrs as WZ,playEntrance as UZ,readEntrance as zZ}from"efficient-shell/format";import{jsx as uy}from"react/jsx-runtime";import{ClockIcon as IZ,DurationIcon as gZ}from"efficient-easel/icons";import{MOTION_TIMING as rR}from"efficient-shell/format";import{useSelectedHost as bZ}from"efficient-easel/easel";import{MOTION_EASING as mZ,MOTION_TIMING as QA,motionSeconds as eR}from"efficient-shell/format";var fy="none",Qp=[{label:"None",value:"none"},{label:"Marquee",value:"scroll"}];function BAe(e){return io(Qp,fy,e)}var eu="_gLoop",Di={field:"loop",is:"scroll"},Ni="left",py=[{label:"Left",value:"left",cell:"left"},{label:"Right",value:"right",cell:"right"},{label:"Up",value:"up",cell:"top"},{label:"Down",value:"down",cell:"bottom"}],hZ={left:"storefront-ticker",right:"storefront-ticker-right",up:"storefront-ticker-up",down:"storefront-ticker-down"};function oR(e){return io(py,Ni,e)}function DAe(e){return e==="up"||e==="down"}function ou(e){return eR("loop","duration",e.loopDuration!=null?e.loopDuration:e.speed)}var NAe=QA.loop.duration.default,xZ=QA.loop.delay.default;function tR(e){return eR("loop","delay",e.loopDelay)}function MAe(e,o,t=xZ){return`${hZ[e]} ${o}s ${mZ.loop}${t?` ${t}s`:""} infinite`}function zs(e){let{min:o,max:t,step:r,default:a}=rR[e].duration;return Oo("Duration",uy(gZ,{}),o,t,r,a,"s")}function $s(e){let{min:o,max:t,step:r,default:a}=rR[e].delay;return Oo("Delay",uy(IZ,{}),o,t,r,a,"s")}function Gs(e,o){let t=e.render,r=a=>{let n=bZ();return t({...a,value:o(a.value,n?.values)})};return{...e,render:a=>uy(r,{...a})}}function tu({readsSpeed:e}){return Gs(zs("loop"),(o,t)=>ou({loopDuration:o,speed:e?t?.speed:void 0}))}function ru(){return Gs($s("loop"),e=>tR({loopDelay:e}))}var aR="_gEntrance";var $Z={none:"None",fade:"Fade",rise:"Rise",scale:"Scale",glide:"Glide",bounce:"Bounce",flip:"Flip",reveal:"Reveal",spin:"Spin"},GZ={top:"Top",bottom:"Bottom",left:"Left",right:"Right"},jZ={top:()=>Co(yZ,{}),bottom:()=>Co(vZ,{}),left:()=>Co(CZ,{}),right:()=>Co(wZ,{})},iR="Entrance",hy=lR.filter(e=>e!=="none"),dR=e=>({any:[{field:tt.kind,in:e},{all:[{field:tt.kind,set:!1},{field:_l,in:e}]}]}),nR=(e,o)=>kl(qo.slice(0,qo.indexOf(e)+1).reverse().map(t=>we(tt.kind,t)),t=>({field:t,set:!0}),t=>t===tt.kind?dR(o):{field:t,in:o}),KZ={any:[dR(hy),...qo.slice(1).map(e=>({field:we(tt.kind,e),in:hy}))]},VZ=qo.flatMap(e=>[[[we(tt.from,e)],nR(e,HZ)],[[we(tt.duration,e),we(tt.delay,e)],nR(e,hy)]]),qZ={none:()=>Co(LZ,{}),fade:()=>Co(TZ,{}),rise:()=>Co(_Z,{}),scale:()=>Co(AZ,{}),glide:()=>Co(EZ,{}),bounce:()=>Co(kZ,{}),flip:()=>Co(PZ,{}),reveal:()=>Co(OZ,{}),spin:()=>Co(RZ,{})},cR="data-entrance-tile";function YZ({kind:e}){let{attrs:o}=WZ(zZ(e,sR));return Co("span",{className:"sf-entrance-stage",[cR]:e,children:Co("i",{...o,children:qZ[e]()})})}var XZ=(e,o)=>{let t=e.querySelector(`[${cR}="${o}"] > i`);t&&UZ(t)},ZZ="Effect",JZ=()=>pf(tt.kind,{label:iR,tileWord:ZZ,values:lR,fallback:"none",word:e=>$Z[e],picture:e=>Co(YZ,{kind:e}),read:(e,o)=>jh(e,o).kind,preview:XZ}),my=(e,o)=>ff(tt[e],o,(t,r)=>jh(t,r)[e]),QZ=MZ.map(e=>({label:GZ[e],value:e,picture:jZ[e]()}));function jt(){let e={[aR]:NZ(iR,{dot:KZ}),...JZ(),[_l]:BZ({type:"custom",render:()=>Co(FZ,{})},"always"),_cEntrance:DZ(),...my("from",Cs("From",Co(SZ,{}),QZ,sR)),...my("duration",zs("entrance")),...my("delay",$s("entrance"))};return _a(e,VZ)}import{DESIGN_GROUPS as xy,SETTINGS_BUCKETS as tJ}from"efficient-easel/panel";import{BUCKET_KEY as bt,DESIGN_GROUP_KEY as au}from"efficient-easel/screen/lib/document/field-buckets";var Mi=tJ;var rJ="Editor only \u2014 not shown live",Iy={"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",[rJ]:"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"},mR={"AlloyWheelsListing._gCards":"Design"},hR={"Text._gSpacing":"Size","Heading._gSpacing":"Size"};function fR(e,o,t){let r=`${e}.${o}`;return K(hR,r)??K(mR,r)??K(Iy,t)}function aJ(e){return e==="Animation"?[bt.Animation]:[bt.Design,au[e]]}function nu(...e){let o=[];for(let t of e)for(let r of Object.values(t)){let a=uR(r),n=ia(a?a.inner:r),s=n?K(Iy,n.label):void 0;if(s)for(let l of aJ(s))o.includes(l)||o.push(l)}return o}var xRe=[...nu(Wf({tablet:!0,siteSide:!0}),ep("full"),op(),rp(),wg()),...Object.keys(Wf({tablet:!0,siteSide:!0})),...Object.keys(ep("full")),...Object.keys(op()),...Object.keys(rp()),...Object.keys(wg())],IRe=[...nu(Zf()),...Object.keys(Zf())],gRe=[...nu(Qf()),...Object.keys(Qf())],bRe=[...nu(jt()),...Object.keys(jt())],yRe=Object.keys(VO()),SRe=Object.keys(qO()),nJ={"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)","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)"},xR={Content:["Content"],Size:["Size"],Design:["Design","Style"],Layout:["Layout"],Position:["Position"],Anchor:["Anchor"],Animation:["Animation"]},IR={_gAnchor:"repeated the Anchor group heading above it (two tabs, 11.0.0)"};{let e={...Wf({tablet:!0,siteSide:!0}),...ep("full"),...op(),...rp(),...Zf(),...Qf(),...jt()};for(let o of Object.keys(IR)){let t=ia(e[o]),r=t?K(Iy,t.label):void 0;if(!t||t.level!==2||!r||!xR[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 sJ=new Set(["_sContent","_sStyle","_sLayout","_sMedia"]),lJ=new Map([[bt.Design,"Content"],[bt.Animation,"Animation"],...xy.map(e=>[au[e],e])]);function iJ(e){let o=`${e}.`;return Object.keys(nJ).filter(t=>t.startsWith(o)).map(t=>t.slice(o.length))}function dJ(e,o){let t=uR(e),r=eJ(o);return t?oJ(t.tier,r):r}function cJ(e,o){let t=ia(o);return t?e==="Content"||e==="Animation"?AO(o,t.label):RO(o):o}function pR(e){return e==="Design"?xy:["Animation"]}function gR(e,o){let t=[],r=new Set(iJ(o)),a=new Set,n=!1,s=null;for(let[p,h]of Object.entries(e)){let I=ia(h);if(sJ.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 (\`_dDesign: section("Design")\`, \`_dLayout: section("Layout")\`).`);let g=lJ.get(p);if(g!==void 0){if(I?.level!==1)throw new Error(`${o}.${p}: that key is reserved for the ${g} heading of the settings panel, but this field is ${I?`a level-${I.level} "${I.label}" header`:"not a header"}, so it cannot serve as one. Rename the section's own field.`);(p===bt.Design||p===bt.Animation)&&(n=!0),t.push(s={place:g,entries:[],adopted:!0});continue}if(!I){s||t.push(s={place:"Content",entries:[]}),s.entries.push([p,h]);continue}if(r.has(p)||$e(IR,p)){let w=fR(o,p,I.label);if(I.level!==2||!w||!xR[w].includes(I.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-${I.level} "${I.label}" header in the ${w??"(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:w,entries:[]});continue}let C=fR(o,p,I.label);if(!C)throw new Error(`${o}.${p}: the inspector group "${I.label}" is not classified in LABEL_GROUP (lib/document/field-groups.ts), so there is no way to say which of ${[...xy,"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:C,entries:[[p,I.level===2?h:dJ(h,I.label)]]})}let l=new Set(Object.entries(e).filter(([,p])=>ia(p)).map(([p])=>p));for(let[p,h]of[["BLOCK_KEY_GROUP",hR],["KEY_GROUP",mR]]){let I=Object.keys(h).filter(g=>g.startsWith(`${o}.`)).filter(g=>!l.has(g.slice(o.length+1)));if(I.length)throw new Error(`${o}: ${p} (lib/document/field-groups.ts) lists ${JSON.stringify(I)}, 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 d=n?[]:[...r].filter(p=>!a.has(p));if(d.length)throw new Error(`${o}: RETIRED (lib/document/field-groups.ts) lists ${JSON.stringify(d)}, but this section has no such fold header${d.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 c=new Set(t.filter(p=>p.entries.length>0).map(p=>p.place)),f=Mi.filter(p=>pR(p).some(h=>c.has(h))),u={};for(let p of f){u[bt[p]]=Xf(p,p===f[0]?f:null);for(let h of pR(p)){if(!c.has(h))continue;let I=t.filter(C=>C.place===h),g=I.findIndex(C=>C.adopted);g>0&&I.unshift(...I.splice(g,1)),p==="Design"&&(u[au[h]]=gg(h));for(let C of I)for(let[w,T]of C.entries)u[w]=cJ(h,T)}}return u}function wRe(e){return bt.Design in e?e:{[bt.Design]:Xf("Design",null),[au.Content]:gg("Content"),...e}}function CRe(e){return Mi.some(o=>bt[o]in e)}function vRe(e){let o=Mi.filter(r=>bt[r]in e);if(o.length===0)return e;let t={...e};for(let r of o)t[bt[r]]=Xf(r,r===o[0]?o:null);return t}import{jsx as fJ}from"react/jsx-runtime";import{EmptyState as pJ}from"efficient-shell/ui";function un(){return fJ(pJ,{variant:"none",icon:!1,message:i("These settings apply to every view.")})}import{usePreviewDevice as yJ}from"efficient-easel/draw/client";import{deviceField as SJ}from"efficient-easel/screen/lib/document/device-fields";var su=" text",bR="Text";function Hi(e){let o=e.rows.filter(t=>t.shown);return o.length===0||o.length===1&&o[0].labelled}function yR(e){return e.filter(Hi).map(o=>o.key)}function SR(e,o){let t=e.filter(a=>!Hi(a));if(t.length!==1)return null;let r=e.filter(Hi).flatMap(a=>a.rows);return[...o,...r].some(a=>a.shown)?null:t[0].rows.filter(a=>a.shown).length>1?t[0].key:null}function wR(e,o){let t=null;for(let r of o){let a=e[r];!a||a.marker!==!0||typeof a.fold!="string"||(t??={...e},t[r]={...a,fold:!1})}return t??e}function CR(e,o){if(e.size!==o.size)return!1;for(let t of e)if(!o.has(t))return!1;return!0}var yy=new Map,iu=new Set;function PR(e,o){let t=new Map;for(let a of e.querySelectorAll(".es-insp-row[data-field]"))t.set(a.getAttribute("data-field")??"",a);let r=[];for(let[a,n]of o)r.push({key:a,rows:n.map(s=>{let l=t.get(s),d=!!l&&[...l.children].some(f=>!f.hidden),c=l?.querySelector(".es-field-label, .es-list-label")?.textContent?.trim();return{shown:d,labelled:d&&!!c}})});return r}var wJ=Object.fromEntries(Mi.map(e=>{let o=_O[e];return[e,mn(o,{},e)]})),ER=hJ(null),CJ={_partBody:SJ("each",{type:"custom",render:()=>mn(vJ,{})})};function vJ(){return mn(uJ,{children:xJ(ER)})}function Kt({entries:e,entryCount:o=0,part:t=null,omit:r,motion:a,body:n,itemWord:s}){let{id:l,fields:d,values:c,readOnly:f,onChange:u}=IJ(),p=lu(()=>a?{...c,...a.values}:c,[c,a?.values]),h=(ie,Me)=>a?.keys.has(ie)?a.onChange(ie,Me):u(ie,Me),I=yJ(),{appState:g,config:C}=TR(ie=>ie),w=YT(I,C,g.data.content??[],g.ui.itemSelector),T=n===void 0?BA(d,t):CJ,y=lu(()=>{let ie=r?.length?Object.fromEntries(Object.entries(T).filter(([Me])=>!r.includes(Me))):T;return a?{...ie,...a.fields}:ie},[T,r,a?.fields]),b=vx(y,p,w),[P,H]=gy(()=>new Set(iu)),[E,W]=gy(()=>new Set),O=kR(null),{bandRows:D,designBands:v,looseRows:_}=lu(()=>{let ie=new Map,Me=new Set,Ve=[];for(let J of by(b).rows){if(!J.fold){J.bucket==="Design"&&Ve.push(J.name);continue}let Ae=ie.get(J.fold.key)??[];Ae.push(J.name),ie.set(J.fold.key,Ae),J.bucket==="Design"&&Me.add(J.fold.key)}return{bandRows:ie,designBands:Me,looseRows:new Map([["",Ve]])}},[b]),A=gJ({},I),F={key:su,rows:Array.from({length:A?o:0},()=>({shown:!0,labelled:!0}))};vR(()=>{let ie=O.current?.parentElement;if(!ie)return;let Me=PR(ie,D),Ve=new Set(yR(Me)),J=SR([F,...Me.filter(Ae=>v.has(Ae.key))],PR(ie,_)[0].rows);J&&Ve.add(J),W(Ae=>CR(Ae,Ve)?Ae:Ve)});let z=lu(()=>wR(b,E),[b,E]),$=!Hi(F)&&!E.has(su)?{key:su,title:bR}:void 0,X=TR(ie=>ie.selectedItem)!==null,ee=a?.part??t??"",Fe=`${l}:${ee}:${String(I)}`,[Oe,ze]=gy(()=>({tab:yy.get(Fe)})),Ke=`${l}:${ee}`,be=kR(null),Te={...w,node:p},_e=by(b,{values:p,context:Te}).buckets,Ne=JA({allTabs:X,remembered:yy.get(Fe),inherited:be.current?.panel===Ke?be.current.tab:Oe.tab,buckets:_e,hasText:A&&o>0}),ao=!A&&!_e.includes(Ne)&&(by(vx(y,p,{...w,device:"desktop"}),{values:p,context:{...Te,device:"desktop"}}).buckets.includes(Ne)||Ne==="Design"&&o>0);vR(()=>{be.current={panel:Ke,tab:Ne}});let yo=Ne==="Design";return mn(ER.Provider,{value:n??null,children:mn(Sg.Provider,{value:a?p:null,children:mJ(bJ,{fields:z,values:p,onChange:h,readOnly:f,allTabs:X,showWhenContext:Te,context:{itemWord:s},tab:Ne,onTab:ie=>{yy.set(Fe,ie),ze({tab:ie})},tabIcons:wJ,idPrefix:l,ariaLabel:i("Section settings"),lead:yo?e:null,leadFold:$,closedFolds:P,onFold:(ie,Me)=>{Me?iu.delete(ie):iu.add(ie),H(new Set(iu))},children:[mn("span",{ref:O,hidden:!0}),ao&&mn(un,{})]})})})}import{useMemo as dee}from"react";import{useEasel as cee}from"efficient-easel/easel";import{useSectionOps as fee}from"efficient-easel/screen/lib/document/use-section-ops";import{jsx as yt}from"react/jsx-runtime";import{EntranceRevealIcon as AJ,NoSymbolIcon as RJ,PercentIcon as LR,ScrollFadeInIcon as LJ,ScrollFadeOutIcon as FJ,ScrollMoveDownIcon as BJ,ScrollMoveUpIcon as DJ,ScrollParallaxIcon as NJ,ScrollZoomInIcon as MJ,ScrollZoomOutIcon as HJ,ZoomInIcon as WJ}from"efficient-easel/icons";import{customize as UJ,group as zJ}from"efficient-easel/screen/lib/document/box-fields";import{SCROLL_EFFECTS as BR,SCROLL_EFFECTS_WITH_ZOOM as $J,SCROLL_END as GJ,SCROLL_START as jJ,SCROLL_ZOOM as KJ}from"efficient-shell/format";import{parseFocal as EJ,formatFocal as OJ,readScroll as _J}from"efficient-shell/format";import{phoneKey as kJ,tabletKey as TJ}from"efficient-easel/screen/lib/content/view-tiers";var PJ=[{block:"HeroSlide",upload:"mediaImage",focus:"imageFocal"},{block:"HeroSingle",upload:"mediaImage",focus:"imageFocal"},{block:"HeroSingle",upload:"mediaImage2",focus:"imageFocal2"},{block:"ImageBlock",upload:"src",focus:"focal"}],OR=e=>[e,TJ(e),kJ(e)],VRe=[...new Set(PJ.flatMap(e=>OR(e.focus)))].sort();function _R(e,o){let[t,r,a]=OR(o).map(n=>typeof e[n]=="string"&&e[n]?e[n]:void 0);return{desktop:t,tablet:r,phone:a}}var Ao={effect:"scroll",zoom:"scrollZoom",start:"scrollStart",end:"scrollEnd"},AR="_gScroll",RR="_cScroll",du=xc(Object.values(Ao));function js(e,o){return _J(Ol(e,Ao.effect,o),Ol(e,Ao.zoom,o),Ol(e,Ao.start,o),Ol(e,Ao.end,o))}function cu(e){let o={desktop:js(e,"desktop"),tablet:js(e,"tablet"),phone:js(e,"phone")};return qo.every(t=>o[t].effect==="none")?null:o}function Sy(e){let o=Ck(e.desktop,e.tablet,e.phone),t=r=>{let a=o[r];if(typeof a!="string")return;let{x:n,y:s}=EJ(a);return OJ(n,s)};return{desktop:t("desktop"),tablet:t("tablet"),phone:t("phone")}}function JRe(e,o){return Sy(_R(e,o))}var DR="Scroll",VJ={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"},qJ={none:()=>yt(RJ,{}),"zoom-in":()=>yt(MJ,{}),"zoom-out":()=>yt(HJ,{}),"fade-in":()=>yt(LJ,{}),"fade-out":()=>yt(FJ,{}),"move-up":()=>yt(DJ,{}),"move-down":()=>yt(BJ,{}),reveal:()=>yt(AJ,{}),parallax:()=>yt(NJ,{})},YJ="Effect",NR=BR.filter(e=>e!=="none"),FR=(e,o)=>kl(qo.slice(0,qo.indexOf(e)+1).reverse().map(t=>we(Ao.effect,t)),t=>({field:t,set:!0}),t=>({field:t,in:o})),XJ={any:qo.map(e=>({field:we(Ao.effect,e),in:NR}))},ZJ=qo.flatMap(e=>[[[we(Ao.zoom,e)],FR(e,$J)],[[we(Ao.start,e),we(Ao.end,e)],FR(e,NR)]]),JJ=()=>pf(Ao.effect,{label:DR,tileWord:YJ,values:BR,fallback:"none",word:e=>VJ[e],picture:e=>qJ[e](),read:(e,o)=>js(e,o).effect}),wy=(e,o,t,r,a)=>ff(e,Oo(t,r,a.min,a.max,a.step,a.default,"%"),(n,s)=>js(n,s)[o]);function hn(){let e={[AR]:zJ(DR,{dot:XJ}),...JJ(),[RR]:UJ(),...wy(Ao.zoom,"zoom","Zoom",yt(WJ,{}),KJ),...wy(Ao.start,"start","Start",yt(LR,{}),jJ),...wy(Ao.end,"end","End",yt(LR,{}),GJ)};return _a(e,ZJ)}import{jsx as jo}from"react/jsx-runtime";import{AccentIcon as QJ,ContrastIcon as eQ,EyeIcon as oQ,ExpandIcon as tQ,FinishIcon as rQ,ImagesIcon as aQ,NoSymbolIcon as HR,HoverLiftIcon as nQ,HoverNextImageIcon as sQ,HoverRotateIcon as lQ,HoverZoomIcon as WR,OpacityIcon as iQ}from"efficient-easel/icons";import{customize as dQ,describedAs as UR,group as cQ}from"efficient-easel/screen/lib/document/box-fields";import{effectTiles as zR}from"efficient-easel/screen/lib/document/effect-tiles";import{deviceField as Ro}from"efficient-easel/screen/lib/document/device-fields";import{NoControlMark as fQ,noControlField as pQ}from"efficient-easel/screen/lib/document/panel-no-control-mark";var fu=e=>Ro("desktop",cQ("Hover",{dot:e})),$R=()=>Ro("desktop",dQ()),uQ="What this does when a shopper points at it, or taps it on a phone.",mQ="What this picture does when a shopper points at it. Black and white shows it in grey until then. A phone shows its colour.",hQ="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.",xQ="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.",IQ="When this shows. On card hover shows it while a shopper points at the card. A phone always shows it.",gQ="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.",bQ="Which of the product's pictures the card shows.",yQ="Same finish shows the photos of the finish the card shows, else the first group.",SQ="Whole card hides the words under the photo. Picture keeps the words and swatches in view.",wQ={none:()=>jo(HR,{}),nextImage:()=>jo(sQ,{}),rotate:()=>jo(lQ,{}),zoom:()=>jo(WR,{}),lift:()=>jo(nQ,{}),mono:()=>jo(eQ,{})};function Cy(e,o){let t=zR({label:i("Hover effect"),options:e.map(r=>({value:r,label:i(Un[r]),picture:wQ[r]()})),fallback:o});return UR(t,{type:"select",label:"Hover effect",options:e.map(r=>({value:r,label:Un[r]}))})}function GR(){return{[Sr]:fu({field:pt,in:fh.filter(e=>e!=="none")}),[pt]:Ro("desktop",{...Cy(fh,"none"),description:uQ})}}function jR(e){let o=XC(e),t=Qd(),r=ZE(UC);return{[Sr]:fu({any:[o,t]}),[so.kind]:Ro("desktop",{...Gs(Cy(NC,e),(a,n)=>qC(n??{},e)),description:gQ}),...vy(t),[MC]:pQ({type:"custom",render:()=>jo(fQ,{})},"always"),_cHover:$R(),[so.angle]:Ro("desktop",oo(Gs(r,a=>YC(a)),o)),[so.duration]:Ro("desktop",oo(zs("hover"),o)),[so.delay]:Ro("desktop",oo($s("hover"),o))}}function vy(e){let o=st("Type",jo(aQ,{}),zC.map(a=>({value:a,label:$C[a]})),Jd.kind),t=Cs("Group",jo(rQ,{}),GC.map(a=>({value:a,label:jC[a]})),Jd.group),r=Cs("Covers",jo(tQ,{}),KC.map(a=>({value:a,label:VC[a]})),Jd.cover);return{[so.mediaKind]:Ro("desktop",oo({...o,description:bQ},e)),[so.mediaGroup]:Ro("desktop",oo({...t,description:yQ},e)),[so.cover]:Ro("desktop",oo({...r,description:SQ},e))}}function ky(e,o="",t=xh.includes(o)){let r=Ih(e),a=tv(e);return{[Sr]:fu(r),[so.kind]:Ty(ZC,e,mQ),...xh.includes(o)?vy(Qd()):{},_cHover:$R(),...t?KR():{},[so.duration]:Ro("desktop",oo(zs("hover"),a)),[so.delay]:Ro("desktop",oo($s("hover"),a))}}function KR(e=!1){let o=a=>e?a:oo(a,ov()),t=Oo("Zoom",jo(WR,{}),zn.min,zn.max,zn.step,zn.min,zn.unit),r=Oo("Darken on hover",jo(iQ,{}),oa.min,oa.max,oa.step,oa.fallback,oa.unit);return{[uh.zoom]:Ro("desktop",o(t)),[uh.darken]:Ro("desktop",o(r))}}function Ty(e,o,t){let r=Ro("desktop",{...Gs(Cy(e,o),a=>QC({[pt]:a},o,e)),description:t});return Object.assign(r,{[VR]:o})}var VR="sfPictureResting",MR=new WeakMap;function CLe(e,o,t){let r=e[so.kind],a=r?.[VR];if(!r||!a)return e;let n=o.props?.[pt]==="nextImage",s=n?null:dc(t.appState,o.props?.id);if(!n&&!HC.includes(String(s?.type??"")))return e;let l=MR.get(e);return l||(l={...e,[so.kind]:Ty(ph,a,hQ)},MR.set(e,l)),l}var CQ="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.",vQ={none:()=>jo(HR,{}),[ih]:()=>jo(QJ,{})},vLe=Ro("desktop",{...UR(zR({label:i("Hover effect"),options:dh.map(e=>({value:e,label:i(ch[e]),picture:vQ[e]()})),fallback:"none"}),{type:"select",label:"Hover effect",options:dh.map(e=>({value:e,label:ch[e]}))}),description:CQ}),kQ=Ro("desktop",{...Cs("Show",jo(oQ,{}),[{value:hh,label:"Always"},{value:mh,label:"On card hover"}],hh),description:IQ});function qR(){let e={any:[Ih("none"),{field:pt,is:ih},{field:Ea,is:mh}]},{[Sr]:o,[so.kind]:t,...r}=ky("none","",!0);return{[Sr]:fu(e),[so.kind]:t,[Ea]:kQ,...vy(Qd()),...r,...KR(!0)}}var kLe=Ty(ph,"none",xQ);import{jsx as Wi}from"react/jsx-runtime";import{isNodeList as OQ}from"efficient-easel/data";import{useEasel as _Q}from"efficient-easel/easel";import{hiddenInView as AQ,hiddenKeyOf as Ey,hidePatch as RQ,slotChildName as LQ,slotChildRowName as FQ}from"efficient-easel/draw";var pu=null;function Py(e){pu=e}function YR(){return!!(pu&&pu.state().lockHolder)}function xn(){return pu!==null}var TQ=new Set(["BookingBox","SubmitBox"]);function PQ(e){return typeof e=="string"&&TQ.has(e)}var EQ=wT(PQ,YR);function uu(e,o){return EQ(e)||hI(o)}var mu=(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 BQ}from"efficient-easel/screen/lib/document/device-fields";import{NoControlMark as DQ}from"efficient-easel/screen/lib/document/panel-no-control-mark";var XR="notCardOfTemplate",ZR={not:{context:XR,is:!0}},Oy={any:[tc,ZR]},KLe={[XR]:(e,o)=>{let t=Fh(o.appState,e.props?.id);return t===void 0?void 0:t===null}};function hu(e){let o=e.props?.content;return OQ(o)?o:[]}var Iu=(e,o)=>AQ(e.props??{},o),NQ=(e,o)=>e.props?.[Ey(o)]!==void 0;function JR(e,o=()=>!1,t="desktop"){return hu(e).flatMap(r=>typeof r?.props?.id!="string"?[]:hu(r).length&&!Iu(r,t)?JR(r,o,t):o(r)?[]:[r])}function MQ(e,o,t,r="desktop"){let a=JR(e,t,r).map(l=>({child:l,name:o(l)})),n=new Set(a.map(l=>l.name)),s=new Set;return a.map(({child:l,name:d})=>{let c=d;if(s.has(d)){let f=2;for(;n.has(`${d} ${f}`);)f+=1;c=`${d} ${f}`,n.add(c)}return s.add(d),{id:l.props.id,label:c,shown:!Iu(l,r)}})}function xu(e,o,t){let r=a=>t==="desktop"?Iu(a,t):NQ(a,t);return hu(e).flatMap(a=>r(a)?o(a)?[]:[a,...xu(a,o,t)]:xu(a,o,t))}function HQ(e,o){let t={...e};for(let[r,a]of Object.entries(o))a===void 0||r===Ey("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 _y(e,o,t){let r=hu(e),a=!1,n=r.map(s=>{if(a)return s;let l=s;if(s?.props?.id===o){let d=HQ(s.props,t(s.props));d!==s.props&&(l={...s,props:d})}else l=_y(s,o,t);return a=l!==s,l});return a?{...e,props:{...e.props,content:n}}:e}function QR(e,o,t,r="desktop"){return _y(e,o,a=>r==="desktop"&&Iu({props:a},r)===!t?{}:RQ(a,r,!t))}function WQ(e,o,t){return t==="desktop"?QR(e,o,!0,t):_y(e,o,()=>({[Ey(t)]:void 0}))}function UQ(e,o,t,r,a,n){return LQ(e).trim()?t(e):Nv({ownerType:o,owner:r,fields:a,slot:n},Zt(e.props))?.label??t(e)}var zQ="This page is read-only.";function $Q({card:e,ownerType:o,owner:t,fields:r,slot:a,labelOf:n,write:s,readOnly:l,view:d="desktop"}){let c=p=>FQ(p,n,yr,void 0,mu),f=p=>uu(p.type,p),u=MQ(e,p=>UQ(p,o,c,t,r,a),f,d);return u.length?Wi(Ts,{parts:u,changed:xu(e,f,d).length>0,shown:p=>u.find(h=>h.id===p)?.shown??!0,disabledReason:l?zQ:void 0,onPress:(p,h)=>s(I=>QR(I,p,h,d)),onReset:()=>s(p=>xu(p,f,d).reduce((h,I)=>WQ(h,String(I.props.id),d),p))}):Wi(DQ,{})}function GQ(){try{let e=_Q(a=>a),o=e.config.components??{},t=e.selectedItem;if(!t)return null;let r=Fh(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:Uv(e.appState,r),slot:Wv(e.appState,t.props?.id)??void 0}}catch{return null}}function jQ({readOnly:e,view:o}){let t=GQ(),r=ta();return t?Wi($Q,{...t,view:o,readOnly:e,write:a=>{e||r(n=>{let s={...t.card,props:n},l=a(s);return l===s?null:{content:l.props.content}})}}):Wi(Ts,{parts:[],changed:!1,shown:()=>!0,onPress:()=>{},onReset:()=>{}})}function VLe(e){return oo(BQ(e,{type:"custom",render:({readOnly:o})=>Wi(jQ,{readOnly:o,view:e})}),ZR)}import{customize as oee}from"efficient-easel/screen/lib/document/box-fields";import{jsx as Ay}from"react/jsx-runtime";import{DirectionIcon as KQ,LoopMarqueeIcon as VQ,NoSymbolIcon as qQ}from"efficient-easel/icons";import{customize as YQ,describedAs as XQ,group as ZQ}from"efficient-easel/screen/lib/document/box-fields";import{effectTiles as JQ}from"efficient-easel/screen/lib/document/effect-tiles";function Ry(){return jO("Direction",py,Ni,"A marquee cannot run diagonally, so the corners are not answers.",Ay(KQ,{}),GO)}var Ly=e=>ZQ("Loop",e?{dot:e}:void 0),QQ={none:()=>Ay(qQ,{}),scroll:()=>Ay(VQ,{})};function eee(){let e=JQ({label:i("Loop"),options:Qp.map(({value:o,label:t})=>({value:o,label:i(t),picture:QQ[o]()})),fallback:fy});return XQ(e,{type:"select",label:"Loop",options:Qp.map(({value:o,label:t})=>({value:o,label:t}))})}function eL(){return{[eu]:Ly(Di),loop:eee(),_cLoop:YQ(),scrollDirection:oo(Ry(),Di),loopDuration:oo(tu({readsSpeed:!1}),Di),loopDelay:oo(ru(),Di)}}var oL={field:Ea,set:!0};function tee(){let e=qR(),o=[Sr,pt],t=jn(e,Object.keys(e).filter(n=>!o.includes(n)&&n!==Ea),tc),r=jn(t,[Ea],oL),a=jn(r,[pt],Oy);return jn(a,[Sr],{any:[Oy,oL]})}function tL(e,o=""){switch(e){case"section":case"block":return{...jt(),...hn()};case"box":return{...jt(),...hn(),...eL(),...tee()};case"picture":return{...jt(),...hn(),...ky(JC(o),o)};case"textPart":return{...jt(),...hn(),...GR()};case"cards":return{...jt(),...hn(),...jR(WC(o))};case"marquee":return{...jt(),...hn(),[eu]:Ly(),_cLoop:oee(),scrollDirection:Ry(),loopDuration:tu({readsSpeed:!0}),loopDelay:ru()}}}import{ENTRANCE_STATE_ATTR as ree,entranceAttrs as aee,scrollAttrs as nee}from"efficient-shell/format";var aL={},Fy="_partMotion",By=[...Ic,pt,so.duration,so.delay,...du];function CFe(e){return Rs(e,Fy)}function In(e,o){return Pp(e,Fy,o)}var see=new Set([tt.kind,pt,Ao.effect]);function nL(e,o,t,r){let{[t]:a,...n}=In(e,o),s=r==null||r===""||r==="none"&&see.has(t)?n:{...n,[t]:r};return Ep(e,Fy,o,Object.keys(s).length?s:null)}function Dy(e){return{entrance:gc(e),hover:DC(e),scroll:cu(e)}}function sL(e){let o=Dy(e);return o.entrance!==null||o.hover!=="none"||o.scroll!==null}function lL(e,o){let{attrs:t,style:r}=aee(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(ree)}}function iL(e,o){let{attrs:t,style:r}=nee(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 lee=4;function Ny(e){let o;for(let t of e)(!o||t.element.compareDocumentPosition(o.element)&lee)&&(o=t);return o}var iee="data-sf-part-host";function dL(e){let o=e?.ownerDocument.defaultView,t=e;for(;t&&!t.hasAttribute(iee)&&!t.classList.contains(Qn);){let r=o?.getComputedStyle(t).display??"";if(r==="contents")return null;if(r!=="inline")return t;t=t.parentElement}return null}var gu="data-sf-part-lift",rL="sf-part-lift";function cL(e){if(e.getElementById(rL))return;let o=e.createElement("style");o.id=rL,o.textContent=s1(`[${gu}]`).join(`
|
|
5
|
+
`),e.head.appendChild(o)}var fL=new Map,pee=e=>{let o=fL.get(e);return o||fL.set(e,o=gR(tL(e),`part:${e}`)),o},uee=new Set(By);function Ks(e,o,t){let{getItemById:r,getSelectorForId:a}=cee(f=>f),n=fee(),s=r(e)?.props??{},l=In(s,o),d=JSON.stringify(l),c=dee(()=>Object.fromEntries(By.map(f=>[f,l[f]])),[d]);return{part:o,fields:pee(t),values:c,keys:uee,onChange:(f,u)=>{let p=a(e),h=r(e);if(!p||!h)return;let I=nL(h.props??{},o,f,u);n.replaceComponent(p.zone,p.index,{...h,props:I})}}}import{Fragment as mee,createElement as hee}from"react";import{deviceField as My}from"efficient-easel/screen/lib/document/device-fields";var Lo=()=>({type:"custom",render:()=>hee(mee)});var Hy={words:Lo(),sourceNote:Lo(),style:Lo(),font:Lo(),italic:Lo(),fontSize:My("each",Lo()),lineHeight:Lo(),letterSpacing:Lo(),paragraphSpacing:Lo(),padding:Lo(),align:My("each",Lo()),letterCase:Lo(),fixedSizeHint:My("each",Lo()),regionNote:Lo(),regionStyle:Lo()},xee=["fontSize","align"];function pL(e){return xee.includes(e)}var uL={showTicker:Lo(),items:Lo()};var Pee="root:default-zone";function mL({heroId:e}){let{appState:o,dispatch:t}=See(h=>h),r=o.data.content??[],a=r.findIndex(h=>h.props.id===e),n=a>=0?r[a]:null,s=n?n.props.showTicker??!0:!0,l=yee(()=>{let h=n?.props.tickerItems;return Array.isArray(h)?h:_A.map(I=>({text:I}))},[n]),d=bee(),c=Tee(),f=h=>kee(uL[h],c),u=Ks(e,AA,"block");if(!n)return gn("p",{className:"sf-note",children:i("This ticker\u2019s hero is no longer on the page.")});let p=h=>t({type:"replace",destinationZone:Pee,destinationIndex:a,data:{...n,props:{...n.props,...h}}});return gn(Kt,{motion:u,body:gee(Iee,{children:[!f("showTicker")&&!f("items")&&gn(un,{}),f("showTicker")&&gn(wee,{label:i("Show ticker"),labelId:d,icon:gn(vee,{}),action:gn(Cee,{checked:s,onChange:h=>p({showTicker:h}),ariaLabelledBy:d})}),f("items")&&gn(Pg,{label:Tg.label,icon:Tg.icon,items:l,placeholder:"item",onChange:h=>p({tickerItems:h}),markup:!0})]})})}import{jsx as oe,Fragment as Ki,jsxs as St}from"react/jsx-runtime";import{useContext as Xee,useEffect as Wy,useRef as Zee,useState as FL}from"react";import{FieldSelect as Jee,InspectorField as Qee,fieldShownInView as eoe}from"efficient-easel/fields";import{InertHint as $L,SettingsField as ooe}from"efficient-easel/panel";import{InspectorUpLevel as Tu}from"efficient-easel/chrome";import{StylesIcon as toe,TypeIcon as roe}from"efficient-easel/icons";import{useEasel as aoe}from"efficient-easel/easel";import{TextPartPanel as BL}from"efficient-easel/copy";import{Button as noe,IconButton as soe,Tooltip as loe}from"efficient-shell/ui";import{jsx as IL,jsxs as Eee}from"react/jsx-runtime";import{DEFAULT_EASEL_STRINGS as Oee}from"efficient-easel/strings";import{COPY_CELLS as Vs,COPY_CELL_LENGTHS as hL,CopyBox as _ee,lengthCellUnits as Aee}from"efficient-easel/copy";import{PaddingYIcon as Ree}from"efficient-easel/icons";import{onDesktopWords as Lee}from"efficient-easel/screen/lib/document/box-fields";var xL=Oee.copy.cells,Fee={kind:"spacing"},Bee=["left","center","right","justify"];function bu(e,o,t,r="desktop"){let a=Si(e),n=ub(r),s=e[n]??e.size??o.sizePx,l=u1(e,r),d=(f,u,p,h,I)=>{let g=gt[p];return Aee({preset:f,row:u,table:qa,unit:e[g],value:e[p],tier:r,styleValue:h,label:i(I),onPick:(C,w)=>t({[g]:C??null,[p]:w??null}),onChange:(C,w)=>t({...w?{[g]:w.unit??null}:{},[p]:C??null})})},c={key:"padding",name:i("Padding"),icon:IL(Ree,{}),unit:"px",step:db,shiftStep:10,min:lb,max:ib};return[{...Vs.fontSize,key:"fontSize",value:e[n],styleValue:Math.round(o.sizePx),onChange:f=>t({[n]:f??null}),...d(Vs.fontSize,hL.fontSize,n,Math.round(o.sizePx),xL.fontSize),...n==="size"?{}:{reset:{detail:l?Lee(f=>i(f),`${l.px}px`,l.view):void 0}}},{...Vs.lineHeight,key:"lineHeight",value:a.lineHeight,styleValue:o.lineRatio,onChange:f=>t(f===void 0?{lineHeight:null,line:null}:{lineHeight:f})},{...Vs.letterSpacing,key:"letterSpacing",scale:s,value:a.letterSpacingEm,styleValue:o.letterEm,onChange:f=>t(f===void 0?{letterSpacing:null,letter:null}:{letterSpacing:f})},{...Vs.paragraphSpacing,key:"paragraphSpacing",value:e.paragraphSpacing,styleValue:0,onChange:f=>t({paragraphSpacing:f??null}),...d(Vs.paragraphSpacing,hL.paragraphSpacing,"paragraphSpacing",0,xL.paragraphSpacing)},{...c,value:e.padding,styleValue:o.paddingPx,onChange:f=>t({padding:f??null}),...d(c,Fee,"padding",o.paddingPx,"Padding")}]}function gL({text:e,onTextChange:o,multiline:t,markup:r=!0,styled:a=!0,style:n,base:s,setValue:l,colors:d,placeholder:c,ariaLabel:f,head:u,typedOnCanvas:p=!1}){let h=bu(n,s,l),I=Ug(r,t);return Eee("div",{className:"sf-part-textbox",children:[u,IL(_ee,{value:e,onChange:o,multiline:t,placeholder:c,ariaLabel:f,rules:Yd,tools:I,barShows:p?"focus":"always",colors:r?d:[],colorNameOf:rt,align:a?{value:n.align??s.align,allow:Bee,onChange:g=>l({align:g})}:void 0,letterCase:a?{value:n.case==="capitalize"?"":n.case??"",onChange:g=>l({case:g||null})}:void 0,cells:a?h:void 0})]})}import{UiIcon as DL}from"efficient-easel/draw/client";import{jsx as yu,Fragment as Dee,jsxs as Nee}from"react/jsx-runtime";import{Button as bL,Dialog as Mee}from"efficient-shell/ui";function yL({styleName:e,onCancel:o,onConfirm:t}){return yu(Mee,{open:!0,onClose:o,role:"alertdialog",size:"sm",title:i("Update {style}?",{style:e}),footer:Nee(Dee,{children:[yu(bL,{variant:"secondary",onClick:o,children:i("Cancel")}),yu(bL,{variant:"primary",onClick:t,children:i("Update style")})]}),children:yu("p",{children:i("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 ioe}from"efficient-easel/screen/components/ScreenDocumentContext";import{usePreviewDevice as doe}from"efficient-easel/draw/client";import{shownTier as vu}from"efficient-easel/screen/lib/document/device-fields";import{jsx as Hee}from"react/jsx-runtime";import{createContext as Wee,useContext as Uee,useMemo as zee,useState as $ee}from"react";var Gee={partStyle:null,setPartStyle:()=>{}},SL=Wee(Gee);function hBe({children:e}){let[o,t]=$ee(null),r=zee(()=>({partStyle:o,setPartStyle:t}),[o]);return Hee(SL.Provider,{value:r,children:e})}function wL(){return Uee(SL)}import{TEXT_FIELD_MARKER as coe,viewKeyAt as foe}from"efficient-easel/draw";import{useSectionOps as poe}from"efficient-easel/screen/lib/document/use-section-ops";var Ui="@name",CL="@body",vL="@value",kL={[Ui]:"Name",[CL]:"Body",[vL]:"Value"},jee={TimelineTrack:{"entries.date":Ui,"entries.title":Ui,"entries.blurb":CL},Footprint:{"offices.city":Ui},Stats:{"items.label":Ui,"items.value":vL}};function Kee(e){let{key:o,row:t}=$t(e);return t?`${o}.${t.rowKey}`:null}function zi(e,o){if(!e)return o;let t=Kee(o);return t?K(jee,e)?.[t]??o:o}import{useEaselHost as uoe}from"efficient-easel/screen/lib/host";function Vee(e){let o=new Set([...Object.keys(K(uf,e)??{}),...K(mf,e)??[]]);for(let[t,r]of Object.entries(K(qx,e)??{}))r.verb==="snapshot"&&o.add(t);return[...o].sort()}var qee={CollectionCard:"product",FooterMenu:"menu",Gallery:"product",GalleryItem:"product",ProductGrid:"product",ProductHero:"product",SpecTable:"product",Events:"blog",FeaturedCover:"blog",LongRead:"blog",SubscribeBlogs:"blog"},TL={product:"Synced from the product.",blog:"Synced from the blog post.",menu:"Synced from the site menu."},PL="Open",EL={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 qs(e){let o=e?.source?.slug;return Se(o)}function $i(e){return K(qee,e)??null}function OL(e,o){let t=$i(e);return t&&Vee(e).includes(o)?t:null}function Su(e){let o=e?.menu?.id;return Se(o)}var Gi={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)]"},Yee={tag:{label:"Tag",follows:"Labels",builtIn:Vn(Gi.tag),writable:!0},name:{label:"Name",follows:"Heading 2",builtIn:Vn(Gi.name),writable:!0},body:{label:"Body",follows:"Body",builtIn:Vn(Gi.body),writable:!0},price:{label:"Price",follows:"Labels",builtIn:Vn(Gi.price),writable:!0},link:{label:"Link",follows:"Labels",builtIn:Vn(Gi.link),writable:!0}},_L=Yee;var wu={entry:{label:"Entry",follows:"Labels",builtIn:"13px",writable:!0},number:{label:"Entry number",follows:"Labels",builtIn:"13px",writable:!0}};var ABe=sc,AL={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 RL={SpecTable:AL,FAQ:vv,Collections:_L,Contents:wu};function LL(){return Vd("efficient.section-text-regions",()=>new Map)}function HBe(e){let o=LL();for(let[t,r]of Object.entries(e)){if($e(RL,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 Cu(e){return e?K(RL,e)??LL().get(e)??null:null}function Uy(e){return e?i(e):null}function NL(e){return e.kind==="role"?lh[e.role]:e.kind==="custom"?"Custom":null}function moe(e){let o=br(e.role);return o?{kind:"role",role:o}:null}function hoe(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 ku(e,o,t,r){return moe(yi(e,o))??hoe(t,r)}function xoe(e,o){if(!e.length)return null;let t=o(e[0]);return e.every(r=>o(r)===t)?t:null}function ML(e){return[{value:ji,label:i("No style"),description:i("Section\u2019s own")},...e.map(o=>({value:o.id,label:o.name,description:o.values.font?Hn(o.values.font)?.label:void 0}))]}var ji="";function Ioe({face:e,base:o,onPick:t}){let r=e.kind==="role"?e.role:ji,a=[{label:i("No style"),value:ji},...TC.map(n=>({label:i(lh[n]),value:n}))];return oe(Jee,{ariaLabel:i("Style"),value:r,options:a,inline:!0,onChange:n=>t(n===ji?null:n),renderOption:n=>n.value===ji?St(Ki,{children:[oe("span",{className:"es-fsel-label sf-part-style-keep",children:n.label}),oe("span",{className:"sf-part-style-aside","aria-hidden":"true",children:i("Section\u2019s own")})]}):oe("span",{className:"es-fsel-label",style:{fontFamily:`var(--font-role-${n.value})`},children:n.label}),renderValue:()=>oe("span",{style:{fontFamily:o?.fontKey?`var(${Hn(o.fontKey)?.cssVar})`:void 0,fontWeight:o?.weight},children:Uy(NL(e))}),valueText:n=>Uy(NL(e))??n?.label??""})}var GL=["regionNote","regionStyle"],goe=Object.keys(Hy).filter(e=>!GL.includes(e));function jL(e,o){return!e.some(o)}function boe({sectionName:e,onBack:o,textEditor:t,styleRow:r,children:a,tabs:n}){let s=St(Ki,{children:[t,r,a]});return St("div",{className:"sf-part-panel",children:[oe(Tu,{inline:!0,name:i(e),onSelect:o}),n?n(s):s]})}function Pu({source:e,slug:o,menuId:t}){let r=uoe(),a=EL[e],n=!a.needsSlug||!!o;return oe("div",{className:"sf-note sf-note--source",children:St($L,{children:[i(TL[e]),n?St(Ki,{children:[" ",oe(noe,{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:i(PL)})]}):null]})})}var HL=4,yoe=120;function WL(e){return i("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:i(e.label).toLowerCase()})}function UL({region:e,sizePx:o,face:t,base:r,onFollowStyle:a,source:n,slug:s,onBack:l,shows:d,sizedStyle:c,ownLook:f}){let u=e.follows;return St("div",{className:"sf-note",children:[oe("p",{children:oe("strong",{children:i(e.label)})}),d("regionNote")&&!f&&oe("p",{children:o?i("Its size follows Styles \u25B8 {follows} \u2014 {px}px right now.",{follows:i(u),px:Math.round(o)}):i("Its size follows Styles \u25B8 {follows}.",{follows:i(u)})}),c?St(Ki,{children:[c,d("regionStyle")&&oe("p",{className:"es-field-hint",children:WL(e)})]}):a?d("regionStyle")?oe(Ki,{children:oe(ooe,{label:i("Style"),icon:oe(toe,{}),hint:WL(e),children:oe(Ioe,{face:t,base:r,onPick:a})})}):null:d("regionNote")&&oe("p",{className:"es-field-hint",children:i("Only the size follows a site style. This section sets its own font, weight and letter case.")}),n&&d("sourceNote")?oe(Pu,{source:n,slug:s}):null,jL([...GL,"sourceNote",...c?["fontSize"]:[]],p=>d(p)&&(p!=="sourceNote"||!!n))&&oe(un,{}),oe(Tu,{inline:!0,name:i("Page"),onSelect:l})]})}function Soe({onBack:e}){return St("div",{className:"sf-note",children:[oe("p",{children:oe("strong",{children:i("This part is no longer here.")})}),oe("p",{children:i("The section it belonged to has been changed or removed.")}),oe(Tu,{inline:!0,name:i("Page"),onSelect:e})]})}function woe({onBack:e,partId:o,why:t}){return St("div",{className:"sf-note",children:[oe("p",{children:oe("strong",{children:i("This part's settings did not open.")})}),oe("p",{children:i("The words are still on your page and nothing has been lost. The editor could not work out which control belongs to them, which is a fault on our side. Go back and click the section to open its settings instead.")}),oe("p",{className:"sf-note-detail",children:St("code",{children:[o," \u2014 ",t]})}),oe(Tu,{inline:!0,name:i("Page"),onSelect:e})]})}function KL({nodeId:e,propKey:o,onBack:t,onEditStyle:r}){let{getItemById:a,getSelectorForId:n,config:s}=aoe(V=>V),l=poe(),d=S_(),{partStyle:c}=wL(),{fonts:f,textStyles:u}=he(),p=Xee(ioe),h=!p?.capabilities?.hasSiteTheme,{persist:I}=hs({themeFromDocument:h,tokenRef:p?.tokenRef,siteId:p?.siteId??null}),g=Mp({themeFromDocument:h,persist:I}),[C,w]=FL(!1),T=doe(),y=V=>(vu(T)!=="tablet"||pL(V))&&eoe(Hy[V],T),b=Zee(null),P=a(e),H=n(e),E=P?s.components[P.type]:void 0,{key:W,row:O}=$t(o),D=E?.fields?.[W],v=O?_s(D,O):D,_=ip(e,o),A=P?.props??{},F=Ps(v),z=Yf(v),$=Rg(v),X=P?$i(P.type):null,ee=P?OL(P.type,W):null,Fe=O?ui(A[W],O):A[W],Oe=!!O&&!(Array.isArray(A[W])&&O.index<A[W].length);Wy(()=>{y_(document)||b.current?.querySelector(".es-copy [contenteditable='true'], .es-copy textarea, .sf-copybox textarea, .sf-copybox input")?.focus()},[_]);let[ze,Ke]=FL(0);Wy(()=>Ke(0),[_]);let be=!!P&&!Oe&&(!H||!v);Wy(()=>{if(!be||ze>=HL)return;let V=setTimeout(()=>Ke(no=>no+1),yoe);return()=>clearTimeout(V)},[be,ze]);let Te=be&&ze<HL,_e=Ks(e,zi(P?.type,o),"textPart");if(!P||Oe)return oe(Soe,{onBack:t});let Ne=Cu(P.type),ao=Ne?Tl(Ne,o):null;if(Ne&&ao){let V=c?.partId===_?c:null,no=Ne[ao],At=no.writable===!0&&!!H,zr=ka=>{H&&l.replaceComponent(H.zone,H.index,{...P,props:an(A,o,"role",ka)})};if(At&&Cv(no)){let ka=yi(A,o),hC=Ta=>{if(!H)return;let nh=A;for(let[l3,i3]of Object.entries(Ta))nh=an(nh,o,l3,i3??null);l.replaceComponent(H.zone,H.index,{...P,props:nh})},a3=Br(g.saved,g.old),n3=sb(ka)??"",s3=bu(ka,V?.base??zL,hC,vu(T)).filter(Ta=>Ta.key==="fontSize"&&y(Ta.key));return oe(Kt,{motion:_e,body:oe(UL,{region:no,sizePx:V?.base.sizePx??null,face:ku(A,o,V,f),base:V?.base??null,source:X,slug:qs(A),onBack:t,shows:y,ownLook:h1(ka),sizedStyle:oe(BL,{style:y("style")?{value:n3,options:ML(a3),onChange:Ta=>hC(Ta?{textStyle:Ta}:{textStyle:null,role:null}),onEditStyles:r}:void 0,cells:s3})})})}return oe(Kt,{motion:_e,body:oe(UL,{region:no,sizePx:V?.base.sizePx??null,face:ku(A,o,V,f),base:V?.base??null,onFollowStyle:At?zr:void 0,source:X,slug:qs(A),onBack:t,shows:y})})}if(!H||!v)return Te?oe("div",{className:"sf-note","aria-busy":"true"}):oe(woe,{onBack:t,partId:_,why:H?"no field":"no selector"});let yo=V=>{l.replaceComponent(H.zone,H.index,{...P,props:V})},ie=V=>{if(la(V).hidden!==la(Fe).hidden||!F){let no=O?_g(A,W,O,V):{...A,[W]:V};no&&yo(no);return}fp({node:P,propKey:o,kind:F,zone:H.zone,index:H.index},la(V).text,l.replaceComponent)},Me=Fe,Ve=c?.partId===_?c:null,J=Ve?.styleOwner,Ae=J?a(J.owner):null,ft=J&&Ae?n(J.owner):null,fo=!!(J&&Ae&&ft),M=fo?Ae.props??{}:A,Le=fo?V=>l.replaceComponent(ft.zone,ft.index,{...Ae,props:V}):yo,ye=fo?J.kind:zi(P?.type,o),po=yi(M,ye),Be=[{partKey:ye,face:ku(M,ye,Ve,f),sizeGroup:Ve?.sizeGroup??null,base:Ve?.base??zL,style:po}],_t=xoe(Be,V=>V.sizeGroup),hr=fs(Ve?.inks),Ze=(V,no)=>{let At=M;for(let zr of Be)At=an(At,zr.partKey,V,no);Le(At)},xr=V=>V?Ze("textStyle",V):ya({textStyle:null,role:null}),ya=V=>{let no=M;for(let At of Be)for(let[zr,ka]of Object.entries(V))no=an(no,At.partKey,zr,ka??null);Le(no)},Nn=F==="text"||F==="textarea",{text:Mn,hidden:Ir}=la(Fe),Ur=v?.[coe]?.label??o,Sa=Ir?i("Show {label} on the slide",{label:i(Ur)}):i("Hide {label} on the slide",{label:i(Ur)}),gl=St("div",{className:"sf-field-head",children:[oe(roe,{}),oe("span",{className:"sf-field-label sf-field-label--inline",children:i(Ur)}),Nn&&oe(loe,{content:Sa,children:oe(soe,{"aria-pressed":Ir,"aria-label":Sa,onClick:()=>ie({text:Mn,hidden:!Ir}),children:Ir?oe(DL,{name:"eye-off",size:14}):oe(DL,{name:"eye",size:14})})})]}),wa=!z&&$,jd=!!F&&(EO(v)||z||Ir||!$),bl=ku(M,ye,Ve,f),Kd=bl.kind==="role"?bl.role:null,Ca=sb(po)??_1(Kd),mC=Br(g.saved,g.old),Q5=Object.entries(po).filter(([V,no])=>V!=="role"&&V!=="textStyle"&&no!==void 0).length,e3=()=>{let V=M;for(let no of Be){let{role:At,textStyle:zr}=no.style;V=c1(V,no.partKey),At&&(V=an(V,no.partKey,"role",At)),zr&&(V=an(V,no.partKey,"textStyle",zr))}Le(V)},va=Ca,o3=A1(Be[0].style),t3=va?mC.find(V=>V.id===va)?.name??va:"",r3=()=>{w(!1),va&&(g.write(R1({saved:g.saved,old:g.old,styleId:va,values:vb(Be[0].style)}),!0),e3())};return St(boe,{sectionName:E?.label??P.type,onBack:t,tabs:V=>oe(Kt,{motion:_e,body:V}),textEditor:y("words")?oe("div",{ref:b,className:"sf-part-text",children:jd?oe(gL,{text:Mn,onTextChange:V=>ie(Nn?{text:V,hidden:Ir}:V),multiline:ap(F),markup:F!=="plainText",styled:!1,style:Be[0].style,base:Be[0].base,setValue:ya,colors:hr,placeholder:Uy(JO(v))??void 0,ariaLabel:i(Ur),head:gl,typedOnCanvas:d===_}):F?Nn?gl:null:oe(Qee,{field:v,name:o,value:Me,onChange:ie,id:`sf-part-${e}-${o}`})}):void 0,children:[ee&&y("sourceNote")&&oe(Pu,{source:ee,slug:qs(A),menuId:Su(A)}),wa&&oe(BL,{style:y("style")?{value:Ca??"",options:ML(mC),onChange:V=>xr(V||null),changed:Q5>0,onEditStyles:r,onUpdateStyle:va&&o3?()=>w(!0):void 0}:void 0,font:y("font")?{value:po.font??"",styleValue:Hn(Be[0].base.fontKey)?.label,options:$r.map(V=>({label:V.label,value:V.key})),onChange:V=>Ze("font",V||null)}:void 0,italic:y("italic")?{value:po.italic,styleValue:voe(u,Ca),onChange:V=>Ze("italic",V??null)}:void 0,cells:bu(Be[0].style,Be[0].base,ya,vu(T)).filter(V=>y(V.key)),align:y("align")?Coe(po,Be[0].base.align,vu(T),Ze):void 0,letterCase:y("letterCase")?{value:po.case??"",styleValue:Be[0].base.case,onChange:V=>Ze("case",V||null)}:void 0}),C&&va&&oe(yL,{styleName:t3,onCancel:()=>w(!1),onConfirm:r3}),wa&&_t===null&&y("fixedSizeHint")&&oe($L,{children:i("Fixed size \u2014 the site\u2019s Text setting doesn\u2019t resize this.")}),jL(goe,V=>y(V)&&(V==="words"||(V==="sourceNote"?!!ee:V==="fixedSizeHint"?wa&&_t===null:wa)))&&oe(un,{})]})}function Coe(e,o,t,r){let a=foe("align",t),n=p1(e,t);return{value:e[a]??"",styleValue:n??o,onChange:s=>r(a,s||null)}}function voe(e,o){return!o||!Array.isArray(e)?!1:e.find(t=>t?.id===o)?.values?.italic===!0}var zL={fontKey:"",sizePx:16,weight:400,lineRatio:1.4,letterEm:0,align:"left",case:"none",paddingPx:0};import{jsx as Vt,jsxs as Yy,Fragment as Roe}from"react/jsx-runtime";import{useCallback as Loe,useRef as Foe,useState as Yi}from"react";import{InspectorIconButton as Boe}from"efficient-easel/chrome";import{useEasel as Doe}from"efficient-easel/easel";import{PopupMenu as Noe,PopupMenuItem as Moe,PopupMenuLabel as Fu}from"efficient-shell/ui";import{CopyToPageIcon as Hoe}from"efficient-easel/icons";import{useEaselSession as Woe}from"efficient-easel/screen/lib/session-context";import{cloneNodeWithFreshIds as Uoe}from"efficient-easel/screen/lib/document/section-doc";import{FOOTER_TYPE as zoe}from"efficient-easel/draw";import{currentEaselSession as koe}from"efficient-easel/screen/lib/session";var Toe={general:!0,commerce:!0,service:!0};function zy(e){let o=e?.sets;return o?Object.fromEntries(yC.map(t=>[t,o.includes(t)])):Toe}function $y(e=koe()){return zy(e.blocks)}import{isBackendError as Ys}from"efficient-easel/screen/lib/backend-error";import{isEfficientBackend as tF}from"efficient-easel/screen/lib/session";var Eu=Ac(),Gy=Eu.set;function Ou(e,o){Gy(e,o)}function _u(e,o){let t=Eu.get(e);Gy(e,o??(t==="live"?"changed":t))}function Au(e,o){Gy(e,o??"live")}function VL(e){return Eu.get(e)}function qL(e){return Eu.use(e)}function YL(e,o){return e==="live"&&o?"changed":e}function jy({live:e,onPress:o,busy:t=!1,pinnedUnpublished:r=!1,goingLive:a}){let n=e==="live"&&!r,s=e==="changed"?i("Changes not live yet"):e==="never"?i("Never published"):r?i("Header and footer not live yet"):e==="live"?i("Everything is live"):null;return{label:i("Publish"),tooltip:e==="never"?i("Put this page on your site"):i("Put your changes on your site"),status:s,quiet:n?{label:i("Published"),reason:i("Everything is live")}:null,...a&&a.length?{goingLive:a}:{},onPress:o,busy:t}}function XL(e){return e.map(o=>o.change==="take_down"?i("{name} (taken down)",{name:o.name}):o.name)}var ZL="SharedSection",Poe=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i,Vi=e=>{let o=e?.content;return Array.isArray(o)?o:[]},qi=e=>{let o=e?.props?.id;return typeof o=="string"?o:void 0};function JL(e){if(e?.type!==ZL)return null;let o=e.props?.section;return typeof o=="string"&&Poe.test(o)?o.toLowerCase():null}function QL(e){let o=[];for(let t of Vi(e)){let r=JL(t),a=qi(t);r&&a&&o.push({refId:a,section:r})}return o}function Ru(e){let o=Vi(e)[0];return o&&typeof o=="object"&&qi(o)?o:null}function Eoe(e,o){return{type:ZL,props:{id:e,section:o}}}function eF(e,o){let t=new Map,r=new Set,a=!1,n=Vi(e).map(s=>{let l=JL(s),d=qi(s);if(!l||!d||r.has(l))return s;let c=Ru(o.get(l)),f=qi(c??void 0);return!c||!f||t.has(f)?s:(r.add(l),t.set(f,{section:l,refId:d,reference:s}),a=!0,c)});return{working:a?{...e,content:n}:e,held:t}}function oF(e,o,t){let r=new Map,a=!1,n=Vi(e).map(s=>{let l=qi(s),d=l?o.get(l):void 0,c=d?t.get(d.section):void 0;if(!d||!c||r.has(d.section))return s;let f=Vi(c).slice(1),u=Ru(c);return r.set(d.section,u===s?c:{...c,content:[s,...f]}),a=!0,d.reference??Eoe(d.refId,d.section)});return{page:a?{...e,content:n}:e,docs:r}}function qy(e){return!!(e?.publish&&e.liveState)}function Ooe(e,o){if(!qy(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,l)=>r.call(e,s,l,o),restore:(s,l)=>a.call(e,s,l??{},o),preview:s=>n.call(e,s,o)}}function _oe(e,o){return async(t,r)=>{try{await x0()}catch(a){throw new Error(i("A change waiting to go live could not be saved."),{cause:a})}return(await e.publish(o)).state==="live"?If({state:"live",changes:[]}):Or(0),{version:r??null}}}function Vy(e,o,t){let r=o?{siteId:o}:void 0;return{resolve:a=>e.load({slug:a,...r}).then(n=>(n&&(Ou(n.id,n.live),TT(n.id,n.videoFrames)),n)),saveLayout:(a,n,s,l)=>e.save(a,{layout:n},{version:s,clientId:l??""}).then(d=>(_u(a,d.live),PT(a,d.videoFrames),Or(),d)),rereadVersion:e.version?a=>e.version(a):void 0,publish:qy(t)?_oe(t,r):e.publish?(a,n)=>e.publish(a,n?{version:n}:void 0).then(s=>(Au(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 Aoe(e,o,t,r,a=!1){let n=null,s=new Set,l=!1,d=new Map,c=new Map,f=new Map,u=new Map,p={docId:null,lockHolder:null,conflict:null,saveFailed:!1,unpublished:!1,loadFailed:!1,sections:[]},h=new Set,I=()=>{if(!n)return!1;let O=VL(n.id);return O==="changed"||O==="never"||O===void 0&&l},g=O=>{p={...p,...O,docId:n?.id??null,unpublished:I(),sections:[...f.values()]};for(let D of h)D()},C=(O,D,v)=>{D?f.set(O,{section:O,title:d.get(O)?.title??"",problem:D,holder:v}):f.delete(O)},w=O=>O&&typeof O=="object"&&!Array.isArray(O)?O:{},T=O=>s.has(O),y=()=>new Map([...d].map(([O,D])=>[O,D.layout])),b=()=>`SharedSection-${typeof crypto<"u"&&crypto.randomUUID?crypto.randomUUID():Math.random().toString(36).slice(2)}`,P=(O,D,v,_)=>{let A=w(D);d.set(O,{layout:A,version:v,savedJson:JSON.stringify(A),title:_})},H={state:()=>p,subscribe:O=>(h.add(O),()=>{h.delete(O)})},E={sectionOf:O=>c.get(O)?.section??null,heldElsewhere:O=>{let D=c.get(O)?.section;return!!(D&&f.get(D)?.problem==="lock")},adopt:(O,D)=>{P(D.id,D.layout,D.layout_updated_at,D.title),c.set(O,{section:D.id,refId:b()}),u.set(D.id,D.used_on),g({})},place:O=>{if([...c.values()].some(_=>_.section===O.id))return null;let D=Ru(w(O.layout)),v=typeof D?.props?.id=="string"?D.props.id:null;return!D||!v||!D.type?null:(P(O.id,O.layout,O.layout_updated_at,O.title),c.set(v,{section:O.id,refId:b()}),u.set(O.id,O.used_on),D)},usedOn:O=>u.get(O)??null,learn:O=>{for(let D of O){u.set(D.id,D.used_on);let v=d.get(D.id);v&&(v.title=D.title);let _=f.get(D.id);_&&f.set(D.id,{..._,title:D.title})}g({})}},W=async(O,D)=>{for(let[v,_]of O){let A=d.get(v),F=JSON.stringify(_);if(!(!A||F===A.savedJson||f.get(v)?.problem==="lock"))try{let z=await e.save(v,{layout:_},{version:A.version,clientId:D??""});_u(v,z.live),A.layout=_,A.version=z.version,A.savedJson=F,C(v,null)}catch(z){Ys(z,"changed-elsewhere")?C(v,"conflict"):Ys(z,"lock-taken")?C(v,"lock",z.holder??void 0):C(v,"save")}}O.size&&Or(),g({})};return{resolve:async O=>{if(Py(O===Mt?null:H),cx(O===Mt?null:E),d=new Map,c=new Map,f=new Map,u=new Map,O===Mt)return t.resolve(O);let D=!1,[v,_]=await Promise.all([t.resolve(O),e.load({slug:Mt,...o}).catch(()=>(D=!0,null))]);if(_&&!Yl(v?.layout)){Ou(_.id,_.live);let ee=w(_.layout);n={id:_.id,layout:ee,version:_.version,savedJson:""}}else n=null;if(l=!1,!v)return g({conflict:null,saveFailed:!1,loadFailed:D}),v;let A=w(v.layout),F=QL(A),z=await Promise.all(F.map(ee=>e.load({id:ee.section,...o}).catch(()=>null)));F.forEach((ee,Fe)=>{let Oe=z[Fe];Oe?(Ou(Oe.id,Oe.live),P(ee.section,Oe.layout,Oe.version,"")):(d.delete(ee.section),f.set(ee.section,{section:ee.section,title:"",problem:"load"}))});let $=eF(A,y());if(c=$.held,!n)return c.size&&s.add(v.id),g({conflict:null,saveFailed:!1,loadFailed:D}),c.size?{...v,layout:$.working}:v;let X=ST($.working,n.layout);return n.savedJson=JSON.stringify(dx(X,n.layout).chrome),s.add(v.id),g({conflict:null,saveFailed:!1,loadFailed:!1}),{...v,layout:X}},saveLayout:async(O,D,v,_)=>{if(!T(O))return t.saveLayout(O,D,v,_);let A=n,F=A?dx(D,A.layout):{page:D,chrome:null},z=oF(F.page,c,y()),$=await t.saveLayout(O,z.page,v,_);if(await W(z.docs,_),!A)return $;let X=JSON.stringify(F.chrome);if(!F.chrome||X===A.savedJson||p.lockHolder)return $;try{let ee=await e.save(A.id,{layout:F.chrome},{version:A.version,clientId:_??""});_u(A.id,ee.live),Or(),A.layout=F.chrome,A.version=ee.version,A.savedJson=X,l=!0,g({conflict:null,saveFailed:!1})}catch(ee){Ys(ee,"changed-elsewhere")?g({conflict:ee.conflict??{savedBy:"",savedByYou:!1,secondsAgo:0}}):Ys(ee,"lock-taken")?g({lockHolder:ee.holder??{name:"",secondsSinceSeen:0,secondsSinceHeld:0}}):g({saveFailed:!0})}return $},publish:t.publish?async(O,D)=>{let v=await t.publish(O,D),_=n;if(_&&T(O)&&!a&&e.publish&&I()&&!p.lockHolder){let A=await e.publish(_.id,_.version?{version:_.version}:void 0);Au(_.id,A.live),A.version!==null&&(_.version=A.version),l=!1,g({})}if(T(O)&&!a&&e.publish)for(let[A,F]of d){if(f.get(A)?.problem==="lock")continue;let z=await e.publish(A,F.version?{version:F.version}:void 0);Au(A,z.live),z.version!==null&&(F.version=z.version)}return v}:void 0,lock:r?{claim:async(O,D,v)=>{let _=await r.claim(O,D,v);if(!T(O))return _;let A=n;if(A)try{await r.claim(A.id,D,!1),p.lockHolder&&g({lockHolder:null})}catch(F){Ys(F,"lock-taken")&&g({lockHolder:F.holder??{name:"",secondsSinceSeen:0,secondsSinceHeld:0}})}for(let F of d.keys())try{await r.claim(F,D,!1),f.get(F)?.problem==="lock"&&C(F,null)}catch(z){Ys(z,"lock-taken")&&C(F,"lock",z.holder??void 0)}return d.size&&g({}),_},release:async(O,D)=>{if(await r.release(O,D),!T(O))return;let v=n;v&&!p.lockHolder&&await r.release(v.id,D).catch(()=>{});for(let _ of d.keys())f.get(_)?.problem!=="lock"&&await r.release(_,D).catch(()=>{})}}:void 0,pinnedChrome:H}}function Lu(e){let o=(t,r,a)=>e.save(t,r.layout?{...r,layout:oT(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 QDe(e,o,t){return e.update(o,tT(t))}function eNe(e,o=to(),t=$y(),r={}){let a=tF(o),n=e?{siteId:e}:void 0,s=a?!!e:!0,l=o.site.update,d=a&&t.commerce&&t.service,c=!!r.editsPinnedInPlace&&d,f=qy(o.site)?o.site:void 0,u=Lu(o.pages),p=Vy(u,e,f),h=c?Aoe(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:d,editsPinnedInPlace:c,explainsSiteSettings:!1,hasSiteRecord:s,canEditSiteRecord:s&&!!l,hasPreviewLink:a||!!o.preview,hasCatalog:a&&t.commerce,hasForms:a&&t.service,hasBlog:!!o.blog&&t.service,offersCommerce:t.commerce,offersService:t.service},...p,...rF(p.resolve),lock:o.lock,...h,site:s?()=>o.site.get(n):void 0,siteLiveState:f?()=>f.liveState(n):void 0,siteVersions:Ooe(f,n),updateSite:s&&l?I=>l(I,n):void 0,previewHref:o.preview?I=>o.preview.href(I):void 0}}function oNe(e,o=to(),t=$y()){let r=tF(o),a=o.templates,n=a?Lu(a.pages(e)):{list:()=>Promise.reject(new Error(Ky)),load:()=>Promise.reject(new Error(Ky)),save:()=>Promise.reject(new Error(Ky))};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},...Vy(n,void 0),...rF(Vy(n,void 0).resolve),publish:void 0,templateName:a?()=>a.get(e).then(s=>s.name):void 0}}function rF(e){return{resolve:o=>(Py(null),cx(null),e(o))}}var Ky="This editor's backend has no website templates.";function $oe(e,o,t){let r=Uoe(e,void 0,o);return t?.(r)??r}function aF({node:e,currentSlug:o,siteId:t,tokenRef:r,runAuthed:a,onNotify:n}){let[s,l]=Yi(!1),[d,c]=Yi(null),f=Woe(),u=Doe(E=>E.config.components),[p,h]=Yi(!1),[I,g]=Yi(null),C=Foe(null),[w,T]=Yi(null),y=Loe(async()=>{if(f.usesBridgedToken&&!r.current){h(!0);return}try{c(await to(f).pages.list(t?{siteId:t}:void 0))}catch{h(!0)}},[r,t,f]),b=()=>{if(s){l(!1);return}let E=C.current?.getBoundingClientRect();E&&T({top:E.bottom+6,right:Math.max(8,window.innerWidth-E.right)}),c(null),h(!1),y(),l(!0)},P=(d??[]).filter(E=>E.slug!==o),H=async E=>{if(I)return;g(E.slug);let W=$oe(e,u,f.documentHooks?.storedNode),O=await a(()=>Goe(to(f).pages,E,W));g(null),l(!1),n?.(O?i("Duplicated to \u201C{name}\u201D",{name:E.label}):i("Couldn\u2019t duplicate the section \u2014 please retry"),O?"success":"error")};return Yy(Roe,{children:[Vt("span",{"data-menu-toggle":!0,style:{display:"contents"},children:Vt(Boe,{buttonRef:C,label:i("Duplicate to another page"),hasPopup:"menu",expanded:s,onClick:b,children:Vt(Hoe,{size:15})})}),s&&w&&Vt(Noe,{portal:!0,style:{top:w.top,right:w.right},onClose:()=>l(!1),children:Yy("div",{role:"menu","aria-label":i("Duplicate to page"),children:[Vt(Fu,{children:i("Duplicate to page")}),p?Vt(Fu,{children:i("Couldn\u2019t load pages")}):d===null?Vt(Fu,{children:i("Loading\u2026")}):P.length===0?Vt(Fu,{children:i("No other pages")}):P.map(E=>Yy(Moe,{role:"menuitem",disabled:I!==null,onClick:()=>{H(E)},children:[Vt("span",{className:"min-w-0 flex-1 truncate",children:E.label}),I===E.slug?Vt("span",{className:"shrink-0 text-xs",children:i("Copying\u2026")}):E.draft&&Vt("span",{className:"shrink-0 text-xs",children:i("draft")})]},E.id))]})})]})}async function Goe(e,o,t){let r=Lu(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]:[],l=s.findIndex(d=>d?.type===zoe);s.splice(l===-1?s.length:l,0,t),await r.save(o.id,{layout:{root:{},zones:{},...n,content:s}},{version:a.version,clientId:""})}import{useScreenDocument as ble}from"efficient-easel/screen/components/ScreenDocumentContext";import{useSectionOps as yle}from"efficient-easel/screen/lib/document/use-section-ops";import{SELECTION_MODE as H$e,isSelectionMode as vw}from"efficient-easel/screen/lib/screen-parts";import{usePreviewParts as Sle}from"efficient-easel/draw/client";import{jsx as Xi,jsxs as joe}from"react/jsx-runtime";import{SettingsDrill as Koe}from"efficient-easel/panel";import{UiIcon as Voe}from"efficient-easel/draw/client";var qoe="Not shown on the page";function Yoe({part:e,onOpen:o}){return Xi(Koe,{name:i(e.label),preview:e.offPage?i(qoe):e.preview||i("Empty"),offPage:e.offPage,status:e.hidden?Xi("span",{className:"sf-entry-eye",role:"img","aria-label":i("Hidden on the page"),children:Xi(Voe,{name:"eye-off",size:14})}):void 0,onOpen:()=>o(e.key)})}function Xy(e){return e.filter(o=>!o.identifier)}function nF({parts:e,onOpen:o,heading:t=!0}){let r=Xy(e);return r.length?joe("div",{className:"sf-entries",children:[t?Xi("h3",{className:"sf-entries-head",children:i("Text")}):null,r.map(a=>Xi(Yoe,{part:a,onOpen:o},a.key))]}):null}import{HEADER_TYPE as wle,ROOT_ZONE as aM}from"efficient-easel/draw";import{HEADER_TYPE as Jo,FOOTER_TYPE as Xe,newNodeId as Xoe}from"efficient-easel/draw";function Bu(){return{type:Jo,props:{id:Xoe(Jo)}}}var sF=[{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"}],Zoe=sF.filter(e=>e.type!=="FooterLogo"&&e.type!=="FooterGroup"),Joe="FooterGroup",lF="blocks";function iF(e){return e===Xe?sF:e===Joe?Zoe:null}function Du(){let e=(o,t)=>({type:o,props:{id:`${o}-${crypto.randomUUID()}`,...t}});return[e("FooterLogo",{widthPct:100,align:"left",tagline:""}),e("FooterEmailSignup",{...U0}),e("FooterPayment",{...wf})]}function Zy(e){switch(e?.type){case Ye:case Ue:return i("On every page");case Jo:case Xe:return i("On every page \xB7 old style");default:return null}}var dF=()=>null,cF=()=>i("Changed on every page");function Nu(e,o){let t=bk(e,o);if(t)return t;let r=hT(e,o);if(!r)return null;let a=r.group===Ye;return r.why==="type"?a?i("The header cannot take another one of these"):i("The footer cannot take another one of these"):a?i("The header holds at most 3 sections"):i("The footer holds at most 6 sections")}import{jsx as Rm,Fragment as ole,jsxs as tle}from"react/jsx-runtime";import{useState as rle}from"react";import{createNode as ale,newId as nle}from"efficient-easel/data";import{useEasel as sle}from"efficient-easel/easel";import{Banner as lle,Button as ww}from"efficient-shell/ui";import{useScreenDocument as ile}from"efficient-easel/screen/components/ScreenDocumentContext";import{isNodeList as Qoe}from"efficient-easel/data";import{hiddenKeyOf as ete}from"efficient-easel/screen/lib/content/view-hide";var Mu="Flex",ote={FooterMenu:"MenuBlock",FooterEmailSignup:"EmailFormBlock",FooterSocial:"SocialLogosBlock"},tte={FooterPayment:"PaymentLogosBlock"},rte=e=>{let{id:o,...t}=e;return t},fF=e=>typeof e=="string"?e:"",Xs={sm:12,md:13,lg:15},pF={sm:{mark:16,words:Xs.sm},md:{mark:20,words:Xs.md}},ate="md",uF=1.5,nte={size:13,lineHeight:uF,width:280},ste=14,lte=40,ite=e=>e==="center"||e==="right"?e:"left";function dte(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 cte(e,o,t){let r=t(e,rte(o));if(Array.isArray(o.template))return{...r,props:{...r.props,template:mF(o.template,String(r.props.id))}};if(o.template!==void 0)return r;let a=_v(e,r.props);return a===r.props?r:{...r,props:a}}function mF(e,o,t={at:0}){return e.map(r=>{let a={...r.props,id:`${o}~t${t.at++}`};for(let[n,s]of Object.entries(a))Qoe(s)&&(a[n]=mF(s,o,t));return{...r,props:a}})}function hF(e,o,t){let r=e.props??{},a=t?.(e,o);if(a)return a;let n=K(ote,e.type)??K(tte,e.type);if(n)return[cte(n,r,o)];switch(e.type){case"FooterLogo":{let s=ite(r.align),l=o("LogoBlock",{...r.reverse?{reverse:r.reverse}:{},...typeof r.customColor=="string"&&r.customColor?{customColor:r.customColor}:{},heightPx:Math.round(Fk*((q(r.widthPct)??100)/100)),href:"/",align:s,...dte(r)}),d=fF(r.tagline).trim();return d?[l,o("Text",{text:d,tone:"dim",align:s,_partStyles:{text:{...nte}}})]:[l]}case"FooterText":{let s=typeof r.size=="string"&&$e(Xs,r.size)?r.size:ate;return[o("Text",{text:fF(r.text),tone:typeof r.tone=="string"?r.tone:"default",_partStyles:{text:{size:Xs[s],lineHeight:uF}}})]}case"FooterDivider":{let s=q(r.thickness),l=q(r.lengthPct);return[o("Divider",{...s!==void 0?{thickness:s}:{},...l!==void 0?{lengthPct:l}:{},...r.hideOnMobile===!0?{[ete("mobile")]:!0}:{}})]}case"FooterGroup":{let s=Array.isArray(r.blocks)?r.blocks:[];return[o(Mu,{direction:r.direction==="horizontal"?"row":"column",gap:Ka("FooterGroup",r.gap),align:r.align==="center"||r.align==="end"||r.align==="stretch"?r.align:"start",...bh,content:s.flatMap(l=>hF(l,o,t))})]}default:return[]}}function Zi(e,o,t,r){let a=e&&Array.isArray(e.props?.blocks)?e.props.blocks:[],n=f=>o(Mu,{direction:"row",wrap:!0,share:"equal",gap:lte,content:f}),s=[],l=[];for(let f of a){let u=hF(f,o,r);if(f.type==="FooterDivider"){l.length&&s.push(n(l)),l=[],s.push(...u);continue}u.length<=1?l.push(...u):l.push(o(Mu,{direction:"column",gap:ste,align:"stretch",...bh,content:u}))}(l.length||!s.length)&&s.push(n(l));let d=o(Mu,{direction:"column",content:[o("LegalLineBlock")]}),c=pT(Ue,t,[...s,d]);return{...c,props:{...c.props,...e?.props?.width==="full"?{fullWidth:!0}:{}}}}import{isNodeList as Qse}from"efficient-easel/data";import{readHidable as pte}from"efficient-easel/draw";function Hu(e,o,t){let r=[];return e.forEach((a,n)=>{let s=o(a),l=r.find(d=>d.key===s);l||(l={key:s,name:t(a),items:[]},r.push(l)),l.items.push({item:a,index:n})}),r}function HNe(e){return fte[Ji(e)]}var fte={1:"grid-cols-1",2:"grid-cols-2",3:"grid-cols-3",4:"grid-cols-4"};function Ji(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 dr=te,cr=He;function yn(e){if(e.theme)return xo(e.theme);let o=e.site?.themePresets;return o?xo({selected:e.site?.selectedPreset??0,themes:[...o]}):void 0}function ute(e,o){return o===0?`${e}~box`:`${e}~box-${o+1}`}var IF=new Set(["id"]),bn={},gF=[],mte={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"]},hte=Object.keys(mte),Qi=["Breadcrumb","DocBody","Form","SubmitBuild","Footprint","FAQ","ProcessSteps",...hte,"Stats","Logos","PaymentBadges","PaymentLogosBlock","FitmentFinder","DocMasthead","DocTabs","Timeline","TimelineTrack","OrderSummary","Chart","Mockup","Integrations","Countdown","FeaturedCover","SectionHeader","TitleWithButtons","Prose","ParagraphsA","Banner","Cards"];function go(e){for(let[o,t]of Object.entries(e)){if($e(bn,o)&&K(bn,o)!==t)throw new Error(`lib/sections/section-to-box: "${o}" already has a row`);bn[o]=t}}function ca(e){return K(bn,e)}function xte(e){return $e(bn,e)&&gF.includes(e)}function bF(e,o=Qi){return $e(bn,e)&&(o.includes(e)||xte(e))}function XNe(e){let o=K(kr,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 Jy=e=>pte(e),Qe=e=>Jy(e).text.trim()!=="";function Ite(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 gte=e=>e==="heading"?jr():e==="eyebrow"?vr():{};function bte(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 yte(e,o){if(e===void 0)return{};if(typeof e=="string")return{variant:e};let t=o[e.key];return{variant:(typeof t=="string"?K(e.map,t):void 0)??e.fallback}}function xF(e,o,t,r,a={}){let n={...o};for(let s of e){let[l,d,c]=typeof s=="string"?[s,s,void 0]:s;if(t[l]===void 0)continue;let f=c?c(t[l],t,a):t[l];f===void 0?delete n[d]:n[d]=f,r(l,d,f===void 0)}return n}function Ste(e){let o=new Set([...IF,"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 l of s)"kind"in l&&o.add(l.key);break}};for(let a of[e,...e.also??[]])t(a.box),r(a.parts);return o}var Qy=e=>wv(e.headPlacement)==="own-box";function wte(e){return Qy(e)?"its head sits in a Box of its own above it (own-box): the row draws the head inline":void 0}function Cte(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 vte(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(l=>!("kind"in l))&&o.add(n)};for(let r of[e,...e.also??[]])t(r.parts);return[...o]}function kte(e,o,t){if(!t.press)for(let r of vte(e)){let a=Cte(o,r);if(a!==void 0)return a}}function Zs(e,o,t={}){let r=e.props,a=(o.ownBoxConverts?void 0:wte(r))??kte(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=[],l=[],d=new Set,c=(b,P)=>{s.push({key:b,home:P}),d.add(b)},f=r._partStyles??{},u=Ste(o),p=0,h=(b,P)=>({type:b,props:{...P,id:`${n}~${b}-${++p}`}}),I=(b,P,H,E,W,O,D)=>{if(W){for(let _ of b??[]){let A=typeof _=="string"?_:_[0];H[A]!==void 0&&D(A,`nothing \u2014 the ${E} has no parts, so it is not drawn`)}return}let v=typeof P=="function"?P(r,t):P??{};return xF(b??[],v,H,(_,A,F)=>D(_,F?`nothing \u2014 the old value draws nothing (${E}: no ${A})`:`${O}${E}: ${A}`),t)},g=b=>Gn(b,P=>`${n}~${P}-${++p}`),C=(b,P,H)=>{let E=b.of?b.of(P):Array.isArray(P[b.key])?P[b.key]:[],W=typeof b.props=="function"?b.props(r,t):b.props??{},O=E.map((F,z)=>{let $=F??{},X=b.item?.($,z,r)??{},ee=w(X.reverse?[...b.parts].reverse():b.parts,$,!1,`item ${z+1}: `);return b.flat?X.props?ee.map(Fe=>({...Fe,props:{...Fe.props,...X.props,id:Fe.props.id}})):ee:[h(dr,{name:`${b.name} ${z+1}`,...W,...X.props??{},[cr]:ee})]});if(b.groups){let F=b.groups;return H(b.key,E.length?`one Box per item (${E.length}), in a Box per group`:"nothing \u2014 the list is empty"),Hu(E.map(z=>z??{}),F.of,F.of).map((z,$)=>{let X=z.items.map(be=>be.item),ee=F.parts?w(F.parts,F.head?.(X,r)??{},!1,`group ${$+1}: `):[],Fe=z.items.map(be=>O[be.index]),Oe=F.perRow?.(X.length,r),ze=Number.isInteger(Oe)&&Oe>=1?Oe:1,Ke=[];if(F.perRow&&ze<Fe.length)for(let be=0;be*ze<Fe.length;be++)Ke.push(Fe.slice(be*ze,(be+1)*ze).flat());return h(dr,{name:`${F.name} ${$+1}`,...F.props??{},[cr]:[...ee,h(dr,{name:`${F.itemsName} ${$+1}`,...F.itemsProps?.(X.length,r)??{},[cr]:Ke.length?Ke.map((be,Te)=>h(dr,{name:`${F.rowName??`${F.itemsName} row`} ${Te+1}`,...F.rowProps??{},[cr]:be})):Fe.flat()})]})})}let D=b.perRow?.(r),v=b.perRow?Number.isInteger(D)&&D>=1?D:1:0;if(H(b.key,(E.length?b.flat?`each item's parts (${E.length} items), in order`:`one Box per item (${E.length}), its parts inside`:"nothing \u2014 the list is empty")+(v&&E.length?`, in rows of ${v}`:"")),!v)return O.flat();let _=typeof b.rowProps=="function"?b.rowProps(r,t):b.rowProps??{},A=[];for(let F=0;F*v<O.length;F++){let z=O.slice(F*v,(F+1)*v).flat(),$=b.rowFiller?v-O.slice(F*v,(F+1)*v).length:0;A.push(h(dr,{name:`${b.rowName??`${b.name} row`} ${F+1}`,..._,[cr]:[...z,...Array.from({length:$},(X,ee)=>h(dr,{name:`Empty ${ee+1}`,...b.rowFiller,[cr]:[]}))]}))}return A},w=(b,P,H,E)=>{let W=[],O=(v,_)=>H?c(v,_):void 0,D=v=>H?f[v]:void 0;for(let v of b)if(!(v.when&&!v.when(r,H?void 0:P)))switch(v.kind){case"text":{let _=Jy(P[v.key]);if(!_.text.trim()&&!(H&&t.press&&o.pressKeepsEmpty?.includes(v.key))){O(v.key,"nothing \u2014 empty words draw nothing, so no block");break}let A=gte(v.role??"body"),{_partStyles:F,...z}=A,$=bte(A,v.styleFrom?{...v.style,...v.styleFrom(r,t)}:v.style,D(v.key),v.props?.align);W.push(h("Text",{text:v.mark==="accentLead"?Ite(_.text):v.mark==="accentItalic"?Cl(_.text):_.text,...z,...v.props??{},...$,..._.hidden?{_hidden:!0}:{}})),O(v.key,`${E}Text block: its words${_.hidden?", hidden":""}`);break}case"button":{let _=Jy(P[v.key]);if(!_.text.trim()){O(v.key,"nothing \u2014 no words, no button"),O(v.href,"nothing \u2014 no button to link"),typeof v.variant=="object"&&O(v.variant.key,"nothing \u2014 no button to style");break}let A=typeof P[v.href]=="string"&&P[v.href]?P[v.href]:"#",F={...v.style??{},...D(v.key)??{}};W.push(h("ButtonBlock",{label:_.text,href:A,...typeof v.props=="function"?v.props(P,t):v.props??{},...yte(v.variant,P),...Object.keys(F).length?{_partStyles:{label:F}}:{},..._.hidden?{_hidden:!0}:{}})),O(v.key,`${E}Button block: its words`),O(v.href,`${E}Button block: its link`),typeof v.variant=="object"&&O(v.variant.key,`${E}Button block: its Style`);break}case"image":{let _=P[v.key];if(typeof _!="string"||!_){O(v.key,"nothing \u2014 no picture, no block"),v.alt&&O(v.alt,"nothing \u2014 no picture to describe");break}let A=v.alt&&typeof P[v.alt]=="string"?P[v.alt]:"";W.push(h("ImageBlock",{src:_,alt:A,...v.props??{}})),O(v.key,`${E}Image block: its picture`),v.alt&&O(v.alt,`${E}Image block: its alt text`);break}case"list":{W.push(...C(v,P,O));break}case"group":{let _=w(v.parts,P,H,E),A=I(v.box,v.props,P,`${v.name} Box`,!_.length&&!v.keepEmpty,E,O);A&&W.push(h(dr,{name:v.name,...A,[cr]:_}));break}case"block":{let _=v.parts?w(v.parts,P,H,E):[],A=I(v.box,v.props,P,`${v.type} block`,!!v.parts&&!_.length&&!v.keepEmpty,E,O);A&&W.push(h(v.type,{...A,...v.slot?{[v.slot]:_}:{}}));break}case"core":{let _=v.as??e.type,A={...v.headless?{}:{headPlacement:"own-box"},...v.props??{}},F=v.keep==="rest"?Object.keys(P).filter($=>!u.has($)&&!($ in A)):v.keep;for(let $ of F)P[$]!==void 0&&(A[$]=P[$],O($,`the ${_} block inside the Box`));if(v.keep==="rest"){for(let X of Object.keys(v.props??{}))P[X]!==void 0&&!u.has(X)&&O(X,`nothing \u2014 the ${_} block inside the Box has the row's own value`);P.headPlacement!==void 0&&O("headPlacement",`the ${_} block inside the Box: own-box`);let $=Object.fromEntries(Object.entries(f).filter(([X])=>!u.has(X)));Object.keys($).length&&(A._partStyles=$)}for(let[$,X]of Object.entries(v.rename??{}))P[$]!==void 0&&(A[X]=P[$],O($,`the ${_} block inside the Box: ${X}`));if(v.derive){Object.assign(A,v.derive.props(P,t));for(let $ of v.derive.reads)P[$]!==void 0&&O($,`the ${_} block inside the Box`)}let z=typeof v.slots=="function"?v.slots(P,t):v.slots??{};for(let[$,X]of Object.entries(z))A[$]=X.flatMap(ee=>"kind"in ee?C(ee,P,O):g([ee]));W.push(h(_,A));break}}return W},T=(b,P)=>{let H=P===0?"Box":`${b.name} Box`,E=w(b.parts,r,!0,P===0?"":`${H}: `),W=typeof b.boxProps=="function"?b.boxProps(r,t):b.boxProps??{},O=xF(b.box??[],W,r,(D,v,_)=>c(D,_?`nothing \u2014 the old value draws nothing (${H}: no ${v})`:`${H}: ${v}`),t);return{type:dr,props:{name:b.name,...O,[cr]:E,id:ute(n,P)}}},y=[o,...o.also??[]].map(T);r._partStyles!==void 0&&c("_partStyles","each old part's style moved to its new part");for(let[b,P]of Object.entries(o.reads??{}))r[b]!==void 0&&c(b,P);for(let[b,P]of Object.entries(o.drop??{}))b in r&&(l.push({key:b,why:P}),d.add(b));for(let b of Object.keys(r))IF.has(b)||d.has(b)||l.push({key:b,why:"not in the row \u2014 not carried"});return{node:y[0],nodes:y,carried:s,dropped:l,siteWrites:[...o.site?.(e,t)??[]]}}function yF(e,o=gF,t={}){if(!Array.isArray(e))return[];let r=[];return e.forEach((a,n)=>{let s=a&&typeof a.type=="string"&&o.includes(a.type)?K(bn,a.type):void 0;if(!s)return;let l=Zs(a,s,t);l.skipped===void 0&&r.push({index:n,node:l.node,nodes:l.nodes})}),r}import{BLOCK_FIXED_WIDTH as Ate,BLOCK_SIZE_KEYS as Rte,parseBlockWidthFit as Uu,phoneKey as wF,parseTextFit as Wu,tabletKey as CF,viewKeyAt as vF}from"efficient-easel/draw";import{sideLengthAt as Lte}from"efficient-easel/screen/lib/content/length-units";import{VIEW_DESKTOP_MIN as Tte,VIEW_TABLET_MIN as Pte}from"efficient-easel/screen/lib/content/view-tiers";var Dr={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"},dt=Dr,Ete=e=>e.flatMap(o=>[`[${o}] p`,`[${o}] li`]).join(","),Ote=String.raw`(function (doc) {
|
|
6
6
|
if (doc.__sfFitWords) return;
|
|
7
7
|
var win = doc.defaultView;
|
|
8
8
|
var SELECTOR = "h1,h2,h3,h4,h5,h6,[class*='font-heading'],[class*='font-display']";
|
|
@@ -303,7 +303,7 @@ import{$ as Pa,$a as Ea,$c as Th,$d as Lv,Ac as pv,Ad as lc,Ae as cc,Af as Vr,Ag
|
|
|
303
303
|
// (scripts/test-block-size.tsx §5): which mode an element is in, and its floor.
|
|
304
304
|
doc.__sfFitWords.modeOf = modeOf;
|
|
305
305
|
doc.__sfFitWords.floorOf = floorOf;
|
|
306
|
-
})(document);`,_te="storefront-fit-words";function SF(e){let o=e.createElement("script");return o.id=_te,o.textContent=Ote,(e.head??e.documentElement).appendChild(o),()=>{e.__sfFitWords?.(),o.remove()}}var Fte="sf-block-size",ed=["width","minWidth","maxWidth"],zu=e=>`${e}Unit`,fa=e=>typeof e=="number"&&Number.isFinite(e)&&e>=0?e:void 0,Bte={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"}},EF={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"}},Dte={desktop:EF.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"}},Nte={two:{desktop:"view-wide:[.flex-row>*>&]:grow"},three:{desktop:"view-desktop:[.flex-row>*>&]:grow",tablet:"view-wide:max-view-desktop:[.flex-row>*>&]:grow"}},n2e="max-view-wide:grow!";function s2e(e){return $u(e).mode.phone==="fill"}var Mte={desktop:"--sf-bw",tablet:"--sf-bw-t",phone:"--sf-bw-p"},Hte={fill:"data-sf-width-fill",fixed:"data-sf-width-fixed"},Wte="data-sf-min-width",kF={two:{desktop:"wide",phone:Gh.phone},three:Gh},Ute={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)]"]}},eS={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)]"]}},zte={minWidth:{desktop:eS.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:eS.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)]"]}},$te=["widthFit",...ed],TF={desktop:"view-wide:whitespace-nowrap view-wide:[&_*]:whitespace-nowrap!",phone:"max-view-wide:whitespace-nowrap max-view-wide:[&_*]:whitespace-nowrap!"},oS={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!"},Gte={desktop:oS.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!"},OF={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"},jte={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:OF.phone},_F={desktop:"view-wide:max-w-full",phone:"max-view-wide:max-w-full"},PF={desktop:"view-desktop:max-w-full",tablet:"view-wide:max-view-desktop:max-w-full",phone:_F.phone};function l2e(e){let o=$u(e);return o.sides.filter(t=>o.mode[t]==="fill").map(t=>Nte[o.three?"three":"two"][t]).filter(Boolean).join(" ")}function i2e(e){let{three:o,sides:t,mode:r,lengthPerSide:a}=$u(e),n=c=>o?kF.three[c]:kF.two[c],s={fill:[],fixed:[],min:[]},l=a("minWidth");for(let c of t){let f=r[c];(f==="fill"||f==="fixed")&&s[f].push(n(c)),l[c]!==void 0&&s.min.push(n(c))}let d={};for(let c of["fill","fixed"])s[c].length&&(d[Hte[c]]=s[c].join(" "));return s.min.length&&(d[Wte]=s.min.join(" ")),d}function $u(e){let o=$te.some(a=>{let n=e[a]?.tablet;return a==="widthFit"?Uu(n)!==void 0:fa(n)!==void 0}),t=o?["desktop","tablet","phone"]:["desktop","phone"],r=(a,n)=>{let s=a(n?.desktop),l=o?a(n?.tablet)??s:s;return{desktop:s,tablet:l,phone:a(n?.phone)??l}};return{three:o,sides:t,perSide:r,lengthPerSide:a=>{let n=zu(a),s={};for(let d of t)s[vF(a,Tr(d))]=fa(e[a]?.[d]),s[vF(n,Tr(d))]=e.units?.[a]?.[d];let l=d=>Lte(s,{length:a},n,Tr(d),"length")??void 0;return{desktop:l("desktop"),tablet:l("tablet"),phone:l("phone")}},mode:r(Uu,e.widthFit)}}function d2e(e,{atSectionLine:o=!1}={}){let t=["desktop","tablet","phone"].some(_=>Wu(e.textFit?.[_])==="ellipsis"),r=o&&!t,a=r?Dte:EF,n=r?zte:eS,s=r?Gte:oS,l=[],d={},c={},{three:f,sides:u,lengthPerSide:p,mode:h}=$u(e),I=p("width");for(let _ of u){let A=h[_];!A||A==="fit"||(l.push(f?a[_][A]:Bte[_][A]),A==="fixed"&&(d[Mte[_]]=We(I[_]?.value??Ate.fallback,I[_]?.unit)))}for(let _ of ed.filter(A=>A!=="width")){let A=p(_);for(let F of u){let z=A[F];if(z===void 0)continue;let[$,X]=f?n[_][F]:Ute[_][F];d[$]=We(z.value,z.unit),l.push(X)}}let g=Wu(e.textFit?.desktop),C=Wu(e.textFit?.phone),w=_=>{let A=fa(e.minFont?.[_]);return A===void 0?void 0:e.units?.minFont?.[_]==="vw"?`${A}vw`:String(A)},T=w("desktop"),y=w("phone"),b=Wu(e.textFit?.tablet),P=b!==g||C!==void 0?b:void 0,H=w("tablet"),E=H!==T||y!==void 0?H:void 0,W=fa(e.maxWidth?.desktop),O=fa(e.maxWidth?.tablet)??W,D={desktop:W!==void 0,tablet:O!==void 0,phone:(fa(e.maxWidth?.phone)??O)!==void 0},v=(_,A,F)=>{if(A!=="line"&&A!=="ellipsis")return;let z=_==="tablet"?void 0:_,$=(X,ee)=>F||!z?X[_]:ee[z];if(A==="line"){l.push($(s,TF));return}if(l.push($(oS,TF)),l.push($(jte,OF)),f&&!F&&_==="desktop")for(let X of["desktop","tablet"])D[X]||l.push(PF[X]);else D[_]||l.push($(PF,_F))};return P?(v("desktop",g,!0),v("tablet",P,!0),v("phone",C??P,!0)):(v("desktop",g,!1),v("phone",C??g,!1)),g&&(c[Dr.fit]=g),P&&(c[Dr.fitTablet]=P),C&&(c[Dr.fitPhone]=C),T!==void 0&&(c[Dr.min]=T),E!==void 0&&(c[Dr.minTablet]=E),y!==void 0&&(c[Dr.minPhone]=y),!r&&(P||E!==void 0)&&(c[Dr.edge]=""),l.length===0&&Object.keys(c).length===0?null:{className:[Fte,...l].join(" "),style:d,attrs:c}}function c2e(e){if(fa(e.maxWidth?.desktop)!==void 0)return!0;let o=Uu(e.widthFit?.desktop);return o==="fill"||o==="fixed"}function f2e(e){return["desktop","tablet","phone"].some(o=>{let t=Uu(e.widthFit?.[o]);return t==="fixed"||t==="fill"||fa(e.minWidth?.[o])!==void 0})}function p2e(e){let o={};for(let t of Rte){let r=e[t],a=e[CF(t)],n=e[wF(t)];(r!==void 0||a!==void 0||n!==void 0)&&(o[t]={desktop:r,tablet:a,phone:n});let s=zu(t),l={desktop:e[s],tablet:e[CF(s)],phone:e[wF(s)]};(l.desktop!==void 0||l.tablet!==void 0||l.phone!==void 0)&&((o.units??={})[t]=l)}return o}var AF={label:"Button",defaultProps:{label:"",href:"#",variant:"primary",align:"left",contained:!0}};import{jsx as BF}from"react/jsx-runtime";import{SITE_SIDE as Kte}from"efficient-easel/screen/lib/content/length-units";var RF="sideSpace",Sn=Kte,x2e=[{value:"box",label:"Box"},{value:Sn,label:"Site"}],I2e="box",g2e="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 LF(e){return e===Sn?Sn:"box"}function b2e(e){return e===Sn?Sn:void 0}import{isNodeList as Vte}from"efficient-easel/data";var tS=new Set(["FAQ"]);function FF(e,o){if(!tS.has(e))return!1;let t=o.template;return typeof t=="function"?(t.blockCount??0)>0:Vte(t)}var NF={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}},MF=new Set(Object.keys(NF));function rS(e,o){return o?.innerPadding??K(NF,e)}var Gu=e=>rS(e)??{};var HF=new Set(["Flex","Text","Heading","ImageBlock"]),qte=new Set(["Divider"]),Yte=new Set(["Hero","HeroSingle","IntroBleed","CategoryBar","DocTabs"]),DF=new Set(["ProductGrid"]);function aS(e,o,t=!1){let r=e.render;e.render=a=>{if(o?.(a))return r(a);let n=Zl({...TI(a,Xl,t),sideSpace:LF(a.sideSpace)}),s=r(a);if(!n)return s;let l=f=>BF(wc,{className:f?`${n.className} ${f}`:n.className,style:n.style,children:s}),d=Vh(a,{atSectionLine:!0}),c=Vh(a);return d===c?l(d):BF(Lk,{line:"by-box",draw:f=>l(f?c:d)})}}var R2e={name:"sectionPadding",applies:(e,o,t)=>o.isSection(e)&&!Yte.has(e)&&!!t&&typeof t.render=="function",panel(e,o,t){let r=rS(o,e);if(r){e.fields={...e.fields,...t.sidesPaddingFields({keys:nr,unitKey:Ga,fallback:r,tablet:!0,siteSide:!0})};return}if(DF.has(o))return;let a=[nr.top,nr.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(!rS(o,e)){if(DF.has(o)){aS(e);return}HF.has(o)||qte.has(o)||aS(e,o==="Flex"?t=>Nx(t.bgImage):tS.has(o)?t=>FF(o,t):void 0,!0)}}},Xte=["Heading","Text","ImageBlock"],Zte=["LogoBlock"],L2e={name:"blockPadding",applies:(e,o,t)=>(Xte.includes(e)||Zte.includes(e))&&!!t&&typeof t.render=="function",panel(e,o,t){e.fields={...e.fields,...t.sidesPaddingFields({tablet:!0,siteSide:!0})}},draw(e,o){HF.has(o)||aS(e,void 0,!0)}};import{parseHexColor as Jte}from"efficient-shell/format";import{convertLength as Qte}from"efficient-easel/screen/lib/content/length-units";var fr=(e,o,t,r)=>o===t?e:Qte(e,o,t,r,{min:0,max:200,step:4}),wn={textFit:"line",textFitPhone:"wrap"},Cn={...G,[Rt]:""},{label:iMe,href:dMe,...ere}=AF.defaultProps,vo=ere,vn={buttonFillOpacity:0,buttonBorder:{width:0},buttonPaddingTop:0,buttonPaddingRight:0,buttonPaddingBottom:0,buttonPaddingLeft:0},Z={...kh,sectionAccent:0},Qs={sectionAccent:-1},re=[...Jr,"sectionHeightMode","sectionHeightValue","sectionHeightUnit","sectionHeightModeTablet","sectionHeightValueTablet","sectionHeightUnitTablet","sectionHeightModePhone","sectionHeightValuePhone","sectionHeightUnitPhone","sectionCorners","sectionCornerSides","sectionBorder","sectionBorderTablet","sectionBorderPhone","sectionAccent",Fl.unitKey,..._E,...kE,"anchor",_l,...ps,...Ic,...du,...xc(["widthFit",...ed,...ed.map(zu)]),...Object.values(lo)],Js="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",Q={sectionSurface:"read by nothing in src/ (searched 2026-10-24): a retired theme key that draws nothing today, so dropping it changes nothing",widthMode:Js,fullWidth:Js,pageWidth:Js,backgroundWidth:Js,contentWidth:Js,contentMax:Js},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 le(e,o){let t=q(e.sectionPaddingTop)??0,r=q(e.sectionPaddingBottom)??0,a=q(e.sectionPaddingTopTablet),n=q(e.sectionPaddingBottomTablet),s=ke(e.sectionPaddingUnit),l=ke(e.sectionPaddingUnitTablet),d=ke(e.sectionPaddingUnitPhone),c=(u,p,h,I)=>{let g=q(u);if(g!==void 0)return g+fr(I,"px",d,"mobile");let C=p===void 0?{n:h,unit:s}:{n:p,unit:l};return fr(C.n,C.unit,d,"mobile")+fr(I,"px",d,"mobile")},f=(u,p,h,I,g)=>p!==void 0?{[u]:p+fr(g??I,"px",l,"tablet")}:g===void 0?{}:{[u]:fr(h,s,l,"tablet")+fr(g,"px",l,"tablet")};return{sectionPaddingTop:t+fr(o.top,"px",s,"desktop"),sectionPaddingBottom:r+fr(o.bottom,"px",s,"desktop"),...f("sectionPaddingTopTablet",a,t,o.top,o.topTablet),...f("sectionPaddingBottomTablet",n,r,o.bottom,o.bottomTablet),sectionPaddingTopPhone:c(e.sectionPaddingTopPhone,a,t,o.topPhone),sectionPaddingBottomPhone:c(e.sectionPaddingBottomPhone,n,r,o.bottomPhone)}}var ue=e=>[...["sectionPaddingTop","sectionPaddingBottom","sectionPaddingTopTablet","sectionPaddingBottomTablet","sectionPaddingTopPhone","sectionPaddingBottomPhone"].map(o=>[o,o,(t,r)=>le(r,typeof e=="function"?e(r):e)[o]]),["sectionPaddingUnit","sectionPaddingUnit"],["sectionPaddingUnitTablet","sectionPaddingUnitTablet"],["sectionPaddingUnitPhone","sectionPaddingUnitPhone"]];function wt(e,o){let t={};for(let[a,n]of kI)e[a]!==void 0&&(t[n]=e[a]);let r=Jl(e,Gu(o));return{...t,sectionPaddingTop:r.top,sectionPaddingBottom:r.bottom}}var pa=e=>[...kI.map(([o,t])=>[o,t,(r,a)=>wt(a,e)[t]]),["sectionPaddingTop","sectionPaddingTop",(o,t)=>wt(t,e).sectionPaddingTop],["sectionPaddingBottom","sectionPaddingBottom",(o,t)=>wt(t,e).sectionPaddingBottom]],ore={kind:"heading-case-upper",styles:["heading-1","heading-2","heading-3"]},cMe=e=>o=>Qe(o.props[e])?[ore]:[],me=(e,o)=>({kind:"text",key:e,role:"eyebrow",props:G,...o?{style:o}:{}}),el=e=>({kind:"group",name:"Chip",props:{...L,...Cr("main"),...Do(6,14)},parts:[me(e,{color:"background",...U("label",12),weight:600,letterSpacing:.16})]}),WF=e=>e.background!=="transparent",tre=(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},od={align:"right",alignPhone:"left"},rre=(e,o,t)=>{let r=a=>tre(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}},td=(e,o,t,r={})=>rre(e,o,{...Cn,...od,...r,_partStyles:{text:{...Ko,color:"labels",...t,case:Ko.case,...od}}}),ol=(e,o)=>typeof e=="number"&&Number.isInteger(e)&&e>=0?e:yn(o)?.selected??0,UF="var(--site-surface-2)",ju=(e,o)=>yn(o)?.themes[ol(e.sectionAccent??0,o)],Qo=(e,o)=>(t,r)=>{if(!o?.(t,r))return Cr(e);let a=ju(t,r)?.[e];return a?{fillColor:a}:{}},Ku=(e,o)=>ua(e,o)>=0,zF=e=>e.startsWith("#")&&Jte(e)!==null,Vu=(e,o,t)=>{let r=e?.trim();if(r&&zF(r))return{fillColor:r};let a=Fx(r);if(a)return Cr(a);let n=r===UF?ju(o,t):void 0;return n?{fillColor:pc(n)}:{}},qu=e=>{let o=e?.trim();return!o||o==="transparent"||o===Mo||Fx(o)||o===UF||zF(o)?void 0:"it paints a colour that no Box Fill can hold"},ua=(e,o)=>{let t=yn(o)?.themes;return t&&WF(e)?Jv(t,ol(e.sectionAccent,o)):-1},ma=(e,o,t)=>{let r=ua(o,t);return r>=0?r:e},tl=(e,o)=>{let t=yn(o)?.themes,r=t?Qv(t,ol(e,o)):-1;return r>=0?r:e},kn=(e,o)=>{let t=ua(e,o);return t>=0?{sectionAccent:t}:{}},ha=(e,o)=>WF(e.props)&&ua(e.props,o)<0?[{kind:"band-preset",page:ol(e.props.sectionAccent,o)}]:[],rl=(e,{view:o="desktop",to:t="px",maxPx:r=1/0}={})=>{let{siteGutter:a,siteGutterUnit:n,siteGutterPhone:s,siteGutterPhoneUnit:l}=e.site??{},d=Tr(o),c=(u,p,h)=>{let I=ke(p),g=fc(u,I,"spacing",h);return g===null?null:fr(g,I,"px",d)},f=o==="desktop"?c(a,n,Go)??kf(a):c(s,l,Ht)??Tf(s)??Pf(a,n);return fr(Math.min(r,f),"px",t,d)},rd=Object.fromEntries(["Top","Right","Bottom","Left","TopPhone","RightPhone","BottomPhone","LeftPhone"].map(e=>[`sectionPadding${e}`,0])),ad=e=>({top:0,right:0,bottom:0,left:0,...e}),nS=(e,o,t,r=[])=>({kind:"group",name:e,keepEmpty:!0,props:(a,n)=>({...L,...rd,...Qo("surface")(a,n),...typeof t=="function"?t(a,n):t}),box:[[o,"bgImage"],so.kind,so.duration,so.delay],parts:r});import{phoneKey as IS,readHidable as gS}from"efficient-easel/draw";import{isNodeList as Hre,newId as Wre}from"efficient-easel/data";function $F(e){return Math.min(4,Math.max(2,e??3))}var mMe={eyebrow:"Label",title:"Section *heading.*"},are={template:Ev()},GF={label:"Cards",fields:are,defaultProps:{eyebrow:"",title:"",items:[],columns:3}};var IMe={eyebrow:"Highlight",title:"Key *features.*"},gMe=()=>[{label:i("Feature label one")},{label:i("Feature label two")},{label:i("Feature label three")},{label:i("Feature label four")},{label:i("Feature label five")},{label:i("Feature label six")}],jF={label:"Key Features",defaultProps:{eyebrow:"",title:"",items:[],columns:3}};var nre="plain",KF=[{label:"Plain",value:"plain"},{label:"Filled",value:"filled"},{label:"Line",value:"line"}],sre="line",lre={KeyFeatures:"filled"};function nd(e){return K(lre,e)??nre}function VF(e,o){return io(KF,nd(o),e)}function wMe(e){return io(KF,sre,e)}var sS="cardPlace";function kMe(e){return e[sS]==="top-line"?"top-line":""}var TMe="absolute left-5 top-0 z-10 -translate-y-1/2 bg-bg px-2",PMe="data-sf-top-line",ire=new Set(["Cards",Ft]);function EMe(e){return typeof e=="string"&&ire.has(e)}var dre=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 OMe(e,o,t){return!t||!o?.linesBetween||o.index!==0?e:dre(e)?{...e,top:0}:e}var _Me="outsideFramedCard";function cre(e,o){let t=e.trim();if(!Yu(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 LMe(e){return e.startsWith("/")||Yu(e)}function Yu(e){return/^(?:https?:)?\/\//i.test(e.trim())}var sd=Object.freeze({target:"_blank",rel:"noopener noreferrer"});function qF(e,o){return cre(e,o)?{...sd}:{}}function FMe(e){return typeof e=="string"?e.trim():""}var BMe="data-sf-box-link",YF="absolute inset-0 -z-[1] outline-none focus-visible:z-[2] focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-accent",DMe="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",fre="data-sf-box-jump";function pre(e){return`sf-box-jump-${e}`}function NMe(e,o){return e===!0?Kc(o):""}function ure({box:e,lit:o,first:t}){let r=s=>s.join(`,
|
|
306
|
+
})(document);`,_te="storefront-fit-words";function SF(e){let o=e.createElement("script");return o.id=_te,o.textContent=Ote,(e.head??e.documentElement).appendChild(o),()=>{e.__sfFitWords?.(),o.remove()}}var Fte="sf-block-size",ed=["width","minWidth","maxWidth"],zu=e=>`${e}Unit`,fa=e=>typeof e=="number"&&Number.isFinite(e)&&e>=0?e:void 0,Bte={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"}},EF={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"}},Dte={desktop:EF.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"}},Nte={two:{desktop:"view-wide:[.flex-row>*>&]:grow"},three:{desktop:"view-desktop:[.flex-row>*>&]:grow",tablet:"view-wide:max-view-desktop:[.flex-row>*>&]:grow"}},s2e="max-view-wide:grow!";function l2e(e){return $u(e).mode.phone==="fill"}var Mte={desktop:"--sf-bw",tablet:"--sf-bw-t",phone:"--sf-bw-p"},Hte={fill:"data-sf-width-fill",fixed:"data-sf-width-fixed"},Wte="data-sf-min-width",kF={two:{desktop:"wide",phone:Gh.phone},three:Gh},Ute={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)]"]}},eS={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)]"]}},zte={minWidth:{desktop:eS.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:eS.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)]"]}},$te=["widthFit",...ed],TF={desktop:"view-wide:whitespace-nowrap view-wide:[&_*]:whitespace-nowrap!",phone:"max-view-wide:whitespace-nowrap max-view-wide:[&_*]:whitespace-nowrap!"},oS={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!"},Gte={desktop:oS.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!"},OF={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"},jte={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:OF.phone},_F={desktop:"view-wide:max-w-full",phone:"max-view-wide:max-w-full"},PF={desktop:"view-desktop:max-w-full",tablet:"view-wide:max-view-desktop:max-w-full",phone:_F.phone};function i2e(e){let o=$u(e);return o.sides.filter(t=>o.mode[t]==="fill").map(t=>Nte[o.three?"three":"two"][t]).filter(Boolean).join(" ")}function d2e(e){let{three:o,sides:t,mode:r,lengthPerSide:a}=$u(e),n=c=>o?kF.three[c]:kF.two[c],s={fill:[],fixed:[],min:[]},l=a("minWidth");for(let c of t){let f=r[c];(f==="fill"||f==="fixed")&&s[f].push(n(c)),l[c]!==void 0&&s.min.push(n(c))}let d={};for(let c of["fill","fixed"])s[c].length&&(d[Hte[c]]=s[c].join(" "));return s.min.length&&(d[Wte]=s.min.join(" ")),d}function $u(e){let o=$te.some(a=>{let n=e[a]?.tablet;return a==="widthFit"?Uu(n)!==void 0:fa(n)!==void 0}),t=o?["desktop","tablet","phone"]:["desktop","phone"],r=(a,n)=>{let s=a(n?.desktop),l=o?a(n?.tablet)??s:s;return{desktop:s,tablet:l,phone:a(n?.phone)??l}};return{three:o,sides:t,perSide:r,lengthPerSide:a=>{let n=zu(a),s={};for(let d of t)s[vF(a,Tr(d))]=fa(e[a]?.[d]),s[vF(n,Tr(d))]=e.units?.[a]?.[d];let l=d=>Lte(s,{length:a},n,Tr(d),"length")??void 0;return{desktop:l("desktop"),tablet:l("tablet"),phone:l("phone")}},mode:r(Uu,e.widthFit)}}function c2e(e,{atSectionLine:o=!1}={}){let t=["desktop","tablet","phone"].some(_=>Wu(e.textFit?.[_])==="ellipsis"),r=o&&!t,a=r?Dte:EF,n=r?zte:eS,s=r?Gte:oS,l=[],d={},c={},{three:f,sides:u,lengthPerSide:p,mode:h}=$u(e),I=p("width");for(let _ of u){let A=h[_];!A||A==="fit"||(l.push(f?a[_][A]:Bte[_][A]),A==="fixed"&&(d[Mte[_]]=We(I[_]?.value??Ate.fallback,I[_]?.unit)))}for(let _ of ed.filter(A=>A!=="width")){let A=p(_);for(let F of u){let z=A[F];if(z===void 0)continue;let[$,X]=f?n[_][F]:Ute[_][F];d[$]=We(z.value,z.unit),l.push(X)}}let g=Wu(e.textFit?.desktop),C=Wu(e.textFit?.phone),w=_=>{let A=fa(e.minFont?.[_]);return A===void 0?void 0:e.units?.minFont?.[_]==="vw"?`${A}vw`:String(A)},T=w("desktop"),y=w("phone"),b=Wu(e.textFit?.tablet),P=b!==g||C!==void 0?b:void 0,H=w("tablet"),E=H!==T||y!==void 0?H:void 0,W=fa(e.maxWidth?.desktop),O=fa(e.maxWidth?.tablet)??W,D={desktop:W!==void 0,tablet:O!==void 0,phone:(fa(e.maxWidth?.phone)??O)!==void 0},v=(_,A,F)=>{if(A!=="line"&&A!=="ellipsis")return;let z=_==="tablet"?void 0:_,$=(X,ee)=>F||!z?X[_]:ee[z];if(A==="line"){l.push($(s,TF));return}if(l.push($(oS,TF)),l.push($(jte,OF)),f&&!F&&_==="desktop")for(let X of["desktop","tablet"])D[X]||l.push(PF[X]);else D[_]||l.push($(PF,_F))};return P?(v("desktop",g,!0),v("tablet",P,!0),v("phone",C??P,!0)):(v("desktop",g,!1),v("phone",C??g,!1)),g&&(c[Dr.fit]=g),P&&(c[Dr.fitTablet]=P),C&&(c[Dr.fitPhone]=C),T!==void 0&&(c[Dr.min]=T),E!==void 0&&(c[Dr.minTablet]=E),y!==void 0&&(c[Dr.minPhone]=y),!r&&(P||E!==void 0)&&(c[Dr.edge]=""),l.length===0&&Object.keys(c).length===0?null:{className:[Fte,...l].join(" "),style:d,attrs:c}}function f2e(e){if(fa(e.maxWidth?.desktop)!==void 0)return!0;let o=Uu(e.widthFit?.desktop);return o==="fill"||o==="fixed"}function p2e(e){return["desktop","tablet","phone"].some(o=>{let t=Uu(e.widthFit?.[o]);return t==="fixed"||t==="fill"||fa(e.minWidth?.[o])!==void 0})}function u2e(e){let o={};for(let t of Rte){let r=e[t],a=e[CF(t)],n=e[wF(t)];(r!==void 0||a!==void 0||n!==void 0)&&(o[t]={desktop:r,tablet:a,phone:n});let s=zu(t),l={desktop:e[s],tablet:e[CF(s)],phone:e[wF(s)]};(l.desktop!==void 0||l.tablet!==void 0||l.phone!==void 0)&&((o.units??={})[t]=l)}return o}var AF={label:"Button",defaultProps:{label:"",href:"#",variant:"primary",align:"left",contained:!0}};import{jsx as BF}from"react/jsx-runtime";import{SITE_SIDE as Kte}from"efficient-easel/screen/lib/content/length-units";var RF="sideSpace",Sn=Kte,I2e=[{value:"box",label:"Box"},{value:Sn,label:"Site"}],g2e="box",b2e="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 LF(e){return e===Sn?Sn:"box"}function y2e(e){return e===Sn?Sn:void 0}import{isNodeList as Vte}from"efficient-easel/data";var tS=new Set(["FAQ"]);function FF(e,o){if(!tS.has(e))return!1;let t=o.template;return typeof t=="function"?(t.blockCount??0)>0:Vte(t)}var NF={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}},MF=new Set(Object.keys(NF));function rS(e,o){return o?.innerPadding??K(NF,e)}var Gu=e=>rS(e)??{};var HF=new Set(["Flex","Text","Heading","ImageBlock"]),qte=new Set(["Divider"]),Yte=new Set(["Hero","HeroSingle","IntroBleed","CategoryBar","DocTabs"]),DF=new Set(["ProductGrid"]);function aS(e,o,t=!1){let r=e.render;e.render=a=>{if(o?.(a))return r(a);let n=Zl({...TI(a,Xl,t),sideSpace:LF(a.sideSpace)}),s=r(a);if(!n)return s;let l=f=>BF(wc,{className:f?`${n.className} ${f}`:n.className,style:n.style,children:s}),d=Vh(a,{atSectionLine:!0}),c=Vh(a);return d===c?l(d):BF(Lk,{line:"by-box",draw:f=>l(f?c:d)})}}var L2e={name:"sectionPadding",applies:(e,o,t)=>o.isSection(e)&&!Yte.has(e)&&!!t&&typeof t.render=="function",panel(e,o,t){let r=rS(o,e);if(r){e.fields={...e.fields,...t.sidesPaddingFields({keys:nr,unitKey:Ga,fallback:r,tablet:!0,siteSide:!0})};return}if(DF.has(o))return;let a=[nr.top,nr.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(!rS(o,e)){if(DF.has(o)){aS(e);return}HF.has(o)||qte.has(o)||aS(e,o==="Flex"?t=>Nx(t.bgImage):tS.has(o)?t=>FF(o,t):void 0,!0)}}},Xte=["Heading","Text","ImageBlock"],Zte=["LogoBlock"],F2e={name:"blockPadding",applies:(e,o,t)=>(Xte.includes(e)||Zte.includes(e))&&!!t&&typeof t.render=="function",panel(e,o,t){e.fields={...e.fields,...t.sidesPaddingFields({tablet:!0,siteSide:!0})}},draw(e,o){HF.has(o)||aS(e,void 0,!0)}};import{parseHexColor as Jte}from"efficient-shell/format";import{convertLength as Qte}from"efficient-easel/screen/lib/content/length-units";var fr=(e,o,t,r)=>o===t?e:Qte(e,o,t,r,{min:0,max:200,step:4}),wn={textFit:"line",textFitPhone:"wrap"},Cn={...G,[Rt]:""},{label:dMe,href:cMe,...ere}=AF.defaultProps,vo=ere,vn={buttonFillOpacity:0,buttonBorder:{width:0},buttonPaddingTop:0,buttonPaddingRight:0,buttonPaddingBottom:0,buttonPaddingLeft:0},Z={...kh,sectionAccent:0},Qs={sectionAccent:-1},re=[...Jr,"sectionHeightMode","sectionHeightValue","sectionHeightUnit","sectionHeightModeTablet","sectionHeightValueTablet","sectionHeightUnitTablet","sectionHeightModePhone","sectionHeightValuePhone","sectionHeightUnitPhone","sectionCorners","sectionCornerSides","sectionBorder","sectionBorderTablet","sectionBorderPhone","sectionAccent",Fl.unitKey,..._E,...kE,"anchor",_l,...ps,...Ic,...du,...xc(["widthFit",...ed,...ed.map(zu)]),...Object.values(lo)],Js="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",Q={sectionSurface:"read by nothing in src/ (searched 2026-10-24): a retired theme key that draws nothing today, so dropping it changes nothing",widthMode:Js,fullWidth:Js,pageWidth:Js,backgroundWidth:Js,contentWidth:Js,contentMax:Js},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 le(e,o){let t=q(e.sectionPaddingTop)??0,r=q(e.sectionPaddingBottom)??0,a=q(e.sectionPaddingTopTablet),n=q(e.sectionPaddingBottomTablet),s=ke(e.sectionPaddingUnit),l=ke(e.sectionPaddingUnitTablet),d=ke(e.sectionPaddingUnitPhone),c=(u,p,h,I)=>{let g=q(u);if(g!==void 0)return g+fr(I,"px",d,"mobile");let C=p===void 0?{n:h,unit:s}:{n:p,unit:l};return fr(C.n,C.unit,d,"mobile")+fr(I,"px",d,"mobile")},f=(u,p,h,I,g)=>p!==void 0?{[u]:p+fr(g??I,"px",l,"tablet")}:g===void 0?{}:{[u]:fr(h,s,l,"tablet")+fr(g,"px",l,"tablet")};return{sectionPaddingTop:t+fr(o.top,"px",s,"desktop"),sectionPaddingBottom:r+fr(o.bottom,"px",s,"desktop"),...f("sectionPaddingTopTablet",a,t,o.top,o.topTablet),...f("sectionPaddingBottomTablet",n,r,o.bottom,o.bottomTablet),sectionPaddingTopPhone:c(e.sectionPaddingTopPhone,a,t,o.topPhone),sectionPaddingBottomPhone:c(e.sectionPaddingBottomPhone,n,r,o.bottomPhone)}}var ue=e=>[...["sectionPaddingTop","sectionPaddingBottom","sectionPaddingTopTablet","sectionPaddingBottomTablet","sectionPaddingTopPhone","sectionPaddingBottomPhone"].map(o=>[o,o,(t,r)=>le(r,typeof e=="function"?e(r):e)[o]]),["sectionPaddingUnit","sectionPaddingUnit"],["sectionPaddingUnitTablet","sectionPaddingUnitTablet"],["sectionPaddingUnitPhone","sectionPaddingUnitPhone"]];function wt(e,o){let t={};for(let[a,n]of kI)e[a]!==void 0&&(t[n]=e[a]);let r=Jl(e,Gu(o));return{...t,sectionPaddingTop:r.top,sectionPaddingBottom:r.bottom}}var pa=e=>[...kI.map(([o,t])=>[o,t,(r,a)=>wt(a,e)[t]]),["sectionPaddingTop","sectionPaddingTop",(o,t)=>wt(t,e).sectionPaddingTop],["sectionPaddingBottom","sectionPaddingBottom",(o,t)=>wt(t,e).sectionPaddingBottom]],ore={kind:"heading-case-upper",styles:["heading-1","heading-2","heading-3"]},fMe=e=>o=>Qe(o.props[e])?[ore]:[],me=(e,o)=>({kind:"text",key:e,role:"eyebrow",props:G,...o?{style:o}:{}}),el=e=>({kind:"group",name:"Chip",props:{...L,...Cr("main"),...Do(6,14)},parts:[me(e,{color:"background",...U("label",12),weight:600,letterSpacing:.16})]}),WF=e=>e.background!=="transparent",tre=(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},od={align:"right",alignPhone:"left"},rre=(e,o,t)=>{let r=a=>tre(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}},td=(e,o,t,r={})=>rre(e,o,{...Cn,...od,...r,_partStyles:{text:{...Ko,color:"labels",...t,case:Ko.case,...od}}}),ol=(e,o)=>typeof e=="number"&&Number.isInteger(e)&&e>=0?e:yn(o)?.selected??0,UF="var(--site-surface-2)",ju=(e,o)=>yn(o)?.themes[ol(e.sectionAccent??0,o)],Qo=(e,o)=>(t,r)=>{if(!o?.(t,r))return Cr(e);let a=ju(t,r)?.[e];return a?{fillColor:a}:{}},Ku=(e,o)=>ua(e,o)>=0,zF=e=>e.startsWith("#")&&Jte(e)!==null,Vu=(e,o,t)=>{let r=e?.trim();if(r&&zF(r))return{fillColor:r};let a=Fx(r);if(a)return Cr(a);let n=r===UF?ju(o,t):void 0;return n?{fillColor:pc(n)}:{}},qu=e=>{let o=e?.trim();return!o||o==="transparent"||o===Mo||Fx(o)||o===UF||zF(o)?void 0:"it paints a colour that no Box Fill can hold"},ua=(e,o)=>{let t=yn(o)?.themes;return t&&WF(e)?Jv(t,ol(e.sectionAccent,o)):-1},ma=(e,o,t)=>{let r=ua(o,t);return r>=0?r:e},tl=(e,o)=>{let t=yn(o)?.themes,r=t?Qv(t,ol(e,o)):-1;return r>=0?r:e},kn=(e,o)=>{let t=ua(e,o);return t>=0?{sectionAccent:t}:{}},ha=(e,o)=>WF(e.props)&&ua(e.props,o)<0?[{kind:"band-preset",page:ol(e.props.sectionAccent,o)}]:[],rl=(e,{view:o="desktop",to:t="px",maxPx:r=1/0}={})=>{let{siteGutter:a,siteGutterUnit:n,siteGutterPhone:s,siteGutterPhoneUnit:l}=e.site??{},d=Tr(o),c=(u,p,h)=>{let I=ke(p),g=fc(u,I,"spacing",h);return g===null?null:fr(g,I,"px",d)},f=o==="desktop"?c(a,n,Go)??kf(a):c(s,l,Ht)??Tf(s)??Pf(a,n);return fr(Math.min(r,f),"px",t,d)},rd=Object.fromEntries(["Top","Right","Bottom","Left","TopPhone","RightPhone","BottomPhone","LeftPhone"].map(e=>[`sectionPadding${e}`,0])),ad=e=>({top:0,right:0,bottom:0,left:0,...e}),nS=(e,o,t,r=[])=>({kind:"group",name:e,keepEmpty:!0,props:(a,n)=>({...L,...rd,...Qo("surface")(a,n),...typeof t=="function"?t(a,n):t}),box:[[o,"bgImage"],so.kind,so.duration,so.delay],parts:r});import{phoneKey as IS,readHidable as gS}from"efficient-easel/draw";import{isNodeList as Hre,newId as Wre}from"efficient-easel/data";function $F(e){return Math.min(4,Math.max(2,e??3))}var hMe={eyebrow:"Label",title:"Section *heading.*"},are={template:Ev()},GF={label:"Cards",fields:are,defaultProps:{eyebrow:"",title:"",items:[],columns:3}};var gMe={eyebrow:"Highlight",title:"Key *features.*"},bMe=()=>[{label:i("Feature label one")},{label:i("Feature label two")},{label:i("Feature label three")},{label:i("Feature label four")},{label:i("Feature label five")},{label:i("Feature label six")}],jF={label:"Key Features",defaultProps:{eyebrow:"",title:"",items:[],columns:3}};var nre="plain",KF=[{label:"Plain",value:"plain"},{label:"Filled",value:"filled"},{label:"Line",value:"line"}],sre="line",lre={KeyFeatures:"filled"};function nd(e){return K(lre,e)??nre}function VF(e,o){return io(KF,nd(o),e)}function CMe(e){return io(KF,sre,e)}var sS="cardPlace";function TMe(e){return e[sS]==="top-line"?"top-line":""}var PMe="absolute left-5 top-0 z-10 -translate-y-1/2 bg-bg px-2",EMe="data-sf-top-line",ire=new Set(["Cards",Ft]);function OMe(e){return typeof e=="string"&&ire.has(e)}var dre=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 _Me(e,o,t){return!t||!o?.linesBetween||o.index!==0?e:dre(e)?{...e,top:0}:e}var AMe="outsideFramedCard";function cre(e,o){let t=e.trim();if(!Yu(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 FMe(e){return e.startsWith("/")||Yu(e)}function Yu(e){return/^(?:https?:)?\/\//i.test(e.trim())}var sd=Object.freeze({target:"_blank",rel:"noopener noreferrer"});function qF(e,o){return cre(e,o)?{...sd}:{}}function BMe(e){return typeof e=="string"?e.trim():""}var DMe="data-sf-box-link",YF="absolute inset-0 -z-[1] outline-none focus-visible:z-[2] focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-accent",NMe="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",fre="data-sf-box-jump";function pre(e){return`sf-box-jump-${e}`}function MMe(e,o){return e===!0?Kc(o):""}function ure({box:e,lit:o,first:t}){let r=s=>s.join(`,
|
|
307
307
|
`),a=t(e),n=o.flatMap(t);return`
|
|
308
308
|
${e} {
|
|
309
309
|
outline: 2px solid transparent;
|
|
@@ -315,26 +315,26 @@ import{$ as Pa,$a as Ea,$c as Th,$d as Lv,Ac as pv,Ad as lc,Ae as cc,Af as Vr,Ag
|
|
|
315
315
|
${r(o)} { outline-color: var(--accent); }
|
|
316
316
|
${r(n)} { background-color: var(--accent); }
|
|
317
317
|
${r([...n,...n.map(s=>`${s} *`)])} { color: var(--bg) !important; }
|
|
318
|
-
`}function
|
|
319
|
-
one standard.`,s)]:[]]}]},{kind:"group",name:"Words",props:{...L,...nl,gap:12,maxWidth:340,maxWidthPhone:fS},parts:[...o.description?[pS(o.description,14,void 0,{lineHeight:1.5})]:[],...o.link?[dS(14)]:[],...l?[{kind:"block",type:"ButtonBlock",props:{...lB,variant:"ghost",label:"View all",href:"/wheels",_partStyles:{label:dS(14).style}}}]:[]]}]}}function sm(e,o){return e.kind==="text"?o.includes(e.key)?{...e,mark:"accentItalic"}:e:e.kind==="group"?{...e,parts:e.parts.map(t=>sm(t,o))}:e}function iB(e){let o=nm(e.title,{...ot("headingMedium",40,5.5,80),case:"upper",weight:500,lineHeight:1,letterSpacing:-.03});return{kind:"group",name:"Header",props:{...L,direction:"row",align:"end",justify:"between",gap:40,gapPhone:14,share:"content",sectionBorder:cS,sectionPaddingBottom:32,...et},parts:[{kind:"group",name:"Title",props:{...L,direction:"row",align:"end",gap:40,gapPhone:14,share:"content",...et},parts:[{kind:"group",name:"Number",props:{...L,sectionPaddingBottom:8},parts:[{...am(e.num,13),props:{...G,...wn}}]},sm(o,[e.title])]},{kind:"group",name:"Words",props:{...L,sectionPaddingBottom:4,maxWidth:360,[aB("maxWidth")]:Fre,maxWidthPhone:fS},parts:e.description?[pS(e.description,14,void 0,{lineHeight:1.5},{[aB("align")]:"left"})]:[]}]}}function sB(e,o){return{kind:"group",name:"Header",props:{...L,gap:16,gapPhone:16},parts:[am(e.num,13),nm(e.title,o)]}}var dB=[["para",{...Lt(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}]],Nre=e=>dB.some(([o])=>o===e.titleSize)?e.titleSize:"lg";function Mre(e){return{kind:"group",name:"Header",props:{...L,direction:"row",align:"center",justify:"between",gap:16,share:"content",stickTop:!0,sectionBorder:cS,sectionPaddingTop:12,sectionPaddingBottom:12},parts:[{kind:"group",name:"Title",props:{...L,direction:"row",align:"end",gap:24,share:"content"},parts:[am(e.num,13,{color:"labels",letterSpacing:.22,lineHeight:1}),...dB.map(([o,t])=>({...nm(e.title,t),when:r=>Nre(r)===o}))]},{kind:"group",name:"Words",props:{...L,direction:"row",align:"center",justify:"end",gap:20,share:"content"},parts:[...e.description?[pS(e.description,13,340,{lineHeight:1.4})]:[],...e.link?[dS(13)]:[]]}]}}function lm(e){return Tn(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 tm=new Map,mS={...U("headingMedium",44,32),case:"upper",weight:500,lineHeight:1,letterSpacing:-.02};function Ct(e){let o=tm.get(e);if(o)return o;let t=Lre(e),r=Tn(e),a=r==="editorial"?iB(t):r==="simple"?sB(t,mS):r==="essay"?sB(t,{...U("headingMedium",38,28,"headingSmall"),case:"upper",lineHeight:1,letterSpacing:-.02}):r==="shelf"?Mre(t):Dre(e,t);return tm.set(e,a),a}var Pn={Series:"transparent",StatsParagraph:"transparent",TimelineTrack:Mo,Stats:void 0};var id=(e,o,t,r)=>({sectionBorder:{top:e,right:o,bottom:t,left:r}}),wB=e=>o=>$F(q(o.columns)??q(e.columns)),Ure="inline is the head the row draws; an own-box node is skipped (`skip`)",zre={kind:"text",key:"title",role:"heading",props:G,style:{textStyle:"heading-3",...mS}},cB={top:120,bottom:120,topPhone:80,bottomPhone:80,topTablet:80,bottomTablet:80},dm=e=>{let o=sr(typeof e.background=="string"?e.background:void 0,Pn.Series);return o&&o!=="transparent"?o:void 0},im=e=>dm(e)===Mo,$re={...L,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},fB={...L,direction:"row",justify:"between",gap:12,share:"content",phoneRow:2,[IS("share")]:"content"},Gre=e=>{let o=dm(e)?1:2;return{...L,direction:"row",columns:4,columnsTablet:2,gap:o,gapPhone:o}},hS={...Lt(12),letterSpacing:.22,lineHeight:1.5},pB=e=>Qe(e.viewLabel)&&!gS(e.viewLabel).hidden,vt=e=>gS(e).text?.trim?.()??"",cm=e=>Object.fromEntries(Object.entries(e).filter(([,o])=>Se(o)!==void 0)),bS=e=>e.map(([o,t,r])=>({key:o,label:t,...r?{multiline:!0}:{}})),jre=bS([["num","Number"],["since","Corner note"],["title","Card title"],["body","Card body",!0],["count","Count"],["countLabel","Count word"]]),Kre=bS([["label","Label"],["value","Value"],["body","Card body",!0]]),dd=(e,o,t,r,a,{reads:n=["cards"],keep:s=[]}={})=>({kind:"group",name:e,props:o,parts:[{kind:"core",as:Ft,headless:!0,keep:s,derive:{reads:n,props:l=>cc(r(l),t)},slots:(l,d)=>({[No]:[a(l,d)]})}]}),CB=e=>Array.isArray(e.cards)?e.cards:[],uB={top:76,bottom:76,topPhone:76,bottomPhone:76},vB=e=>(Array.isArray(e.items)?e.items:[]).map(o=>cm({title:vt(o?.label),href:typeof o?.href=="string"?o.href.trim():""})).filter(o=>o.title!==void 0).map((o,t)=>({key:Pl(Rh(o),t),...o})),Vre=e=>vB(e).some(o=>Se(o.href)!==void 0),kB=[{key:Th.label,label:"Feature label"},{key:Th.href,label:"Link",kind:"link"}],mB=e=>VF(e.eyebrowLook,"KeyFeatures")==="filled",qre={name:"Key Features",boxProps:(e,o)=>({...Z,direction:"column",gap:44,gapPhone:32,...Qo("surface")(e,o),...id(1,0,1,0),...le(e,uB)}),box:[...re,...ue(uB)],parts:[{kind:"group",name:"Heading",props:{...L,direction:"row",align:"end",gap:20,wrap:!0,share:"content",phoneRow:2,[IS("share")]:"content"},parts:[{...el("eyebrow"),when:mB},{...me("eyebrow"),when:e=>!mB(e)},zre]},dd("Cards",e=>({...L,...Ju(wB(jF.defaultProps)(e))}),kB,vB,e=>lS(Vre(e)),{reads:["items"]})],drop:{...Q,...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"}},hB={top:72,bottom:72,topPhone:72,bottomPhone:72},xB=(e,o)=>({...Zu,...Qo("background")(e,o)}),IB=e=>{let o=wB(GF.defaultProps)(e);return{...L,...Ju(o)}},Yre=bS([["title","Card title"],["body","Card body",!0]]),TB=e=>(Array.isArray(e.items)?e.items:[]).map((o,t)=>({key:typeof o?.key=="string"&&o.key?o.key:Pl(Rh(o),t),title:vt(o?.title),body:vt(o?.body)})),PB=e=>{let o={},t={};for(let[r,a]of Object.entries(e.props??{}))r!=="id"&&(Hre(a)?t[r]=a.map(PB):o[r]=a);return{type:String(e.type),props:o,...Object.keys(t).length?{slots:t}:{}}},gB=(e,o)=>{let t=xS(e)?lS(Xre(e)):eB(),r=Array.isArray(e.template)?e.template.map(PB):[t],[a]=r;return r.length===1&&a.type===te?{...a,props:{...xB(e,o),...a.props}}:{type:te,props:{...L,...xB(e,o),name:"Card"},slots:{[He]:r}}},xS=e=>e.cardStyle==="label-only",EB=e=>TB(e).map((o,t)=>{let r=e.items[t]?.href;return cm({key:o.key,title:o.title,href:typeof r=="string"?r.trim():""})}),Xre=e=>EB(e).some(o=>Se(o.href)!==void 0),bB=e=>Array.isArray(e.template)&&e.template.length===0,yB=["dataSource","dataSourceOptions","highlightedCard","highlightBadge"];function OB(){let e=t=>({key:Wre("card"),title:i(t),body:i("A short line about this card.")}),o=[e("Card title one"),e("Card title two"),e("Card title three")];return{eyebrow:i("Label"),title:i("Section *heading.*"),items:o}}var Zre={name:"Cards",ownBoxConverts:!0,boxProps:(e,o)=>({...Z,direction:"column",gap:36,gapPhone:28,...Qo("surface")(e,o),...le(e,hB)}),box:[...re,...ue(hB)],parts:[{...Ct("Cards"),when:e=>!Qy(e)},{...dd("Cards",IB,Yre,TB,gB,{reads:["items"],keep:yB}),when:e=>!bB(e)&&!xS(e)},{...dd("Cards",IB,kB,EB,gB,{reads:["items"],keep:yB}),when:e=>!bB(e)&&xS(e)}],drop:{...Q,...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)"}},Jre={name:"Recurring Columns",boxProps:(e,o)=>({...Z,direction:"column",gap:60,gapPhone:60,...id(0,0,1,0),...et,...im(e)?kn(e,o):{},...Vu(dm(e),e,o),...le(e,cB)}),box:[...re.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,t)=>im(o)?ma(e,o,t):e],...ue(cB)],skip:e=>qu(dm(e)),site:(e,o)=>im(e.props)?ha(e,o):[],parts:[Ct("Series"),dd("Cards",Gre,jre,e=>CB(e).map(o=>cm({num:vt(o.num),since:vt(o.since),title:vt(o.title),body:vt(o.desc),count:vt(o.entries),countLabel:vt(o.entriesLabel)})),(e,o)=>({type:te,props:{...$re,...Qo("background",(t,r)=>im(t)&&Ku(t,r))(e,o),name:"Card"},slots:{[He]:[{type:te,props:{...L,name:"Words",gap:16,gapPhone:16},slots:{[He]:[{type:te,props:{...fB,name:"Top"},slots:{[He]:[qe("num",G,U("label",13),!0),qe("since",G,U("label",13),!0)]}},qe("title",{...G,tag:"h3"},{textStyle:"heading-3",...U("headingSmall",28),weight:500,case:"upper",lineHeight:1.04,letterSpacing:-.02}),qe("body",ne,{textStyle:"body-5",fontRole:"heading",...U("body",14),lineHeight:1.6})]}},{type:te,props:{...fB,name:"Footer",align:"center",gap:0,gapPhone:0,sectionPaddingTop:16,sectionPaddingTopPhone:16,...id(1,0,0,0),...pB(e)?{}:{[Mv]:["count","countLabel"]}},slots:{[He]:[{type:te,props:{...L,name:"Count",direction:"row",align:"center",gap:12,gapPhone:12,share:"content",phoneRow:2,[IS("share")]:"content"},slots:{[He]:[qe("count",G,hS),qe("countLabel",ne,hS)]}},...pB(e)?[{type:te,props:{...L,name:"View",maxWidthPhone:266},slots:{[He]:[{type:"Text",props:{...G,text:gS(e.viewLabel).text,_partStyles:{text:{...vr()._partStyles.text,...hS}}}}]}}]:[]]}}]}}))],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:{...Q,...se,headPlacement:Ure}},SB={top:60,bottom:60,topPhone:40,bottomPhone:40},Qre={...L,direction:"row",columns:3,gap:40,gapPhone:16},eae={...L,gap:8,gapPhone:8,...Do(24),...id(1,1,1,1)},oae={name:"Document Detail Cards",boxProps:e=>({...Z,direction:"column",gap:40,gapPhone:16,...id(0,0,1,0),...le(e,SB)}),box:[...re,...ue(SB)],parts:[dd("Cards",Qre,Kre,e=>CB(e).map(o=>cm({label:vt(o.label),value:vt(o.value),body:vt(o.desc)})),(e,o)=>({type:te,props:{...eae,...Qo("surface")(e,o),name:"Card"},slots:{[He]:[qe("label",G,{...U("label",12),lineHeight:1.5},!0),{type:te,props:{...L,name:"Words",gap:14,gapPhone:14},slots:{[He]:[qe("value",G,{textStyle:"heading-3",...U("headingSmall",20),weight:500,letterSpacing:-.015,lineHeight:1.5}),qe("body",ne,{textStyle:"body-5",fontRole:"accent",...U("body",14),italic:!0,lineHeight:1.5})]}}]}}))],drop:{...Q,...se}},_B={Cards:Zre,KeyFeatures:qre,Series:Jre,DocMetaCards:oae};import{phoneKey as nae}from"efficient-easel/draw";import{newId as sae}from"efficient-easel/data";import{phoneKey as tae}from"efficient-easel/draw";import{isNode as cd}from"efficient-easel/data";var sl="cardStyle";function AB(e){let{widthPhone:o,...t}=e;return e.widthFitPhone==="fixed"?{...t,widthFitPhone:"fill"}:{...e}}var fm={table:{items:{gap:0,gapPhone:0,columnsTablet:2},grid:{gap:0},row:{gap:0,[tae("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}}}},kt={table:{...fm.table,listCard:AB(fm.table.card)},list:{...fm.list,listCard:AB(fm.list.card)}},e4e=[{label:"Table",value:"table"},{label:"List",value:"list"}],o4e=e=>e==="table"||e==="list",rae=e=>[...new Set([...Object.keys(kt.table[e]),...Object.keys(kt.list[e])])];function fd(e,o,t){let r={...e};for(let a of rae(o))delete r[a];return{...r,...structuredClone(kt[t][o])}}function aae(e,o,t){let r=e.props??{},a=Array.isArray(r[No])?r[No]:[],n=a.findIndex(d=>cd(d)&&d.type===t);if(n<0)return e;let s=a[n],l=a.map((d,c)=>c===n?{...s,props:fd(s.props??{},"listCard",o)}:d);return{...e,props:{...r,[No]:l}}}function t4e(e,o,t,r){let a=Array.isArray(e[r])?e[r]:[];if(a.some(s=>cd(s)&&s.type===Ft)){let s=a.map(l=>cd(l)&&l.type===Ft?aae(l,o,t):l);return{...fd(e,"items",o),[sl]:o,[r]:s}}let n=a.map(s=>{if(!cd(s)||s.type!==t)return s;let l=s.props??{},d=(Array.isArray(l[r])?l[r]:[]).map(c=>cd(c)&&c.type===t?{...c,props:fd(c.props??{},"card",o)}:c);return{...s,props:{...fd(l,"row",o),[r]:d}}});return{...fd(e,"grid",o),[sl]:o,[r]:n}}var yS=e=>typeof e=="string"?e.trim():"";function RB(e){let o=`${yS(e.prefix)}${yS(e.value)}`,t=yS(e.suffix);return e.emphasizeAll===!0?o?`==_${o}_==`:"":`${o}${t?`==_${t}_==`:""}`}var BB={textStyle:"heading-2",...ot("headingMedium",56,7,96),weight:500,case:"none",lineHeight:.9,letterSpacing:-.04},SS={kind:"block",type:"Text",props:{...Cn,_partStyles:{text:BB}},box:[["value","text",(e,o)=>RB(o)]],when:(e,o)=>o!==void 0&&typeof o.value=="string"&&RB(o)!==""},LB=e=>Qe(e?.supSuffix),DB={textStyle:"body-1",fontRole:"heading",...U("body",16),lineHeight:1.5,letterSpacing:-.01},NB={color:"labels",...U("label",12),lineHeight:1.5,letterSpacing:.24},MB={...L,direction:"row",align:"start",gap:32,gapPhone:32,share:"content",phoneRow:2,[nae("share")]:"content"},HB={textStyle:"body-5",...U("label",13),weight:500,color:"accent",letterSpacing:.18,lineHeight:1,padding:12},wS=e=>sr(e.background,Pn.StatsParagraph),pd=e=>wS(e)===Mo,pm=e=>({...e,sectionAccent:e.sectionAccent??0}),lae=(e,o)=>pd(e)?Qo("background",(t,r)=>Ku(pm(t),r))(e,o):{},iae={name:"Stats with Text",skip:e=>wS(e)&&wS(e)!=="transparent"&&!pd(e)?"it paints a colour of its own, not the section band":void 0,boxProps:(e,o)=>({...Z,direction:"column",gap:60,gapPhone:60,sectionBorder:{bottom:1},...et,...wt(e,"StatsParagraph"),...pd(e)?kn(pm(e),o):{}}),box:[...re.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,t)=>pd(o)?ma(e,pm(o),t):e],...pa("StatsParagraph")],site:(e,o)=>pd(e.props)?ha({props:pm(e.props)},o):[],parts:[Ct("StatsParagraph"),{kind:"group",name:"Stats",props:{...L,...kt.table.grid,[sl]:"table"},parts:[{kind:"list",key:"stats",name:"Stat",perRow:()=>4,rowName:"Stats row",rowProps:{...L,direction:"row",share:"equal",phoneRow:2,...kt.table.row},props:(e,o)=>({...L,...kt.table.card,...lae(e,o)}),parts:[{...SS,when:(e,o)=>!LB(o)&&SS.when(e,o)},{kind:"group",name:"Figure",props:MB,when:(e,o)=>LB(o),parts:[SS,{kind:"text",key:"supSuffix",props:G,style:HB}]},{kind:"group",name:"Words",props:{...L,gap:4,gapPhone:4},parts:[{kind:"text",key:"label",props:G,style:DB},me("sub",NB)]}]}]}],drop:{...Q,...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"}},dae=new Set(["value","label",Rt]),FB={top:48,bottom:48,topPhone:48,bottomPhone:48},cae=e=>{let o=sr(typeof e.background=="string"?e.background:void 0,Pn.Stats);return!!o&&o!=="transparent"},fae={name:"Stats",skip:e=>cae(e)?"it paints a colour inside its padding, and a Box paints its Fill over the padding too":Qe(e.dataSource)?"its figures come from a source":Array.isArray(e.items)&&e.items.some(o=>Qe(o?.[Rt]))?"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=>!dae.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=>({...Z,direction:"column",gap:24,gapPhone:24,...le(e,FB)}),box:[...re,...ue(FB)],parts:[me("heading",{color:"labels",...U("label",12),letterSpacing:.2}),{kind:"group",name:"Stats",props:{...L,...kt.list.grid,[sl]:"list"},parts:[{kind:"list",key:"items",name:"Stat",perRow:e=>q(e.columns)??4,rowName:"Stats row",rowProps:{...L,direction:"row",share:"equal",phoneRow:2,...kt.list.row},props:{...L,...kt.list.card},parts:[{kind:"text",key:"value",props:Cn,style:{textStyle:"heading-2",...U("headingMedium",48,36),weight:500,case:"none",lineHeight:1,letterSpacing:-.03}},me("label",{color:"labels",...U("label",12),letterSpacing:.2})]}]}],drop:{...Q,...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"}},WB={StatsParagraph:iae,Stats:fae};function UB(){return{eyebrow:i("By the numbers"),title:i("What we count."),desc:i("A few numbers that matter to us."),stats:[],background:"transparent"}}var pae=[{key:"figure",label:"Figure"},{key:"superscript",label:"Superscript"},{key:"label",label:"Label"},{key:"body",label:"Text",multiline:!0}];function zB(){let e=(o,t,r,a="")=>({key:sae("stat"),figure:o,superscript:a,label:t,body:r});return[e("28==_yr_==",i("Years in business"),i("Privately held since day one. Same two founders.")),e("==_8_==",i("Operating footprint"),i("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."),i("cities")),e("\u221221==_%_==",i("Avg. weight saving"),i("Versus OEM equivalents, across our forged catalog.")),e("14==_\xD7_==",i("Finish steps"),i("Specified in California to a 14-step protocol. No two sets are identical."))]}function uae(e){return{type:te,props:{...L,name:"Card",...structuredClone(kt[e].listCard)},slots:{[He]:[{type:te,props:{...MB,name:"Figure"},slots:{[He]:[qe("figure",Cn,BB),qe("superscript",G,HB)]}},{type:te,props:{...L,name:"Words",gap:4,gapPhone:4},slots:{[He]:[qe("label",{...G,widthFit:"fill"},DB),qe("body",{...G,widthFit:"fill"},NB,!0)]}}]}}}function CS(e,o,t=4){return{type:te,props:{...L,name:"Stats",direction:"row",columns:t,...structuredClone(kt[o].items),[sl]:o},slots:{[He]:[{type:Ft,props:cc(e,pae),slots:{[No]:[uae(o)]}}]}}}var $B={heading:"Trusted by *teams worldwide*"},GB=()=>[{src:"",alt:i("Logo one")},{src:"",alt:i("Logo two")},{src:"",alt:i("Logo three")},{src:"",alt:i("Logo four")},{src:"",alt:i("Logo five")}],mae={logos:{type:"slot",allow:["LogoBlock"]},template:{type:"slot",allow:["LogoBlock"]}},y4e={label:"Logos",drawsPictures:!0,fields:mae,defaultProps:{items:[],contained:!0}};var jB={heading:"Ways to pay"},KB=()=>[{label:"Visa"},{label:"Mastercard"},{label:"Amex"},{label:"PayPal"}],VB=()=>[{text:i("Secure encrypted checkout")},{text:i("30-day returns")}],C4e={label:"Payment Methods",drawsPictures:!0,defaultProps:{heading:"",badges:[],assurances:[],contained:!0}};import{phoneKey as kS,readHidable as hae}from"efficient-easel/draw";var TS={contained:!1},PS=(e,o)=>({logos:[{kind:"list",key:e,name:"Logo",flat:!0,parts:[{kind:"block",type:"LogoBlock",box:["src",[o,"alt"]],when:(t,r)=>Qe(r?.src)||Qe(r?.[o])}]}]}),vS=e=>{let o=q(e.bandPadding)??40;return{top:o,bottom:o,topPhone:o,bottomPhone:o}},xae={...me("heading",{color:"labels",letterSpacing:.2}),props:{...G,align:"center"}},Iae={name:"Logos",boxProps:e=>({...Z,direction:"column",gap:32,...le(e,vS(e))}),box:[...re,...ue(vS),["bandPadding","sectionPaddingTop",(e,o)=>le(o,vS(o)).sectionPaddingTop]],parts:[xae,{kind:"core",keep:["columns","logoHeight","grayscale"],rename:{logosPerRow:"columns"},props:TS,slots:PS("items","alt")}],drop:{...Q,...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"}},gae={kind:"group",name:"Mark",keepEmpty:!0,parts:[],props:uv(4,"main",{sectionCorners:2})},qB={top:24,bottom:24,topPhone:24,bottomPhone:24},bae={name:"Payment Methods",boxProps:e=>({...Z,direction:"column",...le(e,qB)}),box:[...re,...ue(qB)],parts:[{kind:"group",name:"Methods",props:{...L,align:"center",gap:20,gapPhone:20,sectionBorder:{top:1,bottom:1},sectionPaddingTop:32,sectionPaddingBottom:32},parts:[{...me("heading",{color:"labels"}),props:{...G,align:"center"}},{kind:"core",keep:[],as:"Logos",derive:{reads:[So,gr],props:e=>Qe(e[So])?{[So]:e[So],...e[gr]!==void 0?{[gr]:e[gr]}:{}}:{}},props:{...TS,look:"cards",grayscale:!1},slots:e=>({...PS("badges","label"),...Qe(e[So])?{[No]:[Ph()]}:{}})},{kind:"group",name:"Reassurance",props:{...L,direction:"row",wrap:!0,justify:"center",gap:24,gapPhone:24,phoneRow:2,[kS("share")]:"content"},parts:[{kind:"list",key:"assurances",name:"Line",of:e=>(Array.isArray(e.assurances)?e.assurances:[]).filter(o=>Qe(o?.text)),props:{...L,direction:"row",align:"center",gap:8,gapPhone:8,phoneRow:2,[kS("share")]:"content"},item:e=>hae(e.text).hidden?{props:{_hidden:!0}}:{},parts:[gae,{kind:"text",key:"text",props:{...G,align:"center"},style:{...U("label",13),color:"labels",lineHeight:1.5}}]}]}]}],drop:{...Q,...se,contained:"the Box draws the site frame now; the Logos block inside it fills the Box's column (`contained: false`)"}},YB=e=>rv(e.align)??"left",XB=e=>e.size==="md"?"md":"sm",ZB=12,JB={name:"Payment logos",boxProps:e=>({...L,direction:"row",wrap:!0,align:"center",justify:ec[YB(e)],gap:ZB,gapPhone:ZB,phoneRow:2,[kS("share")]:"content"}),box:[...Jr],parts:[{kind:"text",key:"lead",props:ne,styleFrom:e=>({size:Xs[XB(e)],lineHeight:1.5})},{kind:"core",keep:[],as:"Logos",derive:{reads:[So,gr],props:e=>({logoHeight:pF[XB(e)].mark,align:YB(e),...Qe(e[So])?{[So]:e[So],...e[gr]!==void 0?{[gr]:e[gr]}:{}}:{}})},props:{...TS,look:"marks",grayscale:!1,sectionAccent:Qt},slots:e=>({...PS("methods","label"),...Qe(e[So])?{[No]:[Ph()]}:{}})}],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"}},QB={Logos:Iae,PaymentBadges:bae,FooterPayment:JB,PaymentLogosBlock:JB},eD=()=>({heading:$B.heading,items:GB()}),oD=()=>({heading:jB.heading,badges:KB(),assurances:VB()}),tD=()=>({...wf,methods:[]});import{mixHex as Sae}from"efficient-shell/format";var U4e="none",z4e=[{label:"Nothing",value:"none"},{label:"Section above",value:"above"},{label:"Section below",value:"below"}];function rD(e){return e==="above"||e==="below"?e:null}var $4e="sf-ticker-join";function yae(e){return e==="above"?"sf-ticker-join-above":"sf-ticker-join-below"}function G4e(e){return`absolute inset-x-0 ${yae(e)}`}var En={direction:"row",share:"content",align:"center"},ud={top:14,bottom:14,topPhone:12,bottomPhone:12},um={wrap:"nowrap",loop:"scroll",sectionAccent:hk,gap:60,gapPhone:32,separator:"dot",sectionBorder:{top:1,bottom:1}},aD={gap:120,gapPhone:64},mm={...Ko,sizeToken:{step:"label",px:14,pxPhone:12},letterSpacing:.25,lineHeight:1.5},nD={textStyle:"heading-3",letterSpacing:.005,case:"upper",lineHeight:1},md={top:16,bottom:16,topPhone:12,bottomPhone:12},hd={justify:"between",wrap:"wrap",gap:32,separator:"none"},xd={...Ko,letterSpacing:.1,lineHeight:1.5};var sD=e=>e.size==="display",wae=(e,o)=>{let t=ju(e,o),r=e.tone!=="plain"&&t?.text&&t.background?Sae(t.text,t.background,.3):null;return r?{color:r}:{}},Cae=(e,o)=>e.tone!=="plain"&&er(e.sectionAccent)===null?Qo("background")(e,o):{},lD=(e,o)=>({kind:"list",key:"items",name:"Item",flat:!0,when:o,parts:[{kind:"text",key:"text",props:ne,style:e,styleFrom:wae}]}),vae={name:"Scrolling Bar",boxProps:(e,o)=>({...Z,...En,...um,...sv[gh(e.separator)]===""?aD:{},...le(e,ud),...Cae(e,o)}),box:[["scrollDirection","scrollDirection",e=>oR(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=>gh(e)],["join","join",e=>rD(e)??void 0],["borders","sectionBorder",e=>e===!1?void 0:{top:1,bottom:1}],...re,["tone","sectionAccent",(e,o)=>er(o.sectionAccent)??Qt],...ue(ud)],parts:[lD(mm,e=>!sD(e)),lD(nD,sD)],drop:{...Q,...se,size:"each item's Text style: Small \u2192 Body 5, Display \u2192 Heading 3"}},iD=e=>e?.tone==="muted",dD=e=>uc(yn(e)),kae={name:"Spec Strip",boxProps:(e,o)=>({...Z,...En,...hd,...e.fill==="none"?{sectionBorder:{top:1}}:{sectionAccent:dD(o)},...le(e,md)}),box:[...re.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,t)=>o.fill==="none"?e:dD(t)],...ue(md)],parts:[{kind:"list",key:"cells",name:"Cell",flat:!0,parts:[{kind:"text",key:"text",props:G,style:xd,when:(e,o)=>!iD(o)},{kind:"text",key:"text",props:ne,style:xd,when:(e,o)=>iD(o)}]}],drop:{...Q,...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"}},cD={Ticker:vae,SpecStrip:kae};import{jsxs as _n,jsx as eo}from"react/jsx-runtime";import{Fragment as DS}from"react";import{Fragment as Hae,jsx as AS}from"react/jsx-runtime";import{Fragment as mD,jsx as bd,jsxs as Aae}from"react/jsx-runtime";import{createContext as _S,useContext as yd,useEffect as Rae,useId as Lae,useMemo as Fae,useRef as Bae}from"react";import{armEntrance as Dae}from"efficient-shell/format";import{jsx as Tae}from"react/jsx-runtime";import{useEffect as pD,useRef as fD,useState as Pae}from"react";import{armEntrance as Eae,entranceAttrs as Oae,playEntrance as _ae}from"efficient-shell/format";function uD({views:e,editing:o,boxClass:t,boxAttrs:r,boxStyle:a,takesViewHide:n=!1,atEdge:s=!1,children:l}){let d=fD(null),c=Sc(),f=qr(),u=n?f:os,p=Id(d,!0,s),{attrs:h,style:I}=Oae(e[p]),g=fD(ES.seed(e)),C=JSON.stringify(e);return pD(()=>{let w=d.current;if(w){if(o){let T=ES.next(g.current,e,p);g.current=T.seen,T.play&&_ae(w);return}return Eae(w)}},[C,p,o]),u.scope(Tae("div",{ref:d,className:Yr(`${Qn}${c.fill}${t?` ${t}`:""}`,u.className),...r,...u.attrs,...h,...Object.keys(I).length||a?{style:{...a,...I}}:{},children:c.inner(l)}))}var ES={seed(e){return{desktop:JSON.stringify(e.desktop),tablet:JSON.stringify(e.tablet),phone:JSON.stringify(e.phone)}},next(e,o,t){let r=ES.seed(o);return{play:r[t]!==e[t],seen:r}}};function Id(e,o=!0,t=!1){return gd(e,o,t)??"desktop"}function gd(e,o=!0,t=!1){let[r,a]=Pae(void 0),n=yc(t?"edge":"by-box"),{phone:s,tablet:l}=xb(n);return pD(()=>{if(!o)return;let d=e.current?.ownerDocument?.defaultView??(typeof window>"u"?null:window);if(!d?.matchMedia){a("desktop");return}let c=d.matchMedia(s),f=d.matchMedia(l),u=()=>a(c.matches?"phone":f.matches?"tablet":"desktop");return u(),c.addEventListener("change",u),f.addEventListener("change",u),()=>{c.removeEventListener("change",u),f.removeEventListener("change",u)}},[e,o,s,l]),r}var hm=_S(null),xD=_S(null),ID=_S(null);function S5e({needles:e,styles:o,motions:t=aL,type:r,atEdge:a=!1,children:n}){let s=Lae(),l=yc(a?"edge":"by-box"),d=JSON.stringify([s,e,o,t,r]),c=Fae(()=>{let u=Object.keys(t).filter(p=>sL(t[p]));return x1(e,o,s,p=>zi(r,p),p=>f1(r,p),p=>u.includes(p)?Dy(t[p]):null,u)},[d]);if(!c)return bd(mD,{children:n});let f=I1(c,{inBox:l});return Aae(mD,{children:[f&&bd("style",{href:`${Nae}${s}-${Mae(f)}`,precedence:bD,dangerouslySetInnerHTML:{__html:f.replace(/</g,"\\3c ")}}),bd(hm.Provider,{value:c,children:n})]})}var OS=new WeakMap;function hD(e,o){let t=Ny(o.filter(a=>a.arm)),r=o.some(a=>a.entering)?void 0:Ny(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)?(cL(e.ownerDocument),e.setAttribute(gu,"")):e.removeAttribute(gu)}function gD(e){let o=Bae(null),t=e?.motion?.entrance??null,r=e?.motion?.scroll??null,a=e?.motion?.hover==="lift",n=Id(o,t!==null||r!==null),s=t?t[n]:null,l=r&&r[n].effect!=="none"?r[n]:null,d=JSON.stringify([s,l]);return Rae(()=>{let c=o.current,f=dL(c?.parentElement??null);if(!t&&!r&&!a||!c||!f)return;let u=s?()=>{let I=lL(f,s),g=Dae(f);return()=>{g?.(),I()}}:null,p=OS.get(f)??[];OS.set(f,p);let h={element:c,arm:u,entering:s!==null&&s.kind!=="none",scroll:l?()=>iL(f,l):null,lift:a};return p.push(h),hD(f,p),()=>{let I=p.indexOf(h);I<0||(p.splice(I,1),h.undo?.(),h.undo=void 0,h.undoScroll?.(),h.undoScroll=void 0,hD(f,p),p.length||OS.delete(f))}},[d,a]),o}var bD="sf-part-styles",Nae=`${bD}-`;function Mae(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 yD(e){let o=yd(hm),t=yd(xD),r=g1(o,e);return r&&r.stamp!==t?r:null}function w5e(e){return hb(yd(hm),e)}function SD({stamp:e,children:o}){return bd(xD.Provider,{value:e,children:o})}function C5e({children:e}){let o=yd(hm);return bd(ID.Provider,{value:o,children:e})}function v5e(e){return hb(yd(ID),e)}function Sd({value:e,children:o}){let t=yD(e),r=gD(t);return t?AS(SD,{stamp:t.stamp,children:AS("span",{ref:r,[nb]:t.stamp,...t.textStyle?{[Ls]:t.textStyle}:{},children:o})}):AS(Hae,{children:o})}import{jsx as RS,Fragment as Wae}from"react/jsx-runtime";function wD({className:e=""}){return RS("sup",{className:`text-accent tracking-normal text-[length:min(1em,max(0.75em,11px))] ${e}`,children:"\xAE"})}function xm(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(RS(wD,{},`r${a}`))}),RS(Wae,{children:t})}var A5e=wD;import{jsx as On}from"react/jsx-runtime";import{Component as Gae,createContext as jae,lazy as W5e,Suspense as U5e,useContext as Kae,useSyncExternalStore as Vae}from"react";var Uae="hrefRewrite";function zae(){return Vd("efficient.link-href-rewrites",()=>({rewrites:new Map,count:0,missed:new Set}))}function $ae(){return typeof process<"u"&&!0}function F5e(e){let o=e?.[Uae];return typeof o=="string"?o.trim():""}function CD(e){if(!e)return null;let o=zae(),t=o.rewrites.get(e);return!t&&!$ae()&&o.missed.add(e),t??null}var qae={Link:Dk,Image:Bk},vD=jae(qae);function V5e({runtime:e,children:o}){return On(vD.Provider,{value:e,children:o})}function FS(){return Kae(vD)}function q5e(){return FS().pagePath??null}var Yae=()=>()=>{},Xae=()=>vc()||null,Zae=()=>null;function Jae(){return Vae(Yae,Xae,Zae)}function kD({hrefRewrite:e,newTab:o,...t}){let{Link:r}=FS(),a=Jae(),n=o===!0?{...t,...sd}:o==="auto"?{...t,...qF(t.href,a)}:t,s=CD(e);return s?On(LS,{name:s.name,href:n.href,fallback:On(r,{...n}),children:On(Qae,{Link:r,rewrite:s.rewrite,...n})},s.key):On(r,{...n})}function Qae({Link:e,rewrite:o,...t}){let r=Se(o(t.href)),a=r&&OC(r)?r:t.href;return On(e,{...t,href:a})}var LS=class extends Gae{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 TD(e){let{Image:o}=FS();return On(o,{...e})}function Nr(e,o=!1,t){let r=sne(o),a=Xd(e);if(a.length===1){let[s]=a,l=_C(s),d=l?ane(l,s.children):s.children;return _n(Sd,{value:e,children:[t,Im(d,r)]})}let n=[];return a.forEach((s,l)=>{if(s.bullet){n.push(eo("span",{"data-sf-bullet":"",className:ene,children:Im(s.children,r)},l));return}if(s.number!=null){n.push(_n("span",{"data-sf-number":s.number,className:one,children:[_n("span",{className:tne,children:[s.number,"."]}),Im(s.children,r)]},l));return}l>0&&!rne(a[l-1])&&n.push(eo("br",{},`br${l}`)),n.push(eo(DS,{children:Im(s.children,r)},l))}),_n(Sd,{value:e,children:[t,n]})}var ene="relative block pl-6 before:absolute before:left-1.5 before:font-bold before:text-accent before:content-['\xB7']",one="relative block pl-[2em]",tne="absolute left-0 w-[1.6em] text-right tabular-nums";function rne(e){return e.bullet||e.number!=null}var PD="text-accent underline underline-offset-[0.18em]";function ane(e,o){let[t,...r]=o;return t?.kind==="text"?[{kind:"text",text:`${e}${t.text}`},...r]:[{kind:"text",text:e},...o]}function nne(e){return cs(e)||void 0}function Im(e,o){let t=[],r=!1;return e.forEach((a,n)=>{if(a.kind==="text"){t.push(eo("span",{children:xm(a.text)},n)),r=!0;return}r||t.push(eo("span",{},`e${n}`)),t.push(OD(a,n,o)),r=!1}),r||t.push(eo("span",{},"end")),t}function BS(e,o){return e.length===1&&e[0].kind==="text"?xm(e[0].text):e.map((t,r)=>t.kind==="text"?eo(DS,{children:xm(t.text)},r):OD(t,r,o))}function sne(e){return e?"font-normal italic text-accent":"not-italic text-accent"}function n3e(e){return ED(e)}function ED(e,o){let t=e.split(`
|
|
320
|
-
`);return _n(Sd,{value:e,children:[o,t.map((r,a)=>_n(DS,{children:[a>0?eo("br",{}):null,eo("span",{children:r})]},a))]})}function OD(e,o,t){if(e.kind==="link")return Yu(e.href)?eo(kD,{newTab:"auto",href:e.href,className:PD,children:BS(e.children,t)},o):eo("a",{href:e.href,className:PD,children:BS(e.children,t)},o);let r=BS(e.children,t),a=PC[e.kind];if(a)return eo("span",{[EC]:a,children:r},o);switch(e.kind){case"underline":return eo("u",{children:r},o);case"sup":return eo("sup",{children:r},o);case"sub":return eo("sub",{children:r},o);case"color":{let n=nne(e.color);return n?eo("span",{style:{color:n},children:r},o):eo("span",{children:r},o)}case"accent":case"highlight":return eo("em",{className:t,children:r},o);case"bold":return eo("strong",{className:"font-semibold",children:r},o);case"italic":return eo("em",{className:"italic",children:r},o);case"strike":return eo("s",{className:"line-through",children:r},o);default:return eo("span",{children:r},o)}}function
|
|
318
|
+
`}function HMe(e){let o=`[${fre}="${e}"]`,t=`.${pre(e)}`,r=`[id="${e}"]:target`;return ure({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 mre=["selected","highlighted"],XF="data-sf-card-state",GMe="pointer-events-none absolute inset-0 border border-accent",jMe="pointer-events-none absolute inset-x-0 bottom-0 border-b-2 border-accent",KMe="pointer-events-none absolute inset-0 border-2 border-accent outline outline-1 -outline-offset-1 outline-accent",VMe="absolute inset-y-0 left-0 w-[3px] bg-accent",qMe="absolute -inset-[2px] -z-[1] bg-[color-mix(in_oklab,var(--accent)_14%,transparent)]",YMe="after:pointer-events-none after:absolute after:inset-0 hover:after:border-2 hover:after:border-accent",ZF=e=>{let o=pk.find(t=>t.role===e)?.token;if(!o)throw new Error(`card-state: the palette has no ink token for "${e}"`);return o},hre={[ZF("muted")]:`var(${ZF("fg")})`};function xre(e){return e?.selected===!0}function Ire(e){return e?mre.filter(o=>e[o]===!0).join(" "):""}function XMe(e,o="frame"){let t=Ire(e);return t?o==="frame"&&xre(e)?{[XF]:t,className:"relative isolate",style:{...hre}}:{[XF]:t,className:"relative"}:{}}var gre={highlighted:!0},bre={},Xu="badge";function ZMe(e,o=[]){return e.map((t,r)=>({...t,key:t.key||o[r]?.key||Pl(t,r)}))}function JMe(e){return!e||typeof e!="object"?!1:Object.entries(e).some(([o,t])=>o==="key"||o===Xu||o==="state"?!1:typeof t=="string"?t.trim()!=="":Array.isArray(t)?t.length>0:t!=null&&typeof t!="function")}function QMe(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,[Xu]:s===a?t:""})),states:e.map((n,s)=>s===a?gre:bre)}}function eHe(e){return{chosen:typeof e.highlightedCard=="string"?e.highlightedCard.trim():"",badge:typeof e.highlightBadge=="string"?e.highlightBadge:""}}function oHe(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 tHe="data-sf-card-press",JF=`${YF} appearance-none bg-transparent border-0 p-0 m-0`,rHe=`${JF} cursor-pointer`,aHe=JF;var Zu={sectionBorder:{top:0,right:1,bottom:1,left:0},...Cr("background")},yre={gap:0,gapPhone:0,sectionBorder:{top:1,right:0,bottom:0,left:1},shadow:!0},Ju=e=>({direction:"row",columns:e,columnsTablet:e,...yre}),QF=(e={})=>qe(Xu,{...G,tag:"p",[sS]:"top-line"},e,!0),eB=(e=hv)=>{let o=xv(e);return{...o,props:{...Zu,...o.props},slots:{[He]:[...o.slots?.[He]??[],QF()]}}},lS=(e=!1)=>{let o=gv(e);return{...o,props:{...Zu,...o.props}}},Sre={name:"name",time:"time",note:"note",price:"price"},wre={textStyle:"body-1",...U("body",16),weight:500,lineHeight:1.5},Cre={...Ko,...U("label",12),letterSpacing:.18,lineHeight:1.5},vre={textStyle:"body-1",...U("body",14),lineHeight:1.6},kre={textStyle:"body-1",fontRole:"heading",...U("headingSmall",20),weight:500,color:"accent",lineHeight:1.5},Tre={...U("label",11),letterSpacing:.25},Pre={gap:16,gapPhone:16,sectionBorder:{top:0,right:0,bottom:0,left:0},shadow:!1},Ere=e=>({direction:"row",columns:e,...Pre}),fHe=[...new Set([...Object.keys(Ju(1)),...Object.keys(Ere(1))])],pHe=()=>{let e=Sre,o={tag:"p",widthFit:"fill"};return{type:te,props:{...L,name:"Card",justify:"between",gap:16,gapPhone:16,...Do(24),sectionBorder:{top:1,right:1,bottom:1,left:1},...Cr("surface"),shadow:!0},slots:{[He]:[QF(Tre),{type:te,props:{...L,name:"Words",gap:8,gapPhone:8},slots:{[He]:[qe(e.name,{...G,...o},wre),qe(e.time,{...ne,...o},Cre),qe(e.note,{...ne,...o},vre)]}},qe(e.price,{...G,...o},kre)]}}};import{tabletKey as aB}from"efficient-easel/draw";import{VIEW_DESKTOP_MIN as Qu}from"efficient-easel/draw";var em=Gr,iS=Qu,oB=960,tB=Gr,rB={min:em,max:1600,step:10},om="stackBelow";function IHe(e){if(!(typeof e!="number"||!Number.isFinite(e))&&!(e<rB.min||e>rB.max))return Math.round(e)}var Ore=e=>`sf-stack-${e}`,_re=e=>`sf-stack-${e}-gutter`,Are=e=>`sf-stack-${e}-outer`,al=e=>`${e-.02}px`;function gHe(e,o={}){let t=o.gutter!==!1,r=`.${Ore(e)}`,a=`.${_re(e)}`,n=`.${Are(e)}`,s=[];if(e>em){let l=`${r}>.sf-block-size,${r}>[data-easel-block]>[data-sf-part-host]>.sf-block-size`,d=Math.min(e,Qu);s.push(`@media (min-width:${em}px) and (max-width:${al(e)}){${r}${r}{flex-direction:column}.sf-gap-overlap${r}{--sf-gap-overlap-eff:calc(var(--sf-gap-overlap) / 2)}${l}{width:min(var(--sf-bw-p,100%),100%);flex-grow:0}}`,`@media (min-width:${em}px) and (max-width:${al(d)}){.sf-gap-zone${r}{gap:var(--sf-gap-len-tablet,var(--sf-gap-len-phone,calc(var(--sf-gap-len) / 2)))}}`),e>Qu&&s.push(`@media (min-width:${Qu}px) and (max-width:${al(e)}){.sf-gap-zone${r}{gap:var(--sf-gap-len-phone,calc(var(--sf-gap-len) / 2))}}`)}return t&&s.push(`@media (max-width:${al(e)}){${a}${a}{padding-inline:${ar.frame}}}`),t&&e<oB&&s.push(`@media (min-width:${e}px) and (max-width:${al(oB)}){${a}${a}{padding-inline:${nt}}}`),e>tB&&s.push(`@media (min-width:${tB}px) and (max-width:${al(e)}){`+["top","bottom","left","right"].map(l=>`.sf-pad-${l}-phone:has(>${n}),.sf-pad-${l}-phone${n}{padding-${l}:var(--sf-pad-${l[0]}-phone)!important}`).join("")+"}"),s.join("")}function Tn(e){if(e==="ProductGrid")return"shelf";let o=K(kr,e)?.headStyle;return o==="editorial"||o==="simple"||o==="essay"?o:"standard"}var ld={standard:64,editorial:60,simple:36,essay:28,shelf:20},Rre={SectionHeader:"accent",FAQ:"accent",FitmentFinder:"accent",FitmentTable:"accent",SpecTable:"accent",RelatedProducts:"accent",Collections:"accentNum"};function Lre(e){if(e==="SectionHeader")return{num:"num",title:"title",description:"description",link:!0};let o=K(kr,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 rm(e,o,t){let r=`editorial:${e}|${o}|${t}`,a=tm.get(r);if(a)return a;let n=iB({num:e,title:o,description:t,link:!1});return tm.set(r,n),n}var et={[om]:iS},cS={top:0,right:0,bottom:1,left:0},ot=(e,o,t,r)=>({sizeToken:{step:e,px:r,fluid:{minPx:o,vw:t}}}),am=(e,o,t={})=>me(e,{...U("label",o),...t}),nm=(e,o)=>({kind:"text",key:e,role:"heading",props:G,style:{textStyle:"heading-2",...o}}),fS=800,Fre=iS,pS=(e,o,t,r,a={})=>({kind:"text",key:e,props:{...ne,align:"right",alignPhone:"left",...t?{maxWidth:t,maxWidthPhone:fS}:{},...a},style:{textStyle:"body-5",fontRole:"heading",alignPhone:"left",...U("body",o),...r,...a}}),lB={...vo,align:"right",alignPhone:"left",...vn},dS=e=>({kind:"button",key:"linkText",href:"linkHref",variant:"ghost",props:lB,style:{...Lt(e),color:"labels"}}),nB=(e,o,t)=>{let r=t.role==="heading"?{tag:"h2"}:{};return{kind:"block",type:"Text",when:a=>a[e]===void 0,props:{...G,...r,...t.props,text:o,_partStyles:{text:{...t.role==="eyebrow"?Bre(vr()):{},...t.style}}}}},Bre=e=>e._partStyles.text??{},nl={widthFitPhone:"fill"};function uS(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),...nl}):{...o,...nl}}}return{...e,parts:e.parts.map(uS)}}function Dre(e,o){let t=K(Rre,e),r=t==="accent",a=am(o.num,14,{color:r?"accent":"labels"}),n=t==="accentNum"&&a.kind==="text"?{...a,mark:"accentLead"}:a,s=nm(o.title,r?{...ot("headingMedium",36,5,64),case:"upper",lineHeight:.95,letterSpacing:-.025}:{...U("headingMedium",56,36),case:"none",lineHeight:1,letterSpacing:-.03}),l=e==="Collections";return{kind:"group",name:"Header",props:{...L,direction:"row",align:"end",justify:"between",gap:40,gapPhone:12,share:"content",sectionBorder:cS,sectionPaddingBottom:24,sectionPaddingBottomPhone:20},parts:[{kind:"group",name:"Title",props:{...L,...nl,direction:"row",align:"end",gap:40,gapPhone:12,share:"content"},parts:[{kind:"group",name:"Number",props:{...L,...nl,align:"start",gap:12},parts:[{kind:"image",key:"logoSrc",alt:"logoAlt",props:{aspect:"auto",contained:!1}},n,...l?[nB(o.num,"==01== / Collections",n)]:[]]},{kind:"group",name:"Heading",props:{...L,...nl},parts:[s,...l?[nB(o.title,`Three ranges,
|
|
319
|
+
one standard.`,s)]:[]]}]},{kind:"group",name:"Words",props:{...L,...nl,gap:12,maxWidth:340,maxWidthPhone:fS},parts:[...o.description?[pS(o.description,14,void 0,{lineHeight:1.5})]:[],...o.link?[dS(14)]:[],...l?[{kind:"block",type:"ButtonBlock",props:{...lB,variant:"ghost",label:"View all",href:"/wheels",_partStyles:{label:dS(14).style}}}]:[]]}]}}function sm(e,o){return e.kind==="text"?o.includes(e.key)?{...e,mark:"accentItalic"}:e:e.kind==="group"?{...e,parts:e.parts.map(t=>sm(t,o))}:e}function iB(e){let o=nm(e.title,{...ot("headingMedium",40,5.5,80),case:"upper",weight:500,lineHeight:1,letterSpacing:-.03});return{kind:"group",name:"Header",props:{...L,direction:"row",align:"end",justify:"between",gap:40,gapPhone:14,share:"content",sectionBorder:cS,sectionPaddingBottom:32,...et},parts:[{kind:"group",name:"Title",props:{...L,direction:"row",align:"end",gap:40,gapPhone:14,share:"content",...et},parts:[{kind:"group",name:"Number",props:{...L,sectionPaddingBottom:8},parts:[{...am(e.num,13),props:{...G,...wn}}]},sm(o,[e.title])]},{kind:"group",name:"Words",props:{...L,sectionPaddingBottom:4,maxWidth:360,[aB("maxWidth")]:Fre,maxWidthPhone:fS},parts:e.description?[pS(e.description,14,void 0,{lineHeight:1.5},{[aB("align")]:"left"})]:[]}]}}function sB(e,o){return{kind:"group",name:"Header",props:{...L,gap:16,gapPhone:16},parts:[am(e.num,13),nm(e.title,o)]}}var dB=[["para",{...Lt(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}]],Nre=e=>dB.some(([o])=>o===e.titleSize)?e.titleSize:"lg";function Mre(e){return{kind:"group",name:"Header",props:{...L,direction:"row",align:"center",justify:"between",gap:16,share:"content",stickTop:!0,sectionBorder:cS,sectionPaddingTop:12,sectionPaddingBottom:12},parts:[{kind:"group",name:"Title",props:{...L,direction:"row",align:"end",gap:24,share:"content"},parts:[am(e.num,13,{color:"labels",letterSpacing:.22,lineHeight:1}),...dB.map(([o,t])=>({...nm(e.title,t),when:r=>Nre(r)===o}))]},{kind:"group",name:"Words",props:{...L,direction:"row",align:"center",justify:"end",gap:20,share:"content"},parts:[...e.description?[pS(e.description,13,340,{lineHeight:1.4})]:[],...e.link?[dS(13)]:[]]}]}}function lm(e){return Tn(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 tm=new Map,mS={...U("headingMedium",44,32),case:"upper",weight:500,lineHeight:1,letterSpacing:-.02};function Ct(e){let o=tm.get(e);if(o)return o;let t=Lre(e),r=Tn(e),a=r==="editorial"?iB(t):r==="simple"?sB(t,mS):r==="essay"?sB(t,{...U("headingMedium",38,28,"headingSmall"),case:"upper",lineHeight:1,letterSpacing:-.02}):r==="shelf"?Mre(t):Dre(e,t);return tm.set(e,a),a}var Pn={Series:"transparent",StatsParagraph:"transparent",TimelineTrack:Mo,Stats:void 0};var id=(e,o,t,r)=>({sectionBorder:{top:e,right:o,bottom:t,left:r}}),wB=e=>o=>$F(q(o.columns)??q(e.columns)),Ure="inline is the head the row draws; an own-box node is skipped (`skip`)",zre={kind:"text",key:"title",role:"heading",props:G,style:{textStyle:"heading-3",...mS}},cB={top:120,bottom:120,topPhone:80,bottomPhone:80,topTablet:80,bottomTablet:80},dm=e=>{let o=sr(typeof e.background=="string"?e.background:void 0,Pn.Series);return o&&o!=="transparent"?o:void 0},im=e=>dm(e)===Mo,$re={...L,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},fB={...L,direction:"row",justify:"between",gap:12,share:"content",phoneRow:2,[IS("share")]:"content"},Gre=e=>{let o=dm(e)?1:2;return{...L,direction:"row",columns:4,columnsTablet:2,gap:o,gapPhone:o}},hS={...Lt(12),letterSpacing:.22,lineHeight:1.5},pB=e=>Qe(e.viewLabel)&&!gS(e.viewLabel).hidden,vt=e=>gS(e).text?.trim?.()??"",cm=e=>Object.fromEntries(Object.entries(e).filter(([,o])=>Se(o)!==void 0)),bS=e=>e.map(([o,t,r])=>({key:o,label:t,...r?{multiline:!0}:{}})),jre=bS([["num","Number"],["since","Corner note"],["title","Card title"],["body","Card body",!0],["count","Count"],["countLabel","Count word"]]),Kre=bS([["label","Label"],["value","Value"],["body","Card body",!0]]),dd=(e,o,t,r,a,{reads:n=["cards"],keep:s=[]}={})=>({kind:"group",name:e,props:o,parts:[{kind:"core",as:Ft,headless:!0,keep:s,derive:{reads:n,props:l=>cc(r(l),t)},slots:(l,d)=>({[No]:[a(l,d)]})}]}),CB=e=>Array.isArray(e.cards)?e.cards:[],uB={top:76,bottom:76,topPhone:76,bottomPhone:76},vB=e=>(Array.isArray(e.items)?e.items:[]).map(o=>cm({title:vt(o?.label),href:typeof o?.href=="string"?o.href.trim():""})).filter(o=>o.title!==void 0).map((o,t)=>({key:Pl(Rh(o),t),...o})),Vre=e=>vB(e).some(o=>Se(o.href)!==void 0),kB=[{key:Th.label,label:"Feature label"},{key:Th.href,label:"Link",kind:"link"}],mB=e=>VF(e.eyebrowLook,"KeyFeatures")==="filled",qre={name:"Key Features",boxProps:(e,o)=>({...Z,direction:"column",gap:44,gapPhone:32,...Qo("surface")(e,o),...id(1,0,1,0),...le(e,uB)}),box:[...re,...ue(uB)],parts:[{kind:"group",name:"Heading",props:{...L,direction:"row",align:"end",gap:20,wrap:!0,share:"content",phoneRow:2,[IS("share")]:"content"},parts:[{...el("eyebrow"),when:mB},{...me("eyebrow"),when:e=>!mB(e)},zre]},dd("Cards",e=>({...L,...Ju(wB(jF.defaultProps)(e))}),kB,vB,e=>lS(Vre(e)),{reads:["items"]})],drop:{...Q,...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"}},hB={top:72,bottom:72,topPhone:72,bottomPhone:72},xB=(e,o)=>({...Zu,...Qo("background")(e,o)}),IB=e=>{let o=wB(GF.defaultProps)(e);return{...L,...Ju(o)}},Yre=bS([["title","Card title"],["body","Card body",!0]]),TB=e=>(Array.isArray(e.items)?e.items:[]).map((o,t)=>({key:typeof o?.key=="string"&&o.key?o.key:Pl(Rh(o),t),title:vt(o?.title),body:vt(o?.body)})),PB=e=>{let o={},t={};for(let[r,a]of Object.entries(e.props??{}))r!=="id"&&(Hre(a)?t[r]=a.map(PB):o[r]=a);return{type:String(e.type),props:o,...Object.keys(t).length?{slots:t}:{}}},gB=(e,o)=>{let t=xS(e)?lS(Xre(e)):eB(),r=Array.isArray(e.template)?e.template.map(PB):[t],[a]=r;return r.length===1&&a.type===te?{...a,props:{...xB(e,o),...a.props}}:{type:te,props:{...L,...xB(e,o),name:"Card"},slots:{[He]:r}}},xS=e=>e.cardStyle==="label-only",EB=e=>TB(e).map((o,t)=>{let r=e.items[t]?.href;return cm({key:o.key,title:o.title,href:typeof r=="string"?r.trim():""})}),Xre=e=>EB(e).some(o=>Se(o.href)!==void 0),bB=e=>Array.isArray(e.template)&&e.template.length===0,yB=["dataSource","dataSourceOptions","highlightedCard","highlightBadge"];function OB(){let e=t=>({key:Wre("card"),title:i(t),body:i("A short line about this card.")}),o=[e("Card title one"),e("Card title two"),e("Card title three")];return{eyebrow:i("Label"),title:i("Section *heading.*"),items:o}}var Zre={name:"Cards",ownBoxConverts:!0,boxProps:(e,o)=>({...Z,direction:"column",gap:36,gapPhone:28,...Qo("surface")(e,o),...le(e,hB)}),box:[...re,...ue(hB)],parts:[{...Ct("Cards"),when:e=>!Qy(e)},{...dd("Cards",IB,Yre,TB,gB,{reads:["items"],keep:yB}),when:e=>!bB(e)&&!xS(e)},{...dd("Cards",IB,kB,EB,gB,{reads:["items"],keep:yB}),when:e=>!bB(e)&&xS(e)}],drop:{...Q,...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)"}},Jre={name:"Recurring Columns",boxProps:(e,o)=>({...Z,direction:"column",gap:60,gapPhone:60,...id(0,0,1,0),...et,...im(e)?kn(e,o):{},...Vu(dm(e),e,o),...le(e,cB)}),box:[...re.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,t)=>im(o)?ma(e,o,t):e],...ue(cB)],skip:e=>qu(dm(e)),site:(e,o)=>im(e.props)?ha(e,o):[],parts:[Ct("Series"),dd("Cards",Gre,jre,e=>CB(e).map(o=>cm({num:vt(o.num),since:vt(o.since),title:vt(o.title),body:vt(o.desc),count:vt(o.entries),countLabel:vt(o.entriesLabel)})),(e,o)=>({type:te,props:{...$re,...Qo("background",(t,r)=>im(t)&&Ku(t,r))(e,o),name:"Card"},slots:{[He]:[{type:te,props:{...L,name:"Words",gap:16,gapPhone:16},slots:{[He]:[{type:te,props:{...fB,name:"Top"},slots:{[He]:[qe("num",G,U("label",13),!0),qe("since",G,U("label",13),!0)]}},qe("title",{...G,tag:"h3"},{textStyle:"heading-3",...U("headingSmall",28),weight:500,case:"upper",lineHeight:1.04,letterSpacing:-.02}),qe("body",ne,{textStyle:"body-5",fontRole:"heading",...U("body",14),lineHeight:1.6})]}},{type:te,props:{...fB,name:"Footer",align:"center",gap:0,gapPhone:0,sectionPaddingTop:16,sectionPaddingTopPhone:16,...id(1,0,0,0),...pB(e)?{}:{[Mv]:["count","countLabel"]}},slots:{[He]:[{type:te,props:{...L,name:"Count",direction:"row",align:"center",gap:12,gapPhone:12,share:"content",phoneRow:2,[IS("share")]:"content"},slots:{[He]:[qe("count",G,hS),qe("countLabel",ne,hS)]}},...pB(e)?[{type:te,props:{...L,name:"View",maxWidthPhone:266},slots:{[He]:[{type:"Text",props:{...G,text:gS(e.viewLabel).text,_partStyles:{text:{...vr()._partStyles.text,...hS}}}}]}}]:[]]}}]}}))],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:{...Q,...se,headPlacement:Ure}},SB={top:60,bottom:60,topPhone:40,bottomPhone:40},Qre={...L,direction:"row",columns:3,gap:40,gapPhone:16},eae={...L,gap:8,gapPhone:8,...Do(24),...id(1,1,1,1)},oae={name:"Document Detail Cards",boxProps:e=>({...Z,direction:"column",gap:40,gapPhone:16,...id(0,0,1,0),...le(e,SB)}),box:[...re,...ue(SB)],parts:[dd("Cards",Qre,Kre,e=>CB(e).map(o=>cm({label:vt(o.label),value:vt(o.value),body:vt(o.desc)})),(e,o)=>({type:te,props:{...eae,...Qo("surface")(e,o),name:"Card"},slots:{[He]:[qe("label",G,{...U("label",12),lineHeight:1.5},!0),{type:te,props:{...L,name:"Words",gap:14,gapPhone:14},slots:{[He]:[qe("value",G,{textStyle:"heading-3",...U("headingSmall",20),weight:500,letterSpacing:-.015,lineHeight:1.5}),qe("body",ne,{textStyle:"body-5",fontRole:"accent",...U("body",14),italic:!0,lineHeight:1.5})]}}]}}))],drop:{...Q,...se}},_B={Cards:Zre,KeyFeatures:qre,Series:Jre,DocMetaCards:oae};import{phoneKey as nae}from"efficient-easel/draw";import{newId as sae}from"efficient-easel/data";import{phoneKey as tae}from"efficient-easel/draw";import{isNode as cd}from"efficient-easel/data";var sl="cardStyle";function AB(e){let{widthPhone:o,...t}=e;return e.widthFitPhone==="fixed"?{...t,widthFitPhone:"fill"}:{...e}}var fm={table:{items:{gap:0,gapPhone:0,columnsTablet:2},grid:{gap:0},row:{gap:0,[tae("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}}}},kt={table:{...fm.table,listCard:AB(fm.table.card)},list:{...fm.list,listCard:AB(fm.list.card)}},o4e=[{label:"Table",value:"table"},{label:"List",value:"list"}],t4e=e=>e==="table"||e==="list",rae=e=>[...new Set([...Object.keys(kt.table[e]),...Object.keys(kt.list[e])])];function fd(e,o,t){let r={...e};for(let a of rae(o))delete r[a];return{...r,...structuredClone(kt[t][o])}}function aae(e,o,t){let r=e.props??{},a=Array.isArray(r[No])?r[No]:[],n=a.findIndex(d=>cd(d)&&d.type===t);if(n<0)return e;let s=a[n],l=a.map((d,c)=>c===n?{...s,props:fd(s.props??{},"listCard",o)}:d);return{...e,props:{...r,[No]:l}}}function r4e(e,o,t,r){let a=Array.isArray(e[r])?e[r]:[];if(a.some(s=>cd(s)&&s.type===Ft)){let s=a.map(l=>cd(l)&&l.type===Ft?aae(l,o,t):l);return{...fd(e,"items",o),[sl]:o,[r]:s}}let n=a.map(s=>{if(!cd(s)||s.type!==t)return s;let l=s.props??{},d=(Array.isArray(l[r])?l[r]:[]).map(c=>cd(c)&&c.type===t?{...c,props:fd(c.props??{},"card",o)}:c);return{...s,props:{...fd(l,"row",o),[r]:d}}});return{...fd(e,"grid",o),[sl]:o,[r]:n}}var yS=e=>typeof e=="string"?e.trim():"";function RB(e){let o=`${yS(e.prefix)}${yS(e.value)}`,t=yS(e.suffix);return e.emphasizeAll===!0?o?`==_${o}_==`:"":`${o}${t?`==_${t}_==`:""}`}var BB={textStyle:"heading-2",...ot("headingMedium",56,7,96),weight:500,case:"none",lineHeight:.9,letterSpacing:-.04},SS={kind:"block",type:"Text",props:{...Cn,_partStyles:{text:BB}},box:[["value","text",(e,o)=>RB(o)]],when:(e,o)=>o!==void 0&&typeof o.value=="string"&&RB(o)!==""},LB=e=>Qe(e?.supSuffix),DB={textStyle:"body-1",fontRole:"heading",...U("body",16),lineHeight:1.5,letterSpacing:-.01},NB={color:"labels",...U("label",12),lineHeight:1.5,letterSpacing:.24},MB={...L,direction:"row",align:"start",gap:32,gapPhone:32,share:"content",phoneRow:2,[nae("share")]:"content"},HB={textStyle:"body-5",...U("label",13),weight:500,color:"accent",letterSpacing:.18,lineHeight:1,padding:12},wS=e=>sr(e.background,Pn.StatsParagraph),pd=e=>wS(e)===Mo,pm=e=>({...e,sectionAccent:e.sectionAccent??0}),lae=(e,o)=>pd(e)?Qo("background",(t,r)=>Ku(pm(t),r))(e,o):{},iae={name:"Stats with Text",skip:e=>wS(e)&&wS(e)!=="transparent"&&!pd(e)?"it paints a colour of its own, not the section band":void 0,boxProps:(e,o)=>({...Z,direction:"column",gap:60,gapPhone:60,sectionBorder:{bottom:1},...et,...wt(e,"StatsParagraph"),...pd(e)?kn(pm(e),o):{}}),box:[...re.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,t)=>pd(o)?ma(e,pm(o),t):e],...pa("StatsParagraph")],site:(e,o)=>pd(e.props)?ha({props:pm(e.props)},o):[],parts:[Ct("StatsParagraph"),{kind:"group",name:"Stats",props:{...L,...kt.table.grid,[sl]:"table"},parts:[{kind:"list",key:"stats",name:"Stat",perRow:()=>4,rowName:"Stats row",rowProps:{...L,direction:"row",share:"equal",phoneRow:2,...kt.table.row},props:(e,o)=>({...L,...kt.table.card,...lae(e,o)}),parts:[{...SS,when:(e,o)=>!LB(o)&&SS.when(e,o)},{kind:"group",name:"Figure",props:MB,when:(e,o)=>LB(o),parts:[SS,{kind:"text",key:"supSuffix",props:G,style:HB}]},{kind:"group",name:"Words",props:{...L,gap:4,gapPhone:4},parts:[{kind:"text",key:"label",props:G,style:DB},me("sub",NB)]}]}]}],drop:{...Q,...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"}},dae=new Set(["value","label",Rt]),FB={top:48,bottom:48,topPhone:48,bottomPhone:48},cae=e=>{let o=sr(typeof e.background=="string"?e.background:void 0,Pn.Stats);return!!o&&o!=="transparent"},fae={name:"Stats",skip:e=>cae(e)?"it paints a colour inside its padding, and a Box paints its Fill over the padding too":Qe(e.dataSource)?"its figures come from a source":Array.isArray(e.items)&&e.items.some(o=>Qe(o?.[Rt]))?"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=>!dae.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=>({...Z,direction:"column",gap:24,gapPhone:24,...le(e,FB)}),box:[...re,...ue(FB)],parts:[me("heading",{color:"labels",...U("label",12),letterSpacing:.2}),{kind:"group",name:"Stats",props:{...L,...kt.list.grid,[sl]:"list"},parts:[{kind:"list",key:"items",name:"Stat",perRow:e=>q(e.columns)??4,rowName:"Stats row",rowProps:{...L,direction:"row",share:"equal",phoneRow:2,...kt.list.row},props:{...L,...kt.list.card},parts:[{kind:"text",key:"value",props:Cn,style:{textStyle:"heading-2",...U("headingMedium",48,36),weight:500,case:"none",lineHeight:1,letterSpacing:-.03}},me("label",{color:"labels",...U("label",12),letterSpacing:.2})]}]}],drop:{...Q,...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"}},WB={StatsParagraph:iae,Stats:fae};function UB(){return{eyebrow:i("By the numbers"),title:i("What we count."),desc:i("A few numbers that matter to us."),stats:[],background:"transparent"}}var pae=[{key:"figure",label:"Figure"},{key:"superscript",label:"Superscript"},{key:"label",label:"Label"},{key:"body",label:"Text",multiline:!0}];function zB(){let e=(o,t,r,a="")=>({key:sae("stat"),figure:o,superscript:a,label:t,body:r});return[e("28==_yr_==",i("Years in business"),i("Privately held since day one. Same two founders.")),e("==_8_==",i("Operating footprint"),i("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."),i("cities")),e("\u221221==_%_==",i("Avg. weight saving"),i("Versus OEM equivalents, across our forged catalog.")),e("14==_\xD7_==",i("Finish steps"),i("Specified in California to a 14-step protocol. No two sets are identical."))]}function uae(e){return{type:te,props:{...L,name:"Card",...structuredClone(kt[e].listCard)},slots:{[He]:[{type:te,props:{...MB,name:"Figure"},slots:{[He]:[qe("figure",Cn,BB),qe("superscript",G,HB)]}},{type:te,props:{...L,name:"Words",gap:4,gapPhone:4},slots:{[He]:[qe("label",{...G,widthFit:"fill"},DB),qe("body",{...G,widthFit:"fill"},NB,!0)]}}]}}}function CS(e,o,t=4){return{type:te,props:{...L,name:"Stats",direction:"row",columns:t,...structuredClone(kt[o].items),[sl]:o},slots:{[He]:[{type:Ft,props:cc(e,pae),slots:{[No]:[uae(o)]}}]}}}var $B={heading:"Trusted by *teams worldwide*"},GB=()=>[{src:"",alt:i("Logo one")},{src:"",alt:i("Logo two")},{src:"",alt:i("Logo three")},{src:"",alt:i("Logo four")},{src:"",alt:i("Logo five")}],mae={logos:{type:"slot",allow:["LogoBlock"]},template:{type:"slot",allow:["LogoBlock"]}},S4e={label:"Logos",drawsPictures:!0,fields:mae,defaultProps:{items:[],contained:!0}};var jB={heading:"Ways to pay"},KB=()=>[{label:"Visa"},{label:"Mastercard"},{label:"Amex"},{label:"PayPal"}],VB=()=>[{text:i("Secure encrypted checkout")},{text:i("30-day returns")}],v4e={label:"Payment Methods",drawsPictures:!0,defaultProps:{heading:"",badges:[],assurances:[],contained:!0}};import{phoneKey as kS,readHidable as hae}from"efficient-easel/draw";var TS={contained:!1},PS=(e,o)=>({logos:[{kind:"list",key:e,name:"Logo",flat:!0,parts:[{kind:"block",type:"LogoBlock",box:["src",[o,"alt"]],when:(t,r)=>Qe(r?.src)||Qe(r?.[o])}]}]}),vS=e=>{let o=q(e.bandPadding)??40;return{top:o,bottom:o,topPhone:o,bottomPhone:o}},xae={...me("heading",{color:"labels",letterSpacing:.2}),props:{...G,align:"center"}},Iae={name:"Logos",boxProps:e=>({...Z,direction:"column",gap:32,...le(e,vS(e))}),box:[...re,...ue(vS),["bandPadding","sectionPaddingTop",(e,o)=>le(o,vS(o)).sectionPaddingTop]],parts:[xae,{kind:"core",keep:["columns","logoHeight","grayscale"],rename:{logosPerRow:"columns"},props:TS,slots:PS("items","alt")}],drop:{...Q,...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"}},gae={kind:"group",name:"Mark",keepEmpty:!0,parts:[],props:uv(4,"main",{sectionCorners:2})},qB={top:24,bottom:24,topPhone:24,bottomPhone:24},bae={name:"Payment Methods",boxProps:e=>({...Z,direction:"column",...le(e,qB)}),box:[...re,...ue(qB)],parts:[{kind:"group",name:"Methods",props:{...L,align:"center",gap:20,gapPhone:20,sectionBorder:{top:1,bottom:1},sectionPaddingTop:32,sectionPaddingBottom:32},parts:[{...me("heading",{color:"labels"}),props:{...G,align:"center"}},{kind:"core",keep:[],as:"Logos",derive:{reads:[So,gr],props:e=>Qe(e[So])?{[So]:e[So],...e[gr]!==void 0?{[gr]:e[gr]}:{}}:{}},props:{...TS,look:"cards",grayscale:!1},slots:e=>({...PS("badges","label"),...Qe(e[So])?{[No]:[Ph()]}:{}})},{kind:"group",name:"Reassurance",props:{...L,direction:"row",wrap:!0,justify:"center",gap:24,gapPhone:24,phoneRow:2,[kS("share")]:"content"},parts:[{kind:"list",key:"assurances",name:"Line",of:e=>(Array.isArray(e.assurances)?e.assurances:[]).filter(o=>Qe(o?.text)),props:{...L,direction:"row",align:"center",gap:8,gapPhone:8,phoneRow:2,[kS("share")]:"content"},item:e=>hae(e.text).hidden?{props:{_hidden:!0}}:{},parts:[gae,{kind:"text",key:"text",props:{...G,align:"center"},style:{...U("label",13),color:"labels",lineHeight:1.5}}]}]}]}],drop:{...Q,...se,contained:"the Box draws the site frame now; the Logos block inside it fills the Box's column (`contained: false`)"}},YB=e=>rv(e.align)??"left",XB=e=>e.size==="md"?"md":"sm",ZB=12,JB={name:"Payment logos",boxProps:e=>({...L,direction:"row",wrap:!0,align:"center",justify:ec[YB(e)],gap:ZB,gapPhone:ZB,phoneRow:2,[kS("share")]:"content"}),box:[...Jr],parts:[{kind:"text",key:"lead",props:ne,styleFrom:e=>({size:Xs[XB(e)],lineHeight:1.5})},{kind:"core",keep:[],as:"Logos",derive:{reads:[So,gr],props:e=>({logoHeight:pF[XB(e)].mark,align:YB(e),...Qe(e[So])?{[So]:e[So],...e[gr]!==void 0?{[gr]:e[gr]}:{}}:{}})},props:{...TS,look:"marks",grayscale:!1,sectionAccent:Qt},slots:e=>({...PS("methods","label"),...Qe(e[So])?{[No]:[Ph()]}:{}})}],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"}},QB={Logos:Iae,PaymentBadges:bae,FooterPayment:JB,PaymentLogosBlock:JB},eD=()=>({heading:$B.heading,items:GB()}),oD=()=>({heading:jB.heading,badges:KB(),assurances:VB()}),tD=()=>({...wf,methods:[]});import{mixHex as Sae}from"efficient-shell/format";var z4e="none",$4e=[{label:"Nothing",value:"none"},{label:"Section above",value:"above"},{label:"Section below",value:"below"}];function rD(e){return e==="above"||e==="below"?e:null}var G4e="sf-ticker-join";function yae(e){return e==="above"?"sf-ticker-join-above":"sf-ticker-join-below"}function j4e(e){return`absolute inset-x-0 ${yae(e)}`}var En={direction:"row",share:"content",align:"center"},ud={top:14,bottom:14,topPhone:12,bottomPhone:12},um={wrap:"nowrap",loop:"scroll",sectionAccent:hk,gap:60,gapPhone:32,separator:"dot",sectionBorder:{top:1,bottom:1}},aD={gap:120,gapPhone:64},mm={...Ko,sizeToken:{step:"label",px:14,pxPhone:12},letterSpacing:.25,lineHeight:1.5},nD={textStyle:"heading-3",letterSpacing:.005,case:"upper",lineHeight:1},md={top:16,bottom:16,topPhone:12,bottomPhone:12},hd={justify:"between",wrap:"wrap",gap:32,separator:"none"},xd={...Ko,letterSpacing:.1,lineHeight:1.5};var sD=e=>e.size==="display",wae=(e,o)=>{let t=ju(e,o),r=e.tone!=="plain"&&t?.text&&t.background?Sae(t.text,t.background,.3):null;return r?{color:r}:{}},Cae=(e,o)=>e.tone!=="plain"&&er(e.sectionAccent)===null?Qo("background")(e,o):{},lD=(e,o)=>({kind:"list",key:"items",name:"Item",flat:!0,when:o,parts:[{kind:"text",key:"text",props:ne,style:e,styleFrom:wae}]}),vae={name:"Scrolling Bar",boxProps:(e,o)=>({...Z,...En,...um,...sv[gh(e.separator)]===""?aD:{},...le(e,ud),...Cae(e,o)}),box:[["scrollDirection","scrollDirection",e=>oR(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=>gh(e)],["join","join",e=>rD(e)??void 0],["borders","sectionBorder",e=>e===!1?void 0:{top:1,bottom:1}],...re,["tone","sectionAccent",(e,o)=>er(o.sectionAccent)??Qt],...ue(ud)],parts:[lD(mm,e=>!sD(e)),lD(nD,sD)],drop:{...Q,...se,size:"each item's Text style: Small \u2192 Body 5, Display \u2192 Heading 3"}},iD=e=>e?.tone==="muted",dD=e=>uc(yn(e)),kae={name:"Spec Strip",boxProps:(e,o)=>({...Z,...En,...hd,...e.fill==="none"?{sectionBorder:{top:1}}:{sectionAccent:dD(o)},...le(e,md)}),box:[...re.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,t)=>o.fill==="none"?e:dD(t)],...ue(md)],parts:[{kind:"list",key:"cells",name:"Cell",flat:!0,parts:[{kind:"text",key:"text",props:G,style:xd,when:(e,o)=>!iD(o)},{kind:"text",key:"text",props:ne,style:xd,when:(e,o)=>iD(o)}]}],drop:{...Q,...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"}},cD={Ticker:vae,SpecStrip:kae};import{jsxs as _n,jsx as eo}from"react/jsx-runtime";import{Fragment as DS}from"react";import{Fragment as Hae,jsx as AS}from"react/jsx-runtime";import{Fragment as mD,jsx as bd,jsxs as Aae}from"react/jsx-runtime";import{createContext as _S,useContext as yd,useEffect as Rae,useId as Lae,useMemo as Fae,useRef as Bae}from"react";import{armEntrance as Dae}from"efficient-shell/format";import{jsx as Tae}from"react/jsx-runtime";import{useEffect as pD,useRef as fD,useState as Pae}from"react";import{armEntrance as Eae,entranceAttrs as Oae,playEntrance as _ae}from"efficient-shell/format";function uD({views:e,editing:o,boxClass:t,boxAttrs:r,boxStyle:a,takesViewHide:n=!1,atEdge:s=!1,children:l}){let d=fD(null),c=Sc(),f=qr(),u=n?f:os,p=Id(d,!0,s),{attrs:h,style:I}=Oae(e[p]),g=fD(ES.seed(e)),C=JSON.stringify(e);return pD(()=>{let w=d.current;if(w){if(o){let T=ES.next(g.current,e,p);g.current=T.seen,T.play&&_ae(w);return}return Eae(w)}},[C,p,o]),u.scope(Tae("div",{ref:d,className:Yr(`${Qn}${c.fill}${t?` ${t}`:""}`,u.className),...r,...u.attrs,...h,...Object.keys(I).length||a?{style:{...a,...I}}:{},children:c.inner(l)}))}var ES={seed(e){return{desktop:JSON.stringify(e.desktop),tablet:JSON.stringify(e.tablet),phone:JSON.stringify(e.phone)}},next(e,o,t){let r=ES.seed(o);return{play:r[t]!==e[t],seen:r}}};function Id(e,o=!0,t=!1){return gd(e,o,t)??"desktop"}function gd(e,o=!0,t=!1){let[r,a]=Pae(void 0),n=yc(t?"edge":"by-box"),{phone:s,tablet:l}=xb(n);return pD(()=>{if(!o)return;let d=e.current?.ownerDocument?.defaultView??(typeof window>"u"?null:window);if(!d?.matchMedia){a("desktop");return}let c=d.matchMedia(s),f=d.matchMedia(l),u=()=>a(c.matches?"phone":f.matches?"tablet":"desktop");return u(),c.addEventListener("change",u),f.addEventListener("change",u),()=>{c.removeEventListener("change",u),f.removeEventListener("change",u)}},[e,o,s,l]),r}var hm=_S(null),xD=_S(null),ID=_S(null);function w5e({needles:e,styles:o,motions:t=aL,type:r,atEdge:a=!1,children:n}){let s=Lae(),l=yc(a?"edge":"by-box"),d=JSON.stringify([s,e,o,t,r]),c=Fae(()=>{let u=Object.keys(t).filter(p=>sL(t[p]));return x1(e,o,s,p=>zi(r,p),p=>f1(r,p),p=>u.includes(p)?Dy(t[p]):null,u)},[d]);if(!c)return bd(mD,{children:n});let f=I1(c,{inBox:l});return Aae(mD,{children:[f&&bd("style",{href:`${Nae}${s}-${Mae(f)}`,precedence:bD,dangerouslySetInnerHTML:{__html:f.replace(/</g,"\\3c ")}}),bd(hm.Provider,{value:c,children:n})]})}var OS=new WeakMap;function hD(e,o){let t=Ny(o.filter(a=>a.arm)),r=o.some(a=>a.entering)?void 0:Ny(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)?(cL(e.ownerDocument),e.setAttribute(gu,"")):e.removeAttribute(gu)}function gD(e){let o=Bae(null),t=e?.motion?.entrance??null,r=e?.motion?.scroll??null,a=e?.motion?.hover==="lift",n=Id(o,t!==null||r!==null),s=t?t[n]:null,l=r&&r[n].effect!=="none"?r[n]:null,d=JSON.stringify([s,l]);return Rae(()=>{let c=o.current,f=dL(c?.parentElement??null);if(!t&&!r&&!a||!c||!f)return;let u=s?()=>{let I=lL(f,s),g=Dae(f);return()=>{g?.(),I()}}:null,p=OS.get(f)??[];OS.set(f,p);let h={element:c,arm:u,entering:s!==null&&s.kind!=="none",scroll:l?()=>iL(f,l):null,lift:a};return p.push(h),hD(f,p),()=>{let I=p.indexOf(h);I<0||(p.splice(I,1),h.undo?.(),h.undo=void 0,h.undoScroll?.(),h.undoScroll=void 0,hD(f,p),p.length||OS.delete(f))}},[d,a]),o}var bD="sf-part-styles",Nae=`${bD}-`;function Mae(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 yD(e){let o=yd(hm),t=yd(xD),r=g1(o,e);return r&&r.stamp!==t?r:null}function C5e(e){return hb(yd(hm),e)}function SD({stamp:e,children:o}){return bd(xD.Provider,{value:e,children:o})}function v5e({children:e}){let o=yd(hm);return bd(ID.Provider,{value:o,children:e})}function k5e(e){return hb(yd(ID),e)}function Sd({value:e,children:o}){let t=yD(e),r=gD(t);return t?AS(SD,{stamp:t.stamp,children:AS("span",{ref:r,[nb]:t.stamp,...t.textStyle?{[Ls]:t.textStyle}:{},children:o})}):AS(Hae,{children:o})}import{jsx as RS,Fragment as Wae}from"react/jsx-runtime";function wD({className:e=""}){return RS("sup",{className:`text-accent tracking-normal text-[length:min(1em,max(0.75em,11px))] ${e}`,children:"\xAE"})}function xm(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(RS(wD,{},`r${a}`))}),RS(Wae,{children:t})}var R5e=wD;import{jsx as On}from"react/jsx-runtime";import{Component as Gae,createContext as jae,lazy as U5e,Suspense as z5e,useContext as Kae,useSyncExternalStore as Vae}from"react";var Uae="hrefRewrite";function zae(){return Vd("efficient.link-href-rewrites",()=>({rewrites:new Map,count:0,missed:new Set}))}function $ae(){return typeof process<"u"&&!0}function B5e(e){let o=e?.[Uae];return typeof o=="string"?o.trim():""}function CD(e){if(!e)return null;let o=zae(),t=o.rewrites.get(e);return!t&&!$ae()&&o.missed.add(e),t??null}var qae={Link:Dk,Image:Bk},vD=jae(qae);function q5e({runtime:e,children:o}){return On(vD.Provider,{value:e,children:o})}function FS(){return Kae(vD)}function Y5e(){return FS().pagePath??null}var Yae=()=>()=>{},Xae=()=>vc()||null,Zae=()=>null;function Jae(){return Vae(Yae,Xae,Zae)}function kD({hrefRewrite:e,newTab:o,...t}){let{Link:r}=FS(),a=Jae(),n=o===!0?{...t,...sd}:o==="auto"?{...t,...qF(t.href,a)}:t,s=CD(e);return s?On(LS,{name:s.name,href:n.href,fallback:On(r,{...n}),children:On(Qae,{Link:r,rewrite:s.rewrite,...n})},s.key):On(r,{...n})}function Qae({Link:e,rewrite:o,...t}){let r=Se(o(t.href)),a=r&&OC(r)?r:t.href;return On(e,{...t,href:a})}var LS=class extends Gae{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 TD(e){let{Image:o}=FS();return On(o,{...e})}function Nr(e,o=!1,t){let r=sne(o),a=Xd(e);if(a.length===1){let[s]=a,l=_C(s),d=l?ane(l,s.children):s.children;return _n(Sd,{value:e,children:[t,Im(d,r)]})}let n=[];return a.forEach((s,l)=>{if(s.bullet){n.push(eo("span",{"data-sf-bullet":"",className:ene,children:Im(s.children,r)},l));return}if(s.number!=null){n.push(_n("span",{"data-sf-number":s.number,className:one,children:[_n("span",{className:tne,children:[s.number,"."]}),Im(s.children,r)]},l));return}l>0&&!rne(a[l-1])&&n.push(eo("br",{},`br${l}`)),n.push(eo(DS,{children:Im(s.children,r)},l))}),_n(Sd,{value:e,children:[t,n]})}var ene="relative block pl-6 before:absolute before:left-1.5 before:font-bold before:text-accent before:content-['\xB7']",one="relative block pl-[2em]",tne="absolute left-0 w-[1.6em] text-right tabular-nums";function rne(e){return e.bullet||e.number!=null}var PD="text-accent underline underline-offset-[0.18em]";function ane(e,o){let[t,...r]=o;return t?.kind==="text"?[{kind:"text",text:`${e}${t.text}`},...r]:[{kind:"text",text:e},...o]}function nne(e){return cs(e)||void 0}function Im(e,o){let t=[],r=!1;return e.forEach((a,n)=>{if(a.kind==="text"){t.push(eo("span",{children:xm(a.text)},n)),r=!0;return}r||t.push(eo("span",{},`e${n}`)),t.push(OD(a,n,o)),r=!1}),r||t.push(eo("span",{},"end")),t}function BS(e,o){return e.length===1&&e[0].kind==="text"?xm(e[0].text):e.map((t,r)=>t.kind==="text"?eo(DS,{children:xm(t.text)},r):OD(t,r,o))}function sne(e){return e?"font-normal italic text-accent":"not-italic text-accent"}function s3e(e){return ED(e)}function ED(e,o){let t=e.split(`
|
|
320
|
+
`);return _n(Sd,{value:e,children:[o,t.map((r,a)=>_n(DS,{children:[a>0?eo("br",{}):null,eo("span",{children:r})]},a))]})}function OD(e,o,t){if(e.kind==="link")return Yu(e.href)?eo(kD,{newTab:"auto",href:e.href,className:PD,children:BS(e.children,t)},o):eo("a",{href:e.href,className:PD,children:BS(e.children,t)},o);let r=BS(e.children,t),a=PC[e.kind];if(a)return eo("span",{[EC]:a,children:r},o);switch(e.kind){case"underline":return eo("u",{children:r},o);case"sup":return eo("sup",{children:r},o);case"sub":return eo("sub",{children:r},o);case"color":{let n=nne(e.color);return n?eo("span",{style:{color:n},children:r},o):eo("span",{children:r},o)}case"accent":case"highlight":return eo("em",{className:t,children:r},o);case"bold":return eo("strong",{className:"font-semibold",children:r},o);case"italic":return eo("em",{className:"italic",children:r},o);case"strike":return eo("s",{className:"line-through",children:r},o);default:return eo("span",{children:r},o)}}function l3e(e,o=!0,t=!1){let r=e.split(`
|
|
321
321
|
`);return eo(Sd,{value:e,children:r.map((a,n)=>_n("span",{children:[t?ED(a):Nr(a,o),n<r.length-1?eo("br",{}):null]},n))})}function _D(e){return e.split(/\n\s*\n/).map(o=>o.trim()).filter(Boolean)}import{tabletKey as AD}from"efficient-easel/screen/lib/content/view-tiers";var RD={direction:"column",justify:"between",gap:14,gapPhone:14,sectionPaddingLeft:14,sectionPaddingRight:14,[AD("sectionPaddingLeft")]:0,sectionPaddingLeftPhone:0,sectionHeightMode:"fixed",sectionHeightValue:280,sectionHeightUnit:"px",[AD("sectionHeightMode")]:"auto",sectionHeightModePhone:"auto"},NS={name:"Year and title",direction:"column",gap:14,gapPhone:14};import{tabletKey as lne}from"efficient-easel/draw";var co={text:"Button label",href:"#"},pr=e=>e.replace(/\*([^*]+)\*/g,"==$1=="),Ge={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 gm={eyebrow:Ge.eyebrow,title:`Section heading
|
|
322
|
-
*Highlight line*`,intro:Ge.body,imageCaption:Ge.imageCaption,imageMeta:Ge.imageMeta,cta:co.text},LD=()=>[{date:i("Year"),title:i("Milestone title."),body:i("Describe what happened, in a sentence or two.")},{date:i("Year"),title:i("Milestone title."),body:i("Describe what happened, in a sentence or two.")},{date:i("Year"),title:i("Milestone title."),body:i("Describe what happened, in a sentence or two.")}],
|
|
322
|
+
*Highlight line*`,intro:Ge.body,imageCaption:Ge.imageCaption,imageMeta:Ge.imageMeta,cta:co.text},LD=()=>[{date:i("Year"),title:i("Milestone title."),body:i("Describe what happened, in a sentence or two.")},{date:i("Year"),title:i("Milestone title."),body:i("Describe what happened, in a sentence or two.")},{date:i("Year"),title:i("Milestone title."),body:i("Describe what happened, in a sentence or two.")}],m3e={label:"Story Timeline",drawsPictures:!0,defaultProps:{layout:"split",eyebrow:"",title:"",intro:"",imageSrc:"",imageCaption:"",imageMeta:"",ctaText:"",ctaHref:"",entries:[],padTop:120,padBottom:120}};var bm={eyebrow:Ge.eyebrow,title:Ge.headingAccent,intro:Ge.body,cta:co.text},FD=()=>[{date:i("Year"),title:i("Milestone"),blurb:i("A short line about this milestone."),future:!1},{date:i("Year"),title:i("Milestone"),blurb:i("A short line about this milestone."),future:!1},{date:i("Year"),title:i("Milestone"),blurb:i("A short line about this milestone."),future:!1},{date:i("Year \u2192"),title:i("Upcoming"),blurb:i("A milestone still to come."),future:!0}],b3e={label:"Milestone Timeline",defaultProps:{eyebrow:"",title:"",intro:"",entries:[],ctaText:"",ctaHref:"",background:ai,padTop:120,padBottom:120}};var WD={buttonBorder:{width:0}},wm=(e,o,t={})=>({textStyle:"body-5",...U("label",e),letterSpacing:o,lineHeight:1.5,weight:400,...t}),ll=(e,o,t={})=>({...wm(e,o),...Ko,...t}),Cm=(e,o,t)=>({...e,case:"upper",weight:500,letterSpacing:o,lineHeight:t}),wd=(e,o,t={})=>({textStyle:"body-1",fontRole:"heading",...e,weight:400,case:"none",lineHeight:o,...t}),Tt=(e,o,t={})=>({kind:"text",key:e,props:G,style:o,...t}),BD=(e,o)=>o?.future===!0,ym=e=>_D(typeof e?.body=="string"?e.body:""),zS=e=>sr(typeof e.background=="string"?e.background:void 0,Pn.TimelineTrack),MS=e=>zS(e)===Mo?e:{...e,background:"transparent"},ine={name:"Milestone Timeline",skip:e=>qu(zS(e)),boxProps:(e,o)=>{let t=ua(MS(e),o);return{...Z,direction:"column",gap:60,[lne("gap")]:36,gapPhone:36,sectionBorder:{bottom:1},...et,...wt(e,"TimelineTrack"),...Vu(zS(e),e,o),...t>=0?{sectionAccent:t}:{}}},box:[...re.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,t)=>ma(e,MS(o),t)],...pa("TimelineTrack")],parts:[uS(sm(rm("eyebrow","title","intro"),["intro"])),{kind:"group",name:"Track",props:{...L,gap:48,gapPhone:48},parts:[{kind:"group",name:"Years",props:{...L,direction:"row",share:"equal",gap:0,line:!0,...et},parts:[{kind:"list",key:"entries",name:"Year",props:{...L,...RD},item:e=>({props:e.future===!0?{upcoming:!0}:{}}),parts:[{kind:"group",name:NS.name,props:{...L,...NS},parts:[Tt("date",wm(13,.22,{color:"accent"}),{when:(e,o)=>!BD(e,o)}),Tt("date",wm(13,.22,{color:"labels"}),{when:BD}),Tt("title",{textStyle:"heading-3",...Cm(U("headingSmall",20),-.02,1.1)},{role:"heading"})]},Tt("blurb",wd(U("body",13),1.55),{props:ne,mark:"accentItalic"})]}]},{kind:"group",name:"Button row",props:{...L,sectionBorder:{top:1,right:0,bottom:0,left:0},sectionPaddingTop:32},parts:[{kind:"button",key:"ctaText",href:"ctaHref",variant:"ghost",props:{...vo,align:"right",...WD},style:ll(13,.3)}]}]}],site:(e,o)=>ha({props:MS(e.props)},o),drop:{...Q,...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"}},GS=e=>typeof e.layout=="string"?e.layout:"split",Sm=e=>GS(e)==="split",$S=e=>!Sm(e),UD=e=>GS(e)==="spine",dne=e=>$S(e)&&!UD(e),DD=(e,o,t,r)=>({kind:"group",name:"Picture",keepEmpty:!0,box:[["imageSrc","bgImage"]],props:{...L,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",...Do(12,16),...t},when:a=>r(a)&&typeof a.imageSrc=="string"&&a.imageSrc.trim()!=="",parts:[{kind:"group",name:"Caption",props:{...L,direction:"row",justify:"between",align:"center",gap:12,gapPhone:12,share:"content",phoneRow:2},parts:[Tt("imageCaption",ll(11,.24,{color:"text"})),Tt("imageMeta",ll(11,.24,{color:"accent"}),{props:{...G,align:"right"}})]}]}),ND=(e={})=>({kind:"button",key:"ctaText",href:"ctaHref",variant:"ghost",props:{...vo,...e,...WD},style:ll(13,.3)}),HS=()=>[Tt("title",{textStyle:"heading-3",...Cm(U("headingSmall",24,20),-.02,1.5)},{role:"heading",mark:"accentItalic"}),{kind:"block",type:"Text",props:{...G,_partStyles:{text:wd(U("body",17,16),1.6)}},box:[["body","text",(e,o)=>Cl(ym(o)[0]??"")]],when:(e,o)=>ym(o).length>0},{kind:"block",type:"Text",props:{...ne,_partStyles:{text:wd(U("body",17,16),1.6,{paragraphSpacing:14})}},box:[["body","text",(e,o)=>Cl(ym(o).slice(1).join(`
|
|
323
323
|
|
|
324
|
-
`))]],when:(e,o)=>ym(o).length>1}],WS=()=>Tt("date",wm(13,.24,{color:"accent"})),US=(e,o,t={})=>Tt(e,o,{...t,props:{...G,...t.props??{},align:"center"}}),MD=ot("headingMedium",40,5,76),HD={sectionBorder:{bottom:1}},cne={name:"Story Timeline",skip:e=>GS(e)==="track"?'display "track": not converted (it draws the Milestone rail; a Track story is not stored anywhere)':void 0,boxProps:e=>Sm(e)?{...Z,direction:"row",share:[40],gap:80,gapPhone:48,align:"start",...HD,...wt(e,"Timeline")}:{...Z,direction:"column",gap:48,gapPhone:48,align:"center",...HD,...wt(e,"Timeline")},box:[...re,...pa("Timeline")],parts:[{kind:"group",name:"Heading",props:{...L,gap:24,gapPhone:24},when:Sm,parts:[Tt("eyebrow",ll(12,.3,{color:"accent"}),{role:"eyebrow"}),Tt("title",{textStyle:"heading-2",...Cm(MD,-.03,.94)},{role:"heading",mark:"accentItalic"}),Tt("intro",wd(U("body",14),1.6),{props:{...ne,maxWidth:360},mark:"accentItalic"}),DD(667,419,{},()=>!0),ND()]},{kind:"group",name:"Chapters",props:{...L,gap:48,gapPhone:48,line:!1},when:Sm,parts:[{kind:"list",key:"entries",name:"Chapter",props:{...L,direction:"row",gap:24,gapPhone:8,share:[12],align:"start"},parts:[WS(),{kind:"group",name:"Words",props:{...L,gap:14,gapPhone:14},parts:HS()}]}]},{kind:"group",name:"Heading",props:{...L,gap:24,gapPhone:24,align:"center",maxWidth:760,widthFit:"fill"},when:$S,parts:[US("eyebrow",ll(12,.3,{color:"accent"}),{role:"eyebrow"}),US("title",{textStyle:"heading-2",...Cm(MD,-.03,.94)},{role:"heading",mark:"accentItalic"}),US("intro",wd(U("body",14),1.6),{props:{...ne,maxWidth:520},mark:"accentItalic"}),ND({align:"center"})]},DD(506,192,{maxWidth:900,widthFit:"fill"},$S),{kind:"group",name:"Chapters",props:{...L,gap:48,gapPhone:48,line:!0,maxWidth:760,widthFit:"fill",sectionPaddingTop:16},when:UD,parts:[{kind:"list",key:"entries",name:"Chapter",props:{...L,gap:8,gapPhone:8},parts:[WS(),{kind:"group",name:"Words",props:{...L,gap:14,gapPhone:14},parts:HS()}]}]},{kind:"group",name:"Chapters",props:{...L,gap:56,gapPhone:56,maxWidth:1e3,widthFit:"fill",sectionPaddingTop:16,mirrorCards:"even"},when:dne,parts:[{kind:"list",key:"entries",name:"Chapter",props:{...L,direction:"row",gap:64,gapPhone:0,share:[50],align:"start"},parts:[{kind:"group",name:"Entry",props:{...L,gap:8,gapPhone:8},parts:[WS(),{kind:"group",name:"Words",props:{...L,gap:14,gapPhone:14},parts:HS()}]},{kind:"group",name:"Spacer",props:{...L},keepEmpty:!0,parts:[]}]}]}],drop:{...Q,...se,layout:"the Box's own arrangement replaces it: Split a row of two Boxes; Spine and Alternating a centred column (Track is skipped)"}},zD=()=>({eyebrow:gm.eyebrow,title:pr(gm.title),intro:gm.intro,ctaText:co.text,ctaHref:co.href,entries:LD()}),$D=()=>({eyebrow:bm.eyebrow,title:pr(bm.title),intro:bm.intro,ctaText:co.text,ctaHref:co.href,entries:FD()}),GD={TimelineTrack:ine,Timeline:cne};import{tabletKey as hne}from"efficient-easel/draw";import{rootIsDark as fne}from"efficient-shell/format";function
|
|
324
|
+
`))]],when:(e,o)=>ym(o).length>1}],WS=()=>Tt("date",wm(13,.24,{color:"accent"})),US=(e,o,t={})=>Tt(e,o,{...t,props:{...G,...t.props??{},align:"center"}}),MD=ot("headingMedium",40,5,76),HD={sectionBorder:{bottom:1}},cne={name:"Story Timeline",skip:e=>GS(e)==="track"?'display "track": not converted (it draws the Milestone rail; a Track story is not stored anywhere)':void 0,boxProps:e=>Sm(e)?{...Z,direction:"row",share:[40],gap:80,gapPhone:48,align:"start",...HD,...wt(e,"Timeline")}:{...Z,direction:"column",gap:48,gapPhone:48,align:"center",...HD,...wt(e,"Timeline")},box:[...re,...pa("Timeline")],parts:[{kind:"group",name:"Heading",props:{...L,gap:24,gapPhone:24},when:Sm,parts:[Tt("eyebrow",ll(12,.3,{color:"accent"}),{role:"eyebrow"}),Tt("title",{textStyle:"heading-2",...Cm(MD,-.03,.94)},{role:"heading",mark:"accentItalic"}),Tt("intro",wd(U("body",14),1.6),{props:{...ne,maxWidth:360},mark:"accentItalic"}),DD(667,419,{},()=>!0),ND()]},{kind:"group",name:"Chapters",props:{...L,gap:48,gapPhone:48,line:!1},when:Sm,parts:[{kind:"list",key:"entries",name:"Chapter",props:{...L,direction:"row",gap:24,gapPhone:8,share:[12],align:"start"},parts:[WS(),{kind:"group",name:"Words",props:{...L,gap:14,gapPhone:14},parts:HS()}]}]},{kind:"group",name:"Heading",props:{...L,gap:24,gapPhone:24,align:"center",maxWidth:760,widthFit:"fill"},when:$S,parts:[US("eyebrow",ll(12,.3,{color:"accent"}),{role:"eyebrow"}),US("title",{textStyle:"heading-2",...Cm(MD,-.03,.94)},{role:"heading",mark:"accentItalic"}),US("intro",wd(U("body",14),1.6),{props:{...ne,maxWidth:520},mark:"accentItalic"}),ND({align:"center"})]},DD(506,192,{maxWidth:900,widthFit:"fill"},$S),{kind:"group",name:"Chapters",props:{...L,gap:48,gapPhone:48,line:!0,maxWidth:760,widthFit:"fill",sectionPaddingTop:16},when:UD,parts:[{kind:"list",key:"entries",name:"Chapter",props:{...L,gap:8,gapPhone:8},parts:[WS(),{kind:"group",name:"Words",props:{...L,gap:14,gapPhone:14},parts:HS()}]}]},{kind:"group",name:"Chapters",props:{...L,gap:56,gapPhone:56,maxWidth:1e3,widthFit:"fill",sectionPaddingTop:16,mirrorCards:"even"},when:dne,parts:[{kind:"list",key:"entries",name:"Chapter",props:{...L,direction:"row",gap:64,gapPhone:0,share:[50],align:"start"},parts:[{kind:"group",name:"Entry",props:{...L,gap:8,gapPhone:8},parts:[WS(),{kind:"group",name:"Words",props:{...L,gap:14,gapPhone:14},parts:HS()}]},{kind:"group",name:"Spacer",props:{...L},keepEmpty:!0,parts:[]}]}]}],drop:{...Q,...se,layout:"the Box's own arrangement replaces it: Split a row of two Boxes; Spine and Alternating a centred column (Track is skipped)"}},zD=()=>({eyebrow:gm.eyebrow,title:pr(gm.title),intro:gm.intro,ctaText:co.text,ctaHref:co.href,entries:LD()}),$D=()=>({eyebrow:bm.eyebrow,title:pr(bm.title),intro:bm.intro,ctaText:co.text,ctaHref:co.href,entries:FD()}),GD={TimelineTrack:ine,Timeline:cne};import{tabletKey as hne}from"efficient-easel/draw";import{rootIsDark as fne}from"efficient-shell/format";function B3e(e="auto"){return e==="light"?!0:e==="dark"?!1:!fne({whenUnset:!0})}function jD(e,o){return Number.isFinite(e)&&Number.isFinite(o)&&!(e===0&&o===0)}function jS(e){let o=Number.parseFloat(e??"");return Number.isFinite(o)?o:0}var pne=["tall","square","wide"],une="tall";function KD(e){return pne.includes(String(e??""))?String(e):une}var M3e={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"},H3e=[{photo:"",group:"",groupName:"",name:"City name",state:"State",country:"Country",timezone:"GMT \xB7 UTC +0",address:`Address line one
|
|
325
325
|
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
|
|
326
|
-
Address line two`,phone:"+00 000 0000",hours:"Mon\u2013Fri 9:00\u201318:00",lat:0,lng:0,mapsUrl:""}],mne=/^https?:\/\//i;function H3e(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:jS(e.lat),lng:jS(e.lng),mapsUrl:mne.test(o)?o:""}}function KS(e){let o=String(e??"").split(" \xB7 ");return{state:(o[0]??"").trim(),country:(o[1]??"").trim()}}var W3e="other",U3e={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 VD(e){let o=String(e??"").replace(/[^+\d]/g,"");return o?`tel:${o}`:void 0}var Pt=e=>typeof e=="string"?e:e==null?"":String(e),qS=e=>Array.isArray(e.locations)?e.locations.map(o=>o??{}):[],il=e=>Pt(e.group),tN=e=>`loc-${e}`,rN=e=>Pt(e.state).trim()||KS(Pt(e.region)).state,aN=e=>Pt(e.country).trim()||KS(Pt(e.region)).country,qD=e=>[rN(e),aN(e)].filter(Boolean).join(" \xB7 "),xne=e=>qS(e).some(o=>Pt(o.photo).trim()!==""),Ine=e=>qS(e).some(o=>jD(Number(o.lat),Number(o.lng))),gne=(e,o)=>qS(e).filter(t=>il(t)===il(o)).length,bne=(e,o)=>gne(e,o)===1?"wide":KD(e.imageShape),VS={top:100,bottom:100,topPhone:60,bottomPhone:60},YD=48,qt=(e,o={})=>({...Lt(e),...o}),YS={top:1,right:1,bottom:1,left:1},XS={...L,direction:"row",share:"equal",gap:0},yne=e=>o=>o>Ji(o)?{...L,gap:0}:{...XS,...o>1?{phoneRow:e}:{}},Sne={kind:"group",name:"Gallery",props:{...L,gap:20,_hidden:!0},when:xne,parts:[{kind:"group",name:"Gallery head",props:{...L,direction:"row",justify:"between",align:"end",gap:24,share:"content",sectionBorder:{bottom:1},sectionPaddingBottom:16},parts:[me("galleryKicker",qt(12,{color:"accent",letterSpacing:.3})),{kind:"text",key:"galleryHint",props:{...ne,align:"right",alignPhone:"left"},style:qt(11,{letterSpacing:.22,alignPhone:"left"})}]},{kind:"group",name:"Groups",props:{...L,gap:24},parts:[{kind:"list",key:"locations",name:"City picture",props:{...L,darken:85,darkenStyle:"bottom",placement:"bottom-left",sectionBorder:YS,...Do(12,12)},item:(e,o,t)=>({props:{...Pt(e.photo).trim()?{bgImage:Pt(e.photo),hover:"mono"}:{},link:`#${tN(o)}`,boxShape:bne(t,e)}}),parts:[{kind:"text",key:"name",props:G,style:qt(11,{letterSpacing:.22,color:"text"})}],groups:{of:il,name:"Group",props:{...L,gap:10},head:e=>({label:il(e[0]??{})}),parts:[me("label",qt(11,{color:"accent",letterSpacing:.3}))],itemsName:"Cities",itemsProps:yne(2),perRow:Ji,rowName:"Row",rowProps:{...XS,phoneRow:2}}}]}]},wne={kind:"group",name:"Words",props:{...L,gap:12,gapPhone:12,...Do(28,28),sectionHeightMode:"fixed",sectionHeightValue:280,sectionHeightUnit:"px",sectionHeightModePhone:"auto"},parts:[{kind:"group",name:"Name row",props:{...L,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:{...L,gap:6,gapPhone:6},parts:[{kind:"text",key:"name",role:"heading",props:G,style:{textStyle:"heading-3",...U("headingSmall",30),case:"upper",weight:500,lineHeight:1,letterSpacing:-.02}},{kind:"block",type:"Text",props:{...G,_partStyles:{text:qt(12,{color:"accent",letterSpacing:.24,lineHeight:1.5})}},box:["region","state","country"].map(e=>[e,"text",(o,t)=>qD(t)]),when:(e,o)=>qD(o??{})!==""}]},{kind:"group",name:"Time zone",props:{...L,sectionBorder:YS,...Do(6,10)},parts:[{kind:"text",key:"timezone",props:{...ne,textFit:"line"},style:qt(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:{...vo,...vn,variant:"ghost",arrow:!1,_partStyles:{label:qt(13,{letterSpacing:.18,color:"text",lineHeight:24/13})}},box:[["phone","label"],["phone","href",e=>VD(Pt(e))??"#"]],when:(e,o)=>Pt(o?.phone).trim()!==""},{kind:"text",key:"hours",props:ne,style:qt(12,{letterSpacing:.18,lineHeight:1.7})}]},Cne={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)=>rN(t)]),...["region","country"].map(e=>[e,"country",(o,t)=>aN(t)])]},vne={kind:"group",name:"Map",props:{...L,sectionBorder:{top:1,right:0,bottom:0,left:0}},parts:[Cne]},kne={kind:"list",key:"locations",name:"City",props:(e,o)=>({...L,gap:0,justify:"between",sectionBorder:YS,jumpHighlight:!0,sectionAccent:ua(e,o)>=0?ol(e.sectionAccent,o):-1}),item:(e,o)=>({props:{anchor:tN(o)}}),parts:[wne,vne],groups:{of:il,name:"Group",props:{...L,gap:20},head:e=>{let o=e[0]??{};return{key:il(o),groupName:Pt(o.groupName),count:`${e.length} location${e.length===1?"":"s"}`}},parts:[{kind:"group",name:"Group head",props:{...L,direction:"row",justify:"between",align:"end",gap:16,share:"content",sectionBorder:{bottom:1},sectionPaddingBottom:16},when:(e,o)=>Pt(o?.key).trim()!=="",parts:[me("key",qt(13,{color:"accent",letterSpacing:.3})),{kind:"text",key:"groupName",role:"heading",props:G,style:{textStyle:"heading-3",...U("headingSmall",24),case:"upper",weight:500,letterSpacing:-.01}},{kind:"text",key:"count",props:ne,style:qt(12,{letterSpacing:.22})}]}],itemsName:"Cities",itemsProps:e=>({...XS,columns:Ji(e),[hne("columns")]:1})}},XD=qt(10,{letterSpacing:.25}),Tne={kind:"block",type:dr,props:{...L,name:"Credit",direction:"row",justify:"end",align:"center",gap:6,share:"content",wrap:!0},when:Ine,slot:cr,keepEmpty:!0,parts:[{kind:"block",type:"Text",props:{...ne,text:"Location coordinates \xA9",_partStyles:{text:XD}}},{kind:"block",type:"ButtonBlock",props:{...vo,...vn,variant:"ghost",arrow:!1,label:"OpenStreetMap contributors",href:"https://www.openstreetmap.org/copyright",_partStyles:{label:{...XD,color:"labels"}}}}]},ZD=(e,o)=>Object.fromEntries(o.filter(t=>e[t]!==void 0).map(t=>[t,e[t]])),JD=["sectionPaddingTop","sectionPaddingTopTablet","sectionPaddingTopPhone"],QD=["sectionPaddingBottom","sectionPaddingBottomTablet","sectionPaddingBottomPhone"],eN=e=>e.map(o=>[o,o,(t,r)=>le(r,VS)[o]]),oN=["sectionAccent","sectionAccent",ma],Pne=[...Jr,...ps,...Object.values(lo)],Ene={name:"City pictures",skip:e=>Xt(e)?`fed by the data source "${Xt(e)}": its cities are read as the page is served, not stored on the node`:void 0,boxProps:(e,o)=>({...Z,direction:"column",gap:40,anchor:"studios",...et,...ZD(le(e,VS),JD),sectionPaddingBottom:YD,sectionPaddingBottomPhone:YD,...kn(e,o)}),box:[...re.filter(e=>e!=="sectionAccent"&&e!=="anchor"),oN,["anchor","anchor",e=>Hl(e).trim()?e:"studios"],...eN(JD)],parts:[rm("sectionNumber","heading","tagline"),Sne],also:[{name:"City maps",boxProps:(e,o)=>({...Z,direction:"column",gap:40,sectionBorder:{bottom:1},...et,sectionPaddingTop:0,sectionPaddingTopPhone:0,...ZD(le(e,VS),QD),...kn(e,o)}),box:[...Pne,oN,...eN(QD)],parts:[kne,Tne]}],reads:{mapTheme:"City maps Box: each Map block's Map theme",imageShape:"City pictures Box: each picture Box's Box shape"},site:ha,drop:{...Q,...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)"}},nN={ContactLocations:Ene};import{SITE_SIDE as lN,sideLengthAt as One}from"efficient-easel/screen/lib/content/length-units";var vm="boxes",ZS=3,JS=()=>({type:te,props:{direction:"column"},slots:{[He]:[{type:"ImageBlock"},{type:te,props:{direction:"column"},slots:{[He]:[{type:"Text",props:jr()},{type:"Text"}]}}]}}),sN=()=>Array.from({length:ZS},JS);import{viewKeyAt as QS}from"efficient-easel/draw";var _ne=["FAQ","Footprint","LongRead","ProcessSteps","RelatedProducts"];var xa=(e,o)=>()=>({top:e,topPhone:o}),iN=e=>o=>{let t=Gu(e),r={...o,[nr.top]:Jl(o,t).top},a=d=>{let c=One(r,nr,Ga,d,"top");return c?.unit==="px"?c.value:void 0},n=d=>q(o[QS(nr.top,d)])===void 0?void 0:a(d),s=n("tablet"),l=n("mobile");return{top:a("desktop")??t.top??0,...s!==void 0?{topTablet:s}:{},...l!==void 0?{topPhone:l}:{}}},Ane={Collections:xa(120,70),Events:xa(120,70),FAQ:xa(120,70),GalleryB:xa(120,70),FitmentTable:xa(120,80),SpecTable:xa(120,80),LongRead:xa(120,80),RelatedProducts:xa(0,0),Footprint:iN("Footprint"),ProcessSteps:iN("ProcessSteps"),ProductGrid:e=>({top:q(e.padTop)??120,topPhone:0})};function Rne(e,o={}){let t=K(kr,e),r=K(Ane,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=Ct(e),s=lm(e),l=t.headRows.filter(c=>![t.num,t.title,t.description,"linkText","linkHref"].includes(c)),d={...Object.fromEntries(l.filter(c=>!(c in s)).map(c=>[c,"a head setting no Header Box part reads (lib/document/blocks/general/section-head-looks `headReads`)"])),...o.drop};return{name:K(qd,e)??e,boxProps:(c,f)=>{let u=r(c),p=o.roomBelow?{sectionPaddingBottom:o.roomBelow.bottom,sectionPaddingBottomPhone:o.roomBelow.bottomPhone}:{},h=typeof o.boxProps=="function"?o.boxProps(c,f):o.boxProps??{},I=Tn(e)==="editorial"?et:{};return{...Z,direction:"column",gap:ld[Tn(e)],sectionPaddingTop:u.top,...u.topTablet!==void 0?{sectionPaddingTopTablet:u.topTablet}:{},...u.topPhone!==void 0?{sectionPaddingTopPhone:u.topPhone}:{},...I,...p,...h}},box:[...re,...a?[[a,"sectionPaddingTop",(c,f)=>r(f).top]]:[]],parts:[n,...(()=>{let c=a&&MF.has(e)?{[QS(a,"tablet")]:0,[QS(a,"mobile")]:0}:{},f={...a?{[a]:0}:{},...c,...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(d).length?{drop:d}:{},...o.pressHeading?{pressKeepsEmpty:[t.title]}:{},...o.skip?{skip:o.skip}:{}}}var Lne={...L,direction:"accordion",rowStyle:"numbered"},Fne={sectionPaddingLeft:lN,sectionPaddingRight:lN},Bne={Footprint:{slots:{[No]:[Pv()]},pressHeading:!0},ProcessSteps:{slots:(e,o)=>o.press?{[vm]:sN().map(t=>({...t,props:{...t.props,...Fne}}))}:{},boxProps:{gapPhone:ld.editorial}},FAQ:{slots:{[No]:[Tv()]},pressHeading:!0,coreBox:{name:"Questions",props:Lne},coreProps:{sectionAccent:Qt},roomBelow:{bottom:120,bottomPhone:70},boxProps:(e,o)=>o.press?{}:{[RF]:Sn},skip:e=>{let o=e._partStyles??{},t=kv().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}}},dN=Object.fromEntries(_ne.map(e=>[e,Rne(e,K(Bne,e))]));import{BLOCK_WIDTH_LIMIT as Nne}from"efficient-easel/draw";var km={eyebrow:Ge.eyebrow,title:Ge.headingAccent,deck:"Add a sentence or two introducing this document."},P6e={label:"Document masthead",defaultProps:{eyebrow:"",title:"",deck:"",meta:[]}};var ew="titleLevel",Dne=e=>e===2?"h2":"h1",ow=e=>Dne(e?.[ew])==="h2";var IN={minWidth:Nne.min},cN=(e,o,t)=>({...me(e,{...o,...od}),props:{...G,align:"right",...wn,...t}}),gN={top:1,bottom:0},rw=(e,o,t,r)=>({kind:"group",name:e,props:{...L,sectionPaddingBottom:o,sectionPaddingBottomPhone:t},parts:[r]}),fN={widthFit:"fill",...IN},pN={top:100,bottom:60,topPhone:60,bottomPhone:40},Mne={...U("label",13),letterSpacing:.22,lineHeight:1.8},uN={textStyle:"heading-1",...ot("headingLarge",56,8,128),case:"upper",weight:500,lineHeight:.88,letterSpacing:-.04},Hne=()=>({name:"Page Header",boxProps:e=>({...Z,direction:"column",gap:0,sectionBorder:{bottom:1},...le(e,pN)}),box:[...re,...ue(pN)],parts:[{kind:"group",name:"Header",props:{...L,direction:"row",align:"end",justify:"between",gap:40,gapPhone:16,share:"content",sectionPaddingBottom:32},parts:[rw("Eyebrow",12,0,{...me("eyebrow",U("label",13)),props:{...G,...wn}}),{kind:"text",key:"title",role:"heading",props:{...G,tag:"h1",...fN},style:uN,mark:"accentItalic",when:e=>!ow(e)},{kind:"text",key:"title",role:"heading",props:{...G,tag:"h2",...fN},style:uN,mark:"accentItalic",when:ow},{kind:"group",name:"Details",props:{...L,align:"stretch",gap:0,gapPhone:0,sectionPaddingBottom:12,sectionPaddingBottomPhone:0},parts:[{kind:"list",key:"meta",name:"Detail",flat:!0,parts:[td("label","value",Mne,wn)]}]}]},{kind:"group",name:"Deck",props:{...L,maxWidth:760,sectionBorder:gN,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:{...Q,...se,[ew]:"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"}}),bN=()=>({eyebrow:km.eyebrow,title:pr(km.title),deck:km.deck,meta:[{label:Ge.label,value:Ge.value},{label:Ge.label,value:Ge.value}]}),mN={top:80,bottom:40,topPhone:60,bottomPhone:32},Wne={...U("label",13),letterSpacing:.18,lineHeight:1.8},hN={...U("label",13),letterSpacing:.22,lineHeight:1.9},Une=()=>({name:"Issue Header",boxProps:e=>({...Z,direction:"column",gap:0,sectionBorder:{bottom:1},...le(e,mN)}),box:[...re,...ue(mN)],parts:[{kind:"group",name:"Top",props:{...L,direction:"row",align:"end",justify:"between",gap:60,gapPhone:16,share:"content",sectionPaddingBottom:32},parts:[rw("Eyebrow",14,14,me("eyebrow",U("label",14))),{kind:"group",name:"Issue",props:{...L,align:"end",gap:0,gapPhone:0,sectionPaddingBottom:14},parts:[{kind:"list",key:"issueMeta",name:"Issue line",flat:!0,parts:[td("lead","rest",Wne)]}]}]},{kind:"group",name:"Bottom",props:{...L,direction:"row",align:"start",justify:"between",gap:60,gapPhone:16,share:"content",sectionBorder:gN,sectionPaddingTop:32},parts:[{kind:"text",key:"lead",props:{...G,maxWidth:720,...IN},style:{textStyle:"body-1",fontRole:"heading3",...U("headingSmall",20),lineHeight:1.5,letterSpacing:-.005,paragraphSpacing:16}},{kind:"group",name:"In this issue",props:{...L,align:"stretch",gap:0},parts:[rw("Heading",6,6,{kind:"text",key:"issueHeading",props:{...G,align:"right",...wn},style:{textStyle:"body-1",fontRole:"heading",...U("body",18),weight:400,letterSpacing:-.01,lineHeight:1.9,...od}}),{kind:"group",name:"Lines",props:{...L,align:"stretch",gap:0},parts:[{kind:"list",key:"issueList",name:"Line",flat:!0,parts:[cN("text",{color:"labels",...hN})]}]},cN("issueTotal",hN)]}]}],drop:{...Q,...se}}),xN={top:24,bottom:24,topPhone:16,bottomPhone:16},tw={color:"labels",...U("label",13),letterSpacing:.2},yN=e=>(Array.isArray(e.items)?e.items:[]).filter(o=>o&&typeof o.label=="string"&&o.label.trim()!==""),aw=(e,o)=>o!==void 0&&yN(e).at(-1)===o,SN=(e,o)=>o!==void 0&&yN(e).includes(o),zne=(e,o)=>SN(e,o)&&!aw(e,o)&&Qe(o?.href),$ne=()=>({name:"Breadcrumb",skip:e=>Qe(e.meta)?'a trailing note after "\xB7" needs a second mark; none live':void 0,boxProps:e=>({...Z,...En,wrap:"wrap",gap:16,gapPhone:16,separator:"slash",sectionBorder:{bottom:1},...le(e,xN)}),box:[...re,...ue(xN)],parts:[{kind:"list",key:"items",name:"Crumb",flat:!0,parts:[{kind:"button",key:"label",href:"href",variant:"ghost",when:zne,props:{...vo,...vn,icon:"none"},style:tw},{...me("label",tw),when:(e,o)=>SN(e,o)&&!aw(e,o)&&!Qe(o?.href)},{...me("label",{...tw,color:"text"}),when:aw}]}],drop:{...Q,...se,meta:"a node that stores a note is skipped (`skip`); an empty one draws nothing"}}),wN={DocMasthead:Hne(),Masthead:Une(),Breadcrumb:$ne()};import{BLOCK_WIDTH_LIMIT as jne,hiddenKeyOf as Kne}from"efficient-easel/draw";import{readHidable as nw}from"efficient-easel/draw";function Gne(e,o,t){return e||(t?.isEditing?i(o):void 0)}function z6e(e,o,t){let r=Array.isArray(e)?e:[];return r.length?r:t?.isEditing?o:[]}function CN(e,o,t){let r=nw(e);if(!r.hidden)return Gne(r.text,o,t)}function vN(e){if(e==null)return;let o=nw(e);return o.hidden?"":o.text}function $6e(e,o,t){return nw(e).hidden?"":CN(e,o,t)}function G6e(e,o,t){return{text:CN(e,co.text,t),href:o||co.href}}var EN="MenuBlock",sw=e=>(Array.isArray(e)?e:[]).filter(o=>o&&Qe(o.label)),kN=e=>{let[o,t]=[e.metaLabel,e.metaValue].map(a=>(vN(a)??"").trim());if(!t)return o;let r=t.includes("==")?t:`==${t}==`;return o?`${o} ${r}`:r},TN={top:0,bottom:0,topPhone:0,bottomPhone:0},Vne={...Ko,color:"labels",...U("label",12),letterSpacing:.24},qne={kind:"group",name:"Note",props:{...L,justify:"center",sectionBorder:{top:0,right:0,bottom:0,left:1},sectionPaddingLeft:28,[Kne("mobile")]:!0},parts:[{kind:"block",type:"Text",when:e=>kN(e)!=="",props:e=>({...G,textFit:"line",text:kN(e),[bi]:{text:Vne}})}]},ON=()=>({tabs:[],metaLabel:Ge.label,metaValue:Ge.value}),PN="the note Text inside the Box (the label, then the value in the accent); no words, no Text",_N={direction:"row",menuStyle:"tabs",currentPage:!0,minWidth:jne.min},AN=e=>({...e,boxProps:o=>({...Z,direction:"row",align:"stretch",justify:"between",gap:0,stickTop:!0,[ja]:0,[ei]:!0,sectionBorder:{bottom:1},...le(o,TN)}),box:[...re,...ue(TN)]}),Yne=()=>AN({name:"Tab Bar",skip:e=>sw(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:PN,metaValue:PN},parts:[{kind:"block",type:EN,props:_N},qne],drop:{...Q,...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"}}),Xne=()=>AN({name:"Category Bar",skip:e=>{if(sw(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(sw(e.links).length)return"its right-hand links are typed words: the bar holds the Menu only"},parts:[{kind:"block",type:EN,props:{..._N,[So]:IC}}],drop:{...Q,...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"}}),RN={DocTabs:Yne(),CategoryBar:Xne()};import{jsx as An,jsxs as iw}from"react/jsx-runtime";import{slugify as Zne}from"efficient-shell/format";import{jsx as lw,jsxs as LN}from"react/jsx-runtime";var tWe="sticky top-[120px]";var FN=(e,o)=>e?{[sc]:o}:{},BN=(e,o)=>lc(e?.[_h(o)]?.role,wu[o],Wn),DN=120;function NN({title:e,entries:o,stickyTop:t,sticky:r=!0,editing:a=!1,partStyles:n,numberForm:s=Dg,takesViewHide:l=!1}){let d=s==="plain",c=qr(),f=l?c:os;return f.scope(LN("aside",{className:Yr(`${r?"sticky ":""}flex flex-col self-start max-[900px]:static`,f.className),style:r?{top:t}:void 0,...f.attrs,children:[e&&lw("h4",{className:"mb-[18px] font-mono text-[length:var(--size-label,12px)] uppercase tracking-[0.3em] text-accent",children:Nr(e)}),o.map((u,p)=>{let h=lw("span",{...FN(a,"number"),style:BN(n,"number"),className:"text-accent",children:pp(s,p)});return LN("a",{href:`#${u.anchor}`,className:`flex items-center ${d?"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:[d&&h,lw("span",{...FN(a,"entry"),style:BN(n,"entry"),children:Nr(u.label||"Section")}),!d&&h]},`${p}-${u.anchor}`)})]}))}function Jne(e,o){return Zne(e)||`section-${o+1}`}var dw=e=>typeof e=="string"&&e.trim()!=="";function cw(e){return(e??[]).filter(o=>dw(o.heading)||dw(o.label)||dw(o.body))}function fw(e){let o=new Set;return e.map((t,r)=>{let a=Jne(t.label||t.heading||"",r),n=a,s=2;for(;o.has(n);)n=`${a}-${s++}`;return o.add(n),n})}function pw(e){let o=[];for(let t of e.replace(/\r\n?/g,`
|
|
326
|
+
Address line two`,phone:"+00 000 0000",hours:"Mon\u2013Fri 9:00\u201318:00",lat:0,lng:0,mapsUrl:""}],mne=/^https?:\/\//i;function W3e(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:jS(e.lat),lng:jS(e.lng),mapsUrl:mne.test(o)?o:""}}function KS(e){let o=String(e??"").split(" \xB7 ");return{state:(o[0]??"").trim(),country:(o[1]??"").trim()}}var U3e="other",z3e={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 VD(e){let o=String(e??"").replace(/[^+\d]/g,"");return o?`tel:${o}`:void 0}var Pt=e=>typeof e=="string"?e:e==null?"":String(e),qS=e=>Array.isArray(e.locations)?e.locations.map(o=>o??{}):[],il=e=>Pt(e.group),tN=e=>`loc-${e}`,rN=e=>Pt(e.state).trim()||KS(Pt(e.region)).state,aN=e=>Pt(e.country).trim()||KS(Pt(e.region)).country,qD=e=>[rN(e),aN(e)].filter(Boolean).join(" \xB7 "),xne=e=>qS(e).some(o=>Pt(o.photo).trim()!==""),Ine=e=>qS(e).some(o=>jD(Number(o.lat),Number(o.lng))),gne=(e,o)=>qS(e).filter(t=>il(t)===il(o)).length,bne=(e,o)=>gne(e,o)===1?"wide":KD(e.imageShape),VS={top:100,bottom:100,topPhone:60,bottomPhone:60},YD=48,qt=(e,o={})=>({...Lt(e),...o}),YS={top:1,right:1,bottom:1,left:1},XS={...L,direction:"row",share:"equal",gap:0},yne=e=>o=>o>Ji(o)?{...L,gap:0}:{...XS,...o>1?{phoneRow:e}:{}},Sne={kind:"group",name:"Gallery",props:{...L,gap:20,_hidden:!0},when:xne,parts:[{kind:"group",name:"Gallery head",props:{...L,direction:"row",justify:"between",align:"end",gap:24,share:"content",sectionBorder:{bottom:1},sectionPaddingBottom:16},parts:[me("galleryKicker",qt(12,{color:"accent",letterSpacing:.3})),{kind:"text",key:"galleryHint",props:{...ne,align:"right",alignPhone:"left"},style:qt(11,{letterSpacing:.22,alignPhone:"left"})}]},{kind:"group",name:"Groups",props:{...L,gap:24},parts:[{kind:"list",key:"locations",name:"City picture",props:{...L,darken:85,darkenStyle:"bottom",placement:"bottom-left",sectionBorder:YS,...Do(12,12)},item:(e,o,t)=>({props:{...Pt(e.photo).trim()?{bgImage:Pt(e.photo),hover:"mono"}:{},link:`#${tN(o)}`,boxShape:bne(t,e)}}),parts:[{kind:"text",key:"name",props:G,style:qt(11,{letterSpacing:.22,color:"text"})}],groups:{of:il,name:"Group",props:{...L,gap:10},head:e=>({label:il(e[0]??{})}),parts:[me("label",qt(11,{color:"accent",letterSpacing:.3}))],itemsName:"Cities",itemsProps:yne(2),perRow:Ji,rowName:"Row",rowProps:{...XS,phoneRow:2}}}]}]},wne={kind:"group",name:"Words",props:{...L,gap:12,gapPhone:12,...Do(28,28),sectionHeightMode:"fixed",sectionHeightValue:280,sectionHeightUnit:"px",sectionHeightModePhone:"auto"},parts:[{kind:"group",name:"Name row",props:{...L,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:{...L,gap:6,gapPhone:6},parts:[{kind:"text",key:"name",role:"heading",props:G,style:{textStyle:"heading-3",...U("headingSmall",30),case:"upper",weight:500,lineHeight:1,letterSpacing:-.02}},{kind:"block",type:"Text",props:{...G,_partStyles:{text:qt(12,{color:"accent",letterSpacing:.24,lineHeight:1.5})}},box:["region","state","country"].map(e=>[e,"text",(o,t)=>qD(t)]),when:(e,o)=>qD(o??{})!==""}]},{kind:"group",name:"Time zone",props:{...L,sectionBorder:YS,...Do(6,10)},parts:[{kind:"text",key:"timezone",props:{...ne,textFit:"line"},style:qt(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:{...vo,...vn,variant:"ghost",arrow:!1,_partStyles:{label:qt(13,{letterSpacing:.18,color:"text",lineHeight:24/13})}},box:[["phone","label"],["phone","href",e=>VD(Pt(e))??"#"]],when:(e,o)=>Pt(o?.phone).trim()!==""},{kind:"text",key:"hours",props:ne,style:qt(12,{letterSpacing:.18,lineHeight:1.7})}]},Cne={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)=>rN(t)]),...["region","country"].map(e=>[e,"country",(o,t)=>aN(t)])]},vne={kind:"group",name:"Map",props:{...L,sectionBorder:{top:1,right:0,bottom:0,left:0}},parts:[Cne]},kne={kind:"list",key:"locations",name:"City",props:(e,o)=>({...L,gap:0,justify:"between",sectionBorder:YS,jumpHighlight:!0,sectionAccent:ua(e,o)>=0?ol(e.sectionAccent,o):-1}),item:(e,o)=>({props:{anchor:tN(o)}}),parts:[wne,vne],groups:{of:il,name:"Group",props:{...L,gap:20},head:e=>{let o=e[0]??{};return{key:il(o),groupName:Pt(o.groupName),count:`${e.length} location${e.length===1?"":"s"}`}},parts:[{kind:"group",name:"Group head",props:{...L,direction:"row",justify:"between",align:"end",gap:16,share:"content",sectionBorder:{bottom:1},sectionPaddingBottom:16},when:(e,o)=>Pt(o?.key).trim()!=="",parts:[me("key",qt(13,{color:"accent",letterSpacing:.3})),{kind:"text",key:"groupName",role:"heading",props:G,style:{textStyle:"heading-3",...U("headingSmall",24),case:"upper",weight:500,letterSpacing:-.01}},{kind:"text",key:"count",props:ne,style:qt(12,{letterSpacing:.22})}]}],itemsName:"Cities",itemsProps:e=>({...XS,columns:Ji(e),[hne("columns")]:1})}},XD=qt(10,{letterSpacing:.25}),Tne={kind:"block",type:dr,props:{...L,name:"Credit",direction:"row",justify:"end",align:"center",gap:6,share:"content",wrap:!0},when:Ine,slot:cr,keepEmpty:!0,parts:[{kind:"block",type:"Text",props:{...ne,text:"Location coordinates \xA9",_partStyles:{text:XD}}},{kind:"block",type:"ButtonBlock",props:{...vo,...vn,variant:"ghost",arrow:!1,label:"OpenStreetMap contributors",href:"https://www.openstreetmap.org/copyright",_partStyles:{label:{...XD,color:"labels"}}}}]},ZD=(e,o)=>Object.fromEntries(o.filter(t=>e[t]!==void 0).map(t=>[t,e[t]])),JD=["sectionPaddingTop","sectionPaddingTopTablet","sectionPaddingTopPhone"],QD=["sectionPaddingBottom","sectionPaddingBottomTablet","sectionPaddingBottomPhone"],eN=e=>e.map(o=>[o,o,(t,r)=>le(r,VS)[o]]),oN=["sectionAccent","sectionAccent",ma],Pne=[...Jr,...ps,...Object.values(lo)],Ene={name:"City pictures",skip:e=>Xt(e)?`fed by the data source "${Xt(e)}": its cities are read as the page is served, not stored on the node`:void 0,boxProps:(e,o)=>({...Z,direction:"column",gap:40,anchor:"studios",...et,...ZD(le(e,VS),JD),sectionPaddingBottom:YD,sectionPaddingBottomPhone:YD,...kn(e,o)}),box:[...re.filter(e=>e!=="sectionAccent"&&e!=="anchor"),oN,["anchor","anchor",e=>Hl(e).trim()?e:"studios"],...eN(JD)],parts:[rm("sectionNumber","heading","tagline"),Sne],also:[{name:"City maps",boxProps:(e,o)=>({...Z,direction:"column",gap:40,sectionBorder:{bottom:1},...et,sectionPaddingTop:0,sectionPaddingTopPhone:0,...ZD(le(e,VS),QD),...kn(e,o)}),box:[...Pne,oN,...eN(QD)],parts:[kne,Tne]}],reads:{mapTheme:"City maps Box: each Map block's Map theme",imageShape:"City pictures Box: each picture Box's Box shape"},site:ha,drop:{...Q,...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)"}},nN={ContactLocations:Ene};import{SITE_SIDE as lN,sideLengthAt as One}from"efficient-easel/screen/lib/content/length-units";var vm="boxes",ZS=3,JS=()=>({type:te,props:{direction:"column"},slots:{[He]:[{type:"ImageBlock"},{type:te,props:{direction:"column"},slots:{[He]:[{type:"Text",props:jr()},{type:"Text"}]}}]}}),sN=()=>Array.from({length:ZS},JS);import{viewKeyAt as QS}from"efficient-easel/draw";var _ne=["FAQ","Footprint","LongRead","ProcessSteps","RelatedProducts"];var xa=(e,o)=>()=>({top:e,topPhone:o}),iN=e=>o=>{let t=Gu(e),r={...o,[nr.top]:Jl(o,t).top},a=d=>{let c=One(r,nr,Ga,d,"top");return c?.unit==="px"?c.value:void 0},n=d=>q(o[QS(nr.top,d)])===void 0?void 0:a(d),s=n("tablet"),l=n("mobile");return{top:a("desktop")??t.top??0,...s!==void 0?{topTablet:s}:{},...l!==void 0?{topPhone:l}:{}}},Ane={Collections:xa(120,70),Events:xa(120,70),FAQ:xa(120,70),GalleryB:xa(120,70),FitmentTable:xa(120,80),SpecTable:xa(120,80),LongRead:xa(120,80),RelatedProducts:xa(0,0),Footprint:iN("Footprint"),ProcessSteps:iN("ProcessSteps"),ProductGrid:e=>({top:q(e.padTop)??120,topPhone:0})};function Rne(e,o={}){let t=K(kr,e),r=K(Ane,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=Ct(e),s=lm(e),l=t.headRows.filter(c=>![t.num,t.title,t.description,"linkText","linkHref"].includes(c)),d={...Object.fromEntries(l.filter(c=>!(c in s)).map(c=>[c,"a head setting no Header Box part reads (lib/document/blocks/general/section-head-looks `headReads`)"])),...o.drop};return{name:K(qd,e)??e,boxProps:(c,f)=>{let u=r(c),p=o.roomBelow?{sectionPaddingBottom:o.roomBelow.bottom,sectionPaddingBottomPhone:o.roomBelow.bottomPhone}:{},h=typeof o.boxProps=="function"?o.boxProps(c,f):o.boxProps??{},I=Tn(e)==="editorial"?et:{};return{...Z,direction:"column",gap:ld[Tn(e)],sectionPaddingTop:u.top,...u.topTablet!==void 0?{sectionPaddingTopTablet:u.topTablet}:{},...u.topPhone!==void 0?{sectionPaddingTopPhone:u.topPhone}:{},...I,...p,...h}},box:[...re,...a?[[a,"sectionPaddingTop",(c,f)=>r(f).top]]:[]],parts:[n,...(()=>{let c=a&&MF.has(e)?{[QS(a,"tablet")]:0,[QS(a,"mobile")]:0}:{},f={...a?{[a]:0}:{},...c,...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(d).length?{drop:d}:{},...o.pressHeading?{pressKeepsEmpty:[t.title]}:{},...o.skip?{skip:o.skip}:{}}}var Lne={...L,direction:"accordion",rowStyle:"numbered"},Fne={sectionPaddingLeft:lN,sectionPaddingRight:lN},Bne={Footprint:{slots:{[No]:[Pv()]},pressHeading:!0},ProcessSteps:{slots:(e,o)=>o.press?{[vm]:sN().map(t=>({...t,props:{...t.props,...Fne}}))}:{},boxProps:{gapPhone:ld.editorial}},FAQ:{slots:{[No]:[Tv()]},pressHeading:!0,coreBox:{name:"Questions",props:Lne},coreProps:{sectionAccent:Qt},roomBelow:{bottom:120,bottomPhone:70},boxProps:(e,o)=>o.press?{}:{[RF]:Sn},skip:e=>{let o=e._partStyles??{},t=kv().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}}},dN=Object.fromEntries(_ne.map(e=>[e,Rne(e,K(Bne,e))]));import{BLOCK_WIDTH_LIMIT as Nne}from"efficient-easel/draw";var km={eyebrow:Ge.eyebrow,title:Ge.headingAccent,deck:"Add a sentence or two introducing this document."},E6e={label:"Document masthead",defaultProps:{eyebrow:"",title:"",deck:"",meta:[]}};var ew="titleLevel",Dne=e=>e===2?"h2":"h1",ow=e=>Dne(e?.[ew])==="h2";var IN={minWidth:Nne.min},cN=(e,o,t)=>({...me(e,{...o,...od}),props:{...G,align:"right",...wn,...t}}),gN={top:1,bottom:0},rw=(e,o,t,r)=>({kind:"group",name:e,props:{...L,sectionPaddingBottom:o,sectionPaddingBottomPhone:t},parts:[r]}),fN={widthFit:"fill",...IN},pN={top:100,bottom:60,topPhone:60,bottomPhone:40},Mne={...U("label",13),letterSpacing:.22,lineHeight:1.8},uN={textStyle:"heading-1",...ot("headingLarge",56,8,128),case:"upper",weight:500,lineHeight:.88,letterSpacing:-.04},Hne=()=>({name:"Page Header",boxProps:e=>({...Z,direction:"column",gap:0,sectionBorder:{bottom:1},...le(e,pN)}),box:[...re,...ue(pN)],parts:[{kind:"group",name:"Header",props:{...L,direction:"row",align:"end",justify:"between",gap:40,gapPhone:16,share:"content",sectionPaddingBottom:32},parts:[rw("Eyebrow",12,0,{...me("eyebrow",U("label",13)),props:{...G,...wn}}),{kind:"text",key:"title",role:"heading",props:{...G,tag:"h1",...fN},style:uN,mark:"accentItalic",when:e=>!ow(e)},{kind:"text",key:"title",role:"heading",props:{...G,tag:"h2",...fN},style:uN,mark:"accentItalic",when:ow},{kind:"group",name:"Details",props:{...L,align:"stretch",gap:0,gapPhone:0,sectionPaddingBottom:12,sectionPaddingBottomPhone:0},parts:[{kind:"list",key:"meta",name:"Detail",flat:!0,parts:[td("label","value",Mne,wn)]}]}]},{kind:"group",name:"Deck",props:{...L,maxWidth:760,sectionBorder:gN,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:{...Q,...se,[ew]:"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"}}),bN=()=>({eyebrow:km.eyebrow,title:pr(km.title),deck:km.deck,meta:[{label:Ge.label,value:Ge.value},{label:Ge.label,value:Ge.value}]}),mN={top:80,bottom:40,topPhone:60,bottomPhone:32},Wne={...U("label",13),letterSpacing:.18,lineHeight:1.8},hN={...U("label",13),letterSpacing:.22,lineHeight:1.9},Une=()=>({name:"Issue Header",boxProps:e=>({...Z,direction:"column",gap:0,sectionBorder:{bottom:1},...le(e,mN)}),box:[...re,...ue(mN)],parts:[{kind:"group",name:"Top",props:{...L,direction:"row",align:"end",justify:"between",gap:60,gapPhone:16,share:"content",sectionPaddingBottom:32},parts:[rw("Eyebrow",14,14,me("eyebrow",U("label",14))),{kind:"group",name:"Issue",props:{...L,align:"end",gap:0,gapPhone:0,sectionPaddingBottom:14},parts:[{kind:"list",key:"issueMeta",name:"Issue line",flat:!0,parts:[td("lead","rest",Wne)]}]}]},{kind:"group",name:"Bottom",props:{...L,direction:"row",align:"start",justify:"between",gap:60,gapPhone:16,share:"content",sectionBorder:gN,sectionPaddingTop:32},parts:[{kind:"text",key:"lead",props:{...G,maxWidth:720,...IN},style:{textStyle:"body-1",fontRole:"heading3",...U("headingSmall",20),lineHeight:1.5,letterSpacing:-.005,paragraphSpacing:16}},{kind:"group",name:"In this issue",props:{...L,align:"stretch",gap:0},parts:[rw("Heading",6,6,{kind:"text",key:"issueHeading",props:{...G,align:"right",...wn},style:{textStyle:"body-1",fontRole:"heading",...U("body",18),weight:400,letterSpacing:-.01,lineHeight:1.9,...od}}),{kind:"group",name:"Lines",props:{...L,align:"stretch",gap:0},parts:[{kind:"list",key:"issueList",name:"Line",flat:!0,parts:[cN("text",{color:"labels",...hN})]}]},cN("issueTotal",hN)]}]}],drop:{...Q,...se}}),xN={top:24,bottom:24,topPhone:16,bottomPhone:16},tw={color:"labels",...U("label",13),letterSpacing:.2},yN=e=>(Array.isArray(e.items)?e.items:[]).filter(o=>o&&typeof o.label=="string"&&o.label.trim()!==""),aw=(e,o)=>o!==void 0&&yN(e).at(-1)===o,SN=(e,o)=>o!==void 0&&yN(e).includes(o),zne=(e,o)=>SN(e,o)&&!aw(e,o)&&Qe(o?.href),$ne=()=>({name:"Breadcrumb",skip:e=>Qe(e.meta)?'a trailing note after "\xB7" needs a second mark; none live':void 0,boxProps:e=>({...Z,...En,wrap:"wrap",gap:16,gapPhone:16,separator:"slash",sectionBorder:{bottom:1},...le(e,xN)}),box:[...re,...ue(xN)],parts:[{kind:"list",key:"items",name:"Crumb",flat:!0,parts:[{kind:"button",key:"label",href:"href",variant:"ghost",when:zne,props:{...vo,...vn,icon:"none"},style:tw},{...me("label",tw),when:(e,o)=>SN(e,o)&&!aw(e,o)&&!Qe(o?.href)},{...me("label",{...tw,color:"text"}),when:aw}]}],drop:{...Q,...se,meta:"a node that stores a note is skipped (`skip`); an empty one draws nothing"}}),wN={DocMasthead:Hne(),Masthead:Une(),Breadcrumb:$ne()};import{BLOCK_WIDTH_LIMIT as jne,hiddenKeyOf as Kne}from"efficient-easel/draw";import{readHidable as nw}from"efficient-easel/draw";function Gne(e,o,t){return e||(t?.isEditing?i(o):void 0)}function $6e(e,o,t){let r=Array.isArray(e)?e:[];return r.length?r:t?.isEditing?o:[]}function CN(e,o,t){let r=nw(e);if(!r.hidden)return Gne(r.text,o,t)}function vN(e){if(e==null)return;let o=nw(e);return o.hidden?"":o.text}function G6e(e,o,t){return nw(e).hidden?"":CN(e,o,t)}function j6e(e,o,t){return{text:CN(e,co.text,t),href:o||co.href}}var EN="MenuBlock",sw=e=>(Array.isArray(e)?e:[]).filter(o=>o&&Qe(o.label)),kN=e=>{let[o,t]=[e.metaLabel,e.metaValue].map(a=>(vN(a)??"").trim());if(!t)return o;let r=t.includes("==")?t:`==${t}==`;return o?`${o} ${r}`:r},TN={top:0,bottom:0,topPhone:0,bottomPhone:0},Vne={...Ko,color:"labels",...U("label",12),letterSpacing:.24},qne={kind:"group",name:"Note",props:{...L,justify:"center",sectionBorder:{top:0,right:0,bottom:0,left:1},sectionPaddingLeft:28,[Kne("mobile")]:!0},parts:[{kind:"block",type:"Text",when:e=>kN(e)!=="",props:e=>({...G,textFit:"line",text:kN(e),[bi]:{text:Vne}})}]},ON=()=>({tabs:[],metaLabel:Ge.label,metaValue:Ge.value}),PN="the note Text inside the Box (the label, then the value in the accent); no words, no Text",_N={direction:"row",menuStyle:"tabs",currentPage:!0,minWidth:jne.min},AN=e=>({...e,boxProps:o=>({...Z,direction:"row",align:"stretch",justify:"between",gap:0,stickTop:!0,[ja]:0,[ei]:!0,sectionBorder:{bottom:1},...le(o,TN)}),box:[...re,...ue(TN)]}),Yne=()=>AN({name:"Tab Bar",skip:e=>sw(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:PN,metaValue:PN},parts:[{kind:"block",type:EN,props:_N},qne],drop:{...Q,...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"}}),Xne=()=>AN({name:"Category Bar",skip:e=>{if(sw(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(sw(e.links).length)return"its right-hand links are typed words: the bar holds the Menu only"},parts:[{kind:"block",type:EN,props:{..._N,[So]:IC}}],drop:{...Q,...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"}}),RN={DocTabs:Yne(),CategoryBar:Xne()};import{jsx as An,jsxs as iw}from"react/jsx-runtime";import{slugify as Zne}from"efficient-shell/format";import{jsx as lw,jsxs as LN}from"react/jsx-runtime";var rWe="sticky top-[120px]";var FN=(e,o)=>e?{[sc]:o}:{},BN=(e,o)=>lc(e?.[_h(o)]?.role,wu[o],Wn),DN=120;function NN({title:e,entries:o,stickyTop:t,sticky:r=!0,editing:a=!1,partStyles:n,numberForm:s=Dg,takesViewHide:l=!1}){let d=s==="plain",c=qr(),f=l?c:os;return f.scope(LN("aside",{className:Yr(`${r?"sticky ":""}flex flex-col self-start max-[900px]:static`,f.className),style:r?{top:t}:void 0,...f.attrs,children:[e&&lw("h4",{className:"mb-[18px] font-mono text-[length:var(--size-label,12px)] uppercase tracking-[0.3em] text-accent",children:Nr(e)}),o.map((u,p)=>{let h=lw("span",{...FN(a,"number"),style:BN(n,"number"),className:"text-accent",children:pp(s,p)});return LN("a",{href:`#${u.anchor}`,className:`flex items-center ${d?"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:[d&&h,lw("span",{...FN(a,"entry"),style:BN(n,"entry"),children:Nr(u.label||"Section")}),!d&&h]},`${p}-${u.anchor}`)})]}))}function Jne(e,o){return Zne(e)||`section-${o+1}`}var dw=e=>typeof e=="string"&&e.trim()!=="";function cw(e){return(e??[]).filter(o=>dw(o.heading)||dw(o.label)||dw(o.body))}function fw(e){let o=new Set;return e.map((t,r)=>{let a=Jne(t.label||t.heading||"",r),n=a,s=2;for(;o.has(n);)n=`${a}-${s++}`;return o.add(n),n})}function pw(e){let o=[];for(let t of e.replace(/\r\n?/g,`
|
|
327
327
|
`).split(/\n[ \t]*\n/))t.split(`
|
|
328
328
|
`).map(r=>r.replace(/\s+$/,"")).filter(r=>r.trim()!=="").forEach((r,a)=>{let n=Xd(r)[0].bullet,s=o.at(-1),l=a===0||!s||s.type==="ul"!==n;if(n){let d=r.slice(2);!l&&s?.type==="ul"?s.items.push(d):o.push({type:"ul",items:[d]})}else!l&&s?.type==="p"?s.text+=`
|
|
329
329
|
${r}`:o.push({type:"p",text:r})});return o}var Qne=()=>[{label:i("First section"),heading:i("Your *first* section."),body:i(`Write the opening paragraph here.
|
|
330
330
|
|
|
331
331
|
- Start a line with a dash for a bullet.
|
|
332
|
-
- Add as many as you like.`)},{label:i("Second section"),heading:i("Your *second* section."),body:i("Leave a blank line between paragraphs to start a new one.")}],ese=DN;function
|
|
333
|
-
`)}:{kind:"p",text:o.text}),mw={...Lt(12),letterSpacing:.3,color:"accent",lineHeight:1.5},$N={textStyle:"body-1",fontRole:"accent",...U("body",17)},rse=[me("label",mw),{...me("title",mw),when:(e,o)=>!uw(o?.label)},{kind:"block",type:"Text",when:(e,o)=>!uw(o?.label)&&!uw(o?.title),props:{...G,text:"Section",_partStyles:{text:mw}}},{kind:"group",name:"Heading",props:{...L,sectionPaddingBottom:UN,sectionPaddingBottomPhone:UN},parts:[{kind:"group",name:"Heading line",props:{...L,sectionBorder:{bottom:1},sectionPaddingBottom:WN,sectionPaddingBottomPhone:WN},parts:[{kind:"text",key:"heading",role:"heading",props:G,style:{textStyle:"heading-2",...ot("headingMedium",28,3.5,44),case:"upper",weight:500,lineHeight:1.04,letterSpacing:-.025}}]}]},{kind:"list",key:"body",name:"Body",flat:!0,of:tse,parts:[{kind:"text",key:"text",props:ne,style:{...$N,lineHeight:1.7},when:(e,o)=>o?.kind==="p"},{kind:"text",key:"text",props:ne,style:{...$N,lineHeight:1.65,paragraphSpacing:ose},when:(e,o)=>o?.kind==="ul"}]}],ase=900,nse={name:"Document Text",boxProps:e=>({...Z,direction:"row",gap:80,gapPhone:40,[om]:ase,sectionBorder:{bottom:1},...le(e,MN)}),box:["anchor","sectionAccent",...Jr,...ps,...Object.values(lo),...ue(MN)],parts:[{kind:"block",type:"Contents",props:e=>({title:e.tocTitle??"",sticky:!0,widthFit:"fixed",width:240,widthFitPhone:"fill"})},{kind:"group",name:"Sections",props:{...L,gap:64,gapPhone:64,widthFit:"fill"},parts:[{kind:"list",key:"sections",name:"Section",of:e=>zN(e),props:{...L,gap:HN,gapPhone:HN},item:(e,o,t)=>({props:{anchor:fw(zN(t))[o]??`section-${o+1}`}}),parts:rse}]}],reads:{tocTitle:"the Contents block's Heading"},drop:{...Q,stickyTop:"the Contents block draws DocBody's default (120px); 0 live nodes store it"}},GN={DocBody:nse};import{phoneKey as ise}from"efficient-easel/draw";import{SITE_SIDE as dse}from"efficient-easel/screen/lib/content/length-units";var
|
|
334
|
-
*Highlight line*`,body:"Describe this section in a sentence or two."},LWe={text:"Learn more"},FWe={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 hw(e){return typeof e=="number"&&Number.isFinite(e)?Math.min(Math.max(e,0),100):40}var NWe="[--intro-edge:60px] max-[960px]:[--intro-edge:24px]",sse="overlay",lse=[{label:"Copy over image",value:"overlay"},{label:"Copy above image",value:"stacked"}];function jN(e){return io(lse,sse,e)}var MWe={desktop:40,mobile:45,min:20,max:80,step:5};function HWe(e,o){return`${typeof e=="number"?e:o}%`}var KN=(e,o,t)=>{let r=q(e),a=q(o),n=(s,l)=>l&&l!=="px"?{[s]:l}:{};return{...r===void 0?{}:{size:r,...n(gt.size,t?.desktop)},...a===void 0?{}:{sizePhone:a,...n(gt.sizePhone,t?.phone)}}},cse=e=>jN(e.layout)==="stacked",VN=e=>Math.min(Math.max(q(e.overlay)??60,0),100),Tm=e=>q(e)??100,fse={textStyle:"heading-1",sizeToken:{...ot("headingLarge",48,7,96).sizeToken,pxPhone:36},weight:500,lineHeight:.95,letterSpacing:-.03},pse=[me("eyebrow",U("label",14)),...[!0,!1].map(e=>({kind:"text",key:"title",role:"heading",props:G,style:{...fse,case:e?"upper":"none"},styleFrom:o=>{let t=YI(o);return KN(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=YI(e);return KN(e.bodySizeDesktop,e.bodySizeMobile,{desktop:o.bodyDesktop,phone:o.bodyMobile})}},{kind:"group",name:"Button",props:{...L,align:"start",sectionPaddingTop:8,sectionPaddingTopPhone:8},parts:[{kind:"button",key:"ctaText",href:"ctaHref",variant:"primary",props:vo}]}],qN=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)`,use=()=>({name:"Scroll-Over Text",skip:e=>cse(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=>({...Z,direction:"column",justify:"center",align:"start",gap:24,gapPhone:24,share:"content",...rd,placement:"left",darken:VN(e),darkenStyle:"even",sectionHeightMode:"fixed",sectionHeightUnit:"%",sectionHeightValue:Tm(e.heightDesktop),sectionHeightModePhone:"fixed",sectionHeightUnitPhone:"%",sectionHeightValuePhone:Tm(e.heightMobile)}),box:[...re.filter(e=>!String(typeof e=="string"?e:e[0]).startsWith("sectionHeight")),["imageSrc","bgImage"],["imageSrcMobile","bgImagePhone"],["overlay","darken",(e,o)=>VN(o)],["heightDesktop","sectionHeightValue",e=>Tm(e)],["heightMobile","sectionHeightValuePhone",e=>Tm(e)]],parts:pse,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(jE.map(e=>[e,"read by its part's `styleFrom`: the unit of that view's Size"])),buttonColor:qN("Button color"),buttonTextColor:qN("Button text color"),...Q}}),ZN={textStyle:"heading-2",...U("headingMedium",56,36),weight:400,lineHeight:1.05,letterSpacing:-.03},mse={textStyle:"body-1",...U("body",16),lineHeight:1.7},JN=e=>({kind:"text",key:"body",props:{...ne,maxWidth:520},style:{...mse,paragraphSpacing:e}}),Em={top:0,bottom:0,topPhone:0,bottomPhone:0},xw=(e,o)=>typeof e.sectionHeightMode=="string"&&e.sectionHeightMode!=="auto"?{}:{sectionHeightMode:"fixed",sectionHeightUnit:"%",sectionHeightValue:o,sectionHeightModePhone:"auto"},hse=(e,o)=>{let t=xw(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"}},QN={boxShapePhone:"landscape"},e2="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)",xse=(e,o)=>({[e]:o,[ise(e)]:o}),Ise={textStyle:"heading-2",...U("headingMedium",40),weight:500,case:"none",lineHeight:1,letterSpacing:-.02},YN=e=>(Array.isArray(e.stats)?e.stats:[]).filter(o=>o&&(String(o.value??"").trim()!==""||String(o.label??"").trim()!=="")),gse=()=>({name:"Brand Text",boxProps:(e,o)=>({...Z,...Qo("background")(e,o),direction:"row",share:"equal",gap:0,gapPhone:0,sectionBorder:{top:1,bottom:1},...le(e,Em),...xw(e,100)}),box:[...re,...ue(Em)],parts:[{kind:"group",name:"Words",props:()=>({...L,justify:"center",gap:28,gapPhone:28,sectionBorder:ad({right:1}),sectionBorderPhone:ad({}),...rd,sectionPaddingTop:100,sectionPaddingBottom:100,sectionPaddingTopPhone:60,sectionPaddingBottomPhone:60,sectionPaddingRight:dse}),parts:[me("eyebrow",U("label",14)),{kind:"text",key:"heading",role:"heading",props:G,style:{...ZN,case:"none"},mark:"accentItalic"},JN(28),{kind:"group",name:"Stats",props:{...L,sectionPaddingTop:16,sectionPaddingTopPhone:16},parts:[{kind:"group",name:"Figures",props:e=>({...L,direction:"row",share:"equal",gap:24,gapPhone:24,maxWidth:520,phoneRow:Math.min(Math.max(YN(e).length,1),3),...xse("sectionBorder",ad({top:1})),sectionPaddingTop:28,sectionPaddingTopPhone:28}),parts:[{kind:"list",key:"stats",name:"Stat",of:YN,props:{...L,gap:4,gapPhone:4},parts:[{kind:"text",key:"value",props:Cn,style:Ise},me("label",{...U("label",13),color:"labels",letterSpacing:.2})]}]}]}]},nS("Picture","imageSrc",QN)],drop:{...Q,grayscale:e2,...se}}),Pm=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}},bse=e=>e.textAlign==="center"||e.textAlign==="right"?ec[e.textAlign]:"stretch",yse=e=>Math.min(Math.max(q(e.overlay)??60,0),100),o2=e=>typeof e=="string"&&e.trim()!=="",Sse={...vo,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},XN=e=>({...nS("Picture","imageSrc",(o,t)=>({...o2(o.imageSrc)&&hw(o.imageOverlay)>0?{darken:hw(o.imageOverlay),darkenStyle:"even"}:{},placement:"center",...QN,sectionBorder:ad(e?{left:1}:{right:1}),...t2(e?"left":"right",rl(t))}),[{kind:"button",key:"imageBtnText",href:"imageBtnHref",variant:"ghost",props:Sse,style:{...Lt(13,12),letterSpacing:.18}}]),when:o=>o.reverse===!0===e}),t2=(e,o)=>{let t=Math.max(60-o,0);return{sectionPaddingLeft:e==="left"?60:t,sectionPaddingRight:e==="right"?60:t}},wse={kind:"group",name:"Words",props:(e,o)=>{let t=e.reverse===!0;return{...L,justify:"center",align:bse(e),placement:e.textAlign==="center"?"center":e.textAlign==="right"?"right":"left",...hse(e,72),gap:24,gapPhone:24,...o2(e.textBgSrc)?{darken:yse(e),darkenStyle:"even"}:{},...rd,sectionPaddingTop:100,sectionPaddingBottom:100,...t2(t?"right":"left",rl(o)),sectionPaddingTopPhone:60,sectionPaddingBottomPhone:60}},box:[["textBgSrc","bgImage"]],parts:[{...me("eyebrow",U("label",14)),styleFrom:Pm},{kind:"text",key:"title",role:"heading",props:G,style:ZN,styleFrom:e=>({case:e.uppercase===!0?"upper":"none",...Pm(e)})},{...JN(24),styleFrom:Pm},{kind:"group",name:"Button",props:{...L,sectionPaddingTop:8,sectionPaddingTopPhone:8},parts:[{kind:"button",key:"ctaText",href:"ctaHref",variant:"primary",props:e=>{let o=Pm(e);return{...vo,...o.align?{align:o.align}:{},...o.alignPhone?{alignPhone:o.alignPhone}:{}}}}]}]},Cse=()=>({name:"Image & Text Split",boxProps:(e,o)=>({...Z,...Qo("background")(e,o),direction:"row",share:"equal",gap:0,gapPhone:0,sectionBorder:{top:1,bottom:1},...le(e,Em),...xw(e,72)}),box:[...re,...ue(Em)],parts:[XN(!1),wse,XN(!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:e2,...Q,...se}}),r2={IntroBleed:use(),Manifesto:gse(),Split:Cse()};var s2={headPlacement:void 0},a2={top:0,bottom:0,topPhone:0,bottomPhone:0},vse=()=>({name:"Form",ownBoxConverts:!0,boxProps:e=>({...Z,direction:"column",...le(e,a2)}),box:[...re,...ue(a2)],parts:[{kind:"core",keep:"rest",props:s2}],drop:{...Q,...se}}),n2={top:120,bottom:120,topPhone:60,bottomPhone:60},kse=()=>({name:"Photo Submission Form",boxProps:e=>({...Z,direction:"column",gap:24,...le(e,n2)}),box:[...re,...ue(n2)],parts:[me("eyebrow"),{kind:"text",key:"title",role:"heading",props:G,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:s2}],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:{...Q,...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'}}),l2={Form:vse(),SubmitBuild:kse()};import{phoneKey as i2}from"efficient-easel/draw";var c2=1.5,d2={textStyle:"body-1",...U("body",15),lineHeight:c2},Tse={...Ko,...U("label",12),letterSpacing:.12,lineHeight:c2},f2=()=>({type:te,props:{...L,direction:"row",justify:"between",align:"start",gap:16,gapPhone:16,share:"content",phoneRow:2,[i2("share")]:"content",[i2("wrap")]:"nowrap",...Do(12,0),sectionBorder:{top:1},name:"Item"},slots:{[He]:[{type:te,props:{...L,gap:0,gapPhone:0,name:"Item words"},slots:{[He]:[qe("label",{...G,tag:"p"},d2),qe("meta",{...ne,tag:"p"},Tse)]}},qe("amount",{...G,tag:"p"},d2)]}});var Pse=()=>({name:"Order Table",boxProps:()=>({...Z,direction:"column"}),box:[...re],parts:[{kind:"core",keep:"rest",headless:!0,slots:{[No]:[f2()]}}],drop:{...Q}}),p2={OrderSummary:Pse()};import{phoneKey as Ese}from"efficient-easel/draw";var cUe={eyebrow:"By the numbers",title:`A picture worth
|
|
335
|
-
*a thousand rows.*`},u2=["eyebrow","title","body","caption"],
|
|
336
|
-
*your favourite apps.*`),apps:["Shopify","Xero","Stripe","Mailchimp","Zapier","HubSpot","QuickBooks","PayPal","Google Analytics"].map(e=>({text:e}))});var Wse={title:"Back online in",zeroText:"Almost done. Back very soon."},P2=["title"],
|
|
337
|
-
*Highlight line*`},B2=[{label:co.text,href:co.href,variant:"primary"},{label:co.text,href:co.href,variant:"outline"}],KUe={label:"Call-to-Action Heading",defaultProps:{title:"",buttons:[],padTop:140,padBottom:140}};var gw="solid",jse=[{label:"Solid",value:"solid"},{label:"Outlined",value:"outlined"}];function YUe(e){return io(jse,gw,e)}var Kse="sf-secnum-outline",XUe="font-display text-[length:var(--size-headingMedium,clamp(48px,6vw,96px))] font-medium leading-[0.8] tracking-[-0.02em]",ZUe=`@supports (-webkit-text-stroke: 1px currentColor){.${Kse}{color:var(--site-surface-2);-webkit-text-stroke:1px var(--site-line)}}`;var _m="standard",H2=[{label:"Standard",value:"standard"},{label:"Editorial",value:"editorial"},{label:"Simple",value:"simple"},{label:"Statement",value:"statement"},{label:"Natural",value:"natural"},{label:"Essay",value:"essay"}],yw=["numStyle","logoSrc","logoAlt","linkText","linkHref","_gLogo"],bw=[...yw,"description"],D2={standard:["eyebrowLook"],editorial:[...yw,"eyebrowLook"],simple:bw,statement:bw,natural:yw,essay:bw},N2=["gap-5","gap-3"],M2=["text-[length:var(--size-body,16px)]","text-[15px]"];function oze(e){return io(N2,N2[0],e)}function tze(e){return io(M2,M2[0],e)}function rze(e){return io(H2,_m,e)}function aze(e){let o=H2.map(r=>r.value),t=[...new Set(Object.values(D2).flat())];return _a(e,t.map(r=>[[r],Oh("headStyle",o,_m,o.filter(a=>!D2[a].includes(r)))]))}var Mr={num:"01 / Section",title:"Section *title*",description:"Short supporting line",linkText:Ge.viewAll},dze={label:"Section Header",drawsPictures:!0,defaultProps:{headStyle:_m,num:Mr.num,numStyle:gw,title:Mr.title,description:"",logoSrc:"",logoAlt:"",linkText:"",linkHref:""}};var W2={top:72,bottom:72,topPhone:72,bottomPhone:72},Vse={name:"Editorial Text",boxProps:e=>({...Z,direction:"column",gap:28,gapPhone:28,sectionBorder:{top:1},...le(e,W2)}),box:[["topBorder","sectionBorder",e=>e===!1?void 0:{top:1}],...re,...ue(W2)],parts:[Ct("Prose"),{kind:"text",key:"body",props:ne,style:{textStyle:"body-1",...U("body",16),lineHeight:1.7,paragraphSpacing:18}}],drop:{...Q,...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)"}},U2={buttonPaddingTop:20,buttonPaddingBottom:20,buttonPaddingLeft:28,buttonPaddingRight:28},z2=(e,o)=>o?.variant==="primary",$2=(e,o)=>({kind:"list",key:"buttons",name:"Button",flat:!0,when:e,parts:[{kind:"button",key:"label",href:"href",when:z2,variant:"primary",style:{letterSpacing:.3},props:{...vo,...U2,...o}},{kind:"button",key:"label",href:"href",when:(t,r)=>!z2(t,r),variant:"ghost",style:{letterSpacing:.3},props:{...vo,...U2,...o}}]}),Am=e=>Qe(e.title),qse={name:"Call-to-Action Heading",boxProps:e=>({...Z,direction:"row",align:"center",justify:Am(e)?"between":"end",gap:60,gapPhone:60,share:"content",sectionBorder:{bottom:1},...wt(e,"TitleWithButtons")}),box:[...re,...pa("TitleWithButtons")],parts:[{kind:"group",name:"Title",props:{...L,maxWidth:1e3,widthFitPhone:"fill"},parts:[{kind:"text",key:"title",role:"heading",props:G,style:{textStyle:"heading-1",...ot("headingLarge",48,7,108),case:"upper",lineHeight:.94,letterSpacing:-.035},mark:"accentItalic"}]},{kind:"group",name:"Buttons",props:e=>({...L,gap:14,gapPhone:14,widthFitPhone:"fill",...Am(e)?{minWidth:280,minWidthPhone:0}:{}}),parts:[$2(Am,{widthFit:"fill",iconPosition:"end"}),$2(e=>!Am(e),{})]}],drop:{...Q,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 Yse(e,o){let t=rl(o,{to:ke(e.sectionPaddingUnit)}),r=rl(o,{view:"phone",to:ke(e.sectionPaddingUnitPhone),maxPx:20});return{sectionPaddingLeft:t,sectionPaddingRight:t,sectionPaddingLeftPhone:r,sectionPaddingRightPhone:r}}var G2={top:40,bottom:64,topPhone:24,bottomPhone:36},Xse={name:"Section Header",boxProps:(e,o)=>({...Z,direction:"column",gap:0,...le(e,G2),...Yse(e,o)}),box:[...re,...ue(G2)],parts:[Ct("SectionHeader")],drop:{...Q,...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"}},j2={...L,direction:"row",share:[67],gap:32},K2={...L,sectionPaddingLeft:24,sectionPaddingLeftPhone:0},V2=(e,o,t)=>({kind:"group",name:e,props:o,parts:[t]}),Zse={name:"Lead Text",boxProps:e=>({...Z,direction:"column",gap:40,gapPhone:40,sectionBorder:{bottom:1},...wt(e,"ParagraphsA")}),box:[...re,...pa("ParagraphsA")],parts:[{kind:"group",name:"Numbers",props:{...j2,gapPhone:24,sectionBorder:{bottom:1},sectionPaddingBottom:40,sectionPaddingBottomPhone:40},parts:[{kind:"group",name:"Eyebrow",props:{...L,sectionPaddingTop:5,sectionPaddingBottom:1,sectionPaddingTopPhone:5,sectionPaddingBottomPhone:1},parts:[me("eyebrow",{color:"labels",...U("label",12),letterSpacing:.24})]},V2("Stats column",L,{kind:"group",name:"Stats",props:{...K2,gap:0,gapPhone:0},parts:[{kind:"list",key:"stats",name:"Stat",flat:!0,parts:[td("value","label",{...U("label",13),letterSpacing:.18,lineHeight:1.8})]}]})]},{kind:"group",name:"Words",props:{...j2,gapPhone:28},parts:[{kind:"group",name:"Lead",props:L,parts:[{kind:"group",name:"Measure",props:{...L,maxWidth:780},parts:[{kind:"text",key:"lead",props:G,style:{textStyle:"heading-3",...U("headingSmall",22,20),weight:400,case:"none",lineHeight:1.45,letterSpacing:-.005}}]}]},V2("Note column",{...L,justify:"end"},{kind:"group",name:"Founders",props:{...K2,gap:8,gapPhone:8},parts:[{kind:"group",name:"Note",props:{...L,gap:6,gapPhone:6},parts:[{kind:"text",key:"foundersHeading",props:G,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}}]},me("attribution",{...U("label",12,10),letterSpacing:.24,lineHeight:1.7})]})]}],drop:{...Q}},q2={top:24,bottom:24,topPhone:24,bottomPhone:24},Jse={name:"Banner",boxProps:e=>({...Z,direction:"column",gap:0,...le(e,q2)}),box:[...re,"contained",...ue(q2)],parts:[{kind:"group",name:"Card",keepEmpty:!0,props:{...L,gap:28,gapPhone:28,placement:"top-left",darken:60,darkenStyle:"even",sectionBorder:{width:1},...Cr("surface"),...Do(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:{...L,gap:20,gapPhone:20},parts:[me("eyebrow"),{kind:"text",key:"title",role:"heading",props:{...G,maxWidth:680},style:{weight:500,lineHeight:1.05,letterSpacing:-.03,case:"none",...U("headingMedium",44,32)}},{kind:"text",key:"body",props:{...G,maxWidth:680},style:{textStyle:"body-1",lineHeight:1.6,...U("body",16)}}]},{kind:"button",key:"ctaText",href:"ctaHref",variant:"primary",props:vo}]}],drop:{...Q,...se}},Sw={Prose:Vse,TitleWithButtons:qse,SectionHeader:Xse,ParagraphsA:Zse,Banner:Jse},Y2={Prose:()=>({eyebrow:Om.eyebrow,title:pr(Om.title),body:Om.body}),TitleWithButtons:()=>({title:pr(F2.title),buttons:B2.map(e=>({...e}))}),SectionHeader:()=>({num:Mr.num,title:pr(Mr.title),description:Mr.description,linkText:Mr.linkText,linkHref:co.href}),ParagraphsA:()=>({eyebrow:Cd.eyebrow,lead:Ge.body,foundersHeading:Cd.foundersHeading,foundersBody:Cd.foundersBody,attribution:Cd.attribution}),Banner:()=>({...L2,ctaText:co.text,ctaHref:co.href}),ProcessSteps:()=>({num:Mr.num,title:pr(Mr.title)})};function X2(){go(Sw),go(WB),go(QB),go(_B),go(cD),go(GD),go(nN),go(dN),go(wN),go(RN),go(GN),go(r2),go(l2),go(p2),go(R2),go(S2),go(k2),go(_2)}var ele=["FooterPayment"];function Z2(e,o){let{id:t,...r}=e.props;for(let[a,n]of Object.entries(r))Qse(n)&&(r[a]=n.map(s=>Z2(s,o)));return o(e.type,r)}var vd=(e,o)=>{if(!ele.includes(e.type))return null;X2();let t=ca(e.type);return t?Zs({type:e.type,props:{...e.props}},t).nodes.map(r=>Z2(r,o)):null};function J2(){let{appState:e,dispatch:o,config:t}=sle(f=>f),{readOnly:r}=ile(),[a,n]=rle(!1),s=e.data.content;if(r||s.some(f=>f.type===Ue))return null;let l=s.find(f=>f.type===Xe)??null,d=(f,u)=>ale(t,f,u),c=()=>{let f=Zi(l,d,nle(Ue),vd);o({type:"setData",data:u=>({...u,content:[...Rc(u.content,f)]}),recordHistory:!0}),n(!1)};return Rm(lle,{tone:"info",title:i("This footer uses the old layout"),action:a?tle(ole,{children:[Rm(ww,{variant:"primary",size:"sm",onClick:c,children:i("Switch now")}),Rm(ww,{variant:"secondary",size:"sm",onClick:()=>n(!1),children:i("Cancel")})]}):Rm(ww,{variant:"secondary",size:"sm",onClick:()=>n(!0),children:i("Switch to Box footer")}),children:i("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 Cw,jsxs as dle}from"react/jsx-runtime";import{InspectorUpLevel as Q2}from"efficient-easel/chrome";function eM({nodeId:e,part:o,sectionName:t,onUpToSection:r}){let{select:a}=qp(),n=Ks(e,o,"picture");return dle("div",{children:[o!=="media"?Cw(Q2,{inline:!0,name:i(cn.media),onSelect:()=>a(Ri(e,"media"))}):Cw(Q2,{inline:!0,name:i(t),onSelect:r}),Cw(Kt,{part:o,motion:n,itemWord:i(cn[o])})]})}import{HintsToggle as Cle,SettingsSwitch as vle,hintsFoldClass as kle}from"efficient-easel/panel";import{useHints as Tle}from"efficient-easel/screen/lib/hints";var sM={kind:"header"},Tw={kind:"website"},lM={kind:"website",tab:Hs,revealPageGroup:!0},iM={kind:"chat"},dM={kind:"social"},kd="Part";function Ple(e){return i("Part of {name}",{name:i(e)})}function Ele(e,o,t){let r=e.describeNode(o);return{name:t,kindLabel:r?Ple(r.label):i(kd)}}function Ole(e){switch(e){case"Header":return{title:i("Header settings belong to a website."),own:i("Each website created from this template sets its own header afterwards.")};case"Appearance":return{title:i("Appearance settings belong to a website."),own:i("Each website created from this template sets its own appearance afterwards.")};case"Live chat":return{title:i("Live chat settings belong to a website."),own:i("Each website created from this template sets its own live chat afterwards.")};case"Social link":return{title:i("Social link settings belong to a website."),own:i("Each website created from this template sets its own social link afterwards.")};default:return{title:i("{what} settings belong to a website.",{what:e}),own:i("Each website created from this template sets its own {what} afterwards.",{what:e.toLowerCase()})}}}function cM({what:e}){let o=Ole(e);return Ia("div",{className:"sf-note",children:[Ee("p",{children:Ee("strong",{children:o.title})}),Ia("p",{children:[i("A template is a blueprint \u2014 it has no website of its own, so there is nothing here to change.")," ",o.own]})]})}function kw(e){let o=Ai[e];return{name:cn[e],kindLabel:kd,icon:o,head:(t,r)=>{if(t.kind!==o)return null;let a=r.describeNode(t.nodeId);if(!a)return null;let n=nM({name:i(Xp(e,a.props)),tier:"part",of:i(a.label)},{partOf:({name:s})=>i("Part of {name}",{name:s})});return{name:n.name,kindLabel:n.kind}},render:(t,r)=>t.kind===o?Ee(eM,{nodeId:t.nodeId,part:e,sectionName:r.describeNode(t.nodeId)?.label??"Hero",onUpToSection:()=>r.onSelectNode(t.nodeId)}):null}}var _le={header:{name:"Header",kindLabel:"Site settings",icon:"header",render:(e,o)=>{let t=o.hostPanels?.header;return t?Ee(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)=>Ee(Hp,{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:()=>Ee(jA,{})},social:{name:"Social links",kindLabel:"Site settings",icon:"social",render:()=>Ee(ZA,{unavailable:Ee(cM,{what:"Social link"})})},ticker:{name:Ei,kindLabel:kd,icon:"ticker",head:(e,o)=>e.kind==="ticker"?Ele(o,e.heroId,i(Ei)):null,render:e=>Ee(mL,{heroId:e.kind==="ticker"?e.heroId:""})},heroMedia:kw("media"),heroImage:kw("image"),heroImage2:kw("image2"),part:{name:kd,kindLabel:kd,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}=$t(e.propKey),n=a?_s(t.fields[r],a):t.fields[r],s=Cu(t.type),l=s?Tl(s,e.propKey):null,d=s&&l?s[l].label:kL[e.propKey],c=d?i(d):t_(i(Lg(cp(n??{},r))),a),f=nM({name:c,tier:"part",of:i(t.label)},{partOf:({name:u})=>i("Part of {name}",{name:u})});return{name:f.name,kindLabel:f.kind}},render:(e,o)=>e.kind==="part"?Ee(KL,{nodeId:e.nodeId,propKey:e.propKey,onBack:()=>o.onSelectNode(e.nodeId),onEditStyle:o.onOpenSiteStyles}):null}},Ale=new Set(["header","website","chat"]);function Rle(e,o){if(e==="selection")return null;let t=_le[e];return Ale.has(e)&&!o.hasSiteSettings?{...t,kindLabel:"Not part of a template",render:()=>Ee(cM,{what:t.name})}:t}function fM({mode:e,onOpenWebsiteSettings:o,onOpenSiteStyles:t,onOpenPageStyles:r,onSelectNode:a,hideNodeActions:n=!1,onNotify:s,onHidePanel:l}){let{capabilities:d,tokenRef:c,notifyParent:f,currentSlug:u,siteId:p,runAuthed:h,readOnly:I,navigate:g}=ble(),{rows:C}=ki(),w=C?.find(M=>M.slug===u)??null,T=fle(),y=Object.keys(T.fields).some(M=>!M.startsWith("_")&&!Ci.includes(M)),{websiteName:b}=he(),P=yle({readOnly:I}),{select:H}=Sle(),{selectedItem:E,getItemById:W,getSelectorForId:O,config:D,appState:v}=cle(M=>M),_=Ile(D,E?{type:E.type,props:E.props}:null),A=E?i_(_??D.components[E.type]?.fields,E.props):[],F=M=>D.components[M]?.label??M,z=E?O(E.props.id):void 0,$=Rle(e.kind,d),X=gle(),ee={capabilities:d,tokenRef:c,hostPanels:X.chrome?.panels,describeNode:M=>{let Le=W(M);if(!Le)return null;let ye=D.components[Le.type];return{type:Le.type,label:ye?.label??Le.type,fields:ye?.fields??{},props:Le.props??{}}},siteId:p,websiteName:b??null,notifyParent:f,onNotify:s,onOpenWebsiteSettings:o,onOpenSiteStyles:t,onSelectNode:a},Fe=$?.head?.(e,ee)??null,Oe=HA({kind:w?.kind,pageName:w?.label}),ze=Fe?.name??($?i($.name):E?i(F(E.type)):Oe.name),Ke=Fe?.kindLabel??($?i($.kindLabel):E?z&&z.zone!==aM?i("Block"):i("Section"):Oe.kindLabel),be=$?$.icon:E?E.type:"page",Te=vw(e)&&E?$i(E.type):null,_e=!!E&&!!z&&z.zone===aM&&E.type!==Xe&&E.type!==wle,Ne=Nu(v?.data,E),ao=()=>{Ne||z&&P.duplicateComponent(z.zone,z.index)},yo=()=>{z&&(P.removeComponent(z.zone,z.index),P.select(null))},ie=E?D.components[E.type]?.defaultProps?.previewHover:void 0,Me=vw(e)&&!!E&&!!z&&ie!==void 0,Ve=Me&&E.props.previewHover===!0,J=()=>{!E||!z||P.replaceComponent(z.zone,z.index,{...E,props:{...E.props,previewHover:!Ve}})},{shown:Ae,setShown:ft}=Tle(),fo=!!($||E||y);return Ia("div",{className:`es-sidepanel es-sidepanel--right sf-panel sf-panel--right ${kle(Ae)}`.trim(),children:[Ee(mle,{icon:Ee(fn,{type:be,size:15}),name:ze,kind:Ke,actions:!n&&vw(e)&&E&&E.type!==Xe?Ia(oM,{children:[Ee(tM,{label:i("Duplicate section"),title:Ne??void 0,disabled:Ne!==null,onClick:ao,children:Ee(hle,{size:15})}),_e&&d.hasSiteSettings&&Ee(aF,{node:E,currentSlug:u,siteId:p??void 0,tokenRef:c,runAuthed:h,onNotify:s}),Ee(tM,{label:i("Remove section"),danger:!0,onClick:yo,children:Ee(xle,{size:15})}),l?Ee(rM,{side:"right",onHide:l,divider:!0}):null]}):l?Ee(rM,{side:"right",onHide:l}):void 0}),Me&&Ia("div",{className:"sf-preview-pin",children:[Ia("div",{className:"sf-preview-pin-text",children:[Ee("span",{className:"sf-preview-pin-label",children:i("Preview hover state")}),Ee("span",{className:"sf-preview-pin-hint",children:i("not shown live")})]}),Ee(vle,{checked:Ve,onChange:J,ariaLabel:i("Preview hover state")})]}),Ia("div",{className:"sf-insp-body es-insp-body sf-scroll",children:[$?$.render(e,ee):E?Ia(oM,{children:[E.type===Xe&&d.hasSiteSettings&&Ee(J2,{}),Ee(ZP,{children:Ee(Kt,{entries:Ee(nF,{parts:A,heading:!1,onOpen:M=>H(ip(E.props.id,M))}),entryCount:Xy(A).length,itemWord:ze})}),Te&&Ee(Pu,{source:Te,slug:qs(E?.props),menuId:Su(E?.props)})]}):y?Ee(Kt,{omit:Ci}):Ee(ule,{variant:"none",icon:!1,message:i("Select a section or block to edit it."),children:r&&Ee(ple,{variant:"secondary",onClick:r,children:i("This page")})}),fo&&Ee(Cle,{shown:Ae,onChange:ft,label:i("Show hints")})]})]})}import{jsx as m,jsxs as R,Fragment as xM}from"react/jsx-runtime";var bo={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)"},Pw="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 j({w:e,h:o,tone:t="dark",r=2,style:a}){return m("div",{style:{width:e,height:o,borderRadius:r,background:bo[t],flex:"none",...a}})}var Lle={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"},Y={position:"absolute",inset:0},x={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)"},je=(e,o,t=160)=>({background:`linear-gradient(${t}deg,${e},${o})`});function Wr({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 R("span",{style:{position:"absolute",display:"block",width:e,height:e,...o},children:[m("span",{style:r("8% 26% 30% 6%",x.mark1)}),m("span",{style:r("26% 6% 8% 30%",x.mark2,"multiply")})]})}function Fm({children:e}){return m("span",{style:{fontSize:"4.64cqw",fontWeight:700,letterSpacing:"0.06em",textTransform:"uppercase",color:x.muted},children:e})}function pM({over:e,overTone:o,head:t,headSize:r=11.5,cta:a,ctaBg:n,ctaFg:s,tone:l}){return R(xM,{children:[e&&m("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.16em",fontWeight:700,color:o},children:e}),m("span",{style:{fontSize:r,lineHeight:1.15,fontWeight:700,maxWidth:"78%",color:l},children:t}),a&&m("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 Ew({name:e,price:o}){return R("div",{style:{display:"flex",flexDirection:"column",gap:2,minWidth:0},children:[m("div",{style:{flex:1,minHeight:0,borderRadius:3,position:"relative",overflow:"hidden",...je(x.paper,x.paper2,150)},children:m(Wr,{size:34,style:{left:"50%",top:"50%",transform:"translate(-50%,-50%)"}})}),m("span",{style:{fontSize:"3.65cqw",fontWeight:600,color:x.text},children:e}),m("span",{style:{fontSize:"3.65cqw",color:x.muted},children:o})]})}function Hr({k:e,v:o,ok:t}){return R("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",gap:6,padding:"3.5px 2px",borderBottom:`1px solid ${x.rule}`,fontSize:"3.98cqw",color:x.muted},children:[m("span",{children:e}),R("span",{style:{display:"flex",gap:6,alignItems:"center"},children:[m("b",{style:{color:x.text,fontWeight:700},children:o}),t&&m("span",{style:{color:x.rust,fontWeight:700},children:"\u2713"})]})]})}function De({title:e,children:o}){return R("div",{style:{...Y,background:x.card,padding:"9px 10px",display:"flex",flexDirection:"column",gap:6},children:[m(Fm,{children:e}),o]})}function uM({size:e=14}){return m("span",{style:{width:e,height:e,borderRadius:"50%",flex:"none",display:"block",background:`linear-gradient(150deg,${x.mark1},${x.mark2})`}})}function Ow({filled:e=5,size:o=6}){return R("span",{style:{fontSize:o,letterSpacing:"0.06em",color:x.rust,lineHeight:1},children:["\u2605".repeat(e),m("span",{style:{color:x.mark1},children:"\u2605".repeat(5-e)})]})}function Td({n:e,label:o,tone:t=x.text}){return R("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:1,minWidth:0},children:[m("b",{style:{fontSize:"8.16cqw",lineHeight:1,color:t},children:e}),m("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.08em",textTransform:"uppercase",opacity:.62,color:t},children:o})]})}function ho({children:e,w:o}){return m("span",{style:{fontSize:"3.98cqw",lineHeight:1.45,color:x.muted,width:o,display:"block"},children:e})}function Lm({label:e,w:o="100%",filled:t}){return R("div",{style:{width:o,display:"flex",flexDirection:"column",gap:2},children:[m("span",{style:{fontSize:"3.32cqw",letterSpacing:"0.08em",textTransform:"uppercase",color:x.muted},children:e}),m("span",{style:{height:9,borderRadius:3,border:`1px solid ${x.rule}`,background:t?x.paper:x.card}})]})}function mM({children:e}){return m("span",{style:{alignSelf:"flex-start",fontSize:"3.65cqw",letterSpacing:"0.12em",fontWeight:700,padding:"5px 9px",borderRadius:2,background:x.text,color:x.onInk},children:e})}var Fle={wheelslisting:m(De,{title:"All wheels",children:m("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])=>R("div",{style:{display:"flex",alignItems:"center",gap:6},children:[m("span",{style:{width:20,height:15,borderRadius:3,flex:"none",position:"relative",overflow:"hidden",...je(x.paper,x.paper2,150)},children:m(Wr,{size:12,style:{left:"50%",top:"50%",transform:"translate(-50%,-50%)"}})}),m("b",{style:{flex:1,fontSize:"4.31cqw",color:x.text},children:e}),m("span",{style:{fontSize:"3.65cqw",color:x.muted},children:o}),m("b",{style:{fontSize:"4.31cqw",color:x.text,width:26,textAlign:"right"},children:t})]},e))})}),catalogfilterbar:R("div",{style:{...Y,background:x.card,display:"flex",flexDirection:"column",justifyContent:"center",gap:7,padding:"0 11px"},children:[R("div",{style:{display:"flex",gap:4,alignItems:"center"},children:[["20 inch","6\xD7139.7","Black"].map(e=>R("span",{style:{fontSize:"3.65cqw",fontWeight:600,padding:"4px 7px",borderRadius:99,background:x.text,color:x.onInk,display:"flex",gap:4,alignItems:"center"},children:[e,m("span",{style:{opacity:.6},children:"\u2715"})]},e)),m("span",{style:{fontSize:"3.65cqw",color:x.rust,fontWeight:700},children:"Clear"})]}),R("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[m("span",{style:{fontSize:"3.65cqw",color:x.muted},children:"128 results"}),m("span",{style:{fontSize:"3.65cqw",color:x.muted,border:`1px solid ${x.rule}`,borderRadius:3,padding:"3px 6px"},children:"Sort: Price \u25BE"})]})]}),fitmentfinder:R("div",{style:{...Y,padding:"10px 12px",display:"flex",flexDirection:"column",gap:6,justifyContent:"center",...je(x.ink,x.inkSoft)},children:[m("span",{style:{fontSize:"5.31cqw",fontWeight:700,color:x.onInk},children:"Will it fit your rig?"}),R("div",{style:{display:"flex",gap:4},children:[["2021","Toyota","Hilux"].map(e=>R("span",{style:{flex:1,fontSize:"3.65cqw",color:x.text,background:x.card,borderRadius:3,padding:"5px 6px",display:"flex",justifyContent:"space-between"},children:[e," ",m("span",{style:{color:x.muted},children:"\u25BE"})]},e)),m("span",{style:{fontSize:"3.65cqw",fontWeight:700,letterSpacing:"0.08em",background:x.warm,color:x.ink,borderRadius:3,padding:"5px 7px"},children:"GO"})]})]}),compatibletyres:m(De,{title:"Tyres that suit",children:m("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])=>R("div",{style:{display:"flex",flexDirection:"column",gap:2,minWidth:0},children:[m("div",{style:{flex:1,minHeight:0,borderRadius:3,position:"relative",overflow:"hidden",background:x.ink},children:m("span",{style:{position:"absolute",left:"50%",top:"50%",transform:"translate(-50%,-50%)",width:26,height:26,borderRadius:"50%",border:`5px solid ${x.mark2}`,boxSizing:"border-box"}})}),m("span",{style:{fontSize:"3.32cqw",fontWeight:600,color:x.text,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},children:e}),m("span",{style:{fontSize:"3.32cqw",color:x.muted},children:o})]},e))})}),tyresizes:m(De,{title:"Available sizes",children:m("div",{style:{flex:1,display:"flex",flexWrap:"wrap",gap:4,alignContent:"center"},children:["265/65R17","285/70R17","265/60R18","275/55R20"].map((e,o)=>m("span",{style:{fontSize:"3.65cqw",fontWeight:600,padding:"5px 7px",borderRadius:3,border:`1px solid ${o===0?x.rust:x.rule}`,color:o===0?x.rust:x.text,background:o===0?x.paper:x.card},children:e},e))})}),tyrefitment:R(De,{title:"Will it fit your car?",children:[m("div",{style:{display:"flex",gap:3},children:["Make","Model","Year","Trim"].map(e=>R("span",{style:{flex:1,minWidth:0,fontSize:"3.32cqw",color:x.muted,background:x.paper,border:`1px solid ${x.rule}`,borderRadius:3,padding:"4px 5px",display:"flex",justifyContent:"space-between",gap:2,overflow:"hidden",whiteSpace:"nowrap"},children:[e," ",m("span",{style:{color:x.muted},children:"\u25BE"})]},e))}),m("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])=>R("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"baseline",gap:6,borderTop:`1px solid ${x.rule}`,paddingTop:3},children:[m("span",{style:{fontSize:"3.32cqw",fontWeight:600,color:x.text},children:e}),m("span",{style:{fontSize:"3.32cqw",fontWeight:t?700:400,letterSpacing:"0.06em",color:t?x.warm:x.muted},children:o})]},e))})]}),eutyrelabel:R("div",{style:{...Y,background:x.card,padding:"9px 11px",display:"flex",gap:8,alignItems:"center"},children:[m("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:1.5},children:[["A","42%"],["B","56%"],["C","70%"],["D","84%"]].map(([e,o],t)=>R("div",{style:{display:"flex",alignItems:"center",gap:3},children:[m("span",{style:{width:o,height:6,borderRadius:"0 2px 2px 0",background:t===1?x.rust:x.mark1}}),m("span",{style:{fontSize:"3.32cqw",fontWeight:700,color:t===1?x.rust:x.muted},children:e})]},e))}),R("div",{style:{flex:"none",display:"flex",flexDirection:"column",gap:3,alignItems:"center"},children:[m("b",{style:{fontSize:"6.63cqw",lineHeight:1,color:x.text},children:"72"}),m("span",{style:{fontSize:"3.32cqw",letterSpacing:"0.08em",color:x.muted},children:"dB"})]})]}),bundleoffer:R("div",{style:{...Y,background:x.paper,padding:"9px 11px",display:"flex",flexDirection:"column",gap:5,justifyContent:"center"},children:[m(Fm,{children:"Buy it with"}),R("div",{style:{display:"flex",alignItems:"center",gap:5},children:[[0,1].map(e=>m("span",{style:{width:26,height:22,borderRadius:3,flex:"none",position:"relative",overflow:"hidden",background:x.card},children:m(Wr,{size:17,style:{left:"50%",top:"50%",transform:"translate(-50%,-50%)"}})},e)),m("span",{style:{fontSize:"5.69cqw",fontWeight:700,color:x.muted},children:"+"}),R("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:1},children:[m("span",{style:{fontSize:"3.65cqw",color:x.muted,textDecoration:"line-through"},children:"$1,024"}),m("b",{style:{fontSize:"6.02cqw",color:x.rust,lineHeight:1},children:"$899"})]})]})]}),checkoutcta:R("div",{style:{...Y,display:"flex",alignItems:"center",justifyContent:"space-between",padding:"0 13px",gap:8,...je(x.ink,x.ink2)},children:[R("div",{style:{display:"flex",flexDirection:"column",gap:2},children:[m("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.12em",color:x.warm,fontWeight:700},children:"READY TO ORDER"}),m("b",{style:{fontSize:"6.63cqw",color:x.onInk,lineHeight:1},children:"$1,956"}),m("span",{style:{fontSize:"3.65cqw",color:x.onInk,opacity:.65},children:"4 items \xB7 fitted free"})]}),m("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.12em",fontWeight:700,padding:"6px 10px",borderRadius:2,background:x.warm,color:x.ink,flex:"none"},children:"CHECKOUT"})]}),contact:m(De,{title:"Who do you need?",children:m("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])=>R("div",{style:{display:"flex",alignItems:"center",gap:5},children:[m("b",{style:{flex:1,fontSize:"4.31cqw",color:x.text},children:e}),m("span",{style:{fontSize:"3.65cqw",color:x.muted},children:o}),m("span",{style:{fontSize:"4.64cqw",color:x.rust,lineHeight:1},children:"\u203A"})]},e))})}),contactlocations:m(De,{title:"Find us",children:m("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])=>R("div",{style:{border:`1px solid ${x.rule}`,borderRadius:4,padding:"5px 6px",display:"flex",flexDirection:"column",gap:1},children:[m("b",{style:{fontSize:"4.31cqw",color:x.text},children:e}),m("span",{style:{fontSize:"3.32cqw",color:x.muted},children:o}),m("span",{style:{fontSize:"3.32cqw",color:x.rust,fontWeight:700},children:t})]},e))})}),citypictures:m(De,{title:"Our studios",children:R("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:3,minHeight:0},children:[m("span",{style:{fontSize:"3.32cqw",letterSpacing:"0.12em",fontWeight:700,color:x.muted},children:"A \xB7 AMERICAS"}),m("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(3,1fr)",gap:4,minHeight:0},children:["Los Angeles","Miami","Toronto"].map(e=>R("div",{style:{position:"relative",minHeight:0},children:[m(j,{r:3,style:{...Y,background:`linear-gradient(transparent 45%,${x.scrim} 45%),${je(x.ink,x.inkSoft2).background}`}}),m("b",{style:{position:"absolute",left:5,bottom:4,fontSize:"3.65cqw",color:x.onInk},children:e})]},e))})]})}),citymaps:m(De,{title:"Find us",children:m("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])=>R("div",{style:{position:"relative",padding:"4px 5px",display:"flex",flexDirection:"column",gap:2,minHeight:0},children:[m(j,{r:4,style:{...Y,background:"none",border:`1px solid ${x.rule}`}}),m("b",{style:{position:"relative",fontSize:"4.31cqw",color:x.text},children:e}),m("span",{style:{position:"relative",fontSize:"3.32cqw",color:x.muted},children:o}),R("div",{style:{flex:1,minHeight:0,position:"relative"},children:[m(j,{r:3,style:{...Y,...je(x.paper,x.paper2,150)}}),m(j,{w:"60%",h:"60%",r:8,style:{position:"absolute",left:"12%",top:"20%",background:x.mark1,opacity:.75}}),m(j,{w:6,h:6,r:3,style:{position:"absolute",left:"44%",top:"34%",background:x.rust}})]})]},e))})}),form:m(De,{title:"Send us a message",children:R("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[R("div",{style:{display:"flex",gap:5},children:[m(Lm,{label:"Name"}),m(Lm,{label:"Email"})]}),m(Lm,{label:"Message",filled:!0}),m(mM,{children:"SEND"})]})}),appointmentbooking:m(De,{title:"Book a fitting",children:R("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[m("div",{style:{display:"flex",gap:3},children:["Mon","Tue","Wed","Thu"].map((e,o)=>m("span",{style:{flex:1,textAlign:"center",fontSize:"3.32cqw",fontWeight:o===2?700:500,padding:"4px 0",borderRadius:3,background:o===2?x.text:x.paper,color:o===2?x.onInk:x.muted},children:e},e))}),m("div",{style:{display:"flex",gap:3},children:["8:00","10:30","13:00","15:30"].map((e,o)=>m("span",{style:{flex:1,textAlign:"center",fontSize:"3.32cqw",padding:"4px 0",borderRadius:3,border:`1px solid ${o===1?x.rust:x.rule}`,color:o===1?x.rust:x.muted,background:o===3?x.paper:x.card,textDecoration:o===3?"line-through":"none"},children:e},e))})]})}),reviewform:m(De,{title:"Leave a review",children:R("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:5,justifyContent:"center"},children:[m(Ow,{filled:4,size:14}),m(Lm,{label:"Your review",filled:!0}),m(mM,{children:"POST"})]})}),submitbuild:m(De,{title:"Show us your build",children:R("div",{style:{flex:1,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:3,border:`1px dashed ${x.mark1}`,borderRadius:5,background:x.paper},children:[m("span",{style:{fontSize:"6.63cqw",lineHeight:1,color:x.rust,fontWeight:300},children:"+"}),m("span",{style:{fontSize:"3.65cqw",color:x.muted},children:"Drop a photo of your rig"})]})}),masthead:R("div",{style:{...Y,background:x.paper,display:"flex",flexDirection:"column",justifyContent:"center",padding:"0 13px",gap:5},children:[m("span",{style:{height:1.5,background:x.text}}),m("span",{style:{fontSize:"7.65cqw",fontWeight:800,letterSpacing:"0.02em",color:x.text,lineHeight:1},children:"THE TRACK"}),R("div",{style:{display:"flex",justifyContent:"space-between",fontSize:"3.65cqw",letterSpacing:"0.1em",textTransform:"uppercase",color:x.muted},children:[m("span",{children:"Issue 14"}),m("span",{children:"Spring 2026"})]}),m("span",{style:{height:1,background:x.rule}})]}),featuredcover:R("div",{style:{...Y,overflow:"hidden",...je(x.ink,x.inkSoft2)},children:[m(Wr,{size:92,style:{right:-18,top:-14}}),m("div",{style:{position:"absolute",inset:0,background:`linear-gradient(0deg,${x.scrim},transparent 62%)`}}),R("div",{style:{position:"absolute",left:12,right:12,bottom:11,display:"flex",flexDirection:"column",gap:3},children:[m("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.16em",fontWeight:700,color:x.warm},children:"FEATURE"}),m("span",{style:{fontSize:"6.16cqw",lineHeight:1.15,fontWeight:700,color:x.onInk},children:"Four days on the Madigan Line"})]})]}),longread:R("div",{style:{...Y,background:x.card,padding:"10px 14px",display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[m("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.14em",fontWeight:700,color:x.rust},children:"12 MIN READ"}),m("span",{style:{fontSize:"6.02cqw",lineHeight:1.15,fontWeight:700,color:x.text},children:"What breaks first, and why"}),m(ho,{children:"Every failure starts in the same place:"}),m(ho,{w:"80%",children:"the bolt nobody re-torqued."})]}),articlebody:R("div",{style:{...Y,background:x.card,padding:"10px 22px",display:"flex",flexDirection:"column",gap:4,justifyContent:"center",alignItems:"center",textAlign:"center"},children:[m("span",{style:{fontSize:"4.97cqw",lineHeight:1.2,fontWeight:700,color:x.text},children:"Why offset beats width"}),m(ho,{w:"100%",children:"A wider wheel adds grip only if the offset still"}),m(ho,{w:"88%",children:"clears the arch, so the offset is chosen first."}),m(ho,{w:"80%",children:"Width follows from the space left."})]}),series:m(De,{title:"Recurring columns",children:m("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])=>R("div",{style:{display:"flex",alignItems:"center",gap:6},children:[m("span",{style:{width:3,height:12,borderRadius:2,background:x.rust,flex:"none"}}),m("b",{style:{flex:1,fontSize:"4.64cqw",color:x.text},children:e}),m("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.08em",textTransform:"uppercase",color:x.muted},children:o})]},e))})}),events:m(De,{title:"Latest posts",children:m("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:5,justifyContent:"center"},children:[[x.inkSoft,x.inkSoft2,"Madigan Line, four days"],[x.rust,x.warm,"Why offset beats width"]].map(([e,o,t])=>R("div",{style:{display:"flex",gap:6,alignItems:"center"},children:[m("span",{style:{width:24,height:18,borderRadius:3,flex:"none",...je(e,o,150)}}),R("div",{style:{display:"flex",flexDirection:"column",gap:1,minWidth:0},children:[m("b",{style:{fontSize:"4.31cqw",color:x.text},children:t}),m("span",{style:{fontSize:"3.65cqw",color:x.muted},children:"4 Sep \xB7 Shed Notes"})]})]},t))})}),docmasthead:R("div",{style:{...Y,background:x.card,padding:"12px 14px",display:"flex",flexDirection:"column",gap:5,justifyContent:"center"},children:[m("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.16em",fontWeight:700,color:x.muted},children:"POLICY"}),m("span",{style:{fontSize:"6.49cqw",fontWeight:700,color:x.text,lineHeight:1.1},children:"Returns & refunds"}),m("span",{style:{fontSize:"3.65cqw",color:x.muted},children:"Version 3 \xB7 Updated 4 Sep 2026"}),m("span",{style:{height:2,width:26,background:x.rust,borderRadius:1}})]}),docbody:m("div",{style:{...Y,background:x.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])=>R("div",{style:{display:"flex",gap:5},children:[m("b",{style:{fontSize:"3.98cqw",color:x.rust,flex:"none"},children:e}),m(ho,{children:o})]},e))}),docmetacards:m(De,{title:"At a glance",children:m("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])=>R("div",{style:{border:`1px solid ${x.rule}`,borderRadius:4,padding:"5px 6px",display:"flex",flexDirection:"column",gap:1},children:[m("b",{style:{fontSize:"5.31cqw",color:x.text,lineHeight:1},children:e}),m("span",{style:{fontSize:"3.32cqw",letterSpacing:"0.08em",textTransform:"uppercase",color:x.muted},children:o})]},o))})}),doctabs:R("div",{style:{...Y,background:x.card,display:"flex",flexDirection:"column",justifyContent:"center",gap:0,padding:"0 11px"},children:[m("div",{style:{display:"flex",gap:0},children:["Returns","Warranty","Shipping"].map((e,o)=>m("span",{style:{fontSize:"3.98cqw",fontWeight:o===0?700:500,padding:"5px 8px",color:o===0?x.text:x.muted,background:o===0?x.paper:"transparent",borderRadius:"4px 4px 0 0",border:`1px solid ${o===0?x.rule:"transparent"}`,borderBottom:"none"},children:e},e))}),m("span",{style:{height:1,background:x.rule}}),R("div",{style:{paddingTop:6,display:"flex",flexDirection:"column",gap:2},children:[m(ho,{children:"Unfitted wheels come back within 30 days, no questions."}),m(ho,{w:"58%",children:"Freight on a change of mind is yours."})]})]}),paragraphs:R("div",{style:{...Y,background:x.card,padding:"11px 14px",display:"flex",gap:10,alignItems:"center"},children:[m("span",{style:{flex:1,fontSize:"5.86cqw",lineHeight:1.2,fontWeight:700,color:x.text},children:"The right wheel is the boring one."}),R("div",{style:{flex:1,display:"flex",flexDirection:"column"},children:[m(ho,{children:"Forged, correctly offset, rated for what you actually"}),m(ho,{children:"carry. Everything else is a photograph."})]})]}),keyfeatures:m(De,{title:"Key features",children:m("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=>R("div",{style:{display:"flex",gap:6,alignItems:"center"},children:[m("span",{style:{fontSize:"4.64cqw",color:x.rust,fontWeight:700,lineHeight:1},children:"\u2713"}),m("span",{style:{fontSize:"4.31cqw",color:x.text},children:e})]},e))})}),statsparagraph:R("div",{style:{...Y,background:x.paper,padding:"10px 12px",display:"flex",gap:10,alignItems:"center"},children:[R("div",{style:{flex:"none",display:"flex",flexDirection:"column",gap:5},children:[m(Td,{n:"27k",label:"Rigs"}),m(Td,{n:"4.9",label:"Rating"})]}),R("div",{style:{flex:1,display:"flex",flexDirection:"column"},children:[m(ho,{children:"Twelve years of fitting the same three questions, and the"}),m(ho,{children:"answer has not moved: load rating, offset, then looks."})]})]}),chart:R(De,{title:"Load vs weight",children:[m("div",{style:{flex:1,display:"flex",alignItems:"flex-end",gap:5,paddingBottom:2},children:[38,62,84,71,96].map((e,o)=>m("span",{style:{flex:1,height:`${e}%`,borderRadius:"2px 2px 0 0",background:o===4?x.rust:x.mark1}},o))}),m("span",{style:{height:1,background:x.rule,marginTop:-4}})]}),mockup:m("div",{style:{...Y,overflow:"hidden",display:"flex",alignItems:"center",justifyContent:"center",...je(x.inkSoft,x.ink)},children:R("div",{style:{width:"72%",height:"74%",borderRadius:4,overflow:"hidden",background:x.card,boxShadow:`0 6px 14px ${x.scrim}`},children:[m("div",{style:{height:9,background:x.paper,display:"flex",alignItems:"center",gap:2,padding:"0 4px"},children:[0,1,2].map(e=>m("span",{style:{width:2.5,height:2.5,borderRadius:"50%",background:x.mark1}},e))}),R("div",{style:{padding:5,display:"flex",flexDirection:"column",gap:3},children:[m("span",{style:{height:4,width:"56%",borderRadius:1,background:x.mark2}}),m("span",{style:{height:14,borderRadius:2,...je(x.paper,x.paper2,150)}}),m("span",{style:{height:3,width:"38%",borderRadius:1,background:x.rust}})]})]})}),manifesto:m("div",{style:{...Y,overflow:"hidden",display:"flex",alignItems:"center",padding:"0 16px",...je(x.ink,x.ink2)},children:R("span",{style:{fontSize:"6.63cqw",lineHeight:1.2,fontWeight:700,color:x.onInk},children:["We build for the ",m("span",{style:{color:x.warm},children:"last"})," ten percent of the track."]})}),timeline:m(De,{title:"Our story",children:m("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)=>R("div",{style:{display:"flex",gap:7,alignItems:"flex-start",position:"relative"},children:[t<2&&m("span",{style:{position:"absolute",left:3,top:8,bottom:-8,width:1,background:x.rule}}),m("span",{style:{width:7,height:7,borderRadius:"50%",flex:"none",marginTop:1,background:x.rust,zIndex:1}}),R("div",{style:{display:"flex",flexDirection:"column",gap:0,minWidth:0},children:[m("b",{style:{fontSize:"4.64cqw",color:x.text},children:e}),m(ho,{children:o})]})]},e))})}),timelinetrack:R("div",{style:{...Y,padding:"0 12px",display:"flex",flexDirection:"column",gap:10,justifyContent:"center",...je(x.ink,x.inkSoft)},children:[m("span",{style:{fontSize:"3.98cqw",fontWeight:700,letterSpacing:"0.14em",textTransform:"uppercase",color:x.warm},children:"Milestones"}),R("div",{style:{position:"relative",display:"flex",justifyContent:"space-between",paddingTop:7},children:[m("span",{style:{position:"absolute",left:0,right:0,top:3,height:1,background:x.mark2,opacity:.55}}),["1998","2009","2016","2024"].map((e,o)=>R("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:3,position:"relative"},children:[m("span",{style:{position:"absolute",top:-7,width:6,height:6,borderRadius:"50%",background:o===3?x.warm:x.mark1}}),m("span",{style:{fontSize:"4.31cqw",fontWeight:700,color:o===3?x.warm:x.onInk,opacity:o===3?1:.75},children:e})]},e))]})]}),footprint:R("div",{style:{...Y,overflow:"hidden",...je(x.paper,x.paper2,150)},children:[m("span",{style:{position:"absolute",left:"8%",top:"18%",width:"62%",height:"64%",borderRadius:"48% 52% 40% 60% / 55% 45% 55% 45%",background:x.mark1,opacity:.75}}),m("span",{style:{position:"absolute",left:"52%",top:"52%",width:"34%",height:"34%",borderRadius:"58% 42% 55% 45% / 45% 58% 42% 55%",background:x.mark2,opacity:.55}}),[["26%","38%"],["44%","58%"],["62%","34%"]].map(([e,o])=>m("span",{style:{position:"absolute",left:e,top:o,width:7,height:7,borderRadius:"50% 50% 50% 0",transform:"rotate(-45deg)",background:x.rust}},e)),m("span",{style:{position:"absolute",left:11,bottom:9,fontSize:"4.64cqw",fontWeight:700,color:x.text},children:"3 fitting bays"})]}),banner:R("div",{style:{...Y,display:"flex",alignItems:"center",justifyContent:"space-between",padding:"0 13px",gap:8,background:x.rust},children:[R("div",{style:{display:"flex",flexDirection:"column",gap:2},children:[m("b",{style:{fontSize:"6.02cqw",color:x.onInk},children:"End of season \xB7 20% off"}),m("span",{style:{fontSize:"3.98cqw",color:x.onInk,opacity:.8},children:"Fitted free, this month only."})]}),m("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.12em",fontWeight:700,padding:"5px 9px",borderRadius:2,background:x.onInk,color:x.text,flex:"none"},children:"SHOP"})]}),titlewithbuttons:R("div",{style:{...Y,background:x.paper,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:7,padding:"0 14px",textAlign:"center"},children:[m("span",{style:{fontSize:"6.49cqw",lineHeight:1.15,fontWeight:700,color:x.text},children:"Not sure what fits?"}),R("div",{style:{display:"flex",gap:5},children:[m("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.12em",fontWeight:700,padding:"5px 9px",borderRadius:2,background:x.text,color:x.onInk},children:"FIND MY FIT"}),m("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.12em",fontWeight:700,padding:"5px 9px",borderRadius:2,border:`1px solid ${x.text}`,color:x.text},children:"CALL US"})]})]}),ticker:m("div",{style:{...Y,overflow:"hidden",background:x.ink,display:"flex",alignItems:"center"},children:m("span",{style:{whiteSpace:"nowrap",fontSize:"6.29cqw",fontWeight:800,letterSpacing:"0.06em",color:x.warm,marginLeft:-14},children:"FREE FITTING \xB7 48HR DISPATCH \xB7 FREE FITTING \xB7 48HR DISPATCH"})}),countdown:R("div",{style:{...Y,padding:"10px 12px",display:"flex",flexDirection:"column",alignItems:"center",gap:6,justifyContent:"center",...je(x.ink,x.ink2)},children:[m("span",{style:{fontSize:"3.65cqw",fontWeight:700,letterSpacing:"0.16em",textTransform:"uppercase",color:x.muted},children:"Back online in"}),m("div",{style:{display:"flex",alignItems:"flex-start",gap:5},children:[["23","Hours"],["59","Minutes"],["48","Seconds"]].map(([e,o],t)=>R("div",{style:{display:"flex",alignItems:"flex-start",gap:5},children:[t>0&&m("b",{style:{fontSize:"9.5cqw",lineHeight:1,color:x.warm},children:":"}),R("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:2},children:[m("b",{style:{fontSize:"11.5cqw",lineHeight:1,color:x.onInk,fontVariantNumeric:"tabular-nums"},children:e}),m("span",{style:{fontSize:"3.2cqw",letterSpacing:"0.1em",textTransform:"uppercase",opacity:.62,color:x.onInk},children:o})]})]},o))})]}),breadcrumb:m("div",{style:{...Y,background:x.card,display:"flex",alignItems:"center",padding:"0 13px"},children:R("span",{style:{fontSize:"4.64cqw",color:x.muted},children:["Home ",m("span",{style:{opacity:.5},children:"/"})," Wheels ",m("span",{style:{opacity:.5},children:"/"})," ",m("span",{style:{color:x.text,fontWeight:700},children:"20 inch"})]})}),categorybar:R("div",{style:{...Y,background:x.card,display:"flex",flexDirection:"column",justifyContent:"center",gap:7,padding:"0 11px"},children:[m("div",{style:{display:"flex",gap:5},children:["All","Wheels","Tyres","Lift"].map((e,o)=>m("span",{style:{fontSize:"3.98cqw",fontWeight:o===0?700:500,padding:"4px 7px",borderRadius:99,background:o===0?x.text:x.paper,color:o===0?x.onInk:x.muted},children:e},e))}),m("span",{style:{height:1,background:x.rule}})]}),intro:R("div",{style:{...Y,overflow:"hidden",background:x.card},children:[m("div",{style:{position:"absolute",inset:0,...je(x.ink,x.inkSoft2)}}),m(Wr,{size:64,style:{right:8,top:6}}),R("div",{style:{position:"absolute",left:16,right:16,bottom:8,top:"46%",background:x.paper,borderRadius:6,padding:"8px 11px",display:"flex",flexDirection:"column",gap:2,boxShadow:`0 -4px 10px ${x.scrim}`},children:[m("span",{style:{fontSize:"5.69cqw",fontWeight:700,color:x.text},children:"Since 1998"}),m(ho,{children:"One shed, one lathe, one idea."}),m(ho,{w:"66%",children:"It turned out to be right."})]})]}),gallerygrid:m(De,{title:"Photo gallery",children:m("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(3,1fr)",gridTemplateRows:"repeat(2,1fr)",gap:4,minHeight:0},children:[[x.rust,x.warm],[x.inkSoft,x.ink],[x.paper2,x.mark2],[x.ink,x.inkSoft2],[x.warm,x.paper2],[x.mark2,x.inkSoft]].map(([e,o],t)=>m("div",{style:{borderRadius:3,...je(e,o,140+t*22)}},t))})}),gallery:R(De,{title:"Gallery",children:[m("div",{style:{display:"flex",gap:8,alignItems:"center",marginTop:-2},children:["On the truck","Studio","Close-ups"].map((e,o)=>m("span",{style:{fontSize:"3.98cqw",fontWeight:o===0?700:500,color:o===0?x.text:x.muted,borderBottom:`1.5px solid ${o===0?x.rust:"transparent"}`,paddingBottom:2},children:e},e))}),m("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(3,1fr)",gap:4,minHeight:0},children:[[x.rust,x.warm],[x.ink,x.inkSoft],[x.paper2,x.mark2]].map(([e,o],t)=>m("div",{style:{borderRadius:3,...je(e,o,150+t*20)}},t))})]}),ordersummary:R(De,{title:"Order summary",children:[R("div",{style:{display:"flex",gap:6,alignItems:"center",paddingBottom:4},children:[m("span",{style:{width:26,height:26,borderRadius:4,position:"relative",overflow:"hidden",flex:"none",...je(x.paper,x.paper2,150)},children:m(Wr,{size:18,style:{left:"50%",top:"50%",transform:"translate(-50%,-50%)"}})}),R("div",{style:{display:"flex",flexDirection:"column",gap:1,minWidth:0},children:[m("b",{style:{fontSize:"4.31cqw",color:x.text},children:"Ridge Grappler"}),m("span",{style:{fontSize:"3.65cqw",color:x.muted},children:"20\xD79 +12 \xB7 qty 4"})]})]}),R("div",{style:{flex:1,minHeight:0,display:"flex",flexDirection:"column",justifyContent:"center"},children:[m(Hr,{k:"Subtotal",v:"$1,956"}),m(Hr,{k:"Fitting",v:"Free"}),R("div",{style:{display:"flex",justifyContent:"space-between",paddingTop:5,fontSize:"4.64cqw"},children:[m("b",{style:{color:x.text},children:"Total"}),m("b",{style:{color:x.text,fontSize:"6.02cqw"},children:"$1,956"})]})]})]}),deliveryoptions:m(De,{title:"Delivery",children:m("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])=>R("div",{style:{display:"flex",alignItems:"center",gap:6,padding:"5px 6px",borderRadius:4,border:`1px solid ${r?x.rust:x.rule}`,background:r?x.paper:x.card},children:[m("span",{style:{width:7,height:7,borderRadius:"50%",flex:"none",border:`1.5px solid ${r?x.rust:x.mark1}`,background:r?x.rust:"transparent"}}),m("span",{style:{flex:1,fontSize:"4.31cqw",fontWeight:600,color:x.text},children:e}),m("span",{style:{fontSize:"3.98cqw",color:x.muted},children:o}),m("b",{style:{fontSize:"4.31cqw",color:x.text},children:t})]},e))})}),paymentbadges:R("div",{style:{...Y,background:x.paper,display:"flex",flexDirection:"column",gap:8,justifyContent:"center",padding:"0 12px"},children:[m(Fm,{children:"Ways to pay"}),m("div",{style:{display:"flex",gap:5},children:[["VISA",x.ink],["MC",x.rust],["AMEX",x.inkSoft],["PayPal",x.ink2]].map(([e,o])=>m("span",{style:{flex:1,textAlign:"center",fontSize:"3.65cqw",fontWeight:800,letterSpacing:"0.06em",color:x.onInk,borderRadius:3,padding:"6px 0",background:o},children:e},e))})]}),stats:R("div",{style:{...Y,padding:"10px 12px",display:"flex",flexDirection:"column",gap:9,justifyContent:"center",...je(x.ink,x.ink2)},children:[m("span",{style:{fontSize:"3.98cqw",fontWeight:700,letterSpacing:"0.14em",textTransform:"uppercase",color:x.warm},children:"By the numbers"}),R("div",{style:{display:"flex",gap:8},children:[m(Td,{n:"27k",label:"Rigs fitted",tone:x.onInk}),m(Td,{n:"12",label:"Years",tone:x.onInk}),m(Td,{n:"4.9",label:"Avg rating",tone:x.warm})]})]}),testimonials:R("div",{style:{...Y,overflow:"hidden",background:x.paper,padding:"10px 11px",display:"flex",flexDirection:"column",gap:6,justifyContent:"center"},children:[m("span",{style:{position:"absolute",right:10,top:2,fontSize:"22.4cqw",lineHeight:1,fontWeight:800,color:x.rust,opacity:.16},children:"\u201D"}),m(Ow,{filled:5,size:7}),m("span",{style:{position:"relative",fontSize:"5.31cqw",lineHeight:1.35,color:x.text,fontWeight:600},children:"\u201CTook them out to the Simpson and back. Not one chip.\u201D"}),R("div",{style:{display:"flex",alignItems:"center",gap:5},children:[m(uM,{}),m("span",{style:{fontSize:"3.98cqw",color:x.muted},children:"Dave M. \xB7 Hilux N80"})]})]}),reviews:R(De,{title:"Reviews",children:[m("div",{style:{display:"flex",gap:4,height:22},children:[[x.inkSoft,x.inkSoft2],[x.rust,x.warm],[x.ink,x.inkSoft],[x.mark2,x.mark1]].map(([e,o],t)=>m("div",{style:{flex:1,borderRadius:3,...je(e,o,140+t*15)}},t))}),m("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])=>R("div",{style:{display:"flex",gap:5,alignItems:"flex-start"},children:[m(uM,{size:12}),R("div",{style:{display:"flex",flexDirection:"column",gap:1,minWidth:0},children:[R("div",{style:{display:"flex",gap:4,alignItems:"center"},children:[m("b",{style:{fontSize:"3.98cqw",color:x.text},children:e}),m(Ow,{filled:o})]}),m(ho,{children:t})]})]},e))})]}),logos:R("div",{style:{...Y,display:"flex",flexDirection:"column",gap:9,justifyContent:"center",padding:"0 12px",...je(x.ink,x.inkSoft)},children:[m("span",{style:{fontSize:"3.98cqw",fontWeight:700,letterSpacing:"0.14em",textTransform:"uppercase",color:x.warm},children:"As fitted by"}),m("div",{style:{display:"grid",gridTemplateColumns:"repeat(4,1fr)",gap:8},children:["ARB","TJM","IRONMAN","OPPOSITE"].map(e=>m("span",{style:{textAlign:"center",fontSize:"4.31cqw",fontWeight:800,letterSpacing:"0.08em",color:x.onInk,opacity:.82},children:e},e))})]}),prose:R("div",{style:{...Y,background:x.paper,padding:"11px 14px",display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[m("span",{style:{fontSize:"5.86cqw",fontWeight:700,color:x.text},children:"Why offset matters"}),R("div",{style:{display:"flex",gap:6},children:[m("span",{style:{fontSize:"15.3cqw",lineHeight:.78,fontWeight:800,color:x.rust,marginTop:1},children:"T"}),R("div",{style:{display:"flex",flexDirection:"column"},children:[m(ho,{children:"he number on the back of your wheel decides whether the"}),m(ho,{w:"76%",children:"tyre sits under the guard or an inch outside it."})]})]})]}),cards:m(De,{title:"What you get",children:m("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])=>R("div",{style:{border:`1px solid ${x.rule}`,borderRadius:4,padding:6,display:"flex",flexDirection:"column",gap:2},children:[m("span",{style:{width:11,height:11,borderRadius:3,background:x.rust,opacity:.9}}),m("b",{style:{fontSize:"3.98cqw",color:x.text},children:e}),m(ho,{children:o})]},e))})}),faq:m(De,{title:"Questions",children:m("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])=>R("div",{style:{borderBottom:`1px solid ${x.rule}`,padding:"4px 2px"},children:[R("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",gap:6},children:[m("b",{style:{fontSize:"4.31cqw",color:x.text},children:e}),m("span",{style:{fontSize:"4.64cqw",color:x.muted,lineHeight:1},children:o?"\u2212":"+"})]}),o&&m(ho,{w:"90%",children:"Use the fitment finder \u2014 it reads your build, not just the model."})]},e))})}),hero:R("div",{style:{...Y,overflow:"hidden",...je(x.ink,x.ink2)},children:[m("div",{style:{...Y,background:`linear-gradient(90deg,${x.scrim},transparent 70%)`}}),m("div",{style:{position:"relative",height:"100%",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"flex-start",padding:"12px 14px",gap:5},children:m(pM,{over:"NEW \xB7 SUMMER",overTone:x.warm,head:"Built for the worst road you own",cta:"SHOP ALL",ctaBg:x.warm,ctaFg:x.ink,tone:x.onInk})}),m(Wr,{size:104,style:{right:-24,bottom:-30}})]}),herosingle:R("div",{style:{...Y,display:"flex",background:x.paper,overflow:"hidden"},children:[m("div",{style:{flex:1,padding:12,display:"flex",flexDirection:"column",gap:5,justifyContent:"center"},children:m(pM,{over:"ALL-TERRAIN",overTone:x.rust,head:"Grip that does not ask",headSize:12,cta:"EXPLORE",ctaBg:x.text,ctaFg:x.onInk,tone:x.text})}),m("div",{style:{flex:1,position:"relative",...je(x.inkSoft,x.inkSoft2)},children:m(Wr,{size:74,style:{right:-14,top:16}})})]}),productgrid:m(De,{title:"Best sellers",children:R("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(3,1fr)",gap:5,minHeight:0},children:[m(Ew,{name:"Ridge 19",price:"$365"}),m(Ew,{name:"Ridge 29",price:"$410"}),m(Ew,{name:"Ridge 39",price:"$455"})]})}),collections:m(De,{title:"Shop by category",children:m("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(3,1fr)",gap:5,minHeight:0},children:[["Wheels",x.inkSoft,x.inkSoft2],["Tyres",x.rust,x.warm],["Lift kits",x.ink,x.inkSoft]].map(([e,o,t])=>m("div",{style:{borderRadius:4,display:"flex",alignItems:"flex-end",padding:5,color:x.onInk,...je(o,t)},children:m("span",{style:{fontSize:"3.98cqw",fontWeight:700,letterSpacing:"0.04em"},children:e})},e))})}),producthero:R("div",{style:{...Y,display:"flex",background:x.card,overflow:"hidden"},children:[m("div",{style:{flex:1.1,position:"relative",...je(x.paper,x.paper2,150)},children:m(Wr,{size:78,style:{left:"50%",top:"50%",transform:"translate(-50%,-50%)"}})}),R("div",{style:{flex:1,padding:"10px 10px 10px 8px",display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[m("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.16em",fontWeight:700,color:x.rust},children:"NITTO"}),m("b",{style:{fontSize:"6.29cqw",color:x.text},children:"Ridge Grappler"}),m("span",{style:{fontSize:"6.63cqw",fontWeight:700,color:x.text},children:"$489"}),m("span",{style:{alignSelf:"flex-start",fontSize:"3.65cqw",letterSpacing:"0.12em",fontWeight:700,padding:"4px 8px",borderRadius:2,background:x.text,color:x.onInk},children:"ADD TO CART"})]})]}),spectable:m(De,{title:"Specifications",children:R("div",{style:{flex:1,display:"flex",flexDirection:"column",justifyContent:"center"},children:[m(Hr,{k:"Diameter",v:'20"'}),m(Hr,{k:"Width",v:"9.0J"}),m(Hr,{k:"Offset",v:"+12"}),m(Hr,{k:"Load",v:"1250 kg"})]})}),fitmenttable:m(De,{title:"Will it fit?",children:R("div",{style:{flex:1,display:"flex",flexDirection:"column",justifyContent:"center"},children:[m(Hr,{k:"Hilux N80",v:"20\xD79 +12",ok:!0}),m(Hr,{k:"Ranger PX3",v:"20\xD79 +12",ok:!0}),m(Hr,{k:"LC79",v:"17\xD78 \u221210",ok:!0})]})}),processsteps:R("div",{style:{...Y,background:x.paper,padding:10,display:"flex",flexDirection:"column",gap:7,justifyContent:"center"},children:[m(Fm,{children:"How it works"}),m("div",{style:{display:"flex",gap:6},children:["Pick your rig","Match the fit","We fit it"].map((e,o)=>R("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:2},children:[m("span",{style:{width:11,height:11,borderRadius:"50%",background:x.text,color:x.onInk,fontSize:"3.98cqw",display:"flex",alignItems:"center",justifyContent:"center",fontWeight:700},children:o+1}),m("span",{style:{fontSize:"3.98cqw",color:x.text,fontWeight:600},children:e})]},e))})]}),detailrows:m("div",{style:{...Y,background:x.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=m("div",{style:{flex:1,...je(t?x.rust:x.inkSoft,t?x.warm:x.inkSoft2)}},"art"),a=R("div",{style:{flex:1.1,padding:8,display:"flex",flexDirection:"column",gap:2,justifyContent:"center"},children:[m("b",{style:{fontSize:"4.64cqw",color:x.text},children:e}),m("span",{style:{fontSize:"3.98cqw",color:x.muted,lineHeight:1.3},children:o})]},"tx");return m("div",{style:{flex:1,display:"flex",minHeight:0},children:t?[a,r]:[r,a]},e)})}),specstrip:m("div",{style:{...Y,background:x.ink,color:x.onInk,display:"flex",alignItems:"center",justifyContent:"space-around",padding:"0 8px"},children:[["5 yr","Warranty"],["Free","Fitting"],["48 hr","Dispatch"]].map(([e,o])=>R("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:1},children:[m("b",{style:{fontSize:"5.69cqw",letterSpacing:"0.02em"},children:e}),m("span",{style:{fontSize:"3.65cqw",color:x.mark2,letterSpacing:"0.1em",textTransform:"uppercase"},children:o})]},o))})},hM={subscribe:R("div",{style:{...Y,padding:13,display:"flex",flexDirection:"column"},children:[R("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:8},children:[R("div",{style:{display:"flex",alignItems:"center",gap:6},children:[m(j,{w:8,h:8,r:2,tone:"accent"}),m(j,{w:38,h:7,r:3,tone:"dark"}),m(j,{w:16,h:7,r:3,tone:"accent"})]}),m(j,{w:38,h:4,r:2,tone:"soft"})]}),m("div",{style:{height:1,background:bo.line,marginBottom:10}}),R("div",{style:{flex:1,display:"flex",gap:10,border:`1px solid ${bo.line}`,borderRadius:7,padding:10},children:[R("div",{style:{flex:1.1,display:"flex",flexDirection:"column",justifyContent:"center",gap:5},children:[m(j,{w:"46%",h:3,r:2,tone:"accent"}),m(j,{w:"84%",h:8,r:4,tone:"dark"}),m(j,{w:"56%",h:8,r:4,tone:"accent"}),m(j,{w:"96%",h:3,r:2,tone:"soft",style:{marginTop:2}}),R("div",{style:{display:"flex",gap:5,marginTop:4},children:[m("div",{style:{flex:1,height:13,borderRadius:5,border:`1px solid ${bo.line}`,background:bo.block}}),m(j,{w:34,h:13,r:5,tone:"accent"})]})]}),R("div",{style:{flex:1,background:bo.block,borderRadius:6,padding:8,display:"flex",flexDirection:"column",gap:6},children:[m(j,{w:"52%",h:4,r:2,tone:"accent"}),Array.from({length:3}).map((e,o)=>R("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",gap:6,borderTop:o?`1px solid ${bo.line}`:"none",paddingTop:o?4:0},children:[m(j,{w:34,h:4,r:2,tone:"dark"}),m(j,{w:16,h:3,r:2,tone:"soft"})]},o))]})]})]}),split:R("div",{style:{...Y,display:"flex"},children:[m("div",{style:{width:"44%",background:Pw}}),R("div",{style:{flex:1,padding:15,display:"flex",flexDirection:"column",justifyContent:"center",gap:7},children:[m(j,{w:"44%",h:5,r:3,tone:"accent"}),m(j,{w:"88%",h:8,r:4,tone:"dark"}),m(j,{w:"70%",h:8,r:4,tone:"dark"}),m(j,{w:"94%",h:5,r:2,tone:"soft",style:{marginTop:2}}),m(j,{w:"80%",h:5,r:2,tone:"soft"}),m(j,{w:"40%",h:13,r:6,tone:"accent",style:{marginTop:5}})]})]}),sectionheader:R(xM,{children:[m(j,{w:"18%",h:6,r:3,tone:"accent",style:{position:"absolute",top:15,right:16}}),R("div",{style:{...Y,padding:16,display:"flex",flexDirection:"column",justifyContent:"center",gap:10},children:[R("div",{style:{display:"flex",alignItems:"center",gap:9},children:[m(j,{w:16,h:16,r:4,tone:"accent"}),m(j,{w:"20%",h:9,r:4,tone:"dark"})]}),m(j,{w:"62%",h:10,r:5,tone:"dark"}),m(j,{w:"42%",h:6,r:3,tone:"soft"})]})]}),header:m("div",{style:{...Y,padding:14,display:"flex",flexDirection:"column",justifyContent:"center"},children:R("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[m(j,{w:"22%",h:12,r:4,tone:"dark"}),R("div",{style:{display:"flex",gap:9,alignItems:"center"},children:[m(j,{w:26,h:6,r:3,tone:"soft"}),m(j,{w:26,h:6,r:3,tone:"soft"}),m(j,{w:26,h:6,r:3,tone:"soft"}),m(j,{w:18,h:14,r:5,tone:"accent"})]})]})}),footer:R("div",{style:{...Y,padding:15,display:"flex",flexDirection:"column",justifyContent:"center",gap:12},children:[R("div",{style:{display:"flex",gap:14},children:[R("div",{style:{flex:1.4,display:"flex",flexDirection:"column",gap:6},children:[m(j,{w:"60%",h:9,r:4,tone:"dark"}),m(j,{w:"90%",h:5,r:2,tone:"soft"}),m(j,{w:"70%",h:5,r:2,tone:"soft"})]}),[0,1].map(e=>R("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:6},children:[m(j,{w:"50%",h:6,r:3,tone:"dark"}),m(j,{w:"80%",h:5,r:2,tone:"soft"}),m(j,{w:"66%",h:5,r:2,tone:"soft"})]},e))]}),m("div",{style:{height:1,background:bo.line}}),R("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[m(j,{w:"30%",h:5,r:2,tone:"soft"}),m(j,{w:"16%",h:5,r:2,tone:"soft"})]})]}),grid:m("div",{style:{...Y,padding:14,display:"grid",gridTemplateColumns:"1fr 1fr",gridTemplateRows:"1fr 1fr",gap:9},children:Array.from({length:4}).map((e,o)=>m("div",{style:{borderRadius:6,background:bo.block}},o))}),blanksection:m("div",{style:{...Y,padding:14,display:"flex"},children:R("div",{style:{flex:1,border:`1px dashed ${bo.line}`,borderRadius:7,display:"flex",alignItems:"center",justifyContent:"center",position:"relative"},children:[m(j,{w:14,h:2,r:1,tone:"tint"}),m(j,{w:2,h:14,r:1,tone:"tint",style:{position:"absolute"}})]})}),spacer:R("div",{style:{...Y,padding:14,display:"flex",flexDirection:"column",justifyContent:"space-between"},children:[m(j,{w:"100%",h:6,r:3,tone:"soft"}),m(j,{w:16,h:22,r:3,tone:"block",style:{alignSelf:"center"}}),m(j,{w:"100%",h:6,r:3,tone:"soft"})]}),divider:m("div",{style:{...Y,padding:14,display:"flex",alignItems:"center"},children:m(j,{w:"100%",h:3,r:2,tone:"dark"})}),customhtml:R("div",{style:{...Y,display:"flex",alignItems:"center",justifyContent:"center",gap:8,background:Pw},children:[m(j,{w:5,h:16,r:2,tone:"dark",style:{transform:"skewX(-14deg)"}}),m(j,{w:16,h:10,r:3,tone:"accent"}),m(j,{w:5,h:16,r:2,tone:"dark",style:{transform:"skewX(14deg)"}})]}),heading:m("div",{style:{...Y,padding:14,display:"flex",alignItems:"center"},children:m(j,{w:"64%",h:13,r:4,tone:"dark"})}),text:R("div",{style:{...Y,padding:16,display:"flex",flexDirection:"column",justifyContent:"center",gap:7},children:[m(j,{w:"100%",h:6,r:3,tone:"soft"}),m(j,{w:"96%",h:6,r:3,tone:"soft"}),m(j,{w:"100%",h:6,r:3,tone:"soft"}),m(j,{w:"58%",h:6,r:3,tone:"soft"})]}),image:m("div",{style:{position:"absolute",inset:14,borderRadius:7,background:Pw}}),button:m("div",{style:{...Y,display:"flex",alignItems:"center",justifyContent:"center"},children:m(j,{w:"34%",h:16,r:8,tone:"accent"})}),menu:R("div",{style:{...Y,padding:"14px 22%",display:"flex",flexDirection:"column",justifyContent:"center",gap:7},children:[m(j,{w:"48%",h:7,r:3,tone:"dark"}),m(j,{w:"82%",h:5,r:2,tone:"soft"}),m(j,{w:"66%",h:5,r:2,tone:"soft"}),m(j,{w:"74%",h:5,r:2,tone:"soft"}),m(j,{w:"58%",h:5,r:2,tone:"soft"})]}),emailform:R("div",{style:{...Y,padding:16,display:"flex",flexDirection:"column",justifyContent:"center",gap:9},children:[m(j,{w:"56%",h:8,r:3,tone:"dark"}),R("div",{style:{display:"flex",gap:6},children:[m("div",{style:{flex:1,height:16,borderRadius:5,border:`1px solid ${bo.line}`}}),m(j,{w:"30%",h:16,r:5,tone:"accent"})]})]}),sociallogos:m("div",{style:{...Y,display:"flex",alignItems:"center",justifyContent:"center",gap:9},children:[0,1,2,3].map(e=>m(j,{w:16,h:16,r:8,tone:"dark"},e))}),paymentlogos:R("div",{style:{...Y,display:"flex",alignItems:"center",justifyContent:"center",gap:7},children:[m(j,{w:22,h:6,r:2,tone:"soft"}),[0,1,2,3].map(e=>m(j,{w:20,h:13,r:3,tone:"dark"},e))]}),search:m("div",{style:{...Y,padding:"0 18%",display:"flex",alignItems:"center"},children:R("div",{style:{flex:1,height:22,borderRadius:11,border:`1px solid ${bo.line}`,display:"flex",alignItems:"center",gap:7,padding:"0 9px"},children:[m("div",{style:{width:9,height:9,borderRadius:5,border:`2px solid ${bo.dark}`}}),m(j,{w:"46%",h:5,r:2,tone:"soft"})]})}),cart:R("div",{style:{...Y,display:"flex",alignItems:"center",justifyContent:"center",gap:7},children:[m("div",{style:{width:22,height:18,borderRadius:"3px 3px 6px 6px",border:`2px solid ${bo.dark}`}}),m("div",{style:{padding:"2px 6px",borderRadius:6,border:`1.5px solid ${bo.dark}`},children:m(j,{w:7,h:7,r:2,tone:"dark"})})]}),countryswitch:R("div",{style:{...Y,padding:14,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:5},children:[R("div",{style:{display:"flex",alignItems:"center",gap:6,padding:"4px 8px",border:`1px solid ${bo.line}`},children:[m(j,{w:22,h:6,r:2,tone:"dark"}),m(j,{w:6,h:4,r:1,tone:"soft"})]}),R("div",{style:{width:"46%",display:"flex",flexDirection:"column",gap:4,padding:6,border:`1px solid ${bo.line}`},children:[m(j,{w:"80%",h:4,r:2,tone:"accent"}),m(j,{w:"64%",h:4,r:2,tone:"soft"}),m(j,{w:"72%",h:4,r:2,tone:"soft"})]})]}),legalline:R("div",{style:{...Y,padding:16,display:"flex",flexDirection:"column",justifyContent:"center",gap:9},children:[m("div",{style:{height:1,background:bo.line}}),R("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[m(j,{w:"38%",h:5,r:2,tone:"soft"}),R("div",{style:{display:"flex",gap:5},children:[m(j,{w:14,h:5,r:2,tone:"soft"}),m(j,{w:14,h:5,r:2,tone:"soft"}),m(j,{w:14,h:5,r:2,tone:"soft"})]})]})]}),fallback:m("div",{style:{position:"absolute",inset:14,borderRadius:8,background:bo.block}})};function IM({type:e}){let o=Lle[e]??"",t=Fle[o]??hM[o]??hM.fallback;return m("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 ah}from"efficient-easel/screen/components/ScreenDocumentContext";import{jsx as dl,jsxs as gM}from"react/jsx-runtime";import Ble from"efficient-easel/screen/components/SidePanelHead";import{StylesIcon as Dle}from"efficient-easel/rail";import{Tooltip as Nle}from"efficient-shell/ui";import{HintsToggle as Mle,hintsFoldClass as Hle}from"efficient-easel/panel";import{useHints as Wle}from"efficient-easel/screen/lib/hints";function bM({tokenRef:e,siteId:o,onClose:t,onNotify:r,tab:a,onTabChange:n,revealPageGroup:s,onPageGroupRevealed:l}){let d=Ws(),{shown:c,setShown:f}=Wle();return gM("div",{className:`sf-styles ${Hle(c)}`.trim(),children:[dl(Ble,{icon:dl(Dle,{}),title:i("Styles"),context:dl(Nle,{content:i("{name} \u2014 renamed in the Console: {place}.",{name:d,place:i("Storefront \u25B8 Sites \u25B8 Settings")}),className:"sf-name-tip",children:dl("span",{className:"sf-name-text",children:d})})}),gM("div",{className:"sf-insp-body es-insp-body sf-scroll",children:[dl(Hp,{tokenRef:e,siteId:o,onNotify:r,tab:a,onTabChange:n,revealPageGroup:s,onPageGroupRevealed:l}),dl(Mle,{shown:c,onChange:f,label:i("Show hints")})]})]})}import{jsx as ko,jsxs as Ln,Fragment as Kle}from"react/jsx-runtime";import{Fragment as LM,useEffect as FM,useRef as Bw}from"react";import{useTreeDrag as BM}from"efficient-easel/drag";import{GlobeIcon as Vle,ImageIcon as qle,LocationIcon as Yle,MapIcon as Xle,TextLinesIcon as Zle,TrashIcon as DM}from"efficient-easel/icons";import{Subtree as NM,TreeRow as Ed,TreeRowAction as MM,TreeSeam as HM}from"efficient-easel/tree";import{useEaselStrings as Jle}from"efficient-easel/strings";import{createPreviewSelectionContext as Ule}from"efficient-easel/draw/client";var{Provider:mGe,useSelection:yM}=Ule("selectedLocationPartId");function SM(e,o,t){return`${e}::${o}::${t}`}function wM(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}import{isSelectionMode as Qle}from"efficient-easel/screen/lib/screen-parts";import{useSyncExternalStore as zle}from"react";var $le={level:"groups"},vM=$le,_w=new Set;function Yt(e){vM=e;for(let o of _w)o()}function Gle(e){return _w.add(e),()=>{_w.delete(e)}}var CM=()=>vM;function kM(){return zle(Gle,CM,CM)}var Pd=e=>String(e?.group??""),Aw=new WeakMap,jle=0;function Bm(e){let o=Aw.get(e);return o||(o=`loc${++jle}`,Aw.set(e,o)),o}var TM=(e,o)=>o||e||"Ungrouped",PM={photo:"",group:"",groupName:"",name:"City name",state:"State",country:"Country",timezone:"GMT \xB7 UTC +0",address:`Address line one
|
|
338
|
-
Address line two`,phone:"+00 000 0000",hours:"Mon\u2013Fri 9:00\u201318:00",lat:0,lng:0,mapsUrl:""};function Rn(e){return Hu(e,Pd,o=>String(o?.groupName??"")).map(o=>({key:o.key,name:o.name,cards:o.items.map(t=>t.item)}))}var Rw=e=>e.flatMap(o=>o.cards),EM=(e,o,t)=>Math.min(Math.max(e,o),t);function Dm(e,o,t){let r=0;for(let a=0;a<e.length;a++)if(Pd(e[a])===o){if(r===t)return a;r++}return-1}function Lw(e,o,t){let r=Rn(e);if(o<0||o>=r.length)return e;let[a]=r.splice(o,1),n=EM(o<t?t-1:t,0,r.length);return r.splice(n,0,a),Rw(r)}function Fw(e,o,t,r,a){let n=Rn(e),s=n.find(u=>u.key===o),l=n.find(u=>u.key===r);if(!s||!l||t<0||t>=s.cards.length)return e;let[d]=s.cards.splice(t,1),c=o===r?d:{...d,group:l.key,groupName:l.name};c!==d&&Aw.set(c,Bm(d));let f=EM(s===l&&t<a?a-1:a,0,l.cards.length);return l.cards.splice(f,0,c),Rw(n)}function OM(e,o){let t=Rn(e),r=t.find(n=>n.key===o),a={...PM,group:o,groupName:r?.name??""};return r?(r.cards.push(a),Rw(t)):[...e,a]}function _M(e){let o=new Set(Rn(e).map(a=>a.key)),t=o.size+1,r=`Group ${t}`;for(;o.has(r);)r=`Group ${++t}`;return{cards:[...e,{...PM,group:r,groupName:""}],key:r}}function AM(e,o){return e.filter(t=>Pd(t)!==o)}function RM(e,o,t){let r=Dm(e,o,t);return r<0?e:e.filter((a,n)=>n!==r)}function bGe(e,o,t){let r=e.flatMap((s,l)=>Pd(s)===o?[l]:[]),a=e.slice();r.forEach((s,l)=>{a[s]=t[l]});let n=t.slice(r.length);return[...a.filter(s=>s!==void 0),...n]}function yGe(e,o,t){return o.flatMap(r=>{let a=e.filter(n=>Pd(n)===r);return a.length?a:t(r)})}var Mm="ContactLocations",Nm=e=>({parentId:`locations-${e}`,slot:"groups"}),Dw=(e,o)=>({parentId:`locations-${e}`,slot:`cities:${o}`});function WM(e,o){let{readOnly:t,selected:r}=o,a=Jle().tree,n=o.data?.content??[],s=Qle(e),l=Bw(null);FM(()=>{let y=r?.type===Mm?String(r.props.id):null;y&&y!==l.current&&Yt({level:"groups"}),l.current=y},[r?.props.id]);let{selectedLocationPartId:d,setSelectedLocationPartId:c,setSelectHandler:f}=yM(),u=kM(),p=(y,b)=>{let P=n[y];P&&o.replace(y,{type:P.type,props:{...P.props,locations:b}})},h=y=>{let b=n[y]?.props?.locations;return Array.isArray(b)?b:[]},I=BM({keyOf:y=>`group:${y.si}:${y.index}`,readOnly:!!t,canDrop:(y,b)=>b.parentId===Nm(y.si).parentId&&b.slot==="groups",onDrop:(y,b)=>{p(y.si,Lw(h(y.si),y.index,b.index)),u.level==="city"&&Yt({level:"groups"})},onStep:(y,b)=>{p(y.si,Lw(h(y.si),y.index,b<0?y.index-1:y.index+2)),u.level==="city"&&Yt({level:"groups"})}}),g=BM({keyOf:y=>`city:${y.si}:${y.group}:${y.index}`,readOnly:!!t,canDrop:(y,b)=>b.parentId===Nm(y.si).parentId&&b.slot.startsWith("cities:"),onDrop:(y,b)=>{let P=b.slot.slice(7);p(y.si,Fw(h(y.si),y.group,y.index,P,b.index)),Yt({level:"group",key:P})},onStep:(y,b)=>{p(y.si,Fw(h(y.si),y.group,y.index,y.group,b<0?y.index-1:y.index+2)),u.level==="city"&&Yt({level:"group",key:y.group})}}),C=Bw(n);C.current=n;let w=Bw(()=>{});FM(()=>{f(y=>{let b=wM(y);if(!b)return;let P=C.current.findIndex(H=>H.props?.id===b.nodeId);P<0||w.current(P,{level:b.part,index:b.index})})},[f]);let T=(y,b)=>{l.current=n[y]?.props?.id??null,o.select(y),Yt(b),e.reveal();let P=n[y]?.props?.id;typeof P=="string"&&(b.level==="city"||b.level==="image"||b.level==="map")?c(SM(P,b.index,b.level)):c(null),typeof P=="string"&&o.scrollTo(P)};return w.current=T,{renderLocationTree:(y,b,{rowClick:P,isCollapsed:H,toggleCollapse:E})=>{let W=h(b),O=Rn(W),D=String(y.props.id),v=s&&r?.props.id===D,_=F=>ko(HM,{...t?{}:I.seam({place:{...Nm(b),index:F}})},`seam:${D}:groups:${F}`),A=(F,z)=>ko(HM,{...t?{}:g.seam({place:{...Dw(b,F),index:z}})},`seam:${D}:cities:${F}:${z}`);return Ln(Kle,{children:[ko(Ed,{icon:ko(Zle,{size:13}),name:i("Texts"),words:a,onSelect:()=>T(b,{level:"texts"}),selected:v&&u.level==="texts",rowProps:{onClick:P(()=>T(b,{level:"texts"}))}}),O.map((F,z)=>{let $=`${D}::grp::${F.key}`,X=H($),ee=v&&u.level==="group"&&u.key===F.key,Fe=F.name||F.key?TM(F.key,F.name):i("Ungrouped"),Oe={...Dw(b,F.key),index:F.cards.length},ze=g.row({item:{si:b,group:F.key,index:-1},place:Oe,into:Oe,canDrag:!1},{onClick:P(()=>T(b,{level:"group",key:F.key}))}),Ke=I.row({item:{si:b,index:z},place:{...Nm(b),index:z}},ze.rowProps);return Ln(LM,{children:[z===0&&_(0),ko(Ed,{icon:ko(Vle,{size:13}),name:Fe,words:a,onSelect:()=>T(b,{level:"group",key:F.key}),selected:ee,draggable:Ke.draggable,dragging:Ke.dragging,drop:Ke.drop??ze.drop,fold:{open:!X,label:i("group"),onToggle:()=>E($)},actions:ko(MM,{kind:"delete",label:Uo("Delete {label} group ({n} city)","Delete {label} group ({n} cities)",F.cards.length,{label:Fe}),onClick:()=>{p(b,AM(W,F.key)),Yt({level:"groups"})},children:ko(DM,{size:15})}),rowProps:Ke.rowProps,count:F.cards.length,countLabel:Uo("{n} city","{n} cities",F.cards.length)}),!X&&Ln(NM,{children:[F.cards.map((be,Te)=>{let _e=Dm(W,F.key,Te),Ne=v&&u.level==="city"&&u.index===_e,ao=String(be?.name??"")||i("City"),yo=`${D}::city::${Bm(be)}`,ie=H(yo),{rowProps:Me,...Ve}=g.row({item:{si:b,group:F.key,index:Te},place:{...Dw(b,F.key),index:Te}},{onClick:P(()=>T(b,{level:"city",index:_e}))});return Ln(LM,{children:[Te===0&&A(F.key,0),ko(Ed,{icon:ko(Yle,{size:13}),name:ao,words:a,onSelect:()=>T(b,{level:"city",index:_e}),selected:Ne,...Ve,fold:{open:!ie,label:ao,onToggle:()=>E(yo)},actions:ko(MM,{kind:"delete",label:i("Delete {name}",{name:ao}),onClick:()=>{p(b,RM(W,F.key,Te)),Yt({level:"group",key:F.key})},children:ko(DM,{size:15})}),rowProps:Me}),!ie&&Ln(NM,{children:[ko(Ed,{icon:ko(qle,{size:13}),name:i("Image"),words:a,onSelect:()=>T(b,{level:"image",index:_e}),selected:v&&u.level==="image"&&u.index===_e,rowProps:{onClick:P(()=>T(b,{level:"image",index:_e}))}}),ko(Ed,{icon:ko(Xle,{size:13}),name:i("Map"),words:a,onSelect:()=>T(b,{level:"map",index:_e}),selected:v&&u.level==="map"&&u.index===_e,rowProps:{onClick:P(()=>T(b,{level:"map",index:_e}))}})]}),A(F.key,Te+1)]},Bm(be))}),Ln("button",{type:"button",className:"sf-add-card",onClick:()=>{let be=OM(W,F.key);p(b,be);let Te=Rn(be).find(_e=>_e.key===F.key);Yt(Te&&Te.cards.length?{level:"city",index:Dm(be,F.key,Te.cards.length-1)}:{level:"group",key:F.key})},children:[ko("span",{className:"sf-plus sf-plus--sm",children:"+"}),i("Add city")]})]}),_(z+1)]},$)}),Ln("button",{type:"button",className:"sf-add-card",onClick:()=>{let{cards:F,key:z}=_M(W);p(b,F),T(b,{level:"group",key:z})},children:[ko("span",{className:"sf-plus sf-plus--sm",children:"+"}),i("Add group")]})]})},sectionPressed:y=>{y?.type===Mm&&Yt({level:"groups"})}}}import{useEffect as ide,useRef as dde}from"react";import{createNode as Kw,newId as Vw}from"efficient-easel/data";import{useEaselApi as cde}from"efficient-easel/easel";import{useScreenDocument as fde}from"efficient-easel/screen/components/ScreenDocumentContext";import{useEaselSession as pde}from"efficient-easel/screen/lib/session-context";import{useEffect as $H,useRef as nde}from"react";import{useEasel as sde}from"efficient-easel/easel";import{ROOT_ZONE as jw}from"efficient-easel/draw";var Od={};function UM(e){return Od={...e?.theme?{theme:e.theme}:{},...e?.site?{site:e.site}:{}},Od}function zM(e){Od===e&&(Od={})}function cl(){return Od}import{jsx as Et,jsxs as BH}from"react/jsx-runtime";import{createContext as Yie,useContext as Xie,useEffect as Zie,useRef as Jie,useState as DH}from"react";import{jsx as ga,jsxs as QM}from"react/jsx-runtime";import{useEffect as fl,useRef as eH,useState as Fn}from"react";import{jsx as $M,Fragment as eie,jsxs as oie}from"react/jsx-runtime";import{useEffect as tie,useRef as GM,useState as rie}from"react";var aie="#t=0.001",nie=2;function sie(e,o){if(e.readyState<nie||!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 jM({src:e,objectPosition:o="50% 50%",onError:t}){let r=GM(null),a=GM(null),[n,s]=rie(!1);return tie(()=>{let l=r.current,d=a.current;if(n||!l||!d)return;let c=()=>{sie(l,d)&&s(!0)};return c(),l.addEventListener("loadeddata",c),l.addEventListener("seeked",c),()=>{l.removeEventListener("loadeddata",c),l.removeEventListener("seeked",c)}},[n]),oie(eie,{children:[$M("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&&$M("video",{ref:r,src:`${e}${aie}`,muted:!0,playsInline:!0,preload:"auto",className:"hidden",onError:t})]})}import{imageCopyUrl as qM,imageSrcSet as lie}from"efficient-shell/image-copies";var KM;function Nw(){return KM===void 0?{}:{host:KM}}var HGe="(max-width: 800px) 100vw, min(100vw, 1600px)",WGe="(max-width: 960px) 100vw, 50vw";function Mw(e,{fallbackWidth:o=1280,maxWidth:t}={}){let r=lie(e,{...Nw(),...t===void 0?{}:{maxWidth:t}});return r?{src:qM(e,o,Nw()),srcSet:r}:{src:e}}var iie=/[\s"'()\\;]/,die={"\\":"\\\\",'"':'\\"',"\n":"\\a ","\r":"\\d ","\f":"\\c "};function VM(e){return e.replace(/[\\"\n\r\f]/g,o=>die[o]??o)}function UGe(e){let o=qM(e,1920,Nw());return o===e?iie.test(e)?`url("${VM(e)}")`:`url(${e})`:`url("${VM(o)}")`}import{jsx as YM}from"react/jsx-runtime";import{createContext as cie,useContext as fie,useMemo as jGe}from"react";var XM=cie(null);function ZM({children:e}){return YM(XM.Provider,{value:"below",children:e})}function _d(){return fie(XM)}function pie(){return _d()==="below"?{loading:"lazy"}:{}}function JM(e){let o=pie();return YM("img",{...e,...o})}var KGe="laterSlideIds";var uie=.5;function Ad({videoSrc:e,videoAv1Src:o,videoSrcPhone:t,videoAv1SrcPhone:r,posterSrc:a,posterSrcPhone:n,showVideo:s=!0,playbackRate:l=uie,objectPosition:d="50% 50%",objectPositionPhone:c,objectPositionTablet:f,quiet:u=!1,slideShown:p,laterSlide:h=!1,laterOfLead:I=!1}){let g=r0(c,f),C=_d(),[w,T]=Fn(!1),y=C==="below"&&!w,b=C==="first",P=a||"",H=n||"",E=eH(null),W=gd(E,!0,!0),O=W===void 0?void 0:W==="phone",D=Tc({video:e,av1:o,videoPhone:t,av1Phone:r},O===!0),v=D.video||"",_=kc(v,D.av1),[A,F]=Fn(!1),[z,$]=Fn(!1),[X,ee]=Fn(!1),[Fe,Oe]=Fn(!1),ze=p??!0,[Ke,be]=Fn(!1),Te=C!=="first"&&!I,[_e,Ne]=Fn(!1),ao=eH(null);fl(()=>{if(!Te)return;if(document.readyState==="complete"){Ne(!0);return}let J=()=>Ne(!0);return window.addEventListener("load",J,{once:!0}),()=>window.removeEventListener("load",J)},[Te]),fl(()=>{F(!1),$(!1),ee(!1),Oe(!1)},[v,P,H]),fl(()=>{ze&&be(!0)},[ze]),fl(()=>{let J=ao.current;J&&(ze?J.play()?.catch(()=>{}):J.pause())},[ze,Ke,_e]),fl(()=>{if(!h||Te&&!_e)return;let J=()=>T(!0);if(typeof window.requestIdleCallback=="function"){let ft=window.requestIdleCallback(J,{timeout:2e3});return()=>window.cancelIdleCallback(ft)}let Ae=setTimeout(J,800);return()=>clearTimeout(Ae)},[h,Te,_e]),fl(()=>{let J=ao.current;if(!J)return;let Ae=()=>{J.playbackRate=l};return Ae(),J.addEventListener("loadedmetadata",Ae),()=>J.removeEventListener("loadedmetadata",Ae)},[v,l]);let yo=Mk(P),ie=P&&(yo||H)&&!z?Mw(P):{src:P},Me=H&&!z?Mw(H):{src:H},Ve=H&&!y&&!w?[{sized:Me,media:xi},...P?[{sized:ie,media:vl}]:[]]:[];return QM("div",{ref:E,className:"absolute inset-0 z-[1]",children:[ga("div",{className:"absolute inset-0",style:{background:"var(--site-surface)"}}),Ve.map(({sized:J,media:Ae})=>ga("link",{rel:"preload",as:"image",href:J.src,media:Ae,fetchPriority:"high",...J.srcSet?{imageSrcSet:J.srcSet,imageSizes:"100vw"}:{}},Ae)),(P||H)&&(yo||H?(()=>{let J=ga("img",{...P?{src:ie.src}:{},...ie.srcSet?{srcSet:ie.srcSet,sizes:"100vw"}:{},alt:"",...y?{loading:"lazy"}:{},...b?{fetchPriority:"high"}:{},className:`absolute inset-0 z-[2] h-full w-full object-cover ${g.className}`.trim(),style:{display:A?"none":"block",objectPosition:d,...g.style},onError:Ae=>{Ae.currentTarget.currentSrc&&(ie.srcSet||Me.srcSet?$(!0):F(!0))}},H?void 0:P);return H?QM("picture",{children:[ga("source",{media:xi,srcSet:Me.srcSet||Me.src,sizes:"100vw"}),J]},`${P} ${H}`):J})():ga(TD,{src:P,alt:"",fill:!0,...y?{}:w?{loading:"eager"}:{priority:!0},sizes:"100vw",className:`z-[2] object-cover ${g.className}`.trim(),style:{display:A?"none":"block",objectPosition:d,...g.style},onError:()=>F(!0)},P)),s&&!u&&v&&O!==void 0&&Ke&&(!Te||_e)&&!X&&ga("video",{ref:ao,autoPlay:!0,loop:!0,muted:!0,playsInline:!0,preload:"metadata",className:"absolute inset-0 z-[3] h-full w-full object-cover",style:{objectPosition:d},onError:()=>ee(!0),children:_.map(J=>ga("source",{src:J.src,type:J.type},J.src))},v),s&&u&&v&&O!==void 0&&Ke&&(!Te||_e)&&!Fe&&(!P||A)&&ga(jM,{src:v,objectPosition:d,onError:()=>Oe(!0)},v)]})}import{jsx as Fo,Fragment as cH,jsxs as $w}from"react/jsx-runtime";import{jsx as pl}from"react/jsx-runtime";import{useRef as mie}from"react";import{SCROLL_EFFECTS_WITH_ZOOM as hie,scrollAttrs as xie}from"efficient-shell/format";function oH({views:e,origins:o={},boxClass:t,boxAttrs:r,boxStyle:a,takesViewHide:n=!1,atEdge:s=!1,zoomInside:l="layer",zoomLayerClass:d,children:c}){let f=mie(null),u=Sc(),p=qr(),h=n?p:os,I=Id(f,!0,s),{attrs:g,style:C}=xie(e[I],o[I]),w=hie.includes(e[I].effect),T=Yr(`${Qn}${u.fill}${t?` ${t}`:""}`,h.className);if(w&&l==="picture")return h.scope(pl("div",{ref:f,className:T,...r,...h.attrs,...a?{style:a}:{},children:pl(vk,{attrs:g,style:C,children:u.inner(c)})}));let y=pl(kk,{children:u.inner(c)});if(w){let P=d??(u.fill?"h-full":void 0);return h.scope(pl("div",{ref:f,className:T,...r,...h.attrs,style:{...a,overflow:"clip"},children:pl("div",{...P?{className:P}:{},...g,style:C,children:y})}))}let b=Object.keys(C).length||a?{style:{...a,...C}}:{};return h.scope(pl("div",{ref:f,className:T,...r,...h.attrs,...g,...b,children:y}))}import{MOTION_TIMING as Iie}from"efficient-shell/format";var nH="grayscale(1) contrast(1.03)",Ije="Black and white";function gie(e){return e===!0?{filter:nH}:{}}function bie(e){let{filter:o}=gie(e);return o?{style:{filter:o}}:{}}var Bn="sf-photo-grayscale",zw="data-sf-photo-host",tH={duration:"--sf-photo-hover-duration",delay:"--sf-photo-hover-delay"},zm=`@media (hover:hover){.${Bn}{filter:${nH};transition:filter var(--sf-photo-hover-duration,var(--page-motion-hover-duration)) var(--page-ease-media) var(--sf-photo-hover-delay,var(--page-motion-hover-delay))}.${Bn}:hover,[data-sf-photo-host]:hover .${Bn}{filter:none}}@media (hover:hover) and (prefers-reduced-motion:reduce){.${Bn}{transition:none}}`;function sH(e){let o=Iie.hover,t={...e.duration!==o.duration.default?{[tH.duration]:`${e.duration}s`}:{},...e.delay!==o.delay.default?{[tH.delay]:`${e.delay}s`}:{}};return Object.keys(t).length?t:void 0}function lH(e,o,t){if(e===!0)return bie(!0);if(t?.kind==="mono"){let r=sH(t);return{className:Bn,sheet:zm,...r?{style:r}:{}}}return e===!1?{}:o===!0?{className:Bn}:{}}var iH="data-sf-repeat",Hw="sf-photo-zoom",yie="--sf-photo-zoom",gje="sf-photo-wash",Hm="sf-photo-wash-rest",Rd="sf-photo-wash-hover",Um="sf-photo-frame",dH=(e,o)=>`:not([${iH}]:not(${o}) .${e})`,Uw=(e,o)=>`[${iH}]${o} .${e}${dH(e,o)}`,Ww=(e,o)=>`${o},${Uw(e,":hover")},[${zw}]:hover .${e}${dH(e,":hover")}`,rH=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))`,Sie=`.${Rd}{opacity:0}@media (hover:hover){.${Hm},.${Rd}{transition:${rH("opacity")}}${Ww(Rd,`.${Um}:hover .${Rd}`)}{opacity:1}${Ww(Hm,`.${Um}:hover .${Hm}`)}{opacity:0}}@media (hover:hover) and (prefers-reduced-motion:no-preference){.${Hw}{transition:${rH("transform")}}${Ww(Hw,`.${Um}:hover .${Hw}`)}{transform:scale(var(${yie}))}}@media (hover:hover) and (prefers-reduced-motion:reduce){.${Hm},.${Rd}{transition:none}}`,bje="sf-photo-move";function yje(e){if(!e||!e.zoom&&!e.darken)return null;let o=sH(e);return{className:Um,sheet:Sie,...o?{style:o}:{}}}function Sje(e){return e===!0?{[Bn]:zm}:{}}var Wm="sf-box-reveal",wje="sf-box-reveal",wie=8,aH=.3,Cje=`@media ${vl}{.${Wm}{opacity:0;transform:translateY(${wie}px);transition:opacity ${aH}s ease-out,transform ${aH}s ease-out}${Uw(Wm,":hover")},${Uw(Wm,":focus-within")}{opacity:1;transform:none}}@media ${vl} and (prefers-reduced-motion:reduce){.${Wm}{transition:none;transform:none}}`;import{hidableText as Cie}from"efficient-easel/draw";var vie={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"},kie={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 fH(e){let o=e.isVideo&&aT(e.videoSource)==="youtube",t=e.isVideo&&nT(e.videoPlayback)==="click",r=o?sT(Cie(e.youtubeUrl)):null,a=Yp(e.mediaLayout);return{fromYouTube:o,onClick:t,youTubeId:r,backgroundFile:e.isVideo&&!o&&!t,desktopLayout:a,phoneLayout:Wb(e.mediaLayoutPhone,a),twoPictures:!e.isVideo&&_i(e)>1}}function Ld(e,o){return gc(In({_partMotion:e},o))}function Fd(e,o){return cu(In({_partMotion:e},o))}var $m=e=>Sy({desktop:e.objectPosition,tablet:e.objectPositionTablet,phone:e.objectPositionPhone}),pH=Kh.img;function uH({entrance:e,scroll:o,origins:t,editing:r,className:a,attrs:n,style:s,zoomLayerClass:l,children:d}){return e?Fo(uD,{views:e,editing:r,boxClass:a,boxAttrs:n,...s?{boxStyle:s}:{},children:d}):o?Fo(oH,{views:o,...t?{origins:t}:{},boxClass:a,boxAttrs:n,...s?{boxStyle:s}:{},...l?{zoomLayerClass:l}:{},children:d}):Fo("div",{className:a,...n,...s?{style:s}:{},children:d})}function ul(e,o){return lH(void 0,void 0,ev(In({_partMotion:e},o)))}function mH(e){return dn.some(o=>ul(e,o).className)?{hostAttrs:{[zw]:""},sheet:zm}:{}}function Gm({treatment:e,children:o}){return e.className?Fo("div",{className:`absolute inset-0 ${e.className}`,...e.style?{style:e.style}:{},children:o}):Fo(cH,{children:o})}function jm({color:e,opacity:o,passClicks:t=!0}){return o>0?Fo("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 Km({part:e,editing:o,marked:t=!0,entrance:r,scroll:a=null,origins:n,className:s,children:l}){let d=o&&t?{[MA]:e}:void 0;return Fo(uH,{entrance:r,scroll:a,origins:n,editing:o,className:s,attrs:d,zoomLayerClass:pH,children:l})}function hH({partMotion:e,editing:o,children:t}){let r=Ld(e,"media"),a=Fd(e,"media"),n=ul(e,"media"),s=Fo(Tk,{fill:Kh,children:t}),l=n.className?Fo("div",{className:`absolute inset-0 z-[1] ${n.className}`,...n.style?{style:n.style}:{},children:s}):s;return r||a?Fo(uH,{entrance:r,scroll:a,editing:o,className:"absolute inset-0 z-[1]",zoomLayerClass:pH,children:l}):Fo(cH,{children:l})}function xH({desktopLayout:e,phoneLayout:o,editing:t,marked:r=!0,partMotion:a,first:n,second:s,laterSlide:l=!1}){return $w("div",{className:`absolute inset-0 z-[1] grid ${vie[o]} ${kie[e]}`,"data-hero-layout":e,"data-hero-layout-phone":o,children:[Fo(Km,{part:"image",editing:t,marked:r,entrance:Ld(a,"image"),scroll:Fd(a,"image"),origins:$m(n),className:"relative overflow-hidden",children:$w(Gm,{treatment:ul(a,"image"),children:[Fo(Ad,{posterSrc:ut(n.src),showVideo:!1,laterSlide:l,objectPosition:n.objectPosition,objectPositionPhone:n.objectPositionPhone,objectPositionTablet:n.objectPositionTablet}),Fo(jm,{color:n.tintColor,opacity:n.tintOpacity})]})}),Fo(Km,{part:"image2",editing:t,marked:r,entrance:Ld(a,"image2"),scroll:Fd(a,"image2"),origins:$m(s),className:`relative overflow-hidden ${rf({desktop:e==="one",tablet:e==="one",mobile:o==="one"},{atSectionLine:!0})}`.trimEnd(),children:$w(Gm,{treatment:ul(a,"image2"),children:[Fo(Ad,{posterSrc:ut(s.src),showVideo:!1,laterSlide:l,objectPosition:s.objectPosition,objectPositionPhone:s.objectPositionPhone,objectPositionTablet:s.objectPositionTablet}),Fo(jm,{color:s.tintColor,opacity:s.tintOpacity})]})})]})}import{jsx as ba,Fragment as Tie,jsxs as Pie}from"react/jsx-runtime";import{useEffect as Eie,useRef as Oie,useState as _ie}from"react";import{PlaySolidIcon as Aie}from"efficient-shell/icons/efficient-looks";function IH({youTubeId:e,ownPoster:o,background:t,editing:r}){let[a,n]=_ie("large");return Eie(()=>n("large"),[e]),e?Pie(Tie,{children:[!o&&a!=="none"&&ba(JM,{src:a==="large"?lT(e):iT(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&&ba("div",{className:"pointer-events-none absolute inset-0 z-[3] overflow-hidden [container-type:size]","aria-hidden":"true",children:ba("iframe",{src:rx(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 gH({youTubeId:e,fileSrc:o,fileAv1Src:t,fileSrcPhone:r,fileAv1SrcPhone:a,playing:n,onPlay:s,editing:l}){let d=Oie(null),c=gd(d,!0,!0)==="phone";if(!e&&!o)return null;let f=Tc({video:o,av1:t,videoPhone:r,av1Phone:a},c),u=kc(f.video,f.av1);return n&&!l?e?ba("iframe",{src:rx(e,"click"),title:ax,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"}):ba("video",{ref:p=>{d.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=>ba("source",{src:p.src,type:p.type},p.src))},f.video):ba("button",{ref:p=>{d.current=p},type:"button","aria-label":ax,onClick:l?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 ${l?"pointer-events-none":"cursor-pointer hover:scale-105"}`,children:ba(Aie,{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 yH=["top","middle","bottom"],SH=["left","center","right"],wH="bottom",CH="left",Rie={top:"Top",middle:"Middle",bottom:"Bottom"},Lie={left:"Left",center:"Center",right:"Right"},Jje="Up and down",Qje="Sideways",Fie={top:"flex-start",middle:"center",bottom:"flex-end"},Bie={left:"flex-start",center:"center",right:"flex-end"},Die="--sf-hero-phone-y",Nie="--sf-hero-phone-x";function Mie(e){return yH.includes(e)?e:wH}function Hie(e){return SH.includes(e)?e:CH}function vH(e,o){let t=Mie(e),r=Hie(o),a={};return t!==wH&&(a[Die]=Fie[t]),r!==CH&&(a[Nie]=Bie[r]),a}function eKe(){return yH.map(e=>({label:Rie[e],value:e}))}function oKe(){return SH.map(e=>({label:Lie[e],value:e}))}import{hexToRgb as Wie}from"efficient-shell/format";var Uie=!0;var zie=[[0,".5"],[30,".1"],[60,".1"],[100,".85"]];function kH(e){let o=Wie(e);return o?`${o.r},${o.g},${o.b}`:null}function TH(e){return e==null?Uie:e!==!1}function PH(e){let o=(e?kH(e):null)??kH(Nt);return`linear-gradient(180deg, ${zie.map(([t,r])=>`rgba(${o},${r}) ${t}%`).join(", ")})`}import{hexToRgb as EH}from"efficient-shell/format";var OH="bottom";var $ie=[{label:"Bottom",value:"bottom",cell:"bottom"},{label:"Top",value:"top",cell:"top"},{label:"Left",value:"left",cell:"left"},{label:"Right",value:"right",cell:"right"}],Gie={bottom:180,top:0,left:270,right:90},jie=[[.55,0],[.15,18],[null,35],[null,55],[.85,100]],Kie=[[null,33],[.6,67],[.94,100]];function Vie(e,o){let{r:t,g:r,b:a}=EH(e)??EH(Nt);return`rgba(${t},${r},${a},${o})`}function _H(e){return io($ie,OH,e)}function AH(e=Nt,o=OH){let t=_H(o),r=(t==="top"||t==="bottom"?jie:Kie).map(([a,n])=>`${a===null?"transparent":Vie(e,a)} ${n}%`);return`linear-gradient(${Gie[t]}deg, ${r.join(", ")})`}function RH(e,o){let t=Se(e.overlayColor),r=Se(e.overlayPosition),a=Se(o)??Nt;return!t&&!r?{own:!1,color:a,position:null}:{own:!0,color:t??a,position:_H(r)}}import{jsx as qie}from"react/jsx-runtime";var LH="sf-photo-hover";function FH({sheet:e,name:o=LH}){return e?qie("style",{href:o,precedence:LH,dangerouslySetInnerHTML:{__html:e}}):null}var Qie=Yie({});function EKe({name:e,process:o,mediaType:t="video",mediaSrc:r,videoSpeed:a,poster:n,mediaAv1:s,mediaSrcPhone:l,mediaAv1Phone:d,posterPhone:c,objectPosition:f,objectPositionPhone:u,objectPositionTablet:p,tintColor:h=Nt,tintOpacity:I=0,groups:g,editing:C=!1,themeClassName:w,themeStyle:T,overlayColor:y,overlayPosition:b,mediaLayout:P,mediaLayoutPhone:H,mediaImage2:E,objectPosition2:W,objectPosition2Phone:O,objectPosition2Tablet:D,tintColor2:v=Nt,tintOpacity2:_=0,videoSource:A,youtubeUrl:F,videoPlayback:z,partMotion:$,laterSlide:X=!1}){let ee=qr(),{alignment:Fe="left",textureOpacity:Oe,textureOn:ze,textureColor:Ke,quietVideo:be,phoneUpDown:Te,phoneSideways:_e,holdReel:Ne,reelHeld:ao,shownSlide:yo,ratioMin:ie}=Xie(Qie),Me=_d(),Ve=X&&Me==="first",J=Jie(null),[Ae,ft]=DH(yo===void 0?void 0:!1);Zie(()=>{let Ca=J.current;ft(yo===void 0||!Ca?void 0:bH(Ca.closest(".hero-track"),"data-slide-name")[yo]===Ca)});let fo=t==="video",M=fo?ut(r):void 0,Le=fo?ut(n):ut(r)??ut(n),ye=fo?{av1:ut(s),phone:ut(l),av1Phone:ut(d),poster:ut(c)}:{},po=typeof a=="number"?a/100:1,{fromYouTube:Be,onClick:_t,youTubeId:hr,backgroundFile:Ze,desktopLayout:xr,phoneLayout:ya,twoPictures:Nn}=fH({isVideo:fo,videoSource:A,videoPlayback:z,youtubeUrl:F,mediaLayout:P,mediaLayoutPhone:H}),[Mn,Ir]=DH(!1);Mn&&ao===!1&&Ir(!1);let Ur=!Mn,Sa=RH({overlayColor:y,overlayPosition:b},Ke),gl=fo?null:Ld($,"image"),wa=fo?null:Fd($,"image"),jd=mH($),bl=Et(Gm,{treatment:fo?{}:ul($,"image"),children:Et(Ad,{videoSrc:Ze?M:void 0,videoAv1Src:Ze?ye.av1:void 0,videoSrcPhone:Ze?ye.phone:void 0,videoAv1SrcPhone:Ze?ye.av1Phone:void 0,posterSrc:Le,posterSrcPhone:ye.poster,showVideo:Ze,playbackRate:po,objectPosition:f,objectPositionPhone:fo?void 0:u,objectPositionTablet:fo?void 0:p,quiet:be,slideShown:Ae,laterSlide:X,laterOfLead:Ve})}),Kd=BH("section",{ref:J,className:Yr(`${ie?"relative min-h-full w-full overflow-clip":"relative h-full w-full overflow-hidden"}${w?` ${w}`:""}`,ee.className),...ee.attrs,style:T,"data-slide-name":e??"","data-slide-process":o??"","data-slide-media":Ze&&M?"video":"still",...jd.hostAttrs,children:[Et(FH,{sheet:jd.sheet}),Et(hH,{partMotion:$,editing:C,children:Nn?Et(xH,{laterSlide:X,desktopLayout:xr,phoneLayout:ya,editing:C,marked:!1,partMotion:$,first:{src:r,objectPosition:f,objectPositionPhone:u,objectPositionTablet:p,tintColor:h,tintOpacity:I},second:{src:E,objectPosition:W,objectPositionPhone:O,objectPositionTablet:D,tintColor:v,tintOpacity:_}}):Be||gl||wa?BH(Km,{part:fo?"media":"image",editing:C,marked:!1,entrance:gl,scroll:wa,origins:$m({objectPosition:f,objectPositionTablet:p,objectPositionPhone:u}),className:"absolute inset-0 z-[1]",children:[bl,Be&&Et(IH,{youTubeId:hr,ownPoster:!!Le,background:!_t,editing:C})]}):bl}),_t&&Et(gH,{youTubeId:hr,fileSrc:Be?void 0:M,fileAv1Src:Be?void 0:ye.av1,fileSrcPhone:Be?void 0:ye.phone,fileAv1SrcPhone:Be?void 0:ye.av1Phone,playing:Mn,onPlay:()=>{Ir(!0),Ne?.()},editing:C}),Ur&&!Nn&&Et(jm,{color:h,opacity:I,passClicks:!1}),Ur&&TH(ze)&&Et("div",{className:"absolute inset-0 z-[2]",style:{background:Sa.own?AH(Sa.color,Sa.position??void 0):PH(Sa.color),...Oe!==void 0?{opacity:Oe/100}:null}}),Ur&&Et("div",{className:[ie?"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",C?"sf-hero-group-layer-edit":""].filter(Boolean).join(" "),style:{...uk,...vH(Te,_e)},children:g&&Et(g,{className:"sf-hero-group-zone",minEmptyHeight:160})})]});return ee.scope(Ve?Et(ZM,{children:Kd}):Kd)}var NH=Array.from({length:3},(e,o)=>({name:`Slide ${o+1}`,process:"Category",mediaType:"image",mediaVideo:"",poster:""}));import{newNodeId as HH}from"efficient-easel/draw";import{isNodeList as ede}from"efficient-easel/data";var WH=(e,o)=>({type:e.type,props:{...o?.(e.type)??{},...Object.fromEntries(Object.entries(e.props).map(([t,r])=>[t,ede(r)?r.map(a=>WH(a,o)):r]))}}),ode=e=>{let[o]=Gn([JS()],a=>HH(a)),{id:t,...r}=WH(o,e).props;return r},ur={Hero:{slot:"slides",childType:"HeroSlide",addLabel:"Add slide",slider:!0,seeds:()=>NH.map(e=>({...e}))},HeroSlide:{slot:"groups",childType:"HeroGroup",addLabel:`Add ${Sl.toLowerCase()}`,seeds:()=>[],addBlocked:zh,notice:$h},HeroSingle:{slot:"boxes",childType:"HeroGroup",addLabel:`Add ${Sl.toLowerCase()}`,seeds:()=>[],addBlocked:zh,notice:$h},ProcessSteps:{slot:vm,childType:te,addLabel:`Add ${Sl.toLowerCase()}`,seeds:e=>Array.from({length:ZS},()=>ode(e)),skipSeed:e=>Array.isArray(e.steps)&&e.steps.length>0}},MH=1,tde={slot:Oi,childType:te,addLabel:`Add ${Sl.toLowerCase()}`,seeds:()=>[],addBlocked:e=>e.length>=MH?"This Hero has its Scrolling Bar already. Delete it to add another.":null,notice:e=>e.length>MH?`This Hero holds ${e.length} Scrolling Bars. Keep one and delete the others.`:null},UH={Hero:{[Oi]:tde}};function WKe(e){for(let[o,t]of Object.entries(e)){if($e(ur,o)&&K(ur,o)!==t)throw new Error(`lib/document/slot-specs: "${o}" already has a slot spec`);ur[o]=t}}function UKe(e,o){let t=K(ur,e);return t?{slot:t.slot,children:t.seeds(o).map(r=>({type:t.childType,props:{id:HH(t.childType),...r}}))}:null}var rde={"Logos.logosPerRow":"columns","HeroSlide.tintOpacity":"overlay","Split.textBgTint":"overlay"},ade={"Footprint.source":"typed"};function Gw(e){let o=e.props,t=!1;if(e.type&&o)for(let[r,a]of Object.entries(rde)){let n=r.indexOf("."),s=r.slice(0,n),l=r.slice(n+1);if(s!==e.type||!(l in o))continue;let d=o[l],c={...o};delete c[l],(!(a in c)||c[a]===void 0)&&(c[a]=d),o=c,t=!0}if(e.type&&o)for(let[r,a]of Object.entries(ade)){let n=r.indexOf("."),s=r.slice(n+1);if(r.slice(0,n)!==e.type||!(s in o))continue;let l=typeof o[s]=="string"?o[s].trim():"",d={...o};delete d[s],gC(l)&&l!==a&&!Xt(d)&&(d[So]=l),o=d,t=!0}if(e.type&&o){let r=Ov(e.type,o);r!==o&&(o=r,t=!0)}if(o){let r=rs({props:o},a=>ts(a,Gw));r.props!==o&&(o=r.props,t=!0)}return t?{...e,props:o}:e}function KKe(e){let o=e;if(!o||typeof o!="object")return e;let t=!1,r={...e};if(Array.isArray(o.content)){let a=o.content.map(Gw);a.some((n,s)=>n!==o.content[s])&&(r.content=a,t=!0)}if(o.zones&&typeof o.zones=="object"){let a=!1,n=Object.fromEntries(Object.entries(o.zones).map(([s,l])=>{if(!Array.isArray(l))return[s,l];let d=l.map(Gw);return d.some((c,f)=>c!==l[f])&&(a=!0),[s,d]}));a&&(r.zones=n,t=!0)}return t?r:e}function zH(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 jH(e){let o=sde(c=>c.appState.data.content),{theme:t,themeRow:r,themeFromDocument:a,siteGutter:n,siteGutterPhone:s,siteLengthUnits:l}=he(),d=nde(new Set);$H(()=>{let c=GH({theme:t,themeRow:r,themeFromDocument:a,siteGutter:n,siteGutterPhone:s,siteLengthUnits:l});c&&lde(yF(o,void 0,c),e,d.current)},[o,e,t,r,a,n,s,l]),$H(()=>{let c=UM(GH({theme:t,themeRow:r,themeFromDocument:a,siteGutter:n,siteGutterPhone:s,siteLengthUnits:l}));return()=>zM(c)},[t,r,a,n,s,l])}function GH(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=zH({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 lde(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(jw,r,a[0]),a.slice(1).forEach((s,l)=>{o.insertNode(jw,r+1+l,s),o.replaceComponent(jw,r+1+l,s)}))}}import{ROOT_ZONE as ml,missingPinnedTypes as ude,pinnedDuplicateIds as qw}from"efficient-easel/draw";function KH(e){return!e.docId||e.saveStatus==="saving"?!1:e.seededDocId!==e.docId}function VH(e,o){let t=e.some(l=>l?.type===Ue),r=e[e.length-1],a=!t&&r?.type===Xe?r:null,n=e.filter(l=>l?.type===Xe&&l!==a).map(l=>String(l.props?.id??"")).filter(Boolean),s=o.hasChromeDoc&&!t&&!a;return{remove:n,seedHeader:!e.some(l=>l?.type===Jo),seedFooter:s,seedSiteHeader:s&&!e.some(l=>l?.type===Ye)}}async function qH(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!==Ye||!e.stillOpen())return!1;let r=e.latest();return r.some(a=>a?.type===Ye)?!1:(e.write(Rc(r,t)),!0)}function YH(e,o){let{adapter:t,capabilities:r,currentSlug:a,docId:n,data:s,saveStatus:l,siteId:d,tokenRef:c}=fde(),f=pde(),{hasSiteSettings:u,hasPinnedChrome:p}=r;jH(e);let h=!!r.editsPinnedInPlace&&a!==Mt,I=a===Mt,g=cde().getState,C=dde(null);ide(()=>{if(!KH({docId:n,saveStatus:l,seededDocId:C.current})||(C.current=n,!p))return;let w=g().appState.data,T=w.content,y=s?.content??[],b=(W,O)=>W.some(D=>D?.type===O);if(!u){let W=new Set(qw(T)),O=W.size?T.filter(v=>!W.has(v.props.id)):T;if(W.size&&e.setDocument({...w,content:O}),I)return;let D=ude(O,y);if(D.includes(Xe)){let v=O.length,_=e.insertSection(Xe,v);e.replaceComponent(ml,v,{type:Xe,props:{id:_,blocks:Du()}})}D.includes(Jo)&&e.insertNode(ml,0,Bu());return}if(I){let W=ss(T);if(W!==T&&e.setDocument({...w,content:[...W]}),!W.find(O=>O.type===Xe)&&!b(y,Xe)&&!b(W,Ue)&&!b(y,Ue)){let O=(v,_)=>Kw(o,v,_),D={type:Xe,props:{blocks:Du()}};e.insertNode(ml,W.length,Zi(D,O,Vw(Ue),vd))}return}if(h){let W=!!t?.pinnedChrome?.state().docId,O=VH(T,{hasChromeDoc:W}),D=new Set([...O.remove,...qw(T.filter(_=>!O.remove.includes(String(_.props.id))))]),v=D.size?T.filter(_=>!D.has(String(_.props.id))):T;if(v.length!==T.length&&e.setDocument({...w,content:v}),O.seedFooter&&!b(y,Xe)&&!b(y,Ue)){let _=(F,z)=>Kw(o,F,z),A={type:Xe,props:{blocks:Du()}};e.insertNode(ml,v.length,Zi(A,_,Vw(Ue),vd))}if(O.seedHeader&&!b(y,Jo)){let _=v[0]?.type===Ye?1:0;e.insertNode(ml,_,Bu())}if(O.seedSiteHeader&&!b(y,Ye)&&!b(y,Xe)&&!b(y,Ue)){let _=n;qH({blocks:nf(f),make:(A,F)=>Kw(o,A,F),id:Vw(Ye),siteId:d??null,token:c.current,latest:()=>g().appState.data.content,stillOpen:()=>C.current===_,write:A=>{let F=g().appState.data;e.setDocument({...F,content:[...A]})}})}return}let P=T.filter(W=>W.type!==Xe),H=new Set(qw(P)),E=H.size?P.filter(W=>!H.has(W.props.id)):P;E.length!==T.length&&e.setDocument({...w,content:E}),!b(E,Jo)&&!b(y,Jo)&&e.insertNode(ml,0,Bu())},[n,l,s,g,e,u,p,I,h,t,f,d,c])}import{useEffect as u4,useMemo as Pde,useRef as m4}from"react";import{useEasel as Ede}from"efficient-easel/easel";import{useEaselHost as Ode}from"efficient-easel/screen/lib/host";import{FIELD_DESCRIPTION_MARKER as Sde}from"efficient-easel/screen/lib/host";import{isNode as Xw}from"efficient-easel/data";import{SITE_SIDE as JH}from"efficient-easel/screen/lib/content/length-units";var XH=[{text:"Ticker item"},{text:"Ticker item"},{text:"Ticker item"},{text:"Ticker item"}],O8e={label:"Scrolling Bar",defaultProps:{items:[],tone:"scrim",borders:!0,size:av,separator:nv,scrollDirection:Ni}};var ZH=()=>[{text:i("Spec label"),tone:"normal"},{text:i("Spec value"),tone:"muted"},{text:i("Spec label"),tone:"normal"},{text:i("Spec value"),tone:"muted"}],R8e={label:"Spec Strip",defaultProps:{cells:[{text:"",tone:"normal"},{text:"",tone:"normal"}],fill:"dark"}};function Bo(e,o,t,r={}){return{type:e,props:{...o(e),id:t(e),...r}}}function QH(e,o,t){return Bo(te,e,o,{...t,sectionPaddingTop:void 0,sectionPaddingBottom:void 0})}var Vm={Manifesto:(e,o)=>({type:te,props:{...e(te),id:o(te),direction:"row",share:"equal",sectionHeightMode:"screen",name:"Brand Text",content:[Bo(te,e,o,{direction:"column",justify:"center",blockSpacing:"gap",name:"Text",sectionPaddingTop:100,sectionPaddingBottom:100,sectionPaddingLeft:JH,sectionPaddingRight:JH,content:[Bo("Text",e,o,vr()),Bo("Text",e,o,jr()),Bo("Text",e,o),Bo("Stats",e,o)]}),QH(e,o,{direction:"column",name:"Picture",content:[]})]}}),Split:(e,o)=>({type:te,props:{...e(te),id:o(te),direction:"row",share:"equal",sectionHeightMode:"screen",sectionHeightValue:70,name:"Image & Text Split",content:[Bo(te,e,o,{direction:"column",justify:"center",blockSpacing:"gap",name:"Text",sectionPaddingTop:100,sectionPaddingBottom:100,sectionPaddingLeft:60,sectionPaddingRight:60,content:[Bo("Text",e,o,vr()),Bo("Text",e,o,jr()),Bo("Text",e,o),Bo("ButtonBlock",e,o)]}),QH(e,o,{direction:"column",name:"Image",content:[Bo("ImageBlock",e,o)]})]}}),Subscribe:(e,o)=>({type:te,props:{...e(te),id:o(te),direction:"column",name:"Subscribe",content:[Bo("Text",e,o,jr()),Bo("Text",e,o),Bo("Form",e,o)]}}),Ticker:(e,o)=>e4("Scrolling Bar",um,ud,XH.map(t=>({text:t.text,style:mm,muted:!0})),e,o),SpecStrip:(e,o,t)=>e4("Spec Strip",t?.theme?{...hd,sectionAccent:uc(xo(t.theme))}:{...hd,sectionBorder:{top:1}},md,ZH().map(r=>({text:r.text??"",style:xd,muted:r.tone==="muted"})),e,o)};function e4(e,o,t,r,a,n){return Bo(te,a,n,{...En,...o,blockSpacing:"gap",padV2:!0,name:e,sectionPaddingTop:t.top,sectionPaddingBottom:t.bottom,sectionPaddingTopPhone:t.topPhone,sectionPaddingBottomPhone:t.bottomPhone,content:r.map(s=>Bo("Text",a,n,{text:s.text,...s.muted?{tone:"dim"}:{},_partStyles:{text:s.style}}))})}function o4(e){return K(Vm,e)??null}import{isNodeList as Yw}from"efficient-easel/data";var r7e=Object.keys(Sw),mde={Logos:eD,DocMasthead:bN,DocTabs:ON,Timeline:zD,TimelineTrack:$D},hde={PaymentBadges:oD,PaymentLogosBlock:tD,Integrations:T2};function qm(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]=Yw(n)?n.map(s=>qm(s,o,t)):n;return r.id=t(e.type),{type:e.type,props:r}}var t4=e=>({...e?.theme?{theme:e.theme}:{},...e?.site?{site:e.site}:{},press:!0});function Ym(e,o,t=0,r=()=>({})){return(a,n,s)=>{let{nodes:l}=Zs({type:e,props:{...a(e),...r(),id:n(e)}},o,t4(s));return qm(l[t],a,n)}}var xde={Stats:gde,Cards:Ide};function Ide(){let e=ca("Cards");if(!e)return null;let o=Ym("Cards",e,0,OB);return(t,r,a)=>{let n=o(t,r,a);return{...n,props:{...n.props,name:"Cards section"}}}}function gde(){let e=ca("StatsParagraph");return e?(o,t,r)=>{let{nodes:a}=Zs({type:"StatsParagraph",props:{...o("StatsParagraph"),...UB(),id:t("StatsParagraph")}},e,t4(r)),n=a[0],s=Yw(n.props.content)?n.props.content.filter(f=>f.props?.cardStyle===void 0):[],l=a4(CS(zB(),"table")),d=s.map(r4),c=qm({...n,props:{...n.props,content:[...d,l]}},o,t);return{...c,props:{...c.props,name:"Stats section"}}}:null}function r4(e){return e.props?.name==="Words"?{...e,props:{...e.props,widthFitPhone:"fill"}}:Yw(e.props?.content)?{...e,props:{...e.props,content:e.props.content.map(r4)}}:e}var a4=e=>Gn([e],(o,t)=>`${o}-seed-${t}`)[0];function bde(e,o){if(!bF(e,o))return null;let t=K(xde,e);if(t)return t();let r=ca(e);return r?Ym(e,r,0,K(mde,e)??K(Y2,e)??K(hde,e)):null}function yde(e){return(o,t,r)=>{let a=n=>{if(n.type==="Stats"){let l=qm(a4(CS([],"list")),o,t);return{...l,props:{...l.props,name:"Numbers"}}}let s=rs(n,l=>ts(l,a));return s===n?n:{type:n.type,props:s.props}};return a(e(o,t,r))}}function hl(e,o=Qi){let t=o4(e);return t?yde(t):bde(e,o)}function Bd(e,o){let t=e.components[o]?.label;return typeof t=="string"&&t.trim()?t.trim():o}function wde(e){return e.length>3&&e.endsWith("s")?e.slice(0,-1):e}function Zw(e,o,t,r){e.forEach((a,n)=>{if(Xw(a)){r.push({node:a,list:e,index:n,parent:o,slot:t});for(let[s,l]of Object.entries(a.props))Array.isArray(l)&&l.some(Xw)&&Zw(l,a,s,r)}})}function Cde(e){let o=[];Zw(Array.isArray(e.content)?e.content:[],null,"",o);for(let t of Object.values(e.zones??{}))Array.isArray(t)&&Zw(t,null,"",o);return o}function l4(e,o){return Cde(e).find(t=>String(t.node.props.id)===o)}function i4(e,o,t){if(!t)return null;let r=l4(o,t);if(!r)return null;let a=Bd(e,r.node.type),n=r.parent?`${Bd(e,r.parent.type)} \xB7 ${wde(r.slot)} ${r.index+1}`:a;return{blockId:t,type:r.node.type,label:n,path:""}}var vde=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 kde(e){if(!e||typeof e!="object")return null;let o=e;if(typeof o.type!="string")return null;let t=o.type==="custom"?o[Sde]: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=vde(n));for(let s of["arrayFields","objectFields"]){let l=t?.[s]??o[s];l&&typeof l=="object"&&(r[s]=d4(l))}return r}function d4(e){let o={};for(let[t,r]of Object.entries(e??{})){let a=kde(r);a&&(o[t]=a)}return o}function c4(e){let o={};for(let[t,r]of Object.entries(e.components))r&&(o[t]={label:Bd(e,t),fields:d4(r.fields),...f4(t)?{retired:!0}:{}});return o}function f4(e){return $e(wC,e)}function n4(e,o){let t=e.components[o]?.defaultProps;return t&&typeof t=="object"?structuredClone(t):{}}function Tde(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 Jw(e,o){return e.findIndex(t=>Xw(t)&&String(t.props.id)===o)}function s4(e,o,t){let r=o||t;if(!r)return e.length;let a=Jw(e,r);if(a<0)throw new Error(`there is no top-level block ${r}`);return o?a+1:a}function p4(e,o,t,r,a={}){let n=structuredClone(o),s=Array.isArray(n.content)?n.content:n.content=[];try{t.forEach((l,d)=>{let c=f=>{throw new Error(`change ${d+1}: ${f}`)};switch(l.op){case"set_props":{let f=l4(n,l.block_id)??c(`there is no block ${l.block_id}`);"id"in l.props&&c("a block's id is never changed");let u=Tde(f.node.props,l.path)??c(`there is no ${l.path} in that block`);Object.assign(u,structuredClone(l.props));break}case"insert_block":{e.components[l.type]??c(`there is no block type ${l.type}`),f4(l.type)&&c(`${Bd(e,l.type)} is retired: it is no longer added (a page that holds one keeps it)`);let f=hl(l.type),u=Object.keys(l.props??{}).filter(h=>h!=="id");f&&u.length&&c(`${Bd(e,l.type)} is laid down as a Box of blocks: insert it with no props, then change its blocks`);let p=f?f(h=>n4(e,h),r,a):{type:l.type,props:{...n4(e,l.type),...structuredClone(l.props),id:r(l.type)}};s.splice(s4(s,l.after,l.before),0,p);break}case"remove_block":{let f=Jw(s,l.block_id);f<0&&c(`there is no top-level block ${l.block_id}`),s.splice(f,1);break}case"move_block":{let f=Jw(s,l.block_id);f<0&&c(`there is no top-level block ${l.block_id}`);let[u]=s.splice(f,1);s.splice(s4(s,l.after,l.before),0,u);break}default:c(`"${l.op}" is not a change this editor makes`)}})}catch(l){return{ok:!1,reason:l instanceof Error?l.message:String(l)}}return{ok:!0,document:n}}var Qw=e=>Se(e.requestId)??null;function h4(){let e=Ode(),{appState:o,selectedItem:t,dispatch:r,history:a,config:n}=Ede(p=>p),s=n,l=m4({appState:o,dispatch:r,history:a,blockConfig:s});l.current={appState:o,dispatch:r,history:a,blockConfig:s};let d=m4(new Map),c=t?.props?.id,f=Pde(()=>i4(s,o.data,c),[s,o.data,c]),u=f?JSON.stringify(f):"";u4(()=>{e.connected&&e.send("storefront-editor:selection",{selection:f})},[e,u]),u4(()=>e.subscribe(p=>{let{appState:h,dispatch:I,history:g,blockConfig:C}=l.current;switch(p.type){case"storefront-editor:request-document":{let w=Qw(p);if(!w)return;e.send("storefront-editor:document",{requestId:w,document:h.data,blocks:c4(C)});return}case"storefront-editor:apply-page-edits":{let w=Qw(p);if(!w)return;let T=Array.isArray(p.ops)?p.ops:[],y=T.length?p4(C,h.data,T,b=>`${b}-${crypto.randomUUID()}`,cl()):{ok:!1,reason:"no changes"};y.ok&&(I({type:"setData",data:y.document,recordHistory:!0}),d.current.set(w,JSON.stringify(y.document.content??[]))),e.send("storefront-editor:page-edits-result",{requestId:w,applied:y.ok,reason:y.ok?null:y.reason});return}case"storefront-editor:undo-page-edits":{let w=Qw(p);if(!w)return;let T=d.current.get(w),y=T!==void 0&&T===JSON.stringify(h.data.content??[]);y&&g.hasPast&&(g.back(),d.current.delete(w)),e.send("storefront-editor:page-edits-result",{requestId:w,applied:y&&g.hasPast,reason:y?null:"the page has changed since"});return}case"storefront-editor:set-right-panel":typeof p.shown=="boolean"&&I({type:"setUi",ui:{rightSideBarVisible:p.shown}});return;default:return}}),[e])}import{useEffect as g4,useState as b4}from"react";var Xm=new Map;async function _de(e,o){try{return(await to().site.get({siteId:o})).slug?.trim()||null}catch(t){return console.warn("[editor-site-slug] could not resolve the site slug",t),null}}function x4(e,o){let t=Xm.get(o);return t||(t=_de(e,o),Xm.set(o,t),t.catch(()=>{Xm.get(o)===t&&Xm.delete(o)})),t}var Ade=/^(localhost|(?:[a-z0-9-]+\.)+localhost|127(?:\.\d{1,3}){3}|0\.0\.0\.0|\[::1\]|::1)$/i;function eC(e){return!!e&&Ade.test(e)}function I4(e){let{pageSlug:o,siteSlug:t,hostname:r}=e,a=o===Vc?"/":`/${encodeURIComponent(o)}`;if(!eC(r))return a;let n=t?.trim();return n?`${a}?site=${encodeURIComponent(n)}`:a}function y4(e){let{pageSlug:o,siteId:t,token:r}=e,[a,n]=b4(null),[s,l]=b4(null),d=Nk();g4(()=>{try{l(new URL(Cc()).hostname)}catch{l(null)}},[d]),g4(()=>{if(!eC(s)||!t||!r){n(null);return}let f=!1;return x4(r,t).then(u=>{f||n(u)}),()=>{f=!0}},[s,t,r]);let c=I4({pageSlug:o,siteSlug:a,hostname:s});return d?`${d}${c}`:c}import{jsx as Dd}from"react/jsx-runtime";import{useEffect as Rde,useRef as S4,useState as Lde}from"react";import{ExternalIcon as w4}from"efficient-easel/icons";import{EaselIconButton as Fde}from"efficient-easel/chrome";import{Tooltip as Bde,iconButtonClasses as Dde}from"efficient-shell/ui";import{useSettledPress as Nde}from"efficient-easel/easel";import{useScreenDocument as Mde}from"efficient-easel/screen/components/ScreenDocumentContext";async function Hde({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=l=>{n&&!n.closed?n.location.href=l:a.open(l,"_blank","noopener,noreferrer")};try{await r()}catch{}return t(e).then(l=>s(l.url??o),()=>s(o))}function C4({liveHref:e,pageId:o,draftLink:t}){let{flushSave:r}=Mde(),a=S4(r);a.current=r;let n=Nde(),[s,l]=Lde(!1),d=S4(null);if(Rde(()=>()=>d.current?.(),[]),t&&o){let c=()=>new Promise((u,p)=>{d.current=()=>u(!1),n.run(()=>{d.current=null,a.current().then(u,p)})}),f=()=>{s||n.waiting||(l(!0),Hde({pageId:o,liveHref:e,draftLink:t,ready:c}).finally(()=>l(!1)))};return Dd(Fde,{label:i("Preview your saved draft in a new tab"),tip:i("Open your saved draft in a new tab. Visitors don't see it."),disabled:s||n.waiting,onClick:f,children:Dd(w4,{})})}return Dd(Bde,{content:i("Preview the live site (opens in a new tab)"),side:"bottom",children:Dd("a",{className:Dde({className:"es-iconbtn"}),href:e,...sd,"aria-label":i("Preview the live site in a new tab"),children:Dd(w4,{})})})}import{createElement as Gde,useCallback as jde,useEffect as W4,useRef as U4,useState as Kde}from"react";import{ClockIcon as Vde}from"efficient-shell/icons/efficient";import{useScreenDocument as qde}from"efficient-easel/screen/components/ScreenDocumentContext";import{useSyncExternalStore as Wde}from"react";import{useScreenDocument as Ude}from"efficient-easel/screen/components/ScreenDocumentContext";var zde=()=>()=>{},v4=()=>null;function Zm(e){return Wde(e?e.subscribe:zde,e?e.state:v4,e?e.state:v4)}function Jm(){let{adapter:e}=Ude();return e?.pinnedChrome}import{useSyncExternalStore as P4}from"react";var Nd=!1,xl=null,oC=new Set;function Hd(){for(let e of oC)e()}function E4(e){return oC.add(e),()=>{oC.delete(e)}}function O4(){Nd||(Nd=!0,Hd())}function _4(){Nd&&(Nd=!1,Hd())}function k4(){return Nd}function A4(){return P4(E4,k4,k4)}function T4(){return xl}function Qm(){xl&&(xl=null,Hd())}function R4(){return P4(E4,T4,T4)}var Md=class extends Error{constructor(){super("The editor's last changes could not be saved, so nothing was restored."),this.name="HeldEditsNotSaved"}};async function L4(e,o,t,{flushSave:r,reload:a}){if(!await r())throw new Md;let n=await e.restore(o,t);return If(n.liveState),a(),n}async function F4({access:e,version:o,page:t,...r}){let a=await L4(e,o.id,t?{page:t.id}:{},r);xl={title:$de(o,t??null),undo:a.undo},Hd()}async function B4({access:e,...o}){let t=xl?.undo;t&&(await L4(e,t,{},o),xl=null,Hd())}function D4(e){return e.name?e.name:e.kind==="draft_before_restore"?i("Draft before restore"):i("Version {n}",{n:e.number})}function $de(e,o){return e.kind==="draft_before_restore"?i("Your drafts from before the restore are back"):o?i("{page} from version {n} is now your draft",{page:o.name,n:e.number}):i("Version {n} is now your draft",{n:e.number})}function N4(e){let o=e.changes.filter(r=>r.kind==="page").length,t=[...o?[Uo("{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(Yh(),{type:"conjunction"}).format(t)}catch{return t.join(", ")}}function M4(e){return e.change==="take_down"?i("{name} (taken down)",{name:e.name}):e.name}function H4(e,o=new Date){let t=new Date(e);if(Number.isNaN(t.getTime()))return"";let r=Yh(),a=new Intl.DateTimeFormat(r,{hour:"numeric",minute:"2-digit"}).format(t);if(t.toDateString()===o.toDateString())return i("Today, {time}",{time:a});let n=new Intl.DateTimeFormat(r,{day:"numeric",month:"short",...t.getFullYear()===o.getFullYear()?{}:{year:"numeric"}}).format(t);return i("{day}, {time}",{day:n,time:a})}function z4(e){let{docId:o,capabilities:t,hasUnsavedEdits:r,onPublish:a,adapter:n}=qde(),s=YL(qL(o??null),r),l=Zm(Jm()),d=n.siteLiveState;W4(()=>{if(d)return iI(d),Or(0),()=>iI(null)},[d]);let c=gf(),[f,u]=Kde(!1),p=U4(e);p.current=e;let h=U4(!0);W4(()=>(h.current=!0,()=>{h.current=!1}),[]);let I=jde(()=>{u(!0),a(p.current).then(()=>{Qm()}).finally(()=>{h.current&&u(!1)})},[a]);if(t.canPublish){if(d){let g=c===void 0?void 0:r||c.state==="changed"?"changed":"live",C=jy({live:g,onPress:I,busy:f,goingLive:XL(c?.changes??[])});return n.siteVersions?{...C,menuItems:Yde()}:C}return jy({live:s,onPress:I,busy:f,pinnedUnpublished:l?.unpublished??!1})}}function Yde(){return[{key:"version-history",label:i("Version history"),icon:Gde(Vde),onSelect:O4}]}import{jsx as ae,jsxs as ct,Fragment as zd}from"react/jsx-runtime";import{useCallback as Xde,useEffect as Zde,useId as j4,useRef as Jde,useState as Ot}from"react";import{useSettledAction as Qde}from"efficient-easel/easel";import{Avatar as ece,Banner as Wd,Button as Dn,ColoredBadge as tC,Dialog as K4,Drawer as oce,DropdownMenu as tce,FormField as V4,iconButtonClasses as rce,Inline as rC,Input as ace,ListRow as nce,Select as sce,SortableList as lce,Stack as Ud}from"efficient-shell/ui";import{EditIcon as ice,EyeIcon as $4,MenuIcon as dce,MoreIcon as cce,PageIcon as q4,RevertIcon as G4,StylesIcon as fce}from"efficient-shell/icons/efficient";import{useScreenDocument as Y4}from"efficient-easel/screen/components/ScreenDocumentContext";var pce={page:q4,menu:dce};function uce(e,o){return e.pages.find(t=>t.id===o)??e.pages[0]??null}function mce(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 hce({version:e,page:o,waiting:t,busy:r,error:a,onCancel:n,onConfirm:s,onPage:l}){let d=j4();if(!e)return null;let c=e.kind==="draft_before_restore",f=e.number,u=N4(e),p=c?i("Put your drafts back?"):o?i("Restore {page} from version {n}?",{page:o.name,n:f}):i("Restore version {n}?",{n:f}),h=c?i("Your drafts go back to how they were before the restore."):o?i("{page} goes back to version {n} as a draft. Nothing else on your website changes.",{page:o.name,n:f}):u?i("The whole website goes back to version {n} as a draft: {what}.",{n:f,what:u}):i("The whole website goes back to version {n} as a draft.",{n:f}),I=e.deletedPictures??0;return ae(K4,{open:!0,onClose:()=>{r||n()},size:"sm",title:p,footer:ct(zd,{children:[ae(Dn,{variant:"secondary",onClick:n,disabled:r,children:i("Cancel")}),ae(Dn,{onClick:s,loading:r,disabled:r,children:i("Restore as draft")})]}),children:ct(Ud,{gap:4,children:[o&&e.pages.length>1?ae(V4,{label:i("Page"),htmlFor:d,children:ae(sce,{id:d,value:o.id,options:e.pages.map(g=>({value:g.id,label:g.name})),onChange:l,disabled:r})}):null,ae("p",{children:h}),ae("p",{children:i("Your live website does not change until you press Publish.")}),I>0?ae(Wd,{tone:"warning",children:Uo("{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.",I)}):null,t?ae(Wd,{tone:"info",title:i("Your unpublished changes are kept"),children:i("They are saved in Version history as \u201CDraft before restore\u201D, so you can get them back.")}):null,a?ae(Wd,{tone:"danger",children:a}):null]})})}function xce({version:e,onCancel:o,onSave:t}){let r=j4(),[a,n]=Ot(null),[s,l]=Ot(""),[d,c]=Ot(!1),[f,u]=Ot(null);if(e!==a&&(n(e),l(e?.name??""),u(null)),!e)return null;let p=s.trim()===e.name,h=async()=>{if(!(d||p)){c(!0),u(null);try{await t(s.trim())}catch{u(i("The name was not saved. Try again."))}finally{c(!1)}}};return ae(K4,{open:!0,onClose:()=>{d||o()},size:"sm",title:i("Name this version"),footer:ct(zd,{children:[ae(Dn,{variant:"secondary",onClick:o,disabled:d,children:i("Cancel")}),ae(Dn,{onClick:()=>{h()},loading:d,disabled:d||p,children:i("Save")})]}),children:ae(V4,{label:i("Name"),htmlFor:r,hint:i("Named versions are always kept. Leave it empty to take the name away."),error:f??void 0,children:ae(ace,{id:r,value:s,invalid:!!f,onChange:I=>l(I.target.value),onKeyDown:I=>{I.key==="Enter"&&h()}})})})}function Ice({version:e,expanded:o,onToggle:t,onPreview:r,onRestore:a,onRestorePage:n,onName:s}){let l=e.kind==="draft_before_restore",d=!e.live,c=e.changes.length,f=[...l?[]:[{key:"preview",label:i("Preview"),icon:ae($4,{}),onSelect:r}],...d?[{key:"restore",label:l?i("Put these drafts back"):i("Restore whole website"),icon:ae(G4,{}),onSelect:a}]:[],...d&&!l&&e.pages.length?[{key:"restore-page",label:i("Restore one page only"),icon:ae(q4,{}),onSelect:n}]:[],...l?[]:[{type:"divider",key:"divider"},{key:"name",label:i("Name this version"),icon:ae(ice,{}),onSelect:s}]];return ae(nce,{title:ct("span",{className:"sf-version-title",children:[ae("span",{children:D4(e)}),e.live?ae(tC,{tone:"success",size:"xs",children:i("Live")}):null,e.name?ae(tC,{tone:"neutral",size:"xs",children:i("Version {n}",{n:e.number})}):null,l?ae(tC,{tone:"warning",size:"xs",children:i("Not published")}):null]}),expanded:o,onToggle:t,actions:ae(tce,{align:"end","aria-label":i("More"),items:f,triggerClassName:rce({variant:"ghost",size:"sm"}),trigger:ae(cce,{})}),below:ct(Ud,{gap:3,children:[ct(rC,{gap:2,align:"center",wrap:!0,className:"sf-version-meta",children:[ae(ece,{name:e.createdBy,size:"xs"}),ae("span",{children:e.createdBy}),ae("span",{"aria-hidden":"true",children:"\xB7"}),ae("span",{children:H4(e.createdAt)}),c?ct(zd,{children:[ae("span",{"aria-hidden":"true",children:"\xB7"}),ae("span",{children:Uo("{n} change","{n} changes",c)})]}):null]}),o?ct(Ud,{gap:3,children:[c?ae(Ud,{gap:2,children:e.changes.map(u=>{let p=pce[u.kind]??fce;return ct(rC,{gap:2,align:"center",children:[ae(p,{size:16}),ae("span",{children:M4(u)})]},`${u.kind}:${u.id}`)})}):null,ct(rC,{gap:2,children:[l?null:ae(Dn,{variant:"secondary",size:"sm",leftIcon:ae($4,{}),onClick:r,children:i("Preview")}),d?ae(Dn,{variant:"secondary",size:"sm",leftIcon:ae(G4,{}),onClick:a,children:i("Restore")}):null]})]}):null]})})}function gce({open:e,onClose:o,access:t,waiting:r}){let{flushSave:a,reloadFromServer:n,docId:s}=Y4(),[l,d]=Ot(null),[c,f]=Ot(!1),[u,p]=Ot(null),[h,I]=Ot(null),[g,C]=Ot(!1),[w,T]=Ot(null),[y,b]=Ot(null),[P,H]=Ot(!1),E=Jde(0),W=Xde(()=>{let _=++E.current;f(!1),t.list().then(A=>{_===E.current&&d(A)},()=>{_===E.current&&f(!0)})},[t]);Zde(()=>{e&&W()},[e,W]);let O=_=>{H(!1),mce(t,_.id).catch(()=>H(!0))},D=async()=>{if(!(!h||g)){C(!0),T(null);try{await F4({access:t,version:h.version,page:h.page,flushSave:a,reload:n}),I(null),o()}catch(_){T(_ instanceof Md?i("Your last changes did not save, so nothing was restored. Try again."):i("The version was not restored. Nothing changed. Try again."))}finally{C(!1)}}},v=Qde({onPress:()=>{D()},busy:g});return ct(zd,{children:[ae(oce,{open:e,onClose:o,side:"right",size:"md",title:i("Version history"),description:ct(zd,{children:[i("Every Publish keeps a copy of the whole website: pages, menus and site styles.")," ",i("Products, prices and forms always show as they are now.")]}),footer:ae("span",{className:"sf-version-foot",children:i("The newest 30 are kept. Named versions are always kept.")}),children:ct(Ud,{gap:3,children:[P?ae(Wd,{tone:"danger",onDismiss:()=>H(!1),children:i("The preview did not open. Try again.")}):null,c?ae(Wd,{tone:"danger",action:ae(Dn,{variant:"secondary",size:"sm",onClick:W,children:i("Try again")}),children:i("Version history did not load.")}):l===null?ae("p",{className:"sf-version-foot",children:i("Loading versions")}):l.length===0?ae("p",{className:"sf-version-foot",children:i("No versions yet. Every Publish from now on keeps one.")}):ae(lce,{"aria-label":i("Versions"),spacing:"comfortable",children:l.map(_=>ae(Ice,{version:_,expanded:u===_.id,onToggle:()=>p(A=>A===_.id?null:_.id),onPreview:()=>O(_),onRestore:()=>{T(null),I({version:_,page:null})},onRestorePage:()=>{T(null),I({version:_,page:uce(_,s)})},onName:()=>b(_)},_.id))})]})}),ae(hce,{version:h?.version??null,page:h?.page??null,waiting:r,busy:v.busy===!0,error:w,onCancel:()=>I(null),onConfirm:v.onPress,onPage:_=>I(A=>A&&{...A,page:A.version.pages.find(F=>F.id===_)??A.page})}),ae(xce,{version:y,onCancel:()=>b(null),onSave:async _=>{await t.name(y.id,_),b(null),W()}})]})}function X4(){let{adapter:e,hasUnsavedEdits:o}=Y4(),t=e.siteVersions,r=A4(),a=gf();return t?ae(gce,{open:r,onClose:_4,access:t,waiting:o||a?.state==="changed"}):null}import{useEaselSession as q5}from"efficient-easel/screen/lib/session-context";import{buildPaletteSections as cVe,categoryLabel as fVe,paletteWithoutPinned as pVe,pinnedSection as uVe}from"efficient-easel/screen/lib/document/palette-sections";var bce={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 Z4(e){return K(bce,e)?.label}var J4=vC;import{currentEaselSession as t5}from"efficient-easel/screen/lib/session";import{blockTypesIn as Q4}from"efficient-easel/screen/lib/document/block-types-in";var e5=()=>({}),o5=new Map;function yce(e){let o=o5.get(e);if(o)return o;let t=new Set,r=K(ur,e);if(r)for(let s of r.seeds(e5))for(let l of Q4({type:r.childType,props:s}))t.add(l);let a=hl(e);if(a){let s=0;for(let l of Q4(a(e5,d=>`${d}-${s+=1}`)))t.add(l)}t.delete(e);let n=[...t].sort();return o5.set(e,n),n}function Sce(e){if(!e||!e.sets&&!e.allow&&!e.deny?.length)return null;let o=zy(e),t=e.allow?new Set(e.allow):null,r=new Set(e.deny??[]),a=new Set(Object.keys(e.host??{})),n=d=>{if(r.has(d))return!1;if(a.has(d))return!0;let c=CC(d);return!c||!o[c]?!1:t?t.has(d):!0},s=new Map,l=d=>{let c=s.get(d);if(c!==void 0)return c;s.set(d,!1);let f=n(d)&&yce(d).every(l);return s.set(d,f),f};return{sets:o,offers:l}}var wce="block-offer";function aC(e=t5()){return e.cache(wce,()=>Sce(nf(e)))}function r5(e,o=t5()){let t=aC(o);return t?t.offers(e):!0}function Cce(e){let o=Vm.Ticker(e.nodeDefaults,e.newNodeId),{sectionBorder:t,...r}=o.props,a=Mb.line?{sectionBorder:t}:{};return{...o,props:{...r,...a,sectionAccent:Mb.sectionAccent}}}var vce={Hero:{[Oi]:{newChild:Cce,childLabel:qd.Ticker}}},a5=Object.fromEntries(Object.entries(UH).map(([e,o])=>[e,Object.fromEntries(Object.entries(o).map(([t,r])=>[t,{...r,...K(vce,e)?.[t]}]))]));function n5(e,o=0,t,r){let a=Tce(Pce(e,o,r),t),n=a?aC():null;return a&&n?kce(a,n):a}function kce(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 Tce(e,o){if(!e||e.source!=="container"||!o||!Av())return e;let t=dc({data:o.data},o.id),r=typeof t?.type=="string"?Rv(t.type):[],a=e.choices??[],n=r.filter(s=>!a.some(l=>l.type===s.type));return n.length?{...e,choices:[...a,...n.map(s=>({type:s.type,label:s.label}))]}:e}function Pce(e,o,t){let r=t?K(a5,e)?.[t]:void 0;if(r)return{source:"section",slot:r.slot,choices:null,spec:r};let a=K(ur,e);if(a)return{source:"section",slot:a.slot,choices:null,spec:a};let n=kC(e,o);if(n)return{source:"container",slot:n.slot,choices:n.choices,spec:null};let s=iF(e);return s?{source:"footer",slot:lF,choices:s,spec:null}:null}function s5(e,o=Bv(e.type)){return Fv(e.type)?o.map(t=>{let r=Dv(e.type,t);return r===null?{slot:t,label:t,rung:!1}:{slot:t,label:i(r),rung:!0}}):null}import{useSyncExternalStore as Ece}from"react";var nC=null,sC=new Set;function l5(e){if(nC!==e){nC=e;for(let o of sC)o()}}function Oce(e){return sC.add(e),()=>{sC.delete(e)}}function KVe(){return Ece(Oce,()=>nC,()=>null)}function i5(e){return Rl(e)?.ownerId??null}function d5(e,o){let t=e.props;if(e.type==="FooterMenu"){let r=t.menu;return t.heading||r?.name||i("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:i("Text")}return e.type==="FooterEmailSignup"?t.heading||i("Email signup"):o(e.type)}var c5="sf-editor-left-view";function f5(){if(typeof window>"u")return"pages";try{let e=window.localStorage.getItem(c5);return e==="sections"||e==="styles"?e:"pages"}catch{return"pages"}}function p5(e){if(!(typeof window>"u"))try{window.localStorage.setItem(c5,e)}catch{}}function u5(e,o){return e==="styles"&&!o?"sections":e}function m5(e,o){return e?"sections":o}import{copyNode as _ce}from"efficient-easel/data";function h5(e){let o=typeof e?.props?.id=="string"?e.props.id:null,t=Bt(),r=o&&t?t.sectionOf(o):null;if(!t||!r)return null;let a=t.usedOn(r);return a?a.length===1?i("On 1 page"):i("On {count} pages",{count:a.length}):i("On other pages")}var x5={usedOn:e=>{let o=Bt(),t=o?.sectionOf(e.props.id)??null;return!o||!t?null:o.usedOn(t)??[]},openPage:e=>Bc()?.openPage(e),adopt:(e,o)=>Bt()?.adopt(e.props.id,o),nodeOf:e=>Bt()?.place(e)??null,detach:e=>{let o=Bc()?.config;return o?_ce(e,o):e},removed:()=>Bc()?.reload()};import{sharedSectionsOf as Nfe}from"efficient-easel/screen/lib/shared-sections";import{scrollPreviewToSection as Mfe,scrollPreviewToTop as U5}from"efficient-easel/screen/lib/document/preview-dom";import{jsx as dC,Fragment as tfe,jsxs as rfe}from"react/jsx-runtime";import{useContext as afe,useEffect as nfe,useMemo as pC,useRef as P5}from"react";import{EaselCanvas as sfe,repeatCopyAt as lfe,useEasel as ife}from"efficient-easel/easel";import{jsx as y5,Fragment as Nce,jsxs as Mce}from"react/jsx-runtime";import{useEffect as S5,useLayoutEffect as Hce}from"react";var eh="data-theme",I5="light";function Ace(e){return e.getAttribute(eh)===I5?"light":"dark"}function Rce(e,o){return Ace(e)===o?!1:(o==="light"?e.setAttribute(eh,I5):e.removeAttribute(eh),!0)}function Lce(e){return qh(e).getItem(Bh)}function r9e(e,o){qh(e).setItem(Bh,o)}function Fce(e,o,t=new Date().getHours()){return jv({mode:o.mode,override:Lce(e),switchShown:o.switchShown,hour:t})}function g5(e,o){let t=e.documentElement;if(!t)return()=>{};let r=()=>Rce(t,Fce(e,o));r();let a=e.defaultView?.MutationObserver;if(!a)return()=>{};let n=new a(r);return n.observe(t,{attributes:!0,attributeFilter:[eh]}),()=>n.disconnect()}var Bce="style";function Dce(e,o){let t=ok(o),r=!1;for(let a of ek){let n=t[a]??"";e.style.getPropertyValue(a)!==n&&(n?e.style.setProperty(a,n):e.style.removeProperty(a),r=!0)}return r}function b5(e,o){let t=e.body;if(!t)return()=>{};let r=()=>Dce(t,o);r();let a=e.defaultView?.MutationObserver;if(!a)return()=>{};let n=new a(r);return n.observe(t,{attributes:!0,attributeFilter:[Bce]}),()=>n.disconnect()}var Wce=`
|
|
332
|
+
- Add as many as you like.`)},{label:i("Second section"),heading:i("Your *second* section."),body:i("Leave a blank line between paragraphs to start a new one.")}],ese=DN;function wWe({tocTitle:e,sections:o,editing:t=!1,stickyTop:r=ese}){let a=cw(o);if(a.length===0&&!t)return null;let n=a.length===0&&t?Qne():a,s=fw(n);return An(wc,{as:"section",className:"relative z-[2] bg-bg",children:iw("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:[An(NN,{title:e,entries:n.map((l,d)=>({label:l.label||"Section",anchor:s[d]})),stickyTop:r}),An("div",{className:"flex flex-col gap-16",children:n.map((l,d)=>iw("article",{id:s[d],className:"flex flex-col gap-[18px]",style:{scrollMarginTop:r},children:[iw("span",{className:"font-mono text-[length:var(--size-label,12px)] uppercase tracking-[0.3em] text-accent",children:[Bg(d)," \xB7 ",Nr(l.label||"Section")]}),l.heading&&An("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:Nr(l.heading)}),pw(l.body??"").map((c,f)=>c.type==="ul"?An("ul",{className:"flex max-w-[680px] list-none flex-col gap-2.5 pl-0",children:c.items.map((u,p)=>An("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:Nr(u)},p))},f):An("p",{className:"max-w-[680px] font-serif text-[length:var(--size-body,17px)] leading-[1.7] text-fg-dim",children:Nr(c.text)},f))]},s[d]))})]})})}var MN={top:80,bottom:80,topPhone:60,bottomPhone:60},HN=18,WN=18,UN=8,ose=10,uw=e=>typeof e=="string"&&e.trim()!=="",zN=e=>cw(e.sections),tse=e=>pw(typeof e.body=="string"?e.body:"").map(o=>o.type==="ul"?{kind:"ul",text:o.items.map(t=>`- ${t}`).join(`
|
|
333
|
+
`)}:{kind:"p",text:o.text}),mw={...Lt(12),letterSpacing:.3,color:"accent",lineHeight:1.5},$N={textStyle:"body-1",fontRole:"accent",...U("body",17)},rse=[me("label",mw),{...me("title",mw),when:(e,o)=>!uw(o?.label)},{kind:"block",type:"Text",when:(e,o)=>!uw(o?.label)&&!uw(o?.title),props:{...G,text:"Section",_partStyles:{text:mw}}},{kind:"group",name:"Heading",props:{...L,sectionPaddingBottom:UN,sectionPaddingBottomPhone:UN},parts:[{kind:"group",name:"Heading line",props:{...L,sectionBorder:{bottom:1},sectionPaddingBottom:WN,sectionPaddingBottomPhone:WN},parts:[{kind:"text",key:"heading",role:"heading",props:G,style:{textStyle:"heading-2",...ot("headingMedium",28,3.5,44),case:"upper",weight:500,lineHeight:1.04,letterSpacing:-.025}}]}]},{kind:"list",key:"body",name:"Body",flat:!0,of:tse,parts:[{kind:"text",key:"text",props:ne,style:{...$N,lineHeight:1.7},when:(e,o)=>o?.kind==="p"},{kind:"text",key:"text",props:ne,style:{...$N,lineHeight:1.65,paragraphSpacing:ose},when:(e,o)=>o?.kind==="ul"}]}],ase=900,nse={name:"Document Text",boxProps:e=>({...Z,direction:"row",gap:80,gapPhone:40,[om]:ase,sectionBorder:{bottom:1},...le(e,MN)}),box:["anchor","sectionAccent",...Jr,...ps,...Object.values(lo),...ue(MN)],parts:[{kind:"block",type:"Contents",props:e=>({title:e.tocTitle??"",sticky:!0,widthFit:"fixed",width:240,widthFitPhone:"fill"})},{kind:"group",name:"Sections",props:{...L,gap:64,gapPhone:64,widthFit:"fill"},parts:[{kind:"list",key:"sections",name:"Section",of:e=>zN(e),props:{...L,gap:HN,gapPhone:HN},item:(e,o,t)=>({props:{anchor:fw(zN(t))[o]??`section-${o+1}`}}),parts:rse}]}],reads:{tocTitle:"the Contents block's Heading"},drop:{...Q,stickyTop:"the Contents block draws DocBody's default (120px); 0 live nodes store it"}},GN={DocBody:nse};import{phoneKey as ise}from"efficient-easel/draw";import{SITE_SIDE as dse}from"efficient-easel/screen/lib/content/length-units";var LWe={eyebrow:"\u2014 Label",title:`Section headline *here.*
|
|
334
|
+
*Highlight line*`,body:"Describe this section in a sentence or two."},FWe={text:"Learn more"},BWe={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 hw(e){return typeof e=="number"&&Number.isFinite(e)?Math.min(Math.max(e,0),100):40}var MWe="[--intro-edge:60px] max-[960px]:[--intro-edge:24px]",sse="overlay",lse=[{label:"Copy over image",value:"overlay"},{label:"Copy above image",value:"stacked"}];function jN(e){return io(lse,sse,e)}var HWe={desktop:40,mobile:45,min:20,max:80,step:5};function WWe(e,o){return`${typeof e=="number"?e:o}%`}var KN=(e,o,t)=>{let r=q(e),a=q(o),n=(s,l)=>l&&l!=="px"?{[s]:l}:{};return{...r===void 0?{}:{size:r,...n(gt.size,t?.desktop)},...a===void 0?{}:{sizePhone:a,...n(gt.sizePhone,t?.phone)}}},cse=e=>jN(e.layout)==="stacked",VN=e=>Math.min(Math.max(q(e.overlay)??60,0),100),Tm=e=>q(e)??100,fse={textStyle:"heading-1",sizeToken:{...ot("headingLarge",48,7,96).sizeToken,pxPhone:36},weight:500,lineHeight:.95,letterSpacing:-.03},pse=[me("eyebrow",U("label",14)),...[!0,!1].map(e=>({kind:"text",key:"title",role:"heading",props:G,style:{...fse,case:e?"upper":"none"},styleFrom:o=>{let t=YI(o);return KN(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=YI(e);return KN(e.bodySizeDesktop,e.bodySizeMobile,{desktop:o.bodyDesktop,phone:o.bodyMobile})}},{kind:"group",name:"Button",props:{...L,align:"start",sectionPaddingTop:8,sectionPaddingTopPhone:8},parts:[{kind:"button",key:"ctaText",href:"ctaHref",variant:"primary",props:vo}]}],qN=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)`,use=()=>({name:"Scroll-Over Text",skip:e=>cse(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=>({...Z,direction:"column",justify:"center",align:"start",gap:24,gapPhone:24,share:"content",...rd,placement:"left",darken:VN(e),darkenStyle:"even",sectionHeightMode:"fixed",sectionHeightUnit:"%",sectionHeightValue:Tm(e.heightDesktop),sectionHeightModePhone:"fixed",sectionHeightUnitPhone:"%",sectionHeightValuePhone:Tm(e.heightMobile)}),box:[...re.filter(e=>!String(typeof e=="string"?e:e[0]).startsWith("sectionHeight")),["imageSrc","bgImage"],["imageSrcMobile","bgImagePhone"],["overlay","darken",(e,o)=>VN(o)],["heightDesktop","sectionHeightValue",e=>Tm(e)],["heightMobile","sectionHeightValuePhone",e=>Tm(e)]],parts:pse,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(jE.map(e=>[e,"read by its part's `styleFrom`: the unit of that view's Size"])),buttonColor:qN("Button color"),buttonTextColor:qN("Button text color"),...Q}}),ZN={textStyle:"heading-2",...U("headingMedium",56,36),weight:400,lineHeight:1.05,letterSpacing:-.03},mse={textStyle:"body-1",...U("body",16),lineHeight:1.7},JN=e=>({kind:"text",key:"body",props:{...ne,maxWidth:520},style:{...mse,paragraphSpacing:e}}),Em={top:0,bottom:0,topPhone:0,bottomPhone:0},xw=(e,o)=>typeof e.sectionHeightMode=="string"&&e.sectionHeightMode!=="auto"?{}:{sectionHeightMode:"fixed",sectionHeightUnit:"%",sectionHeightValue:o,sectionHeightModePhone:"auto"},hse=(e,o)=>{let t=xw(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"}},QN={boxShapePhone:"landscape"},e2="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)",xse=(e,o)=>({[e]:o,[ise(e)]:o}),Ise={textStyle:"heading-2",...U("headingMedium",40),weight:500,case:"none",lineHeight:1,letterSpacing:-.02},YN=e=>(Array.isArray(e.stats)?e.stats:[]).filter(o=>o&&(String(o.value??"").trim()!==""||String(o.label??"").trim()!=="")),gse=()=>({name:"Brand Text",boxProps:(e,o)=>({...Z,...Qo("background")(e,o),direction:"row",share:"equal",gap:0,gapPhone:0,sectionBorder:{top:1,bottom:1},...le(e,Em),...xw(e,100)}),box:[...re,...ue(Em)],parts:[{kind:"group",name:"Words",props:()=>({...L,justify:"center",gap:28,gapPhone:28,sectionBorder:ad({right:1}),sectionBorderPhone:ad({}),...rd,sectionPaddingTop:100,sectionPaddingBottom:100,sectionPaddingTopPhone:60,sectionPaddingBottomPhone:60,sectionPaddingRight:dse}),parts:[me("eyebrow",U("label",14)),{kind:"text",key:"heading",role:"heading",props:G,style:{...ZN,case:"none"},mark:"accentItalic"},JN(28),{kind:"group",name:"Stats",props:{...L,sectionPaddingTop:16,sectionPaddingTopPhone:16},parts:[{kind:"group",name:"Figures",props:e=>({...L,direction:"row",share:"equal",gap:24,gapPhone:24,maxWidth:520,phoneRow:Math.min(Math.max(YN(e).length,1),3),...xse("sectionBorder",ad({top:1})),sectionPaddingTop:28,sectionPaddingTopPhone:28}),parts:[{kind:"list",key:"stats",name:"Stat",of:YN,props:{...L,gap:4,gapPhone:4},parts:[{kind:"text",key:"value",props:Cn,style:Ise},me("label",{...U("label",13),color:"labels",letterSpacing:.2})]}]}]}]},nS("Picture","imageSrc",QN)],drop:{...Q,grayscale:e2,...se}}),Pm=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}},bse=e=>e.textAlign==="center"||e.textAlign==="right"?ec[e.textAlign]:"stretch",yse=e=>Math.min(Math.max(q(e.overlay)??60,0),100),o2=e=>typeof e=="string"&&e.trim()!=="",Sse={...vo,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},XN=e=>({...nS("Picture","imageSrc",(o,t)=>({...o2(o.imageSrc)&&hw(o.imageOverlay)>0?{darken:hw(o.imageOverlay),darkenStyle:"even"}:{},placement:"center",...QN,sectionBorder:ad(e?{left:1}:{right:1}),...t2(e?"left":"right",rl(t))}),[{kind:"button",key:"imageBtnText",href:"imageBtnHref",variant:"ghost",props:Sse,style:{...Lt(13,12),letterSpacing:.18}}]),when:o=>o.reverse===!0===e}),t2=(e,o)=>{let t=Math.max(60-o,0);return{sectionPaddingLeft:e==="left"?60:t,sectionPaddingRight:e==="right"?60:t}},wse={kind:"group",name:"Words",props:(e,o)=>{let t=e.reverse===!0;return{...L,justify:"center",align:bse(e),placement:e.textAlign==="center"?"center":e.textAlign==="right"?"right":"left",...hse(e,72),gap:24,gapPhone:24,...o2(e.textBgSrc)?{darken:yse(e),darkenStyle:"even"}:{},...rd,sectionPaddingTop:100,sectionPaddingBottom:100,...t2(t?"right":"left",rl(o)),sectionPaddingTopPhone:60,sectionPaddingBottomPhone:60}},box:[["textBgSrc","bgImage"]],parts:[{...me("eyebrow",U("label",14)),styleFrom:Pm},{kind:"text",key:"title",role:"heading",props:G,style:ZN,styleFrom:e=>({case:e.uppercase===!0?"upper":"none",...Pm(e)})},{...JN(24),styleFrom:Pm},{kind:"group",name:"Button",props:{...L,sectionPaddingTop:8,sectionPaddingTopPhone:8},parts:[{kind:"button",key:"ctaText",href:"ctaHref",variant:"primary",props:e=>{let o=Pm(e);return{...vo,...o.align?{align:o.align}:{},...o.alignPhone?{alignPhone:o.alignPhone}:{}}}}]}]},Cse=()=>({name:"Image & Text Split",boxProps:(e,o)=>({...Z,...Qo("background")(e,o),direction:"row",share:"equal",gap:0,gapPhone:0,sectionBorder:{top:1,bottom:1},...le(e,Em),...xw(e,72)}),box:[...re,...ue(Em)],parts:[XN(!1),wse,XN(!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:e2,...Q,...se}}),r2={IntroBleed:use(),Manifesto:gse(),Split:Cse()};var s2={headPlacement:void 0},a2={top:0,bottom:0,topPhone:0,bottomPhone:0},vse=()=>({name:"Form",ownBoxConverts:!0,boxProps:e=>({...Z,direction:"column",...le(e,a2)}),box:[...re,...ue(a2)],parts:[{kind:"core",keep:"rest",props:s2}],drop:{...Q,...se}}),n2={top:120,bottom:120,topPhone:60,bottomPhone:60},kse=()=>({name:"Photo Submission Form",boxProps:e=>({...Z,direction:"column",gap:24,...le(e,n2)}),box:[...re,...ue(n2)],parts:[me("eyebrow"),{kind:"text",key:"title",role:"heading",props:G,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:s2}],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:{...Q,...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'}}),l2={Form:vse(),SubmitBuild:kse()};import{phoneKey as i2}from"efficient-easel/draw";var c2=1.5,d2={textStyle:"body-1",...U("body",15),lineHeight:c2},Tse={...Ko,...U("label",12),letterSpacing:.12,lineHeight:c2},f2=()=>({type:te,props:{...L,direction:"row",justify:"between",align:"start",gap:16,gapPhone:16,share:"content",phoneRow:2,[i2("share")]:"content",[i2("wrap")]:"nowrap",...Do(12,0),sectionBorder:{top:1},name:"Item"},slots:{[He]:[{type:te,props:{...L,gap:0,gapPhone:0,name:"Item words"},slots:{[He]:[qe("label",{...G,tag:"p"},d2),qe("meta",{...ne,tag:"p"},Tse)]}},qe("amount",{...G,tag:"p"},d2)]}});var Pse=()=>({name:"Order Table",boxProps:()=>({...Z,direction:"column"}),box:[...re],parts:[{kind:"core",keep:"rest",headless:!0,slots:{[No]:[f2()]}}],drop:{...Q}}),p2={OrderSummary:Pse()};import{phoneKey as Ese}from"efficient-easel/draw";var fUe={eyebrow:"By the numbers",title:`A picture worth
|
|
335
|
+
*a thousand rows.*`},u2=["eyebrow","title","body","caption"],pUe={label:"Chart",defaultProps:{eyebrow:"",title:"",body:"",items:[],caption:"",chartStyle:"bars",valueSuffix:""}};var m2=["eyebrow","title","body"],mUe={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 I2={top:76,bottom:76,topPhone:76,bottomPhone:76},g2=()=>({kind:"group",name:"Words",props:{...L,gap:20,gapPhone:20},parts:[{kind:"group",name:"Chip row",props:{...L,direction:"row",phoneRow:2,[Ese("share")]:"content"},parts:[el("eyebrow")]},{kind:"text",key:"title",role:"heading",props:G,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:nc(16)}]}),b2=e=>(o,t)=>({...Z,sectionAccent:tl(o.sectionAccent??0,t),direction:"row",align:"center",gap:56,gapPhone:56,share:e,sectionBorder:{top:1,bottom:1},...le(o,I2)}),y2=[...re.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,t)=>tl(e,t)],...ue(I2)],Ose=()=>({name:"Chart",boxProps:b2([42]),box:y2,parts:[g2(),{kind:"group",name:"Chart",props:{...L,gap:16,gapPhone:16},keepEmpty:!0,parts:[{kind:"core",keep:"rest",props:Qs},me("caption",{color:"muted",...U("label",10),letterSpacing:.14})]}],pressKeepsEmpty:[...u2],drop:{...Q,...se}}),h2=e=>e.align==="left",x2={kind:"group",name:"Card",keepEmpty:!0,props:L,parts:[{kind:"core",keep:"rest",props:Qs}]},_se=()=>({name:"Mockup Card",boxProps:b2("equal"),box:y2,parts:[{...x2,when:h2},g2(),{...x2,when:e=>!h2(e)}],pressKeepsEmpty:[...m2],drop:{...Q,...se}}),S2={Chart:Ose(),Mockup:_se()};import{phoneKey as Rse}from"efficient-easel/draw";function w2(e,o=3){let t=Array.from({length:o},()=>[]);return e.forEach((r,a)=>t[a%o].push(r)),t}function C2(e){return Math.max(e*6,30)}var v2={top:76,bottom:76,topPhone:76,bottomPhone:76},Lse=e=>(Array.isArray(e.apps)?e.apps:[]).map(o=>o&&typeof o=="object"&&typeof o.text=="string"?o.text.trim():"").filter(Boolean),Iw=e=>w2(Lse(e)),Fse=e=>ou({loopDuration:C2(e)}),Bse={kind:"group",name:"Header",props:{...L,align:"center",gap:20,gapPhone:20},parts:[{kind:"group",name:"Chip row",props:{...L,direction:"row",justify:"center",phoneRow:2,[Rse("share")]:"content"},parts:[el("eyebrow")]},{kind:"text",key:"title",role:"heading",props:{...G,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:nc(16)}]},Dse=e=>({kind:"group",name:`Row ${e+1}`,when:o=>Iw(o)[e].length>0,props:o=>({...L,direction:"row",gap:12,gapPhone:12,loop:"scroll",...e%2===1?{scrollDirection:"right"}:{},loopDuration:Fse(Iw(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=>Iw(o)[e].map(t=>({alt:t})),parts:[{kind:"block",type:"LogoBlock",box:["alt"]}]}]}]}),Nse={kind:"group",name:"Stat",props:{...L,align:"center",gap:16,gapPhone:16},parts:[{kind:"group",name:"Figure",props:{...L,align:"center",gap:8,gapPhone:8},parts:[{kind:"text",key:"statValue",props:{...G,align:"center"},style:{textStyle:"heading-1",...U("headingLarge",64,46),weight:500,case:"upper",lineHeight:1,color:"accent"}},{kind:"text",key:"statLabel",props:{...G,align:"center"},style:{textStyle:"heading-3",...U("headingSmall",18),weight:500,case:"upper",letterSpacing:.06}}]},{kind:"text",key:"note",props:{...G,align:"center",maxWidth:428},style:{textStyle:"body-1",...U("label",14),lineHeight:1.625,color:"muted"}}]},Mse=[...re.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,t)=>tl(e,t)],...ue(v2)],Hse={name:"Integrations",boxProps:(e,o)=>({...Z,sectionAccent:tl(e.sectionAccent??0,o),direction:"column",gap:48,gapPhone:48,sectionBorder:{top:1,bottom:1},...le(e,v2)}),box:Mse,parts:[Bse,{kind:"group",name:"Rows",props:{...L,gap:12,gapPhone:12},parts:Array.from({length:3},(e,o)=>Dse(o))},Nse],pressKeepsEmpty:["body","statValue","statLabel","note"],reads:{apps:"a Logo block per app, dealt into the three Rows"},drop:{...Q,...se}},k2={Integrations:Hse},T2=()=>({eyebrow:i("Integrations"),title:i(`Plays well with
|
|
336
|
+
*your favourite apps.*`),apps:["Shopify","Xero","Stripe","Mailchimp","Zapier","HubSpot","QuickBooks","PayPal","Google Analytics"].map(e=>({text:e}))});var Wse={title:"Back online in",zeroText:"Almost done. Back very soon."},P2=["title"],_Ue={label:"Countdown",defaultProps:{...Wse,endsAt:"",showUnits:!0}};var E2={top:48,bottom:48,topPhone:48,bottomPhone:48},Use={...me("title",{...mv(12),color:"muted"}),props:{...G,align:"center"}},zse=()=>({name:"Countdown",boxProps:e=>({...Z,direction:"column",align:"center",gap:16,gapPhone:16,...le(e,E2)}),box:[...re,...ue(E2)],parts:[Use,{kind:"core",keep:"rest",props:Qs}],pressKeepsEmpty:[...P2],drop:{...Q,...se}}),O2={top:80,bottom:80,topTablet:60,bottomTablet:60,topPhone:60,bottomPhone:60},$se=()=>({name:"Feature Banner",boxProps:e=>({...Z,direction:"column",sectionBorder:{bottom:1},...le(e,O2)}),box:[...re,...ue(O2)],parts:[{kind:"core",keep:"rest",props:Qs}],drop:{...Q,...se}}),_2={Countdown:zse(),FeaturedCover:$se()};var A2={top:80,bottom:80,topPhone:60,bottomPhone:60},Gse=()=>{let e=lm("FitmentFinder");return{name:"Fitment Form",boxProps:o=>({...Z,direction:"column",gap:ld[Tn("FitmentFinder")],...le(o,A2)}),box:[...re,...ue(A2)],parts:[Ct("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:{...Q,...se,layout:'the section shape; "bar" is skipped (above), so here it is the stacked shape this Box draws'}}},R2={FitmentFinder:Gse()};var Om={eyebrow:"Label",title:"Section *heading.*",body:"Add this section's copy here. A blank line starts a new paragraph."},HUe={label:"Editorial Text",defaultProps:{eyebrow:"",title:"",body:"",topBorder:!0}};var Cd={eyebrow:Ge.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"},zUe={label:"Lead Text",defaultProps:{eyebrow:"",lead:"",stats:[],foundersHeading:"",foundersBody:"",attribution:"",padTop:60,padBottom:80}};var L2={eyebrow:"Limited release",title:"Banner headline",body:"A line or two of supporting copy."},GUe={label:"Banner",drawsPictures:!0,defaultProps:{eyebrow:"",title:"",body:"",imageSrc:"",ctaText:"",ctaHref:"",contained:!0,overlay:60}};var F2={title:`Section heading
|
|
337
|
+
*Highlight line*`},B2=[{label:co.text,href:co.href,variant:"primary"},{label:co.text,href:co.href,variant:"outline"}],VUe={label:"Call-to-Action Heading",defaultProps:{title:"",buttons:[],padTop:140,padBottom:140}};var gw="solid",jse=[{label:"Solid",value:"solid"},{label:"Outlined",value:"outlined"}];function XUe(e){return io(jse,gw,e)}var Kse="sf-secnum-outline",ZUe="font-display text-[length:var(--size-headingMedium,clamp(48px,6vw,96px))] font-medium leading-[0.8] tracking-[-0.02em]",JUe=`@supports (-webkit-text-stroke: 1px currentColor){.${Kse}{color:var(--site-surface-2);-webkit-text-stroke:1px var(--site-line)}}`;var _m="standard",H2=[{label:"Standard",value:"standard"},{label:"Editorial",value:"editorial"},{label:"Simple",value:"simple"},{label:"Statement",value:"statement"},{label:"Natural",value:"natural"},{label:"Essay",value:"essay"}],yw=["numStyle","logoSrc","logoAlt","linkText","linkHref","_gLogo"],bw=[...yw,"description"],D2={standard:["eyebrowLook"],editorial:[...yw,"eyebrowLook"],simple:bw,statement:bw,natural:yw,essay:bw},N2=["gap-5","gap-3"],M2=["text-[length:var(--size-body,16px)]","text-[15px]"];function tze(e){return io(N2,N2[0],e)}function rze(e){return io(M2,M2[0],e)}function aze(e){return io(H2,_m,e)}function nze(e){let o=H2.map(r=>r.value),t=[...new Set(Object.values(D2).flat())];return _a(e,t.map(r=>[[r],Oh("headStyle",o,_m,o.filter(a=>!D2[a].includes(r)))]))}var Mr={num:"01 / Section",title:"Section *title*",description:"Short supporting line",linkText:Ge.viewAll},cze={label:"Section Header",drawsPictures:!0,defaultProps:{headStyle:_m,num:Mr.num,numStyle:gw,title:Mr.title,description:"",logoSrc:"",logoAlt:"",linkText:"",linkHref:""}};var W2={top:72,bottom:72,topPhone:72,bottomPhone:72},Vse={name:"Editorial Text",boxProps:e=>({...Z,direction:"column",gap:28,gapPhone:28,sectionBorder:{top:1},...le(e,W2)}),box:[["topBorder","sectionBorder",e=>e===!1?void 0:{top:1}],...re,...ue(W2)],parts:[Ct("Prose"),{kind:"text",key:"body",props:ne,style:{textStyle:"body-1",...U("body",16),lineHeight:1.7,paragraphSpacing:18}}],drop:{...Q,...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)"}},U2={buttonPaddingTop:20,buttonPaddingBottom:20,buttonPaddingLeft:28,buttonPaddingRight:28},z2=(e,o)=>o?.variant==="primary",$2=(e,o)=>({kind:"list",key:"buttons",name:"Button",flat:!0,when:e,parts:[{kind:"button",key:"label",href:"href",when:z2,variant:"primary",style:{letterSpacing:.3},props:{...vo,...U2,...o}},{kind:"button",key:"label",href:"href",when:(t,r)=>!z2(t,r),variant:"ghost",style:{letterSpacing:.3},props:{...vo,...U2,...o}}]}),Am=e=>Qe(e.title),qse={name:"Call-to-Action Heading",boxProps:e=>({...Z,direction:"row",align:"center",justify:Am(e)?"between":"end",gap:60,gapPhone:60,share:"content",sectionBorder:{bottom:1},...wt(e,"TitleWithButtons")}),box:[...re,...pa("TitleWithButtons")],parts:[{kind:"group",name:"Title",props:{...L,maxWidth:1e3,widthFitPhone:"fill"},parts:[{kind:"text",key:"title",role:"heading",props:G,style:{textStyle:"heading-1",...ot("headingLarge",48,7,108),case:"upper",lineHeight:.94,letterSpacing:-.035},mark:"accentItalic"}]},{kind:"group",name:"Buttons",props:e=>({...L,gap:14,gapPhone:14,widthFitPhone:"fill",...Am(e)?{minWidth:280,minWidthPhone:0}:{}}),parts:[$2(Am,{widthFit:"fill",iconPosition:"end"}),$2(e=>!Am(e),{})]}],drop:{...Q,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 Yse(e,o){let t=rl(o,{to:ke(e.sectionPaddingUnit)}),r=rl(o,{view:"phone",to:ke(e.sectionPaddingUnitPhone),maxPx:20});return{sectionPaddingLeft:t,sectionPaddingRight:t,sectionPaddingLeftPhone:r,sectionPaddingRightPhone:r}}var G2={top:40,bottom:64,topPhone:24,bottomPhone:36},Xse={name:"Section Header",boxProps:(e,o)=>({...Z,direction:"column",gap:0,...le(e,G2),...Yse(e,o)}),box:[...re,...ue(G2)],parts:[Ct("SectionHeader")],drop:{...Q,...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"}},j2={...L,direction:"row",share:[67],gap:32},K2={...L,sectionPaddingLeft:24,sectionPaddingLeftPhone:0},V2=(e,o,t)=>({kind:"group",name:e,props:o,parts:[t]}),Zse={name:"Lead Text",boxProps:e=>({...Z,direction:"column",gap:40,gapPhone:40,sectionBorder:{bottom:1},...wt(e,"ParagraphsA")}),box:[...re,...pa("ParagraphsA")],parts:[{kind:"group",name:"Numbers",props:{...j2,gapPhone:24,sectionBorder:{bottom:1},sectionPaddingBottom:40,sectionPaddingBottomPhone:40},parts:[{kind:"group",name:"Eyebrow",props:{...L,sectionPaddingTop:5,sectionPaddingBottom:1,sectionPaddingTopPhone:5,sectionPaddingBottomPhone:1},parts:[me("eyebrow",{color:"labels",...U("label",12),letterSpacing:.24})]},V2("Stats column",L,{kind:"group",name:"Stats",props:{...K2,gap:0,gapPhone:0},parts:[{kind:"list",key:"stats",name:"Stat",flat:!0,parts:[td("value","label",{...U("label",13),letterSpacing:.18,lineHeight:1.8})]}]})]},{kind:"group",name:"Words",props:{...j2,gapPhone:28},parts:[{kind:"group",name:"Lead",props:L,parts:[{kind:"group",name:"Measure",props:{...L,maxWidth:780},parts:[{kind:"text",key:"lead",props:G,style:{textStyle:"heading-3",...U("headingSmall",22,20),weight:400,case:"none",lineHeight:1.45,letterSpacing:-.005}}]}]},V2("Note column",{...L,justify:"end"},{kind:"group",name:"Founders",props:{...K2,gap:8,gapPhone:8},parts:[{kind:"group",name:"Note",props:{...L,gap:6,gapPhone:6},parts:[{kind:"text",key:"foundersHeading",props:G,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}}]},me("attribution",{...U("label",12,10),letterSpacing:.24,lineHeight:1.7})]})]}],drop:{...Q}},q2={top:24,bottom:24,topPhone:24,bottomPhone:24},Jse={name:"Banner",boxProps:e=>({...Z,direction:"column",gap:0,...le(e,q2)}),box:[...re,"contained",...ue(q2)],parts:[{kind:"group",name:"Card",keepEmpty:!0,props:{...L,gap:28,gapPhone:28,placement:"top-left",darken:60,darkenStyle:"even",sectionBorder:{width:1},...Cr("surface"),...Do(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:{...L,gap:20,gapPhone:20},parts:[me("eyebrow"),{kind:"text",key:"title",role:"heading",props:{...G,maxWidth:680},style:{weight:500,lineHeight:1.05,letterSpacing:-.03,case:"none",...U("headingMedium",44,32)}},{kind:"text",key:"body",props:{...G,maxWidth:680},style:{textStyle:"body-1",lineHeight:1.6,...U("body",16)}}]},{kind:"button",key:"ctaText",href:"ctaHref",variant:"primary",props:vo}]}],drop:{...Q,...se}},Sw={Prose:Vse,TitleWithButtons:qse,SectionHeader:Xse,ParagraphsA:Zse,Banner:Jse},Y2={Prose:()=>({eyebrow:Om.eyebrow,title:pr(Om.title),body:Om.body}),TitleWithButtons:()=>({title:pr(F2.title),buttons:B2.map(e=>({...e}))}),SectionHeader:()=>({num:Mr.num,title:pr(Mr.title),description:Mr.description,linkText:Mr.linkText,linkHref:co.href}),ParagraphsA:()=>({eyebrow:Cd.eyebrow,lead:Ge.body,foundersHeading:Cd.foundersHeading,foundersBody:Cd.foundersBody,attribution:Cd.attribution}),Banner:()=>({...L2,ctaText:co.text,ctaHref:co.href}),ProcessSteps:()=>({num:Mr.num,title:pr(Mr.title)})};function X2(){go(Sw),go(WB),go(QB),go(_B),go(cD),go(GD),go(nN),go(dN),go(wN),go(RN),go(GN),go(r2),go(l2),go(p2),go(R2),go(S2),go(k2),go(_2)}var ele=["FooterPayment"];function Z2(e,o){let{id:t,...r}=e.props;for(let[a,n]of Object.entries(r))Qse(n)&&(r[a]=n.map(s=>Z2(s,o)));return o(e.type,r)}var vd=(e,o)=>{if(!ele.includes(e.type))return null;X2();let t=ca(e.type);return t?Zs({type:e.type,props:{...e.props}},t).nodes.map(r=>Z2(r,o)):null};function J2(){let{appState:e,dispatch:o,config:t}=sle(f=>f),{readOnly:r}=ile(),[a,n]=rle(!1),s=e.data.content;if(r||s.some(f=>f.type===Ue))return null;let l=s.find(f=>f.type===Xe)??null,d=(f,u)=>ale(t,f,u),c=()=>{let f=Zi(l,d,nle(Ue),vd);o({type:"setData",data:u=>({...u,content:[...Rc(u.content,f)]}),recordHistory:!0}),n(!1)};return Rm(lle,{tone:"info",title:i("This footer uses the old layout"),action:a?tle(ole,{children:[Rm(ww,{variant:"primary",size:"sm",onClick:c,children:i("Switch now")}),Rm(ww,{variant:"secondary",size:"sm",onClick:()=>n(!1),children:i("Cancel")})]}):Rm(ww,{variant:"secondary",size:"sm",onClick:()=>n(!0),children:i("Switch to Box footer")}),children:i("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 Cw,jsxs as dle}from"react/jsx-runtime";import{InspectorUpLevel as Q2}from"efficient-easel/chrome";function eM({nodeId:e,part:o,sectionName:t,onUpToSection:r}){let{select:a}=qp(),n=Ks(e,o,"picture");return dle("div",{children:[o!=="media"?Cw(Q2,{inline:!0,name:i(cn.media),onSelect:()=>a(Ri(e,"media"))}):Cw(Q2,{inline:!0,name:i(t),onSelect:r}),Cw(Kt,{part:o,motion:n,itemWord:i(cn[o])})]})}import{HintsToggle as Cle,SettingsSwitch as vle,hintsFoldClass as kle}from"efficient-easel/panel";import{useHints as Tle}from"efficient-easel/screen/lib/hints";var sM={kind:"header"},Tw={kind:"website"},lM={kind:"website",tab:Hs,revealPageGroup:!0},iM={kind:"chat"},dM={kind:"social"},kd="Part";function Ple(e){return i("Part of {name}",{name:i(e)})}function Ele(e,o,t){let r=e.describeNode(o);return{name:t,kindLabel:r?Ple(r.label):i(kd)}}function Ole(e){switch(e){case"Header":return{title:i("Header settings belong to a website."),own:i("Each website created from this template sets its own header afterwards.")};case"Appearance":return{title:i("Appearance settings belong to a website."),own:i("Each website created from this template sets its own appearance afterwards.")};case"Live chat":return{title:i("Live chat settings belong to a website."),own:i("Each website created from this template sets its own live chat afterwards.")};case"Social link":return{title:i("Social link settings belong to a website."),own:i("Each website created from this template sets its own social link afterwards.")};default:return{title:i("{what} settings belong to a website.",{what:e}),own:i("Each website created from this template sets its own {what} afterwards.",{what:e.toLowerCase()})}}}function cM({what:e}){let o=Ole(e);return Ia("div",{className:"sf-note",children:[Ee("p",{children:Ee("strong",{children:o.title})}),Ia("p",{children:[i("A template is a blueprint \u2014 it has no website of its own, so there is nothing here to change.")," ",o.own]})]})}function kw(e){let o=Ai[e];return{name:cn[e],kindLabel:kd,icon:o,head:(t,r)=>{if(t.kind!==o)return null;let a=r.describeNode(t.nodeId);if(!a)return null;let n=nM({name:i(Xp(e,a.props)),tier:"part",of:i(a.label)},{partOf:({name:s})=>i("Part of {name}",{name:s})});return{name:n.name,kindLabel:n.kind}},render:(t,r)=>t.kind===o?Ee(eM,{nodeId:t.nodeId,part:e,sectionName:r.describeNode(t.nodeId)?.label??"Hero",onUpToSection:()=>r.onSelectNode(t.nodeId)}):null}}var _le={header:{name:"Header",kindLabel:"Site settings",icon:"header",render:(e,o)=>{let t=o.hostPanels?.header;return t?Ee(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)=>Ee(Hp,{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:()=>Ee(jA,{})},social:{name:"Social links",kindLabel:"Site settings",icon:"social",render:()=>Ee(ZA,{unavailable:Ee(cM,{what:"Social link"})})},ticker:{name:Ei,kindLabel:kd,icon:"ticker",head:(e,o)=>e.kind==="ticker"?Ele(o,e.heroId,i(Ei)):null,render:e=>Ee(mL,{heroId:e.kind==="ticker"?e.heroId:""})},heroMedia:kw("media"),heroImage:kw("image"),heroImage2:kw("image2"),part:{name:kd,kindLabel:kd,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}=$t(e.propKey),n=a?_s(t.fields[r],a):t.fields[r],s=Cu(t.type),l=s?Tl(s,e.propKey):null,d=s&&l?s[l].label:kL[e.propKey],c=d?i(d):t_(i(Lg(cp(n??{},r))),a),f=nM({name:c,tier:"part",of:i(t.label)},{partOf:({name:u})=>i("Part of {name}",{name:u})});return{name:f.name,kindLabel:f.kind}},render:(e,o)=>e.kind==="part"?Ee(KL,{nodeId:e.nodeId,propKey:e.propKey,onBack:()=>o.onSelectNode(e.nodeId),onEditStyle:o.onOpenSiteStyles}):null}},Ale=new Set(["header","website","chat"]);function Rle(e,o){if(e==="selection")return null;let t=_le[e];return Ale.has(e)&&!o.hasSiteSettings?{...t,kindLabel:"Not part of a template",render:()=>Ee(cM,{what:t.name})}:t}function fM({mode:e,onOpenWebsiteSettings:o,onOpenSiteStyles:t,onOpenPageStyles:r,onSelectNode:a,hideNodeActions:n=!1,onNotify:s,onHidePanel:l}){let{capabilities:d,tokenRef:c,notifyParent:f,currentSlug:u,siteId:p,runAuthed:h,readOnly:I,navigate:g}=ble(),{rows:C}=ki(),w=C?.find(M=>M.slug===u)??null,T=fle(),y=Object.keys(T.fields).some(M=>!M.startsWith("_")&&!Ci.includes(M)),{websiteName:b}=he(),P=yle({readOnly:I}),{select:H}=Sle(),{selectedItem:E,getItemById:W,getSelectorForId:O,config:D,appState:v}=cle(M=>M),_=Ile(D,E?{type:E.type,props:E.props}:null),A=E?i_(_??D.components[E.type]?.fields,E.props):[],F=M=>D.components[M]?.label??M,z=E?O(E.props.id):void 0,$=Rle(e.kind,d),X=gle(),ee={capabilities:d,tokenRef:c,hostPanels:X.chrome?.panels,describeNode:M=>{let Le=W(M);if(!Le)return null;let ye=D.components[Le.type];return{type:Le.type,label:ye?.label??Le.type,fields:ye?.fields??{},props:Le.props??{}}},siteId:p,websiteName:b??null,notifyParent:f,onNotify:s,onOpenWebsiteSettings:o,onOpenSiteStyles:t,onSelectNode:a},Fe=$?.head?.(e,ee)??null,Oe=HA({kind:w?.kind,pageName:w?.label}),ze=Fe?.name??($?i($.name):E?i(F(E.type)):Oe.name),Ke=Fe?.kindLabel??($?i($.kindLabel):E?z&&z.zone!==aM?i("Block"):i("Section"):Oe.kindLabel),be=$?$.icon:E?E.type:"page",Te=vw(e)&&E?$i(E.type):null,_e=!!E&&!!z&&z.zone===aM&&E.type!==Xe&&E.type!==wle,Ne=Nu(v?.data,E),ao=()=>{Ne||z&&P.duplicateComponent(z.zone,z.index)},yo=()=>{z&&(P.removeComponent(z.zone,z.index),P.select(null))},ie=E?D.components[E.type]?.defaultProps?.previewHover:void 0,Me=vw(e)&&!!E&&!!z&&ie!==void 0,Ve=Me&&E.props.previewHover===!0,J=()=>{!E||!z||P.replaceComponent(z.zone,z.index,{...E,props:{...E.props,previewHover:!Ve}})},{shown:Ae,setShown:ft}=Tle(),fo=!!($||E||y);return Ia("div",{className:`es-sidepanel es-sidepanel--right sf-panel sf-panel--right ${kle(Ae)}`.trim(),children:[Ee(mle,{icon:Ee(fn,{type:be,size:15}),name:ze,kind:Ke,actions:!n&&vw(e)&&E&&E.type!==Xe?Ia(oM,{children:[Ee(tM,{label:i("Duplicate section"),title:Ne??void 0,disabled:Ne!==null,onClick:ao,children:Ee(hle,{size:15})}),_e&&d.hasSiteSettings&&Ee(aF,{node:E,currentSlug:u,siteId:p??void 0,tokenRef:c,runAuthed:h,onNotify:s}),Ee(tM,{label:i("Remove section"),danger:!0,onClick:yo,children:Ee(xle,{size:15})}),l?Ee(rM,{side:"right",onHide:l,divider:!0}):null]}):l?Ee(rM,{side:"right",onHide:l}):void 0}),Me&&Ia("div",{className:"sf-preview-pin",children:[Ia("div",{className:"sf-preview-pin-text",children:[Ee("span",{className:"sf-preview-pin-label",children:i("Preview hover state")}),Ee("span",{className:"sf-preview-pin-hint",children:i("not shown live")})]}),Ee(vle,{checked:Ve,onChange:J,ariaLabel:i("Preview hover state")})]}),Ia("div",{className:"sf-insp-body es-insp-body sf-scroll",children:[$?$.render(e,ee):E?Ia(oM,{children:[E.type===Xe&&d.hasSiteSettings&&Ee(J2,{}),Ee(ZP,{children:Ee(Kt,{entries:Ee(nF,{parts:A,heading:!1,onOpen:M=>H(ip(E.props.id,M))}),entryCount:Xy(A).length,itemWord:ze})}),Te&&Ee(Pu,{source:Te,slug:qs(E?.props),menuId:Su(E?.props)})]}):y?Ee(Kt,{omit:Ci}):Ee(ule,{variant:"none",icon:!1,message:i("Select a section or block to edit it."),children:r&&Ee(ple,{variant:"secondary",onClick:r,children:i("This page")})}),fo&&Ee(Cle,{shown:Ae,onChange:ft,label:i("Show hints")})]})]})}import{jsx as m,jsxs as R,Fragment as xM}from"react/jsx-runtime";var bo={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)"},Pw="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 j({w:e,h:o,tone:t="dark",r=2,style:a}){return m("div",{style:{width:e,height:o,borderRadius:r,background:bo[t],flex:"none",...a}})}var Lle={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"},Y={position:"absolute",inset:0},x={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)"},je=(e,o,t=160)=>({background:`linear-gradient(${t}deg,${e},${o})`});function Wr({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 R("span",{style:{position:"absolute",display:"block",width:e,height:e,...o},children:[m("span",{style:r("8% 26% 30% 6%",x.mark1)}),m("span",{style:r("26% 6% 8% 30%",x.mark2,"multiply")})]})}function Fm({children:e}){return m("span",{style:{fontSize:"4.64cqw",fontWeight:700,letterSpacing:"0.06em",textTransform:"uppercase",color:x.muted},children:e})}function pM({over:e,overTone:o,head:t,headSize:r=11.5,cta:a,ctaBg:n,ctaFg:s,tone:l}){return R(xM,{children:[e&&m("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.16em",fontWeight:700,color:o},children:e}),m("span",{style:{fontSize:r,lineHeight:1.15,fontWeight:700,maxWidth:"78%",color:l},children:t}),a&&m("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 Ew({name:e,price:o}){return R("div",{style:{display:"flex",flexDirection:"column",gap:2,minWidth:0},children:[m("div",{style:{flex:1,minHeight:0,borderRadius:3,position:"relative",overflow:"hidden",...je(x.paper,x.paper2,150)},children:m(Wr,{size:34,style:{left:"50%",top:"50%",transform:"translate(-50%,-50%)"}})}),m("span",{style:{fontSize:"3.65cqw",fontWeight:600,color:x.text},children:e}),m("span",{style:{fontSize:"3.65cqw",color:x.muted},children:o})]})}function Hr({k:e,v:o,ok:t}){return R("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",gap:6,padding:"3.5px 2px",borderBottom:`1px solid ${x.rule}`,fontSize:"3.98cqw",color:x.muted},children:[m("span",{children:e}),R("span",{style:{display:"flex",gap:6,alignItems:"center"},children:[m("b",{style:{color:x.text,fontWeight:700},children:o}),t&&m("span",{style:{color:x.rust,fontWeight:700},children:"\u2713"})]})]})}function De({title:e,children:o}){return R("div",{style:{...Y,background:x.card,padding:"9px 10px",display:"flex",flexDirection:"column",gap:6},children:[m(Fm,{children:e}),o]})}function uM({size:e=14}){return m("span",{style:{width:e,height:e,borderRadius:"50%",flex:"none",display:"block",background:`linear-gradient(150deg,${x.mark1},${x.mark2})`}})}function Ow({filled:e=5,size:o=6}){return R("span",{style:{fontSize:o,letterSpacing:"0.06em",color:x.rust,lineHeight:1},children:["\u2605".repeat(e),m("span",{style:{color:x.mark1},children:"\u2605".repeat(5-e)})]})}function Td({n:e,label:o,tone:t=x.text}){return R("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:1,minWidth:0},children:[m("b",{style:{fontSize:"8.16cqw",lineHeight:1,color:t},children:e}),m("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.08em",textTransform:"uppercase",opacity:.62,color:t},children:o})]})}function ho({children:e,w:o}){return m("span",{style:{fontSize:"3.98cqw",lineHeight:1.45,color:x.muted,width:o,display:"block"},children:e})}function Lm({label:e,w:o="100%",filled:t}){return R("div",{style:{width:o,display:"flex",flexDirection:"column",gap:2},children:[m("span",{style:{fontSize:"3.32cqw",letterSpacing:"0.08em",textTransform:"uppercase",color:x.muted},children:e}),m("span",{style:{height:9,borderRadius:3,border:`1px solid ${x.rule}`,background:t?x.paper:x.card}})]})}function mM({children:e}){return m("span",{style:{alignSelf:"flex-start",fontSize:"3.65cqw",letterSpacing:"0.12em",fontWeight:700,padding:"5px 9px",borderRadius:2,background:x.text,color:x.onInk},children:e})}var Fle={wheelslisting:m(De,{title:"All wheels",children:m("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])=>R("div",{style:{display:"flex",alignItems:"center",gap:6},children:[m("span",{style:{width:20,height:15,borderRadius:3,flex:"none",position:"relative",overflow:"hidden",...je(x.paper,x.paper2,150)},children:m(Wr,{size:12,style:{left:"50%",top:"50%",transform:"translate(-50%,-50%)"}})}),m("b",{style:{flex:1,fontSize:"4.31cqw",color:x.text},children:e}),m("span",{style:{fontSize:"3.65cqw",color:x.muted},children:o}),m("b",{style:{fontSize:"4.31cqw",color:x.text,width:26,textAlign:"right"},children:t})]},e))})}),catalogfilterbar:R("div",{style:{...Y,background:x.card,display:"flex",flexDirection:"column",justifyContent:"center",gap:7,padding:"0 11px"},children:[R("div",{style:{display:"flex",gap:4,alignItems:"center"},children:[["20 inch","6\xD7139.7","Black"].map(e=>R("span",{style:{fontSize:"3.65cqw",fontWeight:600,padding:"4px 7px",borderRadius:99,background:x.text,color:x.onInk,display:"flex",gap:4,alignItems:"center"},children:[e,m("span",{style:{opacity:.6},children:"\u2715"})]},e)),m("span",{style:{fontSize:"3.65cqw",color:x.rust,fontWeight:700},children:"Clear"})]}),R("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[m("span",{style:{fontSize:"3.65cqw",color:x.muted},children:"128 results"}),m("span",{style:{fontSize:"3.65cqw",color:x.muted,border:`1px solid ${x.rule}`,borderRadius:3,padding:"3px 6px"},children:"Sort: Price \u25BE"})]})]}),fitmentfinder:R("div",{style:{...Y,padding:"10px 12px",display:"flex",flexDirection:"column",gap:6,justifyContent:"center",...je(x.ink,x.inkSoft)},children:[m("span",{style:{fontSize:"5.31cqw",fontWeight:700,color:x.onInk},children:"Will it fit your rig?"}),R("div",{style:{display:"flex",gap:4},children:[["2021","Toyota","Hilux"].map(e=>R("span",{style:{flex:1,fontSize:"3.65cqw",color:x.text,background:x.card,borderRadius:3,padding:"5px 6px",display:"flex",justifyContent:"space-between"},children:[e," ",m("span",{style:{color:x.muted},children:"\u25BE"})]},e)),m("span",{style:{fontSize:"3.65cqw",fontWeight:700,letterSpacing:"0.08em",background:x.warm,color:x.ink,borderRadius:3,padding:"5px 7px"},children:"GO"})]})]}),compatibletyres:m(De,{title:"Tyres that suit",children:m("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])=>R("div",{style:{display:"flex",flexDirection:"column",gap:2,minWidth:0},children:[m("div",{style:{flex:1,minHeight:0,borderRadius:3,position:"relative",overflow:"hidden",background:x.ink},children:m("span",{style:{position:"absolute",left:"50%",top:"50%",transform:"translate(-50%,-50%)",width:26,height:26,borderRadius:"50%",border:`5px solid ${x.mark2}`,boxSizing:"border-box"}})}),m("span",{style:{fontSize:"3.32cqw",fontWeight:600,color:x.text,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},children:e}),m("span",{style:{fontSize:"3.32cqw",color:x.muted},children:o})]},e))})}),tyresizes:m(De,{title:"Available sizes",children:m("div",{style:{flex:1,display:"flex",flexWrap:"wrap",gap:4,alignContent:"center"},children:["265/65R17","285/70R17","265/60R18","275/55R20"].map((e,o)=>m("span",{style:{fontSize:"3.65cqw",fontWeight:600,padding:"5px 7px",borderRadius:3,border:`1px solid ${o===0?x.rust:x.rule}`,color:o===0?x.rust:x.text,background:o===0?x.paper:x.card},children:e},e))})}),tyrefitment:R(De,{title:"Will it fit your car?",children:[m("div",{style:{display:"flex",gap:3},children:["Make","Model","Year","Trim"].map(e=>R("span",{style:{flex:1,minWidth:0,fontSize:"3.32cqw",color:x.muted,background:x.paper,border:`1px solid ${x.rule}`,borderRadius:3,padding:"4px 5px",display:"flex",justifyContent:"space-between",gap:2,overflow:"hidden",whiteSpace:"nowrap"},children:[e," ",m("span",{style:{color:x.muted},children:"\u25BE"})]},e))}),m("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])=>R("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"baseline",gap:6,borderTop:`1px solid ${x.rule}`,paddingTop:3},children:[m("span",{style:{fontSize:"3.32cqw",fontWeight:600,color:x.text},children:e}),m("span",{style:{fontSize:"3.32cqw",fontWeight:t?700:400,letterSpacing:"0.06em",color:t?x.warm:x.muted},children:o})]},e))})]}),eutyrelabel:R("div",{style:{...Y,background:x.card,padding:"9px 11px",display:"flex",gap:8,alignItems:"center"},children:[m("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:1.5},children:[["A","42%"],["B","56%"],["C","70%"],["D","84%"]].map(([e,o],t)=>R("div",{style:{display:"flex",alignItems:"center",gap:3},children:[m("span",{style:{width:o,height:6,borderRadius:"0 2px 2px 0",background:t===1?x.rust:x.mark1}}),m("span",{style:{fontSize:"3.32cqw",fontWeight:700,color:t===1?x.rust:x.muted},children:e})]},e))}),R("div",{style:{flex:"none",display:"flex",flexDirection:"column",gap:3,alignItems:"center"},children:[m("b",{style:{fontSize:"6.63cqw",lineHeight:1,color:x.text},children:"72"}),m("span",{style:{fontSize:"3.32cqw",letterSpacing:"0.08em",color:x.muted},children:"dB"})]})]}),bundleoffer:R("div",{style:{...Y,background:x.paper,padding:"9px 11px",display:"flex",flexDirection:"column",gap:5,justifyContent:"center"},children:[m(Fm,{children:"Buy it with"}),R("div",{style:{display:"flex",alignItems:"center",gap:5},children:[[0,1].map(e=>m("span",{style:{width:26,height:22,borderRadius:3,flex:"none",position:"relative",overflow:"hidden",background:x.card},children:m(Wr,{size:17,style:{left:"50%",top:"50%",transform:"translate(-50%,-50%)"}})},e)),m("span",{style:{fontSize:"5.69cqw",fontWeight:700,color:x.muted},children:"+"}),R("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:1},children:[m("span",{style:{fontSize:"3.65cqw",color:x.muted,textDecoration:"line-through"},children:"$1,024"}),m("b",{style:{fontSize:"6.02cqw",color:x.rust,lineHeight:1},children:"$899"})]})]})]}),checkoutcta:R("div",{style:{...Y,display:"flex",alignItems:"center",justifyContent:"space-between",padding:"0 13px",gap:8,...je(x.ink,x.ink2)},children:[R("div",{style:{display:"flex",flexDirection:"column",gap:2},children:[m("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.12em",color:x.warm,fontWeight:700},children:"READY TO ORDER"}),m("b",{style:{fontSize:"6.63cqw",color:x.onInk,lineHeight:1},children:"$1,956"}),m("span",{style:{fontSize:"3.65cqw",color:x.onInk,opacity:.65},children:"4 items \xB7 fitted free"})]}),m("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.12em",fontWeight:700,padding:"6px 10px",borderRadius:2,background:x.warm,color:x.ink,flex:"none"},children:"CHECKOUT"})]}),contact:m(De,{title:"Who do you need?",children:m("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])=>R("div",{style:{display:"flex",alignItems:"center",gap:5},children:[m("b",{style:{flex:1,fontSize:"4.31cqw",color:x.text},children:e}),m("span",{style:{fontSize:"3.65cqw",color:x.muted},children:o}),m("span",{style:{fontSize:"4.64cqw",color:x.rust,lineHeight:1},children:"\u203A"})]},e))})}),contactlocations:m(De,{title:"Find us",children:m("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])=>R("div",{style:{border:`1px solid ${x.rule}`,borderRadius:4,padding:"5px 6px",display:"flex",flexDirection:"column",gap:1},children:[m("b",{style:{fontSize:"4.31cqw",color:x.text},children:e}),m("span",{style:{fontSize:"3.32cqw",color:x.muted},children:o}),m("span",{style:{fontSize:"3.32cqw",color:x.rust,fontWeight:700},children:t})]},e))})}),citypictures:m(De,{title:"Our studios",children:R("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:3,minHeight:0},children:[m("span",{style:{fontSize:"3.32cqw",letterSpacing:"0.12em",fontWeight:700,color:x.muted},children:"A \xB7 AMERICAS"}),m("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(3,1fr)",gap:4,minHeight:0},children:["Los Angeles","Miami","Toronto"].map(e=>R("div",{style:{position:"relative",minHeight:0},children:[m(j,{r:3,style:{...Y,background:`linear-gradient(transparent 45%,${x.scrim} 45%),${je(x.ink,x.inkSoft2).background}`}}),m("b",{style:{position:"absolute",left:5,bottom:4,fontSize:"3.65cqw",color:x.onInk},children:e})]},e))})]})}),citymaps:m(De,{title:"Find us",children:m("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])=>R("div",{style:{position:"relative",padding:"4px 5px",display:"flex",flexDirection:"column",gap:2,minHeight:0},children:[m(j,{r:4,style:{...Y,background:"none",border:`1px solid ${x.rule}`}}),m("b",{style:{position:"relative",fontSize:"4.31cqw",color:x.text},children:e}),m("span",{style:{position:"relative",fontSize:"3.32cqw",color:x.muted},children:o}),R("div",{style:{flex:1,minHeight:0,position:"relative"},children:[m(j,{r:3,style:{...Y,...je(x.paper,x.paper2,150)}}),m(j,{w:"60%",h:"60%",r:8,style:{position:"absolute",left:"12%",top:"20%",background:x.mark1,opacity:.75}}),m(j,{w:6,h:6,r:3,style:{position:"absolute",left:"44%",top:"34%",background:x.rust}})]})]},e))})}),form:m(De,{title:"Send us a message",children:R("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[R("div",{style:{display:"flex",gap:5},children:[m(Lm,{label:"Name"}),m(Lm,{label:"Email"})]}),m(Lm,{label:"Message",filled:!0}),m(mM,{children:"SEND"})]})}),appointmentbooking:m(De,{title:"Book a fitting",children:R("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[m("div",{style:{display:"flex",gap:3},children:["Mon","Tue","Wed","Thu"].map((e,o)=>m("span",{style:{flex:1,textAlign:"center",fontSize:"3.32cqw",fontWeight:o===2?700:500,padding:"4px 0",borderRadius:3,background:o===2?x.text:x.paper,color:o===2?x.onInk:x.muted},children:e},e))}),m("div",{style:{display:"flex",gap:3},children:["8:00","10:30","13:00","15:30"].map((e,o)=>m("span",{style:{flex:1,textAlign:"center",fontSize:"3.32cqw",padding:"4px 0",borderRadius:3,border:`1px solid ${o===1?x.rust:x.rule}`,color:o===1?x.rust:x.muted,background:o===3?x.paper:x.card,textDecoration:o===3?"line-through":"none"},children:e},e))})]})}),reviewform:m(De,{title:"Leave a review",children:R("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:5,justifyContent:"center"},children:[m(Ow,{filled:4,size:14}),m(Lm,{label:"Your review",filled:!0}),m(mM,{children:"POST"})]})}),submitbuild:m(De,{title:"Show us your build",children:R("div",{style:{flex:1,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:3,border:`1px dashed ${x.mark1}`,borderRadius:5,background:x.paper},children:[m("span",{style:{fontSize:"6.63cqw",lineHeight:1,color:x.rust,fontWeight:300},children:"+"}),m("span",{style:{fontSize:"3.65cqw",color:x.muted},children:"Drop a photo of your rig"})]})}),masthead:R("div",{style:{...Y,background:x.paper,display:"flex",flexDirection:"column",justifyContent:"center",padding:"0 13px",gap:5},children:[m("span",{style:{height:1.5,background:x.text}}),m("span",{style:{fontSize:"7.65cqw",fontWeight:800,letterSpacing:"0.02em",color:x.text,lineHeight:1},children:"THE TRACK"}),R("div",{style:{display:"flex",justifyContent:"space-between",fontSize:"3.65cqw",letterSpacing:"0.1em",textTransform:"uppercase",color:x.muted},children:[m("span",{children:"Issue 14"}),m("span",{children:"Spring 2026"})]}),m("span",{style:{height:1,background:x.rule}})]}),featuredcover:R("div",{style:{...Y,overflow:"hidden",...je(x.ink,x.inkSoft2)},children:[m(Wr,{size:92,style:{right:-18,top:-14}}),m("div",{style:{position:"absolute",inset:0,background:`linear-gradient(0deg,${x.scrim},transparent 62%)`}}),R("div",{style:{position:"absolute",left:12,right:12,bottom:11,display:"flex",flexDirection:"column",gap:3},children:[m("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.16em",fontWeight:700,color:x.warm},children:"FEATURE"}),m("span",{style:{fontSize:"6.16cqw",lineHeight:1.15,fontWeight:700,color:x.onInk},children:"Four days on the Madigan Line"})]})]}),longread:R("div",{style:{...Y,background:x.card,padding:"10px 14px",display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[m("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.14em",fontWeight:700,color:x.rust},children:"12 MIN READ"}),m("span",{style:{fontSize:"6.02cqw",lineHeight:1.15,fontWeight:700,color:x.text},children:"What breaks first, and why"}),m(ho,{children:"Every failure starts in the same place:"}),m(ho,{w:"80%",children:"the bolt nobody re-torqued."})]}),articlebody:R("div",{style:{...Y,background:x.card,padding:"10px 22px",display:"flex",flexDirection:"column",gap:4,justifyContent:"center",alignItems:"center",textAlign:"center"},children:[m("span",{style:{fontSize:"4.97cqw",lineHeight:1.2,fontWeight:700,color:x.text},children:"Why offset beats width"}),m(ho,{w:"100%",children:"A wider wheel adds grip only if the offset still"}),m(ho,{w:"88%",children:"clears the arch, so the offset is chosen first."}),m(ho,{w:"80%",children:"Width follows from the space left."})]}),series:m(De,{title:"Recurring columns",children:m("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])=>R("div",{style:{display:"flex",alignItems:"center",gap:6},children:[m("span",{style:{width:3,height:12,borderRadius:2,background:x.rust,flex:"none"}}),m("b",{style:{flex:1,fontSize:"4.64cqw",color:x.text},children:e}),m("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.08em",textTransform:"uppercase",color:x.muted},children:o})]},e))})}),events:m(De,{title:"Latest posts",children:m("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:5,justifyContent:"center"},children:[[x.inkSoft,x.inkSoft2,"Madigan Line, four days"],[x.rust,x.warm,"Why offset beats width"]].map(([e,o,t])=>R("div",{style:{display:"flex",gap:6,alignItems:"center"},children:[m("span",{style:{width:24,height:18,borderRadius:3,flex:"none",...je(e,o,150)}}),R("div",{style:{display:"flex",flexDirection:"column",gap:1,minWidth:0},children:[m("b",{style:{fontSize:"4.31cqw",color:x.text},children:t}),m("span",{style:{fontSize:"3.65cqw",color:x.muted},children:"4 Sep \xB7 Shed Notes"})]})]},t))})}),docmasthead:R("div",{style:{...Y,background:x.card,padding:"12px 14px",display:"flex",flexDirection:"column",gap:5,justifyContent:"center"},children:[m("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.16em",fontWeight:700,color:x.muted},children:"POLICY"}),m("span",{style:{fontSize:"6.49cqw",fontWeight:700,color:x.text,lineHeight:1.1},children:"Returns & refunds"}),m("span",{style:{fontSize:"3.65cqw",color:x.muted},children:"Version 3 \xB7 Updated 4 Sep 2026"}),m("span",{style:{height:2,width:26,background:x.rust,borderRadius:1}})]}),docbody:m("div",{style:{...Y,background:x.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])=>R("div",{style:{display:"flex",gap:5},children:[m("b",{style:{fontSize:"3.98cqw",color:x.rust,flex:"none"},children:e}),m(ho,{children:o})]},e))}),docmetacards:m(De,{title:"At a glance",children:m("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])=>R("div",{style:{border:`1px solid ${x.rule}`,borderRadius:4,padding:"5px 6px",display:"flex",flexDirection:"column",gap:1},children:[m("b",{style:{fontSize:"5.31cqw",color:x.text,lineHeight:1},children:e}),m("span",{style:{fontSize:"3.32cqw",letterSpacing:"0.08em",textTransform:"uppercase",color:x.muted},children:o})]},o))})}),doctabs:R("div",{style:{...Y,background:x.card,display:"flex",flexDirection:"column",justifyContent:"center",gap:0,padding:"0 11px"},children:[m("div",{style:{display:"flex",gap:0},children:["Returns","Warranty","Shipping"].map((e,o)=>m("span",{style:{fontSize:"3.98cqw",fontWeight:o===0?700:500,padding:"5px 8px",color:o===0?x.text:x.muted,background:o===0?x.paper:"transparent",borderRadius:"4px 4px 0 0",border:`1px solid ${o===0?x.rule:"transparent"}`,borderBottom:"none"},children:e},e))}),m("span",{style:{height:1,background:x.rule}}),R("div",{style:{paddingTop:6,display:"flex",flexDirection:"column",gap:2},children:[m(ho,{children:"Unfitted wheels come back within 30 days, no questions."}),m(ho,{w:"58%",children:"Freight on a change of mind is yours."})]})]}),paragraphs:R("div",{style:{...Y,background:x.card,padding:"11px 14px",display:"flex",gap:10,alignItems:"center"},children:[m("span",{style:{flex:1,fontSize:"5.86cqw",lineHeight:1.2,fontWeight:700,color:x.text},children:"The right wheel is the boring one."}),R("div",{style:{flex:1,display:"flex",flexDirection:"column"},children:[m(ho,{children:"Forged, correctly offset, rated for what you actually"}),m(ho,{children:"carry. Everything else is a photograph."})]})]}),keyfeatures:m(De,{title:"Key features",children:m("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=>R("div",{style:{display:"flex",gap:6,alignItems:"center"},children:[m("span",{style:{fontSize:"4.64cqw",color:x.rust,fontWeight:700,lineHeight:1},children:"\u2713"}),m("span",{style:{fontSize:"4.31cqw",color:x.text},children:e})]},e))})}),statsparagraph:R("div",{style:{...Y,background:x.paper,padding:"10px 12px",display:"flex",gap:10,alignItems:"center"},children:[R("div",{style:{flex:"none",display:"flex",flexDirection:"column",gap:5},children:[m(Td,{n:"27k",label:"Rigs"}),m(Td,{n:"4.9",label:"Rating"})]}),R("div",{style:{flex:1,display:"flex",flexDirection:"column"},children:[m(ho,{children:"Twelve years of fitting the same three questions, and the"}),m(ho,{children:"answer has not moved: load rating, offset, then looks."})]})]}),chart:R(De,{title:"Load vs weight",children:[m("div",{style:{flex:1,display:"flex",alignItems:"flex-end",gap:5,paddingBottom:2},children:[38,62,84,71,96].map((e,o)=>m("span",{style:{flex:1,height:`${e}%`,borderRadius:"2px 2px 0 0",background:o===4?x.rust:x.mark1}},o))}),m("span",{style:{height:1,background:x.rule,marginTop:-4}})]}),mockup:m("div",{style:{...Y,overflow:"hidden",display:"flex",alignItems:"center",justifyContent:"center",...je(x.inkSoft,x.ink)},children:R("div",{style:{width:"72%",height:"74%",borderRadius:4,overflow:"hidden",background:x.card,boxShadow:`0 6px 14px ${x.scrim}`},children:[m("div",{style:{height:9,background:x.paper,display:"flex",alignItems:"center",gap:2,padding:"0 4px"},children:[0,1,2].map(e=>m("span",{style:{width:2.5,height:2.5,borderRadius:"50%",background:x.mark1}},e))}),R("div",{style:{padding:5,display:"flex",flexDirection:"column",gap:3},children:[m("span",{style:{height:4,width:"56%",borderRadius:1,background:x.mark2}}),m("span",{style:{height:14,borderRadius:2,...je(x.paper,x.paper2,150)}}),m("span",{style:{height:3,width:"38%",borderRadius:1,background:x.rust}})]})]})}),manifesto:m("div",{style:{...Y,overflow:"hidden",display:"flex",alignItems:"center",padding:"0 16px",...je(x.ink,x.ink2)},children:R("span",{style:{fontSize:"6.63cqw",lineHeight:1.2,fontWeight:700,color:x.onInk},children:["We build for the ",m("span",{style:{color:x.warm},children:"last"})," ten percent of the track."]})}),timeline:m(De,{title:"Our story",children:m("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)=>R("div",{style:{display:"flex",gap:7,alignItems:"flex-start",position:"relative"},children:[t<2&&m("span",{style:{position:"absolute",left:3,top:8,bottom:-8,width:1,background:x.rule}}),m("span",{style:{width:7,height:7,borderRadius:"50%",flex:"none",marginTop:1,background:x.rust,zIndex:1}}),R("div",{style:{display:"flex",flexDirection:"column",gap:0,minWidth:0},children:[m("b",{style:{fontSize:"4.64cqw",color:x.text},children:e}),m(ho,{children:o})]})]},e))})}),timelinetrack:R("div",{style:{...Y,padding:"0 12px",display:"flex",flexDirection:"column",gap:10,justifyContent:"center",...je(x.ink,x.inkSoft)},children:[m("span",{style:{fontSize:"3.98cqw",fontWeight:700,letterSpacing:"0.14em",textTransform:"uppercase",color:x.warm},children:"Milestones"}),R("div",{style:{position:"relative",display:"flex",justifyContent:"space-between",paddingTop:7},children:[m("span",{style:{position:"absolute",left:0,right:0,top:3,height:1,background:x.mark2,opacity:.55}}),["1998","2009","2016","2024"].map((e,o)=>R("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:3,position:"relative"},children:[m("span",{style:{position:"absolute",top:-7,width:6,height:6,borderRadius:"50%",background:o===3?x.warm:x.mark1}}),m("span",{style:{fontSize:"4.31cqw",fontWeight:700,color:o===3?x.warm:x.onInk,opacity:o===3?1:.75},children:e})]},e))]})]}),footprint:R("div",{style:{...Y,overflow:"hidden",...je(x.paper,x.paper2,150)},children:[m("span",{style:{position:"absolute",left:"8%",top:"18%",width:"62%",height:"64%",borderRadius:"48% 52% 40% 60% / 55% 45% 55% 45%",background:x.mark1,opacity:.75}}),m("span",{style:{position:"absolute",left:"52%",top:"52%",width:"34%",height:"34%",borderRadius:"58% 42% 55% 45% / 45% 58% 42% 55%",background:x.mark2,opacity:.55}}),[["26%","38%"],["44%","58%"],["62%","34%"]].map(([e,o])=>m("span",{style:{position:"absolute",left:e,top:o,width:7,height:7,borderRadius:"50% 50% 50% 0",transform:"rotate(-45deg)",background:x.rust}},e)),m("span",{style:{position:"absolute",left:11,bottom:9,fontSize:"4.64cqw",fontWeight:700,color:x.text},children:"3 fitting bays"})]}),banner:R("div",{style:{...Y,display:"flex",alignItems:"center",justifyContent:"space-between",padding:"0 13px",gap:8,background:x.rust},children:[R("div",{style:{display:"flex",flexDirection:"column",gap:2},children:[m("b",{style:{fontSize:"6.02cqw",color:x.onInk},children:"End of season \xB7 20% off"}),m("span",{style:{fontSize:"3.98cqw",color:x.onInk,opacity:.8},children:"Fitted free, this month only."})]}),m("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.12em",fontWeight:700,padding:"5px 9px",borderRadius:2,background:x.onInk,color:x.text,flex:"none"},children:"SHOP"})]}),titlewithbuttons:R("div",{style:{...Y,background:x.paper,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:7,padding:"0 14px",textAlign:"center"},children:[m("span",{style:{fontSize:"6.49cqw",lineHeight:1.15,fontWeight:700,color:x.text},children:"Not sure what fits?"}),R("div",{style:{display:"flex",gap:5},children:[m("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.12em",fontWeight:700,padding:"5px 9px",borderRadius:2,background:x.text,color:x.onInk},children:"FIND MY FIT"}),m("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.12em",fontWeight:700,padding:"5px 9px",borderRadius:2,border:`1px solid ${x.text}`,color:x.text},children:"CALL US"})]})]}),ticker:m("div",{style:{...Y,overflow:"hidden",background:x.ink,display:"flex",alignItems:"center"},children:m("span",{style:{whiteSpace:"nowrap",fontSize:"6.29cqw",fontWeight:800,letterSpacing:"0.06em",color:x.warm,marginLeft:-14},children:"FREE FITTING \xB7 48HR DISPATCH \xB7 FREE FITTING \xB7 48HR DISPATCH"})}),countdown:R("div",{style:{...Y,padding:"10px 12px",display:"flex",flexDirection:"column",alignItems:"center",gap:6,justifyContent:"center",...je(x.ink,x.ink2)},children:[m("span",{style:{fontSize:"3.65cqw",fontWeight:700,letterSpacing:"0.16em",textTransform:"uppercase",color:x.muted},children:"Back online in"}),m("div",{style:{display:"flex",alignItems:"flex-start",gap:5},children:[["23","Hours"],["59","Minutes"],["48","Seconds"]].map(([e,o],t)=>R("div",{style:{display:"flex",alignItems:"flex-start",gap:5},children:[t>0&&m("b",{style:{fontSize:"9.5cqw",lineHeight:1,color:x.warm},children:":"}),R("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:2},children:[m("b",{style:{fontSize:"11.5cqw",lineHeight:1,color:x.onInk,fontVariantNumeric:"tabular-nums"},children:e}),m("span",{style:{fontSize:"3.2cqw",letterSpacing:"0.1em",textTransform:"uppercase",opacity:.62,color:x.onInk},children:o})]})]},o))})]}),breadcrumb:m("div",{style:{...Y,background:x.card,display:"flex",alignItems:"center",padding:"0 13px"},children:R("span",{style:{fontSize:"4.64cqw",color:x.muted},children:["Home ",m("span",{style:{opacity:.5},children:"/"})," Wheels ",m("span",{style:{opacity:.5},children:"/"})," ",m("span",{style:{color:x.text,fontWeight:700},children:"20 inch"})]})}),categorybar:R("div",{style:{...Y,background:x.card,display:"flex",flexDirection:"column",justifyContent:"center",gap:7,padding:"0 11px"},children:[m("div",{style:{display:"flex",gap:5},children:["All","Wheels","Tyres","Lift"].map((e,o)=>m("span",{style:{fontSize:"3.98cqw",fontWeight:o===0?700:500,padding:"4px 7px",borderRadius:99,background:o===0?x.text:x.paper,color:o===0?x.onInk:x.muted},children:e},e))}),m("span",{style:{height:1,background:x.rule}})]}),intro:R("div",{style:{...Y,overflow:"hidden",background:x.card},children:[m("div",{style:{position:"absolute",inset:0,...je(x.ink,x.inkSoft2)}}),m(Wr,{size:64,style:{right:8,top:6}}),R("div",{style:{position:"absolute",left:16,right:16,bottom:8,top:"46%",background:x.paper,borderRadius:6,padding:"8px 11px",display:"flex",flexDirection:"column",gap:2,boxShadow:`0 -4px 10px ${x.scrim}`},children:[m("span",{style:{fontSize:"5.69cqw",fontWeight:700,color:x.text},children:"Since 1998"}),m(ho,{children:"One shed, one lathe, one idea."}),m(ho,{w:"66%",children:"It turned out to be right."})]})]}),gallerygrid:m(De,{title:"Photo gallery",children:m("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(3,1fr)",gridTemplateRows:"repeat(2,1fr)",gap:4,minHeight:0},children:[[x.rust,x.warm],[x.inkSoft,x.ink],[x.paper2,x.mark2],[x.ink,x.inkSoft2],[x.warm,x.paper2],[x.mark2,x.inkSoft]].map(([e,o],t)=>m("div",{style:{borderRadius:3,...je(e,o,140+t*22)}},t))})}),gallery:R(De,{title:"Gallery",children:[m("div",{style:{display:"flex",gap:8,alignItems:"center",marginTop:-2},children:["On the truck","Studio","Close-ups"].map((e,o)=>m("span",{style:{fontSize:"3.98cqw",fontWeight:o===0?700:500,color:o===0?x.text:x.muted,borderBottom:`1.5px solid ${o===0?x.rust:"transparent"}`,paddingBottom:2},children:e},e))}),m("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(3,1fr)",gap:4,minHeight:0},children:[[x.rust,x.warm],[x.ink,x.inkSoft],[x.paper2,x.mark2]].map(([e,o],t)=>m("div",{style:{borderRadius:3,...je(e,o,150+t*20)}},t))})]}),ordersummary:R(De,{title:"Order summary",children:[R("div",{style:{display:"flex",gap:6,alignItems:"center",paddingBottom:4},children:[m("span",{style:{width:26,height:26,borderRadius:4,position:"relative",overflow:"hidden",flex:"none",...je(x.paper,x.paper2,150)},children:m(Wr,{size:18,style:{left:"50%",top:"50%",transform:"translate(-50%,-50%)"}})}),R("div",{style:{display:"flex",flexDirection:"column",gap:1,minWidth:0},children:[m("b",{style:{fontSize:"4.31cqw",color:x.text},children:"Ridge Grappler"}),m("span",{style:{fontSize:"3.65cqw",color:x.muted},children:"20\xD79 +12 \xB7 qty 4"})]})]}),R("div",{style:{flex:1,minHeight:0,display:"flex",flexDirection:"column",justifyContent:"center"},children:[m(Hr,{k:"Subtotal",v:"$1,956"}),m(Hr,{k:"Fitting",v:"Free"}),R("div",{style:{display:"flex",justifyContent:"space-between",paddingTop:5,fontSize:"4.64cqw"},children:[m("b",{style:{color:x.text},children:"Total"}),m("b",{style:{color:x.text,fontSize:"6.02cqw"},children:"$1,956"})]})]})]}),deliveryoptions:m(De,{title:"Delivery",children:m("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])=>R("div",{style:{display:"flex",alignItems:"center",gap:6,padding:"5px 6px",borderRadius:4,border:`1px solid ${r?x.rust:x.rule}`,background:r?x.paper:x.card},children:[m("span",{style:{width:7,height:7,borderRadius:"50%",flex:"none",border:`1.5px solid ${r?x.rust:x.mark1}`,background:r?x.rust:"transparent"}}),m("span",{style:{flex:1,fontSize:"4.31cqw",fontWeight:600,color:x.text},children:e}),m("span",{style:{fontSize:"3.98cqw",color:x.muted},children:o}),m("b",{style:{fontSize:"4.31cqw",color:x.text},children:t})]},e))})}),paymentbadges:R("div",{style:{...Y,background:x.paper,display:"flex",flexDirection:"column",gap:8,justifyContent:"center",padding:"0 12px"},children:[m(Fm,{children:"Ways to pay"}),m("div",{style:{display:"flex",gap:5},children:[["VISA",x.ink],["MC",x.rust],["AMEX",x.inkSoft],["PayPal",x.ink2]].map(([e,o])=>m("span",{style:{flex:1,textAlign:"center",fontSize:"3.65cqw",fontWeight:800,letterSpacing:"0.06em",color:x.onInk,borderRadius:3,padding:"6px 0",background:o},children:e},e))})]}),stats:R("div",{style:{...Y,padding:"10px 12px",display:"flex",flexDirection:"column",gap:9,justifyContent:"center",...je(x.ink,x.ink2)},children:[m("span",{style:{fontSize:"3.98cqw",fontWeight:700,letterSpacing:"0.14em",textTransform:"uppercase",color:x.warm},children:"By the numbers"}),R("div",{style:{display:"flex",gap:8},children:[m(Td,{n:"27k",label:"Rigs fitted",tone:x.onInk}),m(Td,{n:"12",label:"Years",tone:x.onInk}),m(Td,{n:"4.9",label:"Avg rating",tone:x.warm})]})]}),testimonials:R("div",{style:{...Y,overflow:"hidden",background:x.paper,padding:"10px 11px",display:"flex",flexDirection:"column",gap:6,justifyContent:"center"},children:[m("span",{style:{position:"absolute",right:10,top:2,fontSize:"22.4cqw",lineHeight:1,fontWeight:800,color:x.rust,opacity:.16},children:"\u201D"}),m(Ow,{filled:5,size:7}),m("span",{style:{position:"relative",fontSize:"5.31cqw",lineHeight:1.35,color:x.text,fontWeight:600},children:"\u201CTook them out to the Simpson and back. Not one chip.\u201D"}),R("div",{style:{display:"flex",alignItems:"center",gap:5},children:[m(uM,{}),m("span",{style:{fontSize:"3.98cqw",color:x.muted},children:"Dave M. \xB7 Hilux N80"})]})]}),reviews:R(De,{title:"Reviews",children:[m("div",{style:{display:"flex",gap:4,height:22},children:[[x.inkSoft,x.inkSoft2],[x.rust,x.warm],[x.ink,x.inkSoft],[x.mark2,x.mark1]].map(([e,o],t)=>m("div",{style:{flex:1,borderRadius:3,...je(e,o,140+t*15)}},t))}),m("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])=>R("div",{style:{display:"flex",gap:5,alignItems:"flex-start"},children:[m(uM,{size:12}),R("div",{style:{display:"flex",flexDirection:"column",gap:1,minWidth:0},children:[R("div",{style:{display:"flex",gap:4,alignItems:"center"},children:[m("b",{style:{fontSize:"3.98cqw",color:x.text},children:e}),m(Ow,{filled:o})]}),m(ho,{children:t})]})]},e))})]}),logos:R("div",{style:{...Y,display:"flex",flexDirection:"column",gap:9,justifyContent:"center",padding:"0 12px",...je(x.ink,x.inkSoft)},children:[m("span",{style:{fontSize:"3.98cqw",fontWeight:700,letterSpacing:"0.14em",textTransform:"uppercase",color:x.warm},children:"As fitted by"}),m("div",{style:{display:"grid",gridTemplateColumns:"repeat(4,1fr)",gap:8},children:["ARB","TJM","IRONMAN","OPPOSITE"].map(e=>m("span",{style:{textAlign:"center",fontSize:"4.31cqw",fontWeight:800,letterSpacing:"0.08em",color:x.onInk,opacity:.82},children:e},e))})]}),prose:R("div",{style:{...Y,background:x.paper,padding:"11px 14px",display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[m("span",{style:{fontSize:"5.86cqw",fontWeight:700,color:x.text},children:"Why offset matters"}),R("div",{style:{display:"flex",gap:6},children:[m("span",{style:{fontSize:"15.3cqw",lineHeight:.78,fontWeight:800,color:x.rust,marginTop:1},children:"T"}),R("div",{style:{display:"flex",flexDirection:"column"},children:[m(ho,{children:"he number on the back of your wheel decides whether the"}),m(ho,{w:"76%",children:"tyre sits under the guard or an inch outside it."})]})]})]}),cards:m(De,{title:"What you get",children:m("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])=>R("div",{style:{border:`1px solid ${x.rule}`,borderRadius:4,padding:6,display:"flex",flexDirection:"column",gap:2},children:[m("span",{style:{width:11,height:11,borderRadius:3,background:x.rust,opacity:.9}}),m("b",{style:{fontSize:"3.98cqw",color:x.text},children:e}),m(ho,{children:o})]},e))})}),faq:m(De,{title:"Questions",children:m("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])=>R("div",{style:{borderBottom:`1px solid ${x.rule}`,padding:"4px 2px"},children:[R("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",gap:6},children:[m("b",{style:{fontSize:"4.31cqw",color:x.text},children:e}),m("span",{style:{fontSize:"4.64cqw",color:x.muted,lineHeight:1},children:o?"\u2212":"+"})]}),o&&m(ho,{w:"90%",children:"Use the fitment finder \u2014 it reads your build, not just the model."})]},e))})}),hero:R("div",{style:{...Y,overflow:"hidden",...je(x.ink,x.ink2)},children:[m("div",{style:{...Y,background:`linear-gradient(90deg,${x.scrim},transparent 70%)`}}),m("div",{style:{position:"relative",height:"100%",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"flex-start",padding:"12px 14px",gap:5},children:m(pM,{over:"NEW \xB7 SUMMER",overTone:x.warm,head:"Built for the worst road you own",cta:"SHOP ALL",ctaBg:x.warm,ctaFg:x.ink,tone:x.onInk})}),m(Wr,{size:104,style:{right:-24,bottom:-30}})]}),herosingle:R("div",{style:{...Y,display:"flex",background:x.paper,overflow:"hidden"},children:[m("div",{style:{flex:1,padding:12,display:"flex",flexDirection:"column",gap:5,justifyContent:"center"},children:m(pM,{over:"ALL-TERRAIN",overTone:x.rust,head:"Grip that does not ask",headSize:12,cta:"EXPLORE",ctaBg:x.text,ctaFg:x.onInk,tone:x.text})}),m("div",{style:{flex:1,position:"relative",...je(x.inkSoft,x.inkSoft2)},children:m(Wr,{size:74,style:{right:-14,top:16}})})]}),productgrid:m(De,{title:"Best sellers",children:R("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(3,1fr)",gap:5,minHeight:0},children:[m(Ew,{name:"Ridge 19",price:"$365"}),m(Ew,{name:"Ridge 29",price:"$410"}),m(Ew,{name:"Ridge 39",price:"$455"})]})}),collections:m(De,{title:"Shop by category",children:m("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(3,1fr)",gap:5,minHeight:0},children:[["Wheels",x.inkSoft,x.inkSoft2],["Tyres",x.rust,x.warm],["Lift kits",x.ink,x.inkSoft]].map(([e,o,t])=>m("div",{style:{borderRadius:4,display:"flex",alignItems:"flex-end",padding:5,color:x.onInk,...je(o,t)},children:m("span",{style:{fontSize:"3.98cqw",fontWeight:700,letterSpacing:"0.04em"},children:e})},e))})}),producthero:R("div",{style:{...Y,display:"flex",background:x.card,overflow:"hidden"},children:[m("div",{style:{flex:1.1,position:"relative",...je(x.paper,x.paper2,150)},children:m(Wr,{size:78,style:{left:"50%",top:"50%",transform:"translate(-50%,-50%)"}})}),R("div",{style:{flex:1,padding:"10px 10px 10px 8px",display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[m("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.16em",fontWeight:700,color:x.rust},children:"NITTO"}),m("b",{style:{fontSize:"6.29cqw",color:x.text},children:"Ridge Grappler"}),m("span",{style:{fontSize:"6.63cqw",fontWeight:700,color:x.text},children:"$489"}),m("span",{style:{alignSelf:"flex-start",fontSize:"3.65cqw",letterSpacing:"0.12em",fontWeight:700,padding:"4px 8px",borderRadius:2,background:x.text,color:x.onInk},children:"ADD TO CART"})]})]}),spectable:m(De,{title:"Specifications",children:R("div",{style:{flex:1,display:"flex",flexDirection:"column",justifyContent:"center"},children:[m(Hr,{k:"Diameter",v:'20"'}),m(Hr,{k:"Width",v:"9.0J"}),m(Hr,{k:"Offset",v:"+12"}),m(Hr,{k:"Load",v:"1250 kg"})]})}),fitmenttable:m(De,{title:"Will it fit?",children:R("div",{style:{flex:1,display:"flex",flexDirection:"column",justifyContent:"center"},children:[m(Hr,{k:"Hilux N80",v:"20\xD79 +12",ok:!0}),m(Hr,{k:"Ranger PX3",v:"20\xD79 +12",ok:!0}),m(Hr,{k:"LC79",v:"17\xD78 \u221210",ok:!0})]})}),processsteps:R("div",{style:{...Y,background:x.paper,padding:10,display:"flex",flexDirection:"column",gap:7,justifyContent:"center"},children:[m(Fm,{children:"How it works"}),m("div",{style:{display:"flex",gap:6},children:["Pick your rig","Match the fit","We fit it"].map((e,o)=>R("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:2},children:[m("span",{style:{width:11,height:11,borderRadius:"50%",background:x.text,color:x.onInk,fontSize:"3.98cqw",display:"flex",alignItems:"center",justifyContent:"center",fontWeight:700},children:o+1}),m("span",{style:{fontSize:"3.98cqw",color:x.text,fontWeight:600},children:e})]},e))})]}),detailrows:m("div",{style:{...Y,background:x.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=m("div",{style:{flex:1,...je(t?x.rust:x.inkSoft,t?x.warm:x.inkSoft2)}},"art"),a=R("div",{style:{flex:1.1,padding:8,display:"flex",flexDirection:"column",gap:2,justifyContent:"center"},children:[m("b",{style:{fontSize:"4.64cqw",color:x.text},children:e}),m("span",{style:{fontSize:"3.98cqw",color:x.muted,lineHeight:1.3},children:o})]},"tx");return m("div",{style:{flex:1,display:"flex",minHeight:0},children:t?[a,r]:[r,a]},e)})}),specstrip:m("div",{style:{...Y,background:x.ink,color:x.onInk,display:"flex",alignItems:"center",justifyContent:"space-around",padding:"0 8px"},children:[["5 yr","Warranty"],["Free","Fitting"],["48 hr","Dispatch"]].map(([e,o])=>R("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:1},children:[m("b",{style:{fontSize:"5.69cqw",letterSpacing:"0.02em"},children:e}),m("span",{style:{fontSize:"3.65cqw",color:x.mark2,letterSpacing:"0.1em",textTransform:"uppercase"},children:o})]},o))})},hM={subscribe:R("div",{style:{...Y,padding:13,display:"flex",flexDirection:"column"},children:[R("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:8},children:[R("div",{style:{display:"flex",alignItems:"center",gap:6},children:[m(j,{w:8,h:8,r:2,tone:"accent"}),m(j,{w:38,h:7,r:3,tone:"dark"}),m(j,{w:16,h:7,r:3,tone:"accent"})]}),m(j,{w:38,h:4,r:2,tone:"soft"})]}),m("div",{style:{height:1,background:bo.line,marginBottom:10}}),R("div",{style:{flex:1,display:"flex",gap:10,border:`1px solid ${bo.line}`,borderRadius:7,padding:10},children:[R("div",{style:{flex:1.1,display:"flex",flexDirection:"column",justifyContent:"center",gap:5},children:[m(j,{w:"46%",h:3,r:2,tone:"accent"}),m(j,{w:"84%",h:8,r:4,tone:"dark"}),m(j,{w:"56%",h:8,r:4,tone:"accent"}),m(j,{w:"96%",h:3,r:2,tone:"soft",style:{marginTop:2}}),R("div",{style:{display:"flex",gap:5,marginTop:4},children:[m("div",{style:{flex:1,height:13,borderRadius:5,border:`1px solid ${bo.line}`,background:bo.block}}),m(j,{w:34,h:13,r:5,tone:"accent"})]})]}),R("div",{style:{flex:1,background:bo.block,borderRadius:6,padding:8,display:"flex",flexDirection:"column",gap:6},children:[m(j,{w:"52%",h:4,r:2,tone:"accent"}),Array.from({length:3}).map((e,o)=>R("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",gap:6,borderTop:o?`1px solid ${bo.line}`:"none",paddingTop:o?4:0},children:[m(j,{w:34,h:4,r:2,tone:"dark"}),m(j,{w:16,h:3,r:2,tone:"soft"})]},o))]})]})]}),split:R("div",{style:{...Y,display:"flex"},children:[m("div",{style:{width:"44%",background:Pw}}),R("div",{style:{flex:1,padding:15,display:"flex",flexDirection:"column",justifyContent:"center",gap:7},children:[m(j,{w:"44%",h:5,r:3,tone:"accent"}),m(j,{w:"88%",h:8,r:4,tone:"dark"}),m(j,{w:"70%",h:8,r:4,tone:"dark"}),m(j,{w:"94%",h:5,r:2,tone:"soft",style:{marginTop:2}}),m(j,{w:"80%",h:5,r:2,tone:"soft"}),m(j,{w:"40%",h:13,r:6,tone:"accent",style:{marginTop:5}})]})]}),sectionheader:R(xM,{children:[m(j,{w:"18%",h:6,r:3,tone:"accent",style:{position:"absolute",top:15,right:16}}),R("div",{style:{...Y,padding:16,display:"flex",flexDirection:"column",justifyContent:"center",gap:10},children:[R("div",{style:{display:"flex",alignItems:"center",gap:9},children:[m(j,{w:16,h:16,r:4,tone:"accent"}),m(j,{w:"20%",h:9,r:4,tone:"dark"})]}),m(j,{w:"62%",h:10,r:5,tone:"dark"}),m(j,{w:"42%",h:6,r:3,tone:"soft"})]})]}),header:m("div",{style:{...Y,padding:14,display:"flex",flexDirection:"column",justifyContent:"center"},children:R("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[m(j,{w:"22%",h:12,r:4,tone:"dark"}),R("div",{style:{display:"flex",gap:9,alignItems:"center"},children:[m(j,{w:26,h:6,r:3,tone:"soft"}),m(j,{w:26,h:6,r:3,tone:"soft"}),m(j,{w:26,h:6,r:3,tone:"soft"}),m(j,{w:18,h:14,r:5,tone:"accent"})]})]})}),footer:R("div",{style:{...Y,padding:15,display:"flex",flexDirection:"column",justifyContent:"center",gap:12},children:[R("div",{style:{display:"flex",gap:14},children:[R("div",{style:{flex:1.4,display:"flex",flexDirection:"column",gap:6},children:[m(j,{w:"60%",h:9,r:4,tone:"dark"}),m(j,{w:"90%",h:5,r:2,tone:"soft"}),m(j,{w:"70%",h:5,r:2,tone:"soft"})]}),[0,1].map(e=>R("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:6},children:[m(j,{w:"50%",h:6,r:3,tone:"dark"}),m(j,{w:"80%",h:5,r:2,tone:"soft"}),m(j,{w:"66%",h:5,r:2,tone:"soft"})]},e))]}),m("div",{style:{height:1,background:bo.line}}),R("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[m(j,{w:"30%",h:5,r:2,tone:"soft"}),m(j,{w:"16%",h:5,r:2,tone:"soft"})]})]}),grid:m("div",{style:{...Y,padding:14,display:"grid",gridTemplateColumns:"1fr 1fr",gridTemplateRows:"1fr 1fr",gap:9},children:Array.from({length:4}).map((e,o)=>m("div",{style:{borderRadius:6,background:bo.block}},o))}),blanksection:m("div",{style:{...Y,padding:14,display:"flex"},children:R("div",{style:{flex:1,border:`1px dashed ${bo.line}`,borderRadius:7,display:"flex",alignItems:"center",justifyContent:"center",position:"relative"},children:[m(j,{w:14,h:2,r:1,tone:"tint"}),m(j,{w:2,h:14,r:1,tone:"tint",style:{position:"absolute"}})]})}),spacer:R("div",{style:{...Y,padding:14,display:"flex",flexDirection:"column",justifyContent:"space-between"},children:[m(j,{w:"100%",h:6,r:3,tone:"soft"}),m(j,{w:16,h:22,r:3,tone:"block",style:{alignSelf:"center"}}),m(j,{w:"100%",h:6,r:3,tone:"soft"})]}),divider:m("div",{style:{...Y,padding:14,display:"flex",alignItems:"center"},children:m(j,{w:"100%",h:3,r:2,tone:"dark"})}),customhtml:R("div",{style:{...Y,display:"flex",alignItems:"center",justifyContent:"center",gap:8,background:Pw},children:[m(j,{w:5,h:16,r:2,tone:"dark",style:{transform:"skewX(-14deg)"}}),m(j,{w:16,h:10,r:3,tone:"accent"}),m(j,{w:5,h:16,r:2,tone:"dark",style:{transform:"skewX(14deg)"}})]}),heading:m("div",{style:{...Y,padding:14,display:"flex",alignItems:"center"},children:m(j,{w:"64%",h:13,r:4,tone:"dark"})}),text:R("div",{style:{...Y,padding:16,display:"flex",flexDirection:"column",justifyContent:"center",gap:7},children:[m(j,{w:"100%",h:6,r:3,tone:"soft"}),m(j,{w:"96%",h:6,r:3,tone:"soft"}),m(j,{w:"100%",h:6,r:3,tone:"soft"}),m(j,{w:"58%",h:6,r:3,tone:"soft"})]}),image:m("div",{style:{position:"absolute",inset:14,borderRadius:7,background:Pw}}),button:m("div",{style:{...Y,display:"flex",alignItems:"center",justifyContent:"center"},children:m(j,{w:"34%",h:16,r:8,tone:"accent"})}),menu:R("div",{style:{...Y,padding:"14px 22%",display:"flex",flexDirection:"column",justifyContent:"center",gap:7},children:[m(j,{w:"48%",h:7,r:3,tone:"dark"}),m(j,{w:"82%",h:5,r:2,tone:"soft"}),m(j,{w:"66%",h:5,r:2,tone:"soft"}),m(j,{w:"74%",h:5,r:2,tone:"soft"}),m(j,{w:"58%",h:5,r:2,tone:"soft"})]}),emailform:R("div",{style:{...Y,padding:16,display:"flex",flexDirection:"column",justifyContent:"center",gap:9},children:[m(j,{w:"56%",h:8,r:3,tone:"dark"}),R("div",{style:{display:"flex",gap:6},children:[m("div",{style:{flex:1,height:16,borderRadius:5,border:`1px solid ${bo.line}`}}),m(j,{w:"30%",h:16,r:5,tone:"accent"})]})]}),sociallogos:m("div",{style:{...Y,display:"flex",alignItems:"center",justifyContent:"center",gap:9},children:[0,1,2,3].map(e=>m(j,{w:16,h:16,r:8,tone:"dark"},e))}),paymentlogos:R("div",{style:{...Y,display:"flex",alignItems:"center",justifyContent:"center",gap:7},children:[m(j,{w:22,h:6,r:2,tone:"soft"}),[0,1,2,3].map(e=>m(j,{w:20,h:13,r:3,tone:"dark"},e))]}),search:m("div",{style:{...Y,padding:"0 18%",display:"flex",alignItems:"center"},children:R("div",{style:{flex:1,height:22,borderRadius:11,border:`1px solid ${bo.line}`,display:"flex",alignItems:"center",gap:7,padding:"0 9px"},children:[m("div",{style:{width:9,height:9,borderRadius:5,border:`2px solid ${bo.dark}`}}),m(j,{w:"46%",h:5,r:2,tone:"soft"})]})}),cart:R("div",{style:{...Y,display:"flex",alignItems:"center",justifyContent:"center",gap:7},children:[m("div",{style:{width:22,height:18,borderRadius:"3px 3px 6px 6px",border:`2px solid ${bo.dark}`}}),m("div",{style:{padding:"2px 6px",borderRadius:6,border:`1.5px solid ${bo.dark}`},children:m(j,{w:7,h:7,r:2,tone:"dark"})})]}),countryswitch:R("div",{style:{...Y,padding:14,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:5},children:[R("div",{style:{display:"flex",alignItems:"center",gap:6,padding:"4px 8px",border:`1px solid ${bo.line}`},children:[m(j,{w:22,h:6,r:2,tone:"dark"}),m(j,{w:6,h:4,r:1,tone:"soft"})]}),R("div",{style:{width:"46%",display:"flex",flexDirection:"column",gap:4,padding:6,border:`1px solid ${bo.line}`},children:[m(j,{w:"80%",h:4,r:2,tone:"accent"}),m(j,{w:"64%",h:4,r:2,tone:"soft"}),m(j,{w:"72%",h:4,r:2,tone:"soft"})]})]}),legalline:R("div",{style:{...Y,padding:16,display:"flex",flexDirection:"column",justifyContent:"center",gap:9},children:[m("div",{style:{height:1,background:bo.line}}),R("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[m(j,{w:"38%",h:5,r:2,tone:"soft"}),R("div",{style:{display:"flex",gap:5},children:[m(j,{w:14,h:5,r:2,tone:"soft"}),m(j,{w:14,h:5,r:2,tone:"soft"}),m(j,{w:14,h:5,r:2,tone:"soft"})]})]})]}),fallback:m("div",{style:{position:"absolute",inset:14,borderRadius:8,background:bo.block}})};function IM({type:e}){let o=Lle[e]??"",t=Fle[o]??hM[o]??hM.fallback;return m("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 ah}from"efficient-easel/screen/components/ScreenDocumentContext";import{jsx as dl,jsxs as gM}from"react/jsx-runtime";import Ble from"efficient-easel/screen/components/SidePanelHead";import{StylesIcon as Dle}from"efficient-easel/rail";import{Tooltip as Nle}from"efficient-shell/ui";import{HintsToggle as Mle,hintsFoldClass as Hle}from"efficient-easel/panel";import{useHints as Wle}from"efficient-easel/screen/lib/hints";function bM({tokenRef:e,siteId:o,onClose:t,onNotify:r,tab:a,onTabChange:n,revealPageGroup:s,onPageGroupRevealed:l}){let d=Ws(),{shown:c,setShown:f}=Wle();return gM("div",{className:`sf-styles ${Hle(c)}`.trim(),children:[dl(Ble,{icon:dl(Dle,{}),title:i("Styles"),context:dl(Nle,{content:i("{name} \u2014 renamed in the Console: {place}.",{name:d,place:i("Storefront \u25B8 Sites \u25B8 Settings")}),className:"sf-name-tip",children:dl("span",{className:"sf-name-text",children:d})})}),gM("div",{className:"sf-insp-body es-insp-body sf-scroll",children:[dl(Hp,{tokenRef:e,siteId:o,onNotify:r,tab:a,onTabChange:n,revealPageGroup:s,onPageGroupRevealed:l}),dl(Mle,{shown:c,onChange:f,label:i("Show hints")})]})]})}import{jsx as ko,jsxs as Ln,Fragment as Kle}from"react/jsx-runtime";import{Fragment as LM,useEffect as FM,useRef as Bw}from"react";import{useTreeDrag as BM}from"efficient-easel/drag";import{GlobeIcon as Vle,ImageIcon as qle,LocationIcon as Yle,MapIcon as Xle,TextLinesIcon as Zle,TrashIcon as DM}from"efficient-easel/icons";import{Subtree as NM,TreeRow as Ed,TreeRowAction as MM,TreeSeam as HM}from"efficient-easel/tree";import{useEaselStrings as Jle}from"efficient-easel/strings";import{createPreviewSelectionContext as Ule}from"efficient-easel/draw/client";var{Provider:hGe,useSelection:yM}=Ule("selectedLocationPartId");function SM(e,o,t){return`${e}::${o}::${t}`}function wM(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}import{isSelectionMode as Qle}from"efficient-easel/screen/lib/screen-parts";import{useSyncExternalStore as zle}from"react";var $le={level:"groups"},vM=$le,_w=new Set;function Yt(e){vM=e;for(let o of _w)o()}function Gle(e){return _w.add(e),()=>{_w.delete(e)}}var CM=()=>vM;function kM(){return zle(Gle,CM,CM)}var Pd=e=>String(e?.group??""),Aw=new WeakMap,jle=0;function Bm(e){let o=Aw.get(e);return o||(o=`loc${++jle}`,Aw.set(e,o)),o}var TM=(e,o)=>o||e||"Ungrouped",PM={photo:"",group:"",groupName:"",name:"City name",state:"State",country:"Country",timezone:"GMT \xB7 UTC +0",address:`Address line one
|
|
338
|
+
Address line two`,phone:"+00 000 0000",hours:"Mon\u2013Fri 9:00\u201318:00",lat:0,lng:0,mapsUrl:""};function Rn(e){return Hu(e,Pd,o=>String(o?.groupName??"")).map(o=>({key:o.key,name:o.name,cards:o.items.map(t=>t.item)}))}var Rw=e=>e.flatMap(o=>o.cards),EM=(e,o,t)=>Math.min(Math.max(e,o),t);function Dm(e,o,t){let r=0;for(let a=0;a<e.length;a++)if(Pd(e[a])===o){if(r===t)return a;r++}return-1}function Lw(e,o,t){let r=Rn(e);if(o<0||o>=r.length)return e;let[a]=r.splice(o,1),n=EM(o<t?t-1:t,0,r.length);return r.splice(n,0,a),Rw(r)}function Fw(e,o,t,r,a){let n=Rn(e),s=n.find(u=>u.key===o),l=n.find(u=>u.key===r);if(!s||!l||t<0||t>=s.cards.length)return e;let[d]=s.cards.splice(t,1),c=o===r?d:{...d,group:l.key,groupName:l.name};c!==d&&Aw.set(c,Bm(d));let f=EM(s===l&&t<a?a-1:a,0,l.cards.length);return l.cards.splice(f,0,c),Rw(n)}function OM(e,o){let t=Rn(e),r=t.find(n=>n.key===o),a={...PM,group:o,groupName:r?.name??""};return r?(r.cards.push(a),Rw(t)):[...e,a]}function _M(e){let o=new Set(Rn(e).map(a=>a.key)),t=o.size+1,r=`Group ${t}`;for(;o.has(r);)r=`Group ${++t}`;return{cards:[...e,{...PM,group:r,groupName:""}],key:r}}function AM(e,o){return e.filter(t=>Pd(t)!==o)}function RM(e,o,t){let r=Dm(e,o,t);return r<0?e:e.filter((a,n)=>n!==r)}function yGe(e,o,t){let r=e.flatMap((s,l)=>Pd(s)===o?[l]:[]),a=e.slice();r.forEach((s,l)=>{a[s]=t[l]});let n=t.slice(r.length);return[...a.filter(s=>s!==void 0),...n]}function SGe(e,o,t){return o.flatMap(r=>{let a=e.filter(n=>Pd(n)===r);return a.length?a:t(r)})}var Mm="ContactLocations",Nm=e=>({parentId:`locations-${e}`,slot:"groups"}),Dw=(e,o)=>({parentId:`locations-${e}`,slot:`cities:${o}`});function WM(e,o){let{readOnly:t,selected:r}=o,a=Jle().tree,n=o.data?.content??[],s=Qle(e),l=Bw(null);FM(()=>{let y=r?.type===Mm?String(r.props.id):null;y&&y!==l.current&&Yt({level:"groups"}),l.current=y},[r?.props.id]);let{selectedLocationPartId:d,setSelectedLocationPartId:c,setSelectHandler:f}=yM(),u=kM(),p=(y,b)=>{let P=n[y];P&&o.replace(y,{type:P.type,props:{...P.props,locations:b}})},h=y=>{let b=n[y]?.props?.locations;return Array.isArray(b)?b:[]},I=BM({keyOf:y=>`group:${y.si}:${y.index}`,readOnly:!!t,canDrop:(y,b)=>b.parentId===Nm(y.si).parentId&&b.slot==="groups",onDrop:(y,b)=>{p(y.si,Lw(h(y.si),y.index,b.index)),u.level==="city"&&Yt({level:"groups"})},onStep:(y,b)=>{p(y.si,Lw(h(y.si),y.index,b<0?y.index-1:y.index+2)),u.level==="city"&&Yt({level:"groups"})}}),g=BM({keyOf:y=>`city:${y.si}:${y.group}:${y.index}`,readOnly:!!t,canDrop:(y,b)=>b.parentId===Nm(y.si).parentId&&b.slot.startsWith("cities:"),onDrop:(y,b)=>{let P=b.slot.slice(7);p(y.si,Fw(h(y.si),y.group,y.index,P,b.index)),Yt({level:"group",key:P})},onStep:(y,b)=>{p(y.si,Fw(h(y.si),y.group,y.index,y.group,b<0?y.index-1:y.index+2)),u.level==="city"&&Yt({level:"group",key:y.group})}}),C=Bw(n);C.current=n;let w=Bw(()=>{});FM(()=>{f(y=>{let b=wM(y);if(!b)return;let P=C.current.findIndex(H=>H.props?.id===b.nodeId);P<0||w.current(P,{level:b.part,index:b.index})})},[f]);let T=(y,b)=>{l.current=n[y]?.props?.id??null,o.select(y),Yt(b),e.reveal();let P=n[y]?.props?.id;typeof P=="string"&&(b.level==="city"||b.level==="image"||b.level==="map")?c(SM(P,b.index,b.level)):c(null),typeof P=="string"&&o.scrollTo(P)};return w.current=T,{renderLocationTree:(y,b,{rowClick:P,isCollapsed:H,toggleCollapse:E})=>{let W=h(b),O=Rn(W),D=String(y.props.id),v=s&&r?.props.id===D,_=F=>ko(HM,{...t?{}:I.seam({place:{...Nm(b),index:F}})},`seam:${D}:groups:${F}`),A=(F,z)=>ko(HM,{...t?{}:g.seam({place:{...Dw(b,F),index:z}})},`seam:${D}:cities:${F}:${z}`);return Ln(Kle,{children:[ko(Ed,{icon:ko(Zle,{size:13}),name:i("Texts"),words:a,onSelect:()=>T(b,{level:"texts"}),selected:v&&u.level==="texts",rowProps:{onClick:P(()=>T(b,{level:"texts"}))}}),O.map((F,z)=>{let $=`${D}::grp::${F.key}`,X=H($),ee=v&&u.level==="group"&&u.key===F.key,Fe=F.name||F.key?TM(F.key,F.name):i("Ungrouped"),Oe={...Dw(b,F.key),index:F.cards.length},ze=g.row({item:{si:b,group:F.key,index:-1},place:Oe,into:Oe,canDrag:!1},{onClick:P(()=>T(b,{level:"group",key:F.key}))}),Ke=I.row({item:{si:b,index:z},place:{...Nm(b),index:z}},ze.rowProps);return Ln(LM,{children:[z===0&&_(0),ko(Ed,{icon:ko(Vle,{size:13}),name:Fe,words:a,onSelect:()=>T(b,{level:"group",key:F.key}),selected:ee,draggable:Ke.draggable,dragging:Ke.dragging,drop:Ke.drop??ze.drop,fold:{open:!X,label:i("group"),onToggle:()=>E($)},actions:ko(MM,{kind:"delete",label:Uo("Delete {label} group ({n} city)","Delete {label} group ({n} cities)",F.cards.length,{label:Fe}),onClick:()=>{p(b,AM(W,F.key)),Yt({level:"groups"})},children:ko(DM,{size:15})}),rowProps:Ke.rowProps,count:F.cards.length,countLabel:Uo("{n} city","{n} cities",F.cards.length)}),!X&&Ln(NM,{children:[F.cards.map((be,Te)=>{let _e=Dm(W,F.key,Te),Ne=v&&u.level==="city"&&u.index===_e,ao=String(be?.name??"")||i("City"),yo=`${D}::city::${Bm(be)}`,ie=H(yo),{rowProps:Me,...Ve}=g.row({item:{si:b,group:F.key,index:Te},place:{...Dw(b,F.key),index:Te}},{onClick:P(()=>T(b,{level:"city",index:_e}))});return Ln(LM,{children:[Te===0&&A(F.key,0),ko(Ed,{icon:ko(Yle,{size:13}),name:ao,words:a,onSelect:()=>T(b,{level:"city",index:_e}),selected:Ne,...Ve,fold:{open:!ie,label:ao,onToggle:()=>E(yo)},actions:ko(MM,{kind:"delete",label:i("Delete {name}",{name:ao}),onClick:()=>{p(b,RM(W,F.key,Te)),Yt({level:"group",key:F.key})},children:ko(DM,{size:15})}),rowProps:Me}),!ie&&Ln(NM,{children:[ko(Ed,{icon:ko(qle,{size:13}),name:i("Image"),words:a,onSelect:()=>T(b,{level:"image",index:_e}),selected:v&&u.level==="image"&&u.index===_e,rowProps:{onClick:P(()=>T(b,{level:"image",index:_e}))}}),ko(Ed,{icon:ko(Xle,{size:13}),name:i("Map"),words:a,onSelect:()=>T(b,{level:"map",index:_e}),selected:v&&u.level==="map"&&u.index===_e,rowProps:{onClick:P(()=>T(b,{level:"map",index:_e}))}})]}),A(F.key,Te+1)]},Bm(be))}),Ln("button",{type:"button",className:"sf-add-card",onClick:()=>{let be=OM(W,F.key);p(b,be);let Te=Rn(be).find(_e=>_e.key===F.key);Yt(Te&&Te.cards.length?{level:"city",index:Dm(be,F.key,Te.cards.length-1)}:{level:"group",key:F.key})},children:[ko("span",{className:"sf-plus sf-plus--sm",children:"+"}),i("Add city")]})]}),_(z+1)]},$)}),Ln("button",{type:"button",className:"sf-add-card",onClick:()=>{let{cards:F,key:z}=_M(W);p(b,F),T(b,{level:"group",key:z})},children:[ko("span",{className:"sf-plus sf-plus--sm",children:"+"}),i("Add group")]})]})},sectionPressed:y=>{y?.type===Mm&&Yt({level:"groups"})}}}import{useEffect as ide,useRef as dde}from"react";import{createNode as Kw,newId as Vw}from"efficient-easel/data";import{useEaselApi as cde}from"efficient-easel/easel";import{useScreenDocument as fde}from"efficient-easel/screen/components/ScreenDocumentContext";import{useEaselSession as pde}from"efficient-easel/screen/lib/session-context";import{useEffect as $H,useRef as nde}from"react";import{useEasel as sde}from"efficient-easel/easel";import{ROOT_ZONE as jw}from"efficient-easel/draw";var Od={};function UM(e){return Od={...e?.theme?{theme:e.theme}:{},...e?.site?{site:e.site}:{}},Od}function zM(e){Od===e&&(Od={})}function cl(){return Od}import{jsx as Et,jsxs as BH}from"react/jsx-runtime";import{createContext as Yie,useContext as Xie,useEffect as Zie,useRef as Jie,useState as DH}from"react";import{jsx as ga,jsxs as QM}from"react/jsx-runtime";import{useEffect as fl,useRef as eH,useState as Fn}from"react";import{jsx as $M,Fragment as eie,jsxs as oie}from"react/jsx-runtime";import{useEffect as tie,useRef as GM,useState as rie}from"react";var aie="#t=0.001",nie=2;function sie(e,o){if(e.readyState<nie||!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 jM({src:e,objectPosition:o="50% 50%",onError:t}){let r=GM(null),a=GM(null),[n,s]=rie(!1);return tie(()=>{let l=r.current,d=a.current;if(n||!l||!d)return;let c=()=>{sie(l,d)&&s(!0)};return c(),l.addEventListener("loadeddata",c),l.addEventListener("seeked",c),()=>{l.removeEventListener("loadeddata",c),l.removeEventListener("seeked",c)}},[n]),oie(eie,{children:[$M("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&&$M("video",{ref:r,src:`${e}${aie}`,muted:!0,playsInline:!0,preload:"auto",className:"hidden",onError:t})]})}import{imageCopyUrl as qM,imageSrcSet as lie}from"efficient-shell/image-copies";var KM;function Nw(){return KM===void 0?{}:{host:KM}}var WGe="(max-width: 800px) 100vw, min(100vw, 1600px)",UGe="(max-width: 960px) 100vw, 50vw";function Mw(e,{fallbackWidth:o=1280,maxWidth:t}={}){let r=lie(e,{...Nw(),...t===void 0?{}:{maxWidth:t}});return r?{src:qM(e,o,Nw()),srcSet:r}:{src:e}}var iie=/[\s"'()\\;]/,die={"\\":"\\\\",'"':'\\"',"\n":"\\a ","\r":"\\d ","\f":"\\c "};function VM(e){return e.replace(/[\\"\n\r\f]/g,o=>die[o]??o)}function zGe(e){let o=qM(e,1920,Nw());return o===e?iie.test(e)?`url("${VM(e)}")`:`url(${e})`:`url("${VM(o)}")`}import{jsx as YM}from"react/jsx-runtime";import{createContext as cie,useContext as fie,useMemo as KGe}from"react";var XM=cie(null);function ZM({children:e}){return YM(XM.Provider,{value:"below",children:e})}function _d(){return fie(XM)}function pie(){return _d()==="below"?{loading:"lazy"}:{}}function JM(e){let o=pie();return YM("img",{...e,...o})}var VGe="laterSlideIds";var uie=.5;function Ad({videoSrc:e,videoAv1Src:o,videoSrcPhone:t,videoAv1SrcPhone:r,posterSrc:a,posterSrcPhone:n,showVideo:s=!0,playbackRate:l=uie,objectPosition:d="50% 50%",objectPositionPhone:c,objectPositionTablet:f,quiet:u=!1,slideShown:p,laterSlide:h=!1,laterOfLead:I=!1}){let g=r0(c,f),C=_d(),[w,T]=Fn(!1),y=C==="below"&&!w,b=C==="first",P=a||"",H=n||"",E=eH(null),W=gd(E,!0,!0),O=W===void 0?void 0:W==="phone",D=Tc({video:e,av1:o,videoPhone:t,av1Phone:r},O===!0),v=D.video||"",_=kc(v,D.av1),[A,F]=Fn(!1),[z,$]=Fn(!1),[X,ee]=Fn(!1),[Fe,Oe]=Fn(!1),ze=p??!0,[Ke,be]=Fn(!1),Te=C!=="first"&&!I,[_e,Ne]=Fn(!1),ao=eH(null);fl(()=>{if(!Te)return;if(document.readyState==="complete"){Ne(!0);return}let J=()=>Ne(!0);return window.addEventListener("load",J,{once:!0}),()=>window.removeEventListener("load",J)},[Te]),fl(()=>{F(!1),$(!1),ee(!1),Oe(!1)},[v,P,H]),fl(()=>{ze&&be(!0)},[ze]),fl(()=>{let J=ao.current;J&&(ze?J.play()?.catch(()=>{}):J.pause())},[ze,Ke,_e]),fl(()=>{if(!h||Te&&!_e)return;let J=()=>T(!0);if(typeof window.requestIdleCallback=="function"){let ft=window.requestIdleCallback(J,{timeout:2e3});return()=>window.cancelIdleCallback(ft)}let Ae=setTimeout(J,800);return()=>clearTimeout(Ae)},[h,Te,_e]),fl(()=>{let J=ao.current;if(!J)return;let Ae=()=>{J.playbackRate=l};return Ae(),J.addEventListener("loadedmetadata",Ae),()=>J.removeEventListener("loadedmetadata",Ae)},[v,l]);let yo=Mk(P),ie=P&&(yo||H)&&!z?Mw(P):{src:P},Me=H&&!z?Mw(H):{src:H},Ve=H&&!y&&!w?[{sized:Me,media:xi},...P?[{sized:ie,media:vl}]:[]]:[];return QM("div",{ref:E,className:"absolute inset-0 z-[1]",children:[ga("div",{className:"absolute inset-0",style:{background:"var(--site-surface)"}}),Ve.map(({sized:J,media:Ae})=>ga("link",{rel:"preload",as:"image",href:J.src,media:Ae,fetchPriority:"high",...J.srcSet?{imageSrcSet:J.srcSet,imageSizes:"100vw"}:{}},Ae)),(P||H)&&(yo||H?(()=>{let J=ga("img",{...P?{src:ie.src}:{},...ie.srcSet?{srcSet:ie.srcSet,sizes:"100vw"}:{},alt:"",...y?{loading:"lazy"}:{},...b?{fetchPriority:"high"}:{},className:`absolute inset-0 z-[2] h-full w-full object-cover ${g.className}`.trim(),style:{display:A?"none":"block",objectPosition:d,...g.style},onError:Ae=>{Ae.currentTarget.currentSrc&&(ie.srcSet||Me.srcSet?$(!0):F(!0))}},H?void 0:P);return H?QM("picture",{children:[ga("source",{media:xi,srcSet:Me.srcSet||Me.src,sizes:"100vw"}),J]},`${P} ${H}`):J})():ga(TD,{src:P,alt:"",fill:!0,...y?{}:w?{loading:"eager"}:{priority:!0},sizes:"100vw",className:`z-[2] object-cover ${g.className}`.trim(),style:{display:A?"none":"block",objectPosition:d,...g.style},onError:()=>F(!0)},P)),s&&!u&&v&&O!==void 0&&Ke&&(!Te||_e)&&!X&&ga("video",{ref:ao,autoPlay:!0,loop:!0,muted:!0,playsInline:!0,preload:"metadata",className:"absolute inset-0 z-[3] h-full w-full object-cover",style:{objectPosition:d},onError:()=>ee(!0),children:_.map(J=>ga("source",{src:J.src,type:J.type},J.src))},v),s&&u&&v&&O!==void 0&&Ke&&(!Te||_e)&&!Fe&&(!P||A)&&ga(jM,{src:v,objectPosition:d,onError:()=>Oe(!0)},v)]})}import{jsx as Fo,Fragment as cH,jsxs as $w}from"react/jsx-runtime";import{jsx as pl}from"react/jsx-runtime";import{useRef as mie}from"react";import{SCROLL_EFFECTS_WITH_ZOOM as hie,scrollAttrs as xie}from"efficient-shell/format";function oH({views:e,origins:o={},boxClass:t,boxAttrs:r,boxStyle:a,takesViewHide:n=!1,atEdge:s=!1,zoomInside:l="layer",zoomLayerClass:d,children:c}){let f=mie(null),u=Sc(),p=qr(),h=n?p:os,I=Id(f,!0,s),{attrs:g,style:C}=xie(e[I],o[I]),w=hie.includes(e[I].effect),T=Yr(`${Qn}${u.fill}${t?` ${t}`:""}`,h.className);if(w&&l==="picture")return h.scope(pl("div",{ref:f,className:T,...r,...h.attrs,...a?{style:a}:{},children:pl(vk,{attrs:g,style:C,children:u.inner(c)})}));let y=pl(kk,{children:u.inner(c)});if(w){let P=d??(u.fill?"h-full":void 0);return h.scope(pl("div",{ref:f,className:T,...r,...h.attrs,style:{...a,overflow:"clip"},children:pl("div",{...P?{className:P}:{},...g,style:C,children:y})}))}let b=Object.keys(C).length||a?{style:{...a,...C}}:{};return h.scope(pl("div",{ref:f,className:T,...r,...h.attrs,...g,...b,children:y}))}import{MOTION_TIMING as Iie}from"efficient-shell/format";var nH="grayscale(1) contrast(1.03)",gje="Black and white";function gie(e){return e===!0?{filter:nH}:{}}function bie(e){let{filter:o}=gie(e);return o?{style:{filter:o}}:{}}var Bn="sf-photo-grayscale",zw="data-sf-photo-host",tH={duration:"--sf-photo-hover-duration",delay:"--sf-photo-hover-delay"},zm=`@media (hover:hover){.${Bn}{filter:${nH};transition:filter var(--sf-photo-hover-duration,var(--page-motion-hover-duration)) var(--page-ease-media) var(--sf-photo-hover-delay,var(--page-motion-hover-delay))}.${Bn}:hover,[data-sf-photo-host]:hover .${Bn}{filter:none}}@media (hover:hover) and (prefers-reduced-motion:reduce){.${Bn}{transition:none}}`;function sH(e){let o=Iie.hover,t={...e.duration!==o.duration.default?{[tH.duration]:`${e.duration}s`}:{},...e.delay!==o.delay.default?{[tH.delay]:`${e.delay}s`}:{}};return Object.keys(t).length?t:void 0}function lH(e,o,t){if(e===!0)return bie(!0);if(t?.kind==="mono"){let r=sH(t);return{className:Bn,sheet:zm,...r?{style:r}:{}}}return e===!1?{}:o===!0?{className:Bn}:{}}var iH="data-sf-repeat",Hw="sf-photo-zoom",yie="--sf-photo-zoom",bje="sf-photo-wash",Hm="sf-photo-wash-rest",Rd="sf-photo-wash-hover",Um="sf-photo-frame",dH=(e,o)=>`:not([${iH}]:not(${o}) .${e})`,Uw=(e,o)=>`[${iH}]${o} .${e}${dH(e,o)}`,Ww=(e,o)=>`${o},${Uw(e,":hover")},[${zw}]:hover .${e}${dH(e,":hover")}`,rH=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))`,Sie=`.${Rd}{opacity:0}@media (hover:hover){.${Hm},.${Rd}{transition:${rH("opacity")}}${Ww(Rd,`.${Um}:hover .${Rd}`)}{opacity:1}${Ww(Hm,`.${Um}:hover .${Hm}`)}{opacity:0}}@media (hover:hover) and (prefers-reduced-motion:no-preference){.${Hw}{transition:${rH("transform")}}${Ww(Hw,`.${Um}:hover .${Hw}`)}{transform:scale(var(${yie}))}}@media (hover:hover) and (prefers-reduced-motion:reduce){.${Hm},.${Rd}{transition:none}}`,yje="sf-photo-move";function Sje(e){if(!e||!e.zoom&&!e.darken)return null;let o=sH(e);return{className:Um,sheet:Sie,...o?{style:o}:{}}}function wje(e){return e===!0?{[Bn]:zm}:{}}var Wm="sf-box-reveal",Cje="sf-box-reveal",wie=8,aH=.3,vje=`@media ${vl}{.${Wm}{opacity:0;transform:translateY(${wie}px);transition:opacity ${aH}s ease-out,transform ${aH}s ease-out}${Uw(Wm,":hover")},${Uw(Wm,":focus-within")}{opacity:1;transform:none}}@media ${vl} and (prefers-reduced-motion:reduce){.${Wm}{transition:none;transform:none}}`;import{hidableText as Cie}from"efficient-easel/draw";var vie={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"},kie={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 fH(e){let o=e.isVideo&&aT(e.videoSource)==="youtube",t=e.isVideo&&nT(e.videoPlayback)==="click",r=o?sT(Cie(e.youtubeUrl)):null,a=Yp(e.mediaLayout);return{fromYouTube:o,onClick:t,youTubeId:r,backgroundFile:e.isVideo&&!o&&!t,desktopLayout:a,phoneLayout:Wb(e.mediaLayoutPhone,a),twoPictures:!e.isVideo&&_i(e)>1}}function Ld(e,o){return gc(In({_partMotion:e},o))}function Fd(e,o){return cu(In({_partMotion:e},o))}var $m=e=>Sy({desktop:e.objectPosition,tablet:e.objectPositionTablet,phone:e.objectPositionPhone}),pH=Kh.img;function uH({entrance:e,scroll:o,origins:t,editing:r,className:a,attrs:n,style:s,zoomLayerClass:l,children:d}){return e?Fo(uD,{views:e,editing:r,boxClass:a,boxAttrs:n,...s?{boxStyle:s}:{},children:d}):o?Fo(oH,{views:o,...t?{origins:t}:{},boxClass:a,boxAttrs:n,...s?{boxStyle:s}:{},...l?{zoomLayerClass:l}:{},children:d}):Fo("div",{className:a,...n,...s?{style:s}:{},children:d})}function ul(e,o){return lH(void 0,void 0,ev(In({_partMotion:e},o)))}function mH(e){return dn.some(o=>ul(e,o).className)?{hostAttrs:{[zw]:""},sheet:zm}:{}}function Gm({treatment:e,children:o}){return e.className?Fo("div",{className:`absolute inset-0 ${e.className}`,...e.style?{style:e.style}:{},children:o}):Fo(cH,{children:o})}function jm({color:e,opacity:o,passClicks:t=!0}){return o>0?Fo("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 Km({part:e,editing:o,marked:t=!0,entrance:r,scroll:a=null,origins:n,className:s,children:l}){let d=o&&t?{[MA]:e}:void 0;return Fo(uH,{entrance:r,scroll:a,origins:n,editing:o,className:s,attrs:d,zoomLayerClass:pH,children:l})}function hH({partMotion:e,editing:o,children:t}){let r=Ld(e,"media"),a=Fd(e,"media"),n=ul(e,"media"),s=Fo(Tk,{fill:Kh,children:t}),l=n.className?Fo("div",{className:`absolute inset-0 z-[1] ${n.className}`,...n.style?{style:n.style}:{},children:s}):s;return r||a?Fo(uH,{entrance:r,scroll:a,editing:o,className:"absolute inset-0 z-[1]",zoomLayerClass:pH,children:l}):Fo(cH,{children:l})}function xH({desktopLayout:e,phoneLayout:o,editing:t,marked:r=!0,partMotion:a,first:n,second:s,laterSlide:l=!1}){return $w("div",{className:`absolute inset-0 z-[1] grid ${vie[o]} ${kie[e]}`,"data-hero-layout":e,"data-hero-layout-phone":o,children:[Fo(Km,{part:"image",editing:t,marked:r,entrance:Ld(a,"image"),scroll:Fd(a,"image"),origins:$m(n),className:"relative overflow-hidden",children:$w(Gm,{treatment:ul(a,"image"),children:[Fo(Ad,{posterSrc:ut(n.src),showVideo:!1,laterSlide:l,objectPosition:n.objectPosition,objectPositionPhone:n.objectPositionPhone,objectPositionTablet:n.objectPositionTablet}),Fo(jm,{color:n.tintColor,opacity:n.tintOpacity})]})}),Fo(Km,{part:"image2",editing:t,marked:r,entrance:Ld(a,"image2"),scroll:Fd(a,"image2"),origins:$m(s),className:`relative overflow-hidden ${rf({desktop:e==="one",tablet:e==="one",mobile:o==="one"},{atSectionLine:!0})}`.trimEnd(),children:$w(Gm,{treatment:ul(a,"image2"),children:[Fo(Ad,{posterSrc:ut(s.src),showVideo:!1,laterSlide:l,objectPosition:s.objectPosition,objectPositionPhone:s.objectPositionPhone,objectPositionTablet:s.objectPositionTablet}),Fo(jm,{color:s.tintColor,opacity:s.tintOpacity})]})})]})}import{jsx as ba,Fragment as Tie,jsxs as Pie}from"react/jsx-runtime";import{useEffect as Eie,useRef as Oie,useState as _ie}from"react";import{PlaySolidIcon as Aie}from"efficient-shell/icons/efficient-looks";function IH({youTubeId:e,ownPoster:o,background:t,editing:r}){let[a,n]=_ie("large");return Eie(()=>n("large"),[e]),e?Pie(Tie,{children:[!o&&a!=="none"&&ba(JM,{src:a==="large"?lT(e):iT(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&&ba("div",{className:"pointer-events-none absolute inset-0 z-[3] overflow-hidden [container-type:size]","aria-hidden":"true",children:ba("iframe",{src:rx(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 gH({youTubeId:e,fileSrc:o,fileAv1Src:t,fileSrcPhone:r,fileAv1SrcPhone:a,playing:n,onPlay:s,editing:l}){let d=Oie(null),c=gd(d,!0,!0)==="phone";if(!e&&!o)return null;let f=Tc({video:o,av1:t,videoPhone:r,av1Phone:a},c),u=kc(f.video,f.av1);return n&&!l?e?ba("iframe",{src:rx(e,"click"),title:ax,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"}):ba("video",{ref:p=>{d.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=>ba("source",{src:p.src,type:p.type},p.src))},f.video):ba("button",{ref:p=>{d.current=p},type:"button","aria-label":ax,onClick:l?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 ${l?"pointer-events-none":"cursor-pointer hover:scale-105"}`,children:ba(Aie,{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 yH=["top","middle","bottom"],SH=["left","center","right"],wH="bottom",CH="left",Rie={top:"Top",middle:"Middle",bottom:"Bottom"},Lie={left:"Left",center:"Center",right:"Right"},Qje="Up and down",eKe="Sideways",Fie={top:"flex-start",middle:"center",bottom:"flex-end"},Bie={left:"flex-start",center:"center",right:"flex-end"},Die="--sf-hero-phone-y",Nie="--sf-hero-phone-x";function Mie(e){return yH.includes(e)?e:wH}function Hie(e){return SH.includes(e)?e:CH}function vH(e,o){let t=Mie(e),r=Hie(o),a={};return t!==wH&&(a[Die]=Fie[t]),r!==CH&&(a[Nie]=Bie[r]),a}function oKe(){return yH.map(e=>({label:Rie[e],value:e}))}function tKe(){return SH.map(e=>({label:Lie[e],value:e}))}import{hexToRgb as Wie}from"efficient-shell/format";var Uie=!0;var zie=[[0,".5"],[30,".1"],[60,".1"],[100,".85"]];function kH(e){let o=Wie(e);return o?`${o.r},${o.g},${o.b}`:null}function TH(e){return e==null?Uie:e!==!1}function PH(e){let o=(e?kH(e):null)??kH(Nt);return`linear-gradient(180deg, ${zie.map(([t,r])=>`rgba(${o},${r}) ${t}%`).join(", ")})`}import{hexToRgb as EH}from"efficient-shell/format";var OH="bottom";var $ie=[{label:"Bottom",value:"bottom",cell:"bottom"},{label:"Top",value:"top",cell:"top"},{label:"Left",value:"left",cell:"left"},{label:"Right",value:"right",cell:"right"}],Gie={bottom:180,top:0,left:270,right:90},jie=[[.55,0],[.15,18],[null,35],[null,55],[.85,100]],Kie=[[null,33],[.6,67],[.94,100]];function Vie(e,o){let{r:t,g:r,b:a}=EH(e)??EH(Nt);return`rgba(${t},${r},${a},${o})`}function _H(e){return io($ie,OH,e)}function AH(e=Nt,o=OH){let t=_H(o),r=(t==="top"||t==="bottom"?jie:Kie).map(([a,n])=>`${a===null?"transparent":Vie(e,a)} ${n}%`);return`linear-gradient(${Gie[t]}deg, ${r.join(", ")})`}function RH(e,o){let t=Se(e.overlayColor),r=Se(e.overlayPosition),a=Se(o)??Nt;return!t&&!r?{own:!1,color:a,position:null}:{own:!0,color:t??a,position:_H(r)}}import{jsx as qie}from"react/jsx-runtime";var LH="sf-photo-hover";function FH({sheet:e,name:o=LH}){return e?qie("style",{href:o,precedence:LH,dangerouslySetInnerHTML:{__html:e}}):null}var Qie=Yie({});function OKe({name:e,process:o,mediaType:t="video",mediaSrc:r,videoSpeed:a,poster:n,mediaAv1:s,mediaSrcPhone:l,mediaAv1Phone:d,posterPhone:c,objectPosition:f,objectPositionPhone:u,objectPositionTablet:p,tintColor:h=Nt,tintOpacity:I=0,groups:g,editing:C=!1,themeClassName:w,themeStyle:T,overlayColor:y,overlayPosition:b,mediaLayout:P,mediaLayoutPhone:H,mediaImage2:E,objectPosition2:W,objectPosition2Phone:O,objectPosition2Tablet:D,tintColor2:v=Nt,tintOpacity2:_=0,videoSource:A,youtubeUrl:F,videoPlayback:z,partMotion:$,laterSlide:X=!1}){let ee=qr(),{alignment:Fe="left",textureOpacity:Oe,textureOn:ze,textureColor:Ke,quietVideo:be,phoneUpDown:Te,phoneSideways:_e,holdReel:Ne,reelHeld:ao,shownSlide:yo,ratioMin:ie}=Xie(Qie),Me=_d(),Ve=X&&Me==="first",J=Jie(null),[Ae,ft]=DH(yo===void 0?void 0:!1);Zie(()=>{let Ca=J.current;ft(yo===void 0||!Ca?void 0:bH(Ca.closest(".hero-track"),"data-slide-name")[yo]===Ca)});let fo=t==="video",M=fo?ut(r):void 0,Le=fo?ut(n):ut(r)??ut(n),ye=fo?{av1:ut(s),phone:ut(l),av1Phone:ut(d),poster:ut(c)}:{},po=typeof a=="number"?a/100:1,{fromYouTube:Be,onClick:_t,youTubeId:hr,backgroundFile:Ze,desktopLayout:xr,phoneLayout:ya,twoPictures:Nn}=fH({isVideo:fo,videoSource:A,videoPlayback:z,youtubeUrl:F,mediaLayout:P,mediaLayoutPhone:H}),[Mn,Ir]=DH(!1);Mn&&ao===!1&&Ir(!1);let Ur=!Mn,Sa=RH({overlayColor:y,overlayPosition:b},Ke),gl=fo?null:Ld($,"image"),wa=fo?null:Fd($,"image"),jd=mH($),bl=Et(Gm,{treatment:fo?{}:ul($,"image"),children:Et(Ad,{videoSrc:Ze?M:void 0,videoAv1Src:Ze?ye.av1:void 0,videoSrcPhone:Ze?ye.phone:void 0,videoAv1SrcPhone:Ze?ye.av1Phone:void 0,posterSrc:Le,posterSrcPhone:ye.poster,showVideo:Ze,playbackRate:po,objectPosition:f,objectPositionPhone:fo?void 0:u,objectPositionTablet:fo?void 0:p,quiet:be,slideShown:Ae,laterSlide:X,laterOfLead:Ve})}),Kd=BH("section",{ref:J,className:Yr(`${ie?"relative min-h-full w-full overflow-clip":"relative h-full w-full overflow-hidden"}${w?` ${w}`:""}`,ee.className),...ee.attrs,style:T,"data-slide-name":e??"","data-slide-process":o??"","data-slide-media":Ze&&M?"video":"still",...jd.hostAttrs,children:[Et(FH,{sheet:jd.sheet}),Et(hH,{partMotion:$,editing:C,children:Nn?Et(xH,{laterSlide:X,desktopLayout:xr,phoneLayout:ya,editing:C,marked:!1,partMotion:$,first:{src:r,objectPosition:f,objectPositionPhone:u,objectPositionTablet:p,tintColor:h,tintOpacity:I},second:{src:E,objectPosition:W,objectPositionPhone:O,objectPositionTablet:D,tintColor:v,tintOpacity:_}}):Be||gl||wa?BH(Km,{part:fo?"media":"image",editing:C,marked:!1,entrance:gl,scroll:wa,origins:$m({objectPosition:f,objectPositionTablet:p,objectPositionPhone:u}),className:"absolute inset-0 z-[1]",children:[bl,Be&&Et(IH,{youTubeId:hr,ownPoster:!!Le,background:!_t,editing:C})]}):bl}),_t&&Et(gH,{youTubeId:hr,fileSrc:Be?void 0:M,fileAv1Src:Be?void 0:ye.av1,fileSrcPhone:Be?void 0:ye.phone,fileAv1SrcPhone:Be?void 0:ye.av1Phone,playing:Mn,onPlay:()=>{Ir(!0),Ne?.()},editing:C}),Ur&&!Nn&&Et(jm,{color:h,opacity:I,passClicks:!1}),Ur&&TH(ze)&&Et("div",{className:"absolute inset-0 z-[2]",style:{background:Sa.own?AH(Sa.color,Sa.position??void 0):PH(Sa.color),...Oe!==void 0?{opacity:Oe/100}:null}}),Ur&&Et("div",{className:[ie?"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",C?"sf-hero-group-layer-edit":""].filter(Boolean).join(" "),style:{...uk,...vH(Te,_e)},children:g&&Et(g,{className:"sf-hero-group-zone",minEmptyHeight:160})})]});return ee.scope(Ve?Et(ZM,{children:Kd}):Kd)}var NH=Array.from({length:3},(e,o)=>({name:`Slide ${o+1}`,process:"Category",mediaType:"image",mediaVideo:"",poster:""}));import{newNodeId as HH}from"efficient-easel/draw";import{isNodeList as ede}from"efficient-easel/data";var WH=(e,o)=>({type:e.type,props:{...o?.(e.type)??{},...Object.fromEntries(Object.entries(e.props).map(([t,r])=>[t,ede(r)?r.map(a=>WH(a,o)):r]))}}),ode=e=>{let[o]=Gn([JS()],a=>HH(a)),{id:t,...r}=WH(o,e).props;return r},ur={Hero:{slot:"slides",childType:"HeroSlide",addLabel:"Add slide",slider:!0,seeds:()=>NH.map(e=>({...e}))},HeroSlide:{slot:"groups",childType:"HeroGroup",addLabel:`Add ${Sl.toLowerCase()}`,seeds:()=>[],addBlocked:zh,notice:$h},HeroSingle:{slot:"boxes",childType:"HeroGroup",addLabel:`Add ${Sl.toLowerCase()}`,seeds:()=>[],addBlocked:zh,notice:$h},ProcessSteps:{slot:vm,childType:te,addLabel:`Add ${Sl.toLowerCase()}`,seeds:e=>Array.from({length:ZS},()=>ode(e)),skipSeed:e=>Array.isArray(e.steps)&&e.steps.length>0}},MH=1,tde={slot:Oi,childType:te,addLabel:`Add ${Sl.toLowerCase()}`,seeds:()=>[],addBlocked:e=>e.length>=MH?"This Hero has its Scrolling Bar already. Delete it to add another.":null,notice:e=>e.length>MH?`This Hero holds ${e.length} Scrolling Bars. Keep one and delete the others.`:null},UH={Hero:{[Oi]:tde}};function UKe(e){for(let[o,t]of Object.entries(e)){if($e(ur,o)&&K(ur,o)!==t)throw new Error(`lib/document/slot-specs: "${o}" already has a slot spec`);ur[o]=t}}function zKe(e,o){let t=K(ur,e);return t?{slot:t.slot,children:t.seeds(o).map(r=>({type:t.childType,props:{id:HH(t.childType),...r}}))}:null}var rde={"Logos.logosPerRow":"columns","HeroSlide.tintOpacity":"overlay","Split.textBgTint":"overlay"},ade={"Footprint.source":"typed"};function Gw(e){let o=e.props,t=!1;if(e.type&&o)for(let[r,a]of Object.entries(rde)){let n=r.indexOf("."),s=r.slice(0,n),l=r.slice(n+1);if(s!==e.type||!(l in o))continue;let d=o[l],c={...o};delete c[l],(!(a in c)||c[a]===void 0)&&(c[a]=d),o=c,t=!0}if(e.type&&o)for(let[r,a]of Object.entries(ade)){let n=r.indexOf("."),s=r.slice(n+1);if(r.slice(0,n)!==e.type||!(s in o))continue;let l=typeof o[s]=="string"?o[s].trim():"",d={...o};delete d[s],gC(l)&&l!==a&&!Xt(d)&&(d[So]=l),o=d,t=!0}if(e.type&&o){let r=Ov(e.type,o);r!==o&&(o=r,t=!0)}if(o){let r=rs({props:o},a=>ts(a,Gw));r.props!==o&&(o=r.props,t=!0)}return t?{...e,props:o}:e}function VKe(e){let o=e;if(!o||typeof o!="object")return e;let t=!1,r={...e};if(Array.isArray(o.content)){let a=o.content.map(Gw);a.some((n,s)=>n!==o.content[s])&&(r.content=a,t=!0)}if(o.zones&&typeof o.zones=="object"){let a=!1,n=Object.fromEntries(Object.entries(o.zones).map(([s,l])=>{if(!Array.isArray(l))return[s,l];let d=l.map(Gw);return d.some((c,f)=>c!==l[f])&&(a=!0),[s,d]}));a&&(r.zones=n,t=!0)}return t?r:e}function zH(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 jH(e){let o=sde(c=>c.appState.data.content),{theme:t,themeRow:r,themeFromDocument:a,siteGutter:n,siteGutterPhone:s,siteLengthUnits:l}=he(),d=nde(new Set);$H(()=>{let c=GH({theme:t,themeRow:r,themeFromDocument:a,siteGutter:n,siteGutterPhone:s,siteLengthUnits:l});c&&lde(yF(o,void 0,c),e,d.current)},[o,e,t,r,a,n,s,l]),$H(()=>{let c=UM(GH({theme:t,themeRow:r,themeFromDocument:a,siteGutter:n,siteGutterPhone:s,siteLengthUnits:l}));return()=>zM(c)},[t,r,a,n,s,l])}function GH(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=zH({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 lde(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(jw,r,a[0]),a.slice(1).forEach((s,l)=>{o.insertNode(jw,r+1+l,s),o.replaceComponent(jw,r+1+l,s)}))}}import{ROOT_ZONE as ml,missingPinnedTypes as ude,pinnedDuplicateIds as qw}from"efficient-easel/draw";function KH(e){return!e.docId||e.saveStatus==="saving"?!1:e.seededDocId!==e.docId}function VH(e,o){let t=e.some(l=>l?.type===Ue),r=e[e.length-1],a=!t&&r?.type===Xe?r:null,n=e.filter(l=>l?.type===Xe&&l!==a).map(l=>String(l.props?.id??"")).filter(Boolean),s=o.hasChromeDoc&&!t&&!a;return{remove:n,seedHeader:!e.some(l=>l?.type===Jo),seedFooter:s,seedSiteHeader:s&&!e.some(l=>l?.type===Ye)}}async function qH(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!==Ye||!e.stillOpen())return!1;let r=e.latest();return r.some(a=>a?.type===Ye)?!1:(e.write(Rc(r,t)),!0)}function YH(e,o){let{adapter:t,capabilities:r,currentSlug:a,docId:n,data:s,saveStatus:l,siteId:d,tokenRef:c}=fde(),f=pde(),{hasSiteSettings:u,hasPinnedChrome:p}=r;jH(e);let h=!!r.editsPinnedInPlace&&a!==Mt,I=a===Mt,g=cde().getState,C=dde(null);ide(()=>{if(!KH({docId:n,saveStatus:l,seededDocId:C.current})||(C.current=n,!p))return;let w=g().appState.data,T=w.content,y=s?.content??[],b=(W,O)=>W.some(D=>D?.type===O);if(!u){let W=new Set(qw(T)),O=W.size?T.filter(v=>!W.has(v.props.id)):T;if(W.size&&e.setDocument({...w,content:O}),I)return;let D=ude(O,y);if(D.includes(Xe)){let v=O.length,_=e.insertSection(Xe,v);e.replaceComponent(ml,v,{type:Xe,props:{id:_,blocks:Du()}})}D.includes(Jo)&&e.insertNode(ml,0,Bu());return}if(I){let W=ss(T);if(W!==T&&e.setDocument({...w,content:[...W]}),!W.find(O=>O.type===Xe)&&!b(y,Xe)&&!b(W,Ue)&&!b(y,Ue)){let O=(v,_)=>Kw(o,v,_),D={type:Xe,props:{blocks:Du()}};e.insertNode(ml,W.length,Zi(D,O,Vw(Ue),vd))}return}if(h){let W=!!t?.pinnedChrome?.state().docId,O=VH(T,{hasChromeDoc:W}),D=new Set([...O.remove,...qw(T.filter(_=>!O.remove.includes(String(_.props.id))))]),v=D.size?T.filter(_=>!D.has(String(_.props.id))):T;if(v.length!==T.length&&e.setDocument({...w,content:v}),O.seedFooter&&!b(y,Xe)&&!b(y,Ue)){let _=(F,z)=>Kw(o,F,z),A={type:Xe,props:{blocks:Du()}};e.insertNode(ml,v.length,Zi(A,_,Vw(Ue),vd))}if(O.seedHeader&&!b(y,Jo)){let _=v[0]?.type===Ye?1:0;e.insertNode(ml,_,Bu())}if(O.seedSiteHeader&&!b(y,Ye)&&!b(y,Xe)&&!b(y,Ue)){let _=n;qH({blocks:nf(f),make:(A,F)=>Kw(o,A,F),id:Vw(Ye),siteId:d??null,token:c.current,latest:()=>g().appState.data.content,stillOpen:()=>C.current===_,write:A=>{let F=g().appState.data;e.setDocument({...F,content:[...A]})}})}return}let P=T.filter(W=>W.type!==Xe),H=new Set(qw(P)),E=H.size?P.filter(W=>!H.has(W.props.id)):P;E.length!==T.length&&e.setDocument({...w,content:E}),!b(E,Jo)&&!b(y,Jo)&&e.insertNode(ml,0,Bu())},[n,l,s,g,e,u,p,I,h,t,f,d,c])}import{useEffect as u4,useMemo as Pde,useRef as m4}from"react";import{useEasel as Ede}from"efficient-easel/easel";import{useEaselHost as Ode}from"efficient-easel/screen/lib/host";import{FIELD_DESCRIPTION_MARKER as Sde}from"efficient-easel/screen/lib/host";import{isNode as Xw}from"efficient-easel/data";import{SITE_SIDE as JH}from"efficient-easel/screen/lib/content/length-units";var XH=[{text:"Ticker item"},{text:"Ticker item"},{text:"Ticker item"},{text:"Ticker item"}],_8e={label:"Scrolling Bar",defaultProps:{items:[],tone:"scrim",borders:!0,size:av,separator:nv,scrollDirection:Ni}};var ZH=()=>[{text:i("Spec label"),tone:"normal"},{text:i("Spec value"),tone:"muted"},{text:i("Spec label"),tone:"normal"},{text:i("Spec value"),tone:"muted"}],L8e={label:"Spec Strip",defaultProps:{cells:[{text:"",tone:"normal"},{text:"",tone:"normal"}],fill:"dark"}};function Bo(e,o,t,r={}){return{type:e,props:{...o(e),id:t(e),...r}}}function QH(e,o,t){return Bo(te,e,o,{...t,sectionPaddingTop:void 0,sectionPaddingBottom:void 0})}var Vm={Manifesto:(e,o)=>({type:te,props:{...e(te),id:o(te),direction:"row",share:"equal",sectionHeightMode:"screen",name:"Brand Text",content:[Bo(te,e,o,{direction:"column",justify:"center",blockSpacing:"gap",name:"Text",sectionPaddingTop:100,sectionPaddingBottom:100,sectionPaddingLeft:JH,sectionPaddingRight:JH,content:[Bo("Text",e,o,vr()),Bo("Text",e,o,jr()),Bo("Text",e,o),Bo("Stats",e,o)]}),QH(e,o,{direction:"column",name:"Picture",content:[]})]}}),Split:(e,o)=>({type:te,props:{...e(te),id:o(te),direction:"row",share:"equal",sectionHeightMode:"screen",sectionHeightValue:70,name:"Image & Text Split",content:[Bo(te,e,o,{direction:"column",justify:"center",blockSpacing:"gap",name:"Text",sectionPaddingTop:100,sectionPaddingBottom:100,sectionPaddingLeft:60,sectionPaddingRight:60,content:[Bo("Text",e,o,vr()),Bo("Text",e,o,jr()),Bo("Text",e,o),Bo("ButtonBlock",e,o)]}),QH(e,o,{direction:"column",name:"Image",content:[Bo("ImageBlock",e,o)]})]}}),Subscribe:(e,o)=>({type:te,props:{...e(te),id:o(te),direction:"column",name:"Subscribe",content:[Bo("Text",e,o,jr()),Bo("Text",e,o),Bo("Form",e,o)]}}),Ticker:(e,o)=>e4("Scrolling Bar",um,ud,XH.map(t=>({text:t.text,style:mm,muted:!0})),e,o),SpecStrip:(e,o,t)=>e4("Spec Strip",t?.theme?{...hd,sectionAccent:uc(xo(t.theme))}:{...hd,sectionBorder:{top:1}},md,ZH().map(r=>({text:r.text??"",style:xd,muted:r.tone==="muted"})),e,o)};function e4(e,o,t,r,a,n){return Bo(te,a,n,{...En,...o,blockSpacing:"gap",padV2:!0,name:e,sectionPaddingTop:t.top,sectionPaddingBottom:t.bottom,sectionPaddingTopPhone:t.topPhone,sectionPaddingBottomPhone:t.bottomPhone,content:r.map(s=>Bo("Text",a,n,{text:s.text,...s.muted?{tone:"dim"}:{},_partStyles:{text:s.style}}))})}function o4(e){return K(Vm,e)??null}import{isNodeList as Yw}from"efficient-easel/data";var a7e=Object.keys(Sw),mde={Logos:eD,DocMasthead:bN,DocTabs:ON,Timeline:zD,TimelineTrack:$D},hde={PaymentBadges:oD,PaymentLogosBlock:tD,Integrations:T2};function qm(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]=Yw(n)?n.map(s=>qm(s,o,t)):n;return r.id=t(e.type),{type:e.type,props:r}}var t4=e=>({...e?.theme?{theme:e.theme}:{},...e?.site?{site:e.site}:{},press:!0});function Ym(e,o,t=0,r=()=>({})){return(a,n,s)=>{let{nodes:l}=Zs({type:e,props:{...a(e),...r(),id:n(e)}},o,t4(s));return qm(l[t],a,n)}}var xde={Stats:gde,Cards:Ide};function Ide(){let e=ca("Cards");if(!e)return null;let o=Ym("Cards",e,0,OB);return(t,r,a)=>{let n=o(t,r,a);return{...n,props:{...n.props,name:"Cards section"}}}}function gde(){let e=ca("StatsParagraph");return e?(o,t,r)=>{let{nodes:a}=Zs({type:"StatsParagraph",props:{...o("StatsParagraph"),...UB(),id:t("StatsParagraph")}},e,t4(r)),n=a[0],s=Yw(n.props.content)?n.props.content.filter(f=>f.props?.cardStyle===void 0):[],l=a4(CS(zB(),"table")),d=s.map(r4),c=qm({...n,props:{...n.props,content:[...d,l]}},o,t);return{...c,props:{...c.props,name:"Stats section"}}}:null}function r4(e){return e.props?.name==="Words"?{...e,props:{...e.props,widthFitPhone:"fill"}}:Yw(e.props?.content)?{...e,props:{...e.props,content:e.props.content.map(r4)}}:e}var a4=e=>Gn([e],(o,t)=>`${o}-seed-${t}`)[0];function bde(e,o){if(!bF(e,o))return null;let t=K(xde,e);if(t)return t();let r=ca(e);return r?Ym(e,r,0,K(mde,e)??K(Y2,e)??K(hde,e)):null}function yde(e){return(o,t,r)=>{let a=n=>{if(n.type==="Stats"){let l=qm(a4(CS([],"list")),o,t);return{...l,props:{...l.props,name:"Numbers"}}}let s=rs(n,l=>ts(l,a));return s===n?n:{type:n.type,props:s.props}};return a(e(o,t,r))}}function hl(e,o=Qi){let t=o4(e);return t?yde(t):bde(e,o)}function Bd(e,o){let t=e.components[o]?.label;return typeof t=="string"&&t.trim()?t.trim():o}function wde(e){return e.length>3&&e.endsWith("s")?e.slice(0,-1):e}function Zw(e,o,t,r){e.forEach((a,n)=>{if(Xw(a)){r.push({node:a,list:e,index:n,parent:o,slot:t});for(let[s,l]of Object.entries(a.props))Array.isArray(l)&&l.some(Xw)&&Zw(l,a,s,r)}})}function Cde(e){let o=[];Zw(Array.isArray(e.content)?e.content:[],null,"",o);for(let t of Object.values(e.zones??{}))Array.isArray(t)&&Zw(t,null,"",o);return o}function l4(e,o){return Cde(e).find(t=>String(t.node.props.id)===o)}function i4(e,o,t){if(!t)return null;let r=l4(o,t);if(!r)return null;let a=Bd(e,r.node.type),n=r.parent?`${Bd(e,r.parent.type)} \xB7 ${wde(r.slot)} ${r.index+1}`:a;return{blockId:t,type:r.node.type,label:n,path:""}}var vde=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 kde(e){if(!e||typeof e!="object")return null;let o=e;if(typeof o.type!="string")return null;let t=o.type==="custom"?o[Sde]: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=vde(n));for(let s of["arrayFields","objectFields"]){let l=t?.[s]??o[s];l&&typeof l=="object"&&(r[s]=d4(l))}return r}function d4(e){let o={};for(let[t,r]of Object.entries(e??{})){let a=kde(r);a&&(o[t]=a)}return o}function c4(e){let o={};for(let[t,r]of Object.entries(e.components))r&&(o[t]={label:Bd(e,t),fields:d4(r.fields),...f4(t)?{retired:!0}:{}});return o}function f4(e){return $e(wC,e)}function n4(e,o){let t=e.components[o]?.defaultProps;return t&&typeof t=="object"?structuredClone(t):{}}function Tde(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 Jw(e,o){return e.findIndex(t=>Xw(t)&&String(t.props.id)===o)}function s4(e,o,t){let r=o||t;if(!r)return e.length;let a=Jw(e,r);if(a<0)throw new Error(`there is no top-level block ${r}`);return o?a+1:a}function p4(e,o,t,r,a={}){let n=structuredClone(o),s=Array.isArray(n.content)?n.content:n.content=[];try{t.forEach((l,d)=>{let c=f=>{throw new Error(`change ${d+1}: ${f}`)};switch(l.op){case"set_props":{let f=l4(n,l.block_id)??c(`there is no block ${l.block_id}`);"id"in l.props&&c("a block's id is never changed");let u=Tde(f.node.props,l.path)??c(`there is no ${l.path} in that block`);Object.assign(u,structuredClone(l.props));break}case"insert_block":{e.components[l.type]??c(`there is no block type ${l.type}`),f4(l.type)&&c(`${Bd(e,l.type)} is retired: it is no longer added (a page that holds one keeps it)`);let f=hl(l.type),u=Object.keys(l.props??{}).filter(h=>h!=="id");f&&u.length&&c(`${Bd(e,l.type)} is laid down as a Box of blocks: insert it with no props, then change its blocks`);let p=f?f(h=>n4(e,h),r,a):{type:l.type,props:{...n4(e,l.type),...structuredClone(l.props),id:r(l.type)}};s.splice(s4(s,l.after,l.before),0,p);break}case"remove_block":{let f=Jw(s,l.block_id);f<0&&c(`there is no top-level block ${l.block_id}`),s.splice(f,1);break}case"move_block":{let f=Jw(s,l.block_id);f<0&&c(`there is no top-level block ${l.block_id}`);let[u]=s.splice(f,1);s.splice(s4(s,l.after,l.before),0,u);break}default:c(`"${l.op}" is not a change this editor makes`)}})}catch(l){return{ok:!1,reason:l instanceof Error?l.message:String(l)}}return{ok:!0,document:n}}var Qw=e=>Se(e.requestId)??null;function h4(){let e=Ode(),{appState:o,selectedItem:t,dispatch:r,history:a,config:n}=Ede(p=>p),s=n,l=m4({appState:o,dispatch:r,history:a,blockConfig:s});l.current={appState:o,dispatch:r,history:a,blockConfig:s};let d=m4(new Map),c=t?.props?.id,f=Pde(()=>i4(s,o.data,c),[s,o.data,c]),u=f?JSON.stringify(f):"";u4(()=>{e.connected&&e.send("storefront-editor:selection",{selection:f})},[e,u]),u4(()=>e.subscribe(p=>{let{appState:h,dispatch:I,history:g,blockConfig:C}=l.current;switch(p.type){case"storefront-editor:request-document":{let w=Qw(p);if(!w)return;e.send("storefront-editor:document",{requestId:w,document:h.data,blocks:c4(C)});return}case"storefront-editor:apply-page-edits":{let w=Qw(p);if(!w)return;let T=Array.isArray(p.ops)?p.ops:[],y=T.length?p4(C,h.data,T,b=>`${b}-${crypto.randomUUID()}`,cl()):{ok:!1,reason:"no changes"};y.ok&&(I({type:"setData",data:y.document,recordHistory:!0}),d.current.set(w,JSON.stringify(y.document.content??[]))),e.send("storefront-editor:page-edits-result",{requestId:w,applied:y.ok,reason:y.ok?null:y.reason});return}case"storefront-editor:undo-page-edits":{let w=Qw(p);if(!w)return;let T=d.current.get(w),y=T!==void 0&&T===JSON.stringify(h.data.content??[]);y&&g.hasPast&&(g.back(),d.current.delete(w)),e.send("storefront-editor:page-edits-result",{requestId:w,applied:y&&g.hasPast,reason:y?null:"the page has changed since"});return}case"storefront-editor:set-right-panel":typeof p.shown=="boolean"&&I({type:"setUi",ui:{rightSideBarVisible:p.shown}});return;default:return}}),[e])}import{useEffect as g4,useState as b4}from"react";var Xm=new Map;async function _de(e,o){try{return(await to().site.get({siteId:o})).slug?.trim()||null}catch(t){return console.warn("[editor-site-slug] could not resolve the site slug",t),null}}function x4(e,o){let t=Xm.get(o);return t||(t=_de(e,o),Xm.set(o,t),t.catch(()=>{Xm.get(o)===t&&Xm.delete(o)})),t}var Ade=/^(localhost|(?:[a-z0-9-]+\.)+localhost|127(?:\.\d{1,3}){3}|0\.0\.0\.0|\[::1\]|::1)$/i;function eC(e){return!!e&&Ade.test(e)}function I4(e){let{pageSlug:o,siteSlug:t,hostname:r}=e,a=o===Vc?"/":`/${encodeURIComponent(o)}`;if(!eC(r))return a;let n=t?.trim();return n?`${a}?site=${encodeURIComponent(n)}`:a}function y4(e){let{pageSlug:o,siteId:t,token:r}=e,[a,n]=b4(null),[s,l]=b4(null),d=Nk();g4(()=>{try{l(new URL(Cc()).hostname)}catch{l(null)}},[d]),g4(()=>{if(!eC(s)||!t||!r){n(null);return}let f=!1;return x4(r,t).then(u=>{f||n(u)}),()=>{f=!0}},[s,t,r]);let c=I4({pageSlug:o,siteSlug:a,hostname:s});return d?`${d}${c}`:c}import{jsx as Dd}from"react/jsx-runtime";import{useEffect as Rde,useRef as S4,useState as Lde}from"react";import{ExternalIcon as w4}from"efficient-easel/icons";import{EaselIconButton as Fde}from"efficient-easel/chrome";import{Tooltip as Bde,iconButtonClasses as Dde}from"efficient-shell/ui";import{useSettledPress as Nde}from"efficient-easel/easel";import{useScreenDocument as Mde}from"efficient-easel/screen/components/ScreenDocumentContext";async function Hde({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=l=>{n&&!n.closed?n.location.href=l:a.open(l,"_blank","noopener,noreferrer")};try{await r()}catch{}return t(e).then(l=>s(l.url??o),()=>s(o))}function C4({liveHref:e,pageId:o,draftLink:t}){let{flushSave:r}=Mde(),a=S4(r);a.current=r;let n=Nde(),[s,l]=Lde(!1),d=S4(null);if(Rde(()=>()=>d.current?.(),[]),t&&o){let c=()=>new Promise((u,p)=>{d.current=()=>u(!1),n.run(()=>{d.current=null,a.current().then(u,p)})}),f=()=>{s||n.waiting||(l(!0),Hde({pageId:o,liveHref:e,draftLink:t,ready:c}).finally(()=>l(!1)))};return Dd(Fde,{label:i("Preview your saved draft in a new tab"),tip:i("Open your saved draft in a new tab. Visitors don't see it."),disabled:s||n.waiting,onClick:f,children:Dd(w4,{})})}return Dd(Bde,{content:i("Preview the live site (opens in a new tab)"),side:"bottom",children:Dd("a",{className:Dde({className:"es-iconbtn"}),href:e,...sd,"aria-label":i("Preview the live site in a new tab"),children:Dd(w4,{})})})}import{createElement as Gde,useCallback as jde,useEffect as W4,useRef as U4,useState as Kde}from"react";import{ClockIcon as Vde}from"efficient-shell/icons/efficient";import{useScreenDocument as qde}from"efficient-easel/screen/components/ScreenDocumentContext";import{useSyncExternalStore as Wde}from"react";import{useScreenDocument as Ude}from"efficient-easel/screen/components/ScreenDocumentContext";var zde=()=>()=>{},v4=()=>null;function Zm(e){return Wde(e?e.subscribe:zde,e?e.state:v4,e?e.state:v4)}function Jm(){let{adapter:e}=Ude();return e?.pinnedChrome}import{useSyncExternalStore as P4}from"react";var Nd=!1,xl=null,oC=new Set;function Hd(){for(let e of oC)e()}function E4(e){return oC.add(e),()=>{oC.delete(e)}}function O4(){Nd||(Nd=!0,Hd())}function _4(){Nd&&(Nd=!1,Hd())}function k4(){return Nd}function A4(){return P4(E4,k4,k4)}function T4(){return xl}function Qm(){xl&&(xl=null,Hd())}function R4(){return P4(E4,T4,T4)}var Md=class extends Error{constructor(){super("The editor's last changes could not be saved, so nothing was restored."),this.name="HeldEditsNotSaved"}};async function L4(e,o,t,{flushSave:r,reload:a}){if(!await r())throw new Md;let n=await e.restore(o,t);return If(n.liveState),a(),n}async function F4({access:e,version:o,page:t,...r}){let a=await L4(e,o.id,t?{page:t.id}:{},r);xl={title:$de(o,t??null),undo:a.undo},Hd()}async function B4({access:e,...o}){let t=xl?.undo;t&&(await L4(e,t,{},o),xl=null,Hd())}function D4(e){return e.name?e.name:e.kind==="draft_before_restore"?i("Draft before restore"):i("Version {n}",{n:e.number})}function $de(e,o){return e.kind==="draft_before_restore"?i("Your drafts from before the restore are back"):o?i("{page} from version {n} is now your draft",{page:o.name,n:e.number}):i("Version {n} is now your draft",{n:e.number})}function N4(e){let o=e.changes.filter(r=>r.kind==="page").length,t=[...o?[Uo("{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(Yh(),{type:"conjunction"}).format(t)}catch{return t.join(", ")}}function M4(e){return e.change==="take_down"?i("{name} (taken down)",{name:e.name}):e.name}function H4(e,o=new Date){let t=new Date(e);if(Number.isNaN(t.getTime()))return"";let r=Yh(),a=new Intl.DateTimeFormat(r,{hour:"numeric",minute:"2-digit"}).format(t);if(t.toDateString()===o.toDateString())return i("Today, {time}",{time:a});let n=new Intl.DateTimeFormat(r,{day:"numeric",month:"short",...t.getFullYear()===o.getFullYear()?{}:{year:"numeric"}}).format(t);return i("{day}, {time}",{day:n,time:a})}function z4(e){let{docId:o,capabilities:t,hasUnsavedEdits:r,onPublish:a,adapter:n}=qde(),s=YL(qL(o??null),r),l=Zm(Jm()),d=n.siteLiveState;W4(()=>{if(d)return iI(d),Or(0),()=>iI(null)},[d]);let c=gf(),[f,u]=Kde(!1),p=U4(e);p.current=e;let h=U4(!0);W4(()=>(h.current=!0,()=>{h.current=!1}),[]);let I=jde(()=>{u(!0),a(p.current).then(()=>{Qm()}).finally(()=>{h.current&&u(!1)})},[a]);if(t.canPublish){if(d){let g=c===void 0?void 0:r||c.state==="changed"?"changed":"live",C=jy({live:g,onPress:I,busy:f,goingLive:XL(c?.changes??[])});return n.siteVersions?{...C,menuItems:Yde()}:C}return jy({live:s,onPress:I,busy:f,pinnedUnpublished:l?.unpublished??!1})}}function Yde(){return[{key:"version-history",label:i("Version history"),icon:Gde(Vde),onSelect:O4}]}import{jsx as ae,jsxs as ct,Fragment as zd}from"react/jsx-runtime";import{useCallback as Xde,useEffect as Zde,useId as j4,useRef as Jde,useState as Ot}from"react";import{useSettledAction as Qde}from"efficient-easel/easel";import{Avatar as ece,Banner as Wd,Button as Dn,ColoredBadge as tC,Dialog as K4,Drawer as oce,DropdownMenu as tce,FormField as V4,iconButtonClasses as rce,Inline as rC,Input as ace,ListRow as nce,Select as sce,SortableList as lce,Stack as Ud}from"efficient-shell/ui";import{EditIcon as ice,EyeIcon as $4,MenuIcon as dce,MoreIcon as cce,PageIcon as q4,RevertIcon as G4,StylesIcon as fce}from"efficient-shell/icons/efficient";import{useScreenDocument as Y4}from"efficient-easel/screen/components/ScreenDocumentContext";var pce={page:q4,menu:dce};function uce(e,o){return e.pages.find(t=>t.id===o)??e.pages[0]??null}function mce(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 hce({version:e,page:o,waiting:t,busy:r,error:a,onCancel:n,onConfirm:s,onPage:l}){let d=j4();if(!e)return null;let c=e.kind==="draft_before_restore",f=e.number,u=N4(e),p=c?i("Put your drafts back?"):o?i("Restore {page} from version {n}?",{page:o.name,n:f}):i("Restore version {n}?",{n:f}),h=c?i("Your drafts go back to how they were before the restore."):o?i("{page} goes back to version {n} as a draft. Nothing else on your website changes.",{page:o.name,n:f}):u?i("The whole website goes back to version {n} as a draft: {what}.",{n:f,what:u}):i("The whole website goes back to version {n} as a draft.",{n:f}),I=e.deletedPictures??0;return ae(K4,{open:!0,onClose:()=>{r||n()},size:"sm",title:p,footer:ct(zd,{children:[ae(Dn,{variant:"secondary",onClick:n,disabled:r,children:i("Cancel")}),ae(Dn,{onClick:s,loading:r,disabled:r,children:i("Restore as draft")})]}),children:ct(Ud,{gap:4,children:[o&&e.pages.length>1?ae(V4,{label:i("Page"),htmlFor:d,children:ae(sce,{id:d,value:o.id,options:e.pages.map(g=>({value:g.id,label:g.name})),onChange:l,disabled:r})}):null,ae("p",{children:h}),ae("p",{children:i("Your live website does not change until you press Publish.")}),I>0?ae(Wd,{tone:"warning",children:Uo("{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.",I)}):null,t?ae(Wd,{tone:"info",title:i("Your unpublished changes are kept"),children:i("They are saved in Version history as \u201CDraft before restore\u201D, so you can get them back.")}):null,a?ae(Wd,{tone:"danger",children:a}):null]})})}function xce({version:e,onCancel:o,onSave:t}){let r=j4(),[a,n]=Ot(null),[s,l]=Ot(""),[d,c]=Ot(!1),[f,u]=Ot(null);if(e!==a&&(n(e),l(e?.name??""),u(null)),!e)return null;let p=s.trim()===e.name,h=async()=>{if(!(d||p)){c(!0),u(null);try{await t(s.trim())}catch{u(i("The name was not saved. Try again."))}finally{c(!1)}}};return ae(K4,{open:!0,onClose:()=>{d||o()},size:"sm",title:i("Name this version"),footer:ct(zd,{children:[ae(Dn,{variant:"secondary",onClick:o,disabled:d,children:i("Cancel")}),ae(Dn,{onClick:()=>{h()},loading:d,disabled:d||p,children:i("Save")})]}),children:ae(V4,{label:i("Name"),htmlFor:r,hint:i("Named versions are always kept. Leave it empty to take the name away."),error:f??void 0,children:ae(ace,{id:r,value:s,invalid:!!f,onChange:I=>l(I.target.value),onKeyDown:I=>{I.key==="Enter"&&h()}})})})}function Ice({version:e,expanded:o,onToggle:t,onPreview:r,onRestore:a,onRestorePage:n,onName:s}){let l=e.kind==="draft_before_restore",d=!e.live,c=e.changes.length,f=[...l?[]:[{key:"preview",label:i("Preview"),icon:ae($4,{}),onSelect:r}],...d?[{key:"restore",label:l?i("Put these drafts back"):i("Restore whole website"),icon:ae(G4,{}),onSelect:a}]:[],...d&&!l&&e.pages.length?[{key:"restore-page",label:i("Restore one page only"),icon:ae(q4,{}),onSelect:n}]:[],...l?[]:[{type:"divider",key:"divider"},{key:"name",label:i("Name this version"),icon:ae(ice,{}),onSelect:s}]];return ae(nce,{title:ct("span",{className:"sf-version-title",children:[ae("span",{children:D4(e)}),e.live?ae(tC,{tone:"success",size:"xs",children:i("Live")}):null,e.name?ae(tC,{tone:"neutral",size:"xs",children:i("Version {n}",{n:e.number})}):null,l?ae(tC,{tone:"warning",size:"xs",children:i("Not published")}):null]}),expanded:o,onToggle:t,actions:ae(tce,{align:"end","aria-label":i("More"),items:f,triggerClassName:rce({variant:"ghost",size:"sm"}),trigger:ae(cce,{})}),below:ct(Ud,{gap:3,children:[ct(rC,{gap:2,align:"center",wrap:!0,className:"sf-version-meta",children:[ae(ece,{name:e.createdBy,size:"xs"}),ae("span",{children:e.createdBy}),ae("span",{"aria-hidden":"true",children:"\xB7"}),ae("span",{children:H4(e.createdAt)}),c?ct(zd,{children:[ae("span",{"aria-hidden":"true",children:"\xB7"}),ae("span",{children:Uo("{n} change","{n} changes",c)})]}):null]}),o?ct(Ud,{gap:3,children:[c?ae(Ud,{gap:2,children:e.changes.map(u=>{let p=pce[u.kind]??fce;return ct(rC,{gap:2,align:"center",children:[ae(p,{size:16}),ae("span",{children:M4(u)})]},`${u.kind}:${u.id}`)})}):null,ct(rC,{gap:2,children:[l?null:ae(Dn,{variant:"secondary",size:"sm",leftIcon:ae($4,{}),onClick:r,children:i("Preview")}),d?ae(Dn,{variant:"secondary",size:"sm",leftIcon:ae(G4,{}),onClick:a,children:i("Restore")}):null]})]}):null]})})}function gce({open:e,onClose:o,access:t,waiting:r}){let{flushSave:a,reloadFromServer:n,docId:s}=Y4(),[l,d]=Ot(null),[c,f]=Ot(!1),[u,p]=Ot(null),[h,I]=Ot(null),[g,C]=Ot(!1),[w,T]=Ot(null),[y,b]=Ot(null),[P,H]=Ot(!1),E=Jde(0),W=Xde(()=>{let _=++E.current;f(!1),t.list().then(A=>{_===E.current&&d(A)},()=>{_===E.current&&f(!0)})},[t]);Zde(()=>{e&&W()},[e,W]);let O=_=>{H(!1),mce(t,_.id).catch(()=>H(!0))},D=async()=>{if(!(!h||g)){C(!0),T(null);try{await F4({access:t,version:h.version,page:h.page,flushSave:a,reload:n}),I(null),o()}catch(_){T(_ instanceof Md?i("Your last changes did not save, so nothing was restored. Try again."):i("The version was not restored. Nothing changed. Try again."))}finally{C(!1)}}},v=Qde({onPress:()=>{D()},busy:g});return ct(zd,{children:[ae(oce,{open:e,onClose:o,side:"right",size:"md",title:i("Version history"),description:ct(zd,{children:[i("Every Publish keeps a copy of the whole website: pages, menus and site styles.")," ",i("Products, prices and forms always show as they are now.")]}),footer:ae("span",{className:"sf-version-foot",children:i("The newest 30 are kept. Named versions are always kept.")}),children:ct(Ud,{gap:3,children:[P?ae(Wd,{tone:"danger",onDismiss:()=>H(!1),children:i("The preview did not open. Try again.")}):null,c?ae(Wd,{tone:"danger",action:ae(Dn,{variant:"secondary",size:"sm",onClick:W,children:i("Try again")}),children:i("Version history did not load.")}):l===null?ae("p",{className:"sf-version-foot",children:i("Loading versions")}):l.length===0?ae("p",{className:"sf-version-foot",children:i("No versions yet. Every Publish from now on keeps one.")}):ae(lce,{"aria-label":i("Versions"),spacing:"comfortable",children:l.map(_=>ae(Ice,{version:_,expanded:u===_.id,onToggle:()=>p(A=>A===_.id?null:_.id),onPreview:()=>O(_),onRestore:()=>{T(null),I({version:_,page:null})},onRestorePage:()=>{T(null),I({version:_,page:uce(_,s)})},onName:()=>b(_)},_.id))})]})}),ae(hce,{version:h?.version??null,page:h?.page??null,waiting:r,busy:v.busy===!0,error:w,onCancel:()=>I(null),onConfirm:v.onPress,onPage:_=>I(A=>A&&{...A,page:A.version.pages.find(F=>F.id===_)??A.page})}),ae(xce,{version:y,onCancel:()=>b(null),onSave:async _=>{await t.name(y.id,_),b(null),W()}})]})}function X4(){let{adapter:e,hasUnsavedEdits:o}=Y4(),t=e.siteVersions,r=A4(),a=gf();return t?ae(gce,{open:r,onClose:_4,access:t,waiting:o||a?.state==="changed"}):null}import{useEaselSession as q5}from"efficient-easel/screen/lib/session-context";import{buildPaletteSections as fVe,categoryLabel as pVe,paletteWithoutPinned as uVe,pinnedSection as mVe}from"efficient-easel/screen/lib/document/palette-sections";var bce={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 Z4(e){return K(bce,e)?.label}var J4=vC;import{currentEaselSession as t5}from"efficient-easel/screen/lib/session";import{blockTypesIn as Q4}from"efficient-easel/screen/lib/document/block-types-in";var e5=()=>({}),o5=new Map;function yce(e){let o=o5.get(e);if(o)return o;let t=new Set,r=K(ur,e);if(r)for(let s of r.seeds(e5))for(let l of Q4({type:r.childType,props:s}))t.add(l);let a=hl(e);if(a){let s=0;for(let l of Q4(a(e5,d=>`${d}-${s+=1}`)))t.add(l)}t.delete(e);let n=[...t].sort();return o5.set(e,n),n}function Sce(e){if(!e||!e.sets&&!e.allow&&!e.deny?.length)return null;let o=zy(e),t=e.allow?new Set(e.allow):null,r=new Set(e.deny??[]),a=new Set(Object.keys(e.host??{})),n=d=>{if(r.has(d))return!1;if(a.has(d))return!0;let c=CC(d);return!c||!o[c]?!1:t?t.has(d):!0},s=new Map,l=d=>{let c=s.get(d);if(c!==void 0)return c;s.set(d,!1);let f=n(d)&&yce(d).every(l);return s.set(d,f),f};return{sets:o,offers:l}}var wce="block-offer";function aC(e=t5()){return e.cache(wce,()=>Sce(nf(e)))}function r5(e,o=t5()){let t=aC(o);return t?t.offers(e):!0}function Cce(e){let o=Vm.Ticker(e.nodeDefaults,e.newNodeId),{sectionBorder:t,...r}=o.props,a=Mb.line?{sectionBorder:t}:{};return{...o,props:{...r,...a,sectionAccent:Mb.sectionAccent}}}var vce={Hero:{[Oi]:{newChild:Cce,childLabel:qd.Ticker}}},a5=Object.fromEntries(Object.entries(UH).map(([e,o])=>[e,Object.fromEntries(Object.entries(o).map(([t,r])=>[t,{...r,...K(vce,e)?.[t]}]))]));function n5(e,o=0,t,r){let a=Tce(Pce(e,o,r),t),n=a?aC():null;return a&&n?kce(a,n):a}function kce(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 Tce(e,o){if(!e||e.source!=="container"||!o||!Av())return e;let t=dc({data:o.data},o.id),r=typeof t?.type=="string"?Rv(t.type):[],a=e.choices??[],n=r.filter(s=>!a.some(l=>l.type===s.type));return n.length?{...e,choices:[...a,...n.map(s=>({type:s.type,label:s.label}))]}:e}function Pce(e,o,t){let r=t?K(a5,e)?.[t]:void 0;if(r)return{source:"section",slot:r.slot,choices:null,spec:r};let a=K(ur,e);if(a)return{source:"section",slot:a.slot,choices:null,spec:a};let n=kC(e,o);if(n)return{source:"container",slot:n.slot,choices:n.choices,spec:null};let s=iF(e);return s?{source:"footer",slot:lF,choices:s,spec:null}:null}function s5(e,o=Bv(e.type)){return Fv(e.type)?o.map(t=>{let r=Dv(e.type,t);return r===null?{slot:t,label:t,rung:!1}:{slot:t,label:i(r),rung:!0}}):null}import{useSyncExternalStore as Ece}from"react";var nC=null,sC=new Set;function l5(e){if(nC!==e){nC=e;for(let o of sC)o()}}function Oce(e){return sC.add(e),()=>{sC.delete(e)}}function VVe(){return Ece(Oce,()=>nC,()=>null)}function i5(e){return Rl(e)?.ownerId??null}function d5(e,o){let t=e.props;if(e.type==="FooterMenu"){let r=t.menu;return t.heading||r?.name||i("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:i("Text")}return e.type==="FooterEmailSignup"?t.heading||i("Email signup"):o(e.type)}var c5="sf-editor-left-view";function f5(){if(typeof window>"u")return"pages";try{let e=window.localStorage.getItem(c5);return e==="sections"||e==="styles"?e:"pages"}catch{return"pages"}}function p5(e){if(!(typeof window>"u"))try{window.localStorage.setItem(c5,e)}catch{}}function u5(e,o){return e==="styles"&&!o?"sections":e}function m5(e,o){return e?"sections":o}import{copyNode as _ce}from"efficient-easel/data";function h5(e){let o=typeof e?.props?.id=="string"?e.props.id:null,t=Bt(),r=o&&t?t.sectionOf(o):null;if(!t||!r)return null;let a=t.usedOn(r);return a?a.length===1?i("On 1 page"):i("On {count} pages",{count:a.length}):i("On other pages")}var x5={usedOn:e=>{let o=Bt(),t=o?.sectionOf(e.props.id)??null;return!o||!t?null:o.usedOn(t)??[]},openPage:e=>Bc()?.openPage(e),adopt:(e,o)=>Bt()?.adopt(e.props.id,o),nodeOf:e=>Bt()?.place(e)??null,detach:e=>{let o=Bc()?.config;return o?_ce(e,o):e},removed:()=>Bc()?.reload()};import{sharedSectionsOf as Nfe}from"efficient-easel/screen/lib/shared-sections";import{scrollPreviewToSection as Mfe,scrollPreviewToTop as U5}from"efficient-easel/screen/lib/document/preview-dom";import{jsx as dC,Fragment as tfe,jsxs as rfe}from"react/jsx-runtime";import{useContext as afe,useEffect as nfe,useMemo as pC,useRef as P5}from"react";import{EaselCanvas as sfe,repeatCopyAt as lfe,useEasel as ife}from"efficient-easel/easel";import{jsx as y5,Fragment as Nce,jsxs as Mce}from"react/jsx-runtime";import{useEffect as S5,useLayoutEffect as Hce}from"react";var eh="data-theme",I5="light";function Ace(e){return e.getAttribute(eh)===I5?"light":"dark"}function Rce(e,o){return Ace(e)===o?!1:(o==="light"?e.setAttribute(eh,I5):e.removeAttribute(eh),!0)}function Lce(e){return qh(e).getItem(Bh)}function a9e(e,o){qh(e).setItem(Bh,o)}function Fce(e,o,t=new Date().getHours()){return jv({mode:o.mode,override:Lce(e),switchShown:o.switchShown,hour:t})}function g5(e,o){let t=e.documentElement;if(!t)return()=>{};let r=()=>Rce(t,Fce(e,o));r();let a=e.defaultView?.MutationObserver;if(!a)return()=>{};let n=new a(r);return n.observe(t,{attributes:!0,attributeFilter:[eh]}),()=>n.disconnect()}var Bce="style";function Dce(e,o){let t=ok(o),r=!1;for(let a of ek){let n=t[a]??"";e.style.getPropertyValue(a)!==n&&(n?e.style.setProperty(a,n):e.style.removeProperty(a),r=!0)}return r}function b5(e,o){let t=e.body;if(!t)return()=>{};let r=()=>Dce(t,o);r();let a=e.defaultView?.MutationObserver;if(!a)return()=>{};let n=new a(r);return n.observe(t,{attributes:!0,attributeFilter:[Bce]}),()=>n.disconnect()}var Wce=`
|
|
339
339
|
[${Gt}][${Gt}] { cursor: text; }
|
|
340
|
-
`;function w5({children:e,document:o}){let{theme:t,themeMode:r,themeSwitchShown:a}=he(),n=xo(t);return S5(()=>{if(o)return g5(o,{mode:r,switchShown:a})},[o,r,a]),S5(()=>{if(o)return b5(o,n)},[o,n]),Hce(()=>{if(o)return SF(o)},[o]),Mce(Nce,{children:[y5(Xk,{}),y5("style",{children:Wce}),e]})}import{jsx as lC}from"react/jsx-runtime";import{useEffect as Uce,useState as zce}from"react";import{Banner as $ce}from"efficient-shell/ui";var oh={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."},Gce={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."},jce=oh.load,Kce=oh.lock,Vce=oh.conflict,qce=oh.save;function Yce(e){if(!e)return null;if(e.loadFailed)return i(jce);if(e.lockHolder)return i(Kce,{name:e.lockHolder.name||i("Somebody else")});if(e.conflict)return i(Vce);if(e.saveFailed)return i(qce);let o=e.sections?.[0];if(!o)return null;let t=o.title||i("A shared section"),r=o.holder?.name||i("Somebody else");return i(Gce[o.problem],{section:t,name:r})}function Xce({report:e}){let o=Yce(Zm(e)),[t,r]=zce(null);return Uce(()=>{o||r(null)},[o]),!o||t===o?null:lC("aside",{className:"sf-canvas-notice",children:lC($ce,{tone:"warning",onDismiss:()=>r(o),children:o})})}function C5(){return lC(Xce,{report:Jm()})}import{jsx as th}from"react/jsx-runtime";import{useState as v5}from"react";import{Banner as Zce,Button as Jce}from"efficient-shell/ui";import{UndoIcon as Qce}from"efficient-shell/icons/efficient";import{useScreenDocument as efe}from"efficient-easel/screen/components/ScreenDocumentContext";import{useSettledAction as ofe}from"efficient-easel/easel";function k5(){let e=R4(),{adapter:o,flushSave:t,reloadFromServer:r}=efe(),a=o.siteVersions,[n,s]=v5(!1),[l,d]=v5(!1),c=async()=>{if(!(!a||n)){s(!0),d(!1);try{await B4({access:a,flushSave:t,reload:r})}catch{d(!0)}finally{s(!1)}}},f=ofe({onPress:()=>{c()},busy:n});return e?th("aside",{className:"sf-canvas-notice",children:th(Zce,{tone:l?"danger":"info",title:e.title,onDismiss:Qm,action:a&&e.undo?th(Jce,{variant:"secondary",size:"sm",leftIcon:th(Qce,{}),loading:f.busy,disabled:f.busy,onClick:f.onPress,children:i("Undo")}):void 0,children:l?i("Undo did not work. Nothing changed. Try again."):i("Check it with Preview. Press Publish to put it live.")})}):null}import{decodePartId as dfe,REPEAT_ATTRIBUTE as cC,REPEAT_INDEX_ATTRIBUTE as fC}from"efficient-easel/draw";import{usePreviewParts as cfe}from"efficient-easel/draw/client";var T5=null;function iC(e){T5=e}function O9e(){return T5}import{ScreenDocumentContext as ffe}from"efficient-easel/screen/components/ScreenDocumentContext";function E5(e){let{mirrorHostStyles:o}=Zh(),t=Jk(),{sectionBackgroundWidth:r,themeFromDocument:a}=he(),n=Wk(),s=afe(ffe),l=Dc(s?.docId??null),d=ife(w=>w.appState.data),c=_T(l,d),f=JSON.stringify(c),u=pC(()=>c,[f]),p=pC(()=>({...e.metadata??t??{},...qE(a?null:r,n),...u}),[e.metadata,t,r,n,a,u]);nfe(()=>(iC(n),()=>iC(null)),[n]);let h=P5(null),I=pfe(h),{onDocument:g}=e,C=w=>{h.current=w,g?.(w)};return rfe(tfe,{children:[dC(k5,{}),dC(C5,{}),dC(sfe,{...e,onDocument:C,typing:I,metadata:p,height:"fill",mirrorStyles:o,frameWrapper:w5})]})}function pfe(e){let o=Oc(),t=cfe(),r=P5({parts:t});return r.current={parts:t},pC(()=>{let a=(n,s)=>{let l=up(n,o),d,c=null,f=s??(l?null:zg(null,e.current,n)),u=!l&&f?lfe(f):null,p=u?dfe(n):null;if(u&&f&&p?.propKey){l=hp({...u,nodeId:p.nodeId,key:p.propKey},o),d=p.propKey;let C=f.closest(`[${cC}][${fC}]`),w=`[${cC}="${mp(C?.getAttribute(cC)??"")}"][${fC}="${mp(C?.getAttribute(fC)??"")}"]`;c=()=>(f.ownerDocument??e.current)?.querySelector(w)??null}if(!l)return null;let h=f,I=()=>(h=zg(h,c?c():h?.ownerDocument??e.current,n),h),g=I();return g?{element:I,value:l.value,rules:l.rules,multiline:l.multiline,skip:l.skip,write:l.write,key:d,toolbar:{offered:l.offered,colors:l.offered.length>0?fs(_P(g)):void 0,colorNameOf:rt}}:null};return{at:n=>{let s=n.closest(`[${Gt}]`),l=s?.getAttribute(Gt);return s&&l?a(l,s):null},atSelection:()=>{let n=r.current.parts.selectedPartId;return n?a(n,null):null},onCopyText:n=>v_(n,o),copyValue:n=>C_(n,o),onChange:n=>{if(!n.typing){$g(null);return}let s=n.element.closest(`[${Gt}]`)?.getAttribute(Gt)??null;$g(s),s&&r.current.parts.selectedPartId!==s&&r.current.parts.select(s)}}},[o,e])}var ufe=Hk.mediaFields,mfe=/video|poster|focal|phone/i;function hfe(e){return(K(ufe,e)??[]).find(o=>!o.includes("[]")&&!mfe.test(o))??null}function xfe(e){let o=hfe(e.type);return e.type!==te?o&&ic(e.type,e.props,o)?{fromData:!0}:o:Zc(e.props)?{fromData:!0}:o}var O5={adds:{kind:"block",type:"ImageBlock"},kinds:["image"],pictureOf:xfe,create:(e,o)=>({type:"ImageBlock",props:{...o.nodeDefaults("ImageBlock"),id:o.newNodeId("ImageBlock"),src:e.url}})};var _5={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 rh}from"react/jsx-runtime";import{useState as Ife}from"react";import{Button as gfe,Tooltip as bfe,toast as A5}from"efficient-shell/ui";import{TemplateIcon as yfe}from"efficient-easel/icons";import{useSettledAction as Sfe}from"efficient-easel/easel";import{useScreenDocument as wfe}from"efficient-easel/screen/components/ScreenDocumentContext";function L5({enabled:e,reason:o,onSaved:t}){let{flushSave:r}=wfe(),[a,n]=Ife(!1),s=async()=>{if(!a){n(!0);try{await r()?t():A5.error(i(R5))}catch{A5.error(i(R5))}finally{n(!1)}}},l=Sfe({onPress:()=>{s()},busy:a});return rh(bfe,{side:"bottom",content:e?i("Save this website as a platform template"):i(o),children:rh("span",{className:"sf-tip-disabled",tabIndex:e?void 0:0,children:rh(gfe,{variant:"secondary",disabled:!e||l.busy,loading:l.busy,onClick:l.onPress,rightIcon:rh(yfe,{size:15}),children:i("Save as Template")})})})}var R5="Your last changes did not save, so the template was not made. Try again.";var Cfe="Save your page changes first";function F5(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:Cfe}:{visible:!0,enabled:!0}:{visible:!1,hiddenReason:"no-site"}:{visible:!1,hiddenReason:"not-operator"}:{visible:!1,hiddenReason:"no-console"}}var B5="storefront-editor:save-as-template";var $d="ContactLocations",vfe="CityPictures",kfe="CityMaps",Tfe=[{key:vfe,label:"City pictures",desc:"A wall of city photos, grouped by region. Each photo links to its city's card."},{key:kfe,label:"City maps",desc:"A card per city, grouped by region: address, phone, hours and a map."}];function D5(e=Qi){let o=SC.find(t=>t.sections.some(r=>r.type===$d))?.key;return!e.includes($d)||!o?[]:Tfe.map(({key:t,label:r,desc:a},n)=>({key:t,label:r,cat:o,after:$d,desc:a,alias:"locations offices stores branches",insert:s=>{let l=ca($d);return l?Ym($d,l,n)(s.nodeDefaults,s.newNodeId,cl()):null}}))}function M5(e,{nodeDefaults:o,newNodeId:t,sectionLabel:r,blockIsOffered:a}){let n=hl(e);if(n)return n(o,t,cl());if(Sv(e)&&a(te)&&a(Kn)){let l=K(kr,e);return{type:te,props:{...o(te),id:t(te),direction:"column",name:`${r(e)} section`,content:[{type:Kn,props:{...o(Kn),id:t(Kn),...l?.headStyle?{headStyle:l.headStyle}:{},...l?.headRowGap?{rowGap:l.headRowGap}:{},...l?.headDescriptionSize?{descriptionSize:l.headDescriptionSize}:{},...nd(e)!==nd(Kn)?{eyebrowLook:nd(e)}:{}}},{type:e,props:{...o(e),id:t(e),headPlacement:"own-box",...N5(e,t)}}]}}}if(K(ur,e)?.fixed===!0)return{type:e,props:{...o(e),id:t(e),layout:"boxes"}};let s=N5(e,t);return Object.keys(s).length?{type:e,props:{...o(e),id:t(e),...s}}:null}function N5(e,o){return e==="Cards"?{template:Iv(t=>o(t))}:e===bv?{template:yv(t=>o(t))}:{}}import{useEffect as Pfe,useState as Efe}from"react";import{useEaselSession as Ofe}from"efficient-easel/screen/lib/session-context";function H5(){let e=Ofe().chrome?.products?.list,[o,t]=Efe(null);return Pfe(()=>{if(!e)return;let r=!1;return e().then(a=>{r||t(a)}),()=>{r=!0}},[e]),o}function Y5({mode:e,open:o}){let{setSelectedHeroId:t,setSelectHandler:r}=OA(),a=V5().tree,n=e,s=n.kind==="ticker"?n.heroId:null,l=Il(d=>{d&&(o({kind:"ticker",heroId:d}),Mfe(d))},[o]);return mr(()=>{t(s)},[s,t]),mr(()=>{r(l)},[r,l]),{partRows:(d,{rowClick:c})=>{let f=String(d.props.id);return d.type==="Hero"&&Hb(d.props)&&To(j5,{icon:To(fn,{type:"ticker",size:13}),name:i(Ei),onSelect:()=>l(f),selected:s===f,rowProps:{onClick:c(()=>l(f))},words:a})}}}function X5({mode:e,select:o}){let{setSelectedHeroPart:t,setSelectHandler:r}=qp(),a=V5().tree,{appState:n}=K5(p=>p),s=n.data.content??[],l=_fe(s);l.current=s;let d=e,c=dn.find(p=>Ai[p]===d.kind),f=c&&"nodeId"in d?Ri(String(d.nodeId),c):null,u=Il(p=>{let h=NA(p);if(!h)return;let I=l.current.findIndex(C=>String(C.props.id)===h.nodeId);if(I<0)return;let g={kind:Ai[h.part],nodeId:h.nodeId};o({index:I},g)},[o]);return mr(()=>{t(f)},[f,t]),mr(()=>{r(u)},[r,u]),{partRows:(p,{rowClick:h})=>{let I=String(p.props.id),g=DA(p);if(g.length===0)return null;let C=y=>{let b=Ri(I,y.part);return To(j5,{icon:To(fn,{type:y.part==="media"?"heroMedia":"heroImage",size:13}),name:i(y.label),onSelect:()=>u(b),selected:f===b,rowProps:{onClick:h(()=>u(b))},words:a},b)},[w,...T]=g;return Gd(G5,{children:[C(w),T.length>0&&To(Bfe,{children:T.map(C)})]})}}}function Z5(e,o){return{partRows:(t,r)=>Gd(G5,{children:[e.partRows?.(t,r),o.partRows?.(t,r)]})}}function Hfe(e){let{adapter:o,capabilities:t,currentSlug:r,siteId:a,docId:n,hasUnsavedEdits:s,bridgeCapabilities:l,notifyParent:d,token:c}=ah(),{hasPreviewLink:f}=t,u=to(q5()).preview?.draftLink,p=z4(e.data),h=F5({hasTrustedConsole:!!c,canCreatePlatformTemplate:l.canCreatePlatformTemplate,capabilities:t,siteId:a,hasUnsavedEdits:s}),I=Il(()=>{!a||!r||d(B5,{siteId:a,slug:r})},[d,a,r]),g=y4({pageSlug:r,siteId:a,token:c}),C=o.previewHref?.(r)??g;return{barLead:()=>h.visible&&To(L5,{enabled:h.enabled,reason:h.enabled?"":h.disabledReason,onSaved:I}),barView:()=>f&&r&&To(C4,{liveHref:C,pageId:n??null,draftLink:u}),mainAction:p}}function Wfe(e,o){let{capabilities:t,templateId:r,siteId:a,tokenRef:n,navigate:s}=ah(),{hasSiteTheme:l,explainsSiteSettings:d}=t,c=y=>o.setView(y),[f,u]=W5(Ns[0].id),[p,h]=W5(!1),{surface:I,setSurface:g}=EA(),C=()=>{if(l){c("styles"),o.reveal(),U5();return}e.show(Tw),e.reveal(),U5()},w={id:"pages",label:i("Pages"),icon:To(Rfe,{}),panel:({onHide:y})=>To(gA,{activeSurface:I,onPreviewSurface:g,onNavigate:b=>{g(null),s(r?{kind:"template",id:r,pageSlug:b}:{kind:"page",slug:b,siteId:a??void 0})},onClose:y})},T=[];return!l&&d&&T.push({id:"appearance",label:i("Appearance"),icon:To(Ffe,{}),active:e.kind==="website",onSelect:C}),l&&T.push({id:"styles",label:i("Styles"),icon:To(Lfe,{}),panel:({onHide:y,notify:b})=>To(bM,{tokenRef:n,siteId:a??void 0,onClose:y,onNotify:b,tab:f,onTabChange:u,revealPageGroup:p,onPageGroupRevealed:()=>h(!1)})}),{railLead:[w],railTrail:T,resolveLeftView:y=>u5(y,l),openSettings:C,openStyles:()=>{u(oA),c("styles")},openPageStyles:l?()=>{u(Hs),h(!0),c("styles"),o.reveal()}:d?()=>{e.show(lM),e.reveal()}:void 0}}function Ufe(){let{navigate:e,siteId:o,reloadFromServer:t,docId:r}=ah(),a=K5(s=>s.config),n=q5();mr(()=>(fx({openPage:s=>e({kind:"page",slug:s.slug,siteId:o??void 0}),reload:()=>{t()},config:a}),()=>fx(null)),[e,o,t,a]),mr(()=>{let s=Bt();if(!s||!r)return;let l=!1;return Nfe(n).list().then(d=>{l||s.learn(d)}).catch(()=>{}),()=>{l=!0}},[r,n])}function J5(){let e=Oc();return Il(o=>{k_(o,e)},[e])}function zfe(e,o,t,r){let{kind:a,open:n}=e,{selected:s,zoneOf:l}=o;mr(()=>{l5(s?.type==="BookingBox"&&s.props.region==="confirm"?i5(l(String(s.props.id))):null)},[s?.props.id]);let d=WM(e,o),{capabilities:{hasSiteSettings:c}}=ah();Ufe();let{chat:f,setChat:u,setSelected:p,setSelectHandler:h}=Vp(),I=Il(()=>n(iM),[n]),g=a==="chat";mr(()=>{p(g)},[g,p]),mr(()=>{h(I)},[h,I]);let{setOpenHandler:C}=Pi(),w=Il(()=>n(dM),[n]);mr(()=>{C(w)},[C,w]);let T=Z5(Y5(e),X5(e)),y=Hfe(o),b=Wfe(e,r),P=t.device,H=J5();return{...T,...y,...b,hasOwnRows:E=>E.type===Mm,ownRows:d.renderLocationTree,sectionPressed:d.sectionPressed,onCopyItem:H,wrap:E=>To(Jh.Provider,{value:!0,children:Gd(Dfe.Provider,{value:P,children:[E,To(X4,{})]})}),addPanelRow:E=>c?Gd("div",{className:"sf-addside-sitewide",children:[To("span",{className:"sf-addside-sitewide-glyph","aria-hidden":"true",children:To(fn,{type:"chat",size:16})}),Gd("button",{type:"button",className:"sf-addside-sitewide-name",onClick:()=>{E(),I()},children:[i("Live chat"),To("span",{className:"sf-addside-sitewide-desc",children:i("A chat bubble on every page")})]}),To(Afe,{checked:f.enabled,onChange:W=>u({enabled:W}),ariaLabel:i("Show the chat bubble on the whole site")})]}):void 0}}var z5=null,uC=new WeakMap;function $fe(e){let o=qk();if(!e||!o)return e;z5!==o&&(z5=o,uC=new WeakMap);let t=uC.get(e);return t||(t={...e,choices:e.choices?e.choices.map(r=>({...r,label:i(r.label)})):null,spec:e.spec?{...e.spec,addLabel:i(e.spec.addLabel),...e.spec.childLabel?{childLabel:i(e.spec.childLabel)}:{}}:null},uC.set(e,t)),t}var Gfe={isLockedBlock:(e,o)=>uu(e,o)||!!(o&&Bt()?.heldElsewhere(o.props.id)),duplicateBlocked:Nu,nestDepth:(e,o,t)=>o===gk?Sk(e,t):0,newSectionNode:M5,canAddTo:(e,o,t,r)=>$fe(n5(e,o,r,t)),blockIsOffered:r5,slotsOf:s5,resolveOnInsert:!0},jfe=new Proxy(_5,{get:(e,o)=>{let t=Reflect.get(e,o);return typeof t=="string"?i(t):t}}),Kfe={labelAtLevel:(e,o,t)=>i(sh(e,o,t)),descriptions:jfe,categoryLabel:e=>{let o=Z4(e);return o===void 0?void 0:i(o)},firstSection:J4,blockRowName:d5,rowName:mu,plainText:yr,Icon:fn,Thumbnail:IM,useProducts:H5,presets:D5()},Vfe={desktop:2e3,tablet:800,mobile:390},$5="desktop",qfe={options:vA,initial:$5,fluid:$5,widths:Vfe,hidesPerView:!0},Yfe={read:f5,write:e=>p5(e),forSelection:(e,o)=>m5(e,o)},Xfe={first:Jo,last:Xe,firstGroup:Ye,lastGroup:Ue,isSectionGroup:ns,sectionGroupZone:fT,panelOf:e=>e===Jo?sM:null,get sharedReach(){return xn()?Jfe:void 0},get shared(){return Bt()?x5:void 0},get groupTab(){return xn()?dF:void 0},get groupBadge(){return xn()?Zy({type:Ue})??void 0:void 0},get changeNotice(){return xn()?cF():void 0},get band(){return xn()?Zfe:void 0},get groupAccepts(){return xn()?mT:void 0}},Zfe={foldable:!0},Jfe=e=>Zy(e)??h5(e);function Qfe(e){return{...Z5(Y5(e),X5(e)),onCopyItem:J5(),openSettings:()=>e.show(Tw)}}function epe(e,o){YH(e,o),h4()}var GYe={useOwnerName:Ws,useDocumentLabel:sA,useBridges:zfe,useStandaloneBridges:Qfe,useDocumentPass:epe,blockRules:Gfe,blockLook:Kfe,devices:qfe,leftView:Yfe,pinned:Xfe,Canvas:E5,canvasDrag:{media:O5},Inspector:fM};export{zy as a,to as b,nf as c,Hu as d,MNe as e,dr as f,cr as g,go as h,YNe as i,Qy as j,FAe as k,eu as l,Di as m,Ni as n,oR as o,BAe as p,ou as q,DAe as r,xZ as s,tR as t,NAe as u,aR as v,XH as w,O8e as x,rpe as y,de as z,i as A,Uo as B,ZH as C,R8e as D,uo as E,y$ as F,yI as G,Nbe as H,oE as I,Wbe as J,nt as K,SI as L,zbe as M,$be as N,Gbe as O,kf as P,jbe as Q,Tf as R,Kbe as S,Vbe as T,aE as U,nE as V,E$ as W,O$ as X,Zbe as Y,Qbe as Z,eye as _,oye as $,tye as aa,KE as ba,Va as ca,KG as da,cSe as ea,VG as fa,fSe as ga,lo as ha,pSe as ia,qG as ja,uSe as ka,mSe as la,hSe as ma,xSe as na,ISe as oa,gSe as pa,ws as qa,bSe as ra,Tx as sa,Ex as ta,oP as ua,Ox as va,y6 as wa,lme as xa,$c as ya,iP as za,S6 as Aa,w6 as Ba,C6 as Ca,cme as Da,fme as Ea,pme as Fa,ume as Ga,mme as Ha,hme as Ia,n2e as Ja,s2e as Ka,l2e as La,i2e as Ma,d2e as Na,c2e as Oa,f2e as Pa,p2e as Qa,PJ as Ra,_R as Sa,AR as Ta,RR as Ua,js as Va,cu as Wa,ZRe as Xa,_ye as Ya,ja as Za,bG as _a,LI as $a,ei as ab,Aye as bb,Rye as cb,BI as db,TE as eb,Lye as fb,rue as gb,Hye as hb,Wye as ib,Uye as jb,zye as kb,Zl as lb,oG as mb,iE as nb,vI as ob,nr as pb,cye as qb,Xl as rb,kI as sb,TI as tb,fye as ub,pye as vb,AF as wb,_P as xb,Che as yb,vhe as zb,oa as Ab,pW as Bb,khe as Cb,The as Db,Nx as Eb,Phe as Fb,Ehe as Gb,Ohe as Hb,RP as Ib,LP as Jb,_he as Kb,Ul as Lb,Mx as Mb,Ahe as Nb,Rhe as Ob,Lhe as Pb,Fhe as Qb,RF as Rb,Sn as Sb,x2e as Tb,I2e as Ub,g2e as Vb,LF as Wb,b2e as Xb,FF as Yb,Gu as Zb,HF as _b,R2e as $b,L2e as ac,ai as bc,sr as cc,zl as dc,Mhe as ec,Hhe as fc,vo as gc,vn as hc,Z as ic,Qs as jc,re as kc,Q as lc,se as mc,le as nc,ue as oc,cMe as pc,me as qc,ol as rc,tl as sc,rd as tc,ad as uc,$F as vc,mMe as wc,are as xc,GF as yc,IMe as zc,gMe as Ac,jF as Bc,nre as Cc,KF as Dc,sre as Ec,nd as Fc,VF as Gc,wMe as Hc,sS as Ic,kMe as Jc,TMe as Kc,PMe as Lc,EMe as Mc,OMe as Nc,_Me as Oc,Kc as Pc,LMe as Qc,Yu as Rc,sd as Sc,FMe as Tc,BMe as Uc,YF as Vc,DMe as Wc,fre as Xc,pre as Yc,NMe as Zc,ure as _c,MMe as $c,XF as ad,$Me as bd,GMe as cd,jMe as dd,KMe as ed,VMe as fd,qMe as gd,xre as hd,Ire as id,YMe as jd,XMe as kd,ZMe as ld,JMe as md,QMe as nd,eHe as od,oHe as pd,tHe as qd,rHe as rd,Ju as sd,eB as td,Ere as ud,cHe as vd,fHe as wd,em as xd,iS as yd,rB as zd,om as Ad,xHe as Bd,Ore as Cd,_re as Dd,Are as Ed,IHe as Fd,ot as Gd,Pn as Hd,sl as Id,e4e as Jd,o4e as Kd,t4e as Ld,$B as Md,GB as Nd,mae as Od,y4e as Pd,jB as Qd,KB as Rd,VB as Sd,C4e as Td,Jz as Ud,Mt as Vd,Qge as Wd,ebe as Xd,obe as Yd,tbe as Zd,Sf as _d,rbe as $d,Ff as ae,ti as be,jye as ce,Kye as de,Vye as ee,FE as fe,BE as ge,DE as he,qye as ie,Ye as je,Ue as ke,Wpe as le,pT as me,Rc as ne,pF as oe,U4e as pe,z4e as qe,rD as re,$4e as se,G4e as te,Es as ue,Gl as ve,Eg as we,Ag as xe,ip as ye,Gt as ze,fke as Ae,pke as Be,uke as Ce,mke as De,e7 as Ee,o7 as Fe,hke as Ge,Os as He,Lg as Ie,xke as Je,Ike as Ke,Tp as Le,bi as Me,nb as Ne,Ls as Oe,rn as Pe,QPe as Qe,yi as Re,f1 as Se,e0e as Te,mb as Ue,o0e as Ve,t0e as We,r0e as Xe,i9 as Ye,a0e as Ze,p9 as _e,u9 as $e,n0e as af,s0e as bf,h9 as cf,uD as df,ES as ef,Ui as ff,CL as gf,vL as hf,zi as if,aL as jf,Fy as kf,wFe as lf,In as mf,Dy as nf,lL as of,iL as pf,Ny as qf,iee as rf,dL as sf,gu as tf,cL as uf,S5e as vf,gD as wf,w5e as xf,C5e as yf,v5e as zf,Sd as Af,xm as Bf,A5e as Cf,F5e as Df,V5e as Ef,FS as Ff,q5e as Gf,kD as Hf,TD as If,Nr as Jf,n3e as Kf,ED as Lf,s3e as Mf,_D as Nf,co as Of,Ge as Pf,gm as Qf,LD as Rf,u3e as Sf,bm as Tf,FD as Uf,g3e as Vf,F3e as Wf,jD as Xf,jS as Yf,KD as Zf,N3e as _f,M3e as $f,H3e as ag,KS as bg,W3e as cg,U3e as dg,VD as eg,vm as fg,Rne as gg,km as hg,P6e as ig,ew as jg,Dne as kg,ow as lg,Gne as mg,z6e as ng,CN as og,vN as pg,$6e as qg,G6e as rg,Bg as sg,kke as tg,Dg as ug,d_ as vg,tWe as wg,DN as xg,NN as yg,SWe as zg,RWe as Ag,LWe as Bg,FWe as Cg,hw as Dg,$E as Eg,nSe as Fg,VI as Gg,qI as Hg,YI as Ig,NWe as Jg,sse as Kg,lse as Lg,jN as Mg,MWe as Ng,HWe as Og,cUe as Pg,u2 as Qg,fUe as Rg,m2 as Sg,uUe as Tg,w2 as Ug,C2 as Vg,Wse as Wg,P2 as Xg,OUe as Yg,Om as Zg,MUe as _g,Cd as $g,UUe as ah,L2 as bh,$Ue as ch,F2 as dh,B2 as eh,KUe as fh,gw as gh,jse as hh,YUe as ih,Kse as jh,XUe as kh,ZUe as lh,_m as mh,H2 as nh,oze as oh,tze as ph,rze as qh,aze as rh,Mr as sh,dze as th,X2 as uh,HGe as vh,WGe as wh,Mw as xh,UGe as yh,r0 as zh,j1 as Ah,iEe as Bh,dEe as Ch,X9 as Dh,cEe as Eh,fEe as Fh,pEe as Gh,uEe as Hh,Z9 as Ih,mEe as Jh,hEe as Kh,xEe as Lh,IEe as Mh,oq as Nh,gEe as Oh,pie as Ph,JM as Qh,KGe as Rh,Ad as Sh,oH as Th,Zr as Uh,wue as Vh,o6 as Wh,bx as Xh,Dl as Yh,Cue as Zh,Tue as _h,r6 as $h,zT as ai,Pue as bi,Ba as ci,i6 as di,Lue as ei,Fue as fi,Nl as gi,Bue as hi,Due as ii,vx as ji,VT as ki,Gue as li,LA as mi,__e as ni,Wb as oi,cn as pi,F_e as qi,B_e as ri,D_e as si,N_e as ti,KY as ui,M_e as vi,Ri as wi,NA as xi,MA as yi,Ije as zi,zw as Ai,lH as Bi,iH as Ci,Hw as Di,yie as Ei,gje as Fi,Hm as Gi,Rd as Hi,Um as Ii,bje as Ji,yje as Ki,Sje as Li,Wm as Mi,wje as Ni,Cje as Oi,E3 as Pi,zo as Qi,Ope as Ri,O3 as Si,_3 as Ti,Rpe as Ui,A3 as Vi,R3 as Wi,Lpe as Xi,Fpe as Yi,Bpe as Zi,Dpe as _i,fH as $i,Ld as aj,Fd as bj,$m as cj,uH as dj,ul as ej,mH as fj,Gm as gj,jm as hj,Km as ij,hH as jj,xH as kj,IH as lj,gH as mj,bH as nj,wH as oj,CH as pj,Jje as qj,Qje as rj,eKe as sj,oKe as tj,Nt as uj,Uie as vj,OH as wj,$ie as xj,AH as yj,RH as zj,FH as Aj,Qie as Bj,EKe as Cj,AA as Dj,k_e as Ej,WKe as Fj,UKe as Gj,Sce as Hj,vG as Ij,bs as Jj,Bye as Kj,iue as Lj,O9e as Mj,mBe as Nj,wL as Oj,Ei as Pj,b_e as Qj,OA as Rj,y_e as Sj,S_e as Tj,w_e as Uj,mGe as Vj,yM as Wj,SM as Xj,wM as Yj,YE as Zj,qa as _j,Oo as $j,st as ak,si as bk,Cs as ck,OSe as dk,_Se as ek,RSe as fk,LSe as gk,FSe as hk,BSe as ik,DSe as jk,MSe as kk,Wf as lk,li as mk,ZE as nk,JI as ok,ij as pk,JE as qk,eg as rk,Xue as sk,JT as tk,rme as uk,jc as vk,Vc as wk,Wl as xk,uP as yk,kme as zk,Tme as Ak,bP as Bk,Rx as Ck,dW as Dk,phe as Ek,zhe as Fk,Yhe as Gk,Xhe as Hk,DW as Ik,Yo as Jk,$l as Kk,Xx as Lk,Zx as Mk,Hxe as Nk,QP as Ok,Wxe as Pk,Uxe as Qk,zxe as Rk,n0 as Sk,l0 as Tk,Or as Uk,h0 as Vk,Sz as Wk,lge as Xk,v0 as Yk,mge as Zk,T0 as _k,_0 as $k,A0 as al,R0 as bl,L0 as cl,F0 as dl,B0 as el,pI as fl,Wz as gl,Uz as hl,ql as il,uI as jl,N0 as kl,Dge as ll,$z as ml,Nge as nl,Mge as ol,Hge as pl,H0 as ql,$ge as rl,Kz as sl,Gge as tl,jge as ul,qz as vl,mI as wl,Xz as xl,Yge as yl,Zz as zl,Xge as Al,II as Bl,fbe as Cl,G0 as Dl,t$ as El,ube as Fl,Yl as Gl,x$ as Hl,Lbe as Il,dG as Jl,Sye as Kl,fG as Ll,wye as Ml,Cye as Nl,vye as Ol,Ss as Pl,Nf as Ql,eSe as Rl,oSe as Sl,tSe as Tl,dj as Ul,cj as Vl,USe as Wl,mj as Xl,hj as Yl,zSe as Zl,$Se as _l,GSe as $l,jSe as am,KSe as bm,QSe as cm,ewe as dm,owe as em,twe as fm,rwe as gm,awe as hm,nwe as im,swe as jm,lwe as km,iwe as lm,dwe as mm,QE as nm,cwe as om,fwe as pm,la as qm,vj as rm,ia as sm,Za as tm,YCe as um,XCe as vm,ZCe as wm,JCe as xm,QCe as ym,eve as zm,ove as Am,nve as Bm,sve as Cm,_K as Dm,lve as Em,ive as Fm,dve as Gm,cve as Hm,fve as Im,pve as Jm,uve as Km,mve as Lm,FK as Mm,hve as Nm,bg as Om,xve as Pm,Zf as Qm,Jf as Rm,Zo as Sm,Ut as Tm,LO as Um,ta as Vm,FO as Wm,BO as Xm,Qf as Ym,Ive as Zm,gve as _m,s8 as $m,bve as an,yve as bn,Sve as cn,wve as dn,Cve as en,vve as fn,Po as gn,kve as hn,Tve as in,jf as jn,ep as kn,op as ln,wg as mn,rp as nn,Pve as on,zO as pn,Eve as qn,O8 as rn,Ove as sn,_ve as tn,jO as un,Ave as vn,Rve as wn,Lve as xn,Fve as yn,Bve as zn,Dve as An,Tg as Bn,Nve as Cn,VO as Dn,Mve as En,Hve as Fn,Ts as Gn,YO as Hn,Wve as In,Uve as Jn,zve as Kn,$ve as Ln,wLe as Mn,CLe as Nn,vLe as On,mu as Pn,ZR as Qn,Oy as Rn,jLe as Sn,KLe as Tn,tL as Un,bt as Vn,au as Wn,rJ as Xn,aJ as Yn,hRe as Zn,xRe as _n,IRe as $n,gRe as ao,gR as bo,SRe as co,wRe as do,CRe as eo,CV as fo,q_ as go,Y_ as ho,jp as io,bA as jo,yA as ko,wA as lo,Kp as mo,o_e as no,t_e as oo,Vp as po,NY as qo,p_e as ro,Pi as so,x_e as to,EA as uo,as as vo,T3 as wo,Tpe as xo,Ppe as yo,JDe as zo,QDe as Ao,eNe as Bo,KKe as Co,E_e as Do,qp as Eo,mpe as Fo,a7 as Go,Dke as Ho,Nke as Io,u_ as Jo,Mke as Ko,Hke as Lo,Zg as Mo,b1 as No,y0e as Oo,S0e as Po,w0e as Qo,C0e as Ro,G1 as So,OEe as To,_Ee as Uo,WA as Vo,SAe as Wo,VA as Xo,Gi as Yo,Yee as Zo,_Be as _o,MBe as $o,Cu as ap,Xe as bp,Du as cp,Yt as dp,kM as ep,Pd as fp,TM as gp,PM as hp,bGe as ip,yGe as jp,x4 as kp,eC as lp,I4 as mp,n5 as np,KVe as op,eh as pp,Ace as qp,Rce as rp,r9e as sp,lpe as tp,fpe as up,GYe as vp};
|
|
340
|
+
`;function w5({children:e,document:o}){let{theme:t,themeMode:r,themeSwitchShown:a}=he(),n=xo(t);return S5(()=>{if(o)return g5(o,{mode:r,switchShown:a})},[o,r,a]),S5(()=>{if(o)return b5(o,n)},[o,n]),Hce(()=>{if(o)return SF(o)},[o]),Mce(Nce,{children:[y5(Xk,{}),y5("style",{children:Wce}),e]})}import{jsx as lC}from"react/jsx-runtime";import{useEffect as Uce,useState as zce}from"react";import{Banner as $ce}from"efficient-shell/ui";var oh={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."},Gce={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."},jce=oh.load,Kce=oh.lock,Vce=oh.conflict,qce=oh.save;function Yce(e){if(!e)return null;if(e.loadFailed)return i(jce);if(e.lockHolder)return i(Kce,{name:e.lockHolder.name||i("Somebody else")});if(e.conflict)return i(Vce);if(e.saveFailed)return i(qce);let o=e.sections?.[0];if(!o)return null;let t=o.title||i("A shared section"),r=o.holder?.name||i("Somebody else");return i(Gce[o.problem],{section:t,name:r})}function Xce({report:e}){let o=Yce(Zm(e)),[t,r]=zce(null);return Uce(()=>{o||r(null)},[o]),!o||t===o?null:lC("aside",{className:"sf-canvas-notice",children:lC($ce,{tone:"warning",onDismiss:()=>r(o),children:o})})}function C5(){return lC(Xce,{report:Jm()})}import{jsx as th}from"react/jsx-runtime";import{useState as v5}from"react";import{Banner as Zce,Button as Jce}from"efficient-shell/ui";import{UndoIcon as Qce}from"efficient-shell/icons/efficient";import{useScreenDocument as efe}from"efficient-easel/screen/components/ScreenDocumentContext";import{useSettledAction as ofe}from"efficient-easel/easel";function k5(){let e=R4(),{adapter:o,flushSave:t,reloadFromServer:r}=efe(),a=o.siteVersions,[n,s]=v5(!1),[l,d]=v5(!1),c=async()=>{if(!(!a||n)){s(!0),d(!1);try{await B4({access:a,flushSave:t,reload:r})}catch{d(!0)}finally{s(!1)}}},f=ofe({onPress:()=>{c()},busy:n});return e?th("aside",{className:"sf-canvas-notice",children:th(Zce,{tone:l?"danger":"info",title:e.title,onDismiss:Qm,action:a&&e.undo?th(Jce,{variant:"secondary",size:"sm",leftIcon:th(Qce,{}),loading:f.busy,disabled:f.busy,onClick:f.onPress,children:i("Undo")}):void 0,children:l?i("Undo did not work. Nothing changed. Try again."):i("Check it with Preview. Press Publish to put it live.")})}):null}import{decodePartId as dfe,REPEAT_ATTRIBUTE as cC,REPEAT_INDEX_ATTRIBUTE as fC}from"efficient-easel/draw";import{usePreviewParts as cfe}from"efficient-easel/draw/client";var T5=null;function iC(e){T5=e}function _9e(){return T5}import{ScreenDocumentContext as ffe}from"efficient-easel/screen/components/ScreenDocumentContext";function E5(e){let{mirrorHostStyles:o}=Zh(),t=Jk(),{sectionBackgroundWidth:r,themeFromDocument:a}=he(),n=Wk(),s=afe(ffe),l=Dc(s?.docId??null),d=ife(w=>w.appState.data),c=_T(l,d),f=JSON.stringify(c),u=pC(()=>c,[f]),p=pC(()=>({...e.metadata??t??{},...qE(a?null:r,n),...u}),[e.metadata,t,r,n,a,u]);nfe(()=>(iC(n),()=>iC(null)),[n]);let h=P5(null),I=pfe(h),{onDocument:g}=e,C=w=>{h.current=w,g?.(w)};return rfe(tfe,{children:[dC(k5,{}),dC(C5,{}),dC(sfe,{...e,onDocument:C,typing:I,metadata:p,height:"fill",mirrorStyles:o,frameWrapper:w5})]})}function pfe(e){let o=Oc(),t=cfe(),r=P5({parts:t});return r.current={parts:t},pC(()=>{let a=(n,s)=>{let l=up(n,o),d,c=null,f=s??(l?null:zg(null,e.current,n)),u=!l&&f?lfe(f):null,p=u?dfe(n):null;if(u&&f&&p?.propKey){l=hp({...u,nodeId:p.nodeId,key:p.propKey},o),d=p.propKey;let C=f.closest(`[${cC}][${fC}]`),w=`[${cC}="${mp(C?.getAttribute(cC)??"")}"][${fC}="${mp(C?.getAttribute(fC)??"")}"]`;c=()=>(f.ownerDocument??e.current)?.querySelector(w)??null}if(!l)return null;let h=f,I=()=>(h=zg(h,c?c():h?.ownerDocument??e.current,n),h),g=I();return g?{element:I,value:l.value,rules:l.rules,multiline:l.multiline,skip:l.skip,write:l.write,key:d,toolbar:{offered:l.offered,colors:l.offered.length>0?fs(_P(g)):void 0,colorNameOf:rt}}:null};return{at:n=>{let s=n.closest(`[${Gt}]`),l=s?.getAttribute(Gt);return s&&l?a(l,s):null},atSelection:()=>{let n=r.current.parts.selectedPartId;return n?a(n,null):null},onCopyText:n=>v_(n,o),copyValue:n=>C_(n,o),onChange:n=>{if(!n.typing){$g(null);return}let s=n.element.closest(`[${Gt}]`)?.getAttribute(Gt)??null;$g(s),s&&r.current.parts.selectedPartId!==s&&r.current.parts.select(s)}}},[o,e])}var ufe=Hk.mediaFields,mfe=/video|poster|focal|phone/i;function hfe(e){return(K(ufe,e)??[]).find(o=>!o.includes("[]")&&!mfe.test(o))??null}function xfe(e){let o=hfe(e.type);return e.type!==te?o&&ic(e.type,e.props,o)?{fromData:!0}:o:Zc(e.props)?{fromData:!0}:o}var O5={adds:{kind:"block",type:"ImageBlock"},kinds:["image"],pictureOf:xfe,create:(e,o)=>({type:"ImageBlock",props:{...o.nodeDefaults("ImageBlock"),id:o.newNodeId("ImageBlock"),src:e.url}})};var _5={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 rh}from"react/jsx-runtime";import{useState as Ife}from"react";import{Button as gfe,Tooltip as bfe,toast as A5}from"efficient-shell/ui";import{TemplateIcon as yfe}from"efficient-easel/icons";import{useSettledAction as Sfe}from"efficient-easel/easel";import{useScreenDocument as wfe}from"efficient-easel/screen/components/ScreenDocumentContext";function L5({enabled:e,reason:o,onSaved:t}){let{flushSave:r}=wfe(),[a,n]=Ife(!1),s=async()=>{if(!a){n(!0);try{await r()?t():A5.error(i(R5))}catch{A5.error(i(R5))}finally{n(!1)}}},l=Sfe({onPress:()=>{s()},busy:a});return rh(bfe,{side:"bottom",content:e?i("Save this website as a platform template"):i(o),children:rh("span",{className:"sf-tip-disabled",tabIndex:e?void 0:0,children:rh(gfe,{variant:"secondary",disabled:!e||l.busy,loading:l.busy,onClick:l.onPress,rightIcon:rh(yfe,{size:15}),children:i("Save as Template")})})})}var R5="Your last changes did not save, so the template was not made. Try again.";var Cfe="Save your page changes first";function F5(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:Cfe}:{visible:!0,enabled:!0}:{visible:!1,hiddenReason:"no-site"}:{visible:!1,hiddenReason:"not-operator"}:{visible:!1,hiddenReason:"no-console"}}var B5="storefront-editor:save-as-template";var $d="ContactLocations",vfe="CityPictures",kfe="CityMaps",Tfe=[{key:vfe,label:"City pictures",desc:"A wall of city photos, grouped by region. Each photo links to its city's card."},{key:kfe,label:"City maps",desc:"A card per city, grouped by region: address, phone, hours and a map."}];function D5(e=Qi){let o=SC.find(t=>t.sections.some(r=>r.type===$d))?.key;return!e.includes($d)||!o?[]:Tfe.map(({key:t,label:r,desc:a},n)=>({key:t,label:r,cat:o,after:$d,desc:a,alias:"locations offices stores branches",insert:s=>{let l=ca($d);return l?Ym($d,l,n)(s.nodeDefaults,s.newNodeId,cl()):null}}))}function M5(e,{nodeDefaults:o,newNodeId:t,sectionLabel:r,blockIsOffered:a}){let n=hl(e);if(n)return n(o,t,cl());if(Sv(e)&&a(te)&&a(Kn)){let l=K(kr,e);return{type:te,props:{...o(te),id:t(te),direction:"column",name:`${r(e)} section`,content:[{type:Kn,props:{...o(Kn),id:t(Kn),...l?.headStyle?{headStyle:l.headStyle}:{},...l?.headRowGap?{rowGap:l.headRowGap}:{},...l?.headDescriptionSize?{descriptionSize:l.headDescriptionSize}:{},...nd(e)!==nd(Kn)?{eyebrowLook:nd(e)}:{}}},{type:e,props:{...o(e),id:t(e),headPlacement:"own-box",...N5(e,t)}}]}}}if(K(ur,e)?.fixed===!0)return{type:e,props:{...o(e),id:t(e),layout:"boxes"}};let s=N5(e,t);return Object.keys(s).length?{type:e,props:{...o(e),id:t(e),...s}}:null}function N5(e,o){return e==="Cards"?{template:Iv(t=>o(t))}:e===bv?{template:yv(t=>o(t))}:{}}import{useEffect as Pfe,useState as Efe}from"react";import{useEaselSession as Ofe}from"efficient-easel/screen/lib/session-context";function H5(){let e=Ofe().chrome?.products?.list,[o,t]=Efe(null);return Pfe(()=>{if(!e)return;let r=!1;return e().then(a=>{r||t(a)}),()=>{r=!0}},[e]),o}function Y5({mode:e,open:o}){let{setSelectedHeroId:t,setSelectHandler:r}=OA(),a=V5().tree,n=e,s=n.kind==="ticker"?n.heroId:null,l=Il(d=>{d&&(o({kind:"ticker",heroId:d}),Mfe(d))},[o]);return mr(()=>{t(s)},[s,t]),mr(()=>{r(l)},[r,l]),{partRows:(d,{rowClick:c})=>{let f=String(d.props.id);return d.type==="Hero"&&Hb(d.props)&&To(j5,{icon:To(fn,{type:"ticker",size:13}),name:i(Ei),onSelect:()=>l(f),selected:s===f,rowProps:{onClick:c(()=>l(f))},words:a})}}}function X5({mode:e,select:o}){let{setSelectedHeroPart:t,setSelectHandler:r}=qp(),a=V5().tree,{appState:n}=K5(p=>p),s=n.data.content??[],l=_fe(s);l.current=s;let d=e,c=dn.find(p=>Ai[p]===d.kind),f=c&&"nodeId"in d?Ri(String(d.nodeId),c):null,u=Il(p=>{let h=NA(p);if(!h)return;let I=l.current.findIndex(C=>String(C.props.id)===h.nodeId);if(I<0)return;let g={kind:Ai[h.part],nodeId:h.nodeId};o({index:I},g)},[o]);return mr(()=>{t(f)},[f,t]),mr(()=>{r(u)},[r,u]),{partRows:(p,{rowClick:h})=>{let I=String(p.props.id),g=DA(p);if(g.length===0)return null;let C=y=>{let b=Ri(I,y.part);return To(j5,{icon:To(fn,{type:y.part==="media"?"heroMedia":"heroImage",size:13}),name:i(y.label),onSelect:()=>u(b),selected:f===b,rowProps:{onClick:h(()=>u(b))},words:a},b)},[w,...T]=g;return Gd(G5,{children:[C(w),T.length>0&&To(Bfe,{children:T.map(C)})]})}}}function Z5(e,o){return{partRows:(t,r)=>Gd(G5,{children:[e.partRows?.(t,r),o.partRows?.(t,r)]})}}function Hfe(e){let{adapter:o,capabilities:t,currentSlug:r,siteId:a,docId:n,hasUnsavedEdits:s,bridgeCapabilities:l,notifyParent:d,token:c}=ah(),{hasPreviewLink:f}=t,u=to(q5()).preview?.draftLink,p=z4(e.data),h=F5({hasTrustedConsole:!!c,canCreatePlatformTemplate:l.canCreatePlatformTemplate,capabilities:t,siteId:a,hasUnsavedEdits:s}),I=Il(()=>{!a||!r||d(B5,{siteId:a,slug:r})},[d,a,r]),g=y4({pageSlug:r,siteId:a,token:c}),C=o.previewHref?.(r)??g;return{barLead:()=>h.visible&&To(L5,{enabled:h.enabled,reason:h.enabled?"":h.disabledReason,onSaved:I}),barView:()=>f&&r&&To(C4,{liveHref:C,pageId:n??null,draftLink:u}),mainAction:p}}function Wfe(e,o){let{capabilities:t,templateId:r,siteId:a,tokenRef:n,navigate:s}=ah(),{hasSiteTheme:l,explainsSiteSettings:d}=t,c=y=>o.setView(y),[f,u]=W5(Ns[0].id),[p,h]=W5(!1),{surface:I,setSurface:g}=EA(),C=()=>{if(l){c("styles"),o.reveal(),U5();return}e.show(Tw),e.reveal(),U5()},w={id:"pages",label:i("Pages"),icon:To(Rfe,{}),panel:({onHide:y})=>To(gA,{activeSurface:I,onPreviewSurface:g,onNavigate:b=>{g(null),s(r?{kind:"template",id:r,pageSlug:b}:{kind:"page",slug:b,siteId:a??void 0})},onClose:y})},T=[];return!l&&d&&T.push({id:"appearance",label:i("Appearance"),icon:To(Ffe,{}),active:e.kind==="website",onSelect:C}),l&&T.push({id:"styles",label:i("Styles"),icon:To(Lfe,{}),panel:({onHide:y,notify:b})=>To(bM,{tokenRef:n,siteId:a??void 0,onClose:y,onNotify:b,tab:f,onTabChange:u,revealPageGroup:p,onPageGroupRevealed:()=>h(!1)})}),{railLead:[w],railTrail:T,resolveLeftView:y=>u5(y,l),openSettings:C,openStyles:()=>{u(oA),c("styles")},openPageStyles:l?()=>{u(Hs),h(!0),c("styles"),o.reveal()}:d?()=>{e.show(lM),e.reveal()}:void 0}}function Ufe(){let{navigate:e,siteId:o,reloadFromServer:t,docId:r}=ah(),a=K5(s=>s.config),n=q5();mr(()=>(fx({openPage:s=>e({kind:"page",slug:s.slug,siteId:o??void 0}),reload:()=>{t()},config:a}),()=>fx(null)),[e,o,t,a]),mr(()=>{let s=Bt();if(!s||!r)return;let l=!1;return Nfe(n).list().then(d=>{l||s.learn(d)}).catch(()=>{}),()=>{l=!0}},[r,n])}function J5(){let e=Oc();return Il(o=>{k_(o,e)},[e])}function zfe(e,o,t,r){let{kind:a,open:n}=e,{selected:s,zoneOf:l}=o;mr(()=>{l5(s?.type==="BookingBox"&&s.props.region==="confirm"?i5(l(String(s.props.id))):null)},[s?.props.id]);let d=WM(e,o),{capabilities:{hasSiteSettings:c}}=ah();Ufe();let{chat:f,setChat:u,setSelected:p,setSelectHandler:h}=Vp(),I=Il(()=>n(iM),[n]),g=a==="chat";mr(()=>{p(g)},[g,p]),mr(()=>{h(I)},[h,I]);let{setOpenHandler:C}=Pi(),w=Il(()=>n(dM),[n]);mr(()=>{C(w)},[C,w]);let T=Z5(Y5(e),X5(e)),y=Hfe(o),b=Wfe(e,r),P=t.device,H=J5();return{...T,...y,...b,hasOwnRows:E=>E.type===Mm,ownRows:d.renderLocationTree,sectionPressed:d.sectionPressed,onCopyItem:H,wrap:E=>To(Jh.Provider,{value:!0,children:Gd(Dfe.Provider,{value:P,children:[E,To(X4,{})]})}),addPanelRow:E=>c?Gd("div",{className:"sf-addside-sitewide",children:[To("span",{className:"sf-addside-sitewide-glyph","aria-hidden":"true",children:To(fn,{type:"chat",size:16})}),Gd("button",{type:"button",className:"sf-addside-sitewide-name",onClick:()=>{E(),I()},children:[i("Live chat"),To("span",{className:"sf-addside-sitewide-desc",children:i("A chat bubble on every page")})]}),To(Afe,{checked:f.enabled,onChange:W=>u({enabled:W}),ariaLabel:i("Show the chat bubble on the whole site")})]}):void 0}}var z5=null,uC=new WeakMap;function $fe(e){let o=qk();if(!e||!o)return e;z5!==o&&(z5=o,uC=new WeakMap);let t=uC.get(e);return t||(t={...e,choices:e.choices?e.choices.map(r=>({...r,label:i(r.label)})):null,spec:e.spec?{...e.spec,addLabel:i(e.spec.addLabel),...e.spec.childLabel?{childLabel:i(e.spec.childLabel)}:{}}:null},uC.set(e,t)),t}var Gfe={isLockedBlock:(e,o)=>uu(e,o)||!!(o&&Bt()?.heldElsewhere(o.props.id)),duplicateBlocked:Nu,nestDepth:(e,o,t)=>o===gk?Sk(e,t):0,newSectionNode:M5,canAddTo:(e,o,t,r)=>$fe(n5(e,o,r,t)),blockIsOffered:r5,slotsOf:s5,resolveOnInsert:!0},jfe=new Proxy(_5,{get:(e,o)=>{let t=Reflect.get(e,o);return typeof t=="string"?i(t):t}}),Kfe={labelAtLevel:(e,o,t)=>i(sh(e,o,t)),descriptions:jfe,categoryLabel:e=>{let o=Z4(e);return o===void 0?void 0:i(o)},firstSection:J4,blockRowName:d5,rowName:mu,plainText:yr,Icon:fn,Thumbnail:IM,useProducts:H5,presets:D5()},Vfe={desktop:2e3,tablet:800,mobile:390},$5="desktop",qfe={options:vA,initial:$5,fluid:$5,widths:Vfe,hidesPerView:!0},Yfe={read:f5,write:e=>p5(e),forSelection:(e,o)=>m5(e,o)},Xfe={first:Jo,last:Xe,firstGroup:Ye,lastGroup:Ue,isSectionGroup:ns,sectionGroupZone:fT,panelOf:e=>e===Jo?sM:null,get sharedReach(){return xn()?Jfe:void 0},get shared(){return Bt()?x5:void 0},get groupTab(){return xn()?dF:void 0},get groupBadge(){return xn()?Zy({type:Ue})??void 0:void 0},get changeNotice(){return xn()?cF():void 0},get band(){return xn()?Zfe:void 0},get groupAccepts(){return xn()?mT:void 0}},Zfe={foldable:!0},Jfe=e=>Zy(e)??h5(e);function Qfe(e){return{...Z5(Y5(e),X5(e)),onCopyItem:J5(),openSettings:()=>e.show(Tw)}}function epe(e,o){YH(e,o),h4()}var jYe={useOwnerName:Ws,useDocumentLabel:sA,useBridges:zfe,useStandaloneBridges:Qfe,useDocumentPass:epe,blockRules:Gfe,blockLook:Kfe,devices:qfe,leftView:Yfe,pinned:Xfe,Canvas:E5,canvasDrag:{media:O5},Inspector:fM};export{zy as a,to as b,nf as c,Hu as d,HNe as e,dr as f,cr as g,go as h,XNe as i,Qy as j,BAe as k,eu as l,Di as m,Ni as n,oR as o,DAe as p,ou as q,NAe as r,xZ as s,tR as t,MAe as u,aR as v,XH as w,_8e as x,rpe as y,de as z,i as A,Uo as B,ZH as C,L8e as D,uo as E,y$ as F,yI as G,Mbe as H,oE as I,Ube as J,nt as K,SI as L,$be as M,Gbe as N,jbe as O,kf as P,Kbe as Q,Tf as R,Vbe as S,qbe as T,aE as U,nE as V,E$ as W,O$ as X,Jbe as Y,eye as Z,oye as _,tye as $,rye as aa,KE as ba,Va as ca,KG as da,fSe as ea,VG as fa,pSe as ga,lo as ha,uSe as ia,qG as ja,mSe as ka,hSe as la,xSe as ma,ISe as na,gSe as oa,bSe as pa,ws as qa,ySe as ra,Tx as sa,Ex as ta,oP as ua,Ox as va,y6 as wa,ime as xa,$c as ya,iP as za,S6 as Aa,w6 as Ba,C6 as Ca,fme as Da,pme as Ea,ume as Fa,mme as Ga,hme as Ha,xme as Ia,s2e as Ja,l2e as Ka,i2e as La,d2e as Ma,c2e as Na,f2e as Oa,p2e as Pa,u2e as Qa,PJ as Ra,_R as Sa,AR as Ta,RR as Ua,js as Va,cu as Wa,JRe as Xa,Aye as Ya,ja as Za,bG as _a,LI as $a,ei as ab,Rye as bb,Lye as cb,BI as db,TE as eb,Fye as fb,aue as gb,Wye as hb,Uye as ib,zye as jb,$ye as kb,Zl as lb,oG as mb,iE as nb,vI as ob,nr as pb,fye as qb,Xl as rb,kI as sb,TI as tb,pye as ub,uye as vb,AF as wb,_P as xb,vhe as yb,khe as zb,oa as Ab,pW as Bb,The as Cb,Phe as Db,Nx as Eb,Ehe as Fb,Ohe as Gb,_he as Hb,RP as Ib,LP as Jb,Ahe as Kb,Ul as Lb,Mx as Mb,Rhe as Nb,Lhe as Ob,Fhe as Pb,Bhe as Qb,RF as Rb,Sn as Sb,I2e as Tb,g2e as Ub,b2e as Vb,LF as Wb,y2e as Xb,FF as Yb,Gu as Zb,HF as _b,L2e as $b,F2e as ac,ai as bc,sr as cc,zl as dc,Hhe as ec,Whe as fc,vo as gc,vn as hc,Z as ic,Qs as jc,re as kc,Q as lc,se as mc,le as nc,ue as oc,fMe as pc,me as qc,ol as rc,tl as sc,rd as tc,ad as uc,$F as vc,hMe as wc,are as xc,GF as yc,gMe as zc,bMe as Ac,jF as Bc,nre as Cc,KF as Dc,sre as Ec,nd as Fc,VF as Gc,CMe as Hc,sS as Ic,TMe as Jc,PMe as Kc,EMe as Lc,OMe as Mc,_Me as Nc,AMe as Oc,Kc as Pc,FMe as Qc,Yu as Rc,sd as Sc,BMe as Tc,DMe as Uc,YF as Vc,NMe as Wc,fre as Xc,pre as Yc,MMe as Zc,ure as _c,HMe as $c,XF as ad,GMe as bd,jMe as cd,KMe as dd,VMe as ed,qMe as fd,YMe as gd,xre as hd,Ire as id,XMe as jd,ZMe as kd,JMe as ld,QMe as md,eHe as nd,oHe as od,tHe as pd,rHe as qd,aHe as rd,Ju as sd,eB as td,Ere as ud,fHe as vd,pHe as wd,em as xd,iS as yd,rB as zd,om as Ad,IHe as Bd,Ore as Cd,_re as Dd,Are as Ed,gHe as Fd,ot as Gd,Pn as Hd,sl as Id,o4e as Jd,t4e as Kd,r4e as Ld,$B as Md,GB as Nd,mae as Od,S4e as Pd,jB as Qd,KB as Rd,VB as Sd,v4e as Td,Jz as Ud,Mt as Vd,ebe as Wd,obe as Xd,tbe as Yd,rbe as Zd,Sf as _d,abe as $d,Ff as ae,ti as be,Kye as ce,Vye as de,qye as ee,FE as fe,BE as ge,DE as he,Yye as ie,Ye as je,Ue as ke,Upe as le,pT as me,Rc as ne,pF as oe,z4e as pe,$4e as qe,rD as re,G4e as se,j4e as te,Es as ue,Gl as ve,Eg as we,Ag as xe,ip as ye,Gt as ze,pke as Ae,uke as Be,mke as Ce,hke as De,e7 as Ee,o7 as Fe,xke as Ge,Os as He,Lg as Ie,Ike as Je,gke as Ke,Tp as Le,bi as Me,nb as Ne,Ls as Oe,rn as Pe,e0e as Qe,yi as Re,f1 as Se,o0e as Te,mb as Ue,t0e as Ve,r0e as We,a0e as Xe,i9 as Ye,n0e as Ze,p9 as _e,u9 as $e,s0e as af,l0e as bf,h9 as cf,uD as df,ES as ef,Ui as ff,CL as gf,vL as hf,zi as if,aL as jf,Fy as kf,CFe as lf,In as mf,Dy as nf,lL as of,iL as pf,Ny as qf,iee as rf,dL as sf,gu as tf,cL as uf,w5e as vf,gD as wf,C5e as xf,v5e as yf,k5e as zf,Sd as Af,xm as Bf,R5e as Cf,B5e as Df,q5e as Ef,FS as Ff,Y5e as Gf,kD as Hf,TD as If,Nr as Jf,s3e as Kf,ED as Lf,l3e as Mf,_D as Nf,co as Of,Ge as Pf,gm as Qf,LD as Rf,m3e as Sf,bm as Tf,FD as Uf,b3e as Vf,B3e as Wf,jD as Xf,jS as Yf,KD as Zf,M3e as _f,H3e as $f,W3e as ag,KS as bg,U3e as cg,z3e as dg,VD as eg,vm as fg,Rne as gg,km as hg,E6e as ig,ew as jg,Dne as kg,ow as lg,Gne as mg,$6e as ng,CN as og,vN as pg,G6e as qg,j6e as rg,Bg as sg,Tke as tg,Dg as ug,d_ as vg,rWe as wg,DN as xg,NN as yg,wWe as zg,LWe as Ag,FWe as Bg,BWe as Cg,hw as Dg,$E as Eg,sSe as Fg,VI as Gg,qI as Hg,YI as Ig,MWe as Jg,sse as Kg,lse as Lg,jN as Mg,HWe as Ng,WWe as Og,fUe as Pg,u2 as Qg,pUe as Rg,m2 as Sg,mUe as Tg,w2 as Ug,C2 as Vg,Wse as Wg,P2 as Xg,_Ue as Yg,Om as Zg,HUe as _g,Cd as $g,zUe as ah,L2 as bh,GUe as ch,F2 as dh,B2 as eh,VUe as fh,gw as gh,jse as hh,XUe as ih,Kse as jh,ZUe as kh,JUe as lh,_m as mh,H2 as nh,tze as oh,rze as ph,aze as qh,nze as rh,Mr as sh,cze as th,X2 as uh,ts as vh,rs as wh,Spe as xh,WGe as yh,UGe as zh,Mw as Ah,zGe as Bh,r0 as Ch,j1 as Dh,dEe as Eh,cEe as Fh,X9 as Gh,fEe as Hh,pEe as Ih,uEe as Jh,mEe as Kh,Z9 as Lh,hEe as Mh,xEe as Nh,IEe as Oh,gEe as Ph,oq as Qh,bEe as Rh,pie as Sh,JM as Th,VGe as Uh,Ad as Vh,oH as Wh,Zr as Xh,Cue as Yh,o6 as Zh,bx as _h,Dl as $h,vue as ai,Pue as bi,r6 as ci,zT as di,Eue as ei,Ba as fi,i6 as gi,Fue as hi,Bue as ii,Nl as ji,Due as ki,Nue as li,vx as mi,VT as ni,jue as oi,LA as pi,A_e as qi,Wb as ri,cn as si,B_e as ti,D_e as ui,N_e as vi,M_e as wi,KY as xi,H_e as yi,Ri as zi,NA as Ai,MA as Bi,gje as Ci,zw as Di,lH as Ei,iH as Fi,Hw as Gi,yie as Hi,bje as Ii,Hm as Ji,Rd as Ki,Um as Li,yje as Mi,Sje as Ni,wje as Oi,Wm as Pi,Cje as Qi,vje as Ri,E3 as Si,zo as Ti,_pe as Ui,O3 as Vi,_3 as Wi,Lpe as Xi,A3 as Yi,R3 as Zi,Fpe as _i,Bpe as $i,Dpe as aj,Npe as bj,fH as cj,Ld as dj,Fd as ej,$m as fj,uH as gj,ul as hj,mH as ij,Gm as jj,jm as kj,Km as lj,hH as mj,xH as nj,IH as oj,gH as pj,bH as qj,wH as rj,CH as sj,Qje as tj,eKe as uj,oKe as vj,tKe as wj,Nt as xj,Uie as yj,OH as zj,$ie as Aj,AH as Bj,RH as Cj,FH as Dj,Qie as Ej,OKe as Fj,AA as Gj,T_e as Hj,UKe as Ij,zKe as Jj,Sce as Kj,vG as Lj,bs as Mj,Dye as Nj,due as Oj,_9e as Pj,hBe as Qj,wL as Rj,Ei as Sj,y_e as Tj,OA as Uj,S_e as Vj,w_e as Wj,C_e as Xj,hGe as Yj,yM as Zj,SM as _j,wM as $j,YE as ak,qa as bk,Oo as ck,st as dk,si as ek,Cs as fk,_Se as gk,ASe as hk,LSe as ik,FSe as jk,BSe as kk,DSe as lk,NSe as mk,HSe as nk,Wf as ok,li as pk,ZE as qk,JI as rk,ij as sk,JE as tk,eg as uk,Zue as vk,JT as wk,ame as xk,jc as yk,Vc as zk,Wl as Ak,uP as Bk,Tme as Ck,Pme as Dk,bP as Ek,Rx as Fk,dW as Gk,uhe as Hk,$he as Ik,Xhe as Jk,Zhe as Kk,DW as Lk,Yo as Mk,$l as Nk,Xx as Ok,Zx as Pk,Wxe as Qk,QP as Rk,Uxe as Sk,zxe as Tk,$xe as Uk,n0 as Vk,l0 as Wk,Or as Xk,h0 as Yk,Sz as Zk,ige as _k,v0 as $k,hge as al,T0 as bl,_0 as cl,A0 as dl,R0 as el,L0 as fl,F0 as gl,B0 as hl,pI as il,Wz as jl,Uz as kl,ql as ll,uI as ml,N0 as nl,Nge as ol,$z as pl,Mge as ql,Hge as rl,Wge as sl,H0 as tl,Gge as ul,Kz as vl,jge as wl,Kge as xl,qz as yl,mI as zl,Xz as Al,Xge as Bl,Zz as Cl,Zge as Dl,II as El,pbe as Fl,G0 as Gl,t$ as Hl,mbe as Il,Yl as Jl,x$ as Kl,Fbe as Ll,dG as Ml,wye as Nl,fG as Ol,Cye as Pl,vye as Ql,kye as Rl,Ss as Sl,Nf as Tl,oSe as Ul,tSe as Vl,rSe as Wl,dj as Xl,cj as Yl,zSe as Zl,mj as _l,hj as $l,$Se as am,GSe as bm,jSe as cm,KSe as dm,VSe as em,ewe as fm,owe as gm,twe as hm,rwe as im,awe as jm,nwe as km,swe as lm,lwe as mm,iwe as nm,dwe as om,cwe as pm,QE as qm,fwe as rm,pwe as sm,la as tm,vj as um,ia as vm,Za as wm,XCe as xm,ZCe as ym,JCe as zm,QCe as Am,eve as Bm,ove as Cm,tve as Dm,sve as Em,lve as Fm,_K as Gm,ive as Hm,dve as Im,cve as Jm,fve as Km,pve as Lm,uve as Mm,mve as Nm,hve as Om,FK as Pm,xve as Qm,bg as Rm,Ive as Sm,Zf as Tm,Jf as Um,Zo as Vm,Ut as Wm,LO as Xm,ta as Ym,FO as Zm,BO as _m,Qf as $m,gve as an,bve as bn,s8 as cn,yve as dn,Sve as en,wve as fn,Cve as gn,vve as hn,kve as in,Po as jn,Tve as kn,Pve as ln,jf as mn,ep as nn,op as on,wg as pn,rp as qn,Eve as rn,zO as sn,Ove as tn,O8 as un,_ve as vn,Ave as wn,jO as xn,Rve as yn,Lve as zn,Fve as An,Bve as Bn,Dve as Cn,Nve as Dn,Tg as En,Mve as Fn,VO as Gn,Hve as Hn,Wve as In,Ts as Jn,YO as Kn,Uve as Ln,zve as Mn,$ve as Nn,Gve as On,CLe as Pn,vLe as Qn,kLe as Rn,mu as Sn,ZR as Tn,Oy as Un,KLe as Vn,VLe as Wn,tL as Xn,bt as Yn,au as Zn,rJ as _n,aJ as $n,xRe as ao,IRe as bo,gRe as co,bRe as do,gR as eo,wRe as fo,CRe as go,vRe as ho,CV as io,q_ as jo,Y_ as ko,jp as lo,bA as mo,yA as no,wA as oo,Kp as po,t_e as qo,r_e as ro,Vp as so,NY as to,u_e as uo,Pi as vo,I_e as wo,EA as xo,as as yo,T3 as zo,Ppe as Ao,Epe as Bo,QDe as Co,eNe as Do,oNe as Eo,VKe as Fo,O_e as Go,qp as Ho,mpe as Io,a7 as Jo,Nke as Ko,Mke as Lo,u_ as Mo,Hke as No,Wke as Oo,Zg as Po,b1 as Qo,S0e as Ro,w0e as So,C0e as To,v0e as Uo,G1 as Vo,_Ee as Wo,AEe as Xo,WA as Yo,wAe as Zo,VA as _o,Gi as $o,Yee as ap,ABe as bp,HBe as cp,Cu as dp,Xe as ep,Du as fp,Yt as gp,kM as hp,Pd as ip,TM as jp,PM as kp,yGe as lp,SGe as mp,x4 as np,eC as op,I4 as pp,n5 as qp,VVe as rp,eh as sp,Ace as tp,Rce as up,a9e as vp,lpe as wp,fpe as xp,jYe as yp};
|