efficient-storefront-blocks 0.116.0 → 0.117.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +9 -0
- package/README.md +9 -10
- package/dist/chunks/{EditorPreviewCheckout-ZLZS26RB.js → EditorPreviewCheckout-JKTRIRSH.js} +4 -4
- package/dist/chunks/{SiteEditorProvider-E5ZSDH4Y.js → SiteEditorProvider-ZVNXSXBQ.js} +1 -1
- package/dist/chunks/{chunk-VTAJ6NIH.js → chunk-3XS3LIPN.js} +1 -1
- package/dist/chunks/chunk-NMYHWA3M.js +96 -0
- package/dist/chunks/chunk-XVPVTQYY.js +342 -0
- package/dist/chunks/{chunk-6MJVBHOY.js → chunk-XZPK5PGX.js} +1 -1
- package/dist/chunks/{fitment-data-25XLESAA.js → fitment-data-3N56LEBE.js} +1 -1
- package/dist/editor/components/HeaderSettingsPanel.js +1 -1
- package/dist/editor/components/MenuPicker.d.ts +3 -0
- package/dist/editor/components/MenuPicker.js +1 -1
- package/dist/editor/lib/storefront-editor-words.d.ts +3 -0
- package/dist/editor/lib/storefront-editor-words.js +1 -1
- package/dist/editor.css +1 -1
- package/dist/index.js +103 -31
- package/dist/links.js +1 -1
- package/dist/render/built-with.json +1 -1
- package/dist/render/components/ChatContext.d.ts +1 -1
- package/dist/render/components/ChatContext.js +1 -1
- package/dist/render/components/ChatWidget.js +1 -1
- package/dist/render/components/DeliveryOptionsSource.js +1 -1
- package/dist/render/components/HeaderNavItem.js +1 -1
- package/dist/render/components/checkout/checkout-parts.js +1 -1
- package/dist/render/components/checkout/checkout-state.d.ts +1 -0
- package/dist/render/components/fitment/FitmentFinder.js +1 -1
- package/dist/render/components/fitment/FitmentPickerGrid.js +1 -1
- package/dist/render/components/fitment/PickerField.d.ts +2 -1
- package/dist/render/components/fitment/PickerField.js +1 -1
- package/dist/render/components/fitment/useFitmentCascade.d.ts +8 -0
- package/dist/render/components/fitment/useFitmentCascade.js +1 -1
- package/dist/render/components/fitment/useVehicleFit.js +1 -1
- package/dist/render/components/fitment/vehicle-level-state.d.ts +1 -0
- package/dist/render/components/fitment/vehicle-level-state.js +1 -1
- package/dist/render/lib/api/types.d.ts +1 -0
- package/dist/words.d.ts +12 -0
- package/dist/words.js +4 -4
- package/package.json +4 -4
- package/dist/chunks/chunk-57R5GY5W.js +0 -341
- package/dist/chunks/chunk-P4KTLII2.js +0 -96
- /package/dist/chunks/{chunk-LBW7HOQO.js → chunk-JVAY6GGN.js} +0 -0
- /package/dist/chunks/{chunk-57R5GY5W.js.LEGAL.txt → chunk-XVPVTQYY.js.LEGAL.txt} +0 -0
|
@@ -1,341 +0,0 @@
|
|
|
1
|
-
import{$ as _a,$a as bh,$e as zh,$g as Dl,Aa as WC,Ad as Qn,Ah as Ek,B as TC,Ba as xh,Bd as Tv,Be as hc,Bf as sk,Bh as Ok,Ca as Ih,Cb as lc,Cd as Pv,Ce as Gv,Cf as Gh,Ch as _k,De as Wh,Di as Gk,E as ec,Eb as ic,Ef as lk,Eh as Ak,Ei as jk,F as PC,Fc as Iv,Fe as jv,Ff as Wo,Fh as Rk,G as EC,Ga as gh,Gc as Ah,Ge as xc,Gf as Yr,Gg as Sk,Gh as Lk,Gi as Lc,H as Tl,Ha as UC,Hb as co,Hd as pc,Hf as ik,Hg as qh,Hi as Kk,I as uh,Ia as zC,Ib as dv,Id as Ev,Ie as We,If as dk,Ig as wk,Ih as Fk,Ii as Vk,J as He,Ja as lo,Jb as cv,Jd as uc,Je as ke,Jf as Qt,Jg as Yh,K as te,Ka as $C,Kd as es,Ke as Kv,Kf as ns,Kg as Ck,Kh as ls,La as GC,Lb as fv,Lc as G,Ld as Dh,Le as os,Lg as vk,Lh as Bk,Ma as jC,Mc as ne,Md as Rl,Me as Vv,Mg as kk,Mh as kc,N as OC,Na as KC,Nb as kh,Nc as Rh,Ne as Ic,Nf as ck,Ng as yc,Nh as Dk,O as jr,Oa as VC,Oc as L,Oe as Fa,Of as jh,P as Kn,Pa as qC,Pc as No,Pd as Ov,Pe as qv,Pg as Tk,Q as _C,Qa as YC,Qc as Cr,Qd as _v,R as br,Ra as XC,Rc as gv,Rd as Av,Rf as fk,Rh as Qh,S as mh,Sa as ZC,Sc as U,Se as qr,Sf as Kh,Sg as Xh,T as Vn,Ta as JC,Tc as fc,Te as Uh,Tg as Tr,Ua as ac,Uc as Ko,Ud as Rv,Ug as Sc,Va as nc,Vc as bv,Vg as qo,Wa as QC,Wb as Th,Wc as Ft,Wd as Lv,Wg as we,Wh as Nk,X as Pl,Xa as ev,Xc as Zn,Xd as Nh,Xg as wc,Xh as Tc,Yb as pv,Yg as Pk,Z as AC,Za as ov,Zc as Vr,Ze as Yv,Zg as Bl,_ as RC,_a as tv,_c as vr,_e as Xv,_g as tt,a as Qd,ae as Fv,af as xo,ag as Ba,ah as Cc,b as Se,bb as rv,bd as qe,be as Bv,bf as Zv,bh as ss,bi as Pc,c as So,ca as LC,cb as yh,cd as yv,ce as Dv,cf as Jv,cg as pk,ch as Zh,d as gr,da as oc,db as Yn,dc as Ra,de as Nv,df as ts,ea as FC,eb as Aa,ed as Sv,ef as Vo,eg as uk,eh as vc,f as Rt,fa as tc,fb as Sh,fc as Ph,fd as wv,fe as Mv,g as kl,ga as BC,gb as wh,gc as Eh,gd as Lh,gf as rs,gg as mk,gi as is,ha as DC,hb as Ch,hd as Cv,he as Hv,hf as as,hg as hk,i as yC,ia as NC,ib as av,ic as dc,ie as Wv,ig as xk,ja as El,jb as nv,jg as Ik,k as SC,ka as yr,kb as sv,ke as Uv,kf as Qv,ki as Xr,la as MC,lb as vh,lg as er,mb as lv,md as vv,mg as gk,mi as Zr,n as wC,nb as Kr,nc as Oh,nd as kv,nf as Fl,ni as Ec,oc as cc,oe as zv,pa as Do,pc as uv,pd as Fh,pf as ek,pg as bk,ph as Jh,pi as Mk,qa as Lt,qb as Ol,qc as mv,qf as $h,qg as or,r as CC,ra as HC,rc as hv,rd as Bh,re as Jt,rg as Vh,sa as q,sb as Xn,sc as _h,sd as _l,se as Ll,t as Zt,ta as rc,tb as wr,tc as xv,te as Mh,tf as gc,ti as Hk,ub as sc,ud as La,uf as ok,ug as yk,vd as Jn,vf as tk,vi as Wk,w as K,wa as pt,wd as oo,we as mc,wf as rk,x as $e,xa as Sr,xe as $v,xf as bc,y as vC,ya as qn,yd as Al,ye as Hh,yf as ak,z as kC,za as hh,zb as iv,zd as kr,zf as nk,zi as he}from"./chunk-P4KTLII2.js";import{c as Uk,d as Oc,e as _c,i as zk,j as ut,k as Ac,l as Rc,m as $k,q as ex}from"./chunk-LBW7HOQO.js";var Yk="en",Fc=null,Xk=Yk,Zk=null;function ype(e,o,t){Fc=e??null,Xk=o||Yk,Zk=t??null}function de(){return Zk}function ox(){return Xk}function Jk(){return Fc}function qk(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=Fc?K(Fc,e):void 0;if(typeof t=="function"){try{let r=Se(t(o??{}));if(r)return r}catch{}return qk(e,o)}return qk(Se(t)??e,o)}function Uo(e,o,t,r){return i(t===1?e:o,{...r,n:t})}import{jsx as tx,Fragment as y3,jsxs as S3}from"react/jsx-runtime";import{createContext as w3,useContext as C3}from"react";var v3={mirrorHostStyles:!0,css:null,fontHrefs:[]},Qk=w3(v3);function vpe({value:e,children:o}){return tx(Qk.Provider,{value:e,children:o})}function rx(){return C3(Qk)}function eT(){let{css:e,fontHrefs:o}=rx();return S3(y3,{children:[o.map(t=>tx("link",{rel:"stylesheet",href:t},t)),e?tx("style",{"data-sf-canvas-css":"",children:e}):null]})}import{jsx as k3}from"react/jsx-runtime";import{createContext as T3,useContext as P3}from"react";var oT=T3(void 0);function Epe({metadata:e,children:o}){return k3(oT.Provider,{value:e,children:o})}var tT=()=>P3(oT);import{jsx as To,Fragment as o3,jsxs as Xd}from"react/jsx-runtime";import{useCallback as wl,useEffect as mr,useRef as Kfe,useState as Z5}from"react";import{SettingsSwitch as Vfe}from"efficient-easel/panel";import{PagesIcon as qfe,StylesIcon as Yfe}from"efficient-easel/rail";import{PaletteIcon as Xfe}from"efficient-shell/icons/efficient";import{Subtree as Zfe,TreeRow as t3}from"efficient-easel/tree";import{useEasel as r3}from"efficient-easel/easel";import{toItemSelector as Jfe}from"efficient-easel/node-ops";import{useEaselStrings as a3}from"efficient-easel/strings";import{createContext as E3,useContext as O3}from"react";var ax=E3(!1),Ape=()=>O3(ax);import{useMemo as _3,useRef as A3}from"react";import{useEaselApi as R3}from"efficient-easel/easel";import{useSectionOps as L3}from"efficient-easel/screen/lib/document/use-section-ops";function Bc(){let e=R3(),o=L3(),t=A3(o);return t.current=o,_3(()=>({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 _7}from"efficient-easel/draw";import{insertAt as A7,moveTo as R7,removeAt as L7}from"efficient-easel/fields";import{useSyncExternalStore as C7}from"react";import{isNodeList as sx}from"efficient-easel/data";import{isNodeList as F3}from"efficient-easel/data";function Da(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 ds(e,o){let t=null;for(let[r,a]of Object.entries(e.props??{})){if(!F3(a))continue;let n=o(a,r);n!==a&&((t??={...e.props})[r]=n)}return t?{...e,props:t}:e}function B3(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}}function rT(e,o){let t=B3(e,o),r=e?.zones;if(!r||typeof r!="object")return t;let a=null;for(let[n,s]of Object.entries(r)){if(!Array.isArray(s))continue;let l=o(s);l!==s&&((a??={...r})[n]=l)}return a?{...t,zones:a}:t}var aT="Flex";function cs(e,o){return Jt(e)?typeof e?.[Rt]=="string"?nx(o?.[Rt]):"":nx(e?.[Rt])}var nx=e=>typeof e=="string"?e.trim():"",D3=e=>e.type===Lt&&Array.isArray(e.props?.[Nh])&&e.props[Nh].some(o=>nx(o?.[Rt])!==""),N3=new Intl.NumberFormat("en-US");function M3(e){return/^\d+$/.test(e)?N3.format(Number(e)):e}function $pe(e,o){let t=o?o.find(r=>r.key===e)?.value:CC(kl).find(r=>r.key===e)?.value;return t===void 0?null:M3(t)}var H3={[Rt]:"any"};function lx(e,o=!1){let t=e.props;if(!t)return{node:e,names:!1};let r=e.type==="Text"&&(cs(t)!==""||o&&cs(t,H3)!==""),a=o||D3(e),n=ds(e,l=>Da(l,d=>{let c=lx(d,a);return c.names&&(r=!0),c.node})).props;if(e.type!==aT)return{node:n===t?e:{...e,props:n},names:r};let s=Zt(n);if(r&&!s&&(n={...n,[So]:kl}),!r&&s===kl){let{[So]:l,...d}=n;n=d}return{node:n===t?e:{...e,props:n},names:!1}}function nT(e,o,t){for(let r of e){if(r?.props?.id===o)return t;for(let a of Object.values(r?.props??{})){if(!sx(a))continue;let n=nT(a,o,r.type===aT?r:t);if(n!==void 0)return n}}}function Gpe(e,o){if(!sx(e))return!0;let t=nT(e,o,null);if(t===void 0)return!0;if(t===null)return!1;let r=Zt(t.props);return!r||r===kl}function sT(e){let o=e?.content;if(!sx(o))return e;let t=o.map(r=>lx(r));return t.every((r,a)=>r.node===o[a])?e:{...e,content:t.map(r=>r.node)}}function lT(e){return lx(e).node}import{jsx as k,jsxs as Fr,Fragment as Dr}from"react/jsx-runtime";var Na=["image","video"],Ma={image:"imageFocal",image2:"imageFocal2"},Nl={HeroSingle:"image",HeroSlide:"video"};function dT(e,o){return Na.includes(o)?o:Nl[e]}var cT=["one","side","stacked"],W3="one",Kpe={one:"One",side:"Side by side",stacked:"Stacked"};function Dc(e){return cT.includes(e)?e:W3}function iT(e){return e==="one"?1:2}function ix(e,o){if(cT.includes(e))return e;let t=Dc(o);return t==="side"?"stacked":t}function Ml(e){let o=Dc(e.mediaLayout);return Math.max(iT(o),iT(ix(e.mediaLayoutPhone,o)))}import{cloneElement as xg,createContext as Fj,useContext as bO,useEffect as Bj,useId as yO,useRef as xi,useState as Ii}from"react";import{useEasel as op,useSelectedHost as on}from"efficient-easel/easel";import{PIN_LENGTH as Zf,toDateKey as Nwe,fromDateKey as Mwe}from"efficient-shell/format";function U3(e){return!!e&&typeof e=="object"&&!Array.isArray(e)&&typeof e.src=="string"}function zo(e){return typeof e=="string"?e:U3(e)?e.src:""}function qpe(e,o,t){return dx(e,o.split("."),t)}function dx(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=dx(p,a,t);return h!==p&&(f=!0),h});return f?{...l,[s]:u}:e}let c=dx(d,a,t);return c===d?e:{...l,[s]:c}}var z3=["upload","youtube"],$3="upload",Zpe={upload:"Upload",youtube:"YouTube"},G3=["background","click"],j3="background",Jpe={background:"Background",click:"Click to play"};function pT(e){return z3.includes(e)?e:$3}function uT(e){return G3.includes(e)?e:j3}var fT=/^[A-Za-z0-9_-]{11}$/,K3=/^(?:www\.|m\.|music\.)?(?:youtube\.com|youtube-nocookie\.com|youtu\.be)$/;function mT(e){let o=typeof e=="string"?e.trim():"";if(!o)return null;if(fT.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:"||!K3.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&&fT.test(a)?a:null}function cx(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 hT(e){return`https://i.ytimg.com/vi/${e}/maxresdefault.jpg`}function xT(e){return`https://i.ytimg.com/vi/${e}/hqdefault.jpg`}var fx="Play video";var px={frame:"Video frame",image:"Image"},Qpe={any:[{field:"loadingShows",is:"image"},{all:[{not:{field:"loadingShows",set:!0}},{field:"poster",set:!0}]}]};function Hl(e){let o=e.loadingShows;return o==="image"?"image":o!=null&&o!==""?"frame":zo(e.poster)?"image":"frame"}function eue(e,o="desktop"){let[t,r]=o==="phone"?[e.posterPhone,e.videoFramePhone]:[e.poster,e.videoFrame],[a,n]=Hl(e)==="image"?[t,r]:[r,t];return zo(a)||zo(n)||void 0}function IT(e){if(zo(e.mediaVideo)){if(Hl(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 Nc="videoFrames",ux="videoFramesNotOwn";function gT(e,o,t){let r=zo(e.mediaVideo);if(!r||!o||Hl(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 V3(e,o){let t=zo(e),r=t&&o?o[t]:void 0;return r?.state==="ready"&&r.frame?r.frame:void 0}function oue(e,o,t){let r=t?.[ux];if(!(Array.isArray(r)&&r.includes(e)))return V3(o,t?.[Nc])}import{useSyncExternalStore as q3}from"react";function Mc(){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 q3(t,a,a)}}}var Ye="SiteHeader",Ue="SiteFooter",mx="sections",nue=[Ye,Ue],fs=e=>e===Ye||e===Ue,bT=e=>`${e}:${mx}`;function yT(e,o,t=[]){return{type:e,props:{id:o,[mx]:t}}}var Y3=new Set(["Footer",Ye,Ue]);function ps(e){let o=new Set,t=!1,r=e.filter(a=>{let n=a?.type??"";return n==="Header"?(t=!0,!1):Y3.has(n)?o.has(n)?(t=!0,!1):(o.add(n),!0):!0});return t?r:e}function Hc(e,o){return e.some(t=>t?.type===o.type)?e:o.type===Ye?[o,...e]:[...e,o]}var ST={[Ye]:{max:3,takes:["Flex","Ticker"]},[Ue]:{max:6,takes:["Flex","Prose","Logos","Divider"]}};function wT(e,o,t){if(!fs(e))return!0;let r=ST[e];return t<r.max&&r.takes.includes(o)}function CT(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(!fs(n?.type))continue;let s=n.props?.[mx];if(!Array.isArray(s)||!s.some(d=>d?.props?.id===r))continue;let l=ST[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 X3}from"efficient-easel/draw";function Wl(e){if(!e)return null;let o=e.lastIndexOf(":");return o>0?{ownerId:e.slice(0,o),slot:e.slice(o+1)}:null}function Wc(e,o,t){let r=Wl(t?.zone),a=r?X3(e,o,r.ownerId):null;return a&&r?{...a,slot:r.slot}:null}import{isNode as Z3}from"efficient-easel/data";var vT="Footer",kT=[Ye,vT,Ue],Ha=e=>{let o=e?.content;return Array.isArray(o)?o:[]},Jr=e=>{let o=e?.zones;return o&&typeof o=="object"&&!Array.isArray(o)?o:null},us=e=>{let o=e?.props?.id;return typeof o=="string"?o:void 0},TT=e=>Wl(e)?.ownerId??"";function PT(e){let o=ps(Ha(e)),t=o.some(r=>r?.type===Ue);return o.filter(r=>r?.type===Ye||r?.type===Ue||r?.type===vT&&!t)}function Uc(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(Z3(a)){let n=us(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(TT(s))||(n.add(s),r(l),a=!0)}}return t}function ET(e,o){let t=Ha(e).filter(r=>{let a=us(r);return typeof r?.type=="string"&&kT.includes(r.type)||a!==void 0&&o(a)});return t.length?Uc(t,Jr(e)):new Set}function hx(e,o){let t={},r={};for(let[a,n]of Object.entries(e??{}))(o.has(TT(a))?t:r)[a]=n;return{owned:t,rest:r}}function OT(e,o){if(!o)return e;let t=PT(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,...Ha(e),...a]},{owned:s}=hx(Jr(o),Uc(t,Jr(o)));return Object.keys(s).length&&(n.zones={...Jr(e)??{},...s}),n}function xx(e,o){if(!o)return{page:e,chrome:null};let t=PT(o),r=new Set(t.map(us).filter(T=>!!T)),a=[],n=[];for(let T of Ha(e)){let y=us(T);y&&r.has(y)||fs(T?.type)?n.push(T):a.push(T)}let s=new Map(n.map(T=>[us(T),T])),l=new Set,d=ps(Ha(o)).flatMap(T=>{let y=us(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=ps(d);let c=d.length===Ha(o).length&&d.every((T,y)=>T===Ha(o)[y]),f=Jr(e),u=Uc(d,f),{owned:p,rest:h}=hx(f,u),I=hx(Jr(o),Uc(t,Jr(o))).owned,g={...o,content:c?o.content:[...d]},C=Jr(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&&J3(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 J3(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 _T(e,o){return t=>e(t)||t!==void 0&&kT.includes(t)&&o()}var AT=null;function Ix(e){AT=e}function Bt(){return AT}var RT=null;function gx(e){RT=e}function zc(){return RT}var bx=Mc();function LT(e,o,t){if(!o)return;let r={...bx.get(e)};for(let[a,n]of Object.entries(o))r[a]={...n,noted:t};bx.set(e,r)}function FT(e,o){LT(e,o,"load")}function BT(e,o){LT(e,o,"save")}function $c(e){return bx.use(e)}var yx=e=>!!Bt()?.sectionOf(e);function DT(e,o=yx){return ET(e,o)}function NT(e,o,t,r=yx){if(t)return e&&DT(o,r).has(e)?void 0:t}function MT(e,o,t=yx){if(!e)return{};let r=[...DT(o,t)];return r.length?{[Nc]:e,[ux]:r}:{[Nc]:e}}import{ScreenDocumentContext as Dj}from"efficient-easel/screen/components/ScreenDocumentContext";import{readHidable as ca,hidableText as Nj}from"efficient-easel/draw";import{FOLD_FIELD_MARKER as SO,LINK_FIELD_MARKER as Mj,MEDIA_FIELD_MARKER as Hj,SCAFFOLD_FIELD_MARKER as Wj,TEXT_FIELD_MARKER as Br,foldMetaOf as fa,textFieldIdentifier as Kwe}from"efficient-easel/draw";import{jsx as jT}from"react/jsx-runtime";import{useCallback as r6}from"react";import{useEasel as a6}from"efficient-easel/easel";import{SettingsAction as n6}from"efficient-easel/panel";import{isLengthUnit as o6}from"efficient-easel/screen/lib/content/length-units";import{CORNER_SIDES as Gc,hasCornerSubset as Ul,normalizeCornerSides as tr}from"efficient-easel/screen/lib/content/style-keys";import{isLengthUnit as Q3}from"efficient-easel/screen/lib/content/length-units";var zl={kind:"radius",unitKey:"sectionCornersUnit"};function Sx(e){return typeof e=="number"&&Number.isFinite(e)}function wue(e,o,t){if(!Sx(e))return;let r=Q3(t)&&t!=="px"?ns(e,t):ns(Qt(e));if(Object.keys(r).length===0)return;let a=r[wx];if(typeof a!="string")return r;let n=Ul(o)?Wa(a,tr(o)??[]):a;return{...r,[e6]:n}}var e6="--sf-section-radius",wx="--sf-card-radius";function Wa(e,o){return Gc.map(t=>o.includes(t)?e:"0").join(" ")}var HT=[{value:"tl",label:"Top left"},{value:"tr",label:"Top right"},{value:"bl",label:"Bottom left"},{value:"br",label:"Bottom right"}];var $l={kind:"radius",unitKey:"cardCornersUnit"},t6="--sf-card-box-radius";function Cx(e){return typeof e=="number"&&Number.isFinite(e)}function Pue(e,o,t){if(!Cx(e))return;let r=(o6(t)&&t!=="px"?ns(e,t):ns(Qt(e)))[wx];if(typeof r!="string")return;let a=Ul(o)?Wa(r,tr(o)??[]):r;return{[t6]:a}}function WT(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?.[$l.unitKey];return e.map(s=>s?.props?.id===o?s:{...s,props:{...s.props,cardCorners:r,cardCornerSides:a,[$l.unitKey]:n}})}function UT(e,o,t){let r=Wc(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}:Cx(l?.props?.cardCorners)?{can:!0,others:c,zone:r.zone,index:r.index,data:{...r.item,props:{...r.item.props,[a]:WT(n,d)}}}:{can:!1,reason:"unset",others:c}}function zT(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 $T(e){return Uo("Applied to {n} card","Applied to {n} cards",e)}function GT(e,o){e.can&&o(e.zone,e.index,e.data)}import{useSectionOps as s6}from"efficient-easel/screen/lib/document/use-section-ops";var l6="apply-corners-to-siblings",i6="Apply to all cards";function d6({plan:e,onPress:o}){return jT(n6,{id:l6,label:i(i6),note:zT(e),disabled:!e.can,doneLabel:$T(e.others),onPress:o})}function KT(){let{appState:e,config:o}=a6(n=>n),t=s6(),r=UT(o,e.data.content??[],e.ui.itemSelector),a=r6(()=>{GT(r,t.replaceComponent)},[r,t]);return jT(d6,{plan:r,onPress:a})}import{isShown as tP,lazyShowWhenContext as w6}from"efficient-shell/format";var Qr="product",jc="recordType",VT={key:Qr,label:"Product",fields:[]},c6=/^[a-z][a-z0-9]*(-[a-z0-9]+)*$/,f6=/^[a-z][A-Za-z0-9]*$/,p6=["text","date","images"],vx=new Map,qT=0;function u6(e){if(typeof e.key!="string"||!c6.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===Qr)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"||!f6.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(!p6.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 Uue(e){let o=e.map(u6);for(let t of o)vx.set(t.key,t);o.length&&(qT+=1)}function kx(){return[VT,...vx.values()]}function m6(e){return e===Qr?VT:vx.get(e)??null}function Tx(){return qT}function Gl(e){let o=e?.[jc];return typeof o!="string"?Qr:o.trim()||Qr}function Px(e){return Gl(e)===Qr}function zue(e,o){let t=m6(e)?.fields??[];return o?t.filter(r=>o.includes(r.kind)):t}var Kc="product",YT="tyre",h6=[Kc,YT];function jue(e){return h6.includes(e)}var x6="productType",I6={[Kc]:"alloy-wheel",[YT]:"tyre"},g6=["alloy-wheel","tyre"];function XT(e,o){return Px(o)?ZT(o)??I6[e]??null:null}function ZT(e){if(!Px(e))return null;let o=e?.[x6];return typeof o=="string"&&g6.includes(o)?o:null}function Kue(e){let o=e?.root;return ZT(o?.props)}var Ex="Main Pages",b6="Dynamic Pages",Ox="dynamic",y6="dynamic";function Ua(e){return e.kind===y6}var _x="lightbox";function JT(e){return e.kind===_x}function QT(e){let o=[],t=[];for(let r of e){if(Ua(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??Ex,rows:[r]})}if(t.length){let r=o.findIndex(a=>a.key.startsWith("system:"));o.splice(r===-1?o.length:r,0,{key:Ox,label:b6,rows:t})}return o}var Vc=null,eP=null;function S6(e,o){Vc=e,eP=o}function Jue(e){S6(e,null)}function Que(){return Vc}function jl(){return Ua({kind:eP})||Vc===Kc}function eme(e){return XT(Vc??"",e)??"alloy-wheel"}function ome(e){return jl()?Gl(e):null}function Ax(e,o,t){let r=!1,a={};for(let[n,s]of Object.entries(e)){if(!tP(Bh(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||tP(s.showWhen,t,r));return n.length===a.length?e:{...e,options:n}}function rP(e,o,t,r){let a=Wc(o,t,r);return{device:e,parentType:a?.item.type,parent:a?.item.props}}function oP(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 oP(t.not,o);for(let r of[t.all,t.any])if(Array.isArray(r)&&r.some(a=>oP(a,o)))return!0;return!1}function dme(e,o={}){return w6({parentType:()=>e.parent?.type??void 0,parent:()=>e.parent?.props??void 0,dynamicPage:()=>jl(),root:()=>e.appState?.data?.root?.props,...o})}import{isLengthUnit as v6}from"efficient-easel/screen/lib/content/length-units";var aP=1,k6="cardImageUnit",Rx={kind:"radius",unitKey:k6},nP={kind:"radius"};function T6(e){return Qt(e)}function hme(e,o){if(v6(o)&&o!=="px"){let r=q(e);return r!==void 0&&r>=0?{"--sf-card-image-radius":We(r,o)}:{}}let t=T6(e);return t===null?{}:{"--sf-card-image-radius":`${t}px`}}import{isLengthUnit as P6}from"efficient-easel/screen/lib/content/length-units";var sP={kind:"radius",unitKey:"cornersUnit"},lP=1,iP="Corners";function E6(e){return Qt(e)}function wme(e,o,t){let r=P6(t)&&t!=="px"?q(e):void 0,a=r===void 0?E6(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:Ul(o)?Wa(n,tr(o)??[]):n}}var cP=12,ms=6,O6=800,qc={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"}},fP=["phone","acrossPhone","leadPhone"];var _6=new Set(fP),Kl=Object.fromEntries(Object.entries(qc).map(([e,o])=>[e,Object.fromEntries(Object.entries(o).filter(([t])=>!_6.has(t)))])),Lx=Object.keys(qc),pP=[2,3,4,6];function Fx(e,o){return Lx.filter(t=>t===o||e===null||Kl[t].across===e)}function uP(e){let o=e.layout;return typeof o=="string"&&$e(qc,o)?o:null}function Bx(e){let o=uP(e);return o?A6(o,e.layoutPhone):null}var Yc={oneAcross:{label:"One across",phone:[[ms,2]],acrossPhone:1}};function mP(e){return typeof e=="string"&&$e(Yc,e)?e:null}function dP(e,o){return o?ms/e.acrossPhone:cP/e.across}function Dx(e){return e.ratio?Tk.find(o=>o.shape===e.ratio)?.ratio??null:null}function hP(e){return[...e.lead??[],...e.desktop]}function A6(e,o){let t=qc[e],r=mP(o);if(!r)return t;let{phone:a,acrossPhone:n}=Yc[r],s=Object.fromEntries(fP.map(l=>[l,void 0]));return{...t,...s,phone:a,acrossPhone:n}}var R6="sf-wall--";function L6(e){let o=uP(e);if(!o)return"";let t=mP(e.layoutPhone);return`${R6}${o}${t?`--${t}`:""}`}function Tme(e){let o=Bx(e);if(!o)return"";let t=`.${L6(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(${cP},minmax(0,1fr))}`);let s=Dx(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,dP(o,!1),o.lead)),r.push(`@media (max-width:${O6}px){`),r.push(`${t}{grid-template-columns:repeat(${ms},minmax(0,1fr))}`),r.push(...n(o.phone,dP(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 Xc=12,xP=1,F6=3;var B6=3;function Zc(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 D6(e){return Zc(e,1,Xc)??B6}function Ome(e,o){return Zc(e,xP,F6)??(D6(o)===4?2:xP)}function _me(e){return e==null||e===""?null:Zc(e,1,Xc)}var Ame="data-sf-span",Nx=4;function Rme(e){return e==null||e===""?null:Zc(e,1,Nx)}var Lme="data-sf-row-span",ea=["gridSpan","gridRowSpan"];function Fme(e){if(!e)return!1;if(e.type==="Grid")return!0;if(e.type==="GalleryB"){if(Bx(e.props??{}))return!1;let o=e.props?.columns;return o!=null&&o!==""}return!1}import{jsx as N6}from"react/jsx-runtime";import*as M6 from"efficient-easel/icons";function Jc(e){let o=e.replace(/(^|-)([a-z])/g,(r,a,n)=>n.toUpperCase()),t=M6[`${o}Icon`];return t?N6(t,{size:16}):null}import{jsx as oa,Fragment as U6,jsxs as vP}from"react/jsx-runtime";import{useContext as z6,useEffect as $6,useId as G6,useState as kP}from"react";import{SettingsField as j6,SettingsSwitch as K6}from"efficient-easel/panel";import{AnchorIcon as V6}from"efficient-easel/icons";import{ScreenDocumentContext as q6}from"efficient-easel/screen/components/ScreenDocumentContext";import{Snippet as Y6}from"efficient-shell/ui";import{slugify as X6}from"efficient-shell/format";import{slugify as H6}from"efficient-shell/format";function Vl(e){return typeof e=="string"?e.trim():e&&typeof e=="object"&&typeof e.text=="string"?e.text.trim():""}var Qc=e=>H6(Vl(e));var ef="homepage";import{slugify as W6}from"efficient-shell/format";var IP=[{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 gP(e){return e.offersCommerce&&e.offersService?IP:IP.filter(o=>!o.needs||(o.needs==="commerce"?e.offersCommerce:e.offersService))}var Mx="#popup:";function bP(e){return`${Mx}${e}`}function yP(e){return e.startsWith(Mx)&&e.slice(Mx.length).trim()||null}function ql(e){return e===ef?"/":`/${e}`}function SP(e){return`/journal/${e}`}function Gme(e){return`/wheels/${e}`}function of(e,o){return`${ql(e)}#${o}`}function wP(...e){let o=new Set,t=[];for(let r of e)for(let a of r?.content??[]){let n=Vl(a?.props?.anchor);if(!n)continue;let s=W6(n);!s||o.has(s)||(o.add(s),t.push({slug:s,name:n}))}return t}function jme(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 CP(e){return/^\/wheels\/[^/?#]+(?:[?#].*)?$/.test(e)}import{readHidable as Z6}from"efficient-easel/draw";function TP({value:e,onChange:o,nameBox:t}){let r=Z6(e).text,[a,n]=kP(!1),s=a||r.trim()!=="",l=G6();return vP(U6,{children:[oa(j6,{label:i("Add an anchor"),labelId:l,icon:oa(V6,{}),action:oa(K6,{checked:s,ariaLabelledBy:l,onChange:d=>{n(d),!d&&r!==""&&o("")}})}),s&&t(e,o),s&&oa(J6,{name:r})]})}function J6({name:e}){let o=z6(q6),t=o?.templateId?"":o?.currentSlug??"",[r,a]=kP("");$6(()=>a(Oc()),[]);let n=X6(e);if(!n||!t)return null;let s=`${r}${of(t,n)}`,l=s.replace(/^https?:\/\//,""),d=l.lastIndexOf("#");return oa("div",{className:"sf-anchor-link",children:oa(Y6,{value:s,label:i("link"),size:"sm",children:vP("span",{className:"sf-anchor-link-text",children:[oa("span",{className:"sf-anchor-link-path",children:l.slice(0,d)}),oa("span",{className:"sf-anchor-link-hash",children:l.slice(d)})]})})})}import{jsx as rr,jsxs as Q6}from"react/jsx-runtime";import{Fragment as eW}from"react";import{Button as tf,Tooltip as oW}from"efficient-shell/ui";function PP({status:e,statusText:o,onRefresh:t,busy:r=!1,edit:a,hint:n,spaced:s=!0,compact:l=!1,oneLine:d=!1}){return l?rr("div",{className:`sf-blogsource sf-blogsource--compact${d?" sf-blogsource--line":""}`,style:s?{marginTop:8}:void 0,children:rr(oW,{content:n,className:d?"sf-name-tip":void 0,children:rr("p",{className:"sf-blogsource-status","data-state":e,children:[o?rr(eW,{children:o},"status"):null,t?rr(tf,{variant:"link",size:"sm",className:"sf-blogsource-link",onClick:t,disabled:r,children:i("Refresh now")},"refresh"):null,a?rr(tf,{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])})})}):Q6("div",{className:"sf-blogsource",style:s?{marginTop:9}:void 0,children:[rr("p",{className:"sf-blogsource-status","data-state":e,children:o}),t?rr(tf,{variant:"secondary",className:"sf-blogsource-action",onClick:t,disabled:r,children:i("Refresh now")}):null,a?rr(tf,{variant:"secondary",className:"sf-blogsource-action",onClick:a.onClick,children:a.label}):null,rr("p",{className:"es-field-hint",children:n})]})}import{AdjustIcon as Uj,EyeIcon as zj,AnimationIcon as $j,BackgroundIcon as lO,BorderAllIcon as Gj,BlockSectionIcon as jj,ColumnWidthsIcon as Ig,ColumnsIcon as wO,CornerIcon as CO,DirectionDownIcon as Kj,DirectionLeftIcon as Vj,DirectionRightIcon as qj,DirectionUpIcon as Yj,EditIcon as Xj,GapIcon as Zj,GridIcon as vO,GroundIcon as ug,HashIcon as Jj,HeightIcon as gg,ImageIcon as Qj,ListIcon as eK,LocationIcon as iO,PaddingBottomIcon as kO,PaddingLeftIcon as TO,PaddingRightIcon as PO,PaddingTopIcon as bg,PageIcon as oK,StickyIcon as EO,SearchIcon as tK,SquareIcon as rK,TypeIcon as aK,WidthIcon as nK}from"efficient-easel/icons";import{jsx as Je,Fragment as za,jsxs as $a}from"react/jsx-runtime";import{CaptionIcon as tW,DateIcon as rW,FlagIcon as aW,TitleIcon as nW,ButtonIcon as sW,DollarIcon as lW,HashIcon as iW,LinkIcon as dW,NoteIcon as cW,TagIcon as fW,TextLinesIcon as pW}from"efficient-easel/icons";var EP={body:pW,button:sW,link:dW,label:fW,number:iW,price:lW,note:cW,name:aW,date:rW,caption:tW,title:nW},OP={eyebrow:$a(za,{children:[Je("path",{d:"M5 6.5h5"}),Je("path",{d:"M5 12.5h14"}),Je("path",{d:"M5 18h11"})]}),heading:$a(za,{children:[Je("path",{d:"M6.5 5v14"}),Je("path",{d:"M17.5 5v14"}),Je("path",{d:"M6.5 12h11"})]}),intro:$a(za,{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:$a(za,{children:[Je("rect",{x:"2.5",y:"7",width:"19",height:"10",rx:"2"}),Je("path",{d:"M6.5 12h7"})]}),quote:$a(za,{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:$a(za,{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:$a(za,{children:[Je("path",{d:"M4 7h16"}),Je("path",{d:"M4 14h3.5"}),Je("path",{d:"M10.5 14h3"}),Je("path",{d:"M17 14h3"})]})};function Hx({noun:e,size:o=14,strokeWidth:t=1.8,className:r,style:a}){let n=EP[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:OP[e]})}var phe=Object.keys(EP);var uhe=Object.keys(OP);import{parseHexColor as yW}from"efficient-shell/format";import{parseHexColor as FP}from"efficient-shell/format";import{COLOR_SLOTS as BP,FILL_COLOR_SLOTS as IW,colorRole as gW,fillColorRole as DP}from"efficient-shell/markup";import{parseHexColor as _P}from"efficient-shell/format";import{FILL_COLOR_SLOTS as uW}from"efficient-shell/markup";var rf=e=>{let o=hk.find(t=>t.role===e);return o?`var(${o.token})`:""},mW=e=>rf(e)?`var(--theme-${e})`:"",hW={main:{ink:_a.accent,page:_a.accent,key:"accent",label:()=>i("Main"),words:e=>i("Theme {n} main color",{n:e})},text:{ink:_a.text,page:_a.text,key:"text",label:()=>i("Text"),words:e=>i("Theme {n} text color",{n:e})},background:{ink:rf("bg"),page:mW("bg"),key:"background",label:()=>i("Background"),words:e=>i("Theme {n} background",{n:e})},muted:{ink:_a.labels,page:_a.labels,key:"muted",label:()=>i("Muted"),words:e=>i("Theme {n} muted color",{n:e})},surface:{ink:rf("surface"),page:rf("surface"),key:"surface",label:()=>i("Surface"),words:e=>i("Theme {n} surface color",{n:e})}};function ta(e){return K(hW,e)}var Wx="#9ca3af";function hs(e,o,t){let r=ta(e);return r?{hex:_P(o[r.key]??"")??"",words:r.words(t)}:null}function AP(e,o){return uW.flatMap(t=>{let r=hs(t,e,o);return r&&ta(t)?.ink?[{name:t,label:r.words,value:r.hex||Wx}]:[]})}var xW=["main","text","background"];function RP(e){let o=new Set,t=[];return xo(e).themes.forEach((r,a)=>{for(let n of xW){let s=ta(n),l=s?r[s.key]:void 0,d=typeof l=="string"&&l?_P(l):null;!s||!d||o.has(d)||(o.add(d),t.push({value:d,label:s.words(a+1)}))}}),t}function Pr(e){return ta(e)?.ink??""}function ar(e){if(typeof e!="string")return null;let o=DP(e.trim());return o?.kind==="slot"&&Pr(o.slot)?o.slot:null}var bW={accent:"main",labels:"muted"};function rt(e){return K(bW,e)??e}function xs(e){if(!e)return"";if(e.startsWith("#"))return FP(e)===e.toLowerCase()?e:"";let o=gW(rt(e));return o?.kind==="slot"?Pr(o.slot):""}function Is(e,o=BP){return o.flatMap(t=>{let r=ta(t);return r?.ink?[{name:t,label:r.label(),value:e?.[t]||Wx}]:[]})}function NP(e){let o=DP(rt(e));return o?.kind==="slot"?Pr(o.slot):""}function Ux(e){let o=e?.trim();return o?IW.find(t=>Pr(t)===o)??null:null}function MP(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 BP){let l=Pr(s);if(!l)continue;let d=l.replace(/^var\((--[\w-]+)\)$/,"$1"),c=a.getPropertyValue(d).trim();if(!c)continue;let f=LP(c);!f&&n&&(n.fillStyle="#000000",n.fillStyle=c,f=LP(String(n.fillStyle))),f&&(o[s]=f)}return o}function LP(e){let o=e.trim().toLowerCase();if(o.startsWith("#"))return FP(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 SW="#ffffff";function zx(e){return HP(e)||(wW(e)?e:SW)}function HP(e){let o=ar(e);return o?ta(o)?.page??"":""}function wW(e){return typeof e=="string"&&yW(e)===e.toLowerCase()||HP(e)!==""}function Ahe(e){return{"--bg":zx(e)}}import{parseHexColor as CW}from"efficient-shell/format";import{fillColorRole as vW}from"efficient-shell/markup";function Ga(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 zhe="sf-card",$he="[--sf-card-lift:none] [--sf-card-shadow-hover:var(--sf-card-shadow,none)]",ra={min:0,max:100,step:5,fallback:0,unit:"%"},kW=[{label:"Even",value:"even"},{label:"From the bottom",value:"bottom"}],TW="68%",Ghe={desktop:20,phone:20,side:40,sidePhone:24},jhe="sf-box-sides";function Gx(e){return typeof e=="string"&&e.trim()!==""}function Khe(e){return Gx(typeof e?.bgImage=="string"?e.bgImage:null)||af(e)}function af(e){return Jt(e,lc)!==""}function Vhe(e,o){return o||!af(e)?e:{...e,[lc]:""}}function qhe(e,o){return Hh(o,Jt(e,lc))?.trim()||null}function WP(e,o){let t=typeof e=="number"?e:Number.parseFloat(String(e??""));if(!Number.isFinite(t)||t<=0)return null;let r=(Math.min(ra.max,Math.max(ra.min,t))/100).toFixed(2);return o!=="bottom"?{background:yc(Number(r))}:{background:`linear-gradient(0deg, ${yc(Number(r))} 0%, ${yc(0)} ${TW})`}}var nf=[{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"}],UP="fillFade",$x=nf[1].value,sf=e=>e===$x?$x:nf[0].value,PW=[{mix:"12%",at:"50%"},{mix:"19%",at:"70%"},{mix:"50%",at:"95%"}];function Yhe(e){return sf(e)!==$x?null:{backgroundImage:`linear-gradient(to bottom, transparent, ${PW.map(o=>`color-mix(in srgb, var(--bg) ${o.mix}, transparent) ${o.at}`).join(", ")})`}}var lf=e=>typeof e=="string"?CW(e.trim()):null,Yl=e=>{let o=lf(e);if(o!==null||typeof e!="string")return o;let t=e.trim();return t&&!t.startsWith("#")&&NP(t)||null},df=e=>{if(typeof e!="string")return null;let o=vW(rt(e.trim()));return o?.kind==="slot"?o.slot:null},jx="swatch";function Xhe(e,o){if(!o)return null;let t=Hh(o,Jt(e,jx)),r=ar(t);return lf(t)??(r&&Pr(r)||null)}var EW={tabletClass:"sf-fill-tablet",tabletVar:"--sf-fill-tablet",phoneClass:"sf-fill-phone",phoneVar:"--sf-fill-phone"};function Zhe(e,o,t){return Ga(EW,Yl(e),Yl(o),Yl(t))}var OW={tabletClass:"sf-wash-tablet",tabletVar:"--sf-wash-tablet",phoneClass:"sf-wash-phone",phoneVar:"--sf-wash-phone"};function Jhe(e){let o=WP(e.darken,e.darkenStyle);if(!o)return{className:"",style:{}};let t=(u,p)=>String(WP(u,p)?.background??"none"),r=u=>(typeof u=="number"||typeof u=="string"&&u.trim()!=="")&&Number.isFinite(Number(u))?u:void 0,a=u=>kW.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 Ga(OW,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 Qhe(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 pv(n,s)}function zP(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(Kx(r,o,0))return{type:typeof a=="string"?a:"",props:n??{}}}return null}function Kx(e,o,t){if(t>12||!e||typeof e!="object")return!1;if(Array.isArray(e))return e.some(a=>Kx(a,o,t+1));let r=e.props;return r&&typeof r=="object"&&r.id===o?!0:Object.values(e).some(a=>Kx(a,o,t+1))}function $P(e,o){let t=e?.content;return Array.isArray(t)?cf(t,o,0)??[]:[]}function cf(e,o,t){if(t>12||!e||typeof e!="object")return null;if(Array.isArray(e)){for(let a of e){let n=cf(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=cf(a,o,t+1);if(n)return[r,...n]}return null}for(let a of Object.values(e)){let n=cf(a,o,t+1);if(n)return n}return null}import{SettingsDefaultReset as Ho,SettingsDrill as sK,SettingsField as mo,SettingsGroup as lK,SettingsSegmented as iK,SettingsBorder as dK,SettingsSidesEach as cK,SettingsSwitch as yg,borderSides as fK,borderStartEach as pK}from"efficient-easel/panel";import{ListField as uK}from"efficient-easel/fields";import{DisplayChips as mK}from"efficient-shell/ui";import{HIDDEN_KEY as _W,hiddenInEveryView as AW,hiddenInView as Vx,hiddenKeyOf as GP}from"efficient-easel/screen/lib/content/view-hide";var RW={"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"},LW={"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"},jP=e=>(e.desktop?"1":"0")+(e.tablet?"1":"0")+(e.mobile?"1":"0");function ff(e,{atSectionLine:o=!1}={}){return(o?LW:RW)[jP(e)]}var gs=[_W,GP("tablet"),GP("mobile")];function KP(e){return{desktop:Vx(e,"desktop"),tablet:Vx(e,"tablet"),mobile:Vx(e,"mobile")}}function Xl(e){return AW(e)}function rxe(e){let o=KP(e);return["desktop","tablet","mobile"].filter(t=>o[t]).join(" ")}var FW={"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!"},BW={"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 axe(e,{atSectionLine:o=!1}={}){return(o?BW:FW)[jP(KP(e))]}function bs(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 pf(e,o){return bs(e)[o]!==!1}function qx(e,o,t){let r=bs(o)[t];return typeof r=="boolean"?r:pf(e,t)}function VP(e){return Object.values(bs(e)).some(o=>o===!1)}function qP(e){return Object.keys(bs(e)).length>0}function YP(e,o,t){let r={...bs(e)};return t?delete r[o]:r[o]=!1,Object.keys(r).length?r:void 0}function XP(e,o,t){return{...bs(e),[o]:t}}function lxe(e,o,t,{atSectionLine:r=!0}={}){let a=!pf(e,t);return ff({desktop:a,tablet:a,mobile:!qx(e,o,t)},{atSectionLine:r})}import{ColorSwatch as hK,CornersInput as xK,DatePicker as hCe,DateTimePicker as IK,FOCAL_DEFAULT as xCe,IconPicker as OO,COLUMN_COUNT_MAX as dO,COLUMN_SHARE_MIN as gK,COLUMN_SHARES_EQUAL as bK,resolveColumnShares as _O,WidthsBar as yK,useShellStrings as SK,IconButton as AO,InputNumber as cO,Slider as wK,Tooltip as Sg}from"efficient-shell/ui";import{backendOf as DW}from"efficient-easel/screen/lib/session";var to=DW,uf=e=>e.blocks;async function ZP(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 Yx="Lookup busy \u2014 try again in a moment.",mf=e=>typeof e=="number"&&Number.isFinite(e);function mxe(e){return e.some(o=>{let t=o?.geocode;return t?t.pending||t.manual&&t.lat===void 0&&t.lng===void 0?!0:mf(t.lat)&&t.lat!==o.lat||mf(t.lng)&&t.lng!==o.lng:!1})}async function hxe(e,o,{geocode:t=ZP,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:Yx}})}}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=mf(l.lat)&&l.lat!==s.lat?l.lat:s.lat,c=mf(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 Zx}from"react/jsx-runtime";import{useRef as NW}from"react";import{ColorPicker as MW,ColorPickerPanel as HW,ColorSwatch as WW,HexInput as UW,Popover as zW,Tooltip as $W,colorFill as GW,colorSwatchClasses as jW,useShellStrings as KW}from"efficient-shell/ui";import{SettingsDefaultReset as VW,SettingsField as qW}from"efficient-easel/panel";import{typedHex as Xx}from"efficient-easel/pick";var JP="Not set";function QP({value:e,onChange:o,label:t,id:r,caption:a,inherited:n,ariaLabel:s,choices:l}){return $o(XW,{value:e,onChange:o,label:i(s??t),id:r,caption:a,inherited:n,choices:l})}function YW(){let{theme:e}=he();return RP(e)}function XW({value:e,onChange:o,label:t,id:r,caption:a,inherited:n,choices:s}){let l=YW(),d=e?null:Xx(n??""),c=a!==void 0&&(!e||Xx(a)!==Xx(e))?a:null,f=u=>{u!==e&&o(u)};return Zx("div",{className:"sf-colour",children:[s?$o(ZW,{id:r,value:e,onChange:o,label:t,presets:l,follows:d,choices:s}):$o(MW,{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(UW,{value:e||d||"",onChange:f,label:i("{label} hex code",{label:t}),placeholder:e||d?void 0:i(JP),className:d?"sf-colour-hex is-inherited":"sf-colour-hex",size:"md"})})]})}function ZW({value:e,onChange:o,label:t,id:r,presets:a,follows:n,choices:s}){let l=KW().color,d=e||n||"",c=s.findIndex(p=>p.selected),f=c>=0,u=NW(c);return f&&(u.current=c),$o(zW,{id:r,trigger:$o("span",{"aria-hidden":"true",className:"absolute inset-0",style:GW(d)}),triggerLabel:l.swatch(t,d.toUpperCase()||l.none),triggerClassName:jW({size:"md"}),"aria-label":l.panel(t),align:"start",children:Zx("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(WW,{color:p.color,"aria-label":p.label,selected:p.selected,onClick:()=>{p.selected||p.onPick()}})},p.label))}),$o(HW,{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(qW,{label:e,icon:o,htmlFor:l.id,changed:t,hint:r,action:a?$o(VW,{words:de()?.panel,label:e,changed:!!t,detail:n,onReset:a}):void 0,children:s?Zx("div",{className:"es-width-stack",children:[QP({...l,label:e}),s]}):QP({...l,label:e})})}function Zl({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 mg}from"efficient-easel/screen/lib/document/style-fields";import{jsx as JW}from"react/jsx-runtime";import{useEffect as QW,useState as eU}from"react";import{clearRangeOf as oU,markSelection as tU,useCaretEdit as rU}from"efficient-easel/copy";import{TextToolbar as aU}from"efficient-shell/ui";function nU(e,o,t){return tU(e,o,t,DC)}function e0(e,o){let t=oU(o,e.length),r=MC(e,t.start,t.end);return r.text===e?null:r}function sU(e){let[o,t]=eU(null);return QW(()=>{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 lU({target:e,value:o,onChange:t,disabled:r=!1,label:a="Formatting"}){let n=rU({target:e,onChange:t}),[s,l]=sU(e),d=p=>n(h=>{let I=nU(o,p,h);return l({start:I.selectionStart,end:I.selectionEnd}),I}),c=BC(),f={};if(s)for(let p of c)f[p.style]=NC(o,s.start,s.end,p.style);let u=r?null:e0(o,s);return JW(aU,{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=e0(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=lU;import{deviceField as it}from"efficient-easel/screen/lib/document/device-fields";import{NO_CONTROL_FIELD as CK,NoControlMark as vK,noControlField as RO}from"efficient-easel/screen/lib/document/panel-no-control-mark";var Qx="__ownBox";function o0(e){return!!e&&typeof e=="object"&&e[Qx]===!0}var eI="sfPanelOnly";function ys(e){return!!e&&typeof e=="object"&&e[eI]===!0}function hf(e,o,t){return typeof e=="number"?e:typeof o=="number"?o:t}var xf=void 0;import{phoneKey as Os,tabletKey as wg,viewKeyAt as Cg}from"efficient-easel/draw";import{jsx as If,Fragment as iU,jsxs as dU}from"react/jsx-runtime";import{useRef as cU}from"react";import{SettingsDefaultReset as fU}from"efficient-easel/panel";import{effectTiles as pU}from"efficient-easel/screen/lib/document/effect-tiles";import{VIEW_KEY_ACCESS as t0,describedAs as uU,onDesktopWords as mU,phoneTwinFields as r0}from"efficient-easel/screen/lib/document/box-fields";function hU({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,r0(e,o(t),t0)[r]]}))}function gf(e,o,t){let r=o.render,a={...o,render:n=>If(hU,{...n,row:r,read:t})};return Er(e,n=>n==="desktop"?o:a)}function xU({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=cU(null),{preview:l}=e,d=pU({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 dU(iU,{children:[l?If("div",{ref:s,style:{display:"contents"},children:c}):c,r&&t&&If(fU,{words:de()?.panel,label:i(e.tileWord),changed:!0,detail:mU(f=>i(f),i(e.word(a)),o.followsView),onReset:()=>o.onChange(void 0)})]})}function bf(e,o){let t=uU({type:"custom",render:r=>If(xU,{...r,spec:o})},{type:"select",label:o.label,options:o.values.map(r=>({value:r,label:o.word(r)}))});return r0(e,t,t0)}import{jsx as tI,Fragment as bU}from"react/jsx-runtime";import{createContext as yU,useContext as SU}from"react";var yf={ProductGrid:{source:{keep:["slug"]}},GalleryItem:{product:{keep:["code","finish"]}},FeaturedCover:{source:{keep:["slug"]}},LongRead:{source:{keep:["slug"]}}},Sf={Events:["posts"],SubscribeBlogs:["posts"]};var IU=["anchor"],gU=/^href$|Href$|^url$|Url$|^link$|^mailto$|^tel$/;function Jl(e){return IU.includes(e)||gU.test(e)}var oI={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"}}};oI.ContactLocations={"locations[].lat":{verb:"pii"},"locations[].lng":{verb:"pii"},"locations[].mapsUrl":{verb:"pii"},"locations[].geocode":{verb:"pii"}};var Yxe=Object.fromEntries(Object.entries(yf).map(([e,o])=>[e,Object.keys(o)])),Xxe=Object.fromEntries(Object.entries(Sf).map(([e,o])=>[e,[...o]]));import{NoControlMark as wU}from"efficient-easel/screen/lib/document/panel-no-control-mark";var a0=yU(!1);function n0({children:e}){return tI(a0.Provider,{value:!0,children:e})}function CU(){return SU(a0)}function s0({name:e,children:o}){return!CU()||!e||!vU(e)||Jl(e)?tI(bU,{children:o}):tI(wU,{})}function vU(e){return/^[A-Za-z0-9_$]+$/u.test(e)}var rI="off",i0="none",aI=[{label:"None",value:"off"},{label:"1, 2, 3",value:"plain"},{label:"01, 02, 03",value:"padded"},{label:"N\xB001, N\xB002",value:"numero"}],d0=[{label:"None",value:"none"},{label:"Hairline",value:"hairline"}];function aIe(e){return co(aI,rI,e)}var l0="sf-card-index",Ql="sf-card-index",nIe="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",kU={plain:`counter(${Ql})`,padded:`counter(${Ql}, decimal-leading-zero)`,numero:`"N\xB0" counter(${Ql}, decimal-leading-zero)`};function sIe(e,o){return o==="off"?"":`.${e}{counter-reset:${Ql}}.${e} .${l0}{counter-increment:${Ql}}.${e} .${l0}::before{content:${kU[o]}}`}function lIe(e){return e==="hairline"?"border border-line hover:border-accent":""}var c0=[{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 kK}from"efficient-easel/draw";import{jsx as Xo}from"react/jsx-runtime";import{SettingsDefaultReset as LU,SettingsField as nI}from"efficient-easel/panel";import{useSelectedHost as FU}from"efficient-easel/easel";import{FOCAL_DEFAULT as BU}from"efficient-shell/format";import{ImageIcon as sI,PlayIcon as p0}from"efficient-easel/icons";import{ImageFocusPoint as DU,MediaUploadField as NU}from"efficient-shell/ui";import{useContext as MU}from"react";import{ScreenDocumentContext as HU}from"efficient-easel/screen/components/ScreenDocumentContext";import{tabletKey as WU,viewKeyAt as UU}from"efficient-easel/draw";import{usePreviewDevice as zU}from"efficient-easel/draw/client";import{formatFocal as TU,parseFocal as PU}from"efficient-shell/format";var EU="sf-focus-phone",OU="--sf-focus-phone",_U="sf-focus-tablet",AU="--sf-focus-tablet",ei=e=>{if(typeof e!="string"||!/^\s*-?\d+(\.\d+)?%\s+-?\d+(\.\d+)?%\s*$/.test(e))return null;let{x:o,y:t}=PU(e);return TU(o,t)};function f0(e,o){return Ga(RU,null,ei(o),ei(e))}var RU={tabletClass:_U,tabletVar:AU,phoneClass:EU,phoneVar:OU};import{shownTier as lI}from"efficient-easel/screen/lib/document/device-fields";import{onDesktopWords as $U}from"efficient-easel/screen/lib/document/box-fields";import{requestMediaPick as GU}from"efficient-easel/screen/lib/media-picker";import{useEaselHost as jU}from"efficient-easel/screen/lib/host";import{useEaselSession as KU}from"efficient-easel/screen/lib/session-context";function VU(e,o,t,r=!0){let a=lI(t),n=typeof e[o]=="string"&&e[o]?String(e[o]):BU;if(a==="desktop")return{ownView:!1,followed:n,followsView:"desktop",own:void 0,focus:n,key:o};let s=UU(o,a),l=ei(e[s])??void 0,d=a==="mobile"&&r?ei(e[WU(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 qU(e,o,t){let r=FU();if(!o||!r)return null;let a=r.values??{};if(t&&!t(a,lI(e)))return null;let n=VU(a,o,e,t?t(a,"tablet"):!0),s=r.onChange;return{...n,set:l=>s(n.key,l),clear:()=>s(n.key,xf)}}function u0({value:e,onChange:o,label:t,accept:r,placeholder:a,focusKey:n,focusWhen:s,frameKey:l,fieldKey:d}){let c=jU(),f=KU(),u=i(t),p=zU(),h=r.startsWith("video"),I=qU(p,h?void 0:n,s),g=!!n&&lI(p)!=="desktop",C=MU(HU),w=aa(),T=l&&d?{video:d,frame:l}:null,y=E=>GU(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(nI,{label:u,icon:h?Xo(p0,{}):Xo(sI,{}),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(LU,{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(nI,{label:u,icon:Xo(sI,{}),action:H,children:Xo("div",{style:{flex:"1 1 auto",minWidth:0},children:Xo(DU,{value:I.focus,onChange:I.set,label:i("Image focus"),image:P,hint:null})})}):Xo(nI,{label:u,icon:h?Xo(p0,{}):Xo(sI,{}),children:Xo("div",{style:{flex:"1 1 auto",minWidth:0},children:Xo(NU,{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 m0}from"react/jsx-runtime";import{useId as YU}from"react";import{FieldSelect as XU}from"efficient-easel/fields";import{SettingsField as ZU}from"efficient-easel/panel";function JU(e){return e.map(({value:o,label:t,note:r})=>({value:o,label:t,...r?{meta:r}:{}}))}function h0({label:e,options:o,value:t,onChange:r,emptyLabel:a,icon:n,hint:s}){let l=YU(),d=`${l}-label`,c=`${l}-button`,f=Array.isArray(t)?t:[];return m0(ZU,{label:i(e),labelId:d,icon:n,hint:s,children:m0(XU,{id:c,multiple:!0,value:f,options:JU(o),onChange:r,placeholder:a===void 0?i("None"):i(a),ariaLabelledBy:`${d} ${c}`,inline:!0})})}import{jsx as Io,jsxs as Ka,Fragment as Pz}from"react/jsx-runtime";import{useCallback as E0,useContext as Ez,useId as A0,useRef as O0,useState as _0}from"react";import{ThemeIcon as Oz}from"efficient-easel/icons";import{Button as _z,useClickOutside as Az}from"efficient-shell/ui";import{SettingsField as Rz}from"efficient-easel/panel";import{ScreenDocumentContext as Lz}from"efficient-easel/screen/components/ScreenDocumentContext";import{jsx as fe,jsxs as sa,Fragment as lz}from"react/jsx-runtime";import{parseHexColor as iz}from"efficient-shell/format";import{Button as dI,IconButton as dz,Tooltip as cz}from"efficient-shell/ui";import{jsx as na,jsxs as QU}from"react/jsx-runtime";import{AccentIcon as ez}from"efficient-easel/icons";import{Button as oz,Tooltip as tz}from"efficient-shell/ui";function iI(e){return Vo(e).background}function rz(e){let o=qr(e.accent,iI(e));return o===null?null:{ratio:o,grade:as(o)}}function az(e){let o=iI(e),t=qr(e.accent,o);return t===null?[]:Qv(e.accent).filter(r=>{let a=qr(r,o);return a!==null&&a>t&&as(a)==="good"})}var nz={good:"Easy to read","large-only":rs["large-only"],hard:rs.hard};function x0({value:e,onChange:o}){let t=rz(e),r=t?.grade,a=t&&t.grade!=="good"?az(e):[];return na(Yo,{label:i("Main color"),icon:na(ez,{}),hint:t?i(nz[t.grade]):void 0,value:e.accent,onChange:n=>o({...e,accent:n}),children:a.length>0?na("div",{className:"w-full min-w-0",children:QU("div",{className:"sf-readability",children:[na("p",{className:"sf-readability-advice",children:sz(r,!0)}),na("div",{className:"sf-readability-suggestions",children:a.map(n=>{let s=qr(n,iI(e));return na(tz,{content:i("Use {colour}",{colour:n.toUpperCase()}),children:na(oz,{variant:"secondary",className:"sf-readability-suggestion",leftIcon:na("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 sz(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 fz,ChevronDownIcon as g0,ChevronUpIcon as pz,GroundIcon as uz,LayoutIcon as mz,SquareIcon as hz,TextSmallIcon as xz,TypeIcon as I0}from"efficient-easel/icons";var oi=e=>i("Theme {n}",{n:e+1});function b0({colors:e}){let o=Vo(e),t=Fl(e)??o.accent;return sa("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")}),sa("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")}),sa("span",{className:"sf-theme-row",children:[fe("span",{className:"sf-theme-btn",style:{background:t,color:$h(e,o.accent)},children:i("button")}),fe("span",{className:"sf-theme-mini",style:{background:o.surface,borderColor:o.line},children:i("card")})]})]})}var cI={"Text color":fe(I0,{}),"Label color":fe(xz,{}),Background:fe(uz,{}),"Panels & cards":fe(mz,{}),Borders:fe(hz,{}),"Button color":fe(fz,{}),"Button text color":fe(I0,{})};function Iz({label:e,colorKey:o,value:t,onChange:r,idPrefix:a="sf-theme-ink"}){let n=`${a}-${o}`;return fe(Yo,{label:i(e),icon:cI[e],id:n,value:t,onChange:s=>r(o,s)})}function gz({value:e,accent:o,onChange:t,idPrefix:r="sf-theme-ink"}){let a=`${r}-button`,n=e!==void 0&&iz(e)===e.toLowerCase(),s=n?e:o;return fe(Yo,{label:i("Button color"),icon:cI["Button color"],id:a,value:s,caption:n?s:i("Main"),onChange:t})}function bz({colors:e,accent:o,onChange:t,idPrefix:r="sf-theme-ink"}){let a=`${r}-button-ink`,n=ek(e),s=$h(e,o),l=Fl(e)??o,d=as(qr(s,l)??0);return fe(Yo,{label:i("Button text color"),icon:cI["Button text color"],hint:n&&d!=="good"?i("{grade} on the button",{grade:i(rs[d])}):void 0,id:a,value:s,caption:n?s:i("Auto"),onChange:t})}var yz=[{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 fI({colors:e,onChange:o,idPrefix:t}){let r=Vo(e);return fe(lz,{children:yz.map(a=>"colour"in a?fe(x0,{value:e,onChange:o},"colour"):"moduleBreak"in a?fe("div",{className:"sf-theme-module-break","aria-hidden":"true"},"module-break"):"button"in a?fe(gz,{value:e.button,accent:r.accent,onChange:n=>o({...e,button:n}),idPrefix:t},"button"):"buttonInk"in a?fe(bz,{colors:e,accent:r.accent,onChange:n=>o({...e,buttonInk:n}),idPrefix:t},"buttonInk"):fe(Iz,{label:a.label,colorKey:a.key,value:r[a.key],onChange:(n,s)=>o({...e,[n]:s}),idPrefix:t},a.key))})}function wf({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=oi(e),u=e<zh.length&&!o.brandInk?zh[e]:null,p=as(qr(c.text,c.background)??0),h=u?JSON.stringify(o)!==JSON.stringify(u):!1,I=a!==void 0;return sa("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(b0,{colors:o})}),sa("div",{className:"sf-theme-foot",children:[fe("span",{className:"sf-theme-name",children:f}),p!=="good"&&fe("span",{className:"sf-theme-warn",children:i(rs[p])}),n&&l&&I&&fe("span",{className:"sf-theme-edit",children:fe(cz,{content:a?i("Collapse"):i("Edit colors"),children:fe(dz,{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(pz,{size:14}):fe(g0,{size:14})})})}),n&&l&&!I&&fe(dI,{variant:"secondary",size:"sm",className:"sf-theme-edit","aria-label":i("Edit {name}",{name:f}),onClick:l,children:i("Edit")})]}),a&&sa("div",{id:`sf-theme-colours-${e}`,className:"sf-theme-colours",children:[fe(fI,{colors:o,onChange:g=>d?.(g)}),u&&fe(dI,{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 y0({colors:e,name:o,nameId:t,open:r,menuId:a,labelId:n,buttonRef:s,onClick:l,onKeyDown:d,onEdit:c}){return sa("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(b0,{colors:e}):fe("span",{className:"sf-secttheme-nopreview","aria-hidden":"true"})}),sa("div",{className:"sf-theme-foot",children:[fe("span",{id:t,className:"sf-theme-name",children:o}),c&&fe(dI,{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(g0,{size:12,className:"sf-multi-caret","aria-hidden":"true"})})]})]})}import{useCallback as II,useEffect as k0,useRef as Tf}from"react";import{currentEaselSession as Cz}from"efficient-easel/screen/lib/session";import{useEaselSession as vz}from"efficient-easel/screen/lib/session-context";import{useSyncExternalStore as Sz}from"react";var w0,pI=null,ja=null,Cf=0,uI=new Set;function mI(e){w0=e;for(let o of uI)o()}function hI(e){pI=e,Cf+=1,ja&&clearTimeout(ja),ja=null,mI(void 0)}function vf(e){Cf+=1,mI(e)}function Or(e=250){pI&&(ja&&clearTimeout(ja),ja=setTimeout(()=>{ja=null;let o=pI;if(!o)return;let t=++Cf;o().then(r=>{t===Cf&&mI(r)}).catch(()=>{})},e))}function S0(){return w0}function wz(e){return uI.add(e),()=>{uI.delete(e)}}function kf(){return Sz(wz,S0,S0)}var xI=new Set;function C0(e){return xI.add(e),()=>{xI.delete(e)}}async function v0(){let e=(await Promise.allSettled([...xI].map(async o=>o()))).find(o=>o.status==="rejected");if(e)throw e.reason}import{WebsiteBackendError as kz}from"efficient-easel/screen/lib/backend-error";function T0(e=Cz()){return(o,t,r)=>{let a=to(e).theme;return a?a.update(o,r?{siteId:r}:void 0):Promise.reject(new kz("invalid","This backend stores no site theme."))}}function P0(e){return e.themeFromDocument?{status:"skipped",reason:"template"}:e.token?null:{status:"skipped",reason:"no-token"}}async function Tz(e,o=T0()){let{themeFromDocument:t,token:r,siteId:a,patch:n}=e,s=P0({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 Ss({themeFromDocument:e,tokenRef:o,siteId:t,onResult:r}){let a=Tf(null),n=Tf({}),s=vz(),l=Tf(r);l.current=r;let d=Tf(null),c=II(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=II(async()=>{a.current&&(clearTimeout(a.current),a.current=null);let p=n.current;n.current={};let h=await Tz({themeFromDocument:e,token:o?.current,siteId:t,patch:p},T0(s));return c(h),h.status==="saved"&&Or(),h.status==="failed"&&(n.current={...p,...n.current}),h},[e,o,t,c,s]),u=II((p,h=!1)=>{let I=P0({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 k0(()=>()=>{f()},[f]),k0(()=>C0(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 Fz="Follow the page",Tge="Follow the slideshow",Bz=e=>i("Editing {name} changes it everywhere.",{name:e});function Dz({colors:e}){if(!e)return Io("span",{className:"sf-secttheme-chip sf-secttheme-chip--none","aria-hidden":"true"});let o=Vo(e);return Ka("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 Nz({themes:e,value:o,onPick:t,onEdit:r,menuId:a,followLabel:n}){return Ka("div",{className:"sf-multi-menu sf-secttheme-menu",id:a,role:"listbox",children:[n!==void 0&&Ka(Pz,{children:[Ka("button",{type:"button",role:"option","aria-selected":o===null,className:`sf-secttheme-item${o===null?" is-active":""}`,onClick:()=>t(er),children:[Io(Dz,{}),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:oi(o)})}),e.map((s,l)=>l===o?null:Io(wf,{role:"option",index:l,colors:s,selected:!1,onPick:()=>t(l),onEdit:()=>r(l)},l))]})}function Mz({index:e,colors:o,onChange:t,onDone:r}){let a=oi(e),n=A0();return Ka("div",{className:"sf-secttheme-sheet",children:[Ka("div",{className:"sf-secttheme-sheet-head",children:[Io("span",{children:a}),Io(_z,{variant:"secondary",className:"sf-secttheme-done",onClick:r,children:i("Done")})]}),Io("div",{className:"sf-secttheme-rows",children:Io(fI,{colors:o,onChange:t,idPrefix:n})}),Io("p",{className:"sf-secttheme-warn",children:Bz(a)})]})}function R0({value:e,onChange:o,followLabel:t,hint:r}){let{theme:a,setTheme:n}=he(),s=xo(a),l=Ez(Lz),d=l?.tokenRef,c=l?.siteId??null,f=!l?.capabilities?.hasSiteTheme,{persist:u,flush:p}=Ss({themeFromDocument:f,tokenRef:d,siteId:c}),h=xo(s),I=h.themes,g=or(e),C=g!==null?I[g]:void 0,w=C??(I.length?ts(h):void 0),[T,y]=_0(!1),[b,P]=_0(null),H=O0(null),E=O0(null),W=A0(),O=E0(()=>{y(!1),P(null)},[]),D=E0(()=>{!T&&b===null||(p(),O())},[T,b,O,p]);Az(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 Ka("div",{className:"sf-secttheme",ref:H,children:[Io(Rz,{label:i("Theme"),icon:Io(Oz,{}),labelId:`${W}-label`,hint:r,children:Io(y0,{colors:w,onEdit:g!==null?()=>{P(g),y(!1)}:void 0,name:C?oi(g):i(t??Fz),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(Nz,{themes:I,value:g,onPick:v,onEdit:A=>{P(A),y(!1)},menuId:W,followLabel:t})}),b!==null&&I[b]&&Io(Mz,{index:b,colors:I[b],onChange:_,onDone:()=>{p(),O(),E.current?.focus()}})]})}import{jsx as L0}from"react/jsx-runtime";import{useId as Hz}from"react";import{FieldSelect as Wz}from"efficient-easel/fields";import{SettingsField as Uz}from"efficient-easel/panel";function zz(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 Lge({label:e,options:o,fallback:t,value:r,onChange:a,placeholder:n,bare:s=!1,icon:l}){let d=Hz(),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=L0(Wz,{id:f,value:p,options:zz(o),onChange:a,placeholder:I,searchPlaceholder:I,...s?{ariaLabel:h}:{ariaLabelledBy:`${c} ${f}`},searchable:!0,groupCount:!0,inline:!0});return s?g:L0(Uz,{label:h,labelId:c,icon:l,children:g})}import{jsx as qa,jsxs as S$}from"react/jsx-runtime";import{SettingsField as tE}from"efficient-easel/panel";import{LinkIcon as w$}from"efficient-easel/icons";import{LinkPicker as C$,TextLinkField as v$}from"efficient-shell/ui";import{useEffect as oE,useMemo as Af,useRef as k$,useState as _f}from"react";import{currentEaselSession as $z}from"efficient-easel/screen/lib/session";function F0(){return $z().auth.token}import{currentEaselSession as T$}from"efficient-easel/screen/lib/session";import{useScreenDocument as P$}from"efficient-easel/screen/components/ScreenDocumentContext";var Gz=()=>({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 B0(e,o,t){if(!e)return"page";if(yP(e))return"popup";if(e.startsWith("/journal/"))return"blog";if(CP(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 gI(e,o){let t=Gz(),r=e.pages.map(f=>({value:ql(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:wP(...f.docs).map(u=>({value:of(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:SP(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:bP(u.slug),label:u.title||u.slug})),placeholder:t.choosePopup};case"custom":return{type:"text"}}},d=gP(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=>B0(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=>B0(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 E$}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 D0(e,o){return q(e)??o}function _r(e,o){return typeof e=="boolean"?e:o}function Pf(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 M0=["delay","scroll","exit"],H0=["all","chosen","except"],W0=["visit","days","never","once"],jz=["all","desktop","phone"],Kz=["stop","continue"],U0={min:0,max:60},z0={min:10,max:90},$0={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 ws(e,o,t){let r=D0(e,t);return Math.min(o.max,Math.max(o.min,Math.round(r)))}function Vz(e){return typeof e.hideAfter=="string"?at(W0,e.hideAfter,Dt.hideAfter):e.oncePerSession===!0?"visit":e.oncePerSession===!1?"never":Dt.hideAfter}function qz(e){return Array.isArray(e)?e.map(o=>typeof o=="string"?o.trim():"").filter(Boolean).map(o=>o.startsWith("/")?o:`/${o}`):[]}function N0(e){if(typeof e!="string")return null;let o=e.trim();return/^\d{4}-\d{2}-\d{2}$/.test(o)?o:null}function G0(e){let o=e??{},t=Dt;return{autoOpen:_r(o.autoOpen,t.autoOpen),trigger:at(M0,o.trigger,t.trigger),autoOpenDelaySec:ws(o.autoOpenDelaySec,U0,t.autoOpenDelaySec),scrollPercent:ws(o.scrollPercent,z0,t.scrollPercent),showOn:at(H0,o.showOn,t.showOn),showOnPages:qz(o.showOnPages),devices:at(jz,o.devices,t.devices),hideAfter:Vz(o),hideDays:ws(o.hideDays,$0,t.hideDays),afterSubmit:at(Kz,o.afterSubmit,t.afterSubmit),startDate:N0(o.startDate),endDate:N0(o.endDate)}}import{parseHexColor as Yz}from"efficient-shell/format";var Nt="#000000";var bI="popup",Xz=yk,Zz=["auto","full"],Jz=["inside","outside","none"],Qz={min:240,max:1440},e$={min:0,max:100},ti={placement:"center",fullWidth:!1,width:720,height:"auto",tintColor:Nt,tintOpacity:60,outsideClick:!0,closeButton:"inside"};function o$(e,o){let t=typeof e=="string"?e.trim():"";return t&&Yz(t)===t.toLowerCase()?t:o}function yI(e,o=ti){let t=e??{},r=o;return{placement:at(Xz,t.placement,r.placement),fullWidth:_r(t.fullWidth,r.fullWidth),width:ws(t.width,Qz,r.width),height:at(Zz,t.height,r.height),tintColor:o$(t.tintColor,r.tintColor),tintOpacity:ws(t.tintOpacity,e$,r.tintOpacity),outsideClick:_r(t.outsideClick,r.outsideClick),closeButton:at(Jz,t.closeButton,r.closeButton)}}var j0="cart-drawer",obe="cart-drawer",t$={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 tbe(e,o){return o===0?e.subtitleEmpty:o===1?e.subtitleOne:e.subtitleMany.replace("{count}",String(o))}function rbe(e){let o=e??{},t=t$;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:Pf(o.promises,t.promises),emptyKicker:Eo(o.emptyKicker,t.emptyKicker),emptyBody:Eo(o.emptyBody,t.emptyBody)}}var r$=["right","left"],a$={...ti,width:520,tintOpacity:68};function abe(e){let o=e??{};return{...yI(o,a$),placement:at(r$,o.placement,"right"),height:"full",fullWidth:!1,autoOpen:_r(o.autoOpen,!0)}}var V0="consent-banner",ibe="consent-banner";var n$=[{value:"bar",label:"Bar"},{value:"card",label:"Card"}],dbe="Layout",K0={layout:"bar"},s$=e=>n$.some(o=>o.value===e);function cbe(e){let o=Eo((e??{}).layout,K0.layout);return{layout:s$(o)?o:K0.layout}}var fbe={...ti,placement:"bottom-center",fullWidth:!0,width:440,tintOpacity:0,outsideClick:!1,closeButton:"none"};var l$="consentWords",i$=["eyebrow","notice","accept","reject","choose"];function SI(e){let o=(e??{})[l$];return typeof o=="string"&&i$.includes(o)?o:null}function wI(e){let o=e?.props;return o?SI(o)!==null?!0:Object.values(o).some(t=>Array.isArray(t)&&t.some(r=>r&&typeof r=="object"&&"props"in r&&wI(r))):!1}var d$=["meta","eyebrow","heading","body","statName","statValue","formEyebrow","formHeading","formIntro","fieldLabel","option","finePrint","dismiss","doneHeading","doneBody"],mbe={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"},c$={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"},hbe={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 q0(e){let o={};for(let t of d$){let r=br(e[c$[t]]);r&&(o[t]=r)}return o}var Y0={heading:"Join our email list",placeholder:"Email address",buttonLabel:"Subscribe"},f$={lead:"We accept"},Of={...f$,methods:[],size:"sm",align:"start",dataSource:yC},Mt="site-footer";var gbe=Mt,bbe={desktop:!0,tablet:!0,mobile:!0},ybe={desktop:!1,tablet:!1,mobile:!1},CI=1,X0=6,Sbe=Array.from({length:X0-CI+1},(e,o)=>CI+o),Ef={desktop:6,tablet:3,mobile:2},p$={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}},Va=e=>Math.min(Math.max(Math.round(e),CI),X0);function wbe(e){if(typeof e=="number")return p$[Va(e)]??{desktop:Va(e),tablet:Va(e),mobile:Va(e)};if(e&&typeof e=="object"){let o=e;return{desktop:Va(o.desktop??Ef.desktop),tablet:Va(o.tablet??Ef.tablet),mobile:Va(o.mobile??Ef.mobile)}}return{...Ef}}var vI="subscribe-popup",_be="subscribe-popup",u$=[vI,Mt,j0,V0];function J0(e){return u$.includes(e)}var m$=["right","left"],h$={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,x$=_r,Q0=Pf;function Z0(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 I$(e,o){return Array.isArray(e)?Q0(e,[]):o}function g$(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 Rbe(e){let o=e??{},t=h$,r=G0(o);return{metaLabel:ro(o.metaLabel,t.metaLabel),issueLabel:Z0(o.issueLabel,t.issueLabel),issueNumber:Z0(o.issueNumber,t.issueNumber),kicker:ro(o.kicker,t.kicker),heading:ro(o.heading,t.heading),deck:ro(o.deck,t.deck),stats:g$(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:Q0(o.interests,t.interests),frequencyLabel:ro(o.frequencyLabel,t.frequencyLabel),frequencies:I$(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(m$,o.formSide,t.formSide),valuePanelOnPhone:x$(o.valuePanelOnPhone,t.valuePanelOnPhone),sectionAccent:o.sectionAccent,sectionCorners:o.sectionCorners,sectionCornerSides:o.sectionCornerSides,textStyles:q0(o)}}function b$(e,o=Math.random){for(;;){let t=`popup-${Math.floor(o()*2176782336).toString(36).padStart(6,"0")}`;if(!e.has(t))return t}}function y$(e){return{root:{props:{title:e,kind:bI}},content:[],zones:{}}}function eE(e,o,t){return{slug:b$(o,t),title:e,kind:_x,layout:y$(e)}}function ri(e){return e?.root?.props?.kind===bI}function rE(e){let o=new Map;return(t="")=>{let r=F0(),a=o.get(t);if(!a||a.token===null&&r!==null){let n=r||!T$().usesBridgedToken?e(r??"",t).catch(()=>[]):Promise.resolve([]);return o.set(t,{promise:n,token:r}),n}return a.promise}}var O$=rE(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}))}),_$=rE(async(e,o)=>await to().blog?.posts(o?{siteId:o}:void 0)??[]);function A$({value:e,onChange:o,label:t="Link",data:r,filters:a}){let n=Af(()=>gI(r,a),[r,a]),s=i(t);return qa(tE,{label:s,icon:qa(w$,{}),children:qa(C$,{value:e,onChange:l=>o(l),kinds:n.kinds,rules:n.rules,filtersFor:n.filtersFor,label:s})})}function aE(){let{siteId:e,capabilities:o}=P$(),{offersCommerce:t,hasBlog:r}=o,[a,n]=_f([]),[s,l]=_f([]),[d,c]=_f([]),[f,u]=_f(null),p=E$().chrome,h=p?.products?.list,I=p?.linkFilters,g=I?void 0:p?.linkRow,C=k$(!0);oE(()=>(C.current=!0,()=>{C.current=!1}),[]),oE(()=>{let y=!0;return O$(e??void 0).then(b=>y&&C.current&&n(b)),r&&_$(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=Af(()=>({pages:a.filter(y=>!J0(y.slug)&&!ri(y.layout)).map(y=>({slug:y.slug,title:y.label,docs:[y.layout]})),popups:a.filter(y=>y.slug===vI||ri(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=Af(()=>f?f(w.pages):null,[f,w]);return{data:w,filters:T,pages:a,offersCommerce:t,HostLinkRow:g}}function Jbe({label:e,icon:o,text:t,onTextChange:r,link:a,onLinkChange:n}){let{data:s,filters:l}=aE(),d=Af(()=>gI(s,l),[s,l]),c=i(e);return qa(tE,{label:c,icon:o,children:qa(v$,{label:c,text:t,onTextChange:r,link:a,onLinkChange:f=>n(f),kinds:d.kinds,rules:d.rules,filtersFor:d.filtersFor})})}function nE({value:e,onChange:o,label:t="Link"}){let r=typeof e=="string"?e:"",{data:a,filters:n,pages:s,offersCommerce:l,HostLinkRow:d}=aE(),c=a.pages.map(u=>ql(u.slug)),f=l&&d&&(r==="/"||c.includes(r))?d:void 0;return S$("div",{children:[qa(A$,{value:r,onChange:o,label:t,data:a,filters:n}),f&&qa(f,{value:r,onChange:o,pages:s})]})}import{UiIcon as fO}from"efficient-easel/draw/client";import{phoneKey as mE,resolveViewValue as j$,tabletKey as hE,viewKeyAt as Ya}from"efficient-easel/draw";import{SECTION_PAD_UNIT_KEY as IE,SITE_SIDE as K$,convertLength as V$,isLengthUnit as q$,isSiteSide as gE,sideLengthAt as Y$,sideValueAt as X$,withLength as _I}from"efficient-easel/screen/lib/content/length-units";import{convertLength as R$}from"efficient-easel/screen/lib/content/length-units";var uo={min:1e3,max:2e3,step:50,default:1600};function L$(e){return{maxWidth:e,marginInline:"auto",width:"100%"}}var kI="--sf-site-width",PI=`var(${kI},${uo.default}px)`,tye="100vw",rye=`max-w-[${PI}]`,aye=`max-w-[${uo.default}px]`;function dE(e){return typeof e!="number"||!Number.isFinite(e)?uo.default:Math.round(Math.min(Math.max(e,uo.min),uo.max))}function nye(e,o){let t=Fa(e,o,"size",uo);if(t!==null)return{[kI]:t};let r=dE(e);return r===uo.default?{}:{[kI]:`${r}px`}}var Go={min:0,max:80,step:4,default:40},TI="--sf-site-gutter",Ht={min:0,max:24,step:4},sE="--sf-site-gutter-phone",F$="max-view-tablet:[--sf-site-gutter:var(--sf-site-gutter-phone)]!",B$="max-view-wide:[&_[data-sf-line~=edge]:not([data-sf-line~=edge]_*)]:[--sf-site-gutter:var(--sf-site-gutter-phone)]",nt=`var(${TI},${Go.default}px)`,D$=`px-[${nt}]`;var nr={md:`min(24px,${nt})`,sm:`min(20px,${nt})`,frame:`min(24px,${nt})`,tabs:`min(16px,${nt})`},sye=[[`max-view-desktop:px-[${nr.md}]`,"max-view-desktop:px-6"],[`max-view-desktop:px-[${nr.tabs}]`,"max-view-desktop:px-4"],[`max-[960px]:px-[${nr.frame}]`,"max-[960px]:px-6"],[`max-[900px]:px-[${nr.md}]`,"max-[900px]:px-6"],[`max-view-wide:px-[${nr.md}]`,"max-view-wide:px-6"],[`max-view-tablet:px-[${nr.sm}]`,"max-view-tablet:px-5"],[`max-view-wide:px-[${nr.sm}]`,"max-view-wide:px-5"],[`max-[640px]:px-[${nr.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"],[D$,"px-10"]];var cE="max-view-wide:px-[min(20px,var(--sf-site-gutter,40px))]";function EI(e){return N$[e??"box"]}var lE="var(--sf-pad-site,var(--sf-box-g,var(--sf-site-gutter,40px)))",iE="[--sf-edge-g:var(--sf-pad-site)]",N$={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:lE,edge:iE,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:lE,edge:iE,frame:cE}},lye=`mx-auto max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)] ${cE}`,iye="[--sf-box-g:var(--sf-site-gutter,40px)] [&>*]:[--sf-site-gutter:0px]";var dye="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 Rf(e){return typeof e!="number"||!Number.isFinite(e)?Go.default:Math.round(Math.min(Math.max(e,Go.min),Go.max))}function cye(e,o){let t=Fa(e,o,"spacing",Go);if(t!==null)return{[TI]:t};let r=Rf(e);return r===Go.default?{}:{[TI]:`${r}px`}}function Lf(e){return typeof e!="number"||!Number.isFinite(e)?null:Math.round(Math.min(Math.max(e,Ht.min),Ht.max))}function fE(e){return typeof e=="number"&&Number.isFinite(e)?dE(e):null}function fye(e,o){let t=Fa(e,o,"spacing",Ht);if(t!==null)return{[sE]:t};let r=Lf(e);return r===null?{}:{[sE]:`${r}px`}}function pye(e){return Lf(e)===null?"":`${F$} ${B$}`}function Ff(e,o){let t=Ic(e,o,"spacing",Go),r=t===null?Rf(e):R$(t,ke(o),"px","mobile",Ht);return Math.min(Ht.max,r)}var pE=PI,uye=`max-w-[${pE}]`,mye=`max-w-[min(var(--sf-page-cap,${uo.default}px),${uo.default}px)]`,uE="--sf-hero-cap",M$=`var(${uE},none)`,hye=`max-w-[${M$}]`,H$="--sf-hero-bleed-m",W$="--sf-hero-bleed-w",U$="--sf-hero-chrome-x",z$="--sf-hero-chrome-cap";function xye(e){return e===!0?{[uE]:pE,[H$]:"auto",[W$]:"100%",[U$]:"24px",[z$]:"none"}:{}}var OI=`calc(${PI} - ${nt}*2)`,Iye=`max-w-[${OI.replace(/ /g,"_")}]`;var $$="--sf-chrome-cap",G$=`var(${$$},${OI})`,gye="data-page-width";function bye(e){return e==="full"?"full":null}function yye(e){return e==="full"?null:L$(e==="content"?OI:G$)}function Sye(e){if(e==="full")return"full";if(e==="content")return"content"}var mt={min:10,max:200,step:10};function Z$(e,o,t,r=0){let a=q(e),n=q(o);if(a===void 0&&n===void 0)return;let s=Bf(t),l=d=>d===void 0?void 0:s==="px"?d:_I(d,s,r);return{paddingTop:l(a),paddingBottom:l(n)}}var Bf=e=>ke(e),J$="sf-pad-top-phone",Q$="sf-pad-bottom-phone",eG="--sf-pad-t-phone",oG="--sf-pad-b-phone",tG="sf-pad-left-phone",rG="sf-pad-right-phone",aG="--sf-pad-l-phone",nG="--sf-pad-r-phone",sG="sf-pad-top-tablet",lG="sf-pad-bottom-tablet",iG="sf-pad-left-tablet",dG="sf-pad-right-tablet",cG="--sf-pad-t-tablet",fG="--sf-pad-b-tablet",pG="--sf-pad-l-tablet",uG="--sf-pad-r-tablet",bE="sf-section-pad";function ai(e){let o={desktop:e.unit,tablet:e.unitTablet,phone:e.unitPhone},t=Z$(e.top,e.bottom,e.unit,e.frame),r=AI({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:[bE,...r.classes].join(" "),style:{...t,...r.style}}}var mG=e=>gE(e)?e:q(e),hG=[["top","paddingTop",[sG,cG],[J$,eG]],["bottom","paddingBottom",[lG,fG],[Q$,oG]],["left","paddingLeft",[iG,pG],[tG,aG]],["right","paddingRight",[dG,uG],[rG,nG]]];function xE(e,o,t){return!q$(o)||o==="px"?e:V$(e,"px",o,t,{min:0,max:mt.max,step:1})}function xG(e,o,t,r={},a=0){let n=(h,I)=>{if(I==="px")return`${h}px`;let g=_I(h,I,a);return typeof g=="number"?`${g}px`:g},s={n:e,[hE("n")]:o,[mE("n")]:t,u:r.desktop,[hE("u")]:r.tablet,[mE("u")]:r.phone},l=j$("spacing",q(e),q(o),q(t),Xn()),d=(h,I,g)=>{if(X$(s,{side:"n"},h,"side",["side"])?.value===K$)return EI().value;let C=Y$(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 AI(e,o,t={},r=e,a={},n=0,s="box"){let l={},d={},c=[],f=EI(s),u=!1;for(let[p,h,...I]of hG){let g=p==="left"||p==="right"?mG:q,C=g(e[p]),w=p==="top"||p==="bottom"?n:0;gE(C)?(l[h]=f.value,u=!0):C!==void 0&&(l[h]=Bf(a.desktop)==="px"?C:_I(C,Bf(a.desktop),w));let T=xG(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 sr={top:"padTop",bottom:"padBottom",left:"padLeft",right:"padRight"},Xa="padUnit";function ni(e,o){let t=e[Xa],r=(a,n,s)=>{let l=q(a)??(s===void 0?void 0:xE(s,t,"desktop")),d=q(n);return d===void 0?l:(l??0)+xE(d,t,"desktop")};return{top:r(e.padTop,e.sectionPaddingTop,o.top),bottom:r(e.padBottom,e.sectionPaddingBottom,o.bottom)}}function Oye(e,o,t={}){let r=ni(e,o),a={...LI(e,sr,!0,Xa),top:r.top,bottom:r.bottom};t.noTop&&Object.assign(a,{top:0,topTablet:void 0,topPhone:void 0});let n=ai(a),s=n?n.className.split(" ").filter(l=>l!==bE):[];return{...s.length?{className:s.join(" ")}:{},style:n?.style??{}}}var Ar={top:"sectionPaddingTop",bottom:"sectionPaddingBottom",left:"sectionPaddingLeft",right:"sectionPaddingRight"},RI=[...["top","bottom","left","right"].map(e=>[sr[e],Ar[e]]),[Xa,IE]].flatMap(([e,o])=>[[e,o],...["tablet","mobile"].map(t=>[Ya(e,t),Ya(o,t)])]);function LI(e,o=Ar,t=!0,r=o===Ar?IE:void 0){let a={};if(r){e[r]!==void 0&&(a.unit=e[r]);for(let n of["tablet","mobile"])e[Ya(r,n)]!==void 0&&(a[Ya("unit",n)]=e[Ya(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[Ya(n,s)]=e[Ya(o[n],s)]}return a}function _ye(e){return ai(e)}function Aye(e,o){let t=(r,a)=>typeof r!="number"?void 0:Bf(a)==="px"?r+o:r;return ai({...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 Df,buttonBorderOf as IG,buttonFillOpacityOf as gG,buttonPadSidesOf as bG,viewKeyAt as yG}from"efficient-easel/draw";import{BUTTON_PAD_UNIT_KEY as FI,lengthOf as SG}from"efficient-easel/screen/lib/content/length-units";var wG="px-6 py-4",CG=4,Nf=e=>{let o=new RegExp(`\\bp${e}-(?:\\[(\\d+)px\\]|(\\d+))`).exec(wG);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:Nf("y"),right:Nf("x"),bottom:Nf("y"),left:Nf("x")},SE="var(--btn)";function vG(e){let o=e.variant==="ghost",t=gG(e.buttonFillOpacity),r=IG(e.buttonBorder),a=Se(e.buttonColor);return{fillOpacity:t??(o?0:100),border:{width:r?.width??1,color:r?.color??a??(o?"currentColor":SE)},changed:t!==void 0||r!==void 0}}function Uye(e){let o=vG(e);if(!o.changed)return null;let t=Se(e.buttonColor)??SE;return{background:o.fillOpacity===0?"transparent":o.fillOpacity===100?t:`color-mix(in srgb, ${t} ${o.fillOpacity}%, transparent)`,borderWidth:SG(o.border.width,ke(e.buttonBorderUnit)),borderStyle:"solid",borderColor:o.border.color}}var kG="var(--sf-button-radius, 0)";function zye(e){let o=q(e.buttonCorners),t=tr(e.buttonCornerSides);if(o===void 0&&t===null)return null;let r=o===void 0?kG:We(Math.max(0,o),e.buttonCornersUnit);return{borderRadius:t===null?r:Wa(r,t)}}function $ye(e){let o=(s,l)=>e[yG(s,l)],t=s=>bG({top:o(Df.top,s),right:o(Df.right,s),bottom:o(Df.bottom,s),left:o(Df.left,s)})??{},r={desktop:o(FI,"desktop"),tablet:o(FI,"tablet"),phone:o(FI,"mobile")},{classes:a,style:n}=AI(t("desktop"),t("mobile"),t("tablet"),void 0,r);return Object.keys(n).length?{className:a.join(" "),style:n}:null}var yE="upper";function wE(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)??yE;return`${l} \xB7 ${d[c]??d[yE]}`}import{usePreviewParts as TK}from"efficient-easel/draw/client";import{encodePartId as PK}from"efficient-easel/draw";import{DEFAULT_EASEL_STRINGS as EK,useEaselStrings as OK}from"efficient-easel/strings";import{PIN_STICK_VAR as TG,PIN_TRACK_POSITION_VAR as PG,pinAttrs as CE,pinStickVars as EG,readPin as NI}from"efficient-shell/format";var Yye="Stick to top",ht={min:0,max:200,step:4,fallback:0},si={kind:"position",unitKey:"stickTopDistanceUnit"},vE=os(si),[OG,_G,AG]=vE,MI="Pin while scrolling",kE="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"},Rr="stickTopScreens",RG=[Rr,"stickTopScreensTablet","stickTopScreensPhone"],HI="Screens",li="stickTopStop",la="screen",TE="Pin stops at",PE=[{value:"header",label:"Under the header"},{value:la,label:"Screen top"}],EE="header",OE="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 WI(e){return e===la?la:"header"}function _E(e){return e===la?la:void 0}var ii="stickAbove",AE="Stays above",RE="On: the pinned box stays on top, and the sections after it scroll under it.";function LG(e){return e.stickAbove===!0}var LE=["stickTop","stickTopDistance","stickTopTablet","stickTopDistanceTablet","stickTopPhone","stickTopDistancePhone",...vE,...RG,li,ii],Xye=new Set(["IntroBleed"]),Zye=new Set(["CategoryBar","DocTabs","Contents"]);function FG(e){return typeof e.stickTop=="boolean"?e.stickTop:e.sticky!==!1}var BI=e=>NI(!0,e).length,UI={any:["stickTop","stickTopTablet","stickTopPhone"].map(e=>({field:e,is:!0}))},FE={all:[{not:{field:"stickTop",in:[!0,!1]}},{not:{field:"sticky",is:!1}}]};function DI(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 zI(e){return typeof e.stickTopTablet=="boolean"}function $I(e){return typeof e.stickTopPhone=="boolean"}function Cs(e,o={}){let t=o.intro?FG(e):e.stickTop===!0,r=e,a=ke(r[OG]),n=DI(e.stickTopDistance,a),s=BI(e.stickTopScreens),l=zI(e),d=l?e.stickTopTablet===!0:t,c=l?ke(r[_G]):a,f=l?DI(e.stickTopDistanceTablet,c):n,u=l?BI(e.stickTopScreensTablet):s,p=$I(e),h=p?e.stickTopPhone===!0:d,I=p?ke(r[AG]):c,g=p?DI(e.stickTopDistancePhone,I):f,C=p?BI(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 Jye(e,o={}){let t=Cs(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&&LG(e),s=o.track===!0&&!r&&a&&!n,l=(u,p,h,I)=>Ga({tabletClass:"",tabletVar:`${u}-tablet`,phoneClass:"",phoneVar:`${u}-phone`},p,h,I).style,d={...o.atScreenTop||WI(e.stickTopStop)===la?{[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)),...BG(t.desktop&&t.desktopScreens===0,t.tablet&&t.tabletScreens===0,t.phone&&t.phoneScreens===0,l)};return{attrs:CE(NI(!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:CE(NI(!0),"stick",n?{above:n}:{}).attrs,style:f}}function BG(e,o,t,r){let a=[[Wt.stick,TG],[Wt.trackPosition,PG]],[n,s,l]=[e,o,t].map(EG);return Object.fromEntries(a.flatMap(([d,c])=>[...e?[[d,n[c]]]:[],...Object.entries(r(d,n[c],s[c],l[c]))]))}var DG=["column","row","tabs","accordion"];var NG={column:"Stacked",row:"One row",tabs:"Tabs",accordion:"Accordion"},BE={Flex:DG,HeroGroup:["column","row"]},MG={Flex:"row",HeroGroup:"column"},HG={column:"flex-col",row:"flex-row",tabs:"flex-col",accordion:"flex-col"};function vs(e,o){return BE[e].includes(o)?o:MG[e]}function eSe(e,o){return HG[vs(e,o)]}function DE(e){return BE[e].map(o=>({label:NG[o],value:o}))}import{viewKeyAt as GI}from"efficient-easel/screen/lib/content/view-tiers";var Hf=20,WG=["solid","dashed","dotted"],Wf=["top","right","bottom","left"],aSe="sf-section-border",nSe="sf-section-border-self",UG=/^#(?:[0-9a-f]{3}|[0-9a-f]{4}|[0-9a-f]{6}|[0-9a-f]{8})$/i,zG=e=>typeof e=="number"&&Number.isFinite(e)?`${Math.min(Hf,Math.max(0,Math.round(e)))}px`:void 0,di={kind:"border",unitKey:"sectionBorderUnit"},ME=os(di);function sSe(e){let o=di.unitKey;return{desktop:e[GI(o,"desktop")],tablet:e[GI(o,"tablet")],phone:e[GI(o,"mobile")]}}var NE=(e,o)=>o==="px"?zG(e):typeof e=="number"&&Number.isFinite(e)?We(Math.max(0,e),o):void 0;function Mf(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 Wf){let d=NE(e[l],s)??NE(e.width,s);d!==void 0&&(n[`--sf-border-${l}-width${a}`]=d)}return typeof e.style=="string"&&WG.includes(e.style)&&(n[`--sf-border-style${a}`]=e.style),typeof e.color=="string"&&UG.test(e.color)&&(n[`--sf-border-color${a}`]=e.color.toLowerCase()),Object.keys(n).length?n:void 0}function jI(e){let{width:o,...t}=e;return typeof o!="number"?e:{...t,...Object.fromEntries(Wf.map(r=>[r,t[r]??o]))}}function lSe(e,o,t,r={}){let a=Mf(e,{unit:r.desktop}),n=Mf(t,{tablet:!0,unit:r.tablet}),s=Mf(t,{phone:!0,unit:r.tablet}),l=Mf(o,{phone:!0,unit:r.phone}),d=s||l?{...s,...l}:void 0;return a||n||d?{...a,...n,...d}:void 0}var Uf="sf.gapContainer",Lr={min:-32,max:64,step:2},jE={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},ks={Grid:24,Flex:24,FooterGroup:16,HeroGroup:0,Events:24,GalleryB:8,ProductGrid:2},$G=new Set(["Events","GalleryB"]);function Za(e,o,t){if(typeof o=="number"&&Number.isFinite(o)&&o>=Lr.min)return o;if(typeof o=="string"){let r=jE[e]?.[o];if(typeof r=="number")return r}return typeof t=="number"&&Number.isFinite(t)?t:ks[e]}var GG="sf-gap-overlap",jG="--sf-gap-overlap",KI="--sf-block-gap",HE="--sf-block-gap-rem",xt={min:0,max:Lr.max,step:Lr.step};function ci(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 cSe(e,o){let t=Fa(e,o,"gap",xt);if(t!==null)return{[KI]:t,[HE]:t};let r=ci(e);return r===null?{}:{[KI]:`${r}px`,[HE]:`${r/16}rem`}}var WE="--sf-block-gap-phone",UE="--sf-block-gap-phone-rem",KG="--sf-block-gap-on-phone",VG="max-view-tablet:[--sf-block-gap-on-phone:var(--sf-block-gap-phone)]",qG="max-view-wide:[&_[data-sf-line~=edge]:not([data-sf-line~=edge]_*)]:[--sf-block-gap-on-phone:var(--sf-block-gap-phone)]";function fSe(e,o){let t=Fa(e,o,"gap",xt);if(t!==null)return{[WE]:t,[UE]:t};let r=ci(e);return r===null?{}:{[WE]:`${r}px`,[UE]:`${r/16}rem`}}function pSe(e){return ci(e)===null?"":`${VG} ${qG}`}var zE="sf-gap-zone",$E="--sf-gap-len";function zf(e,o){return typeof o=="number"&&Number.isFinite(o)&&o>=Lr.min?!0:typeof o=="string"&&typeof jE[e]?.[o]=="number"}var GE="--sf-gap-len-phone",YG="--sf-gap-len-tablet",fi={min:0,max:Lr.max,step:Lr.step};function ia(e){return typeof e=="number"&&Number.isFinite(e)&&e>=fi.min}function VI(e){return e/2}function qI(e,o,t){return ia(t)&&!zf(e,o)}function YI(e,o,t,r,a){return ia(o)?o:qI(e,t,a)?a:VI(Za(e,t,r))}var XG={block:"sf-gap-overlap-block",inline:"sf-gap-overlap-inline",both:"sf-gap-overlap-both"};function uSe(e,o,t,r,a){let n={...ia(r)?{[GE]:`${r}px`}:null,...ia(a)?{[YG]:`${a}px`}:null};if(!zf(e,o)){let l=`${ks[e]}px`,d=$G.has(e)?`var(--sf-card-gap, ${l})`:l;return{className:` ${zE}`,style:{[$E]:`var(${KI}, ${d})`,[GE]:`var(${KG})`,...n}}}let s=Za(e,o);return s>=0?{className:` ${zE}`,style:{[$E]:`${s}px`,...n}}:{className:` ${GG} ${XG[t]}`,style:{gap:"0px",[jG]:`${-s/2}px`}}}import{parseHexColor as ZG}from"efficient-shell/format";var Mo="var(--section-bg)",pi="inherit";function lr(e,o){return e===pi?Mo:e===void 0?o:$f(e)}var JG=/var\(\s*--(surface-2|surface|line)\s*(?=[,)])/g;function $f(e){let o=ar(e);return o?Pr(o):e.replace(JG,"var(--site-$1")}var QG={"var(--section-bg)":"band","var(--site-surface)":"surface","var(--site-surface-2)":"surface2"};function XI(e,o,t){let r=lr(e,o);if(!r||r==="transparent")return t.background.toLowerCase();let a=r.trim(),n=a.startsWith("#")?ZG(a):null;if(n)return n.toLowerCase();let s=QG[a.replace(/\s+/g,"")];return(s?t[s]:t.background).toLowerCase()}var ZI="transparent";function KE(e,o){let t=lr(e,o);return!t||t===ZI?"none":t===Mo?"band":null}function VE(e,o,t=o){let r=n=>!n||n==="transparent",a=lr(e,o);return a===t||r(a)&&r(t)}var qE=["transparent","var(--wheel-stage)","var(--surface)","var(--surface-2)"],YE={transparent:"No fill","var(--wheel-stage)":"Image stage","var(--surface)":"Panels and cards","var(--surface-2)":"Second surface"},Ts="var(--wheel-stage)",Gf="transparent",ui="inherit";function bSe(e,o){return $f(JI(e,o))}function JI(e,o){return e===ui?Ts:e==null?o:e===!0?Ts:e===!1?Gf:e}function ySe(e){return typeof e=="string"&&e!==ui?$f(e):Ts}function SSe(e){return e!==Gf&&e!=="none"&&e!==""}function XE(e,o){return e===ui||e===!0?!0:e==null?o===Ts:!1}var Ja="inherit",jf="fixed",ZE=e=>typeof e!="number"&&e!==jf,ej="var(--sf-heading-max, 9999px)";function vSe(e,o,t,r,a){if(typeof e=="number")return We(e,a);if(e===jf)return o;let n=r?`var(--size-${r}, ${o})`:o;return t==="heading"?`min(${n}, ${ej})`:n}var QI={kind:"fontSize",unitKey:"titleSizeUnit"},eg={kind:"fontSize",unitKey:"bodySizeUnit"},oj=["desktop","mobile"],JE=[QI,eg].flatMap(e=>os(e,oj));function og(e){let o=(t,r)=>Kv(e,t,r);return{titleDesktop:o(QI,"desktop"),titleMobile:o(QI,"mobile"),bodyDesktop:o(eg,"desktop"),bodyMobile:o(eg,"mobile")}}var tj=["page","full"],QE=["full","page"],Qa={full:"Full",page:"Content"},tg="inherit",rj=e=>typeof e=="string"&&tj.includes(e),aj=e=>e===tg;function nj(e,o){return aj(e.widthMode)?{mode:"full",inherited:!0}:rj(e.widthMode)?{mode:e.widthMode,inherited:!1}:{mode:o,inherited:o==="full"}}function OSe(e){return nj(e,"page").mode==="full"}var sj={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 _Se(e){return $e(sj,e)}var io={background:"sectionBackgroundWidth",content:"sectionContentWidth",contentMax:"sectionContentMax",contentMaxUnit:"sectionContentMaxUnit"},ASe={kind:"size",unitKey:io.contentMaxUnit};function lj(e){let o=e[io.contentMaxUnit],t=ke(o),r=e[io.contentMax],a=t==="px"?fE(r):typeof r=="number"&&Number.isFinite(r)&&r>0?r:null,n=Ps(e[io.content])??(a===null?null:"content");return{background:Ps(e[io.background]),content:n,contentMax:n==="content"?a:null,contentMaxUnit:t}}function RSe(e){let o=lj(e);return o.content===null&&e.fullWidth===!0?{...o,content:"full"}:o}function LSe(e){return e.background!==null||e.content!==null}var FSe=e=>({[io.background]:e}),BSe=e=>e==="full"?{[io.content]:e,[io.contentMax]:void 0,[io.contentMaxUnit]:void 0}:{[io.content]:e},DSe=e=>({[io.content]:"content",[io.contentMax]:e}),NSe=e=>e==="background"?{[io.background]:void 0}:{[io.content]:void 0,[io.contentMax]:void 0,[io.contentMaxUnit]:void 0},eO="siteWidths",ij=e=>e==="full"||e==="content";function Ps(e){return ij(e)?e:null}function oO(e,o){return{[eO]:{background:Ps(e),content:Ps(o)}}}function MSe(e){let o=e.editor?.metadata?.[eO];return{background:Ps(o?.background),content:Ps(o?.content)}}import{useEaselSession as _K}from"efficient-easel/screen/lib/session-context";import{BOX_GAP as AK,describedAs as da,group as zt,iconOf as _s,sharedStyleKinds as yi}from"efficient-easel/screen/lib/document/box-fields";import{VIEW_KEY_ACCESS as LO,onDesktopWords as tn,phoneTwinFields as hg,saidAlignmentGrid as RK,useLengthUnit as LK}from"efficient-easel/screen/lib/document/box-fields";import{createElement as It}from"react";import{SettingsDefaultReset as dj,SettingsField as cj}from"efficient-easel/panel";import{boxFieldBuilders as fj,describedAs as pj,iconOf as uj,onDesktopWords as mj}from"efficient-easel/screen/lib/document/box-fields";import{LENGTH_KIND_UNITS as hj}from"efficient-easel/screen/lib/content/length-units";import{IconPicker as xj,Tooltip as Ij,useShellStrings as gj}from"efficient-shell/ui";import{RotateIcon as bj}from"efficient-easel/icons";var tO=e=>i(e),en=hj,wo=fj(tO,{lengthUnits:en}),Oo=wo.slider,st=wo.select,mi=wo.Segmented,Es=wo.segmented,qSe=wo.alignmentField,YSe=wo.alignmentFields,XSe=wo.blockAlignmentField,ZSe=wo.blockAlignmentFields,JSe=wo.boxJustifyField,QSe=wo.boxAlignField,ewe=wo.boxWrapField,rO=wo.directionField,Kf=wo.gapField,owe=wo.placementField,twe=wo.PlacementGridView,rwe=wo.positionFields,Vf=wo.sidesPaddingFields,hi=wo.lengthUnitFields;function aO(e,o){return Oo("Angle",It(bj),rc.min,rc.max,rc.step,e,"\xB0",o)}var rg=Symbol("efficient-web-builder.picture-picker-row"),yj={width:"3.5rem",height:"2.75rem",words:!0};function ag({value:e}){return gj().iconNames[e]??e}function ng(e,o,t){return It(Ij,{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 Sj(e){let o=t=>t.label===void 0?It(ag,{value:t.value}):i(t.label);return e.map(t=>({value:t.value,...t.label===void 0?{}:{label:i(t.hint??t.label)},icon:ng(t.picture,o(t),t.hint===void 0?o(t):i(t.hint))}))}function nO(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 sg(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",[rg]:!0,...pj({},{type:"radio",label:e,options:l}),options:l,render:d=>{let{value:c,onChange:f,field:u}=d,p=u?.options,h=Sj(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(cj,{label:i(e),icon:uj(o),action:I?It(dj,{words:de()?.panel,label:i(e),changed:T,detail:y?.label!==void 0?mj(tO,i(y.label),d.followsView):void 0,disabled:d.readOnly===!0,onReset:()=>f(void 0)}):void 0},It(xj,{label:i(e),value:w,options:h,onChange:f,columns:a.columns,cell:a.cell??yj,tooltips:!1,disabled:d.readOnly===!0}))}}}import{VIEW_ABOVE as dg}from"efficient-easel/screen/lib/content/length-units";import{jsx as S,jsxs as Ie}from"react/jsx-runtime";import{NoSymbolIcon as _j}from"efficient-easel/icons";import{useId as Aj}from"react";var wj="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"}],lg={"stripes-fine":{ink:4,period:12},"stripes-medium":{ink:8,period:18},"stripes-bold":{ink:14,period:28}},swe=28,vj="-45deg",kj="color-mix(in oklab, var(--accent) 50%, var(--bg))";function Tj(e){return e!=="line"&&e!=="none"}var Pj={sm:24,md:48,lg:80},Ej="md",Oj=Object.keys(Pj);function lwe(e){return co(Oj,Ej,e)}function iwe(e){return co(Cj,wj,e)}function dwe(e){if(!Tj(e))return null;let{ink:o,period:t}=lg[e];return`repeating-linear-gradient(${vj}, ${kj} 0 ${o}px, transparent ${o}px ${t}px)`}var cwe={kind:"border",unitKey:"thicknessUnit"},fwe={kind:"size",base:"%",unitKey:"lengthPctUnit"};var qf=44,Yf=28;function pe({children:e}){return S("svg",{width:qf,height:Yf,viewBox:`0 0 ${qf} ${Yf}`,"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 ig(e){let o=20/ms,t=5,r=1,a=[],n=0,s=0,l=0;for(let[f,u]of e)n+f>ms&&(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=(Yf-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 gwe={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 bwe(e){if(e==="none")return S("span",{style:{display:"flex",width:qf,height:Yf,alignItems:"center",justifyContent:"center"},children:S(_j,{size:20})});if(e==="line")return S(pe,{children:S(_o,{x1:4,y1:14,x2:40,y2:14})});let{ink:o,period:t}=lg[e],r=.4,a=[];for(let n=-12;n<qf;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(Rj,{children:a})}function Rj({children:e}){let o=`sf-div-${Aj().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 Xf=({x:e,y:o,w:t,h:r})=>S("rect",{x:e,y:o,width:t,height:r,rx:2,stroke:"none",opacity:.3}),ywe={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})]})},Swe={card:Ie(pe,{children:[S(Ce,{x:10,y:3,w:24,h:22}),S(Xf,{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(Xf,{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})]})},wwe={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})]})},Cwe={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})]})},vwe={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})]})},kwe={overlay:Ie(pe,{children:[S(Xf,{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(Xf,{x:4,y:13,w:36,h:12}),S(Ce,{x:4,y:13,w:36,h:12})]})},Twe={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})]})},Pwe={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})]})},Ewe={"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})]})},sO={width:"5.75rem",height:"3.75rem",words:!0},Owe={width:"8.5rem",height:"3.75rem",words:!0},_we={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 Cve,SCALAR_TEXT_CONTROLS as vve}from"efficient-easel/draw";function rn(e,o){return i("{value} from {from}",{value:e,from:o})}function FK(){let{blockGap:e}=he();return e===null?i("this container's own spacing"):rn(`${e}px`,i("Styles"))}function BK({inherited:e,onReset:o,label:t}){return k(Ho,{words:de()?.panel,label:i(t),changed:!e,detail:FK(),onReset:o})}function DK(e){return Kf({...AK,builtIn:ks[e],resolve:(o,t)=>Za(e,o,t?.siteGap),action:(o,t)=>k(BK,{inherited:!zf(e,o),onReset:()=>t(void 0),label:"Gap"}),mark:{[Uf]:e}})}function NK(e){return oo(it("mobile",{[Uf]:e,type:"custom",render:o=>k(WK,{container:e,...o})}),FO)}function MK(e){return oo(it("tablet",{[Uf]:e,type:"custom",render:o=>k(HK,{container:e,...o})}),FO)}var FO={not:{field:"gap",in:Array.from({length:-Lr.min},(e,o)=>Lr.min+o)}};function hve(e){return{gap:it("desktop",DK(e)),[wg("gap")]:MK(e),[Os("gap")]:NK(e)}}function HK({container:e,...o}){let[t]=Ut("gap"),{siteGap:r}=o.field??{},a=Math.max(fi.min,Za(e,t,r));return Kf({...fi,builtIn:a,resolve:n=>ia(n)?n:a,action:(n,s)=>k(Ho,{words:de()?.panel,label:i("Gap"),changed:ia(n),detail:tn(l=>i(l),`${a}px`),onReset:()=>s(void 0)})}).render(o)}function WK({container:e,...o}){let[t]=Ut("gap"),{siteGap:r,siteGapPhone:a}=o.field??{},n=YI(e,void 0,t,r,a);return Kf({...fi,builtIn:n,resolve:s=>YI(e,s,t,r,a),action:(s,l)=>k(Ho,{words:de()?.panel,label:i("Gap"),changed:ia(s),detail:rn(`${n}px`,qI(e,t,a)?i("Styles"):i("Desktop")),onReset:()=>l(void 0)})}).render(o)}function xve(e){return rO({offered:DE(e),fallback:vs(e,void 0),resolve:o=>vs(e,o)})}function Ive(e,o){return Sk(o?vk(e,o):[],o)}function UK({inherited:e,onReset:o,label:t}){return k(Ho,{words:de()?.panel,label:i(t),changed:!e,detail:rn(i("Full"),i("the page")),onReset:o})}function an({value:e,onChange:o,label:t,placeholder:r,hint:a,multiline:n,hideable:s=!0,markup:l=!0}){let{text:d,hidden:c}=ca(e),f=xi(null),u=xi(null),p=T=>o(s?{text:T,hidden:c}:T),h=()=>o({text:d,hidden:!c}),I=s&&c,g=yO(),C=a?KK(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(aK,{}),htmlFor:g,className:I?"is-hidden":void 0,hint:C,action:s?k(Sg,{content:w,children:k(AO,{"aria-pressed":c,"aria-label":w,onClick:h,children:c?k(fO,{name:"eye-off",size:14}):k(fO,{name:"eye",size:14})})}):void 0,children:Fr("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 gve(e,o){return{...e,[Wj]:o}}function bve(e){let o=e[Br];if(!o)throw new Error("withOffPage: the field holds no authored text");return{...e,[Br]:{...o,offPage:!0}}}function tp(e){return!e||typeof e!="object"?!1:e[Br]?.offPage===!0}function yve(e){if(!e[Br])throw new Error("withPanelOnly: the field holds no authored text");return{...e,[eI]:!0}}function BO(e){return ys(e)}function Sve(e){let o=e[Br];if(!o)throw new Error("withIdentifier: the field holds no authored text");return{...e,[Br]:{...o,identifier:!0}}}function kve(e,o){if(!e[Br])throw new Error("inOwnBox: the field holds no authored text");let{[CK]:t,...r}=e;return{...r,[Qx]:!0,render:o}}var zK=new Set(kK),ep={type:"radio",options:[{value:!0},{value:!1}]},DO={text:{type:"object",objectFields:{text:{type:"text"},hidden:ep}},textarea:{type:"object",objectFields:{text:{type:"textarea"},hidden:ep}},plainText:{type:"text"},copyText:{type:"text"},plainTextarea:{type:"textarea"},textList:{type:"array",arrayFields:{text:{type:"text"}}}},nn=(e,o)=>{let t=da({...o,[Br]:e},{...DO[e.control],label:e.label});if(!zK.has(e.control))return t;let r=o.render;return{...RO(t,"authored-copy"),render:a=>k(s0,{name:a.name,children:r(a)})}},Tve="Everything else on this block comes from the linked post. Unlink it to edit by hand.",$K={field:"source.slug",set:!0},Pve={not:$K},GK="Select a word, then press the highlighter.",jK=new Set([GK]),KK=e=>jK.has(e);function Eve(e,o,t){return nn({control:"text",label:e,placeholder:o,hint:t},{type:"custom",render:({value:r,onChange:a})=>k(an,{value:r,onChange:a,label:e,placeholder:o,hint:t})})}function Ove(e,o,t){return nn({control:"textarea",label:e,placeholder:o,hint:t},{type:"custom",render:({value:r,onChange:a})=>k(an,{value:r,onChange:a,label:e,placeholder:o,hint:t,multiline:!0})})}function _ve(e,o,t){return nn({control:"plainText",label:e,placeholder:o,hint:t},{type:"custom",render:({value:r,onChange:a})=>k(an,{value:r,onChange:a,label:e,placeholder:o,hint:t,hideable:!1,markup:!1})})}function Ave(e,o,t){return nn({control:"copyText",label:e,placeholder:o,hint:t},{type:"custom",render:({value:r,onChange:a})=>k(an,{value:r,onChange:a,label:e,placeholder:o,hint:t,hideable:!1})})}function Rve(e){return{type:"custom",[Mj]:{label:e},...da({},{type:"text",label:e}),render:({value:o,onChange:t})=>k(nE,{value:Nj(o),onChange:t,label:e})}}function Lve(e,o,t){return nn({control:"plainTextarea",label:e,placeholder:o,hint:t},{type:"custom",render:({value:r,onChange:a})=>k(an,{value:r,onChange:a,label:e,placeholder:o,hint:t,multiline:!0,hideable:!1})})}var NO={Design:Uj,Animation:$j};function Fve(e,o){return{type:"custom",render:()=>k(VK,{text:e,values:o})}}function VK({text:e,values:o}){return k("p",{className:"sf-note",children:i(e,o)})}function Bve(e){return fa(e)!==null&&e?.tabs!==void 0}var pO=new Map;function rp(e,o){let t=`${e}\0${o?o.join(""):""}`,r=pO.get(t)??{type:"custom",tabs:o,[SO]:{label:e,level:1},bucket:e,marker:!0,render:()=>k(Dr,{})};return pO.set(t,r),r}var uO=new Map;function vg(e){let o=uO.get(e)??{type:"custom",[SO]:{label:e,level:1},designGroup:e,marker:!0,...e==="Content"?{}:{fold:e},render:()=>k(Dr,{})};return uO.set(e,o),o}function qK(e){let o=e;return o?.marker===!0&&typeof o.fold=="string"?o.fold:null}function MO(e,o){return qK(e)===o?e:{...e,marker:!0,fold:o,render:()=>k(Dr,{})}}function HO(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(Dr,{})}}function kg({title:e,children:o}){let[t,r]=Ii(()=>!cg.has(e));return k(lK,{title:e,open:t,onToggle:a=>{r(a),a?cg.delete(e):cg.add(e)},children:o})}var cg=new Set;function YK({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 Fr("div",{className:"sf-swatches",children:[e.map(l=>{let d=r?.[l]?i(r[l]):l;return k(Sg,{content:d,children:k(hK,{color:l,selected:o.toLowerCase()===l.toLowerCase(),onClick:()=>t(l),"aria-label":d})},l)}),k("span",{className:"sf-swatch-hex",children:s})]})}function Dve(e,o,t=!1){return{type:"custom",render:({value:r,onChange:a})=>k(XK,{label:e,builtIn:o,followsBand:t,value:r,onChange:a})}}function XK({label:e,builtIn:o,followsBand:t,value:r,onChange:a}){let n=typeof r=="string"?r:void 0,{colors:s,n:l}=Ag(),d={background:s.background,surface:s.surface,surface2:gc(s),band:ok(s)},c=t?Mo:o,f=VE(n,o,c),u=XI(void 0,c,d),p=t?pi:void 0,h=c===Mo?i("the theme's section background"):i("Theme {n} background",{n:l}),I=ZK(n,o,s,l,d,a),g=rn(u.toUpperCase(),h),C=ar(n),w=C?hs(C,s,l):null;return w?k(Yo,{label:i(e),icon:k(lO,{}),value:w.hex,caption:w.words,onChange:a,changed:!0,onReset:()=>a(p),resetTo:g,choices:I}):k(Zl,{label:i(e),icon:k(lO,{}),value:f?"":XI(n,o,d),inherited:u,resetTo:g,onChange:a,onReset:()=>a(p),choices:I})}function ZK(e,o,t,r,a,n){let s=KE(e,o);return[{label:i("No fill"),color:"",selected:s==="none",onPick:()=>n(ZI)},{label:`${i("Section band")} \xB7 ${a.band.toUpperCase()}`,color:a.band,selected:s==="band",onPick:()=>n(Mo)},..._g(ar(e)??"",t,r,n)]}function JK(e,o){return{type:"custom",render:({value:t,onChange:r})=>{let a=t,n=XE(a,o);return k(mo,{label:i(e),icon:k(ug,{}),changed:!n,action:k(Ho,{words:de()?.panel,label:i(e),changed:!n,detail:i("the theme's image stage"),onReset:()=>r(ui)}),children:YK({swatches:qE,current:n?Ts:JI(a,o),onPick:r,names:YE})})}}}function ap(e=t=>t,o){return yi({_gSectionTheme:zt(gk),sectionAccent:{type:"custom",render:({value:t,onChange:r})=>k(R0,{value:e(t),onChange:r,followLabel:o})}})}function np(e){let o=Po(),t=Tr(e?.view),r=s=>Cg(e.valueKey,s),a=e.numbersIn??(s=>q(o[r(s)])!==void 0),n=e.followsView??u8(t,a);return LK({props:{value:void 0,onChange:()=>{},field:{}},row:e.valueKey?e.row:void 0,table:en,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(wK,{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 QK(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?_s(c):void 0,value:I?d||n===void 0?void 0:i(n):`${h}${f}`,changed:!I,action:d?xg(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 gi="Corners",e8={kind:"radius"};function Tg(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(gi),icon:k(CO,{}),changed:n,action:xg(e.mark,{changed:n,onReset:()=>r(null)}),hint:e.hint,children:k(o8,{tier:e,px:a,name:o.name,onRadius:r})})}}}function Ut(e){let o=on();return[o?.values?.[e],t=>o?.onChange(e,t)]}function WO(){return RO({type:"custom",render:()=>k(vK,{})},"always")}function aa(){let e=on();return o=>e?.onChangeMany(o)}function o8({tier:e,px:o,name:t,onRadius:r}){let a=e.useFollowed(),[n,s]=Ut(e.sidesKey),l=aa(),d=np({row:e.row??e8,label:gi,grid:{min:Wo,max:Yr,step:e.step??1},valueKey:t??"",view:"desktop"}),c=tr(n)??[...Gc];return k(xK,{label:i(gi),value:c,corners:HT,onChange:f=>{let u=tr(f)??[];s(u.length===Gc.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??Yr,radiusStep:d?.grid.step??e.step??1,radiusPlaceholder:d&&d.unit!=="px"?"\u2013":String(a),...d?{radiusUnit:d.unit,units:d.units}:{}})}function UO(e,o){return hi(e,o)}function zO(){return WO()}function t8({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"):rn(a,i("Styles")),onReset:t})}function r8(){let{cornerRadiusPx:e}=he();return typeof e=="number"?e:Wo}function a8(){return Tg({sidesKey:"sectionCornerSides",row:zl,useFollowed:r8,mark:k(t8,{label:gi}),hint:n8})}var n8="Follows Styles \u25B8 Basics \u25B8 Corners until you set a number here.";function sp(){return yi({_gShape:zt("Shape"),sectionCorners:a8(),...UO(zl,"sectionCorners"),sectionCornerSides:zO(),...Er("sectionBorder",p8),...hi(di,"sectionBorder",{tablet:!0,phone:!0})})}var s8=()=>({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 l8(e){let o=Object.fromEntries(Object.entries(e).filter(([,t])=>t!=null&&t!==""));return Object.keys(o).length?o:void 0}function i8(){let e;try{let o=xo(he().theme);e=o.themes[o.selected]?.line}catch{e=void 0}return e||Xv.line}function d8({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]=Ii(()=>a?pK(d,s):!1),u=s8(),p=h=>l8(a&&n?h:{width:h.width,color:h.color,...n?{style:h.style}:{}});return k(mo,{label:i("Border"),icon:k(Gj,{}),action:a?k(cK,{each:c,label:i("Each side"),onChange:f}):void 0,children:k(dK,{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??Hf,...l?{step:l.grid.step,units:l.units}:{}})})}function c8({value:e,onChange:o,view:t}){let[r]=Ut("sectionBorder"),[a]=Ut(wg("sectionBorder")),n=i8(),s=p=>p&&typeof p=="object"?p:{},l=t==="phone"?{...jI(s(r)),...jI(s(a))}:t==="tablet"?s(r):{},d=Po(),c=aa(),f=we("sectionBorder",t),u=np({row:di,label:"Border",grid:{min:0,max:Hf,step:1},valueKey:"sectionBorder",view:t,numbersIn:p=>fg(d[Cg("sectionBorder",p)]),convertTo:p=>{let h=s(d[f]);return fg(h)?{[f]:f8(h,p)}:{}}});return k(d8,{value:e,length:u,onChange:u?p=>c({[f]:p,...u.unitPatch(!fg(p))}):o,placeholder:{sides:fK(l),style:l.style??"solid",color:l.color||n},presets:[n],above:l})}var $O=["width",...Wf];function fg(e){if(!e||typeof e!="object")return!1;let o=e;return $O.some(t=>q(o[t])!==void 0)}function f8(e,o){let t={...e};for(let r of $O){let a=q(t[r]);a!==void 0&&(t[r]=o(a))}return t}function p8(e){return{type:"custom",render:({value:o,onChange:t})=>k(c8,{value:o,onChange:t,view:e})}}function u8(e,o){let t=dg[e];for(;t&&dg[t]!==null&&!o(t);)t=dg[t];return t??e}function Nve(e){return{type:"custom",render:()=>k(m8,{partKey:e})}}function m8({partKey:e}){let[o]=Ut("id"),[t]=Ut("_partStyles"),{textStyles:r}=he(),a=OK(),n=null;try{n=TK().select}catch{n=null}let s=t&&typeof t=="object"?t[e]:void 0,l=Array.isArray(r)?r:null;return k(sK,{name:i("Text"),preview:wE(s,l,{noStyle:i("No style"),styleName:a.textStyles.styleName,cases:(a.copy.panel??EK.copy.panel).cases}),onOpen:()=>{n&&typeof o=="string"&&n(PK(o,e))}})}function GO(e){let{cornerRadiusPx:o}=he(),t=typeof o=="number"?o:e,r=null;try{let{appState:n,selectedItem:s}=op(d=>d),l=s?.props?.id?String(s.props.id):void 0;r=l?zP(n?.data,l)?.props??null:null}catch{r=null}if(!r)return t;let a=r.sectionCorners;return Sx(a)?a:t}function h8({label:e,changed:o=!1,onReset:t=()=>{}}){let r=GO(Wo);return k(Ho,{words:de()?.panel,label:i(e),changed:o,detail:rn(`${r}px`,i("the section")),onReset:t})}function x8(){return k(Dr,{children:i("Follows the section's Corners until you set a number here.")})}function I8(){return Tg({sidesKey:"cardCornerSides",row:$l,useFollowed:()=>GO(Wo),mark:k(h8,{label:gi}),hint:k(x8,{})})}function g8(){return{type:"custom",render:()=>k(KT,{})}}function Mve(){return{_gShape:zt("Shape"),cardCorners:I8(),...UO($l,"cardCorners"),cardCornerSides:zO(),cardCornersApplyAll:g8()}}function b8(){return da({type:"custom",[rg]:!0,render:e=>k(S8,{...e})},{type:"select",label:Ra,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 y8(e,o){let t=Eh(e);if(t!=="custom")return i(Ph.find(a=>a.value===t)?.label??"");let r=_O(dc(e,o),o);return r?[...r,100-r.reduce((a,n)=>a+n,0)].join(" / "):i("Custom")}function S8(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=Eh(l),c=a>=2&&a<=dO,f=()=>[...bK[a]??[]],u=xi(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:dO}),g=s&&(n||o!=="content"),C=SK().widths.hint(a,gK);return k(mo,{label:i(Ra),icon:k(Ig,{}),changed:g,hint:d!=="custom"?void 0:c?C:I,action:k(Ho,{words:de()?.panel,label:i(Ra),changed:g,disabled:e.readOnly===!0,detail:n?tn(w=>i(w),y8(e.follows,a),e.followsView):i("Fit content"),onReset:()=>t(void 0)}),children:Fr("div",{className:"sf-share-row",children:[k("div",{className:"sf-share-pick",children:k(OO,{label:i(Ra),value:d,options:Ph.map(w=>({value:w.value,label:w.value==="custom"&&!c?I:i(w.label),icon:ng(k("span",{className:"sf-gallery-pic sf-share-pic",children:jO(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:KO,tooltips:!1,disabled:e.readOnly===!0})}),d==="custom"&&c?k("div",{onFocus:()=>{u.current={value:o,shares:_O(dc(l,a),a)}},onBlur:()=>{u.current=null},children:k(yK,{label:i(Ra),count:a,value:dc(l,a),onChange:p,readOnly:e.readOnly===!0})}):null]})})}function jO(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 Hve(){return st(Iv,k(Zj,{}),Ah,Ah[0].value)}function Wve(){return it("mobile",sg(Ra,k(Ig,{}),mv.map(e=>({label:e.label,value:e.value,picture:k("span",{className:"sf-gallery-pic sf-share-pic",children:jO(e.weights).map((o,t)=>k("i",{style:{gridColumn:`span ${o}`}},t))})})),hv,{columns:2,cell:KO}))}var KO={width:"5.75rem",height:"3.25rem",words:!0};function Uve(){return hg("share",b8(),LO)[wg("share")]}function w8(){return it("mobile",Oo(Oh,k(wO,{}),cc,uv,1,cc,"",{clear:{phoneFollows:!1,hint:cc}}))}var mO={read:e=>e.phoneRow,write:(e,o,t)=>({phoneRow:t}),fieldKey:()=>"phoneRow",ownField:!0};function zve(){let e=Oo(Oh,k(wO,{}),_h,xv,1,_h,"",{clear:{emptyLabel:"Auto"}}),o=hg("columns",e,{...mO,tablet:LO.tablet}),t=hg("columns",e,mO,{phoneRow:w8()});return{...o,phoneRow:t.phoneRow}}function $ve(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=aa(),p=Tr(c?.view),h=np({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(Hx,{noun:n}),action:k(Ho,{words:de()?.panel,label:i(e),changed:!ZE(s),detail:i("the Text style in Styles"),onReset:()=>I(Ja),defaultAction:{onPress:()=>I(jf),title:i("Keep this section's own built-in size"),icon:k(jj,{})}}),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 hO(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 Gve(){return{_gCellWidth:zt("Cell size"),gridSpan:st("Positions",k(Ig,{}),hO(Xc,"position","positions"),""),gridRowSpan:st("Rows tall",k(gg,{}),hO(Nx,"row","rows"),"")}}function Po(){let e=null,o=null;try{e=bO(Pg),o=op(t=>t).selectedItem}catch{o=null}return e??o?.props??{}}var Pg=Fj(null);function v8({min:e,max:o,step:t,px:r,label:a,onChange:n,desktopKey:s,fallback:l}){let d=Po()[s],c=hf(void 0,d,l);return k(Dr,{children:Zo({min:e,max:o,step:t,value:hf(r,d,l),readout:!1,ariaLabel:a,notch:c,onChange:n})})}function k8({label:e,desktopKey:o,fallback:t,unit:r="px",changed:a=!1,onReset:n=()=>{}}){let s=Po()[o],l=hf(void 0,s,t);return k(Ho,{words:de()?.panel,label:i(e),changed:a,detail:tn(d=>i(d),`${l}${r}`),onReset:n})}function T8(e){return QK(e.label,{icon:e.icon,min:e.min,max:e.max,step:e.step,unit:e.unit,unsetLabel:"Follows Desktop",unsetMark:k(k8,{label:e.label,desktopKey:e.desktopKey,fallback:e.fallback,unit:e.unit}),restTrack:o=>k(v8,{...o,desktopKey:e.desktopKey,fallback:e.fallback})})}var P8={Top:"Padding top",Bottom:"Padding bottom",Left:"Padding left",Right:"Padding right"},E8={Top:bg,Bottom:kO,Left:TO,Right:PO},O8=e=>{let o=E8[e];return k(o,{})};function jve(e={}){let o=e.keys?.top??"sectionPaddingTop",t=e.keys?.bottom??"sectionPaddingBottom",r=e.group!==!1,a=C=>P8[C],n=C=>Oo(a("Top"),k(bg,{}),mt.min,mt.max,mt.step,C,"px"),s=(C,w,T,y=mt)=>it("mobile",T8({label:a(C),icon:O8(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 yi({...r?{_gSpacing:zt("Padding")}:{},[o]:g(n(l)),...I?{[Os(o)]:s("Top",o,l)}:{},...e.only==="top"?{}:{[t]:g(Oo(a("Bottom"),k(kO,{}),mt.min,mt.max,mt.step,d,"px")),...I?{[Os(t)]:s("Bottom",t,d)}:{}},...e.sides?{[c]:g(Oo(a("Left"),k(TO,{}),u.min,u.max,u.step,p,"px")),...I?{[Os(c)]:s("Left",c,h,u)}:{},[f]:g(Oo(a("Right"),k(PO,{}),u.min,u.max,u.step,p,"px")),...I?{[Os(f)]:s("Right",f,h,u)}:{}}:{}})}function Kve(e,o){let t=Object.fromEntries(Object.entries(o).map(([n,s])=>[n,n in e&&fa(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 lp(e,o=QE,t=!0){let r=o.map(a=>({label:Qa[a],value:a}));return yi({...t?{_gWidth:zt(Jf)}:{},widthMode:{type:"custom",render:({onChange:a,field:n})=>k(mo,{label:i(Jf),icon:k(nK,{}),action:t?k(UK,{inherited:n?.inherited??!1,onReset:()=>a(tg),label:Jf}):void 0,children:mi({options:r,value:n?.currentValue||e,onChange:a,ariaLabel:Jf})})}})}function ip({fill:e=!1}={}){let o=(a,n)=>({type:"custom",render:({value:s,onChange:l})=>k(_8,{value:s,onChange:l,view:a,badge:n,fill:e})}),t=()=>mg("sectionHeightMode"),r=()=>mg("sectionHeightMode");return yi({_gHeight:zt(ls),...Er("sectionHeightMode",a=>a==="desktop"?o(a):o(a,n=>k(F8,{view:a,onClear:()=>n(void 0)}))),...Er("sectionHeightValue",t),...Er("sectionHeightUnit",r)})}function _8({value:e,onChange:o,view:t,badge:r,fill:a=!1}){let n=Po(),{mode:s,number:l,unit:d}=A8(t,n,e);return k(mo,{label:ls,icon:_s(k(gg,{})),action:r?r(o):void 0,children:Fr("div",{className:"es-width-stack",children:[mi({options:[{label:"Auto",value:"auto"},{label:"Fixed",value:"fixed"},{label:"Screen",value:"screen"},...a?[{label:"Fill",value:"fill"}]:[]],value:s,onChange:o,ariaLabel:ls}),l?k(L8,{view:t,mode:s,menu:d}):null]})})}function VO(e,o){return e==="phone"&&kc(o)?Dk(o):Fk(o)}function dp(e,o){return e==="desktop"||(e==="tablet"?kc(o):Bk(o))?null:VO(e,o)}function A8(e,o,t){let r=(a=>Ak.includes(a))(t)?t:dp(e,o)?.mode??"auto";return{mode:r,number:r!=="auto"&&r!=="fill",unit:r==="fixed"}}function R8(e,o,t,r){let a=dp(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 xO(e,o,t){let r=on(),a=dp(e,Po());return!r||!a?{followed:null,write:t}:{followed:a,write:n=>r.onChangeMany(s=>{let l=R8(e,s,o,n);return l===null?{[we(o,e)]:n}:Object.keys(l).length?l:null})}}function L8({view:e,mode:o,menu:t}){let r=on(),a=Po(),n=we("sectionHeightValue",e),s=we("sectionHeightUnit",e),l=C=>w=>r?.onChangeMany(()=>({[C]:w})),{followed:d,write:c}=xO(e,"sectionHeightValue",l(n)),{write:f}=xO(e,"sectionHeightUnit",l(s)),u=o==="screen"?"%":a[s],p=(d?d.unit:u)==="%"?"%":"px",h=p==="%"?Lk:Rk,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:ls,onChange:c})}function F8({view:e,onClear:o}){let t=Po(),r=dp(e,t)===null,a=e==="phone"&&kc(t),n=VO(e,t),s=tn(l=>i(l),n.mode==="auto"?i("Auto"):`${n.value}${n.unit}`,a?"tablet":"desktop");return k(Ho,{words:de()?.panel,label:i(ls),changed:r,detail:s,onReset:o})}function Eg(e={}){let o=e.intro===!0,t=n=>({type:"custom",render:({value:s,onChange:l,id:d,name:c})=>k(U8,{value:s,onChange:l,labelId:`${d??c??"stickTop"}-label`,view:n,intro:o})}),r=n=>({type:"custom",render:({value:s,onChange:l})=>k(M8,{value:s,onChange:l,view:n,intro:o})}),a=n=>({type:"custom",render:({value:s,onChange:l})=>k(H8,{value:s,onChange:l,view:n,intro:o})});return{_gStick:zt(kE,{dot:o?N8:UI}),...Er("stickTop",t),...Er("stickTopDistance",r),...hi(si,"stickTopDistance",{tablet:!0,phone:!0}),...e.screens?Er(Rr,a):{},...o?{}:{[li]:B8()},...o||e.above===!1?{}:{[ii]:D8()}}}function B8(){let e=st(TE,k(bg,{}),PE,EE);return it("desktop",{...e,render:o=>{let t=e.render({...o,value:WI(o.value),onChange:r=>o.onChange(_E(r))});return xg(t,{hint:i(OE)})}})}function D8(){let e=YO(AE,!1,k(EO,{}),RE);return it("desktop",{...e,render:o=>e.render({...o,onChange:t=>o.onChange(t===!0?!0:void 0)})})}var N8={any:[UI,FE]};function qO(e,o,t,r,a){let n=on(),s=Po(),l=e==="desktop"||bi(e,s)?null:Og(e,Cs(s,{intro:r}));return{followed:l,write:(l||a)&&n?d=>n.onChangeMany(c=>{let f=W8(e,c,d,o,r),u=f===null?{[we(o,e)]:d}:f;return Object.keys(u).length?{...u,...a?.(d)??{}}:null}):t}}function M8({value:e,onChange:o,view:t,intro:r}){let a=Po(),n=Cs(a,{intro:r}),s=f=>{let u=Sc(f);return u==="desktop"||bi(u,a)},l=np({row:si,label:"Distance from top",grid:{min:ht.min,max:ht.max,step:ht.step},valueKey:"stickTopDistance",view:t,numbersIn:f=>s(f)&&q(a[Cg("stickTopDistance",f)])!==void 0,followsView:t==="phone"&&n.ownTablet?"tablet":"desktop"}),{followed:d,write:c}=qO(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 H8({value:e,onChange:o,view:t,intro:r}){let{followed:a,write:n}=qO(t,Rr,o,r);return k(mo,{label:i(HI),icon:_s(k(gg,{})),children:Zo({min:Zf.min,max:Zf.max,step:Zf.step,value:a?null:q(e)??Zf.default,...a?{placeholder:a.screens}:{},ariaLabel:i(HI),onChange:n})})}function bi(e,o){return e==="tablet"?zI(o):$I(o)}function Og(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 W8(e,o,t,r="stickTopDistance",a=!1){if(e==="desktop"||bi(e,o))return null;if(t===void 0)return{};let n=Og(e,Cs(o,{intro:a})),s=e==="phone"&&bi("tablet",o)?f=>we(f,"tablet"):f=>f,l=(f,u)=>o[s(f)]==null?{}:{[we(f,e)]:u},d=si.unitKey,c=o[s(d)]==null?{}:{[we(d,e)]:n.unit};return{[we("stickTop",e)]:!0,...l("stickTopDistance",n.distance),...c,...l(Rr,n.screens),[we(r,e)]:t}}function U8({value:e,onChange:o,labelId:t,view:r,intro:a}){let n=Po(),s=Cs(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:Og(r,s),f=c?.on?We(c.distance,c.unit):i("Off");return k(mo,{label:i(MI),labelId:t,icon:_s(k(EO,{})),action:Fr(Dr,{children:[r!=="desktop"?k(Ho,{words:de()?.panel,label:i(MI),changed:bi(r,n),detail:tn(u=>i(u),f,d?"tablet":"desktop"),onReset:()=>o(void 0)}):null,k(yg,{checked:l,onChange:o,ariaLabelledBy:t})]})})}var IO="e.g. about";function cp(){return{_gAnchor:zt("Anchor"),anchor:nn({control:"plainText",label:"Name",placeholder:IO},{type:"custom",render:({value:e,onChange:o})=>k(TP,{value:e,onChange:o,nameBox:(t,r)=>k(an,{value:t,onChange:r,label:"Name",placeholder:IO,hideable:!1,markup:!1})})})}}function Vve(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(IK,{id:l,value:Number.isFinite(d)?new Date(d):null,onChange:c=>a(c?c.toISOString():"")})})}}}function YO(e,o,t,r){return{type:"custom",...da({},{...ep,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(yg,{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?Fr(Dr,{children:[k(Ho,{words:de()?.panel,label:i(e),changed:u,detail:f.followsNoView?i(p?"On":"Off"):tn(w=>i(w),i(p?"On":"Off"),f.followsView),disabled:g,onReset:()=>s(void 0)}),C]}):C})}}}function XO(){return{type:"custom",render:({value:e,onChange:o,id:t,name:r})=>{let a=`${String(t??r??"pageBackground")}-colour`;return k(z8,{label:"Background",icon:k(oK,{}),id:a,value:e,shown:zx(e),onChange:o})}}}function qve(e,o,t){return{type:"custom",render:({value:r,onChange:a})=>k(Yo,{label:i(e),icon:t,value:r||o,onChange:a})}}function z8({label:e,icon:o,id:t,value:r,shown:a,onChange:n}){let{colors:s,n:l}=Ag(),d=ar(r),c=d?hs(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:_g(d??"",s,l,n)})}function Yve(){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 _g(e,o,t,r){let a=df(e);return AP(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}=Ag(),n=r.background,s=rn(n.toUpperCase(),i("Theme {n} background",{n:a})),[l,d]=Ut(UP),[c]=Ut(jx),f=typeof c=="string"&&c.trim()!=="",u=sf(l),p=b=>d(sf(b)||void 0),h=df(e),I=h?hs(h,r,a):null,g=_g(e,r,a,o),C=t?()=>o(void 0):()=>o(""),w=n,T=s;if(t){let b=df(t.follows),P=lf(t.follows),H=b?hs(b,r,a):P?{hex:P,words:P.toUpperCase()}:null;w=H?.hex??n,T=tn(E=>i(E),H?H.words:s,t.view)}let y=!t&&(Yl(e)||f)?k(G8,{value:u,onChange:p}):null;return I?k(Yo,{label:i("Fill"),icon:k(ug,{}),value:I.hex,caption:I.words,onChange:o,changed:!0,onReset:C,resetTo:T,choices:g,children:y}):k(Zl,{label:i("Fill"),icon:k(ug,{}),value:e,inherited:w,resetTo:T,onChange:o,onReset:C,choices:g,children:y})}function G8({value:e,onChange:o}){return mi({options:nf.map(t=>({label:t.label,value:t.value,hint:t.hint})),value:e,onChange:o,ariaLabel:i("Fill")})}function j8(e,o,t){if((e?.content??[]).some(n=>n?.props?.id===o))return or(t);let r=$P(e,o);if(r.length===0)return null;let a=or(Vh(t));if(a!==null)return a;for(let n=r.length-1;n>0;n-=1){let s=or(Vh(r[n].sectionAccent));if(s!==null)return s}return or(r[0].sectionAccent)}function Ag(){let e=xo(he().theme),[o]=Ut("sectionAccent"),t=null;try{let{appState:a,selectedItem:n}=op(l=>l),s=n?.props?.id?String(n.props.id):void 0;t=s?j8(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 Xve(){return WO()}var ZO={top:k(Yj,{}),right:k(qj,{}),bottom:k(Kj,{}),left:k(Vj,{})};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:RK(i,{label:e,value:h,onChange:p,points:f})})}}}function Zve(e,o,t){return{type:"custom",options:o,render:({value:r,onChange:a,field:n})=>k(h0,{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 Jve(e,o={}){return{type:"custom",render:({value:t,onChange:r})=>{let a={value:t,onChange:r,...o};return k(e,{...a})}}}var K8={image:"Image",video:"Video"},Qve=Na.map(e=>({label:K8[e],value:e}));function eke(e,o,t){let r=Object.keys(px).map(a=>({label:px[a],value:a,picture:t[a]}));return{type:"custom",...da({},{type:"radio",label:e,options:r.map(a=>({value:a.value,label:a.label}))}),render:({onChange:a})=>k(q8,{label:e,icon:o,options:r,onChange:a})}}function V8(e,o,t){let r=gT(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=IT(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 q8({label:e,icon:o,options:t,onChange:r}){let a=on(),n=a?.values??{},s=Hl(n),l=bO(Dj),d=$c(l?.docId??null),c=null;try{c=op(u=>u.appState.data)}catch{c=null}let f=NT(a?.id,c,d);return k(mo,{label:i(e),icon:_s(o),hint:V8(n,f,l?.hasUnsavedEdits??!1),children:mi({options:t,value:s,onChange:r,ariaLabel:e})})}function oke(e,o,t,r={}){let a={type:"custom",[Hj]:!0,render:({value:n,onChange:s,name:l})=>k(u0,{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}var tke={HeroSingle:[Ma.image],HeroSlide:["videoFrame","videoFramePhone"],ContactLocations:["locations[].photo"],ProcessSteps:["steps[].image"]};function Y8(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 rke({value:e,onChange:o,label:t}){let r=e||{},a=on(),n=a?a.values!==a.node.props:!0,s=!!r.pending&&n,l=!!r.pending&&!n,d=!!to(_K()).geocode,c=yO(),f=(u,p)=>o({...r,[u]:p??void 0});return Fr(Dr,{children:[k(mo,{label:i(t),icon:k(iO,{}),action:d?k(Sg,{content:i("Find from the address (OpenStreetMap)"),children:k(AO,{"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(tK,{})})}):void 0,children:d&&r.status?k(PP,{compact:!0,oneLine:!0,spaced:!1,status:s?"busy":r.ok&&!l?"found":"notfound",statusText:s?i("Finding\u2026"):l?i(Yx):i(r.status),hint:Y8(r)}):null}),k(mo,{label:i("Enter by hand"),labelId:c,icon:k(Xj,{}),action:k(yg,{checked:!!r.manual,onChange:u=>o({...r,manual:u}),ariaLabelledBy:c})}),r.manual&&k(mo,{label:i("Latitude, longitude"),icon:k(iO,{}),children:Fr("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:8,width:"100%",minWidth:0},children:[k(cO,{value:typeof r.lat=="number"?r.lat:null,onChange:u=>f("lat",u),min:-90,max:90,step:1e-4,placeholder:i("Latitude")}),k(cO,{value:typeof r.lng=="number"?r.lng:null,onChange:u=>f("lng",u),min:-180,max:180,step:1e-4,placeholder:i("Longitude")})]})})]})}function X8(e,o){return o===null||o<0||o>=e.length?"":e[o]?.text??""}function Z8(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 J8(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 Rg={label:"Ticker items",icon:k(eK,{})};function ake(e,o,t,r){return{type:"custom",[Br]:{control:"textList",label:e,placeholder:t,itemKey:"text",rendering:r},...da({},{...DO.textList,label:e}),render:({value:a,onChange:n})=>k(Lg,{label:e,icon:_s(o),items:Array.isArray(a)?a:[],placeholder:t,onChange:n,markup:r==="markup"})}}function Lg({label:e,icon:o,items:t,placeholder:r,onChange:a,markup:n=!1}){let s=xi(null),[l,d]=Ii(null),c=u=>u.map(p=>({text:p?.text??""})),f=u=>{let p=J8(t,u,l);p===null&&(s.current=null),d(p),a(c(u))};return k(uK,{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:X8(t,l),onChange:u=>a(Z8(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 QO(e,o){let t=`${e.label} \u2014 row ${o+1}`;return nn({control:"plainText",label:t,placeholder:e.placeholder,offPage:e.offPage},{type:"custom",render:({value:r,onChange:a})=>k(an,{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 e_(e){return{_gCards:zt("Cards"),coverIndex:st("Cover image",k(Qj,{}),c0,String(1),e?.coverHint??"A card's opening picture \u2014 a card pinned to a finish keeps its own."),imageBackground:JK("Image background",Gf),cardImage:t_()}}function nke(){return{outline:st("Card outline",k(rK,{}),d0,i0),indexBadge:st("Card number",k(Jj,{}),aI,rI),showBadge:YO("Product badge",!0,k(Hx,{noun:"tag"}))}}function o_(e){let o=e?.defaults??{showCardSizes:!0,showCardBuy:!0,showCardPage:!0},t=a=>({...ep,label:Qf.find(n=>n.id===a).label}),r=a=>da(mg(pg),t(a));return{_gShowOnCard:zt("Show on a card"),[pg]:da({type:"custom",render:()=>k(Q8,{rest:{showCardPrice:!0,showCardFinishes:!0,...o}})},t(pg)),showCardFinishes:r("showCardFinishes"),showCardSizes:r("showCardSizes"),showCardBuy:r("showCardBuy"),showCardPage:r("showCardPage")}}var pg="showCardPrice",Qf=[{id:"showCardPrice",label:"Price"},{id:"showCardFinishes",label:"Finish swatches"},{id:"showCardSizes",label:"Sizes"},{id:"showCardBuy",label:"Buy button"},{id:"showCardPage",label:"Page button"}];function Q8({rest:e}){let o=Po(),t=aa(),r=s=>typeof o[s]=="boolean"?o[s]:void 0,a=s=>r(s)??e[s],n=Qf.some(({id:s})=>r(s)!==void 0&&r(s)!==e[s]);return k(As,{parts:Qf,changed:n,shown:a,onPress:(s,l)=>t({[s]:l}),onReset:()=>t(Object.fromEntries(Qf.map(({id:s})=>[s,void 0])))})}function ske(e,o="display"){let t=Os(o);return{[o]:it("desktop",{type:"custom",render:({value:r,onChange:a})=>k(As,{parts:e,changed:VP(r),shown:n=>pf(r,n),onPress:(n,s)=>a(YP(r,n,s)),onReset:()=>a(void 0)})}),[t]:it("mobile",{type:"custom",render:({value:r,onChange:a})=>k(e7,{parts:e,desktopKey:o,value:r,onChange:a})})}}function As({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(zj,{}),changed:o,action:k(Ho,{words:de()?.panel,label:l,changed:o,detail:n,onReset:a}),children:k(mK,{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 e7({parts:e,desktopKey:o,value:t,onChange:r}){let a=Po()[o];return k(As,{parts:e,changed:qP(t),shown:n=>qx(a,t,n),onPress:(n,s)=>r(XP(t,n,s)),onReset:()=>r(xf),detail:i("the same as Desktop")})}function t_(e=nP){return Oo("Card image",k(CO,{}),Wo,Yr,aP,Wo,e,{clear:{hint:Wo},hint:"Rounds the picture. The card's own corner is in Styles."})}function o7(){return hi(Rx,"cardImage")}function lke(){return{cardImage:t_(Rx),...o7()}}function ike(){return Tg({sidesKey:"cornerSides",row:sP,step:lP,useFollowed:()=>Wo,mark:k(t7,{label:iP}),hint:i("Rounds the picture. Left alone it stays square.")})}function t7({label:e,changed:o=!1,onReset:t=()=>{}}){return k(Ho,{words:de()?.panel,label:i(e),changed:o,onReset:t})}function dke(){return{type:"custom",render:({value:e,onChange:o})=>k(s7,{value:typeof e=="string"?e:"",onChange:o})}}var gO="own";function cke(){let e=[{value:gO,label:"Layout's own",picture:ig(Array.from({length:8},()=>[3,1]))},...Object.entries(Yc).map(([o,t])=>({value:o,label:t.label,picture:ig([...t.phone,...t.phone])}))];return it("mobile",sg("Layout",k(vO,{}),e,gO,{columns:2,cell:sO}))}function r7({layout:e,width:o}){let t=Dx(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:hP(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 a7={width:"3.5rem",height:"2.5rem",words:!1},n7=200;function s7({value:e,onChange:o}){let[t,r]=Ii(null),[a,n]=Ii(4),s=xi(null);Bj(()=>{let h=s.current;if(!h||typeof ResizeObserver!="function")return;let I=()=>n(h.getBoundingClientRect().width>=n7?4:3);I();let g=new ResizeObserver(I);return g.observe(h),()=>g.disconnect()},[]);let l=e?K(Kl,e):void 0,d=l?e:"",c=Fx(t,d),f=Fx(t,"").length,u=Jc("no-symbol"),p=[{value:"",label:i("Not chosen"),icon:nO(u,i("Not chosen"))},...c.map(h=>({value:h,label:i(Kl[h].label),icon:k(r7,{layout:Kl[h],width:40})}))];return k(mo,{label:i("Layout"),icon:k(vO,{}),value:l?i(l.label):void 0,children:k("div",{ref:s,style:{flex:"1 1 auto",minWidth:0},children:k(OO,{label:i("Layout"),value:d,options:p,onChange:o,columns:a,cell:a7,header:Fr("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(iK,{options:[{id:"all",label:i("All")},...pP.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:Lx.length})})]})})})})}import{decodePartId as v7}from"efficient-easel/draw";import{decodePartId as Ng,encodePartId as hp}from"efficient-easel/draw";import{LINK_FIELD_MARKER as p_,SCAFFOLD_FIELD_MARKER as c_,TEXT_FIELD_MARKER as xp}from"efficient-easel/draw";import{readHidable as u_}from"efficient-easel/draw";import{SCALAR_TEXT_CONTROLS as u7}from"efficient-easel/draw";import{TEXT_FIELD_MARKER as p7}from"efficient-easel/draw";import{TEXT_FIELD_MARKER as r_}from"efficient-easel/draw";import{readHidable as a_}from"efficient-easel/draw";import{SCALAR_TEXT_CONTROLS as l7}from"efficient-easel/draw";var i7=l7,d7=["text","textarea"],c7=["textarea","plainTextarea"];function f7(e){return!e||typeof e!="object"?null:e[r_]?.control??null}function Rs(e){let o=f7(e);return o&&i7.includes(o)?o:null}function fp(e){return c7.includes(e)}function n_(e){return!e||typeof e!="object"?void 0:e[r_]?.placeholder}function pp(e){return a_(e).text}function Fg(e,o,t){return d7.includes(e)?{text:t,hidden:a_(o).hidden}:t}function s_(e,o,t,r){return pp(e[o])===r?null:{...e,[o]:Fg(t,e[o],r)}}function Ls(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 up(e){if(!(!e||typeof e!="object"))return e[p7]}function Bg(e){if(!e||typeof e!="object")return null;let o=e.arrayFields;return o&&typeof o=="object"?o:null}function l_(e,o){if(!Array.isArray(o))return[];let t=up(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=Bg(e);return a?(o.forEach((n,s)=>{for(let[l,d]of Object.entries(a)){if(!Rs(d))continue;let c=pp(n?.[l])||up(d)?.placeholder||"";c&&r.push({row:{index:s,rowKey:l},text:c})}}),r):[]}function Si(e,o){if(Array.isArray(e))return e[o.index]?.[o.rowKey]}function Dg(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 i_(e,o,t,r,a){let n=Si(e[o],t);return pp(n)===a?null:Dg(e,o,t,Fg(r,n,a))}function d_(e,o){return o?`${e} \xB7 row ${o.index+1}`:e}var Gt="data-sf-part",Rke="data-sf-region-part",Lke="data-sf-part-row";function Fke(e,o){return`${e}[${o}]`}var Bke="data-sf-part-kind",m7="data-sf-part-style-owner",h7="data-sf-part-style-kind";function Dke(e){for(let o=e;o;o=o.parentElement){let t=o.getAttribute(m7),r=o.getAttribute(h7);if(t&&r)return{owner:t,kind:r};if(o.getAttribute("data-easel-block"))return null}return null}var f_=2;function Fs(e){return yr(e).replace(/\s+/gu,"")}function mp(e,o,t){let r=e[xp];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}=u_(o);a?t.push(a):r.placeholder&&t.push(r.placeholder);return}if(!e[p_]){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))mp(s,a?.[n],t);return}if(e.objectFields&&o&&typeof o=="object")for(let[a,n]of Object.entries(e.objectFields))mp(n,o[a],t)}}function Mg(e){if(!e||typeof e!="object")return!1;let o=e;return o[p_]?!1:!!o[xp]||o.type==="text"||o.type==="textarea"}function Ip(e,o){let t=e[xp];return t?.label?t.label:typeof e.label=="string"?e.label:o}function Hg(e){let o=e.indexOf(" (");return(o>0?e.slice(0,o):e).trim()}function Nke(e,o,t){if(!e)return[];let r=[];for(let[a,n]of Object.entries(e)){if(!n||typeof n!="object"||Jl(a))continue;let s=n,l=[];mp(s,o?.[a],l),!l.length&&s[c_]!==void 0&&mp(s,s[c_],l);let d=Ip(s,a);if(t?.(a)&&Mg(s)){l.length&&r.push({key:a,label:d,texts:[],keyed:!0});continue}let c=new Set;for(let{row:p,text:h}of l_(s,o?.[a])){let I=Fs(h);I.length<f_||(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=Fs(p);h.length<f_||f.has(h)||(f.add(h),u.push(h))}u.length&&r.push({key:a,label:d,texts:u})}return r}function Wg(e){return!e.offPage&&!e.hidden&&e.panelOnly!==!0}var x7=u7;function m_(e,o){if(!o||typeof o!="object"||Jl(e)||o0(o))return null;let t=o[xp];return!t||!x7.includes(t.control)?null:t}function Mke(e,o){let t=m_(e,o);return t!==null&&t.identifier!==!0}function h_(e,o){if(!e)return[];let t=[];for(let[r,a]of Object.entries(e)){let n=m_(r,a);if(!n)continue;let{text:s,hidden:l}=u_(o?.[r]);if(Wg({offPage:n.offPage===!0,hidden:!!l,panelOnly:ys(a)}))continue;let d=s||n.placeholder||"",c=yr(d).replace(/\s+/gu," ").trim();t.push({key:r,label:Hg(Ip(a,r)),preview:c,offPage:n.offPage===!0,identifier:n.identifier===!0,hidden:!!l})}return t}function Bs(e,o){let t=up(e);return t?.control==="textList"?o.rowKey===(t.itemKey??"text")?QO(t,o.index):null:Bg(e)?.[o.rowKey]??null}function gp(e,o,t){let r=e.node.props,{key:a,row:n}=$t(e.propKey),s=n?i_(r,a,n,e.kind,o):s_(r,a,e.kind,o);return s?(t(e.zone,e.index,{...e.node,props:s}),!0):!1}import{readHidable as b_}from"efficient-easel/draw";import{isNodeList as I7}from"efficient-easel/data";var Ug=e=>String(e+1).padStart(2,"0"),Kke=[{label:"01 \xB7",value:"two-digit"},{label:"1.",value:"plain"}],zg="two-digit",x_=e=>e==="plain"?"plain":zg,bp=(e,o)=>e==="plain"?`${o+1}.`:Ug(o);var Gg="Contents",$g="Flex",I_="Text",g7="numberForm",rTe="_contentsEntries",aTe="_kickerNumber",y_="data-sf-kicker-number",b7=e=>b_(e).text.trim(),S_=e=>Qc(e?.anchor),g_=e=>String(e.props?.id??""),y7=e=>!b_(e.props?.text).hidden&&!cs(e.props)&&!Jt(e.props);function wi(e){return Object.values(e.props??{}).filter(I7)}function w_(e){for(let o of wi(e))for(let t of o){if(Xl(t.props??{}))continue;if(t.type===I_&&y7(t))return t;if(t.type===I_)continue;let r=w_(t);if(r)return r}}function C_(e){return wi(e).some(o=>o.some(t=>t&&!Xl(t.props??{})&&(t.type===Gg||C_(t))))}var v_=e=>e.type===$g&&vs($g,e.props?.direction)==="row";function k_(e){return wi(e).some(o=>o.some(t=>t&&!Xl(t.props??{})&&(t.type===Gg||!v_(t)&&k_(t))))}function S7(e){let o=[],t=(r,a)=>{for(let n of r){if(!n||Xl(n.props??{}))continue;if(n.type===Gg){a.open={contents:n,sections:a.waiting??[]},a.waiting=null,o.push(a.open);continue}if(v_(n)&&k_(n)){let l={inRow:!0,open:null,waiting:[]};for(let d of wi(n))t(d,l);a.inRow||(a.open=null);continue}let s=a.open?.sections??a.waiting;if(n.type===$g&&S_(n.props)&&s&&!C_(n)){s.push({box:n,kicker:w_(n)});continue}for(let l of wi(n))t(l,a)}};return t(e,{inRow:!1,open:null,waiting:null}),o}function w7(e){return e.map(o=>({label:o.kicker?yr(b7(o.kicker.props?.text)):"",anchor:S_(o.box.props)}))}function nTe(e){let o=e?.length?S7(e):[];if(!o.length)return null;let t=new Map,r=new Map;for(let a of o){let n=g_(a.contents);n&&t.set(n,w7(a.sections));let s=x_(a.contents.props?.[g7]);a.sections.forEach((l,d)=>{let c=l.kicker?g_(l.kicker):"";c&&r.set(c,bp(s,d))})}return{entries:t,numbers:r}}var sTe=e=>e.endsWith(".")?`${e} `:`${e} \xB7 `;var k7=`[${y_}]`,T7=["bold","italic","underline","strike","link","sup","sub"],P7=["bullet","number"];function Vg(e,o){return e?[...T7,...o?P7:[]]:[]}function T_(e,o){let t=v7(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?Bs(c,d):c,u=Rs(f);if(!u)return null;let p=n.props??{};if(SI(p)!==null||!d&&mc(n.type,p,l)||n.type==="Text"&&l==="text"&&cs(p)||d&&!(Array.isArray(p[l])&&d.index<p[l].length))return null;let h=d?Si(p[l],d):p[l];return{node:n,selector:s,propKey:a,kind:u,stored:h,offPage:tp(f),panelOnly:ys(f)}}function yp(e,o){let t=T_(e,o);if(!t)return null;let{text:r,hidden:a}=ca(t.stored);if(!Wg({offPage:t.offPage,hidden:!!a,panelOnly:t.panelOnly}))return null;let n=fp(t.kind);return{partId:e,value:r,rules:oc,multiline:n,skip:k7,offered:Vg(t.kind!=="plainText",n),write:s=>{let l=T_(e,o);l&&gp({node:l.node,propKey:l.propKey,kind:l.kind,zone:l.selector.zone,index:l.selector.index},s,o.replace)}}}function qg(e,o,t){return e?.isConnected&&e.getAttribute(Gt)===t?e:o?.querySelector(`[${Gt}="${Sp(t)}"]`)??null}function Sp(e){return e.replace(/["\\]/g,"\\$&")}function P_(e){let o=e.activeElement;return o?o.tagName==="IFRAME"||!!o.closest(".es-canvas"):!1}var jg=null,Kg=new Set;function E7(){return jg}function Yg(e){if(e!==jg){jg=e;for(let o of Kg)o()}}function O7(e){return Kg.add(e),()=>{Kg.delete(e)}}function E_(){return C7(O7,E7,()=>null)}function O_(e,o){if(e.outer)return null;let t=o.getItemById(e.ownerId);if(!t)return null;let r=Mv(t.type);return!r||Zt(t.props)?null:{node:t,rows:r}}function F7(e,o){let t=O_(e,o),r=o.getItemById(e.nodeId);if(!t||!r)return null;let a=$v(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:_7(e.ownerId,Ls(t.rows,{index:e.index,rowKey:a}))}function wp(e,o){let t=F7(e,o);return t?yp(t,o):null}function __(e,o){return wp(e,o)?.value}function A_(e,o){let t=wp(e,o);return t?(t.write(e.text),!0):!1}function R_(e,o){let t=O_(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=A7(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=R7(n,s,d);break}case"delete":l=L7(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 mA,jsxs as Fi}from"react/jsx-runtime";import{Fragment as pY,useEffect as uY,useId as mY,useMemo as hA,useRef as hY,useState as pa}from"react";import{useScreenDocument as CA}from"efficient-easel/screen/components/ScreenDocumentContext";import{UiIcon as zb}from"efficient-easel/draw/client";import xY from"efficient-easel/screen/components/SidePanelHead";import{jsx as ve,Fragment as $s,jsxs as un}from"react/jsx-runtime";import{useEasel as lA,useRootFields as Cq}from"efficient-easel/easel";import{Inspector as vq}from"efficient-easel/fields";import{SettingsGroup as kq}from"efficient-easel/panel";import{useEffect as Tq,useRef as Pq,useState as Hb}from"react";import{jsx as sn,Fragment as M7,jsxs as H7}from"react/jsx-runtime";import{useState as D_}from"react";import{SettingsDefaultReset as W7,SettingsField as U7}from"efficient-easel/panel";import{useEaselStrings as z7}from"efficient-easel/strings";import{AddIcon as $7}from"efficient-easel/icons";import{Button as G7}from"efficient-shell/ui";import{iconOf as j7,noGlyph as K7}from"efficient-easel/screen/lib/document/box-fields";import{jsx as Cp,Fragment as B7,jsxs as L_}from"react/jsx-runtime";import{Button as F_,Dialog as D7}from"efficient-shell/ui";function N7(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 B_({count:e,onCancel:o,onConfirm:t}){return L_(D7,{open:!0,onClose:o,role:"alertdialog",size:"sm",title:i("Clear this site\u2019s colors?"),footer:L_(B7,{children:[Cp(F_,{variant:"secondary",onClick:o,children:i("Cancel")}),Cp(F_,{variant:"danger",onClick:t,children:i("Clear colors")})]}),children:[Cp("p",{children:N7(e)}),Cp("p",{className:"mt-2 font-medium",children:i("This cannot be undone.")})]})}var V7=K7("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"),q7="Reset color",Y7={selected:0,themes:[]};function X7(e){e(Y7)}function N_({value:e,onChange:o}){let t=e?.themes??[],r=t.length===0,a=xo(e),[n,s]=D_(!1),l=z7(),[d,c]=D_(null),f=(w,T)=>{o({...a,themes:a.themes.map((y,b)=>b===w?T:y)})},u=ts(a).accent,p=new Set(a.themes.map(w=>w.brandInk).filter(Boolean)),h=Zv.filter(w=>!p.has(w)).map(w=>Jv(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 H7(M7,{children:[r?null:sn(U7,{label:i(q7),icon:j7(V7),labelId:"sf-theme-reset",action:sn(W7,{label:i("all theme colors"),words:l.panel,changed:!0,onReset:()=>s(!0)})}),n&&sn(B_,{count:t.length,onCancel:()=>s(!1),onConfirm:()=>{s(!1),X7(o)}}),sn("div",{className:"sf-theme-list",role:"radiogroup","aria-label":i("Theme"),children:I.map((w,T)=>sn(wf,{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))}),sn(G7,{variant:"secondary",leftIcon:sn($7,{}),onClick:C,className:"sf-theme-add",children:i("Add new theme")})]})}import{jsx as vp}from"react/jsx-runtime";import{SettingsDefaultReset as Z7,SettingsField as J7}from"efficient-easel/panel";import{SquareIcon as Q7}from"efficient-easel/icons";var eV="Applies to panels, cards, inputs and buttons. Round things \u2014 color swatches, switches, status dots \u2014 stay round.",Xg="Corners";function M_({value:e,onChange:o,length:t}){let r=e===null;return vp(J7,{label:i(Xg),icon:vp(Q7,{}),changed:!r,action:vp(Z7,{words:de()?.panel,label:i(Xg),changed:!r,detail:i("the built-in corners"),onReset:()=>o(null)}),hint:i(eV),children:vp(Zo,{min:t?.grid.min??Wo,max:t?.grid.max??Yr,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(Xg),onChange:o})})}import{jsx as Ci}from"react/jsx-runtime";import{SettingsDefaultReset as oV,SettingsField as tV}from"efficient-easel/panel";import{IconPicker as rV}from"efficient-shell/ui";import{ShadowIcon as aV}from"efficient-easel/icons";import{SHADOW_PREVIEW as nV}from"efficient-easel/screen/lib/document/shadow-values";var Zg={none:"None",soft:"Soft",lifted:"Lifted"},sV="Applies to cards \u2014 products, brands, journal entries and filter cells. Round things like swatches and status dots are never shadowed.";function H_({value:e,onChange:o}){let t=e===null,r=e??jh;return Ci(tV,{label:i("Card shadow"),icon:Ci(aV,{}),value:i(Zg[r]),changed:!t,action:Ci(oV,{words:de()?.panel,label:i("Card shadow"),changed:!t,detail:i(Zg[jh]),onReset:()=>o(null)}),hint:i(sV),children:Ci(rV,{label:i("Card shadow"),value:r,options:ck.map(a=>({value:a,label:i(Zg[a]),icon:Ci("span",{className:"sf-shadow-chip border border-line bg-surface",style:{boxShadow:nV[a]}})})),onChange:o})})}import{jsx as W_}from"react/jsx-runtime";import{ShadowIcon as lV}from"efficient-easel/icons";import{DEFAULT_SHADOW_COLOR as U_}from"efficient-easel/screen/lib/document/shadow-values";var iV="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 z_({value:e,onChange:o}){let t=e===null;return W_(Zl,{label:i("Shadow color"),icon:W_(lV,{}),value:e??"",inherited:U_,resetTo:U_,onChange:o,onReset:()=>o(null),hint:i(iV)})}import{jsx as Tp}from"react/jsx-runtime";import{SettingsDefaultReset as dV,SettingsField as cV}from"efficient-easel/panel";import{AlignSeparateIcon as fV}from"efficient-easel/icons";function kp(e,o){return e==="tablet"?null:e==="mobile"?o.phone:o.desktop}var pV="The space between the blocks inside a row, a grid or a box. Auto means each one keeps the spacing it already has.",uV="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.",Jg="Block gap",$_=ks.Grid;function G_(e,o){return kp(e,{desktop:{key:"block_gap",value:o.gap,followsPx:null},phone:{key:"block_gap_phone",value:o.phone,followsPx:o.gap===null?null:VI(o.gap)}})}function j_({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?$_:l?ci(t)??$_:t;return Tp(cV,{label:i(Jg),labelId:"sf-block-gap",icon:Tp(fV,{}),changed:!n,action:Tp(dV,{words:de()?.panel,label:i(Jg),changed:!n,detail:s??i("each block's own spacing"),onReset:()=>o(null)}),hint:i(s===null?pV:uV),children:Tp(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(Jg),onChange:o})})}import{jsx as Pp}from"react/jsx-runtime";import{SettingsDefaultReset as mV,SettingsField as hV,SettingsSegmented as xV}from"efficient-easel/panel";import{HoverIcon as IV}from"efficient-easel/icons";var Qg={none:qn.none,lift:qn.lift,highlight:WC},gV="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 K_({value:e,onChange:o}){let t=e===null,r=e??Kh;return Pp(hV,{label:i("Hover effect"),icon:Pp(IV,{}),value:i(Qg[r]),changed:!t,action:Pp(mV,{words:de()?.panel,label:i("Hover effect"),changed:!t,detail:i(Qg[Kh]),onReset:()=>o(null)}),hint:i(gV),children:Pp(xV,{options:fk.map(a=>({id:a,label:i(Qg[a])})),value:r,ariaLabel:i("Hover effect"),onChange:o})})}import{jsx as Ep}from"react/jsx-runtime";import{SettingsDefaultReset as bV,SettingsField as yV,SettingsSegmented as SV}from"efficient-easel/panel";import{DropIcon as wV}from"efficient-easel/icons";var eb="Photography",V_={shot:"As shot",mono:"Black and white"},ob=[{grayscale:!1,label:V_.shot},{grayscale:!0,label:V_.mono}],CV="Black and white photographs return to color on hover. Wheels and tyres keep their real finish either way.";function q_({value:e,onChange:o}){let t=e===null,r=e??!1;return Ep(yV,{label:i(eb),icon:Ep(wV,{}),value:i(ob.find(a=>a.grayscale===r).label),changed:!t,action:Ep(bV,{words:de()?.panel,label:i(eb),changed:!t,detail:i(ob.find(a=>!a.grayscale).label),onReset:()=>o(null)}),hint:i(CV),children:Ep(SV,{options:ob.map(a=>({id:a.grayscale,label:i(a.label)})),value:r,ariaLabel:i(eb),onChange:o})})}import{jsx as tb}from"react/jsx-runtime";import{useId as vV}from"react";import{SettingsField as kV,SettingsSwitch as TV}from"efficient-easel/panel";import{ShareIcon as PV}from"efficient-easel/icons";var EV="Share button",OV="On every blog post.";function Y_({value:e,onChange:o}){let t=vV();return tb(kV,{label:i(EV),labelId:t,icon:tb(PV,{}),action:tb(TV,{checked:e===!0,onChange:o,ariaLabelledBy:t}),hint:i(OV)})}import{usePreviewDevice as Wb}from"efficient-easel/draw/client";import{jsx as Op}from"react/jsx-runtime";import{SettingsDefaultReset as _V,SettingsField as AV}from"efficient-easel/panel";import{PaddingXIcon as RV}from"efficient-easel/icons";var rb="Side space",X_=Go.default,LV="The room left at the left and right edge of every page.";function Z_(e,o){return kp(e,{desktop:{key:"site_gutter",value:o.gutter,unsetPx:X_,bounds:Go},phone:{key:"site_gutter_phone",value:o.phone,unsetPx:Ff(o.gutter,o.gutterUnit),bounds:Ht}})}function J_({value:e,onChange:o,unsetPx:t=X_,bounds:r=Go,length:a,restsOn:n=t}){let s=e===null;return Op(AV,{label:i(rb),labelId:"sf-side-space",icon:Op(RV,{}),changed:!s,action:Op(_V,{words:de()?.panel,label:i(rb),changed:!s,detail:`${t}px`,onReset:()=>o(null)}),hint:i(LV),children:Op(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(rb),onChange:o})})}import{jsx as ab}from"react/jsx-runtime";import{BACKGROUND_WIDTHS as XPe,SettingsBackgroundWidth as FV,SettingsContentWidth as BV}from"efficient-easel/panel";var DV="Background width",NV="Content width";var _p=e=>i(Qa[e==="content"?"page":"full"]),Q_="The width of every section's background.",e1="The width of every section's content.";function o1({value:e,changed:o,detail:t,onChange:r,onReset:a,hint:n,labelId:s}){return ab(FV,{value:e,changed:o,detail:t,onChange:r,onReset:a,hint:n?i(n):void 0,labelId:s,words:{label:i(DV),full:_p("full"),content:_p("content")},resetWords:de()?.panel})}function t1({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(NV),I=p?.grid.min??r,g=p?.grid.max??t,C=e!=="full"?ab(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 ab(BV,{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:_p("full"),content:_p("content")},resetWords:de()?.panel})}import{jsx as z1}from"react/jsx-runtime";import{TextStyleItem as K9,TextStylesGroup as V9}from"efficient-easel/text-styles";import{jsx as W9}from"react/jsx-runtime";import{useState as U9}from"react";import{TextStylesList as z9}from"efficient-easel/text-styles";import{usePreviewDevice as $9}from"efficient-easel/draw/client";import{defaultTextStyles as E1,textStyleCaseCss as F9}from"efficient-easel/text-styles/model";import{resolveViewValue as O1}from"efficient-easel/draw";import{VIEW_DESKTOP_MIN as r1,VIEW_TABLET_MIN as a1}from"efficient-easel/draw";var Ap=.02,n1=`(min-width: ${Kr}px) and (max-width: ${r1-Ap}px)`,vi=`(max-width: ${Kr-Ap}px)`,Rp=`(min-width: ${a1}px) and (max-width: ${r1-Ap}px)`,Lp=`(max-width: ${a1-Ap}px)`;import{textStyleCaseCss as MV,textStyleCaseOfCss as HV,viewKeyAt as p1}from"efficient-easel/draw";function Ds(e){return!e||typeof e!="object"||Array.isArray(e)?null:e}function Ns(e,o){return Ds(e?.[o])??{}}function Fp(e,o,t){let r=Ns(e,o);return Ds(K(r,t))??{}}function Bp(e,o,t,r){let{[t]:a,...n}=Ns(e,o),s=r?{...n,[t]:r}:n,{[o]:l,...d}=e;return Object.keys(s).length?{...d,[o]:s}:d}import{isLengthUnit as cb}from"efficient-easel/screen/lib/content/length-units";var Pi="_partStyles",fb="data-sf-part-styled",Ms="data-sf-text-style",WV=/^(heading|body)-[1-7]$/;function cn(e){return typeof e=="string"&&WV.test(e)}var Dp={heading:"heading-1",heading2:"heading-2",heading3:"heading-3",body:"body-1",label:"body-5"};function UV(e){if(!e)return null;for(let[o,t]of Object.entries(Dp))if(t===e)return o;return null}function pb(e){if(cn(e.textStyle))return e.textStyle;let o=br(e.role);return o?Dp[o]:void 0}var zV=[400,500,600,700],Ti=["left","center","right","justify"],nb=5,sb=1e3,$V=-5,GV=10,ub=0,mb=64,hb=2,s1={size:{min:nb,max:sb,step:1},sizeTablet:{min:nb,max:sb,step:1},sizePhone:{min:nb,max:sb,step:1},padding:{min:ub,max:mb,step:hb}},jV=.05,KV=.01,VV=["line","letter"],qV=.5,YV=2.5,XV=-1,ZV=1,JV=0,QV=400,e9=[...new Set(Object.values(Vn))];function u1(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 y0e(e){return Ns(e,Pi)}function Ei(e,o){return Fp(e,Pi,o)}function m1(e,o,t){return Bp(e,Pi,o,o9(t).length?t:null)}function o9(e){return Object.entries(e).filter(([,o])=>o!==void 0)}function t9(e){return VV.includes(e)}var ki=(e,o,t)=>Math.min(t,Math.max(o,e)),r9=["sizeUnit","sizeUnitTablet","sizeUnitPhone"];function lb(e){let o=p1("sizeUnit",e),t=r9.find(r=>r===o);if(!t)throw new Error(`a part stores no unit key ${o}`);return t}var gt={size:lb("desktop"),sizeTablet:lb("tablet"),sizePhone:lb("mobile"),paragraphSpacing:"paragraphSpacingUnit",padding:"paddingUnit"},h1=Object.values(gt);function ir(e,o){return ke(e[gt[o]])}function a9(e,o,t={}){if(h1.includes(e))return cb(o)&&o!=="px"?o:null;if($e(gt,e)&&ir(t,e)!=="px"){let r=dn(Number(o),2);return!Number.isFinite(r)||r<0||r===0&&e!=="padding"?null:r}if(t9(e)){let r=Math.round(Number(o));return!Number.isFinite(r)||r===0?null:ki(r,$V,GV)}if(e==="lineHeight"){let r=Number(o);return Number.isFinite(r)?dn(ki(r,qV,YV),3):null}if(e==="letterSpacing"){let r=Number(o);return Number.isFinite(r)?dn(ki(r,XV,ZV),4):null}if(e==="paragraphSpacing"){let r=Math.round(Number(o));return!Number.isFinite(r)||r<=0?null:ki(r,JV,QV)}if($e(s1,e)){let{min:r,max:a}=s1[e],n=Math.round(Number(o));return Number.isFinite(n)?ki(n,r,a):null}return e==="italic"?typeof o=="boolean"?o:null:e==="role"||e==="fontRole"?br(o)?o:null:e==="sizeToken"?xb(o)?o:null:e==="textStyle"?cn(o)?o:null:e==="alignPhone"||e==="alignTablet"?Ti.includes(o)?o:null:o}var n9=["weight","size","sizeTablet","sizePhone","line","letter","lineHeight","letterSpacing","paragraphSpacing","padding"];function Hs(e){let o=null,t=r=>{o??={...e},delete o[r]};for(let r of n9){let a=e[r];a!==void 0&&!(typeof a=="number"&&Number.isFinite(a))&&t(r)}e.align!==void 0&&!Ti.includes(e.align)&&t("align"),e.alignTablet!==void 0&&!Ti.includes(e.alignTablet)&&t("alignTablet"),e.alignPhone!==void 0&&!Ti.includes(e.alignPhone)&&t("alignPhone"),e.textStyle!==void 0&&!cn(e.textStyle)&&t("textStyle"),e.sizeToken!==void 0&&!xb(e.sizeToken)&&t("sizeToken"),e.fontRole!==void 0&&!br(e.fontRole)&&t("fontRole");for(let r of h1)e[r]!==void 0&&!cb(e[r])&&t(r);return o??e}function xb(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"&&e9.includes(d);return l(o)&&s(t)&&(r===void 0||l(r))&&(a===void 0||s(a))&&(n===void 0||s9(n,t))}function s9(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 Ib(e){return e?.pxPhone&&xb(e)?{step:e.stepPhone??e.step,px:e.pxPhone}:null}function x1({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 l9=[["font","role"],["font","fontRole"],["role","textStyle"],["line","lineHeight"],["letter","letterSpacing"]];function i9(e){let o=[];for(let[t,r]of l9)t===e?o.push(r):r===e&&o.push(t);return o}function fn(e,o,t,r){let a={...Ei(e,o)},n=r==null?null:a9(t,r,a);if(n===null)delete a[t];else{a[t]=n;for(let s of i9(t))delete a[s]}return m1(e,o,a)}function I1(e,o){return m1(e,o,{})}function d9(e){return HV(e)??"none"}function c9(e){return MV(e)??""}var l1={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 f9(e,o){return br(e.role)||(o?.blockDrawsStyle?null:UV(e.textStyle))}function g1(e,o){return e==="Text"&&o==="text"}var p9={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 u9(e){let o=Vn[e],t=K(p9,o);return t?`var(--size-${o}, ${t})`:`var(--size-${o})`}function Oi(e){let o={};return typeof e.lineHeight=="number"?o.lineHeight=e.lineHeight:e.line&&(o.lineHeight=dn(m9+e.line*jV,3)),typeof e.letterSpacing=="number"?o.letterSpacingEm=e.letterSpacing:e.letter&&(o.letterSpacingEm=dn(e.letter*KV,4)),o}var m9=1,ln="--sf-part-para";function h9(e){e=Hs(e);let o={};if(typeof e.sizePhone=="number"&&e.sizePhone>0)o.fontSize=We(e.sizePhone,ir(e,"sizePhone"));else{let r=Ib(e.sizeToken);if(r)o.fontSize=x1(r);else{let a=Mp(e);a!==void 0&&(o.fontSize=We(a,ir(e,"sizeTablet")))}}let t=e.alignPhone??Np(e);return t&&(o.textAlign=t),o}function Np(e){return e.alignTablet&&e.alignTablet!==e.align?e.alignTablet:void 0}function Mp(e){let o=e.sizeTablet!==void 0&&ir(e,"sizeTablet")!==ir(e,"size")?e.sizeTablet:wr("textSize",e.size,e.sizeTablet,void 0).tablet;return o&&o>0?o:void 0}function x9(e){let o=Hs(e),t={},r=Mp(o);r!==void 0&&(t.fontSize=We(r,ir(o,"sizeTablet")));let a=Np(o);return a&&(t.textAlign=a),t}function b1(e,o){if(o==="desktop")return;let t=Hs(e);return(o==="mobile"?Np(t):void 0)??t.align}function I9(e,o){if(o==="desktop")return e;let t=Hs(e),r=Mp(t),a=Np(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=Ib(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 gb(e,o,t){return yb(I9(e,o),Hp,t)}function bb(e){return p1("size",e)}function y1(e,o){if(o==="desktop")return null;let t=Hs(e);if(o==="mobile"){if(Ib(t.sizeToken))return null;let r=Mp(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 S1(e,o){let t=bb(o);if(!$e(e,t))return e;let r={...e};return delete r[t],r}function S0e(e,o,t){let r=gb(S1(e,o),o,t);return{fontFamily:r.fontFamily,fontSize:r.fontSize}}function yb(e,o,t){e=Hs(e);let r=f9(e,t),a=Oi(e),n=e.size?We(e.size,ir(e,"size")):e.sizeToken?x1(e.sizeToken):r?u9(r):"";return{fontFamily:e.font?S9(e.font):e.fontRole?`var(${l1[e.fontRole]})`:r?`var(${l1[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`:"",[ln]:e.paragraphSpacing?We(e.paragraphSpacing,ir(e,"paragraphSpacing")):"",textTransform:c9(e.case),textAlign:e.align??"",paddingTop:i1(e.padding,ir(e,"padding")),paddingBottom:i1(e.padding,ir(e,"padding")),color:g9(e.color),fontStyle:e.italic===!0?"italic":e.italic===!1?"normal":""}}var g9=e=>xs(e),i1=(e,o)=>e===void 0?"":We(e,o),dn=(e,o)=>Number(e.toFixed(o));function w0e(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:b9(Number.parseInt(e.fontWeight,10)),lineRatio:Number.isFinite(r)?dn(r/t,3):1.2,letterEm:Number.isFinite(a)?dn(a/t,4):0,align:y9(e.textAlign),case:d9(e.textTransform),paddingPx:Number.isFinite(n)?Math.round(n):0}}function b9(e){return Number.isFinite(e)?zV.reduce((o,t)=>Math.abs(t-e)<Math.abs(o-e)?t:o):400}function y9(e){for(let o of Ti)if(o===e)return o;return e==="end"?"right":"left"}function C0e(e,o){let t=d1(e);if(!t)return"";for(let r of jr)if(d1(o(r.cssVar))===t)return r.key;return""}var d1=e=>(e.split(",")[0]??"").replace(/["']/g,"").replace(/\s+/g," ").trim().toLowerCase();function S9(e){let o=Kn(e);return o?`var(${o.cssVar})`:""}function v0e(e,o,t,r){return!o||Ng(o)?.nodeId!==e?null:t.find(a=>r(a.getAttribute("class")))??t[0]??null}function w9(e,o){return Ds(K(e,o))??{}}function k0e(e,o,t=()=>Hp,r=l=>l,a=k9,n="desktop",s=()=>!1){let l=0;for(let{element:d,partId:c}of e){let f=Ng(c)?.propKey;if(!f)continue;let u=w9(o,r(f)),p=gb(u,n,{blockDrawsStyle:s(f)});cn(u.textStyle)?d.setAttribute?.(Ms,u.textStyle):d.removeAttribute?.(Ms);let h=ib.some(g=>d.style[g]),I=!1;for(let[g,C]of Object.entries(p))E9(d,g,C),C&&(I=!0);if(h||ib.some(g=>p[g]))for(let g of C9(d,a))for(let C of ib)g.style[C]=p[C]??"";I&&(l+=1)}return l}function C9(e,o){let t=Fs(e.textContent??""),r=[],a=e;for(let n=0;n<v9&&o(a);n+=1){let s=a.parentElement;if(!s||Fs(s.textContent??"")!==t)break;r.push(s),a=s}return r}var v9=8;function k9(e){let o=e;return typeof window>"u"||!o?.ownerDocument?!1:window.getComputedStyle(o).display==="inline"}var Hp={fontKey:"",sizePx:16,weight:400,lineRatio:1,letterEm:0,align:"left",case:"none",paddingPx:0};function T9(e){if(!e||typeof e!="object")return null;let o={};cn(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&&cb(e[r])&&(o[r]=e[r])}return Object.keys(o).length?o:null}function P9(e,o){let t=T9(e);if(!t)return{};let r=gb(t,o);return{...r.fontFamily?{fontFamily:r.fontFamily}:{},...r.fontSize?{fontSize:r.fontSize}:{}}}function w1(e){return cn(e?.textStyle)||!!e?.role||typeof e?.size=="number"&&e.size>0}function T0e(e,o,t){if(!e||typeof e!="object")return{};let r=uc(e.role,o,Vn)??{},a=o.sized?P9(S1(e,t),t):{};return{...r,...a}}function P0e(e,o,t){t.fontFamily&&e.fontFamily===t.fontFamily&&(e.fontFamily=o.fontFamily),t.fontSize&&e.fontSize===t.fontSize&&(e.fontSize=o.fontSize)}function E9(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===ln&&(t?a.setAttribute?.(c1,""):a.removeAttribute?.(c1))}var c1="data-sf-part-para",O9=Object.keys(yb({},Hp)),db=new Set(["color","overflowWrap",ln,"fontStyle"]),ib=O9.filter(e=>!db.has(e));function C1(e,o,t,r=l=>l,a=()=>!1,n=()=>null,s=[]){let l=new Map;for(let u of e){let p=Ls(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(!_9(u))continue;let p=f1(t,u,Ds(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=Ds(o[p])??{};return f1(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(Ls(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 f1(e,o,t,r,a){let n=yb(t,Hp,{blockDrawsStyle:r}),s=x9(t),l=h9(t),d=cn(t.textStyle)?t.textStyle:void 0;return!Object.values(n).some(Boolean)&&!Object.keys(s).length&&!Object.keys(l).length&&!d&&!a?null:{stamp:A9(e,o),declarations:n,...Object.keys(s).length?{tablet:s}:{},...Object.keys(l).length?{phone:l}:{},...d?{textStyle:d}:{},...a?{motion:a}:{}}}function _9(e){return e.startsWith("@")}function Sb(e,o){return e?.kindRules.get(o)??null}function A9(e,o){let t=r=>r.replace(/[^A-Za-z0-9_-]+/g,"-");return`${t(e)}~${t(o)}`}function wb(e){return e?{tablet:n1,phone:vi}:{tablet:Rp,phone:Lp}}function v1(e,{inBox:o=!1}={}){let{tablet:t,phone:r}=wb(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])=>`${R9(T)}: ${y}`).join("; "),p=`[${fb}="${d}"]`,h=f.filter(([w])=>!db.has(w)),I=f.filter(([w])=>db.has(w));h.length&&a.push(`${p}, *:has(> ${p}) { ${u(h)} }`),I.length&&a.push(`${p} { ${u(I)} }`),c[ln]&&(a.push(`*:has(> ${p}) { ${ln}: ${c[ln]} }`),a.push(...Wp(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 Wp(e,o){let t=`var(${ln})`,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 R9=e=>e.replace(/[A-Z]/g,o=>`-${o.toLowerCase()}`);function k1(e,o){if(!e)return null;let t=Fs(o),r=e.rules.get(t);if(r)return r;if(t.length<L9||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 L9=8;function T1(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 Cb=e=>e==="sentence"?"none":void 0,_1=["font","color","size","sizeTablet","sizePhone","weight","italic","lineHeight","lineHeightTablet","lineHeightPhone","letterSpacing","letterSpacingTablet","letterSpacingPhone","paragraphSpacing","paragraphSpacingTablet","paragraphSpacingPhone","letterCase","largestSize","largestSizeTablet","largestSizePhone"],Ws=["desktop","tablet","phone"],pn=(e,o)=>we(e,o);function Tb(e,o,t,r=Xn()){return O1("textSize",o,e.sizeTablet,e.sizePhone,r)[t]}var B9=[["lineSpacing","lineHeight","line"],["letterSpacing","letterSpacing","letter"]];function vb(e){for(let[o,t,r]of B9)for(let a of Ws)if(e===pn(o,a))return{key:we(t,a),view:a,spacing:r};return{key:e,view:"desktop",spacing:null}}function dr(e){let o={};for(let t of _1)e[t]!==void 0&&(o[t]=e[t]);return o}function Pb(e,o){let{auto:t,...r}=e,a=new Set(o??[]),n=_1.filter(s=>a.has(s)&&e.values[s]===void 0);return n.length?{...r,auto:n}:r}function A1(e){let o=e.fonts,t=e.sizes,r=e.typography,a=pk(e.compression),n={"heading-1":{font:Se(o.heading),size:q(t.headingLarge),weight:q(r.weight),lineHeight:a.lineHeight,letterSpacing:a.letterSpacing,letterCase:Cb(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:Cb(r.case2)},"heading-3":{font:Se(o.heading3),size:q(t.headingSmall),weight:q(r.weight3),lineHeight:a.lineHeight,letterSpacing:a.letterSpacing,letterCase:Cb(r.case3)},"body-1":{font:Se(o.body),size:q(t.body)},"body-5":{font:Se(o.label),size:q(t.label)}};return E1().map(({id:s,kind:l,name:d})=>({id:s,kind:l,name:d,values:dr(n[s]??{})}))}function Eb(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=>Pb({...o,values:dr(o.values??{})},Array.isArray(o.auto)?o.auto:void 0)):null}function U0e(e){return Eb(e)??[]}function R1(e){return Eb(e)??E1().map(({id:o,kind:t,name:r})=>({id:o,kind:t,name:r,values:{}}))}function Nr(e,o){let t=A1(o),r=Eb(e);return r?r.map(a=>{let n={...kb(t,a.id)};for(let s of a.auto??[])delete n[s];return{...a,values:dr({...n,...a.values})}}):t}var kb=(e,o)=>e.find(t=>t.id===o)?.values??{},P1=["heading-1","heading-2","heading-3"];function L1({saved:e,old:o,cur:t,next:r,sizeOf:a,panelView:n="desktop"}){let s=A1(o),l=R1(e),d=Nr(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=D9([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=>vb(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}=vb(P),O=H,D=w[P];if(D===void 0){delete g[O],kb(s,p.id)[O]!==void 0&&(c.push([p.id,O]),C.add(O));continue}if(C.delete(O),W==="line")g[O]=Us(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[vb(F).key];let _=dr({...v,...g}),A=Tb(_,a({...p,values:_}),E);g[O]=A?Us(D/A,4):0}else g[O]=D}return Pb({id:p.id,kind:p.kind,name:p.name,values:dr(g)},C)}),u=o.compression;if(c.some(([p,h])=>(h==="lineHeight"||h==="letterSpacing")&&P1.includes(p))&&Ba(u)!=="normal"){for(let p of P1){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]=kb(s,p)[g]);h.values=dr(I)}u="normal"}return{saved:f,old:{...o,compression:u}}}function F1(e,o){let t={text_styles:e.saved};return e.old.compression!==o.compression&&(t.heading_compression=Ba(e.old.compression)),t}var Us=(e,o)=>Number(e.toFixed(o)),B1=(e,o)=>Ws.indexOf(e)<Ws.indexOf(o)?o:e;function D1(e,o,t="desktop"){return e.map(r=>{let a={...r.values},n=o(r);for(let s of Ws){let l=we("lineHeight",s),d=r.values[l],c=r.values[we("letterSpacing",s)];delete a[l],d!==void 0&&(a[pn("lineSpacing",s)]=Us(d*100,1));let f=B1(s,t);c!==void 0&&(a[pn("letterSpacing",s)]=Us(c*Tb(r.values,n,f),f===s?2:4))}return{id:r.id,kind:r.kind,name:r.name,values:a}})}function D9(e,o,t="desktop"){return e.map(r=>{let a=r.values,n={...a};for(let c of Ws)delete n[pn("lineSpacing",c)],delete n[pn("letterSpacing",c)];let s={id:r.id,kind:r.kind,name:r.name,values:dr(n)},l={...s.values},d=o({...s,values:{...s.values}});for(let c of Ws){let f=a[pn("lineSpacing",c)],u=a[pn("letterSpacing",c)];if(typeof f=="number"&&(l[we("lineHeight",c)]=Us(f/100,3)),typeof u=="number"){let p=Tb(s.values,d,B1(c,t));l[we("letterSpacing",c)]=p?Us(u/p,4):0}}return{...s,values:dr(l)}})}function z0e(e){let o={fonts:Pl({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:Gh({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:Ba(e.heading_compression),typography:mk(e)},t=e.text_styles??null,r=Array.isArray(t)?Ob(Nr(t,o),o):o;return{fonts:Pl(r.fonts),sizes:Gh(r.sizes),compression:Ba(r.compression),typography:r.typography,textStyles:t}}function Ob(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 $0e(e){let o=[];for(let t of e){let r=t.values,a=`.${T1(t)}`,n=`[${Ms}="${t.id}"]`,s=`${a}, ${n}`,l=[],d=r.font!==void 0?jr.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=xs(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=F9(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(...Wp(`:is(${s})`,`*:has(> ${n})`))),o.push(...N9(t,s,a,n))}return o.join(`
|
|
4
|
-
`)}function N9(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=O1("textSize",a.size,a.sizeTablet,a.sizePhone,Xn()),u=M9[e.id],p=[];for(let[h,I]of[["tablet",Rp],["phone",Lp]]){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(...Wp(`: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 M9={"heading-1":"headingLarge","heading-2":"headingMedium","heading-3":"headingSmall","body-1":"body","body-5":"label"};function G0e(e){return e!==!0&&e!==!1?"":`em.text-accent { font-style: ${e?"italic":"normal"} }`}function N1(e){return e?Dp[e]:void 0}function _b(e){let o=Oi(e);return dr({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 M1(e){return Object.keys(_b(e)).length>0}function H1({saved:e,old:o,styleId:t,values:r}){let a=R1(e);return{saved:H9(a,t,r),old:o}}function H9(e,o,t){return e.map(r=>r.id===o?Pb({...r,values:dr({...r.values,...t})},r.auto):r)}var W1=["font","color","size","weight","emphasis","lineSpacing","letterSpacing","paragraphSpacing","letterCase","largestSize"],G9=["size","lineSpacing","letterSpacing","letterCase"],j9=500,Ab=jr.map(e=>({value:e.key,label:e.label,family:`var(${e.cssVar})`,italic:e.italicLoaded}));function U1({saved:e,old:o,colours:t,colourNameOf:r,sizeOf:a,onChange:n,openId:s,onOpenChange:l,readOnly:d=!1,withoutSize:c=!1}){let f=$9(),[u,p]=U9(null),h=Nr(e,o),I=Sc(f),g=D1(h,a,I);return W9(z9,{styles:g,onChange:C=>n(L1({saved:e,old:o,cur:g,next:C,sizeOf:a,panelView:I})),fonts:Ab,colours:t,colourNameOf:r,settings:c?W1.filter(C=>C!=="size"):W1,auto:G9,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=j9),T}})}var $1=["font","size","weight","emphasis"],q9=500;function Y9({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 X9(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 G1(e){let{headingWeight:o,open:t,onOpenChange:r,onChange:a,withoutSize:n=!1}=e,s=Y9(e);return z1(V9,{label:i("Emphasis"),children:z1(K9,{style:s,fonts:Ab,settings:n?$1.filter(l=>l!=="size"):$1,auto:["size"],fallback:()=>({weight:o??q9}),open:t,onOpenChange:r,onChange:l=>X9(s,l).forEach(a)})})}import{viewKeyAt as Y1}from"efficient-easel/draw";import{shownUnitAt as tq,unitKeyOnWrite as rq}from"efficient-easel/screen/lib/content/length-units";import{convertRowLength as Z9,rowUnits as J9,unitPickPatch as Q9}from"efficient-easel/screen/lib/content/length-units";import{viewKeyAt as eq}from"efficient-easel/draw";var oq=["cornerRadius","siteWidth","siteGutter","siteGutterPhone","blockGap","blockGapPhone"],Up={cornerRadius:{number:"corner_radius_px",kind:"radius",grid:ik,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 zp(e){return{number:Up[e].number,unit:qv[`${e}Unit`]}}function j1(e,o,t){let r=ke(t),{number:a,unit:n}=zp(e);return{[a]:o,[n]:o===null||r==="px"?null:r}}function $p(e,o,t,r){let{kind:a,grid:n,tier:s}=Up[e],l=ke(t),d=ke(r);return l===d?o:Z9(o,l,d,s,{kind:a},n)}function K1(e,o,t,r){let{number:a,unit:n}=zp(e),s=Q9({[a]:o},l=>$p(e,l,t,r),n,ke(r),"px");return{[a]:s[a],[n]:s[n]??null}}function V1(e,o){let{kind:t,grid:r}=Up[e];return Vv(t,ke(o),r)}function q1(e){return J9({kind:Up[e].kind},en)}function Rb(e,o){let t=eq(e,o);if(!oq.includes(t))throw new Error(`no site length row ${t}`);return t}function _i(e,o,t,r,a){let{siteLengthUnits:n,setSiteLengthUnits:s}=he(),l=`${e}Unit`,d=n[l],c=tq({n:a?.figure??null,u:a?.unit??null,[Y1("n","mobile")]:o,[Y1("u","mobile")]:d??null},{n:"n"},"u","mobile"),f=I=>s({[l]:I==="px"?null:I}),u=I=>{t(I);let g=rq(l,d,c,"px",I===null);l in g&&f(g[l]==null?null:ke(g[l])),r(j1(e,I,c),I===null)},p=I=>{let g=ke(I);if(g===c||(f(g),o===null))return;let C=K1(e,o,c,g);t(C[zp(e).number]),r(C,!0)},h=a?a.unit===c?a.figure:$p(e,a.figure,a.unit,c):null;return{length:{unit:c,grid:V1(e,c),units:{options:q1(e),onChange:p,label:i("Unit")}},write:u,rest:h,shown:I=>$p(e,I,"px",c)}}import{EmptyState as Eq,SliderGroup as Oq,Tabs as _q,Tooltip as _Oe,tabButtonId as Aq,tabPanelId as Rq}from"efficient-shell/ui";import{ContrastIcon as Lq,SettingsIcon as Fq,TypeIcon as Bq}from"efficient-easel/icons";function X1(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 Db}from"react/jsx-runtime";import{ListIcon as xq,PaddingTopIcon as Iq}from"efficient-easel/icons";import{jsx as Gp}from"react/jsx-runtime";import{SettingsDefaultReset as aq,SettingsField as nq,SettingsSegmented as sq}from"efficient-easel/panel";import{WidthIcon as lq}from"efficient-easel/icons";function Z1({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 Gp(nq,{label:c,labelId:a,icon:Gp(lq,{}),value:l?n:void 0,changed:!l,action:Gp(aq,{words:de()?.panel,label:c,changed:!l,onReset:()=>t(void 0)}),hint:s,children:Gp(sq,{options:[{label:i(Qa.full),id:"full"},{label:i(Qa.page),id:"content"}],value:d,ariaLabel:c,onChange:t})})}import{HEADER_TYPE as Lb,FOOTER_TYPE as iq}from"efficient-easel/draw";var dq=new Set(["Hero","HeroSingle","IntroBleed"]),J1={min:56,max:140,default:88},OEe={min:0,max:120,step:2,default:32},_Ee=`var(--sf-header-h, ${J1.default}px)`,cq="--sf-header-set-h",AEe="--sf-header-h",REe=`var(${cq}, ${J1.default}px)`,LEe="sf-header-clearance",FEe="sf-sticky-underheader";function fq(e){return e?.find(o=>o?.type&&o.type!==Lb)??null}function Q1(e){let o=fq(e)?.type;return!o||!dq.has(o)}function BEe(e){return!Q1(e)}function DEe(e){return!!e?.some(o=>o?.type===Lb)}function NEe(e){return!e||e.length===0?!1:!e.some(o=>o?.type===Lb||o?.type===iq)}var pq=["auto","shared","own"],Fb="auto",uq="topSpace",MEe="data-top-space";function mq(e){return pq.includes(e)?e:Fb}function hq(e,o){let t=mq(e?.props?.[uq]);return t==="own"?!0:t==="shared"?!1:Q1(o)}function HEe(e,o){return hq(e,o)?"own":null}function gq(){return{type:"custom",render:({value:e,onChange:o})=>Db(Z1,{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 bq=[{label:"Auto",value:"auto"},{label:"Shared",value:"shared"},{label:"Its own",value:"own"}],XEe={pageBackground:XO(),topSpace:st("Top space",Db(Iq,{}),bq,Fb),widthChoice:gq()},Ai=["pageBackground","topSpace","widthChoice"],yq="Record type",Bb=new Map,eA=-1;function Sq(e){eA!==Tx()&&(Bb.clear(),eA=Tx());let o=kx(),t=o.some(a=>a.key===e)?"":e,r=Bb.get(t);return r||(r=st(yq,Db(xq,{}),[...o.map(a=>({label:a.label,value:a.key})),...t?[{label:t,value:t}]:[]],Qr),Bb.set(t,r)),r}var oA=new WeakMap;function ZEe(e,o){if(!jl()||kx().length<2||jc in e)return e;let t=Sq(Gl(o)),r=oA.get(e);if(r&&r.row===t)return r.fields;let a={[jc]:t,...e};return oA.set(e,{row:t,fields:a}),a}import{previewFrame as Dq}from"efficient-easel/screen/lib/document/preview-dom";var tA="background";function rA(e){let o=Vo(ts(e));return Is({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 aA(e){return rA(e).filter(o=>o.key!==tA)}function nA(e){let o=rA(e).filter(t=>t.key===tA);return t=>{let r=rt(t);return o.find(a=>a.key===r)?.value??r}}import{useEasel as wq}from"efficient-easel/easel";function jp({themeFromDocument:e,persist:o}){let{appState:t,dispatch:r}=wq(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?Pl(g.fonts):a,w=e?sk:s,T=e?Ba(g.headingCompression):d,y=e?uk(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=Ob(Nr(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(F1(E,b),W)},writeRoot:H}}import{pictureShadowColor as Nq}from"efficient-easel/screen/lib/document/shadow-values";var Mb="sf-site-styles",Mq="sf-site-styles-tabpanel",iA="text",Gs="basics",sA="this-page-group",zs=[{id:Gs,label:"Basics",icon:ve(Fq,{})},{id:"theme",label:"Theme",icon:ve(Lq,{})},{id:"text",label:"Text",icon:ve(Bq,{})}];function Hq({themeFromDocument:e,persist:o}){let{appState:t,dispatch:r}=lA(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(N_,{value:e?l.theme:a,onChange:d})}function Wq({themeFromDocument:e,persist:o}){let[t,r]=Hb(null),{theme:a,setFonts:n,setSizes:s,setHeadingTypography:l}=he(),d=jp({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??Gq(Uq[E.id]??"body")??zq[E.kind],C=E=>d.write(E),w=aA(a),T=nA(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 un($s,{children:[ve(U1,{saved:f,old:c,colours:w,colourNameOf:T,sizeOf:g,onChange:C,openId:t===Nb?null:t,onOpenChange:r,withoutSize:e}),ve(G1,{font:p.accent,size:h.accent,weight:I.weightStrong,italic:I.italicStrong,headingWeight:I.weight,open:t===Nb,onOpenChange:E=>r(E?Nb: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 Nb="accent",Uq={"heading-1":"heading","heading-2":"heading2","heading-3":"heading3","body-1":"body","body-5":"label"},zq={heading:32,body:14},$q={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 Gq(e){if(typeof document>"u")return null;let o=(Dq()?.contentDocument??document).querySelector($q[e]);if(!o)return null;let t=parseFloat(getComputedStyle(o).fontSize);return Number.isFinite(t)?t:null}function jq({themeFromDocument:e,persist:o}){let{appState:t,dispatch:r}=lA(p=>p),{cornerRadiusPx:a,setCornerRadiusPx:n}=he(),s=t.data,l=s.root?.props??{},d=l.cornerRadiusPx===void 0?dk[lk(l.cornerStyle)]:Qt(l.cornerRadiusPx),c=e?d:a,f=_i("cornerRadius",a,n,o),u=p=>r({type:"replaceRoot",root:{...s.root,props:{...l,...p}},recordHistory:!0});return ve(M_,{value:c,onChange:p=>{e?(u({cornerRadiusPx:p}),o({corner_radius_px:p})):f.write(p)},...e?{}:{length:f.length}})}function Kq({persist:e}){let{siteWidth:o,setSiteWidth:t,sectionBackgroundWidth:r,setSectionBackgroundWidth:a,sectionContentWidth:n,setSectionContentWidth:s}=he(),l=Wb(),d=_i("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 un($s,{children:[ve(o1,{value:r??"full",changed:r!==null,detail:i("Full width"),onChange:u,onReset:()=>u(null),hint:Q_}),ve(t1,{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:e1,length:d.length})]})}function Vq({persist:e}){let{siteGutter:o,siteGutterPhone:t,setSiteGutter:r,setSiteGutterPhone:a,siteLengthUnits:n}=he(),s=Z_(Wb(),{gutter:o,phone:t,gutterUnit:n.siteGutterUnit}),l=s?.key==="site_gutter_phone",d=_i(Rb("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 qq({persist:e}){let{blockGap:o,blockGapPhone:t,setBlockGap:r,setBlockGapPhone:a,siteLengthUnits:n}=he(),s=G_(Wb(),{gap:o,phone:t}),l=s?.key==="block_gap_phone",d=s?.followsPx==null?null:{figure:s.followsPx,unit:ke(n.blockGapUnit)},c=_i(Rb("blockGap",l?"mobile":"desktop"),s?.value??null,l?a:r,e,d);return s?ve(j_,{value:s.value,onChange:c.write,followsPx:c.rest,followsUnit:c.length.unit,length:c.length}):null}function Yq({persist:e}){return un($s,{children:[ve(Kq,{persist:e}),ve(Vq,{persist:e}),ve(qq,{persist:e})]})}function Xq(e){return{card_shadow:e}}function Zq(e){return e===null?{shadow_color:null}:{shadow_color:Nq(e)}}function Jq(e){return{hover_effect:e}}function Qq({persist:e}){let{cardShadow:o,setCardShadow:t,shadowColor:r,setShadowColor:a,hoverEffect:n,setHoverEffect:s}=he();return un($s,{children:[ve(H_,{value:o,onChange:l=>{t(l),e(Xq(l),!0)}}),ve(z_,{value:r,onChange:l=>{a(l),e(Zq(l),l===null)}}),ve(K_,{value:n,onChange:l=>{s(l),e(Jq(l),!0)}})]})}function eY(e){return{photography_grayscale:e}}function oY({persist:e}){let{photographyGrayscale:o,setPhotographyGrayscale:t}=he();return ve(q_,{value:o,onChange:r=>{t(r),e(eY(r),!0)}})}function tY({persist:e}){return ve($s,{children:ve(oY,{persist:e})})}function rY(e){return{share_button_on_posts:e}}function aY({persist:e}){let{shareButtonOnPosts:o,setShareButtonOnPosts:t}=he();return ve(Y_,{value:o,onChange:r=>{t(r),e(rY(r),!0)}})}function js(){let{websiteName:e}=he();return e?.trim()||jk}function Kp({themeFromDocument:e=!1,tokenRef:o,siteId:t,onNotify:r,tab:a,onTabChange:n,initialTab:s,revealPageGroup:l=!1,onPageGroupRevealed:d}){let{persist:c}=Ss({themeFromDocument:e,tokenRef:o,siteId:t,onResult:C=>{let w=X1(C);w&&r?.(w.msg,w.tone)}}),[f,u]=Hb(s??zs[0].id),p=a!==void 0,h=p?a:f,I=p?n??(()=>{}):u,g=zs.find(C=>C.id===h)??zs[0];return un(Oq,{children:[ve(lY,{activeId:g.id,onSelect:I}),un("div",{id:Rq(Mb,g.id),className:Mq,role:"tabpanel","aria-labelledby":Aq(Mb,g.id),children:[h===Gs&&un($s,{children:[ve(jq,{themeFromDocument:e,persist:c}),!e&&ve(Qq,{persist:c}),!e&&ve(Yq,{persist:c}),!e&&ve(tY,{persist:c}),!e&&ve(aY,{persist:c}),ve(nY,{reveal:l,onRevealed:d})]}),h==="theme"&&ve(Hq,{themeFromDocument:e,persist:c}),h==="text"&&ve(Wq,{themeFromDocument:e,persist:c})]})]})}function nY({reveal:e,onRevealed:o}){let[t,r]=Hb(!0),a=Pq(o);return a.current=o,Tq(()=>{if(!e)return;r(!0);let n=requestAnimationFrame(()=>{document.getElementById(sA)?.scrollIntoView({block:"start"}),a.current?.()});return()=>cancelAnimationFrame(n)},[e]),ve(kq,{title:i("This page"),open:t,onToggle:r,id:sA,children:ve(sY,{})})}function sY(){let{fields:e,values:o,readOnly:t,onChange:r}=Cq(),a=Object.fromEntries(Ai.filter(n=>n in e).map(n=>[n,e[n]]));return Object.keys(a).length===0?ve(Eq,{variant:"none",icon:!1,message:i("This page has no look of its own to set.")}):ve(vq,{fields:a,values:o,onChange:r,readOnly:t,tabs:!1,idPrefix:"this-page",ariaLabel:i("This page")})}function lY({activeId:e,onSelect:o}){return ve("div",{className:"es-insp-tabs",children:ve(_q,{variant:"underline",block:!0,labelsFit:!0,"aria-label":i("Styles"),idPrefix:Mb,value:e,onChange:o,items:zs.map(t=>{let r=i(t.label);return{id:t.id,icon:t.icon,label:r}})})})}import{InspectorIconButton as IY}from"efficient-easel/chrome";import{Button as xA,Dialog as gY,FormField as bY,Input as IA,PopupMenu as yY,PopupMenuItem as gA,toast as bA}from"efficient-shell/ui";import{LayersTree as SY,TreeGroupLabel as wY,TreeRow as yA,TreeRowAction as Xp}from"efficient-easel/tree";import{AddIcon as CY,DuplicateIcon as vY,PageIcon as kY,SettingsIcon as TY}from"efficient-easel/icons";import{PagesIcon as PY}from"efficient-easel/rail";import{useEaselHost as EY}from"efficient-easel/screen/lib/host";import{useEaselSession as vA}from"efficient-easel/screen/lib/session-context";import{useCallback as Vp,useEffect as iY,useSyncExternalStore as dY}from"react";import{useScreenDocument as pA}from"efficient-easel/screen/components/ScreenDocumentContext";var dA=new WeakMap;function Ri(e){let o=dA.get(e);return o||(o={rows:null,loading:null,listeners:new Set},dA.set(e,o)),o}function Ub(e,o){e.rows=o;for(let t of e.listeners)t()}var qp=new Set;function Yp(e,o){o?qp.add(e):qp.delete(e)}function cA(e){let o=Ri(e),t=e.listPages().then(r=>Ub(o,qp.size?r.filter(a=>!qp.has(a.id)):r),()=>Ub(o,[])).finally(()=>{o.loading===t&&(o.loading=null)});return o.loading=t,t}var fA=()=>null,cY=()=>()=>{};function Li(){let{adapter:e,ready:o}=pA(),t=Vp(l=>{let{listeners:d}=Ri(e);return d.add(l),()=>d.delete(l)},[e]),r=Vp(()=>Ri(e).rows,[e]),a=dY(o?t:cY,o?r:fA,fA);iY(()=>{if(!o)return;let l=Ri(e);l.rows===null&&!l.loading&&cA(e)},[e,o]);let n=Vp(()=>o?cA(e):Promise.resolve(),[e,o]),s=Vp(l=>Ub(Ri(e),l),[e]);return{rows:a,reload:n,setRows:s,getRows:r}}function fY(e,o){return e?.find(t=>t.slug===o)?.label?.trim()||`/${o}`}function uA(){let{currentSlug:e}=pA(),{rows:o}=Li();return fY(o,e)}import{canDuplicatePage as OY,DuplicatePageDialog as _Y,uniqueSlug as SA}from"efficient-easel/page-copy";var wA="sf-editor-pages-collapsed-groups";function AY(){let e=vA(),{siteId:o,templateId:t}=CA(),r=to(e).pages;if(!(!r.duplicate||t))return(a,n)=>r.duplicate(a.id,{...n,...o?{siteId:o}:{}})}function kA({onNavigate:e,onClose:o,activeSurface:t,onPreviewSurface:r}){let a=vA().chrome?.pageRows,n=EY(),{adapter:s,capabilities:l,ready:d,currentSlug:c}=CA(),f=js(),{rows:u,reload:p,setRows:h,getRows:I}=Li(),[g,C]=pa(""),[w,T]=pa(!1),[y,b]=pa(null),[P,H]=pa(!1),[E,W]=pa(""),O=mY(),D=AY(),[v,_]=pa(null),[A,F]=pa(()=>{if(typeof window>"u")return new Set;try{let M=window.localStorage.getItem(wA);return new Set(M?JSON.parse(M):[])}catch{return new Set}});uY(()=>{try{window.localStorage.setItem(wA,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}),$=hA(()=>QT(u??[]),[u]),X=g.trim().toLowerCase(),ee=M=>!X||M.toLowerCase().includes(X),Fe=M=>X?!0:!A.has(M),Oe=hA(()=>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:SA(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(eE(i("New popup"),Oe));await p(),e(M.slug)}catch{b(i("Couldn\u2019t add the popup \u2014 please retry."))}finally{T(!1)}}},_e=hY(null),[Ne,no]=pa(null),yo=()=>{if(!be)return ze();if(Ne)return no(null);let M=_e.current?.getBoundingClientRect();M&&no({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;Yp(M.id,!0),h(Be),b(null),_t&&Be[0]&&e(Be[0].slug);let hr=()=>{Yp(M.id,!1);let Ze=I()??[];if(Ze.some(Ca=>Ca.id===M.id))return;let xr=[...Ze];xr.splice(Math.max(0,Math.min(po,xr.length)),0,M),h(xr)};bA.undoable(i("Deleted \u201C{name}\u201D",{name:M.label}),{actionLabel:i("Undo"),commit:async Ze=>{await ye(M.id,Ze),Yp(M.id,!1)},undo:()=>{hr(),_t&&e(M.slug)},onFail:()=>{hr(),bA.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=Ua(M),Be=JT(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&&OY(M),xr=Ze||l.pageCreationInAdminForm||ye?Fi(mA,{children:[Ze&&Pe(Xp,{kind:"plain",label:i("Duplicate \u201C{name}\u201D",{name:M.label}),disabled:w,onClick:()=>_(M),children:Pe(vY,{size:13})}),l.pageCreationInAdminForm&&Pe(Xp,{kind:"plain",label:i("Page settings for \u201C{name}\u201D",{name:M.label}),onClick:()=>Me(M.slug),children:Pe(TY,{size:13})}),ye&&Pe(Xp,{kind:"delete",label:i("Delete \u201C{name}\u201D",{name:M.label}),disabled:w,onClick:()=>ie(M),children:Pe(zb,{name:"trash",size:13,strokeWidth:1.7,rounded:!0})})]}):void 0;return Pe(yA,{icon:Pe(kY,{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 Fi(pY,{children:[Pe(wY,{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(yA,{icon:M.icon,name:M.label,selected:Le,onSelect:()=>r(M.key),badge:{label:i("Preview"),tone:"warning"},actions:Pe(Xp,{kind:"plain",label:i("Open the {name} in a new tab",{name:M.label}),onClick:()=>window.open(M.href,"_blank","noopener,noreferrer"),children:Pe(zb,{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===Ox||ye.label===Ex?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 Fi("div",{className:"sf-pages",children:[Pe(xY,{icon:Pe(PY,{}),title:i("Pages"),context:f,actions:Pe(IY,{buttonRef:_e,label:be?i("Add"):i("New page"),hasPopup:be?"menu":void 0,expanded:be?Ne!==null:void 0,onClick:yo,children:Pe(CY,{size:15})})}),Ne&&Pe(yY,{portal:!0,style:{top:Ne.top,right:Ne.right},onClose:()=>no(null),children:Fi("div",{role:"menu","aria-label":i("Add"),children:[Pe(gA,{role:"menuitem",onClick:()=>{no(null),ze()},children:i("Page")}),Pe(gA,{role:"menuitem",disabled:w,onClick:()=>{no(null),Te()},children:i("Popup")})]})}),Pe("div",{className:"sf-pages-find",children:Pe(IA,{type:"search",leftIcon:Pe(zb,{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(SY,{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(_Y,{source:{title:v.label,slug:v.slug},taken:Oe,host:_c(),duplicate:M=>D(v,M),onClose:()=>_(null),onDuplicated:M=>{_(null),p(),e(M.slug)}},v.id),Pe(gY,{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:Fi(mA,{children:[Pe(xA,{variant:"secondary",onClick:()=>H(!1),children:i("Cancel")}),Pe(xA,{onClick:()=>{Ke()},disabled:w||!E.trim(),loading:w,children:i("Add page")})]}),children:Pe(bY,{label:i("Page name"),htmlFor:O,hint:E.trim()?i("URL: /{slug}",{slug:SA(E,Oe)}):void 0,error:y??void 0,children:Pe(IA,{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 EA}from"react/jsx-runtime";import{createContext as LY,useCallback as FY,useContext as BY,useMemo as DY,useState as NY}from"react";import{CanvasChromeContext as MY}from"efficient-easel/easel";import{useSelectHandler as HY}from"efficient-easel/draw/client";import{parseHexColor as RY}from"efficient-shell/format";var Zp=["chat-bubble-left-right","chat-bubble-oval-left-ellipsis","chat","megaphone","phone","sparkles"],Ks=Zp[0];var mn="right";function Jp(e){return Zp.includes(e??"")?e:Ks}function TA(e){return e==="left"?"left":mn}function PA(e){return e&&RY(e)===e.toLowerCase()?e.toLowerCase():""}var OA="chat",Qp={enabled:!0,title:"",subtitle:"",greeting:"",launcherColor:"",launcherIcon:"",launcherPosition:mn,launcherLabel:"",showOnPhones:!0};function w_e(e){return{enabled:e.enabled,title:e.title,subtitle:e.subtitle,greeting:e.greeting,launcherColor:PA(e.launcherColor),launcherIcon:e.launcherIcon?Jp(e.launcherIcon):"",launcherPosition:TA(e.launcherPosition),launcherLabel:e.launcherLabel??"",showOnPhones:e.showOnPhones!==!1}}var _A=LY({chat:Qp,setChat:()=>{},setSelected:()=>{},setSelectHandler:()=>{}});function C_e({children:e,chat:o=Qp,onChatChange:t}){let[r,a]=NY(!1),n=FY(c=>t?.(c),[t]),{select:s,setSelectHandler:l}=HY(),d=DY(()=>({selected:()=>r?OA:null,select:c=>c===OA&&s()}),[r,s]);return EA(_A.Provider,{value:{chat:o,setChat:n,setSelected:a,setSelectHandler:l},children:EA(MY.Provider,{value:d,children:e})})}var eu=()=>BY(_A);import{jsx as $b}from"react/jsx-runtime";import{DesktopIcon as WY,PhoneIcon as UY,TabletIcon as zY}from"efficient-easel/icons";import{VIEW_TIERS as $Y,VIEW_TIER_LABEL as GY}from"efficient-easel/draw";var jY={desktop:$b(WY,{}),tablet:$b(zY,{}),mobile:$b(UY,{})},AA=$Y.map(e=>({id:e,get label(){return i(GY[e])},icon:jY[e]}));import{PreviewDeviceContext as Qfe}from"efficient-easel/draw/client";import{jsx as KY}from"react/jsx-runtime";import{createContext as VY,useCallback as RA,useContext as qY,useMemo as YY,useRef as XY}from"react";var ZY=Object.fromEntries(Lc.map(e=>[e,{value:"",error:null}])),LA=VY({links:Vk,rows:ZY,canSave:!1,saveLink:async()=>({ok:!1,error:"There is no website to save to."}),openPanel:()=>{},setOpenHandler:()=>{}});function L_e({children:e,value:o}){let t=XY(()=>{}),r=RA(()=>t.current(),[]),a=RA(s=>{t.current=s},[]),n=YY(()=>({...o,openPanel:r,setOpenHandler:a}),[o,r,a]);return KY(LA.Provider,{value:n,children:e})}var Bi=()=>qY(LA);import{jsx as JY}from"react/jsx-runtime";import{createContext as QY,useContext as eX,useMemo as oX,useState as tX}from"react";var FA=QY(null);function N_e({children:e}){let[o,t]=tX(null),r=oX(()=>({surface:o,setSurface:t}),[o]);return JY(FA.Provider,{value:r,children:e})}function BA(){return eX(FA)??{surface:null,setSurface:()=>{}}}import{createPreviewSelectionContext as rX}from"efficient-easel/draw/client";var Di="Scrolling Bar",{Provider:W_e,useSelection:DA}=rX("selectedHeroId"),U_e="data-sf-hero-ticker";function z_e(e){return`${e}::ticker`}function $_e(e){return!e||!e.endsWith("::ticker")?null:e.slice(0,-8)||null}var NA=["","","","","",""],MA="#ticker",Ni="strip",Gb={sectionAccent:er,line:!1};function aX(e){return(Array.isArray(e.tickerItems)?e.tickerItems:[]).map(o=>typeof o?.text=="string"?o.text:"").filter(o=>o.trim()!=="")}function jb(e){return aX(e).length>0}function K_e(e){return e.showTicker!==!1&&jb(e)}import{createPreviewSelectionContext as nX}from"efficient-easel/draw/client";var{Provider:Y_e,useSelection:ou}=nX("selectedHeroPart");var hn=["media","image","image2"],xn={media:"Media",image:"Image",image2:"Image 2"},Mi={media:"heroMedia",image:"heroImage",image2:"heroImage2"};function tu(e,o){return e==="image"&&Ml(o)>1?"Image 1":xn[e]}var Q_e="Video file",e1e="Upload a video file",o1e="AV1 file",t1e="Upload an AV1 file";function sX(e,o){return _l("mediaType",Na,o,[e])}var lX=new Set(Object.keys(Nl)),HA="heroPart";function iX(e,o){return{...o,[HA]:e}}function r1e(e,{parts:o={},onlyFor:t,fallback:r,rules:a}){let n={...e},s=[...Object.values(o).flat(),...Na.flatMap(l=>t[l])].filter(l=>!(l in e));if(s.length)throw new Error(`heroMediaFields: ${s.join(", ")} is not a row of this block`);for(let l of Na)for(let d of t[l])n[d]=oo(n[d],sX(l,r));for(let[l,d]of Object.entries(a??{}))d&&(n[l]=oo(n[l],d));for(let l of hn)for(let d of o[l]??[])n[d]=iX(l,n[d]);return n}function dX(e){let o=e?.[HA];return hn.includes(o)?o:null}function WA(e,o){let t={};for(let[r,a]of Object.entries(e))dX(a)===o&&(t[r]=a);return t}function UA(e){if(!lX.has(e.type))return[];let o=[{part:"media",label:xn.media,depth:0}];return dT(e.type,e.props.mediaType)!=="video"&&(o.push({part:"image",label:tu("image",e.props),depth:1}),Ml(e.props)>1&&o.push({part:"image2",label:tu("image2",e.props),depth:1})),o}function Hi(e,o){return`${e}::${o}`}function zA(e){if(!e)return null;let o=e.lastIndexOf("::");if(o<=0)return null;let t=e.slice(o+2);return hn.includes(t)?{nodeId:e.slice(0,o),part:t}:null}var $A="data-sf-hero-part";import{jsx as Ee,jsxs as ya,Fragment as sM}from"react/jsx-runtime";import{useEasel as vle,useRootFields as kle}from"efficient-easel/easel";import{Button as Tle,EmptyState as Ple}from"efficient-shell/ui";function GA({kind:e,pageName:o}){return{name:o?.trim()||i("This page"),kindLabel:Ua({kind:e})?i("Template"):i("Page")}}import{headWords as cM,InspectorHead as Ele,InspectorIconButton as lM}from"efficient-easel/chrome";import{DuplicateIcon as Ole,TrashIcon as _le}from"efficient-easel/icons";import{panelFieldsOf as Ale}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 pX,BlockBoxIcon as uX,BlockButtonIcon as mX,BlockDividerIcon as KA,BlockFooterIcon as VA,BlockHeadingIcon as hX,BlockProductIcon as xX,BlockSocialIcon as IX,BlockTextIcon as gX,CardPaymentIcon as bX,ChatIcon as yX,AccountIcon as SX,GlobeIcon as wX,GridIcon as CX,ImageIcon as Vb,MapIcon as vX,MediaIcon as kX,PageIcon as TX}from"efficient-easel/icons";import{jsx as Kb,Fragment as cX,jsxs as fX}from"react/jsx-runtime";var jA=fX(cX,{children:[Kb("circle",{cx:"9",cy:"20",r:"1.3"}),Kb("circle",{cx:"18",cy:"20",r:"1.3"}),Kb("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 PX={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:jA,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"})},EX=N("rect",{x:"4",y:"4",width:"16",height:"16",rx:"2.5"}),OX={footer:VA,Footer:VA,Divider:KA,FooterDivider:KA,Banner:pX,Flex:uX,FooterSocial:IX,FooterPayment:bX,page:TX,website:wX,AccountBlock:SX,chat:yX,Heading:hX,Text:gX,ImageBlock:Vb,ButtonBlock:mX,LocationMap:vX,Grid:CX,ProductRef:xX,heroMedia:kX,heroImage:Vb,heroImage2:Vb},_X={MenuBlock:"FooterMenu",EmailFormBlock:"FooterEmailSignup",SocialLogosBlock:"FooterSocial",PaymentLogosBlock:"FooterPayment",SiteHeader:"header",SiteFooter:"footer"};function In({type:e,size:o=16,className:t}){let r=_X[e]??e,a=OX[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:PX[r]??EX})}import{PanelHideButton as iM}from"efficient-easel/screen/components/SidePanelHead";import{useEaselSession as Rle}from"efficient-easel/screen/lib/session-context";import{jsx as Re,jsxs as Wi,Fragment as AX}from"react/jsx-runtime";import{useEffect as RX,useId as qA,useState as LX}from"react";import{IconPicker as FX}from"efficient-shell/ui";import{SettingsDefaultReset as BX,SettingsField as Ui,SettingsSegmented as DX,SettingsSwitch as YA}from"efficient-easel/panel";import{ButtonIcon as NX,ButtonIconIcon as MX,EyeIcon as HX,PhoneIcon as WX,PlacementIcon as UX,TypeIcon as zX}from"efficient-easel/icons";var $X="Chat with us",GX="We usually reply within a few minutes",jX="Hi! Ask us anything \u2014 about a wheel, an order, or fitment. Leave your details and we\u2019ll reply.";function ru({label:e,value:o,placeholder:t,onCommit:r,multiline:a=!1,hint:n}){let[s,l]=LX(o);RX(()=>l(o),[o]);let d=()=>{s!==o&&r(s)};return Re(Ui,{label:e,icon:Re(zX,{}),changed:o!=="",action:Re(zi,{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 zi({label:e,changed:o,onReset:t}){return Re(BX,{words:de()?.panel,label:e,changed:o,onReset:t})}function KX({label:e,icon:o,checked:t,fallback:r,onChange:a,hint:n}){let s=qA();return Re(Ui,{label:e,labelId:s,icon:o,changed:t!==r,action:Wi("span",{className:"inline-flex items-center gap-2",children:[Re(YA,{checked:t,onChange:a,ariaLabelledBy:s}),Re(zi,{label:e,changed:t!==r,onReset:()=>a(r)})]}),hint:n})}var VX=Zp.map(e=>({value:e,icon:Jc(e)}));function qX(){let{theme:e}=he(),o=xo(e).themes[0];return Fl(o)??o?.accent??""}function XA(){let{chat:e,setChat:o}=eu(),t=qA(),r=qX(),a=e.launcherIcon?Jp(e.launcherIcon):Ks;return Wi(AX,{children:[Re(Ui,{label:i("Show the chat bubble"),labelId:t,icon:Re(HX,{}),changed:!e.enabled,action:Wi("span",{className:"inline-flex items-center gap-2",children:[Re(YA,{checked:e.enabled,onChange:n=>o({enabled:n}),ariaLabelledBy:t}),Re(zi,{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.")}),Wi(kg,{title:i("Look"),children:[Re(Yo,{label:i("Button color"),icon:Re(NX,{}),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(Ui,{label:i("Icon"),icon:Re(MX,{}),value:Re(ag,{value:a}),changed:a!==Ks,action:Re(zi,{label:i("Icon"),changed:a!==Ks,onReset:()=>o({launcherIcon:""})}),children:Re(FX,{label:i("Icon"),value:a,options:VX,onChange:n=>o({launcherIcon:n===Ks?"":n})})}),Re(Ui,{label:i("Position"),icon:Re(UX,{}),changed:e.launcherPosition!==mn,action:Re(zi,{label:i("Position"),changed:e.launcherPosition!==mn,onReset:()=>o({launcherPosition:mn})}),children:Re(DX,{options:[{label:i("Right"),id:"right"},{label:i("Left"),id:"left"}],value:e.launcherPosition,ariaLabel:i("Position"),onChange:n=>o({launcherPosition:n})})}),Re(ru,{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(KX,{label:i("Show on phones"),icon:Re(WX,{}),checked:e.showOnPhones,fallback:Qp.showOnPhones,onChange:n=>o({showOnPhones:n})})]}),Wi(kg,{title:i("Wording"),children:[Re(ru,{label:i("Title"),value:e.title,placeholder:$X,onCommit:n=>o({title:n})}),Re(ru,{label:i("Subtitle"),value:e.subtitle,placeholder:GX,onCommit:n=>o({subtitle:n})}),Re(ru,{label:i("Greeting message"),value:e.greeting,placeholder:jX,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 gn,Fragment as hy,jsxs as oR}from"react/jsx-runtime";import{useEffect as vZ,useId as QA,useState as eR}from"react";import{SettingsField as kZ}from"efficient-easel/panel";import{jsx as hZ}from"react/jsx-runtime";import{forwardRef as YX,createElement as qb}from"react";var ZA={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=YX(({color:n="currentColor",size:s=24,stroke:l=2,title:d,className:c,children:f,...u},p)=>qb("svg",{ref:p,...ZA[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&&qb("title",{key:"svg-title"},d),...r.map(([h,I])=>qb(h,I)),...Array.isArray(f)?f:[f]]));return a.displayName=`${t}`,a};var XX=[["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"}]],Yb=ce("outline","brand-facebook","BrandFacebook",XX);var ZX=[["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"}]],Xb=ce("outline","brand-instagram","BrandInstagram",ZX);var JX=[["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"}]],Zb=ce("outline","brand-line","BrandLine",JX);var QX=[["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"}]],Jb=ce("outline","brand-linkedin","BrandLinkedin",QX);var eZ=[["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",eZ);var oZ=[["path",{d:"M15 10l-4 4l6 6l4 -16l-18 7l4 2l2 6l3 -4",key:"svg-0"}]],ey=ce("outline","brand-telegram","BrandTelegram",oZ);var tZ=[["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"}]],oy=ce("outline","brand-tiktok","BrandTiktok",tZ);var rZ=[["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"}]],ty=ce("outline","brand-wechat","BrandWechat",rZ);var aZ=[["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"}]],ry=ce("outline","brand-whatsapp","BrandWhatsapp",aZ);var nZ=[["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"}]],ay=ce("outline","brand-x","BrandX",nZ);var sZ=[["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"}]],ny=ce("outline","brand-youtube","BrandYoutube",sZ);var lZ=[["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"}]],sy=ce("filled","brand-facebook-filled","BrandFacebookFilled",lZ);var iZ=[["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"}]],ly=ce("filled","brand-instagram-filled","BrandInstagramFilled",iZ);var dZ=[["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"}]],iy=ce("filled","brand-linkedin-filled","BrandLinkedinFilled",dZ);var cZ=[["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"}]],dy=ce("filled","brand-pinterest-filled","BrandPinterestFilled",cZ);var fZ=[["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"}]],cy=ce("filled","brand-tiktok-filled","BrandTiktokFilled",fZ);var pZ=[["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"}]],fy=ce("filled","brand-whatsapp-filled","BrandWhatsappFilled",pZ);var uZ=[["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"}]],py=ce("filled","brand-x-filled","BrandXFilled",uZ);var mZ=[["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"}]],uy=ce("filled","brand-youtube-filled","BrandYoutubeFilled",mZ);var WAe="outline",au={fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},xZ={},my={fillRule:"evenodd"},IZ=[["path",{...au,d:"M21 4L3 11L7 13L9 19L12 15L17 20z"}],["path",{...my,d:"M21 4L3 11L7 13L9 19L12 15L17 20zM15.212 8.939 10.576 13.576 11.424 14.424 16.061 9.788z"}]],gZ=[["path",{...au,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",{...xZ,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("")}]],bZ=[["path",{...au,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",{...au,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",{...my,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",{...my,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("")}]],yZ=ce("filled","brand-telegram-filled","BrandTelegramFilled",IZ),SZ=ce("filled","brand-line-filled","BrandLineFilled",gZ),wZ=ce("filled","brand-wechat-filled","BrandWechatFilled",bZ),CZ={instagram:{outline:Xb,solid:ly},facebook:{outline:Yb,solid:sy},tiktok:{outline:oy,solid:cy},youtube:{outline:ny,solid:uy},x:{outline:ay,solid:py},linkedin:{outline:Jb,solid:iy},pinterest:{outline:Qb,solid:dy},whatsapp:{outline:ry,solid:fy},telegram:{outline:ey,solid:yZ},line:{outline:Zb,solid:SZ},wechat:{outline:ty,solid:wZ}};function JA({platform:e,iconStyle:o,size:t}){let r=CZ[e][o];return hZ(r,{size:t,stroke:1.75,"aria-hidden":"true",focusable:"false"})}var TZ={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 PZ({platform:e}){let{rows:o,saveLink:t}=Bi(),{value:r,error:a}=o[e],[n,s]=eR(r),[l,d]=eR(!1),c=QA(),f=QA();vZ(()=>s(r),[r]);let u=async()=>{if(n.trim()===r){n!==r&&s(r);return}d(!0),await t(e,n),d(!1)},p=Kk[e];return oR(hy,{children:[gn(kZ,{label:i(p),htmlFor:c,icon:gn(JA,{platform:e,iconStyle:"outline",size:18}),children:gn("input",{id:c,type:"text",inputMode:"url",value:n,placeholder:TZ[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&&gn("p",{id:f,className:"sf-note sf-note--error",role:"alert",children:a})]})}function tR({unavailable:e}){let{canSave:o}=Bi();return!o&&e?gn(hy,{children:e}):oR(hy,{children:[gn("p",{className:"es-field-hint",children:i("Paste a link to each profile. A platform left empty shows nothing on the site.")}),Lc.map(t=>gn(PZ,{platform:t},t))]})}import{jsx as vn,Fragment as Aee,jsxs as Ree}from"react/jsx-runtime";import{useId as Lee,useMemo as Fee}from"react";import{useEasel as Bee}from"efficient-easel/easel";import{SettingsField as Dee,SettingsSwitch as Nee}from"efficient-easel/panel";import{EyeIcon as Mee}from"efficient-easel/icons";import{fieldShownInView as Hee}from"efficient-easel/fields";import{usePreviewDevice as Wee}from"efficient-easel/draw/client";import{jsx as yn,Fragment as PJ,jsxs as EJ}from"react/jsx-runtime";import{createContext as OJ,useContext as _J,useLayoutEffect as OR,useMemo as uu,useRef as _R,useState as Cy}from"react";import{useEasel as AR,useSelectedFields as AJ}from"efficient-easel/easel";import{fieldShownInView as RJ,Inspector as LJ,planFields as vy}from"efficient-easel/fields";function rR({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 mJ}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as hJ,deviceMetaOf as gR}from"efficient-easel/screen/lib/document/device-fields";import{jsx as Co}from"react/jsx-runtime";import{DirectionDownIcon as FZ,DirectionIcon as BZ,DirectionLeftIcon as DZ,DirectionRightIcon as NZ,DirectionUpIcon as MZ,EntranceBounceIcon as HZ,EntranceFadeIcon as WZ,EntranceFlipIcon as UZ,EntranceGlideIcon as zZ,EntranceRevealIcon as $Z,EntranceRiseIcon as GZ,EntranceScaleIcon as jZ,EntranceSpinIcon as KZ,NoSymbolIcon as VZ}from"efficient-easel/icons";import{NoControlMark as qZ,noControlField as YZ}from"efficient-easel/screen/lib/document/panel-no-control-mark";import{customize as XZ,group as ZZ}from"efficient-easel/screen/lib/document/box-fields";import{ENTRANCE_FROM as JZ,ENTRANCE_FROM_DEFAULT as fR,ENTRANCE_KINDS as pR,ENTRANCE_KINDS_WITH_FROM as QZ,entranceAttrs as eJ,playEntrance as oJ,readEntrance as tJ}from"efficient-shell/format";import{jsx as gy}from"react/jsx-runtime";import{ClockIcon as AZ,DurationIcon as RZ}from"efficient-easel/icons";import{MOTION_TIMING as iR}from"efficient-shell/format";import{useSelectedHost as LZ}from"efficient-easel/easel";import{MOTION_EASING as EZ,MOTION_TIMING as aR,motionSeconds as nR}from"efficient-shell/format";var xy="none",nu=[{label:"None",value:"none"},{label:"Marquee",value:"scroll"}];function QAe(e){return co(nu,xy,e)}var su="_gLoop",$i={field:"loop",is:"scroll"},Gi="left",Iy=[{label:"Left",value:"left",cell:"left"},{label:"Right",value:"right",cell:"right"},{label:"Up",value:"up",cell:"top"},{label:"Down",value:"down",cell:"bottom"}],OZ={left:"storefront-ticker",right:"storefront-ticker-right",up:"storefront-ticker-up",down:"storefront-ticker-down"};function sR(e){return co(Iy,Gi,e)}function eRe(e){return e==="up"||e==="down"}function lu(e){return nR("loop","duration",e.loopDuration!=null?e.loopDuration:e.speed)}var oRe=aR.loop.duration.default,_Z=aR.loop.delay.default;function lR(e){return nR("loop","delay",e.loopDelay)}function tRe(e,o,t=_Z){return`${OZ[e]} ${o}s ${EZ.loop}${t?` ${t}s`:""} infinite`}function Vs(e){let{min:o,max:t,step:r,default:a}=iR[e].duration;return Oo("Duration",gy(RZ,{}),o,t,r,a,"s")}function qs(e){let{min:o,max:t,step:r,default:a}=iR[e].delay;return Oo("Delay",gy(AZ,{}),o,t,r,a,"s")}function Ys(e,o){let t=e.render,r=a=>{let n=LZ();return t({...a,value:o(a.value,n?.values)})};return{...e,render:a=>gy(r,{...a})}}function iu({readsSpeed:e}){return Ys(Vs("loop"),(o,t)=>lu({loopDuration:o,speed:e?t?.speed:void 0}))}function du(){return Ys(qs("loop"),e=>lR({loopDelay:e}))}var dR="_gEntrance";var rJ={none:"None",fade:"Fade",rise:"Rise",scale:"Scale",glide:"Glide",bounce:"Bounce",flip:"Flip",reveal:"Reveal",spin:"Spin"},aJ={top:"Top",bottom:"Bottom",left:"Left",right:"Right"},nJ={top:()=>Co(FZ,{}),bottom:()=>Co(MZ,{}),left:()=>Co(NZ,{}),right:()=>Co(DZ,{})},uR="Entrance",yy=pR.filter(e=>e!=="none"),mR=e=>({any:[{field:tt.kind,in:e},{all:[{field:tt.kind,set:!1},{field:Dl,in:e}]}]}),cR=(e,o)=>Al(qo.slice(0,qo.indexOf(e)+1).reverse().map(t=>we(tt.kind,t)),t=>({field:t,set:!0}),t=>t===tt.kind?mR(o):{field:t,in:o}),sJ={any:[mR(yy),...qo.slice(1).map(e=>({field:we(tt.kind,e),in:yy}))]},lJ=qo.flatMap(e=>[[[we(tt.from,e)],cR(e,QZ)],[[we(tt.duration,e),we(tt.delay,e)],cR(e,yy)]]),iJ={none:()=>Co(VZ,{}),fade:()=>Co(WZ,{}),rise:()=>Co(GZ,{}),scale:()=>Co(jZ,{}),glide:()=>Co(zZ,{}),bounce:()=>Co(HZ,{}),flip:()=>Co(UZ,{}),reveal:()=>Co($Z,{}),spin:()=>Co(KZ,{})},hR="data-entrance-tile";function dJ({kind:e}){let{attrs:o}=eJ(tJ(e,fR));return Co("span",{className:"sf-entrance-stage",[hR]:e,children:Co("i",{...o,children:iJ[e]()})})}var cJ=(e,o)=>{let t=e.querySelector(`[${hR}="${o}"] > i`);t&&oJ(t)},fJ="Effect",pJ=()=>bf(tt.kind,{label:uR,tileWord:fJ,values:pR,fallback:"none",word:e=>rJ[e],picture:e=>Co(dJ,{kind:e}),read:(e,o)=>Zh(e,o).kind,preview:cJ}),by=(e,o)=>gf(tt[e],o,(t,r)=>Zh(t,r)[e]),uJ=JZ.map(e=>({label:aJ[e],value:e,picture:nJ[e]()}));function jt(){let e={[dR]:ZZ(uR,{dot:sJ}),...pJ(),[Dl]:YZ({type:"custom",render:()=>Co(qZ,{})},"always"),_cEntrance:XZ(),...by("from",Es("From",Co(BZ,{}),uJ,fR)),...by("duration",Vs("entrance")),...by("delay",qs("entrance"))};return La(e,lJ)}import{DESIGN_GROUPS as Sy,SETTINGS_BUCKETS as xJ}from"efficient-easel/panel";import{BUCKET_KEY as bt,DESIGN_GROUP_KEY as cu}from"efficient-easel/screen/lib/document/field-buckets";var ji=xJ;var IJ="Editor only \u2014 not shown live",wy={"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",[IJ]:"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"},bR={"AlloyWheelsListing._gCards":"Design"},yR={"Text._gSpacing":"Size","Heading._gSpacing":"Size"};function xR(e,o,t){let r=`${e}.${o}`;return K(yR,r)??K(bR,r)??K(wy,t)}function gJ(e){return e==="Animation"?[bt.Animation]:[bt.Design,cu[e]]}function fu(...e){let o=[];for(let t of e)for(let r of Object.values(t)){let a=gR(r),n=fa(a?a.inner:r),s=n?K(wy,n.label):void 0;if(s)for(let l of gJ(s))o.includes(l)||o.push(l)}return o}var FRe=[...fu(Vf({tablet:!0,siteSide:!0}),lp("full"),ip(),cp(),Eg()),...Object.keys(Vf({tablet:!0,siteSide:!0})),...Object.keys(lp("full")),...Object.keys(ip()),...Object.keys(cp()),...Object.keys(Eg())],BRe=[...fu(ap()),...Object.keys(ap())],DRe=[...fu(sp()),...Object.keys(sp())],NRe=[...fu(jt()),...Object.keys(jt())],MRe=Object.keys(e_()),HRe=Object.keys(o_()),bJ={"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)"},SR={Content:["Content"],Size:["Size"],Design:["Design","Style"],Layout:["Layout"],Position:["Position"],Anchor:["Anchor"],Animation:["Animation"]},wR={_gAnchor:"repeated the Anchor group heading above it (two tabs, 11.0.0)"};{let e={...Vf({tablet:!0,siteSide:!0}),...lp("full"),...ip(),...cp(),...ap(),...sp(),...jt()};for(let o of Object.keys(wR)){let t=fa(e[o]),r=t?K(wy,t.label):void 0;if(!t||t.level!==2||!r||!SR[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 yJ=new Set(["_sContent","_sStyle","_sLayout","_sMedia"]),SJ=new Map([[bt.Design,"Content"],[bt.Animation,"Animation"],...Sy.map(e=>[cu[e],e])]);function wJ(e){let o=`${e}.`;return Object.keys(bJ).filter(t=>t.startsWith(o)).map(t=>t.slice(o.length))}function CJ(e,o){let t=gR(e),r=mJ(o);return t?hJ(t.tier,r):r}function vJ(e,o){let t=fa(o);return t?e==="Content"||e==="Animation"?MO(o,t.label):HO(o):o}function IR(e){return e==="Design"?Sy:["Animation"]}function CR(e,o){let t=[],r=new Set(wJ(o)),a=new Set,n=!1,s=null;for(let[p,h]of Object.entries(e)){let I=fa(h);if(yJ.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=SJ.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(wR,p)){let w=xR(o,p,I.label);if(I.level!==2||!w||!SR[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=xR(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 ${[...Sy,"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:CJ(h,I.label)]]})}let l=new Set(Object.entries(e).filter(([,p])=>fa(p)).map(([p])=>p));for(let[p,h]of[["BLOCK_KEY_GROUP",yR],["KEY_GROUP",bR]]){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=ji.filter(p=>IR(p).some(h=>c.has(h))),u={};for(let p of f){u[bt[p]]=rp(p,p===f[0]?f:null);for(let h of IR(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[cu[h]]=vg(h));for(let C of I)for(let[w,T]of C.entries)u[w]=vJ(h,T)}}return u}function WRe(e){return bt.Design in e?e:{[bt.Design]:rp("Design",null),[cu.Content]:vg("Content"),...e}}function URe(e){return ji.some(o=>bt[o]in e)}function zRe(e){let o=ji.filter(r=>bt[r]in e);if(o.length===0)return e;let t={...e};for(let r of o)t[bt[r]]=rp(r,r===o[0]?o:null);return t}import{jsx as kJ}from"react/jsx-runtime";import{EmptyState as TJ}from"efficient-shell/ui";function bn(){return kJ(TJ,{variant:"none",icon:!1,message:i("These settings apply to every view.")})}import{usePreviewDevice as FJ}from"efficient-easel/draw/client";import{deviceField as BJ}from"efficient-easel/screen/lib/document/device-fields";var pu=" text",vR="Text";function Ki(e){let o=e.rows.filter(t=>t.shown);return o.length===0||o.length===1&&o[0].labelled}function kR(e){return e.filter(Ki).map(o=>o.key)}function TR(e,o){let t=e.filter(a=>!Ki(a));if(t.length!==1)return null;let r=e.filter(Ki).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 PR(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 ER(e,o){if(e.size!==o.size)return!1;for(let t of e)if(!o.has(t))return!1;return!0}var ky=new Map,mu=new Set;function RR(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 DJ=Object.fromEntries(ji.map(e=>{let o=NO[e];return[e,yn(o,{},e)]})),LR=OJ(null),NJ={_partBody:BJ("each",{type:"custom",render:()=>yn(MJ,{})})};function MJ(){return yn(PJ,{children:_J(LR)})}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}=AJ(),p=uu(()=>a?{...c,...a.values}:c,[c,a?.values]),h=(ie,Me)=>a?.keys.has(ie)?a.onChange(ie,Me):u(ie,Me),I=FJ(),{appState:g,config:C}=AR(ie=>ie),w=rP(I,C,g.data.content??[],g.ui.itemSelector),T=n===void 0?WA(d,t):NJ,y=uu(()=>{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=Ax(y,p,w),[P,H]=Cy(()=>new Set(mu)),[E,W]=Cy(()=>new Set),O=_R(null),{bandRows:D,designBands:v,looseRows:_}=uu(()=>{let ie=new Map,Me=new Set,Ve=[];for(let J of vy(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=RJ({},I),F={key:pu,rows:Array.from({length:A?o:0},()=>({shown:!0,labelled:!0}))};OR(()=>{let ie=O.current?.parentElement;if(!ie)return;let Me=RR(ie,D),Ve=new Set(kR(Me)),J=TR([F,...Me.filter(Ae=>v.has(Ae.key))],RR(ie,_)[0].rows);J&&Ve.add(J),W(Ae=>ER(Ae,Ve)?Ae:Ve)});let z=uu(()=>PR(b,E),[b,E]),$=!Ki(F)&&!E.has(pu)?{key:pu,title:vR}:void 0,X=AR(ie=>ie.selectedItem)!==null,ee=a?.part??t??"",Fe=`${l}:${ee}:${String(I)}`,[Oe,ze]=Cy(()=>({tab:ky.get(Fe)})),Ke=`${l}:${ee}`,be=_R(null),Te={...w,node:p},_e=vy(b,{values:p,context:Te}).buckets,Ne=rR({allTabs:X,remembered:ky.get(Fe),inherited:be.current?.panel===Ke?be.current.tab:Oe.tab,buckets:_e,hasText:A&&o>0}),no=!A&&!_e.includes(Ne)&&(vy(Ax(y,p,{...w,device:"desktop"}),{values:p,context:{...Te,device:"desktop"}}).buckets.includes(Ne)||Ne==="Design"&&o>0);OR(()=>{be.current={panel:Ke,tab:Ne}});let yo=Ne==="Design";return yn(LR.Provider,{value:n??null,children:yn(Pg.Provider,{value:a?p:null,children:EJ(LJ,{fields:z,values:p,onChange:h,readOnly:f,allTabs:X,showWhenContext:Te,context:{itemWord:s},tab:Ne,onTab:ie=>{ky.set(Fe,ie),ze({tab:ie})},tabIcons:DJ,idPrefix:l,ariaLabel:i("Section settings"),lead:yo?e:null,leadFold:$,closedFolds:P,onFold:(ie,Me)=>{Me?mu.delete(ie):mu.add(ie),H(new Set(mu))},children:[yn("span",{ref:O,hidden:!0}),no&&yn(bn,{})]})})})}import{useMemo as Cee}from"react";import{useEasel as vee}from"efficient-easel/easel";import{useSectionOps as kee}from"efficient-easel/screen/lib/document/use-section-ops";import{jsx as yt}from"react/jsx-runtime";import{EntranceRevealIcon as jJ,NoSymbolIcon as KJ,PercentIcon as MR,ScrollFadeInIcon as VJ,ScrollFadeOutIcon as qJ,ScrollMoveDownIcon as YJ,ScrollMoveUpIcon as XJ,ScrollParallaxIcon as ZJ,ScrollZoomInIcon as JJ,ScrollZoomOutIcon as QJ,ZoomInIcon as eQ}from"efficient-easel/icons";import{customize as oQ,group as tQ}from"efficient-easel/screen/lib/document/box-fields";import{SCROLL_EFFECTS as WR,SCROLL_EFFECTS_WITH_ZOOM as rQ,SCROLL_END as aQ,SCROLL_START as nQ,SCROLL_ZOOM as sQ}from"efficient-shell/format";import{parseFocal as zJ,formatFocal as $J,readScroll as GJ}from"efficient-shell/format";import{phoneKey as HJ,tabletKey as WJ}from"efficient-easel/screen/lib/content/view-tiers";var UJ=[{block:"HeroSlide",upload:"mediaImage",focus:Ma.image},{block:"HeroSlide",upload:"mediaImage2",focus:Ma.image2},{block:"HeroSingle",upload:"mediaImage",focus:Ma.image},{block:"HeroSingle",upload:"mediaImage2",focus:Ma.image2},{block:"ImageBlock",upload:"src",focus:"focal"}],FR=e=>[e,WJ(e),HJ(e)],pLe=[...new Set(UJ.flatMap(e=>FR(e.focus)))].sort();function BR(e,o){let[t,r,a]=FR(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"},DR="_gScroll",NR="_cScroll",hu=wc(Object.values(Ao));function Xs(e,o){return GJ(Bl(e,Ao.effect,o),Bl(e,Ao.zoom,o),Bl(e,Ao.start,o),Bl(e,Ao.end,o))}function xu(e){let o={desktop:Xs(e,"desktop"),tablet:Xs(e,"tablet"),phone:Xs(e,"phone")};return qo.every(t=>o[t].effect==="none")?null:o}function Ty(e){let o=Pk(e.desktop,e.tablet,e.phone),t=r=>{let a=o[r];if(typeof a!="string")return;let{x:n,y:s}=zJ(a);return $J(n,s)};return{desktop:t("desktop"),tablet:t("tablet"),phone:t("phone")}}function ILe(e,o){return Ty(BR(e,o))}var UR="Scroll",lQ={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"},iQ={none:()=>yt(KJ,{}),"zoom-in":()=>yt(JJ,{}),"zoom-out":()=>yt(QJ,{}),"fade-in":()=>yt(VJ,{}),"fade-out":()=>yt(qJ,{}),"move-up":()=>yt(XJ,{}),"move-down":()=>yt(YJ,{}),reveal:()=>yt(jJ,{}),parallax:()=>yt(ZJ,{})},dQ="Effect",zR=WR.filter(e=>e!=="none"),HR=(e,o)=>Al(qo.slice(0,qo.indexOf(e)+1).reverse().map(t=>we(Ao.effect,t)),t=>({field:t,set:!0}),t=>({field:t,in:o})),cQ={any:qo.map(e=>({field:we(Ao.effect,e),in:zR}))},fQ=qo.flatMap(e=>[[[we(Ao.zoom,e)],HR(e,rQ)],[[we(Ao.start,e),we(Ao.end,e)],HR(e,zR)]]),pQ=()=>bf(Ao.effect,{label:UR,tileWord:dQ,values:WR,fallback:"none",word:e=>lQ[e],picture:e=>iQ[e](),read:(e,o)=>Xs(e,o).effect}),Py=(e,o,t,r,a)=>gf(e,Oo(t,r,a.min,a.max,a.step,a.default,"%"),(n,s)=>Xs(n,s)[o]);function Sn(){let e={[DR]:tQ(UR,{dot:cQ}),...pQ(),[NR]:oQ(),...Py(Ao.zoom,"zoom","Zoom",yt(eQ,{}),sQ),...Py(Ao.start,"start","Start",yt(MR,{}),nQ),...Py(Ao.end,"end","End",yt(MR,{}),aQ)};return La(e,fQ)}import{jsx as jo}from"react/jsx-runtime";import{AccentIcon as uQ,ContrastIcon as mQ,EyeIcon as hQ,ExpandIcon as xQ,FinishIcon as IQ,ImagesIcon as gQ,NoSymbolIcon as GR,HoverLiftIcon as bQ,HoverNextImageIcon as yQ,HoverRotateIcon as SQ,HoverZoomIcon as jR,OpacityIcon as wQ}from"efficient-easel/icons";import{customize as CQ,describedAs as KR,group as vQ}from"efficient-easel/screen/lib/document/box-fields";import{effectTiles as VR}from"efficient-easel/screen/lib/document/effect-tiles";import{deviceField as Ro}from"efficient-easel/screen/lib/document/device-fields";import{NoControlMark as kQ,noControlField as TQ}from"efficient-easel/screen/lib/document/panel-no-control-mark";var Iu=e=>Ro("desktop",vQ("Hover",{dot:e})),qR=()=>Ro("desktop",CQ()),PQ="What this does when a shopper points at it, or taps it on a phone.",EQ="What this picture does when a shopper points at it. Black and white shows it in grey until then. A phone shows its colour.",OQ="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.",_Q="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.",AQ="When this shows. On card hover shows it while a shopper points at the card. A phone always shows it.",RQ="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.",LQ="Which of the product's pictures the card shows.",FQ="Same finish shows the photos of the finish the card shows, else the first group.",BQ="Whole card hides the words under the photo. Picture keeps the words and swatches in view.",DQ={none:()=>jo(GR,{}),nextImage:()=>jo(yQ,{}),rotate:()=>jo(SQ,{}),zoom:()=>jo(jR,{}),lift:()=>jo(bQ,{}),mono:()=>jo(mQ,{})};function Ey(e,o){let t=VR({label:i("Hover effect"),options:e.map(r=>({value:r,label:i(qn[r]),picture:DQ[r]()})),fallback:o});return KR(t,{type:"select",label:"Hover effect",options:e.map(r=>({value:r,label:qn[r]}))})}function YR(){return{[Sr]:Iu({field:pt,in:gh.filter(e=>e!=="none")}),[pt]:Ro("desktop",{...Ey(gh,"none"),description:PQ})}}function XR(e){let o=ov(e),t=nc(),r=aO(KC);return{[Sr]:Iu({any:[o,t]}),[lo.kind]:Ro("desktop",{...Ys(Ey(zC,e),(a,n)=>QC(n??{},e)),description:RQ}),...Oy(t),[$C]:TQ({type:"custom",render:()=>jo(kQ,{})},"always"),_cHover:qR(),[lo.angle]:Ro("desktop",oo(Ys(r,a=>ev(a)),o)),[lo.duration]:Ro("desktop",oo(Vs("hover"),o)),[lo.delay]:Ro("desktop",oo(qs("hover"),o))}}function Oy(e){let o=st("Type",jo(gQ,{}),VC.map(a=>({value:a,label:qC[a]})),ac.kind),t=Es("Group",jo(IQ,{}),YC.map(a=>({value:a,label:XC[a]})),ac.group),r=Es("Covers",jo(xQ,{}),ZC.map(a=>({value:a,label:JC[a]})),ac.cover);return{[lo.mediaKind]:Ro("desktop",oo({...o,description:LQ},e)),[lo.mediaGroup]:Ro("desktop",oo({...t,description:FQ},e)),[lo.cover]:Ro("desktop",oo({...r,description:BQ},e))}}function _y(e,o="",t=Ch.includes(o)){let r=vh(e),a=lv(e);return{[Sr]:Iu(r),[lo.kind]:Ay(tv,e,EQ),...Ch.includes(o)?Oy(nc()):{},_cHover:qR(),...t?ZR():{},[lo.duration]:Ro("desktop",oo(Vs("hover"),a)),[lo.delay]:Ro("desktop",oo(qs("hover"),a))}}function ZR(e=!1){let o=a=>e?a:oo(a,sv()),t=Oo("Zoom",jo(jR,{}),Yn.min,Yn.max,Yn.step,Yn.min,Yn.unit),r=Oo("Darken on hover",jo(wQ,{}),ra.min,ra.max,ra.step,ra.fallback,ra.unit);return{[yh.zoom]:Ro("desktop",o(t)),[yh.darken]:Ro("desktop",o(r))}}function Ay(e,o,t){let r=Ro("desktop",{...Ys(Ey(e,o),a=>av({[pt]:a},o,e)),description:t});return Object.assign(r,{[JR]:o})}var JR="sfPictureResting",$R=new WeakMap;function zLe(e,o,t){let r=e[lo.kind],a=r?.[JR];if(!r||!a)return e;let n=o.props?.[pt]==="nextImage",s=n?null:hc(t.appState,o.props?.id);if(!n&&!GC.includes(String(s?.type??"")))return e;let l=$R.get(e);return l||(l={...e,[lo.kind]:Ay(bh,a,OQ)},$R.set(e,l)),l}var NQ="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.",MQ={none:()=>jo(GR,{}),[hh]:()=>jo(uQ,{})},$Le=Ro("desktop",{...KR(VR({label:i("Hover effect"),options:xh.map(e=>({value:e,label:i(Ih[e]),picture:MQ[e]()})),fallback:"none"}),{type:"select",label:"Hover effect",options:xh.map(e=>({value:e,label:Ih[e]}))}),description:NQ}),HQ=Ro("desktop",{...Es("Show",jo(hQ,{}),[{value:wh,label:"Always"},{value:Sh,label:"On card hover"}],wh),description:AQ});function QR(){let e={any:[vh("none"),{field:pt,is:hh},{field:Aa,is:Sh}]},{[Sr]:o,[lo.kind]:t,...r}=_y("none","",!0);return{[Sr]:Iu(e),[lo.kind]:t,[Aa]:HQ,...Oy(nc()),...r,...ZR(!0)}}var GLe=Ay(bh,"none",_Q);import{jsx as Vi}from"react/jsx-runtime";import{isNodeList as $Q}from"efficient-easel/data";import{useEasel as GQ}from"efficient-easel/easel";import{hiddenInView as jQ,hiddenKeyOf as Ly,hidePatch as KQ,slotChildName as VQ,slotChildRowName as qQ}from"efficient-easel/draw";var gu=null;function Ry(e){gu=e}function eL(){return!!(gu&&gu.state().lockHolder)}function wn(){return gu!==null}var WQ=new Set(["BookingBox","SubmitBox"]);function UQ(e){return typeof e=="string"&&WQ.has(e)}var zQ=_T(UQ,eL);function bu(e,o){return zQ(e)||wI(o)}var yu=(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 YQ}from"efficient-easel/screen/lib/document/device-fields";import{NoControlMark as XQ}from"efficient-easel/screen/lib/document/panel-no-control-mark";var oL="notCardOfTemplate",tL={not:{context:oL,is:!0}},Fy={any:[ic,tL]},fFe={[oL]:(e,o)=>{let t=Wh(o.appState,e.props?.id);return t===void 0?void 0:t===null}};function Su(e){let o=e.props?.content;return $Q(o)?o:[]}var Cu=(e,o)=>jQ(e.props??{},o),ZQ=(e,o)=>e.props?.[Ly(o)]!==void 0;function rL(e,o=()=>!1,t="desktop"){return Su(e).flatMap(r=>typeof r?.props?.id!="string"?[]:Su(r).length&&!Cu(r,t)?rL(r,o,t):o(r)?[]:[r])}function JQ(e,o,t,r="desktop"){let a=rL(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:!Cu(l,r)}})}function wu(e,o,t){let r=a=>t==="desktop"?Cu(a,t):ZQ(a,t);return Su(e).flatMap(a=>r(a)?o(a)?[]:[a,...wu(a,o,t)]:wu(a,o,t))}function QQ(e,o){let t={...e};for(let[r,a]of Object.entries(o))a===void 0||r===Ly("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 By(e,o,t){let r=Su(e),a=!1,n=r.map(s=>{if(a)return s;let l=s;if(s?.props?.id===o){let d=QQ(s.props,t(s.props));d!==s.props&&(l={...s,props:d})}else l=By(s,o,t);return a=l!==s,l});return a?{...e,props:{...e.props,content:n}}:e}function aL(e,o,t,r="desktop"){return By(e,o,a=>r==="desktop"&&Cu({props:a},r)===!t?{}:KQ(a,r,!t))}function eee(e,o,t){return t==="desktop"?aL(e,o,!0,t):By(e,o,()=>({[Ly(t)]:void 0}))}function oee(e,o,t,r,a,n){return VQ(e).trim()?t(e):zv({ownerType:o,owner:r,fields:a,slot:n},Jt(e.props))?.label??t(e)}var tee="This page is read-only.";function ree({card:e,ownerType:o,owner:t,fields:r,slot:a,labelOf:n,write:s,readOnly:l,view:d="desktop"}){let c=p=>qQ(p,n,yr,void 0,yu),f=p=>bu(p.type,p),u=JQ(e,p=>oee(p,o,c,t,r,a),f,d);return u.length?Vi(As,{parts:u,changed:wu(e,f,d).length>0,shown:p=>u.find(h=>h.id===p)?.shown??!0,disabledReason:l?tee:void 0,onPress:(p,h)=>s(I=>aL(I,p,h,d)),onReset:()=>s(p=>wu(p,f,d).reduce((h,I)=>eee(h,String(I.props.id),d),p))}):Vi(XQ,{})}function aee(){try{let e=GQ(a=>a),o=e.config.components??{},t=e.selectedItem;if(!t)return null;let r=Wh(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:jv(e.appState,r),slot:Gv(e.appState,t.props?.id)??void 0}}catch{return null}}function nee({readOnly:e,view:o}){let t=aee(),r=aa();return t?Vi(ree,{...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}})}}):Vi(As,{parts:[],changed:!1,shown:()=>!0,onPress:()=>{},onReset:()=>{}})}function pFe(e){return oo(YQ(e,{type:"custom",render:({readOnly:o})=>Vi(nee,{readOnly:o,view:e})}),tL)}import{customize as hee}from"efficient-easel/screen/lib/document/box-fields";import{jsx as Dy}from"react/jsx-runtime";import{DirectionIcon as see,LoopMarqueeIcon as lee,NoSymbolIcon as iee}from"efficient-easel/icons";import{customize as dee,describedAs as cee,group as fee}from"efficient-easel/screen/lib/document/box-fields";import{effectTiles as pee}from"efficient-easel/screen/lib/document/effect-tiles";function Ny(){return JO("Direction",Iy,Gi,"A marquee cannot run diagonally, so the corners are not answers.",Dy(see,{}),ZO)}var My=e=>fee("Loop",e?{dot:e}:void 0),uee={none:()=>Dy(iee,{}),scroll:()=>Dy(lee,{})};function mee(){let e=pee({label:i("Loop"),options:nu.map(({value:o,label:t})=>({value:o,label:i(t),picture:uee[o]()})),fallback:xy});return cee(e,{type:"select",label:"Loop",options:nu.map(({value:o,label:t})=>({value:o,label:t}))})}function nL(){return{[su]:My($i),loop:mee(),_cLoop:dee(),scrollDirection:oo(Ny(),$i),loopDuration:oo(iu({readsSpeed:!1}),$i),loopDelay:oo(du(),$i)}}var sL={field:Aa,set:!0};function xee(){let e=QR(),o=[Sr,pt],t=Jn(e,Object.keys(e).filter(n=>!o.includes(n)&&n!==Aa),ic),r=Jn(t,[Aa],sL),a=Jn(r,[pt],Fy);return Jn(a,[Sr],{any:[Fy,sL]})}function lL(e,o=""){switch(e){case"section":case"block":return{...jt(),...Sn()};case"box":return{...jt(),...Sn(),...nL(),...xee()};case"picture":return{...jt(),...Sn(),..._y(rv(o),o)};case"textPart":return{...jt(),...Sn(),...YR()};case"cards":return{...jt(),...Sn(),...XR(jC(o))};case"marquee":return{...jt(),...Sn(),[su]:My(),_cLoop:hee(),scrollDirection:Ny(),loopDuration:iu({readsSpeed:!0}),loopDelay:du()}}}import{ENTRANCE_STATE_ATTR as Iee,entranceAttrs as gee,scrollAttrs as bee}from"efficient-shell/format";var dL={},Hy="_partMotion",Wy=[...Cc,pt,lo.duration,lo.delay,...hu];function zFe(e){return Ns(e,Hy)}function Cn(e,o){return Fp(e,Hy,o)}var yee=new Set([tt.kind,pt,Ao.effect]);function cL(e,o,t,r){let{[t]:a,...n}=Cn(e,o),s=r==null||r===""||r==="none"&&yee.has(t)?n:{...n,[t]:r};return Bp(e,Hy,o,Object.keys(s).length?s:null)}function Uy(e){return{entrance:vc(e),hover:UC(e),scroll:xu(e)}}function fL(e){let o=Uy(e);return o.entrance!==null||o.hover!=="none"||o.scroll!==null}function pL(e,o){let{attrs:t,style:r}=gee(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(Iee)}}function uL(e,o){let{attrs:t,style:r}=bee(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 See=4;function zy(e){let o;for(let t of e)(!o||t.element.compareDocumentPosition(o.element)&See)&&(o=t);return o}var wee="data-sf-part-host";function mL(e){let o=e?.ownerDocument.defaultView,t=e;for(;t&&!t.hasAttribute(wee)&&!t.classList.contains(ss);){let r=o?.getComputedStyle(t).display??"";if(r==="contents")return null;if(r!=="inline")return t;t=t.parentElement}return null}var vu="data-sf-part-lift",iL="sf-part-lift";function hL(e){if(e.getElementById(iL))return;let o=e.createElement("style");o.id=iL,o.textContent=u1(`[${vu}]`).join(`
|
|
5
|
-
`),e.head.appendChild(o)}var xL=new Map,Tee=e=>{let o=xL.get(e);return o||xL.set(e,o=CR(lL(e),`part:${e}`)),o},Pee=new Set(Wy);function Zs(e,o,t){let{getItemById:r,getSelectorForId:a}=vee(f=>f),n=kee(),s=r(e)?.props??{},l=Cn(s,o),d=JSON.stringify(l),c=Cee(()=>Object.fromEntries(Wy.map(f=>[f,l[f]])),[d]);return{part:o,fields:Tee(t),values:c,keys:Pee,onChange:(f,u)=>{let p=a(e),h=r(e);if(!p||!h)return;let I=cL(h.props??{},o,f,u);n.replaceComponent(p.zone,p.index,{...h,props:I})}}}import{Fragment as Eee,createElement as Oee}from"react";import{deviceField as $y}from"efficient-easel/screen/lib/document/device-fields";var Lo=()=>({type:"custom",render:()=>Oee(Eee)});var Gy={words:Lo(),sourceNote:Lo(),style:Lo(),font:Lo(),italic:Lo(),fontSize:$y("each",Lo()),lineHeight:Lo(),letterSpacing:Lo(),paragraphSpacing:Lo(),padding:Lo(),align:$y("each",Lo()),letterCase:Lo(),fixedSizeHint:$y("each",Lo()),regionNote:Lo(),regionStyle:Lo()},_ee=["fontSize","align"];function IL(e){return _ee.includes(e)}var gL={showTicker:Lo(),items:Lo()};var Uee="root:default-zone";function bL({heroId:e}){let{appState:o,dispatch:t}=Bee(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=Fee(()=>{let h=n?.props.tickerItems;return Array.isArray(h)?h:NA.map(I=>({text:I}))},[n]),d=Lee(),c=Wee(),f=h=>Hee(gL[h],c),u=Zs(e,MA,"block");if(!n)return vn("p",{className:"sf-note",children:i("This ticker\u2019s hero is no longer on the page.")});let p=h=>t({type:"replace",destinationZone:Uee,destinationIndex:a,data:{...n,props:{...n.props,...h}}});return vn(Kt,{motion:u,body:Ree(Aee,{children:[!f("showTicker")&&!f("items")&&vn(bn,{}),f("showTicker")&&vn(Dee,{label:i("Show ticker"),labelId:d,icon:vn(Mee,{}),action:vn(Nee,{checked:s,onChange:h=>p({showTicker:h}),ariaLabelledBy:d})}),f("items")&&vn(Lg,{label:Rg.label,icon:Rg.icon,items:l,placeholder:"item",onChange:h=>p({tickerItems:h}),markup:!0})]})})}import{jsx as oe,Fragment as Qi,jsxs as St}from"react/jsx-runtime";import{useContext as coe,useEffect as jy,useRef as foe,useState as HL}from"react";import{FieldSelect as poe,InspectorField as uoe,fieldShownInView as moe}from"efficient-easel/fields";import{InertHint as qL,SettingsField as hoe}from"efficient-easel/panel";import{InspectorUpLevel as Ru}from"efficient-easel/chrome";import{StylesIcon as xoe,TypeIcon as Ioe}from"efficient-easel/icons";import{useEasel as goe}from"efficient-easel/easel";import{TextPartPanel as WL}from"efficient-easel/copy";import{Button as boe,IconButton as yoe,Tooltip as Soe}from"efficient-shell/ui";import{jsx as wL,jsxs as zee}from"react/jsx-runtime";import{DEFAULT_EASEL_STRINGS as $ee}from"efficient-easel/strings";import{COPY_CELLS as Js,COPY_CELL_LENGTHS as yL,CopyBox as Gee,lengthCellUnits as jee}from"efficient-easel/copy";import{PaddingYIcon as Kee}from"efficient-easel/icons";import{onDesktopWords as Vee}from"efficient-easel/screen/lib/document/box-fields";var SL=$ee.copy.cells,qee={kind:"spacing"},Yee=["left","center","right","justify"];function ku(e,o,t,r="desktop"){let a=Oi(e),n=bb(r),s=e[n]??e.size??o.sizePx,l=y1(e,r),d=(f,u,p,h,I)=>{let g=gt[p];return jee({preset:f,row:u,table:en,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:wL(Kee,{}),unit:"px",step:hb,shiftStep:10,min:ub,max:mb};return[{...Js.fontSize,key:"fontSize",value:e[n],styleValue:Math.round(o.sizePx),onChange:f=>t({[n]:f??null}),...d(Js.fontSize,yL.fontSize,n,Math.round(o.sizePx),SL.fontSize),...n==="size"?{}:{reset:{detail:l?Vee(f=>i(f),`${l.px}px`,l.view):void 0}}},{...Js.lineHeight,key:"lineHeight",value:a.lineHeight,styleValue:o.lineRatio,onChange:f=>t(f===void 0?{lineHeight:null,line:null}:{lineHeight:f})},{...Js.letterSpacing,key:"letterSpacing",scale:s,value:a.letterSpacingEm,styleValue:o.letterEm,onChange:f=>t(f===void 0?{letterSpacing:null,letter:null}:{letterSpacing:f})},{...Js.paragraphSpacing,key:"paragraphSpacing",value:e.paragraphSpacing,styleValue:0,onChange:f=>t({paragraphSpacing:f??null}),...d(Js.paragraphSpacing,yL.paragraphSpacing,"paragraphSpacing",0,SL.paragraphSpacing)},{...c,value:e.padding,styleValue:o.paddingPx,onChange:f=>t({padding:f??null}),...d(c,qee,"padding",o.paddingPx,"Padding")}]}function CL({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=ku(n,s,l),I=Vg(r,t);return zee("div",{className:"sf-part-textbox",children:[u,wL(Gee,{value:e,onChange:o,multiline:t,placeholder:c,ariaLabel:f,rules:oc,tools:I,barShows:p?"focus":"always",colors:r?d:[],colorNameOf:rt,align:a?{value:n.align??s.align,allow:Yee,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 UL}from"efficient-easel/draw/client";import{jsx as Tu,Fragment as Xee,jsxs as Zee}from"react/jsx-runtime";import{Button as vL,Dialog as Jee}from"efficient-shell/ui";function kL({styleName:e,onCancel:o,onConfirm:t}){return Tu(Jee,{open:!0,onClose:o,role:"alertdialog",size:"sm",title:i("Update {style}?",{style:e}),footer:Zee(Xee,{children:[Tu(vL,{variant:"secondary",onClick:o,children:i("Cancel")}),Tu(vL,{variant:"primary",onClick:t,children:i("Update style")})]}),children:Tu("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 woe}from"efficient-easel/screen/components/ScreenDocumentContext";import{usePreviewDevice as Coe}from"efficient-easel/draw/client";import{shownTier as _u}from"efficient-easel/screen/lib/document/device-fields";import{jsx as Qee}from"react/jsx-runtime";import{createContext as eoe,useContext as ooe,useMemo as toe,useState as roe}from"react";var aoe={partStyle:null,setPartStyle:()=>{}},TL=eoe(aoe);function FBe({children:e}){let[o,t]=roe(null),r=toe(()=>({partStyle:o,setPartStyle:t}),[o]);return Qee(TL.Provider,{value:r,children:e})}function PL(){return ooe(TL)}import{TEXT_FIELD_MARKER as voe,viewKeyAt as koe}from"efficient-easel/draw";import{useSectionOps as Toe}from"efficient-easel/screen/lib/document/use-section-ops";var qi="@name",EL="@body",OL="@value",_L={[qi]:"Name",[EL]:"Body",[OL]:"Value"},noe={TimelineTrack:{"entries.date":qi,"entries.title":qi,"entries.blurb":EL},Footprint:{"offices.city":qi},Stats:{"items.label":qi,"items.value":OL}};function soe(e){let{key:o,row:t}=$t(e);return t?`${o}.${t.rowKey}`:null}function Yi(e,o){if(!e)return o;let t=soe(o);return t?K(noe,e)?.[t]??o:o}import{useEaselHost as Poe}from"efficient-easel/screen/lib/host";function loe(e){let o=new Set([...Object.keys(K(yf,e)??{}),...K(Sf,e)??[]]);for(let[t,r]of Object.entries(K(oI,e)??{}))r.verb==="snapshot"&&o.add(t);return[...o].sort()}var ioe={CollectionCard:"product",FooterMenu:"menu",Gallery:"product",GalleryItem:"product",ProductGrid:"product",ProductHero:"product",SpecTable:"product",Events:"blog",FeaturedCover:"blog",LongRead:"blog",SubscribeBlogs:"blog"},AL={product:"Synced from the product.",blog:"Synced from the blog post.",menu:"Synced from the site menu."},RL="Open",LL={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 Xi(e){return K(ioe,e)??null}function FL(e,o){let t=Xi(e);return t&&loe(e).includes(o)?t:null}function Pu(e){let o=e?.menu?.id;return Se(o)}var Zi={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)]"},doe={tag:{label:"Tag",follows:"Labels",builtIn:es(Zi.tag),writable:!0},name:{label:"Name",follows:"Heading 2",builtIn:es(Zi.name),writable:!0},body:{label:"Body",follows:"Body",builtIn:es(Zi.body),writable:!0},price:{label:"Price",follows:"Labels",builtIn:es(Zi.price),writable:!0},link:{label:"Link",follows:"Labels",builtIn:es(Zi.link),writable:!0}},BL=doe;var Eu={entry:{label:"Entry",follows:"Labels",builtIn:"13px",writable:!0},number:{label:"Entry number",follows:"Labels",builtIn:"13px",writable:!0}};var XBe=pc,DL={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 NL={SpecTable:DL,FAQ:Ov,Collections:BL,Contents:Eu};function ML(){return Qd("efficient.section-text-regions",()=>new Map)}function aDe(e){let o=ML();for(let[t,r]of Object.entries(e)){if($e(NL,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 Ou(e){return e?K(NL,e)??ML().get(e)??null:null}function Ky(e){return e?i(e):null}function zL(e){return e.kind==="role"?mh[e.role]:e.kind==="custom"?"Custom":null}function Eoe(e){let o=br(e.role);return o?{kind:"role",role:o}:null}function Ooe(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 Au(e,o,t,r){return Eoe(Ei(e,o))??Ooe(t,r)}function _oe(e,o){if(!e.length)return null;let t=o(e[0]);return e.every(r=>o(r)===t)?t:null}function $L(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?Kn(o.values.font)?.label:void 0}))]}var Ji="";function Aoe({face:e,base:o,onPick:t}){let r=e.kind==="role"?e.role:Ji,a=[{label:i("No style"),value:Ji},..._C.map(n=>({label:i(mh[n]),value:n}))];return oe(poe,{ariaLabel:i("Style"),value:r,options:a,inline:!0,onChange:n=>t(n===Ji?null:n),renderOption:n=>n.value===Ji?St(Qi,{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(${Kn(o.fontKey)?.cssVar})`:void 0,fontWeight:o?.weight},children:Ky(zL(e))}),valueText:n=>Ky(zL(e))??n?.label??""})}var YL=["regionNote","regionStyle"],Roe=Object.keys(Gy).filter(e=>!YL.includes(e));function XL(e,o){return!e.some(o)}function Loe({sectionName:e,onBack:o,textEditor:t,styleRow:r,children:a,tabs:n}){let s=St(Qi,{children:[t,r,a]});return St("div",{className:"sf-part-panel",children:[oe(Ru,{inline:!0,name:i(e),onSelect:o}),n?n(s):s]})}function Lu({source:e,slug:o,menuId:t}){let r=Poe(),a=LL[e],n=!a.needsSlug||!!o;return oe("div",{className:"sf-note sf-note--source",children:St(qL,{children:[i(AL[e]),n?St(Qi,{children:[" ",oe(boe,{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(RL)})]}):null]})})}var GL=4,Foe=120;function jL(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 KL({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(Qi,{children:[c,d("regionStyle")&&oe("p",{className:"es-field-hint",children:jL(e)})]}):a?d("regionStyle")?oe(Qi,{children:oe(hoe,{label:i("Style"),icon:oe(xoe,{}),hint:jL(e),children:oe(Aoe,{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(Lu,{source:n,slug:s}):null,XL([...YL,"sourceNote",...c?["fontSize"]:[]],p=>d(p)&&(p!=="sourceNote"||!!n))&&oe(bn,{}),oe(Ru,{inline:!0,name:i("Page"),onSelect:l})]})}function Boe({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(Ru,{inline:!0,name:i("Page"),onSelect:e})]})}function Doe({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(Ru,{inline:!0,name:i("Page"),onSelect:e})]})}function ZL({nodeId:e,propKey:o,onBack:t,onEditStyle:r}){let{getItemById:a,getSelectorForId:n,config:s}=goe(V=>V),l=Toe(),d=E_(),{partStyle:c}=PL(),{fonts:f,textStyles:u}=he(),p=coe(woe),h=!p?.capabilities?.hasSiteTheme,{persist:I}=Ss({themeFromDocument:h,tokenRef:p?.tokenRef,siteId:p?.siteId??null}),g=jp({themeFromDocument:h,persist:I}),[C,w]=HL(!1),T=Coe(),y=V=>(_u(T)!=="tablet"||IL(V))&&moe(Gy[V],T),b=foe(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?Bs(D,O):D,_=hp(e,o),A=P?.props??{},F=Rs(v),z=tp(v),$=Mg(v),X=P?Xi(P.type):null,ee=P?FL(P.type,W):null,Fe=O?Si(A[W],O):A[W],Oe=!!O&&!(Array.isArray(A[W])&&O.index<A[W].length);jy(()=>{P_(document)||b.current?.querySelector(".es-copy [contenteditable='true'], .es-copy textarea, .sf-copybox textarea, .sf-copybox input")?.focus()},[_]);let[ze,Ke]=HL(0);jy(()=>Ke(0),[_]);let be=!!P&&!Oe&&(!H||!v);jy(()=>{if(!be||ze>=GL)return;let V=setTimeout(()=>Ke(so=>so+1),Foe);return()=>clearTimeout(V)},[be,ze]);let Te=be&&ze<GL,_e=Zs(e,Yi(P?.type,o),"textPart");if(!P||Oe)return oe(Boe,{onBack:t});let Ne=Ou(P.type),no=Ne?Rl(Ne,o):null;if(Ne&&no){let V=c?.partId===_?c:null,so=Ne[no],At=so.writable===!0&&!!H,Gr=Ea=>{H&&l.replaceComponent(H.zone,H.index,{...P,props:fn(A,o,"role",Ea)})};if(At&&Ev(so)){let Ea=Ei(A,o),bC=Oa=>{if(!H)return;let ph=A;for(let[g3,b3]of Object.entries(Oa))ph=fn(ph,o,g3,b3??null);l.replaceComponent(H.zone,H.index,{...P,props:ph})},h3=Nr(g.saved,g.old),x3=pb(Ea)??"",I3=ku(Ea,V?.base??VL,bC,_u(T)).filter(Oa=>Oa.key==="fontSize"&&y(Oa.key));return oe(Kt,{motion:_e,body:oe(KL,{region:so,sizePx:V?.base.sizePx??null,face:Au(A,o,V,f),base:V?.base??null,source:X,slug:Qs(A),onBack:t,shows:y,ownLook:w1(Ea),sizedStyle:oe(WL,{style:y("style")?{value:x3,options:$L(h3),onChange:Oa=>bC(Oa?{textStyle:Oa}:{textStyle:null,role:null}),onEditStyles:r}:void 0,cells:I3})})})}return oe(Kt,{motion:_e,body:oe(KL,{region:so,sizePx:V?.base.sizePx??null,face:Au(A,o,V,f),base:V?.base??null,onFollowStyle:At?Gr: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(Doe,{onBack:t,partId:_,why:H?"no field":"no selector"});let yo=V=>{l.replaceComponent(H.zone,H.index,{...P,props:V})},ie=V=>{if(ca(V).hidden!==ca(Fe).hidden||!F){let so=O?Dg(A,W,O,V):{...A,[W]:V};so&&yo(so);return}gp({node:P,propKey:o,kind:F,zone:H.zone,index:H.index},ca(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:Yi(P?.type,o),po=Ei(M,ye),Be=[{partKey:ye,face:Au(M,ye,Ve,f),sizeGroup:Ve?.sizeGroup??null,base:Ve?.base??VL,style:po}],_t=_oe(Be,V=>V.sizeGroup),hr=Is(Ve?.inks),Ze=(V,so)=>{let At=M;for(let Gr of Be)At=fn(At,Gr.partKey,V,so);Le(At)},xr=V=>V?Ze("textStyle",V):Ca({textStyle:null,role:null}),Ca=V=>{let so=M;for(let At of Be)for(let[Gr,Ea]of Object.entries(V))so=fn(so,At.partKey,Gr,Ea??null);Le(so)},Gn=F==="text"||F==="textarea",{text:jn,hidden:Ir}=ca(Fe),$r=v?.[voe]?.label??o,va=Ir?i("Show {label} on the slide",{label:i($r)}):i("Hide {label} on the slide",{label:i($r)}),Cl=St("div",{className:"sf-field-head",children:[oe(Ioe,{}),oe("span",{className:"sf-field-label sf-field-label--inline",children:i($r)}),Gn&&oe(Soe,{content:va,children:oe(yoe,{"aria-pressed":Ir,"aria-label":va,onClick:()=>ie({text:jn,hidden:!Ir}),children:Ir?oe(UL,{name:"eye-off",size:14}):oe(UL,{name:"eye",size:14})})})]}),ka=!z&&$,Zd=!!F&&(BO(v)||z||Ir||!$),vl=Au(M,ye,Ve,f),Jd=vl.kind==="role"?vl.role:null,Ta=pb(po)??N1(Jd),gC=Nr(g.saved,g.old),c3=Object.entries(po).filter(([V,so])=>V!=="role"&&V!=="textStyle"&&so!==void 0).length,f3=()=>{let V=M;for(let so of Be){let{role:At,textStyle:Gr}=so.style;V=I1(V,so.partKey),At&&(V=fn(V,so.partKey,"role",At)),Gr&&(V=fn(V,so.partKey,"textStyle",Gr))}Le(V)},Pa=Ta,p3=M1(Be[0].style),u3=Pa?gC.find(V=>V.id===Pa)?.name??Pa:"",m3=()=>{w(!1),Pa&&(g.write(H1({saved:g.saved,old:g.old,styleId:Pa,values:_b(Be[0].style)}),!0),f3())};return St(Loe,{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:Zd?oe(CL,{text:jn,onTextChange:V=>ie(Gn?{text:V,hidden:Ir}:V),multiline:fp(F),markup:F!=="plainText",styled:!1,style:Be[0].style,base:Be[0].base,setValue:Ca,colors:hr,placeholder:Ky(n_(v))??void 0,ariaLabel:i($r),head:Cl,typedOnCanvas:d===_}):F?Gn?Cl:null:oe(uoe,{field:v,name:o,value:Me,onChange:ie,id:`sf-part-${e}-${o}`})}):void 0,children:[ee&&y("sourceNote")&&oe(Lu,{source:ee,slug:Qs(A),menuId:Pu(A)}),ka&&oe(WL,{style:y("style")?{value:Ta??"",options:$L(gC),onChange:V=>xr(V||null),changed:c3>0,onEditStyles:r,onUpdateStyle:Pa&&p3?()=>w(!0):void 0}:void 0,font:y("font")?{value:po.font??"",styleValue:Kn(Be[0].base.fontKey)?.label,options:jr.map(V=>({label:V.label,value:V.key})),onChange:V=>Ze("font",V||null)}:void 0,italic:y("italic")?{value:po.italic,styleValue:Moe(u,Ta),onChange:V=>Ze("italic",V??null)}:void 0,cells:ku(Be[0].style,Be[0].base,Ca,_u(T)).filter(V=>y(V.key)),align:y("align")?Noe(po,Be[0].base.align,_u(T),Ze):void 0,letterCase:y("letterCase")?{value:po.case??"",styleValue:Be[0].base.case,onChange:V=>Ze("case",V||null)}:void 0}),C&&Pa&&oe(kL,{styleName:u3,onCancel:()=>w(!1),onConfirm:m3}),ka&&_t===null&&y("fixedSizeHint")&&oe(qL,{children:i("Fixed size \u2014 the site\u2019s Text setting doesn\u2019t resize this.")}),XL(Roe,V=>y(V)&&(V==="words"||(V==="sourceNote"?!!ee:V==="fixedSizeHint"?ka&&_t===null:ka)))&&oe(bn,{})]})}function Noe(e,o,t,r){let a=koe("align",t),n=b1(e,t);return{value:e[a]??"",styleValue:n??o,onChange:s=>r(a,s||null)}}function Moe(e,o){return!o||!Array.isArray(e)?!1:e.find(t=>t?.id===o)?.values?.italic===!0}var VL={fontKey:"",sizePx:16,weight:400,lineRatio:1.4,letterEm:0,align:"left",case:"none",paddingPx:0};import{jsx as Vt,jsxs as eS,Fragment as Koe}from"react/jsx-runtime";import{useCallback as Voe,useRef as qoe,useState as td}from"react";import{InspectorIconButton as Yoe}from"efficient-easel/chrome";import{useEasel as Xoe}from"efficient-easel/easel";import{PopupMenu as Zoe,PopupMenuItem as Joe,PopupMenuLabel as Wu}from"efficient-shell/ui";import{CopyToPageIcon as Qoe}from"efficient-easel/icons";import{useEaselSession as ete}from"efficient-easel/screen/lib/session-context";import{cloneNodeWithFreshIds as ote}from"efficient-easel/screen/lib/document/section-doc";import{FOOTER_TYPE as tte}from"efficient-easel/draw";import{currentEaselSession as Hoe}from"efficient-easel/screen/lib/session";var Woe={general:!0,commerce:!0,service:!0};function Vy(e){let o=e?.sets;return o?Object.fromEntries(vC.map(t=>[t,o.includes(t)])):Woe}function qy(e=Hoe()){return Vy(e.blocks)}import{isBackendError as el}from"efficient-easel/screen/lib/backend-error";import{isEfficientBackend as lF}from"efficient-easel/screen/lib/session";var Fu=Mc(),Yy=Fu.set;function Bu(e,o){Yy(e,o)}function Du(e,o){let t=Fu.get(e);Yy(e,o??(t==="live"?"changed":t))}function Nu(e,o){Yy(e,o??"live")}function JL(e){return Fu.get(e)}function QL(e){return Fu.use(e)}function eF(e,o){return e==="live"&&o?"changed":e}function Xy({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 oF(e){return e.map(o=>o.change==="take_down"?i("{name} (taken down)",{name:o.name}):o.name)}var tF="SharedSection",Uoe=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i,ed=e=>{let o=e?.content;return Array.isArray(o)?o:[]},od=e=>{let o=e?.props?.id;return typeof o=="string"?o:void 0};function rF(e){if(e?.type!==tF)return null;let o=e.props?.section;return typeof o=="string"&&Uoe.test(o)?o.toLowerCase():null}function aF(e){let o=[];for(let t of ed(e)){let r=rF(t),a=od(t);r&&a&&o.push({refId:a,section:r})}return o}function Mu(e){let o=ed(e)[0];return o&&typeof o=="object"&&od(o)?o:null}function zoe(e,o){return{type:tF,props:{id:e,section:o}}}function nF(e,o){let t=new Map,r=new Set,a=!1,n=ed(e).map(s=>{let l=rF(s),d=od(s);if(!l||!d||r.has(l))return s;let c=Mu(o.get(l)),f=od(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 sF(e,o,t){let r=new Map,a=!1,n=ed(e).map(s=>{let l=od(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=ed(c).slice(1),u=Mu(c);return r.set(d.section,u===s?c:{...c,content:[s,...f]}),a=!0,d.reference??zoe(d.refId,d.section)});return{page:a?{...e,content:n}:e,docs:r}}function Qy(e){return!!(e?.publish&&e.liveState)}function $oe(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 Goe(e,o){return async(t,r)=>{try{await v0()}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"?vf({state:"live",changes:[]}):Or(0),{version:r??null}}}function Jy(e,o,t){let r=o?{siteId:o}:void 0;return{resolve:a=>e.load({slug:a,...r}).then(n=>(n&&(Bu(n.id,n.live),FT(n.id,n.videoFrames)),n)),saveLayout:(a,n,s,l)=>e.save(a,{layout:n},{version:s,clientId:l??""}).then(d=>(Du(a,d.live),BT(a,d.videoFrames),Or(),d)),rereadVersion:e.version?a=>e.version(a):void 0,publish:Qy(t)?Goe(t,r):e.publish?(a,n)=>e.publish(a,n?{version:n}:void 0).then(s=>(Nu(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 joe(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=JL(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=Mu(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??""});Du(v,z.live),A.layout=_,A.version=z.version,A.savedJson=F,C(v,null)}catch(z){el(z,"changed-elsewhere")?C(v,"conflict"):el(z,"lock-taken")?C(v,"lock",z.holder??void 0):C(v,"save")}}O.size&&Or(),g({})};return{resolve:async O=>{if(Ry(O===Mt?null:H),Ix(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(_&&!ri(v?.layout)){Bu(_.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=aF(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?(Bu(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 $=nF(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=OT($.working,n.layout);return n.savedJson=JSON.stringify(xx(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?xx(D,A.layout):{page:D,chrome:null},z=sF(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:_??""});Du(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){el(ee,"changed-elsewhere")?g({conflict:ee.conflict??{savedBy:"",savedByYou:!1,secondsAgo:0}}):el(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);Nu(_.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);Nu(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){el(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){el(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 Hu(e){let o=(t,r,a)=>e.save(t,r.layout?{...r,layout:sT(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 gNe(e,o,t){return e.update(o,lT(t))}function bNe(e,o=to(),t=qy(),r={}){let a=lF(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=Hu(o.pages),p=Jy(u,e,f),h=c?joe(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,...iF(p.resolve),lock:o.lock,...h,site:s?()=>o.site.get(n):void 0,siteLiveState:f?()=>f.liveState(n):void 0,siteVersions:$oe(f,n),updateSite:s&&l?I=>l(I,n):void 0,previewHref:o.preview?I=>o.preview.href(I):void 0}}function yNe(e,o=to(),t=qy()){let r=lF(o),a=o.templates,n=a?Hu(a.pages(e)):{list:()=>Promise.reject(new Error(Zy)),load:()=>Promise.reject(new Error(Zy)),save:()=>Promise.reject(new Error(Zy))};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},...Jy(n,void 0),...iF(Jy(n,void 0).resolve),publish:void 0,templateName:a?()=>a.get(e).then(s=>s.name):void 0}}function iF(e){return{resolve:o=>(Ry(null),Ix(null),e(o))}}var Zy="This editor's backend has no website templates.";function rte(e,o,t){let r=ote(e,void 0,o);return t?.(r)??r}function dF({node:e,currentSlug:o,siteId:t,tokenRef:r,runAuthed:a,onNotify:n}){let[s,l]=td(!1),[d,c]=td(null),f=ete(),u=Xoe(E=>E.config.components),[p,h]=td(!1),[I,g]=td(null),C=qoe(null),[w,T]=td(null),y=Voe(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=rte(e,u,f.documentHooks?.storedNode),O=await a(()=>ate(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 eS(Koe,{children:[Vt("span",{"data-menu-toggle":!0,style:{display:"contents"},children:Vt(Yoe,{buttonRef:C,label:i("Duplicate to another page"),hasPopup:"menu",expanded:s,onClick:b,children:Vt(Qoe,{size:15})})}),s&&w&&Vt(Zoe,{portal:!0,style:{top:w.top,right:w.right},onClose:()=>l(!1),children:eS("div",{role:"menu","aria-label":i("Duplicate to page"),children:[Vt(Wu,{children:i("Duplicate to page")}),p?Vt(Wu,{children:i("Couldn\u2019t load pages")}):d===null?Vt(Wu,{children:i("Loading\u2026")}):P.length===0?Vt(Wu,{children:i("No other pages")}):P.map(E=>eS(Joe,{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 ate(e,o,t){let r=Hu(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===tte);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 Lle}from"efficient-easel/screen/components/ScreenDocumentContext";import{useSectionOps as Fle}from"efficient-easel/screen/lib/document/use-section-ops";import{SELECTION_MODE as cGe,isSelectionMode as _w}from"efficient-easel/screen/lib/screen-parts";import{usePreviewParts as Ble}from"efficient-easel/draw/client";import{jsx as rd,jsxs as nte}from"react/jsx-runtime";import{SettingsDrill as ste}from"efficient-easel/panel";import{UiIcon as lte}from"efficient-easel/draw/client";var ite="Not shown on the page";function dte({part:e,onOpen:o}){return rd(ste,{name:i(e.label),preview:e.offPage?i(ite):e.preview||i("Empty"),offPage:e.offPage,status:e.hidden?rd("span",{className:"sf-entry-eye",role:"img","aria-label":i("Hidden on the page"),children:rd(lte,{name:"eye-off",size:14})}):void 0,onOpen:()=>o(e.key)})}function oS(e){return e.filter(o=>!o.identifier)}function cF({parts:e,onOpen:o,heading:t=!0}){let r=oS(e);return r.length?nte("div",{className:"sf-entries",children:[t?rd("h3",{className:"sf-entries-head",children:i("Text")}):null,r.map(a=>rd(dte,{part:a,onOpen:o},a.key))]}):null}import{HEADER_TYPE as Dle,ROOT_ZONE as dM}from"efficient-easel/draw";import{HEADER_TYPE as Jo,FOOTER_TYPE as Xe,newNodeId as cte}from"efficient-easel/draw";function Uu(){return{type:Jo,props:{id:cte(Jo)}}}var fF=[{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"}],fte=fF.filter(e=>e.type!=="FooterLogo"&&e.type!=="FooterGroup"),pte="FooterGroup",pF="blocks";function uF(e){return e===Xe?fF:e===pte?fte:null}function zu(){let e=(o,t)=>({type:o,props:{id:`${o}-${crypto.randomUUID()}`,...t}});return[e("FooterLogo",{widthPct:100,align:"left",tagline:""}),e("FooterEmailSignup",{...Y0}),e("FooterPayment",{...Of})]}function tS(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 mF=()=>null,hF=()=>i("Changed on every page");function $u(e,o){let t=Ck(e,o);if(t)return t;let r=CT(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 Hm,Fragment as hle,jsxs as xle}from"react/jsx-runtime";import{useState as Ile}from"react";import{createNode as gle,newId as ble}from"efficient-easel/data";import{useEasel as yle}from"efficient-easel/easel";import{Banner as Sle,Button as Ew}from"efficient-shell/ui";import{useScreenDocument as wle}from"efficient-easel/screen/components/ScreenDocumentContext";import{isNodeList as ute}from"efficient-easel/data";import{hiddenKeyOf as mte}from"efficient-easel/screen/lib/content/view-hide";var Gu="Flex",hte={FooterMenu:"MenuBlock",FooterEmailSignup:"EmailFormBlock",FooterSocial:"SocialLogosBlock"},xte={FooterPayment:"PaymentLogosBlock"},Ite=e=>{let{id:o,...t}=e;return t},xF=e=>typeof e=="string"?e:"",ol={sm:12,md:13,lg:15},IF={sm:{mark:16,words:ol.sm},md:{mark:20,words:ol.md}},gte="md",gF=1.5,bte={size:13,lineHeight:gF,width:280},yte=14,Ste=40,wte=e=>e==="center"||e==="right"?e:"left";function Cte(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 vte(e,o,t){let r=t(e,Ite(o));if(Array.isArray(o.template))return{...r,props:{...r.props,template:bF(o.template,String(r.props.id))}};if(o.template!==void 0)return r;let a=Bv(e,r.props);return a===r.props?r:{...r,props:a}}function bF(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))ute(s)&&(a[n]=bF(s,o,t));return{...r,props:a}})}function yF(e,o,t){let r=e.props??{},a=t?.(e,o);if(a)return a;let n=K(hte,e.type)??K(xte,e.type);if(n)return[vte(n,r,o)];switch(e.type){case"FooterLogo":{let s=wte(r.align),l=o("LogoBlock",{...r.reverse?{reverse:r.reverse}:{},...typeof r.customColor=="string"&&r.customColor?{customColor:r.customColor}:{},heightPx:Math.round(Mk*((q(r.widthPct)??100)/100)),href:"/",align:s,...Cte(r)}),d=xF(r.tagline).trim();return d?[l,o("Text",{text:d,tone:"dim",align:s,_partStyles:{text:{...bte}}})]:[l]}case"FooterText":{let s=typeof r.size=="string"&&$e(ol,r.size)?r.size:gte;return[o("Text",{text:xF(r.text),tone:typeof r.tone=="string"?r.tone:"default",_partStyles:{text:{size:ol[s],lineHeight:gF}}})]}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?{[mte("mobile")]:!0}:{}})]}case"FooterGroup":{let s=Array.isArray(r.blocks)?r.blocks:[];return[o(Gu,{direction:r.direction==="horizontal"?"row":"column",gap:Za("FooterGroup",r.gap),align:r.align==="center"||r.align==="end"||r.align==="stretch"?r.align:"start",...Th,content:s.flatMap(l=>yF(l,o,t))})]}default:return[]}}function ad(e,o,t,r){let a=e&&Array.isArray(e.props?.blocks)?e.props.blocks:[],n=f=>o(Gu,{direction:"row",wrap:!0,share:"equal",gap:Ste,content:f}),s=[],l=[];for(let f of a){let u=yF(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(Gu,{direction:"column",gap:yte,align:"stretch",...Th,content:u}))}(l.length||!s.length)&&s.push(n(l));let d=o(Gu,{direction:"column",content:[o("LegalLineBlock")]}),c=yT(Ue,t,[...s,d]);return{...c,props:{...c.props,...e?.props?.width==="full"?{fullWidth:!0}:{}}}}import{isNodeList as ule}from"efficient-easel/data";import{readHidable as Tte}from"efficient-easel/draw";function ju(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 a2e(e){return kte[nd(e)]}var kte={1:"grid-cols-1",2:"grid-cols-2",3:"grid-cols-3",4:"grid-cols-4"};function nd(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 cr=te,fr=He;function Tn(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 Pte(e,o){return o===0?`${e}~box`:`${e}~box-${o+1}`}var wF=new Set(["id"]),kn={},CF=[],Ete={ProductGrid:["ProductColour","ProductEyebrow","ProductName","ProductPicture","ProductPrice","ProductRef","ProductSpecs"],Events:[],Collections:["CollectionCard"],GalleryB:["GalleryItem"],ContactRouting:[],ReviewForm:[],AppointmentBooking:["BookingBox"],Reviews:["RatingBlock"],CheckoutCTA:[],AlloyWheelsListing:["ProductBuy","ProductColour","ProductEyebrow","ProductName","ProductPicture","ProductPrice","ProductSpecs"],SpecTable:["EuTyreLabelBlock","WheelDiagram"],FitmentTable:[]},Ote=Object.keys(Ete),Pn=["Breadcrumb","DocBody","Form","SubmitBuild","Footprint","FAQ","ContactLocations","ProcessSteps",...Ote,"Stats","Logos","PaymentBadges","PaymentLogosBlock","FitmentFinder","DocMasthead","DocTabs","Timeline","TimelineTrack","OrderSummary","Chart","Mockup","Integrations","Countdown","FeaturedCover","IntroBleed","SectionHeader","TitleWithButtons","Prose","ParagraphsA","Banner","Cards"];function go(e){for(let[o,t]of Object.entries(e)){if($e(kn,o)&&K(kn,o)!==t)throw new Error(`lib/sections/section-to-box: "${o}" already has a row`);kn[o]=t}}function ua(e){return K(kn,e)}function _te(e){return $e(kn,e)&&CF.includes(e)}function vF(e,o=Pn){return $e(kn,e)&&(o.includes(e)||_te(e))}function h2e(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 rS=e=>Tte(e),Qe=e=>rS(e).text.trim()!=="";function Ate(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 Rte=e=>e==="heading"?Vr():e==="eyebrow"?vr():{};function Lte(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 Fte(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 SF(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 Bte(e){let o=new Set([...wF,"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 aS=e=>Pv(e.headPlacement)==="own-box";function Dte(e){return aS(e)?"its head sits in a Box of its own above it (own-box): the row draws the head inline":void 0}function Nte(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 Mte(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 Hte(e,o,t){if(!t.press)for(let r of Mte(e)){let a=Nte(o,r);if(a!==void 0)return a}}function tl(e,o,t={}){let r=e.props,a=(o.ownBoxConverts?void 0:Dte(r))??Hte(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=Bte(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 SF(b??[],v,H,(_,A,F)=>D(_,F?`nothing \u2014 the old value draws nothing (${E}: no ${A})`:`${O}${E}: ${A}`),t)},g=b=>Zn(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(cr,{name:`${b.name} ${z+1}`,...W,...X.props??{},[fr]: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"),ju(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(cr,{name:`${F.name} ${$+1}`,...F.props??{},[fr]:[...ee,h(cr,{name:`${F.itemsName} ${$+1}`,...F.itemsProps?.(X.length,r)??{},[fr]:Ke.length?Ke.map((be,Te)=>h(cr,{name:`${F.rowName??`${F.itemsName} row`} ${Te+1}`,...F.rowProps??{},[fr]: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(cr,{name:`${b.rowName??`${b.name} row`} ${F+1}`,..._,[fr]:[...z,...Array.from({length:$},(X,ee)=>h(cr,{name:`Empty ${ee+1}`,...b.rowFiller,[fr]:[]}))]}))}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 _=rS(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=Rte(v.role??"body"),{_partStyles:F,...z}=A,$=Lte(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"?Ate(_.text):v.mark==="accentItalic"?El(_.text):_.text,...z,...v.props??{},...$,..._.hidden?{_hidden:!0}:{}})),O(v.key,`${E}Text block: its words${_.hidden?", hidden":""}`);break}case"button":{let _=rS(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??{},...Fte(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(cr,{name:v.name,...A,[fr]:_}));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=SF(b.box??[],W,r,(D,v,_)=>c(D,_?`nothing \u2014 the old value draws nothing (${H}: no ${v})`:`${H}: ${v}`),t);return{type:cr,props:{name:b.name,...O,[fr]:E,id:Pte(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))wF.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 kF(e,o=CF,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(kn,a.type):void 0;if(!s)return;let l=tl(a,s,t);l.skipped===void 0&&r.push({index:n,node:l.node,nodes:l.nodes})}),r}import{BLOCK_FIXED_WIDTH as jte,BLOCK_SIZE_KEYS as Kte,parseBlockWidthFit as Vu,phoneKey as PF,parseTextFit as Ku,tabletKey as EF,viewKeyAt as OF}from"efficient-easel/draw";import{sideLengthAt as Vte}from"efficient-easel/screen/lib/content/length-units";import{VIEW_DESKTOP_MIN as Wte,VIEW_TABLET_MIN as Ute}from"efficient-easel/screen/lib/content/view-tiers";var Mr={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=Mr,zte=e=>e.flatMap(o=>[`[${o}] p`,`[${o}] li`]).join(","),$te=String.raw`(function (doc) {
|
|
6
|
-
if (doc.__sfFitWords) return;
|
|
7
|
-
var win = doc.defaultView;
|
|
8
|
-
var SELECTOR = "h1,h2,h3,h4,h5,h6,[class*='font-heading'],[class*='font-display']";
|
|
9
|
-
// Body text a block asked to shrink (its Text group's Shrink), beside
|
|
10
|
-
// the headings: what this script may fit at all. modeOf() decides each one.
|
|
11
|
-
var SHRINK_BODY = ${JSON.stringify(zte([dt.fit,dt.fitTablet,dt.fitPhone]))};
|
|
12
|
-
var CANDIDATES = SELECTOR + "," + SHRINK_BODY;
|
|
13
|
-
var MIN_SCALE = 0.3, MIN_PX = 16, SLACK = 1, PHONE_BELOW = ${Kr};
|
|
14
|
-
var TABLET_MIN = ${Ute}, DESKTOP_MIN = ${Wte};
|
|
15
|
-
|
|
16
|
-
// A block's own answer (lib/content/block-size, the wrapper's attributes):
|
|
17
|
-
// the fit "wrap" | "shrink" | "line" | "ellipsis" and the floor, each with a tablet and a
|
|
18
|
-
// phone twin. From 1100 the desktop's; from the tablet line (800 for a holder
|
|
19
|
-
// in a Box, marked edge; 720 outside one) the tablet's where it has one;
|
|
20
|
-
// under it the phone's, else the tablet's, else the desktop's. With no
|
|
21
|
-
// tablet answer the phone's is read under 800, as before (the edge moves with
|
|
22
|
-
// F1). With none, a heading shrinks and body text wraps, as always.
|
|
23
|
-
// A holder with any tablet attribute takes the three views (its line and 1100)
|
|
24
|
-
// for its fit AND its floor together; one with none keeps the 800 edge.
|
|
25
|
-
var TABLET_ATTRS = [${JSON.stringify(dt.fitTablet)}, ${JSON.stringify(dt.minTablet)}];
|
|
26
|
-
function own(el, attr, tabletAttr, phoneAttr) {
|
|
27
|
-
var holder = el.closest("[" + attr + "],[" + tabletAttr + "],[" + phoneAttr + "]");
|
|
28
|
-
if (!holder) return null;
|
|
29
|
-
var w = win.innerWidth, d = holder.getAttribute(attr);
|
|
30
|
-
if (w >= DESKTOP_MIN) return d;
|
|
31
|
-
var t = holder.getAttribute(tabletAttr), p = holder.getAttribute(phoneAttr);
|
|
32
|
-
if (w < (holder.hasAttribute(${JSON.stringify(dt.edge)}) ? PHONE_BELOW : TABLET_MIN)) return p || t || d;
|
|
33
|
-
if (holder.hasAttribute(TABLET_ATTRS[0]) || holder.hasAttribute(TABLET_ATTRS[1])) return t || d;
|
|
34
|
-
return (w < PHONE_BELOW && p) || d;
|
|
35
|
-
}
|
|
36
|
-
function modeOf(el) {
|
|
37
|
-
var mode = own(el, ${JSON.stringify(dt.fit)}, ${JSON.stringify(dt.fitTablet)}, ${JSON.stringify(dt.fitPhone)});
|
|
38
|
-
if (mode === "wrap" || mode === "shrink") return mode;
|
|
39
|
-
// One line and Shorten (stored "ellipsis", which cuts its words with "..."):
|
|
40
|
-
// the block keeps its words at their set size, nothing shrinks.
|
|
41
|
-
if (mode === "line" || mode === "ellipsis") return "wrap";
|
|
42
|
-
return el.matches(SELECTOR) ? "shrink" : "wrap";
|
|
43
|
-
}
|
|
44
|
-
function floorOf(el, set) {
|
|
45
|
-
var raw = own(el, ${JSON.stringify(dt.min)}, ${JSON.stringify(dt.minTablet)}, ${JSON.stringify(dt.minPhone)});
|
|
46
|
-
var min = parseFloat(raw);
|
|
47
|
-
// A Min font size in vw (block-size.ts): a share of the window's width.
|
|
48
|
-
if (/vw$/.test(String(raw))) min = min * win.innerWidth / 100;
|
|
49
|
-
return min >= 0 ? min : Math.max(set * MIN_SCALE, MIN_PX);
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
function measure(el) {
|
|
53
|
-
var widest = 0, current = 0, last = null, split = false, lastBlock = null;
|
|
54
|
-
function blockOf(n) {
|
|
55
|
-
for (var p = n.parentElement; p && p !== el; p = p.parentElement) {
|
|
56
|
-
var d = win.getComputedStyle(p).display;
|
|
57
|
-
if (d.indexOf("inline") !== 0 && d !== "contents") return p;
|
|
58
|
-
}
|
|
59
|
-
return el;
|
|
60
|
-
}
|
|
61
|
-
function close() { if (current > widest) widest = current; current = 0; last = null; }
|
|
62
|
-
var walker = doc.createTreeWalker(el, 5), range = doc.createRange(), node;
|
|
63
|
-
while ((node = walker.nextNode())) {
|
|
64
|
-
if (node.nodeType === 1) {
|
|
65
|
-
if (node.tagName === "BR" || node.tagName === "WBR") close();
|
|
66
|
-
continue;
|
|
67
|
-
}
|
|
68
|
-
var block = blockOf(node);
|
|
69
|
-
if (block !== lastBlock) close();
|
|
70
|
-
lastBlock = block;
|
|
71
|
-
var re = /(\S+)|(\s+)/g, m;
|
|
72
|
-
while ((m = re.exec(node.data))) {
|
|
73
|
-
if (m[2]) { close(); continue; }
|
|
74
|
-
range.setStart(node, m.index);
|
|
75
|
-
range.setEnd(node, m.index + m[0].length);
|
|
76
|
-
var rects = range.getClientRects();
|
|
77
|
-
for (var i = 0; i < rects.length; i++) {
|
|
78
|
-
var r = rects[i];
|
|
79
|
-
if (r.width <= 0) continue;
|
|
80
|
-
current += r.width;
|
|
81
|
-
if (last && r.top > last.top + last.height / 2) split = true;
|
|
82
|
-
last = r;
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
close();
|
|
87
|
-
return { widest: widest, split: split };
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
function lineWidth(el) {
|
|
91
|
-
var cs = win.getComputedStyle(el);
|
|
92
|
-
return el.getBoundingClientRect().width - parseFloat(cs.paddingLeft) - parseFloat(cs.paddingRight)
|
|
93
|
-
- parseFloat(cs.borderLeftWidth) - parseFloat(cs.borderRightWidth);
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
// ⚠️ THE HEADING ELEMENT IS NEVER TOUCHED — no style="", no data-*. This
|
|
97
|
-
// runs before React hydrates, and React 19 in development reports ANY
|
|
98
|
-
// attribute that differs from what it rendered ("a tree hydrated but some
|
|
99
|
-
// attributes didn't match"): first our inline font-size on the hero (which
|
|
100
|
-
// React owns via --heading-size), then, when that moved to a data-sf-fit
|
|
101
|
-
// attribute, the attribute itself. So the fitted size lives only in this
|
|
102
|
-
// script's own stylesheet, in <head>, addressed to each heading by its
|
|
103
|
-
// POSITION (":root>*:nth-child(2)>…"). A position goes stale when the page's
|
|
104
|
-
// structure changes, so the rules are rewritten in the MutationObserver
|
|
105
|
-
// callback, which runs before the next paint. !important so the size also
|
|
106
|
-
// beats a part's own inline size.
|
|
107
|
-
var head = doc.head || doc.documentElement;
|
|
108
|
-
var fitEl = doc.createElement("style");
|
|
109
|
-
fitEl.id = "storefront-fit-words-sizes";
|
|
110
|
-
head.appendChild(fitEl);
|
|
111
|
-
// heading -> [[element, fitted size]]: the heading and each Text part inside
|
|
112
|
-
// it that holds its own size (a span [data-sf-part-styled]), e.g.
|
|
113
|
-
// [[h2, "43.8px"], [span, "43.8px"]]. Sizing the heading alone leaves such
|
|
114
|
-
// a part at its own size, and the word still breaks (card C25, Spec Table).
|
|
115
|
-
var fitted = new Map();
|
|
116
|
-
|
|
117
|
-
function pathOf(el) {
|
|
118
|
-
var parts = [];
|
|
119
|
-
for (var e = el; e && e.parentElement; e = e.parentElement) {
|
|
120
|
-
var i = 1, s = e;
|
|
121
|
-
while ((s = s.previousElementSibling)) i++;
|
|
122
|
-
parts.unshift("*:nth-child(" + i + ")");
|
|
123
|
-
}
|
|
124
|
-
return ":root>" + parts.join(">");
|
|
125
|
-
}
|
|
126
|
-
function writeRules() {
|
|
127
|
-
var css = "";
|
|
128
|
-
fitted.forEach(function (sizes, el) {
|
|
129
|
-
if (!el.isConnected) { fitted.delete(el); return; }
|
|
130
|
-
for (var i = 0; i < sizes.length; i++) css += pathOf(sizes[i][0]) + "{font-size:" + sizes[i][1] + " !important}";
|
|
131
|
-
});
|
|
132
|
-
if (fitEl.textContent !== css) fitEl.textContent = css;
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
function unfit(el) {
|
|
136
|
-
if (fitted.delete(el)) writeRules();
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
function fits(el) {
|
|
140
|
-
var m = measure(el);
|
|
141
|
-
return !m.split && m.widest <= lineWidth(el) + SLACK;
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
function fit(el) {
|
|
145
|
-
unfit(el);
|
|
146
|
-
if (modeOf(el) !== "shrink") return; // the block's own Wrap
|
|
147
|
-
if (lineWidth(el) <= 0) return; // hidden, or not laid out yet
|
|
148
|
-
if (fits(el)) return;
|
|
149
|
-
var set = parseFloat(win.getComputedStyle(el).fontSize);
|
|
150
|
-
if (!set) return;
|
|
151
|
-
var floor = floorOf(el, set);
|
|
152
|
-
if (floor >= set) return;
|
|
153
|
-
function size(px) { return Math.floor(px * 10) / 10 + "px"; }
|
|
154
|
-
// The SEARCH tries sizes on the element's own style and then puts that
|
|
155
|
-
// attribute back byte for byte (or removes it, if it had none), so nothing
|
|
156
|
-
// is left for React to see. A trial in a stylesheet instead restyles the
|
|
157
|
-
// whole page per step: a full pass on the Hartes home took 75–160ms at 4x
|
|
158
|
-
// CPU that way.
|
|
159
|
-
// Every trial scales the heading AND each part inside it that holds its
|
|
160
|
-
// own size, by the same ratio, so a part keeps its proportion to the
|
|
161
|
-
// heading.
|
|
162
|
-
var carriers = [el].concat(Array.prototype.slice.call(el.querySelectorAll("[data-sf-part-styled]")));
|
|
163
|
-
var base = carriers.map(function (c) { return parseFloat(win.getComputedStyle(c).fontSize) || set; });
|
|
164
|
-
var saved = carriers.map(function (c) { return c.hasAttribute("style") ? c.getAttribute("style") : null; });
|
|
165
|
-
function attempt(px) {
|
|
166
|
-
for (var i = 0; i < carriers.length; i++) carriers[i].style.setProperty("font-size", size(base[i] * px / set), "important");
|
|
167
|
-
}
|
|
168
|
-
function done() {
|
|
169
|
-
for (var i = 0; i < carriers.length; i++) {
|
|
170
|
-
if (saved[i] !== null) carriers[i].setAttribute("style", saved[i]); else carriers[i].removeAttribute("style");
|
|
171
|
-
}
|
|
172
|
-
}
|
|
173
|
-
attempt(floor);
|
|
174
|
-
if (!fits(el)) { done(); return; } // even the floor does not fit: leave it as set
|
|
175
|
-
var lo = floor, hi = set;
|
|
176
|
-
for (var i = 0; i < 8; i++) {
|
|
177
|
-
var mid = (lo + hi) / 2;
|
|
178
|
-
attempt(mid);
|
|
179
|
-
if (fits(el)) lo = mid; else hi = mid;
|
|
180
|
-
}
|
|
181
|
-
done();
|
|
182
|
-
fitted.set(el, carriers.map(function (c, i) { return [c, size(base[i] * lo / set)]; }));
|
|
183
|
-
writeRules();
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
// What each heading measured right after we last fitted it, so the
|
|
187
|
-
// ResizeObserver below can tell a real change (a font swap, a rotate, a
|
|
188
|
-
// container that moved) from the size change our own write just caused.
|
|
189
|
-
var seen = new WeakMap();
|
|
190
|
-
function remember(el) {
|
|
191
|
-
var b = el.getBoundingClientRect();
|
|
192
|
-
seen.set(el, b.width + "x" + b.height);
|
|
193
|
-
}
|
|
194
|
-
function fitAndRemember(el) { fit(el); remember(el); }
|
|
195
|
-
|
|
196
|
-
// ⚠️ A ResizeObserver, NOT fonts.ready or a resize event, and the reason is
|
|
197
|
-
// WHEN it runs: after layout, BEFORE paint. The web font arriving re-wraps a
|
|
198
|
-
// fitted heading, and fonts.ready resolves only after that frame is painted —
|
|
199
|
-
// measured on the Hartes hero: a 42px jump in 2 of 3 loads. A size change
|
|
200
|
-
// reported here is fitted in the same frame, so the broken state is never
|
|
201
|
-
// drawn. It also covers a container that resizes.
|
|
202
|
-
var ro = new win.ResizeObserver(function (entries) {
|
|
203
|
-
for (var i = 0; i < entries.length; i++) {
|
|
204
|
-
var el = entries[i].target;
|
|
205
|
-
var b = el.getBoundingClientRect();
|
|
206
|
-
if (seen.get(el) === b.width + "x" + b.height) continue; // our own write
|
|
207
|
-
fitAndRemember(el);
|
|
208
|
-
}
|
|
209
|
-
});
|
|
210
|
-
// Its own set, not seen: fitAndRemember has written seen by the
|
|
211
|
-
// time watch runs, so a seen test observed no heading at all, and a
|
|
212
|
-
// heading fitted in the fallback face was never fitted again when the web
|
|
213
|
-
// font arrived (hartesmetal.com.au, "FusionForge." with its "." alone).
|
|
214
|
-
var watched = new WeakSet();
|
|
215
|
-
function watch(el) { if (!watched.has(el)) { watched.add(el); ro.observe(el); } }
|
|
216
|
-
|
|
217
|
-
function fitAll() {
|
|
218
|
-
var els = doc.querySelectorAll(CANDIDATES);
|
|
219
|
-
for (var i = 0; i < els.length; i++) {
|
|
220
|
-
if (modeOf(els[i]) === "shrink") { fitAndRemember(els[i]); watch(els[i]); }
|
|
221
|
-
else unfit(els[i]); // Wrap here (a phone value may differ from the desktop's)
|
|
222
|
-
}
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
var queued = 0, all = false, touched = new Set();
|
|
226
|
-
function run() {
|
|
227
|
-
queued = 0;
|
|
228
|
-
if (all) { all = false; touched.clear(); fitAll(); return; }
|
|
229
|
-
var els = Array.from(touched);
|
|
230
|
-
touched.clear();
|
|
231
|
-
for (var i = 0; i < els.length; i++) {
|
|
232
|
-
if (!els[i].isConnected) continue;
|
|
233
|
-
if (modeOf(els[i]) === "shrink") { fitAndRemember(els[i]); watch(els[i]); }
|
|
234
|
-
else unfit(els[i]);
|
|
235
|
-
}
|
|
236
|
-
}
|
|
237
|
-
function schedule() { if (!queued) queued = win.requestAnimationFrame(run); }
|
|
238
|
-
function scheduleAll() { all = true; schedule(); }
|
|
239
|
-
|
|
240
|
-
fitAll();
|
|
241
|
-
// A backstop only: a font that changes widths without changing any
|
|
242
|
-
// heading's box is not seen by the ResizeObserver.
|
|
243
|
-
if (doc.fonts && doc.fonts.ready) doc.fonts.ready.then(scheduleAll, function () {});
|
|
244
|
-
|
|
245
|
-
// …and the viewport WIDTH, which the ResizeObserver cannot stand in for: a
|
|
246
|
-
// heading sized to its own text (fit-content, a flex item) keeps the SAME box
|
|
247
|
-
// when the phone turns to 844, so nothing reports a change and it would stay
|
|
248
|
-
// shrunk. The probe's rotate check caught exactly that.
|
|
249
|
-
var lastWidth = win.innerWidth;
|
|
250
|
-
function onResize() {
|
|
251
|
-
if (win.innerWidth === lastWidth) return; // a phone's toolbar changing HEIGHT is not our business
|
|
252
|
-
lastWidth = win.innerWidth;
|
|
253
|
-
scheduleAll();
|
|
254
|
-
}
|
|
255
|
-
win.addEventListener("resize", onResize);
|
|
256
|
-
|
|
257
|
-
var mo = new win.MutationObserver(function (records) {
|
|
258
|
-
// Positions first: a node added or removed anywhere can shift the
|
|
259
|
-
// nth-child path of a fitted heading, and this callback runs before paint.
|
|
260
|
-
if (fitted.size) {
|
|
261
|
-
for (var q = 0; q < records.length; q++) if (records[q].type === "childList") { writeRules(); break; }
|
|
262
|
-
}
|
|
263
|
-
for (var i = 0; i < records.length; i++) {
|
|
264
|
-
var r = records[i];
|
|
265
|
-
// A block's text fit (Wrap / Shrink / One line) or Min font size changed in the editor:
|
|
266
|
-
// only a data-fit attribute moved, so every heading is measured again.
|
|
267
|
-
if (r.type === "attributes") { scheduleAll(); continue; }
|
|
268
|
-
var target = r.target.nodeType === 1 ? r.target : r.target.parentElement;
|
|
269
|
-
var owner = target && target.closest(CANDIDATES);
|
|
270
|
-
if (owner) touched.add(owner);
|
|
271
|
-
for (var j = 0; j < r.addedNodes.length; j++) {
|
|
272
|
-
var n = r.addedNodes[j];
|
|
273
|
-
if (n.nodeType !== 1) continue;
|
|
274
|
-
if (n.matches(CANDIDATES)) touched.add(n);
|
|
275
|
-
var inner = n.querySelectorAll(CANDIDATES);
|
|
276
|
-
for (var k = 0; k < inner.length; k++) touched.add(inner[k]);
|
|
277
|
-
}
|
|
278
|
-
}
|
|
279
|
-
if (touched.size) schedule();
|
|
280
|
-
});
|
|
281
|
-
mo.observe(doc.body, {
|
|
282
|
-
childList: true,
|
|
283
|
-
subtree: true,
|
|
284
|
-
characterData: true,
|
|
285
|
-
attributes: true,
|
|
286
|
-
attributeFilter: ${JSON.stringify(Object.values(dt))},
|
|
287
|
-
});
|
|
288
|
-
|
|
289
|
-
doc.__sfFitWords = function stop() {
|
|
290
|
-
win.removeEventListener("resize", onResize);
|
|
291
|
-
ro.disconnect();
|
|
292
|
-
mo.disconnect();
|
|
293
|
-
if (queued) win.cancelAnimationFrame(queued);
|
|
294
|
-
fitted.clear();
|
|
295
|
-
fitEl.remove();
|
|
296
|
-
delete doc.__sfFitWords;
|
|
297
|
-
};
|
|
298
|
-
// For the probe and for debugging: which headings are fitted, at what size,
|
|
299
|
-
// and the sheet that holds it (disable it to read a heading's set size).
|
|
300
|
-
doc.__sfFitWords.fitted = fitted;
|
|
301
|
-
doc.__sfFitWords.sheet = fitEl;
|
|
302
|
-
// …and the two questions a block's own answer changes, for the guard
|
|
303
|
-
// (scripts/test-block-size.tsx §5): which mode an element is in, and its floor.
|
|
304
|
-
doc.__sfFitWords.modeOf = modeOf;
|
|
305
|
-
doc.__sfFitWords.floorOf = floorOf;
|
|
306
|
-
})(document);`,Gte="storefront-fit-words";function TF(e){let o=e.createElement("script");return o.id=Gte,o.textContent=$te,(e.head??e.documentElement).appendChild(o),()=>{e.__sfFitWords?.(),o.remove()}}var qte="sf-block-size",sd=["width","minWidth","maxWidth"],qu=e=>`${e}Unit`,ma=e=>typeof e=="number"&&Number.isFinite(e)&&e>=0?e:void 0,Yte={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"}},LF={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"}},Xte={desktop:LF.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"}},Zte={two:{desktop:"view-wide:[.flex-row>*>&]:grow"},three:{desktop:"view-desktop:[.flex-row>*>&]:grow",tablet:"view-wide:max-view-desktop:[.flex-row>*>&]:grow"}},k2e="max-view-wide:grow!";function T2e(e){return Yu(e).mode.phone==="fill"}var Jte={desktop:"--sf-bw",tablet:"--sf-bw-t",phone:"--sf-bw-p"},Qte={fill:"data-sf-width-fill",fixed:"data-sf-width-fixed"},ere="data-sf-min-width",_F={two:{desktop:"wide",phone:Xh.phone},three:Xh},ore={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)]"]}},nS={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)]"]}},tre={minWidth:{desktop:nS.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:nS.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)]"]}},rre=["widthFit",...sd],AF={desktop:"view-wide:whitespace-nowrap view-wide:[&_*]:whitespace-nowrap!",phone:"max-view-wide:whitespace-nowrap max-view-wide:[&_*]:whitespace-nowrap!"},sS={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!"},are={desktop:sS.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!"},FF={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"},nre={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:FF.phone},BF={desktop:"view-wide:max-w-full",phone:"max-view-wide:max-w-full"},RF={desktop:"view-desktop:max-w-full",tablet:"view-wide:max-view-desktop:max-w-full",phone:BF.phone};function P2e(e){let o=Yu(e);return o.sides.filter(t=>o.mode[t]==="fill").map(t=>Zte[o.three?"three":"two"][t]).filter(Boolean).join(" ")}function E2e(e){let{three:o,sides:t,mode:r,lengthPerSide:a}=Yu(e),n=c=>o?_F.three[c]:_F.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[Qte[c]]=s[c].join(" "));return s.min.length&&(d[ere]=s.min.join(" ")),d}function Yu(e){let o=rre.some(a=>{let n=e[a]?.tablet;return a==="widthFit"?Vu(n)!==void 0:ma(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=qu(a),s={};for(let d of t)s[OF(a,Tr(d))]=ma(e[a]?.[d]),s[OF(n,Tr(d))]=e.units?.[a]?.[d];let l=d=>Vte(s,{length:a},n,Tr(d),"length")??void 0;return{desktop:l("desktop"),tablet:l("tablet"),phone:l("phone")}},mode:r(Vu,e.widthFit)}}function O2e(e,{atSectionLine:o=!1}={}){let t=["desktop","tablet","phone"].some(_=>Ku(e.textFit?.[_])==="ellipsis"),r=o&&!t,a=r?Xte:LF,n=r?tre:nS,s=r?are:sS,l=[],d={},c={},{three:f,sides:u,lengthPerSide:p,mode:h}=Yu(e),I=p("width");for(let _ of u){let A=h[_];!A||A==="fit"||(l.push(f?a[_][A]:Yte[_][A]),A==="fixed"&&(d[Jte[_]]=We(I[_]?.value??jte.fallback,I[_]?.unit)))}for(let _ of sd.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]:ore[_][F];d[$]=We(z.value,z.unit),l.push(X)}}let g=Ku(e.textFit?.desktop),C=Ku(e.textFit?.phone),w=_=>{let A=ma(e.minFont?.[_]);return A===void 0?void 0:e.units?.minFont?.[_]==="vw"?`${A}vw`:String(A)},T=w("desktop"),y=w("phone"),b=Ku(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=ma(e.maxWidth?.desktop),O=ma(e.maxWidth?.tablet)??W,D={desktop:W!==void 0,tablet:O!==void 0,phone:(ma(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,AF));return}if(l.push($(sS,AF)),l.push($(nre,FF)),f&&!F&&_==="desktop")for(let X of["desktop","tablet"])D[X]||l.push(RF[X]);else D[_]||l.push($(RF,BF))};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[Mr.fit]=g),P&&(c[Mr.fitTablet]=P),C&&(c[Mr.fitPhone]=C),T!==void 0&&(c[Mr.min]=T),E!==void 0&&(c[Mr.minTablet]=E),y!==void 0&&(c[Mr.minPhone]=y),!r&&(P||E!==void 0)&&(c[Mr.edge]=""),l.length===0&&Object.keys(c).length===0?null:{className:[qte,...l].join(" "),style:d,attrs:c}}function _2e(e){if(ma(e.maxWidth?.desktop)!==void 0)return!0;let o=Vu(e.widthFit?.desktop);return o==="fill"||o==="fixed"}function A2e(e){return["desktop","tablet","phone"].some(o=>{let t=Vu(e.widthFit?.[o]);return t==="fixed"||t==="fill"||ma(e.minWidth?.[o])!==void 0})}function R2e(e){let o={};for(let t of Kte){let r=e[t],a=e[EF(t)],n=e[PF(t)];(r!==void 0||a!==void 0||n!==void 0)&&(o[t]={desktop:r,tablet:a,phone:n});let s=qu(t),l={desktop:e[s],tablet:e[EF(s)],phone:e[PF(s)]};(l.desktop!==void 0||l.tablet!==void 0||l.phone!==void 0)&&((o.units??={})[t]=l)}return o}var DF={label:"Button",defaultProps:{label:"",href:"#",variant:"primary",align:"left",contained:!0}};import{jsx as WF}from"react/jsx-runtime";import{SITE_SIDE as sre}from"efficient-easel/screen/lib/content/length-units";var NF="sideSpace",En=sre,D2e=[{value:"box",label:"Box"},{value:En,label:"Site"}],N2e="box",M2e="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 MF(e){return e===En?En:"box"}function H2e(e){return e===En?En:void 0}import{isNodeList as lre}from"efficient-easel/data";var lS=new Set(["FAQ"]);function HF(e,o){if(!lS.has(e))return!1;let t=o.template;return typeof t=="function"?(t.blockCount??0)>0:lre(t)}var zF={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}},$F=new Set(Object.keys(zF));function iS(e,o){return o?.innerPadding??K(zF,e)}var Xu=e=>iS(e)??{};var GF=new Set(["Flex","Text","Heading","ImageBlock"]),ire=new Set(["Divider"]),dre=new Set(["Hero","HeroSingle","IntroBleed","CategoryBar","DocTabs"]),UF=new Set(["ProductGrid"]);function dS(e,o,t=!1){let r=e.render;e.render=a=>{if(o?.(a))return r(a);let n=ai({...LI(a,Ar,t),sideSpace:MF(a.sideSpace)}),s=r(a);if(!n)return s;let l=f=>WF(Ec,{className:f?`${n.className} ${f}`:n.className,style:n.style,children:s}),d=Qh(a,{atSectionLine:!0}),c=Qh(a);return d===c?l(d):WF(Nk,{line:"by-box",draw:f=>l(f?c:d)})}}var J2e={name:"sectionPadding",applies:(e,o,t)=>o.isSection(e)&&!dre.has(e)&&!!t&&typeof t.render=="function",panel(e,o,t){let r=iS(o,e);if(r){e.fields={...e.fields,...t.sidesPaddingFields({keys:sr,unitKey:Xa,fallback:r,tablet:!0,siteSide:!0})};return}if(UF.has(o))return;let a=[sr.top,sr.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(!iS(o,e)){if(UF.has(o)){dS(e);return}GF.has(o)||ire.has(o)||dS(e,o==="Flex"?t=>Gx(t.bgImage):lS.has(o)?t=>HF(o,t):void 0,!0)}}},cre=["Heading","Text","ImageBlock"],fre=["LogoBlock"],Q2e={name:"blockPadding",applies:(e,o,t)=>(cre.includes(e)||fre.includes(e))&&!!t&&typeof t.render=="function",panel(e,o,t){e.fields={...e.fields,...t.sidesPaddingFields({tablet:!0,siteSide:!0})}},draw(e,o){GF.has(o)||dS(e,void 0,!0)}};import{parseHexColor as pre}from"efficient-shell/format";import{convertLength as ure}from"efficient-easel/screen/lib/content/length-units";var pr=(e,o,t,r)=>o===t?e:ure(e,o,t,r,{min:0,max:200,step:4}),On={textFit:"line",textFitPhone:"wrap"},_n={...G,[Rt]:""},{label:EMe,href:OMe,...mre}=DF.defaultProps,vo=mre,An={buttonFillOpacity:0,buttonBorder:{width:0},buttonPaddingTop:0,buttonPaddingRight:0,buttonPaddingBottom:0,buttonPaddingLeft:0},Z={...Rh,sectionAccent:0},al={sectionAccent:-1},re=[...ea,"sectionHeightMode","sectionHeightValue","sectionHeightUnit","sectionHeightModeTablet","sectionHeightValueTablet","sectionHeightUnitTablet","sectionHeightModePhone","sectionHeightValuePhone","sectionHeightUnitPhone","sectionCorners","sectionCornerSides","sectionBorder","sectionBorderTablet","sectionBorderPhone","sectionAccent",zl.unitKey,...ME,...LE,"anchor",Dl,...gs,...Cc,...hu,...wc(["widthFit",...sd,...sd.map(qu)]),...Object.values(io)],rl="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:rl,fullWidth:rl,pageWidth:rl,backgroundWidth:rl,contentWidth:rl,contentMax:rl},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+pr(I,"px",d,"mobile");let C=p===void 0?{n:h,unit:s}:{n:p,unit:l};return pr(C.n,C.unit,d,"mobile")+pr(I,"px",d,"mobile")},f=(u,p,h,I,g)=>p!==void 0?{[u]:p+pr(g??I,"px",l,"tablet")}:g===void 0?{}:{[u]:pr(h,s,l,"tablet")+pr(g,"px",l,"tablet")};return{sectionPaddingTop:t+pr(o.top,"px",s,"desktop"),sectionPaddingBottom:r+pr(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 RI)e[a]!==void 0&&(t[n]=e[a]);let r=ni(e,Xu(o));return{...t,sectionPaddingTop:r.top,sectionPaddingBottom:r.bottom}}var ha=e=>[...RI.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]],hre={kind:"heading-case-upper",styles:["heading-1","heading-2","heading-3"]},_Me=e=>o=>Qe(o.props[e])?[hre]:[],me=(e,o)=>({kind:"text",key:e,role:"eyebrow",props:G,...o?{style:o}:{}}),nl=e=>({kind:"group",name:"Chip",props:{...L,...Cr("main"),...No(6,14)},parts:[me(e,{color:"background",...U("label",12),weight:600,letterSpacing:.16})]}),jF=e=>e.background!=="transparent",xre=(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},ld={align:"right",alignPhone:"left"},Ire=(e,o,t)=>{let r=a=>xre(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}},id=(e,o,t,r={})=>Ire(e,o,{..._n,...ld,...r,_partStyles:{text:{...Ko,color:"labels",...t,case:Ko.case,...ld}}}),sl=(e,o)=>typeof e=="number"&&Number.isInteger(e)&&e>=0?e:Tn(o)?.selected??0,KF="var(--site-surface-2)",Zu=(e,o)=>Tn(o)?.themes[sl(e.sectionAccent??0,o)],Qo=(e,o)=>(t,r)=>{if(!o?.(t,r))return Cr(e);let a=Zu(t,r)?.[e];return a?{fillColor:a}:{}},Ju=(e,o)=>xa(e,o)>=0,VF=e=>e.startsWith("#")&&pre(e)!==null,Qu=(e,o,t)=>{let r=e?.trim();if(r&&VF(r))return{fillColor:r};let a=Ux(r);if(a)return Cr(a);let n=r===KF?Zu(o,t):void 0;return n?{fillColor:gc(n)}:{}},em=e=>{let o=e?.trim();return!o||o==="transparent"||o===Mo||Ux(o)||o===KF||VF(o)?void 0:"it paints a colour that no Box Fill can hold"},xa=(e,o)=>{let t=Tn(o)?.themes;return t&&jF(e)?tk(t,sl(e.sectionAccent,o)):-1},Ia=(e,o,t)=>{let r=xa(o,t);return r>=0?r:e},ll=(e,o)=>{let t=Tn(o)?.themes,r=t?rk(t,sl(e,o)):-1;return r>=0?r:e},Rn=(e,o)=>{let t=xa(e,o);return t>=0?{sectionAccent:t}:{}},ga=(e,o)=>jF(e.props)&&xa(e.props,o)<0?[{kind:"band-preset",page:sl(e.props.sectionAccent,o)}]:[],il=(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=Ic(u,I,"spacing",h);return g===null?null:pr(g,I,"px",d)},f=o==="desktop"?c(a,n,Go)??Rf(a):c(s,l,Ht)??Lf(s)??Ff(a,n);return pr(Math.min(r,f),"px",t,d)},dd=Object.fromEntries(["Top","Right","Bottom","Left","TopPhone","RightPhone","BottomPhone","LeftPhone"].map(e=>[`sectionPadding${e}`,0])),cd=e=>({top:0,right:0,bottom:0,left:0,...e}),cS=(e,o,t,r=[])=>({kind:"group",name:e,keepEmpty:!0,props:(a,n)=>({...L,...dd,...Qo("surface")(a,n),...typeof t=="function"?t(a,n):t}),box:[[o,"bgImage"],lo.kind,lo.duration,lo.delay],parts:r});import{phoneKey as wS,readHidable as CS}from"efficient-easel/draw";import{isNodeList as Qre,newId as eae}from"efficient-easel/data";function qF(e){return Math.min(4,Math.max(2,e??3))}var FMe={eyebrow:"Label",title:"Section *heading.*"},gre={template:Lv()},YF={label:"Cards",fields:gre,defaultProps:{eyebrow:"",title:"",items:[],columns:3}};var NMe={eyebrow:"Highlight",title:"Key *features.*"},MMe=()=>[{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")}],XF={label:"Key Features",defaultProps:{eyebrow:"",title:"",items:[],columns:3}};var bre="plain",ZF=[{label:"Plain",value:"plain"},{label:"Filled",value:"filled"},{label:"Line",value:"line"}],yre="line",Sre={KeyFeatures:"filled"};function fd(e){return K(Sre,e)??bre}function JF(e,o){return co(ZF,fd(o),e)}function zMe(e){return co(ZF,yre,e)}var fS="cardPlace";function jMe(e){return e[fS]==="top-line"?"top-line":""}var KMe="absolute left-5 top-0 z-10 -translate-y-1/2 bg-bg px-2",VMe="data-sf-top-line",wre=new Set(["Cards",Lt]);function qMe(e){return typeof e=="string"&&wre.has(e)}var Cre=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 YMe(e,o,t){return!t||!o?.linesBetween||o.index!==0?e:Cre(e)?{...e,top:0}:e}var XMe="outsideFramedCard";function vre(e,o){let t=e.trim();if(!om(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 QMe(e){return e.startsWith("/")||om(e)}function om(e){return/^(?:https?:)?\/\//i.test(e.trim())}var pd=Object.freeze({target:"_blank",rel:"noopener noreferrer"});function QF(e,o){return vre(e,o)?{...pd}:{}}function eHe(e){return typeof e=="string"?e.trim():""}var oHe="data-sf-box-link",eB="absolute inset-0 -z-[1] outline-none focus-visible:z-[2] focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-accent",tHe="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",kre="data-sf-box-jump";function Tre(e){return`sf-box-jump-${e}`}function rHe(e,o){return e===!0?Qc(o):""}function Pre({box:e,lit:o,first:t}){let r=s=>s.join(`,
|
|
307
|
-
`),a=t(e),n=o.flatMap(t);return`
|
|
308
|
-
${e} {
|
|
309
|
-
outline: 2px solid transparent;
|
|
310
|
-
outline-offset: -2px;
|
|
311
|
-
transition: outline-color 600ms ease-out;
|
|
312
|
-
}
|
|
313
|
-
${r(a)} { transition: background-color 600ms ease-out; }
|
|
314
|
-
${r(a.map(s=>`${s} *`))} { transition: color 600ms ease-out; }
|
|
315
|
-
${r(o)} { outline-color: var(--accent); }
|
|
316
|
-
${r(n)} { background-color: var(--accent); }
|
|
317
|
-
${r([...n,...n.map(s=>`${s} *`)])} { color: var(--bg) !important; }
|
|
318
|
-
`}function aHe(e){let o=`[${kre}="${e}"]`,t=`.${Tre(e)}`,r=`[id="${e}"]:target`;return Pre({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 Ere=["selected","highlighted"],oB="data-sf-card-state",dHe="pointer-events-none absolute inset-0 border border-accent",cHe="pointer-events-none absolute inset-x-0 bottom-0 border-b-2 border-accent",fHe="pointer-events-none absolute inset-0 border-2 border-accent outline outline-1 -outline-offset-1 outline-accent",pHe="absolute inset-y-0 left-0 w-[3px] bg-accent",uHe="absolute -inset-[2px] -z-[1] bg-[color-mix(in_oklab,var(--accent)_14%,transparent)]",mHe="after:pointer-events-none after:absolute after:inset-0 hover:after:border-2 hover:after:border-accent",tB=e=>{let o=xk.find(t=>t.role===e)?.token;if(!o)throw new Error(`card-state: the palette has no ink token for "${e}"`);return o},Ore={[tB("muted")]:`var(${tB("fg")})`};function _re(e){return e?.selected===!0}function Are(e){return e?Ere.filter(o=>e[o]===!0).join(" "):""}function hHe(e,o="frame"){let t=Are(e);return t?o==="frame"&&_re(e)?{[oB]:t,className:"relative isolate",style:{...Ore}}:{[oB]:t,className:"relative"}:{}}var Rre={highlighted:!0},Lre={},tm="badge";function xHe(e,o=[]){return e.map((t,r)=>({...t,key:t.key||o[r]?.key||Ll(t,r)}))}function IHe(e){return!e||typeof e!="object"?!1:Object.entries(e).some(([o,t])=>o==="key"||o===tm||o==="state"?!1:typeof t=="string"?t.trim()!=="":Array.isArray(t)?t.length>0:t!=null&&typeof t!="function")}function gHe(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,[tm]:s===a?t:""})),states:e.map((n,s)=>s===a?Rre:Lre)}}function bHe(e){return{chosen:typeof e.highlightedCard=="string"?e.highlightedCard.trim():"",badge:typeof e.highlightBadge=="string"?e.highlightBadge:""}}function yHe(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 SHe="data-sf-card-press",rB=`${eB} appearance-none bg-transparent border-0 p-0 m-0`,wHe=`${rB} cursor-pointer`,CHe=rB;var rm={sectionBorder:{top:0,right:1,bottom:1,left:0},...Cr("background")},Fre={gap:0,gapPhone:0,sectionBorder:{top:1,right:0,bottom:0,left:1},shadow:!0},am=e=>({direction:"row",columns:e,columnsTablet:e,...Fre}),aB=(e={})=>qe(tm,{...G,tag:"p",[fS]:"top-line"},e,!0),nB=(e=yv)=>{let o=Sv(e);return{...o,props:{...rm,...o.props},slots:{[He]:[...o.slots?.[He]??[],aB()]}}},pS=(e=!1)=>{let o=Cv(e);return{...o,props:{...rm,...o.props}}},Bre={name:"name",time:"time",note:"note",price:"price"},Dre={textStyle:"body-1",...U("body",16),weight:500,lineHeight:1.5},Nre={...Ko,...U("label",12),letterSpacing:.18,lineHeight:1.5},Mre={textStyle:"body-1",...U("body",14),lineHeight:1.6},Hre={textStyle:"body-1",fontRole:"heading",...U("headingSmall",20),weight:500,color:"accent",lineHeight:1.5},Wre={...U("label",11),letterSpacing:.25},Ure={gap:16,gapPhone:16,sectionBorder:{top:0,right:0,bottom:0,left:0},shadow:!1},zre=e=>({direction:"row",columns:e,...Ure}),_He=[...new Set([...Object.keys(am(1)),...Object.keys(zre(1))])],AHe=()=>{let e=Bre,o={tag:"p",widthFit:"fill"};return{type:te,props:{...L,name:"Card",justify:"between",gap:16,gapPhone:16,...No(24),sectionBorder:{top:1,right:1,bottom:1,left:1},...Cr("surface"),shadow:!0},slots:{[He]:[aB(Wre),{type:te,props:{...L,name:"Words",gap:8,gapPhone:8},slots:{[He]:[qe(e.name,{...G,...o},Dre),qe(e.time,{...ne,...o},Nre),qe(e.note,{...ne,...o},Mre)]}},qe(e.price,{...G,...o},Hre)]}}};import{tabletKey as dB}from"efficient-easel/draw";import{VIEW_DESKTOP_MIN as nm}from"efficient-easel/draw";var sm=Kr,uS=nm,sB=960,lB=Kr,iB={min:sm,max:1600,step:10},lm="stackBelow";function DHe(e){if(!(typeof e!="number"||!Number.isFinite(e))&&!(e<iB.min||e>iB.max))return Math.round(e)}var $re=e=>`sf-stack-${e}`,Gre=e=>`sf-stack-${e}-gutter`,jre=e=>`sf-stack-${e}-outer`,dl=e=>`${e-.02}px`;function NHe(e,o={}){let t=o.gutter!==!1,r=`.${$re(e)}`,a=`.${Gre(e)}`,n=`.${jre(e)}`,s=[];if(e>sm){let l=`${r}>.sf-block-size,${r}>[data-easel-block]>[data-sf-part-host]>.sf-block-size`,d=Math.min(e,nm);s.push(`@media (min-width:${sm}px) and (max-width:${dl(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:${sm}px) and (max-width:${dl(d)}){.sf-gap-zone${r}{gap:var(--sf-gap-len-tablet,var(--sf-gap-len-phone,calc(var(--sf-gap-len) / 2)))}}`),e>nm&&s.push(`@media (min-width:${nm}px) and (max-width:${dl(e)}){.sf-gap-zone${r}{gap:var(--sf-gap-len-phone,calc(var(--sf-gap-len) / 2))}}`)}return t&&s.push(`@media (max-width:${dl(e)}){${a}${a}{padding-inline:${nr.frame}}}`),t&&e<sB&&s.push(`@media (min-width:${e}px) and (max-width:${dl(sB)}){${a}${a}{padding-inline:${nt}}}`),e>lB&&s.push(`@media (min-width:${lB}px) and (max-width:${dl(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 Ln(e){if(e==="ProductGrid")return"shelf";let o=K(kr,e)?.headStyle;return o==="editorial"||o==="simple"||o==="essay"?o:"standard"}var ud={standard:64,editorial:60,simple:36,essay:28,shelf:20},Kre={SectionHeader:"accent",FAQ:"accent",FitmentFinder:"accent",FitmentTable:"accent",SpecTable:"accent",RelatedProducts:"accent",Collections:"accentNum"};function Vre(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 dm(e,o,t){let r=`editorial:${e}|${o}|${t}`,a=im.get(r);if(a)return a;let n=uB({num:e,title:o,description:t,link:!1});return im.set(r,n),n}var et={[lm]:uS},hS={top:0,right:0,bottom:1,left:0},ot=(e,o,t,r)=>({sizeToken:{step:e,px:r,fluid:{minPx:o,vw:t}}}),cm=(e,o,t={})=>me(e,{...U("label",o),...t}),fm=(e,o)=>({kind:"text",key:e,role:"heading",props:G,style:{textStyle:"heading-2",...o}}),xS=800,qre=uS,IS=(e,o,t,r,a={})=>({kind:"text",key:e,props:{...ne,align:"right",alignPhone:"left",...t?{maxWidth:t,maxWidthPhone:xS}:{},...a},style:{textStyle:"body-5",fontRole:"heading",alignPhone:"left",...U("body",o),...r,...a}}),pB={...vo,align:"right",alignPhone:"left",...An},mS=e=>({kind:"button",key:"linkText",href:"linkHref",variant:"ghost",props:pB,style:{...Ft(e),color:"labels"}}),cB=(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"?Yre(vr()):{},...t.style}}}}},Yre=e=>e._partStyles.text??{},cl={widthFitPhone:"fill"};function gS(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),...cl}):{...o,...cl}}}return{...e,parts:e.parts.map(gS)}}function Xre(e,o){let t=K(Kre,e),r=t==="accent",a=cm(o.num,14,{color:r?"accent":"labels"}),n=t==="accentNum"&&a.kind==="text"?{...a,mark:"accentLead"}:a,s=fm(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:hS,sectionPaddingBottom:24,sectionPaddingBottomPhone:20},parts:[{kind:"group",name:"Title",props:{...L,...cl,direction:"row",align:"end",gap:40,gapPhone:12,share:"content"},parts:[{kind:"group",name:"Number",props:{...L,...cl,align:"start",gap:12},parts:[{kind:"image",key:"logoSrc",alt:"logoAlt",props:{aspect:"auto",contained:!1}},n,...l?[cB(o.num,"==01== / Collections",n)]:[]]},{kind:"group",name:"Heading",props:{...L,...cl},parts:[s,...l?[cB(o.title,`Three ranges,
|
|
319
|
-
one standard.`,s)]:[]]}]},{kind:"group",name:"Words",props:{...L,...cl,gap:12,maxWidth:340,maxWidthPhone:xS},parts:[...o.description?[IS(o.description,14,void 0,{lineHeight:1.5})]:[],...o.link?[mS(14)]:[],...l?[{kind:"block",type:"ButtonBlock",props:{...pB,variant:"ghost",label:"View all",href:"/wheels",_partStyles:{label:mS(14).style}}}]:[]]}]}}function pm(e,o){return e.kind==="text"?o.includes(e.key)?{...e,mark:"accentItalic"}:e:e.kind==="group"?{...e,parts:e.parts.map(t=>pm(t,o))}:e}function uB(e){let o=fm(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:hS,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:[{...cm(e.num,13),props:{...G,...On}}]},pm(o,[e.title])]},{kind:"group",name:"Words",props:{...L,sectionPaddingBottom:4,maxWidth:360,[dB("maxWidth")]:qre,maxWidthPhone:xS},parts:e.description?[IS(e.description,14,void 0,{lineHeight:1.5},{[dB("align")]:"left"})]:[]}]}}function fB(e,o){return{kind:"group",name:"Header",props:{...L,gap:16,gapPhone:16},parts:[cm(e.num,13),fm(e.title,o)]}}var mB=[["para",{...Ft(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}]],Zre=e=>mB.some(([o])=>o===e.titleSize)?e.titleSize:"lg";function Jre(e){return{kind:"group",name:"Header",props:{...L,direction:"row",align:"center",justify:"between",gap:16,share:"content",stickTop:!0,sectionBorder:hS,sectionPaddingTop:12,sectionPaddingBottom:12},parts:[{kind:"group",name:"Title",props:{...L,direction:"row",align:"end",gap:24,share:"content"},parts:[cm(e.num,13,{color:"labels",letterSpacing:.22,lineHeight:1}),...mB.map(([o,t])=>({...fm(e.title,t),when:r=>Zre(r)===o}))]},{kind:"group",name:"Words",props:{...L,direction:"row",align:"center",justify:"end",gap:20,share:"content"},parts:[...e.description?[IS(e.description,13,340,{lineHeight:1.4})]:[],...e.link?[mS(13)]:[]]}]}}function um(e){return Ln(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 im=new Map,bS={...U("headingMedium",44,32),case:"upper",weight:500,lineHeight:1,letterSpacing:-.02};function Ct(e){let o=im.get(e);if(o)return o;let t=Vre(e),r=Ln(e),a=r==="editorial"?uB(t):r==="simple"?fB(t,bS):r==="essay"?fB(t,{...U("headingMedium",38,28,"headingSmall"),case:"upper",lineHeight:1,letterSpacing:-.02}):r==="shelf"?Jre(t):Xre(e,t);return im.set(e,a),a}var Fn={Series:"transparent",StatsParagraph:"transparent",TimelineTrack:Mo,Stats:void 0};var md=(e,o,t,r)=>({sectionBorder:{top:e,right:o,bottom:t,left:r}}),PB=e=>o=>qF(q(o.columns)??q(e.columns)),oae="inline is the head the row draws; an own-box node is skipped (`skip`)",tae={kind:"text",key:"title",role:"heading",props:G,style:{textStyle:"heading-3",...bS}},hB={top:120,bottom:120,topPhone:80,bottomPhone:80,topTablet:80,bottomTablet:80},hm=e=>{let o=lr(typeof e.background=="string"?e.background:void 0,Fn.Series);return o&&o!=="transparent"?o:void 0},mm=e=>hm(e)===Mo,rae={...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},xB={...L,direction:"row",justify:"between",gap:12,share:"content",phoneRow:2,[wS("share")]:"content"},aae=e=>{let o=hm(e)?1:2;return{...L,direction:"row",columns:4,columnsTablet:2,gap:o,gapPhone:o}},yS={...Ft(12),letterSpacing:.22,lineHeight:1.5},IB=e=>Qe(e.viewLabel)&&!CS(e.viewLabel).hidden,vt=e=>CS(e).text?.trim?.()??"",xm=e=>Object.fromEntries(Object.entries(e).filter(([,o])=>Se(o)!==void 0)),vS=e=>e.map(([o,t,r])=>({key:o,label:t,...r?{multiline:!0}:{}})),nae=vS([["num","Number"],["since","Corner note"],["title","Card title"],["body","Card body",!0],["count","Count"],["countLabel","Count word"]]),sae=vS([["label","Label"],["value","Value"],["body","Card body",!0]]),hd=(e,o,t,r,a,{reads:n=["cards"],keep:s=[]}={})=>({kind:"group",name:e,props:o,parts:[{kind:"core",as:Lt,headless:!0,keep:s,derive:{reads:n,props:l=>xc(r(l),t)},slots:(l,d)=>({[Do]:[a(l,d)]})}]}),EB=e=>Array.isArray(e.cards)?e.cards:[],gB={top:76,bottom:76,topPhone:76,bottomPhone:76},OB=e=>(Array.isArray(e.items)?e.items:[]).map(o=>xm({title:vt(o?.label),href:typeof o?.href=="string"?o.href.trim():""})).filter(o=>o.title!==void 0).map((o,t)=>({key:Ll(Mh(o),t),...o})),lae=e=>OB(e).some(o=>Se(o.href)!==void 0),_B=[{key:Lh.label,label:"Feature label"},{key:Lh.href,label:"Link",kind:"link"}],bB=e=>JF(e.eyebrowLook,"KeyFeatures")==="filled",iae={name:"Key Features",boxProps:(e,o)=>({...Z,direction:"column",gap:44,gapPhone:32,...Qo("surface")(e,o),...md(1,0,1,0),...le(e,gB)}),box:[...re,...ue(gB)],parts:[{kind:"group",name:"Heading",props:{...L,direction:"row",align:"end",gap:20,wrap:!0,share:"content",phoneRow:2,[wS("share")]:"content"},parts:[{...nl("eyebrow"),when:bB},{...me("eyebrow"),when:e=>!bB(e)},tae]},hd("Cards",e=>({...L,...am(PB(XF.defaultProps)(e))}),_B,OB,e=>pS(lae(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"}},yB={top:72,bottom:72,topPhone:72,bottomPhone:72},SB=(e,o)=>({...rm,...Qo("background")(e,o)}),wB=e=>{let o=PB(YF.defaultProps)(e);return{...L,...am(o)}},dae=vS([["title","Card title"],["body","Card body",!0]]),AB=e=>(Array.isArray(e.items)?e.items:[]).map((o,t)=>({key:typeof o?.key=="string"&&o.key?o.key:Ll(Mh(o),t),title:vt(o?.title),body:vt(o?.body)})),RB=e=>{let o={},t={};for(let[r,a]of Object.entries(e.props??{}))r!=="id"&&(Qre(a)?t[r]=a.map(RB):o[r]=a);return{type:String(e.type),props:o,...Object.keys(t).length?{slots:t}:{}}},CB=(e,o)=>{let t=SS(e)?pS(cae(e)):nB(),r=Array.isArray(e.template)?e.template.map(RB):[t],[a]=r;return r.length===1&&a.type===te?{...a,props:{...SB(e,o),...a.props}}:{type:te,props:{...L,...SB(e,o),name:"Card"},slots:{[He]:r}}},SS=e=>e.cardStyle==="label-only",LB=e=>AB(e).map((o,t)=>{let r=e.items[t]?.href;return xm({key:o.key,title:o.title,href:typeof r=="string"?r.trim():""})}),cae=e=>LB(e).some(o=>Se(o.href)!==void 0),vB=e=>Array.isArray(e.template)&&e.template.length===0,kB=["dataSource","dataSourceOptions","highlightedCard","highlightBadge"];function FB(){let e=t=>({key:eae("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 fae={name:"Cards",ownBoxConverts:!0,boxProps:(e,o)=>({...Z,direction:"column",gap:36,gapPhone:28,...Qo("surface")(e,o),...le(e,yB)}),box:[...re,...ue(yB)],parts:[{...Ct("Cards"),when:e=>!aS(e)},{...hd("Cards",wB,dae,AB,CB,{reads:["items"],keep:kB}),when:e=>!vB(e)&&!SS(e)},{...hd("Cards",wB,_B,LB,CB,{reads:["items"],keep:kB}),when:e=>!vB(e)&&SS(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)"}},pae={name:"Recurring Columns",boxProps:(e,o)=>({...Z,direction:"column",gap:60,gapPhone:60,...md(0,0,1,0),...et,...mm(e)?Rn(e,o):{},...Qu(hm(e),e,o),...le(e,hB)}),box:[...re.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,t)=>mm(o)?Ia(e,o,t):e],...ue(hB)],skip:e=>em(hm(e)),site:(e,o)=>mm(e.props)?ga(e,o):[],parts:[Ct("Series"),hd("Cards",aae,nae,e=>EB(e).map(o=>xm({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:{...rae,...Qo("background",(t,r)=>mm(t)&&Ju(t,r))(e,o),name:"Card"},slots:{[He]:[{type:te,props:{...L,name:"Words",gap:16,gapPhone:16},slots:{[He]:[{type:te,props:{...xB,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:{...xB,name:"Footer",align:"center",gap:0,gapPhone:0,sectionPaddingTop:16,sectionPaddingTopPhone:16,...md(1,0,0,0),...IB(e)?{}:{[HC]:["count","countLabel"]}},slots:{[He]:[{type:te,props:{...L,name:"Count",direction:"row",align:"center",gap:12,gapPhone:12,share:"content",phoneRow:2,[wS("share")]:"content"},slots:{[He]:[qe("count",G,yS),qe("countLabel",ne,yS)]}},...IB(e)?[{type:te,props:{...L,name:"View",maxWidthPhone:266},slots:{[He]:[{type:"Text",props:{...G,text:CS(e.viewLabel).text,_partStyles:{text:{...vr()._partStyles.text,...yS}}}}]}}]:[]]}}]}}))],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:oae}},TB={top:60,bottom:60,topPhone:40,bottomPhone:40},uae={...L,direction:"row",columns:3,gap:40,gapPhone:16},mae={...L,gap:8,gapPhone:8,...No(24),...md(1,1,1,1)},hae={name:"Document Detail Cards",boxProps:e=>({...Z,direction:"column",gap:40,gapPhone:16,...md(0,0,1,0),...le(e,TB)}),box:[...re,...ue(TB)],parts:[hd("Cards",uae,sae,e=>EB(e).map(o=>xm({label:vt(o.label),value:vt(o.value),body:vt(o.desc)})),(e,o)=>({type:te,props:{...mae,...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}},BB={Cards:fae,KeyFeatures:iae,Series:pae,DocMetaCards:hae};import{phoneKey as bae}from"efficient-easel/draw";import{newId as yae}from"efficient-easel/data";import{phoneKey as xae}from"efficient-easel/draw";import{isNode as xd}from"efficient-easel/data";var fl="cardStyle";function DB(e){let{widthPhone:o,...t}=e;return e.widthFitPhone==="fixed"?{...t,widthFitPhone:"fill"}:{...e}}var Im={table:{items:{gap:0,gapPhone:0,columnsTablet:2},grid:{gap:0},row:{gap:0,[xae("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:{...Im.table,listCard:DB(Im.table.card)},list:{...Im.list,listCard:DB(Im.list.card)}},y4e=[{label:"Table",value:"table"},{label:"List",value:"list"}],S4e=e=>e==="table"||e==="list",Iae=e=>[...new Set([...Object.keys(kt.table[e]),...Object.keys(kt.list[e])])];function Id(e,o,t){let r={...e};for(let a of Iae(o))delete r[a];return{...r,...structuredClone(kt[t][o])}}function gae(e,o,t){let r=e.props??{},a=Array.isArray(r[Do])?r[Do]:[],n=a.findIndex(d=>xd(d)&&d.type===t);if(n<0)return e;let s=a[n],l=a.map((d,c)=>c===n?{...s,props:Id(s.props??{},"listCard",o)}:d);return{...e,props:{...r,[Do]:l}}}function w4e(e,o,t,r){let a=Array.isArray(e[r])?e[r]:[];if(a.some(s=>xd(s)&&s.type===Lt)){let s=a.map(l=>xd(l)&&l.type===Lt?gae(l,o,t):l);return{...Id(e,"items",o),[fl]:o,[r]:s}}let n=a.map(s=>{if(!xd(s)||s.type!==t)return s;let l=s.props??{},d=(Array.isArray(l[r])?l[r]:[]).map(c=>xd(c)&&c.type===t?{...c,props:Id(c.props??{},"card",o)}:c);return{...s,props:{...Id(l,"row",o),[r]:d}}});return{...Id(e,"grid",o),[fl]:o,[r]:n}}var kS=e=>typeof e=="string"?e.trim():"";function NB(e){let o=`${kS(e.prefix)}${kS(e.value)}`,t=kS(e.suffix);return e.emphasizeAll===!0?o?`==_${o}_==`:"":`${o}${t?`==_${t}_==`:""}`}var WB={textStyle:"heading-2",...ot("headingMedium",56,7,96),weight:500,case:"none",lineHeight:.9,letterSpacing:-.04},TS={kind:"block",type:"Text",props:{..._n,_partStyles:{text:WB}},box:[["value","text",(e,o)=>NB(o)]],when:(e,o)=>o!==void 0&&typeof o.value=="string"&&NB(o)!==""},MB=e=>Qe(e?.supSuffix),UB={textStyle:"body-1",fontRole:"heading",...U("body",16),lineHeight:1.5,letterSpacing:-.01},zB={color:"labels",...U("label",12),lineHeight:1.5,letterSpacing:.24},$B={...L,direction:"row",align:"start",gap:32,gapPhone:32,share:"content",phoneRow:2,[bae("share")]:"content"},GB={textStyle:"body-5",...U("label",13),weight:500,color:"accent",letterSpacing:.18,lineHeight:1,padding:12},PS=e=>lr(e.background,Fn.StatsParagraph),gd=e=>PS(e)===Mo,gm=e=>({...e,sectionAccent:e.sectionAccent??0}),Sae=(e,o)=>gd(e)?Qo("background",(t,r)=>Ju(gm(t),r))(e,o):{},wae={name:"Stats with Text",skip:e=>PS(e)&&PS(e)!=="transparent"&&!gd(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"),...gd(e)?Rn(gm(e),o):{}}),box:[...re.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,t)=>gd(o)?Ia(e,gm(o),t):e],...ha("StatsParagraph")],site:(e,o)=>gd(e.props)?ga({props:gm(e.props)},o):[],parts:[Ct("StatsParagraph"),{kind:"group",name:"Stats",props:{...L,...kt.table.grid,[fl]:"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,...Sae(e,o)}),parts:[{...TS,when:(e,o)=>!MB(o)&&TS.when(e,o)},{kind:"group",name:"Figure",props:$B,when:(e,o)=>MB(o),parts:[TS,{kind:"text",key:"supSuffix",props:G,style:GB}]},{kind:"group",name:"Words",props:{...L,gap:4,gapPhone:4},parts:[{kind:"text",key:"label",props:G,style:UB},me("sub",zB)]}]}]}],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"}},Cae=new Set(["value","label",Rt]),HB={top:48,bottom:48,topPhone:48,bottomPhone:48},vae=e=>{let o=lr(typeof e.background=="string"?e.background:void 0,Fn.Stats);return!!o&&o!=="transparent"},kae={name:"Stats",skip:e=>vae(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=>!Cae.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,HB)}),box:[...re,...ue(HB)],parts:[me("heading",{color:"labels",...U("label",12),letterSpacing:.2}),{kind:"group",name:"Stats",props:{...L,...kt.list.grid,[fl]:"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:_n,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"}},jB={StatsParagraph:wae,Stats:kae};function KB(){return{eyebrow:i("By the numbers"),title:i("What we count."),desc:i("A few numbers that matter to us."),stats:[],background:"transparent"}}var Tae=[{key:"figure",label:"Figure"},{key:"superscript",label:"Superscript"},{key:"label",label:"Label"},{key:"body",label:"Text",multiline:!0}];function VB(){let e=(o,t,r,a="")=>({key:yae("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 Pae(e){return{type:te,props:{...L,name:"Card",...structuredClone(kt[e].listCard)},slots:{[He]:[{type:te,props:{...$B,name:"Figure"},slots:{[He]:[qe("figure",_n,WB),qe("superscript",G,GB)]}},{type:te,props:{...L,name:"Words",gap:4,gapPhone:4},slots:{[He]:[qe("label",{...G,widthFit:"fill"},UB),qe("body",{...G,widthFit:"fill"},zB,!0)]}}]}}}function ES(e,o,t=4){return{type:te,props:{...L,name:"Stats",direction:"row",columns:t,...structuredClone(kt[o].items),[fl]:o},slots:{[He]:[{type:Lt,props:xc(e,Tae),slots:{[Do]:[Pae(o)]}}]}}}var qB={heading:"Trusted by *teams worldwide*"},YB=()=>[{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")}],Eae={logos:{type:"slot",allow:["LogoBlock"]},template:{type:"slot",allow:["LogoBlock"]}},W4e={label:"Logos",drawsPictures:!0,fields:Eae,defaultProps:{items:[],contained:!0}};var XB={heading:"Ways to pay"},ZB=()=>[{label:"Visa"},{label:"Mastercard"},{label:"Amex"},{label:"PayPal"}],JB=()=>[{text:i("Secure encrypted checkout")},{text:i("30-day returns")}],$4e={label:"Payment Methods",drawsPictures:!0,defaultProps:{heading:"",badges:[],assurances:[],contained:!0}};import{phoneKey as _S,readHidable as Oae}from"efficient-easel/draw";var AS={contained:!1},RS=(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])}]}]}),OS=e=>{let o=q(e.bandPadding)??40;return{top:o,bottom:o,topPhone:o,bottomPhone:o}},_ae={...me("heading",{color:"labels",letterSpacing:.2}),props:{...G,align:"center"}},Aae={name:"Logos",boxProps:e=>({...Z,direction:"column",gap:32,...le(e,OS(e))}),box:[...re,...ue(OS),["bandPadding","sectionPaddingTop",(e,o)=>le(o,OS(o)).sectionPaddingTop]],parts:[_ae,{kind:"core",keep:["columns","logoHeight","grayscale"],rename:{logosPerRow:"columns"},props:AS,slots:RS("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"}},Rae={kind:"group",name:"Mark",keepEmpty:!0,parts:[],props:gv(4,"main",{sectionCorners:2})},QB={top:24,bottom:24,topPhone:24,bottomPhone:24},Lae={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:{...AS,look:"cards",grayscale:!1},slots:e=>({...RS("badges","label"),...Qe(e[So])?{[Do]:[Fh()]}:{}})},{kind:"group",name:"Reassurance",props:{...L,direction:"row",wrap:!0,justify:"center",gap:24,gapPhone:24,phoneRow:2,[_S("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,[_S("share")]:"content"},item:e=>Oae(e.text).hidden?{props:{_hidden:!0}}:{},parts:[Rae,{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`)"}},eD=e=>iv(e.align)??"left",oD=e=>e.size==="md"?"md":"sm",tD=12,rD={name:"Payment logos",boxProps:e=>({...L,direction:"row",wrap:!0,align:"center",justify:sc[eD(e)],gap:tD,gapPhone:tD,phoneRow:2,[_S("share")]:"content"}),box:[...ea],parts:[{kind:"text",key:"lead",props:ne,styleFrom:e=>({size:ol[oD(e)],lineHeight:1.5})},{kind:"core",keep:[],as:"Logos",derive:{reads:[So,gr],props:e=>({logoHeight:IF[oD(e)].mark,align:eD(e),...Qe(e[So])?{[So]:e[So],...e[gr]!==void 0?{[gr]:e[gr]}:{}}:{}})},props:{...AS,look:"marks",grayscale:!1,sectionAccent:er},slots:e=>({...RS("methods","label"),...Qe(e[So])?{[Do]:[Fh()]}:{}})}],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"}},aD={Logos:Aae,PaymentBadges:Lae,FooterPayment:rD,PaymentLogosBlock:rD},nD=()=>({heading:qB.heading,items:YB()}),sD=()=>({heading:XB.heading,badges:ZB(),assurances:JB()}),lD=()=>({...Of,methods:[]});import{mixHex as Bae}from"efficient-shell/format";var l5e="none",i5e=[{label:"Nothing",value:"none"},{label:"Section above",value:"above"},{label:"Section below",value:"below"}];function iD(e){return e==="above"||e==="below"?e:null}var d5e="sf-ticker-join";function Fae(e){return e==="above"?"sf-ticker-join-above":"sf-ticker-join-below"}function c5e(e){return`absolute inset-x-0 ${Fae(e)}`}var Bn={direction:"row",share:"content",align:"center"},bd={top:14,bottom:14,topPhone:12,bottomPhone:12},bm={wrap:"nowrap",loop:"scroll",sectionAccent:bk,gap:60,gapPhone:32,separator:"dot",sectionBorder:{top:1,bottom:1}},dD={gap:120,gapPhone:64},ym={...Ko,sizeToken:{step:"label",px:14,pxPhone:12},letterSpacing:.25,lineHeight:1.5},cD={textStyle:"heading-3",letterSpacing:.005,case:"upper",lineHeight:1},yd={top:16,bottom:16,topPhone:12,bottomPhone:12},Sd={justify:"between",wrap:"wrap",gap:32,separator:"none"},wd={...Ko,letterSpacing:.1,lineHeight:1.5};var fD=e=>e.size==="display",Dae=(e,o)=>{let t=Zu(e,o),r=e.tone!=="plain"&&t?.text&&t.background?Bae(t.text,t.background,.3):null;return r?{color:r}:{}},Nae=(e,o)=>e.tone!=="plain"&&or(e.sectionAccent)===null?Qo("background")(e,o):{},pD=(e,o)=>({kind:"list",key:"items",name:"Item",flat:!0,when:o,parts:[{kind:"text",key:"text",props:ne,style:e,styleFrom:Dae}]}),Mae={name:"Scrolling Bar",boxProps:(e,o)=>({...Z,...Bn,...bm,...fv[kh(e.separator)]===""?dD:{},...le(e,bd),...Nae(e,o)}),box:[["scrollDirection","scrollDirection",e=>sR(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=>kh(e)],["join","join",e=>iD(e)??void 0],["borders","sectionBorder",e=>e===!1?void 0:{top:1,bottom:1}],...re,["tone","sectionAccent",(e,o)=>or(o.sectionAccent)??er],...ue(bd)],parts:[pD(ym,e=>!fD(e)),pD(cD,fD)],drop:{...Q,...se,size:"each item's Text style: Small \u2192 Body 5, Display \u2192 Heading 3"}},uD=e=>e?.tone==="muted",mD=e=>bc(Tn(e)),Hae={name:"Spec Strip",boxProps:(e,o)=>({...Z,...Bn,...Sd,...e.fill==="none"?{sectionBorder:{top:1}}:{sectionAccent:mD(o)},...le(e,yd)}),box:[...re.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,t)=>o.fill==="none"?e:mD(t)],...ue(yd)],parts:[{kind:"list",key:"cells",name:"Cell",flat:!0,parts:[{kind:"text",key:"text",props:G,style:wd,when:(e,o)=>!uD(o)},{kind:"text",key:"text",props:ne,style:wd,when:(e,o)=>uD(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"}},hD={Ticker:Mae,SpecStrip:Hae};import{jsxs as Nn,jsx as eo}from"react/jsx-runtime";import{Fragment as US}from"react";import{Fragment as Qae,jsx as DS}from"react/jsx-runtime";import{Fragment as bD,jsx as kd,jsxs as jae}from"react/jsx-runtime";import{createContext as BS,useContext as Td,useEffect as Kae,useId as Vae,useMemo as qae,useRef as Yae}from"react";import{armEntrance as Xae}from"efficient-shell/format";import{jsx as Wae}from"react/jsx-runtime";import{useEffect as ID,useRef as xD,useState as Uae}from"react";import{armEntrance as zae,entranceAttrs as $ae,playEntrance as Gae}from"efficient-shell/format";function gD({views:e,editing:o,boxClass:t,boxAttrs:r,boxStyle:a,takesViewHide:n=!1,atEdge:s=!1,children:l}){let d=xD(null),c=Pc(),f=Xr(),u=n?f:is,p=Cd(d,!0,s),{attrs:h,style:I}=$ae(e[p]),g=xD(LS.seed(e)),C=JSON.stringify(e);return ID(()=>{let w=d.current;if(w){if(o){let T=LS.next(g.current,e,p);g.current=T.seen,T.play&&Gae(w);return}return zae(w)}},[C,p,o]),u.scope(Wae("div",{ref:d,className:Zr(`${ss}${c.fill}${t?` ${t}`:""}`,u.className),...r,...u.attrs,...h,...Object.keys(I).length||a?{style:{...a,...I}}:{},children:c.inner(l)}))}var LS={seed(e){return{desktop:JSON.stringify(e.desktop),tablet:JSON.stringify(e.tablet),phone:JSON.stringify(e.phone)}},next(e,o,t){let r=LS.seed(o);return{play:r[t]!==e[t],seen:r}}};function Cd(e,o=!0,t=!1){return vd(e,o,t)??"desktop"}function vd(e,o=!0,t=!1){let[r,a]=Uae(void 0),n=Tc(t?"edge":"by-box"),{phone:s,tablet:l}=wb(n);return ID(()=>{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 Sm=BS(null),SD=BS(null),wD=BS(null);function U5e({needles:e,styles:o,motions:t=dL,type:r,atEdge:a=!1,children:n}){let s=Vae(),l=Tc(a?"edge":"by-box"),d=JSON.stringify([s,e,o,t,r]),c=qae(()=>{let u=Object.keys(t).filter(p=>fL(t[p]));return C1(e,o,s,p=>Yi(r,p),p=>g1(r,p),p=>u.includes(p)?Uy(t[p]):null,u)},[d]);if(!c)return kd(bD,{children:n});let f=v1(c,{inBox:l});return jae(bD,{children:[f&&kd("style",{href:`${Zae}${s}-${Jae(f)}`,precedence:vD,dangerouslySetInnerHTML:{__html:f.replace(/</g,"\\3c ")}}),kd(Sm.Provider,{value:c,children:n})]})}var FS=new WeakMap;function yD(e,o){let t=zy(o.filter(a=>a.arm)),r=o.some(a=>a.entering)?void 0:zy(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)?(hL(e.ownerDocument),e.setAttribute(vu,"")):e.removeAttribute(vu)}function CD(e){let o=Yae(null),t=e?.motion?.entrance??null,r=e?.motion?.scroll??null,a=e?.motion?.hover==="lift",n=Cd(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 Kae(()=>{let c=o.current,f=mL(c?.parentElement??null);if(!t&&!r&&!a||!c||!f)return;let u=s?()=>{let I=pL(f,s),g=Xae(f);return()=>{g?.(),I()}}:null,p=FS.get(f)??[];FS.set(f,p);let h={element:c,arm:u,entering:s!==null&&s.kind!=="none",scroll:l?()=>uL(f,l):null,lift:a};return p.push(h),yD(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,yD(f,p),p.length||FS.delete(f))}},[d,a]),o}var vD="sf-part-styles",Zae=`${vD}-`;function Jae(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 kD(e){let o=Td(Sm),t=Td(SD),r=k1(o,e);return r&&r.stamp!==t?r:null}function z5e(e){return Sb(Td(Sm),e)}function TD({stamp:e,children:o}){return kd(SD.Provider,{value:e,children:o})}function $5e({children:e}){let o=Td(Sm);return kd(wD.Provider,{value:o,children:e})}function G5e(e){return Sb(Td(wD),e)}function Pd({value:e,children:o}){let t=kD(e),r=CD(t);return t?DS(TD,{stamp:t.stamp,children:DS("span",{ref:r,[fb]:t.stamp,...t.textStyle?{[Ms]:t.textStyle}:{},children:o})}):DS(Qae,{children:o})}import{jsx as NS,Fragment as ene}from"react/jsx-runtime";function PD({className:e=""}){return NS("sup",{className:`text-accent tracking-normal text-[length:min(1em,max(0.75em,11px))] ${e}`,children:"\xAE"})}function wm(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(NS(PD,{},`r${a}`))}),NS(ene,{children:t})}var Z5e=PD;import{jsx as Dn}from"react/jsx-runtime";import{Component as ane,createContext as nne,lazy as s3e,Suspense as l3e,useContext as sne,useSyncExternalStore as lne}from"react";var one="hrefRewrite";function tne(){return Qd("efficient.link-href-rewrites",()=>({rewrites:new Map,count:0,missed:new Set}))}function rne(){return typeof process<"u"&&!0}function e3e(e){let o=e?.[one];return typeof o=="string"?o.trim():""}function ED(e){if(!e)return null;let o=tne(),t=o.rewrites.get(e);return!t&&!rne()&&o.missed.add(e),t??null}var ine={Link:Wk,Image:Hk},OD=nne(ine);function u3e({runtime:e,children:o}){return Dn(OD.Provider,{value:e,children:o})}function HS(){return sne(OD)}function m3e(){return HS().pagePath??null}var dne=()=>()=>{},cne=()=>_c()||null,fne=()=>null;function pne(){return lne(dne,cne,fne)}function _D({hrefRewrite:e,newTab:o,...t}){let{Link:r}=HS(),a=pne(),n=o===!0?{...t,...pd}:o==="auto"?{...t,...QF(t.href,a)}:t,s=ED(e);return s?Dn(MS,{name:s.name,href:n.href,fallback:Dn(r,{...n}),children:Dn(une,{Link:r,rewrite:s.rewrite,...n})},s.key):Dn(r,{...n})}function une({Link:e,rewrite:o,...t}){let r=Se(o(t.href)),a=r&&LC(r)?r:t.href;return Dn(e,{...t,href:a})}var MS=class extends ane{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 AD(e){let{Image:o}=HS();return Dn(o,{...e})}function Hr(e,o=!1,t){let r=yne(o),a=tc(e);if(a.length===1){let[s]=a,l=FC(s),d=l?gne(l,s.children):s.children;return Nn(Pd,{value:e,children:[t,Cm(d,r)]})}let n=[];return a.forEach((s,l)=>{if(s.bullet){n.push(eo("span",{"data-sf-bullet":"",className:mne,children:Cm(s.children,r)},l));return}if(s.number!=null){n.push(Nn("span",{"data-sf-number":s.number,className:hne,children:[Nn("span",{className:xne,children:[s.number,"."]}),Cm(s.children,r)]},l));return}l>0&&!Ine(a[l-1])&&n.push(eo("br",{},`br${l}`)),n.push(eo(US,{children:Cm(s.children,r)},l))}),Nn(Pd,{value:e,children:[t,n]})}var mne="relative block pl-6 before:absolute before:left-1.5 before:font-bold before:text-accent before:content-['\xB7']",hne="relative block pl-[2em]",xne="absolute left-0 w-[1.6em] text-right tabular-nums";function Ine(e){return e.bullet||e.number!=null}var RD="text-accent underline underline-offset-[0.18em]";function gne(e,o){let[t,...r]=o;return t?.kind==="text"?[{kind:"text",text:`${e}${t.text}`},...r]:[{kind:"text",text:e},...o]}function bne(e){return xs(e)||void 0}function Cm(e,o){let t=[],r=!1;return e.forEach((a,n)=>{if(a.kind==="text"){t.push(eo("span",{children:wm(a.text)},n)),r=!0;return}r||t.push(eo("span",{},`e${n}`)),t.push(FD(a,n,o)),r=!1}),r||t.push(eo("span",{},"end")),t}function WS(e,o){return e.length===1&&e[0].kind==="text"?wm(e[0].text):e.map((t,r)=>t.kind==="text"?eo(US,{children:wm(t.text)},r):FD(t,r,o))}function yne(e){return e?"font-normal italic text-accent":"not-italic text-accent"}function k3e(e){return LD(e)}function LD(e,o){let t=e.split(`
|
|
320
|
-
`);return Nn(Pd,{value:e,children:[o,t.map((r,a)=>Nn(US,{children:[a>0?eo("br",{}):null,eo("span",{children:r})]},a))]})}function FD(e,o,t){if(e.kind==="link")return om(e.href)?eo(_D,{newTab:"auto",href:e.href,className:RD,children:WS(e.children,t)},o):eo("a",{href:e.href,className:RD,children:WS(e.children,t)},o);let r=WS(e.children,t),a=AC[e.kind];if(a)return eo("span",{[RC]: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=bne(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 T3e(e,o=!0,t=!1){let r=e.split(`
|
|
321
|
-
`);return eo(Pd,{value:e,children:r.map((a,n)=>Nn("span",{children:[t?LD(a):Hr(a,o),n<r.length-1?eo("br",{}):null]},n))})}function BD(e){return e.split(/\n\s*\n/).map(o=>o.trim()).filter(Boolean)}import{tabletKey as DD}from"efficient-easel/screen/lib/content/view-tiers";var ND={direction:"column",justify:"between",gap:14,gapPhone:14,sectionPaddingLeft:14,sectionPaddingRight:14,[DD("sectionPaddingLeft")]:0,sectionPaddingLeftPhone:0,sectionHeightMode:"fixed",sectionHeightValue:280,sectionHeightUnit:"px",[DD("sectionHeightMode")]:"auto",sectionHeightModePhone:"auto"},zS={name:"Year and title",direction:"column",gap:14,gapPhone:14};import{tabletKey as Sne}from"efficient-easel/draw";var ao={text:"Button label",href:"#"},qt=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 vm={eyebrow:Ge.eyebrow,title:`Section heading
|
|
322
|
-
*Highlight line*`,intro:Ge.body,imageCaption:Ge.imageCaption,imageMeta:Ge.imageMeta,cta:ao.text},MD=()=>[{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.")}],L3e={label:"Story Timeline",drawsPictures:!0,defaultProps:{layout:"split",eyebrow:"",title:"",intro:"",imageSrc:"",imageCaption:"",imageMeta:"",ctaText:"",ctaHref:"",entries:[],padTop:120,padBottom:120}};var km={eyebrow:Ge.eyebrow,title:Ge.headingAccent,intro:Ge.body,cta:ao.text},HD=()=>[{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}],M3e={label:"Milestone Timeline",defaultProps:{eyebrow:"",title:"",intro:"",entries:[],ctaText:"",ctaHref:"",background:pi,padTop:120,padBottom:120}};var jD={buttonBorder:{width:0}},Em=(e,o,t={})=>({textStyle:"body-5",...U("label",e),letterSpacing:o,lineHeight:1.5,weight:400,...t}),pl=(e,o,t={})=>({...Em(e,o),...Ko,...t}),Om=(e,o,t)=>({...e,case:"upper",weight:500,letterSpacing:o,lineHeight:t}),Ed=(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}),WD=(e,o)=>o?.future===!0,Tm=e=>BD(typeof e?.body=="string"?e.body:""),VS=e=>lr(typeof e.background=="string"?e.background:void 0,Fn.TimelineTrack),$S=e=>VS(e)===Mo?e:{...e,background:"transparent"},wne={name:"Milestone Timeline",skip:e=>em(VS(e)),boxProps:(e,o)=>{let t=xa($S(e),o);return{...Z,direction:"column",gap:60,[Sne("gap")]:36,gapPhone:36,sectionBorder:{bottom:1},...et,...wt(e,"TimelineTrack"),...Qu(VS(e),e,o),...t>=0?{sectionAccent:t}:{}}},box:[...re.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,t)=>Ia(e,$S(o),t)],...ha("TimelineTrack")],parts:[gS(pm(dm("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,...ND},item:e=>({props:e.future===!0?{upcoming:!0}:{}}),parts:[{kind:"group",name:zS.name,props:{...L,...zS},parts:[Tt("date",Em(13,.22,{color:"accent"}),{when:(e,o)=>!WD(e,o)}),Tt("date",Em(13,.22,{color:"labels"}),{when:WD}),Tt("title",{textStyle:"heading-3",...Om(U("headingSmall",20),-.02,1.1)},{role:"heading"})]},Tt("blurb",Ed(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",...jD},style:pl(13,.3)}]}]}],site:(e,o)=>ga({props:$S(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"}},YS=e=>typeof e.layout=="string"?e.layout:"split",Pm=e=>YS(e)==="split",qS=e=>!Pm(e),KD=e=>YS(e)==="spine",Cne=e=>qS(e)&&!KD(e),UD=(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",...No(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",pl(11,.24,{color:"text"})),Tt("imageMeta",pl(11,.24,{color:"accent"}),{props:{...G,align:"right"}})]}]}),zD=(e={})=>({kind:"button",key:"ctaText",href:"ctaHref",variant:"ghost",props:{...vo,...e,...jD},style:pl(13,.3)}),GS=()=>[Tt("title",{textStyle:"heading-3",...Om(U("headingSmall",24,20),-.02,1.5)},{role:"heading",mark:"accentItalic"}),{kind:"block",type:"Text",props:{...G,_partStyles:{text:Ed(U("body",17,16),1.6)}},box:[["body","text",(e,o)=>El(Tm(o)[0]??"")]],when:(e,o)=>Tm(o).length>0},{kind:"block",type:"Text",props:{...ne,_partStyles:{text:Ed(U("body",17,16),1.6,{paragraphSpacing:14})}},box:[["body","text",(e,o)=>El(Tm(o).slice(1).join(`
|
|
323
|
-
|
|
324
|
-
`))]],when:(e,o)=>Tm(o).length>1}],jS=()=>Tt("date",Em(13,.24,{color:"accent"})),KS=(e,o,t={})=>Tt(e,o,{...t,props:{...G,...t.props??{},align:"center"}}),$D=ot("headingMedium",40,5,76),GD={sectionBorder:{bottom:1}},vne={name:"Story Timeline",skip:e=>YS(e)==="track"?'display "track": not converted (it draws the Milestone rail; a Track story is not stored anywhere)':void 0,boxProps:e=>Pm(e)?{...Z,direction:"row",share:[40],gap:80,gapPhone:48,align:"start",...GD,...wt(e,"Timeline")}:{...Z,direction:"column",gap:48,gapPhone:48,align:"center",...GD,...wt(e,"Timeline")},box:[...re,...ha("Timeline")],parts:[{kind:"group",name:"Heading",props:{...L,gap:24,gapPhone:24},when:Pm,parts:[Tt("eyebrow",pl(12,.3,{color:"accent"}),{role:"eyebrow"}),Tt("title",{textStyle:"heading-2",...Om($D,-.03,.94)},{role:"heading",mark:"accentItalic"}),Tt("intro",Ed(U("body",14),1.6),{props:{...ne,maxWidth:360},mark:"accentItalic"}),UD(667,419,{},()=>!0),zD()]},{kind:"group",name:"Chapters",props:{...L,gap:48,gapPhone:48,line:!1},when:Pm,parts:[{kind:"list",key:"entries",name:"Chapter",props:{...L,direction:"row",gap:24,gapPhone:8,share:[12],align:"start"},parts:[jS(),{kind:"group",name:"Words",props:{...L,gap:14,gapPhone:14},parts:GS()}]}]},{kind:"group",name:"Heading",props:{...L,gap:24,gapPhone:24,align:"center",maxWidth:760,widthFit:"fill"},when:qS,parts:[KS("eyebrow",pl(12,.3,{color:"accent"}),{role:"eyebrow"}),KS("title",{textStyle:"heading-2",...Om($D,-.03,.94)},{role:"heading",mark:"accentItalic"}),KS("intro",Ed(U("body",14),1.6),{props:{...ne,maxWidth:520},mark:"accentItalic"}),zD({align:"center"})]},UD(506,192,{maxWidth:900,widthFit:"fill"},qS),{kind:"group",name:"Chapters",props:{...L,gap:48,gapPhone:48,line:!0,maxWidth:760,widthFit:"fill",sectionPaddingTop:16},when:KD,parts:[{kind:"list",key:"entries",name:"Chapter",props:{...L,gap:8,gapPhone:8},parts:[jS(),{kind:"group",name:"Words",props:{...L,gap:14,gapPhone:14},parts:GS()}]}]},{kind:"group",name:"Chapters",props:{...L,gap:56,gapPhone:56,maxWidth:1e3,widthFit:"fill",sectionPaddingTop:16,mirrorCards:"even"},when:Cne,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:[jS(),{kind:"group",name:"Words",props:{...L,gap:14,gapPhone:14},parts:GS()}]},{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)"}},VD=()=>({eyebrow:vm.eyebrow,title:qt(vm.title),intro:vm.intro,ctaText:ao.text,ctaHref:ao.href,entries:MD()}),qD=()=>({eyebrow:km.eyebrow,title:qt(km.title),intro:km.intro,ctaText:ao.text,ctaHref:ao.href,entries:HD()}),YD={TimelineTrack:wne,Timeline:vne};import{tabletKey as One}from"efficient-easel/draw";import{rootIsDark as kne}from"efficient-shell/format";function e6e(e="auto"){return e==="light"?!0:e==="dark"?!1:!kne({whenUnset:!0})}function XD(e,o){return Number.isFinite(e)&&Number.isFinite(o)&&!(e===0&&o===0)}function XS(e){let o=Number.parseFloat(e??"");return Number.isFinite(o)?o:0}var Tne=["tall","square","wide"],Pne="tall";function ZD(e){return Tne.includes(String(e??""))?String(e):Pne}var r6e={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"},a6e=[{photo:"",group:"",groupName:"",name:"City name",state:"State",country:"Country",timezone:"GMT \xB7 UTC +0",address:`Address line one
|
|
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:""}],Ene=/^https?:\/\//i;function n6e(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:XS(e.lat),lng:XS(e.lng),mapsUrl:Ene.test(o)?o:""}}function ZS(e){let o=String(e??"").split(" \xB7 ");return{state:(o[0]??"").trim(),country:(o[1]??"").trim()}}var s6e="other",l6e={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 JD(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??{}):[],ul=e=>Pt(e.group),lN=e=>`loc-${e}`,iN=e=>Pt(e.state).trim()||ZS(Pt(e.region)).state,dN=e=>Pt(e.country).trim()||ZS(Pt(e.region)).country,QD=e=>[iN(e),dN(e)].filter(Boolean).join(" \xB7 "),_ne=e=>QS(e).some(o=>Pt(o.photo).trim()!==""),Ane=e=>QS(e).some(o=>XD(Number(o.lat),Number(o.lng))),Rne=(e,o)=>QS(e).filter(t=>ul(t)===ul(o)).length,Lne=(e,o)=>Rne(e,o)===1?"wide":ZD(e.imageShape),JS={top:100,bottom:100,topPhone:60,bottomPhone:60},eN=48,Yt=(e,o={})=>({...Ft(e),...o}),ew={top:1,right:1,bottom:1,left:1},ow={...L,direction:"row",share:"equal",gap:0},Fne=e=>o=>o>nd(o)?{...L,gap:0}:{...ow,...o>1?{phoneRow:e}:{}},tw=!0,Bne={kind:"group",name:"Gallery",props:{...L,gap:20,...tw?{_hidden:!0}:{}},when:_ne,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",Yt(12,{color:"accent",letterSpacing:.3})),{kind:"text",key:"galleryHint",props:{...ne,align:"right",alignPhone:"left"},style:Yt(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:ew,...No(12,12)},item:(e,o,t)=>({props:{...Pt(e.photo).trim()?{bgImage:Pt(e.photo),hover:"mono"}:{},link:`#${lN(o)}`,boxShape:Lne(t,e)}}),parts:[{kind:"text",key:"name",props:G,style:Yt(11,{letterSpacing:.22,color:"text"})}],groups:{of:ul,name:"Group",props:{...L,gap:10},head:e=>({label:ul(e[0]??{})}),parts:[me("label",Yt(11,{color:"accent",letterSpacing:.3}))],itemsName:"Cities",itemsProps:Fne(2),perRow:nd,rowName:"Row",rowProps:{...ow,phoneRow:2}}}]}]},Dne={kind:"group",name:"Words",props:{...L,gap:12,gapPhone:12,...No(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:Yt(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:ew,...No(6,10)},parts:[{kind:"text",key:"timezone",props:{...ne,textFit:"line"},style:Yt(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,...An,variant:"ghost",arrow:!1,_partStyles:{label:Yt(13,{letterSpacing:.18,color:"text",lineHeight:24/13})}},box:[["phone","label"],["phone","href",e=>JD(Pt(e))??"#"]],when:(e,o)=>Pt(o?.phone).trim()!==""},{kind:"text",key:"hours",props:ne,style:Yt(12,{letterSpacing:.18,lineHeight:1.7})}]},Nne={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)=>iN(t)]),...["region","country"].map(e=>[e,"country",(o,t)=>dN(t)])]},Mne={kind:"group",name:"Map",props:{...L,sectionBorder:{top:1,right:0,bottom:0,left:0}},parts:[Nne]},Hne={kind:"list",key:"locations",name:"City",props:(e,o)=>({...L,gap:0,justify:"between",sectionBorder:ew,jumpHighlight:!0,sectionAccent:xa(e,o)>=0?sl(e.sectionAccent,o):-1}),item:(e,o)=>({props:{anchor:lN(o)}}),parts:[Dne,Mne],groups:{of:ul,name:"Group",props:{...L,gap:20},head:e=>{let o=e[0]??{};return{key:ul(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",Yt(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:Yt(12,{letterSpacing:.22})}]}],itemsName:"Cities",itemsProps:e=>({...ow,columns:nd(e),[One("columns")]:1})}},oN=Yt(10,{letterSpacing:.25}),Wne={kind:"block",type:cr,props:{...L,name:"Credit",direction:"row",justify:"end",align:"center",gap:6,share:"content",wrap:!0},when:Ane,slot:fr,keepEmpty:!0,parts:[{kind:"block",type:"Text",props:{...ne,text:"Location coordinates \xA9",_partStyles:{text:oN}}},{kind:"block",type:"ButtonBlock",props:{...vo,...An,variant:"ghost",arrow:!1,label:"OpenStreetMap contributors",href:"https://www.openstreetmap.org/copyright",_partStyles:{label:{...oN,color:"labels"}}}}]},tN=(e,o)=>Object.fromEntries(o.filter(t=>e[t]!==void 0).map(t=>[t,e[t]])),rN=["sectionPaddingTop","sectionPaddingTopTablet","sectionPaddingTopPhone"],aN=["sectionPaddingBottom","sectionPaddingBottomTablet","sectionPaddingBottomPhone"],nN=e=>e.map(o=>[o,o,(t,r)=>le(r,JS)[o]]),sN=["sectionAccent","sectionAccent",Ia],Une=[...ea,...gs,...Object.values(io)],zne={name:"City pictures",skip:e=>Zt(e)?`fed by the data source "${Zt(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,...tN(le(e,JS),rN),sectionPaddingBottom:eN,sectionPaddingBottomPhone:eN,...Rn(e,o)}),box:[...re.filter(e=>e!=="sectionAccent"&&e!=="anchor"),sN,["anchor","anchor",e=>Vl(e).trim()?e:"studios"],...nN(rN)],parts:[dm("sectionNumber","heading","tagline"),Bne],also:[{name:"City maps",boxProps:(e,o)=>({...Z,direction:"column",gap:40,sectionBorder:{bottom:1},...et,sectionPaddingTop:0,sectionPaddingTopPhone:0,...tN(le(e,JS),aN),...Rn(e,o)}),box:[...Une,sN,...nN(aN)],parts:[Hne,Wne]}],reads:{mapTheme:"City maps Box: each Map block's Map theme",imageShape:"City pictures Box: each picture Box's Box shape"},site:ga,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)"}},cN={ContactLocations:zne};import{SITE_SIDE as pN,sideLengthAt as $ne}from"efficient-easel/screen/lib/content/length-units";var _m="boxes",rw=3,aw=()=>({type:te,props:{direction:"column"},slots:{[He]:[{type:"ImageBlock"},{type:te,props:{direction:"column"},slots:{[He]:[{type:"Text",props:Vr()},{type:"Text"}]}}]}}),fN=()=>Array.from({length:rw},aw);import{viewKeyAt as nw}from"efficient-easel/draw";var Gne=["FAQ","Footprint","LongRead","ProcessSteps","RelatedProducts"];var ba=(e,o)=>()=>({top:e,topPhone:o}),uN=e=>o=>{let t=Xu(e),r={...o,[sr.top]:ni(o,t).top},a=d=>{let c=$ne(r,sr,Xa,d,"top");return c?.unit==="px"?c.value:void 0},n=d=>q(o[nw(sr.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}:{}}},jne={Collections:ba(120,70),Events:ba(120,70),FAQ:ba(120,70),GalleryB:ba(120,70),FitmentTable:ba(120,80),SpecTable:ba(120,80),LongRead:ba(120,80),RelatedProducts:ba(0,0),Footprint:uN("Footprint"),ProcessSteps:uN("ProcessSteps"),ProductGrid:e=>({top:q(e.padTop)??120,topPhone:0})};function Kne(e,o={}){let t=K(kr,e),r=K(jne,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=um(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(ec,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=Ln(e)==="editorial"?et:{};return{...Z,direction:"column",gap:ud[Ln(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&&$F.has(e)?{[nw(a,"tablet")]:0,[nw(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 Vne={...L,direction:"accordion",rowStyle:"numbered"},qne={sectionPaddingLeft:pN,sectionPaddingRight:pN},Yne={Footprint:{slots:{[Do]:[Rv()]},pressHeading:!0},ProcessSteps:{slots:(e,o)=>o.press?{[_m]:fN().map(t=>({...t,props:{...t.props,...qne}}))}:{},boxProps:{gapPhone:ud.editorial}},FAQ:{slots:{[Do]:[Av()]},pressHeading:!0,coreBox:{name:"Questions",props:Vne},coreProps:{sectionAccent:er},roomBelow:{bottom:120,bottomPhone:70},boxProps:(e,o)=>o.press?{}:{[NF]:En},skip:e=>{let o=e._partStyles??{},t=_v().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}}},mN=Object.fromEntries(Gne.map(e=>[e,Kne(e,K(Yne,e))]));import{BLOCK_WIDTH_LIMIT as Zne}from"efficient-easel/draw";var Am={eyebrow:Ge.eyebrow,title:Ge.headingAccent,deck:"Add a sentence or two introducing this document."},V6e={label:"Document masthead",defaultProps:{eyebrow:"",title:"",deck:"",meta:[]}};var sw="titleLevel",Xne=e=>e===2?"h2":"h1",lw=e=>Xne(e?.[sw])==="h2";var wN={minWidth:Zne.min},hN=(e,o,t)=>({...me(e,{...o,...ld}),props:{...G,align:"right",...On,...t}}),CN={top:1,bottom:0},dw=(e,o,t,r)=>({kind:"group",name:e,props:{...L,sectionPaddingBottom:o,sectionPaddingBottomPhone:t},parts:[r]}),xN={widthFit:"fill",...wN},IN={top:100,bottom:60,topPhone:60,bottomPhone:40},Jne={...U("label",13),letterSpacing:.22,lineHeight:1.8},gN={textStyle:"heading-1",...ot("headingLarge",56,8,128),case:"upper",weight:500,lineHeight:.88,letterSpacing:-.04},Qne=()=>({name:"Page Header",boxProps:e=>({...Z,direction:"column",gap:0,sectionBorder:{bottom:1},...le(e,IN)}),box:[...re,...ue(IN)],parts:[{kind:"group",name:"Header",props:{...L,direction:"row",align:"end",justify:"between",gap:40,gapPhone:16,share:"content",sectionPaddingBottom:32},parts:[dw("Eyebrow",12,0,{...me("eyebrow",U("label",13)),props:{...G,...On}}),{kind:"text",key:"title",role:"heading",props:{...G,tag:"h1",...xN},style:gN,mark:"accentItalic",when:e=>!lw(e)},{kind:"text",key:"title",role:"heading",props:{...G,tag:"h2",...xN},style:gN,mark:"accentItalic",when:lw},{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:[id("label","value",Jne,On)]}]}]},{kind:"group",name:"Deck",props:{...L,maxWidth:760,sectionBorder:CN,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,[sw]:"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"}}),vN=()=>({eyebrow:Am.eyebrow,title:qt(Am.title),deck:Am.deck,meta:[{label:Ge.label,value:Ge.value},{label:Ge.label,value:Ge.value}]}),bN={top:80,bottom:40,topPhone:60,bottomPhone:32},ese={...U("label",13),letterSpacing:.18,lineHeight:1.8},yN={...U("label",13),letterSpacing:.22,lineHeight:1.9},ose=()=>({name:"Issue Header",boxProps:e=>({...Z,direction:"column",gap:0,sectionBorder:{bottom:1},...le(e,bN)}),box:[...re,...ue(bN)],parts:[{kind:"group",name:"Top",props:{...L,direction:"row",align:"end",justify:"between",gap:60,gapPhone:16,share:"content",sectionPaddingBottom:32},parts:[dw("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:[id("lead","rest",ese)]}]}]},{kind:"group",name:"Bottom",props:{...L,direction:"row",align:"start",justify:"between",gap:60,gapPhone:16,share:"content",sectionBorder:CN,sectionPaddingTop:32},parts:[{kind:"text",key:"lead",props:{...G,maxWidth:720,...wN},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:[dw("Heading",6,6,{kind:"text",key:"issueHeading",props:{...G,align:"right",...On},style:{textStyle:"body-1",fontRole:"heading",...U("body",18),weight:400,letterSpacing:-.01,lineHeight:1.9,...ld}}),{kind:"group",name:"Lines",props:{...L,align:"stretch",gap:0},parts:[{kind:"list",key:"issueList",name:"Line",flat:!0,parts:[hN("text",{color:"labels",...yN})]}]},hN("issueTotal",yN)]}]}],drop:{...Q,...se}}),SN={top:24,bottom:24,topPhone:16,bottomPhone:16},iw={color:"labels",...U("label",13),letterSpacing:.2},kN=e=>(Array.isArray(e.items)?e.items:[]).filter(o=>o&&typeof o.label=="string"&&o.label.trim()!==""),cw=(e,o)=>o!==void 0&&kN(e).at(-1)===o,TN=(e,o)=>o!==void 0&&kN(e).includes(o),tse=(e,o)=>TN(e,o)&&!cw(e,o)&&Qe(o?.href),rse=()=>({name:"Breadcrumb",skip:e=>Qe(e.meta)?'a trailing note after "\xB7" needs a second mark; none live':void 0,boxProps:e=>({...Z,...Bn,wrap:"wrap",gap:16,gapPhone:16,separator:"slash",sectionBorder:{bottom:1},...le(e,SN)}),box:[...re,...ue(SN)],parts:[{kind:"list",key:"items",name:"Crumb",flat:!0,parts:[{kind:"button",key:"label",href:"href",variant:"ghost",when:tse,props:{...vo,...An,icon:"none"},style:iw},{...me("label",iw),when:(e,o)=>TN(e,o)&&!cw(e,o)&&!Qe(o?.href)},{...me("label",{...iw,color:"text"}),when:cw}]}],drop:{...Q,...se,meta:"a node that stores a note is skipped (`skip`); an empty one draws nothing"}}),PN={DocMasthead:Qne(),Masthead:ose(),Breadcrumb:rse()};import{BLOCK_WIDTH_LIMIT as nse,hiddenKeyOf as sse}from"efficient-easel/draw";import{readHidable as fw}from"efficient-easel/draw";function ase(e,o,t){return e||(t?.isEditing?i(o):void 0)}function iWe(e,o,t){let r=Array.isArray(e)?e:[];return r.length?r:t?.isEditing?o:[]}function EN(e,o,t){let r=fw(e);if(!r.hidden)return ase(r.text,o,t)}function ON(e){if(e==null)return;let o=fw(e);return o.hidden?"":o.text}function dWe(e,o,t){return fw(e).hidden?"":EN(e,o,t)}function cWe(e,o,t){return{text:EN(e,ao.text,t),href:o||ao.href}}var LN="MenuBlock",pw=e=>(Array.isArray(e)?e:[]).filter(o=>o&&Qe(o.label)),_N=e=>{let[o,t]=[e.metaLabel,e.metaValue].map(a=>(ON(a)??"").trim());if(!t)return o;let r=t.includes("==")?t:`==${t}==`;return o?`${o} ${r}`:r},AN={top:0,bottom:0,topPhone:0,bottomPhone:0},lse={...Ko,color:"labels",...U("label",12),letterSpacing:.24},ise={kind:"group",name:"Note",props:{...L,justify:"center",sectionBorder:{top:0,right:0,bottom:0,left:1},sectionPaddingLeft:28,[sse("mobile")]:!0},parts:[{kind:"block",type:"Text",when:e=>_N(e)!=="",props:e=>({...G,textFit:"line",text:_N(e),[Pi]:{text:lse}})}]},FN=()=>({tabs:[],metaLabel:Ge.label,metaValue:Ge.value}),RN="the note Text inside the Box (the label, then the value in the accent); no words, no Text",BN={direction:"row",menuStyle:"tabs",currentPage:!0,minWidth:nse.min},DN=e=>({...e,boxProps:o=>({...Z,direction:"row",align:"stretch",justify:"between",gap:0,stickTop:!0,[Rr]:0,[ii]:!0,sectionBorder:{bottom:1},...le(o,AN)}),box:[...re,...ue(AN)]}),dse=()=>DN({name:"Tab Bar",skip:e=>pw(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:RN,metaValue:RN},parts:[{kind:"block",type:LN,props:BN},ise],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"}}),cse=()=>DN({name:"Category Bar",skip:e=>{if(pw(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(pw(e.links).length)return"its right-hand links are typed words: the bar holds the Menu only"},parts:[{kind:"block",type:LN,props:{...BN,[So]:SC}}],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"}}),NN={DocTabs:dse(),CategoryBar:cse()};import{jsx as Mn,jsxs as mw}from"react/jsx-runtime";import{slugify as fse}from"efficient-shell/format";import{jsx as uw,jsxs as MN}from"react/jsx-runtime";var wWe="sticky top-[120px]";var HN=(e,o)=>e?{[pc]:o}:{},WN=(e,o)=>uc(e?.[Dh(o)]?.role,Eu[o],Vn),UN=120;function zN({title:e,entries:o,stickyTop:t,sticky:r=!0,editing:a=!1,partStyles:n,numberForm:s=zg,takesViewHide:l=!1}){let d=s==="plain",c=Xr(),f=l?c:is;return f.scope(MN("aside",{className:Zr(`${r?"sticky ":""}flex flex-col self-start max-[900px]:static`,f.className),style:r?{top:t}:void 0,...f.attrs,children:[e&&uw("h4",{className:"mb-[18px] font-mono text-[length:var(--size-label,12px)] uppercase tracking-[0.3em] text-accent",children:Hr(e)}),o.map((u,p)=>{let h=uw("span",{...HN(a,"number"),style:WN(n,"number"),className:"text-accent",children:bp(s,p)});return MN("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,uw("span",{...HN(a,"entry"),style:WN(n,"entry"),children:Hr(u.label||"Section")}),!d&&h]},`${p}-${u.anchor}`)})]}))}function pse(e,o){return fse(e)||`section-${o+1}`}var hw=e=>typeof e=="string"&&e.trim()!=="";function xw(e){return(e??[]).filter(o=>hw(o.heading)||hw(o.label)||hw(o.body))}function Iw(e){let o=new Set;return e.map((t,r)=>{let a=pse(t.label||t.heading||"",r),n=a,s=2;for(;o.has(n);)n=`${a}-${s++}`;return o.add(n),n})}function gw(e){let o=[];for(let t of e.replace(/\r\n?/g,`
|
|
327
|
-
`).split(/\n[ \t]*\n/))t.split(`
|
|
328
|
-
`).map(r=>r.replace(/\s+$/,"")).filter(r=>r.trim()!=="").forEach((r,a)=>{let n=tc(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
|
-
${r}`:o.push({type:"p",text:r})});return o}var use=()=>[{label:i("First section"),heading:i("Your *first* section."),body:i(`Write the opening paragraph here.
|
|
330
|
-
|
|
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.")}],mse=UN;function UWe({tocTitle:e,sections:o,editing:t=!1,stickyTop:r=mse}){let a=xw(o);if(a.length===0&&!t)return null;let n=a.length===0&&t?use():a,s=Iw(n);return Mn(Ec,{as:"section",className:"relative z-[2] bg-bg",children:mw("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:[Mn(zN,{title:e,entries:n.map((l,d)=>({label:l.label||"Section",anchor:s[d]})),stickyTop:r}),Mn("div",{className:"flex flex-col gap-16",children:n.map((l,d)=>mw("article",{id:s[d],className:"flex flex-col gap-[18px]",style:{scrollMarginTop:r},children:[mw("span",{className:"font-mono text-[length:var(--size-label,12px)] uppercase tracking-[0.3em] text-accent",children:[Ug(d)," \xB7 ",Hr(l.label||"Section")]}),l.heading&&Mn("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:Hr(l.heading)}),gw(l.body??"").map((c,f)=>c.type==="ul"?Mn("ul",{className:"flex max-w-[680px] list-none flex-col gap-2.5 pl-0",children:c.items.map((u,p)=>Mn("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:Hr(u)},p))},f):Mn("p",{className:"max-w-[680px] font-serif text-[length:var(--size-body,17px)] leading-[1.7] text-fg-dim",children:Hr(c.text)},f))]},s[d]))})]})})}var $N={top:80,bottom:80,topPhone:60,bottomPhone:60},GN=18,jN=18,KN=8,hse=10,bw=e=>typeof e=="string"&&e.trim()!=="",VN=e=>xw(e.sections),xse=e=>gw(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}),yw={...Ft(12),letterSpacing:.3,color:"accent",lineHeight:1.5},qN={textStyle:"body-1",fontRole:"accent",...U("body",17)},Ise=[me("label",yw),{...me("title",yw),when:(e,o)=>!bw(o?.label)},{kind:"block",type:"Text",when:(e,o)=>!bw(o?.label)&&!bw(o?.title),props:{...G,text:"Section",_partStyles:{text:yw}}},{kind:"group",name:"Heading",props:{...L,sectionPaddingBottom:KN,sectionPaddingBottomPhone:KN},parts:[{kind:"group",name:"Heading line",props:{...L,sectionBorder:{bottom:1},sectionPaddingBottom:jN,sectionPaddingBottomPhone:jN},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:xse,parts:[{kind:"text",key:"text",props:ne,style:{...qN,lineHeight:1.7},when:(e,o)=>o?.kind==="p"},{kind:"text",key:"text",props:ne,style:{...qN,lineHeight:1.65,paragraphSpacing:hse},when:(e,o)=>o?.kind==="ul"}]}],gse=900,bse={name:"Document Text",boxProps:e=>({...Z,direction:"row",gap:80,gapPhone:40,[lm]:gse,sectionBorder:{bottom:1},...le(e,$N)}),box:["anchor","sectionAccent",...ea,...gs,...Object.values(io),...ue($N)],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=>VN(e),props:{...L,gap:GN,gapPhone:GN},item:(e,o,t)=>({props:{anchor:Iw(VN(t))[o]??`section-${o+1}`}}),parts:Ise}]}],reads:{tocTitle:"the Contents block's Heading"},drop:{...Q,stickyTop:"the Contents block draws DocBody's default (120px); 0 live nodes store it"}},YN={DocBody:bse};import{phoneKey as wse}from"efficient-easel/draw";import{SITE_SIDE as Cse}from"efficient-easel/screen/lib/content/length-units";var JWe={eyebrow:"\u2014 Label",title:`Section headline *here.*
|
|
334
|
-
*Highlight line*`,body:"Describe this section in a sentence or two."},QWe={text:"Learn more"},eUe={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 Sw(e){return typeof e=="number"&&Number.isFinite(e)?Math.min(Math.max(e,0),100):40}var rUe="[--intro-edge:60px] max-[960px]:[--intro-edge:24px]",yse="overlay",Sse=[{label:"Copy over image",value:"overlay"},{label:"Copy above image",value:"stacked"}];function XN(e){return co(Sse,yse,e)}var aUe={desktop:40,mobile:45,min:20,max:80,step:5};function nUe(e,o){return`${typeof e=="number"?e:o}%`}var ZN=(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)}}},vse=e=>XN(e.layout)==="stacked",JN=e=>Math.min(Math.max(q(e.overlay)??60,0),100),Rm=e=>q(e)??100,kse={textStyle:"heading-1",sizeToken:{...ot("headingLarge",48,7,96).sizeToken,pxPhone:36},weight:500,lineHeight:.95,letterSpacing:-.03},Tse=[me("eyebrow",U("label",14)),...[!0,!1].map(e=>({kind:"text",key:"title",role:"heading",props:G,style:{...kse,case:e?"upper":"none"},styleFrom:o=>{let t=og(o);return ZN(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=og(e);return ZN(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)`,Pse=()=>({name:"Scroll-Over Text",skip:e=>vse(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",...dd,placement:"left",darken:JN(e),darkenStyle:"even",sectionHeightMode:"fixed",sectionHeightUnit:"%",sectionHeightValue:Rm(e.heightDesktop),sectionHeightModePhone:"fixed",sectionHeightUnitPhone:"%",sectionHeightValuePhone:Rm(e.heightMobile),[li]:la}),box:[...re.filter(e=>!String(typeof e=="string"?e:e[0]).startsWith("sectionHeight")),["imageSrc","bgImage"],["imageSrcMobile","bgImagePhone"],["overlay","darken",(e,o)=>JN(o)],["heightDesktop","sectionHeightValue",e=>Rm(e)],["heightMobile","sectionHeightValuePhone",e=>Rm(e)]],parts:Tse,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}}),t2={textStyle:"heading-2",...U("headingMedium",56,36),weight:400,lineHeight:1.05,letterSpacing:-.03},Ese={textStyle:"body-1",...U("body",16),lineHeight:1.7},r2=e=>({kind:"text",key:"body",props:{...ne,maxWidth:520},style:{...Ese,paragraphSpacing:e}}),Fm={top:0,bottom:0,topPhone:0,bottomPhone:0},ww=(e,o)=>typeof e.sectionHeightMode=="string"&&e.sectionHeightMode!=="auto"?{}:{sectionHeightMode:"fixed",sectionHeightUnit:"%",sectionHeightValue:o,sectionHeightModePhone:"auto"},Ose=(e,o)=>{let t=ww(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"}},a2={boxShapePhone:"landscape"},n2="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)",_se=(e,o)=>({[e]:o,[wse(e)]:o}),Ase={textStyle:"heading-2",...U("headingMedium",40),weight:500,case:"none",lineHeight:1,letterSpacing:-.02},e2=e=>(Array.isArray(e.stats)?e.stats:[]).filter(o=>o&&(String(o.value??"").trim()!==""||String(o.label??"").trim()!=="")),Rse=()=>({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,Fm),...ww(e,100)}),box:[...re,...ue(Fm)],parts:[{kind:"group",name:"Words",props:()=>({...L,justify:"center",gap:28,gapPhone:28,sectionBorder:cd({right:1}),sectionBorderPhone:cd({}),...dd,sectionPaddingTop:100,sectionPaddingBottom:100,sectionPaddingTopPhone:60,sectionPaddingBottomPhone:60,sectionPaddingRight:Cse}),parts:[me("eyebrow",U("label",14)),{kind:"text",key:"heading",role:"heading",props:G,style:{...t2,case:"none"},mark:"accentItalic"},r2(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(e2(e).length,1),3),..._se("sectionBorder",cd({top:1})),sectionPaddingTop:28,sectionPaddingTopPhone:28}),parts:[{kind:"list",key:"stats",name:"Stat",of:e2,props:{...L,gap:4,gapPhone:4},parts:[{kind:"text",key:"value",props:_n,style:Ase},me("label",{...U("label",13),color:"labels",letterSpacing:.2})]}]}]}]},cS("Picture","imageSrc",a2)],drop:{...Q,grayscale:n2,...se}}),Lm=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}},Lse=e=>e.textAlign==="center"||e.textAlign==="right"?sc[e.textAlign]:"stretch",Fse=e=>Math.min(Math.max(q(e.overlay)??60,0),100),s2=e=>typeof e=="string"&&e.trim()!=="",Bse={...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},o2=e=>({...cS("Picture","imageSrc",(o,t)=>({...s2(o.imageSrc)&&Sw(o.imageOverlay)>0?{darken:Sw(o.imageOverlay),darkenStyle:"even"}:{},placement:"center",...a2,sectionBorder:cd(e?{left:1}:{right:1}),...l2(e?"left":"right",il(t))}),[{kind:"button",key:"imageBtnText",href:"imageBtnHref",variant:"ghost",props:Bse,style:{...Ft(13,12),letterSpacing:.18}}]),when:o=>o.reverse===!0===e}),l2=(e,o)=>{let t=Math.max(60-o,0);return{sectionPaddingLeft:e==="left"?60:t,sectionPaddingRight:e==="right"?60:t}},Dse={kind:"group",name:"Words",props:(e,o)=>{let t=e.reverse===!0;return{...L,justify:"center",align:Lse(e),placement:e.textAlign==="center"?"center":e.textAlign==="right"?"right":"left",...Ose(e,72),gap:24,gapPhone:24,...s2(e.textBgSrc)?{darken:Fse(e),darkenStyle:"even"}:{},...dd,sectionPaddingTop:100,sectionPaddingBottom:100,...l2(t?"right":"left",il(o)),sectionPaddingTopPhone:60,sectionPaddingBottomPhone:60}},box:[["textBgSrc","bgImage"]],parts:[{...me("eyebrow",U("label",14)),styleFrom:Lm},{kind:"text",key:"title",role:"heading",props:G,style:t2,styleFrom:e=>({case:e.uppercase===!0?"upper":"none",...Lm(e)})},{...r2(24),styleFrom:Lm},{kind:"group",name:"Button",props:{...L,sectionPaddingTop:8,sectionPaddingTopPhone:8},parts:[{kind:"button",key:"ctaText",href:"ctaHref",variant:"primary",props:e=>{let o=Lm(e);return{...vo,...o.align?{align:o.align}:{},...o.alignPhone?{alignPhone:o.alignPhone}:{}}}}]}]},Nse=()=>({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,Fm),...ww(e,72)}),box:[...re,...ue(Fm)],parts:[o2(!1),Dse,o2(!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:n2,...Q,...se}}),i2={IntroBleed:Pse(),Manifesto:Rse(),Split:Nse()};var f2={headPlacement:void 0},d2={top:0,bottom:0,topPhone:0,bottomPhone:0},Mse=()=>({name:"Form",ownBoxConverts:!0,boxProps:e=>({...Z,direction:"column",...le(e,d2)}),box:[...re,...ue(d2)],parts:[{kind:"core",keep:"rest",props:f2}],drop:{...Q,...se}}),c2={top:120,bottom:120,topPhone:60,bottomPhone:60},Hse=()=>({name:"Photo Submission Form",boxProps:e=>({...Z,direction:"column",gap:24,...le(e,c2)}),box:[...re,...ue(c2)],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:f2}],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'}}),p2={Form:Mse(),SubmitBuild:Hse()};import{phoneKey as u2}from"efficient-easel/draw";var h2=1.5,m2={textStyle:"body-1",...U("body",15),lineHeight:h2},Wse={...Ko,...U("label",12),letterSpacing:.12,lineHeight:h2},x2=()=>({type:te,props:{...L,direction:"row",justify:"between",align:"start",gap:16,gapPhone:16,share:"content",phoneRow:2,[u2("share")]:"content",[u2("wrap")]:"nowrap",...No(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"},m2),qe("meta",{...ne,tag:"p"},Wse)]}},qe("amount",{...G,tag:"p"},m2)]}});var Use=()=>({name:"Order Table",boxProps:()=>({...Z,direction:"column"}),box:[...re],parts:[{kind:"core",keep:"rest",headless:!0,slots:{[Do]:[x2()]}}],drop:{...Q}}),I2={OrderSummary:Use()};import{phoneKey as zse}from"efficient-easel/draw";var AUe={eyebrow:"By the numbers",title:`A picture worth
|
|
335
|
-
*a thousand rows.*`},g2=["eyebrow","title","body","caption"],RUe={label:"Chart",defaultProps:{eyebrow:"",title:"",body:"",items:[],caption:"",chartStyle:"bars",valueSuffix:""}};var b2=["eyebrow","title","body"],FUe={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 w2={top:76,bottom:76,topPhone:76,bottomPhone:76},C2=()=>({kind:"group",name:"Words",props:{...L,gap:20,gapPhone:20},parts:[{kind:"group",name:"Chip row",props:{...L,direction:"row",phoneRow:2,[zse("share")]:"content"},parts:[nl("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:fc(16)}]}),v2=e=>(o,t)=>({...Z,sectionAccent:ll(o.sectionAccent??0,t),direction:"row",align:"center",gap:56,gapPhone:56,share:e,sectionBorder:{top:1,bottom:1},...le(o,w2)}),k2=[...re.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,t)=>ll(e,t)],...ue(w2)],$se=()=>({name:"Chart",boxProps:v2([42]),box:k2,parts:[C2(),{kind:"group",name:"Chart",props:{...L,gap:16,gapPhone:16},keepEmpty:!0,parts:[{kind:"core",keep:"rest",props:al},me("caption",{color:"muted",...U("label",10),letterSpacing:.14})]}],pressKeepsEmpty:[...g2],drop:{...Q,...se}}),y2=e=>e.align==="left",S2={kind:"group",name:"Card",keepEmpty:!0,props:L,parts:[{kind:"core",keep:"rest",props:al}]},Gse=()=>({name:"Mockup Card",boxProps:v2("equal"),box:k2,parts:[{...S2,when:y2},C2(),{...S2,when:e=>!y2(e)}],pressKeepsEmpty:[...b2],drop:{...Q,...se}}),T2={Chart:$se(),Mockup:Gse()};import{phoneKey as Kse}from"efficient-easel/draw";function P2(e,o=3){let t=Array.from({length:o},()=>[]);return e.forEach((r,a)=>t[a%o].push(r)),t}function E2(e){return Math.max(e*6,30)}var O2={top:76,bottom:76,topPhone:76,bottomPhone:76},Vse=e=>(Array.isArray(e.apps)?e.apps:[]).map(o=>o&&typeof o=="object"&&typeof o.text=="string"?o.text.trim():"").filter(Boolean),Cw=e=>P2(Vse(e)),qse=e=>lu({loopDuration:E2(e)}),Yse={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,[Kse("share")]:"content"},parts:[nl("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:fc(16)}]},Xse=e=>({kind:"group",name:`Row ${e+1}`,when:o=>Cw(o)[e].length>0,props:o=>({...L,direction:"row",gap:12,gapPhone:12,loop:"scroll",...e%2===1?{scrollDirection:"right"}:{},loopDuration:qse(Cw(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=>Cw(o)[e].map(t=>({alt:t})),parts:[{kind:"block",type:"LogoBlock",box:["alt"]}]}]}]}),Zse={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"}}]},Jse=[...re.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,t)=>ll(e,t)],...ue(O2)],Qse={name:"Integrations",boxProps:(e,o)=>({...Z,sectionAccent:ll(e.sectionAccent??0,o),direction:"column",gap:48,gapPhone:48,sectionBorder:{top:1,bottom:1},...le(e,O2)}),box:Jse,parts:[Yse,{kind:"group",name:"Rows",props:{...L,gap:12,gapPhone:12},parts:Array.from({length:3},(e,o)=>Xse(o))},Zse],pressKeepsEmpty:["body","statValue","statLabel","note"],reads:{apps:"a Logo block per app, dealt into the three Rows"},drop:{...Q,...se}},_2={Integrations:Qse},A2=()=>({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 ele={title:"Back online in",zeroText:"Almost done. Back very soon."},R2=["title"],XUe={label:"Countdown",defaultProps:{...ele,endsAt:"",showUnits:!0}};var L2={top:48,bottom:48,topPhone:48,bottomPhone:48},ole={...me("title",{...bv(12),color:"muted"}),props:{...G,align:"center"}},tle=()=>({name:"Countdown",boxProps:e=>({...Z,direction:"column",align:"center",gap:16,gapPhone:16,...le(e,L2)}),box:[...re,...ue(L2)],parts:[ole,{kind:"core",keep:"rest",props:al}],pressKeepsEmpty:[...R2],drop:{...Q,...se}}),F2={top:80,bottom:80,topTablet:60,bottomTablet:60,topPhone:60,bottomPhone:60},rle=()=>({name:"Feature Banner",boxProps:e=>({...Z,direction:"column",sectionBorder:{bottom:1},...le(e,F2)}),box:[...re,...ue(F2)],parts:[{kind:"core",keep:"rest",props:al}],drop:{...Q,...se}}),B2={Countdown:tle(),FeaturedCover:rle()};var D2={top:80,bottom:80,topPhone:60,bottomPhone:60},ale=()=>{let e=um("FitmentFinder");return{name:"Fitment Form",boxProps:o=>({...Z,direction:"column",gap:ud[Ln("FitmentFinder")],...le(o,D2)}),box:[...re,...ue(D2)],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'}}},N2={FitmentFinder:ale()};var Bm={eyebrow:"Label",title:"Section *heading.*",body:"Add this section's copy here. A blank line starts a new paragraph."},nze={label:"Editorial Text",defaultProps:{eyebrow:"",title:"",body:"",topBorder:!0}};var Od={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"},ize={label:"Lead Text",defaultProps:{eyebrow:"",lead:"",stats:[],foundersHeading:"",foundersBody:"",attribution:"",padTop:60,padBottom:80}};var M2={eyebrow:"Limited release",title:"Banner headline",body:"A line or two of supporting copy."},cze={label:"Banner",drawsPictures:!0,defaultProps:{eyebrow:"",title:"",body:"",imageSrc:"",ctaText:"",ctaHref:"",contained:!0,overlay:60}};var H2={title:`Section heading
|
|
337
|
-
*Highlight line*`},W2=[{label:ao.text,href:ao.href,variant:"primary"},{label:ao.text,href:ao.href,variant:"outline"}],uze={label:"Call-to-Action Heading",defaultProps:{title:"",buttons:[],padTop:140,padBottom:140}};var vw="solid",nle=[{label:"Solid",value:"solid"},{label:"Outlined",value:"outlined"}];function xze(e){return co(nle,vw,e)}var sle="sf-secnum-outline",Ize="font-display text-[length:var(--size-headingMedium,clamp(48px,6vw,96px))] font-medium leading-[0.8] tracking-[-0.02em]",gze=`@supports (-webkit-text-stroke: 1px currentColor){.${sle}{color:var(--site-surface-2);-webkit-text-stroke:1px var(--site-line)}}`;var Dm="standard",G2=[{label:"Standard",value:"standard"},{label:"Editorial",value:"editorial"},{label:"Simple",value:"simple"},{label:"Statement",value:"statement"},{label:"Natural",value:"natural"},{label:"Essay",value:"essay"}],Tw=["numStyle","logoSrc","logoAlt","linkText","linkHref","_gLogo"],kw=[...Tw,"description"],U2={standard:["eyebrowLook"],editorial:[...Tw,"eyebrowLook"],simple:kw,statement:kw,natural:Tw,essay:kw},z2=["gap-5","gap-3"],$2=["text-[length:var(--size-body,16px)]","text-[15px]"];function wze(e){return co(z2,z2[0],e)}function Cze(e){return co($2,$2[0],e)}function vze(e){return co(G2,Dm,e)}function kze(e){let o=G2.map(r=>r.value),t=[...new Set(Object.values(U2).flat())];return La(e,t.map(r=>[[r],_l("headStyle",o,Dm,o.filter(a=>!U2[a].includes(r)))]))}var Wr={num:"01 / Section",title:"Section *title*",description:"Short supporting line",linkText:Ge.viewAll},_ze={label:"Section Header",drawsPictures:!0,defaultProps:{headStyle:Dm,num:Wr.num,numStyle:vw,title:Wr.title,description:"",logoSrc:"",logoAlt:"",linkText:"",linkHref:""}};var Nm={eyebrow:"\u2014 Label",title:`Section headline
|
|
338
|
-
*Highlight line*`,body:"A sentence or two of supporting copy."},Fze={label:"Scroll-Over Text",drawsPictures:!0,defaultProps:{eyebrow:"",title:"",body:"",imageSrc:"",imageSrcMobile:"",heightDesktop:100,heightMobile:100,overlay:60,titleSizeDesktop:Ja,bodySizeDesktop:Ja,titleSizeMobile:Ja,bodySizeMobile:Ja,ctaText:"",ctaHref:"",buttonColor:"",buttonTextColor:"",stickTop:!0,[Rr]:0,uppercase:!1}};var j2={top:72,bottom:72,topPhone:72,bottomPhone:72},lle={name:"Editorial Text",boxProps:e=>({...Z,direction:"column",gap:28,gapPhone:28,sectionBorder:{top:1},...le(e,j2)}),box:[["topBorder","sectionBorder",e=>e===!1?void 0:{top:1}],...re,...ue(j2)],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)"}},K2={buttonPaddingTop:20,buttonPaddingBottom:20,buttonPaddingLeft:28,buttonPaddingRight:28},V2=(e,o)=>o?.variant==="primary",q2=(e,o)=>({kind:"list",key:"buttons",name:"Button",flat:!0,when:e,parts:[{kind:"button",key:"label",href:"href",when:V2,variant:"primary",style:{letterSpacing:.3},props:{...vo,...K2,...o}},{kind:"button",key:"label",href:"href",when:(t,r)=>!V2(t,r),variant:"ghost",style:{letterSpacing:.3},props:{...vo,...K2,...o}}]}),Mm=e=>Qe(e.title),ile={name:"Call-to-Action Heading",boxProps:e=>({...Z,direction:"row",align:"center",justify:Mm(e)?"between":"end",gap:60,gapPhone:60,share:"content",sectionBorder:{bottom:1},...wt(e,"TitleWithButtons")}),box:[...re,...ha("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",...Mm(e)?{minWidth:280,minWidthPhone:0}:{}}),parts:[q2(Mm,{widthFit:"fill",iconPosition:"end"}),q2(e=>!Mm(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 dle(e,o){let t=il(o,{to:ke(e.sectionPaddingUnit)}),r=il(o,{view:"phone",to:ke(e.sectionPaddingUnitPhone),maxPx:20});return{sectionPaddingLeft:t,sectionPaddingRight:t,sectionPaddingLeftPhone:r,sectionPaddingRightPhone:r}}var Y2={top:40,bottom:64,topPhone:24,bottomPhone:36},cle={name:"Section Header",boxProps:(e,o)=>({...Z,direction:"column",gap:0,...le(e,Y2),...dle(e,o)}),box:[...re,...ue(Y2)],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"}},X2={...L,direction:"row",share:[67],gap:32},Z2={...L,sectionPaddingLeft:24,sectionPaddingLeftPhone:0},J2=(e,o,t)=>({kind:"group",name:e,props:o,parts:[t]}),fle={name:"Lead Text",boxProps:e=>({...Z,direction:"column",gap:40,gapPhone:40,sectionBorder:{bottom:1},...wt(e,"ParagraphsA")}),box:[...re,...ha("ParagraphsA")],parts:[{kind:"group",name:"Numbers",props:{...X2,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})]},J2("Stats column",L,{kind:"group",name:"Stats",props:{...Z2,gap:0,gapPhone:0},parts:[{kind:"list",key:"stats",name:"Stat",flat:!0,parts:[id("value","label",{...U("label",13),letterSpacing:.18,lineHeight:1.8})]}]})]},{kind:"group",name:"Words",props:{...X2,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}}]}]},J2("Note column",{...L,justify:"end"},{kind:"group",name:"Founders",props:{...Z2,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},ple={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"),...No(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}},Pw={Prose:lle,TitleWithButtons:ile,SectionHeader:cle,ParagraphsA:fle,Banner:ple},eM={Prose:()=>({eyebrow:Bm.eyebrow,title:qt(Bm.title),body:Bm.body}),TitleWithButtons:()=>({title:qt(H2.title),buttons:W2.map(e=>({...e}))}),SectionHeader:()=>({num:Wr.num,title:qt(Wr.title),description:Wr.description,linkText:Wr.linkText,linkHref:ao.href}),ParagraphsA:()=>({eyebrow:Od.eyebrow,lead:Ge.body,foundersHeading:Od.foundersHeading,foundersBody:Od.foundersBody,attribution:Od.attribution}),Banner:()=>({...M2,ctaText:ao.text,ctaHref:ao.href}),ProcessSteps:()=>({num:Wr.num,title:qt(Wr.title)}),IntroBleed:()=>({eyebrow:Nm.eyebrow,title:qt(Nm.title),body:Nm.body,ctaText:ao.text,ctaHref:ao.href})};function oM(){go(Pw),go(jB),go(aD),go(BB),go(hD),go(YD),go(cN),go(mN),go(PN),go(NN),go(YN),go(i2),go(p2),go(I2),go(N2),go(T2),go(_2),go(B2)}var mle=["FooterPayment"];function tM(e,o){let{id:t,...r}=e.props;for(let[a,n]of Object.entries(r))ule(n)&&(r[a]=n.map(s=>tM(s,o)));return o(e.type,r)}var _d=(e,o)=>{if(!mle.includes(e.type))return null;oM();let t=ua(e.type);return t?tl({type:e.type,props:{...e.props}},t).nodes.map(r=>tM(r,o)):null};function rM(){let{appState:e,dispatch:o,config:t}=yle(f=>f),{readOnly:r}=wle(),[a,n]=Ile(!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)=>gle(t,f,u),c=()=>{let f=ad(l,d,ble(Ue),_d);o({type:"setData",data:u=>({...u,content:[...Hc(u.content,f)]}),recordHistory:!0}),n(!1)};return Hm(Sle,{tone:"info",title:i("This footer uses the old layout"),action:a?xle(hle,{children:[Hm(Ew,{variant:"primary",size:"sm",onClick:c,children:i("Switch now")}),Hm(Ew,{variant:"secondary",size:"sm",onClick:()=>n(!1),children:i("Cancel")})]}):Hm(Ew,{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 Ow,jsxs as Cle}from"react/jsx-runtime";import{InspectorUpLevel as aM}from"efficient-easel/chrome";function nM({nodeId:e,part:o,sectionName:t,onUpToSection:r}){let{select:a}=ou(),n=Zs(e,o,"picture");return Cle("div",{children:[o!=="media"?Ow(aM,{inline:!0,name:i(xn.media),onSelect:()=>a(Hi(e,"media"))}):Ow(aM,{inline:!0,name:i(t),onSelect:r}),Ow(Kt,{part:o,motion:n,itemWord:i(xn[o])})]})}import{HintsToggle as Nle,SettingsSwitch as Mle,hintsFoldClass as Hle}from"efficient-easel/panel";import{useHints as Wle}from"efficient-easel/screen/lib/hints";var fM={kind:"header"},Rw={kind:"website"},pM={kind:"website",tab:Gs,revealPageGroup:!0},uM={kind:"chat"},mM={kind:"social"},Ad="Part";function Ule(e){return i("Part of {name}",{name:i(e)})}function zle(e,o,t){let r=e.describeNode(o);return{name:t,kindLabel:r?Ule(r.label):i(Ad)}}function $le(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 hM({what:e}){let o=$le(e);return ya("div",{className:"sf-note",children:[Ee("p",{children:Ee("strong",{children:o.title})}),ya("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 Aw(e){let o=Mi[e];return{name:xn[e],kindLabel:Ad,icon:o,head:(t,r)=>{if(t.kind!==o)return null;let a=r.describeNode(t.nodeId);if(!a)return null;let n=cM({name:i(tu(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(nM,{nodeId:t.nodeId,part:e,sectionName:r.describeNode(t.nodeId)?.label??"Hero",onUpToSection:()=>r.onSelectNode(t.nodeId)}):null}}var Gle={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(Kp,{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(XA,{})},social:{name:"Social links",kindLabel:"Site settings",icon:"social",render:()=>Ee(tR,{unavailable:Ee(hM,{what:"Social link"})})},ticker:{name:Di,kindLabel:Ad,icon:"ticker",head:(e,o)=>e.kind==="ticker"?zle(o,e.heroId,i(Di)):null,render:e=>Ee(bL,{heroId:e.kind==="ticker"?e.heroId:""})},heroMedia:Aw("media"),heroImage:Aw("image"),heroImage2:Aw("image2"),part:{name:Ad,kindLabel:Ad,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?Bs(t.fields[r],a):t.fields[r],s=Ou(t.type),l=s?Rl(s,e.propKey):null,d=s&&l?s[l].label:_L[e.propKey],c=d?i(d):d_(i(Hg(Ip(n??{},r))),a),f=cM({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(ZL,{nodeId:e.nodeId,propKey:e.propKey,onBack:()=>o.onSelectNode(e.nodeId),onEditStyle:o.onOpenSiteStyles}):null}},jle=new Set(["header","website","chat"]);function Kle(e,o){if(e==="selection")return null;let t=Gle[e];return jle.has(e)&&!o.hasSiteSettings?{...t,kindLabel:"Not part of a template",render:()=>Ee(hM,{what:t.name})}:t}function xM({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}=Lle(),{rows:C}=Li(),w=C?.find(M=>M.slug===u)??null,T=kle(),y=Object.keys(T.fields).some(M=>!M.startsWith("_")&&!Ai.includes(M)),{websiteName:b}=he(),P=Fle({readOnly:I}),{select:H}=Ble(),{selectedItem:E,getItemById:W,getSelectorForId:O,config:D,appState:v}=vle(M=>M),_=Ale(D,E?{type:E.type,props:E.props}:null),A=E?h_(_??D.components[E.type]?.fields,E.props):[],F=M=>D.components[M]?.label??M,z=E?O(E.props.id):void 0,$=Kle(e.kind,d),X=Rle(),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=GA({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!==dM?i("Block"):i("Section"):Oe.kindLabel),be=$?$.icon:E?E.type:"page",Te=_w(e)&&E?Xi(E.type):null,_e=!!E&&!!z&&z.zone===dM&&E.type!==Xe&&E.type!==Dle,Ne=$u(v?.data,E),no=()=>{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=_w(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}=Wle(),fo=!!($||E||y);return ya("div",{className:`es-sidepanel es-sidepanel--right sf-panel sf-panel--right ${Hle(Ae)}`.trim(),children:[Ee(Ele,{icon:Ee(In,{type:be,size:15}),name:ze,kind:Ke,actions:!n&&_w(e)&&E&&E.type!==Xe?ya(sM,{children:[Ee(lM,{label:i("Duplicate section"),title:Ne??void 0,disabled:Ne!==null,onClick:no,children:Ee(Ole,{size:15})}),_e&&d.hasSiteSettings&&Ee(dF,{node:E,currentSlug:u,siteId:p??void 0,tokenRef:c,runAuthed:h,onNotify:s}),Ee(lM,{label:i("Remove section"),danger:!0,onClick:yo,children:Ee(_le,{size:15})}),l?Ee(iM,{side:"right",onHide:l,divider:!0}):null]}):l?Ee(iM,{side:"right",onHide:l}):void 0}),Me&&ya("div",{className:"sf-preview-pin",children:[ya("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(Mle,{checked:Ve,onChange:J,ariaLabel:i("Preview hover state")})]}),ya("div",{className:"sf-insp-body es-insp-body sf-scroll",children:[$?$.render(e,ee):E?ya(sM,{children:[E.type===Xe&&d.hasSiteSettings&&Ee(rM,{}),Ee(n0,{children:Ee(Kt,{entries:Ee(cF,{parts:A,heading:!1,onOpen:M=>H(hp(E.props.id,M))}),entryCount:oS(A).length,itemWord:ze})}),Te&&Ee(Lu,{source:Te,slug:Qs(E?.props),menuId:Pu(E?.props)})]}):y?Ee(Kt,{omit:Ai}):Ee(Ple,{variant:"none",icon:!1,message:i("Select a section or block to edit it."),children:r&&Ee(Tle,{variant:"secondary",onClick:r,children:i("This page")})}),fo&&Ee(Nle,{shown:Ae,onChange:ft,label:i("Show hints")})]})]})}import{jsx as m,jsxs as R,Fragment as SM}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)"},Lw="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 Vle={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 zr({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 Um({children:e}){return m("span",{style:{fontSize:"4.64cqw",fontWeight:700,letterSpacing:"0.06em",textTransform:"uppercase",color:x.muted},children:e})}function IM({over:e,overTone:o,head:t,headSize:r=11.5,cta:a,ctaBg:n,ctaFg:s,tone:l}){return R(SM,{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 Fw({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(zr,{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 Ur({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(Um,{children:e}),o]})}function gM({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 Bw({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 Rd({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 Wm({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 bM({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 qle={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(zr,{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(Um,{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(zr,{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(Wm,{label:"Name"}),m(Wm,{label:"Email"})]}),m(Wm,{label:"Message",filled:!0}),m(bM,{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(Bw,{filled:4,size:14}),m(Wm,{label:"Your review",filled:!0}),m(bM,{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(zr,{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(Rd,{n:"27k",label:"Rigs"}),m(Rd,{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(zr,{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(zr,{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(Ur,{k:"Subtotal",v:"$1,956"}),m(Ur,{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(Um,{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(Rd,{n:"27k",label:"Rigs fitted",tone:x.onInk}),m(Rd,{n:"12",label:"Years",tone:x.onInk}),m(Rd,{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(Bw,{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(gM,{}),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(gM,{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(Bw,{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(IM,{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(zr,{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(IM,{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(zr,{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(Fw,{name:"Ridge 19",price:"$365"}),m(Fw,{name:"Ridge 29",price:"$410"}),m(Fw,{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(zr,{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(Ur,{k:"Diameter",v:'20"'}),m(Ur,{k:"Width",v:"9.0J"}),m(Ur,{k:"Offset",v:"+12"}),m(Ur,{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(Ur,{k:"Hilux N80",v:"20\xD79 +12",ok:!0}),m(Ur,{k:"Ranger PX3",v:"20\xD79 +12",ok:!0}),m(Ur,{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(Um,{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))})},yM={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:Lw}}),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(SM,{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:Lw},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:Lw}}),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 wM({type:e}){let o=Vle[e]??"",t=qle[o]??yM[o]??yM.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 fh}from"efficient-easel/screen/components/ScreenDocumentContext";import{jsx as ml,jsxs as CM}from"react/jsx-runtime";import Yle from"efficient-easel/screen/components/SidePanelHead";import{StylesIcon as Xle}from"efficient-easel/rail";import{Tooltip as Zle}from"efficient-shell/ui";import{HintsToggle as Jle,hintsFoldClass as Qle}from"efficient-easel/panel";import{useHints as eie}from"efficient-easel/screen/lib/hints";function vM({tokenRef:e,siteId:o,onClose:t,onNotify:r,tab:a,onTabChange:n,revealPageGroup:s,onPageGroupRevealed:l}){let d=js(),{shown:c,setShown:f}=eie();return CM("div",{className:`sf-styles ${Qle(c)}`.trim(),children:[ml(Yle,{icon:ml(Xle,{}),title:i("Styles"),context:ml(Zle,{content:i("{name} \u2014 renamed in the Console: {place}.",{name:d,place:i("Storefront \u25B8 Sites \u25B8 Settings")}),className:"sf-name-tip",children:ml("span",{className:"sf-name-text",children:d})})}),CM("div",{className:"sf-insp-body es-insp-body sf-scroll",children:[ml(Kp,{tokenRef:e,siteId:o,onNotify:r,tab:a,onTabChange:n,revealPageGroup:s,onPageGroupRevealed:l}),ml(Jle,{shown:c,onChange:f,label:i("Show hints")})]})]})}import{jsx as ko,jsxs as Wn,Fragment as sie}from"react/jsx-runtime";import{Fragment as MM,useEffect as HM,useRef as Uw}from"react";import{useTreeDrag as WM}from"efficient-easel/drag";import{GlobeIcon as lie,ImageIcon as iie,LocationIcon as die,MapIcon as cie,TextLinesIcon as fie,TrashIcon as UM}from"efficient-easel/icons";import{Subtree as zM,TreeRow as Fd,TreeRowAction as $M,TreeSeam as GM}from"efficient-easel/tree";import{useEaselStrings as pie}from"efficient-easel/strings";import{createPreviewSelectionContext as oie}from"efficient-easel/draw/client";var{Provider:WGe,useSelection:kM}=oie("selectedLocationPartId");function TM(e,o,t){return`${e}::${o}::${t}`}function PM(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 uie}from"efficient-easel/screen/lib/screen-parts";import{useSyncExternalStore as tie}from"react";var rie={level:"groups"},OM=rie,Dw=new Set;function Xt(e){OM=e;for(let o of Dw)o()}function aie(e){return Dw.add(e),()=>{Dw.delete(e)}}var EM=()=>OM;function _M(){return tie(aie,EM,EM)}var Ld=e=>String(e?.group??""),Nw=new WeakMap,nie=0;function zm(e){let o=Nw.get(e);return o||(o=`loc${++nie}`,Nw.set(e,o)),o}var AM=(e,o)=>o||e||"Ungrouped",RM={photo:"",group:"",groupName:"",name:"City name",state:"State",country:"Country",timezone:"GMT \xB7 UTC +0",address:`Address line one
|
|
339
|
-
Address line two`,phone:"+00 000 0000",hours:"Mon\u2013Fri 9:00\u201318:00",lat:0,lng:0,mapsUrl:""};function Hn(e){return ju(e,Ld,o=>String(o?.groupName??"")).map(o=>({key:o.key,name:o.name,cards:o.items.map(t=>t.item)}))}var Mw=e=>e.flatMap(o=>o.cards),LM=(e,o,t)=>Math.min(Math.max(e,o),t);function $m(e,o,t){let r=0;for(let a=0;a<e.length;a++)if(Ld(e[a])===o){if(r===t)return a;r++}return-1}function Hw(e,o,t){let r=Hn(e);if(o<0||o>=r.length)return e;let[a]=r.splice(o,1),n=LM(o<t?t-1:t,0,r.length);return r.splice(n,0,a),Mw(r)}function Ww(e,o,t,r,a){let n=Hn(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&&Nw.set(c,zm(d));let f=LM(s===l&&t<a?a-1:a,0,l.cards.length);return l.cards.splice(f,0,c),Mw(n)}function FM(e,o){let t=Hn(e),r=t.find(n=>n.key===o),a={...RM,group:o,groupName:r?.name??""};return r?(r.cards.push(a),Mw(t)):[...e,a]}function BM(e){let o=new Set(Hn(e).map(a=>a.key)),t=o.size+1,r=`Group ${t}`;for(;o.has(r);)r=`Group ${++t}`;return{cards:[...e,{...RM,group:r,groupName:""}],key:r}}function DM(e,o){return e.filter(t=>Ld(t)!==o)}function NM(e,o,t){let r=$m(e,o,t);return r<0?e:e.filter((a,n)=>n!==r)}function jGe(e,o,t){let r=e.flatMap((s,l)=>Ld(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 KGe(e,o,t){return o.flatMap(r=>{let a=e.filter(n=>Ld(n)===r);return a.length?a:t(r)})}var jm="ContactLocations",Gm=e=>({parentId:`locations-${e}`,slot:"groups"}),zw=(e,o)=>({parentId:`locations-${e}`,slot:`cities:${o}`});function jM(e,o){let{readOnly:t,selected:r}=o,a=pie().tree,n=o.data?.content??[],s=uie(e),l=Uw(null);HM(()=>{let y=r?.type===jm?String(r.props.id):null;y&&y!==l.current&&Xt({level:"groups"}),l.current=y},[r?.props.id]);let{selectedLocationPartId:d,setSelectedLocationPartId:c,setSelectHandler:f}=kM(),u=_M(),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=WM({keyOf:y=>`group:${y.si}:${y.index}`,readOnly:!!t,canDrop:(y,b)=>b.parentId===Gm(y.si).parentId&&b.slot==="groups",onDrop:(y,b)=>{p(y.si,Hw(h(y.si),y.index,b.index)),u.level==="city"&&Xt({level:"groups"})},onStep:(y,b)=>{p(y.si,Hw(h(y.si),y.index,b<0?y.index-1:y.index+2)),u.level==="city"&&Xt({level:"groups"})}}),g=WM({keyOf:y=>`city:${y.si}:${y.group}:${y.index}`,readOnly:!!t,canDrop:(y,b)=>b.parentId===Gm(y.si).parentId&&b.slot.startsWith("cities:"),onDrop:(y,b)=>{let P=b.slot.slice(7);p(y.si,Ww(h(y.si),y.group,y.index,P,b.index)),Xt({level:"group",key:P})},onStep:(y,b)=>{p(y.si,Ww(h(y.si),y.group,y.index,y.group,b<0?y.index-1:y.index+2)),u.level==="city"&&Xt({level:"group",key:y.group})}}),C=Uw(n);C.current=n;let w=Uw(()=>{});HM(()=>{f(y=>{let b=PM(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),Xt(b),e.reveal();let P=n[y]?.props?.id;typeof P=="string"&&(b.level==="city"||b.level==="image"||b.level==="map")?c(TM(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=Hn(W),D=String(y.props.id),v=s&&r?.props.id===D,_=F=>ko(GM,{...t?{}:I.seam({place:{...Gm(b),index:F}})},`seam:${D}:groups:${F}`),A=(F,z)=>ko(GM,{...t?{}:g.seam({place:{...zw(b,F),index:z}})},`seam:${D}:cities:${F}:${z}`);return Wn(sie,{children:[ko(Fd,{icon:ko(fie,{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?AM(F.key,F.name):i("Ungrouped"),Oe={...zw(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:{...Gm(b),index:z}},ze.rowProps);return Wn(MM,{children:[z===0&&_(0),ko(Fd,{icon:ko(lie,{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($M,{kind:"delete",label:Uo("Delete {label} group ({n} city)","Delete {label} group ({n} cities)",F.cards.length,{label:Fe}),onClick:()=>{p(b,DM(W,F.key)),Xt({level:"groups"})},children:ko(UM,{size:15})}),rowProps:Ke.rowProps,count:F.cards.length,countLabel:Uo("{n} city","{n} cities",F.cards.length)}),!X&&Wn(zM,{children:[F.cards.map((be,Te)=>{let _e=$m(W,F.key,Te),Ne=v&&u.level==="city"&&u.index===_e,no=String(be?.name??"")||i("City"),yo=`${D}::city::${zm(be)}`,ie=H(yo),{rowProps:Me,...Ve}=g.row({item:{si:b,group:F.key,index:Te},place:{...zw(b,F.key),index:Te}},{onClick:P(()=>T(b,{level:"city",index:_e}))});return Wn(MM,{children:[Te===0&&A(F.key,0),ko(Fd,{icon:ko(die,{size:13}),name:no,words:a,onSelect:()=>T(b,{level:"city",index:_e}),selected:Ne,...Ve,fold:{open:!ie,label:no,onToggle:()=>E(yo)},actions:ko($M,{kind:"delete",label:i("Delete {name}",{name:no}),onClick:()=>{p(b,NM(W,F.key,Te)),Xt({level:"group",key:F.key})},children:ko(UM,{size:15})}),rowProps:Me}),!ie&&Wn(zM,{children:[ko(Fd,{icon:ko(iie,{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(Fd,{icon:ko(cie,{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)]},zm(be))}),Wn("button",{type:"button",className:"sf-add-card",onClick:()=>{let be=FM(W,F.key);p(b,be);let Te=Hn(be).find(_e=>_e.key===F.key);Xt(Te&&Te.cards.length?{level:"city",index:$m(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)]},$)}),Wn("button",{type:"button",className:"sf-add-card",onClick:()=>{let{cards:F,key:z}=BM(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===jm&&Xt({level:"groups"})}}}import{useEffect as wde,useRef as Cde}from"react";import{createNode as Zw,newId as Jw}from"efficient-easel/data";import{useEaselApi as vde}from"efficient-easel/easel";import{useScreenDocument as kde}from"efficient-easel/screen/components/ScreenDocumentContext";import{useEaselSession as Tde}from"efficient-easel/screen/lib/session-context";import{useEffect as YH,useRef as bde}from"react";import{useEasel as yde}from"efficient-easel/easel";import{ROOT_ZONE as Xw}from"efficient-easel/draw";var Bd={};function KM(e){return Bd={...e?.theme?{theme:e.theme}:{},...e?.site?{site:e.site}:{}},Bd}function VM(e){Bd===e&&(Bd={})}function hl(){return Bd}import{jsx as Et,jsxs as WH}from"react/jsx-runtime";import{createContext as dde,useContext as cde,useEffect as fde,useRef as pde,useState as UH}from"react";import{jsx as Sa,jsxs as aH}from"react/jsx-runtime";import{useEffect as xl,useRef as nH,useState as Un}from"react";import{jsx as qM,Fragment as mie,jsxs as hie}from"react/jsx-runtime";import{useEffect as xie,useRef as YM,useState as Iie}from"react";var gie="#t=0.001",bie=2;function yie(e,o){if(e.readyState<bie||!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 XM({src:e,objectPosition:o="50% 50%",onError:t}){let r=YM(null),a=YM(null),[n,s]=Iie(!1);return xie(()=>{let l=r.current,d=a.current;if(n||!l||!d)return;let c=()=>{yie(l,d)&&s(!0)};return c(),l.addEventListener("loadeddata",c),l.addEventListener("seeked",c),()=>{l.removeEventListener("loadeddata",c),l.removeEventListener("seeked",c)}},[n]),hie(mie,{children:[qM("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&&qM("video",{ref:r,src:`${e}${gie}`,muted:!0,playsInline:!0,preload:"auto",className:"hidden",onError:t})]})}import{imageCopyUrl as QM,imageSrcSet as Sie}from"efficient-shell/image-copies";var ZM;function $w(){return ZM===void 0?{}:{host:ZM}}var fje="(max-width: 800px) 100vw, min(100vw, 1600px)",pje="(max-width: 960px) 100vw, 50vw";function Gw(e,{fallbackWidth:o=1280,maxWidth:t}={}){let r=Sie(e,{...$w(),...t===void 0?{}:{maxWidth:t}});return r?{src:QM(e,o,$w()),srcSet:r}:{src:e}}var wie=/[\s"'()\\;]/,Cie={"\\":"\\\\",'"':'\\"',"\n":"\\a ","\r":"\\d ","\f":"\\c "};function JM(e){return e.replace(/[\\"\n\r\f]/g,o=>Cie[o]??o)}function uje(e){let o=QM(e,1920,$w());return o===e?wie.test(e)?`url("${JM(e)}")`:`url(${e})`:`url("${JM(o)}")`}import{jsx as eH}from"react/jsx-runtime";import{createContext as vie,useContext as kie,useMemo as Ije}from"react";var oH=vie(null);function tH({children:e}){return eH(oH.Provider,{value:"below",children:e})}function Dd(){return kie(oH)}function Tie(){return Dd()==="below"?{loading:"lazy"}:{}}function rH(e){let o=Tie();return eH("img",{...e,...o})}var gje="laterSlideIds";var Pie=.5;function Nd({videoSrc:e,videoAv1Src:o,videoSrcPhone:t,videoAv1SrcPhone:r,posterSrc:a,posterSrcPhone:n,showVideo:s=!0,playbackRate:l=Pie,objectPosition:d="50% 50%",objectPositionPhone:c,objectPositionTablet:f,quiet:u=!1,slideShown:p,laterSlide:h=!1,laterOfLead:I=!1}){let g=f0(c,f),C=Dd(),[w,T]=Un(!1),y=C==="below"&&!w,b=C==="first",P=a||"",H=n||"",E=nH(null),W=vd(E,!0,!0),O=W===void 0?void 0:W==="phone",D=Rc({video:e,av1:o,videoPhone:t,av1Phone:r},O===!0),v=D.video||"",_=Ac(v,D.av1),[A,F]=Un(!1),[z,$]=Un(!1),[X,ee]=Un(!1),[Fe,Oe]=Un(!1),ze=p??!0,[Ke,be]=Un(!1),Te=C!=="first"&&!I,[_e,Ne]=Un(!1),no=nH(null);xl(()=>{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]),xl(()=>{F(!1),$(!1),ee(!1),Oe(!1)},[v,P,H]),xl(()=>{ze&&be(!0)},[ze]),xl(()=>{let J=no.current;J&&(ze?J.play()?.catch(()=>{}):J.pause())},[ze,Ke,_e]),xl(()=>{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]),xl(()=>{let J=no.current;if(!J)return;let Ae=()=>{J.playbackRate=l};return Ae(),J.addEventListener("loadedmetadata",Ae),()=>J.removeEventListener("loadedmetadata",Ae)},[v,l]);let yo=zk(P),ie=P&&(yo||H)&&!z?Gw(P):{src:P},Me=H&&!z?Gw(H):{src:H},Ve=H&&!y&&!w?[{sized:Me,media:vi},...P?[{sized:ie,media:Ol}]:[]]:[];return aH("div",{ref:E,className:"absolute inset-0 z-[1]",children:[Sa("div",{className:"absolute inset-0",style:{background:"var(--site-surface)"}}),Ve.map(({sized:J,media:Ae})=>Sa("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=Sa("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?aH("picture",{children:[Sa("source",{media:vi,srcSet:Me.srcSet||Me.src,sizes:"100vw"}),J]},`${P} ${H}`):J})():Sa(AD,{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&&Sa("video",{ref:no,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=>Sa("source",{src:J.src,type:J.type},J.src))},v),s&&u&&v&&O!==void 0&&Ke&&(!Te||_e)&&!Fe&&(!P||A)&&Sa(XM,{src:v,objectPosition:d,onError:()=>Oe(!0)},v)]})}import{jsx as Fo,Fragment as hH,jsxs as Yw}from"react/jsx-runtime";import{jsx as Il}from"react/jsx-runtime";import{useRef as Eie}from"react";import{SCROLL_EFFECTS_WITH_ZOOM as Oie,scrollAttrs as _ie}from"efficient-shell/format";function sH({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=Eie(null),u=Pc(),p=Xr(),h=n?p:is,I=Cd(f,!0,s),{attrs:g,style:C}=_ie(e[I],o[I]),w=Oie.includes(e[I].effect),T=Zr(`${ss}${u.fill}${t?` ${t}`:""}`,h.className);if(w&&l==="picture")return h.scope(Il("div",{ref:f,className:T,...r,...h.attrs,...a?{style:a}:{},children:Il(Ek,{attrs:g,style:C,children:u.inner(c)})}));let y=Il(Ok,{children:u.inner(c)});if(w){let P=d??(u.fill?"h-full":void 0);return h.scope(Il("div",{ref:f,className:T,...r,...h.attrs,style:{...a,overflow:"clip"},children:Il("div",{...P?{className:P}:{},...g,style:C,children:y})}))}let b=Object.keys(C).length||a?{style:{...a,...C}}:{};return h.scope(Il("div",{ref:f,className:T,...r,...h.attrs,...g,...b,children:y}))}import{MOTION_TIMING as Aie}from"efficient-shell/format";var cH="grayscale(1) contrast(1.03)",$je="Black and white";function Rie(e){return e===!0?{filter:cH}:{}}function Lie(e){let{filter:o}=Rie(e);return o?{style:{filter:o}}:{}}var zn="sf-photo-grayscale",qw="data-sf-photo-host",lH={duration:"--sf-photo-hover-duration",delay:"--sf-photo-hover-delay"},Ym=`@media (hover:hover){.${zn}{filter:${cH};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))}.${zn}:hover,[data-sf-photo-host]:hover .${zn}{filter:none}}@media (hover:hover) and (prefers-reduced-motion:reduce){.${zn}{transition:none}}`;function fH(e){let o=Aie.hover,t={...e.duration!==o.duration.default?{[lH.duration]:`${e.duration}s`}:{},...e.delay!==o.delay.default?{[lH.delay]:`${e.delay}s`}:{}};return Object.keys(t).length?t:void 0}function pH(e,o,t){if(e===!0)return Lie(!0);if(t?.kind==="mono"){let r=fH(t);return{className:zn,sheet:Ym,...r?{style:r}:{}}}return e===!1?{}:o===!0?{className:zn}:{}}var uH="data-sf-repeat",jw="sf-photo-zoom",Fie="--sf-photo-zoom",Gje="sf-photo-wash",Km="sf-photo-wash-rest",Md="sf-photo-wash-hover",qm="sf-photo-frame",mH=(e,o)=>`:not([${uH}]:not(${o}) .${e})`,Vw=(e,o)=>`[${uH}]${o} .${e}${mH(e,o)}`,Kw=(e,o)=>`${o},${Vw(e,":hover")},[${qw}]:hover .${e}${mH(e,":hover")}`,iH=e=>`${e} var(--sf-photo-hover-duration,var(--page-motion-hover-duration)) var(--page-ease-media) var(--sf-photo-hover-delay,var(--page-motion-hover-delay))`,Bie=`.${Md}{opacity:0}@media (hover:hover){.${Km},.${Md}{transition:${iH("opacity")}}${Kw(Md,`.${qm}:hover .${Md}`)}{opacity:1}${Kw(Km,`.${qm}:hover .${Km}`)}{opacity:0}}@media (hover:hover) and (prefers-reduced-motion:no-preference){.${jw}{transition:${iH("transform")}}${Kw(jw,`.${qm}:hover .${jw}`)}{transform:scale(var(${Fie}))}}@media (hover:hover) and (prefers-reduced-motion:reduce){.${Km},.${Md}{transition:none}}`,jje="sf-photo-move";function Kje(e){if(!e||!e.zoom&&!e.darken)return null;let o=fH(e);return{className:qm,sheet:Bie,...o?{style:o}:{}}}function Vje(e){return e===!0?{[zn]:Ym}:{}}var Vm="sf-box-reveal",qje="sf-box-reveal",Die=8,dH=.3,Yje=`@media ${Ol}{.${Vm}{opacity:0;transform:translateY(${Die}px);transition:opacity ${dH}s ease-out,transform ${dH}s ease-out}${Vw(Vm,":hover")},${Vw(Vm,":focus-within")}{opacity:1;transform:none}}@media ${Ol} and (prefers-reduced-motion:reduce){.${Vm}{transition:none;transform:none}}`;import{hidableText as Nie}from"efficient-easel/draw";var Mie={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"},Hie={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 xH(e){let o=e.isVideo&&pT(e.videoSource)==="youtube",t=e.isVideo&&uT(e.videoPlayback)==="click",r=o?mT(Nie(e.youtubeUrl)):null,a=Dc(e.mediaLayout);return{fromYouTube:o,onClick:t,youTubeId:r,backgroundFile:e.isVideo&&!o&&!t,desktopLayout:a,phoneLayout:ix(e.mediaLayoutPhone,a),twoPictures:!e.isVideo&&Ml(e)>1}}function Hd(e,o){return vc(Cn({_partMotion:e},o))}function Wd(e,o){return xu(Cn({_partMotion:e},o))}var Xm=e=>Ty({desktop:e.objectPosition,tablet:e.objectPositionTablet,phone:e.objectPositionPhone}),IH=Jh.img;function gH({entrance:e,scroll:o,origins:t,editing:r,className:a,attrs:n,style:s,zoomLayerClass:l,children:d}){return e?Fo(gD,{views:e,editing:r,boxClass:a,boxAttrs:n,...s?{boxStyle:s}:{},children:d}):o?Fo(sH,{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 gl(e,o){return pH(void 0,void 0,nv(Cn({_partMotion:e},o)))}function bH(e){return hn.some(o=>gl(e,o).className)?{hostAttrs:{[qw]:""},sheet:Ym}:{}}function Zm({treatment:e,children:o}){return e.className?Fo("div",{className:`absolute inset-0 ${e.className}`,...e.style?{style:e.style}:{},children:o}):Fo(hH,{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 Qm({part:e,editing:o,marked:t=!0,entrance:r,scroll:a=null,origins:n,className:s,children:l}){let d=o&&t?{[$A]:e}:void 0;return Fo(gH,{entrance:r,scroll:a,origins:n,editing:o,className:s,attrs:d,zoomLayerClass:IH,children:l})}function yH({partMotion:e,editing:o,children:t}){let r=Hd(e,"media"),a=Wd(e,"media"),n=gl(e,"media"),s=Fo(_k,{fill:Jh,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(gH,{entrance:r,scroll:a,editing:o,className:"absolute inset-0 z-[1]",zoomLayerClass:IH,children:l}):Fo(hH,{children:l})}function SH({desktopLayout:e,phoneLayout:o,editing:t,marked:r=!0,partMotion:a,first:n,second:s,laterSlide:l=!1}){return Yw("div",{className:`absolute inset-0 z-[1] grid ${Mie[o]} ${Hie[e]}`,"data-hero-layout":e,"data-hero-layout-phone":o,children:[Fo(Qm,{part:"image",editing:t,marked:r,entrance:Hd(a,"image"),scroll:Wd(a,"image"),origins:Xm(n),className:"relative overflow-hidden",children:Yw(Zm,{treatment:gl(a,"image"),children:[Fo(Nd,{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(Qm,{part:"image2",editing:t,marked:r,entrance:Hd(a,"image2"),scroll:Wd(a,"image2"),origins:Xm(s),className:`relative overflow-hidden ${ff({desktop:e==="one",tablet:e==="one",mobile:o==="one"},{atSectionLine:!0})}`.trimEnd(),children:Yw(Zm,{treatment:gl(a,"image2"),children:[Fo(Nd,{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 wa,Fragment as Wie,jsxs as Uie}from"react/jsx-runtime";import{useEffect as zie,useRef as $ie,useState as Gie}from"react";import{PlaySolidIcon as jie}from"efficient-shell/icons/efficient-looks";function wH({youTubeId:e,ownPoster:o,background:t,editing:r}){let[a,n]=Gie("large");return zie(()=>n("large"),[e]),e?Uie(Wie,{children:[!o&&a!=="none"&&wa(rH,{src:a==="large"?hT(e):xT(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&&wa("div",{className:"pointer-events-none absolute inset-0 z-[3] overflow-hidden [container-type:size]","aria-hidden":"true",children:wa("iframe",{src:cx(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 CH({youTubeId:e,fileSrc:o,fileAv1Src:t,fileSrcPhone:r,fileAv1SrcPhone:a,playing:n,onPlay:s,editing:l}){let d=$ie(null),c=vd(d,!0,!0)==="phone";if(!e&&!o)return null;let f=Rc({video:o,av1:t,videoPhone:r,av1Phone:a},c),u=Ac(f.video,f.av1);return n&&!l?e?wa("iframe",{src:cx(e,"click"),title:fx,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"}):wa("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=>wa("source",{src:p.src,type:p.type},p.src))},f.video):wa("button",{ref:p=>{d.current=p},type:"button","aria-label":fx,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:wa(jie,{size:28})})}function vH(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 kH=["top","middle","bottom"],TH=["left","center","right"],PH="bottom",EH="left",Kie={top:"Top",middle:"Middle",bottom:"Bottom"},Vie={left:"Left",center:"Center",right:"Right"},vKe="Up and down",kKe="Sideways",qie={top:"flex-start",middle:"center",bottom:"flex-end"},Yie={left:"flex-start",center:"center",right:"flex-end"},Xie="--sf-hero-phone-y",Zie="--sf-hero-phone-x";function Jie(e){return kH.includes(e)?e:PH}function Qie(e){return TH.includes(e)?e:EH}function OH(e,o){let t=Jie(e),r=Qie(o),a={};return t!==PH&&(a[Xie]=qie[t]),r!==EH&&(a[Zie]=Yie[r]),a}function TKe(){return kH.map(e=>({label:Kie[e],value:e}))}function PKe(){return TH.map(e=>({label:Vie[e],value:e}))}import{hexToRgb as ede}from"efficient-shell/format";var ode=!0;var tde=[[0,".5"],[30,".1"],[60,".1"],[100,".85"]];function _H(e){let o=ede(e);return o?`${o.r},${o.g},${o.b}`:null}function AH(e){return e==null?ode:e!==!1}function RH(e){let o=(e?_H(e):null)??_H(Nt);return`linear-gradient(180deg, ${tde.map(([t,r])=>`rgba(${o},${r}) ${t}%`).join(", ")})`}import{hexToRgb as LH}from"efficient-shell/format";var FH="bottom";var rde=[{label:"Bottom",value:"bottom",cell:"bottom"},{label:"Top",value:"top",cell:"top"},{label:"Left",value:"left",cell:"left"},{label:"Right",value:"right",cell:"right"}],ade={bottom:180,top:0,left:270,right:90},nde=[[.55,0],[.15,18],[null,35],[null,55],[.85,100]],sde=[[null,33],[.6,67],[.94,100]];function lde(e,o){let{r:t,g:r,b:a}=LH(e)??LH(Nt);return`rgba(${t},${r},${a},${o})`}function BH(e){return co(rde,FH,e)}function DH(e=Nt,o=FH){let t=BH(o),r=(t==="top"||t==="bottom"?nde:sde).map(([a,n])=>`${a===null?"transparent":lde(e,a)} ${n}%`);return`linear-gradient(${ade[t]}deg, ${r.join(", ")})`}function NH(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:BH(r)}}import{jsx as ide}from"react/jsx-runtime";var MH="sf-photo-hover";function HH({sheet:e,name:o=MH}){return e?ide("style",{href:o,precedence:MH,dangerouslySetInnerHTML:{__html:e}}):null}var ude=dde({});function o8e({name:e,process:o,mediaType:t=Nl.HeroSlide,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=Xr(),{alignment:Fe="left",textureOpacity:Oe,textureOn:ze,textureColor:Ke,quietVideo:be,phoneUpDown:Te,phoneSideways:_e,holdReel:Ne,reelHeld:no,shownSlide:yo,ratioMin:ie}=cde(ude),Me=Dd(),Ve=X&&Me==="first",J=pde(null),[Ae,ft]=UH(yo===void 0?void 0:!1);fde(()=>{let Ta=J.current;ft(yo===void 0||!Ta?void 0:vH(Ta.closest(".hero-track"),"data-slide-name")[yo]===Ta)});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:Ca,twoPictures:Gn}=xH({isVideo:fo,videoSource:A,videoPlayback:z,youtubeUrl:F,mediaLayout:P,mediaLayoutPhone:H}),[jn,Ir]=UH(!1);jn&&no===!1&&Ir(!1);let $r=!jn,va=NH({overlayColor:y,overlayPosition:b},Ke),Cl=fo?null:Hd($,"image"),ka=fo?null:Wd($,"image"),Zd=bH($),vl=Et(Zm,{treatment:fo?{}:gl($,"image"),children:Et(Nd,{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})}),Jd=WH("section",{ref:J,className:Zr(`${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",...Zd.hostAttrs,children:[Et(HH,{sheet:Zd.sheet}),Et(yH,{partMotion:$,editing:C,children:Gn?Et(SH,{laterSlide:X,desktopLayout:xr,phoneLayout:Ca,editing:C,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||Cl||ka?WH(Qm,{part:fo?"media":"image",editing:C,entrance:Cl,scroll:ka,origins:Xm({objectPosition:f,objectPositionTablet:p,objectPositionPhone:u}),className:"absolute inset-0 z-[1]",children:[vl,Be&&Et(wH,{youTubeId:hr,ownPoster:!!Le,background:!_t,editing:C})]}):vl}),_t&&Et(CH,{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:jn,onPlay:()=>{Ir(!0),Ne?.()},editing:C}),$r&&!Gn&&Et(Jm,{color:h,opacity:I,passClicks:!1}),$r&&AH(ze)&&Et("div",{className:"absolute inset-0 z-[2]",style:{background:va.own?DH(va.color,va.position??void 0):RH(va.color),...Oe!==void 0?{opacity:Oe/100}:null}}),$r&&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:{...Ik,...OH(Te,_e)},children:g&&Et(g,{className:"sf-hero-group-zone",minEmptyHeight:160})})]});return ee.scope(Ve?Et(tH,{children:Jd}):Jd)}var zH=Array.from({length:3},(e,o)=>({name:`Slide ${o+1}`,process:"Category",mediaType:"image",mediaVideo:"",poster:""}));import{newNodeId as GH}from"efficient-easel/draw";import{isNodeList as mde}from"efficient-easel/data";var jH=(e,o)=>({type:e.type,props:{...o?.(e.type)??{},...Object.fromEntries(Object.entries(e.props).map(([t,r])=>[t,mde(r)?r.map(a=>jH(a,o)):r]))}}),hde=e=>{let[o]=Zn([aw()],a=>GH(a)),{id:t,...r}=jH(o,e).props;return r},ur={Hero:{slot:"slides",childType:"HeroSlide",addLabel:"Add slide",slider:!0,seeds:()=>zH.map(e=>({...e}))},HeroSlide:{slot:"groups",childType:"HeroGroup",addLabel:`Add ${Tl.toLowerCase()}`,seeds:()=>[],addBlocked:qh,notice:Yh},HeroSingle:{slot:"boxes",childType:"HeroGroup",addLabel:`Add ${Tl.toLowerCase()}`,seeds:()=>[],addBlocked:qh,notice:Yh},ProcessSteps:{slot:_m,childType:te,addLabel:`Add ${Tl.toLowerCase()}`,seeds:e=>Array.from({length:rw},()=>hde(e)),skipSeed:e=>Array.isArray(e.steps)&&e.steps.length>0}},$H=1,xde={slot:Ni,childType:te,addLabel:`Add ${Tl.toLowerCase()}`,seeds:()=>[],addBlocked:e=>e.length>=$H?"This Hero has its Scrolling Bar already. Delete it to add another.":null,notice:e=>e.length>$H?`This Hero holds ${e.length} Scrolling Bars. Keep one and delete the others.`:null},KH={Hero:{[Ni]:xde}};function u8e(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 m8e(e,o){let t=K(ur,e);return t?{slot:t.slot,children:t.seeds(o).map(r=>({type:t.childType,props:{id:GH(t.childType),...r}}))}:null}var Ide={"Logos.logosPerRow":"columns","HeroSlide.tintOpacity":"overlay","Split.textBgTint":"overlay"},gde={"Footprint.source":"typed"};function VH(e){let o=e.props,t=!1;if(e.type&&o)for(let[r,a]of Object.entries(Ide)){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(gde)){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],wC(l)&&l!==a&&!Zt(d)&&(d[So]=l),o=d,t=!0}if(e.type&&o){let r=Fv(e.type,o);r!==o&&(o=r,t=!0)}if(o){let r=ds({props:o},a=>Da(a,VH));r.props!==o&&(o=r.props,t=!0)}return t?{...e,props:o}:e}function b8e(e){return rT(e,o=>Da(o,VH))}function qH(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 ZH(e){let o=yde(c=>c.appState.data.content),{theme:t,themeRow:r,themeFromDocument:a,siteGutter:n,siteGutterPhone:s,siteLengthUnits:l}=he(),d=bde(new Set);YH(()=>{let c=XH({theme:t,themeRow:r,themeFromDocument:a,siteGutter:n,siteGutterPhone:s,siteLengthUnits:l});c&&Sde(kF(o,void 0,c),e,d.current)},[o,e,t,r,a,n,s,l]),YH(()=>{let c=KM(XH({theme:t,themeRow:r,themeFromDocument:a,siteGutter:n,siteGutterPhone:s,siteLengthUnits:l}));return()=>VM(c)},[t,r,a,n,s,l])}function XH(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=qH({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 Sde(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(Xw,r,a[0]),a.slice(1).forEach((s,l)=>{o.insertNode(Xw,r+1+l,s),o.replaceComponent(Xw,r+1+l,s)}))}}import{ROOT_ZONE as bl,missingPinnedTypes as Pde,pinnedDuplicateIds as Qw}from"efficient-easel/draw";function JH(e){return!e.docId||e.saveStatus==="saving"?!1:e.seededDocId!==e.docId}function QH(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 e4(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(Hc(r,t)),!0)}function o4(e,o){let{adapter:t,capabilities:r,currentSlug:a,docId:n,data:s,saveStatus:l,siteId:d,tokenRef:c}=kde(),f=Tde(),{hasSiteSettings:u,hasPinnedChrome:p}=r;ZH(e);let h=!!r.editsPinnedInPlace&&a!==Mt,I=a===Mt,g=vde().getState,C=Cde(null);wde(()=>{if(!JH({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=Pde(O,y);if(D.includes(Xe)){let v=O.length,_=e.insertSection(Xe,v);e.replaceComponent(bl,v,{type:Xe,props:{id:_,blocks:zu()}})}D.includes(Jo)&&e.insertNode(bl,0,Uu());return}if(I){let W=ps(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,_)=>Zw(o,v,_),D={type:Xe,props:{blocks:zu()}};e.insertNode(bl,W.length,ad(D,O,Jw(Ue),_d))}return}if(h){let W=!!t?.pinnedChrome?.state().docId,O=QH(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)=>Zw(o,F,z),A={type:Xe,props:{blocks:zu()}};e.insertNode(bl,v.length,ad(A,_,Jw(Ue),_d))}if(O.seedHeader&&!b(y,Jo)){let _=v[0]?.type===Ye?1:0;e.insertNode(bl,_,Uu())}if(O.seedSiteHeader&&!b(y,Ye)&&!b(y,Xe)&&!b(y,Ue)){let _=n;e4({blocks:uf(f),make:(A,F)=>Zw(o,A,F),id:Jw(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(bl,0,Uu())},[n,l,s,g,e,u,p,I,h,t,f,d,c])}import{useEffect as y4,useMemo as zde,useRef as S4}from"react";import{useEasel as $de}from"efficient-easel/easel";import{useEaselHost as Gde}from"efficient-easel/screen/lib/host";import{FIELD_DESCRIPTION_MARKER as Bde}from"efficient-easel/screen/lib/host";import{isNode as u4,isNodeList as Dde}from"efficient-easel/data";import{SITE_SIDE as a4}from"efficient-easel/screen/lib/content/length-units";var t4=[{text:"Ticker item"},{text:"Ticker item"},{text:"Ticker item"},{text:"Ticker item"}],t7e={label:"Scrolling Bar",defaultProps:{items:[],tone:"scrim",borders:!0,size:dv,separator:cv,scrollDirection:Gi}};var r4=()=>[{text:i("Spec label"),tone:"normal"},{text:i("Spec value"),tone:"muted"},{text:i("Spec label"),tone:"normal"},{text:i("Spec value"),tone:"muted"}],n7e={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 n4(e,o,t){return Bo(te,e,o,{...t,sectionPaddingTop:void 0,sectionPaddingBottom:void 0})}var eh={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:a4,sectionPaddingRight:a4,content:[Bo("Text",e,o,vr()),Bo("Text",e,o,Vr()),Bo("Text",e,o),Bo("Stats",e,o)]}),n4(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,Vr()),Bo("Text",e,o),Bo("ButtonBlock",e,o)]}),n4(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,Vr()),Bo("Text",e,o),Bo("Form",e,o)]}}),Ticker:(e,o)=>s4("Scrolling Bar",bm,bd,t4.map(t=>({text:t.text,style:ym,muted:!0})),e,o),SpecStrip:(e,o,t)=>s4("Spec Strip",t?.theme?{...Sd,sectionAccent:bc(xo(t.theme))}:{...Sd,sectionBorder:{top:1}},yd,r4().map(r=>({text:r.text??"",style:wd,muted:r.tone==="muted"})),e,o)};function s4(e,o,t,r,a,n){return Bo(te,a,n,{...Bn,...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 l4(e){return K(eh,e)??null}import{isNodeList as eC}from"efficient-easel/data";var _7e=Object.keys(Pw),Ede={Logos:nD,DocMasthead:vN,DocTabs:FN,Timeline:VD,TimelineTrack:qD},Ode={PaymentBadges:sD,PaymentLogosBlock:lD,Integrations:A2};function oh(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]=eC(n)?n.map(s=>oh(s,o,t)):n;return r.id=t(e.type),{type:e.type,props:r}}var i4=e=>({...e?.theme?{theme:e.theme}:{},...e?.site?{site:e.site}:{},press:!0});function Ud(e,o,t=0,r=()=>({})){return(a,n,s)=>{let{nodes:l}=tl({type:e,props:{...a(e),...r(),id:n(e)}},o,i4(s));return oh(l[t],a,n)}}var _de={Stats:Rde,Cards:Ade};function Ade(){let e=ua("Cards");if(!e)return null;let o=Ud("Cards",e,0,FB);return(t,r,a)=>{let n=o(t,r,a);return{...n,props:{...n.props,name:"Cards section"}}}}function Rde(){let e=ua("StatsParagraph");return e?(o,t,r)=>{let{nodes:a}=tl({type:"StatsParagraph",props:{...o("StatsParagraph"),...KB(),id:t("StatsParagraph")}},e,i4(r)),n=a[0],s=eC(n.props.content)?n.props.content.filter(f=>f.props?.cardStyle===void 0):[],l=c4(ES(VB(),"table")),d=s.map(d4),c=oh({...n,props:{...n.props,content:[...d,l]}},o,t);return{...c,props:{...c.props,name:"Stats section"}}}:null}function d4(e){return e.props?.name==="Words"?{...e,props:{...e.props,widthFitPhone:"fill"}}:eC(e.props?.content)?{...e,props:{...e.props,content:e.props.content.map(d4)}}:e}var c4=e=>Zn([e],(o,t)=>`${o}-seed-${t}`)[0];function Lde(e,o){if(!vF(e,o))return null;let t=K(_de,e);if(t)return t();let r=ua(e);return r?Ud(e,r,0,K(Ede,e)??K(eM,e)??K(Ode,e)):null}function Fde(e){return(o,t,r)=>{let a=n=>{if(n.type==="Stats"){let l=oh(c4(ES([],"list")),o,t);return{...l,props:{...l.props,name:"Numbers"}}}let s=ds(n,l=>Da(l,a));return s===n?n:{type:n.type,props:s.props}};return a(e(o,t,r))}}function yl(e,o=Pn){let t=l4(e);return t?Fde(t):Lde(e,o)}function zd(e,o){let t=e.components[o]?.label;return typeof t=="string"&&t.trim()?t.trim():o}function Nde(e){return e.length>3&&e.endsWith("s")?e.slice(0,-1):e}function oC(e,o,t,r){e.forEach((a,n)=>{if(u4(a)){r.push({node:a,list:e,index:n,parent:o,slot:t});for(let[s,l]of Object.entries(a.props))Dde(l)&&oC(l,a,s,r)}})}function Mde(e){let o=[];oC(Array.isArray(e.content)?e.content:[],null,"",o);for(let t of Object.values(e.zones??{}))Array.isArray(t)&&oC(t,null,"",o);return o}function m4(e,o){return Mde(e).find(t=>String(t.node.props.id)===o)}function h4(e,o,t){if(!t)return null;let r=m4(o,t);if(!r)return null;let a=zd(e,r.node.type),n=r.parent?`${zd(e,r.parent.type)} \xB7 ${Nde(r.slot)} ${r.index+1}`:a;return{blockId:t,type:r.node.type,label:n,path:""}}var Hde=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 Wde(e){if(!e||typeof e!="object")return null;let o=e;if(typeof o.type!="string")return null;let t=o.type==="custom"?o[Bde]: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=Hde(n));for(let s of["arrayFields","objectFields"]){let l=t?.[s]??o[s];l&&typeof l=="object"&&(r[s]=x4(l))}return r}function x4(e){let o={};for(let[t,r]of Object.entries(e??{})){let a=Wde(r);a&&(o[t]=a)}return o}function I4(e){let o={};for(let[t,r]of Object.entries(e.components))r&&(o[t]={label:zd(e,t),fields:x4(r.fields),...g4(t)?{retired:!0}:{}});return o}function g4(e){return $e(TC,e)}function f4(e,o){let t=e.components[o]?.defaultProps;return t&&typeof t=="object"?structuredClone(t):{}}function Ude(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 tC(e,o){return e.findIndex(t=>u4(t)&&String(t.props.id)===o)}function p4(e,o,t){let r=o||t;if(!r)return e.length;let a=tC(e,r);if(a<0)throw new Error(`there is no top-level block ${r}`);return o?a+1:a}function b4(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=m4(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=Ude(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}`),g4(l.type)&&c(`${zd(e,l.type)} is retired: it is no longer added (a page that holds one keeps it)`);let f=yl(l.type),u=Object.keys(l.props??{}).filter(h=>h!=="id");f&&u.length&&c(`${zd(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=>f4(e,h),r,a):{type:l.type,props:{...f4(e,l.type),...structuredClone(l.props),id:r(l.type)}};s.splice(p4(s,l.after,l.before),0,p);break}case"remove_block":{let f=tC(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=tC(s,l.block_id);f<0&&c(`there is no top-level block ${l.block_id}`);let[u]=s.splice(f,1);s.splice(p4(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 rC=e=>Se(e.requestId)??null;function w4(){let e=Gde(),{appState:o,selectedItem:t,dispatch:r,history:a,config:n}=$de(p=>p),s=n,l=S4({appState:o,dispatch:r,history:a,blockConfig:s});l.current={appState:o,dispatch:r,history:a,blockConfig:s};let d=S4(new Map),c=t?.props?.id,f=zde(()=>h4(s,o.data,c),[s,o.data,c]),u=f?JSON.stringify(f):"";y4(()=>{e.connected&&e.send("storefront-editor:selection",{selection:f})},[e,u]),y4(()=>e.subscribe(p=>{let{appState:h,dispatch:I,history:g,blockConfig:C}=l.current;switch(p.type){case"storefront-editor:request-document":{let w=rC(p);if(!w)return;e.send("storefront-editor:document",{requestId:w,document:h.data,blocks:I4(C)});return}case"storefront-editor:apply-page-edits":{let w=rC(p);if(!w)return;let T=Array.isArray(p.ops)?p.ops:[],y=T.length?b4(C,h.data,T,b=>`${b}-${crypto.randomUUID()}`,hl()):{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=rC(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 k4,useState as T4}from"react";var th=new Map;async function jde(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 C4(e,o){let t=th.get(o);return t||(t=jde(e,o),th.set(o,t),t.catch(()=>{th.get(o)===t&&th.delete(o)})),t}var Kde=/^(localhost|(?:[a-z0-9-]+\.)+localhost|127(?:\.\d{1,3}){3}|0\.0\.0\.0|\[::1\]|::1)$/i;function aC(e){return!!e&&Kde.test(e)}function v4(e){let{pageSlug:o,siteSlug:t,hostname:r}=e,a=o===ef?"/":`/${encodeURIComponent(o)}`;if(!aC(r))return a;let n=t?.trim();return n?`${a}?site=${encodeURIComponent(n)}`:a}function P4(e){let{pageSlug:o,siteId:t,token:r}=e,[a,n]=T4(null),[s,l]=T4(null),d=Uk();k4(()=>{try{l(new URL(Oc()).hostname)}catch{l(null)}},[d]),k4(()=>{if(!aC(s)||!t||!r){n(null);return}let f=!1;return C4(r,t).then(u=>{f||n(u)}),()=>{f=!0}},[s,t,r]);let c=v4({pageSlug:o,siteSlug:a,hostname:s});return d?`${d}${c}`:c}import{jsx as $d}from"react/jsx-runtime";import{useEffect as Vde,useRef as E4,useState as qde}from"react";import{ExternalIcon as O4}from"efficient-easel/icons";import{EaselIconButton as Yde}from"efficient-easel/chrome";import{Tooltip as Xde,iconButtonClasses as Zde}from"efficient-shell/ui";import{useSettledPress as Jde}from"efficient-easel/easel";import{useScreenDocument as Qde}from"efficient-easel/screen/components/ScreenDocumentContext";async function ece({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 _4({liveHref:e,pageId:o,draftLink:t}){let{flushSave:r}=Qde(),a=E4(r);a.current=r;let n=Jde(),[s,l]=qde(!1),d=E4(null);if(Vde(()=>()=>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),ece({pageId:o,liveHref:e,draftLink:t,ready:c}).finally(()=>l(!1)))};return $d(Yde,{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:$d(O4,{})})}return $d(Xde,{content:i("Preview the live site (opens in a new tab)"),side:"bottom",children:$d("a",{className:Zde({className:"es-iconbtn"}),href:e,...pd,"aria-label":i("Preview the live site in a new tab"),children:$d(O4,{})})})}import{createElement as nce,useCallback as sce,useEffect as V4,useRef as q4,useState as lce}from"react";import{ClockIcon as ice}from"efficient-shell/icons/efficient";import{useScreenDocument as dce}from"efficient-easel/screen/components/ScreenDocumentContext";import{useSyncExternalStore as oce}from"react";import{useScreenDocument as tce}from"efficient-easel/screen/components/ScreenDocumentContext";var rce=()=>()=>{},A4=()=>null;function rh(e){return oce(e?e.subscribe:rce,e?e.state:A4,e?e.state:A4)}function ah(){let{adapter:e}=tce();return e?.pinnedChrome}import{useSyncExternalStore as F4}from"react";var Gd=!1,Sl=null,nC=new Set;function Kd(){for(let e of nC)e()}function B4(e){return nC.add(e),()=>{nC.delete(e)}}function D4(){Gd||(Gd=!0,Kd())}function N4(){Gd&&(Gd=!1,Kd())}function R4(){return Gd}function M4(){return F4(B4,R4,R4)}function L4(){return Sl}function nh(){Sl&&(Sl=null,Kd())}function H4(){return F4(B4,L4,L4)}var jd=class extends Error{constructor(){super("The editor's last changes could not be saved, so nothing was restored."),this.name="HeldEditsNotSaved"}};async function W4(e,o,t,{flushSave:r,reload:a}){if(!await r())throw new jd;let n=await e.restore(o,t);return vf(n.liveState),a(),n}async function U4({access:e,version:o,page:t,...r}){let a=await W4(e,o.id,t?{page:t.id}:{},r);Sl={title:ace(o,t??null),undo:a.undo},Kd()}async function z4({access:e,...o}){let t=Sl?.undo;t&&(await W4(e,t,{},o),Sl=null,Kd())}function $4(e){return e.name?e.name:e.kind==="draft_before_restore"?i("Draft before restore"):i("Version {n}",{n:e.number})}function ace(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 G4(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(ox(),{type:"conjunction"}).format(t)}catch{return t.join(", ")}}function j4(e){return e.change==="take_down"?i("{name} (taken down)",{name:e.name}):e.name}function K4(e,o=new Date){let t=new Date(e);if(Number.isNaN(t.getTime()))return"";let r=ox(),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 Y4(e){let{docId:o,capabilities:t,hasUnsavedEdits:r,onPublish:a,adapter:n}=dce(),s=eF(QL(o??null),r),l=rh(ah()),d=n.siteLiveState;V4(()=>{if(d)return hI(d),Or(0),()=>hI(null)},[d]);let c=kf(),[f,u]=lce(!1),p=q4(e);p.current=e;let h=q4(!0);V4(()=>(h.current=!0,()=>{h.current=!1}),[]);let I=sce(()=>{u(!0),a(p.current).then(()=>{nh()}).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=Xy({live:g,onPress:I,busy:f,goingLive:oF(c?.changes??[])});return n.siteVersions?{...C,menuItems:cce()}:C}return Xy({live:s,onPress:I,busy:f,pinnedUnpublished:l?.unpublished??!1})}}function cce(){return[{key:"version-history",label:i("Version history"),icon:nce(ice),onSelect:D4}]}import{jsx as ae,jsxs as ct,Fragment as Yd}from"react/jsx-runtime";import{useCallback as fce,useEffect as pce,useId as J4,useRef as uce,useState as Ot}from"react";import{useSettledAction as mce}from"efficient-easel/easel";import{Avatar as hce,Banner as Vd,Button as $n,ColoredBadge as sC,Dialog as Q4,Drawer as xce,DropdownMenu as Ice,FormField as e5,iconButtonClasses as gce,Inline as lC,Input as bce,ListRow as yce,Select as Sce,SortableList as wce,Stack as qd}from"efficient-shell/ui";import{EditIcon as Cce,EyeIcon as X4,MenuIcon as vce,MoreIcon as kce,PageIcon as o5,RevertIcon as Z4,StylesIcon as Tce}from"efficient-shell/icons/efficient";import{useScreenDocument as t5}from"efficient-easel/screen/components/ScreenDocumentContext";var Pce={page:o5,menu:vce};function Ece(e,o){return e.pages.find(t=>t.id===o)??e.pages[0]??null}function Oce(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 _ce({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=G4(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(Q4,{open:!0,onClose:()=>{r||n()},size:"sm",title:p,footer:ct(Yd,{children:[ae($n,{variant:"secondary",onClick:n,disabled:r,children:i("Cancel")}),ae($n,{onClick:s,loading:r,disabled:r,children:i("Restore as draft")})]}),children:ct(qd,{gap:4,children:[o&&e.pages.length>1?ae(e5,{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(Vd,{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(Vd,{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(Vd,{tone:"danger",children:a}):null]})})}function Ace({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(Q4,{open:!0,onClose:()=>{d||o()},size:"sm",title:i("Name this version"),footer:ct(Yd,{children:[ae($n,{variant:"secondary",onClick:o,disabled:d,children:i("Cancel")}),ae($n,{onClick:()=>{h()},loading:d,disabled:d||p,children:i("Save")})]}),children:ae(e5,{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(bce,{id:r,value:s,invalid:!!f,onChange:I=>l(I.target.value),onKeyDown:I=>{I.key==="Enter"&&h()}})})})}function Rce({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(X4,{}),onSelect:r}],...d?[{key:"restore",label:l?i("Put these drafts back"):i("Restore whole website"),icon:ae(Z4,{}),onSelect:a}]:[],...d&&!l&&e.pages.length?[{key:"restore-page",label:i("Restore one page only"),icon:ae(o5,{}),onSelect:n}]:[],...l?[]:[{type:"divider",key:"divider"},{key:"name",label:i("Name this version"),icon:ae(Cce,{}),onSelect:s}]];return ae(yce,{title:ct("span",{className:"sf-version-title",children:[ae("span",{children:$4(e)}),e.live?ae(sC,{tone:"success",size:"xs",children:i("Live")}):null,e.name?ae(sC,{tone:"neutral",size:"xs",children:i("Version {n}",{n:e.number})}):null,l?ae(sC,{tone:"warning",size:"xs",children:i("Not published")}):null]}),expanded:o,onToggle:t,actions:ae(Ice,{align:"end","aria-label":i("More"),items:f,triggerClassName:gce({variant:"ghost",size:"sm"}),trigger:ae(kce,{})}),below:ct(qd,{gap:3,children:[ct(lC,{gap:2,align:"center",wrap:!0,className:"sf-version-meta",children:[ae(hce,{name:e.createdBy,size:"xs"}),ae("span",{children:e.createdBy}),ae("span",{"aria-hidden":"true",children:"\xB7"}),ae("span",{children:K4(e.createdAt)}),c?ct(Yd,{children:[ae("span",{"aria-hidden":"true",children:"\xB7"}),ae("span",{children:Uo("{n} change","{n} changes",c)})]}):null]}),o?ct(qd,{gap:3,children:[c?ae(qd,{gap:2,children:e.changes.map(u=>{let p=Pce[u.kind]??Tce;return ct(lC,{gap:2,align:"center",children:[ae(p,{size:16}),ae("span",{children:j4(u)})]},`${u.kind}:${u.id}`)})}):null,ct(lC,{gap:2,children:[l?null:ae($n,{variant:"secondary",size:"sm",leftIcon:ae(X4,{}),onClick:r,children:i("Preview")}),d?ae($n,{variant:"secondary",size:"sm",leftIcon:ae(Z4,{}),onClick:a,children:i("Restore")}):null]})]}):null]})})}function Lce({open:e,onClose:o,access:t,waiting:r}){let{flushSave:a,reloadFromServer:n,docId:s}=t5(),[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=uce(0),W=fce(()=>{let _=++E.current;f(!1),t.list().then(A=>{_===E.current&&d(A)},()=>{_===E.current&&f(!0)})},[t]);pce(()=>{e&&W()},[e,W]);let O=_=>{H(!1),Oce(t,_.id).catch(()=>H(!0))},D=async()=>{if(!(!h||g)){C(!0),T(null);try{await U4({access:t,version:h.version,page:h.page,flushSave:a,reload:n}),I(null),o()}catch(_){T(_ instanceof jd?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=mce({onPress:()=>{D()},busy:g});return ct(Yd,{children:[ae(xce,{open:e,onClose:o,side:"right",size:"md",title:i("Version history"),description:ct(Yd,{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(qd,{gap:3,children:[P?ae(Vd,{tone:"danger",onDismiss:()=>H(!1),children:i("The preview did not open. Try again.")}):null,c?ae(Vd,{tone:"danger",action:ae($n,{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(wce,{"aria-label":i("Versions"),spacing:"comfortable",children:l.map(_=>ae(Rce,{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:Ece(_,s)})},onName:()=>b(_)},_.id))})]})}),ae(_ce,{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(Ace,{version:y,onCancel:()=>b(null),onSave:async _=>{await t.name(y.id,_),b(null),W()}})]})}function r5(){let{adapter:e,hasUnsavedEdits:o}=t5(),t=e.siteVersions,r=M4(),a=kf();return t?ae(Lce,{open:r,onClose:N4,access:t,waiting:o||a?.state==="changed"}):null}import{useEaselSession as n3}from"efficient-easel/screen/lib/session-context";import{buildPaletteSections as NVe,categoryLabel as MVe,paletteWithoutPinned as HVe,pinnedSection as WVe}from"efficient-easel/screen/lib/document/palette-sections";var Fce={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 a5(e){return K(Fce,e)?.label}var n5=EC;import{currentEaselSession as d5}from"efficient-easel/screen/lib/session";import{blockTypesIn as s5}from"efficient-easel/screen/lib/document/block-types-in";var l5=()=>({}),i5=new Map;function Bce(e){let o=i5.get(e);if(o)return o;let t=new Set,r=K(ur,e);if(r)for(let s of r.seeds(l5))for(let l of s5({type:r.childType,props:s}))t.add(l);let a=yl(e);if(a){let s=0;for(let l of s5(a(l5,d=>`${d}-${s+=1}`)))t.add(l)}t.delete(e);let n=[...t].sort();return i5.set(e,n),n}function Dce(e){if(!e||!e.sets&&!e.allow&&!e.deny?.length)return null;let o=Vy(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=PC(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)&&Bce(d).every(l);return s.set(d,f),f};return{sets:o,offers:l}}var Nce="block-offer";function iC(e=d5()){return e.cache(Nce,()=>Dce(uf(e)))}function c5(e,o=d5()){let t=iC(o);return t?t.offers(e):!0}function Mce(e){let o=eh.Ticker(e.nodeDefaults,e.newNodeId),{sectionBorder:t,...r}=o.props,a=Gb.line?{sectionBorder:t}:{};return{...o,props:{...r,...a,sectionAccent:Gb.sectionAccent}}}var Hce={Hero:{[Ni]:{newChild:Mce,childLabel:ec.Ticker}}},f5=Object.fromEntries(Object.entries(KH).map(([e,o])=>[e,Object.fromEntries(Object.entries(o).map(([t,r])=>[t,{...r,...K(Hce,e)?.[t]}]))]));function p5(e,o=0,t,r){let a=Uce(zce(e,o,r),t),n=a?iC():null;return a&&n?Wce(a,n):a}function Wce(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 Uce(e,o){if(!e||e.source!=="container"||!o||!Dv())return e;let t=hc({data:o.data},o.id),r=typeof t?.type=="string"?Nv(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 zce(e,o,t){let r=t?K(f5,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=OC(e,o);if(n)return{source:"container",slot:n.slot,choices:n.choices,spec:null};let s=uF(e);return s?{source:"footer",slot:pF,choices:s,spec:null}:null}function u5(e,o=Wv(e.type)){return Hv(e.type)?o.map(t=>{let r=Uv(e.type,t);return r===null?{slot:t,label:t,rung:!1}:{slot:t,label:i(r),rung:!0}}):null}import{useSyncExternalStore as $ce}from"react";var dC=null,cC=new Set;function m5(e){if(dC!==e){dC=e;for(let o of cC)o()}}function Gce(e){return cC.add(e),()=>{cC.delete(e)}}function b9e(){return $ce(Gce,()=>dC,()=>null)}function h5(e){return Wl(e)?.ownerId??null}function x5(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 I5="sf-editor-left-view";function g5(){if(typeof window>"u")return"pages";try{let e=window.localStorage.getItem(I5);return e==="sections"||e==="styles"?e:"pages"}catch{return"pages"}}function b5(e){if(!(typeof window>"u"))try{window.localStorage.setItem(I5,e)}catch{}}function y5(e,o){return e==="styles"&&!o?"sections":e}function S5(e,o){return e?"sections":o}import{copyNode as jce}from"efficient-easel/data";function w5(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 C5={usedOn:e=>{let o=Bt(),t=o?.sectionOf(e.props.id)??null;return!o||!t?null:o.usedOn(t)??[]},openPage:e=>zc()?.openPage(e),adopt:(e,o)=>Bt()?.adopt(e.props.id,o),nodeOf:e=>Bt()?.place(e)??null,detach:e=>{let o=zc()?.config;return o?jce(e,o):e},removed:()=>zc()?.reload()};import{sharedSectionsOf as epe}from"efficient-easel/screen/lib/shared-sections";import{scrollPreviewToSection as ope,scrollPreviewToTop as J5}from"efficient-easel/screen/lib/document/preview-dom";import{jsx as uC,Fragment as Ife,jsxs as gfe}from"react/jsx-runtime";import{useContext as bfe,useEffect as yfe,useMemo as xC,useRef as F5}from"react";import{EaselCanvas as Sfe,repeatCopyAt as wfe,useEasel as Cfe}from"efficient-easel/easel";import{jsx as P5,Fragment as Jce,jsxs as Qce}from"react/jsx-runtime";import{useEffect as E5,useLayoutEffect as efe}from"react";var sh="data-theme",v5="light";function Kce(e){return e.getAttribute(sh)===v5?"light":"dark"}function Vce(e,o){return Kce(e)===o?!1:(o==="light"?e.setAttribute(sh,v5):e.removeAttribute(sh),!0)}function qce(e){return ex(e).getItem(Uh)}function _9e(e,o){ex(e).setItem(Uh,o)}function Yce(e,o,t=new Date().getHours()){return Yv({mode:o.mode,override:qce(e),switchShown:o.switchShown,hour:t})}function k5(e,o){let t=e.documentElement;if(!t)return()=>{};let r=()=>Vce(t,Yce(e,o));r();let a=e.defaultView?.MutationObserver;if(!a)return()=>{};let n=new a(r);return n.observe(t,{attributes:!0,attributeFilter:[sh]}),()=>n.disconnect()}var Xce="style";function Zce(e,o){let t=nk(o),r=!1;for(let a of ak){let n=t[a]??"";e.style.getPropertyValue(a)!==n&&(n?e.style.setProperty(a,n):e.style.removeProperty(a),r=!0)}return r}function T5(e,o){let t=e.body;if(!t)return()=>{};let r=()=>Zce(t,o);r();let a=e.defaultView?.MutationObserver;if(!a)return()=>{};let n=new a(r);return n.observe(t,{attributes:!0,attributeFilter:[Xce]}),()=>n.disconnect()}var ofe=`
|
|
340
|
-
[${Gt}][${Gt}] { cursor: text; }
|
|
341
|
-
`;function O5({children:e,document:o}){let{theme:t,themeMode:r,themeSwitchShown:a}=he(),n=xo(t);return E5(()=>{if(o)return k5(o,{mode:r,switchShown:a})},[o,r,a]),E5(()=>{if(o)return T5(o,n)},[o,n]),efe(()=>{if(o)return TF(o)},[o]),Qce(Jce,{children:[P5(eT,{}),P5("style",{children:ofe}),e]})}import{jsx as fC}from"react/jsx-runtime";import{useEffect as tfe,useState as rfe}from"react";import{Banner as afe}from"efficient-shell/ui";var lh={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."},nfe={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."},sfe=lh.load,lfe=lh.lock,ife=lh.conflict,dfe=lh.save;function cfe(e){if(!e)return null;if(e.loadFailed)return i(sfe);if(e.lockHolder)return i(lfe,{name:e.lockHolder.name||i("Somebody else")});if(e.conflict)return i(ife);if(e.saveFailed)return i(dfe);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(nfe[o.problem],{section:t,name:r})}function ffe({report:e}){let o=cfe(rh(e)),[t,r]=rfe(null);return tfe(()=>{o||r(null)},[o]),!o||t===o?null:fC("aside",{className:"sf-canvas-notice",children:fC(afe,{tone:"warning",onDismiss:()=>r(o),children:o})})}function _5(){return fC(ffe,{report:ah()})}import{jsx as ih}from"react/jsx-runtime";import{useState as A5}from"react";import{Banner as pfe,Button as ufe}from"efficient-shell/ui";import{UndoIcon as mfe}from"efficient-shell/icons/efficient";import{useScreenDocument as hfe}from"efficient-easel/screen/components/ScreenDocumentContext";import{useSettledAction as xfe}from"efficient-easel/easel";function R5(){let e=H4(),{adapter:o,flushSave:t,reloadFromServer:r}=hfe(),a=o.siteVersions,[n,s]=A5(!1),[l,d]=A5(!1),c=async()=>{if(!(!a||n)){s(!0),d(!1);try{await z4({access:a,flushSave:t,reload:r})}catch{d(!0)}finally{s(!1)}}},f=xfe({onPress:()=>{c()},busy:n});return e?ih("aside",{className:"sf-canvas-notice",children:ih(pfe,{tone:l?"danger":"info",title:e.title,onDismiss:nh,action:a&&e.undo?ih(ufe,{variant:"secondary",size:"sm",leftIcon:ih(mfe,{}),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 vfe,REPEAT_ATTRIBUTE as mC,REPEAT_INDEX_ATTRIBUTE as hC}from"efficient-easel/draw";import{usePreviewParts as kfe}from"efficient-easel/draw/client";var L5=null;function pC(e){L5=e}function tqe(){return L5}import{ScreenDocumentContext as Tfe}from"efficient-easel/screen/components/ScreenDocumentContext";function B5(e){let{mirrorHostStyles:o}=rx(),t=tT(),{sectionBackgroundWidth:r,themeFromDocument:a}=he(),n=Gk(),s=bfe(Tfe),l=$c(s?.docId??null),d=Cfe(w=>w.appState.data),c=MT(l,d),f=JSON.stringify(c),u=xC(()=>c,[f]),p=xC(()=>({...e.metadata??t??{},...oO(a?null:r,n),...u}),[e.metadata,t,r,n,a,u]);yfe(()=>(pC(n),()=>pC(null)),[n]);let h=F5(null),I=Pfe(h),{onDocument:g}=e,C=w=>{h.current=w,g?.(w)};return gfe(Ife,{children:[uC(R5,{}),uC(_5,{}),uC(Sfe,{...e,onDocument:C,typing:I,metadata:p,height:"fill",mirrorStyles:o,frameWrapper:O5})]})}function Pfe(e){let o=Bc(),t=kfe(),r=F5({parts:t});return r.current={parts:t},xC(()=>{let a=(n,s)=>{let l=yp(n,o),d,c=null,f=s??(l?null:qg(null,e.current,n)),u=!l&&f?wfe(f):null,p=u?vfe(n):null;if(u&&f&&p?.propKey){l=wp({...u,nodeId:p.nodeId,key:p.propKey},o),d=p.propKey;let C=f.closest(`[${mC}][${hC}]`),w=`[${mC}="${Sp(C?.getAttribute(mC)??"")}"][${hC}="${Sp(C?.getAttribute(hC)??"")}"]`;c=()=>(f.ownerDocument??e.current)?.querySelector(w)??null}if(!l)return null;let h=f,I=()=>(h=qg(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?Is(MP(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=>A_(n,o),copyValue:n=>__(n,o),onChange:n=>{if(!n.typing){Yg(null);return}let s=n.element.closest(`[${Gt}]`)?.getAttribute(Gt)??null;Yg(s),s&&r.current.parts.selectedPartId!==s&&r.current.parts.select(s)}}},[o,e])}var Efe=$k.mediaFields,Ofe=/video|poster|focal|phone/i;function _fe(e){return(K(Efe,e)??[]).find(o=>!o.includes("[]")&&!Ofe.test(o))??null}function Afe(e){let o=_fe(e.type);return e.type!==te?o&&mc(e.type,e.props,o)?{fromData:!0}:o:af(e.props)?{fromData:!0}:o}var D5={adds:{kind:"block",type:"ImageBlock"},kinds:["image"],pictureOf:Afe,create:(e,o)=>({type:"ImageBlock",props:{...o.nodeDefaults("ImageBlock"),id:o.newNodeId("ImageBlock"),src:e.url}})};var N5={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 dh}from"react/jsx-runtime";import{useState as Rfe}from"react";import{Button as Lfe,Tooltip as Ffe,toast as M5}from"efficient-shell/ui";import{TemplateIcon as Bfe}from"efficient-easel/icons";import{useSettledAction as Dfe}from"efficient-easel/easel";import{useScreenDocument as Nfe}from"efficient-easel/screen/components/ScreenDocumentContext";function W5({enabled:e,reason:o,onSaved:t}){let{flushSave:r}=Nfe(),[a,n]=Rfe(!1),s=async()=>{if(!a){n(!0);try{await r()?t():M5.error(i(H5))}catch{M5.error(i(H5))}finally{n(!1)}}},l=Dfe({onPress:()=>{s()},busy:a});return dh(Ffe,{side:"bottom",content:e?i("Save this website as a platform template"):i(o),children:dh("span",{className:"sf-tip-disabled",tabIndex:e?void 0:0,children:dh(Lfe,{variant:"secondary",disabled:!e||l.busy,loading:l.busy,onClick:l.onPress,rightIcon:dh(Bfe,{size:15}),children:i("Save as Template")})})})}var H5="Your last changes did not save, so the template was not made. Try again.";var Mfe="Save your page changes first";function U5(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:Mfe}:{visible:!0,enabled:!0}:{visible:!1,hiddenReason:"no-site"}:{visible:!1,hiddenReason:"not-operator"}:{visible:!1,hiddenReason:"no-console"}}var z5="storefront-editor:save-as-template";import{phoneKey as Hfe,tabletKey as Wfe}from"efficient-easel/draw";var Ufe=[Ar.top,Wfe(Ar.top),Hfe(Ar.top)],ch="ContactLocations",$5="ContactRouting",G5="CityPictures",j5="CityMaps",zfe=[{key:G5,label:"City pictures",piece:0,desc:"A wall of city photos, grouped by region. Each photo links to its city's card."},{key:j5,label:"City maps",piece:1,desc:"A card per city, grouped by region: address, phone, hours and a map."}];function K5(e=Pn,o=tw){let t=kC.find(r=>r.sections.some(a=>a.type===$5))?.key;return!e.includes(ch)||!t?[]:zfe.filter(r=>!(o&&r.key===G5)).map(({key:r,label:a,desc:n,piece:s})=>({key:r,label:a,cat:t,after:$5,desc:n,alias:"locations offices stores branches",insert:l=>{let d=ua(ch);if(!d)return null;let c=hl(),f=Ud(ch,d,s)(l.nodeDefaults,l.newNodeId,c);if(!f||!(o&&r===j5))return f;let u=Ud(ch,d,0)(l.nodeDefaults,h=>`${h}-above`,c),p=Object.fromEntries(Ufe.filter(h=>u?.props[h]!==void 0).map(h=>[h,u.props[h]]));return{...f,props:{...f.props,...p}}}}))}function V5(e=Pn,o){return[...K5(e,o)]}function Y5(e,{nodeDefaults:o,newNodeId:t,sectionLabel:r,blockIsOffered:a}){let n=yl(e);if(n)return n(o,t,hl());if(Tv(e)&&a(te)&&a(Qn)){let l=K(kr,e);return{type:te,props:{...o(te),id:t(te),direction:"column",name:`${r(e)} section`,content:[{type:Qn,props:{...o(Qn),id:t(Qn),...l?.headStyle?{headStyle:l.headStyle}:{},...l?.headRowGap?{rowGap:l.headRowGap}:{},...l?.headDescriptionSize?{descriptionSize:l.headDescriptionSize}:{},...fd(e)!==fd(Qn)?{eyebrowLook:fd(e)}:{}}},{type:e,props:{...o(e),id:t(e),headPlacement:"own-box",...q5(e,t)}}]}}}if(K(ur,e)?.fixed===!0)return{type:e,props:{...o(e),id:t(e),layout:"boxes"}};let s=q5(e,t);return Object.keys(s).length?{type:e,props:{...o(e),id:t(e),...s}}:null}function q5(e,o){return e==="Cards"?{template:wv(t=>o(t))}:e===vv?{template:kv(t=>o(t))}:{}}import{useEffect as $fe,useState as Gfe}from"react";import{useEaselSession as jfe}from"efficient-easel/screen/lib/session-context";function X5(){let e=jfe().chrome?.products?.list,[o,t]=Gfe(null);return $fe(()=>{if(!e)return;let r=!1;return e().then(a=>{r||t(a)}),()=>{r=!0}},[e]),o}function s3({mode:e,open:o}){let{setSelectedHeroId:t,setSelectHandler:r}=DA(),a=a3().tree,n=e,s=n.kind==="ticker"?n.heroId:null,l=wl(d=>{d&&(o({kind:"ticker",heroId:d}),ope(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"&&jb(d.props)&&To(t3,{icon:To(In,{type:"ticker",size:13}),name:i(Di),onSelect:()=>l(f),selected:s===f,rowProps:{onClick:c(()=>l(f))},words:a})}}}function l3({mode:e,select:o}){let{setSelectedHeroPart:t,setSelectHandler:r}=ou(),a=a3().tree,{appState:n,config:s}=r3(p=>p),l=Kfe({data:n.data,config:s});l.current={data:n.data,config:s};let d=e,c=hn.find(p=>Mi[p]===d.kind),f=c&&"nodeId"in d?Hi(String(d.nodeId),c):null,u=wl(p=>{let h=zA(p);if(!h)return;let{data:I,config:g}=l.current,C=Jfe(I,g,{kind:"node",id:h.nodeId});if(!C)return;let w={kind:Mi[h.part],nodeId:h.nodeId};o({index:C.index,zone:C.zone},w)},[o]);return mr(()=>{t(f)},[f,t]),mr(()=>{r(u)},[r,u]),{partRows:(p,{rowClick:h})=>{let I=String(p.props.id),g=UA(p);if(g.length===0)return null;let C=y=>{let b=Hi(I,y.part);return To(t3,{icon:To(In,{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 Xd(o3,{children:[C(w),T.length>0&&To(Zfe,{children:T.map(C)})]})}}}function i3(e,o){return{partRows:(t,r)=>Xd(o3,{children:[e.partRows?.(t,r),o.partRows?.(t,r)]})}}function tpe(e){let{adapter:o,capabilities:t,currentSlug:r,siteId:a,docId:n,hasUnsavedEdits:s,bridgeCapabilities:l,notifyParent:d,token:c}=fh(),{hasPreviewLink:f}=t,u=to(n3()).preview?.draftLink,p=Y4(e.data),h=U5({hasTrustedConsole:!!c,canCreatePlatformTemplate:l.canCreatePlatformTemplate,capabilities:t,siteId:a,hasUnsavedEdits:s}),I=wl(()=>{!a||!r||d(z5,{siteId:a,slug:r})},[d,a,r]),g=P4({pageSlug:r,siteId:a,token:c}),C=o.previewHref?.(r)??g;return{barLead:()=>h.visible&&To(W5,{enabled:h.enabled,reason:h.enabled?"":h.disabledReason,onSaved:I}),barView:()=>f&&r&&To(_4,{liveHref:C,pageId:n??null,draftLink:u}),mainAction:p}}function rpe(e,o){let{capabilities:t,templateId:r,siteId:a,tokenRef:n,navigate:s}=fh(),{hasSiteTheme:l,explainsSiteSettings:d}=t,c=y=>o.setView(y),[f,u]=Z5(zs[0].id),[p,h]=Z5(!1),{surface:I,setSurface:g}=BA(),C=()=>{if(l){c("styles"),o.reveal(),J5();return}e.show(Rw),e.reveal(),J5()},w={id:"pages",label:i("Pages"),icon:To(qfe,{}),panel:({onHide:y})=>To(kA,{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(Xfe,{}),active:e.kind==="website",onSelect:C}),l&&T.push({id:"styles",label:i("Styles"),icon:To(Yfe,{}),panel:({onHide:y,notify:b})=>To(vM,{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=>y5(y,l),openSettings:C,openStyles:()=>{u(iA),c("styles")},openPageStyles:l?()=>{u(Gs),h(!0),c("styles"),o.reveal()}:d?()=>{e.show(pM),e.reveal()}:void 0}}function ape(){let{navigate:e,siteId:o,reloadFromServer:t,docId:r}=fh(),a=r3(s=>s.config),n=n3();mr(()=>(gx({openPage:s=>e({kind:"page",slug:s.slug,siteId:o??void 0}),reload:()=>{t()},config:a}),()=>gx(null)),[e,o,t,a]),mr(()=>{let s=Bt();if(!s||!r)return;let l=!1;return epe(n).list().then(d=>{l||s.learn(d)}).catch(()=>{}),()=>{l=!0}},[r,n])}function d3(){let e=Bc();return wl(o=>{R_(o,e)},[e])}function npe(e,o,t,r){let{kind:a,open:n}=e,{selected:s,zoneOf:l}=o;mr(()=>{m5(s?.type==="BookingBox"&&s.props.region==="confirm"?h5(l(String(s.props.id))):null)},[s?.props.id]);let d=jM(e,o),{capabilities:{hasSiteSettings:c}}=fh();ape();let{chat:f,setChat:u,setSelected:p,setSelectHandler:h}=eu(),I=wl(()=>n(uM),[n]),g=a==="chat";mr(()=>{p(g)},[g,p]),mr(()=>{h(I)},[h,I]);let{setOpenHandler:C}=Bi(),w=wl(()=>n(mM),[n]);mr(()=>{C(w)},[C,w]);let T=i3(s3(e),l3(e)),y=tpe(o),b=rpe(e,r),P=t.device,H=d3();return{...T,...y,...b,hasOwnRows:E=>E.type===jm,ownRows:d.renderLocationTree,sectionPressed:d.sectionPressed,onCopyItem:H,wrap:E=>To(ax.Provider,{value:!0,children:Xd(Qfe.Provider,{value:P,children:[E,To(r5,{})]})}),addPanelRow:E=>c?Xd("div",{className:"sf-addside-sitewide",children:[To("span",{className:"sf-addside-sitewide-glyph","aria-hidden":"true",children:To(In,{type:"chat",size:16})}),Xd("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(Vfe,{checked:f.enabled,onChange:W=>u({enabled:W}),ariaLabel:i("Show the chat bubble on the whole site")})]}):void 0}}var Q5=null,IC=new WeakMap;function spe(e){let o=Jk();if(!e||!o)return e;Q5!==o&&(Q5=o,IC=new WeakMap);let t=IC.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},IC.set(e,t)),t}var lpe={isLockedBlock:(e,o)=>bu(e,o)||!!(o&&Bt()?.heldElsewhere(o.props.id)),duplicateBlocked:$u,nestDepth:(e,o,t)=>o===wk?kk(e,t):0,newSectionNode:Y5,canAddTo:(e,o,t,r)=>spe(p5(e,o,r,t)),blockIsOffered:c5,slotsOf:u5,resolveOnInsert:!0},ipe=new Proxy(N5,{get:(e,o)=>{let t=Reflect.get(e,o);return typeof t=="string"?i(t):t}}),dpe={labelAtLevel:(e,o,t)=>i(uh(e,o,t)),descriptions:ipe,categoryLabel:e=>{let o=a5(e);return o===void 0?void 0:i(o)},firstSection:n5,blockRowName:x5,rowName:yu,plainText:yr,Icon:In,Thumbnail:wM,useProducts:X5,presets:V5()},cpe={desktop:2e3,tablet:800,mobile:390},e3="desktop",fpe={options:AA,initial:e3,fluid:e3,widths:cpe,hidesPerView:!0},ppe={read:g5,write:e=>b5(e),forSelection:(e,o)=>S5(e,o)},upe={first:Jo,last:Xe,firstGroup:Ye,lastGroup:Ue,isSectionGroup:fs,sectionGroupZone:bT,panelOf:e=>e===Jo?fM:null,get sharedReach(){return wn()?hpe:void 0},get shared(){return Bt()?C5:void 0},get groupTab(){return wn()?mF:void 0},get groupBadge(){return wn()?tS({type:Ue})??void 0:void 0},get changeNotice(){return wn()?hF():void 0},get band(){return wn()?mpe:void 0},get groupAccepts(){return wn()?wT:void 0}},mpe={foldable:!0},hpe=e=>tS(e)??w5(e);function xpe(e){return{...i3(s3(e),l3(e)),onCopyItem:d3(),openSettings:()=>e.show(Rw)}}function Ipe(e,o){o4(e,o),w4()}var vXe={useOwnerName:js,useDocumentLabel:uA,useBridges:npe,useStandaloneBridges:xpe,useDocumentPass:Ipe,blockRules:lpe,blockLook:dpe,devices:fpe,leftView:ppe,pinned:upe,Canvas:B5,canvasDrag:{media:D5},Inspector:xM};export{Vy as a,to as b,uf as c,ju as d,a2e as e,cr as f,fr as g,go as h,h2e as i,aS as j,QAe as k,su as l,$i as m,Gi as n,sR as o,eRe as p,lu as q,oRe as r,_Z as s,lR as t,tRe as u,dR as v,t4 as w,t7e as x,ype as y,de as z,i as A,Uo as B,r4 as C,n7e as D,uo as E,L$ as F,PI as G,tye as H,dE as I,nye as J,nt as K,EI as L,lye as M,iye as N,dye as O,Rf as P,cye as Q,Lf as R,fye as S,pye as T,pE as U,uE as V,U$ as W,z$ as X,xye as Y,gye as Z,bye as _,yye as $,Sye as aa,QE as ba,Qa as ca,nj as da,OSe as ea,sj as fa,_Se as ga,io as ha,ASe as ia,lj as ja,RSe as ka,LSe as la,FSe as ma,BSe as na,DSe as oa,NSe as pa,Ps as qa,MSe as ra,Lx as sa,Bx as ta,dP as ua,Dx as va,L6 as wa,Tme as xa,Xc as ya,xP as za,F6 as Aa,B6 as Ba,D6 as Ca,Ome as Da,_me as Ea,Ame as Fa,Rme as Ga,Lme as Ha,Fme as Ia,k2e as Ja,T2e as Ka,P2e as La,E2e as Ma,O2e as Na,_2e as Oa,A2e as Pa,R2e as Qa,Ma as Ra,Nl as Sa,dT as Ta,cT as Ua,W3 as Va,Kpe as Wa,ix as Xa,UJ as Ya,FR as Za,BR as _a,DR as $a,NR as ab,Xs as bb,xu as cb,ILe as db,Yye as eb,Rr as fb,RG as gb,li as hb,ii as ib,Xye as jb,Zye as kb,UI as lb,FE as mb,Jye as nb,tr as ob,wue as pb,Wa as qb,aSe as rb,nSe as sb,sSe as tb,lSe as ub,ai as vb,mG as wb,xE as xb,AI as yb,sr as zb,Oye as Ab,Ar as Bb,RI as Cb,LI as Db,_ye as Eb,Aye as Fb,DF as Gb,MP as Hb,zhe as Ib,$he as Jb,ra as Kb,kW as Lb,Ghe as Mb,jhe as Nb,Gx as Ob,Khe as Pb,Vhe as Qb,qhe as Rb,WP as Sb,UP as Tb,Yhe as Ub,Yl as Vb,jx as Wb,Xhe as Xb,Zhe as Yb,Jhe as Zb,Qhe as _b,NF as $b,En as ac,D2e as bc,N2e as cc,M2e as dc,MF as ec,H2e as fc,HF as gc,Xu as hc,GF as ic,J2e as jc,Q2e as kc,pi as lc,lr as mc,ff as nc,KP as oc,Xl as pc,rxe as qc,axe as rc,vo as sc,An as tc,Z as uc,al as vc,re as wc,Q as xc,se as yc,le as zc,ue as Ac,_Me as Bc,me as Cc,sl as Dc,ll as Ec,dd as Fc,cd as Gc,qF as Hc,FMe as Ic,gre as Jc,YF as Kc,NMe as Lc,MMe as Mc,XF as Nc,bre as Oc,ZF as Pc,yre as Qc,fd as Rc,JF as Sc,zMe as Tc,fS as Uc,jMe as Vc,KMe as Wc,VMe as Xc,qMe as Yc,YMe as Zc,XMe as _c,Qc as $c,QMe as ad,om as bd,pd as cd,eHe as dd,oHe as ed,eB as fd,tHe as gd,kre as hd,Tre as id,rHe as jd,Pre as kd,aHe as ld,oB as md,dHe as nd,cHe as od,fHe as pd,pHe as qd,uHe as rd,mHe as sd,_re as td,Are as ud,hHe as vd,xHe as wd,IHe as xd,gHe as yd,bHe as zd,yHe as Ad,SHe as Bd,wHe as Cd,CHe as Dd,am as Ed,nB as Fd,zre as Gd,_He as Hd,AHe as Id,sm as Jd,uS as Kd,iB as Ld,lm as Md,DHe as Nd,$re as Od,Gre as Pd,jre as Qd,NHe as Rd,ot as Sd,Fn as Td,fl as Ud,y4e as Vd,S4e as Wd,w4e as Xd,qB as Yd,YB as Zd,Eae as _d,W4e as $d,XB as ae,ZB as be,JB as ce,$4e as de,f$ as ee,Mt as fe,gbe as ge,bbe as he,ybe as ie,Sbe as je,Ef as ke,wbe as le,Uf as me,ci as ne,cSe as oe,fSe as pe,pSe as qe,zE as re,$E as se,GE as te,uSe as ue,Ye as ve,Ue as we,mx as xe,nue as ye,fs as ze,yT as Ae,Hc as Be,IF as Ce,l5e as De,i5e as Ee,iD as Fe,d5e as Ge,c5e as He,Ls as Ie,Jl as Je,Fg as Ke,Ng as Le,hp as Me,Gt as Ne,Rke as Oe,Lke as Pe,Fke as Qe,Bke as Re,m7 as Se,h7 as Te,Dke as Ue,Fs as Ve,Hg as We,Nke as Xe,Mke as Ye,Lp as Ze,Pi as _e,fb as $e,Ms as af,cn as bf,y0e as cf,Ei as df,g1 as ef,S0e as ff,yb as gf,w0e as hf,C0e as if,v0e as jf,w9 as kf,k0e as lf,T9 as mf,P9 as nf,T0e as of,P0e as pf,O9 as qf,gD as rf,LS as sf,qi as tf,EL as uf,OL as vf,Yi as wf,dL as xf,Hy as yf,zFe as zf,Cn as Af,Uy as Bf,pL as Cf,uL as Df,zy as Ef,wee as Ff,mL as Gf,vu as Hf,hL as If,U5e as Jf,CD as Kf,z5e as Lf,$5e as Mf,G5e as Nf,Pd as Of,wm as Pf,Z5e as Qf,e3e as Rf,u3e as Sf,HS as Tf,m3e as Uf,_D as Vf,AD as Wf,Hr as Xf,k3e as Yf,LD as Zf,T3e as _f,BD as $f,ao as ag,Ge as bg,vm as cg,MD as dg,L3e as eg,km as fg,HD as gg,M3e as hg,e6e as ig,XD as jg,XS as kg,ZD as lg,r6e as mg,a6e as ng,n6e as og,ZS as pg,s6e as qg,l6e as rg,JD as sg,_m as tg,Kne as ug,Am as vg,V6e as wg,sw as xg,Xne as yg,lw as zg,ase as Ag,iWe as Bg,EN as Cg,ON as Dg,dWe as Eg,cWe as Fg,Ug as Gg,Kke as Hg,zg as Ig,x_ as Jg,wWe as Kg,UN as Lg,zN as Mg,UWe as Ng,JWe as Og,QWe as Pg,eUe as Qg,Sw as Rg,vSe as Sg,QI as Tg,eg as Ug,og as Vg,rUe as Wg,yse as Xg,Sse as Yg,XN as Zg,aUe as _g,nUe as $g,AUe as ah,g2 as bh,RUe as ch,b2 as dh,FUe as eh,P2 as fh,E2 as gh,ele as hh,R2 as ih,XUe as jh,Bm as kh,nze as lh,Od as mh,ize as nh,M2 as oh,cze as ph,H2 as qh,W2 as rh,uze as sh,vw as th,nle as uh,xze as vh,sle as wh,Ize as xh,gze as yh,Dm as zh,G2 as Ah,wze as Bh,Cze as Ch,vze as Dh,kze as Eh,Wr as Fh,_ze as Gh,Nm as Hh,Fze as Ih,oM as Jh,Da as Kh,ds as Lh,B3 as Mh,fje as Nh,pje as Oh,Gw as Ph,uje as Qh,f0 as Rh,J1 as Sh,OEe as Th,_Ee as Uh,cq as Vh,AEe as Wh,REe as Xh,LEe as Yh,FEe as Zh,fq as _h,BEe as $h,DEe as ai,NEe as bi,MEe as ci,hq as di,HEe as ei,Tie as fi,rH as gi,gje as hi,Nd as ii,sH as ji,Qr as ki,Uue as li,m6 as mi,Tx as ni,Gl as oi,zue as pi,jue as qi,x6 as ri,XT as si,Kue as ti,Ua as ui,S6 as vi,Jue as wi,Que as xi,jl as yi,eme as zi,ome as Ai,Ax as Bi,oP as Ci,dme as Di,xn as Ei,Q_e as Fi,e1e as Gi,o1e as Hi,t1e as Ii,sX as Ji,r1e as Ki,Hi as Li,zA as Mi,$A as Ni,$je as Oi,qw as Pi,pH as Qi,uH as Ri,jw as Si,Fie as Ti,Gje as Ui,Km as Vi,Md as Wi,qm as Xi,jje as Yi,Kje as Zi,Vje as _i,Vm as $i,qje as aj,Yje as bj,U3 as cj,zo as dj,qpe as ej,z3 as fj,$3 as gj,Zpe as hj,G3 as ij,j3 as jj,Jpe as kj,Qpe as lj,eue as mj,oue as nj,xH as oj,Hd as pj,Wd as qj,Xm as rj,gH as sj,gl as tj,bH as uj,Zm as vj,Jm as wj,Qm as xj,yH as yj,SH as zj,wH as Aj,CH as Bj,vH as Cj,PH as Dj,EH as Ej,vKe as Fj,kKe as Gj,TKe as Hj,PKe as Ij,Nt as Jj,ode as Kj,FH as Lj,rde as Mj,DH as Nj,NH as Oj,HH as Pj,ude as Qj,o8e as Rj,MA as Sj,K_e as Tj,u8e as Uj,m8e as Vj,Dce as Wj,NG as Xj,vs as Yj,eSe as Zj,Pue as _j,tqe as $j,FBe as ak,PL as bk,Di as ck,W_e as dk,DA as ek,U_e as fk,z_e as gk,$_e as hk,WGe as ik,kM as jk,TM as kk,PM as lk,tO as mk,en as nk,Oo as ok,st as pk,mi as qk,Es as rk,qSe as sk,YSe as tk,ZSe as uk,JSe as vk,QSe as wk,ewe as xk,owe as yk,rwe as zk,Vf as Ak,hi as Bk,aO as Ck,ag as Dk,Sj as Ek,nO as Fk,sg as Gk,hme as Hk,sP as Ik,wme as Jk,Jc as Kk,ef as Lk,ql as Mk,SP as Nk,Gme as Ok,jme as Pk,PP as Qk,Hx as Rk,wW as Sk,Ahe as Tk,lxe as Uk,mxe as Vk,hxe as Wk,YW as Xk,Yo as Yk,Zl as Zk,rI as _k,aI as $k,aIe as al,l0 as bl,nIe as cl,sIe as dl,lIe as el,u0 as fl,h0 as gl,Or as hl,C0 as il,Fz as jl,Tge as kl,R0 as ll,Lge as ml,F0 as nl,M0 as ol,H0 as pl,W0 as ql,U0 as rl,z0 as sl,$0 as tl,bI as ul,Qz as vl,e$ as wl,ti as xl,yI as yl,j0 as zl,obe as Al,t$ as Bl,tbe as Cl,rbe as Dl,abe as El,V0 as Fl,ibe as Gl,n$ as Hl,dbe as Il,cbe as Jl,l$ as Kl,SI as Ll,d$ as Ml,mbe as Nl,c$ as Ol,hbe as Pl,vI as Ql,_be as Rl,J0 as Sl,h$ as Tl,Rbe as Ul,ri as Vl,O$ as Wl,Jbe as Xl,wG as Yl,Wye as Zl,vG as _l,Uye as $l,zye as am,$ye as bm,Ts as cm,Gf as dm,bSe as em,ySe as fm,SSe as gm,wj as hm,Cj as im,swe as jm,Pj as km,Ej as lm,lwe as mm,iwe as nm,dwe as om,cwe as pm,fwe as qm,gwe as rm,bwe as sm,ywe as tm,Swe as um,wwe as vm,Cwe as wm,vwe as xm,kwe as ym,Twe as zm,Pwe as Am,Ewe as Bm,sO as Cm,Owe as Dm,_we as Em,ca as Fm,Nj as Gm,fa as Hm,rn as Im,hve as Jm,xve as Km,Ive as Lm,gve as Mm,bve as Nm,yve as Om,Sve as Pm,kve as Qm,Tve as Rm,$K as Sm,Pve as Tm,Eve as Um,Ove as Vm,_ve as Wm,Ave as Xm,Rve as Ym,Lve as Zm,Fve as _m,VK as $m,Bve as an,kg as bn,Dve as cn,ap as dn,np as en,Zo as fn,Ut as gn,WO as hn,aa as in,UO as jn,zO as kn,sp as ln,Nve as mn,Mve as nn,b8 as on,Hve as pn,Wve as qn,Uve as rn,zve as sn,$ve as tn,Gve as un,Po as vn,jve as wn,Kve as xn,Jf as yn,lp as zn,ip as An,Eg as Bn,cp as Cn,Vve as Dn,YO as En,qve as Fn,z8 as Gn,Yve as Hn,Xve as In,JO as Jn,Zve as Kn,Jve as Ln,Qve as Mn,eke as Nn,oke as On,rke as Pn,Rg as Qn,ake as Rn,e_ as Sn,nke as Tn,ske as Un,As as Vn,t_ as Wn,lke as Xn,ike as Yn,dke as Zn,cke as _n,zLe as $n,$Le as ao,GLe as bo,yu as co,tL as do,Fy as eo,fFe as fo,pFe as go,lL as ho,bt as io,cu as jo,IJ as ko,gJ as lo,FRe as mo,BRe as no,DRe as oo,NRe as po,CR as qo,WRe as ro,URe as so,zRe as to,NV as uo,o1 as vo,t1 as wo,Jp as xo,TA as yo,PA as zo,OA as Ao,Qp as Bo,w_e as Co,C_e as Do,eu as Eo,ZY as Fo,L_e as Go,Bi as Ho,N_e as Io,BA as Jo,cs as Ko,M3 as Lo,$pe as Mo,Gpe as No,gNe as Oo,bNe as Po,yNe as Qo,b8e as Ro,Y_e as So,ou as To,Ape as Uo,g7 as Vo,rTe as Wo,aTe as Xo,y_ as Yo,nTe as Zo,sTe as _o,rb as $o,T1 as ap,U0e as bp,z0e as cp,$0e as dp,G0e as ep,Z1 as fp,XEe as gp,ZEe as hp,jA as ip,WAe as jp,JA as kp,Zi as lp,doe as mp,XBe as np,aDe as op,Ou as pp,Xe as qp,zu as rp,Xt as sp,_M as tp,Ld as up,AM as vp,RM as wp,jGe as xp,KGe as yp,C4 as zp,aC as Ap,v4 as Bp,p5 as Cp,b9e as Dp,sh as Ep,Kce as Fp,Vce as Gp,_9e as Hp,vpe as Ip,Epe as Jp,vXe as Kp};
|