efficient-storefront-blocks 0.113.0 → 0.114.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.
Files changed (48) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/dist/chunks/{EditorPreviewCheckout-QJWDGMO7.js → EditorPreviewCheckout-KJ7WBAJJ.js} +4 -4
  3. package/dist/chunks/{SiteEditorProvider-6V6EJFTL.js → SiteEditorProvider-RH2SMNYG.js} +1 -1
  4. package/dist/chunks/chunk-H7576DO5.js +1 -0
  5. package/dist/chunks/chunk-P3DTJ3CI.js +1 -0
  6. package/dist/chunks/{chunk-7ZIXVUD7.js → chunk-WWVWTSGF.js} +2 -2
  7. package/dist/chunks/{fitment-data-7BV7JBDK.js → fitment-data-RALB36SU.js} +1 -1
  8. package/dist/contract.js +3 -3
  9. package/dist/editor/components/PostListStartsFromPage.d.ts +4 -0
  10. package/dist/editor/components/PostListStartsFromPage.js +1 -0
  11. package/dist/editor/lib/document/blocks/service/Events/fields.js +1 -1
  12. package/dist/editor/lib/document/config.js +1 -1
  13. package/dist/editor/lib/storefront-editor-words.d.ts +2 -0
  14. package/dist/editor/lib/storefront-editor-words.js +1 -1
  15. package/dist/index.js +30 -30
  16. package/dist/links.js +1 -1
  17. package/dist/render/components/ConsentProvider.js +1 -1
  18. package/dist/render/components/Events.d.ts +5 -2
  19. package/dist/render/components/Events.js +1 -1
  20. package/dist/render/components/PostListStartsProvider.d.ts +21 -0
  21. package/dist/render/components/PostListStartsProvider.js +1 -0
  22. package/dist/render/components/PublishedFooter.js +1 -1
  23. package/dist/render/components/PublishedHeader.js +1 -1
  24. package/dist/render/components/SignUpSection.js +1 -1
  25. package/dist/render/components/booking/BookingFormState.d.ts +4 -0
  26. package/dist/render/components/booking/BookingFormState.js +1 -1
  27. package/dist/render/components/booking/BookingRegions.js +1 -1
  28. package/dist/render/components/checkout/CheckoutPageClient.js +1 -1
  29. package/dist/render/lib/booking/appointment-time.d.ts +5 -1
  30. package/dist/render/lib/booking/appointment-time.js +1 -1
  31. package/dist/render/lib/content/post-list-continue.d.ts +19 -0
  32. package/dist/render/lib/content/post-list-continue.js +1 -0
  33. package/dist/render/lib/document/blocks/service/Events/meta.js +1 -1
  34. package/dist/render/lib/document/blocks/service/Events/render.js +1 -1
  35. package/dist/render/lib/document/render-client.js +1 -1
  36. package/dist/render/lib/sections/sign-up.d.ts +1 -1
  37. package/dist/render/lib/sections/sign-up.js +1 -1
  38. package/dist/render/lib/zone.js +1 -1
  39. package/dist/words.d.ts +2 -0
  40. package/dist/words.js +1 -1
  41. package/package.json +2 -2
  42. package/dist/chunks/chunk-IY3JZXIQ.js +0 -1
  43. package/dist/chunks/chunk-TNITUVMH.js +0 -1
  44. package/dist/render/lib/reader-zone.d.ts +0 -1
  45. package/dist/render/lib/reader-zone.js +0 -1
  46. /package/dist/chunks/{chunk-7UBABYIY.js → chunk-25XGYFU3.js} +0 -0
  47. /package/dist/chunks/{chunk-37WWMI27.js → chunk-ISCYSRBG.js} +0 -0
  48. /package/dist/chunks/{chunk-7ZIXVUD7.js.LEGAL.txt → chunk-WWVWTSGF.js.LEGAL.txt} +0 -0
@@ -1,4 +1,4 @@
1
- import{$ as Pa,$a as Ea,$c as Th,$e as Vo,$f as dk,$g as gc,Ac as pv,Ad as Cv,Ae as Uv,Af as Wo,Ah as Ek,B as wC,Ba as fh,Bc as vh,Bd as lc,Be as cc,Bf as Vr,Bg as Ik,Bh as Ok,Bi as Pc,Ca as DC,Cb as io,Cd as Vn,Cf as ak,Cg as zh,Ci as zk,Da as NC,Db as av,Dd as _h,De as We,Df as nk,Dg as gk,Dh as _k,Di as $k,E as qd,Ea as so,Eb as nv,Ed as Tl,Ee as ke,Ef as Jt,Eg as $h,F as CC,Fa as MC,Fe as zv,Ff as Jn,Fg as bk,Fh as es,G as vC,Ga as HC,Gb as sv,Gc as G,Ge as qn,Gg as yk,Gh as Ak,H as Sl,Ha as WC,Hc as ne,Hd as vv,He as $v,Hg as Sk,Hh as bc,I as sh,Ia as UC,Ib as gh,Ic as kh,Id as kv,Ie as fc,If as sk,Ig as mc,Ih as Rk,J as He,Ja as zC,Jc as L,Jd as Tv,Je as Aa,Jf as Hh,K as te,Ka as $C,Kc as Do,Ke as Gv,Kg as wk,La as GC,Lc as Cr,Ma as jC,Mc as uv,Md as Pv,Mf as lk,Mh as Vh,N as kC,Na as KC,Nc as U,Ne as Kr,Nf as Wh,Ng as Gh,O as $r,Oa as VC,Oc as nc,Od as No,Oe as Bh,Og as Tr,P as Hn,Pa as Jd,Pc as Ko,Pd as Ft,Pg as hc,Q as TC,Qa as Qd,Qc as mv,Qg as qo,R as br,Ra as qC,Rb as bh,Rc as Lt,Rg as we,Rh as Lk,S as lh,Sa as YC,Sc as Gn,Sd as Ev,Sg as xc,Sh as yc,T as Wn,Tb as lv,Tc as jr,Td as Ah,Tg as Ck,Ua as XC,Uc as vr,Ue as jv,Ug as Ol,Va as ZC,Ve as Kv,Vg as tt,Wa as ph,Wc as qe,We as Dh,Wg as _l,X as wl,Xc as hv,Xd as Ov,Xe as xo,Xf as Ra,Xg as Ic,Ya as JC,Yd as _v,Ye as Vv,Yg as Qn,Yh as Sc,Z as PC,Za as uh,Zc as xv,Zd as Av,Ze as qv,Zf as ik,Zg as jh,_ as EC,_a as zn,_b as Oa,_c as Iv,_d as Rv,_e as Yn,a as Vd,ab as mh,ac as yh,ad as gv,ae as Lv,b as Se,bb as hh,bc as Sh,bf as Xn,bg as ck,bi as os,c as So,ca as OC,cb as xh,ce as Fv,cf as Zn,cg as fk,d as gr,da as Yd,db as QC,dc as rc,de as Bv,dg as pk,ea as _C,eb as ev,ed as bv,eg as uk,f as Rt,fa as Xd,fb as ov,fd as yv,fe as Dv,ff as Yv,fi as qr,g as yl,ga as AC,gb as Ih,gg as Qt,ha as RC,hb as tv,hd as Ph,hg as mk,hi as Yr,i as xC,ia as LC,ib as Gr,ic as wh,if as El,ii as wc,ja as Cl,jc as ac,jd as Eh,je as Nv,k as IC,ka as yr,kc as iv,kd as Oh,kf as Xv,kg as hk,kh as Kh,ki as Fk,la as FC,lb as vl,lc as dv,le as Zt,lf as Nh,lg as er,mc as cv,md as _a,me as Pl,mg as Uh,n as gC,na as q,nb as $n,nc as Ch,nd as jn,ne as Rh,oa as Zd,ob as wr,oc as fv,od as oo,oe as Mv,of as pc,oi as Bk,pb as ec,pf as Zv,pg as xk,qd as kl,qf as Jv,qi as Dk,r as bC,ra as pt,rd as kr,re as ic,rf as Qv,sa as Sr,sd as Kn,se as Hv,sf as uc,t as Xt,ta as Un,td as Sv,te as Lh,tf as ek,ua as ih,ub as rv,ud as wv,uf as ok,ui as he,va as BC,vh as vk,w as K,wa as dh,we as dc,wf as tk,wh as kk,x as $e,xa as ch,xb as oc,xe as Wv,xf as Mh,xh as Tk,y as yC,ye as Fh,yi as Wk,z as SC,zb as tc,zd as sc,zf as rk,zh as Pk,zi as Uk}from"./chunk-7UBABYIY.js";import{c as Nk,d as Cc,e as vc,i as Mk,j as ut,k as kc,l as Tc,m as Hk,q as qh}from"./chunk-37WWMI27.js";var jk="en",Ec=null,Kk=jk,Vk=null;function rpe(e,o,t){Ec=e??null,Kk=o||jk,Vk=t??null}function de(){return Vk}function Yh(){return Kk}function qk(){return Ec}function Gk(e,o){return o?e.replace(/\{([A-Za-z][A-Za-z0-9_]*)\}/g,(t,r)=>$e(o,r)?String(K(o,r)):t):e}function i(e,o){let t=Ec?K(Ec,e):void 0;if(typeof t=="function"){try{let r=Se(t(o??{}));if(r)return r}catch{}return Gk(e,o)}return Gk(Se(t)??e,o)}function Uo(e,o,t,r){return i(t===1?e:o,{...r,n:t})}import{jsx as Xh,Fragment as d3,jsxs as c3}from"react/jsx-runtime";import{createContext as f3,useContext as p3}from"react";var u3={mirrorHostStyles:!0,css:null,fontHrefs:[]},Yk=f3(u3);function lpe({value:e,children:o}){return Xh(Yk.Provider,{value:e,children:o})}function Zh(){return p3(Yk)}function Xk(){let{css:e,fontHrefs:o}=Zh();return c3(d3,{children:[o.map(t=>Xh("link",{rel:"stylesheet",href:t},t)),e?Xh("style",{"data-sf-canvas-css":"",children:e}):null]})}import{jsx as m3}from"react/jsx-runtime";import{createContext as h3,useContext as x3}from"react";var Zk=h3(void 0);function fpe({metadata:e,children:o}){return m3(Zk.Provider,{value:e,children:o})}var Jk=()=>x3(Zk);import{jsx as To,Fragment as G5,jsxs as Gd}from"react/jsx-runtime";import{useCallback as Il,useEffect as mr,useRef as _fe,useState as W5}from"react";import{SettingsSwitch as Afe}from"efficient-easel/panel";import{PagesIcon as Rfe,StylesIcon as Lfe}from"efficient-easel/rail";import{PaletteIcon as Ffe}from"efficient-shell/icons/efficient";import{Subtree as Bfe,TreeRow as j5}from"efficient-easel/tree";import{useEasel as K5}from"efficient-easel/easel";import{useEaselStrings as V5}from"efficient-easel/strings";import{createContext as I3,useContext as g3}from"react";var Jh=I3(!1),mpe=()=>g3(Jh);import{useMemo as b3,useRef as y3}from"react";import{useEaselApi as S3}from"efficient-easel/easel";import{useSectionOps as w3}from"efficient-easel/screen/lib/document/use-section-ops";function Oc(){let e=S3(),o=w3(),t=y3(o);return t.current=o,b3(()=>({getItemById:r=>e.getState().getItemById(r),getSelectorForId:r=>e.getState().getSelectorForId(r),get components(){return e.getState().config.components},replace:(r,a,n)=>t.current.replaceComponent(r,a,n)}),[e])}import{encodePartId as x7}from"efficient-easel/draw";import{insertAt as I7,moveTo as g7,removeAt as b7}from"efficient-easel/fields";import{useSyncExternalStore as d7}from"react";import{isNodeList as ex}from"efficient-easel/data";import{isNodeList as C3}from"efficient-easel/data";function ts(e,o){let t=null;return e.forEach((r,a)=>{let n=o(r,a);n!==r&&((t??=e.slice())[a]=n)}),t??e}function rs(e,o){let t=null;for(let[r,a]of Object.entries(e.props??{})){if(!C3(a))continue;let n=o(a,r);n!==a&&((t??={...e.props})[r]=n)}return t?{...e,props:t}:e}function Spe(e,o){let t=e;if(!t||!Array.isArray(t.content))return e;let r=o(t.content);return r===t.content?e:{...t,content:r}}var Qk="Flex";function as(e,o){return Zt(e)?typeof e?.[Rt]=="string"?Qh(o?.[Rt]):"":Qh(e?.[Rt])}var Qh=e=>typeof e=="string"?e.trim():"",v3=e=>e.type===Ft&&Array.isArray(e.props?.[Ah])&&e.props[Ah].some(o=>Qh(o?.[Rt])!==""),k3=new Intl.NumberFormat("en-US");function T3(e){return/^\d+$/.test(e)?k3.format(Number(e)):e}function Ppe(e,o){let t=o?o.find(r=>r.key===e)?.value:bC(yl).find(r=>r.key===e)?.value;return t===void 0?null:T3(t)}var P3={[Rt]:"any"};function ox(e,o=!1){let t=e.props;if(!t)return{node:e,names:!1};let r=e.type==="Text"&&(as(t)!==""||o&&as(t,P3)!==""),a=o||v3(e),n=rs(e,l=>ts(l,d=>{let c=ox(d,a);return c.names&&(r=!0),c.node})).props;if(e.type!==Qk)return{node:n===t?e:{...e,props:n},names:r};let s=Xt(n);if(r&&!s&&(n={...n,[So]:yl}),!r&&s===yl){let{[So]:l,...d}=n;n=d}return{node:n===t?e:{...e,props:n},names:!1}}function eT(e,o,t){for(let r of e){if(r?.props?.id===o)return t;for(let a of Object.values(r?.props??{})){if(!ex(a))continue;let n=eT(a,o,r.type===Qk?r:t);if(n!==void 0)return n}}}function Epe(e,o){if(!ex(e))return!0;let t=eT(e,o,null);if(t===void 0)return!0;if(t===null)return!1;let r=Xt(t.props);return!r||r===yl}function oT(e){let o=e?.content;if(!ex(o))return e;let t=o.map(r=>ox(r));return t.every((r,a)=>r.node===o[a])?e:{...e,content:t.map(r=>r.node)}}function tT(e){return ox(e).node}import{jsx as k,jsxs as Rr,Fragment as Fr}from"react/jsx-runtime";import{cloneElement as cg,createContext as Sj,useContext as pO,useEffect as wj,useId as uO,useRef as ii,useState as di}from"react";import{useEasel as qf,useSelectedHost as Ya}from"efficient-easel/easel";import{PIN_LENGTH as Gf,toDateKey as gwe,fromDateKey as bwe}from"efficient-shell/format";function E3(e){return!!e&&typeof e=="object"&&!Array.isArray(e)&&typeof e.src=="string"}function zo(e){return typeof e=="string"?e:E3(e)?e.src:""}function _pe(e,o,t){return tx(e,o.split("."),t)}function tx(e,o,t){if(o.length===0)return t(e);let[r,...a]=o,n=r.endsWith("[]"),s=n?r.slice(0,-2):r;if(!e||typeof e!="object"||Array.isArray(e))return e;let l=e;if(!(s in l))return e;let d=l[s];if(n){if(!Array.isArray(d))return e;let f=!1,u=d.map(p=>{let h=tx(p,a,t);return h!==p&&(f=!0),h});return f?{...l,[s]:u}:e}let c=tx(d,a,t);return c===d?e:{...l,[s]:c}}var O3=["upload","youtube"],_3="upload",Lpe={upload:"Upload",youtube:"YouTube"},A3=["background","click"],R3="background",Fpe={background:"Background",click:"Click to play"};function aT(e){return O3.includes(e)?e:_3}function nT(e){return A3.includes(e)?e:R3}var rT=/^[A-Za-z0-9_-]{11}$/,L3=/^(?:www\.|m\.|music\.)?(?:youtube\.com|youtube-nocookie\.com|youtu\.be)$/;function sT(e){let o=typeof e=="string"?e.trim():"";if(!o)return null;if(rT.test(o))return o;let t;try{t=new URL(/^[a-z]+:\/\//i.test(o)?o:`https://${o}`)}catch{return null}if(t.protocol!=="https:"&&t.protocol!=="http:"||!L3.test(t.hostname))return null;let r=t.pathname.split("/").filter(Boolean),a=t.hostname.endsWith("youtu.be")?r[0]:r[0]==="watch"?t.searchParams.get("v"):r[0]==="embed"||r[0]==="shorts"||r[0]==="live"||r[0]==="v"?r[1]:null;return a&&rT.test(a)?a:null}function rx(e,o){let t=o==="click"?"autoplay=1&playsinline=1&rel=0":`autoplay=1&mute=1&loop=1&playlist=${e}&controls=0&playsinline=1&rel=0&disablekb=1`;return`https://www.youtube-nocookie.com/embed/${e}?${t}`}function lT(e){return`https://i.ytimg.com/vi/${e}/maxresdefault.jpg`}function iT(e){return`https://i.ytimg.com/vi/${e}/hqdefault.jpg`}var ax="Play video";var nx={frame:"Video frame",image:"Image"},Bpe={any:[{field:"loadingShows",is:"image"},{all:[{not:{field:"loadingShows",set:!0}},{field:"poster",set:!0}]}]};function Al(e){let o=e.loadingShows;return o==="image"?"image":o!=null&&o!==""?"frame":zo(e.poster)?"image":"frame"}function Dpe(e,o="desktop"){let[t,r]=o==="phone"?[e.posterPhone,e.videoFramePhone]:[e.poster,e.videoFrame],[a,n]=Al(e)==="image"?[t,r]:[r,t];return zo(a)||zo(n)||void 0}function dT(e){if(zo(e.mediaVideo)){if(Al(e)==="frame")return zo(e.videoFrame)?void 0:zo(e.poster)?"frame-missing-image":"frame-missing-surface";if(!zo(e.poster))return zo(e.videoFrame)?"image-missing-frame":"image-missing-surface"}}var _c="videoFrames",sx="videoFramesNotOwn";function cT(e,o,t){let r=zo(e.mediaVideo);if(!r||!o||Al(e)!=="frame"||zo(e.videoFrame))return;let a=o[r],n=!!zo(e.poster);if(a?.state==="ready")return null;if(n)return!a||a.state==="pending"?void 0:"image-no-frame";if(!a)return t?"save-makes-frame":void 0;switch(a.state){case"pending":return a.noted!=="save"&&t?"save-makes-frame":null;case"dark":return"starts-dark";case"outside":return"outside";case"unsupported":return"unsupported";case"failed":return"failed";default:return null}}function F3(e,o){let t=zo(e),r=t&&o?o[t]:void 0;return r?.state==="ready"&&r.frame?r.frame:void 0}function Npe(e,o,t){let r=t?.[sx];if(!(Array.isArray(r)&&r.includes(e)))return F3(o,t?.[_c])}import{useSyncExternalStore as B3}from"react";function Ac(){let e=new Map,o=new Set,t=r=>(o.add(r),()=>{o.delete(r)});return{get:r=>e.get(r),has:r=>e.has(r),set(r,a){if(!(e.has(r)&&e.get(r)===a)){e.set(r,a);for(let n of o)n()}},use(r){let a=()=>r?e.get(r):void 0;return B3(t,a,a)}}}var Ye="SiteHeader",Ue="SiteFooter",lx="sections",Upe=[Ye,Ue],ns=e=>e===Ye||e===Ue,fT=e=>`${e}:${lx}`;function pT(e,o,t=[]){return{type:e,props:{id:o,[lx]:t}}}var D3=new Set(["Footer",Ye,Ue]);function ss(e){let o=new Set,t=!1,r=e.filter(a=>{let n=a?.type??"";return n==="Header"?(t=!0,!1):D3.has(n)?o.has(n)?(t=!0,!1):(o.add(n),!0):!0});return t?r:e}function Rc(e,o){return e.some(t=>t?.type===o.type)?e:o.type===Ye?[o,...e]:[...e,o]}var uT={[Ye]:{max:3,takes:["Flex","Ticker"]},[Ue]:{max:6,takes:["Flex","Prose","Logos","Divider"]}};function mT(e,o,t){if(!ns(e))return!0;let r=uT[e];return t<r.max&&r.takes.includes(o)}function hT(e,o){let t=o,r=t?.props?.id;if(r==null)return null;let a=e?.content;if(!Array.isArray(a))return null;for(let n of a){if(!ns(n?.type))continue;let s=n.props?.[lx];if(!Array.isArray(s)||!s.some(d=>d?.props?.id===r))continue;let l=uT[n.type];return l.takes.includes(t?.type??"")?s.length>=l.max?{group:n.type,why:"full"}:null:{group:n.type,why:"type"}}return null}import{locateNode as N3}from"efficient-easel/draw";function Rl(e){if(!e)return null;let o=e.lastIndexOf(":");return o>0?{ownerId:e.slice(0,o),slot:e.slice(o+1)}:null}function Lc(e,o,t){let r=Rl(t?.zone),a=r?N3(e,o,r.ownerId):null;return a&&r?{...a,slot:r.slot}:null}import{isNode as M3}from"efficient-easel/data";var xT="Footer",IT=[Ye,xT,Ue],La=e=>{let o=e?.content;return Array.isArray(o)?o:[]},Xr=e=>{let o=e?.zones;return o&&typeof o=="object"&&!Array.isArray(o)?o:null},ls=e=>{let o=e?.props?.id;return typeof o=="string"?o:void 0},gT=e=>Rl(e)?.ownerId??"";function bT(e){let o=ss(La(e)),t=o.some(r=>r?.type===Ue);return o.filter(r=>r?.type===Ye||r?.type===Ue||r?.type===xT&&!t)}function Fc(e,o){let t=new Set,r=a=>{if(Array.isArray(a)){for(let n of a)r(n);return}if(!(!a||typeof a!="object")){if(M3(a)){let n=ls(a);n&&t.add(n)}for(let n of Object.values(a))r(n)}};if(r(e),o){let a=!0,n=new Set;for(;a;){a=!1;for(let[s,l]of Object.entries(o))n.has(s)||!t.has(gT(s))||(n.add(s),r(l),a=!0)}}return t}function yT(e,o){let t=La(e).filter(r=>{let a=ls(r);return typeof r?.type=="string"&&IT.includes(r.type)||a!==void 0&&o(a)});return t.length?Fc(t,Xr(e)):new Set}function ix(e,o){let t={},r={};for(let[a,n]of Object.entries(e??{}))(o.has(gT(a))?t:r)[a]=n;return{owned:t,rest:r}}function ST(e,o){if(!o)return e;let t=bT(o);if(!t.length)return e;let r=t.filter(l=>l.type===Ye),a=t.filter(l=>l.type!==Ye),n={...e,content:[...r,...La(e),...a]},{owned:s}=ix(Xr(o),Fc(t,Xr(o)));return Object.keys(s).length&&(n.zones={...Xr(e)??{},...s}),n}function dx(e,o){if(!o)return{page:e,chrome:null};let t=bT(o),r=new Set(t.map(ls).filter(T=>!!T)),a=[],n=[];for(let T of La(e)){let y=ls(T);y&&r.has(y)||ns(T?.type)?n.push(T):a.push(T)}let s=new Map(n.map(T=>[ls(T),T])),l=new Set,d=ss(La(o)).flatMap(T=>{let y=ls(T);if(!y||!r.has(y))return[T];let b=s.get(y);return b?(l.add(b),[b]):[]});for(let T of n)l.has(T)||d.some(y=>y?.type===T.type)||(d=T.type===Ye?[T,...d]:[...d,T]);d=ss(d);let c=d.length===La(o).length&&d.every((T,y)=>T===La(o)[y]),f=Xr(e),u=Fc(d,f),{owned:p,rest:h}=ix(f,u),I=ix(Xr(o),Fc(t,Xr(o))).owned,g={...o,content:c?o.content:[...d]},C=Xr(o);if(C||Object.keys(p).length){let T={};for(let[y,b]of Object.entries(C??{}))y in I?y in p&&(T[y]=p[y]):T[y]=b;for(let[y,b]of Object.entries(p))y in T||(T[y]=b);g.zones=T,C&&H3(g.zones,C)&&(g.zones=C)}let w={...e,content:a};return f&&(Object.keys(h).length||!Object.keys(I).length?w.zones=h:delete w.zones),{page:w,chrome:g}}function H3(e,o){let t=Object.keys(e),r=Object.keys(o);return t.length===r.length&&t.every((a,n)=>a===r[n]&&e[a]===o[a])}function wT(e,o){return t=>e(t)||t!==void 0&&IT.includes(t)&&o()}var CT=null;function cx(e){CT=e}function Bt(){return CT}var vT=null;function fx(e){vT=e}function Bc(){return vT}var px=Ac();function kT(e,o,t){if(!o)return;let r={...px.get(e)};for(let[a,n]of Object.entries(o))r[a]={...n,noted:t};px.set(e,r)}function TT(e,o){kT(e,o,"load")}function PT(e,o){kT(e,o,"save")}function Dc(e){return px.use(e)}var ux=e=>!!Bt()?.sectionOf(e);function ET(e,o=ux){return yT(e,o)}function OT(e,o,t,r=ux){if(t)return e&&ET(o,r).has(e)?void 0:t}function _T(e,o,t=ux){if(!e)return{};let r=[...ET(o,t)];return r.length?{[_c]:e,[sx]:r}:{[_c]:e}}import{ScreenDocumentContext as Cj}from"efficient-easel/screen/components/ScreenDocumentContext";import{readHidable as la,hidableText as vj}from"efficient-easel/draw";import{FOLD_FIELD_MARKER as mO,LINK_FIELD_MARKER as kj,MEDIA_FIELD_MARKER as Tj,SCAFFOLD_FIELD_MARKER as Pj,TEXT_FIELD_MARKER as Lr,foldMetaOf as ia,textFieldIdentifier as Pwe}from"efficient-easel/draw";import{jsx as NT}from"react/jsx-runtime";import{useCallback as G3}from"react";import{useEasel as j3}from"efficient-easel/easel";import{SettingsAction as K3}from"efficient-easel/panel";import{isLengthUnit as z3}from"efficient-easel/screen/lib/content/length-units";import{CORNER_SIDES as Nc,hasCornerSubset as Ll,normalizeCornerSides as or}from"efficient-easel/screen/lib/content/style-keys";import{isLengthUnit as W3}from"efficient-easel/screen/lib/content/length-units";var Fl={kind:"radius",unitKey:"sectionCornersUnit"};function mx(e){return typeof e=="number"&&Number.isFinite(e)}function aue(e,o,t){if(!mx(e))return;let r=W3(t)&&t!=="px"?Jn(e,t):Jn(Jt(e));if(Object.keys(r).length===0)return;let a=r[hx];if(typeof a!="string")return r;let n=Ll(o)?Fa(a,or(o)??[]):a;return{...r,[U3]:n}}var U3="--sf-section-radius",hx="--sf-card-radius";function Fa(e,o){return Nc.map(t=>o.includes(t)?e:"0").join(" ")}var AT=[{value:"tl",label:"Top left"},{value:"tr",label:"Top right"},{value:"bl",label:"Bottom left"},{value:"br",label:"Bottom right"}];var Bl={kind:"radius",unitKey:"cardCornersUnit"},$3="--sf-card-box-radius";function xx(e){return typeof e=="number"&&Number.isFinite(e)}function due(e,o,t){if(!xx(e))return;let r=(z3(t)&&t!=="px"?Jn(e,t):Jn(Jt(e)))[hx];if(typeof r!="string")return;let a=Ll(o)?Fa(r,or(o)??[]):r;return{[$3]:a}}function RT(e,o){let t=e.find(s=>s?.props?.id===o);if(!t)return[...e];let r=t.props?.cardCorners,a=t.props?.cardCornerSides,n=t.props?.[Bl.unitKey];return e.map(s=>s?.props?.id===o?s:{...s,props:{...s.props,cardCorners:r,cardCornerSides:a,[Bl.unitKey]:n}})}function LT(e,o,t){let r=Lc(e,o,t),a=r?.slot??"",n=r&&Array.isArray(r.item.props[a])?r.item.props[a]:[],s=t?.index??-1,l=s>=0?n[s]:void 0,d=l?.props?.id?String(l.props.id):"",c=Math.max(n.length-1,0);return!r||!d?{can:!1,reason:"unreachable",others:0}:n.length<=1?{can:!1,reason:"alone",others:c}:xx(l?.props?.cardCorners)?{can:!0,others:c,zone:r.zone,index:r.index,data:{...r.item,props:{...r.item.props,[a]:RT(n,d)}}}:{can:!1,reason:"unset",others:c}}function FT(e){return e.can?Uo("Gives the other card this card's Corners.","Gives the other {n} cards this card's Corners.",e.others):e.reason==="alone"?i("This is the only card in the section."):e.reason==="unset"?i("Set this card's corners first."):i("This card is not in a section that can share corners.")}function BT(e){return Uo("Applied to {n} card","Applied to {n} cards",e)}function DT(e,o){e.can&&o(e.zone,e.index,e.data)}import{useSectionOps as V3}from"efficient-easel/screen/lib/document/use-section-ops";var q3="apply-corners-to-siblings",Y3="Apply to all cards";function X3({plan:e,onPress:o}){return NT(K3,{id:q3,label:i(Y3),note:FT(e),disabled:!e.can,doneLabel:BT(e.others),onPress:o})}function MT(){let{appState:e,config:o}=j3(n=>n),t=V3(),r=LT(o,e.data.content??[],e.ui.itemSelector),a=G3(()=>{DT(r,t.replaceComponent)},[r,t]);return NT(X3,{plan:r,onPress:a})}import{isShown as qT,lazyShowWhenContext as d6}from"efficient-shell/format";var Zr="product",Mc="recordType",HT={key:Zr,label:"Product",fields:[]},Z3=/^[a-z][a-z0-9]*(-[a-z0-9]+)*$/,J3=/^[a-z][A-Za-z0-9]*$/,Q3=["text","date","images"],Ix=new Map,WT=0;function e6(e){if(typeof e.key!="string"||!Z3.test(e.key))throw new Error(`A record type key is lower-case words joined by hyphens, not ${JSON.stringify(e.key)}.`);if(e.key===Zr)throw new Error("The product record type is the builder's own and is not declared by a host.");if(typeof e.label!="string"||!e.label.trim())throw new Error(`The record type ${e.key} has no label.`);let o=new Set;for(let t of e.fields){if(typeof t.key!="string"||!J3.test(t.key)||o.has(t.key))throw new Error(`The record type ${e.key} has a field key it cannot use: ${JSON.stringify(t.key)}.`);if(!Q3.includes(t.kind))throw new Error(`The field ${t.key} of ${e.key} has no kind ${JSON.stringify(t.kind)}.`);o.add(t.key)}return{key:e.key,label:e.label.trim(),fields:e.fields.map(t=>({...t}))}}function Cue(e){let o=e.map(e6);for(let t of o)Ix.set(t.key,t);o.length&&(WT+=1)}function gx(){return[HT,...Ix.values()]}function o6(e){return e===Zr?HT:Ix.get(e)??null}function bx(){return WT}function Dl(e){let o=e?.[Mc];return typeof o!="string"?Zr:o.trim()||Zr}function yx(e){return Dl(e)===Zr}function vue(e,o){let t=o6(e)?.fields??[];return o?t.filter(r=>o.includes(r.kind)):t}var Hc="product",UT="tyre",t6=[Hc,UT];function Pue(e){return t6.includes(e)}var r6="productType",a6={[Hc]:"alloy-wheel",[UT]:"tyre"},n6=["alloy-wheel","tyre"];function zT(e,o){return yx(o)?$T(o)??a6[e]??null:null}function $T(e){if(!yx(e))return null;let o=e?.[r6];return typeof o=="string"&&n6.includes(o)?o:null}function Eue(e){let o=e?.root;return $T(o?.props)}var Sx="Main Pages",s6="Dynamic Pages",wx="dynamic",l6="dynamic";function Ba(e){return e.kind===l6}var Cx="lightbox";function GT(e){return e.kind===Cx}function jT(e){let o=[],t=[];for(let r of e){if(Ba(r)){t.push(r);continue}let a=r.groupKey??(r.group?`folder:${r.group}`:"top"),n=o[o.length-1];n&&n.key===a?n.rows.push(r):o.push({key:a,label:r.group??Sx,rows:[r]})}if(t.length){let r=o.findIndex(a=>a.key.startsWith("system:"));o.splice(r===-1?o.length:r,0,{key:wx,label:s6,rows:t})}return o}var Wc=null,KT=null;function i6(e,o){Wc=e,KT=o}function Fue(e){i6(e,null)}function Bue(){return Wc}function Nl(){return Ba({kind:KT})||Wc===Hc}function Due(e){return zT(Wc??"",e)??"alloy-wheel"}function Nue(e){return Nl()?Dl(e):null}function vx(e,o,t){let r=!1,a={};for(let[n,s]of Object.entries(e)){if(!qT(Eh(s),o??{},t)){r=!0;continue}let l=c6(s,o?.[n],o??{},t);l!==s&&(r=!0),a[n]=l}return r?a:e}function c6(e,o,t,r){let a=e?.options;if(!Array.isArray(a))return e;let n=a.filter(s=>s?.value===o||!s?.showWhen||qT(s.showWhen,t,r));return n.length===a.length?e:{...e,options:n}}function YT(e,o,t,r){let a=Lc(o,t,r);return{device:e,parentType:a?.item.type,parent:a?.item.props}}function VT(e,o){if(!e||typeof e!="object")return!1;let t=e;if(typeof t.context=="string"&&(t.context===o||t.context.startsWith(`${o}.`)))return!0;if("not"in t)return VT(t.not,o);for(let r of[t.all,t.any])if(Array.isArray(r)&&r.some(a=>VT(a,o)))return!0;return!1}function jue(e,o={}){return d6({parentType:()=>e.parent?.type??void 0,parent:()=>e.parent?.props??void 0,dynamicPage:()=>Nl(),root:()=>e.appState?.data?.root?.props,...o})}import{isLengthUnit as f6}from"efficient-easel/screen/lib/content/length-units";var XT=1,p6="cardImageUnit",kx={kind:"radius",unitKey:p6},ZT={kind:"radius"};function u6(e){return Jt(e)}function Zue(e,o){if(f6(o)&&o!=="px"){let r=q(e);return r!==void 0&&r>=0?{"--sf-card-image-radius":We(r,o)}:{}}let t=u6(e);return t===null?{}:{"--sf-card-image-radius":`${t}px`}}import{isLengthUnit as m6}from"efficient-easel/screen/lib/content/length-units";var JT={kind:"radius",unitKey:"cornersUnit"},QT=1,eP="Corners";function h6(e){return Jt(e)}function ame(e,o,t){let r=m6(t)&&t!=="px"?q(e):void 0,a=r===void 0?h6(e):null;if(r===void 0&&a===null)return null;let n=r!==void 0?We(Math.max(0,r),t):`${a}px`;return{borderRadius:Ll(o)?Fa(n,or(o)??[]):n}}var tP=12,is=6,x6=800,Uc={twoAcross:{label:"Two across",across:2,acrossPhone:2,desktop:[[6,1],[6,1]],phone:[[3,1],[3,1]]},zigzag:{label:"Zigzag",across:2,acrossPhone:2,desktop:[[8,1],[4,1],[4,1],[8,1]],phone:[[4,1],[2,1],[2,1],[4,1]]},brick:{label:"Brick",across:2,acrossPhone:2,desktop:[[5,1],[7,1],[7,1],[5,1]],phone:[[2,1],[4,1],[4,1],[2,1]]},twoTall:{label:"Two tall",across:2,acrossPhone:2,desktop:[[6,2],[6,2]],phone:[[3,2],[3,2]]},offsetTall:{label:"Offset tall",across:2,acrossPhone:2,desktop:[[5,2],[7,1],[3,1],[4,1]],phone:[[3,2],[3,1],[3,1]]},ladder:{label:"Ladder",across:2,acrossPhone:2,desktop:[[3,2],[9,1],[5,1],[4,1]],phone:[[2,2],[4,1],[2,1],[2,1]]},threeAcross:{label:"Three across",across:3,acrossPhone:3,desktop:[[4,1],[4,1],[4,1]],phone:[[2,1],[2,1],[2,1]]},bigLeft:{label:"Big left",across:3,acrossPhone:3,desktop:[[6,1],[3,1],[3,1]],phone:[[4,1],[1,1],[1,1]]},bigRight:{label:"Big right",across:3,acrossPhone:3,desktop:[[3,1],[3,1],[6,1]],phone:[[1,1],[1,1],[4,1]]},threeStagger:{label:"Three stagger",across:3,acrossPhone:3,desktop:[[5,1],[4,1],[3,1],[3,1],[4,1],[5,1]],phone:[[3,1],[2,1],[1,1],[1,1],[2,1],[3,1]]},threeLadder:{label:"Three ladder",across:3,acrossPhone:3,desktop:[[3,1],[4,1],[5,1],[5,1],[4,1],[3,1]],phone:[[1,1],[2,1],[3,1],[3,1],[2,1],[1,1]]},tallMiddle:{label:"Tall middle",across:3,acrossPhone:3,desktop:[[4,1],[4,2],[4,1],[4,1],[4,1]],phone:[[2,1],[2,2],[2,1],[2,1],[2,1]]},fourAcross:{label:"Four across",across:4,acrossPhone:2,desktop:[[3,1],[3,1],[3,1],[3,1]],phone:[[3,1],[3,1]]},bigFirst:{label:"Big first",across:4,acrossPhone:2,desktop:[[6,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1]],phone:[[6,1],[3,1],[3,1]]},fourStagger:{label:"Four stagger",across:4,acrossPhone:2,desktop:[[4,1],[3,1],[2,1],[3,1],[2,1],[3,1],[4,1],[3,1]],phone:[[4,1],[2,1],[2,1],[4,1]]},tallFirst:{label:"Tall first",across:4,acrossPhone:2,desktop:[[3,2],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1]],phone:[[3,2],[3,1],[3,1]]},oneThenFour:{label:"One then four",across:4,acrossPhone:2,desktop:[[12,1],[3,1],[3,1],[3,1],[3,1]],phone:[[6,1],[3,1],[3,1]]},sixAcross:{label:"Six across",across:6,acrossPhone:3,desktop:[[2,1],[2,1],[2,1],[2,1],[2,1],[2,1]],phone:[[2,1],[2,1],[2,1]]},sixStagger:{label:"Six stagger",across:6,acrossPhone:6,desktop:[[3,1],[2,1],[1,1],[2,1],[1,1],[3,1],[1,1],[3,1],[2,1],[2,1],[1,1],[3,1]],phone:[[1,1],[1,1],[1,1],[1,1],[1,1],[1,1]]},twoThenThrees:{label:"Two, then threes",across:3,acrossPhone:3,lead:[[6,1],[6,1]],desktop:[[4,1],[4,1],[4,1]],leadPhone:[[3,1],[3,1]],phone:[[2,1],[2,1],[2,1]]},twoThenThreesPhoto:{label:"Two, then threes \xB7 photo",across:3,acrossPhone:1,lead:[[6,1],[6,1]],desktop:[[4,1],[4,1],[4,1]],phone:[[6,1]],ratio:"landscape"}},rP=["phone","acrossPhone","leadPhone"];var I6=new Set(rP),Ml=Object.fromEntries(Object.entries(Uc).map(([e,o])=>[e,Object.fromEntries(Object.entries(o).filter(([t])=>!I6.has(t)))])),Tx=Object.keys(Uc),aP=[2,3,4,6];function Px(e,o){return Tx.filter(t=>t===o||e===null||Ml[t].across===e)}function nP(e){let o=e.layout;return typeof o=="string"&&$e(Uc,o)?o:null}function Ex(e){let o=nP(e);return o?g6(o,e.layoutPhone):null}var zc={oneAcross:{label:"One across",phone:[[is,2]],acrossPhone:1}};function sP(e){return typeof e=="string"&&$e(zc,e)?e:null}function oP(e,o){return o?is/e.acrossPhone:tP/e.across}function Ox(e){return e.ratio?wk.find(o=>o.shape===e.ratio)?.ratio??null:null}function lP(e){return[...e.lead??[],...e.desktop]}function g6(e,o){let t=Uc[e],r=sP(o);if(!r)return t;let{phone:a,acrossPhone:n}=zc[r],s=Object.fromEntries(rP.map(l=>[l,void 0]));return{...t,...s,phone:a,acrossPhone:n}}var b6="sf-wall--";function y6(e){let o=nP(e);if(!o)return"";let t=sP(e.layoutPhone);return`${b6}${o}${t?`--${t}`:""}`}function ime(e){let o=Ex(e);if(!o)return"";let t=`.${y6(e)}`,r=[],a=(l,d,c)=>`${t}:has(> :nth-child(${l}n+${d+c}):last-child) > :nth-last-child(-n+${c})`,n=(l,d,c=[])=>{let f=[],u=l.length,p=c.length;c.forEach(([h,I],g)=>{f.push(`${t} > :nth-child(${g+1}){grid-column:span ${h};grid-row:span ${I}}`)}),l.forEach(([h,I],g)=>{f.push(`${t} > :nth-child(${u}n+${p+g+1}){grid-column:span ${h};grid-row:span ${I}}`)});for(let h=1;h<u;h+=1)f.push(`${a(u,p,h)}{grid-column:span ${d};grid-row:span 1}`);return f};r.push(`${t}{grid-template-columns:repeat(${tP},minmax(0,1fr))}`);let s=Ox(o);if(s&&(r.push(`${t}${t}{grid-auto-rows:auto}`),r.push(`${t}${t} > *{aspect-ratio:${s[0]}/${s[1]};height:auto}`)),r.push(...n(o.desktop,oP(o,!1),o.lead)),r.push(`@media (max-width:${x6}px){`),r.push(`${t}{grid-template-columns:repeat(${is},minmax(0,1fr))}`),r.push(...n(o.phone,oP(o,!0),o.leadPhone)),o.phone.length===1&&!o.leadPhone?.length){let[l,d]=o.phone[0],c=o.lead?.length??0;for(let f=1;f<o.desktop.length;f+=1)r.push(`${a(o.desktop.length,c,f)}{grid-column:span ${l};grid-row:span ${d}}`)}return r.push("}"),r.join("")}var $c=12,iP=1,S6=3;var w6=3;function Gc(e,o,t){let r=typeof e=="number"?e:Number.parseInt(String(e??""),10);return Number.isFinite(r)?Math.min(t,Math.max(o,Math.trunc(r))):null}function C6(e){return Gc(e,1,$c)??w6}function fme(e,o){return Gc(e,iP,S6)??(C6(o)===4?2:iP)}function pme(e){return e==null||e===""?null:Gc(e,1,$c)}var ume="data-sf-span",_x=4;function mme(e){return e==null||e===""?null:Gc(e,1,_x)}var hme="data-sf-row-span",Jr=["gridSpan","gridRowSpan"];function xme(e){if(!e)return!1;if(e.type==="Grid")return!0;if(e.type==="GalleryB"){if(Ex(e.props??{}))return!1;let o=e.props?.columns;return o!=null&&o!==""}return!1}import{jsx as v6}from"react/jsx-runtime";import*as k6 from"efficient-easel/icons";function jc(e){let o=e.replace(/(^|-)([a-z])/g,(r,a,n)=>n.toUpperCase()),t=k6[`${o}Icon`];return t?v6(t,{size:16}):null}import{jsx as Qr,Fragment as E6,jsxs as xP}from"react/jsx-runtime";import{useContext as O6,useEffect as _6,useId as A6,useState as IP}from"react";import{SettingsField as R6,SettingsSwitch as L6}from"efficient-easel/panel";import{AnchorIcon as F6}from"efficient-easel/icons";import{ScreenDocumentContext as B6}from"efficient-easel/screen/components/ScreenDocumentContext";import{Snippet as D6}from"efficient-shell/ui";import{slugify as N6}from"efficient-shell/format";import{slugify as T6}from"efficient-shell/format";function Hl(e){return typeof e=="string"?e.trim():e&&typeof e=="object"&&typeof e.text=="string"?e.text.trim():""}var Kc=e=>T6(Hl(e));var Vc="homepage";import{slugify as P6}from"efficient-shell/format";var dP=[{value:"page",label:"Page"},{value:"anchor",label:"Anchor"},{value:"blog",label:"Blog post",needs:"service"},{value:"product",label:"Product",needs:"commerce"},{value:"popup",label:"Popup"},{value:"custom",label:"Custom URL"}];function cP(e){return e.offersCommerce&&e.offersService?dP:dP.filter(o=>!o.needs||(o.needs==="commerce"?e.offersCommerce:e.offersService))}var Ax="#popup:";function fP(e){return`${Ax}${e}`}function pP(e){return e.startsWith(Ax)&&e.slice(Ax.length).trim()||null}function Wl(e){return e===Vc?"/":`/${e}`}function uP(e){return`/journal/${e}`}function Tme(e){return`/wheels/${e}`}function qc(e,o){return`${Wl(e)}#${o}`}function mP(...e){let o=new Set,t=[];for(let r of e)for(let a of r?.content??[]){let n=Hl(a?.props?.anchor);if(!n)continue;let s=P6(n);!s||o.has(s)||(o.add(s),t.push({slug:s,name:n}))}return t}function Pme(e){let o=e.indexOf("#"),t=o===-1?e:e.slice(0,o),r=t.indexOf("?");return r===-1?t:t.slice(0,r)}function hP(e){return/^\/wheels\/[^/?#]+(?:[?#].*)?$/.test(e)}import{readHidable as M6}from"efficient-easel/draw";function gP({value:e,onChange:o,nameBox:t}){let r=M6(e).text,[a,n]=IP(!1),s=a||r.trim()!=="",l=A6();return xP(E6,{children:[Qr(R6,{label:i("Add an anchor"),labelId:l,icon:Qr(F6,{}),action:Qr(L6,{checked:s,ariaLabelledBy:l,onChange:d=>{n(d),!d&&r!==""&&o("")}})}),s&&t(e,o),s&&Qr(H6,{name:r})]})}function H6({name:e}){let o=O6(B6),t=o?.templateId?"":o?.currentSlug??"",[r,a]=IP("");_6(()=>a(Cc()),[]);let n=N6(e);if(!n||!t)return null;let s=`${r}${qc(t,n)}`,l=s.replace(/^https?:\/\//,""),d=l.lastIndexOf("#");return Qr("div",{className:"sf-anchor-link",children:Qr(D6,{value:s,label:i("link"),size:"sm",children:xP("span",{className:"sf-anchor-link-text",children:[Qr("span",{className:"sf-anchor-link-path",children:l.slice(0,d)}),Qr("span",{className:"sf-anchor-link-hash",children:l.slice(d)})]})})})}import{jsx as tr,jsxs as W6}from"react/jsx-runtime";import{Fragment as U6}from"react";import{Button as Yc,Tooltip as z6}from"efficient-shell/ui";function bP({status:e,statusText:o,onRefresh:t,busy:r=!1,edit:a,hint:n,spaced:s=!0,compact:l=!1,oneLine:d=!1}){return l?tr("div",{className:`sf-blogsource sf-blogsource--compact${d?" sf-blogsource--line":""}`,style:s?{marginTop:8}:void 0,children:tr(z6,{content:n,className:d?"sf-name-tip":void 0,children:tr("p",{className:"sf-blogsource-status","data-state":e,children:[o?tr(U6,{children:o},"status"):null,t?tr(Yc,{variant:"link",size:"sm",className:"sf-blogsource-link",onClick:t,disabled:r,children:i("Refresh now")},"refresh"):null,a?tr(Yc,{variant:"link",size:"sm",className:"sf-blogsource-link",onClick:a.onClick,children:a.label},"edit"):null].filter(Boolean).flatMap((c,f)=>f?[" \xB7 ",c]:[c])})})}):W6("div",{className:"sf-blogsource",style:s?{marginTop:9}:void 0,children:[tr("p",{className:"sf-blogsource-status","data-state":e,children:o}),t?tr(Yc,{variant:"secondary",className:"sf-blogsource-action",onClick:t,disabled:r,children:i("Refresh now")}):null,a?tr(Yc,{variant:"secondary",className:"sf-blogsource-action",onClick:a.onClick,children:a.label}):null,tr("p",{className:"es-field-hint",children:n})]})}import{AdjustIcon as Ej,EyeIcon as Oj,AnimationIcon as _j,BackgroundIcon as eO,BorderAllIcon as Aj,BlockSectionIcon as Rj,ColumnWidthsIcon as fg,ColumnsIcon as hO,CornerIcon as xO,DirectionDownIcon as Lj,DirectionLeftIcon as Fj,DirectionRightIcon as Bj,DirectionUpIcon as Dj,EditIcon as Nj,GapIcon as Mj,GridIcon as IO,GroundIcon as lg,HashIcon as Hj,HeightIcon as pg,ImageIcon as Wj,ListIcon as Uj,LocationIcon as oO,PaddingBottomIcon as gO,PaddingLeftIcon as bO,PaddingRightIcon as yO,PaddingTopIcon as ug,PageIcon as zj,StickyIcon as SO,SearchIcon as $j,SquareIcon as Gj,TypeIcon as jj,WidthIcon as Kj}from"efficient-easel/icons";import{jsx as Je,Fragment as Da,jsxs as Na}from"react/jsx-runtime";import{CaptionIcon as $6,DateIcon as G6,FlagIcon as j6,TitleIcon as K6,ButtonIcon as V6,DollarIcon as q6,HashIcon as Y6,LinkIcon as X6,NoteIcon as Z6,TagIcon as J6,TextLinesIcon as Q6}from"efficient-easel/icons";var yP={body:Q6,button:V6,link:X6,label:J6,number:Y6,price:q6,note:Z6,name:j6,date:G6,caption:$6,title:K6},SP={eyebrow:Na(Da,{children:[Je("path",{d:"M5 6.5h5"}),Je("path",{d:"M5 12.5h14"}),Je("path",{d:"M5 18h11"})]}),heading:Na(Da,{children:[Je("path",{d:"M6.5 5v14"}),Je("path",{d:"M17.5 5v14"}),Je("path",{d:"M6.5 12h11"})]}),intro:Na(Da,{children:[Je("path",{d:"M4 5.5v13"}),Je("path",{d:"M8 7.5h12"}),Je("path",{d:"M8 12h12"}),Je("path",{d:"M8 16.5h8"})]}),value:Na(Da,{children:[Je("rect",{x:"2.5",y:"7",width:"19",height:"10",rx:"2"}),Je("path",{d:"M6.5 12h7"})]}),quote:Na(Da,{children:[Je("path",{d:"M9.5 5.5C7 7.2 5.5 9.7 5.5 12.8h4v5.7h-5v-5.7"}),Je("path",{d:"M19.5 5.5c-2.5 1.7-4 4.2-4 7.3h4v5.7h-5v-5.7"})]}),tag:Na(Da,{children:[Je("rect",{x:"3",y:"5.5",width:"18",height:"13",rx:"2.5"}),Je("path",{d:"M8 9.5h8"}),Je("path",{d:"M12 9.5v5"})]}),meta:Na(Da,{children:[Je("path",{d:"M4 7h16"}),Je("path",{d:"M4 14h3.5"}),Je("path",{d:"M10.5 14h3"}),Je("path",{d:"M17 14h3"})]})};function Rx({noun:e,size:o=14,strokeWidth:t=1.8,className:r,style:a}){let n=yP[e];return n?Je("span",{className:r,style:{display:"inline-flex",...a},"aria-hidden":"true",children:Je(n,{size:o})}):Je("svg",{className:r,style:a,width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:t,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:SP[e]})}var qme=Object.keys(yP);var Yme=Object.keys(SP);import{parseHexColor as lW}from"efficient-shell/format";import{parseHexColor as TP}from"efficient-shell/format";import{COLOR_SLOTS as PP,FILL_COLOR_SLOTS as aW,colorRole as nW,fillColorRole as EP}from"efficient-shell/markup";import{parseHexColor as wP}from"efficient-shell/format";import{FILL_COLOR_SLOTS as eW}from"efficient-shell/markup";var Xc=e=>{let o=fk.find(t=>t.role===e);return o?`var(${o.token})`:""},oW=e=>Xc(e)?`var(--theme-${e})`:"",tW={main:{ink:Pa.accent,page:Pa.accent,key:"accent",label:()=>i("Main"),words:e=>i("Theme {n} main color",{n:e})},text:{ink:Pa.text,page:Pa.text,key:"text",label:()=>i("Text"),words:e=>i("Theme {n} text color",{n:e})},background:{ink:Xc("bg"),page:oW("bg"),key:"background",label:()=>i("Background"),words:e=>i("Theme {n} background",{n:e})},muted:{ink:Pa.labels,page:Pa.labels,key:"muted",label:()=>i("Muted"),words:e=>i("Theme {n} muted color",{n:e})},surface:{ink:Xc("surface"),page:Xc("surface"),key:"surface",label:()=>i("Surface"),words:e=>i("Theme {n} surface color",{n:e})}};function ea(e){return K(tW,e)}var Lx="#9ca3af";function ds(e,o,t){let r=ea(e);return r?{hex:wP(o[r.key]??"")??"",words:r.words(t)}:null}function CP(e,o){return eW.flatMap(t=>{let r=ds(t,e,o);return r&&ea(t)?.ink?[{name:t,label:r.words,value:r.hex||Lx}]:[]})}var rW=["main","text","background"];function vP(e){let o=new Set,t=[];return xo(e).themes.forEach((r,a)=>{for(let n of rW){let s=ea(n),l=s?r[s.key]:void 0,d=typeof l=="string"&&l?wP(l):null;!s||!d||o.has(d)||(o.add(d),t.push({value:d,label:s.words(a+1)}))}}),t}function Pr(e){return ea(e)?.ink??""}function rr(e){if(typeof e!="string")return null;let o=EP(e.trim());return o?.kind==="slot"&&Pr(o.slot)?o.slot:null}var sW={accent:"main",labels:"muted"};function rt(e){return K(sW,e)??e}function cs(e){if(!e)return"";if(e.startsWith("#"))return TP(e)===e.toLowerCase()?e:"";let o=nW(rt(e));return o?.kind==="slot"?Pr(o.slot):""}function fs(e,o=PP){return o.flatMap(t=>{let r=ea(t);return r?.ink?[{name:t,label:r.label(),value:e?.[t]||Lx}]:[]})}function OP(e){let o=EP(rt(e));return o?.kind==="slot"?Pr(o.slot):""}function Fx(e){let o=e?.trim();return o?aW.find(t=>Pr(t)===o)??null:null}function _P(e){let o={},t=e.ownerDocument,r=t?.defaultView;if(!t||!r)return o;let a=r.getComputedStyle(e),n=t.createElement("canvas").getContext("2d");for(let s of PP){let l=Pr(s);if(!l)continue;let d=l.replace(/^var\((--[\w-]+)\)$/,"$1"),c=a.getPropertyValue(d).trim();if(!c)continue;let f=kP(c);!f&&n&&(n.fillStyle="#000000",n.fillStyle=c,f=kP(String(n.fillStyle))),f&&(o[s]=f)}return o}function kP(e){let o=e.trim().toLowerCase();if(o.startsWith("#"))return TP(o);let t=o.match(/^rgba?\(\s*(\d+)[\s,]+(\d+)[\s,]+(\d+)/);return t?`#${t.slice(1,4).map(r=>Math.min(255,Number(r)).toString(16).padStart(2,"0")).join("")}`:null}var iW="#ffffff";function Bx(e){return AP(e)||(dW(e)?e:iW)}function AP(e){let o=rr(e);return o?ea(o)?.page??"":""}function dW(e){return typeof e=="string"&&lW(e)===e.toLowerCase()||AP(e)!==""}function uhe(e){return{"--bg":Bx(e)}}import{parseHexColor as cW}from"efficient-shell/format";import{fillColorRole as fW}from"efficient-shell/markup";function Ma(e,o,t,r){let a=r??t??o,n=t!==null&&t!==o,s=a!==null&&a!==o;return{className:[n?e.tabletClass:"",s?e.phoneClass:""].filter(Boolean).join(" "),style:{...n?{[e.tabletVar]:t}:{},...s?{[e.phoneVar]:a}:{}}}}var vhe="sf-card",khe="[--sf-card-lift:none] [--sf-card-shadow-hover:var(--sf-card-shadow,none)]",oa={min:0,max:100,step:5,fallback:0,unit:"%"},pW=[{label:"Even",value:"even"},{label:"From the bottom",value:"bottom"}],uW="68%",The={desktop:20,phone:20,side:40,sidePhone:24},Phe="sf-box-sides";function Nx(e){return typeof e=="string"&&e.trim()!==""}function Ehe(e){return Nx(typeof e?.bgImage=="string"?e.bgImage:null)||Zc(e)}function Zc(e){return Zt(e,oc)!==""}function Ohe(e,o){return o||!Zc(e)?e:{...e,[oc]:""}}function _he(e,o){return Lh(o,Zt(e,oc))?.trim()||null}function RP(e,o){let t=typeof e=="number"?e:Number.parseFloat(String(e??""));if(!Number.isFinite(t)||t<=0)return null;let r=(Math.min(oa.max,Math.max(oa.min,t))/100).toFixed(2);return o!=="bottom"?{background:mc(Number(r))}:{background:`linear-gradient(0deg, ${mc(Number(r))} 0%, ${mc(0)} ${uW})`}}var Jc=[{label:"Flat",value:"",hint:"One colour from top to bottom"},{label:"Fade",value:"down",hint:"The colour fades into the page colour at the bottom"}],LP="fillFade",Dx=Jc[1].value,Qc=e=>e===Dx?Dx:Jc[0].value,mW=[{mix:"12%",at:"50%"},{mix:"19%",at:"70%"},{mix:"50%",at:"95%"}];function Ahe(e){return Qc(e)!==Dx?null:{backgroundImage:`linear-gradient(to bottom, transparent, ${mW.map(o=>`color-mix(in srgb, var(--bg) ${o.mix}, transparent) ${o.at}`).join(", ")})`}}var ef=e=>typeof e=="string"?cW(e.trim()):null,Ul=e=>{let o=ef(e);if(o!==null||typeof e!="string")return o;let t=e.trim();return t&&!t.startsWith("#")&&OP(t)||null},of=e=>{if(typeof e!="string")return null;let o=fW(rt(e.trim()));return o?.kind==="slot"?o.slot:null},Mx="swatch";function Rhe(e,o){if(!o)return null;let t=Lh(o,Zt(e,Mx)),r=rr(t);return ef(t)??(r&&Pr(r)||null)}var hW={tabletClass:"sf-fill-tablet",tabletVar:"--sf-fill-tablet",phoneClass:"sf-fill-phone",phoneVar:"--sf-fill-phone"};function Lhe(e,o,t){return Ma(hW,Ul(e),Ul(o),Ul(t))}var xW={tabletClass:"sf-wash-tablet",tabletVar:"--sf-wash-tablet",phoneClass:"sf-wash-phone",phoneVar:"--sf-wash-phone"};function Fhe(e){let o=RP(e.darken,e.darkenStyle);if(!o)return{className:"",style:{}};let t=(u,p)=>String(RP(u,p)?.background??"none"),r=u=>(typeof u=="number"||typeof u=="string"&&u.trim()!=="")&&Number.isFinite(Number(u))?u:void 0,a=u=>pW.some(p=>p.value===u)?u:void 0,[n,s,l,d]=[r(e.darkenTablet),a(e.darkenStyleTablet),r(e.darkenPhone),a(e.darkenStylePhone)],c=n??e.darken,f=s??e.darkenStyle;return Ma(xW,String(o.background),n!==void 0||s!==void 0?t(c,f):null,l!==void 0||d!==void 0?t(l??c,d??f):null)}function Bhe(e,o){let t={"top-left":["start","start"],"top-center":["center","start"],"top-right":["end","start"],left:["start","center"],center:["center","center"],right:["end","center"],"bottom-left":["start","end"],"bottom-center":["center","end"],"bottom-right":["end","end"]},[r,a]=t[e]??t.center,[n,s]=o==="column"?[a,r]:[r,a];return lv(n,s)}function FP(e,o){let t=e?.content;if(!Array.isArray(t))return null;for(let r of t){if(!r||typeof r!="object")continue;let{type:a,props:n}=r;if(n?.id===o)return null;if(Hx(r,o,0))return{type:typeof a=="string"?a:"",props:n??{}}}return null}function Hx(e,o,t){if(t>12||!e||typeof e!="object")return!1;if(Array.isArray(e))return e.some(a=>Hx(a,o,t+1));let r=e.props;return r&&typeof r=="object"&&r.id===o?!0:Object.values(e).some(a=>Hx(a,o,t+1))}function BP(e,o){let t=e?.content;return Array.isArray(t)?tf(t,o,0)??[]:[]}function tf(e,o,t){if(t>12||!e||typeof e!="object")return null;if(Array.isArray(e)){for(let a of e){let n=tf(a,o,t+1);if(n)return n}return null}let r=e.props;if(r&&typeof r=="object"){if(r.id===o)return[];for(let a of Object.values(r)){let n=tf(a,o,t+1);if(n)return[r,...n]}return null}for(let a of Object.values(e)){let n=tf(a,o,t+1);if(n)return n}return null}import{SettingsDefaultReset as Ho,SettingsDrill as Vj,SettingsField as mo,SettingsGroup as qj,SettingsSegmented as Yj,SettingsBorder as Xj,SettingsSidesEach as Zj,SettingsSwitch as mg,borderSides as Jj,borderStartEach as Qj}from"efficient-easel/panel";import{ListField as eK}from"efficient-easel/fields";import{DisplayChips as oK}from"efficient-shell/ui";import{HIDDEN_KEY as IW,hiddenInEveryView as gW,hiddenInView as Wx,hiddenKeyOf as DP}from"efficient-easel/screen/lib/content/view-hide";var bW={"000":"",100:"view-desktop:hidden","010":"view-wide:max-view-desktop:hidden","001":"max-view-wide:hidden",110:"view-wide:hidden","011":"max-view-desktop:hidden",101:"view-desktop:hidden max-view-wide:hidden",111:"hidden"},yW={"000":"",100:"view-desktop:hidden","010":"view-tablet:max-view-desktop:hidden","001":"max-view-tablet:hidden",110:"view-tablet:hidden","011":"max-view-desktop:hidden",101:"view-desktop:hidden max-view-tablet:hidden",111:"hidden"},NP=e=>(e.desktop?"1":"0")+(e.tablet?"1":"0")+(e.mobile?"1":"0");function rf(e,{atSectionLine:o=!1}={}){return(o?yW:bW)[NP(e)]}var ps=[IW,DP("tablet"),DP("mobile")];function MP(e){return{desktop:Wx(e,"desktop"),tablet:Wx(e,"tablet"),mobile:Wx(e,"mobile")}}function zl(e){return gW(e)}function Hhe(e){let o=MP(e);return["desktop","tablet","mobile"].filter(t=>o[t]).join(" ")}var SW={"000":"",100:"view-desktop:hidden!","010":"view-wide:max-view-desktop:hidden!","001":"max-view-wide:hidden!",110:"view-wide:hidden!","011":"max-view-desktop:hidden!",101:"view-desktop:hidden! max-view-wide:hidden!",111:"hidden!"},wW={"000":"",100:"view-desktop:hidden!","010":"view-tablet:max-view-desktop:hidden!","001":"max-view-tablet:hidden!",110:"view-tablet:hidden!","011":"max-view-desktop:hidden!",101:"view-desktop:hidden! max-view-tablet:hidden!",111:"hidden!"};function Whe(e,{atSectionLine:o=!1}={}){return(o?wW:SW)[NP(MP(e))]}function us(e){if(!e||typeof e!="object"||Array.isArray(e))return{};let o={};for(let[t,r]of Object.entries(e))typeof r=="boolean"&&(o[t]=r);return o}function af(e,o){return us(e)[o]!==!1}function Ux(e,o,t){let r=us(o)[t];return typeof r=="boolean"?r:af(e,t)}function HP(e){return Object.values(us(e)).some(o=>o===!1)}function WP(e){return Object.keys(us(e)).length>0}function UP(e,o,t){let r={...us(e)};return t?delete r[o]:r[o]=!1,Object.keys(r).length?r:void 0}function zP(e,o,t){return{...us(e),[o]:t}}function $he(e,o,t,{atSectionLine:r=!0}={}){let a=!af(e,t);return rf({desktop:a,tablet:a,mobile:!Ux(e,o,t)},{atSectionLine:r})}import{ColorSwatch as tK,CornersInput as rK,DatePicker as Xwe,DateTimePicker as aK,FOCAL_DEFAULT as Zwe,IconPicker as wO,COLUMN_COUNT_MAX as tO,COLUMN_SHARE_MIN as nK,COLUMN_SHARES_EQUAL as sK,resolveColumnShares as CO,WidthsBar as lK,useShellStrings as iK,IconButton as vO,InputNumber as rO,Slider as dK,Tooltip as hg}from"efficient-shell/ui";import{backendOf as CW}from"efficient-easel/screen/lib/session";var to=CW,nf=e=>e.blocks;async function $P(e){let o=e.trim();if(!o)return null;let t=to().geocode;if(!t)throw new Error("geocode_unavailable");return t.locate(o)}var zx="Lookup busy \u2014 try again in a moment.",sf=e=>typeof e=="number"&&Number.isFinite(e);function Xhe(e){return e.some(o=>{let t=o?.geocode;return t?t.pending||t.manual&&t.lat===void 0&&t.lng===void 0?!0:sf(t.lat)&&t.lat!==o.lat||sf(t.lng)&&t.lng!==o.lng:!1})}async function Zhe(e,o,{geocode:t=$P,courtesyGapMs:r=1100}={}){let a=s=>new Promise(l=>setTimeout(l,s)),n=e.slice();if(e.some(s=>s?.geocode?.pending)){let s=[],l=!1;for(let d of e){if(!d?.geocode?.pending){s.push(d);continue}l&&r>0&&await a(r),l=!0;try{let c=await t(o(d));s.push(c?{...d,lat:c.lat,lng:c.lng,geocode:{...d.geocode,pending:!1,ok:!0,status:`Found \u2014 ${c.label.split(",").slice(0,3).join(",").trim()}`,lat:c.lat,lng:c.lng}}:{...d,geocode:{...d.geocode,pending:!1,ok:!1,status:"No match \u2014 check the address and try again."}})}catch{s.push({...d,geocode:{...d.geocode,pending:!1,ok:!1,status:zx}})}}n=s}return n.map(s=>{let l=s?.geocode;if(!l)return s;if(l.manual&&l.lat===void 0&&l.lng===void 0)return{...s,geocode:{...l,lat:s.lat,lng:s.lng}};let d=sf(l.lat)&&l.lat!==s.lat?l.lat:s.lat,c=sf(l.lng)&&l.lng!==s.lng?l.lng:s.lng;return d!==s.lat||c!==s.lng?{...s,lat:d,lng:c}:s})}import{jsx as $o,jsxs as Gx}from"react/jsx-runtime";import{useRef as vW}from"react";import{ColorPicker as kW,ColorPickerPanel as TW,ColorSwatch as PW,HexInput as EW,Popover as OW,Tooltip as _W,colorFill as AW,colorSwatchClasses as RW,useShellStrings as LW}from"efficient-shell/ui";import{SettingsDefaultReset as FW,SettingsField as BW}from"efficient-easel/panel";import{typedHex as $x}from"efficient-easel/pick";var GP="Not set";function jP({value:e,onChange:o,label:t,id:r,caption:a,inherited:n,ariaLabel:s,choices:l}){return $o(NW,{value:e,onChange:o,label:i(s??t),id:r,caption:a,inherited:n,choices:l})}function DW(){let{theme:e}=he();return vP(e)}function NW({value:e,onChange:o,label:t,id:r,caption:a,inherited:n,choices:s}){let l=DW(),d=e?null:$x(n??""),c=a!==void 0&&(!e||$x(a)!==$x(e))?a:null,f=u=>{u!==e&&o(u)};return Gx("div",{className:"sf-colour",children:[s?$o(MW,{id:r,value:e,onChange:o,label:t,presets:l,follows:d,choices:s}):$o(kW,{id:r,value:e,onChange:f,label:t,presets:l,fallback:d??void 0,size:"md",align:"start"}),c!==null?$o("span",{className:"sf-colour-caption",children:c}):$o("span",{className:"sf-colour-hexwrap",children:$o(EW,{value:e||d||"",onChange:f,label:i("{label} hex code",{label:t}),placeholder:e||d?void 0:i(GP),className:d?"sf-colour-hex is-inherited":"sf-colour-hex",size:"md"})})]})}function MW({value:e,onChange:o,label:t,id:r,presets:a,follows:n,choices:s}){let l=LW().color,d=e||n||"",c=s.findIndex(p=>p.selected),f=c>=0,u=vW(c);return f&&(u.current=c),$o(OW,{id:r,trigger:$o("span",{"aria-hidden":"true",className:"absolute inset-0",style:AW(d)}),triggerLabel:l.swatch(t,d.toUpperCase()||l.none),triggerClassName:RW({size:"md"}),"aria-label":l.panel(t),align:"start",children:Gx("div",{className:"sf-colour-window",children:[$o("div",{role:"group","aria-label":t,className:"sf-colour-choices",children:s.map(p=>$o(_W,{content:p.label,children:$o(PW,{color:p.color,"aria-label":p.label,selected:p.selected,onClick:()=>{p.selected||p.onPick()}})},p.label))}),$o(TW,{value:f?"":e,onChange:o,label:t,presets:a,fallback:(f?d:n)??void 0},u.current)]})})}function Yo({label:e,icon:o,changed:t,hint:r,onReset:a,resetTo:n,children:s,...l}){return $o(BW,{label:e,icon:o,htmlFor:l.id,changed:t,hint:r,action:a?$o(FW,{words:de()?.panel,label:e,changed:!!t,detail:n,onReset:a}):void 0,children:s?Gx("div",{className:"es-width-stack",children:[jP({...l,label:e}),s]}):jP({...l,label:e})})}function $l({label:e,icon:o,value:t,inherited:r,resetTo:a,onChange:n,onReset:s,hint:l,choices:d,children:c}){let f=!!t;return $o(Yo,{label:e,icon:o,value:t,inherited:f?void 0:r,onChange:n,changed:f,onReset:s,resetTo:a,hint:l,choices:d,children:c})}import{keptByRow as ig}from"efficient-easel/screen/lib/document/style-fields";import{jsx as HW}from"react/jsx-runtime";import{useEffect as WW,useState as UW}from"react";import{clearRangeOf as zW,markSelection as $W,useCaretEdit as GW}from"efficient-easel/copy";import{TextToolbar as jW}from"efficient-shell/ui";function KW(e,o,t){return $W(e,o,t,RC)}function KP(e,o){let t=zW(o,e.length),r=FC(e,t.start,t.end);return r.text===e?null:r}function VW(e){let[o,t]=UW(null);return WW(()=>{let r=e.current?.ownerDocument??(typeof document>"u"?null:document);if(!r)return;let a=()=>{let n=e.current;if(!n||r.activeElement!==n)return;let s=n.selectionStart??n.value.length,l=n.selectionEnd??s;t(d=>d&&d.start===s&&d.end===l?d:{start:s,end:l})};return r.addEventListener("selectionchange",a),()=>r.removeEventListener("selectionchange",a)},[e]),[o,t]}function qW({target:e,value:o,onChange:t,disabled:r=!1,label:a="Formatting"}){let n=GW({target:e,onChange:t}),[s,l]=VW(e),d=p=>n(h=>{let I=KW(o,p,h);return l({start:I.selectionStart,end:I.selectionEnd}),I}),c=AC(),f={};if(s)for(let p of c)f[p.style]=LC(o,s.start,s.end,p.style);let u=r?null:KP(o,s);return HW(jW,{offered:new Set(c.map(p=>p.style)),onMark:p=>d(p),pressed:f,disabled:r,"aria-label":i(a),className:"sf-markup-bar",clear:u?{onClear:()=>n(()=>{let p=e.current,h=p&&p.ownerDocument.activeElement===p?{start:p.selectionStart??0,end:p.selectionEnd??0}:null,I=KP(o,h)??{text:o,selectionStart:h?.start??0,selectionEnd:h?.end??0};return l({start:I.selectionStart,end:I.selectionEnd}),I})}:void 0})}var jx=qW;import{deviceField as it}from"efficient-easel/screen/lib/document/device-fields";import{NO_CONTROL_FIELD as cK,NoControlMark as fK,noControlField as kO}from"efficient-easel/screen/lib/document/panel-no-control-mark";var Kx="__ownBox";function VP(e){return!!e&&typeof e=="object"&&e[Kx]===!0}var Vx="sfPanelOnly";function ms(e){return!!e&&typeof e=="object"&&e[Vx]===!0}function lf(e,o,t){return typeof e=="number"?e:typeof o=="number"?o:t}var df=void 0;import{phoneKey as vs,tabletKey as xg,viewKeyAt as Ig}from"efficient-easel/draw";import{jsx as cf,Fragment as YW,jsxs as XW}from"react/jsx-runtime";import{useRef as ZW}from"react";import{SettingsDefaultReset as JW}from"efficient-easel/panel";import{effectTiles as QW}from"efficient-easel/screen/lib/document/effect-tiles";import{VIEW_KEY_ACCESS as qP,describedAs as eU,onDesktopWords as oU,phoneTwinFields as YP}from"efficient-easel/screen/lib/document/box-fields";function tU({row:e,read:o,...t}){let r=o(Po(),t.followsView??"desktop");return e({...t,follows:r})}function Er(e,o){return Object.fromEntries(qo.map(t=>{let r=we(e,t);return[r,YP(e,o(t),qP)[r]]}))}function ff(e,o,t){let r=o.render,a={...o,render:n=>cf(tU,{...n,row:r,read:t})};return Er(e,n=>n==="desktop"?o:a)}function rU({spec:e,...o}){let t=e.values.includes(o.value),r="follows"in o,a=e.read(Po(),o.followsView??"desktop"),n=t?o.value:a,s=ZW(null),{preview:l}=e,d=QW({label:i(e.label),options:e.values.map(f=>({value:f,label:i(e.word(f)),picture:e.picture(f)})),fallback:e.fallback,onPreview:l?f=>s.current&&l(s.current,f):void 0}).render,c=d({value:n,onChange:f=>o.onChange(f??e.fallback)});return XW(YW,{children:[l?cf("div",{ref:s,style:{display:"contents"},children:c}):c,r&&t&&cf(JW,{words:de()?.panel,label:i(e.tileWord),changed:!0,detail:oU(f=>i(f),i(e.word(a)),o.followsView),onReset:()=>o.onChange(void 0)})]})}function pf(e,o){let t=eU({type:"custom",render:r=>cf(rU,{...r,spec:o})},{type:"select",label:o.label,options:o.values.map(r=>({value:r,label:o.word(r)}))});return YP(e,t,qP)}import{jsx as Yx,Fragment as sU}from"react/jsx-runtime";import{createContext as lU,useContext as iU}from"react";var uf={ProductGrid:{source:{keep:["slug"]}},GalleryItem:{product:{keep:["code","finish"]}},FeaturedCover:{source:{keep:["slug"]}},LongRead:{source:{keep:["slug"]}}},mf={Events:["posts"],SubscribeBlogs:["posts"]};var aU=["anchor"],nU=/^href$|Href$|^url$|Url$|^link$|^mailto$|^tel$/;function Gl(e){return aU.includes(e)||nU.test(e)}var qx={Gallery:{source:{verb:"snapshot",keep:[]}},ProductHero:{source:{verb:"snapshot",keep:[]}},SpecTable:{source:{verb:"snapshot",keep:[]},wheel:{verb:"reference"},finish:{verb:"reference"},size:{verb:"reference"}},CollectionCard:{collection:{verb:"snapshot",keep:[]}},FooterMenu:{menu:{verb:"snapshot",keep:[]}},MenuBlock:{menu:{verb:"snapshot",keep:[]}},ProductGrid:{design_codes:{verb:"reference"}},ProductRef:{code:{verb:"reference"},finish:{verb:"reference"}},FitmentTable:{wheel:{verb:"reference"}},GalleryItem:{fromProduct:{verb:"reference"}},Footprint:{"offices[].group":{verb:"groupKey"},"offices[].lat":{verb:"pii"},"offices[].lng":{verb:"pii"},"offices[].geocode":{verb:"pii"}}};qx.ContactLocations={"locations[].lat":{verb:"pii"},"locations[].lng":{verb:"pii"},"locations[].mapsUrl":{verb:"pii"},"locations[].geocode":{verb:"pii"}};var Axe=Object.fromEntries(Object.entries(uf).map(([e,o])=>[e,Object.keys(o)])),Rxe=Object.fromEntries(Object.entries(mf).map(([e,o])=>[e,[...o]]));import{NoControlMark as dU}from"efficient-easel/screen/lib/document/panel-no-control-mark";var XP=lU(!1);function ZP({children:e}){return Yx(XP.Provider,{value:!0,children:e})}function cU(){return iU(XP)}function JP({name:e,children:o}){return!cU()||!e||!fU(e)||Gl(e)?Yx(sU,{children:o}):Yx(dU,{})}function fU(e){return/^[A-Za-z0-9_$]+$/u.test(e)}var Xx="off",e0="none",Zx=[{label:"None",value:"off"},{label:"1, 2, 3",value:"plain"},{label:"01, 02, 03",value:"padded"},{label:"N\xB001, N\xB002",value:"numero"}],o0=[{label:"None",value:"none"},{label:"Hairline",value:"hairline"}];function Wxe(e){return io(Zx,Xx,e)}var QP="sf-card-index",jl="sf-card-index",Uxe="pointer-events-none absolute left-[18px] top-[18px] z-10 border border-line bg-bg/70 px-2 py-1 font-mono text-[length:var(--size-label,10px)] uppercase tracking-[0.16em] text-fg-dim",pU={plain:`counter(${jl})`,padded:`counter(${jl}, decimal-leading-zero)`,numero:`"N\xB0" counter(${jl}, decimal-leading-zero)`};function zxe(e,o){return o==="off"?"":`.${e}{counter-reset:${jl}}.${e} .${QP}{counter-increment:${jl}}.${e} .${QP}::before{content:${pU[o]}}`}function $xe(e){return e==="hairline"?"border border-line hover:border-accent":""}var t0=[{value:"1",label:"1st rendering"},{value:"2",label:"2nd rendering"},{value:"3",label:"3rd rendering"},{value:"4",label:"4th rendering"},{value:"5",label:"5th rendering"}];import{SCALAR_TEXT_CONTROLS as pK}from"efficient-easel/draw";import{jsx as Xo}from"react/jsx-runtime";import{SettingsDefaultReset as yU,SettingsField as Jx}from"efficient-easel/panel";import{useSelectedHost as SU}from"efficient-easel/easel";import{FOCAL_DEFAULT as wU}from"efficient-shell/format";import{ImageIcon as Qx,PlayIcon as a0}from"efficient-easel/icons";import{ImageFocusPoint as CU,MediaUploadField as vU}from"efficient-shell/ui";import{useContext as kU}from"react";import{ScreenDocumentContext as TU}from"efficient-easel/screen/components/ScreenDocumentContext";import{tabletKey as PU,viewKeyAt as EU}from"efficient-easel/draw";import{usePreviewDevice as OU}from"efficient-easel/draw/client";import{formatFocal as uU,parseFocal as mU}from"efficient-shell/format";var hU="sf-focus-phone",xU="--sf-focus-phone",IU="sf-focus-tablet",gU="--sf-focus-tablet",Kl=e=>{if(typeof e!="string"||!/^\s*-?\d+(\.\d+)?%\s+-?\d+(\.\d+)?%\s*$/.test(e))return null;let{x:o,y:t}=mU(e);return uU(o,t)};function r0(e,o){return Ma(bU,null,Kl(o),Kl(e))}var bU={tabletClass:IU,tabletVar:gU,phoneClass:hU,phoneVar:xU};import{shownTier as eI}from"efficient-easel/screen/lib/document/device-fields";import{onDesktopWords as _U}from"efficient-easel/screen/lib/document/box-fields";import{requestMediaPick as AU}from"efficient-easel/screen/lib/media-picker";import{useEaselHost as RU}from"efficient-easel/screen/lib/host";import{useEaselSession as LU}from"efficient-easel/screen/lib/session-context";function FU(e,o,t,r=!0){let a=eI(t),n=typeof e[o]=="string"&&e[o]?String(e[o]):wU;if(a==="desktop")return{ownView:!1,followed:n,followsView:"desktop",own:void 0,focus:n,key:o};let s=EU(o,a),l=Kl(e[s])??void 0,d=a==="mobile"&&r?Kl(e[PU(o)])??void 0:void 0,c=d??n;return{ownView:!0,followed:c,followsView:d?"tablet":"desktop",own:l,focus:l??c,key:s}}function BU(e,o,t){let r=SU();if(!o||!r)return null;let a=r.values??{};if(t&&!t(a,eI(e)))return null;let n=FU(a,o,e,t?t(a,"tablet"):!0),s=r.onChange;return{...n,set:l=>s(n.key,l),clear:()=>s(n.key,df)}}function n0({value:e,onChange:o,label:t,accept:r,placeholder:a,focusKey:n,focusWhen:s,frameKey:l,fieldKey:d}){let c=RU(),f=LU(),u=i(t),p=OU(),h=r.startsWith("video"),I=BU(p,h?void 0:n,s),g=!!n&&eI(p)!=="desktop",C=kU(TU),w=ta(),T=l&&d?{video:d,frame:l}:null,y=E=>AU(c,{accept:r,title:u,...E?{file:E}:{}}).then(W=>!W||!T?W?.url??null:(w({[T.video]:W.url,[T.frame]:W.posterUrl??""}),null)),b=T?E=>E?o(E):w({[T.video]:"",[T.frame]:""}):o,P=zo(e);if(g&&(!I||!P))return null;if(C&&!C.capabilities.mediaEditing)return Xo(Jx,{label:u,icon:h?Xo(a0,{}):Xo(Qx,{}),children:Xo("div",{className:"sf-image-slot-inert",children:h?i("Templates don\u2019t store videos \u2014 this slot stays a placeholder. Each website picks its own after it\u2019s created."):i("Templates don\u2019t store images \u2014 this slot stays a placeholder. Each website picks its own after it\u2019s created.")})});let H=I?.ownView&&P?Xo(yU,{words:de()?.panel,label:i("Image focus"),changed:!!I.own,detail:_U(E=>i(E),I.followed,I.followsView),onReset:I.clear}):void 0;return g&&I?Xo(Jx,{label:u,icon:Xo(Qx,{}),action:H,children:Xo("div",{style:{flex:"1 1 auto",minWidth:0},children:Xo(CU,{value:I.focus,onChange:I.set,label:i("Image focus"),image:P,hint:null})})}):Xo(Jx,{label:u,icon:h?Xo(a0,{}):Xo(Qx,{}),children:Xo("div",{style:{flex:"1 1 auto",minWidth:0},children:Xo(vU,{value:P,onChange:b,onPick:y,accept:h?"video/*":"image/*",kind:h?"video":"image",placeholder:a===void 0?void 0:i(a),maxSizeBytes:to(f).media.maxUploadBytes,...I?{focus:I.focus,onFocusChange:I.set}:{}})})})}import{jsx as s0}from"react/jsx-runtime";import{useId as DU}from"react";import{FieldSelect as NU}from"efficient-easel/fields";import{SettingsField as MU}from"efficient-easel/panel";function HU(e){return e.map(({value:o,label:t,note:r})=>({value:o,label:t,...r?{meta:r}:{}}))}function l0({label:e,options:o,value:t,onChange:r,emptyLabel:a,icon:n,hint:s}){let l=DU(),d=`${l}-label`,c=`${l}-button`,f=Array.isArray(t)?t:[];return s0(MU,{label:i(e),labelId:d,icon:n,hint:s,children:s0(NU,{id:c,multiple:!0,value:f,options:HU(o),onChange:r,placeholder:a===void 0?i("None"):i(a),ariaLabelledBy:`${d} ${c}`,inline:!0})})}import{jsx as Io,jsxs as Wa,Fragment as mz}from"react/jsx-runtime";import{useCallback as y0,useContext as hz,useId as C0,useRef as S0,useState as w0}from"react";import{ThemeIcon as xz}from"efficient-easel/icons";import{Button as Iz,useClickOutside as gz}from"efficient-shell/ui";import{SettingsField as bz}from"efficient-easel/panel";import{ScreenDocumentContext as yz}from"efficient-easel/screen/components/ScreenDocumentContext";import{jsx as fe,jsxs as aa,Fragment as qU}from"react/jsx-runtime";import{parseHexColor as YU}from"efficient-shell/format";import{Button as tI,IconButton as XU,Tooltip as ZU}from"efficient-shell/ui";import{jsx as ra,jsxs as WU}from"react/jsx-runtime";import{AccentIcon as UU}from"efficient-easel/icons";import{Button as zU,Tooltip as $U}from"efficient-shell/ui";function oI(e){return Vo(e).background}function GU(e){let o=Kr(e.accent,oI(e));return o===null?null:{ratio:o,grade:Zn(o)}}function jU(e){let o=oI(e),t=Kr(e.accent,o);return t===null?[]:Yv(e.accent).filter(r=>{let a=Kr(r,o);return a!==null&&a>t&&Zn(a)==="good"})}var KU={good:"Easy to read","large-only":Xn["large-only"],hard:Xn.hard};function i0({value:e,onChange:o}){let t=GU(e),r=t?.grade,a=t&&t.grade!=="good"?jU(e):[];return ra(Yo,{label:i("Main color"),icon:ra(UU,{}),hint:t?i(KU[t.grade]):void 0,value:e.accent,onChange:n=>o({...e,accent:n}),children:a.length>0?ra("div",{className:"w-full min-w-0",children:WU("div",{className:"sf-readability",children:[ra("p",{className:"sf-readability-advice",children:VU(r,!0)}),ra("div",{className:"sf-readability-suggestions",children:a.map(n=>{let s=Kr(n,oI(e));return ra($U,{content:i("Use {colour}",{colour:n.toUpperCase()}),children:ra(zU,{variant:"secondary",className:"sf-readability-suggestion",leftIcon:ra("span",{className:"sf-readability-chip",style:{background:n},"aria-hidden":!0}),onClick:()=>o({...e,accent:n}),children:s?`${s.toFixed(1)}:1`:n.toUpperCase()})},n)})})]})}):null})}function VU(e,o){return e?e==="good"?i("This color reads clearly on your pages."):o?i("This color is hard to read on this theme's page. The buttons below are the same hue, darkened."):i("This color is hard to read on your page background. Pick one further from it \u2014 lighter if your pages are dark, deeper if they are light."):i("Pick a color to see how it reads.")}import{ButtonIcon as JU,ChevronDownIcon as c0,ChevronUpIcon as QU,GroundIcon as ez,LayoutIcon as oz,SquareIcon as tz,TextSmallIcon as rz,TypeIcon as d0}from"efficient-easel/icons";var Vl=e=>i("Theme {n}",{n:e+1});function f0({colors:e}){let o=Vo(e),t=El(e)??o.accent;return aa("span",{className:"sf-theme-page",style:{background:o.background,color:o.text},"aria-hidden":!0,children:[fe("span",{className:"sf-theme-eyebrow",style:{color:o.muted},children:i("label")}),aa("span",{className:"sf-theme-headline",children:[i("Heading")," ",fe("span",{style:{color:o.accent},children:i("main")})]}),fe("span",{className:"sf-theme-body",children:i("body text")}),aa("span",{className:"sf-theme-row",children:[fe("span",{className:"sf-theme-btn",style:{background:t,color:Nh(e,o.accent)},children:i("button")}),fe("span",{className:"sf-theme-mini",style:{background:o.surface,borderColor:o.line},children:i("card")})]})]})}var rI={"Text color":fe(d0,{}),"Label color":fe(rz,{}),Background:fe(ez,{}),"Panels & cards":fe(oz,{}),Borders:fe(tz,{}),"Button color":fe(JU,{}),"Button text color":fe(d0,{})};function az({label:e,colorKey:o,value:t,onChange:r,idPrefix:a="sf-theme-ink"}){let n=`${a}-${o}`;return fe(Yo,{label:i(e),icon:rI[e],id:n,value:t,onChange:s=>r(o,s)})}function nz({value:e,accent:o,onChange:t,idPrefix:r="sf-theme-ink"}){let a=`${r}-button`,n=e!==void 0&&YU(e)===e.toLowerCase(),s=n?e:o;return fe(Yo,{label:i("Button color"),icon:rI["Button color"],id:a,value:s,caption:n?s:i("Main"),onChange:t})}function sz({colors:e,accent:o,onChange:t,idPrefix:r="sf-theme-ink"}){let a=`${r}-button-ink`,n=Xv(e),s=Nh(e,o),l=El(e)??o,d=Zn(Kr(s,l)??0);return fe(Yo,{label:i("Button text color"),icon:rI["Button text color"],hint:n&&d!=="good"?i("{grade} on the button",{grade:i(Xn[d])}):void 0,id:a,value:s,caption:n?s:i("Auto"),onChange:t})}var lz=[{colour:!0},{label:"Text color",key:"text"},{label:"Label color",key:"muted"},{button:!0},{buttonInk:!0},{moduleBreak:!0},{label:"Background",key:"background"},{label:"Panels & cards",key:"surface"},{label:"Borders",key:"line"}];function aI({colors:e,onChange:o,idPrefix:t}){let r=Vo(e);return fe(qU,{children:lz.map(a=>"colour"in a?fe(i0,{value:e,onChange:o},"colour"):"moduleBreak"in a?fe("div",{className:"sf-theme-module-break","aria-hidden":"true"},"module-break"):"button"in a?fe(nz,{value:e.button,accent:r.accent,onChange:n=>o({...e,button:n}),idPrefix:t},"button"):"buttonInk"in a?fe(sz,{colors:e,accent:r.accent,onChange:n=>o({...e,buttonInk:n}),idPrefix:t},"buttonInk"):fe(az,{label:a.label,colorKey:a.key,value:r[a.key],onChange:(n,s)=>o({...e,[n]:s}),idPrefix:t},a.key))})}function hf({index:e,colors:o,selected:t,role:r="radio",open:a,editable:n=!0,onPick:s,onEdit:l,onChangeColors:d}){let c=Vo(o),f=Vl(e),u=e<Dh.length&&!o.brandInk?Dh[e]:null,p=Zn(Kr(c.text,c.background)??0),h=u?JSON.stringify(o)!==JSON.stringify(u):!1,I=a!==void 0;return aa("div",{className:`sf-theme-card${t?" is-selected":""}`,children:[fe("button",{type:"button",role:r,"aria-checked":r==="radio"?t:void 0,"aria-selected":r==="option"?t:void 0,"aria-label":f,className:"sf-theme-pick",onClick:s,children:fe(f0,{colors:o})}),aa("div",{className:"sf-theme-foot",children:[fe("span",{className:"sf-theme-name",children:f}),p!=="good"&&fe("span",{className:"sf-theme-warn",children:i(Xn[p])}),n&&l&&I&&fe("span",{className:"sf-theme-edit",children:fe(ZU,{content:a?i("Collapse"):i("Edit colors"),children:fe(XU,{size:"sm","aria-expanded":a,"aria-controls":`sf-theme-colours-${e}`,"aria-label":a?i("Collapse {name}",{name:f}):i("Edit colors for {name}",{name:f}),onClick:l,children:a?fe(QU,{size:14}):fe(c0,{size:14})})})}),n&&l&&!I&&fe(tI,{variant:"secondary",size:"sm",className:"sf-theme-edit","aria-label":i("Edit {name}",{name:f}),onClick:l,children:i("Edit")})]}),a&&aa("div",{id:`sf-theme-colours-${e}`,className:"sf-theme-colours",children:[fe(aI,{colors:o,onChange:g=>d?.(g)}),u&&fe(tI,{variant:"link",size:"sm",className:"sf-theme-reset",disabled:!h,onClick:()=>d?.({...u}),children:h?i("Reset {name} to the preset",{name:f}):i("Not changed")})]})]})}function p0({colors:e,name:o,nameId:t,open:r,menuId:a,labelId:n,buttonRef:s,onClick:l,onKeyDown:d,onEdit:c}){return aa("div",{className:"sf-secttheme-btn",children:[fe("button",{ref:s,type:"button",className:"sf-theme-pick","aria-expanded":r,"aria-controls":a,"aria-labelledby":`${n} ${t}`,onClick:l,onKeyDown:d,children:e?fe(f0,{colors:e}):fe("span",{className:"sf-secttheme-nopreview","aria-hidden":"true"})}),aa("div",{className:"sf-theme-foot",children:[fe("span",{id:t,className:"sf-theme-name",children:o}),c&&fe(tI,{variant:"secondary",size:"sm",className:"sf-theme-edit","aria-label":i("Edit {name}",{name:o}),onClick:c,children:i("Edit")}),fe("button",{type:"button",className:"sf-secttheme-caret","aria-hidden":"true",tabIndex:-1,onClick:l,children:fe(c0,{size:12,className:"sf-multi-caret","aria-hidden":"true"})})]})]})}import{useCallback as cI,useEffect as I0,useRef as bf}from"react";import{currentEaselSession as cz}from"efficient-easel/screen/lib/session";import{useEaselSession as fz}from"efficient-easel/screen/lib/session-context";import{useSyncExternalStore as iz}from"react";var m0,nI=null,Ha=null,xf=0,sI=new Set;function lI(e){m0=e;for(let o of sI)o()}function iI(e){nI=e,xf+=1,Ha&&clearTimeout(Ha),Ha=null,lI(void 0)}function If(e){xf+=1,lI(e)}function Or(e=250){nI&&(Ha&&clearTimeout(Ha),Ha=setTimeout(()=>{Ha=null;let o=nI;if(!o)return;let t=++xf;o().then(r=>{t===xf&&lI(r)}).catch(()=>{})},e))}function u0(){return m0}function dz(e){return sI.add(e),()=>{sI.delete(e)}}function gf(){return iz(dz,u0,u0)}var dI=new Set;function h0(e){return dI.add(e),()=>{dI.delete(e)}}async function x0(){let e=(await Promise.allSettled([...dI].map(async o=>o()))).find(o=>o.status==="rejected");if(e)throw e.reason}import{WebsiteBackendError as pz}from"efficient-easel/screen/lib/backend-error";function g0(e=cz()){return(o,t,r)=>{let a=to(e).theme;return a?a.update(o,r?{siteId:r}:void 0):Promise.reject(new pz("invalid","This backend stores no site theme."))}}function b0(e){return e.themeFromDocument?{status:"skipped",reason:"template"}:e.token?null:{status:"skipped",reason:"no-token"}}async function uz(e,o=g0()){let{themeFromDocument:t,token:r,siteId:a,patch:n}=e,s=b0({themeFromDocument:t,token:r});if(s)return s;if(Object.keys(n).length===0)return{status:"skipped",reason:"empty"};try{return await o(n,r,a??void 0),{status:"saved"}}catch(l){return{status:"failed",error:l}}}function hs({themeFromDocument:e,tokenRef:o,siteId:t,onResult:r}){let a=bf(null),n=bf({}),s=fz(),l=bf(r);l.current=r;let d=bf(null),c=cI(p=>{if(p.status==="skipped"){let h=`skipped:${p.reason}`;if(d.current===h)return;d.current=h}else d.current=null;l.current?.(p)},[]),f=cI(async()=>{a.current&&(clearTimeout(a.current),a.current=null);let p=n.current;n.current={};let h=await uz({themeFromDocument:e,token:o?.current,siteId:t,patch:p},g0(s));return c(h),h.status==="saved"&&Or(),h.status==="failed"&&(n.current={...p,...n.current}),h},[e,o,t,c,s]),u=cI((p,h=!1)=>{let I=b0({themeFromDocument:e,token:o?.current});if(I){c(I);return}n.current={...n.current,...p},a.current&&clearTimeout(a.current),h?f():a.current=setTimeout(()=>{f()},500)},[e,o,f,c]);return I0(()=>()=>{f()},[f]),I0(()=>h0(async()=>{if(!a.current&&Object.keys(n.current).length===0)return;let p=await f();if(p.status==="failed")throw p.error}),[f]),{persist:u,flush:f}}var Sz="Follow the page",ige="Follow the slideshow",wz=e=>i("Editing {name} changes it everywhere.",{name:e});function Cz({colors:e}){if(!e)return Io("span",{className:"sf-secttheme-chip sf-secttheme-chip--none","aria-hidden":"true"});let o=Vo(e);return Wa("span",{className:"sf-secttheme-chip","aria-hidden":"true",children:[Io("i",{style:{background:o.background}}),Io("i",{className:"sf-secttheme-chip-accent",style:{background:o.accent}})]})}function vz({themes:e,value:o,onPick:t,onEdit:r,menuId:a,followLabel:n}){return Wa("div",{className:"sf-multi-menu sf-secttheme-menu",id:a,role:"listbox",children:[n!==void 0&&Wa(mz,{children:[Wa("button",{type:"button",role:"option","aria-selected":o===null,className:`sf-secttheme-item${o===null?" is-active":""}`,onClick:()=>t(Qt),children:[Io(Cz,{}),Io("span",{className:"sf-secttheme-name",children:i(n)})]}),Io("div",{className:"sf-secttheme-sep",role:"presentation"})]}),o!==null&&e[o]&&Io("p",{className:"sf-secttheme-oncard",role:"presentation",children:i("{name} is on this section",{name:Vl(o)})}),e.map((s,l)=>l===o?null:Io(hf,{role:"option",index:l,colors:s,selected:!1,onPick:()=>t(l),onEdit:()=>r(l)},l))]})}function kz({index:e,colors:o,onChange:t,onDone:r}){let a=Vl(e),n=C0();return Wa("div",{className:"sf-secttheme-sheet",children:[Wa("div",{className:"sf-secttheme-sheet-head",children:[Io("span",{children:a}),Io(Iz,{variant:"secondary",className:"sf-secttheme-done",onClick:r,children:i("Done")})]}),Io("div",{className:"sf-secttheme-rows",children:Io(aI,{colors:o,onChange:t,idPrefix:n})}),Io("p",{className:"sf-secttheme-warn",children:wz(a)})]})}function v0({value:e,onChange:o,followLabel:t,hint:r}){let{theme:a,setTheme:n}=he(),s=xo(a),l=hz(yz),d=l?.tokenRef,c=l?.siteId??null,f=!l?.capabilities?.hasSiteTheme,{persist:u,flush:p}=hs({themeFromDocument:f,tokenRef:d,siteId:c}),h=xo(s),I=h.themes,g=er(e),C=g!==null?I[g]:void 0,w=C??(I.length?Yn(h):void 0),[T,y]=w0(!1),[b,P]=w0(null),H=S0(null),E=S0(null),W=C0(),O=y0(()=>{y(!1),P(null)},[]),D=y0(()=>{!T&&b===null||(p(),O())},[T,b,O,p]);gz(H,D);let v=A=>{o(A),O()},_=A=>{if(b===null)return;let F=I.map(($,X)=>X===b?A:$),z={...h,themes:F};n(z),u({selected_preset:z.selected,theme_presets:z.themes})};return Wa("div",{className:"sf-secttheme",ref:H,children:[Io(bz,{label:i("Theme"),icon:Io(xz,{}),labelId:`${W}-label`,hint:r,children:Io(p0,{colors:w,onEdit:g!==null?()=>{P(g),y(!1)}:void 0,name:C?Vl(g):i(t??Sz),nameId:`${W}-value`,labelId:`${W}-label`,open:T,menuId:W,buttonRef:E,onClick:()=>{P(null),y(A=>!A)},onKeyDown:A=>{A.key==="Escape"&&(T||b!==null)&&(A.preventDefault(),O())}})}),T&&b===null&&Io("div",{onKeyDown:A=>{A.key==="Escape"&&(A.preventDefault(),O(),E.current?.focus())},children:Io(vz,{themes:I,value:g,onPick:v,onEdit:A=>{P(A),y(!1)},menuId:W,followLabel:t})}),b!==null&&I[b]&&Io(kz,{index:b,colors:I[b],onChange:_,onDone:()=>{p(),O(),E.current?.focus()}})]})}import{jsx as k0}from"react/jsx-runtime";import{useId as Tz}from"react";import{FieldSelect as Pz}from"efficient-easel/fields";import{SettingsField as Ez}from"efficient-easel/panel";function Oz(e){return e.map(({value:o,label:t,group:r,thumb:a,meta:n})=>({value:o,label:t,...r!==void 0?{group:r}:{},...a!==void 0?{thumb:a}:{},...n!==void 0?{meta:n}:{}}))}function hge({label:e,options:o,fallback:t,value:r,onChange:a,placeholder:n,bare:s=!1,icon:l}){let d=Tz(),c=`${d}-label`,f=`${d}-button`,u=r??"",p=o.some(C=>C.value===u)?u:t,h=i(e),I=n===void 0?void 0:i(n),g=k0(Pz,{id:f,value:p,options:Oz(o),onChange:a,placeholder:I,searchPlaceholder:I,...s?{ariaLabel:h}:{ariaLabelledBy:`${c} ${f}`},searchable:!0,groupCount:!0,inline:!0});return s?g:k0(Ez,{label:h,labelId:c,icon:l,children:g})}import{jsx as za,jsxs as i$}from"react/jsx-runtime";import{SettingsField as q0}from"efficient-easel/panel";import{LinkIcon as d$}from"efficient-easel/icons";import{LinkPicker as c$,TextLinkField as f$}from"efficient-shell/ui";import{useEffect as V0,useMemo as vf,useRef as p$,useState as Cf}from"react";import{currentEaselSession as _z}from"efficient-easel/screen/lib/session";function T0(){return _z().auth.token}import{currentEaselSession as u$}from"efficient-easel/screen/lib/session";import{useScreenDocument as m$}from"efficient-easel/screen/components/ScreenDocumentContext";var Az=()=>({choosePage:i("Choose a page"),chooseSection:i("Choose a section"),noSections:i("No section anchors yet"),sectionHint:i("Jumps to a section on that page."),choosePost:i("Choose a post"),chooseProduct:i("Choose a product"),choosePopup:i("Choose a popup")});function P0(e,o,t){if(!e)return"page";if(pP(e))return"popup";if(e.startsWith("/journal/"))return"blog";if(hP(e))return"product";if(e.includes("#")){let r=e.slice(0,e.indexOf("#"));if(r===""||r==="/"||o.includes(r))return"anchor"}return e==="/"||o.includes(e)||t&&t.listingPaths.includes(t.targetOf(e))?"page":"custom"}function fI(e,o){let t=Az(),r=e.pages.map(f=>({value:Wl(f.slug),label:f.title})),a=o?.pageOptions?o.pageOptions(r):r,n=a.map(f=>f.value),s=e.pages.map(f=>({label:f.title,options:mP(...f.docs).map(u=>({value:qc(f.slug,u.slug),label:u.name}))})).filter(f=>f.options.length>0),l=f=>{switch(f){case"page":return{type:"select",options:a,placeholder:t.choosePage};case"anchor":return{type:"groups",groups:s,placeholder:s.length?t.chooseSection:t.noSections};case"blog":return{type:"select",options:e.posts.map(u=>({value:uP(u.slug),label:u.title||u.slug})),placeholder:t.choosePost};case"product":return{type:"select",options:e.products.map(u=>({value:u.href,label:u.name||u.href})),placeholder:t.chooseProduct};case"popup":return{type:"select",options:(e.popups??[]).map(u=>({value:fP(u.slug),label:u.title||u.slug})),placeholder:t.choosePopup};case"custom":return{type:"text"}}},d=cP(e.offers).map(f=>({value:f.value,label:i(f.label),target:l(f.value),...f.value==="anchor"?{hint:t.sectionHint}:{},...f.value==="blog"||f.value==="product"||f.value==="popup"?{hideWhenEmpty:!0}:{}}));if(!o)return{kinds:d,rules:{kindOf:f=>P0(f,n),targetOf:f=>f,readFilter:()=>null,withFilter:f=>f}};let c=f=>{let u=o.withFilter(f,null);return o.listingPaths.includes(u)?u:f};return{kinds:d,rules:{kindOf:f=>P0(f,n,{listingPaths:o.listingPaths,targetOf:c}),targetOf:c,readFilter:o.readFilter,withFilter:o.withFilter},filtersFor:f=>o.listingPaths.includes(f)?o.filtersFor(f):null}}import{useEaselSession as h$}from"efficient-easel/screen/lib/session-context";function Eo(e,o){if(typeof e=="string")return e||o;if(e&&typeof e=="object"&&"text"in e){let t=e.text;return Se(t)??o}return o}function E0(e,o){return q(e)??o}function _r(e,o){return typeof e=="boolean"?e:o}function yf(e,o){if(!Array.isArray(e))return o;let t=e.map(r=>typeof r=="string"?r:Eo(r?.text,"")).map(r=>r.trim()).filter(Boolean);return t.length?t:o}var _0=["delay","scroll","exit"],A0=["all","chosen","except"],R0=["visit","days","never","once"],Rz=["all","desktop","phone"],Lz=["stop","continue"],L0={min:0,max:60},F0={min:10,max:90},B0={min:1,max:90},Dt={autoOpen:!1,trigger:"delay",autoOpenDelaySec:15,scrollPercent:50,showOn:"all",showOnPages:[],devices:"all",hideAfter:"days",hideDays:7,afterSubmit:"stop",startDate:null,endDate:null};function at(e,o,t){return typeof o=="string"&&e.includes(o)?o:t}function xs(e,o,t){let r=E0(e,t);return Math.min(o.max,Math.max(o.min,Math.round(r)))}function Fz(e){return typeof e.hideAfter=="string"?at(R0,e.hideAfter,Dt.hideAfter):e.oncePerSession===!0?"visit":e.oncePerSession===!1?"never":Dt.hideAfter}function Bz(e){return Array.isArray(e)?e.map(o=>typeof o=="string"?o.trim():"").filter(Boolean).map(o=>o.startsWith("/")?o:`/${o}`):[]}function O0(e){if(typeof e!="string")return null;let o=e.trim();return/^\d{4}-\d{2}-\d{2}$/.test(o)?o:null}function D0(e){let o=e??{},t=Dt;return{autoOpen:_r(o.autoOpen,t.autoOpen),trigger:at(_0,o.trigger,t.trigger),autoOpenDelaySec:xs(o.autoOpenDelaySec,L0,t.autoOpenDelaySec),scrollPercent:xs(o.scrollPercent,F0,t.scrollPercent),showOn:at(A0,o.showOn,t.showOn),showOnPages:Bz(o.showOnPages),devices:at(Rz,o.devices,t.devices),hideAfter:Fz(o),hideDays:xs(o.hideDays,B0,t.hideDays),afterSubmit:at(Lz,o.afterSubmit,t.afterSubmit),startDate:O0(o.startDate),endDate:O0(o.endDate)}}import{parseHexColor as Dz}from"efficient-shell/format";var Nt="#000000";var pI="popup",Nz=xk,Mz=["auto","full"],Hz=["inside","outside","none"],Wz={min:240,max:1440},Uz={min:0,max:100},ql={placement:"center",fullWidth:!1,width:720,height:"auto",tintColor:Nt,tintOpacity:60,outsideClick:!0,closeButton:"inside"};function zz(e,o){let t=typeof e=="string"?e.trim():"";return t&&Dz(t)===t.toLowerCase()?t:o}function uI(e,o=ql){let t=e??{},r=o;return{placement:at(Nz,t.placement,r.placement),fullWidth:_r(t.fullWidth,r.fullWidth),width:xs(t.width,Wz,r.width),height:at(Mz,t.height,r.height),tintColor:zz(t.tintColor,r.tintColor),tintOpacity:xs(t.tintOpacity,Uz,r.tintOpacity),outsideClick:_r(t.outsideClick,r.outsideClick),closeButton:at(Hz,t.closeButton,r.closeButton)}}var N0="cart-drawer",Nge="cart-drawer",$z={kickerBadge:"",kickerText:"Your order",titleLead:"Your",titleAccent:"cart.",subtitleEmpty:"Empty for now.",subtitleOne:"One set in your cart.",subtitleMany:"{count} sets in your cart.",leadTimeValue:"",shipsToFallback:"",promises:[],emptyKicker:"No wheels yet",emptyBody:"Your cart is empty. Pick a wheel to get started."};function Mge(e,o){return o===0?e.subtitleEmpty:o===1?e.subtitleOne:e.subtitleMany.replace("{count}",String(o))}function Hge(e){let o=e??{},t=$z;return{kickerBadge:Eo(o.kickerBadge,t.kickerBadge),kickerText:Eo(o.kickerText,t.kickerText),titleLead:Eo(o.titleLead,t.titleLead),titleAccent:Eo(o.titleAccent,t.titleAccent),subtitleEmpty:Eo(o.subtitleEmpty,t.subtitleEmpty),subtitleOne:Eo(o.subtitleOne,t.subtitleOne),subtitleMany:Eo(o.subtitleMany,t.subtitleMany),leadTimeValue:Eo(o.leadTimeValue,t.leadTimeValue),shipsToFallback:Eo(o.shipsToFallback,t.shipsToFallback),promises:yf(o.promises,t.promises),emptyKicker:Eo(o.emptyKicker,t.emptyKicker),emptyBody:Eo(o.emptyBody,t.emptyBody)}}var Gz=["right","left"],jz={...ql,width:520,tintOpacity:68};function Wge(e){let o=e??{};return{...uI(o,jz),placement:at(Gz,o.placement,"right"),height:"full",fullWidth:!1,autoOpen:_r(o.autoOpen,!0)}}var H0="consent-banner",Gge="consent-banner";var Kz=[{value:"bar",label:"Bar"},{value:"card",label:"Card"}],jge="Layout",M0={layout:"bar"},Vz=e=>Kz.some(o=>o.value===e);function Kge(e){let o=Eo((e??{}).layout,M0.layout);return{layout:Vz(o)?o:M0.layout}}var Vge={...ql,placement:"bottom-center",fullWidth:!0,width:440,tintOpacity:0,outsideClick:!1,closeButton:"none"};var qz="consentWords",Yz=["eyebrow","notice","accept","reject","choose"];function mI(e){let o=(e??{})[qz];return typeof o=="string"&&Yz.includes(o)?o:null}function hI(e){let o=e?.props;return o?mI(o)!==null?!0:Object.values(o).some(t=>Array.isArray(t)&&t.some(r=>r&&typeof r=="object"&&"props"in r&&hI(r))):!1}var Xz=["meta","eyebrow","heading","body","statName","statValue","formEyebrow","formHeading","formIntro","fieldLabel","option","finePrint","dismiss","doneHeading","doneBody"],Xge={meta:"Meta line",eyebrow:"Eyebrow",heading:"Heading",body:"Body",statName:"Stat name",statValue:"Stat value",formEyebrow:"Form eyebrow",formHeading:"Form heading",formIntro:"Form intro",fieldLabel:"Field label",option:"Option",finePrint:"Fine print",dismiss:"Dismiss link",doneHeading:"Success heading",doneBody:"Success message"},Zz={meta:"styleMeta",eyebrow:"styleEyebrow",heading:"styleHeading",body:"styleBody",statName:"styleStatName",statValue:"styleStatValue",formEyebrow:"styleFormEyebrow",formHeading:"styleFormHeading",formIntro:"styleFormIntro",fieldLabel:"styleFieldLabel",option:"styleOption",finePrint:"styleFinePrint",dismiss:"styleDismiss",doneHeading:"styleDoneHeading",doneBody:"styleDoneBody"},Zge={meta:{font:"--pp-meta-font",size:"--pp-meta-size"},eyebrow:{font:"--pp-eyebrow-font",size:"--pp-eyebrow-size"},heading:{font:"--pp-heading-font",size:"--pp-heading-size"},body:{font:"--pp-body-font",size:"--pp-body-size"},statName:{font:"--pp-statname-font",size:"--pp-statname-size"},statValue:{font:"--pp-statvalue-font",size:"--pp-statvalue-size"},formEyebrow:{font:"--pp-formeyebrow-font",size:"--pp-formeyebrow-size"},formHeading:{font:"--pp-formheading-font",size:"--pp-formheading-size"},formIntro:{font:"--pp-formintro-font",size:"--pp-formintro-size"},fieldLabel:{font:"--pp-fieldlabel-font",size:"--pp-fieldlabel-size"},option:{font:"--pp-option-font",size:"--pp-option-size"},finePrint:{font:"--pp-fineprint-font",size:"--pp-fineprint-size"},dismiss:{font:"--pp-dismiss-font",size:"--pp-dismiss-size"},doneHeading:{font:"--pp-doneheading-font",size:"--pp-doneheading-size"},doneBody:{font:"--pp-donebody-font",size:"--pp-donebody-size"}};function W0(e){let o={};for(let t of Xz){let r=br(e[Zz[t]]);r&&(o[t]=r)}return o}var U0={heading:"Join our email list",placeholder:"Email address",buttonLabel:"Subscribe"},Jz={lead:"We accept"},wf={...Jz,methods:[],size:"sm",align:"start",dataSource:xC},Mt="site-footer";var ebe=Mt,obe={desktop:!0,tablet:!0,mobile:!0},tbe={desktop:!1,tablet:!1,mobile:!1},xI=1,z0=6,rbe=Array.from({length:z0-xI+1},(e,o)=>xI+o),Sf={desktop:6,tablet:3,mobile:2},Qz={2:{desktop:2,tablet:2,mobile:1},3:{desktop:3,tablet:3,mobile:1},4:{desktop:4,tablet:2,mobile:2},5:{desktop:5,tablet:3,mobile:2},6:{desktop:6,tablet:3,mobile:2}},Ua=e=>Math.min(Math.max(Math.round(e),xI),z0);function abe(e){if(typeof e=="number")return Qz[Ua(e)]??{desktop:Ua(e),tablet:Ua(e),mobile:Ua(e)};if(e&&typeof e=="object"){let o=e;return{desktop:Ua(o.desktop??Sf.desktop),tablet:Ua(o.tablet??Sf.tablet),mobile:Ua(o.mobile??Sf.mobile)}}return{...Sf}}var II="subscribe-popup",pbe="subscribe-popup",e$=[II,Mt,N0,H0];function G0(e){return e$.includes(e)}var o$=["right","left"],t$={metaLabel:"Meta label",issueLabel:"Label",issueNumber:"00",kicker:"Kicker",heading:`Main heading
1
+ import{$ as Pa,$a as Ea,$c as Th,$e as Vo,$f as dk,$g as gc,Ac as pv,Ad as Cv,Ae as Uv,Af as Wo,Ah as Ek,B as wC,Ba as fh,Bc as vh,Bd as lc,Be as cc,Bf as Vr,Bg as Ik,Bh as Ok,Bi as Pc,Ca as DC,Cb as io,Cd as Vn,Cf as ak,Cg as zh,Ci as zk,Da as NC,Db as av,Dd as _h,De as We,Df as nk,Dg as gk,Dh as _k,Di as $k,E as qd,Ea as so,Eb as nv,Ed as Tl,Ee as ke,Ef as Jt,Eg as $h,F as CC,Fa as MC,Fe as zv,Ff as Jn,Fg as bk,Fh as es,G as vC,Ga as HC,Gb as sv,Gc as G,Ge as qn,Gg as yk,Gh as Ak,H as Sl,Ha as WC,Hc as ne,Hd as vv,He as $v,Hg as Sk,Hh as bc,I as sh,Ia as UC,Ib as gh,Ic as kh,Id as kv,Ie as fc,If as sk,Ig as mc,Ih as Rk,J as He,Ja as zC,Jc as L,Jd as Tv,Je as Aa,Jf as Hh,K as te,Ka as $C,Kc as Do,Ke as Gv,Kg as wk,La as GC,Lc as Cr,Ma as jC,Mc as uv,Md as Pv,Mf as lk,Mh as Vh,N as kC,Na as KC,Nc as U,Ne as Kr,Nf as Wh,Ng as Gh,O as $r,Oa as VC,Oc as nc,Od as No,Oe as Bh,Og as Tr,P as Hn,Pa as Jd,Pc as Ko,Pd as Ft,Pg as hc,Q as TC,Qa as Qd,Qc as mv,Qg as qo,R as br,Ra as qC,Rb as bh,Rc as Lt,Rg as we,Rh as Lk,S as lh,Sa as YC,Sc as Gn,Sd as Ev,Sg as xc,Sh as yc,T as Wn,Tb as lv,Tc as jr,Td as Ah,Tg as Ck,Ua as XC,Uc as vr,Ue as jv,Ug as Ol,Va as ZC,Ve as Kv,Vg as tt,Wa as ph,Wc as qe,We as Dh,Wg as _l,X as wl,Xc as hv,Xd as Ov,Xe as xo,Xf as Ra,Xg as Ic,Ya as JC,Yd as _v,Ye as Vv,Yg as Qn,Yh as Sc,Z as PC,Za as uh,Zc as xv,Zd as Av,Ze as qv,Zf as ik,Zg as jh,_ as EC,_a as zn,_b as Oa,_c as Iv,_d as Rv,_e as Yn,a as Vd,ab as mh,ac as yh,ad as gv,ae as Lv,b as Se,bb as hh,bc as Sh,bf as Xn,bg as ck,bi as os,c as So,ca as OC,cb as xh,ce as Fv,cf as Zn,cg as fk,d as gr,da as Yd,db as QC,dc as rc,de as Bv,dg as pk,ea as _C,eb as ev,ed as bv,eg as uk,f as Rt,fa as Xd,fb as ov,fd as yv,fe as Dv,ff as Yv,fi as qr,g as yl,ga as AC,gb as Ih,gg as Qt,ha as RC,hb as tv,hd as Ph,hg as mk,hi as Yr,i as xC,ia as LC,ib as Gr,ic as wh,if as El,ii as wc,ja as Cl,jc as ac,jd as Eh,je as Nv,k as IC,ka as yr,kc as iv,kd as Oh,kf as Xv,kg as hk,kh as Kh,ki as Fk,la as FC,lb as vl,lc as dv,le as Zt,lf as Nh,lg as er,mc as cv,md as _a,me as Pl,mg as Uh,n as gC,na as q,nb as $n,nc as Ch,nd as jn,ne as Rh,oa as Zd,ob as wr,oc as fv,od as oo,oe as Mv,of as pc,oi as Bk,pb as ec,pf as Zv,pg as xk,qd as kl,qf as Jv,qi as Dk,r as bC,ra as pt,rd as kr,re as ic,rf as Qv,sa as Sr,sd as Kn,se as Hv,sf as uc,t as Xt,ta as Un,td as Sv,te as Lh,tf as ek,ua as ih,ub as rv,ud as wv,uf as ok,ui as he,va as BC,vh as vk,w as K,wa as dh,we as dc,wf as tk,wh as kk,x as $e,xa as ch,xb as oc,xe as Wv,xf as Mh,xh as Tk,y as yC,ye as Fh,yi as Wk,z as SC,zb as tc,zd as sc,zf as rk,zh as Pk,zi as Uk}from"./chunk-25XGYFU3.js";import{c as Nk,d as Cc,e as vc,i as Mk,j as ut,k as kc,l as Tc,m as Hk,q as qh}from"./chunk-ISCYSRBG.js";var jk="en",Ec=null,Kk=jk,Vk=null;function rpe(e,o,t){Ec=e??null,Kk=o||jk,Vk=t??null}function de(){return Vk}function Yh(){return Kk}function qk(){return Ec}function Gk(e,o){return o?e.replace(/\{([A-Za-z][A-Za-z0-9_]*)\}/g,(t,r)=>$e(o,r)?String(K(o,r)):t):e}function i(e,o){let t=Ec?K(Ec,e):void 0;if(typeof t=="function"){try{let r=Se(t(o??{}));if(r)return r}catch{}return Gk(e,o)}return Gk(Se(t)??e,o)}function Uo(e,o,t,r){return i(t===1?e:o,{...r,n:t})}import{jsx as Xh,Fragment as d3,jsxs as c3}from"react/jsx-runtime";import{createContext as f3,useContext as p3}from"react";var u3={mirrorHostStyles:!0,css:null,fontHrefs:[]},Yk=f3(u3);function lpe({value:e,children:o}){return Xh(Yk.Provider,{value:e,children:o})}function Zh(){return p3(Yk)}function Xk(){let{css:e,fontHrefs:o}=Zh();return c3(d3,{children:[o.map(t=>Xh("link",{rel:"stylesheet",href:t},t)),e?Xh("style",{"data-sf-canvas-css":"",children:e}):null]})}import{jsx as m3}from"react/jsx-runtime";import{createContext as h3,useContext as x3}from"react";var Zk=h3(void 0);function fpe({metadata:e,children:o}){return m3(Zk.Provider,{value:e,children:o})}var Jk=()=>x3(Zk);import{jsx as To,Fragment as G5,jsxs as Gd}from"react/jsx-runtime";import{useCallback as Il,useEffect as mr,useRef as _fe,useState as W5}from"react";import{SettingsSwitch as Afe}from"efficient-easel/panel";import{PagesIcon as Rfe,StylesIcon as Lfe}from"efficient-easel/rail";import{PaletteIcon as Ffe}from"efficient-shell/icons/efficient";import{Subtree as Bfe,TreeRow as j5}from"efficient-easel/tree";import{useEasel as K5}from"efficient-easel/easel";import{useEaselStrings as V5}from"efficient-easel/strings";import{createContext as I3,useContext as g3}from"react";var Jh=I3(!1),mpe=()=>g3(Jh);import{useMemo as b3,useRef as y3}from"react";import{useEaselApi as S3}from"efficient-easel/easel";import{useSectionOps as w3}from"efficient-easel/screen/lib/document/use-section-ops";function Oc(){let e=S3(),o=w3(),t=y3(o);return t.current=o,b3(()=>({getItemById:r=>e.getState().getItemById(r),getSelectorForId:r=>e.getState().getSelectorForId(r),get components(){return e.getState().config.components},replace:(r,a,n)=>t.current.replaceComponent(r,a,n)}),[e])}import{encodePartId as x7}from"efficient-easel/draw";import{insertAt as I7,moveTo as g7,removeAt as b7}from"efficient-easel/fields";import{useSyncExternalStore as d7}from"react";import{isNodeList as ex}from"efficient-easel/data";import{isNodeList as C3}from"efficient-easel/data";function ts(e,o){let t=null;return e.forEach((r,a)=>{let n=o(r,a);n!==r&&((t??=e.slice())[a]=n)}),t??e}function rs(e,o){let t=null;for(let[r,a]of Object.entries(e.props??{})){if(!C3(a))continue;let n=o(a,r);n!==a&&((t??={...e.props})[r]=n)}return t?{...e,props:t}:e}function Spe(e,o){let t=e;if(!t||!Array.isArray(t.content))return e;let r=o(t.content);return r===t.content?e:{...t,content:r}}var Qk="Flex";function as(e,o){return Zt(e)?typeof e?.[Rt]=="string"?Qh(o?.[Rt]):"":Qh(e?.[Rt])}var Qh=e=>typeof e=="string"?e.trim():"",v3=e=>e.type===Ft&&Array.isArray(e.props?.[Ah])&&e.props[Ah].some(o=>Qh(o?.[Rt])!==""),k3=new Intl.NumberFormat("en-US");function T3(e){return/^\d+$/.test(e)?k3.format(Number(e)):e}function Ppe(e,o){let t=o?o.find(r=>r.key===e)?.value:bC(yl).find(r=>r.key===e)?.value;return t===void 0?null:T3(t)}var P3={[Rt]:"any"};function ox(e,o=!1){let t=e.props;if(!t)return{node:e,names:!1};let r=e.type==="Text"&&(as(t)!==""||o&&as(t,P3)!==""),a=o||v3(e),n=rs(e,l=>ts(l,d=>{let c=ox(d,a);return c.names&&(r=!0),c.node})).props;if(e.type!==Qk)return{node:n===t?e:{...e,props:n},names:r};let s=Xt(n);if(r&&!s&&(n={...n,[So]:yl}),!r&&s===yl){let{[So]:l,...d}=n;n=d}return{node:n===t?e:{...e,props:n},names:!1}}function eT(e,o,t){for(let r of e){if(r?.props?.id===o)return t;for(let a of Object.values(r?.props??{})){if(!ex(a))continue;let n=eT(a,o,r.type===Qk?r:t);if(n!==void 0)return n}}}function Epe(e,o){if(!ex(e))return!0;let t=eT(e,o,null);if(t===void 0)return!0;if(t===null)return!1;let r=Xt(t.props);return!r||r===yl}function oT(e){let o=e?.content;if(!ex(o))return e;let t=o.map(r=>ox(r));return t.every((r,a)=>r.node===o[a])?e:{...e,content:t.map(r=>r.node)}}function tT(e){return ox(e).node}import{jsx as k,jsxs as Rr,Fragment as Fr}from"react/jsx-runtime";import{cloneElement as cg,createContext as Sj,useContext as pO,useEffect as wj,useId as uO,useRef as ii,useState as di}from"react";import{useEasel as qf,useSelectedHost as Ya}from"efficient-easel/easel";import{PIN_LENGTH as Gf,toDateKey as gwe,fromDateKey as bwe}from"efficient-shell/format";function E3(e){return!!e&&typeof e=="object"&&!Array.isArray(e)&&typeof e.src=="string"}function zo(e){return typeof e=="string"?e:E3(e)?e.src:""}function _pe(e,o,t){return tx(e,o.split("."),t)}function tx(e,o,t){if(o.length===0)return t(e);let[r,...a]=o,n=r.endsWith("[]"),s=n?r.slice(0,-2):r;if(!e||typeof e!="object"||Array.isArray(e))return e;let l=e;if(!(s in l))return e;let d=l[s];if(n){if(!Array.isArray(d))return e;let f=!1,u=d.map(p=>{let h=tx(p,a,t);return h!==p&&(f=!0),h});return f?{...l,[s]:u}:e}let c=tx(d,a,t);return c===d?e:{...l,[s]:c}}var O3=["upload","youtube"],_3="upload",Lpe={upload:"Upload",youtube:"YouTube"},A3=["background","click"],R3="background",Fpe={background:"Background",click:"Click to play"};function aT(e){return O3.includes(e)?e:_3}function nT(e){return A3.includes(e)?e:R3}var rT=/^[A-Za-z0-9_-]{11}$/,L3=/^(?:www\.|m\.|music\.)?(?:youtube\.com|youtube-nocookie\.com|youtu\.be)$/;function sT(e){let o=typeof e=="string"?e.trim():"";if(!o)return null;if(rT.test(o))return o;let t;try{t=new URL(/^[a-z]+:\/\//i.test(o)?o:`https://${o}`)}catch{return null}if(t.protocol!=="https:"&&t.protocol!=="http:"||!L3.test(t.hostname))return null;let r=t.pathname.split("/").filter(Boolean),a=t.hostname.endsWith("youtu.be")?r[0]:r[0]==="watch"?t.searchParams.get("v"):r[0]==="embed"||r[0]==="shorts"||r[0]==="live"||r[0]==="v"?r[1]:null;return a&&rT.test(a)?a:null}function rx(e,o){let t=o==="click"?"autoplay=1&playsinline=1&rel=0":`autoplay=1&mute=1&loop=1&playlist=${e}&controls=0&playsinline=1&rel=0&disablekb=1`;return`https://www.youtube-nocookie.com/embed/${e}?${t}`}function lT(e){return`https://i.ytimg.com/vi/${e}/maxresdefault.jpg`}function iT(e){return`https://i.ytimg.com/vi/${e}/hqdefault.jpg`}var ax="Play video";var nx={frame:"Video frame",image:"Image"},Bpe={any:[{field:"loadingShows",is:"image"},{all:[{not:{field:"loadingShows",set:!0}},{field:"poster",set:!0}]}]};function Al(e){let o=e.loadingShows;return o==="image"?"image":o!=null&&o!==""?"frame":zo(e.poster)?"image":"frame"}function Dpe(e,o="desktop"){let[t,r]=o==="phone"?[e.posterPhone,e.videoFramePhone]:[e.poster,e.videoFrame],[a,n]=Al(e)==="image"?[t,r]:[r,t];return zo(a)||zo(n)||void 0}function dT(e){if(zo(e.mediaVideo)){if(Al(e)==="frame")return zo(e.videoFrame)?void 0:zo(e.poster)?"frame-missing-image":"frame-missing-surface";if(!zo(e.poster))return zo(e.videoFrame)?"image-missing-frame":"image-missing-surface"}}var _c="videoFrames",sx="videoFramesNotOwn";function cT(e,o,t){let r=zo(e.mediaVideo);if(!r||!o||Al(e)!=="frame"||zo(e.videoFrame))return;let a=o[r],n=!!zo(e.poster);if(a?.state==="ready")return null;if(n)return!a||a.state==="pending"?void 0:"image-no-frame";if(!a)return t?"save-makes-frame":void 0;switch(a.state){case"pending":return a.noted!=="save"&&t?"save-makes-frame":null;case"dark":return"starts-dark";case"outside":return"outside";case"unsupported":return"unsupported";case"failed":return"failed";default:return null}}function F3(e,o){let t=zo(e),r=t&&o?o[t]:void 0;return r?.state==="ready"&&r.frame?r.frame:void 0}function Npe(e,o,t){let r=t?.[sx];if(!(Array.isArray(r)&&r.includes(e)))return F3(o,t?.[_c])}import{useSyncExternalStore as B3}from"react";function Ac(){let e=new Map,o=new Set,t=r=>(o.add(r),()=>{o.delete(r)});return{get:r=>e.get(r),has:r=>e.has(r),set(r,a){if(!(e.has(r)&&e.get(r)===a)){e.set(r,a);for(let n of o)n()}},use(r){let a=()=>r?e.get(r):void 0;return B3(t,a,a)}}}var Ye="SiteHeader",Ue="SiteFooter",lx="sections",Upe=[Ye,Ue],ns=e=>e===Ye||e===Ue,fT=e=>`${e}:${lx}`;function pT(e,o,t=[]){return{type:e,props:{id:o,[lx]:t}}}var D3=new Set(["Footer",Ye,Ue]);function ss(e){let o=new Set,t=!1,r=e.filter(a=>{let n=a?.type??"";return n==="Header"?(t=!0,!1):D3.has(n)?o.has(n)?(t=!0,!1):(o.add(n),!0):!0});return t?r:e}function Rc(e,o){return e.some(t=>t?.type===o.type)?e:o.type===Ye?[o,...e]:[...e,o]}var uT={[Ye]:{max:3,takes:["Flex","Ticker"]},[Ue]:{max:6,takes:["Flex","Prose","Logos","Divider"]}};function mT(e,o,t){if(!ns(e))return!0;let r=uT[e];return t<r.max&&r.takes.includes(o)}function hT(e,o){let t=o,r=t?.props?.id;if(r==null)return null;let a=e?.content;if(!Array.isArray(a))return null;for(let n of a){if(!ns(n?.type))continue;let s=n.props?.[lx];if(!Array.isArray(s)||!s.some(d=>d?.props?.id===r))continue;let l=uT[n.type];return l.takes.includes(t?.type??"")?s.length>=l.max?{group:n.type,why:"full"}:null:{group:n.type,why:"type"}}return null}import{locateNode as N3}from"efficient-easel/draw";function Rl(e){if(!e)return null;let o=e.lastIndexOf(":");return o>0?{ownerId:e.slice(0,o),slot:e.slice(o+1)}:null}function Lc(e,o,t){let r=Rl(t?.zone),a=r?N3(e,o,r.ownerId):null;return a&&r?{...a,slot:r.slot}:null}import{isNode as M3}from"efficient-easel/data";var xT="Footer",IT=[Ye,xT,Ue],La=e=>{let o=e?.content;return Array.isArray(o)?o:[]},Xr=e=>{let o=e?.zones;return o&&typeof o=="object"&&!Array.isArray(o)?o:null},ls=e=>{let o=e?.props?.id;return typeof o=="string"?o:void 0},gT=e=>Rl(e)?.ownerId??"";function bT(e){let o=ss(La(e)),t=o.some(r=>r?.type===Ue);return o.filter(r=>r?.type===Ye||r?.type===Ue||r?.type===xT&&!t)}function Fc(e,o){let t=new Set,r=a=>{if(Array.isArray(a)){for(let n of a)r(n);return}if(!(!a||typeof a!="object")){if(M3(a)){let n=ls(a);n&&t.add(n)}for(let n of Object.values(a))r(n)}};if(r(e),o){let a=!0,n=new Set;for(;a;){a=!1;for(let[s,l]of Object.entries(o))n.has(s)||!t.has(gT(s))||(n.add(s),r(l),a=!0)}}return t}function yT(e,o){let t=La(e).filter(r=>{let a=ls(r);return typeof r?.type=="string"&&IT.includes(r.type)||a!==void 0&&o(a)});return t.length?Fc(t,Xr(e)):new Set}function ix(e,o){let t={},r={};for(let[a,n]of Object.entries(e??{}))(o.has(gT(a))?t:r)[a]=n;return{owned:t,rest:r}}function ST(e,o){if(!o)return e;let t=bT(o);if(!t.length)return e;let r=t.filter(l=>l.type===Ye),a=t.filter(l=>l.type!==Ye),n={...e,content:[...r,...La(e),...a]},{owned:s}=ix(Xr(o),Fc(t,Xr(o)));return Object.keys(s).length&&(n.zones={...Xr(e)??{},...s}),n}function dx(e,o){if(!o)return{page:e,chrome:null};let t=bT(o),r=new Set(t.map(ls).filter(T=>!!T)),a=[],n=[];for(let T of La(e)){let y=ls(T);y&&r.has(y)||ns(T?.type)?n.push(T):a.push(T)}let s=new Map(n.map(T=>[ls(T),T])),l=new Set,d=ss(La(o)).flatMap(T=>{let y=ls(T);if(!y||!r.has(y))return[T];let b=s.get(y);return b?(l.add(b),[b]):[]});for(let T of n)l.has(T)||d.some(y=>y?.type===T.type)||(d=T.type===Ye?[T,...d]:[...d,T]);d=ss(d);let c=d.length===La(o).length&&d.every((T,y)=>T===La(o)[y]),f=Xr(e),u=Fc(d,f),{owned:p,rest:h}=ix(f,u),I=ix(Xr(o),Fc(t,Xr(o))).owned,g={...o,content:c?o.content:[...d]},C=Xr(o);if(C||Object.keys(p).length){let T={};for(let[y,b]of Object.entries(C??{}))y in I?y in p&&(T[y]=p[y]):T[y]=b;for(let[y,b]of Object.entries(p))y in T||(T[y]=b);g.zones=T,C&&H3(g.zones,C)&&(g.zones=C)}let w={...e,content:a};return f&&(Object.keys(h).length||!Object.keys(I).length?w.zones=h:delete w.zones),{page:w,chrome:g}}function H3(e,o){let t=Object.keys(e),r=Object.keys(o);return t.length===r.length&&t.every((a,n)=>a===r[n]&&e[a]===o[a])}function wT(e,o){return t=>e(t)||t!==void 0&&IT.includes(t)&&o()}var CT=null;function cx(e){CT=e}function Bt(){return CT}var vT=null;function fx(e){vT=e}function Bc(){return vT}var px=Ac();function kT(e,o,t){if(!o)return;let r={...px.get(e)};for(let[a,n]of Object.entries(o))r[a]={...n,noted:t};px.set(e,r)}function TT(e,o){kT(e,o,"load")}function PT(e,o){kT(e,o,"save")}function Dc(e){return px.use(e)}var ux=e=>!!Bt()?.sectionOf(e);function ET(e,o=ux){return yT(e,o)}function OT(e,o,t,r=ux){if(t)return e&&ET(o,r).has(e)?void 0:t}function _T(e,o,t=ux){if(!e)return{};let r=[...ET(o,t)];return r.length?{[_c]:e,[sx]:r}:{[_c]:e}}import{ScreenDocumentContext as Cj}from"efficient-easel/screen/components/ScreenDocumentContext";import{readHidable as la,hidableText as vj}from"efficient-easel/draw";import{FOLD_FIELD_MARKER as mO,LINK_FIELD_MARKER as kj,MEDIA_FIELD_MARKER as Tj,SCAFFOLD_FIELD_MARKER as Pj,TEXT_FIELD_MARKER as Lr,foldMetaOf as ia,textFieldIdentifier as Pwe}from"efficient-easel/draw";import{jsx as NT}from"react/jsx-runtime";import{useCallback as G3}from"react";import{useEasel as j3}from"efficient-easel/easel";import{SettingsAction as K3}from"efficient-easel/panel";import{isLengthUnit as z3}from"efficient-easel/screen/lib/content/length-units";import{CORNER_SIDES as Nc,hasCornerSubset as Ll,normalizeCornerSides as or}from"efficient-easel/screen/lib/content/style-keys";import{isLengthUnit as W3}from"efficient-easel/screen/lib/content/length-units";var Fl={kind:"radius",unitKey:"sectionCornersUnit"};function mx(e){return typeof e=="number"&&Number.isFinite(e)}function aue(e,o,t){if(!mx(e))return;let r=W3(t)&&t!=="px"?Jn(e,t):Jn(Jt(e));if(Object.keys(r).length===0)return;let a=r[hx];if(typeof a!="string")return r;let n=Ll(o)?Fa(a,or(o)??[]):a;return{...r,[U3]:n}}var U3="--sf-section-radius",hx="--sf-card-radius";function Fa(e,o){return Nc.map(t=>o.includes(t)?e:"0").join(" ")}var AT=[{value:"tl",label:"Top left"},{value:"tr",label:"Top right"},{value:"bl",label:"Bottom left"},{value:"br",label:"Bottom right"}];var Bl={kind:"radius",unitKey:"cardCornersUnit"},$3="--sf-card-box-radius";function xx(e){return typeof e=="number"&&Number.isFinite(e)}function due(e,o,t){if(!xx(e))return;let r=(z3(t)&&t!=="px"?Jn(e,t):Jn(Jt(e)))[hx];if(typeof r!="string")return;let a=Ll(o)?Fa(r,or(o)??[]):r;return{[$3]:a}}function RT(e,o){let t=e.find(s=>s?.props?.id===o);if(!t)return[...e];let r=t.props?.cardCorners,a=t.props?.cardCornerSides,n=t.props?.[Bl.unitKey];return e.map(s=>s?.props?.id===o?s:{...s,props:{...s.props,cardCorners:r,cardCornerSides:a,[Bl.unitKey]:n}})}function LT(e,o,t){let r=Lc(e,o,t),a=r?.slot??"",n=r&&Array.isArray(r.item.props[a])?r.item.props[a]:[],s=t?.index??-1,l=s>=0?n[s]:void 0,d=l?.props?.id?String(l.props.id):"",c=Math.max(n.length-1,0);return!r||!d?{can:!1,reason:"unreachable",others:0}:n.length<=1?{can:!1,reason:"alone",others:c}:xx(l?.props?.cardCorners)?{can:!0,others:c,zone:r.zone,index:r.index,data:{...r.item,props:{...r.item.props,[a]:RT(n,d)}}}:{can:!1,reason:"unset",others:c}}function FT(e){return e.can?Uo("Gives the other card this card's Corners.","Gives the other {n} cards this card's Corners.",e.others):e.reason==="alone"?i("This is the only card in the section."):e.reason==="unset"?i("Set this card's corners first."):i("This card is not in a section that can share corners.")}function BT(e){return Uo("Applied to {n} card","Applied to {n} cards",e)}function DT(e,o){e.can&&o(e.zone,e.index,e.data)}import{useSectionOps as V3}from"efficient-easel/screen/lib/document/use-section-ops";var q3="apply-corners-to-siblings",Y3="Apply to all cards";function X3({plan:e,onPress:o}){return NT(K3,{id:q3,label:i(Y3),note:FT(e),disabled:!e.can,doneLabel:BT(e.others),onPress:o})}function MT(){let{appState:e,config:o}=j3(n=>n),t=V3(),r=LT(o,e.data.content??[],e.ui.itemSelector),a=G3(()=>{DT(r,t.replaceComponent)},[r,t]);return NT(X3,{plan:r,onPress:a})}import{isShown as qT,lazyShowWhenContext as d6}from"efficient-shell/format";var Zr="product",Mc="recordType",HT={key:Zr,label:"Product",fields:[]},Z3=/^[a-z][a-z0-9]*(-[a-z0-9]+)*$/,J3=/^[a-z][A-Za-z0-9]*$/,Q3=["text","date","images"],Ix=new Map,WT=0;function e6(e){if(typeof e.key!="string"||!Z3.test(e.key))throw new Error(`A record type key is lower-case words joined by hyphens, not ${JSON.stringify(e.key)}.`);if(e.key===Zr)throw new Error("The product record type is the builder's own and is not declared by a host.");if(typeof e.label!="string"||!e.label.trim())throw new Error(`The record type ${e.key} has no label.`);let o=new Set;for(let t of e.fields){if(typeof t.key!="string"||!J3.test(t.key)||o.has(t.key))throw new Error(`The record type ${e.key} has a field key it cannot use: ${JSON.stringify(t.key)}.`);if(!Q3.includes(t.kind))throw new Error(`The field ${t.key} of ${e.key} has no kind ${JSON.stringify(t.kind)}.`);o.add(t.key)}return{key:e.key,label:e.label.trim(),fields:e.fields.map(t=>({...t}))}}function Cue(e){let o=e.map(e6);for(let t of o)Ix.set(t.key,t);o.length&&(WT+=1)}function gx(){return[HT,...Ix.values()]}function o6(e){return e===Zr?HT:Ix.get(e)??null}function bx(){return WT}function Dl(e){let o=e?.[Mc];return typeof o!="string"?Zr:o.trim()||Zr}function yx(e){return Dl(e)===Zr}function vue(e,o){let t=o6(e)?.fields??[];return o?t.filter(r=>o.includes(r.kind)):t}var Hc="product",UT="tyre",t6=[Hc,UT];function Pue(e){return t6.includes(e)}var r6="productType",a6={[Hc]:"alloy-wheel",[UT]:"tyre"},n6=["alloy-wheel","tyre"];function zT(e,o){return yx(o)?$T(o)??a6[e]??null:null}function $T(e){if(!yx(e))return null;let o=e?.[r6];return typeof o=="string"&&n6.includes(o)?o:null}function Eue(e){let o=e?.root;return $T(o?.props)}var Sx="Main Pages",s6="Dynamic Pages",wx="dynamic",l6="dynamic";function Ba(e){return e.kind===l6}var Cx="lightbox";function GT(e){return e.kind===Cx}function jT(e){let o=[],t=[];for(let r of e){if(Ba(r)){t.push(r);continue}let a=r.groupKey??(r.group?`folder:${r.group}`:"top"),n=o[o.length-1];n&&n.key===a?n.rows.push(r):o.push({key:a,label:r.group??Sx,rows:[r]})}if(t.length){let r=o.findIndex(a=>a.key.startsWith("system:"));o.splice(r===-1?o.length:r,0,{key:wx,label:s6,rows:t})}return o}var Wc=null,KT=null;function i6(e,o){Wc=e,KT=o}function Fue(e){i6(e,null)}function Bue(){return Wc}function Nl(){return Ba({kind:KT})||Wc===Hc}function Due(e){return zT(Wc??"",e)??"alloy-wheel"}function Nue(e){return Nl()?Dl(e):null}function vx(e,o,t){let r=!1,a={};for(let[n,s]of Object.entries(e)){if(!qT(Eh(s),o??{},t)){r=!0;continue}let l=c6(s,o?.[n],o??{},t);l!==s&&(r=!0),a[n]=l}return r?a:e}function c6(e,o,t,r){let a=e?.options;if(!Array.isArray(a))return e;let n=a.filter(s=>s?.value===o||!s?.showWhen||qT(s.showWhen,t,r));return n.length===a.length?e:{...e,options:n}}function YT(e,o,t,r){let a=Lc(o,t,r);return{device:e,parentType:a?.item.type,parent:a?.item.props}}function VT(e,o){if(!e||typeof e!="object")return!1;let t=e;if(typeof t.context=="string"&&(t.context===o||t.context.startsWith(`${o}.`)))return!0;if("not"in t)return VT(t.not,o);for(let r of[t.all,t.any])if(Array.isArray(r)&&r.some(a=>VT(a,o)))return!0;return!1}function jue(e,o={}){return d6({parentType:()=>e.parent?.type??void 0,parent:()=>e.parent?.props??void 0,dynamicPage:()=>Nl(),root:()=>e.appState?.data?.root?.props,...o})}import{isLengthUnit as f6}from"efficient-easel/screen/lib/content/length-units";var XT=1,p6="cardImageUnit",kx={kind:"radius",unitKey:p6},ZT={kind:"radius"};function u6(e){return Jt(e)}function Zue(e,o){if(f6(o)&&o!=="px"){let r=q(e);return r!==void 0&&r>=0?{"--sf-card-image-radius":We(r,o)}:{}}let t=u6(e);return t===null?{}:{"--sf-card-image-radius":`${t}px`}}import{isLengthUnit as m6}from"efficient-easel/screen/lib/content/length-units";var JT={kind:"radius",unitKey:"cornersUnit"},QT=1,eP="Corners";function h6(e){return Jt(e)}function ame(e,o,t){let r=m6(t)&&t!=="px"?q(e):void 0,a=r===void 0?h6(e):null;if(r===void 0&&a===null)return null;let n=r!==void 0?We(Math.max(0,r),t):`${a}px`;return{borderRadius:Ll(o)?Fa(n,or(o)??[]):n}}var tP=12,is=6,x6=800,Uc={twoAcross:{label:"Two across",across:2,acrossPhone:2,desktop:[[6,1],[6,1]],phone:[[3,1],[3,1]]},zigzag:{label:"Zigzag",across:2,acrossPhone:2,desktop:[[8,1],[4,1],[4,1],[8,1]],phone:[[4,1],[2,1],[2,1],[4,1]]},brick:{label:"Brick",across:2,acrossPhone:2,desktop:[[5,1],[7,1],[7,1],[5,1]],phone:[[2,1],[4,1],[4,1],[2,1]]},twoTall:{label:"Two tall",across:2,acrossPhone:2,desktop:[[6,2],[6,2]],phone:[[3,2],[3,2]]},offsetTall:{label:"Offset tall",across:2,acrossPhone:2,desktop:[[5,2],[7,1],[3,1],[4,1]],phone:[[3,2],[3,1],[3,1]]},ladder:{label:"Ladder",across:2,acrossPhone:2,desktop:[[3,2],[9,1],[5,1],[4,1]],phone:[[2,2],[4,1],[2,1],[2,1]]},threeAcross:{label:"Three across",across:3,acrossPhone:3,desktop:[[4,1],[4,1],[4,1]],phone:[[2,1],[2,1],[2,1]]},bigLeft:{label:"Big left",across:3,acrossPhone:3,desktop:[[6,1],[3,1],[3,1]],phone:[[4,1],[1,1],[1,1]]},bigRight:{label:"Big right",across:3,acrossPhone:3,desktop:[[3,1],[3,1],[6,1]],phone:[[1,1],[1,1],[4,1]]},threeStagger:{label:"Three stagger",across:3,acrossPhone:3,desktop:[[5,1],[4,1],[3,1],[3,1],[4,1],[5,1]],phone:[[3,1],[2,1],[1,1],[1,1],[2,1],[3,1]]},threeLadder:{label:"Three ladder",across:3,acrossPhone:3,desktop:[[3,1],[4,1],[5,1],[5,1],[4,1],[3,1]],phone:[[1,1],[2,1],[3,1],[3,1],[2,1],[1,1]]},tallMiddle:{label:"Tall middle",across:3,acrossPhone:3,desktop:[[4,1],[4,2],[4,1],[4,1],[4,1]],phone:[[2,1],[2,2],[2,1],[2,1],[2,1]]},fourAcross:{label:"Four across",across:4,acrossPhone:2,desktop:[[3,1],[3,1],[3,1],[3,1]],phone:[[3,1],[3,1]]},bigFirst:{label:"Big first",across:4,acrossPhone:2,desktop:[[6,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1]],phone:[[6,1],[3,1],[3,1]]},fourStagger:{label:"Four stagger",across:4,acrossPhone:2,desktop:[[4,1],[3,1],[2,1],[3,1],[2,1],[3,1],[4,1],[3,1]],phone:[[4,1],[2,1],[2,1],[4,1]]},tallFirst:{label:"Tall first",across:4,acrossPhone:2,desktop:[[3,2],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1]],phone:[[3,2],[3,1],[3,1]]},oneThenFour:{label:"One then four",across:4,acrossPhone:2,desktop:[[12,1],[3,1],[3,1],[3,1],[3,1]],phone:[[6,1],[3,1],[3,1]]},sixAcross:{label:"Six across",across:6,acrossPhone:3,desktop:[[2,1],[2,1],[2,1],[2,1],[2,1],[2,1]],phone:[[2,1],[2,1],[2,1]]},sixStagger:{label:"Six stagger",across:6,acrossPhone:6,desktop:[[3,1],[2,1],[1,1],[2,1],[1,1],[3,1],[1,1],[3,1],[2,1],[2,1],[1,1],[3,1]],phone:[[1,1],[1,1],[1,1],[1,1],[1,1],[1,1]]},twoThenThrees:{label:"Two, then threes",across:3,acrossPhone:3,lead:[[6,1],[6,1]],desktop:[[4,1],[4,1],[4,1]],leadPhone:[[3,1],[3,1]],phone:[[2,1],[2,1],[2,1]]},twoThenThreesPhoto:{label:"Two, then threes \xB7 photo",across:3,acrossPhone:1,lead:[[6,1],[6,1]],desktop:[[4,1],[4,1],[4,1]],phone:[[6,1]],ratio:"landscape"}},rP=["phone","acrossPhone","leadPhone"];var I6=new Set(rP),Ml=Object.fromEntries(Object.entries(Uc).map(([e,o])=>[e,Object.fromEntries(Object.entries(o).filter(([t])=>!I6.has(t)))])),Tx=Object.keys(Uc),aP=[2,3,4,6];function Px(e,o){return Tx.filter(t=>t===o||e===null||Ml[t].across===e)}function nP(e){let o=e.layout;return typeof o=="string"&&$e(Uc,o)?o:null}function Ex(e){let o=nP(e);return o?g6(o,e.layoutPhone):null}var zc={oneAcross:{label:"One across",phone:[[is,2]],acrossPhone:1}};function sP(e){return typeof e=="string"&&$e(zc,e)?e:null}function oP(e,o){return o?is/e.acrossPhone:tP/e.across}function Ox(e){return e.ratio?wk.find(o=>o.shape===e.ratio)?.ratio??null:null}function lP(e){return[...e.lead??[],...e.desktop]}function g6(e,o){let t=Uc[e],r=sP(o);if(!r)return t;let{phone:a,acrossPhone:n}=zc[r],s=Object.fromEntries(rP.map(l=>[l,void 0]));return{...t,...s,phone:a,acrossPhone:n}}var b6="sf-wall--";function y6(e){let o=nP(e);if(!o)return"";let t=sP(e.layoutPhone);return`${b6}${o}${t?`--${t}`:""}`}function ime(e){let o=Ex(e);if(!o)return"";let t=`.${y6(e)}`,r=[],a=(l,d,c)=>`${t}:has(> :nth-child(${l}n+${d+c}):last-child) > :nth-last-child(-n+${c})`,n=(l,d,c=[])=>{let f=[],u=l.length,p=c.length;c.forEach(([h,I],g)=>{f.push(`${t} > :nth-child(${g+1}){grid-column:span ${h};grid-row:span ${I}}`)}),l.forEach(([h,I],g)=>{f.push(`${t} > :nth-child(${u}n+${p+g+1}){grid-column:span ${h};grid-row:span ${I}}`)});for(let h=1;h<u;h+=1)f.push(`${a(u,p,h)}{grid-column:span ${d};grid-row:span 1}`);return f};r.push(`${t}{grid-template-columns:repeat(${tP},minmax(0,1fr))}`);let s=Ox(o);if(s&&(r.push(`${t}${t}{grid-auto-rows:auto}`),r.push(`${t}${t} > *{aspect-ratio:${s[0]}/${s[1]};height:auto}`)),r.push(...n(o.desktop,oP(o,!1),o.lead)),r.push(`@media (max-width:${x6}px){`),r.push(`${t}{grid-template-columns:repeat(${is},minmax(0,1fr))}`),r.push(...n(o.phone,oP(o,!0),o.leadPhone)),o.phone.length===1&&!o.leadPhone?.length){let[l,d]=o.phone[0],c=o.lead?.length??0;for(let f=1;f<o.desktop.length;f+=1)r.push(`${a(o.desktop.length,c,f)}{grid-column:span ${l};grid-row:span ${d}}`)}return r.push("}"),r.join("")}var $c=12,iP=1,S6=3;var w6=3;function Gc(e,o,t){let r=typeof e=="number"?e:Number.parseInt(String(e??""),10);return Number.isFinite(r)?Math.min(t,Math.max(o,Math.trunc(r))):null}function C6(e){return Gc(e,1,$c)??w6}function fme(e,o){return Gc(e,iP,S6)??(C6(o)===4?2:iP)}function pme(e){return e==null||e===""?null:Gc(e,1,$c)}var ume="data-sf-span",_x=4;function mme(e){return e==null||e===""?null:Gc(e,1,_x)}var hme="data-sf-row-span",Jr=["gridSpan","gridRowSpan"];function xme(e){if(!e)return!1;if(e.type==="Grid")return!0;if(e.type==="GalleryB"){if(Ex(e.props??{}))return!1;let o=e.props?.columns;return o!=null&&o!==""}return!1}import{jsx as v6}from"react/jsx-runtime";import*as k6 from"efficient-easel/icons";function jc(e){let o=e.replace(/(^|-)([a-z])/g,(r,a,n)=>n.toUpperCase()),t=k6[`${o}Icon`];return t?v6(t,{size:16}):null}import{jsx as Qr,Fragment as E6,jsxs as xP}from"react/jsx-runtime";import{useContext as O6,useEffect as _6,useId as A6,useState as IP}from"react";import{SettingsField as R6,SettingsSwitch as L6}from"efficient-easel/panel";import{AnchorIcon as F6}from"efficient-easel/icons";import{ScreenDocumentContext as B6}from"efficient-easel/screen/components/ScreenDocumentContext";import{Snippet as D6}from"efficient-shell/ui";import{slugify as N6}from"efficient-shell/format";import{slugify as T6}from"efficient-shell/format";function Hl(e){return typeof e=="string"?e.trim():e&&typeof e=="object"&&typeof e.text=="string"?e.text.trim():""}var Kc=e=>T6(Hl(e));var Vc="homepage";import{slugify as P6}from"efficient-shell/format";var dP=[{value:"page",label:"Page"},{value:"anchor",label:"Anchor"},{value:"blog",label:"Blog post",needs:"service"},{value:"product",label:"Product",needs:"commerce"},{value:"popup",label:"Popup"},{value:"custom",label:"Custom URL"}];function cP(e){return e.offersCommerce&&e.offersService?dP:dP.filter(o=>!o.needs||(o.needs==="commerce"?e.offersCommerce:e.offersService))}var Ax="#popup:";function fP(e){return`${Ax}${e}`}function pP(e){return e.startsWith(Ax)&&e.slice(Ax.length).trim()||null}function Wl(e){return e===Vc?"/":`/${e}`}function uP(e){return`/journal/${e}`}function Tme(e){return`/wheels/${e}`}function qc(e,o){return`${Wl(e)}#${o}`}function mP(...e){let o=new Set,t=[];for(let r of e)for(let a of r?.content??[]){let n=Hl(a?.props?.anchor);if(!n)continue;let s=P6(n);!s||o.has(s)||(o.add(s),t.push({slug:s,name:n}))}return t}function Pme(e){let o=e.indexOf("#"),t=o===-1?e:e.slice(0,o),r=t.indexOf("?");return r===-1?t:t.slice(0,r)}function hP(e){return/^\/wheels\/[^/?#]+(?:[?#].*)?$/.test(e)}import{readHidable as M6}from"efficient-easel/draw";function gP({value:e,onChange:o,nameBox:t}){let r=M6(e).text,[a,n]=IP(!1),s=a||r.trim()!=="",l=A6();return xP(E6,{children:[Qr(R6,{label:i("Add an anchor"),labelId:l,icon:Qr(F6,{}),action:Qr(L6,{checked:s,ariaLabelledBy:l,onChange:d=>{n(d),!d&&r!==""&&o("")}})}),s&&t(e,o),s&&Qr(H6,{name:r})]})}function H6({name:e}){let o=O6(B6),t=o?.templateId?"":o?.currentSlug??"",[r,a]=IP("");_6(()=>a(Cc()),[]);let n=N6(e);if(!n||!t)return null;let s=`${r}${qc(t,n)}`,l=s.replace(/^https?:\/\//,""),d=l.lastIndexOf("#");return Qr("div",{className:"sf-anchor-link",children:Qr(D6,{value:s,label:i("link"),size:"sm",children:xP("span",{className:"sf-anchor-link-text",children:[Qr("span",{className:"sf-anchor-link-path",children:l.slice(0,d)}),Qr("span",{className:"sf-anchor-link-hash",children:l.slice(d)})]})})})}import{jsx as tr,jsxs as W6}from"react/jsx-runtime";import{Fragment as U6}from"react";import{Button as Yc,Tooltip as z6}from"efficient-shell/ui";function bP({status:e,statusText:o,onRefresh:t,busy:r=!1,edit:a,hint:n,spaced:s=!0,compact:l=!1,oneLine:d=!1}){return l?tr("div",{className:`sf-blogsource sf-blogsource--compact${d?" sf-blogsource--line":""}`,style:s?{marginTop:8}:void 0,children:tr(z6,{content:n,className:d?"sf-name-tip":void 0,children:tr("p",{className:"sf-blogsource-status","data-state":e,children:[o?tr(U6,{children:o},"status"):null,t?tr(Yc,{variant:"link",size:"sm",className:"sf-blogsource-link",onClick:t,disabled:r,children:i("Refresh now")},"refresh"):null,a?tr(Yc,{variant:"link",size:"sm",className:"sf-blogsource-link",onClick:a.onClick,children:a.label},"edit"):null].filter(Boolean).flatMap((c,f)=>f?[" \xB7 ",c]:[c])})})}):W6("div",{className:"sf-blogsource",style:s?{marginTop:9}:void 0,children:[tr("p",{className:"sf-blogsource-status","data-state":e,children:o}),t?tr(Yc,{variant:"secondary",className:"sf-blogsource-action",onClick:t,disabled:r,children:i("Refresh now")}):null,a?tr(Yc,{variant:"secondary",className:"sf-blogsource-action",onClick:a.onClick,children:a.label}):null,tr("p",{className:"es-field-hint",children:n})]})}import{AdjustIcon as Ej,EyeIcon as Oj,AnimationIcon as _j,BackgroundIcon as eO,BorderAllIcon as Aj,BlockSectionIcon as Rj,ColumnWidthsIcon as fg,ColumnsIcon as hO,CornerIcon as xO,DirectionDownIcon as Lj,DirectionLeftIcon as Fj,DirectionRightIcon as Bj,DirectionUpIcon as Dj,EditIcon as Nj,GapIcon as Mj,GridIcon as IO,GroundIcon as lg,HashIcon as Hj,HeightIcon as pg,ImageIcon as Wj,ListIcon as Uj,LocationIcon as oO,PaddingBottomIcon as gO,PaddingLeftIcon as bO,PaddingRightIcon as yO,PaddingTopIcon as ug,PageIcon as zj,StickyIcon as SO,SearchIcon as $j,SquareIcon as Gj,TypeIcon as jj,WidthIcon as Kj}from"efficient-easel/icons";import{jsx as Je,Fragment as Da,jsxs as Na}from"react/jsx-runtime";import{CaptionIcon as $6,DateIcon as G6,FlagIcon as j6,TitleIcon as K6,ButtonIcon as V6,DollarIcon as q6,HashIcon as Y6,LinkIcon as X6,NoteIcon as Z6,TagIcon as J6,TextLinesIcon as Q6}from"efficient-easel/icons";var yP={body:Q6,button:V6,link:X6,label:J6,number:Y6,price:q6,note:Z6,name:j6,date:G6,caption:$6,title:K6},SP={eyebrow:Na(Da,{children:[Je("path",{d:"M5 6.5h5"}),Je("path",{d:"M5 12.5h14"}),Je("path",{d:"M5 18h11"})]}),heading:Na(Da,{children:[Je("path",{d:"M6.5 5v14"}),Je("path",{d:"M17.5 5v14"}),Je("path",{d:"M6.5 12h11"})]}),intro:Na(Da,{children:[Je("path",{d:"M4 5.5v13"}),Je("path",{d:"M8 7.5h12"}),Je("path",{d:"M8 12h12"}),Je("path",{d:"M8 16.5h8"})]}),value:Na(Da,{children:[Je("rect",{x:"2.5",y:"7",width:"19",height:"10",rx:"2"}),Je("path",{d:"M6.5 12h7"})]}),quote:Na(Da,{children:[Je("path",{d:"M9.5 5.5C7 7.2 5.5 9.7 5.5 12.8h4v5.7h-5v-5.7"}),Je("path",{d:"M19.5 5.5c-2.5 1.7-4 4.2-4 7.3h4v5.7h-5v-5.7"})]}),tag:Na(Da,{children:[Je("rect",{x:"3",y:"5.5",width:"18",height:"13",rx:"2.5"}),Je("path",{d:"M8 9.5h8"}),Je("path",{d:"M12 9.5v5"})]}),meta:Na(Da,{children:[Je("path",{d:"M4 7h16"}),Je("path",{d:"M4 14h3.5"}),Je("path",{d:"M10.5 14h3"}),Je("path",{d:"M17 14h3"})]})};function Rx({noun:e,size:o=14,strokeWidth:t=1.8,className:r,style:a}){let n=yP[e];return n?Je("span",{className:r,style:{display:"inline-flex",...a},"aria-hidden":"true",children:Je(n,{size:o})}):Je("svg",{className:r,style:a,width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:t,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:SP[e]})}var qme=Object.keys(yP);var Yme=Object.keys(SP);import{parseHexColor as lW}from"efficient-shell/format";import{parseHexColor as TP}from"efficient-shell/format";import{COLOR_SLOTS as PP,FILL_COLOR_SLOTS as aW,colorRole as nW,fillColorRole as EP}from"efficient-shell/markup";import{parseHexColor as wP}from"efficient-shell/format";import{FILL_COLOR_SLOTS as eW}from"efficient-shell/markup";var Xc=e=>{let o=fk.find(t=>t.role===e);return o?`var(${o.token})`:""},oW=e=>Xc(e)?`var(--theme-${e})`:"",tW={main:{ink:Pa.accent,page:Pa.accent,key:"accent",label:()=>i("Main"),words:e=>i("Theme {n} main color",{n:e})},text:{ink:Pa.text,page:Pa.text,key:"text",label:()=>i("Text"),words:e=>i("Theme {n} text color",{n:e})},background:{ink:Xc("bg"),page:oW("bg"),key:"background",label:()=>i("Background"),words:e=>i("Theme {n} background",{n:e})},muted:{ink:Pa.labels,page:Pa.labels,key:"muted",label:()=>i("Muted"),words:e=>i("Theme {n} muted color",{n:e})},surface:{ink:Xc("surface"),page:Xc("surface"),key:"surface",label:()=>i("Surface"),words:e=>i("Theme {n} surface color",{n:e})}};function ea(e){return K(tW,e)}var Lx="#9ca3af";function ds(e,o,t){let r=ea(e);return r?{hex:wP(o[r.key]??"")??"",words:r.words(t)}:null}function CP(e,o){return eW.flatMap(t=>{let r=ds(t,e,o);return r&&ea(t)?.ink?[{name:t,label:r.words,value:r.hex||Lx}]:[]})}var rW=["main","text","background"];function vP(e){let o=new Set,t=[];return xo(e).themes.forEach((r,a)=>{for(let n of rW){let s=ea(n),l=s?r[s.key]:void 0,d=typeof l=="string"&&l?wP(l):null;!s||!d||o.has(d)||(o.add(d),t.push({value:d,label:s.words(a+1)}))}}),t}function Pr(e){return ea(e)?.ink??""}function rr(e){if(typeof e!="string")return null;let o=EP(e.trim());return o?.kind==="slot"&&Pr(o.slot)?o.slot:null}var sW={accent:"main",labels:"muted"};function rt(e){return K(sW,e)??e}function cs(e){if(!e)return"";if(e.startsWith("#"))return TP(e)===e.toLowerCase()?e:"";let o=nW(rt(e));return o?.kind==="slot"?Pr(o.slot):""}function fs(e,o=PP){return o.flatMap(t=>{let r=ea(t);return r?.ink?[{name:t,label:r.label(),value:e?.[t]||Lx}]:[]})}function OP(e){let o=EP(rt(e));return o?.kind==="slot"?Pr(o.slot):""}function Fx(e){let o=e?.trim();return o?aW.find(t=>Pr(t)===o)??null:null}function _P(e){let o={},t=e.ownerDocument,r=t?.defaultView;if(!t||!r)return o;let a=r.getComputedStyle(e),n=t.createElement("canvas").getContext("2d");for(let s of PP){let l=Pr(s);if(!l)continue;let d=l.replace(/^var\((--[\w-]+)\)$/,"$1"),c=a.getPropertyValue(d).trim();if(!c)continue;let f=kP(c);!f&&n&&(n.fillStyle="#000000",n.fillStyle=c,f=kP(String(n.fillStyle))),f&&(o[s]=f)}return o}function kP(e){let o=e.trim().toLowerCase();if(o.startsWith("#"))return TP(o);let t=o.match(/^rgba?\(\s*(\d+)[\s,]+(\d+)[\s,]+(\d+)/);return t?`#${t.slice(1,4).map(r=>Math.min(255,Number(r)).toString(16).padStart(2,"0")).join("")}`:null}var iW="#ffffff";function Bx(e){return AP(e)||(dW(e)?e:iW)}function AP(e){let o=rr(e);return o?ea(o)?.page??"":""}function dW(e){return typeof e=="string"&&lW(e)===e.toLowerCase()||AP(e)!==""}function uhe(e){return{"--bg":Bx(e)}}import{parseHexColor as cW}from"efficient-shell/format";import{fillColorRole as fW}from"efficient-shell/markup";function Ma(e,o,t,r){let a=r??t??o,n=t!==null&&t!==o,s=a!==null&&a!==o;return{className:[n?e.tabletClass:"",s?e.phoneClass:""].filter(Boolean).join(" "),style:{...n?{[e.tabletVar]:t}:{},...s?{[e.phoneVar]:a}:{}}}}var vhe="sf-card",khe="[--sf-card-lift:none] [--sf-card-shadow-hover:var(--sf-card-shadow,none)]",oa={min:0,max:100,step:5,fallback:0,unit:"%"},pW=[{label:"Even",value:"even"},{label:"From the bottom",value:"bottom"}],uW="68%",The={desktop:20,phone:20,side:40,sidePhone:24},Phe="sf-box-sides";function Nx(e){return typeof e=="string"&&e.trim()!==""}function Ehe(e){return Nx(typeof e?.bgImage=="string"?e.bgImage:null)||Zc(e)}function Zc(e){return Zt(e,oc)!==""}function Ohe(e,o){return o||!Zc(e)?e:{...e,[oc]:""}}function _he(e,o){return Lh(o,Zt(e,oc))?.trim()||null}function RP(e,o){let t=typeof e=="number"?e:Number.parseFloat(String(e??""));if(!Number.isFinite(t)||t<=0)return null;let r=(Math.min(oa.max,Math.max(oa.min,t))/100).toFixed(2);return o!=="bottom"?{background:mc(Number(r))}:{background:`linear-gradient(0deg, ${mc(Number(r))} 0%, ${mc(0)} ${uW})`}}var Jc=[{label:"Flat",value:"",hint:"One colour from top to bottom"},{label:"Fade",value:"down",hint:"The colour fades into the page colour at the bottom"}],LP="fillFade",Dx=Jc[1].value,Qc=e=>e===Dx?Dx:Jc[0].value,mW=[{mix:"12%",at:"50%"},{mix:"19%",at:"70%"},{mix:"50%",at:"95%"}];function Ahe(e){return Qc(e)!==Dx?null:{backgroundImage:`linear-gradient(to bottom, transparent, ${mW.map(o=>`color-mix(in srgb, var(--bg) ${o.mix}, transparent) ${o.at}`).join(", ")})`}}var ef=e=>typeof e=="string"?cW(e.trim()):null,Ul=e=>{let o=ef(e);if(o!==null||typeof e!="string")return o;let t=e.trim();return t&&!t.startsWith("#")&&OP(t)||null},of=e=>{if(typeof e!="string")return null;let o=fW(rt(e.trim()));return o?.kind==="slot"?o.slot:null},Mx="swatch";function Rhe(e,o){if(!o)return null;let t=Lh(o,Zt(e,Mx)),r=rr(t);return ef(t)??(r&&Pr(r)||null)}var hW={tabletClass:"sf-fill-tablet",tabletVar:"--sf-fill-tablet",phoneClass:"sf-fill-phone",phoneVar:"--sf-fill-phone"};function Lhe(e,o,t){return Ma(hW,Ul(e),Ul(o),Ul(t))}var xW={tabletClass:"sf-wash-tablet",tabletVar:"--sf-wash-tablet",phoneClass:"sf-wash-phone",phoneVar:"--sf-wash-phone"};function Fhe(e){let o=RP(e.darken,e.darkenStyle);if(!o)return{className:"",style:{}};let t=(u,p)=>String(RP(u,p)?.background??"none"),r=u=>(typeof u=="number"||typeof u=="string"&&u.trim()!=="")&&Number.isFinite(Number(u))?u:void 0,a=u=>pW.some(p=>p.value===u)?u:void 0,[n,s,l,d]=[r(e.darkenTablet),a(e.darkenStyleTablet),r(e.darkenPhone),a(e.darkenStylePhone)],c=n??e.darken,f=s??e.darkenStyle;return Ma(xW,String(o.background),n!==void 0||s!==void 0?t(c,f):null,l!==void 0||d!==void 0?t(l??c,d??f):null)}function Bhe(e,o){let t={"top-left":["start","start"],"top-center":["center","start"],"top-right":["end","start"],left:["start","center"],center:["center","center"],right:["end","center"],"bottom-left":["start","end"],"bottom-center":["center","end"],"bottom-right":["end","end"]},[r,a]=t[e]??t.center,[n,s]=o==="column"?[a,r]:[r,a];return lv(n,s)}function FP(e,o){let t=e?.content;if(!Array.isArray(t))return null;for(let r of t){if(!r||typeof r!="object")continue;let{type:a,props:n}=r;if(n?.id===o)return null;if(Hx(r,o,0))return{type:typeof a=="string"?a:"",props:n??{}}}return null}function Hx(e,o,t){if(t>12||!e||typeof e!="object")return!1;if(Array.isArray(e))return e.some(a=>Hx(a,o,t+1));let r=e.props;return r&&typeof r=="object"&&r.id===o?!0:Object.values(e).some(a=>Hx(a,o,t+1))}function BP(e,o){let t=e?.content;return Array.isArray(t)?tf(t,o,0)??[]:[]}function tf(e,o,t){if(t>12||!e||typeof e!="object")return null;if(Array.isArray(e)){for(let a of e){let n=tf(a,o,t+1);if(n)return n}return null}let r=e.props;if(r&&typeof r=="object"){if(r.id===o)return[];for(let a of Object.values(r)){let n=tf(a,o,t+1);if(n)return[r,...n]}return null}for(let a of Object.values(e)){let n=tf(a,o,t+1);if(n)return n}return null}import{SettingsDefaultReset as Ho,SettingsDrill as Vj,SettingsField as mo,SettingsGroup as qj,SettingsSegmented as Yj,SettingsBorder as Xj,SettingsSidesEach as Zj,SettingsSwitch as mg,borderSides as Jj,borderStartEach as Qj}from"efficient-easel/panel";import{ListField as eK}from"efficient-easel/fields";import{DisplayChips as oK}from"efficient-shell/ui";import{HIDDEN_KEY as IW,hiddenInEveryView as gW,hiddenInView as Wx,hiddenKeyOf as DP}from"efficient-easel/screen/lib/content/view-hide";var bW={"000":"",100:"view-desktop:hidden","010":"view-wide:max-view-desktop:hidden","001":"max-view-wide:hidden",110:"view-wide:hidden","011":"max-view-desktop:hidden",101:"view-desktop:hidden max-view-wide:hidden",111:"hidden"},yW={"000":"",100:"view-desktop:hidden","010":"view-tablet:max-view-desktop:hidden","001":"max-view-tablet:hidden",110:"view-tablet:hidden","011":"max-view-desktop:hidden",101:"view-desktop:hidden max-view-tablet:hidden",111:"hidden"},NP=e=>(e.desktop?"1":"0")+(e.tablet?"1":"0")+(e.mobile?"1":"0");function rf(e,{atSectionLine:o=!1}={}){return(o?yW:bW)[NP(e)]}var ps=[IW,DP("tablet"),DP("mobile")];function MP(e){return{desktop:Wx(e,"desktop"),tablet:Wx(e,"tablet"),mobile:Wx(e,"mobile")}}function zl(e){return gW(e)}function Hhe(e){let o=MP(e);return["desktop","tablet","mobile"].filter(t=>o[t]).join(" ")}var SW={"000":"",100:"view-desktop:hidden!","010":"view-wide:max-view-desktop:hidden!","001":"max-view-wide:hidden!",110:"view-wide:hidden!","011":"max-view-desktop:hidden!",101:"view-desktop:hidden! max-view-wide:hidden!",111:"hidden!"},wW={"000":"",100:"view-desktop:hidden!","010":"view-tablet:max-view-desktop:hidden!","001":"max-view-tablet:hidden!",110:"view-tablet:hidden!","011":"max-view-desktop:hidden!",101:"view-desktop:hidden! max-view-tablet:hidden!",111:"hidden!"};function Whe(e,{atSectionLine:o=!1}={}){return(o?wW:SW)[NP(MP(e))]}function us(e){if(!e||typeof e!="object"||Array.isArray(e))return{};let o={};for(let[t,r]of Object.entries(e))typeof r=="boolean"&&(o[t]=r);return o}function af(e,o){return us(e)[o]!==!1}function Ux(e,o,t){let r=us(o)[t];return typeof r=="boolean"?r:af(e,t)}function HP(e){return Object.values(us(e)).some(o=>o===!1)}function WP(e){return Object.keys(us(e)).length>0}function UP(e,o,t){let r={...us(e)};return t?delete r[o]:r[o]=!1,Object.keys(r).length?r:void 0}function zP(e,o,t){return{...us(e),[o]:t}}function $he(e,o,t,{atSectionLine:r=!0}={}){let a=!af(e,t);return rf({desktop:a,tablet:a,mobile:!Ux(e,o,t)},{atSectionLine:r})}import{ColorSwatch as tK,CornersInput as rK,DatePicker as Xwe,DateTimePicker as aK,FOCAL_DEFAULT as Zwe,IconPicker as wO,COLUMN_COUNT_MAX as tO,COLUMN_SHARE_MIN as nK,COLUMN_SHARES_EQUAL as sK,resolveColumnShares as CO,WidthsBar as lK,useShellStrings as iK,IconButton as vO,InputNumber as rO,Slider as dK,Tooltip as hg}from"efficient-shell/ui";import{backendOf as CW}from"efficient-easel/screen/lib/session";var to=CW,nf=e=>e.blocks;async function $P(e){let o=e.trim();if(!o)return null;let t=to().geocode;if(!t)throw new Error("geocode_unavailable");return t.locate(o)}var zx="Lookup busy \u2014 try again in a moment.",sf=e=>typeof e=="number"&&Number.isFinite(e);function Xhe(e){return e.some(o=>{let t=o?.geocode;return t?t.pending||t.manual&&t.lat===void 0&&t.lng===void 0?!0:sf(t.lat)&&t.lat!==o.lat||sf(t.lng)&&t.lng!==o.lng:!1})}async function Zhe(e,o,{geocode:t=$P,courtesyGapMs:r=1100}={}){let a=s=>new Promise(l=>setTimeout(l,s)),n=e.slice();if(e.some(s=>s?.geocode?.pending)){let s=[],l=!1;for(let d of e){if(!d?.geocode?.pending){s.push(d);continue}l&&r>0&&await a(r),l=!0;try{let c=await t(o(d));s.push(c?{...d,lat:c.lat,lng:c.lng,geocode:{...d.geocode,pending:!1,ok:!0,status:`Found \u2014 ${c.label.split(",").slice(0,3).join(",").trim()}`,lat:c.lat,lng:c.lng}}:{...d,geocode:{...d.geocode,pending:!1,ok:!1,status:"No match \u2014 check the address and try again."}})}catch{s.push({...d,geocode:{...d.geocode,pending:!1,ok:!1,status:zx}})}}n=s}return n.map(s=>{let l=s?.geocode;if(!l)return s;if(l.manual&&l.lat===void 0&&l.lng===void 0)return{...s,geocode:{...l,lat:s.lat,lng:s.lng}};let d=sf(l.lat)&&l.lat!==s.lat?l.lat:s.lat,c=sf(l.lng)&&l.lng!==s.lng?l.lng:s.lng;return d!==s.lat||c!==s.lng?{...s,lat:d,lng:c}:s})}import{jsx as $o,jsxs as Gx}from"react/jsx-runtime";import{useRef as vW}from"react";import{ColorPicker as kW,ColorPickerPanel as TW,ColorSwatch as PW,HexInput as EW,Popover as OW,Tooltip as _W,colorFill as AW,colorSwatchClasses as RW,useShellStrings as LW}from"efficient-shell/ui";import{SettingsDefaultReset as FW,SettingsField as BW}from"efficient-easel/panel";import{typedHex as $x}from"efficient-easel/pick";var GP="Not set";function jP({value:e,onChange:o,label:t,id:r,caption:a,inherited:n,ariaLabel:s,choices:l}){return $o(NW,{value:e,onChange:o,label:i(s??t),id:r,caption:a,inherited:n,choices:l})}function DW(){let{theme:e}=he();return vP(e)}function NW({value:e,onChange:o,label:t,id:r,caption:a,inherited:n,choices:s}){let l=DW(),d=e?null:$x(n??""),c=a!==void 0&&(!e||$x(a)!==$x(e))?a:null,f=u=>{u!==e&&o(u)};return Gx("div",{className:"sf-colour",children:[s?$o(MW,{id:r,value:e,onChange:o,label:t,presets:l,follows:d,choices:s}):$o(kW,{id:r,value:e,onChange:f,label:t,presets:l,fallback:d??void 0,size:"md",align:"start"}),c!==null?$o("span",{className:"sf-colour-caption",children:c}):$o("span",{className:"sf-colour-hexwrap",children:$o(EW,{value:e||d||"",onChange:f,label:i("{label} hex code",{label:t}),placeholder:e||d?void 0:i(GP),className:d?"sf-colour-hex is-inherited":"sf-colour-hex",size:"md"})})]})}function MW({value:e,onChange:o,label:t,id:r,presets:a,follows:n,choices:s}){let l=LW().color,d=e||n||"",c=s.findIndex(p=>p.selected),f=c>=0,u=vW(c);return f&&(u.current=c),$o(OW,{id:r,trigger:$o("span",{"aria-hidden":"true",className:"absolute inset-0",style:AW(d)}),triggerLabel:l.swatch(t,d.toUpperCase()||l.none),triggerClassName:RW({size:"md"}),"aria-label":l.panel(t),align:"start",children:Gx("div",{className:"sf-colour-window",children:[$o("div",{role:"group","aria-label":t,className:"sf-colour-choices",children:s.map(p=>$o(_W,{content:p.label,children:$o(PW,{color:p.color,"aria-label":p.label,selected:p.selected,onClick:()=>{p.selected||p.onPick()}})},p.label))}),$o(TW,{value:f?"":e,onChange:o,label:t,presets:a,fallback:(f?d:n)??void 0},u.current)]})})}function Yo({label:e,icon:o,changed:t,hint:r,onReset:a,resetTo:n,children:s,...l}){return $o(BW,{label:e,icon:o,htmlFor:l.id,changed:t,hint:r,action:a?$o(FW,{words:de()?.panel,label:e,changed:!!t,detail:n,onReset:a}):void 0,children:s?Gx("div",{className:"es-width-stack",children:[jP({...l,label:e}),s]}):jP({...l,label:e})})}function $l({label:e,icon:o,value:t,inherited:r,resetTo:a,onChange:n,onReset:s,hint:l,choices:d,children:c}){let f=!!t;return $o(Yo,{label:e,icon:o,value:t,inherited:f?void 0:r,onChange:n,changed:f,onReset:s,resetTo:a,hint:l,choices:d,children:c})}import{keptByRow as ig}from"efficient-easel/screen/lib/document/style-fields";import{jsx as HW}from"react/jsx-runtime";import{useEffect as WW,useState as UW}from"react";import{clearRangeOf as zW,markSelection as $W,useCaretEdit as GW}from"efficient-easel/copy";import{TextToolbar as jW}from"efficient-shell/ui";function KW(e,o,t){return $W(e,o,t,RC)}function KP(e,o){let t=zW(o,e.length),r=FC(e,t.start,t.end);return r.text===e?null:r}function VW(e){let[o,t]=UW(null);return WW(()=>{let r=e.current?.ownerDocument??(typeof document>"u"?null:document);if(!r)return;let a=()=>{let n=e.current;if(!n||r.activeElement!==n)return;let s=n.selectionStart??n.value.length,l=n.selectionEnd??s;t(d=>d&&d.start===s&&d.end===l?d:{start:s,end:l})};return r.addEventListener("selectionchange",a),()=>r.removeEventListener("selectionchange",a)},[e]),[o,t]}function qW({target:e,value:o,onChange:t,disabled:r=!1,label:a="Formatting"}){let n=GW({target:e,onChange:t}),[s,l]=VW(e),d=p=>n(h=>{let I=KW(o,p,h);return l({start:I.selectionStart,end:I.selectionEnd}),I}),c=AC(),f={};if(s)for(let p of c)f[p.style]=LC(o,s.start,s.end,p.style);let u=r?null:KP(o,s);return HW(jW,{offered:new Set(c.map(p=>p.style)),onMark:p=>d(p),pressed:f,disabled:r,"aria-label":i(a),className:"sf-markup-bar",clear:u?{onClear:()=>n(()=>{let p=e.current,h=p&&p.ownerDocument.activeElement===p?{start:p.selectionStart??0,end:p.selectionEnd??0}:null,I=KP(o,h)??{text:o,selectionStart:h?.start??0,selectionEnd:h?.end??0};return l({start:I.selectionStart,end:I.selectionEnd}),I})}:void 0})}var jx=qW;import{deviceField as it}from"efficient-easel/screen/lib/document/device-fields";import{NO_CONTROL_FIELD as cK,NoControlMark as fK,noControlField as kO}from"efficient-easel/screen/lib/document/panel-no-control-mark";var Kx="__ownBox";function VP(e){return!!e&&typeof e=="object"&&e[Kx]===!0}var Vx="sfPanelOnly";function ms(e){return!!e&&typeof e=="object"&&e[Vx]===!0}function lf(e,o,t){return typeof e=="number"?e:typeof o=="number"?o:t}var df=void 0;import{phoneKey as vs,tabletKey as xg,viewKeyAt as Ig}from"efficient-easel/draw";import{jsx as cf,Fragment as YW,jsxs as XW}from"react/jsx-runtime";import{useRef as ZW}from"react";import{SettingsDefaultReset as JW}from"efficient-easel/panel";import{effectTiles as QW}from"efficient-easel/screen/lib/document/effect-tiles";import{VIEW_KEY_ACCESS as qP,describedAs as eU,onDesktopWords as oU,phoneTwinFields as YP}from"efficient-easel/screen/lib/document/box-fields";function tU({row:e,read:o,...t}){let r=o(Po(),t.followsView??"desktop");return e({...t,follows:r})}function Er(e,o){return Object.fromEntries(qo.map(t=>{let r=we(e,t);return[r,YP(e,o(t),qP)[r]]}))}function ff(e,o,t){let r=o.render,a={...o,render:n=>cf(tU,{...n,row:r,read:t})};return Er(e,n=>n==="desktop"?o:a)}function rU({spec:e,...o}){let t=e.values.includes(o.value),r="follows"in o,a=e.read(Po(),o.followsView??"desktop"),n=t?o.value:a,s=ZW(null),{preview:l}=e,d=QW({label:i(e.label),options:e.values.map(f=>({value:f,label:i(e.word(f)),picture:e.picture(f)})),fallback:e.fallback,onPreview:l?f=>s.current&&l(s.current,f):void 0}).render,c=d({value:n,onChange:f=>o.onChange(f??e.fallback)});return XW(YW,{children:[l?cf("div",{ref:s,style:{display:"contents"},children:c}):c,r&&t&&cf(JW,{words:de()?.panel,label:i(e.tileWord),changed:!0,detail:oU(f=>i(f),i(e.word(a)),o.followsView),onReset:()=>o.onChange(void 0)})]})}function pf(e,o){let t=eU({type:"custom",render:r=>cf(rU,{...r,spec:o})},{type:"select",label:o.label,options:o.values.map(r=>({value:r,label:o.word(r)}))});return YP(e,t,qP)}import{jsx as Yx,Fragment as sU}from"react/jsx-runtime";import{createContext as lU,useContext as iU}from"react";var uf={ProductGrid:{source:{keep:["slug"]}},GalleryItem:{product:{keep:["code","finish"]}},FeaturedCover:{source:{keep:["slug"]}},LongRead:{source:{keep:["slug"]}}},mf={Events:["posts"],SubscribeBlogs:["posts"]};var aU=["anchor"],nU=/^href$|Href$|^url$|Url$|^link$|^mailto$|^tel$/;function Gl(e){return aU.includes(e)||nU.test(e)}var qx={Gallery:{source:{verb:"snapshot",keep:[]}},ProductHero:{source:{verb:"snapshot",keep:[]}},SpecTable:{source:{verb:"snapshot",keep:[]},wheel:{verb:"reference"},finish:{verb:"reference"},size:{verb:"reference"}},CollectionCard:{collection:{verb:"snapshot",keep:[]}},FooterMenu:{menu:{verb:"snapshot",keep:[]}},MenuBlock:{menu:{verb:"snapshot",keep:[]}},ProductGrid:{design_codes:{verb:"reference"}},ProductRef:{code:{verb:"reference"},finish:{verb:"reference"}},FitmentTable:{wheel:{verb:"reference"}},GalleryItem:{fromProduct:{verb:"reference"}},Footprint:{"offices[].group":{verb:"groupKey"},"offices[].lat":{verb:"pii"},"offices[].lng":{verb:"pii"},"offices[].geocode":{verb:"pii"}}};qx.ContactLocations={"locations[].lat":{verb:"pii"},"locations[].lng":{verb:"pii"},"locations[].mapsUrl":{verb:"pii"},"locations[].geocode":{verb:"pii"}};var Axe=Object.fromEntries(Object.entries(uf).map(([e,o])=>[e,Object.keys(o)])),Rxe=Object.fromEntries(Object.entries(mf).map(([e,o])=>[e,[...o]]));import{NoControlMark as dU}from"efficient-easel/screen/lib/document/panel-no-control-mark";var XP=lU(!1);function ZP({children:e}){return Yx(XP.Provider,{value:!0,children:e})}function cU(){return iU(XP)}function JP({name:e,children:o}){return!cU()||!e||!fU(e)||Gl(e)?Yx(sU,{children:o}):Yx(dU,{})}function fU(e){return/^[A-Za-z0-9_$]+$/u.test(e)}var Xx="off",e0="none",Zx=[{label:"None",value:"off"},{label:"1, 2, 3",value:"plain"},{label:"01, 02, 03",value:"padded"},{label:"N\xB001, N\xB002",value:"numero"}],o0=[{label:"None",value:"none"},{label:"Hairline",value:"hairline"}];function Wxe(e){return io(Zx,Xx,e)}var QP="sf-card-index",jl="sf-card-index",Uxe="pointer-events-none absolute left-[18px] top-[18px] z-10 border border-line bg-bg/70 px-2 py-1 font-mono text-[length:var(--size-label,10px)] uppercase tracking-[0.16em] text-fg-dim",pU={plain:`counter(${jl})`,padded:`counter(${jl}, decimal-leading-zero)`,numero:`"N\xB0" counter(${jl}, decimal-leading-zero)`};function zxe(e,o){return o==="off"?"":`.${e}{counter-reset:${jl}}.${e} .${QP}{counter-increment:${jl}}.${e} .${QP}::before{content:${pU[o]}}`}function $xe(e){return e==="hairline"?"border border-line hover:border-accent":""}var t0=[{value:"1",label:"1st rendering"},{value:"2",label:"2nd rendering"},{value:"3",label:"3rd rendering"},{value:"4",label:"4th rendering"},{value:"5",label:"5th rendering"}];import{SCALAR_TEXT_CONTROLS as pK}from"efficient-easel/draw";import{jsx as Xo}from"react/jsx-runtime";import{SettingsDefaultReset as yU,SettingsField as Jx}from"efficient-easel/panel";import{useSelectedHost as SU}from"efficient-easel/easel";import{FOCAL_DEFAULT as wU}from"efficient-shell/format";import{ImageIcon as Qx,PlayIcon as a0}from"efficient-easel/icons";import{ImageFocusPoint as CU,MediaUploadField as vU}from"efficient-shell/ui";import{useContext as kU}from"react";import{ScreenDocumentContext as TU}from"efficient-easel/screen/components/ScreenDocumentContext";import{tabletKey as PU,viewKeyAt as EU}from"efficient-easel/draw";import{usePreviewDevice as OU}from"efficient-easel/draw/client";import{formatFocal as uU,parseFocal as mU}from"efficient-shell/format";var hU="sf-focus-phone",xU="--sf-focus-phone",IU="sf-focus-tablet",gU="--sf-focus-tablet",Kl=e=>{if(typeof e!="string"||!/^\s*-?\d+(\.\d+)?%\s+-?\d+(\.\d+)?%\s*$/.test(e))return null;let{x:o,y:t}=mU(e);return uU(o,t)};function r0(e,o){return Ma(bU,null,Kl(o),Kl(e))}var bU={tabletClass:IU,tabletVar:gU,phoneClass:hU,phoneVar:xU};import{shownTier as eI}from"efficient-easel/screen/lib/document/device-fields";import{onDesktopWords as _U}from"efficient-easel/screen/lib/document/box-fields";import{requestMediaPick as AU}from"efficient-easel/screen/lib/media-picker";import{useEaselHost as RU}from"efficient-easel/screen/lib/host";import{useEaselSession as LU}from"efficient-easel/screen/lib/session-context";function FU(e,o,t,r=!0){let a=eI(t),n=typeof e[o]=="string"&&e[o]?String(e[o]):wU;if(a==="desktop")return{ownView:!1,followed:n,followsView:"desktop",own:void 0,focus:n,key:o};let s=EU(o,a),l=Kl(e[s])??void 0,d=a==="mobile"&&r?Kl(e[PU(o)])??void 0:void 0,c=d??n;return{ownView:!0,followed:c,followsView:d?"tablet":"desktop",own:l,focus:l??c,key:s}}function BU(e,o,t){let r=SU();if(!o||!r)return null;let a=r.values??{};if(t&&!t(a,eI(e)))return null;let n=FU(a,o,e,t?t(a,"tablet"):!0),s=r.onChange;return{...n,set:l=>s(n.key,l),clear:()=>s(n.key,df)}}function n0({value:e,onChange:o,label:t,accept:r,placeholder:a,focusKey:n,focusWhen:s,frameKey:l,fieldKey:d}){let c=RU(),f=LU(),u=i(t),p=OU(),h=r.startsWith("video"),I=BU(p,h?void 0:n,s),g=!!n&&eI(p)!=="desktop",C=kU(TU),w=ta(),T=l&&d?{video:d,frame:l}:null,y=E=>AU(c,{accept:r,title:u,...E?{file:E}:{}}).then(W=>!W||!T?W?.url??null:(w({[T.video]:W.url,[T.frame]:W.posterUrl??""}),null)),b=T?E=>E?o(E):w({[T.video]:"",[T.frame]:""}):o,P=zo(e);if(g&&(!I||!P))return null;if(C&&!C.capabilities.mediaEditing)return Xo(Jx,{label:u,icon:h?Xo(a0,{}):Xo(Qx,{}),children:Xo("div",{className:"sf-image-slot-inert",children:h?i("Templates don\u2019t store videos \u2014 this slot stays a placeholder. Each website picks its own after it\u2019s created."):i("Templates don\u2019t store images \u2014 this slot stays a placeholder. Each website picks its own after it\u2019s created.")})});let H=I?.ownView&&P?Xo(yU,{words:de()?.panel,label:i("Image focus"),changed:!!I.own,detail:_U(E=>i(E),I.followed,I.followsView),onReset:I.clear}):void 0;return g&&I?Xo(Jx,{label:u,icon:Xo(Qx,{}),action:H,children:Xo("div",{style:{flex:"1 1 auto",minWidth:0},children:Xo(CU,{value:I.focus,onChange:I.set,label:i("Image focus"),image:P,hint:null})})}):Xo(Jx,{label:u,icon:h?Xo(a0,{}):Xo(Qx,{}),children:Xo("div",{style:{flex:"1 1 auto",minWidth:0},children:Xo(vU,{value:P,onChange:b,onPick:y,accept:h?"video/*":"image/*",kind:h?"video":"image",placeholder:a===void 0?void 0:i(a),maxSizeBytes:to(f).media.maxUploadBytes,...I?{focus:I.focus,onFocusChange:I.set}:{}})})})}import{jsx as s0}from"react/jsx-runtime";import{useId as DU}from"react";import{FieldSelect as NU}from"efficient-easel/fields";import{SettingsField as MU}from"efficient-easel/panel";function HU(e){return e.map(({value:o,label:t,note:r})=>({value:o,label:t,...r?{meta:r}:{}}))}function l0({label:e,options:o,value:t,onChange:r,emptyLabel:a,icon:n,hint:s}){let l=DU(),d=`${l}-label`,c=`${l}-button`,f=Array.isArray(t)?t:[];return s0(MU,{label:i(e),labelId:d,icon:n,hint:s,children:s0(NU,{id:c,multiple:!0,value:f,options:HU(o),onChange:r,placeholder:a===void 0?i("None"):i(a),ariaLabelledBy:`${d} ${c}`,inline:!0})})}import{jsx as Io,jsxs as Wa,Fragment as mz}from"react/jsx-runtime";import{useCallback as y0,useContext as hz,useId as C0,useRef as S0,useState as w0}from"react";import{ThemeIcon as xz}from"efficient-easel/icons";import{Button as Iz,useClickOutside as gz}from"efficient-shell/ui";import{SettingsField as bz}from"efficient-easel/panel";import{ScreenDocumentContext as yz}from"efficient-easel/screen/components/ScreenDocumentContext";import{jsx as fe,jsxs as aa,Fragment as qU}from"react/jsx-runtime";import{parseHexColor as YU}from"efficient-shell/format";import{Button as tI,IconButton as XU,Tooltip as ZU}from"efficient-shell/ui";import{jsx as ra,jsxs as WU}from"react/jsx-runtime";import{AccentIcon as UU}from"efficient-easel/icons";import{Button as zU,Tooltip as $U}from"efficient-shell/ui";function oI(e){return Vo(e).background}function GU(e){let o=Kr(e.accent,oI(e));return o===null?null:{ratio:o,grade:Zn(o)}}function jU(e){let o=oI(e),t=Kr(e.accent,o);return t===null?[]:Yv(e.accent).filter(r=>{let a=Kr(r,o);return a!==null&&a>t&&Zn(a)==="good"})}var KU={good:"Easy to read","large-only":Xn["large-only"],hard:Xn.hard};function i0({value:e,onChange:o}){let t=GU(e),r=t?.grade,a=t&&t.grade!=="good"?jU(e):[];return ra(Yo,{label:i("Main color"),icon:ra(UU,{}),hint:t?i(KU[t.grade]):void 0,value:e.accent,onChange:n=>o({...e,accent:n}),children:a.length>0?ra("div",{className:"w-full min-w-0",children:WU("div",{className:"sf-readability",children:[ra("p",{className:"sf-readability-advice",children:VU(r,!0)}),ra("div",{className:"sf-readability-suggestions",children:a.map(n=>{let s=Kr(n,oI(e));return ra($U,{content:i("Use {colour}",{colour:n.toUpperCase()}),children:ra(zU,{variant:"secondary",className:"sf-readability-suggestion",leftIcon:ra("span",{className:"sf-readability-chip",style:{background:n},"aria-hidden":!0}),onClick:()=>o({...e,accent:n}),children:s?`${s.toFixed(1)}:1`:n.toUpperCase()})},n)})})]})}):null})}function VU(e,o){return e?e==="good"?i("This color reads clearly on your pages."):o?i("This color is hard to read on this theme's page. The buttons below are the same hue, darkened."):i("This color is hard to read on your page background. Pick one further from it \u2014 lighter if your pages are dark, deeper if they are light."):i("Pick a color to see how it reads.")}import{ButtonIcon as JU,ChevronDownIcon as c0,ChevronUpIcon as QU,GroundIcon as ez,LayoutIcon as oz,SquareIcon as tz,TextSmallIcon as rz,TypeIcon as d0}from"efficient-easel/icons";var Vl=e=>i("Theme {n}",{n:e+1});function f0({colors:e}){let o=Vo(e),t=El(e)??o.accent;return aa("span",{className:"sf-theme-page",style:{background:o.background,color:o.text},"aria-hidden":!0,children:[fe("span",{className:"sf-theme-eyebrow",style:{color:o.muted},children:i("label")}),aa("span",{className:"sf-theme-headline",children:[i("Heading")," ",fe("span",{style:{color:o.accent},children:i("main")})]}),fe("span",{className:"sf-theme-body",children:i("body text")}),aa("span",{className:"sf-theme-row",children:[fe("span",{className:"sf-theme-btn",style:{background:t,color:Nh(e,o.accent)},children:i("button")}),fe("span",{className:"sf-theme-mini",style:{background:o.surface,borderColor:o.line},children:i("card")})]})]})}var rI={"Text color":fe(d0,{}),"Label color":fe(rz,{}),Background:fe(ez,{}),"Panels & cards":fe(oz,{}),Borders:fe(tz,{}),"Button color":fe(JU,{}),"Button text color":fe(d0,{})};function az({label:e,colorKey:o,value:t,onChange:r,idPrefix:a="sf-theme-ink"}){let n=`${a}-${o}`;return fe(Yo,{label:i(e),icon:rI[e],id:n,value:t,onChange:s=>r(o,s)})}function nz({value:e,accent:o,onChange:t,idPrefix:r="sf-theme-ink"}){let a=`${r}-button`,n=e!==void 0&&YU(e)===e.toLowerCase(),s=n?e:o;return fe(Yo,{label:i("Button color"),icon:rI["Button color"],id:a,value:s,caption:n?s:i("Main"),onChange:t})}function sz({colors:e,accent:o,onChange:t,idPrefix:r="sf-theme-ink"}){let a=`${r}-button-ink`,n=Xv(e),s=Nh(e,o),l=El(e)??o,d=Zn(Kr(s,l)??0);return fe(Yo,{label:i("Button text color"),icon:rI["Button text color"],hint:n&&d!=="good"?i("{grade} on the button",{grade:i(Xn[d])}):void 0,id:a,value:s,caption:n?s:i("Auto"),onChange:t})}var lz=[{colour:!0},{label:"Text color",key:"text"},{label:"Label color",key:"muted"},{button:!0},{buttonInk:!0},{moduleBreak:!0},{label:"Background",key:"background"},{label:"Panels & cards",key:"surface"},{label:"Borders",key:"line"}];function aI({colors:e,onChange:o,idPrefix:t}){let r=Vo(e);return fe(qU,{children:lz.map(a=>"colour"in a?fe(i0,{value:e,onChange:o},"colour"):"moduleBreak"in a?fe("div",{className:"sf-theme-module-break","aria-hidden":"true"},"module-break"):"button"in a?fe(nz,{value:e.button,accent:r.accent,onChange:n=>o({...e,button:n}),idPrefix:t},"button"):"buttonInk"in a?fe(sz,{colors:e,accent:r.accent,onChange:n=>o({...e,buttonInk:n}),idPrefix:t},"buttonInk"):fe(az,{label:a.label,colorKey:a.key,value:r[a.key],onChange:(n,s)=>o({...e,[n]:s}),idPrefix:t},a.key))})}function hf({index:e,colors:o,selected:t,role:r="radio",open:a,editable:n=!0,onPick:s,onEdit:l,onChangeColors:d}){let c=Vo(o),f=Vl(e),u=e<Dh.length&&!o.brandInk?Dh[e]:null,p=Zn(Kr(c.text,c.background)??0),h=u?JSON.stringify(o)!==JSON.stringify(u):!1,I=a!==void 0;return aa("div",{className:`sf-theme-card${t?" is-selected":""}`,children:[fe("button",{type:"button",role:r,"aria-checked":r==="radio"?t:void 0,"aria-selected":r==="option"?t:void 0,"aria-label":f,className:"sf-theme-pick",onClick:s,children:fe(f0,{colors:o})}),aa("div",{className:"sf-theme-foot",children:[fe("span",{className:"sf-theme-name",children:f}),p!=="good"&&fe("span",{className:"sf-theme-warn",children:i(Xn[p])}),n&&l&&I&&fe("span",{className:"sf-theme-edit",children:fe(ZU,{content:a?i("Collapse"):i("Edit colors"),children:fe(XU,{size:"sm","aria-expanded":a,"aria-controls":`sf-theme-colours-${e}`,"aria-label":a?i("Collapse {name}",{name:f}):i("Edit colors for {name}",{name:f}),onClick:l,children:a?fe(QU,{size:14}):fe(c0,{size:14})})})}),n&&l&&!I&&fe(tI,{variant:"secondary",size:"sm",className:"sf-theme-edit","aria-label":i("Edit {name}",{name:f}),onClick:l,children:i("Edit")})]}),a&&aa("div",{id:`sf-theme-colours-${e}`,className:"sf-theme-colours",children:[fe(aI,{colors:o,onChange:g=>d?.(g)}),u&&fe(tI,{variant:"link",size:"sm",className:"sf-theme-reset",disabled:!h,onClick:()=>d?.({...u}),children:h?i("Reset {name} to the preset",{name:f}):i("Not changed")})]})]})}function p0({colors:e,name:o,nameId:t,open:r,menuId:a,labelId:n,buttonRef:s,onClick:l,onKeyDown:d,onEdit:c}){return aa("div",{className:"sf-secttheme-btn",children:[fe("button",{ref:s,type:"button",className:"sf-theme-pick","aria-expanded":r,"aria-controls":a,"aria-labelledby":`${n} ${t}`,onClick:l,onKeyDown:d,children:e?fe(f0,{colors:e}):fe("span",{className:"sf-secttheme-nopreview","aria-hidden":"true"})}),aa("div",{className:"sf-theme-foot",children:[fe("span",{id:t,className:"sf-theme-name",children:o}),c&&fe(tI,{variant:"secondary",size:"sm",className:"sf-theme-edit","aria-label":i("Edit {name}",{name:o}),onClick:c,children:i("Edit")}),fe("button",{type:"button",className:"sf-secttheme-caret","aria-hidden":"true",tabIndex:-1,onClick:l,children:fe(c0,{size:12,className:"sf-multi-caret","aria-hidden":"true"})})]})]})}import{useCallback as cI,useEffect as I0,useRef as bf}from"react";import{currentEaselSession as cz}from"efficient-easel/screen/lib/session";import{useEaselSession as fz}from"efficient-easel/screen/lib/session-context";import{useSyncExternalStore as iz}from"react";var m0,nI=null,Ha=null,xf=0,sI=new Set;function lI(e){m0=e;for(let o of sI)o()}function iI(e){nI=e,xf+=1,Ha&&clearTimeout(Ha),Ha=null,lI(void 0)}function If(e){xf+=1,lI(e)}function Or(e=250){nI&&(Ha&&clearTimeout(Ha),Ha=setTimeout(()=>{Ha=null;let o=nI;if(!o)return;let t=++xf;o().then(r=>{t===xf&&lI(r)}).catch(()=>{})},e))}function u0(){return m0}function dz(e){return sI.add(e),()=>{sI.delete(e)}}function gf(){return iz(dz,u0,u0)}var dI=new Set;function h0(e){return dI.add(e),()=>{dI.delete(e)}}async function x0(){let e=(await Promise.allSettled([...dI].map(async o=>o()))).find(o=>o.status==="rejected");if(e)throw e.reason}import{WebsiteBackendError as pz}from"efficient-easel/screen/lib/backend-error";function g0(e=cz()){return(o,t,r)=>{let a=to(e).theme;return a?a.update(o,r?{siteId:r}:void 0):Promise.reject(new pz("invalid","This backend stores no site theme."))}}function b0(e){return e.themeFromDocument?{status:"skipped",reason:"template"}:e.token?null:{status:"skipped",reason:"no-token"}}async function uz(e,o=g0()){let{themeFromDocument:t,token:r,siteId:a,patch:n}=e,s=b0({themeFromDocument:t,token:r});if(s)return s;if(Object.keys(n).length===0)return{status:"skipped",reason:"empty"};try{return await o(n,r,a??void 0),{status:"saved"}}catch(l){return{status:"failed",error:l}}}function hs({themeFromDocument:e,tokenRef:o,siteId:t,onResult:r}){let a=bf(null),n=bf({}),s=fz(),l=bf(r);l.current=r;let d=bf(null),c=cI(p=>{if(p.status==="skipped"){let h=`skipped:${p.reason}`;if(d.current===h)return;d.current=h}else d.current=null;l.current?.(p)},[]),f=cI(async()=>{a.current&&(clearTimeout(a.current),a.current=null);let p=n.current;n.current={};let h=await uz({themeFromDocument:e,token:o?.current,siteId:t,patch:p},g0(s));return c(h),h.status==="saved"&&Or(),h.status==="failed"&&(n.current={...p,...n.current}),h},[e,o,t,c,s]),u=cI((p,h=!1)=>{let I=b0({themeFromDocument:e,token:o?.current});if(I){c(I);return}n.current={...n.current,...p},a.current&&clearTimeout(a.current),h?f():a.current=setTimeout(()=>{f()},500)},[e,o,f,c]);return I0(()=>()=>{f()},[f]),I0(()=>h0(async()=>{if(!a.current&&Object.keys(n.current).length===0)return;let p=await f();if(p.status==="failed")throw p.error}),[f]),{persist:u,flush:f}}var Sz="Follow the page",ige="Follow the slideshow",wz=e=>i("Editing {name} changes it everywhere.",{name:e});function Cz({colors:e}){if(!e)return Io("span",{className:"sf-secttheme-chip sf-secttheme-chip--none","aria-hidden":"true"});let o=Vo(e);return Wa("span",{className:"sf-secttheme-chip","aria-hidden":"true",children:[Io("i",{style:{background:o.background}}),Io("i",{className:"sf-secttheme-chip-accent",style:{background:o.accent}})]})}function vz({themes:e,value:o,onPick:t,onEdit:r,menuId:a,followLabel:n}){return Wa("div",{className:"sf-multi-menu sf-secttheme-menu",id:a,role:"listbox",children:[n!==void 0&&Wa(mz,{children:[Wa("button",{type:"button",role:"option","aria-selected":o===null,className:`sf-secttheme-item${o===null?" is-active":""}`,onClick:()=>t(Qt),children:[Io(Cz,{}),Io("span",{className:"sf-secttheme-name",children:i(n)})]}),Io("div",{className:"sf-secttheme-sep",role:"presentation"})]}),o!==null&&e[o]&&Io("p",{className:"sf-secttheme-oncard",role:"presentation",children:i("{name} is on this section",{name:Vl(o)})}),e.map((s,l)=>l===o?null:Io(hf,{role:"option",index:l,colors:s,selected:!1,onPick:()=>t(l),onEdit:()=>r(l)},l))]})}function kz({index:e,colors:o,onChange:t,onDone:r}){let a=Vl(e),n=C0();return Wa("div",{className:"sf-secttheme-sheet",children:[Wa("div",{className:"sf-secttheme-sheet-head",children:[Io("span",{children:a}),Io(Iz,{variant:"secondary",className:"sf-secttheme-done",onClick:r,children:i("Done")})]}),Io("div",{className:"sf-secttheme-rows",children:Io(aI,{colors:o,onChange:t,idPrefix:n})}),Io("p",{className:"sf-secttheme-warn",children:wz(a)})]})}function v0({value:e,onChange:o,followLabel:t,hint:r}){let{theme:a,setTheme:n}=he(),s=xo(a),l=hz(yz),d=l?.tokenRef,c=l?.siteId??null,f=!l?.capabilities?.hasSiteTheme,{persist:u,flush:p}=hs({themeFromDocument:f,tokenRef:d,siteId:c}),h=xo(s),I=h.themes,g=er(e),C=g!==null?I[g]:void 0,w=C??(I.length?Yn(h):void 0),[T,y]=w0(!1),[b,P]=w0(null),H=S0(null),E=S0(null),W=C0(),O=y0(()=>{y(!1),P(null)},[]),D=y0(()=>{!T&&b===null||(p(),O())},[T,b,O,p]);gz(H,D);let v=A=>{o(A),O()},_=A=>{if(b===null)return;let F=I.map(($,X)=>X===b?A:$),z={...h,themes:F};n(z),u({selected_preset:z.selected,theme_presets:z.themes})};return Wa("div",{className:"sf-secttheme",ref:H,children:[Io(bz,{label:i("Theme"),icon:Io(xz,{}),labelId:`${W}-label`,hint:r,children:Io(p0,{colors:w,onEdit:g!==null?()=>{P(g),y(!1)}:void 0,name:C?Vl(g):i(t??Sz),nameId:`${W}-value`,labelId:`${W}-label`,open:T,menuId:W,buttonRef:E,onClick:()=>{P(null),y(A=>!A)},onKeyDown:A=>{A.key==="Escape"&&(T||b!==null)&&(A.preventDefault(),O())}})}),T&&b===null&&Io("div",{onKeyDown:A=>{A.key==="Escape"&&(A.preventDefault(),O(),E.current?.focus())},children:Io(vz,{themes:I,value:g,onPick:v,onEdit:A=>{P(A),y(!1)},menuId:W,followLabel:t})}),b!==null&&I[b]&&Io(kz,{index:b,colors:I[b],onChange:_,onDone:()=>{p(),O(),E.current?.focus()}})]})}import{jsx as k0}from"react/jsx-runtime";import{useId as Tz}from"react";import{FieldSelect as Pz}from"efficient-easel/fields";import{SettingsField as Ez}from"efficient-easel/panel";function Oz(e){return e.map(({value:o,label:t,group:r,thumb:a,meta:n})=>({value:o,label:t,...r!==void 0?{group:r}:{},...a!==void 0?{thumb:a}:{},...n!==void 0?{meta:n}:{}}))}function hge({label:e,options:o,fallback:t,value:r,onChange:a,placeholder:n,bare:s=!1,icon:l}){let d=Tz(),c=`${d}-label`,f=`${d}-button`,u=r??"",p=o.some(C=>C.value===u)?u:t,h=i(e),I=n===void 0?void 0:i(n),g=k0(Pz,{id:f,value:p,options:Oz(o),onChange:a,placeholder:I,searchPlaceholder:I,...s?{ariaLabel:h}:{ariaLabelledBy:`${c} ${f}`},searchable:!0,groupCount:!0,inline:!0});return s?g:k0(Ez,{label:h,labelId:c,icon:l,children:g})}import{jsx as za,jsxs as i$}from"react/jsx-runtime";import{SettingsField as q0}from"efficient-easel/panel";import{LinkIcon as d$}from"efficient-easel/icons";import{LinkPicker as c$,TextLinkField as f$}from"efficient-shell/ui";import{useEffect as V0,useMemo as vf,useRef as p$,useState as Cf}from"react";import{currentEaselSession as _z}from"efficient-easel/screen/lib/session";function T0(){return _z().auth.token}import{currentEaselSession as u$}from"efficient-easel/screen/lib/session";import{useScreenDocument as m$}from"efficient-easel/screen/components/ScreenDocumentContext";var Az=()=>({choosePage:i("Choose a page"),chooseSection:i("Choose a section"),noSections:i("No section anchors yet"),sectionHint:i("Jumps to a section on that page."),choosePost:i("Choose a post"),chooseProduct:i("Choose a product"),choosePopup:i("Choose a popup")});function P0(e,o,t){if(!e)return"page";if(pP(e))return"popup";if(e.startsWith("/journal/"))return"blog";if(hP(e))return"product";if(e.includes("#")){let r=e.slice(0,e.indexOf("#"));if(r===""||r==="/"||o.includes(r))return"anchor"}return e==="/"||o.includes(e)||t&&t.listingPaths.includes(t.targetOf(e))?"page":"custom"}function fI(e,o){let t=Az(),r=e.pages.map(f=>({value:Wl(f.slug),label:f.title})),a=o?.pageOptions?o.pageOptions(r):r,n=a.map(f=>f.value),s=e.pages.map(f=>({label:f.title,options:mP(...f.docs).map(u=>({value:qc(f.slug,u.slug),label:u.name}))})).filter(f=>f.options.length>0),l=f=>{switch(f){case"page":return{type:"select",options:a,placeholder:t.choosePage};case"anchor":return{type:"groups",groups:s,placeholder:s.length?t.chooseSection:t.noSections};case"blog":return{type:"select",options:e.posts.map(u=>({value:uP(u.slug),label:u.title||u.slug})),placeholder:t.choosePost};case"product":return{type:"select",options:e.products.map(u=>({value:u.href,label:u.name||u.href})),placeholder:t.chooseProduct};case"popup":return{type:"select",options:(e.popups??[]).map(u=>({value:fP(u.slug),label:u.title||u.slug})),placeholder:t.choosePopup};case"custom":return{type:"text"}}},d=cP(e.offers).map(f=>({value:f.value,label:i(f.label),target:l(f.value),...f.value==="anchor"?{hint:t.sectionHint}:{},...f.value==="blog"||f.value==="product"||f.value==="popup"?{hideWhenEmpty:!0}:{}}));if(!o)return{kinds:d,rules:{kindOf:f=>P0(f,n),targetOf:f=>f,readFilter:()=>null,withFilter:f=>f}};let c=f=>{let u=o.withFilter(f,null);return o.listingPaths.includes(u)?u:f};return{kinds:d,rules:{kindOf:f=>P0(f,n,{listingPaths:o.listingPaths,targetOf:c}),targetOf:c,readFilter:o.readFilter,withFilter:o.withFilter},filtersFor:f=>o.listingPaths.includes(f)?o.filtersFor(f):null}}import{useEaselSession as h$}from"efficient-easel/screen/lib/session-context";function Eo(e,o){if(typeof e=="string")return e||o;if(e&&typeof e=="object"&&"text"in e){let t=e.text;return Se(t)??o}return o}function E0(e,o){return q(e)??o}function _r(e,o){return typeof e=="boolean"?e:o}function yf(e,o){if(!Array.isArray(e))return o;let t=e.map(r=>typeof r=="string"?r:Eo(r?.text,"")).map(r=>r.trim()).filter(Boolean);return t.length?t:o}var _0=["delay","scroll","exit"],A0=["all","chosen","except"],R0=["visit","days","never","once"],Rz=["all","desktop","phone"],Lz=["stop","continue"],L0={min:0,max:60},F0={min:10,max:90},B0={min:1,max:90},Dt={autoOpen:!1,trigger:"delay",autoOpenDelaySec:15,scrollPercent:50,showOn:"all",showOnPages:[],devices:"all",hideAfter:"days",hideDays:7,afterSubmit:"stop",startDate:null,endDate:null};function at(e,o,t){return typeof o=="string"&&e.includes(o)?o:t}function xs(e,o,t){let r=E0(e,t);return Math.min(o.max,Math.max(o.min,Math.round(r)))}function Fz(e){return typeof e.hideAfter=="string"?at(R0,e.hideAfter,Dt.hideAfter):e.oncePerSession===!0?"visit":e.oncePerSession===!1?"never":Dt.hideAfter}function Bz(e){return Array.isArray(e)?e.map(o=>typeof o=="string"?o.trim():"").filter(Boolean).map(o=>o.startsWith("/")?o:`/${o}`):[]}function O0(e){if(typeof e!="string")return null;let o=e.trim();return/^\d{4}-\d{2}-\d{2}$/.test(o)?o:null}function D0(e){let o=e??{},t=Dt;return{autoOpen:_r(o.autoOpen,t.autoOpen),trigger:at(_0,o.trigger,t.trigger),autoOpenDelaySec:xs(o.autoOpenDelaySec,L0,t.autoOpenDelaySec),scrollPercent:xs(o.scrollPercent,F0,t.scrollPercent),showOn:at(A0,o.showOn,t.showOn),showOnPages:Bz(o.showOnPages),devices:at(Rz,o.devices,t.devices),hideAfter:Fz(o),hideDays:xs(o.hideDays,B0,t.hideDays),afterSubmit:at(Lz,o.afterSubmit,t.afterSubmit),startDate:O0(o.startDate),endDate:O0(o.endDate)}}import{parseHexColor as Dz}from"efficient-shell/format";var Nt="#000000";var pI="popup",Nz=xk,Mz=["auto","full"],Hz=["inside","outside","none"],Wz={min:240,max:1440},Uz={min:0,max:100},ql={placement:"center",fullWidth:!1,width:720,height:"auto",tintColor:Nt,tintOpacity:60,outsideClick:!0,closeButton:"inside"};function zz(e,o){let t=typeof e=="string"?e.trim():"";return t&&Dz(t)===t.toLowerCase()?t:o}function uI(e,o=ql){let t=e??{},r=o;return{placement:at(Nz,t.placement,r.placement),fullWidth:_r(t.fullWidth,r.fullWidth),width:xs(t.width,Wz,r.width),height:at(Mz,t.height,r.height),tintColor:zz(t.tintColor,r.tintColor),tintOpacity:xs(t.tintOpacity,Uz,r.tintOpacity),outsideClick:_r(t.outsideClick,r.outsideClick),closeButton:at(Hz,t.closeButton,r.closeButton)}}var N0="cart-drawer",Nge="cart-drawer",$z={kickerBadge:"",kickerText:"Your order",titleLead:"Your",titleAccent:"cart.",subtitleEmpty:"Empty for now.",subtitleOne:"One set in your cart.",subtitleMany:"{count} sets in your cart.",leadTimeValue:"",shipsToFallback:"",promises:[],emptyKicker:"No wheels yet",emptyBody:"Your cart is empty. Pick a wheel to get started."};function Mge(e,o){return o===0?e.subtitleEmpty:o===1?e.subtitleOne:e.subtitleMany.replace("{count}",String(o))}function Hge(e){let o=e??{},t=$z;return{kickerBadge:Eo(o.kickerBadge,t.kickerBadge),kickerText:Eo(o.kickerText,t.kickerText),titleLead:Eo(o.titleLead,t.titleLead),titleAccent:Eo(o.titleAccent,t.titleAccent),subtitleEmpty:Eo(o.subtitleEmpty,t.subtitleEmpty),subtitleOne:Eo(o.subtitleOne,t.subtitleOne),subtitleMany:Eo(o.subtitleMany,t.subtitleMany),leadTimeValue:Eo(o.leadTimeValue,t.leadTimeValue),shipsToFallback:Eo(o.shipsToFallback,t.shipsToFallback),promises:yf(o.promises,t.promises),emptyKicker:Eo(o.emptyKicker,t.emptyKicker),emptyBody:Eo(o.emptyBody,t.emptyBody)}}var Gz=["right","left"],jz={...ql,width:520,tintOpacity:68};function Wge(e){let o=e??{};return{...uI(o,jz),placement:at(Gz,o.placement,"right"),height:"full",fullWidth:!1,autoOpen:_r(o.autoOpen,!0)}}var H0="consent-banner",Gge="consent-banner";var Kz=[{value:"bar",label:"Bar"},{value:"card",label:"Card"}],jge="Layout",M0={layout:"bar"},Vz=e=>Kz.some(o=>o.value===e);function Kge(e){let o=Eo((e??{}).layout,M0.layout);return{layout:Vz(o)?o:M0.layout}}var Vge={...ql,placement:"bottom-center",fullWidth:!0,width:440,tintOpacity:0,outsideClick:!1,closeButton:"none"};var qz="consentWords",Yz=["eyebrow","notice","accept","reject","choose"];function mI(e){let o=(e??{})[qz];return typeof o=="string"&&Yz.includes(o)?o:null}function hI(e){let o=e?.props;return o?mI(o)!==null?!0:Object.values(o).some(t=>Array.isArray(t)&&t.some(r=>r&&typeof r=="object"&&"props"in r&&hI(r))):!1}var Xz=["meta","eyebrow","heading","body","statName","statValue","formEyebrow","formHeading","formIntro","fieldLabel","option","finePrint","dismiss","doneHeading","doneBody"],Xge={meta:"Meta line",eyebrow:"Eyebrow",heading:"Heading",body:"Body",statName:"Stat name",statValue:"Stat value",formEyebrow:"Form eyebrow",formHeading:"Form heading",formIntro:"Form intro",fieldLabel:"Field label",option:"Option",finePrint:"Fine print",dismiss:"Dismiss link",doneHeading:"Success heading",doneBody:"Success message"},Zz={meta:"styleMeta",eyebrow:"styleEyebrow",heading:"styleHeading",body:"styleBody",statName:"styleStatName",statValue:"styleStatValue",formEyebrow:"styleFormEyebrow",formHeading:"styleFormHeading",formIntro:"styleFormIntro",fieldLabel:"styleFieldLabel",option:"styleOption",finePrint:"styleFinePrint",dismiss:"styleDismiss",doneHeading:"styleDoneHeading",doneBody:"styleDoneBody"},Zge={meta:{font:"--pp-meta-font",size:"--pp-meta-size"},eyebrow:{font:"--pp-eyebrow-font",size:"--pp-eyebrow-size"},heading:{font:"--pp-heading-font",size:"--pp-heading-size"},body:{font:"--pp-body-font",size:"--pp-body-size"},statName:{font:"--pp-statname-font",size:"--pp-statname-size"},statValue:{font:"--pp-statvalue-font",size:"--pp-statvalue-size"},formEyebrow:{font:"--pp-formeyebrow-font",size:"--pp-formeyebrow-size"},formHeading:{font:"--pp-formheading-font",size:"--pp-formheading-size"},formIntro:{font:"--pp-formintro-font",size:"--pp-formintro-size"},fieldLabel:{font:"--pp-fieldlabel-font",size:"--pp-fieldlabel-size"},option:{font:"--pp-option-font",size:"--pp-option-size"},finePrint:{font:"--pp-fineprint-font",size:"--pp-fineprint-size"},dismiss:{font:"--pp-dismiss-font",size:"--pp-dismiss-size"},doneHeading:{font:"--pp-doneheading-font",size:"--pp-doneheading-size"},doneBody:{font:"--pp-donebody-font",size:"--pp-donebody-size"}};function W0(e){let o={};for(let t of Xz){let r=br(e[Zz[t]]);r&&(o[t]=r)}return o}var U0={heading:"Join our email list",placeholder:"Email address",buttonLabel:"Subscribe"},Jz={lead:"We accept"},wf={...Jz,methods:[],size:"sm",align:"start",dataSource:xC},Mt="site-footer";var ebe=Mt,obe={desktop:!0,tablet:!0,mobile:!0},tbe={desktop:!1,tablet:!1,mobile:!1},xI=1,z0=6,rbe=Array.from({length:z0-xI+1},(e,o)=>xI+o),Sf={desktop:6,tablet:3,mobile:2},Qz={2:{desktop:2,tablet:2,mobile:1},3:{desktop:3,tablet:3,mobile:1},4:{desktop:4,tablet:2,mobile:2},5:{desktop:5,tablet:3,mobile:2},6:{desktop:6,tablet:3,mobile:2}},Ua=e=>Math.min(Math.max(Math.round(e),xI),z0);function abe(e){if(typeof e=="number")return Qz[Ua(e)]??{desktop:Ua(e),tablet:Ua(e),mobile:Ua(e)};if(e&&typeof e=="object"){let o=e;return{desktop:Ua(o.desktop??Sf.desktop),tablet:Ua(o.tablet??Sf.tablet),mobile:Ua(o.mobile??Sf.mobile)}}return{...Sf}}var II="subscribe-popup",pbe="subscribe-popup",e$=[II,Mt,N0,H0];function G0(e){return e$.includes(e)}var o$=["right","left"],t$={metaLabel:"Meta label",issueLabel:"Label",issueNumber:"00",kicker:"Kicker",heading:`Main heading
2
2
  *Highlight line*`,deck:"Add a sentence or two of supporting copy.",stats:[{label:"Label",value:"Value"},{label:"Label",value:"Value"},{label:"Label",value:"Value"},{label:"Label",value:"Value"}],formLabel:"Section label",formHeading:"Main heading *highlight*",formIntro:"Add a sentence or two of supporting copy.",firstNameLabel:"Field label",firstNamePlaceholder:"Placeholder",emailLabel:"Field label",emailPlaceholder:"Placeholder",interestsLabel:"Field label",interests:["Option one","Option two","Option three"],frequencyLabel:"Field label",frequencies:["Option one","Option two","Option three"],submitText:"Button label",finePrint:"Fine print",dismissText:"Dismiss link",emailInvalidText:"Enter a valid email address.",submitErrorText:"Could not subscribe right now. Please try again.",successHeading:"Main heading *highlight*",successBody:"Add a sentence or two of supporting copy \u2014 the {email} and {issue} tokens are substituted here.",keepBrowsingText:"Button label",autoOpen:Dt.autoOpen,autoOpenDelaySec:Dt.autoOpenDelaySec,formSlug:"",trigger:Dt.trigger,scrollPercent:Dt.scrollPercent,showOn:Dt.showOn,showOnPages:[],hideAfter:Dt.hideAfter,hideDays:Dt.hideDays,formSide:"right",valuePanelOnPhone:!1,sectionAccent:void 0,sectionCorners:void 0,sectionCornerSides:void 0,textStyles:{}},ro=Eo,r$=_r,j0=yf;function $0(e,o){if(e==null)return o;let t=r=>r.trim()?r:"";if(typeof e=="string")return t(e);if(typeof e=="object"&&"text"in e){let r=e.text;return typeof r=="string"?t(r):""}return o}function a$(e,o){return Array.isArray(e)?j0(e,[]):o}function n$(e,o){return Array.isArray(e)?e.map(t=>{let r=t??{};return{label:ro(r.label,""),value:ro(r.value,"")}}).filter(t=>t.label||t.value):o}function mbe(e){let o=e??{},t=t$,r=D0(o);return{metaLabel:ro(o.metaLabel,t.metaLabel),issueLabel:$0(o.issueLabel,t.issueLabel),issueNumber:$0(o.issueNumber,t.issueNumber),kicker:ro(o.kicker,t.kicker),heading:ro(o.heading,t.heading),deck:ro(o.deck,t.deck),stats:n$(o.stats,t.stats),formLabel:ro(o.formLabel,t.formLabel),formHeading:ro(o.formHeading,t.formHeading),formIntro:ro(o.formIntro,t.formIntro),firstNameLabel:ro(o.firstNameLabel,t.firstNameLabel),firstNamePlaceholder:ro(o.firstNamePlaceholder,t.firstNamePlaceholder),emailLabel:ro(o.emailLabel,t.emailLabel),emailPlaceholder:ro(o.emailPlaceholder,t.emailPlaceholder),interestsLabel:ro(o.interestsLabel,t.interestsLabel),interests:j0(o.interests,t.interests),frequencyLabel:ro(o.frequencyLabel,t.frequencyLabel),frequencies:a$(o.frequencies,t.frequencies),submitText:ro(o.submitText,t.submitText),finePrint:ro(o.finePrint,t.finePrint),dismissText:ro(o.dismissText,t.dismissText),emailInvalidText:ro(o.emailInvalidText,t.emailInvalidText),submitErrorText:ro(o.submitErrorText,t.submitErrorText),successHeading:ro(o.successHeading,t.successHeading),successBody:ro(o.successBody,t.successBody),keepBrowsingText:ro(o.keepBrowsingText,t.keepBrowsingText),formSlug:typeof o.formSlug=="string"?o.formSlug.trim():t.formSlug,autoOpen:r.autoOpen,autoOpenDelaySec:r.autoOpenDelaySec,trigger:r.trigger,scrollPercent:r.scrollPercent,showOn:r.showOn,showOnPages:r.showOnPages,hideAfter:r.hideAfter,hideDays:r.hideDays,formSide:at(o$,o.formSide,t.formSide),valuePanelOnPhone:r$(o.valuePanelOnPhone,t.valuePanelOnPhone),sectionAccent:o.sectionAccent,sectionCorners:o.sectionCorners,sectionCornerSides:o.sectionCornerSides,textStyles:W0(o)}}function s$(e,o=Math.random){for(;;){let t=`popup-${Math.floor(o()*2176782336).toString(36).padStart(6,"0")}`;if(!e.has(t))return t}}function l$(e){return{root:{props:{title:e,kind:pI}},content:[],zones:{}}}function K0(e,o,t){return{slug:s$(o,t),title:e,kind:Cx,layout:l$(e)}}function Yl(e){return e?.root?.props?.kind===pI}function Y0(e){let o=new Map;return(t="")=>{let r=T0(),a=o.get(t);if(!a||a.token===null&&r!==null){let n=r||!u$().usesBridgedToken?e(r??"",t).catch(()=>[]):Promise.resolve([]);return o.set(t,{promise:n,token:r}),n}return a.promise}}var x$=Y0(async(e,o)=>{let t=o?{siteId:o}:void 0,{pages:r}=to();return r.linkTargets?r.linkTargets(t):(await r.list(t)).map(a=>({id:a.id,slug:a.slug,label:a.label,layout:null}))}),I$=Y0(async(e,o)=>await to().blog?.posts(o?{siteId:o}:void 0)??[]);function g$({value:e,onChange:o,label:t="Link",data:r,filters:a}){let n=vf(()=>fI(r,a),[r,a]),s=i(t);return za(q0,{label:s,icon:za(d$,{}),children:za(c$,{value:e,onChange:l=>o(l),kinds:n.kinds,rules:n.rules,filtersFor:n.filtersFor,label:s})})}function X0(){let{siteId:e,capabilities:o}=m$(),{offersCommerce:t,hasBlog:r}=o,[a,n]=Cf([]),[s,l]=Cf([]),[d,c]=Cf([]),[f,u]=Cf(null),p=h$().chrome,h=p?.products?.list,I=p?.linkFilters,g=I?void 0:p?.linkRow,C=p$(!0);V0(()=>(C.current=!0,()=>{C.current=!1}),[]),V0(()=>{let y=!0;return x$(e??void 0).then(b=>y&&C.current&&n(b)),r&&I$(e??void 0).then(b=>y&&C.current&&l(b)),t&&h?.().then(b=>y&&C.current&&c(b)),t&&I?I.load(e).catch(()=>null).then(b=>y&&C.current&&u(()=>b)):u(null),()=>{y=!1}},[e,t,r,h,I]);let w=vf(()=>({pages:a.filter(y=>!G0(y.slug)&&!Yl(y.layout)).map(y=>({slug:y.slug,title:y.label,docs:[y.layout]})),popups:a.filter(y=>y.slug===II||Yl(y.layout)).map(y=>({slug:y.slug,title:y.label})),posts:r?s.map(y=>({slug:y.slug,title:y.title})):[],products:t?d.map(y=>({href:y.href,name:y.name})):[],offers:{offersCommerce:t,offersService:r}}),[a,s,d,t,r]),T=vf(()=>f?f(w.pages):null,[f,w]);return{data:w,filters:T,pages:a,offersCommerce:t,HostLinkRow:g}}function Fbe({label:e,icon:o,text:t,onTextChange:r,link:a,onLinkChange:n}){let{data:s,filters:l}=X0(),d=vf(()=>fI(s,l),[s,l]),c=i(e);return za(q0,{label:c,icon:o,children:za(f$,{label:c,text:t,onTextChange:r,link:a,onLinkChange:f=>n(f),kinds:d.kinds,rules:d.rules,filtersFor:d.filtersFor})})}function Z0({value:e,onChange:o,label:t="Link"}){let r=typeof e=="string"?e:"",{data:a,filters:n,pages:s,offersCommerce:l,HostLinkRow:d}=X0(),c=a.pages.map(u=>Wl(u.slug)),f=l&&d&&(r==="/"||c.includes(r))?d:void 0;return i$("div",{children:[za(g$,{value:r,onChange:o,label:t,data:a,filters:n}),f&&za(f,{value:r,onChange:o,pages:s})]})}import{UiIcon as aO}from"efficient-easel/draw/client";import{phoneKey as sE,resolveViewValue as R$,tabletKey as lE,viewKeyAt as $a}from"efficient-easel/draw";import{SECTION_PAD_UNIT_KEY as dE,SITE_SIDE as L$,convertLength as F$,isLengthUnit as B$,isSiteSide as cE,sideLengthAt as D$,sideValueAt as N$,withLength as CI}from"efficient-easel/screen/lib/content/length-units";import{convertLength as b$}from"efficient-easel/screen/lib/content/length-units";var uo={min:1e3,max:2e3,step:50,default:1600};function y$(e){return{maxWidth:e,marginInline:"auto",width:"100%"}}var gI="--sf-site-width",yI=`var(${gI},${uo.default}px)`,Mbe="100vw",Hbe=`max-w-[${yI}]`,Wbe=`max-w-[${uo.default}px]`;function oE(e){return typeof e!="number"||!Number.isFinite(e)?uo.default:Math.round(Math.min(Math.max(e,uo.min),uo.max))}function Ube(e,o){let t=Aa(e,o,"size",uo);if(t!==null)return{[gI]:t};let r=oE(e);return r===uo.default?{}:{[gI]:`${r}px`}}var Go={min:0,max:80,step:4,default:40},bI="--sf-site-gutter",Ht={min:0,max:24,step:4},J0="--sf-site-gutter-phone",S$="max-view-tablet:[--sf-site-gutter:var(--sf-site-gutter-phone)]!",w$="max-view-wide:[&_[data-sf-line~=edge]:not([data-sf-line~=edge]_*)]:[--sf-site-gutter:var(--sf-site-gutter-phone)]",nt=`var(${bI},${Go.default}px)`,C$=`px-[${nt}]`;var ar={md:`min(24px,${nt})`,sm:`min(20px,${nt})`,frame:`min(24px,${nt})`,tabs:`min(16px,${nt})`},zbe=[[`max-view-desktop:px-[${ar.md}]`,"max-view-desktop:px-6"],[`max-view-desktop:px-[${ar.tabs}]`,"max-view-desktop:px-4"],[`max-[960px]:px-[${ar.frame}]`,"max-[960px]:px-6"],[`max-[900px]:px-[${ar.md}]`,"max-[900px]:px-6"],[`max-view-wide:px-[${ar.md}]`,"max-view-wide:px-6"],[`max-view-tablet:px-[${ar.sm}]`,"max-view-tablet:px-5"],[`max-view-wide:px-[${ar.sm}]`,"max-view-wide:px-5"],[`max-[640px]:px-[${ar.sm}]`,"max-[640px]:px-5"],[`view-wide:px-[${nt}]`,"view-wide:px-10"],[`max-view-tablet:px-[min(24px,${nt})]`,"max-view-tablet:px-6"],[`max-view-wide:-mx-[min(20px,${nt})]`,"max-view-wide:-mx-5"],[`max-view-tablet:-mx-[min(20px,${nt})]`,"max-view-tablet:-mx-5"],[`-mx-[${nt}]`,"-mx-10"],[C$,"px-10"]];var tE="max-view-wide:px-[min(20px,var(--sf-site-gutter,40px))]";function SI(e){return v$[e??"box"]}var Q0="var(--sf-pad-site,var(--sf-box-g,var(--sf-site-gutter,40px)))",eE="[--sf-edge-g:var(--sf-pad-site)]",v$={box:{className:"[--sf-pad-site:var(--sf-box-g,var(--sf-site-gutter,40px))] max-[960px]:[--sf-pad-site:min(24px,var(--sf-box-g,var(--sf-site-gutter,40px)))]",value:Q0,edge:eE,frame:"max-[960px]:px-[min(24px,var(--sf-site-gutter,40px))]"},site:{className:"[--sf-pad-site:var(--sf-box-g,var(--sf-site-gutter,40px))] max-view-wide:[--sf-pad-site:min(20px,var(--sf-box-g,var(--sf-site-gutter,40px)))]",value:Q0,edge:eE,frame:tE}},$be=`mx-auto max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)] ${tE}`,Gbe="[--sf-box-g:var(--sf-site-gutter,40px)] [&>*]:[--sf-site-gutter:0px]";var jbe="mx-auto max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)] max-view-desktop:px-[min(24px,var(--sf-site-gutter,40px))]";function kf(e){return typeof e!="number"||!Number.isFinite(e)?Go.default:Math.round(Math.min(Math.max(e,Go.min),Go.max))}function Kbe(e,o){let t=Aa(e,o,"spacing",Go);if(t!==null)return{[bI]:t};let r=kf(e);return r===Go.default?{}:{[bI]:`${r}px`}}function Tf(e){return typeof e!="number"||!Number.isFinite(e)?null:Math.round(Math.min(Math.max(e,Ht.min),Ht.max))}function rE(e){return typeof e=="number"&&Number.isFinite(e)?oE(e):null}function Vbe(e,o){let t=Aa(e,o,"spacing",Ht);if(t!==null)return{[J0]:t};let r=Tf(e);return r===null?{}:{[J0]:`${r}px`}}function qbe(e){return Tf(e)===null?"":`${S$} ${w$}`}function Pf(e,o){let t=fc(e,o,"spacing",Go),r=t===null?kf(e):b$(t,ke(o),"px","mobile",Ht);return Math.min(Ht.max,r)}var aE=yI,Ybe=`max-w-[${aE}]`,Xbe=`max-w-[min(var(--sf-page-cap,${uo.default}px),${uo.default}px)]`,nE="--sf-hero-cap",k$=`var(${nE},none)`,Zbe=`max-w-[${k$}]`,T$="--sf-hero-bleed-m",P$="--sf-hero-bleed-w",E$="--sf-hero-chrome-x",O$="--sf-hero-chrome-cap";function Jbe(e){return e===!0?{[nE]:aE,[T$]:"auto",[P$]:"100%",[E$]:"24px",[O$]:"none"}:{}}var wI=`calc(${yI} - ${nt}*2)`,Qbe=`max-w-[${wI.replace(/ /g,"_")}]`;var _$="--sf-chrome-cap",A$=`var(${_$},${wI})`,eye="data-page-width";function oye(e){return e==="full"?"full":null}function tye(e){return e==="full"?null:y$(e==="content"?wI:A$)}function rye(e){if(e==="full")return"full";if(e==="content")return"content"}var mt={min:10,max:200,step:10};function M$(e,o,t,r=0){let a=q(e),n=q(o);if(a===void 0&&n===void 0)return;let s=Ef(t),l=d=>d===void 0?void 0:s==="px"?d:CI(d,s,r);return{paddingTop:l(a),paddingBottom:l(n)}}var Ef=e=>ke(e),H$="sf-pad-top-phone",W$="sf-pad-bottom-phone",U$="--sf-pad-t-phone",z$="--sf-pad-b-phone",$$="sf-pad-left-phone",G$="sf-pad-right-phone",j$="--sf-pad-l-phone",K$="--sf-pad-r-phone",V$="sf-pad-top-tablet",q$="sf-pad-bottom-tablet",Y$="sf-pad-left-tablet",X$="sf-pad-right-tablet",Z$="--sf-pad-t-tablet",J$="--sf-pad-b-tablet",Q$="--sf-pad-l-tablet",eG="--sf-pad-r-tablet",fE="sf-section-pad";function Zl(e){let o={desktop:e.unit,tablet:e.unitTablet,phone:e.unitPhone},t=M$(e.top,e.bottom,e.unit,e.frame),r=vI({left:e.left,right:e.right},{top:e.topPhone,bottom:e.bottomPhone,left:e.leftPhone,right:e.rightPhone},{top:e.topTablet,bottom:e.bottomTablet,left:e.leftTablet,right:e.rightTablet},{top:e.top,bottom:e.bottom,left:e.left,right:e.right},o,e.frame,e.sideSpace);return t===void 0&&!r.classes.length&&!Object.keys(r.style).length?null:{className:[fE,...r.classes].join(" "),style:{...t,...r.style}}}var oG=e=>cE(e)?e:q(e),tG=[["top","paddingTop",[V$,Z$],[H$,U$]],["bottom","paddingBottom",[q$,J$],[W$,z$]],["left","paddingLeft",[Y$,Q$],[$$,j$]],["right","paddingRight",[X$,eG],[G$,K$]]];function iE(e,o,t){return!B$(o)||o==="px"?e:F$(e,"px",o,t,{min:0,max:mt.max,step:1})}function rG(e,o,t,r={},a=0){let n=(h,I)=>{if(I==="px")return`${h}px`;let g=CI(h,I,a);return typeof g=="number"?`${g}px`:g},s={n:e,[lE("n")]:o,[sE("n")]:t,u:r.desktop,[lE("u")]:r.tablet,[sE("u")]:r.phone},l=R$("spacing",q(e),q(o),q(t),$n()),d=(h,I,g)=>{if(N$(s,{side:"n"},h,"side",["side"])?.value===L$)return SI().value;let C=D$(s,{side:"n"},"u",h,"side");if(!C)return;let w=I!==null&&!g&&C.unit==="px"&&typeof l[I]=="number";return n(w?l[I]:C.value,C.unit)},c=d("desktop",null,!0),f={},u=d("tablet","tablet",o!==void 0);u!==void 0&&(o!==void 0||u!==c)&&(f.tablet=u);let p=d("mobile","phone",t!==void 0);return p!==void 0&&(t!==void 0||p!==c)&&(f.phone=p),f}function vI(e,o,t={},r=e,a={},n=0,s="box"){let l={},d={},c=[],f=SI(s),u=!1;for(let[p,h,...I]of tG){let g=p==="left"||p==="right"?oG:q,C=g(e[p]),w=p==="top"||p==="bottom"?n:0;cE(C)?(l[h]=f.value,u=!0):C!==void 0&&(l[h]=Ef(a.desktop)==="px"?C:CI(C,Ef(a.desktop),w));let T=rG(g(r[p]),g(t[p]),g(o[p]),a,w);for(let[y,[b,P]]of[["tablet",I[0]],["phone",I[1]]]){let H=T[y];H!==void 0&&(c.push(b),d[P]=H,H===f.value&&(u=!0))}}return u&&c.push(...f.className.split(" ")),{classes:c,style:{...l,...d}}}var nr={top:"padTop",bottom:"padBottom",left:"padLeft",right:"padRight"},Ga="padUnit";function Jl(e,o){let t=e[Ga],r=(a,n,s)=>{let l=q(a)??(s===void 0?void 0:iE(s,t,"desktop")),d=q(n);return d===void 0?l:(l??0)+iE(d,t,"desktop")};return{top:r(e.padTop,e.sectionPaddingTop,o.top),bottom:r(e.padBottom,e.sectionPaddingBottom,o.bottom)}}function fye(e,o,t={}){let r=Jl(e,o),a={...TI(e,nr,!0,Ga),top:r.top,bottom:r.bottom};t.noTop&&Object.assign(a,{top:0,topTablet:void 0,topPhone:void 0});let n=Zl(a),s=n?n.className.split(" ").filter(l=>l!==fE):[];return{...s.length?{className:s.join(" ")}:{},style:n?.style??{}}}var Xl={top:"sectionPaddingTop",bottom:"sectionPaddingBottom",left:"sectionPaddingLeft",right:"sectionPaddingRight"},kI=[...["top","bottom","left","right"].map(e=>[nr[e],Xl[e]]),[Ga,dE]].flatMap(([e,o])=>[[e,o],...["tablet","mobile"].map(t=>[$a(e,t),$a(o,t)])]);function TI(e,o=Xl,t=!0,r=o===Xl?dE:void 0){let a={};if(r){e[r]!==void 0&&(a.unit=e[r]);for(let n of["tablet","mobile"])e[$a(r,n)]!==void 0&&(a[$a("unit",n)]=e[$a(r,n)])}for(let n of t?["top","bottom","left","right"]:["top","bottom"]){a[n]=e[o[n]];for(let s of["tablet","mobile"])a[$a(n,s)]=e[$a(o[n],s)]}return a}function pye(e){return Zl(e)}function uye(e,o){let t=(r,a)=>typeof r!="number"?void 0:Ef(a)==="px"?r+o:r;return Zl({...e,frame:o,top:t(e.top,e.unit),bottom:t(e.bottom,e.unit),topTablet:t(e.topTablet,e.unitTablet),bottomTablet:t(e.bottomTablet,e.unitTablet),topPhone:t(e.topPhone,e.unitPhone),bottomPhone:t(e.bottomPhone,e.unitPhone)})}import{BUTTON_PAD_KEYS as Of,buttonBorderOf as aG,buttonFillOpacityOf as nG,buttonPadSidesOf as sG,viewKeyAt as lG}from"efficient-easel/draw";import{BUTTON_PAD_UNIT_KEY as PI,lengthOf as iG}from"efficient-easel/screen/lib/content/length-units";var dG="px-6 py-4",cG=4,_f=e=>{let o=new RegExp(`\\bp${e}-(?:\\[(\\d+)px\\]|(\\d+))`).exec(dG);if(!o)throw new Error(`BUTTON_PAD_CLASSES has no p${e}`);return o[1]!==void 0?Number(o[1]):Number(o[2])*cG},wye={top:_f("y"),right:_f("x"),bottom:_f("y"),left:_f("x")},uE="var(--btn)";function fG(e){let o=e.variant==="ghost",t=nG(e.buttonFillOpacity),r=aG(e.buttonBorder),a=Se(e.buttonColor);return{fillOpacity:t??(o?0:100),border:{width:r?.width??1,color:r?.color??a??(o?"currentColor":uE)},changed:t!==void 0||r!==void 0}}function Cye(e){let o=fG(e);if(!o.changed)return null;let t=Se(e.buttonColor)??uE;return{background:o.fillOpacity===0?"transparent":o.fillOpacity===100?t:`color-mix(in srgb, ${t} ${o.fillOpacity}%, transparent)`,borderWidth:iG(o.border.width,ke(e.buttonBorderUnit)),borderStyle:"solid",borderColor:o.border.color}}var pG="var(--sf-button-radius, 0)";function vye(e){let o=q(e.buttonCorners),t=or(e.buttonCornerSides);if(o===void 0&&t===null)return null;let r=o===void 0?pG:We(Math.max(0,o),e.buttonCornersUnit);return{borderRadius:t===null?r:Fa(r,t)}}function kye(e){let o=(s,l)=>e[lG(s,l)],t=s=>sG({top:o(Of.top,s),right:o(Of.right,s),bottom:o(Of.bottom,s),left:o(Of.left,s)})??{},r={desktop:o(PI,"desktop"),tablet:o(PI,"tablet"),phone:o(PI,"mobile")},{classes:a,style:n}=vI(t("desktop"),t("mobile"),t("tablet"),void 0,r);return Object.keys(n).length?{className:a.join(" "),style:n}:null}var pE="upper";function mE(e,o,t){let r=e&&typeof e=="object"?e:{},a=Se(r.textStyle),n=a?Se(o?.find(f=>f?.id===a)?.name):void 0,s=a?/^(heading|body)-(\d+)$/.exec(a):null,l=a?n||(s?t.styleName({kind:s[1],n:Number(s[2])}):a):t.noStyle,{cases:d}=t,c=Se(r.case)??pE;return`${l} \xB7 ${d[c]??d[pE]}`}import{usePreviewParts as uK}from"efficient-easel/draw/client";import{encodePartId as mK}from"efficient-easel/draw";import{DEFAULT_EASEL_STRINGS as hK,useEaselStrings as xK}from"efficient-easel/strings";import{PIN_STICK_VAR as uG,PIN_TRACK_POSITION_VAR as mG,pinAttrs as hE,pinStickVars as hG,readPin as _I}from"efficient-shell/format";var Aye="Stick to top",ht={min:0,max:200,step:4,fallback:0},Ql={kind:"position",unitKey:"stickTopDistanceUnit"},xE=qn(Ql),[xG,IG,gG]=xE,AI="Pin while scrolling",IE="Scroll",Wt={distance:"--sf-pin-distance",position:"--sf-pin-position",on:"--sf-pin-on",length:"--sf-pin-length",stick:"--sf-pin-stick",trackPosition:"--sf-pin-track-position",header:"--sf-pin-header"},ja="stickTopScreens",bG=[ja,"stickTopScreensTablet","stickTopScreensPhone"],RI="Screens",LI="stickTopStop",Is="screen",gE="Pin stops at",bE=[{value:"header",label:"Under the header"},{value:Is,label:"Screen top"}],yE="header",SE="Under the header: the section stops below the site header. Screen top: it stops at the top edge of the screen, under a see-through header.";function FI(e){return e===Is?Is:"header"}function wE(e){return e===Is?Is:void 0}var ei="stickAbove",CE="Stays above",vE="On: the pinned box stays on top, and the sections after it scroll under it.";function yG(e){return e.stickAbove===!0}var kE=["stickTop","stickTopDistance","stickTopTablet","stickTopDistanceTablet","stickTopPhone","stickTopDistancePhone",...xE,...bG,LI,ei],Rye=new Set(["IntroBleed"]),Lye=new Set(["CategoryBar","DocTabs","Contents"]);function SG(e){return typeof e.stickTop=="boolean"?e.stickTop:e.sticky!==!1}var EI=e=>_I(!0,e).length,BI={any:["stickTop","stickTopTablet","stickTopPhone"].map(e=>({field:e,is:!0}))},TE={all:[{not:{field:"stickTop",in:[!0,!1]}},{not:{field:"sticky",is:!1}}]};function OI(e,o="px"){let t=q(e)??ht.fallback;return o!=="px"?Math.max(ht.min,t):Math.min(ht.max,Math.max(ht.min,Math.round(t)))}function DI(e){return typeof e.stickTopTablet=="boolean"}function NI(e){return typeof e.stickTopPhone=="boolean"}function gs(e,o={}){let t=o.intro?SG(e):e.stickTop===!0,r=e,a=ke(r[xG]),n=OI(e.stickTopDistance,a),s=EI(e.stickTopScreens),l=DI(e),d=l?e.stickTopTablet===!0:t,c=l?ke(r[IG]):a,f=l?OI(e.stickTopDistanceTablet,c):n,u=l?EI(e.stickTopScreensTablet):s,p=NI(e),h=p?e.stickTopPhone===!0:d,I=p?ke(r[gG]):c,g=p?OI(e.stickTopDistancePhone,I):f,C=p?EI(e.stickTopScreensPhone):u;return{desktop:t,desktopDistance:n,desktopUnit:a,desktopScreens:s,tablet:d,tabletDistance:f,tabletUnit:c,tabletScreens:u,ownTablet:l,phone:h,phoneDistance:g,phoneUnit:I,phoneScreens:C,ownPhone:p}}function Fye(e,o={}){let t=gs(e,{intro:o.atScreenTop});if(!t.desktop&&!t.tablet&&!t.phone)return null;let r=o.atScreenTop===!0&&typeof e.stickTop!="boolean",a=t.desktop&&t.desktopScreens>0||t.tablet&&t.tabletScreens>0||t.phone&&t.phoneScreens>0,n=o.above===!0&&yG(e),s=o.track===!0&&!r&&a&&!n,l=(u,p,h,I)=>Ma({tabletClass:"",tabletVar:`${u}-tablet`,phoneClass:"",phoneVar:`${u}-phone`},p,h,I).style,d={...o.atScreenTop||FI(e.stickTopStop)===Is?{[Wt.header]:"0px"}:{},[Wt.distance]:We(t.desktopDistance,t.desktopUnit),...l(Wt.distance,We(t.desktopDistance,t.desktopUnit),We(t.tabletDistance,t.tabletUnit),We(t.phoneDistance,t.phoneUnit))};if(s){let u=h=>h?"1":"0",p={...d,...t.desktop?{}:{[Wt.on]:"0"},...l(Wt.on,u(t.desktop),u(t.tablet),u(t.phone)),[Wt.length]:String(t.desktopScreens),...l(Wt.length,String(t.desktopScreens),String(t.tabletScreens),String(t.phoneScreens)),...wG(t.desktop&&t.desktopScreens===0,t.tablet&&t.tabletScreens===0,t.phone&&t.phoneScreens===0,l)};return{attrs:hE(_I(!0),"track").attrs,style:p}}let c=u=>u?"sticky":"static",f={...d,...t.desktop?{}:{[Wt.position]:"static"},...l(Wt.position,c(t.desktop),c(t.tablet),c(t.phone))};return{attrs:hE(_I(!0),"stick",n?{above:n}:{}).attrs,style:f}}function wG(e,o,t,r){let a=[[Wt.stick,uG],[Wt.trackPosition,mG]],[n,s,l]=[e,o,t].map(hG);return Object.fromEntries(a.flatMap(([d,c])=>[...e?[[d,n[c]]]:[],...Object.entries(r(d,n[c],s[c],l[c]))]))}var CG=["column","row","tabs","accordion"];var vG={column:"Stacked",row:"One row",tabs:"Tabs",accordion:"Accordion"},PE={Flex:CG,HeroGroup:["column","row"]},kG={Flex:"row",HeroGroup:"column"},TG={column:"flex-col",row:"flex-row",tabs:"flex-col",accordion:"flex-col"};function bs(e,o){return PE[e].includes(o)?o:kG[e]}function Dye(e,o){return TG[bs(e,o)]}function EE(e){return PE[e].map(o=>({label:vG[o],value:o}))}import{viewKeyAt as MI}from"efficient-easel/screen/lib/content/view-tiers";var Rf=20,PG=["solid","dashed","dotted"],Lf=["top","right","bottom","left"],Wye="sf-section-border",Uye="sf-section-border-self",EG=/^#(?:[0-9a-f]{3}|[0-9a-f]{4}|[0-9a-f]{6}|[0-9a-f]{8})$/i,OG=e=>typeof e=="number"&&Number.isFinite(e)?`${Math.min(Rf,Math.max(0,Math.round(e)))}px`:void 0,oi={kind:"border",unitKey:"sectionBorderUnit"},_E=qn(oi);function zye(e){let o=oi.unitKey;return{desktop:e[MI(o,"desktop")],tablet:e[MI(o,"tablet")],phone:e[MI(o,"mobile")]}}var OE=(e,o)=>o==="px"?OG(e):typeof e=="number"&&Number.isFinite(e)?We(Math.max(0,e),o):void 0;function Af(e,{phone:o=!1,tablet:t=!1,unit:r}={}){if(!e||typeof e!="object")return;let a=o?"-phone":t?"-tablet":"",n={},s=ke(r);for(let l of Lf){let d=OE(e[l],s)??OE(e.width,s);d!==void 0&&(n[`--sf-border-${l}-width${a}`]=d)}return typeof e.style=="string"&&PG.includes(e.style)&&(n[`--sf-border-style${a}`]=e.style),typeof e.color=="string"&&EG.test(e.color)&&(n[`--sf-border-color${a}`]=e.color.toLowerCase()),Object.keys(n).length?n:void 0}function HI(e){let{width:o,...t}=e;return typeof o!="number"?e:{...t,...Object.fromEntries(Lf.map(r=>[r,t[r]??o]))}}function $ye(e,o,t,r={}){let a=Af(e,{unit:r.desktop}),n=Af(t,{tablet:!0,unit:r.tablet}),s=Af(t,{phone:!0,unit:r.tablet}),l=Af(o,{phone:!0,unit:r.phone}),d=s||l?{...s,...l}:void 0;return a||n||d?{...a,...n,...d}:void 0}var Ff="sf.gapContainer",Ar={min:-32,max:64,step:2},NE={Grid:{sm:12,md:24,lg:40},Flex:{sm:12,md:24,lg:40},FooterGroup:{sm:8,md:16,lg:32},HeroGroup:null,Events:null,GalleryB:null,ProductGrid:null},ys={Grid:24,Flex:24,FooterGroup:16,HeroGroup:0,Events:24,GalleryB:8,ProductGrid:2},_G=new Set(["Events","GalleryB"]);function Ka(e,o,t){if(typeof o=="number"&&Number.isFinite(o)&&o>=Ar.min)return o;if(typeof o=="string"){let r=NE[e]?.[o];if(typeof r=="number")return r}return typeof t=="number"&&Number.isFinite(t)?t:ys[e]}var AG="sf-gap-overlap",RG="--sf-gap-overlap",WI="--sf-block-gap",AE="--sf-block-gap-rem",xt={min:0,max:Ar.max,step:Ar.step};function ti(e){if(typeof e!="number"||!Number.isFinite(e))return null;let o=Math.min(Math.max(Math.round(e),xt.min),xt.max);return o-o%xt.step}function Kye(e,o){let t=Aa(e,o,"gap",xt);if(t!==null)return{[WI]:t,[AE]:t};let r=ti(e);return r===null?{}:{[WI]:`${r}px`,[AE]:`${r/16}rem`}}var RE="--sf-block-gap-phone",LE="--sf-block-gap-phone-rem",LG="--sf-block-gap-on-phone",FG="max-view-tablet:[--sf-block-gap-on-phone:var(--sf-block-gap-phone)]",BG="max-view-wide:[&_[data-sf-line~=edge]:not([data-sf-line~=edge]_*)]:[--sf-block-gap-on-phone:var(--sf-block-gap-phone)]";function Vye(e,o){let t=Aa(e,o,"gap",xt);if(t!==null)return{[RE]:t,[LE]:t};let r=ti(e);return r===null?{}:{[RE]:`${r}px`,[LE]:`${r/16}rem`}}function qye(e){return ti(e)===null?"":`${FG} ${BG}`}var FE="sf-gap-zone",BE="--sf-gap-len";function Bf(e,o){return typeof o=="number"&&Number.isFinite(o)&&o>=Ar.min?!0:typeof o=="string"&&typeof NE[e]?.[o]=="number"}var DE="--sf-gap-len-phone",DG="--sf-gap-len-tablet",ri={min:0,max:Ar.max,step:Ar.step};function na(e){return typeof e=="number"&&Number.isFinite(e)&&e>=ri.min}function UI(e){return e/2}function zI(e,o,t){return na(t)&&!Bf(e,o)}function $I(e,o,t,r,a){return na(o)?o:zI(e,t,a)?a:UI(Ka(e,t,r))}var NG={block:"sf-gap-overlap-block",inline:"sf-gap-overlap-inline",both:"sf-gap-overlap-both"};function Yye(e,o,t,r,a){let n={...na(r)?{[DE]:`${r}px`}:null,...na(a)?{[DG]:`${a}px`}:null};if(!Bf(e,o)){let l=`${ys[e]}px`,d=_G.has(e)?`var(--sf-card-gap, ${l})`:l;return{className:` ${FE}`,style:{[BE]:`var(${WI}, ${d})`,[DE]:`var(${LG})`,...n}}}let s=Ka(e,o);return s>=0?{className:` ${FE}`,style:{[BE]:`${s}px`,...n}}:{className:` ${AG} ${NG[t]}`,style:{gap:"0px",[RG]:`${-s/2}px`}}}import{parseHexColor as MG}from"efficient-shell/format";var Mo="var(--section-bg)",ai="inherit";function sr(e,o){return e===ai?Mo:e===void 0?o:Df(e)}var HG=/var\(\s*--(surface-2|surface|line)\s*(?=[,)])/g;function Df(e){let o=rr(e);return o?Pr(o):e.replace(HG,"var(--site-$1")}var WG={"var(--section-bg)":"band","var(--site-surface)":"surface","var(--site-surface-2)":"surface2"};function GI(e,o,t){let r=sr(e,o);if(!r||r==="transparent")return t.background.toLowerCase();let a=r.trim(),n=a.startsWith("#")?MG(a):null;if(n)return n.toLowerCase();let s=WG[a.replace(/\s+/g,"")];return(s?t[s]:t.background).toLowerCase()}var jI="transparent";function ME(e,o){let t=sr(e,o);return!t||t===jI?"none":t===Mo?"band":null}function HE(e,o,t=o){let r=n=>!n||n==="transparent",a=sr(e,o);return a===t||r(a)&&r(t)}var WE=["transparent","var(--wheel-stage)","var(--surface)","var(--surface-2)"],UE={transparent:"No fill","var(--wheel-stage)":"Image stage","var(--surface)":"Panels and cards","var(--surface-2)":"Second surface"},Ss="var(--wheel-stage)",Nf="transparent",ni="inherit";function oSe(e,o){return Df(KI(e,o))}function KI(e,o){return e===ni?Ss:e==null?o:e===!0?Ss:e===!1?Nf:e}function tSe(e){return typeof e=="string"&&e!==ni?Df(e):Ss}function rSe(e){return e!==Nf&&e!=="none"&&e!==""}function zE(e,o){return e===ni||e===!0?!0:e==null?o===Ss:!1}var $E="inherit",Mf="fixed",GE=e=>typeof e!="number"&&e!==Mf,UG="var(--sf-heading-max, 9999px)";function sSe(e,o,t,r,a){if(typeof e=="number")return We(e,a);if(e===Mf)return o;let n=r?`var(--size-${r}, ${o})`:o;return t==="heading"?`min(${n}, ${UG})`:n}var VI={kind:"fontSize",unitKey:"titleSizeUnit"},qI={kind:"fontSize",unitKey:"bodySizeUnit"},zG=["desktop","mobile"],jE=[VI,qI].flatMap(e=>qn(e,zG));function YI(e){let o=(t,r)=>zv(e,t,r);return{titleDesktop:o(VI,"desktop"),titleMobile:o(VI,"mobile"),bodyDesktop:o(qI,"desktop"),bodyMobile:o(qI,"mobile")}}var $G=["page","full"],KE=["full","page"],Va={full:"Full",page:"Content"},XI="inherit",GG=e=>typeof e=="string"&&$G.includes(e),jG=e=>e===XI;function KG(e,o){return jG(e.widthMode)?{mode:"full",inherited:!0}:GG(e.widthMode)?{mode:e.widthMode,inherited:!1}:{mode:o,inherited:o==="full"}}function fSe(e){return KG(e,"page").mode==="full"}var VG={CustomHTML:"rawMarkup",Hero:"hero",HeroSingle:"hero",IntroBleed:"scrollOver",SpecStrip:"background",Timeline:"background",Footprint:"background",Prose:"background",ParagraphsA:"background",Cards:"background",KeyFeatures:"background",Chart:"background",Mockup:"background",Testimonials:"background",TitleWithButtons:"background",Countdown:"background",DocMasthead:"background",DocBody:"background",DocMetaCards:"background",Gallery:"background",GalleryB:"background",Reviews:"background",ReviewForm:"background",Form:"background",AppointmentBooking:"background",FAQ:"background",Events:"background",Split:"both",Breadcrumb:"both",Collections:"both",CatalogFilterBar:"both",AlloyWheelsListing:"both",Banner:"contained",Stats:"contained",Logos:"contained",Divider:"contained",OrderSummary:"contained",DeliveryOptions:"contained",PaymentBadges:"contained",CheckoutCTA:"contained",Flex:"contained",Grid:"contained",ContactCards:"contained",MessagingCards:"contained",OpeningHours:"contained",RateTable:"contained",Manifesto:"contentColumn",SectionHeader:"contentFull",ProductHero:"contentFull",ProductGrid:"productGrid",TimelineTrack:"capped",DetailRows:"capped",FitmentTable:"capped",TyreSizes:"capped",TyreFitment:"capped",EuTyreLabel:"capped",BundleOffer:"capped",CompatibleTyres:"capped",RelatedProducts:"capped",ProcessSteps:"capped",StatsParagraph:"capped",Masthead:"capped",FeaturedCover:"capped",LongRead:"capped",Series:"capped",ContactLocations:"capped",FitmentFinder:"capped",SpecTable:"capped",Subscribe:"capped",SubscribeBlogs:"capped",ContactRouting:"capped",SubmitBuild:"capped"};function pSe(e){return $e(VG,e)}var lo={background:"sectionBackgroundWidth",content:"sectionContentWidth",contentMax:"sectionContentMax",contentMaxUnit:"sectionContentMaxUnit"},uSe={kind:"size",unitKey:lo.contentMaxUnit};function qG(e){let o=e[lo.contentMaxUnit],t=ke(o),r=e[lo.contentMax],a=t==="px"?rE(r):typeof r=="number"&&Number.isFinite(r)&&r>0?r:null,n=ws(e[lo.content])??(a===null?null:"content");return{background:ws(e[lo.background]),content:n,contentMax:n==="content"?a:null,contentMaxUnit:t}}function mSe(e){let o=qG(e);return o.content===null&&e.fullWidth===!0?{...o,content:"full"}:o}function hSe(e){return e.background!==null||e.content!==null}var xSe=e=>({[lo.background]:e}),ISe=e=>e==="full"?{[lo.content]:e,[lo.contentMax]:void 0,[lo.contentMaxUnit]:void 0}:{[lo.content]:e},gSe=e=>({[lo.content]:"content",[lo.contentMax]:e}),bSe=e=>e==="background"?{[lo.background]:void 0}:{[lo.content]:void 0,[lo.contentMax]:void 0,[lo.contentMaxUnit]:void 0},VE="siteWidths",YG=e=>e==="full"||e==="content";function ws(e){return YG(e)?e:null}function qE(e,o){return{[VE]:{background:ws(e),content:ws(o)}}}function ySe(e){let o=e.editor?.metadata?.[VE];return{background:ws(o?.background),content:ws(o?.content)}}import{useEaselSession as IK}from"efficient-easel/screen/lib/session-context";import{BOX_GAP as gK,describedAs as sa,group as zt,iconOf as ks,sharedStyleKinds as pi}from"efficient-easel/screen/lib/document/box-fields";import{VIEW_KEY_ACCESS as TO,onDesktopWords as Xa,phoneTwinFields as dg,saidAlignmentGrid as bK,useLengthUnit as yK}from"efficient-easel/screen/lib/document/box-fields";import{createElement as It}from"react";import{SettingsDefaultReset as XG,SettingsField as ZG}from"efficient-easel/panel";import{boxFieldBuilders as JG,describedAs as QG,iconOf as ej,onDesktopWords as oj}from"efficient-easel/screen/lib/document/box-fields";import{LENGTH_KIND_UNITS as tj}from"efficient-easel/screen/lib/content/length-units";import{IconPicker as rj,Tooltip as aj,useShellStrings as nj}from"efficient-shell/ui";import{RotateIcon as sj}from"efficient-easel/icons";var YE=e=>i(e),qa=tj,wo=JG(YE,{lengthUnits:qa}),Oo=wo.slider,st=wo.select,si=wo.Segmented,Cs=wo.segmented,_Se=wo.alignmentField,ASe=wo.alignmentFields,RSe=wo.blockAlignmentField,LSe=wo.blockAlignmentFields,FSe=wo.boxJustifyField,BSe=wo.boxAlignField,DSe=wo.boxWrapField,XE=wo.directionField,Hf=wo.gapField,NSe=wo.placementField,MSe=wo.PlacementGridView,HSe=wo.positionFields,Wf=wo.sidesPaddingFields,li=wo.lengthUnitFields;function ZE(e,o){return Oo("Angle",It(sj),Zd.min,Zd.max,Zd.step,e,"\xB0",o)}var ZI=Symbol("efficient-web-builder.picture-picker-row"),lj={width:"3.5rem",height:"2.75rem",words:!0};function JI({value:e}){return nj().iconNames[e]??e}function QI(e,o,t){return It(aj,{content:t,className:"sf-pick-tip",children:It("span",{className:"sf-pick"},It("span",{className:"sf-pick-pic"},e),It("span",{className:"sf-pick-cap"},o))})}function ij(e){let o=t=>t.label===void 0?It(JI,{value:t.value}):i(t.label);return e.map(t=>({value:t.value,...t.label===void 0?{}:{label:i(t.hint??t.label)},icon:QI(t.picture,o(t),t.hint===void 0?o(t):i(t.hint))}))}function JE(e,o){return It("span",{className:"sf-pick"},It("span",{className:"sf-pick-pic"},e),It("span",{className:"sf-pick-cap sf-pick-cap-closed"},o))}function eg(e,o,t,r,a={}){let n=d=>t.some(c=>c.value===d),s=d=>a.resolve?a.resolve(d):n(d)?d:void 0,l=t.map(d=>({value:d.value,...d.label===void 0?{}:{label:d.label},...d.showWhen?{showWhen:d.showWhen}:{}}));return{type:"custom",[ZI]:!0,...QG({},{type:"radio",label:e,options:l}),options:l,render:d=>{let{value:c,onChange:f,field:u}=d,p=u?.options,h=ij(t.filter(b=>!p||p.some(P=>P.value===b.value))),I="follows"in d,g=I?s(a.phoneRest?a.phoneRest(d.follows):d.follows)??r:void 0,C=u?.currentValue,w=s(c)??g??s(C)??r,T=c!=null&&c!=="",y=g===void 0?void 0:t.find(b=>b.value===g);return It(ZG,{label:i(e),icon:ej(o),action:I?It(XG,{words:de()?.panel,label:i(e),changed:T,detail:y?.label!==void 0?oj(YE,i(y.label),d.followsView):void 0,disabled:d.readOnly===!0,onReset:()=>f(void 0)}):void 0},It(rj,{label:i(e),value:w,options:h,onChange:f,columns:a.columns,cell:a.cell??lj,tooltips:!1,disabled:d.readOnly===!0}))}}}import{VIEW_ABOVE as rg}from"efficient-easel/screen/lib/content/length-units";import{jsx as S,jsxs as Ie}from"react/jsx-runtime";import{NoSymbolIcon as Ij}from"efficient-easel/icons";import{useId as gj}from"react";var dj="line",cj=[{label:"None",value:"none"},{label:"Line",value:"line"},{label:"Stripes \xB7 fine",value:"stripes-fine"},{label:"Stripes \xB7 medium",value:"stripes-medium"},{label:"Stripes \xB7 bold",value:"stripes-bold"}],og={"stripes-fine":{ink:4,period:12},"stripes-medium":{ink:8,period:18},"stripes-bold":{ink:14,period:28}},zSe=28,fj="-45deg",pj="color-mix(in oklab, var(--accent) 50%, var(--bg))";function uj(e){return e!=="line"&&e!=="none"}var mj={sm:24,md:48,lg:80},hj="md",xj=Object.keys(mj);function $Se(e){return io(xj,hj,e)}function GSe(e){return io(cj,dj,e)}function jSe(e){if(!uj(e))return null;let{ink:o,period:t}=og[e];return`repeating-linear-gradient(${fj}, ${pj} 0 ${o}px, transparent ${o}px ${t}px)`}var KSe={kind:"border",unitKey:"thicknessUnit"},VSe={kind:"size",base:"%",unitKey:"lengthPctUnit"};var Uf=44,zf=28;function pe({children:e}){return S("svg",{width:Uf,height:zf,viewBox:`0 0 ${Uf} ${zf}`,"aria-hidden":"true",fill:"currentColor",stroke:"currentColor",strokeWidth:1.25,children:e})}var B=({x:e,y:o,w:t,t:r=2,faint:a=!1})=>S("rect",{x:e,y:o,width:t,height:r,rx:r/2,stroke:"none",opacity:a?.45:1}),Ce=({x:e,y:o,w:t,h:r})=>S("rect",{x:e,y:o,width:t,height:r,rx:2,fill:"none"}),lt=({x:e,y:o})=>S("circle",{cx:e,cy:o,r:1.75,stroke:"none"}),_o=({x1:e,y1:o,x2:t,y2:r})=>S("line",{x1:e,y1:o,x2:t,y2:r});function tg(e){let o=20/is,t=5,r=1,a=[],n=0,s=0,l=0;for(let[f,u]of e)n+f>is&&(s+=l*(t+r),n=0,l=0),a.push({x:12+n*o,y:s,w:f*o-r,h:u*t+(u-1)*r}),n+=f,l=Math.max(l,u);let d=s+l*(t+r)-r,c=(zf-d)/2;return S(pe,{children:a.map((f,u)=>S("rect",{x:f.x,y:c+f.y,width:f.w,height:f.h,rx:1,stroke:"none",opacity:.6},u))})}var ewe={bars:Ie(pe,{children:[S(B,{x:8,y:14,w:5,t:10}),S(B,{x:16,y:8,w:5,t:16}),S(B,{x:24,y:18,w:5,t:6}),S(B,{x:32,y:11,w:5,t:13})]}),line:Ie(pe,{children:[S("polyline",{points:"6,22 14,15 22,18 30,8 38,11",fill:"none",strokeWidth:1.75,strokeLinejoin:"round"}),S(_o,{x1:6,y1:25,x2:38,y2:25})]}),donut:Ie(pe,{children:[S("circle",{cx:22,cy:14,r:9,fill:"none",strokeWidth:5,opacity:.45}),S("circle",{cx:22,cy:14,r:9,fill:"none",strokeWidth:5,strokeDasharray:"34 57",transform:"rotate(-90 22 14)"})]})};function owe(e){if(e==="none")return S("span",{style:{display:"flex",width:Uf,height:zf,alignItems:"center",justifyContent:"center"},children:S(Ij,{size:20})});if(e==="line")return S(pe,{children:S(_o,{x1:4,y1:14,x2:40,y2:14})});let{ink:o,period:t}=og[e],r=.4,a=[];for(let n=-12;n<Uf;n+=t*r)a.push(S("polygon",{points:`${n},22 ${n+o*r},22 ${n+o*r+10},6 ${n+10},6`,stroke:"none"},n));return S(bj,{children:a})}function bj({children:e}){let o=`sf-div-${gj().replace(/[^\w-]/g,"")}`;return Ie(pe,{children:[S("clipPath",{id:o,children:S("rect",{x:4,y:6,width:36,height:16,rx:2})}),S("g",{clipPath:`url(#${o})`,children:e})]})}var $f=({x:e,y:o,w:t,h:r})=>S("rect",{x:e,y:o,width:t,height:r,rx:2,stroke:"none",opacity:.3}),twe={tabs:Ie(pe,{children:[S(B,{x:5,y:10,w:9}),S(B,{x:18,y:10,w:9,faint:!0}),S(B,{x:31,y:10,w:9,faint:!0}),S(_o,{x1:4,y1:17,x2:40,y2:17}),S(B,{x:4,y:16,w:11,t:2})]}),largeTabs:Ie(pe,{children:[S(_o,{x1:4,y1:5,x2:40,y2:5}),S(lt,{x:7,y:10}),S(B,{x:11,y:9,w:16}),S(B,{x:31,y:9,w:9,faint:!0}),S(_o,{x1:4,y1:14,x2:40,y2:14}),S(lt,{x:7,y:19}),S(B,{x:11,y:18,w:13,faint:!0}),S(B,{x:31,y:18,w:9,faint:!0}),S(_o,{x1:4,y1:23,x2:40,y2:23})]})},rwe={card:Ie(pe,{children:[S(Ce,{x:10,y:3,w:24,h:22}),S($f,{x:12,y:5,w:20,h:10}),S(B,{x:13,y:18,w:16}),S(B,{x:13,y:21,w:11,t:1.5,faint:!0})]}),cover:Ie(pe,{children:[S($f,{x:10,y:3,w:24,h:22}),S(Ce,{x:10,y:3,w:24,h:22}),S(B,{x:13,y:17,w:16}),S(B,{x:13,y:21,w:11,t:1.5})]})},awe={cards:Ie(pe,{children:[S(Ce,{x:3,y:5,w:11,h:18}),S(Ce,{x:17,y:5,w:11,h:18}),S(Ce,{x:31,y:5,w:11,h:18}),S(B,{x:5,y:9,w:7}),S(B,{x:19,y:9,w:7}),S(B,{x:33,y:9,w:7}),S(B,{x:5,y:13,w:5,t:1.5,faint:!0}),S(B,{x:19,y:13,w:5,t:1.5,faint:!0}),S(B,{x:33,y:13,w:5,t:1.5,faint:!0})]}),"label-only":Ie(pe,{children:[S("path",{d:"M8.5 7l3 3-3 3-3-3zM22.5 7l3 3-3 3-3-3zM36.5 7l3 3-3 3-3-3z",stroke:"none"}),S(B,{x:5,y:18,w:7}),S(B,{x:19,y:18,w:7}),S(B,{x:33,y:18,w:7})]})},nwe={table:Ie(pe,{children:[S(Ce,{x:3,y:5,w:38,h:18}),S(_o,{x1:15.7,y1:5,x2:15.7,y2:23}),S(_o,{x1:28.3,y1:5,x2:28.3,y2:23}),S("path",{d:"M15.7 5v18M28.3 5v18",fill:"none",strokeWidth:2.5}),S(B,{x:6,y:9,w:6,t:3}),S(B,{x:19,y:9,w:6,t:3}),S(B,{x:31,y:9,w:6,t:3}),S(B,{x:6,y:18,w:7,t:1.5,faint:!0}),S(B,{x:19,y:18,w:7,t:1.5,faint:!0}),S(B,{x:31,y:18,w:7,t:1.5,faint:!0})]}),list:Ie(pe,{children:[S(_o,{x1:3,y1:7,x2:13,y2:7}),S(_o,{x1:17,y1:7,x2:27,y2:7}),S(_o,{x1:31,y1:7,x2:41,y2:7}),S(B,{x:3,y:11,w:6,t:3}),S(B,{x:17,y:11,w:6,t:3}),S(B,{x:31,y:11,w:6,t:3}),S(B,{x:3,y:17,w:8,t:1.5,faint:!0}),S(B,{x:17,y:17,w:8,t:1.5,faint:!0}),S(B,{x:31,y:17,w:8,t:1.5,faint:!0})]})},swe={plain:Ie(pe,{children:[S(B,{x:5,y:12,w:9,t:4}),S(B,{x:18,y:12,w:9,t:4}),S(B,{x:31,y:12,w:9,t:4})]}),cards:Ie(pe,{children:[S(Ce,{x:3,y:7,w:11,h:14}),S(Ce,{x:17,y:7,w:11,h:14}),S(Ce,{x:31,y:7,w:11,h:14}),S(B,{x:5,y:13,w:7}),S(B,{x:19,y:13,w:7}),S(B,{x:33,y:13,w:7})]}),marks:Ie(pe,{children:[S(B,{x:8,y:12,w:6,t:4}),S(B,{x:17,y:12,w:6,t:4}),S(B,{x:26,y:12,w:6,t:4}),S(B,{x:35,y:12,w:3,t:4})]}),chips:Ie(pe,{children:[S(Ce,{x:3,y:9,w:18,h:10}),S(Ce,{x:23,y:9,w:18,h:10}),S(lt,{x:7,y:14}),S(B,{x:10,y:13,w:8}),S(lt,{x:27,y:14}),S(B,{x:30,y:13,w:8})]})},lwe={overlay:Ie(pe,{children:[S($f,{x:4,y:3,w:36,h:22}),S(Ce,{x:4,y:3,w:36,h:22}),S(B,{x:8,y:15,w:18,t:3}),S(B,{x:8,y:20,w:12})]}),stacked:Ie(pe,{children:[S(B,{x:4,y:3,w:18,t:3}),S(B,{x:4,y:8,w:12}),S($f,{x:4,y:13,w:36,h:12}),S(Ce,{x:4,y:13,w:36,h:12})]})},iwe={split:Ie(pe,{children:[S(B,{x:4,y:6,w:12,t:3}),S(B,{x:4,y:11,w:9,faint:!0}),S(_o,{x1:20,y1:4,x2:20,y2:24}),S(B,{x:24,y:6,w:16}),S(B,{x:24,y:10,w:11,faint:!0}),S(B,{x:24,y:17,w:16}),S(B,{x:24,y:21,w:11,faint:!0})]}),spine:Ie(pe,{children:[S(_o,{x1:9,y1:4,x2:9,y2:24}),S(lt,{x:9,y:8}),S(B,{x:14,y:7,w:24}),S(lt,{x:9,y:14}),S(B,{x:14,y:13,w:20}),S(lt,{x:9,y:20}),S(B,{x:14,y:19,w:24})]}),alternating:Ie(pe,{children:[S(_o,{x1:22,y1:4,x2:22,y2:24}),S(lt,{x:22,y:8}),S(B,{x:4,y:7,w:14}),S(lt,{x:22,y:14}),S(B,{x:26,y:13,w:14}),S(lt,{x:22,y:20}),S(B,{x:4,y:19,w:14})]}),track:Ie(pe,{children:[S(_o,{x1:4,y1:12,x2:40,y2:12}),S(lt,{x:8,y:12}),S(lt,{x:22,y:12}),S(lt,{x:36,y:12}),S(B,{x:4,y:17,w:8}),S(B,{x:18,y:17,w:8}),S(B,{x:32,y:17,w:8}),S(B,{x:4,y:21,w:6,faint:!0}),S(B,{x:18,y:21,w:6,faint:!0}),S(B,{x:32,y:21,w:6,faint:!0})]})},dwe={standard:Ie(pe,{children:[S(B,{x:4,y:5,w:10,t:1.5,faint:!0}),S(B,{x:4,y:10,w:28,t:4}),S(B,{x:4,y:18,w:34,faint:!0}),S(B,{x:4,y:22,w:24,faint:!0})]}),editorial:Ie(pe,{children:[S(B,{x:4,y:5,w:5,t:1.5,faint:!0}),S(B,{x:4,y:10,w:20,t:5}),S(B,{x:28,y:11,w:12,faint:!0}),S(B,{x:28,y:15,w:9,faint:!0}),S(_o,{x1:4,y1:22,x2:40,y2:22})]}),simple:Ie(pe,{children:[S(B,{x:4,y:8,w:10,t:1.5,faint:!0}),S(B,{x:4,y:13,w:26,t:4})]}),statement:Ie(pe,{children:[S(B,{x:4,y:6,w:36,t:7}),S(B,{x:4,y:16,w:24,t:7})]}),natural:Ie(pe,{children:[S(B,{x:4,y:8,w:22,t:3}),S(B,{x:4,y:15,w:34,faint:!0}),S(B,{x:4,y:19,w:28,faint:!0})]}),essay:Ie(pe,{children:[S(B,{x:4,y:5,w:24,t:4}),S(B,{x:4,y:13,w:36,faint:!0}),S(B,{x:4,y:17,w:36,faint:!0}),S(B,{x:4,y:21,w:30,faint:!0})]})},cwe={"spec-card":Ie(pe,{children:[S(Ce,{x:4,y:3,w:36,h:22}),S(B,{x:8,y:7,w:14}),S(Ce,{x:8,y:12,w:8,h:9}),S(Ce,{x:18,y:12,w:8,h:9}),S(Ce,{x:28,y:12,w:8,h:9})]}),fitment:Ie(pe,{children:[S(Ce,{x:4,y:4,w:10,h:5}),S(Ce,{x:16,y:4,w:10,h:5}),S(Ce,{x:28,y:4,w:10,h:5}),S(B,{x:4,y:14,w:34,faint:!0}),S(B,{x:4,y:18,w:34,faint:!0}),S(B,{x:4,y:22,w:34,faint:!0})]}),portal:Ie(pe,{children:[S(Ce,{x:4,y:3,w:36,h:22}),S(B,{x:8,y:7,w:10,t:4}),S(B,{x:8,y:14,w:16,faint:!0}),S(B,{x:26,y:18,w:10,t:4})]}),kanban:Ie(pe,{children:[S(Ce,{x:4,y:3,w:10,h:22}),S(Ce,{x:17,y:3,w:10,h:22}),S(Ce,{x:30,y:3,w:10,h:22}),S(B,{x:6,y:6,w:6,t:4}),S(B,{x:6,y:12,w:6,t:4}),S(B,{x:19,y:6,w:6,t:4}),S(B,{x:32,y:6,w:6,t:4}),S(B,{x:32,y:12,w:6,t:4})]}),claims:Ie(pe,{children:[S(B,{x:4,y:5,w:12,faint:!0}),S(B,{x:20,y:4,w:18,t:4}),S(B,{x:4,y:12,w:12,faint:!0}),S(B,{x:20,y:11,w:10,t:4}),S(B,{x:4,y:19,w:12,faint:!0}),S(B,{x:20,y:18,w:14,t:4})]}),browser:Ie(pe,{children:[S(Ce,{x:4,y:3,w:36,h:22}),S(_o,{x1:4,y1:8,x2:40,y2:8}),S(B,{x:8,y:11,w:28,t:5,faint:!0}),S(Ce,{x:8,y:18,w:8,h:4}),S(Ce,{x:18,y:18,w:8,h:4}),S(Ce,{x:28,y:18,w:8,h:4})]}),terminal:Ie(pe,{children:[S(Ce,{x:4,y:3,w:36,h:22}),S("polyline",{points:"8,9 11,11 8,13",fill:"none"}),S(B,{x:13,y:10,w:14}),S(B,{x:8,y:16,w:22,faint:!0}),S(B,{x:8,y:20,w:16,faint:!0})]})},QE={width:"5.75rem",height:"3.75rem",words:!0},fwe={width:"8.5rem",height:"3.75rem",words:!0},pwe={columns:Ie(pe,{children:[S(Ce,{x:3,y:4,w:11,h:8}),S(Ce,{x:17,y:4,w:11,h:8}),S(Ce,{x:31,y:4,w:11,h:8}),S(B,{x:3,y:16,w:9}),S(B,{x:17,y:16,w:9}),S(B,{x:31,y:16,w:9}),S(B,{x:3,y:20,w:7,t:1.5,faint:!0}),S(B,{x:17,y:20,w:7,t:1.5,faint:!0}),S(B,{x:31,y:20,w:7,t:1.5,faint:!0})]}),"rows-left":Ie(pe,{children:[S(Ce,{x:6,y:3,w:14,h:9}),S(B,{x:24,y:5,w:14}),S(B,{x:24,y:9,w:10,t:1.5,faint:!0}),S(Ce,{x:24,y:16,w:14,h:9}),S(B,{x:6,y:18,w:14}),S(B,{x:6,y:22,w:10,t:1.5,faint:!0})]}),"rows-right":Ie(pe,{children:[S(Ce,{x:24,y:3,w:14,h:9}),S(B,{x:6,y:5,w:14}),S(B,{x:6,y:9,w:10,t:1.5,faint:!0}),S(Ce,{x:6,y:16,w:14,h:9}),S(B,{x:24,y:18,w:14}),S(B,{x:24,y:22,w:10,t:1.5,faint:!0})]})};import{TEXT_CONTROL_KINDS as ave,SCALAR_TEXT_CONTROLS as nve}from"efficient-easel/draw";function Za(e,o){return i("{value} from {from}",{value:e,from:o})}function SK(){let{blockGap:e}=he();return e===null?i("this container's own spacing"):Za(`${e}px`,i("Styles"))}function wK({inherited:e,onReset:o,label:t}){return k(Ho,{words:de()?.panel,label:i(t),changed:!e,detail:SK(),onReset:o})}function CK(e){return Hf({...gK,builtIn:ys[e],resolve:(o,t)=>Ka(e,o,t?.siteGap),action:(o,t)=>k(wK,{inherited:!Bf(e,o),onReset:()=>t(void 0),label:"Gap"}),mark:{[Ff]:e}})}function vK(e){return oo(it("mobile",{[Ff]:e,type:"custom",render:o=>k(PK,{container:e,...o})}),PO)}function kK(e){return oo(it("tablet",{[Ff]:e,type:"custom",render:o=>k(TK,{container:e,...o})}),PO)}var PO={not:{field:"gap",in:Array.from({length:-Ar.min},(e,o)=>Ar.min+o)}};function XCe(e){return{gap:it("desktop",CK(e)),[xg("gap")]:kK(e),[vs("gap")]:vK(e)}}function TK({container:e,...o}){let[t]=Ut("gap"),{siteGap:r}=o.field??{},a=Math.max(ri.min,Ka(e,t,r));return Hf({...ri,builtIn:a,resolve:n=>na(n)?n:a,action:(n,s)=>k(Ho,{words:de()?.panel,label:i("Gap"),changed:na(n),detail:Xa(l=>i(l),`${a}px`),onReset:()=>s(void 0)})}).render(o)}function PK({container:e,...o}){let[t]=Ut("gap"),{siteGap:r,siteGapPhone:a}=o.field??{},n=$I(e,void 0,t,r,a);return Hf({...ri,builtIn:n,resolve:s=>$I(e,s,t,r,a),action:(s,l)=>k(Ho,{words:de()?.panel,label:i("Gap"),changed:na(s),detail:Za(`${n}px`,zI(e,t,a)?i("Styles"):i("Desktop")),onReset:()=>l(void 0)})}).render(o)}function ZCe(e){return XE({offered:EE(e),fallback:bs(e,void 0),resolve:o=>bs(e,o)})}function JCe(e,o){return Ik(o?yk(e,o):[],o)}function EK({inherited:e,onReset:o,label:t}){return k(Ho,{words:de()?.panel,label:i(t),changed:!e,detail:Za(i("Full"),i("the page")),onReset:o})}function Ja({value:e,onChange:o,label:t,placeholder:r,hint:a,multiline:n,hideable:s=!0,markup:l=!0}){let{text:d,hidden:c}=la(e),f=ii(null),u=ii(null),p=T=>o(s?{text:T,hidden:c}:T),h=()=>o({text:d,hidden:!c}),I=s&&c,g=uO(),C=a?LK(a)?k("span",{className:"sf-hint-while-typing",children:i(a)}):i(a):void 0,w=c?i("Show {label} on the slide",{label:i(t)}):i("Hide {label} on the slide",{label:i(t)});return k(mo,{label:i(t),icon:k(jj,{}),htmlFor:g,className:I?"is-hidden":void 0,hint:C,action:s?k(hg,{content:w,children:k(vO,{"aria-pressed":c,"aria-label":w,onClick:h,children:c?k(aO,{name:"eye-off",size:14}):k(aO,{name:"eye",size:14})})}):void 0,children:Rr("div",{className:"sf-copybox",children:[l&&k(jx,{target:n?u:f,value:d,onChange:p}),n?k("textarea",{id:g,ref:u,value:d,placeholder:r===void 0?void 0:i(r),onChange:T=>p(T.target.value)}):k("input",{id:g,ref:f,type:"text",value:d,placeholder:r===void 0?void 0:i(r),onChange:T=>p(T.target.value)})]})})}function QCe(e,o){return{...e,[Pj]:o}}function eve(e){let o=e[Lr];if(!o)throw new Error("withOffPage: the field holds no authored text");return{...e,[Lr]:{...o,offPage:!0}}}function Yf(e){return!e||typeof e!="object"?!1:e[Lr]?.offPage===!0}function ove(e){if(!e[Lr])throw new Error("withPanelOnly: the field holds no authored text");return{...e,[Vx]:!0}}function EO(e){return ms(e)}function tve(e){let o=e[Lr];if(!o)throw new Error("withIdentifier: the field holds no authored text");return{...e,[Lr]:{...o,identifier:!0}}}function sve(e,o){if(!e[Lr])throw new Error("inOwnBox: the field holds no authored text");let{[cK]:t,...r}=e;return{...r,[Kx]:!0,render:o}}var OK=new Set(pK),Vf={type:"radio",options:[{value:!0},{value:!1}]},OO={text:{type:"object",objectFields:{text:{type:"text"},hidden:Vf}},textarea:{type:"object",objectFields:{text:{type:"textarea"},hidden:Vf}},plainText:{type:"text"},copyText:{type:"text"},plainTextarea:{type:"textarea"},textList:{type:"array",arrayFields:{text:{type:"text"}}}},Qa=(e,o)=>{let t=sa({...o,[Lr]:e},{...OO[e.control],label:e.label});if(!OK.has(e.control))return t;let r=o.render;return{...kO(t,"authored-copy"),render:a=>k(JP,{name:a.name,children:r(a)})}},lve="Everything else on this block comes from the linked post. Unlink it to edit by hand.",_K={field:"source.slug",set:!0},ive={not:_K},AK="Select a word, then press the highlighter.",RK=new Set([AK]),LK=e=>RK.has(e);function dve(e,o,t){return Qa({control:"text",label:e,placeholder:o,hint:t},{type:"custom",render:({value:r,onChange:a})=>k(Ja,{value:r,onChange:a,label:e,placeholder:o,hint:t})})}function cve(e,o,t){return Qa({control:"textarea",label:e,placeholder:o,hint:t},{type:"custom",render:({value:r,onChange:a})=>k(Ja,{value:r,onChange:a,label:e,placeholder:o,hint:t,multiline:!0})})}function fve(e,o,t){return Qa({control:"plainText",label:e,placeholder:o,hint:t},{type:"custom",render:({value:r,onChange:a})=>k(Ja,{value:r,onChange:a,label:e,placeholder:o,hint:t,hideable:!1,markup:!1})})}function pve(e,o,t){return Qa({control:"copyText",label:e,placeholder:o,hint:t},{type:"custom",render:({value:r,onChange:a})=>k(Ja,{value:r,onChange:a,label:e,placeholder:o,hint:t,hideable:!1})})}function uve(e){return{type:"custom",[kj]:{label:e},...sa({},{type:"text",label:e}),render:({value:o,onChange:t})=>k(Z0,{value:vj(o),onChange:t,label:e})}}function mve(e,o,t){return Qa({control:"plainTextarea",label:e,placeholder:o,hint:t},{type:"custom",render:({value:r,onChange:a})=>k(Ja,{value:r,onChange:a,label:e,placeholder:o,hint:t,multiline:!0,hideable:!1})})}var _O={Design:Ej,Animation:_j};function hve(e,o){return{type:"custom",render:()=>k(FK,{text:e,values:o})}}function FK({text:e,values:o}){return k("p",{className:"sf-note",children:i(e,o)})}function xve(e){return ia(e)!==null&&e?.tabs!==void 0}var nO=new Map;function Xf(e,o){let t=`${e}\0${o?o.join(""):""}`,r=nO.get(t)??{type:"custom",tabs:o,[mO]:{label:e,level:1},bucket:e,marker:!0,render:()=>k(Fr,{})};return nO.set(t,r),r}var sO=new Map;function gg(e){let o=sO.get(e)??{type:"custom",[mO]:{label:e,level:1},designGroup:e,marker:!0,...e==="Content"?{}:{fold:e},render:()=>k(Fr,{})};return sO.set(e,o),o}function BK(e){let o=e;return o?.marker===!0&&typeof o.fold=="string"?o.fold:null}function AO(e,o){return BK(e)===o?e:{...e,marker:!0,fold:o,render:()=>k(Fr,{})}}function RO(e){let o=e;if(o.marker===!0&&o.fold===void 0)return e;let{fold:t,...r}=e;return{...r,marker:!0,render:()=>k(Fr,{})}}function bg({title:e,children:o}){let[t,r]=di(()=>!ag.has(e));return k(qj,{title:e,open:t,onToggle:a=>{r(a),a?ag.delete(e):ag.add(e)},children:o})}var ag=new Set;function DK({swatches:e,current:o,onPick:t,names:r}){let a=e.find(l=>l.toLowerCase()===o.toLowerCase()),n=a?r?.[a]:void 0,s=n?i(n):o;return Rr("div",{className:"sf-swatches",children:[e.map(l=>{let d=r?.[l]?i(r[l]):l;return k(hg,{content:d,children:k(tK,{color:l,selected:o.toLowerCase()===l.toLowerCase(),onClick:()=>t(l),"aria-label":d})},l)}),k("span",{className:"sf-swatch-hex",children:s})]})}function Ive(e,o,t=!1){return{type:"custom",render:({value:r,onChange:a})=>k(NK,{label:e,builtIn:o,followsBand:t,value:r,onChange:a})}}function NK({label:e,builtIn:o,followsBand:t,value:r,onChange:a}){let n=typeof r=="string"?r:void 0,{colors:s,n:l}=kg(),d={background:s.background,surface:s.surface,surface2:pc(s),band:Zv(s)},c=t?Mo:o,f=HE(n,o,c),u=GI(void 0,c,d),p=t?ai:void 0,h=c===Mo?i("the theme's section background"):i("Theme {n} background",{n:l}),I=MK(n,o,s,l,d,a),g=Za(u.toUpperCase(),h),C=rr(n),w=C?ds(C,s,l):null;return w?k(Yo,{label:i(e),icon:k(eO,{}),value:w.hex,caption:w.words,onChange:a,changed:!0,onReset:()=>a(p),resetTo:g,choices:I}):k($l,{label:i(e),icon:k(eO,{}),value:f?"":GI(n,o,d),inherited:u,resetTo:g,onChange:a,onReset:()=>a(p),choices:I})}function MK(e,o,t,r,a,n){let s=ME(e,o);return[{label:i("No fill"),color:"",selected:s==="none",onPick:()=>n(jI)},{label:`${i("Section band")} \xB7 ${a.band.toUpperCase()}`,color:a.band,selected:s==="band",onPick:()=>n(Mo)},...vg(rr(e)??"",t,r,n)]}function HK(e,o){return{type:"custom",render:({value:t,onChange:r})=>{let a=t,n=zE(a,o);return k(mo,{label:i(e),icon:k(lg,{}),changed:!n,action:k(Ho,{words:de()?.panel,label:i(e),changed:!n,detail:i("the theme's image stage"),onReset:()=>r(ni)}),children:DK({swatches:WE,current:n?Ss:KI(a,o),onPick:r,names:UE})})}}}function Zf(e=t=>t,o){return pi({_gSectionTheme:zt(mk),sectionAccent:{type:"custom",render:({value:t,onChange:r})=>k(v0,{value:e(t),onChange:r,followLabel:o})}})}function Jf(e){let o=Po(),t=Tr(e?.view),r=s=>Ig(e.valueKey,s),a=e.numbersIn??(s=>q(o[r(s)])!==void 0),n=e.followsView??e8(t,a);return yK({props:{value:void 0,onChange:()=>{},field:{}},row:e.valueKey?e.row:void 0,table:qa,label:i(e.label),grid:e.grid,hasOwn:a(t),view:{tier:t,numbersIn:a,followsView:n},convertTo:e.convertTo??(s=>{let l=q(o[r(t)]);return l===void 0?{}:{[r(t)]:s(l)}})})}function Zo({min:e,max:o,step:t,value:r,onChange:a,suffix:n="",readout:s=!0,notch:l,ariaLabel:d,disabled:c=!1,placeholder:f,placeholderWord:u,onClear:p,units:h}){let I=l!==void 0&&Number.isFinite(l)&&l>=e&&l<=o;return k("div",{className:I?"sf-slider has-notch":"sf-slider",style:I?{"--sf-notch":(l-e)/(o-e)}:void 0,children:k(dK,{min:e,max:o,step:t,value:r,...r===null&&f!==void 0?{placeholderValue:f}:{},...u?{emptyLabel:i(u)}:{},suffix:n||void 0,...h?{units:h}:{},showInput:s,label:d===void 0?void 0:i(d),disabled:c,size:"sm",boxSize:"md",className:"sf-slider-track",onChange:g=>{g===null?p?.():g!==r&&a(g)}})})}function WK(e,o){let{min:t,max:r,step:a=1,unsetLabel:n,hint:s,restTrack:l,unsetMark:d,icon:c,unit:f="px"}=o;return{type:"custom",render:({value:u,onChange:p})=>{let h=typeof u=="number"?u:null,I=h===null;return k(mo,{label:i(e),icon:c?ks(c):void 0,value:I?d||n===void 0?void 0:i(n):`${h}${f}`,changed:!I,action:d?cg(d,{changed:!I,onReset:()=>p(null)}):k(Ho,{words:de()?.panel,label:i(e),changed:!I,onReset:()=>p(null)}),hint:typeof s=="string"?i(s):s,children:l?l({min:t,max:r,step:a,px:h,label:e,onChange:p}):Zo({min:t,max:r,step:a,value:h??t,readout:!1,ariaLabel:e,onChange:p})})}}}var ci="Corners",UK={kind:"radius"};function yg(e){return{type:"custom",render:o=>{let{value:t,onChange:r}=o,a=typeof t=="number"&&Number.isFinite(t)?t:null,n=a!==null;return k(mo,{label:i(ci),icon:k(xO,{}),changed:n,action:cg(e.mark,{changed:n,onReset:()=>r(null)}),hint:e.hint,children:k(zK,{tier:e,px:a,name:o.name,onRadius:r})})}}}function Ut(e){let o=Ya();return[o?.values?.[e],t=>o?.onChange(e,t)]}function LO(){return kO({type:"custom",render:()=>k(fK,{})},"always")}function ta(){let e=Ya();return o=>e?.onChangeMany(o)}function zK({tier:e,px:o,name:t,onRadius:r}){let a=e.useFollowed(),[n,s]=Ut(e.sidesKey),l=ta(),d=Jf({row:e.row??UK,label:ci,grid:{min:Wo,max:Vr,step:e.step??1},valueKey:t??"",view:"desktop"}),c=or(n)??[...Nc];return k(rK,{label:i(ci),value:c,corners:AT,onChange:f=>{let u=or(f)??[];s(u.length===Nc.length?null:u)},radius:o,onRadiusChange:d&&t?f=>l({[t]:f,...d.unitPatch(f===null)}):r,radiusMin:d?.grid.min??Wo,radiusMax:d?.grid.max??Vr,radiusStep:d?.grid.step??e.step??1,radiusPlaceholder:d&&d.unit!=="px"?"\u2013":String(a),...d?{radiusUnit:d.unit,units:d.units}:{}})}function FO(e,o){return li(e,o)}function BO(){return LO()}function $K({label:e,changed:o=!1,onReset:t=()=>{}}){let{cornerRadiusPx:r}=he(),a=typeof r=="number"?`${r}px`:i("not set");return k(Ho,{words:de()?.panel,label:i(e),changed:o,detail:r==null?i("the built-in corners"):Za(a,i("Styles")),onReset:t})}function GK(){let{cornerRadiusPx:e}=he();return typeof e=="number"?e:Wo}function jK(){return yg({sidesKey:"sectionCornerSides",row:Fl,useFollowed:GK,mark:k($K,{label:ci}),hint:KK})}var KK="Follows Styles \u25B8 Basics \u25B8 Corners until you set a number here.";function Qf(){return pi({_gShape:zt("Shape"),sectionCorners:jK(),...FO(Fl,"sectionCorners"),sectionCornerSides:BO(),...Er("sectionBorder",QK),...li(oi,"sectionBorder",{tablet:!0,phone:!0})})}var VK=()=>({width:i("Border width"),sides:{top:i("Border top"),right:i("Border right"),bottom:i("Border bottom"),left:i("Border left")},style:i("Border style"),styles:{solid:i("Solid"),dashed:i("Dashed"),dotted:i("Dotted")},color:i("Border color"),unit:"px"});function qK(e){let o=Object.fromEntries(Object.entries(e).filter(([,t])=>t!=null&&t!==""));return Object.keys(o).length?o:void 0}function YK(){let e;try{let o=xo(he().theme);e=o.themes[o.selected]?.line}catch{e=void 0}return e||Kv.line}function XK({value:e,onChange:o,placeholder:t,presets:r,sides:a=!0,styles:n=!0,above:s={},length:l}){let d=e&&typeof e=="object"?e:{},[c,f]=di(()=>a?Qj(d,s):!1),u=VK(),p=h=>qK(a&&n?h:{width:h.width,color:h.color,...n?{style:h.style}:{}});return k(mo,{label:i("Border"),icon:k(Aj,{}),action:a?k(Zj,{each:c,label:i("Each side"),onChange:f}):void 0,children:k(Xj,{label:i("Border"),value:d,each:c,onChange:h=>o(p(h)),placeholder:t,presets:r,words:l?{...u,unit:l.unit}:u,styles:n,max:l?.grid.max??Rf,...l?{step:l.grid.step,units:l.units}:{}})})}function ZK({value:e,onChange:o,view:t}){let[r]=Ut("sectionBorder"),[a]=Ut(xg("sectionBorder")),n=YK(),s=p=>p&&typeof p=="object"?p:{},l=t==="phone"?{...HI(s(r)),...HI(s(a))}:t==="tablet"?s(r):{},d=Po(),c=ta(),f=we("sectionBorder",t),u=Jf({row:oi,label:"Border",grid:{min:0,max:Rf,step:1},valueKey:"sectionBorder",view:t,numbersIn:p=>ng(d[Ig("sectionBorder",p)]),convertTo:p=>{let h=s(d[f]);return ng(h)?{[f]:JK(h,p)}:{}}});return k(XK,{value:e,length:u,onChange:u?p=>c({[f]:p,...u.unitPatch(!ng(p))}):o,placeholder:{sides:Jj(l),style:l.style??"solid",color:l.color||n},presets:[n],above:l})}var DO=["width",...Lf];function ng(e){if(!e||typeof e!="object")return!1;let o=e;return DO.some(t=>q(o[t])!==void 0)}function JK(e,o){let t={...e};for(let r of DO){let a=q(t[r]);a!==void 0&&(t[r]=o(a))}return t}function QK(e){return{type:"custom",render:({value:o,onChange:t})=>k(ZK,{value:o,onChange:t,view:e})}}function e8(e,o){let t=rg[e];for(;t&&rg[t]!==null&&!o(t);)t=rg[t];return t??e}function gve(e){return{type:"custom",render:()=>k(o8,{partKey:e})}}function o8({partKey:e}){let[o]=Ut("id"),[t]=Ut("_partStyles"),{textStyles:r}=he(),a=xK(),n=null;try{n=uK().select}catch{n=null}let s=t&&typeof t=="object"?t[e]:void 0,l=Array.isArray(r)?r:null;return k(Vj,{name:i("Text"),preview:mE(s,l,{noStyle:i("No style"),styleName:a.textStyles.styleName,cases:(a.copy.panel??hK.copy.panel).cases}),onOpen:()=>{n&&typeof o=="string"&&n(mK(o,e))}})}function NO(e){let{cornerRadiusPx:o}=he(),t=typeof o=="number"?o:e,r=null;try{let{appState:n,selectedItem:s}=qf(d=>d),l=s?.props?.id?String(s.props.id):void 0;r=l?FP(n?.data,l)?.props??null:null}catch{r=null}if(!r)return t;let a=r.sectionCorners;return mx(a)?a:t}function t8({label:e,changed:o=!1,onReset:t=()=>{}}){let r=NO(Wo);return k(Ho,{words:de()?.panel,label:i(e),changed:o,detail:Za(`${r}px`,i("the section")),onReset:t})}function r8(){return k(Fr,{children:i("Follows the section's Corners until you set a number here.")})}function a8(){return yg({sidesKey:"cardCornerSides",row:Bl,useFollowed:()=>NO(Wo),mark:k(t8,{label:ci}),hint:k(r8,{})})}function n8(){return{type:"custom",render:()=>k(MT,{})}}function bve(){return{_gShape:zt("Shape"),cardCorners:a8(),...FO(Bl,"cardCorners"),cardCornerSides:BO(),cardCornersApplyAll:n8()}}function s8(){return sa({type:"custom",[ZI]:!0,render:e=>k(i8,{...e})},{type:"select",label:Oa,options:[{value:"content",label:"Fit content"},{value:"equal",label:"Equal"},{value:[50],label:"Custom: the width of each block in %, the last block left out"}]})}function l8(e,o){let t=Sh(e);if(t!=="custom")return i(yh.find(a=>a.value===t)?.label??"");let r=CO(rc(e,o),o);return r?[...r,100-r.reduce((a,n)=>a+n,0)].join(" / "):i("Custom")}function i8(e){let{value:o,onChange:t}=e,[r]=Ut("content"),a=Array.isArray(r)?r.length:0,n="follows"in e,s=o!=null,l=s?o:n?e.follows:void 0,d=Sh(l),c=a>=2&&a<=tO,f=()=>[...sK[a]??[]],u=ii(null),p=w=>{let T=u.current;T&&JSON.stringify(w)===JSON.stringify(T.shares)?t(T.value):w&&t(w)},h=w=>{w===d||w==="custom"&&!c||t(w==="custom"?f():w)},I=i("The width bar works for 2 to {count} blocks.",{count:tO}),g=s&&(n||o!=="content"),C=iK().widths.hint(a,nK);return k(mo,{label:i(Oa),icon:k(fg,{}),changed:g,hint:d!=="custom"?void 0:c?C:I,action:k(Ho,{words:de()?.panel,label:i(Oa),changed:g,disabled:e.readOnly===!0,detail:n?Xa(w=>i(w),l8(e.follows,a),e.followsView):i("Fit content"),onReset:()=>t(void 0)}),children:Rr("div",{className:"sf-share-row",children:[k("div",{className:"sf-share-pick",children:k(wO,{label:i(Oa),value:d,options:yh.map(w=>({value:w.value,label:w.value==="custom"&&!c?I:i(w.label),icon:QI(k("span",{className:"sf-gallery-pic sf-share-pic",children:MO(w.weights).map((T,y)=>k("i",{style:{gridColumn:`span ${T}`}},y))}),i(w.label),w.value==="custom"&&!c?I:i(w.label))})),onChange:h,columns:3,cell:HO,tooltips:!1,disabled:e.readOnly===!0})}),d==="custom"&&c?k("div",{onFocus:()=>{u.current={value:o,shares:CO(rc(l,a),a)}},onBlur:()=>{u.current=null},children:k(lK,{label:i(Oa),count:a,value:rc(l,a),onChange:p,readOnly:e.readOnly===!0})}):null]})})}function MO(e){if(!e)return[3,4];let o=e.reduce((t,r)=>t+r,0);return e.map(t=>Math.round(t/o*12))}function yve(){return st(pv,k(Mj,{}),vh,vh[0].value)}function Sve(){return it("mobile",eg(Oa,k(fg,{}),dv.map(e=>({label:e.label,value:e.value,picture:k("span",{className:"sf-gallery-pic sf-share-pic",children:MO(e.weights).map((o,t)=>k("i",{style:{gridColumn:`span ${o}`}},t))})})),cv,{columns:2,cell:HO}))}var HO={width:"5.75rem",height:"3.25rem",words:!0};function wve(){return dg("share",s8(),TO)[xg("share")]}function d8(){return it("mobile",Oo(wh,k(hO,{}),ac,iv,1,ac,"",{clear:{phoneFollows:!1,hint:ac}}))}var lO={read:e=>e.phoneRow,write:(e,o,t)=>({phoneRow:t}),fieldKey:()=>"phoneRow",ownField:!0};function Cve(){let e=Oo(wh,k(hO,{}),Ch,fv,1,Ch,"",{clear:{emptyLabel:"Auto"}}),o=dg("columns",e,{...lO,tablet:TO.tablet}),t=dg("columns",e,lO,{phoneRow:d8()});return{...o,phoneRow:t.phoneRow}}function vve(e,o,t,r,a,n,s){return{type:"custom",render:({value:l,onChange:d,name:c})=>k(c8,{label:e,min:o,max:t,step:r,fallback:a,role:n,value:l,onChange:d,name:c??"",length:s})}}function c8({label:e,min:o,max:t,step:r,fallback:a,role:n,value:s,onChange:l,name:d,length:c}){let f=Po(),u=ta(),p=Tr(c?.view),h=Jf({row:c?.row??{kind:"fontSize"},label:e,grid:{min:o,max:t,step:r},valueKey:c?d:"",view:c?.view??"desktop",numbersIn:g=>g===p&&typeof f[d]=="number",followsView:p,convertTo:g=>typeof f[d]=="number"?{[d]:g(f[d])}:{}}),I=g=>h?u({[d]:g,...h.unitPatch(typeof g!="number")}):l(g);return k(mo,{label:i(e),icon:k(Rx,{noun:n}),action:k(Ho,{words:de()?.panel,label:i(e),changed:!GE(s),detail:i("the Text style in Styles"),onReset:()=>I($E),defaultAction:{onPress:()=>I(Mf),title:i("Keep this section's own built-in size"),icon:k(Rj,{})}}),children:Zo({min:h?.grid.min??o,max:h?.grid.max??t,step:h?.grid.step??r,value:typeof s=="number"?s:a,...h?{suffix:h.unit,units:h.units}:{suffix:"px"},ariaLabel:e,onChange:I})})}function iO(e,o,t){return[{label:"Auto",value:""},...Array.from({length:e},(r,a)=>({label:a===0?`1 ${o}`:`${a+1} ${t}`,value:String(a+1)}))]}function kve(){return{_gCellWidth:zt("Cell size"),gridSpan:st("Positions",k(fg,{}),iO($c,"position","positions"),""),gridRowSpan:st("Rows tall",k(pg,{}),iO(_x,"row","rows"),"")}}function Po(){let e=null,o=null;try{e=pO(Sg),o=qf(t=>t).selectedItem}catch{o=null}return e??o?.props??{}}var Sg=Sj(null);function f8({min:e,max:o,step:t,px:r,label:a,onChange:n,desktopKey:s,fallback:l}){let d=Po()[s],c=lf(void 0,d,l);return k(Fr,{children:Zo({min:e,max:o,step:t,value:lf(r,d,l),readout:!1,ariaLabel:a,notch:c,onChange:n})})}function p8({label:e,desktopKey:o,fallback:t,unit:r="px",changed:a=!1,onReset:n=()=>{}}){let s=Po()[o],l=lf(void 0,s,t);return k(Ho,{words:de()?.panel,label:i(e),changed:a,detail:Xa(d=>i(d),`${l}${r}`),onReset:n})}function u8(e){return WK(e.label,{icon:e.icon,min:e.min,max:e.max,step:e.step,unit:e.unit,unsetLabel:"Follows Desktop",unsetMark:k(p8,{label:e.label,desktopKey:e.desktopKey,fallback:e.fallback,unit:e.unit}),restTrack:o=>k(f8,{...o,desktopKey:e.desktopKey,fallback:e.fallback})})}var m8={Top:"Padding top",Bottom:"Padding bottom",Left:"Padding left",Right:"Padding right"},h8={Top:ug,Bottom:gO,Left:bO,Right:yO},x8=e=>{let o=h8[e];return k(o,{})};function Tve(e={}){let o=e.keys?.top??"sectionPaddingTop",t=e.keys?.bottom??"sectionPaddingBottom",r=e.group!==!1,a=C=>m8[C],n=C=>Oo(a("Top"),k(ug,{}),mt.min,mt.max,mt.step,C,"px"),s=(C,w,T,y=mt)=>it("mobile",u8({label:a(C),icon:x8(C),desktopKey:w,min:y.min,max:y.max,step:y.step,fallback:T})),l=e.top??mt.min,d=e.bottom??mt.min,c="sectionPaddingLeft",f="sectionPaddingRight",u=e.sideBounds??mt,p=e.side??u.min,h=e.sidePhone??p,I=e.phone===!0,g=C=>I?it("desktop",C):C;return pi({...r?{_gSpacing:zt("Padding")}:{},[o]:g(n(l)),...I?{[vs(o)]:s("Top",o,l)}:{},...e.only==="top"?{}:{[t]:g(Oo(a("Bottom"),k(gO,{}),mt.min,mt.max,mt.step,d,"px")),...I?{[vs(t)]:s("Bottom",t,d)}:{}},...e.sides?{[c]:g(Oo(a("Left"),k(bO,{}),u.min,u.max,u.step,p,"px")),...I?{[vs(c)]:s("Left",c,h,u)}:{},[f]:g(Oo(a("Right"),k(yO,{}),u.min,u.max,u.step,p,"px")),...I?{[vs(f)]:s("Right",f,h,u)}:{}}:{}})}function Pve(e,o){let t=Object.fromEntries(Object.entries(o).map(([n,s])=>[n,n in e&&ia(s)?e[n]:s])),r={},a=!1;for(let[n,s]of Object.entries(e)){if(n in o){a||Object.assign(r,t),a=!0;continue}r[n]=s}return a||Object.assign(r,t),r}var jf="Width";function ep(e,o=KE,t=!0){let r=o.map(a=>({label:Va[a],value:a}));return pi({...t?{_gWidth:zt(jf)}:{},widthMode:{type:"custom",render:({onChange:a,field:n})=>k(mo,{label:i(jf),icon:k(Kj,{}),action:t?k(EK,{inherited:n?.inherited??!1,onReset:()=>a(XI),label:jf}):void 0,children:si({options:r,value:n?.currentValue||e,onChange:a,ariaLabel:jf})})}})}function op({fill:e=!1}={}){let o=(a,n)=>({type:"custom",render:({value:s,onChange:l})=>k(I8,{value:s,onChange:l,view:a,badge:n,fill:e})}),t=()=>ig("sectionHeightMode"),r=()=>ig("sectionHeightMode");return pi({_gHeight:zt(es),...Er("sectionHeightMode",a=>a==="desktop"?o(a):o(a,n=>k(S8,{view:a,onClear:()=>n(void 0)}))),...Er("sectionHeightValue",t),...Er("sectionHeightUnit",r)})}function I8({value:e,onChange:o,view:t,badge:r,fill:a=!1}){let n=Po(),{mode:s,number:l,unit:d}=g8(t,n,e);return k(mo,{label:es,icon:ks(k(pg,{})),action:r?r(o):void 0,children:Rr("div",{className:"es-width-stack",children:[si({options:[{label:"Auto",value:"auto"},{label:"Fixed",value:"fixed"},{label:"Screen",value:"screen"},...a?[{label:"Fill",value:"fill"}]:[]],value:s,onChange:o,ariaLabel:es}),l?k(y8,{view:t,mode:s,menu:d}):null]})})}function WO(e,o){return e==="phone"&&bc(o)?Rk(o):_k(o)}function tp(e,o){return e==="desktop"||(e==="tablet"?bc(o):Ak(o))?null:WO(e,o)}function g8(e,o,t){let r=(a=>Pk.includes(a))(t)?t:tp(e,o)?.mode??"auto";return{mode:r,number:r!=="auto"&&r!=="fill",unit:r==="fixed"}}function b8(e,o,t,r){let a=tp(e,o);return!a||e==="desktop"?null:r===void 0?{}:{[we("sectionHeightMode",e)]:a.mode,...a.mode==="fixed"?{[we("sectionHeightUnit",e)]:a.unit}:{},...t==="sectionHeightUnit"?{[we("sectionHeightValue",e)]:a.value}:{},[we(t,e)]:r}}function dO(e,o,t){let r=Ya(),a=tp(e,Po());return!r||!a?{followed:null,write:t}:{followed:a,write:n=>r.onChangeMany(s=>{let l=b8(e,s,o,n);return l===null?{[we(o,e)]:n}:Object.keys(l).length?l:null})}}function y8({view:e,mode:o,menu:t}){let r=Ya(),a=Po(),n=we("sectionHeightValue",e),s=we("sectionHeightUnit",e),l=C=>w=>r?.onChangeMany(()=>({[C]:w})),{followed:d,write:c}=dO(e,"sectionHeightValue",l(n)),{write:f}=dO(e,"sectionHeightUnit",l(s)),u=o==="screen"?"%":a[s],p=(d?d.unit:u)==="%"?"%":"px",h=p==="%"?Ok:Ek,I=a[n],g=t?{options:["px","%"],label:i("Unit"),onChange:C=>f(C)}:void 0;return Zo({min:h.min,max:h.max,step:h.step,value:d?null:typeof I=="number"?I:h.fallback,...d?{placeholder:d.value}:{},suffix:p,...g?{units:g}:{},ariaLabel:es,onChange:c})}function S8({view:e,onClear:o}){let t=Po(),r=tp(e,t)===null,a=e==="phone"&&bc(t),n=WO(e,t),s=Xa(l=>i(l),n.mode==="auto"?i("Auto"):`${n.value}${n.unit}`,a?"tablet":"desktop");return k(Ho,{words:de()?.panel,label:i(es),changed:r,detail:s,onReset:o})}function wg(e={}){let o=e.intro===!0,t=n=>({type:"custom",render:({value:s,onChange:l,id:d,name:c})=>k(E8,{value:s,onChange:l,labelId:`${d??c??"stickTop"}-label`,view:n,intro:o})}),r=n=>({type:"custom",render:({value:s,onChange:l})=>k(k8,{value:s,onChange:l,view:n,intro:o})}),a=n=>({type:"custom",render:({value:s,onChange:l})=>k(T8,{value:s,onChange:l,view:n,intro:o})});return{_gStick:zt(IE,{dot:o?v8:BI}),...Er("stickTop",t),...Er("stickTopDistance",r),...li(Ql,"stickTopDistance",{tablet:!0,phone:!0}),...e.screens?Er(ja,a):{},...o?{}:{[LI]:w8()},...o||e.above===!1?{}:{[ei]:C8()}}}function w8(){let e=st(gE,k(ug,{}),bE,yE);return it("desktop",{...e,render:o=>{let t=e.render({...o,value:FI(o.value),onChange:r=>o.onChange(wE(r))});return cg(t,{hint:i(SE)})}})}function C8(){let e=zO(CE,!1,k(SO,{}),vE);return it("desktop",{...e,render:o=>e.render({...o,onChange:t=>o.onChange(t===!0?!0:void 0)})})}var v8={any:[BI,TE]};function UO(e,o,t,r,a){let n=Ya(),s=Po(),l=e==="desktop"||fi(e,s)?null:Cg(e,gs(s,{intro:r}));return{followed:l,write:(l||a)&&n?d=>n.onChangeMany(c=>{let f=P8(e,c,d,o,r),u=f===null?{[we(o,e)]:d}:f;return Object.keys(u).length?{...u,...a?.(d)??{}}:null}):t}}function k8({value:e,onChange:o,view:t,intro:r}){let a=Po(),n=gs(a,{intro:r}),s=f=>{let u=hc(f);return u==="desktop"||fi(u,a)},l=Jf({row:Ql,label:"Distance from top",grid:{min:ht.min,max:ht.max,step:ht.step},valueKey:"stickTopDistance",view:t,numbersIn:f=>s(f)&&q(a[Ig("stickTopDistance",f)])!==void 0,followsView:t==="phone"&&n.ownTablet?"tablet":"desktop"}),{followed:d,write:c}=UO(t,"stickTopDistance",o,r,l?f=>l.unitPatch(f===void 0):void 0);return k("div",{className:"sf-field",children:Zo({min:l?.grid.min??ht.min,max:l?.grid.max??ht.max,step:l?.grid.step??ht.step,value:d?null:typeof e=="number"?e:ht.fallback,...d?{placeholder:d.distance}:{},...l?{suffix:l.unit,units:l.units}:{suffix:"px"},ariaLabel:i("Distance from top"),onChange:c})})}function T8({value:e,onChange:o,view:t,intro:r}){let{followed:a,write:n}=UO(t,ja,o,r);return k(mo,{label:i(RI),icon:ks(k(pg,{})),children:Zo({min:Gf.min,max:Gf.max,step:Gf.step,value:a?null:q(e)??Gf.default,...a?{placeholder:a.screens}:{},ariaLabel:i(RI),onChange:n})})}function fi(e,o){return e==="tablet"?DI(o):NI(o)}function Cg(e,o){return e==="phone"?{on:o.tablet,distance:o.tabletDistance,unit:o.tabletUnit,screens:o.tabletScreens}:{on:o.desktop,distance:o.desktopDistance,unit:o.desktopUnit,screens:o.desktopScreens}}function P8(e,o,t,r="stickTopDistance",a=!1){if(e==="desktop"||fi(e,o))return null;if(t===void 0)return{};let n=Cg(e,gs(o,{intro:a})),s=e==="phone"&&fi("tablet",o)?f=>we(f,"tablet"):f=>f,l=(f,u)=>o[s(f)]==null?{}:{[we(f,e)]:u},d=Ql.unitKey,c=o[s(d)]==null?{}:{[we(d,e)]:n.unit};return{[we("stickTop",e)]:!0,...l("stickTopDistance",n.distance),...c,...l(ja,n.screens),[we(r,e)]:t}}function E8({value:e,onChange:o,labelId:t,view:r,intro:a}){let n=Po(),s=gs(n,{intro:a}),l=r==="phone"?s.phone:r==="tablet"?s.tablet:a?s.desktop:e===!0,d=r==="phone"&&s.ownTablet,c=r==="desktop"?null:Cg(r,s),f=c?.on?We(c.distance,c.unit):i("Off");return k(mo,{label:i(AI),labelId:t,icon:ks(k(SO,{})),action:Rr(Fr,{children:[r!=="desktop"?k(Ho,{words:de()?.panel,label:i(AI),changed:fi(r,n),detail:Xa(u=>i(u),f,d?"tablet":"desktop"),onReset:()=>o(void 0)}):null,k(mg,{checked:l,onChange:o,ariaLabelledBy:t})]})})}var cO="e.g. about";function rp(){return{_gAnchor:zt("Anchor"),anchor:Qa({control:"plainText",label:"Name",placeholder:cO},{type:"custom",render:({value:e,onChange:o})=>k(gP,{value:e,onChange:o,nameBox:(t,r)=>k(Ja,{value:t,onChange:r,label:"Name",placeholder:cO,hideable:!1,markup:!1})})})}}function Eve(e,o,t){return{type:"custom",render:({value:r,onChange:a,id:n,name:s})=>{let l=`${n??s??e}-datetime`,d=Date.parse(typeof r=="string"?r:"");return k(mo,{label:i(e),icon:o,htmlFor:l,hint:t===void 0?void 0:i(t),children:k(aK,{id:l,value:Number.isFinite(d)?new Date(d):null,onChange:c=>a(c?c.toISOString():"")})})}}}function zO(e,o,t,r){return{type:"custom",...sa({},{...Vf,label:e}),render:a=>{let{value:n,onChange:s,id:l,name:d}=a,c="follows"in a,f=a,u=typeof n=="boolean",p=typeof f.follows=="boolean"?f.follows:o,h=u?n:c?p:o,I=`${l??d??e}-label`,g=f.readOnly===!0,C=k(mg,{checked:h,onChange:s,disabled:g,ariaLabelledBy:I});return k(mo,{label:i(e),labelId:I,icon:t,hint:r===void 0?void 0:i(r),action:c?Rr(Fr,{children:[k(Ho,{words:de()?.panel,label:i(e),changed:u,detail:f.followsNoView?i(p?"On":"Off"):Xa(w=>i(w),i(p?"On":"Off"),f.followsView),disabled:g,onReset:()=>s(void 0)}),C]}):C})}}}function $O(){return{type:"custom",render:({value:e,onChange:o,id:t,name:r})=>{let a=`${String(t??r??"pageBackground")}-colour`;return k(O8,{label:"Background",icon:k(zj,{}),id:a,value:e,shown:Bx(e),onChange:o})}}}function Ove(e,o,t){return{type:"custom",render:({value:r,onChange:a})=>k(Yo,{label:i(e),icon:t,value:r||o,onChange:a})}}function O8({label:e,icon:o,id:t,value:r,shown:a,onChange:n}){let{colors:s,n:l}=kg(),d=rr(r),c=d?ds(d,s,l):null;return k(Yo,{label:i(e),icon:o,id:t,value:c?c.hex:a,caption:c?.words,onChange:n,choices:vg(d??"",s,l,n)})}function _ve(){return{type:"custom",render:e=>{let{value:o,onChange:t}=e,r=e;return k(_8,{value:typeof o=="string"?o:"",onChange:t,twin:"follows"in e?{follows:r.follows,view:r.followsView}:void 0})}}}function vg(e,o,t,r){let a=of(e);return CP(o,t).map(n=>({label:n.label,color:n.value,selected:a===n.name,onPick:()=>r(n.name)}))}function _8({value:e,onChange:o,twin:t}){let{colors:r,n:a}=kg(),n=r.background,s=Za(n.toUpperCase(),i("Theme {n} background",{n:a})),[l,d]=Ut(LP),[c]=Ut(Mx),f=typeof c=="string"&&c.trim()!=="",u=Qc(l),p=b=>d(Qc(b)||void 0),h=of(e),I=h?ds(h,r,a):null,g=vg(e,r,a,o),C=t?()=>o(void 0):()=>o(""),w=n,T=s;if(t){let b=of(t.follows),P=ef(t.follows),H=b?ds(b,r,a):P?{hex:P,words:P.toUpperCase()}:null;w=H?.hex??n,T=Xa(E=>i(E),H?H.words:s,t.view)}let y=!t&&(Ul(e)||f)?k(A8,{value:u,onChange:p}):null;return I?k(Yo,{label:i("Fill"),icon:k(lg,{}),value:I.hex,caption:I.words,onChange:o,changed:!0,onReset:C,resetTo:T,choices:g,children:y}):k($l,{label:i("Fill"),icon:k(lg,{}),value:e,inherited:w,resetTo:T,onChange:o,onReset:C,choices:g,children:y})}function A8({value:e,onChange:o}){return si({options:Jc.map(t=>({label:t.label,value:t.value,hint:t.hint})),value:e,onChange:o,ariaLabel:i("Fill")})}function R8(e,o,t){if((e?.content??[]).some(n=>n?.props?.id===o))return er(t);let r=BP(e,o);if(r.length===0)return null;let a=er(Uh(t));if(a!==null)return a;for(let n=r.length-1;n>0;n-=1){let s=er(Uh(r[n].sectionAccent));if(s!==null)return s}return er(r[0].sectionAccent)}function kg(){let e=xo(he().theme),[o]=Ut("sectionAccent"),t=null;try{let{appState:a,selectedItem:n}=qf(l=>l),s=n?.props?.id?String(n.props.id):void 0;t=s?R8(a?.data,s,o):null}catch{t=null}let r=t!==null&&e.themes[t]?t:e.selected;return{colors:Vo(e.themes[r]),n:r+1}}function Ave(){return LO()}var GO={top:k(Dj,{}),right:k(Bj,{}),bottom:k(Lj,{}),left:k(Fj,{})};function jO(e,o,t,r,a,n,s){let l=u=>o.find(p=>p.value===u),d=u=>({value:u,label:"",disabled:!0,title:r}),c=u=>{let p=o.find(I=>I.cell===u);if(!p)return d(`missing-${u}`);let h=n?.[u];return h?{value:p.value,label:p.label,icon:h}:{value:p.value,label:p.label}},f=[d("corner-top-left"),c("top"),d("corner-top-right"),c("left"),d("centre"),c("right"),d("corner-bottom-left"),c("bottom"),d("corner-bottom-right")];return{type:"custom",render:({value:u,onChange:p})=>{let h=o.some(I=>I.value===u)?u:t;return k(mo,{label:i(e),icon:a,value:l(h)?.label?i(l(h).label):s?i(s):"",children:bK(i,{label:e,value:h,onChange:p,points:f})})}}}function Rve(e,o,t){return{type:"custom",options:o,render:({value:r,onChange:a,field:n})=>k(l0,{label:e,options:(n.options??o).map(s=>({...s,label:i(s.label)})),value:Array.isArray(r)?r:[],onChange:a,...t?{emptyLabel:i(t)}:{}})}}function Lve(e,o={}){return{type:"custom",render:({value:t,onChange:r})=>{let a={value:t,onChange:r,...o};return k(e,{...a})}}}var Fve=[{label:"Image",value:"image"},{label:"Video",value:"video"}];function Bve(e,o,t){let r=Object.keys(nx).map(a=>({label:nx[a],value:a,picture:t[a]}));return{type:"custom",...sa({},{type:"radio",label:e,options:r.map(a=>({value:a.value,label:a.label}))}),render:({onChange:a})=>k(F8,{label:e,icon:o,options:r,onChange:a})}}function L8(e,o,t){let r=cT(e,o,t);if(r!==void 0)return r==="save-makes-frame"?i("A frame is made from this video when you save the page."):r==="starts-dark"?i("This video starts dark, so no frame was made. The slide shows its background colour while the video loads. Choose Image to show a picture."):r==="outside"?i("This video is on another website, so no frame can be made. The slide shows its background colour while the video loads. Choose Image to show a picture."):r==="unsupported"?i("This video's file type gives no frame. The slide shows its background colour while the video loads. Choose Image to show a picture."):r==="failed"?i("No frame could be made from this video. It is tried again the next time you save the page. The slide shows its background colour while the video loads."):r==="image-no-frame"?i("The slide shows your Image while the video loads, because this video has no frame."):void 0;let a=dT(e);return a==="frame-missing-image"?i("This video has no frame yet. The slide shows its image until one is made."):a==="frame-missing-surface"?i("This video has no frame yet. The slide shows its background colour until one is made."):a==="image-missing-frame"?i("No image yet. The slide shows the video's frame until you choose one."):a==="image-missing-surface"?i("No image yet. The slide shows its background colour until you choose one."):void 0}function F8({label:e,icon:o,options:t,onChange:r}){let a=Ya(),n=a?.values??{},s=Al(n),l=pO(Cj),d=Dc(l?.docId??null),c=null;try{c=qf(u=>u.appState.data)}catch{c=null}let f=OT(a?.id,c,d);return k(mo,{label:i(e),icon:ks(o),hint:L8(n,f,l?.hasUnsavedEdits??!1),children:si({options:t,value:s,onChange:r,ariaLabel:e})})}function Dve(e,o,t,r={}){let a={type:"custom",[Tj]:!0,render:({value:n,onChange:s,name:l})=>k(n0,{value:n||"",onChange:s,fieldKey:l,label:e,accept:o,placeholder:t,focusKey:r.focus,focusWhen:r.focusWhen,frameKey:r.frame}),...r.focus?{focusKey:r.focus}:{},...r.focusWhen?{focusWhen:r.focusWhen}:{}};return r.focus?it("each",a):a}function B8(e){let o=i(e.status??"");return e.ok&&typeof e.lat=="number"&&typeof e.lng=="number"?`${o} \xB7 ${e.lat.toFixed(4)}, ${e.lng.toFixed(4)}`:o}function Nve({value:e,onChange:o,label:t}){let r=e||{},a=Ya(),n=a?a.values!==a.node.props:!0,s=!!r.pending&&n,l=!!r.pending&&!n,d=!!to(IK()).geocode,c=uO(),f=(u,p)=>o({...r,[u]:p??void 0});return Rr(Fr,{children:[k(mo,{label:i(t),icon:k(oO,{}),action:d?k(hg,{content:i("Find from the address (OpenStreetMap)"),children:k(vO,{"aria-label":i("Find from the address"),"aria-busy":s||void 0,disabled:s,onClick:()=>o({...r,pending:!0,ok:!1,status:"Finding\u2026"}),children:k($j,{})})}):void 0,children:d&&r.status?k(bP,{compact:!0,oneLine:!0,spaced:!1,status:s?"busy":r.ok&&!l?"found":"notfound",statusText:s?i("Finding\u2026"):l?i(zx):i(r.status),hint:B8(r)}):null}),k(mo,{label:i("Enter by hand"),labelId:c,icon:k(Nj,{}),action:k(mg,{checked:!!r.manual,onChange:u=>o({...r,manual:u}),ariaLabelledBy:c})}),r.manual&&k(mo,{label:i("Latitude, longitude"),icon:k(oO,{}),children:Rr("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:8,width:"100%",minWidth:0},children:[k(rO,{value:typeof r.lat=="number"?r.lat:null,onChange:u=>f("lat",u),min:-90,max:90,step:1e-4,placeholder:i("Latitude")}),k(rO,{value:typeof r.lng=="number"?r.lng:null,onChange:u=>f("lng",u),min:-180,max:180,step:1e-4,placeholder:i("Longitude")})]})})]})}function D8(e,o){return o===null||o<0||o>=e.length?"":e[o]?.text??""}function N8(e,o,t){let r=e.map(a=>({text:a?.text??""}));return o===null||o<0||o>=e.length?r:r.map((a,n)=>n===o?{text:t}:a)}function M8(e,o,t){if(t===null||t>=o.length)return null;for(let r=0;r<t;r+=1)if(e[r]!==o[r])return null;return e[t]!==o[t]&&o.includes(e[t])||e[t]!==o[t]&&o.length!==e.length?null:t}var Tg={label:"Ticker items",icon:k(Uj,{})};function Mve(e,o,t,r){return{type:"custom",[Lr]:{control:"textList",label:e,placeholder:t,itemKey:"text",rendering:r},...sa({},{...OO.textList,label:e}),render:({value:a,onChange:n})=>k(Pg,{label:e,icon:ks(o),items:Array.isArray(a)?a:[],placeholder:t,onChange:n,markup:r==="markup"})}}function Pg({label:e,icon:o,items:t,placeholder:r,onChange:a,markup:n=!1}){let s=ii(null),[l,d]=di(null),c=u=>u.map(p=>({text:p?.text??""})),f=u=>{let p=M8(t,u,l);p===null&&(s.current=null),d(p),a(c(u))};return k(eK,{label:i(e),icon:o,noun:i("item"),items:t,onChange:f,newItem:()=>({text:""}),open:null,onOpen:()=>{},renderItem:()=>null,above:n?k(jx,{target:s,value:D8(t,l),onChange:u=>a(N8(t,l??-1,u)),disabled:l===null,label:l===null?i("Formatting \u2014 click a row first"):i("Formatting \u2014 row {n}",{n:l+1})}):void 0,renderRow:(u,p,h)=>k("input",{type:"text",className:n&&l===p?"sf-list-marking":void 0,value:u?.text??"",placeholder:i(r),"aria-label":i("{label} {n}",{label:i(e),n:p+1}),onChange:I=>h({text:I.target.value}),onFocus:I=>{s.current=I.currentTarget,d(p)}})})}function KO(e,o){let t=`${e.label} \u2014 row ${o+1}`;return Qa({control:"plainText",label:t,placeholder:e.placeholder,offPage:e.offPage},{type:"custom",render:({value:r,onChange:a})=>k(Ja,{value:r,onChange:a,label:i("{label} \u2014 row {n}",{label:i(e.label),n:o+1}),placeholder:e.placeholder,hideable:!1,markup:e.rendering==="markup"})})}function VO(e){return{_gCards:zt("Cards"),coverIndex:st("Cover image",k(Wj,{}),t0,String(1),e?.coverHint??"A card's opening picture \u2014 a card pinned to a finish keeps its own."),imageBackground:HK("Image background",Nf),cardImage:YO()}}function Hve(){return{outline:st("Card outline",k(Gj,{}),o0,e0),indexBadge:st("Card number",k(Hj,{}),Zx,Xx),showBadge:zO("Product badge",!0,k(Rx,{noun:"tag"}))}}function qO(e){let o=e?.defaults??{showCardSizes:!0,showCardBuy:!0,showCardPage:!0},t=a=>({...Vf,label:Kf.find(n=>n.id===a).label}),r=a=>sa(ig(sg),t(a));return{_gShowOnCard:zt("Show on a card"),[sg]:sa({type:"custom",render:()=>k(H8,{rest:{showCardPrice:!0,showCardFinishes:!0,...o}})},t(sg)),showCardFinishes:r("showCardFinishes"),showCardSizes:r("showCardSizes"),showCardBuy:r("showCardBuy"),showCardPage:r("showCardPage")}}var sg="showCardPrice",Kf=[{id:"showCardPrice",label:"Price"},{id:"showCardFinishes",label:"Finish swatches"},{id:"showCardSizes",label:"Sizes"},{id:"showCardBuy",label:"Buy button"},{id:"showCardPage",label:"Page button"}];function H8({rest:e}){let o=Po(),t=ta(),r=s=>typeof o[s]=="boolean"?o[s]:void 0,a=s=>r(s)??e[s],n=Kf.some(({id:s})=>r(s)!==void 0&&r(s)!==e[s]);return k(Ts,{parts:Kf,changed:n,shown:a,onPress:(s,l)=>t({[s]:l}),onReset:()=>t(Object.fromEntries(Kf.map(({id:s})=>[s,void 0])))})}function Wve(e,o="display"){let t=vs(o);return{[o]:it("desktop",{type:"custom",render:({value:r,onChange:a})=>k(Ts,{parts:e,changed:HP(r),shown:n=>af(r,n),onPress:(n,s)=>a(UP(r,n,s)),onReset:()=>a(void 0)})}),[t]:it("mobile",{type:"custom",render:({value:r,onChange:a})=>k(W8,{parts:e,desktopKey:o,value:r,onChange:a})})}}function Ts({parts:e,changed:o,shown:t,onPress:r,onReset:a,detail:n,disabledReason:s}){let l=i("Display");return k(mo,{label:l,icon:k(Oj,{}),changed:o,action:k(Ho,{words:de()?.panel,label:l,changed:o,detail:n,onReset:a}),children:k(oK,{label:l,items:e.map(d=>({id:d.id,label:i(d.label),shown:t(d.id),...s?{disabled:!0,disabledReason:i(s)}:{}})),onChange:r})})}function W8({parts:e,desktopKey:o,value:t,onChange:r}){let a=Po()[o];return k(Ts,{parts:e,changed:WP(t),shown:n=>Ux(a,t,n),onPress:(n,s)=>r(zP(t,n,s)),onReset:()=>r(df),detail:i("the same as Desktop")})}function YO(e=ZT){return Oo("Card image",k(xO,{}),Wo,Vr,XT,Wo,e,{clear:{hint:Wo},hint:"Rounds the picture. The card's own corner is in Styles."})}function U8(){return li(kx,"cardImage")}function Uve(){return{cardImage:YO(kx),...U8()}}function zve(){return yg({sidesKey:"cornerSides",row:JT,step:QT,useFollowed:()=>Wo,mark:k(z8,{label:eP}),hint:i("Rounds the picture. Left alone it stays square.")})}function z8({label:e,changed:o=!1,onReset:t=()=>{}}){return k(Ho,{words:de()?.panel,label:i(e),changed:o,onReset:t})}function $ve(){return{type:"custom",render:({value:e,onChange:o})=>k(K8,{value:typeof e=="string"?e:"",onChange:o})}}var fO="own";function Gve(){let e=[{value:fO,label:"Layout's own",picture:tg(Array.from({length:8},()=>[3,1]))},...Object.entries(zc).map(([o,t])=>({value:o,label:t.label,picture:tg([...t.phone,...t.phone])}))];return it("mobile",eg("Layout",k(IO,{}),e,fO,{columns:2,cell:QE}))}function $8({layout:e,width:o}){let t=Ox(e),r=t?`${t[0]}/${t[1]}`:void 0;return k("span",{"aria-hidden":"true",style:{display:"grid",width:o,gridTemplateColumns:"repeat(12, minmax(0, 1fr))",gridAutoRows:r?"auto":6,gridAutoFlow:"row dense",gap:2},children:lP(e).map(([a,n],s)=>k("i",{className:"block rounded-xs bg-current opacity-60",style:{gridColumn:`span ${a}`,gridRow:`span ${n}`,aspectRatio:r}},s))})}var G8={width:"3.5rem",height:"2.5rem",words:!1},j8=200;function K8({value:e,onChange:o}){let[t,r]=di(null),[a,n]=di(4),s=ii(null);wj(()=>{let h=s.current;if(!h||typeof ResizeObserver!="function")return;let I=()=>n(h.getBoundingClientRect().width>=j8?4:3);I();let g=new ResizeObserver(I);return g.observe(h),()=>g.disconnect()},[]);let l=e?K(Ml,e):void 0,d=l?e:"",c=Px(t,d),f=Px(t,"").length,u=jc("no-symbol"),p=[{value:"",label:i("Not chosen"),icon:JE(u,i("Not chosen"))},...c.map(h=>({value:h,label:i(Ml[h].label),icon:k($8,{layout:Ml[h],width:40})}))];return k(mo,{label:i("Layout"),icon:k(IO,{}),value:l?i(l.label):void 0,children:k("div",{ref:s,style:{flex:"1 1 auto",minWidth:0},children:k(wO,{label:i("Layout"),value:d,options:p,onChange:o,columns:a,cell:G8,header:Rr("div",{className:"mb-2 flex flex-col gap-1",style:{minWidth:"11rem"},children:[k("span",{className:"text-2xs text-ink-faint",children:i("Photos in a row")}),k(Yj,{options:[{id:"all",label:i("All")},...aP.map(h=>({id:String(h),label:String(h)}))],value:t===null?"all":String(t),ariaLabel:i("Photos in a row"),onChange:h=>r(h==="all"?null:Number(h))}),k("span",{className:"text-2xs text-ink-faint",children:i("{n} of {total} layouts",{n:f,total:Tx.length})})]})})})})}import{decodePartId as c7}from"efficient-easel/draw";import{decodePartId as Ag,encodePartId as ip}from"efficient-easel/draw";import{LINK_FIELD_MARKER as n_,SCAFFOLD_FIELD_MARKER as r_,TEXT_FIELD_MARKER as dp}from"efficient-easel/draw";import{readHidable as s_}from"efficient-easel/draw";import{SCALAR_TEXT_CONTROLS as Q8}from"efficient-easel/draw";import{TEXT_FIELD_MARKER as J8}from"efficient-easel/draw";import{TEXT_FIELD_MARKER as XO}from"efficient-easel/draw";import{readHidable as ZO}from"efficient-easel/draw";import{SCALAR_TEXT_CONTROLS as V8}from"efficient-easel/draw";var q8=V8,Y8=["text","textarea"],X8=["textarea","plainTextarea"];function Z8(e){return!e||typeof e!="object"?null:e[XO]?.control??null}function Ps(e){let o=Z8(e);return o&&q8.includes(o)?o:null}function ap(e){return X8.includes(e)}function JO(e){return!e||typeof e!="object"?void 0:e[XO]?.placeholder}function np(e){return ZO(e).text}function Eg(e,o,t){return Y8.includes(e)?{text:t,hidden:ZO(o).hidden}:t}function QO(e,o,t,r){return np(e[o])===r?null:{...e,[o]:Eg(t,e[o],r)}}function Es(e,o){return o?`${e}[${o.index}].${o.rowKey}`:e}function $t(e){let o=/^([A-Za-z0-9_$]+)\[(\d+)\]\.([A-Za-z0-9_$]+)$/u.exec(e);return o?{key:o[1],row:{index:Number(o[2]),rowKey:o[3]}}:{key:e,row:null}}function sp(e){if(!(!e||typeof e!="object"))return e[J8]}function Og(e){if(!e||typeof e!="object")return null;let o=e.arrayFields;return o&&typeof o=="object"?o:null}function e_(e,o){if(!Array.isArray(o))return[];let t=sp(e),r=[];if(t?.control==="textList"){let n=t.itemKey??"text";return o.forEach((s,l)=>{let d=Se(s?.[n]);d&&r.push({row:{index:l,rowKey:n},text:d})}),r}let a=Og(e);return a?(o.forEach((n,s)=>{for(let[l,d]of Object.entries(a)){if(!Ps(d))continue;let c=np(n?.[l])||sp(d)?.placeholder||"";c&&r.push({row:{index:s,rowKey:l},text:c})}}),r):[]}function ui(e,o){if(Array.isArray(e))return e[o.index]?.[o.rowKey]}function _g(e,o,t,r){let a=e[o];return!Array.isArray(a)||t.index<0||t.index>=a.length?null:{...e,[o]:a.map((n,s)=>s===t.index?{...n,[t.rowKey]:r}:n)}}function o_(e,o,t,r,a){let n=ui(e[o],t);return np(n)===a?null:_g(e,o,t,Eg(r,n,a))}function t_(e,o){return o?`${e} \xB7 row ${o.index+1}`:e}var Gt="data-sf-part",pke="data-sf-region-part",uke="data-sf-part-row";function mke(e,o){return`${e}[${o}]`}var hke="data-sf-part-kind",e7="data-sf-part-style-owner",o7="data-sf-part-style-kind";function xke(e){for(let o=e;o;o=o.parentElement){let t=o.getAttribute(e7),r=o.getAttribute(o7);if(t&&r)return{owner:t,kind:r};if(o.getAttribute("data-easel-block"))return null}return null}var a_=2;function Os(e){return yr(e).replace(/\s+/gu,"")}function lp(e,o,t){let r=e[dp];if(r){if(r.control==="textList"){let n=r.itemKey??"text";if(!Array.isArray(o))return;for(let s of o){let l=s?.[n];typeof l=="string"&&t.push(l)}return}let{text:a}=s_(o);a?t.push(a):r.placeholder&&t.push(r.placeholder);return}if(!e[n_]){if(e.type==="text"||e.type==="textarea"){let a=Se(o);a&&t.push(a);return}if(e.arrayFields&&Array.isArray(o)){for(let a of o)for(let[n,s]of Object.entries(e.arrayFields))lp(s,a?.[n],t);return}if(e.objectFields&&o&&typeof o=="object")for(let[a,n]of Object.entries(e.objectFields))lp(n,o[a],t)}}function Rg(e){if(!e||typeof e!="object")return!1;let o=e;return o[n_]?!1:!!o[dp]||o.type==="text"||o.type==="textarea"}function cp(e,o){let t=e[dp];return t?.label?t.label:typeof e.label=="string"?e.label:o}function Lg(e){let o=e.indexOf(" (");return(o>0?e.slice(0,o):e).trim()}function Ike(e,o,t){if(!e)return[];let r=[];for(let[a,n]of Object.entries(e)){if(!n||typeof n!="object"||Gl(a))continue;let s=n,l=[];lp(s,o?.[a],l),!l.length&&s[r_]!==void 0&&lp(s,s[r_],l);let d=cp(s,a);if(t?.(a)&&Rg(s)){l.length&&r.push({key:a,label:d,texts:[],keyed:!0});continue}let c=new Set;for(let{row:p,text:h}of e_(s,o?.[a])){let I=Os(h);I.length<a_||(c.add(I),r.push({key:a,label:d,texts:[I],row:p}))}let f=new Set(c),u=[];for(let p of l){let h=Os(p);h.length<a_||f.has(h)||(f.add(h),u.push(h))}u.length&&r.push({key:a,label:d,texts:u})}return r}function Fg(e){return!e.offPage&&!e.hidden&&e.panelOnly!==!0}var t7=Q8;function l_(e,o){if(!o||typeof o!="object"||Gl(e)||VP(o))return null;let t=o[dp];return!t||!t7.includes(t.control)?null:t}function gke(e,o){let t=l_(e,o);return t!==null&&t.identifier!==!0}function i_(e,o){if(!e)return[];let t=[];for(let[r,a]of Object.entries(e)){let n=l_(r,a);if(!n)continue;let{text:s,hidden:l}=s_(o?.[r]);if(Fg({offPage:n.offPage===!0,hidden:!!l,panelOnly:ms(a)}))continue;let d=s||n.placeholder||"",c=yr(d).replace(/\s+/gu," ").trim();t.push({key:r,label:Lg(cp(a,r)),preview:c,offPage:n.offPage===!0,identifier:n.identifier===!0,hidden:!!l})}return t}function _s(e,o){let t=sp(e);return t?.control==="textList"?o.rowKey===(t.itemKey??"text")?KO(t,o.index):null:Og(e)?.[o.rowKey]??null}function fp(e,o,t){let r=e.node.props,{key:a,row:n}=$t(e.propKey),s=n?o_(r,a,n,e.kind,o):QO(r,a,e.kind,o);return s?(t(e.zone,e.index,{...e.node,props:s}),!0):!1}import{readHidable as p_}from"efficient-easel/draw";import{isNodeList as r7}from"efficient-easel/data";var Bg=e=>String(e+1).padStart(2,"0"),Tke=[{label:"01 \xB7",value:"two-digit"},{label:"1.",value:"plain"}],Dg="two-digit",d_=e=>e==="plain"?"plain":Dg,pp=(e,o)=>e==="plain"?`${o+1}.`:Bg(o);var Mg="Contents",Ng="Flex",c_="Text",a7="numberForm",Nke="_contentsEntries",Mke="_kickerNumber",u_="data-sf-kicker-number",n7=e=>p_(e).text.trim(),m_=e=>Kc(e?.anchor),f_=e=>String(e.props?.id??""),s7=e=>!p_(e.props?.text).hidden&&!as(e.props)&&!Zt(e.props);function mi(e){return Object.values(e.props??{}).filter(r7)}function h_(e){for(let o of mi(e))for(let t of o){if(zl(t.props??{}))continue;if(t.type===c_&&s7(t))return t;if(t.type===c_)continue;let r=h_(t);if(r)return r}}function x_(e){return mi(e).some(o=>o.some(t=>t&&!zl(t.props??{})&&(t.type===Mg||x_(t))))}var I_=e=>e.type===Ng&&bs(Ng,e.props?.direction)==="row";function g_(e){return mi(e).some(o=>o.some(t=>t&&!zl(t.props??{})&&(t.type===Mg||!I_(t)&&g_(t))))}function l7(e){let o=[],t=(r,a)=>{for(let n of r){if(!n||zl(n.props??{}))continue;if(n.type===Mg){a.open={contents:n,sections:a.waiting??[]},a.waiting=null,o.push(a.open);continue}if(I_(n)&&g_(n)){let l={inRow:!0,open:null,waiting:[]};for(let d of mi(n))t(d,l);a.inRow||(a.open=null);continue}let s=a.open?.sections??a.waiting;if(n.type===Ng&&m_(n.props)&&s&&!x_(n)){s.push({box:n,kicker:h_(n)});continue}for(let l of mi(n))t(l,a)}};return t(e,{inRow:!1,open:null,waiting:null}),o}function i7(e){return e.map(o=>({label:o.kicker?yr(n7(o.kicker.props?.text)):"",anchor:m_(o.box.props)}))}function Hke(e){let o=e?.length?l7(e):[];if(!o.length)return null;let t=new Map,r=new Map;for(let a of o){let n=f_(a.contents);n&&t.set(n,i7(a.sections));let s=d_(a.contents.props?.[a7]);a.sections.forEach((l,d)=>{let c=l.kicker?f_(l.kicker):"";c&&r.set(c,pp(s,d))})}return{entries:t,numbers:r}}var Wke=e=>e.endsWith(".")?`${e} `:`${e} \xB7 `;var f7=`[${u_}]`,p7=["bold","italic","underline","strike","link","sup","sub"],u7=["bullet","number"];function Ug(e,o){return e?[...p7,...o?u7:[]]:[]}function b_(e,o){let t=c7(e);if(!t?.propKey)return null;let{nodeId:r,propKey:a}=t,n=o.getItemById(r),s=o.getSelectorForId(r);if(!n||!s)return null;let{key:l,row:d}=$t(a),c=o.components[n.type]?.fields?.[l],f=d?_s(c,d):c,u=Ps(f);if(!u)return null;let p=n.props??{};if(mI(p)!==null||!d&&ic(n.type,p,l)||n.type==="Text"&&l==="text"&&as(p)||d&&!(Array.isArray(p[l])&&d.index<p[l].length))return null;let h=d?ui(p[l],d):p[l];return{node:n,selector:s,propKey:a,kind:u,stored:h,offPage:Yf(f),panelOnly:ms(f)}}function up(e,o){let t=b_(e,o);if(!t)return null;let{text:r,hidden:a}=la(t.stored);if(!Fg({offPage:t.offPage,hidden:!!a,panelOnly:t.panelOnly}))return null;let n=ap(t.kind);return{partId:e,value:r,rules:Yd,multiline:n,skip:f7,offered:Ug(t.kind!=="plainText",n),write:s=>{let l=b_(e,o);l&&fp({node:l.node,propKey:l.propKey,kind:l.kind,zone:l.selector.zone,index:l.selector.index},s,o.replace)}}}function zg(e,o,t){return e?.isConnected&&e.getAttribute(Gt)===t?e:o?.querySelector(`[${Gt}="${mp(t)}"]`)??null}function mp(e){return e.replace(/["\\]/g,"\\$&")}function y_(e){let o=e.activeElement;return o?o.tagName==="IFRAME"||!!o.closest(".es-canvas"):!1}var Hg=null,Wg=new Set;function m7(){return Hg}function $g(e){if(e!==Hg){Hg=e;for(let o of Wg)o()}}function h7(e){return Wg.add(e),()=>{Wg.delete(e)}}function S_(){return d7(h7,m7,()=>null)}function w_(e,o){if(e.outer)return null;let t=o.getItemById(e.ownerId);if(!t)return null;let r=Lv(t.type);return!r||Xt(t.props)?null:{node:t,rows:r}}function y7(e,o){let t=w_(e,o),r=o.getItemById(e.nodeId);if(!t||!r)return null;let a=Hv(r.type,r.props,e.key);if(!a)return null;let n=t.node.props[t.rows];return!Array.isArray(n)||e.index<0||e.index>=n.length?null:x7(e.ownerId,Es(t.rows,{index:e.index,rowKey:a}))}function hp(e,o){let t=y7(e,o);return t?up(t,o):null}function C_(e,o){return hp(e,o)?.value}function v_(e,o){let t=hp(e,o);return t?(t.write(e.text),!0):!1}function k_(e,o){let t=w_(e,o),r=t&&o.getSelectorForId(e.ownerId);if(!t||!r)return!1;let a=t.node.props,n=a[t.rows],s=e.index;if(!Array.isArray(n)||s<0||s>=n.length)return!1;let l;switch(e.action){case"addAfter":{let d=o.components[t.node.type]?.fields?.[t.rows];l=I7(n,s+1,{...d?.defaultItemProps??{}});break}case"moveEarlier":case"moveLater":{let d=e.action==="moveEarlier"?s-1:s+1;if(d<0||d>=n.length)return!1;l=g7(n,s,d);break}case"delete":l=b7(n,s);break;default:return!1}return o.replace(r.zone,r.index,{...t.node,props:{...a,[t.rows]:l}}),!0}import{jsx as Pe,Fragment as lA,jsxs as Ti}from"react/jsx-runtime";import{Fragment as Jq,useEffect as Qq,useId as eY,useMemo as iA,useRef as oY,useState as da}from"react";import{useScreenDocument as xA}from"efficient-easel/screen/components/ScreenDocumentContext";import{UiIcon as Db}from"efficient-easel/draw/client";import tY from"efficient-easel/screen/components/SidePanelHead";import{jsx as ve,Fragment as Ms,jsxs as sn}from"react/jsx-runtime";import{useEasel as eA,useRootFields as dq}from"efficient-easel/easel";import{Inspector as cq}from"efficient-easel/fields";import{SettingsGroup as fq}from"efficient-easel/panel";import{useEffect as pq,useRef as uq,useState as Lb}from"react";import{jsx as en,Fragment as v7,jsxs as k7}from"react/jsx-runtime";import{useState as O_}from"react";import{SettingsDefaultReset as T7,SettingsField as P7}from"efficient-easel/panel";import{useEaselStrings as E7}from"efficient-easel/strings";import{AddIcon as O7}from"efficient-easel/icons";import{Button as _7}from"efficient-shell/ui";import{iconOf as A7,noGlyph as R7}from"efficient-easel/screen/lib/document/box-fields";import{jsx as xp,Fragment as S7,jsxs as T_}from"react/jsx-runtime";import{Button as P_,Dialog as w7}from"efficient-shell/ui";function C7(e){return Uo("This site has {n} color theme of its own. Clearing takes them away and puts back the four the shop supplies.","This site has {n} color themes of its own. Clearing takes them away and puts back the four the shop supplies.",e)}function E_({count:e,onCancel:o,onConfirm:t}){return T_(w7,{open:!0,onClose:o,role:"alertdialog",size:"sm",title:i("Clear this site\u2019s colors?"),footer:T_(S7,{children:[xp(P_,{variant:"secondary",onClick:o,children:i("Cancel")}),xp(P_,{variant:"danger",onClick:t,children:i("Clear colors")})]}),children:[xp("p",{children:C7(e)}),xp("p",{className:"mt-2 font-medium",children:i("This cannot be undone.")})]})}var L7=R7("the row's whole content is an action; the gutter names a subject and this row has none \u2014 the button's label is the name GG, 2026-09-23"),F7="Reset color",B7={selected:0,themes:[]};function D7(e){e(B7)}function __({value:e,onChange:o}){let t=e?.themes??[],r=t.length===0,a=xo(e),[n,s]=O_(!1),l=E7(),[d,c]=O_(null),f=(w,T)=>{o({...a,themes:a.themes.map((y,b)=>b===w?T:y)})},u=Yn(a).accent,p=new Set(a.themes.map(w=>w.brandInk).filter(Boolean)),h=Vv.filter(w=>!p.has(w)).map(w=>qv(u,w)),I=[...a.themes,...h],g=w=>{if(w<a.themes.length)return o({...a,selected:w});let T=[...a.themes,I[w]];o({...a,themes:T,selected:T.length-1})},C=()=>{let w=[...a.themes,{...Vo(a.themes[a.selected])}];o({...a,themes:w,selected:w.length-1}),c(w.length-1)};return k7(v7,{children:[r?null:en(P7,{label:i(F7),icon:A7(L7),labelId:"sf-theme-reset",action:en(T7,{label:i("all theme colors"),words:l.panel,changed:!0,onReset:()=>s(!0)})}),n&&en(E_,{count:t.length,onCancel:()=>s(!1),onConfirm:()=>{s(!1),D7(o)}}),en("div",{className:"sf-theme-list",role:"radiogroup","aria-label":i("Theme"),children:I.map((w,T)=>en(hf,{index:T,colors:w,selected:T===a.selected,open:d===T&&T<a.themes.length,editable:T<a.themes.length,onPick:()=>g(T),onEdit:()=>c(y=>y===T?null:T),onChangeColors:y=>f(T,y)},T))}),en(_7,{variant:"secondary",leftIcon:en(O7,{}),onClick:C,className:"sf-theme-add",children:i("Add new theme")})]})}import{jsx as Ip}from"react/jsx-runtime";import{SettingsDefaultReset as N7,SettingsField as M7}from"efficient-easel/panel";import{SquareIcon as H7}from"efficient-easel/icons";var W7="Applies to panels, cards, inputs and buttons. Round things \u2014 color swatches, switches, status dots \u2014 stay round.",Gg="Corners";function A_({value:e,onChange:o,length:t}){let r=e===null;return Ip(M7,{label:i(Gg),icon:Ip(H7,{}),changed:!r,action:Ip(N7,{words:de()?.panel,label:i(Gg),changed:!r,detail:i("the built-in corners"),onReset:()=>o(null)}),hint:i(W7),children:Ip(Zo,{min:t?.grid.min??Wo,max:t?.grid.max??Vr,step:t?.grid.step??1,value:e,...e===null?{}:{suffix:t?.unit??"px",...t?{units:t.units}:{}},placeholder:Wo,placeholderWord:"Auto",onClear:()=>o(null),ariaLabel:i(Gg),onChange:o})})}import{jsx as hi}from"react/jsx-runtime";import{SettingsDefaultReset as U7,SettingsField as z7}from"efficient-easel/panel";import{IconPicker as $7}from"efficient-shell/ui";import{ShadowIcon as G7}from"efficient-easel/icons";import{SHADOW_PREVIEW as j7}from"efficient-easel/screen/lib/document/shadow-values";var jg={none:"None",soft:"Soft",lifted:"Lifted"},K7="Applies to cards \u2014 products, brands, journal entries and filter cells. Round things like swatches and status dots are never shadowed.";function R_({value:e,onChange:o}){let t=e===null,r=e??Hh;return hi(z7,{label:i("Card shadow"),icon:hi(G7,{}),value:i(jg[r]),changed:!t,action:hi(U7,{words:de()?.panel,label:i("Card shadow"),changed:!t,detail:i(jg[Hh]),onReset:()=>o(null)}),hint:i(K7),children:hi($7,{label:i("Card shadow"),value:r,options:sk.map(a=>({value:a,label:i(jg[a]),icon:hi("span",{className:"sf-shadow-chip border border-line bg-surface",style:{boxShadow:j7[a]}})})),onChange:o})})}import{jsx as L_}from"react/jsx-runtime";import{ShadowIcon as V7}from"efficient-easel/icons";import{DEFAULT_SHADOW_COLOR as F_}from"efficient-easel/screen/lib/document/shadow-values";var q7="Most useful on a dark theme, where a black shadow cannot be seen. Also used by the Lift hover, even with the card shadow off.";function B_({value:e,onChange:o}){let t=e===null;return L_($l,{label:i("Shadow color"),icon:L_(V7,{}),value:e??"",inherited:F_,resetTo:F_,onChange:o,onReset:()=>o(null),hint:i(q7)})}import{jsx as bp}from"react/jsx-runtime";import{SettingsDefaultReset as Y7,SettingsField as X7}from"efficient-easel/panel";import{AlignSeparateIcon as Z7}from"efficient-easel/icons";function gp(e,o){return e==="tablet"?null:e==="mobile"?o.phone:o.desktop}var J7="The space between the blocks inside a row, a grid or a box. Auto means each one keeps the spacing it already has.",Q7="The space between the blocks inside a row, a grid or a box, on a phone. Until you set it, a phone uses half the desktop gap.",Kg="Block gap",D_=ys.Grid;function N_(e,o){return gp(e,{desktop:{key:"block_gap",value:o.gap,followsPx:null},phone:{key:"block_gap_phone",value:o.phone,followsPx:o.gap===null?null:UI(o.gap)}})}function M_({value:e,onChange:o,followsPx:t=null,length:r,followsUnit:a="px"}){let n=e===null,s=t===null?null:`${t}${a}`,l=a==="px"&&(r?.unit??"px")==="px",d=t===null?D_:l?ti(t)??D_:t;return bp(X7,{label:i(Kg),labelId:"sf-block-gap",icon:bp(Z7,{}),changed:!n,action:bp(Y7,{words:de()?.panel,label:i(Kg),changed:!n,detail:s??i("each block's own spacing"),onReset:()=>o(null)}),hint:i(s===null?J7:Q7),children:bp(Zo,{min:(r?.grid??xt).min,max:(r?.grid??xt).max,step:(r?.grid??xt).step,value:e,...e===null&&t===null?{}:{suffix:r?.unit??"px",...r?{units:r.units}:{}},placeholder:d,...t===null?{placeholderWord:"Auto"}:l&&t===d?{}:{placeholderWord:String(t)},onClear:()=>o(null),ariaLabel:i(Kg),onChange:o})})}import{jsx as yp}from"react/jsx-runtime";import{SettingsDefaultReset as eV,SettingsField as oV,SettingsSegmented as tV}from"efficient-easel/panel";import{HoverIcon as rV}from"efficient-easel/icons";var Vg={none:Un.none,lift:Un.lift,highlight:BC},aV="What a card does when a shopper points at it \u2014 or taps it, on a phone. Highlight is the effect your cards already use.";function H_({value:e,onChange:o}){let t=e===null,r=e??Wh;return yp(oV,{label:i("Hover effect"),icon:yp(rV,{}),value:i(Vg[r]),changed:!t,action:yp(eV,{words:de()?.panel,label:i("Hover effect"),changed:!t,detail:i(Vg[Wh]),onReset:()=>o(null)}),hint:i(aV),children:yp(tV,{options:lk.map(a=>({id:a,label:i(Vg[a])})),value:r,ariaLabel:i("Hover effect"),onChange:o})})}import{jsx as Sp}from"react/jsx-runtime";import{SettingsDefaultReset as nV,SettingsField as sV,SettingsSegmented as lV}from"efficient-easel/panel";import{DropIcon as iV}from"efficient-easel/icons";var qg="Photography",W_={shot:"As shot",mono:"Black and white"},Yg=[{grayscale:!1,label:W_.shot},{grayscale:!0,label:W_.mono}],dV="Black and white photographs return to color on hover. Wheels and tyres keep their real finish either way.";function U_({value:e,onChange:o}){let t=e===null,r=e??!1;return Sp(sV,{label:i(qg),icon:Sp(iV,{}),value:i(Yg.find(a=>a.grayscale===r).label),changed:!t,action:Sp(nV,{words:de()?.panel,label:i(qg),changed:!t,detail:i(Yg.find(a=>!a.grayscale).label),onReset:()=>o(null)}),hint:i(dV),children:Sp(lV,{options:Yg.map(a=>({id:a.grayscale,label:i(a.label)})),value:r,ariaLabel:i(qg),onChange:o})})}import{jsx as Xg}from"react/jsx-runtime";import{useId as cV}from"react";import{SettingsField as fV,SettingsSwitch as pV}from"efficient-easel/panel";import{ShareIcon as uV}from"efficient-easel/icons";var mV="Share button",hV="On every blog post.";function z_({value:e,onChange:o}){let t=cV();return Xg(fV,{label:i(mV),labelId:t,icon:Xg(uV,{}),action:Xg(pV,{checked:e===!0,onChange:o,ariaLabelledBy:t}),hint:i(hV)})}import{usePreviewDevice as Fb}from"efficient-easel/draw/client";import{jsx as wp}from"react/jsx-runtime";import{SettingsDefaultReset as xV,SettingsField as IV}from"efficient-easel/panel";import{PaddingXIcon as gV}from"efficient-easel/icons";var Zg="Side space",$_=Go.default,bV="The room left at the left and right edge of every page.";function G_(e,o){return gp(e,{desktop:{key:"site_gutter",value:o.gutter,unsetPx:$_,bounds:Go},phone:{key:"site_gutter_phone",value:o.phone,unsetPx:Pf(o.gutter,o.gutterUnit),bounds:Ht}})}function j_({value:e,onChange:o,unsetPx:t=$_,bounds:r=Go,length:a,restsOn:n=t}){let s=e===null;return wp(IV,{label:i(Zg),labelId:"sf-side-space",icon:wp(gV,{}),changed:!s,action:wp(xV,{words:de()?.panel,label:i(Zg),changed:!s,detail:`${t}px`,onReset:()=>o(null)}),hint:i(bV),children:wp(Zo,{min:(a?.grid??r).min,max:(a?.grid??r).max,step:(a?.grid??r).step,value:e,suffix:a?.unit??"px",...a?{units:a.units}:{},placeholder:n,onClear:()=>o(null),ariaLabel:i(Zg),onChange:o})})}import{jsx as Jg}from"react/jsx-runtime";import{BACKGROUND_WIDTHS as _Pe,SettingsBackgroundWidth as yV,SettingsContentWidth as SV}from"efficient-easel/panel";var wV="Background width",CV="Content width";var Cp=e=>i(Va[e==="content"?"page":"full"]),K_="The width of every section's background.",V_="The width of every section's content.";function q_({value:e,changed:o,detail:t,onChange:r,onReset:a,hint:n,labelId:s}){return Jg(yV,{value:e,changed:o,detail:t,onChange:r,onReset:a,hint:n?i(n):void 0,labelId:s,words:{label:i(wV),full:Cp("full"),content:Cp("content")},resetWords:de()?.panel})}function Y_({mode:e,px:o,max:t=uo.max,min:r=uo.min,changed:a,detail:n,fullClosed:s,onMode:l,onPx:d,onReset:c,hint:f,labelId:u,length:p}){let h=i(CV),I=p?.grid.min??r,g=p?.grid.max??t,C=e!=="full"?Jg(Zo,{min:I,max:g,step:p?.grid.step??uo.step,value:Math.min(Math.max(o,I),g),onChange:d,...p?{suffix:p.unit,units:p.units}:{suffix:"px"},ariaLabel:h}):null;return Jg(SV,{mode:e,onMode:l,number:C,changed:a,detail:n,fullClosed:s,onReset:c,hint:f?i(f):void 0,labelId:u,words:{label:h,full:Cp("full"),content:Cp("content")},resetWords:de()?.panel})}import{jsx as B1}from"react/jsx-runtime";import{TextStyleItem as R9,TextStylesGroup as L9}from"efficient-easel/text-styles";import{jsx as T9}from"react/jsx-runtime";import{useState as P9}from"react";import{TextStylesList as E9}from"efficient-easel/text-styles";import{usePreviewDevice as O9}from"efficient-easel/draw/client";import{defaultTextStyles as S1,textStyleCaseCss as y9}from"efficient-easel/text-styles/model";import{resolveViewValue as w1}from"efficient-easel/draw";import{VIEW_DESKTOP_MIN as X_,VIEW_TABLET_MIN as Z_}from"efficient-easel/draw";var vp=.02,J_=`(min-width: ${Gr}px) and (max-width: ${X_-vp}px)`,xi=`(max-width: ${Gr-vp}px)`,kp=`(min-width: ${Z_}px) and (max-width: ${X_-vp}px)`,Tp=`(max-width: ${Z_-vp}px)`;import{textStyleCaseCss as vV,textStyleCaseOfCss as kV,viewKeyAt as n1}from"efficient-easel/draw";function As(e){return!e||typeof e!="object"||Array.isArray(e)?null:e}function Rs(e,o){return As(e?.[o])??{}}function Pp(e,o,t){let r=Rs(e,o);return As(K(r,t))??{}}function Ep(e,o,t,r){let{[t]:a,...n}=Rs(e,o),s=r?{...n,[t]:r}:n,{[o]:l,...d}=e;return Object.keys(s).length?{...d,[o]:s}:d}import{isLengthUnit as ab}from"efficient-easel/screen/lib/content/length-units";var bi="_partStyles",nb="data-sf-part-styled",Ls="data-sf-text-style",TV=/^(heading|body)-[1-7]$/;function rn(e){return typeof e=="string"&&TV.test(e)}var Op={heading:"heading-1",heading2:"heading-2",heading3:"heading-3",body:"body-1",label:"body-5"};function PV(e){if(!e)return null;for(let[o,t]of Object.entries(Op))if(t===e)return o;return null}function sb(e){if(rn(e.textStyle))return e.textStyle;let o=br(e.role);return o?Op[o]:void 0}var EV=[400,500,600,700],gi=["left","center","right","justify"],Qg=5,eb=1e3,OV=-5,_V=10,lb=0,ib=64,db=2,Q_={size:{min:Qg,max:eb,step:1},sizeTablet:{min:Qg,max:eb,step:1},sizePhone:{min:Qg,max:eb,step:1},padding:{min:lb,max:ib,step:db}},AV=.05,RV=.01,LV=["line","letter"],FV=.5,BV=2.5,DV=-1,NV=1,MV=0,HV=400,WV=[...new Set(Object.values(Wn))];function s1(e){return[`${e} { transition: translate var(--page-motion-hover-duration) var(--page-ease-media) var(--page-motion-hover-delay) }`,`${e}:hover, ${e}:active { translate: 0 calc(-1 * var(--page-hover-lift)) }`]}function e0e(e){return Rs(e,bi)}function yi(e,o){return Pp(e,bi,o)}function l1(e,o,t){return Ep(e,bi,o,UV(t).length?t:null)}function UV(e){return Object.entries(e).filter(([,o])=>o!==void 0)}function zV(e){return LV.includes(e)}var Ii=(e,o,t)=>Math.min(t,Math.max(o,e)),$V=["sizeUnit","sizeUnitTablet","sizeUnitPhone"];function ob(e){let o=n1("sizeUnit",e),t=$V.find(r=>r===o);if(!t)throw new Error(`a part stores no unit key ${o}`);return t}var gt={size:ob("desktop"),sizeTablet:ob("tablet"),sizePhone:ob("mobile"),paragraphSpacing:"paragraphSpacingUnit",padding:"paddingUnit"},i1=Object.values(gt);function lr(e,o){return ke(e[gt[o]])}function GV(e,o,t={}){if(i1.includes(e))return ab(o)&&o!=="px"?o:null;if($e(gt,e)&&lr(t,e)!=="px"){let r=tn(Number(o),2);return!Number.isFinite(r)||r<0||r===0&&e!=="padding"?null:r}if(zV(e)){let r=Math.round(Number(o));return!Number.isFinite(r)||r===0?null:Ii(r,OV,_V)}if(e==="lineHeight"){let r=Number(o);return Number.isFinite(r)?tn(Ii(r,FV,BV),3):null}if(e==="letterSpacing"){let r=Number(o);return Number.isFinite(r)?tn(Ii(r,DV,NV),4):null}if(e==="paragraphSpacing"){let r=Math.round(Number(o));return!Number.isFinite(r)||r<=0?null:Ii(r,MV,HV)}if($e(Q_,e)){let{min:r,max:a}=Q_[e],n=Math.round(Number(o));return Number.isFinite(n)?Ii(n,r,a):null}return e==="italic"?typeof o=="boolean"?o:null:e==="role"||e==="fontRole"?br(o)?o:null:e==="sizeToken"?cb(o)?o:null:e==="textStyle"?rn(o)?o:null:e==="alignPhone"||e==="alignTablet"?gi.includes(o)?o:null:o}var jV=["weight","size","sizeTablet","sizePhone","line","letter","lineHeight","letterSpacing","paragraphSpacing","padding"];function Fs(e){let o=null,t=r=>{o??={...e},delete o[r]};for(let r of jV){let a=e[r];a!==void 0&&!(typeof a=="number"&&Number.isFinite(a))&&t(r)}e.align!==void 0&&!gi.includes(e.align)&&t("align"),e.alignTablet!==void 0&&!gi.includes(e.alignTablet)&&t("alignTablet"),e.alignPhone!==void 0&&!gi.includes(e.alignPhone)&&t("alignPhone"),e.textStyle!==void 0&&!rn(e.textStyle)&&t("textStyle"),e.sizeToken!==void 0&&!cb(e.sizeToken)&&t("sizeToken"),e.fontRole!==void 0&&!br(e.fontRole)&&t("fontRole");for(let r of i1)e[r]!==void 0&&!ab(e[r])&&t(r);return o??e}function cb(e){if(!e||typeof e!="object")return!1;let{step:o,px:t,stepPhone:r,pxPhone:a,fluid:n}=e,s=d=>typeof d=="number"&&Number.isFinite(d)&&d>0,l=d=>typeof d=="string"&&WV.includes(d);return l(o)&&s(t)&&(r===void 0||l(r))&&(a===void 0||s(a))&&(n===void 0||KV(n,t))}function KV(e,o){if(!e||typeof e!="object"||Array.isArray(e))return!1;let{minPx:t,vw:r,...a}=e;return Object.keys(a).length===0&&typeof t=="number"&&Number.isFinite(t)&&t>0&&t<o&&typeof r=="number"&&Number.isFinite(r)&&r>0&&r<=100}function fb(e){return e?.pxPhone&&cb(e)?{step:e.stepPhone??e.step,px:e.pxPhone}:null}function d1({step:e,px:o,fluid:t}){let r=t?`clamp(${t.minPx}px, ${t.vw}vw, ${o}px)`:`${o}px`,a=`var(--size-${e}, ${r})`;return e.startsWith("heading")?`min(${a}, var(--sf-heading-max,9999px))`:a}var VV=[["font","role"],["font","fontRole"],["role","textStyle"],["line","lineHeight"],["letter","letterSpacing"]];function qV(e){let o=[];for(let[t,r]of VV)t===e?o.push(r):r===e&&o.push(t);return o}function an(e,o,t,r){let a={...yi(e,o)},n=r==null?null:GV(t,r,a);if(n===null)delete a[t];else{a[t]=n;for(let s of qV(t))delete a[s]}return l1(e,o,a)}function c1(e,o){return l1(e,o,{})}function YV(e){return kV(e)??"none"}function XV(e){return vV(e)??""}var e1={heading:"--font-role-heading",heading2:"--font-role-heading2",heading3:"--font-role-heading3",body:"--font-role-body",accent:"--font-role-accent",label:"--font-role-label"};function ZV(e,o){return br(e.role)||(o?.blockDrawsStyle?null:PV(e.textStyle))}function f1(e,o){return e==="Text"&&o==="text"}var JV={headingLarge:"min(clamp(64px,9vw,144px), var(--sf-heading-max,9999px))",headingMedium:"min(32px, var(--sf-heading-max,9999px))",headingSmall:"min(24px, var(--sf-heading-max,9999px))",accent:"32px",body:"14px",label:"12px"};function QV(e){let o=Wn[e],t=K(JV,o);return t?`var(--size-${o}, ${t})`:`var(--size-${o})`}function Si(e){let o={};return typeof e.lineHeight=="number"?o.lineHeight=e.lineHeight:e.line&&(o.lineHeight=tn(e9+e.line*AV,3)),typeof e.letterSpacing=="number"?o.letterSpacingEm=e.letterSpacing:e.letter&&(o.letterSpacingEm=tn(e.letter*RV,4)),o}var e9=1,on="--sf-part-para";function o9(e){e=Fs(e);let o={};if(typeof e.sizePhone=="number"&&e.sizePhone>0)o.fontSize=We(e.sizePhone,lr(e,"sizePhone"));else{let r=fb(e.sizeToken);if(r)o.fontSize=d1(r);else{let a=Ap(e);a!==void 0&&(o.fontSize=We(a,lr(e,"sizeTablet")))}}let t=e.alignPhone??_p(e);return t&&(o.textAlign=t),o}function _p(e){return e.alignTablet&&e.alignTablet!==e.align?e.alignTablet:void 0}function Ap(e){let o=e.sizeTablet!==void 0&&lr(e,"sizeTablet")!==lr(e,"size")?e.sizeTablet:wr("textSize",e.size,e.sizeTablet,void 0).tablet;return o&&o>0?o:void 0}function t9(e){let o=Fs(e),t={},r=Ap(o);r!==void 0&&(t.fontSize=We(r,lr(o,"sizeTablet")));let a=_p(o);return a&&(t.textAlign=a),t}function p1(e,o){if(o==="desktop")return;let t=Fs(e);return(o==="mobile"?_p(t):void 0)??t.align}function r9(e,o){if(o==="desktop")return e;let t=Fs(e),r=Ap(t),a=_p(t);if(o==="tablet"){let l=e;return r!==void 0&&(l={...l,size:r,sizeUnit:t[gt.sizeTablet]}),a&&(l={...l,align:a}),l}let n=e;if(typeof t.sizePhone=="number"&&t.sizePhone>0)n={...n,size:t.sizePhone,sizeUnit:t[gt.sizePhone]};else{let l=fb(t.sizeToken);l?n={...n,size:void 0,sizeToken:l}:r!==void 0&&(n={...n,size:r,sizeUnit:t[gt.sizeTablet]})}let s=t.alignPhone??a;return s&&(n={...n,align:s}),n}function pb(e,o,t){return mb(r9(e,o),Rp,t)}function ub(e){return n1("size",e)}function u1(e,o){if(o==="desktop")return null;let t=Fs(e);if(o==="mobile"){if(fb(t.sizeToken))return null;let r=Ap(t);if(r!==void 0)return{px:r,view:"tablet"}}return typeof t.size=="number"&&t.size>0?{px:t.size,view:"desktop"}:null}function m1(e,o){let t=ub(o);if(!$e(e,t))return e;let r={...e};return delete r[t],r}function o0e(e,o,t){let r=pb(m1(e,o),o,t);return{fontFamily:r.fontFamily,fontSize:r.fontSize}}function mb(e,o,t){e=Fs(e);let r=ZV(e,t),a=Si(e),n=e.size?We(e.size,lr(e,"size")):e.sizeToken?d1(e.sizeToken):r?QV(r):"";return{fontFamily:e.font?l9(e.font):e.fontRole?`var(${e1[e.fontRole]})`:r?`var(${e1[r]})`:"",fontWeight:e.weight?String(e.weight):"",fontSize:n,minWidth:n?"0":"",overflowWrap:n?"break-word":"",lineHeight:a.lineHeight!==void 0?String(a.lineHeight):"",letterSpacing:a.letterSpacingEm!==void 0?`${a.letterSpacingEm}em`:"",[on]:e.paragraphSpacing?We(e.paragraphSpacing,lr(e,"paragraphSpacing")):"",textTransform:XV(e.case),textAlign:e.align??"",paddingTop:o1(e.padding,lr(e,"padding")),paddingBottom:o1(e.padding,lr(e,"padding")),color:a9(e.color),fontStyle:e.italic===!0?"italic":e.italic===!1?"normal":""}}var a9=e=>cs(e),o1=(e,o)=>e===void 0?"":We(e,o),tn=(e,o)=>Number(e.toFixed(o));function t0e(e,o){let t=Number.parseFloat(e.fontSize)||16,r=Number.parseFloat(e.lineHeight),a=Number.parseFloat(e.letterSpacing),n=Number.parseFloat(e.paddingTop);return{fontKey:o,sizePx:t,weight:n9(Number.parseInt(e.fontWeight,10)),lineRatio:Number.isFinite(r)?tn(r/t,3):1.2,letterEm:Number.isFinite(a)?tn(a/t,4):0,align:s9(e.textAlign),case:YV(e.textTransform),paddingPx:Number.isFinite(n)?Math.round(n):0}}function n9(e){return Number.isFinite(e)?EV.reduce((o,t)=>Math.abs(t-e)<Math.abs(o-e)?t:o):400}function s9(e){for(let o of gi)if(o===e)return o;return e==="end"?"right":"left"}function r0e(e,o){let t=t1(e);if(!t)return"";for(let r of $r)if(t1(o(r.cssVar))===t)return r.key;return""}var t1=e=>(e.split(",")[0]??"").replace(/["']/g,"").replace(/\s+/g," ").trim().toLowerCase();function l9(e){let o=Hn(e);return o?`var(${o.cssVar})`:""}function a0e(e,o,t,r){return!o||Ag(o)?.nodeId!==e?null:t.find(a=>r(a.getAttribute("class")))??t[0]??null}function i9(e,o){return As(K(e,o))??{}}function n0e(e,o,t=()=>Rp,r=l=>l,a=f9,n="desktop",s=()=>!1){let l=0;for(let{element:d,partId:c}of e){let f=Ag(c)?.propKey;if(!f)continue;let u=i9(o,r(f)),p=pb(u,n,{blockDrawsStyle:s(f)});rn(u.textStyle)?d.setAttribute?.(Ls,u.textStyle):d.removeAttribute?.(Ls);let h=tb.some(g=>d.style[g]),I=!1;for(let[g,C]of Object.entries(p))m9(d,g,C),C&&(I=!0);if(h||tb.some(g=>p[g]))for(let g of d9(d,a))for(let C of tb)g.style[C]=p[C]??"";I&&(l+=1)}return l}function d9(e,o){let t=Os(e.textContent??""),r=[],a=e;for(let n=0;n<c9&&o(a);n+=1){let s=a.parentElement;if(!s||Os(s.textContent??"")!==t)break;r.push(s),a=s}return r}var c9=8;function f9(e){let o=e;return typeof window>"u"||!o?.ownerDocument?!1:window.getComputedStyle(o).display==="inline"}var Rp={fontKey:"",sizePx:16,weight:400,lineRatio:1,letterEm:0,align:"left",case:"none",paddingPx:0};function p9(e){if(!e||typeof e!="object")return null;let o={};rn(e.textStyle)&&(o.textStyle=e.textStyle),typeof e.size=="number"&&e.size>0&&(o.size=e.size),typeof e.sizeTablet=="number"&&e.sizeTablet>0&&(o.sizeTablet=e.sizeTablet),typeof e.sizePhone=="number"&&e.sizePhone>0&&(o.sizePhone=e.sizePhone);for(let t of["size","sizeTablet","sizePhone"]){let r=gt[t];o[t]!==void 0&&ab(e[r])&&(o[r]=e[r])}return Object.keys(o).length?o:null}function u9(e,o){let t=p9(e);if(!t)return{};let r=pb(t,o);return{...r.fontFamily?{fontFamily:r.fontFamily}:{},...r.fontSize?{fontSize:r.fontSize}:{}}}function h1(e){return rn(e?.textStyle)||!!e?.role||typeof e?.size=="number"&&e.size>0}function s0e(e,o,t){if(!e||typeof e!="object")return{};let r=lc(e.role,o,Wn)??{},a=o.sized?u9(m1(e,t),t):{};return{...r,...a}}function l0e(e,o,t){t.fontFamily&&e.fontFamily===t.fontFamily&&(e.fontFamily=o.fontFamily),t.fontSize&&e.fontSize===t.fontSize&&(e.fontSize=o.fontSize)}function m9(e,o,t){if(!o.startsWith("--")){e.style[o]=t;return}let r=e.style;typeof r.setProperty=="function"?t?r.setProperty(o,t):r.removeProperty?.(o):r[o]=t;let a=e;o===on&&(t?a.setAttribute?.(r1,""):a.removeAttribute?.(r1))}var r1="data-sf-part-para",h9=Object.keys(mb({},Rp)),rb=new Set(["color","overflowWrap",on,"fontStyle"]),tb=h9.filter(e=>!rb.has(e));function x1(e,o,t,r=l=>l,a=()=>!1,n=()=>null,s=[]){let l=new Map;for(let u of e){let p=Es(u.key,u.row);for(let h of u.texts){let I=l.get(h);I?(I.keys.add(u.key),I.partKeys.add(p)):l.set(h,{keys:new Set([u.key]),partKeys:new Set([p])})}}let d=new Map;for(let u of new Set([...Object.keys(o),...s])){if(!x9(u))continue;let p=a1(t,u,As(o[u])??{},!1,n(u));p&&d.set(u,p)}let c=u=>{let p=r(u),h=n(p);if(!$e(o,p)&&!h)return null;let I=As(o[p])??{};return a1(t,u,I,a(u),h)},f=new Map;for(let[u,{keys:p,partKeys:h}]of l){let I=h.size===1?[...h][0]:p.size===1?[...p][0]:null;if(!I)continue;let g=c(I);g&&f.set(u,g)}for(let u of e){if(!u.keyed)continue;let p=c(Es(u.key,u.row));p&&d.set(u.key,p)}return f.size||d.size?{rules:f,kindRules:d,drawn:new Set(l.keys())}:null}function a1(e,o,t,r,a){let n=mb(t,Rp,{blockDrawsStyle:r}),s=t9(t),l=o9(t),d=rn(t.textStyle)?t.textStyle:void 0;return!Object.values(n).some(Boolean)&&!Object.keys(s).length&&!Object.keys(l).length&&!d&&!a?null:{stamp:I9(e,o),declarations:n,...Object.keys(s).length?{tablet:s}:{},...Object.keys(l).length?{phone:l}:{},...d?{textStyle:d}:{},...a?{motion:a}:{}}}function x9(e){return e.startsWith("@")}function hb(e,o){return e?.kindRules.get(o)??null}function I9(e,o){let t=r=>r.replace(/[^A-Za-z0-9_-]+/g,"-");return`${t(e)}~${t(o)}`}function xb(e){return e?{tablet:J_,phone:xi}:{tablet:kp,phone:Tp}}function I1(e,{inBox:o=!1}={}){let{tablet:t,phone:r}=xb(o),a=[],n=new Set,s=l=>{let{stamp:d,declarations:c}=l;if(n.has(d))return;n.add(d);let f=Object.entries(c).filter(([,w])=>w!==""),u=w=>w.map(([T,y])=>`${g9(T)}: ${y}`).join("; "),p=`[${nb}="${d}"]`,h=f.filter(([w])=>!rb.has(w)),I=f.filter(([w])=>rb.has(w));h.length&&a.push(`${p}, *:has(> ${p}) { ${u(h)} }`),I.length&&a.push(`${p} { ${u(I)} }`),c[on]&&(a.push(`*:has(> ${p}) { ${on}: ${c[on]} }`),a.push(...Lp(p,`*:has(> ${p})`)));let g=Object.entries(l.tablet??{}).filter(([,w])=>w!=="");g.length&&a.push(`@media ${t} { ${p}, *:has(> ${p}) { ${u(g)} } }`);let C=Object.entries(l.phone??{}).filter(([,w])=>w!=="");C.length&&a.push(`@media ${r} { ${p}, *:has(> ${p}) { ${u(C)} } }`)};for(let l of e.rules.values())s(l);for(let l of e.kindRules.values())s(l);return a.join(`
3
3
  `)}function Lp(e,o){let t=`var(${on})`,r=":is([data-sf-bullet], [data-sf-number])";return[`${e} br:not(br + br) { display: block; content: ""; margin-top: ${t} }`,`${e} ${r}:not(:first-child) { margin-top: ${t} }`,`${e} ${r}:not(:last-child) { margin-bottom: ${t} }`,`:is(${o}) + :is(${o}) { margin-top: ${t} }`]}var g9=e=>e.replace(/[A-Z]/g,o=>`-${o.toLowerCase()}`);function g1(e,o){if(!e)return null;let t=Os(o),r=e.rules.get(t);if(r)return r;if(t.length<b9||e.drawn.has(t))return null;let a=null;for(let[n,s]of e.rules)if(n.includes(t)){if(a&&a.stamp!==s.stamp)return null;a=s}return a}var b9=8;function b1(e){switch(e.id){case"heading-1":return"font-display";case"heading-2":return"font-heading2";case"heading-3":return"font-heading3";case"body-1":return"font-body";case"body-5":return"font-mono";default:return`font-${e.id}`}}var Ib=e=>e==="sentence"?"none":void 0,C1=["font","color","size","sizeTablet","sizePhone","weight","italic","lineHeight","lineHeightTablet","lineHeightPhone","letterSpacing","letterSpacingTablet","letterSpacingPhone","paragraphSpacing","paragraphSpacingTablet","paragraphSpacingPhone","letterCase","largestSize","largestSizeTablet","largestSizePhone"],Bs=["desktop","tablet","phone"],nn=(e,o)=>we(e,o);function yb(e,o,t,r=$n()){return w1("textSize",o,e.sizeTablet,e.sizePhone,r)[t]}var S9=[["lineSpacing","lineHeight","line"],["letterSpacing","letterSpacing","letter"]];function gb(e){for(let[o,t,r]of S9)for(let a of Bs)if(e===nn(o,a))return{key:we(t,a),view:a,spacing:r};return{key:e,view:"desktop",spacing:null}}function ir(e){let o={};for(let t of C1)e[t]!==void 0&&(o[t]=e[t]);return o}function Sb(e,o){let{auto:t,...r}=e,a=new Set(o??[]),n=C1.filter(s=>a.has(s)&&e.values[s]===void 0);return n.length?{...r,auto:n}:r}function v1(e){let o=e.fonts,t=e.sizes,r=e.typography,a=ik(e.compression),n={"heading-1":{font:Se(o.heading),size:q(t.headingLarge),weight:q(r.weight),lineHeight:a.lineHeight,letterSpacing:a.letterSpacing,letterCase:Ib(r.case),largestSize:q(r.maxPx)},"heading-2":{font:Se(o.heading2),size:q(t.headingMedium),weight:q(r.weight2),lineHeight:a.lineHeight,letterSpacing:a.letterSpacing,letterCase:Ib(r.case2)},"heading-3":{font:Se(o.heading3),size:q(t.headingSmall),weight:q(r.weight3),lineHeight:a.lineHeight,letterSpacing:a.letterSpacing,letterCase:Ib(r.case3)},"body-1":{font:Se(o.body),size:q(t.body)},"body-5":{font:Se(o.label),size:q(t.label)}};return S1().map(({id:s,kind:l,name:d})=>({id:s,kind:l,name:d,values:ir(n[s]??{})}))}function wb(e){return Array.isArray(e)&&e.every(o=>o&&typeof o=="object"&&typeof o.id=="string"&&(o.kind==="heading"||o.kind==="body")&&typeof o.name=="string")?e.map(o=>Sb({...o,values:ir(o.values??{})},Array.isArray(o.auto)?o.auto:void 0)):null}function S0e(e){return wb(e)??[]}function k1(e){return wb(e)??S1().map(({id:o,kind:t,name:r})=>({id:o,kind:t,name:r,values:{}}))}function Br(e,o){let t=v1(o),r=wb(e);return r?r.map(a=>{let n={...bb(t,a.id)};for(let s of a.auto??[])delete n[s];return{...a,values:ir({...n,...a.values})}}):t}var bb=(e,o)=>e.find(t=>t.id===o)?.values??{},y1=["heading-1","heading-2","heading-3"];function T1({saved:e,old:o,cur:t,next:r,sizeOf:a,panelView:n="desktop"}){let s=v1(o),l=k1(e),d=Br(l,o),c=[],f=r.map(p=>{let h=t.find(P=>P.id===p.id),I=l.find(P=>P.id===p.id);if(!h||!I){let P=w9([p],a,n)[0],H=P.values.color;return H===void 0?P:{...P,values:{...P.values,color:rt(H)}}}let g={...I.values},C=new Set(I.auto??[]),w=p.values,T=h.values,y=[...new Set([...Object.keys(w),...Object.keys(T)])].filter(P=>JSON.stringify(w[P])!==JSON.stringify(T[P])),b=P=>gb(P).spacing==="letter";y.sort((P,H)=>Number(b(P))-Number(b(H)));for(let P of y){let{key:H,view:E,spacing:W}=gb(P),O=H,D=w[P];if(D===void 0){delete g[O],bb(s,p.id)[O]!==void 0&&(c.push([p.id,O]),C.add(O));continue}if(C.delete(O),W==="line")g[O]=Ds(D/100,3);else if(W==="letter"){let v={...d.find(F=>F.id===p.id)?.values??{}};for(let F of y)w[F]===void 0&&delete v[gb(F).key];let _=ir({...v,...g}),A=yb(_,a({...p,values:_}),E);g[O]=A?Ds(D/A,4):0}else g[O]=D}return Sb({id:p.id,kind:p.kind,name:p.name,values:ir(g)},C)}),u=o.compression;if(c.some(([p,h])=>(h==="lineHeight"||h==="letterSpacing")&&y1.includes(p))&&Ra(u)!=="normal"){for(let p of y1){let h=f.find(g=>g.id===p);if(!h)continue;let I={...h.values};for(let g of["lineHeight","letterSpacing"])c.some(([C,w])=>C===p&&w===g)||I[g]===void 0&&!(h.auto??[]).includes(g)&&(I[g]=bb(s,p)[g]);h.values=ir(I)}u="normal"}return{saved:f,old:{...o,compression:u}}}function P1(e,o){let t={text_styles:e.saved};return e.old.compression!==o.compression&&(t.heading_compression=Ra(e.old.compression)),t}var Ds=(e,o)=>Number(e.toFixed(o)),E1=(e,o)=>Bs.indexOf(e)<Bs.indexOf(o)?o:e;function O1(e,o,t="desktop"){return e.map(r=>{let a={...r.values},n=o(r);for(let s of Bs){let l=we("lineHeight",s),d=r.values[l],c=r.values[we("letterSpacing",s)];delete a[l],d!==void 0&&(a[nn("lineSpacing",s)]=Ds(d*100,1));let f=E1(s,t);c!==void 0&&(a[nn("letterSpacing",s)]=Ds(c*yb(r.values,n,f),f===s?2:4))}return{id:r.id,kind:r.kind,name:r.name,values:a}})}function w9(e,o,t="desktop"){return e.map(r=>{let a=r.values,n={...a};for(let c of Bs)delete n[nn("lineSpacing",c)],delete n[nn("letterSpacing",c)];let s={id:r.id,kind:r.kind,name:r.name,values:ir(n)},l={...s.values},d=o({...s,values:{...s.values}});for(let c of Bs){let f=a[nn("lineSpacing",c)],u=a[nn("letterSpacing",c)];if(typeof f=="number"&&(l[we("lineHeight",c)]=Ds(f/100,3)),typeof u=="number"){let p=yb(s.values,d,E1(c,t));l[we("letterSpacing",c)]=p?Ds(u/p,4):0}}return{...s,values:ir(l)}})}function w0e(e){let o={fonts:wl({heading:e.heading_font??void 0,heading2:e.heading_2_font??void 0,heading3:e.heading_3_font??void 0,body:e.body_font??void 0,accent:e.accent_font??void 0,label:e.label_font??void 0}),sizes:Mh({headingLarge:e.heading_size_large_px,headingMedium:e.heading_size_medium_px,headingSmall:e.heading_size_small_px,accent:e.accent_size_px,body:e.body_size_px,label:e.label_size_px}),compression:Ra(e.heading_compression),typography:ck(e)},t=e.text_styles??null,r=Array.isArray(t)?Cb(Br(t,o),o):o;return{fonts:wl(r.fonts),sizes:Mh(r.sizes),compression:Ra(r.compression),typography:r.typography,textStyles:t}}function Cb(e,o){let t=p=>e.find(h=>h.id===p)?.values??{},r=t("heading-1"),a=t("heading-2"),n=t("heading-3"),s=t("body-1"),l=t("body-5"),d=o.fonts,c=o.sizes,f=o.typography,u=p=>p==="none"?"sentence":"authored";return{fonts:{...d,heading:r.font??d.heading,heading2:a.font??r.font??d.heading2,heading3:n.font??r.font??d.heading3,body:s.font??d.body,label:l.font??d.label},sizes:{...c,headingLarge:r.size??null,headingMedium:a.size??null,headingSmall:n.size??null,body:s.size??null,label:l.size??null},compression:o.compression,typography:{...f,case:u(r.letterCase),weight:r.weight??null,maxPx:r.largestSize??null,weight2:a.weight??null,weight3:n.weight??null,case2:u(a.letterCase),case3:u(n.letterCase)}}}function C0e(e){let o=[];for(let t of e){let r=t.values,a=`.${b1(t)}`,n=`[${Ls}="${t.id}"]`,s=`${a}, ${n}`,l=[],d=r.font!==void 0?$r.find(p=>p.key===r.font)?.cssVar:void 0;if(d&&l.push(`font-family: var(${d})`),r.size!==void 0){let p=r.largestSize!==void 0?Math.min(r.size,r.largestSize):r.size;l.push(`font-size: ${p}px`)}let c=cs(r.color);c&&l.push(`color: ${c}`),r.italic===!0&&l.push("font-style: italic"),r.weight!==void 0&&l.push(`font-weight: ${r.weight}`);let f=[];r.lineHeight!==void 0&&f.push(`line-height: ${r.lineHeight}`),r.letterSpacing!==void 0&&f.push(`letter-spacing: ${r.letterSpacing}em`),t.kind==="body"&&l.push(...f);let u=y9(r.letterCase);u&&t.kind==="body"&&l.push(`text-transform: ${u}`),r.paragraphSpacing&&l.push(`--sf-part-para: ${r.paragraphSpacing}px`),l.length&&o.push(`${s} { ${l.join("; ")} }`),t.kind==="heading"&&f.length&&o.push(`${s}, ${a}:is(h1, h2, h3, h4), ${n}:is(h1, h2, h3, h4) { ${f.join("; ")} }`),t.kind==="heading"&&u&&o.push(`${n}, ${a}:is(h1, h2, h3, h4) { text-transform: ${u} }`),r.paragraphSpacing&&(o.push(`*:has(> ${n}) { --sf-part-para: ${r.paragraphSpacing}px }`),o.push(...Lp(`:is(${s})`,`*:has(> ${n})`))),o.push(...C9(t,s,a,n))}return o.join(`
4
4
  `)}function C9(e,o,t,r){let a=e.values,n=wr("textSize",a.size,a.sizeTablet,a.sizePhone),s=wr("textSize",a.largestSize,a.largestSizeTablet,a.largestSizePhone),l=wr("same",a.lineHeight,a.lineHeightTablet,a.lineHeightPhone),d=wr("same",a.letterSpacing,a.letterSpacingTablet,a.letterSpacingPhone),c=wr("spacing",a.paragraphSpacing,a.paragraphSpacingTablet,a.paragraphSpacingPhone),f=w1("textSize",a.size,a.sizeTablet,a.sizePhone,$n()),u=v9[e.id],p=[];for(let[h,I]of[["tablet",kp],["phone",Tp]]){let g=[],C=[],w=f[h],T=s[h],y=n[h]===void 0&&T===void 0||w===void 0?void 0:T===void 0?w:Math.min(w,T);y!==void 0&&C.push(`font-size: ${y}px`);let b=[];l[h]!==void 0&&b.push(`line-height: ${l[h]}`),d[h]!==void 0&&b.push(`letter-spacing: ${d[h]}em`),e.kind==="body"&&C.push(...b),c[h]!==void 0&&C.push(`--sf-part-para: ${c[h]}px`),C.length&&g.push(`${o} { ${C.join("; ")} }`),e.kind==="heading"&&b.length&&g.push(`${o}, ${t}:is(h1, h2, h3, h4), ${r}:is(h1, h2, h3, h4) { ${b.join("; ")} }`),c[h]!==void 0&&g.push(`*:has(> ${r}) { --sf-part-para: ${c[h]}px }`),c[h]!==void 0&&!a.paragraphSpacing&&g.push(...Lp(`:is(${o})`,`*:has(> ${r})`)),y!==void 0&&u&&g.push(`.sf-themed-content { --size-${u}: ${y}px !important }`),g.length&&p.push(`@media ${I} { ${g.join(" ")} }`)}return p}var v9={"heading-1":"headingLarge","heading-2":"headingMedium","heading-3":"headingSmall","body-1":"body","body-5":"label"};function v0e(e){return e!==!0&&e!==!1?"":`em.text-accent { font-style: ${e?"italic":"normal"} }`}function _1(e){return e?Op[e]:void 0}function vb(e){let o=Si(e);return ir({font:e.font,color:e.color===void 0?void 0:rt(e.color),size:e.size,weight:e.weight,italic:e.italic,lineHeight:o.lineHeight,letterSpacing:o.letterSpacingEm,paragraphSpacing:e.paragraphSpacing,letterCase:e.case})}function A1(e){return Object.keys(vb(e)).length>0}function R1({saved:e,old:o,styleId:t,values:r}){let a=k1(e);return{saved:k9(a,t,r),old:o}}function k9(e,o,t){return e.map(r=>r.id===o?Sb({...r,values:ir({...r.values,...t})},r.auto):r)}var L1=["font","color","size","weight","emphasis","lineSpacing","letterSpacing","paragraphSpacing","letterCase","largestSize"],_9=["size","lineSpacing","letterSpacing","letterCase"],A9=500,kb=$r.map(e=>({value:e.key,label:e.label,family:`var(${e.cssVar})`,italic:e.italicLoaded}));function F1({saved:e,old:o,colours:t,colourNameOf:r,sizeOf:a,onChange:n,openId:s,onOpenChange:l,readOnly:d=!1,withoutSize:c=!1}){let f=O9(),[u,p]=P9(null),h=Br(e,o),I=hc(f),g=O1(h,a,I);return T9(E9,{styles:g,onChange:C=>n(T1({saved:e,old:o,cur:g,next:C,sizeOf:a,panelView:I})),fonts:kb,colours:t,colourNameOf:r,settings:c?L1.filter(C=>C!=="size"):L1,auto:_9,openId:s===void 0?u:s,onOpenChange:l??p,readOnly:d,device:I,fallback:C=>{let w=h.find(y=>y.id===(C.kind==="heading"?"heading-1":"body-1")),T={};return w?.values.font&&C.id!==w.id&&(T.font=w.values.font),C.kind==="heading"&&(T.weight=A9),T}})}var D1=["font","size","weight","emphasis"],F9=500;function B9({font:e,size:o,weight:t,italic:r}){let a={font:e};return o!==null&&(a.size=o),t!==null&&(a.weight=t),r!==null&&(a.italic=r),{id:"accent",kind:"heading",name:i("Emphasis"),values:a}}function D9(e,o){let t=[],r=e.values,a=o.values;return a.font!==r.font&&a.font!==void 0&&t.push({key:"font",value:a.font}),a.size!==r.size&&t.push({key:"size",value:a.size??null}),a.weight!==r.weight&&t.push({key:"weight",value:a.weight??null}),a.italic!==r.italic&&t.push({key:"italic",value:a.italic??null}),t}function N1(e){let{headingWeight:o,open:t,onOpenChange:r,onChange:a,withoutSize:n=!1}=e,s=B9(e);return B1(L9,{label:i("Emphasis"),children:B1(R9,{style:s,fonts:kb,settings:n?D1.filter(l=>l!=="size"):D1,auto:["size"],fallback:()=>({weight:o??F9}),open:t,onOpenChange:r,onChange:l=>D9(s,l).forEach(a)})})}import{viewKeyAt as z1}from"efficient-easel/draw";import{shownUnitAt as z9,unitKeyOnWrite as $9}from"efficient-easel/screen/lib/content/length-units";import{convertRowLength as N9,rowUnits as M9,unitPickPatch as H9}from"efficient-easel/screen/lib/content/length-units";import{viewKeyAt as W9}from"efficient-easel/draw";var U9=["cornerRadius","siteWidth","siteGutter","siteGutterPhone","blockGap","blockGapPhone"],Fp={cornerRadius:{number:"corner_radius_px",kind:"radius",grid:ak,tier:"desktop"},siteWidth:{number:"site_width",kind:"size",grid:uo,tier:"desktop"},siteGutter:{number:"site_gutter",kind:"spacing",grid:Go,tier:"desktop"},siteGutterPhone:{number:"site_gutter_phone",kind:"spacing",grid:Ht,tier:"mobile"},blockGap:{number:"block_gap",kind:"gap",grid:xt,tier:"desktop"},blockGapPhone:{number:"block_gap_phone",kind:"gap",grid:xt,tier:"mobile"}};function Bp(e){return{number:Fp[e].number,unit:Gv[`${e}Unit`]}}function M1(e,o,t){let r=ke(t),{number:a,unit:n}=Bp(e);return{[a]:o,[n]:o===null||r==="px"?null:r}}function Dp(e,o,t,r){let{kind:a,grid:n,tier:s}=Fp[e],l=ke(t),d=ke(r);return l===d?o:N9(o,l,d,s,{kind:a},n)}function H1(e,o,t,r){let{number:a,unit:n}=Bp(e),s=H9({[a]:o},l=>Dp(e,l,t,r),n,ke(r),"px");return{[a]:s[a],[n]:s[n]??null}}function W1(e,o){let{kind:t,grid:r}=Fp[e];return $v(t,ke(o),r)}function U1(e){return M9({kind:Fp[e].kind},qa)}function Tb(e,o){let t=W9(e,o);if(!U9.includes(t))throw new Error(`no site length row ${t}`);return t}function wi(e,o,t,r,a){let{siteLengthUnits:n,setSiteLengthUnits:s}=he(),l=`${e}Unit`,d=n[l],c=z9({n:a?.figure??null,u:a?.unit??null,[z1("n","mobile")]:o,[z1("u","mobile")]:d??null},{n:"n"},"u","mobile"),f=I=>s({[l]:I==="px"?null:I}),u=I=>{t(I);let g=$9(l,d,c,"px",I===null);l in g&&f(g[l]==null?null:ke(g[l])),r(M1(e,I,c),I===null)},p=I=>{let g=ke(I);if(g===c||(f(g),o===null))return;let C=H1(e,o,c,g);t(C[Bp(e).number]),r(C,!0)},h=a?a.unit===c?a.figure:Dp(e,a.figure,a.unit,c):null;return{length:{unit:c,grid:W1(e,c),units:{options:U1(e),onChange:p,label:i("Unit")}},write:u,rest:h,shown:I=>Dp(e,I,"px",c)}}import{EmptyState as mq,SliderGroup as hq,Tabs as xq,Tooltip as cOe,tabButtonId as Iq,tabPanelId as gq}from"efficient-shell/ui";import{ContrastIcon as bq,SettingsIcon as yq,TypeIcon as Sq}from"efficient-easel/icons";function $1(e){switch(e.status){case"saved":return null;case"failed":return{msg:i("Not saved. Try again."),tone:"error"};case"skipped":switch(e.reason){case"empty":return null;case"no-token":return{msg:i("Not saved. Reload the page."),tone:"error"};case"template":return{msg:i("Templates keep their look. Press Done."),tone:"success"}}}}import{jsx as _b}from"react/jsx-runtime";import{ListIcon as tq,PaddingTopIcon as rq}from"efficient-easel/icons";import{jsx as Np}from"react/jsx-runtime";import{SettingsDefaultReset as G9,SettingsField as j9,SettingsSegmented as K9}from"efficient-easel/panel";import{WidthIcon as V9}from"efficient-easel/icons";function G1({value:e,resolved:o,onChange:t,label:r="Width",labelId:a,followsLabel:n,hint:s}){let l=e===void 0,d=l?o:e,c=i(r);return Np(j9,{label:c,labelId:a,icon:Np(V9,{}),value:l?n:void 0,changed:!l,action:Np(G9,{words:de()?.panel,label:c,changed:!l,onReset:()=>t(void 0)}),hint:s,children:Np(K9,{options:[{label:i(Va.full),id:"full"},{label:i(Va.page),id:"content"}],value:d,ariaLabel:c,onChange:t})})}import{HEADER_TYPE as Pb,FOOTER_TYPE as q9}from"efficient-easel/draw";var Y9=new Set(["Hero","HeroSingle","IntroBleed"]),j1={min:56,max:140,default:88},dEe={min:0,max:120,step:2,default:32},cEe=`var(--sf-header-h, ${j1.default}px)`,X9="--sf-header-set-h",fEe="--sf-header-h",pEe=`var(${X9}, ${j1.default}px)`,uEe="sf-header-clearance",mEe="sf-sticky-underheader";function Z9(e){return e?.find(o=>o?.type&&o.type!==Pb)??null}function K1(e){let o=Z9(e)?.type;return!o||!Y9.has(o)}function hEe(e){return!K1(e)}function xEe(e){return!!e?.some(o=>o?.type===Pb)}function IEe(e){return!e||e.length===0?!1:!e.some(o=>o?.type===Pb||o?.type===q9)}var J9=["auto","shared","own"],Eb="auto",Q9="topSpace",gEe="data-top-space";function eq(e){return J9.includes(e)?e:Eb}function oq(e,o){let t=eq(e?.props?.[Q9]);return t==="own"?!0:t==="shared"?!1:K1(o)}function bEe(e,o){return oq(e,o)?"own":null}function aq(){return{type:"custom",render:({value:e,onChange:o})=>_b(G1,{value:e==="full"?"full":e==="content"?"content":void 0,resolved:"content",label:"Page width",followsLabel:i("Follows the site"),hint:i("Whether this page sits on the site's content column, or runs edge to edge."),onChange:t=>o(t)})}}var nq=[{label:"Auto",value:"auto"},{label:"Shared",value:"shared"},{label:"Its own",value:"own"}],_Ee={pageBackground:$O(),topSpace:st("Top space",_b(rq,{}),nq,Eb),widthChoice:aq()},Ci=["pageBackground","topSpace","widthChoice"],sq="Record type",Ob=new Map,V1=-1;function lq(e){V1!==bx()&&(Ob.clear(),V1=bx());let o=gx(),t=o.some(a=>a.key===e)?"":e,r=Ob.get(t);return r||(r=st(sq,_b(tq,{}),[...o.map(a=>({label:a.label,value:a.key})),...t?[{label:t,value:t}]:[]],Zr),Ob.set(t,r)),r}var q1=new WeakMap;function AEe(e,o){if(!Nl()||gx().length<2||Mc in e)return e;let t=lq(Dl(o)),r=q1.get(e);if(r&&r.row===t)return r.fields;let a={[Mc]:t,...e};return q1.set(e,{row:t,fields:a}),a}import{previewFrame as wq}from"efficient-easel/screen/lib/document/preview-dom";var Y1="background";function X1(e){let o=Vo(Yn(e));return fs({main:o.accent,text:o.text,background:o.background,muted:o.muted}).map(t=>({key:t.name,name:t.label??t.name,value:t.value}))}function Z1(e){return X1(e).filter(o=>o.key!==Y1)}function J1(e){let o=X1(e).filter(t=>t.key===Y1);return t=>{let r=rt(t);return o.find(a=>a.key===r)?.value??r}}import{useEasel as iq}from"efficient-easel/easel";function Mp({themeFromDocument:e,persist:o}){let{appState:t,dispatch:r}=iq(E=>E),{fonts:a,setFonts:n,sizes:s,setSizes:l,headingCompression:d,setHeadingCompression:c,headingTypography:f,setHeadingTypography:u,textStyles:p,setTextStyles:h}=he(),I=t.data,g=I.root?.props??{},C=e?wl(g.fonts):a,w=e?tk:s,T=e?Ra(g.headingCompression):d,y=e?dk(g.headingTypography):f,b={fonts:C,sizes:w,compression:T,typography:y},P=e?g.textStyles:p,H=E=>r({type:"replaceRoot",root:{...I.root,props:{...g,...E}},recordHistory:!0});return{fonts:C,sizes:w,compression:T,typography:y,old:b,saved:P,write:(E,W)=>{let O=Cb(Br(E.saved,E.old),E.old);e?H({textStyles:E.saved,fonts:O.fonts,headingCompression:O.compression,headingTypography:O.typography}):(h(E.saved),n(O.fonts),l(O.sizes),c(O.compression),u(O.typography)),o(P1(E,b),W)},writeRoot:H}}import{pictureShadowColor as Cq}from"efficient-easel/screen/lib/document/shadow-values";var Rb="sf-site-styles",vq="sf-site-styles-tabpanel",oA="text",Hs="basics",Q1="this-page-group",Ns=[{id:Hs,label:"Basics",icon:ve(yq,{})},{id:"theme",label:"Theme",icon:ve(bq,{})},{id:"text",label:"Text",icon:ve(Sq,{})}];function kq({themeFromDocument:e,persist:o}){let{appState:t,dispatch:r}=eA(c=>c),{theme:a,setTheme:n}=he(),s=t.data,l=s.root?.props??{},d=c=>{if(e){let f={...l,theme:c};r({type:"replaceRoot",root:{...s.root,props:f},recordHistory:!0})}else n(c);o({selected_preset:c.selected,theme_presets:c.themes})};return ve(__,{value:e?l.theme:a,onChange:d})}function Tq({themeFromDocument:e,persist:o}){let[t,r]=Lb(null),{theme:a,setFonts:n,setSizes:s,setHeadingTypography:l}=he(),d=Mp({themeFromDocument:e,persist:o}),{old:c,saved:f,writeRoot:u}=d,p=d.fonts,h=d.sizes,I=d.typography,g=E=>E.values.size??_q(Pq[E.id]??"body")??Eq[E.kind],C=E=>d.write(E),w=Z1(a),T=J1(a),y=E=>{let W={...p,accent:E};e?u({fonts:W}):n(W),o({accent_font:E})},b=E=>{s({...h,accent:E}),o({accent_size_px:E})},P=E=>{let W={...I,weightStrong:E};e?u({headingTypography:W}):l(W),o({heading_weight_strong:E})},H=E=>{let W={...I,italicStrong:E};e?u({headingTypography:W}):l(W),o({accent_italic:E})};return sn(Ms,{children:[ve(F1,{saved:f,old:c,colours:w,colourNameOf:T,sizeOf:g,onChange:C,openId:t===Ab?null:t,onOpenChange:r,withoutSize:e}),ve(N1,{font:p.accent,size:h.accent,weight:I.weightStrong,italic:I.italicStrong,headingWeight:I.weight,open:t===Ab,onOpenChange:E=>r(E?Ab:null),onChange:E=>{E.key==="font"?y(E.value):E.key==="size"?b(E.value):E.key==="weight"?P(E.value):H(E.value)},withoutSize:e})]})}var Ab="accent",Pq={"heading-1":"heading","heading-2":"heading2","heading-3":"heading3","body-1":"body","body-5":"label"},Eq={heading:32,body:14},Oq={heading:"main h1, main h2",heading2:"main h1, main h2",heading3:"main h1, main h2",accent:"main h1 em, main h2 em",body:"main p",label:"main .mono-eyebrow"};function _q(e){if(typeof document>"u")return null;let o=(wq()?.contentDocument??document).querySelector(Oq[e]);if(!o)return null;let t=parseFloat(getComputedStyle(o).fontSize);return Number.isFinite(t)?t:null}function Aq({themeFromDocument:e,persist:o}){let{appState:t,dispatch:r}=eA(p=>p),{cornerRadiusPx:a,setCornerRadiusPx:n}=he(),s=t.data,l=s.root?.props??{},d=l.cornerRadiusPx===void 0?nk[rk(l.cornerStyle)]:Jt(l.cornerRadiusPx),c=e?d:a,f=wi("cornerRadius",a,n,o),u=p=>r({type:"replaceRoot",root:{...s.root,props:{...l,...p}},recordHistory:!0});return ve(A_,{value:c,onChange:p=>{e?(u({cornerRadiusPx:p}),o({corner_radius_px:p})):f.write(p)},...e?{}:{length:f.length}})}function Rq({persist:e}){let{siteWidth:o,setSiteWidth:t,sectionBackgroundWidth:r,setSectionBackgroundWidth:a,sectionContentWidth:n,setSectionContentWidth:s}=he(),l=Fb(),d=wi("siteWidth",o??null,t,e);if(l!=="desktop")return null;let c=typeof o=="number"?o:d.shown(uo.default),f=d.write,u=h=>{a(h),e({section_background_width:h},!0)},p=h=>{s(h),e({section_content_width:h},!0)};return sn(Ms,{children:[ve(q_,{value:r??"full",changed:r!==null,detail:i("Full width"),onChange:u,onReset:()=>u(null),hint:K_}),ve(Y_,{mode:n??"content",px:c,min:uo.min,max:uo.max,changed:typeof o=="number"||n!==null,detail:`${i("Content width")} ${uo.default}px`,onMode:p,onPx:h=>f(h),onReset:()=>{p(null),f(null)},hint:V_,length:d.length})]})}function Lq({persist:e}){let{siteGutter:o,siteGutterPhone:t,setSiteGutter:r,setSiteGutterPhone:a,siteLengthUnits:n}=he(),s=G_(Fb(),{gutter:o,phone:t,gutterUnit:n.siteGutterUnit}),l=s?.key==="site_gutter_phone",d=wi(Tb("siteGutter",l?"mobile":"desktop"),s?.value??null,l?a:r,e);return s?ve(j_,{value:s.value,onChange:d.write,unsetPx:s.unsetPx,restsOn:d.shown(s.unsetPx),bounds:s.bounds,length:d.length}):null}function Fq({persist:e}){let{blockGap:o,blockGapPhone:t,setBlockGap:r,setBlockGapPhone:a,siteLengthUnits:n}=he(),s=N_(Fb(),{gap:o,phone:t}),l=s?.key==="block_gap_phone",d=s?.followsPx==null?null:{figure:s.followsPx,unit:ke(n.blockGapUnit)},c=wi(Tb("blockGap",l?"mobile":"desktop"),s?.value??null,l?a:r,e,d);return s?ve(M_,{value:s.value,onChange:c.write,followsPx:c.rest,followsUnit:c.length.unit,length:c.length}):null}function Bq({persist:e}){return sn(Ms,{children:[ve(Rq,{persist:e}),ve(Lq,{persist:e}),ve(Fq,{persist:e})]})}function Dq(e){return{card_shadow:e}}function Nq(e){return e===null?{shadow_color:null}:{shadow_color:Cq(e)}}function Mq(e){return{hover_effect:e}}function Hq({persist:e}){let{cardShadow:o,setCardShadow:t,shadowColor:r,setShadowColor:a,hoverEffect:n,setHoverEffect:s}=he();return sn(Ms,{children:[ve(R_,{value:o,onChange:l=>{t(l),e(Dq(l),!0)}}),ve(B_,{value:r,onChange:l=>{a(l),e(Nq(l),l===null)}}),ve(H_,{value:n,onChange:l=>{s(l),e(Mq(l),!0)}})]})}function Wq(e){return{photography_grayscale:e}}function Uq({persist:e}){let{photographyGrayscale:o,setPhotographyGrayscale:t}=he();return ve(U_,{value:o,onChange:r=>{t(r),e(Wq(r),!0)}})}function zq({persist:e}){return ve(Ms,{children:ve(Uq,{persist:e})})}function $q(e){return{share_button_on_posts:e}}function Gq({persist:e}){let{shareButtonOnPosts:o,setShareButtonOnPosts:t}=he();return ve(z_,{value:o,onChange:r=>{t(r),e($q(r),!0)}})}function Ws(){let{websiteName:e}=he();return e?.trim()||Uk}function Hp({themeFromDocument:e=!1,tokenRef:o,siteId:t,onNotify:r,tab:a,onTabChange:n,initialTab:s,revealPageGroup:l=!1,onPageGroupRevealed:d}){let{persist:c}=hs({themeFromDocument:e,tokenRef:o,siteId:t,onResult:C=>{let w=$1(C);w&&r?.(w.msg,w.tone)}}),[f,u]=Lb(s??Ns[0].id),p=a!==void 0,h=p?a:f,I=p?n??(()=>{}):u,g=Ns.find(C=>C.id===h)??Ns[0];return sn(hq,{children:[ve(Vq,{activeId:g.id,onSelect:I}),sn("div",{id:gq(Rb,g.id),className:vq,role:"tabpanel","aria-labelledby":Iq(Rb,g.id),children:[h===Hs&&sn(Ms,{children:[ve(Aq,{themeFromDocument:e,persist:c}),!e&&ve(Hq,{persist:c}),!e&&ve(Bq,{persist:c}),!e&&ve(zq,{persist:c}),!e&&ve(Gq,{persist:c}),ve(jq,{reveal:l,onRevealed:d})]}),h==="theme"&&ve(kq,{themeFromDocument:e,persist:c}),h==="text"&&ve(Tq,{themeFromDocument:e,persist:c})]})]})}function jq({reveal:e,onRevealed:o}){let[t,r]=Lb(!0),a=uq(o);return a.current=o,pq(()=>{if(!e)return;r(!0);let n=requestAnimationFrame(()=>{document.getElementById(Q1)?.scrollIntoView({block:"start"}),a.current?.()});return()=>cancelAnimationFrame(n)},[e]),ve(fq,{title:i("This page"),open:t,onToggle:r,id:Q1,children:ve(Kq,{})})}function Kq(){let{fields:e,values:o,readOnly:t,onChange:r}=dq(),a=Object.fromEntries(Ci.filter(n=>n in e).map(n=>[n,e[n]]));return Object.keys(a).length===0?ve(mq,{variant:"none",icon:!1,message:i("This page has no look of its own to set.")}):ve(cq,{fields:a,values:o,onChange:r,readOnly:t,tabs:!1,idPrefix:"this-page",ariaLabel:i("This page")})}function Vq({activeId:e,onSelect:o}){return ve("div",{className:"es-insp-tabs",children:ve(xq,{variant:"underline",block:!0,labelsFit:!0,"aria-label":i("Styles"),idPrefix:Rb,value:e,onChange:o,items:Ns.map(t=>{let r=i(t.label);return{id:t.id,icon:t.icon,label:r}})})})}import{InspectorIconButton as rY}from"efficient-easel/chrome";import{Button as dA,Dialog as aY,FormField as nY,Input as cA,PopupMenu as sY,PopupMenuItem as fA,toast as pA}from"efficient-shell/ui";import{LayersTree as lY,TreeGroupLabel as iY,TreeRow as uA,TreeRowAction as $p}from"efficient-easel/tree";import{AddIcon as dY,DuplicateIcon as cY,PageIcon as fY,SettingsIcon as pY}from"efficient-easel/icons";import{PagesIcon as uY}from"efficient-easel/rail";import{useEaselHost as mY}from"efficient-easel/screen/lib/host";import{useEaselSession as IA}from"efficient-easel/screen/lib/session-context";import{useCallback as Wp,useEffect as qq,useSyncExternalStore as Yq}from"react";import{useScreenDocument as nA}from"efficient-easel/screen/components/ScreenDocumentContext";var tA=new WeakMap;function vi(e){let o=tA.get(e);return o||(o={rows:null,loading:null,listeners:new Set},tA.set(e,o)),o}function Bb(e,o){e.rows=o;for(let t of e.listeners)t()}var Up=new Set;function zp(e,o){o?Up.add(e):Up.delete(e)}function rA(e){let o=vi(e),t=e.listPages().then(r=>Bb(o,Up.size?r.filter(a=>!Up.has(a.id)):r),()=>Bb(o,[])).finally(()=>{o.loading===t&&(o.loading=null)});return o.loading=t,t}var aA=()=>null,Xq=()=>()=>{};function ki(){let{adapter:e,ready:o}=nA(),t=Wp(l=>{let{listeners:d}=vi(e);return d.add(l),()=>d.delete(l)},[e]),r=Wp(()=>vi(e).rows,[e]),a=Yq(o?t:Xq,o?r:aA,aA);qq(()=>{if(!o)return;let l=vi(e);l.rows===null&&!l.loading&&rA(e)},[e,o]);let n=Wp(()=>o?rA(e):Promise.resolve(),[e,o]),s=Wp(l=>Bb(vi(e),l),[e]);return{rows:a,reload:n,setRows:s,getRows:r}}function Zq(e,o){return e?.find(t=>t.slug===o)?.label?.trim()||`/${o}`}function sA(){let{currentSlug:e}=nA(),{rows:o}=ki();return Zq(o,e)}import{canDuplicatePage as hY,DuplicatePageDialog as xY,uniqueSlug as mA}from"efficient-easel/page-copy";var hA="sf-editor-pages-collapsed-groups";function IY(){let e=IA(),{siteId:o,templateId:t}=xA(),r=to(e).pages;if(!(!r.duplicate||t))return(a,n)=>r.duplicate(a.id,{...n,...o?{siteId:o}:{}})}function gA({onNavigate:e,onClose:o,activeSurface:t,onPreviewSurface:r}){let a=IA().chrome?.pageRows,n=mY(),{adapter:s,capabilities:l,ready:d,currentSlug:c}=xA(),f=Ws(),{rows:u,reload:p,setRows:h,getRows:I}=ki(),[g,C]=da(""),[w,T]=da(!1),[y,b]=da(null),[P,H]=da(!1),[E,W]=da(""),O=eY(),D=IY(),[v,_]=da(null),[A,F]=da(()=>{if(typeof window>"u")return new Set;try{let M=window.localStorage.getItem(hA);return new Set(M?JSON.parse(M):[])}catch{return new Set}});Qq(()=>{try{window.localStorage.setItem(hA,JSON.stringify([...A]))}catch{}},[A]);let z=M=>F(Le=>{let ye=new Set(Le);return ye.has(M)?ye.delete(M):ye.add(M),ye}),$=iA(()=>jT(u??[]),[u]),X=g.trim().toLowerCase(),ee=M=>!X||M.toLowerCase().includes(X),Fe=M=>X?!0:!A.has(M),Oe=iA(()=>new Set((u??[]).map(M=>M.slug)),[u]),ze=()=>{if(l.pageCreationInAdminForm){n.send("storefront-editor:new-page");return}W(""),b(null),H(!0)},Ke=async()=>{let M=E.trim();if(!(!M||!d||w||!s.createPage)){T(!0),b(null);try{let Le=await s.createPage({slug:mA(M,Oe),title:M,layout:{}});await p(),H(!1),W(""),e(Le.slug)}catch{b(i("Couldn\u2019t add the page \u2014 please retry."))}finally{T(!1)}}},be=l.hasSiteSettings&&!!s.createPage,Te=async()=>{if(!(!d||w||!s.createPage)){T(!0),b(null);try{let M=await s.createPage(K0(i("New popup"),Oe));await p(),e(M.slug)}catch{b(i("Couldn\u2019t add the popup \u2014 please retry."))}finally{T(!1)}}},_e=oY(null),[Ne,ao]=da(null),yo=()=>{if(!be)return ze();if(Ne)return ao(null);let M=_e.current?.getBoundingClientRect();M&&ao({top:M.bottom+6,right:Math.max(8,window.innerWidth-M.right)})},ie=M=>{let Le=u??[],ye=s.deletePage;if(!d||w||!ye||Le.length<=1)return;let po=Le.findIndex(Ze=>Ze.id===M.id),Be=Le.filter(Ze=>Ze.id!==M.id),_t=M.slug===c;zp(M.id,!0),h(Be),b(null),_t&&Be[0]&&e(Be[0].slug);let hr=()=>{zp(M.id,!1);let Ze=I()??[];if(Ze.some(ya=>ya.id===M.id))return;let xr=[...Ze];xr.splice(Math.max(0,Math.min(po,xr.length)),0,M),h(xr)};pA.undoable(i("Deleted \u201C{name}\u201D",{name:M.label}),{actionLabel:i("Undo"),commit:async Ze=>{await ye(M.id,Ze),zp(M.id,!1)},undo:()=>{hr(),_t&&e(M.slug)},onFail:()=>{hr(),pA.error(i("Couldn\u2019t delete the page \u2014 please retry."))}})},Me=M=>n.send("storefront-editor:open-page",{slug:M}),Ve=M=>{if(!ee(M.label))return null;let Le=!t&&M.slug===c,ye=l.canDeletePagesInline&&(u??[]).length>1,po=Ba(M),Be=GT(M),_t=[...po?[{label:i("Dynamic"),tone:"info"}]:[],...Be?[{label:i("Lightbox"),tone:"success"}]:[],...M.draft?[{label:i("draft"),tone:"draft"}]:[]],hr=_t.length>0?_t:void 0,Ze=!!D&&hY(M),xr=Ze||l.pageCreationInAdminForm||ye?Ti(lA,{children:[Ze&&Pe($p,{kind:"plain",label:i("Duplicate \u201C{name}\u201D",{name:M.label}),disabled:w,onClick:()=>_(M),children:Pe(cY,{size:13})}),l.pageCreationInAdminForm&&Pe($p,{kind:"plain",label:i("Page settings for \u201C{name}\u201D",{name:M.label}),onClick:()=>Me(M.slug),children:Pe(pY,{size:13})}),ye&&Pe($p,{kind:"delete",label:i("Delete \u201C{name}\u201D",{name:M.label}),disabled:w,onClick:()=>ie(M),children:Pe(Db,{name:"trash",size:13,strokeWidth:1.7,rounded:!0})})]}):void 0;return Pe(uA,{icon:Pe(fY,{size:14}),name:M.label,selected:Le,onSelect:()=>e(M.slug),badge:hr,actions:xr,rowProps:{"data-page-slug":M.slug}},M.id)},J=(M,Le,ye)=>{let po=ye.filter(Boolean);if(po.length===0)return null;let Be=Fe(M);return Ti(Jq,{children:[Pe(iY,{count:po.length,countLabel:Uo("{n} page","{n} pages",po.length),expanded:Be,onToggle:()=>z(M),children:Le}),Be&&po]},M)},Ae=(a?.rows??[]).filter(M=>ee(M.label)).map(M=>{let Le=t===M.key;return Pe(uA,{icon:M.icon,name:M.label,selected:Le,onSelect:()=>r(M.key),badge:{label:i("Preview"),tone:"warning"},actions:Pe($p,{kind:"plain",label:i("Open the {name} in a new tab",{name:M.label}),onClick:()=>window.open(M.href,"_blank","noopener,noreferrer"),children:Pe(Db,{name:"external-link",size:13,strokeWidth:1.7,rounded:!0})}),rowProps:{"data-shop-surface":M.key}},M.key)}),ft=l.hasSiteSettings&&!!a,fo=(()=>{if(u===null)return null;let M=[],Le=!1;for(let ye of $){ft&&!Le&&ye.key.startsWith("system:")&&(M.push(J("shop",a.title,Ae)),Le=!0);let po=ye.key===wx||ye.label===Sx?i(ye.label):ye.label;M.push(J(ye.key,po,ye.rows.map(Ve)))}return ft&&!Le&&M.push(J("shop",a.title,Ae)),M})();return Ti("div",{className:"sf-pages",children:[Pe(tY,{icon:Pe(uY,{}),title:i("Pages"),context:f,actions:Pe(rY,{buttonRef:_e,label:be?i("Add"):i("New page"),hasPopup:be?"menu":void 0,expanded:be?Ne!==null:void 0,onClick:yo,children:Pe(dY,{size:15})})}),Ne&&Pe(sY,{portal:!0,style:{top:Ne.top,right:Ne.right},onClose:()=>ao(null),children:Ti("div",{role:"menu","aria-label":i("Add"),children:[Pe(fA,{role:"menuitem",onClick:()=>{ao(null),ze()},children:i("Page")}),Pe(fA,{role:"menuitem",disabled:w,onClick:()=>{ao(null),Te()},children:i("Popup")})]})}),Pe("div",{className:"sf-pages-find",children:Pe(cA,{type:"search",leftIcon:Pe(Db,{name:"search",size:14,rounded:!0}),placeholder:i("Search all pages\u2026"),value:g,onChange:M=>C(M.target.value),"aria-label":i("Search all pages")})}),y&&!P&&Pe("div",{className:"sf-note sf-note--error",role:"alert",children:y}),fo===null?Pe("div",{className:"sf-note",children:i("Loading\u2026")}):fo.some(Boolean)?Pe(lY,{ariaLabel:i("Pages"),className:"sf-scroll",children:fo}):Pe("div",{className:"sf-note",children:g.trim()?i("No pages match your search"):i("No pages yet. Add one with + above.")}),D&&v&&Pe(xY,{source:{title:v.label,slug:v.slug},taken:Oe,host:vc(),duplicate:M=>D(v,M),onClose:()=>_(null),onDuplicated:M=>{_(null),p(),e(M.slug)}},v.id),Pe(aY,{open:P,onClose:()=>H(!1),size:"sm",title:i("Add a page"),description:i("Give the new template page a name. It starts blank \u2014 add sections once it opens."),footer:Ti(lA,{children:[Pe(dA,{variant:"secondary",onClick:()=>H(!1),children:i("Cancel")}),Pe(dA,{onClick:()=>{Ke()},disabled:w||!E.trim(),loading:w,children:i("Add page")})]}),children:Pe(nY,{label:i("Page name"),htmlFor:O,hint:E.trim()?i("URL: /{slug}",{slug:mA(E,Oe)}):void 0,error:y??void 0,children:Pe(cA,{id:O,value:E,invalid:!!y,onChange:M=>W(M.target.value),onKeyDown:M=>{M.key==="Enter"&&Ke()},placeholder:i("e.g. About")})})})]})}import{jsx as SA}from"react/jsx-runtime";import{createContext as bY,useCallback as yY,useContext as SY,useMemo as wY,useState as CY}from"react";import{CanvasChromeContext as vY}from"efficient-easel/easel";import{useSelectHandler as kY}from"efficient-easel/draw/client";import{parseHexColor as gY}from"efficient-shell/format";var Gp=["chat-bubble-left-right","chat-bubble-oval-left-ellipsis","chat","megaphone","phone","sparkles"],Us=Gp[0];var ln="right";function jp(e){return Gp.includes(e??"")?e:Us}function bA(e){return e==="left"?"left":ln}function yA(e){return e&&gY(e)===e.toLowerCase()?e.toLowerCase():""}var wA="chat",Kp={enabled:!0,title:"",subtitle:"",greeting:"",launcherColor:"",launcherIcon:"",launcherPosition:ln,launcherLabel:"",showOnPhones:!0};function t_e(e){return{enabled:e.enabled,title:e.title,subtitle:e.subtitle,greeting:e.greeting,launcherColor:yA(e.launcherColor),launcherIcon:e.launcherIcon?jp(e.launcherIcon):"",launcherPosition:bA(e.launcherPosition),launcherLabel:e.launcherLabel??"",showOnPhones:e.showOnPhones!==!1}}var CA=bY({chat:Kp,setChat:()=>{},setSelected:()=>{},setSelectHandler:()=>{}});function r_e({children:e,chat:o=Kp,onChatChange:t}){let[r,a]=CY(!1),n=yY(c=>t?.(c),[t]),{select:s,setSelectHandler:l}=kY(),d=wY(()=>({selected:()=>r?wA:null,select:c=>c===wA&&s()}),[r,s]);return SA(CA.Provider,{value:{chat:o,setChat:n,setSelected:a,setSelectHandler:l},children:SA(vY.Provider,{value:d,children:e})})}var Vp=()=>SY(CA);import{jsx as Nb}from"react/jsx-runtime";import{DesktopIcon as TY,PhoneIcon as PY,TabletIcon as EY}from"efficient-easel/icons";import{VIEW_TIERS as OY,VIEW_TIER_LABEL as _Y}from"efficient-easel/draw";var AY={desktop:Nb(TY,{}),tablet:Nb(EY,{}),mobile:Nb(PY,{})},vA=OY.map(e=>({id:e,get label(){return i(_Y[e])},icon:AY[e]}));import{PreviewDeviceContext as Dfe}from"efficient-easel/draw/client";import{jsx as RY}from"react/jsx-runtime";import{createContext as LY,useCallback as kA,useContext as FY,useMemo as BY,useRef as DY}from"react";var NY=Object.fromEntries(Pc.map(e=>[e,{value:"",error:null}])),TA=LY({links:$k,rows:NY,canSave:!1,saveLink:async()=>({ok:!1,error:"There is no website to save to."}),openPanel:()=>{},setOpenHandler:()=>{}});function u_e({children:e,value:o}){let t=DY(()=>{}),r=kA(()=>t.current(),[]),a=kA(s=>{t.current=s},[]),n=BY(()=>({...o,openPanel:r,setOpenHandler:a}),[o,r,a]);return RY(TA.Provider,{value:n,children:e})}var Pi=()=>FY(TA);import{jsx as MY}from"react/jsx-runtime";import{createContext as HY,useContext as WY,useMemo as UY,useState as zY}from"react";var PA=HY(null);function I_e({children:e}){let[o,t]=zY(null),r=UY(()=>({surface:o,setSurface:t}),[o]);return MY(PA.Provider,{value:r,children:e})}function EA(){return WY(PA)??{surface:null,setSurface:()=>{}}}import{createPreviewSelectionContext as $Y}from"efficient-easel/draw/client";var Ei="Scrolling Bar",{Provider:y_e,useSelection:OA}=$Y("selectedHeroId"),S_e="data-sf-hero-ticker";function w_e(e){return`${e}::ticker`}function C_e(e){return!e||!e.endsWith("::ticker")?null:e.slice(0,-8)||null}var _A=["","","","","",""],AA="#ticker",Oi="strip",Mb={sectionAccent:Qt,line:!1};function GY(e){return(Array.isArray(e.tickerItems)?e.tickerItems:[]).map(o=>typeof o?.text=="string"?o.text:"").filter(o=>o.trim()!=="")}function Hb(e){return GY(e).length>0}function T_e(e){return e.showTicker!==!1&&Hb(e)}import{createPreviewSelectionContext as jY}from"efficient-easel/draw/client";var{Provider:O_e,useSelection:qp}=jY("selectedHeroPart");var LA=["one","side","stacked"];var A_e={one:"One",side:"Side by side",stacked:"Stacked"};function Yp(e){return LA.includes(e)?e:"one"}function RA(e){return e==="one"?1:2}function Wb(e,o){if(LA.includes(e))return e;let t=Yp(o);return t==="side"?"stacked":t}function _i(e){let o=Yp(e.mediaLayout);return Math.max(RA(o),RA(Wb(e.mediaLayoutPhone,o)))}var dn=["media","image","image2"],cn={media:"Media",image:"Image",image2:"Image 2"},Ai={media:"heroMedia",image:"heroImage",image2:"heroImage2"};function Xp(e,o){return e==="image"&&_i(o)>1?"Image 1":cn[e]}var B_e="Video file",D_e="Upload a video file",N_e="AV1 file",M_e="Upload an AV1 file";function KY(e,o){return{field:"mediaType",is:e,default:o}}var VY=new Set(["HeroSingle"]),FA="heroPart";function qY(e,o){return{...o,[FA]:e}}function H_e(e,{parts:o={},onlyFor:t,fallback:r,rules:a}){let n={...e};for(let s of["image","video"])for(let l of t[s])n[l]=oo(n[l],KY(s,r));for(let[s,l]of Object.entries(a??{}))l&&(n[s]=oo(n[s],l));for(let s of dn)for(let l of o[s]??[])n[l]=qY(s,n[l]);return n}function YY(e){let o=e?.[FA];return dn.includes(o)?o:null}function BA(e,o){let t={};for(let[r,a]of Object.entries(e))YY(a)===o&&(t[r]=a);return t}function DA(e){if(!VY.has(e.type))return[];let o=[{part:"media",label:cn.media,depth:0}];return(e.props.mediaType??"image")!=="video"&&(o.push({part:"image",label:Xp("image",e.props),depth:1}),_i(e.props)>1&&o.push({part:"image2",label:Xp("image2",e.props),depth:1})),o}function Ri(e,o){return`${e}::${o}`}function NA(e){if(!e)return null;let o=e.lastIndexOf("::");if(o<=0)return null;let t=e.slice(o+2);return dn.includes(t)?{nodeId:e.slice(0,o),part:t}:null}var MA="data-sf-hero-part";import{jsx as Ee,jsxs as Ia,Fragment as oM}from"react/jsx-runtime";import{useEasel as cle,useRootFields as fle}from"efficient-easel/easel";import{Button as ple,EmptyState as ule}from"efficient-shell/ui";function HA({kind:e,pageName:o}){return{name:o?.trim()||i("This page"),kindLabel:Ba({kind:e})?i("Template"):i("Page")}}import{headWords as nM,InspectorHead as mle,InspectorIconButton as tM}from"efficient-easel/chrome";import{DuplicateIcon as hle,TrashIcon as xle}from"efficient-easel/icons";import{panelFieldsOf as Ile}from"efficient-easel/screen/lib/document/panel-fields";import{jsx as N,Fragment as xe,jsxs as ge}from"react/jsx-runtime";import{BlockBannerIcon as JY,BlockBoxIcon as QY,BlockButtonIcon as eX,BlockDividerIcon as UA,BlockFooterIcon as zA,BlockHeadingIcon as oX,BlockProductIcon as tX,BlockSocialIcon as rX,BlockTextIcon as aX,CardPaymentIcon as nX,ChatIcon as sX,AccountIcon as lX,GlobeIcon as iX,GridIcon as dX,ImageIcon as zb,MapIcon as cX,MediaIcon as fX,PageIcon as pX}from"efficient-easel/icons";import{jsx as Ub,Fragment as XY,jsxs as ZY}from"react/jsx-runtime";var WA=ZY(XY,{children:[Ub("circle",{cx:"9",cy:"20",r:"1.3"}),Ub("circle",{cx:"18",cy:"20",r:"1.3"}),Ub("path",{d:"M2.5 3.5h3l2.3 11.3a1.6 1.6 0 0 0 1.6 1.3h8.1a1.6 1.6 0 0 0 1.6-1.2L21 7H6"})]});var uX={header:ge(xe,{children:[N("rect",{x:"3",y:"5",width:"18",height:"14",rx:"2"}),N("path",{d:"M3 9.5h18"})]}),social:ge(xe,{children:[N("circle",{cx:"6",cy:"12",r:"2.5"}),N("circle",{cx:"18",cy:"6",r:"2.5"}),N("circle",{cx:"18",cy:"18",r:"2.5"}),N("path",{d:"M8.2 10.8l7.6-3.6M8.2 13.2l7.6 3.6"})]}),ticker:ge(xe,{children:[N("rect",{x:"3",y:"8.5",width:"18",height:"7",rx:"2"}),N("path",{d:"M6 12h3.5M11.5 12h2M15.5 12h2.5"})]}),FooterLogo:ge(xe,{children:[N("path",{d:"M4 15.5h6M4 18h4"}),N("path",{d:"M14 8.5l3 7 3-7"})]}),FooterMenu:N("path",{d:"M6 7h12M6 11h12M6 15h8M6 19h8"}),FooterGroup:ge(xe,{children:[N("rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",strokeDasharray:"3 2.5"}),N("path",{d:"M8 9h8M8 13h8M8 16h5"})]}),FooterText:N("path",{d:"M5 7h14M5 12h14M5 17h9"}),FooterEmailSignup:ge(xe,{children:[N("rect",{x:"3",y:"6",width:"18",height:"12",rx:"2"}),N("path",{d:"M3.5 7l8.5 6 8.5-6"})]}),SearchBlock:ge(xe,{children:[N("circle",{cx:"11",cy:"11",r:"6"}),N("path",{d:"M20 20l-4.2-4.2"})]}),CartBlock:WA,CountrySwitchBlock:ge(xe,{children:[N("circle",{cx:"12",cy:"12",r:"8.5"}),N("path",{d:"M3.5 12h17M12 3.5c2.6 2.4 3.6 5.2 3.6 8.5s-1 6.1-3.6 8.5M12 3.5c-2.6 2.4-3.6 5.2-3.6 8.5s1 6.1 3.6 8.5"})]}),ThemeSwitchBlock:ge(xe,{children:[N("circle",{cx:"12",cy:"12",r:"8.5"}),N("path",{d:"M12 3.5v17M12 5.5l6 6M12 10.5l5.2 5.2M12 15.5l2.8 2.8"})]}),LegalLineBlock:ge(xe,{children:[N("path",{d:"M3 9h18"}),N("path",{d:"M3 14h8M14 14h2M18 14h3"})]}),Hero:ge(xe,{children:[N("rect",{x:"3",y:"4",width:"18",height:"16",rx:"2"}),N("path",{d:"M7 13.5h7M7 16.5h10"})]}),HeroSlide:ge(xe,{children:[N("rect",{x:"3",y:"5",width:"18",height:"14",rx:"2"}),N("path",{d:"M7 15h6M16 9.5h.01M9.5 12l-2.5 3"})]}),HeroSingle:ge(xe,{children:[N("rect",{x:"3",y:"4",width:"18",height:"16",rx:"2"}),N("path",{d:"M10.5 8.5l4 2.5-4 2.5z"}),N("path",{d:"M7 17h7"})]}),Collections:ge(xe,{children:[N("rect",{x:"3",y:"5",width:"4.6",height:"14",rx:"1.3"}),N("rect",{x:"9.7",y:"5",width:"4.6",height:"14",rx:"1.3"}),N("rect",{x:"16.4",y:"5",width:"4.6",height:"14",rx:"1.3"})]}),CollectionCard:ge(xe,{children:[N("rect",{x:"6",y:"4",width:"12",height:"16",rx:"2"}),N("path",{d:"M9 15h6M9 17.5h4"})]}),AlloyWheelsListing:ge(xe,{children:[N("path",{d:"M3 5h5M3 9h5M3 13h5M3 17h5"}),N("rect",{x:"11.5",y:"5",width:"4.2",height:"5",rx:"1"}),N("rect",{x:"17.3",y:"5",width:"4.2",height:"5",rx:"1"}),N("rect",{x:"11.5",y:"12",width:"4.2",height:"5",rx:"1"}),N("rect",{x:"17.3",y:"12",width:"4.2",height:"5",rx:"1"})]}),CatalogFilterBar:ge(xe,{children:[N("path",{d:"M3 7h9M15.5 7H21"}),N("circle",{cx:"13.5",cy:"7",r:"1.7"}),N("path",{d:"M3 12h4M10.5 12H21"}),N("circle",{cx:"8.5",cy:"12",r:"1.7"}),N("path",{d:"M3 17h9M15.5 17H21"}),N("circle",{cx:"13.5",cy:"17",r:"1.7"})]}),ProductGrid:ge(xe,{children:[N("rect",{x:"3",y:"5",width:"4.8",height:"6",rx:"1"}),N("rect",{x:"9.6",y:"5",width:"4.8",height:"6",rx:"1"}),N("rect",{x:"16.2",y:"5",width:"4.8",height:"6",rx:"1"}),N("rect",{x:"3",y:"13",width:"4.8",height:"6",rx:"1"}),N("rect",{x:"9.6",y:"13",width:"4.8",height:"6",rx:"1"}),N("rect",{x:"16.2",y:"13",width:"4.8",height:"6",rx:"1"})]}),RelatedProducts:ge(xe,{children:[N("path",{d:"M3 5h10"}),N("rect",{x:"3",y:"9.5",width:"5",height:"9",rx:"1"}),N("rect",{x:"9.5",y:"9.5",width:"5",height:"9",rx:"1"}),N("rect",{x:"16",y:"9.5",width:"5",height:"9",rx:"1"})]}),Gallery:ge(xe,{children:[N("rect",{x:"3",y:"4",width:"11",height:"16",rx:"2"}),N("rect",{x:"15.5",y:"4",width:"5.5",height:"7.5",rx:"1.5"}),N("rect",{x:"15.5",y:"12.5",width:"5.5",height:"7.5",rx:"1.5"})]}),GalleryB:ge(xe,{children:[N("rect",{x:"3.5",y:"4",width:"7.5",height:"7.5",rx:"1.5"}),N("rect",{x:"13",y:"4",width:"7.5",height:"7.5",rx:"1.5"}),N("rect",{x:"3.5",y:"12.5",width:"7.5",height:"7.5",rx:"1.5"}),N("rect",{x:"13",y:"12.5",width:"7.5",height:"7.5",rx:"1.5"})]}),GalleryItem:ge(xe,{children:[N("rect",{x:"4",y:"5",width:"16",height:"14",rx:"2"}),N("circle",{cx:"9",cy:"10",r:"1.6"}),N("path",{d:"M20 15.5l-4.5-4L7 19"})]}),Events:ge(xe,{children:[N("rect",{x:"4",y:"5",width:"16",height:"15",rx:"2"}),N("path",{d:"M4 9.5h16M8.5 3v4M15.5 3v4M8 14h2M14 14h2"})]}),PostCard:ge(xe,{children:[N("rect",{x:"4",y:"3.5",width:"16",height:"17",rx:"2"}),N("rect",{x:"6.5",y:"6",width:"11",height:"6",rx:"1"}),N("path",{d:"M6.5 14.5h11M6.5 17.5h7"})]}),Manifesto:ge(xe,{children:[N("path",{d:"M7 8h3.2v4c0 1.6-1 2.6-3 3.2"}),N("path",{d:"M14 8h3.2v4c0 1.6-1 2.6-3 3.2"})]}),Stats:ge(xe,{children:[N("path",{d:"M3.5 20h17"}),N("path",{d:"M6 20v-7M11 20V7M16 20v-5M20.5 20v-9"})]}),Logos:ge(xe,{children:[N("circle",{cx:"6",cy:"12",r:"2.6"}),N("rect",{x:"10",y:"9.4",width:"5.2",height:"5.2",rx:"1.2"}),N("path",{d:"M19 9.2l2.4 5h-4.8z"})]}),Ticker:ge(xe,{children:[N("rect",{x:"3",y:"8.5",width:"18",height:"7",rx:"2"}),N("path",{d:"M6 12h3.5M11.5 12h2M15.5 12h2.5"})]}),SectionHeader:ge(xe,{children:[N("rect",{x:"3.5",y:"6",width:"5",height:"5",rx:"1.2"}),N("path",{d:"M11 8.5h9M3.5 15.5h17"})]}),IntroBleed:ge(xe,{children:[N("rect",{x:"3",y:"4",width:"18",height:"16",rx:"2"}),N("path",{d:"M3 13.5h18M7 16.8h6"})]}),Split:ge(xe,{children:[N("rect",{x:"3",y:"5",width:"8",height:"14",rx:"1.5"}),N("path",{d:"M14 8.5h6M14 12h6M14 15.5h4"})]}),Eyebrow:ge(xe,{children:[N("path",{d:"M4 8.5h4.5M11 8.5h9"}),N("path",{d:"M4 14.5h16"})]}),HeroGroup:ge(xe,{children:[N("rect",{x:"3.5",y:"4.5",width:"17",height:"15",rx:"2"}),N("path",{d:"M7 9h8M7 12.5h10M7 16h6"})]}),Form:ge(xe,{children:[N("rect",{x:"3",y:"4",width:"18",height:"16",rx:"2"}),N("path",{d:"M6.5 9h11M6.5 12.5h11"}),N("rect",{x:"6.5",y:"15",width:"6.5",height:"2.6",rx:"1.3"})]}),LogoBlock:N(xe,{children:N("path",{d:"M12 3.5l7.5 3.2v5.1c0 4.2-3.2 7.1-7.5 8.7-4.3-1.6-7.5-4.5-7.5-8.7V6.7z"})}),Spacer:ge(xe,{children:[N("path",{d:"M12 4v6M9.5 6.5L12 4l2.5 2.5M12 20v-6M9.5 17.5L12 20l2.5-2.5"}),N("path",{d:"M5 13h14",strokeDasharray:"2 2.5"})]}),ContactRouting:ge(xe,{children:[N("rect",{x:"3",y:"4",width:"5",height:"5",rx:"1"}),N("rect",{x:"9.5",y:"4",width:"5",height:"5",rx:"1"}),N("rect",{x:"16",y:"4",width:"5",height:"5",rx:"1"}),N("path",{d:"M4 13.5h11M4 17.5h7"}),N("path",{d:"M17 15l3 2-3 2"})]}),Contents:ge(xe,{children:[N("path",{d:"M4 7h2M4 12h2M4 17h2"}),N("path",{d:"M9 7h11M9 12h9M9 17h10"})]}),ListSearch:ge(xe,{children:[N("path",{d:"M4 6h9M4 11h5M4 16h5"}),N("circle",{cx:"15",cy:"15",r:"4"}),N("path",{d:"M20.5 20.5l-2.7-2.7"})]}),CustomHTML:N("path",{d:"M9 8l-4 4 4 4M15 8l4 4-4 4"})},mX=N("rect",{x:"4",y:"4",width:"16",height:"16",rx:"2.5"}),hX={footer:zA,Footer:zA,Divider:UA,FooterDivider:UA,Banner:JY,Flex:QY,FooterSocial:rX,FooterPayment:nX,page:pX,website:iX,AccountBlock:lX,chat:sX,Heading:oX,Text:aX,ImageBlock:zb,ButtonBlock:eX,LocationMap:cX,Grid:dX,ProductRef:tX,heroMedia:fX,heroImage:zb,heroImage2:zb},xX={MenuBlock:"FooterMenu",EmailFormBlock:"FooterEmailSignup",SocialLogosBlock:"FooterSocial",PaymentLogosBlock:"FooterPayment",SiteHeader:"header",SiteFooter:"footer"};function fn({type:e,size:o=16,className:t}){let r=xX[e]??e,a=hX[r];return a?N(a,{size:o,className:t}):N("svg",{width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.7,strokeLinecap:"round",strokeLinejoin:"round",className:t,"aria-hidden":"true",children:uX[r]??mX})}import{PanelHideButton as rM}from"efficient-easel/screen/components/SidePanelHead";import{useEaselSession as gle}from"efficient-easel/screen/lib/session-context";import{jsx as Re,jsxs as Li,Fragment as IX}from"react/jsx-runtime";import{useEffect as gX,useId as $A,useState as bX}from"react";import{IconPicker as yX}from"efficient-shell/ui";import{SettingsDefaultReset as SX,SettingsField as Fi,SettingsSegmented as wX,SettingsSwitch as GA}from"efficient-easel/panel";import{ButtonIcon as CX,ButtonIconIcon as vX,EyeIcon as kX,PhoneIcon as TX,PlacementIcon as PX,TypeIcon as EX}from"efficient-easel/icons";var OX="Chat with us",_X="We usually reply within a few minutes",AX="Hi! Ask us anything \u2014 about a wheel, an order, or fitment. Leave your details and we\u2019ll reply.";function Zp({label:e,value:o,placeholder:t,onCommit:r,multiline:a=!1,hint:n}){let[s,l]=bX(o);gX(()=>l(o),[o]);let d=()=>{s!==o&&r(s)};return Re(Fi,{label:e,icon:Re(EX,{}),changed:o!=="",action:Re(Bi,{label:e,changed:o!=="",onReset:()=>r("")}),hint:n,children:a?Re("textarea",{value:s,placeholder:t,rows:3,onChange:c=>l(c.target.value),onBlur:d,"aria-label":e}):Re("input",{type:"text",value:s,placeholder:t,onChange:c=>l(c.target.value),onBlur:d,onKeyDown:c=>{c.key==="Enter"&&c.currentTarget.blur()},"aria-label":e,autoComplete:"off"})})}function Bi({label:e,changed:o,onReset:t}){return Re(SX,{words:de()?.panel,label:e,changed:o,onReset:t})}function RX({label:e,icon:o,checked:t,fallback:r,onChange:a,hint:n}){let s=$A();return Re(Fi,{label:e,labelId:s,icon:o,changed:t!==r,action:Li("span",{className:"inline-flex items-center gap-2",children:[Re(GA,{checked:t,onChange:a,ariaLabelledBy:s}),Re(Bi,{label:e,changed:t!==r,onReset:()=>a(r)})]}),hint:n})}var LX=Gp.map(e=>({value:e,icon:jc(e)}));function FX(){let{theme:e}=he(),o=xo(e).themes[0];return El(o)??o?.accent??""}function jA(){let{chat:e,setChat:o}=Vp(),t=$A(),r=FX(),a=e.launcherIcon?jp(e.launcherIcon):Us;return Li(IX,{children:[Re(Fi,{label:i("Show the chat bubble"),labelId:t,icon:Re(kX,{}),changed:!e.enabled,action:Li("span",{className:"inline-flex items-center gap-2",children:[Re(GA,{checked:e.enabled,onChange:n=>o({enabled:n}),ariaLabelledBy:t}),Re(Bi,{label:i("Show the chat bubble"),changed:!e.enabled,onReset:()=>o({enabled:!0})})]}),hint:e.enabled?i("The floating chat bubble shows in the corner of every page."):i("The chat bubble is hidden across the whole site.")}),Li(bg,{title:i("Look"),children:[Re(Yo,{label:i("Button color"),icon:Re(CX,{}),changed:e.launcherColor!=="",value:e.launcherColor,inherited:r,caption:e.launcherColor?void 0:i("Site button color"),onChange:n=>o({launcherColor:n}),onReset:()=>o({launcherColor:""})}),Re(Fi,{label:i("Icon"),icon:Re(vX,{}),value:Re(JI,{value:a}),changed:a!==Us,action:Re(Bi,{label:i("Icon"),changed:a!==Us,onReset:()=>o({launcherIcon:""})}),children:Re(yX,{label:i("Icon"),value:a,options:LX,onChange:n=>o({launcherIcon:n===Us?"":n})})}),Re(Fi,{label:i("Position"),icon:Re(PX,{}),changed:e.launcherPosition!==ln,action:Re(Bi,{label:i("Position"),changed:e.launcherPosition!==ln,onReset:()=>o({launcherPosition:ln})}),children:Re(wX,{options:[{label:i("Right"),id:"right"},{label:i("Left"),id:"left"}],value:e.launcherPosition,ariaLabel:i("Position"),onChange:n=>o({launcherPosition:n})})}),Re(Zp,{label:i("Label"),value:e.launcherLabel,placeholder:i("Icon only"),onCommit:n=>o({launcherLabel:n}),hint:i("Shows when a visitor points at the button")}),Re(RX,{label:i("Show on phones"),icon:Re(TX,{}),checked:e.showOnPhones,fallback:Kp.showOnPhones,onChange:n=>o({showOnPhones:n})})]}),Li(bg,{title:i("Wording"),children:[Re(Zp,{label:i("Title"),value:e.title,placeholder:OX,onCommit:n=>o({title:n})}),Re(Zp,{label:i("Subtitle"),value:e.subtitle,placeholder:_X,onCommit:n=>o({subtitle:n})}),Re(Zp,{label:i("Greeting message"),value:e.greeting,placeholder:AX,onCommit:n=>o({greeting:n}),multiline:!0}),Re("p",{className:"es-field-hint",children:i("Leave a field blank to use the built-in wording.")})]})]})}import{jsx as pn,Fragment as cy,jsxs as XA}from"react/jsx-runtime";import{useEffect as cZ,useId as qA,useState as YA}from"react";import{SettingsField as fZ}from"efficient-easel/panel";import{jsx as oZ}from"react/jsx-runtime";import{forwardRef as BX,createElement as $b}from"react";var KA={outline:{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"},filled:{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",stroke:"none"}};var ce=(e,o,t,r)=>{let a=BX(({color:n="currentColor",size:s=24,stroke:l=2,title:d,className:c,children:f,...u},p)=>$b("svg",{ref:p,...KA[e],width:s,height:s,className:["tabler-icon",`tabler-icon-${o}`,c].filter(Boolean).join(" "),...e==="filled"?{fill:n}:{strokeWidth:l,stroke:n},...u},[d&&$b("title",{key:"svg-title"},d),...r.map(([h,I])=>$b(h,I)),...Array.isArray(f)?f:[f]]));return a.displayName=`${t}`,a};var DX=[["path",{d:"M7 10v4h3v7h4v-7h3l1 -4h-4v-2a1 1 0 0 1 1 -1h3v-4h-3a5 5 0 0 0 -5 5v2h-3",key:"svg-0"}]],Gb=ce("outline","brand-facebook","BrandFacebook",DX);var NX=[["path",{d:"M3 7a4 4 0 0 1 4 -4h10a4 4 0 0 1 4 4v10a4 4 0 0 1 -4 4h-10a4 4 0 0 1 -4 -4l0 -10",key:"svg-0"}],["path",{d:"M8.5 12a3.5 3.5 0 1 0 7 0a3.5 3.5 0 0 0 -7 0",key:"svg-1"}],["path",{d:"M17 7v.01",key:"svg-2"}]],jb=ce("outline","brand-instagram","BrandInstagram",NX);var MX=[["path",{d:"M21 10.663c0 -4.224 -4.041 -7.663 -9 -7.663s-9 3.439 -9 7.663c0 3.783 3.201 6.958 7.527 7.56c1.053 .239 .932 .644 .696 2.133c-.039 .238 -.184 .932 .777 .512c.96 -.42 5.18 -3.201 7.073 -5.48c1.304 -1.504 1.927 -3.029 1.927 -4.715v-.01",key:"svg-0"}]],Kb=ce("outline","brand-line","BrandLine",MX);var HX=[["path",{d:"M8 11v5",key:"svg-0"}],["path",{d:"M8 8v.01",key:"svg-1"}],["path",{d:"M12 16v-5",key:"svg-2"}],["path",{d:"M16 16v-3a2 2 0 1 0 -4 0",key:"svg-3"}],["path",{d:"M3 7a4 4 0 0 1 4 -4h10a4 4 0 0 1 4 4v10a4 4 0 0 1 -4 4h-10a4 4 0 0 1 -4 -4l0 -10",key:"svg-4"}]],Vb=ce("outline","brand-linkedin","BrandLinkedin",HX);var WX=[["path",{d:"M8 20l4 -9",key:"svg-0"}],["path",{d:"M10.7 14c.437 1.263 1.43 2 2.55 2c2.071 0 3.75 -1.554 3.75 -4a5 5 0 1 0 -9.7 1.7",key:"svg-1"}],["path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 1 0 -18 0",key:"svg-2"}]],qb=ce("outline","brand-pinterest","BrandPinterest",WX);var UX=[["path",{d:"M15 10l-4 4l6 6l4 -16l-18 7l4 2l2 6l3 -4",key:"svg-0"}]],Yb=ce("outline","brand-telegram","BrandTelegram",UX);var zX=[["path",{d:"M21 7.917v4.034a9.948 9.948 0 0 1 -5 -1.951v4.5a6.5 6.5 0 1 1 -8 -6.326v4.326a2.5 2.5 0 1 0 4 2v-11.5h4.083a6.005 6.005 0 0 0 4.917 4.917",key:"svg-0"}]],Xb=ce("outline","brand-tiktok","BrandTiktok",zX);var $X=[["path",{d:"M16.5 10c3.038 0 5.5 2.015 5.5 4.5c0 1.397 -.778 2.645 -2 3.47l0 2.03l-1.964 -1.178a6.649 6.649 0 0 1 -1.536 .178c-3.038 0 -5.5 -2.015 -5.5 -4.5s2.462 -4.5 5.5 -4.5",key:"svg-0"}],["path",{d:"M11.197 15.698c-.69 .196 -1.43 .302 -2.197 .302a8.008 8.008 0 0 1 -2.612 -.432l-2.388 1.432v-2.801c-1.237 -1.082 -2 -2.564 -2 -4.199c0 -3.314 3.134 -6 7 -6c3.782 0 6.863 2.57 7 5.785l0 .233",key:"svg-1"}],["path",{d:"M10 8h.01",key:"svg-2"}],["path",{d:"M7 8h.01",key:"svg-3"}],["path",{d:"M15 14h.01",key:"svg-4"}],["path",{d:"M18 14h.01",key:"svg-5"}]],Zb=ce("outline","brand-wechat","BrandWechat",$X);var GX=[["path",{d:"M3 21l1.65 -3.8a9 9 0 1 1 3.4 2.9l-5.05 .9",key:"svg-0"}],["path",{d:"M9 10a.5 .5 0 0 0 1 0v-1a.5 .5 0 0 0 -1 0v1a5 5 0 0 0 5 5h1a.5 .5 0 0 0 0 -1h-1a.5 .5 0 0 0 0 1",key:"svg-1"}]],Jb=ce("outline","brand-whatsapp","BrandWhatsapp",GX);var jX=[["path",{d:"M4 4l11.733 16h4.267l-11.733 -16l-4.267 0",key:"svg-0"}],["path",{d:"M4 20l6.768 -6.768m2.46 -2.46l6.772 -6.772",key:"svg-1"}]],Qb=ce("outline","brand-x","BrandX",jX);var KX=[["path",{d:"M2 8a4 4 0 0 1 4 -4h12a4 4 0 0 1 4 4v8a4 4 0 0 1 -4 4h-12a4 4 0 0 1 -4 -4v-8",key:"svg-0"}],["path",{d:"M10 9l5 3l-5 3l0 -6",key:"svg-1"}]],ey=ce("outline","brand-youtube","BrandYoutube",KX);var VX=[["path",{d:"M18 2a1 1 0 0 1 .993 .883l.007 .117v4a1 1 0 0 1 -.883 .993l-.117 .007h-3v1h3a1 1 0 0 1 .991 1.131l-.02 .112l-1 4a1 1 0 0 1 -.858 .75l-.113 .007h-2v6a1 1 0 0 1 -.883 .993l-.117 .007h-4a1 1 0 0 1 -.993 -.883l-.007 -.117v-6h-2a1 1 0 0 1 -.993 -.883l-.007 -.117v-4a1 1 0 0 1 .883 -.993l.117 -.007h2v-1a6 6 0 0 1 5.775 -5.996l.225 -.004h3z",key:"svg-0"}]],oy=ce("filled","brand-facebook-filled","BrandFacebookFilled",VX);var qX=[["path",{d:"M16 3a5 5 0 0 1 5 5v8a5 5 0 0 1 -5 5h-8a5 5 0 0 1 -5 -5v-8a5 5 0 0 1 5 -5zm-4 5a4 4 0 0 0 -3.995 3.8l-.005 .2a4 4 0 1 0 4 -4m4.5 -1.5a1 1 0 0 0 -.993 .883l-.007 .127a1 1 0 0 0 1.993 .117l.007 -.127a1 1 0 0 0 -1 -1",key:"svg-0"}]],ty=ce("filled","brand-instagram-filled","BrandInstagramFilled",qX);var YX=[["path",{d:"M17 2a5 5 0 0 1 5 5v10a5 5 0 0 1 -5 5h-10a5 5 0 0 1 -5 -5v-10a5 5 0 0 1 5 -5zm-9 8a1 1 0 0 0 -1 1v5a1 1 0 0 0 2 0v-5a1 1 0 0 0 -1 -1m6 0a3 3 0 0 0 -1.168 .236l-.125 .057a1 1 0 0 0 -1.707 .707v5a1 1 0 0 0 2 0v-3a1 1 0 0 1 2 0v3a1 1 0 0 0 2 0v-3a3 3 0 0 0 -3 -3m-6 -3a1 1 0 0 0 -.993 .883l-.007 .127a1 1 0 0 0 1.993 .117l.007 -.127a1 1 0 0 0 -1 -1",key:"svg-0"}]],ry=ce("filled","brand-linkedin-filled","BrandLinkedinFilled",YX);var XX=[["path",{d:"M17 3.34a10 10 0 0 1 -8.512 18.023l2.364 -5.315a3.5 3.5 0 0 0 2.398 .952c2.708 0 4.75 -2.089 4.75 -5a6 6 0 1 0 -11.64 2.041a1 1 0 1 0 1.88 -.682a4 4 0 1 1 7.76 -1.36c0 1.818 -1.156 3.001 -2.75 3.001c-.609 0 -1.153 -.361 -1.478 -1.022l1.142 -2.572a1 1 0 0 0 -1.828 -.812l-4.392 9.882a10 10 0 0 1 -4.694 -8.476l.005 -.324a10 10 0 0 1 14.995 -8.336",key:"svg-0"}]],ay=ce("filled","brand-pinterest-filled","BrandPinterestFilled",XX);var ZX=[["path",{d:"M16.083 2h-4.083a1 1 0 0 0 -1 1v11.5a1.5 1.5 0 1 1 -2.519 -1.1l.12 -.1a1 1 0 0 0 .399 -.8v-4.326a1 1 0 0 0 -1.23 -.974a7.5 7.5 0 0 0 1.73 14.8l.243 -.005a7.5 7.5 0 0 0 7.257 -7.495v-2.7l.311 .153c1.122 .53 2.333 .868 3.59 .993a1 1 0 0 0 1.099 -.996v-4.033a1 1 0 0 0 -.834 -.986a5.005 5.005 0 0 1 -4.097 -4.096a1 1 0 0 0 -.986 -.835z",key:"svg-0"}]],ny=ce("filled","brand-tiktok-filled","BrandTiktokFilled",ZX);var JX=[["path",{d:"M18.497 4.409a10 10 0 0 1 -10.36 16.828l-.223 -.098l-4.759 .849l-.11 .011a1 1 0 0 1 -.11 0l-.102 -.013l-.108 -.024l-.105 -.037l-.099 -.047l-.093 -.058l-.014 -.011l-.012 -.007l-.086 -.073l-.077 -.08l-.067 -.088l-.056 -.094l-.034 -.07l-.04 -.108l-.028 -.128l-.012 -.102a1 1 0 0 1 0 -.125l.012 -.1l.024 -.11l.045 -.122l1.433 -3.304l-.009 -.014a10 10 0 0 1 1.549 -12.454l.215 -.203a10 10 0 0 1 13.226 -.217m-8.997 3.09a1.5 1.5 0 0 0 -1.5 1.5v1a6 6 0 0 0 6 6h1a1.5 1.5 0 0 0 0 -3h-1l-.144 .007a1.5 1.5 0 0 0 -1.128 .697l-.042 .074l-.022 -.007a4.01 4.01 0 0 1 -2.435 -2.435l-.008 -.023l.075 -.041a1.5 1.5 0 0 0 .704 -1.272v-1a1.5 1.5 0 0 0 -1.5 -1.5",key:"svg-0"}]],sy=ce("filled","brand-whatsapp-filled","BrandWhatsappFilled",JX);var QX=[["path",{d:"M8.267 3a1 1 0 0 1 .73 .317l.076 .092l4.274 5.828l5.946 -5.944a1 1 0 0 1 1.497 1.32l-.083 .094l-6.163 6.162l6.262 8.54a1 1 0 0 1 -.697 1.585l-.109 .006h-4.267a1 1 0 0 1 -.73 -.317l-.076 -.092l-4.276 -5.829l-5.944 5.945a1 1 0 0 1 -1.497 -1.32l.083 -.094l6.161 -6.163l-6.26 -8.539a1 1 0 0 1 .697 -1.585l.109 -.006h4.267z",key:"svg-0"}]],ly=ce("filled","brand-x-filled","BrandXFilled",QX);var eZ=[["path",{d:"M18 3a5 5 0 0 1 5 5v8a5 5 0 0 1 -5 5h-12a5 5 0 0 1 -5 -5v-8a5 5 0 0 1 5 -5zm-9 6v6a1 1 0 0 0 1.514 .857l5 -3a1 1 0 0 0 0 -1.714l-5 -3a1 1 0 0 0 -1.514 .857z",key:"svg-0"}]],iy=ce("filled","brand-youtube-filled","BrandYoutubeFilled",eZ);var wAe="outline",Jp={fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},tZ={},dy={fillRule:"evenodd"},rZ=[["path",{...Jp,d:"M21 4L3 11L7 13L9 19L12 15L17 20z"}],["path",{...dy,d:"M21 4L3 11L7 13L9 19L12 15L17 20zM15.212 8.939 10.576 13.576 11.424 14.424 16.061 9.788z"}]],aZ=[["path",{...Jp,d:["M21 10.663c0 -4.224 -4.041 -7.663 -9 -7.663s-9 3.439 -9 7.663","c0 3.783 3.201 6.958 7.527 7.56c1.053 .239 .932 .644 .696 2.133","c-.039 .238 -.184 .932 .777 .512c.96 -.42 5.18 -3.201 7.073 -5.48","c1.304 -1.504 1.927 -3.029 1.927 -4.715v-.01z"].join("")}],["path",{...tZ,d:["M21 10.663c0 -4.224 -4.041 -7.663 -9 -7.663s-9 3.439 -9 7.663","c0 3.783 3.201 6.958 7.527 7.56c1.053 .239 .932 .644 .696 2.133","c-.039 .238 -.184 .932 .777 .512c.96 -.42 5.18 -3.201 7.073 -5.48","c1.304 -1.504 1.927 -3.029 1.927 -4.715v-.01z"].join("")}]],nZ=[["path",{...Jp,d:["M16.5 10c3.038 0 5.5 2.015 5.5 4.5c0 1.397 -.778 2.645 -2 3.47l0 2.03l-1.964 -1.178","a6.649 6.649 0 0 1 -1.536 .178c-3.038 0 -5.5 -2.015 -5.5 -4.5s2.462 -4.5 5.5 -4.5z"].join("")}],["path",{...Jp,d:["M8.319 15.972L7.84 15.918L7.349 15.832L6.865 15.715L6.388 15.568L4 17L4 14.199","L3.559 13.775L3.197 13.356L2.877 12.91L2.603 12.439L2.376 11.946L2.201 11.433","L2.079 10.902L2.016 10.405L2.001 9.897L2.036 9.386L2.12 8.889L2.25 8.405L2.425 7.937","L2.642 7.486L2.9 7.055L3.195 6.645L3.459 6.333L3.744 6.037L4.05 5.757L4.377 5.495","L4.723 5.25L5.086 5.025L5.467 4.819L5.864 4.634L6.275 4.471L6.701 4.331L7.139 4.214","L7.589 4.122L8.05 4.055L8.521 4.014L9.352 4.007L9.815 4.04L10.269 4.098L10.713 4.181","L11.146 4.287L11.567 4.416L11.975 4.567L12.369 4.739L12.748 4.932L13.112 5.143","L13.459 5.374L13.788 5.622L14.172 5.956L14.458 6.241L14.722 6.542L14.965 6.856","L15.217 7.237A8.35 7.35 0 0 0 8.319 15.972z"].join("")}],["path",{...dy,d:["M8.319 15.972L7.84 15.918L7.349 15.832L6.865 15.715L6.388 15.568L4 17L4 14.199","L3.559 13.775L3.197 13.356L2.877 12.91L2.603 12.439L2.376 11.946L2.201 11.433","L2.079 10.902L2.016 10.405L2.001 9.897L2.036 9.386L2.12 8.889L2.25 8.405L2.425 7.937","L2.642 7.486L2.9 7.055L3.195 6.645L3.459 6.333L3.744 6.037L4.05 5.757L4.377 5.495","L4.723 5.25L5.086 5.025L5.467 4.819L5.864 4.634L6.275 4.471L6.701 4.331L7.139 4.214","L7.589 4.122L8.05 4.055L8.521 4.014L9.352 4.007L9.815 4.04L10.269 4.098L10.713 4.181","L11.146 4.287L11.567 4.416L11.975 4.567L12.369 4.739L12.748 4.932L13.112 5.143","L13.459 5.374L13.788 5.622L14.172 5.956L14.458 6.241L14.722 6.542L14.965 6.856","L15.217 7.237A8.35 7.35 0 0 0 8.319 15.972zM5.25 7.9a0.85 0.85 0 1 0 1.7 0","a0.85 0.85 0 1 0 -1.7 0zM8.25 7.9a0.85 0.85 0 1 0 1.7 0a0.85 0.85 0 1 0 -1.7 0z"].join("")}],["path",{...dy,d:["M16.5 10c3.038 0 5.5 2.015 5.5 4.5c0 1.397 -.778 2.645 -2 3.47l0 2.03l-1.964 -1.178","a6.649 6.649 0 0 1 -1.536 .178c-3.038 0 -5.5 -2.015 -5.5 -4.5s2.462 -4.5 5.5 -4.5z","M14.15 14a0.85 0.85 0 1 0 1.7 0a0.85 0.85 0 1 0 -1.7 0zM17.15 14","a0.85 0.85 0 1 0 1.7 0a0.85 0.85 0 1 0 -1.7 0z"].join("")}]],sZ=ce("filled","brand-telegram-filled","BrandTelegramFilled",rZ),lZ=ce("filled","brand-line-filled","BrandLineFilled",aZ),iZ=ce("filled","brand-wechat-filled","BrandWechatFilled",nZ),dZ={instagram:{outline:jb,solid:ty},facebook:{outline:Gb,solid:oy},tiktok:{outline:Xb,solid:ny},youtube:{outline:ey,solid:iy},x:{outline:Qb,solid:ly},linkedin:{outline:Vb,solid:ry},pinterest:{outline:qb,solid:ay},whatsapp:{outline:Jb,solid:sy},telegram:{outline:Yb,solid:sZ},line:{outline:Kb,solid:lZ},wechat:{outline:Zb,solid:iZ}};function VA({platform:e,iconStyle:o,size:t}){let r=dZ[e][o];return oZ(r,{size:t,stroke:1.75,"aria-hidden":"true",focusable:"false"})}var pZ={instagram:"instagram.com/yourshop",facebook:"facebook.com/yourshop",tiktok:"tiktok.com/@yourshop",youtube:"youtube.com/@yourshop",x:"x.com/yourshop",linkedin:"linkedin.com/company/yourshop",pinterest:"pinterest.com/yourshop",whatsapp:"wa.me/61400000000",telegram:"t.me/yourshop",line:"line.me/ti/p/~yourshop",wechat:"u.wechat.com/your-qr-code-link"};function uZ({platform:e}){let{rows:o,saveLink:t}=Pi(),{value:r,error:a}=o[e],[n,s]=YA(r),[l,d]=YA(!1),c=qA(),f=qA();cZ(()=>s(r),[r]);let u=async()=>{if(n.trim()===r){n!==r&&s(r);return}d(!0),await t(e,n),d(!1)},p=zk[e];return XA(cy,{children:[pn(fZ,{label:i(p),htmlFor:c,icon:pn(VA,{platform:e,iconStyle:"outline",size:18}),children:pn("input",{id:c,type:"text",inputMode:"url",value:n,placeholder:pZ[e],onChange:h=>s(h.target.value),onBlur:()=>{u()},onKeyDown:h=>{h.key==="Enter"&&h.currentTarget.blur(),h.key==="Escape"&&(s(r),h.currentTarget.blur())},"aria-invalid":a?!0:void 0,"aria-describedby":a?f:void 0,"aria-busy":l||void 0,autoComplete:"off",spellCheck:!1})}),a&&pn("p",{id:f,className:"sf-note sf-note--error",role:"alert",children:a})]})}function ZA({unavailable:e}){let{canSave:o}=Pi();return!o&&e?pn(cy,{children:e}):XA(cy,{children:[pn("p",{className:"es-field-hint",children:i("Paste a link to each profile. A platform left empty shows nothing on the site.")}),Pc.map(t=>pn(uZ,{platform:t},t))]})}import{jsx as gn,Fragment as Iee,jsxs as gee}from"react/jsx-runtime";import{useId as bee,useMemo as yee}from"react";import{useEasel as See}from"efficient-easel/easel";import{SettingsField as wee,SettingsSwitch as Cee}from"efficient-easel/panel";import{EyeIcon as vee}from"efficient-easel/icons";import{fieldShownInView as kee}from"efficient-easel/fields";import{usePreviewDevice as Tee}from"efficient-easel/draw/client";import{jsx as mn,Fragment as uJ,jsxs as mJ}from"react/jsx-runtime";import{createContext as hJ,useContext as xJ,useLayoutEffect as vR,useMemo as lu,useRef as kR,useState as gy}from"react";import{useEasel as TR,useSelectedFields as IJ}from"efficient-easel/easel";import{fieldShownInView as gJ,Inspector as bJ,planFields as by}from"efficient-easel/fields";function JA({allTabs:e,remembered:o,inherited:t,buckets:r,hasText:a}){return o&&(e||r.includes(o))?o:t&&r.includes(t)?t:a?"Design":r[0]??"Design"}import{group as eJ}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as oJ,deviceMetaOf as uR}from"efficient-easel/screen/lib/document/device-fields";import{jsx as Co}from"react/jsx-runtime";import{DirectionDownIcon as yZ,DirectionIcon as SZ,DirectionLeftIcon as wZ,DirectionRightIcon as CZ,DirectionUpIcon as vZ,EntranceBounceIcon as kZ,EntranceFadeIcon as TZ,EntranceFlipIcon as PZ,EntranceGlideIcon as EZ,EntranceRevealIcon as OZ,EntranceRiseIcon as _Z,EntranceScaleIcon as AZ,EntranceSpinIcon as RZ,NoSymbolIcon as LZ}from"efficient-easel/icons";import{NoControlMark as FZ,noControlField as BZ}from"efficient-easel/screen/lib/document/panel-no-control-mark";import{customize as DZ,group as NZ}from"efficient-easel/screen/lib/document/box-fields";import{ENTRANCE_FROM as MZ,ENTRANCE_FROM_DEFAULT as sR,ENTRANCE_KINDS as lR,ENTRANCE_KINDS_WITH_FROM as HZ,entranceAttrs as WZ,playEntrance as UZ,readEntrance as zZ}from"efficient-shell/format";import{jsx as uy}from"react/jsx-runtime";import{ClockIcon as IZ,DurationIcon as gZ}from"efficient-easel/icons";import{MOTION_TIMING as rR}from"efficient-shell/format";import{useSelectedHost as bZ}from"efficient-easel/easel";import{MOTION_EASING as mZ,MOTION_TIMING as QA,motionSeconds as eR}from"efficient-shell/format";var fy="none",Qp=[{label:"None",value:"none"},{label:"Marquee",value:"scroll"}];function BAe(e){return io(Qp,fy,e)}var eu="_gLoop",Di={field:"loop",is:"scroll"},Ni="left",py=[{label:"Left",value:"left",cell:"left"},{label:"Right",value:"right",cell:"right"},{label:"Up",value:"up",cell:"top"},{label:"Down",value:"down",cell:"bottom"}],hZ={left:"storefront-ticker",right:"storefront-ticker-right",up:"storefront-ticker-up",down:"storefront-ticker-down"};function oR(e){return io(py,Ni,e)}function DAe(e){return e==="up"||e==="down"}function ou(e){return eR("loop","duration",e.loopDuration!=null?e.loopDuration:e.speed)}var NAe=QA.loop.duration.default,xZ=QA.loop.delay.default;function tR(e){return eR("loop","delay",e.loopDelay)}function MAe(e,o,t=xZ){return`${hZ[e]} ${o}s ${mZ.loop}${t?` ${t}s`:""} infinite`}function zs(e){let{min:o,max:t,step:r,default:a}=rR[e].duration;return Oo("Duration",uy(gZ,{}),o,t,r,a,"s")}function $s(e){let{min:o,max:t,step:r,default:a}=rR[e].delay;return Oo("Delay",uy(IZ,{}),o,t,r,a,"s")}function Gs(e,o){let t=e.render,r=a=>{let n=bZ();return t({...a,value:o(a.value,n?.values)})};return{...e,render:a=>uy(r,{...a})}}function tu({readsSpeed:e}){return Gs(zs("loop"),(o,t)=>ou({loopDuration:o,speed:e?t?.speed:void 0}))}function ru(){return Gs($s("loop"),e=>tR({loopDelay:e}))}var aR="_gEntrance";var $Z={none:"None",fade:"Fade",rise:"Rise",scale:"Scale",glide:"Glide",bounce:"Bounce",flip:"Flip",reveal:"Reveal",spin:"Spin"},GZ={top:"Top",bottom:"Bottom",left:"Left",right:"Right"},jZ={top:()=>Co(yZ,{}),bottom:()=>Co(vZ,{}),left:()=>Co(CZ,{}),right:()=>Co(wZ,{})},iR="Entrance",hy=lR.filter(e=>e!=="none"),dR=e=>({any:[{field:tt.kind,in:e},{all:[{field:tt.kind,set:!1},{field:_l,in:e}]}]}),nR=(e,o)=>kl(qo.slice(0,qo.indexOf(e)+1).reverse().map(t=>we(tt.kind,t)),t=>({field:t,set:!0}),t=>t===tt.kind?dR(o):{field:t,in:o}),KZ={any:[dR(hy),...qo.slice(1).map(e=>({field:we(tt.kind,e),in:hy}))]},VZ=qo.flatMap(e=>[[[we(tt.from,e)],nR(e,HZ)],[[we(tt.duration,e),we(tt.delay,e)],nR(e,hy)]]),qZ={none:()=>Co(LZ,{}),fade:()=>Co(TZ,{}),rise:()=>Co(_Z,{}),scale:()=>Co(AZ,{}),glide:()=>Co(EZ,{}),bounce:()=>Co(kZ,{}),flip:()=>Co(PZ,{}),reveal:()=>Co(OZ,{}),spin:()=>Co(RZ,{})},cR="data-entrance-tile";function YZ({kind:e}){let{attrs:o}=WZ(zZ(e,sR));return Co("span",{className:"sf-entrance-stage",[cR]:e,children:Co("i",{...o,children:qZ[e]()})})}var XZ=(e,o)=>{let t=e.querySelector(`[${cR}="${o}"] > i`);t&&UZ(t)},ZZ="Effect",JZ=()=>pf(tt.kind,{label:iR,tileWord:ZZ,values:lR,fallback:"none",word:e=>$Z[e],picture:e=>Co(YZ,{kind:e}),read:(e,o)=>jh(e,o).kind,preview:XZ}),my=(e,o)=>ff(tt[e],o,(t,r)=>jh(t,r)[e]),QZ=MZ.map(e=>({label:GZ[e],value:e,picture:jZ[e]()}));function jt(){let e={[aR]:NZ(iR,{dot:KZ}),...JZ(),[_l]:BZ({type:"custom",render:()=>Co(FZ,{})},"always"),_cEntrance:DZ(),...my("from",Cs("From",Co(SZ,{}),QZ,sR)),...my("duration",zs("entrance")),...my("delay",$s("entrance"))};return _a(e,VZ)}import{DESIGN_GROUPS as xy,SETTINGS_BUCKETS as tJ}from"efficient-easel/panel";import{BUCKET_KEY as bt,DESIGN_GROUP_KEY as au}from"efficient-easel/screen/lib/document/field-buckets";var Mi=tJ;var rJ="Editor only \u2014 not shown live",Iy={"Archive link":"Content",Article:"Content",Blocks:"Content","Blog posts":"Content","Browser mock":"Content",Button:"Content","Call to action":"Content","Car prompt":"Content","Card link":"Content","Card list":"Content",Cards:"Content","Claims bars":"Content","Contact info":"Content",Content:"Content",Display:"Content","Content source":"Content",Contents:"Content",Filters:"Content","Show on a card":"Content",Footnote:"Content",Form:"Content",Founders:"Content","Gallery A":"Content","Gallery B":"Content","Gallery link":"Content",Header:"Content","Header link":"Content","Image caption":"Content","In this issue":"Content",Items:"Content","Kanban columns":"Content",Lead:"Content","Left panel":"Content",Link:"Content",Links:"Content",List:"Content","Message form":"Content",Metadata:"Content",Milestones:"Content","Mockup card":"Content","Newsletter panel":"Content",Offices:"Content",Options:"Content","Others gallery":"Content","Overlay button":"Content",Product:"Content","Product page":"Content",Products:"Content","Pull quote":"Content",Questions:"Content","Recent issues":"Content","Recent posts":"Content",Reviews:"Content","Right panel \xB7 actions":"Content","Right panel \xB7 choices":"Content","Right panel \xB7 form":"Content","Routing groups":"Content",Rows:"Content",Section:"Content","Section header":"Content",Sections:"Content","Signup form":"Content",Source:"Content","Source product":"Content","Stat & note":"Content",Stats:"Content","Submit button":"Content","Success state":"Content",Wheel:"Content",Terminal:"Content",Text:"Content","Text column":"Content","Timeline entries":"Content","Top row":"Content",Total:"Content","Trailing note":"Content","\u201COther\u201D reason":"Content","Background images":"Design",Gallery:"Content",Image:"Content","Image column":"Content",Images:"Content",Logo:"Content",Map:"Content",Media:"Content","Background image":"Design",Color:"Design","Image tint":"Design",Style:"Design",Shape:"Design",Shadow:"Design",Texture:"Design",Overlay:"Design","Text style":"Design",Entrance:"Animation",Hover:"Animation",Loop:"Animation",Scroll:"Animation",Anchor:"Anchor",Arrangement:"Layout","Auto-slide":"Layout",Bar:"Layout","Cell size":"Size",Behavior:"Layout",Schedule:"Layout",Controls:"Layout",Diagram:"Layout",[rJ]:"Layout","Filters shown":"Layout","Slide picker":"Layout",Arrows:"Layout","On a phone":"Layout",Placement:"Position",Nudge:"Position","Stick to top":"Position","Image gallery":"Layout",Grid:"Layout",Layout:"Layout",Padding:"Layout",Price:"Layout",Preview:"Layout",Setup:"Layout","Show / hide elements":"Layout","Show in the buy box":"Layout",Visibility:"Layout",Width:"Size",Size:"Size",Height:"Size"},mR={"AlloyWheelsListing._gCards":"Design"},hR={"Text._gSpacing":"Size","Heading._gSpacing":"Size"};function fR(e,o,t){let r=`${e}.${o}`;return K(hR,r)??K(mR,r)??K(Iy,t)}function aJ(e){return e==="Animation"?[bt.Animation]:[bt.Design,au[e]]}function nu(...e){let o=[];for(let t of e)for(let r of Object.values(t)){let a=uR(r),n=ia(a?a.inner:r),s=n?K(Iy,n.label):void 0;if(s)for(let l of aJ(s))o.includes(l)||o.push(l)}return o}var xRe=[...nu(Wf({tablet:!0,siteSide:!0}),ep("full"),op(),rp(),wg()),...Object.keys(Wf({tablet:!0,siteSide:!0})),...Object.keys(ep("full")),...Object.keys(op()),...Object.keys(rp()),...Object.keys(wg())],IRe=[...nu(Zf()),...Object.keys(Zf())],gRe=[...nu(Qf()),...Object.keys(Qf())],bRe=[...nu(jt()),...Object.keys(jt())],yRe=Object.keys(VO()),SRe=Object.keys(qO()),nJ={"ImageBlock._gStyle":"duplicated the Style bucket header above it (2026-09-04)","ButtonBlock._gStyle":"duplicated the Style bucket header above it (2026-09-04)","HeroGroup._gContent":"duplicated the Content bucket header above it (2026-09-04)","HeroGroup._gLayout":"duplicated the Layout bucket header above it (2026-09-04)","Footer._gLayout":"duplicated the Layout bucket header above it (2026-09-04)","FooterLogo._gContent":"duplicated the Content bucket header above it (2026-09-04)","FooterLogo._gStyle":"duplicated the Style bucket header above it (2026-09-04)","FooterMenu._gContent":"duplicated the Content bucket header above it (2026-09-04)","FooterMenu._gStyle":"duplicated the Style bucket header above it (2026-09-04)","FooterGroup._gLayout":"duplicated the Layout bucket header above it (2026-09-04)","FooterText._gContent":"duplicated the Content bucket header above it (2026-09-04)","FooterText._gStyle":"duplicated the Style bucket header above it (2026-09-04)","FooterSocial._gStyle":"duplicated the Style bucket header above it (born tabbed, 2026-09-17)","FooterSocial._gLayout":"duplicated the Layout bucket header above it (born tabbed, 2026-09-17)","MenuBlock._gContent":"duplicated the Content bucket header above it (born tabbed, H.1)","MenuBlock._gStyle":"duplicated the Style bucket header above it (born tabbed, H.1)","SocialLogosBlock._gStyle":"duplicated the Style bucket header above it (born tabbed, H.1)","SocialLogosBlock._gLayout":"duplicated the Layout bucket header above it (born tabbed, H.1)","SearchBlock._gStyle":"duplicated the Style bucket header above it (born tabbed, H.2)","CartBlock._gStyle":"duplicated the Style bucket header above it (born tabbed, H.2)","CountrySwitchBlock._gStyle":"duplicated the Style bucket header above it (born tabbed with its Show as, 2026-10-17)","Split._gContent":"duplicated the Content bucket header above it (2026-09-04)","Gallery._gVehicleContent":"duplicated the Content bucket header above it (2026-09-04)","Gallery._gWheelContent":"duplicated the Content bucket header above it (2026-09-04)","Gallery._gOthersContent":"duplicated the Content bucket header above it (2026-09-04)","Subscribe._gHeadCopy":"duplicated the Content bucket header above it (2026-09-04)","Subscribe._gLeftCopy":"duplicated the Content bucket header above it (2026-09-04)","Subscribe._gRightCopy":"duplicated the Content bucket header above it (2026-09-04)","CollectionCard._gContent":"duplicated the Content bucket header above it (A Card Sets Its Own Corners)","HeroSlide._gContent":"duplicated the Content bucket header above it (Hero Slide Tabs And Theme)","KeyFeatures._gContent":"duplicated the Content bucket header above it (66049)","KeyFeatures._gStyle":"duplicated the Style bucket header above it (66049)","ParagraphsA._gContent":"duplicated the Content bucket header above it (66049)","Chart._gContent":"duplicated the Content bucket header above it (66049)","Chart._gStyle":"duplicated the Style bucket header above it (66049)","Logos._gContent":"duplicated the Content bucket header above it (66049)","Logos._gStyle":"duplicated the Style bucket header above it (66049)","Mockup._gContent":"duplicated the Content bucket header above it (66049)","Mockup._gStyle":"duplicated the Style bucket header above it (66049)","Stats._gContent":"duplicated the Content bucket header above it (66049)","Stats._gStyle":"duplicated the Style bucket header above it (66049)","StatsParagraph._gContent":"duplicated the Content bucket header above it (66049)","StatsParagraph._gStyle":"duplicated the Style bucket header above it (66049)","Testimonials._gContent":"duplicated the Content bucket header above it (66049)","Testimonials._gStyle":"duplicated the Style bucket header above it (66049)","AppointmentBooking._gContent":"duplicated the Content bucket header above it (66050)","BookingBox._gContent":"duplicated the Content bucket header above it ([SPLIT] Booking Form Into Three Boxes) \u2014 the same fault its own section retired in 66050, one level down","FAQ._gContent":"duplicated the Content bucket header above it (66050, family sweep)","FAQ._gLayout":"duplicated the Layout bucket header above it (66050, family sweep)","Form._gContent":"duplicated the Content bucket header above it (66050)","ReviewForm._gContent":"duplicated the Content bucket header above it (66050)","SubmitBuild._gContent":"duplicated the Content bucket header above it (66050)","SubmitBox._gContent":"duplicated the Content bucket header above it ([SPLIT] SubmitBuild Keeps Its Two Columns) \u2014 the same fault its own section retired in 66050, one level down","CheckoutCTA._gContent":"duplicated the Content bucket header above it (66051)","CheckoutCTA._gLayout":"duplicated the Layout bucket header above it (66051)","DeliveryOptions._gContent":"duplicated the Content bucket header above it (66051)","DeliveryOptions._gLayout":"duplicated the Layout bucket header above it (66051)","OrderSummary._gContent":"duplicated the Content bucket header above it (66051)","OrderSummary._gLayout":"duplicated the Layout bucket header above it (66051)","PaymentBadges._gContent":"duplicated the Content bucket header above it (66051)","PaymentBadges._gLayout":"duplicated the Layout bucket header above it (66051)","Collections._gContent":"duplicated the Content bucket header above it (66052)","Collections._gLayout":"duplicated the Layout bucket header above it (66052)","DocMasthead._gContent":"duplicated the Content bucket header above it (66053)","Events._gContent":"duplicated the Content bucket header above it (66054)","Events._gLayout":"duplicated the Layout bucket header above it (66054)","FeaturedCover._gContent":"duplicated the Content bucket header above it (66054)","Series._gStyle":"duplicated the Style bucket header above it (66054)","Flex._gContent":"duplicated the Content bucket header above it (66055)","Flex._gLayout":"duplicated the Layout bucket header above it (66055)","SectionHeader._gContent":"duplicated the Content bucket header above it (66055)","Breadcrumb._gContent":"duplicated the Content bucket header above it (66056)","CategoryBar._gStyle":"duplicated the Style bucket header above it (66056)","Hero._gContent":"duplicated the Content bucket header above it (66056)","Hero._gStyle":"duplicated the Style bucket header above it (66056)","HeroSingle._gStyle":"duplicated the Style bucket header above it (66056)","IntroBleed._gContent":"duplicated the Content bucket header above it (66056)","IntroBleed._gLayout":"duplicated the Layout bucket header above it (66056)","BundleOffer._gLayout":"duplicated the Layout bucket header above it (66059)","ProcessSteps._gContent":"duplicated the Content bucket header above it (66059)","Banner._gContent":"duplicated the Content bucket header above it (66060.1)","Banner._gLayout":"duplicated the Layout bucket header above it, and governed no controls (66060.1)","Manifesto._gContent":"duplicated the Content bucket header above it (66060.1)","SubscribeBlogs._gHeadCopy":"duplicated the Content bucket header above it (66060.1)","SubscribeBlogs._gLeftCopy":"duplicated the Content bucket header above it (66060.1)","SubscribeBlogs._gRightCopy":"duplicated the Content bucket header above it (66060.1)","Ticker._gContent":"duplicated the Content bucket header above it (66060.1)","Ticker._gStyle":"duplicated the Style bucket header above it (66060.1)","Timeline._gContent":"duplicated the Content bucket header above it (66060.1)","TitleWithButtons._gContent":"duplicated the Content bucket header above it (66060.1)","TitleWithButtons._gStyle":"duplicated the Style bucket header above it (66060.1)","Cards._gContent":"duplicated the Content bucket header above it (66218)","Cards._gStyle":"duplicated the Style bucket header above it (66218)","Prose._gContent":"duplicated the Content bucket header above it (66218)","Reviews._gContent":"duplicated the Content bucket header above it (66218)","Reviews._gStyle":"duplicated the Style bucket header above it (66218)"},xR={Content:["Content"],Size:["Size"],Design:["Design","Style"],Layout:["Layout"],Position:["Position"],Anchor:["Anchor"],Animation:["Animation"]},IR={_gAnchor:"repeated the Anchor group heading above it (two tabs, 11.0.0)"};{let e={...Wf({tablet:!0,siteSide:!0}),...ep("full"),...op(),...rp(),...Zf(),...Qf(),...jt()};for(let o of Object.keys(IR)){let t=ia(e[o]),r=t?K(Iy,t.label):void 0;if(!t||t.level!==2||!r||!xR[r].includes(t.label))throw new Error(`INJECTED_RETIRED (lib/document/field-groups.ts) lists "${o}", but no uniform builder makes a level-2 heading by that key whose label repeats its place's word. The heading was renamed, moved or removed and the row is stale \u2014 a list that quietly matches nothing is worse than no list.`)}}var sJ=new Set(["_sContent","_sStyle","_sLayout","_sMedia"]),lJ=new Map([[bt.Design,"Content"],[bt.Animation,"Animation"],...xy.map(e=>[au[e],e])]);function iJ(e){let o=`${e}.`;return Object.keys(nJ).filter(t=>t.startsWith(o)).map(t=>t.slice(o.length))}function dJ(e,o){let t=uR(e),r=eJ(o);return t?oJ(t.tier,r):r}function cJ(e,o){let t=ia(o);return t?e==="Content"||e==="Animation"?AO(o,t.label):RO(o):o}function pR(e){return e==="Design"?xy:["Animation"]}function gR(e,o){let t=[],r=new Set(iJ(o)),a=new Set,n=!1,s=null;for(let[p,h]of Object.entries(e)){let I=ia(h);if(sJ.has(p))throw new Error(`${o}.${p}: that key was a tab header until efficient-web-builder 11.0.0, when the panel moved to two tabs (Design \xB7 Animation). Its tab is gone, so the key may not come back. Give the heading a key of the section's own (\`_g\u2026\`), or open a Design group with its own key (\`_dDesign: section("Design")\`, \`_dLayout: section("Layout")\`).`);let g=lJ.get(p);if(g!==void 0){if(I?.level!==1)throw new Error(`${o}.${p}: that key is reserved for the ${g} heading of the settings panel, but this field is ${I?`a level-${I.level} "${I.label}" header`:"not a header"}, so it cannot serve as one. Rename the section's own field.`);(p===bt.Design||p===bt.Animation)&&(n=!0),t.push(s={place:g,entries:[],adopted:!0});continue}if(!I){s||t.push(s={place:"Content",entries:[]}),s.entries.push([p,h]);continue}if(r.has(p)||$e(IR,p)){let w=fR(o,p,I.label);if(I.level!==2||!w||!xR[w].includes(I.label))throw new Error(`${o}.${p}: ${r.has(p)?"RETIRED":"INJECTED_RETIRED"} (lib/document/field-groups.ts) lists this sub-heading as one whose name repeats the place it sits in, but it is a level-${I.level} "${I.label}" header in the ${w??"(unclassified)"} place. Only a level-2 header whose label is one of its place's words (PLACE_WORDS) may be retired \u2014 anything else is a heading a merchant reads for its own sake. Fix the row or drop it.`);r.has(p)&&a.add(p),t.push(s={place:w,entries:[]});continue}let C=fR(o,p,I.label);if(!C)throw new Error(`${o}.${p}: the inspector group "${I.label}" is not classified in LABEL_GROUP (lib/document/field-groups.ts), so there is no way to say which of ${[...xy,"Animation"].join(" / ")} its controls belong under. Classify it \u2014 an unclassified group silently lands wherever it was declared, which is the whole bug.`);t.push(s={place:C,entries:[[p,I.level===2?h:dJ(h,I.label)]]})}let l=new Set(Object.entries(e).filter(([,p])=>ia(p)).map(([p])=>p));for(let[p,h]of[["BLOCK_KEY_GROUP",hR],["KEY_GROUP",mR]]){let I=Object.keys(h).filter(g=>g.startsWith(`${o}.`)).filter(g=>!l.has(g.slice(o.length+1)));if(I.length)throw new Error(`${o}: ${p} (lib/document/field-groups.ts) lists ${JSON.stringify(I)}, but no fold header by that key is in this section's panel. Either the heading was renamed or removed and the row is stale, or the row names the wrong key \u2014 an override that quietly matches nothing is worse than no override.`)}let d=n?[]:[...r].filter(p=>!a.has(p));if(d.length)throw new Error(`${o}: RETIRED (lib/document/field-groups.ts) lists ${JSON.stringify(d)}, but this section has no such fold header${d.length>1?"s":""}. Either the heading was renamed or removed and the row is stale, or the row names the wrong section \u2014 a list that quietly matches nothing is worse than no list.`);let c=new Set(t.filter(p=>p.entries.length>0).map(p=>p.place)),f=Mi.filter(p=>pR(p).some(h=>c.has(h))),u={};for(let p of f){u[bt[p]]=Xf(p,p===f[0]?f:null);for(let h of pR(p)){if(!c.has(h))continue;let I=t.filter(C=>C.place===h),g=I.findIndex(C=>C.adopted);g>0&&I.unshift(...I.splice(g,1)),p==="Design"&&(u[au[h]]=gg(h));for(let C of I)for(let[w,T]of C.entries)u[w]=cJ(h,T)}}return u}function wRe(e){return bt.Design in e?e:{[bt.Design]:Xf("Design",null),[au.Content]:gg("Content"),...e}}function CRe(e){return Mi.some(o=>bt[o]in e)}function vRe(e){let o=Mi.filter(r=>bt[r]in e);if(o.length===0)return e;let t={...e};for(let r of o)t[bt[r]]=Xf(r,r===o[0]?o:null);return t}import{jsx as fJ}from"react/jsx-runtime";import{EmptyState as pJ}from"efficient-shell/ui";function un(){return fJ(pJ,{variant:"none",icon:!1,message:i("These settings apply to every view.")})}import{usePreviewDevice as yJ}from"efficient-easel/draw/client";import{deviceField as SJ}from"efficient-easel/screen/lib/document/device-fields";var su=" text",bR="Text";function Hi(e){let o=e.rows.filter(t=>t.shown);return o.length===0||o.length===1&&o[0].labelled}function yR(e){return e.filter(Hi).map(o=>o.key)}function SR(e,o){let t=e.filter(a=>!Hi(a));if(t.length!==1)return null;let r=e.filter(Hi).flatMap(a=>a.rows);return[...o,...r].some(a=>a.shown)?null:t[0].rows.filter(a=>a.shown).length>1?t[0].key:null}function wR(e,o){let t=null;for(let r of o){let a=e[r];!a||a.marker!==!0||typeof a.fold!="string"||(t??={...e},t[r]={...a,fold:!1})}return t??e}function CR(e,o){if(e.size!==o.size)return!1;for(let t of e)if(!o.has(t))return!1;return!0}var yy=new Map,iu=new Set;function PR(e,o){let t=new Map;for(let a of e.querySelectorAll(".es-insp-row[data-field]"))t.set(a.getAttribute("data-field")??"",a);let r=[];for(let[a,n]of o)r.push({key:a,rows:n.map(s=>{let l=t.get(s),d=!!l&&[...l.children].some(f=>!f.hidden),c=l?.querySelector(".es-field-label, .es-list-label")?.textContent?.trim();return{shown:d,labelled:d&&!!c}})});return r}var wJ=Object.fromEntries(Mi.map(e=>{let o=_O[e];return[e,mn(o,{},e)]})),ER=hJ(null),CJ={_partBody:SJ("each",{type:"custom",render:()=>mn(vJ,{})})};function vJ(){return mn(uJ,{children:xJ(ER)})}function Kt({entries:e,entryCount:o=0,part:t=null,omit:r,motion:a,body:n,itemWord:s}){let{id:l,fields:d,values:c,readOnly:f,onChange:u}=IJ(),p=lu(()=>a?{...c,...a.values}:c,[c,a?.values]),h=(ie,Me)=>a?.keys.has(ie)?a.onChange(ie,Me):u(ie,Me),I=yJ(),{appState:g,config:C}=TR(ie=>ie),w=YT(I,C,g.data.content??[],g.ui.itemSelector),T=n===void 0?BA(d,t):CJ,y=lu(()=>{let ie=r?.length?Object.fromEntries(Object.entries(T).filter(([Me])=>!r.includes(Me))):T;return a?{...ie,...a.fields}:ie},[T,r,a?.fields]),b=vx(y,p,w),[P,H]=gy(()=>new Set(iu)),[E,W]=gy(()=>new Set),O=kR(null),{bandRows:D,designBands:v,looseRows:_}=lu(()=>{let ie=new Map,Me=new Set,Ve=[];for(let J of by(b).rows){if(!J.fold){J.bucket==="Design"&&Ve.push(J.name);continue}let Ae=ie.get(J.fold.key)??[];Ae.push(J.name),ie.set(J.fold.key,Ae),J.bucket==="Design"&&Me.add(J.fold.key)}return{bandRows:ie,designBands:Me,looseRows:new Map([["",Ve]])}},[b]),A=gJ({},I),F={key:su,rows:Array.from({length:A?o:0},()=>({shown:!0,labelled:!0}))};vR(()=>{let ie=O.current?.parentElement;if(!ie)return;let Me=PR(ie,D),Ve=new Set(yR(Me)),J=SR([F,...Me.filter(Ae=>v.has(Ae.key))],PR(ie,_)[0].rows);J&&Ve.add(J),W(Ae=>CR(Ae,Ve)?Ae:Ve)});let z=lu(()=>wR(b,E),[b,E]),$=!Hi(F)&&!E.has(su)?{key:su,title:bR}:void 0,X=TR(ie=>ie.selectedItem)!==null,ee=a?.part??t??"",Fe=`${l}:${ee}:${String(I)}`,[Oe,ze]=gy(()=>({tab:yy.get(Fe)})),Ke=`${l}:${ee}`,be=kR(null),Te={...w,node:p},_e=by(b,{values:p,context:Te}).buckets,Ne=JA({allTabs:X,remembered:yy.get(Fe),inherited:be.current?.panel===Ke?be.current.tab:Oe.tab,buckets:_e,hasText:A&&o>0}),ao=!A&&!_e.includes(Ne)&&(by(vx(y,p,{...w,device:"desktop"}),{values:p,context:{...Te,device:"desktop"}}).buckets.includes(Ne)||Ne==="Design"&&o>0);vR(()=>{be.current={panel:Ke,tab:Ne}});let yo=Ne==="Design";return mn(ER.Provider,{value:n??null,children:mn(Sg.Provider,{value:a?p:null,children:mJ(bJ,{fields:z,values:p,onChange:h,readOnly:f,allTabs:X,showWhenContext:Te,context:{itemWord:s},tab:Ne,onTab:ie=>{yy.set(Fe,ie),ze({tab:ie})},tabIcons:wJ,idPrefix:l,ariaLabel:i("Section settings"),lead:yo?e:null,leadFold:$,closedFolds:P,onFold:(ie,Me)=>{Me?iu.delete(ie):iu.add(ie),H(new Set(iu))},children:[mn("span",{ref:O,hidden:!0}),ao&&mn(un,{})]})})})}import{useMemo as dee}from"react";import{useEasel as cee}from"efficient-easel/easel";import{useSectionOps as fee}from"efficient-easel/screen/lib/document/use-section-ops";import{jsx as yt}from"react/jsx-runtime";import{EntranceRevealIcon as AJ,NoSymbolIcon as RJ,PercentIcon as LR,ScrollFadeInIcon as LJ,ScrollFadeOutIcon as FJ,ScrollMoveDownIcon as BJ,ScrollMoveUpIcon as DJ,ScrollParallaxIcon as NJ,ScrollZoomInIcon as MJ,ScrollZoomOutIcon as HJ,ZoomInIcon as WJ}from"efficient-easel/icons";import{customize as UJ,group as zJ}from"efficient-easel/screen/lib/document/box-fields";import{SCROLL_EFFECTS as BR,SCROLL_EFFECTS_WITH_ZOOM as $J,SCROLL_END as GJ,SCROLL_START as jJ,SCROLL_ZOOM as KJ}from"efficient-shell/format";import{parseFocal as EJ,formatFocal as OJ,readScroll as _J}from"efficient-shell/format";import{phoneKey as kJ,tabletKey as TJ}from"efficient-easel/screen/lib/content/view-tiers";var PJ=[{block:"HeroSlide",upload:"mediaImage",focus:"imageFocal"},{block:"HeroSingle",upload:"mediaImage",focus:"imageFocal"},{block:"HeroSingle",upload:"mediaImage2",focus:"imageFocal2"},{block:"ImageBlock",upload:"src",focus:"focal"}],OR=e=>[e,TJ(e),kJ(e)],VRe=[...new Set(PJ.flatMap(e=>OR(e.focus)))].sort();function _R(e,o){let[t,r,a]=OR(o).map(n=>typeof e[n]=="string"&&e[n]?e[n]:void 0);return{desktop:t,tablet:r,phone:a}}var Ao={effect:"scroll",zoom:"scrollZoom",start:"scrollStart",end:"scrollEnd"},AR="_gScroll",RR="_cScroll",du=xc(Object.values(Ao));function js(e,o){return _J(Ol(e,Ao.effect,o),Ol(e,Ao.zoom,o),Ol(e,Ao.start,o),Ol(e,Ao.end,o))}function cu(e){let o={desktop:js(e,"desktop"),tablet:js(e,"tablet"),phone:js(e,"phone")};return qo.every(t=>o[t].effect==="none")?null:o}function Sy(e){let o=Ck(e.desktop,e.tablet,e.phone),t=r=>{let a=o[r];if(typeof a!="string")return;let{x:n,y:s}=EJ(a);return OJ(n,s)};return{desktop:t("desktop"),tablet:t("tablet"),phone:t("phone")}}function JRe(e,o){return Sy(_R(e,o))}var DR="Scroll",VJ={none:"None","zoom-in":"Zoom in","zoom-out":"Zoom out","fade-in":"Fade in","fade-out":"Fade out","move-up":"Move up","move-down":"Move down",reveal:"Reveal",parallax:"Parallax"},qJ={none:()=>yt(RJ,{}),"zoom-in":()=>yt(MJ,{}),"zoom-out":()=>yt(HJ,{}),"fade-in":()=>yt(LJ,{}),"fade-out":()=>yt(FJ,{}),"move-up":()=>yt(DJ,{}),"move-down":()=>yt(BJ,{}),reveal:()=>yt(AJ,{}),parallax:()=>yt(NJ,{})},YJ="Effect",NR=BR.filter(e=>e!=="none"),FR=(e,o)=>kl(qo.slice(0,qo.indexOf(e)+1).reverse().map(t=>we(Ao.effect,t)),t=>({field:t,set:!0}),t=>({field:t,in:o})),XJ={any:qo.map(e=>({field:we(Ao.effect,e),in:NR}))},ZJ=qo.flatMap(e=>[[[we(Ao.zoom,e)],FR(e,$J)],[[we(Ao.start,e),we(Ao.end,e)],FR(e,NR)]]),JJ=()=>pf(Ao.effect,{label:DR,tileWord:YJ,values:BR,fallback:"none",word:e=>VJ[e],picture:e=>qJ[e](),read:(e,o)=>js(e,o).effect}),wy=(e,o,t,r,a)=>ff(e,Oo(t,r,a.min,a.max,a.step,a.default,"%"),(n,s)=>js(n,s)[o]);function hn(){let e={[AR]:zJ(DR,{dot:XJ}),...JJ(),[RR]:UJ(),...wy(Ao.zoom,"zoom","Zoom",yt(WJ,{}),KJ),...wy(Ao.start,"start","Start",yt(LR,{}),jJ),...wy(Ao.end,"end","End",yt(LR,{}),GJ)};return _a(e,ZJ)}import{jsx as jo}from"react/jsx-runtime";import{AccentIcon as QJ,ContrastIcon as eQ,EyeIcon as oQ,ExpandIcon as tQ,FinishIcon as rQ,ImagesIcon as aQ,NoSymbolIcon as HR,HoverLiftIcon as nQ,HoverNextImageIcon as sQ,HoverRotateIcon as lQ,HoverZoomIcon as WR,OpacityIcon as iQ}from"efficient-easel/icons";import{customize as dQ,describedAs as UR,group as cQ}from"efficient-easel/screen/lib/document/box-fields";import{effectTiles as zR}from"efficient-easel/screen/lib/document/effect-tiles";import{deviceField as Ro}from"efficient-easel/screen/lib/document/device-fields";import{NoControlMark as fQ,noControlField as pQ}from"efficient-easel/screen/lib/document/panel-no-control-mark";var fu=e=>Ro("desktop",cQ("Hover",{dot:e})),$R=()=>Ro("desktop",dQ()),uQ="What this does when a shopper points at it, or taps it on a phone.",mQ="What this picture does when a shopper points at it. Black and white shows it in grey until then. A phone shows its colour.",hQ="What this picture does when a shopper points at the card. Show next image covers the card or the picture with this product's photos, with arrows; a phone shows the picture as it is. Black and white shows it in grey until then.",xQ="What this picture does when a shopper points at the card. Show next image covers the picture with the card's photos, with arrows; a phone shows the picture as it is. Black and white shows it in grey until then.",IQ="When this shows. On card hover shows it while a shopper points at the card. A phone always shows it.",gQ="What each card does when a shopper points at it. Show next image covers the card with this product's photos, with arrows; a phone shows the card as it is. Rotate turns the wheel picture.",bQ="Which of the product's pictures the card shows.",yQ="Same finish shows the photos of the finish the card shows, else the first group.",SQ="Whole card hides the words under the photo. Picture keeps the words and swatches in view.",wQ={none:()=>jo(HR,{}),nextImage:()=>jo(sQ,{}),rotate:()=>jo(lQ,{}),zoom:()=>jo(WR,{}),lift:()=>jo(nQ,{}),mono:()=>jo(eQ,{})};function Cy(e,o){let t=zR({label:i("Hover effect"),options:e.map(r=>({value:r,label:i(Un[r]),picture:wQ[r]()})),fallback:o});return UR(t,{type:"select",label:"Hover effect",options:e.map(r=>({value:r,label:Un[r]}))})}function GR(){return{[Sr]:fu({field:pt,in:fh.filter(e=>e!=="none")}),[pt]:Ro("desktop",{...Cy(fh,"none"),description:uQ})}}function jR(e){let o=XC(e),t=Qd(),r=ZE(UC);return{[Sr]:fu({any:[o,t]}),[so.kind]:Ro("desktop",{...Gs(Cy(NC,e),(a,n)=>qC(n??{},e)),description:gQ}),...vy(t),[MC]:pQ({type:"custom",render:()=>jo(fQ,{})},"always"),_cHover:$R(),[so.angle]:Ro("desktop",oo(Gs(r,a=>YC(a)),o)),[so.duration]:Ro("desktop",oo(zs("hover"),o)),[so.delay]:Ro("desktop",oo($s("hover"),o))}}function vy(e){let o=st("Type",jo(aQ,{}),zC.map(a=>({value:a,label:$C[a]})),Jd.kind),t=Cs("Group",jo(rQ,{}),GC.map(a=>({value:a,label:jC[a]})),Jd.group),r=Cs("Covers",jo(tQ,{}),KC.map(a=>({value:a,label:VC[a]})),Jd.cover);return{[so.mediaKind]:Ro("desktop",oo({...o,description:bQ},e)),[so.mediaGroup]:Ro("desktop",oo({...t,description:yQ},e)),[so.cover]:Ro("desktop",oo({...r,description:SQ},e))}}function ky(e,o="",t=xh.includes(o)){let r=Ih(e),a=tv(e);return{[Sr]:fu(r),[so.kind]:Ty(ZC,e,mQ),...xh.includes(o)?vy(Qd()):{},_cHover:$R(),...t?KR():{},[so.duration]:Ro("desktop",oo(zs("hover"),a)),[so.delay]:Ro("desktop",oo($s("hover"),a))}}function KR(e=!1){let o=a=>e?a:oo(a,ov()),t=Oo("Zoom",jo(WR,{}),zn.min,zn.max,zn.step,zn.min,zn.unit),r=Oo("Darken on hover",jo(iQ,{}),oa.min,oa.max,oa.step,oa.fallback,oa.unit);return{[uh.zoom]:Ro("desktop",o(t)),[uh.darken]:Ro("desktop",o(r))}}function Ty(e,o,t){let r=Ro("desktop",{...Gs(Cy(e,o),a=>QC({[pt]:a},o,e)),description:t});return Object.assign(r,{[VR]:o})}var VR="sfPictureResting",MR=new WeakMap;function CLe(e,o,t){let r=e[so.kind],a=r?.[VR];if(!r||!a)return e;let n=o.props?.[pt]==="nextImage",s=n?null:dc(t.appState,o.props?.id);if(!n&&!HC.includes(String(s?.type??"")))return e;let l=MR.get(e);return l||(l={...e,[so.kind]:Ty(ph,a,hQ)},MR.set(e,l)),l}var CQ="What this card does when a shopper points at it, or taps it on a phone. Highlight fills it with the surface color and turns its text the main color.",vQ={none:()=>jo(HR,{}),[ih]:()=>jo(QJ,{})},vLe=Ro("desktop",{...UR(zR({label:i("Hover effect"),options:dh.map(e=>({value:e,label:i(ch[e]),picture:vQ[e]()})),fallback:"none"}),{type:"select",label:"Hover effect",options:dh.map(e=>({value:e,label:ch[e]}))}),description:CQ}),kQ=Ro("desktop",{...Cs("Show",jo(oQ,{}),[{value:hh,label:"Always"},{value:mh,label:"On card hover"}],hh),description:IQ});function qR(){let e={any:[Ih("none"),{field:pt,is:ih},{field:Ea,is:mh}]},{[Sr]:o,[so.kind]:t,...r}=ky("none","",!0);return{[Sr]:fu(e),[so.kind]:t,[Ea]:kQ,...vy(Qd()),...r,...KR(!0)}}var kLe=Ty(ph,"none",xQ);import{jsx as Wi}from"react/jsx-runtime";import{isNodeList as OQ}from"efficient-easel/data";import{useEasel as _Q}from"efficient-easel/easel";import{hiddenInView as AQ,hiddenKeyOf as Ey,hidePatch as RQ,slotChildName as LQ,slotChildRowName as FQ}from"efficient-easel/draw";var pu=null;function Py(e){pu=e}function YR(){return!!(pu&&pu.state().lockHolder)}function xn(){return pu!==null}var TQ=new Set(["BookingBox","SubmitBox"]);function PQ(e){return typeof e=="string"&&TQ.has(e)}var EQ=wT(PQ,YR);function uu(e,o){return EQ(e)||hI(o)}var mu=(e,o,t)=>{if(o!=="block"||e.props?.fromProduct!==!0)return t;let r=e.props.product;return!r?.code||typeof r.name!="string"?t:r.name.trim()||t};import{deviceField as BQ}from"efficient-easel/screen/lib/document/device-fields";import{NoControlMark as DQ}from"efficient-easel/screen/lib/document/panel-no-control-mark";var XR="notCardOfTemplate",ZR={not:{context:XR,is:!0}},Oy={any:[tc,ZR]},KLe={[XR]:(e,o)=>{let t=Fh(o.appState,e.props?.id);return t===void 0?void 0:t===null}};function hu(e){let o=e.props?.content;return OQ(o)?o:[]}var Iu=(e,o)=>AQ(e.props??{},o),NQ=(e,o)=>e.props?.[Ey(o)]!==void 0;function JR(e,o=()=>!1,t="desktop"){return hu(e).flatMap(r=>typeof r?.props?.id!="string"?[]:hu(r).length&&!Iu(r,t)?JR(r,o,t):o(r)?[]:[r])}function MQ(e,o,t,r="desktop"){let a=JR(e,t,r).map(l=>({child:l,name:o(l)})),n=new Set(a.map(l=>l.name)),s=new Set;return a.map(({child:l,name:d})=>{let c=d;if(s.has(d)){let f=2;for(;n.has(`${d} ${f}`);)f+=1;c=`${d} ${f}`,n.add(c)}return s.add(d),{id:l.props.id,label:c,shown:!Iu(l,r)}})}function xu(e,o,t){let r=a=>t==="desktop"?Iu(a,t):NQ(a,t);return hu(e).flatMap(a=>r(a)?o(a)?[]:[a,...xu(a,o,t)]:xu(a,o,t))}function HQ(e,o){let t={...e};for(let[r,a]of Object.entries(o))a===void 0||r===Ey("desktop")&&a===!1?delete t[r]:t[r]=a;return Object.keys(t).length===Object.keys(e).length&&Object.keys(t).every(r=>t[r]===e[r])?e:t}function _y(e,o,t){let r=hu(e),a=!1,n=r.map(s=>{if(a)return s;let l=s;if(s?.props?.id===o){let d=HQ(s.props,t(s.props));d!==s.props&&(l={...s,props:d})}else l=_y(s,o,t);return a=l!==s,l});return a?{...e,props:{...e.props,content:n}}:e}function QR(e,o,t,r="desktop"){return _y(e,o,a=>r==="desktop"&&Iu({props:a},r)===!t?{}:RQ(a,r,!t))}function WQ(e,o,t){return t==="desktop"?QR(e,o,!0,t):_y(e,o,()=>({[Ey(t)]:void 0}))}function UQ(e,o,t,r,a,n){return LQ(e).trim()?t(e):Nv({ownerType:o,owner:r,fields:a,slot:n},Zt(e.props))?.label??t(e)}var zQ="This page is read-only.";function $Q({card:e,ownerType:o,owner:t,fields:r,slot:a,labelOf:n,write:s,readOnly:l,view:d="desktop"}){let c=p=>FQ(p,n,yr,void 0,mu),f=p=>uu(p.type,p),u=MQ(e,p=>UQ(p,o,c,t,r,a),f,d);return u.length?Wi(Ts,{parts:u,changed:xu(e,f,d).length>0,shown:p=>u.find(h=>h.id===p)?.shown??!0,disabledReason:l?zQ:void 0,onPress:(p,h)=>s(I=>QR(I,p,h,d)),onReset:()=>s(p=>xu(p,f,d).reduce((h,I)=>WQ(h,String(I.props.id),d),p))}):Wi(DQ,{})}function GQ(){try{let e=_Q(a=>a),o=e.config.components??{},t=e.selectedItem;if(!t)return null;let r=Fh(e.appState,t.props?.id);return{labelOf:a=>o[a]?.label??a,card:t,ownerType:typeof r?.type=="string"?r.type:void 0,owner:r,fields:Uv(e.appState,r),slot:Wv(e.appState,t.props?.id)??void 0}}catch{return null}}function jQ({readOnly:e,view:o}){let t=GQ(),r=ta();return t?Wi($Q,{...t,view:o,readOnly:e,write:a=>{e||r(n=>{let s={...t.card,props:n},l=a(s);return l===s?null:{content:l.props.content}})}}):Wi(Ts,{parts:[],changed:!1,shown:()=>!0,onPress:()=>{},onReset:()=>{}})}function VLe(e){return oo(BQ(e,{type:"custom",render:({readOnly:o})=>Wi(jQ,{readOnly:o,view:e})}),ZR)}import{customize as oee}from"efficient-easel/screen/lib/document/box-fields";import{jsx as Ay}from"react/jsx-runtime";import{DirectionIcon as KQ,LoopMarqueeIcon as VQ,NoSymbolIcon as qQ}from"efficient-easel/icons";import{customize as YQ,describedAs as XQ,group as ZQ}from"efficient-easel/screen/lib/document/box-fields";import{effectTiles as JQ}from"efficient-easel/screen/lib/document/effect-tiles";function Ry(){return jO("Direction",py,Ni,"A marquee cannot run diagonally, so the corners are not answers.",Ay(KQ,{}),GO)}var Ly=e=>ZQ("Loop",e?{dot:e}:void 0),QQ={none:()=>Ay(qQ,{}),scroll:()=>Ay(VQ,{})};function eee(){let e=JQ({label:i("Loop"),options:Qp.map(({value:o,label:t})=>({value:o,label:i(t),picture:QQ[o]()})),fallback:fy});return XQ(e,{type:"select",label:"Loop",options:Qp.map(({value:o,label:t})=>({value:o,label:t}))})}function eL(){return{[eu]:Ly(Di),loop:eee(),_cLoop:YQ(),scrollDirection:oo(Ry(),Di),loopDuration:oo(tu({readsSpeed:!1}),Di),loopDelay:oo(ru(),Di)}}var oL={field:Ea,set:!0};function tee(){let e=qR(),o=[Sr,pt],t=jn(e,Object.keys(e).filter(n=>!o.includes(n)&&n!==Ea),tc),r=jn(t,[Ea],oL),a=jn(r,[pt],Oy);return jn(a,[Sr],{any:[Oy,oL]})}function tL(e,o=""){switch(e){case"section":case"block":return{...jt(),...hn()};case"box":return{...jt(),...hn(),...eL(),...tee()};case"picture":return{...jt(),...hn(),...ky(JC(o),o)};case"textPart":return{...jt(),...hn(),...GR()};case"cards":return{...jt(),...hn(),...jR(WC(o))};case"marquee":return{...jt(),...hn(),[eu]:Ly(),_cLoop:oee(),scrollDirection:Ry(),loopDuration:tu({readsSpeed:!0}),loopDelay:ru()}}}import{ENTRANCE_STATE_ATTR as ree,entranceAttrs as aee,scrollAttrs as nee}from"efficient-shell/format";var aL={},Fy="_partMotion",By=[...Ic,pt,so.duration,so.delay,...du];function CFe(e){return Rs(e,Fy)}function In(e,o){return Pp(e,Fy,o)}var see=new Set([tt.kind,pt,Ao.effect]);function nL(e,o,t,r){let{[t]:a,...n}=In(e,o),s=r==null||r===""||r==="none"&&see.has(t)?n:{...n,[t]:r};return Ep(e,Fy,o,Object.keys(s).length?s:null)}function Dy(e){return{entrance:gc(e),hover:DC(e),scroll:cu(e)}}function sL(e){let o=Dy(e);return o.entrance!==null||o.hover!=="none"||o.scroll!==null}function lL(e,o){let{attrs:t,style:r}=aee(o),a=Object.keys(t).filter(n=>t[n]!==void 0);for(let n of a)e.setAttribute(n,String(t[n]));for(let[n,s]of Object.entries(r))e.style.setProperty(n,String(s));return()=>{for(let n of a)e.removeAttribute(n);for(let n of Object.keys(r))e.style.removeProperty(n);e.removeAttribute(ree)}}function iL(e,o){let{attrs:t,style:r}=nee(o);for(let[a,n]of Object.entries(t))e.setAttribute(a,n);for(let[a,n]of Object.entries(r))e.style.setProperty(a,n);return()=>{for(let a of Object.keys(t))e.removeAttribute(a);for(let a of Object.keys(r))e.style.removeProperty(a)}}var lee=4;function Ny(e){let o;for(let t of e)(!o||t.element.compareDocumentPosition(o.element)&lee)&&(o=t);return o}var iee="data-sf-part-host";function dL(e){let o=e?.ownerDocument.defaultView,t=e;for(;t&&!t.hasAttribute(iee)&&!t.classList.contains(Qn);){let r=o?.getComputedStyle(t).display??"";if(r==="contents")return null;if(r!=="inline")return t;t=t.parentElement}return null}var gu="data-sf-part-lift",rL="sf-part-lift";function cL(e){if(e.getElementById(rL))return;let o=e.createElement("style");o.id=rL,o.textContent=s1(`[${gu}]`).join(`
@@ -337,4 +337,4 @@ ${r}`:o.push({type:"p",text:r})});return o}var Qne=()=>[{label:i("First section"
337
337
  *Highlight line*`},B2=[{label:co.text,href:co.href,variant:"primary"},{label:co.text,href:co.href,variant:"outline"}],VUe={label:"Call-to-Action Heading",defaultProps:{title:"",buttons:[],padTop:140,padBottom:140}};var gw="solid",jse=[{label:"Solid",value:"solid"},{label:"Outlined",value:"outlined"}];function XUe(e){return io(jse,gw,e)}var Kse="sf-secnum-outline",ZUe="font-display text-[length:var(--size-headingMedium,clamp(48px,6vw,96px))] font-medium leading-[0.8] tracking-[-0.02em]",JUe=`@supports (-webkit-text-stroke: 1px currentColor){.${Kse}{color:var(--site-surface-2);-webkit-text-stroke:1px var(--site-line)}}`;var _m="standard",H2=[{label:"Standard",value:"standard"},{label:"Editorial",value:"editorial"},{label:"Simple",value:"simple"},{label:"Statement",value:"statement"},{label:"Natural",value:"natural"},{label:"Essay",value:"essay"}],yw=["numStyle","logoSrc","logoAlt","linkText","linkHref","_gLogo"],bw=[...yw,"description"],D2={standard:["eyebrowLook"],editorial:[...yw,"eyebrowLook"],simple:bw,statement:bw,natural:yw,essay:bw},N2=["gap-5","gap-3"],M2=["text-[length:var(--size-body,16px)]","text-[15px]"];function tze(e){return io(N2,N2[0],e)}function rze(e){return io(M2,M2[0],e)}function aze(e){return io(H2,_m,e)}function nze(e){let o=H2.map(r=>r.value),t=[...new Set(Object.values(D2).flat())];return _a(e,t.map(r=>[[r],Oh("headStyle",o,_m,o.filter(a=>!D2[a].includes(r)))]))}var Mr={num:"01 / Section",title:"Section *title*",description:"Short supporting line",linkText:Ge.viewAll},cze={label:"Section Header",drawsPictures:!0,defaultProps:{headStyle:_m,num:Mr.num,numStyle:gw,title:Mr.title,description:"",logoSrc:"",logoAlt:"",linkText:"",linkHref:""}};var W2={top:72,bottom:72,topPhone:72,bottomPhone:72},Vse={name:"Editorial Text",boxProps:e=>({...Z,direction:"column",gap:28,gapPhone:28,sectionBorder:{top:1},...le(e,W2)}),box:[["topBorder","sectionBorder",e=>e===!1?void 0:{top:1}],...re,...ue(W2)],parts:[Ct("Prose"),{kind:"text",key:"body",props:ne,style:{textStyle:"body-1",...U("body",16),lineHeight:1.7,paragraphSpacing:18}}],drop:{...Q,...se,headPlacement:"needs a row per head placement: an own-box Prose draws no head (its words sit in a Section Header above it), the row always draws the head. 0 of 123 live nodes store it (the live export, 2026-10-24)"}},U2={buttonPaddingTop:20,buttonPaddingBottom:20,buttonPaddingLeft:28,buttonPaddingRight:28},z2=(e,o)=>o?.variant==="primary",$2=(e,o)=>({kind:"list",key:"buttons",name:"Button",flat:!0,when:e,parts:[{kind:"button",key:"label",href:"href",when:z2,variant:"primary",style:{letterSpacing:.3},props:{...vo,...U2,...o}},{kind:"button",key:"label",href:"href",when:(t,r)=>!z2(t,r),variant:"ghost",style:{letterSpacing:.3},props:{...vo,...U2,...o}}]}),Am=e=>Qe(e.title),qse={name:"Call-to-Action Heading",boxProps:e=>({...Z,direction:"row",align:"center",justify:Am(e)?"between":"end",gap:60,gapPhone:60,share:"content",sectionBorder:{bottom:1},...wt(e,"TitleWithButtons")}),box:[...re,...pa("TitleWithButtons")],parts:[{kind:"group",name:"Title",props:{...L,maxWidth:1e3,widthFitPhone:"fill"},parts:[{kind:"text",key:"title",role:"heading",props:G,style:{textStyle:"heading-1",...ot("headingLarge",48,7,108),case:"upper",lineHeight:.94,letterSpacing:-.035},mark:"accentItalic"}]},{kind:"group",name:"Buttons",props:e=>({...L,gap:14,gapPhone:14,widthFitPhone:"fill",...Am(e)?{minWidth:280,minWidthPhone:0}:{}}),parts:[$2(Am,{widthFit:"fill",iconPosition:"end"}),$2(e=>!Am(e),{})]}],drop:{...Q,buttonsAlign:"moves the buttons only when there is no heading (4 of 128 live nodes), where the Box puts them at the end. 0 of 128 live nodes store it (the live export, 2026-10-24)",buttonsAlignPhone:"the phone's own side of `buttonsAlign`, read only with no heading; no old node stores it (it is new with the Phone view's Block alignment row), so nothing moves",buttonsAlignTablet:"the tablet's own side of `buttonsAlign`, read only with no heading; no old node stores it (it is new with the Tablet view's Block alignment row, 0 stored on the US sites 2026-11-05), so nothing moves"}};function Yse(e,o){let t=rl(o,{to:ke(e.sectionPaddingUnit)}),r=rl(o,{view:"phone",to:ke(e.sectionPaddingUnitPhone),maxPx:20});return{sectionPaddingLeft:t,sectionPaddingRight:t,sectionPaddingLeftPhone:r,sectionPaddingRightPhone:r}}var G2={top:40,bottom:64,topPhone:24,bottomPhone:36},Xse={name:"Section Header",boxProps:(e,o)=>({...Z,direction:"column",gap:0,...le(e,G2),...Yse(e,o)}),box:[...re,...ue(G2)],parts:[Ct("SectionHeader")],drop:{...Q,...se,headStyle:"needs a row per head look: the row draws the standard look; the editorial, simple, statement, natural and essay looks are other layouts. 0 of 69 live nodes store it (the live export, 2026-10-24)",eyebrowLook:"read only by the simple, statement, natural and essay looks, which this row does not draw. 0 of 69 live nodes store it",rowGap:"read only by the natural look, which this row does not draw. 0 of 69 live nodes store it",descriptionSize:"read only by the natural look, which this row does not draw. 0 of 69 live nodes store it",numStyle:"Solid (the default; 4 of 69 live nodes store it) IS the eyebrow Text the row draws; Outlined (0 live) needs an outlined-number text look"}},j2={...L,direction:"row",share:[67],gap:32},K2={...L,sectionPaddingLeft:24,sectionPaddingLeftPhone:0},V2=(e,o,t)=>({kind:"group",name:e,props:o,parts:[t]}),Zse={name:"Lead Text",boxProps:e=>({...Z,direction:"column",gap:40,gapPhone:40,sectionBorder:{bottom:1},...wt(e,"ParagraphsA")}),box:[...re,...pa("ParagraphsA")],parts:[{kind:"group",name:"Numbers",props:{...j2,gapPhone:24,sectionBorder:{bottom:1},sectionPaddingBottom:40,sectionPaddingBottomPhone:40},parts:[{kind:"group",name:"Eyebrow",props:{...L,sectionPaddingTop:5,sectionPaddingBottom:1,sectionPaddingTopPhone:5,sectionPaddingBottomPhone:1},parts:[me("eyebrow",{color:"labels",...U("label",12),letterSpacing:.24})]},V2("Stats column",L,{kind:"group",name:"Stats",props:{...K2,gap:0,gapPhone:0},parts:[{kind:"list",key:"stats",name:"Stat",flat:!0,parts:[td("value","label",{...U("label",13),letterSpacing:.18,lineHeight:1.8})]}]})]},{kind:"group",name:"Words",props:{...j2,gapPhone:28},parts:[{kind:"group",name:"Lead",props:L,parts:[{kind:"group",name:"Measure",props:{...L,maxWidth:780},parts:[{kind:"text",key:"lead",props:G,style:{textStyle:"heading-3",...U("headingSmall",22,20),weight:400,case:"none",lineHeight:1.45,letterSpacing:-.005}}]}]},V2("Note column",{...L,justify:"end"},{kind:"group",name:"Founders",props:{...K2,gap:8,gapPhone:8},parts:[{kind:"group",name:"Note",props:{...L,gap:6,gapPhone:6},parts:[{kind:"text",key:"foundersHeading",props:G,style:{textStyle:"body-1",fontRole:"heading",...U("body",18,16),weight:500,letterSpacing:-.01,lineHeight:1.7}},{kind:"text",key:"foundersBody",props:ne,style:{textStyle:"body-5",fontRole:"heading",...U("body",14,12),lineHeight:1.7}}]},me("attribution",{...U("label",12,10),letterSpacing:.24,lineHeight:1.7})]})]}],drop:{...Q}},q2={top:24,bottom:24,topPhone:24,bottomPhone:24},Jse={name:"Banner",boxProps:e=>({...Z,direction:"column",gap:0,...le(e,q2)}),box:[...re,"contained",...ue(q2)],parts:[{kind:"group",name:"Card",keepEmpty:!0,props:{...L,gap:28,gapPhone:28,placement:"top-left",darken:60,darkenStyle:"even",sectionBorder:{width:1},...Cr("surface"),...Do(64,40,40,24)},box:[["imageSrc","bgImage"],["overlay","darken",e=>Math.min(Math.max(q(e)??60,0),100)]],parts:[{kind:"group",name:"Words",props:{...L,gap:20,gapPhone:20},parts:[me("eyebrow"),{kind:"text",key:"title",role:"heading",props:{...G,maxWidth:680},style:{weight:500,lineHeight:1.05,letterSpacing:-.03,case:"none",...U("headingMedium",44,32)}},{kind:"text",key:"body",props:{...G,maxWidth:680},style:{textStyle:"body-1",lineHeight:1.6,...U("body",16)}}]},{kind:"button",key:"ctaText",href:"ctaHref",variant:"primary",props:vo}]}],drop:{...Q,...se}},Sw={Prose:Vse,TitleWithButtons:qse,SectionHeader:Xse,ParagraphsA:Zse,Banner:Jse},Y2={Prose:()=>({eyebrow:Om.eyebrow,title:pr(Om.title),body:Om.body}),TitleWithButtons:()=>({title:pr(F2.title),buttons:B2.map(e=>({...e}))}),SectionHeader:()=>({num:Mr.num,title:pr(Mr.title),description:Mr.description,linkText:Mr.linkText,linkHref:co.href}),ParagraphsA:()=>({eyebrow:Cd.eyebrow,lead:Ge.body,foundersHeading:Cd.foundersHeading,foundersBody:Cd.foundersBody,attribution:Cd.attribution}),Banner:()=>({...L2,ctaText:co.text,ctaHref:co.href}),ProcessSteps:()=>({num:Mr.num,title:pr(Mr.title)})};function X2(){go(Sw),go(WB),go(QB),go(_B),go(cD),go(GD),go(nN),go(dN),go(wN),go(RN),go(GN),go(r2),go(l2),go(p2),go(R2),go(S2),go(k2),go(_2)}var ele=["FooterPayment"];function Z2(e,o){let{id:t,...r}=e.props;for(let[a,n]of Object.entries(r))Qse(n)&&(r[a]=n.map(s=>Z2(s,o)));return o(e.type,r)}var vd=(e,o)=>{if(!ele.includes(e.type))return null;X2();let t=ca(e.type);return t?Zs({type:e.type,props:{...e.props}},t).nodes.map(r=>Z2(r,o)):null};function J2(){let{appState:e,dispatch:o,config:t}=sle(f=>f),{readOnly:r}=ile(),[a,n]=rle(!1),s=e.data.content;if(r||s.some(f=>f.type===Ue))return null;let l=s.find(f=>f.type===Xe)??null,d=(f,u)=>ale(t,f,u),c=()=>{let f=Zi(l,d,nle(Ue),vd);o({type:"setData",data:u=>({...u,content:[...Rc(u.content,f)]}),recordHistory:!0}),n(!1)};return Rm(lle,{tone:"info",title:i("This footer uses the old layout"),action:a?tle(ole,{children:[Rm(ww,{variant:"primary",size:"sm",onClick:c,children:i("Switch now")}),Rm(ww,{variant:"secondary",size:"sm",onClick:()=>n(!1),children:i("Cancel")})]}):Rm(ww,{variant:"secondary",size:"sm",onClick:()=>n(!0),children:i("Switch to Box footer")}),children:i("Build this footer out of Boxes and blocks, like a page: the same menus, signup, social links and logo, with the copyright as a Legal Line. Your current footer is kept.")})}import{jsx as Cw,jsxs as dle}from"react/jsx-runtime";import{InspectorUpLevel as Q2}from"efficient-easel/chrome";function eM({nodeId:e,part:o,sectionName:t,onUpToSection:r}){let{select:a}=qp(),n=Ks(e,o,"picture");return dle("div",{children:[o!=="media"?Cw(Q2,{inline:!0,name:i(cn.media),onSelect:()=>a(Ri(e,"media"))}):Cw(Q2,{inline:!0,name:i(t),onSelect:r}),Cw(Kt,{part:o,motion:n,itemWord:i(cn[o])})]})}import{HintsToggle as Cle,SettingsSwitch as vle,hintsFoldClass as kle}from"efficient-easel/panel";import{useHints as Tle}from"efficient-easel/screen/lib/hints";var sM={kind:"header"},Tw={kind:"website"},lM={kind:"website",tab:Hs,revealPageGroup:!0},iM={kind:"chat"},dM={kind:"social"},kd="Part";function Ple(e){return i("Part of {name}",{name:i(e)})}function Ele(e,o,t){let r=e.describeNode(o);return{name:t,kindLabel:r?Ple(r.label):i(kd)}}function Ole(e){switch(e){case"Header":return{title:i("Header settings belong to a website."),own:i("Each website created from this template sets its own header afterwards.")};case"Appearance":return{title:i("Appearance settings belong to a website."),own:i("Each website created from this template sets its own appearance afterwards.")};case"Live chat":return{title:i("Live chat settings belong to a website."),own:i("Each website created from this template sets its own live chat afterwards.")};case"Social link":return{title:i("Social link settings belong to a website."),own:i("Each website created from this template sets its own social link afterwards.")};default:return{title:i("{what} settings belong to a website.",{what:e}),own:i("Each website created from this template sets its own {what} afterwards.",{what:e.toLowerCase()})}}}function cM({what:e}){let o=Ole(e);return Ia("div",{className:"sf-note",children:[Ee("p",{children:Ee("strong",{children:o.title})}),Ia("p",{children:[i("A template is a blueprint \u2014 it has no website of its own, so there is nothing here to change.")," ",o.own]})]})}function kw(e){let o=Ai[e];return{name:cn[e],kindLabel:kd,icon:o,head:(t,r)=>{if(t.kind!==o)return null;let a=r.describeNode(t.nodeId);if(!a)return null;let n=nM({name:i(Xp(e,a.props)),tier:"part",of:i(a.label)},{partOf:({name:s})=>i("Part of {name}",{name:s})});return{name:n.name,kindLabel:n.kind}},render:(t,r)=>t.kind===o?Ee(eM,{nodeId:t.nodeId,part:e,sectionName:r.describeNode(t.nodeId)?.label??"Hero",onUpToSection:()=>r.onSelectNode(t.nodeId)}):null}}var _le={header:{name:"Header",kindLabel:"Site settings",icon:"header",render:(e,o)=>{let t=o.hostPanels?.header;return t?Ee(t,{placeholderMode:o.capabilities.placeholderFrames,tokenRef:o.tokenRef,siteId:o.siteId,websiteName:o.websiteName,onOpenWebsiteSettings:o.onOpenWebsiteSettings,onAuthExpired:()=>o.notifyParent("storefront-editor:auth-expired")}):null}},website:{name:"Appearance",kindLabel:"Site settings",icon:"website",render:(e,o)=>Ee(Hp,{initialTab:e.tab,revealPageGroup:e.revealPageGroup,themeFromDocument:!o.capabilities.hasSiteTheme,tokenRef:o.tokenRef,siteId:o.siteId,onNotify:o.onNotify},e.tab??"")},chat:{name:"Live chat",kindLabel:"Site settings",icon:"chat",render:()=>Ee(jA,{})},social:{name:"Social links",kindLabel:"Site settings",icon:"social",render:()=>Ee(ZA,{unavailable:Ee(cM,{what:"Social link"})})},ticker:{name:Ei,kindLabel:kd,icon:"ticker",head:(e,o)=>e.kind==="ticker"?Ele(o,e.heroId,i(Ei)):null,render:e=>Ee(mL,{heroId:e.kind==="ticker"?e.heroId:""})},heroMedia:kw("media"),heroImage:kw("image"),heroImage2:kw("image2"),part:{name:kd,kindLabel:kd,icon:"Text",head:(e,o)=>{if(e.kind!=="part")return null;let t=o.describeNode(e.nodeId);if(!t)return null;let{key:r,row:a}=$t(e.propKey),n=a?_s(t.fields[r],a):t.fields[r],s=Cu(t.type),l=s?Tl(s,e.propKey):null,d=s&&l?s[l].label:kL[e.propKey],c=d?i(d):t_(i(Lg(cp(n??{},r))),a),f=nM({name:c,tier:"part",of:i(t.label)},{partOf:({name:u})=>i("Part of {name}",{name:u})});return{name:f.name,kindLabel:f.kind}},render:(e,o)=>e.kind==="part"?Ee(KL,{nodeId:e.nodeId,propKey:e.propKey,onBack:()=>o.onSelectNode(e.nodeId),onEditStyle:o.onOpenSiteStyles}):null}},Ale=new Set(["header","website","chat"]);function Rle(e,o){if(e==="selection")return null;let t=_le[e];return Ale.has(e)&&!o.hasSiteSettings?{...t,kindLabel:"Not part of a template",render:()=>Ee(cM,{what:t.name})}:t}function fM({mode:e,onOpenWebsiteSettings:o,onOpenSiteStyles:t,onOpenPageStyles:r,onSelectNode:a,hideNodeActions:n=!1,onNotify:s,onHidePanel:l}){let{capabilities:d,tokenRef:c,notifyParent:f,currentSlug:u,siteId:p,runAuthed:h,readOnly:I,navigate:g}=ble(),{rows:C}=ki(),w=C?.find(M=>M.slug===u)??null,T=fle(),y=Object.keys(T.fields).some(M=>!M.startsWith("_")&&!Ci.includes(M)),{websiteName:b}=he(),P=yle({readOnly:I}),{select:H}=Sle(),{selectedItem:E,getItemById:W,getSelectorForId:O,config:D,appState:v}=cle(M=>M),_=Ile(D,E?{type:E.type,props:E.props}:null),A=E?i_(_??D.components[E.type]?.fields,E.props):[],F=M=>D.components[M]?.label??M,z=E?O(E.props.id):void 0,$=Rle(e.kind,d),X=gle(),ee={capabilities:d,tokenRef:c,hostPanels:X.chrome?.panels,describeNode:M=>{let Le=W(M);if(!Le)return null;let ye=D.components[Le.type];return{type:Le.type,label:ye?.label??Le.type,fields:ye?.fields??{},props:Le.props??{}}},siteId:p,websiteName:b??null,notifyParent:f,onNotify:s,onOpenWebsiteSettings:o,onOpenSiteStyles:t,onSelectNode:a},Fe=$?.head?.(e,ee)??null,Oe=HA({kind:w?.kind,pageName:w?.label}),ze=Fe?.name??($?i($.name):E?i(F(E.type)):Oe.name),Ke=Fe?.kindLabel??($?i($.kindLabel):E?z&&z.zone!==aM?i("Block"):i("Section"):Oe.kindLabel),be=$?$.icon:E?E.type:"page",Te=vw(e)&&E?$i(E.type):null,_e=!!E&&!!z&&z.zone===aM&&E.type!==Xe&&E.type!==wle,Ne=Nu(v?.data,E),ao=()=>{Ne||z&&P.duplicateComponent(z.zone,z.index)},yo=()=>{z&&(P.removeComponent(z.zone,z.index),P.select(null))},ie=E?D.components[E.type]?.defaultProps?.previewHover:void 0,Me=vw(e)&&!!E&&!!z&&ie!==void 0,Ve=Me&&E.props.previewHover===!0,J=()=>{!E||!z||P.replaceComponent(z.zone,z.index,{...E,props:{...E.props,previewHover:!Ve}})},{shown:Ae,setShown:ft}=Tle(),fo=!!($||E||y);return Ia("div",{className:`es-sidepanel es-sidepanel--right sf-panel sf-panel--right ${kle(Ae)}`.trim(),children:[Ee(mle,{icon:Ee(fn,{type:be,size:15}),name:ze,kind:Ke,actions:!n&&vw(e)&&E&&E.type!==Xe?Ia(oM,{children:[Ee(tM,{label:i("Duplicate section"),title:Ne??void 0,disabled:Ne!==null,onClick:ao,children:Ee(hle,{size:15})}),_e&&d.hasSiteSettings&&Ee(aF,{node:E,currentSlug:u,siteId:p??void 0,tokenRef:c,runAuthed:h,onNotify:s}),Ee(tM,{label:i("Remove section"),danger:!0,onClick:yo,children:Ee(xle,{size:15})}),l?Ee(rM,{side:"right",onHide:l,divider:!0}):null]}):l?Ee(rM,{side:"right",onHide:l}):void 0}),Me&&Ia("div",{className:"sf-preview-pin",children:[Ia("div",{className:"sf-preview-pin-text",children:[Ee("span",{className:"sf-preview-pin-label",children:i("Preview hover state")}),Ee("span",{className:"sf-preview-pin-hint",children:i("not shown live")})]}),Ee(vle,{checked:Ve,onChange:J,ariaLabel:i("Preview hover state")})]}),Ia("div",{className:"sf-insp-body es-insp-body sf-scroll",children:[$?$.render(e,ee):E?Ia(oM,{children:[E.type===Xe&&d.hasSiteSettings&&Ee(J2,{}),Ee(ZP,{children:Ee(Kt,{entries:Ee(nF,{parts:A,heading:!1,onOpen:M=>H(ip(E.props.id,M))}),entryCount:Xy(A).length,itemWord:ze})}),Te&&Ee(Pu,{source:Te,slug:qs(E?.props),menuId:Su(E?.props)})]}):y?Ee(Kt,{omit:Ci}):Ee(ule,{variant:"none",icon:!1,message:i("Select a section or block to edit it."),children:r&&Ee(ple,{variant:"secondary",onClick:r,children:i("This page")})}),fo&&Ee(Cle,{shown:Ae,onChange:ft,label:i("Show hints")})]})]})}import{jsx as m,jsxs as R,Fragment as xM}from"react/jsx-runtime";var bo={dark:"var(--sf-thumb-bar-dark)",soft:"var(--sf-thumb-bar-light)",accent:"var(--sf-thumb-accent)",tint:"var(--sf-thumb-accent-tint)",block:"var(--sf-thumb-block)",line:"var(--sf-thumb-border)",card:"var(--sf-thumb-card)"},Pw="repeating-linear-gradient(135deg,var(--sf-thumb-hatch1) 0,var(--sf-thumb-hatch1) 5px,var(--sf-thumb-hatch2) 5px,var(--sf-thumb-hatch2) 10px)";function j({w:e,h:o,tone:t="dark",r=2,style:a}){return m("div",{style:{width:e,height:o,borderRadius:r,background:bo[t],flex:"none",...a}})}var Lle={Hero:"hero",HeroSingle:"herosingle",IntroBleed:"intro",Collections:"collections",AlloyWheelsListing:"wheelslisting",CatalogFilterBar:"catalogfilterbar",ProductGrid:"productgrid",FitmentFinder:"fitmentfinder",Gallery:"gallery",GalleryB:"gallerygrid",SpecStrip:"specstrip",ProductHero:"producthero",SpecTable:"spectable",ProcessSteps:"processsteps",DetailRows:"detailrows",FitmentTable:"fitmenttable",CompatibleTyres:"compatibletyres",TyreSizes:"tyresizes",TyreFitment:"tyrefitment",EuTyreLabel:"eutyrelabel",RelatedProducts:"productgrid",BundleOffer:"bundleoffer",OrderSummary:"ordersummary",DeliveryOptions:"deliveryoptions",PaymentBadges:"paymentbadges",CheckoutCTA:"checkoutcta",Manifesto:"manifesto",ParagraphsA:"paragraphs",Prose:"prose",StatsParagraph:"statsparagraph",Chart:"chart",Mockup:"mockup",Footprint:"footprint",Timeline:"timeline",TimelineTrack:"timelinetrack",TitleWithButtons:"titlewithbuttons",Split:"split",Cards:"cards",FAQ:"faq",Testimonials:"testimonials",Masthead:"masthead",Breadcrumb:"breadcrumb",CategoryBar:"categorybar",FeaturedCover:"featuredcover",LongRead:"longread",ArticleBody:"articlebody",Series:"series",Subscribe:"subscribe",SubscribeBlogs:"subscribe",Events:"events",DocMasthead:"docmasthead",DocTabs:"doctabs",DocBody:"docbody",DocMetaCards:"docmetacards",Banner:"banner",Stats:"stats",KeyFeatures:"keyfeatures",Logos:"logos",Ticker:"ticker",Countdown:"countdown",Reviews:"reviews",SubmitBuild:"submitbuild",ReviewForm:"reviewform",Form:"form",AppointmentBooking:"appointmentbooking",ContactRouting:"contact",ContactLocations:"contactlocations",CityPictures:"citypictures",CityMaps:"citymaps",Header:"header",Footer:"footer",SectionHeader:"sectionheader",Grid:"grid",Flex:"blanksection",Spacer:"spacer",Divider:"divider",CustomHTML:"customhtml",Heading:"heading",Text:"text",ImageBlock:"image",ButtonBlock:"button",MenuBlock:"menu",EmailFormBlock:"emailform",SocialLogosBlock:"sociallogos",PaymentLogosBlock:"paymentlogos",LegalLineBlock:"legalline",SearchBlock:"search",CartBlock:"cart",CountrySwitchBlock:"countryswitch"},Y={position:"absolute",inset:0},x={ink:"var(--sf-thumb-ink)",ink2:"var(--sf-thumb-ink-2)",inkSoft:"var(--sf-thumb-ink-soft)",inkSoft2:"var(--sf-thumb-ink-soft-2)",paper:"var(--sf-thumb-paper)",paper2:"var(--sf-thumb-paper-2)",warm:"var(--sf-thumb-warm)",rust:"var(--sf-thumb-rust)",onInk:"var(--sf-thumb-on-ink)",text:"var(--sf-thumb-scene-text)",muted:"var(--sf-thumb-scene-muted)",rule:"var(--sf-thumb-scene-rule)",mark1:"var(--sf-thumb-mark-1)",mark2:"var(--sf-thumb-mark-2)",card:"var(--sf-thumb-card)",scrim:"var(--sf-thumb-scrim)"},je=(e,o,t=160)=>({background:`linear-gradient(${t}deg,${e},${o})`});function Wr({size:e,style:o}){let t=Math.max(2,Math.round(e*.13)),r=(a,n,s)=>({position:"absolute",inset:a,background:n,borderRadius:t,...s?{mixBlendMode:s}:null});return R("span",{style:{position:"absolute",display:"block",width:e,height:e,...o},children:[m("span",{style:r("8% 26% 30% 6%",x.mark1)}),m("span",{style:r("26% 6% 8% 30%",x.mark2,"multiply")})]})}function Fm({children:e}){return m("span",{style:{fontSize:"4.64cqw",fontWeight:700,letterSpacing:"0.06em",textTransform:"uppercase",color:x.muted},children:e})}function pM({over:e,overTone:o,head:t,headSize:r=11.5,cta:a,ctaBg:n,ctaFg:s,tone:l}){return R(xM,{children:[e&&m("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.16em",fontWeight:700,color:o},children:e}),m("span",{style:{fontSize:r,lineHeight:1.15,fontWeight:700,maxWidth:"78%",color:l},children:t}),a&&m("span",{style:{alignSelf:"flex-start",fontSize:"3.65cqw",letterSpacing:"0.12em",fontWeight:700,padding:"4px 8px",borderRadius:2,marginTop:2,background:n,color:s},children:a})]})}function Ew({name:e,price:o}){return R("div",{style:{display:"flex",flexDirection:"column",gap:2,minWidth:0},children:[m("div",{style:{flex:1,minHeight:0,borderRadius:3,position:"relative",overflow:"hidden",...je(x.paper,x.paper2,150)},children:m(Wr,{size:34,style:{left:"50%",top:"50%",transform:"translate(-50%,-50%)"}})}),m("span",{style:{fontSize:"3.65cqw",fontWeight:600,color:x.text},children:e}),m("span",{style:{fontSize:"3.65cqw",color:x.muted},children:o})]})}function Hr({k:e,v:o,ok:t}){return R("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",gap:6,padding:"3.5px 2px",borderBottom:`1px solid ${x.rule}`,fontSize:"3.98cqw",color:x.muted},children:[m("span",{children:e}),R("span",{style:{display:"flex",gap:6,alignItems:"center"},children:[m("b",{style:{color:x.text,fontWeight:700},children:o}),t&&m("span",{style:{color:x.rust,fontWeight:700},children:"\u2713"})]})]})}function De({title:e,children:o}){return R("div",{style:{...Y,background:x.card,padding:"9px 10px",display:"flex",flexDirection:"column",gap:6},children:[m(Fm,{children:e}),o]})}function uM({size:e=14}){return m("span",{style:{width:e,height:e,borderRadius:"50%",flex:"none",display:"block",background:`linear-gradient(150deg,${x.mark1},${x.mark2})`}})}function Ow({filled:e=5,size:o=6}){return R("span",{style:{fontSize:o,letterSpacing:"0.06em",color:x.rust,lineHeight:1},children:["\u2605".repeat(e),m("span",{style:{color:x.mark1},children:"\u2605".repeat(5-e)})]})}function Td({n:e,label:o,tone:t=x.text}){return R("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:1,minWidth:0},children:[m("b",{style:{fontSize:"8.16cqw",lineHeight:1,color:t},children:e}),m("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.08em",textTransform:"uppercase",opacity:.62,color:t},children:o})]})}function ho({children:e,w:o}){return m("span",{style:{fontSize:"3.98cqw",lineHeight:1.45,color:x.muted,width:o,display:"block"},children:e})}function Lm({label:e,w:o="100%",filled:t}){return R("div",{style:{width:o,display:"flex",flexDirection:"column",gap:2},children:[m("span",{style:{fontSize:"3.32cqw",letterSpacing:"0.08em",textTransform:"uppercase",color:x.muted},children:e}),m("span",{style:{height:9,borderRadius:3,border:`1px solid ${x.rule}`,background:t?x.paper:x.card}})]})}function mM({children:e}){return m("span",{style:{alignSelf:"flex-start",fontSize:"3.65cqw",letterSpacing:"0.12em",fontWeight:700,padding:"5px 9px",borderRadius:2,background:x.text,color:x.onInk},children:e})}var Fle={wheelslisting:m(De,{title:"All wheels",children:m("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[["Ridge 19","20\xD79 +12","$365"],["Ridge 29","18\xD79 +20","$410"],["Ridge 39","17\xD78 \u221210","$455"]].map(([e,o,t])=>R("div",{style:{display:"flex",alignItems:"center",gap:6},children:[m("span",{style:{width:20,height:15,borderRadius:3,flex:"none",position:"relative",overflow:"hidden",...je(x.paper,x.paper2,150)},children:m(Wr,{size:12,style:{left:"50%",top:"50%",transform:"translate(-50%,-50%)"}})}),m("b",{style:{flex:1,fontSize:"4.31cqw",color:x.text},children:e}),m("span",{style:{fontSize:"3.65cqw",color:x.muted},children:o}),m("b",{style:{fontSize:"4.31cqw",color:x.text,width:26,textAlign:"right"},children:t})]},e))})}),catalogfilterbar:R("div",{style:{...Y,background:x.card,display:"flex",flexDirection:"column",justifyContent:"center",gap:7,padding:"0 11px"},children:[R("div",{style:{display:"flex",gap:4,alignItems:"center"},children:[["20 inch","6\xD7139.7","Black"].map(e=>R("span",{style:{fontSize:"3.65cqw",fontWeight:600,padding:"4px 7px",borderRadius:99,background:x.text,color:x.onInk,display:"flex",gap:4,alignItems:"center"},children:[e,m("span",{style:{opacity:.6},children:"\u2715"})]},e)),m("span",{style:{fontSize:"3.65cqw",color:x.rust,fontWeight:700},children:"Clear"})]}),R("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[m("span",{style:{fontSize:"3.65cqw",color:x.muted},children:"128 results"}),m("span",{style:{fontSize:"3.65cqw",color:x.muted,border:`1px solid ${x.rule}`,borderRadius:3,padding:"3px 6px"},children:"Sort: Price \u25BE"})]})]}),fitmentfinder:R("div",{style:{...Y,padding:"10px 12px",display:"flex",flexDirection:"column",gap:6,justifyContent:"center",...je(x.ink,x.inkSoft)},children:[m("span",{style:{fontSize:"5.31cqw",fontWeight:700,color:x.onInk},children:"Will it fit your rig?"}),R("div",{style:{display:"flex",gap:4},children:[["2021","Toyota","Hilux"].map(e=>R("span",{style:{flex:1,fontSize:"3.65cqw",color:x.text,background:x.card,borderRadius:3,padding:"5px 6px",display:"flex",justifyContent:"space-between"},children:[e," ",m("span",{style:{color:x.muted},children:"\u25BE"})]},e)),m("span",{style:{fontSize:"3.65cqw",fontWeight:700,letterSpacing:"0.08em",background:x.warm,color:x.ink,borderRadius:3,padding:"5px 7px"},children:"GO"})]})]}),compatibletyres:m(De,{title:"Tyres that suit",children:m("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(3,1fr)",gap:5,minHeight:0},children:[["Ridge Grappler","$489"],["Trail Grappler","$525"],["Terra Grappler","$438"]].map(([e,o])=>R("div",{style:{display:"flex",flexDirection:"column",gap:2,minWidth:0},children:[m("div",{style:{flex:1,minHeight:0,borderRadius:3,position:"relative",overflow:"hidden",background:x.ink},children:m("span",{style:{position:"absolute",left:"50%",top:"50%",transform:"translate(-50%,-50%)",width:26,height:26,borderRadius:"50%",border:`5px solid ${x.mark2}`,boxSizing:"border-box"}})}),m("span",{style:{fontSize:"3.32cqw",fontWeight:600,color:x.text,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},children:e}),m("span",{style:{fontSize:"3.32cqw",color:x.muted},children:o})]},e))})}),tyresizes:m(De,{title:"Available sizes",children:m("div",{style:{flex:1,display:"flex",flexWrap:"wrap",gap:4,alignContent:"center"},children:["265/65R17","285/70R17","265/60R18","275/55R20"].map((e,o)=>m("span",{style:{fontSize:"3.65cqw",fontWeight:600,padding:"5px 7px",borderRadius:3,border:`1px solid ${o===0?x.rust:x.rule}`,color:o===0?x.rust:x.text,background:o===0?x.paper:x.card},children:e},e))})}),tyrefitment:R(De,{title:"Will it fit your car?",children:[m("div",{style:{display:"flex",gap:3},children:["Make","Model","Year","Trim"].map(e=>R("span",{style:{flex:1,minWidth:0,fontSize:"3.32cqw",color:x.muted,background:x.paper,border:`1px solid ${x.rule}`,borderRadius:3,padding:"4px 5px",display:"flex",justifyContent:"space-between",gap:2,overflow:"hidden",whiteSpace:"nowrap"},children:[e," ",m("span",{style:{color:x.muted},children:"\u25BE"})]},e))}),m("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:2,justifyContent:"center",minHeight:0},children:[["265/65R17","Fits",!0],["285/70R17","Not your size",!1]].map(([e,o,t])=>R("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"baseline",gap:6,borderTop:`1px solid ${x.rule}`,paddingTop:3},children:[m("span",{style:{fontSize:"3.32cqw",fontWeight:600,color:x.text},children:e}),m("span",{style:{fontSize:"3.32cqw",fontWeight:t?700:400,letterSpacing:"0.06em",color:t?x.warm:x.muted},children:o})]},e))})]}),eutyrelabel:R("div",{style:{...Y,background:x.card,padding:"9px 11px",display:"flex",gap:8,alignItems:"center"},children:[m("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:1.5},children:[["A","42%"],["B","56%"],["C","70%"],["D","84%"]].map(([e,o],t)=>R("div",{style:{display:"flex",alignItems:"center",gap:3},children:[m("span",{style:{width:o,height:6,borderRadius:"0 2px 2px 0",background:t===1?x.rust:x.mark1}}),m("span",{style:{fontSize:"3.32cqw",fontWeight:700,color:t===1?x.rust:x.muted},children:e})]},e))}),R("div",{style:{flex:"none",display:"flex",flexDirection:"column",gap:3,alignItems:"center"},children:[m("b",{style:{fontSize:"6.63cqw",lineHeight:1,color:x.text},children:"72"}),m("span",{style:{fontSize:"3.32cqw",letterSpacing:"0.08em",color:x.muted},children:"dB"})]})]}),bundleoffer:R("div",{style:{...Y,background:x.paper,padding:"9px 11px",display:"flex",flexDirection:"column",gap:5,justifyContent:"center"},children:[m(Fm,{children:"Buy it with"}),R("div",{style:{display:"flex",alignItems:"center",gap:5},children:[[0,1].map(e=>m("span",{style:{width:26,height:22,borderRadius:3,flex:"none",position:"relative",overflow:"hidden",background:x.card},children:m(Wr,{size:17,style:{left:"50%",top:"50%",transform:"translate(-50%,-50%)"}})},e)),m("span",{style:{fontSize:"5.69cqw",fontWeight:700,color:x.muted},children:"+"}),R("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:1},children:[m("span",{style:{fontSize:"3.65cqw",color:x.muted,textDecoration:"line-through"},children:"$1,024"}),m("b",{style:{fontSize:"6.02cqw",color:x.rust,lineHeight:1},children:"$899"})]})]})]}),checkoutcta:R("div",{style:{...Y,display:"flex",alignItems:"center",justifyContent:"space-between",padding:"0 13px",gap:8,...je(x.ink,x.ink2)},children:[R("div",{style:{display:"flex",flexDirection:"column",gap:2},children:[m("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.12em",color:x.warm,fontWeight:700},children:"READY TO ORDER"}),m("b",{style:{fontSize:"6.63cqw",color:x.onInk,lineHeight:1},children:"$1,956"}),m("span",{style:{fontSize:"3.65cqw",color:x.onInk,opacity:.65},children:"4 items \xB7 fitted free"})]}),m("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.12em",fontWeight:700,padding:"6px 10px",borderRadius:2,background:x.warm,color:x.ink,flex:"none"},children:"CHECKOUT"})]}),contact:m(De,{title:"Who do you need?",children:m("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[["Fitment help","the workshop"],["Order status","the front desk"],["Trade accounts","sales"]].map(([e,o])=>R("div",{style:{display:"flex",alignItems:"center",gap:5},children:[m("b",{style:{flex:1,fontSize:"4.31cqw",color:x.text},children:e}),m("span",{style:{fontSize:"3.65cqw",color:x.muted},children:o}),m("span",{style:{fontSize:"4.64cqw",color:x.rust,lineHeight:1},children:"\u203A"})]},e))})}),contactlocations:m(De,{title:"Find us",children:m("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(2,1fr)",gap:5,minHeight:0},children:[["Brisbane","7 Kerry Rd","Mon\u2013Sat"],["Townsville","12 Enterprise","Mon\u2013Fri"]].map(([e,o,t])=>R("div",{style:{border:`1px solid ${x.rule}`,borderRadius:4,padding:"5px 6px",display:"flex",flexDirection:"column",gap:1},children:[m("b",{style:{fontSize:"4.31cqw",color:x.text},children:e}),m("span",{style:{fontSize:"3.32cqw",color:x.muted},children:o}),m("span",{style:{fontSize:"3.32cqw",color:x.rust,fontWeight:700},children:t})]},e))})}),citypictures:m(De,{title:"Our studios",children:R("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:3,minHeight:0},children:[m("span",{style:{fontSize:"3.32cqw",letterSpacing:"0.12em",fontWeight:700,color:x.muted},children:"A \xB7 AMERICAS"}),m("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(3,1fr)",gap:4,minHeight:0},children:["Los Angeles","Miami","Toronto"].map(e=>R("div",{style:{position:"relative",minHeight:0},children:[m(j,{r:3,style:{...Y,background:`linear-gradient(transparent 45%,${x.scrim} 45%),${je(x.ink,x.inkSoft2).background}`}}),m("b",{style:{position:"absolute",left:5,bottom:4,fontSize:"3.65cqw",color:x.onInk},children:e})]},e))})]})}),citymaps:m(De,{title:"Find us",children:m("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(2,1fr)",gap:5,minHeight:0},children:[["Brisbane","7 Kerry Rd"],["Townsville","12 Enterprise"]].map(([e,o])=>R("div",{style:{position:"relative",padding:"4px 5px",display:"flex",flexDirection:"column",gap:2,minHeight:0},children:[m(j,{r:4,style:{...Y,background:"none",border:`1px solid ${x.rule}`}}),m("b",{style:{position:"relative",fontSize:"4.31cqw",color:x.text},children:e}),m("span",{style:{position:"relative",fontSize:"3.32cqw",color:x.muted},children:o}),R("div",{style:{flex:1,minHeight:0,position:"relative"},children:[m(j,{r:3,style:{...Y,...je(x.paper,x.paper2,150)}}),m(j,{w:"60%",h:"60%",r:8,style:{position:"absolute",left:"12%",top:"20%",background:x.mark1,opacity:.75}}),m(j,{w:6,h:6,r:3,style:{position:"absolute",left:"44%",top:"34%",background:x.rust}})]})]},e))})}),form:m(De,{title:"Send us a message",children:R("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[R("div",{style:{display:"flex",gap:5},children:[m(Lm,{label:"Name"}),m(Lm,{label:"Email"})]}),m(Lm,{label:"Message",filled:!0}),m(mM,{children:"SEND"})]})}),appointmentbooking:m(De,{title:"Book a fitting",children:R("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[m("div",{style:{display:"flex",gap:3},children:["Mon","Tue","Wed","Thu"].map((e,o)=>m("span",{style:{flex:1,textAlign:"center",fontSize:"3.32cqw",fontWeight:o===2?700:500,padding:"4px 0",borderRadius:3,background:o===2?x.text:x.paper,color:o===2?x.onInk:x.muted},children:e},e))}),m("div",{style:{display:"flex",gap:3},children:["8:00","10:30","13:00","15:30"].map((e,o)=>m("span",{style:{flex:1,textAlign:"center",fontSize:"3.32cqw",padding:"4px 0",borderRadius:3,border:`1px solid ${o===1?x.rust:x.rule}`,color:o===1?x.rust:x.muted,background:o===3?x.paper:x.card,textDecoration:o===3?"line-through":"none"},children:e},e))})]})}),reviewform:m(De,{title:"Leave a review",children:R("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:5,justifyContent:"center"},children:[m(Ow,{filled:4,size:14}),m(Lm,{label:"Your review",filled:!0}),m(mM,{children:"POST"})]})}),submitbuild:m(De,{title:"Show us your build",children:R("div",{style:{flex:1,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:3,border:`1px dashed ${x.mark1}`,borderRadius:5,background:x.paper},children:[m("span",{style:{fontSize:"6.63cqw",lineHeight:1,color:x.rust,fontWeight:300},children:"+"}),m("span",{style:{fontSize:"3.65cqw",color:x.muted},children:"Drop a photo of your rig"})]})}),masthead:R("div",{style:{...Y,background:x.paper,display:"flex",flexDirection:"column",justifyContent:"center",padding:"0 13px",gap:5},children:[m("span",{style:{height:1.5,background:x.text}}),m("span",{style:{fontSize:"7.65cqw",fontWeight:800,letterSpacing:"0.02em",color:x.text,lineHeight:1},children:"THE TRACK"}),R("div",{style:{display:"flex",justifyContent:"space-between",fontSize:"3.65cqw",letterSpacing:"0.1em",textTransform:"uppercase",color:x.muted},children:[m("span",{children:"Issue 14"}),m("span",{children:"Spring 2026"})]}),m("span",{style:{height:1,background:x.rule}})]}),featuredcover:R("div",{style:{...Y,overflow:"hidden",...je(x.ink,x.inkSoft2)},children:[m(Wr,{size:92,style:{right:-18,top:-14}}),m("div",{style:{position:"absolute",inset:0,background:`linear-gradient(0deg,${x.scrim},transparent 62%)`}}),R("div",{style:{position:"absolute",left:12,right:12,bottom:11,display:"flex",flexDirection:"column",gap:3},children:[m("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.16em",fontWeight:700,color:x.warm},children:"FEATURE"}),m("span",{style:{fontSize:"6.16cqw",lineHeight:1.15,fontWeight:700,color:x.onInk},children:"Four days on the Madigan Line"})]})]}),longread:R("div",{style:{...Y,background:x.card,padding:"10px 14px",display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[m("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.14em",fontWeight:700,color:x.rust},children:"12 MIN READ"}),m("span",{style:{fontSize:"6.02cqw",lineHeight:1.15,fontWeight:700,color:x.text},children:"What breaks first, and why"}),m(ho,{children:"Every failure starts in the same place:"}),m(ho,{w:"80%",children:"the bolt nobody re-torqued."})]}),articlebody:R("div",{style:{...Y,background:x.card,padding:"10px 22px",display:"flex",flexDirection:"column",gap:4,justifyContent:"center",alignItems:"center",textAlign:"center"},children:[m("span",{style:{fontSize:"4.97cqw",lineHeight:1.2,fontWeight:700,color:x.text},children:"Why offset beats width"}),m(ho,{w:"100%",children:"A wider wheel adds grip only if the offset still"}),m(ho,{w:"88%",children:"clears the arch, so the offset is chosen first."}),m(ho,{w:"80%",children:"Width follows from the space left."})]}),series:m(De,{title:"Recurring columns",children:m("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:5,justifyContent:"center"},children:[["Shed Notes","Monthly"],["Track Tested","Fortnightly"],["Reader Rigs","Weekly"]].map(([e,o])=>R("div",{style:{display:"flex",alignItems:"center",gap:6},children:[m("span",{style:{width:3,height:12,borderRadius:2,background:x.rust,flex:"none"}}),m("b",{style:{flex:1,fontSize:"4.64cqw",color:x.text},children:e}),m("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.08em",textTransform:"uppercase",color:x.muted},children:o})]},e))})}),events:m(De,{title:"Latest posts",children:m("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:5,justifyContent:"center"},children:[[x.inkSoft,x.inkSoft2,"Madigan Line, four days"],[x.rust,x.warm,"Why offset beats width"]].map(([e,o,t])=>R("div",{style:{display:"flex",gap:6,alignItems:"center"},children:[m("span",{style:{width:24,height:18,borderRadius:3,flex:"none",...je(e,o,150)}}),R("div",{style:{display:"flex",flexDirection:"column",gap:1,minWidth:0},children:[m("b",{style:{fontSize:"4.31cqw",color:x.text},children:t}),m("span",{style:{fontSize:"3.65cqw",color:x.muted},children:"4 Sep \xB7 Shed Notes"})]})]},t))})}),docmasthead:R("div",{style:{...Y,background:x.card,padding:"12px 14px",display:"flex",flexDirection:"column",gap:5,justifyContent:"center"},children:[m("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.16em",fontWeight:700,color:x.muted},children:"POLICY"}),m("span",{style:{fontSize:"6.49cqw",fontWeight:700,color:x.text,lineHeight:1.1},children:"Returns & refunds"}),m("span",{style:{fontSize:"3.65cqw",color:x.muted},children:"Version 3 \xB7 Updated 4 Sep 2026"}),m("span",{style:{height:2,width:26,background:x.rust,borderRadius:1}})]}),docbody:m("div",{style:{...Y,background:x.card,padding:"9px 13px",display:"flex",flexDirection:"column",gap:3,justifyContent:"center"},children:[["1.","You may return an unfitted wheel within 30 days."],["2.","Fitted wheels are covered by the structural warranty."],["3.","Freight on a change of mind is yours."]].map(([e,o])=>R("div",{style:{display:"flex",gap:5},children:[m("b",{style:{fontSize:"3.98cqw",color:x.rust,flex:"none"},children:e}),m(ho,{children:o})]},e))}),docmetacards:m(De,{title:"At a glance",children:m("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(2,1fr)",gap:5,minHeight:0},children:[["30 days","To return"],["5 years","Structural"],["Free","Fitting"],["48 hrs","Dispatch"]].map(([e,o])=>R("div",{style:{border:`1px solid ${x.rule}`,borderRadius:4,padding:"5px 6px",display:"flex",flexDirection:"column",gap:1},children:[m("b",{style:{fontSize:"5.31cqw",color:x.text,lineHeight:1},children:e}),m("span",{style:{fontSize:"3.32cqw",letterSpacing:"0.08em",textTransform:"uppercase",color:x.muted},children:o})]},o))})}),doctabs:R("div",{style:{...Y,background:x.card,display:"flex",flexDirection:"column",justifyContent:"center",gap:0,padding:"0 11px"},children:[m("div",{style:{display:"flex",gap:0},children:["Returns","Warranty","Shipping"].map((e,o)=>m("span",{style:{fontSize:"3.98cqw",fontWeight:o===0?700:500,padding:"5px 8px",color:o===0?x.text:x.muted,background:o===0?x.paper:"transparent",borderRadius:"4px 4px 0 0",border:`1px solid ${o===0?x.rule:"transparent"}`,borderBottom:"none"},children:e},e))}),m("span",{style:{height:1,background:x.rule}}),R("div",{style:{paddingTop:6,display:"flex",flexDirection:"column",gap:2},children:[m(ho,{children:"Unfitted wheels come back within 30 days, no questions."}),m(ho,{w:"58%",children:"Freight on a change of mind is yours."})]})]}),paragraphs:R("div",{style:{...Y,background:x.card,padding:"11px 14px",display:"flex",gap:10,alignItems:"center"},children:[m("span",{style:{flex:1,fontSize:"5.86cqw",lineHeight:1.2,fontWeight:700,color:x.text},children:"The right wheel is the boring one."}),R("div",{style:{flex:1,display:"flex",flexDirection:"column"},children:[m(ho,{children:"Forged, correctly offset, rated for what you actually"}),m(ho,{children:"carry. Everything else is a photograph."})]})]}),keyfeatures:m(De,{title:"Key features",children:m("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:["Flow-formed barrel","1250 kg per corner","Hub-centric fit"].map(e=>R("div",{style:{display:"flex",gap:6,alignItems:"center"},children:[m("span",{style:{fontSize:"4.64cqw",color:x.rust,fontWeight:700,lineHeight:1},children:"\u2713"}),m("span",{style:{fontSize:"4.31cqw",color:x.text},children:e})]},e))})}),statsparagraph:R("div",{style:{...Y,background:x.paper,padding:"10px 12px",display:"flex",gap:10,alignItems:"center"},children:[R("div",{style:{flex:"none",display:"flex",flexDirection:"column",gap:5},children:[m(Td,{n:"27k",label:"Rigs"}),m(Td,{n:"4.9",label:"Rating"})]}),R("div",{style:{flex:1,display:"flex",flexDirection:"column"},children:[m(ho,{children:"Twelve years of fitting the same three questions, and the"}),m(ho,{children:"answer has not moved: load rating, offset, then looks."})]})]}),chart:R(De,{title:"Load vs weight",children:[m("div",{style:{flex:1,display:"flex",alignItems:"flex-end",gap:5,paddingBottom:2},children:[38,62,84,71,96].map((e,o)=>m("span",{style:{flex:1,height:`${e}%`,borderRadius:"2px 2px 0 0",background:o===4?x.rust:x.mark1}},o))}),m("span",{style:{height:1,background:x.rule,marginTop:-4}})]}),mockup:m("div",{style:{...Y,overflow:"hidden",display:"flex",alignItems:"center",justifyContent:"center",...je(x.inkSoft,x.ink)},children:R("div",{style:{width:"72%",height:"74%",borderRadius:4,overflow:"hidden",background:x.card,boxShadow:`0 6px 14px ${x.scrim}`},children:[m("div",{style:{height:9,background:x.paper,display:"flex",alignItems:"center",gap:2,padding:"0 4px"},children:[0,1,2].map(e=>m("span",{style:{width:2.5,height:2.5,borderRadius:"50%",background:x.mark1}},e))}),R("div",{style:{padding:5,display:"flex",flexDirection:"column",gap:3},children:[m("span",{style:{height:4,width:"56%",borderRadius:1,background:x.mark2}}),m("span",{style:{height:14,borderRadius:2,...je(x.paper,x.paper2,150)}}),m("span",{style:{height:3,width:"38%",borderRadius:1,background:x.rust}})]})]})}),manifesto:m("div",{style:{...Y,overflow:"hidden",display:"flex",alignItems:"center",padding:"0 16px",...je(x.ink,x.ink2)},children:R("span",{style:{fontSize:"6.63cqw",lineHeight:1.2,fontWeight:700,color:x.onInk},children:["We build for the ",m("span",{style:{color:x.warm},children:"last"})," ten percent of the track."]})}),timeline:m(De,{title:"Our story",children:m("div",{style:{flex:1,display:"flex",flexDirection:"column",justifyContent:"center",gap:6,paddingLeft:4},children:[["1998","One shed, one lathe."],["2009","First forged rim."],["2024","27,000 rigs on."]].map(([e,o],t)=>R("div",{style:{display:"flex",gap:7,alignItems:"flex-start",position:"relative"},children:[t<2&&m("span",{style:{position:"absolute",left:3,top:8,bottom:-8,width:1,background:x.rule}}),m("span",{style:{width:7,height:7,borderRadius:"50%",flex:"none",marginTop:1,background:x.rust,zIndex:1}}),R("div",{style:{display:"flex",flexDirection:"column",gap:0,minWidth:0},children:[m("b",{style:{fontSize:"4.64cqw",color:x.text},children:e}),m(ho,{children:o})]})]},e))})}),timelinetrack:R("div",{style:{...Y,padding:"0 12px",display:"flex",flexDirection:"column",gap:10,justifyContent:"center",...je(x.ink,x.inkSoft)},children:[m("span",{style:{fontSize:"3.98cqw",fontWeight:700,letterSpacing:"0.14em",textTransform:"uppercase",color:x.warm},children:"Milestones"}),R("div",{style:{position:"relative",display:"flex",justifyContent:"space-between",paddingTop:7},children:[m("span",{style:{position:"absolute",left:0,right:0,top:3,height:1,background:x.mark2,opacity:.55}}),["1998","2009","2016","2024"].map((e,o)=>R("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:3,position:"relative"},children:[m("span",{style:{position:"absolute",top:-7,width:6,height:6,borderRadius:"50%",background:o===3?x.warm:x.mark1}}),m("span",{style:{fontSize:"4.31cqw",fontWeight:700,color:o===3?x.warm:x.onInk,opacity:o===3?1:.75},children:e})]},e))]})]}),footprint:R("div",{style:{...Y,overflow:"hidden",...je(x.paper,x.paper2,150)},children:[m("span",{style:{position:"absolute",left:"8%",top:"18%",width:"62%",height:"64%",borderRadius:"48% 52% 40% 60% / 55% 45% 55% 45%",background:x.mark1,opacity:.75}}),m("span",{style:{position:"absolute",left:"52%",top:"52%",width:"34%",height:"34%",borderRadius:"58% 42% 55% 45% / 45% 58% 42% 55%",background:x.mark2,opacity:.55}}),[["26%","38%"],["44%","58%"],["62%","34%"]].map(([e,o])=>m("span",{style:{position:"absolute",left:e,top:o,width:7,height:7,borderRadius:"50% 50% 50% 0",transform:"rotate(-45deg)",background:x.rust}},e)),m("span",{style:{position:"absolute",left:11,bottom:9,fontSize:"4.64cqw",fontWeight:700,color:x.text},children:"3 fitting bays"})]}),banner:R("div",{style:{...Y,display:"flex",alignItems:"center",justifyContent:"space-between",padding:"0 13px",gap:8,background:x.rust},children:[R("div",{style:{display:"flex",flexDirection:"column",gap:2},children:[m("b",{style:{fontSize:"6.02cqw",color:x.onInk},children:"End of season \xB7 20% off"}),m("span",{style:{fontSize:"3.98cqw",color:x.onInk,opacity:.8},children:"Fitted free, this month only."})]}),m("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.12em",fontWeight:700,padding:"5px 9px",borderRadius:2,background:x.onInk,color:x.text,flex:"none"},children:"SHOP"})]}),titlewithbuttons:R("div",{style:{...Y,background:x.paper,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:7,padding:"0 14px",textAlign:"center"},children:[m("span",{style:{fontSize:"6.49cqw",lineHeight:1.15,fontWeight:700,color:x.text},children:"Not sure what fits?"}),R("div",{style:{display:"flex",gap:5},children:[m("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.12em",fontWeight:700,padding:"5px 9px",borderRadius:2,background:x.text,color:x.onInk},children:"FIND MY FIT"}),m("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.12em",fontWeight:700,padding:"5px 9px",borderRadius:2,border:`1px solid ${x.text}`,color:x.text},children:"CALL US"})]})]}),ticker:m("div",{style:{...Y,overflow:"hidden",background:x.ink,display:"flex",alignItems:"center"},children:m("span",{style:{whiteSpace:"nowrap",fontSize:"6.29cqw",fontWeight:800,letterSpacing:"0.06em",color:x.warm,marginLeft:-14},children:"FREE FITTING \xB7 48HR DISPATCH \xB7 FREE FITTING \xB7 48HR DISPATCH"})}),countdown:R("div",{style:{...Y,padding:"10px 12px",display:"flex",flexDirection:"column",alignItems:"center",gap:6,justifyContent:"center",...je(x.ink,x.ink2)},children:[m("span",{style:{fontSize:"3.65cqw",fontWeight:700,letterSpacing:"0.16em",textTransform:"uppercase",color:x.muted},children:"Back online in"}),m("div",{style:{display:"flex",alignItems:"flex-start",gap:5},children:[["23","Hours"],["59","Minutes"],["48","Seconds"]].map(([e,o],t)=>R("div",{style:{display:"flex",alignItems:"flex-start",gap:5},children:[t>0&&m("b",{style:{fontSize:"9.5cqw",lineHeight:1,color:x.warm},children:":"}),R("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:2},children:[m("b",{style:{fontSize:"11.5cqw",lineHeight:1,color:x.onInk,fontVariantNumeric:"tabular-nums"},children:e}),m("span",{style:{fontSize:"3.2cqw",letterSpacing:"0.1em",textTransform:"uppercase",opacity:.62,color:x.onInk},children:o})]})]},o))})]}),breadcrumb:m("div",{style:{...Y,background:x.card,display:"flex",alignItems:"center",padding:"0 13px"},children:R("span",{style:{fontSize:"4.64cqw",color:x.muted},children:["Home ",m("span",{style:{opacity:.5},children:"/"})," Wheels ",m("span",{style:{opacity:.5},children:"/"})," ",m("span",{style:{color:x.text,fontWeight:700},children:"20 inch"})]})}),categorybar:R("div",{style:{...Y,background:x.card,display:"flex",flexDirection:"column",justifyContent:"center",gap:7,padding:"0 11px"},children:[m("div",{style:{display:"flex",gap:5},children:["All","Wheels","Tyres","Lift"].map((e,o)=>m("span",{style:{fontSize:"3.98cqw",fontWeight:o===0?700:500,padding:"4px 7px",borderRadius:99,background:o===0?x.text:x.paper,color:o===0?x.onInk:x.muted},children:e},e))}),m("span",{style:{height:1,background:x.rule}})]}),intro:R("div",{style:{...Y,overflow:"hidden",background:x.card},children:[m("div",{style:{position:"absolute",inset:0,...je(x.ink,x.inkSoft2)}}),m(Wr,{size:64,style:{right:8,top:6}}),R("div",{style:{position:"absolute",left:16,right:16,bottom:8,top:"46%",background:x.paper,borderRadius:6,padding:"8px 11px",display:"flex",flexDirection:"column",gap:2,boxShadow:`0 -4px 10px ${x.scrim}`},children:[m("span",{style:{fontSize:"5.69cqw",fontWeight:700,color:x.text},children:"Since 1998"}),m(ho,{children:"One shed, one lathe, one idea."}),m(ho,{w:"66%",children:"It turned out to be right."})]})]}),gallerygrid:m(De,{title:"Photo gallery",children:m("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(3,1fr)",gridTemplateRows:"repeat(2,1fr)",gap:4,minHeight:0},children:[[x.rust,x.warm],[x.inkSoft,x.ink],[x.paper2,x.mark2],[x.ink,x.inkSoft2],[x.warm,x.paper2],[x.mark2,x.inkSoft]].map(([e,o],t)=>m("div",{style:{borderRadius:3,...je(e,o,140+t*22)}},t))})}),gallery:R(De,{title:"Gallery",children:[m("div",{style:{display:"flex",gap:8,alignItems:"center",marginTop:-2},children:["On the truck","Studio","Close-ups"].map((e,o)=>m("span",{style:{fontSize:"3.98cqw",fontWeight:o===0?700:500,color:o===0?x.text:x.muted,borderBottom:`1.5px solid ${o===0?x.rust:"transparent"}`,paddingBottom:2},children:e},e))}),m("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(3,1fr)",gap:4,minHeight:0},children:[[x.rust,x.warm],[x.ink,x.inkSoft],[x.paper2,x.mark2]].map(([e,o],t)=>m("div",{style:{borderRadius:3,...je(e,o,150+t*20)}},t))})]}),ordersummary:R(De,{title:"Order summary",children:[R("div",{style:{display:"flex",gap:6,alignItems:"center",paddingBottom:4},children:[m("span",{style:{width:26,height:26,borderRadius:4,position:"relative",overflow:"hidden",flex:"none",...je(x.paper,x.paper2,150)},children:m(Wr,{size:18,style:{left:"50%",top:"50%",transform:"translate(-50%,-50%)"}})}),R("div",{style:{display:"flex",flexDirection:"column",gap:1,minWidth:0},children:[m("b",{style:{fontSize:"4.31cqw",color:x.text},children:"Ridge Grappler"}),m("span",{style:{fontSize:"3.65cqw",color:x.muted},children:"20\xD79 +12 \xB7 qty 4"})]})]}),R("div",{style:{flex:1,minHeight:0,display:"flex",flexDirection:"column",justifyContent:"center"},children:[m(Hr,{k:"Subtotal",v:"$1,956"}),m(Hr,{k:"Fitting",v:"Free"}),R("div",{style:{display:"flex",justifyContent:"space-between",paddingTop:5,fontSize:"4.64cqw"},children:[m("b",{style:{color:x.text},children:"Total"}),m("b",{style:{color:x.text,fontSize:"6.02cqw"},children:"$1,956"})]})]})]}),deliveryoptions:m(De,{title:"Delivery",children:m("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[["Standard","3\u20135 days","Free",!0],["Express","Next day","$19",!1]].map(([e,o,t,r])=>R("div",{style:{display:"flex",alignItems:"center",gap:6,padding:"5px 6px",borderRadius:4,border:`1px solid ${r?x.rust:x.rule}`,background:r?x.paper:x.card},children:[m("span",{style:{width:7,height:7,borderRadius:"50%",flex:"none",border:`1.5px solid ${r?x.rust:x.mark1}`,background:r?x.rust:"transparent"}}),m("span",{style:{flex:1,fontSize:"4.31cqw",fontWeight:600,color:x.text},children:e}),m("span",{style:{fontSize:"3.98cqw",color:x.muted},children:o}),m("b",{style:{fontSize:"4.31cqw",color:x.text},children:t})]},e))})}),paymentbadges:R("div",{style:{...Y,background:x.paper,display:"flex",flexDirection:"column",gap:8,justifyContent:"center",padding:"0 12px"},children:[m(Fm,{children:"Ways to pay"}),m("div",{style:{display:"flex",gap:5},children:[["VISA",x.ink],["MC",x.rust],["AMEX",x.inkSoft],["PayPal",x.ink2]].map(([e,o])=>m("span",{style:{flex:1,textAlign:"center",fontSize:"3.65cqw",fontWeight:800,letterSpacing:"0.06em",color:x.onInk,borderRadius:3,padding:"6px 0",background:o},children:e},e))})]}),stats:R("div",{style:{...Y,padding:"10px 12px",display:"flex",flexDirection:"column",gap:9,justifyContent:"center",...je(x.ink,x.ink2)},children:[m("span",{style:{fontSize:"3.98cqw",fontWeight:700,letterSpacing:"0.14em",textTransform:"uppercase",color:x.warm},children:"By the numbers"}),R("div",{style:{display:"flex",gap:8},children:[m(Td,{n:"27k",label:"Rigs fitted",tone:x.onInk}),m(Td,{n:"12",label:"Years",tone:x.onInk}),m(Td,{n:"4.9",label:"Avg rating",tone:x.warm})]})]}),testimonials:R("div",{style:{...Y,overflow:"hidden",background:x.paper,padding:"10px 11px",display:"flex",flexDirection:"column",gap:6,justifyContent:"center"},children:[m("span",{style:{position:"absolute",right:10,top:2,fontSize:"22.4cqw",lineHeight:1,fontWeight:800,color:x.rust,opacity:.16},children:"\u201D"}),m(Ow,{filled:5,size:7}),m("span",{style:{position:"relative",fontSize:"5.31cqw",lineHeight:1.35,color:x.text,fontWeight:600},children:"\u201CTook them out to the Simpson and back. Not one chip.\u201D"}),R("div",{style:{display:"flex",alignItems:"center",gap:5},children:[m(uM,{}),m("span",{style:{fontSize:"3.98cqw",color:x.muted},children:"Dave M. \xB7 Hilux N80"})]})]}),reviews:R(De,{title:"Reviews",children:[m("div",{style:{display:"flex",gap:4,height:22},children:[[x.inkSoft,x.inkSoft2],[x.rust,x.warm],[x.ink,x.inkSoft],[x.mark2,x.mark1]].map(([e,o],t)=>m("div",{style:{flex:1,borderRadius:3,...je(e,o,140+t*15)}},t))}),m("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:5,justifyContent:"center"},children:[["Dave M.",5,"Not one chip after the Simpson."],["Sara K.",4,"Fitted in an hour, no fuss."]].map(([e,o,t])=>R("div",{style:{display:"flex",gap:5,alignItems:"flex-start"},children:[m(uM,{size:12}),R("div",{style:{display:"flex",flexDirection:"column",gap:1,minWidth:0},children:[R("div",{style:{display:"flex",gap:4,alignItems:"center"},children:[m("b",{style:{fontSize:"3.98cqw",color:x.text},children:e}),m(Ow,{filled:o})]}),m(ho,{children:t})]})]},e))})]}),logos:R("div",{style:{...Y,display:"flex",flexDirection:"column",gap:9,justifyContent:"center",padding:"0 12px",...je(x.ink,x.inkSoft)},children:[m("span",{style:{fontSize:"3.98cqw",fontWeight:700,letterSpacing:"0.14em",textTransform:"uppercase",color:x.warm},children:"As fitted by"}),m("div",{style:{display:"grid",gridTemplateColumns:"repeat(4,1fr)",gap:8},children:["ARB","TJM","IRONMAN","OPPOSITE"].map(e=>m("span",{style:{textAlign:"center",fontSize:"4.31cqw",fontWeight:800,letterSpacing:"0.08em",color:x.onInk,opacity:.82},children:e},e))})]}),prose:R("div",{style:{...Y,background:x.paper,padding:"11px 14px",display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[m("span",{style:{fontSize:"5.86cqw",fontWeight:700,color:x.text},children:"Why offset matters"}),R("div",{style:{display:"flex",gap:6},children:[m("span",{style:{fontSize:"15.3cqw",lineHeight:.78,fontWeight:800,color:x.rust,marginTop:1},children:"T"}),R("div",{style:{display:"flex",flexDirection:"column"},children:[m(ho,{children:"he number on the back of your wheel decides whether the"}),m(ho,{w:"76%",children:"tyre sits under the guard or an inch outside it."})]})]})]}),cards:m(De,{title:"What you get",children:m("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(3,1fr)",gap:5,minHeight:0},children:[["Fitted free","In store, same day."],["5 yr cover","Structural, no fine print."],["Swap it","30 days, any reason."]].map(([e,o])=>R("div",{style:{border:`1px solid ${x.rule}`,borderRadius:4,padding:6,display:"flex",flexDirection:"column",gap:2},children:[m("span",{style:{width:11,height:11,borderRadius:3,background:x.rust,opacity:.9}}),m("b",{style:{fontSize:"3.98cqw",color:x.text},children:e}),m(ho,{children:o})]},e))})}),faq:m(De,{title:"Questions",children:m("div",{style:{flex:1,display:"flex",flexDirection:"column",justifyContent:"center"},children:[["Will these fit my Hilux?",!0],["Do you fit them for me?",!1],["What if I pick wrong?",!1]].map(([e,o])=>R("div",{style:{borderBottom:`1px solid ${x.rule}`,padding:"4px 2px"},children:[R("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",gap:6},children:[m("b",{style:{fontSize:"4.31cqw",color:x.text},children:e}),m("span",{style:{fontSize:"4.64cqw",color:x.muted,lineHeight:1},children:o?"\u2212":"+"})]}),o&&m(ho,{w:"90%",children:"Use the fitment finder \u2014 it reads your build, not just the model."})]},e))})}),hero:R("div",{style:{...Y,overflow:"hidden",...je(x.ink,x.ink2)},children:[m("div",{style:{...Y,background:`linear-gradient(90deg,${x.scrim},transparent 70%)`}}),m("div",{style:{position:"relative",height:"100%",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"flex-start",padding:"12px 14px",gap:5},children:m(pM,{over:"NEW \xB7 SUMMER",overTone:x.warm,head:"Built for the worst road you own",cta:"SHOP ALL",ctaBg:x.warm,ctaFg:x.ink,tone:x.onInk})}),m(Wr,{size:104,style:{right:-24,bottom:-30}})]}),herosingle:R("div",{style:{...Y,display:"flex",background:x.paper,overflow:"hidden"},children:[m("div",{style:{flex:1,padding:12,display:"flex",flexDirection:"column",gap:5,justifyContent:"center"},children:m(pM,{over:"ALL-TERRAIN",overTone:x.rust,head:"Grip that does not ask",headSize:12,cta:"EXPLORE",ctaBg:x.text,ctaFg:x.onInk,tone:x.text})}),m("div",{style:{flex:1,position:"relative",...je(x.inkSoft,x.inkSoft2)},children:m(Wr,{size:74,style:{right:-14,top:16}})})]}),productgrid:m(De,{title:"Best sellers",children:R("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(3,1fr)",gap:5,minHeight:0},children:[m(Ew,{name:"Ridge 19",price:"$365"}),m(Ew,{name:"Ridge 29",price:"$410"}),m(Ew,{name:"Ridge 39",price:"$455"})]})}),collections:m(De,{title:"Shop by category",children:m("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(3,1fr)",gap:5,minHeight:0},children:[["Wheels",x.inkSoft,x.inkSoft2],["Tyres",x.rust,x.warm],["Lift kits",x.ink,x.inkSoft]].map(([e,o,t])=>m("div",{style:{borderRadius:4,display:"flex",alignItems:"flex-end",padding:5,color:x.onInk,...je(o,t)},children:m("span",{style:{fontSize:"3.98cqw",fontWeight:700,letterSpacing:"0.04em"},children:e})},e))})}),producthero:R("div",{style:{...Y,display:"flex",background:x.card,overflow:"hidden"},children:[m("div",{style:{flex:1.1,position:"relative",...je(x.paper,x.paper2,150)},children:m(Wr,{size:78,style:{left:"50%",top:"50%",transform:"translate(-50%,-50%)"}})}),R("div",{style:{flex:1,padding:"10px 10px 10px 8px",display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[m("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.16em",fontWeight:700,color:x.rust},children:"NITTO"}),m("b",{style:{fontSize:"6.29cqw",color:x.text},children:"Ridge Grappler"}),m("span",{style:{fontSize:"6.63cqw",fontWeight:700,color:x.text},children:"$489"}),m("span",{style:{alignSelf:"flex-start",fontSize:"3.65cqw",letterSpacing:"0.12em",fontWeight:700,padding:"4px 8px",borderRadius:2,background:x.text,color:x.onInk},children:"ADD TO CART"})]})]}),spectable:m(De,{title:"Specifications",children:R("div",{style:{flex:1,display:"flex",flexDirection:"column",justifyContent:"center"},children:[m(Hr,{k:"Diameter",v:'20"'}),m(Hr,{k:"Width",v:"9.0J"}),m(Hr,{k:"Offset",v:"+12"}),m(Hr,{k:"Load",v:"1250 kg"})]})}),fitmenttable:m(De,{title:"Will it fit?",children:R("div",{style:{flex:1,display:"flex",flexDirection:"column",justifyContent:"center"},children:[m(Hr,{k:"Hilux N80",v:"20\xD79 +12",ok:!0}),m(Hr,{k:"Ranger PX3",v:"20\xD79 +12",ok:!0}),m(Hr,{k:"LC79",v:"17\xD78 \u221210",ok:!0})]})}),processsteps:R("div",{style:{...Y,background:x.paper,padding:10,display:"flex",flexDirection:"column",gap:7,justifyContent:"center"},children:[m(Fm,{children:"How it works"}),m("div",{style:{display:"flex",gap:6},children:["Pick your rig","Match the fit","We fit it"].map((e,o)=>R("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:2},children:[m("span",{style:{width:11,height:11,borderRadius:"50%",background:x.text,color:x.onInk,fontSize:"3.98cqw",display:"flex",alignItems:"center",justifyContent:"center",fontWeight:700},children:o+1}),m("span",{style:{fontSize:"3.98cqw",color:x.text,fontWeight:600},children:e})]},e))})]}),detailrows:m("div",{style:{...Y,background:x.card,display:"flex",flexDirection:"column",overflow:"hidden"},children:[["Forged, not cast","Half the weight, twice the road.",!1],["Fits your load","Rated to 1250 kg a corner.",!0]].map(([e,o,t])=>{let r=m("div",{style:{flex:1,...je(t?x.rust:x.inkSoft,t?x.warm:x.inkSoft2)}},"art"),a=R("div",{style:{flex:1.1,padding:8,display:"flex",flexDirection:"column",gap:2,justifyContent:"center"},children:[m("b",{style:{fontSize:"4.64cqw",color:x.text},children:e}),m("span",{style:{fontSize:"3.98cqw",color:x.muted,lineHeight:1.3},children:o})]},"tx");return m("div",{style:{flex:1,display:"flex",minHeight:0},children:t?[a,r]:[r,a]},e)})}),specstrip:m("div",{style:{...Y,background:x.ink,color:x.onInk,display:"flex",alignItems:"center",justifyContent:"space-around",padding:"0 8px"},children:[["5 yr","Warranty"],["Free","Fitting"],["48 hr","Dispatch"]].map(([e,o])=>R("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:1},children:[m("b",{style:{fontSize:"5.69cqw",letterSpacing:"0.02em"},children:e}),m("span",{style:{fontSize:"3.65cqw",color:x.mark2,letterSpacing:"0.1em",textTransform:"uppercase"},children:o})]},o))})},hM={subscribe:R("div",{style:{...Y,padding:13,display:"flex",flexDirection:"column"},children:[R("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:8},children:[R("div",{style:{display:"flex",alignItems:"center",gap:6},children:[m(j,{w:8,h:8,r:2,tone:"accent"}),m(j,{w:38,h:7,r:3,tone:"dark"}),m(j,{w:16,h:7,r:3,tone:"accent"})]}),m(j,{w:38,h:4,r:2,tone:"soft"})]}),m("div",{style:{height:1,background:bo.line,marginBottom:10}}),R("div",{style:{flex:1,display:"flex",gap:10,border:`1px solid ${bo.line}`,borderRadius:7,padding:10},children:[R("div",{style:{flex:1.1,display:"flex",flexDirection:"column",justifyContent:"center",gap:5},children:[m(j,{w:"46%",h:3,r:2,tone:"accent"}),m(j,{w:"84%",h:8,r:4,tone:"dark"}),m(j,{w:"56%",h:8,r:4,tone:"accent"}),m(j,{w:"96%",h:3,r:2,tone:"soft",style:{marginTop:2}}),R("div",{style:{display:"flex",gap:5,marginTop:4},children:[m("div",{style:{flex:1,height:13,borderRadius:5,border:`1px solid ${bo.line}`,background:bo.block}}),m(j,{w:34,h:13,r:5,tone:"accent"})]})]}),R("div",{style:{flex:1,background:bo.block,borderRadius:6,padding:8,display:"flex",flexDirection:"column",gap:6},children:[m(j,{w:"52%",h:4,r:2,tone:"accent"}),Array.from({length:3}).map((e,o)=>R("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",gap:6,borderTop:o?`1px solid ${bo.line}`:"none",paddingTop:o?4:0},children:[m(j,{w:34,h:4,r:2,tone:"dark"}),m(j,{w:16,h:3,r:2,tone:"soft"})]},o))]})]})]}),split:R("div",{style:{...Y,display:"flex"},children:[m("div",{style:{width:"44%",background:Pw}}),R("div",{style:{flex:1,padding:15,display:"flex",flexDirection:"column",justifyContent:"center",gap:7},children:[m(j,{w:"44%",h:5,r:3,tone:"accent"}),m(j,{w:"88%",h:8,r:4,tone:"dark"}),m(j,{w:"70%",h:8,r:4,tone:"dark"}),m(j,{w:"94%",h:5,r:2,tone:"soft",style:{marginTop:2}}),m(j,{w:"80%",h:5,r:2,tone:"soft"}),m(j,{w:"40%",h:13,r:6,tone:"accent",style:{marginTop:5}})]})]}),sectionheader:R(xM,{children:[m(j,{w:"18%",h:6,r:3,tone:"accent",style:{position:"absolute",top:15,right:16}}),R("div",{style:{...Y,padding:16,display:"flex",flexDirection:"column",justifyContent:"center",gap:10},children:[R("div",{style:{display:"flex",alignItems:"center",gap:9},children:[m(j,{w:16,h:16,r:4,tone:"accent"}),m(j,{w:"20%",h:9,r:4,tone:"dark"})]}),m(j,{w:"62%",h:10,r:5,tone:"dark"}),m(j,{w:"42%",h:6,r:3,tone:"soft"})]})]}),header:m("div",{style:{...Y,padding:14,display:"flex",flexDirection:"column",justifyContent:"center"},children:R("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[m(j,{w:"22%",h:12,r:4,tone:"dark"}),R("div",{style:{display:"flex",gap:9,alignItems:"center"},children:[m(j,{w:26,h:6,r:3,tone:"soft"}),m(j,{w:26,h:6,r:3,tone:"soft"}),m(j,{w:26,h:6,r:3,tone:"soft"}),m(j,{w:18,h:14,r:5,tone:"accent"})]})]})}),footer:R("div",{style:{...Y,padding:15,display:"flex",flexDirection:"column",justifyContent:"center",gap:12},children:[R("div",{style:{display:"flex",gap:14},children:[R("div",{style:{flex:1.4,display:"flex",flexDirection:"column",gap:6},children:[m(j,{w:"60%",h:9,r:4,tone:"dark"}),m(j,{w:"90%",h:5,r:2,tone:"soft"}),m(j,{w:"70%",h:5,r:2,tone:"soft"})]}),[0,1].map(e=>R("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:6},children:[m(j,{w:"50%",h:6,r:3,tone:"dark"}),m(j,{w:"80%",h:5,r:2,tone:"soft"}),m(j,{w:"66%",h:5,r:2,tone:"soft"})]},e))]}),m("div",{style:{height:1,background:bo.line}}),R("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[m(j,{w:"30%",h:5,r:2,tone:"soft"}),m(j,{w:"16%",h:5,r:2,tone:"soft"})]})]}),grid:m("div",{style:{...Y,padding:14,display:"grid",gridTemplateColumns:"1fr 1fr",gridTemplateRows:"1fr 1fr",gap:9},children:Array.from({length:4}).map((e,o)=>m("div",{style:{borderRadius:6,background:bo.block}},o))}),blanksection:m("div",{style:{...Y,padding:14,display:"flex"},children:R("div",{style:{flex:1,border:`1px dashed ${bo.line}`,borderRadius:7,display:"flex",alignItems:"center",justifyContent:"center",position:"relative"},children:[m(j,{w:14,h:2,r:1,tone:"tint"}),m(j,{w:2,h:14,r:1,tone:"tint",style:{position:"absolute"}})]})}),spacer:R("div",{style:{...Y,padding:14,display:"flex",flexDirection:"column",justifyContent:"space-between"},children:[m(j,{w:"100%",h:6,r:3,tone:"soft"}),m(j,{w:16,h:22,r:3,tone:"block",style:{alignSelf:"center"}}),m(j,{w:"100%",h:6,r:3,tone:"soft"})]}),divider:m("div",{style:{...Y,padding:14,display:"flex",alignItems:"center"},children:m(j,{w:"100%",h:3,r:2,tone:"dark"})}),customhtml:R("div",{style:{...Y,display:"flex",alignItems:"center",justifyContent:"center",gap:8,background:Pw},children:[m(j,{w:5,h:16,r:2,tone:"dark",style:{transform:"skewX(-14deg)"}}),m(j,{w:16,h:10,r:3,tone:"accent"}),m(j,{w:5,h:16,r:2,tone:"dark",style:{transform:"skewX(14deg)"}})]}),heading:m("div",{style:{...Y,padding:14,display:"flex",alignItems:"center"},children:m(j,{w:"64%",h:13,r:4,tone:"dark"})}),text:R("div",{style:{...Y,padding:16,display:"flex",flexDirection:"column",justifyContent:"center",gap:7},children:[m(j,{w:"100%",h:6,r:3,tone:"soft"}),m(j,{w:"96%",h:6,r:3,tone:"soft"}),m(j,{w:"100%",h:6,r:3,tone:"soft"}),m(j,{w:"58%",h:6,r:3,tone:"soft"})]}),image:m("div",{style:{position:"absolute",inset:14,borderRadius:7,background:Pw}}),button:m("div",{style:{...Y,display:"flex",alignItems:"center",justifyContent:"center"},children:m(j,{w:"34%",h:16,r:8,tone:"accent"})}),menu:R("div",{style:{...Y,padding:"14px 22%",display:"flex",flexDirection:"column",justifyContent:"center",gap:7},children:[m(j,{w:"48%",h:7,r:3,tone:"dark"}),m(j,{w:"82%",h:5,r:2,tone:"soft"}),m(j,{w:"66%",h:5,r:2,tone:"soft"}),m(j,{w:"74%",h:5,r:2,tone:"soft"}),m(j,{w:"58%",h:5,r:2,tone:"soft"})]}),emailform:R("div",{style:{...Y,padding:16,display:"flex",flexDirection:"column",justifyContent:"center",gap:9},children:[m(j,{w:"56%",h:8,r:3,tone:"dark"}),R("div",{style:{display:"flex",gap:6},children:[m("div",{style:{flex:1,height:16,borderRadius:5,border:`1px solid ${bo.line}`}}),m(j,{w:"30%",h:16,r:5,tone:"accent"})]})]}),sociallogos:m("div",{style:{...Y,display:"flex",alignItems:"center",justifyContent:"center",gap:9},children:[0,1,2,3].map(e=>m(j,{w:16,h:16,r:8,tone:"dark"},e))}),paymentlogos:R("div",{style:{...Y,display:"flex",alignItems:"center",justifyContent:"center",gap:7},children:[m(j,{w:22,h:6,r:2,tone:"soft"}),[0,1,2,3].map(e=>m(j,{w:20,h:13,r:3,tone:"dark"},e))]}),search:m("div",{style:{...Y,padding:"0 18%",display:"flex",alignItems:"center"},children:R("div",{style:{flex:1,height:22,borderRadius:11,border:`1px solid ${bo.line}`,display:"flex",alignItems:"center",gap:7,padding:"0 9px"},children:[m("div",{style:{width:9,height:9,borderRadius:5,border:`2px solid ${bo.dark}`}}),m(j,{w:"46%",h:5,r:2,tone:"soft"})]})}),cart:R("div",{style:{...Y,display:"flex",alignItems:"center",justifyContent:"center",gap:7},children:[m("div",{style:{width:22,height:18,borderRadius:"3px 3px 6px 6px",border:`2px solid ${bo.dark}`}}),m("div",{style:{padding:"2px 6px",borderRadius:6,border:`1.5px solid ${bo.dark}`},children:m(j,{w:7,h:7,r:2,tone:"dark"})})]}),countryswitch:R("div",{style:{...Y,padding:14,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:5},children:[R("div",{style:{display:"flex",alignItems:"center",gap:6,padding:"4px 8px",border:`1px solid ${bo.line}`},children:[m(j,{w:22,h:6,r:2,tone:"dark"}),m(j,{w:6,h:4,r:1,tone:"soft"})]}),R("div",{style:{width:"46%",display:"flex",flexDirection:"column",gap:4,padding:6,border:`1px solid ${bo.line}`},children:[m(j,{w:"80%",h:4,r:2,tone:"accent"}),m(j,{w:"64%",h:4,r:2,tone:"soft"}),m(j,{w:"72%",h:4,r:2,tone:"soft"})]})]}),legalline:R("div",{style:{...Y,padding:16,display:"flex",flexDirection:"column",justifyContent:"center",gap:9},children:[m("div",{style:{height:1,background:bo.line}}),R("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[m(j,{w:"38%",h:5,r:2,tone:"soft"}),R("div",{style:{display:"flex",gap:5},children:[m(j,{w:14,h:5,r:2,tone:"soft"}),m(j,{w:14,h:5,r:2,tone:"soft"}),m(j,{w:14,h:5,r:2,tone:"soft"})]})]})]}),fallback:m("div",{style:{position:"absolute",inset:14,borderRadius:8,background:bo.block}})};function IM({type:e}){let o=Lle[e]??"",t=Fle[o]??hM[o]??hM.fallback;return m("div",{className:"sf-thumb","aria-hidden":"true",style:{position:"absolute",inset:0,background:"var(--sf-thumb-thumb-bg)",pointerEvents:"none",containerType:"inline-size"},children:t})}import{useScreenDocument as ah}from"efficient-easel/screen/components/ScreenDocumentContext";import{jsx as dl,jsxs as gM}from"react/jsx-runtime";import Ble from"efficient-easel/screen/components/SidePanelHead";import{StylesIcon as Dle}from"efficient-easel/rail";import{Tooltip as Nle}from"efficient-shell/ui";import{HintsToggle as Mle,hintsFoldClass as Hle}from"efficient-easel/panel";import{useHints as Wle}from"efficient-easel/screen/lib/hints";function bM({tokenRef:e,siteId:o,onClose:t,onNotify:r,tab:a,onTabChange:n,revealPageGroup:s,onPageGroupRevealed:l}){let d=Ws(),{shown:c,setShown:f}=Wle();return gM("div",{className:`sf-styles ${Hle(c)}`.trim(),children:[dl(Ble,{icon:dl(Dle,{}),title:i("Styles"),context:dl(Nle,{content:i("{name} \u2014 renamed in the Console: {place}.",{name:d,place:i("Storefront \u25B8 Sites \u25B8 Settings")}),className:"sf-name-tip",children:dl("span",{className:"sf-name-text",children:d})})}),gM("div",{className:"sf-insp-body es-insp-body sf-scroll",children:[dl(Hp,{tokenRef:e,siteId:o,onNotify:r,tab:a,onTabChange:n,revealPageGroup:s,onPageGroupRevealed:l}),dl(Mle,{shown:c,onChange:f,label:i("Show hints")})]})]})}import{jsx as ko,jsxs as Ln,Fragment as Kle}from"react/jsx-runtime";import{Fragment as LM,useEffect as FM,useRef as Bw}from"react";import{useTreeDrag as BM}from"efficient-easel/drag";import{GlobeIcon as Vle,ImageIcon as qle,LocationIcon as Yle,MapIcon as Xle,TextLinesIcon as Zle,TrashIcon as DM}from"efficient-easel/icons";import{Subtree as NM,TreeRow as Ed,TreeRowAction as MM,TreeSeam as HM}from"efficient-easel/tree";import{useEaselStrings as Jle}from"efficient-easel/strings";import{createPreviewSelectionContext as Ule}from"efficient-easel/draw/client";var{Provider:hGe,useSelection:yM}=Ule("selectedLocationPartId");function SM(e,o,t){return`${e}::${o}::${t}`}function wM(e){if(!e)return null;let o=e.split("::");if(o.length<3)return null;let t=o[o.length-1];if(t!=="image"&&t!=="map"&&t!=="city")return null;let r=Number(o[o.length-2]);if(!Number.isInteger(r)||r<0)return null;let a=o.slice(0,-2).join("::");return a?{nodeId:a,index:r,part:t}:null}import{isSelectionMode as Qle}from"efficient-easel/screen/lib/screen-parts";import{useSyncExternalStore as zle}from"react";var $le={level:"groups"},vM=$le,_w=new Set;function Yt(e){vM=e;for(let o of _w)o()}function Gle(e){return _w.add(e),()=>{_w.delete(e)}}var CM=()=>vM;function kM(){return zle(Gle,CM,CM)}var Pd=e=>String(e?.group??""),Aw=new WeakMap,jle=0;function Bm(e){let o=Aw.get(e);return o||(o=`loc${++jle}`,Aw.set(e,o)),o}var TM=(e,o)=>o||e||"Ungrouped",PM={photo:"",group:"",groupName:"",name:"City name",state:"State",country:"Country",timezone:"GMT \xB7 UTC +0",address:`Address line one
338
338
  Address line two`,phone:"+00 000 0000",hours:"Mon\u2013Fri 9:00\u201318:00",lat:0,lng:0,mapsUrl:""};function Rn(e){return Hu(e,Pd,o=>String(o?.groupName??"")).map(o=>({key:o.key,name:o.name,cards:o.items.map(t=>t.item)}))}var Rw=e=>e.flatMap(o=>o.cards),EM=(e,o,t)=>Math.min(Math.max(e,o),t);function Dm(e,o,t){let r=0;for(let a=0;a<e.length;a++)if(Pd(e[a])===o){if(r===t)return a;r++}return-1}function Lw(e,o,t){let r=Rn(e);if(o<0||o>=r.length)return e;let[a]=r.splice(o,1),n=EM(o<t?t-1:t,0,r.length);return r.splice(n,0,a),Rw(r)}function Fw(e,o,t,r,a){let n=Rn(e),s=n.find(u=>u.key===o),l=n.find(u=>u.key===r);if(!s||!l||t<0||t>=s.cards.length)return e;let[d]=s.cards.splice(t,1),c=o===r?d:{...d,group:l.key,groupName:l.name};c!==d&&Aw.set(c,Bm(d));let f=EM(s===l&&t<a?a-1:a,0,l.cards.length);return l.cards.splice(f,0,c),Rw(n)}function OM(e,o){let t=Rn(e),r=t.find(n=>n.key===o),a={...PM,group:o,groupName:r?.name??""};return r?(r.cards.push(a),Rw(t)):[...e,a]}function _M(e){let o=new Set(Rn(e).map(a=>a.key)),t=o.size+1,r=`Group ${t}`;for(;o.has(r);)r=`Group ${++t}`;return{cards:[...e,{...PM,group:r,groupName:""}],key:r}}function AM(e,o){return e.filter(t=>Pd(t)!==o)}function RM(e,o,t){let r=Dm(e,o,t);return r<0?e:e.filter((a,n)=>n!==r)}function yGe(e,o,t){let r=e.flatMap((s,l)=>Pd(s)===o?[l]:[]),a=e.slice();r.forEach((s,l)=>{a[s]=t[l]});let n=t.slice(r.length);return[...a.filter(s=>s!==void 0),...n]}function SGe(e,o,t){return o.flatMap(r=>{let a=e.filter(n=>Pd(n)===r);return a.length?a:t(r)})}var Mm="ContactLocations",Nm=e=>({parentId:`locations-${e}`,slot:"groups"}),Dw=(e,o)=>({parentId:`locations-${e}`,slot:`cities:${o}`});function WM(e,o){let{readOnly:t,selected:r}=o,a=Jle().tree,n=o.data?.content??[],s=Qle(e),l=Bw(null);FM(()=>{let y=r?.type===Mm?String(r.props.id):null;y&&y!==l.current&&Yt({level:"groups"}),l.current=y},[r?.props.id]);let{selectedLocationPartId:d,setSelectedLocationPartId:c,setSelectHandler:f}=yM(),u=kM(),p=(y,b)=>{let P=n[y];P&&o.replace(y,{type:P.type,props:{...P.props,locations:b}})},h=y=>{let b=n[y]?.props?.locations;return Array.isArray(b)?b:[]},I=BM({keyOf:y=>`group:${y.si}:${y.index}`,readOnly:!!t,canDrop:(y,b)=>b.parentId===Nm(y.si).parentId&&b.slot==="groups",onDrop:(y,b)=>{p(y.si,Lw(h(y.si),y.index,b.index)),u.level==="city"&&Yt({level:"groups"})},onStep:(y,b)=>{p(y.si,Lw(h(y.si),y.index,b<0?y.index-1:y.index+2)),u.level==="city"&&Yt({level:"groups"})}}),g=BM({keyOf:y=>`city:${y.si}:${y.group}:${y.index}`,readOnly:!!t,canDrop:(y,b)=>b.parentId===Nm(y.si).parentId&&b.slot.startsWith("cities:"),onDrop:(y,b)=>{let P=b.slot.slice(7);p(y.si,Fw(h(y.si),y.group,y.index,P,b.index)),Yt({level:"group",key:P})},onStep:(y,b)=>{p(y.si,Fw(h(y.si),y.group,y.index,y.group,b<0?y.index-1:y.index+2)),u.level==="city"&&Yt({level:"group",key:y.group})}}),C=Bw(n);C.current=n;let w=Bw(()=>{});FM(()=>{f(y=>{let b=wM(y);if(!b)return;let P=C.current.findIndex(H=>H.props?.id===b.nodeId);P<0||w.current(P,{level:b.part,index:b.index})})},[f]);let T=(y,b)=>{l.current=n[y]?.props?.id??null,o.select(y),Yt(b),e.reveal();let P=n[y]?.props?.id;typeof P=="string"&&(b.level==="city"||b.level==="image"||b.level==="map")?c(SM(P,b.index,b.level)):c(null),typeof P=="string"&&o.scrollTo(P)};return w.current=T,{renderLocationTree:(y,b,{rowClick:P,isCollapsed:H,toggleCollapse:E})=>{let W=h(b),O=Rn(W),D=String(y.props.id),v=s&&r?.props.id===D,_=F=>ko(HM,{...t?{}:I.seam({place:{...Nm(b),index:F}})},`seam:${D}:groups:${F}`),A=(F,z)=>ko(HM,{...t?{}:g.seam({place:{...Dw(b,F),index:z}})},`seam:${D}:cities:${F}:${z}`);return Ln(Kle,{children:[ko(Ed,{icon:ko(Zle,{size:13}),name:i("Texts"),words:a,onSelect:()=>T(b,{level:"texts"}),selected:v&&u.level==="texts",rowProps:{onClick:P(()=>T(b,{level:"texts"}))}}),O.map((F,z)=>{let $=`${D}::grp::${F.key}`,X=H($),ee=v&&u.level==="group"&&u.key===F.key,Fe=F.name||F.key?TM(F.key,F.name):i("Ungrouped"),Oe={...Dw(b,F.key),index:F.cards.length},ze=g.row({item:{si:b,group:F.key,index:-1},place:Oe,into:Oe,canDrag:!1},{onClick:P(()=>T(b,{level:"group",key:F.key}))}),Ke=I.row({item:{si:b,index:z},place:{...Nm(b),index:z}},ze.rowProps);return Ln(LM,{children:[z===0&&_(0),ko(Ed,{icon:ko(Vle,{size:13}),name:Fe,words:a,onSelect:()=>T(b,{level:"group",key:F.key}),selected:ee,draggable:Ke.draggable,dragging:Ke.dragging,drop:Ke.drop??ze.drop,fold:{open:!X,label:i("group"),onToggle:()=>E($)},actions:ko(MM,{kind:"delete",label:Uo("Delete {label} group ({n} city)","Delete {label} group ({n} cities)",F.cards.length,{label:Fe}),onClick:()=>{p(b,AM(W,F.key)),Yt({level:"groups"})},children:ko(DM,{size:15})}),rowProps:Ke.rowProps,count:F.cards.length,countLabel:Uo("{n} city","{n} cities",F.cards.length)}),!X&&Ln(NM,{children:[F.cards.map((be,Te)=>{let _e=Dm(W,F.key,Te),Ne=v&&u.level==="city"&&u.index===_e,ao=String(be?.name??"")||i("City"),yo=`${D}::city::${Bm(be)}`,ie=H(yo),{rowProps:Me,...Ve}=g.row({item:{si:b,group:F.key,index:Te},place:{...Dw(b,F.key),index:Te}},{onClick:P(()=>T(b,{level:"city",index:_e}))});return Ln(LM,{children:[Te===0&&A(F.key,0),ko(Ed,{icon:ko(Yle,{size:13}),name:ao,words:a,onSelect:()=>T(b,{level:"city",index:_e}),selected:Ne,...Ve,fold:{open:!ie,label:ao,onToggle:()=>E(yo)},actions:ko(MM,{kind:"delete",label:i("Delete {name}",{name:ao}),onClick:()=>{p(b,RM(W,F.key,Te)),Yt({level:"group",key:F.key})},children:ko(DM,{size:15})}),rowProps:Me}),!ie&&Ln(NM,{children:[ko(Ed,{icon:ko(qle,{size:13}),name:i("Image"),words:a,onSelect:()=>T(b,{level:"image",index:_e}),selected:v&&u.level==="image"&&u.index===_e,rowProps:{onClick:P(()=>T(b,{level:"image",index:_e}))}}),ko(Ed,{icon:ko(Xle,{size:13}),name:i("Map"),words:a,onSelect:()=>T(b,{level:"map",index:_e}),selected:v&&u.level==="map"&&u.index===_e,rowProps:{onClick:P(()=>T(b,{level:"map",index:_e}))}})]}),A(F.key,Te+1)]},Bm(be))}),Ln("button",{type:"button",className:"sf-add-card",onClick:()=>{let be=OM(W,F.key);p(b,be);let Te=Rn(be).find(_e=>_e.key===F.key);Yt(Te&&Te.cards.length?{level:"city",index:Dm(be,F.key,Te.cards.length-1)}:{level:"group",key:F.key})},children:[ko("span",{className:"sf-plus sf-plus--sm",children:"+"}),i("Add city")]})]}),_(z+1)]},$)}),Ln("button",{type:"button",className:"sf-add-card",onClick:()=>{let{cards:F,key:z}=_M(W);p(b,F),T(b,{level:"group",key:z})},children:[ko("span",{className:"sf-plus sf-plus--sm",children:"+"}),i("Add group")]})]})},sectionPressed:y=>{y?.type===Mm&&Yt({level:"groups"})}}}import{useEffect as ide,useRef as dde}from"react";import{createNode as Kw,newId as Vw}from"efficient-easel/data";import{useEaselApi as cde}from"efficient-easel/easel";import{useScreenDocument as fde}from"efficient-easel/screen/components/ScreenDocumentContext";import{useEaselSession as pde}from"efficient-easel/screen/lib/session-context";import{useEffect as $H,useRef as nde}from"react";import{useEasel as sde}from"efficient-easel/easel";import{ROOT_ZONE as jw}from"efficient-easel/draw";var Od={};function UM(e){return Od={...e?.theme?{theme:e.theme}:{},...e?.site?{site:e.site}:{}},Od}function zM(e){Od===e&&(Od={})}function cl(){return Od}import{jsx as Et,jsxs as BH}from"react/jsx-runtime";import{createContext as Yie,useContext as Xie,useEffect as Zie,useRef as Jie,useState as DH}from"react";import{jsx as ga,jsxs as QM}from"react/jsx-runtime";import{useEffect as fl,useRef as eH,useState as Fn}from"react";import{jsx as $M,Fragment as eie,jsxs as oie}from"react/jsx-runtime";import{useEffect as tie,useRef as GM,useState as rie}from"react";var aie="#t=0.001",nie=2;function sie(e,o){if(e.readyState<nie||!e.videoWidth||!e.videoHeight)return!1;let t=o.getContext("2d");return t?(o.width=e.videoWidth,o.height=e.videoHeight,t.drawImage(e,0,0,o.width,o.height),!0):!1}function jM({src:e,objectPosition:o="50% 50%",onError:t}){let r=GM(null),a=GM(null),[n,s]=rie(!1);return tie(()=>{let l=r.current,d=a.current;if(n||!l||!d)return;let c=()=>{sie(l,d)&&s(!0)};return c(),l.addEventListener("loadeddata",c),l.addEventListener("seeked",c),()=>{l.removeEventListener("loadeddata",c),l.removeEventListener("seeked",c)}},[n]),oie(eie,{children:[$M("canvas",{ref:a,"aria-hidden":!0,className:"absolute inset-0 z-[3] h-full w-full object-cover",style:{objectPosition:o,visibility:n?"visible":"hidden"}}),!n&&$M("video",{ref:r,src:`${e}${aie}`,muted:!0,playsInline:!0,preload:"auto",className:"hidden",onError:t})]})}import{imageCopyUrl as qM,imageSrcSet as lie}from"efficient-shell/image-copies";var KM;function Nw(){return KM===void 0?{}:{host:KM}}var WGe="(max-width: 800px) 100vw, min(100vw, 1600px)",UGe="(max-width: 960px) 100vw, 50vw";function Mw(e,{fallbackWidth:o=1280,maxWidth:t}={}){let r=lie(e,{...Nw(),...t===void 0?{}:{maxWidth:t}});return r?{src:qM(e,o,Nw()),srcSet:r}:{src:e}}var iie=/[\s"'()\\;]/,die={"\\":"\\\\",'"':'\\"',"\n":"\\a ","\r":"\\d ","\f":"\\c "};function VM(e){return e.replace(/[\\"\n\r\f]/g,o=>die[o]??o)}function zGe(e){let o=qM(e,1920,Nw());return o===e?iie.test(e)?`url("${VM(e)}")`:`url(${e})`:`url("${VM(o)}")`}import{jsx as YM}from"react/jsx-runtime";import{createContext as cie,useContext as fie,useMemo as KGe}from"react";var XM=cie(null);function ZM({children:e}){return YM(XM.Provider,{value:"below",children:e})}function _d(){return fie(XM)}function pie(){return _d()==="below"?{loading:"lazy"}:{}}function JM(e){let o=pie();return YM("img",{...e,...o})}var VGe="laterSlideIds";var uie=.5;function Ad({videoSrc:e,videoAv1Src:o,videoSrcPhone:t,videoAv1SrcPhone:r,posterSrc:a,posterSrcPhone:n,showVideo:s=!0,playbackRate:l=uie,objectPosition:d="50% 50%",objectPositionPhone:c,objectPositionTablet:f,quiet:u=!1,slideShown:p,laterSlide:h=!1,laterOfLead:I=!1}){let g=r0(c,f),C=_d(),[w,T]=Fn(!1),y=C==="below"&&!w,b=C==="first",P=a||"",H=n||"",E=eH(null),W=gd(E,!0,!0),O=W===void 0?void 0:W==="phone",D=Tc({video:e,av1:o,videoPhone:t,av1Phone:r},O===!0),v=D.video||"",_=kc(v,D.av1),[A,F]=Fn(!1),[z,$]=Fn(!1),[X,ee]=Fn(!1),[Fe,Oe]=Fn(!1),ze=p??!0,[Ke,be]=Fn(!1),Te=C!=="first"&&!I,[_e,Ne]=Fn(!1),ao=eH(null);fl(()=>{if(!Te)return;if(document.readyState==="complete"){Ne(!0);return}let J=()=>Ne(!0);return window.addEventListener("load",J,{once:!0}),()=>window.removeEventListener("load",J)},[Te]),fl(()=>{F(!1),$(!1),ee(!1),Oe(!1)},[v,P,H]),fl(()=>{ze&&be(!0)},[ze]),fl(()=>{let J=ao.current;J&&(ze?J.play()?.catch(()=>{}):J.pause())},[ze,Ke,_e]),fl(()=>{if(!h||Te&&!_e)return;let J=()=>T(!0);if(typeof window.requestIdleCallback=="function"){let ft=window.requestIdleCallback(J,{timeout:2e3});return()=>window.cancelIdleCallback(ft)}let Ae=setTimeout(J,800);return()=>clearTimeout(Ae)},[h,Te,_e]),fl(()=>{let J=ao.current;if(!J)return;let Ae=()=>{J.playbackRate=l};return Ae(),J.addEventListener("loadedmetadata",Ae),()=>J.removeEventListener("loadedmetadata",Ae)},[v,l]);let yo=Mk(P),ie=P&&(yo||H)&&!z?Mw(P):{src:P},Me=H&&!z?Mw(H):{src:H},Ve=H&&!y&&!w?[{sized:Me,media:xi},...P?[{sized:ie,media:vl}]:[]]:[];return QM("div",{ref:E,className:"absolute inset-0 z-[1]",children:[ga("div",{className:"absolute inset-0",style:{background:"var(--site-surface)"}}),Ve.map(({sized:J,media:Ae})=>ga("link",{rel:"preload",as:"image",href:J.src,media:Ae,fetchPriority:"high",...J.srcSet?{imageSrcSet:J.srcSet,imageSizes:"100vw"}:{}},Ae)),(P||H)&&(yo||H?(()=>{let J=ga("img",{...P?{src:ie.src}:{},...ie.srcSet?{srcSet:ie.srcSet,sizes:"100vw"}:{},alt:"",...y?{loading:"lazy"}:{},...b?{fetchPriority:"high"}:{},className:`absolute inset-0 z-[2] h-full w-full object-cover ${g.className}`.trim(),style:{display:A?"none":"block",objectPosition:d,...g.style},onError:Ae=>{Ae.currentTarget.currentSrc&&(ie.srcSet||Me.srcSet?$(!0):F(!0))}},H?void 0:P);return H?QM("picture",{children:[ga("source",{media:xi,srcSet:Me.srcSet||Me.src,sizes:"100vw"}),J]},`${P} ${H}`):J})():ga(TD,{src:P,alt:"",fill:!0,...y?{}:w?{loading:"eager"}:{priority:!0},sizes:"100vw",className:`z-[2] object-cover ${g.className}`.trim(),style:{display:A?"none":"block",objectPosition:d,...g.style},onError:()=>F(!0)},P)),s&&!u&&v&&O!==void 0&&Ke&&(!Te||_e)&&!X&&ga("video",{ref:ao,autoPlay:!0,loop:!0,muted:!0,playsInline:!0,preload:"metadata",className:"absolute inset-0 z-[3] h-full w-full object-cover",style:{objectPosition:d},onError:()=>ee(!0),children:_.map(J=>ga("source",{src:J.src,type:J.type},J.src))},v),s&&u&&v&&O!==void 0&&Ke&&(!Te||_e)&&!Fe&&(!P||A)&&ga(jM,{src:v,objectPosition:d,onError:()=>Oe(!0)},v)]})}import{jsx as Fo,Fragment as cH,jsxs as $w}from"react/jsx-runtime";import{jsx as pl}from"react/jsx-runtime";import{useRef as mie}from"react";import{SCROLL_EFFECTS_WITH_ZOOM as hie,scrollAttrs as xie}from"efficient-shell/format";function oH({views:e,origins:o={},boxClass:t,boxAttrs:r,boxStyle:a,takesViewHide:n=!1,atEdge:s=!1,zoomInside:l="layer",zoomLayerClass:d,children:c}){let f=mie(null),u=Sc(),p=qr(),h=n?p:os,I=Id(f,!0,s),{attrs:g,style:C}=xie(e[I],o[I]),w=hie.includes(e[I].effect),T=Yr(`${Qn}${u.fill}${t?` ${t}`:""}`,h.className);if(w&&l==="picture")return h.scope(pl("div",{ref:f,className:T,...r,...h.attrs,...a?{style:a}:{},children:pl(vk,{attrs:g,style:C,children:u.inner(c)})}));let y=pl(kk,{children:u.inner(c)});if(w){let P=d??(u.fill?"h-full":void 0);return h.scope(pl("div",{ref:f,className:T,...r,...h.attrs,style:{...a,overflow:"clip"},children:pl("div",{...P?{className:P}:{},...g,style:C,children:y})}))}let b=Object.keys(C).length||a?{style:{...a,...C}}:{};return h.scope(pl("div",{ref:f,className:T,...r,...h.attrs,...g,...b,children:y}))}import{MOTION_TIMING as Iie}from"efficient-shell/format";var nH="grayscale(1) contrast(1.03)",gje="Black and white";function gie(e){return e===!0?{filter:nH}:{}}function bie(e){let{filter:o}=gie(e);return o?{style:{filter:o}}:{}}var Bn="sf-photo-grayscale",zw="data-sf-photo-host",tH={duration:"--sf-photo-hover-duration",delay:"--sf-photo-hover-delay"},zm=`@media (hover:hover){.${Bn}{filter:${nH};transition:filter var(--sf-photo-hover-duration,var(--page-motion-hover-duration)) var(--page-ease-media) var(--sf-photo-hover-delay,var(--page-motion-hover-delay))}.${Bn}:hover,[data-sf-photo-host]:hover .${Bn}{filter:none}}@media (hover:hover) and (prefers-reduced-motion:reduce){.${Bn}{transition:none}}`;function sH(e){let o=Iie.hover,t={...e.duration!==o.duration.default?{[tH.duration]:`${e.duration}s`}:{},...e.delay!==o.delay.default?{[tH.delay]:`${e.delay}s`}:{}};return Object.keys(t).length?t:void 0}function lH(e,o,t){if(e===!0)return bie(!0);if(t?.kind==="mono"){let r=sH(t);return{className:Bn,sheet:zm,...r?{style:r}:{}}}return e===!1?{}:o===!0?{className:Bn}:{}}var iH="data-sf-repeat",Hw="sf-photo-zoom",yie="--sf-photo-zoom",bje="sf-photo-wash",Hm="sf-photo-wash-rest",Rd="sf-photo-wash-hover",Um="sf-photo-frame",dH=(e,o)=>`:not([${iH}]:not(${o}) .${e})`,Uw=(e,o)=>`[${iH}]${o} .${e}${dH(e,o)}`,Ww=(e,o)=>`${o},${Uw(e,":hover")},[${zw}]:hover .${e}${dH(e,":hover")}`,rH=e=>`${e} var(--sf-photo-hover-duration,var(--page-motion-hover-duration)) var(--page-ease-media) var(--sf-photo-hover-delay,var(--page-motion-hover-delay))`,Sie=`.${Rd}{opacity:0}@media (hover:hover){.${Hm},.${Rd}{transition:${rH("opacity")}}${Ww(Rd,`.${Um}:hover .${Rd}`)}{opacity:1}${Ww(Hm,`.${Um}:hover .${Hm}`)}{opacity:0}}@media (hover:hover) and (prefers-reduced-motion:no-preference){.${Hw}{transition:${rH("transform")}}${Ww(Hw,`.${Um}:hover .${Hw}`)}{transform:scale(var(${yie}))}}@media (hover:hover) and (prefers-reduced-motion:reduce){.${Hm},.${Rd}{transition:none}}`,yje="sf-photo-move";function Sje(e){if(!e||!e.zoom&&!e.darken)return null;let o=sH(e);return{className:Um,sheet:Sie,...o?{style:o}:{}}}function wje(e){return e===!0?{[Bn]:zm}:{}}var Wm="sf-box-reveal",Cje="sf-box-reveal",wie=8,aH=.3,vje=`@media ${vl}{.${Wm}{opacity:0;transform:translateY(${wie}px);transition:opacity ${aH}s ease-out,transform ${aH}s ease-out}${Uw(Wm,":hover")},${Uw(Wm,":focus-within")}{opacity:1;transform:none}}@media ${vl} and (prefers-reduced-motion:reduce){.${Wm}{transition:none;transform:none}}`;import{hidableText as Cie}from"efficient-easel/draw";var vie={one:"max-view-tablet:grid-cols-1 max-view-tablet:grid-rows-1",side:"max-view-tablet:grid-cols-2 max-view-tablet:grid-rows-1",stacked:"max-view-tablet:grid-cols-1 max-view-tablet:grid-rows-2"},kie={one:"view-tablet:grid-cols-1 view-tablet:grid-rows-1",side:"view-tablet:grid-cols-2 view-tablet:grid-rows-1",stacked:"view-tablet:grid-cols-1 view-tablet:grid-rows-2"};function fH(e){let o=e.isVideo&&aT(e.videoSource)==="youtube",t=e.isVideo&&nT(e.videoPlayback)==="click",r=o?sT(Cie(e.youtubeUrl)):null,a=Yp(e.mediaLayout);return{fromYouTube:o,onClick:t,youTubeId:r,backgroundFile:e.isVideo&&!o&&!t,desktopLayout:a,phoneLayout:Wb(e.mediaLayoutPhone,a),twoPictures:!e.isVideo&&_i(e)>1}}function Ld(e,o){return gc(In({_partMotion:e},o))}function Fd(e,o){return cu(In({_partMotion:e},o))}var $m=e=>Sy({desktop:e.objectPosition,tablet:e.objectPositionTablet,phone:e.objectPositionPhone}),pH=Kh.img;function uH({entrance:e,scroll:o,origins:t,editing:r,className:a,attrs:n,style:s,zoomLayerClass:l,children:d}){return e?Fo(uD,{views:e,editing:r,boxClass:a,boxAttrs:n,...s?{boxStyle:s}:{},children:d}):o?Fo(oH,{views:o,...t?{origins:t}:{},boxClass:a,boxAttrs:n,...s?{boxStyle:s}:{},...l?{zoomLayerClass:l}:{},children:d}):Fo("div",{className:a,...n,...s?{style:s}:{},children:d})}function ul(e,o){return lH(void 0,void 0,ev(In({_partMotion:e},o)))}function mH(e){return dn.some(o=>ul(e,o).className)?{hostAttrs:{[zw]:""},sheet:zm}:{}}function Gm({treatment:e,children:o}){return e.className?Fo("div",{className:`absolute inset-0 ${e.className}`,...e.style?{style:e.style}:{},children:o}):Fo(cH,{children:o})}function jm({color:e,opacity:o,passClicks:t=!0}){return o>0?Fo("div",{className:t?"pointer-events-none absolute inset-0 z-[2]":"absolute inset-0 z-[2]",style:{background:e,opacity:Math.min(Math.max(o,0),100)/100}}):null}function Km({part:e,editing:o,marked:t=!0,entrance:r,scroll:a=null,origins:n,className:s,children:l}){let d=o&&t?{[MA]:e}:void 0;return Fo(uH,{entrance:r,scroll:a,origins:n,editing:o,className:s,attrs:d,zoomLayerClass:pH,children:l})}function hH({partMotion:e,editing:o,children:t}){let r=Ld(e,"media"),a=Fd(e,"media"),n=ul(e,"media"),s=Fo(Tk,{fill:Kh,children:t}),l=n.className?Fo("div",{className:`absolute inset-0 z-[1] ${n.className}`,...n.style?{style:n.style}:{},children:s}):s;return r||a?Fo(uH,{entrance:r,scroll:a,editing:o,className:"absolute inset-0 z-[1]",zoomLayerClass:pH,children:l}):Fo(cH,{children:l})}function xH({desktopLayout:e,phoneLayout:o,editing:t,marked:r=!0,partMotion:a,first:n,second:s,laterSlide:l=!1}){return $w("div",{className:`absolute inset-0 z-[1] grid ${vie[o]} ${kie[e]}`,"data-hero-layout":e,"data-hero-layout-phone":o,children:[Fo(Km,{part:"image",editing:t,marked:r,entrance:Ld(a,"image"),scroll:Fd(a,"image"),origins:$m(n),className:"relative overflow-hidden",children:$w(Gm,{treatment:ul(a,"image"),children:[Fo(Ad,{posterSrc:ut(n.src),showVideo:!1,laterSlide:l,objectPosition:n.objectPosition,objectPositionPhone:n.objectPositionPhone,objectPositionTablet:n.objectPositionTablet}),Fo(jm,{color:n.tintColor,opacity:n.tintOpacity})]})}),Fo(Km,{part:"image2",editing:t,marked:r,entrance:Ld(a,"image2"),scroll:Fd(a,"image2"),origins:$m(s),className:`relative overflow-hidden ${rf({desktop:e==="one",tablet:e==="one",mobile:o==="one"},{atSectionLine:!0})}`.trimEnd(),children:$w(Gm,{treatment:ul(a,"image2"),children:[Fo(Ad,{posterSrc:ut(s.src),showVideo:!1,laterSlide:l,objectPosition:s.objectPosition,objectPositionPhone:s.objectPositionPhone,objectPositionTablet:s.objectPositionTablet}),Fo(jm,{color:s.tintColor,opacity:s.tintOpacity})]})})]})}import{jsx as ba,Fragment as Tie,jsxs as Pie}from"react/jsx-runtime";import{useEffect as Eie,useRef as Oie,useState as _ie}from"react";import{PlaySolidIcon as Aie}from"efficient-shell/icons/efficient-looks";function IH({youTubeId:e,ownPoster:o,background:t,editing:r}){let[a,n]=_ie("large");return Eie(()=>n("large"),[e]),e?Pie(Tie,{children:[!o&&a!=="none"&&ba(JM,{src:a==="large"?lT(e):iT(e),alt:"",className:"absolute inset-0 z-[2] h-full w-full object-cover",onLoad:s=>{a==="large"&&s.currentTarget.naturalWidth<=120&&n("small")},onError:()=>n(a==="large"?"small":"none")},`${e}-${a}`),t&&!r&&ba("div",{className:"pointer-events-none absolute inset-0 z-[3] overflow-hidden [container-type:size]","aria-hidden":"true",children:ba("iframe",{src:rx(e,"background"),title:"",tabIndex:-1,allow:"autoplay; encrypted-media; picture-in-picture",className:"absolute left-1/2 top-1/2 h-[max(100%,56.25cqw)] w-[max(100%,177.78cqh)] -translate-x-1/2 -translate-y-1/2 border-0"})})]}):null}function gH({youTubeId:e,fileSrc:o,fileAv1Src:t,fileSrcPhone:r,fileAv1SrcPhone:a,playing:n,onPlay:s,editing:l}){let d=Oie(null),c=gd(d,!0,!0)==="phone";if(!e&&!o)return null;let f=Tc({video:o,av1:t,videoPhone:r,av1Phone:a},c),u=kc(f.video,f.av1);return n&&!l?e?ba("iframe",{src:rx(e,"click"),title:ax,allow:"autoplay; encrypted-media; picture-in-picture; fullscreen",allowFullScreen:!0,className:"absolute inset-0 z-[6] h-full w-full border-0 bg-overlay-scrim"}):ba("video",{ref:p=>{d.current=p},...u.length===1?{src:u[0].src}:{},controls:!0,autoPlay:!0,playsInline:!0,className:"absolute inset-0 z-[6] h-full w-full bg-overlay-scrim object-contain",children:u.length>1&&u.map(p=>ba("source",{src:p.src,type:p.type},p.src))},f.video):ba("button",{ref:p=>{d.current=p},type:"button","aria-label":ax,onClick:l?void 0:s,className:`absolute left-1/2 top-1/2 z-[4] grid h-16 w-16 -translate-x-1/2 -translate-y-1/2 place-items-center rounded-full bg-btn text-btn-ink shadow-lg transition-transform motion-reduce:transition-none ${l?"pointer-events-none":"cursor-pointer hover:scale-105"}`,children:ba(Aie,{size:28})})}function bH(e,o){if(!e)return[];let t=`[${o}]`;return Array.from(e.querySelectorAll(t)).filter(r=>{let a=r.parentElement?.closest(t);return!a||a===e||!e.contains(a)})}var yH=["top","middle","bottom"],SH=["left","center","right"],wH="bottom",CH="left",Rie={top:"Top",middle:"Middle",bottom:"Bottom"},Lie={left:"Left",center:"Center",right:"Right"},Qje="Up and down",eKe="Sideways",Fie={top:"flex-start",middle:"center",bottom:"flex-end"},Bie={left:"flex-start",center:"center",right:"flex-end"},Die="--sf-hero-phone-y",Nie="--sf-hero-phone-x";function Mie(e){return yH.includes(e)?e:wH}function Hie(e){return SH.includes(e)?e:CH}function vH(e,o){let t=Mie(e),r=Hie(o),a={};return t!==wH&&(a[Die]=Fie[t]),r!==CH&&(a[Nie]=Bie[r]),a}function oKe(){return yH.map(e=>({label:Rie[e],value:e}))}function tKe(){return SH.map(e=>({label:Lie[e],value:e}))}import{hexToRgb as Wie}from"efficient-shell/format";var Uie=!0;var zie=[[0,".5"],[30,".1"],[60,".1"],[100,".85"]];function kH(e){let o=Wie(e);return o?`${o.r},${o.g},${o.b}`:null}function TH(e){return e==null?Uie:e!==!1}function PH(e){let o=(e?kH(e):null)??kH(Nt);return`linear-gradient(180deg, ${zie.map(([t,r])=>`rgba(${o},${r}) ${t}%`).join(", ")})`}import{hexToRgb as EH}from"efficient-shell/format";var OH="bottom";var $ie=[{label:"Bottom",value:"bottom",cell:"bottom"},{label:"Top",value:"top",cell:"top"},{label:"Left",value:"left",cell:"left"},{label:"Right",value:"right",cell:"right"}],Gie={bottom:180,top:0,left:270,right:90},jie=[[.55,0],[.15,18],[null,35],[null,55],[.85,100]],Kie=[[null,33],[.6,67],[.94,100]];function Vie(e,o){let{r:t,g:r,b:a}=EH(e)??EH(Nt);return`rgba(${t},${r},${a},${o})`}function _H(e){return io($ie,OH,e)}function AH(e=Nt,o=OH){let t=_H(o),r=(t==="top"||t==="bottom"?jie:Kie).map(([a,n])=>`${a===null?"transparent":Vie(e,a)} ${n}%`);return`linear-gradient(${Gie[t]}deg, ${r.join(", ")})`}function RH(e,o){let t=Se(e.overlayColor),r=Se(e.overlayPosition),a=Se(o)??Nt;return!t&&!r?{own:!1,color:a,position:null}:{own:!0,color:t??a,position:_H(r)}}import{jsx as qie}from"react/jsx-runtime";var LH="sf-photo-hover";function FH({sheet:e,name:o=LH}){return e?qie("style",{href:o,precedence:LH,dangerouslySetInnerHTML:{__html:e}}):null}var Qie=Yie({});function OKe({name:e,process:o,mediaType:t="video",mediaSrc:r,videoSpeed:a,poster:n,mediaAv1:s,mediaSrcPhone:l,mediaAv1Phone:d,posterPhone:c,objectPosition:f,objectPositionPhone:u,objectPositionTablet:p,tintColor:h=Nt,tintOpacity:I=0,groups:g,editing:C=!1,themeClassName:w,themeStyle:T,overlayColor:y,overlayPosition:b,mediaLayout:P,mediaLayoutPhone:H,mediaImage2:E,objectPosition2:W,objectPosition2Phone:O,objectPosition2Tablet:D,tintColor2:v=Nt,tintOpacity2:_=0,videoSource:A,youtubeUrl:F,videoPlayback:z,partMotion:$,laterSlide:X=!1}){let ee=qr(),{alignment:Fe="left",textureOpacity:Oe,textureOn:ze,textureColor:Ke,quietVideo:be,phoneUpDown:Te,phoneSideways:_e,holdReel:Ne,reelHeld:ao,shownSlide:yo,ratioMin:ie}=Xie(Qie),Me=_d(),Ve=X&&Me==="first",J=Jie(null),[Ae,ft]=DH(yo===void 0?void 0:!1);Zie(()=>{let Ca=J.current;ft(yo===void 0||!Ca?void 0:bH(Ca.closest(".hero-track"),"data-slide-name")[yo]===Ca)});let fo=t==="video",M=fo?ut(r):void 0,Le=fo?ut(n):ut(r)??ut(n),ye=fo?{av1:ut(s),phone:ut(l),av1Phone:ut(d),poster:ut(c)}:{},po=typeof a=="number"?a/100:1,{fromYouTube:Be,onClick:_t,youTubeId:hr,backgroundFile:Ze,desktopLayout:xr,phoneLayout:ya,twoPictures:Nn}=fH({isVideo:fo,videoSource:A,videoPlayback:z,youtubeUrl:F,mediaLayout:P,mediaLayoutPhone:H}),[Mn,Ir]=DH(!1);Mn&&ao===!1&&Ir(!1);let Ur=!Mn,Sa=RH({overlayColor:y,overlayPosition:b},Ke),gl=fo?null:Ld($,"image"),wa=fo?null:Fd($,"image"),jd=mH($),bl=Et(Gm,{treatment:fo?{}:ul($,"image"),children:Et(Ad,{videoSrc:Ze?M:void 0,videoAv1Src:Ze?ye.av1:void 0,videoSrcPhone:Ze?ye.phone:void 0,videoAv1SrcPhone:Ze?ye.av1Phone:void 0,posterSrc:Le,posterSrcPhone:ye.poster,showVideo:Ze,playbackRate:po,objectPosition:f,objectPositionPhone:fo?void 0:u,objectPositionTablet:fo?void 0:p,quiet:be,slideShown:Ae,laterSlide:X,laterOfLead:Ve})}),Kd=BH("section",{ref:J,className:Yr(`${ie?"relative min-h-full w-full overflow-clip":"relative h-full w-full overflow-hidden"}${w?` ${w}`:""}`,ee.className),...ee.attrs,style:T,"data-slide-name":e??"","data-slide-process":o??"","data-slide-media":Ze&&M?"video":"still",...jd.hostAttrs,children:[Et(FH,{sheet:jd.sheet}),Et(hH,{partMotion:$,editing:C,children:Nn?Et(xH,{laterSlide:X,desktopLayout:xr,phoneLayout:ya,editing:C,marked:!1,partMotion:$,first:{src:r,objectPosition:f,objectPositionPhone:u,objectPositionTablet:p,tintColor:h,tintOpacity:I},second:{src:E,objectPosition:W,objectPositionPhone:O,objectPositionTablet:D,tintColor:v,tintOpacity:_}}):Be||gl||wa?BH(Km,{part:fo?"media":"image",editing:C,marked:!1,entrance:gl,scroll:wa,origins:$m({objectPosition:f,objectPositionTablet:p,objectPositionPhone:u}),className:"absolute inset-0 z-[1]",children:[bl,Be&&Et(IH,{youTubeId:hr,ownPoster:!!Le,background:!_t,editing:C})]}):bl}),_t&&Et(gH,{youTubeId:hr,fileSrc:Be?void 0:M,fileAv1Src:Be?void 0:ye.av1,fileSrcPhone:Be?void 0:ye.phone,fileAv1SrcPhone:Be?void 0:ye.av1Phone,playing:Mn,onPlay:()=>{Ir(!0),Ne?.()},editing:C}),Ur&&!Nn&&Et(jm,{color:h,opacity:I,passClicks:!1}),Ur&&TH(ze)&&Et("div",{className:"absolute inset-0 z-[2]",style:{background:Sa.own?AH(Sa.color,Sa.position??void 0):PH(Sa.color),...Oe!==void 0?{opacity:Oe/100}:null}}),Ur&&Et("div",{className:[ie?"sf-hero-group-layer relative min-h-full z-[3] mx-auto max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)] pt-[140px] pb-14":"sf-hero-group-layer absolute inset-0 z-[3] mx-auto max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)] pt-[140px] pb-14",C?"sf-hero-group-layer-edit":""].filter(Boolean).join(" "),style:{...uk,...vH(Te,_e)},children:g&&Et(g,{className:"sf-hero-group-zone",minEmptyHeight:160})})]});return ee.scope(Ve?Et(ZM,{children:Kd}):Kd)}var NH=Array.from({length:3},(e,o)=>({name:`Slide ${o+1}`,process:"Category",mediaType:"image",mediaVideo:"",poster:""}));import{newNodeId as HH}from"efficient-easel/draw";import{isNodeList as ede}from"efficient-easel/data";var WH=(e,o)=>({type:e.type,props:{...o?.(e.type)??{},...Object.fromEntries(Object.entries(e.props).map(([t,r])=>[t,ede(r)?r.map(a=>WH(a,o)):r]))}}),ode=e=>{let[o]=Gn([JS()],a=>HH(a)),{id:t,...r}=WH(o,e).props;return r},ur={Hero:{slot:"slides",childType:"HeroSlide",addLabel:"Add slide",slider:!0,seeds:()=>NH.map(e=>({...e}))},HeroSlide:{slot:"groups",childType:"HeroGroup",addLabel:`Add ${Sl.toLowerCase()}`,seeds:()=>[],addBlocked:zh,notice:$h},HeroSingle:{slot:"boxes",childType:"HeroGroup",addLabel:`Add ${Sl.toLowerCase()}`,seeds:()=>[],addBlocked:zh,notice:$h},ProcessSteps:{slot:vm,childType:te,addLabel:`Add ${Sl.toLowerCase()}`,seeds:e=>Array.from({length:ZS},()=>ode(e)),skipSeed:e=>Array.isArray(e.steps)&&e.steps.length>0}},MH=1,tde={slot:Oi,childType:te,addLabel:`Add ${Sl.toLowerCase()}`,seeds:()=>[],addBlocked:e=>e.length>=MH?"This Hero has its Scrolling Bar already. Delete it to add another.":null,notice:e=>e.length>MH?`This Hero holds ${e.length} Scrolling Bars. Keep one and delete the others.`:null},UH={Hero:{[Oi]:tde}};function UKe(e){for(let[o,t]of Object.entries(e)){if($e(ur,o)&&K(ur,o)!==t)throw new Error(`lib/document/slot-specs: "${o}" already has a slot spec`);ur[o]=t}}function zKe(e,o){let t=K(ur,e);return t?{slot:t.slot,children:t.seeds(o).map(r=>({type:t.childType,props:{id:HH(t.childType),...r}}))}:null}var rde={"Logos.logosPerRow":"columns","HeroSlide.tintOpacity":"overlay","Split.textBgTint":"overlay"},ade={"Footprint.source":"typed"};function Gw(e){let o=e.props,t=!1;if(e.type&&o)for(let[r,a]of Object.entries(rde)){let n=r.indexOf("."),s=r.slice(0,n),l=r.slice(n+1);if(s!==e.type||!(l in o))continue;let d=o[l],c={...o};delete c[l],(!(a in c)||c[a]===void 0)&&(c[a]=d),o=c,t=!0}if(e.type&&o)for(let[r,a]of Object.entries(ade)){let n=r.indexOf("."),s=r.slice(n+1);if(r.slice(0,n)!==e.type||!(s in o))continue;let l=typeof o[s]=="string"?o[s].trim():"",d={...o};delete d[s],gC(l)&&l!==a&&!Xt(d)&&(d[So]=l),o=d,t=!0}if(e.type&&o){let r=Ov(e.type,o);r!==o&&(o=r,t=!0)}if(o){let r=rs({props:o},a=>ts(a,Gw));r.props!==o&&(o=r.props,t=!0)}return t?{...e,props:o}:e}function VKe(e){let o=e;if(!o||typeof o!="object")return e;let t=!1,r={...e};if(Array.isArray(o.content)){let a=o.content.map(Gw);a.some((n,s)=>n!==o.content[s])&&(r.content=a,t=!0)}if(o.zones&&typeof o.zones=="object"){let a=!1,n=Object.fromEntries(Object.entries(o.zones).map(([s,l])=>{if(!Array.isArray(l))return[s,l];let d=l.map(Gw);return d.some((c,f)=>c!==l[f])&&(a=!0),[s,d]}));a&&(r.zones=n,t=!0)}return t?r:e}function zH(e){let o=r=>typeof r=="string"?r:null,t=e.theme_row===void 0?null:e.theme_row==="site";return{schema:String(e.schema),site:String(e.site),headingCase:o(e.heading_case),textStyles:typeof e.text_styles_is_null=="boolean"?!e.text_styles_is_null:null,textStylesList:Array.isArray(e.text_styles)?e.text_styles:null,ownThemeRow:t,deleted:e.site_deleted===!0,...Array.isArray(e.theme_presets)?{themePresets:e.theme_presets}:{},...typeof e.selected_preset=="number"?{selectedPreset:e.selected_preset}:{},...typeof e.site_gutter=="number"?{siteGutter:e.site_gutter}:{},...typeof e.site_gutter_phone=="number"?{siteGutterPhone:e.site_gutter_phone}:{},..."site_gutter_unit"in e?{siteGutterUnit:o(e.site_gutter_unit)}:{},..."site_gutter_phone_unit"in e?{siteGutterPhoneUnit:o(e.site_gutter_phone_unit)}:{}}}function jH(e){let o=sde(c=>c.appState.data.content),{theme:t,themeRow:r,themeFromDocument:a,siteGutter:n,siteGutterPhone:s,siteLengthUnits:l}=he(),d=nde(new Set);$H(()=>{let c=GH({theme:t,themeRow:r,themeFromDocument:a,siteGutter:n,siteGutterPhone:s,siteLengthUnits:l});c&&lde(yF(o,void 0,c),e,d.current)},[o,e,t,r,a,n,s,l]),$H(()=>{let c=UM(GH({theme:t,themeRow:r,themeFromDocument:a,siteGutter:n,siteGutterPhone:s,siteLengthUnits:l}));return()=>zM(c)},[t,r,a,n,s,l])}function GH(e){if(e.themeFromDocument||e.themeRow==="none")return{};if(e.themeRow!=="read")return null;let{siteGutter:o=null,siteGutterPhone:t=null,siteLengthUnits:r={}}=e;if(o===null&&t===null)return{theme:e.theme};let a=zH({schema:"",site:"",site_gutter:o,site_gutter_phone:t,site_gutter_unit:r.siteGutterUnit??null,site_gutter_phone_unit:r.siteGutterPhoneUnit??null});return{theme:e.theme,site:a}}function lde(e,o,t){for(let{index:r,nodes:a}of[...e].sort((n,s)=>s.index-n.index)){let n=String(a[0].props.id);t.has(n)||(t.add(n),o.replaceComponent(jw,r,a[0]),a.slice(1).forEach((s,l)=>{o.insertNode(jw,r+1+l,s),o.replaceComponent(jw,r+1+l,s)}))}}import{ROOT_ZONE as ml,missingPinnedTypes as ude,pinnedDuplicateIds as qw}from"efficient-easel/draw";function KH(e){return!e.docId||e.saveStatus==="saving"?!1:e.seededDocId!==e.docId}function VH(e,o){let t=e.some(l=>l?.type===Ue),r=e[e.length-1],a=!t&&r?.type===Xe?r:null,n=e.filter(l=>l?.type===Xe&&l!==a).map(l=>String(l.props?.id??"")).filter(Boolean),s=o.hasChromeDoc&&!t&&!a;return{remove:n,seedHeader:!e.some(l=>l?.type===Jo),seedFooter:s,seedSiteHeader:s&&!e.some(l=>l?.type===Ye)}}async function qH(e){let o=e.blocks?.seeds?.siteHeader;if(!o)return!1;let t;try{t=await o({make:e.make,id:e.id,siteId:e.siteId,token:e.token})}catch{return!1}if(!t||t.type!==Ye||!e.stillOpen())return!1;let r=e.latest();return r.some(a=>a?.type===Ye)?!1:(e.write(Rc(r,t)),!0)}function YH(e,o){let{adapter:t,capabilities:r,currentSlug:a,docId:n,data:s,saveStatus:l,siteId:d,tokenRef:c}=fde(),f=pde(),{hasSiteSettings:u,hasPinnedChrome:p}=r;jH(e);let h=!!r.editsPinnedInPlace&&a!==Mt,I=a===Mt,g=cde().getState,C=dde(null);ide(()=>{if(!KH({docId:n,saveStatus:l,seededDocId:C.current})||(C.current=n,!p))return;let w=g().appState.data,T=w.content,y=s?.content??[],b=(W,O)=>W.some(D=>D?.type===O);if(!u){let W=new Set(qw(T)),O=W.size?T.filter(v=>!W.has(v.props.id)):T;if(W.size&&e.setDocument({...w,content:O}),I)return;let D=ude(O,y);if(D.includes(Xe)){let v=O.length,_=e.insertSection(Xe,v);e.replaceComponent(ml,v,{type:Xe,props:{id:_,blocks:Du()}})}D.includes(Jo)&&e.insertNode(ml,0,Bu());return}if(I){let W=ss(T);if(W!==T&&e.setDocument({...w,content:[...W]}),!W.find(O=>O.type===Xe)&&!b(y,Xe)&&!b(W,Ue)&&!b(y,Ue)){let O=(v,_)=>Kw(o,v,_),D={type:Xe,props:{blocks:Du()}};e.insertNode(ml,W.length,Zi(D,O,Vw(Ue),vd))}return}if(h){let W=!!t?.pinnedChrome?.state().docId,O=VH(T,{hasChromeDoc:W}),D=new Set([...O.remove,...qw(T.filter(_=>!O.remove.includes(String(_.props.id))))]),v=D.size?T.filter(_=>!D.has(String(_.props.id))):T;if(v.length!==T.length&&e.setDocument({...w,content:v}),O.seedFooter&&!b(y,Xe)&&!b(y,Ue)){let _=(F,z)=>Kw(o,F,z),A={type:Xe,props:{blocks:Du()}};e.insertNode(ml,v.length,Zi(A,_,Vw(Ue),vd))}if(O.seedHeader&&!b(y,Jo)){let _=v[0]?.type===Ye?1:0;e.insertNode(ml,_,Bu())}if(O.seedSiteHeader&&!b(y,Ye)&&!b(y,Xe)&&!b(y,Ue)){let _=n;qH({blocks:nf(f),make:(A,F)=>Kw(o,A,F),id:Vw(Ye),siteId:d??null,token:c.current,latest:()=>g().appState.data.content,stillOpen:()=>C.current===_,write:A=>{let F=g().appState.data;e.setDocument({...F,content:[...A]})}})}return}let P=T.filter(W=>W.type!==Xe),H=new Set(qw(P)),E=H.size?P.filter(W=>!H.has(W.props.id)):P;E.length!==T.length&&e.setDocument({...w,content:E}),!b(E,Jo)&&!b(y,Jo)&&e.insertNode(ml,0,Bu())},[n,l,s,g,e,u,p,I,h,t,f,d,c])}import{useEffect as u4,useMemo as Pde,useRef as m4}from"react";import{useEasel as Ede}from"efficient-easel/easel";import{useEaselHost as Ode}from"efficient-easel/screen/lib/host";import{FIELD_DESCRIPTION_MARKER as Sde}from"efficient-easel/screen/lib/host";import{isNode as Xw}from"efficient-easel/data";import{SITE_SIDE as JH}from"efficient-easel/screen/lib/content/length-units";var XH=[{text:"Ticker item"},{text:"Ticker item"},{text:"Ticker item"},{text:"Ticker item"}],_8e={label:"Scrolling Bar",defaultProps:{items:[],tone:"scrim",borders:!0,size:av,separator:nv,scrollDirection:Ni}};var ZH=()=>[{text:i("Spec label"),tone:"normal"},{text:i("Spec value"),tone:"muted"},{text:i("Spec label"),tone:"normal"},{text:i("Spec value"),tone:"muted"}],L8e={label:"Spec Strip",defaultProps:{cells:[{text:"",tone:"normal"},{text:"",tone:"normal"}],fill:"dark"}};function Bo(e,o,t,r={}){return{type:e,props:{...o(e),id:t(e),...r}}}function QH(e,o,t){return Bo(te,e,o,{...t,sectionPaddingTop:void 0,sectionPaddingBottom:void 0})}var Vm={Manifesto:(e,o)=>({type:te,props:{...e(te),id:o(te),direction:"row",share:"equal",sectionHeightMode:"screen",name:"Brand Text",content:[Bo(te,e,o,{direction:"column",justify:"center",blockSpacing:"gap",name:"Text",sectionPaddingTop:100,sectionPaddingBottom:100,sectionPaddingLeft:JH,sectionPaddingRight:JH,content:[Bo("Text",e,o,vr()),Bo("Text",e,o,jr()),Bo("Text",e,o),Bo("Stats",e,o)]}),QH(e,o,{direction:"column",name:"Picture",content:[]})]}}),Split:(e,o)=>({type:te,props:{...e(te),id:o(te),direction:"row",share:"equal",sectionHeightMode:"screen",sectionHeightValue:70,name:"Image & Text Split",content:[Bo(te,e,o,{direction:"column",justify:"center",blockSpacing:"gap",name:"Text",sectionPaddingTop:100,sectionPaddingBottom:100,sectionPaddingLeft:60,sectionPaddingRight:60,content:[Bo("Text",e,o,vr()),Bo("Text",e,o,jr()),Bo("Text",e,o),Bo("ButtonBlock",e,o)]}),QH(e,o,{direction:"column",name:"Image",content:[Bo("ImageBlock",e,o)]})]}}),Subscribe:(e,o)=>({type:te,props:{...e(te),id:o(te),direction:"column",name:"Subscribe",content:[Bo("Text",e,o,jr()),Bo("Text",e,o),Bo("Form",e,o)]}}),Ticker:(e,o)=>e4("Scrolling Bar",um,ud,XH.map(t=>({text:t.text,style:mm,muted:!0})),e,o),SpecStrip:(e,o,t)=>e4("Spec Strip",t?.theme?{...hd,sectionAccent:uc(xo(t.theme))}:{...hd,sectionBorder:{top:1}},md,ZH().map(r=>({text:r.text??"",style:xd,muted:r.tone==="muted"})),e,o)};function e4(e,o,t,r,a,n){return Bo(te,a,n,{...En,...o,blockSpacing:"gap",padV2:!0,name:e,sectionPaddingTop:t.top,sectionPaddingBottom:t.bottom,sectionPaddingTopPhone:t.topPhone,sectionPaddingBottomPhone:t.bottomPhone,content:r.map(s=>Bo("Text",a,n,{text:s.text,...s.muted?{tone:"dim"}:{},_partStyles:{text:s.style}}))})}function o4(e){return K(Vm,e)??null}import{isNodeList as Yw}from"efficient-easel/data";var a7e=Object.keys(Sw),mde={Logos:eD,DocMasthead:bN,DocTabs:ON,Timeline:zD,TimelineTrack:$D},hde={PaymentBadges:oD,PaymentLogosBlock:tD,Integrations:T2};function qm(e,o,t){let r={};for(let a of Object.keys(o(e.type)))r[a]=void 0;for(let[a,n]of Object.entries(e.props))r[a]=Yw(n)?n.map(s=>qm(s,o,t)):n;return r.id=t(e.type),{type:e.type,props:r}}var t4=e=>({...e?.theme?{theme:e.theme}:{},...e?.site?{site:e.site}:{},press:!0});function Ym(e,o,t=0,r=()=>({})){return(a,n,s)=>{let{nodes:l}=Zs({type:e,props:{...a(e),...r(),id:n(e)}},o,t4(s));return qm(l[t],a,n)}}var xde={Stats:gde,Cards:Ide};function Ide(){let e=ca("Cards");if(!e)return null;let o=Ym("Cards",e,0,OB);return(t,r,a)=>{let n=o(t,r,a);return{...n,props:{...n.props,name:"Cards section"}}}}function gde(){let e=ca("StatsParagraph");return e?(o,t,r)=>{let{nodes:a}=Zs({type:"StatsParagraph",props:{...o("StatsParagraph"),...UB(),id:t("StatsParagraph")}},e,t4(r)),n=a[0],s=Yw(n.props.content)?n.props.content.filter(f=>f.props?.cardStyle===void 0):[],l=a4(CS(zB(),"table")),d=s.map(r4),c=qm({...n,props:{...n.props,content:[...d,l]}},o,t);return{...c,props:{...c.props,name:"Stats section"}}}:null}function r4(e){return e.props?.name==="Words"?{...e,props:{...e.props,widthFitPhone:"fill"}}:Yw(e.props?.content)?{...e,props:{...e.props,content:e.props.content.map(r4)}}:e}var a4=e=>Gn([e],(o,t)=>`${o}-seed-${t}`)[0];function bde(e,o){if(!bF(e,o))return null;let t=K(xde,e);if(t)return t();let r=ca(e);return r?Ym(e,r,0,K(mde,e)??K(Y2,e)??K(hde,e)):null}function yde(e){return(o,t,r)=>{let a=n=>{if(n.type==="Stats"){let l=qm(a4(CS([],"list")),o,t);return{...l,props:{...l.props,name:"Numbers"}}}let s=rs(n,l=>ts(l,a));return s===n?n:{type:n.type,props:s.props}};return a(e(o,t,r))}}function hl(e,o=Qi){let t=o4(e);return t?yde(t):bde(e,o)}function Bd(e,o){let t=e.components[o]?.label;return typeof t=="string"&&t.trim()?t.trim():o}function wde(e){return e.length>3&&e.endsWith("s")?e.slice(0,-1):e}function Zw(e,o,t,r){e.forEach((a,n)=>{if(Xw(a)){r.push({node:a,list:e,index:n,parent:o,slot:t});for(let[s,l]of Object.entries(a.props))Array.isArray(l)&&l.some(Xw)&&Zw(l,a,s,r)}})}function Cde(e){let o=[];Zw(Array.isArray(e.content)?e.content:[],null,"",o);for(let t of Object.values(e.zones??{}))Array.isArray(t)&&Zw(t,null,"",o);return o}function l4(e,o){return Cde(e).find(t=>String(t.node.props.id)===o)}function i4(e,o,t){if(!t)return null;let r=l4(o,t);if(!r)return null;let a=Bd(e,r.node.type),n=r.parent?`${Bd(e,r.parent.type)} \xB7 ${wde(r.slot)} ${r.index+1}`:a;return{blockId:t,type:r.node.type,label:n,path:""}}var vde=e=>e.filter(o=>!!o&&typeof o=="object"&&"value"in o).map(o=>typeof o.label=="string"?{value:o.value,label:o.label}:{value:o.value});function kde(e){if(!e||typeof e!="object")return null;let o=e;if(typeof o.type!="string")return null;let t=o.type==="custom"?o[Sde]:void 0,r={type:t?.type??o.type},a=t?.label??o.label;typeof a=="string"&&(r.label=a);let n=t?.options??o.options;Array.isArray(n)&&(r.options=vde(n));for(let s of["arrayFields","objectFields"]){let l=t?.[s]??o[s];l&&typeof l=="object"&&(r[s]=d4(l))}return r}function d4(e){let o={};for(let[t,r]of Object.entries(e??{})){let a=kde(r);a&&(o[t]=a)}return o}function c4(e){let o={};for(let[t,r]of Object.entries(e.components))r&&(o[t]={label:Bd(e,t),fields:d4(r.fields),...f4(t)?{retired:!0}:{}});return o}function f4(e){return $e(wC,e)}function n4(e,o){let t=e.components[o]?.defaultProps;return t&&typeof t=="object"?structuredClone(t):{}}function Tde(e,o){let t=e;for(let r of o?o.split("."):[]){let a=/^([A-Za-z_][A-Za-z0-9_]*)(?:\[(\d+)\])?$/.exec(r);if(!a||!t||typeof t!="object")return null;t=t[a[1]],a[2]!==void 0&&(t=Array.isArray(t)?t[Number(a[2])]:void 0)}return t&&typeof t=="object"&&!Array.isArray(t)?t:null}function Jw(e,o){return e.findIndex(t=>Xw(t)&&String(t.props.id)===o)}function s4(e,o,t){let r=o||t;if(!r)return e.length;let a=Jw(e,r);if(a<0)throw new Error(`there is no top-level block ${r}`);return o?a+1:a}function p4(e,o,t,r,a={}){let n=structuredClone(o),s=Array.isArray(n.content)?n.content:n.content=[];try{t.forEach((l,d)=>{let c=f=>{throw new Error(`change ${d+1}: ${f}`)};switch(l.op){case"set_props":{let f=l4(n,l.block_id)??c(`there is no block ${l.block_id}`);"id"in l.props&&c("a block's id is never changed");let u=Tde(f.node.props,l.path)??c(`there is no ${l.path} in that block`);Object.assign(u,structuredClone(l.props));break}case"insert_block":{e.components[l.type]??c(`there is no block type ${l.type}`),f4(l.type)&&c(`${Bd(e,l.type)} is retired: it is no longer added (a page that holds one keeps it)`);let f=hl(l.type),u=Object.keys(l.props??{}).filter(h=>h!=="id");f&&u.length&&c(`${Bd(e,l.type)} is laid down as a Box of blocks: insert it with no props, then change its blocks`);let p=f?f(h=>n4(e,h),r,a):{type:l.type,props:{...n4(e,l.type),...structuredClone(l.props),id:r(l.type)}};s.splice(s4(s,l.after,l.before),0,p);break}case"remove_block":{let f=Jw(s,l.block_id);f<0&&c(`there is no top-level block ${l.block_id}`),s.splice(f,1);break}case"move_block":{let f=Jw(s,l.block_id);f<0&&c(`there is no top-level block ${l.block_id}`);let[u]=s.splice(f,1);s.splice(s4(s,l.after,l.before),0,u);break}default:c(`"${l.op}" is not a change this editor makes`)}})}catch(l){return{ok:!1,reason:l instanceof Error?l.message:String(l)}}return{ok:!0,document:n}}var Qw=e=>Se(e.requestId)??null;function h4(){let e=Ode(),{appState:o,selectedItem:t,dispatch:r,history:a,config:n}=Ede(p=>p),s=n,l=m4({appState:o,dispatch:r,history:a,blockConfig:s});l.current={appState:o,dispatch:r,history:a,blockConfig:s};let d=m4(new Map),c=t?.props?.id,f=Pde(()=>i4(s,o.data,c),[s,o.data,c]),u=f?JSON.stringify(f):"";u4(()=>{e.connected&&e.send("storefront-editor:selection",{selection:f})},[e,u]),u4(()=>e.subscribe(p=>{let{appState:h,dispatch:I,history:g,blockConfig:C}=l.current;switch(p.type){case"storefront-editor:request-document":{let w=Qw(p);if(!w)return;e.send("storefront-editor:document",{requestId:w,document:h.data,blocks:c4(C)});return}case"storefront-editor:apply-page-edits":{let w=Qw(p);if(!w)return;let T=Array.isArray(p.ops)?p.ops:[],y=T.length?p4(C,h.data,T,b=>`${b}-${crypto.randomUUID()}`,cl()):{ok:!1,reason:"no changes"};y.ok&&(I({type:"setData",data:y.document,recordHistory:!0}),d.current.set(w,JSON.stringify(y.document.content??[]))),e.send("storefront-editor:page-edits-result",{requestId:w,applied:y.ok,reason:y.ok?null:y.reason});return}case"storefront-editor:undo-page-edits":{let w=Qw(p);if(!w)return;let T=d.current.get(w),y=T!==void 0&&T===JSON.stringify(h.data.content??[]);y&&g.hasPast&&(g.back(),d.current.delete(w)),e.send("storefront-editor:page-edits-result",{requestId:w,applied:y&&g.hasPast,reason:y?null:"the page has changed since"});return}case"storefront-editor:set-right-panel":typeof p.shown=="boolean"&&I({type:"setUi",ui:{rightSideBarVisible:p.shown}});return;default:return}}),[e])}import{useEffect as g4,useState as b4}from"react";var Xm=new Map;async function _de(e,o){try{return(await to().site.get({siteId:o})).slug?.trim()||null}catch(t){return console.warn("[editor-site-slug] could not resolve the site slug",t),null}}function x4(e,o){let t=Xm.get(o);return t||(t=_de(e,o),Xm.set(o,t),t.catch(()=>{Xm.get(o)===t&&Xm.delete(o)})),t}var Ade=/^(localhost|(?:[a-z0-9-]+\.)+localhost|127(?:\.\d{1,3}){3}|0\.0\.0\.0|\[::1\]|::1)$/i;function eC(e){return!!e&&Ade.test(e)}function I4(e){let{pageSlug:o,siteSlug:t,hostname:r}=e,a=o===Vc?"/":`/${encodeURIComponent(o)}`;if(!eC(r))return a;let n=t?.trim();return n?`${a}?site=${encodeURIComponent(n)}`:a}function y4(e){let{pageSlug:o,siteId:t,token:r}=e,[a,n]=b4(null),[s,l]=b4(null),d=Nk();g4(()=>{try{l(new URL(Cc()).hostname)}catch{l(null)}},[d]),g4(()=>{if(!eC(s)||!t||!r){n(null);return}let f=!1;return x4(r,t).then(u=>{f||n(u)}),()=>{f=!0}},[s,t,r]);let c=I4({pageSlug:o,siteSlug:a,hostname:s});return d?`${d}${c}`:c}import{jsx as Dd}from"react/jsx-runtime";import{useEffect as Rde,useRef as S4,useState as Lde}from"react";import{ExternalIcon as w4}from"efficient-easel/icons";import{EaselIconButton as Fde}from"efficient-easel/chrome";import{Tooltip as Bde,iconButtonClasses as Dde}from"efficient-shell/ui";import{useSettledPress as Nde}from"efficient-easel/easel";import{useScreenDocument as Mde}from"efficient-easel/screen/components/ScreenDocumentContext";async function Hde({pageId:e,liveHref:o,draftLink:t,ready:r=async()=>!0,win:a=window}){let n=a.open("","_blank");if(n)try{n.opener=null}catch{}let s=l=>{n&&!n.closed?n.location.href=l:a.open(l,"_blank","noopener,noreferrer")};try{await r()}catch{}return t(e).then(l=>s(l.url??o),()=>s(o))}function C4({liveHref:e,pageId:o,draftLink:t}){let{flushSave:r}=Mde(),a=S4(r);a.current=r;let n=Nde(),[s,l]=Lde(!1),d=S4(null);if(Rde(()=>()=>d.current?.(),[]),t&&o){let c=()=>new Promise((u,p)=>{d.current=()=>u(!1),n.run(()=>{d.current=null,a.current().then(u,p)})}),f=()=>{s||n.waiting||(l(!0),Hde({pageId:o,liveHref:e,draftLink:t,ready:c}).finally(()=>l(!1)))};return Dd(Fde,{label:i("Preview your saved draft in a new tab"),tip:i("Open your saved draft in a new tab. Visitors don't see it."),disabled:s||n.waiting,onClick:f,children:Dd(w4,{})})}return Dd(Bde,{content:i("Preview the live site (opens in a new tab)"),side:"bottom",children:Dd("a",{className:Dde({className:"es-iconbtn"}),href:e,...sd,"aria-label":i("Preview the live site in a new tab"),children:Dd(w4,{})})})}import{createElement as Gde,useCallback as jde,useEffect as W4,useRef as U4,useState as Kde}from"react";import{ClockIcon as Vde}from"efficient-shell/icons/efficient";import{useScreenDocument as qde}from"efficient-easel/screen/components/ScreenDocumentContext";import{useSyncExternalStore as Wde}from"react";import{useScreenDocument as Ude}from"efficient-easel/screen/components/ScreenDocumentContext";var zde=()=>()=>{},v4=()=>null;function Zm(e){return Wde(e?e.subscribe:zde,e?e.state:v4,e?e.state:v4)}function Jm(){let{adapter:e}=Ude();return e?.pinnedChrome}import{useSyncExternalStore as P4}from"react";var Nd=!1,xl=null,oC=new Set;function Hd(){for(let e of oC)e()}function E4(e){return oC.add(e),()=>{oC.delete(e)}}function O4(){Nd||(Nd=!0,Hd())}function _4(){Nd&&(Nd=!1,Hd())}function k4(){return Nd}function A4(){return P4(E4,k4,k4)}function T4(){return xl}function Qm(){xl&&(xl=null,Hd())}function R4(){return P4(E4,T4,T4)}var Md=class extends Error{constructor(){super("The editor's last changes could not be saved, so nothing was restored."),this.name="HeldEditsNotSaved"}};async function L4(e,o,t,{flushSave:r,reload:a}){if(!await r())throw new Md;let n=await e.restore(o,t);return If(n.liveState),a(),n}async function F4({access:e,version:o,page:t,...r}){let a=await L4(e,o.id,t?{page:t.id}:{},r);xl={title:$de(o,t??null),undo:a.undo},Hd()}async function B4({access:e,...o}){let t=xl?.undo;t&&(await L4(e,t,{},o),xl=null,Hd())}function D4(e){return e.name?e.name:e.kind==="draft_before_restore"?i("Draft before restore"):i("Version {n}",{n:e.number})}function $de(e,o){return e.kind==="draft_before_restore"?i("Your drafts from before the restore are back"):o?i("{page} from version {n} is now your draft",{page:o.name,n:e.number}):i("Version {n} is now your draft",{n:e.number})}function N4(e){let o=e.changes.filter(r=>r.kind==="page").length,t=[...o?[Uo("{n} page","{n} pages",o)]:[],...e.changes.filter(r=>r.kind!=="page").map(r=>r.name)];if(!t.length)return"";try{return new Intl.ListFormat(Yh(),{type:"conjunction"}).format(t)}catch{return t.join(", ")}}function M4(e){return e.change==="take_down"?i("{name} (taken down)",{name:e.name}):e.name}function H4(e,o=new Date){let t=new Date(e);if(Number.isNaN(t.getTime()))return"";let r=Yh(),a=new Intl.DateTimeFormat(r,{hour:"numeric",minute:"2-digit"}).format(t);if(t.toDateString()===o.toDateString())return i("Today, {time}",{time:a});let n=new Intl.DateTimeFormat(r,{day:"numeric",month:"short",...t.getFullYear()===o.getFullYear()?{}:{year:"numeric"}}).format(t);return i("{day}, {time}",{day:n,time:a})}function z4(e){let{docId:o,capabilities:t,hasUnsavedEdits:r,onPublish:a,adapter:n}=qde(),s=YL(qL(o??null),r),l=Zm(Jm()),d=n.siteLiveState;W4(()=>{if(d)return iI(d),Or(0),()=>iI(null)},[d]);let c=gf(),[f,u]=Kde(!1),p=U4(e);p.current=e;let h=U4(!0);W4(()=>(h.current=!0,()=>{h.current=!1}),[]);let I=jde(()=>{u(!0),a(p.current).then(()=>{Qm()}).finally(()=>{h.current&&u(!1)})},[a]);if(t.canPublish){if(d){let g=c===void 0?void 0:r||c.state==="changed"?"changed":"live",C=jy({live:g,onPress:I,busy:f,goingLive:XL(c?.changes??[])});return n.siteVersions?{...C,menuItems:Yde()}:C}return jy({live:s,onPress:I,busy:f,pinnedUnpublished:l?.unpublished??!1})}}function Yde(){return[{key:"version-history",label:i("Version history"),icon:Gde(Vde),onSelect:O4}]}import{jsx as ae,jsxs as ct,Fragment as zd}from"react/jsx-runtime";import{useCallback as Xde,useEffect as Zde,useId as j4,useRef as Jde,useState as Ot}from"react";import{useSettledAction as Qde}from"efficient-easel/easel";import{Avatar as ece,Banner as Wd,Button as Dn,ColoredBadge as tC,Dialog as K4,Drawer as oce,DropdownMenu as tce,FormField as V4,iconButtonClasses as rce,Inline as rC,Input as ace,ListRow as nce,Select as sce,SortableList as lce,Stack as Ud}from"efficient-shell/ui";import{EditIcon as ice,EyeIcon as $4,MenuIcon as dce,MoreIcon as cce,PageIcon as q4,RevertIcon as G4,StylesIcon as fce}from"efficient-shell/icons/efficient";import{useScreenDocument as Y4}from"efficient-easel/screen/components/ScreenDocumentContext";var pce={page:q4,menu:dce};function uce(e,o){return e.pages.find(t=>t.id===o)??e.pages[0]??null}function mce(e,o){let t=window.open("","_blank");if(t)try{t.opener=null}catch{}return e.preview(o).then(({url:r})=>{t&&!t.closed?t.location.href=r:window.open(r,"_blank","noopener,noreferrer")},r=>{throw t?.close(),r})}function hce({version:e,page:o,waiting:t,busy:r,error:a,onCancel:n,onConfirm:s,onPage:l}){let d=j4();if(!e)return null;let c=e.kind==="draft_before_restore",f=e.number,u=N4(e),p=c?i("Put your drafts back?"):o?i("Restore {page} from version {n}?",{page:o.name,n:f}):i("Restore version {n}?",{n:f}),h=c?i("Your drafts go back to how they were before the restore."):o?i("{page} goes back to version {n} as a draft. Nothing else on your website changes.",{page:o.name,n:f}):u?i("The whole website goes back to version {n} as a draft: {what}.",{n:f,what:u}):i("The whole website goes back to version {n} as a draft.",{n:f}),I=e.deletedPictures??0;return ae(K4,{open:!0,onClose:()=>{r||n()},size:"sm",title:p,footer:ct(zd,{children:[ae(Dn,{variant:"secondary",onClick:n,disabled:r,children:i("Cancel")}),ae(Dn,{onClick:s,loading:r,disabled:r,children:i("Restore as draft")})]}),children:ct(Ud,{gap:4,children:[o&&e.pages.length>1?ae(V4,{label:i("Page"),htmlFor:d,children:ae(sce,{id:d,value:o.id,options:e.pages.map(g=>({value:g.id,label:g.name})),onChange:l,disabled:r})}):null,ae("p",{children:h}),ae("p",{children:i("Your live website does not change until you press Publish.")}),I>0?ae(Wd,{tone:"warning",children:Uo("{n} picture in this version was deleted from the media library. It stays empty.","{n} pictures in this version were deleted from the media library. They stay empty.",I)}):null,t?ae(Wd,{tone:"info",title:i("Your unpublished changes are kept"),children:i("They are saved in Version history as \u201CDraft before restore\u201D, so you can get them back.")}):null,a?ae(Wd,{tone:"danger",children:a}):null]})})}function xce({version:e,onCancel:o,onSave:t}){let r=j4(),[a,n]=Ot(null),[s,l]=Ot(""),[d,c]=Ot(!1),[f,u]=Ot(null);if(e!==a&&(n(e),l(e?.name??""),u(null)),!e)return null;let p=s.trim()===e.name,h=async()=>{if(!(d||p)){c(!0),u(null);try{await t(s.trim())}catch{u(i("The name was not saved. Try again."))}finally{c(!1)}}};return ae(K4,{open:!0,onClose:()=>{d||o()},size:"sm",title:i("Name this version"),footer:ct(zd,{children:[ae(Dn,{variant:"secondary",onClick:o,disabled:d,children:i("Cancel")}),ae(Dn,{onClick:()=>{h()},loading:d,disabled:d||p,children:i("Save")})]}),children:ae(V4,{label:i("Name"),htmlFor:r,hint:i("Named versions are always kept. Leave it empty to take the name away."),error:f??void 0,children:ae(ace,{id:r,value:s,invalid:!!f,onChange:I=>l(I.target.value),onKeyDown:I=>{I.key==="Enter"&&h()}})})})}function Ice({version:e,expanded:o,onToggle:t,onPreview:r,onRestore:a,onRestorePage:n,onName:s}){let l=e.kind==="draft_before_restore",d=!e.live,c=e.changes.length,f=[...l?[]:[{key:"preview",label:i("Preview"),icon:ae($4,{}),onSelect:r}],...d?[{key:"restore",label:l?i("Put these drafts back"):i("Restore whole website"),icon:ae(G4,{}),onSelect:a}]:[],...d&&!l&&e.pages.length?[{key:"restore-page",label:i("Restore one page only"),icon:ae(q4,{}),onSelect:n}]:[],...l?[]:[{type:"divider",key:"divider"},{key:"name",label:i("Name this version"),icon:ae(ice,{}),onSelect:s}]];return ae(nce,{title:ct("span",{className:"sf-version-title",children:[ae("span",{children:D4(e)}),e.live?ae(tC,{tone:"success",size:"xs",children:i("Live")}):null,e.name?ae(tC,{tone:"neutral",size:"xs",children:i("Version {n}",{n:e.number})}):null,l?ae(tC,{tone:"warning",size:"xs",children:i("Not published")}):null]}),expanded:o,onToggle:t,actions:ae(tce,{align:"end","aria-label":i("More"),items:f,triggerClassName:rce({variant:"ghost",size:"sm"}),trigger:ae(cce,{})}),below:ct(Ud,{gap:3,children:[ct(rC,{gap:2,align:"center",wrap:!0,className:"sf-version-meta",children:[ae(ece,{name:e.createdBy,size:"xs"}),ae("span",{children:e.createdBy}),ae("span",{"aria-hidden":"true",children:"\xB7"}),ae("span",{children:H4(e.createdAt)}),c?ct(zd,{children:[ae("span",{"aria-hidden":"true",children:"\xB7"}),ae("span",{children:Uo("{n} change","{n} changes",c)})]}):null]}),o?ct(Ud,{gap:3,children:[c?ae(Ud,{gap:2,children:e.changes.map(u=>{let p=pce[u.kind]??fce;return ct(rC,{gap:2,align:"center",children:[ae(p,{size:16}),ae("span",{children:M4(u)})]},`${u.kind}:${u.id}`)})}):null,ct(rC,{gap:2,children:[l?null:ae(Dn,{variant:"secondary",size:"sm",leftIcon:ae($4,{}),onClick:r,children:i("Preview")}),d?ae(Dn,{variant:"secondary",size:"sm",leftIcon:ae(G4,{}),onClick:a,children:i("Restore")}):null]})]}):null]})})}function gce({open:e,onClose:o,access:t,waiting:r}){let{flushSave:a,reloadFromServer:n,docId:s}=Y4(),[l,d]=Ot(null),[c,f]=Ot(!1),[u,p]=Ot(null),[h,I]=Ot(null),[g,C]=Ot(!1),[w,T]=Ot(null),[y,b]=Ot(null),[P,H]=Ot(!1),E=Jde(0),W=Xde(()=>{let _=++E.current;f(!1),t.list().then(A=>{_===E.current&&d(A)},()=>{_===E.current&&f(!0)})},[t]);Zde(()=>{e&&W()},[e,W]);let O=_=>{H(!1),mce(t,_.id).catch(()=>H(!0))},D=async()=>{if(!(!h||g)){C(!0),T(null);try{await F4({access:t,version:h.version,page:h.page,flushSave:a,reload:n}),I(null),o()}catch(_){T(_ instanceof Md?i("Your last changes did not save, so nothing was restored. Try again."):i("The version was not restored. Nothing changed. Try again."))}finally{C(!1)}}},v=Qde({onPress:()=>{D()},busy:g});return ct(zd,{children:[ae(oce,{open:e,onClose:o,side:"right",size:"md",title:i("Version history"),description:ct(zd,{children:[i("Every Publish keeps a copy of the whole website: pages, menus and site styles.")," ",i("Products, prices and forms always show as they are now.")]}),footer:ae("span",{className:"sf-version-foot",children:i("The newest 30 are kept. Named versions are always kept.")}),children:ct(Ud,{gap:3,children:[P?ae(Wd,{tone:"danger",onDismiss:()=>H(!1),children:i("The preview did not open. Try again.")}):null,c?ae(Wd,{tone:"danger",action:ae(Dn,{variant:"secondary",size:"sm",onClick:W,children:i("Try again")}),children:i("Version history did not load.")}):l===null?ae("p",{className:"sf-version-foot",children:i("Loading versions")}):l.length===0?ae("p",{className:"sf-version-foot",children:i("No versions yet. Every Publish from now on keeps one.")}):ae(lce,{"aria-label":i("Versions"),spacing:"comfortable",children:l.map(_=>ae(Ice,{version:_,expanded:u===_.id,onToggle:()=>p(A=>A===_.id?null:_.id),onPreview:()=>O(_),onRestore:()=>{T(null),I({version:_,page:null})},onRestorePage:()=>{T(null),I({version:_,page:uce(_,s)})},onName:()=>b(_)},_.id))})]})}),ae(hce,{version:h?.version??null,page:h?.page??null,waiting:r,busy:v.busy===!0,error:w,onCancel:()=>I(null),onConfirm:v.onPress,onPage:_=>I(A=>A&&{...A,page:A.version.pages.find(F=>F.id===_)??A.page})}),ae(xce,{version:y,onCancel:()=>b(null),onSave:async _=>{await t.name(y.id,_),b(null),W()}})]})}function X4(){let{adapter:e,hasUnsavedEdits:o}=Y4(),t=e.siteVersions,r=A4(),a=gf();return t?ae(gce,{open:r,onClose:_4,access:t,waiting:o||a?.state==="changed"}):null}import{useEaselSession as q5}from"efficient-easel/screen/lib/session-context";import{buildPaletteSections as fVe,categoryLabel as pVe,paletteWithoutPinned as uVe,pinnedSection as mVe}from"efficient-easel/screen/lib/document/palette-sections";var bce={openers:{label:"Hero & intros",icon:"image"},shop:{label:"Shop & galleries",icon:"bag"},product:{label:"Product page",icon:"box"},checkout:{label:"Checkout & ordering",icon:"bag"},about:{label:"About & brand story",icon:"book"},content:{label:"Text & content",icon:"type"},proof:{label:"Stats & social proof",icon:"star"},promo:{label:"Promotions & sign-ups",icon:"sparkles"},blog:{label:"Blog & journal",icon:"newspaper"},navigation:{label:"Navigation & wayfinding",icon:"bookmark"},legal:{label:"Legal & documents",icon:"file"},contact:{label:"Contact, FAQ & forms",icon:"mail"},structure:{label:"Layout, structure & embeds",icon:"grid"},layouts:{label:"Layouts",icon:"layers"}};function Z4(e){return K(bce,e)?.label}var J4=vC;import{currentEaselSession as t5}from"efficient-easel/screen/lib/session";import{blockTypesIn as Q4}from"efficient-easel/screen/lib/document/block-types-in";var e5=()=>({}),o5=new Map;function yce(e){let o=o5.get(e);if(o)return o;let t=new Set,r=K(ur,e);if(r)for(let s of r.seeds(e5))for(let l of Q4({type:r.childType,props:s}))t.add(l);let a=hl(e);if(a){let s=0;for(let l of Q4(a(e5,d=>`${d}-${s+=1}`)))t.add(l)}t.delete(e);let n=[...t].sort();return o5.set(e,n),n}function Sce(e){if(!e||!e.sets&&!e.allow&&!e.deny?.length)return null;let o=zy(e),t=e.allow?new Set(e.allow):null,r=new Set(e.deny??[]),a=new Set(Object.keys(e.host??{})),n=d=>{if(r.has(d))return!1;if(a.has(d))return!0;let c=CC(d);return!c||!o[c]?!1:t?t.has(d):!0},s=new Map,l=d=>{let c=s.get(d);if(c!==void 0)return c;s.set(d,!1);let f=n(d)&&yce(d).every(l);return s.set(d,f),f};return{sets:o,offers:l}}var wce="block-offer";function aC(e=t5()){return e.cache(wce,()=>Sce(nf(e)))}function r5(e,o=t5()){let t=aC(o);return t?t.offers(e):!0}function Cce(e){let o=Vm.Ticker(e.nodeDefaults,e.newNodeId),{sectionBorder:t,...r}=o.props,a=Mb.line?{sectionBorder:t}:{};return{...o,props:{...r,...a,sectionAccent:Mb.sectionAccent}}}var vce={Hero:{[Oi]:{newChild:Cce,childLabel:qd.Ticker}}},a5=Object.fromEntries(Object.entries(UH).map(([e,o])=>[e,Object.fromEntries(Object.entries(o).map(([t,r])=>[t,{...r,...K(vce,e)?.[t]}]))]));function n5(e,o=0,t,r){let a=Tce(Pce(e,o,r),t),n=a?aC():null;return a&&n?kce(a,n):a}function kce(e,o){if(e.spec)return o.offers(e.spec.childType)?e:null;let t=e.choices??[],r=t.filter(a=>o.offers(a.type));return r.length===t.length?e:r.length>0?{...e,choices:r}:null}function Tce(e,o){if(!e||e.source!=="container"||!o||!Av())return e;let t=dc({data:o.data},o.id),r=typeof t?.type=="string"?Rv(t.type):[],a=e.choices??[],n=r.filter(s=>!a.some(l=>l.type===s.type));return n.length?{...e,choices:[...a,...n.map(s=>({type:s.type,label:s.label}))]}:e}function Pce(e,o,t){let r=t?K(a5,e)?.[t]:void 0;if(r)return{source:"section",slot:r.slot,choices:null,spec:r};let a=K(ur,e);if(a)return{source:"section",slot:a.slot,choices:null,spec:a};let n=kC(e,o);if(n)return{source:"container",slot:n.slot,choices:n.choices,spec:null};let s=iF(e);return s?{source:"footer",slot:lF,choices:s,spec:null}:null}function s5(e,o=Bv(e.type)){return Fv(e.type)?o.map(t=>{let r=Dv(e.type,t);return r===null?{slot:t,label:t,rung:!1}:{slot:t,label:i(r),rung:!0}}):null}import{useSyncExternalStore as Ece}from"react";var nC=null,sC=new Set;function l5(e){if(nC!==e){nC=e;for(let o of sC)o()}}function Oce(e){return sC.add(e),()=>{sC.delete(e)}}function VVe(){return Ece(Oce,()=>nC,()=>null)}function i5(e){return Rl(e)?.ownerId??null}function d5(e,o){let t=e.props;if(e.type==="FooterMenu"){let r=t.menu;return t.heading||r?.name||i("Menu")}if(e.type==="FooterText"){let r=typeof t.text=="string"?t.text.trim():"";return r?r.length>28?`${r.slice(0,28)}\u2026`:r:i("Text")}return e.type==="FooterEmailSignup"?t.heading||i("Email signup"):o(e.type)}var c5="sf-editor-left-view";function f5(){if(typeof window>"u")return"pages";try{let e=window.localStorage.getItem(c5);return e==="sections"||e==="styles"?e:"pages"}catch{return"pages"}}function p5(e){if(!(typeof window>"u"))try{window.localStorage.setItem(c5,e)}catch{}}function u5(e,o){return e==="styles"&&!o?"sections":e}function m5(e,o){return e?"sections":o}import{copyNode as _ce}from"efficient-easel/data";function h5(e){let o=typeof e?.props?.id=="string"?e.props.id:null,t=Bt(),r=o&&t?t.sectionOf(o):null;if(!t||!r)return null;let a=t.usedOn(r);return a?a.length===1?i("On 1 page"):i("On {count} pages",{count:a.length}):i("On other pages")}var x5={usedOn:e=>{let o=Bt(),t=o?.sectionOf(e.props.id)??null;return!o||!t?null:o.usedOn(t)??[]},openPage:e=>Bc()?.openPage(e),adopt:(e,o)=>Bt()?.adopt(e.props.id,o),nodeOf:e=>Bt()?.place(e)??null,detach:e=>{let o=Bc()?.config;return o?_ce(e,o):e},removed:()=>Bc()?.reload()};import{sharedSectionsOf as Nfe}from"efficient-easel/screen/lib/shared-sections";import{scrollPreviewToSection as Mfe,scrollPreviewToTop as U5}from"efficient-easel/screen/lib/document/preview-dom";import{jsx as dC,Fragment as tfe,jsxs as rfe}from"react/jsx-runtime";import{useContext as afe,useEffect as nfe,useMemo as pC,useRef as P5}from"react";import{EaselCanvas as sfe,repeatCopyAt as lfe,useEasel as ife}from"efficient-easel/easel";import{jsx as y5,Fragment as Nce,jsxs as Mce}from"react/jsx-runtime";import{useEffect as S5,useLayoutEffect as Hce}from"react";var eh="data-theme",I5="light";function Ace(e){return e.getAttribute(eh)===I5?"light":"dark"}function Rce(e,o){return Ace(e)===o?!1:(o==="light"?e.setAttribute(eh,I5):e.removeAttribute(eh),!0)}function Lce(e){return qh(e).getItem(Bh)}function a9e(e,o){qh(e).setItem(Bh,o)}function Fce(e,o,t=new Date().getHours()){return jv({mode:o.mode,override:Lce(e),switchShown:o.switchShown,hour:t})}function g5(e,o){let t=e.documentElement;if(!t)return()=>{};let r=()=>Rce(t,Fce(e,o));r();let a=e.defaultView?.MutationObserver;if(!a)return()=>{};let n=new a(r);return n.observe(t,{attributes:!0,attributeFilter:[eh]}),()=>n.disconnect()}var Bce="style";function Dce(e,o){let t=ok(o),r=!1;for(let a of ek){let n=t[a]??"";e.style.getPropertyValue(a)!==n&&(n?e.style.setProperty(a,n):e.style.removeProperty(a),r=!0)}return r}function b5(e,o){let t=e.body;if(!t)return()=>{};let r=()=>Dce(t,o);r();let a=e.defaultView?.MutationObserver;if(!a)return()=>{};let n=new a(r);return n.observe(t,{attributes:!0,attributeFilter:[Bce]}),()=>n.disconnect()}var Wce=`
339
339
  [${Gt}][${Gt}] { cursor: text; }
340
- `;function w5({children:e,document:o}){let{theme:t,themeMode:r,themeSwitchShown:a}=he(),n=xo(t);return S5(()=>{if(o)return g5(o,{mode:r,switchShown:a})},[o,r,a]),S5(()=>{if(o)return b5(o,n)},[o,n]),Hce(()=>{if(o)return SF(o)},[o]),Mce(Nce,{children:[y5(Xk,{}),y5("style",{children:Wce}),e]})}import{jsx as lC}from"react/jsx-runtime";import{useEffect as Uce,useState as zce}from"react";import{Banner as $ce}from"efficient-shell/ui";var oh={load:"The header and footer could not load. They are hidden for now and nothing in them is saved. Reload to try again.",lock:"{name} is editing the header and footer. Nothing you change in them here is saved.",conflict:"The header and footer were changed somewhere else. Nothing you change in them here is saved. Reload to get the latest.",save:"The header and footer did not save. They are sent again with your next change."},Gce={load:"{section} could not load. It stays on the page as it was. Reload to try again.",lock:"{name} is editing {section}. Nothing you change in it here is saved.",conflict:"{section} was changed somewhere else. Nothing you change in it here is saved. Reload to get the latest.",save:"{section} did not save. It is sent again with your next change."},jce=oh.load,Kce=oh.lock,Vce=oh.conflict,qce=oh.save;function Yce(e){if(!e)return null;if(e.loadFailed)return i(jce);if(e.lockHolder)return i(Kce,{name:e.lockHolder.name||i("Somebody else")});if(e.conflict)return i(Vce);if(e.saveFailed)return i(qce);let o=e.sections?.[0];if(!o)return null;let t=o.title||i("A shared section"),r=o.holder?.name||i("Somebody else");return i(Gce[o.problem],{section:t,name:r})}function Xce({report:e}){let o=Yce(Zm(e)),[t,r]=zce(null);return Uce(()=>{o||r(null)},[o]),!o||t===o?null:lC("aside",{className:"sf-canvas-notice",children:lC($ce,{tone:"warning",onDismiss:()=>r(o),children:o})})}function C5(){return lC(Xce,{report:Jm()})}import{jsx as th}from"react/jsx-runtime";import{useState as v5}from"react";import{Banner as Zce,Button as Jce}from"efficient-shell/ui";import{UndoIcon as Qce}from"efficient-shell/icons/efficient";import{useScreenDocument as efe}from"efficient-easel/screen/components/ScreenDocumentContext";import{useSettledAction as ofe}from"efficient-easel/easel";function k5(){let e=R4(),{adapter:o,flushSave:t,reloadFromServer:r}=efe(),a=o.siteVersions,[n,s]=v5(!1),[l,d]=v5(!1),c=async()=>{if(!(!a||n)){s(!0),d(!1);try{await B4({access:a,flushSave:t,reload:r})}catch{d(!0)}finally{s(!1)}}},f=ofe({onPress:()=>{c()},busy:n});return e?th("aside",{className:"sf-canvas-notice",children:th(Zce,{tone:l?"danger":"info",title:e.title,onDismiss:Qm,action:a&&e.undo?th(Jce,{variant:"secondary",size:"sm",leftIcon:th(Qce,{}),loading:f.busy,disabled:f.busy,onClick:f.onPress,children:i("Undo")}):void 0,children:l?i("Undo did not work. Nothing changed. Try again."):i("Check it with Preview. Press Publish to put it live.")})}):null}import{decodePartId as dfe,REPEAT_ATTRIBUTE as cC,REPEAT_INDEX_ATTRIBUTE as fC}from"efficient-easel/draw";import{usePreviewParts as cfe}from"efficient-easel/draw/client";var T5=null;function iC(e){T5=e}function _9e(){return T5}import{ScreenDocumentContext as ffe}from"efficient-easel/screen/components/ScreenDocumentContext";function E5(e){let{mirrorHostStyles:o}=Zh(),t=Jk(),{sectionBackgroundWidth:r,themeFromDocument:a}=he(),n=Wk(),s=afe(ffe),l=Dc(s?.docId??null),d=ife(w=>w.appState.data),c=_T(l,d),f=JSON.stringify(c),u=pC(()=>c,[f]),p=pC(()=>({...e.metadata??t??{},...qE(a?null:r,n),...u}),[e.metadata,t,r,n,a,u]);nfe(()=>(iC(n),()=>iC(null)),[n]);let h=P5(null),I=pfe(h),{onDocument:g}=e,C=w=>{h.current=w,g?.(w)};return rfe(tfe,{children:[dC(k5,{}),dC(C5,{}),dC(sfe,{...e,onDocument:C,typing:I,metadata:p,height:"fill",mirrorStyles:o,frameWrapper:w5})]})}function pfe(e){let o=Oc(),t=cfe(),r=P5({parts:t});return r.current={parts:t},pC(()=>{let a=(n,s)=>{let l=up(n,o),d,c=null,f=s??(l?null:zg(null,e.current,n)),u=!l&&f?lfe(f):null,p=u?dfe(n):null;if(u&&f&&p?.propKey){l=hp({...u,nodeId:p.nodeId,key:p.propKey},o),d=p.propKey;let C=f.closest(`[${cC}][${fC}]`),w=`[${cC}="${mp(C?.getAttribute(cC)??"")}"][${fC}="${mp(C?.getAttribute(fC)??"")}"]`;c=()=>(f.ownerDocument??e.current)?.querySelector(w)??null}if(!l)return null;let h=f,I=()=>(h=zg(h,c?c():h?.ownerDocument??e.current,n),h),g=I();return g?{element:I,value:l.value,rules:l.rules,multiline:l.multiline,skip:l.skip,write:l.write,key:d,toolbar:{offered:l.offered,colors:l.offered.length>0?fs(_P(g)):void 0,colorNameOf:rt}}:null};return{at:n=>{let s=n.closest(`[${Gt}]`),l=s?.getAttribute(Gt);return s&&l?a(l,s):null},atSelection:()=>{let n=r.current.parts.selectedPartId;return n?a(n,null):null},onCopyText:n=>v_(n,o),copyValue:n=>C_(n,o),onChange:n=>{if(!n.typing){$g(null);return}let s=n.element.closest(`[${Gt}]`)?.getAttribute(Gt)??null;$g(s),s&&r.current.parts.selectedPartId!==s&&r.current.parts.select(s)}}},[o,e])}var ufe=Hk.mediaFields,mfe=/video|poster|focal|phone/i;function hfe(e){return(K(ufe,e)??[]).find(o=>!o.includes("[]")&&!mfe.test(o))??null}function xfe(e){let o=hfe(e.type);return e.type!==te?o&&ic(e.type,e.props,o)?{fromData:!0}:o:Zc(e.props)?{fromData:!0}:o}var O5={adds:{kind:"block",type:"ImageBlock"},kinds:["image"],pictureOf:xfe,create:(e,o)=>({type:"ImageBlock",props:{...o.nodeDefaults("ImageBlock"),id:o.newNodeId("ImageBlock"),src:e.url}})};var _5={Hero:"Full-screen opener with rotating slides.",HeroSingle:"Full-screen image or video with a headline.",IntroBleed:"Full-bleed intro image the next section scrolls over.",Collections:"Product collections in a tidy grid.",AlloyWheelsListing:"A full product-listing page: filter rail, sortable card grid and pagination, from the live catalog. Choose which product types it shows.",CatalogFilterBar:"Filters the collection grids below it \u2014 a sticky row of Pills (the default), or Columns, one per filter you switch on.",ProductGrid:"Hand-picked products in a tidy grid.",FitmentFinder:"A vehicle picker \u2014 make, model, year and trim resolve the OEM stock fitment live.",Gallery:"Two image galleries with tabs and filters.",GalleryB:"A wall of your photos or your products' pictures, with a click-to-open lightbox.",SpecStrip:"A thin one-line spec strip \u2014 small-caps items spread across the width, as a dark band or a bare hairline row.",ProductHero:"A product hero \u2014 image beside price, bullets and a buy button.",SpecTable:"A spec sheet \u2014 labeled rows of product specifications.",ProcessSteps:"A heading over columns, or alternating rows, of image, title, blurb and specs.",DetailRows:"Repeating full-width rows \u2014 eyebrow, title and copy beside a numbered close-up image, alternating sides each row.",FitmentTable:"A fitment table \u2014 per-size bolt patterns, offsets and load ratings, filterable by diameter.",CompatibleTyres:"The current product's compatible tyres \u2014 image, size, key specs and price per tyre, with an inquiry link. Display only.",RelatedProducts:"The current product's related items in a tidy row \u2014 the product page's built-in 'Pair with' cross-sell.",OrderSummary:"A display order-summary panel \u2014 items, totals and a note.",DeliveryOptions:"Delivery tiers as cards \u2014 name, window and price, one highlighted.",PaymentBadges:"A payment-methods trust strip with reassurance lines.",CheckoutCTA:"A centered 'ready to order?' headline with the checkout button.",Manifesto:"A bold brand statement beside a full-height image, with a stat strip.",ParagraphsA:"An editorial text panel with a stat strip and founders' note.",StatsParagraph:"An editorial heading and paragraph over a row of stat cards whose units and small labels take the main color.",Chart:"A titled chart \u2014 bars, line or donut \u2014 drawn from your own labeled data points.",Mockup:"A headline beside a stylized product-UI mockup card \u2014 spec sheet, fitment, portal, kanban and more.",Prose:"A plain editorial text section \u2014 eyebrow, heading and body copy.",Timeline:"An editorial aside beside a rail-marked timeline of dated entries.",TimelineTrack:"A horizontal year track of milestones \u2014 company history or roadmap.",Footprint:"A world map of your locations with a legend \u2014 designed here, sold worldwide.",TitleWithButtons:"A big headline beside a stack of call-to-action buttons.",Split:"Side-by-side image and text in two columns.",Cards:"A heading over a grid of free-text title-and-blurb cards.",FAQ:"A frequently-asked-questions accordion with a header.",Testimonials:"Customer quotes in a grid \u2014 the quote, a name and a role.",Masthead:"A journal issue header with a lead statement and contents.",Breadcrumb:"A slim trail showing where the reader is (Home / Journal\u2026).",CategoryBar:"A sticky row of category tabs with counts and links.",FeaturedCover:"A featured article \u2014 big cover image beside a headline and dek.",LongRead:"A long-form article spread with a pull-quote and cover image.",Series:"A section heading over a grid of column cards.",Subscribe:"A newsletter signup beside a list of recent issues.",SubscribeBlogs:"A newsletter signup beside your latest blog posts, pulled live.",Events:"Latest journal posts in a three-card row.",DocMasthead:"A page header: eyebrow, title, details and a deck.",DocTabs:"A sticky tab bar that marks the page you are on.",DocBody:"Long-form document body with an 'On this page' contents list.",DocMetaCards:"A three-up meta strip for the foot of a document.",Banner:"Wide promo strip with background image.",Stats:"Highlight key numbers \u2014 years, designs.",Countdown:"Hours, minutes and seconds to a set date and time, then one line.",KeyFeatures:"A theme-color chip and heading over a grid of short feature labels.",Logos:"A row of partner or brand logos.",Ticker:"A scrolling marquee of short phrases, full width.",Reviews:"Approved customer reviews in a star-rated card grid, pulled live.",SubmitBuild:"A 'Show us yours.' headline with a photo-submission form.",ReviewForm:"A write-a-review form \u2014 submissions wait for your approval before they show.",ContactRouting:"Pick who to reach, then a form that routes the message.",ContactLocations:"Your locations as a city gallery plus address and map cards.",SectionHeader:"A numbered section title with optional link.",Grid:"Multi-column container for blocks.",Flex:"An empty section. Add whatever you want inside.",Spacer:"Vertical breathing room between sections.",Divider:"A thin horizontal rule between sections.",CustomHTML:"Drop in your own sanitized HTML.",Heading:"A single heading line.",Text:"A paragraph of body copy.",ImageBlock:"A standalone image, at the width you set.",ButtonBlock:"A call-to-action button."};import{jsx as rh}from"react/jsx-runtime";import{useState as Ife}from"react";import{Button as gfe,Tooltip as bfe,toast as A5}from"efficient-shell/ui";import{TemplateIcon as yfe}from"efficient-easel/icons";import{useSettledAction as Sfe}from"efficient-easel/easel";import{useScreenDocument as wfe}from"efficient-easel/screen/components/ScreenDocumentContext";function L5({enabled:e,reason:o,onSaved:t}){let{flushSave:r}=wfe(),[a,n]=Ife(!1),s=async()=>{if(!a){n(!0);try{await r()?t():A5.error(i(R5))}catch{A5.error(i(R5))}finally{n(!1)}}},l=Sfe({onPress:()=>{s()},busy:a});return rh(bfe,{side:"bottom",content:e?i("Save this website as a platform template"):i(o),children:rh("span",{className:"sf-tip-disabled",tabIndex:e?void 0:0,children:rh(gfe,{variant:"secondary",disabled:!e||l.busy,loading:l.busy,onClick:l.onPress,rightIcon:rh(yfe,{size:15}),children:i("Save as Template")})})})}var R5="Your last changes did not save, so the template was not made. Try again.";var Cfe="Save your page changes first";function F5(e){return e.hasTrustedConsole?e.canCreatePlatformTemplate?!e.capabilities.canPublish||!e.capabilities.hasSiteSettings?{visible:!1,hiddenReason:"not-a-site-page"}:e.siteId?e.hasUnsavedEdits?{visible:!0,enabled:!1,disabledReason:Cfe}:{visible:!0,enabled:!0}:{visible:!1,hiddenReason:"no-site"}:{visible:!1,hiddenReason:"not-operator"}:{visible:!1,hiddenReason:"no-console"}}var B5="storefront-editor:save-as-template";var $d="ContactLocations",vfe="CityPictures",kfe="CityMaps",Tfe=[{key:vfe,label:"City pictures",desc:"A wall of city photos, grouped by region. Each photo links to its city's card."},{key:kfe,label:"City maps",desc:"A card per city, grouped by region: address, phone, hours and a map."}];function D5(e=Qi){let o=SC.find(t=>t.sections.some(r=>r.type===$d))?.key;return!e.includes($d)||!o?[]:Tfe.map(({key:t,label:r,desc:a},n)=>({key:t,label:r,cat:o,after:$d,desc:a,alias:"locations offices stores branches",insert:s=>{let l=ca($d);return l?Ym($d,l,n)(s.nodeDefaults,s.newNodeId,cl()):null}}))}function M5(e,{nodeDefaults:o,newNodeId:t,sectionLabel:r,blockIsOffered:a}){let n=hl(e);if(n)return n(o,t,cl());if(Sv(e)&&a(te)&&a(Kn)){let l=K(kr,e);return{type:te,props:{...o(te),id:t(te),direction:"column",name:`${r(e)} section`,content:[{type:Kn,props:{...o(Kn),id:t(Kn),...l?.headStyle?{headStyle:l.headStyle}:{},...l?.headRowGap?{rowGap:l.headRowGap}:{},...l?.headDescriptionSize?{descriptionSize:l.headDescriptionSize}:{},...nd(e)!==nd(Kn)?{eyebrowLook:nd(e)}:{}}},{type:e,props:{...o(e),id:t(e),headPlacement:"own-box",...N5(e,t)}}]}}}if(K(ur,e)?.fixed===!0)return{type:e,props:{...o(e),id:t(e),layout:"boxes"}};let s=N5(e,t);return Object.keys(s).length?{type:e,props:{...o(e),id:t(e),...s}}:null}function N5(e,o){return e==="Cards"?{template:Iv(t=>o(t))}:e===bv?{template:yv(t=>o(t))}:{}}import{useEffect as Pfe,useState as Efe}from"react";import{useEaselSession as Ofe}from"efficient-easel/screen/lib/session-context";function H5(){let e=Ofe().chrome?.products?.list,[o,t]=Efe(null);return Pfe(()=>{if(!e)return;let r=!1;return e().then(a=>{r||t(a)}),()=>{r=!0}},[e]),o}function Y5({mode:e,open:o}){let{setSelectedHeroId:t,setSelectHandler:r}=OA(),a=V5().tree,n=e,s=n.kind==="ticker"?n.heroId:null,l=Il(d=>{d&&(o({kind:"ticker",heroId:d}),Mfe(d))},[o]);return mr(()=>{t(s)},[s,t]),mr(()=>{r(l)},[r,l]),{partRows:(d,{rowClick:c})=>{let f=String(d.props.id);return d.type==="Hero"&&Hb(d.props)&&To(j5,{icon:To(fn,{type:"ticker",size:13}),name:i(Ei),onSelect:()=>l(f),selected:s===f,rowProps:{onClick:c(()=>l(f))},words:a})}}}function X5({mode:e,select:o}){let{setSelectedHeroPart:t,setSelectHandler:r}=qp(),a=V5().tree,{appState:n}=K5(p=>p),s=n.data.content??[],l=_fe(s);l.current=s;let d=e,c=dn.find(p=>Ai[p]===d.kind),f=c&&"nodeId"in d?Ri(String(d.nodeId),c):null,u=Il(p=>{let h=NA(p);if(!h)return;let I=l.current.findIndex(C=>String(C.props.id)===h.nodeId);if(I<0)return;let g={kind:Ai[h.part],nodeId:h.nodeId};o({index:I},g)},[o]);return mr(()=>{t(f)},[f,t]),mr(()=>{r(u)},[r,u]),{partRows:(p,{rowClick:h})=>{let I=String(p.props.id),g=DA(p);if(g.length===0)return null;let C=y=>{let b=Ri(I,y.part);return To(j5,{icon:To(fn,{type:y.part==="media"?"heroMedia":"heroImage",size:13}),name:i(y.label),onSelect:()=>u(b),selected:f===b,rowProps:{onClick:h(()=>u(b))},words:a},b)},[w,...T]=g;return Gd(G5,{children:[C(w),T.length>0&&To(Bfe,{children:T.map(C)})]})}}}function Z5(e,o){return{partRows:(t,r)=>Gd(G5,{children:[e.partRows?.(t,r),o.partRows?.(t,r)]})}}function Hfe(e){let{adapter:o,capabilities:t,currentSlug:r,siteId:a,docId:n,hasUnsavedEdits:s,bridgeCapabilities:l,notifyParent:d,token:c}=ah(),{hasPreviewLink:f}=t,u=to(q5()).preview?.draftLink,p=z4(e.data),h=F5({hasTrustedConsole:!!c,canCreatePlatformTemplate:l.canCreatePlatformTemplate,capabilities:t,siteId:a,hasUnsavedEdits:s}),I=Il(()=>{!a||!r||d(B5,{siteId:a,slug:r})},[d,a,r]),g=y4({pageSlug:r,siteId:a,token:c}),C=o.previewHref?.(r)??g;return{barLead:()=>h.visible&&To(L5,{enabled:h.enabled,reason:h.enabled?"":h.disabledReason,onSaved:I}),barView:()=>f&&r&&To(C4,{liveHref:C,pageId:n??null,draftLink:u}),mainAction:p}}function Wfe(e,o){let{capabilities:t,templateId:r,siteId:a,tokenRef:n,navigate:s}=ah(),{hasSiteTheme:l,explainsSiteSettings:d}=t,c=y=>o.setView(y),[f,u]=W5(Ns[0].id),[p,h]=W5(!1),{surface:I,setSurface:g}=EA(),C=()=>{if(l){c("styles"),o.reveal(),U5();return}e.show(Tw),e.reveal(),U5()},w={id:"pages",label:i("Pages"),icon:To(Rfe,{}),panel:({onHide:y})=>To(gA,{activeSurface:I,onPreviewSurface:g,onNavigate:b=>{g(null),s(r?{kind:"template",id:r,pageSlug:b}:{kind:"page",slug:b,siteId:a??void 0})},onClose:y})},T=[];return!l&&d&&T.push({id:"appearance",label:i("Appearance"),icon:To(Ffe,{}),active:e.kind==="website",onSelect:C}),l&&T.push({id:"styles",label:i("Styles"),icon:To(Lfe,{}),panel:({onHide:y,notify:b})=>To(bM,{tokenRef:n,siteId:a??void 0,onClose:y,onNotify:b,tab:f,onTabChange:u,revealPageGroup:p,onPageGroupRevealed:()=>h(!1)})}),{railLead:[w],railTrail:T,resolveLeftView:y=>u5(y,l),openSettings:C,openStyles:()=>{u(oA),c("styles")},openPageStyles:l?()=>{u(Hs),h(!0),c("styles"),o.reveal()}:d?()=>{e.show(lM),e.reveal()}:void 0}}function Ufe(){let{navigate:e,siteId:o,reloadFromServer:t,docId:r}=ah(),a=K5(s=>s.config),n=q5();mr(()=>(fx({openPage:s=>e({kind:"page",slug:s.slug,siteId:o??void 0}),reload:()=>{t()},config:a}),()=>fx(null)),[e,o,t,a]),mr(()=>{let s=Bt();if(!s||!r)return;let l=!1;return Nfe(n).list().then(d=>{l||s.learn(d)}).catch(()=>{}),()=>{l=!0}},[r,n])}function J5(){let e=Oc();return Il(o=>{k_(o,e)},[e])}function zfe(e,o,t,r){let{kind:a,open:n}=e,{selected:s,zoneOf:l}=o;mr(()=>{l5(s?.type==="BookingBox"&&s.props.region==="confirm"?i5(l(String(s.props.id))):null)},[s?.props.id]);let d=WM(e,o),{capabilities:{hasSiteSettings:c}}=ah();Ufe();let{chat:f,setChat:u,setSelected:p,setSelectHandler:h}=Vp(),I=Il(()=>n(iM),[n]),g=a==="chat";mr(()=>{p(g)},[g,p]),mr(()=>{h(I)},[h,I]);let{setOpenHandler:C}=Pi(),w=Il(()=>n(dM),[n]);mr(()=>{C(w)},[C,w]);let T=Z5(Y5(e),X5(e)),y=Hfe(o),b=Wfe(e,r),P=t.device,H=J5();return{...T,...y,...b,hasOwnRows:E=>E.type===Mm,ownRows:d.renderLocationTree,sectionPressed:d.sectionPressed,onCopyItem:H,wrap:E=>To(Jh.Provider,{value:!0,children:Gd(Dfe.Provider,{value:P,children:[E,To(X4,{})]})}),addPanelRow:E=>c?Gd("div",{className:"sf-addside-sitewide",children:[To("span",{className:"sf-addside-sitewide-glyph","aria-hidden":"true",children:To(fn,{type:"chat",size:16})}),Gd("button",{type:"button",className:"sf-addside-sitewide-name",onClick:()=>{E(),I()},children:[i("Live chat"),To("span",{className:"sf-addside-sitewide-desc",children:i("A chat bubble on every page")})]}),To(Afe,{checked:f.enabled,onChange:W=>u({enabled:W}),ariaLabel:i("Show the chat bubble on the whole site")})]}):void 0}}var z5=null,uC=new WeakMap;function $fe(e){let o=qk();if(!e||!o)return e;z5!==o&&(z5=o,uC=new WeakMap);let t=uC.get(e);return t||(t={...e,choices:e.choices?e.choices.map(r=>({...r,label:i(r.label)})):null,spec:e.spec?{...e.spec,addLabel:i(e.spec.addLabel),...e.spec.childLabel?{childLabel:i(e.spec.childLabel)}:{}}:null},uC.set(e,t)),t}var Gfe={isLockedBlock:(e,o)=>uu(e,o)||!!(o&&Bt()?.heldElsewhere(o.props.id)),duplicateBlocked:Nu,nestDepth:(e,o,t)=>o===gk?Sk(e,t):0,newSectionNode:M5,canAddTo:(e,o,t,r)=>$fe(n5(e,o,r,t)),blockIsOffered:r5,slotsOf:s5,resolveOnInsert:!0},jfe=new Proxy(_5,{get:(e,o)=>{let t=Reflect.get(e,o);return typeof t=="string"?i(t):t}}),Kfe={labelAtLevel:(e,o,t)=>i(sh(e,o,t)),descriptions:jfe,categoryLabel:e=>{let o=Z4(e);return o===void 0?void 0:i(o)},firstSection:J4,blockRowName:d5,rowName:mu,plainText:yr,Icon:fn,Thumbnail:IM,useProducts:H5,presets:D5()},Vfe={desktop:2e3,tablet:800,mobile:390},$5="desktop",qfe={options:vA,initial:$5,fluid:$5,widths:Vfe,hidesPerView:!0},Yfe={read:f5,write:e=>p5(e),forSelection:(e,o)=>m5(e,o)},Xfe={first:Jo,last:Xe,firstGroup:Ye,lastGroup:Ue,isSectionGroup:ns,sectionGroupZone:fT,panelOf:e=>e===Jo?sM:null,get sharedReach(){return xn()?Jfe:void 0},get shared(){return Bt()?x5:void 0},get groupTab(){return xn()?dF:void 0},get groupBadge(){return xn()?Zy({type:Ue})??void 0:void 0},get changeNotice(){return xn()?cF():void 0},get band(){return xn()?Zfe:void 0},get groupAccepts(){return xn()?mT:void 0}},Zfe={foldable:!0},Jfe=e=>Zy(e)??h5(e);function Qfe(e){return{...Z5(Y5(e),X5(e)),onCopyItem:J5(),openSettings:()=>e.show(Tw)}}function epe(e,o){YH(e,o),h4()}var jYe={useOwnerName:Ws,useDocumentLabel:sA,useBridges:zfe,useStandaloneBridges:Qfe,useDocumentPass:epe,blockRules:Gfe,blockLook:Kfe,devices:qfe,leftView:Yfe,pinned:Xfe,Canvas:E5,canvasDrag:{media:O5},Inspector:fM};export{zy as a,to as b,nf as c,Hu as d,HNe as e,dr as f,cr as g,go as h,XNe as i,Qy as j,BAe as k,eu as l,Di as m,Ni as n,oR as o,DAe as p,ou as q,NAe as r,xZ as s,tR as t,MAe as u,aR as v,XH as w,_8e as x,rpe as y,de as z,i as A,Uo as B,ZH as C,L8e as D,uo as E,y$ as F,yI as G,Mbe as H,oE as I,Ube as J,nt as K,SI as L,$be as M,Gbe as N,jbe as O,kf as P,Kbe as Q,Tf as R,Vbe as S,qbe as T,aE as U,nE as V,E$ as W,O$ as X,Jbe as Y,eye as Z,oye as _,tye as $,rye as aa,KE as ba,Va as ca,KG as da,fSe as ea,VG as fa,pSe as ga,lo as ha,uSe as ia,qG as ja,mSe as ka,hSe as la,xSe as ma,ISe as na,gSe as oa,bSe as pa,ws as qa,ySe as ra,Tx as sa,Ex as ta,oP as ua,Ox as va,y6 as wa,ime as xa,$c as ya,iP as za,S6 as Aa,w6 as Ba,C6 as Ca,fme as Da,pme as Ea,ume as Fa,mme as Ga,hme as Ha,xme as Ia,s2e as Ja,l2e as Ka,i2e as La,d2e as Ma,c2e as Na,f2e as Oa,p2e as Pa,u2e as Qa,PJ as Ra,_R as Sa,AR as Ta,RR as Ua,js as Va,cu as Wa,JRe as Xa,Aye as Ya,ja as Za,bG as _a,LI as $a,ei as ab,Rye as bb,Lye as cb,BI as db,TE as eb,Fye as fb,aue as gb,Wye as hb,Uye as ib,zye as jb,$ye as kb,Zl as lb,oG as mb,iE as nb,vI as ob,nr as pb,fye as qb,Xl as rb,kI as sb,TI as tb,pye as ub,uye as vb,AF as wb,_P as xb,vhe as yb,khe as zb,oa as Ab,pW as Bb,The as Cb,Phe as Db,Nx as Eb,Ehe as Fb,Ohe as Gb,_he as Hb,RP as Ib,LP as Jb,Ahe as Kb,Ul as Lb,Mx as Mb,Rhe as Nb,Lhe as Ob,Fhe as Pb,Bhe as Qb,RF as Rb,Sn as Sb,I2e as Tb,g2e as Ub,b2e as Vb,LF as Wb,y2e as Xb,FF as Yb,Gu as Zb,HF as _b,L2e as $b,F2e as ac,ai as bc,sr as cc,zl as dc,Hhe as ec,Whe as fc,vo as gc,vn as hc,Z as ic,Qs as jc,re as kc,Q as lc,se as mc,le as nc,ue as oc,fMe as pc,me as qc,ol as rc,tl as sc,rd as tc,ad as uc,$F as vc,hMe as wc,are as xc,GF as yc,gMe as zc,bMe as Ac,jF as Bc,nre as Cc,KF as Dc,sre as Ec,nd as Fc,VF as Gc,CMe as Hc,sS as Ic,TMe as Jc,PMe as Kc,EMe as Lc,OMe as Mc,_Me as Nc,AMe as Oc,Kc as Pc,FMe as Qc,Yu as Rc,sd as Sc,BMe as Tc,DMe as Uc,YF as Vc,NMe as Wc,fre as Xc,pre as Yc,MMe as Zc,ure as _c,HMe as $c,XF as ad,GMe as bd,jMe as cd,KMe as dd,VMe as ed,qMe as fd,YMe as gd,xre as hd,Ire as id,XMe as jd,ZMe as kd,JMe as ld,QMe as md,eHe as nd,oHe as od,tHe as pd,rHe as qd,aHe as rd,Ju as sd,eB as td,Ere as ud,fHe as vd,pHe as wd,em as xd,iS as yd,rB as zd,om as Ad,IHe as Bd,Ore as Cd,_re as Dd,Are as Ed,gHe as Fd,ot as Gd,Pn as Hd,sl as Id,o4e as Jd,t4e as Kd,r4e as Ld,$B as Md,GB as Nd,mae as Od,S4e as Pd,jB as Qd,KB as Rd,VB as Sd,v4e as Td,Jz as Ud,Mt as Vd,ebe as Wd,obe as Xd,tbe as Yd,rbe as Zd,Sf as _d,abe as $d,Ff as ae,ti as be,Kye as ce,Vye as de,qye as ee,FE as fe,BE as ge,DE as he,Yye as ie,Ye as je,Ue as ke,Upe as le,pT as me,Rc as ne,pF as oe,z4e as pe,$4e as qe,rD as re,G4e as se,j4e as te,Es as ue,Gl as ve,Eg as we,Ag as xe,ip as ye,Gt as ze,pke as Ae,uke as Be,mke as Ce,hke as De,e7 as Ee,o7 as Fe,xke as Ge,Os as He,Lg as Ie,Ike as Je,gke as Ke,Tp as Le,bi as Me,nb as Ne,Ls as Oe,rn as Pe,e0e as Qe,yi as Re,f1 as Se,o0e as Te,mb as Ue,t0e as Ve,r0e as We,a0e as Xe,i9 as Ye,n0e as Ze,p9 as _e,u9 as $e,s0e as af,l0e as bf,h9 as cf,uD as df,ES as ef,Ui as ff,CL as gf,vL as hf,zi as if,aL as jf,Fy as kf,CFe as lf,In as mf,Dy as nf,lL as of,iL as pf,Ny as qf,iee as rf,dL as sf,gu as tf,cL as uf,w5e as vf,gD as wf,C5e as xf,v5e as yf,k5e as zf,Sd as Af,xm as Bf,R5e as Cf,B5e as Df,q5e as Ef,FS as Ff,Y5e as Gf,kD as Hf,TD as If,Nr as Jf,s3e as Kf,ED as Lf,l3e as Mf,_D as Nf,co as Of,Ge as Pf,gm as Qf,LD as Rf,m3e as Sf,bm as Tf,FD as Uf,b3e as Vf,B3e as Wf,jD as Xf,jS as Yf,KD as Zf,M3e as _f,H3e as $f,W3e as ag,KS as bg,U3e as cg,z3e as dg,VD as eg,vm as fg,Rne as gg,km as hg,E6e as ig,ew as jg,Dne as kg,ow as lg,Gne as mg,$6e as ng,CN as og,vN as pg,G6e as qg,j6e as rg,Bg as sg,Tke as tg,Dg as ug,d_ as vg,rWe as wg,DN as xg,NN as yg,wWe as zg,LWe as Ag,FWe as Bg,BWe as Cg,hw as Dg,$E as Eg,sSe as Fg,VI as Gg,qI as Hg,YI as Ig,MWe as Jg,sse as Kg,lse as Lg,jN as Mg,HWe as Ng,WWe as Og,fUe as Pg,u2 as Qg,pUe as Rg,m2 as Sg,mUe as Tg,w2 as Ug,C2 as Vg,Wse as Wg,P2 as Xg,_Ue as Yg,Om as Zg,HUe as _g,Cd as $g,zUe as ah,L2 as bh,GUe as ch,F2 as dh,B2 as eh,VUe as fh,gw as gh,jse as hh,XUe as ih,Kse as jh,ZUe as kh,JUe as lh,_m as mh,H2 as nh,tze as oh,rze as ph,aze as qh,nze as rh,Mr as sh,cze as th,X2 as uh,ts as vh,rs as wh,Spe as xh,WGe as yh,UGe as zh,Mw as Ah,zGe as Bh,r0 as Ch,j1 as Dh,dEe as Eh,cEe as Fh,X9 as Gh,fEe as Hh,pEe as Ih,uEe as Jh,mEe as Kh,Z9 as Lh,hEe as Mh,xEe as Nh,IEe as Oh,gEe as Ph,oq as Qh,bEe as Rh,pie as Sh,JM as Th,VGe as Uh,Ad as Vh,oH as Wh,Zr as Xh,Cue as Yh,o6 as Zh,bx as _h,Dl as $h,vue as ai,Pue as bi,r6 as ci,zT as di,Eue as ei,Ba as fi,i6 as gi,Fue as hi,Bue as ii,Nl as ji,Due as ki,Nue as li,vx as mi,VT as ni,jue as oi,LA as pi,A_e as qi,Wb as ri,cn as si,B_e as ti,D_e as ui,N_e as vi,M_e as wi,KY as xi,H_e as yi,Ri as zi,NA as Ai,MA as Bi,gje as Ci,zw as Di,lH as Ei,iH as Fi,Hw as Gi,yie as Hi,bje as Ii,Hm as Ji,Rd as Ki,Um as Li,yje as Mi,Sje as Ni,wje as Oi,Wm as Pi,Cje as Qi,vje as Ri,E3 as Si,zo as Ti,_pe as Ui,O3 as Vi,_3 as Wi,Lpe as Xi,A3 as Yi,R3 as Zi,Fpe as _i,Bpe as $i,Dpe as aj,Npe as bj,fH as cj,Ld as dj,Fd as ej,$m as fj,uH as gj,ul as hj,mH as ij,Gm as jj,jm as kj,Km as lj,hH as mj,xH as nj,IH as oj,gH as pj,bH as qj,wH as rj,CH as sj,Qje as tj,eKe as uj,oKe as vj,tKe as wj,Nt as xj,Uie as yj,OH as zj,$ie as Aj,AH as Bj,RH as Cj,FH as Dj,Qie as Ej,OKe as Fj,AA as Gj,T_e as Hj,UKe as Ij,zKe as Jj,Sce as Kj,vG as Lj,bs as Mj,Dye as Nj,due as Oj,_9e as Pj,hBe as Qj,wL as Rj,Ei as Sj,y_e as Tj,OA as Uj,S_e as Vj,w_e as Wj,C_e as Xj,hGe as Yj,yM as Zj,SM as _j,wM as $j,YE as ak,qa as bk,Oo as ck,st as dk,si as ek,Cs as fk,_Se as gk,ASe as hk,LSe as ik,FSe as jk,BSe as kk,DSe as lk,NSe as mk,HSe as nk,Wf as ok,li as pk,ZE as qk,JI as rk,ij as sk,JE as tk,eg as uk,Zue as vk,JT as wk,ame as xk,jc as yk,Vc as zk,Wl as Ak,uP as Bk,Tme as Ck,Pme as Dk,bP as Ek,Rx as Fk,dW as Gk,uhe as Hk,$he as Ik,Xhe as Jk,Zhe as Kk,DW as Lk,Yo as Mk,$l as Nk,Xx as Ok,Zx as Pk,Wxe as Qk,QP as Rk,Uxe as Sk,zxe as Tk,$xe as Uk,n0 as Vk,l0 as Wk,Or as Xk,h0 as Yk,Sz as Zk,ige as _k,v0 as $k,hge as al,T0 as bl,_0 as cl,A0 as dl,R0 as el,L0 as fl,F0 as gl,B0 as hl,pI as il,Wz as jl,Uz as kl,ql as ll,uI as ml,N0 as nl,Nge as ol,$z as pl,Mge as ql,Hge as rl,Wge as sl,H0 as tl,Gge as ul,Kz as vl,jge as wl,Kge as xl,qz as yl,mI as zl,Xz as Al,Xge as Bl,Zz as Cl,Zge as Dl,II as El,pbe as Fl,G0 as Gl,t$ as Hl,mbe as Il,Yl as Jl,x$ as Kl,Fbe as Ll,dG as Ml,wye as Nl,fG as Ol,Cye as Pl,vye as Ql,kye as Rl,Ss as Sl,Nf as Tl,oSe as Ul,tSe as Vl,rSe as Wl,dj as Xl,cj as Yl,zSe as Zl,mj as _l,hj as $l,$Se as am,GSe as bm,jSe as cm,KSe as dm,VSe as em,ewe as fm,owe as gm,twe as hm,rwe as im,awe as jm,nwe as km,swe as lm,lwe as mm,iwe as nm,dwe as om,cwe as pm,QE as qm,fwe as rm,pwe as sm,la as tm,vj as um,ia as vm,Za as wm,XCe as xm,ZCe as ym,JCe as zm,QCe as Am,eve as Bm,ove as Cm,tve as Dm,sve as Em,lve as Fm,_K as Gm,ive as Hm,dve as Im,cve as Jm,fve as Km,pve as Lm,uve as Mm,mve as Nm,hve as Om,FK as Pm,xve as Qm,bg as Rm,Ive as Sm,Zf as Tm,Jf as Um,Zo as Vm,Ut as Wm,LO as Xm,ta as Ym,FO as Zm,BO as _m,Qf as $m,gve as an,bve as bn,s8 as cn,yve as dn,Sve as en,wve as fn,Cve as gn,vve as hn,kve as in,Po as jn,Tve as kn,Pve as ln,jf as mn,ep as nn,op as on,wg as pn,rp as qn,Eve as rn,zO as sn,Ove as tn,O8 as un,_ve as vn,Ave as wn,jO as xn,Rve as yn,Lve as zn,Fve as An,Bve as Bn,Dve as Cn,Nve as Dn,Tg as En,Mve as Fn,VO as Gn,Hve as Hn,Wve as In,Ts as Jn,YO as Kn,Uve as Ln,zve as Mn,$ve as Nn,Gve as On,CLe as Pn,vLe as Qn,kLe as Rn,mu as Sn,ZR as Tn,Oy as Un,KLe as Vn,VLe as Wn,tL as Xn,bt as Yn,au as Zn,rJ as _n,aJ as $n,xRe as ao,IRe as bo,gRe as co,bRe as do,gR as eo,wRe as fo,CRe as go,vRe as ho,CV as io,q_ as jo,Y_ as ko,jp as lo,bA as mo,yA as no,wA as oo,Kp as po,t_e as qo,r_e as ro,Vp as so,NY as to,u_e as uo,Pi as vo,I_e as wo,EA as xo,as as yo,T3 as zo,Ppe as Ao,Epe as Bo,QDe as Co,eNe as Do,oNe as Eo,VKe as Fo,O_e as Go,qp as Ho,mpe as Io,a7 as Jo,Nke as Ko,Mke as Lo,u_ as Mo,Hke as No,Wke as Oo,Zg as Po,b1 as Qo,S0e as Ro,w0e as So,C0e as To,v0e as Uo,G1 as Vo,_Ee as Wo,AEe as Xo,WA as Yo,wAe as Zo,VA as _o,Gi as $o,Yee as ap,ABe as bp,HBe as cp,Cu as dp,Xe as ep,Du as fp,Yt as gp,kM as hp,Pd as ip,TM as jp,PM as kp,yGe as lp,SGe as mp,x4 as np,eC as op,I4 as pp,n5 as qp,VVe as rp,eh as sp,Ace as tp,Rce as up,a9e as vp,lpe as wp,fpe as xp,jYe as yp};
340
+ `;function w5({children:e,document:o}){let{theme:t,themeMode:r,themeSwitchShown:a}=he(),n=xo(t);return S5(()=>{if(o)return g5(o,{mode:r,switchShown:a})},[o,r,a]),S5(()=>{if(o)return b5(o,n)},[o,n]),Hce(()=>{if(o)return SF(o)},[o]),Mce(Nce,{children:[y5(Xk,{}),y5("style",{children:Wce}),e]})}import{jsx as lC}from"react/jsx-runtime";import{useEffect as Uce,useState as zce}from"react";import{Banner as $ce}from"efficient-shell/ui";var oh={load:"The header and footer could not load. They are hidden for now and nothing in them is saved. Reload to try again.",lock:"{name} is editing the header and footer. Nothing you change in them here is saved.",conflict:"The header and footer were changed somewhere else. Nothing you change in them here is saved. Reload to get the latest.",save:"The header and footer did not save. They are sent again with your next change."},Gce={load:"{section} could not load. It stays on the page as it was. Reload to try again.",lock:"{name} is editing {section}. Nothing you change in it here is saved.",conflict:"{section} was changed somewhere else. Nothing you change in it here is saved. Reload to get the latest.",save:"{section} did not save. It is sent again with your next change."},jce=oh.load,Kce=oh.lock,Vce=oh.conflict,qce=oh.save;function Yce(e){if(!e)return null;if(e.loadFailed)return i(jce);if(e.lockHolder)return i(Kce,{name:e.lockHolder.name||i("Somebody else")});if(e.conflict)return i(Vce);if(e.saveFailed)return i(qce);let o=e.sections?.[0];if(!o)return null;let t=o.title||i("A shared section"),r=o.holder?.name||i("Somebody else");return i(Gce[o.problem],{section:t,name:r})}function Xce({report:e}){let o=Yce(Zm(e)),[t,r]=zce(null);return Uce(()=>{o||r(null)},[o]),!o||t===o?null:lC("aside",{className:"sf-canvas-notice",children:lC($ce,{tone:"warning",onDismiss:()=>r(o),children:o})})}function C5(){return lC(Xce,{report:Jm()})}import{jsx as th}from"react/jsx-runtime";import{useState as v5}from"react";import{Banner as Zce,Button as Jce}from"efficient-shell/ui";import{UndoIcon as Qce}from"efficient-shell/icons/efficient";import{useScreenDocument as efe}from"efficient-easel/screen/components/ScreenDocumentContext";import{useSettledAction as ofe}from"efficient-easel/easel";function k5(){let e=R4(),{adapter:o,flushSave:t,reloadFromServer:r}=efe(),a=o.siteVersions,[n,s]=v5(!1),[l,d]=v5(!1),c=async()=>{if(!(!a||n)){s(!0),d(!1);try{await B4({access:a,flushSave:t,reload:r})}catch{d(!0)}finally{s(!1)}}},f=ofe({onPress:()=>{c()},busy:n});return e?th("aside",{className:"sf-canvas-notice",children:th(Zce,{tone:l?"danger":"info",title:e.title,onDismiss:Qm,action:a&&e.undo?th(Jce,{variant:"secondary",size:"sm",leftIcon:th(Qce,{}),loading:f.busy,disabled:f.busy,onClick:f.onPress,children:i("Undo")}):void 0,children:l?i("Undo did not work. Nothing changed. Try again."):i("Check it with Preview. Press Publish to put it live.")})}):null}import{decodePartId as dfe,REPEAT_ATTRIBUTE as cC,REPEAT_INDEX_ATTRIBUTE as fC}from"efficient-easel/draw";import{usePreviewParts as cfe}from"efficient-easel/draw/client";var T5=null;function iC(e){T5=e}function _9e(){return T5}import{ScreenDocumentContext as ffe}from"efficient-easel/screen/components/ScreenDocumentContext";function E5(e){let{mirrorHostStyles:o}=Zh(),t=Jk(),{sectionBackgroundWidth:r,themeFromDocument:a}=he(),n=Wk(),s=afe(ffe),l=Dc(s?.docId??null),d=ife(w=>w.appState.data),c=_T(l,d),f=JSON.stringify(c),u=pC(()=>c,[f]),p=pC(()=>({...e.metadata??t??{},...qE(a?null:r,n),...u}),[e.metadata,t,r,n,a,u]);nfe(()=>(iC(n),()=>iC(null)),[n]);let h=P5(null),I=pfe(h),{onDocument:g}=e,C=w=>{h.current=w,g?.(w)};return rfe(tfe,{children:[dC(k5,{}),dC(C5,{}),dC(sfe,{...e,onDocument:C,typing:I,metadata:p,height:"fill",mirrorStyles:o,frameWrapper:w5})]})}function pfe(e){let o=Oc(),t=cfe(),r=P5({parts:t});return r.current={parts:t},pC(()=>{let a=(n,s)=>{let l=up(n,o),d,c=null,f=s??(l?null:zg(null,e.current,n)),u=!l&&f?lfe(f):null,p=u?dfe(n):null;if(u&&f&&p?.propKey){l=hp({...u,nodeId:p.nodeId,key:p.propKey},o),d=p.propKey;let C=f.closest(`[${cC}][${fC}]`),w=`[${cC}="${mp(C?.getAttribute(cC)??"")}"][${fC}="${mp(C?.getAttribute(fC)??"")}"]`;c=()=>(f.ownerDocument??e.current)?.querySelector(w)??null}if(!l)return null;let h=f,I=()=>(h=zg(h,c?c():h?.ownerDocument??e.current,n),h),g=I();return g?{element:I,value:l.value,rules:l.rules,multiline:l.multiline,skip:l.skip,write:l.write,key:d,toolbar:{offered:l.offered,colors:l.offered.length>0?fs(_P(g)):void 0,colorNameOf:rt}}:null};return{at:n=>{let s=n.closest(`[${Gt}]`),l=s?.getAttribute(Gt);return s&&l?a(l,s):null},atSelection:()=>{let n=r.current.parts.selectedPartId;return n?a(n,null):null},onCopyText:n=>v_(n,o),copyValue:n=>C_(n,o),onChange:n=>{if(!n.typing){$g(null);return}let s=n.element.closest(`[${Gt}]`)?.getAttribute(Gt)??null;$g(s),s&&r.current.parts.selectedPartId!==s&&r.current.parts.select(s)}}},[o,e])}var ufe=Hk.mediaFields,mfe=/video|poster|focal|phone/i;function hfe(e){return(K(ufe,e)??[]).find(o=>!o.includes("[]")&&!mfe.test(o))??null}function xfe(e){let o=hfe(e.type);return e.type!==te?o&&ic(e.type,e.props,o)?{fromData:!0}:o:Zc(e.props)?{fromData:!0}:o}var O5={adds:{kind:"block",type:"ImageBlock"},kinds:["image"],pictureOf:xfe,create:(e,o)=>({type:"ImageBlock",props:{...o.nodeDefaults("ImageBlock"),id:o.newNodeId("ImageBlock"),src:e.url}})};var _5={Hero:"Full-screen opener with rotating slides.",HeroSingle:"Full-screen image or video with a headline.",IntroBleed:"Full-bleed intro image the next section scrolls over.",Collections:"Product collections in a tidy grid.",AlloyWheelsListing:"A full product-listing page: filter rail, sortable card grid and pagination, from the live catalog. Choose which product types it shows.",CatalogFilterBar:"Filters the collection grids below it \u2014 a sticky row of Pills (the default), or Columns, one per filter you switch on.",ProductGrid:"Hand-picked products in a tidy grid.",FitmentFinder:"A vehicle picker \u2014 make, model, year and trim resolve the OEM stock fitment live.",Gallery:"Two image galleries with tabs and filters.",GalleryB:"A wall of your photos or your products' pictures, with a click-to-open lightbox.",SpecStrip:"A thin one-line spec strip \u2014 small-caps items spread across the width, as a dark band or a bare hairline row.",ProductHero:"A product hero \u2014 image beside price, bullets and a buy button.",SpecTable:"A spec sheet \u2014 labeled rows of product specifications.",ProcessSteps:"A heading over columns, or alternating rows, of image, title, blurb and specs.",DetailRows:"Repeating full-width rows \u2014 eyebrow, title and copy beside a numbered close-up image, alternating sides each row.",FitmentTable:"A fitment table \u2014 per-size bolt patterns, offsets and load ratings, filterable by diameter.",CompatibleTyres:"The current product's compatible tyres \u2014 image, size, key specs and price per tyre, with an inquiry link. Display only.",RelatedProducts:"The current product's related items in a tidy row \u2014 the product page's built-in 'Pair with' cross-sell.",OrderSummary:"A display order-summary panel \u2014 items, totals and a note.",DeliveryOptions:"Delivery tiers as cards \u2014 name, window and price, one highlighted.",PaymentBadges:"A payment-methods trust strip with reassurance lines.",CheckoutCTA:"A centered 'ready to order?' headline with the checkout button.",Manifesto:"A bold brand statement beside a full-height image, with a stat strip.",ParagraphsA:"An editorial text panel with a stat strip and founders' note.",StatsParagraph:"An editorial heading and paragraph over a row of stat cards whose units and small labels take the main color.",Chart:"A titled chart \u2014 bars, line or donut \u2014 drawn from your own labeled data points.",Mockup:"A headline beside a stylized product-UI mockup card \u2014 spec sheet, fitment, portal, kanban and more.",Prose:"A plain editorial text section \u2014 eyebrow, heading and body copy.",Timeline:"An editorial aside beside a rail-marked timeline of dated entries.",TimelineTrack:"A horizontal year track of milestones \u2014 company history or roadmap.",Footprint:"A world map of your locations with a legend \u2014 designed here, sold worldwide.",TitleWithButtons:"A big headline beside a stack of call-to-action buttons.",Split:"Side-by-side image and text in two columns.",Cards:"A heading over a grid of free-text title-and-blurb cards.",FAQ:"A frequently-asked-questions accordion with a header.",Testimonials:"Customer quotes in a grid \u2014 the quote, a name and a role.",Masthead:"A journal issue header with a lead statement and contents.",Breadcrumb:"A slim trail showing where the reader is (Home / Journal\u2026).",CategoryBar:"A sticky row of category tabs with counts and links.",FeaturedCover:"A featured article \u2014 big cover image beside a headline and dek.",LongRead:"A long-form article spread with a pull-quote and cover image.",Series:"A section heading over a grid of column cards.",Subscribe:"A newsletter signup beside a list of recent issues.",SubscribeBlogs:"A newsletter signup beside your latest blog posts, pulled live.",Events:"Latest journal posts in a three-card row.",DocMasthead:"A page header: eyebrow, title, details and a deck.",DocTabs:"A sticky tab bar that marks the page you are on.",DocBody:"Long-form document body with an 'On this page' contents list.",DocMetaCards:"A three-up meta strip for the foot of a document.",Banner:"Wide promo strip with background image.",Stats:"Highlight key numbers \u2014 years, designs.",Countdown:"Hours, minutes and seconds to a set date and time, then one line.",KeyFeatures:"A theme-color chip and heading over a grid of short feature labels.",Logos:"A row of partner or brand logos.",Ticker:"A scrolling marquee of short phrases, full width.",Reviews:"Approved customer reviews in a star-rated card grid, pulled live.",SubmitBuild:"A 'Show us yours.' headline with a photo-submission form.",ReviewForm:"A write-a-review form \u2014 submissions wait for your approval before they show.",ContactRouting:"Pick who to reach, then a form that routes the message.",ContactLocations:"Your locations as a city gallery plus address and map cards.",SectionHeader:"A numbered section title with optional link.",Grid:"Multi-column container for blocks.",Flex:"An empty section. Add whatever you want inside.",Spacer:"Vertical breathing room between sections.",Divider:"A thin horizontal rule between sections.",CustomHTML:"Drop in your own sanitized HTML.",Heading:"A single heading line.",Text:"A paragraph of body copy.",ImageBlock:"A standalone image, at the width you set.",ButtonBlock:"A call-to-action button."};import{jsx as rh}from"react/jsx-runtime";import{useState as Ife}from"react";import{Button as gfe,Tooltip as bfe,toast as A5}from"efficient-shell/ui";import{TemplateIcon as yfe}from"efficient-easel/icons";import{useSettledAction as Sfe}from"efficient-easel/easel";import{useScreenDocument as wfe}from"efficient-easel/screen/components/ScreenDocumentContext";function L5({enabled:e,reason:o,onSaved:t}){let{flushSave:r}=wfe(),[a,n]=Ife(!1),s=async()=>{if(!a){n(!0);try{await r()?t():A5.error(i(R5))}catch{A5.error(i(R5))}finally{n(!1)}}},l=Sfe({onPress:()=>{s()},busy:a});return rh(bfe,{side:"bottom",content:e?i("Save this website as a platform template"):i(o),children:rh("span",{className:"sf-tip-disabled",tabIndex:e?void 0:0,children:rh(gfe,{variant:"secondary",disabled:!e||l.busy,loading:l.busy,onClick:l.onPress,rightIcon:rh(yfe,{size:15}),children:i("Save as Template")})})})}var R5="Your last changes did not save, so the template was not made. Try again.";var Cfe="Save your page changes first";function F5(e){return e.hasTrustedConsole?e.canCreatePlatformTemplate?!e.capabilities.canPublish||!e.capabilities.hasSiteSettings?{visible:!1,hiddenReason:"not-a-site-page"}:e.siteId?e.hasUnsavedEdits?{visible:!0,enabled:!1,disabledReason:Cfe}:{visible:!0,enabled:!0}:{visible:!1,hiddenReason:"no-site"}:{visible:!1,hiddenReason:"not-operator"}:{visible:!1,hiddenReason:"no-console"}}var B5="storefront-editor:save-as-template";var $d="ContactLocations",vfe="CityPictures",kfe="CityMaps",Tfe=[{key:vfe,label:"City pictures",desc:"A wall of city photos, grouped by region. Each photo links to its city's card."},{key:kfe,label:"City maps",desc:"A card per city, grouped by region: address, phone, hours and a map."}];function D5(e=Qi){let o=SC.find(t=>t.sections.some(r=>r.type===$d))?.key;return!e.includes($d)||!o?[]:Tfe.map(({key:t,label:r,desc:a},n)=>({key:t,label:r,cat:o,after:$d,desc:a,alias:"locations offices stores branches",insert:s=>{let l=ca($d);return l?Ym($d,l,n)(s.nodeDefaults,s.newNodeId,cl()):null}}))}function M5(e,{nodeDefaults:o,newNodeId:t,sectionLabel:r,blockIsOffered:a}){let n=hl(e);if(n)return n(o,t,cl());if(Sv(e)&&a(te)&&a(Kn)){let l=K(kr,e);return{type:te,props:{...o(te),id:t(te),direction:"column",name:`${r(e)} section`,content:[{type:Kn,props:{...o(Kn),id:t(Kn),...l?.headStyle?{headStyle:l.headStyle}:{},...l?.headRowGap?{rowGap:l.headRowGap}:{},...l?.headDescriptionSize?{descriptionSize:l.headDescriptionSize}:{},...nd(e)!==nd(Kn)?{eyebrowLook:nd(e)}:{}}},{type:e,props:{...o(e),id:t(e),headPlacement:"own-box",...N5(e,t)}}]}}}if(K(ur,e)?.fixed===!0)return{type:e,props:{...o(e),id:t(e),layout:"boxes"}};let s=N5(e,t);return Object.keys(s).length?{type:e,props:{...o(e),id:t(e),...s}}:null}function N5(e,o){return e==="Cards"?{template:Iv(t=>o(t))}:e===bv?{template:yv(t=>o(t))}:{}}import{useEffect as Pfe,useState as Efe}from"react";import{useEaselSession as Ofe}from"efficient-easel/screen/lib/session-context";function H5(){let e=Ofe().chrome?.products?.list,[o,t]=Efe(null);return Pfe(()=>{if(!e)return;let r=!1;return e().then(a=>{r||t(a)}),()=>{r=!0}},[e]),o}function Y5({mode:e,open:o}){let{setSelectedHeroId:t,setSelectHandler:r}=OA(),a=V5().tree,n=e,s=n.kind==="ticker"?n.heroId:null,l=Il(d=>{d&&(o({kind:"ticker",heroId:d}),Mfe(d))},[o]);return mr(()=>{t(s)},[s,t]),mr(()=>{r(l)},[r,l]),{partRows:(d,{rowClick:c})=>{let f=String(d.props.id);return d.type==="Hero"&&Hb(d.props)&&To(j5,{icon:To(fn,{type:"ticker",size:13}),name:i(Ei),onSelect:()=>l(f),selected:s===f,rowProps:{onClick:c(()=>l(f))},words:a})}}}function X5({mode:e,select:o}){let{setSelectedHeroPart:t,setSelectHandler:r}=qp(),a=V5().tree,{appState:n}=K5(p=>p),s=n.data.content??[],l=_fe(s);l.current=s;let d=e,c=dn.find(p=>Ai[p]===d.kind),f=c&&"nodeId"in d?Ri(String(d.nodeId),c):null,u=Il(p=>{let h=NA(p);if(!h)return;let I=l.current.findIndex(C=>String(C.props.id)===h.nodeId);if(I<0)return;let g={kind:Ai[h.part],nodeId:h.nodeId};o({index:I},g)},[o]);return mr(()=>{t(f)},[f,t]),mr(()=>{r(u)},[r,u]),{partRows:(p,{rowClick:h})=>{let I=String(p.props.id),g=DA(p);if(g.length===0)return null;let C=y=>{let b=Ri(I,y.part);return To(j5,{icon:To(fn,{type:y.part==="media"?"heroMedia":"heroImage",size:13}),name:i(y.label),onSelect:()=>u(b),selected:f===b,rowProps:{onClick:h(()=>u(b))},words:a},b)},[w,...T]=g;return Gd(G5,{children:[C(w),T.length>0&&To(Bfe,{children:T.map(C)})]})}}}function Z5(e,o){return{partRows:(t,r)=>Gd(G5,{children:[e.partRows?.(t,r),o.partRows?.(t,r)]})}}function Hfe(e){let{adapter:o,capabilities:t,currentSlug:r,siteId:a,docId:n,hasUnsavedEdits:s,bridgeCapabilities:l,notifyParent:d,token:c}=ah(),{hasPreviewLink:f}=t,u=to(q5()).preview?.draftLink,p=z4(e.data),h=F5({hasTrustedConsole:!!c,canCreatePlatformTemplate:l.canCreatePlatformTemplate,capabilities:t,siteId:a,hasUnsavedEdits:s}),I=Il(()=>{!a||!r||d(B5,{siteId:a,slug:r})},[d,a,r]),g=y4({pageSlug:r,siteId:a,token:c}),C=o.previewHref?.(r)??g;return{barLead:()=>h.visible&&To(L5,{enabled:h.enabled,reason:h.enabled?"":h.disabledReason,onSaved:I}),barView:()=>f&&r&&To(C4,{liveHref:C,pageId:n??null,draftLink:u}),mainAction:p}}function Wfe(e,o){let{capabilities:t,templateId:r,siteId:a,tokenRef:n,navigate:s}=ah(),{hasSiteTheme:l,explainsSiteSettings:d}=t,c=y=>o.setView(y),[f,u]=W5(Ns[0].id),[p,h]=W5(!1),{surface:I,setSurface:g}=EA(),C=()=>{if(l){c("styles"),o.reveal(),U5();return}e.show(Tw),e.reveal(),U5()},w={id:"pages",label:i("Pages"),icon:To(Rfe,{}),panel:({onHide:y})=>To(gA,{activeSurface:I,onPreviewSurface:g,onNavigate:b=>{g(null),s(r?{kind:"template",id:r,pageSlug:b}:{kind:"page",slug:b,siteId:a??void 0})},onClose:y})},T=[];return!l&&d&&T.push({id:"appearance",label:i("Appearance"),icon:To(Ffe,{}),active:e.kind==="website",onSelect:C}),l&&T.push({id:"styles",label:i("Styles"),icon:To(Lfe,{}),panel:({onHide:y,notify:b})=>To(bM,{tokenRef:n,siteId:a??void 0,onClose:y,onNotify:b,tab:f,onTabChange:u,revealPageGroup:p,onPageGroupRevealed:()=>h(!1)})}),{railLead:[w],railTrail:T,resolveLeftView:y=>u5(y,l),openSettings:C,openStyles:()=>{u(oA),c("styles")},openPageStyles:l?()=>{u(Hs),h(!0),c("styles"),o.reveal()}:d?()=>{e.show(lM),e.reveal()}:void 0}}function Ufe(){let{navigate:e,siteId:o,reloadFromServer:t,docId:r}=ah(),a=K5(s=>s.config),n=q5();mr(()=>(fx({openPage:s=>e({kind:"page",slug:s.slug,siteId:o??void 0}),reload:()=>{t()},config:a}),()=>fx(null)),[e,o,t,a]),mr(()=>{let s=Bt();if(!s||!r)return;let l=!1;return Nfe(n).list().then(d=>{l||s.learn(d)}).catch(()=>{}),()=>{l=!0}},[r,n])}function J5(){let e=Oc();return Il(o=>{k_(o,e)},[e])}function zfe(e,o,t,r){let{kind:a,open:n}=e,{selected:s,zoneOf:l}=o;mr(()=>{l5(s?.type==="BookingBox"&&s.props.region==="confirm"?i5(l(String(s.props.id))):null)},[s?.props.id]);let d=WM(e,o),{capabilities:{hasSiteSettings:c}}=ah();Ufe();let{chat:f,setChat:u,setSelected:p,setSelectHandler:h}=Vp(),I=Il(()=>n(iM),[n]),g=a==="chat";mr(()=>{p(g)},[g,p]),mr(()=>{h(I)},[h,I]);let{setOpenHandler:C}=Pi(),w=Il(()=>n(dM),[n]);mr(()=>{C(w)},[C,w]);let T=Z5(Y5(e),X5(e)),y=Hfe(o),b=Wfe(e,r),P=t.device,H=J5();return{...T,...y,...b,hasOwnRows:E=>E.type===Mm,ownRows:d.renderLocationTree,sectionPressed:d.sectionPressed,onCopyItem:H,wrap:E=>To(Jh.Provider,{value:!0,children:Gd(Dfe.Provider,{value:P,children:[E,To(X4,{})]})}),addPanelRow:E=>c?Gd("div",{className:"sf-addside-sitewide",children:[To("span",{className:"sf-addside-sitewide-glyph","aria-hidden":"true",children:To(fn,{type:"chat",size:16})}),Gd("button",{type:"button",className:"sf-addside-sitewide-name",onClick:()=>{E(),I()},children:[i("Live chat"),To("span",{className:"sf-addside-sitewide-desc",children:i("A chat bubble on every page")})]}),To(Afe,{checked:f.enabled,onChange:W=>u({enabled:W}),ariaLabel:i("Show the chat bubble on the whole site")})]}):void 0}}var z5=null,uC=new WeakMap;function $fe(e){let o=qk();if(!e||!o)return e;z5!==o&&(z5=o,uC=new WeakMap);let t=uC.get(e);return t||(t={...e,choices:e.choices?e.choices.map(r=>({...r,label:i(r.label)})):null,spec:e.spec?{...e.spec,addLabel:i(e.spec.addLabel),...e.spec.childLabel?{childLabel:i(e.spec.childLabel)}:{}}:null},uC.set(e,t)),t}var Gfe={isLockedBlock:(e,o)=>uu(e,o)||!!(o&&Bt()?.heldElsewhere(o.props.id)),duplicateBlocked:Nu,nestDepth:(e,o,t)=>o===gk?Sk(e,t):0,newSectionNode:M5,canAddTo:(e,o,t,r)=>$fe(n5(e,o,r,t)),blockIsOffered:r5,slotsOf:s5,resolveOnInsert:!0},jfe=new Proxy(_5,{get:(e,o)=>{let t=Reflect.get(e,o);return typeof t=="string"?i(t):t}}),Kfe={labelAtLevel:(e,o,t)=>i(sh(e,o,t)),descriptions:jfe,categoryLabel:e=>{let o=Z4(e);return o===void 0?void 0:i(o)},firstSection:J4,blockRowName:d5,rowName:mu,plainText:yr,Icon:fn,Thumbnail:IM,useProducts:H5,presets:D5()},Vfe={desktop:2e3,tablet:800,mobile:390},$5="desktop",qfe={options:vA,initial:$5,fluid:$5,widths:Vfe,hidesPerView:!0},Yfe={read:f5,write:e=>p5(e),forSelection:(e,o)=>m5(e,o)},Xfe={first:Jo,last:Xe,firstGroup:Ye,lastGroup:Ue,isSectionGroup:ns,sectionGroupZone:fT,panelOf:e=>e===Jo?sM:null,get sharedReach(){return xn()?Jfe:void 0},get shared(){return Bt()?x5:void 0},get groupTab(){return xn()?dF:void 0},get groupBadge(){return xn()?Zy({type:Ue})??void 0:void 0},get changeNotice(){return xn()?cF():void 0},get band(){return xn()?Zfe:void 0},get groupAccepts(){return xn()?mT:void 0}},Zfe={foldable:!0},Jfe=e=>Zy(e)??h5(e);function Qfe(e){return{...Z5(Y5(e),X5(e)),onCopyItem:J5(),openSettings:()=>e.show(Tw)}}function epe(e,o){YH(e,o),h4()}var jYe={useOwnerName:Ws,useDocumentLabel:sA,useBridges:zfe,useStandaloneBridges:Qfe,useDocumentPass:epe,blockRules:Gfe,blockLook:Kfe,devices:qfe,leftView:Yfe,pinned:Xfe,Canvas:E5,canvasDrag:{media:O5},Inspector:fM};export{zy as a,to as b,nf as c,Hu as d,HNe as e,dr as f,cr as g,go as h,XNe as i,Qy as j,BAe as k,eu as l,Di as m,Ni as n,oR as o,DAe as p,ou as q,NAe as r,xZ as s,tR as t,MAe as u,aR as v,XH as w,_8e as x,rpe as y,de as z,i as A,Uo as B,ZH as C,L8e as D,uo as E,y$ as F,yI as G,Mbe as H,oE as I,Ube as J,nt as K,SI as L,$be as M,Gbe as N,jbe as O,kf as P,Kbe as Q,Tf as R,Vbe as S,qbe as T,aE as U,nE as V,E$ as W,O$ as X,Jbe as Y,eye as Z,oye as _,tye as $,rye as aa,KE as ba,Va as ca,KG as da,fSe as ea,VG as fa,pSe as ga,lo as ha,uSe as ia,qG as ja,mSe as ka,hSe as la,xSe as ma,ISe as na,gSe as oa,bSe as pa,ws as qa,ySe as ra,Tx as sa,Ex as ta,oP as ua,Ox as va,y6 as wa,ime as xa,$c as ya,iP as za,S6 as Aa,w6 as Ba,C6 as Ca,fme as Da,pme as Ea,ume as Fa,mme as Ga,hme as Ha,xme as Ia,s2e as Ja,l2e as Ka,i2e as La,d2e as Ma,c2e as Na,f2e as Oa,p2e as Pa,u2e as Qa,PJ as Ra,_R as Sa,AR as Ta,RR as Ua,js as Va,cu as Wa,JRe as Xa,Aye as Ya,ja as Za,bG as _a,LI as $a,ei as ab,Rye as bb,Lye as cb,BI as db,TE as eb,Fye as fb,aue as gb,Wye as hb,Uye as ib,zye as jb,$ye as kb,Zl as lb,oG as mb,iE as nb,vI as ob,nr as pb,fye as qb,Xl as rb,kI as sb,TI as tb,pye as ub,uye as vb,AF as wb,_P as xb,vhe as yb,khe as zb,oa as Ab,pW as Bb,The as Cb,Phe as Db,Nx as Eb,Ehe as Fb,Ohe as Gb,_he as Hb,RP as Ib,LP as Jb,Ahe as Kb,Ul as Lb,Mx as Mb,Rhe as Nb,Lhe as Ob,Fhe as Pb,Bhe as Qb,RF as Rb,Sn as Sb,I2e as Tb,g2e as Ub,b2e as Vb,LF as Wb,y2e as Xb,FF as Yb,Gu as Zb,HF as _b,L2e as $b,F2e as ac,ai as bc,sr as cc,rf as dc,MP as ec,zl as fc,Hhe as gc,Whe as hc,vo as ic,vn as jc,Z as kc,Qs as lc,re as mc,Q as nc,se as oc,le as pc,ue as qc,fMe as rc,me as sc,ol as tc,tl as uc,rd as vc,ad as wc,$F as xc,hMe as yc,are as zc,GF as Ac,gMe as Bc,bMe as Cc,jF as Dc,nre as Ec,KF as Fc,sre as Gc,nd as Hc,VF as Ic,CMe as Jc,sS as Kc,TMe as Lc,PMe as Mc,EMe as Nc,OMe as Oc,_Me as Pc,AMe as Qc,Kc as Rc,FMe as Sc,Yu as Tc,sd as Uc,BMe as Vc,DMe as Wc,YF as Xc,NMe as Yc,fre as Zc,pre as _c,MMe as $c,ure as ad,HMe as bd,XF as cd,GMe as dd,jMe as ed,KMe as fd,VMe as gd,qMe as hd,YMe as id,xre as jd,Ire as kd,XMe as ld,ZMe as md,JMe as nd,QMe as od,eHe as pd,oHe as qd,tHe as rd,rHe as sd,aHe as td,Ju as ud,eB as vd,Ere as wd,fHe as xd,pHe as yd,em as zd,iS as Ad,rB as Bd,om as Cd,IHe as Dd,Ore as Ed,_re as Fd,Are as Gd,gHe as Hd,ot as Id,Pn as Jd,sl as Kd,o4e as Ld,t4e as Md,r4e as Nd,$B as Od,GB as Pd,mae as Qd,S4e as Rd,jB as Sd,KB as Td,VB as Ud,v4e as Vd,Jz as Wd,Mt as Xd,ebe as Yd,obe as Zd,tbe as _d,rbe as $d,Sf as ae,abe as be,Ff as ce,ti as de,Kye as ee,Vye as fe,qye as ge,FE as he,BE as ie,DE as je,Yye as ke,Ye as le,Ue as me,lx as ne,Upe as oe,ns as pe,pT as qe,Rc as re,pF as se,z4e as te,$4e as ue,rD as ve,G4e as we,j4e as xe,Es as ye,Gl as ze,Eg as Ae,Ag as Be,ip as Ce,Gt as De,pke as Ee,uke as Fe,mke as Ge,hke as He,e7 as Ie,o7 as Je,xke as Ke,Os as Le,Lg as Me,Ike as Ne,gke as Oe,Tp as Pe,bi as Qe,nb as Re,Ls as Se,rn as Te,e0e as Ue,yi as Ve,f1 as We,o0e as Xe,mb as Ye,t0e as Ze,r0e as _e,a0e as $e,i9 as af,n0e as bf,p9 as cf,u9 as df,s0e as ef,l0e as ff,h9 as gf,uD as hf,ES as if,Ui as jf,CL as kf,vL as lf,zi as mf,aL as nf,Fy as of,CFe as pf,In as qf,Dy as rf,lL as sf,iL as tf,Ny as uf,iee as vf,dL as wf,gu as xf,cL as yf,w5e as zf,gD as Af,C5e as Bf,v5e as Cf,k5e as Df,Sd as Ef,xm as Ff,R5e as Gf,B5e as Hf,q5e as If,FS as Jf,Y5e as Kf,kD as Lf,TD as Mf,Nr as Nf,s3e as Of,ED as Pf,l3e as Qf,_D as Rf,co as Sf,Ge as Tf,gm as Uf,LD as Vf,m3e as Wf,bm as Xf,FD as Yf,b3e as Zf,B3e as _f,jD as $f,jS as ag,KD as bg,M3e as cg,H3e as dg,W3e as eg,KS as fg,U3e as gg,z3e as hg,VD as ig,vm as jg,Rne as kg,km as lg,E6e as mg,ew as ng,Dne as og,ow as pg,Gne as qg,$6e as rg,CN as sg,vN as tg,G6e as ug,j6e as vg,Bg as wg,Tke as xg,Dg as yg,d_ as zg,rWe as Ag,DN as Bg,NN as Cg,wWe as Dg,LWe as Eg,FWe as Fg,BWe as Gg,hw as Hg,$E as Ig,sSe as Jg,VI as Kg,qI as Lg,YI as Mg,MWe as Ng,sse as Og,lse as Pg,jN as Qg,HWe as Rg,WWe as Sg,fUe as Tg,u2 as Ug,pUe as Vg,m2 as Wg,mUe as Xg,w2 as Yg,C2 as Zg,Wse as _g,P2 as $g,_Ue as ah,Om as bh,HUe as ch,Cd as dh,zUe as eh,L2 as fh,GUe as gh,F2 as hh,B2 as ih,VUe as jh,gw as kh,jse as lh,XUe as mh,Kse as nh,ZUe as oh,JUe as ph,_m as qh,H2 as rh,tze as sh,rze as th,aze as uh,nze as vh,Mr as wh,cze as xh,X2 as yh,ts as zh,rs as Ah,Spe as Bh,WGe as Ch,UGe as Dh,Mw as Eh,zGe as Fh,r0 as Gh,j1 as Hh,dEe as Ih,cEe as Jh,X9 as Kh,fEe as Lh,pEe as Mh,uEe as Nh,mEe as Oh,Z9 as Ph,hEe as Qh,xEe as Rh,IEe as Sh,gEe as Th,oq as Uh,bEe as Vh,pie as Wh,JM as Xh,VGe as Yh,Ad as Zh,oH as _h,Zr as $h,Cue as ai,o6 as bi,bx as ci,Dl as di,vue as ei,Pue as fi,r6 as gi,zT as hi,Eue as ii,Ba as ji,i6 as ki,Fue as li,Bue as mi,Nl as ni,Due as oi,Nue as pi,vx as qi,VT as ri,jue as si,LA as ti,A_e as ui,Wb as vi,cn as wi,B_e as xi,D_e as yi,N_e as zi,M_e as Ai,KY as Bi,H_e as Ci,Ri as Di,NA as Ei,MA as Fi,gje as Gi,zw as Hi,lH as Ii,iH as Ji,Hw as Ki,yie as Li,bje as Mi,Hm as Ni,Rd as Oi,Um as Pi,yje as Qi,Sje as Ri,wje as Si,Wm as Ti,Cje as Ui,vje as Vi,E3 as Wi,zo as Xi,_pe as Yi,O3 as Zi,_3 as _i,Lpe as $i,A3 as aj,R3 as bj,Fpe as cj,Bpe as dj,Dpe as ej,Npe as fj,fH as gj,Ld as hj,Fd as ij,$m as jj,uH as kj,ul as lj,mH as mj,Gm as nj,jm as oj,Km as pj,hH as qj,xH as rj,IH as sj,gH as tj,bH as uj,wH as vj,CH as wj,Qje as xj,eKe as yj,oKe as zj,tKe as Aj,Nt as Bj,Uie as Cj,OH as Dj,$ie as Ej,AH as Fj,RH as Gj,FH as Hj,Qie as Ij,OKe as Jj,AA as Kj,T_e as Lj,UKe as Mj,zKe as Nj,Sce as Oj,vG as Pj,bs as Qj,Dye as Rj,due as Sj,_9e as Tj,hBe as Uj,wL as Vj,Ei as Wj,y_e as Xj,OA as Yj,S_e as Zj,w_e as _j,C_e as $j,hGe as ak,yM as bk,SM as ck,wM as dk,YE as ek,qa as fk,Oo as gk,st as hk,si as ik,Cs as jk,_Se as kk,ASe as lk,LSe as mk,FSe as nk,BSe as ok,DSe as pk,NSe as qk,HSe as rk,Wf as sk,li as tk,ZE as uk,JI as vk,ij as wk,JE as xk,eg as yk,Zue as zk,JT as Ak,ame as Bk,jc as Ck,Vc as Dk,Wl as Ek,uP as Fk,Tme as Gk,Pme as Hk,bP as Ik,Rx as Jk,dW as Kk,uhe as Lk,$he as Mk,Xhe as Nk,Zhe as Ok,DW as Pk,Yo as Qk,$l as Rk,Xx as Sk,Zx as Tk,Wxe as Uk,QP as Vk,Uxe as Wk,zxe as Xk,$xe as Yk,n0 as Zk,l0 as _k,Or as $k,h0 as al,Sz as bl,ige as cl,v0 as dl,hge as el,T0 as fl,_0 as gl,A0 as hl,R0 as il,L0 as jl,F0 as kl,B0 as ll,pI as ml,Wz as nl,Uz as ol,ql as pl,uI as ql,N0 as rl,Nge as sl,$z as tl,Mge as ul,Hge as vl,Wge as wl,H0 as xl,Gge as yl,Kz as zl,jge as Al,Kge as Bl,qz as Cl,mI as Dl,Xz as El,Xge as Fl,Zz as Gl,Zge as Hl,II as Il,pbe as Jl,G0 as Kl,t$ as Ll,mbe as Ml,Yl as Nl,x$ as Ol,Fbe as Pl,dG as Ql,wye as Rl,fG as Sl,Cye as Tl,vye as Ul,kye as Vl,Ss as Wl,Nf as Xl,oSe as Yl,tSe as Zl,rSe as _l,dj as $l,cj as am,zSe as bm,mj as cm,hj as dm,$Se as em,GSe as fm,jSe as gm,KSe as hm,VSe as im,ewe as jm,owe as km,twe as lm,rwe as mm,awe as nm,nwe as om,swe as pm,lwe as qm,iwe as rm,dwe as sm,cwe as tm,QE as um,fwe as vm,pwe as wm,la as xm,vj as ym,ia as zm,Za as Am,XCe as Bm,ZCe as Cm,JCe as Dm,QCe as Em,eve as Fm,ove as Gm,tve as Hm,sve as Im,lve as Jm,_K as Km,ive as Lm,dve as Mm,cve as Nm,fve as Om,pve as Pm,uve as Qm,mve as Rm,hve as Sm,FK as Tm,xve as Um,bg as Vm,Ive as Wm,Zf as Xm,Jf as Ym,Zo as Zm,Ut as _m,LO as $m,ta as an,FO as bn,BO as cn,Qf as dn,gve as en,bve as fn,s8 as gn,yve as hn,Sve as in,wve as jn,Cve as kn,vve as ln,kve as mn,Po as nn,Tve as on,Pve as pn,jf as qn,ep as rn,op as sn,wg as tn,rp as un,Eve as vn,zO as wn,Ove as xn,O8 as yn,_ve as zn,Ave as An,jO as Bn,Rve as Cn,Lve as Dn,Fve as En,Bve as Fn,Dve as Gn,Nve as Hn,Tg as In,Mve as Jn,VO as Kn,Hve as Ln,Wve as Mn,Ts as Nn,YO as On,Uve as Pn,zve as Qn,$ve as Rn,Gve as Sn,CLe as Tn,vLe as Un,kLe as Vn,mu as Wn,ZR as Xn,Oy as Yn,KLe as Zn,VLe as _n,tL as $n,bt as ao,au as bo,rJ as co,aJ as do,xRe as eo,IRe as fo,gRe as go,bRe as ho,gR as io,wRe as jo,CRe as ko,vRe as lo,CV as mo,q_ as no,Y_ as oo,jp as po,bA as qo,yA as ro,wA as so,Kp as to,t_e as uo,r_e as vo,Vp as wo,NY as xo,u_e as yo,Pi as zo,I_e as Ao,EA as Bo,as as Co,T3 as Do,Ppe as Eo,Epe as Fo,QDe as Go,eNe as Ho,oNe as Io,VKe as Jo,O_e as Ko,qp as Lo,mpe as Mo,a7 as No,Nke as Oo,Mke as Po,u_ as Qo,Hke as Ro,Wke as So,Zg as To,b1 as Uo,S0e as Vo,w0e as Wo,C0e as Xo,v0e as Yo,G1 as Zo,_Ee as _o,AEe as $o,WA as ap,wAe as bp,VA as cp,Gi as dp,Yee as ep,ABe as fp,HBe as gp,Cu as hp,Xe as ip,Du as jp,Yt as kp,kM as lp,Pd as mp,TM as np,PM as op,yGe as pp,SGe as qp,x4 as rp,eC as sp,I4 as tp,n5 as up,VVe as vp,eh as wp,Ace as xp,Rce as yp,a9e as zp,lpe as Ap,fpe as Bp,jYe as Cp};